diff --git a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerSettings.java b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerSettings.java deleted file mode 100644 index 504930e770d6..000000000000 --- a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerSettings.java +++ /dev/null @@ -1,603 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.v1; - -import static com.google.cloud.container.v1.ClusterManagerClient.ListUsableSubnetworksPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GoogleCredentialsProvider; -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.v1.stub.ClusterManagerStubSettings; -import com.google.container.v1.CancelOperationRequest; -import com.google.container.v1.CheckAutopilotCompatibilityRequest; -import com.google.container.v1.CheckAutopilotCompatibilityResponse; -import com.google.container.v1.Cluster; -import com.google.container.v1.CompleteIPRotationRequest; -import com.google.container.v1.CompleteNodePoolUpgradeRequest; -import com.google.container.v1.CreateClusterRequest; -import com.google.container.v1.CreateNodePoolRequest; -import com.google.container.v1.DeleteClusterRequest; -import com.google.container.v1.DeleteNodePoolRequest; -import com.google.container.v1.GetClusterRequest; -import com.google.container.v1.GetJSONWebKeysRequest; -import com.google.container.v1.GetJSONWebKeysResponse; -import com.google.container.v1.GetNodePoolRequest; -import com.google.container.v1.GetOperationRequest; -import com.google.container.v1.GetServerConfigRequest; -import com.google.container.v1.ListClustersRequest; -import com.google.container.v1.ListClustersResponse; -import com.google.container.v1.ListNodePoolsRequest; -import com.google.container.v1.ListNodePoolsResponse; -import com.google.container.v1.ListOperationsRequest; -import com.google.container.v1.ListOperationsResponse; -import com.google.container.v1.ListUsableSubnetworksRequest; -import com.google.container.v1.ListUsableSubnetworksResponse; -import com.google.container.v1.NodePool; -import com.google.container.v1.Operation; -import com.google.container.v1.RollbackNodePoolUpgradeRequest; -import com.google.container.v1.ServerConfig; -import com.google.container.v1.SetAddonsConfigRequest; -import com.google.container.v1.SetLabelsRequest; -import com.google.container.v1.SetLegacyAbacRequest; -import com.google.container.v1.SetLocationsRequest; -import com.google.container.v1.SetLoggingServiceRequest; -import com.google.container.v1.SetMaintenancePolicyRequest; -import com.google.container.v1.SetMasterAuthRequest; -import com.google.container.v1.SetMonitoringServiceRequest; -import com.google.container.v1.SetNetworkPolicyRequest; -import com.google.container.v1.SetNodePoolAutoscalingRequest; -import com.google.container.v1.SetNodePoolManagementRequest; -import com.google.container.v1.SetNodePoolSizeRequest; -import com.google.container.v1.StartIPRotationRequest; -import com.google.container.v1.UpdateClusterRequest; -import com.google.container.v1.UpdateMasterRequest; -import com.google.container.v1.UpdateNodePoolRequest; -import com.google.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 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
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * ClusterManagerSettings.Builder clusterManagerSettingsBuilder =
- *     ClusterManagerSettings.newBuilder();
- * clusterManagerSettingsBuilder
- *     .listClustersSettings()
- *     .setRetrySettings(
- *         clusterManagerSettingsBuilder
- *             .listClustersSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * ClusterManagerSettings clusterManagerSettings = clusterManagerSettingsBuilder.build();
- * }
- */ -@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 getJSONWebKeys. */ - public UnaryCallSettings getJSONWebKeysSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).getJSONWebKeysSettings(); - } - - /** Returns the object with the settings used for calls to listNodePools. */ - public UnaryCallSettings listNodePoolsSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).listNodePoolsSettings(); - } - - /** 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 completeNodePoolUpgrade. */ - public UnaryCallSettings - completeNodePoolUpgradeSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).completeNodePoolUpgradeSettings(); - } - - /** 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 checkAutopilotCompatibility. */ - public UnaryCallSettings - checkAutopilotCompatibilitySettings() { - return ((ClusterManagerStubSettings) getStubSettings()).checkAutopilotCompatibilitySettings(); - } - - 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()); - } - - /** - * 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) { - 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 getJSONWebKeys. */ - public UnaryCallSettings.Builder - getJSONWebKeysSettings() { - return getStubSettingsBuilder().getJSONWebKeysSettings(); - } - - /** 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 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 completeNodePoolUpgrade. */ - public UnaryCallSettings.Builder - completeNodePoolUpgradeSettings() { - return getStubSettingsBuilder().completeNodePoolUpgradeSettings(); - } - - /** 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 checkAutopilotCompatibility. */ - public UnaryCallSettings.Builder< - CheckAutopilotCompatibilityRequest, CheckAutopilotCompatibilityResponse> - checkAutopilotCompatibilitySettings() { - return getStubSettingsBuilder().checkAutopilotCompatibilitySettings(); - } - - @Override - public ClusterManagerSettings build() throws IOException { - return new ClusterManagerSettings(this); - } - } -} diff --git a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/GrpcClusterManagerStub.java b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/GrpcClusterManagerStub.java deleted file mode 100644 index 02025e1faff7..000000000000 --- a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/GrpcClusterManagerStub.java +++ /dev/null @@ -1,1309 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.v1.stub; - -import static com.google.cloud.container.v1.ClusterManagerClient.ListUsableSubnetworksPagedResponse; - -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.RequestParamsBuilder; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.container.v1.CancelOperationRequest; -import com.google.container.v1.CheckAutopilotCompatibilityRequest; -import com.google.container.v1.CheckAutopilotCompatibilityResponse; -import com.google.container.v1.Cluster; -import com.google.container.v1.CompleteIPRotationRequest; -import com.google.container.v1.CompleteNodePoolUpgradeRequest; -import com.google.container.v1.CreateClusterRequest; -import com.google.container.v1.CreateNodePoolRequest; -import com.google.container.v1.DeleteClusterRequest; -import com.google.container.v1.DeleteNodePoolRequest; -import com.google.container.v1.GetClusterRequest; -import com.google.container.v1.GetJSONWebKeysRequest; -import com.google.container.v1.GetJSONWebKeysResponse; -import com.google.container.v1.GetNodePoolRequest; -import com.google.container.v1.GetOperationRequest; -import com.google.container.v1.GetServerConfigRequest; -import com.google.container.v1.ListClustersRequest; -import com.google.container.v1.ListClustersResponse; -import com.google.container.v1.ListNodePoolsRequest; -import com.google.container.v1.ListNodePoolsResponse; -import com.google.container.v1.ListOperationsRequest; -import com.google.container.v1.ListOperationsResponse; -import com.google.container.v1.ListUsableSubnetworksRequest; -import com.google.container.v1.ListUsableSubnetworksResponse; -import com.google.container.v1.NodePool; -import com.google.container.v1.Operation; -import com.google.container.v1.RollbackNodePoolUpgradeRequest; -import com.google.container.v1.ServerConfig; -import com.google.container.v1.SetAddonsConfigRequest; -import com.google.container.v1.SetLabelsRequest; -import com.google.container.v1.SetLegacyAbacRequest; -import com.google.container.v1.SetLocationsRequest; -import com.google.container.v1.SetLoggingServiceRequest; -import com.google.container.v1.SetMaintenancePolicyRequest; -import com.google.container.v1.SetMasterAuthRequest; -import com.google.container.v1.SetMonitoringServiceRequest; -import com.google.container.v1.SetNetworkPolicyRequest; -import com.google.container.v1.SetNodePoolAutoscalingRequest; -import com.google.container.v1.SetNodePoolManagementRequest; -import com.google.container.v1.SetNodePoolSizeRequest; -import com.google.container.v1.StartIPRotationRequest; -import com.google.container.v1.UpdateClusterRequest; -import com.google.container.v1.UpdateMasterRequest; -import com.google.container.v1.UpdateNodePoolRequest; -import com.google.longrunning.stub.GrpcOperationsStub; -import com.google.protobuf.Empty; -import io.grpc.MethodDescriptor; -import io.grpc.protobuf.ProtoUtils; -import java.io.IOException; -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. - */ -@Generated("by gapic-generator-java") -public class GrpcClusterManagerStub extends ClusterManagerStub { - private static final MethodDescriptor - listClustersMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.ClusterManager/GetServerConfig") - .setRequestMarshaller( - ProtoUtils.marshaller(GetServerConfigRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(ServerConfig.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getJSONWebKeysMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/GetJSONWebKeys") - .setRequestMarshaller( - ProtoUtils.marshaller(GetJSONWebKeysRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(GetJSONWebKeysResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listNodePoolsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/ListNodePools") - .setRequestMarshaller( - ProtoUtils.marshaller(ListNodePoolsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListNodePoolsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getNodePoolMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.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.v1.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.v1.ClusterManager/DeleteNodePool") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteNodePoolRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - completeNodePoolUpgradeMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/CompleteNodePoolUpgrade") - .setRequestMarshaller( - ProtoUtils.marshaller(CompleteNodePoolUpgradeRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - rollbackNodePoolUpgradeMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.ClusterManager/ListUsableSubnetworks") - .setRequestMarshaller( - ProtoUtils.marshaller(ListUsableSubnetworksRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListUsableSubnetworksResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - CheckAutopilotCompatibilityRequest, CheckAutopilotCompatibilityResponse> - checkAutopilotCompatibilityMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/CheckAutopilotCompatibility") - .setRequestMarshaller( - ProtoUtils.marshaller(CheckAutopilotCompatibilityRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(CheckAutopilotCompatibilityResponse.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 getJSONWebKeysCallable; - private final UnaryCallable listNodePoolsCallable; - private final UnaryCallable getNodePoolCallable; - private final UnaryCallable createNodePoolCallable; - private final UnaryCallable deleteNodePoolCallable; - private final UnaryCallable - completeNodePoolUpgradeCallable; - 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< - CheckAutopilotCompatibilityRequest, CheckAutopilotCompatibilityResponse> - checkAutopilotCompatibilityCallable; - - 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( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings getClusterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getClusterMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings createClusterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createClusterMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings updateClusterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateClusterMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings updateNodePoolTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateNodePoolMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("node_pool_id", String.valueOf(request.getNodePoolId())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings - setNodePoolAutoscalingTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setNodePoolAutoscalingMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("node_pool_id", String.valueOf(request.getNodePoolId())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings setLoggingServiceTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setLoggingServiceMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings setMonitoringServiceTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setMonitoringServiceMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings setAddonsConfigTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setAddonsConfigMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings setLocationsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setLocationsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings updateMasterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateMasterMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings setMasterAuthTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setMasterAuthMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteClusterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteClusterMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listOperationsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listOperationsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings getOperationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getOperationMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - builder.add("operation_id", String.valueOf(request.getOperationId())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings cancelOperationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(cancelOperationMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - builder.add("operation_id", String.valueOf(request.getOperationId())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings getServerConfigTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getServerConfigMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings - getJSONWebKeysTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getJSONWebKeysMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings listNodePoolsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listNodePoolsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("parent", String.valueOf(request.getParent())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings getNodePoolTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getNodePoolMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("node_pool_id", String.valueOf(request.getNodePoolId())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings createNodePoolTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createNodePoolMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("parent", String.valueOf(request.getParent())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteNodePoolTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteNodePoolMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("node_pool_id", String.valueOf(request.getNodePoolId())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings - completeNodePoolUpgradeTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(completeNodePoolUpgradeMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - rollbackNodePoolUpgradeTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(rollbackNodePoolUpgradeMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("node_pool_id", String.valueOf(request.getNodePoolId())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings - setNodePoolManagementTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setNodePoolManagementMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("node_pool_id", String.valueOf(request.getNodePoolId())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings setLabelsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setLabelsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings setLegacyAbacTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setLegacyAbacMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings startIPRotationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(startIPRotationMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings completeIPRotationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(completeIPRotationMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings setNodePoolSizeTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setNodePoolSizeMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("node_pool_id", String.valueOf(request.getNodePoolId())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings setNetworkPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setNetworkPolicyMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings setMaintenancePolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setMaintenancePolicyMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listUsableSubnetworksTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(listUsableSubnetworksMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - checkAutopilotCompatibilityTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(checkAutopilotCompatibilityMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.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.getJSONWebKeysCallable = - callableFactory.createUnaryCallable( - getJSONWebKeysTransportSettings, settings.getJSONWebKeysSettings(), clientContext); - this.listNodePoolsCallable = - callableFactory.createUnaryCallable( - listNodePoolsTransportSettings, settings.listNodePoolsSettings(), 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.completeNodePoolUpgradeCallable = - callableFactory.createUnaryCallable( - completeNodePoolUpgradeTransportSettings, - settings.completeNodePoolUpgradeSettings(), - 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.checkAutopilotCompatibilityCallable = - callableFactory.createUnaryCallable( - checkAutopilotCompatibilityTransportSettings, - settings.checkAutopilotCompatibilitySettings(), - 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 getJSONWebKeysCallable() { - return getJSONWebKeysCallable; - } - - @Override - public UnaryCallable listNodePoolsCallable() { - return listNodePoolsCallable; - } - - @Override - public UnaryCallable getNodePoolCallable() { - return getNodePoolCallable; - } - - @Override - public UnaryCallable createNodePoolCallable() { - return createNodePoolCallable; - } - - @Override - public UnaryCallable deleteNodePoolCallable() { - return deleteNodePoolCallable; - } - - @Override - public UnaryCallable completeNodePoolUpgradeCallable() { - return completeNodePoolUpgradeCallable; - } - - @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 - checkAutopilotCompatibilityCallable() { - return checkAutopilotCompatibilityCallable; - } - - @Override - public final void close() { - try { - backgroundResources.close(); - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { - throw new IllegalStateException("Failed to close resource", e); - } - } - - @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/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerSettings.java b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerSettings.java deleted file mode 100644 index cae1f6687702..000000000000 --- a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerSettings.java +++ /dev/null @@ -1,617 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.CheckAutopilotCompatibilityRequest; -import com.google.container.v1beta1.CheckAutopilotCompatibilityResponse; -import com.google.container.v1beta1.Cluster; -import com.google.container.v1beta1.CompleteIPRotationRequest; -import com.google.container.v1beta1.CompleteNodePoolUpgradeRequest; -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
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * 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 getJSONWebKeys. */ - public UnaryCallSettings getJSONWebKeysSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).getJSONWebKeysSettings(); - } - - /** Returns the object with the settings used for calls to listNodePools. */ - public UnaryCallSettings listNodePoolsSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).listNodePoolsSettings(); - } - - /** 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 completeNodePoolUpgrade. */ - public UnaryCallSettings - completeNodePoolUpgradeSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).completeNodePoolUpgradeSettings(); - } - - /** 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 checkAutopilotCompatibility. */ - public UnaryCallSettings - checkAutopilotCompatibilitySettings() { - return ((ClusterManagerStubSettings) getStubSettings()).checkAutopilotCompatibilitySettings(); - } - - /** 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()); - } - - /** - * 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) { - 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 getJSONWebKeys. */ - public UnaryCallSettings.Builder - getJSONWebKeysSettings() { - return getStubSettingsBuilder().getJSONWebKeysSettings(); - } - - /** 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 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 completeNodePoolUpgrade. */ - public UnaryCallSettings.Builder - completeNodePoolUpgradeSettings() { - return getStubSettingsBuilder().completeNodePoolUpgradeSettings(); - } - - /** 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 checkAutopilotCompatibility. */ - public UnaryCallSettings.Builder< - CheckAutopilotCompatibilityRequest, CheckAutopilotCompatibilityResponse> - checkAutopilotCompatibilitySettings() { - return getStubSettingsBuilder().checkAutopilotCompatibilitySettings(); - } - - /** 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/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/GrpcClusterManagerStub.java b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/GrpcClusterManagerStub.java deleted file mode 100644 index 1b23ee9616f0..000000000000 --- a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/GrpcClusterManagerStub.java +++ /dev/null @@ -1,1344 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.RequestParamsBuilder; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.container.v1beta1.CancelOperationRequest; -import com.google.container.v1beta1.CheckAutopilotCompatibilityRequest; -import com.google.container.v1beta1.CheckAutopilotCompatibilityResponse; -import com.google.container.v1beta1.Cluster; -import com.google.container.v1beta1.CompleteIPRotationRequest; -import com.google.container.v1beta1.CompleteNodePoolUpgradeRequest; -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.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 - 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 - 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 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 - completeNodePoolUpgradeMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1beta1.ClusterManager/CompleteNodePoolUpgrade") - .setRequestMarshaller( - ProtoUtils.marshaller(CompleteNodePoolUpgradeRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.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< - CheckAutopilotCompatibilityRequest, CheckAutopilotCompatibilityResponse> - checkAutopilotCompatibilityMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.container.v1beta1.ClusterManager/CheckAutopilotCompatibility") - .setRequestMarshaller( - ProtoUtils.marshaller(CheckAutopilotCompatibilityRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(CheckAutopilotCompatibilityResponse.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 getJSONWebKeysCallable; - private final UnaryCallable listNodePoolsCallable; - private final UnaryCallable getNodePoolCallable; - private final UnaryCallable createNodePoolCallable; - private final UnaryCallable deleteNodePoolCallable; - private final UnaryCallable - completeNodePoolUpgradeCallable; - 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< - CheckAutopilotCompatibilityRequest, CheckAutopilotCompatibilityResponse> - checkAutopilotCompatibilityCallable; - 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( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings getClusterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getClusterMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings createClusterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createClusterMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings updateClusterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateClusterMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings updateNodePoolTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateNodePoolMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("node_pool_id", String.valueOf(request.getNodePoolId())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings - setNodePoolAutoscalingTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setNodePoolAutoscalingMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("node_pool_id", String.valueOf(request.getNodePoolId())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings setLoggingServiceTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setLoggingServiceMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings setMonitoringServiceTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setMonitoringServiceMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings setAddonsConfigTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setAddonsConfigMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings setLocationsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setLocationsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings updateMasterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateMasterMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings setMasterAuthTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setMasterAuthMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteClusterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteClusterMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listOperationsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listOperationsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings getOperationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getOperationMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - builder.add("operation_id", String.valueOf(request.getOperationId())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings cancelOperationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(cancelOperationMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - builder.add("operation_id", String.valueOf(request.getOperationId())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings getServerConfigTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getServerConfigMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings - getJSONWebKeysTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getJSONWebKeysMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings listNodePoolsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listNodePoolsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("parent", String.valueOf(request.getParent())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings getNodePoolTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getNodePoolMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("node_pool_id", String.valueOf(request.getNodePoolId())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings createNodePoolTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createNodePoolMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("parent", String.valueOf(request.getParent())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteNodePoolTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteNodePoolMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("node_pool_id", String.valueOf(request.getNodePoolId())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings - completeNodePoolUpgradeTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(completeNodePoolUpgradeMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - rollbackNodePoolUpgradeTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(rollbackNodePoolUpgradeMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("node_pool_id", String.valueOf(request.getNodePoolId())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings - setNodePoolManagementTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setNodePoolManagementMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("node_pool_id", String.valueOf(request.getNodePoolId())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings setLabelsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setLabelsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings setLegacyAbacTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setLegacyAbacMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings startIPRotationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(startIPRotationMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings completeIPRotationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(completeIPRotationMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings setNodePoolSizeTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setNodePoolSizeMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("node_pool_id", String.valueOf(request.getNodePoolId())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings setNetworkPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setNetworkPolicyMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings setMaintenancePolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setMaintenancePolicyMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("cluster_id", String.valueOf(request.getClusterId())); - builder.add("name", String.valueOf(request.getName())); - builder.add("project_id", String.valueOf(request.getProjectId())); - builder.add("zone", String.valueOf(request.getZone())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listUsableSubnetworksTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(listUsableSubnetworksMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - checkAutopilotCompatibilityTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(checkAutopilotCompatibilityMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings listLocationsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listLocationsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.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.getJSONWebKeysCallable = - callableFactory.createUnaryCallable( - getJSONWebKeysTransportSettings, settings.getJSONWebKeysSettings(), clientContext); - this.listNodePoolsCallable = - callableFactory.createUnaryCallable( - listNodePoolsTransportSettings, settings.listNodePoolsSettings(), 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.completeNodePoolUpgradeCallable = - callableFactory.createUnaryCallable( - completeNodePoolUpgradeTransportSettings, - settings.completeNodePoolUpgradeSettings(), - 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.checkAutopilotCompatibilityCallable = - callableFactory.createUnaryCallable( - checkAutopilotCompatibilityTransportSettings, - settings.checkAutopilotCompatibilitySettings(), - 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 getJSONWebKeysCallable() { - return getJSONWebKeysCallable; - } - - @Override - public UnaryCallable listNodePoolsCallable() { - return listNodePoolsCallable; - } - - @Override - public UnaryCallable getNodePoolCallable() { - return getNodePoolCallable; - } - - @Override - public UnaryCallable createNodePoolCallable() { - return createNodePoolCallable; - } - - @Override - public UnaryCallable deleteNodePoolCallable() { - return deleteNodePoolCallable; - } - - @Override - public UnaryCallable completeNodePoolUpgradeCallable() { - return completeNodePoolUpgradeCallable; - } - - @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 - checkAutopilotCompatibilityCallable() { - return checkAutopilotCompatibilityCallable; - } - - @Override - public UnaryCallable listLocationsCallable() { - return listLocationsCallable; - } - - @Override - public final void close() { - try { - backgroundResources.close(); - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { - throw new IllegalStateException("Failed to close resource", e); - } - } - - @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/java-container/grpc-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterManagerGrpc.java b/java-container/grpc-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterManagerGrpc.java deleted file mode 100644 index 84cea983a185..000000000000 --- a/java-container/grpc-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterManagerGrpc.java +++ /dev/null @@ -1,4226 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.container.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *

- * Google Kubernetes Engine Cluster Manager v1
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/container/v1/cluster_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class ClusterManagerGrpc { - - private ClusterManagerGrpc() {} - - public static final java.lang.String SERVICE_NAME = "google.container.v1.ClusterManager"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.ListClustersRequest, com.google.container.v1.ListClustersResponse> - getListClustersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListClusters", - requestType = com.google.container.v1.ListClustersRequest.class, - responseType = com.google.container.v1.ListClustersResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.ListClustersRequest, com.google.container.v1.ListClustersResponse> - getListClustersMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.ListClustersRequest, - com.google.container.v1.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.v1.ListClustersRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.ListClustersResponse.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("ListClusters")) - .build(); - } - } - } - return getListClustersMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.GetClusterRequest, com.google.container.v1.Cluster> - getGetClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCluster", - requestType = com.google.container.v1.GetClusterRequest.class, - responseType = com.google.container.v1.Cluster.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.GetClusterRequest, com.google.container.v1.Cluster> - getGetClusterMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.GetClusterRequest, com.google.container.v1.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.v1.GetClusterRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Cluster.getDefaultInstance())) - .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("GetCluster")) - .build(); - } - } - } - return getGetClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.CreateClusterRequest, com.google.container.v1.Operation> - getCreateClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCluster", - requestType = com.google.container.v1.CreateClusterRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.CreateClusterRequest, com.google.container.v1.Operation> - getCreateClusterMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.CreateClusterRequest, com.google.container.v1.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.v1.CreateClusterRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("CreateCluster")) - .build(); - } - } - } - return getCreateClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.UpdateClusterRequest, com.google.container.v1.Operation> - getUpdateClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCluster", - requestType = com.google.container.v1.UpdateClusterRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.UpdateClusterRequest, com.google.container.v1.Operation> - getUpdateClusterMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.UpdateClusterRequest, com.google.container.v1.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.v1.UpdateClusterRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("UpdateCluster")) - .build(); - } - } - } - return getUpdateClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.UpdateNodePoolRequest, com.google.container.v1.Operation> - getUpdateNodePoolMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateNodePool", - requestType = com.google.container.v1.UpdateNodePoolRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.UpdateNodePoolRequest, com.google.container.v1.Operation> - getUpdateNodePoolMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.UpdateNodePoolRequest, com.google.container.v1.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.v1.UpdateNodePoolRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("UpdateNodePool")) - .build(); - } - } - } - return getUpdateNodePoolMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.SetNodePoolAutoscalingRequest, com.google.container.v1.Operation> - getSetNodePoolAutoscalingMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetNodePoolAutoscaling", - requestType = com.google.container.v1.SetNodePoolAutoscalingRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.SetNodePoolAutoscalingRequest, com.google.container.v1.Operation> - getSetNodePoolAutoscalingMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.SetNodePoolAutoscalingRequest, - com.google.container.v1.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.v1.SetNodePoolAutoscalingRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("SetNodePoolAutoscaling")) - .build(); - } - } - } - return getSetNodePoolAutoscalingMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.SetLoggingServiceRequest, com.google.container.v1.Operation> - getSetLoggingServiceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetLoggingService", - requestType = com.google.container.v1.SetLoggingServiceRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.SetLoggingServiceRequest, com.google.container.v1.Operation> - getSetLoggingServiceMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.SetLoggingServiceRequest, com.google.container.v1.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.v1.SetLoggingServiceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("SetLoggingService")) - .build(); - } - } - } - return getSetLoggingServiceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.SetMonitoringServiceRequest, com.google.container.v1.Operation> - getSetMonitoringServiceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetMonitoringService", - requestType = com.google.container.v1.SetMonitoringServiceRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.SetMonitoringServiceRequest, com.google.container.v1.Operation> - getSetMonitoringServiceMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.SetMonitoringServiceRequest, com.google.container.v1.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.v1.SetMonitoringServiceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("SetMonitoringService")) - .build(); - } - } - } - return getSetMonitoringServiceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.SetAddonsConfigRequest, com.google.container.v1.Operation> - getSetAddonsConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetAddonsConfig", - requestType = com.google.container.v1.SetAddonsConfigRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.SetAddonsConfigRequest, com.google.container.v1.Operation> - getSetAddonsConfigMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.SetAddonsConfigRequest, com.google.container.v1.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.v1.SetAddonsConfigRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("SetAddonsConfig")) - .build(); - } - } - } - return getSetAddonsConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.SetLocationsRequest, com.google.container.v1.Operation> - getSetLocationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetLocations", - requestType = com.google.container.v1.SetLocationsRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.SetLocationsRequest, com.google.container.v1.Operation> - getSetLocationsMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.SetLocationsRequest, com.google.container.v1.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.v1.SetLocationsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("SetLocations")) - .build(); - } - } - } - return getSetLocationsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.UpdateMasterRequest, com.google.container.v1.Operation> - getUpdateMasterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateMaster", - requestType = com.google.container.v1.UpdateMasterRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.UpdateMasterRequest, com.google.container.v1.Operation> - getUpdateMasterMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.UpdateMasterRequest, com.google.container.v1.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.v1.UpdateMasterRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("UpdateMaster")) - .build(); - } - } - } - return getUpdateMasterMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.SetMasterAuthRequest, com.google.container.v1.Operation> - getSetMasterAuthMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetMasterAuth", - requestType = com.google.container.v1.SetMasterAuthRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.SetMasterAuthRequest, com.google.container.v1.Operation> - getSetMasterAuthMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.SetMasterAuthRequest, com.google.container.v1.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.v1.SetMasterAuthRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("SetMasterAuth")) - .build(); - } - } - } - return getSetMasterAuthMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.DeleteClusterRequest, com.google.container.v1.Operation> - getDeleteClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteCluster", - requestType = com.google.container.v1.DeleteClusterRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.DeleteClusterRequest, com.google.container.v1.Operation> - getDeleteClusterMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.DeleteClusterRequest, com.google.container.v1.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.v1.DeleteClusterRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("DeleteCluster")) - .build(); - } - } - } - return getDeleteClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.ListOperationsRequest, - com.google.container.v1.ListOperationsResponse> - getListOperationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListOperations", - requestType = com.google.container.v1.ListOperationsRequest.class, - responseType = com.google.container.v1.ListOperationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.ListOperationsRequest, - com.google.container.v1.ListOperationsResponse> - getListOperationsMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.ListOperationsRequest, - com.google.container.v1.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.v1.ListOperationsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.ListOperationsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("ListOperations")) - .build(); - } - } - } - return getListOperationsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.GetOperationRequest, com.google.container.v1.Operation> - getGetOperationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetOperation", - requestType = com.google.container.v1.GetOperationRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.GetOperationRequest, com.google.container.v1.Operation> - getGetOperationMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.GetOperationRequest, com.google.container.v1.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.v1.GetOperationRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("GetOperation")) - .build(); - } - } - } - return getGetOperationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.CancelOperationRequest, com.google.protobuf.Empty> - getCancelOperationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CancelOperation", - requestType = com.google.container.v1.CancelOperationRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.CancelOperationRequest, com.google.protobuf.Empty> - getCancelOperationMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.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.v1.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.v1.GetServerConfigRequest, com.google.container.v1.ServerConfig> - getGetServerConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetServerConfig", - requestType = com.google.container.v1.GetServerConfigRequest.class, - responseType = com.google.container.v1.ServerConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.GetServerConfigRequest, com.google.container.v1.ServerConfig> - getGetServerConfigMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.GetServerConfigRequest, com.google.container.v1.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.v1.GetServerConfigRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.ServerConfig.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("GetServerConfig")) - .build(); - } - } - } - return getGetServerConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.GetJSONWebKeysRequest, - com.google.container.v1.GetJSONWebKeysResponse> - getGetJSONWebKeysMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetJSONWebKeys", - requestType = com.google.container.v1.GetJSONWebKeysRequest.class, - responseType = com.google.container.v1.GetJSONWebKeysResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.GetJSONWebKeysRequest, - com.google.container.v1.GetJSONWebKeysResponse> - getGetJSONWebKeysMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.GetJSONWebKeysRequest, - com.google.container.v1.GetJSONWebKeysResponse> - getGetJSONWebKeysMethod; - if ((getGetJSONWebKeysMethod = ClusterManagerGrpc.getGetJSONWebKeysMethod) == null) { - synchronized (ClusterManagerGrpc.class) { - if ((getGetJSONWebKeysMethod = ClusterManagerGrpc.getGetJSONWebKeysMethod) == null) { - ClusterManagerGrpc.getGetJSONWebKeysMethod = - getGetJSONWebKeysMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetJSONWebKeys")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.GetJSONWebKeysRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.GetJSONWebKeysResponse.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("GetJSONWebKeys")) - .build(); - } - } - } - return getGetJSONWebKeysMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.ListNodePoolsRequest, - com.google.container.v1.ListNodePoolsResponse> - getListNodePoolsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListNodePools", - requestType = com.google.container.v1.ListNodePoolsRequest.class, - responseType = com.google.container.v1.ListNodePoolsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.ListNodePoolsRequest, - com.google.container.v1.ListNodePoolsResponse> - getListNodePoolsMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.ListNodePoolsRequest, - com.google.container.v1.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.v1.ListNodePoolsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.ListNodePoolsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("ListNodePools")) - .build(); - } - } - } - return getListNodePoolsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.GetNodePoolRequest, com.google.container.v1.NodePool> - getGetNodePoolMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNodePool", - requestType = com.google.container.v1.GetNodePoolRequest.class, - responseType = com.google.container.v1.NodePool.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.GetNodePoolRequest, com.google.container.v1.NodePool> - getGetNodePoolMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.GetNodePoolRequest, com.google.container.v1.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.v1.GetNodePoolRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.NodePool.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("GetNodePool")) - .build(); - } - } - } - return getGetNodePoolMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.CreateNodePoolRequest, com.google.container.v1.Operation> - getCreateNodePoolMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateNodePool", - requestType = com.google.container.v1.CreateNodePoolRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.CreateNodePoolRequest, com.google.container.v1.Operation> - getCreateNodePoolMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.CreateNodePoolRequest, com.google.container.v1.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.v1.CreateNodePoolRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("CreateNodePool")) - .build(); - } - } - } - return getCreateNodePoolMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.DeleteNodePoolRequest, com.google.container.v1.Operation> - getDeleteNodePoolMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteNodePool", - requestType = com.google.container.v1.DeleteNodePoolRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.DeleteNodePoolRequest, com.google.container.v1.Operation> - getDeleteNodePoolMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.DeleteNodePoolRequest, com.google.container.v1.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.v1.DeleteNodePoolRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("DeleteNodePool")) - .build(); - } - } - } - return getDeleteNodePoolMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.CompleteNodePoolUpgradeRequest, com.google.protobuf.Empty> - getCompleteNodePoolUpgradeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CompleteNodePoolUpgrade", - requestType = com.google.container.v1.CompleteNodePoolUpgradeRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.CompleteNodePoolUpgradeRequest, com.google.protobuf.Empty> - getCompleteNodePoolUpgradeMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.CompleteNodePoolUpgradeRequest, com.google.protobuf.Empty> - getCompleteNodePoolUpgradeMethod; - if ((getCompleteNodePoolUpgradeMethod = ClusterManagerGrpc.getCompleteNodePoolUpgradeMethod) - == null) { - synchronized (ClusterManagerGrpc.class) { - if ((getCompleteNodePoolUpgradeMethod = ClusterManagerGrpc.getCompleteNodePoolUpgradeMethod) - == null) { - ClusterManagerGrpc.getCompleteNodePoolUpgradeMethod = - getCompleteNodePoolUpgradeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CompleteNodePoolUpgrade")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.CompleteNodePoolUpgradeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("CompleteNodePoolUpgrade")) - .build(); - } - } - } - return getCompleteNodePoolUpgradeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.RollbackNodePoolUpgradeRequest, com.google.container.v1.Operation> - getRollbackNodePoolUpgradeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RollbackNodePoolUpgrade", - requestType = com.google.container.v1.RollbackNodePoolUpgradeRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.RollbackNodePoolUpgradeRequest, com.google.container.v1.Operation> - getRollbackNodePoolUpgradeMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.RollbackNodePoolUpgradeRequest, - com.google.container.v1.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.v1.RollbackNodePoolUpgradeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("RollbackNodePoolUpgrade")) - .build(); - } - } - } - return getRollbackNodePoolUpgradeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.SetNodePoolManagementRequest, com.google.container.v1.Operation> - getSetNodePoolManagementMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetNodePoolManagement", - requestType = com.google.container.v1.SetNodePoolManagementRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.SetNodePoolManagementRequest, com.google.container.v1.Operation> - getSetNodePoolManagementMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.SetNodePoolManagementRequest, com.google.container.v1.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.v1.SetNodePoolManagementRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("SetNodePoolManagement")) - .build(); - } - } - } - return getSetNodePoolManagementMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.SetLabelsRequest, com.google.container.v1.Operation> - getSetLabelsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetLabels", - requestType = com.google.container.v1.SetLabelsRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.SetLabelsRequest, com.google.container.v1.Operation> - getSetLabelsMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.SetLabelsRequest, com.google.container.v1.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.v1.SetLabelsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("SetLabels")) - .build(); - } - } - } - return getSetLabelsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.SetLegacyAbacRequest, com.google.container.v1.Operation> - getSetLegacyAbacMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetLegacyAbac", - requestType = com.google.container.v1.SetLegacyAbacRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.SetLegacyAbacRequest, com.google.container.v1.Operation> - getSetLegacyAbacMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.SetLegacyAbacRequest, com.google.container.v1.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.v1.SetLegacyAbacRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("SetLegacyAbac")) - .build(); - } - } - } - return getSetLegacyAbacMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.StartIPRotationRequest, com.google.container.v1.Operation> - getStartIPRotationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StartIPRotation", - requestType = com.google.container.v1.StartIPRotationRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.StartIPRotationRequest, com.google.container.v1.Operation> - getStartIPRotationMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.StartIPRotationRequest, com.google.container.v1.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.v1.StartIPRotationRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("StartIPRotation")) - .build(); - } - } - } - return getStartIPRotationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.CompleteIPRotationRequest, com.google.container.v1.Operation> - getCompleteIPRotationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CompleteIPRotation", - requestType = com.google.container.v1.CompleteIPRotationRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.CompleteIPRotationRequest, com.google.container.v1.Operation> - getCompleteIPRotationMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.CompleteIPRotationRequest, com.google.container.v1.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.v1.CompleteIPRotationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("CompleteIPRotation")) - .build(); - } - } - } - return getCompleteIPRotationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.SetNodePoolSizeRequest, com.google.container.v1.Operation> - getSetNodePoolSizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetNodePoolSize", - requestType = com.google.container.v1.SetNodePoolSizeRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.SetNodePoolSizeRequest, com.google.container.v1.Operation> - getSetNodePoolSizeMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.SetNodePoolSizeRequest, com.google.container.v1.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.v1.SetNodePoolSizeRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("SetNodePoolSize")) - .build(); - } - } - } - return getSetNodePoolSizeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.SetNetworkPolicyRequest, com.google.container.v1.Operation> - getSetNetworkPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetNetworkPolicy", - requestType = com.google.container.v1.SetNetworkPolicyRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.SetNetworkPolicyRequest, com.google.container.v1.Operation> - getSetNetworkPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.SetNetworkPolicyRequest, com.google.container.v1.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.v1.SetNetworkPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("SetNetworkPolicy")) - .build(); - } - } - } - return getSetNetworkPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.SetMaintenancePolicyRequest, com.google.container.v1.Operation> - getSetMaintenancePolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetMaintenancePolicy", - requestType = com.google.container.v1.SetMaintenancePolicyRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.SetMaintenancePolicyRequest, com.google.container.v1.Operation> - getSetMaintenancePolicyMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.SetMaintenancePolicyRequest, com.google.container.v1.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.v1.SetMaintenancePolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("SetMaintenancePolicy")) - .build(); - } - } - } - return getSetMaintenancePolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.ListUsableSubnetworksRequest, - com.google.container.v1.ListUsableSubnetworksResponse> - getListUsableSubnetworksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListUsableSubnetworks", - requestType = com.google.container.v1.ListUsableSubnetworksRequest.class, - responseType = com.google.container.v1.ListUsableSubnetworksResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.ListUsableSubnetworksRequest, - com.google.container.v1.ListUsableSubnetworksResponse> - getListUsableSubnetworksMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.ListUsableSubnetworksRequest, - com.google.container.v1.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.v1.ListUsableSubnetworksRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.ListUsableSubnetworksResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("ListUsableSubnetworks")) - .build(); - } - } - } - return getListUsableSubnetworksMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.CheckAutopilotCompatibilityRequest, - com.google.container.v1.CheckAutopilotCompatibilityResponse> - getCheckAutopilotCompatibilityMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CheckAutopilotCompatibility", - requestType = com.google.container.v1.CheckAutopilotCompatibilityRequest.class, - responseType = com.google.container.v1.CheckAutopilotCompatibilityResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.CheckAutopilotCompatibilityRequest, - com.google.container.v1.CheckAutopilotCompatibilityResponse> - getCheckAutopilotCompatibilityMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.CheckAutopilotCompatibilityRequest, - com.google.container.v1.CheckAutopilotCompatibilityResponse> - getCheckAutopilotCompatibilityMethod; - if ((getCheckAutopilotCompatibilityMethod = - ClusterManagerGrpc.getCheckAutopilotCompatibilityMethod) - == null) { - synchronized (ClusterManagerGrpc.class) { - if ((getCheckAutopilotCompatibilityMethod = - ClusterManagerGrpc.getCheckAutopilotCompatibilityMethod) - == null) { - ClusterManagerGrpc.getCheckAutopilotCompatibilityMethod = - getCheckAutopilotCompatibilityMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CheckAutopilotCompatibility")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.CheckAutopilotCompatibilityRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.CheckAutopilotCompatibilityResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("CheckAutopilotCompatibility")) - .build(); - } - } - } - return getCheckAutopilotCompatibilityMethod; - } - - /** 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 v1
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Lists all clusters owned by a project in either the specified zone or all
-     * zones.
-     * 
- */ - default void listClusters( - com.google.container.v1.ListClustersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListClustersMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the details of a specific cluster.
-     * 
- */ - default void getCluster( - com.google.container.v1.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.
-     * 
- */ - default void createCluster( - com.google.container.v1.CreateClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateClusterMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the settings of a specific cluster.
-     * 
- */ - default void updateCluster( - com.google.container.v1.UpdateClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateClusterMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the version and/or image type for the specified node pool.
-     * 
- */ - default void updateNodePool( - com.google.container.v1.UpdateNodePoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateNodePoolMethod(), responseObserver); - } - - /** - * - * - *
-     * Sets the autoscaling settings for the specified node pool.
-     * 
- */ - default void setNodePoolAutoscaling( - com.google.container.v1.SetNodePoolAutoscalingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSetNodePoolAutoscalingMethod(), responseObserver); - } - - /** - * - * - *
-     * Sets the logging service for a specific cluster.
-     * 
- */ - default void setLoggingService( - com.google.container.v1.SetLoggingServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSetLoggingServiceMethod(), responseObserver); - } - - /** - * - * - *
-     * Sets the monitoring service for a specific cluster.
-     * 
- */ - default void setMonitoringService( - com.google.container.v1.SetMonitoringServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSetMonitoringServiceMethod(), responseObserver); - } - - /** - * - * - *
-     * Sets the addons for a specific cluster.
-     * 
- */ - default void setAddonsConfig( - com.google.container.v1.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/v1/projects.locations.clusters/update)
-     * instead.
-     * 
- */ - @java.lang.Deprecated - default void setLocations( - com.google.container.v1.SetLocationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSetLocationsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the master for a specific cluster.
-     * 
- */ - default void updateMaster( - com.google.container.v1.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.
-     * 
- */ - default void setMasterAuth( - com.google.container.v1.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.
-     * 
- */ - default void deleteCluster( - com.google.container.v1.DeleteClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteClusterMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists all operations in a project in a specific zone or all zones.
-     * 
- */ - default void listOperations( - com.google.container.v1.ListOperationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListOperationsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the specified operation.
-     * 
- */ - default void getOperation( - com.google.container.v1.GetOperationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetOperationMethod(), responseObserver); - } - - /** - * - * - *
-     * Cancels the specified operation.
-     * 
- */ - default void cancelOperation( - com.google.container.v1.CancelOperationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCancelOperationMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns configuration info about the Google Kubernetes Engine service.
-     * 
- */ - default void getServerConfig( - com.google.container.v1.GetServerConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetServerConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the public component of the cluster signing keys in
-     * JSON Web Key format.
-     * 
- */ - default void getJSONWebKeys( - com.google.container.v1.GetJSONWebKeysRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetJSONWebKeysMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists the node pools for a cluster.
-     * 
- */ - default void listNodePools( - com.google.container.v1.ListNodePoolsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListNodePoolsMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieves the requested node pool.
-     * 
- */ - default void getNodePool( - com.google.container.v1.GetNodePoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetNodePoolMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a node pool for a cluster.
-     * 
- */ - default void createNodePool( - com.google.container.v1.CreateNodePoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateNodePoolMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a node pool from a cluster.
-     * 
- */ - default void deleteNodePool( - com.google.container.v1.DeleteNodePoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteNodePoolMethod(), responseObserver); - } - - /** - * - * - *
-     * CompleteNodePoolUpgrade will signal an on-going node pool upgrade to
-     * complete.
-     * 
- */ - default void completeNodePoolUpgrade( - com.google.container.v1.CompleteNodePoolUpgradeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCompleteNodePoolUpgradeMethod(), responseObserver); - } - - /** - * - * - *
-     * Rolls back a previously Aborted or Failed NodePool upgrade.
-     * This makes no changes if the last upgrade successfully completed.
-     * 
- */ - default void rollbackNodePoolUpgrade( - com.google.container.v1.RollbackNodePoolUpgradeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRollbackNodePoolUpgradeMethod(), responseObserver); - } - - /** - * - * - *
-     * Sets the NodeManagement options for a node pool.
-     * 
- */ - default void setNodePoolManagement( - com.google.container.v1.SetNodePoolManagementRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSetNodePoolManagementMethod(), responseObserver); - } - - /** - * - * - *
-     * Sets labels on a cluster.
-     * 
- */ - default void setLabels( - com.google.container.v1.SetLabelsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetLabelsMethod(), responseObserver); - } - - /** - * - * - *
-     * Enables or disables the ABAC authorization mechanism on a cluster.
-     * 
- */ - default void setLegacyAbac( - com.google.container.v1.SetLegacyAbacRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSetLegacyAbacMethod(), responseObserver); - } - - /** - * - * - *
-     * Starts master IP rotation.
-     * 
- */ - default void startIPRotation( - com.google.container.v1.StartIPRotationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStartIPRotationMethod(), responseObserver); - } - - /** - * - * - *
-     * Completes master IP rotation.
-     * 
- */ - default void completeIPRotation( - com.google.container.v1.CompleteIPRotationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCompleteIPRotationMethod(), responseObserver); - } - - /** - * - * - *
-     * Sets the size for a specific node pool. The new size will be used for all
-     * replicas, including future replicas created by modifying
-     * [NodePool.locations][google.container.v1.NodePool.locations].
-     * 
- */ - default void setNodePoolSize( - com.google.container.v1.SetNodePoolSizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSetNodePoolSizeMethod(), responseObserver); - } - - /** - * - * - *
-     * Enables or disables Network Policy for a cluster.
-     * 
- */ - default void setNetworkPolicy( - com.google.container.v1.SetNetworkPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSetNetworkPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Sets the maintenance policy for a cluster.
-     * 
- */ - default void setMaintenancePolicy( - com.google.container.v1.SetMaintenancePolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSetMaintenancePolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists subnetworks that are usable for creating clusters in a project.
-     * 
- */ - default void listUsableSubnetworks( - com.google.container.v1.ListUsableSubnetworksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListUsableSubnetworksMethod(), responseObserver); - } - - /** - * - * - *
-     * Checks the cluster compatibility with Autopilot mode, and returns a list of
-     * compatibility issues.
-     * 
- */ - default void checkAutopilotCompatibility( - com.google.container.v1.CheckAutopilotCompatibilityRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCheckAutopilotCompatibilityMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service ClusterManager. - * - *
-   * Google Kubernetes Engine Cluster Manager v1
-   * 
- */ - public abstract static class ClusterManagerImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return ClusterManagerGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service ClusterManager. - * - *
-   * Google Kubernetes Engine Cluster Manager v1
-   * 
- */ - 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.v1.ListClustersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListClustersMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the details of a specific cluster.
-     * 
- */ - public void getCluster( - com.google.container.v1.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.v1.CreateClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateClusterMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the settings of a specific cluster.
-     * 
- */ - public void updateCluster( - com.google.container.v1.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 for the specified node pool.
-     * 
- */ - public void updateNodePool( - com.google.container.v1.UpdateNodePoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateNodePoolMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Sets the autoscaling settings for the specified node pool.
-     * 
- */ - public void setNodePoolAutoscaling( - com.google.container.v1.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.v1.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.v1.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.v1.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/v1/projects.locations.clusters/update)
-     * instead.
-     * 
- */ - @java.lang.Deprecated - public void setLocations( - com.google.container.v1.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.v1.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.v1.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.v1.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 a specific zone or all zones.
-     * 
- */ - public void listOperations( - com.google.container.v1.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.v1.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.v1.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.v1.GetServerConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetServerConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the public component of the cluster signing keys in
-     * JSON Web Key format.
-     * 
- */ - public void getJSONWebKeys( - com.google.container.v1.GetJSONWebKeysRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetJSONWebKeysMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists the node pools for a cluster.
-     * 
- */ - public void listNodePools( - com.google.container.v1.ListNodePoolsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListNodePoolsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Retrieves the requested node pool.
-     * 
- */ - public void getNodePool( - com.google.container.v1.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.v1.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.v1.DeleteNodePoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteNodePoolMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * CompleteNodePoolUpgrade will signal an on-going node pool upgrade to
-     * complete.
-     * 
- */ - public void completeNodePoolUpgrade( - com.google.container.v1.CompleteNodePoolUpgradeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCompleteNodePoolUpgradeMethod(), 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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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. The new size will be used for all
-     * replicas, including future replicas created by modifying
-     * [NodePool.locations][google.container.v1.NodePool.locations].
-     * 
- */ - public void setNodePoolSize( - com.google.container.v1.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.v1.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.v1.SetMaintenancePolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetMaintenancePolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists subnetworks that are usable for creating clusters in a project.
-     * 
- */ - public void listUsableSubnetworks( - com.google.container.v1.ListUsableSubnetworksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListUsableSubnetworksMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Checks the cluster compatibility with Autopilot mode, and returns a list of
-     * compatibility issues.
-     * 
- */ - public void checkAutopilotCompatibility( - com.google.container.v1.CheckAutopilotCompatibilityRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCheckAutopilotCompatibilityMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service ClusterManager. - * - *
-   * Google Kubernetes Engine Cluster Manager v1
-   * 
- */ - 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.v1.ListClustersResponse listClusters( - com.google.container.v1.ListClustersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListClustersMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the details of a specific cluster.
-     * 
- */ - public com.google.container.v1.Cluster getCluster( - com.google.container.v1.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.v1.Operation createCluster( - com.google.container.v1.CreateClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateClusterMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the settings of a specific cluster.
-     * 
- */ - public com.google.container.v1.Operation updateCluster( - com.google.container.v1.UpdateClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateClusterMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the version and/or image type for the specified node pool.
-     * 
- */ - public com.google.container.v1.Operation updateNodePool( - com.google.container.v1.UpdateNodePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateNodePoolMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets the autoscaling settings for the specified node pool.
-     * 
- */ - public com.google.container.v1.Operation setNodePoolAutoscaling( - com.google.container.v1.SetNodePoolAutoscalingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetNodePoolAutoscalingMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets the logging service for a specific cluster.
-     * 
- */ - public com.google.container.v1.Operation setLoggingService( - com.google.container.v1.SetLoggingServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetLoggingServiceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets the monitoring service for a specific cluster.
-     * 
- */ - public com.google.container.v1.Operation setMonitoringService( - com.google.container.v1.SetMonitoringServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetMonitoringServiceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets the addons for a specific cluster.
-     * 
- */ - public com.google.container.v1.Operation setAddonsConfig( - com.google.container.v1.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/v1/projects.locations.clusters/update)
-     * instead.
-     * 
- */ - @java.lang.Deprecated - public com.google.container.v1.Operation setLocations( - com.google.container.v1.SetLocationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetLocationsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the master for a specific cluster.
-     * 
- */ - public com.google.container.v1.Operation updateMaster( - com.google.container.v1.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.v1.Operation setMasterAuth( - com.google.container.v1.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.v1.Operation deleteCluster( - com.google.container.v1.DeleteClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteClusterMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists all operations in a project in a specific zone or all zones.
-     * 
- */ - public com.google.container.v1.ListOperationsResponse listOperations( - com.google.container.v1.ListOperationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListOperationsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the specified operation.
-     * 
- */ - public com.google.container.v1.Operation getOperation( - com.google.container.v1.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.v1.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.v1.ServerConfig getServerConfig( - com.google.container.v1.GetServerConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetServerConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the public component of the cluster signing keys in
-     * JSON Web Key format.
-     * 
- */ - public com.google.container.v1.GetJSONWebKeysResponse getJSONWebKeys( - com.google.container.v1.GetJSONWebKeysRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetJSONWebKeysMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists the node pools for a cluster.
-     * 
- */ - public com.google.container.v1.ListNodePoolsResponse listNodePools( - com.google.container.v1.ListNodePoolsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListNodePoolsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieves the requested node pool.
-     * 
- */ - public com.google.container.v1.NodePool getNodePool( - com.google.container.v1.GetNodePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetNodePoolMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a node pool for a cluster.
-     * 
- */ - public com.google.container.v1.Operation createNodePool( - com.google.container.v1.CreateNodePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateNodePoolMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a node pool from a cluster.
-     * 
- */ - public com.google.container.v1.Operation deleteNodePool( - com.google.container.v1.DeleteNodePoolRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteNodePoolMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * CompleteNodePoolUpgrade will signal an on-going node pool upgrade to
-     * complete.
-     * 
- */ - public com.google.protobuf.Empty completeNodePoolUpgrade( - com.google.container.v1.CompleteNodePoolUpgradeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCompleteNodePoolUpgradeMethod(), 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.v1.Operation rollbackNodePoolUpgrade( - com.google.container.v1.RollbackNodePoolUpgradeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRollbackNodePoolUpgradeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets the NodeManagement options for a node pool.
-     * 
- */ - public com.google.container.v1.Operation setNodePoolManagement( - com.google.container.v1.SetNodePoolManagementRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetNodePoolManagementMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets labels on a cluster.
-     * 
- */ - public com.google.container.v1.Operation setLabels( - com.google.container.v1.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.v1.Operation setLegacyAbac( - com.google.container.v1.SetLegacyAbacRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetLegacyAbacMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Starts master IP rotation.
-     * 
- */ - public com.google.container.v1.Operation startIPRotation( - com.google.container.v1.StartIPRotationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartIPRotationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Completes master IP rotation.
-     * 
- */ - public com.google.container.v1.Operation completeIPRotation( - com.google.container.v1.CompleteIPRotationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCompleteIPRotationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets the size for a specific node pool. The new size will be used for all
-     * replicas, including future replicas created by modifying
-     * [NodePool.locations][google.container.v1.NodePool.locations].
-     * 
- */ - public com.google.container.v1.Operation setNodePoolSize( - com.google.container.v1.SetNodePoolSizeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetNodePoolSizeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Enables or disables Network Policy for a cluster.
-     * 
- */ - public com.google.container.v1.Operation setNetworkPolicy( - com.google.container.v1.SetNetworkPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetNetworkPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets the maintenance policy for a cluster.
-     * 
- */ - public com.google.container.v1.Operation setMaintenancePolicy( - com.google.container.v1.SetMaintenancePolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetMaintenancePolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists subnetworks that are usable for creating clusters in a project.
-     * 
- */ - public com.google.container.v1.ListUsableSubnetworksResponse listUsableSubnetworks( - com.google.container.v1.ListUsableSubnetworksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListUsableSubnetworksMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Checks the cluster compatibility with Autopilot mode, and returns a list of
-     * compatibility issues.
-     * 
- */ - public com.google.container.v1.CheckAutopilotCompatibilityResponse checkAutopilotCompatibility( - com.google.container.v1.CheckAutopilotCompatibilityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCheckAutopilotCompatibilityMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service ClusterManager. - * - *
-   * Google Kubernetes Engine Cluster Manager v1
-   * 
- */ - 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.v1.ListClustersResponse> - listClusters(com.google.container.v1.ListClustersRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListClustersMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the details of a specific cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getCluster(com.google.container.v1.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 - createCluster(com.google.container.v1.CreateClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateClusterMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the settings of a specific cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateCluster(com.google.container.v1.UpdateClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateClusterMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the version and/or image type for the specified node pool.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateNodePool(com.google.container.v1.UpdateNodePoolRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateNodePoolMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Sets the autoscaling settings for the specified node pool.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - setNodePoolAutoscaling(com.google.container.v1.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 - setLoggingService(com.google.container.v1.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 - setMonitoringService(com.google.container.v1.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 - setAddonsConfig(com.google.container.v1.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/v1/projects.locations.clusters/update)
-     * instead.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture - setLocations(com.google.container.v1.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 - updateMaster(com.google.container.v1.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 - setMasterAuth(com.google.container.v1.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 - deleteCluster(com.google.container.v1.DeleteClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteClusterMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists all operations in a project in a specific zone or all zones.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.container.v1.ListOperationsResponse> - listOperations(com.google.container.v1.ListOperationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListOperationsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the specified operation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getOperation(com.google.container.v1.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.v1.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 - getServerConfig(com.google.container.v1.GetServerConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetServerConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the public component of the cluster signing keys in
-     * JSON Web Key format.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.container.v1.GetJSONWebKeysResponse> - getJSONWebKeys(com.google.container.v1.GetJSONWebKeysRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetJSONWebKeysMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists the node pools for a cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.container.v1.ListNodePoolsResponse> - listNodePools(com.google.container.v1.ListNodePoolsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListNodePoolsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieves the requested node pool.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getNodePool(com.google.container.v1.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 - createNodePool(com.google.container.v1.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 - deleteNodePool(com.google.container.v1.DeleteNodePoolRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteNodePoolMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * CompleteNodePoolUpgrade will signal an on-going node pool upgrade to
-     * complete.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - completeNodePoolUpgrade(com.google.container.v1.CompleteNodePoolUpgradeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCompleteNodePoolUpgradeMethod(), 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 - rollbackNodePoolUpgrade(com.google.container.v1.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 - setNodePoolManagement(com.google.container.v1.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 - setLabels(com.google.container.v1.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 - setLegacyAbac(com.google.container.v1.SetLegacyAbacRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetLegacyAbacMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Starts master IP rotation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - startIPRotation(com.google.container.v1.StartIPRotationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartIPRotationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Completes master IP rotation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - completeIPRotation(com.google.container.v1.CompleteIPRotationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCompleteIPRotationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Sets the size for a specific node pool. The new size will be used for all
-     * replicas, including future replicas created by modifying
-     * [NodePool.locations][google.container.v1.NodePool.locations].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - setNodePoolSize(com.google.container.v1.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 - setNetworkPolicy(com.google.container.v1.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 - setMaintenancePolicy(com.google.container.v1.SetMaintenancePolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetMaintenancePolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists subnetworks that are usable for creating clusters in a project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.container.v1.ListUsableSubnetworksResponse> - listUsableSubnetworks(com.google.container.v1.ListUsableSubnetworksRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListUsableSubnetworksMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Checks the cluster compatibility with Autopilot mode, and returns a list of
-     * compatibility issues.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.container.v1.CheckAutopilotCompatibilityResponse> - checkAutopilotCompatibility( - com.google.container.v1.CheckAutopilotCompatibilityRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCheckAutopilotCompatibilityMethod(), 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_GET_JSONWEB_KEYS = 17; - private static final int METHODID_LIST_NODE_POOLS = 18; - private static final int METHODID_GET_NODE_POOL = 19; - private static final int METHODID_CREATE_NODE_POOL = 20; - private static final int METHODID_DELETE_NODE_POOL = 21; - private static final int METHODID_COMPLETE_NODE_POOL_UPGRADE = 22; - private static final int METHODID_ROLLBACK_NODE_POOL_UPGRADE = 23; - private static final int METHODID_SET_NODE_POOL_MANAGEMENT = 24; - private static final int METHODID_SET_LABELS = 25; - private static final int METHODID_SET_LEGACY_ABAC = 26; - private static final int METHODID_START_IPROTATION = 27; - private static final int METHODID_COMPLETE_IPROTATION = 28; - private static final int METHODID_SET_NODE_POOL_SIZE = 29; - private static final int METHODID_SET_NETWORK_POLICY = 30; - private static final int METHODID_SET_MAINTENANCE_POLICY = 31; - private static final int METHODID_LIST_USABLE_SUBNETWORKS = 32; - private static final int METHODID_CHECK_AUTOPILOT_COMPATIBILITY = 33; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService 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.v1.ListClustersRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_CLUSTER: - serviceImpl.getCluster( - (com.google.container.v1.GetClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_CLUSTER: - serviceImpl.createCluster( - (com.google.container.v1.CreateClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CLUSTER: - serviceImpl.updateCluster( - (com.google.container.v1.UpdateClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_NODE_POOL: - serviceImpl.updateNodePool( - (com.google.container.v1.UpdateNodePoolRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_NODE_POOL_AUTOSCALING: - serviceImpl.setNodePoolAutoscaling( - (com.google.container.v1.SetNodePoolAutoscalingRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_LOGGING_SERVICE: - serviceImpl.setLoggingService( - (com.google.container.v1.SetLoggingServiceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_MONITORING_SERVICE: - serviceImpl.setMonitoringService( - (com.google.container.v1.SetMonitoringServiceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_ADDONS_CONFIG: - serviceImpl.setAddonsConfig( - (com.google.container.v1.SetAddonsConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_LOCATIONS: - serviceImpl.setLocations( - (com.google.container.v1.SetLocationsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_MASTER: - serviceImpl.updateMaster( - (com.google.container.v1.UpdateMasterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_MASTER_AUTH: - serviceImpl.setMasterAuth( - (com.google.container.v1.SetMasterAuthRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CLUSTER: - serviceImpl.deleteCluster( - (com.google.container.v1.DeleteClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_OPERATIONS: - serviceImpl.listOperations( - (com.google.container.v1.ListOperationsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_OPERATION: - serviceImpl.getOperation( - (com.google.container.v1.GetOperationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CANCEL_OPERATION: - serviceImpl.cancelOperation( - (com.google.container.v1.CancelOperationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SERVER_CONFIG: - serviceImpl.getServerConfig( - (com.google.container.v1.GetServerConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_JSONWEB_KEYS: - serviceImpl.getJSONWebKeys( - (com.google.container.v1.GetJSONWebKeysRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_NODE_POOLS: - serviceImpl.listNodePools( - (com.google.container.v1.ListNodePoolsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_NODE_POOL: - serviceImpl.getNodePool( - (com.google.container.v1.GetNodePoolRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_NODE_POOL: - serviceImpl.createNodePool( - (com.google.container.v1.CreateNodePoolRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_NODE_POOL: - serviceImpl.deleteNodePool( - (com.google.container.v1.DeleteNodePoolRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_COMPLETE_NODE_POOL_UPGRADE: - serviceImpl.completeNodePoolUpgrade( - (com.google.container.v1.CompleteNodePoolUpgradeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ROLLBACK_NODE_POOL_UPGRADE: - serviceImpl.rollbackNodePoolUpgrade( - (com.google.container.v1.RollbackNodePoolUpgradeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_NODE_POOL_MANAGEMENT: - serviceImpl.setNodePoolManagement( - (com.google.container.v1.SetNodePoolManagementRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_LABELS: - serviceImpl.setLabels( - (com.google.container.v1.SetLabelsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_LEGACY_ABAC: - serviceImpl.setLegacyAbac( - (com.google.container.v1.SetLegacyAbacRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_START_IPROTATION: - serviceImpl.startIPRotation( - (com.google.container.v1.StartIPRotationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_COMPLETE_IPROTATION: - serviceImpl.completeIPRotation( - (com.google.container.v1.CompleteIPRotationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_NODE_POOL_SIZE: - serviceImpl.setNodePoolSize( - (com.google.container.v1.SetNodePoolSizeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_NETWORK_POLICY: - serviceImpl.setNetworkPolicy( - (com.google.container.v1.SetNetworkPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_MAINTENANCE_POLICY: - serviceImpl.setMaintenancePolicy( - (com.google.container.v1.SetMaintenancePolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_USABLE_SUBNETWORKS: - serviceImpl.listUsableSubnetworks( - (com.google.container.v1.ListUsableSubnetworksRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CHECK_AUTOPILOT_COMPATIBILITY: - serviceImpl.checkAutopilotCompatibility( - (com.google.container.v1.CheckAutopilotCompatibilityRequest) request, - (io.grpc.stub.StreamObserver< - com.google.container.v1.CheckAutopilotCompatibilityResponse>) - 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(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListClustersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.ListClustersRequest, - com.google.container.v1.ListClustersResponse>(service, METHODID_LIST_CLUSTERS))) - .addMethod( - getGetClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.GetClusterRequest, com.google.container.v1.Cluster>( - service, METHODID_GET_CLUSTER))) - .addMethod( - getCreateClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.CreateClusterRequest, - com.google.container.v1.Operation>(service, METHODID_CREATE_CLUSTER))) - .addMethod( - getUpdateClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.UpdateClusterRequest, - com.google.container.v1.Operation>(service, METHODID_UPDATE_CLUSTER))) - .addMethod( - getUpdateNodePoolMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.UpdateNodePoolRequest, - com.google.container.v1.Operation>(service, METHODID_UPDATE_NODE_POOL))) - .addMethod( - getSetNodePoolAutoscalingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.SetNodePoolAutoscalingRequest, - com.google.container.v1.Operation>( - service, METHODID_SET_NODE_POOL_AUTOSCALING))) - .addMethod( - getSetLoggingServiceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.SetLoggingServiceRequest, - com.google.container.v1.Operation>(service, METHODID_SET_LOGGING_SERVICE))) - .addMethod( - getSetMonitoringServiceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.SetMonitoringServiceRequest, - com.google.container.v1.Operation>(service, METHODID_SET_MONITORING_SERVICE))) - .addMethod( - getSetAddonsConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.SetAddonsConfigRequest, - com.google.container.v1.Operation>(service, METHODID_SET_ADDONS_CONFIG))) - .addMethod( - getSetLocationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.SetLocationsRequest, com.google.container.v1.Operation>( - service, METHODID_SET_LOCATIONS))) - .addMethod( - getUpdateMasterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.UpdateMasterRequest, com.google.container.v1.Operation>( - service, METHODID_UPDATE_MASTER))) - .addMethod( - getSetMasterAuthMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.SetMasterAuthRequest, - com.google.container.v1.Operation>(service, METHODID_SET_MASTER_AUTH))) - .addMethod( - getDeleteClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.DeleteClusterRequest, - com.google.container.v1.Operation>(service, METHODID_DELETE_CLUSTER))) - .addMethod( - getListOperationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.ListOperationsRequest, - com.google.container.v1.ListOperationsResponse>( - service, METHODID_LIST_OPERATIONS))) - .addMethod( - getGetOperationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.GetOperationRequest, com.google.container.v1.Operation>( - service, METHODID_GET_OPERATION))) - .addMethod( - getCancelOperationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.CancelOperationRequest, com.google.protobuf.Empty>( - service, METHODID_CANCEL_OPERATION))) - .addMethod( - getGetServerConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.GetServerConfigRequest, - com.google.container.v1.ServerConfig>(service, METHODID_GET_SERVER_CONFIG))) - .addMethod( - getGetJSONWebKeysMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.GetJSONWebKeysRequest, - com.google.container.v1.GetJSONWebKeysResponse>( - service, METHODID_GET_JSONWEB_KEYS))) - .addMethod( - getListNodePoolsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.ListNodePoolsRequest, - com.google.container.v1.ListNodePoolsResponse>( - service, METHODID_LIST_NODE_POOLS))) - .addMethod( - getGetNodePoolMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.GetNodePoolRequest, com.google.container.v1.NodePool>( - service, METHODID_GET_NODE_POOL))) - .addMethod( - getCreateNodePoolMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.CreateNodePoolRequest, - com.google.container.v1.Operation>(service, METHODID_CREATE_NODE_POOL))) - .addMethod( - getDeleteNodePoolMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.DeleteNodePoolRequest, - com.google.container.v1.Operation>(service, METHODID_DELETE_NODE_POOL))) - .addMethod( - getCompleteNodePoolUpgradeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.CompleteNodePoolUpgradeRequest, - com.google.protobuf.Empty>(service, METHODID_COMPLETE_NODE_POOL_UPGRADE))) - .addMethod( - getRollbackNodePoolUpgradeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.RollbackNodePoolUpgradeRequest, - com.google.container.v1.Operation>( - service, METHODID_ROLLBACK_NODE_POOL_UPGRADE))) - .addMethod( - getSetNodePoolManagementMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.SetNodePoolManagementRequest, - com.google.container.v1.Operation>(service, METHODID_SET_NODE_POOL_MANAGEMENT))) - .addMethod( - getSetLabelsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.SetLabelsRequest, com.google.container.v1.Operation>( - service, METHODID_SET_LABELS))) - .addMethod( - getSetLegacyAbacMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.SetLegacyAbacRequest, - com.google.container.v1.Operation>(service, METHODID_SET_LEGACY_ABAC))) - .addMethod( - getStartIPRotationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.StartIPRotationRequest, - com.google.container.v1.Operation>(service, METHODID_START_IPROTATION))) - .addMethod( - getCompleteIPRotationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.CompleteIPRotationRequest, - com.google.container.v1.Operation>(service, METHODID_COMPLETE_IPROTATION))) - .addMethod( - getSetNodePoolSizeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.SetNodePoolSizeRequest, - com.google.container.v1.Operation>(service, METHODID_SET_NODE_POOL_SIZE))) - .addMethod( - getSetNetworkPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.SetNetworkPolicyRequest, - com.google.container.v1.Operation>(service, METHODID_SET_NETWORK_POLICY))) - .addMethod( - getSetMaintenancePolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.SetMaintenancePolicyRequest, - com.google.container.v1.Operation>(service, METHODID_SET_MAINTENANCE_POLICY))) - .addMethod( - getListUsableSubnetworksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.ListUsableSubnetworksRequest, - com.google.container.v1.ListUsableSubnetworksResponse>( - service, METHODID_LIST_USABLE_SUBNETWORKS))) - .addMethod( - getCheckAutopilotCompatibilityMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.CheckAutopilotCompatibilityRequest, - com.google.container.v1.CheckAutopilotCompatibilityResponse>( - service, METHODID_CHECK_AUTOPILOT_COMPATIBILITY))) - .build(); - } - - 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.v1.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 java.lang.String methodName; - - ClusterManagerMethodDescriptorSupplier(java.lang.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(getGetJSONWebKeysMethod()) - .addMethod(getListNodePoolsMethod()) - .addMethod(getGetNodePoolMethod()) - .addMethod(getCreateNodePoolMethod()) - .addMethod(getDeleteNodePoolMethod()) - .addMethod(getCompleteNodePoolUpgradeMethod()) - .addMethod(getRollbackNodePoolUpgradeMethod()) - .addMethod(getSetNodePoolManagementMethod()) - .addMethod(getSetLabelsMethod()) - .addMethod(getSetLegacyAbacMethod()) - .addMethod(getStartIPRotationMethod()) - .addMethod(getCompleteIPRotationMethod()) - .addMethod(getSetNodePoolSizeMethod()) - .addMethod(getSetNetworkPolicyMethod()) - .addMethod(getSetMaintenancePolicyMethod()) - .addMethod(getListUsableSubnetworksMethod()) - .addMethod(getCheckAutopilotCompatibilityMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-container/grpc-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterManagerGrpc.java b/java-container/grpc-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterManagerGrpc.java deleted file mode 100644 index 6064d13b08db..000000000000 --- a/java-container/grpc-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterManagerGrpc.java +++ /dev/null @@ -1,4488 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") -@io.grpc.stub.annotations.GrpcGenerated -public final class ClusterManagerGrpc { - - private ClusterManagerGrpc() {} - - public static final java.lang.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.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.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.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.CompleteNodePoolUpgradeRequest, com.google.protobuf.Empty> - getCompleteNodePoolUpgradeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CompleteNodePoolUpgrade", - requestType = com.google.container.v1beta1.CompleteNodePoolUpgradeRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1beta1.CompleteNodePoolUpgradeRequest, com.google.protobuf.Empty> - getCompleteNodePoolUpgradeMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1beta1.CompleteNodePoolUpgradeRequest, com.google.protobuf.Empty> - getCompleteNodePoolUpgradeMethod; - if ((getCompleteNodePoolUpgradeMethod = ClusterManagerGrpc.getCompleteNodePoolUpgradeMethod) - == null) { - synchronized (ClusterManagerGrpc.class) { - if ((getCompleteNodePoolUpgradeMethod = ClusterManagerGrpc.getCompleteNodePoolUpgradeMethod) - == null) { - ClusterManagerGrpc.getCompleteNodePoolUpgradeMethod = - getCompleteNodePoolUpgradeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CompleteNodePoolUpgrade")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1beta1.CompleteNodePoolUpgradeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("CompleteNodePoolUpgrade")) - .build(); - } - } - } - return getCompleteNodePoolUpgradeMethod; - } - - 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.CheckAutopilotCompatibilityRequest, - com.google.container.v1beta1.CheckAutopilotCompatibilityResponse> - getCheckAutopilotCompatibilityMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CheckAutopilotCompatibility", - requestType = com.google.container.v1beta1.CheckAutopilotCompatibilityRequest.class, - responseType = com.google.container.v1beta1.CheckAutopilotCompatibilityResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1beta1.CheckAutopilotCompatibilityRequest, - com.google.container.v1beta1.CheckAutopilotCompatibilityResponse> - getCheckAutopilotCompatibilityMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1beta1.CheckAutopilotCompatibilityRequest, - com.google.container.v1beta1.CheckAutopilotCompatibilityResponse> - getCheckAutopilotCompatibilityMethod; - if ((getCheckAutopilotCompatibilityMethod = - ClusterManagerGrpc.getCheckAutopilotCompatibilityMethod) - == null) { - synchronized (ClusterManagerGrpc.class) { - if ((getCheckAutopilotCompatibilityMethod = - ClusterManagerGrpc.getCheckAutopilotCompatibilityMethod) - == null) { - ClusterManagerGrpc.getCheckAutopilotCompatibilityMethod = - getCheckAutopilotCompatibilityMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CheckAutopilotCompatibility")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1beta1.CheckAutopilotCompatibilityRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1beta1.CheckAutopilotCompatibilityResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("CheckAutopilotCompatibility")) - .build(); - } - } - } - return getCheckAutopilotCompatibilityMethod; - } - - 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 interface AsyncService { - - /** - * - * - *
-     * Lists all clusters owned by a project in either the specified zone or all
-     * zones.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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 - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default void listOperations( - com.google.container.v1beta1.ListOperationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListOperationsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the specified operation.
-     * 
- */ - default void getOperation( - com.google.container.v1beta1.GetOperationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetOperationMethod(), responseObserver); - } - - /** - * - * - *
-     * Cancels the specified operation.
-     * 
- */ - default 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.
-     * 
- */ - default void getServerConfig( - com.google.container.v1beta1.GetServerConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetServerConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the public component of the cluster signing keys in
-     * JSON Web Key format.
-     * 
- */ - default void getJSONWebKeys( - com.google.container.v1beta1.GetJSONWebKeysRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetJSONWebKeysMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists the node pools for a cluster.
-     * 
- */ - default void listNodePools( - com.google.container.v1beta1.ListNodePoolsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListNodePoolsMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieves the requested node pool.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default void deleteNodePool( - com.google.container.v1beta1.DeleteNodePoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteNodePoolMethod(), responseObserver); - } - - /** - * - * - *
-     * CompleteNodePoolUpgrade will signal an on-going node pool upgrade to
-     * complete.
-     * 
- */ - default void completeNodePoolUpgrade( - com.google.container.v1beta1.CompleteNodePoolUpgradeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCompleteNodePoolUpgradeMethod(), responseObserver); - } - - /** - * - * - *
-     * Rolls back a previously Aborted or Failed NodePool upgrade.
-     * This makes no changes if the last upgrade successfully completed.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default void setLegacyAbac( - com.google.container.v1beta1.SetLegacyAbacRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSetLegacyAbacMethod(), responseObserver); - } - - /** - * - * - *
-     * Starts master IP rotation.
-     * 
- */ - default void startIPRotation( - com.google.container.v1beta1.StartIPRotationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStartIPRotationMethod(), responseObserver); - } - - /** - * - * - *
-     * Completes master IP rotation.
-     * 
- */ - default void completeIPRotation( - com.google.container.v1beta1.CompleteIPRotationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCompleteIPRotationMethod(), responseObserver); - } - - /** - * - * - *
-     * SetNodePoolSizeRequest sets the size of a node pool. The new size will be
-     * used for all replicas, including future replicas created by modifying
-     * [NodePool.locations][google.container.v1beta1.NodePool.locations].
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default void listUsableSubnetworks( - com.google.container.v1beta1.ListUsableSubnetworksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListUsableSubnetworksMethod(), responseObserver); - } - - /** - * - * - *
-     * Checks the cluster compatibility with Autopilot mode, and returns a list of
-     * compatibility issues.
-     * 
- */ - default void checkAutopilotCompatibility( - com.google.container.v1beta1.CheckAutopilotCompatibilityRequest request, - io.grpc.stub.StreamObserver< - com.google.container.v1beta1.CheckAutopilotCompatibilityResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCheckAutopilotCompatibilityMethod(), responseObserver); - } - - /** - * - * - *
-     * Fetches locations that offer Google Kubernetes Engine.
-     * 
- */ - default void listLocations( - com.google.container.v1beta1.ListLocationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListLocationsMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service ClusterManager. - * - *
-   * Google Kubernetes Engine Cluster Manager v1beta1
-   * 
- */ - public abstract static class ClusterManagerImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return ClusterManagerGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service ClusterManager. - * - *
-   * 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); - } - - /** - * - * - *
-     * Gets the public component of the cluster signing keys in
-     * JSON Web Key format.
-     * 
- */ - 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); - } - - /** - * - * - *
-     * 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); - } - - /** - * - * - *
-     * 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); - } - - /** - * - * - *
-     * CompleteNodePoolUpgrade will signal an on-going node pool upgrade to
-     * complete.
-     * 
- */ - public void completeNodePoolUpgrade( - com.google.container.v1beta1.CompleteNodePoolUpgradeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCompleteNodePoolUpgradeMethod(), 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); - } - - /** - * - * - *
-     * SetNodePoolSizeRequest sets the size of a node pool. The new size will be
-     * used for all replicas, including future replicas created by modifying
-     * [NodePool.locations][google.container.v1beta1.NodePool.locations].
-     * 
- */ - 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); - } - - /** - * - * - *
-     * Checks the cluster compatibility with Autopilot mode, and returns a list of
-     * compatibility issues.
-     * 
- */ - public void checkAutopilotCompatibility( - com.google.container.v1beta1.CheckAutopilotCompatibilityRequest request, - io.grpc.stub.StreamObserver< - com.google.container.v1beta1.CheckAutopilotCompatibilityResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCheckAutopilotCompatibilityMethod(), 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); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service ClusterManager. - * - *
-   * 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); - } - - /** - * - * - *
-     * Gets the public component of the cluster signing keys in
-     * JSON Web Key format.
-     * 
- */ - public com.google.container.v1beta1.GetJSONWebKeysResponse getJSONWebKeys( - com.google.container.v1beta1.GetJSONWebKeysRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetJSONWebKeysMethod(), 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); - } - - /** - * - * - *
-     * 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); - } - - /** - * - * - *
-     * CompleteNodePoolUpgrade will signal an on-going node pool upgrade to
-     * complete.
-     * 
- */ - public com.google.protobuf.Empty completeNodePoolUpgrade( - com.google.container.v1beta1.CompleteNodePoolUpgradeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCompleteNodePoolUpgradeMethod(), 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); - } - - /** - * - * - *
-     * SetNodePoolSizeRequest sets the size of a node pool. The new size will be
-     * used for all replicas, including future replicas created by modifying
-     * [NodePool.locations][google.container.v1beta1.NodePool.locations].
-     * 
- */ - 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); - } - - /** - * - * - *
-     * Checks the cluster compatibility with Autopilot mode, and returns a list of
-     * compatibility issues.
-     * 
- */ - public com.google.container.v1beta1.CheckAutopilotCompatibilityResponse - checkAutopilotCompatibility( - com.google.container.v1beta1.CheckAutopilotCompatibilityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCheckAutopilotCompatibilityMethod(), 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); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service ClusterManager. - * - *
-   * 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); - } - - /** - * - * - *
-     * Gets the public component of the cluster signing keys in
-     * JSON Web Key format.
-     * 
- */ - 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); - } - - /** - * - * - *
-     * 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); - } - - /** - * - * - *
-     * 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); - } - - /** - * - * - *
-     * CompleteNodePoolUpgrade will signal an on-going node pool upgrade to
-     * complete.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - completeNodePoolUpgrade( - com.google.container.v1beta1.CompleteNodePoolUpgradeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCompleteNodePoolUpgradeMethod(), 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); - } - - /** - * - * - *
-     * SetNodePoolSizeRequest sets the size of a node pool. The new size will be
-     * used for all replicas, including future replicas created by modifying
-     * [NodePool.locations][google.container.v1beta1.NodePool.locations].
-     * 
- */ - 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); - } - - /** - * - * - *
-     * Checks the cluster compatibility with Autopilot mode, and returns a list of
-     * compatibility issues.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.container.v1beta1.CheckAutopilotCompatibilityResponse> - checkAutopilotCompatibility( - com.google.container.v1beta1.CheckAutopilotCompatibilityRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCheckAutopilotCompatibilityMethod(), 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_GET_JSONWEB_KEYS = 17; - private static final int METHODID_LIST_NODE_POOLS = 18; - private static final int METHODID_GET_NODE_POOL = 19; - private static final int METHODID_CREATE_NODE_POOL = 20; - private static final int METHODID_DELETE_NODE_POOL = 21; - private static final int METHODID_COMPLETE_NODE_POOL_UPGRADE = 22; - private static final int METHODID_ROLLBACK_NODE_POOL_UPGRADE = 23; - private static final int METHODID_SET_NODE_POOL_MANAGEMENT = 24; - private static final int METHODID_SET_LABELS = 25; - private static final int METHODID_SET_LEGACY_ABAC = 26; - private static final int METHODID_START_IPROTATION = 27; - private static final int METHODID_COMPLETE_IPROTATION = 28; - private static final int METHODID_SET_NODE_POOL_SIZE = 29; - private static final int METHODID_SET_NETWORK_POLICY = 30; - private static final int METHODID_SET_MAINTENANCE_POLICY = 31; - private static final int METHODID_LIST_USABLE_SUBNETWORKS = 32; - private static final int METHODID_CHECK_AUTOPILOT_COMPATIBILITY = 33; - private static final int METHODID_LIST_LOCATIONS = 34; - - 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 AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService 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_GET_JSONWEB_KEYS: - serviceImpl.getJSONWebKeys( - (com.google.container.v1beta1.GetJSONWebKeysRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_NODE_POOLS: - serviceImpl.listNodePools( - (com.google.container.v1beta1.ListNodePoolsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_NODE_POOL: - serviceImpl.getNodePool( - (com.google.container.v1beta1.GetNodePoolRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_NODE_POOL: - serviceImpl.createNodePool( - (com.google.container.v1beta1.CreateNodePoolRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_NODE_POOL: - serviceImpl.deleteNodePool( - (com.google.container.v1beta1.DeleteNodePoolRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_COMPLETE_NODE_POOL_UPGRADE: - serviceImpl.completeNodePoolUpgrade( - (com.google.container.v1beta1.CompleteNodePoolUpgradeRequest) 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_CHECK_AUTOPILOT_COMPATIBILITY: - serviceImpl.checkAutopilotCompatibility( - (com.google.container.v1beta1.CheckAutopilotCompatibilityRequest) request, - (io.grpc.stub.StreamObserver< - com.google.container.v1beta1.CheckAutopilotCompatibilityResponse>) - 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(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - 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>( - service, METHODID_LIST_CLUSTERS))) - .addMethod( - getGetClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.GetClusterRequest, - com.google.container.v1beta1.Cluster>(service, METHODID_GET_CLUSTER))) - .addMethod( - getCreateClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.CreateClusterRequest, - com.google.container.v1beta1.Operation>(service, METHODID_CREATE_CLUSTER))) - .addMethod( - getUpdateClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.UpdateClusterRequest, - com.google.container.v1beta1.Operation>(service, METHODID_UPDATE_CLUSTER))) - .addMethod( - getUpdateNodePoolMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.UpdateNodePoolRequest, - com.google.container.v1beta1.Operation>(service, METHODID_UPDATE_NODE_POOL))) - .addMethod( - getSetNodePoolAutoscalingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.SetNodePoolAutoscalingRequest, - com.google.container.v1beta1.Operation>( - service, METHODID_SET_NODE_POOL_AUTOSCALING))) - .addMethod( - getSetLoggingServiceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.SetLoggingServiceRequest, - com.google.container.v1beta1.Operation>(service, METHODID_SET_LOGGING_SERVICE))) - .addMethod( - getSetMonitoringServiceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.SetMonitoringServiceRequest, - com.google.container.v1beta1.Operation>( - service, METHODID_SET_MONITORING_SERVICE))) - .addMethod( - getSetAddonsConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.SetAddonsConfigRequest, - com.google.container.v1beta1.Operation>(service, METHODID_SET_ADDONS_CONFIG))) - .addMethod( - getSetLocationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.SetLocationsRequest, - com.google.container.v1beta1.Operation>(service, METHODID_SET_LOCATIONS))) - .addMethod( - getUpdateMasterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.UpdateMasterRequest, - com.google.container.v1beta1.Operation>(service, METHODID_UPDATE_MASTER))) - .addMethod( - getSetMasterAuthMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.SetMasterAuthRequest, - com.google.container.v1beta1.Operation>(service, METHODID_SET_MASTER_AUTH))) - .addMethod( - getDeleteClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.DeleteClusterRequest, - com.google.container.v1beta1.Operation>(service, METHODID_DELETE_CLUSTER))) - .addMethod( - getListOperationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.ListOperationsRequest, - com.google.container.v1beta1.ListOperationsResponse>( - service, METHODID_LIST_OPERATIONS))) - .addMethod( - getGetOperationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.GetOperationRequest, - com.google.container.v1beta1.Operation>(service, METHODID_GET_OPERATION))) - .addMethod( - getCancelOperationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.CancelOperationRequest, com.google.protobuf.Empty>( - service, METHODID_CANCEL_OPERATION))) - .addMethod( - getGetServerConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.GetServerConfigRequest, - com.google.container.v1beta1.ServerConfig>( - service, METHODID_GET_SERVER_CONFIG))) - .addMethod( - getGetJSONWebKeysMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.GetJSONWebKeysRequest, - com.google.container.v1beta1.GetJSONWebKeysResponse>( - service, METHODID_GET_JSONWEB_KEYS))) - .addMethod( - getListNodePoolsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.ListNodePoolsRequest, - com.google.container.v1beta1.ListNodePoolsResponse>( - service, METHODID_LIST_NODE_POOLS))) - .addMethod( - getGetNodePoolMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.GetNodePoolRequest, - com.google.container.v1beta1.NodePool>(service, METHODID_GET_NODE_POOL))) - .addMethod( - getCreateNodePoolMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.CreateNodePoolRequest, - com.google.container.v1beta1.Operation>(service, METHODID_CREATE_NODE_POOL))) - .addMethod( - getDeleteNodePoolMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.DeleteNodePoolRequest, - com.google.container.v1beta1.Operation>(service, METHODID_DELETE_NODE_POOL))) - .addMethod( - getCompleteNodePoolUpgradeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.CompleteNodePoolUpgradeRequest, - com.google.protobuf.Empty>(service, METHODID_COMPLETE_NODE_POOL_UPGRADE))) - .addMethod( - getRollbackNodePoolUpgradeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.RollbackNodePoolUpgradeRequest, - com.google.container.v1beta1.Operation>( - service, METHODID_ROLLBACK_NODE_POOL_UPGRADE))) - .addMethod( - getSetNodePoolManagementMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.SetNodePoolManagementRequest, - com.google.container.v1beta1.Operation>( - service, METHODID_SET_NODE_POOL_MANAGEMENT))) - .addMethod( - getSetLabelsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.SetLabelsRequest, - com.google.container.v1beta1.Operation>(service, METHODID_SET_LABELS))) - .addMethod( - getSetLegacyAbacMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.SetLegacyAbacRequest, - com.google.container.v1beta1.Operation>(service, METHODID_SET_LEGACY_ABAC))) - .addMethod( - getStartIPRotationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.StartIPRotationRequest, - com.google.container.v1beta1.Operation>(service, METHODID_START_IPROTATION))) - .addMethod( - getCompleteIPRotationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.CompleteIPRotationRequest, - com.google.container.v1beta1.Operation>(service, METHODID_COMPLETE_IPROTATION))) - .addMethod( - getSetNodePoolSizeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.SetNodePoolSizeRequest, - com.google.container.v1beta1.Operation>(service, METHODID_SET_NODE_POOL_SIZE))) - .addMethod( - getSetNetworkPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.SetNetworkPolicyRequest, - com.google.container.v1beta1.Operation>(service, METHODID_SET_NETWORK_POLICY))) - .addMethod( - getSetMaintenancePolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.SetMaintenancePolicyRequest, - com.google.container.v1beta1.Operation>( - service, METHODID_SET_MAINTENANCE_POLICY))) - .addMethod( - getListUsableSubnetworksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.ListUsableSubnetworksRequest, - com.google.container.v1beta1.ListUsableSubnetworksResponse>( - service, METHODID_LIST_USABLE_SUBNETWORKS))) - .addMethod( - getCheckAutopilotCompatibilityMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.CheckAutopilotCompatibilityRequest, - com.google.container.v1beta1.CheckAutopilotCompatibilityResponse>( - service, METHODID_CHECK_AUTOPILOT_COMPATIBILITY))) - .addMethod( - getListLocationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.container.v1beta1.ListLocationsRequest, - com.google.container.v1beta1.ListLocationsResponse>( - service, METHODID_LIST_LOCATIONS))) - .build(); - } - - 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 java.lang.String methodName; - - ClusterManagerMethodDescriptorSupplier(java.lang.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(getGetJSONWebKeysMethod()) - .addMethod(getListNodePoolsMethod()) - .addMethod(getGetNodePoolMethod()) - .addMethod(getCreateNodePoolMethod()) - .addMethod(getDeleteNodePoolMethod()) - .addMethod(getCompleteNodePoolUpgradeMethod()) - .addMethod(getRollbackNodePoolUpgradeMethod()) - .addMethod(getSetNodePoolManagementMethod()) - .addMethod(getSetLabelsMethod()) - .addMethod(getSetLegacyAbacMethod()) - .addMethod(getStartIPRotationMethod()) - .addMethod(getCompleteIPRotationMethod()) - .addMethod(getSetNodePoolSizeMethod()) - .addMethod(getSetNetworkPolicyMethod()) - .addMethod(getSetMaintenancePolicyMethod()) - .addMethod(getListUsableSubnetworksMethod()) - .addMethod(getCheckAutopilotCompatibilityMethod()) - .addMethod(getListLocationsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AcceleratorConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AcceleratorConfig.java deleted file mode 100644 index 2c5fb52ff81e..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AcceleratorConfig.java +++ /dev/null @@ -1,1508 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * AcceleratorConfig represents a Hardware Accelerator request.
- * 
- * - * Protobuf type {@code google.container.v1.AcceleratorConfig} - */ -public final class AcceleratorConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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_ = ""; - gpuPartitionSize_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AcceleratorConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AcceleratorConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AcceleratorConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.AcceleratorConfig.class, - com.google.container.v1.AcceleratorConfig.Builder.class); - } - - private int bitField0_; - public static final int ACCELERATOR_COUNT_FIELD_NUMBER = 1; - private long acceleratorCount_ = 0L; - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - 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; - } - } - - public static final int GPU_PARTITION_SIZE_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object gpuPartitionSize_ = ""; - /** - * - * - *
-   * Size of partitions to create on the GPU. Valid values are described in the
-   * NVIDIA [mig user
-   * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
-   * 
- * - * string gpu_partition_size = 3; - * - * @return The gpuPartitionSize. - */ - @java.lang.Override - public java.lang.String getGpuPartitionSize() { - java.lang.Object ref = gpuPartitionSize_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gpuPartitionSize_ = s; - return s; - } - } - /** - * - * - *
-   * Size of partitions to create on the GPU. Valid values are described in the
-   * NVIDIA [mig user
-   * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
-   * 
- * - * string gpu_partition_size = 3; - * - * @return The bytes for gpuPartitionSize. - */ - @java.lang.Override - public com.google.protobuf.ByteString getGpuPartitionSizeBytes() { - java.lang.Object ref = gpuPartitionSize_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - gpuPartitionSize_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GPU_SHARING_CONFIG_FIELD_NUMBER = 5; - private com.google.container.v1.GPUSharingConfig gpuSharingConfig_; - /** - * - * - *
-   * The configuration for GPU sharing options.
-   * 
- * - * optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; - * - * @return Whether the gpuSharingConfig field is set. - */ - @java.lang.Override - public boolean hasGpuSharingConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * The configuration for GPU sharing options.
-   * 
- * - * optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; - * - * @return The gpuSharingConfig. - */ - @java.lang.Override - public com.google.container.v1.GPUSharingConfig getGpuSharingConfig() { - return gpuSharingConfig_ == null - ? com.google.container.v1.GPUSharingConfig.getDefaultInstance() - : gpuSharingConfig_; - } - /** - * - * - *
-   * The configuration for GPU sharing options.
-   * 
- * - * optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; - */ - @java.lang.Override - public com.google.container.v1.GPUSharingConfigOrBuilder getGpuSharingConfigOrBuilder() { - return gpuSharingConfig_ == null - ? com.google.container.v1.GPUSharingConfig.getDefaultInstance() - : gpuSharingConfig_; - } - - public static final int GPU_DRIVER_INSTALLATION_CONFIG_FIELD_NUMBER = 6; - private com.google.container.v1.GPUDriverInstallationConfig gpuDriverInstallationConfig_; - /** - * - * - *
-   * The configuration for auto installation of GPU driver.
-   * 
- * - * - * optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; - * - * - * @return Whether the gpuDriverInstallationConfig field is set. - */ - @java.lang.Override - public boolean hasGpuDriverInstallationConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * The configuration for auto installation of GPU driver.
-   * 
- * - * - * optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; - * - * - * @return The gpuDriverInstallationConfig. - */ - @java.lang.Override - public com.google.container.v1.GPUDriverInstallationConfig getGpuDriverInstallationConfig() { - return gpuDriverInstallationConfig_ == null - ? com.google.container.v1.GPUDriverInstallationConfig.getDefaultInstance() - : gpuDriverInstallationConfig_; - } - /** - * - * - *
-   * The configuration for auto installation of GPU driver.
-   * 
- * - * - * optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; - * - */ - @java.lang.Override - public com.google.container.v1.GPUDriverInstallationConfigOrBuilder - getGpuDriverInstallationConfigOrBuilder() { - return gpuDriverInstallationConfig_ == null - ? com.google.container.v1.GPUDriverInstallationConfig.getDefaultInstance() - : gpuDriverInstallationConfig_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(acceleratorType_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, acceleratorType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gpuPartitionSize_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, gpuPartitionSize_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(5, getGpuSharingConfig()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(6, getGpuDriverInstallationConfig()); - } - getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(acceleratorType_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, acceleratorType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gpuPartitionSize_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, gpuPartitionSize_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getGpuSharingConfig()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, getGpuDriverInstallationConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.AcceleratorConfig)) { - return super.equals(obj); - } - com.google.container.v1.AcceleratorConfig other = - (com.google.container.v1.AcceleratorConfig) obj; - - if (getAcceleratorCount() != other.getAcceleratorCount()) return false; - if (!getAcceleratorType().equals(other.getAcceleratorType())) return false; - if (!getGpuPartitionSize().equals(other.getGpuPartitionSize())) return false; - if (hasGpuSharingConfig() != other.hasGpuSharingConfig()) return false; - if (hasGpuSharingConfig()) { - if (!getGpuSharingConfig().equals(other.getGpuSharingConfig())) return false; - } - if (hasGpuDriverInstallationConfig() != other.hasGpuDriverInstallationConfig()) return false; - if (hasGpuDriverInstallationConfig()) { - if (!getGpuDriverInstallationConfig().equals(other.getGpuDriverInstallationConfig())) - return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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 = (37 * hash) + GPU_PARTITION_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getGpuPartitionSize().hashCode(); - if (hasGpuSharingConfig()) { - hash = (37 * hash) + GPU_SHARING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getGpuSharingConfig().hashCode(); - } - if (hasGpuDriverInstallationConfig()) { - hash = (37 * hash) + GPU_DRIVER_INSTALLATION_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getGpuDriverInstallationConfig().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.AcceleratorConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.AcceleratorConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.AcceleratorConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.AcceleratorConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.AcceleratorConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.AcceleratorConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.AcceleratorConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.AcceleratorConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.AcceleratorConfig) - com.google.container.v1.AcceleratorConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AcceleratorConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AcceleratorConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.AcceleratorConfig.class, - com.google.container.v1.AcceleratorConfig.Builder.class); - } - - // Construct using com.google.container.v1.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) { - getGpuSharingConfigFieldBuilder(); - getGpuDriverInstallationConfigFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - acceleratorCount_ = 0L; - acceleratorType_ = ""; - gpuPartitionSize_ = ""; - gpuSharingConfig_ = null; - if (gpuSharingConfigBuilder_ != null) { - gpuSharingConfigBuilder_.dispose(); - gpuSharingConfigBuilder_ = null; - } - gpuDriverInstallationConfig_ = null; - if (gpuDriverInstallationConfigBuilder_ != null) { - gpuDriverInstallationConfigBuilder_.dispose(); - gpuDriverInstallationConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AcceleratorConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.AcceleratorConfig getDefaultInstanceForType() { - return com.google.container.v1.AcceleratorConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.AcceleratorConfig build() { - com.google.container.v1.AcceleratorConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.AcceleratorConfig buildPartial() { - com.google.container.v1.AcceleratorConfig result = - new com.google.container.v1.AcceleratorConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.AcceleratorConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.acceleratorCount_ = acceleratorCount_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.acceleratorType_ = acceleratorType_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.gpuPartitionSize_ = gpuPartitionSize_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.gpuSharingConfig_ = - gpuSharingConfigBuilder_ == null ? gpuSharingConfig_ : gpuSharingConfigBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.gpuDriverInstallationConfig_ = - gpuDriverInstallationConfigBuilder_ == null - ? gpuDriverInstallationConfig_ - : gpuDriverInstallationConfigBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.AcceleratorConfig) { - return mergeFrom((com.google.container.v1.AcceleratorConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.AcceleratorConfig other) { - if (other == com.google.container.v1.AcceleratorConfig.getDefaultInstance()) return this; - if (other.getAcceleratorCount() != 0L) { - setAcceleratorCount(other.getAcceleratorCount()); - } - if (!other.getAcceleratorType().isEmpty()) { - acceleratorType_ = other.acceleratorType_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getGpuPartitionSize().isEmpty()) { - gpuPartitionSize_ = other.gpuPartitionSize_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasGpuSharingConfig()) { - mergeGpuSharingConfig(other.getGpuSharingConfig()); - } - if (other.hasGpuDriverInstallationConfig()) { - mergeGpuDriverInstallationConfig(other.getGpuDriverInstallationConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - acceleratorCount_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - acceleratorType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - gpuPartitionSize_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 42: - { - input.readMessage( - getGpuSharingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 50: - { - input.readMessage( - getGpuDriverInstallationConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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() { - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000002; - 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(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object gpuPartitionSize_ = ""; - /** - * - * - *
-     * Size of partitions to create on the GPU. Valid values are described in the
-     * NVIDIA [mig user
-     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
-     * 
- * - * string gpu_partition_size = 3; - * - * @return The gpuPartitionSize. - */ - public java.lang.String getGpuPartitionSize() { - java.lang.Object ref = gpuPartitionSize_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gpuPartitionSize_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Size of partitions to create on the GPU. Valid values are described in the
-     * NVIDIA [mig user
-     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
-     * 
- * - * string gpu_partition_size = 3; - * - * @return The bytes for gpuPartitionSize. - */ - public com.google.protobuf.ByteString getGpuPartitionSizeBytes() { - java.lang.Object ref = gpuPartitionSize_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - gpuPartitionSize_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Size of partitions to create on the GPU. Valid values are described in the
-     * NVIDIA [mig user
-     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
-     * 
- * - * string gpu_partition_size = 3; - * - * @param value The gpuPartitionSize to set. - * @return This builder for chaining. - */ - public Builder setGpuPartitionSize(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - gpuPartitionSize_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Size of partitions to create on the GPU. Valid values are described in the
-     * NVIDIA [mig user
-     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
-     * 
- * - * string gpu_partition_size = 3; - * - * @return This builder for chaining. - */ - public Builder clearGpuPartitionSize() { - gpuPartitionSize_ = getDefaultInstance().getGpuPartitionSize(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Size of partitions to create on the GPU. Valid values are described in the
-     * NVIDIA [mig user
-     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
-     * 
- * - * string gpu_partition_size = 3; - * - * @param value The bytes for gpuPartitionSize to set. - * @return This builder for chaining. - */ - public Builder setGpuPartitionSizeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - gpuPartitionSize_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private com.google.container.v1.GPUSharingConfig gpuSharingConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GPUSharingConfig, - com.google.container.v1.GPUSharingConfig.Builder, - com.google.container.v1.GPUSharingConfigOrBuilder> - gpuSharingConfigBuilder_; - /** - * - * - *
-     * The configuration for GPU sharing options.
-     * 
- * - * optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; - * - * @return Whether the gpuSharingConfig field is set. - */ - public boolean hasGpuSharingConfig() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-     * The configuration for GPU sharing options.
-     * 
- * - * optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; - * - * @return The gpuSharingConfig. - */ - public com.google.container.v1.GPUSharingConfig getGpuSharingConfig() { - if (gpuSharingConfigBuilder_ == null) { - return gpuSharingConfig_ == null - ? com.google.container.v1.GPUSharingConfig.getDefaultInstance() - : gpuSharingConfig_; - } else { - return gpuSharingConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The configuration for GPU sharing options.
-     * 
- * - * optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; - */ - public Builder setGpuSharingConfig(com.google.container.v1.GPUSharingConfig value) { - if (gpuSharingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gpuSharingConfig_ = value; - } else { - gpuSharingConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * The configuration for GPU sharing options.
-     * 
- * - * optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; - */ - public Builder setGpuSharingConfig( - com.google.container.v1.GPUSharingConfig.Builder builderForValue) { - if (gpuSharingConfigBuilder_ == null) { - gpuSharingConfig_ = builderForValue.build(); - } else { - gpuSharingConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * The configuration for GPU sharing options.
-     * 
- * - * optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; - */ - public Builder mergeGpuSharingConfig(com.google.container.v1.GPUSharingConfig value) { - if (gpuSharingConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && gpuSharingConfig_ != null - && gpuSharingConfig_ != com.google.container.v1.GPUSharingConfig.getDefaultInstance()) { - getGpuSharingConfigBuilder().mergeFrom(value); - } else { - gpuSharingConfig_ = value; - } - } else { - gpuSharingConfigBuilder_.mergeFrom(value); - } - if (gpuSharingConfig_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The configuration for GPU sharing options.
-     * 
- * - * optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; - */ - public Builder clearGpuSharingConfig() { - bitField0_ = (bitField0_ & ~0x00000008); - gpuSharingConfig_ = null; - if (gpuSharingConfigBuilder_ != null) { - gpuSharingConfigBuilder_.dispose(); - gpuSharingConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The configuration for GPU sharing options.
-     * 
- * - * optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; - */ - public com.google.container.v1.GPUSharingConfig.Builder getGpuSharingConfigBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getGpuSharingConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The configuration for GPU sharing options.
-     * 
- * - * optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; - */ - public com.google.container.v1.GPUSharingConfigOrBuilder getGpuSharingConfigOrBuilder() { - if (gpuSharingConfigBuilder_ != null) { - return gpuSharingConfigBuilder_.getMessageOrBuilder(); - } else { - return gpuSharingConfig_ == null - ? com.google.container.v1.GPUSharingConfig.getDefaultInstance() - : gpuSharingConfig_; - } - } - /** - * - * - *
-     * The configuration for GPU sharing options.
-     * 
- * - * optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GPUSharingConfig, - com.google.container.v1.GPUSharingConfig.Builder, - com.google.container.v1.GPUSharingConfigOrBuilder> - getGpuSharingConfigFieldBuilder() { - if (gpuSharingConfigBuilder_ == null) { - gpuSharingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GPUSharingConfig, - com.google.container.v1.GPUSharingConfig.Builder, - com.google.container.v1.GPUSharingConfigOrBuilder>( - getGpuSharingConfig(), getParentForChildren(), isClean()); - gpuSharingConfig_ = null; - } - return gpuSharingConfigBuilder_; - } - - private com.google.container.v1.GPUDriverInstallationConfig gpuDriverInstallationConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GPUDriverInstallationConfig, - com.google.container.v1.GPUDriverInstallationConfig.Builder, - com.google.container.v1.GPUDriverInstallationConfigOrBuilder> - gpuDriverInstallationConfigBuilder_; - /** - * - * - *
-     * The configuration for auto installation of GPU driver.
-     * 
- * - * - * optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; - * - * - * @return Whether the gpuDriverInstallationConfig field is set. - */ - public boolean hasGpuDriverInstallationConfig() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-     * The configuration for auto installation of GPU driver.
-     * 
- * - * - * optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; - * - * - * @return The gpuDriverInstallationConfig. - */ - public com.google.container.v1.GPUDriverInstallationConfig getGpuDriverInstallationConfig() { - if (gpuDriverInstallationConfigBuilder_ == null) { - return gpuDriverInstallationConfig_ == null - ? com.google.container.v1.GPUDriverInstallationConfig.getDefaultInstance() - : gpuDriverInstallationConfig_; - } else { - return gpuDriverInstallationConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The configuration for auto installation of GPU driver.
-     * 
- * - * - * optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; - * - */ - public Builder setGpuDriverInstallationConfig( - com.google.container.v1.GPUDriverInstallationConfig value) { - if (gpuDriverInstallationConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gpuDriverInstallationConfig_ = value; - } else { - gpuDriverInstallationConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * The configuration for auto installation of GPU driver.
-     * 
- * - * - * optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; - * - */ - public Builder setGpuDriverInstallationConfig( - com.google.container.v1.GPUDriverInstallationConfig.Builder builderForValue) { - if (gpuDriverInstallationConfigBuilder_ == null) { - gpuDriverInstallationConfig_ = builderForValue.build(); - } else { - gpuDriverInstallationConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * The configuration for auto installation of GPU driver.
-     * 
- * - * - * optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; - * - */ - public Builder mergeGpuDriverInstallationConfig( - com.google.container.v1.GPUDriverInstallationConfig value) { - if (gpuDriverInstallationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && gpuDriverInstallationConfig_ != null - && gpuDriverInstallationConfig_ - != com.google.container.v1.GPUDriverInstallationConfig.getDefaultInstance()) { - getGpuDriverInstallationConfigBuilder().mergeFrom(value); - } else { - gpuDriverInstallationConfig_ = value; - } - } else { - gpuDriverInstallationConfigBuilder_.mergeFrom(value); - } - if (gpuDriverInstallationConfig_ != null) { - bitField0_ |= 0x00000010; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The configuration for auto installation of GPU driver.
-     * 
- * - * - * optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; - * - */ - public Builder clearGpuDriverInstallationConfig() { - bitField0_ = (bitField0_ & ~0x00000010); - gpuDriverInstallationConfig_ = null; - if (gpuDriverInstallationConfigBuilder_ != null) { - gpuDriverInstallationConfigBuilder_.dispose(); - gpuDriverInstallationConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The configuration for auto installation of GPU driver.
-     * 
- * - * - * optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; - * - */ - public com.google.container.v1.GPUDriverInstallationConfig.Builder - getGpuDriverInstallationConfigBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getGpuDriverInstallationConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The configuration for auto installation of GPU driver.
-     * 
- * - * - * optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; - * - */ - public com.google.container.v1.GPUDriverInstallationConfigOrBuilder - getGpuDriverInstallationConfigOrBuilder() { - if (gpuDriverInstallationConfigBuilder_ != null) { - return gpuDriverInstallationConfigBuilder_.getMessageOrBuilder(); - } else { - return gpuDriverInstallationConfig_ == null - ? com.google.container.v1.GPUDriverInstallationConfig.getDefaultInstance() - : gpuDriverInstallationConfig_; - } - } - /** - * - * - *
-     * The configuration for auto installation of GPU driver.
-     * 
- * - * - * optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GPUDriverInstallationConfig, - com.google.container.v1.GPUDriverInstallationConfig.Builder, - com.google.container.v1.GPUDriverInstallationConfigOrBuilder> - getGpuDriverInstallationConfigFieldBuilder() { - if (gpuDriverInstallationConfigBuilder_ == null) { - gpuDriverInstallationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GPUDriverInstallationConfig, - com.google.container.v1.GPUDriverInstallationConfig.Builder, - com.google.container.v1.GPUDriverInstallationConfigOrBuilder>( - getGpuDriverInstallationConfig(), getParentForChildren(), isClean()); - gpuDriverInstallationConfig_ = null; - } - return gpuDriverInstallationConfigBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.AcceleratorConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.AcceleratorConfig) - private static final com.google.container.v1.AcceleratorConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.AcceleratorConfig(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.AcceleratorConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AcceleratorConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AcceleratorConfigOrBuilder.java deleted file mode 100644 index c3d3a1bc19cc..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AcceleratorConfigOrBuilder.java +++ /dev/null @@ -1,172 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface AcceleratorConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.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(); - - /** - * - * - *
-   * Size of partitions to create on the GPU. Valid values are described in the
-   * NVIDIA [mig user
-   * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
-   * 
- * - * string gpu_partition_size = 3; - * - * @return The gpuPartitionSize. - */ - java.lang.String getGpuPartitionSize(); - /** - * - * - *
-   * Size of partitions to create on the GPU. Valid values are described in the
-   * NVIDIA [mig user
-   * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
-   * 
- * - * string gpu_partition_size = 3; - * - * @return The bytes for gpuPartitionSize. - */ - com.google.protobuf.ByteString getGpuPartitionSizeBytes(); - - /** - * - * - *
-   * The configuration for GPU sharing options.
-   * 
- * - * optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; - * - * @return Whether the gpuSharingConfig field is set. - */ - boolean hasGpuSharingConfig(); - /** - * - * - *
-   * The configuration for GPU sharing options.
-   * 
- * - * optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; - * - * @return The gpuSharingConfig. - */ - com.google.container.v1.GPUSharingConfig getGpuSharingConfig(); - /** - * - * - *
-   * The configuration for GPU sharing options.
-   * 
- * - * optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; - */ - com.google.container.v1.GPUSharingConfigOrBuilder getGpuSharingConfigOrBuilder(); - - /** - * - * - *
-   * The configuration for auto installation of GPU driver.
-   * 
- * - * - * optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; - * - * - * @return Whether the gpuDriverInstallationConfig field is set. - */ - boolean hasGpuDriverInstallationConfig(); - /** - * - * - *
-   * The configuration for auto installation of GPU driver.
-   * 
- * - * - * optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; - * - * - * @return The gpuDriverInstallationConfig. - */ - com.google.container.v1.GPUDriverInstallationConfig getGpuDriverInstallationConfig(); - /** - * - * - *
-   * The configuration for auto installation of GPU driver.
-   * 
- * - * - * optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; - * - */ - com.google.container.v1.GPUDriverInstallationConfigOrBuilder - getGpuDriverInstallationConfigOrBuilder(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalNodeNetworkConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalNodeNetworkConfig.java deleted file mode 100644 index 822cf816b64d..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalNodeNetworkConfig.java +++ /dev/null @@ -1,809 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * AdditionalNodeNetworkConfig is the configuration for additional node networks
- * within the NodeNetworkConfig message
- * 
- * - * Protobuf type {@code google.container.v1.AdditionalNodeNetworkConfig} - */ -public final class AdditionalNodeNetworkConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.AdditionalNodeNetworkConfig) - AdditionalNodeNetworkConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use AdditionalNodeNetworkConfig.newBuilder() to construct. - private AdditionalNodeNetworkConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AdditionalNodeNetworkConfig() { - network_ = ""; - subnetwork_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AdditionalNodeNetworkConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AdditionalNodeNetworkConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AdditionalNodeNetworkConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.AdditionalNodeNetworkConfig.class, - com.google.container.v1.AdditionalNodeNetworkConfig.Builder.class); - } - - public static final int NETWORK_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object network_ = ""; - /** - * - * - *
-   * Name of the VPC where the additional interface belongs
-   * 
- * - * 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; - } - } - /** - * - * - *
-   * Name of the VPC where the additional interface belongs
-   * 
- * - * 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object subnetwork_ = ""; - /** - * - * - *
-   * Name of the subnetwork where the additional interface belongs
-   * 
- * - * 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; - } - } - /** - * - * - *
-   * Name of the subnetwork where the additional interface belongs
-   * 
- * - * 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; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subnetwork_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, network_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subnetwork_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.AdditionalNodeNetworkConfig)) { - return super.equals(obj); - } - com.google.container.v1.AdditionalNodeNetworkConfig other = - (com.google.container.v1.AdditionalNodeNetworkConfig) obj; - - if (!getNetwork().equals(other.getNetwork())) return false; - if (!getSubnetwork().equals(other.getSubnetwork())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.AdditionalNodeNetworkConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.AdditionalNodeNetworkConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.AdditionalNodeNetworkConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.AdditionalNodeNetworkConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.AdditionalNodeNetworkConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.AdditionalNodeNetworkConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.AdditionalNodeNetworkConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.AdditionalNodeNetworkConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.AdditionalNodeNetworkConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.AdditionalNodeNetworkConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.AdditionalNodeNetworkConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.AdditionalNodeNetworkConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.AdditionalNodeNetworkConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * AdditionalNodeNetworkConfig is the configuration for additional node networks
-   * within the NodeNetworkConfig message
-   * 
- * - * Protobuf type {@code google.container.v1.AdditionalNodeNetworkConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.AdditionalNodeNetworkConfig) - com.google.container.v1.AdditionalNodeNetworkConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AdditionalNodeNetworkConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AdditionalNodeNetworkConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.AdditionalNodeNetworkConfig.class, - com.google.container.v1.AdditionalNodeNetworkConfig.Builder.class); - } - - // Construct using com.google.container.v1.AdditionalNodeNetworkConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - network_ = ""; - subnetwork_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AdditionalNodeNetworkConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.AdditionalNodeNetworkConfig getDefaultInstanceForType() { - return com.google.container.v1.AdditionalNodeNetworkConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.AdditionalNodeNetworkConfig build() { - com.google.container.v1.AdditionalNodeNetworkConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.AdditionalNodeNetworkConfig buildPartial() { - com.google.container.v1.AdditionalNodeNetworkConfig result = - new com.google.container.v1.AdditionalNodeNetworkConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.AdditionalNodeNetworkConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.network_ = network_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.subnetwork_ = subnetwork_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.AdditionalNodeNetworkConfig) { - return mergeFrom((com.google.container.v1.AdditionalNodeNetworkConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.AdditionalNodeNetworkConfig other) { - if (other == com.google.container.v1.AdditionalNodeNetworkConfig.getDefaultInstance()) - return this; - if (!other.getNetwork().isEmpty()) { - network_ = other.network_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getSubnetwork().isEmpty()) { - subnetwork_ = other.subnetwork_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - network_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - subnetwork_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object network_ = ""; - /** - * - * - *
-     * Name of the VPC where the additional interface belongs
-     * 
- * - * 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; - } - } - /** - * - * - *
-     * Name of the VPC where the additional interface belongs
-     * 
- * - * 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; - } - } - /** - * - * - *
-     * Name of the VPC where the additional interface belongs
-     * 
- * - * 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Name of the VPC where the additional interface belongs
-     * 
- * - * string network = 1; - * - * @return This builder for chaining. - */ - public Builder clearNetwork() { - network_ = getDefaultInstance().getNetwork(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Name of the VPC where the additional interface belongs
-     * 
- * - * 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object subnetwork_ = ""; - /** - * - * - *
-     * Name of the subnetwork where the additional interface belongs
-     * 
- * - * 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; - } - } - /** - * - * - *
-     * Name of the subnetwork where the additional interface belongs
-     * 
- * - * 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; - } - } - /** - * - * - *
-     * Name of the subnetwork where the additional interface belongs
-     * 
- * - * 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Name of the subnetwork where the additional interface belongs
-     * 
- * - * string subnetwork = 2; - * - * @return This builder for chaining. - */ - public Builder clearSubnetwork() { - subnetwork_ = getDefaultInstance().getSubnetwork(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Name of the subnetwork where the additional interface belongs
-     * 
- * - * 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.AdditionalNodeNetworkConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.AdditionalNodeNetworkConfig) - private static final com.google.container.v1.AdditionalNodeNetworkConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.AdditionalNodeNetworkConfig(); - } - - public static com.google.container.v1.AdditionalNodeNetworkConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AdditionalNodeNetworkConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.AdditionalNodeNetworkConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalNodeNetworkConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalNodeNetworkConfigOrBuilder.java deleted file mode 100644 index b04609e0235e..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalNodeNetworkConfigOrBuilder.java +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface AdditionalNodeNetworkConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.AdditionalNodeNetworkConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Name of the VPC where the additional interface belongs
-   * 
- * - * string network = 1; - * - * @return The network. - */ - java.lang.String getNetwork(); - /** - * - * - *
-   * Name of the VPC where the additional interface belongs
-   * 
- * - * string network = 1; - * - * @return The bytes for network. - */ - com.google.protobuf.ByteString getNetworkBytes(); - - /** - * - * - *
-   * Name of the subnetwork where the additional interface belongs
-   * 
- * - * string subnetwork = 2; - * - * @return The subnetwork. - */ - java.lang.String getSubnetwork(); - /** - * - * - *
-   * Name of the subnetwork where the additional interface belongs
-   * 
- * - * string subnetwork = 2; - * - * @return The bytes for subnetwork. - */ - com.google.protobuf.ByteString getSubnetworkBytes(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalPodNetworkConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalPodNetworkConfig.java deleted file mode 100644 index 444b73bd7116..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalPodNetworkConfig.java +++ /dev/null @@ -1,1097 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * AdditionalPodNetworkConfig is the configuration for additional pod networks
- * within the NodeNetworkConfig message
- * 
- * - * Protobuf type {@code google.container.v1.AdditionalPodNetworkConfig} - */ -public final class AdditionalPodNetworkConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.AdditionalPodNetworkConfig) - AdditionalPodNetworkConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use AdditionalPodNetworkConfig.newBuilder() to construct. - private AdditionalPodNetworkConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AdditionalPodNetworkConfig() { - subnetwork_ = ""; - secondaryPodRange_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AdditionalPodNetworkConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AdditionalPodNetworkConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AdditionalPodNetworkConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.AdditionalPodNetworkConfig.class, - com.google.container.v1.AdditionalPodNetworkConfig.Builder.class); - } - - private int bitField0_; - public static final int SUBNETWORK_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object subnetwork_ = ""; - /** - * - * - *
-   * Name of the subnetwork where the additional pod network belongs
-   * 
- * - * 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; - } - } - /** - * - * - *
-   * Name of the subnetwork where the additional pod network belongs
-   * 
- * - * 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 SECONDARY_POD_RANGE_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object secondaryPodRange_ = ""; - /** - * - * - *
-   * The name of the secondary range on the subnet which provides IP address for
-   * this pod range
-   * 
- * - * string secondary_pod_range = 2; - * - * @return The secondaryPodRange. - */ - @java.lang.Override - public java.lang.String getSecondaryPodRange() { - java.lang.Object ref = secondaryPodRange_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - secondaryPodRange_ = s; - return s; - } - } - /** - * - * - *
-   * The name of the secondary range on the subnet which provides IP address for
-   * this pod range
-   * 
- * - * string secondary_pod_range = 2; - * - * @return The bytes for secondaryPodRange. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSecondaryPodRangeBytes() { - java.lang.Object ref = secondaryPodRange_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - secondaryPodRange_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MAX_PODS_PER_NODE_FIELD_NUMBER = 3; - private com.google.container.v1.MaxPodsConstraint maxPodsPerNode_; - /** - * - * - *
-   * The maximum number of pods per node which use this pod network
-   * 
- * - * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; - * - * @return Whether the maxPodsPerNode field is set. - */ - @java.lang.Override - public boolean hasMaxPodsPerNode() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * The maximum number of pods per node which use this pod network
-   * 
- * - * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; - * - * @return The maxPodsPerNode. - */ - @java.lang.Override - public com.google.container.v1.MaxPodsConstraint getMaxPodsPerNode() { - return maxPodsPerNode_ == null - ? com.google.container.v1.MaxPodsConstraint.getDefaultInstance() - : maxPodsPerNode_; - } - /** - * - * - *
-   * The maximum number of pods per node which use this pod network
-   * 
- * - * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; - */ - @java.lang.Override - public com.google.container.v1.MaxPodsConstraintOrBuilder getMaxPodsPerNodeOrBuilder() { - return maxPodsPerNode_ == null - ? com.google.container.v1.MaxPodsConstraint.getDefaultInstance() - : 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subnetwork_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secondaryPodRange_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, secondaryPodRange_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getMaxPodsPerNode()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subnetwork_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secondaryPodRange_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, secondaryPodRange_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMaxPodsPerNode()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.AdditionalPodNetworkConfig)) { - return super.equals(obj); - } - com.google.container.v1.AdditionalPodNetworkConfig other = - (com.google.container.v1.AdditionalPodNetworkConfig) obj; - - if (!getSubnetwork().equals(other.getSubnetwork())) return false; - if (!getSecondaryPodRange().equals(other.getSecondaryPodRange())) return false; - if (hasMaxPodsPerNode() != other.hasMaxPodsPerNode()) return false; - if (hasMaxPodsPerNode()) { - if (!getMaxPodsPerNode().equals(other.getMaxPodsPerNode())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + SECONDARY_POD_RANGE_FIELD_NUMBER; - hash = (53 * hash) + getSecondaryPodRange().hashCode(); - if (hasMaxPodsPerNode()) { - hash = (37 * hash) + MAX_PODS_PER_NODE_FIELD_NUMBER; - hash = (53 * hash) + getMaxPodsPerNode().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.AdditionalPodNetworkConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.AdditionalPodNetworkConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.AdditionalPodNetworkConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.AdditionalPodNetworkConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.AdditionalPodNetworkConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.AdditionalPodNetworkConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.AdditionalPodNetworkConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.AdditionalPodNetworkConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.AdditionalPodNetworkConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.AdditionalPodNetworkConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.AdditionalPodNetworkConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.AdditionalPodNetworkConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.AdditionalPodNetworkConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * AdditionalPodNetworkConfig is the configuration for additional pod networks
-   * within the NodeNetworkConfig message
-   * 
- * - * Protobuf type {@code google.container.v1.AdditionalPodNetworkConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.AdditionalPodNetworkConfig) - com.google.container.v1.AdditionalPodNetworkConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AdditionalPodNetworkConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AdditionalPodNetworkConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.AdditionalPodNetworkConfig.class, - com.google.container.v1.AdditionalPodNetworkConfig.Builder.class); - } - - // Construct using com.google.container.v1.AdditionalPodNetworkConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getMaxPodsPerNodeFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - subnetwork_ = ""; - secondaryPodRange_ = ""; - maxPodsPerNode_ = null; - if (maxPodsPerNodeBuilder_ != null) { - maxPodsPerNodeBuilder_.dispose(); - maxPodsPerNodeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AdditionalPodNetworkConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.AdditionalPodNetworkConfig getDefaultInstanceForType() { - return com.google.container.v1.AdditionalPodNetworkConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.AdditionalPodNetworkConfig build() { - com.google.container.v1.AdditionalPodNetworkConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.AdditionalPodNetworkConfig buildPartial() { - com.google.container.v1.AdditionalPodNetworkConfig result = - new com.google.container.v1.AdditionalPodNetworkConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.AdditionalPodNetworkConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.subnetwork_ = subnetwork_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.secondaryPodRange_ = secondaryPodRange_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.maxPodsPerNode_ = - maxPodsPerNodeBuilder_ == null ? maxPodsPerNode_ : maxPodsPerNodeBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.AdditionalPodNetworkConfig) { - return mergeFrom((com.google.container.v1.AdditionalPodNetworkConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.AdditionalPodNetworkConfig other) { - if (other == com.google.container.v1.AdditionalPodNetworkConfig.getDefaultInstance()) - return this; - if (!other.getSubnetwork().isEmpty()) { - subnetwork_ = other.subnetwork_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getSecondaryPodRange().isEmpty()) { - secondaryPodRange_ = other.secondaryPodRange_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasMaxPodsPerNode()) { - mergeMaxPodsPerNode(other.getMaxPodsPerNode()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - subnetwork_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - secondaryPodRange_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getMaxPodsPerNodeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object subnetwork_ = ""; - /** - * - * - *
-     * Name of the subnetwork where the additional pod network belongs
-     * 
- * - * 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; - } - } - /** - * - * - *
-     * Name of the subnetwork where the additional pod network belongs
-     * 
- * - * 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; - } - } - /** - * - * - *
-     * Name of the subnetwork where the additional pod network belongs
-     * 
- * - * 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Name of the subnetwork where the additional pod network belongs
-     * 
- * - * string subnetwork = 1; - * - * @return This builder for chaining. - */ - public Builder clearSubnetwork() { - subnetwork_ = getDefaultInstance().getSubnetwork(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Name of the subnetwork where the additional pod network belongs
-     * 
- * - * 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object secondaryPodRange_ = ""; - /** - * - * - *
-     * The name of the secondary range on the subnet which provides IP address for
-     * this pod range
-     * 
- * - * string secondary_pod_range = 2; - * - * @return The secondaryPodRange. - */ - public java.lang.String getSecondaryPodRange() { - java.lang.Object ref = secondaryPodRange_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - secondaryPodRange_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name of the secondary range on the subnet which provides IP address for
-     * this pod range
-     * 
- * - * string secondary_pod_range = 2; - * - * @return The bytes for secondaryPodRange. - */ - public com.google.protobuf.ByteString getSecondaryPodRangeBytes() { - java.lang.Object ref = secondaryPodRange_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - secondaryPodRange_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name of the secondary range on the subnet which provides IP address for
-     * this pod range
-     * 
- * - * string secondary_pod_range = 2; - * - * @param value The secondaryPodRange to set. - * @return This builder for chaining. - */ - public Builder setSecondaryPodRange(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - secondaryPodRange_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the secondary range on the subnet which provides IP address for
-     * this pod range
-     * 
- * - * string secondary_pod_range = 2; - * - * @return This builder for chaining. - */ - public Builder clearSecondaryPodRange() { - secondaryPodRange_ = getDefaultInstance().getSecondaryPodRange(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the secondary range on the subnet which provides IP address for
-     * this pod range
-     * 
- * - * string secondary_pod_range = 2; - * - * @param value The bytes for secondaryPodRange to set. - * @return This builder for chaining. - */ - public Builder setSecondaryPodRangeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - secondaryPodRange_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.container.v1.MaxPodsConstraint maxPodsPerNode_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MaxPodsConstraint, - com.google.container.v1.MaxPodsConstraint.Builder, - com.google.container.v1.MaxPodsConstraintOrBuilder> - maxPodsPerNodeBuilder_; - /** - * - * - *
-     * The maximum number of pods per node which use this pod network
-     * 
- * - * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; - * - * @return Whether the maxPodsPerNode field is set. - */ - public boolean hasMaxPodsPerNode() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * The maximum number of pods per node which use this pod network
-     * 
- * - * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; - * - * @return The maxPodsPerNode. - */ - public com.google.container.v1.MaxPodsConstraint getMaxPodsPerNode() { - if (maxPodsPerNodeBuilder_ == null) { - return maxPodsPerNode_ == null - ? com.google.container.v1.MaxPodsConstraint.getDefaultInstance() - : maxPodsPerNode_; - } else { - return maxPodsPerNodeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The maximum number of pods per node which use this pod network
-     * 
- * - * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; - */ - public Builder setMaxPodsPerNode(com.google.container.v1.MaxPodsConstraint value) { - if (maxPodsPerNodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - maxPodsPerNode_ = value; - } else { - maxPodsPerNodeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The maximum number of pods per node which use this pod network
-     * 
- * - * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; - */ - public Builder setMaxPodsPerNode( - com.google.container.v1.MaxPodsConstraint.Builder builderForValue) { - if (maxPodsPerNodeBuilder_ == null) { - maxPodsPerNode_ = builderForValue.build(); - } else { - maxPodsPerNodeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The maximum number of pods per node which use this pod network
-     * 
- * - * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; - */ - public Builder mergeMaxPodsPerNode(com.google.container.v1.MaxPodsConstraint value) { - if (maxPodsPerNodeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && maxPodsPerNode_ != null - && maxPodsPerNode_ != com.google.container.v1.MaxPodsConstraint.getDefaultInstance()) { - getMaxPodsPerNodeBuilder().mergeFrom(value); - } else { - maxPodsPerNode_ = value; - } - } else { - maxPodsPerNodeBuilder_.mergeFrom(value); - } - if (maxPodsPerNode_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The maximum number of pods per node which use this pod network
-     * 
- * - * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; - */ - public Builder clearMaxPodsPerNode() { - bitField0_ = (bitField0_ & ~0x00000004); - maxPodsPerNode_ = null; - if (maxPodsPerNodeBuilder_ != null) { - maxPodsPerNodeBuilder_.dispose(); - maxPodsPerNodeBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The maximum number of pods per node which use this pod network
-     * 
- * - * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; - */ - public com.google.container.v1.MaxPodsConstraint.Builder getMaxPodsPerNodeBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getMaxPodsPerNodeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The maximum number of pods per node which use this pod network
-     * 
- * - * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; - */ - public com.google.container.v1.MaxPodsConstraintOrBuilder getMaxPodsPerNodeOrBuilder() { - if (maxPodsPerNodeBuilder_ != null) { - return maxPodsPerNodeBuilder_.getMessageOrBuilder(); - } else { - return maxPodsPerNode_ == null - ? com.google.container.v1.MaxPodsConstraint.getDefaultInstance() - : maxPodsPerNode_; - } - } - /** - * - * - *
-     * The maximum number of pods per node which use this pod network
-     * 
- * - * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MaxPodsConstraint, - com.google.container.v1.MaxPodsConstraint.Builder, - com.google.container.v1.MaxPodsConstraintOrBuilder> - getMaxPodsPerNodeFieldBuilder() { - if (maxPodsPerNodeBuilder_ == null) { - maxPodsPerNodeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MaxPodsConstraint, - com.google.container.v1.MaxPodsConstraint.Builder, - com.google.container.v1.MaxPodsConstraintOrBuilder>( - getMaxPodsPerNode(), getParentForChildren(), isClean()); - maxPodsPerNode_ = null; - } - return maxPodsPerNodeBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.AdditionalPodNetworkConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.AdditionalPodNetworkConfig) - private static final com.google.container.v1.AdditionalPodNetworkConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.AdditionalPodNetworkConfig(); - } - - public static com.google.container.v1.AdditionalPodNetworkConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AdditionalPodNetworkConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.AdditionalPodNetworkConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalPodNetworkConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalPodNetworkConfigOrBuilder.java deleted file mode 100644 index cda69c7cae3f..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalPodNetworkConfigOrBuilder.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface AdditionalPodNetworkConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.AdditionalPodNetworkConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Name of the subnetwork where the additional pod network belongs
-   * 
- * - * string subnetwork = 1; - * - * @return The subnetwork. - */ - java.lang.String getSubnetwork(); - /** - * - * - *
-   * Name of the subnetwork where the additional pod network belongs
-   * 
- * - * string subnetwork = 1; - * - * @return The bytes for subnetwork. - */ - com.google.protobuf.ByteString getSubnetworkBytes(); - - /** - * - * - *
-   * The name of the secondary range on the subnet which provides IP address for
-   * this pod range
-   * 
- * - * string secondary_pod_range = 2; - * - * @return The secondaryPodRange. - */ - java.lang.String getSecondaryPodRange(); - /** - * - * - *
-   * The name of the secondary range on the subnet which provides IP address for
-   * this pod range
-   * 
- * - * string secondary_pod_range = 2; - * - * @return The bytes for secondaryPodRange. - */ - com.google.protobuf.ByteString getSecondaryPodRangeBytes(); - - /** - * - * - *
-   * The maximum number of pods per node which use this pod network
-   * 
- * - * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; - * - * @return Whether the maxPodsPerNode field is set. - */ - boolean hasMaxPodsPerNode(); - /** - * - * - *
-   * The maximum number of pods per node which use this pod network
-   * 
- * - * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; - * - * @return The maxPodsPerNode. - */ - com.google.container.v1.MaxPodsConstraint getMaxPodsPerNode(); - /** - * - * - *
-   * The maximum number of pods per node which use this pod network
-   * 
- * - * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; - */ - com.google.container.v1.MaxPodsConstraintOrBuilder getMaxPodsPerNodeOrBuilder(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalPodRangesConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalPodRangesConfig.java deleted file mode 100644 index f8ca2bac713e..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalPodRangesConfig.java +++ /dev/null @@ -1,1260 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * AdditionalPodRangesConfig is the configuration for additional pod secondary
- * ranges supporting the ClusterUpdate message.
- * 
- * - * Protobuf type {@code google.container.v1.AdditionalPodRangesConfig} - */ -public final class AdditionalPodRangesConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.AdditionalPodRangesConfig) - AdditionalPodRangesConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use AdditionalPodRangesConfig.newBuilder() to construct. - private AdditionalPodRangesConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AdditionalPodRangesConfig() { - podRangeNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); - podRangeInfo_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AdditionalPodRangesConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AdditionalPodRangesConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AdditionalPodRangesConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.AdditionalPodRangesConfig.class, - com.google.container.v1.AdditionalPodRangesConfig.Builder.class); - } - - public static final int POD_RANGE_NAMES_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList podRangeNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * Name for pod secondary ipv4 range which has the actual range defined ahead.
-   * 
- * - * repeated string pod_range_names = 1; - * - * @return A list containing the podRangeNames. - */ - public com.google.protobuf.ProtocolStringList getPodRangeNamesList() { - return podRangeNames_; - } - /** - * - * - *
-   * Name for pod secondary ipv4 range which has the actual range defined ahead.
-   * 
- * - * repeated string pod_range_names = 1; - * - * @return The count of podRangeNames. - */ - public int getPodRangeNamesCount() { - return podRangeNames_.size(); - } - /** - * - * - *
-   * Name for pod secondary ipv4 range which has the actual range defined ahead.
-   * 
- * - * repeated string pod_range_names = 1; - * - * @param index The index of the element to return. - * @return The podRangeNames at the given index. - */ - public java.lang.String getPodRangeNames(int index) { - return podRangeNames_.get(index); - } - /** - * - * - *
-   * Name for pod secondary ipv4 range which has the actual range defined ahead.
-   * 
- * - * repeated string pod_range_names = 1; - * - * @param index The index of the value to return. - * @return The bytes of the podRangeNames at the given index. - */ - public com.google.protobuf.ByteString getPodRangeNamesBytes(int index) { - return podRangeNames_.getByteString(index); - } - - public static final int POD_RANGE_INFO_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private java.util.List podRangeInfo_; - /** - * - * - *
-   * Output only. [Output only] Information for additional pod range.
-   * 
- * - * - * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List getPodRangeInfoList() { - return podRangeInfo_; - } - /** - * - * - *
-   * Output only. [Output only] Information for additional pod range.
-   * 
- * - * - * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getPodRangeInfoOrBuilderList() { - return podRangeInfo_; - } - /** - * - * - *
-   * Output only. [Output only] Information for additional pod range.
-   * 
- * - * - * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public int getPodRangeInfoCount() { - return podRangeInfo_.size(); - } - /** - * - * - *
-   * Output only. [Output only] Information for additional pod range.
-   * 
- * - * - * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.container.v1.RangeInfo getPodRangeInfo(int index) { - return podRangeInfo_.get(index); - } - /** - * - * - *
-   * Output only. [Output only] Information for additional pod range.
-   * 
- * - * - * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.container.v1.RangeInfoOrBuilder getPodRangeInfoOrBuilder(int index) { - return podRangeInfo_.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 < podRangeNames_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, podRangeNames_.getRaw(i)); - } - for (int i = 0; i < podRangeInfo_.size(); i++) { - output.writeMessage(2, podRangeInfo_.get(i)); - } - getUnknownFields().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 < podRangeNames_.size(); i++) { - dataSize += computeStringSizeNoTag(podRangeNames_.getRaw(i)); - } - size += dataSize; - size += 1 * getPodRangeNamesList().size(); - } - for (int i = 0; i < podRangeInfo_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, podRangeInfo_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.AdditionalPodRangesConfig)) { - return super.equals(obj); - } - com.google.container.v1.AdditionalPodRangesConfig other = - (com.google.container.v1.AdditionalPodRangesConfig) obj; - - if (!getPodRangeNamesList().equals(other.getPodRangeNamesList())) return false; - if (!getPodRangeInfoList().equals(other.getPodRangeInfoList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getPodRangeNamesCount() > 0) { - hash = (37 * hash) + POD_RANGE_NAMES_FIELD_NUMBER; - hash = (53 * hash) + getPodRangeNamesList().hashCode(); - } - if (getPodRangeInfoCount() > 0) { - hash = (37 * hash) + POD_RANGE_INFO_FIELD_NUMBER; - hash = (53 * hash) + getPodRangeInfoList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.AdditionalPodRangesConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.AdditionalPodRangesConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.AdditionalPodRangesConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.AdditionalPodRangesConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.AdditionalPodRangesConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.AdditionalPodRangesConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.AdditionalPodRangesConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.AdditionalPodRangesConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.AdditionalPodRangesConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.AdditionalPodRangesConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.AdditionalPodRangesConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.AdditionalPodRangesConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.AdditionalPodRangesConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * AdditionalPodRangesConfig is the configuration for additional pod secondary
-   * ranges supporting the ClusterUpdate message.
-   * 
- * - * Protobuf type {@code google.container.v1.AdditionalPodRangesConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.AdditionalPodRangesConfig) - com.google.container.v1.AdditionalPodRangesConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AdditionalPodRangesConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AdditionalPodRangesConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.AdditionalPodRangesConfig.class, - com.google.container.v1.AdditionalPodRangesConfig.Builder.class); - } - - // Construct using com.google.container.v1.AdditionalPodRangesConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - podRangeNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); - if (podRangeInfoBuilder_ == null) { - podRangeInfo_ = java.util.Collections.emptyList(); - } else { - podRangeInfo_ = null; - podRangeInfoBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AdditionalPodRangesConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.AdditionalPodRangesConfig getDefaultInstanceForType() { - return com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.AdditionalPodRangesConfig build() { - com.google.container.v1.AdditionalPodRangesConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.AdditionalPodRangesConfig buildPartial() { - com.google.container.v1.AdditionalPodRangesConfig result = - new com.google.container.v1.AdditionalPodRangesConfig(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.container.v1.AdditionalPodRangesConfig result) { - if (podRangeInfoBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - podRangeInfo_ = java.util.Collections.unmodifiableList(podRangeInfo_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.podRangeInfo_ = podRangeInfo_; - } else { - result.podRangeInfo_ = podRangeInfoBuilder_.build(); - } - } - - private void buildPartial0(com.google.container.v1.AdditionalPodRangesConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - podRangeNames_.makeImmutable(); - result.podRangeNames_ = podRangeNames_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.AdditionalPodRangesConfig) { - return mergeFrom((com.google.container.v1.AdditionalPodRangesConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.AdditionalPodRangesConfig other) { - if (other == com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance()) - return this; - if (!other.podRangeNames_.isEmpty()) { - if (podRangeNames_.isEmpty()) { - podRangeNames_ = other.podRangeNames_; - bitField0_ |= 0x00000001; - } else { - ensurePodRangeNamesIsMutable(); - podRangeNames_.addAll(other.podRangeNames_); - } - onChanged(); - } - if (podRangeInfoBuilder_ == null) { - if (!other.podRangeInfo_.isEmpty()) { - if (podRangeInfo_.isEmpty()) { - podRangeInfo_ = other.podRangeInfo_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensurePodRangeInfoIsMutable(); - podRangeInfo_.addAll(other.podRangeInfo_); - } - onChanged(); - } - } else { - if (!other.podRangeInfo_.isEmpty()) { - if (podRangeInfoBuilder_.isEmpty()) { - podRangeInfoBuilder_.dispose(); - podRangeInfoBuilder_ = null; - podRangeInfo_ = other.podRangeInfo_; - bitField0_ = (bitField0_ & ~0x00000002); - podRangeInfoBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPodRangeInfoFieldBuilder() - : null; - } else { - podRangeInfoBuilder_.addAllMessages(other.podRangeInfo_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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(); - ensurePodRangeNamesIsMutable(); - podRangeNames_.add(s); - break; - } // case 10 - case 18: - { - com.google.container.v1.RangeInfo m = - input.readMessage( - com.google.container.v1.RangeInfo.parser(), extensionRegistry); - if (podRangeInfoBuilder_ == null) { - ensurePodRangeInfoIsMutable(); - podRangeInfo_.add(m); - } else { - podRangeInfoBuilder_.addMessage(m); - } - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.protobuf.LazyStringArrayList podRangeNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensurePodRangeNamesIsMutable() { - if (!podRangeNames_.isModifiable()) { - podRangeNames_ = new com.google.protobuf.LazyStringArrayList(podRangeNames_); - } - bitField0_ |= 0x00000001; - } - /** - * - * - *
-     * Name for pod secondary ipv4 range which has the actual range defined ahead.
-     * 
- * - * repeated string pod_range_names = 1; - * - * @return A list containing the podRangeNames. - */ - public com.google.protobuf.ProtocolStringList getPodRangeNamesList() { - podRangeNames_.makeImmutable(); - return podRangeNames_; - } - /** - * - * - *
-     * Name for pod secondary ipv4 range which has the actual range defined ahead.
-     * 
- * - * repeated string pod_range_names = 1; - * - * @return The count of podRangeNames. - */ - public int getPodRangeNamesCount() { - return podRangeNames_.size(); - } - /** - * - * - *
-     * Name for pod secondary ipv4 range which has the actual range defined ahead.
-     * 
- * - * repeated string pod_range_names = 1; - * - * @param index The index of the element to return. - * @return The podRangeNames at the given index. - */ - public java.lang.String getPodRangeNames(int index) { - return podRangeNames_.get(index); - } - /** - * - * - *
-     * Name for pod secondary ipv4 range which has the actual range defined ahead.
-     * 
- * - * repeated string pod_range_names = 1; - * - * @param index The index of the value to return. - * @return The bytes of the podRangeNames at the given index. - */ - public com.google.protobuf.ByteString getPodRangeNamesBytes(int index) { - return podRangeNames_.getByteString(index); - } - /** - * - * - *
-     * Name for pod secondary ipv4 range which has the actual range defined ahead.
-     * 
- * - * repeated string pod_range_names = 1; - * - * @param index The index to set the value at. - * @param value The podRangeNames to set. - * @return This builder for chaining. - */ - public Builder setPodRangeNames(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePodRangeNamesIsMutable(); - podRangeNames_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Name for pod secondary ipv4 range which has the actual range defined ahead.
-     * 
- * - * repeated string pod_range_names = 1; - * - * @param value The podRangeNames to add. - * @return This builder for chaining. - */ - public Builder addPodRangeNames(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePodRangeNamesIsMutable(); - podRangeNames_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Name for pod secondary ipv4 range which has the actual range defined ahead.
-     * 
- * - * repeated string pod_range_names = 1; - * - * @param values The podRangeNames to add. - * @return This builder for chaining. - */ - public Builder addAllPodRangeNames(java.lang.Iterable values) { - ensurePodRangeNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, podRangeNames_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Name for pod secondary ipv4 range which has the actual range defined ahead.
-     * 
- * - * repeated string pod_range_names = 1; - * - * @return This builder for chaining. - */ - public Builder clearPodRangeNames() { - podRangeNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; - onChanged(); - return this; - } - /** - * - * - *
-     * Name for pod secondary ipv4 range which has the actual range defined ahead.
-     * 
- * - * repeated string pod_range_names = 1; - * - * @param value The bytes of the podRangeNames to add. - * @return This builder for chaining. - */ - public Builder addPodRangeNamesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensurePodRangeNamesIsMutable(); - podRangeNames_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.util.List podRangeInfo_ = - java.util.Collections.emptyList(); - - private void ensurePodRangeInfoIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - podRangeInfo_ = new java.util.ArrayList(podRangeInfo_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.RangeInfo, - com.google.container.v1.RangeInfo.Builder, - com.google.container.v1.RangeInfoOrBuilder> - podRangeInfoBuilder_; - - /** - * - * - *
-     * Output only. [Output only] Information for additional pod range.
-     * 
- * - * - * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List getPodRangeInfoList() { - if (podRangeInfoBuilder_ == null) { - return java.util.Collections.unmodifiableList(podRangeInfo_); - } else { - return podRangeInfoBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Output only. [Output only] Information for additional pod range.
-     * 
- * - * - * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public int getPodRangeInfoCount() { - if (podRangeInfoBuilder_ == null) { - return podRangeInfo_.size(); - } else { - return podRangeInfoBuilder_.getCount(); - } - } - /** - * - * - *
-     * Output only. [Output only] Information for additional pod range.
-     * 
- * - * - * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.container.v1.RangeInfo getPodRangeInfo(int index) { - if (podRangeInfoBuilder_ == null) { - return podRangeInfo_.get(index); - } else { - return podRangeInfoBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Output only. [Output only] Information for additional pod range.
-     * 
- * - * - * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setPodRangeInfo(int index, com.google.container.v1.RangeInfo value) { - if (podRangeInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePodRangeInfoIsMutable(); - podRangeInfo_.set(index, value); - onChanged(); - } else { - podRangeInfoBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. [Output only] Information for additional pod range.
-     * 
- * - * - * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setPodRangeInfo( - int index, com.google.container.v1.RangeInfo.Builder builderForValue) { - if (podRangeInfoBuilder_ == null) { - ensurePodRangeInfoIsMutable(); - podRangeInfo_.set(index, builderForValue.build()); - onChanged(); - } else { - podRangeInfoBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. [Output only] Information for additional pod range.
-     * 
- * - * - * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addPodRangeInfo(com.google.container.v1.RangeInfo value) { - if (podRangeInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePodRangeInfoIsMutable(); - podRangeInfo_.add(value); - onChanged(); - } else { - podRangeInfoBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Output only. [Output only] Information for additional pod range.
-     * 
- * - * - * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addPodRangeInfo(int index, com.google.container.v1.RangeInfo value) { - if (podRangeInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePodRangeInfoIsMutable(); - podRangeInfo_.add(index, value); - onChanged(); - } else { - podRangeInfoBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. [Output only] Information for additional pod range.
-     * 
- * - * - * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addPodRangeInfo(com.google.container.v1.RangeInfo.Builder builderForValue) { - if (podRangeInfoBuilder_ == null) { - ensurePodRangeInfoIsMutable(); - podRangeInfo_.add(builderForValue.build()); - onChanged(); - } else { - podRangeInfoBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. [Output only] Information for additional pod range.
-     * 
- * - * - * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addPodRangeInfo( - int index, com.google.container.v1.RangeInfo.Builder builderForValue) { - if (podRangeInfoBuilder_ == null) { - ensurePodRangeInfoIsMutable(); - podRangeInfo_.add(index, builderForValue.build()); - onChanged(); - } else { - podRangeInfoBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. [Output only] Information for additional pod range.
-     * 
- * - * - * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addAllPodRangeInfo( - java.lang.Iterable values) { - if (podRangeInfoBuilder_ == null) { - ensurePodRangeInfoIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, podRangeInfo_); - onChanged(); - } else { - podRangeInfoBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Output only. [Output only] Information for additional pod range.
-     * 
- * - * - * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearPodRangeInfo() { - if (podRangeInfoBuilder_ == null) { - podRangeInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - podRangeInfoBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Output only. [Output only] Information for additional pod range.
-     * 
- * - * - * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder removePodRangeInfo(int index) { - if (podRangeInfoBuilder_ == null) { - ensurePodRangeInfoIsMutable(); - podRangeInfo_.remove(index); - onChanged(); - } else { - podRangeInfoBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Output only. [Output only] Information for additional pod range.
-     * 
- * - * - * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.container.v1.RangeInfo.Builder getPodRangeInfoBuilder(int index) { - return getPodRangeInfoFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Output only. [Output only] Information for additional pod range.
-     * 
- * - * - * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.container.v1.RangeInfoOrBuilder getPodRangeInfoOrBuilder(int index) { - if (podRangeInfoBuilder_ == null) { - return podRangeInfo_.get(index); - } else { - return podRangeInfoBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Output only. [Output only] Information for additional pod range.
-     * 
- * - * - * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getPodRangeInfoOrBuilderList() { - if (podRangeInfoBuilder_ != null) { - return podRangeInfoBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(podRangeInfo_); - } - } - /** - * - * - *
-     * Output only. [Output only] Information for additional pod range.
-     * 
- * - * - * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.container.v1.RangeInfo.Builder addPodRangeInfoBuilder() { - return getPodRangeInfoFieldBuilder() - .addBuilder(com.google.container.v1.RangeInfo.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. [Output only] Information for additional pod range.
-     * 
- * - * - * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.container.v1.RangeInfo.Builder addPodRangeInfoBuilder(int index) { - return getPodRangeInfoFieldBuilder() - .addBuilder(index, com.google.container.v1.RangeInfo.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. [Output only] Information for additional pod range.
-     * 
- * - * - * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List getPodRangeInfoBuilderList() { - return getPodRangeInfoFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.RangeInfo, - com.google.container.v1.RangeInfo.Builder, - com.google.container.v1.RangeInfoOrBuilder> - getPodRangeInfoFieldBuilder() { - if (podRangeInfoBuilder_ == null) { - podRangeInfoBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.RangeInfo, - com.google.container.v1.RangeInfo.Builder, - com.google.container.v1.RangeInfoOrBuilder>( - podRangeInfo_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - podRangeInfo_ = null; - } - return podRangeInfoBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.AdditionalPodRangesConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.AdditionalPodRangesConfig) - private static final com.google.container.v1.AdditionalPodRangesConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.AdditionalPodRangesConfig(); - } - - public static com.google.container.v1.AdditionalPodRangesConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AdditionalPodRangesConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.AdditionalPodRangesConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalPodRangesConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalPodRangesConfigOrBuilder.java deleted file mode 100644 index 6e74e1123992..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalPodRangesConfigOrBuilder.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface AdditionalPodRangesConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.AdditionalPodRangesConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Name for pod secondary ipv4 range which has the actual range defined ahead.
-   * 
- * - * repeated string pod_range_names = 1; - * - * @return A list containing the podRangeNames. - */ - java.util.List getPodRangeNamesList(); - /** - * - * - *
-   * Name for pod secondary ipv4 range which has the actual range defined ahead.
-   * 
- * - * repeated string pod_range_names = 1; - * - * @return The count of podRangeNames. - */ - int getPodRangeNamesCount(); - /** - * - * - *
-   * Name for pod secondary ipv4 range which has the actual range defined ahead.
-   * 
- * - * repeated string pod_range_names = 1; - * - * @param index The index of the element to return. - * @return The podRangeNames at the given index. - */ - java.lang.String getPodRangeNames(int index); - /** - * - * - *
-   * Name for pod secondary ipv4 range which has the actual range defined ahead.
-   * 
- * - * repeated string pod_range_names = 1; - * - * @param index The index of the value to return. - * @return The bytes of the podRangeNames at the given index. - */ - com.google.protobuf.ByteString getPodRangeNamesBytes(int index); - - /** - * - * - *
-   * Output only. [Output only] Information for additional pod range.
-   * 
- * - * - * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List getPodRangeInfoList(); - /** - * - * - *
-   * Output only. [Output only] Information for additional pod range.
-   * 
- * - * - * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.container.v1.RangeInfo getPodRangeInfo(int index); - /** - * - * - *
-   * Output only. [Output only] Information for additional pod range.
-   * 
- * - * - * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - int getPodRangeInfoCount(); - /** - * - * - *
-   * Output only. [Output only] Information for additional pod range.
-   * 
- * - * - * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List - getPodRangeInfoOrBuilderList(); - /** - * - * - *
-   * Output only. [Output only] Information for additional pod range.
-   * 
- * - * - * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.container.v1.RangeInfoOrBuilder getPodRangeInfoOrBuilder(int index); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfig.java deleted file mode 100644 index 869ccbcebf7f..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfig.java +++ /dev/null @@ -1,3695 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Configuration for the addons that can be automatically spun up in the
- * cluster, enabling additional functionality.
- * 
- * - * Protobuf type {@code google.container.v1.AddonsConfig} - */ -public final class AddonsConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AddonsConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AddonsConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.AddonsConfig.class, - com.google.container.v1.AddonsConfig.Builder.class); - } - - private int bitField0_; - public static final int HTTP_LOAD_BALANCING_FIELD_NUMBER = 1; - private com.google.container.v1.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.v1.HttpLoadBalancing http_load_balancing = 1; - * - * @return Whether the httpLoadBalancing field is set. - */ - @java.lang.Override - public boolean hasHttpLoadBalancing() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * 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.v1.HttpLoadBalancing http_load_balancing = 1; - * - * @return The httpLoadBalancing. - */ - @java.lang.Override - public com.google.container.v1.HttpLoadBalancing getHttpLoadBalancing() { - return httpLoadBalancing_ == null - ? com.google.container.v1.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.v1.HttpLoadBalancing http_load_balancing = 1; - */ - @java.lang.Override - public com.google.container.v1.HttpLoadBalancingOrBuilder getHttpLoadBalancingOrBuilder() { - return httpLoadBalancing_ == null - ? com.google.container.v1.HttpLoadBalancing.getDefaultInstance() - : httpLoadBalancing_; - } - - public static final int HORIZONTAL_POD_AUTOSCALING_FIELD_NUMBER = 2; - private com.google.container.v1.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.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - * - * @return Whether the horizontalPodAutoscaling field is set. - */ - @java.lang.Override - public boolean hasHorizontalPodAutoscaling() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * 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.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - * - * @return The horizontalPodAutoscaling. - */ - @java.lang.Override - public com.google.container.v1.HorizontalPodAutoscaling getHorizontalPodAutoscaling() { - return horizontalPodAutoscaling_ == null - ? com.google.container.v1.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.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - */ - @java.lang.Override - public com.google.container.v1.HorizontalPodAutoscalingOrBuilder - getHorizontalPodAutoscalingOrBuilder() { - return horizontalPodAutoscaling_ == null - ? com.google.container.v1.HorizontalPodAutoscaling.getDefaultInstance() - : horizontalPodAutoscaling_; - } - - public static final int KUBERNETES_DASHBOARD_FIELD_NUMBER = 3; - private com.google.container.v1.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.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * - * - * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1/cluster_service.proto;l=1196 - * @return Whether the kubernetesDashboard field is set. - */ - @java.lang.Override - @java.lang.Deprecated - public boolean hasKubernetesDashboard() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-   * 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.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * - * - * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1/cluster_service.proto;l=1196 - * @return The kubernetesDashboard. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.container.v1.KubernetesDashboard getKubernetesDashboard() { - return kubernetesDashboard_ == null - ? com.google.container.v1.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.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.container.v1.KubernetesDashboardOrBuilder getKubernetesDashboardOrBuilder() { - return kubernetesDashboard_ == null - ? com.google.container.v1.KubernetesDashboard.getDefaultInstance() - : kubernetesDashboard_; - } - - public static final int NETWORK_POLICY_CONFIG_FIELD_NUMBER = 4; - private com.google.container.v1.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.v1.NetworkPolicyConfig network_policy_config = 4; - * - * @return Whether the networkPolicyConfig field is set. - */ - @java.lang.Override - public boolean hasNetworkPolicyConfig() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-   * 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.v1.NetworkPolicyConfig network_policy_config = 4; - * - * @return The networkPolicyConfig. - */ - @java.lang.Override - public com.google.container.v1.NetworkPolicyConfig getNetworkPolicyConfig() { - return networkPolicyConfig_ == null - ? com.google.container.v1.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.v1.NetworkPolicyConfig network_policy_config = 4; - */ - @java.lang.Override - public com.google.container.v1.NetworkPolicyConfigOrBuilder getNetworkPolicyConfigOrBuilder() { - return networkPolicyConfig_ == null - ? com.google.container.v1.NetworkPolicyConfig.getDefaultInstance() - : networkPolicyConfig_; - } - - public static final int CLOUD_RUN_CONFIG_FIELD_NUMBER = 7; - private com.google.container.v1.CloudRunConfig cloudRunConfig_; - /** - * - * - *
-   * Configuration for the Cloud Run addon, which allows the user to use a
-   * managed Knative service.
-   * 
- * - * .google.container.v1.CloudRunConfig cloud_run_config = 7; - * - * @return Whether the cloudRunConfig field is set. - */ - @java.lang.Override - public boolean hasCloudRunConfig() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-   * Configuration for the Cloud Run addon, which allows the user to use a
-   * managed Knative service.
-   * 
- * - * .google.container.v1.CloudRunConfig cloud_run_config = 7; - * - * @return The cloudRunConfig. - */ - @java.lang.Override - public com.google.container.v1.CloudRunConfig getCloudRunConfig() { - return cloudRunConfig_ == null - ? com.google.container.v1.CloudRunConfig.getDefaultInstance() - : cloudRunConfig_; - } - /** - * - * - *
-   * Configuration for the Cloud Run addon, which allows the user to use a
-   * managed Knative service.
-   * 
- * - * .google.container.v1.CloudRunConfig cloud_run_config = 7; - */ - @java.lang.Override - public com.google.container.v1.CloudRunConfigOrBuilder getCloudRunConfigOrBuilder() { - return cloudRunConfig_ == null - ? com.google.container.v1.CloudRunConfig.getDefaultInstance() - : cloudRunConfig_; - } - - public static final int DNS_CACHE_CONFIG_FIELD_NUMBER = 8; - private com.google.container.v1.DnsCacheConfig dnsCacheConfig_; - /** - * - * - *
-   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-   * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - * - * @return Whether the dnsCacheConfig field is set. - */ - @java.lang.Override - public boolean hasDnsCacheConfig() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * - * - *
-   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-   * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - * - * @return The dnsCacheConfig. - */ - @java.lang.Override - public com.google.container.v1.DnsCacheConfig getDnsCacheConfig() { - return dnsCacheConfig_ == null - ? com.google.container.v1.DnsCacheConfig.getDefaultInstance() - : dnsCacheConfig_; - } - /** - * - * - *
-   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-   * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - */ - @java.lang.Override - public com.google.container.v1.DnsCacheConfigOrBuilder getDnsCacheConfigOrBuilder() { - return dnsCacheConfig_ == null - ? com.google.container.v1.DnsCacheConfig.getDefaultInstance() - : dnsCacheConfig_; - } - - public static final int CONFIG_CONNECTOR_CONFIG_FIELD_NUMBER = 10; - private com.google.container.v1.ConfigConnectorConfig configConnectorConfig_; - /** - * - * - *
-   * Configuration for the ConfigConnector add-on, a Kubernetes
-   * extension to manage hosted GCP services through the Kubernetes API
-   * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - * - * @return Whether the configConnectorConfig field is set. - */ - @java.lang.Override - public boolean hasConfigConnectorConfig() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * - * - *
-   * Configuration for the ConfigConnector add-on, a Kubernetes
-   * extension to manage hosted GCP services through the Kubernetes API
-   * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - * - * @return The configConnectorConfig. - */ - @java.lang.Override - public com.google.container.v1.ConfigConnectorConfig getConfigConnectorConfig() { - return configConnectorConfig_ == null - ? com.google.container.v1.ConfigConnectorConfig.getDefaultInstance() - : configConnectorConfig_; - } - /** - * - * - *
-   * Configuration for the ConfigConnector add-on, a Kubernetes
-   * extension to manage hosted GCP services through the Kubernetes API
-   * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - */ - @java.lang.Override - public com.google.container.v1.ConfigConnectorConfigOrBuilder - getConfigConnectorConfigOrBuilder() { - return configConnectorConfig_ == null - ? com.google.container.v1.ConfigConnectorConfig.getDefaultInstance() - : configConnectorConfig_; - } - - public static final int GCE_PERSISTENT_DISK_CSI_DRIVER_CONFIG_FIELD_NUMBER = 11; - private com.google.container.v1.GcePersistentDiskCsiDriverConfig - gcePersistentDiskCsiDriverConfig_; - /** - * - * - *
-   * Configuration for the Compute Engine Persistent Disk CSI driver.
-   * 
- * - * - * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - * - * - * @return Whether the gcePersistentDiskCsiDriverConfig field is set. - */ - @java.lang.Override - public boolean hasGcePersistentDiskCsiDriverConfig() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * - * - *
-   * Configuration for the Compute Engine Persistent Disk CSI driver.
-   * 
- * - * - * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - * - * - * @return The gcePersistentDiskCsiDriverConfig. - */ - @java.lang.Override - public com.google.container.v1.GcePersistentDiskCsiDriverConfig - getGcePersistentDiskCsiDriverConfig() { - return gcePersistentDiskCsiDriverConfig_ == null - ? com.google.container.v1.GcePersistentDiskCsiDriverConfig.getDefaultInstance() - : gcePersistentDiskCsiDriverConfig_; - } - /** - * - * - *
-   * Configuration for the Compute Engine Persistent Disk CSI driver.
-   * 
- * - * - * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - * - */ - @java.lang.Override - public com.google.container.v1.GcePersistentDiskCsiDriverConfigOrBuilder - getGcePersistentDiskCsiDriverConfigOrBuilder() { - return gcePersistentDiskCsiDriverConfig_ == null - ? com.google.container.v1.GcePersistentDiskCsiDriverConfig.getDefaultInstance() - : gcePersistentDiskCsiDriverConfig_; - } - - public static final int GCP_FILESTORE_CSI_DRIVER_CONFIG_FIELD_NUMBER = 14; - private com.google.container.v1.GcpFilestoreCsiDriverConfig gcpFilestoreCsiDriverConfig_; - /** - * - * - *
-   * Configuration for the GCP Filestore CSI driver.
-   * 
- * - * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * - * - * @return Whether the gcpFilestoreCsiDriverConfig field is set. - */ - @java.lang.Override - public boolean hasGcpFilestoreCsiDriverConfig() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * - * - *
-   * Configuration for the GCP Filestore CSI driver.
-   * 
- * - * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * - * - * @return The gcpFilestoreCsiDriverConfig. - */ - @java.lang.Override - public com.google.container.v1.GcpFilestoreCsiDriverConfig getGcpFilestoreCsiDriverConfig() { - return gcpFilestoreCsiDriverConfig_ == null - ? com.google.container.v1.GcpFilestoreCsiDriverConfig.getDefaultInstance() - : gcpFilestoreCsiDriverConfig_; - } - /** - * - * - *
-   * Configuration for the GCP Filestore CSI driver.
-   * 
- * - * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * - */ - @java.lang.Override - public com.google.container.v1.GcpFilestoreCsiDriverConfigOrBuilder - getGcpFilestoreCsiDriverConfigOrBuilder() { - return gcpFilestoreCsiDriverConfig_ == null - ? com.google.container.v1.GcpFilestoreCsiDriverConfig.getDefaultInstance() - : gcpFilestoreCsiDriverConfig_; - } - - public static final int GKE_BACKUP_AGENT_CONFIG_FIELD_NUMBER = 16; - private com.google.container.v1.GkeBackupAgentConfig gkeBackupAgentConfig_; - /** - * - * - *
-   * Configuration for the Backup for GKE agent addon.
-   * 
- * - * .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; - * - * @return Whether the gkeBackupAgentConfig field is set. - */ - @java.lang.Override - public boolean hasGkeBackupAgentConfig() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * - * - *
-   * Configuration for the Backup for GKE agent addon.
-   * 
- * - * .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; - * - * @return The gkeBackupAgentConfig. - */ - @java.lang.Override - public com.google.container.v1.GkeBackupAgentConfig getGkeBackupAgentConfig() { - return gkeBackupAgentConfig_ == null - ? com.google.container.v1.GkeBackupAgentConfig.getDefaultInstance() - : gkeBackupAgentConfig_; - } - /** - * - * - *
-   * Configuration for the Backup for GKE agent addon.
-   * 
- * - * .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; - */ - @java.lang.Override - public com.google.container.v1.GkeBackupAgentConfigOrBuilder getGkeBackupAgentConfigOrBuilder() { - return gkeBackupAgentConfig_ == null - ? com.google.container.v1.GkeBackupAgentConfig.getDefaultInstance() - : gkeBackupAgentConfig_; - } - - public static final int GCS_FUSE_CSI_DRIVER_CONFIG_FIELD_NUMBER = 17; - private com.google.container.v1.GcsFuseCsiDriverConfig gcsFuseCsiDriverConfig_; - /** - * - * - *
-   * Configuration for the Cloud Storage Fuse CSI driver.
-   * 
- * - * .google.container.v1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; - * - * @return Whether the gcsFuseCsiDriverConfig field is set. - */ - @java.lang.Override - public boolean hasGcsFuseCsiDriverConfig() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - * - * - *
-   * Configuration for the Cloud Storage Fuse CSI driver.
-   * 
- * - * .google.container.v1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; - * - * @return The gcsFuseCsiDriverConfig. - */ - @java.lang.Override - public com.google.container.v1.GcsFuseCsiDriverConfig getGcsFuseCsiDriverConfig() { - return gcsFuseCsiDriverConfig_ == null - ? com.google.container.v1.GcsFuseCsiDriverConfig.getDefaultInstance() - : gcsFuseCsiDriverConfig_; - } - /** - * - * - *
-   * Configuration for the Cloud Storage Fuse CSI driver.
-   * 
- * - * .google.container.v1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; - */ - @java.lang.Override - public com.google.container.v1.GcsFuseCsiDriverConfigOrBuilder - getGcsFuseCsiDriverConfigOrBuilder() { - return gcsFuseCsiDriverConfig_ == null - ? com.google.container.v1.GcsFuseCsiDriverConfig.getDefaultInstance() - : gcsFuseCsiDriverConfig_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getHttpLoadBalancing()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getHorizontalPodAutoscaling()); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(3, getKubernetesDashboard()); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(4, getNetworkPolicyConfig()); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeMessage(7, getCloudRunConfig()); - } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeMessage(8, getDnsCacheConfig()); - } - if (((bitField0_ & 0x00000040) != 0)) { - output.writeMessage(10, getConfigConnectorConfig()); - } - if (((bitField0_ & 0x00000080) != 0)) { - output.writeMessage(11, getGcePersistentDiskCsiDriverConfig()); - } - if (((bitField0_ & 0x00000100) != 0)) { - output.writeMessage(14, getGcpFilestoreCsiDriverConfig()); - } - if (((bitField0_ & 0x00000200) != 0)) { - output.writeMessage(16, getGkeBackupAgentConfig()); - } - if (((bitField0_ & 0x00000400) != 0)) { - output.writeMessage(17, getGcsFuseCsiDriverConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getHttpLoadBalancing()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, getHorizontalPodAutoscaling()); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getKubernetesDashboard()); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getNetworkPolicyConfig()); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCloudRunConfig()); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDnsCacheConfig()); - } - if (((bitField0_ & 0x00000040) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(10, getConfigConnectorConfig()); - } - if (((bitField0_ & 0x00000080) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 11, getGcePersistentDiskCsiDriverConfig()); - } - if (((bitField0_ & 0x00000100) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 14, getGcpFilestoreCsiDriverConfig()); - } - if (((bitField0_ & 0x00000200) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(16, getGkeBackupAgentConfig()); - } - if (((bitField0_ & 0x00000400) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(17, getGcsFuseCsiDriverConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.AddonsConfig)) { - return super.equals(obj); - } - com.google.container.v1.AddonsConfig other = (com.google.container.v1.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 (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 (hasGcpFilestoreCsiDriverConfig() != other.hasGcpFilestoreCsiDriverConfig()) return false; - if (hasGcpFilestoreCsiDriverConfig()) { - if (!getGcpFilestoreCsiDriverConfig().equals(other.getGcpFilestoreCsiDriverConfig())) - return false; - } - if (hasGkeBackupAgentConfig() != other.hasGkeBackupAgentConfig()) return false; - if (hasGkeBackupAgentConfig()) { - if (!getGkeBackupAgentConfig().equals(other.getGkeBackupAgentConfig())) return false; - } - if (hasGcsFuseCsiDriverConfig() != other.hasGcsFuseCsiDriverConfig()) return false; - if (hasGcsFuseCsiDriverConfig()) { - if (!getGcsFuseCsiDriverConfig().equals(other.getGcsFuseCsiDriverConfig())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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 (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 (hasGcpFilestoreCsiDriverConfig()) { - hash = (37 * hash) + GCP_FILESTORE_CSI_DRIVER_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getGcpFilestoreCsiDriverConfig().hashCode(); - } - if (hasGkeBackupAgentConfig()) { - hash = (37 * hash) + GKE_BACKUP_AGENT_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getGkeBackupAgentConfig().hashCode(); - } - if (hasGcsFuseCsiDriverConfig()) { - hash = (37 * hash) + GCS_FUSE_CSI_DRIVER_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getGcsFuseCsiDriverConfig().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.AddonsConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.AddonsConfig parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.AddonsConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.AddonsConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.AddonsConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.AddonsConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.AddonsConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.AddonsConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.AddonsConfig) - com.google.container.v1.AddonsConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AddonsConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AddonsConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.AddonsConfig.class, - com.google.container.v1.AddonsConfig.Builder.class); - } - - // Construct using com.google.container.v1.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) { - getHttpLoadBalancingFieldBuilder(); - getHorizontalPodAutoscalingFieldBuilder(); - getKubernetesDashboardFieldBuilder(); - getNetworkPolicyConfigFieldBuilder(); - getCloudRunConfigFieldBuilder(); - getDnsCacheConfigFieldBuilder(); - getConfigConnectorConfigFieldBuilder(); - getGcePersistentDiskCsiDriverConfigFieldBuilder(); - getGcpFilestoreCsiDriverConfigFieldBuilder(); - getGkeBackupAgentConfigFieldBuilder(); - getGcsFuseCsiDriverConfigFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - httpLoadBalancing_ = null; - if (httpLoadBalancingBuilder_ != null) { - httpLoadBalancingBuilder_.dispose(); - httpLoadBalancingBuilder_ = null; - } - horizontalPodAutoscaling_ = null; - if (horizontalPodAutoscalingBuilder_ != null) { - horizontalPodAutoscalingBuilder_.dispose(); - horizontalPodAutoscalingBuilder_ = null; - } - kubernetesDashboard_ = null; - if (kubernetesDashboardBuilder_ != null) { - kubernetesDashboardBuilder_.dispose(); - kubernetesDashboardBuilder_ = null; - } - networkPolicyConfig_ = null; - if (networkPolicyConfigBuilder_ != null) { - networkPolicyConfigBuilder_.dispose(); - networkPolicyConfigBuilder_ = null; - } - cloudRunConfig_ = null; - if (cloudRunConfigBuilder_ != null) { - cloudRunConfigBuilder_.dispose(); - cloudRunConfigBuilder_ = null; - } - dnsCacheConfig_ = null; - if (dnsCacheConfigBuilder_ != null) { - dnsCacheConfigBuilder_.dispose(); - dnsCacheConfigBuilder_ = null; - } - configConnectorConfig_ = null; - if (configConnectorConfigBuilder_ != null) { - configConnectorConfigBuilder_.dispose(); - configConnectorConfigBuilder_ = null; - } - gcePersistentDiskCsiDriverConfig_ = null; - if (gcePersistentDiskCsiDriverConfigBuilder_ != null) { - gcePersistentDiskCsiDriverConfigBuilder_.dispose(); - gcePersistentDiskCsiDriverConfigBuilder_ = null; - } - gcpFilestoreCsiDriverConfig_ = null; - if (gcpFilestoreCsiDriverConfigBuilder_ != null) { - gcpFilestoreCsiDriverConfigBuilder_.dispose(); - gcpFilestoreCsiDriverConfigBuilder_ = null; - } - gkeBackupAgentConfig_ = null; - if (gkeBackupAgentConfigBuilder_ != null) { - gkeBackupAgentConfigBuilder_.dispose(); - gkeBackupAgentConfigBuilder_ = null; - } - gcsFuseCsiDriverConfig_ = null; - if (gcsFuseCsiDriverConfigBuilder_ != null) { - gcsFuseCsiDriverConfigBuilder_.dispose(); - gcsFuseCsiDriverConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AddonsConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.AddonsConfig getDefaultInstanceForType() { - return com.google.container.v1.AddonsConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.AddonsConfig build() { - com.google.container.v1.AddonsConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.AddonsConfig buildPartial() { - com.google.container.v1.AddonsConfig result = new com.google.container.v1.AddonsConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.AddonsConfig result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.httpLoadBalancing_ = - httpLoadBalancingBuilder_ == null - ? httpLoadBalancing_ - : httpLoadBalancingBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.horizontalPodAutoscaling_ = - horizontalPodAutoscalingBuilder_ == null - ? horizontalPodAutoscaling_ - : horizontalPodAutoscalingBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.kubernetesDashboard_ = - kubernetesDashboardBuilder_ == null - ? kubernetesDashboard_ - : kubernetesDashboardBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.networkPolicyConfig_ = - networkPolicyConfigBuilder_ == null - ? networkPolicyConfig_ - : networkPolicyConfigBuilder_.build(); - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.cloudRunConfig_ = - cloudRunConfigBuilder_ == null ? cloudRunConfig_ : cloudRunConfigBuilder_.build(); - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.dnsCacheConfig_ = - dnsCacheConfigBuilder_ == null ? dnsCacheConfig_ : dnsCacheConfigBuilder_.build(); - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.configConnectorConfig_ = - configConnectorConfigBuilder_ == null - ? configConnectorConfig_ - : configConnectorConfigBuilder_.build(); - to_bitField0_ |= 0x00000040; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.gcePersistentDiskCsiDriverConfig_ = - gcePersistentDiskCsiDriverConfigBuilder_ == null - ? gcePersistentDiskCsiDriverConfig_ - : gcePersistentDiskCsiDriverConfigBuilder_.build(); - to_bitField0_ |= 0x00000080; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.gcpFilestoreCsiDriverConfig_ = - gcpFilestoreCsiDriverConfigBuilder_ == null - ? gcpFilestoreCsiDriverConfig_ - : gcpFilestoreCsiDriverConfigBuilder_.build(); - to_bitField0_ |= 0x00000100; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.gkeBackupAgentConfig_ = - gkeBackupAgentConfigBuilder_ == null - ? gkeBackupAgentConfig_ - : gkeBackupAgentConfigBuilder_.build(); - to_bitField0_ |= 0x00000200; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.gcsFuseCsiDriverConfig_ = - gcsFuseCsiDriverConfigBuilder_ == null - ? gcsFuseCsiDriverConfig_ - : gcsFuseCsiDriverConfigBuilder_.build(); - to_bitField0_ |= 0x00000400; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.AddonsConfig) { - return mergeFrom((com.google.container.v1.AddonsConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.AddonsConfig other) { - if (other == com.google.container.v1.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.hasCloudRunConfig()) { - mergeCloudRunConfig(other.getCloudRunConfig()); - } - if (other.hasDnsCacheConfig()) { - mergeDnsCacheConfig(other.getDnsCacheConfig()); - } - if (other.hasConfigConnectorConfig()) { - mergeConfigConnectorConfig(other.getConfigConnectorConfig()); - } - if (other.hasGcePersistentDiskCsiDriverConfig()) { - mergeGcePersistentDiskCsiDriverConfig(other.getGcePersistentDiskCsiDriverConfig()); - } - if (other.hasGcpFilestoreCsiDriverConfig()) { - mergeGcpFilestoreCsiDriverConfig(other.getGcpFilestoreCsiDriverConfig()); - } - if (other.hasGkeBackupAgentConfig()) { - mergeGkeBackupAgentConfig(other.getGkeBackupAgentConfig()); - } - if (other.hasGcsFuseCsiDriverConfig()) { - mergeGcsFuseCsiDriverConfig(other.getGcsFuseCsiDriverConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage( - getHttpLoadBalancingFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - getHorizontalPodAutoscalingFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - getKubernetesDashboardFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage( - getNetworkPolicyConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 58: - { - input.readMessage(getCloudRunConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 58 - case 66: - { - input.readMessage(getDnsCacheConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 66 - case 82: - { - input.readMessage( - getConfigConnectorConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 82 - case 90: - { - input.readMessage( - getGcePersistentDiskCsiDriverConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 90 - case 114: - { - input.readMessage( - getGcpFilestoreCsiDriverConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 114 - case 130: - { - input.readMessage( - getGkeBackupAgentConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 130 - case 138: - { - input.readMessage( - getGcsFuseCsiDriverConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; - break; - } // case 138 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.container.v1.HttpLoadBalancing httpLoadBalancing_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.HttpLoadBalancing, - com.google.container.v1.HttpLoadBalancing.Builder, - com.google.container.v1.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.v1.HttpLoadBalancing http_load_balancing = 1; - * - * @return Whether the httpLoadBalancing field is set. - */ - public boolean hasHttpLoadBalancing() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * 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.v1.HttpLoadBalancing http_load_balancing = 1; - * - * @return The httpLoadBalancing. - */ - public com.google.container.v1.HttpLoadBalancing getHttpLoadBalancing() { - if (httpLoadBalancingBuilder_ == null) { - return httpLoadBalancing_ == null - ? com.google.container.v1.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.v1.HttpLoadBalancing http_load_balancing = 1; - */ - public Builder setHttpLoadBalancing(com.google.container.v1.HttpLoadBalancing value) { - if (httpLoadBalancingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - httpLoadBalancing_ = value; - } else { - httpLoadBalancingBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - 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.v1.HttpLoadBalancing http_load_balancing = 1; - */ - public Builder setHttpLoadBalancing( - com.google.container.v1.HttpLoadBalancing.Builder builderForValue) { - if (httpLoadBalancingBuilder_ == null) { - httpLoadBalancing_ = builderForValue.build(); - } else { - httpLoadBalancingBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - 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.v1.HttpLoadBalancing http_load_balancing = 1; - */ - public Builder mergeHttpLoadBalancing(com.google.container.v1.HttpLoadBalancing value) { - if (httpLoadBalancingBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && httpLoadBalancing_ != null - && httpLoadBalancing_ - != com.google.container.v1.HttpLoadBalancing.getDefaultInstance()) { - getHttpLoadBalancingBuilder().mergeFrom(value); - } else { - httpLoadBalancing_ = value; - } - } else { - httpLoadBalancingBuilder_.mergeFrom(value); - } - if (httpLoadBalancing_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - 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.v1.HttpLoadBalancing http_load_balancing = 1; - */ - public Builder clearHttpLoadBalancing() { - bitField0_ = (bitField0_ & ~0x00000001); - httpLoadBalancing_ = null; - if (httpLoadBalancingBuilder_ != null) { - httpLoadBalancingBuilder_.dispose(); - httpLoadBalancingBuilder_ = null; - } - onChanged(); - 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.v1.HttpLoadBalancing http_load_balancing = 1; - */ - public com.google.container.v1.HttpLoadBalancing.Builder getHttpLoadBalancingBuilder() { - bitField0_ |= 0x00000001; - 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.v1.HttpLoadBalancing http_load_balancing = 1; - */ - public com.google.container.v1.HttpLoadBalancingOrBuilder getHttpLoadBalancingOrBuilder() { - if (httpLoadBalancingBuilder_ != null) { - return httpLoadBalancingBuilder_.getMessageOrBuilder(); - } else { - return httpLoadBalancing_ == null - ? com.google.container.v1.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.v1.HttpLoadBalancing http_load_balancing = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.HttpLoadBalancing, - com.google.container.v1.HttpLoadBalancing.Builder, - com.google.container.v1.HttpLoadBalancingOrBuilder> - getHttpLoadBalancingFieldBuilder() { - if (httpLoadBalancingBuilder_ == null) { - httpLoadBalancingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.HttpLoadBalancing, - com.google.container.v1.HttpLoadBalancing.Builder, - com.google.container.v1.HttpLoadBalancingOrBuilder>( - getHttpLoadBalancing(), getParentForChildren(), isClean()); - httpLoadBalancing_ = null; - } - return httpLoadBalancingBuilder_; - } - - private com.google.container.v1.HorizontalPodAutoscaling horizontalPodAutoscaling_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.HorizontalPodAutoscaling, - com.google.container.v1.HorizontalPodAutoscaling.Builder, - com.google.container.v1.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.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - * - * @return Whether the horizontalPodAutoscaling field is set. - */ - public boolean hasHorizontalPodAutoscaling() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * 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.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - * - * @return The horizontalPodAutoscaling. - */ - public com.google.container.v1.HorizontalPodAutoscaling getHorizontalPodAutoscaling() { - if (horizontalPodAutoscalingBuilder_ == null) { - return horizontalPodAutoscaling_ == null - ? com.google.container.v1.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.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - */ - public Builder setHorizontalPodAutoscaling( - com.google.container.v1.HorizontalPodAutoscaling value) { - if (horizontalPodAutoscalingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - horizontalPodAutoscaling_ = value; - } else { - horizontalPodAutoscalingBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - 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.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - */ - public Builder setHorizontalPodAutoscaling( - com.google.container.v1.HorizontalPodAutoscaling.Builder builderForValue) { - if (horizontalPodAutoscalingBuilder_ == null) { - horizontalPodAutoscaling_ = builderForValue.build(); - } else { - horizontalPodAutoscalingBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - 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.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - */ - public Builder mergeHorizontalPodAutoscaling( - com.google.container.v1.HorizontalPodAutoscaling value) { - if (horizontalPodAutoscalingBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && horizontalPodAutoscaling_ != null - && horizontalPodAutoscaling_ - != com.google.container.v1.HorizontalPodAutoscaling.getDefaultInstance()) { - getHorizontalPodAutoscalingBuilder().mergeFrom(value); - } else { - horizontalPodAutoscaling_ = value; - } - } else { - horizontalPodAutoscalingBuilder_.mergeFrom(value); - } - if (horizontalPodAutoscaling_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - 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.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - */ - public Builder clearHorizontalPodAutoscaling() { - bitField0_ = (bitField0_ & ~0x00000002); - horizontalPodAutoscaling_ = null; - if (horizontalPodAutoscalingBuilder_ != null) { - horizontalPodAutoscalingBuilder_.dispose(); - horizontalPodAutoscalingBuilder_ = null; - } - onChanged(); - 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.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - */ - public com.google.container.v1.HorizontalPodAutoscaling.Builder - getHorizontalPodAutoscalingBuilder() { - bitField0_ |= 0x00000002; - 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.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - */ - public com.google.container.v1.HorizontalPodAutoscalingOrBuilder - getHorizontalPodAutoscalingOrBuilder() { - if (horizontalPodAutoscalingBuilder_ != null) { - return horizontalPodAutoscalingBuilder_.getMessageOrBuilder(); - } else { - return horizontalPodAutoscaling_ == null - ? com.google.container.v1.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.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.HorizontalPodAutoscaling, - com.google.container.v1.HorizontalPodAutoscaling.Builder, - com.google.container.v1.HorizontalPodAutoscalingOrBuilder> - getHorizontalPodAutoscalingFieldBuilder() { - if (horizontalPodAutoscalingBuilder_ == null) { - horizontalPodAutoscalingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.HorizontalPodAutoscaling, - com.google.container.v1.HorizontalPodAutoscaling.Builder, - com.google.container.v1.HorizontalPodAutoscalingOrBuilder>( - getHorizontalPodAutoscaling(), getParentForChildren(), isClean()); - horizontalPodAutoscaling_ = null; - } - return horizontalPodAutoscalingBuilder_; - } - - private com.google.container.v1.KubernetesDashboard kubernetesDashboard_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.KubernetesDashboard, - com.google.container.v1.KubernetesDashboard.Builder, - com.google.container.v1.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.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * - * - * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1/cluster_service.proto;l=1196 - * @return Whether the kubernetesDashboard field is set. - */ - @java.lang.Deprecated - public boolean hasKubernetesDashboard() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * 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.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * - * - * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1/cluster_service.proto;l=1196 - * @return The kubernetesDashboard. - */ - @java.lang.Deprecated - public com.google.container.v1.KubernetesDashboard getKubernetesDashboard() { - if (kubernetesDashboardBuilder_ == null) { - return kubernetesDashboard_ == null - ? com.google.container.v1.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.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder setKubernetesDashboard(com.google.container.v1.KubernetesDashboard value) { - if (kubernetesDashboardBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kubernetesDashboard_ = value; - } else { - kubernetesDashboardBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - 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.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder setKubernetesDashboard( - com.google.container.v1.KubernetesDashboard.Builder builderForValue) { - if (kubernetesDashboardBuilder_ == null) { - kubernetesDashboard_ = builderForValue.build(); - } else { - kubernetesDashboardBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - 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.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder mergeKubernetesDashboard(com.google.container.v1.KubernetesDashboard value) { - if (kubernetesDashboardBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && kubernetesDashboard_ != null - && kubernetesDashboard_ - != com.google.container.v1.KubernetesDashboard.getDefaultInstance()) { - getKubernetesDashboardBuilder().mergeFrom(value); - } else { - kubernetesDashboard_ = value; - } - } else { - kubernetesDashboardBuilder_.mergeFrom(value); - } - if (kubernetesDashboard_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - 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.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder clearKubernetesDashboard() { - bitField0_ = (bitField0_ & ~0x00000004); - kubernetesDashboard_ = null; - if (kubernetesDashboardBuilder_ != null) { - kubernetesDashboardBuilder_.dispose(); - kubernetesDashboardBuilder_ = null; - } - onChanged(); - 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.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * - */ - @java.lang.Deprecated - public com.google.container.v1.KubernetesDashboard.Builder getKubernetesDashboardBuilder() { - bitField0_ |= 0x00000004; - 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.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * - */ - @java.lang.Deprecated - public com.google.container.v1.KubernetesDashboardOrBuilder getKubernetesDashboardOrBuilder() { - if (kubernetesDashboardBuilder_ != null) { - return kubernetesDashboardBuilder_.getMessageOrBuilder(); - } else { - return kubernetesDashboard_ == null - ? com.google.container.v1.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.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.KubernetesDashboard, - com.google.container.v1.KubernetesDashboard.Builder, - com.google.container.v1.KubernetesDashboardOrBuilder> - getKubernetesDashboardFieldBuilder() { - if (kubernetesDashboardBuilder_ == null) { - kubernetesDashboardBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.KubernetesDashboard, - com.google.container.v1.KubernetesDashboard.Builder, - com.google.container.v1.KubernetesDashboardOrBuilder>( - getKubernetesDashboard(), getParentForChildren(), isClean()); - kubernetesDashboard_ = null; - } - return kubernetesDashboardBuilder_; - } - - private com.google.container.v1.NetworkPolicyConfig networkPolicyConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkPolicyConfig, - com.google.container.v1.NetworkPolicyConfig.Builder, - com.google.container.v1.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.v1.NetworkPolicyConfig network_policy_config = 4; - * - * @return Whether the networkPolicyConfig field is set. - */ - public boolean hasNetworkPolicyConfig() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-     * 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.v1.NetworkPolicyConfig network_policy_config = 4; - * - * @return The networkPolicyConfig. - */ - public com.google.container.v1.NetworkPolicyConfig getNetworkPolicyConfig() { - if (networkPolicyConfigBuilder_ == null) { - return networkPolicyConfig_ == null - ? com.google.container.v1.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.v1.NetworkPolicyConfig network_policy_config = 4; - */ - public Builder setNetworkPolicyConfig(com.google.container.v1.NetworkPolicyConfig value) { - if (networkPolicyConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - networkPolicyConfig_ = value; - } else { - networkPolicyConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - 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.v1.NetworkPolicyConfig network_policy_config = 4; - */ - public Builder setNetworkPolicyConfig( - com.google.container.v1.NetworkPolicyConfig.Builder builderForValue) { - if (networkPolicyConfigBuilder_ == null) { - networkPolicyConfig_ = builderForValue.build(); - } else { - networkPolicyConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - 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.v1.NetworkPolicyConfig network_policy_config = 4; - */ - public Builder mergeNetworkPolicyConfig(com.google.container.v1.NetworkPolicyConfig value) { - if (networkPolicyConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && networkPolicyConfig_ != null - && networkPolicyConfig_ - != com.google.container.v1.NetworkPolicyConfig.getDefaultInstance()) { - getNetworkPolicyConfigBuilder().mergeFrom(value); - } else { - networkPolicyConfig_ = value; - } - } else { - networkPolicyConfigBuilder_.mergeFrom(value); - } - if (networkPolicyConfig_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - 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.v1.NetworkPolicyConfig network_policy_config = 4; - */ - public Builder clearNetworkPolicyConfig() { - bitField0_ = (bitField0_ & ~0x00000008); - networkPolicyConfig_ = null; - if (networkPolicyConfigBuilder_ != null) { - networkPolicyConfigBuilder_.dispose(); - networkPolicyConfigBuilder_ = null; - } - onChanged(); - 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.v1.NetworkPolicyConfig network_policy_config = 4; - */ - public com.google.container.v1.NetworkPolicyConfig.Builder getNetworkPolicyConfigBuilder() { - bitField0_ |= 0x00000008; - 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.v1.NetworkPolicyConfig network_policy_config = 4; - */ - public com.google.container.v1.NetworkPolicyConfigOrBuilder getNetworkPolicyConfigOrBuilder() { - if (networkPolicyConfigBuilder_ != null) { - return networkPolicyConfigBuilder_.getMessageOrBuilder(); - } else { - return networkPolicyConfig_ == null - ? com.google.container.v1.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.v1.NetworkPolicyConfig network_policy_config = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkPolicyConfig, - com.google.container.v1.NetworkPolicyConfig.Builder, - com.google.container.v1.NetworkPolicyConfigOrBuilder> - getNetworkPolicyConfigFieldBuilder() { - if (networkPolicyConfigBuilder_ == null) { - networkPolicyConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkPolicyConfig, - com.google.container.v1.NetworkPolicyConfig.Builder, - com.google.container.v1.NetworkPolicyConfigOrBuilder>( - getNetworkPolicyConfig(), getParentForChildren(), isClean()); - networkPolicyConfig_ = null; - } - return networkPolicyConfigBuilder_; - } - - private com.google.container.v1.CloudRunConfig cloudRunConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.CloudRunConfig, - com.google.container.v1.CloudRunConfig.Builder, - com.google.container.v1.CloudRunConfigOrBuilder> - cloudRunConfigBuilder_; - /** - * - * - *
-     * Configuration for the Cloud Run addon, which allows the user to use a
-     * managed Knative service.
-     * 
- * - * .google.container.v1.CloudRunConfig cloud_run_config = 7; - * - * @return Whether the cloudRunConfig field is set. - */ - public boolean hasCloudRunConfig() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-     * Configuration for the Cloud Run addon, which allows the user to use a
-     * managed Knative service.
-     * 
- * - * .google.container.v1.CloudRunConfig cloud_run_config = 7; - * - * @return The cloudRunConfig. - */ - public com.google.container.v1.CloudRunConfig getCloudRunConfig() { - if (cloudRunConfigBuilder_ == null) { - return cloudRunConfig_ == null - ? com.google.container.v1.CloudRunConfig.getDefaultInstance() - : cloudRunConfig_; - } else { - return cloudRunConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for the Cloud Run addon, which allows the user to use a
-     * managed Knative service.
-     * 
- * - * .google.container.v1.CloudRunConfig cloud_run_config = 7; - */ - public Builder setCloudRunConfig(com.google.container.v1.CloudRunConfig value) { - if (cloudRunConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - cloudRunConfig_ = value; - } else { - cloudRunConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the Cloud Run addon, which allows the user to use a
-     * managed Knative service.
-     * 
- * - * .google.container.v1.CloudRunConfig cloud_run_config = 7; - */ - public Builder setCloudRunConfig( - com.google.container.v1.CloudRunConfig.Builder builderForValue) { - if (cloudRunConfigBuilder_ == null) { - cloudRunConfig_ = builderForValue.build(); - } else { - cloudRunConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the Cloud Run addon, which allows the user to use a
-     * managed Knative service.
-     * 
- * - * .google.container.v1.CloudRunConfig cloud_run_config = 7; - */ - public Builder mergeCloudRunConfig(com.google.container.v1.CloudRunConfig value) { - if (cloudRunConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && cloudRunConfig_ != null - && cloudRunConfig_ != com.google.container.v1.CloudRunConfig.getDefaultInstance()) { - getCloudRunConfigBuilder().mergeFrom(value); - } else { - cloudRunConfig_ = value; - } - } else { - cloudRunConfigBuilder_.mergeFrom(value); - } - if (cloudRunConfig_ != null) { - bitField0_ |= 0x00000010; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for the Cloud Run addon, which allows the user to use a
-     * managed Knative service.
-     * 
- * - * .google.container.v1.CloudRunConfig cloud_run_config = 7; - */ - public Builder clearCloudRunConfig() { - bitField0_ = (bitField0_ & ~0x00000010); - cloudRunConfig_ = null; - if (cloudRunConfigBuilder_ != null) { - cloudRunConfigBuilder_.dispose(); - cloudRunConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the Cloud Run addon, which allows the user to use a
-     * managed Knative service.
-     * 
- * - * .google.container.v1.CloudRunConfig cloud_run_config = 7; - */ - public com.google.container.v1.CloudRunConfig.Builder getCloudRunConfigBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getCloudRunConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for the Cloud Run addon, which allows the user to use a
-     * managed Knative service.
-     * 
- * - * .google.container.v1.CloudRunConfig cloud_run_config = 7; - */ - public com.google.container.v1.CloudRunConfigOrBuilder getCloudRunConfigOrBuilder() { - if (cloudRunConfigBuilder_ != null) { - return cloudRunConfigBuilder_.getMessageOrBuilder(); - } else { - return cloudRunConfig_ == null - ? com.google.container.v1.CloudRunConfig.getDefaultInstance() - : cloudRunConfig_; - } - } - /** - * - * - *
-     * Configuration for the Cloud Run addon, which allows the user to use a
-     * managed Knative service.
-     * 
- * - * .google.container.v1.CloudRunConfig cloud_run_config = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.CloudRunConfig, - com.google.container.v1.CloudRunConfig.Builder, - com.google.container.v1.CloudRunConfigOrBuilder> - getCloudRunConfigFieldBuilder() { - if (cloudRunConfigBuilder_ == null) { - cloudRunConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.CloudRunConfig, - com.google.container.v1.CloudRunConfig.Builder, - com.google.container.v1.CloudRunConfigOrBuilder>( - getCloudRunConfig(), getParentForChildren(), isClean()); - cloudRunConfig_ = null; - } - return cloudRunConfigBuilder_; - } - - private com.google.container.v1.DnsCacheConfig dnsCacheConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DnsCacheConfig, - com.google.container.v1.DnsCacheConfig.Builder, - com.google.container.v1.DnsCacheConfigOrBuilder> - dnsCacheConfigBuilder_; - /** - * - * - *
-     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-     * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - * - * @return Whether the dnsCacheConfig field is set. - */ - public boolean hasDnsCacheConfig() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * - * - *
-     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-     * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - * - * @return The dnsCacheConfig. - */ - public com.google.container.v1.DnsCacheConfig getDnsCacheConfig() { - if (dnsCacheConfigBuilder_ == null) { - return dnsCacheConfig_ == null - ? com.google.container.v1.DnsCacheConfig.getDefaultInstance() - : dnsCacheConfig_; - } else { - return dnsCacheConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-     * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - */ - public Builder setDnsCacheConfig(com.google.container.v1.DnsCacheConfig value) { - if (dnsCacheConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dnsCacheConfig_ = value; - } else { - dnsCacheConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-     * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - */ - public Builder setDnsCacheConfig( - com.google.container.v1.DnsCacheConfig.Builder builderForValue) { - if (dnsCacheConfigBuilder_ == null) { - dnsCacheConfig_ = builderForValue.build(); - } else { - dnsCacheConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-     * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - */ - public Builder mergeDnsCacheConfig(com.google.container.v1.DnsCacheConfig value) { - if (dnsCacheConfigBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && dnsCacheConfig_ != null - && dnsCacheConfig_ != com.google.container.v1.DnsCacheConfig.getDefaultInstance()) { - getDnsCacheConfigBuilder().mergeFrom(value); - } else { - dnsCacheConfig_ = value; - } - } else { - dnsCacheConfigBuilder_.mergeFrom(value); - } - if (dnsCacheConfig_ != null) { - bitField0_ |= 0x00000020; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-     * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - */ - public Builder clearDnsCacheConfig() { - bitField0_ = (bitField0_ & ~0x00000020); - dnsCacheConfig_ = null; - if (dnsCacheConfigBuilder_ != null) { - dnsCacheConfigBuilder_.dispose(); - dnsCacheConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-     * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - */ - public com.google.container.v1.DnsCacheConfig.Builder getDnsCacheConfigBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getDnsCacheConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-     * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - */ - public com.google.container.v1.DnsCacheConfigOrBuilder getDnsCacheConfigOrBuilder() { - if (dnsCacheConfigBuilder_ != null) { - return dnsCacheConfigBuilder_.getMessageOrBuilder(); - } else { - return dnsCacheConfig_ == null - ? com.google.container.v1.DnsCacheConfig.getDefaultInstance() - : dnsCacheConfig_; - } - } - /** - * - * - *
-     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-     * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DnsCacheConfig, - com.google.container.v1.DnsCacheConfig.Builder, - com.google.container.v1.DnsCacheConfigOrBuilder> - getDnsCacheConfigFieldBuilder() { - if (dnsCacheConfigBuilder_ == null) { - dnsCacheConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DnsCacheConfig, - com.google.container.v1.DnsCacheConfig.Builder, - com.google.container.v1.DnsCacheConfigOrBuilder>( - getDnsCacheConfig(), getParentForChildren(), isClean()); - dnsCacheConfig_ = null; - } - return dnsCacheConfigBuilder_; - } - - private com.google.container.v1.ConfigConnectorConfig configConnectorConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ConfigConnectorConfig, - com.google.container.v1.ConfigConnectorConfig.Builder, - com.google.container.v1.ConfigConnectorConfigOrBuilder> - configConnectorConfigBuilder_; - /** - * - * - *
-     * Configuration for the ConfigConnector add-on, a Kubernetes
-     * extension to manage hosted GCP services through the Kubernetes API
-     * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - * - * @return Whether the configConnectorConfig field is set. - */ - public boolean hasConfigConnectorConfig() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * - * - *
-     * Configuration for the ConfigConnector add-on, a Kubernetes
-     * extension to manage hosted GCP services through the Kubernetes API
-     * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - * - * @return The configConnectorConfig. - */ - public com.google.container.v1.ConfigConnectorConfig getConfigConnectorConfig() { - if (configConnectorConfigBuilder_ == null) { - return configConnectorConfig_ == null - ? com.google.container.v1.ConfigConnectorConfig.getDefaultInstance() - : configConnectorConfig_; - } else { - return configConnectorConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for the ConfigConnector add-on, a Kubernetes
-     * extension to manage hosted GCP services through the Kubernetes API
-     * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - */ - public Builder setConfigConnectorConfig(com.google.container.v1.ConfigConnectorConfig value) { - if (configConnectorConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - configConnectorConfig_ = value; - } else { - configConnectorConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the ConfigConnector add-on, a Kubernetes
-     * extension to manage hosted GCP services through the Kubernetes API
-     * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - */ - public Builder setConfigConnectorConfig( - com.google.container.v1.ConfigConnectorConfig.Builder builderForValue) { - if (configConnectorConfigBuilder_ == null) { - configConnectorConfig_ = builderForValue.build(); - } else { - configConnectorConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the ConfigConnector add-on, a Kubernetes
-     * extension to manage hosted GCP services through the Kubernetes API
-     * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - */ - public Builder mergeConfigConnectorConfig(com.google.container.v1.ConfigConnectorConfig value) { - if (configConnectorConfigBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && configConnectorConfig_ != null - && configConnectorConfig_ - != com.google.container.v1.ConfigConnectorConfig.getDefaultInstance()) { - getConfigConnectorConfigBuilder().mergeFrom(value); - } else { - configConnectorConfig_ = value; - } - } else { - configConnectorConfigBuilder_.mergeFrom(value); - } - if (configConnectorConfig_ != null) { - bitField0_ |= 0x00000040; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for the ConfigConnector add-on, a Kubernetes
-     * extension to manage hosted GCP services through the Kubernetes API
-     * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - */ - public Builder clearConfigConnectorConfig() { - bitField0_ = (bitField0_ & ~0x00000040); - configConnectorConfig_ = null; - if (configConnectorConfigBuilder_ != null) { - configConnectorConfigBuilder_.dispose(); - configConnectorConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the ConfigConnector add-on, a Kubernetes
-     * extension to manage hosted GCP services through the Kubernetes API
-     * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - */ - public com.google.container.v1.ConfigConnectorConfig.Builder getConfigConnectorConfigBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return getConfigConnectorConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for the ConfigConnector add-on, a Kubernetes
-     * extension to manage hosted GCP services through the Kubernetes API
-     * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - */ - public com.google.container.v1.ConfigConnectorConfigOrBuilder - getConfigConnectorConfigOrBuilder() { - if (configConnectorConfigBuilder_ != null) { - return configConnectorConfigBuilder_.getMessageOrBuilder(); - } else { - return configConnectorConfig_ == null - ? com.google.container.v1.ConfigConnectorConfig.getDefaultInstance() - : configConnectorConfig_; - } - } - /** - * - * - *
-     * Configuration for the ConfigConnector add-on, a Kubernetes
-     * extension to manage hosted GCP services through the Kubernetes API
-     * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ConfigConnectorConfig, - com.google.container.v1.ConfigConnectorConfig.Builder, - com.google.container.v1.ConfigConnectorConfigOrBuilder> - getConfigConnectorConfigFieldBuilder() { - if (configConnectorConfigBuilder_ == null) { - configConnectorConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ConfigConnectorConfig, - com.google.container.v1.ConfigConnectorConfig.Builder, - com.google.container.v1.ConfigConnectorConfigOrBuilder>( - getConfigConnectorConfig(), getParentForChildren(), isClean()); - configConnectorConfig_ = null; - } - return configConnectorConfigBuilder_; - } - - private com.google.container.v1.GcePersistentDiskCsiDriverConfig - gcePersistentDiskCsiDriverConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GcePersistentDiskCsiDriverConfig, - com.google.container.v1.GcePersistentDiskCsiDriverConfig.Builder, - com.google.container.v1.GcePersistentDiskCsiDriverConfigOrBuilder> - gcePersistentDiskCsiDriverConfigBuilder_; - /** - * - * - *
-     * Configuration for the Compute Engine Persistent Disk CSI driver.
-     * 
- * - * - * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - * - * - * @return Whether the gcePersistentDiskCsiDriverConfig field is set. - */ - public boolean hasGcePersistentDiskCsiDriverConfig() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * - * - *
-     * Configuration for the Compute Engine Persistent Disk CSI driver.
-     * 
- * - * - * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - * - * - * @return The gcePersistentDiskCsiDriverConfig. - */ - public com.google.container.v1.GcePersistentDiskCsiDriverConfig - getGcePersistentDiskCsiDriverConfig() { - if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { - return gcePersistentDiskCsiDriverConfig_ == null - ? com.google.container.v1.GcePersistentDiskCsiDriverConfig.getDefaultInstance() - : gcePersistentDiskCsiDriverConfig_; - } else { - return gcePersistentDiskCsiDriverConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for the Compute Engine Persistent Disk CSI driver.
-     * 
- * - * - * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - * - */ - public Builder setGcePersistentDiskCsiDriverConfig( - com.google.container.v1.GcePersistentDiskCsiDriverConfig value) { - if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gcePersistentDiskCsiDriverConfig_ = value; - } else { - gcePersistentDiskCsiDriverConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the Compute Engine Persistent Disk CSI driver.
-     * 
- * - * - * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - * - */ - public Builder setGcePersistentDiskCsiDriverConfig( - com.google.container.v1.GcePersistentDiskCsiDriverConfig.Builder builderForValue) { - if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { - gcePersistentDiskCsiDriverConfig_ = builderForValue.build(); - } else { - gcePersistentDiskCsiDriverConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the Compute Engine Persistent Disk CSI driver.
-     * 
- * - * - * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - * - */ - public Builder mergeGcePersistentDiskCsiDriverConfig( - com.google.container.v1.GcePersistentDiskCsiDriverConfig value) { - if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && gcePersistentDiskCsiDriverConfig_ != null - && gcePersistentDiskCsiDriverConfig_ - != com.google.container.v1.GcePersistentDiskCsiDriverConfig.getDefaultInstance()) { - getGcePersistentDiskCsiDriverConfigBuilder().mergeFrom(value); - } else { - gcePersistentDiskCsiDriverConfig_ = value; - } - } else { - gcePersistentDiskCsiDriverConfigBuilder_.mergeFrom(value); - } - if (gcePersistentDiskCsiDriverConfig_ != null) { - bitField0_ |= 0x00000080; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for the Compute Engine Persistent Disk CSI driver.
-     * 
- * - * - * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - * - */ - public Builder clearGcePersistentDiskCsiDriverConfig() { - bitField0_ = (bitField0_ & ~0x00000080); - gcePersistentDiskCsiDriverConfig_ = null; - if (gcePersistentDiskCsiDriverConfigBuilder_ != null) { - gcePersistentDiskCsiDriverConfigBuilder_.dispose(); - gcePersistentDiskCsiDriverConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the Compute Engine Persistent Disk CSI driver.
-     * 
- * - * - * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - * - */ - public com.google.container.v1.GcePersistentDiskCsiDriverConfig.Builder - getGcePersistentDiskCsiDriverConfigBuilder() { - bitField0_ |= 0x00000080; - onChanged(); - return getGcePersistentDiskCsiDriverConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for the Compute Engine Persistent Disk CSI driver.
-     * 
- * - * - * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - * - */ - public com.google.container.v1.GcePersistentDiskCsiDriverConfigOrBuilder - getGcePersistentDiskCsiDriverConfigOrBuilder() { - if (gcePersistentDiskCsiDriverConfigBuilder_ != null) { - return gcePersistentDiskCsiDriverConfigBuilder_.getMessageOrBuilder(); - } else { - return gcePersistentDiskCsiDriverConfig_ == null - ? com.google.container.v1.GcePersistentDiskCsiDriverConfig.getDefaultInstance() - : gcePersistentDiskCsiDriverConfig_; - } - } - /** - * - * - *
-     * Configuration for the Compute Engine Persistent Disk CSI driver.
-     * 
- * - * - * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GcePersistentDiskCsiDriverConfig, - com.google.container.v1.GcePersistentDiskCsiDriverConfig.Builder, - com.google.container.v1.GcePersistentDiskCsiDriverConfigOrBuilder> - getGcePersistentDiskCsiDriverConfigFieldBuilder() { - if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { - gcePersistentDiskCsiDriverConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GcePersistentDiskCsiDriverConfig, - com.google.container.v1.GcePersistentDiskCsiDriverConfig.Builder, - com.google.container.v1.GcePersistentDiskCsiDriverConfigOrBuilder>( - getGcePersistentDiskCsiDriverConfig(), getParentForChildren(), isClean()); - gcePersistentDiskCsiDriverConfig_ = null; - } - return gcePersistentDiskCsiDriverConfigBuilder_; - } - - private com.google.container.v1.GcpFilestoreCsiDriverConfig gcpFilestoreCsiDriverConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GcpFilestoreCsiDriverConfig, - com.google.container.v1.GcpFilestoreCsiDriverConfig.Builder, - com.google.container.v1.GcpFilestoreCsiDriverConfigOrBuilder> - gcpFilestoreCsiDriverConfigBuilder_; - /** - * - * - *
-     * Configuration for the GCP Filestore CSI driver.
-     * 
- * - * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * - * - * @return Whether the gcpFilestoreCsiDriverConfig field is set. - */ - public boolean hasGcpFilestoreCsiDriverConfig() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * - * - *
-     * Configuration for the GCP Filestore CSI driver.
-     * 
- * - * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * - * - * @return The gcpFilestoreCsiDriverConfig. - */ - public com.google.container.v1.GcpFilestoreCsiDriverConfig getGcpFilestoreCsiDriverConfig() { - if (gcpFilestoreCsiDriverConfigBuilder_ == null) { - return gcpFilestoreCsiDriverConfig_ == null - ? com.google.container.v1.GcpFilestoreCsiDriverConfig.getDefaultInstance() - : gcpFilestoreCsiDriverConfig_; - } else { - return gcpFilestoreCsiDriverConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for the GCP Filestore CSI driver.
-     * 
- * - * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * - */ - public Builder setGcpFilestoreCsiDriverConfig( - com.google.container.v1.GcpFilestoreCsiDriverConfig value) { - if (gcpFilestoreCsiDriverConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gcpFilestoreCsiDriverConfig_ = value; - } else { - gcpFilestoreCsiDriverConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the GCP Filestore CSI driver.
-     * 
- * - * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * - */ - public Builder setGcpFilestoreCsiDriverConfig( - com.google.container.v1.GcpFilestoreCsiDriverConfig.Builder builderForValue) { - if (gcpFilestoreCsiDriverConfigBuilder_ == null) { - gcpFilestoreCsiDriverConfig_ = builderForValue.build(); - } else { - gcpFilestoreCsiDriverConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the GCP Filestore CSI driver.
-     * 
- * - * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * - */ - public Builder mergeGcpFilestoreCsiDriverConfig( - com.google.container.v1.GcpFilestoreCsiDriverConfig value) { - if (gcpFilestoreCsiDriverConfigBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && gcpFilestoreCsiDriverConfig_ != null - && gcpFilestoreCsiDriverConfig_ - != com.google.container.v1.GcpFilestoreCsiDriverConfig.getDefaultInstance()) { - getGcpFilestoreCsiDriverConfigBuilder().mergeFrom(value); - } else { - gcpFilestoreCsiDriverConfig_ = value; - } - } else { - gcpFilestoreCsiDriverConfigBuilder_.mergeFrom(value); - } - if (gcpFilestoreCsiDriverConfig_ != null) { - bitField0_ |= 0x00000100; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for the GCP Filestore CSI driver.
-     * 
- * - * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * - */ - public Builder clearGcpFilestoreCsiDriverConfig() { - bitField0_ = (bitField0_ & ~0x00000100); - gcpFilestoreCsiDriverConfig_ = null; - if (gcpFilestoreCsiDriverConfigBuilder_ != null) { - gcpFilestoreCsiDriverConfigBuilder_.dispose(); - gcpFilestoreCsiDriverConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the GCP Filestore CSI driver.
-     * 
- * - * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * - */ - public com.google.container.v1.GcpFilestoreCsiDriverConfig.Builder - getGcpFilestoreCsiDriverConfigBuilder() { - bitField0_ |= 0x00000100; - onChanged(); - return getGcpFilestoreCsiDriverConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for the GCP Filestore CSI driver.
-     * 
- * - * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * - */ - public com.google.container.v1.GcpFilestoreCsiDriverConfigOrBuilder - getGcpFilestoreCsiDriverConfigOrBuilder() { - if (gcpFilestoreCsiDriverConfigBuilder_ != null) { - return gcpFilestoreCsiDriverConfigBuilder_.getMessageOrBuilder(); - } else { - return gcpFilestoreCsiDriverConfig_ == null - ? com.google.container.v1.GcpFilestoreCsiDriverConfig.getDefaultInstance() - : gcpFilestoreCsiDriverConfig_; - } - } - /** - * - * - *
-     * Configuration for the GCP Filestore CSI driver.
-     * 
- * - * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GcpFilestoreCsiDriverConfig, - com.google.container.v1.GcpFilestoreCsiDriverConfig.Builder, - com.google.container.v1.GcpFilestoreCsiDriverConfigOrBuilder> - getGcpFilestoreCsiDriverConfigFieldBuilder() { - if (gcpFilestoreCsiDriverConfigBuilder_ == null) { - gcpFilestoreCsiDriverConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GcpFilestoreCsiDriverConfig, - com.google.container.v1.GcpFilestoreCsiDriverConfig.Builder, - com.google.container.v1.GcpFilestoreCsiDriverConfigOrBuilder>( - getGcpFilestoreCsiDriverConfig(), getParentForChildren(), isClean()); - gcpFilestoreCsiDriverConfig_ = null; - } - return gcpFilestoreCsiDriverConfigBuilder_; - } - - private com.google.container.v1.GkeBackupAgentConfig gkeBackupAgentConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GkeBackupAgentConfig, - com.google.container.v1.GkeBackupAgentConfig.Builder, - com.google.container.v1.GkeBackupAgentConfigOrBuilder> - gkeBackupAgentConfigBuilder_; - /** - * - * - *
-     * Configuration for the Backup for GKE agent addon.
-     * 
- * - * .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; - * - * @return Whether the gkeBackupAgentConfig field is set. - */ - public boolean hasGkeBackupAgentConfig() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * - * - *
-     * Configuration for the Backup for GKE agent addon.
-     * 
- * - * .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; - * - * @return The gkeBackupAgentConfig. - */ - public com.google.container.v1.GkeBackupAgentConfig getGkeBackupAgentConfig() { - if (gkeBackupAgentConfigBuilder_ == null) { - return gkeBackupAgentConfig_ == null - ? com.google.container.v1.GkeBackupAgentConfig.getDefaultInstance() - : gkeBackupAgentConfig_; - } else { - return gkeBackupAgentConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for the Backup for GKE agent addon.
-     * 
- * - * .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; - */ - public Builder setGkeBackupAgentConfig(com.google.container.v1.GkeBackupAgentConfig value) { - if (gkeBackupAgentConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gkeBackupAgentConfig_ = value; - } else { - gkeBackupAgentConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the Backup for GKE agent addon.
-     * 
- * - * .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; - */ - public Builder setGkeBackupAgentConfig( - com.google.container.v1.GkeBackupAgentConfig.Builder builderForValue) { - if (gkeBackupAgentConfigBuilder_ == null) { - gkeBackupAgentConfig_ = builderForValue.build(); - } else { - gkeBackupAgentConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the Backup for GKE agent addon.
-     * 
- * - * .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; - */ - public Builder mergeGkeBackupAgentConfig(com.google.container.v1.GkeBackupAgentConfig value) { - if (gkeBackupAgentConfigBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && gkeBackupAgentConfig_ != null - && gkeBackupAgentConfig_ - != com.google.container.v1.GkeBackupAgentConfig.getDefaultInstance()) { - getGkeBackupAgentConfigBuilder().mergeFrom(value); - } else { - gkeBackupAgentConfig_ = value; - } - } else { - gkeBackupAgentConfigBuilder_.mergeFrom(value); - } - if (gkeBackupAgentConfig_ != null) { - bitField0_ |= 0x00000200; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for the Backup for GKE agent addon.
-     * 
- * - * .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; - */ - public Builder clearGkeBackupAgentConfig() { - bitField0_ = (bitField0_ & ~0x00000200); - gkeBackupAgentConfig_ = null; - if (gkeBackupAgentConfigBuilder_ != null) { - gkeBackupAgentConfigBuilder_.dispose(); - gkeBackupAgentConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the Backup for GKE agent addon.
-     * 
- * - * .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; - */ - public com.google.container.v1.GkeBackupAgentConfig.Builder getGkeBackupAgentConfigBuilder() { - bitField0_ |= 0x00000200; - onChanged(); - return getGkeBackupAgentConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for the Backup for GKE agent addon.
-     * 
- * - * .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; - */ - public com.google.container.v1.GkeBackupAgentConfigOrBuilder - getGkeBackupAgentConfigOrBuilder() { - if (gkeBackupAgentConfigBuilder_ != null) { - return gkeBackupAgentConfigBuilder_.getMessageOrBuilder(); - } else { - return gkeBackupAgentConfig_ == null - ? com.google.container.v1.GkeBackupAgentConfig.getDefaultInstance() - : gkeBackupAgentConfig_; - } - } - /** - * - * - *
-     * Configuration for the Backup for GKE agent addon.
-     * 
- * - * .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GkeBackupAgentConfig, - com.google.container.v1.GkeBackupAgentConfig.Builder, - com.google.container.v1.GkeBackupAgentConfigOrBuilder> - getGkeBackupAgentConfigFieldBuilder() { - if (gkeBackupAgentConfigBuilder_ == null) { - gkeBackupAgentConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GkeBackupAgentConfig, - com.google.container.v1.GkeBackupAgentConfig.Builder, - com.google.container.v1.GkeBackupAgentConfigOrBuilder>( - getGkeBackupAgentConfig(), getParentForChildren(), isClean()); - gkeBackupAgentConfig_ = null; - } - return gkeBackupAgentConfigBuilder_; - } - - private com.google.container.v1.GcsFuseCsiDriverConfig gcsFuseCsiDriverConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GcsFuseCsiDriverConfig, - com.google.container.v1.GcsFuseCsiDriverConfig.Builder, - com.google.container.v1.GcsFuseCsiDriverConfigOrBuilder> - gcsFuseCsiDriverConfigBuilder_; - /** - * - * - *
-     * Configuration for the Cloud Storage Fuse CSI driver.
-     * 
- * - * .google.container.v1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; - * - * @return Whether the gcsFuseCsiDriverConfig field is set. - */ - public boolean hasGcsFuseCsiDriverConfig() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - * - * - *
-     * Configuration for the Cloud Storage Fuse CSI driver.
-     * 
- * - * .google.container.v1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; - * - * @return The gcsFuseCsiDriverConfig. - */ - public com.google.container.v1.GcsFuseCsiDriverConfig getGcsFuseCsiDriverConfig() { - if (gcsFuseCsiDriverConfigBuilder_ == null) { - return gcsFuseCsiDriverConfig_ == null - ? com.google.container.v1.GcsFuseCsiDriverConfig.getDefaultInstance() - : gcsFuseCsiDriverConfig_; - } else { - return gcsFuseCsiDriverConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for the Cloud Storage Fuse CSI driver.
-     * 
- * - * .google.container.v1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; - */ - public Builder setGcsFuseCsiDriverConfig(com.google.container.v1.GcsFuseCsiDriverConfig value) { - if (gcsFuseCsiDriverConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gcsFuseCsiDriverConfig_ = value; - } else { - gcsFuseCsiDriverConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the Cloud Storage Fuse CSI driver.
-     * 
- * - * .google.container.v1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; - */ - public Builder setGcsFuseCsiDriverConfig( - com.google.container.v1.GcsFuseCsiDriverConfig.Builder builderForValue) { - if (gcsFuseCsiDriverConfigBuilder_ == null) { - gcsFuseCsiDriverConfig_ = builderForValue.build(); - } else { - gcsFuseCsiDriverConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the Cloud Storage Fuse CSI driver.
-     * 
- * - * .google.container.v1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; - */ - public Builder mergeGcsFuseCsiDriverConfig( - com.google.container.v1.GcsFuseCsiDriverConfig value) { - if (gcsFuseCsiDriverConfigBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) - && gcsFuseCsiDriverConfig_ != null - && gcsFuseCsiDriverConfig_ - != com.google.container.v1.GcsFuseCsiDriverConfig.getDefaultInstance()) { - getGcsFuseCsiDriverConfigBuilder().mergeFrom(value); - } else { - gcsFuseCsiDriverConfig_ = value; - } - } else { - gcsFuseCsiDriverConfigBuilder_.mergeFrom(value); - } - if (gcsFuseCsiDriverConfig_ != null) { - bitField0_ |= 0x00000400; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for the Cloud Storage Fuse CSI driver.
-     * 
- * - * .google.container.v1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; - */ - public Builder clearGcsFuseCsiDriverConfig() { - bitField0_ = (bitField0_ & ~0x00000400); - gcsFuseCsiDriverConfig_ = null; - if (gcsFuseCsiDriverConfigBuilder_ != null) { - gcsFuseCsiDriverConfigBuilder_.dispose(); - gcsFuseCsiDriverConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the Cloud Storage Fuse CSI driver.
-     * 
- * - * .google.container.v1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; - */ - public com.google.container.v1.GcsFuseCsiDriverConfig.Builder - getGcsFuseCsiDriverConfigBuilder() { - bitField0_ |= 0x00000400; - onChanged(); - return getGcsFuseCsiDriverConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for the Cloud Storage Fuse CSI driver.
-     * 
- * - * .google.container.v1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; - */ - public com.google.container.v1.GcsFuseCsiDriverConfigOrBuilder - getGcsFuseCsiDriverConfigOrBuilder() { - if (gcsFuseCsiDriverConfigBuilder_ != null) { - return gcsFuseCsiDriverConfigBuilder_.getMessageOrBuilder(); - } else { - return gcsFuseCsiDriverConfig_ == null - ? com.google.container.v1.GcsFuseCsiDriverConfig.getDefaultInstance() - : gcsFuseCsiDriverConfig_; - } - } - /** - * - * - *
-     * Configuration for the Cloud Storage Fuse CSI driver.
-     * 
- * - * .google.container.v1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GcsFuseCsiDriverConfig, - com.google.container.v1.GcsFuseCsiDriverConfig.Builder, - com.google.container.v1.GcsFuseCsiDriverConfigOrBuilder> - getGcsFuseCsiDriverConfigFieldBuilder() { - if (gcsFuseCsiDriverConfigBuilder_ == null) { - gcsFuseCsiDriverConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GcsFuseCsiDriverConfig, - com.google.container.v1.GcsFuseCsiDriverConfig.Builder, - com.google.container.v1.GcsFuseCsiDriverConfigOrBuilder>( - getGcsFuseCsiDriverConfig(), getParentForChildren(), isClean()); - gcsFuseCsiDriverConfig_ = null; - } - return gcsFuseCsiDriverConfigBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.AddonsConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.AddonsConfig) - private static final com.google.container.v1.AddonsConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.AddonsConfig(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.AddonsConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfigOrBuilder.java deleted file mode 100644 index 8d8b56bf1d7d..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfigOrBuilder.java +++ /dev/null @@ -1,465 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface AddonsConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.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.v1.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.v1.HttpLoadBalancing http_load_balancing = 1; - * - * @return The httpLoadBalancing. - */ - com.google.container.v1.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.v1.HttpLoadBalancing http_load_balancing = 1; - */ - com.google.container.v1.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.v1.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.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - * - * @return The horizontalPodAutoscaling. - */ - com.google.container.v1.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.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - */ - com.google.container.v1.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.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * - * - * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1/cluster_service.proto;l=1196 - * @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.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * - * - * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1/cluster_service.proto;l=1196 - * @return The kubernetesDashboard. - */ - @java.lang.Deprecated - com.google.container.v1.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.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * - */ - @java.lang.Deprecated - com.google.container.v1.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.v1.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.v1.NetworkPolicyConfig network_policy_config = 4; - * - * @return The networkPolicyConfig. - */ - com.google.container.v1.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.v1.NetworkPolicyConfig network_policy_config = 4; - */ - com.google.container.v1.NetworkPolicyConfigOrBuilder getNetworkPolicyConfigOrBuilder(); - - /** - * - * - *
-   * Configuration for the Cloud Run addon, which allows the user to use a
-   * managed Knative service.
-   * 
- * - * .google.container.v1.CloudRunConfig cloud_run_config = 7; - * - * @return Whether the cloudRunConfig field is set. - */ - boolean hasCloudRunConfig(); - /** - * - * - *
-   * Configuration for the Cloud Run addon, which allows the user to use a
-   * managed Knative service.
-   * 
- * - * .google.container.v1.CloudRunConfig cloud_run_config = 7; - * - * @return The cloudRunConfig. - */ - com.google.container.v1.CloudRunConfig getCloudRunConfig(); - /** - * - * - *
-   * Configuration for the Cloud Run addon, which allows the user to use a
-   * managed Knative service.
-   * 
- * - * .google.container.v1.CloudRunConfig cloud_run_config = 7; - */ - com.google.container.v1.CloudRunConfigOrBuilder getCloudRunConfigOrBuilder(); - - /** - * - * - *
-   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-   * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - * - * @return Whether the dnsCacheConfig field is set. - */ - boolean hasDnsCacheConfig(); - /** - * - * - *
-   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-   * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - * - * @return The dnsCacheConfig. - */ - com.google.container.v1.DnsCacheConfig getDnsCacheConfig(); - /** - * - * - *
-   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-   * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - */ - com.google.container.v1.DnsCacheConfigOrBuilder getDnsCacheConfigOrBuilder(); - - /** - * - * - *
-   * Configuration for the ConfigConnector add-on, a Kubernetes
-   * extension to manage hosted GCP services through the Kubernetes API
-   * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - * - * @return Whether the configConnectorConfig field is set. - */ - boolean hasConfigConnectorConfig(); - /** - * - * - *
-   * Configuration for the ConfigConnector add-on, a Kubernetes
-   * extension to manage hosted GCP services through the Kubernetes API
-   * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - * - * @return The configConnectorConfig. - */ - com.google.container.v1.ConfigConnectorConfig getConfigConnectorConfig(); - /** - * - * - *
-   * Configuration for the ConfigConnector add-on, a Kubernetes
-   * extension to manage hosted GCP services through the Kubernetes API
-   * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - */ - com.google.container.v1.ConfigConnectorConfigOrBuilder getConfigConnectorConfigOrBuilder(); - - /** - * - * - *
-   * Configuration for the Compute Engine Persistent Disk CSI driver.
-   * 
- * - * - * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - * - * - * @return Whether the gcePersistentDiskCsiDriverConfig field is set. - */ - boolean hasGcePersistentDiskCsiDriverConfig(); - /** - * - * - *
-   * Configuration for the Compute Engine Persistent Disk CSI driver.
-   * 
- * - * - * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - * - * - * @return The gcePersistentDiskCsiDriverConfig. - */ - com.google.container.v1.GcePersistentDiskCsiDriverConfig getGcePersistentDiskCsiDriverConfig(); - /** - * - * - *
-   * Configuration for the Compute Engine Persistent Disk CSI driver.
-   * 
- * - * - * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - * - */ - com.google.container.v1.GcePersistentDiskCsiDriverConfigOrBuilder - getGcePersistentDiskCsiDriverConfigOrBuilder(); - - /** - * - * - *
-   * Configuration for the GCP Filestore CSI driver.
-   * 
- * - * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * - * - * @return Whether the gcpFilestoreCsiDriverConfig field is set. - */ - boolean hasGcpFilestoreCsiDriverConfig(); - /** - * - * - *
-   * Configuration for the GCP Filestore CSI driver.
-   * 
- * - * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * - * - * @return The gcpFilestoreCsiDriverConfig. - */ - com.google.container.v1.GcpFilestoreCsiDriverConfig getGcpFilestoreCsiDriverConfig(); - /** - * - * - *
-   * Configuration for the GCP Filestore CSI driver.
-   * 
- * - * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * - */ - com.google.container.v1.GcpFilestoreCsiDriverConfigOrBuilder - getGcpFilestoreCsiDriverConfigOrBuilder(); - - /** - * - * - *
-   * Configuration for the Backup for GKE agent addon.
-   * 
- * - * .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; - * - * @return Whether the gkeBackupAgentConfig field is set. - */ - boolean hasGkeBackupAgentConfig(); - /** - * - * - *
-   * Configuration for the Backup for GKE agent addon.
-   * 
- * - * .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; - * - * @return The gkeBackupAgentConfig. - */ - com.google.container.v1.GkeBackupAgentConfig getGkeBackupAgentConfig(); - /** - * - * - *
-   * Configuration for the Backup for GKE agent addon.
-   * 
- * - * .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; - */ - com.google.container.v1.GkeBackupAgentConfigOrBuilder getGkeBackupAgentConfigOrBuilder(); - - /** - * - * - *
-   * Configuration for the Cloud Storage Fuse CSI driver.
-   * 
- * - * .google.container.v1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; - * - * @return Whether the gcsFuseCsiDriverConfig field is set. - */ - boolean hasGcsFuseCsiDriverConfig(); - /** - * - * - *
-   * Configuration for the Cloud Storage Fuse CSI driver.
-   * 
- * - * .google.container.v1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; - * - * @return The gcsFuseCsiDriverConfig. - */ - com.google.container.v1.GcsFuseCsiDriverConfig getGcsFuseCsiDriverConfig(); - /** - * - * - *
-   * Configuration for the Cloud Storage Fuse CSI driver.
-   * 
- * - * .google.container.v1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; - */ - com.google.container.v1.GcsFuseCsiDriverConfigOrBuilder getGcsFuseCsiDriverConfigOrBuilder(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedDatapathObservabilityConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedDatapathObservabilityConfig.java deleted file mode 100644 index 36e26e8de324..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedDatapathObservabilityConfig.java +++ /dev/null @@ -1,1019 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * AdvancedDatapathObservabilityConfig specifies configuration of observability
- * features of advanced datapath.
- * 
- * - * Protobuf type {@code google.container.v1.AdvancedDatapathObservabilityConfig} - */ -public final class AdvancedDatapathObservabilityConfig - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.AdvancedDatapathObservabilityConfig) - AdvancedDatapathObservabilityConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use AdvancedDatapathObservabilityConfig.newBuilder() to construct. - private AdvancedDatapathObservabilityConfig( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AdvancedDatapathObservabilityConfig() { - relayMode_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AdvancedDatapathObservabilityConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AdvancedDatapathObservabilityConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AdvancedDatapathObservabilityConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.AdvancedDatapathObservabilityConfig.class, - com.google.container.v1.AdvancedDatapathObservabilityConfig.Builder.class); - } - - /** - * - * - *
-   * Supported Relay modes
-   * 
- * - * Protobuf enum {@code google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode} - */ - public enum RelayMode implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value. This shouldn't be used.
-     * 
- * - * RELAY_MODE_UNSPECIFIED = 0; - */ - RELAY_MODE_UNSPECIFIED(0), - /** - * - * - *
-     * disabled
-     * 
- * - * DISABLED = 1; - */ - DISABLED(1), - /** - * - * - *
-     * exposed via internal load balancer
-     * 
- * - * INTERNAL_VPC_LB = 3; - */ - INTERNAL_VPC_LB(3), - /** - * - * - *
-     * exposed via external load balancer
-     * 
- * - * EXTERNAL_LB = 4; - */ - EXTERNAL_LB(4), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value. This shouldn't be used.
-     * 
- * - * RELAY_MODE_UNSPECIFIED = 0; - */ - public static final int RELAY_MODE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * disabled
-     * 
- * - * DISABLED = 1; - */ - public static final int DISABLED_VALUE = 1; - /** - * - * - *
-     * exposed via internal load balancer
-     * 
- * - * INTERNAL_VPC_LB = 3; - */ - public static final int INTERNAL_VPC_LB_VALUE = 3; - /** - * - * - *
-     * exposed via external load balancer
-     * 
- * - * EXTERNAL_LB = 4; - */ - public static final int EXTERNAL_LB_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 RelayMode 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 RelayMode forNumber(int value) { - switch (value) { - case 0: - return RELAY_MODE_UNSPECIFIED; - case 1: - return DISABLED; - case 3: - return INTERNAL_VPC_LB; - case 4: - return EXTERNAL_LB; - 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 RelayMode findValueByNumber(int number) { - return RelayMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.AdvancedDatapathObservabilityConfig.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final RelayMode[] VALUES = values(); - - public static RelayMode 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 RelayMode(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode) - } - - private int bitField0_; - public static final int ENABLE_METRICS_FIELD_NUMBER = 1; - private boolean enableMetrics_ = false; - /** - * - * - *
-   * Expose flow metrics on nodes
-   * 
- * - * bool enable_metrics = 1; - * - * @return The enableMetrics. - */ - @java.lang.Override - public boolean getEnableMetrics() { - return enableMetrics_; - } - - public static final int RELAY_MODE_FIELD_NUMBER = 2; - private int relayMode_ = 0; - /** - * - * - *
-   * Method used to make Relay available
-   * 
- * - * .google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; - * - * @return The enum numeric value on the wire for relayMode. - */ - @java.lang.Override - public int getRelayModeValue() { - return relayMode_; - } - /** - * - * - *
-   * Method used to make Relay available
-   * 
- * - * .google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; - * - * @return The relayMode. - */ - @java.lang.Override - public com.google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode getRelayMode() { - com.google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode result = - com.google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode.forNumber(relayMode_); - return result == null - ? com.google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode.UNRECOGNIZED - : result; - } - - public static final int ENABLE_RELAY_FIELD_NUMBER = 3; - private boolean enableRelay_ = false; - /** - * - * - *
-   * Enable Relay component
-   * 
- * - * optional bool enable_relay = 3; - * - * @return Whether the enableRelay field is set. - */ - @java.lang.Override - public boolean hasEnableRelay() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Enable Relay component
-   * 
- * - * optional bool enable_relay = 3; - * - * @return The enableRelay. - */ - @java.lang.Override - public boolean getEnableRelay() { - return enableRelay_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enableMetrics_ != false) { - output.writeBool(1, enableMetrics_); - } - if (relayMode_ - != com.google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode - .RELAY_MODE_UNSPECIFIED - .getNumber()) { - output.writeEnum(2, relayMode_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeBool(3, enableRelay_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (enableMetrics_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableMetrics_); - } - if (relayMode_ - != com.google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode - .RELAY_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, relayMode_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enableRelay_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.AdvancedDatapathObservabilityConfig)) { - return super.equals(obj); - } - com.google.container.v1.AdvancedDatapathObservabilityConfig other = - (com.google.container.v1.AdvancedDatapathObservabilityConfig) obj; - - if (getEnableMetrics() != other.getEnableMetrics()) return false; - if (relayMode_ != other.relayMode_) return false; - if (hasEnableRelay() != other.hasEnableRelay()) return false; - if (hasEnableRelay()) { - if (getEnableRelay() != other.getEnableRelay()) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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_METRICS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableMetrics()); - hash = (37 * hash) + RELAY_MODE_FIELD_NUMBER; - hash = (53 * hash) + relayMode_; - if (hasEnableRelay()) { - hash = (37 * hash) + ENABLE_RELAY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableRelay()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.AdvancedDatapathObservabilityConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.AdvancedDatapathObservabilityConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.AdvancedDatapathObservabilityConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.AdvancedDatapathObservabilityConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.AdvancedDatapathObservabilityConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.AdvancedDatapathObservabilityConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.AdvancedDatapathObservabilityConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.AdvancedDatapathObservabilityConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.AdvancedDatapathObservabilityConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.AdvancedDatapathObservabilityConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.AdvancedDatapathObservabilityConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.AdvancedDatapathObservabilityConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.container.v1.AdvancedDatapathObservabilityConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * AdvancedDatapathObservabilityConfig specifies configuration of observability
-   * features of advanced datapath.
-   * 
- * - * Protobuf type {@code google.container.v1.AdvancedDatapathObservabilityConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.AdvancedDatapathObservabilityConfig) - com.google.container.v1.AdvancedDatapathObservabilityConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AdvancedDatapathObservabilityConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AdvancedDatapathObservabilityConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.AdvancedDatapathObservabilityConfig.class, - com.google.container.v1.AdvancedDatapathObservabilityConfig.Builder.class); - } - - // Construct using com.google.container.v1.AdvancedDatapathObservabilityConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enableMetrics_ = false; - relayMode_ = 0; - enableRelay_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AdvancedDatapathObservabilityConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.AdvancedDatapathObservabilityConfig getDefaultInstanceForType() { - return com.google.container.v1.AdvancedDatapathObservabilityConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.AdvancedDatapathObservabilityConfig build() { - com.google.container.v1.AdvancedDatapathObservabilityConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.AdvancedDatapathObservabilityConfig buildPartial() { - com.google.container.v1.AdvancedDatapathObservabilityConfig result = - new com.google.container.v1.AdvancedDatapathObservabilityConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.AdvancedDatapathObservabilityConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enableMetrics_ = enableMetrics_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.relayMode_ = relayMode_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.enableRelay_ = enableRelay_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.AdvancedDatapathObservabilityConfig) { - return mergeFrom((com.google.container.v1.AdvancedDatapathObservabilityConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.AdvancedDatapathObservabilityConfig other) { - if (other == com.google.container.v1.AdvancedDatapathObservabilityConfig.getDefaultInstance()) - return this; - if (other.getEnableMetrics() != false) { - setEnableMetrics(other.getEnableMetrics()); - } - if (other.relayMode_ != 0) { - setRelayModeValue(other.getRelayModeValue()); - } - if (other.hasEnableRelay()) { - setEnableRelay(other.getEnableRelay()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enableMetrics_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - relayMode_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - enableRelay_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean enableMetrics_; - /** - * - * - *
-     * Expose flow metrics on nodes
-     * 
- * - * bool enable_metrics = 1; - * - * @return The enableMetrics. - */ - @java.lang.Override - public boolean getEnableMetrics() { - return enableMetrics_; - } - /** - * - * - *
-     * Expose flow metrics on nodes
-     * 
- * - * bool enable_metrics = 1; - * - * @param value The enableMetrics to set. - * @return This builder for chaining. - */ - public Builder setEnableMetrics(boolean value) { - - enableMetrics_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Expose flow metrics on nodes
-     * 
- * - * bool enable_metrics = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnableMetrics() { - bitField0_ = (bitField0_ & ~0x00000001); - enableMetrics_ = false; - onChanged(); - return this; - } - - private int relayMode_ = 0; - /** - * - * - *
-     * Method used to make Relay available
-     * 
- * - * .google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; - * - * - * @return The enum numeric value on the wire for relayMode. - */ - @java.lang.Override - public int getRelayModeValue() { - return relayMode_; - } - /** - * - * - *
-     * Method used to make Relay available
-     * 
- * - * .google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; - * - * - * @param value The enum numeric value on the wire for relayMode to set. - * @return This builder for chaining. - */ - public Builder setRelayModeValue(int value) { - relayMode_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Method used to make Relay available
-     * 
- * - * .google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; - * - * - * @return The relayMode. - */ - @java.lang.Override - public com.google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode getRelayMode() { - com.google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode result = - com.google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode.forNumber( - relayMode_); - return result == null - ? com.google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Method used to make Relay available
-     * 
- * - * .google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; - * - * - * @param value The relayMode to set. - * @return This builder for chaining. - */ - public Builder setRelayMode( - com.google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - relayMode_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Method used to make Relay available
-     * 
- * - * .google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; - * - * - * @return This builder for chaining. - */ - public Builder clearRelayMode() { - bitField0_ = (bitField0_ & ~0x00000002); - relayMode_ = 0; - onChanged(); - return this; - } - - private boolean enableRelay_; - /** - * - * - *
-     * Enable Relay component
-     * 
- * - * optional bool enable_relay = 3; - * - * @return Whether the enableRelay field is set. - */ - @java.lang.Override - public boolean hasEnableRelay() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * Enable Relay component
-     * 
- * - * optional bool enable_relay = 3; - * - * @return The enableRelay. - */ - @java.lang.Override - public boolean getEnableRelay() { - return enableRelay_; - } - /** - * - * - *
-     * Enable Relay component
-     * 
- * - * optional bool enable_relay = 3; - * - * @param value The enableRelay to set. - * @return This builder for chaining. - */ - public Builder setEnableRelay(boolean value) { - - enableRelay_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable Relay component
-     * 
- * - * optional bool enable_relay = 3; - * - * @return This builder for chaining. - */ - public Builder clearEnableRelay() { - bitField0_ = (bitField0_ & ~0x00000004); - enableRelay_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.AdvancedDatapathObservabilityConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.AdvancedDatapathObservabilityConfig) - private static final com.google.container.v1.AdvancedDatapathObservabilityConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.AdvancedDatapathObservabilityConfig(); - } - - public static com.google.container.v1.AdvancedDatapathObservabilityConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AdvancedDatapathObservabilityConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.AdvancedDatapathObservabilityConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedDatapathObservabilityConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedDatapathObservabilityConfigOrBuilder.java deleted file mode 100644 index 1bd8d1fa7969..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedDatapathObservabilityConfigOrBuilder.java +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface AdvancedDatapathObservabilityConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.AdvancedDatapathObservabilityConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Expose flow metrics on nodes
-   * 
- * - * bool enable_metrics = 1; - * - * @return The enableMetrics. - */ - boolean getEnableMetrics(); - - /** - * - * - *
-   * Method used to make Relay available
-   * 
- * - * .google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; - * - * @return The enum numeric value on the wire for relayMode. - */ - int getRelayModeValue(); - /** - * - * - *
-   * Method used to make Relay available
-   * 
- * - * .google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; - * - * @return The relayMode. - */ - com.google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode getRelayMode(); - - /** - * - * - *
-   * Enable Relay component
-   * 
- * - * optional bool enable_relay = 3; - * - * @return Whether the enableRelay field is set. - */ - boolean hasEnableRelay(); - /** - * - * - *
-   * Enable Relay component
-   * 
- * - * optional bool enable_relay = 3; - * - * @return The enableRelay. - */ - boolean getEnableRelay(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedMachineFeatures.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedMachineFeatures.java deleted file mode 100644 index bdeb7e6e9bdf..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedMachineFeatures.java +++ /dev/null @@ -1,586 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Specifies options for controlling advanced machine features.
- * 
- * - * Protobuf type {@code google.container.v1.AdvancedMachineFeatures} - */ -public final class AdvancedMachineFeatures extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.AdvancedMachineFeatures) - AdvancedMachineFeaturesOrBuilder { - private static final long serialVersionUID = 0L; - // Use AdvancedMachineFeatures.newBuilder() to construct. - private AdvancedMachineFeatures(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AdvancedMachineFeatures() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AdvancedMachineFeatures(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AdvancedMachineFeatures_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AdvancedMachineFeatures_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.AdvancedMachineFeatures.class, - com.google.container.v1.AdvancedMachineFeatures.Builder.class); - } - - private int bitField0_; - public static final int THREADS_PER_CORE_FIELD_NUMBER = 1; - private long threadsPerCore_ = 0L; - /** - * - * - *
-   * The number of threads per physical core. To disable simultaneous
-   * multithreading (SMT) set this to 1. If unset, the maximum number of threads
-   * supported per core by the underlying processor is assumed.
-   * 
- * - * optional int64 threads_per_core = 1; - * - * @return Whether the threadsPerCore field is set. - */ - @java.lang.Override - public boolean hasThreadsPerCore() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * The number of threads per physical core. To disable simultaneous
-   * multithreading (SMT) set this to 1. If unset, the maximum number of threads
-   * supported per core by the underlying processor is assumed.
-   * 
- * - * optional int64 threads_per_core = 1; - * - * @return The threadsPerCore. - */ - @java.lang.Override - public long getThreadsPerCore() { - return threadsPerCore_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt64(1, threadsPerCore_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, threadsPerCore_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.AdvancedMachineFeatures)) { - return super.equals(obj); - } - com.google.container.v1.AdvancedMachineFeatures other = - (com.google.container.v1.AdvancedMachineFeatures) obj; - - if (hasThreadsPerCore() != other.hasThreadsPerCore()) return false; - if (hasThreadsPerCore()) { - if (getThreadsPerCore() != other.getThreadsPerCore()) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasThreadsPerCore()) { - hash = (37 * hash) + THREADS_PER_CORE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getThreadsPerCore()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.AdvancedMachineFeatures parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.AdvancedMachineFeatures parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.AdvancedMachineFeatures parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.AdvancedMachineFeatures parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.AdvancedMachineFeatures parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.AdvancedMachineFeatures parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.AdvancedMachineFeatures parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.AdvancedMachineFeatures parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.AdvancedMachineFeatures parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.AdvancedMachineFeatures parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.AdvancedMachineFeatures parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.AdvancedMachineFeatures parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.AdvancedMachineFeatures prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Specifies options for controlling advanced machine features.
-   * 
- * - * Protobuf type {@code google.container.v1.AdvancedMachineFeatures} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.AdvancedMachineFeatures) - com.google.container.v1.AdvancedMachineFeaturesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AdvancedMachineFeatures_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AdvancedMachineFeatures_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.AdvancedMachineFeatures.class, - com.google.container.v1.AdvancedMachineFeatures.Builder.class); - } - - // Construct using com.google.container.v1.AdvancedMachineFeatures.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - threadsPerCore_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AdvancedMachineFeatures_descriptor; - } - - @java.lang.Override - public com.google.container.v1.AdvancedMachineFeatures getDefaultInstanceForType() { - return com.google.container.v1.AdvancedMachineFeatures.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.AdvancedMachineFeatures build() { - com.google.container.v1.AdvancedMachineFeatures result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.AdvancedMachineFeatures buildPartial() { - com.google.container.v1.AdvancedMachineFeatures result = - new com.google.container.v1.AdvancedMachineFeatures(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.AdvancedMachineFeatures result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.threadsPerCore_ = threadsPerCore_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.AdvancedMachineFeatures) { - return mergeFrom((com.google.container.v1.AdvancedMachineFeatures) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.AdvancedMachineFeatures other) { - if (other == com.google.container.v1.AdvancedMachineFeatures.getDefaultInstance()) - return this; - if (other.hasThreadsPerCore()) { - setThreadsPerCore(other.getThreadsPerCore()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - threadsPerCore_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private long threadsPerCore_; - /** - * - * - *
-     * The number of threads per physical core. To disable simultaneous
-     * multithreading (SMT) set this to 1. If unset, the maximum number of threads
-     * supported per core by the underlying processor is assumed.
-     * 
- * - * optional int64 threads_per_core = 1; - * - * @return Whether the threadsPerCore field is set. - */ - @java.lang.Override - public boolean hasThreadsPerCore() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * The number of threads per physical core. To disable simultaneous
-     * multithreading (SMT) set this to 1. If unset, the maximum number of threads
-     * supported per core by the underlying processor is assumed.
-     * 
- * - * optional int64 threads_per_core = 1; - * - * @return The threadsPerCore. - */ - @java.lang.Override - public long getThreadsPerCore() { - return threadsPerCore_; - } - /** - * - * - *
-     * The number of threads per physical core. To disable simultaneous
-     * multithreading (SMT) set this to 1. If unset, the maximum number of threads
-     * supported per core by the underlying processor is assumed.
-     * 
- * - * optional int64 threads_per_core = 1; - * - * @param value The threadsPerCore to set. - * @return This builder for chaining. - */ - public Builder setThreadsPerCore(long value) { - - threadsPerCore_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The number of threads per physical core. To disable simultaneous
-     * multithreading (SMT) set this to 1. If unset, the maximum number of threads
-     * supported per core by the underlying processor is assumed.
-     * 
- * - * optional int64 threads_per_core = 1; - * - * @return This builder for chaining. - */ - public Builder clearThreadsPerCore() { - bitField0_ = (bitField0_ & ~0x00000001); - threadsPerCore_ = 0L; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.AdvancedMachineFeatures) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.AdvancedMachineFeatures) - private static final com.google.container.v1.AdvancedMachineFeatures DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.AdvancedMachineFeatures(); - } - - public static com.google.container.v1.AdvancedMachineFeatures getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AdvancedMachineFeatures parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.AdvancedMachineFeatures getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedMachineFeaturesOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedMachineFeaturesOrBuilder.java deleted file mode 100644 index 8345a3e4c7fe..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedMachineFeaturesOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface AdvancedMachineFeaturesOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.AdvancedMachineFeatures) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The number of threads per physical core. To disable simultaneous
-   * multithreading (SMT) set this to 1. If unset, the maximum number of threads
-   * supported per core by the underlying processor is assumed.
-   * 
- * - * optional int64 threads_per_core = 1; - * - * @return Whether the threadsPerCore field is set. - */ - boolean hasThreadsPerCore(); - /** - * - * - *
-   * The number of threads per physical core. To disable simultaneous
-   * multithreading (SMT) set this to 1. If unset, the maximum number of threads
-   * supported per core by the underlying processor is assumed.
-   * 
- * - * optional int64 threads_per_core = 1; - * - * @return The threadsPerCore. - */ - long getThreadsPerCore(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AuthenticatorGroupsConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AuthenticatorGroupsConfig.java deleted file mode 100644 index 99987300efea..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AuthenticatorGroupsConfig.java +++ /dev/null @@ -1,729 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Configuration for returning group information from authenticators.
- * 
- * - * Protobuf type {@code google.container.v1.AuthenticatorGroupsConfig} - */ -public final class AuthenticatorGroupsConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AuthenticatorGroupsConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AuthenticatorGroupsConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.AuthenticatorGroupsConfig.class, - com.google.container.v1.AuthenticatorGroupsConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(securityGroup_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, securityGroup_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(securityGroup_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, securityGroup_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.AuthenticatorGroupsConfig)) { - return super.equals(obj); - } - com.google.container.v1.AuthenticatorGroupsConfig other = - (com.google.container.v1.AuthenticatorGroupsConfig) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (!getSecurityGroup().equals(other.getSecurityGroup())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.AuthenticatorGroupsConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.AuthenticatorGroupsConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.AuthenticatorGroupsConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.AuthenticatorGroupsConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.AuthenticatorGroupsConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.AuthenticatorGroupsConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.AuthenticatorGroupsConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.AuthenticatorGroupsConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.AuthenticatorGroupsConfig) - com.google.container.v1.AuthenticatorGroupsConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AuthenticatorGroupsConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AuthenticatorGroupsConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.AuthenticatorGroupsConfig.class, - com.google.container.v1.AuthenticatorGroupsConfig.Builder.class); - } - - // Construct using com.google.container.v1.AuthenticatorGroupsConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enabled_ = false; - securityGroup_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AuthenticatorGroupsConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.AuthenticatorGroupsConfig getDefaultInstanceForType() { - return com.google.container.v1.AuthenticatorGroupsConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.AuthenticatorGroupsConfig build() { - com.google.container.v1.AuthenticatorGroupsConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.AuthenticatorGroupsConfig buildPartial() { - com.google.container.v1.AuthenticatorGroupsConfig result = - new com.google.container.v1.AuthenticatorGroupsConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.AuthenticatorGroupsConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.securityGroup_ = securityGroup_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.AuthenticatorGroupsConfig) { - return mergeFrom((com.google.container.v1.AuthenticatorGroupsConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.AuthenticatorGroupsConfig other) { - if (other == com.google.container.v1.AuthenticatorGroupsConfig.getDefaultInstance()) - return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - if (!other.getSecurityGroup().isEmpty()) { - securityGroup_ = other.securityGroup_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - securityGroup_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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() { - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000002; - 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(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.AuthenticatorGroupsConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.AuthenticatorGroupsConfig) - private static final com.google.container.v1.AuthenticatorGroupsConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.AuthenticatorGroupsConfig(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.AuthenticatorGroupsConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AuthenticatorGroupsConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AuthenticatorGroupsConfigOrBuilder.java deleted file mode 100644 index 6869968e4fee..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AuthenticatorGroupsConfigOrBuilder.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface AuthenticatorGroupsConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoUpgradeOptions.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoUpgradeOptions.java deleted file mode 100644 index f3924af3ba62..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoUpgradeOptions.java +++ /dev/null @@ -1,829 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * AutoUpgradeOptions defines the set of options for the user to control how
- * the Auto Upgrades will proceed.
- * 
- * - * Protobuf type {@code google.container.v1.AutoUpgradeOptions} - */ -public final class AutoUpgradeOptions extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AutoUpgradeOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AutoUpgradeOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.AutoUpgradeOptions.class, - com.google.container.v1.AutoUpgradeOptions.Builder.class); - } - - public static final int AUTO_UPGRADE_START_TIME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(autoUpgradeStartTime_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, autoUpgradeStartTime_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(autoUpgradeStartTime_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, autoUpgradeStartTime_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.AutoUpgradeOptions)) { - return super.equals(obj); - } - com.google.container.v1.AutoUpgradeOptions other = - (com.google.container.v1.AutoUpgradeOptions) obj; - - if (!getAutoUpgradeStartTime().equals(other.getAutoUpgradeStartTime())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.AutoUpgradeOptions parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.AutoUpgradeOptions parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.AutoUpgradeOptions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.AutoUpgradeOptions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.AutoUpgradeOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.AutoUpgradeOptions parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.AutoUpgradeOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.AutoUpgradeOptions} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.AutoUpgradeOptions) - com.google.container.v1.AutoUpgradeOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AutoUpgradeOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AutoUpgradeOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.AutoUpgradeOptions.class, - com.google.container.v1.AutoUpgradeOptions.Builder.class); - } - - // Construct using com.google.container.v1.AutoUpgradeOptions.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - autoUpgradeStartTime_ = ""; - description_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AutoUpgradeOptions_descriptor; - } - - @java.lang.Override - public com.google.container.v1.AutoUpgradeOptions getDefaultInstanceForType() { - return com.google.container.v1.AutoUpgradeOptions.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.AutoUpgradeOptions build() { - com.google.container.v1.AutoUpgradeOptions result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.AutoUpgradeOptions buildPartial() { - com.google.container.v1.AutoUpgradeOptions result = - new com.google.container.v1.AutoUpgradeOptions(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.AutoUpgradeOptions result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.autoUpgradeStartTime_ = autoUpgradeStartTime_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.description_ = description_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.AutoUpgradeOptions) { - return mergeFrom((com.google.container.v1.AutoUpgradeOptions) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.AutoUpgradeOptions other) { - if (other == com.google.container.v1.AutoUpgradeOptions.getDefaultInstance()) return this; - if (!other.getAutoUpgradeStartTime().isEmpty()) { - autoUpgradeStartTime_ = other.autoUpgradeStartTime_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - autoUpgradeStartTime_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - 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; - bitField0_ |= 0x00000002; - 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(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.AutoUpgradeOptions) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.AutoUpgradeOptions) - private static final com.google.container.v1.AutoUpgradeOptions DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.AutoUpgradeOptions(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.AutoUpgradeOptions getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoUpgradeOptionsOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoUpgradeOptionsOrBuilder.java deleted file mode 100644 index 60c489aa6123..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoUpgradeOptionsOrBuilder.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface AutoUpgradeOptionsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Autopilot.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Autopilot.java deleted file mode 100644 index 1de2dea379c3..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Autopilot.java +++ /dev/null @@ -1,818 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Autopilot is the configuration for Autopilot settings on the cluster.
- * 
- * - * Protobuf type {@code google.container.v1.Autopilot} - */ -public final class Autopilot extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.Autopilot) - AutopilotOrBuilder { - private static final long serialVersionUID = 0L; - // Use Autopilot.newBuilder() to construct. - private Autopilot(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Autopilot() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Autopilot(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_Autopilot_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_Autopilot_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.Autopilot.class, - com.google.container.v1.Autopilot.Builder.class); - } - - private int bitField0_; - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * Enable Autopilot
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - public static final int WORKLOAD_POLICY_CONFIG_FIELD_NUMBER = 2; - private com.google.container.v1.WorkloadPolicyConfig workloadPolicyConfig_; - /** - * - * - *
-   * Workload policy configuration for Autopilot.
-   * 
- * - * .google.container.v1.WorkloadPolicyConfig workload_policy_config = 2; - * - * @return Whether the workloadPolicyConfig field is set. - */ - @java.lang.Override - public boolean hasWorkloadPolicyConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Workload policy configuration for Autopilot.
-   * 
- * - * .google.container.v1.WorkloadPolicyConfig workload_policy_config = 2; - * - * @return The workloadPolicyConfig. - */ - @java.lang.Override - public com.google.container.v1.WorkloadPolicyConfig getWorkloadPolicyConfig() { - return workloadPolicyConfig_ == null - ? com.google.container.v1.WorkloadPolicyConfig.getDefaultInstance() - : workloadPolicyConfig_; - } - /** - * - * - *
-   * Workload policy configuration for Autopilot.
-   * 
- * - * .google.container.v1.WorkloadPolicyConfig workload_policy_config = 2; - */ - @java.lang.Override - public com.google.container.v1.WorkloadPolicyConfigOrBuilder getWorkloadPolicyConfigOrBuilder() { - return workloadPolicyConfig_ == null - ? com.google.container.v1.WorkloadPolicyConfig.getDefaultInstance() - : workloadPolicyConfig_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getWorkloadPolicyConfig()); - } - getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, getWorkloadPolicyConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.Autopilot)) { - return super.equals(obj); - } - com.google.container.v1.Autopilot other = (com.google.container.v1.Autopilot) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (hasWorkloadPolicyConfig() != other.hasWorkloadPolicyConfig()) return false; - if (hasWorkloadPolicyConfig()) { - if (!getWorkloadPolicyConfig().equals(other.getWorkloadPolicyConfig())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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 (hasWorkloadPolicyConfig()) { - hash = (37 * hash) + WORKLOAD_POLICY_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getWorkloadPolicyConfig().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.Autopilot parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.Autopilot parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.Autopilot parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.Autopilot parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.Autopilot parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.Autopilot parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.Autopilot parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.Autopilot parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.Autopilot parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.Autopilot parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.Autopilot parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.Autopilot parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.Autopilot prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Autopilot is the configuration for Autopilot settings on the cluster.
-   * 
- * - * Protobuf type {@code google.container.v1.Autopilot} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.Autopilot) - com.google.container.v1.AutopilotOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_Autopilot_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_Autopilot_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.Autopilot.class, - com.google.container.v1.Autopilot.Builder.class); - } - - // Construct using com.google.container.v1.Autopilot.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getWorkloadPolicyConfigFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enabled_ = false; - workloadPolicyConfig_ = null; - if (workloadPolicyConfigBuilder_ != null) { - workloadPolicyConfigBuilder_.dispose(); - workloadPolicyConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_Autopilot_descriptor; - } - - @java.lang.Override - public com.google.container.v1.Autopilot getDefaultInstanceForType() { - return com.google.container.v1.Autopilot.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.Autopilot build() { - com.google.container.v1.Autopilot result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.Autopilot buildPartial() { - com.google.container.v1.Autopilot result = new com.google.container.v1.Autopilot(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.Autopilot result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.workloadPolicyConfig_ = - workloadPolicyConfigBuilder_ == null - ? workloadPolicyConfig_ - : workloadPolicyConfigBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.Autopilot) { - return mergeFrom((com.google.container.v1.Autopilot) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.Autopilot other) { - if (other == com.google.container.v1.Autopilot.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - if (other.hasWorkloadPolicyConfig()) { - mergeWorkloadPolicyConfig(other.getWorkloadPolicyConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - input.readMessage( - getWorkloadPolicyConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean enabled_; - /** - * - * - *
-     * Enable Autopilot
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Enable Autopilot
-     * 
- * - * bool enabled = 1; - * - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable Autopilot
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - enabled_ = false; - onChanged(); - return this; - } - - private com.google.container.v1.WorkloadPolicyConfig workloadPolicyConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WorkloadPolicyConfig, - com.google.container.v1.WorkloadPolicyConfig.Builder, - com.google.container.v1.WorkloadPolicyConfigOrBuilder> - workloadPolicyConfigBuilder_; - /** - * - * - *
-     * Workload policy configuration for Autopilot.
-     * 
- * - * .google.container.v1.WorkloadPolicyConfig workload_policy_config = 2; - * - * @return Whether the workloadPolicyConfig field is set. - */ - public boolean hasWorkloadPolicyConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * Workload policy configuration for Autopilot.
-     * 
- * - * .google.container.v1.WorkloadPolicyConfig workload_policy_config = 2; - * - * @return The workloadPolicyConfig. - */ - public com.google.container.v1.WorkloadPolicyConfig getWorkloadPolicyConfig() { - if (workloadPolicyConfigBuilder_ == null) { - return workloadPolicyConfig_ == null - ? com.google.container.v1.WorkloadPolicyConfig.getDefaultInstance() - : workloadPolicyConfig_; - } else { - return workloadPolicyConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Workload policy configuration for Autopilot.
-     * 
- * - * .google.container.v1.WorkloadPolicyConfig workload_policy_config = 2; - */ - public Builder setWorkloadPolicyConfig(com.google.container.v1.WorkloadPolicyConfig value) { - if (workloadPolicyConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workloadPolicyConfig_ = value; - } else { - workloadPolicyConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Workload policy configuration for Autopilot.
-     * 
- * - * .google.container.v1.WorkloadPolicyConfig workload_policy_config = 2; - */ - public Builder setWorkloadPolicyConfig( - com.google.container.v1.WorkloadPolicyConfig.Builder builderForValue) { - if (workloadPolicyConfigBuilder_ == null) { - workloadPolicyConfig_ = builderForValue.build(); - } else { - workloadPolicyConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Workload policy configuration for Autopilot.
-     * 
- * - * .google.container.v1.WorkloadPolicyConfig workload_policy_config = 2; - */ - public Builder mergeWorkloadPolicyConfig(com.google.container.v1.WorkloadPolicyConfig value) { - if (workloadPolicyConfigBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && workloadPolicyConfig_ != null - && workloadPolicyConfig_ - != com.google.container.v1.WorkloadPolicyConfig.getDefaultInstance()) { - getWorkloadPolicyConfigBuilder().mergeFrom(value); - } else { - workloadPolicyConfig_ = value; - } - } else { - workloadPolicyConfigBuilder_.mergeFrom(value); - } - if (workloadPolicyConfig_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Workload policy configuration for Autopilot.
-     * 
- * - * .google.container.v1.WorkloadPolicyConfig workload_policy_config = 2; - */ - public Builder clearWorkloadPolicyConfig() { - bitField0_ = (bitField0_ & ~0x00000002); - workloadPolicyConfig_ = null; - if (workloadPolicyConfigBuilder_ != null) { - workloadPolicyConfigBuilder_.dispose(); - workloadPolicyConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Workload policy configuration for Autopilot.
-     * 
- * - * .google.container.v1.WorkloadPolicyConfig workload_policy_config = 2; - */ - public com.google.container.v1.WorkloadPolicyConfig.Builder getWorkloadPolicyConfigBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getWorkloadPolicyConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Workload policy configuration for Autopilot.
-     * 
- * - * .google.container.v1.WorkloadPolicyConfig workload_policy_config = 2; - */ - public com.google.container.v1.WorkloadPolicyConfigOrBuilder - getWorkloadPolicyConfigOrBuilder() { - if (workloadPolicyConfigBuilder_ != null) { - return workloadPolicyConfigBuilder_.getMessageOrBuilder(); - } else { - return workloadPolicyConfig_ == null - ? com.google.container.v1.WorkloadPolicyConfig.getDefaultInstance() - : workloadPolicyConfig_; - } - } - /** - * - * - *
-     * Workload policy configuration for Autopilot.
-     * 
- * - * .google.container.v1.WorkloadPolicyConfig workload_policy_config = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WorkloadPolicyConfig, - com.google.container.v1.WorkloadPolicyConfig.Builder, - com.google.container.v1.WorkloadPolicyConfigOrBuilder> - getWorkloadPolicyConfigFieldBuilder() { - if (workloadPolicyConfigBuilder_ == null) { - workloadPolicyConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WorkloadPolicyConfig, - com.google.container.v1.WorkloadPolicyConfig.Builder, - com.google.container.v1.WorkloadPolicyConfigOrBuilder>( - getWorkloadPolicyConfig(), getParentForChildren(), isClean()); - workloadPolicyConfig_ = null; - } - return workloadPolicyConfigBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.Autopilot) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.Autopilot) - private static final com.google.container.v1.Autopilot DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.Autopilot(); - } - - public static com.google.container.v1.Autopilot getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Autopilot parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.Autopilot getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutopilotCompatibilityIssue.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutopilotCompatibilityIssue.java deleted file mode 100644 index 66a3d46970bc..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutopilotCompatibilityIssue.java +++ /dev/null @@ -1,1901 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * AutopilotCompatibilityIssue contains information about a specific
- * compatibility issue with Autopilot mode.
- * 
- * - * Protobuf type {@code google.container.v1.AutopilotCompatibilityIssue} - */ -public final class AutopilotCompatibilityIssue extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.AutopilotCompatibilityIssue) - AutopilotCompatibilityIssueOrBuilder { - private static final long serialVersionUID = 0L; - // Use AutopilotCompatibilityIssue.newBuilder() to construct. - private AutopilotCompatibilityIssue(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AutopilotCompatibilityIssue() { - constraintType_ = ""; - incompatibilityType_ = 0; - subjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); - documentationUrl_ = ""; - description_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AutopilotCompatibilityIssue(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AutopilotCompatibilityIssue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AutopilotCompatibilityIssue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.AutopilotCompatibilityIssue.class, - com.google.container.v1.AutopilotCompatibilityIssue.Builder.class); - } - - /** - * - * - *
-   * The type of the reported issue.
-   * 
- * - * Protobuf enum {@code google.container.v1.AutopilotCompatibilityIssue.IssueType} - */ - public enum IssueType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value, should not be used.
-     * 
- * - * UNSPECIFIED = 0; - */ - UNSPECIFIED(0), - /** - * - * - *
-     * Indicates that the issue is a known incompatibility between the
-     * cluster and Autopilot mode.
-     * 
- * - * INCOMPATIBILITY = 1; - */ - INCOMPATIBILITY(1), - /** - * - * - *
-     * Indicates the issue is an incompatibility if customers take no further
-     * action to resolve.
-     * 
- * - * ADDITIONAL_CONFIG_REQUIRED = 2; - */ - ADDITIONAL_CONFIG_REQUIRED(2), - /** - * - * - *
-     * Indicates the issue is not an incompatibility, but depending on the
-     * workloads business logic, there is a potential that they won't work on
-     * Autopilot.
-     * 
- * - * PASSED_WITH_OPTIONAL_CONFIG = 3; - */ - PASSED_WITH_OPTIONAL_CONFIG(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value, should not be used.
-     * 
- * - * UNSPECIFIED = 0; - */ - public static final int UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Indicates that the issue is a known incompatibility between the
-     * cluster and Autopilot mode.
-     * 
- * - * INCOMPATIBILITY = 1; - */ - public static final int INCOMPATIBILITY_VALUE = 1; - /** - * - * - *
-     * Indicates the issue is an incompatibility if customers take no further
-     * action to resolve.
-     * 
- * - * ADDITIONAL_CONFIG_REQUIRED = 2; - */ - public static final int ADDITIONAL_CONFIG_REQUIRED_VALUE = 2; - /** - * - * - *
-     * Indicates the issue is not an incompatibility, but depending on the
-     * workloads business logic, there is a potential that they won't work on
-     * Autopilot.
-     * 
- * - * PASSED_WITH_OPTIONAL_CONFIG = 3; - */ - public static final int PASSED_WITH_OPTIONAL_CONFIG_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 IssueType 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 IssueType forNumber(int value) { - switch (value) { - case 0: - return UNSPECIFIED; - case 1: - return INCOMPATIBILITY; - case 2: - return ADDITIONAL_CONFIG_REQUIRED; - case 3: - return PASSED_WITH_OPTIONAL_CONFIG; - 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 IssueType findValueByNumber(int number) { - return IssueType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.AutopilotCompatibilityIssue.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final IssueType[] VALUES = values(); - - public static IssueType 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 IssueType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.AutopilotCompatibilityIssue.IssueType) - } - - private int bitField0_; - public static final int LAST_OBSERVATION_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp lastObservation_; - /** - * - * - *
-   * The last time when this issue was observed.
-   * 
- * - * .google.protobuf.Timestamp last_observation = 1; - * - * @return Whether the lastObservation field is set. - */ - @java.lang.Override - public boolean hasLastObservation() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * The last time when this issue was observed.
-   * 
- * - * .google.protobuf.Timestamp last_observation = 1; - * - * @return The lastObservation. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getLastObservation() { - return lastObservation_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastObservation_; - } - /** - * - * - *
-   * The last time when this issue was observed.
-   * 
- * - * .google.protobuf.Timestamp last_observation = 1; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getLastObservationOrBuilder() { - return lastObservation_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastObservation_; - } - - public static final int CONSTRAINT_TYPE_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object constraintType_ = ""; - /** - * - * - *
-   * The constraint type of the issue.
-   * 
- * - * string constraint_type = 2; - * - * @return The constraintType. - */ - @java.lang.Override - public java.lang.String getConstraintType() { - java.lang.Object ref = constraintType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - constraintType_ = s; - return s; - } - } - /** - * - * - *
-   * The constraint type of the issue.
-   * 
- * - * string constraint_type = 2; - * - * @return The bytes for constraintType. - */ - @java.lang.Override - public com.google.protobuf.ByteString getConstraintTypeBytes() { - java.lang.Object ref = constraintType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - constraintType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INCOMPATIBILITY_TYPE_FIELD_NUMBER = 3; - private int incompatibilityType_ = 0; - /** - * - * - *
-   * The incompatibility type of this issue.
-   * 
- * - * .google.container.v1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; - * - * - * @return The enum numeric value on the wire for incompatibilityType. - */ - @java.lang.Override - public int getIncompatibilityTypeValue() { - return incompatibilityType_; - } - /** - * - * - *
-   * The incompatibility type of this issue.
-   * 
- * - * .google.container.v1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; - * - * - * @return The incompatibilityType. - */ - @java.lang.Override - public com.google.container.v1.AutopilotCompatibilityIssue.IssueType getIncompatibilityType() { - com.google.container.v1.AutopilotCompatibilityIssue.IssueType result = - com.google.container.v1.AutopilotCompatibilityIssue.IssueType.forNumber( - incompatibilityType_); - return result == null - ? com.google.container.v1.AutopilotCompatibilityIssue.IssueType.UNRECOGNIZED - : result; - } - - public static final int SUBJECTS_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList subjects_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * The name of the resources which are subject to this issue.
-   * 
- * - * repeated string subjects = 4; - * - * @return A list containing the subjects. - */ - public com.google.protobuf.ProtocolStringList getSubjectsList() { - return subjects_; - } - /** - * - * - *
-   * The name of the resources which are subject to this issue.
-   * 
- * - * repeated string subjects = 4; - * - * @return The count of subjects. - */ - public int getSubjectsCount() { - return subjects_.size(); - } - /** - * - * - *
-   * The name of the resources which are subject to this issue.
-   * 
- * - * repeated string subjects = 4; - * - * @param index The index of the element to return. - * @return The subjects at the given index. - */ - public java.lang.String getSubjects(int index) { - return subjects_.get(index); - } - /** - * - * - *
-   * The name of the resources which are subject to this issue.
-   * 
- * - * repeated string subjects = 4; - * - * @param index The index of the value to return. - * @return The bytes of the subjects at the given index. - */ - public com.google.protobuf.ByteString getSubjectsBytes(int index) { - return subjects_.getByteString(index); - } - - public static final int DOCUMENTATION_URL_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - private volatile java.lang.Object documentationUrl_ = ""; - /** - * - * - *
-   * A URL to a public documnetation, which addresses resolving this issue.
-   * 
- * - * string documentation_url = 5; - * - * @return The documentationUrl. - */ - @java.lang.Override - public java.lang.String getDocumentationUrl() { - java.lang.Object ref = documentationUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - documentationUrl_ = s; - return s; - } - } - /** - * - * - *
-   * A URL to a public documnetation, which addresses resolving this issue.
-   * 
- * - * string documentation_url = 5; - * - * @return The bytes for documentationUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDocumentationUrlBytes() { - java.lang.Object ref = documentationUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - documentationUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 6; - - @SuppressWarnings("serial") - private volatile java.lang.Object description_ = ""; - /** - * - * - *
-   * The description of the issue.
-   * 
- * - * string description = 6; - * - * @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; - } - } - /** - * - * - *
-   * The description of the issue.
-   * 
- * - * string description = 6; - * - * @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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getLastObservation()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(constraintType_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, constraintType_); - } - if (incompatibilityType_ - != com.google.container.v1.AutopilotCompatibilityIssue.IssueType.UNSPECIFIED.getNumber()) { - output.writeEnum(3, incompatibilityType_); - } - for (int i = 0; i < subjects_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, subjects_.getRaw(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentationUrl_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, documentationUrl_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLastObservation()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(constraintType_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, constraintType_); - } - if (incompatibilityType_ - != com.google.container.v1.AutopilotCompatibilityIssue.IssueType.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, incompatibilityType_); - } - { - int dataSize = 0; - for (int i = 0; i < subjects_.size(); i++) { - dataSize += computeStringSizeNoTag(subjects_.getRaw(i)); - } - size += dataSize; - size += 1 * getSubjectsList().size(); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentationUrl_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, documentationUrl_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.AutopilotCompatibilityIssue)) { - return super.equals(obj); - } - com.google.container.v1.AutopilotCompatibilityIssue other = - (com.google.container.v1.AutopilotCompatibilityIssue) obj; - - if (hasLastObservation() != other.hasLastObservation()) return false; - if (hasLastObservation()) { - if (!getLastObservation().equals(other.getLastObservation())) return false; - } - if (!getConstraintType().equals(other.getConstraintType())) return false; - if (incompatibilityType_ != other.incompatibilityType_) return false; - if (!getSubjectsList().equals(other.getSubjectsList())) return false; - if (!getDocumentationUrl().equals(other.getDocumentationUrl())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasLastObservation()) { - hash = (37 * hash) + LAST_OBSERVATION_FIELD_NUMBER; - hash = (53 * hash) + getLastObservation().hashCode(); - } - hash = (37 * hash) + CONSTRAINT_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getConstraintType().hashCode(); - hash = (37 * hash) + INCOMPATIBILITY_TYPE_FIELD_NUMBER; - hash = (53 * hash) + incompatibilityType_; - if (getSubjectsCount() > 0) { - hash = (37 * hash) + SUBJECTS_FIELD_NUMBER; - hash = (53 * hash) + getSubjectsList().hashCode(); - } - hash = (37 * hash) + DOCUMENTATION_URL_FIELD_NUMBER; - hash = (53 * hash) + getDocumentationUrl().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.AutopilotCompatibilityIssue parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.AutopilotCompatibilityIssue parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.AutopilotCompatibilityIssue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.AutopilotCompatibilityIssue parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.AutopilotCompatibilityIssue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.AutopilotCompatibilityIssue parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.AutopilotCompatibilityIssue parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.AutopilotCompatibilityIssue parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.AutopilotCompatibilityIssue parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.AutopilotCompatibilityIssue parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.AutopilotCompatibilityIssue parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.AutopilotCompatibilityIssue parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.AutopilotCompatibilityIssue prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * AutopilotCompatibilityIssue contains information about a specific
-   * compatibility issue with Autopilot mode.
-   * 
- * - * Protobuf type {@code google.container.v1.AutopilotCompatibilityIssue} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.AutopilotCompatibilityIssue) - com.google.container.v1.AutopilotCompatibilityIssueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AutopilotCompatibilityIssue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AutopilotCompatibilityIssue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.AutopilotCompatibilityIssue.class, - com.google.container.v1.AutopilotCompatibilityIssue.Builder.class); - } - - // Construct using com.google.container.v1.AutopilotCompatibilityIssue.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getLastObservationFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - lastObservation_ = null; - if (lastObservationBuilder_ != null) { - lastObservationBuilder_.dispose(); - lastObservationBuilder_ = null; - } - constraintType_ = ""; - incompatibilityType_ = 0; - subjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); - documentationUrl_ = ""; - description_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AutopilotCompatibilityIssue_descriptor; - } - - @java.lang.Override - public com.google.container.v1.AutopilotCompatibilityIssue getDefaultInstanceForType() { - return com.google.container.v1.AutopilotCompatibilityIssue.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.AutopilotCompatibilityIssue build() { - com.google.container.v1.AutopilotCompatibilityIssue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.AutopilotCompatibilityIssue buildPartial() { - com.google.container.v1.AutopilotCompatibilityIssue result = - new com.google.container.v1.AutopilotCompatibilityIssue(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.AutopilotCompatibilityIssue result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.lastObservation_ = - lastObservationBuilder_ == null ? lastObservation_ : lastObservationBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.constraintType_ = constraintType_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.incompatibilityType_ = incompatibilityType_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - subjects_.makeImmutable(); - result.subjects_ = subjects_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.documentationUrl_ = documentationUrl_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.description_ = description_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.AutopilotCompatibilityIssue) { - return mergeFrom((com.google.container.v1.AutopilotCompatibilityIssue) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.AutopilotCompatibilityIssue other) { - if (other == com.google.container.v1.AutopilotCompatibilityIssue.getDefaultInstance()) - return this; - if (other.hasLastObservation()) { - mergeLastObservation(other.getLastObservation()); - } - if (!other.getConstraintType().isEmpty()) { - constraintType_ = other.constraintType_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.incompatibilityType_ != 0) { - setIncompatibilityTypeValue(other.getIncompatibilityTypeValue()); - } - if (!other.subjects_.isEmpty()) { - if (subjects_.isEmpty()) { - subjects_ = other.subjects_; - bitField0_ |= 0x00000008; - } else { - ensureSubjectsIsMutable(); - subjects_.addAll(other.subjects_); - } - onChanged(); - } - if (!other.getDocumentationUrl().isEmpty()) { - documentationUrl_ = other.documentationUrl_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000020; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getLastObservationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - constraintType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - incompatibilityType_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureSubjectsIsMutable(); - subjects_.add(s); - break; - } // case 34 - case 42: - { - documentationUrl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.protobuf.Timestamp lastObservation_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - lastObservationBuilder_; - /** - * - * - *
-     * The last time when this issue was observed.
-     * 
- * - * .google.protobuf.Timestamp last_observation = 1; - * - * @return Whether the lastObservation field is set. - */ - public boolean hasLastObservation() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * The last time when this issue was observed.
-     * 
- * - * .google.protobuf.Timestamp last_observation = 1; - * - * @return The lastObservation. - */ - public com.google.protobuf.Timestamp getLastObservation() { - if (lastObservationBuilder_ == null) { - return lastObservation_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastObservation_; - } else { - return lastObservationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The last time when this issue was observed.
-     * 
- * - * .google.protobuf.Timestamp last_observation = 1; - */ - public Builder setLastObservation(com.google.protobuf.Timestamp value) { - if (lastObservationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - lastObservation_ = value; - } else { - lastObservationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The last time when this issue was observed.
-     * 
- * - * .google.protobuf.Timestamp last_observation = 1; - */ - public Builder setLastObservation(com.google.protobuf.Timestamp.Builder builderForValue) { - if (lastObservationBuilder_ == null) { - lastObservation_ = builderForValue.build(); - } else { - lastObservationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The last time when this issue was observed.
-     * 
- * - * .google.protobuf.Timestamp last_observation = 1; - */ - public Builder mergeLastObservation(com.google.protobuf.Timestamp value) { - if (lastObservationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && lastObservation_ != null - && lastObservation_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getLastObservationBuilder().mergeFrom(value); - } else { - lastObservation_ = value; - } - } else { - lastObservationBuilder_.mergeFrom(value); - } - if (lastObservation_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The last time when this issue was observed.
-     * 
- * - * .google.protobuf.Timestamp last_observation = 1; - */ - public Builder clearLastObservation() { - bitField0_ = (bitField0_ & ~0x00000001); - lastObservation_ = null; - if (lastObservationBuilder_ != null) { - lastObservationBuilder_.dispose(); - lastObservationBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The last time when this issue was observed.
-     * 
- * - * .google.protobuf.Timestamp last_observation = 1; - */ - public com.google.protobuf.Timestamp.Builder getLastObservationBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getLastObservationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The last time when this issue was observed.
-     * 
- * - * .google.protobuf.Timestamp last_observation = 1; - */ - public com.google.protobuf.TimestampOrBuilder getLastObservationOrBuilder() { - if (lastObservationBuilder_ != null) { - return lastObservationBuilder_.getMessageOrBuilder(); - } else { - return lastObservation_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastObservation_; - } - } - /** - * - * - *
-     * The last time when this issue was observed.
-     * 
- * - * .google.protobuf.Timestamp last_observation = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getLastObservationFieldBuilder() { - if (lastObservationBuilder_ == null) { - lastObservationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getLastObservation(), getParentForChildren(), isClean()); - lastObservation_ = null; - } - return lastObservationBuilder_; - } - - private java.lang.Object constraintType_ = ""; - /** - * - * - *
-     * The constraint type of the issue.
-     * 
- * - * string constraint_type = 2; - * - * @return The constraintType. - */ - public java.lang.String getConstraintType() { - java.lang.Object ref = constraintType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - constraintType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The constraint type of the issue.
-     * 
- * - * string constraint_type = 2; - * - * @return The bytes for constraintType. - */ - public com.google.protobuf.ByteString getConstraintTypeBytes() { - java.lang.Object ref = constraintType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - constraintType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The constraint type of the issue.
-     * 
- * - * string constraint_type = 2; - * - * @param value The constraintType to set. - * @return This builder for chaining. - */ - public Builder setConstraintType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - constraintType_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * The constraint type of the issue.
-     * 
- * - * string constraint_type = 2; - * - * @return This builder for chaining. - */ - public Builder clearConstraintType() { - constraintType_ = getDefaultInstance().getConstraintType(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * The constraint type of the issue.
-     * 
- * - * string constraint_type = 2; - * - * @param value The bytes for constraintType to set. - * @return This builder for chaining. - */ - public Builder setConstraintTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - constraintType_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private int incompatibilityType_ = 0; - /** - * - * - *
-     * The incompatibility type of this issue.
-     * 
- * - * .google.container.v1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; - * - * - * @return The enum numeric value on the wire for incompatibilityType. - */ - @java.lang.Override - public int getIncompatibilityTypeValue() { - return incompatibilityType_; - } - /** - * - * - *
-     * The incompatibility type of this issue.
-     * 
- * - * .google.container.v1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; - * - * - * @param value The enum numeric value on the wire for incompatibilityType to set. - * @return This builder for chaining. - */ - public Builder setIncompatibilityTypeValue(int value) { - incompatibilityType_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The incompatibility type of this issue.
-     * 
- * - * .google.container.v1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; - * - * - * @return The incompatibilityType. - */ - @java.lang.Override - public com.google.container.v1.AutopilotCompatibilityIssue.IssueType getIncompatibilityType() { - com.google.container.v1.AutopilotCompatibilityIssue.IssueType result = - com.google.container.v1.AutopilotCompatibilityIssue.IssueType.forNumber( - incompatibilityType_); - return result == null - ? com.google.container.v1.AutopilotCompatibilityIssue.IssueType.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * The incompatibility type of this issue.
-     * 
- * - * .google.container.v1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; - * - * - * @param value The incompatibilityType to set. - * @return This builder for chaining. - */ - public Builder setIncompatibilityType( - com.google.container.v1.AutopilotCompatibilityIssue.IssueType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - incompatibilityType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The incompatibility type of this issue.
-     * 
- * - * .google.container.v1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; - * - * - * @return This builder for chaining. - */ - public Builder clearIncompatibilityType() { - bitField0_ = (bitField0_ & ~0x00000004); - incompatibilityType_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList subjects_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureSubjectsIsMutable() { - if (!subjects_.isModifiable()) { - subjects_ = new com.google.protobuf.LazyStringArrayList(subjects_); - } - bitField0_ |= 0x00000008; - } - /** - * - * - *
-     * The name of the resources which are subject to this issue.
-     * 
- * - * repeated string subjects = 4; - * - * @return A list containing the subjects. - */ - public com.google.protobuf.ProtocolStringList getSubjectsList() { - subjects_.makeImmutable(); - return subjects_; - } - /** - * - * - *
-     * The name of the resources which are subject to this issue.
-     * 
- * - * repeated string subjects = 4; - * - * @return The count of subjects. - */ - public int getSubjectsCount() { - return subjects_.size(); - } - /** - * - * - *
-     * The name of the resources which are subject to this issue.
-     * 
- * - * repeated string subjects = 4; - * - * @param index The index of the element to return. - * @return The subjects at the given index. - */ - public java.lang.String getSubjects(int index) { - return subjects_.get(index); - } - /** - * - * - *
-     * The name of the resources which are subject to this issue.
-     * 
- * - * repeated string subjects = 4; - * - * @param index The index of the value to return. - * @return The bytes of the subjects at the given index. - */ - public com.google.protobuf.ByteString getSubjectsBytes(int index) { - return subjects_.getByteString(index); - } - /** - * - * - *
-     * The name of the resources which are subject to this issue.
-     * 
- * - * repeated string subjects = 4; - * - * @param index The index to set the value at. - * @param value The subjects to set. - * @return This builder for chaining. - */ - public Builder setSubjects(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubjectsIsMutable(); - subjects_.set(index, value); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the resources which are subject to this issue.
-     * 
- * - * repeated string subjects = 4; - * - * @param value The subjects to add. - * @return This builder for chaining. - */ - public Builder addSubjects(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubjectsIsMutable(); - subjects_.add(value); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the resources which are subject to this issue.
-     * 
- * - * repeated string subjects = 4; - * - * @param values The subjects to add. - * @return This builder for chaining. - */ - public Builder addAllSubjects(java.lang.Iterable values) { - ensureSubjectsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subjects_); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the resources which are subject to this issue.
-     * 
- * - * repeated string subjects = 4; - * - * @return This builder for chaining. - */ - public Builder clearSubjects() { - subjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - ; - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the resources which are subject to this issue.
-     * 
- * - * repeated string subjects = 4; - * - * @param value The bytes of the subjects to add. - * @return This builder for chaining. - */ - public Builder addSubjectsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureSubjectsIsMutable(); - subjects_.add(value); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private java.lang.Object documentationUrl_ = ""; - /** - * - * - *
-     * A URL to a public documnetation, which addresses resolving this issue.
-     * 
- * - * string documentation_url = 5; - * - * @return The documentationUrl. - */ - public java.lang.String getDocumentationUrl() { - java.lang.Object ref = documentationUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - documentationUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A URL to a public documnetation, which addresses resolving this issue.
-     * 
- * - * string documentation_url = 5; - * - * @return The bytes for documentationUrl. - */ - public com.google.protobuf.ByteString getDocumentationUrlBytes() { - java.lang.Object ref = documentationUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - documentationUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A URL to a public documnetation, which addresses resolving this issue.
-     * 
- * - * string documentation_url = 5; - * - * @param value The documentationUrl to set. - * @return This builder for chaining. - */ - public Builder setDocumentationUrl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - documentationUrl_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * A URL to a public documnetation, which addresses resolving this issue.
-     * 
- * - * string documentation_url = 5; - * - * @return This builder for chaining. - */ - public Builder clearDocumentationUrl() { - documentationUrl_ = getDefaultInstance().getDocumentationUrl(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * - * - *
-     * A URL to a public documnetation, which addresses resolving this issue.
-     * 
- * - * string documentation_url = 5; - * - * @param value The bytes for documentationUrl to set. - * @return This builder for chaining. - */ - public Builder setDocumentationUrlBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - documentationUrl_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * - * - *
-     * The description of the issue.
-     * 
- * - * string description = 6; - * - * @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; - } - } - /** - * - * - *
-     * The description of the issue.
-     * 
- * - * string description = 6; - * - * @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; - } - } - /** - * - * - *
-     * The description of the issue.
-     * 
- * - * string description = 6; - * - * @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; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * The description of the issue.
-     * 
- * - * string description = 6; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - /** - * - * - *
-     * The description of the issue.
-     * 
- * - * string description = 6; - * - * @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; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.AutopilotCompatibilityIssue) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.AutopilotCompatibilityIssue) - private static final com.google.container.v1.AutopilotCompatibilityIssue DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.AutopilotCompatibilityIssue(); - } - - public static com.google.container.v1.AutopilotCompatibilityIssue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AutopilotCompatibilityIssue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.AutopilotCompatibilityIssue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutopilotCompatibilityIssueOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutopilotCompatibilityIssueOrBuilder.java deleted file mode 100644 index ae5b3e574775..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutopilotCompatibilityIssueOrBuilder.java +++ /dev/null @@ -1,214 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface AutopilotCompatibilityIssueOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.AutopilotCompatibilityIssue) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The last time when this issue was observed.
-   * 
- * - * .google.protobuf.Timestamp last_observation = 1; - * - * @return Whether the lastObservation field is set. - */ - boolean hasLastObservation(); - /** - * - * - *
-   * The last time when this issue was observed.
-   * 
- * - * .google.protobuf.Timestamp last_observation = 1; - * - * @return The lastObservation. - */ - com.google.protobuf.Timestamp getLastObservation(); - /** - * - * - *
-   * The last time when this issue was observed.
-   * 
- * - * .google.protobuf.Timestamp last_observation = 1; - */ - com.google.protobuf.TimestampOrBuilder getLastObservationOrBuilder(); - - /** - * - * - *
-   * The constraint type of the issue.
-   * 
- * - * string constraint_type = 2; - * - * @return The constraintType. - */ - java.lang.String getConstraintType(); - /** - * - * - *
-   * The constraint type of the issue.
-   * 
- * - * string constraint_type = 2; - * - * @return The bytes for constraintType. - */ - com.google.protobuf.ByteString getConstraintTypeBytes(); - - /** - * - * - *
-   * The incompatibility type of this issue.
-   * 
- * - * .google.container.v1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; - * - * - * @return The enum numeric value on the wire for incompatibilityType. - */ - int getIncompatibilityTypeValue(); - /** - * - * - *
-   * The incompatibility type of this issue.
-   * 
- * - * .google.container.v1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; - * - * - * @return The incompatibilityType. - */ - com.google.container.v1.AutopilotCompatibilityIssue.IssueType getIncompatibilityType(); - - /** - * - * - *
-   * The name of the resources which are subject to this issue.
-   * 
- * - * repeated string subjects = 4; - * - * @return A list containing the subjects. - */ - java.util.List getSubjectsList(); - /** - * - * - *
-   * The name of the resources which are subject to this issue.
-   * 
- * - * repeated string subjects = 4; - * - * @return The count of subjects. - */ - int getSubjectsCount(); - /** - * - * - *
-   * The name of the resources which are subject to this issue.
-   * 
- * - * repeated string subjects = 4; - * - * @param index The index of the element to return. - * @return The subjects at the given index. - */ - java.lang.String getSubjects(int index); - /** - * - * - *
-   * The name of the resources which are subject to this issue.
-   * 
- * - * repeated string subjects = 4; - * - * @param index The index of the value to return. - * @return The bytes of the subjects at the given index. - */ - com.google.protobuf.ByteString getSubjectsBytes(int index); - - /** - * - * - *
-   * A URL to a public documnetation, which addresses resolving this issue.
-   * 
- * - * string documentation_url = 5; - * - * @return The documentationUrl. - */ - java.lang.String getDocumentationUrl(); - /** - * - * - *
-   * A URL to a public documnetation, which addresses resolving this issue.
-   * 
- * - * string documentation_url = 5; - * - * @return The bytes for documentationUrl. - */ - com.google.protobuf.ByteString getDocumentationUrlBytes(); - - /** - * - * - *
-   * The description of the issue.
-   * 
- * - * string description = 6; - * - * @return The description. - */ - java.lang.String getDescription(); - /** - * - * - *
-   * The description of the issue.
-   * 
- * - * string description = 6; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutopilotOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutopilotOrBuilder.java deleted file mode 100644 index e6b96b610025..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutopilotOrBuilder.java +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface AutopilotOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.Autopilot) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Enable Autopilot
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); - - /** - * - * - *
-   * Workload policy configuration for Autopilot.
-   * 
- * - * .google.container.v1.WorkloadPolicyConfig workload_policy_config = 2; - * - * @return Whether the workloadPolicyConfig field is set. - */ - boolean hasWorkloadPolicyConfig(); - /** - * - * - *
-   * Workload policy configuration for Autopilot.
-   * 
- * - * .google.container.v1.WorkloadPolicyConfig workload_policy_config = 2; - * - * @return The workloadPolicyConfig. - */ - com.google.container.v1.WorkloadPolicyConfig getWorkloadPolicyConfig(); - /** - * - * - *
-   * Workload policy configuration for Autopilot.
-   * 
- * - * .google.container.v1.WorkloadPolicyConfig workload_policy_config = 2; - */ - com.google.container.v1.WorkloadPolicyConfigOrBuilder getWorkloadPolicyConfigOrBuilder(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaults.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaults.java deleted file mode 100644 index b2b6c8794235..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaults.java +++ /dev/null @@ -1,2864 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * AutoprovisioningNodePoolDefaults contains defaults for a node pool created
- * by NAP.
- * 
- * - * Protobuf type {@code google.container.v1.AutoprovisioningNodePoolDefaults} - */ -public final class AutoprovisioningNodePoolDefaults extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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.emptyList(); - serviceAccount_ = ""; - minCpuPlatform_ = ""; - diskType_ = ""; - bootDiskKmsKey_ = ""; - imageType_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AutoprovisioningNodePoolDefaults(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AutoprovisioningNodePoolDefaults_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AutoprovisioningNodePoolDefaults_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.AutoprovisioningNodePoolDefaults.class, - com.google.container.v1.AutoprovisioningNodePoolDefaults.Builder.class); - } - - private int bitField0_; - public static final int OAUTH_SCOPES_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList oauthScopes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * Scopes that are used by NAP when creating node pools.
-   * 
- * - * repeated string oauth_scopes = 1; - * - * @return A list containing the oauthScopes. - */ - public com.google.protobuf.ProtocolStringList getOauthScopesList() { - return oauthScopes_; - } - /** - * - * - *
-   * Scopes that are used by NAP when creating node pools.
-   * 
- * - * repeated string oauth_scopes = 1; - * - * @return The count of oauthScopes. - */ - public int getOauthScopesCount() { - return oauthScopes_.size(); - } - /** - * - * - *
-   * Scopes that are used by NAP when creating node pools.
-   * 
- * - * 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); - } - /** - * - * - *
-   * Scopes that are used by NAP when creating node pools.
-   * 
- * - * 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object serviceAccount_ = ""; - /** - * - * - *
-   * The Google Cloud Platform Service Account to be used by the node VMs.
-   * 
- * - * 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.
-   * 
- * - * 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.v1.NodePool.UpgradeSettings upgradeSettings_; - /** - * - * - *
-   * Specifies the upgrade settings for NAP created node pools
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - * - * @return Whether the upgradeSettings field is set. - */ - @java.lang.Override - public boolean hasUpgradeSettings() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Specifies the upgrade settings for NAP created node pools
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - * - * @return The upgradeSettings. - */ - @java.lang.Override - public com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings() { - return upgradeSettings_ == null - ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() - : upgradeSettings_; - } - /** - * - * - *
-   * Specifies the upgrade settings for NAP created node pools
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - */ - @java.lang.Override - public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { - return upgradeSettings_ == null - ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() - : upgradeSettings_; - } - - public static final int MANAGEMENT_FIELD_NUMBER = 4; - private com.google.container.v1.NodeManagement management_; - /** - * - * - *
-   * Specifies the node management options for NAP created node-pools.
-   * 
- * - * .google.container.v1.NodeManagement management = 4; - * - * @return Whether the management field is set. - */ - @java.lang.Override - public boolean hasManagement() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * Specifies the node management options for NAP created node-pools.
-   * 
- * - * .google.container.v1.NodeManagement management = 4; - * - * @return The management. - */ - @java.lang.Override - public com.google.container.v1.NodeManagement getManagement() { - return management_ == null - ? com.google.container.v1.NodeManagement.getDefaultInstance() - : management_; - } - /** - * - * - *
-   * Specifies the node management options for NAP created node-pools.
-   * 
- * - * .google.container.v1.NodeManagement management = 4; - */ - @java.lang.Override - public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() { - return management_ == null - ? com.google.container.v1.NodeManagement.getDefaultInstance() - : management_; - } - - public static final int MIN_CPU_PLATFORM_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - private volatile java.lang.Object minCpuPlatform_ = ""; - /** - * - * - *
-   * Deprecated. Minimum CPU platform to be used for NAP created node pools.
-   * The instance may be scheduled on the specified or newer CPU platform.
-   * Applicable values are the friendly names of CPU platforms, such as
-   * minCpuPlatform: Intel Haswell or
-   * minCpuPlatform: Intel Sandy Bridge. For more
-   * information, read [how to specify min CPU
-   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
-   * This field is deprecated, min_cpu_platform should be specified using
-   * `cloud.google.com/requested-min-cpu-platform` label selector on the pod.
-   * To unset the min cpu platform field pass "automatic"
-   * as field value.
-   * 
- * - * string min_cpu_platform = 5 [deprecated = true]; - * - * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=3923 - * @return The minCpuPlatform. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. Minimum CPU platform to be used for NAP created node pools.
-   * The instance may be scheduled on the specified or newer CPU platform.
-   * Applicable values are the friendly names of CPU platforms, such as
-   * minCpuPlatform: Intel Haswell or
-   * minCpuPlatform: Intel Sandy Bridge. For more
-   * information, read [how to specify min CPU
-   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
-   * This field is deprecated, min_cpu_platform should be specified using
-   * `cloud.google.com/requested-min-cpu-platform` label selector on the pod.
-   * To unset the min cpu platform field pass "automatic"
-   * as field value.
-   * 
- * - * string min_cpu_platform = 5 [deprecated = true]; - * - * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=3923 - * @return The bytes for minCpuPlatform. - */ - @java.lang.Override - @java.lang.Deprecated - 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_ = 0; - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object diskType_ = ""; - /** - * - * - *
-   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-   * 'pd-balanced')
-   *
-   * If unspecified, the default disk type is 'pd-standard'
-   * 
- * - * string disk_type = 7; - * - * @return The diskType. - */ - @java.lang.Override - public java.lang.String getDiskType() { - java.lang.Object ref = diskType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - diskType_ = s; - return s; - } - } - /** - * - * - *
-   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-   * 'pd-balanced')
-   *
-   * If unspecified, the default disk type is 'pd-standard'
-   * 
- * - * string disk_type = 7; - * - * @return The bytes for diskType. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDiskTypeBytes() { - java.lang.Object ref = diskType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - diskType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER = 8; - private com.google.container.v1.ShieldedInstanceConfig shieldedInstanceConfig_; - /** - * - * - *
-   * Shielded Instance options.
-   * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - * - * @return Whether the shieldedInstanceConfig field is set. - */ - @java.lang.Override - public boolean hasShieldedInstanceConfig() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-   * Shielded Instance options.
-   * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - * - * @return The shieldedInstanceConfig. - */ - @java.lang.Override - public com.google.container.v1.ShieldedInstanceConfig getShieldedInstanceConfig() { - return shieldedInstanceConfig_ == null - ? com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() - : shieldedInstanceConfig_; - } - /** - * - * - *
-   * Shielded Instance options.
-   * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - */ - @java.lang.Override - public com.google.container.v1.ShieldedInstanceConfigOrBuilder - getShieldedInstanceConfigOrBuilder() { - return shieldedInstanceConfig_ == null - ? com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() - : shieldedInstanceConfig_; - } - - public static final int BOOT_DISK_KMS_KEY_FIELD_NUMBER = 9; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object imageType_ = ""; - /** - * - * - *
-   * The image type to use for NAP created node. Please see
-   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-   * available image types.
-   * 
- * - * 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 NAP created node. Please see
-   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-   * available image types.
-   * 
- * - * 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; - } - } - - public static final int INSECURE_KUBELET_READONLY_PORT_ENABLED_FIELD_NUMBER = 13; - private boolean insecureKubeletReadonlyPortEnabled_ = false; - /** - * - * - *
-   * Enable or disable Kubelet read only port.
-   * 
- * - * optional bool insecure_kubelet_readonly_port_enabled = 13; - * - * @return Whether the insecureKubeletReadonlyPortEnabled field is set. - */ - @java.lang.Override - public boolean hasInsecureKubeletReadonlyPortEnabled() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-   * Enable or disable Kubelet read only port.
-   * 
- * - * optional bool insecure_kubelet_readonly_port_enabled = 13; - * - * @return The insecureKubeletReadonlyPortEnabled. - */ - @java.lang.Override - public boolean getInsecureKubeletReadonlyPortEnabled() { - return insecureKubeletReadonlyPortEnabled_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceAccount_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getUpgradeSettings()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(4, getManagement()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minCpuPlatform_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, minCpuPlatform_); - } - if (diskSizeGb_ != 0) { - output.writeInt32(6, diskSizeGb_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, diskType_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(8, getShieldedInstanceConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootDiskKmsKey_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, bootDiskKmsKey_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageType_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, imageType_); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeBool(13, insecureKubeletReadonlyPortEnabled_); - } - getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, serviceAccount_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpgradeSettings()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getManagement()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minCpuPlatform_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, minCpuPlatform_); - } - if (diskSizeGb_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, diskSizeGb_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, diskType_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(8, getShieldedInstanceConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootDiskKmsKey_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, bootDiskKmsKey_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageType_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, imageType_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 13, insecureKubeletReadonlyPortEnabled_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.AutoprovisioningNodePoolDefaults)) { - return super.equals(obj); - } - com.google.container.v1.AutoprovisioningNodePoolDefaults other = - (com.google.container.v1.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 (hasInsecureKubeletReadonlyPortEnabled() != other.hasInsecureKubeletReadonlyPortEnabled()) - return false; - if (hasInsecureKubeletReadonlyPortEnabled()) { - if (getInsecureKubeletReadonlyPortEnabled() != other.getInsecureKubeletReadonlyPortEnabled()) - return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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(); - if (hasInsecureKubeletReadonlyPortEnabled()) { - hash = (37 * hash) + INSECURE_KUBELET_READONLY_PORT_ENABLED_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getInsecureKubeletReadonlyPortEnabled()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.AutoprovisioningNodePoolDefaults parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.AutoprovisioningNodePoolDefaults parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.AutoprovisioningNodePoolDefaults parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.AutoprovisioningNodePoolDefaults parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.AutoprovisioningNodePoolDefaults} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.AutoprovisioningNodePoolDefaults) - com.google.container.v1.AutoprovisioningNodePoolDefaultsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AutoprovisioningNodePoolDefaults_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AutoprovisioningNodePoolDefaults_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.AutoprovisioningNodePoolDefaults.class, - com.google.container.v1.AutoprovisioningNodePoolDefaults.Builder.class); - } - - // Construct using com.google.container.v1.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) { - getUpgradeSettingsFieldBuilder(); - getManagementFieldBuilder(); - getShieldedInstanceConfigFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - oauthScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - serviceAccount_ = ""; - upgradeSettings_ = null; - if (upgradeSettingsBuilder_ != null) { - upgradeSettingsBuilder_.dispose(); - upgradeSettingsBuilder_ = null; - } - management_ = null; - if (managementBuilder_ != null) { - managementBuilder_.dispose(); - managementBuilder_ = null; - } - minCpuPlatform_ = ""; - diskSizeGb_ = 0; - diskType_ = ""; - shieldedInstanceConfig_ = null; - if (shieldedInstanceConfigBuilder_ != null) { - shieldedInstanceConfigBuilder_.dispose(); - shieldedInstanceConfigBuilder_ = null; - } - bootDiskKmsKey_ = ""; - imageType_ = ""; - insecureKubeletReadonlyPortEnabled_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AutoprovisioningNodePoolDefaults_descriptor; - } - - @java.lang.Override - public com.google.container.v1.AutoprovisioningNodePoolDefaults getDefaultInstanceForType() { - return com.google.container.v1.AutoprovisioningNodePoolDefaults.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.AutoprovisioningNodePoolDefaults build() { - com.google.container.v1.AutoprovisioningNodePoolDefaults result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.AutoprovisioningNodePoolDefaults buildPartial() { - com.google.container.v1.AutoprovisioningNodePoolDefaults result = - new com.google.container.v1.AutoprovisioningNodePoolDefaults(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.AutoprovisioningNodePoolDefaults result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - oauthScopes_.makeImmutable(); - result.oauthScopes_ = oauthScopes_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.serviceAccount_ = serviceAccount_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.upgradeSettings_ = - upgradeSettingsBuilder_ == null ? upgradeSettings_ : upgradeSettingsBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.management_ = managementBuilder_ == null ? management_ : managementBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.minCpuPlatform_ = minCpuPlatform_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.diskSizeGb_ = diskSizeGb_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.diskType_ = diskType_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.shieldedInstanceConfig_ = - shieldedInstanceConfigBuilder_ == null - ? shieldedInstanceConfig_ - : shieldedInstanceConfigBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.bootDiskKmsKey_ = bootDiskKmsKey_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.imageType_ = imageType_; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.insecureKubeletReadonlyPortEnabled_ = insecureKubeletReadonlyPortEnabled_; - to_bitField0_ |= 0x00000008; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.AutoprovisioningNodePoolDefaults) { - return mergeFrom((com.google.container.v1.AutoprovisioningNodePoolDefaults) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.AutoprovisioningNodePoolDefaults other) { - if (other == com.google.container.v1.AutoprovisioningNodePoolDefaults.getDefaultInstance()) - return this; - if (!other.oauthScopes_.isEmpty()) { - if (oauthScopes_.isEmpty()) { - oauthScopes_ = other.oauthScopes_; - bitField0_ |= 0x00000001; - } else { - ensureOauthScopesIsMutable(); - oauthScopes_.addAll(other.oauthScopes_); - } - onChanged(); - } - if (!other.getServiceAccount().isEmpty()) { - serviceAccount_ = other.serviceAccount_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasUpgradeSettings()) { - mergeUpgradeSettings(other.getUpgradeSettings()); - } - if (other.hasManagement()) { - mergeManagement(other.getManagement()); - } - if (!other.getMinCpuPlatform().isEmpty()) { - minCpuPlatform_ = other.minCpuPlatform_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (other.getDiskSizeGb() != 0) { - setDiskSizeGb(other.getDiskSizeGb()); - } - if (!other.getDiskType().isEmpty()) { - diskType_ = other.diskType_; - bitField0_ |= 0x00000040; - onChanged(); - } - if (other.hasShieldedInstanceConfig()) { - mergeShieldedInstanceConfig(other.getShieldedInstanceConfig()); - } - if (!other.getBootDiskKmsKey().isEmpty()) { - bootDiskKmsKey_ = other.bootDiskKmsKey_; - bitField0_ |= 0x00000100; - onChanged(); - } - if (!other.getImageType().isEmpty()) { - imageType_ = other.imageType_; - bitField0_ |= 0x00000200; - onChanged(); - } - if (other.hasInsecureKubeletReadonlyPortEnabled()) { - setInsecureKubeletReadonlyPortEnabled(other.getInsecureKubeletReadonlyPortEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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(); - ensureOauthScopesIsMutable(); - oauthScopes_.add(s); - break; - } // case 10 - case 18: - { - serviceAccount_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getUpgradeSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getManagementFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - minCpuPlatform_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: - { - diskSizeGb_ = input.readInt32(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: - { - diskType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: - { - input.readMessage( - getShieldedInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 74: - { - bootDiskKmsKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 74 - case 82: - { - imageType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; - break; - } // case 82 - case 104: - { - insecureKubeletReadonlyPortEnabled_ = input.readBool(); - bitField0_ |= 0x00000400; - break; - } // case 104 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.protobuf.LazyStringArrayList oauthScopes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureOauthScopesIsMutable() { - if (!oauthScopes_.isModifiable()) { - oauthScopes_ = new com.google.protobuf.LazyStringArrayList(oauthScopes_); - } - bitField0_ |= 0x00000001; - } - /** - * - * - *
-     * Scopes that are used by NAP when creating node pools.
-     * 
- * - * repeated string oauth_scopes = 1; - * - * @return A list containing the oauthScopes. - */ - public com.google.protobuf.ProtocolStringList getOauthScopesList() { - oauthScopes_.makeImmutable(); - return oauthScopes_; - } - /** - * - * - *
-     * Scopes that are used by NAP when creating node pools.
-     * 
- * - * repeated string oauth_scopes = 1; - * - * @return The count of oauthScopes. - */ - public int getOauthScopesCount() { - return oauthScopes_.size(); - } - /** - * - * - *
-     * Scopes that are used by NAP when creating node pools.
-     * 
- * - * 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); - } - /** - * - * - *
-     * Scopes that are used by NAP when creating node pools.
-     * 
- * - * 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); - } - /** - * - * - *
-     * Scopes that are used by NAP when creating node pools.
-     * 
- * - * 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); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Scopes that are used by NAP when creating node pools.
-     * 
- * - * 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); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Scopes that are used by NAP when creating node pools.
-     * 
- * - * 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_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Scopes that are used by NAP when creating node pools.
-     * 
- * - * repeated string oauth_scopes = 1; - * - * @return This builder for chaining. - */ - public Builder clearOauthScopes() { - oauthScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; - onChanged(); - return this; - } - /** - * - * - *
-     * Scopes that are used by NAP when creating node pools.
-     * 
- * - * 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); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object serviceAccount_ = ""; - /** - * - * - *
-     * The Google Cloud Platform Service Account to be used by the node VMs.
-     * 
- * - * 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.
-     * 
- * - * 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.
-     * 
- * - * 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * The Google Cloud Platform Service Account to be used by the node VMs.
-     * 
- * - * string service_account = 2; - * - * @return This builder for chaining. - */ - public Builder clearServiceAccount() { - serviceAccount_ = getDefaultInstance().getServiceAccount(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * The Google Cloud Platform Service Account to be used by the node VMs.
-     * 
- * - * 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.container.v1.NodePool.UpgradeSettings upgradeSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool.UpgradeSettings, - com.google.container.v1.NodePool.UpgradeSettings.Builder, - com.google.container.v1.NodePool.UpgradeSettingsOrBuilder> - upgradeSettingsBuilder_; - /** - * - * - *
-     * Specifies the upgrade settings for NAP created node pools
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - * - * @return Whether the upgradeSettings field is set. - */ - public boolean hasUpgradeSettings() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * Specifies the upgrade settings for NAP created node pools
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - * - * @return The upgradeSettings. - */ - public com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings() { - if (upgradeSettingsBuilder_ == null) { - return upgradeSettings_ == null - ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() - : upgradeSettings_; - } else { - return upgradeSettingsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Specifies the upgrade settings for NAP created node pools
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - */ - public Builder setUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value) { - if (upgradeSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - upgradeSettings_ = value; - } else { - upgradeSettingsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Specifies the upgrade settings for NAP created node pools
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - */ - public Builder setUpgradeSettings( - com.google.container.v1.NodePool.UpgradeSettings.Builder builderForValue) { - if (upgradeSettingsBuilder_ == null) { - upgradeSettings_ = builderForValue.build(); - } else { - upgradeSettingsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Specifies the upgrade settings for NAP created node pools
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - */ - public Builder mergeUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value) { - if (upgradeSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && upgradeSettings_ != null - && upgradeSettings_ - != com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance()) { - getUpgradeSettingsBuilder().mergeFrom(value); - } else { - upgradeSettings_ = value; - } - } else { - upgradeSettingsBuilder_.mergeFrom(value); - } - if (upgradeSettings_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Specifies the upgrade settings for NAP created node pools
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - */ - public Builder clearUpgradeSettings() { - bitField0_ = (bitField0_ & ~0x00000004); - upgradeSettings_ = null; - if (upgradeSettingsBuilder_ != null) { - upgradeSettingsBuilder_.dispose(); - upgradeSettingsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Specifies the upgrade settings for NAP created node pools
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - */ - public com.google.container.v1.NodePool.UpgradeSettings.Builder getUpgradeSettingsBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getUpgradeSettingsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Specifies the upgrade settings for NAP created node pools
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - */ - public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { - if (upgradeSettingsBuilder_ != null) { - return upgradeSettingsBuilder_.getMessageOrBuilder(); - } else { - return upgradeSettings_ == null - ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() - : upgradeSettings_; - } - } - /** - * - * - *
-     * Specifies the upgrade settings for NAP created node pools
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool.UpgradeSettings, - com.google.container.v1.NodePool.UpgradeSettings.Builder, - com.google.container.v1.NodePool.UpgradeSettingsOrBuilder> - getUpgradeSettingsFieldBuilder() { - if (upgradeSettingsBuilder_ == null) { - upgradeSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool.UpgradeSettings, - com.google.container.v1.NodePool.UpgradeSettings.Builder, - com.google.container.v1.NodePool.UpgradeSettingsOrBuilder>( - getUpgradeSettings(), getParentForChildren(), isClean()); - upgradeSettings_ = null; - } - return upgradeSettingsBuilder_; - } - - private com.google.container.v1.NodeManagement management_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeManagement, - com.google.container.v1.NodeManagement.Builder, - com.google.container.v1.NodeManagementOrBuilder> - managementBuilder_; - /** - * - * - *
-     * Specifies the node management options for NAP created node-pools.
-     * 
- * - * .google.container.v1.NodeManagement management = 4; - * - * @return Whether the management field is set. - */ - public boolean hasManagement() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-     * Specifies the node management options for NAP created node-pools.
-     * 
- * - * .google.container.v1.NodeManagement management = 4; - * - * @return The management. - */ - public com.google.container.v1.NodeManagement getManagement() { - if (managementBuilder_ == null) { - return management_ == null - ? com.google.container.v1.NodeManagement.getDefaultInstance() - : management_; - } else { - return managementBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Specifies the node management options for NAP created node-pools.
-     * 
- * - * .google.container.v1.NodeManagement management = 4; - */ - public Builder setManagement(com.google.container.v1.NodeManagement value) { - if (managementBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - management_ = value; - } else { - managementBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Specifies the node management options for NAP created node-pools.
-     * 
- * - * .google.container.v1.NodeManagement management = 4; - */ - public Builder setManagement(com.google.container.v1.NodeManagement.Builder builderForValue) { - if (managementBuilder_ == null) { - management_ = builderForValue.build(); - } else { - managementBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Specifies the node management options for NAP created node-pools.
-     * 
- * - * .google.container.v1.NodeManagement management = 4; - */ - public Builder mergeManagement(com.google.container.v1.NodeManagement value) { - if (managementBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && management_ != null - && management_ != com.google.container.v1.NodeManagement.getDefaultInstance()) { - getManagementBuilder().mergeFrom(value); - } else { - management_ = value; - } - } else { - managementBuilder_.mergeFrom(value); - } - if (management_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Specifies the node management options for NAP created node-pools.
-     * 
- * - * .google.container.v1.NodeManagement management = 4; - */ - public Builder clearManagement() { - bitField0_ = (bitField0_ & ~0x00000008); - management_ = null; - if (managementBuilder_ != null) { - managementBuilder_.dispose(); - managementBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Specifies the node management options for NAP created node-pools.
-     * 
- * - * .google.container.v1.NodeManagement management = 4; - */ - public com.google.container.v1.NodeManagement.Builder getManagementBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getManagementFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Specifies the node management options for NAP created node-pools.
-     * 
- * - * .google.container.v1.NodeManagement management = 4; - */ - public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() { - if (managementBuilder_ != null) { - return managementBuilder_.getMessageOrBuilder(); - } else { - return management_ == null - ? com.google.container.v1.NodeManagement.getDefaultInstance() - : management_; - } - } - /** - * - * - *
-     * Specifies the node management options for NAP created node-pools.
-     * 
- * - * .google.container.v1.NodeManagement management = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeManagement, - com.google.container.v1.NodeManagement.Builder, - com.google.container.v1.NodeManagementOrBuilder> - getManagementFieldBuilder() { - if (managementBuilder_ == null) { - managementBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeManagement, - com.google.container.v1.NodeManagement.Builder, - com.google.container.v1.NodeManagementOrBuilder>( - getManagement(), getParentForChildren(), isClean()); - management_ = null; - } - return managementBuilder_; - } - - private java.lang.Object minCpuPlatform_ = ""; - /** - * - * - *
-     * Deprecated. Minimum CPU platform to be used for NAP created node pools.
-     * The instance may be scheduled on the specified or newer CPU platform.
-     * Applicable values are the friendly names of CPU platforms, such as
-     * minCpuPlatform: Intel Haswell or
-     * minCpuPlatform: Intel Sandy Bridge. For more
-     * information, read [how to specify min CPU
-     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
-     * This field is deprecated, min_cpu_platform should be specified using
-     * `cloud.google.com/requested-min-cpu-platform` label selector on the pod.
-     * To unset the min cpu platform field pass "automatic"
-     * as field value.
-     * 
- * - * string min_cpu_platform = 5 [deprecated = true]; - * - * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=3923 - * @return The minCpuPlatform. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. Minimum CPU platform to be used for NAP created node pools.
-     * The instance may be scheduled on the specified or newer CPU platform.
-     * Applicable values are the friendly names of CPU platforms, such as
-     * minCpuPlatform: Intel Haswell or
-     * minCpuPlatform: Intel Sandy Bridge. For more
-     * information, read [how to specify min CPU
-     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
-     * This field is deprecated, min_cpu_platform should be specified using
-     * `cloud.google.com/requested-min-cpu-platform` label selector on the pod.
-     * To unset the min cpu platform field pass "automatic"
-     * as field value.
-     * 
- * - * string min_cpu_platform = 5 [deprecated = true]; - * - * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=3923 - * @return The bytes for minCpuPlatform. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. Minimum CPU platform to be used for NAP created node pools.
-     * The instance may be scheduled on the specified or newer CPU platform.
-     * Applicable values are the friendly names of CPU platforms, such as
-     * minCpuPlatform: Intel Haswell or
-     * minCpuPlatform: Intel Sandy Bridge. For more
-     * information, read [how to specify min CPU
-     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
-     * This field is deprecated, min_cpu_platform should be specified using
-     * `cloud.google.com/requested-min-cpu-platform` label selector on the pod.
-     * To unset the min cpu platform field pass "automatic"
-     * as field value.
-     * 
- * - * string min_cpu_platform = 5 [deprecated = true]; - * - * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=3923 - * @param value The minCpuPlatform to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setMinCpuPlatform(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - minCpuPlatform_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. Minimum CPU platform to be used for NAP created node pools.
-     * The instance may be scheduled on the specified or newer CPU platform.
-     * Applicable values are the friendly names of CPU platforms, such as
-     * minCpuPlatform: Intel Haswell or
-     * minCpuPlatform: Intel Sandy Bridge. For more
-     * information, read [how to specify min CPU
-     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
-     * This field is deprecated, min_cpu_platform should be specified using
-     * `cloud.google.com/requested-min-cpu-platform` label selector on the pod.
-     * To unset the min cpu platform field pass "automatic"
-     * as field value.
-     * 
- * - * string min_cpu_platform = 5 [deprecated = true]; - * - * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=3923 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearMinCpuPlatform() { - minCpuPlatform_ = getDefaultInstance().getMinCpuPlatform(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. Minimum CPU platform to be used for NAP created node pools.
-     * The instance may be scheduled on the specified or newer CPU platform.
-     * Applicable values are the friendly names of CPU platforms, such as
-     * minCpuPlatform: Intel Haswell or
-     * minCpuPlatform: Intel Sandy Bridge. For more
-     * information, read [how to specify min CPU
-     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
-     * This field is deprecated, min_cpu_platform should be specified using
-     * `cloud.google.com/requested-min-cpu-platform` label selector on the pod.
-     * To unset the min cpu platform field pass "automatic"
-     * as field value.
-     * 
- * - * string min_cpu_platform = 5 [deprecated = true]; - * - * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=3923 - * @param value The bytes for minCpuPlatform to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setMinCpuPlatformBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - minCpuPlatform_ = value; - bitField0_ |= 0x00000010; - 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; - bitField0_ |= 0x00000020; - 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() { - bitField0_ = (bitField0_ & ~0x00000020); - 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; - bitField0_ |= 0x00000040; - 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(); - bitField0_ = (bitField0_ & ~0x00000040); - 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; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - private com.google.container.v1.ShieldedInstanceConfig shieldedInstanceConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ShieldedInstanceConfig, - com.google.container.v1.ShieldedInstanceConfig.Builder, - com.google.container.v1.ShieldedInstanceConfigOrBuilder> - shieldedInstanceConfigBuilder_; - /** - * - * - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - * - * @return Whether the shieldedInstanceConfig field is set. - */ - public boolean hasShieldedInstanceConfig() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * - * - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - * - * @return The shieldedInstanceConfig. - */ - public com.google.container.v1.ShieldedInstanceConfig getShieldedInstanceConfig() { - if (shieldedInstanceConfigBuilder_ == null) { - return shieldedInstanceConfig_ == null - ? com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() - : shieldedInstanceConfig_; - } else { - return shieldedInstanceConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - */ - public Builder setShieldedInstanceConfig(com.google.container.v1.ShieldedInstanceConfig value) { - if (shieldedInstanceConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - shieldedInstanceConfig_ = value; - } else { - shieldedInstanceConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - */ - public Builder setShieldedInstanceConfig( - com.google.container.v1.ShieldedInstanceConfig.Builder builderForValue) { - if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfig_ = builderForValue.build(); - } else { - shieldedInstanceConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - */ - public Builder mergeShieldedInstanceConfig( - com.google.container.v1.ShieldedInstanceConfig value) { - if (shieldedInstanceConfigBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && shieldedInstanceConfig_ != null - && shieldedInstanceConfig_ - != com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance()) { - getShieldedInstanceConfigBuilder().mergeFrom(value); - } else { - shieldedInstanceConfig_ = value; - } - } else { - shieldedInstanceConfigBuilder_.mergeFrom(value); - } - if (shieldedInstanceConfig_ != null) { - bitField0_ |= 0x00000080; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - */ - public Builder clearShieldedInstanceConfig() { - bitField0_ = (bitField0_ & ~0x00000080); - shieldedInstanceConfig_ = null; - if (shieldedInstanceConfigBuilder_ != null) { - shieldedInstanceConfigBuilder_.dispose(); - shieldedInstanceConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - */ - public com.google.container.v1.ShieldedInstanceConfig.Builder - getShieldedInstanceConfigBuilder() { - bitField0_ |= 0x00000080; - onChanged(); - return getShieldedInstanceConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - */ - public com.google.container.v1.ShieldedInstanceConfigOrBuilder - getShieldedInstanceConfigOrBuilder() { - if (shieldedInstanceConfigBuilder_ != null) { - return shieldedInstanceConfigBuilder_.getMessageOrBuilder(); - } else { - return shieldedInstanceConfig_ == null - ? com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() - : shieldedInstanceConfig_; - } - } - /** - * - * - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ShieldedInstanceConfig, - com.google.container.v1.ShieldedInstanceConfig.Builder, - com.google.container.v1.ShieldedInstanceConfigOrBuilder> - getShieldedInstanceConfigFieldBuilder() { - if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ShieldedInstanceConfig, - com.google.container.v1.ShieldedInstanceConfig.Builder, - com.google.container.v1.ShieldedInstanceConfigOrBuilder>( - getShieldedInstanceConfig(), getParentForChildren(), isClean()); - shieldedInstanceConfig_ = null; - } - return shieldedInstanceConfigBuilder_; - } - - private java.lang.Object bootDiskKmsKey_ = ""; - /** - * - * - *
-     * The Customer Managed Encryption Key used to encrypt the boot disk attached
-     * to each node in the node pool. This should be of the form
-     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-     * For more information about protecting resources with Cloud KMS Keys please
-     * see:
-     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-     * 
- * - * string boot_disk_kms_key = 9; - * - * @return The bootDiskKmsKey. - */ - public java.lang.String getBootDiskKmsKey() { - java.lang.Object ref = bootDiskKmsKey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bootDiskKmsKey_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The Customer Managed Encryption Key used to encrypt the boot disk attached
-     * to each node in the node pool. This should be of the form
-     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-     * For more information about protecting resources with Cloud KMS Keys please
-     * see:
-     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-     * 
- * - * string boot_disk_kms_key = 9; - * - * @return The bytes for bootDiskKmsKey. - */ - public com.google.protobuf.ByteString getBootDiskKmsKeyBytes() { - java.lang.Object ref = bootDiskKmsKey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - bootDiskKmsKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The Customer Managed Encryption Key used to encrypt the boot disk attached
-     * to each node in the node pool. This should be of the form
-     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-     * For more information about protecting resources with Cloud KMS Keys please
-     * see:
-     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-     * 
- * - * string boot_disk_kms_key = 9; - * - * @param value The bootDiskKmsKey to set. - * @return This builder for chaining. - */ - public Builder setBootDiskKmsKey(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bootDiskKmsKey_ = value; - bitField0_ |= 0x00000100; - 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(); - bitField0_ = (bitField0_ & ~0x00000100); - 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; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - - private java.lang.Object imageType_ = ""; - /** - * - * - *
-     * The image type to use for NAP created node. Please see
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-     * available image types.
-     * 
- * - * 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 NAP created node. Please see
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-     * available image types.
-     * 
- * - * 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 NAP created node. Please see
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-     * available image types.
-     * 
- * - * 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; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * - * - *
-     * The image type to use for NAP created node. Please see
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-     * available image types.
-     * 
- * - * string image_type = 10; - * - * @return This builder for chaining. - */ - public Builder clearImageType() { - imageType_ = getDefaultInstance().getImageType(); - bitField0_ = (bitField0_ & ~0x00000200); - onChanged(); - return this; - } - /** - * - * - *
-     * The image type to use for NAP created node. Please see
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-     * available image types.
-     * 
- * - * 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; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - - private boolean insecureKubeletReadonlyPortEnabled_; - /** - * - * - *
-     * Enable or disable Kubelet read only port.
-     * 
- * - * optional bool insecure_kubelet_readonly_port_enabled = 13; - * - * @return Whether the insecureKubeletReadonlyPortEnabled field is set. - */ - @java.lang.Override - public boolean hasInsecureKubeletReadonlyPortEnabled() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - * - * - *
-     * Enable or disable Kubelet read only port.
-     * 
- * - * optional bool insecure_kubelet_readonly_port_enabled = 13; - * - * @return The insecureKubeletReadonlyPortEnabled. - */ - @java.lang.Override - public boolean getInsecureKubeletReadonlyPortEnabled() { - return insecureKubeletReadonlyPortEnabled_; - } - /** - * - * - *
-     * Enable or disable Kubelet read only port.
-     * 
- * - * optional bool insecure_kubelet_readonly_port_enabled = 13; - * - * @param value The insecureKubeletReadonlyPortEnabled to set. - * @return This builder for chaining. - */ - public Builder setInsecureKubeletReadonlyPortEnabled(boolean value) { - - insecureKubeletReadonlyPortEnabled_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable or disable Kubelet read only port.
-     * 
- * - * optional bool insecure_kubelet_readonly_port_enabled = 13; - * - * @return This builder for chaining. - */ - public Builder clearInsecureKubeletReadonlyPortEnabled() { - bitField0_ = (bitField0_ & ~0x00000400); - insecureKubeletReadonlyPortEnabled_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.AutoprovisioningNodePoolDefaults) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.AutoprovisioningNodePoolDefaults) - private static final com.google.container.v1.AutoprovisioningNodePoolDefaults DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.AutoprovisioningNodePoolDefaults(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.AutoprovisioningNodePoolDefaults getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaultsOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaultsOrBuilder.java deleted file mode 100644 index 33d40982b892..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaultsOrBuilder.java +++ /dev/null @@ -1,394 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface AutoprovisioningNodePoolDefaultsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.AutoprovisioningNodePoolDefaults) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Scopes that are used by NAP when creating node pools.
-   * 
- * - * repeated string oauth_scopes = 1; - * - * @return A list containing the oauthScopes. - */ - java.util.List getOauthScopesList(); - /** - * - * - *
-   * Scopes that are used by NAP when creating node pools.
-   * 
- * - * repeated string oauth_scopes = 1; - * - * @return The count of oauthScopes. - */ - int getOauthScopesCount(); - /** - * - * - *
-   * Scopes that are used by NAP when creating node pools.
-   * 
- * - * 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); - /** - * - * - *
-   * Scopes that are used by NAP when creating node pools.
-   * 
- * - * 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.
-   * 
- * - * string service_account = 2; - * - * @return The serviceAccount. - */ - java.lang.String getServiceAccount(); - /** - * - * - *
-   * The Google Cloud Platform Service Account to be used by the node VMs.
-   * 
- * - * string service_account = 2; - * - * @return The bytes for serviceAccount. - */ - com.google.protobuf.ByteString getServiceAccountBytes(); - - /** - * - * - *
-   * Specifies the upgrade settings for NAP created node pools
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - * - * @return Whether the upgradeSettings field is set. - */ - boolean hasUpgradeSettings(); - /** - * - * - *
-   * Specifies the upgrade settings for NAP created node pools
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - * - * @return The upgradeSettings. - */ - com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings(); - /** - * - * - *
-   * Specifies the upgrade settings for NAP created node pools
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - */ - com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder(); - - /** - * - * - *
-   * Specifies the node management options for NAP created node-pools.
-   * 
- * - * .google.container.v1.NodeManagement management = 4; - * - * @return Whether the management field is set. - */ - boolean hasManagement(); - /** - * - * - *
-   * Specifies the node management options for NAP created node-pools.
-   * 
- * - * .google.container.v1.NodeManagement management = 4; - * - * @return The management. - */ - com.google.container.v1.NodeManagement getManagement(); - /** - * - * - *
-   * Specifies the node management options for NAP created node-pools.
-   * 
- * - * .google.container.v1.NodeManagement management = 4; - */ - com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder(); - - /** - * - * - *
-   * Deprecated. Minimum CPU platform to be used for NAP created node pools.
-   * The instance may be scheduled on the specified or newer CPU platform.
-   * Applicable values are the friendly names of CPU platforms, such as
-   * minCpuPlatform: Intel Haswell or
-   * minCpuPlatform: Intel Sandy Bridge. For more
-   * information, read [how to specify min CPU
-   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
-   * This field is deprecated, min_cpu_platform should be specified using
-   * `cloud.google.com/requested-min-cpu-platform` label selector on the pod.
-   * To unset the min cpu platform field pass "automatic"
-   * as field value.
-   * 
- * - * string min_cpu_platform = 5 [deprecated = true]; - * - * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=3923 - * @return The minCpuPlatform. - */ - @java.lang.Deprecated - java.lang.String getMinCpuPlatform(); - /** - * - * - *
-   * Deprecated. Minimum CPU platform to be used for NAP created node pools.
-   * The instance may be scheduled on the specified or newer CPU platform.
-   * Applicable values are the friendly names of CPU platforms, such as
-   * minCpuPlatform: Intel Haswell or
-   * minCpuPlatform: Intel Sandy Bridge. For more
-   * information, read [how to specify min CPU
-   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
-   * This field is deprecated, min_cpu_platform should be specified using
-   * `cloud.google.com/requested-min-cpu-platform` label selector on the pod.
-   * To unset the min cpu platform field pass "automatic"
-   * as field value.
-   * 
- * - * string min_cpu_platform = 5 [deprecated = true]; - * - * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=3923 - * @return The bytes for minCpuPlatform. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getMinCpuPlatformBytes(); - - /** - * - * - *
-   * Size of the disk attached to each node, specified in GB.
-   * The smallest allowed disk size is 10GB.
-   *
-   * If unspecified, the default disk size is 100GB.
-   * 
- * - * int32 disk_size_gb = 6; - * - * @return The diskSizeGb. - */ - int getDiskSizeGb(); - - /** - * - * - *
-   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-   * 'pd-balanced')
-   *
-   * If unspecified, the default disk type is 'pd-standard'
-   * 
- * - * string disk_type = 7; - * - * @return The diskType. - */ - java.lang.String getDiskType(); - /** - * - * - *
-   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-   * 'pd-balanced')
-   *
-   * If unspecified, the default disk type is 'pd-standard'
-   * 
- * - * string disk_type = 7; - * - * @return The bytes for diskType. - */ - com.google.protobuf.ByteString getDiskTypeBytes(); - - /** - * - * - *
-   * Shielded Instance options.
-   * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - * - * @return Whether the shieldedInstanceConfig field is set. - */ - boolean hasShieldedInstanceConfig(); - /** - * - * - *
-   * Shielded Instance options.
-   * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - * - * @return The shieldedInstanceConfig. - */ - com.google.container.v1.ShieldedInstanceConfig getShieldedInstanceConfig(); - /** - * - * - *
-   * Shielded Instance options.
-   * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - */ - com.google.container.v1.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder(); - - /** - * - * - *
-   * The Customer Managed Encryption Key used to encrypt the boot disk attached
-   * to each node in the node pool. This should be of the form
-   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-   * For more information about protecting resources with Cloud KMS Keys please
-   * see:
-   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-   * 
- * - * string boot_disk_kms_key = 9; - * - * @return The bootDiskKmsKey. - */ - java.lang.String getBootDiskKmsKey(); - /** - * - * - *
-   * The Customer Managed Encryption Key used to encrypt the boot disk attached
-   * to each node in the node pool. This should be of the form
-   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-   * For more information about protecting resources with Cloud KMS Keys please
-   * see:
-   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-   * 
- * - * string boot_disk_kms_key = 9; - * - * @return The bytes for bootDiskKmsKey. - */ - com.google.protobuf.ByteString getBootDiskKmsKeyBytes(); - - /** - * - * - *
-   * The image type to use for NAP created node. Please see
-   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-   * available image types.
-   * 
- * - * string image_type = 10; - * - * @return The imageType. - */ - java.lang.String getImageType(); - /** - * - * - *
-   * The image type to use for NAP created node. Please see
-   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-   * available image types.
-   * 
- * - * string image_type = 10; - * - * @return The bytes for imageType. - */ - com.google.protobuf.ByteString getImageTypeBytes(); - - /** - * - * - *
-   * Enable or disable Kubelet read only port.
-   * 
- * - * optional bool insecure_kubelet_readonly_port_enabled = 13; - * - * @return Whether the insecureKubeletReadonlyPortEnabled field is set. - */ - boolean hasInsecureKubeletReadonlyPortEnabled(); - /** - * - * - *
-   * Enable or disable Kubelet read only port.
-   * 
- * - * optional bool insecure_kubelet_readonly_port_enabled = 13; - * - * @return The insecureKubeletReadonlyPortEnabled. - */ - boolean getInsecureKubeletReadonlyPortEnabled(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BestEffortProvisioning.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BestEffortProvisioning.java deleted file mode 100644 index fe9cb4bbf750..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BestEffortProvisioning.java +++ /dev/null @@ -1,643 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Best effort provisioning.
- * 
- * - * Protobuf type {@code google.container.v1.BestEffortProvisioning} - */ -public final class BestEffortProvisioning extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.BestEffortProvisioning) - BestEffortProvisioningOrBuilder { - private static final long serialVersionUID = 0L; - // Use BestEffortProvisioning.newBuilder() to construct. - private BestEffortProvisioning(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private BestEffortProvisioning() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BestEffortProvisioning(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_BestEffortProvisioning_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_BestEffortProvisioning_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.BestEffortProvisioning.class, - com.google.container.v1.BestEffortProvisioning.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * When this is enabled, cluster/node pool creations will ignore non-fatal
-   * errors like stockout to best provision as many nodes as possible right now
-   * and eventually bring up all target number of nodes
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - public static final int MIN_PROVISION_NODES_FIELD_NUMBER = 2; - private int minProvisionNodes_ = 0; - /** - * - * - *
-   * Minimum number of nodes to be provisioned to be considered as succeeded,
-   * and the rest of nodes will be provisioned gradually and eventually when
-   * stockout issue has been resolved.
-   * 
- * - * int32 min_provision_nodes = 2; - * - * @return The minProvisionNodes. - */ - @java.lang.Override - public int getMinProvisionNodes() { - return minProvisionNodes_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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 (minProvisionNodes_ != 0) { - output.writeInt32(2, minProvisionNodes_); - } - getUnknownFields().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 (minProvisionNodes_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, minProvisionNodes_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.BestEffortProvisioning)) { - return super.equals(obj); - } - com.google.container.v1.BestEffortProvisioning other = - (com.google.container.v1.BestEffortProvisioning) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (getMinProvisionNodes() != other.getMinProvisionNodes()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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_PROVISION_NODES_FIELD_NUMBER; - hash = (53 * hash) + getMinProvisionNodes(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.BestEffortProvisioning parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.BestEffortProvisioning parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.BestEffortProvisioning parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.BestEffortProvisioning parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.BestEffortProvisioning parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.BestEffortProvisioning parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.BestEffortProvisioning parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.BestEffortProvisioning parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.BestEffortProvisioning parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.BestEffortProvisioning parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.BestEffortProvisioning parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.BestEffortProvisioning parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.BestEffortProvisioning prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Best effort provisioning.
-   * 
- * - * Protobuf type {@code google.container.v1.BestEffortProvisioning} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.BestEffortProvisioning) - com.google.container.v1.BestEffortProvisioningOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_BestEffortProvisioning_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_BestEffortProvisioning_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.BestEffortProvisioning.class, - com.google.container.v1.BestEffortProvisioning.Builder.class); - } - - // Construct using com.google.container.v1.BestEffortProvisioning.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enabled_ = false; - minProvisionNodes_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_BestEffortProvisioning_descriptor; - } - - @java.lang.Override - public com.google.container.v1.BestEffortProvisioning getDefaultInstanceForType() { - return com.google.container.v1.BestEffortProvisioning.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.BestEffortProvisioning build() { - com.google.container.v1.BestEffortProvisioning result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.BestEffortProvisioning buildPartial() { - com.google.container.v1.BestEffortProvisioning result = - new com.google.container.v1.BestEffortProvisioning(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.BestEffortProvisioning result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.minProvisionNodes_ = minProvisionNodes_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.BestEffortProvisioning) { - return mergeFrom((com.google.container.v1.BestEffortProvisioning) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.BestEffortProvisioning other) { - if (other == com.google.container.v1.BestEffortProvisioning.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - if (other.getMinProvisionNodes() != 0) { - setMinProvisionNodes(other.getMinProvisionNodes()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - minProvisionNodes_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean enabled_; - /** - * - * - *
-     * When this is enabled, cluster/node pool creations will ignore non-fatal
-     * errors like stockout to best provision as many nodes as possible right now
-     * and eventually bring up all target number of nodes
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * When this is enabled, cluster/node pool creations will ignore non-fatal
-     * errors like stockout to best provision as many nodes as possible right now
-     * and eventually bring up all target number of nodes
-     * 
- * - * bool enabled = 1; - * - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * When this is enabled, cluster/node pool creations will ignore non-fatal
-     * errors like stockout to best provision as many nodes as possible right now
-     * and eventually bring up all target number of nodes
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - enabled_ = false; - onChanged(); - return this; - } - - private int minProvisionNodes_; - /** - * - * - *
-     * Minimum number of nodes to be provisioned to be considered as succeeded,
-     * and the rest of nodes will be provisioned gradually and eventually when
-     * stockout issue has been resolved.
-     * 
- * - * int32 min_provision_nodes = 2; - * - * @return The minProvisionNodes. - */ - @java.lang.Override - public int getMinProvisionNodes() { - return minProvisionNodes_; - } - /** - * - * - *
-     * Minimum number of nodes to be provisioned to be considered as succeeded,
-     * and the rest of nodes will be provisioned gradually and eventually when
-     * stockout issue has been resolved.
-     * 
- * - * int32 min_provision_nodes = 2; - * - * @param value The minProvisionNodes to set. - * @return This builder for chaining. - */ - public Builder setMinProvisionNodes(int value) { - - minProvisionNodes_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Minimum number of nodes to be provisioned to be considered as succeeded,
-     * and the rest of nodes will be provisioned gradually and eventually when
-     * stockout issue has been resolved.
-     * 
- * - * int32 min_provision_nodes = 2; - * - * @return This builder for chaining. - */ - public Builder clearMinProvisionNodes() { - bitField0_ = (bitField0_ & ~0x00000002); - minProvisionNodes_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.BestEffortProvisioning) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.BestEffortProvisioning) - private static final com.google.container.v1.BestEffortProvisioning DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.BestEffortProvisioning(); - } - - public static com.google.container.v1.BestEffortProvisioning getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BestEffortProvisioning parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.BestEffortProvisioning getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BestEffortProvisioningOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BestEffortProvisioningOrBuilder.java deleted file mode 100644 index 613fa9981d20..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BestEffortProvisioningOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface BestEffortProvisioningOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.BestEffortProvisioning) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * When this is enabled, cluster/node pool creations will ignore non-fatal
-   * errors like stockout to best provision as many nodes as possible right now
-   * and eventually bring up all target number of nodes
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); - - /** - * - * - *
-   * Minimum number of nodes to be provisioned to be considered as succeeded,
-   * and the rest of nodes will be provisioned gradually and eventually when
-   * stockout issue has been resolved.
-   * 
- * - * int32 min_provision_nodes = 2; - * - * @return The minProvisionNodes. - */ - int getMinProvisionNodes(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorization.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorization.java deleted file mode 100644 index 8dd681fe59b4..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorization.java +++ /dev/null @@ -1,880 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Configuration for Binary Authorization.
- * 
- * - * Protobuf type {@code google.container.v1.BinaryAuthorization} - */ -public final class BinaryAuthorization extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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() { - evaluationMode_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BinaryAuthorization(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_BinaryAuthorization_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_BinaryAuthorization_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.BinaryAuthorization.class, - com.google.container.v1.BinaryAuthorization.Builder.class); - } - - /** - * - * - *
-   * Binary Authorization mode of operation.
-   * 
- * - * Protobuf enum {@code google.container.v1.BinaryAuthorization.EvaluationMode} - */ - public enum EvaluationMode implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value
-     * 
- * - * EVALUATION_MODE_UNSPECIFIED = 0; - */ - EVALUATION_MODE_UNSPECIFIED(0), - /** - * - * - *
-     * Disable BinaryAuthorization
-     * 
- * - * DISABLED = 1; - */ - DISABLED(1), - /** - * - * - *
-     * Enforce Kubernetes admission requests with BinaryAuthorization using the
-     * project's singleton policy. This is equivalent to setting the
-     * enabled boolean to true.
-     * 
- * - * PROJECT_SINGLETON_POLICY_ENFORCE = 2; - */ - PROJECT_SINGLETON_POLICY_ENFORCE(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value
-     * 
- * - * EVALUATION_MODE_UNSPECIFIED = 0; - */ - public static final int EVALUATION_MODE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Disable BinaryAuthorization
-     * 
- * - * DISABLED = 1; - */ - public static final int DISABLED_VALUE = 1; - /** - * - * - *
-     * Enforce Kubernetes admission requests with BinaryAuthorization using the
-     * project's singleton policy. This is equivalent to setting the
-     * enabled boolean to true.
-     * 
- * - * PROJECT_SINGLETON_POLICY_ENFORCE = 2; - */ - public static final int PROJECT_SINGLETON_POLICY_ENFORCE_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 EvaluationMode 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 EvaluationMode forNumber(int value) { - switch (value) { - case 0: - return EVALUATION_MODE_UNSPECIFIED; - case 1: - return DISABLED; - case 2: - return PROJECT_SINGLETON_POLICY_ENFORCE; - 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 EvaluationMode findValueByNumber(int number) { - return EvaluationMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.BinaryAuthorization.getDescriptor().getEnumTypes().get(0); - } - - private static final EvaluationMode[] VALUES = values(); - - public static EvaluationMode 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 EvaluationMode(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.BinaryAuthorization.EvaluationMode) - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * This field is deprecated. Leave this unset and instead configure
-   * BinaryAuthorization using evaluation_mode. If evaluation_mode is set to
-   * anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored.
-   * 
- * - * bool enabled = 1 [deprecated = true]; - * - * @deprecated google.container.v1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1/cluster_service.proto;l=1440 - * @return The enabled. - */ - @java.lang.Override - @java.lang.Deprecated - public boolean getEnabled() { - return enabled_; - } - - public static final int EVALUATION_MODE_FIELD_NUMBER = 2; - private int evaluationMode_ = 0; - /** - * - * - *
-   * Mode of operation for binauthz policy evaluation. If unspecified, defaults
-   * to DISABLED.
-   * 
- * - * .google.container.v1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; - * - * @return The enum numeric value on the wire for evaluationMode. - */ - @java.lang.Override - public int getEvaluationModeValue() { - return evaluationMode_; - } - /** - * - * - *
-   * Mode of operation for binauthz policy evaluation. If unspecified, defaults
-   * to DISABLED.
-   * 
- * - * .google.container.v1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; - * - * @return The evaluationMode. - */ - @java.lang.Override - public com.google.container.v1.BinaryAuthorization.EvaluationMode getEvaluationMode() { - com.google.container.v1.BinaryAuthorization.EvaluationMode result = - com.google.container.v1.BinaryAuthorization.EvaluationMode.forNumber(evaluationMode_); - return result == null - ? com.google.container.v1.BinaryAuthorization.EvaluationMode.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 (enabled_ != false) { - output.writeBool(1, enabled_); - } - if (evaluationMode_ - != com.google.container.v1.BinaryAuthorization.EvaluationMode.EVALUATION_MODE_UNSPECIFIED - .getNumber()) { - output.writeEnum(2, evaluationMode_); - } - getUnknownFields().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 (evaluationMode_ - != com.google.container.v1.BinaryAuthorization.EvaluationMode.EVALUATION_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, evaluationMode_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.BinaryAuthorization)) { - return super.equals(obj); - } - com.google.container.v1.BinaryAuthorization other = - (com.google.container.v1.BinaryAuthorization) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (evaluationMode_ != other.evaluationMode_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + EVALUATION_MODE_FIELD_NUMBER; - hash = (53 * hash) + evaluationMode_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.BinaryAuthorization parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.BinaryAuthorization parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.BinaryAuthorization parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.BinaryAuthorization parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.BinaryAuthorization parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.BinaryAuthorization parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.BinaryAuthorization parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.BinaryAuthorization} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.BinaryAuthorization) - com.google.container.v1.BinaryAuthorizationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_BinaryAuthorization_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_BinaryAuthorization_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.BinaryAuthorization.class, - com.google.container.v1.BinaryAuthorization.Builder.class); - } - - // Construct using com.google.container.v1.BinaryAuthorization.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enabled_ = false; - evaluationMode_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_BinaryAuthorization_descriptor; - } - - @java.lang.Override - public com.google.container.v1.BinaryAuthorization getDefaultInstanceForType() { - return com.google.container.v1.BinaryAuthorization.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.BinaryAuthorization build() { - com.google.container.v1.BinaryAuthorization result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.BinaryAuthorization buildPartial() { - com.google.container.v1.BinaryAuthorization result = - new com.google.container.v1.BinaryAuthorization(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.BinaryAuthorization result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.evaluationMode_ = evaluationMode_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.BinaryAuthorization) { - return mergeFrom((com.google.container.v1.BinaryAuthorization) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.BinaryAuthorization other) { - if (other == com.google.container.v1.BinaryAuthorization.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - if (other.evaluationMode_ != 0) { - setEvaluationModeValue(other.getEvaluationModeValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - evaluationMode_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean enabled_; - /** - * - * - *
-     * This field is deprecated. Leave this unset and instead configure
-     * BinaryAuthorization using evaluation_mode. If evaluation_mode is set to
-     * anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored.
-     * 
- * - * bool enabled = 1 [deprecated = true]; - * - * @deprecated google.container.v1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1/cluster_service.proto;l=1440 - * @return The enabled. - */ - @java.lang.Override - @java.lang.Deprecated - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * This field is deprecated. Leave this unset and instead configure
-     * BinaryAuthorization using evaluation_mode. If evaluation_mode is set to
-     * anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored.
-     * 
- * - * bool enabled = 1 [deprecated = true]; - * - * @deprecated google.container.v1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1/cluster_service.proto;l=1440 - * @param value The enabled to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setEnabled(boolean value) { - - enabled_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * This field is deprecated. Leave this unset and instead configure
-     * BinaryAuthorization using evaluation_mode. If evaluation_mode is set to
-     * anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored.
-     * 
- * - * bool enabled = 1 [deprecated = true]; - * - * @deprecated google.container.v1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1/cluster_service.proto;l=1440 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - enabled_ = false; - onChanged(); - return this; - } - - private int evaluationMode_ = 0; - /** - * - * - *
-     * Mode of operation for binauthz policy evaluation. If unspecified, defaults
-     * to DISABLED.
-     * 
- * - * .google.container.v1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; - * - * @return The enum numeric value on the wire for evaluationMode. - */ - @java.lang.Override - public int getEvaluationModeValue() { - return evaluationMode_; - } - /** - * - * - *
-     * Mode of operation for binauthz policy evaluation. If unspecified, defaults
-     * to DISABLED.
-     * 
- * - * .google.container.v1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; - * - * @param value The enum numeric value on the wire for evaluationMode to set. - * @return This builder for chaining. - */ - public Builder setEvaluationModeValue(int value) { - evaluationMode_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Mode of operation for binauthz policy evaluation. If unspecified, defaults
-     * to DISABLED.
-     * 
- * - * .google.container.v1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; - * - * @return The evaluationMode. - */ - @java.lang.Override - public com.google.container.v1.BinaryAuthorization.EvaluationMode getEvaluationMode() { - com.google.container.v1.BinaryAuthorization.EvaluationMode result = - com.google.container.v1.BinaryAuthorization.EvaluationMode.forNumber(evaluationMode_); - return result == null - ? com.google.container.v1.BinaryAuthorization.EvaluationMode.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Mode of operation for binauthz policy evaluation. If unspecified, defaults
-     * to DISABLED.
-     * 
- * - * .google.container.v1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; - * - * @param value The evaluationMode to set. - * @return This builder for chaining. - */ - public Builder setEvaluationMode( - com.google.container.v1.BinaryAuthorization.EvaluationMode value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - evaluationMode_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Mode of operation for binauthz policy evaluation. If unspecified, defaults
-     * to DISABLED.
-     * 
- * - * .google.container.v1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; - * - * @return This builder for chaining. - */ - public Builder clearEvaluationMode() { - bitField0_ = (bitField0_ & ~0x00000002); - evaluationMode_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.BinaryAuthorization) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.BinaryAuthorization) - private static final com.google.container.v1.BinaryAuthorization DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.BinaryAuthorization(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.BinaryAuthorization getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorizationOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorizationOrBuilder.java deleted file mode 100644 index 26cafabd05f2..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorizationOrBuilder.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface BinaryAuthorizationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.BinaryAuthorization) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * This field is deprecated. Leave this unset and instead configure
-   * BinaryAuthorization using evaluation_mode. If evaluation_mode is set to
-   * anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored.
-   * 
- * - * bool enabled = 1 [deprecated = true]; - * - * @deprecated google.container.v1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1/cluster_service.proto;l=1440 - * @return The enabled. - */ - @java.lang.Deprecated - boolean getEnabled(); - - /** - * - * - *
-   * Mode of operation for binauthz policy evaluation. If unspecified, defaults
-   * to DISABLED.
-   * 
- * - * .google.container.v1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; - * - * @return The enum numeric value on the wire for evaluationMode. - */ - int getEvaluationModeValue(); - /** - * - * - *
-   * Mode of operation for binauthz policy evaluation. If unspecified, defaults
-   * to DISABLED.
-   * 
- * - * .google.container.v1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; - * - * @return The evaluationMode. - */ - com.google.container.v1.BinaryAuthorization.EvaluationMode getEvaluationMode(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BlueGreenSettings.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BlueGreenSettings.java deleted file mode 100644 index 468efc58f8f5..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BlueGreenSettings.java +++ /dev/null @@ -1,2318 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Settings for blue-green upgrade.
- * 
- * - * Protobuf type {@code google.container.v1.BlueGreenSettings} - */ -public final class BlueGreenSettings extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.BlueGreenSettings) - BlueGreenSettingsOrBuilder { - private static final long serialVersionUID = 0L; - // Use BlueGreenSettings.newBuilder() to construct. - private BlueGreenSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private BlueGreenSettings() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BlueGreenSettings(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_BlueGreenSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_BlueGreenSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.BlueGreenSettings.class, - com.google.container.v1.BlueGreenSettings.Builder.class); - } - - public interface StandardRolloutPolicyOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.BlueGreenSettings.StandardRolloutPolicy) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Percentage of the blue pool nodes to drain in a batch.
-     * The range of this field should be (0.0, 1.0].
-     * 
- * - * float batch_percentage = 1; - * - * @return Whether the batchPercentage field is set. - */ - boolean hasBatchPercentage(); - /** - * - * - *
-     * Percentage of the blue pool nodes to drain in a batch.
-     * The range of this field should be (0.0, 1.0].
-     * 
- * - * float batch_percentage = 1; - * - * @return The batchPercentage. - */ - float getBatchPercentage(); - - /** - * - * - *
-     * Number of blue nodes to drain in a batch.
-     * 
- * - * int32 batch_node_count = 2; - * - * @return Whether the batchNodeCount field is set. - */ - boolean hasBatchNodeCount(); - /** - * - * - *
-     * Number of blue nodes to drain in a batch.
-     * 
- * - * int32 batch_node_count = 2; - * - * @return The batchNodeCount. - */ - int getBatchNodeCount(); - - /** - * - * - *
-     * Soak time after each batch gets drained. Default to zero.
-     * 
- * - * optional .google.protobuf.Duration batch_soak_duration = 3; - * - * @return Whether the batchSoakDuration field is set. - */ - boolean hasBatchSoakDuration(); - /** - * - * - *
-     * Soak time after each batch gets drained. Default to zero.
-     * 
- * - * optional .google.protobuf.Duration batch_soak_duration = 3; - * - * @return The batchSoakDuration. - */ - com.google.protobuf.Duration getBatchSoakDuration(); - /** - * - * - *
-     * Soak time after each batch gets drained. Default to zero.
-     * 
- * - * optional .google.protobuf.Duration batch_soak_duration = 3; - */ - com.google.protobuf.DurationOrBuilder getBatchSoakDurationOrBuilder(); - - com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.UpdateBatchSizeCase - getUpdateBatchSizeCase(); - } - /** - * - * - *
-   * Standard rollout policy is the default policy for blue-green.
-   * 
- * - * Protobuf type {@code google.container.v1.BlueGreenSettings.StandardRolloutPolicy} - */ - public static final class StandardRolloutPolicy extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.BlueGreenSettings.StandardRolloutPolicy) - StandardRolloutPolicyOrBuilder { - private static final long serialVersionUID = 0L; - // Use StandardRolloutPolicy.newBuilder() to construct. - private StandardRolloutPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private StandardRolloutPolicy() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new StandardRolloutPolicy(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_BlueGreenSettings_StandardRolloutPolicy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_BlueGreenSettings_StandardRolloutPolicy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.class, - com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.Builder.class); - } - - private int bitField0_; - private int updateBatchSizeCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object updateBatchSize_; - - public enum UpdateBatchSizeCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - BATCH_PERCENTAGE(1), - BATCH_NODE_COUNT(2), - UPDATEBATCHSIZE_NOT_SET(0); - private final int value; - - private UpdateBatchSizeCase(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 UpdateBatchSizeCase valueOf(int value) { - return forNumber(value); - } - - public static UpdateBatchSizeCase forNumber(int value) { - switch (value) { - case 1: - return BATCH_PERCENTAGE; - case 2: - return BATCH_NODE_COUNT; - case 0: - return UPDATEBATCHSIZE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public UpdateBatchSizeCase getUpdateBatchSizeCase() { - return UpdateBatchSizeCase.forNumber(updateBatchSizeCase_); - } - - public static final int BATCH_PERCENTAGE_FIELD_NUMBER = 1; - /** - * - * - *
-     * Percentage of the blue pool nodes to drain in a batch.
-     * The range of this field should be (0.0, 1.0].
-     * 
- * - * float batch_percentage = 1; - * - * @return Whether the batchPercentage field is set. - */ - @java.lang.Override - public boolean hasBatchPercentage() { - return updateBatchSizeCase_ == 1; - } - /** - * - * - *
-     * Percentage of the blue pool nodes to drain in a batch.
-     * The range of this field should be (0.0, 1.0].
-     * 
- * - * float batch_percentage = 1; - * - * @return The batchPercentage. - */ - @java.lang.Override - public float getBatchPercentage() { - if (updateBatchSizeCase_ == 1) { - return (java.lang.Float) updateBatchSize_; - } - return 0F; - } - - public static final int BATCH_NODE_COUNT_FIELD_NUMBER = 2; - /** - * - * - *
-     * Number of blue nodes to drain in a batch.
-     * 
- * - * int32 batch_node_count = 2; - * - * @return Whether the batchNodeCount field is set. - */ - @java.lang.Override - public boolean hasBatchNodeCount() { - return updateBatchSizeCase_ == 2; - } - /** - * - * - *
-     * Number of blue nodes to drain in a batch.
-     * 
- * - * int32 batch_node_count = 2; - * - * @return The batchNodeCount. - */ - @java.lang.Override - public int getBatchNodeCount() { - if (updateBatchSizeCase_ == 2) { - return (java.lang.Integer) updateBatchSize_; - } - return 0; - } - - public static final int BATCH_SOAK_DURATION_FIELD_NUMBER = 3; - private com.google.protobuf.Duration batchSoakDuration_; - /** - * - * - *
-     * Soak time after each batch gets drained. Default to zero.
-     * 
- * - * optional .google.protobuf.Duration batch_soak_duration = 3; - * - * @return Whether the batchSoakDuration field is set. - */ - @java.lang.Override - public boolean hasBatchSoakDuration() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Soak time after each batch gets drained. Default to zero.
-     * 
- * - * optional .google.protobuf.Duration batch_soak_duration = 3; - * - * @return The batchSoakDuration. - */ - @java.lang.Override - public com.google.protobuf.Duration getBatchSoakDuration() { - return batchSoakDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : batchSoakDuration_; - } - /** - * - * - *
-     * Soak time after each batch gets drained. Default to zero.
-     * 
- * - * optional .google.protobuf.Duration batch_soak_duration = 3; - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getBatchSoakDurationOrBuilder() { - return batchSoakDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : batchSoakDuration_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (updateBatchSizeCase_ == 1) { - output.writeFloat(1, (float) ((java.lang.Float) updateBatchSize_)); - } - if (updateBatchSizeCase_ == 2) { - output.writeInt32(2, (int) ((java.lang.Integer) updateBatchSize_)); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getBatchSoakDuration()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (updateBatchSizeCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeFloatSize( - 1, (float) ((java.lang.Float) updateBatchSize_)); - } - if (updateBatchSizeCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeInt32Size( - 2, (int) ((java.lang.Integer) updateBatchSize_)); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBatchSoakDuration()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy)) { - return super.equals(obj); - } - com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy other = - (com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy) obj; - - if (hasBatchSoakDuration() != other.hasBatchSoakDuration()) return false; - if (hasBatchSoakDuration()) { - if (!getBatchSoakDuration().equals(other.getBatchSoakDuration())) return false; - } - if (!getUpdateBatchSizeCase().equals(other.getUpdateBatchSizeCase())) return false; - switch (updateBatchSizeCase_) { - case 1: - if (java.lang.Float.floatToIntBits(getBatchPercentage()) - != java.lang.Float.floatToIntBits(other.getBatchPercentage())) return false; - break; - case 2: - if (getBatchNodeCount() != other.getBatchNodeCount()) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasBatchSoakDuration()) { - hash = (37 * hash) + BATCH_SOAK_DURATION_FIELD_NUMBER; - hash = (53 * hash) + getBatchSoakDuration().hashCode(); - } - switch (updateBatchSizeCase_) { - case 1: - hash = (37 * hash) + BATCH_PERCENTAGE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getBatchPercentage()); - break; - case 2: - hash = (37 * hash) + BATCH_NODE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getBatchNodeCount(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Standard rollout policy is the default policy for blue-green.
-     * 
- * - * Protobuf type {@code google.container.v1.BlueGreenSettings.StandardRolloutPolicy} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.BlueGreenSettings.StandardRolloutPolicy) - com.google.container.v1.BlueGreenSettings.StandardRolloutPolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_BlueGreenSettings_StandardRolloutPolicy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_BlueGreenSettings_StandardRolloutPolicy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.class, - com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.Builder.class); - } - - // Construct using - // com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getBatchSoakDurationFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - batchSoakDuration_ = null; - if (batchSoakDurationBuilder_ != null) { - batchSoakDurationBuilder_.dispose(); - batchSoakDurationBuilder_ = null; - } - updateBatchSizeCase_ = 0; - updateBatchSize_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_BlueGreenSettings_StandardRolloutPolicy_descriptor; - } - - @java.lang.Override - public com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy - getDefaultInstanceForType() { - return com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy build() { - com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy buildPartial() { - com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy result = - new com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.batchSoakDuration_ = - batchSoakDurationBuilder_ == null - ? batchSoakDuration_ - : batchSoakDurationBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartialOneofs( - com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy result) { - result.updateBatchSizeCase_ = updateBatchSizeCase_; - result.updateBatchSize_ = this.updateBatchSize_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy) { - return mergeFrom((com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy other) { - if (other - == com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.getDefaultInstance()) - return this; - if (other.hasBatchSoakDuration()) { - mergeBatchSoakDuration(other.getBatchSoakDuration()); - } - switch (other.getUpdateBatchSizeCase()) { - case BATCH_PERCENTAGE: - { - setBatchPercentage(other.getBatchPercentage()); - break; - } - case BATCH_NODE_COUNT: - { - setBatchNodeCount(other.getBatchNodeCount()); - break; - } - case UPDATEBATCHSIZE_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 13: - { - updateBatchSize_ = input.readFloat(); - updateBatchSizeCase_ = 1; - break; - } // case 13 - case 16: - { - updateBatchSize_ = input.readInt32(); - updateBatchSizeCase_ = 2; - break; - } // case 16 - case 26: - { - input.readMessage( - getBatchSoakDurationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int updateBatchSizeCase_ = 0; - private java.lang.Object updateBatchSize_; - - public UpdateBatchSizeCase getUpdateBatchSizeCase() { - return UpdateBatchSizeCase.forNumber(updateBatchSizeCase_); - } - - public Builder clearUpdateBatchSize() { - updateBatchSizeCase_ = 0; - updateBatchSize_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * - * - *
-       * Percentage of the blue pool nodes to drain in a batch.
-       * The range of this field should be (0.0, 1.0].
-       * 
- * - * float batch_percentage = 1; - * - * @return Whether the batchPercentage field is set. - */ - public boolean hasBatchPercentage() { - return updateBatchSizeCase_ == 1; - } - /** - * - * - *
-       * Percentage of the blue pool nodes to drain in a batch.
-       * The range of this field should be (0.0, 1.0].
-       * 
- * - * float batch_percentage = 1; - * - * @return The batchPercentage. - */ - public float getBatchPercentage() { - if (updateBatchSizeCase_ == 1) { - return (java.lang.Float) updateBatchSize_; - } - return 0F; - } - /** - * - * - *
-       * Percentage of the blue pool nodes to drain in a batch.
-       * The range of this field should be (0.0, 1.0].
-       * 
- * - * float batch_percentage = 1; - * - * @param value The batchPercentage to set. - * @return This builder for chaining. - */ - public Builder setBatchPercentage(float value) { - - updateBatchSizeCase_ = 1; - updateBatchSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Percentage of the blue pool nodes to drain in a batch.
-       * The range of this field should be (0.0, 1.0].
-       * 
- * - * float batch_percentage = 1; - * - * @return This builder for chaining. - */ - public Builder clearBatchPercentage() { - if (updateBatchSizeCase_ == 1) { - updateBatchSizeCase_ = 0; - updateBatchSize_ = null; - onChanged(); - } - return this; - } - - /** - * - * - *
-       * Number of blue nodes to drain in a batch.
-       * 
- * - * int32 batch_node_count = 2; - * - * @return Whether the batchNodeCount field is set. - */ - public boolean hasBatchNodeCount() { - return updateBatchSizeCase_ == 2; - } - /** - * - * - *
-       * Number of blue nodes to drain in a batch.
-       * 
- * - * int32 batch_node_count = 2; - * - * @return The batchNodeCount. - */ - public int getBatchNodeCount() { - if (updateBatchSizeCase_ == 2) { - return (java.lang.Integer) updateBatchSize_; - } - return 0; - } - /** - * - * - *
-       * Number of blue nodes to drain in a batch.
-       * 
- * - * int32 batch_node_count = 2; - * - * @param value The batchNodeCount to set. - * @return This builder for chaining. - */ - public Builder setBatchNodeCount(int value) { - - updateBatchSizeCase_ = 2; - updateBatchSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Number of blue nodes to drain in a batch.
-       * 
- * - * int32 batch_node_count = 2; - * - * @return This builder for chaining. - */ - public Builder clearBatchNodeCount() { - if (updateBatchSizeCase_ == 2) { - updateBatchSizeCase_ = 0; - updateBatchSize_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.Duration batchSoakDuration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - batchSoakDurationBuilder_; - /** - * - * - *
-       * Soak time after each batch gets drained. Default to zero.
-       * 
- * - * optional .google.protobuf.Duration batch_soak_duration = 3; - * - * @return Whether the batchSoakDuration field is set. - */ - public boolean hasBatchSoakDuration() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-       * Soak time after each batch gets drained. Default to zero.
-       * 
- * - * optional .google.protobuf.Duration batch_soak_duration = 3; - * - * @return The batchSoakDuration. - */ - public com.google.protobuf.Duration getBatchSoakDuration() { - if (batchSoakDurationBuilder_ == null) { - return batchSoakDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : batchSoakDuration_; - } else { - return batchSoakDurationBuilder_.getMessage(); - } - } - /** - * - * - *
-       * Soak time after each batch gets drained. Default to zero.
-       * 
- * - * optional .google.protobuf.Duration batch_soak_duration = 3; - */ - public Builder setBatchSoakDuration(com.google.protobuf.Duration value) { - if (batchSoakDurationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - batchSoakDuration_ = value; - } else { - batchSoakDurationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-       * Soak time after each batch gets drained. Default to zero.
-       * 
- * - * optional .google.protobuf.Duration batch_soak_duration = 3; - */ - public Builder setBatchSoakDuration(com.google.protobuf.Duration.Builder builderForValue) { - if (batchSoakDurationBuilder_ == null) { - batchSoakDuration_ = builderForValue.build(); - } else { - batchSoakDurationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-       * Soak time after each batch gets drained. Default to zero.
-       * 
- * - * optional .google.protobuf.Duration batch_soak_duration = 3; - */ - public Builder mergeBatchSoakDuration(com.google.protobuf.Duration value) { - if (batchSoakDurationBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && batchSoakDuration_ != null - && batchSoakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { - getBatchSoakDurationBuilder().mergeFrom(value); - } else { - batchSoakDuration_ = value; - } - } else { - batchSoakDurationBuilder_.mergeFrom(value); - } - if (batchSoakDuration_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - * - * - *
-       * Soak time after each batch gets drained. Default to zero.
-       * 
- * - * optional .google.protobuf.Duration batch_soak_duration = 3; - */ - public Builder clearBatchSoakDuration() { - bitField0_ = (bitField0_ & ~0x00000004); - batchSoakDuration_ = null; - if (batchSoakDurationBuilder_ != null) { - batchSoakDurationBuilder_.dispose(); - batchSoakDurationBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-       * Soak time after each batch gets drained. Default to zero.
-       * 
- * - * optional .google.protobuf.Duration batch_soak_duration = 3; - */ - public com.google.protobuf.Duration.Builder getBatchSoakDurationBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getBatchSoakDurationFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * Soak time after each batch gets drained. Default to zero.
-       * 
- * - * optional .google.protobuf.Duration batch_soak_duration = 3; - */ - public com.google.protobuf.DurationOrBuilder getBatchSoakDurationOrBuilder() { - if (batchSoakDurationBuilder_ != null) { - return batchSoakDurationBuilder_.getMessageOrBuilder(); - } else { - return batchSoakDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : batchSoakDuration_; - } - } - /** - * - * - *
-       * Soak time after each batch gets drained. Default to zero.
-       * 
- * - * optional .google.protobuf.Duration batch_soak_duration = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getBatchSoakDurationFieldBuilder() { - if (batchSoakDurationBuilder_ == null) { - batchSoakDurationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getBatchSoakDuration(), getParentForChildren(), isClean()); - batchSoakDuration_ = null; - } - return batchSoakDurationBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.BlueGreenSettings.StandardRolloutPolicy) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.BlueGreenSettings.StandardRolloutPolicy) - private static final com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy(); - } - - public static com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StandardRolloutPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int bitField0_; - private int rolloutPolicyCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object rolloutPolicy_; - - public enum RolloutPolicyCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - STANDARD_ROLLOUT_POLICY(1), - ROLLOUTPOLICY_NOT_SET(0); - private final int value; - - private RolloutPolicyCase(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 RolloutPolicyCase valueOf(int value) { - return forNumber(value); - } - - public static RolloutPolicyCase forNumber(int value) { - switch (value) { - case 1: - return STANDARD_ROLLOUT_POLICY; - case 0: - return ROLLOUTPOLICY_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public RolloutPolicyCase getRolloutPolicyCase() { - return RolloutPolicyCase.forNumber(rolloutPolicyCase_); - } - - public static final int STANDARD_ROLLOUT_POLICY_FIELD_NUMBER = 1; - /** - * - * - *
-   * Standard policy for the blue-green upgrade.
-   * 
- * - * .google.container.v1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; - * - * - * @return Whether the standardRolloutPolicy field is set. - */ - @java.lang.Override - public boolean hasStandardRolloutPolicy() { - return rolloutPolicyCase_ == 1; - } - /** - * - * - *
-   * Standard policy for the blue-green upgrade.
-   * 
- * - * .google.container.v1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; - * - * - * @return The standardRolloutPolicy. - */ - @java.lang.Override - public com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy - getStandardRolloutPolicy() { - if (rolloutPolicyCase_ == 1) { - return (com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy) rolloutPolicy_; - } - return com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.getDefaultInstance(); - } - /** - * - * - *
-   * Standard policy for the blue-green upgrade.
-   * 
- * - * .google.container.v1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; - * - */ - @java.lang.Override - public com.google.container.v1.BlueGreenSettings.StandardRolloutPolicyOrBuilder - getStandardRolloutPolicyOrBuilder() { - if (rolloutPolicyCase_ == 1) { - return (com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy) rolloutPolicy_; - } - return com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.getDefaultInstance(); - } - - public static final int NODE_POOL_SOAK_DURATION_FIELD_NUMBER = 2; - private com.google.protobuf.Duration nodePoolSoakDuration_; - /** - * - * - *
-   * Time needed after draining entire blue pool. After this period, blue pool
-   * will be cleaned up.
-   * 
- * - * optional .google.protobuf.Duration node_pool_soak_duration = 2; - * - * @return Whether the nodePoolSoakDuration field is set. - */ - @java.lang.Override - public boolean hasNodePoolSoakDuration() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Time needed after draining entire blue pool. After this period, blue pool
-   * will be cleaned up.
-   * 
- * - * optional .google.protobuf.Duration node_pool_soak_duration = 2; - * - * @return The nodePoolSoakDuration. - */ - @java.lang.Override - public com.google.protobuf.Duration getNodePoolSoakDuration() { - return nodePoolSoakDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : nodePoolSoakDuration_; - } - /** - * - * - *
-   * Time needed after draining entire blue pool. After this period, blue pool
-   * will be cleaned up.
-   * 
- * - * optional .google.protobuf.Duration node_pool_soak_duration = 2; - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getNodePoolSoakDurationOrBuilder() { - return nodePoolSoakDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : nodePoolSoakDuration_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (rolloutPolicyCase_ == 1) { - output.writeMessage( - 1, (com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy) rolloutPolicy_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getNodePoolSoakDuration()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (rolloutPolicyCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy) rolloutPolicy_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, getNodePoolSoakDuration()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.BlueGreenSettings)) { - return super.equals(obj); - } - com.google.container.v1.BlueGreenSettings other = - (com.google.container.v1.BlueGreenSettings) obj; - - if (hasNodePoolSoakDuration() != other.hasNodePoolSoakDuration()) return false; - if (hasNodePoolSoakDuration()) { - if (!getNodePoolSoakDuration().equals(other.getNodePoolSoakDuration())) return false; - } - if (!getRolloutPolicyCase().equals(other.getRolloutPolicyCase())) return false; - switch (rolloutPolicyCase_) { - case 1: - if (!getStandardRolloutPolicy().equals(other.getStandardRolloutPolicy())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasNodePoolSoakDuration()) { - hash = (37 * hash) + NODE_POOL_SOAK_DURATION_FIELD_NUMBER; - hash = (53 * hash) + getNodePoolSoakDuration().hashCode(); - } - switch (rolloutPolicyCase_) { - case 1: - hash = (37 * hash) + STANDARD_ROLLOUT_POLICY_FIELD_NUMBER; - hash = (53 * hash) + getStandardRolloutPolicy().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.BlueGreenSettings parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.BlueGreenSettings parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.BlueGreenSettings parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.BlueGreenSettings parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.BlueGreenSettings parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.BlueGreenSettings parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.BlueGreenSettings parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.BlueGreenSettings parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.BlueGreenSettings parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.BlueGreenSettings parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.BlueGreenSettings parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.BlueGreenSettings parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.BlueGreenSettings prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Settings for blue-green upgrade.
-   * 
- * - * Protobuf type {@code google.container.v1.BlueGreenSettings} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.BlueGreenSettings) - com.google.container.v1.BlueGreenSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_BlueGreenSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_BlueGreenSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.BlueGreenSettings.class, - com.google.container.v1.BlueGreenSettings.Builder.class); - } - - // Construct using com.google.container.v1.BlueGreenSettings.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getNodePoolSoakDurationFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (standardRolloutPolicyBuilder_ != null) { - standardRolloutPolicyBuilder_.clear(); - } - nodePoolSoakDuration_ = null; - if (nodePoolSoakDurationBuilder_ != null) { - nodePoolSoakDurationBuilder_.dispose(); - nodePoolSoakDurationBuilder_ = null; - } - rolloutPolicyCase_ = 0; - rolloutPolicy_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_BlueGreenSettings_descriptor; - } - - @java.lang.Override - public com.google.container.v1.BlueGreenSettings getDefaultInstanceForType() { - return com.google.container.v1.BlueGreenSettings.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.BlueGreenSettings build() { - com.google.container.v1.BlueGreenSettings result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.BlueGreenSettings buildPartial() { - com.google.container.v1.BlueGreenSettings result = - new com.google.container.v1.BlueGreenSettings(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.BlueGreenSettings result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nodePoolSoakDuration_ = - nodePoolSoakDurationBuilder_ == null - ? nodePoolSoakDuration_ - : nodePoolSoakDurationBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartialOneofs(com.google.container.v1.BlueGreenSettings result) { - result.rolloutPolicyCase_ = rolloutPolicyCase_; - result.rolloutPolicy_ = this.rolloutPolicy_; - if (rolloutPolicyCase_ == 1 && standardRolloutPolicyBuilder_ != null) { - result.rolloutPolicy_ = standardRolloutPolicyBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.BlueGreenSettings) { - return mergeFrom((com.google.container.v1.BlueGreenSettings) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.BlueGreenSettings other) { - if (other == com.google.container.v1.BlueGreenSettings.getDefaultInstance()) return this; - if (other.hasNodePoolSoakDuration()) { - mergeNodePoolSoakDuration(other.getNodePoolSoakDuration()); - } - switch (other.getRolloutPolicyCase()) { - case STANDARD_ROLLOUT_POLICY: - { - mergeStandardRolloutPolicy(other.getStandardRolloutPolicy()); - break; - } - case ROLLOUTPOLICY_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage( - getStandardRolloutPolicyFieldBuilder().getBuilder(), extensionRegistry); - rolloutPolicyCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage( - getNodePoolSoakDurationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int rolloutPolicyCase_ = 0; - private java.lang.Object rolloutPolicy_; - - public RolloutPolicyCase getRolloutPolicyCase() { - return RolloutPolicyCase.forNumber(rolloutPolicyCase_); - } - - public Builder clearRolloutPolicy() { - rolloutPolicyCase_ = 0; - rolloutPolicy_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy, - com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.Builder, - com.google.container.v1.BlueGreenSettings.StandardRolloutPolicyOrBuilder> - standardRolloutPolicyBuilder_; - /** - * - * - *
-     * Standard policy for the blue-green upgrade.
-     * 
- * - * - * .google.container.v1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; - * - * - * @return Whether the standardRolloutPolicy field is set. - */ - @java.lang.Override - public boolean hasStandardRolloutPolicy() { - return rolloutPolicyCase_ == 1; - } - /** - * - * - *
-     * Standard policy for the blue-green upgrade.
-     * 
- * - * - * .google.container.v1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; - * - * - * @return The standardRolloutPolicy. - */ - @java.lang.Override - public com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy - getStandardRolloutPolicy() { - if (standardRolloutPolicyBuilder_ == null) { - if (rolloutPolicyCase_ == 1) { - return (com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy) rolloutPolicy_; - } - return com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.getDefaultInstance(); - } else { - if (rolloutPolicyCase_ == 1) { - return standardRolloutPolicyBuilder_.getMessage(); - } - return com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.getDefaultInstance(); - } - } - /** - * - * - *
-     * Standard policy for the blue-green upgrade.
-     * 
- * - * - * .google.container.v1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; - * - */ - public Builder setStandardRolloutPolicy( - com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy value) { - if (standardRolloutPolicyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rolloutPolicy_ = value; - onChanged(); - } else { - standardRolloutPolicyBuilder_.setMessage(value); - } - rolloutPolicyCase_ = 1; - return this; - } - /** - * - * - *
-     * Standard policy for the blue-green upgrade.
-     * 
- * - * - * .google.container.v1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; - * - */ - public Builder setStandardRolloutPolicy( - com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.Builder builderForValue) { - if (standardRolloutPolicyBuilder_ == null) { - rolloutPolicy_ = builderForValue.build(); - onChanged(); - } else { - standardRolloutPolicyBuilder_.setMessage(builderForValue.build()); - } - rolloutPolicyCase_ = 1; - return this; - } - /** - * - * - *
-     * Standard policy for the blue-green upgrade.
-     * 
- * - * - * .google.container.v1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; - * - */ - public Builder mergeStandardRolloutPolicy( - com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy value) { - if (standardRolloutPolicyBuilder_ == null) { - if (rolloutPolicyCase_ == 1 - && rolloutPolicy_ - != com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy - .getDefaultInstance()) { - rolloutPolicy_ = - com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.newBuilder( - (com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy) - rolloutPolicy_) - .mergeFrom(value) - .buildPartial(); - } else { - rolloutPolicy_ = value; - } - onChanged(); - } else { - if (rolloutPolicyCase_ == 1) { - standardRolloutPolicyBuilder_.mergeFrom(value); - } else { - standardRolloutPolicyBuilder_.setMessage(value); - } - } - rolloutPolicyCase_ = 1; - return this; - } - /** - * - * - *
-     * Standard policy for the blue-green upgrade.
-     * 
- * - * - * .google.container.v1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; - * - */ - public Builder clearStandardRolloutPolicy() { - if (standardRolloutPolicyBuilder_ == null) { - if (rolloutPolicyCase_ == 1) { - rolloutPolicyCase_ = 0; - rolloutPolicy_ = null; - onChanged(); - } - } else { - if (rolloutPolicyCase_ == 1) { - rolloutPolicyCase_ = 0; - rolloutPolicy_ = null; - } - standardRolloutPolicyBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Standard policy for the blue-green upgrade.
-     * 
- * - * - * .google.container.v1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; - * - */ - public com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.Builder - getStandardRolloutPolicyBuilder() { - return getStandardRolloutPolicyFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Standard policy for the blue-green upgrade.
-     * 
- * - * - * .google.container.v1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; - * - */ - @java.lang.Override - public com.google.container.v1.BlueGreenSettings.StandardRolloutPolicyOrBuilder - getStandardRolloutPolicyOrBuilder() { - if ((rolloutPolicyCase_ == 1) && (standardRolloutPolicyBuilder_ != null)) { - return standardRolloutPolicyBuilder_.getMessageOrBuilder(); - } else { - if (rolloutPolicyCase_ == 1) { - return (com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy) rolloutPolicy_; - } - return com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.getDefaultInstance(); - } - } - /** - * - * - *
-     * Standard policy for the blue-green upgrade.
-     * 
- * - * - * .google.container.v1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy, - com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.Builder, - com.google.container.v1.BlueGreenSettings.StandardRolloutPolicyOrBuilder> - getStandardRolloutPolicyFieldBuilder() { - if (standardRolloutPolicyBuilder_ == null) { - if (!(rolloutPolicyCase_ == 1)) { - rolloutPolicy_ = - com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.getDefaultInstance(); - } - standardRolloutPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy, - com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.Builder, - com.google.container.v1.BlueGreenSettings.StandardRolloutPolicyOrBuilder>( - (com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy) rolloutPolicy_, - getParentForChildren(), - isClean()); - rolloutPolicy_ = null; - } - rolloutPolicyCase_ = 1; - onChanged(); - return standardRolloutPolicyBuilder_; - } - - private com.google.protobuf.Duration nodePoolSoakDuration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - nodePoolSoakDurationBuilder_; - /** - * - * - *
-     * Time needed after draining entire blue pool. After this period, blue pool
-     * will be cleaned up.
-     * 
- * - * optional .google.protobuf.Duration node_pool_soak_duration = 2; - * - * @return Whether the nodePoolSoakDuration field is set. - */ - public boolean hasNodePoolSoakDuration() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * Time needed after draining entire blue pool. After this period, blue pool
-     * will be cleaned up.
-     * 
- * - * optional .google.protobuf.Duration node_pool_soak_duration = 2; - * - * @return The nodePoolSoakDuration. - */ - public com.google.protobuf.Duration getNodePoolSoakDuration() { - if (nodePoolSoakDurationBuilder_ == null) { - return nodePoolSoakDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : nodePoolSoakDuration_; - } else { - return nodePoolSoakDurationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Time needed after draining entire blue pool. After this period, blue pool
-     * will be cleaned up.
-     * 
- * - * optional .google.protobuf.Duration node_pool_soak_duration = 2; - */ - public Builder setNodePoolSoakDuration(com.google.protobuf.Duration value) { - if (nodePoolSoakDurationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - nodePoolSoakDuration_ = value; - } else { - nodePoolSoakDurationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Time needed after draining entire blue pool. After this period, blue pool
-     * will be cleaned up.
-     * 
- * - * optional .google.protobuf.Duration node_pool_soak_duration = 2; - */ - public Builder setNodePoolSoakDuration(com.google.protobuf.Duration.Builder builderForValue) { - if (nodePoolSoakDurationBuilder_ == null) { - nodePoolSoakDuration_ = builderForValue.build(); - } else { - nodePoolSoakDurationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Time needed after draining entire blue pool. After this period, blue pool
-     * will be cleaned up.
-     * 
- * - * optional .google.protobuf.Duration node_pool_soak_duration = 2; - */ - public Builder mergeNodePoolSoakDuration(com.google.protobuf.Duration value) { - if (nodePoolSoakDurationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && nodePoolSoakDuration_ != null - && nodePoolSoakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { - getNodePoolSoakDurationBuilder().mergeFrom(value); - } else { - nodePoolSoakDuration_ = value; - } - } else { - nodePoolSoakDurationBuilder_.mergeFrom(value); - } - if (nodePoolSoakDuration_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Time needed after draining entire blue pool. After this period, blue pool
-     * will be cleaned up.
-     * 
- * - * optional .google.protobuf.Duration node_pool_soak_duration = 2; - */ - public Builder clearNodePoolSoakDuration() { - bitField0_ = (bitField0_ & ~0x00000002); - nodePoolSoakDuration_ = null; - if (nodePoolSoakDurationBuilder_ != null) { - nodePoolSoakDurationBuilder_.dispose(); - nodePoolSoakDurationBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Time needed after draining entire blue pool. After this period, blue pool
-     * will be cleaned up.
-     * 
- * - * optional .google.protobuf.Duration node_pool_soak_duration = 2; - */ - public com.google.protobuf.Duration.Builder getNodePoolSoakDurationBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getNodePoolSoakDurationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Time needed after draining entire blue pool. After this period, blue pool
-     * will be cleaned up.
-     * 
- * - * optional .google.protobuf.Duration node_pool_soak_duration = 2; - */ - public com.google.protobuf.DurationOrBuilder getNodePoolSoakDurationOrBuilder() { - if (nodePoolSoakDurationBuilder_ != null) { - return nodePoolSoakDurationBuilder_.getMessageOrBuilder(); - } else { - return nodePoolSoakDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : nodePoolSoakDuration_; - } - } - /** - * - * - *
-     * Time needed after draining entire blue pool. After this period, blue pool
-     * will be cleaned up.
-     * 
- * - * optional .google.protobuf.Duration node_pool_soak_duration = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getNodePoolSoakDurationFieldBuilder() { - if (nodePoolSoakDurationBuilder_ == null) { - nodePoolSoakDurationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getNodePoolSoakDuration(), getParentForChildren(), isClean()); - nodePoolSoakDuration_ = null; - } - return nodePoolSoakDurationBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.BlueGreenSettings) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.BlueGreenSettings) - private static final com.google.container.v1.BlueGreenSettings DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.BlueGreenSettings(); - } - - public static com.google.container.v1.BlueGreenSettings getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BlueGreenSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.BlueGreenSettings getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BlueGreenSettingsOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BlueGreenSettingsOrBuilder.java deleted file mode 100644 index a3c58f025083..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BlueGreenSettingsOrBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface BlueGreenSettingsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.BlueGreenSettings) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Standard policy for the blue-green upgrade.
-   * 
- * - * .google.container.v1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; - * - * - * @return Whether the standardRolloutPolicy field is set. - */ - boolean hasStandardRolloutPolicy(); - /** - * - * - *
-   * Standard policy for the blue-green upgrade.
-   * 
- * - * .google.container.v1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; - * - * - * @return The standardRolloutPolicy. - */ - com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy getStandardRolloutPolicy(); - /** - * - * - *
-   * Standard policy for the blue-green upgrade.
-   * 
- * - * .google.container.v1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; - * - */ - com.google.container.v1.BlueGreenSettings.StandardRolloutPolicyOrBuilder - getStandardRolloutPolicyOrBuilder(); - - /** - * - * - *
-   * Time needed after draining entire blue pool. After this period, blue pool
-   * will be cleaned up.
-   * 
- * - * optional .google.protobuf.Duration node_pool_soak_duration = 2; - * - * @return Whether the nodePoolSoakDuration field is set. - */ - boolean hasNodePoolSoakDuration(); - /** - * - * - *
-   * Time needed after draining entire blue pool. After this period, blue pool
-   * will be cleaned up.
-   * 
- * - * optional .google.protobuf.Duration node_pool_soak_duration = 2; - * - * @return The nodePoolSoakDuration. - */ - com.google.protobuf.Duration getNodePoolSoakDuration(); - /** - * - * - *
-   * Time needed after draining entire blue pool. After this period, blue pool
-   * will be cleaned up.
-   * 
- * - * optional .google.protobuf.Duration node_pool_soak_duration = 2; - */ - com.google.protobuf.DurationOrBuilder getNodePoolSoakDurationOrBuilder(); - - com.google.container.v1.BlueGreenSettings.RolloutPolicyCase getRolloutPolicyCase(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java deleted file mode 100644 index 3e9d51335bae..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java +++ /dev/null @@ -1,1282 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * CancelOperationRequest cancels a single operation.
- * 
- * - * Protobuf type {@code google.container.v1.CancelOperationRequest} - */ -public final class CancelOperationRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CancelOperationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CancelOperationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.CancelOperationRequest.class, - com.google.container.v1.CancelOperationRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3092 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3092 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object zone_ = ""; - /** - * - * - *
-   * 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]; - * - * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3098 - * @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; - } - } - /** - * - * - *
-   * 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]; - * - * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3098 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object operationId_ = ""; - /** - * - * - *
-   * Deprecated. The server-assigned `name` of the operation.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string operation_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3102 - * @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; - } - } - /** - * - * - *
-   * 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]; - * - * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3102 - * @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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, operationId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, operationId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.CancelOperationRequest)) { - return super.equals(obj); - } - com.google.container.v1.CancelOperationRequest other = - (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.CancelOperationRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.CancelOperationRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.CancelOperationRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.CancelOperationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.CancelOperationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.CancelOperationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.CancelOperationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.CancelOperationRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.CancelOperationRequest) - com.google.container.v1.CancelOperationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CancelOperationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CancelOperationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.CancelOperationRequest.class, - com.google.container.v1.CancelOperationRequest.Builder.class); - } - - // Construct using com.google.container.v1.CancelOperationRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - operationId_ = ""; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CancelOperationRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.CancelOperationRequest getDefaultInstanceForType() { - return com.google.container.v1.CancelOperationRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.CancelOperationRequest build() { - com.google.container.v1.CancelOperationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.CancelOperationRequest buildPartial() { - com.google.container.v1.CancelOperationRequest result = - new com.google.container.v1.CancelOperationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.CancelOperationRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.operationId_ = operationId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.CancelOperationRequest) { - return mergeFrom((com.google.container.v1.CancelOperationRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.CancelOperationRequest other) { - if (other == com.google.container.v1.CancelOperationRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getOperationId().isEmpty()) { - operationId_ = other.operationId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000008; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - operationId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3092 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3092 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3092 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3092 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3092 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3098 - * @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; - } - } - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3098 - * @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; - } - } - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3098 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3098 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3098 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object operationId_ = ""; - /** - * - * - *
-     * Deprecated. The server-assigned `name` of the operation.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string operation_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3102 - * @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; - } - } - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3102 - * @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; - } - } - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3102 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The server-assigned `name` of the operation.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string operation_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3102 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearOperationId() { - operationId_ = getDefaultInstance().getOperationId(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The server-assigned `name` of the operation.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string operation_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3102 - * @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; - bitField0_ |= 0x00000004; - 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; - bitField0_ |= 0x00000008; - 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(); - bitField0_ = (bitField0_ & ~0x00000008); - 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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.CancelOperationRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.CancelOperationRequest) - private static final com.google.container.v1.CancelOperationRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.CancelOperationRequest(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.CancelOperationRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java deleted file mode 100644 index ae082e054045..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface CancelOperationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.CancelOperationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3092 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3092 - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * operation resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3098 - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * operation resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3098 - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The server-assigned `name` of the operation.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string operation_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3102 - * @return The operationId. - */ - @java.lang.Deprecated - java.lang.String getOperationId(); - /** - * - * - *
-   * Deprecated. The server-assigned `name` of the operation.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string operation_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3102 - * @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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CheckAutopilotCompatibilityRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CheckAutopilotCompatibilityRequest.java deleted file mode 100644 index ee372298d7b3..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CheckAutopilotCompatibilityRequest.java +++ /dev/null @@ -1,636 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * CheckAutopilotCompatibilityRequest requests getting the blockers for the
- * given operation in the cluster.
- * 
- * - * Protobuf type {@code google.container.v1.CheckAutopilotCompatibilityRequest} - */ -public final class CheckAutopilotCompatibilityRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.CheckAutopilotCompatibilityRequest) - CheckAutopilotCompatibilityRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CheckAutopilotCompatibilityRequest.newBuilder() to construct. - private CheckAutopilotCompatibilityRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CheckAutopilotCompatibilityRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CheckAutopilotCompatibilityRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CheckAutopilotCompatibilityRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CheckAutopilotCompatibilityRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.CheckAutopilotCompatibilityRequest.class, - com.google.container.v1.CheckAutopilotCompatibilityRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - 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 = 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 (project, location, cluster) of the cluster to retrieve.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.CheckAutopilotCompatibilityRequest)) { - return super.equals(obj); - } - com.google.container.v1.CheckAutopilotCompatibilityRequest other = - (com.google.container.v1.CheckAutopilotCompatibilityRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.CheckAutopilotCompatibilityRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.CheckAutopilotCompatibilityRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.CheckAutopilotCompatibilityRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.CheckAutopilotCompatibilityRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.CheckAutopilotCompatibilityRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.CheckAutopilotCompatibilityRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.CheckAutopilotCompatibilityRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.CheckAutopilotCompatibilityRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.CheckAutopilotCompatibilityRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.CheckAutopilotCompatibilityRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.CheckAutopilotCompatibilityRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.CheckAutopilotCompatibilityRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.container.v1.CheckAutopilotCompatibilityRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * CheckAutopilotCompatibilityRequest requests getting the blockers for the
-   * given operation in the cluster.
-   * 
- * - * Protobuf type {@code google.container.v1.CheckAutopilotCompatibilityRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.CheckAutopilotCompatibilityRequest) - com.google.container.v1.CheckAutopilotCompatibilityRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CheckAutopilotCompatibilityRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CheckAutopilotCompatibilityRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.CheckAutopilotCompatibilityRequest.class, - com.google.container.v1.CheckAutopilotCompatibilityRequest.Builder.class); - } - - // Construct using com.google.container.v1.CheckAutopilotCompatibilityRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CheckAutopilotCompatibilityRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.CheckAutopilotCompatibilityRequest getDefaultInstanceForType() { - return com.google.container.v1.CheckAutopilotCompatibilityRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.CheckAutopilotCompatibilityRequest build() { - com.google.container.v1.CheckAutopilotCompatibilityRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.CheckAutopilotCompatibilityRequest buildPartial() { - com.google.container.v1.CheckAutopilotCompatibilityRequest result = - new com.google.container.v1.CheckAutopilotCompatibilityRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.CheckAutopilotCompatibilityRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.CheckAutopilotCompatibilityRequest) { - return mergeFrom((com.google.container.v1.CheckAutopilotCompatibilityRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.CheckAutopilotCompatibilityRequest other) { - if (other == com.google.container.v1.CheckAutopilotCompatibilityRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to retrieve.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * 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 (project, location, cluster) of the cluster to retrieve.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * 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 (project, location, cluster) of the cluster to retrieve.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to retrieve.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to retrieve.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.CheckAutopilotCompatibilityRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.CheckAutopilotCompatibilityRequest) - private static final com.google.container.v1.CheckAutopilotCompatibilityRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.CheckAutopilotCompatibilityRequest(); - } - - public static com.google.container.v1.CheckAutopilotCompatibilityRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CheckAutopilotCompatibilityRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.CheckAutopilotCompatibilityRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CheckAutopilotCompatibilityRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CheckAutopilotCompatibilityRequestOrBuilder.java deleted file mode 100644 index b17eb138b609..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CheckAutopilotCompatibilityRequestOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface CheckAutopilotCompatibilityRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.CheckAutopilotCompatibilityRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to retrieve.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 1; - * - * @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 = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CheckAutopilotCompatibilityResponse.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CheckAutopilotCompatibilityResponse.java deleted file mode 100644 index 66c14f3179a5..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CheckAutopilotCompatibilityResponse.java +++ /dev/null @@ -1,1127 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * CheckAutopilotCompatibilityResponse has a list of compatibility issues.
- * 
- * - * Protobuf type {@code google.container.v1.CheckAutopilotCompatibilityResponse} - */ -public final class CheckAutopilotCompatibilityResponse - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.CheckAutopilotCompatibilityResponse) - CheckAutopilotCompatibilityResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use CheckAutopilotCompatibilityResponse.newBuilder() to construct. - private CheckAutopilotCompatibilityResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CheckAutopilotCompatibilityResponse() { - issues_ = java.util.Collections.emptyList(); - summary_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CheckAutopilotCompatibilityResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CheckAutopilotCompatibilityResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CheckAutopilotCompatibilityResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.CheckAutopilotCompatibilityResponse.class, - com.google.container.v1.CheckAutopilotCompatibilityResponse.Builder.class); - } - - public static final int ISSUES_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List issues_; - /** - * - * - *
-   * The list of issues for the given operation.
-   * 
- * - * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; - */ - @java.lang.Override - public java.util.List getIssuesList() { - return issues_; - } - /** - * - * - *
-   * The list of issues for the given operation.
-   * 
- * - * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; - */ - @java.lang.Override - public java.util.List - getIssuesOrBuilderList() { - return issues_; - } - /** - * - * - *
-   * The list of issues for the given operation.
-   * 
- * - * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; - */ - @java.lang.Override - public int getIssuesCount() { - return issues_.size(); - } - /** - * - * - *
-   * The list of issues for the given operation.
-   * 
- * - * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; - */ - @java.lang.Override - public com.google.container.v1.AutopilotCompatibilityIssue getIssues(int index) { - return issues_.get(index); - } - /** - * - * - *
-   * The list of issues for the given operation.
-   * 
- * - * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; - */ - @java.lang.Override - public com.google.container.v1.AutopilotCompatibilityIssueOrBuilder getIssuesOrBuilder( - int index) { - return issues_.get(index); - } - - public static final int SUMMARY_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object summary_ = ""; - /** - * - * - *
-   * The summary of the autopilot compatibility response.
-   * 
- * - * string summary = 2; - * - * @return The summary. - */ - @java.lang.Override - public java.lang.String getSummary() { - java.lang.Object ref = summary_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - summary_ = s; - return s; - } - } - /** - * - * - *
-   * The summary of the autopilot compatibility response.
-   * 
- * - * string summary = 2; - * - * @return The bytes for summary. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSummaryBytes() { - java.lang.Object ref = summary_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - summary_ = 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 < issues_.size(); i++) { - output.writeMessage(1, issues_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(summary_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, summary_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < issues_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, issues_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(summary_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, summary_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.CheckAutopilotCompatibilityResponse)) { - return super.equals(obj); - } - com.google.container.v1.CheckAutopilotCompatibilityResponse other = - (com.google.container.v1.CheckAutopilotCompatibilityResponse) obj; - - if (!getIssuesList().equals(other.getIssuesList())) return false; - if (!getSummary().equals(other.getSummary())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getIssuesCount() > 0) { - hash = (37 * hash) + ISSUES_FIELD_NUMBER; - hash = (53 * hash) + getIssuesList().hashCode(); - } - hash = (37 * hash) + SUMMARY_FIELD_NUMBER; - hash = (53 * hash) + getSummary().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.CheckAutopilotCompatibilityResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.CheckAutopilotCompatibilityResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.CheckAutopilotCompatibilityResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.CheckAutopilotCompatibilityResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.CheckAutopilotCompatibilityResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.CheckAutopilotCompatibilityResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.CheckAutopilotCompatibilityResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.CheckAutopilotCompatibilityResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.CheckAutopilotCompatibilityResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.CheckAutopilotCompatibilityResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.CheckAutopilotCompatibilityResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.CheckAutopilotCompatibilityResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.container.v1.CheckAutopilotCompatibilityResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * CheckAutopilotCompatibilityResponse has a list of compatibility issues.
-   * 
- * - * Protobuf type {@code google.container.v1.CheckAutopilotCompatibilityResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.CheckAutopilotCompatibilityResponse) - com.google.container.v1.CheckAutopilotCompatibilityResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CheckAutopilotCompatibilityResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CheckAutopilotCompatibilityResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.CheckAutopilotCompatibilityResponse.class, - com.google.container.v1.CheckAutopilotCompatibilityResponse.Builder.class); - } - - // Construct using com.google.container.v1.CheckAutopilotCompatibilityResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (issuesBuilder_ == null) { - issues_ = java.util.Collections.emptyList(); - } else { - issues_ = null; - issuesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - summary_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CheckAutopilotCompatibilityResponse_descriptor; - } - - @java.lang.Override - public com.google.container.v1.CheckAutopilotCompatibilityResponse getDefaultInstanceForType() { - return com.google.container.v1.CheckAutopilotCompatibilityResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.CheckAutopilotCompatibilityResponse build() { - com.google.container.v1.CheckAutopilotCompatibilityResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.CheckAutopilotCompatibilityResponse buildPartial() { - com.google.container.v1.CheckAutopilotCompatibilityResponse result = - new com.google.container.v1.CheckAutopilotCompatibilityResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.container.v1.CheckAutopilotCompatibilityResponse result) { - if (issuesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - issues_ = java.util.Collections.unmodifiableList(issues_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.issues_ = issues_; - } else { - result.issues_ = issuesBuilder_.build(); - } - } - - private void buildPartial0(com.google.container.v1.CheckAutopilotCompatibilityResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.summary_ = summary_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.CheckAutopilotCompatibilityResponse) { - return mergeFrom((com.google.container.v1.CheckAutopilotCompatibilityResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.CheckAutopilotCompatibilityResponse other) { - if (other == com.google.container.v1.CheckAutopilotCompatibilityResponse.getDefaultInstance()) - return this; - if (issuesBuilder_ == null) { - if (!other.issues_.isEmpty()) { - if (issues_.isEmpty()) { - issues_ = other.issues_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureIssuesIsMutable(); - issues_.addAll(other.issues_); - } - onChanged(); - } - } else { - if (!other.issues_.isEmpty()) { - if (issuesBuilder_.isEmpty()) { - issuesBuilder_.dispose(); - issuesBuilder_ = null; - issues_ = other.issues_; - bitField0_ = (bitField0_ & ~0x00000001); - issuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getIssuesFieldBuilder() - : null; - } else { - issuesBuilder_.addAllMessages(other.issues_); - } - } - } - if (!other.getSummary().isEmpty()) { - summary_ = other.summary_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.container.v1.AutopilotCompatibilityIssue m = - input.readMessage( - com.google.container.v1.AutopilotCompatibilityIssue.parser(), - extensionRegistry); - if (issuesBuilder_ == null) { - ensureIssuesIsMutable(); - issues_.add(m); - } else { - issuesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - summary_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List issues_ = - java.util.Collections.emptyList(); - - private void ensureIssuesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - issues_ = - new java.util.ArrayList(issues_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.AutopilotCompatibilityIssue, - com.google.container.v1.AutopilotCompatibilityIssue.Builder, - com.google.container.v1.AutopilotCompatibilityIssueOrBuilder> - issuesBuilder_; - - /** - * - * - *
-     * The list of issues for the given operation.
-     * 
- * - * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; - */ - public java.util.List getIssuesList() { - if (issuesBuilder_ == null) { - return java.util.Collections.unmodifiableList(issues_); - } else { - return issuesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The list of issues for the given operation.
-     * 
- * - * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; - */ - public int getIssuesCount() { - if (issuesBuilder_ == null) { - return issues_.size(); - } else { - return issuesBuilder_.getCount(); - } - } - /** - * - * - *
-     * The list of issues for the given operation.
-     * 
- * - * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; - */ - public com.google.container.v1.AutopilotCompatibilityIssue getIssues(int index) { - if (issuesBuilder_ == null) { - return issues_.get(index); - } else { - return issuesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The list of issues for the given operation.
-     * 
- * - * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; - */ - public Builder setIssues(int index, com.google.container.v1.AutopilotCompatibilityIssue value) { - if (issuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureIssuesIsMutable(); - issues_.set(index, value); - onChanged(); - } else { - issuesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of issues for the given operation.
-     * 
- * - * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; - */ - public Builder setIssues( - int index, com.google.container.v1.AutopilotCompatibilityIssue.Builder builderForValue) { - if (issuesBuilder_ == null) { - ensureIssuesIsMutable(); - issues_.set(index, builderForValue.build()); - onChanged(); - } else { - issuesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of issues for the given operation.
-     * 
- * - * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; - */ - public Builder addIssues(com.google.container.v1.AutopilotCompatibilityIssue value) { - if (issuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureIssuesIsMutable(); - issues_.add(value); - onChanged(); - } else { - issuesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The list of issues for the given operation.
-     * 
- * - * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; - */ - public Builder addIssues(int index, com.google.container.v1.AutopilotCompatibilityIssue value) { - if (issuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureIssuesIsMutable(); - issues_.add(index, value); - onChanged(); - } else { - issuesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of issues for the given operation.
-     * 
- * - * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; - */ - public Builder addIssues( - com.google.container.v1.AutopilotCompatibilityIssue.Builder builderForValue) { - if (issuesBuilder_ == null) { - ensureIssuesIsMutable(); - issues_.add(builderForValue.build()); - onChanged(); - } else { - issuesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of issues for the given operation.
-     * 
- * - * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; - */ - public Builder addIssues( - int index, com.google.container.v1.AutopilotCompatibilityIssue.Builder builderForValue) { - if (issuesBuilder_ == null) { - ensureIssuesIsMutable(); - issues_.add(index, builderForValue.build()); - onChanged(); - } else { - issuesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of issues for the given operation.
-     * 
- * - * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; - */ - public Builder addAllIssues( - java.lang.Iterable values) { - if (issuesBuilder_ == null) { - ensureIssuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, issues_); - onChanged(); - } else { - issuesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The list of issues for the given operation.
-     * 
- * - * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; - */ - public Builder clearIssues() { - if (issuesBuilder_ == null) { - issues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - issuesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The list of issues for the given operation.
-     * 
- * - * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; - */ - public Builder removeIssues(int index) { - if (issuesBuilder_ == null) { - ensureIssuesIsMutable(); - issues_.remove(index); - onChanged(); - } else { - issuesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The list of issues for the given operation.
-     * 
- * - * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; - */ - public com.google.container.v1.AutopilotCompatibilityIssue.Builder getIssuesBuilder(int index) { - return getIssuesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The list of issues for the given operation.
-     * 
- * - * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; - */ - public com.google.container.v1.AutopilotCompatibilityIssueOrBuilder getIssuesOrBuilder( - int index) { - if (issuesBuilder_ == null) { - return issues_.get(index); - } else { - return issuesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The list of issues for the given operation.
-     * 
- * - * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; - */ - public java.util.List - getIssuesOrBuilderList() { - if (issuesBuilder_ != null) { - return issuesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(issues_); - } - } - /** - * - * - *
-     * The list of issues for the given operation.
-     * 
- * - * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; - */ - public com.google.container.v1.AutopilotCompatibilityIssue.Builder addIssuesBuilder() { - return getIssuesFieldBuilder() - .addBuilder(com.google.container.v1.AutopilotCompatibilityIssue.getDefaultInstance()); - } - /** - * - * - *
-     * The list of issues for the given operation.
-     * 
- * - * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; - */ - public com.google.container.v1.AutopilotCompatibilityIssue.Builder addIssuesBuilder(int index) { - return getIssuesFieldBuilder() - .addBuilder( - index, com.google.container.v1.AutopilotCompatibilityIssue.getDefaultInstance()); - } - /** - * - * - *
-     * The list of issues for the given operation.
-     * 
- * - * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; - */ - public java.util.List - getIssuesBuilderList() { - return getIssuesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.AutopilotCompatibilityIssue, - com.google.container.v1.AutopilotCompatibilityIssue.Builder, - com.google.container.v1.AutopilotCompatibilityIssueOrBuilder> - getIssuesFieldBuilder() { - if (issuesBuilder_ == null) { - issuesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.AutopilotCompatibilityIssue, - com.google.container.v1.AutopilotCompatibilityIssue.Builder, - com.google.container.v1.AutopilotCompatibilityIssueOrBuilder>( - issues_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - issues_ = null; - } - return issuesBuilder_; - } - - private java.lang.Object summary_ = ""; - /** - * - * - *
-     * The summary of the autopilot compatibility response.
-     * 
- * - * string summary = 2; - * - * @return The summary. - */ - public java.lang.String getSummary() { - java.lang.Object ref = summary_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - summary_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The summary of the autopilot compatibility response.
-     * 
- * - * string summary = 2; - * - * @return The bytes for summary. - */ - public com.google.protobuf.ByteString getSummaryBytes() { - java.lang.Object ref = summary_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - summary_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The summary of the autopilot compatibility response.
-     * 
- * - * string summary = 2; - * - * @param value The summary to set. - * @return This builder for chaining. - */ - public Builder setSummary(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - summary_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * The summary of the autopilot compatibility response.
-     * 
- * - * string summary = 2; - * - * @return This builder for chaining. - */ - public Builder clearSummary() { - summary_ = getDefaultInstance().getSummary(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * The summary of the autopilot compatibility response.
-     * 
- * - * string summary = 2; - * - * @param value The bytes for summary to set. - * @return This builder for chaining. - */ - public Builder setSummaryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - summary_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.CheckAutopilotCompatibilityResponse) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.CheckAutopilotCompatibilityResponse) - private static final com.google.container.v1.CheckAutopilotCompatibilityResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.CheckAutopilotCompatibilityResponse(); - } - - public static com.google.container.v1.CheckAutopilotCompatibilityResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CheckAutopilotCompatibilityResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.CheckAutopilotCompatibilityResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CheckAutopilotCompatibilityResponseOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CheckAutopilotCompatibilityResponseOrBuilder.java deleted file mode 100644 index d5e2f76fc338..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CheckAutopilotCompatibilityResponseOrBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface CheckAutopilotCompatibilityResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.CheckAutopilotCompatibilityResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The list of issues for the given operation.
-   * 
- * - * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; - */ - java.util.List getIssuesList(); - /** - * - * - *
-   * The list of issues for the given operation.
-   * 
- * - * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; - */ - com.google.container.v1.AutopilotCompatibilityIssue getIssues(int index); - /** - * - * - *
-   * The list of issues for the given operation.
-   * 
- * - * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; - */ - int getIssuesCount(); - /** - * - * - *
-   * The list of issues for the given operation.
-   * 
- * - * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; - */ - java.util.List - getIssuesOrBuilderList(); - /** - * - * - *
-   * The list of issues for the given operation.
-   * 
- * - * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; - */ - com.google.container.v1.AutopilotCompatibilityIssueOrBuilder getIssuesOrBuilder(int index); - - /** - * - * - *
-   * The summary of the autopilot compatibility response.
-   * 
- * - * string summary = 2; - * - * @return The summary. - */ - java.lang.String getSummary(); - /** - * - * - *
-   * The summary of the autopilot compatibility response.
-   * 
- * - * string summary = 2; - * - * @return The bytes for summary. - */ - com.google.protobuf.ByteString getSummaryBytes(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClientCertificateConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClientCertificateConfig.java deleted file mode 100644 index b49d8f91ca5b..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClientCertificateConfig.java +++ /dev/null @@ -1,535 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Configuration for client certificates on the cluster.
- * 
- * - * Protobuf type {@code google.container.v1.ClientCertificateConfig} - */ -public final class ClientCertificateConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ClientCertificateConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ClientCertificateConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ClientCertificateConfig.class, - com.google.container.v1.ClientCertificateConfig.Builder.class); - } - - public static final int ISSUE_CLIENT_CERTIFICATE_FIELD_NUMBER = 1; - private boolean issueClientCertificate_ = false; - /** - * - * - *
-   * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.ClientCertificateConfig)) { - return super.equals(obj); - } - com.google.container.v1.ClientCertificateConfig other = - (com.google.container.v1.ClientCertificateConfig) obj; - - if (getIssueClientCertificate() != other.getIssueClientCertificate()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ClientCertificateConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.ClientCertificateConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.ClientCertificateConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ClientCertificateConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ClientCertificateConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.ClientCertificateConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.ClientCertificateConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.ClientCertificateConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ClientCertificateConfig) - com.google.container.v1.ClientCertificateConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ClientCertificateConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ClientCertificateConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ClientCertificateConfig.class, - com.google.container.v1.ClientCertificateConfig.Builder.class); - } - - // Construct using com.google.container.v1.ClientCertificateConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - issueClientCertificate_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ClientCertificateConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ClientCertificateConfig getDefaultInstanceForType() { - return com.google.container.v1.ClientCertificateConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ClientCertificateConfig build() { - com.google.container.v1.ClientCertificateConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ClientCertificateConfig buildPartial() { - com.google.container.v1.ClientCertificateConfig result = - new com.google.container.v1.ClientCertificateConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.ClientCertificateConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.issueClientCertificate_ = issueClientCertificate_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ClientCertificateConfig) { - return mergeFrom((com.google.container.v1.ClientCertificateConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ClientCertificateConfig other) { - if (other == com.google.container.v1.ClientCertificateConfig.getDefaultInstance()) - return this; - if (other.getIssueClientCertificate() != false) { - setIssueClientCertificate(other.getIssueClientCertificate()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - issueClientCertificate_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Issue a client certificate.
-     * 
- * - * bool issue_client_certificate = 1; - * - * @return This builder for chaining. - */ - public Builder clearIssueClientCertificate() { - bitField0_ = (bitField0_ & ~0x00000001); - 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.v1.ClientCertificateConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ClientCertificateConfig) - private static final com.google.container.v1.ClientCertificateConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ClientCertificateConfig(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.ClientCertificateConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClientCertificateConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClientCertificateConfigOrBuilder.java deleted file mode 100644 index 454249ab1848..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClientCertificateConfigOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface ClientCertificateConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ClientCertificateConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Issue a client certificate.
-   * 
- * - * bool issue_client_certificate = 1; - * - * @return The issueClientCertificate. - */ - boolean getIssueClientCertificate(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CloudRunConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CloudRunConfig.java deleted file mode 100644 index 04bbc801d67a..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CloudRunConfig.java +++ /dev/null @@ -1,850 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Configuration options for the Cloud Run feature.
- * 
- * - * Protobuf type {@code google.container.v1.CloudRunConfig} - */ -public final class CloudRunConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CloudRunConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CloudRunConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.CloudRunConfig.class, - com.google.container.v1.CloudRunConfig.Builder.class); - } - - /** - * - * - *
-   * Load balancer type of ingress service of Cloud Run.
-   * 
- * - * Protobuf enum {@code google.container.v1.CloudRunConfig.LoadBalancerType} - */ - public enum LoadBalancerType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Load balancer type for Cloud Run is unspecified.
-     * 
- * - * LOAD_BALANCER_TYPE_UNSPECIFIED = 0; - */ - LOAD_BALANCER_TYPE_UNSPECIFIED(0), - /** - * - * - *
-     * Install external load balancer for Cloud Run.
-     * 
- * - * LOAD_BALANCER_TYPE_EXTERNAL = 1; - */ - LOAD_BALANCER_TYPE_EXTERNAL(1), - /** - * - * - *
-     * Install internal load balancer for Cloud Run.
-     * 
- * - * LOAD_BALANCER_TYPE_INTERNAL = 2; - */ - LOAD_BALANCER_TYPE_INTERNAL(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Load balancer type for Cloud Run is unspecified.
-     * 
- * - * LOAD_BALANCER_TYPE_UNSPECIFIED = 0; - */ - public static final int LOAD_BALANCER_TYPE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Install external load balancer for Cloud Run.
-     * 
- * - * LOAD_BALANCER_TYPE_EXTERNAL = 1; - */ - public static final int LOAD_BALANCER_TYPE_EXTERNAL_VALUE = 1; - /** - * - * - *
-     * Install internal load balancer for Cloud Run.
-     * 
- * - * LOAD_BALANCER_TYPE_INTERNAL = 2; - */ - public static final int LOAD_BALANCER_TYPE_INTERNAL_VALUE = 2; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static LoadBalancerType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static LoadBalancerType forNumber(int value) { - switch (value) { - case 0: - return LOAD_BALANCER_TYPE_UNSPECIFIED; - case 1: - return LOAD_BALANCER_TYPE_EXTERNAL; - case 2: - return LOAD_BALANCER_TYPE_INTERNAL; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public LoadBalancerType findValueByNumber(int number) { - return LoadBalancerType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.CloudRunConfig.getDescriptor().getEnumTypes().get(0); - } - - private static final LoadBalancerType[] VALUES = values(); - - public static LoadBalancerType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private LoadBalancerType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.CloudRunConfig.LoadBalancerType) - } - - public static final int DISABLED_FIELD_NUMBER = 1; - private boolean disabled_ = false; - /** - * - * - *
-   * 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_ = 0; - /** - * - * - *
-   * Which load balancer type is installed for Cloud Run.
-   * 
- * - * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; - * - * @return The enum numeric value on the wire for loadBalancerType. - */ - @java.lang.Override - public int getLoadBalancerTypeValue() { - return loadBalancerType_; - } - /** - * - * - *
-   * Which load balancer type is installed for Cloud Run.
-   * 
- * - * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; - * - * @return The loadBalancerType. - */ - @java.lang.Override - public com.google.container.v1.CloudRunConfig.LoadBalancerType getLoadBalancerType() { - com.google.container.v1.CloudRunConfig.LoadBalancerType result = - com.google.container.v1.CloudRunConfig.LoadBalancerType.forNumber(loadBalancerType_); - return result == null - ? com.google.container.v1.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.v1.CloudRunConfig.LoadBalancerType.LOAD_BALANCER_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(3, loadBalancerType_); - } - getUnknownFields().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.v1.CloudRunConfig.LoadBalancerType.LOAD_BALANCER_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, loadBalancerType_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.CloudRunConfig)) { - return super.equals(obj); - } - com.google.container.v1.CloudRunConfig other = (com.google.container.v1.CloudRunConfig) obj; - - if (getDisabled() != other.getDisabled()) return false; - if (loadBalancerType_ != other.loadBalancerType_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.CloudRunConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.CloudRunConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.CloudRunConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.CloudRunConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.CloudRunConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.CloudRunConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.CloudRunConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.CloudRunConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.CloudRunConfig) - com.google.container.v1.CloudRunConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CloudRunConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CloudRunConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.CloudRunConfig.class, - com.google.container.v1.CloudRunConfig.Builder.class); - } - - // Construct using com.google.container.v1.CloudRunConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - disabled_ = false; - loadBalancerType_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CloudRunConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.CloudRunConfig getDefaultInstanceForType() { - return com.google.container.v1.CloudRunConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.CloudRunConfig build() { - com.google.container.v1.CloudRunConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.CloudRunConfig buildPartial() { - com.google.container.v1.CloudRunConfig result = - new com.google.container.v1.CloudRunConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.CloudRunConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.disabled_ = disabled_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.loadBalancerType_ = loadBalancerType_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.CloudRunConfig) { - return mergeFrom((com.google.container.v1.CloudRunConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.CloudRunConfig other) { - if (other == com.google.container.v1.CloudRunConfig.getDefaultInstance()) return this; - if (other.getDisabled() != false) { - setDisabled(other.getDisabled()); - } - if (other.loadBalancerType_ != 0) { - setLoadBalancerTypeValue(other.getLoadBalancerTypeValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - disabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 24: - { - loadBalancerType_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether Cloud Run addon is enabled for this cluster.
-     * 
- * - * bool disabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearDisabled() { - bitField0_ = (bitField0_ & ~0x00000001); - disabled_ = false; - onChanged(); - return this; - } - - private int loadBalancerType_ = 0; - /** - * - * - *
-     * Which load balancer type is installed for Cloud Run.
-     * 
- * - * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; - * - * @return The enum numeric value on the wire for loadBalancerType. - */ - @java.lang.Override - public int getLoadBalancerTypeValue() { - return loadBalancerType_; - } - /** - * - * - *
-     * Which load balancer type is installed for Cloud Run.
-     * 
- * - * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; - * - * @param value The enum numeric value on the wire for loadBalancerType to set. - * @return This builder for chaining. - */ - public Builder setLoadBalancerTypeValue(int value) { - loadBalancerType_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Which load balancer type is installed for Cloud Run.
-     * 
- * - * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; - * - * @return The loadBalancerType. - */ - @java.lang.Override - public com.google.container.v1.CloudRunConfig.LoadBalancerType getLoadBalancerType() { - com.google.container.v1.CloudRunConfig.LoadBalancerType result = - com.google.container.v1.CloudRunConfig.LoadBalancerType.forNumber(loadBalancerType_); - return result == null - ? com.google.container.v1.CloudRunConfig.LoadBalancerType.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Which load balancer type is installed for Cloud Run.
-     * 
- * - * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; - * - * @param value The loadBalancerType to set. - * @return This builder for chaining. - */ - public Builder setLoadBalancerType( - com.google.container.v1.CloudRunConfig.LoadBalancerType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - loadBalancerType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Which load balancer type is installed for Cloud Run.
-     * 
- * - * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; - * - * @return This builder for chaining. - */ - public Builder clearLoadBalancerType() { - bitField0_ = (bitField0_ & ~0x00000002); - 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.v1.CloudRunConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.CloudRunConfig) - private static final com.google.container.v1.CloudRunConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.CloudRunConfig(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.CloudRunConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CloudRunConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CloudRunConfigOrBuilder.java deleted file mode 100644 index a125df52ac87..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CloudRunConfigOrBuilder.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface CloudRunConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.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.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; - * - * @return The enum numeric value on the wire for loadBalancerType. - */ - int getLoadBalancerTypeValue(); - /** - * - * - *
-   * Which load balancer type is installed for Cloud Run.
-   * 
- * - * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; - * - * @return The loadBalancerType. - */ - com.google.container.v1.CloudRunConfig.LoadBalancerType getLoadBalancerType(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java deleted file mode 100644 index b0ec6abf86ce..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java +++ /dev/null @@ -1,17773 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * A Google Kubernetes Engine cluster.
- * 
- * - * Protobuf type {@code google.container.v1.Cluster} - */ -public final class Cluster extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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.emptyList(); - labelFingerprint_ = ""; - selfLink_ = ""; - zone_ = ""; - endpoint_ = ""; - initialClusterVersion_ = ""; - currentMasterVersion_ = ""; - currentNodeVersion_ = ""; - createTime_ = ""; - status_ = 0; - statusMessage_ = ""; - servicesIpv4Cidr_ = ""; - instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - expireTime_ = ""; - location_ = ""; - tpuIpv4CidrBlock_ = ""; - conditions_ = java.util.Collections.emptyList(); - id_ = ""; - etag_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Cluster(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_Cluster_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - 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.v1.ClusterServiceProto - .internal_static_google_container_v1_Cluster_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.Cluster.class, com.google.container.v1.Cluster.Builder.class); - } - - /** - * - * - *
-   * The current status of the cluster.
-   * 
- * - * Protobuf enum {@code google.container.v1.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 is unusable. It will be
-     * automatically deleted. 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 is unusable. It will be
-     * automatically deleted. 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.v1.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.v1.Cluster.Status) - } - - private int bitField0_; - private int bitField1_; - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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_ = 0; - /** - * - * - *
-   * 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]; - * - * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=1669 - * @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.v1.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.v1.NodeConfig node_config = 4 [deprecated = true]; - * - * @deprecated google.container.v1.Cluster.node_config is deprecated. See - * google/container/v1/cluster_service.proto;l=1682 - * @return Whether the nodeConfig field is set. - */ - @java.lang.Override - @java.lang.Deprecated - public boolean hasNodeConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * 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.v1.NodeConfig node_config = 4 [deprecated = true]; - * - * @deprecated google.container.v1.Cluster.node_config is deprecated. See - * google/container/v1/cluster_service.proto;l=1682 - * @return The nodeConfig. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.container.v1.NodeConfig getNodeConfig() { - return nodeConfig_ == null - ? com.google.container.v1.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.v1.NodeConfig node_config = 4 [deprecated = true]; - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.container.v1.NodeConfigOrBuilder getNodeConfigOrBuilder() { - return nodeConfig_ == null - ? com.google.container.v1.NodeConfig.getDefaultInstance() - : nodeConfig_; - } - - public static final int MASTER_AUTH_FIELD_NUMBER = 5; - private com.google.container.v1.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.v1.MasterAuth master_auth = 5; - * - * @return Whether the masterAuth field is set. - */ - @java.lang.Override - public boolean hasMasterAuth() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * 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.v1.MasterAuth master_auth = 5; - * - * @return The masterAuth. - */ - @java.lang.Override - public com.google.container.v1.MasterAuth getMasterAuth() { - return masterAuth_ == null - ? com.google.container.v1.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.v1.MasterAuth master_auth = 5; - */ - @java.lang.Override - public com.google.container.v1.MasterAuthOrBuilder getMasterAuthOrBuilder() { - return masterAuth_ == null - ? com.google.container.v1.MasterAuth.getDefaultInstance() - : masterAuth_; - } - - public static final int LOGGING_SERVICE_FIELD_NUMBER = 6; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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.
-   * 
- * - * 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.
-   * 
- * - * 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; - - @SuppressWarnings("serial") - 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.v1.AddonsConfig addonsConfig_; - /** - * - * - *
-   * Configurations for the various addons available to run in the cluster.
-   * 
- * - * .google.container.v1.AddonsConfig addons_config = 10; - * - * @return Whether the addonsConfig field is set. - */ - @java.lang.Override - public boolean hasAddonsConfig() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-   * Configurations for the various addons available to run in the cluster.
-   * 
- * - * .google.container.v1.AddonsConfig addons_config = 10; - * - * @return The addonsConfig. - */ - @java.lang.Override - public com.google.container.v1.AddonsConfig getAddonsConfig() { - return addonsConfig_ == null - ? com.google.container.v1.AddonsConfig.getDefaultInstance() - : addonsConfig_; - } - /** - * - * - *
-   * Configurations for the various addons available to run in the cluster.
-   * 
- * - * .google.container.v1.AddonsConfig addons_config = 10; - */ - @java.lang.Override - public com.google.container.v1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() { - return addonsConfig_ == null - ? com.google.container.v1.AddonsConfig.getDefaultInstance() - : addonsConfig_; - } - - public static final int SUBNETWORK_FIELD_NUMBER = 11; - - @SuppressWarnings("serial") - 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.
-   * 
- * - * 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.
-   * 
- * - * 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; - - @SuppressWarnings("serial") - 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.v1.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.v1.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.v1.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.v1.NodePool node_pools = 12; - */ - @java.lang.Override - public com.google.container.v1.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.v1.NodePool node_pools = 12; - */ - @java.lang.Override - public com.google.container.v1.NodePoolOrBuilder getNodePoolsOrBuilder(int index) { - return nodePools_.get(index); - } - - public static final int LOCATIONS_FIELD_NUMBER = 13; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList locations_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * 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_ = false; - /** - * - * - *
-   * Kubernetes alpha features are enabled on this cluster. This includes alpha
-   * API groups (e.g. v1alpha1) and features that may not be production ready in
-   * the kubernetes version of the master and nodes.
-   * The cluster has no SLA for uptime and master/node upgrades are disabled.
-   * Alpha enabled clusters are automatically deleted thirty days after
-   * creation.
-   * 
- * - * bool enable_kubernetes_alpha = 14; - * - * @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.v1.ClusterServiceProto - .internal_static_google_container_v1_Cluster_ResourceLabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - @SuppressWarnings("serial") - 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 NullPointerException("map key"); - } - 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 /* nullable */ java.lang.String getResourceLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - 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 NullPointerException("map key"); - } - 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; - - @SuppressWarnings("serial") - 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.v1.LegacyAbac legacyAbac_; - /** - * - * - *
-   * Configuration for the legacy ABAC authorization mode.
-   * 
- * - * .google.container.v1.LegacyAbac legacy_abac = 18; - * - * @return Whether the legacyAbac field is set. - */ - @java.lang.Override - public boolean hasLegacyAbac() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-   * Configuration for the legacy ABAC authorization mode.
-   * 
- * - * .google.container.v1.LegacyAbac legacy_abac = 18; - * - * @return The legacyAbac. - */ - @java.lang.Override - public com.google.container.v1.LegacyAbac getLegacyAbac() { - return legacyAbac_ == null - ? com.google.container.v1.LegacyAbac.getDefaultInstance() - : legacyAbac_; - } - /** - * - * - *
-   * Configuration for the legacy ABAC authorization mode.
-   * 
- * - * .google.container.v1.LegacyAbac legacy_abac = 18; - */ - @java.lang.Override - public com.google.container.v1.LegacyAbacOrBuilder getLegacyAbacOrBuilder() { - return legacyAbac_ == null - ? com.google.container.v1.LegacyAbac.getDefaultInstance() - : legacyAbac_; - } - - public static final int NETWORK_POLICY_FIELD_NUMBER = 19; - private com.google.container.v1.NetworkPolicy networkPolicy_; - /** - * - * - *
-   * Configuration options for the NetworkPolicy feature.
-   * 
- * - * .google.container.v1.NetworkPolicy network_policy = 19; - * - * @return Whether the networkPolicy field is set. - */ - @java.lang.Override - public boolean hasNetworkPolicy() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-   * Configuration options for the NetworkPolicy feature.
-   * 
- * - * .google.container.v1.NetworkPolicy network_policy = 19; - * - * @return The networkPolicy. - */ - @java.lang.Override - public com.google.container.v1.NetworkPolicy getNetworkPolicy() { - return networkPolicy_ == null - ? com.google.container.v1.NetworkPolicy.getDefaultInstance() - : networkPolicy_; - } - /** - * - * - *
-   * Configuration options for the NetworkPolicy feature.
-   * 
- * - * .google.container.v1.NetworkPolicy network_policy = 19; - */ - @java.lang.Override - public com.google.container.v1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder() { - return networkPolicy_ == null - ? com.google.container.v1.NetworkPolicy.getDefaultInstance() - : networkPolicy_; - } - - public static final int IP_ALLOCATION_POLICY_FIELD_NUMBER = 20; - private com.google.container.v1.IPAllocationPolicy ipAllocationPolicy_; - /** - * - * - *
-   * Configuration for cluster IP allocation.
-   * 
- * - * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; - * - * @return Whether the ipAllocationPolicy field is set. - */ - @java.lang.Override - public boolean hasIpAllocationPolicy() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * - * - *
-   * Configuration for cluster IP allocation.
-   * 
- * - * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; - * - * @return The ipAllocationPolicy. - */ - @java.lang.Override - public com.google.container.v1.IPAllocationPolicy getIpAllocationPolicy() { - return ipAllocationPolicy_ == null - ? com.google.container.v1.IPAllocationPolicy.getDefaultInstance() - : ipAllocationPolicy_; - } - /** - * - * - *
-   * Configuration for cluster IP allocation.
-   * 
- * - * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; - */ - @java.lang.Override - public com.google.container.v1.IPAllocationPolicyOrBuilder getIpAllocationPolicyOrBuilder() { - return ipAllocationPolicy_ == null - ? com.google.container.v1.IPAllocationPolicy.getDefaultInstance() - : ipAllocationPolicy_; - } - - public static final int MASTER_AUTHORIZED_NETWORKS_CONFIG_FIELD_NUMBER = 22; - private com.google.container.v1.MasterAuthorizedNetworksConfig masterAuthorizedNetworksConfig_; - /** - * - * - *
-   * The configuration options for master authorized networks feature.
-   * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - * - * - * @return Whether the masterAuthorizedNetworksConfig field is set. - */ - @java.lang.Override - public boolean hasMasterAuthorizedNetworksConfig() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * - * - *
-   * The configuration options for master authorized networks feature.
-   * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - * - * - * @return The masterAuthorizedNetworksConfig. - */ - @java.lang.Override - public com.google.container.v1.MasterAuthorizedNetworksConfig - getMasterAuthorizedNetworksConfig() { - return masterAuthorizedNetworksConfig_ == null - ? com.google.container.v1.MasterAuthorizedNetworksConfig.getDefaultInstance() - : masterAuthorizedNetworksConfig_; - } - /** - * - * - *
-   * The configuration options for master authorized networks feature.
-   * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - * - */ - @java.lang.Override - public com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder - getMasterAuthorizedNetworksConfigOrBuilder() { - return masterAuthorizedNetworksConfig_ == null - ? com.google.container.v1.MasterAuthorizedNetworksConfig.getDefaultInstance() - : masterAuthorizedNetworksConfig_; - } - - public static final int MAINTENANCE_POLICY_FIELD_NUMBER = 23; - private com.google.container.v1.MaintenancePolicy maintenancePolicy_; - /** - * - * - *
-   * Configure the maintenance policy for this cluster.
-   * 
- * - * .google.container.v1.MaintenancePolicy maintenance_policy = 23; - * - * @return Whether the maintenancePolicy field is set. - */ - @java.lang.Override - public boolean hasMaintenancePolicy() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * - * - *
-   * Configure the maintenance policy for this cluster.
-   * 
- * - * .google.container.v1.MaintenancePolicy maintenance_policy = 23; - * - * @return The maintenancePolicy. - */ - @java.lang.Override - public com.google.container.v1.MaintenancePolicy getMaintenancePolicy() { - return maintenancePolicy_ == null - ? com.google.container.v1.MaintenancePolicy.getDefaultInstance() - : maintenancePolicy_; - } - /** - * - * - *
-   * Configure the maintenance policy for this cluster.
-   * 
- * - * .google.container.v1.MaintenancePolicy maintenance_policy = 23; - */ - @java.lang.Override - public com.google.container.v1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { - return maintenancePolicy_ == null - ? com.google.container.v1.MaintenancePolicy.getDefaultInstance() - : maintenancePolicy_; - } - - public static final int BINARY_AUTHORIZATION_FIELD_NUMBER = 24; - private com.google.container.v1.BinaryAuthorization binaryAuthorization_; - /** - * - * - *
-   * Configuration for Binary Authorization.
-   * 
- * - * .google.container.v1.BinaryAuthorization binary_authorization = 24; - * - * @return Whether the binaryAuthorization field is set. - */ - @java.lang.Override - public boolean hasBinaryAuthorization() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * - * - *
-   * Configuration for Binary Authorization.
-   * 
- * - * .google.container.v1.BinaryAuthorization binary_authorization = 24; - * - * @return The binaryAuthorization. - */ - @java.lang.Override - public com.google.container.v1.BinaryAuthorization getBinaryAuthorization() { - return binaryAuthorization_ == null - ? com.google.container.v1.BinaryAuthorization.getDefaultInstance() - : binaryAuthorization_; - } - /** - * - * - *
-   * Configuration for Binary Authorization.
-   * 
- * - * .google.container.v1.BinaryAuthorization binary_authorization = 24; - */ - @java.lang.Override - public com.google.container.v1.BinaryAuthorizationOrBuilder getBinaryAuthorizationOrBuilder() { - return binaryAuthorization_ == null - ? com.google.container.v1.BinaryAuthorization.getDefaultInstance() - : binaryAuthorization_; - } - - public static final int AUTOSCALING_FIELD_NUMBER = 26; - private com.google.container.v1.ClusterAutoscaling autoscaling_; - /** - * - * - *
-   * Cluster-level autoscaling configuration.
-   * 
- * - * .google.container.v1.ClusterAutoscaling autoscaling = 26; - * - * @return Whether the autoscaling field is set. - */ - @java.lang.Override - public boolean hasAutoscaling() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * - * - *
-   * Cluster-level autoscaling configuration.
-   * 
- * - * .google.container.v1.ClusterAutoscaling autoscaling = 26; - * - * @return The autoscaling. - */ - @java.lang.Override - public com.google.container.v1.ClusterAutoscaling getAutoscaling() { - return autoscaling_ == null - ? com.google.container.v1.ClusterAutoscaling.getDefaultInstance() - : autoscaling_; - } - /** - * - * - *
-   * Cluster-level autoscaling configuration.
-   * 
- * - * .google.container.v1.ClusterAutoscaling autoscaling = 26; - */ - @java.lang.Override - public com.google.container.v1.ClusterAutoscalingOrBuilder getAutoscalingOrBuilder() { - return autoscaling_ == null - ? com.google.container.v1.ClusterAutoscaling.getDefaultInstance() - : autoscaling_; - } - - public static final int NETWORK_CONFIG_FIELD_NUMBER = 27; - private com.google.container.v1.NetworkConfig networkConfig_; - /** - * - * - *
-   * Configuration for cluster networking.
-   * 
- * - * .google.container.v1.NetworkConfig network_config = 27; - * - * @return Whether the networkConfig field is set. - */ - @java.lang.Override - public boolean hasNetworkConfig() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - * - * - *
-   * Configuration for cluster networking.
-   * 
- * - * .google.container.v1.NetworkConfig network_config = 27; - * - * @return The networkConfig. - */ - @java.lang.Override - public com.google.container.v1.NetworkConfig getNetworkConfig() { - return networkConfig_ == null - ? com.google.container.v1.NetworkConfig.getDefaultInstance() - : networkConfig_; - } - /** - * - * - *
-   * Configuration for cluster networking.
-   * 
- * - * .google.container.v1.NetworkConfig network_config = 27; - */ - @java.lang.Override - public com.google.container.v1.NetworkConfigOrBuilder getNetworkConfigOrBuilder() { - return networkConfig_ == null - ? com.google.container.v1.NetworkConfig.getDefaultInstance() - : networkConfig_; - } - - public static final int DEFAULT_MAX_PODS_CONSTRAINT_FIELD_NUMBER = 30; - private com.google.container.v1.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.v1.MaxPodsConstraint default_max_pods_constraint = 30; - * - * @return Whether the defaultMaxPodsConstraint field is set. - */ - @java.lang.Override - public boolean hasDefaultMaxPodsConstraint() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - * - * - *
-   * 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.v1.MaxPodsConstraint default_max_pods_constraint = 30; - * - * @return The defaultMaxPodsConstraint. - */ - @java.lang.Override - public com.google.container.v1.MaxPodsConstraint getDefaultMaxPodsConstraint() { - return defaultMaxPodsConstraint_ == null - ? com.google.container.v1.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.v1.MaxPodsConstraint default_max_pods_constraint = 30; - */ - @java.lang.Override - public com.google.container.v1.MaxPodsConstraintOrBuilder getDefaultMaxPodsConstraintOrBuilder() { - return defaultMaxPodsConstraint_ == null - ? com.google.container.v1.MaxPodsConstraint.getDefaultInstance() - : defaultMaxPodsConstraint_; - } - - public static final int RESOURCE_USAGE_EXPORT_CONFIG_FIELD_NUMBER = 33; - private com.google.container.v1.ResourceUsageExportConfig resourceUsageExportConfig_; - /** - * - * - *
-   * Configuration for exporting resource usages. Resource usage export is
-   * disabled when this config is unspecified.
-   * 
- * - * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; - * - * @return Whether the resourceUsageExportConfig field is set. - */ - @java.lang.Override - public boolean hasResourceUsageExportConfig() { - return ((bitField0_ & 0x00001000) != 0); - } - /** - * - * - *
-   * Configuration for exporting resource usages. Resource usage export is
-   * disabled when this config is unspecified.
-   * 
- * - * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; - * - * @return The resourceUsageExportConfig. - */ - @java.lang.Override - public com.google.container.v1.ResourceUsageExportConfig getResourceUsageExportConfig() { - return resourceUsageExportConfig_ == null - ? com.google.container.v1.ResourceUsageExportConfig.getDefaultInstance() - : resourceUsageExportConfig_; - } - /** - * - * - *
-   * Configuration for exporting resource usages. Resource usage export is
-   * disabled when this config is unspecified.
-   * 
- * - * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; - */ - @java.lang.Override - public com.google.container.v1.ResourceUsageExportConfigOrBuilder - getResourceUsageExportConfigOrBuilder() { - return resourceUsageExportConfig_ == null - ? com.google.container.v1.ResourceUsageExportConfig.getDefaultInstance() - : resourceUsageExportConfig_; - } - - public static final int AUTHENTICATOR_GROUPS_CONFIG_FIELD_NUMBER = 34; - private com.google.container.v1.AuthenticatorGroupsConfig authenticatorGroupsConfig_; - /** - * - * - *
-   * Configuration controlling RBAC group membership information.
-   * 
- * - * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - * - * @return Whether the authenticatorGroupsConfig field is set. - */ - @java.lang.Override - public boolean hasAuthenticatorGroupsConfig() { - return ((bitField0_ & 0x00002000) != 0); - } - /** - * - * - *
-   * Configuration controlling RBAC group membership information.
-   * 
- * - * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - * - * @return The authenticatorGroupsConfig. - */ - @java.lang.Override - public com.google.container.v1.AuthenticatorGroupsConfig getAuthenticatorGroupsConfig() { - return authenticatorGroupsConfig_ == null - ? com.google.container.v1.AuthenticatorGroupsConfig.getDefaultInstance() - : authenticatorGroupsConfig_; - } - /** - * - * - *
-   * Configuration controlling RBAC group membership information.
-   * 
- * - * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - */ - @java.lang.Override - public com.google.container.v1.AuthenticatorGroupsConfigOrBuilder - getAuthenticatorGroupsConfigOrBuilder() { - return authenticatorGroupsConfig_ == null - ? com.google.container.v1.AuthenticatorGroupsConfig.getDefaultInstance() - : authenticatorGroupsConfig_; - } - - public static final int PRIVATE_CLUSTER_CONFIG_FIELD_NUMBER = 37; - private com.google.container.v1.PrivateClusterConfig privateClusterConfig_; - /** - * - * - *
-   * Configuration for private cluster.
-   * 
- * - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; - * - * @return Whether the privateClusterConfig field is set. - */ - @java.lang.Override - public boolean hasPrivateClusterConfig() { - return ((bitField0_ & 0x00004000) != 0); - } - /** - * - * - *
-   * Configuration for private cluster.
-   * 
- * - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; - * - * @return The privateClusterConfig. - */ - @java.lang.Override - public com.google.container.v1.PrivateClusterConfig getPrivateClusterConfig() { - return privateClusterConfig_ == null - ? com.google.container.v1.PrivateClusterConfig.getDefaultInstance() - : privateClusterConfig_; - } - /** - * - * - *
-   * Configuration for private cluster.
-   * 
- * - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; - */ - @java.lang.Override - public com.google.container.v1.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder() { - return privateClusterConfig_ == null - ? com.google.container.v1.PrivateClusterConfig.getDefaultInstance() - : privateClusterConfig_; - } - - public static final int DATABASE_ENCRYPTION_FIELD_NUMBER = 38; - private com.google.container.v1.DatabaseEncryption databaseEncryption_; - /** - * - * - *
-   * Configuration of etcd encryption.
-   * 
- * - * .google.container.v1.DatabaseEncryption database_encryption = 38; - * - * @return Whether the databaseEncryption field is set. - */ - @java.lang.Override - public boolean hasDatabaseEncryption() { - return ((bitField0_ & 0x00008000) != 0); - } - /** - * - * - *
-   * Configuration of etcd encryption.
-   * 
- * - * .google.container.v1.DatabaseEncryption database_encryption = 38; - * - * @return The databaseEncryption. - */ - @java.lang.Override - public com.google.container.v1.DatabaseEncryption getDatabaseEncryption() { - return databaseEncryption_ == null - ? com.google.container.v1.DatabaseEncryption.getDefaultInstance() - : databaseEncryption_; - } - /** - * - * - *
-   * Configuration of etcd encryption.
-   * 
- * - * .google.container.v1.DatabaseEncryption database_encryption = 38; - */ - @java.lang.Override - public com.google.container.v1.DatabaseEncryptionOrBuilder getDatabaseEncryptionOrBuilder() { - return databaseEncryption_ == null - ? com.google.container.v1.DatabaseEncryption.getDefaultInstance() - : databaseEncryption_; - } - - public static final int VERTICAL_POD_AUTOSCALING_FIELD_NUMBER = 39; - private com.google.container.v1.VerticalPodAutoscaling verticalPodAutoscaling_; - /** - * - * - *
-   * Cluster-level Vertical Pod Autoscaling configuration.
-   * 
- * - * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - * - * @return Whether the verticalPodAutoscaling field is set. - */ - @java.lang.Override - public boolean hasVerticalPodAutoscaling() { - return ((bitField0_ & 0x00010000) != 0); - } - /** - * - * - *
-   * Cluster-level Vertical Pod Autoscaling configuration.
-   * 
- * - * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - * - * @return The verticalPodAutoscaling. - */ - @java.lang.Override - public com.google.container.v1.VerticalPodAutoscaling getVerticalPodAutoscaling() { - return verticalPodAutoscaling_ == null - ? com.google.container.v1.VerticalPodAutoscaling.getDefaultInstance() - : verticalPodAutoscaling_; - } - /** - * - * - *
-   * Cluster-level Vertical Pod Autoscaling configuration.
-   * 
- * - * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - */ - @java.lang.Override - public com.google.container.v1.VerticalPodAutoscalingOrBuilder - getVerticalPodAutoscalingOrBuilder() { - return verticalPodAutoscaling_ == null - ? com.google.container.v1.VerticalPodAutoscaling.getDefaultInstance() - : verticalPodAutoscaling_; - } - - public static final int SHIELDED_NODES_FIELD_NUMBER = 40; - private com.google.container.v1.ShieldedNodes shieldedNodes_; - /** - * - * - *
-   * Shielded Nodes configuration.
-   * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - * - * @return Whether the shieldedNodes field is set. - */ - @java.lang.Override - public boolean hasShieldedNodes() { - return ((bitField0_ & 0x00020000) != 0); - } - /** - * - * - *
-   * Shielded Nodes configuration.
-   * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - * - * @return The shieldedNodes. - */ - @java.lang.Override - public com.google.container.v1.ShieldedNodes getShieldedNodes() { - return shieldedNodes_ == null - ? com.google.container.v1.ShieldedNodes.getDefaultInstance() - : shieldedNodes_; - } - /** - * - * - *
-   * Shielded Nodes configuration.
-   * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - */ - @java.lang.Override - public com.google.container.v1.ShieldedNodesOrBuilder getShieldedNodesOrBuilder() { - return shieldedNodes_ == null - ? com.google.container.v1.ShieldedNodes.getDefaultInstance() - : shieldedNodes_; - } - - public static final int RELEASE_CHANNEL_FIELD_NUMBER = 41; - private com.google.container.v1.ReleaseChannel releaseChannel_; - /** - * - * - *
-   * Release channel configuration. If left unspecified on cluster creation and
-   * a version is specified, the cluster is enrolled in the most mature release
-   * channel where the version is available (first checking STABLE, then
-   * REGULAR, and finally RAPID). Otherwise, if no release channel
-   * configuration and no version is specified, the cluster is enrolled in the
-   * REGULAR channel with its default version.
-   * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - * - * @return Whether the releaseChannel field is set. - */ - @java.lang.Override - public boolean hasReleaseChannel() { - return ((bitField0_ & 0x00040000) != 0); - } - /** - * - * - *
-   * Release channel configuration. If left unspecified on cluster creation and
-   * a version is specified, the cluster is enrolled in the most mature release
-   * channel where the version is available (first checking STABLE, then
-   * REGULAR, and finally RAPID). Otherwise, if no release channel
-   * configuration and no version is specified, the cluster is enrolled in the
-   * REGULAR channel with its default version.
-   * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - * - * @return The releaseChannel. - */ - @java.lang.Override - public com.google.container.v1.ReleaseChannel getReleaseChannel() { - return releaseChannel_ == null - ? com.google.container.v1.ReleaseChannel.getDefaultInstance() - : releaseChannel_; - } - /** - * - * - *
-   * Release channel configuration. If left unspecified on cluster creation and
-   * a version is specified, the cluster is enrolled in the most mature release
-   * channel where the version is available (first checking STABLE, then
-   * REGULAR, and finally RAPID). Otherwise, if no release channel
-   * configuration and no version is specified, the cluster is enrolled in the
-   * REGULAR channel with its default version.
-   * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - */ - @java.lang.Override - public com.google.container.v1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder() { - return releaseChannel_ == null - ? com.google.container.v1.ReleaseChannel.getDefaultInstance() - : releaseChannel_; - } - - public static final int WORKLOAD_IDENTITY_CONFIG_FIELD_NUMBER = 43; - private com.google.container.v1.WorkloadIdentityConfig workloadIdentityConfig_; - /** - * - * - *
-   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-   * policies.
-   * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - * - * @return Whether the workloadIdentityConfig field is set. - */ - @java.lang.Override - public boolean hasWorkloadIdentityConfig() { - return ((bitField0_ & 0x00080000) != 0); - } - /** - * - * - *
-   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-   * policies.
-   * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - * - * @return The workloadIdentityConfig. - */ - @java.lang.Override - public com.google.container.v1.WorkloadIdentityConfig getWorkloadIdentityConfig() { - return workloadIdentityConfig_ == null - ? com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance() - : workloadIdentityConfig_; - } - /** - * - * - *
-   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-   * policies.
-   * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - */ - @java.lang.Override - public com.google.container.v1.WorkloadIdentityConfigOrBuilder - getWorkloadIdentityConfigOrBuilder() { - return workloadIdentityConfig_ == null - ? com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance() - : workloadIdentityConfig_; - } - - public static final int MESH_CERTIFICATES_FIELD_NUMBER = 67; - private com.google.container.v1.MeshCertificates meshCertificates_; - /** - * - * - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1.MeshCertificates mesh_certificates = 67; - * - * @return Whether the meshCertificates field is set. - */ - @java.lang.Override - public boolean hasMeshCertificates() { - return ((bitField0_ & 0x00100000) != 0); - } - /** - * - * - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1.MeshCertificates mesh_certificates = 67; - * - * @return The meshCertificates. - */ - @java.lang.Override - public com.google.container.v1.MeshCertificates getMeshCertificates() { - return meshCertificates_ == null - ? com.google.container.v1.MeshCertificates.getDefaultInstance() - : meshCertificates_; - } - /** - * - * - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1.MeshCertificates mesh_certificates = 67; - */ - @java.lang.Override - public com.google.container.v1.MeshCertificatesOrBuilder getMeshCertificatesOrBuilder() { - return meshCertificates_ == null - ? com.google.container.v1.MeshCertificates.getDefaultInstance() - : meshCertificates_; - } - - public static final int COST_MANAGEMENT_CONFIG_FIELD_NUMBER = 45; - private com.google.container.v1.CostManagementConfig costManagementConfig_; - /** - * - * - *
-   * Configuration for the fine-grained cost management feature.
-   * 
- * - * .google.container.v1.CostManagementConfig cost_management_config = 45; - * - * @return Whether the costManagementConfig field is set. - */ - @java.lang.Override - public boolean hasCostManagementConfig() { - return ((bitField0_ & 0x00200000) != 0); - } - /** - * - * - *
-   * Configuration for the fine-grained cost management feature.
-   * 
- * - * .google.container.v1.CostManagementConfig cost_management_config = 45; - * - * @return The costManagementConfig. - */ - @java.lang.Override - public com.google.container.v1.CostManagementConfig getCostManagementConfig() { - return costManagementConfig_ == null - ? com.google.container.v1.CostManagementConfig.getDefaultInstance() - : costManagementConfig_; - } - /** - * - * - *
-   * Configuration for the fine-grained cost management feature.
-   * 
- * - * .google.container.v1.CostManagementConfig cost_management_config = 45; - */ - @java.lang.Override - public com.google.container.v1.CostManagementConfigOrBuilder getCostManagementConfigOrBuilder() { - return costManagementConfig_ == null - ? com.google.container.v1.CostManagementConfig.getDefaultInstance() - : costManagementConfig_; - } - - public static final int NOTIFICATION_CONFIG_FIELD_NUMBER = 49; - private com.google.container.v1.NotificationConfig notificationConfig_; - /** - * - * - *
-   * Notification configuration of the cluster.
-   * 
- * - * .google.container.v1.NotificationConfig notification_config = 49; - * - * @return Whether the notificationConfig field is set. - */ - @java.lang.Override - public boolean hasNotificationConfig() { - return ((bitField0_ & 0x00400000) != 0); - } - /** - * - * - *
-   * Notification configuration of the cluster.
-   * 
- * - * .google.container.v1.NotificationConfig notification_config = 49; - * - * @return The notificationConfig. - */ - @java.lang.Override - public com.google.container.v1.NotificationConfig getNotificationConfig() { - return notificationConfig_ == null - ? com.google.container.v1.NotificationConfig.getDefaultInstance() - : notificationConfig_; - } - /** - * - * - *
-   * Notification configuration of the cluster.
-   * 
- * - * .google.container.v1.NotificationConfig notification_config = 49; - */ - @java.lang.Override - public com.google.container.v1.NotificationConfigOrBuilder getNotificationConfigOrBuilder() { - return notificationConfig_ == null - ? com.google.container.v1.NotificationConfig.getDefaultInstance() - : notificationConfig_; - } - - public static final int CONFIDENTIAL_NODES_FIELD_NUMBER = 50; - private com.google.container.v1.ConfidentialNodes confidentialNodes_; - /** - * - * - *
-   * Configuration of Confidential Nodes.
-   * All the nodes in the cluster will be Confidential VM once enabled.
-   * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 50; - * - * @return Whether the confidentialNodes field is set. - */ - @java.lang.Override - public boolean hasConfidentialNodes() { - return ((bitField0_ & 0x00800000) != 0); - } - /** - * - * - *
-   * Configuration of Confidential Nodes.
-   * All the nodes in the cluster will be Confidential VM once enabled.
-   * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 50; - * - * @return The confidentialNodes. - */ - @java.lang.Override - public com.google.container.v1.ConfidentialNodes getConfidentialNodes() { - return confidentialNodes_ == null - ? com.google.container.v1.ConfidentialNodes.getDefaultInstance() - : confidentialNodes_; - } - /** - * - * - *
-   * Configuration of Confidential Nodes.
-   * All the nodes in the cluster will be Confidential VM once enabled.
-   * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 50; - */ - @java.lang.Override - public com.google.container.v1.ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder() { - return confidentialNodes_ == null - ? com.google.container.v1.ConfidentialNodes.getDefaultInstance() - : confidentialNodes_; - } - - public static final int IDENTITY_SERVICE_CONFIG_FIELD_NUMBER = 54; - private com.google.container.v1.IdentityServiceConfig identityServiceConfig_; - /** - * - * - *
-   * Configuration for Identity Service component.
-   * 
- * - * .google.container.v1.IdentityServiceConfig identity_service_config = 54; - * - * @return Whether the identityServiceConfig field is set. - */ - @java.lang.Override - public boolean hasIdentityServiceConfig() { - return ((bitField0_ & 0x01000000) != 0); - } - /** - * - * - *
-   * Configuration for Identity Service component.
-   * 
- * - * .google.container.v1.IdentityServiceConfig identity_service_config = 54; - * - * @return The identityServiceConfig. - */ - @java.lang.Override - public com.google.container.v1.IdentityServiceConfig getIdentityServiceConfig() { - return identityServiceConfig_ == null - ? com.google.container.v1.IdentityServiceConfig.getDefaultInstance() - : identityServiceConfig_; - } - /** - * - * - *
-   * Configuration for Identity Service component.
-   * 
- * - * .google.container.v1.IdentityServiceConfig identity_service_config = 54; - */ - @java.lang.Override - public com.google.container.v1.IdentityServiceConfigOrBuilder - getIdentityServiceConfigOrBuilder() { - return identityServiceConfig_ == null - ? com.google.container.v1.IdentityServiceConfig.getDefaultInstance() - : identityServiceConfig_; - } - - public static final int SELF_LINK_FIELD_NUMBER = 100; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1853 - * @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]; - * - * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1853 - * @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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object currentNodeVersion_ = ""; - /** - * - * - *
-   * [Output only] Deprecated, use
-   * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
-   * instead. The current version of the node software components. If they are
-   * currently at multiple versions because they're in the process of being
-   * upgraded, this reflects the minimum version of all nodes.
-   * 
- * - * string current_node_version = 105 [deprecated = true]; - * - * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1886 - * @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
-   * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
-   * instead. The current version of the node software components. If they are
-   * currently at multiple versions because they're in the process of being
-   * upgraded, this reflects the minimum version of all nodes.
-   * 
- * - * string current_node_version = 105 [deprecated = true]; - * - * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1886 - * @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; - - @SuppressWarnings("serial") - 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_ = 0; - /** - * - * - *
-   * [Output only] The current status of this cluster.
-   * 
- * - * .google.container.v1.Cluster.Status status = 107; - * - * @return The enum numeric value on the wire for status. - */ - @java.lang.Override - public int getStatusValue() { - return status_; - } - /** - * - * - *
-   * [Output only] The current status of this cluster.
-   * 
- * - * .google.container.v1.Cluster.Status status = 107; - * - * @return The status. - */ - @java.lang.Override - public com.google.container.v1.Cluster.Status getStatus() { - com.google.container.v1.Cluster.Status result = - com.google.container.v1.Cluster.Status.forNumber(status_); - return result == null ? com.google.container.v1.Cluster.Status.UNRECOGNIZED : result; - } - - public static final int STATUS_MESSAGE_FIELD_NUMBER = 108; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=1898 - * @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]; - * - * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=1898 - * @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_ = 0; - /** - * - * - *
-   * [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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList instanceGroupUrls_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * Deprecated. Use node_pools.instance_group_urls.
-   * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * - * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1914 - * @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]; - * - * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1914 - * @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]; - * - * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1914 - * @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]; - * - * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1914 - * @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_ = 0; - /** - * - * - *
-   * [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]; - * - * @deprecated google.container.v1.Cluster.current_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=1918 - * @return The currentNodeCount. - */ - @java.lang.Override - @java.lang.Deprecated - public int getCurrentNodeCount() { - return currentNodeCount_; - } - - public static final int EXPIRE_TIME_FIELD_NUMBER = 113; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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_ = false; - /** - * - * - *
-   * Enable the ability to use Cloud TPUs in this cluster.
-   * 
- * - * bool enable_tpu = 115; - * - * @return The enableTpu. - */ - @java.lang.Override - public boolean getEnableTpu() { - return enableTpu_; - } - - public static final int TPU_IPV4_CIDR_BLOCK_FIELD_NUMBER = 116; - - @SuppressWarnings("serial") - 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 CONDITIONS_FIELD_NUMBER = 118; - - @SuppressWarnings("serial") - private java.util.List conditions_; - /** - * - * - *
-   * Which conditions caused the current cluster state.
-   * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - @java.lang.Override - public java.util.List getConditionsList() { - return conditions_; - } - /** - * - * - *
-   * Which conditions caused the current cluster state.
-   * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - @java.lang.Override - public java.util.List - getConditionsOrBuilderList() { - return conditions_; - } - /** - * - * - *
-   * Which conditions caused the current cluster state.
-   * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - @java.lang.Override - public int getConditionsCount() { - return conditions_.size(); - } - /** - * - * - *
-   * Which conditions caused the current cluster state.
-   * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - @java.lang.Override - public com.google.container.v1.StatusCondition getConditions(int index) { - return conditions_.get(index); - } - /** - * - * - *
-   * Which conditions caused the current cluster state.
-   * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - @java.lang.Override - public com.google.container.v1.StatusConditionOrBuilder getConditionsOrBuilder(int index) { - return conditions_.get(index); - } - - public static final int AUTOPILOT_FIELD_NUMBER = 128; - private com.google.container.v1.Autopilot autopilot_; - /** - * - * - *
-   * Autopilot configuration for the cluster.
-   * 
- * - * .google.container.v1.Autopilot autopilot = 128; - * - * @return Whether the autopilot field is set. - */ - @java.lang.Override - public boolean hasAutopilot() { - return ((bitField0_ & 0x02000000) != 0); - } - /** - * - * - *
-   * Autopilot configuration for the cluster.
-   * 
- * - * .google.container.v1.Autopilot autopilot = 128; - * - * @return The autopilot. - */ - @java.lang.Override - public com.google.container.v1.Autopilot getAutopilot() { - return autopilot_ == null ? com.google.container.v1.Autopilot.getDefaultInstance() : autopilot_; - } - /** - * - * - *
-   * Autopilot configuration for the cluster.
-   * 
- * - * .google.container.v1.Autopilot autopilot = 128; - */ - @java.lang.Override - public com.google.container.v1.AutopilotOrBuilder getAutopilotOrBuilder() { - return autopilot_ == null ? com.google.container.v1.Autopilot.getDefaultInstance() : autopilot_; - } - - public static final int ID_FIELD_NUMBER = 129; - - @SuppressWarnings("serial") - private volatile java.lang.Object id_ = ""; - /** - * - * - *
-   * Output only. Unique id for the cluster.
-   * 
- * - * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. Unique id for the cluster.
-   * 
- * - * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_POOL_DEFAULTS_FIELD_NUMBER = 131; - private com.google.container.v1.NodePoolDefaults nodePoolDefaults_; - /** - * - * - *
-   * Default NodePool settings for the entire cluster. These settings are
-   * overridden if specified on the specific NodePool object.
-   * 
- * - * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; - * - * @return Whether the nodePoolDefaults field is set. - */ - @java.lang.Override - public boolean hasNodePoolDefaults() { - return ((bitField0_ & 0x04000000) != 0); - } - /** - * - * - *
-   * Default NodePool settings for the entire cluster. These settings are
-   * overridden if specified on the specific NodePool object.
-   * 
- * - * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; - * - * @return The nodePoolDefaults. - */ - @java.lang.Override - public com.google.container.v1.NodePoolDefaults getNodePoolDefaults() { - return nodePoolDefaults_ == null - ? com.google.container.v1.NodePoolDefaults.getDefaultInstance() - : nodePoolDefaults_; - } - /** - * - * - *
-   * Default NodePool settings for the entire cluster. These settings are
-   * overridden if specified on the specific NodePool object.
-   * 
- * - * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; - */ - @java.lang.Override - public com.google.container.v1.NodePoolDefaultsOrBuilder getNodePoolDefaultsOrBuilder() { - return nodePoolDefaults_ == null - ? com.google.container.v1.NodePoolDefaults.getDefaultInstance() - : nodePoolDefaults_; - } - - public static final int LOGGING_CONFIG_FIELD_NUMBER = 132; - private com.google.container.v1.LoggingConfig loggingConfig_; - /** - * - * - *
-   * Logging configuration for the cluster.
-   * 
- * - * .google.container.v1.LoggingConfig logging_config = 132; - * - * @return Whether the loggingConfig field is set. - */ - @java.lang.Override - public boolean hasLoggingConfig() { - return ((bitField0_ & 0x08000000) != 0); - } - /** - * - * - *
-   * Logging configuration for the cluster.
-   * 
- * - * .google.container.v1.LoggingConfig logging_config = 132; - * - * @return The loggingConfig. - */ - @java.lang.Override - public com.google.container.v1.LoggingConfig getLoggingConfig() { - return loggingConfig_ == null - ? com.google.container.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } - /** - * - * - *
-   * Logging configuration for the cluster.
-   * 
- * - * .google.container.v1.LoggingConfig logging_config = 132; - */ - @java.lang.Override - public com.google.container.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { - return loggingConfig_ == null - ? com.google.container.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } - - public static final int MONITORING_CONFIG_FIELD_NUMBER = 133; - private com.google.container.v1.MonitoringConfig monitoringConfig_; - /** - * - * - *
-   * Monitoring configuration for the cluster.
-   * 
- * - * .google.container.v1.MonitoringConfig monitoring_config = 133; - * - * @return Whether the monitoringConfig field is set. - */ - @java.lang.Override - public boolean hasMonitoringConfig() { - return ((bitField0_ & 0x10000000) != 0); - } - /** - * - * - *
-   * Monitoring configuration for the cluster.
-   * 
- * - * .google.container.v1.MonitoringConfig monitoring_config = 133; - * - * @return The monitoringConfig. - */ - @java.lang.Override - public com.google.container.v1.MonitoringConfig getMonitoringConfig() { - return monitoringConfig_ == null - ? com.google.container.v1.MonitoringConfig.getDefaultInstance() - : monitoringConfig_; - } - /** - * - * - *
-   * Monitoring configuration for the cluster.
-   * 
- * - * .google.container.v1.MonitoringConfig monitoring_config = 133; - */ - @java.lang.Override - public com.google.container.v1.MonitoringConfigOrBuilder getMonitoringConfigOrBuilder() { - return monitoringConfig_ == null - ? com.google.container.v1.MonitoringConfig.getDefaultInstance() - : monitoringConfig_; - } - - public static final int NODE_POOL_AUTO_CONFIG_FIELD_NUMBER = 136; - private com.google.container.v1.NodePoolAutoConfig nodePoolAutoConfig_; - /** - * - * - *
-   * Node pool configs that apply to all auto-provisioned node pools
-   * in autopilot clusters and node auto-provisioning enabled clusters.
-   * 
- * - * .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; - * - * @return Whether the nodePoolAutoConfig field is set. - */ - @java.lang.Override - public boolean hasNodePoolAutoConfig() { - return ((bitField0_ & 0x20000000) != 0); - } - /** - * - * - *
-   * Node pool configs that apply to all auto-provisioned node pools
-   * in autopilot clusters and node auto-provisioning enabled clusters.
-   * 
- * - * .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; - * - * @return The nodePoolAutoConfig. - */ - @java.lang.Override - public com.google.container.v1.NodePoolAutoConfig getNodePoolAutoConfig() { - return nodePoolAutoConfig_ == null - ? com.google.container.v1.NodePoolAutoConfig.getDefaultInstance() - : nodePoolAutoConfig_; - } - /** - * - * - *
-   * Node pool configs that apply to all auto-provisioned node pools
-   * in autopilot clusters and node auto-provisioning enabled clusters.
-   * 
- * - * .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; - */ - @java.lang.Override - public com.google.container.v1.NodePoolAutoConfigOrBuilder getNodePoolAutoConfigOrBuilder() { - return nodePoolAutoConfig_ == null - ? com.google.container.v1.NodePoolAutoConfig.getDefaultInstance() - : nodePoolAutoConfig_; - } - - public static final int ETAG_FIELD_NUMBER = 139; - - @SuppressWarnings("serial") - private volatile java.lang.Object etag_ = ""; - /** - * - * - *
-   * This checksum is computed by the server based on the value of cluster
-   * fields, and may be sent on update requests to ensure the client has an
-   * up-to-date value before proceeding.
-   * 
- * - * string etag = 139; - * - * @return The etag. - */ - @java.lang.Override - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } - } - /** - * - * - *
-   * This checksum is computed by the server based on the value of cluster
-   * fields, and may be sent on update requests to ensure the client has an
-   * up-to-date value before proceeding.
-   * 
- * - * string etag = 139; - * - * @return The bytes for etag. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FLEET_FIELD_NUMBER = 140; - private com.google.container.v1.Fleet fleet_; - /** - * - * - *
-   * Fleet information for the cluster.
-   * 
- * - * .google.container.v1.Fleet fleet = 140; - * - * @return Whether the fleet field is set. - */ - @java.lang.Override - public boolean hasFleet() { - return ((bitField0_ & 0x40000000) != 0); - } - /** - * - * - *
-   * Fleet information for the cluster.
-   * 
- * - * .google.container.v1.Fleet fleet = 140; - * - * @return The fleet. - */ - @java.lang.Override - public com.google.container.v1.Fleet getFleet() { - return fleet_ == null ? com.google.container.v1.Fleet.getDefaultInstance() : fleet_; - } - /** - * - * - *
-   * Fleet information for the cluster.
-   * 
- * - * .google.container.v1.Fleet fleet = 140; - */ - @java.lang.Override - public com.google.container.v1.FleetOrBuilder getFleetOrBuilder() { - return fleet_ == null ? com.google.container.v1.Fleet.getDefaultInstance() : fleet_; - } - - public static final int SECURITY_POSTURE_CONFIG_FIELD_NUMBER = 145; - private com.google.container.v1.SecurityPostureConfig securityPostureConfig_; - /** - * - * - *
-   * Enable/Disable Security Posture API features for the cluster.
-   * 
- * - * .google.container.v1.SecurityPostureConfig security_posture_config = 145; - * - * @return Whether the securityPostureConfig field is set. - */ - @java.lang.Override - public boolean hasSecurityPostureConfig() { - return ((bitField0_ & 0x80000000) != 0); - } - /** - * - * - *
-   * Enable/Disable Security Posture API features for the cluster.
-   * 
- * - * .google.container.v1.SecurityPostureConfig security_posture_config = 145; - * - * @return The securityPostureConfig. - */ - @java.lang.Override - public com.google.container.v1.SecurityPostureConfig getSecurityPostureConfig() { - return securityPostureConfig_ == null - ? com.google.container.v1.SecurityPostureConfig.getDefaultInstance() - : securityPostureConfig_; - } - /** - * - * - *
-   * Enable/Disable Security Posture API features for the cluster.
-   * 
- * - * .google.container.v1.SecurityPostureConfig security_posture_config = 145; - */ - @java.lang.Override - public com.google.container.v1.SecurityPostureConfigOrBuilder - getSecurityPostureConfigOrBuilder() { - return securityPostureConfig_ == null - ? com.google.container.v1.SecurityPostureConfig.getDefaultInstance() - : securityPostureConfig_; - } - - public static final int ENABLE_K8S_BETA_APIS_FIELD_NUMBER = 143; - private com.google.container.v1.K8sBetaAPIConfig enableK8SBetaApis_; - /** - * - * - *
-   * Beta APIs Config
-   * 
- * - * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; - * - * @return Whether the enableK8sBetaApis field is set. - */ - @java.lang.Override - public boolean hasEnableK8SBetaApis() { - return ((bitField1_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Beta APIs Config
-   * 
- * - * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; - * - * @return The enableK8sBetaApis. - */ - @java.lang.Override - public com.google.container.v1.K8sBetaAPIConfig getEnableK8SBetaApis() { - return enableK8SBetaApis_ == null - ? com.google.container.v1.K8sBetaAPIConfig.getDefaultInstance() - : enableK8SBetaApis_; - } - /** - * - * - *
-   * Beta APIs Config
-   * 
- * - * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; - */ - @java.lang.Override - public com.google.container.v1.K8sBetaAPIConfigOrBuilder getEnableK8SBetaApisOrBuilder() { - return enableK8SBetaApis_ == null - ? com.google.container.v1.K8sBetaAPIConfig.getDefaultInstance() - : enableK8SBetaApis_; - } - - public static final int ENTERPRISE_CONFIG_FIELD_NUMBER = 149; - private com.google.container.v1.EnterpriseConfig enterpriseConfig_; - /** - * - * - *
-   * GKE Enterprise Configuration.
-   * 
- * - * .google.container.v1.EnterpriseConfig enterprise_config = 149; - * - * @return Whether the enterpriseConfig field is set. - */ - @java.lang.Override - public boolean hasEnterpriseConfig() { - return ((bitField1_ & 0x00000002) != 0); - } - /** - * - * - *
-   * GKE Enterprise Configuration.
-   * 
- * - * .google.container.v1.EnterpriseConfig enterprise_config = 149; - * - * @return The enterpriseConfig. - */ - @java.lang.Override - public com.google.container.v1.EnterpriseConfig getEnterpriseConfig() { - return enterpriseConfig_ == null - ? com.google.container.v1.EnterpriseConfig.getDefaultInstance() - : enterpriseConfig_; - } - /** - * - * - *
-   * GKE Enterprise Configuration.
-   * 
- * - * .google.container.v1.EnterpriseConfig enterprise_config = 149; - */ - @java.lang.Override - public com.google.container.v1.EnterpriseConfigOrBuilder getEnterpriseConfigOrBuilder() { - return enterpriseConfig_ == null - ? com.google.container.v1.EnterpriseConfig.getDefaultInstance() - : enterpriseConfig_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); - } - if (initialNodeCount_ != 0) { - output.writeInt32(3, initialNodeCount_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(4, getNodeConfig()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(5, getMasterAuth()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loggingService_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, loggingService_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(monitoringService_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, monitoringService_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, network_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterIpv4Cidr_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, clusterIpv4Cidr_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(10, getAddonsConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, subnetwork_); - } - for (int i = 0; i < nodePools_.size(); i++) { - output.writeMessage(12, nodePools_.get(i)); - } - for (int i = 0; i < locations_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, locations_.getRaw(i)); - } - if (enableKubernetesAlpha_ != false) { - output.writeBool(14, enableKubernetesAlpha_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetResourceLabels(), ResourceLabelsDefaultEntryHolder.defaultEntry, 15); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(labelFingerprint_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 16, labelFingerprint_); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(18, getLegacyAbac()); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeMessage(19, getNetworkPolicy()); - } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeMessage(20, getIpAllocationPolicy()); - } - if (((bitField0_ & 0x00000040) != 0)) { - output.writeMessage(22, getMasterAuthorizedNetworksConfig()); - } - if (((bitField0_ & 0x00000080) != 0)) { - output.writeMessage(23, getMaintenancePolicy()); - } - if (((bitField0_ & 0x00000100) != 0)) { - output.writeMessage(24, getBinaryAuthorization()); - } - if (((bitField0_ & 0x00000200) != 0)) { - output.writeMessage(26, getAutoscaling()); - } - if (((bitField0_ & 0x00000400) != 0)) { - output.writeMessage(27, getNetworkConfig()); - } - if (((bitField0_ & 0x00000800) != 0)) { - output.writeMessage(30, getDefaultMaxPodsConstraint()); - } - if (((bitField0_ & 0x00001000) != 0)) { - output.writeMessage(33, getResourceUsageExportConfig()); - } - if (((bitField0_ & 0x00002000) != 0)) { - output.writeMessage(34, getAuthenticatorGroupsConfig()); - } - if (((bitField0_ & 0x00004000) != 0)) { - output.writeMessage(37, getPrivateClusterConfig()); - } - if (((bitField0_ & 0x00008000) != 0)) { - output.writeMessage(38, getDatabaseEncryption()); - } - if (((bitField0_ & 0x00010000) != 0)) { - output.writeMessage(39, getVerticalPodAutoscaling()); - } - if (((bitField0_ & 0x00020000) != 0)) { - output.writeMessage(40, getShieldedNodes()); - } - if (((bitField0_ & 0x00040000) != 0)) { - output.writeMessage(41, getReleaseChannel()); - } - if (((bitField0_ & 0x00080000) != 0)) { - output.writeMessage(43, getWorkloadIdentityConfig()); - } - if (((bitField0_ & 0x00200000) != 0)) { - output.writeMessage(45, getCostManagementConfig()); - } - if (((bitField0_ & 0x00400000) != 0)) { - output.writeMessage(49, getNotificationConfig()); - } - if (((bitField0_ & 0x00800000) != 0)) { - output.writeMessage(50, getConfidentialNodes()); - } - if (((bitField0_ & 0x01000000) != 0)) { - output.writeMessage(54, getIdentityServiceConfig()); - } - if (((bitField0_ & 0x00100000) != 0)) { - output.writeMessage(67, getMeshCertificates()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 100, selfLink_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 101, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 102, endpoint_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(initialClusterVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 103, initialClusterVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentMasterVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 104, currentMasterVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentNodeVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 105, currentNodeVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(createTime_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 106, createTime_); - } - if (status_ != com.google.container.v1.Cluster.Status.STATUS_UNSPECIFIED.getNumber()) { - output.writeEnum(107, status_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 108, statusMessage_); - } - if (nodeIpv4CidrSize_ != 0) { - output.writeInt32(109, nodeIpv4CidrSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesIpv4Cidr_)) { - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expireTime_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 113, expireTime_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 114, location_); - } - if (enableTpu_ != false) { - output.writeBool(115, enableTpu_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tpuIpv4CidrBlock_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 116, tpuIpv4CidrBlock_); - } - for (int i = 0; i < conditions_.size(); i++) { - output.writeMessage(118, conditions_.get(i)); - } - if (((bitField0_ & 0x02000000) != 0)) { - output.writeMessage(128, getAutopilot()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 129, id_); - } - if (((bitField0_ & 0x04000000) != 0)) { - output.writeMessage(131, getNodePoolDefaults()); - } - if (((bitField0_ & 0x08000000) != 0)) { - output.writeMessage(132, getLoggingConfig()); - } - if (((bitField0_ & 0x10000000) != 0)) { - output.writeMessage(133, getMonitoringConfig()); - } - if (((bitField0_ & 0x20000000) != 0)) { - output.writeMessage(136, getNodePoolAutoConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 139, etag_); - } - if (((bitField0_ & 0x40000000) != 0)) { - output.writeMessage(140, getFleet()); - } - if (((bitField1_ & 0x00000001) != 0)) { - output.writeMessage(143, getEnableK8SBetaApis()); - } - if (((bitField0_ & 0x80000000) != 0)) { - output.writeMessage(145, getSecurityPostureConfig()); - } - if (((bitField1_ & 0x00000002) != 0)) { - output.writeMessage(149, getEnterpriseConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); - } - if (initialNodeCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, initialNodeCount_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getNodeConfig()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getMasterAuth()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loggingService_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, loggingService_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(monitoringService_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, monitoringService_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, network_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterIpv4Cidr_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, clusterIpv4Cidr_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getAddonsConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(labelFingerprint_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, labelFingerprint_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getLegacyAbac()); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getNetworkPolicy()); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getIpAllocationPolicy()); - } - if (((bitField0_ & 0x00000040) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 22, getMasterAuthorizedNetworksConfig()); - } - if (((bitField0_ & 0x00000080) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getMaintenancePolicy()); - } - if (((bitField0_ & 0x00000100) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(24, getBinaryAuthorization()); - } - if (((bitField0_ & 0x00000200) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, getAutoscaling()); - } - if (((bitField0_ & 0x00000400) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, getNetworkConfig()); - } - if (((bitField0_ & 0x00000800) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 30, getDefaultMaxPodsConstraint()); - } - if (((bitField0_ & 0x00001000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 33, getResourceUsageExportConfig()); - } - if (((bitField0_ & 0x00002000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 34, getAuthenticatorGroupsConfig()); - } - if (((bitField0_ & 0x00004000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(37, getPrivateClusterConfig()); - } - if (((bitField0_ & 0x00008000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(38, getDatabaseEncryption()); - } - if (((bitField0_ & 0x00010000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(39, getVerticalPodAutoscaling()); - } - if (((bitField0_ & 0x00020000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(40, getShieldedNodes()); - } - if (((bitField0_ & 0x00040000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(41, getReleaseChannel()); - } - if (((bitField0_ & 0x00080000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(43, getWorkloadIdentityConfig()); - } - if (((bitField0_ & 0x00200000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(45, getCostManagementConfig()); - } - if (((bitField0_ & 0x00400000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(49, getNotificationConfig()); - } - if (((bitField0_ & 0x00800000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(50, getConfidentialNodes()); - } - if (((bitField0_ & 0x01000000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(54, getIdentityServiceConfig()); - } - if (((bitField0_ & 0x00100000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(67, getMeshCertificates()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, selfLink_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(101, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(102, endpoint_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(initialClusterVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(103, initialClusterVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentMasterVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(104, currentMasterVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentNodeVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(105, currentNodeVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(createTime_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(106, createTime_); - } - if (status_ != com.google.container.v1.Cluster.Status.STATUS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(107, status_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(108, statusMessage_); - } - if (nodeIpv4CidrSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(109, nodeIpv4CidrSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesIpv4Cidr_)) { - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expireTime_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(113, expireTime_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(114, location_); - } - if (enableTpu_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(115, enableTpu_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tpuIpv4CidrBlock_)) { - 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 (((bitField0_ & 0x02000000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(128, getAutopilot()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(129, id_); - } - if (((bitField0_ & 0x04000000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(131, getNodePoolDefaults()); - } - if (((bitField0_ & 0x08000000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(132, getLoggingConfig()); - } - if (((bitField0_ & 0x10000000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(133, getMonitoringConfig()); - } - if (((bitField0_ & 0x20000000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(136, getNodePoolAutoConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(139, etag_); - } - if (((bitField0_ & 0x40000000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(140, getFleet()); - } - if (((bitField1_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(143, getEnableK8SBetaApis()); - } - if (((bitField0_ & 0x80000000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(145, getSecurityPostureConfig()); - } - if (((bitField1_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(149, getEnterpriseConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.Cluster)) { - return super.equals(obj); - } - com.google.container.v1.Cluster other = (com.google.container.v1.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 (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 (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 (hasDatabaseEncryption() != other.hasDatabaseEncryption()) return false; - if (hasDatabaseEncryption()) { - if (!getDatabaseEncryption().equals(other.getDatabaseEncryption())) 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 (hasMeshCertificates() != other.hasMeshCertificates()) return false; - if (hasMeshCertificates()) { - if (!getMeshCertificates().equals(other.getMeshCertificates())) return false; - } - if (hasCostManagementConfig() != other.hasCostManagementConfig()) return false; - if (hasCostManagementConfig()) { - if (!getCostManagementConfig().equals(other.getCostManagementConfig())) 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 (hasIdentityServiceConfig() != other.hasIdentityServiceConfig()) return false; - if (hasIdentityServiceConfig()) { - if (!getIdentityServiceConfig().equals(other.getIdentityServiceConfig())) 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 (!getConditionsList().equals(other.getConditionsList())) return false; - if (hasAutopilot() != other.hasAutopilot()) return false; - if (hasAutopilot()) { - if (!getAutopilot().equals(other.getAutopilot())) return false; - } - if (!getId().equals(other.getId())) return false; - if (hasNodePoolDefaults() != other.hasNodePoolDefaults()) return false; - if (hasNodePoolDefaults()) { - if (!getNodePoolDefaults().equals(other.getNodePoolDefaults())) return false; - } - if (hasLoggingConfig() != other.hasLoggingConfig()) return false; - if (hasLoggingConfig()) { - if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; - } - if (hasMonitoringConfig() != other.hasMonitoringConfig()) return false; - if (hasMonitoringConfig()) { - if (!getMonitoringConfig().equals(other.getMonitoringConfig())) return false; - } - if (hasNodePoolAutoConfig() != other.hasNodePoolAutoConfig()) return false; - if (hasNodePoolAutoConfig()) { - if (!getNodePoolAutoConfig().equals(other.getNodePoolAutoConfig())) return false; - } - if (!getEtag().equals(other.getEtag())) return false; - if (hasFleet() != other.hasFleet()) return false; - if (hasFleet()) { - if (!getFleet().equals(other.getFleet())) return false; - } - if (hasSecurityPostureConfig() != other.hasSecurityPostureConfig()) return false; - if (hasSecurityPostureConfig()) { - if (!getSecurityPostureConfig().equals(other.getSecurityPostureConfig())) return false; - } - if (hasEnableK8SBetaApis() != other.hasEnableK8SBetaApis()) return false; - if (hasEnableK8SBetaApis()) { - if (!getEnableK8SBetaApis().equals(other.getEnableK8SBetaApis())) return false; - } - if (hasEnterpriseConfig() != other.hasEnterpriseConfig()) return false; - if (hasEnterpriseConfig()) { - if (!getEnterpriseConfig().equals(other.getEnterpriseConfig())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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 (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(); - } - 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 (hasDatabaseEncryption()) { - hash = (37 * hash) + DATABASE_ENCRYPTION_FIELD_NUMBER; - hash = (53 * hash) + getDatabaseEncryption().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 (hasMeshCertificates()) { - hash = (37 * hash) + MESH_CERTIFICATES_FIELD_NUMBER; - hash = (53 * hash) + getMeshCertificates().hashCode(); - } - if (hasCostManagementConfig()) { - hash = (37 * hash) + COST_MANAGEMENT_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getCostManagementConfig().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(); - } - if (hasIdentityServiceConfig()) { - hash = (37 * hash) + IDENTITY_SERVICE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getIdentityServiceConfig().hashCode(); - } - hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; - hash = (53 * hash) + getSelfLink().hashCode(); - hash = (37 * hash) + ZONE_FIELD_NUMBER; - hash = (53 * hash) + getZone().hashCode(); - hash = (37 * hash) + ENDPOINT_FIELD_NUMBER; - hash = (53 * hash) + getEndpoint().hashCode(); - hash = (37 * hash) + INITIAL_CLUSTER_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getInitialClusterVersion().hashCode(); - hash = (37 * hash) + CURRENT_MASTER_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getCurrentMasterVersion().hashCode(); - hash = (37 * hash) + CURRENT_NODE_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getCurrentNodeVersion().hashCode(); - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + status_; - hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getStatusMessage().hashCode(); - hash = (37 * hash) + NODE_IPV4_CIDR_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getNodeIpv4CidrSize(); - hash = (37 * hash) + SERVICES_IPV4_CIDR_FIELD_NUMBER; - hash = (53 * hash) + getServicesIpv4Cidr().hashCode(); - if (getInstanceGroupUrlsCount() > 0) { - hash = (37 * hash) + INSTANCE_GROUP_URLS_FIELD_NUMBER; - hash = (53 * hash) + getInstanceGroupUrlsList().hashCode(); - } - hash = (37 * hash) + CURRENT_NODE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getCurrentNodeCount(); - hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getExpireTime().hashCode(); - hash = (37 * hash) + LOCATION_FIELD_NUMBER; - hash = (53 * hash) + getLocation().hashCode(); - hash = (37 * hash) + ENABLE_TPU_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableTpu()); - hash = (37 * hash) + TPU_IPV4_CIDR_BLOCK_FIELD_NUMBER; - hash = (53 * hash) + getTpuIpv4CidrBlock().hashCode(); - if (getConditionsCount() > 0) { - hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; - hash = (53 * hash) + getConditionsList().hashCode(); - } - if (hasAutopilot()) { - hash = (37 * hash) + AUTOPILOT_FIELD_NUMBER; - hash = (53 * hash) + getAutopilot().hashCode(); - } - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - if (hasNodePoolDefaults()) { - hash = (37 * hash) + NODE_POOL_DEFAULTS_FIELD_NUMBER; - hash = (53 * hash) + getNodePoolDefaults().hashCode(); - } - if (hasLoggingConfig()) { - hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getLoggingConfig().hashCode(); - } - if (hasMonitoringConfig()) { - hash = (37 * hash) + MONITORING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getMonitoringConfig().hashCode(); - } - if (hasNodePoolAutoConfig()) { - hash = (37 * hash) + NODE_POOL_AUTO_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getNodePoolAutoConfig().hashCode(); - } - hash = (37 * hash) + ETAG_FIELD_NUMBER; - hash = (53 * hash) + getEtag().hashCode(); - if (hasFleet()) { - hash = (37 * hash) + FLEET_FIELD_NUMBER; - hash = (53 * hash) + getFleet().hashCode(); - } - if (hasSecurityPostureConfig()) { - hash = (37 * hash) + SECURITY_POSTURE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getSecurityPostureConfig().hashCode(); - } - if (hasEnableK8SBetaApis()) { - hash = (37 * hash) + ENABLE_K8S_BETA_APIS_FIELD_NUMBER; - hash = (53 * hash) + getEnableK8SBetaApis().hashCode(); - } - if (hasEnterpriseConfig()) { - hash = (37 * hash) + ENTERPRISE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getEnterpriseConfig().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.Cluster parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.Cluster parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.Cluster parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.Cluster parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.Cluster parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.Cluster parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.Cluster parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.Cluster} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.Cluster) - com.google.container.v1.ClusterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_Cluster_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 15: - return internalGetResourceLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - 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.v1.ClusterServiceProto - .internal_static_google_container_v1_Cluster_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.Cluster.class, com.google.container.v1.Cluster.Builder.class); - } - - // Construct using com.google.container.v1.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) { - getNodeConfigFieldBuilder(); - getMasterAuthFieldBuilder(); - getAddonsConfigFieldBuilder(); - getNodePoolsFieldBuilder(); - getLegacyAbacFieldBuilder(); - getNetworkPolicyFieldBuilder(); - getIpAllocationPolicyFieldBuilder(); - getMasterAuthorizedNetworksConfigFieldBuilder(); - getMaintenancePolicyFieldBuilder(); - getBinaryAuthorizationFieldBuilder(); - getAutoscalingFieldBuilder(); - getNetworkConfigFieldBuilder(); - getDefaultMaxPodsConstraintFieldBuilder(); - getResourceUsageExportConfigFieldBuilder(); - getAuthenticatorGroupsConfigFieldBuilder(); - getPrivateClusterConfigFieldBuilder(); - getDatabaseEncryptionFieldBuilder(); - getVerticalPodAutoscalingFieldBuilder(); - getShieldedNodesFieldBuilder(); - getReleaseChannelFieldBuilder(); - getWorkloadIdentityConfigFieldBuilder(); - getMeshCertificatesFieldBuilder(); - getCostManagementConfigFieldBuilder(); - getNotificationConfigFieldBuilder(); - getConfidentialNodesFieldBuilder(); - getIdentityServiceConfigFieldBuilder(); - getConditionsFieldBuilder(); - getAutopilotFieldBuilder(); - getNodePoolDefaultsFieldBuilder(); - getLoggingConfigFieldBuilder(); - getMonitoringConfigFieldBuilder(); - getNodePoolAutoConfigFieldBuilder(); - getFleetFieldBuilder(); - getSecurityPostureConfigFieldBuilder(); - getEnableK8SBetaApisFieldBuilder(); - getEnterpriseConfigFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - bitField1_ = 0; - bitField2_ = 0; - name_ = ""; - description_ = ""; - initialNodeCount_ = 0; - nodeConfig_ = null; - if (nodeConfigBuilder_ != null) { - nodeConfigBuilder_.dispose(); - nodeConfigBuilder_ = null; - } - masterAuth_ = null; - if (masterAuthBuilder_ != null) { - masterAuthBuilder_.dispose(); - masterAuthBuilder_ = null; - } - loggingService_ = ""; - monitoringService_ = ""; - network_ = ""; - clusterIpv4Cidr_ = ""; - addonsConfig_ = null; - if (addonsConfigBuilder_ != null) { - addonsConfigBuilder_.dispose(); - addonsConfigBuilder_ = null; - } - subnetwork_ = ""; - if (nodePoolsBuilder_ == null) { - nodePools_ = java.util.Collections.emptyList(); - } else { - nodePools_ = null; - nodePoolsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000800); - locations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - enableKubernetesAlpha_ = false; - internalGetMutableResourceLabels().clear(); - labelFingerprint_ = ""; - legacyAbac_ = null; - if (legacyAbacBuilder_ != null) { - legacyAbacBuilder_.dispose(); - legacyAbacBuilder_ = null; - } - networkPolicy_ = null; - if (networkPolicyBuilder_ != null) { - networkPolicyBuilder_.dispose(); - networkPolicyBuilder_ = null; - } - ipAllocationPolicy_ = null; - if (ipAllocationPolicyBuilder_ != null) { - ipAllocationPolicyBuilder_.dispose(); - ipAllocationPolicyBuilder_ = null; - } - masterAuthorizedNetworksConfig_ = null; - if (masterAuthorizedNetworksConfigBuilder_ != null) { - masterAuthorizedNetworksConfigBuilder_.dispose(); - masterAuthorizedNetworksConfigBuilder_ = null; - } - maintenancePolicy_ = null; - if (maintenancePolicyBuilder_ != null) { - maintenancePolicyBuilder_.dispose(); - maintenancePolicyBuilder_ = null; - } - binaryAuthorization_ = null; - if (binaryAuthorizationBuilder_ != null) { - binaryAuthorizationBuilder_.dispose(); - binaryAuthorizationBuilder_ = null; - } - autoscaling_ = null; - if (autoscalingBuilder_ != null) { - autoscalingBuilder_.dispose(); - autoscalingBuilder_ = null; - } - networkConfig_ = null; - if (networkConfigBuilder_ != null) { - networkConfigBuilder_.dispose(); - networkConfigBuilder_ = null; - } - defaultMaxPodsConstraint_ = null; - if (defaultMaxPodsConstraintBuilder_ != null) { - defaultMaxPodsConstraintBuilder_.dispose(); - defaultMaxPodsConstraintBuilder_ = null; - } - resourceUsageExportConfig_ = null; - if (resourceUsageExportConfigBuilder_ != null) { - resourceUsageExportConfigBuilder_.dispose(); - resourceUsageExportConfigBuilder_ = null; - } - authenticatorGroupsConfig_ = null; - if (authenticatorGroupsConfigBuilder_ != null) { - authenticatorGroupsConfigBuilder_.dispose(); - authenticatorGroupsConfigBuilder_ = null; - } - privateClusterConfig_ = null; - if (privateClusterConfigBuilder_ != null) { - privateClusterConfigBuilder_.dispose(); - privateClusterConfigBuilder_ = null; - } - databaseEncryption_ = null; - if (databaseEncryptionBuilder_ != null) { - databaseEncryptionBuilder_.dispose(); - databaseEncryptionBuilder_ = null; - } - verticalPodAutoscaling_ = null; - if (verticalPodAutoscalingBuilder_ != null) { - verticalPodAutoscalingBuilder_.dispose(); - verticalPodAutoscalingBuilder_ = null; - } - shieldedNodes_ = null; - if (shieldedNodesBuilder_ != null) { - shieldedNodesBuilder_.dispose(); - shieldedNodesBuilder_ = null; - } - releaseChannel_ = null; - if (releaseChannelBuilder_ != null) { - releaseChannelBuilder_.dispose(); - releaseChannelBuilder_ = null; - } - workloadIdentityConfig_ = null; - if (workloadIdentityConfigBuilder_ != null) { - workloadIdentityConfigBuilder_.dispose(); - workloadIdentityConfigBuilder_ = null; - } - meshCertificates_ = null; - if (meshCertificatesBuilder_ != null) { - meshCertificatesBuilder_.dispose(); - meshCertificatesBuilder_ = null; - } - costManagementConfig_ = null; - if (costManagementConfigBuilder_ != null) { - costManagementConfigBuilder_.dispose(); - costManagementConfigBuilder_ = null; - } - notificationConfig_ = null; - if (notificationConfigBuilder_ != null) { - notificationConfigBuilder_.dispose(); - notificationConfigBuilder_ = null; - } - confidentialNodes_ = null; - if (confidentialNodesBuilder_ != null) { - confidentialNodesBuilder_.dispose(); - confidentialNodesBuilder_ = null; - } - identityServiceConfig_ = null; - if (identityServiceConfigBuilder_ != null) { - identityServiceConfigBuilder_.dispose(); - identityServiceConfigBuilder_ = null; - } - selfLink_ = ""; - zone_ = ""; - endpoint_ = ""; - initialClusterVersion_ = ""; - currentMasterVersion_ = ""; - currentNodeVersion_ = ""; - createTime_ = ""; - status_ = 0; - statusMessage_ = ""; - nodeIpv4CidrSize_ = 0; - servicesIpv4Cidr_ = ""; - instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - currentNodeCount_ = 0; - expireTime_ = ""; - location_ = ""; - enableTpu_ = false; - tpuIpv4CidrBlock_ = ""; - if (conditionsBuilder_ == null) { - conditions_ = java.util.Collections.emptyList(); - } else { - conditions_ = null; - conditionsBuilder_.clear(); - } - bitField1_ = (bitField1_ & ~0x00800000); - autopilot_ = null; - if (autopilotBuilder_ != null) { - autopilotBuilder_.dispose(); - autopilotBuilder_ = null; - } - id_ = ""; - nodePoolDefaults_ = null; - if (nodePoolDefaultsBuilder_ != null) { - nodePoolDefaultsBuilder_.dispose(); - nodePoolDefaultsBuilder_ = null; - } - loggingConfig_ = null; - if (loggingConfigBuilder_ != null) { - loggingConfigBuilder_.dispose(); - loggingConfigBuilder_ = null; - } - monitoringConfig_ = null; - if (monitoringConfigBuilder_ != null) { - monitoringConfigBuilder_.dispose(); - monitoringConfigBuilder_ = null; - } - nodePoolAutoConfig_ = null; - if (nodePoolAutoConfigBuilder_ != null) { - nodePoolAutoConfigBuilder_.dispose(); - nodePoolAutoConfigBuilder_ = null; - } - etag_ = ""; - fleet_ = null; - if (fleetBuilder_ != null) { - fleetBuilder_.dispose(); - fleetBuilder_ = null; - } - securityPostureConfig_ = null; - if (securityPostureConfigBuilder_ != null) { - securityPostureConfigBuilder_.dispose(); - securityPostureConfigBuilder_ = null; - } - enableK8SBetaApis_ = null; - if (enableK8SBetaApisBuilder_ != null) { - enableK8SBetaApisBuilder_.dispose(); - enableK8SBetaApisBuilder_ = null; - } - enterpriseConfig_ = null; - if (enterpriseConfigBuilder_ != null) { - enterpriseConfigBuilder_.dispose(); - enterpriseConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_Cluster_descriptor; - } - - @java.lang.Override - public com.google.container.v1.Cluster getDefaultInstanceForType() { - return com.google.container.v1.Cluster.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.Cluster build() { - com.google.container.v1.Cluster result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.Cluster buildPartial() { - com.google.container.v1.Cluster result = new com.google.container.v1.Cluster(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - if (bitField1_ != 0) { - buildPartial1(result); - } - if (bitField2_ != 0) { - buildPartial2(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.container.v1.Cluster result) { - if (nodePoolsBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0)) { - nodePools_ = java.util.Collections.unmodifiableList(nodePools_); - bitField0_ = (bitField0_ & ~0x00000800); - } - result.nodePools_ = nodePools_; - } else { - result.nodePools_ = nodePoolsBuilder_.build(); - } - if (conditionsBuilder_ == null) { - if (((bitField1_ & 0x00800000) != 0)) { - conditions_ = java.util.Collections.unmodifiableList(conditions_); - bitField1_ = (bitField1_ & ~0x00800000); - } - result.conditions_ = conditions_; - } else { - result.conditions_ = conditionsBuilder_.build(); - } - } - - private void buildPartial0(com.google.container.v1.Cluster result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.description_ = description_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.initialNodeCount_ = initialNodeCount_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.nodeConfig_ = nodeConfigBuilder_ == null ? nodeConfig_ : nodeConfigBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.masterAuth_ = masterAuthBuilder_ == null ? masterAuth_ : masterAuthBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.loggingService_ = loggingService_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.monitoringService_ = monitoringService_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.network_ = network_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.clusterIpv4Cidr_ = clusterIpv4Cidr_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.addonsConfig_ = - addonsConfigBuilder_ == null ? addonsConfig_ : addonsConfigBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.subnetwork_ = subnetwork_; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - locations_.makeImmutable(); - result.locations_ = locations_; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.enableKubernetesAlpha_ = enableKubernetesAlpha_; - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.resourceLabels_ = internalGetResourceLabels(); - result.resourceLabels_.makeImmutable(); - } - if (((from_bitField0_ & 0x00008000) != 0)) { - result.labelFingerprint_ = labelFingerprint_; - } - if (((from_bitField0_ & 0x00010000) != 0)) { - result.legacyAbac_ = legacyAbacBuilder_ == null ? legacyAbac_ : legacyAbacBuilder_.build(); - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00020000) != 0)) { - result.networkPolicy_ = - networkPolicyBuilder_ == null ? networkPolicy_ : networkPolicyBuilder_.build(); - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00040000) != 0)) { - result.ipAllocationPolicy_ = - ipAllocationPolicyBuilder_ == null - ? ipAllocationPolicy_ - : ipAllocationPolicyBuilder_.build(); - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00080000) != 0)) { - result.masterAuthorizedNetworksConfig_ = - masterAuthorizedNetworksConfigBuilder_ == null - ? masterAuthorizedNetworksConfig_ - : masterAuthorizedNetworksConfigBuilder_.build(); - to_bitField0_ |= 0x00000040; - } - if (((from_bitField0_ & 0x00100000) != 0)) { - result.maintenancePolicy_ = - maintenancePolicyBuilder_ == null - ? maintenancePolicy_ - : maintenancePolicyBuilder_.build(); - to_bitField0_ |= 0x00000080; - } - if (((from_bitField0_ & 0x00200000) != 0)) { - result.binaryAuthorization_ = - binaryAuthorizationBuilder_ == null - ? binaryAuthorization_ - : binaryAuthorizationBuilder_.build(); - to_bitField0_ |= 0x00000100; - } - if (((from_bitField0_ & 0x00400000) != 0)) { - result.autoscaling_ = - autoscalingBuilder_ == null ? autoscaling_ : autoscalingBuilder_.build(); - to_bitField0_ |= 0x00000200; - } - if (((from_bitField0_ & 0x00800000) != 0)) { - result.networkConfig_ = - networkConfigBuilder_ == null ? networkConfig_ : networkConfigBuilder_.build(); - to_bitField0_ |= 0x00000400; - } - if (((from_bitField0_ & 0x01000000) != 0)) { - result.defaultMaxPodsConstraint_ = - defaultMaxPodsConstraintBuilder_ == null - ? defaultMaxPodsConstraint_ - : defaultMaxPodsConstraintBuilder_.build(); - to_bitField0_ |= 0x00000800; - } - if (((from_bitField0_ & 0x02000000) != 0)) { - result.resourceUsageExportConfig_ = - resourceUsageExportConfigBuilder_ == null - ? resourceUsageExportConfig_ - : resourceUsageExportConfigBuilder_.build(); - to_bitField0_ |= 0x00001000; - } - if (((from_bitField0_ & 0x04000000) != 0)) { - result.authenticatorGroupsConfig_ = - authenticatorGroupsConfigBuilder_ == null - ? authenticatorGroupsConfig_ - : authenticatorGroupsConfigBuilder_.build(); - to_bitField0_ |= 0x00002000; - } - if (((from_bitField0_ & 0x08000000) != 0)) { - result.privateClusterConfig_ = - privateClusterConfigBuilder_ == null - ? privateClusterConfig_ - : privateClusterConfigBuilder_.build(); - to_bitField0_ |= 0x00004000; - } - if (((from_bitField0_ & 0x10000000) != 0)) { - result.databaseEncryption_ = - databaseEncryptionBuilder_ == null - ? databaseEncryption_ - : databaseEncryptionBuilder_.build(); - to_bitField0_ |= 0x00008000; - } - if (((from_bitField0_ & 0x20000000) != 0)) { - result.verticalPodAutoscaling_ = - verticalPodAutoscalingBuilder_ == null - ? verticalPodAutoscaling_ - : verticalPodAutoscalingBuilder_.build(); - to_bitField0_ |= 0x00010000; - } - if (((from_bitField0_ & 0x40000000) != 0)) { - result.shieldedNodes_ = - shieldedNodesBuilder_ == null ? shieldedNodes_ : shieldedNodesBuilder_.build(); - to_bitField0_ |= 0x00020000; - } - if (((from_bitField0_ & 0x80000000) != 0)) { - result.releaseChannel_ = - releaseChannelBuilder_ == null ? releaseChannel_ : releaseChannelBuilder_.build(); - to_bitField0_ |= 0x00040000; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartial1(com.google.container.v1.Cluster result) { - int from_bitField1_ = bitField1_; - int to_bitField0_ = 0; - if (((from_bitField1_ & 0x00000001) != 0)) { - result.workloadIdentityConfig_ = - workloadIdentityConfigBuilder_ == null - ? workloadIdentityConfig_ - : workloadIdentityConfigBuilder_.build(); - to_bitField0_ |= 0x00080000; - } - if (((from_bitField1_ & 0x00000002) != 0)) { - result.meshCertificates_ = - meshCertificatesBuilder_ == null ? meshCertificates_ : meshCertificatesBuilder_.build(); - to_bitField0_ |= 0x00100000; - } - if (((from_bitField1_ & 0x00000004) != 0)) { - result.costManagementConfig_ = - costManagementConfigBuilder_ == null - ? costManagementConfig_ - : costManagementConfigBuilder_.build(); - to_bitField0_ |= 0x00200000; - } - if (((from_bitField1_ & 0x00000008) != 0)) { - result.notificationConfig_ = - notificationConfigBuilder_ == null - ? notificationConfig_ - : notificationConfigBuilder_.build(); - to_bitField0_ |= 0x00400000; - } - if (((from_bitField1_ & 0x00000010) != 0)) { - result.confidentialNodes_ = - confidentialNodesBuilder_ == null - ? confidentialNodes_ - : confidentialNodesBuilder_.build(); - to_bitField0_ |= 0x00800000; - } - if (((from_bitField1_ & 0x00000020) != 0)) { - result.identityServiceConfig_ = - identityServiceConfigBuilder_ == null - ? identityServiceConfig_ - : identityServiceConfigBuilder_.build(); - to_bitField0_ |= 0x01000000; - } - if (((from_bitField1_ & 0x00000040) != 0)) { - result.selfLink_ = selfLink_; - } - if (((from_bitField1_ & 0x00000080) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField1_ & 0x00000100) != 0)) { - result.endpoint_ = endpoint_; - } - if (((from_bitField1_ & 0x00000200) != 0)) { - result.initialClusterVersion_ = initialClusterVersion_; - } - if (((from_bitField1_ & 0x00000400) != 0)) { - result.currentMasterVersion_ = currentMasterVersion_; - } - if (((from_bitField1_ & 0x00000800) != 0)) { - result.currentNodeVersion_ = currentNodeVersion_; - } - if (((from_bitField1_ & 0x00001000) != 0)) { - result.createTime_ = createTime_; - } - if (((from_bitField1_ & 0x00002000) != 0)) { - result.status_ = status_; - } - if (((from_bitField1_ & 0x00004000) != 0)) { - result.statusMessage_ = statusMessage_; - } - if (((from_bitField1_ & 0x00008000) != 0)) { - result.nodeIpv4CidrSize_ = nodeIpv4CidrSize_; - } - if (((from_bitField1_ & 0x00010000) != 0)) { - result.servicesIpv4Cidr_ = servicesIpv4Cidr_; - } - if (((from_bitField1_ & 0x00020000) != 0)) { - instanceGroupUrls_.makeImmutable(); - result.instanceGroupUrls_ = instanceGroupUrls_; - } - if (((from_bitField1_ & 0x00040000) != 0)) { - result.currentNodeCount_ = currentNodeCount_; - } - if (((from_bitField1_ & 0x00080000) != 0)) { - result.expireTime_ = expireTime_; - } - if (((from_bitField1_ & 0x00100000) != 0)) { - result.location_ = location_; - } - if (((from_bitField1_ & 0x00200000) != 0)) { - result.enableTpu_ = enableTpu_; - } - if (((from_bitField1_ & 0x00400000) != 0)) { - result.tpuIpv4CidrBlock_ = tpuIpv4CidrBlock_; - } - if (((from_bitField1_ & 0x01000000) != 0)) { - result.autopilot_ = autopilotBuilder_ == null ? autopilot_ : autopilotBuilder_.build(); - to_bitField0_ |= 0x02000000; - } - if (((from_bitField1_ & 0x02000000) != 0)) { - result.id_ = id_; - } - if (((from_bitField1_ & 0x04000000) != 0)) { - result.nodePoolDefaults_ = - nodePoolDefaultsBuilder_ == null ? nodePoolDefaults_ : nodePoolDefaultsBuilder_.build(); - to_bitField0_ |= 0x04000000; - } - if (((from_bitField1_ & 0x08000000) != 0)) { - result.loggingConfig_ = - loggingConfigBuilder_ == null ? loggingConfig_ : loggingConfigBuilder_.build(); - to_bitField0_ |= 0x08000000; - } - if (((from_bitField1_ & 0x10000000) != 0)) { - result.monitoringConfig_ = - monitoringConfigBuilder_ == null ? monitoringConfig_ : monitoringConfigBuilder_.build(); - to_bitField0_ |= 0x10000000; - } - if (((from_bitField1_ & 0x20000000) != 0)) { - result.nodePoolAutoConfig_ = - nodePoolAutoConfigBuilder_ == null - ? nodePoolAutoConfig_ - : nodePoolAutoConfigBuilder_.build(); - to_bitField0_ |= 0x20000000; - } - if (((from_bitField1_ & 0x40000000) != 0)) { - result.etag_ = etag_; - } - if (((from_bitField1_ & 0x80000000) != 0)) { - result.fleet_ = fleetBuilder_ == null ? fleet_ : fleetBuilder_.build(); - to_bitField0_ |= 0x40000000; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartial2(com.google.container.v1.Cluster result) { - int from_bitField2_ = bitField2_; - int to_bitField0_ = 0; - if (((from_bitField2_ & 0x00000001) != 0)) { - result.securityPostureConfig_ = - securityPostureConfigBuilder_ == null - ? securityPostureConfig_ - : securityPostureConfigBuilder_.build(); - to_bitField0_ |= 0x80000000; - } - int to_bitField1_ = 0; - if (((from_bitField2_ & 0x00000002) != 0)) { - result.enableK8SBetaApis_ = - enableK8SBetaApisBuilder_ == null - ? enableK8SBetaApis_ - : enableK8SBetaApisBuilder_.build(); - to_bitField1_ |= 0x00000001; - } - if (((from_bitField2_ & 0x00000004) != 0)) { - result.enterpriseConfig_ = - enterpriseConfigBuilder_ == null ? enterpriseConfig_ : enterpriseConfigBuilder_.build(); - to_bitField1_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - result.bitField1_ |= to_bitField1_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.Cluster) { - return mergeFrom((com.google.container.v1.Cluster) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.Cluster other) { - if (other == com.google.container.v1.Cluster.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000002; - 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_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (!other.getMonitoringService().isEmpty()) { - monitoringService_ = other.monitoringService_; - bitField0_ |= 0x00000040; - onChanged(); - } - if (!other.getNetwork().isEmpty()) { - network_ = other.network_; - bitField0_ |= 0x00000080; - onChanged(); - } - if (!other.getClusterIpv4Cidr().isEmpty()) { - clusterIpv4Cidr_ = other.clusterIpv4Cidr_; - bitField0_ |= 0x00000100; - onChanged(); - } - if (other.hasAddonsConfig()) { - mergeAddonsConfig(other.getAddonsConfig()); - } - if (!other.getSubnetwork().isEmpty()) { - subnetwork_ = other.subnetwork_; - bitField0_ |= 0x00000400; - onChanged(); - } - if (nodePoolsBuilder_ == null) { - if (!other.nodePools_.isEmpty()) { - if (nodePools_.isEmpty()) { - nodePools_ = other.nodePools_; - bitField0_ = (bitField0_ & ~0x00000800); - } else { - ensureNodePoolsIsMutable(); - nodePools_.addAll(other.nodePools_); - } - onChanged(); - } - } else { - if (!other.nodePools_.isEmpty()) { - if (nodePoolsBuilder_.isEmpty()) { - nodePoolsBuilder_.dispose(); - nodePoolsBuilder_ = null; - nodePools_ = other.nodePools_; - bitField0_ = (bitField0_ & ~0x00000800); - nodePoolsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNodePoolsFieldBuilder() - : null; - } else { - nodePoolsBuilder_.addAllMessages(other.nodePools_); - } - } - } - if (!other.locations_.isEmpty()) { - if (locations_.isEmpty()) { - locations_ = other.locations_; - bitField0_ |= 0x00001000; - } else { - ensureLocationsIsMutable(); - locations_.addAll(other.locations_); - } - onChanged(); - } - if (other.getEnableKubernetesAlpha() != false) { - setEnableKubernetesAlpha(other.getEnableKubernetesAlpha()); - } - internalGetMutableResourceLabels().mergeFrom(other.internalGetResourceLabels()); - bitField0_ |= 0x00004000; - if (!other.getLabelFingerprint().isEmpty()) { - labelFingerprint_ = other.labelFingerprint_; - bitField0_ |= 0x00008000; - 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.hasAutoscaling()) { - mergeAutoscaling(other.getAutoscaling()); - } - if (other.hasNetworkConfig()) { - mergeNetworkConfig(other.getNetworkConfig()); - } - 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.hasDatabaseEncryption()) { - mergeDatabaseEncryption(other.getDatabaseEncryption()); - } - 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.hasMeshCertificates()) { - mergeMeshCertificates(other.getMeshCertificates()); - } - if (other.hasCostManagementConfig()) { - mergeCostManagementConfig(other.getCostManagementConfig()); - } - if (other.hasNotificationConfig()) { - mergeNotificationConfig(other.getNotificationConfig()); - } - if (other.hasConfidentialNodes()) { - mergeConfidentialNodes(other.getConfidentialNodes()); - } - if (other.hasIdentityServiceConfig()) { - mergeIdentityServiceConfig(other.getIdentityServiceConfig()); - } - if (!other.getSelfLink().isEmpty()) { - selfLink_ = other.selfLink_; - bitField1_ |= 0x00000040; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField1_ |= 0x00000080; - onChanged(); - } - if (!other.getEndpoint().isEmpty()) { - endpoint_ = other.endpoint_; - bitField1_ |= 0x00000100; - onChanged(); - } - if (!other.getInitialClusterVersion().isEmpty()) { - initialClusterVersion_ = other.initialClusterVersion_; - bitField1_ |= 0x00000200; - onChanged(); - } - if (!other.getCurrentMasterVersion().isEmpty()) { - currentMasterVersion_ = other.currentMasterVersion_; - bitField1_ |= 0x00000400; - onChanged(); - } - if (!other.getCurrentNodeVersion().isEmpty()) { - currentNodeVersion_ = other.currentNodeVersion_; - bitField1_ |= 0x00000800; - onChanged(); - } - if (!other.getCreateTime().isEmpty()) { - createTime_ = other.createTime_; - bitField1_ |= 0x00001000; - onChanged(); - } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); - } - if (!other.getStatusMessage().isEmpty()) { - statusMessage_ = other.statusMessage_; - bitField1_ |= 0x00004000; - onChanged(); - } - if (other.getNodeIpv4CidrSize() != 0) { - setNodeIpv4CidrSize(other.getNodeIpv4CidrSize()); - } - if (!other.getServicesIpv4Cidr().isEmpty()) { - servicesIpv4Cidr_ = other.servicesIpv4Cidr_; - bitField1_ |= 0x00010000; - onChanged(); - } - if (!other.instanceGroupUrls_.isEmpty()) { - if (instanceGroupUrls_.isEmpty()) { - instanceGroupUrls_ = other.instanceGroupUrls_; - bitField1_ |= 0x00020000; - } else { - ensureInstanceGroupUrlsIsMutable(); - instanceGroupUrls_.addAll(other.instanceGroupUrls_); - } - onChanged(); - } - if (other.getCurrentNodeCount() != 0) { - setCurrentNodeCount(other.getCurrentNodeCount()); - } - if (!other.getExpireTime().isEmpty()) { - expireTime_ = other.expireTime_; - bitField1_ |= 0x00080000; - onChanged(); - } - if (!other.getLocation().isEmpty()) { - location_ = other.location_; - bitField1_ |= 0x00100000; - onChanged(); - } - if (other.getEnableTpu() != false) { - setEnableTpu(other.getEnableTpu()); - } - if (!other.getTpuIpv4CidrBlock().isEmpty()) { - tpuIpv4CidrBlock_ = other.tpuIpv4CidrBlock_; - bitField1_ |= 0x00400000; - onChanged(); - } - if (conditionsBuilder_ == null) { - if (!other.conditions_.isEmpty()) { - if (conditions_.isEmpty()) { - conditions_ = other.conditions_; - bitField1_ = (bitField1_ & ~0x00800000); - } else { - ensureConditionsIsMutable(); - conditions_.addAll(other.conditions_); - } - onChanged(); - } - } else { - if (!other.conditions_.isEmpty()) { - if (conditionsBuilder_.isEmpty()) { - conditionsBuilder_.dispose(); - conditionsBuilder_ = null; - conditions_ = other.conditions_; - bitField1_ = (bitField1_ & ~0x00800000); - conditionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getConditionsFieldBuilder() - : null; - } else { - conditionsBuilder_.addAllMessages(other.conditions_); - } - } - } - if (other.hasAutopilot()) { - mergeAutopilot(other.getAutopilot()); - } - if (!other.getId().isEmpty()) { - id_ = other.id_; - bitField1_ |= 0x02000000; - onChanged(); - } - if (other.hasNodePoolDefaults()) { - mergeNodePoolDefaults(other.getNodePoolDefaults()); - } - if (other.hasLoggingConfig()) { - mergeLoggingConfig(other.getLoggingConfig()); - } - if (other.hasMonitoringConfig()) { - mergeMonitoringConfig(other.getMonitoringConfig()); - } - if (other.hasNodePoolAutoConfig()) { - mergeNodePoolAutoConfig(other.getNodePoolAutoConfig()); - } - if (!other.getEtag().isEmpty()) { - etag_ = other.etag_; - bitField1_ |= 0x40000000; - onChanged(); - } - if (other.hasFleet()) { - mergeFleet(other.getFleet()); - } - if (other.hasSecurityPostureConfig()) { - mergeSecurityPostureConfig(other.getSecurityPostureConfig()); - } - if (other.hasEnableK8SBetaApis()) { - mergeEnableK8SBetaApis(other.getEnableK8SBetaApis()); - } - if (other.hasEnterpriseConfig()) { - mergeEnterpriseConfig(other.getEnterpriseConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - initialNodeCount_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - input.readMessage(getNodeConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage(getMasterAuthFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - loggingService_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - monitoringService_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: - { - network_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 74: - { - clusterIpv4Cidr_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 74 - case 82: - { - input.readMessage(getAddonsConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 82 - case 90: - { - subnetwork_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; - break; - } // case 90 - case 98: - { - com.google.container.v1.NodePool m = - input.readMessage(com.google.container.v1.NodePool.parser(), extensionRegistry); - if (nodePoolsBuilder_ == null) { - ensureNodePoolsIsMutable(); - nodePools_.add(m); - } else { - nodePoolsBuilder_.addMessage(m); - } - break; - } // case 98 - case 106: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureLocationsIsMutable(); - locations_.add(s); - break; - } // case 106 - case 112: - { - enableKubernetesAlpha_ = input.readBool(); - bitField0_ |= 0x00002000; - break; - } // case 112 - case 122: - { - com.google.protobuf.MapEntry resourceLabels__ = - input.readMessage( - ResourceLabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableResourceLabels() - .getMutableMap() - .put(resourceLabels__.getKey(), resourceLabels__.getValue()); - bitField0_ |= 0x00004000; - break; - } // case 122 - case 130: - { - labelFingerprint_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00008000; - break; - } // case 130 - case 146: - { - input.readMessage(getLegacyAbacFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; - break; - } // case 146 - case 154: - { - input.readMessage(getNetworkPolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00020000; - break; - } // case 154 - case 162: - { - input.readMessage( - getIpAllocationPolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00040000; - break; - } // case 162 - case 178: - { - input.readMessage( - getMasterAuthorizedNetworksConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00080000; - break; - } // case 178 - case 186: - { - input.readMessage( - getMaintenancePolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00100000; - break; - } // case 186 - case 194: - { - input.readMessage( - getBinaryAuthorizationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00200000; - break; - } // case 194 - case 210: - { - input.readMessage(getAutoscalingFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00400000; - break; - } // case 210 - case 218: - { - input.readMessage(getNetworkConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00800000; - break; - } // case 218 - case 242: - { - input.readMessage( - getDefaultMaxPodsConstraintFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x01000000; - break; - } // case 242 - case 266: - { - input.readMessage( - getResourceUsageExportConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x02000000; - break; - } // case 266 - case 274: - { - input.readMessage( - getAuthenticatorGroupsConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x04000000; - break; - } // case 274 - case 298: - { - input.readMessage( - getPrivateClusterConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x08000000; - break; - } // case 298 - case 306: - { - input.readMessage( - getDatabaseEncryptionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x10000000; - break; - } // case 306 - case 314: - { - input.readMessage( - getVerticalPodAutoscalingFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x20000000; - break; - } // case 314 - case 322: - { - input.readMessage(getShieldedNodesFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x40000000; - break; - } // case 322 - case 330: - { - input.readMessage(getReleaseChannelFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x80000000; - break; - } // case 330 - case 346: - { - input.readMessage( - getWorkloadIdentityConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000001; - break; - } // case 346 - case 362: - { - input.readMessage( - getCostManagementConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000004; - break; - } // case 362 - case 394: - { - input.readMessage( - getNotificationConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000008; - break; - } // case 394 - case 402: - { - input.readMessage( - getConfidentialNodesFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000010; - break; - } // case 402 - case 434: - { - input.readMessage( - getIdentityServiceConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000020; - break; - } // case 434 - case 538: - { - input.readMessage( - getMeshCertificatesFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000002; - break; - } // case 538 - case 802: - { - selfLink_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00000040; - break; - } // case 802 - case 810: - { - zone_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00000080; - break; - } // case 810 - case 818: - { - endpoint_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00000100; - break; - } // case 818 - case 826: - { - initialClusterVersion_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00000200; - break; - } // case 826 - case 834: - { - currentMasterVersion_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00000400; - break; - } // case 834 - case 842: - { - currentNodeVersion_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00000800; - break; - } // case 842 - case 850: - { - createTime_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00001000; - break; - } // case 850 - case 856: - { - status_ = input.readEnum(); - bitField1_ |= 0x00002000; - break; - } // case 856 - case 866: - { - statusMessage_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00004000; - break; - } // case 866 - case 872: - { - nodeIpv4CidrSize_ = input.readInt32(); - bitField1_ |= 0x00008000; - break; - } // case 872 - case 882: - { - servicesIpv4Cidr_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00010000; - break; - } // case 882 - case 890: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureInstanceGroupUrlsIsMutable(); - instanceGroupUrls_.add(s); - break; - } // case 890 - case 896: - { - currentNodeCount_ = input.readInt32(); - bitField1_ |= 0x00040000; - break; - } // case 896 - case 906: - { - expireTime_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00080000; - break; - } // case 906 - case 914: - { - location_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00100000; - break; - } // case 914 - case 920: - { - enableTpu_ = input.readBool(); - bitField1_ |= 0x00200000; - break; - } // case 920 - case 930: - { - tpuIpv4CidrBlock_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00400000; - break; - } // case 930 - case 946: - { - com.google.container.v1.StatusCondition m = - input.readMessage( - com.google.container.v1.StatusCondition.parser(), extensionRegistry); - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - conditions_.add(m); - } else { - conditionsBuilder_.addMessage(m); - } - break; - } // case 946 - case 1026: - { - input.readMessage(getAutopilotFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x01000000; - break; - } // case 1026 - case 1034: - { - id_ = input.readStringRequireUtf8(); - bitField1_ |= 0x02000000; - break; - } // case 1034 - case 1050: - { - input.readMessage( - getNodePoolDefaultsFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x04000000; - break; - } // case 1050 - case 1058: - { - input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x08000000; - break; - } // case 1058 - case 1066: - { - input.readMessage( - getMonitoringConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x10000000; - break; - } // case 1066 - case 1090: - { - input.readMessage( - getNodePoolAutoConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x20000000; - break; - } // case 1090 - case 1114: - { - etag_ = input.readStringRequireUtf8(); - bitField1_ |= 0x40000000; - break; - } // case 1114 - case 1122: - { - input.readMessage(getFleetFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x80000000; - break; - } // case 1122 - case 1146: - { - input.readMessage( - getEnableK8SBetaApisFieldBuilder().getBuilder(), extensionRegistry); - bitField2_ |= 0x00000002; - break; - } // case 1146 - case 1162: - { - input.readMessage( - getSecurityPostureConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField2_ |= 0x00000001; - break; - } // case 1162 - case 1194: - { - input.readMessage( - getEnterpriseConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField2_ |= 0x00000004; - break; - } // case 1194 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - private int bitField1_; - private int bitField2_; - - 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; - bitField0_ |= 0x00000001; - 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(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * An optional description of this cluster.
-     * 
- * - * string description = 2; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - 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]; - * - * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=1669 - * @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]; - * - * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=1669 - * @param value The initialNodeCount to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setInitialNodeCount(int value) { - - initialNodeCount_ = value; - bitField0_ |= 0x00000004; - 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]; - * - * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=1669 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearInitialNodeCount() { - bitField0_ = (bitField0_ & ~0x00000004); - initialNodeCount_ = 0; - onChanged(); - return this; - } - - private com.google.container.v1.NodeConfig nodeConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeConfig, - com.google.container.v1.NodeConfig.Builder, - com.google.container.v1.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.v1.NodeConfig node_config = 4 [deprecated = true]; - * - * @deprecated google.container.v1.Cluster.node_config is deprecated. See - * google/container/v1/cluster_service.proto;l=1682 - * @return Whether the nodeConfig field is set. - */ - @java.lang.Deprecated - public boolean hasNodeConfig() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-     * 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.v1.NodeConfig node_config = 4 [deprecated = true]; - * - * @deprecated google.container.v1.Cluster.node_config is deprecated. See - * google/container/v1/cluster_service.proto;l=1682 - * @return The nodeConfig. - */ - @java.lang.Deprecated - public com.google.container.v1.NodeConfig getNodeConfig() { - if (nodeConfigBuilder_ == null) { - return nodeConfig_ == null - ? com.google.container.v1.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.v1.NodeConfig node_config = 4 [deprecated = true]; - */ - @java.lang.Deprecated - public Builder setNodeConfig(com.google.container.v1.NodeConfig value) { - if (nodeConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - nodeConfig_ = value; - } else { - nodeConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - 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.v1.NodeConfig node_config = 4 [deprecated = true]; - */ - @java.lang.Deprecated - public Builder setNodeConfig(com.google.container.v1.NodeConfig.Builder builderForValue) { - if (nodeConfigBuilder_ == null) { - nodeConfig_ = builderForValue.build(); - } else { - nodeConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - 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.v1.NodeConfig node_config = 4 [deprecated = true]; - */ - @java.lang.Deprecated - public Builder mergeNodeConfig(com.google.container.v1.NodeConfig value) { - if (nodeConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && nodeConfig_ != null - && nodeConfig_ != com.google.container.v1.NodeConfig.getDefaultInstance()) { - getNodeConfigBuilder().mergeFrom(value); - } else { - nodeConfig_ = value; - } - } else { - nodeConfigBuilder_.mergeFrom(value); - } - if (nodeConfig_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - 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.v1.NodeConfig node_config = 4 [deprecated = true]; - */ - @java.lang.Deprecated - public Builder clearNodeConfig() { - bitField0_ = (bitField0_ & ~0x00000008); - nodeConfig_ = null; - if (nodeConfigBuilder_ != null) { - nodeConfigBuilder_.dispose(); - nodeConfigBuilder_ = null; - } - onChanged(); - 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.v1.NodeConfig node_config = 4 [deprecated = true]; - */ - @java.lang.Deprecated - public com.google.container.v1.NodeConfig.Builder getNodeConfigBuilder() { - bitField0_ |= 0x00000008; - 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.v1.NodeConfig node_config = 4 [deprecated = true]; - */ - @java.lang.Deprecated - public com.google.container.v1.NodeConfigOrBuilder getNodeConfigOrBuilder() { - if (nodeConfigBuilder_ != null) { - return nodeConfigBuilder_.getMessageOrBuilder(); - } else { - return nodeConfig_ == null - ? com.google.container.v1.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.v1.NodeConfig node_config = 4 [deprecated = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeConfig, - com.google.container.v1.NodeConfig.Builder, - com.google.container.v1.NodeConfigOrBuilder> - getNodeConfigFieldBuilder() { - if (nodeConfigBuilder_ == null) { - nodeConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeConfig, - com.google.container.v1.NodeConfig.Builder, - com.google.container.v1.NodeConfigOrBuilder>( - getNodeConfig(), getParentForChildren(), isClean()); - nodeConfig_ = null; - } - return nodeConfigBuilder_; - } - - private com.google.container.v1.MasterAuth masterAuth_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MasterAuth, - com.google.container.v1.MasterAuth.Builder, - com.google.container.v1.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.v1.MasterAuth master_auth = 5; - * - * @return Whether the masterAuth field is set. - */ - public boolean hasMasterAuth() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-     * 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.v1.MasterAuth master_auth = 5; - * - * @return The masterAuth. - */ - public com.google.container.v1.MasterAuth getMasterAuth() { - if (masterAuthBuilder_ == null) { - return masterAuth_ == null - ? com.google.container.v1.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.v1.MasterAuth master_auth = 5; - */ - public Builder setMasterAuth(com.google.container.v1.MasterAuth value) { - if (masterAuthBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - masterAuth_ = value; - } else { - masterAuthBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - 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.v1.MasterAuth master_auth = 5; - */ - public Builder setMasterAuth(com.google.container.v1.MasterAuth.Builder builderForValue) { - if (masterAuthBuilder_ == null) { - masterAuth_ = builderForValue.build(); - } else { - masterAuthBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - 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.v1.MasterAuth master_auth = 5; - */ - public Builder mergeMasterAuth(com.google.container.v1.MasterAuth value) { - if (masterAuthBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && masterAuth_ != null - && masterAuth_ != com.google.container.v1.MasterAuth.getDefaultInstance()) { - getMasterAuthBuilder().mergeFrom(value); - } else { - masterAuth_ = value; - } - } else { - masterAuthBuilder_.mergeFrom(value); - } - if (masterAuth_ != null) { - bitField0_ |= 0x00000010; - onChanged(); - } - 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.v1.MasterAuth master_auth = 5; - */ - public Builder clearMasterAuth() { - bitField0_ = (bitField0_ & ~0x00000010); - masterAuth_ = null; - if (masterAuthBuilder_ != null) { - masterAuthBuilder_.dispose(); - masterAuthBuilder_ = null; - } - onChanged(); - 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.v1.MasterAuth master_auth = 5; - */ - public com.google.container.v1.MasterAuth.Builder getMasterAuthBuilder() { - bitField0_ |= 0x00000010; - 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.v1.MasterAuth master_auth = 5; - */ - public com.google.container.v1.MasterAuthOrBuilder getMasterAuthOrBuilder() { - if (masterAuthBuilder_ != null) { - return masterAuthBuilder_.getMessageOrBuilder(); - } else { - return masterAuth_ == null - ? com.google.container.v1.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.v1.MasterAuth master_auth = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MasterAuth, - com.google.container.v1.MasterAuth.Builder, - com.google.container.v1.MasterAuthOrBuilder> - getMasterAuthFieldBuilder() { - if (masterAuthBuilder_ == null) { - masterAuthBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MasterAuth, - com.google.container.v1.MasterAuth.Builder, - com.google.container.v1.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; - bitField0_ |= 0x00000020; - 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(); - bitField0_ = (bitField0_ & ~0x00000020); - 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; - bitField0_ |= 0x00000020; - 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; - bitField0_ |= 0x00000040; - 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(); - bitField0_ = (bitField0_ & ~0x00000040); - 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; - bitField0_ |= 0x00000040; - 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.
-     * 
- * - * 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.
-     * 
- * - * 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.
-     * 
- * - * 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; - bitField0_ |= 0x00000080; - 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.
-     * 
- * - * string network = 8; - * - * @return This builder for chaining. - */ - public Builder clearNetwork() { - network_ = getDefaultInstance().getNetwork(); - bitField0_ = (bitField0_ & ~0x00000080); - 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.
-     * 
- * - * 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; - bitField0_ |= 0x00000080; - 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; - bitField0_ |= 0x00000100; - 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(); - bitField0_ = (bitField0_ & ~0x00000100); - 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; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - - private com.google.container.v1.AddonsConfig addonsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AddonsConfig, - com.google.container.v1.AddonsConfig.Builder, - com.google.container.v1.AddonsConfigOrBuilder> - addonsConfigBuilder_; - /** - * - * - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1.AddonsConfig addons_config = 10; - * - * @return Whether the addonsConfig field is set. - */ - public boolean hasAddonsConfig() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * - * - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1.AddonsConfig addons_config = 10; - * - * @return The addonsConfig. - */ - public com.google.container.v1.AddonsConfig getAddonsConfig() { - if (addonsConfigBuilder_ == null) { - return addonsConfig_ == null - ? com.google.container.v1.AddonsConfig.getDefaultInstance() - : addonsConfig_; - } else { - return addonsConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1.AddonsConfig addons_config = 10; - */ - public Builder setAddonsConfig(com.google.container.v1.AddonsConfig value) { - if (addonsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - addonsConfig_ = value; - } else { - addonsConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * - * - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1.AddonsConfig addons_config = 10; - */ - public Builder setAddonsConfig(com.google.container.v1.AddonsConfig.Builder builderForValue) { - if (addonsConfigBuilder_ == null) { - addonsConfig_ = builderForValue.build(); - } else { - addonsConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * - * - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1.AddonsConfig addons_config = 10; - */ - public Builder mergeAddonsConfig(com.google.container.v1.AddonsConfig value) { - if (addonsConfigBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && addonsConfig_ != null - && addonsConfig_ != com.google.container.v1.AddonsConfig.getDefaultInstance()) { - getAddonsConfigBuilder().mergeFrom(value); - } else { - addonsConfig_ = value; - } - } else { - addonsConfigBuilder_.mergeFrom(value); - } - if (addonsConfig_ != null) { - bitField0_ |= 0x00000200; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1.AddonsConfig addons_config = 10; - */ - public Builder clearAddonsConfig() { - bitField0_ = (bitField0_ & ~0x00000200); - addonsConfig_ = null; - if (addonsConfigBuilder_ != null) { - addonsConfigBuilder_.dispose(); - addonsConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1.AddonsConfig addons_config = 10; - */ - public com.google.container.v1.AddonsConfig.Builder getAddonsConfigBuilder() { - bitField0_ |= 0x00000200; - onChanged(); - return getAddonsConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1.AddonsConfig addons_config = 10; - */ - public com.google.container.v1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() { - if (addonsConfigBuilder_ != null) { - return addonsConfigBuilder_.getMessageOrBuilder(); - } else { - return addonsConfig_ == null - ? com.google.container.v1.AddonsConfig.getDefaultInstance() - : addonsConfig_; - } - } - /** - * - * - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1.AddonsConfig addons_config = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AddonsConfig, - com.google.container.v1.AddonsConfig.Builder, - com.google.container.v1.AddonsConfigOrBuilder> - getAddonsConfigFieldBuilder() { - if (addonsConfigBuilder_ == null) { - addonsConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AddonsConfig, - com.google.container.v1.AddonsConfig.Builder, - com.google.container.v1.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.
-     * 
- * - * 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.
-     * 
- * - * 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.
-     * 
- * - * 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; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the Google Compute Engine
-     * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
-     * the cluster is connected.
-     * 
- * - * string subnetwork = 11; - * - * @return This builder for chaining. - */ - public Builder clearSubnetwork() { - subnetwork_ = getDefaultInstance().getSubnetwork(); - bitField0_ = (bitField0_ & ~0x00000400); - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the Google Compute Engine
-     * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
-     * the cluster is connected.
-     * 
- * - * 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; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - - private java.util.List nodePools_ = - java.util.Collections.emptyList(); - - private void ensureNodePoolsIsMutable() { - if (!((bitField0_ & 0x00000800) != 0)) { - nodePools_ = new java.util.ArrayList(nodePools_); - bitField0_ |= 0x00000800; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.NodePool, - com.google.container.v1.NodePool.Builder, - com.google.container.v1.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.v1.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.v1.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.v1.NodePool node_pools = 12; - */ - public com.google.container.v1.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.v1.NodePool node_pools = 12; - */ - public Builder setNodePools(int index, com.google.container.v1.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.v1.NodePool node_pools = 12; - */ - public Builder setNodePools( - int index, com.google.container.v1.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.v1.NodePool node_pools = 12; - */ - public Builder addNodePools(com.google.container.v1.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.v1.NodePool node_pools = 12; - */ - public Builder addNodePools(int index, com.google.container.v1.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.v1.NodePool node_pools = 12; - */ - public Builder addNodePools(com.google.container.v1.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.v1.NodePool node_pools = 12; - */ - public Builder addNodePools( - int index, com.google.container.v1.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.v1.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.v1.NodePool node_pools = 12; - */ - public Builder clearNodePools() { - if (nodePoolsBuilder_ == null) { - nodePools_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); - onChanged(); - } else { - nodePoolsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1.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.v1.NodePool node_pools = 12; - */ - public com.google.container.v1.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.v1.NodePool node_pools = 12; - */ - public com.google.container.v1.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.v1.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.v1.NodePool node_pools = 12; - */ - public com.google.container.v1.NodePool.Builder addNodePoolsBuilder() { - return getNodePoolsFieldBuilder() - .addBuilder(com.google.container.v1.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.v1.NodePool node_pools = 12; - */ - public com.google.container.v1.NodePool.Builder addNodePoolsBuilder(int index) { - return getNodePoolsFieldBuilder() - .addBuilder(index, com.google.container.v1.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.v1.NodePool node_pools = 12; - */ - public java.util.List getNodePoolsBuilderList() { - return getNodePoolsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.NodePool, - com.google.container.v1.NodePool.Builder, - com.google.container.v1.NodePoolOrBuilder> - getNodePoolsFieldBuilder() { - if (nodePoolsBuilder_ == null) { - nodePoolsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.NodePool, - com.google.container.v1.NodePool.Builder, - com.google.container.v1.NodePoolOrBuilder>( - nodePools_, ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean()); - nodePools_ = null; - } - return nodePoolsBuilder_; - } - - private com.google.protobuf.LazyStringArrayList locations_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureLocationsIsMutable() { - if (!locations_.isModifiable()) { - locations_ = new com.google.protobuf.LazyStringArrayList(locations_); - } - bitField0_ |= 0x00001000; - } - /** - * - * - *
-     * 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() { - locations_.makeImmutable(); - 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); - } - /** - * - * - *
-     * 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); - bitField0_ |= 0x00001000; - 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); - bitField0_ |= 0x00001000; - 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_); - bitField0_ |= 0x00001000; - 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.emptyList(); - bitField0_ = (bitField0_ & ~0x00001000); - ; - 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); - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - - private boolean enableKubernetesAlpha_; - /** - * - * - *
-     * Kubernetes alpha features are enabled on this cluster. This includes alpha
-     * API groups (e.g. v1alpha1) and features that may not be production ready in
-     * the kubernetes version of the master and nodes.
-     * The cluster has no SLA for uptime and master/node upgrades are disabled.
-     * Alpha enabled clusters are automatically deleted thirty days after
-     * creation.
-     * 
- * - * bool enable_kubernetes_alpha = 14; - * - * @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. v1alpha1) and features that may not be production ready in
-     * the kubernetes version of the master and nodes.
-     * The cluster has no SLA for uptime and master/node upgrades are disabled.
-     * Alpha enabled clusters are automatically deleted thirty days after
-     * creation.
-     * 
- * - * bool enable_kubernetes_alpha = 14; - * - * @param value The enableKubernetesAlpha to set. - * @return This builder for chaining. - */ - public Builder setEnableKubernetesAlpha(boolean value) { - - enableKubernetesAlpha_ = value; - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - * - * - *
-     * Kubernetes alpha features are enabled on this cluster. This includes alpha
-     * API groups (e.g. v1alpha1) and features that may not be production ready in
-     * the kubernetes version of the master and nodes.
-     * The cluster has no SLA for uptime and master/node upgrades are disabled.
-     * Alpha enabled clusters are automatically deleted thirty days after
-     * creation.
-     * 
- * - * bool enable_kubernetes_alpha = 14; - * - * @return This builder for chaining. - */ - public Builder clearEnableKubernetesAlpha() { - bitField0_ = (bitField0_ & ~0x00002000); - 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() { - if (resourceLabels_ == null) { - resourceLabels_ = - com.google.protobuf.MapField.newMapField(ResourceLabelsDefaultEntryHolder.defaultEntry); - } - if (!resourceLabels_.isMutable()) { - resourceLabels_ = resourceLabels_.copy(); - } - bitField0_ |= 0x00004000; - onChanged(); - 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 NullPointerException("map key"); - } - 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 /* nullable */ java.lang.String getResourceLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - 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 NullPointerException("map key"); - } - java.util.Map map = internalGetResourceLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearResourceLabels() { - bitField0_ = (bitField0_ & ~0x00004000); - 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 NullPointerException("map key"); - } - internalGetMutableResourceLabels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableResourceLabels() { - bitField0_ |= 0x00004000; - 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 NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableResourceLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00004000; - 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); - bitField0_ |= 0x00004000; - 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; - bitField0_ |= 0x00008000; - 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(); - bitField0_ = (bitField0_ & ~0x00008000); - 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; - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - - private com.google.container.v1.LegacyAbac legacyAbac_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.LegacyAbac, - com.google.container.v1.LegacyAbac.Builder, - com.google.container.v1.LegacyAbacOrBuilder> - legacyAbacBuilder_; - /** - * - * - *
-     * Configuration for the legacy ABAC authorization mode.
-     * 
- * - * .google.container.v1.LegacyAbac legacy_abac = 18; - * - * @return Whether the legacyAbac field is set. - */ - public boolean hasLegacyAbac() { - return ((bitField0_ & 0x00010000) != 0); - } - /** - * - * - *
-     * Configuration for the legacy ABAC authorization mode.
-     * 
- * - * .google.container.v1.LegacyAbac legacy_abac = 18; - * - * @return The legacyAbac. - */ - public com.google.container.v1.LegacyAbac getLegacyAbac() { - if (legacyAbacBuilder_ == null) { - return legacyAbac_ == null - ? com.google.container.v1.LegacyAbac.getDefaultInstance() - : legacyAbac_; - } else { - return legacyAbacBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for the legacy ABAC authorization mode.
-     * 
- * - * .google.container.v1.LegacyAbac legacy_abac = 18; - */ - public Builder setLegacyAbac(com.google.container.v1.LegacyAbac value) { - if (legacyAbacBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - legacyAbac_ = value; - } else { - legacyAbacBuilder_.setMessage(value); - } - bitField0_ |= 0x00010000; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the legacy ABAC authorization mode.
-     * 
- * - * .google.container.v1.LegacyAbac legacy_abac = 18; - */ - public Builder setLegacyAbac(com.google.container.v1.LegacyAbac.Builder builderForValue) { - if (legacyAbacBuilder_ == null) { - legacyAbac_ = builderForValue.build(); - } else { - legacyAbacBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00010000; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the legacy ABAC authorization mode.
-     * 
- * - * .google.container.v1.LegacyAbac legacy_abac = 18; - */ - public Builder mergeLegacyAbac(com.google.container.v1.LegacyAbac value) { - if (legacyAbacBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) - && legacyAbac_ != null - && legacyAbac_ != com.google.container.v1.LegacyAbac.getDefaultInstance()) { - getLegacyAbacBuilder().mergeFrom(value); - } else { - legacyAbac_ = value; - } - } else { - legacyAbacBuilder_.mergeFrom(value); - } - if (legacyAbac_ != null) { - bitField0_ |= 0x00010000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for the legacy ABAC authorization mode.
-     * 
- * - * .google.container.v1.LegacyAbac legacy_abac = 18; - */ - public Builder clearLegacyAbac() { - bitField0_ = (bitField0_ & ~0x00010000); - legacyAbac_ = null; - if (legacyAbacBuilder_ != null) { - legacyAbacBuilder_.dispose(); - legacyAbacBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the legacy ABAC authorization mode.
-     * 
- * - * .google.container.v1.LegacyAbac legacy_abac = 18; - */ - public com.google.container.v1.LegacyAbac.Builder getLegacyAbacBuilder() { - bitField0_ |= 0x00010000; - onChanged(); - return getLegacyAbacFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for the legacy ABAC authorization mode.
-     * 
- * - * .google.container.v1.LegacyAbac legacy_abac = 18; - */ - public com.google.container.v1.LegacyAbacOrBuilder getLegacyAbacOrBuilder() { - if (legacyAbacBuilder_ != null) { - return legacyAbacBuilder_.getMessageOrBuilder(); - } else { - return legacyAbac_ == null - ? com.google.container.v1.LegacyAbac.getDefaultInstance() - : legacyAbac_; - } - } - /** - * - * - *
-     * Configuration for the legacy ABAC authorization mode.
-     * 
- * - * .google.container.v1.LegacyAbac legacy_abac = 18; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.LegacyAbac, - com.google.container.v1.LegacyAbac.Builder, - com.google.container.v1.LegacyAbacOrBuilder> - getLegacyAbacFieldBuilder() { - if (legacyAbacBuilder_ == null) { - legacyAbacBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.LegacyAbac, - com.google.container.v1.LegacyAbac.Builder, - com.google.container.v1.LegacyAbacOrBuilder>( - getLegacyAbac(), getParentForChildren(), isClean()); - legacyAbac_ = null; - } - return legacyAbacBuilder_; - } - - private com.google.container.v1.NetworkPolicy networkPolicy_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkPolicy, - com.google.container.v1.NetworkPolicy.Builder, - com.google.container.v1.NetworkPolicyOrBuilder> - networkPolicyBuilder_; - /** - * - * - *
-     * Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1.NetworkPolicy network_policy = 19; - * - * @return Whether the networkPolicy field is set. - */ - public boolean hasNetworkPolicy() { - return ((bitField0_ & 0x00020000) != 0); - } - /** - * - * - *
-     * Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1.NetworkPolicy network_policy = 19; - * - * @return The networkPolicy. - */ - public com.google.container.v1.NetworkPolicy getNetworkPolicy() { - if (networkPolicyBuilder_ == null) { - return networkPolicy_ == null - ? com.google.container.v1.NetworkPolicy.getDefaultInstance() - : networkPolicy_; - } else { - return networkPolicyBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1.NetworkPolicy network_policy = 19; - */ - public Builder setNetworkPolicy(com.google.container.v1.NetworkPolicy value) { - if (networkPolicyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - networkPolicy_ = value; - } else { - networkPolicyBuilder_.setMessage(value); - } - bitField0_ |= 0x00020000; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1.NetworkPolicy network_policy = 19; - */ - public Builder setNetworkPolicy(com.google.container.v1.NetworkPolicy.Builder builderForValue) { - if (networkPolicyBuilder_ == null) { - networkPolicy_ = builderForValue.build(); - } else { - networkPolicyBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00020000; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1.NetworkPolicy network_policy = 19; - */ - public Builder mergeNetworkPolicy(com.google.container.v1.NetworkPolicy value) { - if (networkPolicyBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) - && networkPolicy_ != null - && networkPolicy_ != com.google.container.v1.NetworkPolicy.getDefaultInstance()) { - getNetworkPolicyBuilder().mergeFrom(value); - } else { - networkPolicy_ = value; - } - } else { - networkPolicyBuilder_.mergeFrom(value); - } - if (networkPolicy_ != null) { - bitField0_ |= 0x00020000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1.NetworkPolicy network_policy = 19; - */ - public Builder clearNetworkPolicy() { - bitField0_ = (bitField0_ & ~0x00020000); - networkPolicy_ = null; - if (networkPolicyBuilder_ != null) { - networkPolicyBuilder_.dispose(); - networkPolicyBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1.NetworkPolicy network_policy = 19; - */ - public com.google.container.v1.NetworkPolicy.Builder getNetworkPolicyBuilder() { - bitField0_ |= 0x00020000; - onChanged(); - return getNetworkPolicyFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1.NetworkPolicy network_policy = 19; - */ - public com.google.container.v1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder() { - if (networkPolicyBuilder_ != null) { - return networkPolicyBuilder_.getMessageOrBuilder(); - } else { - return networkPolicy_ == null - ? com.google.container.v1.NetworkPolicy.getDefaultInstance() - : networkPolicy_; - } - } - /** - * - * - *
-     * Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1.NetworkPolicy network_policy = 19; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkPolicy, - com.google.container.v1.NetworkPolicy.Builder, - com.google.container.v1.NetworkPolicyOrBuilder> - getNetworkPolicyFieldBuilder() { - if (networkPolicyBuilder_ == null) { - networkPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkPolicy, - com.google.container.v1.NetworkPolicy.Builder, - com.google.container.v1.NetworkPolicyOrBuilder>( - getNetworkPolicy(), getParentForChildren(), isClean()); - networkPolicy_ = null; - } - return networkPolicyBuilder_; - } - - private com.google.container.v1.IPAllocationPolicy ipAllocationPolicy_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.IPAllocationPolicy, - com.google.container.v1.IPAllocationPolicy.Builder, - com.google.container.v1.IPAllocationPolicyOrBuilder> - ipAllocationPolicyBuilder_; - /** - * - * - *
-     * Configuration for cluster IP allocation.
-     * 
- * - * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; - * - * @return Whether the ipAllocationPolicy field is set. - */ - public boolean hasIpAllocationPolicy() { - return ((bitField0_ & 0x00040000) != 0); - } - /** - * - * - *
-     * Configuration for cluster IP allocation.
-     * 
- * - * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; - * - * @return The ipAllocationPolicy. - */ - public com.google.container.v1.IPAllocationPolicy getIpAllocationPolicy() { - if (ipAllocationPolicyBuilder_ == null) { - return ipAllocationPolicy_ == null - ? com.google.container.v1.IPAllocationPolicy.getDefaultInstance() - : ipAllocationPolicy_; - } else { - return ipAllocationPolicyBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for cluster IP allocation.
-     * 
- * - * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; - */ - public Builder setIpAllocationPolicy(com.google.container.v1.IPAllocationPolicy value) { - if (ipAllocationPolicyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ipAllocationPolicy_ = value; - } else { - ipAllocationPolicyBuilder_.setMessage(value); - } - bitField0_ |= 0x00040000; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for cluster IP allocation.
-     * 
- * - * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; - */ - public Builder setIpAllocationPolicy( - com.google.container.v1.IPAllocationPolicy.Builder builderForValue) { - if (ipAllocationPolicyBuilder_ == null) { - ipAllocationPolicy_ = builderForValue.build(); - } else { - ipAllocationPolicyBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00040000; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for cluster IP allocation.
-     * 
- * - * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; - */ - public Builder mergeIpAllocationPolicy(com.google.container.v1.IPAllocationPolicy value) { - if (ipAllocationPolicyBuilder_ == null) { - if (((bitField0_ & 0x00040000) != 0) - && ipAllocationPolicy_ != null - && ipAllocationPolicy_ - != com.google.container.v1.IPAllocationPolicy.getDefaultInstance()) { - getIpAllocationPolicyBuilder().mergeFrom(value); - } else { - ipAllocationPolicy_ = value; - } - } else { - ipAllocationPolicyBuilder_.mergeFrom(value); - } - if (ipAllocationPolicy_ != null) { - bitField0_ |= 0x00040000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for cluster IP allocation.
-     * 
- * - * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; - */ - public Builder clearIpAllocationPolicy() { - bitField0_ = (bitField0_ & ~0x00040000); - ipAllocationPolicy_ = null; - if (ipAllocationPolicyBuilder_ != null) { - ipAllocationPolicyBuilder_.dispose(); - ipAllocationPolicyBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for cluster IP allocation.
-     * 
- * - * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; - */ - public com.google.container.v1.IPAllocationPolicy.Builder getIpAllocationPolicyBuilder() { - bitField0_ |= 0x00040000; - onChanged(); - return getIpAllocationPolicyFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for cluster IP allocation.
-     * 
- * - * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; - */ - public com.google.container.v1.IPAllocationPolicyOrBuilder getIpAllocationPolicyOrBuilder() { - if (ipAllocationPolicyBuilder_ != null) { - return ipAllocationPolicyBuilder_.getMessageOrBuilder(); - } else { - return ipAllocationPolicy_ == null - ? com.google.container.v1.IPAllocationPolicy.getDefaultInstance() - : ipAllocationPolicy_; - } - } - /** - * - * - *
-     * Configuration for cluster IP allocation.
-     * 
- * - * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.IPAllocationPolicy, - com.google.container.v1.IPAllocationPolicy.Builder, - com.google.container.v1.IPAllocationPolicyOrBuilder> - getIpAllocationPolicyFieldBuilder() { - if (ipAllocationPolicyBuilder_ == null) { - ipAllocationPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.IPAllocationPolicy, - com.google.container.v1.IPAllocationPolicy.Builder, - com.google.container.v1.IPAllocationPolicyOrBuilder>( - getIpAllocationPolicy(), getParentForChildren(), isClean()); - ipAllocationPolicy_ = null; - } - return ipAllocationPolicyBuilder_; - } - - private com.google.container.v1.MasterAuthorizedNetworksConfig masterAuthorizedNetworksConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MasterAuthorizedNetworksConfig, - com.google.container.v1.MasterAuthorizedNetworksConfig.Builder, - com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder> - masterAuthorizedNetworksConfigBuilder_; - /** - * - * - *
-     * The configuration options for master authorized networks feature.
-     * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - * - * - * @return Whether the masterAuthorizedNetworksConfig field is set. - */ - public boolean hasMasterAuthorizedNetworksConfig() { - return ((bitField0_ & 0x00080000) != 0); - } - /** - * - * - *
-     * The configuration options for master authorized networks feature.
-     * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - * - * - * @return The masterAuthorizedNetworksConfig. - */ - public com.google.container.v1.MasterAuthorizedNetworksConfig - getMasterAuthorizedNetworksConfig() { - if (masterAuthorizedNetworksConfigBuilder_ == null) { - return masterAuthorizedNetworksConfig_ == null - ? com.google.container.v1.MasterAuthorizedNetworksConfig.getDefaultInstance() - : masterAuthorizedNetworksConfig_; - } else { - return masterAuthorizedNetworksConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The configuration options for master authorized networks feature.
-     * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - * - */ - public Builder setMasterAuthorizedNetworksConfig( - com.google.container.v1.MasterAuthorizedNetworksConfig value) { - if (masterAuthorizedNetworksConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - masterAuthorizedNetworksConfig_ = value; - } else { - masterAuthorizedNetworksConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00080000; - onChanged(); - return this; - } - /** - * - * - *
-     * The configuration options for master authorized networks feature.
-     * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - * - */ - public Builder setMasterAuthorizedNetworksConfig( - com.google.container.v1.MasterAuthorizedNetworksConfig.Builder builderForValue) { - if (masterAuthorizedNetworksConfigBuilder_ == null) { - masterAuthorizedNetworksConfig_ = builderForValue.build(); - } else { - masterAuthorizedNetworksConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00080000; - onChanged(); - return this; - } - /** - * - * - *
-     * The configuration options for master authorized networks feature.
-     * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - * - */ - public Builder mergeMasterAuthorizedNetworksConfig( - com.google.container.v1.MasterAuthorizedNetworksConfig value) { - if (masterAuthorizedNetworksConfigBuilder_ == null) { - if (((bitField0_ & 0x00080000) != 0) - && masterAuthorizedNetworksConfig_ != null - && masterAuthorizedNetworksConfig_ - != com.google.container.v1.MasterAuthorizedNetworksConfig.getDefaultInstance()) { - getMasterAuthorizedNetworksConfigBuilder().mergeFrom(value); - } else { - masterAuthorizedNetworksConfig_ = value; - } - } else { - masterAuthorizedNetworksConfigBuilder_.mergeFrom(value); - } - if (masterAuthorizedNetworksConfig_ != null) { - bitField0_ |= 0x00080000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The configuration options for master authorized networks feature.
-     * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - * - */ - public Builder clearMasterAuthorizedNetworksConfig() { - bitField0_ = (bitField0_ & ~0x00080000); - masterAuthorizedNetworksConfig_ = null; - if (masterAuthorizedNetworksConfigBuilder_ != null) { - masterAuthorizedNetworksConfigBuilder_.dispose(); - masterAuthorizedNetworksConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The configuration options for master authorized networks feature.
-     * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - * - */ - public com.google.container.v1.MasterAuthorizedNetworksConfig.Builder - getMasterAuthorizedNetworksConfigBuilder() { - bitField0_ |= 0x00080000; - onChanged(); - return getMasterAuthorizedNetworksConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The configuration options for master authorized networks feature.
-     * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - * - */ - public com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder - getMasterAuthorizedNetworksConfigOrBuilder() { - if (masterAuthorizedNetworksConfigBuilder_ != null) { - return masterAuthorizedNetworksConfigBuilder_.getMessageOrBuilder(); - } else { - return masterAuthorizedNetworksConfig_ == null - ? com.google.container.v1.MasterAuthorizedNetworksConfig.getDefaultInstance() - : masterAuthorizedNetworksConfig_; - } - } - /** - * - * - *
-     * The configuration options for master authorized networks feature.
-     * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MasterAuthorizedNetworksConfig, - com.google.container.v1.MasterAuthorizedNetworksConfig.Builder, - com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder> - getMasterAuthorizedNetworksConfigFieldBuilder() { - if (masterAuthorizedNetworksConfigBuilder_ == null) { - masterAuthorizedNetworksConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MasterAuthorizedNetworksConfig, - com.google.container.v1.MasterAuthorizedNetworksConfig.Builder, - com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder>( - getMasterAuthorizedNetworksConfig(), getParentForChildren(), isClean()); - masterAuthorizedNetworksConfig_ = null; - } - return masterAuthorizedNetworksConfigBuilder_; - } - - private com.google.container.v1.MaintenancePolicy maintenancePolicy_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MaintenancePolicy, - com.google.container.v1.MaintenancePolicy.Builder, - com.google.container.v1.MaintenancePolicyOrBuilder> - maintenancePolicyBuilder_; - /** - * - * - *
-     * Configure the maintenance policy for this cluster.
-     * 
- * - * .google.container.v1.MaintenancePolicy maintenance_policy = 23; - * - * @return Whether the maintenancePolicy field is set. - */ - public boolean hasMaintenancePolicy() { - return ((bitField0_ & 0x00100000) != 0); - } - /** - * - * - *
-     * Configure the maintenance policy for this cluster.
-     * 
- * - * .google.container.v1.MaintenancePolicy maintenance_policy = 23; - * - * @return The maintenancePolicy. - */ - public com.google.container.v1.MaintenancePolicy getMaintenancePolicy() { - if (maintenancePolicyBuilder_ == null) { - return maintenancePolicy_ == null - ? com.google.container.v1.MaintenancePolicy.getDefaultInstance() - : maintenancePolicy_; - } else { - return maintenancePolicyBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configure the maintenance policy for this cluster.
-     * 
- * - * .google.container.v1.MaintenancePolicy maintenance_policy = 23; - */ - public Builder setMaintenancePolicy(com.google.container.v1.MaintenancePolicy value) { - if (maintenancePolicyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - maintenancePolicy_ = value; - } else { - maintenancePolicyBuilder_.setMessage(value); - } - bitField0_ |= 0x00100000; - onChanged(); - return this; - } - /** - * - * - *
-     * Configure the maintenance policy for this cluster.
-     * 
- * - * .google.container.v1.MaintenancePolicy maintenance_policy = 23; - */ - public Builder setMaintenancePolicy( - com.google.container.v1.MaintenancePolicy.Builder builderForValue) { - if (maintenancePolicyBuilder_ == null) { - maintenancePolicy_ = builderForValue.build(); - } else { - maintenancePolicyBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00100000; - onChanged(); - return this; - } - /** - * - * - *
-     * Configure the maintenance policy for this cluster.
-     * 
- * - * .google.container.v1.MaintenancePolicy maintenance_policy = 23; - */ - public Builder mergeMaintenancePolicy(com.google.container.v1.MaintenancePolicy value) { - if (maintenancePolicyBuilder_ == null) { - if (((bitField0_ & 0x00100000) != 0) - && maintenancePolicy_ != null - && maintenancePolicy_ - != com.google.container.v1.MaintenancePolicy.getDefaultInstance()) { - getMaintenancePolicyBuilder().mergeFrom(value); - } else { - maintenancePolicy_ = value; - } - } else { - maintenancePolicyBuilder_.mergeFrom(value); - } - if (maintenancePolicy_ != null) { - bitField0_ |= 0x00100000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configure the maintenance policy for this cluster.
-     * 
- * - * .google.container.v1.MaintenancePolicy maintenance_policy = 23; - */ - public Builder clearMaintenancePolicy() { - bitField0_ = (bitField0_ & ~0x00100000); - maintenancePolicy_ = null; - if (maintenancePolicyBuilder_ != null) { - maintenancePolicyBuilder_.dispose(); - maintenancePolicyBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configure the maintenance policy for this cluster.
-     * 
- * - * .google.container.v1.MaintenancePolicy maintenance_policy = 23; - */ - public com.google.container.v1.MaintenancePolicy.Builder getMaintenancePolicyBuilder() { - bitField0_ |= 0x00100000; - onChanged(); - return getMaintenancePolicyFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configure the maintenance policy for this cluster.
-     * 
- * - * .google.container.v1.MaintenancePolicy maintenance_policy = 23; - */ - public com.google.container.v1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { - if (maintenancePolicyBuilder_ != null) { - return maintenancePolicyBuilder_.getMessageOrBuilder(); - } else { - return maintenancePolicy_ == null - ? com.google.container.v1.MaintenancePolicy.getDefaultInstance() - : maintenancePolicy_; - } - } - /** - * - * - *
-     * Configure the maintenance policy for this cluster.
-     * 
- * - * .google.container.v1.MaintenancePolicy maintenance_policy = 23; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MaintenancePolicy, - com.google.container.v1.MaintenancePolicy.Builder, - com.google.container.v1.MaintenancePolicyOrBuilder> - getMaintenancePolicyFieldBuilder() { - if (maintenancePolicyBuilder_ == null) { - maintenancePolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MaintenancePolicy, - com.google.container.v1.MaintenancePolicy.Builder, - com.google.container.v1.MaintenancePolicyOrBuilder>( - getMaintenancePolicy(), getParentForChildren(), isClean()); - maintenancePolicy_ = null; - } - return maintenancePolicyBuilder_; - } - - private com.google.container.v1.BinaryAuthorization binaryAuthorization_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.BinaryAuthorization, - com.google.container.v1.BinaryAuthorization.Builder, - com.google.container.v1.BinaryAuthorizationOrBuilder> - binaryAuthorizationBuilder_; - /** - * - * - *
-     * Configuration for Binary Authorization.
-     * 
- * - * .google.container.v1.BinaryAuthorization binary_authorization = 24; - * - * @return Whether the binaryAuthorization field is set. - */ - public boolean hasBinaryAuthorization() { - return ((bitField0_ & 0x00200000) != 0); - } - /** - * - * - *
-     * Configuration for Binary Authorization.
-     * 
- * - * .google.container.v1.BinaryAuthorization binary_authorization = 24; - * - * @return The binaryAuthorization. - */ - public com.google.container.v1.BinaryAuthorization getBinaryAuthorization() { - if (binaryAuthorizationBuilder_ == null) { - return binaryAuthorization_ == null - ? com.google.container.v1.BinaryAuthorization.getDefaultInstance() - : binaryAuthorization_; - } else { - return binaryAuthorizationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for Binary Authorization.
-     * 
- * - * .google.container.v1.BinaryAuthorization binary_authorization = 24; - */ - public Builder setBinaryAuthorization(com.google.container.v1.BinaryAuthorization value) { - if (binaryAuthorizationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - binaryAuthorization_ = value; - } else { - binaryAuthorizationBuilder_.setMessage(value); - } - bitField0_ |= 0x00200000; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for Binary Authorization.
-     * 
- * - * .google.container.v1.BinaryAuthorization binary_authorization = 24; - */ - public Builder setBinaryAuthorization( - com.google.container.v1.BinaryAuthorization.Builder builderForValue) { - if (binaryAuthorizationBuilder_ == null) { - binaryAuthorization_ = builderForValue.build(); - } else { - binaryAuthorizationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00200000; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for Binary Authorization.
-     * 
- * - * .google.container.v1.BinaryAuthorization binary_authorization = 24; - */ - public Builder mergeBinaryAuthorization(com.google.container.v1.BinaryAuthorization value) { - if (binaryAuthorizationBuilder_ == null) { - if (((bitField0_ & 0x00200000) != 0) - && binaryAuthorization_ != null - && binaryAuthorization_ - != com.google.container.v1.BinaryAuthorization.getDefaultInstance()) { - getBinaryAuthorizationBuilder().mergeFrom(value); - } else { - binaryAuthorization_ = value; - } - } else { - binaryAuthorizationBuilder_.mergeFrom(value); - } - if (binaryAuthorization_ != null) { - bitField0_ |= 0x00200000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for Binary Authorization.
-     * 
- * - * .google.container.v1.BinaryAuthorization binary_authorization = 24; - */ - public Builder clearBinaryAuthorization() { - bitField0_ = (bitField0_ & ~0x00200000); - binaryAuthorization_ = null; - if (binaryAuthorizationBuilder_ != null) { - binaryAuthorizationBuilder_.dispose(); - binaryAuthorizationBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for Binary Authorization.
-     * 
- * - * .google.container.v1.BinaryAuthorization binary_authorization = 24; - */ - public com.google.container.v1.BinaryAuthorization.Builder getBinaryAuthorizationBuilder() { - bitField0_ |= 0x00200000; - onChanged(); - return getBinaryAuthorizationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for Binary Authorization.
-     * 
- * - * .google.container.v1.BinaryAuthorization binary_authorization = 24; - */ - public com.google.container.v1.BinaryAuthorizationOrBuilder getBinaryAuthorizationOrBuilder() { - if (binaryAuthorizationBuilder_ != null) { - return binaryAuthorizationBuilder_.getMessageOrBuilder(); - } else { - return binaryAuthorization_ == null - ? com.google.container.v1.BinaryAuthorization.getDefaultInstance() - : binaryAuthorization_; - } - } - /** - * - * - *
-     * Configuration for Binary Authorization.
-     * 
- * - * .google.container.v1.BinaryAuthorization binary_authorization = 24; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.BinaryAuthorization, - com.google.container.v1.BinaryAuthorization.Builder, - com.google.container.v1.BinaryAuthorizationOrBuilder> - getBinaryAuthorizationFieldBuilder() { - if (binaryAuthorizationBuilder_ == null) { - binaryAuthorizationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.BinaryAuthorization, - com.google.container.v1.BinaryAuthorization.Builder, - com.google.container.v1.BinaryAuthorizationOrBuilder>( - getBinaryAuthorization(), getParentForChildren(), isClean()); - binaryAuthorization_ = null; - } - return binaryAuthorizationBuilder_; - } - - private com.google.container.v1.ClusterAutoscaling autoscaling_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ClusterAutoscaling, - com.google.container.v1.ClusterAutoscaling.Builder, - com.google.container.v1.ClusterAutoscalingOrBuilder> - autoscalingBuilder_; - /** - * - * - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1.ClusterAutoscaling autoscaling = 26; - * - * @return Whether the autoscaling field is set. - */ - public boolean hasAutoscaling() { - return ((bitField0_ & 0x00400000) != 0); - } - /** - * - * - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1.ClusterAutoscaling autoscaling = 26; - * - * @return The autoscaling. - */ - public com.google.container.v1.ClusterAutoscaling getAutoscaling() { - if (autoscalingBuilder_ == null) { - return autoscaling_ == null - ? com.google.container.v1.ClusterAutoscaling.getDefaultInstance() - : autoscaling_; - } else { - return autoscalingBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1.ClusterAutoscaling autoscaling = 26; - */ - public Builder setAutoscaling(com.google.container.v1.ClusterAutoscaling value) { - if (autoscalingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - autoscaling_ = value; - } else { - autoscalingBuilder_.setMessage(value); - } - bitField0_ |= 0x00400000; - onChanged(); - return this; - } - /** - * - * - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1.ClusterAutoscaling autoscaling = 26; - */ - public Builder setAutoscaling( - com.google.container.v1.ClusterAutoscaling.Builder builderForValue) { - if (autoscalingBuilder_ == null) { - autoscaling_ = builderForValue.build(); - } else { - autoscalingBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00400000; - onChanged(); - return this; - } - /** - * - * - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1.ClusterAutoscaling autoscaling = 26; - */ - public Builder mergeAutoscaling(com.google.container.v1.ClusterAutoscaling value) { - if (autoscalingBuilder_ == null) { - if (((bitField0_ & 0x00400000) != 0) - && autoscaling_ != null - && autoscaling_ != com.google.container.v1.ClusterAutoscaling.getDefaultInstance()) { - getAutoscalingBuilder().mergeFrom(value); - } else { - autoscaling_ = value; - } - } else { - autoscalingBuilder_.mergeFrom(value); - } - if (autoscaling_ != null) { - bitField0_ |= 0x00400000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1.ClusterAutoscaling autoscaling = 26; - */ - public Builder clearAutoscaling() { - bitField0_ = (bitField0_ & ~0x00400000); - autoscaling_ = null; - if (autoscalingBuilder_ != null) { - autoscalingBuilder_.dispose(); - autoscalingBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1.ClusterAutoscaling autoscaling = 26; - */ - public com.google.container.v1.ClusterAutoscaling.Builder getAutoscalingBuilder() { - bitField0_ |= 0x00400000; - onChanged(); - return getAutoscalingFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1.ClusterAutoscaling autoscaling = 26; - */ - public com.google.container.v1.ClusterAutoscalingOrBuilder getAutoscalingOrBuilder() { - if (autoscalingBuilder_ != null) { - return autoscalingBuilder_.getMessageOrBuilder(); - } else { - return autoscaling_ == null - ? com.google.container.v1.ClusterAutoscaling.getDefaultInstance() - : autoscaling_; - } - } - /** - * - * - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1.ClusterAutoscaling autoscaling = 26; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ClusterAutoscaling, - com.google.container.v1.ClusterAutoscaling.Builder, - com.google.container.v1.ClusterAutoscalingOrBuilder> - getAutoscalingFieldBuilder() { - if (autoscalingBuilder_ == null) { - autoscalingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ClusterAutoscaling, - com.google.container.v1.ClusterAutoscaling.Builder, - com.google.container.v1.ClusterAutoscalingOrBuilder>( - getAutoscaling(), getParentForChildren(), isClean()); - autoscaling_ = null; - } - return autoscalingBuilder_; - } - - private com.google.container.v1.NetworkConfig networkConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkConfig, - com.google.container.v1.NetworkConfig.Builder, - com.google.container.v1.NetworkConfigOrBuilder> - networkConfigBuilder_; - /** - * - * - *
-     * Configuration for cluster networking.
-     * 
- * - * .google.container.v1.NetworkConfig network_config = 27; - * - * @return Whether the networkConfig field is set. - */ - public boolean hasNetworkConfig() { - return ((bitField0_ & 0x00800000) != 0); - } - /** - * - * - *
-     * Configuration for cluster networking.
-     * 
- * - * .google.container.v1.NetworkConfig network_config = 27; - * - * @return The networkConfig. - */ - public com.google.container.v1.NetworkConfig getNetworkConfig() { - if (networkConfigBuilder_ == null) { - return networkConfig_ == null - ? com.google.container.v1.NetworkConfig.getDefaultInstance() - : networkConfig_; - } else { - return networkConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for cluster networking.
-     * 
- * - * .google.container.v1.NetworkConfig network_config = 27; - */ - public Builder setNetworkConfig(com.google.container.v1.NetworkConfig value) { - if (networkConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - networkConfig_ = value; - } else { - networkConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00800000; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for cluster networking.
-     * 
- * - * .google.container.v1.NetworkConfig network_config = 27; - */ - public Builder setNetworkConfig(com.google.container.v1.NetworkConfig.Builder builderForValue) { - if (networkConfigBuilder_ == null) { - networkConfig_ = builderForValue.build(); - } else { - networkConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00800000; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for cluster networking.
-     * 
- * - * .google.container.v1.NetworkConfig network_config = 27; - */ - public Builder mergeNetworkConfig(com.google.container.v1.NetworkConfig value) { - if (networkConfigBuilder_ == null) { - if (((bitField0_ & 0x00800000) != 0) - && networkConfig_ != null - && networkConfig_ != com.google.container.v1.NetworkConfig.getDefaultInstance()) { - getNetworkConfigBuilder().mergeFrom(value); - } else { - networkConfig_ = value; - } - } else { - networkConfigBuilder_.mergeFrom(value); - } - if (networkConfig_ != null) { - bitField0_ |= 0x00800000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for cluster networking.
-     * 
- * - * .google.container.v1.NetworkConfig network_config = 27; - */ - public Builder clearNetworkConfig() { - bitField0_ = (bitField0_ & ~0x00800000); - networkConfig_ = null; - if (networkConfigBuilder_ != null) { - networkConfigBuilder_.dispose(); - networkConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for cluster networking.
-     * 
- * - * .google.container.v1.NetworkConfig network_config = 27; - */ - public com.google.container.v1.NetworkConfig.Builder getNetworkConfigBuilder() { - bitField0_ |= 0x00800000; - onChanged(); - return getNetworkConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for cluster networking.
-     * 
- * - * .google.container.v1.NetworkConfig network_config = 27; - */ - public com.google.container.v1.NetworkConfigOrBuilder getNetworkConfigOrBuilder() { - if (networkConfigBuilder_ != null) { - return networkConfigBuilder_.getMessageOrBuilder(); - } else { - return networkConfig_ == null - ? com.google.container.v1.NetworkConfig.getDefaultInstance() - : networkConfig_; - } - } - /** - * - * - *
-     * Configuration for cluster networking.
-     * 
- * - * .google.container.v1.NetworkConfig network_config = 27; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkConfig, - com.google.container.v1.NetworkConfig.Builder, - com.google.container.v1.NetworkConfigOrBuilder> - getNetworkConfigFieldBuilder() { - if (networkConfigBuilder_ == null) { - networkConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkConfig, - com.google.container.v1.NetworkConfig.Builder, - com.google.container.v1.NetworkConfigOrBuilder>( - getNetworkConfig(), getParentForChildren(), isClean()); - networkConfig_ = null; - } - return networkConfigBuilder_; - } - - private com.google.container.v1.MaxPodsConstraint defaultMaxPodsConstraint_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MaxPodsConstraint, - com.google.container.v1.MaxPodsConstraint.Builder, - com.google.container.v1.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.v1.MaxPodsConstraint default_max_pods_constraint = 30; - * - * @return Whether the defaultMaxPodsConstraint field is set. - */ - public boolean hasDefaultMaxPodsConstraint() { - return ((bitField0_ & 0x01000000) != 0); - } - /** - * - * - *
-     * 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.v1.MaxPodsConstraint default_max_pods_constraint = 30; - * - * @return The defaultMaxPodsConstraint. - */ - public com.google.container.v1.MaxPodsConstraint getDefaultMaxPodsConstraint() { - if (defaultMaxPodsConstraintBuilder_ == null) { - return defaultMaxPodsConstraint_ == null - ? com.google.container.v1.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.v1.MaxPodsConstraint default_max_pods_constraint = 30; - */ - public Builder setDefaultMaxPodsConstraint(com.google.container.v1.MaxPodsConstraint value) { - if (defaultMaxPodsConstraintBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - defaultMaxPodsConstraint_ = value; - } else { - defaultMaxPodsConstraintBuilder_.setMessage(value); - } - bitField0_ |= 0x01000000; - onChanged(); - 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.v1.MaxPodsConstraint default_max_pods_constraint = 30; - */ - public Builder setDefaultMaxPodsConstraint( - com.google.container.v1.MaxPodsConstraint.Builder builderForValue) { - if (defaultMaxPodsConstraintBuilder_ == null) { - defaultMaxPodsConstraint_ = builderForValue.build(); - } else { - defaultMaxPodsConstraintBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x01000000; - onChanged(); - 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.v1.MaxPodsConstraint default_max_pods_constraint = 30; - */ - public Builder mergeDefaultMaxPodsConstraint(com.google.container.v1.MaxPodsConstraint value) { - if (defaultMaxPodsConstraintBuilder_ == null) { - if (((bitField0_ & 0x01000000) != 0) - && defaultMaxPodsConstraint_ != null - && defaultMaxPodsConstraint_ - != com.google.container.v1.MaxPodsConstraint.getDefaultInstance()) { - getDefaultMaxPodsConstraintBuilder().mergeFrom(value); - } else { - defaultMaxPodsConstraint_ = value; - } - } else { - defaultMaxPodsConstraintBuilder_.mergeFrom(value); - } - if (defaultMaxPodsConstraint_ != null) { - bitField0_ |= 0x01000000; - onChanged(); - } - 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.v1.MaxPodsConstraint default_max_pods_constraint = 30; - */ - public Builder clearDefaultMaxPodsConstraint() { - bitField0_ = (bitField0_ & ~0x01000000); - defaultMaxPodsConstraint_ = null; - if (defaultMaxPodsConstraintBuilder_ != null) { - defaultMaxPodsConstraintBuilder_.dispose(); - defaultMaxPodsConstraintBuilder_ = null; - } - onChanged(); - 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.v1.MaxPodsConstraint default_max_pods_constraint = 30; - */ - public com.google.container.v1.MaxPodsConstraint.Builder getDefaultMaxPodsConstraintBuilder() { - bitField0_ |= 0x01000000; - 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.v1.MaxPodsConstraint default_max_pods_constraint = 30; - */ - public com.google.container.v1.MaxPodsConstraintOrBuilder - getDefaultMaxPodsConstraintOrBuilder() { - if (defaultMaxPodsConstraintBuilder_ != null) { - return defaultMaxPodsConstraintBuilder_.getMessageOrBuilder(); - } else { - return defaultMaxPodsConstraint_ == null - ? com.google.container.v1.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.v1.MaxPodsConstraint default_max_pods_constraint = 30; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MaxPodsConstraint, - com.google.container.v1.MaxPodsConstraint.Builder, - com.google.container.v1.MaxPodsConstraintOrBuilder> - getDefaultMaxPodsConstraintFieldBuilder() { - if (defaultMaxPodsConstraintBuilder_ == null) { - defaultMaxPodsConstraintBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MaxPodsConstraint, - com.google.container.v1.MaxPodsConstraint.Builder, - com.google.container.v1.MaxPodsConstraintOrBuilder>( - getDefaultMaxPodsConstraint(), getParentForChildren(), isClean()); - defaultMaxPodsConstraint_ = null; - } - return defaultMaxPodsConstraintBuilder_; - } - - private com.google.container.v1.ResourceUsageExportConfig resourceUsageExportConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ResourceUsageExportConfig, - com.google.container.v1.ResourceUsageExportConfig.Builder, - com.google.container.v1.ResourceUsageExportConfigOrBuilder> - resourceUsageExportConfigBuilder_; - /** - * - * - *
-     * Configuration for exporting resource usages. Resource usage export is
-     * disabled when this config is unspecified.
-     * 
- * - * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; - * - * - * @return Whether the resourceUsageExportConfig field is set. - */ - public boolean hasResourceUsageExportConfig() { - return ((bitField0_ & 0x02000000) != 0); - } - /** - * - * - *
-     * Configuration for exporting resource usages. Resource usage export is
-     * disabled when this config is unspecified.
-     * 
- * - * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; - * - * - * @return The resourceUsageExportConfig. - */ - public com.google.container.v1.ResourceUsageExportConfig getResourceUsageExportConfig() { - if (resourceUsageExportConfigBuilder_ == null) { - return resourceUsageExportConfig_ == null - ? com.google.container.v1.ResourceUsageExportConfig.getDefaultInstance() - : resourceUsageExportConfig_; - } else { - return resourceUsageExportConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for exporting resource usages. Resource usage export is
-     * disabled when this config is unspecified.
-     * 
- * - * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; - * - */ - public Builder setResourceUsageExportConfig( - com.google.container.v1.ResourceUsageExportConfig value) { - if (resourceUsageExportConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resourceUsageExportConfig_ = value; - } else { - resourceUsageExportConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x02000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for exporting resource usages. Resource usage export is
-     * disabled when this config is unspecified.
-     * 
- * - * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; - * - */ - public Builder setResourceUsageExportConfig( - com.google.container.v1.ResourceUsageExportConfig.Builder builderForValue) { - if (resourceUsageExportConfigBuilder_ == null) { - resourceUsageExportConfig_ = builderForValue.build(); - } else { - resourceUsageExportConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x02000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for exporting resource usages. Resource usage export is
-     * disabled when this config is unspecified.
-     * 
- * - * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; - * - */ - public Builder mergeResourceUsageExportConfig( - com.google.container.v1.ResourceUsageExportConfig value) { - if (resourceUsageExportConfigBuilder_ == null) { - if (((bitField0_ & 0x02000000) != 0) - && resourceUsageExportConfig_ != null - && resourceUsageExportConfig_ - != com.google.container.v1.ResourceUsageExportConfig.getDefaultInstance()) { - getResourceUsageExportConfigBuilder().mergeFrom(value); - } else { - resourceUsageExportConfig_ = value; - } - } else { - resourceUsageExportConfigBuilder_.mergeFrom(value); - } - if (resourceUsageExportConfig_ != null) { - bitField0_ |= 0x02000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for exporting resource usages. Resource usage export is
-     * disabled when this config is unspecified.
-     * 
- * - * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; - * - */ - public Builder clearResourceUsageExportConfig() { - bitField0_ = (bitField0_ & ~0x02000000); - resourceUsageExportConfig_ = null; - if (resourceUsageExportConfigBuilder_ != null) { - resourceUsageExportConfigBuilder_.dispose(); - resourceUsageExportConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for exporting resource usages. Resource usage export is
-     * disabled when this config is unspecified.
-     * 
- * - * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; - * - */ - public com.google.container.v1.ResourceUsageExportConfig.Builder - getResourceUsageExportConfigBuilder() { - bitField0_ |= 0x02000000; - onChanged(); - return getResourceUsageExportConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for exporting resource usages. Resource usage export is
-     * disabled when this config is unspecified.
-     * 
- * - * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; - * - */ - public com.google.container.v1.ResourceUsageExportConfigOrBuilder - getResourceUsageExportConfigOrBuilder() { - if (resourceUsageExportConfigBuilder_ != null) { - return resourceUsageExportConfigBuilder_.getMessageOrBuilder(); - } else { - return resourceUsageExportConfig_ == null - ? com.google.container.v1.ResourceUsageExportConfig.getDefaultInstance() - : resourceUsageExportConfig_; - } - } - /** - * - * - *
-     * Configuration for exporting resource usages. Resource usage export is
-     * disabled when this config is unspecified.
-     * 
- * - * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ResourceUsageExportConfig, - com.google.container.v1.ResourceUsageExportConfig.Builder, - com.google.container.v1.ResourceUsageExportConfigOrBuilder> - getResourceUsageExportConfigFieldBuilder() { - if (resourceUsageExportConfigBuilder_ == null) { - resourceUsageExportConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ResourceUsageExportConfig, - com.google.container.v1.ResourceUsageExportConfig.Builder, - com.google.container.v1.ResourceUsageExportConfigOrBuilder>( - getResourceUsageExportConfig(), getParentForChildren(), isClean()); - resourceUsageExportConfig_ = null; - } - return resourceUsageExportConfigBuilder_; - } - - private com.google.container.v1.AuthenticatorGroupsConfig authenticatorGroupsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AuthenticatorGroupsConfig, - com.google.container.v1.AuthenticatorGroupsConfig.Builder, - com.google.container.v1.AuthenticatorGroupsConfigOrBuilder> - authenticatorGroupsConfigBuilder_; - /** - * - * - *
-     * Configuration controlling RBAC group membership information.
-     * 
- * - * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - * - * @return Whether the authenticatorGroupsConfig field is set. - */ - public boolean hasAuthenticatorGroupsConfig() { - return ((bitField0_ & 0x04000000) != 0); - } - /** - * - * - *
-     * Configuration controlling RBAC group membership information.
-     * 
- * - * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - * - * @return The authenticatorGroupsConfig. - */ - public com.google.container.v1.AuthenticatorGroupsConfig getAuthenticatorGroupsConfig() { - if (authenticatorGroupsConfigBuilder_ == null) { - return authenticatorGroupsConfig_ == null - ? com.google.container.v1.AuthenticatorGroupsConfig.getDefaultInstance() - : authenticatorGroupsConfig_; - } else { - return authenticatorGroupsConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration controlling RBAC group membership information.
-     * 
- * - * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - */ - public Builder setAuthenticatorGroupsConfig( - com.google.container.v1.AuthenticatorGroupsConfig value) { - if (authenticatorGroupsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - authenticatorGroupsConfig_ = value; - } else { - authenticatorGroupsConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x04000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration controlling RBAC group membership information.
-     * 
- * - * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - */ - public Builder setAuthenticatorGroupsConfig( - com.google.container.v1.AuthenticatorGroupsConfig.Builder builderForValue) { - if (authenticatorGroupsConfigBuilder_ == null) { - authenticatorGroupsConfig_ = builderForValue.build(); - } else { - authenticatorGroupsConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x04000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration controlling RBAC group membership information.
-     * 
- * - * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - */ - public Builder mergeAuthenticatorGroupsConfig( - com.google.container.v1.AuthenticatorGroupsConfig value) { - if (authenticatorGroupsConfigBuilder_ == null) { - if (((bitField0_ & 0x04000000) != 0) - && authenticatorGroupsConfig_ != null - && authenticatorGroupsConfig_ - != com.google.container.v1.AuthenticatorGroupsConfig.getDefaultInstance()) { - getAuthenticatorGroupsConfigBuilder().mergeFrom(value); - } else { - authenticatorGroupsConfig_ = value; - } - } else { - authenticatorGroupsConfigBuilder_.mergeFrom(value); - } - if (authenticatorGroupsConfig_ != null) { - bitField0_ |= 0x04000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration controlling RBAC group membership information.
-     * 
- * - * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - */ - public Builder clearAuthenticatorGroupsConfig() { - bitField0_ = (bitField0_ & ~0x04000000); - authenticatorGroupsConfig_ = null; - if (authenticatorGroupsConfigBuilder_ != null) { - authenticatorGroupsConfigBuilder_.dispose(); - authenticatorGroupsConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration controlling RBAC group membership information.
-     * 
- * - * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - */ - public com.google.container.v1.AuthenticatorGroupsConfig.Builder - getAuthenticatorGroupsConfigBuilder() { - bitField0_ |= 0x04000000; - onChanged(); - return getAuthenticatorGroupsConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration controlling RBAC group membership information.
-     * 
- * - * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - */ - public com.google.container.v1.AuthenticatorGroupsConfigOrBuilder - getAuthenticatorGroupsConfigOrBuilder() { - if (authenticatorGroupsConfigBuilder_ != null) { - return authenticatorGroupsConfigBuilder_.getMessageOrBuilder(); - } else { - return authenticatorGroupsConfig_ == null - ? com.google.container.v1.AuthenticatorGroupsConfig.getDefaultInstance() - : authenticatorGroupsConfig_; - } - } - /** - * - * - *
-     * Configuration controlling RBAC group membership information.
-     * 
- * - * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AuthenticatorGroupsConfig, - com.google.container.v1.AuthenticatorGroupsConfig.Builder, - com.google.container.v1.AuthenticatorGroupsConfigOrBuilder> - getAuthenticatorGroupsConfigFieldBuilder() { - if (authenticatorGroupsConfigBuilder_ == null) { - authenticatorGroupsConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AuthenticatorGroupsConfig, - com.google.container.v1.AuthenticatorGroupsConfig.Builder, - com.google.container.v1.AuthenticatorGroupsConfigOrBuilder>( - getAuthenticatorGroupsConfig(), getParentForChildren(), isClean()); - authenticatorGroupsConfig_ = null; - } - return authenticatorGroupsConfigBuilder_; - } - - private com.google.container.v1.PrivateClusterConfig privateClusterConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.PrivateClusterConfig, - com.google.container.v1.PrivateClusterConfig.Builder, - com.google.container.v1.PrivateClusterConfigOrBuilder> - privateClusterConfigBuilder_; - /** - * - * - *
-     * Configuration for private cluster.
-     * 
- * - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; - * - * @return Whether the privateClusterConfig field is set. - */ - public boolean hasPrivateClusterConfig() { - return ((bitField0_ & 0x08000000) != 0); - } - /** - * - * - *
-     * Configuration for private cluster.
-     * 
- * - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; - * - * @return The privateClusterConfig. - */ - public com.google.container.v1.PrivateClusterConfig getPrivateClusterConfig() { - if (privateClusterConfigBuilder_ == null) { - return privateClusterConfig_ == null - ? com.google.container.v1.PrivateClusterConfig.getDefaultInstance() - : privateClusterConfig_; - } else { - return privateClusterConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for private cluster.
-     * 
- * - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; - */ - public Builder setPrivateClusterConfig(com.google.container.v1.PrivateClusterConfig value) { - if (privateClusterConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - privateClusterConfig_ = value; - } else { - privateClusterConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x08000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for private cluster.
-     * 
- * - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; - */ - public Builder setPrivateClusterConfig( - com.google.container.v1.PrivateClusterConfig.Builder builderForValue) { - if (privateClusterConfigBuilder_ == null) { - privateClusterConfig_ = builderForValue.build(); - } else { - privateClusterConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x08000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for private cluster.
-     * 
- * - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; - */ - public Builder mergePrivateClusterConfig(com.google.container.v1.PrivateClusterConfig value) { - if (privateClusterConfigBuilder_ == null) { - if (((bitField0_ & 0x08000000) != 0) - && privateClusterConfig_ != null - && privateClusterConfig_ - != com.google.container.v1.PrivateClusterConfig.getDefaultInstance()) { - getPrivateClusterConfigBuilder().mergeFrom(value); - } else { - privateClusterConfig_ = value; - } - } else { - privateClusterConfigBuilder_.mergeFrom(value); - } - if (privateClusterConfig_ != null) { - bitField0_ |= 0x08000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for private cluster.
-     * 
- * - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; - */ - public Builder clearPrivateClusterConfig() { - bitField0_ = (bitField0_ & ~0x08000000); - privateClusterConfig_ = null; - if (privateClusterConfigBuilder_ != null) { - privateClusterConfigBuilder_.dispose(); - privateClusterConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for private cluster.
-     * 
- * - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; - */ - public com.google.container.v1.PrivateClusterConfig.Builder getPrivateClusterConfigBuilder() { - bitField0_ |= 0x08000000; - onChanged(); - return getPrivateClusterConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for private cluster.
-     * 
- * - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; - */ - public com.google.container.v1.PrivateClusterConfigOrBuilder - getPrivateClusterConfigOrBuilder() { - if (privateClusterConfigBuilder_ != null) { - return privateClusterConfigBuilder_.getMessageOrBuilder(); - } else { - return privateClusterConfig_ == null - ? com.google.container.v1.PrivateClusterConfig.getDefaultInstance() - : privateClusterConfig_; - } - } - /** - * - * - *
-     * Configuration for private cluster.
-     * 
- * - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.PrivateClusterConfig, - com.google.container.v1.PrivateClusterConfig.Builder, - com.google.container.v1.PrivateClusterConfigOrBuilder> - getPrivateClusterConfigFieldBuilder() { - if (privateClusterConfigBuilder_ == null) { - privateClusterConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.PrivateClusterConfig, - com.google.container.v1.PrivateClusterConfig.Builder, - com.google.container.v1.PrivateClusterConfigOrBuilder>( - getPrivateClusterConfig(), getParentForChildren(), isClean()); - privateClusterConfig_ = null; - } - return privateClusterConfigBuilder_; - } - - private com.google.container.v1.DatabaseEncryption databaseEncryption_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DatabaseEncryption, - com.google.container.v1.DatabaseEncryption.Builder, - com.google.container.v1.DatabaseEncryptionOrBuilder> - databaseEncryptionBuilder_; - /** - * - * - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption database_encryption = 38; - * - * @return Whether the databaseEncryption field is set. - */ - public boolean hasDatabaseEncryption() { - return ((bitField0_ & 0x10000000) != 0); - } - /** - * - * - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption database_encryption = 38; - * - * @return The databaseEncryption. - */ - public com.google.container.v1.DatabaseEncryption getDatabaseEncryption() { - if (databaseEncryptionBuilder_ == null) { - return databaseEncryption_ == null - ? com.google.container.v1.DatabaseEncryption.getDefaultInstance() - : databaseEncryption_; - } else { - return databaseEncryptionBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption database_encryption = 38; - */ - public Builder setDatabaseEncryption(com.google.container.v1.DatabaseEncryption value) { - if (databaseEncryptionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - databaseEncryption_ = value; - } else { - databaseEncryptionBuilder_.setMessage(value); - } - bitField0_ |= 0x10000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption database_encryption = 38; - */ - public Builder setDatabaseEncryption( - com.google.container.v1.DatabaseEncryption.Builder builderForValue) { - if (databaseEncryptionBuilder_ == null) { - databaseEncryption_ = builderForValue.build(); - } else { - databaseEncryptionBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x10000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption database_encryption = 38; - */ - public Builder mergeDatabaseEncryption(com.google.container.v1.DatabaseEncryption value) { - if (databaseEncryptionBuilder_ == null) { - if (((bitField0_ & 0x10000000) != 0) - && databaseEncryption_ != null - && databaseEncryption_ - != com.google.container.v1.DatabaseEncryption.getDefaultInstance()) { - getDatabaseEncryptionBuilder().mergeFrom(value); - } else { - databaseEncryption_ = value; - } - } else { - databaseEncryptionBuilder_.mergeFrom(value); - } - if (databaseEncryption_ != null) { - bitField0_ |= 0x10000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption database_encryption = 38; - */ - public Builder clearDatabaseEncryption() { - bitField0_ = (bitField0_ & ~0x10000000); - databaseEncryption_ = null; - if (databaseEncryptionBuilder_ != null) { - databaseEncryptionBuilder_.dispose(); - databaseEncryptionBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption database_encryption = 38; - */ - public com.google.container.v1.DatabaseEncryption.Builder getDatabaseEncryptionBuilder() { - bitField0_ |= 0x10000000; - onChanged(); - return getDatabaseEncryptionFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption database_encryption = 38; - */ - public com.google.container.v1.DatabaseEncryptionOrBuilder getDatabaseEncryptionOrBuilder() { - if (databaseEncryptionBuilder_ != null) { - return databaseEncryptionBuilder_.getMessageOrBuilder(); - } else { - return databaseEncryption_ == null - ? com.google.container.v1.DatabaseEncryption.getDefaultInstance() - : databaseEncryption_; - } - } - /** - * - * - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption database_encryption = 38; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DatabaseEncryption, - com.google.container.v1.DatabaseEncryption.Builder, - com.google.container.v1.DatabaseEncryptionOrBuilder> - getDatabaseEncryptionFieldBuilder() { - if (databaseEncryptionBuilder_ == null) { - databaseEncryptionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DatabaseEncryption, - com.google.container.v1.DatabaseEncryption.Builder, - com.google.container.v1.DatabaseEncryptionOrBuilder>( - getDatabaseEncryption(), getParentForChildren(), isClean()); - databaseEncryption_ = null; - } - return databaseEncryptionBuilder_; - } - - private com.google.container.v1.VerticalPodAutoscaling verticalPodAutoscaling_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.VerticalPodAutoscaling, - com.google.container.v1.VerticalPodAutoscaling.Builder, - com.google.container.v1.VerticalPodAutoscalingOrBuilder> - verticalPodAutoscalingBuilder_; - /** - * - * - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - * - * @return Whether the verticalPodAutoscaling field is set. - */ - public boolean hasVerticalPodAutoscaling() { - return ((bitField0_ & 0x20000000) != 0); - } - /** - * - * - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - * - * @return The verticalPodAutoscaling. - */ - public com.google.container.v1.VerticalPodAutoscaling getVerticalPodAutoscaling() { - if (verticalPodAutoscalingBuilder_ == null) { - return verticalPodAutoscaling_ == null - ? com.google.container.v1.VerticalPodAutoscaling.getDefaultInstance() - : verticalPodAutoscaling_; - } else { - return verticalPodAutoscalingBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - */ - public Builder setVerticalPodAutoscaling(com.google.container.v1.VerticalPodAutoscaling value) { - if (verticalPodAutoscalingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - verticalPodAutoscaling_ = value; - } else { - verticalPodAutoscalingBuilder_.setMessage(value); - } - bitField0_ |= 0x20000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - */ - public Builder setVerticalPodAutoscaling( - com.google.container.v1.VerticalPodAutoscaling.Builder builderForValue) { - if (verticalPodAutoscalingBuilder_ == null) { - verticalPodAutoscaling_ = builderForValue.build(); - } else { - verticalPodAutoscalingBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x20000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - */ - public Builder mergeVerticalPodAutoscaling( - com.google.container.v1.VerticalPodAutoscaling value) { - if (verticalPodAutoscalingBuilder_ == null) { - if (((bitField0_ & 0x20000000) != 0) - && verticalPodAutoscaling_ != null - && verticalPodAutoscaling_ - != com.google.container.v1.VerticalPodAutoscaling.getDefaultInstance()) { - getVerticalPodAutoscalingBuilder().mergeFrom(value); - } else { - verticalPodAutoscaling_ = value; - } - } else { - verticalPodAutoscalingBuilder_.mergeFrom(value); - } - if (verticalPodAutoscaling_ != null) { - bitField0_ |= 0x20000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - */ - public Builder clearVerticalPodAutoscaling() { - bitField0_ = (bitField0_ & ~0x20000000); - verticalPodAutoscaling_ = null; - if (verticalPodAutoscalingBuilder_ != null) { - verticalPodAutoscalingBuilder_.dispose(); - verticalPodAutoscalingBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - */ - public com.google.container.v1.VerticalPodAutoscaling.Builder - getVerticalPodAutoscalingBuilder() { - bitField0_ |= 0x20000000; - onChanged(); - return getVerticalPodAutoscalingFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - */ - public com.google.container.v1.VerticalPodAutoscalingOrBuilder - getVerticalPodAutoscalingOrBuilder() { - if (verticalPodAutoscalingBuilder_ != null) { - return verticalPodAutoscalingBuilder_.getMessageOrBuilder(); - } else { - return verticalPodAutoscaling_ == null - ? com.google.container.v1.VerticalPodAutoscaling.getDefaultInstance() - : verticalPodAutoscaling_; - } - } - /** - * - * - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.VerticalPodAutoscaling, - com.google.container.v1.VerticalPodAutoscaling.Builder, - com.google.container.v1.VerticalPodAutoscalingOrBuilder> - getVerticalPodAutoscalingFieldBuilder() { - if (verticalPodAutoscalingBuilder_ == null) { - verticalPodAutoscalingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.VerticalPodAutoscaling, - com.google.container.v1.VerticalPodAutoscaling.Builder, - com.google.container.v1.VerticalPodAutoscalingOrBuilder>( - getVerticalPodAutoscaling(), getParentForChildren(), isClean()); - verticalPodAutoscaling_ = null; - } - return verticalPodAutoscalingBuilder_; - } - - private com.google.container.v1.ShieldedNodes shieldedNodes_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ShieldedNodes, - com.google.container.v1.ShieldedNodes.Builder, - com.google.container.v1.ShieldedNodesOrBuilder> - shieldedNodesBuilder_; - /** - * - * - *
-     * Shielded Nodes configuration.
-     * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - * - * @return Whether the shieldedNodes field is set. - */ - public boolean hasShieldedNodes() { - return ((bitField0_ & 0x40000000) != 0); - } - /** - * - * - *
-     * Shielded Nodes configuration.
-     * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - * - * @return The shieldedNodes. - */ - public com.google.container.v1.ShieldedNodes getShieldedNodes() { - if (shieldedNodesBuilder_ == null) { - return shieldedNodes_ == null - ? com.google.container.v1.ShieldedNodes.getDefaultInstance() - : shieldedNodes_; - } else { - return shieldedNodesBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Shielded Nodes configuration.
-     * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - */ - public Builder setShieldedNodes(com.google.container.v1.ShieldedNodes value) { - if (shieldedNodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - shieldedNodes_ = value; - } else { - shieldedNodesBuilder_.setMessage(value); - } - bitField0_ |= 0x40000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Shielded Nodes configuration.
-     * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - */ - public Builder setShieldedNodes(com.google.container.v1.ShieldedNodes.Builder builderForValue) { - if (shieldedNodesBuilder_ == null) { - shieldedNodes_ = builderForValue.build(); - } else { - shieldedNodesBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x40000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Shielded Nodes configuration.
-     * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - */ - public Builder mergeShieldedNodes(com.google.container.v1.ShieldedNodes value) { - if (shieldedNodesBuilder_ == null) { - if (((bitField0_ & 0x40000000) != 0) - && shieldedNodes_ != null - && shieldedNodes_ != com.google.container.v1.ShieldedNodes.getDefaultInstance()) { - getShieldedNodesBuilder().mergeFrom(value); - } else { - shieldedNodes_ = value; - } - } else { - shieldedNodesBuilder_.mergeFrom(value); - } - if (shieldedNodes_ != null) { - bitField0_ |= 0x40000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Shielded Nodes configuration.
-     * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - */ - public Builder clearShieldedNodes() { - bitField0_ = (bitField0_ & ~0x40000000); - shieldedNodes_ = null; - if (shieldedNodesBuilder_ != null) { - shieldedNodesBuilder_.dispose(); - shieldedNodesBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Shielded Nodes configuration.
-     * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - */ - public com.google.container.v1.ShieldedNodes.Builder getShieldedNodesBuilder() { - bitField0_ |= 0x40000000; - onChanged(); - return getShieldedNodesFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Shielded Nodes configuration.
-     * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - */ - public com.google.container.v1.ShieldedNodesOrBuilder getShieldedNodesOrBuilder() { - if (shieldedNodesBuilder_ != null) { - return shieldedNodesBuilder_.getMessageOrBuilder(); - } else { - return shieldedNodes_ == null - ? com.google.container.v1.ShieldedNodes.getDefaultInstance() - : shieldedNodes_; - } - } - /** - * - * - *
-     * Shielded Nodes configuration.
-     * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ShieldedNodes, - com.google.container.v1.ShieldedNodes.Builder, - com.google.container.v1.ShieldedNodesOrBuilder> - getShieldedNodesFieldBuilder() { - if (shieldedNodesBuilder_ == null) { - shieldedNodesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ShieldedNodes, - com.google.container.v1.ShieldedNodes.Builder, - com.google.container.v1.ShieldedNodesOrBuilder>( - getShieldedNodes(), getParentForChildren(), isClean()); - shieldedNodes_ = null; - } - return shieldedNodesBuilder_; - } - - private com.google.container.v1.ReleaseChannel releaseChannel_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ReleaseChannel, - com.google.container.v1.ReleaseChannel.Builder, - com.google.container.v1.ReleaseChannelOrBuilder> - releaseChannelBuilder_; - /** - * - * - *
-     * Release channel configuration. If left unspecified on cluster creation and
-     * a version is specified, the cluster is enrolled in the most mature release
-     * channel where the version is available (first checking STABLE, then
-     * REGULAR, and finally RAPID). Otherwise, if no release channel
-     * configuration and no version is specified, the cluster is enrolled in the
-     * REGULAR channel with its default version.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - * - * @return Whether the releaseChannel field is set. - */ - public boolean hasReleaseChannel() { - return ((bitField0_ & 0x80000000) != 0); - } - /** - * - * - *
-     * Release channel configuration. If left unspecified on cluster creation and
-     * a version is specified, the cluster is enrolled in the most mature release
-     * channel where the version is available (first checking STABLE, then
-     * REGULAR, and finally RAPID). Otherwise, if no release channel
-     * configuration and no version is specified, the cluster is enrolled in the
-     * REGULAR channel with its default version.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - * - * @return The releaseChannel. - */ - public com.google.container.v1.ReleaseChannel getReleaseChannel() { - if (releaseChannelBuilder_ == null) { - return releaseChannel_ == null - ? com.google.container.v1.ReleaseChannel.getDefaultInstance() - : releaseChannel_; - } else { - return releaseChannelBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Release channel configuration. If left unspecified on cluster creation and
-     * a version is specified, the cluster is enrolled in the most mature release
-     * channel where the version is available (first checking STABLE, then
-     * REGULAR, and finally RAPID). Otherwise, if no release channel
-     * configuration and no version is specified, the cluster is enrolled in the
-     * REGULAR channel with its default version.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - */ - public Builder setReleaseChannel(com.google.container.v1.ReleaseChannel value) { - if (releaseChannelBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - releaseChannel_ = value; - } else { - releaseChannelBuilder_.setMessage(value); - } - bitField0_ |= 0x80000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Release channel configuration. If left unspecified on cluster creation and
-     * a version is specified, the cluster is enrolled in the most mature release
-     * channel where the version is available (first checking STABLE, then
-     * REGULAR, and finally RAPID). Otherwise, if no release channel
-     * configuration and no version is specified, the cluster is enrolled in the
-     * REGULAR channel with its default version.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - */ - public Builder setReleaseChannel( - com.google.container.v1.ReleaseChannel.Builder builderForValue) { - if (releaseChannelBuilder_ == null) { - releaseChannel_ = builderForValue.build(); - } else { - releaseChannelBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x80000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Release channel configuration. If left unspecified on cluster creation and
-     * a version is specified, the cluster is enrolled in the most mature release
-     * channel where the version is available (first checking STABLE, then
-     * REGULAR, and finally RAPID). Otherwise, if no release channel
-     * configuration and no version is specified, the cluster is enrolled in the
-     * REGULAR channel with its default version.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - */ - public Builder mergeReleaseChannel(com.google.container.v1.ReleaseChannel value) { - if (releaseChannelBuilder_ == null) { - if (((bitField0_ & 0x80000000) != 0) - && releaseChannel_ != null - && releaseChannel_ != com.google.container.v1.ReleaseChannel.getDefaultInstance()) { - getReleaseChannelBuilder().mergeFrom(value); - } else { - releaseChannel_ = value; - } - } else { - releaseChannelBuilder_.mergeFrom(value); - } - if (releaseChannel_ != null) { - bitField0_ |= 0x80000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Release channel configuration. If left unspecified on cluster creation and
-     * a version is specified, the cluster is enrolled in the most mature release
-     * channel where the version is available (first checking STABLE, then
-     * REGULAR, and finally RAPID). Otherwise, if no release channel
-     * configuration and no version is specified, the cluster is enrolled in the
-     * REGULAR channel with its default version.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - */ - public Builder clearReleaseChannel() { - bitField0_ = (bitField0_ & ~0x80000000); - releaseChannel_ = null; - if (releaseChannelBuilder_ != null) { - releaseChannelBuilder_.dispose(); - releaseChannelBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Release channel configuration. If left unspecified on cluster creation and
-     * a version is specified, the cluster is enrolled in the most mature release
-     * channel where the version is available (first checking STABLE, then
-     * REGULAR, and finally RAPID). Otherwise, if no release channel
-     * configuration and no version is specified, the cluster is enrolled in the
-     * REGULAR channel with its default version.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - */ - public com.google.container.v1.ReleaseChannel.Builder getReleaseChannelBuilder() { - bitField0_ |= 0x80000000; - onChanged(); - return getReleaseChannelFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Release channel configuration. If left unspecified on cluster creation and
-     * a version is specified, the cluster is enrolled in the most mature release
-     * channel where the version is available (first checking STABLE, then
-     * REGULAR, and finally RAPID). Otherwise, if no release channel
-     * configuration and no version is specified, the cluster is enrolled in the
-     * REGULAR channel with its default version.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - */ - public com.google.container.v1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder() { - if (releaseChannelBuilder_ != null) { - return releaseChannelBuilder_.getMessageOrBuilder(); - } else { - return releaseChannel_ == null - ? com.google.container.v1.ReleaseChannel.getDefaultInstance() - : releaseChannel_; - } - } - /** - * - * - *
-     * Release channel configuration. If left unspecified on cluster creation and
-     * a version is specified, the cluster is enrolled in the most mature release
-     * channel where the version is available (first checking STABLE, then
-     * REGULAR, and finally RAPID). Otherwise, if no release channel
-     * configuration and no version is specified, the cluster is enrolled in the
-     * REGULAR channel with its default version.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ReleaseChannel, - com.google.container.v1.ReleaseChannel.Builder, - com.google.container.v1.ReleaseChannelOrBuilder> - getReleaseChannelFieldBuilder() { - if (releaseChannelBuilder_ == null) { - releaseChannelBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ReleaseChannel, - com.google.container.v1.ReleaseChannel.Builder, - com.google.container.v1.ReleaseChannelOrBuilder>( - getReleaseChannel(), getParentForChildren(), isClean()); - releaseChannel_ = null; - } - return releaseChannelBuilder_; - } - - private com.google.container.v1.WorkloadIdentityConfig workloadIdentityConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WorkloadIdentityConfig, - com.google.container.v1.WorkloadIdentityConfig.Builder, - com.google.container.v1.WorkloadIdentityConfigOrBuilder> - workloadIdentityConfigBuilder_; - /** - * - * - *
-     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-     * policies.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - * - * @return Whether the workloadIdentityConfig field is set. - */ - public boolean hasWorkloadIdentityConfig() { - return ((bitField1_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-     * policies.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - * - * @return The workloadIdentityConfig. - */ - public com.google.container.v1.WorkloadIdentityConfig getWorkloadIdentityConfig() { - if (workloadIdentityConfigBuilder_ == null) { - return workloadIdentityConfig_ == null - ? com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance() - : workloadIdentityConfig_; - } else { - return workloadIdentityConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-     * policies.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - */ - public Builder setWorkloadIdentityConfig(com.google.container.v1.WorkloadIdentityConfig value) { - if (workloadIdentityConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workloadIdentityConfig_ = value; - } else { - workloadIdentityConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-     * policies.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - */ - public Builder setWorkloadIdentityConfig( - com.google.container.v1.WorkloadIdentityConfig.Builder builderForValue) { - if (workloadIdentityConfigBuilder_ == null) { - workloadIdentityConfig_ = builderForValue.build(); - } else { - workloadIdentityConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-     * policies.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - */ - public Builder mergeWorkloadIdentityConfig( - com.google.container.v1.WorkloadIdentityConfig value) { - if (workloadIdentityConfigBuilder_ == null) { - if (((bitField1_ & 0x00000001) != 0) - && workloadIdentityConfig_ != null - && workloadIdentityConfig_ - != com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance()) { - getWorkloadIdentityConfigBuilder().mergeFrom(value); - } else { - workloadIdentityConfig_ = value; - } - } else { - workloadIdentityConfigBuilder_.mergeFrom(value); - } - if (workloadIdentityConfig_ != null) { - bitField1_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-     * policies.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - */ - public Builder clearWorkloadIdentityConfig() { - bitField1_ = (bitField1_ & ~0x00000001); - workloadIdentityConfig_ = null; - if (workloadIdentityConfigBuilder_ != null) { - workloadIdentityConfigBuilder_.dispose(); - workloadIdentityConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-     * policies.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - */ - public com.google.container.v1.WorkloadIdentityConfig.Builder - getWorkloadIdentityConfigBuilder() { - bitField1_ |= 0x00000001; - onChanged(); - return getWorkloadIdentityConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-     * policies.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - */ - public com.google.container.v1.WorkloadIdentityConfigOrBuilder - getWorkloadIdentityConfigOrBuilder() { - if (workloadIdentityConfigBuilder_ != null) { - return workloadIdentityConfigBuilder_.getMessageOrBuilder(); - } else { - return workloadIdentityConfig_ == null - ? com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance() - : workloadIdentityConfig_; - } - } - /** - * - * - *
-     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-     * policies.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WorkloadIdentityConfig, - com.google.container.v1.WorkloadIdentityConfig.Builder, - com.google.container.v1.WorkloadIdentityConfigOrBuilder> - getWorkloadIdentityConfigFieldBuilder() { - if (workloadIdentityConfigBuilder_ == null) { - workloadIdentityConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WorkloadIdentityConfig, - com.google.container.v1.WorkloadIdentityConfig.Builder, - com.google.container.v1.WorkloadIdentityConfigOrBuilder>( - getWorkloadIdentityConfig(), getParentForChildren(), isClean()); - workloadIdentityConfig_ = null; - } - return workloadIdentityConfigBuilder_; - } - - private com.google.container.v1.MeshCertificates meshCertificates_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MeshCertificates, - com.google.container.v1.MeshCertificates.Builder, - com.google.container.v1.MeshCertificatesOrBuilder> - meshCertificatesBuilder_; - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1.MeshCertificates mesh_certificates = 67; - * - * @return Whether the meshCertificates field is set. - */ - public boolean hasMeshCertificates() { - return ((bitField1_ & 0x00000002) != 0); - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1.MeshCertificates mesh_certificates = 67; - * - * @return The meshCertificates. - */ - public com.google.container.v1.MeshCertificates getMeshCertificates() { - if (meshCertificatesBuilder_ == null) { - return meshCertificates_ == null - ? com.google.container.v1.MeshCertificates.getDefaultInstance() - : meshCertificates_; - } else { - return meshCertificatesBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1.MeshCertificates mesh_certificates = 67; - */ - public Builder setMeshCertificates(com.google.container.v1.MeshCertificates value) { - if (meshCertificatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - meshCertificates_ = value; - } else { - meshCertificatesBuilder_.setMessage(value); - } - bitField1_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1.MeshCertificates mesh_certificates = 67; - */ - public Builder setMeshCertificates( - com.google.container.v1.MeshCertificates.Builder builderForValue) { - if (meshCertificatesBuilder_ == null) { - meshCertificates_ = builderForValue.build(); - } else { - meshCertificatesBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1.MeshCertificates mesh_certificates = 67; - */ - public Builder mergeMeshCertificates(com.google.container.v1.MeshCertificates value) { - if (meshCertificatesBuilder_ == null) { - if (((bitField1_ & 0x00000002) != 0) - && meshCertificates_ != null - && meshCertificates_ != com.google.container.v1.MeshCertificates.getDefaultInstance()) { - getMeshCertificatesBuilder().mergeFrom(value); - } else { - meshCertificates_ = value; - } - } else { - meshCertificatesBuilder_.mergeFrom(value); - } - if (meshCertificates_ != null) { - bitField1_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1.MeshCertificates mesh_certificates = 67; - */ - public Builder clearMeshCertificates() { - bitField1_ = (bitField1_ & ~0x00000002); - meshCertificates_ = null; - if (meshCertificatesBuilder_ != null) { - meshCertificatesBuilder_.dispose(); - meshCertificatesBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1.MeshCertificates mesh_certificates = 67; - */ - public com.google.container.v1.MeshCertificates.Builder getMeshCertificatesBuilder() { - bitField1_ |= 0x00000002; - onChanged(); - return getMeshCertificatesFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1.MeshCertificates mesh_certificates = 67; - */ - public com.google.container.v1.MeshCertificatesOrBuilder getMeshCertificatesOrBuilder() { - if (meshCertificatesBuilder_ != null) { - return meshCertificatesBuilder_.getMessageOrBuilder(); - } else { - return meshCertificates_ == null - ? com.google.container.v1.MeshCertificates.getDefaultInstance() - : meshCertificates_; - } - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1.MeshCertificates mesh_certificates = 67; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MeshCertificates, - com.google.container.v1.MeshCertificates.Builder, - com.google.container.v1.MeshCertificatesOrBuilder> - getMeshCertificatesFieldBuilder() { - if (meshCertificatesBuilder_ == null) { - meshCertificatesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MeshCertificates, - com.google.container.v1.MeshCertificates.Builder, - com.google.container.v1.MeshCertificatesOrBuilder>( - getMeshCertificates(), getParentForChildren(), isClean()); - meshCertificates_ = null; - } - return meshCertificatesBuilder_; - } - - private com.google.container.v1.CostManagementConfig costManagementConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.CostManagementConfig, - com.google.container.v1.CostManagementConfig.Builder, - com.google.container.v1.CostManagementConfigOrBuilder> - costManagementConfigBuilder_; - /** - * - * - *
-     * Configuration for the fine-grained cost management feature.
-     * 
- * - * .google.container.v1.CostManagementConfig cost_management_config = 45; - * - * @return Whether the costManagementConfig field is set. - */ - public boolean hasCostManagementConfig() { - return ((bitField1_ & 0x00000004) != 0); - } - /** - * - * - *
-     * Configuration for the fine-grained cost management feature.
-     * 
- * - * .google.container.v1.CostManagementConfig cost_management_config = 45; - * - * @return The costManagementConfig. - */ - public com.google.container.v1.CostManagementConfig getCostManagementConfig() { - if (costManagementConfigBuilder_ == null) { - return costManagementConfig_ == null - ? com.google.container.v1.CostManagementConfig.getDefaultInstance() - : costManagementConfig_; - } else { - return costManagementConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for the fine-grained cost management feature.
-     * 
- * - * .google.container.v1.CostManagementConfig cost_management_config = 45; - */ - public Builder setCostManagementConfig(com.google.container.v1.CostManagementConfig value) { - if (costManagementConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - costManagementConfig_ = value; - } else { - costManagementConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the fine-grained cost management feature.
-     * 
- * - * .google.container.v1.CostManagementConfig cost_management_config = 45; - */ - public Builder setCostManagementConfig( - com.google.container.v1.CostManagementConfig.Builder builderForValue) { - if (costManagementConfigBuilder_ == null) { - costManagementConfig_ = builderForValue.build(); - } else { - costManagementConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the fine-grained cost management feature.
-     * 
- * - * .google.container.v1.CostManagementConfig cost_management_config = 45; - */ - public Builder mergeCostManagementConfig(com.google.container.v1.CostManagementConfig value) { - if (costManagementConfigBuilder_ == null) { - if (((bitField1_ & 0x00000004) != 0) - && costManagementConfig_ != null - && costManagementConfig_ - != com.google.container.v1.CostManagementConfig.getDefaultInstance()) { - getCostManagementConfigBuilder().mergeFrom(value); - } else { - costManagementConfig_ = value; - } - } else { - costManagementConfigBuilder_.mergeFrom(value); - } - if (costManagementConfig_ != null) { - bitField1_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for the fine-grained cost management feature.
-     * 
- * - * .google.container.v1.CostManagementConfig cost_management_config = 45; - */ - public Builder clearCostManagementConfig() { - bitField1_ = (bitField1_ & ~0x00000004); - costManagementConfig_ = null; - if (costManagementConfigBuilder_ != null) { - costManagementConfigBuilder_.dispose(); - costManagementConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the fine-grained cost management feature.
-     * 
- * - * .google.container.v1.CostManagementConfig cost_management_config = 45; - */ - public com.google.container.v1.CostManagementConfig.Builder getCostManagementConfigBuilder() { - bitField1_ |= 0x00000004; - onChanged(); - return getCostManagementConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for the fine-grained cost management feature.
-     * 
- * - * .google.container.v1.CostManagementConfig cost_management_config = 45; - */ - public com.google.container.v1.CostManagementConfigOrBuilder - getCostManagementConfigOrBuilder() { - if (costManagementConfigBuilder_ != null) { - return costManagementConfigBuilder_.getMessageOrBuilder(); - } else { - return costManagementConfig_ == null - ? com.google.container.v1.CostManagementConfig.getDefaultInstance() - : costManagementConfig_; - } - } - /** - * - * - *
-     * Configuration for the fine-grained cost management feature.
-     * 
- * - * .google.container.v1.CostManagementConfig cost_management_config = 45; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.CostManagementConfig, - com.google.container.v1.CostManagementConfig.Builder, - com.google.container.v1.CostManagementConfigOrBuilder> - getCostManagementConfigFieldBuilder() { - if (costManagementConfigBuilder_ == null) { - costManagementConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.CostManagementConfig, - com.google.container.v1.CostManagementConfig.Builder, - com.google.container.v1.CostManagementConfigOrBuilder>( - getCostManagementConfig(), getParentForChildren(), isClean()); - costManagementConfig_ = null; - } - return costManagementConfigBuilder_; - } - - private com.google.container.v1.NotificationConfig notificationConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NotificationConfig, - com.google.container.v1.NotificationConfig.Builder, - com.google.container.v1.NotificationConfigOrBuilder> - notificationConfigBuilder_; - /** - * - * - *
-     * Notification configuration of the cluster.
-     * 
- * - * .google.container.v1.NotificationConfig notification_config = 49; - * - * @return Whether the notificationConfig field is set. - */ - public boolean hasNotificationConfig() { - return ((bitField1_ & 0x00000008) != 0); - } - /** - * - * - *
-     * Notification configuration of the cluster.
-     * 
- * - * .google.container.v1.NotificationConfig notification_config = 49; - * - * @return The notificationConfig. - */ - public com.google.container.v1.NotificationConfig getNotificationConfig() { - if (notificationConfigBuilder_ == null) { - return notificationConfig_ == null - ? com.google.container.v1.NotificationConfig.getDefaultInstance() - : notificationConfig_; - } else { - return notificationConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Notification configuration of the cluster.
-     * 
- * - * .google.container.v1.NotificationConfig notification_config = 49; - */ - public Builder setNotificationConfig(com.google.container.v1.NotificationConfig value) { - if (notificationConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - notificationConfig_ = value; - } else { - notificationConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Notification configuration of the cluster.
-     * 
- * - * .google.container.v1.NotificationConfig notification_config = 49; - */ - public Builder setNotificationConfig( - com.google.container.v1.NotificationConfig.Builder builderForValue) { - if (notificationConfigBuilder_ == null) { - notificationConfig_ = builderForValue.build(); - } else { - notificationConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Notification configuration of the cluster.
-     * 
- * - * .google.container.v1.NotificationConfig notification_config = 49; - */ - public Builder mergeNotificationConfig(com.google.container.v1.NotificationConfig value) { - if (notificationConfigBuilder_ == null) { - if (((bitField1_ & 0x00000008) != 0) - && notificationConfig_ != null - && notificationConfig_ - != com.google.container.v1.NotificationConfig.getDefaultInstance()) { - getNotificationConfigBuilder().mergeFrom(value); - } else { - notificationConfig_ = value; - } - } else { - notificationConfigBuilder_.mergeFrom(value); - } - if (notificationConfig_ != null) { - bitField1_ |= 0x00000008; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Notification configuration of the cluster.
-     * 
- * - * .google.container.v1.NotificationConfig notification_config = 49; - */ - public Builder clearNotificationConfig() { - bitField1_ = (bitField1_ & ~0x00000008); - notificationConfig_ = null; - if (notificationConfigBuilder_ != null) { - notificationConfigBuilder_.dispose(); - notificationConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Notification configuration of the cluster.
-     * 
- * - * .google.container.v1.NotificationConfig notification_config = 49; - */ - public com.google.container.v1.NotificationConfig.Builder getNotificationConfigBuilder() { - bitField1_ |= 0x00000008; - onChanged(); - return getNotificationConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Notification configuration of the cluster.
-     * 
- * - * .google.container.v1.NotificationConfig notification_config = 49; - */ - public com.google.container.v1.NotificationConfigOrBuilder getNotificationConfigOrBuilder() { - if (notificationConfigBuilder_ != null) { - return notificationConfigBuilder_.getMessageOrBuilder(); - } else { - return notificationConfig_ == null - ? com.google.container.v1.NotificationConfig.getDefaultInstance() - : notificationConfig_; - } - } - /** - * - * - *
-     * Notification configuration of the cluster.
-     * 
- * - * .google.container.v1.NotificationConfig notification_config = 49; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NotificationConfig, - com.google.container.v1.NotificationConfig.Builder, - com.google.container.v1.NotificationConfigOrBuilder> - getNotificationConfigFieldBuilder() { - if (notificationConfigBuilder_ == null) { - notificationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NotificationConfig, - com.google.container.v1.NotificationConfig.Builder, - com.google.container.v1.NotificationConfigOrBuilder>( - getNotificationConfig(), getParentForChildren(), isClean()); - notificationConfig_ = null; - } - return notificationConfigBuilder_; - } - - private com.google.container.v1.ConfidentialNodes confidentialNodes_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ConfidentialNodes, - com.google.container.v1.ConfidentialNodes.Builder, - com.google.container.v1.ConfidentialNodesOrBuilder> - confidentialNodesBuilder_; - /** - * - * - *
-     * Configuration of Confidential Nodes.
-     * All the nodes in the cluster will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 50; - * - * @return Whether the confidentialNodes field is set. - */ - public boolean hasConfidentialNodes() { - return ((bitField1_ & 0x00000010) != 0); - } - /** - * - * - *
-     * Configuration of Confidential Nodes.
-     * All the nodes in the cluster will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 50; - * - * @return The confidentialNodes. - */ - public com.google.container.v1.ConfidentialNodes getConfidentialNodes() { - if (confidentialNodesBuilder_ == null) { - return confidentialNodes_ == null - ? com.google.container.v1.ConfidentialNodes.getDefaultInstance() - : confidentialNodes_; - } else { - return confidentialNodesBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration of Confidential Nodes.
-     * All the nodes in the cluster will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 50; - */ - public Builder setConfidentialNodes(com.google.container.v1.ConfidentialNodes value) { - if (confidentialNodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - confidentialNodes_ = value; - } else { - confidentialNodesBuilder_.setMessage(value); - } - bitField1_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration of Confidential Nodes.
-     * All the nodes in the cluster will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 50; - */ - public Builder setConfidentialNodes( - com.google.container.v1.ConfidentialNodes.Builder builderForValue) { - if (confidentialNodesBuilder_ == null) { - confidentialNodes_ = builderForValue.build(); - } else { - confidentialNodesBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration of Confidential Nodes.
-     * All the nodes in the cluster will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 50; - */ - public Builder mergeConfidentialNodes(com.google.container.v1.ConfidentialNodes value) { - if (confidentialNodesBuilder_ == null) { - if (((bitField1_ & 0x00000010) != 0) - && confidentialNodes_ != null - && confidentialNodes_ - != com.google.container.v1.ConfidentialNodes.getDefaultInstance()) { - getConfidentialNodesBuilder().mergeFrom(value); - } else { - confidentialNodes_ = value; - } - } else { - confidentialNodesBuilder_.mergeFrom(value); - } - if (confidentialNodes_ != null) { - bitField1_ |= 0x00000010; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration of Confidential Nodes.
-     * All the nodes in the cluster will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 50; - */ - public Builder clearConfidentialNodes() { - bitField1_ = (bitField1_ & ~0x00000010); - confidentialNodes_ = null; - if (confidentialNodesBuilder_ != null) { - confidentialNodesBuilder_.dispose(); - confidentialNodesBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration of Confidential Nodes.
-     * All the nodes in the cluster will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 50; - */ - public com.google.container.v1.ConfidentialNodes.Builder getConfidentialNodesBuilder() { - bitField1_ |= 0x00000010; - onChanged(); - return getConfidentialNodesFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration of Confidential Nodes.
-     * All the nodes in the cluster will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 50; - */ - public com.google.container.v1.ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder() { - if (confidentialNodesBuilder_ != null) { - return confidentialNodesBuilder_.getMessageOrBuilder(); - } else { - return confidentialNodes_ == null - ? com.google.container.v1.ConfidentialNodes.getDefaultInstance() - : confidentialNodes_; - } - } - /** - * - * - *
-     * Configuration of Confidential Nodes.
-     * All the nodes in the cluster will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 50; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ConfidentialNodes, - com.google.container.v1.ConfidentialNodes.Builder, - com.google.container.v1.ConfidentialNodesOrBuilder> - getConfidentialNodesFieldBuilder() { - if (confidentialNodesBuilder_ == null) { - confidentialNodesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ConfidentialNodes, - com.google.container.v1.ConfidentialNodes.Builder, - com.google.container.v1.ConfidentialNodesOrBuilder>( - getConfidentialNodes(), getParentForChildren(), isClean()); - confidentialNodes_ = null; - } - return confidentialNodesBuilder_; - } - - private com.google.container.v1.IdentityServiceConfig identityServiceConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.IdentityServiceConfig, - com.google.container.v1.IdentityServiceConfig.Builder, - com.google.container.v1.IdentityServiceConfigOrBuilder> - identityServiceConfigBuilder_; - /** - * - * - *
-     * Configuration for Identity Service component.
-     * 
- * - * .google.container.v1.IdentityServiceConfig identity_service_config = 54; - * - * @return Whether the identityServiceConfig field is set. - */ - public boolean hasIdentityServiceConfig() { - return ((bitField1_ & 0x00000020) != 0); - } - /** - * - * - *
-     * Configuration for Identity Service component.
-     * 
- * - * .google.container.v1.IdentityServiceConfig identity_service_config = 54; - * - * @return The identityServiceConfig. - */ - public com.google.container.v1.IdentityServiceConfig getIdentityServiceConfig() { - if (identityServiceConfigBuilder_ == null) { - return identityServiceConfig_ == null - ? com.google.container.v1.IdentityServiceConfig.getDefaultInstance() - : identityServiceConfig_; - } else { - return identityServiceConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for Identity Service component.
-     * 
- * - * .google.container.v1.IdentityServiceConfig identity_service_config = 54; - */ - public Builder setIdentityServiceConfig(com.google.container.v1.IdentityServiceConfig value) { - if (identityServiceConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - identityServiceConfig_ = value; - } else { - identityServiceConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for Identity Service component.
-     * 
- * - * .google.container.v1.IdentityServiceConfig identity_service_config = 54; - */ - public Builder setIdentityServiceConfig( - com.google.container.v1.IdentityServiceConfig.Builder builderForValue) { - if (identityServiceConfigBuilder_ == null) { - identityServiceConfig_ = builderForValue.build(); - } else { - identityServiceConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for Identity Service component.
-     * 
- * - * .google.container.v1.IdentityServiceConfig identity_service_config = 54; - */ - public Builder mergeIdentityServiceConfig(com.google.container.v1.IdentityServiceConfig value) { - if (identityServiceConfigBuilder_ == null) { - if (((bitField1_ & 0x00000020) != 0) - && identityServiceConfig_ != null - && identityServiceConfig_ - != com.google.container.v1.IdentityServiceConfig.getDefaultInstance()) { - getIdentityServiceConfigBuilder().mergeFrom(value); - } else { - identityServiceConfig_ = value; - } - } else { - identityServiceConfigBuilder_.mergeFrom(value); - } - if (identityServiceConfig_ != null) { - bitField1_ |= 0x00000020; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for Identity Service component.
-     * 
- * - * .google.container.v1.IdentityServiceConfig identity_service_config = 54; - */ - public Builder clearIdentityServiceConfig() { - bitField1_ = (bitField1_ & ~0x00000020); - identityServiceConfig_ = null; - if (identityServiceConfigBuilder_ != null) { - identityServiceConfigBuilder_.dispose(); - identityServiceConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for Identity Service component.
-     * 
- * - * .google.container.v1.IdentityServiceConfig identity_service_config = 54; - */ - public com.google.container.v1.IdentityServiceConfig.Builder getIdentityServiceConfigBuilder() { - bitField1_ |= 0x00000020; - onChanged(); - return getIdentityServiceConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for Identity Service component.
-     * 
- * - * .google.container.v1.IdentityServiceConfig identity_service_config = 54; - */ - public com.google.container.v1.IdentityServiceConfigOrBuilder - getIdentityServiceConfigOrBuilder() { - if (identityServiceConfigBuilder_ != null) { - return identityServiceConfigBuilder_.getMessageOrBuilder(); - } else { - return identityServiceConfig_ == null - ? com.google.container.v1.IdentityServiceConfig.getDefaultInstance() - : identityServiceConfig_; - } - } - /** - * - * - *
-     * Configuration for Identity Service component.
-     * 
- * - * .google.container.v1.IdentityServiceConfig identity_service_config = 54; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.IdentityServiceConfig, - com.google.container.v1.IdentityServiceConfig.Builder, - com.google.container.v1.IdentityServiceConfigOrBuilder> - getIdentityServiceConfigFieldBuilder() { - if (identityServiceConfigBuilder_ == null) { - identityServiceConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.IdentityServiceConfig, - com.google.container.v1.IdentityServiceConfig.Builder, - com.google.container.v1.IdentityServiceConfigOrBuilder>( - getIdentityServiceConfig(), getParentForChildren(), isClean()); - identityServiceConfig_ = null; - } - return identityServiceConfigBuilder_; - } - - 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; - bitField1_ |= 0x00000040; - 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(); - bitField1_ = (bitField1_ & ~0x00000040); - 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; - bitField1_ |= 0x00000040; - 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]; - * - * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1853 - * @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]; - * - * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1853 - * @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]; - * - * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1853 - * @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; - bitField1_ |= 0x00000080; - 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]; - * - * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1853 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField1_ = (bitField1_ & ~0x00000080); - 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]; - * - * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1853 - * @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; - bitField1_ |= 0x00000080; - 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; - bitField1_ |= 0x00000100; - 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(); - bitField1_ = (bitField1_ & ~0x00000100); - 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; - bitField1_ |= 0x00000100; - 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; - bitField1_ |= 0x00000200; - 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(); - bitField1_ = (bitField1_ & ~0x00000200); - 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; - bitField1_ |= 0x00000200; - 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; - bitField1_ |= 0x00000400; - 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(); - bitField1_ = (bitField1_ & ~0x00000400); - 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; - bitField1_ |= 0x00000400; - onChanged(); - return this; - } - - private java.lang.Object currentNodeVersion_ = ""; - /** - * - * - *
-     * [Output only] Deprecated, use
-     * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
-     * instead. The current version of the node software components. If they are
-     * currently at multiple versions because they're in the process of being
-     * upgraded, this reflects the minimum version of all nodes.
-     * 
- * - * string current_node_version = 105 [deprecated = true]; - * - * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1886 - * @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
-     * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
-     * instead. The current version of the node software components. If they are
-     * currently at multiple versions because they're in the process of being
-     * upgraded, this reflects the minimum version of all nodes.
-     * 
- * - * string current_node_version = 105 [deprecated = true]; - * - * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1886 - * @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
-     * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
-     * instead. The current version of the node software components. If they are
-     * currently at multiple versions because they're in the process of being
-     * upgraded, this reflects the minimum version of all nodes.
-     * 
- * - * string current_node_version = 105 [deprecated = true]; - * - * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1886 - * @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; - bitField1_ |= 0x00000800; - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] Deprecated, use
-     * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
-     * instead. The current version of the node software components. If they are
-     * currently at multiple versions because they're in the process of being
-     * upgraded, this reflects the minimum version of all nodes.
-     * 
- * - * string current_node_version = 105 [deprecated = true]; - * - * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1886 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearCurrentNodeVersion() { - currentNodeVersion_ = getDefaultInstance().getCurrentNodeVersion(); - bitField1_ = (bitField1_ & ~0x00000800); - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] Deprecated, use
-     * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
-     * instead. The current version of the node software components. If they are
-     * currently at multiple versions because they're in the process of being
-     * upgraded, this reflects the minimum version of all nodes.
-     * 
- * - * string current_node_version = 105 [deprecated = true]; - * - * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1886 - * @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; - bitField1_ |= 0x00000800; - 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; - bitField1_ |= 0x00001000; - 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(); - bitField1_ = (bitField1_ & ~0x00001000); - 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; - bitField1_ |= 0x00001000; - onChanged(); - return this; - } - - private int status_ = 0; - /** - * - * - *
-     * [Output only] The current status of this cluster.
-     * 
- * - * .google.container.v1.Cluster.Status status = 107; - * - * @return The enum numeric value on the wire for status. - */ - @java.lang.Override - public int getStatusValue() { - return status_; - } - /** - * - * - *
-     * [Output only] The current status of this cluster.
-     * 
- * - * .google.container.v1.Cluster.Status status = 107; - * - * @param value The enum numeric value on the wire for status to set. - * @return This builder for chaining. - */ - public Builder setStatusValue(int value) { - status_ = value; - bitField1_ |= 0x00002000; - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] The current status of this cluster.
-     * 
- * - * .google.container.v1.Cluster.Status status = 107; - * - * @return The status. - */ - @java.lang.Override - public com.google.container.v1.Cluster.Status getStatus() { - com.google.container.v1.Cluster.Status result = - com.google.container.v1.Cluster.Status.forNumber(status_); - return result == null ? com.google.container.v1.Cluster.Status.UNRECOGNIZED : result; - } - /** - * - * - *
-     * [Output only] The current status of this cluster.
-     * 
- * - * .google.container.v1.Cluster.Status status = 107; - * - * @param value The status to set. - * @return This builder for chaining. - */ - public Builder setStatus(com.google.container.v1.Cluster.Status value) { - if (value == null) { - throw new NullPointerException(); - } - bitField1_ |= 0x00002000; - status_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] The current status of this cluster.
-     * 
- * - * .google.container.v1.Cluster.Status status = 107; - * - * @return This builder for chaining. - */ - public Builder clearStatus() { - bitField1_ = (bitField1_ & ~0x00002000); - 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]; - * - * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=1898 - * @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]; - * - * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=1898 - * @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]; - * - * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=1898 - * @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; - bitField1_ |= 0x00004000; - 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]; - * - * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=1898 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearStatusMessage() { - statusMessage_ = getDefaultInstance().getStatusMessage(); - bitField1_ = (bitField1_ & ~0x00004000); - 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]; - * - * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=1898 - * @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; - bitField1_ |= 0x00004000; - 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; - bitField1_ |= 0x00008000; - 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() { - bitField1_ = (bitField1_ & ~0x00008000); - 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; - bitField1_ |= 0x00010000; - 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(); - bitField1_ = (bitField1_ & ~0x00010000); - 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; - bitField1_ |= 0x00010000; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList instanceGroupUrls_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureInstanceGroupUrlsIsMutable() { - if (!instanceGroupUrls_.isModifiable()) { - instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(instanceGroupUrls_); - } - bitField1_ |= 0x00020000; - } - /** - * - * - *
-     * Deprecated. Use node_pools.instance_group_urls.
-     * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * - * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1914 - * @return A list containing the instanceGroupUrls. - */ - @java.lang.Deprecated - public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { - instanceGroupUrls_.makeImmutable(); - return instanceGroupUrls_; - } - /** - * - * - *
-     * Deprecated. Use node_pools.instance_group_urls.
-     * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * - * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1914 - * @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]; - * - * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1914 - * @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]; - * - * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1914 - * @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]; - * - * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1914 - * @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); - bitField1_ |= 0x00020000; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. Use node_pools.instance_group_urls.
-     * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * - * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1914 - * @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); - bitField1_ |= 0x00020000; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. Use node_pools.instance_group_urls.
-     * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * - * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1914 - * @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_); - bitField1_ |= 0x00020000; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. Use node_pools.instance_group_urls.
-     * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * - * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1914 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearInstanceGroupUrls() { - instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField1_ = (bitField1_ & ~0x00020000); - ; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. Use node_pools.instance_group_urls.
-     * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * - * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1914 - * @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); - bitField1_ |= 0x00020000; - 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]; - * - * @deprecated google.container.v1.Cluster.current_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=1918 - * @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]; - * - * @deprecated google.container.v1.Cluster.current_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=1918 - * @param value The currentNodeCount to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setCurrentNodeCount(int value) { - - currentNodeCount_ = value; - bitField1_ |= 0x00040000; - 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]; - * - * @deprecated google.container.v1.Cluster.current_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=1918 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearCurrentNodeCount() { - bitField1_ = (bitField1_ & ~0x00040000); - 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; - bitField1_ |= 0x00080000; - 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(); - bitField1_ = (bitField1_ & ~0x00080000); - 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; - bitField1_ |= 0x00080000; - 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; - bitField1_ |= 0x00100000; - 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(); - bitField1_ = (bitField1_ & ~0x00100000); - 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; - bitField1_ |= 0x00100000; - onChanged(); - return this; - } - - private boolean enableTpu_; - /** - * - * - *
-     * Enable the ability to use Cloud TPUs in this cluster.
-     * 
- * - * bool enable_tpu = 115; - * - * @return The enableTpu. - */ - @java.lang.Override - public boolean getEnableTpu() { - return enableTpu_; - } - /** - * - * - *
-     * Enable the ability to use Cloud TPUs in this cluster.
-     * 
- * - * bool enable_tpu = 115; - * - * @param value The enableTpu to set. - * @return This builder for chaining. - */ - public Builder setEnableTpu(boolean value) { - - enableTpu_ = value; - bitField1_ |= 0x00200000; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable the ability to use Cloud TPUs in this cluster.
-     * 
- * - * bool enable_tpu = 115; - * - * @return This builder for chaining. - */ - public Builder clearEnableTpu() { - bitField1_ = (bitField1_ & ~0x00200000); - 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; - bitField1_ |= 0x00400000; - 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(); - bitField1_ = (bitField1_ & ~0x00400000); - 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; - bitField1_ |= 0x00400000; - onChanged(); - return this; - } - - private java.util.List conditions_ = - java.util.Collections.emptyList(); - - private void ensureConditionsIsMutable() { - if (!((bitField1_ & 0x00800000) != 0)) { - conditions_ = new java.util.ArrayList(conditions_); - bitField1_ |= 0x00800000; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.StatusCondition, - com.google.container.v1.StatusCondition.Builder, - com.google.container.v1.StatusConditionOrBuilder> - conditionsBuilder_; - - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public java.util.List getConditionsList() { - if (conditionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(conditions_); - } else { - return conditionsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public int getConditionsCount() { - if (conditionsBuilder_ == null) { - return conditions_.size(); - } else { - return conditionsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public com.google.container.v1.StatusCondition getConditions(int index) { - if (conditionsBuilder_ == null) { - return conditions_.get(index); - } else { - return conditionsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public Builder setConditions(int index, com.google.container.v1.StatusCondition value) { - if (conditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConditionsIsMutable(); - conditions_.set(index, value); - onChanged(); - } else { - conditionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public Builder setConditions( - int index, com.google.container.v1.StatusCondition.Builder builderForValue) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - conditions_.set(index, builderForValue.build()); - onChanged(); - } else { - conditionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public Builder addConditions(com.google.container.v1.StatusCondition value) { - if (conditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConditionsIsMutable(); - conditions_.add(value); - onChanged(); - } else { - conditionsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public Builder addConditions(int index, com.google.container.v1.StatusCondition value) { - if (conditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConditionsIsMutable(); - conditions_.add(index, value); - onChanged(); - } else { - conditionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public Builder addConditions(com.google.container.v1.StatusCondition.Builder builderForValue) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - conditions_.add(builderForValue.build()); - onChanged(); - } else { - conditionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public Builder addConditions( - int index, com.google.container.v1.StatusCondition.Builder builderForValue) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - conditions_.add(index, builderForValue.build()); - onChanged(); - } else { - conditionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public Builder addAllConditions( - java.lang.Iterable values) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); - onChanged(); - } else { - conditionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public Builder clearConditions() { - if (conditionsBuilder_ == null) { - conditions_ = java.util.Collections.emptyList(); - bitField1_ = (bitField1_ & ~0x00800000); - onChanged(); - } else { - conditionsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public Builder removeConditions(int index) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - conditions_.remove(index); - onChanged(); - } else { - conditionsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public com.google.container.v1.StatusCondition.Builder getConditionsBuilder(int index) { - return getConditionsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public com.google.container.v1.StatusConditionOrBuilder getConditionsOrBuilder(int index) { - if (conditionsBuilder_ == null) { - return conditions_.get(index); - } else { - return conditionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public java.util.List - getConditionsOrBuilderList() { - if (conditionsBuilder_ != null) { - return conditionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(conditions_); - } - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public com.google.container.v1.StatusCondition.Builder addConditionsBuilder() { - return getConditionsFieldBuilder() - .addBuilder(com.google.container.v1.StatusCondition.getDefaultInstance()); - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public com.google.container.v1.StatusCondition.Builder addConditionsBuilder(int index) { - return getConditionsFieldBuilder() - .addBuilder(index, com.google.container.v1.StatusCondition.getDefaultInstance()); - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public java.util.List - getConditionsBuilderList() { - return getConditionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.StatusCondition, - com.google.container.v1.StatusCondition.Builder, - com.google.container.v1.StatusConditionOrBuilder> - getConditionsFieldBuilder() { - if (conditionsBuilder_ == null) { - conditionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.StatusCondition, - com.google.container.v1.StatusCondition.Builder, - com.google.container.v1.StatusConditionOrBuilder>( - conditions_, ((bitField1_ & 0x00800000) != 0), getParentForChildren(), isClean()); - conditions_ = null; - } - return conditionsBuilder_; - } - - private com.google.container.v1.Autopilot autopilot_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.Autopilot, - com.google.container.v1.Autopilot.Builder, - com.google.container.v1.AutopilotOrBuilder> - autopilotBuilder_; - /** - * - * - *
-     * Autopilot configuration for the cluster.
-     * 
- * - * .google.container.v1.Autopilot autopilot = 128; - * - * @return Whether the autopilot field is set. - */ - public boolean hasAutopilot() { - return ((bitField1_ & 0x01000000) != 0); - } - /** - * - * - *
-     * Autopilot configuration for the cluster.
-     * 
- * - * .google.container.v1.Autopilot autopilot = 128; - * - * @return The autopilot. - */ - public com.google.container.v1.Autopilot getAutopilot() { - if (autopilotBuilder_ == null) { - return autopilot_ == null - ? com.google.container.v1.Autopilot.getDefaultInstance() - : autopilot_; - } else { - return autopilotBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Autopilot configuration for the cluster.
-     * 
- * - * .google.container.v1.Autopilot autopilot = 128; - */ - public Builder setAutopilot(com.google.container.v1.Autopilot value) { - if (autopilotBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - autopilot_ = value; - } else { - autopilotBuilder_.setMessage(value); - } - bitField1_ |= 0x01000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Autopilot configuration for the cluster.
-     * 
- * - * .google.container.v1.Autopilot autopilot = 128; - */ - public Builder setAutopilot(com.google.container.v1.Autopilot.Builder builderForValue) { - if (autopilotBuilder_ == null) { - autopilot_ = builderForValue.build(); - } else { - autopilotBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x01000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Autopilot configuration for the cluster.
-     * 
- * - * .google.container.v1.Autopilot autopilot = 128; - */ - public Builder mergeAutopilot(com.google.container.v1.Autopilot value) { - if (autopilotBuilder_ == null) { - if (((bitField1_ & 0x01000000) != 0) - && autopilot_ != null - && autopilot_ != com.google.container.v1.Autopilot.getDefaultInstance()) { - getAutopilotBuilder().mergeFrom(value); - } else { - autopilot_ = value; - } - } else { - autopilotBuilder_.mergeFrom(value); - } - if (autopilot_ != null) { - bitField1_ |= 0x01000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Autopilot configuration for the cluster.
-     * 
- * - * .google.container.v1.Autopilot autopilot = 128; - */ - public Builder clearAutopilot() { - bitField1_ = (bitField1_ & ~0x01000000); - autopilot_ = null; - if (autopilotBuilder_ != null) { - autopilotBuilder_.dispose(); - autopilotBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Autopilot configuration for the cluster.
-     * 
- * - * .google.container.v1.Autopilot autopilot = 128; - */ - public com.google.container.v1.Autopilot.Builder getAutopilotBuilder() { - bitField1_ |= 0x01000000; - onChanged(); - return getAutopilotFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Autopilot configuration for the cluster.
-     * 
- * - * .google.container.v1.Autopilot autopilot = 128; - */ - public com.google.container.v1.AutopilotOrBuilder getAutopilotOrBuilder() { - if (autopilotBuilder_ != null) { - return autopilotBuilder_.getMessageOrBuilder(); - } else { - return autopilot_ == null - ? com.google.container.v1.Autopilot.getDefaultInstance() - : autopilot_; - } - } - /** - * - * - *
-     * Autopilot configuration for the cluster.
-     * 
- * - * .google.container.v1.Autopilot autopilot = 128; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.Autopilot, - com.google.container.v1.Autopilot.Builder, - com.google.container.v1.AutopilotOrBuilder> - getAutopilotFieldBuilder() { - if (autopilotBuilder_ == null) { - autopilotBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.Autopilot, - com.google.container.v1.Autopilot.Builder, - com.google.container.v1.AutopilotOrBuilder>( - getAutopilot(), getParentForChildren(), isClean()); - autopilot_ = null; - } - return autopilotBuilder_; - } - - private java.lang.Object id_ = ""; - /** - * - * - *
-     * Output only. Unique id for the cluster.
-     * 
- * - * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The id. - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. Unique id for the cluster.
-     * 
- * - * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for id. - */ - public com.google.protobuf.ByteString getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. Unique id for the cluster.
-     * 
- * - * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - bitField1_ |= 0x02000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Unique id for the cluster.
-     * 
- * - * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearId() { - id_ = getDefaultInstance().getId(); - bitField1_ = (bitField1_ & ~0x02000000); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Unique id for the cluster.
-     * 
- * - * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for id to set. - * @return This builder for chaining. - */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - id_ = value; - bitField1_ |= 0x02000000; - onChanged(); - return this; - } - - private com.google.container.v1.NodePoolDefaults nodePoolDefaults_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePoolDefaults, - com.google.container.v1.NodePoolDefaults.Builder, - com.google.container.v1.NodePoolDefaultsOrBuilder> - nodePoolDefaultsBuilder_; - /** - * - * - *
-     * Default NodePool settings for the entire cluster. These settings are
-     * overridden if specified on the specific NodePool object.
-     * 
- * - * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; - * - * @return Whether the nodePoolDefaults field is set. - */ - public boolean hasNodePoolDefaults() { - return ((bitField1_ & 0x04000000) != 0); - } - /** - * - * - *
-     * Default NodePool settings for the entire cluster. These settings are
-     * overridden if specified on the specific NodePool object.
-     * 
- * - * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; - * - * @return The nodePoolDefaults. - */ - public com.google.container.v1.NodePoolDefaults getNodePoolDefaults() { - if (nodePoolDefaultsBuilder_ == null) { - return nodePoolDefaults_ == null - ? com.google.container.v1.NodePoolDefaults.getDefaultInstance() - : nodePoolDefaults_; - } else { - return nodePoolDefaultsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Default NodePool settings for the entire cluster. These settings are
-     * overridden if specified on the specific NodePool object.
-     * 
- * - * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; - */ - public Builder setNodePoolDefaults(com.google.container.v1.NodePoolDefaults value) { - if (nodePoolDefaultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - nodePoolDefaults_ = value; - } else { - nodePoolDefaultsBuilder_.setMessage(value); - } - bitField1_ |= 0x04000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Default NodePool settings for the entire cluster. These settings are
-     * overridden if specified on the specific NodePool object.
-     * 
- * - * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; - */ - public Builder setNodePoolDefaults( - com.google.container.v1.NodePoolDefaults.Builder builderForValue) { - if (nodePoolDefaultsBuilder_ == null) { - nodePoolDefaults_ = builderForValue.build(); - } else { - nodePoolDefaultsBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x04000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Default NodePool settings for the entire cluster. These settings are
-     * overridden if specified on the specific NodePool object.
-     * 
- * - * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; - */ - public Builder mergeNodePoolDefaults(com.google.container.v1.NodePoolDefaults value) { - if (nodePoolDefaultsBuilder_ == null) { - if (((bitField1_ & 0x04000000) != 0) - && nodePoolDefaults_ != null - && nodePoolDefaults_ != com.google.container.v1.NodePoolDefaults.getDefaultInstance()) { - getNodePoolDefaultsBuilder().mergeFrom(value); - } else { - nodePoolDefaults_ = value; - } - } else { - nodePoolDefaultsBuilder_.mergeFrom(value); - } - if (nodePoolDefaults_ != null) { - bitField1_ |= 0x04000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Default NodePool settings for the entire cluster. These settings are
-     * overridden if specified on the specific NodePool object.
-     * 
- * - * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; - */ - public Builder clearNodePoolDefaults() { - bitField1_ = (bitField1_ & ~0x04000000); - nodePoolDefaults_ = null; - if (nodePoolDefaultsBuilder_ != null) { - nodePoolDefaultsBuilder_.dispose(); - nodePoolDefaultsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Default NodePool settings for the entire cluster. These settings are
-     * overridden if specified on the specific NodePool object.
-     * 
- * - * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; - */ - public com.google.container.v1.NodePoolDefaults.Builder getNodePoolDefaultsBuilder() { - bitField1_ |= 0x04000000; - onChanged(); - return getNodePoolDefaultsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Default NodePool settings for the entire cluster. These settings are
-     * overridden if specified on the specific NodePool object.
-     * 
- * - * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; - */ - public com.google.container.v1.NodePoolDefaultsOrBuilder getNodePoolDefaultsOrBuilder() { - if (nodePoolDefaultsBuilder_ != null) { - return nodePoolDefaultsBuilder_.getMessageOrBuilder(); - } else { - return nodePoolDefaults_ == null - ? com.google.container.v1.NodePoolDefaults.getDefaultInstance() - : nodePoolDefaults_; - } - } - /** - * - * - *
-     * Default NodePool settings for the entire cluster. These settings are
-     * overridden if specified on the specific NodePool object.
-     * 
- * - * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePoolDefaults, - com.google.container.v1.NodePoolDefaults.Builder, - com.google.container.v1.NodePoolDefaultsOrBuilder> - getNodePoolDefaultsFieldBuilder() { - if (nodePoolDefaultsBuilder_ == null) { - nodePoolDefaultsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePoolDefaults, - com.google.container.v1.NodePoolDefaults.Builder, - com.google.container.v1.NodePoolDefaultsOrBuilder>( - getNodePoolDefaults(), getParentForChildren(), isClean()); - nodePoolDefaults_ = null; - } - return nodePoolDefaultsBuilder_; - } - - private com.google.container.v1.LoggingConfig loggingConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.LoggingConfig, - com.google.container.v1.LoggingConfig.Builder, - com.google.container.v1.LoggingConfigOrBuilder> - loggingConfigBuilder_; - /** - * - * - *
-     * Logging configuration for the cluster.
-     * 
- * - * .google.container.v1.LoggingConfig logging_config = 132; - * - * @return Whether the loggingConfig field is set. - */ - public boolean hasLoggingConfig() { - return ((bitField1_ & 0x08000000) != 0); - } - /** - * - * - *
-     * Logging configuration for the cluster.
-     * 
- * - * .google.container.v1.LoggingConfig logging_config = 132; - * - * @return The loggingConfig. - */ - public com.google.container.v1.LoggingConfig getLoggingConfig() { - if (loggingConfigBuilder_ == null) { - return loggingConfig_ == null - ? com.google.container.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } else { - return loggingConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Logging configuration for the cluster.
-     * 
- * - * .google.container.v1.LoggingConfig logging_config = 132; - */ - public Builder setLoggingConfig(com.google.container.v1.LoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - loggingConfig_ = value; - } else { - loggingConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x08000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Logging configuration for the cluster.
-     * 
- * - * .google.container.v1.LoggingConfig logging_config = 132; - */ - public Builder setLoggingConfig(com.google.container.v1.LoggingConfig.Builder builderForValue) { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = builderForValue.build(); - } else { - loggingConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x08000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Logging configuration for the cluster.
-     * 
- * - * .google.container.v1.LoggingConfig logging_config = 132; - */ - public Builder mergeLoggingConfig(com.google.container.v1.LoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (((bitField1_ & 0x08000000) != 0) - && loggingConfig_ != null - && loggingConfig_ != com.google.container.v1.LoggingConfig.getDefaultInstance()) { - getLoggingConfigBuilder().mergeFrom(value); - } else { - loggingConfig_ = value; - } - } else { - loggingConfigBuilder_.mergeFrom(value); - } - if (loggingConfig_ != null) { - bitField1_ |= 0x08000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Logging configuration for the cluster.
-     * 
- * - * .google.container.v1.LoggingConfig logging_config = 132; - */ - public Builder clearLoggingConfig() { - bitField1_ = (bitField1_ & ~0x08000000); - loggingConfig_ = null; - if (loggingConfigBuilder_ != null) { - loggingConfigBuilder_.dispose(); - loggingConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Logging configuration for the cluster.
-     * 
- * - * .google.container.v1.LoggingConfig logging_config = 132; - */ - public com.google.container.v1.LoggingConfig.Builder getLoggingConfigBuilder() { - bitField1_ |= 0x08000000; - onChanged(); - return getLoggingConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Logging configuration for the cluster.
-     * 
- * - * .google.container.v1.LoggingConfig logging_config = 132; - */ - public com.google.container.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { - if (loggingConfigBuilder_ != null) { - return loggingConfigBuilder_.getMessageOrBuilder(); - } else { - return loggingConfig_ == null - ? com.google.container.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } - } - /** - * - * - *
-     * Logging configuration for the cluster.
-     * 
- * - * .google.container.v1.LoggingConfig logging_config = 132; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.LoggingConfig, - com.google.container.v1.LoggingConfig.Builder, - com.google.container.v1.LoggingConfigOrBuilder> - getLoggingConfigFieldBuilder() { - if (loggingConfigBuilder_ == null) { - loggingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.LoggingConfig, - com.google.container.v1.LoggingConfig.Builder, - com.google.container.v1.LoggingConfigOrBuilder>( - getLoggingConfig(), getParentForChildren(), isClean()); - loggingConfig_ = null; - } - return loggingConfigBuilder_; - } - - private com.google.container.v1.MonitoringConfig monitoringConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MonitoringConfig, - com.google.container.v1.MonitoringConfig.Builder, - com.google.container.v1.MonitoringConfigOrBuilder> - monitoringConfigBuilder_; - /** - * - * - *
-     * Monitoring configuration for the cluster.
-     * 
- * - * .google.container.v1.MonitoringConfig monitoring_config = 133; - * - * @return Whether the monitoringConfig field is set. - */ - public boolean hasMonitoringConfig() { - return ((bitField1_ & 0x10000000) != 0); - } - /** - * - * - *
-     * Monitoring configuration for the cluster.
-     * 
- * - * .google.container.v1.MonitoringConfig monitoring_config = 133; - * - * @return The monitoringConfig. - */ - public com.google.container.v1.MonitoringConfig getMonitoringConfig() { - if (monitoringConfigBuilder_ == null) { - return monitoringConfig_ == null - ? com.google.container.v1.MonitoringConfig.getDefaultInstance() - : monitoringConfig_; - } else { - return monitoringConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Monitoring configuration for the cluster.
-     * 
- * - * .google.container.v1.MonitoringConfig monitoring_config = 133; - */ - public Builder setMonitoringConfig(com.google.container.v1.MonitoringConfig value) { - if (monitoringConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - monitoringConfig_ = value; - } else { - monitoringConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x10000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Monitoring configuration for the cluster.
-     * 
- * - * .google.container.v1.MonitoringConfig monitoring_config = 133; - */ - public Builder setMonitoringConfig( - com.google.container.v1.MonitoringConfig.Builder builderForValue) { - if (monitoringConfigBuilder_ == null) { - monitoringConfig_ = builderForValue.build(); - } else { - monitoringConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x10000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Monitoring configuration for the cluster.
-     * 
- * - * .google.container.v1.MonitoringConfig monitoring_config = 133; - */ - public Builder mergeMonitoringConfig(com.google.container.v1.MonitoringConfig value) { - if (monitoringConfigBuilder_ == null) { - if (((bitField1_ & 0x10000000) != 0) - && monitoringConfig_ != null - && monitoringConfig_ != com.google.container.v1.MonitoringConfig.getDefaultInstance()) { - getMonitoringConfigBuilder().mergeFrom(value); - } else { - monitoringConfig_ = value; - } - } else { - monitoringConfigBuilder_.mergeFrom(value); - } - if (monitoringConfig_ != null) { - bitField1_ |= 0x10000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Monitoring configuration for the cluster.
-     * 
- * - * .google.container.v1.MonitoringConfig monitoring_config = 133; - */ - public Builder clearMonitoringConfig() { - bitField1_ = (bitField1_ & ~0x10000000); - monitoringConfig_ = null; - if (monitoringConfigBuilder_ != null) { - monitoringConfigBuilder_.dispose(); - monitoringConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Monitoring configuration for the cluster.
-     * 
- * - * .google.container.v1.MonitoringConfig monitoring_config = 133; - */ - public com.google.container.v1.MonitoringConfig.Builder getMonitoringConfigBuilder() { - bitField1_ |= 0x10000000; - onChanged(); - return getMonitoringConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Monitoring configuration for the cluster.
-     * 
- * - * .google.container.v1.MonitoringConfig monitoring_config = 133; - */ - public com.google.container.v1.MonitoringConfigOrBuilder getMonitoringConfigOrBuilder() { - if (monitoringConfigBuilder_ != null) { - return monitoringConfigBuilder_.getMessageOrBuilder(); - } else { - return monitoringConfig_ == null - ? com.google.container.v1.MonitoringConfig.getDefaultInstance() - : monitoringConfig_; - } - } - /** - * - * - *
-     * Monitoring configuration for the cluster.
-     * 
- * - * .google.container.v1.MonitoringConfig monitoring_config = 133; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MonitoringConfig, - com.google.container.v1.MonitoringConfig.Builder, - com.google.container.v1.MonitoringConfigOrBuilder> - getMonitoringConfigFieldBuilder() { - if (monitoringConfigBuilder_ == null) { - monitoringConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MonitoringConfig, - com.google.container.v1.MonitoringConfig.Builder, - com.google.container.v1.MonitoringConfigOrBuilder>( - getMonitoringConfig(), getParentForChildren(), isClean()); - monitoringConfig_ = null; - } - return monitoringConfigBuilder_; - } - - private com.google.container.v1.NodePoolAutoConfig nodePoolAutoConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePoolAutoConfig, - com.google.container.v1.NodePoolAutoConfig.Builder, - com.google.container.v1.NodePoolAutoConfigOrBuilder> - nodePoolAutoConfigBuilder_; - /** - * - * - *
-     * Node pool configs that apply to all auto-provisioned node pools
-     * in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; - * - * @return Whether the nodePoolAutoConfig field is set. - */ - public boolean hasNodePoolAutoConfig() { - return ((bitField1_ & 0x20000000) != 0); - } - /** - * - * - *
-     * Node pool configs that apply to all auto-provisioned node pools
-     * in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; - * - * @return The nodePoolAutoConfig. - */ - public com.google.container.v1.NodePoolAutoConfig getNodePoolAutoConfig() { - if (nodePoolAutoConfigBuilder_ == null) { - return nodePoolAutoConfig_ == null - ? com.google.container.v1.NodePoolAutoConfig.getDefaultInstance() - : nodePoolAutoConfig_; - } else { - return nodePoolAutoConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Node pool configs that apply to all auto-provisioned node pools
-     * in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; - */ - public Builder setNodePoolAutoConfig(com.google.container.v1.NodePoolAutoConfig value) { - if (nodePoolAutoConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - nodePoolAutoConfig_ = value; - } else { - nodePoolAutoConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x20000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Node pool configs that apply to all auto-provisioned node pools
-     * in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; - */ - public Builder setNodePoolAutoConfig( - com.google.container.v1.NodePoolAutoConfig.Builder builderForValue) { - if (nodePoolAutoConfigBuilder_ == null) { - nodePoolAutoConfig_ = builderForValue.build(); - } else { - nodePoolAutoConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x20000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Node pool configs that apply to all auto-provisioned node pools
-     * in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; - */ - public Builder mergeNodePoolAutoConfig(com.google.container.v1.NodePoolAutoConfig value) { - if (nodePoolAutoConfigBuilder_ == null) { - if (((bitField1_ & 0x20000000) != 0) - && nodePoolAutoConfig_ != null - && nodePoolAutoConfig_ - != com.google.container.v1.NodePoolAutoConfig.getDefaultInstance()) { - getNodePoolAutoConfigBuilder().mergeFrom(value); - } else { - nodePoolAutoConfig_ = value; - } - } else { - nodePoolAutoConfigBuilder_.mergeFrom(value); - } - if (nodePoolAutoConfig_ != null) { - bitField1_ |= 0x20000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Node pool configs that apply to all auto-provisioned node pools
-     * in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; - */ - public Builder clearNodePoolAutoConfig() { - bitField1_ = (bitField1_ & ~0x20000000); - nodePoolAutoConfig_ = null; - if (nodePoolAutoConfigBuilder_ != null) { - nodePoolAutoConfigBuilder_.dispose(); - nodePoolAutoConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Node pool configs that apply to all auto-provisioned node pools
-     * in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; - */ - public com.google.container.v1.NodePoolAutoConfig.Builder getNodePoolAutoConfigBuilder() { - bitField1_ |= 0x20000000; - onChanged(); - return getNodePoolAutoConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Node pool configs that apply to all auto-provisioned node pools
-     * in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; - */ - public com.google.container.v1.NodePoolAutoConfigOrBuilder getNodePoolAutoConfigOrBuilder() { - if (nodePoolAutoConfigBuilder_ != null) { - return nodePoolAutoConfigBuilder_.getMessageOrBuilder(); - } else { - return nodePoolAutoConfig_ == null - ? com.google.container.v1.NodePoolAutoConfig.getDefaultInstance() - : nodePoolAutoConfig_; - } - } - /** - * - * - *
-     * Node pool configs that apply to all auto-provisioned node pools
-     * in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePoolAutoConfig, - com.google.container.v1.NodePoolAutoConfig.Builder, - com.google.container.v1.NodePoolAutoConfigOrBuilder> - getNodePoolAutoConfigFieldBuilder() { - if (nodePoolAutoConfigBuilder_ == null) { - nodePoolAutoConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePoolAutoConfig, - com.google.container.v1.NodePoolAutoConfig.Builder, - com.google.container.v1.NodePoolAutoConfigOrBuilder>( - getNodePoolAutoConfig(), getParentForChildren(), isClean()); - nodePoolAutoConfig_ = null; - } - return nodePoolAutoConfigBuilder_; - } - - private java.lang.Object etag_ = ""; - /** - * - * - *
-     * This checksum is computed by the server based on the value of cluster
-     * fields, and may be sent on update requests to ensure the client has an
-     * up-to-date value before proceeding.
-     * 
- * - * string etag = 139; - * - * @return The etag. - */ - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * This checksum is computed by the server based on the value of cluster
-     * fields, and may be sent on update requests to ensure the client has an
-     * up-to-date value before proceeding.
-     * 
- * - * string etag = 139; - * - * @return The bytes for etag. - */ - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * This checksum is computed by the server based on the value of cluster
-     * fields, and may be sent on update requests to ensure the client has an
-     * up-to-date value before proceeding.
-     * 
- * - * string etag = 139; - * - * @param value The etag to set. - * @return This builder for chaining. - */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - etag_ = value; - bitField1_ |= 0x40000000; - onChanged(); - return this; - } - /** - * - * - *
-     * This checksum is computed by the server based on the value of cluster
-     * fields, and may be sent on update requests to ensure the client has an
-     * up-to-date value before proceeding.
-     * 
- * - * string etag = 139; - * - * @return This builder for chaining. - */ - public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); - bitField1_ = (bitField1_ & ~0x40000000); - onChanged(); - return this; - } - /** - * - * - *
-     * This checksum is computed by the server based on the value of cluster
-     * fields, and may be sent on update requests to ensure the client has an
-     * up-to-date value before proceeding.
-     * 
- * - * string etag = 139; - * - * @param value The bytes for etag to set. - * @return This builder for chaining. - */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - etag_ = value; - bitField1_ |= 0x40000000; - onChanged(); - return this; - } - - private com.google.container.v1.Fleet fleet_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.Fleet, - com.google.container.v1.Fleet.Builder, - com.google.container.v1.FleetOrBuilder> - fleetBuilder_; - /** - * - * - *
-     * Fleet information for the cluster.
-     * 
- * - * .google.container.v1.Fleet fleet = 140; - * - * @return Whether the fleet field is set. - */ - public boolean hasFleet() { - return ((bitField1_ & 0x80000000) != 0); - } - /** - * - * - *
-     * Fleet information for the cluster.
-     * 
- * - * .google.container.v1.Fleet fleet = 140; - * - * @return The fleet. - */ - public com.google.container.v1.Fleet getFleet() { - if (fleetBuilder_ == null) { - return fleet_ == null ? com.google.container.v1.Fleet.getDefaultInstance() : fleet_; - } else { - return fleetBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Fleet information for the cluster.
-     * 
- * - * .google.container.v1.Fleet fleet = 140; - */ - public Builder setFleet(com.google.container.v1.Fleet value) { - if (fleetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - fleet_ = value; - } else { - fleetBuilder_.setMessage(value); - } - bitField1_ |= 0x80000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Fleet information for the cluster.
-     * 
- * - * .google.container.v1.Fleet fleet = 140; - */ - public Builder setFleet(com.google.container.v1.Fleet.Builder builderForValue) { - if (fleetBuilder_ == null) { - fleet_ = builderForValue.build(); - } else { - fleetBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x80000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Fleet information for the cluster.
-     * 
- * - * .google.container.v1.Fleet fleet = 140; - */ - public Builder mergeFleet(com.google.container.v1.Fleet value) { - if (fleetBuilder_ == null) { - if (((bitField1_ & 0x80000000) != 0) - && fleet_ != null - && fleet_ != com.google.container.v1.Fleet.getDefaultInstance()) { - getFleetBuilder().mergeFrom(value); - } else { - fleet_ = value; - } - } else { - fleetBuilder_.mergeFrom(value); - } - if (fleet_ != null) { - bitField1_ |= 0x80000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Fleet information for the cluster.
-     * 
- * - * .google.container.v1.Fleet fleet = 140; - */ - public Builder clearFleet() { - bitField1_ = (bitField1_ & ~0x80000000); - fleet_ = null; - if (fleetBuilder_ != null) { - fleetBuilder_.dispose(); - fleetBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Fleet information for the cluster.
-     * 
- * - * .google.container.v1.Fleet fleet = 140; - */ - public com.google.container.v1.Fleet.Builder getFleetBuilder() { - bitField1_ |= 0x80000000; - onChanged(); - return getFleetFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Fleet information for the cluster.
-     * 
- * - * .google.container.v1.Fleet fleet = 140; - */ - public com.google.container.v1.FleetOrBuilder getFleetOrBuilder() { - if (fleetBuilder_ != null) { - return fleetBuilder_.getMessageOrBuilder(); - } else { - return fleet_ == null ? com.google.container.v1.Fleet.getDefaultInstance() : fleet_; - } - } - /** - * - * - *
-     * Fleet information for the cluster.
-     * 
- * - * .google.container.v1.Fleet fleet = 140; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.Fleet, - com.google.container.v1.Fleet.Builder, - com.google.container.v1.FleetOrBuilder> - getFleetFieldBuilder() { - if (fleetBuilder_ == null) { - fleetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.Fleet, - com.google.container.v1.Fleet.Builder, - com.google.container.v1.FleetOrBuilder>( - getFleet(), getParentForChildren(), isClean()); - fleet_ = null; - } - return fleetBuilder_; - } - - private com.google.container.v1.SecurityPostureConfig securityPostureConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.SecurityPostureConfig, - com.google.container.v1.SecurityPostureConfig.Builder, - com.google.container.v1.SecurityPostureConfigOrBuilder> - securityPostureConfigBuilder_; - /** - * - * - *
-     * Enable/Disable Security Posture API features for the cluster.
-     * 
- * - * .google.container.v1.SecurityPostureConfig security_posture_config = 145; - * - * @return Whether the securityPostureConfig field is set. - */ - public boolean hasSecurityPostureConfig() { - return ((bitField2_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Enable/Disable Security Posture API features for the cluster.
-     * 
- * - * .google.container.v1.SecurityPostureConfig security_posture_config = 145; - * - * @return The securityPostureConfig. - */ - public com.google.container.v1.SecurityPostureConfig getSecurityPostureConfig() { - if (securityPostureConfigBuilder_ == null) { - return securityPostureConfig_ == null - ? com.google.container.v1.SecurityPostureConfig.getDefaultInstance() - : securityPostureConfig_; - } else { - return securityPostureConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Enable/Disable Security Posture API features for the cluster.
-     * 
- * - * .google.container.v1.SecurityPostureConfig security_posture_config = 145; - */ - public Builder setSecurityPostureConfig(com.google.container.v1.SecurityPostureConfig value) { - if (securityPostureConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - securityPostureConfig_ = value; - } else { - securityPostureConfigBuilder_.setMessage(value); - } - bitField2_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable/Disable Security Posture API features for the cluster.
-     * 
- * - * .google.container.v1.SecurityPostureConfig security_posture_config = 145; - */ - public Builder setSecurityPostureConfig( - com.google.container.v1.SecurityPostureConfig.Builder builderForValue) { - if (securityPostureConfigBuilder_ == null) { - securityPostureConfig_ = builderForValue.build(); - } else { - securityPostureConfigBuilder_.setMessage(builderForValue.build()); - } - bitField2_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable/Disable Security Posture API features for the cluster.
-     * 
- * - * .google.container.v1.SecurityPostureConfig security_posture_config = 145; - */ - public Builder mergeSecurityPostureConfig(com.google.container.v1.SecurityPostureConfig value) { - if (securityPostureConfigBuilder_ == null) { - if (((bitField2_ & 0x00000001) != 0) - && securityPostureConfig_ != null - && securityPostureConfig_ - != com.google.container.v1.SecurityPostureConfig.getDefaultInstance()) { - getSecurityPostureConfigBuilder().mergeFrom(value); - } else { - securityPostureConfig_ = value; - } - } else { - securityPostureConfigBuilder_.mergeFrom(value); - } - if (securityPostureConfig_ != null) { - bitField2_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Enable/Disable Security Posture API features for the cluster.
-     * 
- * - * .google.container.v1.SecurityPostureConfig security_posture_config = 145; - */ - public Builder clearSecurityPostureConfig() { - bitField2_ = (bitField2_ & ~0x00000001); - securityPostureConfig_ = null; - if (securityPostureConfigBuilder_ != null) { - securityPostureConfigBuilder_.dispose(); - securityPostureConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Enable/Disable Security Posture API features for the cluster.
-     * 
- * - * .google.container.v1.SecurityPostureConfig security_posture_config = 145; - */ - public com.google.container.v1.SecurityPostureConfig.Builder getSecurityPostureConfigBuilder() { - bitField2_ |= 0x00000001; - onChanged(); - return getSecurityPostureConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Enable/Disable Security Posture API features for the cluster.
-     * 
- * - * .google.container.v1.SecurityPostureConfig security_posture_config = 145; - */ - public com.google.container.v1.SecurityPostureConfigOrBuilder - getSecurityPostureConfigOrBuilder() { - if (securityPostureConfigBuilder_ != null) { - return securityPostureConfigBuilder_.getMessageOrBuilder(); - } else { - return securityPostureConfig_ == null - ? com.google.container.v1.SecurityPostureConfig.getDefaultInstance() - : securityPostureConfig_; - } - } - /** - * - * - *
-     * Enable/Disable Security Posture API features for the cluster.
-     * 
- * - * .google.container.v1.SecurityPostureConfig security_posture_config = 145; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.SecurityPostureConfig, - com.google.container.v1.SecurityPostureConfig.Builder, - com.google.container.v1.SecurityPostureConfigOrBuilder> - getSecurityPostureConfigFieldBuilder() { - if (securityPostureConfigBuilder_ == null) { - securityPostureConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.SecurityPostureConfig, - com.google.container.v1.SecurityPostureConfig.Builder, - com.google.container.v1.SecurityPostureConfigOrBuilder>( - getSecurityPostureConfig(), getParentForChildren(), isClean()); - securityPostureConfig_ = null; - } - return securityPostureConfigBuilder_; - } - - private com.google.container.v1.K8sBetaAPIConfig enableK8SBetaApis_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.K8sBetaAPIConfig, - com.google.container.v1.K8sBetaAPIConfig.Builder, - com.google.container.v1.K8sBetaAPIConfigOrBuilder> - enableK8SBetaApisBuilder_; - /** - * - * - *
-     * Beta APIs Config
-     * 
- * - * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; - * - * @return Whether the enableK8sBetaApis field is set. - */ - public boolean hasEnableK8SBetaApis() { - return ((bitField2_ & 0x00000002) != 0); - } - /** - * - * - *
-     * Beta APIs Config
-     * 
- * - * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; - * - * @return The enableK8sBetaApis. - */ - public com.google.container.v1.K8sBetaAPIConfig getEnableK8SBetaApis() { - if (enableK8SBetaApisBuilder_ == null) { - return enableK8SBetaApis_ == null - ? com.google.container.v1.K8sBetaAPIConfig.getDefaultInstance() - : enableK8SBetaApis_; - } else { - return enableK8SBetaApisBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Beta APIs Config
-     * 
- * - * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; - */ - public Builder setEnableK8SBetaApis(com.google.container.v1.K8sBetaAPIConfig value) { - if (enableK8SBetaApisBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - enableK8SBetaApis_ = value; - } else { - enableK8SBetaApisBuilder_.setMessage(value); - } - bitField2_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Beta APIs Config
-     * 
- * - * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; - */ - public Builder setEnableK8SBetaApis( - com.google.container.v1.K8sBetaAPIConfig.Builder builderForValue) { - if (enableK8SBetaApisBuilder_ == null) { - enableK8SBetaApis_ = builderForValue.build(); - } else { - enableK8SBetaApisBuilder_.setMessage(builderForValue.build()); - } - bitField2_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Beta APIs Config
-     * 
- * - * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; - */ - public Builder mergeEnableK8SBetaApis(com.google.container.v1.K8sBetaAPIConfig value) { - if (enableK8SBetaApisBuilder_ == null) { - if (((bitField2_ & 0x00000002) != 0) - && enableK8SBetaApis_ != null - && enableK8SBetaApis_ - != com.google.container.v1.K8sBetaAPIConfig.getDefaultInstance()) { - getEnableK8SBetaApisBuilder().mergeFrom(value); - } else { - enableK8SBetaApis_ = value; - } - } else { - enableK8SBetaApisBuilder_.mergeFrom(value); - } - if (enableK8SBetaApis_ != null) { - bitField2_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Beta APIs Config
-     * 
- * - * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; - */ - public Builder clearEnableK8SBetaApis() { - bitField2_ = (bitField2_ & ~0x00000002); - enableK8SBetaApis_ = null; - if (enableK8SBetaApisBuilder_ != null) { - enableK8SBetaApisBuilder_.dispose(); - enableK8SBetaApisBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Beta APIs Config
-     * 
- * - * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; - */ - public com.google.container.v1.K8sBetaAPIConfig.Builder getEnableK8SBetaApisBuilder() { - bitField2_ |= 0x00000002; - onChanged(); - return getEnableK8SBetaApisFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Beta APIs Config
-     * 
- * - * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; - */ - public com.google.container.v1.K8sBetaAPIConfigOrBuilder getEnableK8SBetaApisOrBuilder() { - if (enableK8SBetaApisBuilder_ != null) { - return enableK8SBetaApisBuilder_.getMessageOrBuilder(); - } else { - return enableK8SBetaApis_ == null - ? com.google.container.v1.K8sBetaAPIConfig.getDefaultInstance() - : enableK8SBetaApis_; - } - } - /** - * - * - *
-     * Beta APIs Config
-     * 
- * - * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.K8sBetaAPIConfig, - com.google.container.v1.K8sBetaAPIConfig.Builder, - com.google.container.v1.K8sBetaAPIConfigOrBuilder> - getEnableK8SBetaApisFieldBuilder() { - if (enableK8SBetaApisBuilder_ == null) { - enableK8SBetaApisBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.K8sBetaAPIConfig, - com.google.container.v1.K8sBetaAPIConfig.Builder, - com.google.container.v1.K8sBetaAPIConfigOrBuilder>( - getEnableK8SBetaApis(), getParentForChildren(), isClean()); - enableK8SBetaApis_ = null; - } - return enableK8SBetaApisBuilder_; - } - - private com.google.container.v1.EnterpriseConfig enterpriseConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.EnterpriseConfig, - com.google.container.v1.EnterpriseConfig.Builder, - com.google.container.v1.EnterpriseConfigOrBuilder> - enterpriseConfigBuilder_; - /** - * - * - *
-     * GKE Enterprise Configuration.
-     * 
- * - * .google.container.v1.EnterpriseConfig enterprise_config = 149; - * - * @return Whether the enterpriseConfig field is set. - */ - public boolean hasEnterpriseConfig() { - return ((bitField2_ & 0x00000004) != 0); - } - /** - * - * - *
-     * GKE Enterprise Configuration.
-     * 
- * - * .google.container.v1.EnterpriseConfig enterprise_config = 149; - * - * @return The enterpriseConfig. - */ - public com.google.container.v1.EnterpriseConfig getEnterpriseConfig() { - if (enterpriseConfigBuilder_ == null) { - return enterpriseConfig_ == null - ? com.google.container.v1.EnterpriseConfig.getDefaultInstance() - : enterpriseConfig_; - } else { - return enterpriseConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * GKE Enterprise Configuration.
-     * 
- * - * .google.container.v1.EnterpriseConfig enterprise_config = 149; - */ - public Builder setEnterpriseConfig(com.google.container.v1.EnterpriseConfig value) { - if (enterpriseConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - enterpriseConfig_ = value; - } else { - enterpriseConfigBuilder_.setMessage(value); - } - bitField2_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * GKE Enterprise Configuration.
-     * 
- * - * .google.container.v1.EnterpriseConfig enterprise_config = 149; - */ - public Builder setEnterpriseConfig( - com.google.container.v1.EnterpriseConfig.Builder builderForValue) { - if (enterpriseConfigBuilder_ == null) { - enterpriseConfig_ = builderForValue.build(); - } else { - enterpriseConfigBuilder_.setMessage(builderForValue.build()); - } - bitField2_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * GKE Enterprise Configuration.
-     * 
- * - * .google.container.v1.EnterpriseConfig enterprise_config = 149; - */ - public Builder mergeEnterpriseConfig(com.google.container.v1.EnterpriseConfig value) { - if (enterpriseConfigBuilder_ == null) { - if (((bitField2_ & 0x00000004) != 0) - && enterpriseConfig_ != null - && enterpriseConfig_ != com.google.container.v1.EnterpriseConfig.getDefaultInstance()) { - getEnterpriseConfigBuilder().mergeFrom(value); - } else { - enterpriseConfig_ = value; - } - } else { - enterpriseConfigBuilder_.mergeFrom(value); - } - if (enterpriseConfig_ != null) { - bitField2_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - * - * - *
-     * GKE Enterprise Configuration.
-     * 
- * - * .google.container.v1.EnterpriseConfig enterprise_config = 149; - */ - public Builder clearEnterpriseConfig() { - bitField2_ = (bitField2_ & ~0x00000004); - enterpriseConfig_ = null; - if (enterpriseConfigBuilder_ != null) { - enterpriseConfigBuilder_.dispose(); - enterpriseConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * GKE Enterprise Configuration.
-     * 
- * - * .google.container.v1.EnterpriseConfig enterprise_config = 149; - */ - public com.google.container.v1.EnterpriseConfig.Builder getEnterpriseConfigBuilder() { - bitField2_ |= 0x00000004; - onChanged(); - return getEnterpriseConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * GKE Enterprise Configuration.
-     * 
- * - * .google.container.v1.EnterpriseConfig enterprise_config = 149; - */ - public com.google.container.v1.EnterpriseConfigOrBuilder getEnterpriseConfigOrBuilder() { - if (enterpriseConfigBuilder_ != null) { - return enterpriseConfigBuilder_.getMessageOrBuilder(); - } else { - return enterpriseConfig_ == null - ? com.google.container.v1.EnterpriseConfig.getDefaultInstance() - : enterpriseConfig_; - } - } - /** - * - * - *
-     * GKE Enterprise Configuration.
-     * 
- * - * .google.container.v1.EnterpriseConfig enterprise_config = 149; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.EnterpriseConfig, - com.google.container.v1.EnterpriseConfig.Builder, - com.google.container.v1.EnterpriseConfigOrBuilder> - getEnterpriseConfigFieldBuilder() { - if (enterpriseConfigBuilder_ == null) { - enterpriseConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.EnterpriseConfig, - com.google.container.v1.EnterpriseConfig.Builder, - com.google.container.v1.EnterpriseConfigOrBuilder>( - getEnterpriseConfig(), getParentForChildren(), isClean()); - enterpriseConfig_ = null; - } - return enterpriseConfigBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.Cluster) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.Cluster) - private static final com.google.container.v1.Cluster DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.Cluster(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.Cluster getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterAutoscaling.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterAutoscaling.java deleted file mode 100644 index 7da41f9102a8..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterAutoscaling.java +++ /dev/null @@ -1,2029 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * 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.v1.ClusterAutoscaling} - */ -public final class ClusterAutoscaling extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ClusterAutoscaling(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ClusterAutoscaling_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ClusterAutoscaling_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ClusterAutoscaling.class, - com.google.container.v1.ClusterAutoscaling.Builder.class); - } - - /** - * - * - *
-   * Defines possible options for autoscaling_profile field.
-   * 
- * - * Protobuf enum {@code google.container.v1.ClusterAutoscaling.AutoscalingProfile} - */ - public enum AutoscalingProfile implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * No change to autoscaling configuration.
-     * 
- * - * PROFILE_UNSPECIFIED = 0; - */ - PROFILE_UNSPECIFIED(0), - /** - * - * - *
-     * Prioritize optimizing utilization of resources.
-     * 
- * - * OPTIMIZE_UTILIZATION = 1; - */ - OPTIMIZE_UTILIZATION(1), - /** - * - * - *
-     * Use default (balanced) autoscaling configuration.
-     * 
- * - * BALANCED = 2; - */ - BALANCED(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * No change to autoscaling configuration.
-     * 
- * - * PROFILE_UNSPECIFIED = 0; - */ - public static final int PROFILE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Prioritize optimizing utilization of resources.
-     * 
- * - * OPTIMIZE_UTILIZATION = 1; - */ - public static final int OPTIMIZE_UTILIZATION_VALUE = 1; - /** - * - * - *
-     * Use default (balanced) autoscaling configuration.
-     * 
- * - * BALANCED = 2; - */ - public static final int BALANCED_VALUE = 2; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static AutoscalingProfile valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static AutoscalingProfile forNumber(int value) { - switch (value) { - case 0: - return PROFILE_UNSPECIFIED; - case 1: - return OPTIMIZE_UTILIZATION; - case 2: - return BALANCED; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AutoscalingProfile findValueByNumber(int number) { - return AutoscalingProfile.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.ClusterAutoscaling.getDescriptor().getEnumTypes().get(0); - } - - private static final AutoscalingProfile[] VALUES = values(); - - public static AutoscalingProfile valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private AutoscalingProfile(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.ClusterAutoscaling.AutoscalingProfile) - } - - private int bitField0_; - public static final int ENABLE_NODE_AUTOPROVISIONING_FIELD_NUMBER = 1; - private boolean enableNodeAutoprovisioning_ = false; - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - private java.util.List resourceLimits_; - /** - * - * - *
-   * Contains global constraints regarding minimum and maximum
-   * amount of resources in the cluster.
-   * 
- * - * repeated .google.container.v1.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.v1.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.v1.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.v1.ResourceLimit resource_limits = 2; - */ - @java.lang.Override - public com.google.container.v1.ResourceLimit getResourceLimits(int index) { - return resourceLimits_.get(index); - } - /** - * - * - *
-   * Contains global constraints regarding minimum and maximum
-   * amount of resources in the cluster.
-   * 
- * - * repeated .google.container.v1.ResourceLimit resource_limits = 2; - */ - @java.lang.Override - public com.google.container.v1.ResourceLimitOrBuilder getResourceLimitsOrBuilder(int index) { - return resourceLimits_.get(index); - } - - public static final int AUTOSCALING_PROFILE_FIELD_NUMBER = 3; - private int autoscalingProfile_ = 0; - /** - * - * - *
-   * Defines autoscaling behaviour.
-   * 
- * - * .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; - * - * - * @return The enum numeric value on the wire for autoscalingProfile. - */ - @java.lang.Override - public int getAutoscalingProfileValue() { - return autoscalingProfile_; - } - /** - * - * - *
-   * Defines autoscaling behaviour.
-   * 
- * - * .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; - * - * - * @return The autoscalingProfile. - */ - @java.lang.Override - public com.google.container.v1.ClusterAutoscaling.AutoscalingProfile getAutoscalingProfile() { - com.google.container.v1.ClusterAutoscaling.AutoscalingProfile result = - com.google.container.v1.ClusterAutoscaling.AutoscalingProfile.forNumber( - autoscalingProfile_); - return result == null - ? com.google.container.v1.ClusterAutoscaling.AutoscalingProfile.UNRECOGNIZED - : result; - } - - public static final int AUTOPROVISIONING_NODE_POOL_DEFAULTS_FIELD_NUMBER = 4; - private com.google.container.v1.AutoprovisioningNodePoolDefaults - autoprovisioningNodePoolDefaults_; - /** - * - * - *
-   * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-   * created by NAP.
-   * 
- * - * - * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * - * - * @return Whether the autoprovisioningNodePoolDefaults field is set. - */ - @java.lang.Override - public boolean hasAutoprovisioningNodePoolDefaults() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-   * created by NAP.
-   * 
- * - * - * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * - * - * @return The autoprovisioningNodePoolDefaults. - */ - @java.lang.Override - public com.google.container.v1.AutoprovisioningNodePoolDefaults - getAutoprovisioningNodePoolDefaults() { - return autoprovisioningNodePoolDefaults_ == null - ? com.google.container.v1.AutoprovisioningNodePoolDefaults.getDefaultInstance() - : autoprovisioningNodePoolDefaults_; - } - /** - * - * - *
-   * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-   * created by NAP.
-   * 
- * - * - * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * - */ - @java.lang.Override - public com.google.container.v1.AutoprovisioningNodePoolDefaultsOrBuilder - getAutoprovisioningNodePoolDefaultsOrBuilder() { - return autoprovisioningNodePoolDefaults_ == null - ? com.google.container.v1.AutoprovisioningNodePoolDefaults.getDefaultInstance() - : autoprovisioningNodePoolDefaults_; - } - - public static final int AUTOPROVISIONING_LOCATIONS_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList autoprovisioningLocations_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * 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.v1.ClusterAutoscaling.AutoscalingProfile.PROFILE_UNSPECIFIED - .getNumber()) { - output.writeEnum(3, autoscalingProfile_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(4, getAutoprovisioningNodePoolDefaults()); - } - for (int i = 0; i < autoprovisioningLocations_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 5, autoprovisioningLocations_.getRaw(i)); - } - getUnknownFields().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.v1.ClusterAutoscaling.AutoscalingProfile.PROFILE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, autoscalingProfile_); - } - if (((bitField0_ & 0x00000001) != 0)) { - 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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.ClusterAutoscaling)) { - return super.equals(obj); - } - com.google.container.v1.ClusterAutoscaling other = - (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ClusterAutoscaling parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.ClusterAutoscaling parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.ClusterAutoscaling parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ClusterAutoscaling parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ClusterAutoscaling parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.ClusterAutoscaling parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.ClusterAutoscaling parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.ClusterAutoscaling} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ClusterAutoscaling) - com.google.container.v1.ClusterAutoscalingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ClusterAutoscaling_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ClusterAutoscaling_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ClusterAutoscaling.class, - com.google.container.v1.ClusterAutoscaling.Builder.class); - } - - // Construct using com.google.container.v1.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(); - getAutoprovisioningNodePoolDefaultsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enableNodeAutoprovisioning_ = false; - if (resourceLimitsBuilder_ == null) { - resourceLimits_ = java.util.Collections.emptyList(); - } else { - resourceLimits_ = null; - resourceLimitsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - autoscalingProfile_ = 0; - autoprovisioningNodePoolDefaults_ = null; - if (autoprovisioningNodePoolDefaultsBuilder_ != null) { - autoprovisioningNodePoolDefaultsBuilder_.dispose(); - autoprovisioningNodePoolDefaultsBuilder_ = null; - } - autoprovisioningLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ClusterAutoscaling_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ClusterAutoscaling getDefaultInstanceForType() { - return com.google.container.v1.ClusterAutoscaling.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ClusterAutoscaling build() { - com.google.container.v1.ClusterAutoscaling result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ClusterAutoscaling buildPartial() { - com.google.container.v1.ClusterAutoscaling result = - new com.google.container.v1.ClusterAutoscaling(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.container.v1.ClusterAutoscaling result) { - if (resourceLimitsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - resourceLimits_ = java.util.Collections.unmodifiableList(resourceLimits_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.resourceLimits_ = resourceLimits_; - } else { - result.resourceLimits_ = resourceLimitsBuilder_.build(); - } - } - - private void buildPartial0(com.google.container.v1.ClusterAutoscaling result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enableNodeAutoprovisioning_ = enableNodeAutoprovisioning_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.autoscalingProfile_ = autoscalingProfile_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.autoprovisioningNodePoolDefaults_ = - autoprovisioningNodePoolDefaultsBuilder_ == null - ? autoprovisioningNodePoolDefaults_ - : autoprovisioningNodePoolDefaultsBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - autoprovisioningLocations_.makeImmutable(); - result.autoprovisioningLocations_ = autoprovisioningLocations_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ClusterAutoscaling) { - return mergeFrom((com.google.container.v1.ClusterAutoscaling) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ClusterAutoscaling other) { - if (other == com.google.container.v1.ClusterAutoscaling.getDefaultInstance()) return this; - if (other.getEnableNodeAutoprovisioning() != false) { - setEnableNodeAutoprovisioning(other.getEnableNodeAutoprovisioning()); - } - if (resourceLimitsBuilder_ == null) { - if (!other.resourceLimits_.isEmpty()) { - if (resourceLimits_.isEmpty()) { - resourceLimits_ = other.resourceLimits_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureResourceLimitsIsMutable(); - resourceLimits_.addAll(other.resourceLimits_); - } - onChanged(); - } - } else { - if (!other.resourceLimits_.isEmpty()) { - if (resourceLimitsBuilder_.isEmpty()) { - resourceLimitsBuilder_.dispose(); - resourceLimitsBuilder_ = null; - resourceLimits_ = other.resourceLimits_; - bitField0_ = (bitField0_ & ~0x00000002); - resourceLimitsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getResourceLimitsFieldBuilder() - : null; - } else { - resourceLimitsBuilder_.addAllMessages(other.resourceLimits_); - } - } - } - if (other.autoscalingProfile_ != 0) { - setAutoscalingProfileValue(other.getAutoscalingProfileValue()); - } - if (other.hasAutoprovisioningNodePoolDefaults()) { - mergeAutoprovisioningNodePoolDefaults(other.getAutoprovisioningNodePoolDefaults()); - } - if (!other.autoprovisioningLocations_.isEmpty()) { - if (autoprovisioningLocations_.isEmpty()) { - autoprovisioningLocations_ = other.autoprovisioningLocations_; - bitField0_ |= 0x00000010; - } else { - ensureAutoprovisioningLocationsIsMutable(); - autoprovisioningLocations_.addAll(other.autoprovisioningLocations_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enableNodeAutoprovisioning_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - com.google.container.v1.ResourceLimit m = - input.readMessage( - com.google.container.v1.ResourceLimit.parser(), extensionRegistry); - if (resourceLimitsBuilder_ == null) { - ensureResourceLimitsIsMutable(); - resourceLimits_.add(m); - } else { - resourceLimitsBuilder_.addMessage(m); - } - break; - } // case 18 - case 24: - { - autoscalingProfile_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - input.readMessage( - getAutoprovisioningNodePoolDefaultsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureAutoprovisioningLocationsIsMutable(); - autoprovisioningLocations_.add(s); - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Enables automatic node pool creation and deletion.
-     * 
- * - * bool enable_node_autoprovisioning = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnableNodeAutoprovisioning() { - bitField0_ = (bitField0_ & ~0x00000001); - enableNodeAutoprovisioning_ = false; - onChanged(); - return this; - } - - private java.util.List resourceLimits_ = - java.util.Collections.emptyList(); - - private void ensureResourceLimitsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - resourceLimits_ = - new java.util.ArrayList(resourceLimits_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.ResourceLimit, - com.google.container.v1.ResourceLimit.Builder, - com.google.container.v1.ResourceLimitOrBuilder> - resourceLimitsBuilder_; - - /** - * - * - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1.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.v1.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.v1.ResourceLimit resource_limits = 2; - */ - public com.google.container.v1.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.v1.ResourceLimit resource_limits = 2; - */ - public Builder setResourceLimits(int index, com.google.container.v1.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.v1.ResourceLimit resource_limits = 2; - */ - public Builder setResourceLimits( - int index, com.google.container.v1.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.v1.ResourceLimit resource_limits = 2; - */ - public Builder addResourceLimits(com.google.container.v1.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.v1.ResourceLimit resource_limits = 2; - */ - public Builder addResourceLimits(int index, com.google.container.v1.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.v1.ResourceLimit resource_limits = 2; - */ - public Builder addResourceLimits( - com.google.container.v1.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.v1.ResourceLimit resource_limits = 2; - */ - public Builder addResourceLimits( - int index, com.google.container.v1.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.v1.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.v1.ResourceLimit resource_limits = 2; - */ - public Builder clearResourceLimits() { - if (resourceLimitsBuilder_ == null) { - resourceLimits_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - resourceLimitsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1.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.v1.ResourceLimit resource_limits = 2; - */ - public com.google.container.v1.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.v1.ResourceLimit resource_limits = 2; - */ - public com.google.container.v1.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.v1.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.v1.ResourceLimit resource_limits = 2; - */ - public com.google.container.v1.ResourceLimit.Builder addResourceLimitsBuilder() { - return getResourceLimitsFieldBuilder() - .addBuilder(com.google.container.v1.ResourceLimit.getDefaultInstance()); - } - /** - * - * - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1.ResourceLimit resource_limits = 2; - */ - public com.google.container.v1.ResourceLimit.Builder addResourceLimitsBuilder(int index) { - return getResourceLimitsFieldBuilder() - .addBuilder(index, com.google.container.v1.ResourceLimit.getDefaultInstance()); - } - /** - * - * - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1.ResourceLimit resource_limits = 2; - */ - public java.util.List - getResourceLimitsBuilderList() { - return getResourceLimitsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.ResourceLimit, - com.google.container.v1.ResourceLimit.Builder, - com.google.container.v1.ResourceLimitOrBuilder> - getResourceLimitsFieldBuilder() { - if (resourceLimitsBuilder_ == null) { - resourceLimitsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.ResourceLimit, - com.google.container.v1.ResourceLimit.Builder, - com.google.container.v1.ResourceLimitOrBuilder>( - resourceLimits_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - resourceLimits_ = null; - } - return resourceLimitsBuilder_; - } - - private int autoscalingProfile_ = 0; - /** - * - * - *
-     * Defines autoscaling behaviour.
-     * 
- * - * .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; - * - * - * @return The enum numeric value on the wire for autoscalingProfile. - */ - @java.lang.Override - public int getAutoscalingProfileValue() { - return autoscalingProfile_; - } - /** - * - * - *
-     * Defines autoscaling behaviour.
-     * 
- * - * .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; - * - * - * @param value The enum numeric value on the wire for autoscalingProfile to set. - * @return This builder for chaining. - */ - public Builder setAutoscalingProfileValue(int value) { - autoscalingProfile_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Defines autoscaling behaviour.
-     * 
- * - * .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; - * - * - * @return The autoscalingProfile. - */ - @java.lang.Override - public com.google.container.v1.ClusterAutoscaling.AutoscalingProfile getAutoscalingProfile() { - com.google.container.v1.ClusterAutoscaling.AutoscalingProfile result = - com.google.container.v1.ClusterAutoscaling.AutoscalingProfile.forNumber( - autoscalingProfile_); - return result == null - ? com.google.container.v1.ClusterAutoscaling.AutoscalingProfile.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Defines autoscaling behaviour.
-     * 
- * - * .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; - * - * - * @param value The autoscalingProfile to set. - * @return This builder for chaining. - */ - public Builder setAutoscalingProfile( - com.google.container.v1.ClusterAutoscaling.AutoscalingProfile value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - autoscalingProfile_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Defines autoscaling behaviour.
-     * 
- * - * .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; - * - * - * @return This builder for chaining. - */ - public Builder clearAutoscalingProfile() { - bitField0_ = (bitField0_ & ~0x00000004); - autoscalingProfile_ = 0; - onChanged(); - return this; - } - - private com.google.container.v1.AutoprovisioningNodePoolDefaults - autoprovisioningNodePoolDefaults_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AutoprovisioningNodePoolDefaults, - com.google.container.v1.AutoprovisioningNodePoolDefaults.Builder, - com.google.container.v1.AutoprovisioningNodePoolDefaultsOrBuilder> - autoprovisioningNodePoolDefaultsBuilder_; - /** - * - * - *
-     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-     * created by NAP.
-     * 
- * - * - * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * - * - * @return Whether the autoprovisioningNodePoolDefaults field is set. - */ - public boolean hasAutoprovisioningNodePoolDefaults() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-     * created by NAP.
-     * 
- * - * - * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * - * - * @return The autoprovisioningNodePoolDefaults. - */ - public com.google.container.v1.AutoprovisioningNodePoolDefaults - getAutoprovisioningNodePoolDefaults() { - if (autoprovisioningNodePoolDefaultsBuilder_ == null) { - return autoprovisioningNodePoolDefaults_ == null - ? com.google.container.v1.AutoprovisioningNodePoolDefaults.getDefaultInstance() - : autoprovisioningNodePoolDefaults_; - } else { - return autoprovisioningNodePoolDefaultsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-     * created by NAP.
-     * 
- * - * - * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * - */ - public Builder setAutoprovisioningNodePoolDefaults( - com.google.container.v1.AutoprovisioningNodePoolDefaults value) { - if (autoprovisioningNodePoolDefaultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - autoprovisioningNodePoolDefaults_ = value; - } else { - autoprovisioningNodePoolDefaultsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-     * created by NAP.
-     * 
- * - * - * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * - */ - public Builder setAutoprovisioningNodePoolDefaults( - com.google.container.v1.AutoprovisioningNodePoolDefaults.Builder builderForValue) { - if (autoprovisioningNodePoolDefaultsBuilder_ == null) { - autoprovisioningNodePoolDefaults_ = builderForValue.build(); - } else { - autoprovisioningNodePoolDefaultsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-     * created by NAP.
-     * 
- * - * - * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * - */ - public Builder mergeAutoprovisioningNodePoolDefaults( - com.google.container.v1.AutoprovisioningNodePoolDefaults value) { - if (autoprovisioningNodePoolDefaultsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && autoprovisioningNodePoolDefaults_ != null - && autoprovisioningNodePoolDefaults_ - != com.google.container.v1.AutoprovisioningNodePoolDefaults.getDefaultInstance()) { - getAutoprovisioningNodePoolDefaultsBuilder().mergeFrom(value); - } else { - autoprovisioningNodePoolDefaults_ = value; - } - } else { - autoprovisioningNodePoolDefaultsBuilder_.mergeFrom(value); - } - if (autoprovisioningNodePoolDefaults_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - return this; - } - /** - * - * - *
-     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-     * created by NAP.
-     * 
- * - * - * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * - */ - public Builder clearAutoprovisioningNodePoolDefaults() { - bitField0_ = (bitField0_ & ~0x00000008); - autoprovisioningNodePoolDefaults_ = null; - if (autoprovisioningNodePoolDefaultsBuilder_ != null) { - autoprovisioningNodePoolDefaultsBuilder_.dispose(); - autoprovisioningNodePoolDefaultsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-     * created by NAP.
-     * 
- * - * - * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * - */ - public com.google.container.v1.AutoprovisioningNodePoolDefaults.Builder - getAutoprovisioningNodePoolDefaultsBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getAutoprovisioningNodePoolDefaultsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-     * created by NAP.
-     * 
- * - * - * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * - */ - public com.google.container.v1.AutoprovisioningNodePoolDefaultsOrBuilder - getAutoprovisioningNodePoolDefaultsOrBuilder() { - if (autoprovisioningNodePoolDefaultsBuilder_ != null) { - return autoprovisioningNodePoolDefaultsBuilder_.getMessageOrBuilder(); - } else { - return autoprovisioningNodePoolDefaults_ == null - ? com.google.container.v1.AutoprovisioningNodePoolDefaults.getDefaultInstance() - : autoprovisioningNodePoolDefaults_; - } - } - /** - * - * - *
-     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-     * created by NAP.
-     * 
- * - * - * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AutoprovisioningNodePoolDefaults, - com.google.container.v1.AutoprovisioningNodePoolDefaults.Builder, - com.google.container.v1.AutoprovisioningNodePoolDefaultsOrBuilder> - getAutoprovisioningNodePoolDefaultsFieldBuilder() { - if (autoprovisioningNodePoolDefaultsBuilder_ == null) { - autoprovisioningNodePoolDefaultsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AutoprovisioningNodePoolDefaults, - com.google.container.v1.AutoprovisioningNodePoolDefaults.Builder, - com.google.container.v1.AutoprovisioningNodePoolDefaultsOrBuilder>( - getAutoprovisioningNodePoolDefaults(), getParentForChildren(), isClean()); - autoprovisioningNodePoolDefaults_ = null; - } - return autoprovisioningNodePoolDefaultsBuilder_; - } - - private com.google.protobuf.LazyStringArrayList autoprovisioningLocations_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureAutoprovisioningLocationsIsMutable() { - if (!autoprovisioningLocations_.isModifiable()) { - autoprovisioningLocations_ = - new com.google.protobuf.LazyStringArrayList(autoprovisioningLocations_); - } - bitField0_ |= 0x00000010; - } - /** - * - * - *
-     * 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() { - autoprovisioningLocations_.makeImmutable(); - 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); - } - /** - * - * - *
-     * 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); - bitField0_ |= 0x00000010; - 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); - bitField0_ |= 0x00000010; - 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_); - bitField0_ |= 0x00000010; - 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.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - ; - 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); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.ClusterAutoscaling) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ClusterAutoscaling) - private static final com.google.container.v1.ClusterAutoscaling DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ClusterAutoscaling(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.ClusterAutoscaling getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterAutoscalingOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterAutoscalingOrBuilder.java deleted file mode 100644 index ace561c90b70..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterAutoscalingOrBuilder.java +++ /dev/null @@ -1,227 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface ClusterAutoscalingOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.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.v1.ResourceLimit resource_limits = 2; - */ - java.util.List getResourceLimitsList(); - /** - * - * - *
-   * Contains global constraints regarding minimum and maximum
-   * amount of resources in the cluster.
-   * 
- * - * repeated .google.container.v1.ResourceLimit resource_limits = 2; - */ - com.google.container.v1.ResourceLimit getResourceLimits(int index); - /** - * - * - *
-   * Contains global constraints regarding minimum and maximum
-   * amount of resources in the cluster.
-   * 
- * - * repeated .google.container.v1.ResourceLimit resource_limits = 2; - */ - int getResourceLimitsCount(); - /** - * - * - *
-   * Contains global constraints regarding minimum and maximum
-   * amount of resources in the cluster.
-   * 
- * - * repeated .google.container.v1.ResourceLimit resource_limits = 2; - */ - java.util.List - getResourceLimitsOrBuilderList(); - /** - * - * - *
-   * Contains global constraints regarding minimum and maximum
-   * amount of resources in the cluster.
-   * 
- * - * repeated .google.container.v1.ResourceLimit resource_limits = 2; - */ - com.google.container.v1.ResourceLimitOrBuilder getResourceLimitsOrBuilder(int index); - - /** - * - * - *
-   * Defines autoscaling behaviour.
-   * 
- * - * .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; - * - * - * @return The enum numeric value on the wire for autoscalingProfile. - */ - int getAutoscalingProfileValue(); - /** - * - * - *
-   * Defines autoscaling behaviour.
-   * 
- * - * .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; - * - * - * @return The autoscalingProfile. - */ - com.google.container.v1.ClusterAutoscaling.AutoscalingProfile getAutoscalingProfile(); - - /** - * - * - *
-   * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-   * created by NAP.
-   * 
- * - * - * .google.container.v1.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.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * - * - * @return The autoprovisioningNodePoolDefaults. - */ - com.google.container.v1.AutoprovisioningNodePoolDefaults getAutoprovisioningNodePoolDefaults(); - /** - * - * - *
-   * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-   * created by NAP.
-   * 
- * - * - * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * - */ - com.google.container.v1.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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java deleted file mode 100644 index 61ecda7238f1..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java +++ /dev/null @@ -1,2471 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface ClusterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.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]; - * - * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=1669 - * @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.v1.NodeConfig node_config = 4 [deprecated = true]; - * - * @deprecated google.container.v1.Cluster.node_config is deprecated. See - * google/container/v1/cluster_service.proto;l=1682 - * @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.v1.NodeConfig node_config = 4 [deprecated = true]; - * - * @deprecated google.container.v1.Cluster.node_config is deprecated. See - * google/container/v1/cluster_service.proto;l=1682 - * @return The nodeConfig. - */ - @java.lang.Deprecated - com.google.container.v1.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.v1.NodeConfig node_config = 4 [deprecated = true]; - */ - @java.lang.Deprecated - com.google.container.v1.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.v1.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.v1.MasterAuth master_auth = 5; - * - * @return The masterAuth. - */ - com.google.container.v1.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.v1.MasterAuth master_auth = 5; - */ - com.google.container.v1.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.
-   * 
- * - * 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.
-   * 
- * - * 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.v1.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.v1.AddonsConfig addons_config = 10; - * - * @return The addonsConfig. - */ - com.google.container.v1.AddonsConfig getAddonsConfig(); - /** - * - * - *
-   * Configurations for the various addons available to run in the cluster.
-   * 
- * - * .google.container.v1.AddonsConfig addons_config = 10; - */ - com.google.container.v1.AddonsConfigOrBuilder getAddonsConfigOrBuilder(); - - /** - * - * - *
-   * The name of the Google Compute Engine
-   * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
-   * the cluster is connected.
-   * 
- * - * 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.
-   * 
- * - * 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.v1.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.v1.NodePool node_pools = 12; - */ - com.google.container.v1.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.v1.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.v1.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.v1.NodePool node_pools = 12; - */ - com.google.container.v1.NodePoolOrBuilder getNodePoolsOrBuilder(int index); - - /** - * - * - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   *
-   * 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. v1alpha1) and features that may not be production ready in
-   * the kubernetes version of the master and nodes.
-   * The cluster has no SLA for uptime and master/node upgrades are disabled.
-   * Alpha enabled clusters are automatically deleted thirty days after
-   * creation.
-   * 
- * - * bool enable_kubernetes_alpha = 14; - * - * @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; - */ - /* nullable */ - java.lang.String getResourceLabelsOrDefault( - java.lang.String key, - /* nullable */ - 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.v1.LegacyAbac legacy_abac = 18; - * - * @return Whether the legacyAbac field is set. - */ - boolean hasLegacyAbac(); - /** - * - * - *
-   * Configuration for the legacy ABAC authorization mode.
-   * 
- * - * .google.container.v1.LegacyAbac legacy_abac = 18; - * - * @return The legacyAbac. - */ - com.google.container.v1.LegacyAbac getLegacyAbac(); - /** - * - * - *
-   * Configuration for the legacy ABAC authorization mode.
-   * 
- * - * .google.container.v1.LegacyAbac legacy_abac = 18; - */ - com.google.container.v1.LegacyAbacOrBuilder getLegacyAbacOrBuilder(); - - /** - * - * - *
-   * Configuration options for the NetworkPolicy feature.
-   * 
- * - * .google.container.v1.NetworkPolicy network_policy = 19; - * - * @return Whether the networkPolicy field is set. - */ - boolean hasNetworkPolicy(); - /** - * - * - *
-   * Configuration options for the NetworkPolicy feature.
-   * 
- * - * .google.container.v1.NetworkPolicy network_policy = 19; - * - * @return The networkPolicy. - */ - com.google.container.v1.NetworkPolicy getNetworkPolicy(); - /** - * - * - *
-   * Configuration options for the NetworkPolicy feature.
-   * 
- * - * .google.container.v1.NetworkPolicy network_policy = 19; - */ - com.google.container.v1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder(); - - /** - * - * - *
-   * Configuration for cluster IP allocation.
-   * 
- * - * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; - * - * @return Whether the ipAllocationPolicy field is set. - */ - boolean hasIpAllocationPolicy(); - /** - * - * - *
-   * Configuration for cluster IP allocation.
-   * 
- * - * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; - * - * @return The ipAllocationPolicy. - */ - com.google.container.v1.IPAllocationPolicy getIpAllocationPolicy(); - /** - * - * - *
-   * Configuration for cluster IP allocation.
-   * 
- * - * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; - */ - com.google.container.v1.IPAllocationPolicyOrBuilder getIpAllocationPolicyOrBuilder(); - - /** - * - * - *
-   * The configuration options for master authorized networks feature.
-   * 
- * - * - * .google.container.v1.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.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - * - * - * @return The masterAuthorizedNetworksConfig. - */ - com.google.container.v1.MasterAuthorizedNetworksConfig getMasterAuthorizedNetworksConfig(); - /** - * - * - *
-   * The configuration options for master authorized networks feature.
-   * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - * - */ - com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder - getMasterAuthorizedNetworksConfigOrBuilder(); - - /** - * - * - *
-   * Configure the maintenance policy for this cluster.
-   * 
- * - * .google.container.v1.MaintenancePolicy maintenance_policy = 23; - * - * @return Whether the maintenancePolicy field is set. - */ - boolean hasMaintenancePolicy(); - /** - * - * - *
-   * Configure the maintenance policy for this cluster.
-   * 
- * - * .google.container.v1.MaintenancePolicy maintenance_policy = 23; - * - * @return The maintenancePolicy. - */ - com.google.container.v1.MaintenancePolicy getMaintenancePolicy(); - /** - * - * - *
-   * Configure the maintenance policy for this cluster.
-   * 
- * - * .google.container.v1.MaintenancePolicy maintenance_policy = 23; - */ - com.google.container.v1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder(); - - /** - * - * - *
-   * Configuration for Binary Authorization.
-   * 
- * - * .google.container.v1.BinaryAuthorization binary_authorization = 24; - * - * @return Whether the binaryAuthorization field is set. - */ - boolean hasBinaryAuthorization(); - /** - * - * - *
-   * Configuration for Binary Authorization.
-   * 
- * - * .google.container.v1.BinaryAuthorization binary_authorization = 24; - * - * @return The binaryAuthorization. - */ - com.google.container.v1.BinaryAuthorization getBinaryAuthorization(); - /** - * - * - *
-   * Configuration for Binary Authorization.
-   * 
- * - * .google.container.v1.BinaryAuthorization binary_authorization = 24; - */ - com.google.container.v1.BinaryAuthorizationOrBuilder getBinaryAuthorizationOrBuilder(); - - /** - * - * - *
-   * Cluster-level autoscaling configuration.
-   * 
- * - * .google.container.v1.ClusterAutoscaling autoscaling = 26; - * - * @return Whether the autoscaling field is set. - */ - boolean hasAutoscaling(); - /** - * - * - *
-   * Cluster-level autoscaling configuration.
-   * 
- * - * .google.container.v1.ClusterAutoscaling autoscaling = 26; - * - * @return The autoscaling. - */ - com.google.container.v1.ClusterAutoscaling getAutoscaling(); - /** - * - * - *
-   * Cluster-level autoscaling configuration.
-   * 
- * - * .google.container.v1.ClusterAutoscaling autoscaling = 26; - */ - com.google.container.v1.ClusterAutoscalingOrBuilder getAutoscalingOrBuilder(); - - /** - * - * - *
-   * Configuration for cluster networking.
-   * 
- * - * .google.container.v1.NetworkConfig network_config = 27; - * - * @return Whether the networkConfig field is set. - */ - boolean hasNetworkConfig(); - /** - * - * - *
-   * Configuration for cluster networking.
-   * 
- * - * .google.container.v1.NetworkConfig network_config = 27; - * - * @return The networkConfig. - */ - com.google.container.v1.NetworkConfig getNetworkConfig(); - /** - * - * - *
-   * Configuration for cluster networking.
-   * 
- * - * .google.container.v1.NetworkConfig network_config = 27; - */ - com.google.container.v1.NetworkConfigOrBuilder getNetworkConfigOrBuilder(); - - /** - * - * - *
-   * 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.v1.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.v1.MaxPodsConstraint default_max_pods_constraint = 30; - * - * @return The defaultMaxPodsConstraint. - */ - com.google.container.v1.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.v1.MaxPodsConstraint default_max_pods_constraint = 30; - */ - com.google.container.v1.MaxPodsConstraintOrBuilder getDefaultMaxPodsConstraintOrBuilder(); - - /** - * - * - *
-   * Configuration for exporting resource usages. Resource usage export is
-   * disabled when this config is unspecified.
-   * 
- * - * .google.container.v1.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 is unspecified.
-   * 
- * - * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; - * - * @return The resourceUsageExportConfig. - */ - com.google.container.v1.ResourceUsageExportConfig getResourceUsageExportConfig(); - /** - * - * - *
-   * Configuration for exporting resource usages. Resource usage export is
-   * disabled when this config is unspecified.
-   * 
- * - * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; - */ - com.google.container.v1.ResourceUsageExportConfigOrBuilder - getResourceUsageExportConfigOrBuilder(); - - /** - * - * - *
-   * Configuration controlling RBAC group membership information.
-   * 
- * - * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - * - * @return Whether the authenticatorGroupsConfig field is set. - */ - boolean hasAuthenticatorGroupsConfig(); - /** - * - * - *
-   * Configuration controlling RBAC group membership information.
-   * 
- * - * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - * - * @return The authenticatorGroupsConfig. - */ - com.google.container.v1.AuthenticatorGroupsConfig getAuthenticatorGroupsConfig(); - /** - * - * - *
-   * Configuration controlling RBAC group membership information.
-   * 
- * - * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - */ - com.google.container.v1.AuthenticatorGroupsConfigOrBuilder - getAuthenticatorGroupsConfigOrBuilder(); - - /** - * - * - *
-   * Configuration for private cluster.
-   * 
- * - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; - * - * @return Whether the privateClusterConfig field is set. - */ - boolean hasPrivateClusterConfig(); - /** - * - * - *
-   * Configuration for private cluster.
-   * 
- * - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; - * - * @return The privateClusterConfig. - */ - com.google.container.v1.PrivateClusterConfig getPrivateClusterConfig(); - /** - * - * - *
-   * Configuration for private cluster.
-   * 
- * - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; - */ - com.google.container.v1.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder(); - - /** - * - * - *
-   * Configuration of etcd encryption.
-   * 
- * - * .google.container.v1.DatabaseEncryption database_encryption = 38; - * - * @return Whether the databaseEncryption field is set. - */ - boolean hasDatabaseEncryption(); - /** - * - * - *
-   * Configuration of etcd encryption.
-   * 
- * - * .google.container.v1.DatabaseEncryption database_encryption = 38; - * - * @return The databaseEncryption. - */ - com.google.container.v1.DatabaseEncryption getDatabaseEncryption(); - /** - * - * - *
-   * Configuration of etcd encryption.
-   * 
- * - * .google.container.v1.DatabaseEncryption database_encryption = 38; - */ - com.google.container.v1.DatabaseEncryptionOrBuilder getDatabaseEncryptionOrBuilder(); - - /** - * - * - *
-   * Cluster-level Vertical Pod Autoscaling configuration.
-   * 
- * - * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - * - * @return Whether the verticalPodAutoscaling field is set. - */ - boolean hasVerticalPodAutoscaling(); - /** - * - * - *
-   * Cluster-level Vertical Pod Autoscaling configuration.
-   * 
- * - * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - * - * @return The verticalPodAutoscaling. - */ - com.google.container.v1.VerticalPodAutoscaling getVerticalPodAutoscaling(); - /** - * - * - *
-   * Cluster-level Vertical Pod Autoscaling configuration.
-   * 
- * - * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - */ - com.google.container.v1.VerticalPodAutoscalingOrBuilder getVerticalPodAutoscalingOrBuilder(); - - /** - * - * - *
-   * Shielded Nodes configuration.
-   * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - * - * @return Whether the shieldedNodes field is set. - */ - boolean hasShieldedNodes(); - /** - * - * - *
-   * Shielded Nodes configuration.
-   * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - * - * @return The shieldedNodes. - */ - com.google.container.v1.ShieldedNodes getShieldedNodes(); - /** - * - * - *
-   * Shielded Nodes configuration.
-   * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - */ - com.google.container.v1.ShieldedNodesOrBuilder getShieldedNodesOrBuilder(); - - /** - * - * - *
-   * Release channel configuration. If left unspecified on cluster creation and
-   * a version is specified, the cluster is enrolled in the most mature release
-   * channel where the version is available (first checking STABLE, then
-   * REGULAR, and finally RAPID). Otherwise, if no release channel
-   * configuration and no version is specified, the cluster is enrolled in the
-   * REGULAR channel with its default version.
-   * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - * - * @return Whether the releaseChannel field is set. - */ - boolean hasReleaseChannel(); - /** - * - * - *
-   * Release channel configuration. If left unspecified on cluster creation and
-   * a version is specified, the cluster is enrolled in the most mature release
-   * channel where the version is available (first checking STABLE, then
-   * REGULAR, and finally RAPID). Otherwise, if no release channel
-   * configuration and no version is specified, the cluster is enrolled in the
-   * REGULAR channel with its default version.
-   * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - * - * @return The releaseChannel. - */ - com.google.container.v1.ReleaseChannel getReleaseChannel(); - /** - * - * - *
-   * Release channel configuration. If left unspecified on cluster creation and
-   * a version is specified, the cluster is enrolled in the most mature release
-   * channel where the version is available (first checking STABLE, then
-   * REGULAR, and finally RAPID). Otherwise, if no release channel
-   * configuration and no version is specified, the cluster is enrolled in the
-   * REGULAR channel with its default version.
-   * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - */ - com.google.container.v1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder(); - - /** - * - * - *
-   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-   * policies.
-   * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - * - * @return Whether the workloadIdentityConfig field is set. - */ - boolean hasWorkloadIdentityConfig(); - /** - * - * - *
-   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-   * policies.
-   * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - * - * @return The workloadIdentityConfig. - */ - com.google.container.v1.WorkloadIdentityConfig getWorkloadIdentityConfig(); - /** - * - * - *
-   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-   * policies.
-   * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - */ - com.google.container.v1.WorkloadIdentityConfigOrBuilder getWorkloadIdentityConfigOrBuilder(); - - /** - * - * - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1.MeshCertificates mesh_certificates = 67; - * - * @return Whether the meshCertificates field is set. - */ - boolean hasMeshCertificates(); - /** - * - * - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1.MeshCertificates mesh_certificates = 67; - * - * @return The meshCertificates. - */ - com.google.container.v1.MeshCertificates getMeshCertificates(); - /** - * - * - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1.MeshCertificates mesh_certificates = 67; - */ - com.google.container.v1.MeshCertificatesOrBuilder getMeshCertificatesOrBuilder(); - - /** - * - * - *
-   * Configuration for the fine-grained cost management feature.
-   * 
- * - * .google.container.v1.CostManagementConfig cost_management_config = 45; - * - * @return Whether the costManagementConfig field is set. - */ - boolean hasCostManagementConfig(); - /** - * - * - *
-   * Configuration for the fine-grained cost management feature.
-   * 
- * - * .google.container.v1.CostManagementConfig cost_management_config = 45; - * - * @return The costManagementConfig. - */ - com.google.container.v1.CostManagementConfig getCostManagementConfig(); - /** - * - * - *
-   * Configuration for the fine-grained cost management feature.
-   * 
- * - * .google.container.v1.CostManagementConfig cost_management_config = 45; - */ - com.google.container.v1.CostManagementConfigOrBuilder getCostManagementConfigOrBuilder(); - - /** - * - * - *
-   * Notification configuration of the cluster.
-   * 
- * - * .google.container.v1.NotificationConfig notification_config = 49; - * - * @return Whether the notificationConfig field is set. - */ - boolean hasNotificationConfig(); - /** - * - * - *
-   * Notification configuration of the cluster.
-   * 
- * - * .google.container.v1.NotificationConfig notification_config = 49; - * - * @return The notificationConfig. - */ - com.google.container.v1.NotificationConfig getNotificationConfig(); - /** - * - * - *
-   * Notification configuration of the cluster.
-   * 
- * - * .google.container.v1.NotificationConfig notification_config = 49; - */ - com.google.container.v1.NotificationConfigOrBuilder getNotificationConfigOrBuilder(); - - /** - * - * - *
-   * Configuration of Confidential Nodes.
-   * All the nodes in the cluster will be Confidential VM once enabled.
-   * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 50; - * - * @return Whether the confidentialNodes field is set. - */ - boolean hasConfidentialNodes(); - /** - * - * - *
-   * Configuration of Confidential Nodes.
-   * All the nodes in the cluster will be Confidential VM once enabled.
-   * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 50; - * - * @return The confidentialNodes. - */ - com.google.container.v1.ConfidentialNodes getConfidentialNodes(); - /** - * - * - *
-   * Configuration of Confidential Nodes.
-   * All the nodes in the cluster will be Confidential VM once enabled.
-   * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 50; - */ - com.google.container.v1.ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder(); - - /** - * - * - *
-   * Configuration for Identity Service component.
-   * 
- * - * .google.container.v1.IdentityServiceConfig identity_service_config = 54; - * - * @return Whether the identityServiceConfig field is set. - */ - boolean hasIdentityServiceConfig(); - /** - * - * - *
-   * Configuration for Identity Service component.
-   * 
- * - * .google.container.v1.IdentityServiceConfig identity_service_config = 54; - * - * @return The identityServiceConfig. - */ - com.google.container.v1.IdentityServiceConfig getIdentityServiceConfig(); - /** - * - * - *
-   * Configuration for Identity Service component.
-   * 
- * - * .google.container.v1.IdentityServiceConfig identity_service_config = 54; - */ - com.google.container.v1.IdentityServiceConfigOrBuilder getIdentityServiceConfigOrBuilder(); - - /** - * - * - *
-   * [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]; - * - * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1853 - * @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]; - * - * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1853 - * @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
-   * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
-   * instead. The current version of the node software components. If they are
-   * currently at multiple versions because they're in the process of being
-   * upgraded, this reflects the minimum version of all nodes.
-   * 
- * - * string current_node_version = 105 [deprecated = true]; - * - * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1886 - * @return The currentNodeVersion. - */ - @java.lang.Deprecated - java.lang.String getCurrentNodeVersion(); - /** - * - * - *
-   * [Output only] Deprecated, use
-   * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
-   * instead. The current version of the node software components. If they are
-   * currently at multiple versions because they're in the process of being
-   * upgraded, this reflects the minimum version of all nodes.
-   * 
- * - * string current_node_version = 105 [deprecated = true]; - * - * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1886 - * @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.v1.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.v1.Cluster.Status status = 107; - * - * @return The status. - */ - com.google.container.v1.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]; - * - * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=1898 - * @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]; - * - * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=1898 - * @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]; - * - * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1914 - * @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]; - * - * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1914 - * @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]; - * - * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1914 - * @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]; - * - * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1914 - * @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]; - * - * @deprecated google.container.v1.Cluster.current_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=1918 - * @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.
-   * 
- * - * 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(); - - /** - * - * - *
-   * Which conditions caused the current cluster state.
-   * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - java.util.List getConditionsList(); - /** - * - * - *
-   * Which conditions caused the current cluster state.
-   * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - com.google.container.v1.StatusCondition getConditions(int index); - /** - * - * - *
-   * Which conditions caused the current cluster state.
-   * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - int getConditionsCount(); - /** - * - * - *
-   * Which conditions caused the current cluster state.
-   * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - java.util.List - getConditionsOrBuilderList(); - /** - * - * - *
-   * Which conditions caused the current cluster state.
-   * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - com.google.container.v1.StatusConditionOrBuilder getConditionsOrBuilder(int index); - - /** - * - * - *
-   * Autopilot configuration for the cluster.
-   * 
- * - * .google.container.v1.Autopilot autopilot = 128; - * - * @return Whether the autopilot field is set. - */ - boolean hasAutopilot(); - /** - * - * - *
-   * Autopilot configuration for the cluster.
-   * 
- * - * .google.container.v1.Autopilot autopilot = 128; - * - * @return The autopilot. - */ - com.google.container.v1.Autopilot getAutopilot(); - /** - * - * - *
-   * Autopilot configuration for the cluster.
-   * 
- * - * .google.container.v1.Autopilot autopilot = 128; - */ - com.google.container.v1.AutopilotOrBuilder getAutopilotOrBuilder(); - - /** - * - * - *
-   * Output only. Unique id for the cluster.
-   * 
- * - * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The id. - */ - java.lang.String getId(); - /** - * - * - *
-   * Output only. Unique id for the cluster.
-   * 
- * - * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for id. - */ - com.google.protobuf.ByteString getIdBytes(); - - /** - * - * - *
-   * Default NodePool settings for the entire cluster. These settings are
-   * overridden if specified on the specific NodePool object.
-   * 
- * - * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; - * - * @return Whether the nodePoolDefaults field is set. - */ - boolean hasNodePoolDefaults(); - /** - * - * - *
-   * Default NodePool settings for the entire cluster. These settings are
-   * overridden if specified on the specific NodePool object.
-   * 
- * - * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; - * - * @return The nodePoolDefaults. - */ - com.google.container.v1.NodePoolDefaults getNodePoolDefaults(); - /** - * - * - *
-   * Default NodePool settings for the entire cluster. These settings are
-   * overridden if specified on the specific NodePool object.
-   * 
- * - * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; - */ - com.google.container.v1.NodePoolDefaultsOrBuilder getNodePoolDefaultsOrBuilder(); - - /** - * - * - *
-   * Logging configuration for the cluster.
-   * 
- * - * .google.container.v1.LoggingConfig logging_config = 132; - * - * @return Whether the loggingConfig field is set. - */ - boolean hasLoggingConfig(); - /** - * - * - *
-   * Logging configuration for the cluster.
-   * 
- * - * .google.container.v1.LoggingConfig logging_config = 132; - * - * @return The loggingConfig. - */ - com.google.container.v1.LoggingConfig getLoggingConfig(); - /** - * - * - *
-   * Logging configuration for the cluster.
-   * 
- * - * .google.container.v1.LoggingConfig logging_config = 132; - */ - com.google.container.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder(); - - /** - * - * - *
-   * Monitoring configuration for the cluster.
-   * 
- * - * .google.container.v1.MonitoringConfig monitoring_config = 133; - * - * @return Whether the monitoringConfig field is set. - */ - boolean hasMonitoringConfig(); - /** - * - * - *
-   * Monitoring configuration for the cluster.
-   * 
- * - * .google.container.v1.MonitoringConfig monitoring_config = 133; - * - * @return The monitoringConfig. - */ - com.google.container.v1.MonitoringConfig getMonitoringConfig(); - /** - * - * - *
-   * Monitoring configuration for the cluster.
-   * 
- * - * .google.container.v1.MonitoringConfig monitoring_config = 133; - */ - com.google.container.v1.MonitoringConfigOrBuilder getMonitoringConfigOrBuilder(); - - /** - * - * - *
-   * Node pool configs that apply to all auto-provisioned node pools
-   * in autopilot clusters and node auto-provisioning enabled clusters.
-   * 
- * - * .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; - * - * @return Whether the nodePoolAutoConfig field is set. - */ - boolean hasNodePoolAutoConfig(); - /** - * - * - *
-   * Node pool configs that apply to all auto-provisioned node pools
-   * in autopilot clusters and node auto-provisioning enabled clusters.
-   * 
- * - * .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; - * - * @return The nodePoolAutoConfig. - */ - com.google.container.v1.NodePoolAutoConfig getNodePoolAutoConfig(); - /** - * - * - *
-   * Node pool configs that apply to all auto-provisioned node pools
-   * in autopilot clusters and node auto-provisioning enabled clusters.
-   * 
- * - * .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; - */ - com.google.container.v1.NodePoolAutoConfigOrBuilder getNodePoolAutoConfigOrBuilder(); - - /** - * - * - *
-   * This checksum is computed by the server based on the value of cluster
-   * fields, and may be sent on update requests to ensure the client has an
-   * up-to-date value before proceeding.
-   * 
- * - * string etag = 139; - * - * @return The etag. - */ - java.lang.String getEtag(); - /** - * - * - *
-   * This checksum is computed by the server based on the value of cluster
-   * fields, and may be sent on update requests to ensure the client has an
-   * up-to-date value before proceeding.
-   * 
- * - * string etag = 139; - * - * @return The bytes for etag. - */ - com.google.protobuf.ByteString getEtagBytes(); - - /** - * - * - *
-   * Fleet information for the cluster.
-   * 
- * - * .google.container.v1.Fleet fleet = 140; - * - * @return Whether the fleet field is set. - */ - boolean hasFleet(); - /** - * - * - *
-   * Fleet information for the cluster.
-   * 
- * - * .google.container.v1.Fleet fleet = 140; - * - * @return The fleet. - */ - com.google.container.v1.Fleet getFleet(); - /** - * - * - *
-   * Fleet information for the cluster.
-   * 
- * - * .google.container.v1.Fleet fleet = 140; - */ - com.google.container.v1.FleetOrBuilder getFleetOrBuilder(); - - /** - * - * - *
-   * Enable/Disable Security Posture API features for the cluster.
-   * 
- * - * .google.container.v1.SecurityPostureConfig security_posture_config = 145; - * - * @return Whether the securityPostureConfig field is set. - */ - boolean hasSecurityPostureConfig(); - /** - * - * - *
-   * Enable/Disable Security Posture API features for the cluster.
-   * 
- * - * .google.container.v1.SecurityPostureConfig security_posture_config = 145; - * - * @return The securityPostureConfig. - */ - com.google.container.v1.SecurityPostureConfig getSecurityPostureConfig(); - /** - * - * - *
-   * Enable/Disable Security Posture API features for the cluster.
-   * 
- * - * .google.container.v1.SecurityPostureConfig security_posture_config = 145; - */ - com.google.container.v1.SecurityPostureConfigOrBuilder getSecurityPostureConfigOrBuilder(); - - /** - * - * - *
-   * Beta APIs Config
-   * 
- * - * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; - * - * @return Whether the enableK8sBetaApis field is set. - */ - boolean hasEnableK8SBetaApis(); - /** - * - * - *
-   * Beta APIs Config
-   * 
- * - * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; - * - * @return The enableK8sBetaApis. - */ - com.google.container.v1.K8sBetaAPIConfig getEnableK8SBetaApis(); - /** - * - * - *
-   * Beta APIs Config
-   * 
- * - * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; - */ - com.google.container.v1.K8sBetaAPIConfigOrBuilder getEnableK8SBetaApisOrBuilder(); - - /** - * - * - *
-   * GKE Enterprise Configuration.
-   * 
- * - * .google.container.v1.EnterpriseConfig enterprise_config = 149; - * - * @return Whether the enterpriseConfig field is set. - */ - boolean hasEnterpriseConfig(); - /** - * - * - *
-   * GKE Enterprise Configuration.
-   * 
- * - * .google.container.v1.EnterpriseConfig enterprise_config = 149; - * - * @return The enterpriseConfig. - */ - com.google.container.v1.EnterpriseConfig getEnterpriseConfig(); - /** - * - * - *
-   * GKE Enterprise Configuration.
-   * 
- * - * .google.container.v1.EnterpriseConfig enterprise_config = 149; - */ - com.google.container.v1.EnterpriseConfigOrBuilder getEnterpriseConfigOrBuilder(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java deleted file mode 100644 index 7ab888117193..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java +++ /dev/null @@ -1,3882 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -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_v1_LinuxNodeConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_LinuxNodeConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_LinuxNodeConfig_SysctlsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_LinuxNodeConfig_SysctlsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_WindowsNodeConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_WindowsNodeConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NodeKubeletConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NodeKubeletConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NodeConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NodeConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NodeConfig_MetadataEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NodeConfig_MetadataEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NodeConfig_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NodeConfig_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NodeConfig_ResourceLabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NodeConfig_ResourceLabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_AdvancedMachineFeatures_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_AdvancedMachineFeatures_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NodeNetworkConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NodeNetworkConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NodeNetworkConfig_NetworkPerformanceConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NodeNetworkConfig_NetworkPerformanceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_AdditionalNodeNetworkConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_AdditionalNodeNetworkConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_AdditionalPodNetworkConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_AdditionalPodNetworkConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ShieldedInstanceConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ShieldedInstanceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_SandboxConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_SandboxConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_GcfsConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_GcfsConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ReservationAffinity_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ReservationAffinity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_SoleTenantConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_SoleTenantConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_SoleTenantConfig_NodeAffinity_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_SoleTenantConfig_NodeAffinity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NodeTaint_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NodeTaint_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NodeTaints_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NodeTaints_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NodeLabels_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NodeLabels_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NodeLabels_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NodeLabels_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ResourceLabels_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ResourceLabels_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ResourceLabels_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ResourceLabels_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NetworkTags_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NetworkTags_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_MasterAuth_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_MasterAuth_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ClientCertificateConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ClientCertificateConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_AddonsConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_AddonsConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_HttpLoadBalancing_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_HttpLoadBalancing_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_HorizontalPodAutoscaling_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_HorizontalPodAutoscaling_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_KubernetesDashboard_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_KubernetesDashboard_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NetworkPolicyConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NetworkPolicyConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_DnsCacheConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_DnsCacheConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_PrivateClusterMasterGlobalAccessConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_PrivateClusterMasterGlobalAccessConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_PrivateClusterConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_PrivateClusterConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_AuthenticatorGroupsConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_AuthenticatorGroupsConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_CloudRunConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_CloudRunConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ConfigConnectorConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ConfigConnectorConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_GcePersistentDiskCsiDriverConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_GcePersistentDiskCsiDriverConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_GcpFilestoreCsiDriverConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_GcpFilestoreCsiDriverConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_GcsFuseCsiDriverConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_GcsFuseCsiDriverConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_GkeBackupAgentConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_GkeBackupAgentConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_MasterAuthorizedNetworksConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_MasterAuthorizedNetworksConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_MasterAuthorizedNetworksConfig_CidrBlock_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_LegacyAbac_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_LegacyAbac_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NetworkPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NetworkPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_BinaryAuthorization_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_BinaryAuthorization_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_PodCIDROverprovisionConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_PodCIDROverprovisionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_IPAllocationPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_IPAllocationPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_Cluster_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_Cluster_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_Cluster_ResourceLabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_Cluster_ResourceLabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_K8sBetaAPIConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_K8sBetaAPIConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_SecurityPostureConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_SecurityPostureConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NodePoolAutoConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NodePoolAutoConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NodePoolDefaults_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NodePoolDefaults_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NodeConfigDefaults_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NodeConfigDefaults_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ClusterUpdate_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ClusterUpdate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_AdditionalPodRangesConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_AdditionalPodRangesConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_RangeInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_RangeInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_Operation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_Operation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_OperationProgress_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_OperationProgress_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_OperationProgress_Metric_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_OperationProgress_Metric_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_CreateClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_CreateClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_GetClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_GetClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_UpdateClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_UpdateClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_UpdateNodePoolRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_UpdateNodePoolRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_SetNodePoolAutoscalingRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_SetNodePoolAutoscalingRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_SetLoggingServiceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_SetLoggingServiceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_SetMonitoringServiceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_SetMonitoringServiceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_SetAddonsConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_SetAddonsConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_SetLocationsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_SetLocationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_UpdateMasterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_UpdateMasterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_SetMasterAuthRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_SetMasterAuthRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_DeleteClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_DeleteClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ListClustersRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ListClustersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ListClustersResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ListClustersResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_GetOperationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_GetOperationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ListOperationsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ListOperationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_CancelOperationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_CancelOperationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ListOperationsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ListOperationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_GetServerConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_GetServerConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ServerConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ServerConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ServerConfig_ReleaseChannelConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ServerConfig_ReleaseChannelConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_CreateNodePoolRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_CreateNodePoolRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_DeleteNodePoolRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_DeleteNodePoolRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ListNodePoolsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ListNodePoolsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_GetNodePoolRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_GetNodePoolRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_BlueGreenSettings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_BlueGreenSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_BlueGreenSettings_StandardRolloutPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_BlueGreenSettings_StandardRolloutPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NodePool_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NodePool_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NodePool_UpgradeSettings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NodePool_UpgradeSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NodePool_UpdateInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NodePool_UpdateInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NodePool_UpdateInfo_BlueGreenInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NodePool_UpdateInfo_BlueGreenInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NodePool_PlacementPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NodePool_PlacementPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NodePool_QueuedProvisioning_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NodePool_QueuedProvisioning_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NodeManagement_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NodeManagement_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_BestEffortProvisioning_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_BestEffortProvisioning_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_AutoUpgradeOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_AutoUpgradeOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_MaintenancePolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_MaintenancePolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_MaintenanceWindow_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_MaintenanceWindow_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_MaintenanceWindow_MaintenanceExclusionsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_MaintenanceWindow_MaintenanceExclusionsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_TimeWindow_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_TimeWindow_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_MaintenanceExclusionOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_MaintenanceExclusionOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_RecurringTimeWindow_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_RecurringTimeWindow_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_DailyMaintenanceWindow_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_DailyMaintenanceWindow_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_SetNodePoolManagementRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_SetNodePoolManagementRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_SetNodePoolSizeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_SetNodePoolSizeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_CompleteNodePoolUpgradeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_CompleteNodePoolUpgradeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_RollbackNodePoolUpgradeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_RollbackNodePoolUpgradeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ListNodePoolsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ListNodePoolsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ClusterAutoscaling_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ClusterAutoscaling_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_AutoprovisioningNodePoolDefaults_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_AutoprovisioningNodePoolDefaults_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ResourceLimit_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ResourceLimit_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NodePoolAutoscaling_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NodePoolAutoscaling_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_SetLabelsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_SetLabelsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_SetLabelsRequest_ResourceLabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_SetLabelsRequest_ResourceLabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_SetLegacyAbacRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_SetLegacyAbacRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_StartIPRotationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_StartIPRotationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_CompleteIPRotationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_CompleteIPRotationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_AcceleratorConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_AcceleratorConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_GPUSharingConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_GPUSharingConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_GPUDriverInstallationConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_GPUDriverInstallationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_WorkloadMetadataConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_WorkloadMetadataConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_SetNetworkPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_SetNetworkPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_SetMaintenancePolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_SetMaintenancePolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_StatusCondition_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_StatusCondition_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NetworkConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NetworkConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NetworkConfig_ClusterNetworkPerformanceConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NetworkConfig_ClusterNetworkPerformanceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_GatewayAPIConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_GatewayAPIConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ServiceExternalIPsConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ServiceExternalIPsConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_GetOpenIDConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_GetOpenIDConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_GetOpenIDConfigResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_GetOpenIDConfigResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_GetJSONWebKeysRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_GetJSONWebKeysRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_Jwk_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_Jwk_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_GetJSONWebKeysResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_GetJSONWebKeysResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_CheckAutopilotCompatibilityRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_CheckAutopilotCompatibilityRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_AutopilotCompatibilityIssue_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_AutopilotCompatibilityIssue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_CheckAutopilotCompatibilityResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_CheckAutopilotCompatibilityResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ReleaseChannel_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ReleaseChannel_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_CostManagementConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_CostManagementConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_IntraNodeVisibilityConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_IntraNodeVisibilityConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ILBSubsettingConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ILBSubsettingConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_DNSConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_DNSConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_MaxPodsConstraint_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_MaxPodsConstraint_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_WorkloadIdentityConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_WorkloadIdentityConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_IdentityServiceConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_IdentityServiceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_MeshCertificates_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_MeshCertificates_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_DatabaseEncryption_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_DatabaseEncryption_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ListUsableSubnetworksRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ListUsableSubnetworksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ListUsableSubnetworksResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ListUsableSubnetworksResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_UsableSubnetworkSecondaryRange_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_UsableSubnetworkSecondaryRange_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_UsableSubnetwork_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_UsableSubnetwork_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ResourceUsageExportConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ResourceUsageExportConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ResourceUsageExportConfig_BigQueryDestination_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ResourceUsageExportConfig_BigQueryDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ResourceUsageExportConfig_ConsumptionMeteringConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ResourceUsageExportConfig_ConsumptionMeteringConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_VerticalPodAutoscaling_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_VerticalPodAutoscaling_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_DefaultSnatStatus_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_DefaultSnatStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ShieldedNodes_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ShieldedNodes_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_VirtualNIC_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_VirtualNIC_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_FastSocket_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_FastSocket_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NotificationConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NotificationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NotificationConfig_PubSub_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NotificationConfig_PubSub_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NotificationConfig_Filter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NotificationConfig_Filter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ConfidentialNodes_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ConfidentialNodes_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_UpgradeEvent_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_UpgradeEvent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_UpgradeAvailableEvent_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_UpgradeAvailableEvent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_SecurityBulletinEvent_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_SecurityBulletinEvent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_Autopilot_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_Autopilot_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_WorkloadPolicyConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_WorkloadPolicyConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_LoggingConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_LoggingConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_LoggingComponentConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_LoggingComponentConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_MonitoringConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_MonitoringConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_AdvancedDatapathObservabilityConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_AdvancedDatapathObservabilityConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NodePoolLoggingConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NodePoolLoggingConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_LoggingVariantConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_LoggingVariantConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_MonitoringComponentConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_MonitoringComponentConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ManagedPrometheusConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ManagedPrometheusConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_Fleet_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_Fleet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_LocalNvmeSsdBlockConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_LocalNvmeSsdBlockConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_EphemeralStorageLocalSsdConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_EphemeralStorageLocalSsdConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ResourceManagerTags_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ResourceManagerTags_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ResourceManagerTags_TagsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ResourceManagerTags_TagsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_EnterpriseConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_EnterpriseConfig_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/v1/cluster_service.pr" - + "oto\022\023google.container.v1\032\034google/api/ann" - + "otations.proto\032\027google/api/client.proto\032" - + "\037google/api/field_behavior.proto\032\031google" - + "/api/resource.proto\032\036google/protobuf/dur" - + "ation.proto\032\033google/protobuf/empty.proto" - + "\032\037google/protobuf/timestamp.proto\032\036googl" - + "e/protobuf/wrappers.proto\032\025google/rpc/co" - + "de.proto\032\027google/rpc/status.proto\"\236\002\n\017Li" - + "nuxNodeConfig\022B\n\007sysctls\030\001 \003(\01321.google." - + "container.v1.LinuxNodeConfig.SysctlsEntr" - + "y\022D\n\013cgroup_mode\030\002 \001(\0162/.google.containe" - + "r.v1.LinuxNodeConfig.CgroupMode\032.\n\014Sysct" - + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" - + "Q\n\nCgroupMode\022\033\n\027CGROUP_MODE_UNSPECIFIED" - + "\020\000\022\022\n\016CGROUP_MODE_V1\020\001\022\022\n\016CGROUP_MODE_V2" - + "\020\002\"\264\001\n\021WindowsNodeConfig\022D\n\nos_version\030\001" - + " \001(\01620.google.container.v1.WindowsNodeCo" - + "nfig.OSVersion\"Y\n\tOSVersion\022\032\n\026OS_VERSIO" - + "N_UNSPECIFIED\020\000\022\027\n\023OS_VERSION_LTSC2019\020\001" - + "\022\027\n\023OS_VERSION_LTSC2022\020\002\"\370\001\n\021NodeKubele" - + "tConfig\022\032\n\022cpu_manager_policy\030\001 \001(\t\0221\n\rc" - + "pu_cfs_quota\030\002 \001(\0132\032.google.protobuf.Boo" - + "lValue\022\034\n\024cpu_cfs_quota_period\030\003 \001(\t\022\026\n\016" - + "pod_pids_limit\030\004 \001(\003\0223\n&insecure_kubelet" - + "_readonly_port_enabled\030\007 \001(\010H\000\210\001\001B)\n\'_in" - + "secure_kubelet_readonly_port_enabled\"\244\017\n" - + "\nNodeConfig\022\024\n\014machine_type\030\001 \001(\t\022\024\n\014dis" - + "k_size_gb\030\002 \001(\005\022\024\n\014oauth_scopes\030\003 \003(\t\022\027\n" - + "\017service_account\030\t \001(\t\022?\n\010metadata\030\004 \003(\013" - + "2-.google.container.v1.NodeConfig.Metada" - + "taEntry\022\022\n\nimage_type\030\005 \001(\t\022;\n\006labels\030\006 " - + "\003(\0132+.google.container.v1.NodeConfig.Lab" - + "elsEntry\022\027\n\017local_ssd_count\030\007 \001(\005\022\014\n\004tag" - + "s\030\010 \003(\t\022\023\n\013preemptible\030\n \001(\010\022<\n\014accelera" - + "tors\030\013 \003(\0132&.google.container.v1.Acceler" - + "atorConfig\022\021\n\tdisk_type\030\014 \001(\t\022\030\n\020min_cpu" - + "_platform\030\r \001(\t\022M\n\030workload_metadata_con" - + "fig\030\016 \001(\0132+.google.container.v1.Workload" - + "MetadataConfig\022.\n\006taints\030\017 \003(\0132\036.google." - + "container.v1.NodeTaint\022:\n\016sandbox_config" - + "\030\021 \001(\0132\".google.container.v1.SandboxConf" - + "ig\022\022\n\nnode_group\030\022 \001(\t\022F\n\024reservation_af" - + "finity\030\023 \001(\0132(.google.container.v1.Reser" - + "vationAffinity\022M\n\030shielded_instance_conf" - + "ig\030\024 \001(\0132+.google.container.v1.ShieldedI" - + "nstanceConfig\022?\n\021linux_node_config\030\025 \001(\013" - + "2$.google.container.v1.LinuxNodeConfig\022>" - + "\n\016kubelet_config\030\026 \001(\0132&.google.containe" - + "r.v1.NodeKubeletConfig\022\031\n\021boot_disk_kms_" - + "key\030\027 \001(\t\0224\n\013gcfs_config\030\031 \001(\0132\037.google." - + "container.v1.GcfsConfig\022O\n\031advanced_mach" - + "ine_features\030\032 \001(\0132,.google.container.v1" - + ".AdvancedMachineFeatures\022.\n\005gvnic\030\035 \001(\0132" - + "\037.google.container.v1.VirtualNIC\022\014\n\004spot" - + "\030 \001(\010\022B\n\022confidential_nodes\030# \001(\0132&.goo" - + "gle.container.v1.ConfidentialNodes\0229\n\013fa" - + "st_socket\030$ \001(\0132\037.google.container.v1.Fa" - + "stSocketH\000\210\001\001\022L\n\017resource_labels\030% \003(\01323" - + ".google.container.v1.NodeConfig.Resource" - + "LabelsEntry\022B\n\016logging_config\030& \001(\0132*.go" - + "ogle.container.v1.NodePoolLoggingConfig\022" - + "C\n\023windows_node_config\030\' \001(\0132&.google.co" - + "ntainer.v1.WindowsNodeConfig\022Q\n\033local_nv" - + "me_ssd_block_config\030( \001(\0132,.google.conta" - + "iner.v1.LocalNvmeSsdBlockConfig\022_\n\"ephem" - + "eral_storage_local_ssd_config\030) \001(\01323.go" - + "ogle.container.v1.EphemeralStorageLocalS" - + "sdConfig\022A\n\022sole_tenant_config\030* \001(\0132%.g" - + "oogle.container.v1.SoleTenantConfig\022G\n\025r" - + "esource_manager_tags\030- \001(\0132(.google.cont" - + "ainer.v1.ResourceManagerTags\032/\n\rMetadata" - + "Entry\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\0325\n\023ResourceLabelsEntry\022\013\n\003key\030\001 \001(\t" - + "\022\r\n\005value\030\002 \001(\t:\0028\001B\016\n\014_fast_socket\"M\n\027A" - + "dvancedMachineFeatures\022\035\n\020threads_per_co" - + "re\030\001 \001(\003H\000\210\001\001B\023\n\021_threads_per_core\"\265\006\n\021N" - + "odeNetworkConfig\022\036\n\020create_pod_range\030\004 \001" - + "(\010B\004\342A\001\004\022\021\n\tpod_range\030\005 \001(\t\022\033\n\023pod_ipv4_" - + "cidr_block\030\006 \001(\t\022!\n\024enable_private_nodes" - + "\030\t \001(\010H\000\210\001\001\022h\n\032network_performance_confi" - + "g\030\013 \001(\0132?.google.container.v1.NodeNetwor" - + "kConfig.NetworkPerformanceConfigH\001\210\001\001\022V\n" - + "\035pod_cidr_overprovision_config\030\r \001(\0132/.g" - + "oogle.container.v1.PodCIDROverprovisionC" - + "onfig\022Y\n\037additional_node_network_configs" - + "\030\016 \003(\01320.google.container.v1.AdditionalN" - + "odeNetworkConfig\022W\n\036additional_pod_netwo" - + "rk_configs\030\017 \003(\0132/.google.container.v1.A" - + "dditionalPodNetworkConfig\022(\n\032pod_ipv4_ra" - + "nge_utilization\030\020 \001(\001B\004\342A\001\003\032\324\001\n\030NetworkP" - + "erformanceConfig\022n\n\033total_egress_bandwid" - + "th_tier\030\001 \001(\0162D.google.container.v1.Node" - + "NetworkConfig.NetworkPerformanceConfig.T" - + "ierH\000\210\001\001\"(\n\004Tier\022\024\n\020TIER_UNSPECIFIED\020\000\022\n" - + "\n\006TIER_1\020\001B\036\n\034_total_egress_bandwidth_ti" - + "erB\027\n\025_enable_private_nodesB\035\n\033_network_" - + "performance_config\"B\n\033AdditionalNodeNetw" - + "orkConfig\022\017\n\007network\030\001 \001(\t\022\022\n\nsubnetwork" - + "\030\002 \001(\t\"\253\001\n\032AdditionalPodNetworkConfig\022\022\n" - + "\nsubnetwork\030\001 \001(\t\022\033\n\023secondary_pod_range" - + "\030\002 \001(\t\022F\n\021max_pods_per_node\030\003 \001(\0132&.goog" - + "le.container.v1.MaxPodsConstraintH\000\210\001\001B\024" - + "\n\022_max_pods_per_node\"Y\n\026ShieldedInstance" - + "Config\022\032\n\022enable_secure_boot\030\001 \001(\010\022#\n\033en" - + "able_integrity_monitoring\030\002 \001(\010\"k\n\rSandb" - + "oxConfig\0225\n\004type\030\002 \001(\0162\'.google.containe" - + "r.v1.SandboxConfig.Type\"#\n\004Type\022\017\n\013UNSPE" - + "CIFIED\020\000\022\n\n\006GVISOR\020\001\"\035\n\nGcfsConfig\022\017\n\007en" - + "abled\030\001 \001(\010\"\337\001\n\023ReservationAffinity\022O\n\030c" - + "onsume_reservation_type\030\001 \001(\0162-.google.c" - + "ontainer.v1.ReservationAffinity.Type\022\013\n\003" - + "key\030\002 \001(\t\022\016\n\006values\030\003 \003(\t\"Z\n\004Type\022\017\n\013UNS" - + "PECIFIED\020\000\022\022\n\016NO_RESERVATION\020\001\022\023\n\017ANY_RE" - + "SERVATION\020\002\022\030\n\024SPECIFIC_RESERVATION\020\003\"\226\002" - + "\n\020SoleTenantConfig\022K\n\017node_affinities\030\001 " - + "\003(\01322.google.container.v1.SoleTenantConf" - + "ig.NodeAffinity\032\264\001\n\014NodeAffinity\022\013\n\003key\030" - + "\001 \001(\t\022M\n\010operator\030\002 \001(\0162;.google.contain" - + "er.v1.SoleTenantConfig.NodeAffinity.Oper" - + "ator\022\016\n\006values\030\003 \003(\t\"8\n\010Operator\022\030\n\024OPER" - + "ATOR_UNSPECIFIED\020\000\022\006\n\002IN\020\001\022\n\n\006NOT_IN\020\002\"\271" - + "\001\n\tNodeTaint\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" - + "\0225\n\006effect\030\003 \001(\0162%.google.container.v1.N" - + "odeTaint.Effect\"Y\n\006Effect\022\026\n\022EFFECT_UNSP" - + "ECIFIED\020\000\022\017\n\013NO_SCHEDULE\020\001\022\026\n\022PREFER_NO_" - + "SCHEDULE\020\002\022\016\n\nNO_EXECUTE\020\003\"<\n\nNodeTaints" - + "\022.\n\006taints\030\001 \003(\0132\036.google.container.v1.N" - + "odeTaint\"x\n\nNodeLabels\022;\n\006labels\030\001 \003(\0132+" - + ".google.container.v1.NodeLabels.LabelsEn" - + "try\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" - + "\030\002 \001(\t:\0028\001\"\200\001\n\016ResourceLabels\022?\n\006labels\030" - + "\001 \003(\0132/.google.container.v1.ResourceLabe" - + "ls.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001" - + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\033\n\013NetworkTags\022\014\n\004" - + "tags\030\001 \003(\t\"\331\001\n\nMasterAuth\022\024\n\010username\030\001 " - + "\001(\tB\002\030\001\022\024\n\010password\030\002 \001(\tB\002\030\001\022O\n\031client_" - + "certificate_config\030\003 \001(\0132,.google.contai" - + "ner.v1.ClientCertificateConfig\022\036\n\026cluste" - + "r_ca_certificate\030d \001(\t\022\032\n\022client_certifi" - + "cate\030e \001(\t\022\022\n\nclient_key\030f \001(\t\";\n\027Client" - + "CertificateConfig\022 \n\030issue_client_certif" - + "icate\030\001 \001(\010\"\344\006\n\014AddonsConfig\022C\n\023http_loa" - + "d_balancing\030\001 \001(\0132&.google.container.v1." - + "HttpLoadBalancing\022Q\n\032horizontal_pod_auto" - + "scaling\030\002 \001(\0132-.google.container.v1.Hori" - + "zontalPodAutoscaling\022J\n\024kubernetes_dashb" - + "oard\030\003 \001(\0132(.google.container.v1.Kuberne" - + "tesDashboardB\002\030\001\022G\n\025network_policy_confi" - + "g\030\004 \001(\0132(.google.container.v1.NetworkPol" - + "icyConfig\022=\n\020cloud_run_config\030\007 \001(\0132#.go" - + "ogle.container.v1.CloudRunConfig\022=\n\020dns_" - + "cache_config\030\010 \001(\0132#.google.container.v1" - + ".DnsCacheConfig\022K\n\027config_connector_conf" - + "ig\030\n \001(\0132*.google.container.v1.ConfigCon" - + "nectorConfig\022d\n%gce_persistent_disk_csi_" - + "driver_config\030\013 \001(\01325.google.container.v" - + "1.GcePersistentDiskCsiDriverConfig\022Y\n\037gc" - + "p_filestore_csi_driver_config\030\016 \001(\01320.go" - + "ogle.container.v1.GcpFilestoreCsiDriverC" - + "onfig\022J\n\027gke_backup_agent_config\030\020 \001(\0132)" - + ".google.container.v1.GkeBackupAgentConfi" - + "g\022O\n\032gcs_fuse_csi_driver_config\030\021 \001(\0132+." - + "google.container.v1.GcsFuseCsiDriverConf" - + "ig\"%\n\021HttpLoadBalancing\022\020\n\010disabled\030\001 \001(" - + "\010\",\n\030HorizontalPodAutoscaling\022\020\n\010disable" - + "d\030\001 \001(\010\"\'\n\023KubernetesDashboard\022\020\n\010disabl" - + "ed\030\001 \001(\010\"\'\n\023NetworkPolicyConfig\022\020\n\010disab" - + "led\030\001 \001(\010\"!\n\016DnsCacheConfig\022\017\n\007enabled\030\001" - + " \001(\010\"9\n&PrivateClusterMasterGlobalAccess" - + "Config\022\017\n\007enabled\030\001 \001(\010\"\305\002\n\024PrivateClust" - + "erConfig\022\034\n\024enable_private_nodes\030\001 \001(\010\022\037" - + "\n\027enable_private_endpoint\030\002 \001(\010\022\036\n\026maste" - + "r_ipv4_cidr_block\030\003 \001(\t\022\030\n\020private_endpo" - + "int\030\004 \001(\t\022\027\n\017public_endpoint\030\005 \001(\t\022\024\n\014pe" - + "ering_name\030\007 \001(\t\022`\n\033master_global_access" - + "_config\030\010 \001(\0132;.google.container.v1.Priv" - + "ateClusterMasterGlobalAccessConfig\022#\n\033pr" - + "ivate_endpoint_subnetwork\030\n \001(\t\"D\n\031Authe" - + "nticatorGroupsConfig\022\017\n\007enabled\030\001 \001(\010\022\026\n" - + "\016security_group\030\002 \001(\t\"\356\001\n\016CloudRunConfig" - + "\022\020\n\010disabled\030\001 \001(\010\022P\n\022load_balancer_type" - + "\030\003 \001(\01624.google.container.v1.CloudRunCon" - + "fig.LoadBalancerType\"x\n\020LoadBalancerType" - + "\022\"\n\036LOAD_BALANCER_TYPE_UNSPECIFIED\020\000\022\037\n\033" - + "LOAD_BALANCER_TYPE_EXTERNAL\020\001\022\037\n\033LOAD_BA" - + "LANCER_TYPE_INTERNAL\020\002\"(\n\025ConfigConnecto" - + "rConfig\022\017\n\007enabled\030\001 \001(\010\"3\n GcePersisten" - + "tDiskCsiDriverConfig\022\017\n\007enabled\030\001 \001(\010\".\n" - + "\033GcpFilestoreCsiDriverConfig\022\017\n\007enabled\030" - + "\001 \001(\010\")\n\026GcsFuseCsiDriverConfig\022\017\n\007enabl" - + "ed\030\001 \001(\010\"\'\n\024GkeBackupAgentConfig\022\017\n\007enab" - + "led\030\001 \001(\010\"\216\002\n\036MasterAuthorizedNetworksCo" - + "nfig\022\017\n\007enabled\030\001 \001(\010\022R\n\013cidr_blocks\030\002 \003" - + "(\0132=.google.container.v1.MasterAuthorize" - + "dNetworksConfig.CidrBlock\022,\n\037gcp_public_" - + "cidrs_access_enabled\030\003 \001(\010H\000\210\001\001\0325\n\tCidrB" - + "lock\022\024\n\014display_name\030\001 \001(\t\022\022\n\ncidr_block" - + "\030\002 \001(\tB\"\n _gcp_public_cidrs_access_enabl" - + "ed\"\035\n\nLegacyAbac\022\017\n\007enabled\030\001 \001(\010\"\221\001\n\rNe" - + "tworkPolicy\022=\n\010provider\030\001 \001(\0162+.google.c" - + "ontainer.v1.NetworkPolicy.Provider\022\017\n\007en" - + "abled\030\002 \001(\010\"0\n\010Provider\022\030\n\024PROVIDER_UNSP" - + "ECIFIED\020\000\022\n\n\006CALICO\020\001\"\343\001\n\023BinaryAuthoriz" - + "ation\022\023\n\007enabled\030\001 \001(\010B\002\030\001\022P\n\017evaluation" - + "_mode\030\002 \001(\01627.google.container.v1.Binary" - + "Authorization.EvaluationMode\"e\n\016Evaluati" - + "onMode\022\037\n\033EVALUATION_MODE_UNSPECIFIED\020\000\022" - + "\014\n\010DISABLED\020\001\022$\n PROJECT_SINGLETON_POLIC" - + "Y_ENFORCE\020\002\"-\n\032PodCIDROverprovisionConfi" - + "g\022\017\n\007disable\030\001 \001(\010\"\301\006\n\022IPAllocationPolic" - + "y\022\026\n\016use_ip_aliases\030\001 \001(\010\022\031\n\021create_subn" - + "etwork\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_ipv" - + "4_cidr\030\005 \001(\tB\002\030\001\022\036\n\022services_ipv4_cidr\030\006" - + " \001(\tB\002\030\001\022$\n\034cluster_secondary_range_name" - + "\030\007 \001(\t\022%\n\035services_secondary_range_name\030" - + "\010 \001(\t\022\037\n\027cluster_ipv4_cidr_block\030\t \001(\t\022\034" - + "\n\024node_ipv4_cidr_block\030\n \001(\t\022 \n\030services" - + "_ipv4_cidr_block\030\013 \001(\t\022\033\n\023tpu_ipv4_cidr_" - + "block\030\r \001(\t\022\022\n\nuse_routes\030\017 \001(\010\0222\n\nstack" - + "_type\030\020 \001(\0162\036.google.container.v1.StackT" - + "ype\022=\n\020ipv6_access_type\030\021 \001(\0162#.google.c" - + "ontainer.v1.IPv6AccessType\022V\n\035pod_cidr_o" - + "verprovision_config\030\025 \001(\0132/.google.conta" - + "iner.v1.PodCIDROverprovisionConfig\022$\n\026su" - + "bnet_ipv6_cidr_block\030\026 \001(\tB\004\342A\001\003\022&\n\030serv" - + "ices_ipv6_cidr_block\030\027 \001(\tB\004\342A\001\003\022Z\n\034addi" - + "tional_pod_ranges_config\030\030 \001(\0132..google." - + "container.v1.AdditionalPodRangesConfigB\004" - + "\342A\001\003\0220\n\"default_pod_ipv4_range_utilizati" - + "on\030\031 \001(\001B\004\342A\001\003\"\232\033\n\007Cluster\022\014\n\004name\030\001 \001(\t" - + "\022\023\n\013description\030\002 \001(\t\022\036\n\022initial_node_co" - + "unt\030\003 \001(\005B\002\030\001\0228\n\013node_config\030\004 \001(\0132\037.goo" - + "gle.container.v1.NodeConfigB\002\030\001\0224\n\013maste" - + "r_auth\030\005 \001(\0132\037.google.container.v1.Maste" - + "rAuth\022\027\n\017logging_service\030\006 \001(\t\022\032\n\022monito" - + "ring_service\030\007 \001(\t\022\017\n\007network\030\010 \001(\t\022\031\n\021c" - + "luster_ipv4_cidr\030\t \001(\t\0228\n\raddons_config\030" - + "\n \001(\0132!.google.container.v1.AddonsConfig" - + "\022\022\n\nsubnetwork\030\013 \001(\t\0221\n\nnode_pools\030\014 \003(\013" - + "2\035.google.container.v1.NodePool\022\021\n\tlocat" - + "ions\030\r \003(\t\022\037\n\027enable_kubernetes_alpha\030\016 " - + "\001(\010\022I\n\017resource_labels\030\017 \003(\01320.google.co" - + "ntainer.v1.Cluster.ResourceLabelsEntry\022\031" - + "\n\021label_fingerprint\030\020 \001(\t\0224\n\013legacy_abac" - + "\030\022 \001(\0132\037.google.container.v1.LegacyAbac\022" - + ":\n\016network_policy\030\023 \001(\0132\".google.contain" - + "er.v1.NetworkPolicy\022E\n\024ip_allocation_pol" - + "icy\030\024 \001(\0132\'.google.container.v1.IPAlloca" - + "tionPolicy\022^\n!master_authorized_networks" - + "_config\030\026 \001(\01323.google.container.v1.Mast" - + "erAuthorizedNetworksConfig\022B\n\022maintenanc" - + "e_policy\030\027 \001(\0132&.google.container.v1.Mai" - + "ntenancePolicy\022F\n\024binary_authorization\030\030" - + " \001(\0132(.google.container.v1.BinaryAuthori" - + "zation\022<\n\013autoscaling\030\032 \001(\0132\'.google.con" - + "tainer.v1.ClusterAutoscaling\022:\n\016network_" - + "config\030\033 \001(\0132\".google.container.v1.Netwo" - + "rkConfig\022K\n\033default_max_pods_constraint\030" - + "\036 \001(\0132&.google.container.v1.MaxPodsConst" - + "raint\022T\n\034resource_usage_export_config\030! " - + "\001(\0132..google.container.v1.ResourceUsageE" - + "xportConfig\022S\n\033authenticator_groups_conf" - + "ig\030\" \001(\0132..google.container.v1.Authentic" - + "atorGroupsConfig\022I\n\026private_cluster_conf" - + "ig\030% \001(\0132).google.container.v1.PrivateCl" - + "usterConfig\022D\n\023database_encryption\030& \001(\013" - + "2\'.google.container.v1.DatabaseEncryptio" - + "n\022M\n\030vertical_pod_autoscaling\030\' \001(\0132+.go" - + "ogle.container.v1.VerticalPodAutoscaling" - + "\022:\n\016shielded_nodes\030( \001(\0132\".google.contai" - + "ner.v1.ShieldedNodes\022<\n\017release_channel\030" - + ") \001(\0132#.google.container.v1.ReleaseChann" - + "el\022M\n\030workload_identity_config\030+ \001(\0132+.g" - + "oogle.container.v1.WorkloadIdentityConfi" - + "g\022@\n\021mesh_certificates\030C \001(\0132%.google.co" - + "ntainer.v1.MeshCertificates\022I\n\026cost_mana" - + "gement_config\030- \001(\0132).google.container.v" - + "1.CostManagementConfig\022D\n\023notification_c" - + "onfig\0301 \001(\0132\'.google.container.v1.Notifi" - + "cationConfig\022B\n\022confidential_nodes\0302 \001(\013" - + "2&.google.container.v1.ConfidentialNodes" - + "\022K\n\027identity_service_config\0306 \001(\0132*.goog" - + "le.container.v1.IdentityServiceConfig\022\021\n" - + "\tself_link\030d \001(\t\022\020\n\004zone\030e \001(\tB\002\030\001\022\020\n\010en" - + "dpoint\030f \001(\t\022\037\n\027initial_cluster_version\030" - + "g \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\013creat" - + "e_time\030j \001(\t\0223\n\006status\030k \001(\0162#.google.co" - + "ntainer.v1.Cluster.Status\022\032\n\016status_mess" - + "age\030l \001(\tB\002\030\001\022\033\n\023node_ipv4_cidr_size\030m \001" - + "(\005\022\032\n\022services_ipv4_cidr\030n \001(\t\022\037\n\023instan" - + "ce_group_urls\030o \003(\tB\002\030\001\022\036\n\022current_node_" - + "count\030p \001(\005B\002\030\001\022\023\n\013expire_time\030q \001(\t\022\020\n\010" - + "location\030r \001(\t\022\022\n\nenable_tpu\030s \001(\010\022\033\n\023tp" - + "u_ipv4_cidr_block\030t \001(\t\0228\n\nconditions\030v " - + "\003(\0132$.google.container.v1.StatusConditio" - + "n\0222\n\tautopilot\030\200\001 \001(\0132\036.google.container" - + ".v1.Autopilot\022\021\n\002id\030\201\001 \001(\tB\004\342A\001\003\022G\n\022node" - + "_pool_defaults\030\203\001 \001(\0132%.google.container" - + ".v1.NodePoolDefaultsH\000\210\001\001\022;\n\016logging_con" - + "fig\030\204\001 \001(\0132\".google.container.v1.Logging" - + "Config\022A\n\021monitoring_config\030\205\001 \001(\0132%.goo" - + "gle.container.v1.MonitoringConfig\022G\n\025nod" - + "e_pool_auto_config\030\210\001 \001(\0132\'.google.conta" - + "iner.v1.NodePoolAutoConfig\022\r\n\004etag\030\213\001 \001(" - + "\t\022*\n\005fleet\030\214\001 \001(\0132\032.google.container.v1." - + "Fleet\022L\n\027security_posture_config\030\221\001 \001(\0132" - + "*.google.container.v1.SecurityPostureCon" - + "fig\022D\n\024enable_k8s_beta_apis\030\217\001 \001(\0132%.goo" - + "gle.container.v1.K8sBetaAPIConfig\022A\n\021ent" - + "erprise_config\030\225\001 \001(\0132%.google.container" - + ".v1.EnterpriseConfig\0325\n\023ResourceLabelsEn" - + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"w\n\006S" - + "tatus\022\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014PROVISI" - + "ONING\020\001\022\013\n\007RUNNING\020\002\022\017\n\013RECONCILING\020\003\022\014\n" - + "\010STOPPING\020\004\022\t\n\005ERROR\020\005\022\014\n\010DEGRADED\020\006B\025\n\023" - + "_node_pool_defaults\"(\n\020K8sBetaAPIConfig\022" - + "\024\n\014enabled_apis\030\001 \003(\t\"\236\003\n\025SecurityPostur" - + "eConfig\022B\n\004mode\030\001 \001(\0162/.google.container" - + ".v1.SecurityPostureConfig.ModeH\000\210\001\001\022]\n\022v" - + "ulnerability_mode\030\002 \001(\0162<.google.contain" - + "er.v1.SecurityPostureConfig.Vulnerabilit" - + "yModeH\001\210\001\001\"5\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000" - + "\022\014\n\010DISABLED\020\001\022\t\n\005BASIC\020\002\"\212\001\n\021Vulnerabil" - + "ityMode\022\"\n\036VULNERABILITY_MODE_UNSPECIFIE" - + "D\020\000\022\032\n\026VULNERABILITY_DISABLED\020\001\022\027\n\023VULNE" - + "RABILITY_BASIC\020\002\022\034\n\030VULNERABILITY_ENTERP" - + "RISE\020\003B\007\n\005_modeB\025\n\023_vulnerability_mode\"\225" - + "\001\n\022NodePoolAutoConfig\0226\n\014network_tags\030\001 " - + "\001(\0132 .google.container.v1.NetworkTags\022G\n" - + "\025resource_manager_tags\030\002 \001(\0132(.google.co" - + "ntainer.v1.ResourceManagerTags\"Y\n\020NodePo" - + "olDefaults\022E\n\024node_config_defaults\030\001 \001(\013" - + "2\'.google.container.v1.NodeConfigDefault" - + "s\"\216\001\n\022NodeConfigDefaults\0224\n\013gcfs_config\030" - + "\001 \001(\0132\037.google.container.v1.GcfsConfig\022B" - + "\n\016logging_config\030\003 \001(\0132*.google.containe" - + "r.v1.NodePoolLoggingConfig\"\320\035\n\rClusterUp" - + "date\022\034\n\024desired_node_version\030\004 \001(\t\022\"\n\032de" - + "sired_monitoring_service\030\005 \001(\t\022@\n\025desire" - + "d_addons_config\030\006 \001(\0132!.google.container" - + ".v1.AddonsConfig\022\034\n\024desired_node_pool_id" - + "\030\007 \001(\t\022\032\n\022desired_image_type\030\010 \001(\t\022L\n\033de" - + "sired_database_encryption\030. \001(\0132\'.google" - + ".container.v1.DatabaseEncryption\022U\n desi" - + "red_workload_identity_config\030/ \001(\0132+.goo" - + "gle.container.v1.WorkloadIdentityConfig\022" - + "H\n\031desired_mesh_certificates\030C \001(\0132%.goo" - + "gle.container.v1.MeshCertificates\022B\n\026des" - + "ired_shielded_nodes\0300 \001(\0132\".google.conta" - + "iner.v1.ShieldedNodes\022Q\n\036desired_cost_ma" - + "nagement_config\0301 \001(\0132).google.container" - + ".v1.CostManagementConfig\022:\n\022desired_dns_" - + "config\0305 \001(\0132\036.google.container.v1.DNSCo" - + "nfig\022O\n\035desired_node_pool_autoscaling\030\t " - + "\001(\0132(.google.container.v1.NodePoolAutosc" - + "aling\022\031\n\021desired_locations\030\n \003(\t\022f\n)desi" - + "red_master_authorized_networks_config\030\014 " - + "\001(\01323.google.container.v1.MasterAuthoriz" - + "edNetworksConfig\022L\n\033desired_cluster_auto" - + "scaling\030\017 \001(\0132\'.google.container.v1.Clus" - + "terAutoscaling\022N\n\034desired_binary_authori" - + "zation\030\020 \001(\0132(.google.container.v1.Binar" - + "yAuthorization\022\037\n\027desired_logging_servic" - + "e\030\023 \001(\t\022\\\n$desired_resource_usage_export" - + "_config\030\025 \001(\0132..google.container.v1.Reso" - + "urceUsageExportConfig\022U\n desired_vertica" - + "l_pod_autoscaling\030\026 \001(\0132+.google.contain" - + "er.v1.VerticalPodAutoscaling\022Q\n\036desired_" - + "private_cluster_config\030\031 \001(\0132).google.co" - + "ntainer.v1.PrivateClusterConfig\022\\\n$desir" - + "ed_intra_node_visibility_config\030\032 \001(\0132.." - + "google.container.v1.IntraNodeVisibilityC" - + "onfig\022K\n\033desired_default_snat_status\030\034 \001" - + "(\0132&.google.container.v1.DefaultSnatStat" - + "us\022D\n\027desired_release_channel\030\037 \001(\0132#.go" - + "ogle.container.v1.ReleaseChannel\022Q\n\037desi" - + "red_l4ilb_subsetting_config\030\' \001(\0132(.goog" - + "le.container.v1.ILBSubsettingConfig\022H\n\031d" - + "esired_datapath_provider\0302 \001(\0162%.google." - + "container.v1.DatapathProvider\022X\n\"desired" - + "_private_ipv6_google_access\0303 \001(\0162,.goog" - + "le.container.v1.PrivateIPv6GoogleAccess\022" - + "L\n\033desired_notification_config\0307 \001(\0132\'.g" - + "oogle.container.v1.NotificationConfig\022[\n" - + "#desired_authenticator_groups_config\030? \001" - + "(\0132..google.container.v1.AuthenticatorGr" - + "oupsConfig\022B\n\026desired_logging_config\030@ \001" - + "(\0132\".google.container.v1.LoggingConfig\022H" - + "\n\031desired_monitoring_config\030A \001(\0132%.goog" - + "le.container.v1.MonitoringConfig\022S\n\037desi" - + "red_identity_service_config\030B \001(\0132*.goog" - + "le.container.v1.IdentityServiceConfig\022Z\n" - + "#desired_service_external_ips_config\030< \001" - + "(\0132-.google.container.v1.ServiceExternal" - + "IPsConfig\022,\n\037desired_enable_private_endp" - + "oint\030G \001(\010H\000\210\001\001\022\036\n\026desired_master_versio", - "n\030d \001(\t\022<\n\023desired_gcfs_config\030m \001(\0132\037.g" - + "oogle.container.v1.GcfsConfig\022T\n*desired" - + "_node_pool_auto_config_network_tags\030n \001(" - + "\0132 .google.container.v1.NetworkTags\022I\n\032d" - + "esired_gateway_api_config\030r \001(\0132%.google" - + ".container.v1.GatewayAPIConfig\022\014\n\004etag\030s" - + " \001(\t\022T\n desired_node_pool_logging_config" - + "\030t \001(\0132*.google.container.v1.NodePoolLog" - + "gingConfig\0221\n\rdesired_fleet\030u \001(\0132\032.goog" - + "le.container.v1.Fleet\022:\n\022desired_stack_t" - + "ype\030w \001(\0162\036.google.container.v1.StackTyp" - + "e\022T\n\034additional_pod_ranges_config\030x \001(\0132" - + "..google.container.v1.AdditionalPodRange" - + "sConfig\022\\\n$removed_additional_pod_ranges" - + "_config\030y \001(\0132..google.container.v1.Addi" - + "tionalPodRangesConfig\022C\n\024enable_k8s_beta" - + "_apis\030z \001(\0132%.google.container.v1.K8sBet" - + "aAPIConfig\022S\n\037desired_security_posture_c" - + "onfig\030| \001(\0132*.google.container.v1.Securi" - + "tyPostureConfig\022n\n\"desired_network_perfo" - + "rmance_config\030} \001(\0132B.google.container.v" - + "1.NetworkConfig.ClusterNetworkPerformanc" - + "eConfig\022/\n\"desired_enable_fqdn_network_p" - + "olicy\030~ \001(\010H\001\210\001\001\022\\\n(desired_autopilot_wo" - + "rkload_policy_config\030\200\001 \001(\0132).google.con" - + "tainer.v1.WorkloadPolicyConfig\022E\n\025desire" - + "d_k8s_beta_apis\030\203\001 \001(\0132%.google.containe" - + "r.v1.K8sBetaAPIConfig\022f\n3desired_node_po" - + "ol_auto_config_resource_manager_tags\030\210\001 " - + "\001(\0132(.google.container.v1.ResourceManage" - + "rTags\022b\n$desired_in_transit_encryption_c" - + "onfig\030\211\001 \001(\0162..google.container.v1.InTra" - + "nsitEncryptionConfigH\002\210\001\001B\"\n _desired_en" - + "able_private_endpointB%\n#_desired_enable" - + "_fqdn_network_policyB\'\n%_desired_in_tran" - + "sit_encryption_config\"r\n\031AdditionalPodRa" - + "ngesConfig\022\027\n\017pod_range_names\030\001 \003(\t\022<\n\016p" - + "od_range_info\030\002 \003(\0132\036.google.container.v" - + "1.RangeInfoB\004\342A\001\003\"@\n\tRangeInfo\022\030\n\nrange_" - + "name\030\001 \001(\tB\004\342A\001\003\022\031\n\013utilization\030\002 \001(\001B\004\342" - + "A\001\003\"\266\010\n\tOperation\022\014\n\004name\030\001 \001(\t\022\020\n\004zone\030" - + "\002 \001(\tB\002\030\001\022;\n\016operation_type\030\003 \001(\0162#.goog" - + "le.container.v1.Operation.Type\0225\n\006status" - + "\030\004 \001(\0162%.google.container.v1.Operation.S" - + "tatus\022\016\n\006detail\030\010 \001(\t\022\036\n\016status_message\030" - + "\005 \001(\tB\006\030\001\342A\001\003\022\021\n\tself_link\030\006 \001(\t\022\023\n\013targ" - + "et_link\030\007 \001(\t\022\020\n\010location\030\t \001(\t\022\022\n\nstart" - + "_time\030\n \001(\t\022\020\n\010end_time\030\013 \001(\t\022>\n\010progres" - + "s\030\014 \001(\0132&.google.container.v1.OperationP" - + "rogressB\004\342A\001\003\022D\n\022cluster_conditions\030\r \003(" - + "\0132$.google.container.v1.StatusConditionB" - + "\002\030\001\022E\n\023nodepool_conditions\030\016 \003(\0132$.googl" - + "e.container.v1.StatusConditionB\002\030\001\022!\n\005er" - + "ror\030\017 \001(\0132\022.google.rpc.Status\"R\n\006Status\022" - + "\026\n\022STATUS_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\013\n\007" - + "RUNNING\020\002\022\010\n\004DONE\020\003\022\014\n\010ABORTING\020\004\"\300\003\n\004Ty" - + "pe\022\024\n\020TYPE_UNSPECIFIED\020\000\022\022\n\016CREATE_CLUST" - + "ER\020\001\022\022\n\016DELETE_CLUSTER\020\002\022\022\n\016UPGRADE_MAST" - + "ER\020\003\022\021\n\rUPGRADE_NODES\020\004\022\022\n\016REPAIR_CLUSTE" - + "R\020\005\022\022\n\016UPDATE_CLUSTER\020\006\022\024\n\020CREATE_NODE_P" - + "OOL\020\007\022\024\n\020DELETE_NODE_POOL\020\010\022\034\n\030SET_NODE_" - + "POOL_MANAGEMENT\020\t\022\025\n\021AUTO_REPAIR_NODES\020\n" - + "\022\032\n\022AUTO_UPGRADE_NODES\020\013\032\002\010\001\022\022\n\nSET_LABE" - + "LS\020\014\032\002\010\001\022\027\n\017SET_MASTER_AUTH\020\r\032\002\010\001\022\026\n\022SET" - + "_NODE_POOL_SIZE\020\016\022\032\n\022SET_NETWORK_POLICY\020" - + "\017\032\002\010\001\022\036\n\026SET_MAINTENANCE_POLICY\020\020\032\002\010\001\022\022\n" - + "\016RESIZE_CLUSTER\020\022\022\031\n\025FLEET_FEATURE_UPGRA" - + "DE\020\023\"\274\002\n\021OperationProgress\022\014\n\004name\030\001 \001(\t" - + "\0225\n\006status\030\002 \001(\0162%.google.container.v1.O" - + "peration.Status\022>\n\007metrics\030\003 \003(\0132-.googl" - + "e.container.v1.OperationProgress.Metric\022" - + "6\n\006stages\030\004 \003(\0132&.google.container.v1.Op" - + "erationProgress\032j\n\006Metric\022\022\n\004name\030\001 \001(\tB" - + "\004\342A\001\002\022\023\n\tint_value\030\002 \001(\003H\000\022\026\n\014double_val" - + "ue\030\003 \001(\001H\000\022\026\n\014string_value\030\004 \001(\tH\000B\007\n\005va" - + "lue\"\205\001\n\024CreateClusterRequest\022\026\n\nproject_" - + "id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\0223\n\007cluste" - + "r\030\003 \001(\0132\034.google.container.v1.ClusterB\004\342" - + "A\001\002\022\016\n\006parent\030\005 \001(\t\"c\n\021GetClusterRequest" - + "\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002" - + "\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\005 \001(\t" - + "\"\240\001\n\024UpdateClusterRequest\022\026\n\nproject_id\030" - + "\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_i" - + "d\030\003 \001(\tB\002\030\001\0228\n\006update\030\004 \001(\0132\".google.con" - + "tainer.v1.ClusterUpdateB\004\342A\001\002\022\014\n\004name\030\005 " - + "\001(\t\"\211\n\n\025UpdateNodePoolRequest\022\026\n\nproject" - + "_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\nclust" - + "er_id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030" - + "\001\022\032\n\014node_version\030\005 \001(\tB\004\342A\001\002\022\030\n\nimage_t" - + "ype\030\006 \001(\tB\004\342A\001\002\022\014\n\004name\030\010 \001(\t\022\021\n\tlocatio" - + "ns\030\r \003(\t\022M\n\030workload_metadata_config\030\016 \001" - + "(\0132+.google.container.v1.WorkloadMetadat" - + "aConfig\022G\n\020upgrade_settings\030\017 \001(\0132-.goog" - + "le.container.v1.NodePool.UpgradeSettings" - + "\022.\n\004tags\030\020 \001(\0132 .google.container.v1.Net" - + "workTags\022/\n\006taints\030\021 \001(\0132\037.google.contai" - + "ner.v1.NodeTaints\022/\n\006labels\030\022 \001(\0132\037.goog" - + "le.container.v1.NodeLabels\022?\n\021linux_node" - + "_config\030\023 \001(\0132$.google.container.v1.Linu" - + "xNodeConfig\022>\n\016kubelet_config\030\024 \001(\0132&.go" - + "ogle.container.v1.NodeKubeletConfig\022C\n\023n" - + "ode_network_config\030\025 \001(\0132&.google.contai" - + "ner.v1.NodeNetworkConfig\0224\n\013gcfs_config\030" - + "\026 \001(\0132\037.google.container.v1.GcfsConfig\022B" - + "\n\022confidential_nodes\030\027 \001(\0132&.google.cont" - + "ainer.v1.ConfidentialNodes\022.\n\005gvnic\030\035 \001(" - + "\0132\037.google.container.v1.VirtualNIC\022\014\n\004et" - + "ag\030\036 \001(\t\0224\n\013fast_socket\030\037 \001(\0132\037.google.c" - + "ontainer.v1.FastSocket\022B\n\016logging_config" - + "\030 \001(\0132*.google.container.v1.NodePoolLog" - + "gingConfig\022<\n\017resource_labels\030! \001(\0132#.go" - + "ogle.container.v1.ResourceLabels\022C\n\023wind" - + "ows_node_config\030\" \001(\0132&.google.container" - + ".v1.WindowsNodeConfig\022\032\n\014machine_type\030$ " - + "\001(\tB\004\342A\001\001\022\027\n\tdisk_type\030% \001(\tB\004\342A\001\001\022\032\n\014di" - + "sk_size_gb\030& \001(\003B\004\342A\001\001\022G\n\025resource_manag" - + "er_tags\030\' \001(\0132(.google.container.v1.Reso" - + "urceManagerTags\"\316\001\n\035SetNodePoolAutoscali" - + "ngRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zon" - + "e\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\030\n\014n" - + "ode_pool_id\030\004 \001(\tB\002\030\001\022C\n\013autoscaling\030\005 \001" - + "(\0132(.google.container.v1.NodePoolAutosca" - + "lingB\004\342A\001\002\022\014\n\004name\030\006 \001(\t\"\211\001\n\030SetLoggingS" - + "erviceRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n" - + "\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022" - + "\035\n\017logging_service\030\004 \001(\tB\004\342A\001\002\022\014\n\004name\030\005" - + " \001(\t\"\217\001\n\033SetMonitoringServiceRequest\022\026\n\n" - + "project_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026" - + "\n\ncluster_id\030\003 \001(\tB\002\030\001\022 \n\022monitoring_ser" - + "vice\030\004 \001(\tB\004\342A\001\002\022\014\n\004name\030\006 \001(\t\"\250\001\n\026SetAd" - + "donsConfigRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030" - + "\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB" - + "\002\030\001\022>\n\raddons_config\030\004 \001(\0132!.google.cont" - + "ainer.v1.AddonsConfigB\004\342A\001\002\022\014\n\004name\030\006 \001(" - + "\t\"~\n\023SetLocationsRequest\022\026\n\nproject_id\030\001" - + " \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id" - + "\030\003 \001(\tB\002\030\001\022\027\n\tlocations\030\004 \003(\tB\004\342A\001\002\022\014\n\004n" - + "ame\030\006 \001(\t\"\203\001\n\023UpdateMasterRequest\022\026\n\npro" - + "ject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\nc" - + "luster_id\030\003 \001(\tB\002\030\001\022\034\n\016master_version\030\004 " - + "\001(\tB\004\342A\001\002\022\014\n\004name\030\007 \001(\t\"\267\002\n\024SetMasterAut" - + "hRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone" - + "\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022F\n\006ac" - + "tion\030\004 \001(\01620.google.container.v1.SetMast" - + "erAuthRequest.ActionB\004\342A\001\002\0225\n\006update\030\005 \001" - + "(\0132\037.google.container.v1.MasterAuthB\004\342A\001" - + "\002\022\014\n\004name\030\007 \001(\t\"P\n\006Action\022\013\n\007UNKNOWN\020\000\022\020" - + "\n\014SET_PASSWORD\020\001\022\025\n\021GENERATE_PASSWORD\020\002\022" - + "\020\n\014SET_USERNAME\020\003\"f\n\024DeleteClusterReques" - + "t\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB" - + "\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\004 \001(" - + "\t\"O\n\023ListClustersRequest\022\026\n\nproject_id\030\001" - + " \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\016\n\006parent\030\004 \001" - + "(\t\"]\n\024ListClustersResponse\022.\n\010clusters\030\001" - + " \003(\0132\034.google.container.v1.Cluster\022\025\n\rmi" - + "ssing_zones\030\002 \003(\t\"g\n\023GetOperationRequest" - + "\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002" - + "\030\001\022\030\n\014operation_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\005 \001" - + "(\t\"Q\n\025ListOperationsRequest\022\026\n\nproject_i" - + "d\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\016\n\006parent\030" - + "\004 \001(\t\"j\n\026CancelOperationRequest\022\026\n\nproje" - + "ct_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\030\n\014ope" - + "ration_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\004 \001(\t\"c\n\026Lis" - + "tOperationsResponse\0222\n\noperations\030\001 \003(\0132" - + "\036.google.container.v1.Operation\022\025\n\rmissi" - + "ng_zones\030\002 \003(\t\"P\n\026GetServerConfigRequest" - + "\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002" - + "\030\001\022\014\n\004name\030\004 \001(\t\"\364\002\n\014ServerConfig\022\037\n\027def" - + "ault_cluster_version\030\001 \001(\t\022\033\n\023valid_node" - + "_versions\030\003 \003(\t\022\032\n\022default_image_type\030\004 " - + "\001(\t\022\031\n\021valid_image_types\030\005 \003(\t\022\035\n\025valid_" - + "master_versions\030\006 \003(\t\022H\n\010channels\030\t \003(\0132" - + "6.google.container.v1.ServerConfig.Relea" - + "seChannelConfig\032\205\001\n\024ReleaseChannelConfig" - + "\022<\n\007channel\030\001 \001(\0162+.google.container.v1." - + "ReleaseChannel.Channel\022\027\n\017default_versio" - + "n\030\002 \001(\t\022\026\n\016valid_versions\030\004 \003(\t\"\241\001\n\025Crea" - + "teNodePoolRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030" - + "\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB" - + "\002\030\001\0226\n\tnode_pool\030\004 \001(\0132\035.google.containe" - + "r.v1.NodePoolB\004\342A\001\002\022\016\n\006parent\030\006 \001(\t\"\201\001\n\025" - + "DeleteNodePoolRequest\022\026\n\nproject_id\030\001 \001(" - + "\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 " - + "\001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022\014\n\004nam" - + "e\030\006 \001(\t\"h\n\024ListNodePoolsRequest\022\026\n\nproje" - + "ct_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\nclu" - + "ster_id\030\003 \001(\tB\002\030\001\022\016\n\006parent\030\005 \001(\t\"~\n\022Get" - + "NodePoolRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022" - + "\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030" - + "\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022\014\n\004name\030\006 \001(" - + "\t\"\237\003\n\021BlueGreenSettings\022_\n\027standard_roll" - + "out_policy\030\001 \001(\0132<.google.container.v1.B" - + "lueGreenSettings.StandardRolloutPolicyH\000" - + "\022?\n\027node_pool_soak_duration\030\002 \001(\0132\031.goog" - + "le.protobuf.DurationH\001\210\001\001\032\271\001\n\025StandardRo" - + "lloutPolicy\022\032\n\020batch_percentage\030\001 \001(\002H\000\022" - + "\032\n\020batch_node_count\030\002 \001(\005H\000\022;\n\023batch_soa" - + "k_duration\030\003 \001(\0132\031.google.protobuf.Durat" - + "ionH\001\210\001\001B\023\n\021update_batch_sizeB\026\n\024_batch_" - + "soak_durationB\020\n\016rollout_policyB\032\n\030_node" - + "_pool_soak_duration\"\274\020\n\010NodePool\022\014\n\004name" - + "\030\001 \001(\t\022/\n\006config\030\002 \001(\0132\037.google.containe" - + "r.v1.NodeConfig\022\032\n\022initial_node_count\030\003 " - + "\001(\005\022\021\n\tlocations\030\r \003(\t\022>\n\016network_config" - + "\030\016 \001(\0132&.google.container.v1.NodeNetwork" - + "Config\022\021\n\tself_link\030d \001(\t\022\017\n\007version\030e \001" - + "(\t\022\033\n\023instance_group_urls\030f \003(\t\0224\n\006statu" - + "s\030g \001(\0162$.google.container.v1.NodePool.S" - + "tatus\022\032\n\016status_message\030h \001(\tB\002\030\001\022=\n\013aut" - + "oscaling\030\004 \001(\0132(.google.container.v1.Nod" - + "ePoolAutoscaling\0227\n\nmanagement\030\005 \001(\0132#.g" - + "oogle.container.v1.NodeManagement\022C\n\023max" - + "_pods_constraint\030\006 \001(\0132&.google.containe" - + "r.v1.MaxPodsConstraint\0228\n\nconditions\030i \003" - + "(\0132$.google.container.v1.StatusCondition" - + "\022\032\n\022pod_ipv4_cidr_size\030\007 \001(\005\022G\n\020upgrade_" - + "settings\030k \001(\0132-.google.container.v1.Nod" - + "ePool.UpgradeSettings\022G\n\020placement_polic" - + "y\030l \001(\0132-.google.container.v1.NodePool.P" - + "lacementPolicy\022C\n\013update_info\030m \001(\0132(.go" - + "ogle.container.v1.NodePool.UpdateInfoB\004\342" - + "A\001\003\022\014\n\004etag\030n \001(\t\022M\n\023queued_provisioning" - + "\030p \001(\01320.google.container.v1.NodePool.Qu" - + "euedProvisioning\022M\n\030best_effort_provisio" - + "ning\030q \001(\0132+.google.container.v1.BestEff" - + "ortProvisioning\032\360\001\n\017UpgradeSettings\022\021\n\tm" - + "ax_surge\030\001 \001(\005\022\027\n\017max_unavailable\030\002 \001(\005\022" - + "B\n\010strategy\030\003 \001(\0162+.google.container.v1." - + "NodePoolUpdateStrategyH\000\210\001\001\022H\n\023blue_gree" - + "n_settings\030\004 \001(\0132&.google.container.v1.B" - + "lueGreenSettingsH\001\210\001\001B\013\n\t_strategyB\026\n\024_b" - + "lue_green_settings\032\210\004\n\nUpdateInfo\022O\n\017blu" - + "e_green_info\030\001 \001(\01326.google.container.v1" - + ".NodePool.UpdateInfo.BlueGreenInfo\032\250\003\n\rB" - + "lueGreenInfo\022K\n\005phase\030\001 \001(\0162<.google.con" - + "tainer.v1.NodePool.UpdateInfo.BlueGreenI" - + "nfo.Phase\022 \n\030blue_instance_group_urls\030\002 " - + "\003(\t\022!\n\031green_instance_group_urls\030\003 \003(\t\022%" - + "\n\035blue_pool_deletion_start_time\030\004 \001(\t\022\032\n" - + "\022green_pool_version\030\005 \001(\t\"\301\001\n\005Phase\022\025\n\021P" - + "HASE_UNSPECIFIED\020\000\022\022\n\016UPDATE_STARTED\020\001\022\027" - + "\n\023CREATING_GREEN_POOL\020\002\022\027\n\023CORDONING_BLU" - + "E_POOL\020\003\022\026\n\022DRAINING_BLUE_POOL\020\004\022\025\n\021NODE" - + "_POOL_SOAKING\020\005\022\026\n\022DELETING_BLUE_POOL\020\006\022" - + "\024\n\020ROLLBACK_STARTED\020\007\032\257\001\n\017PlacementPolic" - + "y\022@\n\004type\030\001 \001(\01622.google.container.v1.No" - + "dePool.PlacementPolicy.Type\022\032\n\014tpu_topol" - + "ogy\030\002 \001(\tB\004\342A\001\001\022\023\n\013policy_name\030\003 \001(\t\")\n\004" - + "Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\013\n\007COMPACT\020\001\032" - + "%\n\022QueuedProvisioning\022\017\n\007enabled\030\001 \001(\010\"\201" - + "\001\n\006Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014PRO" - + "VISIONING\020\001\022\013\n\007RUNNING\020\002\022\026\n\022RUNNING_WITH" - + "_ERROR\020\003\022\017\n\013RECONCILING\020\004\022\014\n\010STOPPING\020\005\022" - + "\t\n\005ERROR\020\006\"}\n\016NodeManagement\022\024\n\014auto_upg" - + "rade\030\001 \001(\010\022\023\n\013auto_repair\030\002 \001(\010\022@\n\017upgra" - + "de_options\030\n \001(\0132\'.google.container.v1.A" - + "utoUpgradeOptions\"F\n\026BestEffortProvision" - + "ing\022\017\n\007enabled\030\001 \001(\010\022\033\n\023min_provision_no" - + "des\030\002 \001(\005\"J\n\022AutoUpgradeOptions\022\037\n\027auto_" - + "upgrade_start_time\030\001 \001(\t\022\023\n\013description\030" - + "\002 \001(\t\"e\n\021MaintenancePolicy\0226\n\006window\030\001 \001" - + "(\0132&.google.container.v1.MaintenanceWind" - + "ow\022\030\n\020resource_version\030\003 \001(\t\"\366\002\n\021Mainten" - + "anceWindow\022O\n\030daily_maintenance_window\030\002" - + " \001(\0132+.google.container.v1.DailyMaintena" - + "nceWindowH\000\022D\n\020recurring_window\030\003 \001(\0132(." - + "google.container.v1.RecurringTimeWindowH" - + "\000\022a\n\026maintenance_exclusions\030\004 \003(\0132A.goog" - + "le.container.v1.MaintenanceWindow.Mainte" - + "nanceExclusionsEntry\032]\n\032MaintenanceExclu" - + "sionsEntry\022\013\n\003key\030\001 \001(\t\022.\n\005value\030\002 \001(\0132\037" - + ".google.container.v1.TimeWindow:\0028\001B\010\n\006p" - + "olicy\"\320\001\n\nTimeWindow\022Y\n\035maintenance_excl" - + "usion_options\030\003 \001(\01320.google.container.v" - + "1.MaintenanceExclusionOptionsH\000\022.\n\nstart" - + "_time\030\001 \001(\0132\032.google.protobuf.Timestamp\022" - + ",\n\010end_time\030\002 \001(\0132\032.google.protobuf.Time" - + "stampB\t\n\007options\"\264\001\n\033MaintenanceExclusio" - + "nOptions\022E\n\005scope\030\001 \001(\01626.google.contain" - + "er.v1.MaintenanceExclusionOptions.Scope\"" - + "N\n\005Scope\022\017\n\013NO_UPGRADES\020\000\022\025\n\021NO_MINOR_UP" - + "GRADES\020\001\022\035\n\031NO_MINOR_OR_NODE_UPGRADES\020\002\"" - + "Z\n\023RecurringTimeWindow\022/\n\006window\030\001 \001(\0132\037" - + ".google.container.v1.TimeWindow\022\022\n\nrecur" - + "rence\030\002 \001(\t\">\n\026DailyMaintenanceWindow\022\022\n" - + "\nstart_time\030\002 \001(\t\022\020\n\010duration\030\003 \001(\t\"\307\001\n\034" - + "SetNodePoolManagementRequest\022\026\n\nproject_" - + "id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluste" - + "r_id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001" - + "\022=\n\nmanagement\030\005 \001(\0132#.google.container." - + "v1.NodeManagementB\004\342A\001\002\022\014\n\004name\030\007 \001(\t\"\234\001" - + "\n\026SetNodePoolSizeRequest\022\026\n\nproject_id\030\001" - + " \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id" - + "\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022\030\n\n" - + "node_count\030\005 \001(\005B\004\342A\001\002\022\014\n\004name\030\007 \001(\t\".\n\036" - + "CompleteNodePoolUpgradeRequest\022\014\n\004name\030\001" - + " \001(\t\"\237\001\n\036RollbackNodePoolUpgradeRequest\022" - + "\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030" - + "\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_i" - + "d\030\004 \001(\tB\002\030\001\022\014\n\004name\030\006 \001(\t\022\023\n\013respect_pdb" - + "\030\007 \001(\010\"J\n\025ListNodePoolsResponse\0221\n\nnode_" - + "pools\030\001 \003(\0132\035.google.container.v1.NodePo" - + "ol\"\257\003\n\022ClusterAutoscaling\022$\n\034enable_node" - + "_autoprovisioning\030\001 \001(\010\022;\n\017resource_limi" - + "ts\030\002 \003(\0132\".google.container.v1.ResourceL" - + "imit\022W\n\023autoscaling_profile\030\003 \001(\0162:.goog" - + "le.container.v1.ClusterAutoscaling.Autos" - + "calingProfile\022b\n#autoprovisioning_node_p" - + "ool_defaults\030\004 \001(\01325.google.container.v1" - + ".AutoprovisioningNodePoolDefaults\022\"\n\032aut" - + "oprovisioning_locations\030\005 \003(\t\"U\n\022Autosca" - + "lingProfile\022\027\n\023PROFILE_UNSPECIFIED\020\000\022\030\n\024" - + "OPTIMIZE_UTILIZATION\020\001\022\014\n\010BALANCED\020\002\"\370\003\n" - + " AutoprovisioningNodePoolDefaults\022\024\n\014oau" - + "th_scopes\030\001 \003(\t\022\027\n\017service_account\030\002 \001(\t" - + "\022G\n\020upgrade_settings\030\003 \001(\0132-.google.cont" - + "ainer.v1.NodePool.UpgradeSettings\0227\n\nman" - + "agement\030\004 \001(\0132#.google.container.v1.Node" - + "Management\022\034\n\020min_cpu_platform\030\005 \001(\tB\002\030\001" - + "\022\024\n\014disk_size_gb\030\006 \001(\005\022\021\n\tdisk_type\030\007 \001(" - + "\t\022M\n\030shielded_instance_config\030\010 \001(\0132+.go" - + "ogle.container.v1.ShieldedInstanceConfig" - + "\022\031\n\021boot_disk_kms_key\030\t \001(\t\022\022\n\nimage_typ" - + "e\030\n \001(\t\0223\n&insecure_kubelet_readonly_por" - + "t_enabled\030\r \001(\010H\000\210\001\001B)\n\'_insecure_kubele" - + "t_readonly_port_enabled\"H\n\rResourceLimit" - + "\022\025\n\rresource_type\030\001 \001(\t\022\017\n\007minimum\030\002 \001(\003" - + "\022\017\n\007maximum\030\003 \001(\003\"\307\002\n\023NodePoolAutoscalin" - + "g\022\017\n\007enabled\030\001 \001(\010\022\026\n\016min_node_count\030\002 \001" - + "(\005\022\026\n\016max_node_count\030\003 \001(\005\022\027\n\017autoprovis" - + "ioned\030\004 \001(\010\022P\n\017location_policy\030\005 \001(\01627.g" - + "oogle.container.v1.NodePoolAutoscaling.L" - + "ocationPolicy\022\034\n\024total_min_node_count\030\006 " - + "\001(\005\022\034\n\024total_max_node_count\030\007 \001(\005\"H\n\016Loc" - + "ationPolicy\022\037\n\033LOCATION_POLICY_UNSPECIFI" - + "ED\020\000\022\014\n\010BALANCED\020\001\022\007\n\003ANY\020\002\"\224\002\n\020SetLabel" - + "sRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone" - + "\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022X\n\017re" - + "source_labels\030\004 \003(\01329.google.container.v" - + "1.SetLabelsRequest.ResourceLabelsEntryB\004" - + "\342A\001\002\022\037\n\021label_fingerprint\030\005 \001(\tB\004\342A\001\002\022\014\n" - + "\004name\030\007 \001(\t\0325\n\023ResourceLabelsEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"}\n\024SetLegacyA" - + "bacRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zo" - + "ne\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\025\n\007" - + "enabled\030\004 \001(\010B\004\342A\001\002\022\014\n\004name\030\006 \001(\t\"\204\001\n\026St" - + "artIPRotationRequest\022\026\n\nproject_id\030\001 \001(\t" - + "B\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001" - + "(\tB\002\030\001\022\014\n\004name\030\006 \001(\t\022\032\n\022rotate_credentia" - + "ls\030\007 \001(\010\"k\n\031CompleteIPRotationRequest\022\026\n" - + "\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022" - + "\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\007 \001(\t\"\305\002" - + "\n\021AcceleratorConfig\022\031\n\021accelerator_count" - + "\030\001 \001(\003\022\030\n\020accelerator_type\030\002 \001(\t\022\032\n\022gpu_" - + "partition_size\030\003 \001(\t\022F\n\022gpu_sharing_conf" - + "ig\030\005 \001(\0132%.google.container.v1.GPUSharin" - + "gConfigH\000\210\001\001\022]\n\036gpu_driver_installation_" - + "config\030\006 \001(\01320.google.container.v1.GPUDr" - + "iverInstallationConfigH\001\210\001\001B\025\n\023_gpu_shar" - + "ing_configB!\n\037_gpu_driver_installation_c" - + "onfig\"\372\001\n\020GPUSharingConfig\022\"\n\032max_shared" - + "_clients_per_gpu\030\001 \001(\003\022[\n\024gpu_sharing_st" - + "rategy\030\002 \001(\01628.google.container.v1.GPUSh" - + "aringConfig.GPUSharingStrategyH\000\210\001\001\"L\n\022G" - + "PUSharingStrategy\022$\n GPU_SHARING_STRATEG" - + "Y_UNSPECIFIED\020\000\022\020\n\014TIME_SHARING\020\001B\027\n\025_gp" - + "u_sharing_strategy\"\204\002\n\033GPUDriverInstalla" - + "tionConfig\022b\n\022gpu_driver_version\030\001 \001(\0162A" - + ".google.container.v1.GPUDriverInstallati" - + "onConfig.GPUDriverVersionH\000\210\001\001\"j\n\020GPUDri" - + "verVersion\022\"\n\036GPU_DRIVER_VERSION_UNSPECI" - + "FIED\020\000\022\031\n\025INSTALLATION_DISABLED\020\001\022\013\n\007DEF" - + "AULT\020\002\022\n\n\006LATEST\020\003B\025\n\023_gpu_driver_versio" - + "n\"\232\001\n\026WorkloadMetadataConfig\022>\n\004mode\030\002 \001" - + "(\01620.google.container.v1.WorkloadMetadat" - + "aConfig.Mode\"@\n\004Mode\022\024\n\020MODE_UNSPECIFIED" - + "\020\000\022\020\n\014GCE_METADATA\020\001\022\020\n\014GKE_METADATA\020\002\"\253" - + "\001\n\027SetNetworkPolicyRequest\022\026\n\nproject_id" - + "\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_" - + "id\030\003 \001(\tB\002\030\001\022@\n\016network_policy\030\004 \001(\0132\".g" - + "oogle.container.v1.NetworkPolicyB\004\342A\001\002\022\014" - + "\n\004name\030\006 \001(\t\"\275\001\n\033SetMaintenancePolicyReq" - + "uest\022\030\n\nproject_id\030\001 \001(\tB\004\342A\001\002\022\022\n\004zone\030\002" - + " \001(\tB\004\342A\001\002\022\030\n\ncluster_id\030\003 \001(\tB\004\342A\001\002\022H\n\022" - + "maintenance_policy\030\004 \001(\0132&.google.contai" - + "ner.v1.MaintenancePolicyB\004\342A\001\002\022\014\n\004name\030\005" - + " \001(\t\"\251\002\n\017StatusCondition\022;\n\004code\030\001 \001(\0162)" - + ".google.container.v1.StatusCondition.Cod" - + "eB\002\030\001\022\017\n\007message\030\002 \001(\t\022(\n\016canonical_code" - + "\030\003 \001(\0162\020.google.rpc.Code\"\235\001\n\004Code\022\013\n\007UNK" - + "NOWN\020\000\022\020\n\014GCE_STOCKOUT\020\001\022\037\n\033GKE_SERVICE_" - + "ACCOUNT_DELETED\020\002\022\026\n\022GCE_QUOTA_EXCEEDED\020" - + "\003\022\023\n\017SET_BY_OPERATOR\020\004\022\027\n\023CLOUD_KMS_KEY_" - + "ERROR\020\007\022\017\n\013CA_EXPIRING\020\t\"\315\010\n\rNetworkConf" - + "ig\022\017\n\007network\030\001 \001(\t\022\022\n\nsubnetwork\030\002 \001(\t\022" - + "$\n\034enable_intra_node_visibility\030\005 \001(\010\022C\n" - + "\023default_snat_status\030\007 \001(\0132&.google.cont" - + "ainer.v1.DefaultSnatStatus\022\037\n\027enable_l4i" - + "lb_subsetting\030\n \001(\010\022@\n\021datapath_provider" - + "\030\013 \001(\0162%.google.container.v1.DatapathPro", - "vider\022P\n\032private_ipv6_google_access\030\014 \001(" - + "\0162,.google.container.v1.PrivateIPv6Googl" - + "eAccess\0222\n\ndns_config\030\r \001(\0132\036.google.con" - + "tainer.v1.DNSConfig\022R\n\033service_external_" - + "ips_config\030\017 \001(\0132-.google.container.v1.S" - + "erviceExternalIPsConfig\022A\n\022gateway_api_c" - + "onfig\030\020 \001(\0132%.google.container.v1.Gatewa" - + "yAPIConfig\022\037\n\027enable_multi_networking\030\021 " - + "\001(\010\022f\n\032network_performance_config\030\022 \001(\0132" - + "B.google.container.v1.NetworkConfig.Clus" - + "terNetworkPerformanceConfig\022\'\n\032enable_fq" - + "dn_network_policy\030\023 \001(\010H\000\210\001\001\022Y\n\034in_trans" - + "it_encryption_config\030\024 \001(\0162..google.cont" - + "ainer.v1.InTransitEncryptionConfigH\001\210\001\001\032" - + "\336\001\n\037ClusterNetworkPerformanceConfig\022q\n\033t" - + "otal_egress_bandwidth_tier\030\001 \001(\0162G.googl" - + "e.container.v1.NetworkConfig.ClusterNetw" - + "orkPerformanceConfig.TierH\000\210\001\001\"(\n\004Tier\022\024" - + "\n\020TIER_UNSPECIFIED\020\000\022\n\n\006TIER_1\020\001B\036\n\034_tot" - + "al_egress_bandwidth_tierB\035\n\033_enable_fqdn" - + "_network_policyB\037\n\035_in_transit_encryptio" - + "n_config\"\274\001\n\020GatewayAPIConfig\022>\n\007channel" - + "\030\001 \001(\0162-.google.container.v1.GatewayAPIC" - + "onfig.Channel\"h\n\007Channel\022\027\n\023CHANNEL_UNSP" - + "ECIFIED\020\000\022\024\n\020CHANNEL_DISABLED\020\001\022\030\n\024CHANN" - + "EL_EXPERIMENTAL\020\003\022\024\n\020CHANNEL_STANDARD\020\004\"" - + "+\n\030ServiceExternalIPsConfig\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\006is" - + "suer\030\001 \001(\t\022\020\n\010jwks_uri\030\002 \001(\t\022 \n\030response" - + "_types_supported\030\003 \003(\t\022\037\n\027subject_types_" - + "supported\030\004 \003(\t\022-\n%id_token_signing_alg_" - + "values_supported\030\005 \003(\t\022\030\n\020claims_support" - + "ed\030\006 \003(\t\022\023\n\013grant_types\030\007 \003(\t\"\'\n\025GetJSON" - + "WebKeysRequest\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\003" - + "kid\030\004 \001(\t\022\t\n\001n\030\005 \001(\t\022\t\n\001e\030\006 \001(\t\022\t\n\001x\030\007 \001" - + "(\t\022\t\n\001y\030\010 \001(\t\022\013\n\003crv\030\t \001(\t\"@\n\026GetJSONWeb" - + "KeysResponse\022&\n\004keys\030\001 \003(\0132\030.google.cont" - + "ainer.v1.Jwk\"2\n\"CheckAutopilotCompatibil" - + "ityRequest\022\014\n\004name\030\001 \001(\t\"\374\002\n\033AutopilotCo" - + "mpatibilityIssue\0224\n\020last_observation\030\001 \001" - + "(\0132\032.google.protobuf.Timestamp\022\027\n\017constr" - + "aint_type\030\002 \001(\t\022X\n\024incompatibility_type\030" - + "\003 \001(\0162:.google.container.v1.AutopilotCom" - + "patibilityIssue.IssueType\022\020\n\010subjects\030\004 " - + "\003(\t\022\031\n\021documentation_url\030\005 \001(\t\022\023\n\013descri" - + "ption\030\006 \001(\t\"r\n\tIssueType\022\017\n\013UNSPECIFIED\020" - + "\000\022\023\n\017INCOMPATIBILITY\020\001\022\036\n\032ADDITIONAL_CON" - + "FIG_REQUIRED\020\002\022\037\n\033PASSED_WITH_OPTIONAL_C" - + "ONFIG\020\003\"x\n#CheckAutopilotCompatibilityRe" - + "sponse\022@\n\006issues\030\001 \003(\01320.google.containe" - + "r.v1.AutopilotCompatibilityIssue\022\017\n\007summ" - + "ary\030\002 \001(\t\"\216\001\n\016ReleaseChannel\022<\n\007channel\030" - + "\001 \001(\0162+.google.container.v1.ReleaseChann" - + "el.Channel\">\n\007Channel\022\017\n\013UNSPECIFIED\020\000\022\t" - + "\n\005RAPID\020\001\022\013\n\007REGULAR\020\002\022\n\n\006STABLE\020\003\"\'\n\024Co" - + "stManagementConfig\022\017\n\007enabled\030\001 \001(\010\",\n\031I" - + "ntraNodeVisibilityConfig\022\017\n\007enabled\030\001 \001(" - + "\010\"&\n\023ILBSubsettingConfig\022\017\n\007enabled\030\001 \001(" - + "\010\"\313\002\n\tDNSConfig\022<\n\013cluster_dns\030\001 \001(\0162\'.g" - + "oogle.container.v1.DNSConfig.Provider\022B\n" - + "\021cluster_dns_scope\030\002 \001(\0162\'.google.contai" - + "ner.v1.DNSConfig.DNSScope\022\032\n\022cluster_dns" - + "_domain\030\003 \001(\t\"W\n\010Provider\022\030\n\024PROVIDER_UN" - + "SPECIFIED\020\000\022\024\n\020PLATFORM_DEFAULT\020\001\022\r\n\tCLO" - + "UD_DNS\020\002\022\014\n\010KUBE_DNS\020\003\"G\n\010DNSScope\022\031\n\025DN" - + "S_SCOPE_UNSPECIFIED\020\000\022\021\n\rCLUSTER_SCOPE\020\001" - + "\022\r\n\tVPC_SCOPE\020\002\".\n\021MaxPodsConstraint\022\031\n\021" - + "max_pods_per_node\030\001 \001(\003\"/\n\026WorkloadIdent" - + "ityConfig\022\025\n\rworkload_pool\030\002 \001(\t\"(\n\025Iden" - + "tityServiceConfig\022\017\n\007enabled\030\001 \001(\010\"K\n\020Me" - + "shCertificates\0227\n\023enable_certificates\030\001 " - + "\001(\0132\032.google.protobuf.BoolValue\"\230\001\n\022Data" - + "baseEncryption\022\020\n\010key_name\030\001 \001(\t\022<\n\005stat" - + "e\030\002 \001(\0162-.google.container.v1.DatabaseEn" - + "cryption.State\"2\n\005State\022\013\n\007UNKNOWN\020\000\022\r\n\t" - + "ENCRYPTED\020\001\022\r\n\tDECRYPTED\020\002\"e\n\034ListUsable" - + "SubnetworksRequest\022\016\n\006parent\030\001 \001(\t\022\016\n\006fi" - + "lter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_to" - + "ken\030\004 \001(\t\"t\n\035ListUsableSubnetworksRespon" - + "se\022:\n\013subnetworks\030\001 \003(\0132%.google.contain" - + "er.v1.UsableSubnetwork\022\027\n\017next_page_toke" - + "n\030\002 \001(\t\"\200\002\n\036UsableSubnetworkSecondaryRan" - + "ge\022\022\n\nrange_name\030\001 \001(\t\022\025\n\rip_cidr_range\030" - + "\002 \001(\t\022J\n\006status\030\003 \001(\0162:.google.container" - + ".v1.UsableSubnetworkSecondaryRange.Statu" - + "s\"g\n\006Status\022\013\n\007UNKNOWN\020\000\022\n\n\006UNUSED\020\001\022\022\n\016" - + "IN_USE_SERVICE\020\002\022\030\n\024IN_USE_SHAREABLE_POD" - + "\020\003\022\026\n\022IN_USE_MANAGED_POD\020\004\"\270\001\n\020UsableSub" - + "network\022\022\n\nsubnetwork\030\001 \001(\t\022\017\n\007network\030\002" - + " \001(\t\022\025\n\rip_cidr_range\030\003 \001(\t\022P\n\023secondary" - + "_ip_ranges\030\004 \003(\01323.google.container.v1.U" - + "sableSubnetworkSecondaryRange\022\026\n\016status_" - + "message\030\005 \001(\t\"\355\002\n\031ResourceUsageExportCon" - + "fig\022`\n\024bigquery_destination\030\001 \001(\0132B.goog" - + "le.container.v1.ResourceUsageExportConfi" - + "g.BigQueryDestination\022&\n\036enable_network_" - + "egress_metering\030\002 \001(\010\022m\n\033consumption_met" - + "ering_config\030\003 \001(\0132H.google.container.v1" - + ".ResourceUsageExportConfig.ConsumptionMe" - + "teringConfig\032)\n\023BigQueryDestination\022\022\n\nd" - + "ataset_id\030\001 \001(\t\032,\n\031ConsumptionMeteringCo" - + "nfig\022\017\n\007enabled\030\001 \001(\010\")\n\026VerticalPodAuto" - + "scaling\022\017\n\007enabled\030\001 \001(\010\"%\n\021DefaultSnatS" - + "tatus\022\020\n\010disabled\030\001 \001(\010\" \n\rShieldedNodes" - + "\022\017\n\007enabled\030\001 \001(\010\"\035\n\nVirtualNIC\022\017\n\007enabl" - + "ed\030\001 \001(\010\"\035\n\nFastSocket\022\017\n\007enabled\030\001 \001(\010\"" - + "\250\003\n\022NotificationConfig\022>\n\006pubsub\030\001 \001(\0132." - + ".google.container.v1.NotificationConfig." - + "PubSub\032\212\001\n\006PubSub\022\017\n\007enabled\030\001 \001(\010\022/\n\005to" - + "pic\030\002 \001(\tB \372A\035\n\033pubsub.googleapis.com/To" - + "pic\022>\n\006filter\030\003 \001(\0132..google.container.v" - + "1.NotificationConfig.Filter\032O\n\006Filter\022E\n" - + "\nevent_type\030\001 \003(\01621.google.container.v1." - + "NotificationConfig.EventType\"t\n\tEventTyp" - + "e\022\032\n\026EVENT_TYPE_UNSPECIFIED\020\000\022\033\n\027UPGRADE" - + "_AVAILABLE_EVENT\020\001\022\021\n\rUPGRADE_EVENT\020\002\022\033\n" - + "\027SECURITY_BULLETIN_EVENT\020\003\"$\n\021Confidenti" - + "alNodes\022\017\n\007enabled\030\001 \001(\010\"\337\001\n\014UpgradeEven" - + "t\022?\n\rresource_type\030\001 \001(\0162(.google.contai" - + "ner.v1.UpgradeResourceType\022\021\n\toperation\030" - + "\002 \001(\t\0228\n\024operation_start_time\030\003 \001(\0132\032.go" - + "ogle.protobuf.Timestamp\022\027\n\017current_versi" - + "on\030\004 \001(\t\022\026\n\016target_version\030\005 \001(\t\022\020\n\010reso" - + "urce\030\006 \001(\t\"\271\001\n\025UpgradeAvailableEvent\022\017\n\007" - + "version\030\001 \001(\t\022?\n\rresource_type\030\002 \001(\0162(.g" - + "oogle.container.v1.UpgradeResourceType\022<" - + "\n\017release_channel\030\003 \001(\0132#.google.contain" - + "er.v1.ReleaseChannel\022\020\n\010resource\030\004 \001(\t\"\236" - + "\002\n\025SecurityBulletinEvent\022\036\n\026resource_typ" - + "e_affected\030\001 \001(\t\022\023\n\013bulletin_id\030\002 \001(\t\022\017\n" - + "\007cve_ids\030\003 \003(\t\022\020\n\010severity\030\004 \001(\t\022\024\n\014bull" - + "etin_uri\030\005 \001(\t\022\031\n\021brief_description\030\006 \001(" - + "\t\022!\n\031affected_supported_minors\030\007 \003(\t\022\030\n\020" - + "patched_versions\030\010 \003(\t\022 \n\030suggested_upgr" - + "ade_target\030\t \001(\t\022\035\n\025manual_steps_require" - + "d\030\n \001(\010\"g\n\tAutopilot\022\017\n\007enabled\030\001 \001(\010\022I\n" - + "\026workload_policy_config\030\002 \001(\0132).google.c" - + "ontainer.v1.WorkloadPolicyConfig\"H\n\024Work" - + "loadPolicyConfig\022\034\n\017allow_net_admin\030\001 \001(" - + "\010H\000\210\001\001B\022\n\020_allow_net_admin\"V\n\rLoggingCon" - + "fig\022E\n\020component_config\030\001 \001(\0132+.google.c" - + "ontainer.v1.LoggingComponentConfig\"\357\001\n\026L" - + "oggingComponentConfig\022P\n\021enable_componen" - + "ts\030\001 \003(\01625.google.container.v1.LoggingCo" - + "mponentConfig.Component\"\202\001\n\tComponent\022\031\n" - + "\025COMPONENT_UNSPECIFIED\020\000\022\025\n\021SYSTEM_COMPO" - + "NENTS\020\001\022\r\n\tWORKLOADS\020\002\022\r\n\tAPISERVER\020\003\022\r\n" - + "\tSCHEDULER\020\004\022\026\n\022CONTROLLER_MANAGER\020\005\"\227\002\n" - + "\020MonitoringConfig\022H\n\020component_config\030\001 " - + "\001(\0132..google.container.v1.MonitoringComp" - + "onentConfig\022O\n\031managed_prometheus_config" - + "\030\002 \001(\0132,.google.container.v1.ManagedProm" - + "etheusConfig\022h\n&advanced_datapath_observ" - + "ability_config\030\003 \001(\01328.google.container." - + "v1.AdvancedDatapathObservabilityConfig\"\236" - + "\002\n#AdvancedDatapathObservabilityConfig\022\026" - + "\n\016enable_metrics\030\001 \001(\010\022V\n\nrelay_mode\030\002 \001" - + "(\0162B.google.container.v1.AdvancedDatapat" - + "hObservabilityConfig.RelayMode\022\031\n\014enable" - + "_relay\030\003 \001(\010H\000\210\001\001\"[\n\tRelayMode\022\032\n\026RELAY_" - + "MODE_UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\023\n\017INTE" - + "RNAL_VPC_LB\020\003\022\017\n\013EXTERNAL_LB\020\004B\017\n\r_enabl" - + "e_relay\"Z\n\025NodePoolLoggingConfig\022A\n\016vari" - + "ant_config\030\001 \001(\0132).google.container.v1.L" - + "oggingVariantConfig\"\237\001\n\024LoggingVariantCo" - + "nfig\022B\n\007variant\030\001 \001(\01621.google.container" - + ".v1.LoggingVariantConfig.Variant\"C\n\007Vari" - + "ant\022\027\n\023VARIANT_UNSPECIFIED\020\000\022\013\n\007DEFAULT\020" - + "\001\022\022\n\016MAX_THROUGHPUT\020\002\"\265\002\n\031MonitoringComp" - + "onentConfig\022S\n\021enable_components\030\001 \003(\01628" - + ".google.container.v1.MonitoringComponent" - + "Config.Component\"\302\001\n\tComponent\022\031\n\025COMPON" - + "ENT_UNSPECIFIED\020\000\022\025\n\021SYSTEM_COMPONENTS\020\001" - + "\022\r\n\tAPISERVER\020\003\022\r\n\tSCHEDULER\020\004\022\026\n\022CONTRO" - + "LLER_MANAGER\020\005\022\013\n\007STORAGE\020\007\022\007\n\003HPA\020\010\022\007\n\003" - + "POD\020\t\022\r\n\tDAEMONSET\020\n\022\016\n\nDEPLOYMENT\020\013\022\017\n\013" - + "STATEFULSET\020\014\"*\n\027ManagedPrometheusConfig" - + "\022\017\n\007enabled\030\001 \001(\010\"D\n\005Fleet\022\017\n\007project\030\001 " - + "\001(\t\022\022\n\nmembership\030\002 \001(\t\022\026\n\016pre_registere" - + "d\030\003 \001(\010\"2\n\027LocalNvmeSsdBlockConfig\022\027\n\017lo" - + "cal_ssd_count\030\001 \001(\005\"9\n\036EphemeralStorageL" - + "ocalSsdConfig\022\027\n\017local_ssd_count\030\001 \001(\005\"\204" - + "\001\n\023ResourceManagerTags\022@\n\004tags\030\001 \003(\01322.g" - + "oogle.container.v1.ResourceManagerTags.T" - + "agsEntry\032+\n\tTagsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - + "lue\030\002 \001(\t:\0028\001\"\254\001\n\020EnterpriseConfig\022M\n\014cl" - + "uster_tier\030\001 \001(\01621.google.container.v1.E" - + "nterpriseConfig.ClusterTierB\004\342A\001\003\"I\n\013Clu" - + "sterTier\022\034\n\030CLUSTER_TIER_UNSPECIFIED\020\000\022\014" - + "\n\010STANDARD\020\001\022\016\n\nENTERPRISE\020\002*\306\001\n\027Private" - + "IPv6GoogleAccess\022*\n&PRIVATE_IPV6_GOOGLE_" - + "ACCESS_UNSPECIFIED\020\000\022\'\n#PRIVATE_IPV6_GOO" - + "GLE_ACCESS_DISABLED\020\001\022(\n$PRIVATE_IPV6_GO" - + "OGLE_ACCESS_TO_GOOGLE\020\002\022,\n(PRIVATE_IPV6_" - + "GOOGLE_ACCESS_BIDIRECTIONAL\020\003*W\n\023Upgrade" - + "ResourceType\022%\n!UPGRADE_RESOURCE_TYPE_UN" - + "SPECIFIED\020\000\022\n\n\006MASTER\020\001\022\r\n\tNODE_POOL\020\002*a" - + "\n\020DatapathProvider\022!\n\035DATAPATH_PROVIDER_" - + "UNSPECIFIED\020\000\022\023\n\017LEGACY_DATAPATH\020\001\022\025\n\021AD" - + "VANCED_DATAPATH\020\002*^\n\026NodePoolUpdateStrat" - + "egy\022)\n%NODE_POOL_UPDATE_STRATEGY_UNSPECI" - + "FIED\020\000\022\016\n\nBLUE_GREEN\020\002\022\t\n\005SURGE\020\003*@\n\tSta" - + "ckType\022\032\n\026STACK_TYPE_UNSPECIFIED\020\000\022\010\n\004IP" - + "V4\020\001\022\r\n\tIPV4_IPV6\020\002*N\n\016IPv6AccessType\022 \n" - + "\034IPV6_ACCESS_TYPE_UNSPECIFIED\020\000\022\014\n\010INTER" - + "NAL\020\001\022\014\n\010EXTERNAL\020\002*\237\001\n\031InTransitEncrypt" - + "ionConfig\022,\n(IN_TRANSIT_ENCRYPTION_CONFI" - + "G_UNSPECIFIED\020\000\022\"\n\036IN_TRANSIT_ENCRYPTION" - + "_DISABLED\020\001\0220\n,IN_TRANSIT_ENCRYPTION_INT" - + "ER_NODE_TRANSPARENT\020\0022\250I\n\016ClusterManager" - + "\022\350\001\n\014ListClusters\022(.google.container.v1." - + "ListClustersRequest\032).google.container.v" - + "1.ListClustersResponse\"\202\001\332A\017project_id,z" - + "one\332A\006parent\202\323\344\223\002a\022,/v1/{parent=projects" - + "/*/locations/*}/clustersZ1\022//v1/projects" - + "/{project_id}/zones/{zone}/clusters\022\355\001\n\n" - + "GetCluster\022&.google.container.v1.GetClus" - + "terRequest\032\034.google.container.v1.Cluster" - + "\"\230\001\332A\032project_id,zone,cluster_id\332A\004name\202" - + "\323\344\223\002n\022,/v1/{name=projects/*/locations/*/" - + "clusters/*}Z>\022*/v1/{name=projects/*/locations/*/clus" - + "ters/*}:setResourceLabels:\001*ZP\"K/v1/proj" - + "ects/{project_id}/zones/{zone}/clusters/" - + "{cluster_id}/resourceLabels:\001*\022\245\002\n\rSetLe" - + "gacyAbac\022).google.container.v1.SetLegacy" - + "AbacRequest\032\036.google.container.v1.Operat" - + "ion\"\310\001\332A\"project_id,zone,cluster_id,enab" - + "led\332A\014name,enabled\202\323\344\223\002\215\001\":/v1/{name=pro" - + "jects/*/locations/*/clusters/*}:setLegac" - + "yAbac:\001*ZL\"G/v1/projects/{project_id}/zo" - + "nes/{zone}/clusters/{cluster_id}/legacyA" - + "bac:\001*\022\240\002\n\017StartIPRotation\022+.google.cont" - + "ainer.v1.StartIPRotationRequest\032\036.google" - + ".container.v1.Operation\"\277\001\332A\032project_id," - + "zone,cluster_id\332A\004name\202\323\344\223\002\224\001\" - * 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.v1.ClusterUpdate} - */ -public final class ClusterUpdate extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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.emptyList(); - desiredLoggingService_ = ""; - desiredDatapathProvider_ = 0; - desiredPrivateIpv6GoogleAccess_ = 0; - desiredMasterVersion_ = ""; - etag_ = ""; - desiredStackType_ = 0; - desiredInTransitEncryptionConfig_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ClusterUpdate(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ClusterUpdate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ClusterUpdate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ClusterUpdate.class, - com.google.container.v1.ClusterUpdate.Builder.class); - } - - private int bitField0_; - private int bitField1_; - public static final int DESIRED_NODE_VERSION_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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.v1.AddonsConfig desiredAddonsConfig_; - /** - * - * - *
-   * Configurations for the various addons available to run in the cluster.
-   * 
- * - * .google.container.v1.AddonsConfig desired_addons_config = 6; - * - * @return Whether the desiredAddonsConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredAddonsConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Configurations for the various addons available to run in the cluster.
-   * 
- * - * .google.container.v1.AddonsConfig desired_addons_config = 6; - * - * @return The desiredAddonsConfig. - */ - @java.lang.Override - public com.google.container.v1.AddonsConfig getDesiredAddonsConfig() { - return desiredAddonsConfig_ == null - ? com.google.container.v1.AddonsConfig.getDefaultInstance() - : desiredAddonsConfig_; - } - /** - * - * - *
-   * Configurations for the various addons available to run in the cluster.
-   * 
- * - * .google.container.v1.AddonsConfig desired_addons_config = 6; - */ - @java.lang.Override - public com.google.container.v1.AddonsConfigOrBuilder getDesiredAddonsConfigOrBuilder() { - return desiredAddonsConfig_ == null - ? com.google.container.v1.AddonsConfig.getDefaultInstance() - : desiredAddonsConfig_; - } - - public static final int DESIRED_NODE_POOL_ID_FIELD_NUMBER = 7; - - @SuppressWarnings("serial") - private volatile java.lang.Object desiredNodePoolId_ = ""; - /** - * - * - *
-   * The node pool to be upgraded. This field is mandatory if
-   * "desired_node_version", "desired_image_family" or
-   * "desired_node_pool_autoscaling" is specified and there is more than one
-   * node pool on the cluster.
-   * 
- * - * string desired_node_pool_id = 7; - * - * @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" or
-   * "desired_node_pool_autoscaling" 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; - - @SuppressWarnings("serial") - 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_DATABASE_ENCRYPTION_FIELD_NUMBER = 46; - private com.google.container.v1.DatabaseEncryption desiredDatabaseEncryption_; - /** - * - * - *
-   * Configuration of etcd encryption.
-   * 
- * - * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - * - * @return Whether the desiredDatabaseEncryption field is set. - */ - @java.lang.Override - public boolean hasDesiredDatabaseEncryption() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * Configuration of etcd encryption.
-   * 
- * - * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - * - * @return The desiredDatabaseEncryption. - */ - @java.lang.Override - public com.google.container.v1.DatabaseEncryption getDesiredDatabaseEncryption() { - return desiredDatabaseEncryption_ == null - ? com.google.container.v1.DatabaseEncryption.getDefaultInstance() - : desiredDatabaseEncryption_; - } - /** - * - * - *
-   * Configuration of etcd encryption.
-   * 
- * - * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - */ - @java.lang.Override - public com.google.container.v1.DatabaseEncryptionOrBuilder - getDesiredDatabaseEncryptionOrBuilder() { - return desiredDatabaseEncryption_ == null - ? com.google.container.v1.DatabaseEncryption.getDefaultInstance() - : desiredDatabaseEncryption_; - } - - public static final int DESIRED_WORKLOAD_IDENTITY_CONFIG_FIELD_NUMBER = 47; - private com.google.container.v1.WorkloadIdentityConfig desiredWorkloadIdentityConfig_; - /** - * - * - *
-   * Configuration for Workload Identity.
-   * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * - * @return Whether the desiredWorkloadIdentityConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredWorkloadIdentityConfig() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-   * Configuration for Workload Identity.
-   * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * - * @return The desiredWorkloadIdentityConfig. - */ - @java.lang.Override - public com.google.container.v1.WorkloadIdentityConfig getDesiredWorkloadIdentityConfig() { - return desiredWorkloadIdentityConfig_ == null - ? com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance() - : desiredWorkloadIdentityConfig_; - } - /** - * - * - *
-   * Configuration for Workload Identity.
-   * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - */ - @java.lang.Override - public com.google.container.v1.WorkloadIdentityConfigOrBuilder - getDesiredWorkloadIdentityConfigOrBuilder() { - return desiredWorkloadIdentityConfig_ == null - ? com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance() - : desiredWorkloadIdentityConfig_; - } - - public static final int DESIRED_MESH_CERTIFICATES_FIELD_NUMBER = 67; - private com.google.container.v1.MeshCertificates desiredMeshCertificates_; - /** - * - * - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; - * - * @return Whether the desiredMeshCertificates field is set. - */ - @java.lang.Override - public boolean hasDesiredMeshCertificates() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; - * - * @return The desiredMeshCertificates. - */ - @java.lang.Override - public com.google.container.v1.MeshCertificates getDesiredMeshCertificates() { - return desiredMeshCertificates_ == null - ? com.google.container.v1.MeshCertificates.getDefaultInstance() - : desiredMeshCertificates_; - } - /** - * - * - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; - */ - @java.lang.Override - public com.google.container.v1.MeshCertificatesOrBuilder getDesiredMeshCertificatesOrBuilder() { - return desiredMeshCertificates_ == null - ? com.google.container.v1.MeshCertificates.getDefaultInstance() - : desiredMeshCertificates_; - } - - public static final int DESIRED_SHIELDED_NODES_FIELD_NUMBER = 48; - private com.google.container.v1.ShieldedNodes desiredShieldedNodes_; - /** - * - * - *
-   * Configuration for Shielded Nodes.
-   * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - * - * @return Whether the desiredShieldedNodes field is set. - */ - @java.lang.Override - public boolean hasDesiredShieldedNodes() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-   * Configuration for Shielded Nodes.
-   * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - * - * @return The desiredShieldedNodes. - */ - @java.lang.Override - public com.google.container.v1.ShieldedNodes getDesiredShieldedNodes() { - return desiredShieldedNodes_ == null - ? com.google.container.v1.ShieldedNodes.getDefaultInstance() - : desiredShieldedNodes_; - } - /** - * - * - *
-   * Configuration for Shielded Nodes.
-   * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - */ - @java.lang.Override - public com.google.container.v1.ShieldedNodesOrBuilder getDesiredShieldedNodesOrBuilder() { - return desiredShieldedNodes_ == null - ? com.google.container.v1.ShieldedNodes.getDefaultInstance() - : desiredShieldedNodes_; - } - - public static final int DESIRED_COST_MANAGEMENT_CONFIG_FIELD_NUMBER = 49; - private com.google.container.v1.CostManagementConfig desiredCostManagementConfig_; - /** - * - * - *
-   * The desired configuration for the fine-grained cost management feature.
-   * 
- * - * .google.container.v1.CostManagementConfig desired_cost_management_config = 49; - * - * @return Whether the desiredCostManagementConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredCostManagementConfig() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * - * - *
-   * The desired configuration for the fine-grained cost management feature.
-   * 
- * - * .google.container.v1.CostManagementConfig desired_cost_management_config = 49; - * - * @return The desiredCostManagementConfig. - */ - @java.lang.Override - public com.google.container.v1.CostManagementConfig getDesiredCostManagementConfig() { - return desiredCostManagementConfig_ == null - ? com.google.container.v1.CostManagementConfig.getDefaultInstance() - : desiredCostManagementConfig_; - } - /** - * - * - *
-   * The desired configuration for the fine-grained cost management feature.
-   * 
- * - * .google.container.v1.CostManagementConfig desired_cost_management_config = 49; - */ - @java.lang.Override - public com.google.container.v1.CostManagementConfigOrBuilder - getDesiredCostManagementConfigOrBuilder() { - return desiredCostManagementConfig_ == null - ? com.google.container.v1.CostManagementConfig.getDefaultInstance() - : desiredCostManagementConfig_; - } - - public static final int DESIRED_DNS_CONFIG_FIELD_NUMBER = 53; - private com.google.container.v1.DNSConfig desiredDnsConfig_; - /** - * - * - *
-   * DNSConfig contains clusterDNS config for this cluster.
-   * 
- * - * .google.container.v1.DNSConfig desired_dns_config = 53; - * - * @return Whether the desiredDnsConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredDnsConfig() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * - * - *
-   * DNSConfig contains clusterDNS config for this cluster.
-   * 
- * - * .google.container.v1.DNSConfig desired_dns_config = 53; - * - * @return The desiredDnsConfig. - */ - @java.lang.Override - public com.google.container.v1.DNSConfig getDesiredDnsConfig() { - return desiredDnsConfig_ == null - ? com.google.container.v1.DNSConfig.getDefaultInstance() - : desiredDnsConfig_; - } - /** - * - * - *
-   * DNSConfig contains clusterDNS config for this cluster.
-   * 
- * - * .google.container.v1.DNSConfig desired_dns_config = 53; - */ - @java.lang.Override - public com.google.container.v1.DNSConfigOrBuilder getDesiredDnsConfigOrBuilder() { - return desiredDnsConfig_ == null - ? com.google.container.v1.DNSConfig.getDefaultInstance() - : desiredDnsConfig_; - } - - public static final int DESIRED_NODE_POOL_AUTOSCALING_FIELD_NUMBER = 9; - private com.google.container.v1.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.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - * - * @return Whether the desiredNodePoolAutoscaling field is set. - */ - @java.lang.Override - public boolean hasDesiredNodePoolAutoscaling() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * - * - *
-   * Autoscaler configuration for the node pool specified in
-   * desired_node_pool_id. If there is only one pool in the
-   * cluster and desired_node_pool_id is not provided then
-   * the change applies to that single node pool.
-   * 
- * - * .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - * - * @return The desiredNodePoolAutoscaling. - */ - @java.lang.Override - public com.google.container.v1.NodePoolAutoscaling getDesiredNodePoolAutoscaling() { - return desiredNodePoolAutoscaling_ == null - ? com.google.container.v1.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.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - */ - @java.lang.Override - public com.google.container.v1.NodePoolAutoscalingOrBuilder - getDesiredNodePoolAutoscalingOrBuilder() { - return desiredNodePoolAutoscaling_ == null - ? com.google.container.v1.NodePoolAutoscaling.getDefaultInstance() - : desiredNodePoolAutoscaling_; - } - - public static final int DESIRED_LOCATIONS_FIELD_NUMBER = 10; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList desiredLocations_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * 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.v1.MasterAuthorizedNetworksConfig - desiredMasterAuthorizedNetworksConfig_; - /** - * - * - *
-   * The desired configuration options for master authorized networks feature.
-   * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - * - * - * @return Whether the desiredMasterAuthorizedNetworksConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredMasterAuthorizedNetworksConfig() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * - * - *
-   * The desired configuration options for master authorized networks feature.
-   * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - * - * - * @return The desiredMasterAuthorizedNetworksConfig. - */ - @java.lang.Override - public com.google.container.v1.MasterAuthorizedNetworksConfig - getDesiredMasterAuthorizedNetworksConfig() { - return desiredMasterAuthorizedNetworksConfig_ == null - ? com.google.container.v1.MasterAuthorizedNetworksConfig.getDefaultInstance() - : desiredMasterAuthorizedNetworksConfig_; - } - /** - * - * - *
-   * The desired configuration options for master authorized networks feature.
-   * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - * - */ - @java.lang.Override - public com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder - getDesiredMasterAuthorizedNetworksConfigOrBuilder() { - return desiredMasterAuthorizedNetworksConfig_ == null - ? com.google.container.v1.MasterAuthorizedNetworksConfig.getDefaultInstance() - : desiredMasterAuthorizedNetworksConfig_; - } - - public static final int DESIRED_CLUSTER_AUTOSCALING_FIELD_NUMBER = 15; - private com.google.container.v1.ClusterAutoscaling desiredClusterAutoscaling_; - /** - * - * - *
-   * Cluster-level autoscaling configuration.
-   * 
- * - * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - * - * @return Whether the desiredClusterAutoscaling field is set. - */ - @java.lang.Override - public boolean hasDesiredClusterAutoscaling() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * - * - *
-   * Cluster-level autoscaling configuration.
-   * 
- * - * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - * - * @return The desiredClusterAutoscaling. - */ - @java.lang.Override - public com.google.container.v1.ClusterAutoscaling getDesiredClusterAutoscaling() { - return desiredClusterAutoscaling_ == null - ? com.google.container.v1.ClusterAutoscaling.getDefaultInstance() - : desiredClusterAutoscaling_; - } - /** - * - * - *
-   * Cluster-level autoscaling configuration.
-   * 
- * - * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - */ - @java.lang.Override - public com.google.container.v1.ClusterAutoscalingOrBuilder - getDesiredClusterAutoscalingOrBuilder() { - return desiredClusterAutoscaling_ == null - ? com.google.container.v1.ClusterAutoscaling.getDefaultInstance() - : desiredClusterAutoscaling_; - } - - public static final int DESIRED_BINARY_AUTHORIZATION_FIELD_NUMBER = 16; - private com.google.container.v1.BinaryAuthorization desiredBinaryAuthorization_; - /** - * - * - *
-   * The desired configuration options for the Binary Authorization feature.
-   * 
- * - * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; - * - * @return Whether the desiredBinaryAuthorization field is set. - */ - @java.lang.Override - public boolean hasDesiredBinaryAuthorization() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - * - * - *
-   * The desired configuration options for the Binary Authorization feature.
-   * 
- * - * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; - * - * @return The desiredBinaryAuthorization. - */ - @java.lang.Override - public com.google.container.v1.BinaryAuthorization getDesiredBinaryAuthorization() { - return desiredBinaryAuthorization_ == null - ? com.google.container.v1.BinaryAuthorization.getDefaultInstance() - : desiredBinaryAuthorization_; - } - /** - * - * - *
-   * The desired configuration options for the Binary Authorization feature.
-   * 
- * - * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; - */ - @java.lang.Override - public com.google.container.v1.BinaryAuthorizationOrBuilder - getDesiredBinaryAuthorizationOrBuilder() { - return desiredBinaryAuthorization_ == null - ? com.google.container.v1.BinaryAuthorization.getDefaultInstance() - : desiredBinaryAuthorization_; - } - - public static final int DESIRED_LOGGING_SERVICE_FIELD_NUMBER = 19; - - @SuppressWarnings("serial") - 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.v1.ResourceUsageExportConfig desiredResourceUsageExportConfig_; - /** - * - * - *
-   * The desired configuration for exporting resource usage.
-   * 
- * - * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * - * - * @return Whether the desiredResourceUsageExportConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredResourceUsageExportConfig() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - * - * - *
-   * The desired configuration for exporting resource usage.
-   * 
- * - * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * - * - * @return The desiredResourceUsageExportConfig. - */ - @java.lang.Override - public com.google.container.v1.ResourceUsageExportConfig getDesiredResourceUsageExportConfig() { - return desiredResourceUsageExportConfig_ == null - ? com.google.container.v1.ResourceUsageExportConfig.getDefaultInstance() - : desiredResourceUsageExportConfig_; - } - /** - * - * - *
-   * The desired configuration for exporting resource usage.
-   * 
- * - * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * - */ - @java.lang.Override - public com.google.container.v1.ResourceUsageExportConfigOrBuilder - getDesiredResourceUsageExportConfigOrBuilder() { - return desiredResourceUsageExportConfig_ == null - ? com.google.container.v1.ResourceUsageExportConfig.getDefaultInstance() - : desiredResourceUsageExportConfig_; - } - - public static final int DESIRED_VERTICAL_POD_AUTOSCALING_FIELD_NUMBER = 22; - private com.google.container.v1.VerticalPodAutoscaling desiredVerticalPodAutoscaling_; - /** - * - * - *
-   * Cluster-level Vertical Pod Autoscaling configuration.
-   * 
- * - * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - * - * @return Whether the desiredVerticalPodAutoscaling field is set. - */ - @java.lang.Override - public boolean hasDesiredVerticalPodAutoscaling() { - return ((bitField0_ & 0x00001000) != 0); - } - /** - * - * - *
-   * Cluster-level Vertical Pod Autoscaling configuration.
-   * 
- * - * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - * - * @return The desiredVerticalPodAutoscaling. - */ - @java.lang.Override - public com.google.container.v1.VerticalPodAutoscaling getDesiredVerticalPodAutoscaling() { - return desiredVerticalPodAutoscaling_ == null - ? com.google.container.v1.VerticalPodAutoscaling.getDefaultInstance() - : desiredVerticalPodAutoscaling_; - } - /** - * - * - *
-   * Cluster-level Vertical Pod Autoscaling configuration.
-   * 
- * - * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - */ - @java.lang.Override - public com.google.container.v1.VerticalPodAutoscalingOrBuilder - getDesiredVerticalPodAutoscalingOrBuilder() { - return desiredVerticalPodAutoscaling_ == null - ? com.google.container.v1.VerticalPodAutoscaling.getDefaultInstance() - : desiredVerticalPodAutoscaling_; - } - - public static final int DESIRED_PRIVATE_CLUSTER_CONFIG_FIELD_NUMBER = 25; - private com.google.container.v1.PrivateClusterConfig desiredPrivateClusterConfig_; - /** - * - * - *
-   * The desired private cluster configuration.
-   * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - * - * @return Whether the desiredPrivateClusterConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredPrivateClusterConfig() { - return ((bitField0_ & 0x00002000) != 0); - } - /** - * - * - *
-   * The desired private cluster configuration.
-   * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - * - * @return The desiredPrivateClusterConfig. - */ - @java.lang.Override - public com.google.container.v1.PrivateClusterConfig getDesiredPrivateClusterConfig() { - return desiredPrivateClusterConfig_ == null - ? com.google.container.v1.PrivateClusterConfig.getDefaultInstance() - : desiredPrivateClusterConfig_; - } - /** - * - * - *
-   * The desired private cluster configuration.
-   * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - */ - @java.lang.Override - public com.google.container.v1.PrivateClusterConfigOrBuilder - getDesiredPrivateClusterConfigOrBuilder() { - return desiredPrivateClusterConfig_ == null - ? com.google.container.v1.PrivateClusterConfig.getDefaultInstance() - : desiredPrivateClusterConfig_; - } - - public static final int DESIRED_INTRA_NODE_VISIBILITY_CONFIG_FIELD_NUMBER = 26; - private com.google.container.v1.IntraNodeVisibilityConfig desiredIntraNodeVisibilityConfig_; - /** - * - * - *
-   * The desired config of Intra-node visibility.
-   * 
- * - * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * - * - * @return Whether the desiredIntraNodeVisibilityConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredIntraNodeVisibilityConfig() { - return ((bitField0_ & 0x00004000) != 0); - } - /** - * - * - *
-   * The desired config of Intra-node visibility.
-   * 
- * - * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * - * - * @return The desiredIntraNodeVisibilityConfig. - */ - @java.lang.Override - public com.google.container.v1.IntraNodeVisibilityConfig getDesiredIntraNodeVisibilityConfig() { - return desiredIntraNodeVisibilityConfig_ == null - ? com.google.container.v1.IntraNodeVisibilityConfig.getDefaultInstance() - : desiredIntraNodeVisibilityConfig_; - } - /** - * - * - *
-   * The desired config of Intra-node visibility.
-   * 
- * - * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * - */ - @java.lang.Override - public com.google.container.v1.IntraNodeVisibilityConfigOrBuilder - getDesiredIntraNodeVisibilityConfigOrBuilder() { - return desiredIntraNodeVisibilityConfig_ == null - ? com.google.container.v1.IntraNodeVisibilityConfig.getDefaultInstance() - : desiredIntraNodeVisibilityConfig_; - } - - public static final int DESIRED_DEFAULT_SNAT_STATUS_FIELD_NUMBER = 28; - private com.google.container.v1.DefaultSnatStatus desiredDefaultSnatStatus_; - /** - * - * - *
-   * The desired status of whether to disable default sNAT for this cluster.
-   * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - * - * @return Whether the desiredDefaultSnatStatus field is set. - */ - @java.lang.Override - public boolean hasDesiredDefaultSnatStatus() { - return ((bitField0_ & 0x00008000) != 0); - } - /** - * - * - *
-   * The desired status of whether to disable default sNAT for this cluster.
-   * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - * - * @return The desiredDefaultSnatStatus. - */ - @java.lang.Override - public com.google.container.v1.DefaultSnatStatus getDesiredDefaultSnatStatus() { - return desiredDefaultSnatStatus_ == null - ? com.google.container.v1.DefaultSnatStatus.getDefaultInstance() - : desiredDefaultSnatStatus_; - } - /** - * - * - *
-   * The desired status of whether to disable default sNAT for this cluster.
-   * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - */ - @java.lang.Override - public com.google.container.v1.DefaultSnatStatusOrBuilder getDesiredDefaultSnatStatusOrBuilder() { - return desiredDefaultSnatStatus_ == null - ? com.google.container.v1.DefaultSnatStatus.getDefaultInstance() - : desiredDefaultSnatStatus_; - } - - public static final int DESIRED_RELEASE_CHANNEL_FIELD_NUMBER = 31; - private com.google.container.v1.ReleaseChannel desiredReleaseChannel_; - /** - * - * - *
-   * The desired release channel configuration.
-   * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - * - * @return Whether the desiredReleaseChannel field is set. - */ - @java.lang.Override - public boolean hasDesiredReleaseChannel() { - return ((bitField0_ & 0x00010000) != 0); - } - /** - * - * - *
-   * The desired release channel configuration.
-   * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - * - * @return The desiredReleaseChannel. - */ - @java.lang.Override - public com.google.container.v1.ReleaseChannel getDesiredReleaseChannel() { - return desiredReleaseChannel_ == null - ? com.google.container.v1.ReleaseChannel.getDefaultInstance() - : desiredReleaseChannel_; - } - /** - * - * - *
-   * The desired release channel configuration.
-   * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - */ - @java.lang.Override - public com.google.container.v1.ReleaseChannelOrBuilder getDesiredReleaseChannelOrBuilder() { - return desiredReleaseChannel_ == null - ? com.google.container.v1.ReleaseChannel.getDefaultInstance() - : desiredReleaseChannel_; - } - - public static final int DESIRED_L4ILB_SUBSETTING_CONFIG_FIELD_NUMBER = 39; - private com.google.container.v1.ILBSubsettingConfig desiredL4IlbSubsettingConfig_; - /** - * - * - *
-   * The desired L4 Internal Load Balancer Subsetting configuration.
-   * 
- * - * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - * - * @return Whether the desiredL4ilbSubsettingConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredL4IlbSubsettingConfig() { - return ((bitField0_ & 0x00020000) != 0); - } - /** - * - * - *
-   * The desired L4 Internal Load Balancer Subsetting configuration.
-   * 
- * - * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - * - * @return The desiredL4ilbSubsettingConfig. - */ - @java.lang.Override - public com.google.container.v1.ILBSubsettingConfig getDesiredL4IlbSubsettingConfig() { - return desiredL4IlbSubsettingConfig_ == null - ? com.google.container.v1.ILBSubsettingConfig.getDefaultInstance() - : desiredL4IlbSubsettingConfig_; - } - /** - * - * - *
-   * The desired L4 Internal Load Balancer Subsetting configuration.
-   * 
- * - * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - */ - @java.lang.Override - public com.google.container.v1.ILBSubsettingConfigOrBuilder - getDesiredL4IlbSubsettingConfigOrBuilder() { - return desiredL4IlbSubsettingConfig_ == null - ? com.google.container.v1.ILBSubsettingConfig.getDefaultInstance() - : desiredL4IlbSubsettingConfig_; - } - - public static final int DESIRED_DATAPATH_PROVIDER_FIELD_NUMBER = 50; - private int desiredDatapathProvider_ = 0; - /** - * - * - *
-   * The desired datapath provider for the cluster.
-   * 
- * - * .google.container.v1.DatapathProvider desired_datapath_provider = 50; - * - * @return The enum numeric value on the wire for desiredDatapathProvider. - */ - @java.lang.Override - public int getDesiredDatapathProviderValue() { - return desiredDatapathProvider_; - } - /** - * - * - *
-   * The desired datapath provider for the cluster.
-   * 
- * - * .google.container.v1.DatapathProvider desired_datapath_provider = 50; - * - * @return The desiredDatapathProvider. - */ - @java.lang.Override - public com.google.container.v1.DatapathProvider getDesiredDatapathProvider() { - com.google.container.v1.DatapathProvider result = - com.google.container.v1.DatapathProvider.forNumber(desiredDatapathProvider_); - return result == null ? com.google.container.v1.DatapathProvider.UNRECOGNIZED : result; - } - - public static final int DESIRED_PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER = 51; - private int desiredPrivateIpv6GoogleAccess_ = 0; - /** - * - * - *
-   * The desired state of IPv6 connectivity to Google Services.
-   * 
- * - * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; - * - * - * @return The enum numeric value on the wire for desiredPrivateIpv6GoogleAccess. - */ - @java.lang.Override - public int getDesiredPrivateIpv6GoogleAccessValue() { - return desiredPrivateIpv6GoogleAccess_; - } - /** - * - * - *
-   * The desired state of IPv6 connectivity to Google Services.
-   * 
- * - * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; - * - * - * @return The desiredPrivateIpv6GoogleAccess. - */ - @java.lang.Override - public com.google.container.v1.PrivateIPv6GoogleAccess getDesiredPrivateIpv6GoogleAccess() { - com.google.container.v1.PrivateIPv6GoogleAccess result = - com.google.container.v1.PrivateIPv6GoogleAccess.forNumber(desiredPrivateIpv6GoogleAccess_); - return result == null ? com.google.container.v1.PrivateIPv6GoogleAccess.UNRECOGNIZED : result; - } - - public static final int DESIRED_NOTIFICATION_CONFIG_FIELD_NUMBER = 55; - private com.google.container.v1.NotificationConfig desiredNotificationConfig_; - /** - * - * - *
-   * The desired notification configuration.
-   * 
- * - * .google.container.v1.NotificationConfig desired_notification_config = 55; - * - * @return Whether the desiredNotificationConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredNotificationConfig() { - return ((bitField0_ & 0x00040000) != 0); - } - /** - * - * - *
-   * The desired notification configuration.
-   * 
- * - * .google.container.v1.NotificationConfig desired_notification_config = 55; - * - * @return The desiredNotificationConfig. - */ - @java.lang.Override - public com.google.container.v1.NotificationConfig getDesiredNotificationConfig() { - return desiredNotificationConfig_ == null - ? com.google.container.v1.NotificationConfig.getDefaultInstance() - : desiredNotificationConfig_; - } - /** - * - * - *
-   * The desired notification configuration.
-   * 
- * - * .google.container.v1.NotificationConfig desired_notification_config = 55; - */ - @java.lang.Override - public com.google.container.v1.NotificationConfigOrBuilder - getDesiredNotificationConfigOrBuilder() { - return desiredNotificationConfig_ == null - ? com.google.container.v1.NotificationConfig.getDefaultInstance() - : desiredNotificationConfig_; - } - - public static final int DESIRED_AUTHENTICATOR_GROUPS_CONFIG_FIELD_NUMBER = 63; - private com.google.container.v1.AuthenticatorGroupsConfig desiredAuthenticatorGroupsConfig_; - /** - * - * - *
-   * The desired authenticator groups config for the cluster.
-   * 
- * - * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - * - * - * @return Whether the desiredAuthenticatorGroupsConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredAuthenticatorGroupsConfig() { - return ((bitField0_ & 0x00080000) != 0); - } - /** - * - * - *
-   * The desired authenticator groups config for the cluster.
-   * 
- * - * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - * - * - * @return The desiredAuthenticatorGroupsConfig. - */ - @java.lang.Override - public com.google.container.v1.AuthenticatorGroupsConfig getDesiredAuthenticatorGroupsConfig() { - return desiredAuthenticatorGroupsConfig_ == null - ? com.google.container.v1.AuthenticatorGroupsConfig.getDefaultInstance() - : desiredAuthenticatorGroupsConfig_; - } - /** - * - * - *
-   * The desired authenticator groups config for the cluster.
-   * 
- * - * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - * - */ - @java.lang.Override - public com.google.container.v1.AuthenticatorGroupsConfigOrBuilder - getDesiredAuthenticatorGroupsConfigOrBuilder() { - return desiredAuthenticatorGroupsConfig_ == null - ? com.google.container.v1.AuthenticatorGroupsConfig.getDefaultInstance() - : desiredAuthenticatorGroupsConfig_; - } - - public static final int DESIRED_LOGGING_CONFIG_FIELD_NUMBER = 64; - private com.google.container.v1.LoggingConfig desiredLoggingConfig_; - /** - * - * - *
-   * The desired logging configuration.
-   * 
- * - * .google.container.v1.LoggingConfig desired_logging_config = 64; - * - * @return Whether the desiredLoggingConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredLoggingConfig() { - return ((bitField0_ & 0x00100000) != 0); - } - /** - * - * - *
-   * The desired logging configuration.
-   * 
- * - * .google.container.v1.LoggingConfig desired_logging_config = 64; - * - * @return The desiredLoggingConfig. - */ - @java.lang.Override - public com.google.container.v1.LoggingConfig getDesiredLoggingConfig() { - return desiredLoggingConfig_ == null - ? com.google.container.v1.LoggingConfig.getDefaultInstance() - : desiredLoggingConfig_; - } - /** - * - * - *
-   * The desired logging configuration.
-   * 
- * - * .google.container.v1.LoggingConfig desired_logging_config = 64; - */ - @java.lang.Override - public com.google.container.v1.LoggingConfigOrBuilder getDesiredLoggingConfigOrBuilder() { - return desiredLoggingConfig_ == null - ? com.google.container.v1.LoggingConfig.getDefaultInstance() - : desiredLoggingConfig_; - } - - public static final int DESIRED_MONITORING_CONFIG_FIELD_NUMBER = 65; - private com.google.container.v1.MonitoringConfig desiredMonitoringConfig_; - /** - * - * - *
-   * The desired monitoring configuration.
-   * 
- * - * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; - * - * @return Whether the desiredMonitoringConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredMonitoringConfig() { - return ((bitField0_ & 0x00200000) != 0); - } - /** - * - * - *
-   * The desired monitoring configuration.
-   * 
- * - * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; - * - * @return The desiredMonitoringConfig. - */ - @java.lang.Override - public com.google.container.v1.MonitoringConfig getDesiredMonitoringConfig() { - return desiredMonitoringConfig_ == null - ? com.google.container.v1.MonitoringConfig.getDefaultInstance() - : desiredMonitoringConfig_; - } - /** - * - * - *
-   * The desired monitoring configuration.
-   * 
- * - * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; - */ - @java.lang.Override - public com.google.container.v1.MonitoringConfigOrBuilder getDesiredMonitoringConfigOrBuilder() { - return desiredMonitoringConfig_ == null - ? com.google.container.v1.MonitoringConfig.getDefaultInstance() - : desiredMonitoringConfig_; - } - - public static final int DESIRED_IDENTITY_SERVICE_CONFIG_FIELD_NUMBER = 66; - private com.google.container.v1.IdentityServiceConfig desiredIdentityServiceConfig_; - /** - * - * - *
-   * The desired Identity Service component configuration.
-   * 
- * - * .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; - * - * @return Whether the desiredIdentityServiceConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredIdentityServiceConfig() { - return ((bitField0_ & 0x00400000) != 0); - } - /** - * - * - *
-   * The desired Identity Service component configuration.
-   * 
- * - * .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; - * - * @return The desiredIdentityServiceConfig. - */ - @java.lang.Override - public com.google.container.v1.IdentityServiceConfig getDesiredIdentityServiceConfig() { - return desiredIdentityServiceConfig_ == null - ? com.google.container.v1.IdentityServiceConfig.getDefaultInstance() - : desiredIdentityServiceConfig_; - } - /** - * - * - *
-   * The desired Identity Service component configuration.
-   * 
- * - * .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; - */ - @java.lang.Override - public com.google.container.v1.IdentityServiceConfigOrBuilder - getDesiredIdentityServiceConfigOrBuilder() { - return desiredIdentityServiceConfig_ == null - ? com.google.container.v1.IdentityServiceConfig.getDefaultInstance() - : desiredIdentityServiceConfig_; - } - - public static final int DESIRED_SERVICE_EXTERNAL_IPS_CONFIG_FIELD_NUMBER = 60; - private com.google.container.v1.ServiceExternalIPsConfig desiredServiceExternalIpsConfig_; - /** - * - * - *
-   * ServiceExternalIPsConfig specifies the config for the use of Services with
-   * ExternalIPs field.
-   * 
- * - * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - * - * - * @return Whether the desiredServiceExternalIpsConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredServiceExternalIpsConfig() { - return ((bitField0_ & 0x00800000) != 0); - } - /** - * - * - *
-   * ServiceExternalIPsConfig specifies the config for the use of Services with
-   * ExternalIPs field.
-   * 
- * - * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - * - * - * @return The desiredServiceExternalIpsConfig. - */ - @java.lang.Override - public com.google.container.v1.ServiceExternalIPsConfig getDesiredServiceExternalIpsConfig() { - return desiredServiceExternalIpsConfig_ == null - ? com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance() - : desiredServiceExternalIpsConfig_; - } - /** - * - * - *
-   * ServiceExternalIPsConfig specifies the config for the use of Services with
-   * ExternalIPs field.
-   * 
- * - * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - * - */ - @java.lang.Override - public com.google.container.v1.ServiceExternalIPsConfigOrBuilder - getDesiredServiceExternalIpsConfigOrBuilder() { - return desiredServiceExternalIpsConfig_ == null - ? com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance() - : desiredServiceExternalIpsConfig_; - } - - public static final int DESIRED_ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER = 71; - private boolean desiredEnablePrivateEndpoint_ = false; - /** - * - * - *
-   * Enable/Disable private endpoint for the cluster's master.
-   * 
- * - * optional bool desired_enable_private_endpoint = 71; - * - * @return Whether the desiredEnablePrivateEndpoint field is set. - */ - @java.lang.Override - public boolean hasDesiredEnablePrivateEndpoint() { - return ((bitField0_ & 0x01000000) != 0); - } - /** - * - * - *
-   * Enable/Disable private endpoint for the cluster's master.
-   * 
- * - * optional bool desired_enable_private_endpoint = 71; - * - * @return The desiredEnablePrivateEndpoint. - */ - @java.lang.Override - public boolean getDesiredEnablePrivateEndpoint() { - return desiredEnablePrivateEndpoint_; - } - - public static final int DESIRED_MASTER_VERSION_FIELD_NUMBER = 100; - - @SuppressWarnings("serial") - private volatile java.lang.Object desiredMasterVersion_ = ""; - /** - * - * - *
-   * The Kubernetes version to change the master to.
-   *
-   * Users may specify either explicit versions offered by
-   * Kubernetes Engine or version aliases, which have the following behavior:
-   *
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the default Kubernetes version
-   * 
- * - * string desired_master_version = 100; - * - * @return The desiredMasterVersion. - */ - @java.lang.Override - public java.lang.String getDesiredMasterVersion() { - java.lang.Object ref = desiredMasterVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - desiredMasterVersion_ = s; - return s; - } - } - /** - * - * - *
-   * The Kubernetes version to change the master to.
-   *
-   * Users may specify either explicit versions offered by
-   * Kubernetes Engine or version aliases, which have the following behavior:
-   *
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the default Kubernetes version
-   * 
- * - * string desired_master_version = 100; - * - * @return The 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_GCFS_CONFIG_FIELD_NUMBER = 109; - private com.google.container.v1.GcfsConfig desiredGcfsConfig_; - /** - * - * - *
-   * The desired GCFS config for the cluster
-   * 
- * - * .google.container.v1.GcfsConfig desired_gcfs_config = 109; - * - * @return Whether the desiredGcfsConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredGcfsConfig() { - return ((bitField0_ & 0x02000000) != 0); - } - /** - * - * - *
-   * The desired GCFS config for the cluster
-   * 
- * - * .google.container.v1.GcfsConfig desired_gcfs_config = 109; - * - * @return The desiredGcfsConfig. - */ - @java.lang.Override - public com.google.container.v1.GcfsConfig getDesiredGcfsConfig() { - return desiredGcfsConfig_ == null - ? com.google.container.v1.GcfsConfig.getDefaultInstance() - : desiredGcfsConfig_; - } - /** - * - * - *
-   * The desired GCFS config for the cluster
-   * 
- * - * .google.container.v1.GcfsConfig desired_gcfs_config = 109; - */ - @java.lang.Override - public com.google.container.v1.GcfsConfigOrBuilder getDesiredGcfsConfigOrBuilder() { - return desiredGcfsConfig_ == null - ? com.google.container.v1.GcfsConfig.getDefaultInstance() - : desiredGcfsConfig_; - } - - public static final int DESIRED_NODE_POOL_AUTO_CONFIG_NETWORK_TAGS_FIELD_NUMBER = 110; - private com.google.container.v1.NetworkTags desiredNodePoolAutoConfigNetworkTags_; - /** - * - * - *
-   * The desired network tags that apply to all auto-provisioned node pools
-   * in autopilot clusters and node auto-provisioning enabled clusters.
-   * 
- * - * .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; - * - * @return Whether the desiredNodePoolAutoConfigNetworkTags field is set. - */ - @java.lang.Override - public boolean hasDesiredNodePoolAutoConfigNetworkTags() { - return ((bitField0_ & 0x04000000) != 0); - } - /** - * - * - *
-   * The desired network tags that apply to all auto-provisioned node pools
-   * in autopilot clusters and node auto-provisioning enabled clusters.
-   * 
- * - * .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; - * - * @return The desiredNodePoolAutoConfigNetworkTags. - */ - @java.lang.Override - public com.google.container.v1.NetworkTags getDesiredNodePoolAutoConfigNetworkTags() { - return desiredNodePoolAutoConfigNetworkTags_ == null - ? com.google.container.v1.NetworkTags.getDefaultInstance() - : desiredNodePoolAutoConfigNetworkTags_; - } - /** - * - * - *
-   * The desired network tags that apply to all auto-provisioned node pools
-   * in autopilot clusters and node auto-provisioning enabled clusters.
-   * 
- * - * .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; - */ - @java.lang.Override - public com.google.container.v1.NetworkTagsOrBuilder - getDesiredNodePoolAutoConfigNetworkTagsOrBuilder() { - return desiredNodePoolAutoConfigNetworkTags_ == null - ? com.google.container.v1.NetworkTags.getDefaultInstance() - : desiredNodePoolAutoConfigNetworkTags_; - } - - public static final int DESIRED_GATEWAY_API_CONFIG_FIELD_NUMBER = 114; - private com.google.container.v1.GatewayAPIConfig desiredGatewayApiConfig_; - /** - * - * - *
-   * The desired config of Gateway API on this cluster.
-   * 
- * - * .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; - * - * @return Whether the desiredGatewayApiConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredGatewayApiConfig() { - return ((bitField0_ & 0x08000000) != 0); - } - /** - * - * - *
-   * The desired config of Gateway API on this cluster.
-   * 
- * - * .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; - * - * @return The desiredGatewayApiConfig. - */ - @java.lang.Override - public com.google.container.v1.GatewayAPIConfig getDesiredGatewayApiConfig() { - return desiredGatewayApiConfig_ == null - ? com.google.container.v1.GatewayAPIConfig.getDefaultInstance() - : desiredGatewayApiConfig_; - } - /** - * - * - *
-   * The desired config of Gateway API on this cluster.
-   * 
- * - * .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; - */ - @java.lang.Override - public com.google.container.v1.GatewayAPIConfigOrBuilder getDesiredGatewayApiConfigOrBuilder() { - return desiredGatewayApiConfig_ == null - ? com.google.container.v1.GatewayAPIConfig.getDefaultInstance() - : desiredGatewayApiConfig_; - } - - public static final int ETAG_FIELD_NUMBER = 115; - - @SuppressWarnings("serial") - private volatile java.lang.Object etag_ = ""; - /** - * - * - *
-   * The current etag of the cluster.
-   * If an etag is provided and does not match the current etag of the cluster,
-   * update will be blocked and an ABORTED error will be returned.
-   * 
- * - * string etag = 115; - * - * @return The etag. - */ - @java.lang.Override - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } - } - /** - * - * - *
-   * The current etag of the cluster.
-   * If an etag is provided and does not match the current etag of the cluster,
-   * update will be blocked and an ABORTED error will be returned.
-   * 
- * - * string etag = 115; - * - * @return The bytes for etag. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESIRED_NODE_POOL_LOGGING_CONFIG_FIELD_NUMBER = 116; - private com.google.container.v1.NodePoolLoggingConfig desiredNodePoolLoggingConfig_; - /** - * - * - *
-   * The desired node pool logging configuration defaults for the cluster.
-   * 
- * - * .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; - * - * @return Whether the desiredNodePoolLoggingConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredNodePoolLoggingConfig() { - return ((bitField0_ & 0x10000000) != 0); - } - /** - * - * - *
-   * The desired node pool logging configuration defaults for the cluster.
-   * 
- * - * .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; - * - * @return The desiredNodePoolLoggingConfig. - */ - @java.lang.Override - public com.google.container.v1.NodePoolLoggingConfig getDesiredNodePoolLoggingConfig() { - return desiredNodePoolLoggingConfig_ == null - ? com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance() - : desiredNodePoolLoggingConfig_; - } - /** - * - * - *
-   * The desired node pool logging configuration defaults for the cluster.
-   * 
- * - * .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; - */ - @java.lang.Override - public com.google.container.v1.NodePoolLoggingConfigOrBuilder - getDesiredNodePoolLoggingConfigOrBuilder() { - return desiredNodePoolLoggingConfig_ == null - ? com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance() - : desiredNodePoolLoggingConfig_; - } - - public static final int DESIRED_FLEET_FIELD_NUMBER = 117; - private com.google.container.v1.Fleet desiredFleet_; - /** - * - * - *
-   * The desired fleet configuration for the cluster.
-   * 
- * - * .google.container.v1.Fleet desired_fleet = 117; - * - * @return Whether the desiredFleet field is set. - */ - @java.lang.Override - public boolean hasDesiredFleet() { - return ((bitField0_ & 0x20000000) != 0); - } - /** - * - * - *
-   * The desired fleet configuration for the cluster.
-   * 
- * - * .google.container.v1.Fleet desired_fleet = 117; - * - * @return The desiredFleet. - */ - @java.lang.Override - public com.google.container.v1.Fleet getDesiredFleet() { - return desiredFleet_ == null - ? com.google.container.v1.Fleet.getDefaultInstance() - : desiredFleet_; - } - /** - * - * - *
-   * The desired fleet configuration for the cluster.
-   * 
- * - * .google.container.v1.Fleet desired_fleet = 117; - */ - @java.lang.Override - public com.google.container.v1.FleetOrBuilder getDesiredFleetOrBuilder() { - return desiredFleet_ == null - ? com.google.container.v1.Fleet.getDefaultInstance() - : desiredFleet_; - } - - public static final int DESIRED_STACK_TYPE_FIELD_NUMBER = 119; - private int desiredStackType_ = 0; - /** - * - * - *
-   * The desired stack type of the cluster.
-   * If a stack type is provided and does not match the current stack type of
-   * the cluster, update will attempt to change the stack type to the new type.
-   * 
- * - * .google.container.v1.StackType desired_stack_type = 119; - * - * @return The enum numeric value on the wire for desiredStackType. - */ - @java.lang.Override - public int getDesiredStackTypeValue() { - return desiredStackType_; - } - /** - * - * - *
-   * The desired stack type of the cluster.
-   * If a stack type is provided and does not match the current stack type of
-   * the cluster, update will attempt to change the stack type to the new type.
-   * 
- * - * .google.container.v1.StackType desired_stack_type = 119; - * - * @return The desiredStackType. - */ - @java.lang.Override - public com.google.container.v1.StackType getDesiredStackType() { - com.google.container.v1.StackType result = - com.google.container.v1.StackType.forNumber(desiredStackType_); - return result == null ? com.google.container.v1.StackType.UNRECOGNIZED : result; - } - - public static final int ADDITIONAL_POD_RANGES_CONFIG_FIELD_NUMBER = 120; - private com.google.container.v1.AdditionalPodRangesConfig additionalPodRangesConfig_; - /** - * - * - *
-   * The additional pod ranges to be added to the cluster. These pod ranges
-   * can be used by node pools to allocate pod IPs.
-   * 
- * - * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; - * - * @return Whether the additionalPodRangesConfig field is set. - */ - @java.lang.Override - public boolean hasAdditionalPodRangesConfig() { - return ((bitField0_ & 0x40000000) != 0); - } - /** - * - * - *
-   * The additional pod ranges to be added to the cluster. These pod ranges
-   * can be used by node pools to allocate pod IPs.
-   * 
- * - * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; - * - * @return The additionalPodRangesConfig. - */ - @java.lang.Override - public com.google.container.v1.AdditionalPodRangesConfig getAdditionalPodRangesConfig() { - return additionalPodRangesConfig_ == null - ? com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance() - : additionalPodRangesConfig_; - } - /** - * - * - *
-   * The additional pod ranges to be added to the cluster. These pod ranges
-   * can be used by node pools to allocate pod IPs.
-   * 
- * - * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; - */ - @java.lang.Override - public com.google.container.v1.AdditionalPodRangesConfigOrBuilder - getAdditionalPodRangesConfigOrBuilder() { - return additionalPodRangesConfig_ == null - ? com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance() - : additionalPodRangesConfig_; - } - - public static final int REMOVED_ADDITIONAL_POD_RANGES_CONFIG_FIELD_NUMBER = 121; - private com.google.container.v1.AdditionalPodRangesConfig removedAdditionalPodRangesConfig_; - /** - * - * - *
-   * The additional pod ranges that are to be removed from the cluster.
-   * The pod ranges specified here must have been specified earlier in the
-   * 'additional_pod_ranges_config' argument.
-   * 
- * - * - * .google.container.v1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; - * - * - * @return Whether the removedAdditionalPodRangesConfig field is set. - */ - @java.lang.Override - public boolean hasRemovedAdditionalPodRangesConfig() { - return ((bitField0_ & 0x80000000) != 0); - } - /** - * - * - *
-   * The additional pod ranges that are to be removed from the cluster.
-   * The pod ranges specified here must have been specified earlier in the
-   * 'additional_pod_ranges_config' argument.
-   * 
- * - * - * .google.container.v1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; - * - * - * @return The removedAdditionalPodRangesConfig. - */ - @java.lang.Override - public com.google.container.v1.AdditionalPodRangesConfig getRemovedAdditionalPodRangesConfig() { - return removedAdditionalPodRangesConfig_ == null - ? com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance() - : removedAdditionalPodRangesConfig_; - } - /** - * - * - *
-   * The additional pod ranges that are to be removed from the cluster.
-   * The pod ranges specified here must have been specified earlier in the
-   * 'additional_pod_ranges_config' argument.
-   * 
- * - * - * .google.container.v1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; - * - */ - @java.lang.Override - public com.google.container.v1.AdditionalPodRangesConfigOrBuilder - getRemovedAdditionalPodRangesConfigOrBuilder() { - return removedAdditionalPodRangesConfig_ == null - ? com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance() - : removedAdditionalPodRangesConfig_; - } - - public static final int ENABLE_K8S_BETA_APIS_FIELD_NUMBER = 122; - private com.google.container.v1.K8sBetaAPIConfig enableK8SBetaApis_; - /** - * - * - *
-   * Kubernetes open source beta apis enabled on the cluster. Only beta apis
-   * 
- * - * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; - * - * @return Whether the enableK8sBetaApis field is set. - */ - @java.lang.Override - public boolean hasEnableK8SBetaApis() { - return ((bitField1_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Kubernetes open source beta apis enabled on the cluster. Only beta apis
-   * 
- * - * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; - * - * @return The enableK8sBetaApis. - */ - @java.lang.Override - public com.google.container.v1.K8sBetaAPIConfig getEnableK8SBetaApis() { - return enableK8SBetaApis_ == null - ? com.google.container.v1.K8sBetaAPIConfig.getDefaultInstance() - : enableK8SBetaApis_; - } - /** - * - * - *
-   * Kubernetes open source beta apis enabled on the cluster. Only beta apis
-   * 
- * - * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; - */ - @java.lang.Override - public com.google.container.v1.K8sBetaAPIConfigOrBuilder getEnableK8SBetaApisOrBuilder() { - return enableK8SBetaApis_ == null - ? com.google.container.v1.K8sBetaAPIConfig.getDefaultInstance() - : enableK8SBetaApis_; - } - - public static final int DESIRED_SECURITY_POSTURE_CONFIG_FIELD_NUMBER = 124; - private com.google.container.v1.SecurityPostureConfig desiredSecurityPostureConfig_; - /** - * - * - *
-   * Enable/Disable Security Posture API features for the cluster.
-   * 
- * - * .google.container.v1.SecurityPostureConfig desired_security_posture_config = 124; - * - * @return Whether the desiredSecurityPostureConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredSecurityPostureConfig() { - return ((bitField1_ & 0x00000002) != 0); - } - /** - * - * - *
-   * Enable/Disable Security Posture API features for the cluster.
-   * 
- * - * .google.container.v1.SecurityPostureConfig desired_security_posture_config = 124; - * - * @return The desiredSecurityPostureConfig. - */ - @java.lang.Override - public com.google.container.v1.SecurityPostureConfig getDesiredSecurityPostureConfig() { - return desiredSecurityPostureConfig_ == null - ? com.google.container.v1.SecurityPostureConfig.getDefaultInstance() - : desiredSecurityPostureConfig_; - } - /** - * - * - *
-   * Enable/Disable Security Posture API features for the cluster.
-   * 
- * - * .google.container.v1.SecurityPostureConfig desired_security_posture_config = 124; - */ - @java.lang.Override - public com.google.container.v1.SecurityPostureConfigOrBuilder - getDesiredSecurityPostureConfigOrBuilder() { - return desiredSecurityPostureConfig_ == null - ? com.google.container.v1.SecurityPostureConfig.getDefaultInstance() - : desiredSecurityPostureConfig_; - } - - public static final int DESIRED_NETWORK_PERFORMANCE_CONFIG_FIELD_NUMBER = 125; - private com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig - desiredNetworkPerformanceConfig_; - /** - * - * - *
-   * The desired network performance config.
-   * 
- * - * - * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; - * - * - * @return Whether the desiredNetworkPerformanceConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredNetworkPerformanceConfig() { - return ((bitField1_ & 0x00000004) != 0); - } - /** - * - * - *
-   * The desired network performance config.
-   * 
- * - * - * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; - * - * - * @return The desiredNetworkPerformanceConfig. - */ - @java.lang.Override - public com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig - getDesiredNetworkPerformanceConfig() { - return desiredNetworkPerformanceConfig_ == null - ? com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.getDefaultInstance() - : desiredNetworkPerformanceConfig_; - } - /** - * - * - *
-   * The desired network performance config.
-   * 
- * - * - * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; - * - */ - @java.lang.Override - public com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder - getDesiredNetworkPerformanceConfigOrBuilder() { - return desiredNetworkPerformanceConfig_ == null - ? com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.getDefaultInstance() - : desiredNetworkPerformanceConfig_; - } - - public static final int DESIRED_ENABLE_FQDN_NETWORK_POLICY_FIELD_NUMBER = 126; - private boolean desiredEnableFqdnNetworkPolicy_ = false; - /** - * - * - *
-   * Enable/Disable FQDN Network Policy for the cluster.
-   * 
- * - * optional bool desired_enable_fqdn_network_policy = 126; - * - * @return Whether the desiredEnableFqdnNetworkPolicy field is set. - */ - @java.lang.Override - public boolean hasDesiredEnableFqdnNetworkPolicy() { - return ((bitField1_ & 0x00000008) != 0); - } - /** - * - * - *
-   * Enable/Disable FQDN Network Policy for the cluster.
-   * 
- * - * optional bool desired_enable_fqdn_network_policy = 126; - * - * @return The desiredEnableFqdnNetworkPolicy. - */ - @java.lang.Override - public boolean getDesiredEnableFqdnNetworkPolicy() { - return desiredEnableFqdnNetworkPolicy_; - } - - public static final int DESIRED_AUTOPILOT_WORKLOAD_POLICY_CONFIG_FIELD_NUMBER = 128; - private com.google.container.v1.WorkloadPolicyConfig desiredAutopilotWorkloadPolicyConfig_; - /** - * - * - *
-   * The desired workload policy configuration for the autopilot cluster.
-   * 
- * - * .google.container.v1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; - * - * - * @return Whether the desiredAutopilotWorkloadPolicyConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredAutopilotWorkloadPolicyConfig() { - return ((bitField1_ & 0x00000010) != 0); - } - /** - * - * - *
-   * The desired workload policy configuration for the autopilot cluster.
-   * 
- * - * .google.container.v1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; - * - * - * @return The desiredAutopilotWorkloadPolicyConfig. - */ - @java.lang.Override - public com.google.container.v1.WorkloadPolicyConfig getDesiredAutopilotWorkloadPolicyConfig() { - return desiredAutopilotWorkloadPolicyConfig_ == null - ? com.google.container.v1.WorkloadPolicyConfig.getDefaultInstance() - : desiredAutopilotWorkloadPolicyConfig_; - } - /** - * - * - *
-   * The desired workload policy configuration for the autopilot cluster.
-   * 
- * - * .google.container.v1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; - * - */ - @java.lang.Override - public com.google.container.v1.WorkloadPolicyConfigOrBuilder - getDesiredAutopilotWorkloadPolicyConfigOrBuilder() { - return desiredAutopilotWorkloadPolicyConfig_ == null - ? com.google.container.v1.WorkloadPolicyConfig.getDefaultInstance() - : desiredAutopilotWorkloadPolicyConfig_; - } - - public static final int DESIRED_K8S_BETA_APIS_FIELD_NUMBER = 131; - private com.google.container.v1.K8sBetaAPIConfig desiredK8SBetaApis_; - /** - * - * - *
-   * Desired Beta APIs to be enabled for cluster.
-   * 
- * - * .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; - * - * @return Whether the desiredK8sBetaApis field is set. - */ - @java.lang.Override - public boolean hasDesiredK8SBetaApis() { - return ((bitField1_ & 0x00000020) != 0); - } - /** - * - * - *
-   * Desired Beta APIs to be enabled for cluster.
-   * 
- * - * .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; - * - * @return The desiredK8sBetaApis. - */ - @java.lang.Override - public com.google.container.v1.K8sBetaAPIConfig getDesiredK8SBetaApis() { - return desiredK8SBetaApis_ == null - ? com.google.container.v1.K8sBetaAPIConfig.getDefaultInstance() - : desiredK8SBetaApis_; - } - /** - * - * - *
-   * Desired Beta APIs to be enabled for cluster.
-   * 
- * - * .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; - */ - @java.lang.Override - public com.google.container.v1.K8sBetaAPIConfigOrBuilder getDesiredK8SBetaApisOrBuilder() { - return desiredK8SBetaApis_ == null - ? com.google.container.v1.K8sBetaAPIConfig.getDefaultInstance() - : desiredK8SBetaApis_; - } - - public static final int DESIRED_NODE_POOL_AUTO_CONFIG_RESOURCE_MANAGER_TAGS_FIELD_NUMBER = 136; - private com.google.container.v1.ResourceManagerTags desiredNodePoolAutoConfigResourceManagerTags_; - /** - * - * - *
-   * The desired resource manager tags that apply to all auto-provisioned node
-   * pools in autopilot clusters and node auto-provisioning enabled clusters.
-   * 
- * - * - * .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; - * - * - * @return Whether the desiredNodePoolAutoConfigResourceManagerTags field is set. - */ - @java.lang.Override - public boolean hasDesiredNodePoolAutoConfigResourceManagerTags() { - return ((bitField1_ & 0x00000040) != 0); - } - /** - * - * - *
-   * The desired resource manager tags that apply to all auto-provisioned node
-   * pools in autopilot clusters and node auto-provisioning enabled clusters.
-   * 
- * - * - * .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; - * - * - * @return The desiredNodePoolAutoConfigResourceManagerTags. - */ - @java.lang.Override - public com.google.container.v1.ResourceManagerTags - getDesiredNodePoolAutoConfigResourceManagerTags() { - return desiredNodePoolAutoConfigResourceManagerTags_ == null - ? com.google.container.v1.ResourceManagerTags.getDefaultInstance() - : desiredNodePoolAutoConfigResourceManagerTags_; - } - /** - * - * - *
-   * The desired resource manager tags that apply to all auto-provisioned node
-   * pools in autopilot clusters and node auto-provisioning enabled clusters.
-   * 
- * - * - * .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; - * - */ - @java.lang.Override - public com.google.container.v1.ResourceManagerTagsOrBuilder - getDesiredNodePoolAutoConfigResourceManagerTagsOrBuilder() { - return desiredNodePoolAutoConfigResourceManagerTags_ == null - ? com.google.container.v1.ResourceManagerTags.getDefaultInstance() - : desiredNodePoolAutoConfigResourceManagerTags_; - } - - public static final int DESIRED_IN_TRANSIT_ENCRYPTION_CONFIG_FIELD_NUMBER = 137; - private int desiredInTransitEncryptionConfig_ = 0; - /** - * - * - *
-   * Specify the details of in-transit encryption.
-   * 
- * - * - * optional .google.container.v1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; - * - * - * @return Whether the desiredInTransitEncryptionConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredInTransitEncryptionConfig() { - return ((bitField1_ & 0x00000080) != 0); - } - /** - * - * - *
-   * Specify the details of in-transit encryption.
-   * 
- * - * - * optional .google.container.v1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; - * - * - * @return The enum numeric value on the wire for desiredInTransitEncryptionConfig. - */ - @java.lang.Override - public int getDesiredInTransitEncryptionConfigValue() { - return desiredInTransitEncryptionConfig_; - } - /** - * - * - *
-   * Specify the details of in-transit encryption.
-   * 
- * - * - * optional .google.container.v1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; - * - * - * @return The desiredInTransitEncryptionConfig. - */ - @java.lang.Override - public com.google.container.v1.InTransitEncryptionConfig getDesiredInTransitEncryptionConfig() { - com.google.container.v1.InTransitEncryptionConfig result = - com.google.container.v1.InTransitEncryptionConfig.forNumber( - desiredInTransitEncryptionConfig_); - return result == null ? com.google.container.v1.InTransitEncryptionConfig.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredNodeVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, desiredNodeVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredMonitoringService_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, desiredMonitoringService_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(6, getDesiredAddonsConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredNodePoolId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, desiredNodePoolId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredImageType_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, desiredImageType_); - } - if (((bitField0_ & 0x00000080) != 0)) { - output.writeMessage(9, getDesiredNodePoolAutoscaling()); - } - for (int i = 0; i < desiredLocations_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, desiredLocations_.getRaw(i)); - } - if (((bitField0_ & 0x00000100) != 0)) { - output.writeMessage(12, getDesiredMasterAuthorizedNetworksConfig()); - } - if (((bitField0_ & 0x00000200) != 0)) { - output.writeMessage(15, getDesiredClusterAutoscaling()); - } - if (((bitField0_ & 0x00000400) != 0)) { - output.writeMessage(16, getDesiredBinaryAuthorization()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredLoggingService_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 19, desiredLoggingService_); - } - if (((bitField0_ & 0x00000800) != 0)) { - output.writeMessage(21, getDesiredResourceUsageExportConfig()); - } - if (((bitField0_ & 0x00001000) != 0)) { - output.writeMessage(22, getDesiredVerticalPodAutoscaling()); - } - if (((bitField0_ & 0x00002000) != 0)) { - output.writeMessage(25, getDesiredPrivateClusterConfig()); - } - if (((bitField0_ & 0x00004000) != 0)) { - output.writeMessage(26, getDesiredIntraNodeVisibilityConfig()); - } - if (((bitField0_ & 0x00008000) != 0)) { - output.writeMessage(28, getDesiredDefaultSnatStatus()); - } - if (((bitField0_ & 0x00010000) != 0)) { - output.writeMessage(31, getDesiredReleaseChannel()); - } - if (((bitField0_ & 0x00020000) != 0)) { - output.writeMessage(39, getDesiredL4IlbSubsettingConfig()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(46, getDesiredDatabaseEncryption()); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(47, getDesiredWorkloadIdentityConfig()); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeMessage(48, getDesiredShieldedNodes()); - } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeMessage(49, getDesiredCostManagementConfig()); - } - if (desiredDatapathProvider_ - != com.google.container.v1.DatapathProvider.DATAPATH_PROVIDER_UNSPECIFIED.getNumber()) { - output.writeEnum(50, desiredDatapathProvider_); - } - if (desiredPrivateIpv6GoogleAccess_ - != com.google.container.v1.PrivateIPv6GoogleAccess.PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED - .getNumber()) { - output.writeEnum(51, desiredPrivateIpv6GoogleAccess_); - } - if (((bitField0_ & 0x00000040) != 0)) { - output.writeMessage(53, getDesiredDnsConfig()); - } - if (((bitField0_ & 0x00040000) != 0)) { - output.writeMessage(55, getDesiredNotificationConfig()); - } - if (((bitField0_ & 0x00800000) != 0)) { - output.writeMessage(60, getDesiredServiceExternalIpsConfig()); - } - if (((bitField0_ & 0x00080000) != 0)) { - output.writeMessage(63, getDesiredAuthenticatorGroupsConfig()); - } - if (((bitField0_ & 0x00100000) != 0)) { - output.writeMessage(64, getDesiredLoggingConfig()); - } - if (((bitField0_ & 0x00200000) != 0)) { - output.writeMessage(65, getDesiredMonitoringConfig()); - } - if (((bitField0_ & 0x00400000) != 0)) { - output.writeMessage(66, getDesiredIdentityServiceConfig()); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(67, getDesiredMeshCertificates()); - } - if (((bitField0_ & 0x01000000) != 0)) { - output.writeBool(71, desiredEnablePrivateEndpoint_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredMasterVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 100, desiredMasterVersion_); - } - if (((bitField0_ & 0x02000000) != 0)) { - output.writeMessage(109, getDesiredGcfsConfig()); - } - if (((bitField0_ & 0x04000000) != 0)) { - output.writeMessage(110, getDesiredNodePoolAutoConfigNetworkTags()); - } - if (((bitField0_ & 0x08000000) != 0)) { - output.writeMessage(114, getDesiredGatewayApiConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 115, etag_); - } - if (((bitField0_ & 0x10000000) != 0)) { - output.writeMessage(116, getDesiredNodePoolLoggingConfig()); - } - if (((bitField0_ & 0x20000000) != 0)) { - output.writeMessage(117, getDesiredFleet()); - } - if (desiredStackType_ != com.google.container.v1.StackType.STACK_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(119, desiredStackType_); - } - if (((bitField0_ & 0x40000000) != 0)) { - output.writeMessage(120, getAdditionalPodRangesConfig()); - } - if (((bitField0_ & 0x80000000) != 0)) { - output.writeMessage(121, getRemovedAdditionalPodRangesConfig()); - } - if (((bitField1_ & 0x00000001) != 0)) { - output.writeMessage(122, getEnableK8SBetaApis()); - } - if (((bitField1_ & 0x00000002) != 0)) { - output.writeMessage(124, getDesiredSecurityPostureConfig()); - } - if (((bitField1_ & 0x00000004) != 0)) { - output.writeMessage(125, getDesiredNetworkPerformanceConfig()); - } - if (((bitField1_ & 0x00000008) != 0)) { - output.writeBool(126, desiredEnableFqdnNetworkPolicy_); - } - if (((bitField1_ & 0x00000010) != 0)) { - output.writeMessage(128, getDesiredAutopilotWorkloadPolicyConfig()); - } - if (((bitField1_ & 0x00000020) != 0)) { - output.writeMessage(131, getDesiredK8SBetaApis()); - } - if (((bitField1_ & 0x00000040) != 0)) { - output.writeMessage(136, getDesiredNodePoolAutoConfigResourceManagerTags()); - } - if (((bitField1_ & 0x00000080) != 0)) { - output.writeEnum(137, desiredInTransitEncryptionConfig_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredNodeVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, desiredNodeVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredMonitoringService_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(5, desiredMonitoringService_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDesiredAddonsConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredNodePoolId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, desiredNodePoolId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredImageType_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, desiredImageType_); - } - if (((bitField0_ & 0x00000080) != 0)) { - 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 (((bitField0_ & 0x00000100) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 12, getDesiredMasterAuthorizedNetworksConfig()); - } - if (((bitField0_ & 0x00000200) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 15, getDesiredClusterAutoscaling()); - } - if (((bitField0_ & 0x00000400) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 16, getDesiredBinaryAuthorization()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredLoggingService_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, desiredLoggingService_); - } - if (((bitField0_ & 0x00000800) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 21, getDesiredResourceUsageExportConfig()); - } - if (((bitField0_ & 0x00001000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 22, getDesiredVerticalPodAutoscaling()); - } - if (((bitField0_ & 0x00002000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 25, getDesiredPrivateClusterConfig()); - } - if (((bitField0_ & 0x00004000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 26, getDesiredIntraNodeVisibilityConfig()); - } - if (((bitField0_ & 0x00008000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 28, getDesiredDefaultSnatStatus()); - } - if (((bitField0_ & 0x00010000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(31, getDesiredReleaseChannel()); - } - if (((bitField0_ & 0x00020000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 39, getDesiredL4IlbSubsettingConfig()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 46, getDesiredDatabaseEncryption()); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 47, getDesiredWorkloadIdentityConfig()); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(48, getDesiredShieldedNodes()); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 49, getDesiredCostManagementConfig()); - } - if (desiredDatapathProvider_ - != com.google.container.v1.DatapathProvider.DATAPATH_PROVIDER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(50, desiredDatapathProvider_); - } - if (desiredPrivateIpv6GoogleAccess_ - != com.google.container.v1.PrivateIPv6GoogleAccess.PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED - .getNumber()) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize( - 51, desiredPrivateIpv6GoogleAccess_); - } - if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(53, getDesiredDnsConfig()); - } - if (((bitField0_ & 0x00040000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 55, getDesiredNotificationConfig()); - } - if (((bitField0_ & 0x00800000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 60, getDesiredServiceExternalIpsConfig()); - } - if (((bitField0_ & 0x00080000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 63, getDesiredAuthenticatorGroupsConfig()); - } - if (((bitField0_ & 0x00100000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(64, getDesiredLoggingConfig()); - } - if (((bitField0_ & 0x00200000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 65, getDesiredMonitoringConfig()); - } - if (((bitField0_ & 0x00400000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 66, getDesiredIdentityServiceConfig()); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 67, getDesiredMeshCertificates()); - } - if (((bitField0_ & 0x01000000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(71, desiredEnablePrivateEndpoint_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredMasterVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, desiredMasterVersion_); - } - if (((bitField0_ & 0x02000000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(109, getDesiredGcfsConfig()); - } - if (((bitField0_ & 0x04000000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 110, getDesiredNodePoolAutoConfigNetworkTags()); - } - if (((bitField0_ & 0x08000000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 114, getDesiredGatewayApiConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(115, etag_); - } - if (((bitField0_ & 0x10000000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 116, getDesiredNodePoolLoggingConfig()); - } - if (((bitField0_ & 0x20000000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(117, getDesiredFleet()); - } - if (desiredStackType_ != com.google.container.v1.StackType.STACK_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(119, desiredStackType_); - } - if (((bitField0_ & 0x40000000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 120, getAdditionalPodRangesConfig()); - } - if (((bitField0_ & 0x80000000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 121, getRemovedAdditionalPodRangesConfig()); - } - if (((bitField1_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(122, getEnableK8SBetaApis()); - } - if (((bitField1_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 124, getDesiredSecurityPostureConfig()); - } - if (((bitField1_ & 0x00000004) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 125, getDesiredNetworkPerformanceConfig()); - } - if (((bitField1_ & 0x00000008) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 126, desiredEnableFqdnNetworkPolicy_); - } - if (((bitField1_ & 0x00000010) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 128, getDesiredAutopilotWorkloadPolicyConfig()); - } - if (((bitField1_ & 0x00000020) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(131, getDesiredK8SBetaApis()); - } - if (((bitField1_ & 0x00000040) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 136, getDesiredNodePoolAutoConfigResourceManagerTags()); - } - if (((bitField1_ & 0x00000080) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize( - 137, desiredInTransitEncryptionConfig_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.ClusterUpdate)) { - return super.equals(obj); - } - com.google.container.v1.ClusterUpdate other = (com.google.container.v1.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 (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 (hasDesiredMeshCertificates() != other.hasDesiredMeshCertificates()) return false; - if (hasDesiredMeshCertificates()) { - if (!getDesiredMeshCertificates().equals(other.getDesiredMeshCertificates())) return false; - } - if (hasDesiredShieldedNodes() != other.hasDesiredShieldedNodes()) return false; - if (hasDesiredShieldedNodes()) { - if (!getDesiredShieldedNodes().equals(other.getDesiredShieldedNodes())) return false; - } - if (hasDesiredCostManagementConfig() != other.hasDesiredCostManagementConfig()) return false; - if (hasDesiredCostManagementConfig()) { - if (!getDesiredCostManagementConfig().equals(other.getDesiredCostManagementConfig())) - return false; - } - if (hasDesiredDnsConfig() != other.hasDesiredDnsConfig()) return false; - if (hasDesiredDnsConfig()) { - if (!getDesiredDnsConfig().equals(other.getDesiredDnsConfig())) return false; - } - if (hasDesiredNodePoolAutoscaling() != other.hasDesiredNodePoolAutoscaling()) return false; - if (hasDesiredNodePoolAutoscaling()) { - if (!getDesiredNodePoolAutoscaling().equals(other.getDesiredNodePoolAutoscaling())) - 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 (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 (hasDesiredReleaseChannel() != other.hasDesiredReleaseChannel()) return false; - if (hasDesiredReleaseChannel()) { - if (!getDesiredReleaseChannel().equals(other.getDesiredReleaseChannel())) return false; - } - if (hasDesiredL4IlbSubsettingConfig() != other.hasDesiredL4IlbSubsettingConfig()) return false; - if (hasDesiredL4IlbSubsettingConfig()) { - if (!getDesiredL4IlbSubsettingConfig().equals(other.getDesiredL4IlbSubsettingConfig())) - return false; - } - if (desiredDatapathProvider_ != other.desiredDatapathProvider_) return false; - if (desiredPrivateIpv6GoogleAccess_ != other.desiredPrivateIpv6GoogleAccess_) return false; - if (hasDesiredNotificationConfig() != other.hasDesiredNotificationConfig()) return false; - if (hasDesiredNotificationConfig()) { - if (!getDesiredNotificationConfig().equals(other.getDesiredNotificationConfig())) - return false; - } - if (hasDesiredAuthenticatorGroupsConfig() != other.hasDesiredAuthenticatorGroupsConfig()) - return false; - if (hasDesiredAuthenticatorGroupsConfig()) { - if (!getDesiredAuthenticatorGroupsConfig() - .equals(other.getDesiredAuthenticatorGroupsConfig())) return false; - } - if (hasDesiredLoggingConfig() != other.hasDesiredLoggingConfig()) return false; - if (hasDesiredLoggingConfig()) { - if (!getDesiredLoggingConfig().equals(other.getDesiredLoggingConfig())) return false; - } - if (hasDesiredMonitoringConfig() != other.hasDesiredMonitoringConfig()) return false; - if (hasDesiredMonitoringConfig()) { - if (!getDesiredMonitoringConfig().equals(other.getDesiredMonitoringConfig())) return false; - } - if (hasDesiredIdentityServiceConfig() != other.hasDesiredIdentityServiceConfig()) return false; - if (hasDesiredIdentityServiceConfig()) { - if (!getDesiredIdentityServiceConfig().equals(other.getDesiredIdentityServiceConfig())) - return false; - } - if (hasDesiredServiceExternalIpsConfig() != other.hasDesiredServiceExternalIpsConfig()) - return false; - if (hasDesiredServiceExternalIpsConfig()) { - if (!getDesiredServiceExternalIpsConfig().equals(other.getDesiredServiceExternalIpsConfig())) - return false; - } - if (hasDesiredEnablePrivateEndpoint() != other.hasDesiredEnablePrivateEndpoint()) return false; - if (hasDesiredEnablePrivateEndpoint()) { - if (getDesiredEnablePrivateEndpoint() != other.getDesiredEnablePrivateEndpoint()) - return false; - } - if (!getDesiredMasterVersion().equals(other.getDesiredMasterVersion())) return false; - if (hasDesiredGcfsConfig() != other.hasDesiredGcfsConfig()) return false; - if (hasDesiredGcfsConfig()) { - if (!getDesiredGcfsConfig().equals(other.getDesiredGcfsConfig())) return false; - } - if (hasDesiredNodePoolAutoConfigNetworkTags() - != other.hasDesiredNodePoolAutoConfigNetworkTags()) return false; - if (hasDesiredNodePoolAutoConfigNetworkTags()) { - if (!getDesiredNodePoolAutoConfigNetworkTags() - .equals(other.getDesiredNodePoolAutoConfigNetworkTags())) return false; - } - if (hasDesiredGatewayApiConfig() != other.hasDesiredGatewayApiConfig()) return false; - if (hasDesiredGatewayApiConfig()) { - if (!getDesiredGatewayApiConfig().equals(other.getDesiredGatewayApiConfig())) return false; - } - if (!getEtag().equals(other.getEtag())) return false; - if (hasDesiredNodePoolLoggingConfig() != other.hasDesiredNodePoolLoggingConfig()) return false; - if (hasDesiredNodePoolLoggingConfig()) { - if (!getDesiredNodePoolLoggingConfig().equals(other.getDesiredNodePoolLoggingConfig())) - return false; - } - if (hasDesiredFleet() != other.hasDesiredFleet()) return false; - if (hasDesiredFleet()) { - if (!getDesiredFleet().equals(other.getDesiredFleet())) return false; - } - if (desiredStackType_ != other.desiredStackType_) return false; - if (hasAdditionalPodRangesConfig() != other.hasAdditionalPodRangesConfig()) return false; - if (hasAdditionalPodRangesConfig()) { - if (!getAdditionalPodRangesConfig().equals(other.getAdditionalPodRangesConfig())) - return false; - } - if (hasRemovedAdditionalPodRangesConfig() != other.hasRemovedAdditionalPodRangesConfig()) - return false; - if (hasRemovedAdditionalPodRangesConfig()) { - if (!getRemovedAdditionalPodRangesConfig() - .equals(other.getRemovedAdditionalPodRangesConfig())) return false; - } - if (hasEnableK8SBetaApis() != other.hasEnableK8SBetaApis()) return false; - if (hasEnableK8SBetaApis()) { - if (!getEnableK8SBetaApis().equals(other.getEnableK8SBetaApis())) return false; - } - if (hasDesiredSecurityPostureConfig() != other.hasDesiredSecurityPostureConfig()) return false; - if (hasDesiredSecurityPostureConfig()) { - if (!getDesiredSecurityPostureConfig().equals(other.getDesiredSecurityPostureConfig())) - return false; - } - if (hasDesiredNetworkPerformanceConfig() != other.hasDesiredNetworkPerformanceConfig()) - return false; - if (hasDesiredNetworkPerformanceConfig()) { - if (!getDesiredNetworkPerformanceConfig().equals(other.getDesiredNetworkPerformanceConfig())) - return false; - } - if (hasDesiredEnableFqdnNetworkPolicy() != other.hasDesiredEnableFqdnNetworkPolicy()) - return false; - if (hasDesiredEnableFqdnNetworkPolicy()) { - if (getDesiredEnableFqdnNetworkPolicy() != other.getDesiredEnableFqdnNetworkPolicy()) - return false; - } - if (hasDesiredAutopilotWorkloadPolicyConfig() - != other.hasDesiredAutopilotWorkloadPolicyConfig()) return false; - if (hasDesiredAutopilotWorkloadPolicyConfig()) { - if (!getDesiredAutopilotWorkloadPolicyConfig() - .equals(other.getDesiredAutopilotWorkloadPolicyConfig())) return false; - } - if (hasDesiredK8SBetaApis() != other.hasDesiredK8SBetaApis()) return false; - if (hasDesiredK8SBetaApis()) { - if (!getDesiredK8SBetaApis().equals(other.getDesiredK8SBetaApis())) return false; - } - if (hasDesiredNodePoolAutoConfigResourceManagerTags() - != other.hasDesiredNodePoolAutoConfigResourceManagerTags()) return false; - if (hasDesiredNodePoolAutoConfigResourceManagerTags()) { - if (!getDesiredNodePoolAutoConfigResourceManagerTags() - .equals(other.getDesiredNodePoolAutoConfigResourceManagerTags())) return false; - } - if (hasDesiredInTransitEncryptionConfig() != other.hasDesiredInTransitEncryptionConfig()) - return false; - if (hasDesiredInTransitEncryptionConfig()) { - if (desiredInTransitEncryptionConfig_ != other.desiredInTransitEncryptionConfig_) - return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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 (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 (hasDesiredMeshCertificates()) { - hash = (37 * hash) + DESIRED_MESH_CERTIFICATES_FIELD_NUMBER; - hash = (53 * hash) + getDesiredMeshCertificates().hashCode(); - } - if (hasDesiredShieldedNodes()) { - hash = (37 * hash) + DESIRED_SHIELDED_NODES_FIELD_NUMBER; - hash = (53 * hash) + getDesiredShieldedNodes().hashCode(); - } - if (hasDesiredCostManagementConfig()) { - hash = (37 * hash) + DESIRED_COST_MANAGEMENT_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredCostManagementConfig().hashCode(); - } - if (hasDesiredDnsConfig()) { - hash = (37 * hash) + DESIRED_DNS_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredDnsConfig().hashCode(); - } - if (hasDesiredNodePoolAutoscaling()) { - hash = (37 * hash) + DESIRED_NODE_POOL_AUTOSCALING_FIELD_NUMBER; - hash = (53 * hash) + getDesiredNodePoolAutoscaling().hashCode(); - } - 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 (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 (hasDesiredReleaseChannel()) { - hash = (37 * hash) + DESIRED_RELEASE_CHANNEL_FIELD_NUMBER; - hash = (53 * hash) + getDesiredReleaseChannel().hashCode(); - } - if (hasDesiredL4IlbSubsettingConfig()) { - hash = (37 * hash) + DESIRED_L4ILB_SUBSETTING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredL4IlbSubsettingConfig().hashCode(); - } - hash = (37 * hash) + DESIRED_DATAPATH_PROVIDER_FIELD_NUMBER; - hash = (53 * hash) + desiredDatapathProvider_; - hash = (37 * hash) + DESIRED_PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER; - hash = (53 * hash) + desiredPrivateIpv6GoogleAccess_; - if (hasDesiredNotificationConfig()) { - hash = (37 * hash) + DESIRED_NOTIFICATION_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredNotificationConfig().hashCode(); - } - if (hasDesiredAuthenticatorGroupsConfig()) { - hash = (37 * hash) + DESIRED_AUTHENTICATOR_GROUPS_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredAuthenticatorGroupsConfig().hashCode(); - } - if (hasDesiredLoggingConfig()) { - hash = (37 * hash) + DESIRED_LOGGING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredLoggingConfig().hashCode(); - } - if (hasDesiredMonitoringConfig()) { - hash = (37 * hash) + DESIRED_MONITORING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredMonitoringConfig().hashCode(); - } - if (hasDesiredIdentityServiceConfig()) { - hash = (37 * hash) + DESIRED_IDENTITY_SERVICE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredIdentityServiceConfig().hashCode(); - } - if (hasDesiredServiceExternalIpsConfig()) { - hash = (37 * hash) + DESIRED_SERVICE_EXTERNAL_IPS_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredServiceExternalIpsConfig().hashCode(); - } - if (hasDesiredEnablePrivateEndpoint()) { - hash = (37 * hash) + DESIRED_ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER; - hash = - (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDesiredEnablePrivateEndpoint()); - } - hash = (37 * hash) + DESIRED_MASTER_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getDesiredMasterVersion().hashCode(); - if (hasDesiredGcfsConfig()) { - hash = (37 * hash) + DESIRED_GCFS_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredGcfsConfig().hashCode(); - } - if (hasDesiredNodePoolAutoConfigNetworkTags()) { - hash = (37 * hash) + DESIRED_NODE_POOL_AUTO_CONFIG_NETWORK_TAGS_FIELD_NUMBER; - hash = (53 * hash) + getDesiredNodePoolAutoConfigNetworkTags().hashCode(); - } - if (hasDesiredGatewayApiConfig()) { - hash = (37 * hash) + DESIRED_GATEWAY_API_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredGatewayApiConfig().hashCode(); - } - hash = (37 * hash) + ETAG_FIELD_NUMBER; - hash = (53 * hash) + getEtag().hashCode(); - if (hasDesiredNodePoolLoggingConfig()) { - hash = (37 * hash) + DESIRED_NODE_POOL_LOGGING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredNodePoolLoggingConfig().hashCode(); - } - if (hasDesiredFleet()) { - hash = (37 * hash) + DESIRED_FLEET_FIELD_NUMBER; - hash = (53 * hash) + getDesiredFleet().hashCode(); - } - hash = (37 * hash) + DESIRED_STACK_TYPE_FIELD_NUMBER; - hash = (53 * hash) + desiredStackType_; - if (hasAdditionalPodRangesConfig()) { - hash = (37 * hash) + ADDITIONAL_POD_RANGES_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getAdditionalPodRangesConfig().hashCode(); - } - if (hasRemovedAdditionalPodRangesConfig()) { - hash = (37 * hash) + REMOVED_ADDITIONAL_POD_RANGES_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getRemovedAdditionalPodRangesConfig().hashCode(); - } - if (hasEnableK8SBetaApis()) { - hash = (37 * hash) + ENABLE_K8S_BETA_APIS_FIELD_NUMBER; - hash = (53 * hash) + getEnableK8SBetaApis().hashCode(); - } - if (hasDesiredSecurityPostureConfig()) { - hash = (37 * hash) + DESIRED_SECURITY_POSTURE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredSecurityPostureConfig().hashCode(); - } - if (hasDesiredNetworkPerformanceConfig()) { - hash = (37 * hash) + DESIRED_NETWORK_PERFORMANCE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredNetworkPerformanceConfig().hashCode(); - } - if (hasDesiredEnableFqdnNetworkPolicy()) { - hash = (37 * hash) + DESIRED_ENABLE_FQDN_NETWORK_POLICY_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getDesiredEnableFqdnNetworkPolicy()); - } - if (hasDesiredAutopilotWorkloadPolicyConfig()) { - hash = (37 * hash) + DESIRED_AUTOPILOT_WORKLOAD_POLICY_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredAutopilotWorkloadPolicyConfig().hashCode(); - } - if (hasDesiredK8SBetaApis()) { - hash = (37 * hash) + DESIRED_K8S_BETA_APIS_FIELD_NUMBER; - hash = (53 * hash) + getDesiredK8SBetaApis().hashCode(); - } - if (hasDesiredNodePoolAutoConfigResourceManagerTags()) { - hash = (37 * hash) + DESIRED_NODE_POOL_AUTO_CONFIG_RESOURCE_MANAGER_TAGS_FIELD_NUMBER; - hash = (53 * hash) + getDesiredNodePoolAutoConfigResourceManagerTags().hashCode(); - } - if (hasDesiredInTransitEncryptionConfig()) { - hash = (37 * hash) + DESIRED_IN_TRANSIT_ENCRYPTION_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + desiredInTransitEncryptionConfig_; - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ClusterUpdate parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.ClusterUpdate parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.ClusterUpdate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ClusterUpdate parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ClusterUpdate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.ClusterUpdate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.ClusterUpdate parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.ClusterUpdate} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ClusterUpdate) - com.google.container.v1.ClusterUpdateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ClusterUpdate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ClusterUpdate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ClusterUpdate.class, - com.google.container.v1.ClusterUpdate.Builder.class); - } - - // Construct using com.google.container.v1.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) { - getDesiredAddonsConfigFieldBuilder(); - getDesiredDatabaseEncryptionFieldBuilder(); - getDesiredWorkloadIdentityConfigFieldBuilder(); - getDesiredMeshCertificatesFieldBuilder(); - getDesiredShieldedNodesFieldBuilder(); - getDesiredCostManagementConfigFieldBuilder(); - getDesiredDnsConfigFieldBuilder(); - getDesiredNodePoolAutoscalingFieldBuilder(); - getDesiredMasterAuthorizedNetworksConfigFieldBuilder(); - getDesiredClusterAutoscalingFieldBuilder(); - getDesiredBinaryAuthorizationFieldBuilder(); - getDesiredResourceUsageExportConfigFieldBuilder(); - getDesiredVerticalPodAutoscalingFieldBuilder(); - getDesiredPrivateClusterConfigFieldBuilder(); - getDesiredIntraNodeVisibilityConfigFieldBuilder(); - getDesiredDefaultSnatStatusFieldBuilder(); - getDesiredReleaseChannelFieldBuilder(); - getDesiredL4IlbSubsettingConfigFieldBuilder(); - getDesiredNotificationConfigFieldBuilder(); - getDesiredAuthenticatorGroupsConfigFieldBuilder(); - getDesiredLoggingConfigFieldBuilder(); - getDesiredMonitoringConfigFieldBuilder(); - getDesiredIdentityServiceConfigFieldBuilder(); - getDesiredServiceExternalIpsConfigFieldBuilder(); - getDesiredGcfsConfigFieldBuilder(); - getDesiredNodePoolAutoConfigNetworkTagsFieldBuilder(); - getDesiredGatewayApiConfigFieldBuilder(); - getDesiredNodePoolLoggingConfigFieldBuilder(); - getDesiredFleetFieldBuilder(); - getAdditionalPodRangesConfigFieldBuilder(); - getRemovedAdditionalPodRangesConfigFieldBuilder(); - getEnableK8SBetaApisFieldBuilder(); - getDesiredSecurityPostureConfigFieldBuilder(); - getDesiredNetworkPerformanceConfigFieldBuilder(); - getDesiredAutopilotWorkloadPolicyConfigFieldBuilder(); - getDesiredK8SBetaApisFieldBuilder(); - getDesiredNodePoolAutoConfigResourceManagerTagsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - bitField1_ = 0; - desiredNodeVersion_ = ""; - desiredMonitoringService_ = ""; - desiredAddonsConfig_ = null; - if (desiredAddonsConfigBuilder_ != null) { - desiredAddonsConfigBuilder_.dispose(); - desiredAddonsConfigBuilder_ = null; - } - desiredNodePoolId_ = ""; - desiredImageType_ = ""; - desiredDatabaseEncryption_ = null; - if (desiredDatabaseEncryptionBuilder_ != null) { - desiredDatabaseEncryptionBuilder_.dispose(); - desiredDatabaseEncryptionBuilder_ = null; - } - desiredWorkloadIdentityConfig_ = null; - if (desiredWorkloadIdentityConfigBuilder_ != null) { - desiredWorkloadIdentityConfigBuilder_.dispose(); - desiredWorkloadIdentityConfigBuilder_ = null; - } - desiredMeshCertificates_ = null; - if (desiredMeshCertificatesBuilder_ != null) { - desiredMeshCertificatesBuilder_.dispose(); - desiredMeshCertificatesBuilder_ = null; - } - desiredShieldedNodes_ = null; - if (desiredShieldedNodesBuilder_ != null) { - desiredShieldedNodesBuilder_.dispose(); - desiredShieldedNodesBuilder_ = null; - } - desiredCostManagementConfig_ = null; - if (desiredCostManagementConfigBuilder_ != null) { - desiredCostManagementConfigBuilder_.dispose(); - desiredCostManagementConfigBuilder_ = null; - } - desiredDnsConfig_ = null; - if (desiredDnsConfigBuilder_ != null) { - desiredDnsConfigBuilder_.dispose(); - desiredDnsConfigBuilder_ = null; - } - desiredNodePoolAutoscaling_ = null; - if (desiredNodePoolAutoscalingBuilder_ != null) { - desiredNodePoolAutoscalingBuilder_.dispose(); - desiredNodePoolAutoscalingBuilder_ = null; - } - desiredLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - desiredMasterAuthorizedNetworksConfig_ = null; - if (desiredMasterAuthorizedNetworksConfigBuilder_ != null) { - desiredMasterAuthorizedNetworksConfigBuilder_.dispose(); - desiredMasterAuthorizedNetworksConfigBuilder_ = null; - } - desiredClusterAutoscaling_ = null; - if (desiredClusterAutoscalingBuilder_ != null) { - desiredClusterAutoscalingBuilder_.dispose(); - desiredClusterAutoscalingBuilder_ = null; - } - desiredBinaryAuthorization_ = null; - if (desiredBinaryAuthorizationBuilder_ != null) { - desiredBinaryAuthorizationBuilder_.dispose(); - desiredBinaryAuthorizationBuilder_ = null; - } - desiredLoggingService_ = ""; - desiredResourceUsageExportConfig_ = null; - if (desiredResourceUsageExportConfigBuilder_ != null) { - desiredResourceUsageExportConfigBuilder_.dispose(); - desiredResourceUsageExportConfigBuilder_ = null; - } - desiredVerticalPodAutoscaling_ = null; - if (desiredVerticalPodAutoscalingBuilder_ != null) { - desiredVerticalPodAutoscalingBuilder_.dispose(); - desiredVerticalPodAutoscalingBuilder_ = null; - } - desiredPrivateClusterConfig_ = null; - if (desiredPrivateClusterConfigBuilder_ != null) { - desiredPrivateClusterConfigBuilder_.dispose(); - desiredPrivateClusterConfigBuilder_ = null; - } - desiredIntraNodeVisibilityConfig_ = null; - if (desiredIntraNodeVisibilityConfigBuilder_ != null) { - desiredIntraNodeVisibilityConfigBuilder_.dispose(); - desiredIntraNodeVisibilityConfigBuilder_ = null; - } - desiredDefaultSnatStatus_ = null; - if (desiredDefaultSnatStatusBuilder_ != null) { - desiredDefaultSnatStatusBuilder_.dispose(); - desiredDefaultSnatStatusBuilder_ = null; - } - desiredReleaseChannel_ = null; - if (desiredReleaseChannelBuilder_ != null) { - desiredReleaseChannelBuilder_.dispose(); - desiredReleaseChannelBuilder_ = null; - } - desiredL4IlbSubsettingConfig_ = null; - if (desiredL4IlbSubsettingConfigBuilder_ != null) { - desiredL4IlbSubsettingConfigBuilder_.dispose(); - desiredL4IlbSubsettingConfigBuilder_ = null; - } - desiredDatapathProvider_ = 0; - desiredPrivateIpv6GoogleAccess_ = 0; - desiredNotificationConfig_ = null; - if (desiredNotificationConfigBuilder_ != null) { - desiredNotificationConfigBuilder_.dispose(); - desiredNotificationConfigBuilder_ = null; - } - desiredAuthenticatorGroupsConfig_ = null; - if (desiredAuthenticatorGroupsConfigBuilder_ != null) { - desiredAuthenticatorGroupsConfigBuilder_.dispose(); - desiredAuthenticatorGroupsConfigBuilder_ = null; - } - desiredLoggingConfig_ = null; - if (desiredLoggingConfigBuilder_ != null) { - desiredLoggingConfigBuilder_.dispose(); - desiredLoggingConfigBuilder_ = null; - } - desiredMonitoringConfig_ = null; - if (desiredMonitoringConfigBuilder_ != null) { - desiredMonitoringConfigBuilder_.dispose(); - desiredMonitoringConfigBuilder_ = null; - } - desiredIdentityServiceConfig_ = null; - if (desiredIdentityServiceConfigBuilder_ != null) { - desiredIdentityServiceConfigBuilder_.dispose(); - desiredIdentityServiceConfigBuilder_ = null; - } - desiredServiceExternalIpsConfig_ = null; - if (desiredServiceExternalIpsConfigBuilder_ != null) { - desiredServiceExternalIpsConfigBuilder_.dispose(); - desiredServiceExternalIpsConfigBuilder_ = null; - } - desiredEnablePrivateEndpoint_ = false; - desiredMasterVersion_ = ""; - desiredGcfsConfig_ = null; - if (desiredGcfsConfigBuilder_ != null) { - desiredGcfsConfigBuilder_.dispose(); - desiredGcfsConfigBuilder_ = null; - } - desiredNodePoolAutoConfigNetworkTags_ = null; - if (desiredNodePoolAutoConfigNetworkTagsBuilder_ != null) { - desiredNodePoolAutoConfigNetworkTagsBuilder_.dispose(); - desiredNodePoolAutoConfigNetworkTagsBuilder_ = null; - } - desiredGatewayApiConfig_ = null; - if (desiredGatewayApiConfigBuilder_ != null) { - desiredGatewayApiConfigBuilder_.dispose(); - desiredGatewayApiConfigBuilder_ = null; - } - etag_ = ""; - desiredNodePoolLoggingConfig_ = null; - if (desiredNodePoolLoggingConfigBuilder_ != null) { - desiredNodePoolLoggingConfigBuilder_.dispose(); - desiredNodePoolLoggingConfigBuilder_ = null; - } - desiredFleet_ = null; - if (desiredFleetBuilder_ != null) { - desiredFleetBuilder_.dispose(); - desiredFleetBuilder_ = null; - } - desiredStackType_ = 0; - additionalPodRangesConfig_ = null; - if (additionalPodRangesConfigBuilder_ != null) { - additionalPodRangesConfigBuilder_.dispose(); - additionalPodRangesConfigBuilder_ = null; - } - removedAdditionalPodRangesConfig_ = null; - if (removedAdditionalPodRangesConfigBuilder_ != null) { - removedAdditionalPodRangesConfigBuilder_.dispose(); - removedAdditionalPodRangesConfigBuilder_ = null; - } - enableK8SBetaApis_ = null; - if (enableK8SBetaApisBuilder_ != null) { - enableK8SBetaApisBuilder_.dispose(); - enableK8SBetaApisBuilder_ = null; - } - desiredSecurityPostureConfig_ = null; - if (desiredSecurityPostureConfigBuilder_ != null) { - desiredSecurityPostureConfigBuilder_.dispose(); - desiredSecurityPostureConfigBuilder_ = null; - } - desiredNetworkPerformanceConfig_ = null; - if (desiredNetworkPerformanceConfigBuilder_ != null) { - desiredNetworkPerformanceConfigBuilder_.dispose(); - desiredNetworkPerformanceConfigBuilder_ = null; - } - desiredEnableFqdnNetworkPolicy_ = false; - desiredAutopilotWorkloadPolicyConfig_ = null; - if (desiredAutopilotWorkloadPolicyConfigBuilder_ != null) { - desiredAutopilotWorkloadPolicyConfigBuilder_.dispose(); - desiredAutopilotWorkloadPolicyConfigBuilder_ = null; - } - desiredK8SBetaApis_ = null; - if (desiredK8SBetaApisBuilder_ != null) { - desiredK8SBetaApisBuilder_.dispose(); - desiredK8SBetaApisBuilder_ = null; - } - desiredNodePoolAutoConfigResourceManagerTags_ = null; - if (desiredNodePoolAutoConfigResourceManagerTagsBuilder_ != null) { - desiredNodePoolAutoConfigResourceManagerTagsBuilder_.dispose(); - desiredNodePoolAutoConfigResourceManagerTagsBuilder_ = null; - } - desiredInTransitEncryptionConfig_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ClusterUpdate_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ClusterUpdate getDefaultInstanceForType() { - return com.google.container.v1.ClusterUpdate.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ClusterUpdate build() { - com.google.container.v1.ClusterUpdate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ClusterUpdate buildPartial() { - com.google.container.v1.ClusterUpdate result = - new com.google.container.v1.ClusterUpdate(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - if (bitField1_ != 0) { - buildPartial1(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.ClusterUpdate result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.desiredNodeVersion_ = desiredNodeVersion_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.desiredMonitoringService_ = desiredMonitoringService_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.desiredAddonsConfig_ = - desiredAddonsConfigBuilder_ == null - ? desiredAddonsConfig_ - : desiredAddonsConfigBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.desiredNodePoolId_ = desiredNodePoolId_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.desiredImageType_ = desiredImageType_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.desiredDatabaseEncryption_ = - desiredDatabaseEncryptionBuilder_ == null - ? desiredDatabaseEncryption_ - : desiredDatabaseEncryptionBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.desiredWorkloadIdentityConfig_ = - desiredWorkloadIdentityConfigBuilder_ == null - ? desiredWorkloadIdentityConfig_ - : desiredWorkloadIdentityConfigBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.desiredMeshCertificates_ = - desiredMeshCertificatesBuilder_ == null - ? desiredMeshCertificates_ - : desiredMeshCertificatesBuilder_.build(); - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.desiredShieldedNodes_ = - desiredShieldedNodesBuilder_ == null - ? desiredShieldedNodes_ - : desiredShieldedNodesBuilder_.build(); - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.desiredCostManagementConfig_ = - desiredCostManagementConfigBuilder_ == null - ? desiredCostManagementConfig_ - : desiredCostManagementConfigBuilder_.build(); - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.desiredDnsConfig_ = - desiredDnsConfigBuilder_ == null ? desiredDnsConfig_ : desiredDnsConfigBuilder_.build(); - to_bitField0_ |= 0x00000040; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.desiredNodePoolAutoscaling_ = - desiredNodePoolAutoscalingBuilder_ == null - ? desiredNodePoolAutoscaling_ - : desiredNodePoolAutoscalingBuilder_.build(); - to_bitField0_ |= 0x00000080; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - desiredLocations_.makeImmutable(); - result.desiredLocations_ = desiredLocations_; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.desiredMasterAuthorizedNetworksConfig_ = - desiredMasterAuthorizedNetworksConfigBuilder_ == null - ? desiredMasterAuthorizedNetworksConfig_ - : desiredMasterAuthorizedNetworksConfigBuilder_.build(); - to_bitField0_ |= 0x00000100; - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.desiredClusterAutoscaling_ = - desiredClusterAutoscalingBuilder_ == null - ? desiredClusterAutoscaling_ - : desiredClusterAutoscalingBuilder_.build(); - to_bitField0_ |= 0x00000200; - } - if (((from_bitField0_ & 0x00008000) != 0)) { - result.desiredBinaryAuthorization_ = - desiredBinaryAuthorizationBuilder_ == null - ? desiredBinaryAuthorization_ - : desiredBinaryAuthorizationBuilder_.build(); - to_bitField0_ |= 0x00000400; - } - if (((from_bitField0_ & 0x00010000) != 0)) { - result.desiredLoggingService_ = desiredLoggingService_; - } - if (((from_bitField0_ & 0x00020000) != 0)) { - result.desiredResourceUsageExportConfig_ = - desiredResourceUsageExportConfigBuilder_ == null - ? desiredResourceUsageExportConfig_ - : desiredResourceUsageExportConfigBuilder_.build(); - to_bitField0_ |= 0x00000800; - } - if (((from_bitField0_ & 0x00040000) != 0)) { - result.desiredVerticalPodAutoscaling_ = - desiredVerticalPodAutoscalingBuilder_ == null - ? desiredVerticalPodAutoscaling_ - : desiredVerticalPodAutoscalingBuilder_.build(); - to_bitField0_ |= 0x00001000; - } - if (((from_bitField0_ & 0x00080000) != 0)) { - result.desiredPrivateClusterConfig_ = - desiredPrivateClusterConfigBuilder_ == null - ? desiredPrivateClusterConfig_ - : desiredPrivateClusterConfigBuilder_.build(); - to_bitField0_ |= 0x00002000; - } - if (((from_bitField0_ & 0x00100000) != 0)) { - result.desiredIntraNodeVisibilityConfig_ = - desiredIntraNodeVisibilityConfigBuilder_ == null - ? desiredIntraNodeVisibilityConfig_ - : desiredIntraNodeVisibilityConfigBuilder_.build(); - to_bitField0_ |= 0x00004000; - } - if (((from_bitField0_ & 0x00200000) != 0)) { - result.desiredDefaultSnatStatus_ = - desiredDefaultSnatStatusBuilder_ == null - ? desiredDefaultSnatStatus_ - : desiredDefaultSnatStatusBuilder_.build(); - to_bitField0_ |= 0x00008000; - } - if (((from_bitField0_ & 0x00400000) != 0)) { - result.desiredReleaseChannel_ = - desiredReleaseChannelBuilder_ == null - ? desiredReleaseChannel_ - : desiredReleaseChannelBuilder_.build(); - to_bitField0_ |= 0x00010000; - } - if (((from_bitField0_ & 0x00800000) != 0)) { - result.desiredL4IlbSubsettingConfig_ = - desiredL4IlbSubsettingConfigBuilder_ == null - ? desiredL4IlbSubsettingConfig_ - : desiredL4IlbSubsettingConfigBuilder_.build(); - to_bitField0_ |= 0x00020000; - } - if (((from_bitField0_ & 0x01000000) != 0)) { - result.desiredDatapathProvider_ = desiredDatapathProvider_; - } - if (((from_bitField0_ & 0x02000000) != 0)) { - result.desiredPrivateIpv6GoogleAccess_ = desiredPrivateIpv6GoogleAccess_; - } - if (((from_bitField0_ & 0x04000000) != 0)) { - result.desiredNotificationConfig_ = - desiredNotificationConfigBuilder_ == null - ? desiredNotificationConfig_ - : desiredNotificationConfigBuilder_.build(); - to_bitField0_ |= 0x00040000; - } - if (((from_bitField0_ & 0x08000000) != 0)) { - result.desiredAuthenticatorGroupsConfig_ = - desiredAuthenticatorGroupsConfigBuilder_ == null - ? desiredAuthenticatorGroupsConfig_ - : desiredAuthenticatorGroupsConfigBuilder_.build(); - to_bitField0_ |= 0x00080000; - } - if (((from_bitField0_ & 0x10000000) != 0)) { - result.desiredLoggingConfig_ = - desiredLoggingConfigBuilder_ == null - ? desiredLoggingConfig_ - : desiredLoggingConfigBuilder_.build(); - to_bitField0_ |= 0x00100000; - } - if (((from_bitField0_ & 0x20000000) != 0)) { - result.desiredMonitoringConfig_ = - desiredMonitoringConfigBuilder_ == null - ? desiredMonitoringConfig_ - : desiredMonitoringConfigBuilder_.build(); - to_bitField0_ |= 0x00200000; - } - if (((from_bitField0_ & 0x40000000) != 0)) { - result.desiredIdentityServiceConfig_ = - desiredIdentityServiceConfigBuilder_ == null - ? desiredIdentityServiceConfig_ - : desiredIdentityServiceConfigBuilder_.build(); - to_bitField0_ |= 0x00400000; - } - if (((from_bitField0_ & 0x80000000) != 0)) { - result.desiredServiceExternalIpsConfig_ = - desiredServiceExternalIpsConfigBuilder_ == null - ? desiredServiceExternalIpsConfig_ - : desiredServiceExternalIpsConfigBuilder_.build(); - to_bitField0_ |= 0x00800000; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartial1(com.google.container.v1.ClusterUpdate result) { - int from_bitField1_ = bitField1_; - int to_bitField0_ = 0; - if (((from_bitField1_ & 0x00000001) != 0)) { - result.desiredEnablePrivateEndpoint_ = desiredEnablePrivateEndpoint_; - to_bitField0_ |= 0x01000000; - } - if (((from_bitField1_ & 0x00000002) != 0)) { - result.desiredMasterVersion_ = desiredMasterVersion_; - } - if (((from_bitField1_ & 0x00000004) != 0)) { - result.desiredGcfsConfig_ = - desiredGcfsConfigBuilder_ == null - ? desiredGcfsConfig_ - : desiredGcfsConfigBuilder_.build(); - to_bitField0_ |= 0x02000000; - } - if (((from_bitField1_ & 0x00000008) != 0)) { - result.desiredNodePoolAutoConfigNetworkTags_ = - desiredNodePoolAutoConfigNetworkTagsBuilder_ == null - ? desiredNodePoolAutoConfigNetworkTags_ - : desiredNodePoolAutoConfigNetworkTagsBuilder_.build(); - to_bitField0_ |= 0x04000000; - } - if (((from_bitField1_ & 0x00000010) != 0)) { - result.desiredGatewayApiConfig_ = - desiredGatewayApiConfigBuilder_ == null - ? desiredGatewayApiConfig_ - : desiredGatewayApiConfigBuilder_.build(); - to_bitField0_ |= 0x08000000; - } - if (((from_bitField1_ & 0x00000020) != 0)) { - result.etag_ = etag_; - } - if (((from_bitField1_ & 0x00000040) != 0)) { - result.desiredNodePoolLoggingConfig_ = - desiredNodePoolLoggingConfigBuilder_ == null - ? desiredNodePoolLoggingConfig_ - : desiredNodePoolLoggingConfigBuilder_.build(); - to_bitField0_ |= 0x10000000; - } - if (((from_bitField1_ & 0x00000080) != 0)) { - result.desiredFleet_ = - desiredFleetBuilder_ == null ? desiredFleet_ : desiredFleetBuilder_.build(); - to_bitField0_ |= 0x20000000; - } - if (((from_bitField1_ & 0x00000100) != 0)) { - result.desiredStackType_ = desiredStackType_; - } - if (((from_bitField1_ & 0x00000200) != 0)) { - result.additionalPodRangesConfig_ = - additionalPodRangesConfigBuilder_ == null - ? additionalPodRangesConfig_ - : additionalPodRangesConfigBuilder_.build(); - to_bitField0_ |= 0x40000000; - } - if (((from_bitField1_ & 0x00000400) != 0)) { - result.removedAdditionalPodRangesConfig_ = - removedAdditionalPodRangesConfigBuilder_ == null - ? removedAdditionalPodRangesConfig_ - : removedAdditionalPodRangesConfigBuilder_.build(); - to_bitField0_ |= 0x80000000; - } - int to_bitField1_ = 0; - if (((from_bitField1_ & 0x00000800) != 0)) { - result.enableK8SBetaApis_ = - enableK8SBetaApisBuilder_ == null - ? enableK8SBetaApis_ - : enableK8SBetaApisBuilder_.build(); - to_bitField1_ |= 0x00000001; - } - if (((from_bitField1_ & 0x00001000) != 0)) { - result.desiredSecurityPostureConfig_ = - desiredSecurityPostureConfigBuilder_ == null - ? desiredSecurityPostureConfig_ - : desiredSecurityPostureConfigBuilder_.build(); - to_bitField1_ |= 0x00000002; - } - if (((from_bitField1_ & 0x00002000) != 0)) { - result.desiredNetworkPerformanceConfig_ = - desiredNetworkPerformanceConfigBuilder_ == null - ? desiredNetworkPerformanceConfig_ - : desiredNetworkPerformanceConfigBuilder_.build(); - to_bitField1_ |= 0x00000004; - } - if (((from_bitField1_ & 0x00004000) != 0)) { - result.desiredEnableFqdnNetworkPolicy_ = desiredEnableFqdnNetworkPolicy_; - to_bitField1_ |= 0x00000008; - } - if (((from_bitField1_ & 0x00008000) != 0)) { - result.desiredAutopilotWorkloadPolicyConfig_ = - desiredAutopilotWorkloadPolicyConfigBuilder_ == null - ? desiredAutopilotWorkloadPolicyConfig_ - : desiredAutopilotWorkloadPolicyConfigBuilder_.build(); - to_bitField1_ |= 0x00000010; - } - if (((from_bitField1_ & 0x00010000) != 0)) { - result.desiredK8SBetaApis_ = - desiredK8SBetaApisBuilder_ == null - ? desiredK8SBetaApis_ - : desiredK8SBetaApisBuilder_.build(); - to_bitField1_ |= 0x00000020; - } - if (((from_bitField1_ & 0x00020000) != 0)) { - result.desiredNodePoolAutoConfigResourceManagerTags_ = - desiredNodePoolAutoConfigResourceManagerTagsBuilder_ == null - ? desiredNodePoolAutoConfigResourceManagerTags_ - : desiredNodePoolAutoConfigResourceManagerTagsBuilder_.build(); - to_bitField1_ |= 0x00000040; - } - if (((from_bitField1_ & 0x00040000) != 0)) { - result.desiredInTransitEncryptionConfig_ = desiredInTransitEncryptionConfig_; - to_bitField1_ |= 0x00000080; - } - result.bitField0_ |= to_bitField0_; - result.bitField1_ |= to_bitField1_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ClusterUpdate) { - return mergeFrom((com.google.container.v1.ClusterUpdate) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ClusterUpdate other) { - if (other == com.google.container.v1.ClusterUpdate.getDefaultInstance()) return this; - if (!other.getDesiredNodeVersion().isEmpty()) { - desiredNodeVersion_ = other.desiredNodeVersion_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getDesiredMonitoringService().isEmpty()) { - desiredMonitoringService_ = other.desiredMonitoringService_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasDesiredAddonsConfig()) { - mergeDesiredAddonsConfig(other.getDesiredAddonsConfig()); - } - if (!other.getDesiredNodePoolId().isEmpty()) { - desiredNodePoolId_ = other.desiredNodePoolId_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getDesiredImageType().isEmpty()) { - desiredImageType_ = other.desiredImageType_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (other.hasDesiredDatabaseEncryption()) { - mergeDesiredDatabaseEncryption(other.getDesiredDatabaseEncryption()); - } - if (other.hasDesiredWorkloadIdentityConfig()) { - mergeDesiredWorkloadIdentityConfig(other.getDesiredWorkloadIdentityConfig()); - } - if (other.hasDesiredMeshCertificates()) { - mergeDesiredMeshCertificates(other.getDesiredMeshCertificates()); - } - if (other.hasDesiredShieldedNodes()) { - mergeDesiredShieldedNodes(other.getDesiredShieldedNodes()); - } - if (other.hasDesiredCostManagementConfig()) { - mergeDesiredCostManagementConfig(other.getDesiredCostManagementConfig()); - } - if (other.hasDesiredDnsConfig()) { - mergeDesiredDnsConfig(other.getDesiredDnsConfig()); - } - if (other.hasDesiredNodePoolAutoscaling()) { - mergeDesiredNodePoolAutoscaling(other.getDesiredNodePoolAutoscaling()); - } - if (!other.desiredLocations_.isEmpty()) { - if (desiredLocations_.isEmpty()) { - desiredLocations_ = other.desiredLocations_; - bitField0_ |= 0x00001000; - } else { - ensureDesiredLocationsIsMutable(); - desiredLocations_.addAll(other.desiredLocations_); - } - onChanged(); - } - if (other.hasDesiredMasterAuthorizedNetworksConfig()) { - mergeDesiredMasterAuthorizedNetworksConfig( - other.getDesiredMasterAuthorizedNetworksConfig()); - } - if (other.hasDesiredClusterAutoscaling()) { - mergeDesiredClusterAutoscaling(other.getDesiredClusterAutoscaling()); - } - if (other.hasDesiredBinaryAuthorization()) { - mergeDesiredBinaryAuthorization(other.getDesiredBinaryAuthorization()); - } - if (!other.getDesiredLoggingService().isEmpty()) { - desiredLoggingService_ = other.desiredLoggingService_; - bitField0_ |= 0x00010000; - 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.hasDesiredReleaseChannel()) { - mergeDesiredReleaseChannel(other.getDesiredReleaseChannel()); - } - if (other.hasDesiredL4IlbSubsettingConfig()) { - mergeDesiredL4IlbSubsettingConfig(other.getDesiredL4IlbSubsettingConfig()); - } - if (other.desiredDatapathProvider_ != 0) { - setDesiredDatapathProviderValue(other.getDesiredDatapathProviderValue()); - } - if (other.desiredPrivateIpv6GoogleAccess_ != 0) { - setDesiredPrivateIpv6GoogleAccessValue(other.getDesiredPrivateIpv6GoogleAccessValue()); - } - if (other.hasDesiredNotificationConfig()) { - mergeDesiredNotificationConfig(other.getDesiredNotificationConfig()); - } - if (other.hasDesiredAuthenticatorGroupsConfig()) { - mergeDesiredAuthenticatorGroupsConfig(other.getDesiredAuthenticatorGroupsConfig()); - } - if (other.hasDesiredLoggingConfig()) { - mergeDesiredLoggingConfig(other.getDesiredLoggingConfig()); - } - if (other.hasDesiredMonitoringConfig()) { - mergeDesiredMonitoringConfig(other.getDesiredMonitoringConfig()); - } - if (other.hasDesiredIdentityServiceConfig()) { - mergeDesiredIdentityServiceConfig(other.getDesiredIdentityServiceConfig()); - } - if (other.hasDesiredServiceExternalIpsConfig()) { - mergeDesiredServiceExternalIpsConfig(other.getDesiredServiceExternalIpsConfig()); - } - if (other.hasDesiredEnablePrivateEndpoint()) { - setDesiredEnablePrivateEndpoint(other.getDesiredEnablePrivateEndpoint()); - } - if (!other.getDesiredMasterVersion().isEmpty()) { - desiredMasterVersion_ = other.desiredMasterVersion_; - bitField1_ |= 0x00000002; - onChanged(); - } - if (other.hasDesiredGcfsConfig()) { - mergeDesiredGcfsConfig(other.getDesiredGcfsConfig()); - } - if (other.hasDesiredNodePoolAutoConfigNetworkTags()) { - mergeDesiredNodePoolAutoConfigNetworkTags(other.getDesiredNodePoolAutoConfigNetworkTags()); - } - if (other.hasDesiredGatewayApiConfig()) { - mergeDesiredGatewayApiConfig(other.getDesiredGatewayApiConfig()); - } - if (!other.getEtag().isEmpty()) { - etag_ = other.etag_; - bitField1_ |= 0x00000020; - onChanged(); - } - if (other.hasDesiredNodePoolLoggingConfig()) { - mergeDesiredNodePoolLoggingConfig(other.getDesiredNodePoolLoggingConfig()); - } - if (other.hasDesiredFleet()) { - mergeDesiredFleet(other.getDesiredFleet()); - } - if (other.desiredStackType_ != 0) { - setDesiredStackTypeValue(other.getDesiredStackTypeValue()); - } - if (other.hasAdditionalPodRangesConfig()) { - mergeAdditionalPodRangesConfig(other.getAdditionalPodRangesConfig()); - } - if (other.hasRemovedAdditionalPodRangesConfig()) { - mergeRemovedAdditionalPodRangesConfig(other.getRemovedAdditionalPodRangesConfig()); - } - if (other.hasEnableK8SBetaApis()) { - mergeEnableK8SBetaApis(other.getEnableK8SBetaApis()); - } - if (other.hasDesiredSecurityPostureConfig()) { - mergeDesiredSecurityPostureConfig(other.getDesiredSecurityPostureConfig()); - } - if (other.hasDesiredNetworkPerformanceConfig()) { - mergeDesiredNetworkPerformanceConfig(other.getDesiredNetworkPerformanceConfig()); - } - if (other.hasDesiredEnableFqdnNetworkPolicy()) { - setDesiredEnableFqdnNetworkPolicy(other.getDesiredEnableFqdnNetworkPolicy()); - } - if (other.hasDesiredAutopilotWorkloadPolicyConfig()) { - mergeDesiredAutopilotWorkloadPolicyConfig(other.getDesiredAutopilotWorkloadPolicyConfig()); - } - if (other.hasDesiredK8SBetaApis()) { - mergeDesiredK8SBetaApis(other.getDesiredK8SBetaApis()); - } - if (other.hasDesiredNodePoolAutoConfigResourceManagerTags()) { - mergeDesiredNodePoolAutoConfigResourceManagerTags( - other.getDesiredNodePoolAutoConfigResourceManagerTags()); - } - if (other.hasDesiredInTransitEncryptionConfig()) { - setDesiredInTransitEncryptionConfig(other.getDesiredInTransitEncryptionConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 34: - { - desiredNodeVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 34 - case 42: - { - desiredMonitoringService_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 42 - case 50: - { - input.readMessage( - getDesiredAddonsConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 50 - case 58: - { - desiredNodePoolId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 58 - case 66: - { - desiredImageType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 66 - case 74: - { - input.readMessage( - getDesiredNodePoolAutoscalingFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; - break; - } // case 74 - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureDesiredLocationsIsMutable(); - desiredLocations_.add(s); - break; - } // case 82 - case 98: - { - input.readMessage( - getDesiredMasterAuthorizedNetworksConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00002000; - break; - } // case 98 - case 122: - { - input.readMessage( - getDesiredClusterAutoscalingFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; - break; - } // case 122 - case 130: - { - input.readMessage( - getDesiredBinaryAuthorizationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00008000; - break; - } // case 130 - case 154: - { - desiredLoggingService_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00010000; - break; - } // case 154 - case 170: - { - input.readMessage( - getDesiredResourceUsageExportConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00020000; - break; - } // case 170 - case 178: - { - input.readMessage( - getDesiredVerticalPodAutoscalingFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00040000; - break; - } // case 178 - case 202: - { - input.readMessage( - getDesiredPrivateClusterConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00080000; - break; - } // case 202 - case 210: - { - input.readMessage( - getDesiredIntraNodeVisibilityConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00100000; - break; - } // case 210 - case 226: - { - input.readMessage( - getDesiredDefaultSnatStatusFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00200000; - break; - } // case 226 - case 250: - { - input.readMessage( - getDesiredReleaseChannelFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00400000; - break; - } // case 250 - case 314: - { - input.readMessage( - getDesiredL4IlbSubsettingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00800000; - break; - } // case 314 - case 370: - { - input.readMessage( - getDesiredDatabaseEncryptionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 370 - case 378: - { - input.readMessage( - getDesiredWorkloadIdentityConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 378 - case 386: - { - input.readMessage( - getDesiredShieldedNodesFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 386 - case 394: - { - input.readMessage( - getDesiredCostManagementConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 394 - case 400: - { - desiredDatapathProvider_ = input.readEnum(); - bitField0_ |= 0x01000000; - break; - } // case 400 - case 408: - { - desiredPrivateIpv6GoogleAccess_ = input.readEnum(); - bitField0_ |= 0x02000000; - break; - } // case 408 - case 426: - { - input.readMessage( - getDesiredDnsConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; - break; - } // case 426 - case 442: - { - input.readMessage( - getDesiredNotificationConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x04000000; - break; - } // case 442 - case 482: - { - input.readMessage( - getDesiredServiceExternalIpsConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x80000000; - break; - } // case 482 - case 506: - { - input.readMessage( - getDesiredAuthenticatorGroupsConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x08000000; - break; - } // case 506 - case 514: - { - input.readMessage( - getDesiredLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x10000000; - break; - } // case 514 - case 522: - { - input.readMessage( - getDesiredMonitoringConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x20000000; - break; - } // case 522 - case 530: - { - input.readMessage( - getDesiredIdentityServiceConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x40000000; - break; - } // case 530 - case 538: - { - input.readMessage( - getDesiredMeshCertificatesFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 538 - case 568: - { - desiredEnablePrivateEndpoint_ = input.readBool(); - bitField1_ |= 0x00000001; - break; - } // case 568 - case 802: - { - desiredMasterVersion_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00000002; - break; - } // case 802 - case 874: - { - input.readMessage( - getDesiredGcfsConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000004; - break; - } // case 874 - case 882: - { - input.readMessage( - getDesiredNodePoolAutoConfigNetworkTagsFieldBuilder().getBuilder(), - extensionRegistry); - bitField1_ |= 0x00000008; - break; - } // case 882 - case 914: - { - input.readMessage( - getDesiredGatewayApiConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000010; - break; - } // case 914 - case 922: - { - etag_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00000020; - break; - } // case 922 - case 930: - { - input.readMessage( - getDesiredNodePoolLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000040; - break; - } // case 930 - case 938: - { - input.readMessage(getDesiredFleetFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000080; - break; - } // case 938 - case 952: - { - desiredStackType_ = input.readEnum(); - bitField1_ |= 0x00000100; - break; - } // case 952 - case 962: - { - input.readMessage( - getAdditionalPodRangesConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000200; - break; - } // case 962 - case 970: - { - input.readMessage( - getRemovedAdditionalPodRangesConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField1_ |= 0x00000400; - break; - } // case 970 - case 978: - { - input.readMessage( - getEnableK8SBetaApisFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000800; - break; - } // case 978 - case 994: - { - input.readMessage( - getDesiredSecurityPostureConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00001000; - break; - } // case 994 - case 1002: - { - input.readMessage( - getDesiredNetworkPerformanceConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField1_ |= 0x00002000; - break; - } // case 1002 - case 1008: - { - desiredEnableFqdnNetworkPolicy_ = input.readBool(); - bitField1_ |= 0x00004000; - break; - } // case 1008 - case 1026: - { - input.readMessage( - getDesiredAutopilotWorkloadPolicyConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField1_ |= 0x00008000; - break; - } // case 1026 - case 1050: - { - input.readMessage( - getDesiredK8SBetaApisFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00010000; - break; - } // case 1050 - case 1090: - { - input.readMessage( - getDesiredNodePoolAutoConfigResourceManagerTagsFieldBuilder().getBuilder(), - extensionRegistry); - bitField1_ |= 0x00020000; - break; - } // case 1090 - case 1096: - { - desiredInTransitEncryptionConfig_ = input.readEnum(); - bitField1_ |= 0x00040000; - break; - } // case 1096 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - private int bitField1_; - - 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; - bitField0_ |= 0x00000001; - 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(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - 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; - bitField0_ |= 0x00000002; - 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(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.container.v1.AddonsConfig desiredAddonsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AddonsConfig, - com.google.container.v1.AddonsConfig.Builder, - com.google.container.v1.AddonsConfigOrBuilder> - desiredAddonsConfigBuilder_; - /** - * - * - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1.AddonsConfig desired_addons_config = 6; - * - * @return Whether the desiredAddonsConfig field is set. - */ - public boolean hasDesiredAddonsConfig() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1.AddonsConfig desired_addons_config = 6; - * - * @return The desiredAddonsConfig. - */ - public com.google.container.v1.AddonsConfig getDesiredAddonsConfig() { - if (desiredAddonsConfigBuilder_ == null) { - return desiredAddonsConfig_ == null - ? com.google.container.v1.AddonsConfig.getDefaultInstance() - : desiredAddonsConfig_; - } else { - return desiredAddonsConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1.AddonsConfig desired_addons_config = 6; - */ - public Builder setDesiredAddonsConfig(com.google.container.v1.AddonsConfig value) { - if (desiredAddonsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredAddonsConfig_ = value; - } else { - desiredAddonsConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1.AddonsConfig desired_addons_config = 6; - */ - public Builder setDesiredAddonsConfig( - com.google.container.v1.AddonsConfig.Builder builderForValue) { - if (desiredAddonsConfigBuilder_ == null) { - desiredAddonsConfig_ = builderForValue.build(); - } else { - desiredAddonsConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1.AddonsConfig desired_addons_config = 6; - */ - public Builder mergeDesiredAddonsConfig(com.google.container.v1.AddonsConfig value) { - if (desiredAddonsConfigBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && desiredAddonsConfig_ != null - && desiredAddonsConfig_ != com.google.container.v1.AddonsConfig.getDefaultInstance()) { - getDesiredAddonsConfigBuilder().mergeFrom(value); - } else { - desiredAddonsConfig_ = value; - } - } else { - desiredAddonsConfigBuilder_.mergeFrom(value); - } - if (desiredAddonsConfig_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1.AddonsConfig desired_addons_config = 6; - */ - public Builder clearDesiredAddonsConfig() { - bitField0_ = (bitField0_ & ~0x00000004); - desiredAddonsConfig_ = null; - if (desiredAddonsConfigBuilder_ != null) { - desiredAddonsConfigBuilder_.dispose(); - desiredAddonsConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1.AddonsConfig desired_addons_config = 6; - */ - public com.google.container.v1.AddonsConfig.Builder getDesiredAddonsConfigBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getDesiredAddonsConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1.AddonsConfig desired_addons_config = 6; - */ - public com.google.container.v1.AddonsConfigOrBuilder getDesiredAddonsConfigOrBuilder() { - if (desiredAddonsConfigBuilder_ != null) { - return desiredAddonsConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredAddonsConfig_ == null - ? com.google.container.v1.AddonsConfig.getDefaultInstance() - : desiredAddonsConfig_; - } - } - /** - * - * - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1.AddonsConfig desired_addons_config = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AddonsConfig, - com.google.container.v1.AddonsConfig.Builder, - com.google.container.v1.AddonsConfigOrBuilder> - getDesiredAddonsConfigFieldBuilder() { - if (desiredAddonsConfigBuilder_ == null) { - desiredAddonsConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AddonsConfig, - com.google.container.v1.AddonsConfig.Builder, - com.google.container.v1.AddonsConfigOrBuilder>( - getDesiredAddonsConfig(), getParentForChildren(), isClean()); - desiredAddonsConfig_ = null; - } - return desiredAddonsConfigBuilder_; - } - - private java.lang.Object desiredNodePoolId_ = ""; - /** - * - * - *
-     * The node pool to be upgraded. This field is mandatory if
-     * "desired_node_version", "desired_image_family" or
-     * "desired_node_pool_autoscaling" is specified and there is more than one
-     * node pool on the cluster.
-     * 
- * - * string desired_node_pool_id = 7; - * - * @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" or
-     * "desired_node_pool_autoscaling" 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" or
-     * "desired_node_pool_autoscaling" 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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * The node pool to be upgraded. This field is mandatory if
-     * "desired_node_version", "desired_image_family" or
-     * "desired_node_pool_autoscaling" is specified and there is more than one
-     * node pool on the cluster.
-     * 
- * - * string desired_node_pool_id = 7; - * - * @return This builder for chaining. - */ - public Builder clearDesiredNodePoolId() { - desiredNodePoolId_ = getDefaultInstance().getDesiredNodePoolId(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * The node pool to be upgraded. This field is mandatory if
-     * "desired_node_version", "desired_image_family" or
-     * "desired_node_pool_autoscaling" is specified and there is more than one
-     * node pool on the cluster.
-     * 
- * - * string desired_node_pool_id = 7; - * - * @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; - bitField0_ |= 0x00000008; - 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; - bitField0_ |= 0x00000010; - 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(); - bitField0_ = (bitField0_ & ~0x00000010); - 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; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private com.google.container.v1.DatabaseEncryption desiredDatabaseEncryption_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DatabaseEncryption, - com.google.container.v1.DatabaseEncryption.Builder, - com.google.container.v1.DatabaseEncryptionOrBuilder> - desiredDatabaseEncryptionBuilder_; - /** - * - * - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - * - * @return Whether the desiredDatabaseEncryption field is set. - */ - public boolean hasDesiredDatabaseEncryption() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * - * - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - * - * @return The desiredDatabaseEncryption. - */ - public com.google.container.v1.DatabaseEncryption getDesiredDatabaseEncryption() { - if (desiredDatabaseEncryptionBuilder_ == null) { - return desiredDatabaseEncryption_ == null - ? com.google.container.v1.DatabaseEncryption.getDefaultInstance() - : desiredDatabaseEncryption_; - } else { - return desiredDatabaseEncryptionBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - */ - public Builder setDesiredDatabaseEncryption(com.google.container.v1.DatabaseEncryption value) { - if (desiredDatabaseEncryptionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredDatabaseEncryption_ = value; - } else { - desiredDatabaseEncryptionBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - */ - public Builder setDesiredDatabaseEncryption( - com.google.container.v1.DatabaseEncryption.Builder builderForValue) { - if (desiredDatabaseEncryptionBuilder_ == null) { - desiredDatabaseEncryption_ = builderForValue.build(); - } else { - desiredDatabaseEncryptionBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - */ - public Builder mergeDesiredDatabaseEncryption( - com.google.container.v1.DatabaseEncryption value) { - if (desiredDatabaseEncryptionBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && desiredDatabaseEncryption_ != null - && desiredDatabaseEncryption_ - != com.google.container.v1.DatabaseEncryption.getDefaultInstance()) { - getDesiredDatabaseEncryptionBuilder().mergeFrom(value); - } else { - desiredDatabaseEncryption_ = value; - } - } else { - desiredDatabaseEncryptionBuilder_.mergeFrom(value); - } - if (desiredDatabaseEncryption_ != null) { - bitField0_ |= 0x00000020; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - */ - public Builder clearDesiredDatabaseEncryption() { - bitField0_ = (bitField0_ & ~0x00000020); - desiredDatabaseEncryption_ = null; - if (desiredDatabaseEncryptionBuilder_ != null) { - desiredDatabaseEncryptionBuilder_.dispose(); - desiredDatabaseEncryptionBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - */ - public com.google.container.v1.DatabaseEncryption.Builder - getDesiredDatabaseEncryptionBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getDesiredDatabaseEncryptionFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - */ - public com.google.container.v1.DatabaseEncryptionOrBuilder - getDesiredDatabaseEncryptionOrBuilder() { - if (desiredDatabaseEncryptionBuilder_ != null) { - return desiredDatabaseEncryptionBuilder_.getMessageOrBuilder(); - } else { - return desiredDatabaseEncryption_ == null - ? com.google.container.v1.DatabaseEncryption.getDefaultInstance() - : desiredDatabaseEncryption_; - } - } - /** - * - * - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DatabaseEncryption, - com.google.container.v1.DatabaseEncryption.Builder, - com.google.container.v1.DatabaseEncryptionOrBuilder> - getDesiredDatabaseEncryptionFieldBuilder() { - if (desiredDatabaseEncryptionBuilder_ == null) { - desiredDatabaseEncryptionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DatabaseEncryption, - com.google.container.v1.DatabaseEncryption.Builder, - com.google.container.v1.DatabaseEncryptionOrBuilder>( - getDesiredDatabaseEncryption(), getParentForChildren(), isClean()); - desiredDatabaseEncryption_ = null; - } - return desiredDatabaseEncryptionBuilder_; - } - - private com.google.container.v1.WorkloadIdentityConfig desiredWorkloadIdentityConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WorkloadIdentityConfig, - com.google.container.v1.WorkloadIdentityConfig.Builder, - com.google.container.v1.WorkloadIdentityConfigOrBuilder> - desiredWorkloadIdentityConfigBuilder_; - /** - * - * - *
-     * Configuration for Workload Identity.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * - * - * @return Whether the desiredWorkloadIdentityConfig field is set. - */ - public boolean hasDesiredWorkloadIdentityConfig() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * - * - *
-     * Configuration for Workload Identity.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * - * - * @return The desiredWorkloadIdentityConfig. - */ - public com.google.container.v1.WorkloadIdentityConfig getDesiredWorkloadIdentityConfig() { - if (desiredWorkloadIdentityConfigBuilder_ == null) { - return desiredWorkloadIdentityConfig_ == null - ? com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance() - : desiredWorkloadIdentityConfig_; - } else { - return desiredWorkloadIdentityConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for Workload Identity.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * - */ - public Builder setDesiredWorkloadIdentityConfig( - com.google.container.v1.WorkloadIdentityConfig value) { - if (desiredWorkloadIdentityConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredWorkloadIdentityConfig_ = value; - } else { - desiredWorkloadIdentityConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for Workload Identity.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * - */ - public Builder setDesiredWorkloadIdentityConfig( - com.google.container.v1.WorkloadIdentityConfig.Builder builderForValue) { - if (desiredWorkloadIdentityConfigBuilder_ == null) { - desiredWorkloadIdentityConfig_ = builderForValue.build(); - } else { - desiredWorkloadIdentityConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for Workload Identity.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * - */ - public Builder mergeDesiredWorkloadIdentityConfig( - com.google.container.v1.WorkloadIdentityConfig value) { - if (desiredWorkloadIdentityConfigBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && desiredWorkloadIdentityConfig_ != null - && desiredWorkloadIdentityConfig_ - != com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance()) { - getDesiredWorkloadIdentityConfigBuilder().mergeFrom(value); - } else { - desiredWorkloadIdentityConfig_ = value; - } - } else { - desiredWorkloadIdentityConfigBuilder_.mergeFrom(value); - } - if (desiredWorkloadIdentityConfig_ != null) { - bitField0_ |= 0x00000040; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for Workload Identity.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * - */ - public Builder clearDesiredWorkloadIdentityConfig() { - bitField0_ = (bitField0_ & ~0x00000040); - desiredWorkloadIdentityConfig_ = null; - if (desiredWorkloadIdentityConfigBuilder_ != null) { - desiredWorkloadIdentityConfigBuilder_.dispose(); - desiredWorkloadIdentityConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for Workload Identity.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * - */ - public com.google.container.v1.WorkloadIdentityConfig.Builder - getDesiredWorkloadIdentityConfigBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return getDesiredWorkloadIdentityConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for Workload Identity.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * - */ - public com.google.container.v1.WorkloadIdentityConfigOrBuilder - getDesiredWorkloadIdentityConfigOrBuilder() { - if (desiredWorkloadIdentityConfigBuilder_ != null) { - return desiredWorkloadIdentityConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredWorkloadIdentityConfig_ == null - ? com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance() - : desiredWorkloadIdentityConfig_; - } - } - /** - * - * - *
-     * Configuration for Workload Identity.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WorkloadIdentityConfig, - com.google.container.v1.WorkloadIdentityConfig.Builder, - com.google.container.v1.WorkloadIdentityConfigOrBuilder> - getDesiredWorkloadIdentityConfigFieldBuilder() { - if (desiredWorkloadIdentityConfigBuilder_ == null) { - desiredWorkloadIdentityConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WorkloadIdentityConfig, - com.google.container.v1.WorkloadIdentityConfig.Builder, - com.google.container.v1.WorkloadIdentityConfigOrBuilder>( - getDesiredWorkloadIdentityConfig(), getParentForChildren(), isClean()); - desiredWorkloadIdentityConfig_ = null; - } - return desiredWorkloadIdentityConfigBuilder_; - } - - private com.google.container.v1.MeshCertificates desiredMeshCertificates_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MeshCertificates, - com.google.container.v1.MeshCertificates.Builder, - com.google.container.v1.MeshCertificatesOrBuilder> - desiredMeshCertificatesBuilder_; - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; - * - * @return Whether the desiredMeshCertificates field is set. - */ - public boolean hasDesiredMeshCertificates() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; - * - * @return The desiredMeshCertificates. - */ - public com.google.container.v1.MeshCertificates getDesiredMeshCertificates() { - if (desiredMeshCertificatesBuilder_ == null) { - return desiredMeshCertificates_ == null - ? com.google.container.v1.MeshCertificates.getDefaultInstance() - : desiredMeshCertificates_; - } else { - return desiredMeshCertificatesBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; - */ - public Builder setDesiredMeshCertificates(com.google.container.v1.MeshCertificates value) { - if (desiredMeshCertificatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredMeshCertificates_ = value; - } else { - desiredMeshCertificatesBuilder_.setMessage(value); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; - */ - public Builder setDesiredMeshCertificates( - com.google.container.v1.MeshCertificates.Builder builderForValue) { - if (desiredMeshCertificatesBuilder_ == null) { - desiredMeshCertificates_ = builderForValue.build(); - } else { - desiredMeshCertificatesBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; - */ - public Builder mergeDesiredMeshCertificates(com.google.container.v1.MeshCertificates value) { - if (desiredMeshCertificatesBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && desiredMeshCertificates_ != null - && desiredMeshCertificates_ - != com.google.container.v1.MeshCertificates.getDefaultInstance()) { - getDesiredMeshCertificatesBuilder().mergeFrom(value); - } else { - desiredMeshCertificates_ = value; - } - } else { - desiredMeshCertificatesBuilder_.mergeFrom(value); - } - if (desiredMeshCertificates_ != null) { - bitField0_ |= 0x00000080; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; - */ - public Builder clearDesiredMeshCertificates() { - bitField0_ = (bitField0_ & ~0x00000080); - desiredMeshCertificates_ = null; - if (desiredMeshCertificatesBuilder_ != null) { - desiredMeshCertificatesBuilder_.dispose(); - desiredMeshCertificatesBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; - */ - public com.google.container.v1.MeshCertificates.Builder getDesiredMeshCertificatesBuilder() { - bitField0_ |= 0x00000080; - onChanged(); - return getDesiredMeshCertificatesFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; - */ - public com.google.container.v1.MeshCertificatesOrBuilder getDesiredMeshCertificatesOrBuilder() { - if (desiredMeshCertificatesBuilder_ != null) { - return desiredMeshCertificatesBuilder_.getMessageOrBuilder(); - } else { - return desiredMeshCertificates_ == null - ? com.google.container.v1.MeshCertificates.getDefaultInstance() - : desiredMeshCertificates_; - } - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MeshCertificates, - com.google.container.v1.MeshCertificates.Builder, - com.google.container.v1.MeshCertificatesOrBuilder> - getDesiredMeshCertificatesFieldBuilder() { - if (desiredMeshCertificatesBuilder_ == null) { - desiredMeshCertificatesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MeshCertificates, - com.google.container.v1.MeshCertificates.Builder, - com.google.container.v1.MeshCertificatesOrBuilder>( - getDesiredMeshCertificates(), getParentForChildren(), isClean()); - desiredMeshCertificates_ = null; - } - return desiredMeshCertificatesBuilder_; - } - - private com.google.container.v1.ShieldedNodes desiredShieldedNodes_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ShieldedNodes, - com.google.container.v1.ShieldedNodes.Builder, - com.google.container.v1.ShieldedNodesOrBuilder> - desiredShieldedNodesBuilder_; - /** - * - * - *
-     * Configuration for Shielded Nodes.
-     * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - * - * @return Whether the desiredShieldedNodes field is set. - */ - public boolean hasDesiredShieldedNodes() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * - * - *
-     * Configuration for Shielded Nodes.
-     * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - * - * @return The desiredShieldedNodes. - */ - public com.google.container.v1.ShieldedNodes getDesiredShieldedNodes() { - if (desiredShieldedNodesBuilder_ == null) { - return desiredShieldedNodes_ == null - ? com.google.container.v1.ShieldedNodes.getDefaultInstance() - : desiredShieldedNodes_; - } else { - return desiredShieldedNodesBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for Shielded Nodes.
-     * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - */ - public Builder setDesiredShieldedNodes(com.google.container.v1.ShieldedNodes value) { - if (desiredShieldedNodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredShieldedNodes_ = value; - } else { - desiredShieldedNodesBuilder_.setMessage(value); - } - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for Shielded Nodes.
-     * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - */ - public Builder setDesiredShieldedNodes( - com.google.container.v1.ShieldedNodes.Builder builderForValue) { - if (desiredShieldedNodesBuilder_ == null) { - desiredShieldedNodes_ = builderForValue.build(); - } else { - desiredShieldedNodesBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for Shielded Nodes.
-     * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - */ - public Builder mergeDesiredShieldedNodes(com.google.container.v1.ShieldedNodes value) { - if (desiredShieldedNodesBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && desiredShieldedNodes_ != null - && desiredShieldedNodes_ - != com.google.container.v1.ShieldedNodes.getDefaultInstance()) { - getDesiredShieldedNodesBuilder().mergeFrom(value); - } else { - desiredShieldedNodes_ = value; - } - } else { - desiredShieldedNodesBuilder_.mergeFrom(value); - } - if (desiredShieldedNodes_ != null) { - bitField0_ |= 0x00000100; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for Shielded Nodes.
-     * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - */ - public Builder clearDesiredShieldedNodes() { - bitField0_ = (bitField0_ & ~0x00000100); - desiredShieldedNodes_ = null; - if (desiredShieldedNodesBuilder_ != null) { - desiredShieldedNodesBuilder_.dispose(); - desiredShieldedNodesBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for Shielded Nodes.
-     * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - */ - public com.google.container.v1.ShieldedNodes.Builder getDesiredShieldedNodesBuilder() { - bitField0_ |= 0x00000100; - onChanged(); - return getDesiredShieldedNodesFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for Shielded Nodes.
-     * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - */ - public com.google.container.v1.ShieldedNodesOrBuilder getDesiredShieldedNodesOrBuilder() { - if (desiredShieldedNodesBuilder_ != null) { - return desiredShieldedNodesBuilder_.getMessageOrBuilder(); - } else { - return desiredShieldedNodes_ == null - ? com.google.container.v1.ShieldedNodes.getDefaultInstance() - : desiredShieldedNodes_; - } - } - /** - * - * - *
-     * Configuration for Shielded Nodes.
-     * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ShieldedNodes, - com.google.container.v1.ShieldedNodes.Builder, - com.google.container.v1.ShieldedNodesOrBuilder> - getDesiredShieldedNodesFieldBuilder() { - if (desiredShieldedNodesBuilder_ == null) { - desiredShieldedNodesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ShieldedNodes, - com.google.container.v1.ShieldedNodes.Builder, - com.google.container.v1.ShieldedNodesOrBuilder>( - getDesiredShieldedNodes(), getParentForChildren(), isClean()); - desiredShieldedNodes_ = null; - } - return desiredShieldedNodesBuilder_; - } - - private com.google.container.v1.CostManagementConfig desiredCostManagementConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.CostManagementConfig, - com.google.container.v1.CostManagementConfig.Builder, - com.google.container.v1.CostManagementConfigOrBuilder> - desiredCostManagementConfigBuilder_; - /** - * - * - *
-     * The desired configuration for the fine-grained cost management feature.
-     * 
- * - * .google.container.v1.CostManagementConfig desired_cost_management_config = 49; - * - * @return Whether the desiredCostManagementConfig field is set. - */ - public boolean hasDesiredCostManagementConfig() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * - * - *
-     * The desired configuration for the fine-grained cost management feature.
-     * 
- * - * .google.container.v1.CostManagementConfig desired_cost_management_config = 49; - * - * @return The desiredCostManagementConfig. - */ - public com.google.container.v1.CostManagementConfig getDesiredCostManagementConfig() { - if (desiredCostManagementConfigBuilder_ == null) { - return desiredCostManagementConfig_ == null - ? com.google.container.v1.CostManagementConfig.getDefaultInstance() - : desiredCostManagementConfig_; - } else { - return desiredCostManagementConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired configuration for the fine-grained cost management feature.
-     * 
- * - * .google.container.v1.CostManagementConfig desired_cost_management_config = 49; - */ - public Builder setDesiredCostManagementConfig( - com.google.container.v1.CostManagementConfig value) { - if (desiredCostManagementConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredCostManagementConfig_ = value; - } else { - desiredCostManagementConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired configuration for the fine-grained cost management feature.
-     * 
- * - * .google.container.v1.CostManagementConfig desired_cost_management_config = 49; - */ - public Builder setDesiredCostManagementConfig( - com.google.container.v1.CostManagementConfig.Builder builderForValue) { - if (desiredCostManagementConfigBuilder_ == null) { - desiredCostManagementConfig_ = builderForValue.build(); - } else { - desiredCostManagementConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired configuration for the fine-grained cost management feature.
-     * 
- * - * .google.container.v1.CostManagementConfig desired_cost_management_config = 49; - */ - public Builder mergeDesiredCostManagementConfig( - com.google.container.v1.CostManagementConfig value) { - if (desiredCostManagementConfigBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && desiredCostManagementConfig_ != null - && desiredCostManagementConfig_ - != com.google.container.v1.CostManagementConfig.getDefaultInstance()) { - getDesiredCostManagementConfigBuilder().mergeFrom(value); - } else { - desiredCostManagementConfig_ = value; - } - } else { - desiredCostManagementConfigBuilder_.mergeFrom(value); - } - if (desiredCostManagementConfig_ != null) { - bitField0_ |= 0x00000200; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired configuration for the fine-grained cost management feature.
-     * 
- * - * .google.container.v1.CostManagementConfig desired_cost_management_config = 49; - */ - public Builder clearDesiredCostManagementConfig() { - bitField0_ = (bitField0_ & ~0x00000200); - desiredCostManagementConfig_ = null; - if (desiredCostManagementConfigBuilder_ != null) { - desiredCostManagementConfigBuilder_.dispose(); - desiredCostManagementConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired configuration for the fine-grained cost management feature.
-     * 
- * - * .google.container.v1.CostManagementConfig desired_cost_management_config = 49; - */ - public com.google.container.v1.CostManagementConfig.Builder - getDesiredCostManagementConfigBuilder() { - bitField0_ |= 0x00000200; - onChanged(); - return getDesiredCostManagementConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired configuration for the fine-grained cost management feature.
-     * 
- * - * .google.container.v1.CostManagementConfig desired_cost_management_config = 49; - */ - public com.google.container.v1.CostManagementConfigOrBuilder - getDesiredCostManagementConfigOrBuilder() { - if (desiredCostManagementConfigBuilder_ != null) { - return desiredCostManagementConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredCostManagementConfig_ == null - ? com.google.container.v1.CostManagementConfig.getDefaultInstance() - : desiredCostManagementConfig_; - } - } - /** - * - * - *
-     * The desired configuration for the fine-grained cost management feature.
-     * 
- * - * .google.container.v1.CostManagementConfig desired_cost_management_config = 49; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.CostManagementConfig, - com.google.container.v1.CostManagementConfig.Builder, - com.google.container.v1.CostManagementConfigOrBuilder> - getDesiredCostManagementConfigFieldBuilder() { - if (desiredCostManagementConfigBuilder_ == null) { - desiredCostManagementConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.CostManagementConfig, - com.google.container.v1.CostManagementConfig.Builder, - com.google.container.v1.CostManagementConfigOrBuilder>( - getDesiredCostManagementConfig(), getParentForChildren(), isClean()); - desiredCostManagementConfig_ = null; - } - return desiredCostManagementConfigBuilder_; - } - - private com.google.container.v1.DNSConfig desiredDnsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DNSConfig, - com.google.container.v1.DNSConfig.Builder, - com.google.container.v1.DNSConfigOrBuilder> - desiredDnsConfigBuilder_; - /** - * - * - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1.DNSConfig desired_dns_config = 53; - * - * @return Whether the desiredDnsConfig field is set. - */ - public boolean hasDesiredDnsConfig() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - * - * - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1.DNSConfig desired_dns_config = 53; - * - * @return The desiredDnsConfig. - */ - public com.google.container.v1.DNSConfig getDesiredDnsConfig() { - if (desiredDnsConfigBuilder_ == null) { - return desiredDnsConfig_ == null - ? com.google.container.v1.DNSConfig.getDefaultInstance() - : desiredDnsConfig_; - } else { - return desiredDnsConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1.DNSConfig desired_dns_config = 53; - */ - public Builder setDesiredDnsConfig(com.google.container.v1.DNSConfig value) { - if (desiredDnsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredDnsConfig_ = value; - } else { - desiredDnsConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * - * - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1.DNSConfig desired_dns_config = 53; - */ - public Builder setDesiredDnsConfig(com.google.container.v1.DNSConfig.Builder builderForValue) { - if (desiredDnsConfigBuilder_ == null) { - desiredDnsConfig_ = builderForValue.build(); - } else { - desiredDnsConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * - * - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1.DNSConfig desired_dns_config = 53; - */ - public Builder mergeDesiredDnsConfig(com.google.container.v1.DNSConfig value) { - if (desiredDnsConfigBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) - && desiredDnsConfig_ != null - && desiredDnsConfig_ != com.google.container.v1.DNSConfig.getDefaultInstance()) { - getDesiredDnsConfigBuilder().mergeFrom(value); - } else { - desiredDnsConfig_ = value; - } - } else { - desiredDnsConfigBuilder_.mergeFrom(value); - } - if (desiredDnsConfig_ != null) { - bitField0_ |= 0x00000400; - onChanged(); - } - return this; - } - /** - * - * - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1.DNSConfig desired_dns_config = 53; - */ - public Builder clearDesiredDnsConfig() { - bitField0_ = (bitField0_ & ~0x00000400); - desiredDnsConfig_ = null; - if (desiredDnsConfigBuilder_ != null) { - desiredDnsConfigBuilder_.dispose(); - desiredDnsConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1.DNSConfig desired_dns_config = 53; - */ - public com.google.container.v1.DNSConfig.Builder getDesiredDnsConfigBuilder() { - bitField0_ |= 0x00000400; - onChanged(); - return getDesiredDnsConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1.DNSConfig desired_dns_config = 53; - */ - public com.google.container.v1.DNSConfigOrBuilder getDesiredDnsConfigOrBuilder() { - if (desiredDnsConfigBuilder_ != null) { - return desiredDnsConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredDnsConfig_ == null - ? com.google.container.v1.DNSConfig.getDefaultInstance() - : desiredDnsConfig_; - } - } - /** - * - * - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1.DNSConfig desired_dns_config = 53; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DNSConfig, - com.google.container.v1.DNSConfig.Builder, - com.google.container.v1.DNSConfigOrBuilder> - getDesiredDnsConfigFieldBuilder() { - if (desiredDnsConfigBuilder_ == null) { - desiredDnsConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DNSConfig, - com.google.container.v1.DNSConfig.Builder, - com.google.container.v1.DNSConfigOrBuilder>( - getDesiredDnsConfig(), getParentForChildren(), isClean()); - desiredDnsConfig_ = null; - } - return desiredDnsConfigBuilder_; - } - - private com.google.container.v1.NodePoolAutoscaling desiredNodePoolAutoscaling_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePoolAutoscaling, - com.google.container.v1.NodePoolAutoscaling.Builder, - com.google.container.v1.NodePoolAutoscalingOrBuilder> - desiredNodePoolAutoscalingBuilder_; - /** - * - * - *
-     * Autoscaler configuration for the node pool specified in
-     * desired_node_pool_id. If there is only one pool in the
-     * cluster and desired_node_pool_id is not provided then
-     * the change applies to that single node pool.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - * - * @return Whether the desiredNodePoolAutoscaling field is set. - */ - public boolean hasDesiredNodePoolAutoscaling() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - * - * - *
-     * Autoscaler configuration for the node pool specified in
-     * desired_node_pool_id. If there is only one pool in the
-     * cluster and desired_node_pool_id is not provided then
-     * the change applies to that single node pool.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - * - * @return The desiredNodePoolAutoscaling. - */ - public com.google.container.v1.NodePoolAutoscaling getDesiredNodePoolAutoscaling() { - if (desiredNodePoolAutoscalingBuilder_ == null) { - return desiredNodePoolAutoscaling_ == null - ? com.google.container.v1.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.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - */ - public Builder setDesiredNodePoolAutoscaling( - com.google.container.v1.NodePoolAutoscaling value) { - if (desiredNodePoolAutoscalingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredNodePoolAutoscaling_ = value; - } else { - desiredNodePoolAutoscalingBuilder_.setMessage(value); - } - bitField0_ |= 0x00000800; - onChanged(); - 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.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - */ - public Builder setDesiredNodePoolAutoscaling( - com.google.container.v1.NodePoolAutoscaling.Builder builderForValue) { - if (desiredNodePoolAutoscalingBuilder_ == null) { - desiredNodePoolAutoscaling_ = builderForValue.build(); - } else { - desiredNodePoolAutoscalingBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000800; - onChanged(); - 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.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - */ - public Builder mergeDesiredNodePoolAutoscaling( - com.google.container.v1.NodePoolAutoscaling value) { - if (desiredNodePoolAutoscalingBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) - && desiredNodePoolAutoscaling_ != null - && desiredNodePoolAutoscaling_ - != com.google.container.v1.NodePoolAutoscaling.getDefaultInstance()) { - getDesiredNodePoolAutoscalingBuilder().mergeFrom(value); - } else { - desiredNodePoolAutoscaling_ = value; - } - } else { - desiredNodePoolAutoscalingBuilder_.mergeFrom(value); - } - if (desiredNodePoolAutoscaling_ != null) { - bitField0_ |= 0x00000800; - onChanged(); - } - 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.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - */ - public Builder clearDesiredNodePoolAutoscaling() { - bitField0_ = (bitField0_ & ~0x00000800); - desiredNodePoolAutoscaling_ = null; - if (desiredNodePoolAutoscalingBuilder_ != null) { - desiredNodePoolAutoscalingBuilder_.dispose(); - desiredNodePoolAutoscalingBuilder_ = null; - } - onChanged(); - 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.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - */ - public com.google.container.v1.NodePoolAutoscaling.Builder - getDesiredNodePoolAutoscalingBuilder() { - bitField0_ |= 0x00000800; - 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.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - */ - public com.google.container.v1.NodePoolAutoscalingOrBuilder - getDesiredNodePoolAutoscalingOrBuilder() { - if (desiredNodePoolAutoscalingBuilder_ != null) { - return desiredNodePoolAutoscalingBuilder_.getMessageOrBuilder(); - } else { - return desiredNodePoolAutoscaling_ == null - ? com.google.container.v1.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.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePoolAutoscaling, - com.google.container.v1.NodePoolAutoscaling.Builder, - com.google.container.v1.NodePoolAutoscalingOrBuilder> - getDesiredNodePoolAutoscalingFieldBuilder() { - if (desiredNodePoolAutoscalingBuilder_ == null) { - desiredNodePoolAutoscalingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePoolAutoscaling, - com.google.container.v1.NodePoolAutoscaling.Builder, - com.google.container.v1.NodePoolAutoscalingOrBuilder>( - getDesiredNodePoolAutoscaling(), getParentForChildren(), isClean()); - desiredNodePoolAutoscaling_ = null; - } - return desiredNodePoolAutoscalingBuilder_; - } - - private com.google.protobuf.LazyStringArrayList desiredLocations_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureDesiredLocationsIsMutable() { - if (!desiredLocations_.isModifiable()) { - desiredLocations_ = new com.google.protobuf.LazyStringArrayList(desiredLocations_); - } - bitField0_ |= 0x00001000; - } - /** - * - * - *
-     * 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() { - desiredLocations_.makeImmutable(); - 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); - } - /** - * - * - *
-     * 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); - bitField0_ |= 0x00001000; - 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); - bitField0_ |= 0x00001000; - 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_); - bitField0_ |= 0x00001000; - 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.emptyList(); - bitField0_ = (bitField0_ & ~0x00001000); - ; - 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); - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - - private com.google.container.v1.MasterAuthorizedNetworksConfig - desiredMasterAuthorizedNetworksConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MasterAuthorizedNetworksConfig, - com.google.container.v1.MasterAuthorizedNetworksConfig.Builder, - com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder> - desiredMasterAuthorizedNetworksConfigBuilder_; - /** - * - * - *
-     * The desired configuration options for master authorized networks feature.
-     * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - * - * - * @return Whether the desiredMasterAuthorizedNetworksConfig field is set. - */ - public boolean hasDesiredMasterAuthorizedNetworksConfig() { - return ((bitField0_ & 0x00002000) != 0); - } - /** - * - * - *
-     * The desired configuration options for master authorized networks feature.
-     * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - * - * - * @return The desiredMasterAuthorizedNetworksConfig. - */ - public com.google.container.v1.MasterAuthorizedNetworksConfig - getDesiredMasterAuthorizedNetworksConfig() { - if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { - return desiredMasterAuthorizedNetworksConfig_ == null - ? com.google.container.v1.MasterAuthorizedNetworksConfig.getDefaultInstance() - : desiredMasterAuthorizedNetworksConfig_; - } else { - return desiredMasterAuthorizedNetworksConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired configuration options for master authorized networks feature.
-     * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - * - */ - public Builder setDesiredMasterAuthorizedNetworksConfig( - com.google.container.v1.MasterAuthorizedNetworksConfig value) { - if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredMasterAuthorizedNetworksConfig_ = value; - } else { - desiredMasterAuthorizedNetworksConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired configuration options for master authorized networks feature.
-     * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - * - */ - public Builder setDesiredMasterAuthorizedNetworksConfig( - com.google.container.v1.MasterAuthorizedNetworksConfig.Builder builderForValue) { - if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { - desiredMasterAuthorizedNetworksConfig_ = builderForValue.build(); - } else { - desiredMasterAuthorizedNetworksConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired configuration options for master authorized networks feature.
-     * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - * - */ - public Builder mergeDesiredMasterAuthorizedNetworksConfig( - com.google.container.v1.MasterAuthorizedNetworksConfig value) { - if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) - && desiredMasterAuthorizedNetworksConfig_ != null - && desiredMasterAuthorizedNetworksConfig_ - != com.google.container.v1.MasterAuthorizedNetworksConfig.getDefaultInstance()) { - getDesiredMasterAuthorizedNetworksConfigBuilder().mergeFrom(value); - } else { - desiredMasterAuthorizedNetworksConfig_ = value; - } - } else { - desiredMasterAuthorizedNetworksConfigBuilder_.mergeFrom(value); - } - if (desiredMasterAuthorizedNetworksConfig_ != null) { - bitField0_ |= 0x00002000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired configuration options for master authorized networks feature.
-     * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - * - */ - public Builder clearDesiredMasterAuthorizedNetworksConfig() { - bitField0_ = (bitField0_ & ~0x00002000); - desiredMasterAuthorizedNetworksConfig_ = null; - if (desiredMasterAuthorizedNetworksConfigBuilder_ != null) { - desiredMasterAuthorizedNetworksConfigBuilder_.dispose(); - desiredMasterAuthorizedNetworksConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired configuration options for master authorized networks feature.
-     * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - * - */ - public com.google.container.v1.MasterAuthorizedNetworksConfig.Builder - getDesiredMasterAuthorizedNetworksConfigBuilder() { - bitField0_ |= 0x00002000; - onChanged(); - return getDesiredMasterAuthorizedNetworksConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired configuration options for master authorized networks feature.
-     * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - * - */ - public com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder - getDesiredMasterAuthorizedNetworksConfigOrBuilder() { - if (desiredMasterAuthorizedNetworksConfigBuilder_ != null) { - return desiredMasterAuthorizedNetworksConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredMasterAuthorizedNetworksConfig_ == null - ? com.google.container.v1.MasterAuthorizedNetworksConfig.getDefaultInstance() - : desiredMasterAuthorizedNetworksConfig_; - } - } - /** - * - * - *
-     * The desired configuration options for master authorized networks feature.
-     * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MasterAuthorizedNetworksConfig, - com.google.container.v1.MasterAuthorizedNetworksConfig.Builder, - com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder> - getDesiredMasterAuthorizedNetworksConfigFieldBuilder() { - if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { - desiredMasterAuthorizedNetworksConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MasterAuthorizedNetworksConfig, - com.google.container.v1.MasterAuthorizedNetworksConfig.Builder, - com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder>( - getDesiredMasterAuthorizedNetworksConfig(), getParentForChildren(), isClean()); - desiredMasterAuthorizedNetworksConfig_ = null; - } - return desiredMasterAuthorizedNetworksConfigBuilder_; - } - - private com.google.container.v1.ClusterAutoscaling desiredClusterAutoscaling_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ClusterAutoscaling, - com.google.container.v1.ClusterAutoscaling.Builder, - com.google.container.v1.ClusterAutoscalingOrBuilder> - desiredClusterAutoscalingBuilder_; - /** - * - * - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - * - * @return Whether the desiredClusterAutoscaling field is set. - */ - public boolean hasDesiredClusterAutoscaling() { - return ((bitField0_ & 0x00004000) != 0); - } - /** - * - * - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - * - * @return The desiredClusterAutoscaling. - */ - public com.google.container.v1.ClusterAutoscaling getDesiredClusterAutoscaling() { - if (desiredClusterAutoscalingBuilder_ == null) { - return desiredClusterAutoscaling_ == null - ? com.google.container.v1.ClusterAutoscaling.getDefaultInstance() - : desiredClusterAutoscaling_; - } else { - return desiredClusterAutoscalingBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - */ - public Builder setDesiredClusterAutoscaling(com.google.container.v1.ClusterAutoscaling value) { - if (desiredClusterAutoscalingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredClusterAutoscaling_ = value; - } else { - desiredClusterAutoscalingBuilder_.setMessage(value); - } - bitField0_ |= 0x00004000; - onChanged(); - return this; - } - /** - * - * - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - */ - public Builder setDesiredClusterAutoscaling( - com.google.container.v1.ClusterAutoscaling.Builder builderForValue) { - if (desiredClusterAutoscalingBuilder_ == null) { - desiredClusterAutoscaling_ = builderForValue.build(); - } else { - desiredClusterAutoscalingBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00004000; - onChanged(); - return this; - } - /** - * - * - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - */ - public Builder mergeDesiredClusterAutoscaling( - com.google.container.v1.ClusterAutoscaling value) { - if (desiredClusterAutoscalingBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) - && desiredClusterAutoscaling_ != null - && desiredClusterAutoscaling_ - != com.google.container.v1.ClusterAutoscaling.getDefaultInstance()) { - getDesiredClusterAutoscalingBuilder().mergeFrom(value); - } else { - desiredClusterAutoscaling_ = value; - } - } else { - desiredClusterAutoscalingBuilder_.mergeFrom(value); - } - if (desiredClusterAutoscaling_ != null) { - bitField0_ |= 0x00004000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - */ - public Builder clearDesiredClusterAutoscaling() { - bitField0_ = (bitField0_ & ~0x00004000); - desiredClusterAutoscaling_ = null; - if (desiredClusterAutoscalingBuilder_ != null) { - desiredClusterAutoscalingBuilder_.dispose(); - desiredClusterAutoscalingBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - */ - public com.google.container.v1.ClusterAutoscaling.Builder - getDesiredClusterAutoscalingBuilder() { - bitField0_ |= 0x00004000; - onChanged(); - return getDesiredClusterAutoscalingFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - */ - public com.google.container.v1.ClusterAutoscalingOrBuilder - getDesiredClusterAutoscalingOrBuilder() { - if (desiredClusterAutoscalingBuilder_ != null) { - return desiredClusterAutoscalingBuilder_.getMessageOrBuilder(); - } else { - return desiredClusterAutoscaling_ == null - ? com.google.container.v1.ClusterAutoscaling.getDefaultInstance() - : desiredClusterAutoscaling_; - } - } - /** - * - * - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ClusterAutoscaling, - com.google.container.v1.ClusterAutoscaling.Builder, - com.google.container.v1.ClusterAutoscalingOrBuilder> - getDesiredClusterAutoscalingFieldBuilder() { - if (desiredClusterAutoscalingBuilder_ == null) { - desiredClusterAutoscalingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ClusterAutoscaling, - com.google.container.v1.ClusterAutoscaling.Builder, - com.google.container.v1.ClusterAutoscalingOrBuilder>( - getDesiredClusterAutoscaling(), getParentForChildren(), isClean()); - desiredClusterAutoscaling_ = null; - } - return desiredClusterAutoscalingBuilder_; - } - - private com.google.container.v1.BinaryAuthorization desiredBinaryAuthorization_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.BinaryAuthorization, - com.google.container.v1.BinaryAuthorization.Builder, - com.google.container.v1.BinaryAuthorizationOrBuilder> - desiredBinaryAuthorizationBuilder_; - /** - * - * - *
-     * The desired configuration options for the Binary Authorization feature.
-     * 
- * - * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; - * - * @return Whether the desiredBinaryAuthorization field is set. - */ - public boolean hasDesiredBinaryAuthorization() { - return ((bitField0_ & 0x00008000) != 0); - } - /** - * - * - *
-     * The desired configuration options for the Binary Authorization feature.
-     * 
- * - * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; - * - * @return The desiredBinaryAuthorization. - */ - public com.google.container.v1.BinaryAuthorization getDesiredBinaryAuthorization() { - if (desiredBinaryAuthorizationBuilder_ == null) { - return desiredBinaryAuthorization_ == null - ? com.google.container.v1.BinaryAuthorization.getDefaultInstance() - : desiredBinaryAuthorization_; - } else { - return desiredBinaryAuthorizationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired configuration options for the Binary Authorization feature.
-     * 
- * - * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; - */ - public Builder setDesiredBinaryAuthorization( - com.google.container.v1.BinaryAuthorization value) { - if (desiredBinaryAuthorizationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredBinaryAuthorization_ = value; - } else { - desiredBinaryAuthorizationBuilder_.setMessage(value); - } - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired configuration options for the Binary Authorization feature.
-     * 
- * - * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; - */ - public Builder setDesiredBinaryAuthorization( - com.google.container.v1.BinaryAuthorization.Builder builderForValue) { - if (desiredBinaryAuthorizationBuilder_ == null) { - desiredBinaryAuthorization_ = builderForValue.build(); - } else { - desiredBinaryAuthorizationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired configuration options for the Binary Authorization feature.
-     * 
- * - * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; - */ - public Builder mergeDesiredBinaryAuthorization( - com.google.container.v1.BinaryAuthorization value) { - if (desiredBinaryAuthorizationBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) - && desiredBinaryAuthorization_ != null - && desiredBinaryAuthorization_ - != com.google.container.v1.BinaryAuthorization.getDefaultInstance()) { - getDesiredBinaryAuthorizationBuilder().mergeFrom(value); - } else { - desiredBinaryAuthorization_ = value; - } - } else { - desiredBinaryAuthorizationBuilder_.mergeFrom(value); - } - if (desiredBinaryAuthorization_ != null) { - bitField0_ |= 0x00008000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired configuration options for the Binary Authorization feature.
-     * 
- * - * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; - */ - public Builder clearDesiredBinaryAuthorization() { - bitField0_ = (bitField0_ & ~0x00008000); - desiredBinaryAuthorization_ = null; - if (desiredBinaryAuthorizationBuilder_ != null) { - desiredBinaryAuthorizationBuilder_.dispose(); - desiredBinaryAuthorizationBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired configuration options for the Binary Authorization feature.
-     * 
- * - * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; - */ - public com.google.container.v1.BinaryAuthorization.Builder - getDesiredBinaryAuthorizationBuilder() { - bitField0_ |= 0x00008000; - onChanged(); - return getDesiredBinaryAuthorizationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired configuration options for the Binary Authorization feature.
-     * 
- * - * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; - */ - public com.google.container.v1.BinaryAuthorizationOrBuilder - getDesiredBinaryAuthorizationOrBuilder() { - if (desiredBinaryAuthorizationBuilder_ != null) { - return desiredBinaryAuthorizationBuilder_.getMessageOrBuilder(); - } else { - return desiredBinaryAuthorization_ == null - ? com.google.container.v1.BinaryAuthorization.getDefaultInstance() - : desiredBinaryAuthorization_; - } - } - /** - * - * - *
-     * The desired configuration options for the Binary Authorization feature.
-     * 
- * - * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.BinaryAuthorization, - com.google.container.v1.BinaryAuthorization.Builder, - com.google.container.v1.BinaryAuthorizationOrBuilder> - getDesiredBinaryAuthorizationFieldBuilder() { - if (desiredBinaryAuthorizationBuilder_ == null) { - desiredBinaryAuthorizationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.BinaryAuthorization, - com.google.container.v1.BinaryAuthorization.Builder, - com.google.container.v1.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; - bitField0_ |= 0x00010000; - 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(); - bitField0_ = (bitField0_ & ~0x00010000); - 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; - bitField0_ |= 0x00010000; - onChanged(); - return this; - } - - private com.google.container.v1.ResourceUsageExportConfig desiredResourceUsageExportConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ResourceUsageExportConfig, - com.google.container.v1.ResourceUsageExportConfig.Builder, - com.google.container.v1.ResourceUsageExportConfigOrBuilder> - desiredResourceUsageExportConfigBuilder_; - /** - * - * - *
-     * The desired configuration for exporting resource usage.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * - * - * @return Whether the desiredResourceUsageExportConfig field is set. - */ - public boolean hasDesiredResourceUsageExportConfig() { - return ((bitField0_ & 0x00020000) != 0); - } - /** - * - * - *
-     * The desired configuration for exporting resource usage.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * - * - * @return The desiredResourceUsageExportConfig. - */ - public com.google.container.v1.ResourceUsageExportConfig getDesiredResourceUsageExportConfig() { - if (desiredResourceUsageExportConfigBuilder_ == null) { - return desiredResourceUsageExportConfig_ == null - ? com.google.container.v1.ResourceUsageExportConfig.getDefaultInstance() - : desiredResourceUsageExportConfig_; - } else { - return desiredResourceUsageExportConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired configuration for exporting resource usage.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * - */ - public Builder setDesiredResourceUsageExportConfig( - com.google.container.v1.ResourceUsageExportConfig value) { - if (desiredResourceUsageExportConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredResourceUsageExportConfig_ = value; - } else { - desiredResourceUsageExportConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00020000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired configuration for exporting resource usage.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * - */ - public Builder setDesiredResourceUsageExportConfig( - com.google.container.v1.ResourceUsageExportConfig.Builder builderForValue) { - if (desiredResourceUsageExportConfigBuilder_ == null) { - desiredResourceUsageExportConfig_ = builderForValue.build(); - } else { - desiredResourceUsageExportConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00020000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired configuration for exporting resource usage.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * - */ - public Builder mergeDesiredResourceUsageExportConfig( - com.google.container.v1.ResourceUsageExportConfig value) { - if (desiredResourceUsageExportConfigBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) - && desiredResourceUsageExportConfig_ != null - && desiredResourceUsageExportConfig_ - != com.google.container.v1.ResourceUsageExportConfig.getDefaultInstance()) { - getDesiredResourceUsageExportConfigBuilder().mergeFrom(value); - } else { - desiredResourceUsageExportConfig_ = value; - } - } else { - desiredResourceUsageExportConfigBuilder_.mergeFrom(value); - } - if (desiredResourceUsageExportConfig_ != null) { - bitField0_ |= 0x00020000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired configuration for exporting resource usage.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * - */ - public Builder clearDesiredResourceUsageExportConfig() { - bitField0_ = (bitField0_ & ~0x00020000); - desiredResourceUsageExportConfig_ = null; - if (desiredResourceUsageExportConfigBuilder_ != null) { - desiredResourceUsageExportConfigBuilder_.dispose(); - desiredResourceUsageExportConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired configuration for exporting resource usage.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * - */ - public com.google.container.v1.ResourceUsageExportConfig.Builder - getDesiredResourceUsageExportConfigBuilder() { - bitField0_ |= 0x00020000; - onChanged(); - return getDesiredResourceUsageExportConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired configuration for exporting resource usage.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * - */ - public com.google.container.v1.ResourceUsageExportConfigOrBuilder - getDesiredResourceUsageExportConfigOrBuilder() { - if (desiredResourceUsageExportConfigBuilder_ != null) { - return desiredResourceUsageExportConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredResourceUsageExportConfig_ == null - ? com.google.container.v1.ResourceUsageExportConfig.getDefaultInstance() - : desiredResourceUsageExportConfig_; - } - } - /** - * - * - *
-     * The desired configuration for exporting resource usage.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ResourceUsageExportConfig, - com.google.container.v1.ResourceUsageExportConfig.Builder, - com.google.container.v1.ResourceUsageExportConfigOrBuilder> - getDesiredResourceUsageExportConfigFieldBuilder() { - if (desiredResourceUsageExportConfigBuilder_ == null) { - desiredResourceUsageExportConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ResourceUsageExportConfig, - com.google.container.v1.ResourceUsageExportConfig.Builder, - com.google.container.v1.ResourceUsageExportConfigOrBuilder>( - getDesiredResourceUsageExportConfig(), getParentForChildren(), isClean()); - desiredResourceUsageExportConfig_ = null; - } - return desiredResourceUsageExportConfigBuilder_; - } - - private com.google.container.v1.VerticalPodAutoscaling desiredVerticalPodAutoscaling_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.VerticalPodAutoscaling, - com.google.container.v1.VerticalPodAutoscaling.Builder, - com.google.container.v1.VerticalPodAutoscalingOrBuilder> - desiredVerticalPodAutoscalingBuilder_; - /** - * - * - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - * - * - * @return Whether the desiredVerticalPodAutoscaling field is set. - */ - public boolean hasDesiredVerticalPodAutoscaling() { - return ((bitField0_ & 0x00040000) != 0); - } - /** - * - * - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - * - * - * @return The desiredVerticalPodAutoscaling. - */ - public com.google.container.v1.VerticalPodAutoscaling getDesiredVerticalPodAutoscaling() { - if (desiredVerticalPodAutoscalingBuilder_ == null) { - return desiredVerticalPodAutoscaling_ == null - ? com.google.container.v1.VerticalPodAutoscaling.getDefaultInstance() - : desiredVerticalPodAutoscaling_; - } else { - return desiredVerticalPodAutoscalingBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - * - */ - public Builder setDesiredVerticalPodAutoscaling( - com.google.container.v1.VerticalPodAutoscaling value) { - if (desiredVerticalPodAutoscalingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredVerticalPodAutoscaling_ = value; - } else { - desiredVerticalPodAutoscalingBuilder_.setMessage(value); - } - bitField0_ |= 0x00040000; - onChanged(); - return this; - } - /** - * - * - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - * - */ - public Builder setDesiredVerticalPodAutoscaling( - com.google.container.v1.VerticalPodAutoscaling.Builder builderForValue) { - if (desiredVerticalPodAutoscalingBuilder_ == null) { - desiredVerticalPodAutoscaling_ = builderForValue.build(); - } else { - desiredVerticalPodAutoscalingBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00040000; - onChanged(); - return this; - } - /** - * - * - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - * - */ - public Builder mergeDesiredVerticalPodAutoscaling( - com.google.container.v1.VerticalPodAutoscaling value) { - if (desiredVerticalPodAutoscalingBuilder_ == null) { - if (((bitField0_ & 0x00040000) != 0) - && desiredVerticalPodAutoscaling_ != null - && desiredVerticalPodAutoscaling_ - != com.google.container.v1.VerticalPodAutoscaling.getDefaultInstance()) { - getDesiredVerticalPodAutoscalingBuilder().mergeFrom(value); - } else { - desiredVerticalPodAutoscaling_ = value; - } - } else { - desiredVerticalPodAutoscalingBuilder_.mergeFrom(value); - } - if (desiredVerticalPodAutoscaling_ != null) { - bitField0_ |= 0x00040000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - * - */ - public Builder clearDesiredVerticalPodAutoscaling() { - bitField0_ = (bitField0_ & ~0x00040000); - desiredVerticalPodAutoscaling_ = null; - if (desiredVerticalPodAutoscalingBuilder_ != null) { - desiredVerticalPodAutoscalingBuilder_.dispose(); - desiredVerticalPodAutoscalingBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - * - */ - public com.google.container.v1.VerticalPodAutoscaling.Builder - getDesiredVerticalPodAutoscalingBuilder() { - bitField0_ |= 0x00040000; - onChanged(); - return getDesiredVerticalPodAutoscalingFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - * - */ - public com.google.container.v1.VerticalPodAutoscalingOrBuilder - getDesiredVerticalPodAutoscalingOrBuilder() { - if (desiredVerticalPodAutoscalingBuilder_ != null) { - return desiredVerticalPodAutoscalingBuilder_.getMessageOrBuilder(); - } else { - return desiredVerticalPodAutoscaling_ == null - ? com.google.container.v1.VerticalPodAutoscaling.getDefaultInstance() - : desiredVerticalPodAutoscaling_; - } - } - /** - * - * - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.VerticalPodAutoscaling, - com.google.container.v1.VerticalPodAutoscaling.Builder, - com.google.container.v1.VerticalPodAutoscalingOrBuilder> - getDesiredVerticalPodAutoscalingFieldBuilder() { - if (desiredVerticalPodAutoscalingBuilder_ == null) { - desiredVerticalPodAutoscalingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.VerticalPodAutoscaling, - com.google.container.v1.VerticalPodAutoscaling.Builder, - com.google.container.v1.VerticalPodAutoscalingOrBuilder>( - getDesiredVerticalPodAutoscaling(), getParentForChildren(), isClean()); - desiredVerticalPodAutoscaling_ = null; - } - return desiredVerticalPodAutoscalingBuilder_; - } - - private com.google.container.v1.PrivateClusterConfig desiredPrivateClusterConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.PrivateClusterConfig, - com.google.container.v1.PrivateClusterConfig.Builder, - com.google.container.v1.PrivateClusterConfigOrBuilder> - desiredPrivateClusterConfigBuilder_; - /** - * - * - *
-     * The desired private cluster configuration.
-     * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - * - * @return Whether the desiredPrivateClusterConfig field is set. - */ - public boolean hasDesiredPrivateClusterConfig() { - return ((bitField0_ & 0x00080000) != 0); - } - /** - * - * - *
-     * The desired private cluster configuration.
-     * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - * - * @return The desiredPrivateClusterConfig. - */ - public com.google.container.v1.PrivateClusterConfig getDesiredPrivateClusterConfig() { - if (desiredPrivateClusterConfigBuilder_ == null) { - return desiredPrivateClusterConfig_ == null - ? com.google.container.v1.PrivateClusterConfig.getDefaultInstance() - : desiredPrivateClusterConfig_; - } else { - return desiredPrivateClusterConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired private cluster configuration.
-     * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - */ - public Builder setDesiredPrivateClusterConfig( - com.google.container.v1.PrivateClusterConfig value) { - if (desiredPrivateClusterConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredPrivateClusterConfig_ = value; - } else { - desiredPrivateClusterConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00080000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired private cluster configuration.
-     * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - */ - public Builder setDesiredPrivateClusterConfig( - com.google.container.v1.PrivateClusterConfig.Builder builderForValue) { - if (desiredPrivateClusterConfigBuilder_ == null) { - desiredPrivateClusterConfig_ = builderForValue.build(); - } else { - desiredPrivateClusterConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00080000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired private cluster configuration.
-     * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - */ - public Builder mergeDesiredPrivateClusterConfig( - com.google.container.v1.PrivateClusterConfig value) { - if (desiredPrivateClusterConfigBuilder_ == null) { - if (((bitField0_ & 0x00080000) != 0) - && desiredPrivateClusterConfig_ != null - && desiredPrivateClusterConfig_ - != com.google.container.v1.PrivateClusterConfig.getDefaultInstance()) { - getDesiredPrivateClusterConfigBuilder().mergeFrom(value); - } else { - desiredPrivateClusterConfig_ = value; - } - } else { - desiredPrivateClusterConfigBuilder_.mergeFrom(value); - } - if (desiredPrivateClusterConfig_ != null) { - bitField0_ |= 0x00080000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired private cluster configuration.
-     * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - */ - public Builder clearDesiredPrivateClusterConfig() { - bitField0_ = (bitField0_ & ~0x00080000); - desiredPrivateClusterConfig_ = null; - if (desiredPrivateClusterConfigBuilder_ != null) { - desiredPrivateClusterConfigBuilder_.dispose(); - desiredPrivateClusterConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired private cluster configuration.
-     * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - */ - public com.google.container.v1.PrivateClusterConfig.Builder - getDesiredPrivateClusterConfigBuilder() { - bitField0_ |= 0x00080000; - onChanged(); - return getDesiredPrivateClusterConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired private cluster configuration.
-     * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - */ - public com.google.container.v1.PrivateClusterConfigOrBuilder - getDesiredPrivateClusterConfigOrBuilder() { - if (desiredPrivateClusterConfigBuilder_ != null) { - return desiredPrivateClusterConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredPrivateClusterConfig_ == null - ? com.google.container.v1.PrivateClusterConfig.getDefaultInstance() - : desiredPrivateClusterConfig_; - } - } - /** - * - * - *
-     * The desired private cluster configuration.
-     * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.PrivateClusterConfig, - com.google.container.v1.PrivateClusterConfig.Builder, - com.google.container.v1.PrivateClusterConfigOrBuilder> - getDesiredPrivateClusterConfigFieldBuilder() { - if (desiredPrivateClusterConfigBuilder_ == null) { - desiredPrivateClusterConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.PrivateClusterConfig, - com.google.container.v1.PrivateClusterConfig.Builder, - com.google.container.v1.PrivateClusterConfigOrBuilder>( - getDesiredPrivateClusterConfig(), getParentForChildren(), isClean()); - desiredPrivateClusterConfig_ = null; - } - return desiredPrivateClusterConfigBuilder_; - } - - private com.google.container.v1.IntraNodeVisibilityConfig desiredIntraNodeVisibilityConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.IntraNodeVisibilityConfig, - com.google.container.v1.IntraNodeVisibilityConfig.Builder, - com.google.container.v1.IntraNodeVisibilityConfigOrBuilder> - desiredIntraNodeVisibilityConfigBuilder_; - /** - * - * - *
-     * The desired config of Intra-node visibility.
-     * 
- * - * - * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * - * - * @return Whether the desiredIntraNodeVisibilityConfig field is set. - */ - public boolean hasDesiredIntraNodeVisibilityConfig() { - return ((bitField0_ & 0x00100000) != 0); - } - /** - * - * - *
-     * The desired config of Intra-node visibility.
-     * 
- * - * - * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * - * - * @return The desiredIntraNodeVisibilityConfig. - */ - public com.google.container.v1.IntraNodeVisibilityConfig getDesiredIntraNodeVisibilityConfig() { - if (desiredIntraNodeVisibilityConfigBuilder_ == null) { - return desiredIntraNodeVisibilityConfig_ == null - ? com.google.container.v1.IntraNodeVisibilityConfig.getDefaultInstance() - : desiredIntraNodeVisibilityConfig_; - } else { - return desiredIntraNodeVisibilityConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired config of Intra-node visibility.
-     * 
- * - * - * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * - */ - public Builder setDesiredIntraNodeVisibilityConfig( - com.google.container.v1.IntraNodeVisibilityConfig value) { - if (desiredIntraNodeVisibilityConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredIntraNodeVisibilityConfig_ = value; - } else { - desiredIntraNodeVisibilityConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00100000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired config of Intra-node visibility.
-     * 
- * - * - * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * - */ - public Builder setDesiredIntraNodeVisibilityConfig( - com.google.container.v1.IntraNodeVisibilityConfig.Builder builderForValue) { - if (desiredIntraNodeVisibilityConfigBuilder_ == null) { - desiredIntraNodeVisibilityConfig_ = builderForValue.build(); - } else { - desiredIntraNodeVisibilityConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00100000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired config of Intra-node visibility.
-     * 
- * - * - * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * - */ - public Builder mergeDesiredIntraNodeVisibilityConfig( - com.google.container.v1.IntraNodeVisibilityConfig value) { - if (desiredIntraNodeVisibilityConfigBuilder_ == null) { - if (((bitField0_ & 0x00100000) != 0) - && desiredIntraNodeVisibilityConfig_ != null - && desiredIntraNodeVisibilityConfig_ - != com.google.container.v1.IntraNodeVisibilityConfig.getDefaultInstance()) { - getDesiredIntraNodeVisibilityConfigBuilder().mergeFrom(value); - } else { - desiredIntraNodeVisibilityConfig_ = value; - } - } else { - desiredIntraNodeVisibilityConfigBuilder_.mergeFrom(value); - } - if (desiredIntraNodeVisibilityConfig_ != null) { - bitField0_ |= 0x00100000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired config of Intra-node visibility.
-     * 
- * - * - * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * - */ - public Builder clearDesiredIntraNodeVisibilityConfig() { - bitField0_ = (bitField0_ & ~0x00100000); - desiredIntraNodeVisibilityConfig_ = null; - if (desiredIntraNodeVisibilityConfigBuilder_ != null) { - desiredIntraNodeVisibilityConfigBuilder_.dispose(); - desiredIntraNodeVisibilityConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired config of Intra-node visibility.
-     * 
- * - * - * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * - */ - public com.google.container.v1.IntraNodeVisibilityConfig.Builder - getDesiredIntraNodeVisibilityConfigBuilder() { - bitField0_ |= 0x00100000; - onChanged(); - return getDesiredIntraNodeVisibilityConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired config of Intra-node visibility.
-     * 
- * - * - * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * - */ - public com.google.container.v1.IntraNodeVisibilityConfigOrBuilder - getDesiredIntraNodeVisibilityConfigOrBuilder() { - if (desiredIntraNodeVisibilityConfigBuilder_ != null) { - return desiredIntraNodeVisibilityConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredIntraNodeVisibilityConfig_ == null - ? com.google.container.v1.IntraNodeVisibilityConfig.getDefaultInstance() - : desiredIntraNodeVisibilityConfig_; - } - } - /** - * - * - *
-     * The desired config of Intra-node visibility.
-     * 
- * - * - * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.IntraNodeVisibilityConfig, - com.google.container.v1.IntraNodeVisibilityConfig.Builder, - com.google.container.v1.IntraNodeVisibilityConfigOrBuilder> - getDesiredIntraNodeVisibilityConfigFieldBuilder() { - if (desiredIntraNodeVisibilityConfigBuilder_ == null) { - desiredIntraNodeVisibilityConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.IntraNodeVisibilityConfig, - com.google.container.v1.IntraNodeVisibilityConfig.Builder, - com.google.container.v1.IntraNodeVisibilityConfigOrBuilder>( - getDesiredIntraNodeVisibilityConfig(), getParentForChildren(), isClean()); - desiredIntraNodeVisibilityConfig_ = null; - } - return desiredIntraNodeVisibilityConfigBuilder_; - } - - private com.google.container.v1.DefaultSnatStatus desiredDefaultSnatStatus_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DefaultSnatStatus, - com.google.container.v1.DefaultSnatStatus.Builder, - com.google.container.v1.DefaultSnatStatusOrBuilder> - desiredDefaultSnatStatusBuilder_; - /** - * - * - *
-     * The desired status of whether to disable default sNAT for this cluster.
-     * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - * - * @return Whether the desiredDefaultSnatStatus field is set. - */ - public boolean hasDesiredDefaultSnatStatus() { - return ((bitField0_ & 0x00200000) != 0); - } - /** - * - * - *
-     * The desired status of whether to disable default sNAT for this cluster.
-     * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - * - * @return The desiredDefaultSnatStatus. - */ - public com.google.container.v1.DefaultSnatStatus getDesiredDefaultSnatStatus() { - if (desiredDefaultSnatStatusBuilder_ == null) { - return desiredDefaultSnatStatus_ == null - ? com.google.container.v1.DefaultSnatStatus.getDefaultInstance() - : desiredDefaultSnatStatus_; - } else { - return desiredDefaultSnatStatusBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired status of whether to disable default sNAT for this cluster.
-     * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - */ - public Builder setDesiredDefaultSnatStatus(com.google.container.v1.DefaultSnatStatus value) { - if (desiredDefaultSnatStatusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredDefaultSnatStatus_ = value; - } else { - desiredDefaultSnatStatusBuilder_.setMessage(value); - } - bitField0_ |= 0x00200000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired status of whether to disable default sNAT for this cluster.
-     * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - */ - public Builder setDesiredDefaultSnatStatus( - com.google.container.v1.DefaultSnatStatus.Builder builderForValue) { - if (desiredDefaultSnatStatusBuilder_ == null) { - desiredDefaultSnatStatus_ = builderForValue.build(); - } else { - desiredDefaultSnatStatusBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00200000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired status of whether to disable default sNAT for this cluster.
-     * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - */ - public Builder mergeDesiredDefaultSnatStatus(com.google.container.v1.DefaultSnatStatus value) { - if (desiredDefaultSnatStatusBuilder_ == null) { - if (((bitField0_ & 0x00200000) != 0) - && desiredDefaultSnatStatus_ != null - && desiredDefaultSnatStatus_ - != com.google.container.v1.DefaultSnatStatus.getDefaultInstance()) { - getDesiredDefaultSnatStatusBuilder().mergeFrom(value); - } else { - desiredDefaultSnatStatus_ = value; - } - } else { - desiredDefaultSnatStatusBuilder_.mergeFrom(value); - } - if (desiredDefaultSnatStatus_ != null) { - bitField0_ |= 0x00200000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired status of whether to disable default sNAT for this cluster.
-     * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - */ - public Builder clearDesiredDefaultSnatStatus() { - bitField0_ = (bitField0_ & ~0x00200000); - desiredDefaultSnatStatus_ = null; - if (desiredDefaultSnatStatusBuilder_ != null) { - desiredDefaultSnatStatusBuilder_.dispose(); - desiredDefaultSnatStatusBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired status of whether to disable default sNAT for this cluster.
-     * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - */ - public com.google.container.v1.DefaultSnatStatus.Builder getDesiredDefaultSnatStatusBuilder() { - bitField0_ |= 0x00200000; - onChanged(); - return getDesiredDefaultSnatStatusFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired status of whether to disable default sNAT for this cluster.
-     * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - */ - public com.google.container.v1.DefaultSnatStatusOrBuilder - getDesiredDefaultSnatStatusOrBuilder() { - if (desiredDefaultSnatStatusBuilder_ != null) { - return desiredDefaultSnatStatusBuilder_.getMessageOrBuilder(); - } else { - return desiredDefaultSnatStatus_ == null - ? com.google.container.v1.DefaultSnatStatus.getDefaultInstance() - : desiredDefaultSnatStatus_; - } - } - /** - * - * - *
-     * The desired status of whether to disable default sNAT for this cluster.
-     * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DefaultSnatStatus, - com.google.container.v1.DefaultSnatStatus.Builder, - com.google.container.v1.DefaultSnatStatusOrBuilder> - getDesiredDefaultSnatStatusFieldBuilder() { - if (desiredDefaultSnatStatusBuilder_ == null) { - desiredDefaultSnatStatusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DefaultSnatStatus, - com.google.container.v1.DefaultSnatStatus.Builder, - com.google.container.v1.DefaultSnatStatusOrBuilder>( - getDesiredDefaultSnatStatus(), getParentForChildren(), isClean()); - desiredDefaultSnatStatus_ = null; - } - return desiredDefaultSnatStatusBuilder_; - } - - private com.google.container.v1.ReleaseChannel desiredReleaseChannel_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ReleaseChannel, - com.google.container.v1.ReleaseChannel.Builder, - com.google.container.v1.ReleaseChannelOrBuilder> - desiredReleaseChannelBuilder_; - /** - * - * - *
-     * The desired release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - * - * @return Whether the desiredReleaseChannel field is set. - */ - public boolean hasDesiredReleaseChannel() { - return ((bitField0_ & 0x00400000) != 0); - } - /** - * - * - *
-     * The desired release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - * - * @return The desiredReleaseChannel. - */ - public com.google.container.v1.ReleaseChannel getDesiredReleaseChannel() { - if (desiredReleaseChannelBuilder_ == null) { - return desiredReleaseChannel_ == null - ? com.google.container.v1.ReleaseChannel.getDefaultInstance() - : desiredReleaseChannel_; - } else { - return desiredReleaseChannelBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - */ - public Builder setDesiredReleaseChannel(com.google.container.v1.ReleaseChannel value) { - if (desiredReleaseChannelBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredReleaseChannel_ = value; - } else { - desiredReleaseChannelBuilder_.setMessage(value); - } - bitField0_ |= 0x00400000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - */ - public Builder setDesiredReleaseChannel( - com.google.container.v1.ReleaseChannel.Builder builderForValue) { - if (desiredReleaseChannelBuilder_ == null) { - desiredReleaseChannel_ = builderForValue.build(); - } else { - desiredReleaseChannelBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00400000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - */ - public Builder mergeDesiredReleaseChannel(com.google.container.v1.ReleaseChannel value) { - if (desiredReleaseChannelBuilder_ == null) { - if (((bitField0_ & 0x00400000) != 0) - && desiredReleaseChannel_ != null - && desiredReleaseChannel_ - != com.google.container.v1.ReleaseChannel.getDefaultInstance()) { - getDesiredReleaseChannelBuilder().mergeFrom(value); - } else { - desiredReleaseChannel_ = value; - } - } else { - desiredReleaseChannelBuilder_.mergeFrom(value); - } - if (desiredReleaseChannel_ != null) { - bitField0_ |= 0x00400000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - */ - public Builder clearDesiredReleaseChannel() { - bitField0_ = (bitField0_ & ~0x00400000); - desiredReleaseChannel_ = null; - if (desiredReleaseChannelBuilder_ != null) { - desiredReleaseChannelBuilder_.dispose(); - desiredReleaseChannelBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - */ - public com.google.container.v1.ReleaseChannel.Builder getDesiredReleaseChannelBuilder() { - bitField0_ |= 0x00400000; - onChanged(); - return getDesiredReleaseChannelFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - */ - public com.google.container.v1.ReleaseChannelOrBuilder getDesiredReleaseChannelOrBuilder() { - if (desiredReleaseChannelBuilder_ != null) { - return desiredReleaseChannelBuilder_.getMessageOrBuilder(); - } else { - return desiredReleaseChannel_ == null - ? com.google.container.v1.ReleaseChannel.getDefaultInstance() - : desiredReleaseChannel_; - } - } - /** - * - * - *
-     * The desired release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ReleaseChannel, - com.google.container.v1.ReleaseChannel.Builder, - com.google.container.v1.ReleaseChannelOrBuilder> - getDesiredReleaseChannelFieldBuilder() { - if (desiredReleaseChannelBuilder_ == null) { - desiredReleaseChannelBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ReleaseChannel, - com.google.container.v1.ReleaseChannel.Builder, - com.google.container.v1.ReleaseChannelOrBuilder>( - getDesiredReleaseChannel(), getParentForChildren(), isClean()); - desiredReleaseChannel_ = null; - } - return desiredReleaseChannelBuilder_; - } - - private com.google.container.v1.ILBSubsettingConfig desiredL4IlbSubsettingConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ILBSubsettingConfig, - com.google.container.v1.ILBSubsettingConfig.Builder, - com.google.container.v1.ILBSubsettingConfigOrBuilder> - desiredL4IlbSubsettingConfigBuilder_; - /** - * - * - *
-     * The desired L4 Internal Load Balancer Subsetting configuration.
-     * 
- * - * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - * - * @return Whether the desiredL4ilbSubsettingConfig field is set. - */ - public boolean hasDesiredL4IlbSubsettingConfig() { - return ((bitField0_ & 0x00800000) != 0); - } - /** - * - * - *
-     * The desired L4 Internal Load Balancer Subsetting configuration.
-     * 
- * - * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - * - * @return The desiredL4ilbSubsettingConfig. - */ - public com.google.container.v1.ILBSubsettingConfig getDesiredL4IlbSubsettingConfig() { - if (desiredL4IlbSubsettingConfigBuilder_ == null) { - return desiredL4IlbSubsettingConfig_ == null - ? com.google.container.v1.ILBSubsettingConfig.getDefaultInstance() - : desiredL4IlbSubsettingConfig_; - } else { - return desiredL4IlbSubsettingConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired L4 Internal Load Balancer Subsetting configuration.
-     * 
- * - * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - */ - public Builder setDesiredL4IlbSubsettingConfig( - com.google.container.v1.ILBSubsettingConfig value) { - if (desiredL4IlbSubsettingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredL4IlbSubsettingConfig_ = value; - } else { - desiredL4IlbSubsettingConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00800000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired L4 Internal Load Balancer Subsetting configuration.
-     * 
- * - * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - */ - public Builder setDesiredL4IlbSubsettingConfig( - com.google.container.v1.ILBSubsettingConfig.Builder builderForValue) { - if (desiredL4IlbSubsettingConfigBuilder_ == null) { - desiredL4IlbSubsettingConfig_ = builderForValue.build(); - } else { - desiredL4IlbSubsettingConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00800000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired L4 Internal Load Balancer Subsetting configuration.
-     * 
- * - * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - */ - public Builder mergeDesiredL4IlbSubsettingConfig( - com.google.container.v1.ILBSubsettingConfig value) { - if (desiredL4IlbSubsettingConfigBuilder_ == null) { - if (((bitField0_ & 0x00800000) != 0) - && desiredL4IlbSubsettingConfig_ != null - && desiredL4IlbSubsettingConfig_ - != com.google.container.v1.ILBSubsettingConfig.getDefaultInstance()) { - getDesiredL4IlbSubsettingConfigBuilder().mergeFrom(value); - } else { - desiredL4IlbSubsettingConfig_ = value; - } - } else { - desiredL4IlbSubsettingConfigBuilder_.mergeFrom(value); - } - if (desiredL4IlbSubsettingConfig_ != null) { - bitField0_ |= 0x00800000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired L4 Internal Load Balancer Subsetting configuration.
-     * 
- * - * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - */ - public Builder clearDesiredL4IlbSubsettingConfig() { - bitField0_ = (bitField0_ & ~0x00800000); - desiredL4IlbSubsettingConfig_ = null; - if (desiredL4IlbSubsettingConfigBuilder_ != null) { - desiredL4IlbSubsettingConfigBuilder_.dispose(); - desiredL4IlbSubsettingConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired L4 Internal Load Balancer Subsetting configuration.
-     * 
- * - * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - */ - public com.google.container.v1.ILBSubsettingConfig.Builder - getDesiredL4IlbSubsettingConfigBuilder() { - bitField0_ |= 0x00800000; - onChanged(); - return getDesiredL4IlbSubsettingConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired L4 Internal Load Balancer Subsetting configuration.
-     * 
- * - * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - */ - public com.google.container.v1.ILBSubsettingConfigOrBuilder - getDesiredL4IlbSubsettingConfigOrBuilder() { - if (desiredL4IlbSubsettingConfigBuilder_ != null) { - return desiredL4IlbSubsettingConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredL4IlbSubsettingConfig_ == null - ? com.google.container.v1.ILBSubsettingConfig.getDefaultInstance() - : desiredL4IlbSubsettingConfig_; - } - } - /** - * - * - *
-     * The desired L4 Internal Load Balancer Subsetting configuration.
-     * 
- * - * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ILBSubsettingConfig, - com.google.container.v1.ILBSubsettingConfig.Builder, - com.google.container.v1.ILBSubsettingConfigOrBuilder> - getDesiredL4IlbSubsettingConfigFieldBuilder() { - if (desiredL4IlbSubsettingConfigBuilder_ == null) { - desiredL4IlbSubsettingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ILBSubsettingConfig, - com.google.container.v1.ILBSubsettingConfig.Builder, - com.google.container.v1.ILBSubsettingConfigOrBuilder>( - getDesiredL4IlbSubsettingConfig(), getParentForChildren(), isClean()); - desiredL4IlbSubsettingConfig_ = null; - } - return desiredL4IlbSubsettingConfigBuilder_; - } - - private int desiredDatapathProvider_ = 0; - /** - * - * - *
-     * The desired datapath provider for the cluster.
-     * 
- * - * .google.container.v1.DatapathProvider desired_datapath_provider = 50; - * - * @return The enum numeric value on the wire for desiredDatapathProvider. - */ - @java.lang.Override - public int getDesiredDatapathProviderValue() { - return desiredDatapathProvider_; - } - /** - * - * - *
-     * The desired datapath provider for the cluster.
-     * 
- * - * .google.container.v1.DatapathProvider desired_datapath_provider = 50; - * - * @param value The enum numeric value on the wire for desiredDatapathProvider to set. - * @return This builder for chaining. - */ - public Builder setDesiredDatapathProviderValue(int value) { - desiredDatapathProvider_ = value; - bitField0_ |= 0x01000000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired datapath provider for the cluster.
-     * 
- * - * .google.container.v1.DatapathProvider desired_datapath_provider = 50; - * - * @return The desiredDatapathProvider. - */ - @java.lang.Override - public com.google.container.v1.DatapathProvider getDesiredDatapathProvider() { - com.google.container.v1.DatapathProvider result = - com.google.container.v1.DatapathProvider.forNumber(desiredDatapathProvider_); - return result == null ? com.google.container.v1.DatapathProvider.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The desired datapath provider for the cluster.
-     * 
- * - * .google.container.v1.DatapathProvider desired_datapath_provider = 50; - * - * @param value The desiredDatapathProvider to set. - * @return This builder for chaining. - */ - public Builder setDesiredDatapathProvider(com.google.container.v1.DatapathProvider value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x01000000; - desiredDatapathProvider_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The desired datapath provider for the cluster.
-     * 
- * - * .google.container.v1.DatapathProvider desired_datapath_provider = 50; - * - * @return This builder for chaining. - */ - public Builder clearDesiredDatapathProvider() { - bitField0_ = (bitField0_ & ~0x01000000); - desiredDatapathProvider_ = 0; - onChanged(); - return this; - } - - private int desiredPrivateIpv6GoogleAccess_ = 0; - /** - * - * - *
-     * The desired state of IPv6 connectivity to Google Services.
-     * 
- * - * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; - * - * - * @return The enum numeric value on the wire for desiredPrivateIpv6GoogleAccess. - */ - @java.lang.Override - public int getDesiredPrivateIpv6GoogleAccessValue() { - return desiredPrivateIpv6GoogleAccess_; - } - /** - * - * - *
-     * The desired state of IPv6 connectivity to Google Services.
-     * 
- * - * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; - * - * - * @param value The enum numeric value on the wire for desiredPrivateIpv6GoogleAccess to set. - * @return This builder for chaining. - */ - public Builder setDesiredPrivateIpv6GoogleAccessValue(int value) { - desiredPrivateIpv6GoogleAccess_ = value; - bitField0_ |= 0x02000000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired state of IPv6 connectivity to Google Services.
-     * 
- * - * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; - * - * - * @return The desiredPrivateIpv6GoogleAccess. - */ - @java.lang.Override - public com.google.container.v1.PrivateIPv6GoogleAccess getDesiredPrivateIpv6GoogleAccess() { - com.google.container.v1.PrivateIPv6GoogleAccess result = - com.google.container.v1.PrivateIPv6GoogleAccess.forNumber( - desiredPrivateIpv6GoogleAccess_); - return result == null ? com.google.container.v1.PrivateIPv6GoogleAccess.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The desired state of IPv6 connectivity to Google Services.
-     * 
- * - * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; - * - * - * @param value The desiredPrivateIpv6GoogleAccess to set. - * @return This builder for chaining. - */ - public Builder setDesiredPrivateIpv6GoogleAccess( - com.google.container.v1.PrivateIPv6GoogleAccess value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x02000000; - desiredPrivateIpv6GoogleAccess_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The desired state of IPv6 connectivity to Google Services.
-     * 
- * - * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; - * - * - * @return This builder for chaining. - */ - public Builder clearDesiredPrivateIpv6GoogleAccess() { - bitField0_ = (bitField0_ & ~0x02000000); - desiredPrivateIpv6GoogleAccess_ = 0; - onChanged(); - return this; - } - - private com.google.container.v1.NotificationConfig desiredNotificationConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NotificationConfig, - com.google.container.v1.NotificationConfig.Builder, - com.google.container.v1.NotificationConfigOrBuilder> - desiredNotificationConfigBuilder_; - /** - * - * - *
-     * The desired notification configuration.
-     * 
- * - * .google.container.v1.NotificationConfig desired_notification_config = 55; - * - * @return Whether the desiredNotificationConfig field is set. - */ - public boolean hasDesiredNotificationConfig() { - return ((bitField0_ & 0x04000000) != 0); - } - /** - * - * - *
-     * The desired notification configuration.
-     * 
- * - * .google.container.v1.NotificationConfig desired_notification_config = 55; - * - * @return The desiredNotificationConfig. - */ - public com.google.container.v1.NotificationConfig getDesiredNotificationConfig() { - if (desiredNotificationConfigBuilder_ == null) { - return desiredNotificationConfig_ == null - ? com.google.container.v1.NotificationConfig.getDefaultInstance() - : desiredNotificationConfig_; - } else { - return desiredNotificationConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired notification configuration.
-     * 
- * - * .google.container.v1.NotificationConfig desired_notification_config = 55; - */ - public Builder setDesiredNotificationConfig(com.google.container.v1.NotificationConfig value) { - if (desiredNotificationConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredNotificationConfig_ = value; - } else { - desiredNotificationConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x04000000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired notification configuration.
-     * 
- * - * .google.container.v1.NotificationConfig desired_notification_config = 55; - */ - public Builder setDesiredNotificationConfig( - com.google.container.v1.NotificationConfig.Builder builderForValue) { - if (desiredNotificationConfigBuilder_ == null) { - desiredNotificationConfig_ = builderForValue.build(); - } else { - desiredNotificationConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x04000000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired notification configuration.
-     * 
- * - * .google.container.v1.NotificationConfig desired_notification_config = 55; - */ - public Builder mergeDesiredNotificationConfig( - com.google.container.v1.NotificationConfig value) { - if (desiredNotificationConfigBuilder_ == null) { - if (((bitField0_ & 0x04000000) != 0) - && desiredNotificationConfig_ != null - && desiredNotificationConfig_ - != com.google.container.v1.NotificationConfig.getDefaultInstance()) { - getDesiredNotificationConfigBuilder().mergeFrom(value); - } else { - desiredNotificationConfig_ = value; - } - } else { - desiredNotificationConfigBuilder_.mergeFrom(value); - } - if (desiredNotificationConfig_ != null) { - bitField0_ |= 0x04000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired notification configuration.
-     * 
- * - * .google.container.v1.NotificationConfig desired_notification_config = 55; - */ - public Builder clearDesiredNotificationConfig() { - bitField0_ = (bitField0_ & ~0x04000000); - desiredNotificationConfig_ = null; - if (desiredNotificationConfigBuilder_ != null) { - desiredNotificationConfigBuilder_.dispose(); - desiredNotificationConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired notification configuration.
-     * 
- * - * .google.container.v1.NotificationConfig desired_notification_config = 55; - */ - public com.google.container.v1.NotificationConfig.Builder - getDesiredNotificationConfigBuilder() { - bitField0_ |= 0x04000000; - onChanged(); - return getDesiredNotificationConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired notification configuration.
-     * 
- * - * .google.container.v1.NotificationConfig desired_notification_config = 55; - */ - public com.google.container.v1.NotificationConfigOrBuilder - getDesiredNotificationConfigOrBuilder() { - if (desiredNotificationConfigBuilder_ != null) { - return desiredNotificationConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredNotificationConfig_ == null - ? com.google.container.v1.NotificationConfig.getDefaultInstance() - : desiredNotificationConfig_; - } - } - /** - * - * - *
-     * The desired notification configuration.
-     * 
- * - * .google.container.v1.NotificationConfig desired_notification_config = 55; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NotificationConfig, - com.google.container.v1.NotificationConfig.Builder, - com.google.container.v1.NotificationConfigOrBuilder> - getDesiredNotificationConfigFieldBuilder() { - if (desiredNotificationConfigBuilder_ == null) { - desiredNotificationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NotificationConfig, - com.google.container.v1.NotificationConfig.Builder, - com.google.container.v1.NotificationConfigOrBuilder>( - getDesiredNotificationConfig(), getParentForChildren(), isClean()); - desiredNotificationConfig_ = null; - } - return desiredNotificationConfigBuilder_; - } - - private com.google.container.v1.AuthenticatorGroupsConfig desiredAuthenticatorGroupsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AuthenticatorGroupsConfig, - com.google.container.v1.AuthenticatorGroupsConfig.Builder, - com.google.container.v1.AuthenticatorGroupsConfigOrBuilder> - desiredAuthenticatorGroupsConfigBuilder_; - /** - * - * - *
-     * The desired authenticator groups config for the cluster.
-     * 
- * - * - * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - * - * - * @return Whether the desiredAuthenticatorGroupsConfig field is set. - */ - public boolean hasDesiredAuthenticatorGroupsConfig() { - return ((bitField0_ & 0x08000000) != 0); - } - /** - * - * - *
-     * The desired authenticator groups config for the cluster.
-     * 
- * - * - * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - * - * - * @return The desiredAuthenticatorGroupsConfig. - */ - public com.google.container.v1.AuthenticatorGroupsConfig getDesiredAuthenticatorGroupsConfig() { - if (desiredAuthenticatorGroupsConfigBuilder_ == null) { - return desiredAuthenticatorGroupsConfig_ == null - ? com.google.container.v1.AuthenticatorGroupsConfig.getDefaultInstance() - : desiredAuthenticatorGroupsConfig_; - } else { - return desiredAuthenticatorGroupsConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired authenticator groups config for the cluster.
-     * 
- * - * - * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - * - */ - public Builder setDesiredAuthenticatorGroupsConfig( - com.google.container.v1.AuthenticatorGroupsConfig value) { - if (desiredAuthenticatorGroupsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredAuthenticatorGroupsConfig_ = value; - } else { - desiredAuthenticatorGroupsConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x08000000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired authenticator groups config for the cluster.
-     * 
- * - * - * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - * - */ - public Builder setDesiredAuthenticatorGroupsConfig( - com.google.container.v1.AuthenticatorGroupsConfig.Builder builderForValue) { - if (desiredAuthenticatorGroupsConfigBuilder_ == null) { - desiredAuthenticatorGroupsConfig_ = builderForValue.build(); - } else { - desiredAuthenticatorGroupsConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x08000000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired authenticator groups config for the cluster.
-     * 
- * - * - * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - * - */ - public Builder mergeDesiredAuthenticatorGroupsConfig( - com.google.container.v1.AuthenticatorGroupsConfig value) { - if (desiredAuthenticatorGroupsConfigBuilder_ == null) { - if (((bitField0_ & 0x08000000) != 0) - && desiredAuthenticatorGroupsConfig_ != null - && desiredAuthenticatorGroupsConfig_ - != com.google.container.v1.AuthenticatorGroupsConfig.getDefaultInstance()) { - getDesiredAuthenticatorGroupsConfigBuilder().mergeFrom(value); - } else { - desiredAuthenticatorGroupsConfig_ = value; - } - } else { - desiredAuthenticatorGroupsConfigBuilder_.mergeFrom(value); - } - if (desiredAuthenticatorGroupsConfig_ != null) { - bitField0_ |= 0x08000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired authenticator groups config for the cluster.
-     * 
- * - * - * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - * - */ - public Builder clearDesiredAuthenticatorGroupsConfig() { - bitField0_ = (bitField0_ & ~0x08000000); - desiredAuthenticatorGroupsConfig_ = null; - if (desiredAuthenticatorGroupsConfigBuilder_ != null) { - desiredAuthenticatorGroupsConfigBuilder_.dispose(); - desiredAuthenticatorGroupsConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired authenticator groups config for the cluster.
-     * 
- * - * - * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - * - */ - public com.google.container.v1.AuthenticatorGroupsConfig.Builder - getDesiredAuthenticatorGroupsConfigBuilder() { - bitField0_ |= 0x08000000; - onChanged(); - return getDesiredAuthenticatorGroupsConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired authenticator groups config for the cluster.
-     * 
- * - * - * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - * - */ - public com.google.container.v1.AuthenticatorGroupsConfigOrBuilder - getDesiredAuthenticatorGroupsConfigOrBuilder() { - if (desiredAuthenticatorGroupsConfigBuilder_ != null) { - return desiredAuthenticatorGroupsConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredAuthenticatorGroupsConfig_ == null - ? com.google.container.v1.AuthenticatorGroupsConfig.getDefaultInstance() - : desiredAuthenticatorGroupsConfig_; - } - } - /** - * - * - *
-     * The desired authenticator groups config for the cluster.
-     * 
- * - * - * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AuthenticatorGroupsConfig, - com.google.container.v1.AuthenticatorGroupsConfig.Builder, - com.google.container.v1.AuthenticatorGroupsConfigOrBuilder> - getDesiredAuthenticatorGroupsConfigFieldBuilder() { - if (desiredAuthenticatorGroupsConfigBuilder_ == null) { - desiredAuthenticatorGroupsConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AuthenticatorGroupsConfig, - com.google.container.v1.AuthenticatorGroupsConfig.Builder, - com.google.container.v1.AuthenticatorGroupsConfigOrBuilder>( - getDesiredAuthenticatorGroupsConfig(), getParentForChildren(), isClean()); - desiredAuthenticatorGroupsConfig_ = null; - } - return desiredAuthenticatorGroupsConfigBuilder_; - } - - private com.google.container.v1.LoggingConfig desiredLoggingConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.LoggingConfig, - com.google.container.v1.LoggingConfig.Builder, - com.google.container.v1.LoggingConfigOrBuilder> - desiredLoggingConfigBuilder_; - /** - * - * - *
-     * The desired logging configuration.
-     * 
- * - * .google.container.v1.LoggingConfig desired_logging_config = 64; - * - * @return Whether the desiredLoggingConfig field is set. - */ - public boolean hasDesiredLoggingConfig() { - return ((bitField0_ & 0x10000000) != 0); - } - /** - * - * - *
-     * The desired logging configuration.
-     * 
- * - * .google.container.v1.LoggingConfig desired_logging_config = 64; - * - * @return The desiredLoggingConfig. - */ - public com.google.container.v1.LoggingConfig getDesiredLoggingConfig() { - if (desiredLoggingConfigBuilder_ == null) { - return desiredLoggingConfig_ == null - ? com.google.container.v1.LoggingConfig.getDefaultInstance() - : desiredLoggingConfig_; - } else { - return desiredLoggingConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired logging configuration.
-     * 
- * - * .google.container.v1.LoggingConfig desired_logging_config = 64; - */ - public Builder setDesiredLoggingConfig(com.google.container.v1.LoggingConfig value) { - if (desiredLoggingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredLoggingConfig_ = value; - } else { - desiredLoggingConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x10000000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired logging configuration.
-     * 
- * - * .google.container.v1.LoggingConfig desired_logging_config = 64; - */ - public Builder setDesiredLoggingConfig( - com.google.container.v1.LoggingConfig.Builder builderForValue) { - if (desiredLoggingConfigBuilder_ == null) { - desiredLoggingConfig_ = builderForValue.build(); - } else { - desiredLoggingConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x10000000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired logging configuration.
-     * 
- * - * .google.container.v1.LoggingConfig desired_logging_config = 64; - */ - public Builder mergeDesiredLoggingConfig(com.google.container.v1.LoggingConfig value) { - if (desiredLoggingConfigBuilder_ == null) { - if (((bitField0_ & 0x10000000) != 0) - && desiredLoggingConfig_ != null - && desiredLoggingConfig_ - != com.google.container.v1.LoggingConfig.getDefaultInstance()) { - getDesiredLoggingConfigBuilder().mergeFrom(value); - } else { - desiredLoggingConfig_ = value; - } - } else { - desiredLoggingConfigBuilder_.mergeFrom(value); - } - if (desiredLoggingConfig_ != null) { - bitField0_ |= 0x10000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired logging configuration.
-     * 
- * - * .google.container.v1.LoggingConfig desired_logging_config = 64; - */ - public Builder clearDesiredLoggingConfig() { - bitField0_ = (bitField0_ & ~0x10000000); - desiredLoggingConfig_ = null; - if (desiredLoggingConfigBuilder_ != null) { - desiredLoggingConfigBuilder_.dispose(); - desiredLoggingConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired logging configuration.
-     * 
- * - * .google.container.v1.LoggingConfig desired_logging_config = 64; - */ - public com.google.container.v1.LoggingConfig.Builder getDesiredLoggingConfigBuilder() { - bitField0_ |= 0x10000000; - onChanged(); - return getDesiredLoggingConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired logging configuration.
-     * 
- * - * .google.container.v1.LoggingConfig desired_logging_config = 64; - */ - public com.google.container.v1.LoggingConfigOrBuilder getDesiredLoggingConfigOrBuilder() { - if (desiredLoggingConfigBuilder_ != null) { - return desiredLoggingConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredLoggingConfig_ == null - ? com.google.container.v1.LoggingConfig.getDefaultInstance() - : desiredLoggingConfig_; - } - } - /** - * - * - *
-     * The desired logging configuration.
-     * 
- * - * .google.container.v1.LoggingConfig desired_logging_config = 64; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.LoggingConfig, - com.google.container.v1.LoggingConfig.Builder, - com.google.container.v1.LoggingConfigOrBuilder> - getDesiredLoggingConfigFieldBuilder() { - if (desiredLoggingConfigBuilder_ == null) { - desiredLoggingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.LoggingConfig, - com.google.container.v1.LoggingConfig.Builder, - com.google.container.v1.LoggingConfigOrBuilder>( - getDesiredLoggingConfig(), getParentForChildren(), isClean()); - desiredLoggingConfig_ = null; - } - return desiredLoggingConfigBuilder_; - } - - private com.google.container.v1.MonitoringConfig desiredMonitoringConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MonitoringConfig, - com.google.container.v1.MonitoringConfig.Builder, - com.google.container.v1.MonitoringConfigOrBuilder> - desiredMonitoringConfigBuilder_; - /** - * - * - *
-     * The desired monitoring configuration.
-     * 
- * - * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; - * - * @return Whether the desiredMonitoringConfig field is set. - */ - public boolean hasDesiredMonitoringConfig() { - return ((bitField0_ & 0x20000000) != 0); - } - /** - * - * - *
-     * The desired monitoring configuration.
-     * 
- * - * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; - * - * @return The desiredMonitoringConfig. - */ - public com.google.container.v1.MonitoringConfig getDesiredMonitoringConfig() { - if (desiredMonitoringConfigBuilder_ == null) { - return desiredMonitoringConfig_ == null - ? com.google.container.v1.MonitoringConfig.getDefaultInstance() - : desiredMonitoringConfig_; - } else { - return desiredMonitoringConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired monitoring configuration.
-     * 
- * - * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; - */ - public Builder setDesiredMonitoringConfig(com.google.container.v1.MonitoringConfig value) { - if (desiredMonitoringConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredMonitoringConfig_ = value; - } else { - desiredMonitoringConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x20000000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired monitoring configuration.
-     * 
- * - * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; - */ - public Builder setDesiredMonitoringConfig( - com.google.container.v1.MonitoringConfig.Builder builderForValue) { - if (desiredMonitoringConfigBuilder_ == null) { - desiredMonitoringConfig_ = builderForValue.build(); - } else { - desiredMonitoringConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x20000000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired monitoring configuration.
-     * 
- * - * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; - */ - public Builder mergeDesiredMonitoringConfig(com.google.container.v1.MonitoringConfig value) { - if (desiredMonitoringConfigBuilder_ == null) { - if (((bitField0_ & 0x20000000) != 0) - && desiredMonitoringConfig_ != null - && desiredMonitoringConfig_ - != com.google.container.v1.MonitoringConfig.getDefaultInstance()) { - getDesiredMonitoringConfigBuilder().mergeFrom(value); - } else { - desiredMonitoringConfig_ = value; - } - } else { - desiredMonitoringConfigBuilder_.mergeFrom(value); - } - if (desiredMonitoringConfig_ != null) { - bitField0_ |= 0x20000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired monitoring configuration.
-     * 
- * - * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; - */ - public Builder clearDesiredMonitoringConfig() { - bitField0_ = (bitField0_ & ~0x20000000); - desiredMonitoringConfig_ = null; - if (desiredMonitoringConfigBuilder_ != null) { - desiredMonitoringConfigBuilder_.dispose(); - desiredMonitoringConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired monitoring configuration.
-     * 
- * - * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; - */ - public com.google.container.v1.MonitoringConfig.Builder getDesiredMonitoringConfigBuilder() { - bitField0_ |= 0x20000000; - onChanged(); - return getDesiredMonitoringConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired monitoring configuration.
-     * 
- * - * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; - */ - public com.google.container.v1.MonitoringConfigOrBuilder getDesiredMonitoringConfigOrBuilder() { - if (desiredMonitoringConfigBuilder_ != null) { - return desiredMonitoringConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredMonitoringConfig_ == null - ? com.google.container.v1.MonitoringConfig.getDefaultInstance() - : desiredMonitoringConfig_; - } - } - /** - * - * - *
-     * The desired monitoring configuration.
-     * 
- * - * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MonitoringConfig, - com.google.container.v1.MonitoringConfig.Builder, - com.google.container.v1.MonitoringConfigOrBuilder> - getDesiredMonitoringConfigFieldBuilder() { - if (desiredMonitoringConfigBuilder_ == null) { - desiredMonitoringConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MonitoringConfig, - com.google.container.v1.MonitoringConfig.Builder, - com.google.container.v1.MonitoringConfigOrBuilder>( - getDesiredMonitoringConfig(), getParentForChildren(), isClean()); - desiredMonitoringConfig_ = null; - } - return desiredMonitoringConfigBuilder_; - } - - private com.google.container.v1.IdentityServiceConfig desiredIdentityServiceConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.IdentityServiceConfig, - com.google.container.v1.IdentityServiceConfig.Builder, - com.google.container.v1.IdentityServiceConfigOrBuilder> - desiredIdentityServiceConfigBuilder_; - /** - * - * - *
-     * The desired Identity Service component configuration.
-     * 
- * - * .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; - * - * @return Whether the desiredIdentityServiceConfig field is set. - */ - public boolean hasDesiredIdentityServiceConfig() { - return ((bitField0_ & 0x40000000) != 0); - } - /** - * - * - *
-     * The desired Identity Service component configuration.
-     * 
- * - * .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; - * - * @return The desiredIdentityServiceConfig. - */ - public com.google.container.v1.IdentityServiceConfig getDesiredIdentityServiceConfig() { - if (desiredIdentityServiceConfigBuilder_ == null) { - return desiredIdentityServiceConfig_ == null - ? com.google.container.v1.IdentityServiceConfig.getDefaultInstance() - : desiredIdentityServiceConfig_; - } else { - return desiredIdentityServiceConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired Identity Service component configuration.
-     * 
- * - * .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; - */ - public Builder setDesiredIdentityServiceConfig( - com.google.container.v1.IdentityServiceConfig value) { - if (desiredIdentityServiceConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredIdentityServiceConfig_ = value; - } else { - desiredIdentityServiceConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x40000000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired Identity Service component configuration.
-     * 
- * - * .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; - */ - public Builder setDesiredIdentityServiceConfig( - com.google.container.v1.IdentityServiceConfig.Builder builderForValue) { - if (desiredIdentityServiceConfigBuilder_ == null) { - desiredIdentityServiceConfig_ = builderForValue.build(); - } else { - desiredIdentityServiceConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x40000000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired Identity Service component configuration.
-     * 
- * - * .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; - */ - public Builder mergeDesiredIdentityServiceConfig( - com.google.container.v1.IdentityServiceConfig value) { - if (desiredIdentityServiceConfigBuilder_ == null) { - if (((bitField0_ & 0x40000000) != 0) - && desiredIdentityServiceConfig_ != null - && desiredIdentityServiceConfig_ - != com.google.container.v1.IdentityServiceConfig.getDefaultInstance()) { - getDesiredIdentityServiceConfigBuilder().mergeFrom(value); - } else { - desiredIdentityServiceConfig_ = value; - } - } else { - desiredIdentityServiceConfigBuilder_.mergeFrom(value); - } - if (desiredIdentityServiceConfig_ != null) { - bitField0_ |= 0x40000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired Identity Service component configuration.
-     * 
- * - * .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; - */ - public Builder clearDesiredIdentityServiceConfig() { - bitField0_ = (bitField0_ & ~0x40000000); - desiredIdentityServiceConfig_ = null; - if (desiredIdentityServiceConfigBuilder_ != null) { - desiredIdentityServiceConfigBuilder_.dispose(); - desiredIdentityServiceConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired Identity Service component configuration.
-     * 
- * - * .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; - */ - public com.google.container.v1.IdentityServiceConfig.Builder - getDesiredIdentityServiceConfigBuilder() { - bitField0_ |= 0x40000000; - onChanged(); - return getDesiredIdentityServiceConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired Identity Service component configuration.
-     * 
- * - * .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; - */ - public com.google.container.v1.IdentityServiceConfigOrBuilder - getDesiredIdentityServiceConfigOrBuilder() { - if (desiredIdentityServiceConfigBuilder_ != null) { - return desiredIdentityServiceConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredIdentityServiceConfig_ == null - ? com.google.container.v1.IdentityServiceConfig.getDefaultInstance() - : desiredIdentityServiceConfig_; - } - } - /** - * - * - *
-     * The desired Identity Service component configuration.
-     * 
- * - * .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.IdentityServiceConfig, - com.google.container.v1.IdentityServiceConfig.Builder, - com.google.container.v1.IdentityServiceConfigOrBuilder> - getDesiredIdentityServiceConfigFieldBuilder() { - if (desiredIdentityServiceConfigBuilder_ == null) { - desiredIdentityServiceConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.IdentityServiceConfig, - com.google.container.v1.IdentityServiceConfig.Builder, - com.google.container.v1.IdentityServiceConfigOrBuilder>( - getDesiredIdentityServiceConfig(), getParentForChildren(), isClean()); - desiredIdentityServiceConfig_ = null; - } - return desiredIdentityServiceConfigBuilder_; - } - - private com.google.container.v1.ServiceExternalIPsConfig desiredServiceExternalIpsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ServiceExternalIPsConfig, - com.google.container.v1.ServiceExternalIPsConfig.Builder, - com.google.container.v1.ServiceExternalIPsConfigOrBuilder> - desiredServiceExternalIpsConfigBuilder_; - /** - * - * - *
-     * ServiceExternalIPsConfig specifies the config for the use of Services with
-     * ExternalIPs field.
-     * 
- * - * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - * - * - * @return Whether the desiredServiceExternalIpsConfig field is set. - */ - public boolean hasDesiredServiceExternalIpsConfig() { - return ((bitField0_ & 0x80000000) != 0); - } - /** - * - * - *
-     * ServiceExternalIPsConfig specifies the config for the use of Services with
-     * ExternalIPs field.
-     * 
- * - * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - * - * - * @return The desiredServiceExternalIpsConfig. - */ - public com.google.container.v1.ServiceExternalIPsConfig getDesiredServiceExternalIpsConfig() { - if (desiredServiceExternalIpsConfigBuilder_ == null) { - return desiredServiceExternalIpsConfig_ == null - ? com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance() - : desiredServiceExternalIpsConfig_; - } else { - return desiredServiceExternalIpsConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * ServiceExternalIPsConfig specifies the config for the use of Services with
-     * ExternalIPs field.
-     * 
- * - * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - * - */ - public Builder setDesiredServiceExternalIpsConfig( - com.google.container.v1.ServiceExternalIPsConfig value) { - if (desiredServiceExternalIpsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredServiceExternalIpsConfig_ = value; - } else { - desiredServiceExternalIpsConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x80000000; - onChanged(); - return this; - } - /** - * - * - *
-     * ServiceExternalIPsConfig specifies the config for the use of Services with
-     * ExternalIPs field.
-     * 
- * - * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - * - */ - public Builder setDesiredServiceExternalIpsConfig( - com.google.container.v1.ServiceExternalIPsConfig.Builder builderForValue) { - if (desiredServiceExternalIpsConfigBuilder_ == null) { - desiredServiceExternalIpsConfig_ = builderForValue.build(); - } else { - desiredServiceExternalIpsConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x80000000; - onChanged(); - return this; - } - /** - * - * - *
-     * ServiceExternalIPsConfig specifies the config for the use of Services with
-     * ExternalIPs field.
-     * 
- * - * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - * - */ - public Builder mergeDesiredServiceExternalIpsConfig( - com.google.container.v1.ServiceExternalIPsConfig value) { - if (desiredServiceExternalIpsConfigBuilder_ == null) { - if (((bitField0_ & 0x80000000) != 0) - && desiredServiceExternalIpsConfig_ != null - && desiredServiceExternalIpsConfig_ - != com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance()) { - getDesiredServiceExternalIpsConfigBuilder().mergeFrom(value); - } else { - desiredServiceExternalIpsConfig_ = value; - } - } else { - desiredServiceExternalIpsConfigBuilder_.mergeFrom(value); - } - if (desiredServiceExternalIpsConfig_ != null) { - bitField0_ |= 0x80000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * ServiceExternalIPsConfig specifies the config for the use of Services with
-     * ExternalIPs field.
-     * 
- * - * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - * - */ - public Builder clearDesiredServiceExternalIpsConfig() { - bitField0_ = (bitField0_ & ~0x80000000); - desiredServiceExternalIpsConfig_ = null; - if (desiredServiceExternalIpsConfigBuilder_ != null) { - desiredServiceExternalIpsConfigBuilder_.dispose(); - desiredServiceExternalIpsConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * ServiceExternalIPsConfig specifies the config for the use of Services with
-     * ExternalIPs field.
-     * 
- * - * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - * - */ - public com.google.container.v1.ServiceExternalIPsConfig.Builder - getDesiredServiceExternalIpsConfigBuilder() { - bitField0_ |= 0x80000000; - onChanged(); - return getDesiredServiceExternalIpsConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * ServiceExternalIPsConfig specifies the config for the use of Services with
-     * ExternalIPs field.
-     * 
- * - * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - * - */ - public com.google.container.v1.ServiceExternalIPsConfigOrBuilder - getDesiredServiceExternalIpsConfigOrBuilder() { - if (desiredServiceExternalIpsConfigBuilder_ != null) { - return desiredServiceExternalIpsConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredServiceExternalIpsConfig_ == null - ? com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance() - : desiredServiceExternalIpsConfig_; - } - } - /** - * - * - *
-     * ServiceExternalIPsConfig specifies the config for the use of Services with
-     * ExternalIPs field.
-     * 
- * - * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ServiceExternalIPsConfig, - com.google.container.v1.ServiceExternalIPsConfig.Builder, - com.google.container.v1.ServiceExternalIPsConfigOrBuilder> - getDesiredServiceExternalIpsConfigFieldBuilder() { - if (desiredServiceExternalIpsConfigBuilder_ == null) { - desiredServiceExternalIpsConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ServiceExternalIPsConfig, - com.google.container.v1.ServiceExternalIPsConfig.Builder, - com.google.container.v1.ServiceExternalIPsConfigOrBuilder>( - getDesiredServiceExternalIpsConfig(), getParentForChildren(), isClean()); - desiredServiceExternalIpsConfig_ = null; - } - return desiredServiceExternalIpsConfigBuilder_; - } - - private boolean desiredEnablePrivateEndpoint_; - /** - * - * - *
-     * Enable/Disable private endpoint for the cluster's master.
-     * 
- * - * optional bool desired_enable_private_endpoint = 71; - * - * @return Whether the desiredEnablePrivateEndpoint field is set. - */ - @java.lang.Override - public boolean hasDesiredEnablePrivateEndpoint() { - return ((bitField1_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Enable/Disable private endpoint for the cluster's master.
-     * 
- * - * optional bool desired_enable_private_endpoint = 71; - * - * @return The desiredEnablePrivateEndpoint. - */ - @java.lang.Override - public boolean getDesiredEnablePrivateEndpoint() { - return desiredEnablePrivateEndpoint_; - } - /** - * - * - *
-     * Enable/Disable private endpoint for the cluster's master.
-     * 
- * - * optional bool desired_enable_private_endpoint = 71; - * - * @param value The desiredEnablePrivateEndpoint to set. - * @return This builder for chaining. - */ - public Builder setDesiredEnablePrivateEndpoint(boolean value) { - - desiredEnablePrivateEndpoint_ = value; - bitField1_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable/Disable private endpoint for the cluster's master.
-     * 
- * - * optional bool desired_enable_private_endpoint = 71; - * - * @return This builder for chaining. - */ - public Builder clearDesiredEnablePrivateEndpoint() { - bitField1_ = (bitField1_ & ~0x00000001); - desiredEnablePrivateEndpoint_ = false; - onChanged(); - return this; - } - - private java.lang.Object desiredMasterVersion_ = ""; - /** - * - * - *
-     * The Kubernetes version to change the master to.
-     *
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     *
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the default Kubernetes version
-     * 
- * - * string desired_master_version = 100; - * - * @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.
-     *
-     * 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.
-     *
-     * 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; - bitField1_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * The Kubernetes version to change the master to.
-     *
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     *
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the default Kubernetes version
-     * 
- * - * string desired_master_version = 100; - * - * @return This builder for chaining. - */ - public Builder clearDesiredMasterVersion() { - desiredMasterVersion_ = getDefaultInstance().getDesiredMasterVersion(); - bitField1_ = (bitField1_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * The Kubernetes version to change the master to.
-     *
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     *
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the default Kubernetes version
-     * 
- * - * string desired_master_version = 100; - * - * @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; - bitField1_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.container.v1.GcfsConfig desiredGcfsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GcfsConfig, - com.google.container.v1.GcfsConfig.Builder, - com.google.container.v1.GcfsConfigOrBuilder> - desiredGcfsConfigBuilder_; - /** - * - * - *
-     * The desired GCFS config for the cluster
-     * 
- * - * .google.container.v1.GcfsConfig desired_gcfs_config = 109; - * - * @return Whether the desiredGcfsConfig field is set. - */ - public boolean hasDesiredGcfsConfig() { - return ((bitField1_ & 0x00000004) != 0); - } - /** - * - * - *
-     * The desired GCFS config for the cluster
-     * 
- * - * .google.container.v1.GcfsConfig desired_gcfs_config = 109; - * - * @return The desiredGcfsConfig. - */ - public com.google.container.v1.GcfsConfig getDesiredGcfsConfig() { - if (desiredGcfsConfigBuilder_ == null) { - return desiredGcfsConfig_ == null - ? com.google.container.v1.GcfsConfig.getDefaultInstance() - : desiredGcfsConfig_; - } else { - return desiredGcfsConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired GCFS config for the cluster
-     * 
- * - * .google.container.v1.GcfsConfig desired_gcfs_config = 109; - */ - public Builder setDesiredGcfsConfig(com.google.container.v1.GcfsConfig value) { - if (desiredGcfsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredGcfsConfig_ = value; - } else { - desiredGcfsConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired GCFS config for the cluster
-     * 
- * - * .google.container.v1.GcfsConfig desired_gcfs_config = 109; - */ - public Builder setDesiredGcfsConfig( - com.google.container.v1.GcfsConfig.Builder builderForValue) { - if (desiredGcfsConfigBuilder_ == null) { - desiredGcfsConfig_ = builderForValue.build(); - } else { - desiredGcfsConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired GCFS config for the cluster
-     * 
- * - * .google.container.v1.GcfsConfig desired_gcfs_config = 109; - */ - public Builder mergeDesiredGcfsConfig(com.google.container.v1.GcfsConfig value) { - if (desiredGcfsConfigBuilder_ == null) { - if (((bitField1_ & 0x00000004) != 0) - && desiredGcfsConfig_ != null - && desiredGcfsConfig_ != com.google.container.v1.GcfsConfig.getDefaultInstance()) { - getDesiredGcfsConfigBuilder().mergeFrom(value); - } else { - desiredGcfsConfig_ = value; - } - } else { - desiredGcfsConfigBuilder_.mergeFrom(value); - } - if (desiredGcfsConfig_ != null) { - bitField1_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired GCFS config for the cluster
-     * 
- * - * .google.container.v1.GcfsConfig desired_gcfs_config = 109; - */ - public Builder clearDesiredGcfsConfig() { - bitField1_ = (bitField1_ & ~0x00000004); - desiredGcfsConfig_ = null; - if (desiredGcfsConfigBuilder_ != null) { - desiredGcfsConfigBuilder_.dispose(); - desiredGcfsConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired GCFS config for the cluster
-     * 
- * - * .google.container.v1.GcfsConfig desired_gcfs_config = 109; - */ - public com.google.container.v1.GcfsConfig.Builder getDesiredGcfsConfigBuilder() { - bitField1_ |= 0x00000004; - onChanged(); - return getDesiredGcfsConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired GCFS config for the cluster
-     * 
- * - * .google.container.v1.GcfsConfig desired_gcfs_config = 109; - */ - public com.google.container.v1.GcfsConfigOrBuilder getDesiredGcfsConfigOrBuilder() { - if (desiredGcfsConfigBuilder_ != null) { - return desiredGcfsConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredGcfsConfig_ == null - ? com.google.container.v1.GcfsConfig.getDefaultInstance() - : desiredGcfsConfig_; - } - } - /** - * - * - *
-     * The desired GCFS config for the cluster
-     * 
- * - * .google.container.v1.GcfsConfig desired_gcfs_config = 109; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GcfsConfig, - com.google.container.v1.GcfsConfig.Builder, - com.google.container.v1.GcfsConfigOrBuilder> - getDesiredGcfsConfigFieldBuilder() { - if (desiredGcfsConfigBuilder_ == null) { - desiredGcfsConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GcfsConfig, - com.google.container.v1.GcfsConfig.Builder, - com.google.container.v1.GcfsConfigOrBuilder>( - getDesiredGcfsConfig(), getParentForChildren(), isClean()); - desiredGcfsConfig_ = null; - } - return desiredGcfsConfigBuilder_; - } - - private com.google.container.v1.NetworkTags desiredNodePoolAutoConfigNetworkTags_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkTags, - com.google.container.v1.NetworkTags.Builder, - com.google.container.v1.NetworkTagsOrBuilder> - desiredNodePoolAutoConfigNetworkTagsBuilder_; - /** - * - * - *
-     * The desired network tags that apply to all auto-provisioned node pools
-     * in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; - * - * - * @return Whether the desiredNodePoolAutoConfigNetworkTags field is set. - */ - public boolean hasDesiredNodePoolAutoConfigNetworkTags() { - return ((bitField1_ & 0x00000008) != 0); - } - /** - * - * - *
-     * The desired network tags that apply to all auto-provisioned node pools
-     * in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; - * - * - * @return The desiredNodePoolAutoConfigNetworkTags. - */ - public com.google.container.v1.NetworkTags getDesiredNodePoolAutoConfigNetworkTags() { - if (desiredNodePoolAutoConfigNetworkTagsBuilder_ == null) { - return desiredNodePoolAutoConfigNetworkTags_ == null - ? com.google.container.v1.NetworkTags.getDefaultInstance() - : desiredNodePoolAutoConfigNetworkTags_; - } else { - return desiredNodePoolAutoConfigNetworkTagsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired network tags that apply to all auto-provisioned node pools
-     * in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; - * - */ - public Builder setDesiredNodePoolAutoConfigNetworkTags( - com.google.container.v1.NetworkTags value) { - if (desiredNodePoolAutoConfigNetworkTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredNodePoolAutoConfigNetworkTags_ = value; - } else { - desiredNodePoolAutoConfigNetworkTagsBuilder_.setMessage(value); - } - bitField1_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired network tags that apply to all auto-provisioned node pools
-     * in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; - * - */ - public Builder setDesiredNodePoolAutoConfigNetworkTags( - com.google.container.v1.NetworkTags.Builder builderForValue) { - if (desiredNodePoolAutoConfigNetworkTagsBuilder_ == null) { - desiredNodePoolAutoConfigNetworkTags_ = builderForValue.build(); - } else { - desiredNodePoolAutoConfigNetworkTagsBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired network tags that apply to all auto-provisioned node pools
-     * in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; - * - */ - public Builder mergeDesiredNodePoolAutoConfigNetworkTags( - com.google.container.v1.NetworkTags value) { - if (desiredNodePoolAutoConfigNetworkTagsBuilder_ == null) { - if (((bitField1_ & 0x00000008) != 0) - && desiredNodePoolAutoConfigNetworkTags_ != null - && desiredNodePoolAutoConfigNetworkTags_ - != com.google.container.v1.NetworkTags.getDefaultInstance()) { - getDesiredNodePoolAutoConfigNetworkTagsBuilder().mergeFrom(value); - } else { - desiredNodePoolAutoConfigNetworkTags_ = value; - } - } else { - desiredNodePoolAutoConfigNetworkTagsBuilder_.mergeFrom(value); - } - if (desiredNodePoolAutoConfigNetworkTags_ != null) { - bitField1_ |= 0x00000008; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired network tags that apply to all auto-provisioned node pools
-     * in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; - * - */ - public Builder clearDesiredNodePoolAutoConfigNetworkTags() { - bitField1_ = (bitField1_ & ~0x00000008); - desiredNodePoolAutoConfigNetworkTags_ = null; - if (desiredNodePoolAutoConfigNetworkTagsBuilder_ != null) { - desiredNodePoolAutoConfigNetworkTagsBuilder_.dispose(); - desiredNodePoolAutoConfigNetworkTagsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired network tags that apply to all auto-provisioned node pools
-     * in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; - * - */ - public com.google.container.v1.NetworkTags.Builder - getDesiredNodePoolAutoConfigNetworkTagsBuilder() { - bitField1_ |= 0x00000008; - onChanged(); - return getDesiredNodePoolAutoConfigNetworkTagsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired network tags that apply to all auto-provisioned node pools
-     * in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; - * - */ - public com.google.container.v1.NetworkTagsOrBuilder - getDesiredNodePoolAutoConfigNetworkTagsOrBuilder() { - if (desiredNodePoolAutoConfigNetworkTagsBuilder_ != null) { - return desiredNodePoolAutoConfigNetworkTagsBuilder_.getMessageOrBuilder(); - } else { - return desiredNodePoolAutoConfigNetworkTags_ == null - ? com.google.container.v1.NetworkTags.getDefaultInstance() - : desiredNodePoolAutoConfigNetworkTags_; - } - } - /** - * - * - *
-     * The desired network tags that apply to all auto-provisioned node pools
-     * in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkTags, - com.google.container.v1.NetworkTags.Builder, - com.google.container.v1.NetworkTagsOrBuilder> - getDesiredNodePoolAutoConfigNetworkTagsFieldBuilder() { - if (desiredNodePoolAutoConfigNetworkTagsBuilder_ == null) { - desiredNodePoolAutoConfigNetworkTagsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkTags, - com.google.container.v1.NetworkTags.Builder, - com.google.container.v1.NetworkTagsOrBuilder>( - getDesiredNodePoolAutoConfigNetworkTags(), getParentForChildren(), isClean()); - desiredNodePoolAutoConfigNetworkTags_ = null; - } - return desiredNodePoolAutoConfigNetworkTagsBuilder_; - } - - private com.google.container.v1.GatewayAPIConfig desiredGatewayApiConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GatewayAPIConfig, - com.google.container.v1.GatewayAPIConfig.Builder, - com.google.container.v1.GatewayAPIConfigOrBuilder> - desiredGatewayApiConfigBuilder_; - /** - * - * - *
-     * The desired config of Gateway API on this cluster.
-     * 
- * - * .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; - * - * @return Whether the desiredGatewayApiConfig field is set. - */ - public boolean hasDesiredGatewayApiConfig() { - return ((bitField1_ & 0x00000010) != 0); - } - /** - * - * - *
-     * The desired config of Gateway API on this cluster.
-     * 
- * - * .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; - * - * @return The desiredGatewayApiConfig. - */ - public com.google.container.v1.GatewayAPIConfig getDesiredGatewayApiConfig() { - if (desiredGatewayApiConfigBuilder_ == null) { - return desiredGatewayApiConfig_ == null - ? com.google.container.v1.GatewayAPIConfig.getDefaultInstance() - : desiredGatewayApiConfig_; - } else { - return desiredGatewayApiConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired config of Gateway API on this cluster.
-     * 
- * - * .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; - */ - public Builder setDesiredGatewayApiConfig(com.google.container.v1.GatewayAPIConfig value) { - if (desiredGatewayApiConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredGatewayApiConfig_ = value; - } else { - desiredGatewayApiConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired config of Gateway API on this cluster.
-     * 
- * - * .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; - */ - public Builder setDesiredGatewayApiConfig( - com.google.container.v1.GatewayAPIConfig.Builder builderForValue) { - if (desiredGatewayApiConfigBuilder_ == null) { - desiredGatewayApiConfig_ = builderForValue.build(); - } else { - desiredGatewayApiConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired config of Gateway API on this cluster.
-     * 
- * - * .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; - */ - public Builder mergeDesiredGatewayApiConfig(com.google.container.v1.GatewayAPIConfig value) { - if (desiredGatewayApiConfigBuilder_ == null) { - if (((bitField1_ & 0x00000010) != 0) - && desiredGatewayApiConfig_ != null - && desiredGatewayApiConfig_ - != com.google.container.v1.GatewayAPIConfig.getDefaultInstance()) { - getDesiredGatewayApiConfigBuilder().mergeFrom(value); - } else { - desiredGatewayApiConfig_ = value; - } - } else { - desiredGatewayApiConfigBuilder_.mergeFrom(value); - } - if (desiredGatewayApiConfig_ != null) { - bitField1_ |= 0x00000010; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired config of Gateway API on this cluster.
-     * 
- * - * .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; - */ - public Builder clearDesiredGatewayApiConfig() { - bitField1_ = (bitField1_ & ~0x00000010); - desiredGatewayApiConfig_ = null; - if (desiredGatewayApiConfigBuilder_ != null) { - desiredGatewayApiConfigBuilder_.dispose(); - desiredGatewayApiConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired config of Gateway API on this cluster.
-     * 
- * - * .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; - */ - public com.google.container.v1.GatewayAPIConfig.Builder getDesiredGatewayApiConfigBuilder() { - bitField1_ |= 0x00000010; - onChanged(); - return getDesiredGatewayApiConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired config of Gateway API on this cluster.
-     * 
- * - * .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; - */ - public com.google.container.v1.GatewayAPIConfigOrBuilder getDesiredGatewayApiConfigOrBuilder() { - if (desiredGatewayApiConfigBuilder_ != null) { - return desiredGatewayApiConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredGatewayApiConfig_ == null - ? com.google.container.v1.GatewayAPIConfig.getDefaultInstance() - : desiredGatewayApiConfig_; - } - } - /** - * - * - *
-     * The desired config of Gateway API on this cluster.
-     * 
- * - * .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GatewayAPIConfig, - com.google.container.v1.GatewayAPIConfig.Builder, - com.google.container.v1.GatewayAPIConfigOrBuilder> - getDesiredGatewayApiConfigFieldBuilder() { - if (desiredGatewayApiConfigBuilder_ == null) { - desiredGatewayApiConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GatewayAPIConfig, - com.google.container.v1.GatewayAPIConfig.Builder, - com.google.container.v1.GatewayAPIConfigOrBuilder>( - getDesiredGatewayApiConfig(), getParentForChildren(), isClean()); - desiredGatewayApiConfig_ = null; - } - return desiredGatewayApiConfigBuilder_; - } - - private java.lang.Object etag_ = ""; - /** - * - * - *
-     * The current etag of the cluster.
-     * If an etag is provided and does not match the current etag of the cluster,
-     * update will be blocked and an ABORTED error will be returned.
-     * 
- * - * string etag = 115; - * - * @return The etag. - */ - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The current etag of the cluster.
-     * If an etag is provided and does not match the current etag of the cluster,
-     * update will be blocked and an ABORTED error will be returned.
-     * 
- * - * string etag = 115; - * - * @return The bytes for etag. - */ - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The current etag of the cluster.
-     * If an etag is provided and does not match the current etag of the cluster,
-     * update will be blocked and an ABORTED error will be returned.
-     * 
- * - * string etag = 115; - * - * @param value The etag to set. - * @return This builder for chaining. - */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - etag_ = value; - bitField1_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * The current etag of the cluster.
-     * If an etag is provided and does not match the current etag of the cluster,
-     * update will be blocked and an ABORTED error will be returned.
-     * 
- * - * string etag = 115; - * - * @return This builder for chaining. - */ - public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); - bitField1_ = (bitField1_ & ~0x00000020); - onChanged(); - return this; - } - /** - * - * - *
-     * The current etag of the cluster.
-     * If an etag is provided and does not match the current etag of the cluster,
-     * update will be blocked and an ABORTED error will be returned.
-     * 
- * - * string etag = 115; - * - * @param value The bytes for etag to set. - * @return This builder for chaining. - */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - etag_ = value; - bitField1_ |= 0x00000020; - onChanged(); - return this; - } - - private com.google.container.v1.NodePoolLoggingConfig desiredNodePoolLoggingConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePoolLoggingConfig, - com.google.container.v1.NodePoolLoggingConfig.Builder, - com.google.container.v1.NodePoolLoggingConfigOrBuilder> - desiredNodePoolLoggingConfigBuilder_; - /** - * - * - *
-     * The desired node pool logging configuration defaults for the cluster.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; - * - * - * @return Whether the desiredNodePoolLoggingConfig field is set. - */ - public boolean hasDesiredNodePoolLoggingConfig() { - return ((bitField1_ & 0x00000040) != 0); - } - /** - * - * - *
-     * The desired node pool logging configuration defaults for the cluster.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; - * - * - * @return The desiredNodePoolLoggingConfig. - */ - public com.google.container.v1.NodePoolLoggingConfig getDesiredNodePoolLoggingConfig() { - if (desiredNodePoolLoggingConfigBuilder_ == null) { - return desiredNodePoolLoggingConfig_ == null - ? com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance() - : desiredNodePoolLoggingConfig_; - } else { - return desiredNodePoolLoggingConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired node pool logging configuration defaults for the cluster.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; - * - */ - public Builder setDesiredNodePoolLoggingConfig( - com.google.container.v1.NodePoolLoggingConfig value) { - if (desiredNodePoolLoggingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredNodePoolLoggingConfig_ = value; - } else { - desiredNodePoolLoggingConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired node pool logging configuration defaults for the cluster.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; - * - */ - public Builder setDesiredNodePoolLoggingConfig( - com.google.container.v1.NodePoolLoggingConfig.Builder builderForValue) { - if (desiredNodePoolLoggingConfigBuilder_ == null) { - desiredNodePoolLoggingConfig_ = builderForValue.build(); - } else { - desiredNodePoolLoggingConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired node pool logging configuration defaults for the cluster.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; - * - */ - public Builder mergeDesiredNodePoolLoggingConfig( - com.google.container.v1.NodePoolLoggingConfig value) { - if (desiredNodePoolLoggingConfigBuilder_ == null) { - if (((bitField1_ & 0x00000040) != 0) - && desiredNodePoolLoggingConfig_ != null - && desiredNodePoolLoggingConfig_ - != com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance()) { - getDesiredNodePoolLoggingConfigBuilder().mergeFrom(value); - } else { - desiredNodePoolLoggingConfig_ = value; - } - } else { - desiredNodePoolLoggingConfigBuilder_.mergeFrom(value); - } - if (desiredNodePoolLoggingConfig_ != null) { - bitField1_ |= 0x00000040; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired node pool logging configuration defaults for the cluster.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; - * - */ - public Builder clearDesiredNodePoolLoggingConfig() { - bitField1_ = (bitField1_ & ~0x00000040); - desiredNodePoolLoggingConfig_ = null; - if (desiredNodePoolLoggingConfigBuilder_ != null) { - desiredNodePoolLoggingConfigBuilder_.dispose(); - desiredNodePoolLoggingConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired node pool logging configuration defaults for the cluster.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; - * - */ - public com.google.container.v1.NodePoolLoggingConfig.Builder - getDesiredNodePoolLoggingConfigBuilder() { - bitField1_ |= 0x00000040; - onChanged(); - return getDesiredNodePoolLoggingConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired node pool logging configuration defaults for the cluster.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; - * - */ - public com.google.container.v1.NodePoolLoggingConfigOrBuilder - getDesiredNodePoolLoggingConfigOrBuilder() { - if (desiredNodePoolLoggingConfigBuilder_ != null) { - return desiredNodePoolLoggingConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredNodePoolLoggingConfig_ == null - ? com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance() - : desiredNodePoolLoggingConfig_; - } - } - /** - * - * - *
-     * The desired node pool logging configuration defaults for the cluster.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePoolLoggingConfig, - com.google.container.v1.NodePoolLoggingConfig.Builder, - com.google.container.v1.NodePoolLoggingConfigOrBuilder> - getDesiredNodePoolLoggingConfigFieldBuilder() { - if (desiredNodePoolLoggingConfigBuilder_ == null) { - desiredNodePoolLoggingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePoolLoggingConfig, - com.google.container.v1.NodePoolLoggingConfig.Builder, - com.google.container.v1.NodePoolLoggingConfigOrBuilder>( - getDesiredNodePoolLoggingConfig(), getParentForChildren(), isClean()); - desiredNodePoolLoggingConfig_ = null; - } - return desiredNodePoolLoggingConfigBuilder_; - } - - private com.google.container.v1.Fleet desiredFleet_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.Fleet, - com.google.container.v1.Fleet.Builder, - com.google.container.v1.FleetOrBuilder> - desiredFleetBuilder_; - /** - * - * - *
-     * The desired fleet configuration for the cluster.
-     * 
- * - * .google.container.v1.Fleet desired_fleet = 117; - * - * @return Whether the desiredFleet field is set. - */ - public boolean hasDesiredFleet() { - return ((bitField1_ & 0x00000080) != 0); - } - /** - * - * - *
-     * The desired fleet configuration for the cluster.
-     * 
- * - * .google.container.v1.Fleet desired_fleet = 117; - * - * @return The desiredFleet. - */ - public com.google.container.v1.Fleet getDesiredFleet() { - if (desiredFleetBuilder_ == null) { - return desiredFleet_ == null - ? com.google.container.v1.Fleet.getDefaultInstance() - : desiredFleet_; - } else { - return desiredFleetBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired fleet configuration for the cluster.
-     * 
- * - * .google.container.v1.Fleet desired_fleet = 117; - */ - public Builder setDesiredFleet(com.google.container.v1.Fleet value) { - if (desiredFleetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredFleet_ = value; - } else { - desiredFleetBuilder_.setMessage(value); - } - bitField1_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired fleet configuration for the cluster.
-     * 
- * - * .google.container.v1.Fleet desired_fleet = 117; - */ - public Builder setDesiredFleet(com.google.container.v1.Fleet.Builder builderForValue) { - if (desiredFleetBuilder_ == null) { - desiredFleet_ = builderForValue.build(); - } else { - desiredFleetBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired fleet configuration for the cluster.
-     * 
- * - * .google.container.v1.Fleet desired_fleet = 117; - */ - public Builder mergeDesiredFleet(com.google.container.v1.Fleet value) { - if (desiredFleetBuilder_ == null) { - if (((bitField1_ & 0x00000080) != 0) - && desiredFleet_ != null - && desiredFleet_ != com.google.container.v1.Fleet.getDefaultInstance()) { - getDesiredFleetBuilder().mergeFrom(value); - } else { - desiredFleet_ = value; - } - } else { - desiredFleetBuilder_.mergeFrom(value); - } - if (desiredFleet_ != null) { - bitField1_ |= 0x00000080; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired fleet configuration for the cluster.
-     * 
- * - * .google.container.v1.Fleet desired_fleet = 117; - */ - public Builder clearDesiredFleet() { - bitField1_ = (bitField1_ & ~0x00000080); - desiredFleet_ = null; - if (desiredFleetBuilder_ != null) { - desiredFleetBuilder_.dispose(); - desiredFleetBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired fleet configuration for the cluster.
-     * 
- * - * .google.container.v1.Fleet desired_fleet = 117; - */ - public com.google.container.v1.Fleet.Builder getDesiredFleetBuilder() { - bitField1_ |= 0x00000080; - onChanged(); - return getDesiredFleetFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired fleet configuration for the cluster.
-     * 
- * - * .google.container.v1.Fleet desired_fleet = 117; - */ - public com.google.container.v1.FleetOrBuilder getDesiredFleetOrBuilder() { - if (desiredFleetBuilder_ != null) { - return desiredFleetBuilder_.getMessageOrBuilder(); - } else { - return desiredFleet_ == null - ? com.google.container.v1.Fleet.getDefaultInstance() - : desiredFleet_; - } - } - /** - * - * - *
-     * The desired fleet configuration for the cluster.
-     * 
- * - * .google.container.v1.Fleet desired_fleet = 117; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.Fleet, - com.google.container.v1.Fleet.Builder, - com.google.container.v1.FleetOrBuilder> - getDesiredFleetFieldBuilder() { - if (desiredFleetBuilder_ == null) { - desiredFleetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.Fleet, - com.google.container.v1.Fleet.Builder, - com.google.container.v1.FleetOrBuilder>( - getDesiredFleet(), getParentForChildren(), isClean()); - desiredFleet_ = null; - } - return desiredFleetBuilder_; - } - - private int desiredStackType_ = 0; - /** - * - * - *
-     * The desired stack type of the cluster.
-     * If a stack type is provided and does not match the current stack type of
-     * the cluster, update will attempt to change the stack type to the new type.
-     * 
- * - * .google.container.v1.StackType desired_stack_type = 119; - * - * @return The enum numeric value on the wire for desiredStackType. - */ - @java.lang.Override - public int getDesiredStackTypeValue() { - return desiredStackType_; - } - /** - * - * - *
-     * The desired stack type of the cluster.
-     * If a stack type is provided and does not match the current stack type of
-     * the cluster, update will attempt to change the stack type to the new type.
-     * 
- * - * .google.container.v1.StackType desired_stack_type = 119; - * - * @param value The enum numeric value on the wire for desiredStackType to set. - * @return This builder for chaining. - */ - public Builder setDesiredStackTypeValue(int value) { - desiredStackType_ = value; - bitField1_ |= 0x00000100; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired stack type of the cluster.
-     * If a stack type is provided and does not match the current stack type of
-     * the cluster, update will attempt to change the stack type to the new type.
-     * 
- * - * .google.container.v1.StackType desired_stack_type = 119; - * - * @return The desiredStackType. - */ - @java.lang.Override - public com.google.container.v1.StackType getDesiredStackType() { - com.google.container.v1.StackType result = - com.google.container.v1.StackType.forNumber(desiredStackType_); - return result == null ? com.google.container.v1.StackType.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The desired stack type of the cluster.
-     * If a stack type is provided and does not match the current stack type of
-     * the cluster, update will attempt to change the stack type to the new type.
-     * 
- * - * .google.container.v1.StackType desired_stack_type = 119; - * - * @param value The desiredStackType to set. - * @return This builder for chaining. - */ - public Builder setDesiredStackType(com.google.container.v1.StackType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField1_ |= 0x00000100; - desiredStackType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The desired stack type of the cluster.
-     * If a stack type is provided and does not match the current stack type of
-     * the cluster, update will attempt to change the stack type to the new type.
-     * 
- * - * .google.container.v1.StackType desired_stack_type = 119; - * - * @return This builder for chaining. - */ - public Builder clearDesiredStackType() { - bitField1_ = (bitField1_ & ~0x00000100); - desiredStackType_ = 0; - onChanged(); - return this; - } - - private com.google.container.v1.AdditionalPodRangesConfig additionalPodRangesConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AdditionalPodRangesConfig, - com.google.container.v1.AdditionalPodRangesConfig.Builder, - com.google.container.v1.AdditionalPodRangesConfigOrBuilder> - additionalPodRangesConfigBuilder_; - /** - * - * - *
-     * The additional pod ranges to be added to the cluster. These pod ranges
-     * can be used by node pools to allocate pod IPs.
-     * 
- * - * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; - * - * - * @return Whether the additionalPodRangesConfig field is set. - */ - public boolean hasAdditionalPodRangesConfig() { - return ((bitField1_ & 0x00000200) != 0); - } - /** - * - * - *
-     * The additional pod ranges to be added to the cluster. These pod ranges
-     * can be used by node pools to allocate pod IPs.
-     * 
- * - * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; - * - * - * @return The additionalPodRangesConfig. - */ - public com.google.container.v1.AdditionalPodRangesConfig getAdditionalPodRangesConfig() { - if (additionalPodRangesConfigBuilder_ == null) { - return additionalPodRangesConfig_ == null - ? com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance() - : additionalPodRangesConfig_; - } else { - return additionalPodRangesConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The additional pod ranges to be added to the cluster. These pod ranges
-     * can be used by node pools to allocate pod IPs.
-     * 
- * - * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; - * - */ - public Builder setAdditionalPodRangesConfig( - com.google.container.v1.AdditionalPodRangesConfig value) { - if (additionalPodRangesConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - additionalPodRangesConfig_ = value; - } else { - additionalPodRangesConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x00000200; - onChanged(); - return this; - } - /** - * - * - *
-     * The additional pod ranges to be added to the cluster. These pod ranges
-     * can be used by node pools to allocate pod IPs.
-     * 
- * - * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; - * - */ - public Builder setAdditionalPodRangesConfig( - com.google.container.v1.AdditionalPodRangesConfig.Builder builderForValue) { - if (additionalPodRangesConfigBuilder_ == null) { - additionalPodRangesConfig_ = builderForValue.build(); - } else { - additionalPodRangesConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000200; - onChanged(); - return this; - } - /** - * - * - *
-     * The additional pod ranges to be added to the cluster. These pod ranges
-     * can be used by node pools to allocate pod IPs.
-     * 
- * - * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; - * - */ - public Builder mergeAdditionalPodRangesConfig( - com.google.container.v1.AdditionalPodRangesConfig value) { - if (additionalPodRangesConfigBuilder_ == null) { - if (((bitField1_ & 0x00000200) != 0) - && additionalPodRangesConfig_ != null - && additionalPodRangesConfig_ - != com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance()) { - getAdditionalPodRangesConfigBuilder().mergeFrom(value); - } else { - additionalPodRangesConfig_ = value; - } - } else { - additionalPodRangesConfigBuilder_.mergeFrom(value); - } - if (additionalPodRangesConfig_ != null) { - bitField1_ |= 0x00000200; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The additional pod ranges to be added to the cluster. These pod ranges
-     * can be used by node pools to allocate pod IPs.
-     * 
- * - * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; - * - */ - public Builder clearAdditionalPodRangesConfig() { - bitField1_ = (bitField1_ & ~0x00000200); - additionalPodRangesConfig_ = null; - if (additionalPodRangesConfigBuilder_ != null) { - additionalPodRangesConfigBuilder_.dispose(); - additionalPodRangesConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The additional pod ranges to be added to the cluster. These pod ranges
-     * can be used by node pools to allocate pod IPs.
-     * 
- * - * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; - * - */ - public com.google.container.v1.AdditionalPodRangesConfig.Builder - getAdditionalPodRangesConfigBuilder() { - bitField1_ |= 0x00000200; - onChanged(); - return getAdditionalPodRangesConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The additional pod ranges to be added to the cluster. These pod ranges
-     * can be used by node pools to allocate pod IPs.
-     * 
- * - * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; - * - */ - public com.google.container.v1.AdditionalPodRangesConfigOrBuilder - getAdditionalPodRangesConfigOrBuilder() { - if (additionalPodRangesConfigBuilder_ != null) { - return additionalPodRangesConfigBuilder_.getMessageOrBuilder(); - } else { - return additionalPodRangesConfig_ == null - ? com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance() - : additionalPodRangesConfig_; - } - } - /** - * - * - *
-     * The additional pod ranges to be added to the cluster. These pod ranges
-     * can be used by node pools to allocate pod IPs.
-     * 
- * - * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AdditionalPodRangesConfig, - com.google.container.v1.AdditionalPodRangesConfig.Builder, - com.google.container.v1.AdditionalPodRangesConfigOrBuilder> - getAdditionalPodRangesConfigFieldBuilder() { - if (additionalPodRangesConfigBuilder_ == null) { - additionalPodRangesConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AdditionalPodRangesConfig, - com.google.container.v1.AdditionalPodRangesConfig.Builder, - com.google.container.v1.AdditionalPodRangesConfigOrBuilder>( - getAdditionalPodRangesConfig(), getParentForChildren(), isClean()); - additionalPodRangesConfig_ = null; - } - return additionalPodRangesConfigBuilder_; - } - - private com.google.container.v1.AdditionalPodRangesConfig removedAdditionalPodRangesConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AdditionalPodRangesConfig, - com.google.container.v1.AdditionalPodRangesConfig.Builder, - com.google.container.v1.AdditionalPodRangesConfigOrBuilder> - removedAdditionalPodRangesConfigBuilder_; - /** - * - * - *
-     * The additional pod ranges that are to be removed from the cluster.
-     * The pod ranges specified here must have been specified earlier in the
-     * 'additional_pod_ranges_config' argument.
-     * 
- * - * - * .google.container.v1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; - * - * - * @return Whether the removedAdditionalPodRangesConfig field is set. - */ - public boolean hasRemovedAdditionalPodRangesConfig() { - return ((bitField1_ & 0x00000400) != 0); - } - /** - * - * - *
-     * The additional pod ranges that are to be removed from the cluster.
-     * The pod ranges specified here must have been specified earlier in the
-     * 'additional_pod_ranges_config' argument.
-     * 
- * - * - * .google.container.v1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; - * - * - * @return The removedAdditionalPodRangesConfig. - */ - public com.google.container.v1.AdditionalPodRangesConfig getRemovedAdditionalPodRangesConfig() { - if (removedAdditionalPodRangesConfigBuilder_ == null) { - return removedAdditionalPodRangesConfig_ == null - ? com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance() - : removedAdditionalPodRangesConfig_; - } else { - return removedAdditionalPodRangesConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The additional pod ranges that are to be removed from the cluster.
-     * The pod ranges specified here must have been specified earlier in the
-     * 'additional_pod_ranges_config' argument.
-     * 
- * - * - * .google.container.v1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; - * - */ - public Builder setRemovedAdditionalPodRangesConfig( - com.google.container.v1.AdditionalPodRangesConfig value) { - if (removedAdditionalPodRangesConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - removedAdditionalPodRangesConfig_ = value; - } else { - removedAdditionalPodRangesConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x00000400; - onChanged(); - return this; - } - /** - * - * - *
-     * The additional pod ranges that are to be removed from the cluster.
-     * The pod ranges specified here must have been specified earlier in the
-     * 'additional_pod_ranges_config' argument.
-     * 
- * - * - * .google.container.v1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; - * - */ - public Builder setRemovedAdditionalPodRangesConfig( - com.google.container.v1.AdditionalPodRangesConfig.Builder builderForValue) { - if (removedAdditionalPodRangesConfigBuilder_ == null) { - removedAdditionalPodRangesConfig_ = builderForValue.build(); - } else { - removedAdditionalPodRangesConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000400; - onChanged(); - return this; - } - /** - * - * - *
-     * The additional pod ranges that are to be removed from the cluster.
-     * The pod ranges specified here must have been specified earlier in the
-     * 'additional_pod_ranges_config' argument.
-     * 
- * - * - * .google.container.v1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; - * - */ - public Builder mergeRemovedAdditionalPodRangesConfig( - com.google.container.v1.AdditionalPodRangesConfig value) { - if (removedAdditionalPodRangesConfigBuilder_ == null) { - if (((bitField1_ & 0x00000400) != 0) - && removedAdditionalPodRangesConfig_ != null - && removedAdditionalPodRangesConfig_ - != com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance()) { - getRemovedAdditionalPodRangesConfigBuilder().mergeFrom(value); - } else { - removedAdditionalPodRangesConfig_ = value; - } - } else { - removedAdditionalPodRangesConfigBuilder_.mergeFrom(value); - } - if (removedAdditionalPodRangesConfig_ != null) { - bitField1_ |= 0x00000400; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The additional pod ranges that are to be removed from the cluster.
-     * The pod ranges specified here must have been specified earlier in the
-     * 'additional_pod_ranges_config' argument.
-     * 
- * - * - * .google.container.v1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; - * - */ - public Builder clearRemovedAdditionalPodRangesConfig() { - bitField1_ = (bitField1_ & ~0x00000400); - removedAdditionalPodRangesConfig_ = null; - if (removedAdditionalPodRangesConfigBuilder_ != null) { - removedAdditionalPodRangesConfigBuilder_.dispose(); - removedAdditionalPodRangesConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The additional pod ranges that are to be removed from the cluster.
-     * The pod ranges specified here must have been specified earlier in the
-     * 'additional_pod_ranges_config' argument.
-     * 
- * - * - * .google.container.v1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; - * - */ - public com.google.container.v1.AdditionalPodRangesConfig.Builder - getRemovedAdditionalPodRangesConfigBuilder() { - bitField1_ |= 0x00000400; - onChanged(); - return getRemovedAdditionalPodRangesConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The additional pod ranges that are to be removed from the cluster.
-     * The pod ranges specified here must have been specified earlier in the
-     * 'additional_pod_ranges_config' argument.
-     * 
- * - * - * .google.container.v1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; - * - */ - public com.google.container.v1.AdditionalPodRangesConfigOrBuilder - getRemovedAdditionalPodRangesConfigOrBuilder() { - if (removedAdditionalPodRangesConfigBuilder_ != null) { - return removedAdditionalPodRangesConfigBuilder_.getMessageOrBuilder(); - } else { - return removedAdditionalPodRangesConfig_ == null - ? com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance() - : removedAdditionalPodRangesConfig_; - } - } - /** - * - * - *
-     * The additional pod ranges that are to be removed from the cluster.
-     * The pod ranges specified here must have been specified earlier in the
-     * 'additional_pod_ranges_config' argument.
-     * 
- * - * - * .google.container.v1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AdditionalPodRangesConfig, - com.google.container.v1.AdditionalPodRangesConfig.Builder, - com.google.container.v1.AdditionalPodRangesConfigOrBuilder> - getRemovedAdditionalPodRangesConfigFieldBuilder() { - if (removedAdditionalPodRangesConfigBuilder_ == null) { - removedAdditionalPodRangesConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AdditionalPodRangesConfig, - com.google.container.v1.AdditionalPodRangesConfig.Builder, - com.google.container.v1.AdditionalPodRangesConfigOrBuilder>( - getRemovedAdditionalPodRangesConfig(), getParentForChildren(), isClean()); - removedAdditionalPodRangesConfig_ = null; - } - return removedAdditionalPodRangesConfigBuilder_; - } - - private com.google.container.v1.K8sBetaAPIConfig enableK8SBetaApis_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.K8sBetaAPIConfig, - com.google.container.v1.K8sBetaAPIConfig.Builder, - com.google.container.v1.K8sBetaAPIConfigOrBuilder> - enableK8SBetaApisBuilder_; - /** - * - * - *
-     * Kubernetes open source beta apis enabled on the cluster. Only beta apis
-     * 
- * - * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; - * - * @return Whether the enableK8sBetaApis field is set. - */ - public boolean hasEnableK8SBetaApis() { - return ((bitField1_ & 0x00000800) != 0); - } - /** - * - * - *
-     * Kubernetes open source beta apis enabled on the cluster. Only beta apis
-     * 
- * - * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; - * - * @return The enableK8sBetaApis. - */ - public com.google.container.v1.K8sBetaAPIConfig getEnableK8SBetaApis() { - if (enableK8SBetaApisBuilder_ == null) { - return enableK8SBetaApis_ == null - ? com.google.container.v1.K8sBetaAPIConfig.getDefaultInstance() - : enableK8SBetaApis_; - } else { - return enableK8SBetaApisBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Kubernetes open source beta apis enabled on the cluster. Only beta apis
-     * 
- * - * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; - */ - public Builder setEnableK8SBetaApis(com.google.container.v1.K8sBetaAPIConfig value) { - if (enableK8SBetaApisBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - enableK8SBetaApis_ = value; - } else { - enableK8SBetaApisBuilder_.setMessage(value); - } - bitField1_ |= 0x00000800; - onChanged(); - return this; - } - /** - * - * - *
-     * Kubernetes open source beta apis enabled on the cluster. Only beta apis
-     * 
- * - * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; - */ - public Builder setEnableK8SBetaApis( - com.google.container.v1.K8sBetaAPIConfig.Builder builderForValue) { - if (enableK8SBetaApisBuilder_ == null) { - enableK8SBetaApis_ = builderForValue.build(); - } else { - enableK8SBetaApisBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000800; - onChanged(); - return this; - } - /** - * - * - *
-     * Kubernetes open source beta apis enabled on the cluster. Only beta apis
-     * 
- * - * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; - */ - public Builder mergeEnableK8SBetaApis(com.google.container.v1.K8sBetaAPIConfig value) { - if (enableK8SBetaApisBuilder_ == null) { - if (((bitField1_ & 0x00000800) != 0) - && enableK8SBetaApis_ != null - && enableK8SBetaApis_ - != com.google.container.v1.K8sBetaAPIConfig.getDefaultInstance()) { - getEnableK8SBetaApisBuilder().mergeFrom(value); - } else { - enableK8SBetaApis_ = value; - } - } else { - enableK8SBetaApisBuilder_.mergeFrom(value); - } - if (enableK8SBetaApis_ != null) { - bitField1_ |= 0x00000800; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Kubernetes open source beta apis enabled on the cluster. Only beta apis
-     * 
- * - * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; - */ - public Builder clearEnableK8SBetaApis() { - bitField1_ = (bitField1_ & ~0x00000800); - enableK8SBetaApis_ = null; - if (enableK8SBetaApisBuilder_ != null) { - enableK8SBetaApisBuilder_.dispose(); - enableK8SBetaApisBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Kubernetes open source beta apis enabled on the cluster. Only beta apis
-     * 
- * - * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; - */ - public com.google.container.v1.K8sBetaAPIConfig.Builder getEnableK8SBetaApisBuilder() { - bitField1_ |= 0x00000800; - onChanged(); - return getEnableK8SBetaApisFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Kubernetes open source beta apis enabled on the cluster. Only beta apis
-     * 
- * - * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; - */ - public com.google.container.v1.K8sBetaAPIConfigOrBuilder getEnableK8SBetaApisOrBuilder() { - if (enableK8SBetaApisBuilder_ != null) { - return enableK8SBetaApisBuilder_.getMessageOrBuilder(); - } else { - return enableK8SBetaApis_ == null - ? com.google.container.v1.K8sBetaAPIConfig.getDefaultInstance() - : enableK8SBetaApis_; - } - } - /** - * - * - *
-     * Kubernetes open source beta apis enabled on the cluster. Only beta apis
-     * 
- * - * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.K8sBetaAPIConfig, - com.google.container.v1.K8sBetaAPIConfig.Builder, - com.google.container.v1.K8sBetaAPIConfigOrBuilder> - getEnableK8SBetaApisFieldBuilder() { - if (enableK8SBetaApisBuilder_ == null) { - enableK8SBetaApisBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.K8sBetaAPIConfig, - com.google.container.v1.K8sBetaAPIConfig.Builder, - com.google.container.v1.K8sBetaAPIConfigOrBuilder>( - getEnableK8SBetaApis(), getParentForChildren(), isClean()); - enableK8SBetaApis_ = null; - } - return enableK8SBetaApisBuilder_; - } - - private com.google.container.v1.SecurityPostureConfig desiredSecurityPostureConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.SecurityPostureConfig, - com.google.container.v1.SecurityPostureConfig.Builder, - com.google.container.v1.SecurityPostureConfigOrBuilder> - desiredSecurityPostureConfigBuilder_; - /** - * - * - *
-     * Enable/Disable Security Posture API features for the cluster.
-     * 
- * - * .google.container.v1.SecurityPostureConfig desired_security_posture_config = 124; - * - * - * @return Whether the desiredSecurityPostureConfig field is set. - */ - public boolean hasDesiredSecurityPostureConfig() { - return ((bitField1_ & 0x00001000) != 0); - } - /** - * - * - *
-     * Enable/Disable Security Posture API features for the cluster.
-     * 
- * - * .google.container.v1.SecurityPostureConfig desired_security_posture_config = 124; - * - * - * @return The desiredSecurityPostureConfig. - */ - public com.google.container.v1.SecurityPostureConfig getDesiredSecurityPostureConfig() { - if (desiredSecurityPostureConfigBuilder_ == null) { - return desiredSecurityPostureConfig_ == null - ? com.google.container.v1.SecurityPostureConfig.getDefaultInstance() - : desiredSecurityPostureConfig_; - } else { - return desiredSecurityPostureConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Enable/Disable Security Posture API features for the cluster.
-     * 
- * - * .google.container.v1.SecurityPostureConfig desired_security_posture_config = 124; - * - */ - public Builder setDesiredSecurityPostureConfig( - com.google.container.v1.SecurityPostureConfig value) { - if (desiredSecurityPostureConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredSecurityPostureConfig_ = value; - } else { - desiredSecurityPostureConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x00001000; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable/Disable Security Posture API features for the cluster.
-     * 
- * - * .google.container.v1.SecurityPostureConfig desired_security_posture_config = 124; - * - */ - public Builder setDesiredSecurityPostureConfig( - com.google.container.v1.SecurityPostureConfig.Builder builderForValue) { - if (desiredSecurityPostureConfigBuilder_ == null) { - desiredSecurityPostureConfig_ = builderForValue.build(); - } else { - desiredSecurityPostureConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00001000; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable/Disable Security Posture API features for the cluster.
-     * 
- * - * .google.container.v1.SecurityPostureConfig desired_security_posture_config = 124; - * - */ - public Builder mergeDesiredSecurityPostureConfig( - com.google.container.v1.SecurityPostureConfig value) { - if (desiredSecurityPostureConfigBuilder_ == null) { - if (((bitField1_ & 0x00001000) != 0) - && desiredSecurityPostureConfig_ != null - && desiredSecurityPostureConfig_ - != com.google.container.v1.SecurityPostureConfig.getDefaultInstance()) { - getDesiredSecurityPostureConfigBuilder().mergeFrom(value); - } else { - desiredSecurityPostureConfig_ = value; - } - } else { - desiredSecurityPostureConfigBuilder_.mergeFrom(value); - } - if (desiredSecurityPostureConfig_ != null) { - bitField1_ |= 0x00001000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Enable/Disable Security Posture API features for the cluster.
-     * 
- * - * .google.container.v1.SecurityPostureConfig desired_security_posture_config = 124; - * - */ - public Builder clearDesiredSecurityPostureConfig() { - bitField1_ = (bitField1_ & ~0x00001000); - desiredSecurityPostureConfig_ = null; - if (desiredSecurityPostureConfigBuilder_ != null) { - desiredSecurityPostureConfigBuilder_.dispose(); - desiredSecurityPostureConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Enable/Disable Security Posture API features for the cluster.
-     * 
- * - * .google.container.v1.SecurityPostureConfig desired_security_posture_config = 124; - * - */ - public com.google.container.v1.SecurityPostureConfig.Builder - getDesiredSecurityPostureConfigBuilder() { - bitField1_ |= 0x00001000; - onChanged(); - return getDesiredSecurityPostureConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Enable/Disable Security Posture API features for the cluster.
-     * 
- * - * .google.container.v1.SecurityPostureConfig desired_security_posture_config = 124; - * - */ - public com.google.container.v1.SecurityPostureConfigOrBuilder - getDesiredSecurityPostureConfigOrBuilder() { - if (desiredSecurityPostureConfigBuilder_ != null) { - return desiredSecurityPostureConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredSecurityPostureConfig_ == null - ? com.google.container.v1.SecurityPostureConfig.getDefaultInstance() - : desiredSecurityPostureConfig_; - } - } - /** - * - * - *
-     * Enable/Disable Security Posture API features for the cluster.
-     * 
- * - * .google.container.v1.SecurityPostureConfig desired_security_posture_config = 124; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.SecurityPostureConfig, - com.google.container.v1.SecurityPostureConfig.Builder, - com.google.container.v1.SecurityPostureConfigOrBuilder> - getDesiredSecurityPostureConfigFieldBuilder() { - if (desiredSecurityPostureConfigBuilder_ == null) { - desiredSecurityPostureConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.SecurityPostureConfig, - com.google.container.v1.SecurityPostureConfig.Builder, - com.google.container.v1.SecurityPostureConfigOrBuilder>( - getDesiredSecurityPostureConfig(), getParentForChildren(), isClean()); - desiredSecurityPostureConfig_ = null; - } - return desiredSecurityPostureConfigBuilder_; - } - - private com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig - desiredNetworkPerformanceConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig, - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder, - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder> - desiredNetworkPerformanceConfigBuilder_; - /** - * - * - *
-     * The desired network performance config.
-     * 
- * - * - * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; - * - * - * @return Whether the desiredNetworkPerformanceConfig field is set. - */ - public boolean hasDesiredNetworkPerformanceConfig() { - return ((bitField1_ & 0x00002000) != 0); - } - /** - * - * - *
-     * The desired network performance config.
-     * 
- * - * - * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; - * - * - * @return The desiredNetworkPerformanceConfig. - */ - public com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig - getDesiredNetworkPerformanceConfig() { - if (desiredNetworkPerformanceConfigBuilder_ == null) { - return desiredNetworkPerformanceConfig_ == null - ? com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig - .getDefaultInstance() - : desiredNetworkPerformanceConfig_; - } else { - return desiredNetworkPerformanceConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired network performance config.
-     * 
- * - * - * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; - * - */ - public Builder setDesiredNetworkPerformanceConfig( - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig value) { - if (desiredNetworkPerformanceConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredNetworkPerformanceConfig_ = value; - } else { - desiredNetworkPerformanceConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x00002000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired network performance config.
-     * 
- * - * - * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; - * - */ - public Builder setDesiredNetworkPerformanceConfig( - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder - builderForValue) { - if (desiredNetworkPerformanceConfigBuilder_ == null) { - desiredNetworkPerformanceConfig_ = builderForValue.build(); - } else { - desiredNetworkPerformanceConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00002000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired network performance config.
-     * 
- * - * - * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; - * - */ - public Builder mergeDesiredNetworkPerformanceConfig( - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig value) { - if (desiredNetworkPerformanceConfigBuilder_ == null) { - if (((bitField1_ & 0x00002000) != 0) - && desiredNetworkPerformanceConfig_ != null - && desiredNetworkPerformanceConfig_ - != com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig - .getDefaultInstance()) { - getDesiredNetworkPerformanceConfigBuilder().mergeFrom(value); - } else { - desiredNetworkPerformanceConfig_ = value; - } - } else { - desiredNetworkPerformanceConfigBuilder_.mergeFrom(value); - } - if (desiredNetworkPerformanceConfig_ != null) { - bitField1_ |= 0x00002000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired network performance config.
-     * 
- * - * - * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; - * - */ - public Builder clearDesiredNetworkPerformanceConfig() { - bitField1_ = (bitField1_ & ~0x00002000); - desiredNetworkPerformanceConfig_ = null; - if (desiredNetworkPerformanceConfigBuilder_ != null) { - desiredNetworkPerformanceConfigBuilder_.dispose(); - desiredNetworkPerformanceConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired network performance config.
-     * 
- * - * - * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; - * - */ - public com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder - getDesiredNetworkPerformanceConfigBuilder() { - bitField1_ |= 0x00002000; - onChanged(); - return getDesiredNetworkPerformanceConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired network performance config.
-     * 
- * - * - * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; - * - */ - public com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder - getDesiredNetworkPerformanceConfigOrBuilder() { - if (desiredNetworkPerformanceConfigBuilder_ != null) { - return desiredNetworkPerformanceConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredNetworkPerformanceConfig_ == null - ? com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig - .getDefaultInstance() - : desiredNetworkPerformanceConfig_; - } - } - /** - * - * - *
-     * The desired network performance config.
-     * 
- * - * - * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig, - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder, - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder> - getDesiredNetworkPerformanceConfigFieldBuilder() { - if (desiredNetworkPerformanceConfigBuilder_ == null) { - desiredNetworkPerformanceConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig, - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder, - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder>( - getDesiredNetworkPerformanceConfig(), getParentForChildren(), isClean()); - desiredNetworkPerformanceConfig_ = null; - } - return desiredNetworkPerformanceConfigBuilder_; - } - - private boolean desiredEnableFqdnNetworkPolicy_; - /** - * - * - *
-     * Enable/Disable FQDN Network Policy for the cluster.
-     * 
- * - * optional bool desired_enable_fqdn_network_policy = 126; - * - * @return Whether the desiredEnableFqdnNetworkPolicy field is set. - */ - @java.lang.Override - public boolean hasDesiredEnableFqdnNetworkPolicy() { - return ((bitField1_ & 0x00004000) != 0); - } - /** - * - * - *
-     * Enable/Disable FQDN Network Policy for the cluster.
-     * 
- * - * optional bool desired_enable_fqdn_network_policy = 126; - * - * @return The desiredEnableFqdnNetworkPolicy. - */ - @java.lang.Override - public boolean getDesiredEnableFqdnNetworkPolicy() { - return desiredEnableFqdnNetworkPolicy_; - } - /** - * - * - *
-     * Enable/Disable FQDN Network Policy for the cluster.
-     * 
- * - * optional bool desired_enable_fqdn_network_policy = 126; - * - * @param value The desiredEnableFqdnNetworkPolicy to set. - * @return This builder for chaining. - */ - public Builder setDesiredEnableFqdnNetworkPolicy(boolean value) { - - desiredEnableFqdnNetworkPolicy_ = value; - bitField1_ |= 0x00004000; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable/Disable FQDN Network Policy for the cluster.
-     * 
- * - * optional bool desired_enable_fqdn_network_policy = 126; - * - * @return This builder for chaining. - */ - public Builder clearDesiredEnableFqdnNetworkPolicy() { - bitField1_ = (bitField1_ & ~0x00004000); - desiredEnableFqdnNetworkPolicy_ = false; - onChanged(); - return this; - } - - private com.google.container.v1.WorkloadPolicyConfig desiredAutopilotWorkloadPolicyConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WorkloadPolicyConfig, - com.google.container.v1.WorkloadPolicyConfig.Builder, - com.google.container.v1.WorkloadPolicyConfigOrBuilder> - desiredAutopilotWorkloadPolicyConfigBuilder_; - /** - * - * - *
-     * The desired workload policy configuration for the autopilot cluster.
-     * 
- * - * - * .google.container.v1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; - * - * - * @return Whether the desiredAutopilotWorkloadPolicyConfig field is set. - */ - public boolean hasDesiredAutopilotWorkloadPolicyConfig() { - return ((bitField1_ & 0x00008000) != 0); - } - /** - * - * - *
-     * The desired workload policy configuration for the autopilot cluster.
-     * 
- * - * - * .google.container.v1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; - * - * - * @return The desiredAutopilotWorkloadPolicyConfig. - */ - public com.google.container.v1.WorkloadPolicyConfig getDesiredAutopilotWorkloadPolicyConfig() { - if (desiredAutopilotWorkloadPolicyConfigBuilder_ == null) { - return desiredAutopilotWorkloadPolicyConfig_ == null - ? com.google.container.v1.WorkloadPolicyConfig.getDefaultInstance() - : desiredAutopilotWorkloadPolicyConfig_; - } else { - return desiredAutopilotWorkloadPolicyConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired workload policy configuration for the autopilot cluster.
-     * 
- * - * - * .google.container.v1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; - * - */ - public Builder setDesiredAutopilotWorkloadPolicyConfig( - com.google.container.v1.WorkloadPolicyConfig value) { - if (desiredAutopilotWorkloadPolicyConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredAutopilotWorkloadPolicyConfig_ = value; - } else { - desiredAutopilotWorkloadPolicyConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x00008000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired workload policy configuration for the autopilot cluster.
-     * 
- * - * - * .google.container.v1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; - * - */ - public Builder setDesiredAutopilotWorkloadPolicyConfig( - com.google.container.v1.WorkloadPolicyConfig.Builder builderForValue) { - if (desiredAutopilotWorkloadPolicyConfigBuilder_ == null) { - desiredAutopilotWorkloadPolicyConfig_ = builderForValue.build(); - } else { - desiredAutopilotWorkloadPolicyConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00008000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired workload policy configuration for the autopilot cluster.
-     * 
- * - * - * .google.container.v1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; - * - */ - public Builder mergeDesiredAutopilotWorkloadPolicyConfig( - com.google.container.v1.WorkloadPolicyConfig value) { - if (desiredAutopilotWorkloadPolicyConfigBuilder_ == null) { - if (((bitField1_ & 0x00008000) != 0) - && desiredAutopilotWorkloadPolicyConfig_ != null - && desiredAutopilotWorkloadPolicyConfig_ - != com.google.container.v1.WorkloadPolicyConfig.getDefaultInstance()) { - getDesiredAutopilotWorkloadPolicyConfigBuilder().mergeFrom(value); - } else { - desiredAutopilotWorkloadPolicyConfig_ = value; - } - } else { - desiredAutopilotWorkloadPolicyConfigBuilder_.mergeFrom(value); - } - if (desiredAutopilotWorkloadPolicyConfig_ != null) { - bitField1_ |= 0x00008000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired workload policy configuration for the autopilot cluster.
-     * 
- * - * - * .google.container.v1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; - * - */ - public Builder clearDesiredAutopilotWorkloadPolicyConfig() { - bitField1_ = (bitField1_ & ~0x00008000); - desiredAutopilotWorkloadPolicyConfig_ = null; - if (desiredAutopilotWorkloadPolicyConfigBuilder_ != null) { - desiredAutopilotWorkloadPolicyConfigBuilder_.dispose(); - desiredAutopilotWorkloadPolicyConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired workload policy configuration for the autopilot cluster.
-     * 
- * - * - * .google.container.v1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; - * - */ - public com.google.container.v1.WorkloadPolicyConfig.Builder - getDesiredAutopilotWorkloadPolicyConfigBuilder() { - bitField1_ |= 0x00008000; - onChanged(); - return getDesiredAutopilotWorkloadPolicyConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired workload policy configuration for the autopilot cluster.
-     * 
- * - * - * .google.container.v1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; - * - */ - public com.google.container.v1.WorkloadPolicyConfigOrBuilder - getDesiredAutopilotWorkloadPolicyConfigOrBuilder() { - if (desiredAutopilotWorkloadPolicyConfigBuilder_ != null) { - return desiredAutopilotWorkloadPolicyConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredAutopilotWorkloadPolicyConfig_ == null - ? com.google.container.v1.WorkloadPolicyConfig.getDefaultInstance() - : desiredAutopilotWorkloadPolicyConfig_; - } - } - /** - * - * - *
-     * The desired workload policy configuration for the autopilot cluster.
-     * 
- * - * - * .google.container.v1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WorkloadPolicyConfig, - com.google.container.v1.WorkloadPolicyConfig.Builder, - com.google.container.v1.WorkloadPolicyConfigOrBuilder> - getDesiredAutopilotWorkloadPolicyConfigFieldBuilder() { - if (desiredAutopilotWorkloadPolicyConfigBuilder_ == null) { - desiredAutopilotWorkloadPolicyConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WorkloadPolicyConfig, - com.google.container.v1.WorkloadPolicyConfig.Builder, - com.google.container.v1.WorkloadPolicyConfigOrBuilder>( - getDesiredAutopilotWorkloadPolicyConfig(), getParentForChildren(), isClean()); - desiredAutopilotWorkloadPolicyConfig_ = null; - } - return desiredAutopilotWorkloadPolicyConfigBuilder_; - } - - private com.google.container.v1.K8sBetaAPIConfig desiredK8SBetaApis_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.K8sBetaAPIConfig, - com.google.container.v1.K8sBetaAPIConfig.Builder, - com.google.container.v1.K8sBetaAPIConfigOrBuilder> - desiredK8SBetaApisBuilder_; - /** - * - * - *
-     * Desired Beta APIs to be enabled for cluster.
-     * 
- * - * .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; - * - * @return Whether the desiredK8sBetaApis field is set. - */ - public boolean hasDesiredK8SBetaApis() { - return ((bitField1_ & 0x00010000) != 0); - } - /** - * - * - *
-     * Desired Beta APIs to be enabled for cluster.
-     * 
- * - * .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; - * - * @return The desiredK8sBetaApis. - */ - public com.google.container.v1.K8sBetaAPIConfig getDesiredK8SBetaApis() { - if (desiredK8SBetaApisBuilder_ == null) { - return desiredK8SBetaApis_ == null - ? com.google.container.v1.K8sBetaAPIConfig.getDefaultInstance() - : desiredK8SBetaApis_; - } else { - return desiredK8SBetaApisBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Desired Beta APIs to be enabled for cluster.
-     * 
- * - * .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; - */ - public Builder setDesiredK8SBetaApis(com.google.container.v1.K8sBetaAPIConfig value) { - if (desiredK8SBetaApisBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredK8SBetaApis_ = value; - } else { - desiredK8SBetaApisBuilder_.setMessage(value); - } - bitField1_ |= 0x00010000; - onChanged(); - return this; - } - /** - * - * - *
-     * Desired Beta APIs to be enabled for cluster.
-     * 
- * - * .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; - */ - public Builder setDesiredK8SBetaApis( - com.google.container.v1.K8sBetaAPIConfig.Builder builderForValue) { - if (desiredK8SBetaApisBuilder_ == null) { - desiredK8SBetaApis_ = builderForValue.build(); - } else { - desiredK8SBetaApisBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00010000; - onChanged(); - return this; - } - /** - * - * - *
-     * Desired Beta APIs to be enabled for cluster.
-     * 
- * - * .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; - */ - public Builder mergeDesiredK8SBetaApis(com.google.container.v1.K8sBetaAPIConfig value) { - if (desiredK8SBetaApisBuilder_ == null) { - if (((bitField1_ & 0x00010000) != 0) - && desiredK8SBetaApis_ != null - && desiredK8SBetaApis_ - != com.google.container.v1.K8sBetaAPIConfig.getDefaultInstance()) { - getDesiredK8SBetaApisBuilder().mergeFrom(value); - } else { - desiredK8SBetaApis_ = value; - } - } else { - desiredK8SBetaApisBuilder_.mergeFrom(value); - } - if (desiredK8SBetaApis_ != null) { - bitField1_ |= 0x00010000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Desired Beta APIs to be enabled for cluster.
-     * 
- * - * .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; - */ - public Builder clearDesiredK8SBetaApis() { - bitField1_ = (bitField1_ & ~0x00010000); - desiredK8SBetaApis_ = null; - if (desiredK8SBetaApisBuilder_ != null) { - desiredK8SBetaApisBuilder_.dispose(); - desiredK8SBetaApisBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Desired Beta APIs to be enabled for cluster.
-     * 
- * - * .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; - */ - public com.google.container.v1.K8sBetaAPIConfig.Builder getDesiredK8SBetaApisBuilder() { - bitField1_ |= 0x00010000; - onChanged(); - return getDesiredK8SBetaApisFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Desired Beta APIs to be enabled for cluster.
-     * 
- * - * .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; - */ - public com.google.container.v1.K8sBetaAPIConfigOrBuilder getDesiredK8SBetaApisOrBuilder() { - if (desiredK8SBetaApisBuilder_ != null) { - return desiredK8SBetaApisBuilder_.getMessageOrBuilder(); - } else { - return desiredK8SBetaApis_ == null - ? com.google.container.v1.K8sBetaAPIConfig.getDefaultInstance() - : desiredK8SBetaApis_; - } - } - /** - * - * - *
-     * Desired Beta APIs to be enabled for cluster.
-     * 
- * - * .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.K8sBetaAPIConfig, - com.google.container.v1.K8sBetaAPIConfig.Builder, - com.google.container.v1.K8sBetaAPIConfigOrBuilder> - getDesiredK8SBetaApisFieldBuilder() { - if (desiredK8SBetaApisBuilder_ == null) { - desiredK8SBetaApisBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.K8sBetaAPIConfig, - com.google.container.v1.K8sBetaAPIConfig.Builder, - com.google.container.v1.K8sBetaAPIConfigOrBuilder>( - getDesiredK8SBetaApis(), getParentForChildren(), isClean()); - desiredK8SBetaApis_ = null; - } - return desiredK8SBetaApisBuilder_; - } - - private com.google.container.v1.ResourceManagerTags - desiredNodePoolAutoConfigResourceManagerTags_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ResourceManagerTags, - com.google.container.v1.ResourceManagerTags.Builder, - com.google.container.v1.ResourceManagerTagsOrBuilder> - desiredNodePoolAutoConfigResourceManagerTagsBuilder_; - /** - * - * - *
-     * The desired resource manager tags that apply to all auto-provisioned node
-     * pools in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * - * .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; - * - * - * @return Whether the desiredNodePoolAutoConfigResourceManagerTags field is set. - */ - public boolean hasDesiredNodePoolAutoConfigResourceManagerTags() { - return ((bitField1_ & 0x00020000) != 0); - } - /** - * - * - *
-     * The desired resource manager tags that apply to all auto-provisioned node
-     * pools in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * - * .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; - * - * - * @return The desiredNodePoolAutoConfigResourceManagerTags. - */ - public com.google.container.v1.ResourceManagerTags - getDesiredNodePoolAutoConfigResourceManagerTags() { - if (desiredNodePoolAutoConfigResourceManagerTagsBuilder_ == null) { - return desiredNodePoolAutoConfigResourceManagerTags_ == null - ? com.google.container.v1.ResourceManagerTags.getDefaultInstance() - : desiredNodePoolAutoConfigResourceManagerTags_; - } else { - return desiredNodePoolAutoConfigResourceManagerTagsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired resource manager tags that apply to all auto-provisioned node
-     * pools in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * - * .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; - * - */ - public Builder setDesiredNodePoolAutoConfigResourceManagerTags( - com.google.container.v1.ResourceManagerTags value) { - if (desiredNodePoolAutoConfigResourceManagerTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredNodePoolAutoConfigResourceManagerTags_ = value; - } else { - desiredNodePoolAutoConfigResourceManagerTagsBuilder_.setMessage(value); - } - bitField1_ |= 0x00020000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired resource manager tags that apply to all auto-provisioned node
-     * pools in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * - * .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; - * - */ - public Builder setDesiredNodePoolAutoConfigResourceManagerTags( - com.google.container.v1.ResourceManagerTags.Builder builderForValue) { - if (desiredNodePoolAutoConfigResourceManagerTagsBuilder_ == null) { - desiredNodePoolAutoConfigResourceManagerTags_ = builderForValue.build(); - } else { - desiredNodePoolAutoConfigResourceManagerTagsBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00020000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired resource manager tags that apply to all auto-provisioned node
-     * pools in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * - * .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; - * - */ - public Builder mergeDesiredNodePoolAutoConfigResourceManagerTags( - com.google.container.v1.ResourceManagerTags value) { - if (desiredNodePoolAutoConfigResourceManagerTagsBuilder_ == null) { - if (((bitField1_ & 0x00020000) != 0) - && desiredNodePoolAutoConfigResourceManagerTags_ != null - && desiredNodePoolAutoConfigResourceManagerTags_ - != com.google.container.v1.ResourceManagerTags.getDefaultInstance()) { - getDesiredNodePoolAutoConfigResourceManagerTagsBuilder().mergeFrom(value); - } else { - desiredNodePoolAutoConfigResourceManagerTags_ = value; - } - } else { - desiredNodePoolAutoConfigResourceManagerTagsBuilder_.mergeFrom(value); - } - if (desiredNodePoolAutoConfigResourceManagerTags_ != null) { - bitField1_ |= 0x00020000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired resource manager tags that apply to all auto-provisioned node
-     * pools in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * - * .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; - * - */ - public Builder clearDesiredNodePoolAutoConfigResourceManagerTags() { - bitField1_ = (bitField1_ & ~0x00020000); - desiredNodePoolAutoConfigResourceManagerTags_ = null; - if (desiredNodePoolAutoConfigResourceManagerTagsBuilder_ != null) { - desiredNodePoolAutoConfigResourceManagerTagsBuilder_.dispose(); - desiredNodePoolAutoConfigResourceManagerTagsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired resource manager tags that apply to all auto-provisioned node
-     * pools in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * - * .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; - * - */ - public com.google.container.v1.ResourceManagerTags.Builder - getDesiredNodePoolAutoConfigResourceManagerTagsBuilder() { - bitField1_ |= 0x00020000; - onChanged(); - return getDesiredNodePoolAutoConfigResourceManagerTagsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired resource manager tags that apply to all auto-provisioned node
-     * pools in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * - * .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; - * - */ - public com.google.container.v1.ResourceManagerTagsOrBuilder - getDesiredNodePoolAutoConfigResourceManagerTagsOrBuilder() { - if (desiredNodePoolAutoConfigResourceManagerTagsBuilder_ != null) { - return desiredNodePoolAutoConfigResourceManagerTagsBuilder_.getMessageOrBuilder(); - } else { - return desiredNodePoolAutoConfigResourceManagerTags_ == null - ? com.google.container.v1.ResourceManagerTags.getDefaultInstance() - : desiredNodePoolAutoConfigResourceManagerTags_; - } - } - /** - * - * - *
-     * The desired resource manager tags that apply to all auto-provisioned node
-     * pools in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * - * .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ResourceManagerTags, - com.google.container.v1.ResourceManagerTags.Builder, - com.google.container.v1.ResourceManagerTagsOrBuilder> - getDesiredNodePoolAutoConfigResourceManagerTagsFieldBuilder() { - if (desiredNodePoolAutoConfigResourceManagerTagsBuilder_ == null) { - desiredNodePoolAutoConfigResourceManagerTagsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ResourceManagerTags, - com.google.container.v1.ResourceManagerTags.Builder, - com.google.container.v1.ResourceManagerTagsOrBuilder>( - getDesiredNodePoolAutoConfigResourceManagerTags(), - getParentForChildren(), - isClean()); - desiredNodePoolAutoConfigResourceManagerTags_ = null; - } - return desiredNodePoolAutoConfigResourceManagerTagsBuilder_; - } - - private int desiredInTransitEncryptionConfig_ = 0; - /** - * - * - *
-     * Specify the details of in-transit encryption.
-     * 
- * - * - * optional .google.container.v1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; - * - * - * @return Whether the desiredInTransitEncryptionConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredInTransitEncryptionConfig() { - return ((bitField1_ & 0x00040000) != 0); - } - /** - * - * - *
-     * Specify the details of in-transit encryption.
-     * 
- * - * - * optional .google.container.v1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; - * - * - * @return The enum numeric value on the wire for desiredInTransitEncryptionConfig. - */ - @java.lang.Override - public int getDesiredInTransitEncryptionConfigValue() { - return desiredInTransitEncryptionConfig_; - } - /** - * - * - *
-     * Specify the details of in-transit encryption.
-     * 
- * - * - * optional .google.container.v1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; - * - * - * @param value The enum numeric value on the wire for desiredInTransitEncryptionConfig to set. - * @return This builder for chaining. - */ - public Builder setDesiredInTransitEncryptionConfigValue(int value) { - desiredInTransitEncryptionConfig_ = value; - bitField1_ |= 0x00040000; - onChanged(); - return this; - } - /** - * - * - *
-     * Specify the details of in-transit encryption.
-     * 
- * - * - * optional .google.container.v1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; - * - * - * @return The desiredInTransitEncryptionConfig. - */ - @java.lang.Override - public com.google.container.v1.InTransitEncryptionConfig getDesiredInTransitEncryptionConfig() { - com.google.container.v1.InTransitEncryptionConfig result = - com.google.container.v1.InTransitEncryptionConfig.forNumber( - desiredInTransitEncryptionConfig_); - return result == null - ? com.google.container.v1.InTransitEncryptionConfig.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Specify the details of in-transit encryption.
-     * 
- * - * - * optional .google.container.v1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; - * - * - * @param value The desiredInTransitEncryptionConfig to set. - * @return This builder for chaining. - */ - public Builder setDesiredInTransitEncryptionConfig( - com.google.container.v1.InTransitEncryptionConfig value) { - if (value == null) { - throw new NullPointerException(); - } - bitField1_ |= 0x00040000; - desiredInTransitEncryptionConfig_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Specify the details of in-transit encryption.
-     * 
- * - * - * optional .google.container.v1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; - * - * - * @return This builder for chaining. - */ - public Builder clearDesiredInTransitEncryptionConfig() { - bitField1_ = (bitField1_ & ~0x00040000); - desiredInTransitEncryptionConfig_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.ClusterUpdate) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ClusterUpdate) - private static final com.google.container.v1.ClusterUpdate DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ClusterUpdate(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.ClusterUpdate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java deleted file mode 100644 index 0463f9668def..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java +++ /dev/null @@ -1,1921 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface ClusterUpdateOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.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.v1.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.v1.AddonsConfig desired_addons_config = 6; - * - * @return The desiredAddonsConfig. - */ - com.google.container.v1.AddonsConfig getDesiredAddonsConfig(); - /** - * - * - *
-   * Configurations for the various addons available to run in the cluster.
-   * 
- * - * .google.container.v1.AddonsConfig desired_addons_config = 6; - */ - com.google.container.v1.AddonsConfigOrBuilder getDesiredAddonsConfigOrBuilder(); - - /** - * - * - *
-   * The node pool to be upgraded. This field is mandatory if
-   * "desired_node_version", "desired_image_family" or
-   * "desired_node_pool_autoscaling" is specified and there is more than one
-   * node pool on the cluster.
-   * 
- * - * string desired_node_pool_id = 7; - * - * @return The desiredNodePoolId. - */ - java.lang.String getDesiredNodePoolId(); - /** - * - * - *
-   * The node pool to be upgraded. This field is mandatory if
-   * "desired_node_version", "desired_image_family" or
-   * "desired_node_pool_autoscaling" is specified and there is more than one
-   * node pool on the cluster.
-   * 
- * - * string desired_node_pool_id = 7; - * - * @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(); - - /** - * - * - *
-   * Configuration of etcd encryption.
-   * 
- * - * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - * - * @return Whether the desiredDatabaseEncryption field is set. - */ - boolean hasDesiredDatabaseEncryption(); - /** - * - * - *
-   * Configuration of etcd encryption.
-   * 
- * - * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - * - * @return The desiredDatabaseEncryption. - */ - com.google.container.v1.DatabaseEncryption getDesiredDatabaseEncryption(); - /** - * - * - *
-   * Configuration of etcd encryption.
-   * 
- * - * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - */ - com.google.container.v1.DatabaseEncryptionOrBuilder getDesiredDatabaseEncryptionOrBuilder(); - - /** - * - * - *
-   * Configuration for Workload Identity.
-   * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * - * @return Whether the desiredWorkloadIdentityConfig field is set. - */ - boolean hasDesiredWorkloadIdentityConfig(); - /** - * - * - *
-   * Configuration for Workload Identity.
-   * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * - * @return The desiredWorkloadIdentityConfig. - */ - com.google.container.v1.WorkloadIdentityConfig getDesiredWorkloadIdentityConfig(); - /** - * - * - *
-   * Configuration for Workload Identity.
-   * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - */ - com.google.container.v1.WorkloadIdentityConfigOrBuilder - getDesiredWorkloadIdentityConfigOrBuilder(); - - /** - * - * - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; - * - * @return Whether the desiredMeshCertificates field is set. - */ - boolean hasDesiredMeshCertificates(); - /** - * - * - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; - * - * @return The desiredMeshCertificates. - */ - com.google.container.v1.MeshCertificates getDesiredMeshCertificates(); - /** - * - * - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; - */ - com.google.container.v1.MeshCertificatesOrBuilder getDesiredMeshCertificatesOrBuilder(); - - /** - * - * - *
-   * Configuration for Shielded Nodes.
-   * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - * - * @return Whether the desiredShieldedNodes field is set. - */ - boolean hasDesiredShieldedNodes(); - /** - * - * - *
-   * Configuration for Shielded Nodes.
-   * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - * - * @return The desiredShieldedNodes. - */ - com.google.container.v1.ShieldedNodes getDesiredShieldedNodes(); - /** - * - * - *
-   * Configuration for Shielded Nodes.
-   * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - */ - com.google.container.v1.ShieldedNodesOrBuilder getDesiredShieldedNodesOrBuilder(); - - /** - * - * - *
-   * The desired configuration for the fine-grained cost management feature.
-   * 
- * - * .google.container.v1.CostManagementConfig desired_cost_management_config = 49; - * - * @return Whether the desiredCostManagementConfig field is set. - */ - boolean hasDesiredCostManagementConfig(); - /** - * - * - *
-   * The desired configuration for the fine-grained cost management feature.
-   * 
- * - * .google.container.v1.CostManagementConfig desired_cost_management_config = 49; - * - * @return The desiredCostManagementConfig. - */ - com.google.container.v1.CostManagementConfig getDesiredCostManagementConfig(); - /** - * - * - *
-   * The desired configuration for the fine-grained cost management feature.
-   * 
- * - * .google.container.v1.CostManagementConfig desired_cost_management_config = 49; - */ - com.google.container.v1.CostManagementConfigOrBuilder getDesiredCostManagementConfigOrBuilder(); - - /** - * - * - *
-   * DNSConfig contains clusterDNS config for this cluster.
-   * 
- * - * .google.container.v1.DNSConfig desired_dns_config = 53; - * - * @return Whether the desiredDnsConfig field is set. - */ - boolean hasDesiredDnsConfig(); - /** - * - * - *
-   * DNSConfig contains clusterDNS config for this cluster.
-   * 
- * - * .google.container.v1.DNSConfig desired_dns_config = 53; - * - * @return The desiredDnsConfig. - */ - com.google.container.v1.DNSConfig getDesiredDnsConfig(); - /** - * - * - *
-   * DNSConfig contains clusterDNS config for this cluster.
-   * 
- * - * .google.container.v1.DNSConfig desired_dns_config = 53; - */ - com.google.container.v1.DNSConfigOrBuilder getDesiredDnsConfigOrBuilder(); - - /** - * - * - *
-   * Autoscaler configuration for the node pool specified in
-   * desired_node_pool_id. If there is only one pool in the
-   * cluster and desired_node_pool_id is not provided then
-   * the change applies to that single node pool.
-   * 
- * - * .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - * - * @return Whether the desiredNodePoolAutoscaling field is set. - */ - 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.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - * - * @return The desiredNodePoolAutoscaling. - */ - com.google.container.v1.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.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - */ - com.google.container.v1.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.v1.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.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - * - * - * @return The desiredMasterAuthorizedNetworksConfig. - */ - com.google.container.v1.MasterAuthorizedNetworksConfig getDesiredMasterAuthorizedNetworksConfig(); - /** - * - * - *
-   * The desired configuration options for master authorized networks feature.
-   * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - * - */ - com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder - getDesiredMasterAuthorizedNetworksConfigOrBuilder(); - - /** - * - * - *
-   * Cluster-level autoscaling configuration.
-   * 
- * - * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - * - * @return Whether the desiredClusterAutoscaling field is set. - */ - boolean hasDesiredClusterAutoscaling(); - /** - * - * - *
-   * Cluster-level autoscaling configuration.
-   * 
- * - * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - * - * @return The desiredClusterAutoscaling. - */ - com.google.container.v1.ClusterAutoscaling getDesiredClusterAutoscaling(); - /** - * - * - *
-   * Cluster-level autoscaling configuration.
-   * 
- * - * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - */ - com.google.container.v1.ClusterAutoscalingOrBuilder getDesiredClusterAutoscalingOrBuilder(); - - /** - * - * - *
-   * The desired configuration options for the Binary Authorization feature.
-   * 
- * - * .google.container.v1.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.v1.BinaryAuthorization desired_binary_authorization = 16; - * - * @return The desiredBinaryAuthorization. - */ - com.google.container.v1.BinaryAuthorization getDesiredBinaryAuthorization(); - /** - * - * - *
-   * The desired configuration options for the Binary Authorization feature.
-   * 
- * - * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; - */ - com.google.container.v1.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.v1.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.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * - * - * @return The desiredResourceUsageExportConfig. - */ - com.google.container.v1.ResourceUsageExportConfig getDesiredResourceUsageExportConfig(); - /** - * - * - *
-   * The desired configuration for exporting resource usage.
-   * 
- * - * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * - */ - com.google.container.v1.ResourceUsageExportConfigOrBuilder - getDesiredResourceUsageExportConfigOrBuilder(); - - /** - * - * - *
-   * Cluster-level Vertical Pod Autoscaling configuration.
-   * 
- * - * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - * - * @return Whether the desiredVerticalPodAutoscaling field is set. - */ - boolean hasDesiredVerticalPodAutoscaling(); - /** - * - * - *
-   * Cluster-level Vertical Pod Autoscaling configuration.
-   * 
- * - * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - * - * @return The desiredVerticalPodAutoscaling. - */ - com.google.container.v1.VerticalPodAutoscaling getDesiredVerticalPodAutoscaling(); - /** - * - * - *
-   * Cluster-level Vertical Pod Autoscaling configuration.
-   * 
- * - * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - */ - com.google.container.v1.VerticalPodAutoscalingOrBuilder - getDesiredVerticalPodAutoscalingOrBuilder(); - - /** - * - * - *
-   * The desired private cluster configuration.
-   * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - * - * @return Whether the desiredPrivateClusterConfig field is set. - */ - boolean hasDesiredPrivateClusterConfig(); - /** - * - * - *
-   * The desired private cluster configuration.
-   * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - * - * @return The desiredPrivateClusterConfig. - */ - com.google.container.v1.PrivateClusterConfig getDesiredPrivateClusterConfig(); - /** - * - * - *
-   * The desired private cluster configuration.
-   * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - */ - com.google.container.v1.PrivateClusterConfigOrBuilder getDesiredPrivateClusterConfigOrBuilder(); - - /** - * - * - *
-   * The desired config of Intra-node visibility.
-   * 
- * - * .google.container.v1.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.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * - * - * @return The desiredIntraNodeVisibilityConfig. - */ - com.google.container.v1.IntraNodeVisibilityConfig getDesiredIntraNodeVisibilityConfig(); - /** - * - * - *
-   * The desired config of Intra-node visibility.
-   * 
- * - * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * - */ - com.google.container.v1.IntraNodeVisibilityConfigOrBuilder - getDesiredIntraNodeVisibilityConfigOrBuilder(); - - /** - * - * - *
-   * The desired status of whether to disable default sNAT for this cluster.
-   * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - * - * @return Whether the desiredDefaultSnatStatus field is set. - */ - boolean hasDesiredDefaultSnatStatus(); - /** - * - * - *
-   * The desired status of whether to disable default sNAT for this cluster.
-   * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - * - * @return The desiredDefaultSnatStatus. - */ - com.google.container.v1.DefaultSnatStatus getDesiredDefaultSnatStatus(); - /** - * - * - *
-   * The desired status of whether to disable default sNAT for this cluster.
-   * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - */ - com.google.container.v1.DefaultSnatStatusOrBuilder getDesiredDefaultSnatStatusOrBuilder(); - - /** - * - * - *
-   * The desired release channel configuration.
-   * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - * - * @return Whether the desiredReleaseChannel field is set. - */ - boolean hasDesiredReleaseChannel(); - /** - * - * - *
-   * The desired release channel configuration.
-   * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - * - * @return The desiredReleaseChannel. - */ - com.google.container.v1.ReleaseChannel getDesiredReleaseChannel(); - /** - * - * - *
-   * The desired release channel configuration.
-   * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - */ - com.google.container.v1.ReleaseChannelOrBuilder getDesiredReleaseChannelOrBuilder(); - - /** - * - * - *
-   * The desired L4 Internal Load Balancer Subsetting configuration.
-   * 
- * - * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - * - * @return Whether the desiredL4ilbSubsettingConfig field is set. - */ - boolean hasDesiredL4IlbSubsettingConfig(); - /** - * - * - *
-   * The desired L4 Internal Load Balancer Subsetting configuration.
-   * 
- * - * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - * - * @return The desiredL4ilbSubsettingConfig. - */ - com.google.container.v1.ILBSubsettingConfig getDesiredL4IlbSubsettingConfig(); - /** - * - * - *
-   * The desired L4 Internal Load Balancer Subsetting configuration.
-   * 
- * - * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - */ - com.google.container.v1.ILBSubsettingConfigOrBuilder getDesiredL4IlbSubsettingConfigOrBuilder(); - - /** - * - * - *
-   * The desired datapath provider for the cluster.
-   * 
- * - * .google.container.v1.DatapathProvider desired_datapath_provider = 50; - * - * @return The enum numeric value on the wire for desiredDatapathProvider. - */ - int getDesiredDatapathProviderValue(); - /** - * - * - *
-   * The desired datapath provider for the cluster.
-   * 
- * - * .google.container.v1.DatapathProvider desired_datapath_provider = 50; - * - * @return The desiredDatapathProvider. - */ - com.google.container.v1.DatapathProvider getDesiredDatapathProvider(); - - /** - * - * - *
-   * The desired state of IPv6 connectivity to Google Services.
-   * 
- * - * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; - * - * - * @return The enum numeric value on the wire for desiredPrivateIpv6GoogleAccess. - */ - int getDesiredPrivateIpv6GoogleAccessValue(); - /** - * - * - *
-   * The desired state of IPv6 connectivity to Google Services.
-   * 
- * - * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; - * - * - * @return The desiredPrivateIpv6GoogleAccess. - */ - com.google.container.v1.PrivateIPv6GoogleAccess getDesiredPrivateIpv6GoogleAccess(); - - /** - * - * - *
-   * The desired notification configuration.
-   * 
- * - * .google.container.v1.NotificationConfig desired_notification_config = 55; - * - * @return Whether the desiredNotificationConfig field is set. - */ - boolean hasDesiredNotificationConfig(); - /** - * - * - *
-   * The desired notification configuration.
-   * 
- * - * .google.container.v1.NotificationConfig desired_notification_config = 55; - * - * @return The desiredNotificationConfig. - */ - com.google.container.v1.NotificationConfig getDesiredNotificationConfig(); - /** - * - * - *
-   * The desired notification configuration.
-   * 
- * - * .google.container.v1.NotificationConfig desired_notification_config = 55; - */ - com.google.container.v1.NotificationConfigOrBuilder getDesiredNotificationConfigOrBuilder(); - - /** - * - * - *
-   * The desired authenticator groups config for the cluster.
-   * 
- * - * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - * - * - * @return Whether the desiredAuthenticatorGroupsConfig field is set. - */ - boolean hasDesiredAuthenticatorGroupsConfig(); - /** - * - * - *
-   * The desired authenticator groups config for the cluster.
-   * 
- * - * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - * - * - * @return The desiredAuthenticatorGroupsConfig. - */ - com.google.container.v1.AuthenticatorGroupsConfig getDesiredAuthenticatorGroupsConfig(); - /** - * - * - *
-   * The desired authenticator groups config for the cluster.
-   * 
- * - * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - * - */ - com.google.container.v1.AuthenticatorGroupsConfigOrBuilder - getDesiredAuthenticatorGroupsConfigOrBuilder(); - - /** - * - * - *
-   * The desired logging configuration.
-   * 
- * - * .google.container.v1.LoggingConfig desired_logging_config = 64; - * - * @return Whether the desiredLoggingConfig field is set. - */ - boolean hasDesiredLoggingConfig(); - /** - * - * - *
-   * The desired logging configuration.
-   * 
- * - * .google.container.v1.LoggingConfig desired_logging_config = 64; - * - * @return The desiredLoggingConfig. - */ - com.google.container.v1.LoggingConfig getDesiredLoggingConfig(); - /** - * - * - *
-   * The desired logging configuration.
-   * 
- * - * .google.container.v1.LoggingConfig desired_logging_config = 64; - */ - com.google.container.v1.LoggingConfigOrBuilder getDesiredLoggingConfigOrBuilder(); - - /** - * - * - *
-   * The desired monitoring configuration.
-   * 
- * - * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; - * - * @return Whether the desiredMonitoringConfig field is set. - */ - boolean hasDesiredMonitoringConfig(); - /** - * - * - *
-   * The desired monitoring configuration.
-   * 
- * - * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; - * - * @return The desiredMonitoringConfig. - */ - com.google.container.v1.MonitoringConfig getDesiredMonitoringConfig(); - /** - * - * - *
-   * The desired monitoring configuration.
-   * 
- * - * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; - */ - com.google.container.v1.MonitoringConfigOrBuilder getDesiredMonitoringConfigOrBuilder(); - - /** - * - * - *
-   * The desired Identity Service component configuration.
-   * 
- * - * .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; - * - * @return Whether the desiredIdentityServiceConfig field is set. - */ - boolean hasDesiredIdentityServiceConfig(); - /** - * - * - *
-   * The desired Identity Service component configuration.
-   * 
- * - * .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; - * - * @return The desiredIdentityServiceConfig. - */ - com.google.container.v1.IdentityServiceConfig getDesiredIdentityServiceConfig(); - /** - * - * - *
-   * The desired Identity Service component configuration.
-   * 
- * - * .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; - */ - com.google.container.v1.IdentityServiceConfigOrBuilder getDesiredIdentityServiceConfigOrBuilder(); - - /** - * - * - *
-   * ServiceExternalIPsConfig specifies the config for the use of Services with
-   * ExternalIPs field.
-   * 
- * - * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - * - * - * @return Whether the desiredServiceExternalIpsConfig field is set. - */ - boolean hasDesiredServiceExternalIpsConfig(); - /** - * - * - *
-   * ServiceExternalIPsConfig specifies the config for the use of Services with
-   * ExternalIPs field.
-   * 
- * - * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - * - * - * @return The desiredServiceExternalIpsConfig. - */ - com.google.container.v1.ServiceExternalIPsConfig getDesiredServiceExternalIpsConfig(); - /** - * - * - *
-   * ServiceExternalIPsConfig specifies the config for the use of Services with
-   * ExternalIPs field.
-   * 
- * - * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - * - */ - com.google.container.v1.ServiceExternalIPsConfigOrBuilder - getDesiredServiceExternalIpsConfigOrBuilder(); - - /** - * - * - *
-   * Enable/Disable private endpoint for the cluster's master.
-   * 
- * - * optional bool desired_enable_private_endpoint = 71; - * - * @return Whether the desiredEnablePrivateEndpoint field is set. - */ - boolean hasDesiredEnablePrivateEndpoint(); - /** - * - * - *
-   * Enable/Disable private endpoint for the cluster's master.
-   * 
- * - * optional bool desired_enable_private_endpoint = 71; - * - * @return The desiredEnablePrivateEndpoint. - */ - boolean getDesiredEnablePrivateEndpoint(); - - /** - * - * - *
-   * The Kubernetes version to change the master to.
-   *
-   * Users may specify either explicit versions offered by
-   * Kubernetes Engine or version aliases, which have the following behavior:
-   *
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the default Kubernetes version
-   * 
- * - * string desired_master_version = 100; - * - * @return The desiredMasterVersion. - */ - java.lang.String getDesiredMasterVersion(); - /** - * - * - *
-   * The Kubernetes version to change the master to.
-   *
-   * Users may specify either explicit versions offered by
-   * Kubernetes Engine or version aliases, which have the following behavior:
-   *
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the default Kubernetes version
-   * 
- * - * string desired_master_version = 100; - * - * @return The bytes for desiredMasterVersion. - */ - com.google.protobuf.ByteString getDesiredMasterVersionBytes(); - - /** - * - * - *
-   * The desired GCFS config for the cluster
-   * 
- * - * .google.container.v1.GcfsConfig desired_gcfs_config = 109; - * - * @return Whether the desiredGcfsConfig field is set. - */ - boolean hasDesiredGcfsConfig(); - /** - * - * - *
-   * The desired GCFS config for the cluster
-   * 
- * - * .google.container.v1.GcfsConfig desired_gcfs_config = 109; - * - * @return The desiredGcfsConfig. - */ - com.google.container.v1.GcfsConfig getDesiredGcfsConfig(); - /** - * - * - *
-   * The desired GCFS config for the cluster
-   * 
- * - * .google.container.v1.GcfsConfig desired_gcfs_config = 109; - */ - com.google.container.v1.GcfsConfigOrBuilder getDesiredGcfsConfigOrBuilder(); - - /** - * - * - *
-   * The desired network tags that apply to all auto-provisioned node pools
-   * in autopilot clusters and node auto-provisioning enabled clusters.
-   * 
- * - * .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; - * - * @return Whether the desiredNodePoolAutoConfigNetworkTags field is set. - */ - boolean hasDesiredNodePoolAutoConfigNetworkTags(); - /** - * - * - *
-   * The desired network tags that apply to all auto-provisioned node pools
-   * in autopilot clusters and node auto-provisioning enabled clusters.
-   * 
- * - * .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; - * - * @return The desiredNodePoolAutoConfigNetworkTags. - */ - com.google.container.v1.NetworkTags getDesiredNodePoolAutoConfigNetworkTags(); - /** - * - * - *
-   * The desired network tags that apply to all auto-provisioned node pools
-   * in autopilot clusters and node auto-provisioning enabled clusters.
-   * 
- * - * .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; - */ - com.google.container.v1.NetworkTagsOrBuilder getDesiredNodePoolAutoConfigNetworkTagsOrBuilder(); - - /** - * - * - *
-   * The desired config of Gateway API on this cluster.
-   * 
- * - * .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; - * - * @return Whether the desiredGatewayApiConfig field is set. - */ - boolean hasDesiredGatewayApiConfig(); - /** - * - * - *
-   * The desired config of Gateway API on this cluster.
-   * 
- * - * .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; - * - * @return The desiredGatewayApiConfig. - */ - com.google.container.v1.GatewayAPIConfig getDesiredGatewayApiConfig(); - /** - * - * - *
-   * The desired config of Gateway API on this cluster.
-   * 
- * - * .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; - */ - com.google.container.v1.GatewayAPIConfigOrBuilder getDesiredGatewayApiConfigOrBuilder(); - - /** - * - * - *
-   * The current etag of the cluster.
-   * If an etag is provided and does not match the current etag of the cluster,
-   * update will be blocked and an ABORTED error will be returned.
-   * 
- * - * string etag = 115; - * - * @return The etag. - */ - java.lang.String getEtag(); - /** - * - * - *
-   * The current etag of the cluster.
-   * If an etag is provided and does not match the current etag of the cluster,
-   * update will be blocked and an ABORTED error will be returned.
-   * 
- * - * string etag = 115; - * - * @return The bytes for etag. - */ - com.google.protobuf.ByteString getEtagBytes(); - - /** - * - * - *
-   * The desired node pool logging configuration defaults for the cluster.
-   * 
- * - * .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; - * - * @return Whether the desiredNodePoolLoggingConfig field is set. - */ - boolean hasDesiredNodePoolLoggingConfig(); - /** - * - * - *
-   * The desired node pool logging configuration defaults for the cluster.
-   * 
- * - * .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; - * - * @return The desiredNodePoolLoggingConfig. - */ - com.google.container.v1.NodePoolLoggingConfig getDesiredNodePoolLoggingConfig(); - /** - * - * - *
-   * The desired node pool logging configuration defaults for the cluster.
-   * 
- * - * .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; - */ - com.google.container.v1.NodePoolLoggingConfigOrBuilder getDesiredNodePoolLoggingConfigOrBuilder(); - - /** - * - * - *
-   * The desired fleet configuration for the cluster.
-   * 
- * - * .google.container.v1.Fleet desired_fleet = 117; - * - * @return Whether the desiredFleet field is set. - */ - boolean hasDesiredFleet(); - /** - * - * - *
-   * The desired fleet configuration for the cluster.
-   * 
- * - * .google.container.v1.Fleet desired_fleet = 117; - * - * @return The desiredFleet. - */ - com.google.container.v1.Fleet getDesiredFleet(); - /** - * - * - *
-   * The desired fleet configuration for the cluster.
-   * 
- * - * .google.container.v1.Fleet desired_fleet = 117; - */ - com.google.container.v1.FleetOrBuilder getDesiredFleetOrBuilder(); - - /** - * - * - *
-   * The desired stack type of the cluster.
-   * If a stack type is provided and does not match the current stack type of
-   * the cluster, update will attempt to change the stack type to the new type.
-   * 
- * - * .google.container.v1.StackType desired_stack_type = 119; - * - * @return The enum numeric value on the wire for desiredStackType. - */ - int getDesiredStackTypeValue(); - /** - * - * - *
-   * The desired stack type of the cluster.
-   * If a stack type is provided and does not match the current stack type of
-   * the cluster, update will attempt to change the stack type to the new type.
-   * 
- * - * .google.container.v1.StackType desired_stack_type = 119; - * - * @return The desiredStackType. - */ - com.google.container.v1.StackType getDesiredStackType(); - - /** - * - * - *
-   * The additional pod ranges to be added to the cluster. These pod ranges
-   * can be used by node pools to allocate pod IPs.
-   * 
- * - * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; - * - * @return Whether the additionalPodRangesConfig field is set. - */ - boolean hasAdditionalPodRangesConfig(); - /** - * - * - *
-   * The additional pod ranges to be added to the cluster. These pod ranges
-   * can be used by node pools to allocate pod IPs.
-   * 
- * - * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; - * - * @return The additionalPodRangesConfig. - */ - com.google.container.v1.AdditionalPodRangesConfig getAdditionalPodRangesConfig(); - /** - * - * - *
-   * The additional pod ranges to be added to the cluster. These pod ranges
-   * can be used by node pools to allocate pod IPs.
-   * 
- * - * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; - */ - com.google.container.v1.AdditionalPodRangesConfigOrBuilder - getAdditionalPodRangesConfigOrBuilder(); - - /** - * - * - *
-   * The additional pod ranges that are to be removed from the cluster.
-   * The pod ranges specified here must have been specified earlier in the
-   * 'additional_pod_ranges_config' argument.
-   * 
- * - * - * .google.container.v1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; - * - * - * @return Whether the removedAdditionalPodRangesConfig field is set. - */ - boolean hasRemovedAdditionalPodRangesConfig(); - /** - * - * - *
-   * The additional pod ranges that are to be removed from the cluster.
-   * The pod ranges specified here must have been specified earlier in the
-   * 'additional_pod_ranges_config' argument.
-   * 
- * - * - * .google.container.v1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; - * - * - * @return The removedAdditionalPodRangesConfig. - */ - com.google.container.v1.AdditionalPodRangesConfig getRemovedAdditionalPodRangesConfig(); - /** - * - * - *
-   * The additional pod ranges that are to be removed from the cluster.
-   * The pod ranges specified here must have been specified earlier in the
-   * 'additional_pod_ranges_config' argument.
-   * 
- * - * - * .google.container.v1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; - * - */ - com.google.container.v1.AdditionalPodRangesConfigOrBuilder - getRemovedAdditionalPodRangesConfigOrBuilder(); - - /** - * - * - *
-   * Kubernetes open source beta apis enabled on the cluster. Only beta apis
-   * 
- * - * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; - * - * @return Whether the enableK8sBetaApis field is set. - */ - boolean hasEnableK8SBetaApis(); - /** - * - * - *
-   * Kubernetes open source beta apis enabled on the cluster. Only beta apis
-   * 
- * - * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; - * - * @return The enableK8sBetaApis. - */ - com.google.container.v1.K8sBetaAPIConfig getEnableK8SBetaApis(); - /** - * - * - *
-   * Kubernetes open source beta apis enabled on the cluster. Only beta apis
-   * 
- * - * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; - */ - com.google.container.v1.K8sBetaAPIConfigOrBuilder getEnableK8SBetaApisOrBuilder(); - - /** - * - * - *
-   * Enable/Disable Security Posture API features for the cluster.
-   * 
- * - * .google.container.v1.SecurityPostureConfig desired_security_posture_config = 124; - * - * @return Whether the desiredSecurityPostureConfig field is set. - */ - boolean hasDesiredSecurityPostureConfig(); - /** - * - * - *
-   * Enable/Disable Security Posture API features for the cluster.
-   * 
- * - * .google.container.v1.SecurityPostureConfig desired_security_posture_config = 124; - * - * @return The desiredSecurityPostureConfig. - */ - com.google.container.v1.SecurityPostureConfig getDesiredSecurityPostureConfig(); - /** - * - * - *
-   * Enable/Disable Security Posture API features for the cluster.
-   * 
- * - * .google.container.v1.SecurityPostureConfig desired_security_posture_config = 124; - */ - com.google.container.v1.SecurityPostureConfigOrBuilder getDesiredSecurityPostureConfigOrBuilder(); - - /** - * - * - *
-   * The desired network performance config.
-   * 
- * - * - * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; - * - * - * @return Whether the desiredNetworkPerformanceConfig field is set. - */ - boolean hasDesiredNetworkPerformanceConfig(); - /** - * - * - *
-   * The desired network performance config.
-   * 
- * - * - * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; - * - * - * @return The desiredNetworkPerformanceConfig. - */ - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig - getDesiredNetworkPerformanceConfig(); - /** - * - * - *
-   * The desired network performance config.
-   * 
- * - * - * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; - * - */ - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder - getDesiredNetworkPerformanceConfigOrBuilder(); - - /** - * - * - *
-   * Enable/Disable FQDN Network Policy for the cluster.
-   * 
- * - * optional bool desired_enable_fqdn_network_policy = 126; - * - * @return Whether the desiredEnableFqdnNetworkPolicy field is set. - */ - boolean hasDesiredEnableFqdnNetworkPolicy(); - /** - * - * - *
-   * Enable/Disable FQDN Network Policy for the cluster.
-   * 
- * - * optional bool desired_enable_fqdn_network_policy = 126; - * - * @return The desiredEnableFqdnNetworkPolicy. - */ - boolean getDesiredEnableFqdnNetworkPolicy(); - - /** - * - * - *
-   * The desired workload policy configuration for the autopilot cluster.
-   * 
- * - * .google.container.v1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; - * - * - * @return Whether the desiredAutopilotWorkloadPolicyConfig field is set. - */ - boolean hasDesiredAutopilotWorkloadPolicyConfig(); - /** - * - * - *
-   * The desired workload policy configuration for the autopilot cluster.
-   * 
- * - * .google.container.v1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; - * - * - * @return The desiredAutopilotWorkloadPolicyConfig. - */ - com.google.container.v1.WorkloadPolicyConfig getDesiredAutopilotWorkloadPolicyConfig(); - /** - * - * - *
-   * The desired workload policy configuration for the autopilot cluster.
-   * 
- * - * .google.container.v1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; - * - */ - com.google.container.v1.WorkloadPolicyConfigOrBuilder - getDesiredAutopilotWorkloadPolicyConfigOrBuilder(); - - /** - * - * - *
-   * Desired Beta APIs to be enabled for cluster.
-   * 
- * - * .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; - * - * @return Whether the desiredK8sBetaApis field is set. - */ - boolean hasDesiredK8SBetaApis(); - /** - * - * - *
-   * Desired Beta APIs to be enabled for cluster.
-   * 
- * - * .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; - * - * @return The desiredK8sBetaApis. - */ - com.google.container.v1.K8sBetaAPIConfig getDesiredK8SBetaApis(); - /** - * - * - *
-   * Desired Beta APIs to be enabled for cluster.
-   * 
- * - * .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; - */ - com.google.container.v1.K8sBetaAPIConfigOrBuilder getDesiredK8SBetaApisOrBuilder(); - - /** - * - * - *
-   * The desired resource manager tags that apply to all auto-provisioned node
-   * pools in autopilot clusters and node auto-provisioning enabled clusters.
-   * 
- * - * - * .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; - * - * - * @return Whether the desiredNodePoolAutoConfigResourceManagerTags field is set. - */ - boolean hasDesiredNodePoolAutoConfigResourceManagerTags(); - /** - * - * - *
-   * The desired resource manager tags that apply to all auto-provisioned node
-   * pools in autopilot clusters and node auto-provisioning enabled clusters.
-   * 
- * - * - * .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; - * - * - * @return The desiredNodePoolAutoConfigResourceManagerTags. - */ - com.google.container.v1.ResourceManagerTags getDesiredNodePoolAutoConfigResourceManagerTags(); - /** - * - * - *
-   * The desired resource manager tags that apply to all auto-provisioned node
-   * pools in autopilot clusters and node auto-provisioning enabled clusters.
-   * 
- * - * - * .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; - * - */ - com.google.container.v1.ResourceManagerTagsOrBuilder - getDesiredNodePoolAutoConfigResourceManagerTagsOrBuilder(); - - /** - * - * - *
-   * Specify the details of in-transit encryption.
-   * 
- * - * - * optional .google.container.v1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; - * - * - * @return Whether the desiredInTransitEncryptionConfig field is set. - */ - boolean hasDesiredInTransitEncryptionConfig(); - /** - * - * - *
-   * Specify the details of in-transit encryption.
-   * 
- * - * - * optional .google.container.v1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; - * - * - * @return The enum numeric value on the wire for desiredInTransitEncryptionConfig. - */ - int getDesiredInTransitEncryptionConfigValue(); - /** - * - * - *
-   * Specify the details of in-transit encryption.
-   * 
- * - * - * optional .google.container.v1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; - * - * - * @return The desiredInTransitEncryptionConfig. - */ - com.google.container.v1.InTransitEncryptionConfig getDesiredInTransitEncryptionConfig(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.java deleted file mode 100644 index 5e6266661776..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.java +++ /dev/null @@ -1,1283 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * CompleteIPRotationRequest moves the cluster master back into single-IP mode.
- * 
- * - * Protobuf type {@code google.container.v1.CompleteIPRotationRequest} - */ -public final class CompleteIPRotationRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CompleteIPRotationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CompleteIPRotationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.CompleteIPRotationRequest.class, - com.google.container.v1.CompleteIPRotationRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4110 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4110 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object zone_ = ""; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4116 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4116 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object clusterId_ = ""; - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4120 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4120 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * The name (project, location, cluster name) 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 name) 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.CompleteIPRotationRequest)) { - return super.equals(obj); - } - com.google.container.v1.CompleteIPRotationRequest other = - (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.CompleteIPRotationRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.CompleteIPRotationRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.CompleteIPRotationRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.CompleteIPRotationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.CompleteIPRotationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.CompleteIPRotationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.CompleteIPRotationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.CompleteIPRotationRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.CompleteIPRotationRequest) - com.google.container.v1.CompleteIPRotationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CompleteIPRotationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CompleteIPRotationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.CompleteIPRotationRequest.class, - com.google.container.v1.CompleteIPRotationRequest.Builder.class); - } - - // Construct using com.google.container.v1.CompleteIPRotationRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CompleteIPRotationRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.CompleteIPRotationRequest getDefaultInstanceForType() { - return com.google.container.v1.CompleteIPRotationRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.CompleteIPRotationRequest build() { - com.google.container.v1.CompleteIPRotationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.CompleteIPRotationRequest buildPartial() { - com.google.container.v1.CompleteIPRotationRequest result = - new com.google.container.v1.CompleteIPRotationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.CompleteIPRotationRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.CompleteIPRotationRequest) { - return mergeFrom((com.google.container.v1.CompleteIPRotationRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.CompleteIPRotationRequest other) { - if (other == com.google.container.v1.CompleteIPRotationRequest.getDefaultInstance()) - return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000008; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 58: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4110 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4110 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4110 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4110 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4110 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4116 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4116 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4116 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4116 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4116 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4120 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4120 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4120 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4120 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4120 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name (project, location, cluster name) 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 name) 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 name) 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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster name) 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(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster name) 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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.CompleteIPRotationRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.CompleteIPRotationRequest) - private static final com.google.container.v1.CompleteIPRotationRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.CompleteIPRotationRequest(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.CompleteIPRotationRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java deleted file mode 100644 index 6de53dfbb59d..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface CompleteIPRotationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.CompleteIPRotationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4110 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4110 - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4116 - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4116 - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4120 - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4120 - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getClusterIdBytes(); - - /** - * - * - *
-   * The name (project, location, cluster name) 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 name) 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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteNodePoolUpgradeRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteNodePoolUpgradeRequest.java deleted file mode 100644 index e1d5b85bb8c3..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteNodePoolUpgradeRequest.java +++ /dev/null @@ -1,643 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * CompleteNodePoolUpgradeRequest sets the name of target node pool to complete
- * upgrade.
- * 
- * - * Protobuf type {@code google.container.v1.CompleteNodePoolUpgradeRequest} - */ -public final class CompleteNodePoolUpgradeRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.CompleteNodePoolUpgradeRequest) - CompleteNodePoolUpgradeRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CompleteNodePoolUpgradeRequest.newBuilder() to construct. - private CompleteNodePoolUpgradeRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CompleteNodePoolUpgradeRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CompleteNodePoolUpgradeRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CompleteNodePoolUpgradeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CompleteNodePoolUpgradeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.CompleteNodePoolUpgradeRequest.class, - com.google.container.v1.CompleteNodePoolUpgradeRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * The name (project, location, cluster, node pool id) of the node pool to
-   * complete upgrade.
-   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * 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 (project, location, cluster, node pool id) of the node pool to
-   * complete upgrade.
-   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.CompleteNodePoolUpgradeRequest)) { - return super.equals(obj); - } - com.google.container.v1.CompleteNodePoolUpgradeRequest other = - (com.google.container.v1.CompleteNodePoolUpgradeRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.CompleteNodePoolUpgradeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.CompleteNodePoolUpgradeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.CompleteNodePoolUpgradeRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.CompleteNodePoolUpgradeRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.CompleteNodePoolUpgradeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.CompleteNodePoolUpgradeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.CompleteNodePoolUpgradeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.CompleteNodePoolUpgradeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.CompleteNodePoolUpgradeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.CompleteNodePoolUpgradeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.CompleteNodePoolUpgradeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.CompleteNodePoolUpgradeRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.container.v1.CompleteNodePoolUpgradeRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * CompleteNodePoolUpgradeRequest sets the name of target node pool to complete
-   * upgrade.
-   * 
- * - * Protobuf type {@code google.container.v1.CompleteNodePoolUpgradeRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.CompleteNodePoolUpgradeRequest) - com.google.container.v1.CompleteNodePoolUpgradeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CompleteNodePoolUpgradeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CompleteNodePoolUpgradeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.CompleteNodePoolUpgradeRequest.class, - com.google.container.v1.CompleteNodePoolUpgradeRequest.Builder.class); - } - - // Construct using com.google.container.v1.CompleteNodePoolUpgradeRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CompleteNodePoolUpgradeRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.CompleteNodePoolUpgradeRequest getDefaultInstanceForType() { - return com.google.container.v1.CompleteNodePoolUpgradeRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.CompleteNodePoolUpgradeRequest build() { - com.google.container.v1.CompleteNodePoolUpgradeRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.CompleteNodePoolUpgradeRequest buildPartial() { - com.google.container.v1.CompleteNodePoolUpgradeRequest result = - new com.google.container.v1.CompleteNodePoolUpgradeRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.CompleteNodePoolUpgradeRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.CompleteNodePoolUpgradeRequest) { - return mergeFrom((com.google.container.v1.CompleteNodePoolUpgradeRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.CompleteNodePoolUpgradeRequest other) { - if (other == com.google.container.v1.CompleteNodePoolUpgradeRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name (project, location, cluster, node pool id) of the node pool to
-     * complete upgrade.
-     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * 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 (project, location, cluster, node pool id) of the node pool to
-     * complete upgrade.
-     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * 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 (project, location, cluster, node pool id) of the node pool to
-     * complete upgrade.
-     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster, node pool id) of the node pool to
-     * complete upgrade.
-     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster, node pool id) of the node pool to
-     * complete upgrade.
-     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.CompleteNodePoolUpgradeRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.CompleteNodePoolUpgradeRequest) - private static final com.google.container.v1.CompleteNodePoolUpgradeRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.CompleteNodePoolUpgradeRequest(); - } - - public static com.google.container.v1.CompleteNodePoolUpgradeRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CompleteNodePoolUpgradeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.CompleteNodePoolUpgradeRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteNodePoolUpgradeRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteNodePoolUpgradeRequestOrBuilder.java deleted file mode 100644 index c058d427efed..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteNodePoolUpgradeRequestOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface CompleteNodePoolUpgradeRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.CompleteNodePoolUpgradeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The name (project, location, cluster, node pool id) of the node pool to
-   * complete upgrade.
-   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The name (project, location, cluster, node pool id) of the node pool to
-   * complete upgrade.
-   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfidentialNodes.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfidentialNodes.java deleted file mode 100644 index daaea71f382b..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfidentialNodes.java +++ /dev/null @@ -1,536 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * ConfidentialNodes is configuration for the confidential nodes feature, which
- * makes nodes run on confidential VMs.
- * 
- * - * Protobuf type {@code google.container.v1.ConfidentialNodes} - */ -public final class ConfidentialNodes extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.ConfidentialNodes) - ConfidentialNodesOrBuilder { - private static final long serialVersionUID = 0L; - // Use ConfidentialNodes.newBuilder() to construct. - private ConfidentialNodes(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ConfidentialNodes() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ConfidentialNodes(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ConfidentialNodes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ConfidentialNodes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ConfidentialNodes.class, - com.google.container.v1.ConfidentialNodes.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * Whether Confidential Nodes feature is enabled.
-   * 
- * - * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.ConfidentialNodes)) { - return super.equals(obj); - } - com.google.container.v1.ConfidentialNodes other = - (com.google.container.v1.ConfidentialNodes) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ConfidentialNodes parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ConfidentialNodes parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ConfidentialNodes parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ConfidentialNodes parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ConfidentialNodes parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ConfidentialNodes parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ConfidentialNodes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ConfidentialNodes parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ConfidentialNodes parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.ConfidentialNodes parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ConfidentialNodes parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ConfidentialNodes parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.ConfidentialNodes prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * ConfidentialNodes is configuration for the confidential nodes feature, which
-   * makes nodes run on confidential VMs.
-   * 
- * - * Protobuf type {@code google.container.v1.ConfidentialNodes} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ConfidentialNodes) - com.google.container.v1.ConfidentialNodesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ConfidentialNodes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ConfidentialNodes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ConfidentialNodes.class, - com.google.container.v1.ConfidentialNodes.Builder.class); - } - - // Construct using com.google.container.v1.ConfidentialNodes.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enabled_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ConfidentialNodes_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ConfidentialNodes getDefaultInstanceForType() { - return com.google.container.v1.ConfidentialNodes.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ConfidentialNodes build() { - com.google.container.v1.ConfidentialNodes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ConfidentialNodes buildPartial() { - com.google.container.v1.ConfidentialNodes result = - new com.google.container.v1.ConfidentialNodes(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.ConfidentialNodes result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ConfidentialNodes) { - return mergeFrom((com.google.container.v1.ConfidentialNodes) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ConfidentialNodes other) { - if (other == com.google.container.v1.ConfidentialNodes.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean enabled_; - /** - * - * - *
-     * Whether Confidential Nodes feature is enabled.
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Whether Confidential Nodes feature is enabled.
-     * 
- * - * bool enabled = 1; - * - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether Confidential Nodes feature is enabled.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - enabled_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.ConfidentialNodes) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ConfidentialNodes) - private static final com.google.container.v1.ConfidentialNodes DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ConfidentialNodes(); - } - - public static com.google.container.v1.ConfidentialNodes getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfidentialNodes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.ConfidentialNodes getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfidentialNodesOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfidentialNodesOrBuilder.java deleted file mode 100644 index 20b227544563..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfidentialNodesOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface ConfidentialNodesOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ConfidentialNodes) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether Confidential Nodes feature is enabled.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfigConnectorConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfigConnectorConfig.java deleted file mode 100644 index 59716218abfb..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfigConnectorConfig.java +++ /dev/null @@ -1,534 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Configuration options for the Config Connector add-on.
- * 
- * - * Protobuf type {@code google.container.v1.ConfigConnectorConfig} - */ -public final class ConfigConnectorConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.ConfigConnectorConfig) - ConfigConnectorConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use ConfigConnectorConfig.newBuilder() to construct. - private ConfigConnectorConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ConfigConnectorConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ConfigConnectorConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ConfigConnectorConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ConfigConnectorConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ConfigConnectorConfig.class, - com.google.container.v1.ConfigConnectorConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.ConfigConnectorConfig)) { - return super.equals(obj); - } - com.google.container.v1.ConfigConnectorConfig other = - (com.google.container.v1.ConfigConnectorConfig) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ConfigConnectorConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ConfigConnectorConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ConfigConnectorConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ConfigConnectorConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ConfigConnectorConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ConfigConnectorConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ConfigConnectorConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ConfigConnectorConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ConfigConnectorConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.ConfigConnectorConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ConfigConnectorConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ConfigConnectorConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.ConfigConnectorConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Configuration options for the Config Connector add-on.
-   * 
- * - * Protobuf type {@code google.container.v1.ConfigConnectorConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ConfigConnectorConfig) - com.google.container.v1.ConfigConnectorConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ConfigConnectorConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ConfigConnectorConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ConfigConnectorConfig.class, - com.google.container.v1.ConfigConnectorConfig.Builder.class); - } - - // Construct using com.google.container.v1.ConfigConnectorConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enabled_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ConfigConnectorConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ConfigConnectorConfig getDefaultInstanceForType() { - return com.google.container.v1.ConfigConnectorConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ConfigConnectorConfig build() { - com.google.container.v1.ConfigConnectorConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ConfigConnectorConfig buildPartial() { - com.google.container.v1.ConfigConnectorConfig result = - new com.google.container.v1.ConfigConnectorConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.ConfigConnectorConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ConfigConnectorConfig) { - return mergeFrom((com.google.container.v1.ConfigConnectorConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ConfigConnectorConfig other) { - if (other == com.google.container.v1.ConfigConnectorConfig.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether Cloud Connector is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - enabled_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.ConfigConnectorConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ConfigConnectorConfig) - private static final com.google.container.v1.ConfigConnectorConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ConfigConnectorConfig(); - } - - public static com.google.container.v1.ConfigConnectorConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigConnectorConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.ConfigConnectorConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfigConnectorConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfigConnectorConfigOrBuilder.java deleted file mode 100644 index fd5141946a89..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfigConnectorConfigOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface ConfigConnectorConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ConfigConnectorConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether Cloud Connector is enabled for this cluster.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CostManagementConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CostManagementConfig.java deleted file mode 100644 index 2fbac2ba22df..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CostManagementConfig.java +++ /dev/null @@ -1,534 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Configuration for fine-grained cost management feature.
- * 
- * - * Protobuf type {@code google.container.v1.CostManagementConfig} - */ -public final class CostManagementConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.CostManagementConfig) - CostManagementConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use CostManagementConfig.newBuilder() to construct. - private CostManagementConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CostManagementConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CostManagementConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CostManagementConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CostManagementConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.CostManagementConfig.class, - com.google.container.v1.CostManagementConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * Whether the feature is enabled 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.CostManagementConfig)) { - return super.equals(obj); - } - com.google.container.v1.CostManagementConfig other = - (com.google.container.v1.CostManagementConfig) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.CostManagementConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.CostManagementConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.CostManagementConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.CostManagementConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.CostManagementConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.CostManagementConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.CostManagementConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.CostManagementConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.CostManagementConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.CostManagementConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.CostManagementConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.CostManagementConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.CostManagementConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 fine-grained cost management feature.
-   * 
- * - * Protobuf type {@code google.container.v1.CostManagementConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.CostManagementConfig) - com.google.container.v1.CostManagementConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CostManagementConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CostManagementConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.CostManagementConfig.class, - com.google.container.v1.CostManagementConfig.Builder.class); - } - - // Construct using com.google.container.v1.CostManagementConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enabled_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CostManagementConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.CostManagementConfig getDefaultInstanceForType() { - return com.google.container.v1.CostManagementConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.CostManagementConfig build() { - com.google.container.v1.CostManagementConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.CostManagementConfig buildPartial() { - com.google.container.v1.CostManagementConfig result = - new com.google.container.v1.CostManagementConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.CostManagementConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.CostManagementConfig) { - return mergeFrom((com.google.container.v1.CostManagementConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.CostManagementConfig other) { - if (other == com.google.container.v1.CostManagementConfig.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean enabled_; - /** - * - * - *
-     * Whether the feature is enabled or not.
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Whether the feature 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether the feature is enabled or not.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - enabled_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.CostManagementConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.CostManagementConfig) - private static final com.google.container.v1.CostManagementConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.CostManagementConfig(); - } - - public static com.google.container.v1.CostManagementConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CostManagementConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.CostManagementConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CostManagementConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CostManagementConfigOrBuilder.java deleted file mode 100644 index d9a45a51ecee..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CostManagementConfigOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface CostManagementConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.CostManagementConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether the feature is enabled or not.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java deleted file mode 100644 index 4c7b25831e34..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java +++ /dev/null @@ -1,1367 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * CreateClusterRequest creates a cluster.
- * 
- * - * Protobuf type {@code google.container.v1.CreateClusterRequest} - */ -public final class CreateClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CreateClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CreateClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.CreateClusterRequest.class, - com.google.container.v1.CreateClusterRequest.Builder.class); - } - - private int bitField0_; - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2560 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2560 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object zone_ = ""; - /** - * - * - *
-   * Deprecated. The name of the Google Compute 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]; - * - * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2566 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute 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]; - * - * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2566 - * @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.v1.Cluster cluster_; - /** - * - * - *
-   * Required. A [cluster
-   * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
-   * 
- * - * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the cluster field is set. - */ - @java.lang.Override - public boolean hasCluster() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Required. A [cluster
-   * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
-   * 
- * - * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The cluster. - */ - @java.lang.Override - public com.google.container.v1.Cluster getCluster() { - return cluster_ == null ? com.google.container.v1.Cluster.getDefaultInstance() : cluster_; - } - /** - * - * - *
-   * Required. A [cluster
-   * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
-   * 
- * - * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.container.v1.ClusterOrBuilder getClusterOrBuilder() { - return cluster_ == null ? com.google.container.v1.Cluster.getDefaultInstance() : cluster_; - } - - public static final int PARENT_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getCluster()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parent_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCluster()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.CreateClusterRequest)) { - return super.equals(obj); - } - com.google.container.v1.CreateClusterRequest other = - (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.CreateClusterRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.CreateClusterRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.CreateClusterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.CreateClusterRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.CreateClusterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.CreateClusterRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.CreateClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.CreateClusterRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.CreateClusterRequest) - com.google.container.v1.CreateClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CreateClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CreateClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.CreateClusterRequest.class, - com.google.container.v1.CreateClusterRequest.Builder.class); - } - - // Construct using com.google.container.v1.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) { - getClusterFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - cluster_ = null; - if (clusterBuilder_ != null) { - clusterBuilder_.dispose(); - clusterBuilder_ = null; - } - parent_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CreateClusterRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.CreateClusterRequest getDefaultInstanceForType() { - return com.google.container.v1.CreateClusterRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.CreateClusterRequest build() { - com.google.container.v1.CreateClusterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.CreateClusterRequest buildPartial() { - com.google.container.v1.CreateClusterRequest result = - new com.google.container.v1.CreateClusterRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.CreateClusterRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.cluster_ = clusterBuilder_ == null ? cluster_ : clusterBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.parent_ = parent_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.CreateClusterRequest) { - return mergeFrom((com.google.container.v1.CreateClusterRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.CreateClusterRequest other) { - if (other == com.google.container.v1.CreateClusterRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasCluster()) { - mergeCluster(other.getCluster()); - } - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000008; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getClusterFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 42: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2560 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2560 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2560 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2560 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2560 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute 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]; - * - * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2566 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute 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]; - * - * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2566 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute 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]; - * - * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2566 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute 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]; - * - * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2566 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute 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]; - * - * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2566 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.container.v1.Cluster cluster_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.Cluster, - com.google.container.v1.Cluster.Builder, - com.google.container.v1.ClusterOrBuilder> - clusterBuilder_; - /** - * - * - *
-     * Required. A [cluster
-     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
-     * 
- * - * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the cluster field is set. - */ - public boolean hasCluster() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * Required. A [cluster
-     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
-     * 
- * - * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The cluster. - */ - public com.google.container.v1.Cluster getCluster() { - if (clusterBuilder_ == null) { - return cluster_ == null ? com.google.container.v1.Cluster.getDefaultInstance() : cluster_; - } else { - return clusterBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. A [cluster
-     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
-     * 
- * - * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setCluster(com.google.container.v1.Cluster value) { - if (clusterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - cluster_ = value; - } else { - clusterBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. A [cluster
-     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
-     * 
- * - * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setCluster(com.google.container.v1.Cluster.Builder builderForValue) { - if (clusterBuilder_ == null) { - cluster_ = builderForValue.build(); - } else { - clusterBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. A [cluster
-     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
-     * 
- * - * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeCluster(com.google.container.v1.Cluster value) { - if (clusterBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && cluster_ != null - && cluster_ != com.google.container.v1.Cluster.getDefaultInstance()) { - getClusterBuilder().mergeFrom(value); - } else { - cluster_ = value; - } - } else { - clusterBuilder_.mergeFrom(value); - } - if (cluster_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Required. A [cluster
-     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
-     * 
- * - * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearCluster() { - bitField0_ = (bitField0_ & ~0x00000004); - cluster_ = null; - if (clusterBuilder_ != null) { - clusterBuilder_.dispose(); - clusterBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Required. A [cluster
-     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
-     * 
- * - * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.container.v1.Cluster.Builder getClusterBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getClusterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. A [cluster
-     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
-     * 
- * - * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.container.v1.ClusterOrBuilder getClusterOrBuilder() { - if (clusterBuilder_ != null) { - return clusterBuilder_.getMessageOrBuilder(); - } else { - return cluster_ == null ? com.google.container.v1.Cluster.getDefaultInstance() : cluster_; - } - } - /** - * - * - *
-     * Required. A [cluster
-     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
-     * 
- * - * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.Cluster, - com.google.container.v1.Cluster.Builder, - com.google.container.v1.ClusterOrBuilder> - getClusterFieldBuilder() { - if (clusterBuilder_ == null) { - clusterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.Cluster, - com.google.container.v1.Cluster.Builder, - com.google.container.v1.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; - bitField0_ |= 0x00000008; - 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(); - bitField0_ = (bitField0_ & ~0x00000008); - 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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.CreateClusterRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.CreateClusterRequest) - private static final com.google.container.v1.CreateClusterRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.CreateClusterRequest(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.CreateClusterRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java deleted file mode 100644 index 2a546c1bddb3..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java +++ /dev/null @@ -1,166 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface CreateClusterRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.CreateClusterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2560 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2560 - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the parent
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2566 - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the parent
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2566 - * @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/v1/projects.locations.clusters)
-   * 
- * - * .google.container.v1.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/v1/projects.locations.clusters)
-   * 
- * - * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The cluster. - */ - com.google.container.v1.Cluster getCluster(); - /** - * - * - *
-   * Required. A [cluster
-   * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
-   * 
- * - * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.container.v1.ClusterOrBuilder getClusterOrBuilder(); - - /** - * - * - *
-   * The parent (project and location) where the cluster will be created.
-   * Specified in the format `projects/*/locations/*`.
-   * 
- * - * string parent = 5; - * - * @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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java deleted file mode 100644 index 32a8fcaac35c..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java +++ /dev/null @@ -1,1576 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * CreateNodePoolRequest creates a node pool for a cluster.
- * 
- * - * Protobuf type {@code google.container.v1.CreateNodePoolRequest} - */ -public final class CreateNodePoolRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CreateNodePoolRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CreateNodePoolRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.CreateNodePoolRequest.class, - com.google.container.v1.CreateNodePoolRequest.Builder.class); - } - - private int bitField0_; - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3175 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3175 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object zone_ = ""; - /** - * - * - *
-   * Deprecated. The name of the Google Compute 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]; - * - * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3181 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute 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]; - * - * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3181 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object clusterId_ = ""; - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3185 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3185 - * @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.v1.NodePool nodePool_; - /** - * - * - *
-   * Required. The node pool to create.
-   * 
- * - * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the nodePool field is set. - */ - @java.lang.Override - public boolean hasNodePool() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Required. The node pool to create.
-   * 
- * - * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The nodePool. - */ - @java.lang.Override - public com.google.container.v1.NodePool getNodePool() { - return nodePool_ == null ? com.google.container.v1.NodePool.getDefaultInstance() : nodePool_; - } - /** - * - * - *
-   * Required. The node pool to create.
-   * 
- * - * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.container.v1.NodePoolOrBuilder getNodePoolOrBuilder() { - return nodePool_ == null ? com.google.container.v1.NodePool.getDefaultInstance() : nodePool_; - } - - public static final int PARENT_FIELD_NUMBER = 6; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - * - * - *
-   * The parent (project, location, cluster name) 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 name) 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(4, getNodePool()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, parent_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getNodePool()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, parent_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.CreateNodePoolRequest)) { - return super.equals(obj); - } - com.google.container.v1.CreateNodePoolRequest other = - (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.CreateNodePoolRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.CreateNodePoolRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.CreateNodePoolRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.CreateNodePoolRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.CreateNodePoolRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.CreateNodePoolRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.CreateNodePoolRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.CreateNodePoolRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.CreateNodePoolRequest) - com.google.container.v1.CreateNodePoolRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CreateNodePoolRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CreateNodePoolRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.CreateNodePoolRequest.class, - com.google.container.v1.CreateNodePoolRequest.Builder.class); - } - - // Construct using com.google.container.v1.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) { - getNodePoolFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - nodePool_ = null; - if (nodePoolBuilder_ != null) { - nodePoolBuilder_.dispose(); - nodePoolBuilder_ = null; - } - parent_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CreateNodePoolRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.CreateNodePoolRequest getDefaultInstanceForType() { - return com.google.container.v1.CreateNodePoolRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.CreateNodePoolRequest build() { - com.google.container.v1.CreateNodePoolRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.CreateNodePoolRequest buildPartial() { - com.google.container.v1.CreateNodePoolRequest result = - new com.google.container.v1.CreateNodePoolRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.CreateNodePoolRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.nodePool_ = nodePoolBuilder_ == null ? nodePool_ : nodePoolBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.parent_ = parent_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.CreateNodePoolRequest) { - return mergeFrom((com.google.container.v1.CreateNodePoolRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.CreateNodePoolRequest other) { - if (other == com.google.container.v1.CreateNodePoolRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasNodePool()) { - mergeNodePool(other.getNodePool()); - } - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000010; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getNodePoolFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 50: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3175 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3175 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3175 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3175 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3175 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute 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]; - * - * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3181 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute 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]; - * - * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3181 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute 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]; - * - * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3181 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute 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]; - * - * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3181 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute 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]; - * - * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3181 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3185 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3185 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3185 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3185 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3185 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private com.google.container.v1.NodePool nodePool_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool, - com.google.container.v1.NodePool.Builder, - com.google.container.v1.NodePoolOrBuilder> - nodePoolBuilder_; - /** - * - * - *
-     * Required. The node pool to create.
-     * 
- * - * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the nodePool field is set. - */ - public boolean hasNodePool() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-     * Required. The node pool to create.
-     * 
- * - * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The nodePool. - */ - public com.google.container.v1.NodePool getNodePool() { - if (nodePoolBuilder_ == null) { - return nodePool_ == null - ? com.google.container.v1.NodePool.getDefaultInstance() - : nodePool_; - } else { - return nodePoolBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The node pool to create.
-     * 
- * - * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setNodePool(com.google.container.v1.NodePool value) { - if (nodePoolBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - nodePool_ = value; - } else { - nodePoolBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The node pool to create.
-     * 
- * - * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setNodePool(com.google.container.v1.NodePool.Builder builderForValue) { - if (nodePoolBuilder_ == null) { - nodePool_ = builderForValue.build(); - } else { - nodePoolBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The node pool to create.
-     * 
- * - * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeNodePool(com.google.container.v1.NodePool value) { - if (nodePoolBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && nodePool_ != null - && nodePool_ != com.google.container.v1.NodePool.getDefaultInstance()) { - getNodePoolBuilder().mergeFrom(value); - } else { - nodePool_ = value; - } - } else { - nodePoolBuilder_.mergeFrom(value); - } - if (nodePool_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Required. The node pool to create.
-     * 
- * - * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearNodePool() { - bitField0_ = (bitField0_ & ~0x00000008); - nodePool_ = null; - if (nodePoolBuilder_ != null) { - nodePoolBuilder_.dispose(); - nodePoolBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The node pool to create.
-     * 
- * - * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.container.v1.NodePool.Builder getNodePoolBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getNodePoolFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The node pool to create.
-     * 
- * - * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.container.v1.NodePoolOrBuilder getNodePoolOrBuilder() { - if (nodePoolBuilder_ != null) { - return nodePoolBuilder_.getMessageOrBuilder(); - } else { - return nodePool_ == null - ? com.google.container.v1.NodePool.getDefaultInstance() - : nodePool_; - } - } - /** - * - * - *
-     * Required. The node pool to create.
-     * 
- * - * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool, - com.google.container.v1.NodePool.Builder, - com.google.container.v1.NodePoolOrBuilder> - getNodePoolFieldBuilder() { - if (nodePoolBuilder_ == null) { - nodePoolBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool, - com.google.container.v1.NodePool.Builder, - com.google.container.v1.NodePoolOrBuilder>( - getNodePool(), getParentForChildren(), isClean()); - nodePool_ = null; - } - return nodePoolBuilder_; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * The parent (project, location, cluster name) 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 name) 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 name) 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; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * The parent (project, location, cluster name) 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(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * - * - *
-     * The parent (project, location, cluster name) 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; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.CreateNodePoolRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.CreateNodePoolRequest) - private static final com.google.container.v1.CreateNodePoolRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.CreateNodePoolRequest(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.CreateNodePoolRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java deleted file mode 100644 index be5fd5e0166f..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java +++ /dev/null @@ -1,198 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface CreateNodePoolRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.CreateNodePoolRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3175 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3175 - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the parent
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3181 - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the parent
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3181 - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3185 - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3185 - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getClusterIdBytes(); - - /** - * - * - *
-   * Required. The node pool to create.
-   * 
- * - * .google.container.v1.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.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The nodePool. - */ - com.google.container.v1.NodePool getNodePool(); - /** - * - * - *
-   * Required. The node pool to create.
-   * 
- * - * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.container.v1.NodePoolOrBuilder getNodePoolOrBuilder(); - - /** - * - * - *
-   * The parent (project, location, cluster name) 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 name) 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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DNSConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DNSConfig.java deleted file mode 100644 index b9c6f6b1bcd2..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DNSConfig.java +++ /dev/null @@ -1,1257 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * DNSConfig contains the desired set of options for configuring clusterDNS.
- * 
- * - * Protobuf type {@code google.container.v1.DNSConfig} - */ -public final class DNSConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.DNSConfig) - DNSConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use DNSConfig.newBuilder() to construct. - private DNSConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DNSConfig() { - clusterDns_ = 0; - clusterDnsScope_ = 0; - clusterDnsDomain_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DNSConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DNSConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DNSConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.DNSConfig.class, - com.google.container.v1.DNSConfig.Builder.class); - } - - /** - * - * - *
-   * Provider lists the various in-cluster DNS providers.
-   * 
- * - * Protobuf enum {@code google.container.v1.DNSConfig.Provider} - */ - public enum Provider implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value
-     * 
- * - * PROVIDER_UNSPECIFIED = 0; - */ - PROVIDER_UNSPECIFIED(0), - /** - * - * - *
-     * Use GKE default DNS provider(kube-dns) for DNS resolution.
-     * 
- * - * PLATFORM_DEFAULT = 1; - */ - PLATFORM_DEFAULT(1), - /** - * - * - *
-     * Use CloudDNS for DNS resolution.
-     * 
- * - * CLOUD_DNS = 2; - */ - CLOUD_DNS(2), - /** - * - * - *
-     * Use KubeDNS for DNS resolution.
-     * 
- * - * KUBE_DNS = 3; - */ - KUBE_DNS(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value
-     * 
- * - * PROVIDER_UNSPECIFIED = 0; - */ - public static final int PROVIDER_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Use GKE default DNS provider(kube-dns) for DNS resolution.
-     * 
- * - * PLATFORM_DEFAULT = 1; - */ - public static final int PLATFORM_DEFAULT_VALUE = 1; - /** - * - * - *
-     * Use CloudDNS for DNS resolution.
-     * 
- * - * CLOUD_DNS = 2; - */ - public static final int CLOUD_DNS_VALUE = 2; - /** - * - * - *
-     * Use KubeDNS for DNS resolution.
-     * 
- * - * KUBE_DNS = 3; - */ - public static final int KUBE_DNS_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 Provider valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Provider forNumber(int value) { - switch (value) { - case 0: - return PROVIDER_UNSPECIFIED; - case 1: - return PLATFORM_DEFAULT; - case 2: - return CLOUD_DNS; - case 3: - return KUBE_DNS; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Provider findValueByNumber(int number) { - return Provider.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.DNSConfig.getDescriptor().getEnumTypes().get(0); - } - - private static final Provider[] VALUES = values(); - - public static Provider valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Provider(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.DNSConfig.Provider) - } - - /** - * - * - *
-   * DNSScope lists the various scopes of access to cluster DNS records.
-   * 
- * - * Protobuf enum {@code google.container.v1.DNSConfig.DNSScope} - */ - public enum DNSScope implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value, will be inferred as cluster scope.
-     * 
- * - * DNS_SCOPE_UNSPECIFIED = 0; - */ - DNS_SCOPE_UNSPECIFIED(0), - /** - * - * - *
-     * DNS records are accessible from within the cluster.
-     * 
- * - * CLUSTER_SCOPE = 1; - */ - CLUSTER_SCOPE(1), - /** - * - * - *
-     * DNS records are accessible from within the VPC.
-     * 
- * - * VPC_SCOPE = 2; - */ - VPC_SCOPE(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value, will be inferred as cluster scope.
-     * 
- * - * DNS_SCOPE_UNSPECIFIED = 0; - */ - public static final int DNS_SCOPE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * DNS records are accessible from within the cluster.
-     * 
- * - * CLUSTER_SCOPE = 1; - */ - public static final int CLUSTER_SCOPE_VALUE = 1; - /** - * - * - *
-     * DNS records are accessible from within the VPC.
-     * 
- * - * VPC_SCOPE = 2; - */ - public static final int VPC_SCOPE_VALUE = 2; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static DNSScope valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static DNSScope forNumber(int value) { - switch (value) { - case 0: - return DNS_SCOPE_UNSPECIFIED; - case 1: - return CLUSTER_SCOPE; - case 2: - return VPC_SCOPE; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DNSScope findValueByNumber(int number) { - return DNSScope.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.DNSConfig.getDescriptor().getEnumTypes().get(1); - } - - private static final DNSScope[] VALUES = values(); - - public static DNSScope valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private DNSScope(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.DNSConfig.DNSScope) - } - - public static final int CLUSTER_DNS_FIELD_NUMBER = 1; - private int clusterDns_ = 0; - /** - * - * - *
-   * cluster_dns indicates which in-cluster DNS provider should be used.
-   * 
- * - * .google.container.v1.DNSConfig.Provider cluster_dns = 1; - * - * @return The enum numeric value on the wire for clusterDns. - */ - @java.lang.Override - public int getClusterDnsValue() { - return clusterDns_; - } - /** - * - * - *
-   * cluster_dns indicates which in-cluster DNS provider should be used.
-   * 
- * - * .google.container.v1.DNSConfig.Provider cluster_dns = 1; - * - * @return The clusterDns. - */ - @java.lang.Override - public com.google.container.v1.DNSConfig.Provider getClusterDns() { - com.google.container.v1.DNSConfig.Provider result = - com.google.container.v1.DNSConfig.Provider.forNumber(clusterDns_); - return result == null ? com.google.container.v1.DNSConfig.Provider.UNRECOGNIZED : result; - } - - public static final int CLUSTER_DNS_SCOPE_FIELD_NUMBER = 2; - private int clusterDnsScope_ = 0; - /** - * - * - *
-   * cluster_dns_scope indicates the scope of access to cluster DNS records.
-   * 
- * - * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; - * - * @return The enum numeric value on the wire for clusterDnsScope. - */ - @java.lang.Override - public int getClusterDnsScopeValue() { - return clusterDnsScope_; - } - /** - * - * - *
-   * cluster_dns_scope indicates the scope of access to cluster DNS records.
-   * 
- * - * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; - * - * @return The clusterDnsScope. - */ - @java.lang.Override - public com.google.container.v1.DNSConfig.DNSScope getClusterDnsScope() { - com.google.container.v1.DNSConfig.DNSScope result = - com.google.container.v1.DNSConfig.DNSScope.forNumber(clusterDnsScope_); - return result == null ? com.google.container.v1.DNSConfig.DNSScope.UNRECOGNIZED : result; - } - - public static final int CLUSTER_DNS_DOMAIN_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object clusterDnsDomain_ = ""; - /** - * - * - *
-   * cluster_dns_domain is the suffix used for all cluster service records.
-   * 
- * - * string cluster_dns_domain = 3; - * - * @return The clusterDnsDomain. - */ - @java.lang.Override - public java.lang.String getClusterDnsDomain() { - java.lang.Object ref = clusterDnsDomain_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterDnsDomain_ = s; - return s; - } - } - /** - * - * - *
-   * cluster_dns_domain is the suffix used for all cluster service records.
-   * 
- * - * string cluster_dns_domain = 3; - * - * @return The bytes for clusterDnsDomain. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterDnsDomainBytes() { - java.lang.Object ref = clusterDnsDomain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterDnsDomain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (clusterDns_ - != com.google.container.v1.DNSConfig.Provider.PROVIDER_UNSPECIFIED.getNumber()) { - output.writeEnum(1, clusterDns_); - } - if (clusterDnsScope_ - != com.google.container.v1.DNSConfig.DNSScope.DNS_SCOPE_UNSPECIFIED.getNumber()) { - output.writeEnum(2, clusterDnsScope_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterDnsDomain_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterDnsDomain_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (clusterDns_ - != com.google.container.v1.DNSConfig.Provider.PROVIDER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, clusterDns_); - } - if (clusterDnsScope_ - != com.google.container.v1.DNSConfig.DNSScope.DNS_SCOPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, clusterDnsScope_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterDnsDomain_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterDnsDomain_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.DNSConfig)) { - return super.equals(obj); - } - com.google.container.v1.DNSConfig other = (com.google.container.v1.DNSConfig) obj; - - if (clusterDns_ != other.clusterDns_) return false; - if (clusterDnsScope_ != other.clusterDnsScope_) return false; - if (!getClusterDnsDomain().equals(other.getClusterDnsDomain())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CLUSTER_DNS_FIELD_NUMBER; - hash = (53 * hash) + clusterDns_; - hash = (37 * hash) + CLUSTER_DNS_SCOPE_FIELD_NUMBER; - hash = (53 * hash) + clusterDnsScope_; - hash = (37 * hash) + CLUSTER_DNS_DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getClusterDnsDomain().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.DNSConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.DNSConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.DNSConfig parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.DNSConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.DNSConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.DNSConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.DNSConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.DNSConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.DNSConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.DNSConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.DNSConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.DNSConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.DNSConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * DNSConfig contains the desired set of options for configuring clusterDNS.
-   * 
- * - * Protobuf type {@code google.container.v1.DNSConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.DNSConfig) - com.google.container.v1.DNSConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DNSConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DNSConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.DNSConfig.class, - com.google.container.v1.DNSConfig.Builder.class); - } - - // Construct using com.google.container.v1.DNSConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - clusterDns_ = 0; - clusterDnsScope_ = 0; - clusterDnsDomain_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DNSConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.DNSConfig getDefaultInstanceForType() { - return com.google.container.v1.DNSConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.DNSConfig build() { - com.google.container.v1.DNSConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.DNSConfig buildPartial() { - com.google.container.v1.DNSConfig result = new com.google.container.v1.DNSConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.DNSConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.clusterDns_ = clusterDns_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.clusterDnsScope_ = clusterDnsScope_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterDnsDomain_ = clusterDnsDomain_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.DNSConfig) { - return mergeFrom((com.google.container.v1.DNSConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.DNSConfig other) { - if (other == com.google.container.v1.DNSConfig.getDefaultInstance()) return this; - if (other.clusterDns_ != 0) { - setClusterDnsValue(other.getClusterDnsValue()); - } - if (other.clusterDnsScope_ != 0) { - setClusterDnsScopeValue(other.getClusterDnsScopeValue()); - } - if (!other.getClusterDnsDomain().isEmpty()) { - clusterDnsDomain_ = other.clusterDnsDomain_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - clusterDns_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - clusterDnsScope_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - clusterDnsDomain_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int clusterDns_ = 0; - /** - * - * - *
-     * cluster_dns indicates which in-cluster DNS provider should be used.
-     * 
- * - * .google.container.v1.DNSConfig.Provider cluster_dns = 1; - * - * @return The enum numeric value on the wire for clusterDns. - */ - @java.lang.Override - public int getClusterDnsValue() { - return clusterDns_; - } - /** - * - * - *
-     * cluster_dns indicates which in-cluster DNS provider should be used.
-     * 
- * - * .google.container.v1.DNSConfig.Provider cluster_dns = 1; - * - * @param value The enum numeric value on the wire for clusterDns to set. - * @return This builder for chaining. - */ - public Builder setClusterDnsValue(int value) { - clusterDns_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * cluster_dns indicates which in-cluster DNS provider should be used.
-     * 
- * - * .google.container.v1.DNSConfig.Provider cluster_dns = 1; - * - * @return The clusterDns. - */ - @java.lang.Override - public com.google.container.v1.DNSConfig.Provider getClusterDns() { - com.google.container.v1.DNSConfig.Provider result = - com.google.container.v1.DNSConfig.Provider.forNumber(clusterDns_); - return result == null ? com.google.container.v1.DNSConfig.Provider.UNRECOGNIZED : result; - } - /** - * - * - *
-     * cluster_dns indicates which in-cluster DNS provider should be used.
-     * 
- * - * .google.container.v1.DNSConfig.Provider cluster_dns = 1; - * - * @param value The clusterDns to set. - * @return This builder for chaining. - */ - public Builder setClusterDns(com.google.container.v1.DNSConfig.Provider value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - clusterDns_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * cluster_dns indicates which in-cluster DNS provider should be used.
-     * 
- * - * .google.container.v1.DNSConfig.Provider cluster_dns = 1; - * - * @return This builder for chaining. - */ - public Builder clearClusterDns() { - bitField0_ = (bitField0_ & ~0x00000001); - clusterDns_ = 0; - onChanged(); - return this; - } - - private int clusterDnsScope_ = 0; - /** - * - * - *
-     * cluster_dns_scope indicates the scope of access to cluster DNS records.
-     * 
- * - * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; - * - * @return The enum numeric value on the wire for clusterDnsScope. - */ - @java.lang.Override - public int getClusterDnsScopeValue() { - return clusterDnsScope_; - } - /** - * - * - *
-     * cluster_dns_scope indicates the scope of access to cluster DNS records.
-     * 
- * - * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; - * - * @param value The enum numeric value on the wire for clusterDnsScope to set. - * @return This builder for chaining. - */ - public Builder setClusterDnsScopeValue(int value) { - clusterDnsScope_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * cluster_dns_scope indicates the scope of access to cluster DNS records.
-     * 
- * - * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; - * - * @return The clusterDnsScope. - */ - @java.lang.Override - public com.google.container.v1.DNSConfig.DNSScope getClusterDnsScope() { - com.google.container.v1.DNSConfig.DNSScope result = - com.google.container.v1.DNSConfig.DNSScope.forNumber(clusterDnsScope_); - return result == null ? com.google.container.v1.DNSConfig.DNSScope.UNRECOGNIZED : result; - } - /** - * - * - *
-     * cluster_dns_scope indicates the scope of access to cluster DNS records.
-     * 
- * - * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; - * - * @param value The clusterDnsScope to set. - * @return This builder for chaining. - */ - public Builder setClusterDnsScope(com.google.container.v1.DNSConfig.DNSScope value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - clusterDnsScope_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * cluster_dns_scope indicates the scope of access to cluster DNS records.
-     * 
- * - * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; - * - * @return This builder for chaining. - */ - public Builder clearClusterDnsScope() { - bitField0_ = (bitField0_ & ~0x00000002); - clusterDnsScope_ = 0; - onChanged(); - return this; - } - - private java.lang.Object clusterDnsDomain_ = ""; - /** - * - * - *
-     * cluster_dns_domain is the suffix used for all cluster service records.
-     * 
- * - * string cluster_dns_domain = 3; - * - * @return The clusterDnsDomain. - */ - public java.lang.String getClusterDnsDomain() { - java.lang.Object ref = clusterDnsDomain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterDnsDomain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * cluster_dns_domain is the suffix used for all cluster service records.
-     * 
- * - * string cluster_dns_domain = 3; - * - * @return The bytes for clusterDnsDomain. - */ - public com.google.protobuf.ByteString getClusterDnsDomainBytes() { - java.lang.Object ref = clusterDnsDomain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterDnsDomain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * cluster_dns_domain is the suffix used for all cluster service records.
-     * 
- * - * string cluster_dns_domain = 3; - * - * @param value The clusterDnsDomain to set. - * @return This builder for chaining. - */ - public Builder setClusterDnsDomain(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - clusterDnsDomain_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * cluster_dns_domain is the suffix used for all cluster service records.
-     * 
- * - * string cluster_dns_domain = 3; - * - * @return This builder for chaining. - */ - public Builder clearClusterDnsDomain() { - clusterDnsDomain_ = getDefaultInstance().getClusterDnsDomain(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * cluster_dns_domain is the suffix used for all cluster service records.
-     * 
- * - * string cluster_dns_domain = 3; - * - * @param value The bytes for clusterDnsDomain to set. - * @return This builder for chaining. - */ - public Builder setClusterDnsDomainBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - clusterDnsDomain_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.DNSConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.DNSConfig) - private static final com.google.container.v1.DNSConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.DNSConfig(); - } - - public static com.google.container.v1.DNSConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DNSConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.DNSConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DNSConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DNSConfigOrBuilder.java deleted file mode 100644 index d0b1f1b07455..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DNSConfigOrBuilder.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface DNSConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.DNSConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * cluster_dns indicates which in-cluster DNS provider should be used.
-   * 
- * - * .google.container.v1.DNSConfig.Provider cluster_dns = 1; - * - * @return The enum numeric value on the wire for clusterDns. - */ - int getClusterDnsValue(); - /** - * - * - *
-   * cluster_dns indicates which in-cluster DNS provider should be used.
-   * 
- * - * .google.container.v1.DNSConfig.Provider cluster_dns = 1; - * - * @return The clusterDns. - */ - com.google.container.v1.DNSConfig.Provider getClusterDns(); - - /** - * - * - *
-   * cluster_dns_scope indicates the scope of access to cluster DNS records.
-   * 
- * - * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; - * - * @return The enum numeric value on the wire for clusterDnsScope. - */ - int getClusterDnsScopeValue(); - /** - * - * - *
-   * cluster_dns_scope indicates the scope of access to cluster DNS records.
-   * 
- * - * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; - * - * @return The clusterDnsScope. - */ - com.google.container.v1.DNSConfig.DNSScope getClusterDnsScope(); - - /** - * - * - *
-   * cluster_dns_domain is the suffix used for all cluster service records.
-   * 
- * - * string cluster_dns_domain = 3; - * - * @return The clusterDnsDomain. - */ - java.lang.String getClusterDnsDomain(); - /** - * - * - *
-   * cluster_dns_domain is the suffix used for all cluster service records.
-   * 
- * - * string cluster_dns_domain = 3; - * - * @return The bytes for clusterDnsDomain. - */ - com.google.protobuf.ByteString getClusterDnsDomainBytes(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindow.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindow.java deleted file mode 100644 index 7331b8cb5aa5..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindow.java +++ /dev/null @@ -1,841 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Time window specified for daily maintenance operations.
- * 
- * - * Protobuf type {@code google.container.v1.DailyMaintenanceWindow} - */ -public final class DailyMaintenanceWindow extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DailyMaintenanceWindow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DailyMaintenanceWindow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.DailyMaintenanceWindow.class, - com.google.container.v1.DailyMaintenanceWindow.Builder.class); - } - - public static final int START_TIME_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object startTime_ = ""; - /** - * - * - *
-   * Time within the maintenance window to start the maintenance operations.
-   * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
-   * 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.
-   * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
-   * 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object duration_ = ""; - /** - * - * - *
-   * [Output only] Duration of the time window, automatically chosen to be
-   * smallest possible in the given scenario.
-   * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
-   * format "PTnHnMnS".
-   * 
- * - * 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.
-   * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
-   * format "PTnHnMnS".
-   * 
- * - * 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startTime_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, startTime_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(duration_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, duration_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startTime_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, startTime_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(duration_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, duration_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.DailyMaintenanceWindow)) { - return super.equals(obj); - } - com.google.container.v1.DailyMaintenanceWindow other = - (com.google.container.v1.DailyMaintenanceWindow) obj; - - if (!getStartTime().equals(other.getStartTime())) return false; - if (!getDuration().equals(other.getDuration())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.DailyMaintenanceWindow parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.DailyMaintenanceWindow parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.DailyMaintenanceWindow parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.DailyMaintenanceWindow parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.DailyMaintenanceWindow parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.DailyMaintenanceWindow parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.DailyMaintenanceWindow parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.DailyMaintenanceWindow} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.DailyMaintenanceWindow) - com.google.container.v1.DailyMaintenanceWindowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DailyMaintenanceWindow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DailyMaintenanceWindow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.DailyMaintenanceWindow.class, - com.google.container.v1.DailyMaintenanceWindow.Builder.class); - } - - // Construct using com.google.container.v1.DailyMaintenanceWindow.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - startTime_ = ""; - duration_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DailyMaintenanceWindow_descriptor; - } - - @java.lang.Override - public com.google.container.v1.DailyMaintenanceWindow getDefaultInstanceForType() { - return com.google.container.v1.DailyMaintenanceWindow.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.DailyMaintenanceWindow build() { - com.google.container.v1.DailyMaintenanceWindow result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.DailyMaintenanceWindow buildPartial() { - com.google.container.v1.DailyMaintenanceWindow result = - new com.google.container.v1.DailyMaintenanceWindow(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.DailyMaintenanceWindow result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.startTime_ = startTime_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.duration_ = duration_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.DailyMaintenanceWindow) { - return mergeFrom((com.google.container.v1.DailyMaintenanceWindow) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.DailyMaintenanceWindow other) { - if (other == com.google.container.v1.DailyMaintenanceWindow.getDefaultInstance()) return this; - if (!other.getStartTime().isEmpty()) { - startTime_ = other.startTime_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getDuration().isEmpty()) { - duration_ = other.duration_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: - { - startTime_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 18 - case 26: - { - duration_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object startTime_ = ""; - /** - * - * - *
-     * Time within the maintenance window to start the maintenance operations.
-     * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
-     * 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.
-     * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
-     * 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.
-     * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
-     * 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Time within the maintenance window to start the maintenance operations.
-     * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
-     * 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(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Time within the maintenance window to start the maintenance operations.
-     * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
-     * 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; - bitField0_ |= 0x00000001; - 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.
-     * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
-     * format "PTnHnMnS".
-     * 
- * - * 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.
-     * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
-     * format "PTnHnMnS".
-     * 
- * - * 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.
-     * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
-     * format "PTnHnMnS".
-     * 
- * - * 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] Duration of the time window, automatically chosen to be
-     * smallest possible in the given scenario.
-     * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
-     * format "PTnHnMnS".
-     * 
- * - * string duration = 3; - * - * @return This builder for chaining. - */ - public Builder clearDuration() { - duration_ = getDefaultInstance().getDuration(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] Duration of the time window, automatically chosen to be
-     * smallest possible in the given scenario.
-     * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
-     * format "PTnHnMnS".
-     * 
- * - * 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.DailyMaintenanceWindow) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.DailyMaintenanceWindow) - private static final com.google.container.v1.DailyMaintenanceWindow DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.DailyMaintenanceWindow(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.DailyMaintenanceWindow getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindowOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindowOrBuilder.java deleted file mode 100644 index e2f47dbf9d8d..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindowOrBuilder.java +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface DailyMaintenanceWindowOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.DailyMaintenanceWindow) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Time within the maintenance window to start the maintenance operations.
-   * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
-   * 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.
-   * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
-   * 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.
-   * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
-   * format "PTnHnMnS".
-   * 
- * - * 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.
-   * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
-   * format "PTnHnMnS".
-   * 
- * - * string duration = 3; - * - * @return The bytes for duration. - */ - com.google.protobuf.ByteString getDurationBytes(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatabaseEncryption.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatabaseEncryption.java deleted file mode 100644 index 07457cb8c282..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatabaseEncryption.java +++ /dev/null @@ -1,940 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Configuration of etcd encryption.
- * 
- * - * Protobuf type {@code google.container.v1.DatabaseEncryption} - */ -public final class DatabaseEncryption extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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() { - keyName_ = ""; - state_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DatabaseEncryption(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DatabaseEncryption_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DatabaseEncryption_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.DatabaseEncryption.class, - com.google.container.v1.DatabaseEncryption.Builder.class); - } - - /** - * - * - *
-   * State of etcd encryption.
-   * 
- * - * Protobuf enum {@code google.container.v1.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.v1.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.v1.DatabaseEncryption.State) - } - - public static final int KEY_NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - 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; - } - } - - public static final int STATE_FIELD_NUMBER = 2; - private int state_ = 0; - /** - * - * - *
-   * The desired state of etcd encryption.
-   * 
- * - * .google.container.v1.DatabaseEncryption.State state = 2; - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-   * The desired state of etcd encryption.
-   * 
- * - * .google.container.v1.DatabaseEncryption.State state = 2; - * - * @return The state. - */ - @java.lang.Override - public com.google.container.v1.DatabaseEncryption.State getState() { - com.google.container.v1.DatabaseEncryption.State result = - com.google.container.v1.DatabaseEncryption.State.forNumber(state_); - return result == null ? com.google.container.v1.DatabaseEncryption.State.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyName_); - } - if (state_ != com.google.container.v1.DatabaseEncryption.State.UNKNOWN.getNumber()) { - output.writeEnum(2, state_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, keyName_); - } - if (state_ != com.google.container.v1.DatabaseEncryption.State.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.DatabaseEncryption)) { - return super.equals(obj); - } - com.google.container.v1.DatabaseEncryption other = - (com.google.container.v1.DatabaseEncryption) obj; - - if (!getKeyName().equals(other.getKeyName())) return false; - if (state_ != other.state_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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_NAME_FIELD_NUMBER; - hash = (53 * hash) + getKeyName().hashCode(); - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.DatabaseEncryption parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.DatabaseEncryption parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.DatabaseEncryption parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.DatabaseEncryption parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.DatabaseEncryption parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.DatabaseEncryption parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.DatabaseEncryption parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.DatabaseEncryption} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.DatabaseEncryption) - com.google.container.v1.DatabaseEncryptionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DatabaseEncryption_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DatabaseEncryption_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.DatabaseEncryption.class, - com.google.container.v1.DatabaseEncryption.Builder.class); - } - - // Construct using com.google.container.v1.DatabaseEncryption.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - keyName_ = ""; - state_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DatabaseEncryption_descriptor; - } - - @java.lang.Override - public com.google.container.v1.DatabaseEncryption getDefaultInstanceForType() { - return com.google.container.v1.DatabaseEncryption.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.DatabaseEncryption build() { - com.google.container.v1.DatabaseEncryption result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.DatabaseEncryption buildPartial() { - com.google.container.v1.DatabaseEncryption result = - new com.google.container.v1.DatabaseEncryption(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.DatabaseEncryption result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.keyName_ = keyName_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.state_ = state_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.DatabaseEncryption) { - return mergeFrom((com.google.container.v1.DatabaseEncryption) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.DatabaseEncryption other) { - if (other == com.google.container.v1.DatabaseEncryption.getDefaultInstance()) return this; - if (!other.getKeyName().isEmpty()) { - keyName_ = other.keyName_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - keyName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int state_ = 0; - /** - * - * - *
-     * The desired state of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption.State state = 2; - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-     * The desired state of etcd encryption.
-     * 
- * - * .google.container.v1.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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired state of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption.State state = 2; - * - * @return The state. - */ - @java.lang.Override - public com.google.container.v1.DatabaseEncryption.State getState() { - com.google.container.v1.DatabaseEncryption.State result = - com.google.container.v1.DatabaseEncryption.State.forNumber(state_); - return result == null - ? com.google.container.v1.DatabaseEncryption.State.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * The desired state of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption.State state = 2; - * - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(com.google.container.v1.DatabaseEncryption.State value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The desired state of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption.State state = 2; - * - * @return This builder for chaining. - */ - public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000002); - state_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.DatabaseEncryption) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.DatabaseEncryption) - private static final com.google.container.v1.DatabaseEncryption DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.DatabaseEncryption(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.DatabaseEncryption getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatabaseEncryptionOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatabaseEncryptionOrBuilder.java deleted file mode 100644 index 81f006f56460..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatabaseEncryptionOrBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface DatabaseEncryptionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.DatabaseEncryption) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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(); - - /** - * - * - *
-   * The desired state of etcd encryption.
-   * 
- * - * .google.container.v1.DatabaseEncryption.State state = 2; - * - * @return The enum numeric value on the wire for state. - */ - int getStateValue(); - /** - * - * - *
-   * The desired state of etcd encryption.
-   * 
- * - * .google.container.v1.DatabaseEncryption.State state = 2; - * - * @return The state. - */ - com.google.container.v1.DatabaseEncryption.State getState(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatapathProvider.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatapathProvider.java deleted file mode 100644 index 41a330768c01..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatapathProvider.java +++ /dev/null @@ -1,184 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * The datapath provider selects the implementation of the Kubernetes networking
- * model for service resolution and network policy enforcement.
- * 
- * - * Protobuf enum {@code google.container.v1.DatapathProvider} - */ -public enum DatapathProvider implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Default value.
-   * 
- * - * DATAPATH_PROVIDER_UNSPECIFIED = 0; - */ - DATAPATH_PROVIDER_UNSPECIFIED(0), - /** - * - * - *
-   * Use the IPTables implementation based on kube-proxy.
-   * 
- * - * LEGACY_DATAPATH = 1; - */ - LEGACY_DATAPATH(1), - /** - * - * - *
-   * Use the eBPF based GKE Dataplane V2 with additional features. See the [GKE
-   * Dataplane V2
-   * documentation](https://cloud.google.com/kubernetes-engine/docs/how-to/dataplane-v2)
-   * for more.
-   * 
- * - * ADVANCED_DATAPATH = 2; - */ - ADVANCED_DATAPATH(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * Default value.
-   * 
- * - * DATAPATH_PROVIDER_UNSPECIFIED = 0; - */ - public static final int DATAPATH_PROVIDER_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * Use the IPTables implementation based on kube-proxy.
-   * 
- * - * LEGACY_DATAPATH = 1; - */ - public static final int LEGACY_DATAPATH_VALUE = 1; - /** - * - * - *
-   * Use the eBPF based GKE Dataplane V2 with additional features. See the [GKE
-   * Dataplane V2
-   * documentation](https://cloud.google.com/kubernetes-engine/docs/how-to/dataplane-v2)
-   * for more.
-   * 
- * - * ADVANCED_DATAPATH = 2; - */ - public static final int ADVANCED_DATAPATH_VALUE = 2; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static DatapathProvider valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static DatapathProvider forNumber(int value) { - switch (value) { - case 0: - return DATAPATH_PROVIDER_UNSPECIFIED; - case 1: - return LEGACY_DATAPATH; - case 2: - return ADVANCED_DATAPATH; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DatapathProvider findValueByNumber(int number) { - return DatapathProvider.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto.getDescriptor().getEnumTypes().get(2); - } - - private static final DatapathProvider[] VALUES = values(); - - public static DatapathProvider valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private DatapathProvider(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.DatapathProvider) -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DefaultSnatStatus.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DefaultSnatStatus.java deleted file mode 100644 index 407281a1ae24..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DefaultSnatStatus.java +++ /dev/null @@ -1,536 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * DefaultSnatStatus contains the desired state of whether default sNAT should
- * be disabled on the cluster.
- * 
- * - * Protobuf type {@code google.container.v1.DefaultSnatStatus} - */ -public final class DefaultSnatStatus extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.DefaultSnatStatus) - DefaultSnatStatusOrBuilder { - private static final long serialVersionUID = 0L; - // Use DefaultSnatStatus.newBuilder() to construct. - private DefaultSnatStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DefaultSnatStatus() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DefaultSnatStatus(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DefaultSnatStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DefaultSnatStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.DefaultSnatStatus.class, - com.google.container.v1.DefaultSnatStatus.Builder.class); - } - - public static final int DISABLED_FIELD_NUMBER = 1; - private boolean disabled_ = false; - /** - * - * - *
-   * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.DefaultSnatStatus)) { - return super.equals(obj); - } - com.google.container.v1.DefaultSnatStatus other = - (com.google.container.v1.DefaultSnatStatus) obj; - - if (getDisabled() != other.getDisabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.DefaultSnatStatus parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.DefaultSnatStatus parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.DefaultSnatStatus parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.DefaultSnatStatus parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.DefaultSnatStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.DefaultSnatStatus parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.DefaultSnatStatus parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.DefaultSnatStatus parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.DefaultSnatStatus parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.DefaultSnatStatus parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.DefaultSnatStatus parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.DefaultSnatStatus parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.DefaultSnatStatus prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * DefaultSnatStatus contains the desired state of whether default sNAT should
-   * be disabled on the cluster.
-   * 
- * - * Protobuf type {@code google.container.v1.DefaultSnatStatus} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.DefaultSnatStatus) - com.google.container.v1.DefaultSnatStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DefaultSnatStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DefaultSnatStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.DefaultSnatStatus.class, - com.google.container.v1.DefaultSnatStatus.Builder.class); - } - - // Construct using com.google.container.v1.DefaultSnatStatus.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - disabled_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DefaultSnatStatus_descriptor; - } - - @java.lang.Override - public com.google.container.v1.DefaultSnatStatus getDefaultInstanceForType() { - return com.google.container.v1.DefaultSnatStatus.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.DefaultSnatStatus build() { - com.google.container.v1.DefaultSnatStatus result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.DefaultSnatStatus buildPartial() { - com.google.container.v1.DefaultSnatStatus result = - new com.google.container.v1.DefaultSnatStatus(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.DefaultSnatStatus result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.disabled_ = disabled_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.DefaultSnatStatus) { - return mergeFrom((com.google.container.v1.DefaultSnatStatus) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.DefaultSnatStatus other) { - if (other == com.google.container.v1.DefaultSnatStatus.getDefaultInstance()) return this; - if (other.getDisabled() != false) { - setDisabled(other.getDisabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - disabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Disables cluster default sNAT rules.
-     * 
- * - * bool disabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearDisabled() { - bitField0_ = (bitField0_ & ~0x00000001); - disabled_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.DefaultSnatStatus) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.DefaultSnatStatus) - private static final com.google.container.v1.DefaultSnatStatus DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.DefaultSnatStatus(); - } - - public static com.google.container.v1.DefaultSnatStatus getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DefaultSnatStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.DefaultSnatStatus getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DefaultSnatStatusOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DefaultSnatStatusOrBuilder.java deleted file mode 100644 index 2b57a122cc7a..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DefaultSnatStatusOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface DefaultSnatStatusOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.DefaultSnatStatus) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Disables cluster default sNAT rules.
-   * 
- * - * bool disabled = 1; - * - * @return The disabled. - */ - boolean getDisabled(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java deleted file mode 100644 index 3ed34e2bf715..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java +++ /dev/null @@ -1,1282 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * DeleteClusterRequest deletes a cluster.
- * 
- * - * Protobuf type {@code google.container.v1.DeleteClusterRequest} - */ -public final class DeleteClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DeleteClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DeleteClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.DeleteClusterRequest.class, - com.google.container.v1.DeleteClusterRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2999 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2999 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object zone_ = ""; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3005 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3005 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object clusterId_ = ""; - /** - * - * - *
-   * Deprecated. The name of the cluster to delete.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3009 - * @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; - } - } - /** - * - * - *
-   * 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]; - * - * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3009 - * @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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.DeleteClusterRequest)) { - return super.equals(obj); - } - com.google.container.v1.DeleteClusterRequest other = - (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.DeleteClusterRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.DeleteClusterRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.DeleteClusterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.DeleteClusterRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.DeleteClusterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.DeleteClusterRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.DeleteClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.DeleteClusterRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.DeleteClusterRequest) - com.google.container.v1.DeleteClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DeleteClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DeleteClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.DeleteClusterRequest.class, - com.google.container.v1.DeleteClusterRequest.Builder.class); - } - - // Construct using com.google.container.v1.DeleteClusterRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DeleteClusterRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.DeleteClusterRequest getDefaultInstanceForType() { - return com.google.container.v1.DeleteClusterRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.DeleteClusterRequest build() { - com.google.container.v1.DeleteClusterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.DeleteClusterRequest buildPartial() { - com.google.container.v1.DeleteClusterRequest result = - new com.google.container.v1.DeleteClusterRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.DeleteClusterRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.DeleteClusterRequest) { - return mergeFrom((com.google.container.v1.DeleteClusterRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.DeleteClusterRequest other) { - if (other == com.google.container.v1.DeleteClusterRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000008; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2999 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2999 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2999 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2999 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2999 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3005 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3005 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3005 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3005 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3005 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster to delete.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3009 - * @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; - } - } - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3009 - * @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; - } - } - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3009 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to delete.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3009 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to delete.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3009 - * @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; - bitField0_ |= 0x00000004; - 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; - bitField0_ |= 0x00000008; - 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(); - bitField0_ = (bitField0_ & ~0x00000008); - 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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.DeleteClusterRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.DeleteClusterRequest) - private static final com.google.container.v1.DeleteClusterRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.DeleteClusterRequest(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.DeleteClusterRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java deleted file mode 100644 index 8b652f18541f..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface DeleteClusterRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.DeleteClusterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2999 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2999 - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3005 - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3005 - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster to delete.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3009 - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster to delete.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3009 - * @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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java deleted file mode 100644 index 98a57a511802..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java +++ /dev/null @@ -1,1499 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * DeleteNodePoolRequest deletes a node pool for a cluster.
- * 
- * - * Protobuf type {@code google.container.v1.DeleteNodePoolRequest} - */ -public final class DeleteNodePoolRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DeleteNodePoolRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DeleteNodePoolRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.DeleteNodePoolRequest.class, - com.google.container.v1.DeleteNodePoolRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3201 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3201 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object zone_ = ""; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3207 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3207 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object clusterId_ = ""; - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3211 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3211 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object nodePoolId_ = ""; - /** - * - * - *
-   * Deprecated. The name of the node pool to delete.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3215 - * @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; - } - } - /** - * - * - *
-   * 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]; - * - * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3215 - * @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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.DeleteNodePoolRequest)) { - return super.equals(obj); - } - com.google.container.v1.DeleteNodePoolRequest other = - (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.DeleteNodePoolRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.DeleteNodePoolRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.DeleteNodePoolRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.DeleteNodePoolRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.DeleteNodePoolRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.DeleteNodePoolRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.DeleteNodePoolRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.DeleteNodePoolRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.DeleteNodePoolRequest) - com.google.container.v1.DeleteNodePoolRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DeleteNodePoolRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DeleteNodePoolRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.DeleteNodePoolRequest.class, - com.google.container.v1.DeleteNodePoolRequest.Builder.class); - } - - // Construct using com.google.container.v1.DeleteNodePoolRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - nodePoolId_ = ""; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DeleteNodePoolRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.DeleteNodePoolRequest getDefaultInstanceForType() { - return com.google.container.v1.DeleteNodePoolRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.DeleteNodePoolRequest build() { - com.google.container.v1.DeleteNodePoolRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.DeleteNodePoolRequest buildPartial() { - com.google.container.v1.DeleteNodePoolRequest result = - new com.google.container.v1.DeleteNodePoolRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.DeleteNodePoolRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.nodePoolId_ = nodePoolId_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.DeleteNodePoolRequest) { - return mergeFrom((com.google.container.v1.DeleteNodePoolRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.DeleteNodePoolRequest other) { - if (other == com.google.container.v1.DeleteNodePoolRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getNodePoolId().isEmpty()) { - nodePoolId_ = other.nodePoolId_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000010; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - nodePoolId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 50: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3201 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3201 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3201 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3201 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3201 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3207 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3207 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3207 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3207 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3207 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3211 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3211 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3211 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3211 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3211 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object nodePoolId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the node pool to delete.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3215 - * @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; - } - } - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3215 - * @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; - } - } - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3215 - * @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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the node pool to delete.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3215 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearNodePoolId() { - nodePoolId_ = getDefaultInstance().getNodePoolId(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the node pool to delete.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3215 - * @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; - bitField0_ |= 0x00000008; - 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; - bitField0_ |= 0x00000010; - 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(); - bitField0_ = (bitField0_ & ~0x00000010); - 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; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.DeleteNodePoolRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.DeleteNodePoolRequest) - private static final com.google.container.v1.DeleteNodePoolRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.DeleteNodePoolRequest(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.DeleteNodePoolRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java deleted file mode 100644 index 65feec638057..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java +++ /dev/null @@ -1,193 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface DeleteNodePoolRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.DeleteNodePoolRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3201 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3201 - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3207 - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3207 - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3211 - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3211 - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getClusterIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the node pool to delete.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3215 - * @return The nodePoolId. - */ - @java.lang.Deprecated - java.lang.String getNodePoolId(); - /** - * - * - *
-   * Deprecated. The name of the node pool to delete.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3215 - * @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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DnsCacheConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DnsCacheConfig.java deleted file mode 100644 index 87e11c4cb327..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DnsCacheConfig.java +++ /dev/null @@ -1,533 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Configuration for NodeLocal DNSCache
- * 
- * - * Protobuf type {@code google.container.v1.DnsCacheConfig} - */ -public final class DnsCacheConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.DnsCacheConfig) - DnsCacheConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use DnsCacheConfig.newBuilder() to construct. - private DnsCacheConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DnsCacheConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DnsCacheConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DnsCacheConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DnsCacheConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.DnsCacheConfig.class, - com.google.container.v1.DnsCacheConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.DnsCacheConfig)) { - return super.equals(obj); - } - com.google.container.v1.DnsCacheConfig other = (com.google.container.v1.DnsCacheConfig) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.DnsCacheConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.DnsCacheConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.DnsCacheConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.DnsCacheConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.DnsCacheConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.DnsCacheConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.DnsCacheConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.DnsCacheConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.DnsCacheConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.DnsCacheConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.DnsCacheConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.DnsCacheConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.DnsCacheConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Configuration for NodeLocal DNSCache
-   * 
- * - * Protobuf type {@code google.container.v1.DnsCacheConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.DnsCacheConfig) - com.google.container.v1.DnsCacheConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DnsCacheConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DnsCacheConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.DnsCacheConfig.class, - com.google.container.v1.DnsCacheConfig.Builder.class); - } - - // Construct using com.google.container.v1.DnsCacheConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enabled_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DnsCacheConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.DnsCacheConfig getDefaultInstanceForType() { - return com.google.container.v1.DnsCacheConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.DnsCacheConfig build() { - com.google.container.v1.DnsCacheConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.DnsCacheConfig buildPartial() { - com.google.container.v1.DnsCacheConfig result = - new com.google.container.v1.DnsCacheConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.DnsCacheConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.DnsCacheConfig) { - return mergeFrom((com.google.container.v1.DnsCacheConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.DnsCacheConfig other) { - if (other == com.google.container.v1.DnsCacheConfig.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether NodeLocal DNSCache is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - enabled_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.DnsCacheConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.DnsCacheConfig) - private static final com.google.container.v1.DnsCacheConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.DnsCacheConfig(); - } - - public static com.google.container.v1.DnsCacheConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DnsCacheConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.DnsCacheConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DnsCacheConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DnsCacheConfigOrBuilder.java deleted file mode 100644 index 4e8aec9e1e31..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DnsCacheConfigOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface DnsCacheConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.DnsCacheConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether NodeLocal DNSCache is enabled for this cluster.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EnterpriseConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EnterpriseConfig.java deleted file mode 100644 index 037569b5c01c..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EnterpriseConfig.java +++ /dev/null @@ -1,775 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * EnterpriseConfig is the cluster enterprise configuration.
- * 
- * - * Protobuf type {@code google.container.v1.EnterpriseConfig} - */ -public final class EnterpriseConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.EnterpriseConfig) - EnterpriseConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use EnterpriseConfig.newBuilder() to construct. - private EnterpriseConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private EnterpriseConfig() { - clusterTier_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new EnterpriseConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_EnterpriseConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_EnterpriseConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.EnterpriseConfig.class, - com.google.container.v1.EnterpriseConfig.Builder.class); - } - - /** - * - * - *
-   * Premium tiers for GKE Cluster.
-   * 
- * - * Protobuf enum {@code google.container.v1.EnterpriseConfig.ClusterTier} - */ - public enum ClusterTier implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * CLUSTER_TIER_UNSPECIFIED is when cluster_tier is not set.
-     * 
- * - * CLUSTER_TIER_UNSPECIFIED = 0; - */ - CLUSTER_TIER_UNSPECIFIED(0), - /** - * - * - *
-     * STANDARD indicates a standard GKE cluster.
-     * 
- * - * STANDARD = 1; - */ - STANDARD(1), - /** - * - * - *
-     * ENTERPRISE indicates a GKE Enterprise cluster.
-     * 
- * - * ENTERPRISE = 2; - */ - ENTERPRISE(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * CLUSTER_TIER_UNSPECIFIED is when cluster_tier is not set.
-     * 
- * - * CLUSTER_TIER_UNSPECIFIED = 0; - */ - public static final int CLUSTER_TIER_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * STANDARD indicates a standard GKE cluster.
-     * 
- * - * STANDARD = 1; - */ - public static final int STANDARD_VALUE = 1; - /** - * - * - *
-     * ENTERPRISE indicates a GKE Enterprise cluster.
-     * 
- * - * ENTERPRISE = 2; - */ - public static final int ENTERPRISE_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 ClusterTier 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 ClusterTier forNumber(int value) { - switch (value) { - case 0: - return CLUSTER_TIER_UNSPECIFIED; - case 1: - return STANDARD; - case 2: - return ENTERPRISE; - 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 ClusterTier findValueByNumber(int number) { - return ClusterTier.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.EnterpriseConfig.getDescriptor().getEnumTypes().get(0); - } - - private static final ClusterTier[] VALUES = values(); - - public static ClusterTier 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 ClusterTier(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.EnterpriseConfig.ClusterTier) - } - - public static final int CLUSTER_TIER_FIELD_NUMBER = 1; - private int clusterTier_ = 0; - /** - * - * - *
-   * Output only. [Output only] cluster_tier specifies the premium tier of the
-   * cluster.
-   * 
- * - * - * .google.container.v1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for clusterTier. - */ - @java.lang.Override - public int getClusterTierValue() { - return clusterTier_; - } - /** - * - * - *
-   * Output only. [Output only] cluster_tier specifies the premium tier of the
-   * cluster.
-   * 
- * - * - * .google.container.v1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The clusterTier. - */ - @java.lang.Override - public com.google.container.v1.EnterpriseConfig.ClusterTier getClusterTier() { - com.google.container.v1.EnterpriseConfig.ClusterTier result = - com.google.container.v1.EnterpriseConfig.ClusterTier.forNumber(clusterTier_); - return result == null - ? com.google.container.v1.EnterpriseConfig.ClusterTier.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 (clusterTier_ - != com.google.container.v1.EnterpriseConfig.ClusterTier.CLUSTER_TIER_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, clusterTier_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (clusterTier_ - != com.google.container.v1.EnterpriseConfig.ClusterTier.CLUSTER_TIER_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, clusterTier_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.EnterpriseConfig)) { - return super.equals(obj); - } - com.google.container.v1.EnterpriseConfig other = (com.google.container.v1.EnterpriseConfig) obj; - - if (clusterTier_ != other.clusterTier_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CLUSTER_TIER_FIELD_NUMBER; - hash = (53 * hash) + clusterTier_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.EnterpriseConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.EnterpriseConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.EnterpriseConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.EnterpriseConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.EnterpriseConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.EnterpriseConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.EnterpriseConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.EnterpriseConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.EnterpriseConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.EnterpriseConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.EnterpriseConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.EnterpriseConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.EnterpriseConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * EnterpriseConfig is the cluster enterprise configuration.
-   * 
- * - * Protobuf type {@code google.container.v1.EnterpriseConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.EnterpriseConfig) - com.google.container.v1.EnterpriseConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_EnterpriseConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_EnterpriseConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.EnterpriseConfig.class, - com.google.container.v1.EnterpriseConfig.Builder.class); - } - - // Construct using com.google.container.v1.EnterpriseConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - clusterTier_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_EnterpriseConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.EnterpriseConfig getDefaultInstanceForType() { - return com.google.container.v1.EnterpriseConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.EnterpriseConfig build() { - com.google.container.v1.EnterpriseConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.EnterpriseConfig buildPartial() { - com.google.container.v1.EnterpriseConfig result = - new com.google.container.v1.EnterpriseConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.EnterpriseConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.clusterTier_ = clusterTier_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.EnterpriseConfig) { - return mergeFrom((com.google.container.v1.EnterpriseConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.EnterpriseConfig other) { - if (other == com.google.container.v1.EnterpriseConfig.getDefaultInstance()) return this; - if (other.clusterTier_ != 0) { - setClusterTierValue(other.getClusterTierValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - clusterTier_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int clusterTier_ = 0; - /** - * - * - *
-     * Output only. [Output only] cluster_tier specifies the premium tier of the
-     * cluster.
-     * 
- * - * - * .google.container.v1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for clusterTier. - */ - @java.lang.Override - public int getClusterTierValue() { - return clusterTier_; - } - /** - * - * - *
-     * Output only. [Output only] cluster_tier specifies the premium tier of the
-     * cluster.
-     * 
- * - * - * .google.container.v1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for clusterTier to set. - * @return This builder for chaining. - */ - public Builder setClusterTierValue(int value) { - clusterTier_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. [Output only] cluster_tier specifies the premium tier of the
-     * cluster.
-     * 
- * - * - * .google.container.v1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The clusterTier. - */ - @java.lang.Override - public com.google.container.v1.EnterpriseConfig.ClusterTier getClusterTier() { - com.google.container.v1.EnterpriseConfig.ClusterTier result = - com.google.container.v1.EnterpriseConfig.ClusterTier.forNumber(clusterTier_); - return result == null - ? com.google.container.v1.EnterpriseConfig.ClusterTier.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Output only. [Output only] cluster_tier specifies the premium tier of the
-     * cluster.
-     * 
- * - * - * .google.container.v1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The clusterTier to set. - * @return This builder for chaining. - */ - public Builder setClusterTier(com.google.container.v1.EnterpriseConfig.ClusterTier value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - clusterTier_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. [Output only] cluster_tier specifies the premium tier of the
-     * cluster.
-     * 
- * - * - * .google.container.v1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearClusterTier() { - bitField0_ = (bitField0_ & ~0x00000001); - clusterTier_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.EnterpriseConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.EnterpriseConfig) - private static final com.google.container.v1.EnterpriseConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.EnterpriseConfig(); - } - - public static com.google.container.v1.EnterpriseConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnterpriseConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.EnterpriseConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EnterpriseConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EnterpriseConfigOrBuilder.java deleted file mode 100644 index 6356bfe9e545..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EnterpriseConfigOrBuilder.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface EnterpriseConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.EnterpriseConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. [Output only] cluster_tier specifies the premium tier of the
-   * cluster.
-   * 
- * - * - * .google.container.v1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for clusterTier. - */ - int getClusterTierValue(); - /** - * - * - *
-   * Output only. [Output only] cluster_tier specifies the premium tier of the
-   * cluster.
-   * 
- * - * - * .google.container.v1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The clusterTier. - */ - com.google.container.v1.EnterpriseConfig.ClusterTier getClusterTier(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EphemeralStorageLocalSsdConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EphemeralStorageLocalSsdConfig.java deleted file mode 100644 index 86d44dfbe4c4..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EphemeralStorageLocalSsdConfig.java +++ /dev/null @@ -1,607 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * EphemeralStorageLocalSsdConfig contains configuration for the node ephemeral
- * storage using Local SSDs.
- * 
- * - * Protobuf type {@code google.container.v1.EphemeralStorageLocalSsdConfig} - */ -public final class EphemeralStorageLocalSsdConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.EphemeralStorageLocalSsdConfig) - EphemeralStorageLocalSsdConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use EphemeralStorageLocalSsdConfig.newBuilder() to construct. - private EphemeralStorageLocalSsdConfig( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private EphemeralStorageLocalSsdConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new EphemeralStorageLocalSsdConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_EphemeralStorageLocalSsdConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_EphemeralStorageLocalSsdConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.EphemeralStorageLocalSsdConfig.class, - com.google.container.v1.EphemeralStorageLocalSsdConfig.Builder.class); - } - - public static final int LOCAL_SSD_COUNT_FIELD_NUMBER = 1; - private int localSsdCount_ = 0; - /** - * - * - *
-   * Number of local SSDs to use to back ephemeral storage. Uses NVMe
-   * interfaces.
-   *
-   * A zero (or unset) value has different meanings depending on machine type
-   * being used:
-   * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
-   * zero (or unset) means to disable using local SSDs as ephemeral storage. The
-   * limit for this value is dependent upon the maximum number of disk
-   * available on a machine per zone. See:
-   * https://cloud.google.com/compute/docs/disks/local-ssd
-   * for more information.
-   * 2. For Gen3 machines which dictate a specific number of local ssds, zero
-   * (or unset) means to use the default number of local ssds that goes with
-   * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
-   * ssds would be provisioned. For c3-standard-8 (which doesn't support local
-   * ssds), 0 will be provisioned. See
-   * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
-   * for more info.
-   * 
- * - * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.EphemeralStorageLocalSsdConfig)) { - return super.equals(obj); - } - com.google.container.v1.EphemeralStorageLocalSsdConfig other = - (com.google.container.v1.EphemeralStorageLocalSsdConfig) obj; - - if (getLocalSsdCount() != other.getLocalSsdCount()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.EphemeralStorageLocalSsdConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.EphemeralStorageLocalSsdConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.EphemeralStorageLocalSsdConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.EphemeralStorageLocalSsdConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.EphemeralStorageLocalSsdConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.EphemeralStorageLocalSsdConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.EphemeralStorageLocalSsdConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.EphemeralStorageLocalSsdConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.EphemeralStorageLocalSsdConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.EphemeralStorageLocalSsdConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.EphemeralStorageLocalSsdConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.EphemeralStorageLocalSsdConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.container.v1.EphemeralStorageLocalSsdConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * EphemeralStorageLocalSsdConfig contains configuration for the node ephemeral
-   * storage using Local SSDs.
-   * 
- * - * Protobuf type {@code google.container.v1.EphemeralStorageLocalSsdConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.EphemeralStorageLocalSsdConfig) - com.google.container.v1.EphemeralStorageLocalSsdConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_EphemeralStorageLocalSsdConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_EphemeralStorageLocalSsdConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.EphemeralStorageLocalSsdConfig.class, - com.google.container.v1.EphemeralStorageLocalSsdConfig.Builder.class); - } - - // Construct using com.google.container.v1.EphemeralStorageLocalSsdConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - localSsdCount_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_EphemeralStorageLocalSsdConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.EphemeralStorageLocalSsdConfig getDefaultInstanceForType() { - return com.google.container.v1.EphemeralStorageLocalSsdConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.EphemeralStorageLocalSsdConfig build() { - com.google.container.v1.EphemeralStorageLocalSsdConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.EphemeralStorageLocalSsdConfig buildPartial() { - com.google.container.v1.EphemeralStorageLocalSsdConfig result = - new com.google.container.v1.EphemeralStorageLocalSsdConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.EphemeralStorageLocalSsdConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.localSsdCount_ = localSsdCount_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.EphemeralStorageLocalSsdConfig) { - return mergeFrom((com.google.container.v1.EphemeralStorageLocalSsdConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.EphemeralStorageLocalSsdConfig other) { - if (other == com.google.container.v1.EphemeralStorageLocalSsdConfig.getDefaultInstance()) - return this; - if (other.getLocalSsdCount() != 0) { - setLocalSsdCount(other.getLocalSsdCount()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - localSsdCount_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int localSsdCount_; - /** - * - * - *
-     * Number of local SSDs to use to back ephemeral storage. Uses NVMe
-     * interfaces.
-     *
-     * A zero (or unset) value has different meanings depending on machine type
-     * being used:
-     * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
-     * zero (or unset) means to disable using local SSDs as ephemeral storage. The
-     * limit for this value is dependent upon the maximum number of disk
-     * available on a machine per zone. See:
-     * https://cloud.google.com/compute/docs/disks/local-ssd
-     * for more information.
-     * 2. For Gen3 machines which dictate a specific number of local ssds, zero
-     * (or unset) means to use the default number of local ssds that goes with
-     * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
-     * ssds would be provisioned. For c3-standard-8 (which doesn't support local
-     * ssds), 0 will be provisioned. See
-     * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
-     * for more info.
-     * 
- * - * 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.
-     *
-     * A zero (or unset) value has different meanings depending on machine type
-     * being used:
-     * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
-     * zero (or unset) means to disable using local SSDs as ephemeral storage. The
-     * limit for this value is dependent upon the maximum number of disk
-     * available on a machine per zone. See:
-     * https://cloud.google.com/compute/docs/disks/local-ssd
-     * for more information.
-     * 2. For Gen3 machines which dictate a specific number of local ssds, zero
-     * (or unset) means to use the default number of local ssds that goes with
-     * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
-     * ssds would be provisioned. For c3-standard-8 (which doesn't support local
-     * ssds), 0 will be provisioned. See
-     * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
-     * for more info.
-     * 
- * - * int32 local_ssd_count = 1; - * - * @param value The localSsdCount to set. - * @return This builder for chaining. - */ - public Builder setLocalSsdCount(int value) { - - localSsdCount_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Number of local SSDs to use to back ephemeral storage. Uses NVMe
-     * interfaces.
-     *
-     * A zero (or unset) value has different meanings depending on machine type
-     * being used:
-     * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
-     * zero (or unset) means to disable using local SSDs as ephemeral storage. The
-     * limit for this value is dependent upon the maximum number of disk
-     * available on a machine per zone. See:
-     * https://cloud.google.com/compute/docs/disks/local-ssd
-     * for more information.
-     * 2. For Gen3 machines which dictate a specific number of local ssds, zero
-     * (or unset) means to use the default number of local ssds that goes with
-     * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
-     * ssds would be provisioned. For c3-standard-8 (which doesn't support local
-     * ssds), 0 will be provisioned. See
-     * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
-     * for more info.
-     * 
- * - * int32 local_ssd_count = 1; - * - * @return This builder for chaining. - */ - public Builder clearLocalSsdCount() { - bitField0_ = (bitField0_ & ~0x00000001); - 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.v1.EphemeralStorageLocalSsdConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.EphemeralStorageLocalSsdConfig) - private static final com.google.container.v1.EphemeralStorageLocalSsdConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.EphemeralStorageLocalSsdConfig(); - } - - public static com.google.container.v1.EphemeralStorageLocalSsdConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EphemeralStorageLocalSsdConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.EphemeralStorageLocalSsdConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EphemeralStorageLocalSsdConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EphemeralStorageLocalSsdConfigOrBuilder.java deleted file mode 100644 index ec442cbb4301..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EphemeralStorageLocalSsdConfigOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface EphemeralStorageLocalSsdConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.EphemeralStorageLocalSsdConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Number of local SSDs to use to back ephemeral storage. Uses NVMe
-   * interfaces.
-   *
-   * A zero (or unset) value has different meanings depending on machine type
-   * being used:
-   * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
-   * zero (or unset) means to disable using local SSDs as ephemeral storage. The
-   * limit for this value is dependent upon the maximum number of disk
-   * available on a machine per zone. See:
-   * https://cloud.google.com/compute/docs/disks/local-ssd
-   * for more information.
-   * 2. For Gen3 machines which dictate a specific number of local ssds, zero
-   * (or unset) means to use the default number of local ssds that goes with
-   * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
-   * ssds would be provisioned. For c3-standard-8 (which doesn't support local
-   * ssds), 0 will be provisioned. See
-   * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
-   * for more info.
-   * 
- * - * int32 local_ssd_count = 1; - * - * @return The localSsdCount. - */ - int getLocalSsdCount(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/FastSocket.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/FastSocket.java deleted file mode 100644 index 71e7916657f7..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/FastSocket.java +++ /dev/null @@ -1,531 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Configuration of Fast Socket feature.
- * 
- * - * Protobuf type {@code google.container.v1.FastSocket} - */ -public final class FastSocket extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.FastSocket) - FastSocketOrBuilder { - private static final long serialVersionUID = 0L; - // Use FastSocket.newBuilder() to construct. - private FastSocket(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private FastSocket() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new FastSocket(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_FastSocket_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_FastSocket_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.FastSocket.class, - com.google.container.v1.FastSocket.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * Whether Fast Socket features are enabled in the node pool.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.FastSocket)) { - return super.equals(obj); - } - com.google.container.v1.FastSocket other = (com.google.container.v1.FastSocket) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.FastSocket parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.FastSocket parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.FastSocket parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.FastSocket parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.FastSocket parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.FastSocket parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.FastSocket parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.FastSocket parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.FastSocket parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.FastSocket parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.FastSocket parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.FastSocket parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.FastSocket prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 Fast Socket feature.
-   * 
- * - * Protobuf type {@code google.container.v1.FastSocket} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.FastSocket) - com.google.container.v1.FastSocketOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_FastSocket_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_FastSocket_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.FastSocket.class, - com.google.container.v1.FastSocket.Builder.class); - } - - // Construct using com.google.container.v1.FastSocket.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enabled_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_FastSocket_descriptor; - } - - @java.lang.Override - public com.google.container.v1.FastSocket getDefaultInstanceForType() { - return com.google.container.v1.FastSocket.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.FastSocket build() { - com.google.container.v1.FastSocket result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.FastSocket buildPartial() { - com.google.container.v1.FastSocket result = new com.google.container.v1.FastSocket(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.FastSocket result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.FastSocket) { - return mergeFrom((com.google.container.v1.FastSocket) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.FastSocket other) { - if (other == com.google.container.v1.FastSocket.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean enabled_; - /** - * - * - *
-     * Whether Fast Socket features are enabled in the node pool.
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Whether Fast Socket features are enabled in the node pool.
-     * 
- * - * bool enabled = 1; - * - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether Fast Socket features are enabled in the node pool.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - enabled_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.FastSocket) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.FastSocket) - private static final com.google.container.v1.FastSocket DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.FastSocket(); - } - - public static com.google.container.v1.FastSocket getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FastSocket parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.FastSocket getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/FastSocketOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/FastSocketOrBuilder.java deleted file mode 100644 index 47ae73658543..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/FastSocketOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface FastSocketOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.FastSocket) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether Fast Socket features are enabled in the node pool.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Fleet.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Fleet.java deleted file mode 100644 index 860558ab01d2..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Fleet.java +++ /dev/null @@ -1,926 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Fleet is the fleet configuration for the cluster.
- * 
- * - * Protobuf type {@code google.container.v1.Fleet} - */ -public final class Fleet extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.Fleet) - FleetOrBuilder { - private static final long serialVersionUID = 0L; - // Use Fleet.newBuilder() to construct. - private Fleet(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Fleet() { - project_ = ""; - membership_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Fleet(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_Fleet_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_Fleet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.Fleet.class, com.google.container.v1.Fleet.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object project_ = ""; - /** - * - * - *
-   * The Fleet host project(project ID or project number) where this cluster
-   * will be registered to. This field cannot be changed after the cluster has
-   * been registered.
-   * 
- * - * string project = 1; - * - * @return The project. - */ - @java.lang.Override - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } - } - /** - * - * - *
-   * The Fleet host project(project ID or project number) where this cluster
-   * will be registered to. This field cannot be changed after the cluster has
-   * been registered.
-   * 
- * - * string project = 1; - * - * @return The bytes for project. - */ - @java.lang.Override - public com.google.protobuf.ByteString getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MEMBERSHIP_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object membership_ = ""; - /** - * - * - *
-   * [Output only] The full resource name of the registered fleet membership of
-   * the cluster, in the format
-   * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
-   * 
- * - * string membership = 2; - * - * @return The membership. - */ - @java.lang.Override - public java.lang.String getMembership() { - java.lang.Object ref = membership_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - membership_ = s; - return s; - } - } - /** - * - * - *
-   * [Output only] The full resource name of the registered fleet membership of
-   * the cluster, in the format
-   * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
-   * 
- * - * string membership = 2; - * - * @return The bytes for membership. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMembershipBytes() { - java.lang.Object ref = membership_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - membership_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PRE_REGISTERED_FIELD_NUMBER = 3; - private boolean preRegistered_ = false; - /** - * - * - *
-   * [Output only] Whether the cluster has been registered through the fleet
-   * API.
-   * 
- * - * bool pre_registered = 3; - * - * @return The preRegistered. - */ - @java.lang.Override - public boolean getPreRegistered() { - return preRegistered_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(membership_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, membership_); - } - if (preRegistered_ != false) { - output.writeBool(3, preRegistered_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(membership_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, membership_); - } - if (preRegistered_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, preRegistered_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.Fleet)) { - return super.equals(obj); - } - com.google.container.v1.Fleet other = (com.google.container.v1.Fleet) obj; - - if (!getProject().equals(other.getProject())) return false; - if (!getMembership().equals(other.getMembership())) return false; - if (getPreRegistered() != other.getPreRegistered()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + MEMBERSHIP_FIELD_NUMBER; - hash = (53 * hash) + getMembership().hashCode(); - hash = (37 * hash) + PRE_REGISTERED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreRegistered()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.Fleet parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.Fleet parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.Fleet parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.Fleet parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.Fleet parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.Fleet parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.Fleet parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.Fleet parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.Fleet parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.Fleet parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.Fleet parseFrom(com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.Fleet parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.Fleet prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Fleet is the fleet configuration for the cluster.
-   * 
- * - * Protobuf type {@code google.container.v1.Fleet} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.Fleet) - com.google.container.v1.FleetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_Fleet_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_Fleet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.Fleet.class, com.google.container.v1.Fleet.Builder.class); - } - - // Construct using com.google.container.v1.Fleet.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - project_ = ""; - membership_ = ""; - preRegistered_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_Fleet_descriptor; - } - - @java.lang.Override - public com.google.container.v1.Fleet getDefaultInstanceForType() { - return com.google.container.v1.Fleet.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.Fleet build() { - com.google.container.v1.Fleet result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.Fleet buildPartial() { - com.google.container.v1.Fleet result = new com.google.container.v1.Fleet(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.Fleet result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.project_ = project_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.membership_ = membership_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.preRegistered_ = preRegistered_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.Fleet) { - return mergeFrom((com.google.container.v1.Fleet) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.Fleet other) { - if (other == com.google.container.v1.Fleet.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getMembership().isEmpty()) { - membership_ = other.membership_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getPreRegistered() != false) { - setPreRegistered(other.getPreRegistered()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - project_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - membership_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - preRegistered_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object project_ = ""; - /** - * - * - *
-     * The Fleet host project(project ID or project number) where this cluster
-     * will be registered to. This field cannot be changed after the cluster has
-     * been registered.
-     * 
- * - * string project = 1; - * - * @return The project. - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The Fleet host project(project ID or project number) where this cluster
-     * will be registered to. This field cannot be changed after the cluster has
-     * been registered.
-     * 
- * - * string project = 1; - * - * @return The bytes for project. - */ - public com.google.protobuf.ByteString getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The Fleet host project(project ID or project number) where this cluster
-     * will be registered to. This field cannot be changed after the cluster has
-     * been registered.
-     * 
- * - * string project = 1; - * - * @param value The project to set. - * @return This builder for chaining. - */ - public Builder setProject(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - project_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The Fleet host project(project ID or project number) where this cluster
-     * will be registered to. This field cannot be changed after the cluster has
-     * been registered.
-     * 
- * - * string project = 1; - * - * @return This builder for chaining. - */ - public Builder clearProject() { - project_ = getDefaultInstance().getProject(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * The Fleet host project(project ID or project number) where this cluster
-     * will be registered to. This field cannot be changed after the cluster has
-     * been registered.
-     * 
- * - * string project = 1; - * - * @param value The bytes for project to set. - * @return This builder for chaining. - */ - public Builder setProjectBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - project_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object membership_ = ""; - /** - * - * - *
-     * [Output only] The full resource name of the registered fleet membership of
-     * the cluster, in the format
-     * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
-     * 
- * - * string membership = 2; - * - * @return The membership. - */ - public java.lang.String getMembership() { - java.lang.Object ref = membership_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - membership_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * [Output only] The full resource name of the registered fleet membership of
-     * the cluster, in the format
-     * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
-     * 
- * - * string membership = 2; - * - * @return The bytes for membership. - */ - public com.google.protobuf.ByteString getMembershipBytes() { - java.lang.Object ref = membership_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - membership_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * [Output only] The full resource name of the registered fleet membership of
-     * the cluster, in the format
-     * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
-     * 
- * - * string membership = 2; - * - * @param value The membership to set. - * @return This builder for chaining. - */ - public Builder setMembership(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - membership_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] The full resource name of the registered fleet membership of
-     * the cluster, in the format
-     * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
-     * 
- * - * string membership = 2; - * - * @return This builder for chaining. - */ - public Builder clearMembership() { - membership_ = getDefaultInstance().getMembership(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] The full resource name of the registered fleet membership of
-     * the cluster, in the format
-     * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
-     * 
- * - * string membership = 2; - * - * @param value The bytes for membership to set. - * @return This builder for chaining. - */ - public Builder setMembershipBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - membership_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private boolean preRegistered_; - /** - * - * - *
-     * [Output only] Whether the cluster has been registered through the fleet
-     * API.
-     * 
- * - * bool pre_registered = 3; - * - * @return The preRegistered. - */ - @java.lang.Override - public boolean getPreRegistered() { - return preRegistered_; - } - /** - * - * - *
-     * [Output only] Whether the cluster has been registered through the fleet
-     * API.
-     * 
- * - * bool pre_registered = 3; - * - * @param value The preRegistered to set. - * @return This builder for chaining. - */ - public Builder setPreRegistered(boolean value) { - - preRegistered_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] Whether the cluster has been registered through the fleet
-     * API.
-     * 
- * - * bool pre_registered = 3; - * - * @return This builder for chaining. - */ - public Builder clearPreRegistered() { - bitField0_ = (bitField0_ & ~0x00000004); - preRegistered_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.Fleet) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.Fleet) - private static final com.google.container.v1.Fleet DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.Fleet(); - } - - public static com.google.container.v1.Fleet getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Fleet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.Fleet getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/FleetOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/FleetOrBuilder.java deleted file mode 100644 index 8dec166e6c7b..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/FleetOrBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface FleetOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.Fleet) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The Fleet host project(project ID or project number) where this cluster
-   * will be registered to. This field cannot be changed after the cluster has
-   * been registered.
-   * 
- * - * string project = 1; - * - * @return The project. - */ - java.lang.String getProject(); - /** - * - * - *
-   * The Fleet host project(project ID or project number) where this cluster
-   * will be registered to. This field cannot be changed after the cluster has
-   * been registered.
-   * 
- * - * string project = 1; - * - * @return The bytes for project. - */ - com.google.protobuf.ByteString getProjectBytes(); - - /** - * - * - *
-   * [Output only] The full resource name of the registered fleet membership of
-   * the cluster, in the format
-   * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
-   * 
- * - * string membership = 2; - * - * @return The membership. - */ - java.lang.String getMembership(); - /** - * - * - *
-   * [Output only] The full resource name of the registered fleet membership of
-   * the cluster, in the format
-   * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
-   * 
- * - * string membership = 2; - * - * @return The bytes for membership. - */ - com.google.protobuf.ByteString getMembershipBytes(); - - /** - * - * - *
-   * [Output only] Whether the cluster has been registered through the fleet
-   * API.
-   * 
- * - * bool pre_registered = 3; - * - * @return The preRegistered. - */ - boolean getPreRegistered(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GPUDriverInstallationConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GPUDriverInstallationConfig.java deleted file mode 100644 index 11df5424b074..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GPUDriverInstallationConfig.java +++ /dev/null @@ -1,842 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * GPUDriverInstallationConfig specifies the version of GPU driver to be auto
- * installed.
- * 
- * - * Protobuf type {@code google.container.v1.GPUDriverInstallationConfig} - */ -public final class GPUDriverInstallationConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.GPUDriverInstallationConfig) - GPUDriverInstallationConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use GPUDriverInstallationConfig.newBuilder() to construct. - private GPUDriverInstallationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GPUDriverInstallationConfig() { - gpuDriverVersion_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GPUDriverInstallationConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GPUDriverInstallationConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GPUDriverInstallationConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GPUDriverInstallationConfig.class, - com.google.container.v1.GPUDriverInstallationConfig.Builder.class); - } - - /** - * - * - *
-   * The GPU driver version to install.
-   * 
- * - * Protobuf enum {@code google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion} - */ - public enum GPUDriverVersion implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value is to not install any GPU driver.
-     * 
- * - * GPU_DRIVER_VERSION_UNSPECIFIED = 0; - */ - GPU_DRIVER_VERSION_UNSPECIFIED(0), - /** - * - * - *
-     * Disable GPU driver auto installation and needs manual installation
-     * 
- * - * INSTALLATION_DISABLED = 1; - */ - INSTALLATION_DISABLED(1), - /** - * - * - *
-     * "Default" GPU driver in COS and Ubuntu.
-     * 
- * - * DEFAULT = 2; - */ - DEFAULT(2), - /** - * - * - *
-     * "Latest" GPU driver in COS.
-     * 
- * - * LATEST = 3; - */ - LATEST(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value is to not install any GPU driver.
-     * 
- * - * GPU_DRIVER_VERSION_UNSPECIFIED = 0; - */ - public static final int GPU_DRIVER_VERSION_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Disable GPU driver auto installation and needs manual installation
-     * 
- * - * INSTALLATION_DISABLED = 1; - */ - public static final int INSTALLATION_DISABLED_VALUE = 1; - /** - * - * - *
-     * "Default" GPU driver in COS and Ubuntu.
-     * 
- * - * DEFAULT = 2; - */ - public static final int DEFAULT_VALUE = 2; - /** - * - * - *
-     * "Latest" GPU driver in COS.
-     * 
- * - * LATEST = 3; - */ - public static final int LATEST_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 GPUDriverVersion 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 GPUDriverVersion forNumber(int value) { - switch (value) { - case 0: - return GPU_DRIVER_VERSION_UNSPECIFIED; - case 1: - return INSTALLATION_DISABLED; - case 2: - return DEFAULT; - case 3: - return LATEST; - 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 GPUDriverVersion findValueByNumber(int number) { - return GPUDriverVersion.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.GPUDriverInstallationConfig.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final GPUDriverVersion[] VALUES = values(); - - public static GPUDriverVersion 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 GPUDriverVersion(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion) - } - - private int bitField0_; - public static final int GPU_DRIVER_VERSION_FIELD_NUMBER = 1; - private int gpuDriverVersion_ = 0; - /** - * - * - *
-   * Mode for how the GPU driver is installed.
-   * 
- * - * - * optional .google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; - * - * - * @return Whether the gpuDriverVersion field is set. - */ - @java.lang.Override - public boolean hasGpuDriverVersion() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Mode for how the GPU driver is installed.
-   * 
- * - * - * optional .google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; - * - * - * @return The enum numeric value on the wire for gpuDriverVersion. - */ - @java.lang.Override - public int getGpuDriverVersionValue() { - return gpuDriverVersion_; - } - /** - * - * - *
-   * Mode for how the GPU driver is installed.
-   * 
- * - * - * optional .google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; - * - * - * @return The gpuDriverVersion. - */ - @java.lang.Override - public com.google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion - getGpuDriverVersion() { - com.google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion result = - com.google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion.forNumber( - gpuDriverVersion_); - return result == null - ? com.google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion.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 (((bitField0_ & 0x00000001) != 0)) { - output.writeEnum(1, gpuDriverVersion_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, gpuDriverVersion_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.GPUDriverInstallationConfig)) { - return super.equals(obj); - } - com.google.container.v1.GPUDriverInstallationConfig other = - (com.google.container.v1.GPUDriverInstallationConfig) obj; - - if (hasGpuDriverVersion() != other.hasGpuDriverVersion()) return false; - if (hasGpuDriverVersion()) { - if (gpuDriverVersion_ != other.gpuDriverVersion_) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasGpuDriverVersion()) { - hash = (37 * hash) + GPU_DRIVER_VERSION_FIELD_NUMBER; - hash = (53 * hash) + gpuDriverVersion_; - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.GPUDriverInstallationConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GPUDriverInstallationConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GPUDriverInstallationConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GPUDriverInstallationConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GPUDriverInstallationConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GPUDriverInstallationConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GPUDriverInstallationConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.GPUDriverInstallationConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.GPUDriverInstallationConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.GPUDriverInstallationConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.GPUDriverInstallationConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.GPUDriverInstallationConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.GPUDriverInstallationConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * GPUDriverInstallationConfig specifies the version of GPU driver to be auto
-   * installed.
-   * 
- * - * Protobuf type {@code google.container.v1.GPUDriverInstallationConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.GPUDriverInstallationConfig) - com.google.container.v1.GPUDriverInstallationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GPUDriverInstallationConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GPUDriverInstallationConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GPUDriverInstallationConfig.class, - com.google.container.v1.GPUDriverInstallationConfig.Builder.class); - } - - // Construct using com.google.container.v1.GPUDriverInstallationConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - gpuDriverVersion_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GPUDriverInstallationConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.GPUDriverInstallationConfig getDefaultInstanceForType() { - return com.google.container.v1.GPUDriverInstallationConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.GPUDriverInstallationConfig build() { - com.google.container.v1.GPUDriverInstallationConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.GPUDriverInstallationConfig buildPartial() { - com.google.container.v1.GPUDriverInstallationConfig result = - new com.google.container.v1.GPUDriverInstallationConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.GPUDriverInstallationConfig result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.gpuDriverVersion_ = gpuDriverVersion_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.GPUDriverInstallationConfig) { - return mergeFrom((com.google.container.v1.GPUDriverInstallationConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.GPUDriverInstallationConfig other) { - if (other == com.google.container.v1.GPUDriverInstallationConfig.getDefaultInstance()) - return this; - if (other.hasGpuDriverVersion()) { - setGpuDriverVersion(other.getGpuDriverVersion()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - gpuDriverVersion_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int gpuDriverVersion_ = 0; - /** - * - * - *
-     * Mode for how the GPU driver is installed.
-     * 
- * - * - * optional .google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; - * - * - * @return Whether the gpuDriverVersion field is set. - */ - @java.lang.Override - public boolean hasGpuDriverVersion() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Mode for how the GPU driver is installed.
-     * 
- * - * - * optional .google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; - * - * - * @return The enum numeric value on the wire for gpuDriverVersion. - */ - @java.lang.Override - public int getGpuDriverVersionValue() { - return gpuDriverVersion_; - } - /** - * - * - *
-     * Mode for how the GPU driver is installed.
-     * 
- * - * - * optional .google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; - * - * - * @param value The enum numeric value on the wire for gpuDriverVersion to set. - * @return This builder for chaining. - */ - public Builder setGpuDriverVersionValue(int value) { - gpuDriverVersion_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Mode for how the GPU driver is installed.
-     * 
- * - * - * optional .google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; - * - * - * @return The gpuDriverVersion. - */ - @java.lang.Override - public com.google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion - getGpuDriverVersion() { - com.google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion result = - com.google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion.forNumber( - gpuDriverVersion_); - return result == null - ? com.google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Mode for how the GPU driver is installed.
-     * 
- * - * - * optional .google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; - * - * - * @param value The gpuDriverVersion to set. - * @return This builder for chaining. - */ - public Builder setGpuDriverVersion( - com.google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - gpuDriverVersion_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Mode for how the GPU driver is installed.
-     * 
- * - * - * optional .google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; - * - * - * @return This builder for chaining. - */ - public Builder clearGpuDriverVersion() { - bitField0_ = (bitField0_ & ~0x00000001); - gpuDriverVersion_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.GPUDriverInstallationConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.GPUDriverInstallationConfig) - private static final com.google.container.v1.GPUDriverInstallationConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.GPUDriverInstallationConfig(); - } - - public static com.google.container.v1.GPUDriverInstallationConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GPUDriverInstallationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.GPUDriverInstallationConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GPUDriverInstallationConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GPUDriverInstallationConfigOrBuilder.java deleted file mode 100644 index 65f6819a5760..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GPUDriverInstallationConfigOrBuilder.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface GPUDriverInstallationConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.GPUDriverInstallationConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Mode for how the GPU driver is installed.
-   * 
- * - * - * optional .google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; - * - * - * @return Whether the gpuDriverVersion field is set. - */ - boolean hasGpuDriverVersion(); - /** - * - * - *
-   * Mode for how the GPU driver is installed.
-   * 
- * - * - * optional .google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; - * - * - * @return The enum numeric value on the wire for gpuDriverVersion. - */ - int getGpuDriverVersionValue(); - /** - * - * - *
-   * Mode for how the GPU driver is installed.
-   * 
- * - * - * optional .google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; - * - * - * @return The gpuDriverVersion. - */ - com.google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion getGpuDriverVersion(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GPUSharingConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GPUSharingConfig.java deleted file mode 100644 index 64503eecea8e..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GPUSharingConfig.java +++ /dev/null @@ -1,885 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * GPUSharingConfig represents the GPU sharing configuration for Hardware
- * Accelerators.
- * 
- * - * Protobuf type {@code google.container.v1.GPUSharingConfig} - */ -public final class GPUSharingConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.GPUSharingConfig) - GPUSharingConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use GPUSharingConfig.newBuilder() to construct. - private GPUSharingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GPUSharingConfig() { - gpuSharingStrategy_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GPUSharingConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GPUSharingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GPUSharingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GPUSharingConfig.class, - com.google.container.v1.GPUSharingConfig.Builder.class); - } - - /** - * - * - *
-   * The type of GPU sharing strategy currently provided.
-   * 
- * - * Protobuf enum {@code google.container.v1.GPUSharingConfig.GPUSharingStrategy} - */ - public enum GPUSharingStrategy implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value.
-     * 
- * - * GPU_SHARING_STRATEGY_UNSPECIFIED = 0; - */ - GPU_SHARING_STRATEGY_UNSPECIFIED(0), - /** - * - * - *
-     * GPUs are time-shared between containers.
-     * 
- * - * TIME_SHARING = 1; - */ - TIME_SHARING(1), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value.
-     * 
- * - * GPU_SHARING_STRATEGY_UNSPECIFIED = 0; - */ - public static final int GPU_SHARING_STRATEGY_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * GPUs are time-shared between containers.
-     * 
- * - * TIME_SHARING = 1; - */ - public static final int TIME_SHARING_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 GPUSharingStrategy 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 GPUSharingStrategy forNumber(int value) { - switch (value) { - case 0: - return GPU_SHARING_STRATEGY_UNSPECIFIED; - case 1: - return TIME_SHARING; - 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 GPUSharingStrategy findValueByNumber(int number) { - return GPUSharingStrategy.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.GPUSharingConfig.getDescriptor().getEnumTypes().get(0); - } - - private static final GPUSharingStrategy[] VALUES = values(); - - public static GPUSharingStrategy 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 GPUSharingStrategy(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.GPUSharingConfig.GPUSharingStrategy) - } - - private int bitField0_; - public static final int MAX_SHARED_CLIENTS_PER_GPU_FIELD_NUMBER = 1; - private long maxSharedClientsPerGpu_ = 0L; - /** - * - * - *
-   * The max number of containers that can share a physical GPU.
-   * 
- * - * int64 max_shared_clients_per_gpu = 1; - * - * @return The maxSharedClientsPerGpu. - */ - @java.lang.Override - public long getMaxSharedClientsPerGpu() { - return maxSharedClientsPerGpu_; - } - - public static final int GPU_SHARING_STRATEGY_FIELD_NUMBER = 2; - private int gpuSharingStrategy_ = 0; - /** - * - * - *
-   * The type of GPU sharing strategy to enable on the GPU node.
-   * 
- * - * - * optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; - * - * - * @return Whether the gpuSharingStrategy field is set. - */ - @java.lang.Override - public boolean hasGpuSharingStrategy() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * The type of GPU sharing strategy to enable on the GPU node.
-   * 
- * - * - * optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; - * - * - * @return The enum numeric value on the wire for gpuSharingStrategy. - */ - @java.lang.Override - public int getGpuSharingStrategyValue() { - return gpuSharingStrategy_; - } - /** - * - * - *
-   * The type of GPU sharing strategy to enable on the GPU node.
-   * 
- * - * - * optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; - * - * - * @return The gpuSharingStrategy. - */ - @java.lang.Override - public com.google.container.v1.GPUSharingConfig.GPUSharingStrategy getGpuSharingStrategy() { - com.google.container.v1.GPUSharingConfig.GPUSharingStrategy result = - com.google.container.v1.GPUSharingConfig.GPUSharingStrategy.forNumber(gpuSharingStrategy_); - return result == null - ? com.google.container.v1.GPUSharingConfig.GPUSharingStrategy.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 (maxSharedClientsPerGpu_ != 0L) { - output.writeInt64(1, maxSharedClientsPerGpu_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeEnum(2, gpuSharingStrategy_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (maxSharedClientsPerGpu_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, maxSharedClientsPerGpu_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, gpuSharingStrategy_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.GPUSharingConfig)) { - return super.equals(obj); - } - com.google.container.v1.GPUSharingConfig other = (com.google.container.v1.GPUSharingConfig) obj; - - if (getMaxSharedClientsPerGpu() != other.getMaxSharedClientsPerGpu()) return false; - if (hasGpuSharingStrategy() != other.hasGpuSharingStrategy()) return false; - if (hasGpuSharingStrategy()) { - if (gpuSharingStrategy_ != other.gpuSharingStrategy_) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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_SHARED_CLIENTS_PER_GPU_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxSharedClientsPerGpu()); - if (hasGpuSharingStrategy()) { - hash = (37 * hash) + GPU_SHARING_STRATEGY_FIELD_NUMBER; - hash = (53 * hash) + gpuSharingStrategy_; - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.GPUSharingConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GPUSharingConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GPUSharingConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GPUSharingConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GPUSharingConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GPUSharingConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GPUSharingConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.GPUSharingConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.GPUSharingConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.GPUSharingConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.GPUSharingConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.GPUSharingConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.GPUSharingConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * GPUSharingConfig represents the GPU sharing configuration for Hardware
-   * Accelerators.
-   * 
- * - * Protobuf type {@code google.container.v1.GPUSharingConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.GPUSharingConfig) - com.google.container.v1.GPUSharingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GPUSharingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GPUSharingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GPUSharingConfig.class, - com.google.container.v1.GPUSharingConfig.Builder.class); - } - - // Construct using com.google.container.v1.GPUSharingConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - maxSharedClientsPerGpu_ = 0L; - gpuSharingStrategy_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GPUSharingConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.GPUSharingConfig getDefaultInstanceForType() { - return com.google.container.v1.GPUSharingConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.GPUSharingConfig build() { - com.google.container.v1.GPUSharingConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.GPUSharingConfig buildPartial() { - com.google.container.v1.GPUSharingConfig result = - new com.google.container.v1.GPUSharingConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.GPUSharingConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.maxSharedClientsPerGpu_ = maxSharedClientsPerGpu_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.gpuSharingStrategy_ = gpuSharingStrategy_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.GPUSharingConfig) { - return mergeFrom((com.google.container.v1.GPUSharingConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.GPUSharingConfig other) { - if (other == com.google.container.v1.GPUSharingConfig.getDefaultInstance()) return this; - if (other.getMaxSharedClientsPerGpu() != 0L) { - setMaxSharedClientsPerGpu(other.getMaxSharedClientsPerGpu()); - } - if (other.hasGpuSharingStrategy()) { - setGpuSharingStrategy(other.getGpuSharingStrategy()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - maxSharedClientsPerGpu_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - gpuSharingStrategy_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private long maxSharedClientsPerGpu_; - /** - * - * - *
-     * The max number of containers that can share a physical GPU.
-     * 
- * - * int64 max_shared_clients_per_gpu = 1; - * - * @return The maxSharedClientsPerGpu. - */ - @java.lang.Override - public long getMaxSharedClientsPerGpu() { - return maxSharedClientsPerGpu_; - } - /** - * - * - *
-     * The max number of containers that can share a physical GPU.
-     * 
- * - * int64 max_shared_clients_per_gpu = 1; - * - * @param value The maxSharedClientsPerGpu to set. - * @return This builder for chaining. - */ - public Builder setMaxSharedClientsPerGpu(long value) { - - maxSharedClientsPerGpu_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The max number of containers that can share a physical GPU.
-     * 
- * - * int64 max_shared_clients_per_gpu = 1; - * - * @return This builder for chaining. - */ - public Builder clearMaxSharedClientsPerGpu() { - bitField0_ = (bitField0_ & ~0x00000001); - maxSharedClientsPerGpu_ = 0L; - onChanged(); - return this; - } - - private int gpuSharingStrategy_ = 0; - /** - * - * - *
-     * The type of GPU sharing strategy to enable on the GPU node.
-     * 
- * - * - * optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; - * - * - * @return Whether the gpuSharingStrategy field is set. - */ - @java.lang.Override - public boolean hasGpuSharingStrategy() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * The type of GPU sharing strategy to enable on the GPU node.
-     * 
- * - * - * optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; - * - * - * @return The enum numeric value on the wire for gpuSharingStrategy. - */ - @java.lang.Override - public int getGpuSharingStrategyValue() { - return gpuSharingStrategy_; - } - /** - * - * - *
-     * The type of GPU sharing strategy to enable on the GPU node.
-     * 
- * - * - * optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; - * - * - * @param value The enum numeric value on the wire for gpuSharingStrategy to set. - * @return This builder for chaining. - */ - public Builder setGpuSharingStrategyValue(int value) { - gpuSharingStrategy_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * The type of GPU sharing strategy to enable on the GPU node.
-     * 
- * - * - * optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; - * - * - * @return The gpuSharingStrategy. - */ - @java.lang.Override - public com.google.container.v1.GPUSharingConfig.GPUSharingStrategy getGpuSharingStrategy() { - com.google.container.v1.GPUSharingConfig.GPUSharingStrategy result = - com.google.container.v1.GPUSharingConfig.GPUSharingStrategy.forNumber( - gpuSharingStrategy_); - return result == null - ? com.google.container.v1.GPUSharingConfig.GPUSharingStrategy.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * The type of GPU sharing strategy to enable on the GPU node.
-     * 
- * - * - * optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; - * - * - * @param value The gpuSharingStrategy to set. - * @return This builder for chaining. - */ - public Builder setGpuSharingStrategy( - com.google.container.v1.GPUSharingConfig.GPUSharingStrategy value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - gpuSharingStrategy_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The type of GPU sharing strategy to enable on the GPU node.
-     * 
- * - * - * optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; - * - * - * @return This builder for chaining. - */ - public Builder clearGpuSharingStrategy() { - bitField0_ = (bitField0_ & ~0x00000002); - gpuSharingStrategy_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.GPUSharingConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.GPUSharingConfig) - private static final com.google.container.v1.GPUSharingConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.GPUSharingConfig(); - } - - public static com.google.container.v1.GPUSharingConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GPUSharingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.GPUSharingConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GPUSharingConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GPUSharingConfigOrBuilder.java deleted file mode 100644 index 9d1a9058802b..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GPUSharingConfigOrBuilder.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface GPUSharingConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.GPUSharingConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The max number of containers that can share a physical GPU.
-   * 
- * - * int64 max_shared_clients_per_gpu = 1; - * - * @return The maxSharedClientsPerGpu. - */ - long getMaxSharedClientsPerGpu(); - - /** - * - * - *
-   * The type of GPU sharing strategy to enable on the GPU node.
-   * 
- * - * - * optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; - * - * - * @return Whether the gpuSharingStrategy field is set. - */ - boolean hasGpuSharingStrategy(); - /** - * - * - *
-   * The type of GPU sharing strategy to enable on the GPU node.
-   * 
- * - * - * optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; - * - * - * @return The enum numeric value on the wire for gpuSharingStrategy. - */ - int getGpuSharingStrategyValue(); - /** - * - * - *
-   * The type of GPU sharing strategy to enable on the GPU node.
-   * 
- * - * - * optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; - * - * - * @return The gpuSharingStrategy. - */ - com.google.container.v1.GPUSharingConfig.GPUSharingStrategy getGpuSharingStrategy(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GatewayAPIConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GatewayAPIConfig.java deleted file mode 100644 index c6c38c11bc24..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GatewayAPIConfig.java +++ /dev/null @@ -1,773 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * GatewayAPIConfig contains the desired config of Gateway API on this cluster.
- * 
- * - * Protobuf type {@code google.container.v1.GatewayAPIConfig} - */ -public final class GatewayAPIConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.GatewayAPIConfig) - GatewayAPIConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use GatewayAPIConfig.newBuilder() to construct. - private GatewayAPIConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GatewayAPIConfig() { - channel_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GatewayAPIConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GatewayAPIConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GatewayAPIConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GatewayAPIConfig.class, - com.google.container.v1.GatewayAPIConfig.Builder.class); - } - - /** - * - * - *
-   * Channel describes if/how Gateway API should be installed and implemented in
-   * a cluster.
-   * 
- * - * Protobuf enum {@code google.container.v1.GatewayAPIConfig.Channel} - */ - public enum Channel implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value.
-     * 
- * - * CHANNEL_UNSPECIFIED = 0; - */ - CHANNEL_UNSPECIFIED(0), - /** - * - * - *
-     * Gateway API support is disabled
-     * 
- * - * CHANNEL_DISABLED = 1; - */ - CHANNEL_DISABLED(1), - /** - * - * - *
-     * Gateway API support is enabled, experimental CRDs are installed
-     * 
- * - * CHANNEL_EXPERIMENTAL = 3; - */ - CHANNEL_EXPERIMENTAL(3), - /** - * - * - *
-     * Gateway API support is enabled, standard CRDs are installed
-     * 
- * - * CHANNEL_STANDARD = 4; - */ - CHANNEL_STANDARD(4), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value.
-     * 
- * - * CHANNEL_UNSPECIFIED = 0; - */ - public static final int CHANNEL_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Gateway API support is disabled
-     * 
- * - * CHANNEL_DISABLED = 1; - */ - public static final int CHANNEL_DISABLED_VALUE = 1; - /** - * - * - *
-     * Gateway API support is enabled, experimental CRDs are installed
-     * 
- * - * CHANNEL_EXPERIMENTAL = 3; - */ - public static final int CHANNEL_EXPERIMENTAL_VALUE = 3; - /** - * - * - *
-     * Gateway API support is enabled, standard CRDs are installed
-     * 
- * - * CHANNEL_STANDARD = 4; - */ - public static final int CHANNEL_STANDARD_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 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 CHANNEL_UNSPECIFIED; - case 1: - return CHANNEL_DISABLED; - case 3: - return CHANNEL_EXPERIMENTAL; - case 4: - return CHANNEL_STANDARD; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Channel findValueByNumber(int number) { - return Channel.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.GatewayAPIConfig.getDescriptor().getEnumTypes().get(0); - } - - private static final Channel[] VALUES = values(); - - public static Channel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Channel(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.GatewayAPIConfig.Channel) - } - - public static final int CHANNEL_FIELD_NUMBER = 1; - private int channel_ = 0; - /** - * - * - *
-   * The Gateway API release channel to use for Gateway API.
-   * 
- * - * .google.container.v1.GatewayAPIConfig.Channel channel = 1; - * - * @return The enum numeric value on the wire for channel. - */ - @java.lang.Override - public int getChannelValue() { - return channel_; - } - /** - * - * - *
-   * The Gateway API release channel to use for Gateway API.
-   * 
- * - * .google.container.v1.GatewayAPIConfig.Channel channel = 1; - * - * @return The channel. - */ - @java.lang.Override - public com.google.container.v1.GatewayAPIConfig.Channel getChannel() { - com.google.container.v1.GatewayAPIConfig.Channel result = - com.google.container.v1.GatewayAPIConfig.Channel.forNumber(channel_); - return result == null ? com.google.container.v1.GatewayAPIConfig.Channel.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (channel_ - != com.google.container.v1.GatewayAPIConfig.Channel.CHANNEL_UNSPECIFIED.getNumber()) { - output.writeEnum(1, channel_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (channel_ - != com.google.container.v1.GatewayAPIConfig.Channel.CHANNEL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, channel_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.GatewayAPIConfig)) { - return super.equals(obj); - } - com.google.container.v1.GatewayAPIConfig other = (com.google.container.v1.GatewayAPIConfig) obj; - - if (channel_ != other.channel_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.GatewayAPIConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GatewayAPIConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GatewayAPIConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GatewayAPIConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GatewayAPIConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GatewayAPIConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GatewayAPIConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.GatewayAPIConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.GatewayAPIConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.GatewayAPIConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.GatewayAPIConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.GatewayAPIConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.GatewayAPIConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * GatewayAPIConfig contains the desired config of Gateway API on this cluster.
-   * 
- * - * Protobuf type {@code google.container.v1.GatewayAPIConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.GatewayAPIConfig) - com.google.container.v1.GatewayAPIConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GatewayAPIConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GatewayAPIConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GatewayAPIConfig.class, - com.google.container.v1.GatewayAPIConfig.Builder.class); - } - - // Construct using com.google.container.v1.GatewayAPIConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - channel_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GatewayAPIConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.GatewayAPIConfig getDefaultInstanceForType() { - return com.google.container.v1.GatewayAPIConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.GatewayAPIConfig build() { - com.google.container.v1.GatewayAPIConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.GatewayAPIConfig buildPartial() { - com.google.container.v1.GatewayAPIConfig result = - new com.google.container.v1.GatewayAPIConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.GatewayAPIConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.channel_ = channel_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.GatewayAPIConfig) { - return mergeFrom((com.google.container.v1.GatewayAPIConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.GatewayAPIConfig other) { - if (other == com.google.container.v1.GatewayAPIConfig.getDefaultInstance()) return this; - if (other.channel_ != 0) { - setChannelValue(other.getChannelValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - channel_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int channel_ = 0; - /** - * - * - *
-     * The Gateway API release channel to use for Gateway API.
-     * 
- * - * .google.container.v1.GatewayAPIConfig.Channel channel = 1; - * - * @return The enum numeric value on the wire for channel. - */ - @java.lang.Override - public int getChannelValue() { - return channel_; - } - /** - * - * - *
-     * The Gateway API release channel to use for Gateway API.
-     * 
- * - * .google.container.v1.GatewayAPIConfig.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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The Gateway API release channel to use for Gateway API.
-     * 
- * - * .google.container.v1.GatewayAPIConfig.Channel channel = 1; - * - * @return The channel. - */ - @java.lang.Override - public com.google.container.v1.GatewayAPIConfig.Channel getChannel() { - com.google.container.v1.GatewayAPIConfig.Channel result = - com.google.container.v1.GatewayAPIConfig.Channel.forNumber(channel_); - return result == null - ? com.google.container.v1.GatewayAPIConfig.Channel.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * The Gateway API release channel to use for Gateway API.
-     * 
- * - * .google.container.v1.GatewayAPIConfig.Channel channel = 1; - * - * @param value The channel to set. - * @return This builder for chaining. - */ - public Builder setChannel(com.google.container.v1.GatewayAPIConfig.Channel value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - channel_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The Gateway API release channel to use for Gateway API.
-     * 
- * - * .google.container.v1.GatewayAPIConfig.Channel channel = 1; - * - * @return This builder for chaining. - */ - public Builder clearChannel() { - bitField0_ = (bitField0_ & ~0x00000001); - channel_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.GatewayAPIConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.GatewayAPIConfig) - private static final com.google.container.v1.GatewayAPIConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.GatewayAPIConfig(); - } - - public static com.google.container.v1.GatewayAPIConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GatewayAPIConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.GatewayAPIConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GatewayAPIConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GatewayAPIConfigOrBuilder.java deleted file mode 100644 index 644479de6f32..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GatewayAPIConfigOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface GatewayAPIConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.GatewayAPIConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The Gateway API release channel to use for Gateway API.
-   * 
- * - * .google.container.v1.GatewayAPIConfig.Channel channel = 1; - * - * @return The enum numeric value on the wire for channel. - */ - int getChannelValue(); - /** - * - * - *
-   * The Gateway API release channel to use for Gateway API.
-   * 
- * - * .google.container.v1.GatewayAPIConfig.Channel channel = 1; - * - * @return The channel. - */ - com.google.container.v1.GatewayAPIConfig.Channel getChannel(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcePersistentDiskCsiDriverConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcePersistentDiskCsiDriverConfig.java deleted file mode 100644 index c4ba092ca259..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcePersistentDiskCsiDriverConfig.java +++ /dev/null @@ -1,537 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Configuration for the Compute Engine PD CSI driver.
- * 
- * - * Protobuf type {@code google.container.v1.GcePersistentDiskCsiDriverConfig} - */ -public final class GcePersistentDiskCsiDriverConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.GcePersistentDiskCsiDriverConfig) - GcePersistentDiskCsiDriverConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use GcePersistentDiskCsiDriverConfig.newBuilder() to construct. - private GcePersistentDiskCsiDriverConfig( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GcePersistentDiskCsiDriverConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GcePersistentDiskCsiDriverConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GcePersistentDiskCsiDriverConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GcePersistentDiskCsiDriverConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GcePersistentDiskCsiDriverConfig.class, - com.google.container.v1.GcePersistentDiskCsiDriverConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.GcePersistentDiskCsiDriverConfig)) { - return super.equals(obj); - } - com.google.container.v1.GcePersistentDiskCsiDriverConfig other = - (com.google.container.v1.GcePersistentDiskCsiDriverConfig) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.GcePersistentDiskCsiDriverConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GcePersistentDiskCsiDriverConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GcePersistentDiskCsiDriverConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GcePersistentDiskCsiDriverConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GcePersistentDiskCsiDriverConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GcePersistentDiskCsiDriverConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GcePersistentDiskCsiDriverConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.GcePersistentDiskCsiDriverConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.GcePersistentDiskCsiDriverConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.GcePersistentDiskCsiDriverConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.GcePersistentDiskCsiDriverConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.GcePersistentDiskCsiDriverConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.container.v1.GcePersistentDiskCsiDriverConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Configuration for the Compute Engine PD CSI driver.
-   * 
- * - * Protobuf type {@code google.container.v1.GcePersistentDiskCsiDriverConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.GcePersistentDiskCsiDriverConfig) - com.google.container.v1.GcePersistentDiskCsiDriverConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GcePersistentDiskCsiDriverConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GcePersistentDiskCsiDriverConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GcePersistentDiskCsiDriverConfig.class, - com.google.container.v1.GcePersistentDiskCsiDriverConfig.Builder.class); - } - - // Construct using com.google.container.v1.GcePersistentDiskCsiDriverConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enabled_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GcePersistentDiskCsiDriverConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.GcePersistentDiskCsiDriverConfig getDefaultInstanceForType() { - return com.google.container.v1.GcePersistentDiskCsiDriverConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.GcePersistentDiskCsiDriverConfig build() { - com.google.container.v1.GcePersistentDiskCsiDriverConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.GcePersistentDiskCsiDriverConfig buildPartial() { - com.google.container.v1.GcePersistentDiskCsiDriverConfig result = - new com.google.container.v1.GcePersistentDiskCsiDriverConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.GcePersistentDiskCsiDriverConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.GcePersistentDiskCsiDriverConfig) { - return mergeFrom((com.google.container.v1.GcePersistentDiskCsiDriverConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.GcePersistentDiskCsiDriverConfig other) { - if (other == com.google.container.v1.GcePersistentDiskCsiDriverConfig.getDefaultInstance()) - return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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() { - bitField0_ = (bitField0_ & ~0x00000001); - enabled_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.GcePersistentDiskCsiDriverConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.GcePersistentDiskCsiDriverConfig) - private static final com.google.container.v1.GcePersistentDiskCsiDriverConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.GcePersistentDiskCsiDriverConfig(); - } - - public static com.google.container.v1.GcePersistentDiskCsiDriverConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcePersistentDiskCsiDriverConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.GcePersistentDiskCsiDriverConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcePersistentDiskCsiDriverConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcePersistentDiskCsiDriverConfigOrBuilder.java deleted file mode 100644 index 0db880b31fb1..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcePersistentDiskCsiDriverConfigOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface GcePersistentDiskCsiDriverConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.GcePersistentDiskCsiDriverConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether the Compute Engine PD CSI driver is enabled for this cluster.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcfsConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcfsConfig.java deleted file mode 100644 index 8fe96abf00d1..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcfsConfig.java +++ /dev/null @@ -1,533 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * GcfsConfig contains configurations of Google Container File System
- * (image streaming).
- * 
- * - * Protobuf type {@code google.container.v1.GcfsConfig} - */ -public final class GcfsConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.GcfsConfig) - GcfsConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use GcfsConfig.newBuilder() to construct. - private GcfsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GcfsConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GcfsConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GcfsConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GcfsConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GcfsConfig.class, - com.google.container.v1.GcfsConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * Whether to use GCFS.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.GcfsConfig)) { - return super.equals(obj); - } - com.google.container.v1.GcfsConfig other = (com.google.container.v1.GcfsConfig) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.GcfsConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GcfsConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GcfsConfig parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GcfsConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GcfsConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GcfsConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GcfsConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.GcfsConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.GcfsConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.GcfsConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.GcfsConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.GcfsConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.GcfsConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * GcfsConfig contains configurations of Google Container File System
-   * (image streaming).
-   * 
- * - * Protobuf type {@code google.container.v1.GcfsConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.GcfsConfig) - com.google.container.v1.GcfsConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GcfsConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GcfsConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GcfsConfig.class, - com.google.container.v1.GcfsConfig.Builder.class); - } - - // Construct using com.google.container.v1.GcfsConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enabled_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GcfsConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.GcfsConfig getDefaultInstanceForType() { - return com.google.container.v1.GcfsConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.GcfsConfig build() { - com.google.container.v1.GcfsConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.GcfsConfig buildPartial() { - com.google.container.v1.GcfsConfig result = new com.google.container.v1.GcfsConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.GcfsConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.GcfsConfig) { - return mergeFrom((com.google.container.v1.GcfsConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.GcfsConfig other) { - if (other == com.google.container.v1.GcfsConfig.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean enabled_; - /** - * - * - *
-     * Whether to use GCFS.
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Whether to use GCFS.
-     * 
- * - * bool enabled = 1; - * - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether to use GCFS.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - enabled_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.GcfsConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.GcfsConfig) - private static final com.google.container.v1.GcfsConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.GcfsConfig(); - } - - public static com.google.container.v1.GcfsConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcfsConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.GcfsConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcfsConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcfsConfigOrBuilder.java deleted file mode 100644 index 9065bcb67e69..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcfsConfigOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface GcfsConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.GcfsConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether to use GCFS.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcpFilestoreCsiDriverConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcpFilestoreCsiDriverConfig.java deleted file mode 100644 index 1b411e33ea3d..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcpFilestoreCsiDriverConfig.java +++ /dev/null @@ -1,535 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Configuration for the GCP Filestore CSI driver.
- * 
- * - * Protobuf type {@code google.container.v1.GcpFilestoreCsiDriverConfig} - */ -public final class GcpFilestoreCsiDriverConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.GcpFilestoreCsiDriverConfig) - GcpFilestoreCsiDriverConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use GcpFilestoreCsiDriverConfig.newBuilder() to construct. - private GcpFilestoreCsiDriverConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GcpFilestoreCsiDriverConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GcpFilestoreCsiDriverConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GcpFilestoreCsiDriverConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GcpFilestoreCsiDriverConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GcpFilestoreCsiDriverConfig.class, - com.google.container.v1.GcpFilestoreCsiDriverConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * Whether the GCP Filestore CSI driver is enabled for this cluster.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.GcpFilestoreCsiDriverConfig)) { - return super.equals(obj); - } - com.google.container.v1.GcpFilestoreCsiDriverConfig other = - (com.google.container.v1.GcpFilestoreCsiDriverConfig) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.GcpFilestoreCsiDriverConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GcpFilestoreCsiDriverConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GcpFilestoreCsiDriverConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GcpFilestoreCsiDriverConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GcpFilestoreCsiDriverConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GcpFilestoreCsiDriverConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GcpFilestoreCsiDriverConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.GcpFilestoreCsiDriverConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.GcpFilestoreCsiDriverConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.GcpFilestoreCsiDriverConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.GcpFilestoreCsiDriverConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.GcpFilestoreCsiDriverConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.GcpFilestoreCsiDriverConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Configuration for the GCP Filestore CSI driver.
-   * 
- * - * Protobuf type {@code google.container.v1.GcpFilestoreCsiDriverConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.GcpFilestoreCsiDriverConfig) - com.google.container.v1.GcpFilestoreCsiDriverConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GcpFilestoreCsiDriverConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GcpFilestoreCsiDriverConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GcpFilestoreCsiDriverConfig.class, - com.google.container.v1.GcpFilestoreCsiDriverConfig.Builder.class); - } - - // Construct using com.google.container.v1.GcpFilestoreCsiDriverConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enabled_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GcpFilestoreCsiDriverConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.GcpFilestoreCsiDriverConfig getDefaultInstanceForType() { - return com.google.container.v1.GcpFilestoreCsiDriverConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.GcpFilestoreCsiDriverConfig build() { - com.google.container.v1.GcpFilestoreCsiDriverConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.GcpFilestoreCsiDriverConfig buildPartial() { - com.google.container.v1.GcpFilestoreCsiDriverConfig result = - new com.google.container.v1.GcpFilestoreCsiDriverConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.GcpFilestoreCsiDriverConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.GcpFilestoreCsiDriverConfig) { - return mergeFrom((com.google.container.v1.GcpFilestoreCsiDriverConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.GcpFilestoreCsiDriverConfig other) { - if (other == com.google.container.v1.GcpFilestoreCsiDriverConfig.getDefaultInstance()) - return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean enabled_; - /** - * - * - *
-     * Whether the GCP Filestore CSI driver is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Whether the GCP Filestore CSI driver is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether the GCP Filestore CSI driver is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - enabled_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.GcpFilestoreCsiDriverConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.GcpFilestoreCsiDriverConfig) - private static final com.google.container.v1.GcpFilestoreCsiDriverConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.GcpFilestoreCsiDriverConfig(); - } - - public static com.google.container.v1.GcpFilestoreCsiDriverConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcpFilestoreCsiDriverConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.GcpFilestoreCsiDriverConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcpFilestoreCsiDriverConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcpFilestoreCsiDriverConfigOrBuilder.java deleted file mode 100644 index 700e1a19c7d9..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcpFilestoreCsiDriverConfigOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface GcpFilestoreCsiDriverConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.GcpFilestoreCsiDriverConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether the GCP Filestore CSI driver is enabled for this cluster.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcsFuseCsiDriverConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcsFuseCsiDriverConfig.java deleted file mode 100644 index 0c66ec315e58..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcsFuseCsiDriverConfig.java +++ /dev/null @@ -1,534 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Configuration for the Cloud Storage Fuse CSI driver.
- * 
- * - * Protobuf type {@code google.container.v1.GcsFuseCsiDriverConfig} - */ -public final class GcsFuseCsiDriverConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.GcsFuseCsiDriverConfig) - GcsFuseCsiDriverConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use GcsFuseCsiDriverConfig.newBuilder() to construct. - private GcsFuseCsiDriverConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GcsFuseCsiDriverConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GcsFuseCsiDriverConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GcsFuseCsiDriverConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GcsFuseCsiDriverConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GcsFuseCsiDriverConfig.class, - com.google.container.v1.GcsFuseCsiDriverConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * Whether the Cloud Storage Fuse 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.GcsFuseCsiDriverConfig)) { - return super.equals(obj); - } - com.google.container.v1.GcsFuseCsiDriverConfig other = - (com.google.container.v1.GcsFuseCsiDriverConfig) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.GcsFuseCsiDriverConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GcsFuseCsiDriverConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GcsFuseCsiDriverConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GcsFuseCsiDriverConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GcsFuseCsiDriverConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GcsFuseCsiDriverConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GcsFuseCsiDriverConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.GcsFuseCsiDriverConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.GcsFuseCsiDriverConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.GcsFuseCsiDriverConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.GcsFuseCsiDriverConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.GcsFuseCsiDriverConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.GcsFuseCsiDriverConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 Cloud Storage Fuse CSI driver.
-   * 
- * - * Protobuf type {@code google.container.v1.GcsFuseCsiDriverConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.GcsFuseCsiDriverConfig) - com.google.container.v1.GcsFuseCsiDriverConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GcsFuseCsiDriverConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GcsFuseCsiDriverConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GcsFuseCsiDriverConfig.class, - com.google.container.v1.GcsFuseCsiDriverConfig.Builder.class); - } - - // Construct using com.google.container.v1.GcsFuseCsiDriverConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enabled_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GcsFuseCsiDriverConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.GcsFuseCsiDriverConfig getDefaultInstanceForType() { - return com.google.container.v1.GcsFuseCsiDriverConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.GcsFuseCsiDriverConfig build() { - com.google.container.v1.GcsFuseCsiDriverConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.GcsFuseCsiDriverConfig buildPartial() { - com.google.container.v1.GcsFuseCsiDriverConfig result = - new com.google.container.v1.GcsFuseCsiDriverConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.GcsFuseCsiDriverConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.GcsFuseCsiDriverConfig) { - return mergeFrom((com.google.container.v1.GcsFuseCsiDriverConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.GcsFuseCsiDriverConfig other) { - if (other == com.google.container.v1.GcsFuseCsiDriverConfig.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean enabled_; - /** - * - * - *
-     * Whether the Cloud Storage Fuse CSI driver is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Whether the Cloud Storage Fuse 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether the Cloud Storage Fuse CSI driver is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - enabled_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.GcsFuseCsiDriverConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.GcsFuseCsiDriverConfig) - private static final com.google.container.v1.GcsFuseCsiDriverConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.GcsFuseCsiDriverConfig(); - } - - public static com.google.container.v1.GcsFuseCsiDriverConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsFuseCsiDriverConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.GcsFuseCsiDriverConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcsFuseCsiDriverConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcsFuseCsiDriverConfigOrBuilder.java deleted file mode 100644 index 4a2e6288297b..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcsFuseCsiDriverConfigOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface GcsFuseCsiDriverConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.GcsFuseCsiDriverConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether the Cloud Storage Fuse CSI driver is enabled for this cluster.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java deleted file mode 100644 index cd8f5145a43b..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java +++ /dev/null @@ -1,1282 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * GetClusterRequest gets the settings of a cluster.
- * 
- * - * Protobuf type {@code google.container.v1.GetClusterRequest} - */ -public final class GetClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GetClusterRequest.class, - com.google.container.v1.GetClusterRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2582 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2582 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object zone_ = ""; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2588 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2588 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object clusterId_ = ""; - /** - * - * - *
-   * Deprecated. The name of the cluster to retrieve.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2592 - * @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; - } - } - /** - * - * - *
-   * 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]; - * - * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2592 - * @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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.GetClusterRequest)) { - return super.equals(obj); - } - com.google.container.v1.GetClusterRequest other = - (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.GetClusterRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.GetClusterRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.GetClusterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GetClusterRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GetClusterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.GetClusterRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.GetClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.GetClusterRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.GetClusterRequest) - com.google.container.v1.GetClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GetClusterRequest.class, - com.google.container.v1.GetClusterRequest.Builder.class); - } - - // Construct using com.google.container.v1.GetClusterRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetClusterRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.GetClusterRequest getDefaultInstanceForType() { - return com.google.container.v1.GetClusterRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.GetClusterRequest build() { - com.google.container.v1.GetClusterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.GetClusterRequest buildPartial() { - com.google.container.v1.GetClusterRequest result = - new com.google.container.v1.GetClusterRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.GetClusterRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.GetClusterRequest) { - return mergeFrom((com.google.container.v1.GetClusterRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.GetClusterRequest other) { - if (other == com.google.container.v1.GetClusterRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000008; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 42: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2582 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2582 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2582 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2582 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2582 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2588 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2588 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2588 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2588 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2588 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster to retrieve.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2592 - * @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; - } - } - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2592 - * @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; - } - } - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2592 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to retrieve.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2592 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to retrieve.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2592 - * @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; - bitField0_ |= 0x00000004; - 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; - bitField0_ |= 0x00000008; - 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(); - bitField0_ = (bitField0_ & ~0x00000008); - 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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.GetClusterRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.GetClusterRequest) - private static final com.google.container.v1.GetClusterRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.GetClusterRequest(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.GetClusterRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java deleted file mode 100644 index 42aa3e661cb6..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface GetClusterRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.GetClusterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2582 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2582 - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2588 - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2588 - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster to retrieve.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2592 - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster to retrieve.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2592 - * @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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysRequest.java deleted file mode 100644 index 0da666d800c6..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysRequest.java +++ /dev/null @@ -1,637 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * GetJSONWebKeysRequest gets the public component of the keys used by the
- * cluster to sign token requests. This will be the jwks_uri for the discover
- * document returned by getOpenIDConfig. See the OpenID Connect
- * Discovery 1.0 specification for details.
- * 
- * - * Protobuf type {@code google.container.v1.GetJSONWebKeysRequest} - */ -public final class GetJSONWebKeysRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.GetJSONWebKeysRequest) - GetJSONWebKeysRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetJSONWebKeysRequest.newBuilder() to construct. - private GetJSONWebKeysRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetJSONWebKeysRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetJSONWebKeysRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetJSONWebKeysRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetJSONWebKeysRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GetJSONWebKeysRequest.class, - com.google.container.v1.GetJSONWebKeysRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - * - * - *
-   * The cluster (project, location, cluster name) 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 name) 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.GetJSONWebKeysRequest)) { - return super.equals(obj); - } - com.google.container.v1.GetJSONWebKeysRequest other = - (com.google.container.v1.GetJSONWebKeysRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.GetJSONWebKeysRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GetJSONWebKeysRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GetJSONWebKeysRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GetJSONWebKeysRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GetJSONWebKeysRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GetJSONWebKeysRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GetJSONWebKeysRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.GetJSONWebKeysRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.GetJSONWebKeysRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.GetJSONWebKeysRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.GetJSONWebKeysRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.GetJSONWebKeysRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.GetJSONWebKeysRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * GetJSONWebKeysRequest gets the public component of the keys used by the
-   * cluster to sign token requests. This will be the jwks_uri for the discover
-   * document returned by getOpenIDConfig. See the OpenID Connect
-   * Discovery 1.0 specification for details.
-   * 
- * - * Protobuf type {@code google.container.v1.GetJSONWebKeysRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.GetJSONWebKeysRequest) - com.google.container.v1.GetJSONWebKeysRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetJSONWebKeysRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetJSONWebKeysRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GetJSONWebKeysRequest.class, - com.google.container.v1.GetJSONWebKeysRequest.Builder.class); - } - - // Construct using com.google.container.v1.GetJSONWebKeysRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetJSONWebKeysRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.GetJSONWebKeysRequest getDefaultInstanceForType() { - return com.google.container.v1.GetJSONWebKeysRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.GetJSONWebKeysRequest build() { - com.google.container.v1.GetJSONWebKeysRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.GetJSONWebKeysRequest buildPartial() { - com.google.container.v1.GetJSONWebKeysRequest result = - new com.google.container.v1.GetJSONWebKeysRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.GetJSONWebKeysRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.GetJSONWebKeysRequest) { - return mergeFrom((com.google.container.v1.GetJSONWebKeysRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.GetJSONWebKeysRequest other) { - if (other == com.google.container.v1.GetJSONWebKeysRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * The cluster (project, location, cluster name) 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 name) 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 name) 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The cluster (project, location, cluster name) 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(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * The cluster (project, location, cluster name) 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.GetJSONWebKeysRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.GetJSONWebKeysRequest) - private static final com.google.container.v1.GetJSONWebKeysRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.GetJSONWebKeysRequest(); - } - - public static com.google.container.v1.GetJSONWebKeysRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetJSONWebKeysRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.GetJSONWebKeysRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysRequestOrBuilder.java deleted file mode 100644 index 7fa058c4ae6d..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysRequestOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface GetJSONWebKeysRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.GetJSONWebKeysRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The cluster (project, location, cluster name) 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 name) 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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysResponse.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysResponse.java deleted file mode 100644 index b93670f013be..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysResponse.java +++ /dev/null @@ -1,948 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * GetJSONWebKeysResponse is a valid JSON Web Key Set as specififed in rfc 7517
- * 
- * - * Protobuf type {@code google.container.v1.GetJSONWebKeysResponse} - */ -public final class GetJSONWebKeysResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.GetJSONWebKeysResponse) - GetJSONWebKeysResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetJSONWebKeysResponse.newBuilder() to construct. - private GetJSONWebKeysResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetJSONWebKeysResponse() { - keys_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetJSONWebKeysResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetJSONWebKeysResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetJSONWebKeysResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GetJSONWebKeysResponse.class, - com.google.container.v1.GetJSONWebKeysResponse.Builder.class); - } - - public static final int KEYS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List keys_; - /** - * - * - *
-   * The public component of the keys used by the cluster to sign token
-   * requests.
-   * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - @java.lang.Override - public java.util.List getKeysList() { - return keys_; - } - /** - * - * - *
-   * The public component of the keys used by the cluster to sign token
-   * requests.
-   * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - @java.lang.Override - public java.util.List getKeysOrBuilderList() { - return keys_; - } - /** - * - * - *
-   * The public component of the keys used by the cluster to sign token
-   * requests.
-   * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - @java.lang.Override - public int getKeysCount() { - return keys_.size(); - } - /** - * - * - *
-   * The public component of the keys used by the cluster to sign token
-   * requests.
-   * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - @java.lang.Override - public com.google.container.v1.Jwk getKeys(int index) { - return keys_.get(index); - } - /** - * - * - *
-   * The public component of the keys used by the cluster to sign token
-   * requests.
-   * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - @java.lang.Override - public com.google.container.v1.JwkOrBuilder getKeysOrBuilder(int index) { - return keys_.get(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < keys_.size(); i++) { - output.writeMessage(1, keys_.get(i)); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.GetJSONWebKeysResponse)) { - return super.equals(obj); - } - com.google.container.v1.GetJSONWebKeysResponse other = - (com.google.container.v1.GetJSONWebKeysResponse) obj; - - if (!getKeysList().equals(other.getKeysList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.GetJSONWebKeysResponse parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GetJSONWebKeysResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GetJSONWebKeysResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GetJSONWebKeysResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GetJSONWebKeysResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GetJSONWebKeysResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GetJSONWebKeysResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.GetJSONWebKeysResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.GetJSONWebKeysResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.GetJSONWebKeysResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.GetJSONWebKeysResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.GetJSONWebKeysResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.GetJSONWebKeysResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * GetJSONWebKeysResponse is a valid JSON Web Key Set as specififed in rfc 7517
-   * 
- * - * Protobuf type {@code google.container.v1.GetJSONWebKeysResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.GetJSONWebKeysResponse) - com.google.container.v1.GetJSONWebKeysResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetJSONWebKeysResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetJSONWebKeysResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GetJSONWebKeysResponse.class, - com.google.container.v1.GetJSONWebKeysResponse.Builder.class); - } - - // Construct using com.google.container.v1.GetJSONWebKeysResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (keysBuilder_ == null) { - keys_ = java.util.Collections.emptyList(); - } else { - keys_ = null; - keysBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetJSONWebKeysResponse_descriptor; - } - - @java.lang.Override - public com.google.container.v1.GetJSONWebKeysResponse getDefaultInstanceForType() { - return com.google.container.v1.GetJSONWebKeysResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.GetJSONWebKeysResponse build() { - com.google.container.v1.GetJSONWebKeysResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.GetJSONWebKeysResponse buildPartial() { - com.google.container.v1.GetJSONWebKeysResponse result = - new com.google.container.v1.GetJSONWebKeysResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.container.v1.GetJSONWebKeysResponse result) { - if (keysBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - keys_ = java.util.Collections.unmodifiableList(keys_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.keys_ = keys_; - } else { - result.keys_ = keysBuilder_.build(); - } - } - - private void buildPartial0(com.google.container.v1.GetJSONWebKeysResponse result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.GetJSONWebKeysResponse) { - return mergeFrom((com.google.container.v1.GetJSONWebKeysResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.GetJSONWebKeysResponse other) { - if (other == com.google.container.v1.GetJSONWebKeysResponse.getDefaultInstance()) return this; - if (keysBuilder_ == null) { - if (!other.keys_.isEmpty()) { - if (keys_.isEmpty()) { - keys_ = other.keys_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureKeysIsMutable(); - keys_.addAll(other.keys_); - } - onChanged(); - } - } else { - if (!other.keys_.isEmpty()) { - if (keysBuilder_.isEmpty()) { - keysBuilder_.dispose(); - keysBuilder_ = null; - keys_ = other.keys_; - bitField0_ = (bitField0_ & ~0x00000001); - keysBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getKeysFieldBuilder() - : null; - } else { - keysBuilder_.addAllMessages(other.keys_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.container.v1.Jwk m = - input.readMessage(com.google.container.v1.Jwk.parser(), extensionRegistry); - if (keysBuilder_ == null) { - ensureKeysIsMutable(); - keys_.add(m); - } else { - keysBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List keys_ = java.util.Collections.emptyList(); - - private void ensureKeysIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - keys_ = new java.util.ArrayList(keys_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.Jwk, - com.google.container.v1.Jwk.Builder, - com.google.container.v1.JwkOrBuilder> - keysBuilder_; - - /** - * - * - *
-     * The public component of the keys used by the cluster to sign token
-     * requests.
-     * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - public java.util.List getKeysList() { - if (keysBuilder_ == null) { - return java.util.Collections.unmodifiableList(keys_); - } else { - return keysBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The public component of the keys used by the cluster to sign token
-     * requests.
-     * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - public int getKeysCount() { - if (keysBuilder_ == null) { - return keys_.size(); - } else { - return keysBuilder_.getCount(); - } - } - /** - * - * - *
-     * The public component of the keys used by the cluster to sign token
-     * requests.
-     * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - public com.google.container.v1.Jwk getKeys(int index) { - if (keysBuilder_ == null) { - return keys_.get(index); - } else { - return keysBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The public component of the keys used by the cluster to sign token
-     * requests.
-     * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - public Builder setKeys(int index, com.google.container.v1.Jwk value) { - if (keysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureKeysIsMutable(); - keys_.set(index, value); - onChanged(); - } else { - keysBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The public component of the keys used by the cluster to sign token
-     * requests.
-     * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - public Builder setKeys(int index, com.google.container.v1.Jwk.Builder builderForValue) { - if (keysBuilder_ == null) { - ensureKeysIsMutable(); - keys_.set(index, builderForValue.build()); - onChanged(); - } else { - keysBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The public component of the keys used by the cluster to sign token
-     * requests.
-     * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - public Builder addKeys(com.google.container.v1.Jwk value) { - if (keysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureKeysIsMutable(); - keys_.add(value); - onChanged(); - } else { - keysBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The public component of the keys used by the cluster to sign token
-     * requests.
-     * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - public Builder addKeys(int index, com.google.container.v1.Jwk value) { - if (keysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureKeysIsMutable(); - keys_.add(index, value); - onChanged(); - } else { - keysBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The public component of the keys used by the cluster to sign token
-     * requests.
-     * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - public Builder addKeys(com.google.container.v1.Jwk.Builder builderForValue) { - if (keysBuilder_ == null) { - ensureKeysIsMutable(); - keys_.add(builderForValue.build()); - onChanged(); - } else { - keysBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The public component of the keys used by the cluster to sign token
-     * requests.
-     * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - public Builder addKeys(int index, com.google.container.v1.Jwk.Builder builderForValue) { - if (keysBuilder_ == null) { - ensureKeysIsMutable(); - keys_.add(index, builderForValue.build()); - onChanged(); - } else { - keysBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The public component of the keys used by the cluster to sign token
-     * requests.
-     * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - public Builder addAllKeys(java.lang.Iterable values) { - if (keysBuilder_ == null) { - ensureKeysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, keys_); - onChanged(); - } else { - keysBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The public component of the keys used by the cluster to sign token
-     * requests.
-     * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - public Builder clearKeys() { - if (keysBuilder_ == null) { - keys_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - keysBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The public component of the keys used by the cluster to sign token
-     * requests.
-     * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - public Builder removeKeys(int index) { - if (keysBuilder_ == null) { - ensureKeysIsMutable(); - keys_.remove(index); - onChanged(); - } else { - keysBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The public component of the keys used by the cluster to sign token
-     * requests.
-     * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - public com.google.container.v1.Jwk.Builder getKeysBuilder(int index) { - return getKeysFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The public component of the keys used by the cluster to sign token
-     * requests.
-     * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - public com.google.container.v1.JwkOrBuilder getKeysOrBuilder(int index) { - if (keysBuilder_ == null) { - return keys_.get(index); - } else { - return keysBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The public component of the keys used by the cluster to sign token
-     * requests.
-     * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - public java.util.List getKeysOrBuilderList() { - if (keysBuilder_ != null) { - return keysBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(keys_); - } - } - /** - * - * - *
-     * The public component of the keys used by the cluster to sign token
-     * requests.
-     * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - public com.google.container.v1.Jwk.Builder addKeysBuilder() { - return getKeysFieldBuilder().addBuilder(com.google.container.v1.Jwk.getDefaultInstance()); - } - /** - * - * - *
-     * The public component of the keys used by the cluster to sign token
-     * requests.
-     * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - public com.google.container.v1.Jwk.Builder addKeysBuilder(int index) { - return getKeysFieldBuilder() - .addBuilder(index, com.google.container.v1.Jwk.getDefaultInstance()); - } - /** - * - * - *
-     * The public component of the keys used by the cluster to sign token
-     * requests.
-     * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - public java.util.List getKeysBuilderList() { - return getKeysFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.Jwk, - com.google.container.v1.Jwk.Builder, - com.google.container.v1.JwkOrBuilder> - getKeysFieldBuilder() { - if (keysBuilder_ == null) { - keysBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.Jwk, - com.google.container.v1.Jwk.Builder, - com.google.container.v1.JwkOrBuilder>( - keys_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - keys_ = null; - } - return keysBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.GetJSONWebKeysResponse) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.GetJSONWebKeysResponse) - private static final com.google.container.v1.GetJSONWebKeysResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.GetJSONWebKeysResponse(); - } - - public static com.google.container.v1.GetJSONWebKeysResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetJSONWebKeysResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.GetJSONWebKeysResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysResponseOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysResponseOrBuilder.java deleted file mode 100644 index d053d8891c5a..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysResponseOrBuilder.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface GetJSONWebKeysResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.GetJSONWebKeysResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The public component of the keys used by the cluster to sign token
-   * requests.
-   * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - java.util.List getKeysList(); - /** - * - * - *
-   * The public component of the keys used by the cluster to sign token
-   * requests.
-   * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - com.google.container.v1.Jwk getKeys(int index); - /** - * - * - *
-   * The public component of the keys used by the cluster to sign token
-   * requests.
-   * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - int getKeysCount(); - /** - * - * - *
-   * The public component of the keys used by the cluster to sign token
-   * requests.
-   * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - java.util.List getKeysOrBuilderList(); - /** - * - * - *
-   * The public component of the keys used by the cluster to sign token
-   * requests.
-   * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - com.google.container.v1.JwkOrBuilder getKeysOrBuilder(int index); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java deleted file mode 100644 index 6c448de26ddd..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java +++ /dev/null @@ -1,1499 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * GetNodePoolRequest retrieves a node pool for a cluster.
- * 
- * - * Protobuf type {@code google.container.v1.GetNodePoolRequest} - */ -public final class GetNodePoolRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetNodePoolRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetNodePoolRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GetNodePoolRequest.class, - com.google.container.v1.GetNodePoolRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3250 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3250 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object zone_ = ""; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3256 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3256 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object clusterId_ = ""; - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3260 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3260 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object nodePoolId_ = ""; - /** - * - * - *
-   * Deprecated. The name of the node pool.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3264 - * @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; - } - } - /** - * - * - *
-   * 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]; - * - * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3264 - * @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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.GetNodePoolRequest)) { - return super.equals(obj); - } - com.google.container.v1.GetNodePoolRequest other = - (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.GetNodePoolRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.GetNodePoolRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.GetNodePoolRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GetNodePoolRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GetNodePoolRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.GetNodePoolRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.GetNodePoolRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.GetNodePoolRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.GetNodePoolRequest) - com.google.container.v1.GetNodePoolRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetNodePoolRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetNodePoolRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GetNodePoolRequest.class, - com.google.container.v1.GetNodePoolRequest.Builder.class); - } - - // Construct using com.google.container.v1.GetNodePoolRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - nodePoolId_ = ""; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetNodePoolRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.GetNodePoolRequest getDefaultInstanceForType() { - return com.google.container.v1.GetNodePoolRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.GetNodePoolRequest build() { - com.google.container.v1.GetNodePoolRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.GetNodePoolRequest buildPartial() { - com.google.container.v1.GetNodePoolRequest result = - new com.google.container.v1.GetNodePoolRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.GetNodePoolRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.nodePoolId_ = nodePoolId_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.GetNodePoolRequest) { - return mergeFrom((com.google.container.v1.GetNodePoolRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.GetNodePoolRequest other) { - if (other == com.google.container.v1.GetNodePoolRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getNodePoolId().isEmpty()) { - nodePoolId_ = other.nodePoolId_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000010; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - nodePoolId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 50: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3250 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3250 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3250 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3250 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3250 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3256 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3256 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3256 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3256 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3256 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3260 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3260 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3260 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3260 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3260 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object nodePoolId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the node pool.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3264 - * @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; - } - } - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3264 - * @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; - } - } - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3264 - * @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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the node pool.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3264 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearNodePoolId() { - nodePoolId_ = getDefaultInstance().getNodePoolId(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the node pool.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3264 - * @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; - bitField0_ |= 0x00000008; - 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; - bitField0_ |= 0x00000010; - 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(); - bitField0_ = (bitField0_ & ~0x00000010); - 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; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.GetNodePoolRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.GetNodePoolRequest) - private static final com.google.container.v1.GetNodePoolRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.GetNodePoolRequest(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.GetNodePoolRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java deleted file mode 100644 index 645aec046037..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java +++ /dev/null @@ -1,193 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface GetNodePoolRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.GetNodePoolRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3250 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3250 - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3256 - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3256 - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3260 - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3260 - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getClusterIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the node pool.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3264 - * @return The nodePoolId. - */ - @java.lang.Deprecated - java.lang.String getNodePoolId(); - /** - * - * - *
-   * Deprecated. The name of the node pool.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3264 - * @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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigRequest.java deleted file mode 100644 index 95f56728830b..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigRequest.java +++ /dev/null @@ -1,633 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * GetOpenIDConfigRequest gets the OIDC discovery document for the
- * cluster. See the OpenID Connect Discovery 1.0 specification for details.
- * 
- * - * Protobuf type {@code google.container.v1.GetOpenIDConfigRequest} - */ -public final class GetOpenIDConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.GetOpenIDConfigRequest) - GetOpenIDConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetOpenIDConfigRequest.newBuilder() to construct. - private GetOpenIDConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetOpenIDConfigRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetOpenIDConfigRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetOpenIDConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetOpenIDConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GetOpenIDConfigRequest.class, - com.google.container.v1.GetOpenIDConfigRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - * - * - *
-   * The cluster (project, location, cluster name) 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 name) 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.GetOpenIDConfigRequest)) { - return super.equals(obj); - } - com.google.container.v1.GetOpenIDConfigRequest other = - (com.google.container.v1.GetOpenIDConfigRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.GetOpenIDConfigRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GetOpenIDConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GetOpenIDConfigRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GetOpenIDConfigRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GetOpenIDConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GetOpenIDConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GetOpenIDConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.GetOpenIDConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.GetOpenIDConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.GetOpenIDConfigRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.GetOpenIDConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.GetOpenIDConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.GetOpenIDConfigRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * GetOpenIDConfigRequest gets the OIDC discovery document for the
-   * cluster. See the OpenID Connect Discovery 1.0 specification for details.
-   * 
- * - * Protobuf type {@code google.container.v1.GetOpenIDConfigRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.GetOpenIDConfigRequest) - com.google.container.v1.GetOpenIDConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetOpenIDConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetOpenIDConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GetOpenIDConfigRequest.class, - com.google.container.v1.GetOpenIDConfigRequest.Builder.class); - } - - // Construct using com.google.container.v1.GetOpenIDConfigRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetOpenIDConfigRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.GetOpenIDConfigRequest getDefaultInstanceForType() { - return com.google.container.v1.GetOpenIDConfigRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.GetOpenIDConfigRequest build() { - com.google.container.v1.GetOpenIDConfigRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.GetOpenIDConfigRequest buildPartial() { - com.google.container.v1.GetOpenIDConfigRequest result = - new com.google.container.v1.GetOpenIDConfigRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.GetOpenIDConfigRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.GetOpenIDConfigRequest) { - return mergeFrom((com.google.container.v1.GetOpenIDConfigRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.GetOpenIDConfigRequest other) { - if (other == com.google.container.v1.GetOpenIDConfigRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * The cluster (project, location, cluster name) 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 name) 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 name) 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The cluster (project, location, cluster name) 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(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * The cluster (project, location, cluster name) 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.GetOpenIDConfigRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.GetOpenIDConfigRequest) - private static final com.google.container.v1.GetOpenIDConfigRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.GetOpenIDConfigRequest(); - } - - public static com.google.container.v1.GetOpenIDConfigRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetOpenIDConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.GetOpenIDConfigRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigRequestOrBuilder.java deleted file mode 100644 index 2858527dc460..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigRequestOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface GetOpenIDConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.GetOpenIDConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The cluster (project, location, cluster name) 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 name) 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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigResponse.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigResponse.java deleted file mode 100644 index 87d97565bad1..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigResponse.java +++ /dev/null @@ -1,2204 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * GetOpenIDConfigResponse is an OIDC discovery document for the cluster.
- * See the OpenID Connect Discovery 1.0 specification for details.
- * 
- * - * Protobuf type {@code google.container.v1.GetOpenIDConfigResponse} - */ -public final class GetOpenIDConfigResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.GetOpenIDConfigResponse) - GetOpenIDConfigResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetOpenIDConfigResponse.newBuilder() to construct. - private GetOpenIDConfigResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetOpenIDConfigResponse() { - issuer_ = ""; - jwksUri_ = ""; - responseTypesSupported_ = com.google.protobuf.LazyStringArrayList.emptyList(); - subjectTypesSupported_ = com.google.protobuf.LazyStringArrayList.emptyList(); - idTokenSigningAlgValuesSupported_ = com.google.protobuf.LazyStringArrayList.emptyList(); - claimsSupported_ = com.google.protobuf.LazyStringArrayList.emptyList(); - grantTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetOpenIDConfigResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetOpenIDConfigResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetOpenIDConfigResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GetOpenIDConfigResponse.class, - com.google.container.v1.GetOpenIDConfigResponse.Builder.class); - } - - public static final int ISSUER_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList responseTypesSupported_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList subjectTypesSupported_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList idTokenSigningAlgValuesSupported_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList claimsSupported_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList grantTypes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(issuer_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, issuer_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jwksUri_)) { - 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)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(issuer_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, issuer_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jwksUri_)) { - 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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.GetOpenIDConfigResponse)) { - return super.equals(obj); - } - com.google.container.v1.GetOpenIDConfigResponse other = - (com.google.container.v1.GetOpenIDConfigResponse) obj; - - if (!getIssuer().equals(other.getIssuer())) return false; - if (!getJwksUri().equals(other.getJwksUri())) return false; - if (!getResponseTypesSupportedList().equals(other.getResponseTypesSupportedList())) - return false; - if (!getSubjectTypesSupportedList().equals(other.getSubjectTypesSupportedList())) return false; - if (!getIdTokenSigningAlgValuesSupportedList() - .equals(other.getIdTokenSigningAlgValuesSupportedList())) return false; - if (!getClaimsSupportedList().equals(other.getClaimsSupportedList())) return false; - if (!getGrantTypesList().equals(other.getGrantTypesList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.GetOpenIDConfigResponse parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GetOpenIDConfigResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GetOpenIDConfigResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GetOpenIDConfigResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GetOpenIDConfigResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GetOpenIDConfigResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GetOpenIDConfigResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.GetOpenIDConfigResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.GetOpenIDConfigResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.GetOpenIDConfigResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.GetOpenIDConfigResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.GetOpenIDConfigResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.GetOpenIDConfigResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * GetOpenIDConfigResponse is an OIDC discovery document for the cluster.
-   * See the OpenID Connect Discovery 1.0 specification for details.
-   * 
- * - * Protobuf type {@code google.container.v1.GetOpenIDConfigResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.GetOpenIDConfigResponse) - com.google.container.v1.GetOpenIDConfigResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetOpenIDConfigResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetOpenIDConfigResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GetOpenIDConfigResponse.class, - com.google.container.v1.GetOpenIDConfigResponse.Builder.class); - } - - // Construct using com.google.container.v1.GetOpenIDConfigResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - issuer_ = ""; - jwksUri_ = ""; - responseTypesSupported_ = com.google.protobuf.LazyStringArrayList.emptyList(); - subjectTypesSupported_ = com.google.protobuf.LazyStringArrayList.emptyList(); - idTokenSigningAlgValuesSupported_ = com.google.protobuf.LazyStringArrayList.emptyList(); - claimsSupported_ = com.google.protobuf.LazyStringArrayList.emptyList(); - grantTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetOpenIDConfigResponse_descriptor; - } - - @java.lang.Override - public com.google.container.v1.GetOpenIDConfigResponse getDefaultInstanceForType() { - return com.google.container.v1.GetOpenIDConfigResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.GetOpenIDConfigResponse build() { - com.google.container.v1.GetOpenIDConfigResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.GetOpenIDConfigResponse buildPartial() { - com.google.container.v1.GetOpenIDConfigResponse result = - new com.google.container.v1.GetOpenIDConfigResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.GetOpenIDConfigResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.issuer_ = issuer_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.jwksUri_ = jwksUri_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - responseTypesSupported_.makeImmutable(); - result.responseTypesSupported_ = responseTypesSupported_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - subjectTypesSupported_.makeImmutable(); - result.subjectTypesSupported_ = subjectTypesSupported_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - idTokenSigningAlgValuesSupported_.makeImmutable(); - result.idTokenSigningAlgValuesSupported_ = idTokenSigningAlgValuesSupported_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - claimsSupported_.makeImmutable(); - result.claimsSupported_ = claimsSupported_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - grantTypes_.makeImmutable(); - result.grantTypes_ = grantTypes_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.GetOpenIDConfigResponse) { - return mergeFrom((com.google.container.v1.GetOpenIDConfigResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.GetOpenIDConfigResponse other) { - if (other == com.google.container.v1.GetOpenIDConfigResponse.getDefaultInstance()) - return this; - if (!other.getIssuer().isEmpty()) { - issuer_ = other.issuer_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getJwksUri().isEmpty()) { - jwksUri_ = other.jwksUri_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.responseTypesSupported_.isEmpty()) { - if (responseTypesSupported_.isEmpty()) { - responseTypesSupported_ = other.responseTypesSupported_; - bitField0_ |= 0x00000004; - } else { - ensureResponseTypesSupportedIsMutable(); - responseTypesSupported_.addAll(other.responseTypesSupported_); - } - onChanged(); - } - if (!other.subjectTypesSupported_.isEmpty()) { - if (subjectTypesSupported_.isEmpty()) { - subjectTypesSupported_ = other.subjectTypesSupported_; - bitField0_ |= 0x00000008; - } else { - ensureSubjectTypesSupportedIsMutable(); - subjectTypesSupported_.addAll(other.subjectTypesSupported_); - } - onChanged(); - } - if (!other.idTokenSigningAlgValuesSupported_.isEmpty()) { - if (idTokenSigningAlgValuesSupported_.isEmpty()) { - idTokenSigningAlgValuesSupported_ = other.idTokenSigningAlgValuesSupported_; - bitField0_ |= 0x00000010; - } else { - ensureIdTokenSigningAlgValuesSupportedIsMutable(); - idTokenSigningAlgValuesSupported_.addAll(other.idTokenSigningAlgValuesSupported_); - } - onChanged(); - } - if (!other.claimsSupported_.isEmpty()) { - if (claimsSupported_.isEmpty()) { - claimsSupported_ = other.claimsSupported_; - bitField0_ |= 0x00000020; - } else { - ensureClaimsSupportedIsMutable(); - claimsSupported_.addAll(other.claimsSupported_); - } - onChanged(); - } - if (!other.grantTypes_.isEmpty()) { - if (grantTypes_.isEmpty()) { - grantTypes_ = other.grantTypes_; - bitField0_ |= 0x00000040; - } else { - ensureGrantTypesIsMutable(); - grantTypes_.addAll(other.grantTypes_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - issuer_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - jwksUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureResponseTypesSupportedIsMutable(); - responseTypesSupported_.add(s); - break; - } // case 26 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureSubjectTypesSupportedIsMutable(); - subjectTypesSupported_.add(s); - break; - } // case 34 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureIdTokenSigningAlgValuesSupportedIsMutable(); - idTokenSigningAlgValuesSupported_.add(s); - break; - } // case 42 - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureClaimsSupportedIsMutable(); - claimsSupported_.add(s); - break; - } // case 50 - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureGrantTypesIsMutable(); - grantTypes_.add(s); - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * OIDC Issuer.
-     * 
- * - * string issuer = 1; - * - * @return This builder for chaining. - */ - public Builder clearIssuer() { - issuer_ = getDefaultInstance().getIssuer(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * JSON Web Key uri.
-     * 
- * - * string jwks_uri = 2; - * - * @return This builder for chaining. - */ - public Builder clearJwksUri() { - jwksUri_ = getDefaultInstance().getJwksUri(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList responseTypesSupported_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureResponseTypesSupportedIsMutable() { - if (!responseTypesSupported_.isModifiable()) { - responseTypesSupported_ = - new com.google.protobuf.LazyStringArrayList(responseTypesSupported_); - } - bitField0_ |= 0x00000004; - } - /** - * - * - *
-     * Supported response types.
-     * 
- * - * repeated string response_types_supported = 3; - * - * @return A list containing the responseTypesSupported. - */ - public com.google.protobuf.ProtocolStringList getResponseTypesSupportedList() { - responseTypesSupported_.makeImmutable(); - 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); - } - /** - * - * - *
-     * 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); - bitField0_ |= 0x00000004; - 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); - bitField0_ |= 0x00000004; - 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_); - bitField0_ |= 0x00000004; - 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.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; - 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); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList subjectTypesSupported_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureSubjectTypesSupportedIsMutable() { - if (!subjectTypesSupported_.isModifiable()) { - subjectTypesSupported_ = - new com.google.protobuf.LazyStringArrayList(subjectTypesSupported_); - } - bitField0_ |= 0x00000008; - } - /** - * - * - *
-     * Supported subject types.
-     * 
- * - * repeated string subject_types_supported = 4; - * - * @return A list containing the subjectTypesSupported. - */ - public com.google.protobuf.ProtocolStringList getSubjectTypesSupportedList() { - subjectTypesSupported_.makeImmutable(); - 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); - } - /** - * - * - *
-     * 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); - bitField0_ |= 0x00000008; - 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); - bitField0_ |= 0x00000008; - 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_); - bitField0_ |= 0x00000008; - 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.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - ; - 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); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList idTokenSigningAlgValuesSupported_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureIdTokenSigningAlgValuesSupportedIsMutable() { - if (!idTokenSigningAlgValuesSupported_.isModifiable()) { - idTokenSigningAlgValuesSupported_ = - new com.google.protobuf.LazyStringArrayList(idTokenSigningAlgValuesSupported_); - } - bitField0_ |= 0x00000010; - } - /** - * - * - *
-     * 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() { - idTokenSigningAlgValuesSupported_.makeImmutable(); - 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); - } - /** - * - * - *
-     * 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); - bitField0_ |= 0x00000010; - 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); - bitField0_ |= 0x00000010; - 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_); - bitField0_ |= 0x00000010; - 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.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - ; - 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); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList claimsSupported_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureClaimsSupportedIsMutable() { - if (!claimsSupported_.isModifiable()) { - claimsSupported_ = new com.google.protobuf.LazyStringArrayList(claimsSupported_); - } - bitField0_ |= 0x00000020; - } - /** - * - * - *
-     * Supported claims.
-     * 
- * - * repeated string claims_supported = 6; - * - * @return A list containing the claimsSupported. - */ - public com.google.protobuf.ProtocolStringList getClaimsSupportedList() { - claimsSupported_.makeImmutable(); - 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); - } - /** - * - * - *
-     * 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); - bitField0_ |= 0x00000020; - 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); - bitField0_ |= 0x00000020; - 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_); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * Supported claims.
-     * 
- * - * repeated string claims_supported = 6; - * - * @return This builder for chaining. - */ - public Builder clearClaimsSupported() { - claimsSupported_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - ; - 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); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList grantTypes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureGrantTypesIsMutable() { - if (!grantTypes_.isModifiable()) { - grantTypes_ = new com.google.protobuf.LazyStringArrayList(grantTypes_); - } - bitField0_ |= 0x00000040; - } - /** - * - * - *
-     * Supported grant types.
-     * 
- * - * repeated string grant_types = 7; - * - * @return A list containing the grantTypes. - */ - public com.google.protobuf.ProtocolStringList getGrantTypesList() { - grantTypes_.makeImmutable(); - 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); - } - /** - * - * - *
-     * 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); - bitField0_ |= 0x00000040; - 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); - bitField0_ |= 0x00000040; - 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_); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-     * Supported grant types.
-     * 
- * - * repeated string grant_types = 7; - * - * @return This builder for chaining. - */ - public Builder clearGrantTypes() { - grantTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - ; - 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); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.GetOpenIDConfigResponse) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.GetOpenIDConfigResponse) - private static final com.google.container.v1.GetOpenIDConfigResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.GetOpenIDConfigResponse(); - } - - public static com.google.container.v1.GetOpenIDConfigResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetOpenIDConfigResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.GetOpenIDConfigResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigResponseOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigResponseOrBuilder.java deleted file mode 100644 index 38ccd16bcfbd..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigResponseOrBuilder.java +++ /dev/null @@ -1,331 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface GetOpenIDConfigResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.GetOpenIDConfigResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * OIDC Issuer.
-   * 
- * - * string issuer = 1; - * - * @return The issuer. - */ - java.lang.String getIssuer(); - /** - * - * - *
-   * OIDC Issuer.
-   * 
- * - * string issuer = 1; - * - * @return The bytes for issuer. - */ - com.google.protobuf.ByteString getIssuerBytes(); - - /** - * - * - *
-   * JSON Web Key uri.
-   * 
- * - * string jwks_uri = 2; - * - * @return The jwksUri. - */ - java.lang.String getJwksUri(); - /** - * - * - *
-   * JSON Web Key uri.
-   * 
- * - * string jwks_uri = 2; - * - * @return The bytes for jwksUri. - */ - com.google.protobuf.ByteString getJwksUriBytes(); - - /** - * - * - *
-   * Supported response types.
-   * 
- * - * repeated string response_types_supported = 3; - * - * @return A list containing the responseTypesSupported. - */ - java.util.List getResponseTypesSupportedList(); - /** - * - * - *
-   * Supported response types.
-   * 
- * - * repeated string response_types_supported = 3; - * - * @return The count of responseTypesSupported. - */ - int getResponseTypesSupportedCount(); - /** - * - * - *
-   * Supported response types.
-   * 
- * - * repeated string response_types_supported = 3; - * - * @param index The index of the element to return. - * @return The responseTypesSupported at the given index. - */ - java.lang.String getResponseTypesSupported(int index); - /** - * - * - *
-   * Supported response types.
-   * 
- * - * repeated string response_types_supported = 3; - * - * @param index The index of the value to return. - * @return The bytes of the responseTypesSupported at the given index. - */ - com.google.protobuf.ByteString getResponseTypesSupportedBytes(int index); - - /** - * - * - *
-   * Supported subject types.
-   * 
- * - * repeated string subject_types_supported = 4; - * - * @return A list containing the subjectTypesSupported. - */ - java.util.List getSubjectTypesSupportedList(); - /** - * - * - *
-   * Supported subject types.
-   * 
- * - * repeated string subject_types_supported = 4; - * - * @return The count of subjectTypesSupported. - */ - int getSubjectTypesSupportedCount(); - /** - * - * - *
-   * Supported subject types.
-   * 
- * - * repeated string subject_types_supported = 4; - * - * @param index The index of the element to return. - * @return The subjectTypesSupported at the given index. - */ - java.lang.String getSubjectTypesSupported(int index); - /** - * - * - *
-   * Supported subject types.
-   * 
- * - * repeated string subject_types_supported = 4; - * - * @param index The index of the value to return. - * @return The bytes of the subjectTypesSupported at the given index. - */ - com.google.protobuf.ByteString getSubjectTypesSupportedBytes(int index); - - /** - * - * - *
-   * supported ID Token signing Algorithms.
-   * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * - * @return A list containing the idTokenSigningAlgValuesSupported. - */ - java.util.List getIdTokenSigningAlgValuesSupportedList(); - /** - * - * - *
-   * supported ID Token signing Algorithms.
-   * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * - * @return The count of idTokenSigningAlgValuesSupported. - */ - int getIdTokenSigningAlgValuesSupportedCount(); - /** - * - * - *
-   * supported ID Token signing Algorithms.
-   * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * - * @param index The index of the element to return. - * @return The idTokenSigningAlgValuesSupported at the given index. - */ - java.lang.String getIdTokenSigningAlgValuesSupported(int index); - /** - * - * - *
-   * supported ID Token signing Algorithms.
-   * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * - * @param index The index of the value to return. - * @return The bytes of the idTokenSigningAlgValuesSupported at the given index. - */ - com.google.protobuf.ByteString getIdTokenSigningAlgValuesSupportedBytes(int index); - - /** - * - * - *
-   * Supported claims.
-   * 
- * - * repeated string claims_supported = 6; - * - * @return A list containing the claimsSupported. - */ - java.util.List getClaimsSupportedList(); - /** - * - * - *
-   * Supported claims.
-   * 
- * - * repeated string claims_supported = 6; - * - * @return The count of claimsSupported. - */ - int getClaimsSupportedCount(); - /** - * - * - *
-   * Supported claims.
-   * 
- * - * repeated string claims_supported = 6; - * - * @param index The index of the element to return. - * @return The claimsSupported at the given index. - */ - java.lang.String getClaimsSupported(int index); - /** - * - * - *
-   * Supported claims.
-   * 
- * - * repeated string claims_supported = 6; - * - * @param index The index of the value to return. - * @return The bytes of the claimsSupported at the given index. - */ - com.google.protobuf.ByteString getClaimsSupportedBytes(int index); - - /** - * - * - *
-   * Supported grant types.
-   * 
- * - * repeated string grant_types = 7; - * - * @return A list containing the grantTypes. - */ - java.util.List getGrantTypesList(); - /** - * - * - *
-   * Supported grant types.
-   * 
- * - * repeated string grant_types = 7; - * - * @return The count of grantTypes. - */ - int getGrantTypesCount(); - /** - * - * - *
-   * Supported grant types.
-   * 
- * - * repeated string grant_types = 7; - * - * @param index The index of the element to return. - * @return The grantTypes at the given index. - */ - java.lang.String getGrantTypes(int index); - /** - * - * - *
-   * Supported grant types.
-   * 
- * - * repeated string grant_types = 7; - * - * @param index The index of the value to return. - * @return The bytes of the grantTypes at the given index. - */ - com.google.protobuf.ByteString getGrantTypesBytes(int index); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java deleted file mode 100644 index 080839185379..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java +++ /dev/null @@ -1,1282 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * GetOperationRequest gets a single operation.
- * 
- * - * Protobuf type {@code google.container.v1.GetOperationRequest} - */ -public final class GetOperationRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetOperationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetOperationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GetOperationRequest.class, - com.google.container.v1.GetOperationRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3051 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3051 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object zone_ = ""; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3057 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3057 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object operationId_ = ""; - /** - * - * - *
-   * Deprecated. The server-assigned `name` of the operation.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string operation_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3061 - * @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; - } - } - /** - * - * - *
-   * 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]; - * - * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3061 - * @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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, operationId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, operationId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.GetOperationRequest)) { - return super.equals(obj); - } - com.google.container.v1.GetOperationRequest other = - (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.GetOperationRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.GetOperationRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.GetOperationRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GetOperationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GetOperationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.GetOperationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.GetOperationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.GetOperationRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.GetOperationRequest) - com.google.container.v1.GetOperationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetOperationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetOperationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GetOperationRequest.class, - com.google.container.v1.GetOperationRequest.Builder.class); - } - - // Construct using com.google.container.v1.GetOperationRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - operationId_ = ""; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetOperationRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.GetOperationRequest getDefaultInstanceForType() { - return com.google.container.v1.GetOperationRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.GetOperationRequest build() { - com.google.container.v1.GetOperationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.GetOperationRequest buildPartial() { - com.google.container.v1.GetOperationRequest result = - new com.google.container.v1.GetOperationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.GetOperationRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.operationId_ = operationId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.GetOperationRequest) { - return mergeFrom((com.google.container.v1.GetOperationRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.GetOperationRequest other) { - if (other == com.google.container.v1.GetOperationRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getOperationId().isEmpty()) { - operationId_ = other.operationId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000008; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - operationId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 42: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3051 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3051 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3051 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3051 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3051 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3057 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3057 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3057 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3057 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3057 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object operationId_ = ""; - /** - * - * - *
-     * Deprecated. The server-assigned `name` of the operation.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string operation_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3061 - * @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; - } - } - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3061 - * @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; - } - } - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3061 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The server-assigned `name` of the operation.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string operation_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3061 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearOperationId() { - operationId_ = getDefaultInstance().getOperationId(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The server-assigned `name` of the operation.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string operation_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3061 - * @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; - bitField0_ |= 0x00000004; - 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; - bitField0_ |= 0x00000008; - 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(); - bitField0_ = (bitField0_ & ~0x00000008); - 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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.GetOperationRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.GetOperationRequest) - private static final com.google.container.v1.GetOperationRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.GetOperationRequest(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.GetOperationRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java deleted file mode 100644 index e602859f07e2..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface GetOperationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.GetOperationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3051 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3051 - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3057 - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3057 - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The server-assigned `name` of the operation.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string operation_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3061 - * @return The operationId. - */ - @java.lang.Deprecated - java.lang.String getOperationId(); - /** - * - * - *
-   * Deprecated. The server-assigned `name` of the operation.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string operation_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3061 - * @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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java deleted file mode 100644 index eef9ec112737..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java +++ /dev/null @@ -1,1072 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Gets the current Kubernetes Engine service configuration.
- * 
- * - * Protobuf type {@code google.container.v1.GetServerConfigRequest} - */ -public final class GetServerConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetServerConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetServerConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GetServerConfigRequest.class, - com.google.container.v1.GetServerConfigRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3124 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3124 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object zone_ = ""; - /** - * - * - *
-   * 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]; - * - * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3130 - * @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; - } - } - /** - * - * - *
-   * 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]; - * - * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3130 - * @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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.GetServerConfigRequest)) { - return super.equals(obj); - } - com.google.container.v1.GetServerConfigRequest other = - (com.google.container.v1.GetServerConfigRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getZone().equals(other.getZone())) return false; - if (!getName().equals(other.getName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.GetServerConfigRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.GetServerConfigRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.GetServerConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GetServerConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GetServerConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.GetServerConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.GetServerConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.GetServerConfigRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.GetServerConfigRequest) - com.google.container.v1.GetServerConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetServerConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetServerConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GetServerConfigRequest.class, - com.google.container.v1.GetServerConfigRequest.Builder.class); - } - - // Construct using com.google.container.v1.GetServerConfigRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetServerConfigRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.GetServerConfigRequest getDefaultInstanceForType() { - return com.google.container.v1.GetServerConfigRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.GetServerConfigRequest build() { - com.google.container.v1.GetServerConfigRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.GetServerConfigRequest buildPartial() { - com.google.container.v1.GetServerConfigRequest result = - new com.google.container.v1.GetServerConfigRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.GetServerConfigRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.GetServerConfigRequest) { - return mergeFrom((com.google.container.v1.GetServerConfigRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.GetServerConfigRequest other) { - if (other == com.google.container.v1.GetServerConfigRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 34: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3124 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3124 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3124 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3124 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3124 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3130 - * @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; - } - } - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3130 - * @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; - } - } - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3130 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3130 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3130 - * @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; - bitField0_ |= 0x00000002; - 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; - bitField0_ |= 0x00000004; - 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(); - bitField0_ = (bitField0_ & ~0x00000004); - 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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.GetServerConfigRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.GetServerConfigRequest) - private static final com.google.container.v1.GetServerConfigRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.GetServerConfigRequest(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.GetServerConfigRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java deleted file mode 100644 index 7399c3ceeb63..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java +++ /dev/null @@ -1,125 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface GetServerConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.GetServerConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3124 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3124 - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) to return
-   * operations for. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3130 - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) to return
-   * operations for. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3130 - * @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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GkeBackupAgentConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GkeBackupAgentConfig.java deleted file mode 100644 index a1182dedeeab..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GkeBackupAgentConfig.java +++ /dev/null @@ -1,534 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Configuration for the Backup for GKE Agent.
- * 
- * - * Protobuf type {@code google.container.v1.GkeBackupAgentConfig} - */ -public final class GkeBackupAgentConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.GkeBackupAgentConfig) - GkeBackupAgentConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use GkeBackupAgentConfig.newBuilder() to construct. - private GkeBackupAgentConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GkeBackupAgentConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GkeBackupAgentConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GkeBackupAgentConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GkeBackupAgentConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GkeBackupAgentConfig.class, - com.google.container.v1.GkeBackupAgentConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * Whether the Backup for GKE agent is enabled for this cluster.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.GkeBackupAgentConfig)) { - return super.equals(obj); - } - com.google.container.v1.GkeBackupAgentConfig other = - (com.google.container.v1.GkeBackupAgentConfig) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.GkeBackupAgentConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GkeBackupAgentConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GkeBackupAgentConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GkeBackupAgentConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GkeBackupAgentConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GkeBackupAgentConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GkeBackupAgentConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.GkeBackupAgentConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.GkeBackupAgentConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.GkeBackupAgentConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.GkeBackupAgentConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.GkeBackupAgentConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.GkeBackupAgentConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Configuration for the Backup for GKE Agent.
-   * 
- * - * Protobuf type {@code google.container.v1.GkeBackupAgentConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.GkeBackupAgentConfig) - com.google.container.v1.GkeBackupAgentConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GkeBackupAgentConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GkeBackupAgentConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GkeBackupAgentConfig.class, - com.google.container.v1.GkeBackupAgentConfig.Builder.class); - } - - // Construct using com.google.container.v1.GkeBackupAgentConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enabled_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GkeBackupAgentConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.GkeBackupAgentConfig getDefaultInstanceForType() { - return com.google.container.v1.GkeBackupAgentConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.GkeBackupAgentConfig build() { - com.google.container.v1.GkeBackupAgentConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.GkeBackupAgentConfig buildPartial() { - com.google.container.v1.GkeBackupAgentConfig result = - new com.google.container.v1.GkeBackupAgentConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.GkeBackupAgentConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.GkeBackupAgentConfig) { - return mergeFrom((com.google.container.v1.GkeBackupAgentConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.GkeBackupAgentConfig other) { - if (other == com.google.container.v1.GkeBackupAgentConfig.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean enabled_; - /** - * - * - *
-     * Whether the Backup for GKE agent is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Whether the Backup for GKE agent is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether the Backup for GKE agent is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - enabled_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.GkeBackupAgentConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.GkeBackupAgentConfig) - private static final com.google.container.v1.GkeBackupAgentConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.GkeBackupAgentConfig(); - } - - public static com.google.container.v1.GkeBackupAgentConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GkeBackupAgentConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.GkeBackupAgentConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GkeBackupAgentConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GkeBackupAgentConfigOrBuilder.java deleted file mode 100644 index 527cb25b3520..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GkeBackupAgentConfigOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface GkeBackupAgentConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.GkeBackupAgentConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether the Backup for GKE agent is enabled for this cluster.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HorizontalPodAutoscaling.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HorizontalPodAutoscaling.java deleted file mode 100644 index 97dff27da4d6..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HorizontalPodAutoscaling.java +++ /dev/null @@ -1,547 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * 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.v1.HorizontalPodAutoscaling} - */ -public final class HorizontalPodAutoscaling extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_HorizontalPodAutoscaling_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_HorizontalPodAutoscaling_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.HorizontalPodAutoscaling.class, - com.google.container.v1.HorizontalPodAutoscaling.Builder.class); - } - - public static final int DISABLED_FIELD_NUMBER = 1; - private boolean disabled_ = false; - /** - * - * - *
-   * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.HorizontalPodAutoscaling)) { - return super.equals(obj); - } - com.google.container.v1.HorizontalPodAutoscaling other = - (com.google.container.v1.HorizontalPodAutoscaling) obj; - - if (getDisabled() != other.getDisabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.HorizontalPodAutoscaling parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.HorizontalPodAutoscaling parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.HorizontalPodAutoscaling parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.HorizontalPodAutoscaling parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.HorizontalPodAutoscaling parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.HorizontalPodAutoscaling parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.HorizontalPodAutoscaling parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.HorizontalPodAutoscaling} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.HorizontalPodAutoscaling) - com.google.container.v1.HorizontalPodAutoscalingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_HorizontalPodAutoscaling_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_HorizontalPodAutoscaling_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.HorizontalPodAutoscaling.class, - com.google.container.v1.HorizontalPodAutoscaling.Builder.class); - } - - // Construct using com.google.container.v1.HorizontalPodAutoscaling.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - disabled_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_HorizontalPodAutoscaling_descriptor; - } - - @java.lang.Override - public com.google.container.v1.HorizontalPodAutoscaling getDefaultInstanceForType() { - return com.google.container.v1.HorizontalPodAutoscaling.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.HorizontalPodAutoscaling build() { - com.google.container.v1.HorizontalPodAutoscaling result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.HorizontalPodAutoscaling buildPartial() { - com.google.container.v1.HorizontalPodAutoscaling result = - new com.google.container.v1.HorizontalPodAutoscaling(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.HorizontalPodAutoscaling result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.disabled_ = disabled_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.HorizontalPodAutoscaling) { - return mergeFrom((com.google.container.v1.HorizontalPodAutoscaling) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.HorizontalPodAutoscaling other) { - if (other == com.google.container.v1.HorizontalPodAutoscaling.getDefaultInstance()) - return this; - if (other.getDisabled() != false) { - setDisabled(other.getDisabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - disabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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() { - bitField0_ = (bitField0_ & ~0x00000001); - disabled_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.HorizontalPodAutoscaling) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.HorizontalPodAutoscaling) - private static final com.google.container.v1.HorizontalPodAutoscaling DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.HorizontalPodAutoscaling(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.HorizontalPodAutoscaling getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HorizontalPodAutoscalingOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HorizontalPodAutoscalingOrBuilder.java deleted file mode 100644 index 0ab6982c72dd..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HorizontalPodAutoscalingOrBuilder.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface HorizontalPodAutoscalingOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HttpLoadBalancing.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HttpLoadBalancing.java deleted file mode 100644 index 91205363314c..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HttpLoadBalancing.java +++ /dev/null @@ -1,544 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * 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.v1.HttpLoadBalancing} - */ -public final class HttpLoadBalancing extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_HttpLoadBalancing_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_HttpLoadBalancing_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.HttpLoadBalancing.class, - com.google.container.v1.HttpLoadBalancing.Builder.class); - } - - public static final int DISABLED_FIELD_NUMBER = 1; - private boolean disabled_ = false; - /** - * - * - *
-   * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.HttpLoadBalancing)) { - return super.equals(obj); - } - com.google.container.v1.HttpLoadBalancing other = - (com.google.container.v1.HttpLoadBalancing) obj; - - if (getDisabled() != other.getDisabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.HttpLoadBalancing parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.HttpLoadBalancing parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.HttpLoadBalancing parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.HttpLoadBalancing parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.HttpLoadBalancing parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.HttpLoadBalancing parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.HttpLoadBalancing parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.HttpLoadBalancing} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.HttpLoadBalancing) - com.google.container.v1.HttpLoadBalancingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_HttpLoadBalancing_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_HttpLoadBalancing_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.HttpLoadBalancing.class, - com.google.container.v1.HttpLoadBalancing.Builder.class); - } - - // Construct using com.google.container.v1.HttpLoadBalancing.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - disabled_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_HttpLoadBalancing_descriptor; - } - - @java.lang.Override - public com.google.container.v1.HttpLoadBalancing getDefaultInstanceForType() { - return com.google.container.v1.HttpLoadBalancing.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.HttpLoadBalancing build() { - com.google.container.v1.HttpLoadBalancing result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.HttpLoadBalancing buildPartial() { - com.google.container.v1.HttpLoadBalancing result = - new com.google.container.v1.HttpLoadBalancing(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.HttpLoadBalancing result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.disabled_ = disabled_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.HttpLoadBalancing) { - return mergeFrom((com.google.container.v1.HttpLoadBalancing) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.HttpLoadBalancing other) { - if (other == com.google.container.v1.HttpLoadBalancing.getDefaultInstance()) return this; - if (other.getDisabled() != false) { - setDisabled(other.getDisabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - disabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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() { - bitField0_ = (bitField0_ & ~0x00000001); - disabled_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.HttpLoadBalancing) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.HttpLoadBalancing) - private static final com.google.container.v1.HttpLoadBalancing DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.HttpLoadBalancing(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.HttpLoadBalancing getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HttpLoadBalancingOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HttpLoadBalancingOrBuilder.java deleted file mode 100644 index 7f399fab0f93..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HttpLoadBalancingOrBuilder.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface HttpLoadBalancingOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ILBSubsettingConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ILBSubsettingConfig.java deleted file mode 100644 index 9b2357212fae..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ILBSubsettingConfig.java +++ /dev/null @@ -1,536 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * ILBSubsettingConfig contains the desired config of L4 Internal LoadBalancer
- * subsetting on this cluster.
- * 
- * - * Protobuf type {@code google.container.v1.ILBSubsettingConfig} - */ -public final class ILBSubsettingConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.ILBSubsettingConfig) - ILBSubsettingConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use ILBSubsettingConfig.newBuilder() to construct. - private ILBSubsettingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ILBSubsettingConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ILBSubsettingConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ILBSubsettingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ILBSubsettingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ILBSubsettingConfig.class, - com.google.container.v1.ILBSubsettingConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * Enables l4 ILB subsetting for this cluster.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.ILBSubsettingConfig)) { - return super.equals(obj); - } - com.google.container.v1.ILBSubsettingConfig other = - (com.google.container.v1.ILBSubsettingConfig) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ILBSubsettingConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ILBSubsettingConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ILBSubsettingConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ILBSubsettingConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ILBSubsettingConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ILBSubsettingConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ILBSubsettingConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ILBSubsettingConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ILBSubsettingConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.ILBSubsettingConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ILBSubsettingConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ILBSubsettingConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.ILBSubsettingConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * ILBSubsettingConfig contains the desired config of L4 Internal LoadBalancer
-   * subsetting on this cluster.
-   * 
- * - * Protobuf type {@code google.container.v1.ILBSubsettingConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ILBSubsettingConfig) - com.google.container.v1.ILBSubsettingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ILBSubsettingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ILBSubsettingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ILBSubsettingConfig.class, - com.google.container.v1.ILBSubsettingConfig.Builder.class); - } - - // Construct using com.google.container.v1.ILBSubsettingConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enabled_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ILBSubsettingConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ILBSubsettingConfig getDefaultInstanceForType() { - return com.google.container.v1.ILBSubsettingConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ILBSubsettingConfig build() { - com.google.container.v1.ILBSubsettingConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ILBSubsettingConfig buildPartial() { - com.google.container.v1.ILBSubsettingConfig result = - new com.google.container.v1.ILBSubsettingConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.ILBSubsettingConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ILBSubsettingConfig) { - return mergeFrom((com.google.container.v1.ILBSubsettingConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ILBSubsettingConfig other) { - if (other == com.google.container.v1.ILBSubsettingConfig.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean enabled_; - /** - * - * - *
-     * Enables l4 ILB subsetting for this cluster.
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Enables l4 ILB subsetting for this cluster.
-     * 
- * - * bool enabled = 1; - * - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Enables l4 ILB subsetting for this cluster.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - enabled_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.ILBSubsettingConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ILBSubsettingConfig) - private static final com.google.container.v1.ILBSubsettingConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ILBSubsettingConfig(); - } - - public static com.google.container.v1.ILBSubsettingConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ILBSubsettingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.ILBSubsettingConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ILBSubsettingConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ILBSubsettingConfigOrBuilder.java deleted file mode 100644 index 576159497c8e..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ILBSubsettingConfigOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface ILBSubsettingConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ILBSubsettingConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Enables l4 ILB subsetting for this cluster.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java deleted file mode 100644 index 2c724040be9d..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java +++ /dev/null @@ -1,4691 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Configuration for controlling how IPs are allocated in the cluster.
- * 
- * - * Protobuf type {@code google.container.v1.IPAllocationPolicy} - */ -public final class IPAllocationPolicy extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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_ = ""; - stackType_ = 0; - ipv6AccessType_ = 0; - subnetIpv6CidrBlock_ = ""; - servicesIpv6CidrBlock_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new IPAllocationPolicy(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_IPAllocationPolicy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_IPAllocationPolicy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.IPAllocationPolicy.class, - com.google.container.v1.IPAllocationPolicy.Builder.class); - } - - private int bitField0_; - public static final int USE_IP_ALIASES_FIELD_NUMBER = 1; - private boolean useIpAliases_ = false; - /** - * - * - *
-   * 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_ = false; - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object clusterIpv4Cidr_ = ""; - /** - * - * - *
-   * This field is deprecated, use cluster_ipv4_cidr_block.
-   * 
- * - * string cluster_ipv4_cidr = 4 [deprecated = true]; - * - * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1474 - * @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]; - * - * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1474 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object nodeIpv4Cidr_ = ""; - /** - * - * - *
-   * This field is deprecated, use node_ipv4_cidr_block.
-   * 
- * - * string node_ipv4_cidr = 5 [deprecated = true]; - * - * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1477 - * @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]; - * - * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1477 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object servicesIpv4Cidr_ = ""; - /** - * - * - *
-   * This field is deprecated, use services_ipv4_cidr_block.
-   * 
- * - * string services_ipv4_cidr = 6 [deprecated = true]; - * - * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1480 - * @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]; - * - * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1480 - * @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; - - @SuppressWarnings("serial") - 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 is true 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 is true 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object servicesSecondaryRangeName_ = ""; - /** - * - * - *
-   * The name of the secondary range to be used as for the services
-   * CIDR block.  The secondary range will be used for service
-   * ClusterIPs. This must be an existing secondary range associated
-   * with the cluster subnetwork.
-   *
-   * This field is only applicable with use_ip_aliases is true and
-   * create_subnetwork is false.
-   * 
- * - * string services_secondary_range_name = 8; - * - * @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 is true 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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 TPU_IPV4_CIDR_BLOCK_FIELD_NUMBER = 13; - - @SuppressWarnings("serial") - private volatile java.lang.Object tpuIpv4CidrBlock_ = ""; - /** - * - * - *
-   * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
-   * range will be automatically chosen with the default size.
-   *
-   * This field is only applicable when `use_ip_aliases` is true.
-   *
-   * If unspecified, the range will use the default size.
-   *
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   *
-   * Set to a
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-   * to use.
-   * 
- * - * string tpu_ipv4_cidr_block = 13; - * - * @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.
-   * 
- * - * 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_ = false; - /** - * - * - *
-   * 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_; - } - - public static final int STACK_TYPE_FIELD_NUMBER = 16; - private int stackType_ = 0; - /** - * - * - *
-   * The IP stack type of the cluster
-   * 
- * - * .google.container.v1.StackType stack_type = 16; - * - * @return The enum numeric value on the wire for stackType. - */ - @java.lang.Override - public int getStackTypeValue() { - return stackType_; - } - /** - * - * - *
-   * The IP stack type of the cluster
-   * 
- * - * .google.container.v1.StackType stack_type = 16; - * - * @return The stackType. - */ - @java.lang.Override - public com.google.container.v1.StackType getStackType() { - com.google.container.v1.StackType result = - com.google.container.v1.StackType.forNumber(stackType_); - return result == null ? com.google.container.v1.StackType.UNRECOGNIZED : result; - } - - public static final int IPV6_ACCESS_TYPE_FIELD_NUMBER = 17; - private int ipv6AccessType_ = 0; - /** - * - * - *
-   * The ipv6 access type (internal or external) when create_subnetwork is true
-   * 
- * - * .google.container.v1.IPv6AccessType ipv6_access_type = 17; - * - * @return The enum numeric value on the wire for ipv6AccessType. - */ - @java.lang.Override - public int getIpv6AccessTypeValue() { - return ipv6AccessType_; - } - /** - * - * - *
-   * The ipv6 access type (internal or external) when create_subnetwork is true
-   * 
- * - * .google.container.v1.IPv6AccessType ipv6_access_type = 17; - * - * @return The ipv6AccessType. - */ - @java.lang.Override - public com.google.container.v1.IPv6AccessType getIpv6AccessType() { - com.google.container.v1.IPv6AccessType result = - com.google.container.v1.IPv6AccessType.forNumber(ipv6AccessType_); - return result == null ? com.google.container.v1.IPv6AccessType.UNRECOGNIZED : result; - } - - public static final int POD_CIDR_OVERPROVISION_CONFIG_FIELD_NUMBER = 21; - private com.google.container.v1.PodCIDROverprovisionConfig podCidrOverprovisionConfig_; - /** - * - * - *
-   * [PRIVATE FIELD]
-   * Pod CIDR size overprovisioning config for the cluster.
-   *
-   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-   * of max_pods_per_node is doubled and then rounded off to next power of 2 to
-   * get the size of pod CIDR block per node.
-   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-   *
-   * This config can disable the doubling of IPs (we still round off to next
-   * power of 2)
-   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-   * overprovisioning is disabled.
-   * 
- * - * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; - * - * - * @return Whether the podCidrOverprovisionConfig field is set. - */ - @java.lang.Override - public boolean hasPodCidrOverprovisionConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * [PRIVATE FIELD]
-   * Pod CIDR size overprovisioning config for the cluster.
-   *
-   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-   * of max_pods_per_node is doubled and then rounded off to next power of 2 to
-   * get the size of pod CIDR block per node.
-   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-   *
-   * This config can disable the doubling of IPs (we still round off to next
-   * power of 2)
-   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-   * overprovisioning is disabled.
-   * 
- * - * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; - * - * - * @return The podCidrOverprovisionConfig. - */ - @java.lang.Override - public com.google.container.v1.PodCIDROverprovisionConfig getPodCidrOverprovisionConfig() { - return podCidrOverprovisionConfig_ == null - ? com.google.container.v1.PodCIDROverprovisionConfig.getDefaultInstance() - : podCidrOverprovisionConfig_; - } - /** - * - * - *
-   * [PRIVATE FIELD]
-   * Pod CIDR size overprovisioning config for the cluster.
-   *
-   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-   * of max_pods_per_node is doubled and then rounded off to next power of 2 to
-   * get the size of pod CIDR block per node.
-   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-   *
-   * This config can disable the doubling of IPs (we still round off to next
-   * power of 2)
-   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-   * overprovisioning is disabled.
-   * 
- * - * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; - * - */ - @java.lang.Override - public com.google.container.v1.PodCIDROverprovisionConfigOrBuilder - getPodCidrOverprovisionConfigOrBuilder() { - return podCidrOverprovisionConfig_ == null - ? com.google.container.v1.PodCIDROverprovisionConfig.getDefaultInstance() - : podCidrOverprovisionConfig_; - } - - public static final int SUBNET_IPV6_CIDR_BLOCK_FIELD_NUMBER = 22; - - @SuppressWarnings("serial") - private volatile java.lang.Object subnetIpv6CidrBlock_ = ""; - /** - * - * - *
-   * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
-   * pods.
-   * 
- * - * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The subnetIpv6CidrBlock. - */ - @java.lang.Override - public java.lang.String getSubnetIpv6CidrBlock() { - java.lang.Object ref = subnetIpv6CidrBlock_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subnetIpv6CidrBlock_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
-   * pods.
-   * 
- * - * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for subnetIpv6CidrBlock. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSubnetIpv6CidrBlockBytes() { - java.lang.Object ref = subnetIpv6CidrBlock_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - subnetIpv6CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SERVICES_IPV6_CIDR_BLOCK_FIELD_NUMBER = 23; - - @SuppressWarnings("serial") - private volatile java.lang.Object servicesIpv6CidrBlock_ = ""; - /** - * - * - *
-   * Output only. [Output only] The services IPv6 CIDR block for the cluster.
-   * 
- * - * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The servicesIpv6CidrBlock. - */ - @java.lang.Override - public java.lang.String getServicesIpv6CidrBlock() { - java.lang.Object ref = servicesIpv6CidrBlock_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - servicesIpv6CidrBlock_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. [Output only] The services IPv6 CIDR block for the cluster.
-   * 
- * - * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for servicesIpv6CidrBlock. - */ - @java.lang.Override - public com.google.protobuf.ByteString getServicesIpv6CidrBlockBytes() { - java.lang.Object ref = servicesIpv6CidrBlock_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - servicesIpv6CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ADDITIONAL_POD_RANGES_CONFIG_FIELD_NUMBER = 24; - private com.google.container.v1.AdditionalPodRangesConfig additionalPodRangesConfig_; - /** - * - * - *
-   * Output only. [Output only] The additional pod ranges that are added to the
-   * cluster. These pod ranges can be used by new node pools to allocate pod IPs
-   * automatically. Once the range is removed it will not show up in
-   * IPAllocationPolicy.
-   * 
- * - * - * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the additionalPodRangesConfig field is set. - */ - @java.lang.Override - public boolean hasAdditionalPodRangesConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * Output only. [Output only] The additional pod ranges that are added to the
-   * cluster. These pod ranges can be used by new node pools to allocate pod IPs
-   * automatically. Once the range is removed it will not show up in
-   * IPAllocationPolicy.
-   * 
- * - * - * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The additionalPodRangesConfig. - */ - @java.lang.Override - public com.google.container.v1.AdditionalPodRangesConfig getAdditionalPodRangesConfig() { - return additionalPodRangesConfig_ == null - ? com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance() - : additionalPodRangesConfig_; - } - /** - * - * - *
-   * Output only. [Output only] The additional pod ranges that are added to the
-   * cluster. These pod ranges can be used by new node pools to allocate pod IPs
-   * automatically. Once the range is removed it will not show up in
-   * IPAllocationPolicy.
-   * 
- * - * - * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.container.v1.AdditionalPodRangesConfigOrBuilder - getAdditionalPodRangesConfigOrBuilder() { - return additionalPodRangesConfig_ == null - ? com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance() - : additionalPodRangesConfig_; - } - - public static final int DEFAULT_POD_IPV4_RANGE_UTILIZATION_FIELD_NUMBER = 25; - private double defaultPodIpv4RangeUtilization_ = 0D; - /** - * - * - *
-   * Output only. [Output only] The utilization of the cluster default IPv4
-   * range for the pod. The ratio is Usage/[Total number of IPs in the secondary
-   * range], Usage=numNodes*numZones*podIPsPerNode.
-   * 
- * - * - * double default_pod_ipv4_range_utilization = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The defaultPodIpv4RangeUtilization. - */ - @java.lang.Override - public double getDefaultPodIpv4RangeUtilization() { - return defaultPodIpv4RangeUtilization_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetworkName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, subnetworkName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterIpv4Cidr_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, clusterIpv4Cidr_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeIpv4Cidr_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, nodeIpv4Cidr_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesIpv4Cidr_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, servicesIpv4Cidr_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterSecondaryRangeName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, clusterSecondaryRangeName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesSecondaryRangeName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, servicesSecondaryRangeName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterIpv4CidrBlock_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, clusterIpv4CidrBlock_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeIpv4CidrBlock_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, nodeIpv4CidrBlock_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesIpv4CidrBlock_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, servicesIpv4CidrBlock_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tpuIpv4CidrBlock_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, tpuIpv4CidrBlock_); - } - if (useRoutes_ != false) { - output.writeBool(15, useRoutes_); - } - if (stackType_ != com.google.container.v1.StackType.STACK_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(16, stackType_); - } - if (ipv6AccessType_ - != com.google.container.v1.IPv6AccessType.IPV6_ACCESS_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(17, ipv6AccessType_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(21, getPodCidrOverprovisionConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetIpv6CidrBlock_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 22, subnetIpv6CidrBlock_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesIpv6CidrBlock_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 23, servicesIpv6CidrBlock_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(24, getAdditionalPodRangesConfig()); - } - if (java.lang.Double.doubleToRawLongBits(defaultPodIpv4RangeUtilization_) != 0) { - output.writeDouble(25, defaultPodIpv4RangeUtilization_); - } - getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetworkName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, subnetworkName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterIpv4Cidr_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, clusterIpv4Cidr_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeIpv4Cidr_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, nodeIpv4Cidr_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesIpv4Cidr_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, servicesIpv4Cidr_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterSecondaryRangeName_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(7, clusterSecondaryRangeName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesSecondaryRangeName_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(8, servicesSecondaryRangeName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterIpv4CidrBlock_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, clusterIpv4CidrBlock_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeIpv4CidrBlock_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, nodeIpv4CidrBlock_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesIpv4CidrBlock_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, servicesIpv4CidrBlock_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tpuIpv4CidrBlock_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, tpuIpv4CidrBlock_); - } - if (useRoutes_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, useRoutes_); - } - if (stackType_ != com.google.container.v1.StackType.STACK_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(16, stackType_); - } - if (ipv6AccessType_ - != com.google.container.v1.IPv6AccessType.IPV6_ACCESS_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, ipv6AccessType_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 21, getPodCidrOverprovisionConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetIpv6CidrBlock_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, subnetIpv6CidrBlock_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesIpv6CidrBlock_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, servicesIpv6CidrBlock_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 24, getAdditionalPodRangesConfig()); - } - if (java.lang.Double.doubleToRawLongBits(defaultPodIpv4RangeUtilization_) != 0) { - size += - com.google.protobuf.CodedOutputStream.computeDoubleSize( - 25, defaultPodIpv4RangeUtilization_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.IPAllocationPolicy)) { - return super.equals(obj); - } - com.google.container.v1.IPAllocationPolicy other = - (com.google.container.v1.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 (!getTpuIpv4CidrBlock().equals(other.getTpuIpv4CidrBlock())) return false; - if (getUseRoutes() != other.getUseRoutes()) return false; - if (stackType_ != other.stackType_) return false; - if (ipv6AccessType_ != other.ipv6AccessType_) return false; - if (hasPodCidrOverprovisionConfig() != other.hasPodCidrOverprovisionConfig()) return false; - if (hasPodCidrOverprovisionConfig()) { - if (!getPodCidrOverprovisionConfig().equals(other.getPodCidrOverprovisionConfig())) - return false; - } - if (!getSubnetIpv6CidrBlock().equals(other.getSubnetIpv6CidrBlock())) return false; - if (!getServicesIpv6CidrBlock().equals(other.getServicesIpv6CidrBlock())) return false; - if (hasAdditionalPodRangesConfig() != other.hasAdditionalPodRangesConfig()) return false; - if (hasAdditionalPodRangesConfig()) { - if (!getAdditionalPodRangesConfig().equals(other.getAdditionalPodRangesConfig())) - return false; - } - if (java.lang.Double.doubleToLongBits(getDefaultPodIpv4RangeUtilization()) - != java.lang.Double.doubleToLongBits(other.getDefaultPodIpv4RangeUtilization())) - return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + 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 = (37 * hash) + STACK_TYPE_FIELD_NUMBER; - hash = (53 * hash) + stackType_; - hash = (37 * hash) + IPV6_ACCESS_TYPE_FIELD_NUMBER; - hash = (53 * hash) + ipv6AccessType_; - if (hasPodCidrOverprovisionConfig()) { - hash = (37 * hash) + POD_CIDR_OVERPROVISION_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getPodCidrOverprovisionConfig().hashCode(); - } - hash = (37 * hash) + SUBNET_IPV6_CIDR_BLOCK_FIELD_NUMBER; - hash = (53 * hash) + getSubnetIpv6CidrBlock().hashCode(); - hash = (37 * hash) + SERVICES_IPV6_CIDR_BLOCK_FIELD_NUMBER; - hash = (53 * hash) + getServicesIpv6CidrBlock().hashCode(); - if (hasAdditionalPodRangesConfig()) { - hash = (37 * hash) + ADDITIONAL_POD_RANGES_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getAdditionalPodRangesConfig().hashCode(); - } - hash = (37 * hash) + DEFAULT_POD_IPV4_RANGE_UTILIZATION_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getDefaultPodIpv4RangeUtilization())); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.IPAllocationPolicy parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.IPAllocationPolicy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.IPAllocationPolicy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.IPAllocationPolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.IPAllocationPolicy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.IPAllocationPolicy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.IPAllocationPolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.IPAllocationPolicy} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.IPAllocationPolicy) - com.google.container.v1.IPAllocationPolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_IPAllocationPolicy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_IPAllocationPolicy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.IPAllocationPolicy.class, - com.google.container.v1.IPAllocationPolicy.Builder.class); - } - - // Construct using com.google.container.v1.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) { - getPodCidrOverprovisionConfigFieldBuilder(); - getAdditionalPodRangesConfigFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - useIpAliases_ = false; - createSubnetwork_ = false; - subnetworkName_ = ""; - clusterIpv4Cidr_ = ""; - nodeIpv4Cidr_ = ""; - servicesIpv4Cidr_ = ""; - clusterSecondaryRangeName_ = ""; - servicesSecondaryRangeName_ = ""; - clusterIpv4CidrBlock_ = ""; - nodeIpv4CidrBlock_ = ""; - servicesIpv4CidrBlock_ = ""; - tpuIpv4CidrBlock_ = ""; - useRoutes_ = false; - stackType_ = 0; - ipv6AccessType_ = 0; - podCidrOverprovisionConfig_ = null; - if (podCidrOverprovisionConfigBuilder_ != null) { - podCidrOverprovisionConfigBuilder_.dispose(); - podCidrOverprovisionConfigBuilder_ = null; - } - subnetIpv6CidrBlock_ = ""; - servicesIpv6CidrBlock_ = ""; - additionalPodRangesConfig_ = null; - if (additionalPodRangesConfigBuilder_ != null) { - additionalPodRangesConfigBuilder_.dispose(); - additionalPodRangesConfigBuilder_ = null; - } - defaultPodIpv4RangeUtilization_ = 0D; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_IPAllocationPolicy_descriptor; - } - - @java.lang.Override - public com.google.container.v1.IPAllocationPolicy getDefaultInstanceForType() { - return com.google.container.v1.IPAllocationPolicy.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.IPAllocationPolicy build() { - com.google.container.v1.IPAllocationPolicy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.IPAllocationPolicy buildPartial() { - com.google.container.v1.IPAllocationPolicy result = - new com.google.container.v1.IPAllocationPolicy(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.IPAllocationPolicy result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.useIpAliases_ = useIpAliases_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.createSubnetwork_ = createSubnetwork_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.subnetworkName_ = subnetworkName_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.clusterIpv4Cidr_ = clusterIpv4Cidr_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.nodeIpv4Cidr_ = nodeIpv4Cidr_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.servicesIpv4Cidr_ = servicesIpv4Cidr_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.clusterSecondaryRangeName_ = clusterSecondaryRangeName_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.servicesSecondaryRangeName_ = servicesSecondaryRangeName_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.clusterIpv4CidrBlock_ = clusterIpv4CidrBlock_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.nodeIpv4CidrBlock_ = nodeIpv4CidrBlock_; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.servicesIpv4CidrBlock_ = servicesIpv4CidrBlock_; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.tpuIpv4CidrBlock_ = tpuIpv4CidrBlock_; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.useRoutes_ = useRoutes_; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.stackType_ = stackType_; - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.ipv6AccessType_ = ipv6AccessType_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00008000) != 0)) { - result.podCidrOverprovisionConfig_ = - podCidrOverprovisionConfigBuilder_ == null - ? podCidrOverprovisionConfig_ - : podCidrOverprovisionConfigBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00010000) != 0)) { - result.subnetIpv6CidrBlock_ = subnetIpv6CidrBlock_; - } - if (((from_bitField0_ & 0x00020000) != 0)) { - result.servicesIpv6CidrBlock_ = servicesIpv6CidrBlock_; - } - if (((from_bitField0_ & 0x00040000) != 0)) { - result.additionalPodRangesConfig_ = - additionalPodRangesConfigBuilder_ == null - ? additionalPodRangesConfig_ - : additionalPodRangesConfigBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00080000) != 0)) { - result.defaultPodIpv4RangeUtilization_ = defaultPodIpv4RangeUtilization_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.IPAllocationPolicy) { - return mergeFrom((com.google.container.v1.IPAllocationPolicy) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.IPAllocationPolicy other) { - if (other == com.google.container.v1.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_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getClusterIpv4Cidr().isEmpty()) { - clusterIpv4Cidr_ = other.clusterIpv4Cidr_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getNodeIpv4Cidr().isEmpty()) { - nodeIpv4Cidr_ = other.nodeIpv4Cidr_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (!other.getServicesIpv4Cidr().isEmpty()) { - servicesIpv4Cidr_ = other.servicesIpv4Cidr_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (!other.getClusterSecondaryRangeName().isEmpty()) { - clusterSecondaryRangeName_ = other.clusterSecondaryRangeName_; - bitField0_ |= 0x00000040; - onChanged(); - } - if (!other.getServicesSecondaryRangeName().isEmpty()) { - servicesSecondaryRangeName_ = other.servicesSecondaryRangeName_; - bitField0_ |= 0x00000080; - onChanged(); - } - if (!other.getClusterIpv4CidrBlock().isEmpty()) { - clusterIpv4CidrBlock_ = other.clusterIpv4CidrBlock_; - bitField0_ |= 0x00000100; - onChanged(); - } - if (!other.getNodeIpv4CidrBlock().isEmpty()) { - nodeIpv4CidrBlock_ = other.nodeIpv4CidrBlock_; - bitField0_ |= 0x00000200; - onChanged(); - } - if (!other.getServicesIpv4CidrBlock().isEmpty()) { - servicesIpv4CidrBlock_ = other.servicesIpv4CidrBlock_; - bitField0_ |= 0x00000400; - onChanged(); - } - if (!other.getTpuIpv4CidrBlock().isEmpty()) { - tpuIpv4CidrBlock_ = other.tpuIpv4CidrBlock_; - bitField0_ |= 0x00000800; - onChanged(); - } - if (other.getUseRoutes() != false) { - setUseRoutes(other.getUseRoutes()); - } - if (other.stackType_ != 0) { - setStackTypeValue(other.getStackTypeValue()); - } - if (other.ipv6AccessType_ != 0) { - setIpv6AccessTypeValue(other.getIpv6AccessTypeValue()); - } - if (other.hasPodCidrOverprovisionConfig()) { - mergePodCidrOverprovisionConfig(other.getPodCidrOverprovisionConfig()); - } - if (!other.getSubnetIpv6CidrBlock().isEmpty()) { - subnetIpv6CidrBlock_ = other.subnetIpv6CidrBlock_; - bitField0_ |= 0x00010000; - onChanged(); - } - if (!other.getServicesIpv6CidrBlock().isEmpty()) { - servicesIpv6CidrBlock_ = other.servicesIpv6CidrBlock_; - bitField0_ |= 0x00020000; - onChanged(); - } - if (other.hasAdditionalPodRangesConfig()) { - mergeAdditionalPodRangesConfig(other.getAdditionalPodRangesConfig()); - } - if (other.getDefaultPodIpv4RangeUtilization() != 0D) { - setDefaultPodIpv4RangeUtilization(other.getDefaultPodIpv4RangeUtilization()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - useIpAliases_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - createSubnetwork_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - subnetworkName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - clusterIpv4Cidr_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - nodeIpv4Cidr_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - servicesIpv4Cidr_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - clusterSecondaryRangeName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: - { - servicesSecondaryRangeName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 74: - { - clusterIpv4CidrBlock_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 74 - case 82: - { - nodeIpv4CidrBlock_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; - break; - } // case 82 - case 90: - { - servicesIpv4CidrBlock_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; - break; - } // case 90 - case 106: - { - tpuIpv4CidrBlock_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; - break; - } // case 106 - case 120: - { - useRoutes_ = input.readBool(); - bitField0_ |= 0x00001000; - break; - } // case 120 - case 128: - { - stackType_ = input.readEnum(); - bitField0_ |= 0x00002000; - break; - } // case 128 - case 136: - { - ipv6AccessType_ = input.readEnum(); - bitField0_ |= 0x00004000; - break; - } // case 136 - case 170: - { - input.readMessage( - getPodCidrOverprovisionConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00008000; - break; - } // case 170 - case 178: - { - subnetIpv6CidrBlock_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00010000; - break; - } // case 178 - case 186: - { - servicesIpv6CidrBlock_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00020000; - break; - } // case 186 - case 194: - { - input.readMessage( - getAdditionalPodRangesConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00040000; - break; - } // case 194 - case 201: - { - defaultPodIpv4RangeUtilization_ = input.readDouble(); - bitField0_ |= 0x00080000; - break; - } // case 201 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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() { - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000002; - 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() { - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000004; - 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(); - bitField0_ = (bitField0_ & ~0x00000004); - 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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object clusterIpv4Cidr_ = ""; - /** - * - * - *
-     * This field is deprecated, use cluster_ipv4_cidr_block.
-     * 
- * - * string cluster_ipv4_cidr = 4 [deprecated = true]; - * - * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1474 - * @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]; - * - * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1474 - * @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]; - * - * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1474 - * @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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * This field is deprecated, use cluster_ipv4_cidr_block.
-     * 
- * - * string cluster_ipv4_cidr = 4 [deprecated = true]; - * - * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1474 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterIpv4Cidr() { - clusterIpv4Cidr_ = getDefaultInstance().getClusterIpv4Cidr(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * This field is deprecated, use cluster_ipv4_cidr_block.
-     * 
- * - * string cluster_ipv4_cidr = 4 [deprecated = true]; - * - * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1474 - * @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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private java.lang.Object nodeIpv4Cidr_ = ""; - /** - * - * - *
-     * This field is deprecated, use node_ipv4_cidr_block.
-     * 
- * - * string node_ipv4_cidr = 5 [deprecated = true]; - * - * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1477 - * @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]; - * - * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1477 - * @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]; - * - * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1477 - * @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; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * This field is deprecated, use node_ipv4_cidr_block.
-     * 
- * - * string node_ipv4_cidr = 5 [deprecated = true]; - * - * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1477 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearNodeIpv4Cidr() { - nodeIpv4Cidr_ = getDefaultInstance().getNodeIpv4Cidr(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * - * - *
-     * This field is deprecated, use node_ipv4_cidr_block.
-     * 
- * - * string node_ipv4_cidr = 5 [deprecated = true]; - * - * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1477 - * @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; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private java.lang.Object servicesIpv4Cidr_ = ""; - /** - * - * - *
-     * This field is deprecated, use services_ipv4_cidr_block.
-     * 
- * - * string services_ipv4_cidr = 6 [deprecated = true]; - * - * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1480 - * @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]; - * - * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1480 - * @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]; - * - * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1480 - * @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; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * This field is deprecated, use services_ipv4_cidr_block.
-     * 
- * - * string services_ipv4_cidr = 6 [deprecated = true]; - * - * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1480 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearServicesIpv4Cidr() { - servicesIpv4Cidr_ = getDefaultInstance().getServicesIpv4Cidr(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - /** - * - * - *
-     * This field is deprecated, use services_ipv4_cidr_block.
-     * 
- * - * string services_ipv4_cidr = 6 [deprecated = true]; - * - * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1480 - * @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; - bitField0_ |= 0x00000020; - 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 is true 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 is true 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 is true 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; - bitField0_ |= 0x00000040; - 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 is true and
-     * create_subnetwork is false.
-     * 
- * - * string cluster_secondary_range_name = 7; - * - * @return This builder for chaining. - */ - public Builder clearClusterSecondaryRangeName() { - clusterSecondaryRangeName_ = getDefaultInstance().getClusterSecondaryRangeName(); - bitField0_ = (bitField0_ & ~0x00000040); - 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 is true 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; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - private java.lang.Object servicesSecondaryRangeName_ = ""; - /** - * - * - *
-     * The name of the secondary range to be used as for the services
-     * CIDR block.  The secondary range will be used for service
-     * ClusterIPs. This must be an existing secondary range associated
-     * with the cluster subnetwork.
-     *
-     * This field is only applicable with use_ip_aliases is true and
-     * create_subnetwork is false.
-     * 
- * - * string services_secondary_range_name = 8; - * - * @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 is true 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 is true 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; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the secondary range to be used as for the services
-     * CIDR block.  The secondary range will be used for service
-     * ClusterIPs. This must be an existing secondary range associated
-     * with the cluster subnetwork.
-     *
-     * This field is only applicable with use_ip_aliases is true and
-     * create_subnetwork is false.
-     * 
- * - * string services_secondary_range_name = 8; - * - * @return This builder for chaining. - */ - public Builder clearServicesSecondaryRangeName() { - servicesSecondaryRangeName_ = getDefaultInstance().getServicesSecondaryRangeName(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the secondary range to be used as for the services
-     * CIDR block.  The secondary range will be used for service
-     * ClusterIPs. This must be an existing secondary range associated
-     * with the cluster subnetwork.
-     *
-     * This field is only applicable with use_ip_aliases is true and
-     * create_subnetwork is false.
-     * 
- * - * string services_secondary_range_name = 8; - * - * @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; - bitField0_ |= 0x00000080; - 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; - bitField0_ |= 0x00000100; - 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(); - bitField0_ = (bitField0_ & ~0x00000100); - 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; - bitField0_ |= 0x00000100; - 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; - bitField0_ |= 0x00000200; - 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(); - bitField0_ = (bitField0_ & ~0x00000200); - 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; - bitField0_ |= 0x00000200; - 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; - bitField0_ |= 0x00000400; - 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(); - bitField0_ = (bitField0_ & ~0x00000400); - 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; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - - private java.lang.Object tpuIpv4CidrBlock_ = ""; - /** - * - * - *
-     * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
-     * range will be automatically chosen with the default size.
-     *
-     * This field is only applicable when `use_ip_aliases` is true.
-     *
-     * If unspecified, the range will use the default size.
-     *
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     *
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string tpu_ipv4_cidr_block = 13; - * - * @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.
-     * 
- * - * 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.
-     * 
- * - * 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; - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - * - * - *
-     * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
-     * range will be automatically chosen with the default size.
-     *
-     * This field is only applicable when `use_ip_aliases` is true.
-     *
-     * If unspecified, the range will use the default size.
-     *
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     *
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string tpu_ipv4_cidr_block = 13; - * - * @return This builder for chaining. - */ - public Builder clearTpuIpv4CidrBlock() { - tpuIpv4CidrBlock_ = getDefaultInstance().getTpuIpv4CidrBlock(); - bitField0_ = (bitField0_ & ~0x00000800); - onChanged(); - return this; - } - /** - * - * - *
-     * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
-     * range will be automatically chosen with the default size.
-     *
-     * This field is only applicable when `use_ip_aliases` is true.
-     *
-     * If unspecified, the range will use the default size.
-     *
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     *
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string tpu_ipv4_cidr_block = 13; - * - * @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; - bitField0_ |= 0x00000800; - 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; - bitField0_ |= 0x00001000; - 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() { - bitField0_ = (bitField0_ & ~0x00001000); - useRoutes_ = false; - onChanged(); - return this; - } - - private int stackType_ = 0; - /** - * - * - *
-     * The IP stack type of the cluster
-     * 
- * - * .google.container.v1.StackType stack_type = 16; - * - * @return The enum numeric value on the wire for stackType. - */ - @java.lang.Override - public int getStackTypeValue() { - return stackType_; - } - /** - * - * - *
-     * The IP stack type of the cluster
-     * 
- * - * .google.container.v1.StackType stack_type = 16; - * - * @param value The enum numeric value on the wire for stackType to set. - * @return This builder for chaining. - */ - public Builder setStackTypeValue(int value) { - stackType_ = value; - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - * - * - *
-     * The IP stack type of the cluster
-     * 
- * - * .google.container.v1.StackType stack_type = 16; - * - * @return The stackType. - */ - @java.lang.Override - public com.google.container.v1.StackType getStackType() { - com.google.container.v1.StackType result = - com.google.container.v1.StackType.forNumber(stackType_); - return result == null ? com.google.container.v1.StackType.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The IP stack type of the cluster
-     * 
- * - * .google.container.v1.StackType stack_type = 16; - * - * @param value The stackType to set. - * @return This builder for chaining. - */ - public Builder setStackType(com.google.container.v1.StackType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00002000; - stackType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The IP stack type of the cluster
-     * 
- * - * .google.container.v1.StackType stack_type = 16; - * - * @return This builder for chaining. - */ - public Builder clearStackType() { - bitField0_ = (bitField0_ & ~0x00002000); - stackType_ = 0; - onChanged(); - return this; - } - - private int ipv6AccessType_ = 0; - /** - * - * - *
-     * The ipv6 access type (internal or external) when create_subnetwork is true
-     * 
- * - * .google.container.v1.IPv6AccessType ipv6_access_type = 17; - * - * @return The enum numeric value on the wire for ipv6AccessType. - */ - @java.lang.Override - public int getIpv6AccessTypeValue() { - return ipv6AccessType_; - } - /** - * - * - *
-     * The ipv6 access type (internal or external) when create_subnetwork is true
-     * 
- * - * .google.container.v1.IPv6AccessType ipv6_access_type = 17; - * - * @param value The enum numeric value on the wire for ipv6AccessType to set. - * @return This builder for chaining. - */ - public Builder setIpv6AccessTypeValue(int value) { - ipv6AccessType_ = value; - bitField0_ |= 0x00004000; - onChanged(); - return this; - } - /** - * - * - *
-     * The ipv6 access type (internal or external) when create_subnetwork is true
-     * 
- * - * .google.container.v1.IPv6AccessType ipv6_access_type = 17; - * - * @return The ipv6AccessType. - */ - @java.lang.Override - public com.google.container.v1.IPv6AccessType getIpv6AccessType() { - com.google.container.v1.IPv6AccessType result = - com.google.container.v1.IPv6AccessType.forNumber(ipv6AccessType_); - return result == null ? com.google.container.v1.IPv6AccessType.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The ipv6 access type (internal or external) when create_subnetwork is true
-     * 
- * - * .google.container.v1.IPv6AccessType ipv6_access_type = 17; - * - * @param value The ipv6AccessType to set. - * @return This builder for chaining. - */ - public Builder setIpv6AccessType(com.google.container.v1.IPv6AccessType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00004000; - ipv6AccessType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The ipv6 access type (internal or external) when create_subnetwork is true
-     * 
- * - * .google.container.v1.IPv6AccessType ipv6_access_type = 17; - * - * @return This builder for chaining. - */ - public Builder clearIpv6AccessType() { - bitField0_ = (bitField0_ & ~0x00004000); - ipv6AccessType_ = 0; - onChanged(); - return this; - } - - private com.google.container.v1.PodCIDROverprovisionConfig podCidrOverprovisionConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.PodCIDROverprovisionConfig, - com.google.container.v1.PodCIDROverprovisionConfig.Builder, - com.google.container.v1.PodCIDROverprovisionConfigOrBuilder> - podCidrOverprovisionConfigBuilder_; - /** - * - * - *
-     * [PRIVATE FIELD]
-     * Pod CIDR size overprovisioning config for the cluster.
-     *
-     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-     * of max_pods_per_node is doubled and then rounded off to next power of 2 to
-     * get the size of pod CIDR block per node.
-     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-     *
-     * This config can disable the doubling of IPs (we still round off to next
-     * power of 2)
-     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-     * overprovisioning is disabled.
-     * 
- * - * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; - * - * - * @return Whether the podCidrOverprovisionConfig field is set. - */ - public boolean hasPodCidrOverprovisionConfig() { - return ((bitField0_ & 0x00008000) != 0); - } - /** - * - * - *
-     * [PRIVATE FIELD]
-     * Pod CIDR size overprovisioning config for the cluster.
-     *
-     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-     * of max_pods_per_node is doubled and then rounded off to next power of 2 to
-     * get the size of pod CIDR block per node.
-     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-     *
-     * This config can disable the doubling of IPs (we still round off to next
-     * power of 2)
-     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-     * overprovisioning is disabled.
-     * 
- * - * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; - * - * - * @return The podCidrOverprovisionConfig. - */ - public com.google.container.v1.PodCIDROverprovisionConfig getPodCidrOverprovisionConfig() { - if (podCidrOverprovisionConfigBuilder_ == null) { - return podCidrOverprovisionConfig_ == null - ? com.google.container.v1.PodCIDROverprovisionConfig.getDefaultInstance() - : podCidrOverprovisionConfig_; - } else { - return podCidrOverprovisionConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * [PRIVATE FIELD]
-     * Pod CIDR size overprovisioning config for the cluster.
-     *
-     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-     * of max_pods_per_node is doubled and then rounded off to next power of 2 to
-     * get the size of pod CIDR block per node.
-     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-     *
-     * This config can disable the doubling of IPs (we still round off to next
-     * power of 2)
-     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-     * overprovisioning is disabled.
-     * 
- * - * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; - * - */ - public Builder setPodCidrOverprovisionConfig( - com.google.container.v1.PodCIDROverprovisionConfig value) { - if (podCidrOverprovisionConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - podCidrOverprovisionConfig_ = value; - } else { - podCidrOverprovisionConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - /** - * - * - *
-     * [PRIVATE FIELD]
-     * Pod CIDR size overprovisioning config for the cluster.
-     *
-     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-     * of max_pods_per_node is doubled and then rounded off to next power of 2 to
-     * get the size of pod CIDR block per node.
-     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-     *
-     * This config can disable the doubling of IPs (we still round off to next
-     * power of 2)
-     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-     * overprovisioning is disabled.
-     * 
- * - * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; - * - */ - public Builder setPodCidrOverprovisionConfig( - com.google.container.v1.PodCIDROverprovisionConfig.Builder builderForValue) { - if (podCidrOverprovisionConfigBuilder_ == null) { - podCidrOverprovisionConfig_ = builderForValue.build(); - } else { - podCidrOverprovisionConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - /** - * - * - *
-     * [PRIVATE FIELD]
-     * Pod CIDR size overprovisioning config for the cluster.
-     *
-     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-     * of max_pods_per_node is doubled and then rounded off to next power of 2 to
-     * get the size of pod CIDR block per node.
-     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-     *
-     * This config can disable the doubling of IPs (we still round off to next
-     * power of 2)
-     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-     * overprovisioning is disabled.
-     * 
- * - * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; - * - */ - public Builder mergePodCidrOverprovisionConfig( - com.google.container.v1.PodCIDROverprovisionConfig value) { - if (podCidrOverprovisionConfigBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) - && podCidrOverprovisionConfig_ != null - && podCidrOverprovisionConfig_ - != com.google.container.v1.PodCIDROverprovisionConfig.getDefaultInstance()) { - getPodCidrOverprovisionConfigBuilder().mergeFrom(value); - } else { - podCidrOverprovisionConfig_ = value; - } - } else { - podCidrOverprovisionConfigBuilder_.mergeFrom(value); - } - if (podCidrOverprovisionConfig_ != null) { - bitField0_ |= 0x00008000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * [PRIVATE FIELD]
-     * Pod CIDR size overprovisioning config for the cluster.
-     *
-     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-     * of max_pods_per_node is doubled and then rounded off to next power of 2 to
-     * get the size of pod CIDR block per node.
-     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-     *
-     * This config can disable the doubling of IPs (we still round off to next
-     * power of 2)
-     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-     * overprovisioning is disabled.
-     * 
- * - * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; - * - */ - public Builder clearPodCidrOverprovisionConfig() { - bitField0_ = (bitField0_ & ~0x00008000); - podCidrOverprovisionConfig_ = null; - if (podCidrOverprovisionConfigBuilder_ != null) { - podCidrOverprovisionConfigBuilder_.dispose(); - podCidrOverprovisionConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * [PRIVATE FIELD]
-     * Pod CIDR size overprovisioning config for the cluster.
-     *
-     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-     * of max_pods_per_node is doubled and then rounded off to next power of 2 to
-     * get the size of pod CIDR block per node.
-     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-     *
-     * This config can disable the doubling of IPs (we still round off to next
-     * power of 2)
-     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-     * overprovisioning is disabled.
-     * 
- * - * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; - * - */ - public com.google.container.v1.PodCIDROverprovisionConfig.Builder - getPodCidrOverprovisionConfigBuilder() { - bitField0_ |= 0x00008000; - onChanged(); - return getPodCidrOverprovisionConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * [PRIVATE FIELD]
-     * Pod CIDR size overprovisioning config for the cluster.
-     *
-     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-     * of max_pods_per_node is doubled and then rounded off to next power of 2 to
-     * get the size of pod CIDR block per node.
-     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-     *
-     * This config can disable the doubling of IPs (we still round off to next
-     * power of 2)
-     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-     * overprovisioning is disabled.
-     * 
- * - * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; - * - */ - public com.google.container.v1.PodCIDROverprovisionConfigOrBuilder - getPodCidrOverprovisionConfigOrBuilder() { - if (podCidrOverprovisionConfigBuilder_ != null) { - return podCidrOverprovisionConfigBuilder_.getMessageOrBuilder(); - } else { - return podCidrOverprovisionConfig_ == null - ? com.google.container.v1.PodCIDROverprovisionConfig.getDefaultInstance() - : podCidrOverprovisionConfig_; - } - } - /** - * - * - *
-     * [PRIVATE FIELD]
-     * Pod CIDR size overprovisioning config for the cluster.
-     *
-     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-     * of max_pods_per_node is doubled and then rounded off to next power of 2 to
-     * get the size of pod CIDR block per node.
-     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-     *
-     * This config can disable the doubling of IPs (we still round off to next
-     * power of 2)
-     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-     * overprovisioning is disabled.
-     * 
- * - * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.PodCIDROverprovisionConfig, - com.google.container.v1.PodCIDROverprovisionConfig.Builder, - com.google.container.v1.PodCIDROverprovisionConfigOrBuilder> - getPodCidrOverprovisionConfigFieldBuilder() { - if (podCidrOverprovisionConfigBuilder_ == null) { - podCidrOverprovisionConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.PodCIDROverprovisionConfig, - com.google.container.v1.PodCIDROverprovisionConfig.Builder, - com.google.container.v1.PodCIDROverprovisionConfigOrBuilder>( - getPodCidrOverprovisionConfig(), getParentForChildren(), isClean()); - podCidrOverprovisionConfig_ = null; - } - return podCidrOverprovisionConfigBuilder_; - } - - private java.lang.Object subnetIpv6CidrBlock_ = ""; - /** - * - * - *
-     * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
-     * pods.
-     * 
- * - * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The subnetIpv6CidrBlock. - */ - public java.lang.String getSubnetIpv6CidrBlock() { - java.lang.Object ref = subnetIpv6CidrBlock_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subnetIpv6CidrBlock_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
-     * pods.
-     * 
- * - * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for subnetIpv6CidrBlock. - */ - public com.google.protobuf.ByteString getSubnetIpv6CidrBlockBytes() { - java.lang.Object ref = subnetIpv6CidrBlock_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - subnetIpv6CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
-     * pods.
-     * 
- * - * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The subnetIpv6CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setSubnetIpv6CidrBlock(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - subnetIpv6CidrBlock_ = value; - bitField0_ |= 0x00010000; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
-     * pods.
-     * 
- * - * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearSubnetIpv6CidrBlock() { - subnetIpv6CidrBlock_ = getDefaultInstance().getSubnetIpv6CidrBlock(); - bitField0_ = (bitField0_ & ~0x00010000); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
-     * pods.
-     * 
- * - * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for subnetIpv6CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setSubnetIpv6CidrBlockBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - subnetIpv6CidrBlock_ = value; - bitField0_ |= 0x00010000; - onChanged(); - return this; - } - - private java.lang.Object servicesIpv6CidrBlock_ = ""; - /** - * - * - *
-     * Output only. [Output only] The services IPv6 CIDR block for the cluster.
-     * 
- * - * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The servicesIpv6CidrBlock. - */ - public java.lang.String getServicesIpv6CidrBlock() { - java.lang.Object ref = servicesIpv6CidrBlock_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - servicesIpv6CidrBlock_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. [Output only] The services IPv6 CIDR block for the cluster.
-     * 
- * - * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The bytes for servicesIpv6CidrBlock. - */ - public com.google.protobuf.ByteString getServicesIpv6CidrBlockBytes() { - java.lang.Object ref = servicesIpv6CidrBlock_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - servicesIpv6CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. [Output only] The services IPv6 CIDR block for the cluster.
-     * 
- * - * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The servicesIpv6CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setServicesIpv6CidrBlock(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - servicesIpv6CidrBlock_ = value; - bitField0_ |= 0x00020000; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. [Output only] The services IPv6 CIDR block for the cluster.
-     * 
- * - * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearServicesIpv6CidrBlock() { - servicesIpv6CidrBlock_ = getDefaultInstance().getServicesIpv6CidrBlock(); - bitField0_ = (bitField0_ & ~0x00020000); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. [Output only] The services IPv6 CIDR block for the cluster.
-     * 
- * - * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The bytes for servicesIpv6CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setServicesIpv6CidrBlockBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - servicesIpv6CidrBlock_ = value; - bitField0_ |= 0x00020000; - onChanged(); - return this; - } - - private com.google.container.v1.AdditionalPodRangesConfig additionalPodRangesConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AdditionalPodRangesConfig, - com.google.container.v1.AdditionalPodRangesConfig.Builder, - com.google.container.v1.AdditionalPodRangesConfigOrBuilder> - additionalPodRangesConfigBuilder_; - /** - * - * - *
-     * Output only. [Output only] The additional pod ranges that are added to the
-     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
-     * automatically. Once the range is removed it will not show up in
-     * IPAllocationPolicy.
-     * 
- * - * - * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the additionalPodRangesConfig field is set. - */ - public boolean hasAdditionalPodRangesConfig() { - return ((bitField0_ & 0x00040000) != 0); - } - /** - * - * - *
-     * Output only. [Output only] The additional pod ranges that are added to the
-     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
-     * automatically. Once the range is removed it will not show up in
-     * IPAllocationPolicy.
-     * 
- * - * - * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The additionalPodRangesConfig. - */ - public com.google.container.v1.AdditionalPodRangesConfig getAdditionalPodRangesConfig() { - if (additionalPodRangesConfigBuilder_ == null) { - return additionalPodRangesConfig_ == null - ? com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance() - : additionalPodRangesConfig_; - } else { - return additionalPodRangesConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. [Output only] The additional pod ranges that are added to the
-     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
-     * automatically. Once the range is removed it will not show up in
-     * IPAllocationPolicy.
-     * 
- * - * - * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setAdditionalPodRangesConfig( - com.google.container.v1.AdditionalPodRangesConfig value) { - if (additionalPodRangesConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - additionalPodRangesConfig_ = value; - } else { - additionalPodRangesConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00040000; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. [Output only] The additional pod ranges that are added to the
-     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
-     * automatically. Once the range is removed it will not show up in
-     * IPAllocationPolicy.
-     * 
- * - * - * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setAdditionalPodRangesConfig( - com.google.container.v1.AdditionalPodRangesConfig.Builder builderForValue) { - if (additionalPodRangesConfigBuilder_ == null) { - additionalPodRangesConfig_ = builderForValue.build(); - } else { - additionalPodRangesConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00040000; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. [Output only] The additional pod ranges that are added to the
-     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
-     * automatically. Once the range is removed it will not show up in
-     * IPAllocationPolicy.
-     * 
- * - * - * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeAdditionalPodRangesConfig( - com.google.container.v1.AdditionalPodRangesConfig value) { - if (additionalPodRangesConfigBuilder_ == null) { - if (((bitField0_ & 0x00040000) != 0) - && additionalPodRangesConfig_ != null - && additionalPodRangesConfig_ - != com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance()) { - getAdditionalPodRangesConfigBuilder().mergeFrom(value); - } else { - additionalPodRangesConfig_ = value; - } - } else { - additionalPodRangesConfigBuilder_.mergeFrom(value); - } - if (additionalPodRangesConfig_ != null) { - bitField0_ |= 0x00040000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Output only. [Output only] The additional pod ranges that are added to the
-     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
-     * automatically. Once the range is removed it will not show up in
-     * IPAllocationPolicy.
-     * 
- * - * - * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearAdditionalPodRangesConfig() { - bitField0_ = (bitField0_ & ~0x00040000); - additionalPodRangesConfig_ = null; - if (additionalPodRangesConfigBuilder_ != null) { - additionalPodRangesConfigBuilder_.dispose(); - additionalPodRangesConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. [Output only] The additional pod ranges that are added to the
-     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
-     * automatically. Once the range is removed it will not show up in
-     * IPAllocationPolicy.
-     * 
- * - * - * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.container.v1.AdditionalPodRangesConfig.Builder - getAdditionalPodRangesConfigBuilder() { - bitField0_ |= 0x00040000; - onChanged(); - return getAdditionalPodRangesConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. [Output only] The additional pod ranges that are added to the
-     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
-     * automatically. Once the range is removed it will not show up in
-     * IPAllocationPolicy.
-     * 
- * - * - * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.container.v1.AdditionalPodRangesConfigOrBuilder - getAdditionalPodRangesConfigOrBuilder() { - if (additionalPodRangesConfigBuilder_ != null) { - return additionalPodRangesConfigBuilder_.getMessageOrBuilder(); - } else { - return additionalPodRangesConfig_ == null - ? com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance() - : additionalPodRangesConfig_; - } - } - /** - * - * - *
-     * Output only. [Output only] The additional pod ranges that are added to the
-     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
-     * automatically. Once the range is removed it will not show up in
-     * IPAllocationPolicy.
-     * 
- * - * - * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AdditionalPodRangesConfig, - com.google.container.v1.AdditionalPodRangesConfig.Builder, - com.google.container.v1.AdditionalPodRangesConfigOrBuilder> - getAdditionalPodRangesConfigFieldBuilder() { - if (additionalPodRangesConfigBuilder_ == null) { - additionalPodRangesConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AdditionalPodRangesConfig, - com.google.container.v1.AdditionalPodRangesConfig.Builder, - com.google.container.v1.AdditionalPodRangesConfigOrBuilder>( - getAdditionalPodRangesConfig(), getParentForChildren(), isClean()); - additionalPodRangesConfig_ = null; - } - return additionalPodRangesConfigBuilder_; - } - - private double defaultPodIpv4RangeUtilization_; - /** - * - * - *
-     * Output only. [Output only] The utilization of the cluster default IPv4
-     * range for the pod. The ratio is Usage/[Total number of IPs in the secondary
-     * range], Usage=numNodes*numZones*podIPsPerNode.
-     * 
- * - * - * double default_pod_ipv4_range_utilization = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The defaultPodIpv4RangeUtilization. - */ - @java.lang.Override - public double getDefaultPodIpv4RangeUtilization() { - return defaultPodIpv4RangeUtilization_; - } - /** - * - * - *
-     * Output only. [Output only] The utilization of the cluster default IPv4
-     * range for the pod. The ratio is Usage/[Total number of IPs in the secondary
-     * range], Usage=numNodes*numZones*podIPsPerNode.
-     * 
- * - * - * double default_pod_ipv4_range_utilization = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The defaultPodIpv4RangeUtilization to set. - * @return This builder for chaining. - */ - public Builder setDefaultPodIpv4RangeUtilization(double value) { - - defaultPodIpv4RangeUtilization_ = value; - bitField0_ |= 0x00080000; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. [Output only] The utilization of the cluster default IPv4
-     * range for the pod. The ratio is Usage/[Total number of IPs in the secondary
-     * range], Usage=numNodes*numZones*podIPsPerNode.
-     * 
- * - * - * double default_pod_ipv4_range_utilization = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearDefaultPodIpv4RangeUtilization() { - bitField0_ = (bitField0_ & ~0x00080000); - defaultPodIpv4RangeUtilization_ = 0D; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.IPAllocationPolicy) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.IPAllocationPolicy) - private static final com.google.container.v1.IPAllocationPolicy DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.IPAllocationPolicy(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.IPAllocationPolicy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java deleted file mode 100644 index e04351cf824e..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java +++ /dev/null @@ -1,721 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface IPAllocationPolicyOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.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]; - * - * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1474 - * @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]; - * - * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1474 - * @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]; - * - * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1477 - * @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]; - * - * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1477 - * @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]; - * - * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1480 - * @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]; - * - * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1480 - * @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 is true 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 is true 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 is true 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 is true 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(); - - /** - * - * - *
-   * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
-   * range will be automatically chosen with the default size.
-   *
-   * This field is only applicable when `use_ip_aliases` is true.
-   *
-   * If unspecified, the range will use the default size.
-   *
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   *
-   * Set to a
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-   * to use.
-   * 
- * - * string tpu_ipv4_cidr_block = 13; - * - * @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.
-   * 
- * - * 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(); - - /** - * - * - *
-   * The IP stack type of the cluster
-   * 
- * - * .google.container.v1.StackType stack_type = 16; - * - * @return The enum numeric value on the wire for stackType. - */ - int getStackTypeValue(); - /** - * - * - *
-   * The IP stack type of the cluster
-   * 
- * - * .google.container.v1.StackType stack_type = 16; - * - * @return The stackType. - */ - com.google.container.v1.StackType getStackType(); - - /** - * - * - *
-   * The ipv6 access type (internal or external) when create_subnetwork is true
-   * 
- * - * .google.container.v1.IPv6AccessType ipv6_access_type = 17; - * - * @return The enum numeric value on the wire for ipv6AccessType. - */ - int getIpv6AccessTypeValue(); - /** - * - * - *
-   * The ipv6 access type (internal or external) when create_subnetwork is true
-   * 
- * - * .google.container.v1.IPv6AccessType ipv6_access_type = 17; - * - * @return The ipv6AccessType. - */ - com.google.container.v1.IPv6AccessType getIpv6AccessType(); - - /** - * - * - *
-   * [PRIVATE FIELD]
-   * Pod CIDR size overprovisioning config for the cluster.
-   *
-   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-   * of max_pods_per_node is doubled and then rounded off to next power of 2 to
-   * get the size of pod CIDR block per node.
-   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-   *
-   * This config can disable the doubling of IPs (we still round off to next
-   * power of 2)
-   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-   * overprovisioning is disabled.
-   * 
- * - * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; - * - * - * @return Whether the podCidrOverprovisionConfig field is set. - */ - boolean hasPodCidrOverprovisionConfig(); - /** - * - * - *
-   * [PRIVATE FIELD]
-   * Pod CIDR size overprovisioning config for the cluster.
-   *
-   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-   * of max_pods_per_node is doubled and then rounded off to next power of 2 to
-   * get the size of pod CIDR block per node.
-   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-   *
-   * This config can disable the doubling of IPs (we still round off to next
-   * power of 2)
-   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-   * overprovisioning is disabled.
-   * 
- * - * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; - * - * - * @return The podCidrOverprovisionConfig. - */ - com.google.container.v1.PodCIDROverprovisionConfig getPodCidrOverprovisionConfig(); - /** - * - * - *
-   * [PRIVATE FIELD]
-   * Pod CIDR size overprovisioning config for the cluster.
-   *
-   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-   * of max_pods_per_node is doubled and then rounded off to next power of 2 to
-   * get the size of pod CIDR block per node.
-   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-   *
-   * This config can disable the doubling of IPs (we still round off to next
-   * power of 2)
-   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-   * overprovisioning is disabled.
-   * 
- * - * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; - * - */ - com.google.container.v1.PodCIDROverprovisionConfigOrBuilder - getPodCidrOverprovisionConfigOrBuilder(); - - /** - * - * - *
-   * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
-   * pods.
-   * 
- * - * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The subnetIpv6CidrBlock. - */ - java.lang.String getSubnetIpv6CidrBlock(); - /** - * - * - *
-   * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
-   * pods.
-   * 
- * - * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for subnetIpv6CidrBlock. - */ - com.google.protobuf.ByteString getSubnetIpv6CidrBlockBytes(); - - /** - * - * - *
-   * Output only. [Output only] The services IPv6 CIDR block for the cluster.
-   * 
- * - * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The servicesIpv6CidrBlock. - */ - java.lang.String getServicesIpv6CidrBlock(); - /** - * - * - *
-   * Output only. [Output only] The services IPv6 CIDR block for the cluster.
-   * 
- * - * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for servicesIpv6CidrBlock. - */ - com.google.protobuf.ByteString getServicesIpv6CidrBlockBytes(); - - /** - * - * - *
-   * Output only. [Output only] The additional pod ranges that are added to the
-   * cluster. These pod ranges can be used by new node pools to allocate pod IPs
-   * automatically. Once the range is removed it will not show up in
-   * IPAllocationPolicy.
-   * 
- * - * - * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the additionalPodRangesConfig field is set. - */ - boolean hasAdditionalPodRangesConfig(); - /** - * - * - *
-   * Output only. [Output only] The additional pod ranges that are added to the
-   * cluster. These pod ranges can be used by new node pools to allocate pod IPs
-   * automatically. Once the range is removed it will not show up in
-   * IPAllocationPolicy.
-   * 
- * - * - * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The additionalPodRangesConfig. - */ - com.google.container.v1.AdditionalPodRangesConfig getAdditionalPodRangesConfig(); - /** - * - * - *
-   * Output only. [Output only] The additional pod ranges that are added to the
-   * cluster. These pod ranges can be used by new node pools to allocate pod IPs
-   * automatically. Once the range is removed it will not show up in
-   * IPAllocationPolicy.
-   * 
- * - * - * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.container.v1.AdditionalPodRangesConfigOrBuilder - getAdditionalPodRangesConfigOrBuilder(); - - /** - * - * - *
-   * Output only. [Output only] The utilization of the cluster default IPv4
-   * range for the pod. The ratio is Usage/[Total number of IPs in the secondary
-   * range], Usage=numNodes*numZones*podIPsPerNode.
-   * 
- * - * - * double default_pod_ipv4_range_utilization = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The defaultPodIpv4RangeUtilization. - */ - double getDefaultPodIpv4RangeUtilization(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPv6AccessType.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPv6AccessType.java deleted file mode 100644 index ecfab57a0fd8..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPv6AccessType.java +++ /dev/null @@ -1,177 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Possible values for IPv6 access type
- * 
- * - * Protobuf enum {@code google.container.v1.IPv6AccessType} - */ -public enum IPv6AccessType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Default value, will be defaulted as type external.
-   * 
- * - * IPV6_ACCESS_TYPE_UNSPECIFIED = 0; - */ - IPV6_ACCESS_TYPE_UNSPECIFIED(0), - /** - * - * - *
-   * Access type internal (all v6 addresses are internal IPs)
-   * 
- * - * INTERNAL = 1; - */ - INTERNAL(1), - /** - * - * - *
-   * Access type external (all v6 addresses are external IPs)
-   * 
- * - * EXTERNAL = 2; - */ - EXTERNAL(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * Default value, will be defaulted as type external.
-   * 
- * - * IPV6_ACCESS_TYPE_UNSPECIFIED = 0; - */ - public static final int IPV6_ACCESS_TYPE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * Access type internal (all v6 addresses are internal IPs)
-   * 
- * - * INTERNAL = 1; - */ - public static final int INTERNAL_VALUE = 1; - /** - * - * - *
-   * Access type external (all v6 addresses are external IPs)
-   * 
- * - * EXTERNAL = 2; - */ - public static final int EXTERNAL_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 IPv6AccessType 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 IPv6AccessType forNumber(int value) { - switch (value) { - case 0: - return IPV6_ACCESS_TYPE_UNSPECIFIED; - case 1: - return INTERNAL; - case 2: - return EXTERNAL; - 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 IPv6AccessType findValueByNumber(int number) { - return IPv6AccessType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto.getDescriptor().getEnumTypes().get(5); - } - - private static final IPv6AccessType[] VALUES = values(); - - public static IPv6AccessType 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 IPv6AccessType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.IPv6AccessType) -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IdentityServiceConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IdentityServiceConfig.java deleted file mode 100644 index 65a1ad619c32..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IdentityServiceConfig.java +++ /dev/null @@ -1,536 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * IdentityServiceConfig is configuration for Identity Service which allows
- * customers to use external identity providers with the K8S API
- * 
- * - * Protobuf type {@code google.container.v1.IdentityServiceConfig} - */ -public final class IdentityServiceConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.IdentityServiceConfig) - IdentityServiceConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use IdentityServiceConfig.newBuilder() to construct. - private IdentityServiceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private IdentityServiceConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new IdentityServiceConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_IdentityServiceConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_IdentityServiceConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.IdentityServiceConfig.class, - com.google.container.v1.IdentityServiceConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * Whether to enable the Identity Service component
-   * 
- * - * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.IdentityServiceConfig)) { - return super.equals(obj); - } - com.google.container.v1.IdentityServiceConfig other = - (com.google.container.v1.IdentityServiceConfig) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.IdentityServiceConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.IdentityServiceConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.IdentityServiceConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.IdentityServiceConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.IdentityServiceConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.IdentityServiceConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.IdentityServiceConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.IdentityServiceConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.IdentityServiceConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.IdentityServiceConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.IdentityServiceConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.IdentityServiceConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.IdentityServiceConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * IdentityServiceConfig is configuration for Identity Service which allows
-   * customers to use external identity providers with the K8S API
-   * 
- * - * Protobuf type {@code google.container.v1.IdentityServiceConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.IdentityServiceConfig) - com.google.container.v1.IdentityServiceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_IdentityServiceConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_IdentityServiceConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.IdentityServiceConfig.class, - com.google.container.v1.IdentityServiceConfig.Builder.class); - } - - // Construct using com.google.container.v1.IdentityServiceConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enabled_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_IdentityServiceConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.IdentityServiceConfig getDefaultInstanceForType() { - return com.google.container.v1.IdentityServiceConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.IdentityServiceConfig build() { - com.google.container.v1.IdentityServiceConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.IdentityServiceConfig buildPartial() { - com.google.container.v1.IdentityServiceConfig result = - new com.google.container.v1.IdentityServiceConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.IdentityServiceConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.IdentityServiceConfig) { - return mergeFrom((com.google.container.v1.IdentityServiceConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.IdentityServiceConfig other) { - if (other == com.google.container.v1.IdentityServiceConfig.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean enabled_; - /** - * - * - *
-     * Whether to enable the Identity Service component
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Whether to enable the Identity Service component
-     * 
- * - * bool enabled = 1; - * - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether to enable the Identity Service component
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - enabled_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.IdentityServiceConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.IdentityServiceConfig) - private static final com.google.container.v1.IdentityServiceConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.IdentityServiceConfig(); - } - - public static com.google.container.v1.IdentityServiceConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IdentityServiceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.IdentityServiceConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IdentityServiceConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IdentityServiceConfigOrBuilder.java deleted file mode 100644 index f39b54b410ae..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IdentityServiceConfigOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface IdentityServiceConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.IdentityServiceConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether to enable the Identity Service component
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/InTransitEncryptionConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/InTransitEncryptionConfig.java deleted file mode 100644 index 0b6acbd94526..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/InTransitEncryptionConfig.java +++ /dev/null @@ -1,182 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Options for in-transit encryption.
- * 
- * - * Protobuf enum {@code google.container.v1.InTransitEncryptionConfig} - */ -public enum InTransitEncryptionConfig implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Unspecified, will be inferred as default -
-   * IN_TRANSIT_ENCRYPTION_UNSPECIFIED.
-   * 
- * - * IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED = 0; - */ - IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED(0), - /** - * - * - *
-   * In-transit encryption is disabled.
-   * 
- * - * IN_TRANSIT_ENCRYPTION_DISABLED = 1; - */ - IN_TRANSIT_ENCRYPTION_DISABLED(1), - /** - * - * - *
-   * Data in-transit is encrypted using inter-node transparent encryption.
-   * 
- * - * IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT = 2; - */ - IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * Unspecified, will be inferred as default -
-   * IN_TRANSIT_ENCRYPTION_UNSPECIFIED.
-   * 
- * - * IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED = 0; - */ - public static final int IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * In-transit encryption is disabled.
-   * 
- * - * IN_TRANSIT_ENCRYPTION_DISABLED = 1; - */ - public static final int IN_TRANSIT_ENCRYPTION_DISABLED_VALUE = 1; - /** - * - * - *
-   * Data in-transit is encrypted using inter-node transparent encryption.
-   * 
- * - * IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT = 2; - */ - public static final int IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT_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 InTransitEncryptionConfig 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 InTransitEncryptionConfig forNumber(int value) { - switch (value) { - case 0: - return IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED; - case 1: - return IN_TRANSIT_ENCRYPTION_DISABLED; - case 2: - return IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT; - 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 InTransitEncryptionConfig findValueByNumber(int number) { - return InTransitEncryptionConfig.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto.getDescriptor().getEnumTypes().get(6); - } - - private static final InTransitEncryptionConfig[] VALUES = values(); - - public static InTransitEncryptionConfig 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 InTransitEncryptionConfig(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.InTransitEncryptionConfig) -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IntraNodeVisibilityConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IntraNodeVisibilityConfig.java deleted file mode 100644 index 9752c93c4e11..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IntraNodeVisibilityConfig.java +++ /dev/null @@ -1,537 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * IntraNodeVisibilityConfig contains the desired config of the intra-node
- * visibility on this cluster.
- * 
- * - * Protobuf type {@code google.container.v1.IntraNodeVisibilityConfig} - */ -public final class IntraNodeVisibilityConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_IntraNodeVisibilityConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_IntraNodeVisibilityConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.IntraNodeVisibilityConfig.class, - com.google.container.v1.IntraNodeVisibilityConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.IntraNodeVisibilityConfig)) { - return super.equals(obj); - } - com.google.container.v1.IntraNodeVisibilityConfig other = - (com.google.container.v1.IntraNodeVisibilityConfig) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.IntraNodeVisibilityConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.IntraNodeVisibilityConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.IntraNodeVisibilityConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.IntraNodeVisibilityConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.IntraNodeVisibilityConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.IntraNodeVisibilityConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.IntraNodeVisibilityConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.IntraNodeVisibilityConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.IntraNodeVisibilityConfig) - com.google.container.v1.IntraNodeVisibilityConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_IntraNodeVisibilityConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_IntraNodeVisibilityConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.IntraNodeVisibilityConfig.class, - com.google.container.v1.IntraNodeVisibilityConfig.Builder.class); - } - - // Construct using com.google.container.v1.IntraNodeVisibilityConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enabled_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_IntraNodeVisibilityConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.IntraNodeVisibilityConfig getDefaultInstanceForType() { - return com.google.container.v1.IntraNodeVisibilityConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.IntraNodeVisibilityConfig build() { - com.google.container.v1.IntraNodeVisibilityConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.IntraNodeVisibilityConfig buildPartial() { - com.google.container.v1.IntraNodeVisibilityConfig result = - new com.google.container.v1.IntraNodeVisibilityConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.IntraNodeVisibilityConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.IntraNodeVisibilityConfig) { - return mergeFrom((com.google.container.v1.IntraNodeVisibilityConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.IntraNodeVisibilityConfig other) { - if (other == com.google.container.v1.IntraNodeVisibilityConfig.getDefaultInstance()) - return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Enables intra node visibility for this cluster.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - enabled_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.IntraNodeVisibilityConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.IntraNodeVisibilityConfig) - private static final com.google.container.v1.IntraNodeVisibilityConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.IntraNodeVisibilityConfig(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.IntraNodeVisibilityConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IntraNodeVisibilityConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IntraNodeVisibilityConfigOrBuilder.java deleted file mode 100644 index 34601307da32..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IntraNodeVisibilityConfigOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface IntraNodeVisibilityConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.IntraNodeVisibilityConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Enables intra node visibility for this cluster.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Jwk.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Jwk.java deleted file mode 100644 index 525cfae72296..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Jwk.java +++ /dev/null @@ -1,2075 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Jwk is a JSON Web Key as specified in RFC 7517
- * 
- * - * Protobuf type {@code google.container.v1.Jwk} - */ -public final class Jwk extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.Jwk) - JwkOrBuilder { - private static final long serialVersionUID = 0L; - // Use Jwk.newBuilder() to construct. - private Jwk(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Jwk() { - kty_ = ""; - alg_ = ""; - use_ = ""; - kid_ = ""; - n_ = ""; - e_ = ""; - x_ = ""; - y_ = ""; - crv_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Jwk(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_Jwk_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_Jwk_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.Jwk.class, com.google.container.v1.Jwk.Builder.class); - } - - public static final int KTY_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kty_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kty_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alg_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, alg_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(use_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, use_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kid_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, kid_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(n_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, n_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(e_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, e_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(x_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, x_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(y_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, y_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crv_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, crv_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kty_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kty_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alg_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, alg_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(use_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, use_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kid_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, kid_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(n_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, n_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(e_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, e_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(x_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, x_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(y_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, y_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crv_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, crv_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.Jwk)) { - return super.equals(obj); - } - com.google.container.v1.Jwk other = (com.google.container.v1.Jwk) obj; - - if (!getKty().equals(other.getKty())) return false; - if (!getAlg().equals(other.getAlg())) return false; - if (!getUse().equals(other.getUse())) return false; - if (!getKid().equals(other.getKid())) return false; - if (!getN().equals(other.getN())) return false; - if (!getE().equals(other.getE())) return false; - if (!getX().equals(other.getX())) return false; - if (!getY().equals(other.getY())) return false; - if (!getCrv().equals(other.getCrv())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.Jwk parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.Jwk parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.Jwk parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.Jwk parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.Jwk parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.Jwk parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.Jwk parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.Jwk parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.Jwk parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.Jwk parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.Jwk parseFrom(com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.Jwk parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.Jwk prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Jwk is a JSON Web Key as specified in RFC 7517
-   * 
- * - * Protobuf type {@code google.container.v1.Jwk} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.Jwk) - com.google.container.v1.JwkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_Jwk_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_Jwk_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.Jwk.class, com.google.container.v1.Jwk.Builder.class); - } - - // Construct using com.google.container.v1.Jwk.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - kty_ = ""; - alg_ = ""; - use_ = ""; - kid_ = ""; - n_ = ""; - e_ = ""; - x_ = ""; - y_ = ""; - crv_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_Jwk_descriptor; - } - - @java.lang.Override - public com.google.container.v1.Jwk getDefaultInstanceForType() { - return com.google.container.v1.Jwk.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.Jwk build() { - com.google.container.v1.Jwk result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.Jwk buildPartial() { - com.google.container.v1.Jwk result = new com.google.container.v1.Jwk(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.Jwk result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.kty_ = kty_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.alg_ = alg_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.use_ = use_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.kid_ = kid_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.n_ = n_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.e_ = e_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.x_ = x_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.y_ = y_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.crv_ = crv_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.Jwk) { - return mergeFrom((com.google.container.v1.Jwk) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.Jwk other) { - if (other == com.google.container.v1.Jwk.getDefaultInstance()) return this; - if (!other.getKty().isEmpty()) { - kty_ = other.kty_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getAlg().isEmpty()) { - alg_ = other.alg_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getUse().isEmpty()) { - use_ = other.use_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getKid().isEmpty()) { - kid_ = other.kid_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getN().isEmpty()) { - n_ = other.n_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (!other.getE().isEmpty()) { - e_ = other.e_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (!other.getX().isEmpty()) { - x_ = other.x_; - bitField0_ |= 0x00000040; - onChanged(); - } - if (!other.getY().isEmpty()) { - y_ = other.y_; - bitField0_ |= 0x00000080; - onChanged(); - } - if (!other.getCrv().isEmpty()) { - crv_ = other.crv_; - bitField0_ |= 0x00000100; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - kty_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - alg_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - use_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - kid_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - n_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - e_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - x_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: - { - y_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 74: - { - crv_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 74 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Key Type.
-     * 
- * - * string kty = 1; - * - * @return This builder for chaining. - */ - public Builder clearKty() { - kty_ = getDefaultInstance().getKty(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Algorithm.
-     * 
- * - * string alg = 2; - * - * @return This builder for chaining. - */ - public Builder clearAlg() { - alg_ = getDefaultInstance().getAlg(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - 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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Permitted uses for the public keys.
-     * 
- * - * string use = 3; - * - * @return This builder for chaining. - */ - public Builder clearUse() { - use_ = getDefaultInstance().getUse(); - bitField0_ = (bitField0_ & ~0x00000004); - 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; - bitField0_ |= 0x00000004; - 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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Key ID.
-     * 
- * - * string kid = 4; - * - * @return This builder for chaining. - */ - public Builder clearKid() { - kid_ = getDefaultInstance().getKid(); - bitField0_ = (bitField0_ & ~0x00000008); - 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; - bitField0_ |= 0x00000008; - 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; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Used for RSA keys.
-     * 
- * - * string n = 5; - * - * @return This builder for chaining. - */ - public Builder clearN() { - n_ = getDefaultInstance().getN(); - bitField0_ = (bitField0_ & ~0x00000010); - 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; - bitField0_ |= 0x00000010; - 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; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * Used for RSA keys.
-     * 
- * - * string e = 6; - * - * @return This builder for chaining. - */ - public Builder clearE() { - e_ = getDefaultInstance().getE(); - bitField0_ = (bitField0_ & ~0x00000020); - 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; - bitField0_ |= 0x00000020; - 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; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-     * Used for ECDSA keys.
-     * 
- * - * string x = 7; - * - * @return This builder for chaining. - */ - public Builder clearX() { - x_ = getDefaultInstance().getX(); - bitField0_ = (bitField0_ & ~0x00000040); - 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; - bitField0_ |= 0x00000040; - 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; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * Used for ECDSA keys.
-     * 
- * - * string y = 8; - * - * @return This builder for chaining. - */ - public Builder clearY() { - y_ = getDefaultInstance().getY(); - bitField0_ = (bitField0_ & ~0x00000080); - 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; - bitField0_ |= 0x00000080; - 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; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * - * - *
-     * Used for ECDSA keys.
-     * 
- * - * string crv = 9; - * - * @return This builder for chaining. - */ - public Builder clearCrv() { - crv_ = getDefaultInstance().getCrv(); - bitField0_ = (bitField0_ & ~0x00000100); - 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; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.Jwk) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.Jwk) - private static final com.google.container.v1.Jwk DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.Jwk(); - } - - public static com.google.container.v1.Jwk getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Jwk parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.Jwk getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/JwkOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/JwkOrBuilder.java deleted file mode 100644 index e32a8f958607..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/JwkOrBuilder.java +++ /dev/null @@ -1,251 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface JwkOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.Jwk) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Key Type.
-   * 
- * - * string kty = 1; - * - * @return The kty. - */ - java.lang.String getKty(); - /** - * - * - *
-   * Key Type.
-   * 
- * - * string kty = 1; - * - * @return The bytes for kty. - */ - com.google.protobuf.ByteString getKtyBytes(); - - /** - * - * - *
-   * Algorithm.
-   * 
- * - * string alg = 2; - * - * @return The alg. - */ - java.lang.String getAlg(); - /** - * - * - *
-   * Algorithm.
-   * 
- * - * string alg = 2; - * - * @return The bytes for alg. - */ - com.google.protobuf.ByteString getAlgBytes(); - - /** - * - * - *
-   * Permitted uses for the public keys.
-   * 
- * - * string use = 3; - * - * @return The use. - */ - java.lang.String getUse(); - /** - * - * - *
-   * Permitted uses for the public keys.
-   * 
- * - * string use = 3; - * - * @return The bytes for use. - */ - com.google.protobuf.ByteString getUseBytes(); - - /** - * - * - *
-   * Key ID.
-   * 
- * - * string kid = 4; - * - * @return The kid. - */ - java.lang.String getKid(); - /** - * - * - *
-   * Key ID.
-   * 
- * - * string kid = 4; - * - * @return The bytes for kid. - */ - com.google.protobuf.ByteString getKidBytes(); - - /** - * - * - *
-   * Used for RSA keys.
-   * 
- * - * string n = 5; - * - * @return The n. - */ - java.lang.String getN(); - /** - * - * - *
-   * Used for RSA keys.
-   * 
- * - * string n = 5; - * - * @return The bytes for n. - */ - com.google.protobuf.ByteString getNBytes(); - - /** - * - * - *
-   * Used for RSA keys.
-   * 
- * - * string e = 6; - * - * @return The e. - */ - java.lang.String getE(); - /** - * - * - *
-   * Used for RSA keys.
-   * 
- * - * string e = 6; - * - * @return The bytes for e. - */ - com.google.protobuf.ByteString getEBytes(); - - /** - * - * - *
-   * Used for ECDSA keys.
-   * 
- * - * string x = 7; - * - * @return The x. - */ - java.lang.String getX(); - /** - * - * - *
-   * Used for ECDSA keys.
-   * 
- * - * string x = 7; - * - * @return The bytes for x. - */ - com.google.protobuf.ByteString getXBytes(); - - /** - * - * - *
-   * Used for ECDSA keys.
-   * 
- * - * string y = 8; - * - * @return The y. - */ - java.lang.String getY(); - /** - * - * - *
-   * Used for ECDSA keys.
-   * 
- * - * string y = 8; - * - * @return The bytes for y. - */ - com.google.protobuf.ByteString getYBytes(); - - /** - * - * - *
-   * Used for ECDSA keys.
-   * 
- * - * string crv = 9; - * - * @return The crv. - */ - java.lang.String getCrv(); - /** - * - * - *
-   * Used for ECDSA keys.
-   * 
- * - * string crv = 9; - * - * @return The bytes for crv. - */ - com.google.protobuf.ByteString getCrvBytes(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/K8sBetaAPIConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/K8sBetaAPIConfig.java deleted file mode 100644 index 510704ea3965..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/K8sBetaAPIConfig.java +++ /dev/null @@ -1,718 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * K8sBetaAPIConfig , configuration for beta APIs
- * 
- * - * Protobuf type {@code google.container.v1.K8sBetaAPIConfig} - */ -public final class K8sBetaAPIConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.K8sBetaAPIConfig) - K8sBetaAPIConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use K8sBetaAPIConfig.newBuilder() to construct. - private K8sBetaAPIConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private K8sBetaAPIConfig() { - enabledApis_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new K8sBetaAPIConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_K8sBetaAPIConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_K8sBetaAPIConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.K8sBetaAPIConfig.class, - com.google.container.v1.K8sBetaAPIConfig.Builder.class); - } - - public static final int ENABLED_APIS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList enabledApis_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * Enabled k8s beta APIs.
-   * 
- * - * repeated string enabled_apis = 1; - * - * @return A list containing the enabledApis. - */ - public com.google.protobuf.ProtocolStringList getEnabledApisList() { - return enabledApis_; - } - /** - * - * - *
-   * Enabled k8s beta APIs.
-   * 
- * - * repeated string enabled_apis = 1; - * - * @return The count of enabledApis. - */ - public int getEnabledApisCount() { - return enabledApis_.size(); - } - /** - * - * - *
-   * Enabled k8s beta APIs.
-   * 
- * - * repeated string enabled_apis = 1; - * - * @param index The index of the element to return. - * @return The enabledApis at the given index. - */ - public java.lang.String getEnabledApis(int index) { - return enabledApis_.get(index); - } - /** - * - * - *
-   * Enabled k8s beta APIs.
-   * 
- * - * repeated string enabled_apis = 1; - * - * @param index The index of the value to return. - * @return The bytes of the enabledApis at the given index. - */ - public com.google.protobuf.ByteString getEnabledApisBytes(int index) { - return enabledApis_.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 < enabledApis_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, enabledApis_.getRaw(i)); - } - getUnknownFields().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 < enabledApis_.size(); i++) { - dataSize += computeStringSizeNoTag(enabledApis_.getRaw(i)); - } - size += dataSize; - size += 1 * getEnabledApisList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.K8sBetaAPIConfig)) { - return super.equals(obj); - } - com.google.container.v1.K8sBetaAPIConfig other = (com.google.container.v1.K8sBetaAPIConfig) obj; - - if (!getEnabledApisList().equals(other.getEnabledApisList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getEnabledApisCount() > 0) { - hash = (37 * hash) + ENABLED_APIS_FIELD_NUMBER; - hash = (53 * hash) + getEnabledApisList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.K8sBetaAPIConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.K8sBetaAPIConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.K8sBetaAPIConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.K8sBetaAPIConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.K8sBetaAPIConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.K8sBetaAPIConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.K8sBetaAPIConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.K8sBetaAPIConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.K8sBetaAPIConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.K8sBetaAPIConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.K8sBetaAPIConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.K8sBetaAPIConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.K8sBetaAPIConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * K8sBetaAPIConfig , configuration for beta APIs
-   * 
- * - * Protobuf type {@code google.container.v1.K8sBetaAPIConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.K8sBetaAPIConfig) - com.google.container.v1.K8sBetaAPIConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_K8sBetaAPIConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_K8sBetaAPIConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.K8sBetaAPIConfig.class, - com.google.container.v1.K8sBetaAPIConfig.Builder.class); - } - - // Construct using com.google.container.v1.K8sBetaAPIConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enabledApis_ = com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_K8sBetaAPIConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.K8sBetaAPIConfig getDefaultInstanceForType() { - return com.google.container.v1.K8sBetaAPIConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.K8sBetaAPIConfig build() { - com.google.container.v1.K8sBetaAPIConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.K8sBetaAPIConfig buildPartial() { - com.google.container.v1.K8sBetaAPIConfig result = - new com.google.container.v1.K8sBetaAPIConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.K8sBetaAPIConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - enabledApis_.makeImmutable(); - result.enabledApis_ = enabledApis_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.K8sBetaAPIConfig) { - return mergeFrom((com.google.container.v1.K8sBetaAPIConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.K8sBetaAPIConfig other) { - if (other == com.google.container.v1.K8sBetaAPIConfig.getDefaultInstance()) return this; - if (!other.enabledApis_.isEmpty()) { - if (enabledApis_.isEmpty()) { - enabledApis_ = other.enabledApis_; - bitField0_ |= 0x00000001; - } else { - ensureEnabledApisIsMutable(); - enabledApis_.addAll(other.enabledApis_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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(); - ensureEnabledApisIsMutable(); - enabledApis_.add(s); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.protobuf.LazyStringArrayList enabledApis_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureEnabledApisIsMutable() { - if (!enabledApis_.isModifiable()) { - enabledApis_ = new com.google.protobuf.LazyStringArrayList(enabledApis_); - } - bitField0_ |= 0x00000001; - } - /** - * - * - *
-     * Enabled k8s beta APIs.
-     * 
- * - * repeated string enabled_apis = 1; - * - * @return A list containing the enabledApis. - */ - public com.google.protobuf.ProtocolStringList getEnabledApisList() { - enabledApis_.makeImmutable(); - return enabledApis_; - } - /** - * - * - *
-     * Enabled k8s beta APIs.
-     * 
- * - * repeated string enabled_apis = 1; - * - * @return The count of enabledApis. - */ - public int getEnabledApisCount() { - return enabledApis_.size(); - } - /** - * - * - *
-     * Enabled k8s beta APIs.
-     * 
- * - * repeated string enabled_apis = 1; - * - * @param index The index of the element to return. - * @return The enabledApis at the given index. - */ - public java.lang.String getEnabledApis(int index) { - return enabledApis_.get(index); - } - /** - * - * - *
-     * Enabled k8s beta APIs.
-     * 
- * - * repeated string enabled_apis = 1; - * - * @param index The index of the value to return. - * @return The bytes of the enabledApis at the given index. - */ - public com.google.protobuf.ByteString getEnabledApisBytes(int index) { - return enabledApis_.getByteString(index); - } - /** - * - * - *
-     * Enabled k8s beta APIs.
-     * 
- * - * repeated string enabled_apis = 1; - * - * @param index The index to set the value at. - * @param value The enabledApis to set. - * @return This builder for chaining. - */ - public Builder setEnabledApis(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnabledApisIsMutable(); - enabledApis_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Enabled k8s beta APIs.
-     * 
- * - * repeated string enabled_apis = 1; - * - * @param value The enabledApis to add. - * @return This builder for chaining. - */ - public Builder addEnabledApis(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnabledApisIsMutable(); - enabledApis_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Enabled k8s beta APIs.
-     * 
- * - * repeated string enabled_apis = 1; - * - * @param values The enabledApis to add. - * @return This builder for chaining. - */ - public Builder addAllEnabledApis(java.lang.Iterable values) { - ensureEnabledApisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, enabledApis_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Enabled k8s beta APIs.
-     * 
- * - * repeated string enabled_apis = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabledApis() { - enabledApis_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; - onChanged(); - return this; - } - /** - * - * - *
-     * Enabled k8s beta APIs.
-     * 
- * - * repeated string enabled_apis = 1; - * - * @param value The bytes of the enabledApis to add. - * @return This builder for chaining. - */ - public Builder addEnabledApisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureEnabledApisIsMutable(); - enabledApis_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.K8sBetaAPIConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.K8sBetaAPIConfig) - private static final com.google.container.v1.K8sBetaAPIConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.K8sBetaAPIConfig(); - } - - public static com.google.container.v1.K8sBetaAPIConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public K8sBetaAPIConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.K8sBetaAPIConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/K8sBetaAPIConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/K8sBetaAPIConfigOrBuilder.java deleted file mode 100644 index c4272d1554a1..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/K8sBetaAPIConfigOrBuilder.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface K8sBetaAPIConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.K8sBetaAPIConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Enabled k8s beta APIs.
-   * 
- * - * repeated string enabled_apis = 1; - * - * @return A list containing the enabledApis. - */ - java.util.List getEnabledApisList(); - /** - * - * - *
-   * Enabled k8s beta APIs.
-   * 
- * - * repeated string enabled_apis = 1; - * - * @return The count of enabledApis. - */ - int getEnabledApisCount(); - /** - * - * - *
-   * Enabled k8s beta APIs.
-   * 
- * - * repeated string enabled_apis = 1; - * - * @param index The index of the element to return. - * @return The enabledApis at the given index. - */ - java.lang.String getEnabledApis(int index); - /** - * - * - *
-   * Enabled k8s beta APIs.
-   * 
- * - * repeated string enabled_apis = 1; - * - * @param index The index of the value to return. - * @return The bytes of the enabledApis at the given index. - */ - com.google.protobuf.ByteString getEnabledApisBytes(int index); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/KubernetesDashboard.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/KubernetesDashboard.java deleted file mode 100644 index 5b8d496aaeb2..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/KubernetesDashboard.java +++ /dev/null @@ -1,534 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Configuration for the Kubernetes Dashboard.
- * 
- * - * Protobuf type {@code google.container.v1.KubernetesDashboard} - */ -public final class KubernetesDashboard extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_KubernetesDashboard_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_KubernetesDashboard_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.KubernetesDashboard.class, - com.google.container.v1.KubernetesDashboard.Builder.class); - } - - public static final int DISABLED_FIELD_NUMBER = 1; - private boolean disabled_ = false; - /** - * - * - *
-   * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.KubernetesDashboard)) { - return super.equals(obj); - } - com.google.container.v1.KubernetesDashboard other = - (com.google.container.v1.KubernetesDashboard) obj; - - if (getDisabled() != other.getDisabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.KubernetesDashboard parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.KubernetesDashboard parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.KubernetesDashboard parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.KubernetesDashboard parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.KubernetesDashboard parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.KubernetesDashboard parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.KubernetesDashboard parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.KubernetesDashboard} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.KubernetesDashboard) - com.google.container.v1.KubernetesDashboardOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_KubernetesDashboard_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_KubernetesDashboard_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.KubernetesDashboard.class, - com.google.container.v1.KubernetesDashboard.Builder.class); - } - - // Construct using com.google.container.v1.KubernetesDashboard.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - disabled_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_KubernetesDashboard_descriptor; - } - - @java.lang.Override - public com.google.container.v1.KubernetesDashboard getDefaultInstanceForType() { - return com.google.container.v1.KubernetesDashboard.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.KubernetesDashboard build() { - com.google.container.v1.KubernetesDashboard result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.KubernetesDashboard buildPartial() { - com.google.container.v1.KubernetesDashboard result = - new com.google.container.v1.KubernetesDashboard(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.KubernetesDashboard result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.disabled_ = disabled_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.KubernetesDashboard) { - return mergeFrom((com.google.container.v1.KubernetesDashboard) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.KubernetesDashboard other) { - if (other == com.google.container.v1.KubernetesDashboard.getDefaultInstance()) return this; - if (other.getDisabled() != false) { - setDisabled(other.getDisabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - disabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether the Kubernetes Dashboard is enabled for this cluster.
-     * 
- * - * bool disabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearDisabled() { - bitField0_ = (bitField0_ & ~0x00000001); - disabled_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.KubernetesDashboard) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.KubernetesDashboard) - private static final com.google.container.v1.KubernetesDashboard DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.KubernetesDashboard(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.KubernetesDashboard getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/KubernetesDashboardOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/KubernetesDashboardOrBuilder.java deleted file mode 100644 index 0f3cb790d863..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/KubernetesDashboardOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface KubernetesDashboardOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LegacyAbac.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LegacyAbac.java deleted file mode 100644 index 857fb5fac088..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LegacyAbac.java +++ /dev/null @@ -1,545 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Configuration for the legacy Attribute Based Access Control authorization
- * mode.
- * 
- * - * Protobuf type {@code google.container.v1.LegacyAbac} - */ -public final class LegacyAbac extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_LegacyAbac_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_LegacyAbac_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.LegacyAbac.class, - com.google.container.v1.LegacyAbac.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.LegacyAbac)) { - return super.equals(obj); - } - com.google.container.v1.LegacyAbac other = (com.google.container.v1.LegacyAbac) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.LegacyAbac parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.LegacyAbac parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.LegacyAbac parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.LegacyAbac parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.LegacyAbac parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.LegacyAbac parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.LegacyAbac parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.LegacyAbac} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.LegacyAbac) - com.google.container.v1.LegacyAbacOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_LegacyAbac_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_LegacyAbac_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.LegacyAbac.class, - com.google.container.v1.LegacyAbac.Builder.class); - } - - // Construct using com.google.container.v1.LegacyAbac.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enabled_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_LegacyAbac_descriptor; - } - - @java.lang.Override - public com.google.container.v1.LegacyAbac getDefaultInstanceForType() { - return com.google.container.v1.LegacyAbac.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.LegacyAbac build() { - com.google.container.v1.LegacyAbac result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.LegacyAbac buildPartial() { - com.google.container.v1.LegacyAbac result = new com.google.container.v1.LegacyAbac(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.LegacyAbac result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.LegacyAbac) { - return mergeFrom((com.google.container.v1.LegacyAbac) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.LegacyAbac other) { - if (other == com.google.container.v1.LegacyAbac.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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() { - bitField0_ = (bitField0_ & ~0x00000001); - enabled_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.LegacyAbac) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.LegacyAbac) - private static final com.google.container.v1.LegacyAbac DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.LegacyAbac(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.LegacyAbac getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LegacyAbacOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LegacyAbacOrBuilder.java deleted file mode 100644 index 8dccc8c61e53..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LegacyAbacOrBuilder.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface LegacyAbacOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LinuxNodeConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LinuxNodeConfig.java deleted file mode 100644 index d31a8c972e65..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LinuxNodeConfig.java +++ /dev/null @@ -1,1258 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Parameters that can be configured on Linux nodes.
- * 
- * - * Protobuf type {@code google.container.v1.LinuxNodeConfig} - */ -public final class LinuxNodeConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.LinuxNodeConfig) - LinuxNodeConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use LinuxNodeConfig.newBuilder() to construct. - private LinuxNodeConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private LinuxNodeConfig() { - cgroupMode_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new LinuxNodeConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_LinuxNodeConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetSysctls(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_LinuxNodeConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.LinuxNodeConfig.class, - com.google.container.v1.LinuxNodeConfig.Builder.class); - } - - /** - * - * - *
-   * Possible cgroup modes that can be used.
-   * 
- * - * Protobuf enum {@code google.container.v1.LinuxNodeConfig.CgroupMode} - */ - public enum CgroupMode implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * CGROUP_MODE_UNSPECIFIED is when unspecified cgroup configuration is used.
-     * The default for the GKE node OS image will be used.
-     * 
- * - * CGROUP_MODE_UNSPECIFIED = 0; - */ - CGROUP_MODE_UNSPECIFIED(0), - /** - * - * - *
-     * CGROUP_MODE_V1 specifies to use cgroupv1 for the cgroup configuration on
-     * the node image.
-     * 
- * - * CGROUP_MODE_V1 = 1; - */ - CGROUP_MODE_V1(1), - /** - * - * - *
-     * CGROUP_MODE_V2 specifies to use cgroupv2 for the cgroup configuration on
-     * the node image.
-     * 
- * - * CGROUP_MODE_V2 = 2; - */ - CGROUP_MODE_V2(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * CGROUP_MODE_UNSPECIFIED is when unspecified cgroup configuration is used.
-     * The default for the GKE node OS image will be used.
-     * 
- * - * CGROUP_MODE_UNSPECIFIED = 0; - */ - public static final int CGROUP_MODE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * CGROUP_MODE_V1 specifies to use cgroupv1 for the cgroup configuration on
-     * the node image.
-     * 
- * - * CGROUP_MODE_V1 = 1; - */ - public static final int CGROUP_MODE_V1_VALUE = 1; - /** - * - * - *
-     * CGROUP_MODE_V2 specifies to use cgroupv2 for the cgroup configuration on
-     * the node image.
-     * 
- * - * CGROUP_MODE_V2 = 2; - */ - public static final int CGROUP_MODE_V2_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 CgroupMode 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 CgroupMode forNumber(int value) { - switch (value) { - case 0: - return CGROUP_MODE_UNSPECIFIED; - case 1: - return CGROUP_MODE_V1; - case 2: - return CGROUP_MODE_V2; - 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 CgroupMode findValueByNumber(int number) { - return CgroupMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.LinuxNodeConfig.getDescriptor().getEnumTypes().get(0); - } - - private static final CgroupMode[] VALUES = values(); - - public static CgroupMode 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 CgroupMode(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.LinuxNodeConfig.CgroupMode) - } - - public static final int SYSCTLS_FIELD_NUMBER = 1; - - private static final class SysctlsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_LinuxNodeConfig_SysctlsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - @SuppressWarnings("serial") - 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.busy_poll
-   * net.core.busy_read
-   * 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 NullPointerException("map key"); - } - 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.busy_poll
-   * net.core.busy_read
-   * 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.busy_poll
-   * net.core.busy_read
-   * 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 /* nullable */ java.lang.String getSysctlsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - 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.busy_poll
-   * net.core.busy_read
-   * 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 NullPointerException("map key"); - } - java.util.Map map = internalGetSysctls().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int CGROUP_MODE_FIELD_NUMBER = 2; - private int cgroupMode_ = 0; - /** - * - * - *
-   * cgroup_mode specifies the cgroup mode to be used on the node.
-   * 
- * - * .google.container.v1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; - * - * @return The enum numeric value on the wire for cgroupMode. - */ - @java.lang.Override - public int getCgroupModeValue() { - return cgroupMode_; - } - /** - * - * - *
-   * cgroup_mode specifies the cgroup mode to be used on the node.
-   * 
- * - * .google.container.v1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; - * - * @return The cgroupMode. - */ - @java.lang.Override - public com.google.container.v1.LinuxNodeConfig.CgroupMode getCgroupMode() { - com.google.container.v1.LinuxNodeConfig.CgroupMode result = - com.google.container.v1.LinuxNodeConfig.CgroupMode.forNumber(cgroupMode_); - return result == null - ? com.google.container.v1.LinuxNodeConfig.CgroupMode.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 { - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetSysctls(), SysctlsDefaultEntryHolder.defaultEntry, 1); - if (cgroupMode_ - != com.google.container.v1.LinuxNodeConfig.CgroupMode.CGROUP_MODE_UNSPECIFIED.getNumber()) { - output.writeEnum(2, cgroupMode_); - } - getUnknownFields().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__); - } - if (cgroupMode_ - != com.google.container.v1.LinuxNodeConfig.CgroupMode.CGROUP_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, cgroupMode_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.LinuxNodeConfig)) { - return super.equals(obj); - } - com.google.container.v1.LinuxNodeConfig other = (com.google.container.v1.LinuxNodeConfig) obj; - - if (!internalGetSysctls().equals(other.internalGetSysctls())) return false; - if (cgroupMode_ != other.cgroupMode_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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 = (37 * hash) + CGROUP_MODE_FIELD_NUMBER; - hash = (53 * hash) + cgroupMode_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.LinuxNodeConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.LinuxNodeConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.LinuxNodeConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.LinuxNodeConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.LinuxNodeConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.LinuxNodeConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.LinuxNodeConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.LinuxNodeConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.LinuxNodeConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.LinuxNodeConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.LinuxNodeConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.LinuxNodeConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.LinuxNodeConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Parameters that can be configured on Linux nodes.
-   * 
- * - * Protobuf type {@code google.container.v1.LinuxNodeConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.LinuxNodeConfig) - com.google.container.v1.LinuxNodeConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_LinuxNodeConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetSysctls(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableSysctls(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_LinuxNodeConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.LinuxNodeConfig.class, - com.google.container.v1.LinuxNodeConfig.Builder.class); - } - - // Construct using com.google.container.v1.LinuxNodeConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableSysctls().clear(); - cgroupMode_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_LinuxNodeConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.LinuxNodeConfig getDefaultInstanceForType() { - return com.google.container.v1.LinuxNodeConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.LinuxNodeConfig build() { - com.google.container.v1.LinuxNodeConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.LinuxNodeConfig buildPartial() { - com.google.container.v1.LinuxNodeConfig result = - new com.google.container.v1.LinuxNodeConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.LinuxNodeConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.sysctls_ = internalGetSysctls(); - result.sysctls_.makeImmutable(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.cgroupMode_ = cgroupMode_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.LinuxNodeConfig) { - return mergeFrom((com.google.container.v1.LinuxNodeConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.LinuxNodeConfig other) { - if (other == com.google.container.v1.LinuxNodeConfig.getDefaultInstance()) return this; - internalGetMutableSysctls().mergeFrom(other.internalGetSysctls()); - bitField0_ |= 0x00000001; - if (other.cgroupMode_ != 0) { - setCgroupModeValue(other.getCgroupModeValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.protobuf.MapEntry sysctls__ = - input.readMessage( - SysctlsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableSysctls() - .getMutableMap() - .put(sysctls__.getKey(), sysctls__.getValue()); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - cgroupMode_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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() { - if (sysctls_ == null) { - sysctls_ = com.google.protobuf.MapField.newMapField(SysctlsDefaultEntryHolder.defaultEntry); - } - if (!sysctls_.isMutable()) { - sysctls_ = sysctls_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - 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.busy_poll
-     * net.core.busy_read
-     * 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 NullPointerException("map key"); - } - 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.busy_poll
-     * net.core.busy_read
-     * 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.busy_poll
-     * net.core.busy_read
-     * 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 /* nullable */ java.lang.String getSysctlsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - 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.busy_poll
-     * net.core.busy_read
-     * 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 NullPointerException("map key"); - } - java.util.Map map = internalGetSysctls().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearSysctls() { - bitField0_ = (bitField0_ & ~0x00000001); - 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.busy_poll
-     * net.core.busy_read
-     * 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 NullPointerException("map key"); - } - internalGetMutableSysctls().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableSysctls() { - bitField0_ |= 0x00000001; - 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.busy_poll
-     * net.core.busy_read
-     * 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 NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableSysctls().getMutableMap().put(key, value); - bitField0_ |= 0x00000001; - 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.busy_poll
-     * net.core.busy_read
-     * 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); - bitField0_ |= 0x00000001; - return this; - } - - private int cgroupMode_ = 0; - /** - * - * - *
-     * cgroup_mode specifies the cgroup mode to be used on the node.
-     * 
- * - * .google.container.v1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; - * - * @return The enum numeric value on the wire for cgroupMode. - */ - @java.lang.Override - public int getCgroupModeValue() { - return cgroupMode_; - } - /** - * - * - *
-     * cgroup_mode specifies the cgroup mode to be used on the node.
-     * 
- * - * .google.container.v1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; - * - * @param value The enum numeric value on the wire for cgroupMode to set. - * @return This builder for chaining. - */ - public Builder setCgroupModeValue(int value) { - cgroupMode_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * cgroup_mode specifies the cgroup mode to be used on the node.
-     * 
- * - * .google.container.v1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; - * - * @return The cgroupMode. - */ - @java.lang.Override - public com.google.container.v1.LinuxNodeConfig.CgroupMode getCgroupMode() { - com.google.container.v1.LinuxNodeConfig.CgroupMode result = - com.google.container.v1.LinuxNodeConfig.CgroupMode.forNumber(cgroupMode_); - return result == null - ? com.google.container.v1.LinuxNodeConfig.CgroupMode.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * cgroup_mode specifies the cgroup mode to be used on the node.
-     * 
- * - * .google.container.v1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; - * - * @param value The cgroupMode to set. - * @return This builder for chaining. - */ - public Builder setCgroupMode(com.google.container.v1.LinuxNodeConfig.CgroupMode value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - cgroupMode_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * cgroup_mode specifies the cgroup mode to be used on the node.
-     * 
- * - * .google.container.v1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; - * - * @return This builder for chaining. - */ - public Builder clearCgroupMode() { - bitField0_ = (bitField0_ & ~0x00000002); - cgroupMode_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.LinuxNodeConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.LinuxNodeConfig) - private static final com.google.container.v1.LinuxNodeConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.LinuxNodeConfig(); - } - - public static com.google.container.v1.LinuxNodeConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LinuxNodeConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.LinuxNodeConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LinuxNodeConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LinuxNodeConfigOrBuilder.java deleted file mode 100644 index 16045fa00138..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LinuxNodeConfigOrBuilder.java +++ /dev/null @@ -1,184 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface LinuxNodeConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.LinuxNodeConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The Linux kernel parameters to be applied to the nodes and all pods running
-   * on the nodes.
-   *
-   * The following parameters are supported.
-   *
-   * net.core.busy_poll
-   * net.core.busy_read
-   * 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.busy_poll
-   * net.core.busy_read
-   * 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.busy_poll
-   * net.core.busy_read
-   * 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.busy_poll
-   * net.core.busy_read
-   * 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; - */ - /* nullable */ - java.lang.String getSysctlsOrDefault( - java.lang.String key, - /* nullable */ - 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.busy_poll
-   * net.core.busy_read
-   * 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); - - /** - * - * - *
-   * cgroup_mode specifies the cgroup mode to be used on the node.
-   * 
- * - * .google.container.v1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; - * - * @return The enum numeric value on the wire for cgroupMode. - */ - int getCgroupModeValue(); - /** - * - * - *
-   * cgroup_mode specifies the cgroup mode to be used on the node.
-   * 
- * - * .google.container.v1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; - * - * @return The cgroupMode. - */ - com.google.container.v1.LinuxNodeConfig.CgroupMode getCgroupMode(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java deleted file mode 100644 index 709bd584b7e7..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java +++ /dev/null @@ -1,1079 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * ListClustersRequest lists clusters.
- * 
- * - * Protobuf type {@code google.container.v1.ListClustersRequest} - */ -public final class ListClustersRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListClustersRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListClustersRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ListClustersRequest.class, - com.google.container.v1.ListClustersRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3021 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3021 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object zone_ = ""; - /** - * - * - *
-   * 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]; - * - * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3027 - * @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; - } - } - /** - * - * - *
-   * 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]; - * - * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3027 - * @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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parent_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parent_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.ListClustersRequest)) { - return super.equals(obj); - } - com.google.container.v1.ListClustersRequest other = - (com.google.container.v1.ListClustersRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getZone().equals(other.getZone())) return false; - if (!getParent().equals(other.getParent())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ListClustersRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.ListClustersRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.ListClustersRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ListClustersRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ListClustersRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.ListClustersRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.ListClustersRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.ListClustersRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ListClustersRequest) - com.google.container.v1.ListClustersRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListClustersRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListClustersRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ListClustersRequest.class, - com.google.container.v1.ListClustersRequest.Builder.class); - } - - // Construct using com.google.container.v1.ListClustersRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - parent_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListClustersRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ListClustersRequest getDefaultInstanceForType() { - return com.google.container.v1.ListClustersRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ListClustersRequest build() { - com.google.container.v1.ListClustersRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ListClustersRequest buildPartial() { - com.google.container.v1.ListClustersRequest result = - new com.google.container.v1.ListClustersRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.ListClustersRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.parent_ = parent_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ListClustersRequest) { - return mergeFrom((com.google.container.v1.ListClustersRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ListClustersRequest other) { - if (other == com.google.container.v1.ListClustersRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 34: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3021 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3021 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3021 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3021 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3021 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3027 - * @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; - } - } - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3027 - * @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; - } - } - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3027 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3027 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3027 - * @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; - bitField0_ |= 0x00000002; - 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; - bitField0_ |= 0x00000004; - 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(); - bitField0_ = (bitField0_ & ~0x00000004); - 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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.ListClustersRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ListClustersRequest) - private static final com.google.container.v1.ListClustersRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ListClustersRequest(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.ListClustersRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java deleted file mode 100644 index 2022745ae25a..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java +++ /dev/null @@ -1,127 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface ListClustersRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ListClustersRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3021 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3021 - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides, or "-" for all zones. This field has been deprecated and
-   * replaced by the parent field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3027 - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides, or "-" for all zones. This field has been deprecated and
-   * replaced by the parent field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3027 - * @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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersResponse.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersResponse.java deleted file mode 100644 index 16438a5f94e1..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersResponse.java +++ /dev/null @@ -1,1243 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * ListClustersResponse is the result of ListClustersRequest.
- * 
- * - * Protobuf type {@code google.container.v1.ListClustersResponse} - */ -public final class ListClustersResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListClustersResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListClustersResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListClustersResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ListClustersResponse.class, - com.google.container.v1.ListClustersResponse.Builder.class); - } - - public static final int CLUSTERS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List clusters_; - /** - * - * - *
-   * A list of clusters in the project in the specified zone, or
-   * across all ones.
-   * 
- * - * repeated .google.container.v1.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.v1.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.v1.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.v1.Cluster clusters = 1; - */ - @java.lang.Override - public com.google.container.v1.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.v1.Cluster clusters = 1; - */ - @java.lang.Override - public com.google.container.v1.ClusterOrBuilder getClustersOrBuilder(int index) { - return clusters_.get(index); - } - - public static final int MISSING_ZONES_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList missingZones_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * 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)); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.ListClustersResponse)) { - return super.equals(obj); - } - com.google.container.v1.ListClustersResponse other = - (com.google.container.v1.ListClustersResponse) obj; - - if (!getClustersList().equals(other.getClustersList())) return false; - if (!getMissingZonesList().equals(other.getMissingZonesList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ListClustersResponse parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.ListClustersResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.ListClustersResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ListClustersResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ListClustersResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.ListClustersResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.ListClustersResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.ListClustersResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ListClustersResponse) - com.google.container.v1.ListClustersResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListClustersResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListClustersResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ListClustersResponse.class, - com.google.container.v1.ListClustersResponse.Builder.class); - } - - // Construct using com.google.container.v1.ListClustersResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (clustersBuilder_ == null) { - clusters_ = java.util.Collections.emptyList(); - } else { - clusters_ = null; - clustersBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - missingZones_ = com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListClustersResponse_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ListClustersResponse getDefaultInstanceForType() { - return com.google.container.v1.ListClustersResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ListClustersResponse build() { - com.google.container.v1.ListClustersResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ListClustersResponse buildPartial() { - com.google.container.v1.ListClustersResponse result = - new com.google.container.v1.ListClustersResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.container.v1.ListClustersResponse result) { - if (clustersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - clusters_ = java.util.Collections.unmodifiableList(clusters_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.clusters_ = clusters_; - } else { - result.clusters_ = clustersBuilder_.build(); - } - } - - private void buildPartial0(com.google.container.v1.ListClustersResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - missingZones_.makeImmutable(); - result.missingZones_ = missingZones_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ListClustersResponse) { - return mergeFrom((com.google.container.v1.ListClustersResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ListClustersResponse other) { - if (other == com.google.container.v1.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_ |= 0x00000002; - } else { - ensureMissingZonesIsMutable(); - missingZones_.addAll(other.missingZones_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.container.v1.Cluster m = - input.readMessage(com.google.container.v1.Cluster.parser(), extensionRegistry); - if (clustersBuilder_ == null) { - ensureClustersIsMutable(); - clusters_.add(m); - } else { - clustersBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureMissingZonesIsMutable(); - missingZones_.add(s); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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.v1.Cluster, - com.google.container.v1.Cluster.Builder, - com.google.container.v1.ClusterOrBuilder> - clustersBuilder_; - - /** - * - * - *
-     * A list of clusters in the project in the specified zone, or
-     * across all ones.
-     * 
- * - * repeated .google.container.v1.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.v1.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.v1.Cluster clusters = 1; - */ - public com.google.container.v1.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.v1.Cluster clusters = 1; - */ - public Builder setClusters(int index, com.google.container.v1.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.v1.Cluster clusters = 1; - */ - public Builder setClusters(int index, com.google.container.v1.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.v1.Cluster clusters = 1; - */ - public Builder addClusters(com.google.container.v1.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.v1.Cluster clusters = 1; - */ - public Builder addClusters(int index, com.google.container.v1.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.v1.Cluster clusters = 1; - */ - public Builder addClusters(com.google.container.v1.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.v1.Cluster clusters = 1; - */ - public Builder addClusters(int index, com.google.container.v1.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.v1.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.v1.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.v1.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.v1.Cluster clusters = 1; - */ - public com.google.container.v1.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.v1.Cluster clusters = 1; - */ - public com.google.container.v1.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.v1.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.v1.Cluster clusters = 1; - */ - public com.google.container.v1.Cluster.Builder addClustersBuilder() { - return getClustersFieldBuilder() - .addBuilder(com.google.container.v1.Cluster.getDefaultInstance()); - } - /** - * - * - *
-     * A list of clusters in the project in the specified zone, or
-     * across all ones.
-     * 
- * - * repeated .google.container.v1.Cluster clusters = 1; - */ - public com.google.container.v1.Cluster.Builder addClustersBuilder(int index) { - return getClustersFieldBuilder() - .addBuilder(index, com.google.container.v1.Cluster.getDefaultInstance()); - } - /** - * - * - *
-     * A list of clusters in the project in the specified zone, or
-     * across all ones.
-     * 
- * - * repeated .google.container.v1.Cluster clusters = 1; - */ - public java.util.List getClustersBuilderList() { - return getClustersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.Cluster, - com.google.container.v1.Cluster.Builder, - com.google.container.v1.ClusterOrBuilder> - getClustersFieldBuilder() { - if (clustersBuilder_ == null) { - clustersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.Cluster, - com.google.container.v1.Cluster.Builder, - com.google.container.v1.ClusterOrBuilder>( - clusters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - clusters_ = null; - } - return clustersBuilder_; - } - - private com.google.protobuf.LazyStringArrayList missingZones_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureMissingZonesIsMutable() { - if (!missingZones_.isModifiable()) { - 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() { - missingZones_.makeImmutable(); - 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); - } - /** - * - * - *
-     * 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); - 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 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); - 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 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_); - 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; - * - * @return This builder for chaining. - */ - public Builder clearMissingZones() { - missingZones_ = com.google.protobuf.LazyStringArrayList.emptyList(); - 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); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.ListClustersResponse) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ListClustersResponse) - private static final com.google.container.v1.ListClustersResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ListClustersResponse(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.ListClustersResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersResponseOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersResponseOrBuilder.java deleted file mode 100644 index ea9ab1773533..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersResponseOrBuilder.java +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface ListClustersResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ListClustersResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A list of clusters in the project in the specified zone, or
-   * across all ones.
-   * 
- * - * repeated .google.container.v1.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.v1.Cluster clusters = 1; - */ - com.google.container.v1.Cluster getClusters(int index); - /** - * - * - *
-   * A list of clusters in the project in the specified zone, or
-   * across all ones.
-   * 
- * - * repeated .google.container.v1.Cluster clusters = 1; - */ - int getClustersCount(); - /** - * - * - *
-   * A list of clusters in the project in the specified zone, or
-   * across all ones.
-   * 
- * - * repeated .google.container.v1.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.v1.Cluster clusters = 1; - */ - com.google.container.v1.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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java deleted file mode 100644 index e0fa2548af12..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java +++ /dev/null @@ -1,1282 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * ListNodePoolsRequest lists the node pool(s) for a cluster.
- * 
- * - * Protobuf type {@code google.container.v1.ListNodePoolsRequest} - */ -public final class ListNodePoolsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListNodePoolsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListNodePoolsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ListNodePoolsRequest.class, - com.google.container.v1.ListNodePoolsRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3228 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3228 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object zone_ = ""; - /** - * - * - *
-   * Deprecated. The name of the Google Compute 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]; - * - * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3234 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute 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]; - * - * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3234 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object clusterId_ = ""; - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3238 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3238 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - * - * - *
-   * The parent (project, location, cluster name) 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 name) 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parent_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.ListNodePoolsRequest)) { - return super.equals(obj); - } - com.google.container.v1.ListNodePoolsRequest other = - (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ListNodePoolsRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.ListNodePoolsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.ListNodePoolsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ListNodePoolsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ListNodePoolsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.ListNodePoolsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.ListNodePoolsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.ListNodePoolsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ListNodePoolsRequest) - com.google.container.v1.ListNodePoolsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListNodePoolsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListNodePoolsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ListNodePoolsRequest.class, - com.google.container.v1.ListNodePoolsRequest.Builder.class); - } - - // Construct using com.google.container.v1.ListNodePoolsRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - parent_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListNodePoolsRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ListNodePoolsRequest getDefaultInstanceForType() { - return com.google.container.v1.ListNodePoolsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ListNodePoolsRequest build() { - com.google.container.v1.ListNodePoolsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ListNodePoolsRequest buildPartial() { - com.google.container.v1.ListNodePoolsRequest result = - new com.google.container.v1.ListNodePoolsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.ListNodePoolsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.parent_ = parent_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ListNodePoolsRequest) { - return mergeFrom((com.google.container.v1.ListNodePoolsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ListNodePoolsRequest other) { - if (other == com.google.container.v1.ListNodePoolsRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000008; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 42: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3228 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3228 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3228 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3228 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3228 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute 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]; - * - * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3234 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute 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]; - * - * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3234 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute 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]; - * - * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3234 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute 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]; - * - * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3234 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute 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]; - * - * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3234 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3238 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3238 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3238 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3238 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3238 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * The parent (project, location, cluster name) 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 name) 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 name) 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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * The parent (project, location, cluster name) 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(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * The parent (project, location, cluster name) 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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.ListNodePoolsRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ListNodePoolsRequest) - private static final com.google.container.v1.ListNodePoolsRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ListNodePoolsRequest(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.ListNodePoolsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java deleted file mode 100644 index 0d01f3c7d81e..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface ListNodePoolsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ListNodePoolsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3228 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3228 - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the parent
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3234 - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the parent
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3234 - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3238 - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3238 - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getClusterIdBytes(); - - /** - * - * - *
-   * The parent (project, location, cluster name) 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 name) 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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsResponse.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsResponse.java deleted file mode 100644 index c809e611e511..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsResponse.java +++ /dev/null @@ -1,932 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * ListNodePoolsResponse is the result of ListNodePoolsRequest.
- * 
- * - * Protobuf type {@code google.container.v1.ListNodePoolsResponse} - */ -public final class ListNodePoolsResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListNodePoolsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListNodePoolsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ListNodePoolsResponse.class, - com.google.container.v1.ListNodePoolsResponse.Builder.class); - } - - public static final int NODE_POOLS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List nodePools_; - /** - * - * - *
-   * A list of node pools for a cluster.
-   * 
- * - * repeated .google.container.v1.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.v1.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.v1.NodePool node_pools = 1; - */ - @java.lang.Override - public int getNodePoolsCount() { - return nodePools_.size(); - } - /** - * - * - *
-   * A list of node pools for a cluster.
-   * 
- * - * repeated .google.container.v1.NodePool node_pools = 1; - */ - @java.lang.Override - public com.google.container.v1.NodePool getNodePools(int index) { - return nodePools_.get(index); - } - /** - * - * - *
-   * A list of node pools for a cluster.
-   * 
- * - * repeated .google.container.v1.NodePool node_pools = 1; - */ - @java.lang.Override - public com.google.container.v1.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)); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.ListNodePoolsResponse)) { - return super.equals(obj); - } - com.google.container.v1.ListNodePoolsResponse other = - (com.google.container.v1.ListNodePoolsResponse) obj; - - if (!getNodePoolsList().equals(other.getNodePoolsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ListNodePoolsResponse parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.ListNodePoolsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.ListNodePoolsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ListNodePoolsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ListNodePoolsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.ListNodePoolsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.ListNodePoolsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.ListNodePoolsResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ListNodePoolsResponse) - com.google.container.v1.ListNodePoolsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListNodePoolsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListNodePoolsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ListNodePoolsResponse.class, - com.google.container.v1.ListNodePoolsResponse.Builder.class); - } - - // Construct using com.google.container.v1.ListNodePoolsResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (nodePoolsBuilder_ == null) { - nodePools_ = java.util.Collections.emptyList(); - } else { - nodePools_ = null; - nodePoolsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListNodePoolsResponse_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ListNodePoolsResponse getDefaultInstanceForType() { - return com.google.container.v1.ListNodePoolsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ListNodePoolsResponse build() { - com.google.container.v1.ListNodePoolsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ListNodePoolsResponse buildPartial() { - com.google.container.v1.ListNodePoolsResponse result = - new com.google.container.v1.ListNodePoolsResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.container.v1.ListNodePoolsResponse result) { - if (nodePoolsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - nodePools_ = java.util.Collections.unmodifiableList(nodePools_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.nodePools_ = nodePools_; - } else { - result.nodePools_ = nodePoolsBuilder_.build(); - } - } - - private void buildPartial0(com.google.container.v1.ListNodePoolsResponse result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ListNodePoolsResponse) { - return mergeFrom((com.google.container.v1.ListNodePoolsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ListNodePoolsResponse other) { - if (other == com.google.container.v1.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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.container.v1.NodePool m = - input.readMessage(com.google.container.v1.NodePool.parser(), extensionRegistry); - if (nodePoolsBuilder_ == null) { - ensureNodePoolsIsMutable(); - nodePools_.add(m); - } else { - nodePoolsBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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.v1.NodePool, - com.google.container.v1.NodePool.Builder, - com.google.container.v1.NodePoolOrBuilder> - nodePoolsBuilder_; - - /** - * - * - *
-     * A list of node pools for a cluster.
-     * 
- * - * repeated .google.container.v1.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.v1.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.v1.NodePool node_pools = 1; - */ - public com.google.container.v1.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.v1.NodePool node_pools = 1; - */ - public Builder setNodePools(int index, com.google.container.v1.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.v1.NodePool node_pools = 1; - */ - public Builder setNodePools( - int index, com.google.container.v1.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.v1.NodePool node_pools = 1; - */ - public Builder addNodePools(com.google.container.v1.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.v1.NodePool node_pools = 1; - */ - public Builder addNodePools(int index, com.google.container.v1.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.v1.NodePool node_pools = 1; - */ - public Builder addNodePools(com.google.container.v1.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.v1.NodePool node_pools = 1; - */ - public Builder addNodePools( - int index, com.google.container.v1.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.v1.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.v1.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.v1.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.v1.NodePool node_pools = 1; - */ - public com.google.container.v1.NodePool.Builder getNodePoolsBuilder(int index) { - return getNodePoolsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * A list of node pools for a cluster.
-     * 
- * - * repeated .google.container.v1.NodePool node_pools = 1; - */ - public com.google.container.v1.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.v1.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.v1.NodePool node_pools = 1; - */ - public com.google.container.v1.NodePool.Builder addNodePoolsBuilder() { - return getNodePoolsFieldBuilder() - .addBuilder(com.google.container.v1.NodePool.getDefaultInstance()); - } - /** - * - * - *
-     * A list of node pools for a cluster.
-     * 
- * - * repeated .google.container.v1.NodePool node_pools = 1; - */ - public com.google.container.v1.NodePool.Builder addNodePoolsBuilder(int index) { - return getNodePoolsFieldBuilder() - .addBuilder(index, com.google.container.v1.NodePool.getDefaultInstance()); - } - /** - * - * - *
-     * A list of node pools for a cluster.
-     * 
- * - * repeated .google.container.v1.NodePool node_pools = 1; - */ - public java.util.List getNodePoolsBuilderList() { - return getNodePoolsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.NodePool, - com.google.container.v1.NodePool.Builder, - com.google.container.v1.NodePoolOrBuilder> - getNodePoolsFieldBuilder() { - if (nodePoolsBuilder_ == null) { - nodePoolsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.NodePool, - com.google.container.v1.NodePool.Builder, - com.google.container.v1.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.v1.ListNodePoolsResponse) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ListNodePoolsResponse) - private static final com.google.container.v1.ListNodePoolsResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ListNodePoolsResponse(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.ListNodePoolsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsResponseOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsResponseOrBuilder.java deleted file mode 100644 index 1f8112af462b..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsResponseOrBuilder.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface ListNodePoolsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ListNodePoolsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A list of node pools for a cluster.
-   * 
- * - * repeated .google.container.v1.NodePool node_pools = 1; - */ - java.util.List getNodePoolsList(); - /** - * - * - *
-   * A list of node pools for a cluster.
-   * 
- * - * repeated .google.container.v1.NodePool node_pools = 1; - */ - com.google.container.v1.NodePool getNodePools(int index); - /** - * - * - *
-   * A list of node pools for a cluster.
-   * 
- * - * repeated .google.container.v1.NodePool node_pools = 1; - */ - int getNodePoolsCount(); - /** - * - * - *
-   * A list of node pools for a cluster.
-   * 
- * - * repeated .google.container.v1.NodePool node_pools = 1; - */ - java.util.List getNodePoolsOrBuilderList(); - /** - * - * - *
-   * A list of node pools for a cluster.
-   * 
- * - * repeated .google.container.v1.NodePool node_pools = 1; - */ - com.google.container.v1.NodePoolOrBuilder getNodePoolsOrBuilder(int index); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java deleted file mode 100644 index 8f02cea553df..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java +++ /dev/null @@ -1,1079 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * ListOperationsRequest lists operations.
- * 
- * - * Protobuf type {@code google.container.v1.ListOperationsRequest} - */ -public final class ListOperationsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListOperationsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListOperationsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ListOperationsRequest.class, - com.google.container.v1.ListOperationsRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3073 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3073 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object zone_ = ""; - /** - * - * - *
-   * 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]; - * - * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3079 - * @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; - } - } - /** - * - * - *
-   * 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]; - * - * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3079 - * @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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parent_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parent_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.ListOperationsRequest)) { - return super.equals(obj); - } - com.google.container.v1.ListOperationsRequest other = - (com.google.container.v1.ListOperationsRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getZone().equals(other.getZone())) return false; - if (!getParent().equals(other.getParent())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ListOperationsRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.ListOperationsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.ListOperationsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ListOperationsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ListOperationsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.ListOperationsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.ListOperationsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.ListOperationsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ListOperationsRequest) - com.google.container.v1.ListOperationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListOperationsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListOperationsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ListOperationsRequest.class, - com.google.container.v1.ListOperationsRequest.Builder.class); - } - - // Construct using com.google.container.v1.ListOperationsRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - parent_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListOperationsRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ListOperationsRequest getDefaultInstanceForType() { - return com.google.container.v1.ListOperationsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ListOperationsRequest build() { - com.google.container.v1.ListOperationsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ListOperationsRequest buildPartial() { - com.google.container.v1.ListOperationsRequest result = - new com.google.container.v1.ListOperationsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.ListOperationsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.parent_ = parent_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ListOperationsRequest) { - return mergeFrom((com.google.container.v1.ListOperationsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ListOperationsRequest other) { - if (other == com.google.container.v1.ListOperationsRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 34: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3073 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3073 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3073 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3073 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3073 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3079 - * @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; - } - } - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3079 - * @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; - } - } - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3079 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3079 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3079 - * @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; - bitField0_ |= 0x00000002; - 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; - bitField0_ |= 0x00000004; - 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(); - bitField0_ = (bitField0_ & ~0x00000004); - 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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.ListOperationsRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ListOperationsRequest) - private static final com.google.container.v1.ListOperationsRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ListOperationsRequest(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.ListOperationsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java deleted file mode 100644 index 78c344e009a8..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java +++ /dev/null @@ -1,127 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface ListOperationsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ListOperationsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3073 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3073 - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) to return
-   * operations for, or `-` for all zones. This field has been deprecated and
-   * replaced by the parent field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3079 - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) to return
-   * operations for, or `-` for all zones. This field has been deprecated and
-   * replaced by the parent field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3079 - * @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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsResponse.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsResponse.java deleted file mode 100644 index ec0dbb7bc8d4..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsResponse.java +++ /dev/null @@ -1,1223 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * ListOperationsResponse is the result of ListOperationsRequest.
- * 
- * - * Protobuf type {@code google.container.v1.ListOperationsResponse} - */ -public final class ListOperationsResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListOperationsResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListOperationsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListOperationsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ListOperationsResponse.class, - com.google.container.v1.ListOperationsResponse.Builder.class); - } - - public static final int OPERATIONS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List operations_; - /** - * - * - *
-   * A list of operations in the project in the specified zone.
-   * 
- * - * repeated .google.container.v1.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.v1.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.v1.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.v1.Operation operations = 1; - */ - @java.lang.Override - public com.google.container.v1.Operation getOperations(int index) { - return operations_.get(index); - } - /** - * - * - *
-   * A list of operations in the project in the specified zone.
-   * 
- * - * repeated .google.container.v1.Operation operations = 1; - */ - @java.lang.Override - public com.google.container.v1.OperationOrBuilder getOperationsOrBuilder(int index) { - return operations_.get(index); - } - - public static final int MISSING_ZONES_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList missingZones_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * 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)); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.ListOperationsResponse)) { - return super.equals(obj); - } - com.google.container.v1.ListOperationsResponse other = - (com.google.container.v1.ListOperationsResponse) obj; - - if (!getOperationsList().equals(other.getOperationsList())) return false; - if (!getMissingZonesList().equals(other.getMissingZonesList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ListOperationsResponse parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.ListOperationsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.ListOperationsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ListOperationsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ListOperationsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.ListOperationsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.ListOperationsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.ListOperationsResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ListOperationsResponse) - com.google.container.v1.ListOperationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListOperationsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListOperationsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ListOperationsResponse.class, - com.google.container.v1.ListOperationsResponse.Builder.class); - } - - // Construct using com.google.container.v1.ListOperationsResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (operationsBuilder_ == null) { - operations_ = java.util.Collections.emptyList(); - } else { - operations_ = null; - operationsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - missingZones_ = com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListOperationsResponse_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ListOperationsResponse getDefaultInstanceForType() { - return com.google.container.v1.ListOperationsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ListOperationsResponse build() { - com.google.container.v1.ListOperationsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ListOperationsResponse buildPartial() { - com.google.container.v1.ListOperationsResponse result = - new com.google.container.v1.ListOperationsResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.container.v1.ListOperationsResponse result) { - if (operationsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - operations_ = java.util.Collections.unmodifiableList(operations_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.operations_ = operations_; - } else { - result.operations_ = operationsBuilder_.build(); - } - } - - private void buildPartial0(com.google.container.v1.ListOperationsResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - missingZones_.makeImmutable(); - result.missingZones_ = missingZones_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ListOperationsResponse) { - return mergeFrom((com.google.container.v1.ListOperationsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ListOperationsResponse other) { - if (other == com.google.container.v1.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_ |= 0x00000002; - } else { - ensureMissingZonesIsMutable(); - missingZones_.addAll(other.missingZones_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.container.v1.Operation m = - input.readMessage( - com.google.container.v1.Operation.parser(), extensionRegistry); - if (operationsBuilder_ == null) { - ensureOperationsIsMutable(); - operations_.add(m); - } else { - operationsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureMissingZonesIsMutable(); - missingZones_.add(s); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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.v1.Operation, - com.google.container.v1.Operation.Builder, - com.google.container.v1.OperationOrBuilder> - operationsBuilder_; - - /** - * - * - *
-     * A list of operations in the project in the specified zone.
-     * 
- * - * repeated .google.container.v1.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.v1.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.v1.Operation operations = 1; - */ - public com.google.container.v1.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.v1.Operation operations = 1; - */ - public Builder setOperations(int index, com.google.container.v1.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.v1.Operation operations = 1; - */ - public Builder setOperations( - int index, com.google.container.v1.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.v1.Operation operations = 1; - */ - public Builder addOperations(com.google.container.v1.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.v1.Operation operations = 1; - */ - public Builder addOperations(int index, com.google.container.v1.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.v1.Operation operations = 1; - */ - public Builder addOperations(com.google.container.v1.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.v1.Operation operations = 1; - */ - public Builder addOperations( - int index, com.google.container.v1.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.v1.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.v1.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.v1.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.v1.Operation operations = 1; - */ - public com.google.container.v1.Operation.Builder getOperationsBuilder(int index) { - return getOperationsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * A list of operations in the project in the specified zone.
-     * 
- * - * repeated .google.container.v1.Operation operations = 1; - */ - public com.google.container.v1.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.v1.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.v1.Operation operations = 1; - */ - public com.google.container.v1.Operation.Builder addOperationsBuilder() { - return getOperationsFieldBuilder() - .addBuilder(com.google.container.v1.Operation.getDefaultInstance()); - } - /** - * - * - *
-     * A list of operations in the project in the specified zone.
-     * 
- * - * repeated .google.container.v1.Operation operations = 1; - */ - public com.google.container.v1.Operation.Builder addOperationsBuilder(int index) { - return getOperationsFieldBuilder() - .addBuilder(index, com.google.container.v1.Operation.getDefaultInstance()); - } - /** - * - * - *
-     * A list of operations in the project in the specified zone.
-     * 
- * - * repeated .google.container.v1.Operation operations = 1; - */ - public java.util.List getOperationsBuilderList() { - return getOperationsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.Operation, - com.google.container.v1.Operation.Builder, - com.google.container.v1.OperationOrBuilder> - getOperationsFieldBuilder() { - if (operationsBuilder_ == null) { - operationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.Operation, - com.google.container.v1.Operation.Builder, - com.google.container.v1.OperationOrBuilder>( - operations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - operations_ = null; - } - return operationsBuilder_; - } - - private com.google.protobuf.LazyStringArrayList missingZones_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureMissingZonesIsMutable() { - if (!missingZones_.isModifiable()) { - 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() { - missingZones_.makeImmutable(); - 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); - } - /** - * - * - *
-     * 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); - 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 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); - 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 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_); - 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; - * - * @return This builder for chaining. - */ - public Builder clearMissingZones() { - missingZones_ = com.google.protobuf.LazyStringArrayList.emptyList(); - 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); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.ListOperationsResponse) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ListOperationsResponse) - private static final com.google.container.v1.ListOperationsResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ListOperationsResponse(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.ListOperationsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsResponseOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsResponseOrBuilder.java deleted file mode 100644 index bc9d6afffdff..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsResponseOrBuilder.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface ListOperationsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ListOperationsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A list of operations in the project in the specified zone.
-   * 
- * - * repeated .google.container.v1.Operation operations = 1; - */ - java.util.List getOperationsList(); - /** - * - * - *
-   * A list of operations in the project in the specified zone.
-   * 
- * - * repeated .google.container.v1.Operation operations = 1; - */ - com.google.container.v1.Operation getOperations(int index); - /** - * - * - *
-   * A list of operations in the project in the specified zone.
-   * 
- * - * repeated .google.container.v1.Operation operations = 1; - */ - int getOperationsCount(); - /** - * - * - *
-   * A list of operations in the project in the specified zone.
-   * 
- * - * repeated .google.container.v1.Operation operations = 1; - */ - java.util.List getOperationsOrBuilderList(); - /** - * - * - *
-   * A list of operations in the project in the specified zone.
-   * 
- * - * repeated .google.container.v1.Operation operations = 1; - */ - com.google.container.v1.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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksRequest.java deleted file mode 100644 index 23bd0b0d90bc..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksRequest.java +++ /dev/null @@ -1,1131 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * ListUsableSubnetworksRequest requests the list of usable subnetworks
- * available to a user for creating clusters.
- * 
- * - * Protobuf type {@code google.container.v1.ListUsableSubnetworksRequest} - */ -public final class ListUsableSubnetworksRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListUsableSubnetworksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListUsableSubnetworksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ListUsableSubnetworksRequest.class, - com.google.container.v1.ListUsableSubnetworksRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - * - * - *
-   * The parent project where subnetworks are usable.
-   * Specified in the format `projects/*`.
-   * 
- * - * 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 parent project where subnetworks are usable.
-   * Specified in the format `projects/*`.
-   * 
- * - * 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; - } - } - - public static final int FILTER_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - 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_ = 0; - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); - } - if (pageSize_ != 0) { - output.writeInt32(3, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.ListUsableSubnetworksRequest)) { - return super.equals(obj); - } - com.google.container.v1.ListUsableSubnetworksRequest other = - (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ListUsableSubnetworksRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.ListUsableSubnetworksRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.ListUsableSubnetworksRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ListUsableSubnetworksRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ListUsableSubnetworksRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.ListUsableSubnetworksRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.ListUsableSubnetworksRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.ListUsableSubnetworksRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ListUsableSubnetworksRequest) - com.google.container.v1.ListUsableSubnetworksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListUsableSubnetworksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListUsableSubnetworksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ListUsableSubnetworksRequest.class, - com.google.container.v1.ListUsableSubnetworksRequest.Builder.class); - } - - // Construct using com.google.container.v1.ListUsableSubnetworksRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListUsableSubnetworksRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ListUsableSubnetworksRequest getDefaultInstanceForType() { - return com.google.container.v1.ListUsableSubnetworksRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ListUsableSubnetworksRequest build() { - com.google.container.v1.ListUsableSubnetworksRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ListUsableSubnetworksRequest buildPartial() { - com.google.container.v1.ListUsableSubnetworksRequest result = - new com.google.container.v1.ListUsableSubnetworksRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.ListUsableSubnetworksRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.filter_ = filter_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.pageToken_ = pageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ListUsableSubnetworksRequest) { - return mergeFrom((com.google.container.v1.ListUsableSubnetworksRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ListUsableSubnetworksRequest other) { - if (other == com.google.container.v1.ListUsableSubnetworksRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000008; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * The parent project where subnetworks are usable.
-     * Specified in the format `projects/*`.
-     * 
- * - * 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 parent project where subnetworks are usable.
-     * Specified in the format `projects/*`.
-     * 
- * - * 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 parent project where subnetworks are usable.
-     * Specified in the format `projects/*`.
-     * 
- * - * 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The parent project where subnetworks are usable.
-     * Specified in the format `projects/*`.
-     * 
- * - * string parent = 1; - * - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * The parent project where subnetworks are usable.
-     * Specified in the format `projects/*`.
-     * 
- * - * 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; - bitField0_ |= 0x00000001; - 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; - bitField0_ |= 0x00000002; - 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(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - 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; - bitField0_ |= 0x00000004; - 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() { - bitField0_ = (bitField0_ & ~0x00000004); - 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; - bitField0_ |= 0x00000008; - 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(); - bitField0_ = (bitField0_ & ~0x00000008); - 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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.ListUsableSubnetworksRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ListUsableSubnetworksRequest) - private static final com.google.container.v1.ListUsableSubnetworksRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ListUsableSubnetworksRequest(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.ListUsableSubnetworksRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksRequestOrBuilder.java deleted file mode 100644 index 099722ac8f1e..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksRequestOrBuilder.java +++ /dev/null @@ -1,127 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface ListUsableSubnetworksRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ListUsableSubnetworksRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The parent project where subnetworks are usable.
-   * Specified in the format `projects/*`.
-   * 
- * - * string parent = 1; - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * The parent project where subnetworks are usable.
-   * Specified in the format `projects/*`.
-   * 
- * - * string parent = 1; - * - * @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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksResponse.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksResponse.java deleted file mode 100644 index 943125e7c0a4..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksResponse.java +++ /dev/null @@ -1,1144 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * ListUsableSubnetworksResponse is the response of
- * ListUsableSubnetworksRequest.
- * 
- * - * Protobuf type {@code google.container.v1.ListUsableSubnetworksResponse} - */ -public final class ListUsableSubnetworksResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListUsableSubnetworksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListUsableSubnetworksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ListUsableSubnetworksResponse.class, - com.google.container.v1.ListUsableSubnetworksResponse.Builder.class); - } - - public static final int SUBNETWORKS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List subnetworks_; - /** - * - * - *
-   * A list of usable subnetworks in the specified network project.
-   * 
- * - * repeated .google.container.v1.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.v1.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.v1.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.v1.UsableSubnetwork subnetworks = 1; - */ - @java.lang.Override - public com.google.container.v1.UsableSubnetwork getSubnetworks(int index) { - return subnetworks_.get(index); - } - /** - * - * - *
-   * A list of usable subnetworks in the specified network project.
-   * 
- * - * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - */ - @java.lang.Override - public com.google.container.v1.UsableSubnetworkOrBuilder getSubnetworksOrBuilder(int index) { - return subnetworks_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.ListUsableSubnetworksResponse)) { - return super.equals(obj); - } - com.google.container.v1.ListUsableSubnetworksResponse other = - (com.google.container.v1.ListUsableSubnetworksResponse) obj; - - if (!getSubnetworksList().equals(other.getSubnetworksList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ListUsableSubnetworksResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.ListUsableSubnetworksResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.ListUsableSubnetworksResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ListUsableSubnetworksResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ListUsableSubnetworksResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.ListUsableSubnetworksResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.ListUsableSubnetworksResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.ListUsableSubnetworksResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ListUsableSubnetworksResponse) - com.google.container.v1.ListUsableSubnetworksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListUsableSubnetworksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListUsableSubnetworksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ListUsableSubnetworksResponse.class, - com.google.container.v1.ListUsableSubnetworksResponse.Builder.class); - } - - // Construct using com.google.container.v1.ListUsableSubnetworksResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (subnetworksBuilder_ == null) { - subnetworks_ = java.util.Collections.emptyList(); - } else { - subnetworks_ = null; - subnetworksBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListUsableSubnetworksResponse_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ListUsableSubnetworksResponse getDefaultInstanceForType() { - return com.google.container.v1.ListUsableSubnetworksResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ListUsableSubnetworksResponse build() { - com.google.container.v1.ListUsableSubnetworksResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ListUsableSubnetworksResponse buildPartial() { - com.google.container.v1.ListUsableSubnetworksResponse result = - new com.google.container.v1.ListUsableSubnetworksResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.container.v1.ListUsableSubnetworksResponse result) { - if (subnetworksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - subnetworks_ = java.util.Collections.unmodifiableList(subnetworks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.subnetworks_ = subnetworks_; - } else { - result.subnetworks_ = subnetworksBuilder_.build(); - } - } - - private void buildPartial0(com.google.container.v1.ListUsableSubnetworksResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ListUsableSubnetworksResponse) { - return mergeFrom((com.google.container.v1.ListUsableSubnetworksResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ListUsableSubnetworksResponse other) { - if (other == com.google.container.v1.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_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.container.v1.UsableSubnetwork m = - input.readMessage( - com.google.container.v1.UsableSubnetwork.parser(), extensionRegistry); - if (subnetworksBuilder_ == null) { - ensureSubnetworksIsMutable(); - subnetworks_.add(m); - } else { - subnetworksBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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.v1.UsableSubnetwork, - com.google.container.v1.UsableSubnetwork.Builder, - com.google.container.v1.UsableSubnetworkOrBuilder> - subnetworksBuilder_; - - /** - * - * - *
-     * A list of usable subnetworks in the specified network project.
-     * 
- * - * repeated .google.container.v1.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.v1.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.v1.UsableSubnetwork subnetworks = 1; - */ - public com.google.container.v1.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.v1.UsableSubnetwork subnetworks = 1; - */ - public Builder setSubnetworks(int index, com.google.container.v1.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.v1.UsableSubnetwork subnetworks = 1; - */ - public Builder setSubnetworks( - int index, com.google.container.v1.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.v1.UsableSubnetwork subnetworks = 1; - */ - public Builder addSubnetworks(com.google.container.v1.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.v1.UsableSubnetwork subnetworks = 1; - */ - public Builder addSubnetworks(int index, com.google.container.v1.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.v1.UsableSubnetwork subnetworks = 1; - */ - public Builder addSubnetworks( - com.google.container.v1.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.v1.UsableSubnetwork subnetworks = 1; - */ - public Builder addSubnetworks( - int index, com.google.container.v1.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.v1.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.v1.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.v1.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.v1.UsableSubnetwork subnetworks = 1; - */ - public com.google.container.v1.UsableSubnetwork.Builder getSubnetworksBuilder(int index) { - return getSubnetworksFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * A list of usable subnetworks in the specified network project.
-     * 
- * - * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - */ - public com.google.container.v1.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.v1.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.v1.UsableSubnetwork subnetworks = 1; - */ - public com.google.container.v1.UsableSubnetwork.Builder addSubnetworksBuilder() { - return getSubnetworksFieldBuilder() - .addBuilder(com.google.container.v1.UsableSubnetwork.getDefaultInstance()); - } - /** - * - * - *
-     * A list of usable subnetworks in the specified network project.
-     * 
- * - * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - */ - public com.google.container.v1.UsableSubnetwork.Builder addSubnetworksBuilder(int index) { - return getSubnetworksFieldBuilder() - .addBuilder(index, com.google.container.v1.UsableSubnetwork.getDefaultInstance()); - } - /** - * - * - *
-     * A list of usable subnetworks in the specified network project.
-     * 
- * - * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - */ - public java.util.List - getSubnetworksBuilderList() { - return getSubnetworksFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.UsableSubnetwork, - com.google.container.v1.UsableSubnetwork.Builder, - com.google.container.v1.UsableSubnetworkOrBuilder> - getSubnetworksFieldBuilder() { - if (subnetworksBuilder_ == null) { - subnetworksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.UsableSubnetwork, - com.google.container.v1.UsableSubnetwork.Builder, - com.google.container.v1.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; - bitField0_ |= 0x00000002; - 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(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.ListUsableSubnetworksResponse) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ListUsableSubnetworksResponse) - private static final com.google.container.v1.ListUsableSubnetworksResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ListUsableSubnetworksResponse(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.ListUsableSubnetworksResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksResponseOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksResponseOrBuilder.java deleted file mode 100644 index 238c4f07c6ed..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksResponseOrBuilder.java +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface ListUsableSubnetworksResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ListUsableSubnetworksResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A list of usable subnetworks in the specified network project.
-   * 
- * - * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - */ - java.util.List getSubnetworksList(); - /** - * - * - *
-   * A list of usable subnetworks in the specified network project.
-   * 
- * - * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - */ - com.google.container.v1.UsableSubnetwork getSubnetworks(int index); - /** - * - * - *
-   * A list of usable subnetworks in the specified network project.
-   * 
- * - * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - */ - int getSubnetworksCount(); - /** - * - * - *
-   * A list of usable subnetworks in the specified network project.
-   * 
- * - * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - */ - java.util.List - getSubnetworksOrBuilderList(); - /** - * - * - *
-   * A list of usable subnetworks in the specified network project.
-   * 
- * - * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - */ - com.google.container.v1.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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LocalNvmeSsdBlockConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LocalNvmeSsdBlockConfig.java deleted file mode 100644 index 45dd2ec41dd4..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LocalNvmeSsdBlockConfig.java +++ /dev/null @@ -1,597 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * LocalNvmeSsdBlockConfig contains configuration for using raw-block local
- * NVMe SSDs
- * 
- * - * Protobuf type {@code google.container.v1.LocalNvmeSsdBlockConfig} - */ -public final class LocalNvmeSsdBlockConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.LocalNvmeSsdBlockConfig) - LocalNvmeSsdBlockConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use LocalNvmeSsdBlockConfig.newBuilder() to construct. - private LocalNvmeSsdBlockConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private LocalNvmeSsdBlockConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new LocalNvmeSsdBlockConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_LocalNvmeSsdBlockConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_LocalNvmeSsdBlockConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.LocalNvmeSsdBlockConfig.class, - com.google.container.v1.LocalNvmeSsdBlockConfig.Builder.class); - } - - public static final int LOCAL_SSD_COUNT_FIELD_NUMBER = 1; - private int localSsdCount_ = 0; - /** - * - * - *
-   * Number of local NVMe SSDs to use.  The limit for this value is dependent
-   * upon the maximum number of disk available on a machine per zone. See:
-   * https://cloud.google.com/compute/docs/disks/local-ssd
-   * for more information.
-   *
-   * A zero (or unset) value has different meanings depending on machine type
-   * being used:
-   * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
-   * zero (or unset) means to disable using local SSDs as ephemeral storage.
-   * 2. For Gen3 machines which dictate a specific number of local ssds, zero
-   * (or unset) means to use the default number of local ssds that goes with
-   * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
-   * ssds would be provisioned. For c3-standard-8 (which doesn't support local
-   * ssds), 0 will be provisioned. See
-   * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
-   * for more info.
-   * 
- * - * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.LocalNvmeSsdBlockConfig)) { - return super.equals(obj); - } - com.google.container.v1.LocalNvmeSsdBlockConfig other = - (com.google.container.v1.LocalNvmeSsdBlockConfig) obj; - - if (getLocalSsdCount() != other.getLocalSsdCount()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.LocalNvmeSsdBlockConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.LocalNvmeSsdBlockConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.LocalNvmeSsdBlockConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.LocalNvmeSsdBlockConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.LocalNvmeSsdBlockConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.LocalNvmeSsdBlockConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.LocalNvmeSsdBlockConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.LocalNvmeSsdBlockConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.LocalNvmeSsdBlockConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.LocalNvmeSsdBlockConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.LocalNvmeSsdBlockConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.LocalNvmeSsdBlockConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.LocalNvmeSsdBlockConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * LocalNvmeSsdBlockConfig contains configuration for using raw-block local
-   * NVMe SSDs
-   * 
- * - * Protobuf type {@code google.container.v1.LocalNvmeSsdBlockConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.LocalNvmeSsdBlockConfig) - com.google.container.v1.LocalNvmeSsdBlockConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_LocalNvmeSsdBlockConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_LocalNvmeSsdBlockConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.LocalNvmeSsdBlockConfig.class, - com.google.container.v1.LocalNvmeSsdBlockConfig.Builder.class); - } - - // Construct using com.google.container.v1.LocalNvmeSsdBlockConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - localSsdCount_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_LocalNvmeSsdBlockConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.LocalNvmeSsdBlockConfig getDefaultInstanceForType() { - return com.google.container.v1.LocalNvmeSsdBlockConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.LocalNvmeSsdBlockConfig build() { - com.google.container.v1.LocalNvmeSsdBlockConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.LocalNvmeSsdBlockConfig buildPartial() { - com.google.container.v1.LocalNvmeSsdBlockConfig result = - new com.google.container.v1.LocalNvmeSsdBlockConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.LocalNvmeSsdBlockConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.localSsdCount_ = localSsdCount_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.LocalNvmeSsdBlockConfig) { - return mergeFrom((com.google.container.v1.LocalNvmeSsdBlockConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.LocalNvmeSsdBlockConfig other) { - if (other == com.google.container.v1.LocalNvmeSsdBlockConfig.getDefaultInstance()) - return this; - if (other.getLocalSsdCount() != 0) { - setLocalSsdCount(other.getLocalSsdCount()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - localSsdCount_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int localSsdCount_; - /** - * - * - *
-     * Number of local NVMe SSDs to use.  The limit for this value is dependent
-     * upon the maximum number of disk available on a machine per zone. See:
-     * https://cloud.google.com/compute/docs/disks/local-ssd
-     * for more information.
-     *
-     * A zero (or unset) value has different meanings depending on machine type
-     * being used:
-     * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
-     * zero (or unset) means to disable using local SSDs as ephemeral storage.
-     * 2. For Gen3 machines which dictate a specific number of local ssds, zero
-     * (or unset) means to use the default number of local ssds that goes with
-     * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
-     * ssds would be provisioned. For c3-standard-8 (which doesn't support local
-     * ssds), 0 will be provisioned. See
-     * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
-     * for more info.
-     * 
- * - * int32 local_ssd_count = 1; - * - * @return The localSsdCount. - */ - @java.lang.Override - public int getLocalSsdCount() { - return localSsdCount_; - } - /** - * - * - *
-     * Number of local NVMe SSDs to use.  The limit for this value is dependent
-     * upon the maximum number of disk available on a machine per zone. See:
-     * https://cloud.google.com/compute/docs/disks/local-ssd
-     * for more information.
-     *
-     * A zero (or unset) value has different meanings depending on machine type
-     * being used:
-     * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
-     * zero (or unset) means to disable using local SSDs as ephemeral storage.
-     * 2. For Gen3 machines which dictate a specific number of local ssds, zero
-     * (or unset) means to use the default number of local ssds that goes with
-     * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
-     * ssds would be provisioned. For c3-standard-8 (which doesn't support local
-     * ssds), 0 will be provisioned. See
-     * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
-     * for more info.
-     * 
- * - * int32 local_ssd_count = 1; - * - * @param value The localSsdCount to set. - * @return This builder for chaining. - */ - public Builder setLocalSsdCount(int value) { - - localSsdCount_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Number of local NVMe SSDs to use.  The limit for this value is dependent
-     * upon the maximum number of disk available on a machine per zone. See:
-     * https://cloud.google.com/compute/docs/disks/local-ssd
-     * for more information.
-     *
-     * A zero (or unset) value has different meanings depending on machine type
-     * being used:
-     * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
-     * zero (or unset) means to disable using local SSDs as ephemeral storage.
-     * 2. For Gen3 machines which dictate a specific number of local ssds, zero
-     * (or unset) means to use the default number of local ssds that goes with
-     * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
-     * ssds would be provisioned. For c3-standard-8 (which doesn't support local
-     * ssds), 0 will be provisioned. See
-     * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
-     * for more info.
-     * 
- * - * int32 local_ssd_count = 1; - * - * @return This builder for chaining. - */ - public Builder clearLocalSsdCount() { - bitField0_ = (bitField0_ & ~0x00000001); - 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.v1.LocalNvmeSsdBlockConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.LocalNvmeSsdBlockConfig) - private static final com.google.container.v1.LocalNvmeSsdBlockConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.LocalNvmeSsdBlockConfig(); - } - - public static com.google.container.v1.LocalNvmeSsdBlockConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LocalNvmeSsdBlockConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.LocalNvmeSsdBlockConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LocalNvmeSsdBlockConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LocalNvmeSsdBlockConfigOrBuilder.java deleted file mode 100644 index a2eca231e91e..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LocalNvmeSsdBlockConfigOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface LocalNvmeSsdBlockConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.LocalNvmeSsdBlockConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Number of local NVMe SSDs to use.  The limit for this value is dependent
-   * upon the maximum number of disk available on a machine per zone. See:
-   * https://cloud.google.com/compute/docs/disks/local-ssd
-   * for more information.
-   *
-   * A zero (or unset) value has different meanings depending on machine type
-   * being used:
-   * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
-   * zero (or unset) means to disable using local SSDs as ephemeral storage.
-   * 2. For Gen3 machines which dictate a specific number of local ssds, zero
-   * (or unset) means to use the default number of local ssds that goes with
-   * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
-   * ssds would be provisioned. For c3-standard-8 (which doesn't support local
-   * ssds), 0 will be provisioned. See
-   * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
-   * for more info.
-   * 
- * - * int32 local_ssd_count = 1; - * - * @return The localSsdCount. - */ - int getLocalSsdCount(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingComponentConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingComponentConfig.java deleted file mode 100644 index c5de695c61a0..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingComponentConfig.java +++ /dev/null @@ -1,1076 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * LoggingComponentConfig is cluster logging component configuration.
- * 
- * - * Protobuf type {@code google.container.v1.LoggingComponentConfig} - */ -public final class LoggingComponentConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.LoggingComponentConfig) - LoggingComponentConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use LoggingComponentConfig.newBuilder() to construct. - private LoggingComponentConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private LoggingComponentConfig() { - enableComponents_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new LoggingComponentConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_LoggingComponentConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_LoggingComponentConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.LoggingComponentConfig.class, - com.google.container.v1.LoggingComponentConfig.Builder.class); - } - - /** - * - * - *
-   * GKE components exposing logs
-   * 
- * - * Protobuf enum {@code google.container.v1.LoggingComponentConfig.Component} - */ - public enum Component implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value. This shouldn't be used.
-     * 
- * - * COMPONENT_UNSPECIFIED = 0; - */ - COMPONENT_UNSPECIFIED(0), - /** - * - * - *
-     * system components
-     * 
- * - * SYSTEM_COMPONENTS = 1; - */ - SYSTEM_COMPONENTS(1), - /** - * - * - *
-     * workloads
-     * 
- * - * WORKLOADS = 2; - */ - WORKLOADS(2), - /** - * - * - *
-     * kube-apiserver
-     * 
- * - * APISERVER = 3; - */ - APISERVER(3), - /** - * - * - *
-     * kube-scheduler
-     * 
- * - * SCHEDULER = 4; - */ - SCHEDULER(4), - /** - * - * - *
-     * kube-controller-manager
-     * 
- * - * CONTROLLER_MANAGER = 5; - */ - CONTROLLER_MANAGER(5), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value. This shouldn't be used.
-     * 
- * - * COMPONENT_UNSPECIFIED = 0; - */ - public static final int COMPONENT_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * system components
-     * 
- * - * SYSTEM_COMPONENTS = 1; - */ - public static final int SYSTEM_COMPONENTS_VALUE = 1; - /** - * - * - *
-     * workloads
-     * 
- * - * WORKLOADS = 2; - */ - public static final int WORKLOADS_VALUE = 2; - /** - * - * - *
-     * kube-apiserver
-     * 
- * - * APISERVER = 3; - */ - public static final int APISERVER_VALUE = 3; - /** - * - * - *
-     * kube-scheduler
-     * 
- * - * SCHEDULER = 4; - */ - public static final int SCHEDULER_VALUE = 4; - /** - * - * - *
-     * kube-controller-manager
-     * 
- * - * CONTROLLER_MANAGER = 5; - */ - public static final int CONTROLLER_MANAGER_VALUE = 5; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Component valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Component forNumber(int value) { - switch (value) { - case 0: - return COMPONENT_UNSPECIFIED; - case 1: - return SYSTEM_COMPONENTS; - case 2: - return WORKLOADS; - case 3: - return APISERVER; - case 4: - return SCHEDULER; - case 5: - return CONTROLLER_MANAGER; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Component findValueByNumber(int number) { - return Component.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.LoggingComponentConfig.getDescriptor().getEnumTypes().get(0); - } - - private static final Component[] VALUES = values(); - - public static Component valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Component(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.LoggingComponentConfig.Component) - } - - public static final int ENABLE_COMPONENTS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List enableComponents_; - - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.container.v1.LoggingComponentConfig.Component> - enableComponents_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.container.v1.LoggingComponentConfig.Component>() { - public com.google.container.v1.LoggingComponentConfig.Component convert( - java.lang.Integer from) { - com.google.container.v1.LoggingComponentConfig.Component result = - com.google.container.v1.LoggingComponentConfig.Component.forNumber(from); - return result == null - ? com.google.container.v1.LoggingComponentConfig.Component.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-   * Select components to collect logs. An empty set would disable all logging.
-   * 
- * - * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @return A list containing the enableComponents. - */ - @java.lang.Override - public java.util.List - getEnableComponentsList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.container.v1.LoggingComponentConfig.Component>( - enableComponents_, enableComponents_converter_); - } - /** - * - * - *
-   * Select components to collect logs. An empty set would disable all logging.
-   * 
- * - * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @return The count of enableComponents. - */ - @java.lang.Override - public int getEnableComponentsCount() { - return enableComponents_.size(); - } - /** - * - * - *
-   * Select components to collect logs. An empty set would disable all logging.
-   * 
- * - * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @param index The index of the element to return. - * @return The enableComponents at the given index. - */ - @java.lang.Override - public com.google.container.v1.LoggingComponentConfig.Component getEnableComponents(int index) { - return enableComponents_converter_.convert(enableComponents_.get(index)); - } - /** - * - * - *
-   * Select components to collect logs. An empty set would disable all logging.
-   * 
- * - * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @return A list containing the enum numeric values on the wire for enableComponents. - */ - @java.lang.Override - public java.util.List getEnableComponentsValueList() { - return enableComponents_; - } - /** - * - * - *
-   * Select components to collect logs. An empty set would disable all logging.
-   * 
- * - * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of enableComponents at the given index. - */ - @java.lang.Override - public int getEnableComponentsValue(int index) { - return enableComponents_.get(index); - } - - private int enableComponentsMemoizedSerializedSize; - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (getEnableComponentsList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(enableComponentsMemoizedSerializedSize); - } - for (int i = 0; i < enableComponents_.size(); i++) { - output.writeEnumNoTag(enableComponents_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < enableComponents_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(enableComponents_.get(i)); - } - size += dataSize; - if (!getEnableComponentsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - enableComponentsMemoizedSerializedSize = dataSize; - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.LoggingComponentConfig)) { - return super.equals(obj); - } - com.google.container.v1.LoggingComponentConfig other = - (com.google.container.v1.LoggingComponentConfig) obj; - - if (!enableComponents_.equals(other.enableComponents_)) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getEnableComponentsCount() > 0) { - hash = (37 * hash) + ENABLE_COMPONENTS_FIELD_NUMBER; - hash = (53 * hash) + enableComponents_.hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.LoggingComponentConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.LoggingComponentConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.LoggingComponentConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.LoggingComponentConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.LoggingComponentConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.LoggingComponentConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.LoggingComponentConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.LoggingComponentConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.LoggingComponentConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.LoggingComponentConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.LoggingComponentConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.LoggingComponentConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.LoggingComponentConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * LoggingComponentConfig is cluster logging component configuration.
-   * 
- * - * Protobuf type {@code google.container.v1.LoggingComponentConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.LoggingComponentConfig) - com.google.container.v1.LoggingComponentConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_LoggingComponentConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_LoggingComponentConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.LoggingComponentConfig.class, - com.google.container.v1.LoggingComponentConfig.Builder.class); - } - - // Construct using com.google.container.v1.LoggingComponentConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enableComponents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_LoggingComponentConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.LoggingComponentConfig getDefaultInstanceForType() { - return com.google.container.v1.LoggingComponentConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.LoggingComponentConfig build() { - com.google.container.v1.LoggingComponentConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.LoggingComponentConfig buildPartial() { - com.google.container.v1.LoggingComponentConfig result = - new com.google.container.v1.LoggingComponentConfig(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.container.v1.LoggingComponentConfig result) { - if (((bitField0_ & 0x00000001) != 0)) { - enableComponents_ = java.util.Collections.unmodifiableList(enableComponents_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.enableComponents_ = enableComponents_; - } - - private void buildPartial0(com.google.container.v1.LoggingComponentConfig result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.LoggingComponentConfig) { - return mergeFrom((com.google.container.v1.LoggingComponentConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.LoggingComponentConfig other) { - if (other == com.google.container.v1.LoggingComponentConfig.getDefaultInstance()) return this; - if (!other.enableComponents_.isEmpty()) { - if (enableComponents_.isEmpty()) { - enableComponents_ = other.enableComponents_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEnableComponentsIsMutable(); - enableComponents_.addAll(other.enableComponents_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - int tmpRaw = input.readEnum(); - ensureEnableComponentsIsMutable(); - enableComponents_.add(tmpRaw); - break; - } // case 8 - case 10: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureEnableComponentsIsMutable(); - enableComponents_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List enableComponents_ = java.util.Collections.emptyList(); - - private void ensureEnableComponentsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - enableComponents_ = new java.util.ArrayList(enableComponents_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Select components to collect logs. An empty set would disable all logging.
-     * 
- * - * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @return A list containing the enableComponents. - */ - public java.util.List - getEnableComponentsList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.container.v1.LoggingComponentConfig.Component>( - enableComponents_, enableComponents_converter_); - } - /** - * - * - *
-     * Select components to collect logs. An empty set would disable all logging.
-     * 
- * - * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @return The count of enableComponents. - */ - public int getEnableComponentsCount() { - return enableComponents_.size(); - } - /** - * - * - *
-     * Select components to collect logs. An empty set would disable all logging.
-     * 
- * - * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @param index The index of the element to return. - * @return The enableComponents at the given index. - */ - public com.google.container.v1.LoggingComponentConfig.Component getEnableComponents(int index) { - return enableComponents_converter_.convert(enableComponents_.get(index)); - } - /** - * - * - *
-     * Select components to collect logs. An empty set would disable all logging.
-     * 
- * - * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @param index The index to set the value at. - * @param value The enableComponents to set. - * @return This builder for chaining. - */ - public Builder setEnableComponents( - int index, com.google.container.v1.LoggingComponentConfig.Component value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnableComponentsIsMutable(); - enableComponents_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Select components to collect logs. An empty set would disable all logging.
-     * 
- * - * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @param value The enableComponents to add. - * @return This builder for chaining. - */ - public Builder addEnableComponents( - com.google.container.v1.LoggingComponentConfig.Component value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnableComponentsIsMutable(); - enableComponents_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Select components to collect logs. An empty set would disable all logging.
-     * 
- * - * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @param values The enableComponents to add. - * @return This builder for chaining. - */ - public Builder addAllEnableComponents( - java.lang.Iterable - values) { - ensureEnableComponentsIsMutable(); - for (com.google.container.v1.LoggingComponentConfig.Component value : values) { - enableComponents_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-     * Select components to collect logs. An empty set would disable all logging.
-     * 
- * - * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @return This builder for chaining. - */ - public Builder clearEnableComponents() { - enableComponents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Select components to collect logs. An empty set would disable all logging.
-     * 
- * - * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @return A list containing the enum numeric values on the wire for enableComponents. - */ - public java.util.List getEnableComponentsValueList() { - return java.util.Collections.unmodifiableList(enableComponents_); - } - /** - * - * - *
-     * Select components to collect logs. An empty set would disable all logging.
-     * 
- * - * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of enableComponents at the given index. - */ - public int getEnableComponentsValue(int index) { - return enableComponents_.get(index); - } - /** - * - * - *
-     * Select components to collect logs. An empty set would disable all logging.
-     * 
- * - * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for enableComponents to set. - * @return This builder for chaining. - */ - public Builder setEnableComponentsValue(int index, int value) { - ensureEnableComponentsIsMutable(); - enableComponents_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Select components to collect logs. An empty set would disable all logging.
-     * 
- * - * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @param value The enum numeric value on the wire for enableComponents to add. - * @return This builder for chaining. - */ - public Builder addEnableComponentsValue(int value) { - ensureEnableComponentsIsMutable(); - enableComponents_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Select components to collect logs. An empty set would disable all logging.
-     * 
- * - * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @param values The enum numeric values on the wire for enableComponents to add. - * @return This builder for chaining. - */ - public Builder addAllEnableComponentsValue(java.lang.Iterable values) { - ensureEnableComponentsIsMutable(); - for (int value : values) { - enableComponents_.add(value); - } - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.LoggingComponentConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.LoggingComponentConfig) - private static final com.google.container.v1.LoggingComponentConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.LoggingComponentConfig(); - } - - public static com.google.container.v1.LoggingComponentConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LoggingComponentConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.LoggingComponentConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingComponentConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingComponentConfigOrBuilder.java deleted file mode 100644 index 615296f10698..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingComponentConfigOrBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface LoggingComponentConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.LoggingComponentConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Select components to collect logs. An empty set would disable all logging.
-   * 
- * - * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @return A list containing the enableComponents. - */ - java.util.List - getEnableComponentsList(); - /** - * - * - *
-   * Select components to collect logs. An empty set would disable all logging.
-   * 
- * - * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @return The count of enableComponents. - */ - int getEnableComponentsCount(); - /** - * - * - *
-   * Select components to collect logs. An empty set would disable all logging.
-   * 
- * - * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @param index The index of the element to return. - * @return The enableComponents at the given index. - */ - com.google.container.v1.LoggingComponentConfig.Component getEnableComponents(int index); - /** - * - * - *
-   * Select components to collect logs. An empty set would disable all logging.
-   * 
- * - * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @return A list containing the enum numeric values on the wire for enableComponents. - */ - java.util.List getEnableComponentsValueList(); - /** - * - * - *
-   * Select components to collect logs. An empty set would disable all logging.
-   * 
- * - * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of enableComponents at the given index. - */ - int getEnableComponentsValue(int index); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingConfig.java deleted file mode 100644 index 435b35269bb9..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingConfig.java +++ /dev/null @@ -1,721 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * LoggingConfig is cluster logging configuration.
- * 
- * - * Protobuf type {@code google.container.v1.LoggingConfig} - */ -public final class LoggingConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.LoggingConfig) - LoggingConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use LoggingConfig.newBuilder() to construct. - private LoggingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private LoggingConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new LoggingConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_LoggingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_LoggingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.LoggingConfig.class, - com.google.container.v1.LoggingConfig.Builder.class); - } - - private int bitField0_; - public static final int COMPONENT_CONFIG_FIELD_NUMBER = 1; - private com.google.container.v1.LoggingComponentConfig componentConfig_; - /** - * - * - *
-   * Logging components configuration
-   * 
- * - * .google.container.v1.LoggingComponentConfig component_config = 1; - * - * @return Whether the componentConfig field is set. - */ - @java.lang.Override - public boolean hasComponentConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Logging components configuration
-   * 
- * - * .google.container.v1.LoggingComponentConfig component_config = 1; - * - * @return The componentConfig. - */ - @java.lang.Override - public com.google.container.v1.LoggingComponentConfig getComponentConfig() { - return componentConfig_ == null - ? com.google.container.v1.LoggingComponentConfig.getDefaultInstance() - : componentConfig_; - } - /** - * - * - *
-   * Logging components configuration
-   * 
- * - * .google.container.v1.LoggingComponentConfig component_config = 1; - */ - @java.lang.Override - public com.google.container.v1.LoggingComponentConfigOrBuilder getComponentConfigOrBuilder() { - return componentConfig_ == null - ? com.google.container.v1.LoggingComponentConfig.getDefaultInstance() - : componentConfig_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getComponentConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getComponentConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.LoggingConfig)) { - return super.equals(obj); - } - com.google.container.v1.LoggingConfig other = (com.google.container.v1.LoggingConfig) obj; - - if (hasComponentConfig() != other.hasComponentConfig()) return false; - if (hasComponentConfig()) { - if (!getComponentConfig().equals(other.getComponentConfig())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasComponentConfig()) { - hash = (37 * hash) + COMPONENT_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getComponentConfig().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.LoggingConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.LoggingConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.LoggingConfig parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.LoggingConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.LoggingConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.LoggingConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.LoggingConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.LoggingConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.LoggingConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.LoggingConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.LoggingConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.LoggingConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.LoggingConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * LoggingConfig is cluster logging configuration.
-   * 
- * - * Protobuf type {@code google.container.v1.LoggingConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.LoggingConfig) - com.google.container.v1.LoggingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_LoggingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_LoggingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.LoggingConfig.class, - com.google.container.v1.LoggingConfig.Builder.class); - } - - // Construct using com.google.container.v1.LoggingConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getComponentConfigFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - componentConfig_ = null; - if (componentConfigBuilder_ != null) { - componentConfigBuilder_.dispose(); - componentConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_LoggingConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.LoggingConfig getDefaultInstanceForType() { - return com.google.container.v1.LoggingConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.LoggingConfig build() { - com.google.container.v1.LoggingConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.LoggingConfig buildPartial() { - com.google.container.v1.LoggingConfig result = - new com.google.container.v1.LoggingConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.LoggingConfig result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.componentConfig_ = - componentConfigBuilder_ == null ? componentConfig_ : componentConfigBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.LoggingConfig) { - return mergeFrom((com.google.container.v1.LoggingConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.LoggingConfig other) { - if (other == com.google.container.v1.LoggingConfig.getDefaultInstance()) return this; - if (other.hasComponentConfig()) { - mergeComponentConfig(other.getComponentConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getComponentConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.container.v1.LoggingComponentConfig componentConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.LoggingComponentConfig, - com.google.container.v1.LoggingComponentConfig.Builder, - com.google.container.v1.LoggingComponentConfigOrBuilder> - componentConfigBuilder_; - /** - * - * - *
-     * Logging components configuration
-     * 
- * - * .google.container.v1.LoggingComponentConfig component_config = 1; - * - * @return Whether the componentConfig field is set. - */ - public boolean hasComponentConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Logging components configuration
-     * 
- * - * .google.container.v1.LoggingComponentConfig component_config = 1; - * - * @return The componentConfig. - */ - public com.google.container.v1.LoggingComponentConfig getComponentConfig() { - if (componentConfigBuilder_ == null) { - return componentConfig_ == null - ? com.google.container.v1.LoggingComponentConfig.getDefaultInstance() - : componentConfig_; - } else { - return componentConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Logging components configuration
-     * 
- * - * .google.container.v1.LoggingComponentConfig component_config = 1; - */ - public Builder setComponentConfig(com.google.container.v1.LoggingComponentConfig value) { - if (componentConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - componentConfig_ = value; - } else { - componentConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Logging components configuration
-     * 
- * - * .google.container.v1.LoggingComponentConfig component_config = 1; - */ - public Builder setComponentConfig( - com.google.container.v1.LoggingComponentConfig.Builder builderForValue) { - if (componentConfigBuilder_ == null) { - componentConfig_ = builderForValue.build(); - } else { - componentConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Logging components configuration
-     * 
- * - * .google.container.v1.LoggingComponentConfig component_config = 1; - */ - public Builder mergeComponentConfig(com.google.container.v1.LoggingComponentConfig value) { - if (componentConfigBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && componentConfig_ != null - && componentConfig_ - != com.google.container.v1.LoggingComponentConfig.getDefaultInstance()) { - getComponentConfigBuilder().mergeFrom(value); - } else { - componentConfig_ = value; - } - } else { - componentConfigBuilder_.mergeFrom(value); - } - if (componentConfig_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Logging components configuration
-     * 
- * - * .google.container.v1.LoggingComponentConfig component_config = 1; - */ - public Builder clearComponentConfig() { - bitField0_ = (bitField0_ & ~0x00000001); - componentConfig_ = null; - if (componentConfigBuilder_ != null) { - componentConfigBuilder_.dispose(); - componentConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Logging components configuration
-     * 
- * - * .google.container.v1.LoggingComponentConfig component_config = 1; - */ - public com.google.container.v1.LoggingComponentConfig.Builder getComponentConfigBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getComponentConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Logging components configuration
-     * 
- * - * .google.container.v1.LoggingComponentConfig component_config = 1; - */ - public com.google.container.v1.LoggingComponentConfigOrBuilder getComponentConfigOrBuilder() { - if (componentConfigBuilder_ != null) { - return componentConfigBuilder_.getMessageOrBuilder(); - } else { - return componentConfig_ == null - ? com.google.container.v1.LoggingComponentConfig.getDefaultInstance() - : componentConfig_; - } - } - /** - * - * - *
-     * Logging components configuration
-     * 
- * - * .google.container.v1.LoggingComponentConfig component_config = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.LoggingComponentConfig, - com.google.container.v1.LoggingComponentConfig.Builder, - com.google.container.v1.LoggingComponentConfigOrBuilder> - getComponentConfigFieldBuilder() { - if (componentConfigBuilder_ == null) { - componentConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.LoggingComponentConfig, - com.google.container.v1.LoggingComponentConfig.Builder, - com.google.container.v1.LoggingComponentConfigOrBuilder>( - getComponentConfig(), getParentForChildren(), isClean()); - componentConfig_ = null; - } - return componentConfigBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.LoggingConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.LoggingConfig) - private static final com.google.container.v1.LoggingConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.LoggingConfig(); - } - - public static com.google.container.v1.LoggingConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LoggingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.LoggingConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingConfigOrBuilder.java deleted file mode 100644 index db3d0b177689..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingConfigOrBuilder.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface LoggingConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.LoggingConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Logging components configuration
-   * 
- * - * .google.container.v1.LoggingComponentConfig component_config = 1; - * - * @return Whether the componentConfig field is set. - */ - boolean hasComponentConfig(); - /** - * - * - *
-   * Logging components configuration
-   * 
- * - * .google.container.v1.LoggingComponentConfig component_config = 1; - * - * @return The componentConfig. - */ - com.google.container.v1.LoggingComponentConfig getComponentConfig(); - /** - * - * - *
-   * Logging components configuration
-   * 
- * - * .google.container.v1.LoggingComponentConfig component_config = 1; - */ - com.google.container.v1.LoggingComponentConfigOrBuilder getComponentConfigOrBuilder(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingVariantConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingVariantConfig.java deleted file mode 100644 index db03ef8b7f21..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingVariantConfig.java +++ /dev/null @@ -1,753 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * LoggingVariantConfig specifies the behaviour of the logging component.
- * 
- * - * Protobuf type {@code google.container.v1.LoggingVariantConfig} - */ -public final class LoggingVariantConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.LoggingVariantConfig) - LoggingVariantConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use LoggingVariantConfig.newBuilder() to construct. - private LoggingVariantConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private LoggingVariantConfig() { - variant_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new LoggingVariantConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_LoggingVariantConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_LoggingVariantConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.LoggingVariantConfig.class, - com.google.container.v1.LoggingVariantConfig.Builder.class); - } - - /** - * - * - *
-   * Logging component variants.
-   * 
- * - * Protobuf enum {@code google.container.v1.LoggingVariantConfig.Variant} - */ - public enum Variant implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value. This shouldn't be used.
-     * 
- * - * VARIANT_UNSPECIFIED = 0; - */ - VARIANT_UNSPECIFIED(0), - /** - * - * - *
-     * default logging variant.
-     * 
- * - * DEFAULT = 1; - */ - DEFAULT(1), - /** - * - * - *
-     * maximum logging throughput variant.
-     * 
- * - * MAX_THROUGHPUT = 2; - */ - MAX_THROUGHPUT(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value. This shouldn't be used.
-     * 
- * - * VARIANT_UNSPECIFIED = 0; - */ - public static final int VARIANT_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * default logging variant.
-     * 
- * - * DEFAULT = 1; - */ - public static final int DEFAULT_VALUE = 1; - /** - * - * - *
-     * maximum logging throughput variant.
-     * 
- * - * MAX_THROUGHPUT = 2; - */ - public static final int MAX_THROUGHPUT_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 Variant 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 Variant forNumber(int value) { - switch (value) { - case 0: - return VARIANT_UNSPECIFIED; - case 1: - return DEFAULT; - case 2: - return MAX_THROUGHPUT; - 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 Variant findValueByNumber(int number) { - return Variant.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.LoggingVariantConfig.getDescriptor().getEnumTypes().get(0); - } - - private static final Variant[] VALUES = values(); - - public static Variant 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 Variant(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.LoggingVariantConfig.Variant) - } - - public static final int VARIANT_FIELD_NUMBER = 1; - private int variant_ = 0; - /** - * - * - *
-   * Logging variant deployed on nodes.
-   * 
- * - * .google.container.v1.LoggingVariantConfig.Variant variant = 1; - * - * @return The enum numeric value on the wire for variant. - */ - @java.lang.Override - public int getVariantValue() { - return variant_; - } - /** - * - * - *
-   * Logging variant deployed on nodes.
-   * 
- * - * .google.container.v1.LoggingVariantConfig.Variant variant = 1; - * - * @return The variant. - */ - @java.lang.Override - public com.google.container.v1.LoggingVariantConfig.Variant getVariant() { - com.google.container.v1.LoggingVariantConfig.Variant result = - com.google.container.v1.LoggingVariantConfig.Variant.forNumber(variant_); - return result == null - ? com.google.container.v1.LoggingVariantConfig.Variant.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 (variant_ - != com.google.container.v1.LoggingVariantConfig.Variant.VARIANT_UNSPECIFIED.getNumber()) { - output.writeEnum(1, variant_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (variant_ - != com.google.container.v1.LoggingVariantConfig.Variant.VARIANT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, variant_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.LoggingVariantConfig)) { - return super.equals(obj); - } - com.google.container.v1.LoggingVariantConfig other = - (com.google.container.v1.LoggingVariantConfig) obj; - - if (variant_ != other.variant_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + VARIANT_FIELD_NUMBER; - hash = (53 * hash) + variant_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.LoggingVariantConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.LoggingVariantConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.LoggingVariantConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.LoggingVariantConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.LoggingVariantConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.LoggingVariantConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.LoggingVariantConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.LoggingVariantConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.LoggingVariantConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.LoggingVariantConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.LoggingVariantConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.LoggingVariantConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.LoggingVariantConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * LoggingVariantConfig specifies the behaviour of the logging component.
-   * 
- * - * Protobuf type {@code google.container.v1.LoggingVariantConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.LoggingVariantConfig) - com.google.container.v1.LoggingVariantConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_LoggingVariantConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_LoggingVariantConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.LoggingVariantConfig.class, - com.google.container.v1.LoggingVariantConfig.Builder.class); - } - - // Construct using com.google.container.v1.LoggingVariantConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - variant_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_LoggingVariantConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.LoggingVariantConfig getDefaultInstanceForType() { - return com.google.container.v1.LoggingVariantConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.LoggingVariantConfig build() { - com.google.container.v1.LoggingVariantConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.LoggingVariantConfig buildPartial() { - com.google.container.v1.LoggingVariantConfig result = - new com.google.container.v1.LoggingVariantConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.LoggingVariantConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.variant_ = variant_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.LoggingVariantConfig) { - return mergeFrom((com.google.container.v1.LoggingVariantConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.LoggingVariantConfig other) { - if (other == com.google.container.v1.LoggingVariantConfig.getDefaultInstance()) return this; - if (other.variant_ != 0) { - setVariantValue(other.getVariantValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - variant_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int variant_ = 0; - /** - * - * - *
-     * Logging variant deployed on nodes.
-     * 
- * - * .google.container.v1.LoggingVariantConfig.Variant variant = 1; - * - * @return The enum numeric value on the wire for variant. - */ - @java.lang.Override - public int getVariantValue() { - return variant_; - } - /** - * - * - *
-     * Logging variant deployed on nodes.
-     * 
- * - * .google.container.v1.LoggingVariantConfig.Variant variant = 1; - * - * @param value The enum numeric value on the wire for variant to set. - * @return This builder for chaining. - */ - public Builder setVariantValue(int value) { - variant_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Logging variant deployed on nodes.
-     * 
- * - * .google.container.v1.LoggingVariantConfig.Variant variant = 1; - * - * @return The variant. - */ - @java.lang.Override - public com.google.container.v1.LoggingVariantConfig.Variant getVariant() { - com.google.container.v1.LoggingVariantConfig.Variant result = - com.google.container.v1.LoggingVariantConfig.Variant.forNumber(variant_); - return result == null - ? com.google.container.v1.LoggingVariantConfig.Variant.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Logging variant deployed on nodes.
-     * 
- * - * .google.container.v1.LoggingVariantConfig.Variant variant = 1; - * - * @param value The variant to set. - * @return This builder for chaining. - */ - public Builder setVariant(com.google.container.v1.LoggingVariantConfig.Variant value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - variant_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Logging variant deployed on nodes.
-     * 
- * - * .google.container.v1.LoggingVariantConfig.Variant variant = 1; - * - * @return This builder for chaining. - */ - public Builder clearVariant() { - bitField0_ = (bitField0_ & ~0x00000001); - variant_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.LoggingVariantConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.LoggingVariantConfig) - private static final com.google.container.v1.LoggingVariantConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.LoggingVariantConfig(); - } - - public static com.google.container.v1.LoggingVariantConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LoggingVariantConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.LoggingVariantConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingVariantConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingVariantConfigOrBuilder.java deleted file mode 100644 index 6835b329f095..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingVariantConfigOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface LoggingVariantConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.LoggingVariantConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Logging variant deployed on nodes.
-   * 
- * - * .google.container.v1.LoggingVariantConfig.Variant variant = 1; - * - * @return The enum numeric value on the wire for variant. - */ - int getVariantValue(); - /** - * - * - *
-   * Logging variant deployed on nodes.
-   * 
- * - * .google.container.v1.LoggingVariantConfig.Variant variant = 1; - * - * @return The variant. - */ - com.google.container.v1.LoggingVariantConfig.Variant getVariant(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceExclusionOptions.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceExclusionOptions.java deleted file mode 100644 index be78bf866a2f..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceExclusionOptions.java +++ /dev/null @@ -1,773 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Represents the Maintenance exclusion option.
- * 
- * - * Protobuf type {@code google.container.v1.MaintenanceExclusionOptions} - */ -public final class MaintenanceExclusionOptions extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.MaintenanceExclusionOptions) - MaintenanceExclusionOptionsOrBuilder { - private static final long serialVersionUID = 0L; - // Use MaintenanceExclusionOptions.newBuilder() to construct. - private MaintenanceExclusionOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private MaintenanceExclusionOptions() { - scope_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new MaintenanceExclusionOptions(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MaintenanceExclusionOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MaintenanceExclusionOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.MaintenanceExclusionOptions.class, - com.google.container.v1.MaintenanceExclusionOptions.Builder.class); - } - - /** - * - * - *
-   * Scope of exclusion.
-   * 
- * - * Protobuf enum {@code google.container.v1.MaintenanceExclusionOptions.Scope} - */ - public enum Scope implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * NO_UPGRADES excludes all upgrades, including patch upgrades and minor
-     * upgrades across control planes and nodes. This is the default exclusion
-     * behavior.
-     * 
- * - * NO_UPGRADES = 0; - */ - NO_UPGRADES(0), - /** - * - * - *
-     * NO_MINOR_UPGRADES excludes all minor upgrades for the cluster, only
-     * patches are allowed.
-     * 
- * - * NO_MINOR_UPGRADES = 1; - */ - NO_MINOR_UPGRADES(1), - /** - * - * - *
-     * NO_MINOR_OR_NODE_UPGRADES excludes all minor upgrades for the cluster,
-     * and also exclude all node pool upgrades. Only control
-     * plane patches are allowed.
-     * 
- * - * NO_MINOR_OR_NODE_UPGRADES = 2; - */ - NO_MINOR_OR_NODE_UPGRADES(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * NO_UPGRADES excludes all upgrades, including patch upgrades and minor
-     * upgrades across control planes and nodes. This is the default exclusion
-     * behavior.
-     * 
- * - * NO_UPGRADES = 0; - */ - public static final int NO_UPGRADES_VALUE = 0; - /** - * - * - *
-     * NO_MINOR_UPGRADES excludes all minor upgrades for the cluster, only
-     * patches are allowed.
-     * 
- * - * NO_MINOR_UPGRADES = 1; - */ - public static final int NO_MINOR_UPGRADES_VALUE = 1; - /** - * - * - *
-     * NO_MINOR_OR_NODE_UPGRADES excludes all minor upgrades for the cluster,
-     * and also exclude all node pool upgrades. Only control
-     * plane patches are allowed.
-     * 
- * - * NO_MINOR_OR_NODE_UPGRADES = 2; - */ - public static final int NO_MINOR_OR_NODE_UPGRADES_VALUE = 2; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Scope valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Scope forNumber(int value) { - switch (value) { - case 0: - return NO_UPGRADES; - case 1: - return NO_MINOR_UPGRADES; - case 2: - return NO_MINOR_OR_NODE_UPGRADES; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Scope findValueByNumber(int number) { - return Scope.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.MaintenanceExclusionOptions.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final Scope[] VALUES = values(); - - public static Scope valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Scope(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.MaintenanceExclusionOptions.Scope) - } - - public static final int SCOPE_FIELD_NUMBER = 1; - private int scope_ = 0; - /** - * - * - *
-   * Scope specifies the upgrade scope which upgrades are blocked by the
-   * exclusion.
-   * 
- * - * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; - * - * @return The enum numeric value on the wire for scope. - */ - @java.lang.Override - public int getScopeValue() { - return scope_; - } - /** - * - * - *
-   * Scope specifies the upgrade scope which upgrades are blocked by the
-   * exclusion.
-   * 
- * - * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; - * - * @return The scope. - */ - @java.lang.Override - public com.google.container.v1.MaintenanceExclusionOptions.Scope getScope() { - com.google.container.v1.MaintenanceExclusionOptions.Scope result = - com.google.container.v1.MaintenanceExclusionOptions.Scope.forNumber(scope_); - return result == null - ? com.google.container.v1.MaintenanceExclusionOptions.Scope.UNRECOGNIZED - : result; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (scope_ - != com.google.container.v1.MaintenanceExclusionOptions.Scope.NO_UPGRADES.getNumber()) { - output.writeEnum(1, scope_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (scope_ - != com.google.container.v1.MaintenanceExclusionOptions.Scope.NO_UPGRADES.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, scope_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.MaintenanceExclusionOptions)) { - return super.equals(obj); - } - com.google.container.v1.MaintenanceExclusionOptions other = - (com.google.container.v1.MaintenanceExclusionOptions) obj; - - if (scope_ != other.scope_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SCOPE_FIELD_NUMBER; - hash = (53 * hash) + scope_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.MaintenanceExclusionOptions parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.MaintenanceExclusionOptions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.MaintenanceExclusionOptions parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.MaintenanceExclusionOptions parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.MaintenanceExclusionOptions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.MaintenanceExclusionOptions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.MaintenanceExclusionOptions parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.MaintenanceExclusionOptions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.MaintenanceExclusionOptions parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.MaintenanceExclusionOptions parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.MaintenanceExclusionOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.MaintenanceExclusionOptions parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.MaintenanceExclusionOptions prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Represents the Maintenance exclusion option.
-   * 
- * - * Protobuf type {@code google.container.v1.MaintenanceExclusionOptions} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.MaintenanceExclusionOptions) - com.google.container.v1.MaintenanceExclusionOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MaintenanceExclusionOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MaintenanceExclusionOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.MaintenanceExclusionOptions.class, - com.google.container.v1.MaintenanceExclusionOptions.Builder.class); - } - - // Construct using com.google.container.v1.MaintenanceExclusionOptions.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - scope_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MaintenanceExclusionOptions_descriptor; - } - - @java.lang.Override - public com.google.container.v1.MaintenanceExclusionOptions getDefaultInstanceForType() { - return com.google.container.v1.MaintenanceExclusionOptions.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.MaintenanceExclusionOptions build() { - com.google.container.v1.MaintenanceExclusionOptions result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.MaintenanceExclusionOptions buildPartial() { - com.google.container.v1.MaintenanceExclusionOptions result = - new com.google.container.v1.MaintenanceExclusionOptions(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.MaintenanceExclusionOptions result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.scope_ = scope_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.MaintenanceExclusionOptions) { - return mergeFrom((com.google.container.v1.MaintenanceExclusionOptions) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.MaintenanceExclusionOptions other) { - if (other == com.google.container.v1.MaintenanceExclusionOptions.getDefaultInstance()) - return this; - if (other.scope_ != 0) { - setScopeValue(other.getScopeValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - scope_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int scope_ = 0; - /** - * - * - *
-     * Scope specifies the upgrade scope which upgrades are blocked by the
-     * exclusion.
-     * 
- * - * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; - * - * @return The enum numeric value on the wire for scope. - */ - @java.lang.Override - public int getScopeValue() { - return scope_; - } - /** - * - * - *
-     * Scope specifies the upgrade scope which upgrades are blocked by the
-     * exclusion.
-     * 
- * - * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; - * - * @param value The enum numeric value on the wire for scope to set. - * @return This builder for chaining. - */ - public Builder setScopeValue(int value) { - scope_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Scope specifies the upgrade scope which upgrades are blocked by the
-     * exclusion.
-     * 
- * - * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; - * - * @return The scope. - */ - @java.lang.Override - public com.google.container.v1.MaintenanceExclusionOptions.Scope getScope() { - com.google.container.v1.MaintenanceExclusionOptions.Scope result = - com.google.container.v1.MaintenanceExclusionOptions.Scope.forNumber(scope_); - return result == null - ? com.google.container.v1.MaintenanceExclusionOptions.Scope.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Scope specifies the upgrade scope which upgrades are blocked by the
-     * exclusion.
-     * 
- * - * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; - * - * @param value The scope to set. - * @return This builder for chaining. - */ - public Builder setScope(com.google.container.v1.MaintenanceExclusionOptions.Scope value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - scope_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Scope specifies the upgrade scope which upgrades are blocked by the
-     * exclusion.
-     * 
- * - * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; - * - * @return This builder for chaining. - */ - public Builder clearScope() { - bitField0_ = (bitField0_ & ~0x00000001); - scope_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.MaintenanceExclusionOptions) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.MaintenanceExclusionOptions) - private static final com.google.container.v1.MaintenanceExclusionOptions DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.MaintenanceExclusionOptions(); - } - - public static com.google.container.v1.MaintenanceExclusionOptions getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MaintenanceExclusionOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.MaintenanceExclusionOptions getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceExclusionOptionsOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceExclusionOptionsOrBuilder.java deleted file mode 100644 index b94d14a864c5..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceExclusionOptionsOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface MaintenanceExclusionOptionsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.MaintenanceExclusionOptions) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Scope specifies the upgrade scope which upgrades are blocked by the
-   * exclusion.
-   * 
- * - * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; - * - * @return The enum numeric value on the wire for scope. - */ - int getScopeValue(); - /** - * - * - *
-   * Scope specifies the upgrade scope which upgrades are blocked by the
-   * exclusion.
-   * 
- * - * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; - * - * @return The scope. - */ - com.google.container.v1.MaintenanceExclusionOptions.Scope getScope(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenancePolicy.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenancePolicy.java deleted file mode 100644 index fb58cfbd528f..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenancePolicy.java +++ /dev/null @@ -1,931 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * MaintenancePolicy defines the maintenance policy to be used for the cluster.
- * 
- * - * Protobuf type {@code google.container.v1.MaintenancePolicy} - */ -public final class MaintenancePolicy extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MaintenancePolicy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MaintenancePolicy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.MaintenancePolicy.class, - com.google.container.v1.MaintenancePolicy.Builder.class); - } - - private int bitField0_; - public static final int WINDOW_FIELD_NUMBER = 1; - private com.google.container.v1.MaintenanceWindow window_; - /** - * - * - *
-   * Specifies the maintenance window in which maintenance may be performed.
-   * 
- * - * .google.container.v1.MaintenanceWindow window = 1; - * - * @return Whether the window field is set. - */ - @java.lang.Override - public boolean hasWindow() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Specifies the maintenance window in which maintenance may be performed.
-   * 
- * - * .google.container.v1.MaintenanceWindow window = 1; - * - * @return The window. - */ - @java.lang.Override - public com.google.container.v1.MaintenanceWindow getWindow() { - return window_ == null - ? com.google.container.v1.MaintenanceWindow.getDefaultInstance() - : window_; - } - /** - * - * - *
-   * Specifies the maintenance window in which maintenance may be performed.
-   * 
- * - * .google.container.v1.MaintenanceWindow window = 1; - */ - @java.lang.Override - public com.google.container.v1.MaintenanceWindowOrBuilder getWindowOrBuilder() { - return window_ == null - ? com.google.container.v1.MaintenanceWindow.getDefaultInstance() - : window_; - } - - public static final int RESOURCE_VERSION_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - 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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getWindow()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, resourceVersion_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWindow()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resourceVersion_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.MaintenancePolicy)) { - return super.equals(obj); - } - com.google.container.v1.MaintenancePolicy other = - (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.MaintenancePolicy parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.MaintenancePolicy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.MaintenancePolicy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.MaintenancePolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.MaintenancePolicy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.MaintenancePolicy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.MaintenancePolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.MaintenancePolicy} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.MaintenancePolicy) - com.google.container.v1.MaintenancePolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MaintenancePolicy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MaintenancePolicy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.MaintenancePolicy.class, - com.google.container.v1.MaintenancePolicy.Builder.class); - } - - // Construct using com.google.container.v1.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) { - getWindowFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - window_ = null; - if (windowBuilder_ != null) { - windowBuilder_.dispose(); - windowBuilder_ = null; - } - resourceVersion_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MaintenancePolicy_descriptor; - } - - @java.lang.Override - public com.google.container.v1.MaintenancePolicy getDefaultInstanceForType() { - return com.google.container.v1.MaintenancePolicy.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.MaintenancePolicy build() { - com.google.container.v1.MaintenancePolicy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.MaintenancePolicy buildPartial() { - com.google.container.v1.MaintenancePolicy result = - new com.google.container.v1.MaintenancePolicy(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.MaintenancePolicy result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.window_ = windowBuilder_ == null ? window_ : windowBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.resourceVersion_ = resourceVersion_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.MaintenancePolicy) { - return mergeFrom((com.google.container.v1.MaintenancePolicy) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.MaintenancePolicy other) { - if (other == com.google.container.v1.MaintenancePolicy.getDefaultInstance()) return this; - if (other.hasWindow()) { - mergeWindow(other.getWindow()); - } - if (!other.getResourceVersion().isEmpty()) { - resourceVersion_ = other.resourceVersion_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getWindowFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: - { - resourceVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.container.v1.MaintenanceWindow window_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MaintenanceWindow, - com.google.container.v1.MaintenanceWindow.Builder, - com.google.container.v1.MaintenanceWindowOrBuilder> - windowBuilder_; - /** - * - * - *
-     * Specifies the maintenance window in which maintenance may be performed.
-     * 
- * - * .google.container.v1.MaintenanceWindow window = 1; - * - * @return Whether the window field is set. - */ - public boolean hasWindow() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Specifies the maintenance window in which maintenance may be performed.
-     * 
- * - * .google.container.v1.MaintenanceWindow window = 1; - * - * @return The window. - */ - public com.google.container.v1.MaintenanceWindow getWindow() { - if (windowBuilder_ == null) { - return window_ == null - ? com.google.container.v1.MaintenanceWindow.getDefaultInstance() - : window_; - } else { - return windowBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Specifies the maintenance window in which maintenance may be performed.
-     * 
- * - * .google.container.v1.MaintenanceWindow window = 1; - */ - public Builder setWindow(com.google.container.v1.MaintenanceWindow value) { - if (windowBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - window_ = value; - } else { - windowBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Specifies the maintenance window in which maintenance may be performed.
-     * 
- * - * .google.container.v1.MaintenanceWindow window = 1; - */ - public Builder setWindow(com.google.container.v1.MaintenanceWindow.Builder builderForValue) { - if (windowBuilder_ == null) { - window_ = builderForValue.build(); - } else { - windowBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Specifies the maintenance window in which maintenance may be performed.
-     * 
- * - * .google.container.v1.MaintenanceWindow window = 1; - */ - public Builder mergeWindow(com.google.container.v1.MaintenanceWindow value) { - if (windowBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && window_ != null - && window_ != com.google.container.v1.MaintenanceWindow.getDefaultInstance()) { - getWindowBuilder().mergeFrom(value); - } else { - window_ = value; - } - } else { - windowBuilder_.mergeFrom(value); - } - if (window_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Specifies the maintenance window in which maintenance may be performed.
-     * 
- * - * .google.container.v1.MaintenanceWindow window = 1; - */ - public Builder clearWindow() { - bitField0_ = (bitField0_ & ~0x00000001); - window_ = null; - if (windowBuilder_ != null) { - windowBuilder_.dispose(); - windowBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Specifies the maintenance window in which maintenance may be performed.
-     * 
- * - * .google.container.v1.MaintenanceWindow window = 1; - */ - public com.google.container.v1.MaintenanceWindow.Builder getWindowBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getWindowFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Specifies the maintenance window in which maintenance may be performed.
-     * 
- * - * .google.container.v1.MaintenanceWindow window = 1; - */ - public com.google.container.v1.MaintenanceWindowOrBuilder getWindowOrBuilder() { - if (windowBuilder_ != null) { - return windowBuilder_.getMessageOrBuilder(); - } else { - return window_ == null - ? com.google.container.v1.MaintenanceWindow.getDefaultInstance() - : window_; - } - } - /** - * - * - *
-     * Specifies the maintenance window in which maintenance may be performed.
-     * 
- * - * .google.container.v1.MaintenanceWindow window = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MaintenanceWindow, - com.google.container.v1.MaintenanceWindow.Builder, - com.google.container.v1.MaintenanceWindowOrBuilder> - getWindowFieldBuilder() { - if (windowBuilder_ == null) { - windowBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MaintenanceWindow, - com.google.container.v1.MaintenanceWindow.Builder, - com.google.container.v1.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; - bitField0_ |= 0x00000002; - 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(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.MaintenancePolicy) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.MaintenancePolicy) - private static final com.google.container.v1.MaintenancePolicy DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.MaintenancePolicy(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.MaintenancePolicy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenancePolicyOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenancePolicyOrBuilder.java deleted file mode 100644 index c8c1bb2ba31d..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenancePolicyOrBuilder.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface MaintenancePolicyOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.MaintenancePolicy) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Specifies the maintenance window in which maintenance may be performed.
-   * 
- * - * .google.container.v1.MaintenanceWindow window = 1; - * - * @return Whether the window field is set. - */ - boolean hasWindow(); - /** - * - * - *
-   * Specifies the maintenance window in which maintenance may be performed.
-   * 
- * - * .google.container.v1.MaintenanceWindow window = 1; - * - * @return The window. - */ - com.google.container.v1.MaintenanceWindow getWindow(); - /** - * - * - *
-   * Specifies the maintenance window in which maintenance may be performed.
-   * 
- * - * .google.container.v1.MaintenanceWindow window = 1; - */ - com.google.container.v1.MaintenanceWindowOrBuilder getWindowOrBuilder(); - - /** - * - * - *
-   * A hash identifying the version of this policy, so that updates to fields of
-   * the policy won't accidentally undo intermediate changes (and so that users
-   * of the API unaware of some fields won't accidentally remove other fields).
-   * Make a `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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceWindow.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceWindow.java deleted file mode 100644 index 57b94e7d4feb..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceWindow.java +++ /dev/null @@ -1,1579 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * MaintenanceWindow defines the maintenance window to be used for the cluster.
- * 
- * - * Protobuf type {@code google.container.v1.MaintenanceWindow} - */ -public final class MaintenanceWindow extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MaintenanceWindow_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - 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.v1.ClusterServiceProto - .internal_static_google_container_v1_MaintenanceWindow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.MaintenanceWindow.class, - com.google.container.v1.MaintenanceWindow.Builder.class); - } - - private int policyCase_ = 0; - - @SuppressWarnings("serial") - 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.v1.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.v1.DailyMaintenanceWindow daily_maintenance_window = 2; - * - * @return The dailyMaintenanceWindow. - */ - @java.lang.Override - public com.google.container.v1.DailyMaintenanceWindow getDailyMaintenanceWindow() { - if (policyCase_ == 2) { - return (com.google.container.v1.DailyMaintenanceWindow) policy_; - } - return com.google.container.v1.DailyMaintenanceWindow.getDefaultInstance(); - } - /** - * - * - *
-   * DailyMaintenanceWindow specifies a daily maintenance operation window.
-   * 
- * - * .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; - */ - @java.lang.Override - public com.google.container.v1.DailyMaintenanceWindowOrBuilder - getDailyMaintenanceWindowOrBuilder() { - if (policyCase_ == 2) { - return (com.google.container.v1.DailyMaintenanceWindow) policy_; - } - return com.google.container.v1.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.v1.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.v1.RecurringTimeWindow recurring_window = 3; - * - * @return The recurringWindow. - */ - @java.lang.Override - public com.google.container.v1.RecurringTimeWindow getRecurringWindow() { - if (policyCase_ == 3) { - return (com.google.container.v1.RecurringTimeWindow) policy_; - } - return com.google.container.v1.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.v1.RecurringTimeWindow recurring_window = 3; - */ - @java.lang.Override - public com.google.container.v1.RecurringTimeWindowOrBuilder getRecurringWindowOrBuilder() { - if (policyCase_ == 3) { - return (com.google.container.v1.RecurringTimeWindow) policy_; - } - return com.google.container.v1.RecurringTimeWindow.getDefaultInstance(); - } - - public static final int MAINTENANCE_EXCLUSIONS_FIELD_NUMBER = 4; - - private static final class MaintenanceExclusionsDefaultEntryHolder { - static final com.google.protobuf.MapEntry - defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MaintenanceWindow_MaintenanceExclusionsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.container.v1.TimeWindow.getDefaultInstance()); - } - - @SuppressWarnings("serial") - 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.v1.TimeWindow> maintenance_exclusions = 4; - */ - @java.lang.Override - public boolean containsMaintenanceExclusions(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - 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.v1.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.v1.TimeWindow> maintenance_exclusions = 4; - */ - @java.lang.Override - public /* nullable */ com.google.container.v1.TimeWindow getMaintenanceExclusionsOrDefault( - java.lang.String key, - /* nullable */ - com.google.container.v1.TimeWindow defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - 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.v1.TimeWindow> maintenance_exclusions = 4; - */ - @java.lang.Override - public com.google.container.v1.TimeWindow getMaintenanceExclusionsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - 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.v1.DailyMaintenanceWindow) policy_); - } - if (policyCase_ == 3) { - output.writeMessage(3, (com.google.container.v1.RecurringTimeWindow) policy_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, - internalGetMaintenanceExclusions(), - MaintenanceExclusionsDefaultEntryHolder.defaultEntry, - 4); - getUnknownFields().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.v1.DailyMaintenanceWindow) policy_); - } - if (policyCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.container.v1.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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.MaintenanceWindow)) { - return super.equals(obj); - } - com.google.container.v1.MaintenanceWindow other = - (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.MaintenanceWindow parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.MaintenanceWindow parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.MaintenanceWindow parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.MaintenanceWindow parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.MaintenanceWindow parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.MaintenanceWindow parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.MaintenanceWindow parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.MaintenanceWindow} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.MaintenanceWindow) - com.google.container.v1.MaintenanceWindowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MaintenanceWindow_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 4: - return internalGetMaintenanceExclusions(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - 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.v1.ClusterServiceProto - .internal_static_google_container_v1_MaintenanceWindow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.MaintenanceWindow.class, - com.google.container.v1.MaintenanceWindow.Builder.class); - } - - // Construct using com.google.container.v1.MaintenanceWindow.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (dailyMaintenanceWindowBuilder_ != null) { - dailyMaintenanceWindowBuilder_.clear(); - } - if (recurringWindowBuilder_ != null) { - recurringWindowBuilder_.clear(); - } - internalGetMutableMaintenanceExclusions().clear(); - policyCase_ = 0; - policy_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MaintenanceWindow_descriptor; - } - - @java.lang.Override - public com.google.container.v1.MaintenanceWindow getDefaultInstanceForType() { - return com.google.container.v1.MaintenanceWindow.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.MaintenanceWindow build() { - com.google.container.v1.MaintenanceWindow result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.MaintenanceWindow buildPartial() { - com.google.container.v1.MaintenanceWindow result = - new com.google.container.v1.MaintenanceWindow(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.MaintenanceWindow result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.maintenanceExclusions_ = - internalGetMaintenanceExclusions() - .build(MaintenanceExclusionsDefaultEntryHolder.defaultEntry); - } - } - - private void buildPartialOneofs(com.google.container.v1.MaintenanceWindow result) { - result.policyCase_ = policyCase_; - result.policy_ = this.policy_; - if (policyCase_ == 2 && dailyMaintenanceWindowBuilder_ != null) { - result.policy_ = dailyMaintenanceWindowBuilder_.build(); - } - if (policyCase_ == 3 && recurringWindowBuilder_ != null) { - result.policy_ = recurringWindowBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.MaintenanceWindow) { - return mergeFrom((com.google.container.v1.MaintenanceWindow) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.MaintenanceWindow other) { - if (other == com.google.container.v1.MaintenanceWindow.getDefaultInstance()) return this; - internalGetMutableMaintenanceExclusions().mergeFrom(other.internalGetMaintenanceExclusions()); - bitField0_ |= 0x00000004; - 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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: - { - input.readMessage( - getDailyMaintenanceWindowFieldBuilder().getBuilder(), extensionRegistry); - policyCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getRecurringWindowFieldBuilder().getBuilder(), extensionRegistry); - policyCase_ = 3; - break; - } // case 26 - case 34: - { - com.google.protobuf.MapEntry - maintenanceExclusions__ = - input.readMessage( - MaintenanceExclusionsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableMaintenanceExclusions() - .ensureBuilderMap() - .put(maintenanceExclusions__.getKey(), maintenanceExclusions__.getValue()); - bitField0_ |= 0x00000004; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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.v1.DailyMaintenanceWindow, - com.google.container.v1.DailyMaintenanceWindow.Builder, - com.google.container.v1.DailyMaintenanceWindowOrBuilder> - dailyMaintenanceWindowBuilder_; - /** - * - * - *
-     * DailyMaintenanceWindow specifies a daily maintenance operation window.
-     * 
- * - * .google.container.v1.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.v1.DailyMaintenanceWindow daily_maintenance_window = 2; - * - * @return The dailyMaintenanceWindow. - */ - @java.lang.Override - public com.google.container.v1.DailyMaintenanceWindow getDailyMaintenanceWindow() { - if (dailyMaintenanceWindowBuilder_ == null) { - if (policyCase_ == 2) { - return (com.google.container.v1.DailyMaintenanceWindow) policy_; - } - return com.google.container.v1.DailyMaintenanceWindow.getDefaultInstance(); - } else { - if (policyCase_ == 2) { - return dailyMaintenanceWindowBuilder_.getMessage(); - } - return com.google.container.v1.DailyMaintenanceWindow.getDefaultInstance(); - } - } - /** - * - * - *
-     * DailyMaintenanceWindow specifies a daily maintenance operation window.
-     * 
- * - * .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; - */ - public Builder setDailyMaintenanceWindow(com.google.container.v1.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.v1.DailyMaintenanceWindow daily_maintenance_window = 2; - */ - public Builder setDailyMaintenanceWindow( - com.google.container.v1.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.v1.DailyMaintenanceWindow daily_maintenance_window = 2; - */ - public Builder mergeDailyMaintenanceWindow( - com.google.container.v1.DailyMaintenanceWindow value) { - if (dailyMaintenanceWindowBuilder_ == null) { - if (policyCase_ == 2 - && policy_ != com.google.container.v1.DailyMaintenanceWindow.getDefaultInstance()) { - policy_ = - com.google.container.v1.DailyMaintenanceWindow.newBuilder( - (com.google.container.v1.DailyMaintenanceWindow) policy_) - .mergeFrom(value) - .buildPartial(); - } else { - policy_ = value; - } - onChanged(); - } else { - if (policyCase_ == 2) { - dailyMaintenanceWindowBuilder_.mergeFrom(value); - } else { - dailyMaintenanceWindowBuilder_.setMessage(value); - } - } - policyCase_ = 2; - return this; - } - /** - * - * - *
-     * DailyMaintenanceWindow specifies a daily maintenance operation window.
-     * 
- * - * .google.container.v1.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.v1.DailyMaintenanceWindow daily_maintenance_window = 2; - */ - public com.google.container.v1.DailyMaintenanceWindow.Builder - getDailyMaintenanceWindowBuilder() { - return getDailyMaintenanceWindowFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * DailyMaintenanceWindow specifies a daily maintenance operation window.
-     * 
- * - * .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; - */ - @java.lang.Override - public com.google.container.v1.DailyMaintenanceWindowOrBuilder - getDailyMaintenanceWindowOrBuilder() { - if ((policyCase_ == 2) && (dailyMaintenanceWindowBuilder_ != null)) { - return dailyMaintenanceWindowBuilder_.getMessageOrBuilder(); - } else { - if (policyCase_ == 2) { - return (com.google.container.v1.DailyMaintenanceWindow) policy_; - } - return com.google.container.v1.DailyMaintenanceWindow.getDefaultInstance(); - } - } - /** - * - * - *
-     * DailyMaintenanceWindow specifies a daily maintenance operation window.
-     * 
- * - * .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DailyMaintenanceWindow, - com.google.container.v1.DailyMaintenanceWindow.Builder, - com.google.container.v1.DailyMaintenanceWindowOrBuilder> - getDailyMaintenanceWindowFieldBuilder() { - if (dailyMaintenanceWindowBuilder_ == null) { - if (!(policyCase_ == 2)) { - policy_ = com.google.container.v1.DailyMaintenanceWindow.getDefaultInstance(); - } - dailyMaintenanceWindowBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DailyMaintenanceWindow, - com.google.container.v1.DailyMaintenanceWindow.Builder, - com.google.container.v1.DailyMaintenanceWindowOrBuilder>( - (com.google.container.v1.DailyMaintenanceWindow) policy_, - getParentForChildren(), - isClean()); - policy_ = null; - } - policyCase_ = 2; - onChanged(); - return dailyMaintenanceWindowBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.RecurringTimeWindow, - com.google.container.v1.RecurringTimeWindow.Builder, - com.google.container.v1.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.v1.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.v1.RecurringTimeWindow recurring_window = 3; - * - * @return The recurringWindow. - */ - @java.lang.Override - public com.google.container.v1.RecurringTimeWindow getRecurringWindow() { - if (recurringWindowBuilder_ == null) { - if (policyCase_ == 3) { - return (com.google.container.v1.RecurringTimeWindow) policy_; - } - return com.google.container.v1.RecurringTimeWindow.getDefaultInstance(); - } else { - if (policyCase_ == 3) { - return recurringWindowBuilder_.getMessage(); - } - return com.google.container.v1.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.v1.RecurringTimeWindow recurring_window = 3; - */ - public Builder setRecurringWindow(com.google.container.v1.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.v1.RecurringTimeWindow recurring_window = 3; - */ - public Builder setRecurringWindow( - com.google.container.v1.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.v1.RecurringTimeWindow recurring_window = 3; - */ - public Builder mergeRecurringWindow(com.google.container.v1.RecurringTimeWindow value) { - if (recurringWindowBuilder_ == null) { - if (policyCase_ == 3 - && policy_ != com.google.container.v1.RecurringTimeWindow.getDefaultInstance()) { - policy_ = - com.google.container.v1.RecurringTimeWindow.newBuilder( - (com.google.container.v1.RecurringTimeWindow) policy_) - .mergeFrom(value) - .buildPartial(); - } else { - policy_ = value; - } - onChanged(); - } else { - if (policyCase_ == 3) { - recurringWindowBuilder_.mergeFrom(value); - } 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.v1.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.v1.RecurringTimeWindow recurring_window = 3; - */ - public com.google.container.v1.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.v1.RecurringTimeWindow recurring_window = 3; - */ - @java.lang.Override - public com.google.container.v1.RecurringTimeWindowOrBuilder getRecurringWindowOrBuilder() { - if ((policyCase_ == 3) && (recurringWindowBuilder_ != null)) { - return recurringWindowBuilder_.getMessageOrBuilder(); - } else { - if (policyCase_ == 3) { - return (com.google.container.v1.RecurringTimeWindow) policy_; - } - return com.google.container.v1.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.v1.RecurringTimeWindow recurring_window = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.RecurringTimeWindow, - com.google.container.v1.RecurringTimeWindow.Builder, - com.google.container.v1.RecurringTimeWindowOrBuilder> - getRecurringWindowFieldBuilder() { - if (recurringWindowBuilder_ == null) { - if (!(policyCase_ == 3)) { - policy_ = com.google.container.v1.RecurringTimeWindow.getDefaultInstance(); - } - recurringWindowBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.RecurringTimeWindow, - com.google.container.v1.RecurringTimeWindow.Builder, - com.google.container.v1.RecurringTimeWindowOrBuilder>( - (com.google.container.v1.RecurringTimeWindow) policy_, - getParentForChildren(), - isClean()); - policy_ = null; - } - policyCase_ = 3; - onChanged(); - return recurringWindowBuilder_; - } - - private static final class MaintenanceExclusionsConverter - implements com.google.protobuf.MapFieldBuilder.Converter< - java.lang.String, - com.google.container.v1.TimeWindowOrBuilder, - com.google.container.v1.TimeWindow> { - @java.lang.Override - public com.google.container.v1.TimeWindow build( - com.google.container.v1.TimeWindowOrBuilder val) { - if (val instanceof com.google.container.v1.TimeWindow) { - return (com.google.container.v1.TimeWindow) val; - } - return ((com.google.container.v1.TimeWindow.Builder) val).build(); - } - - @java.lang.Override - public com.google.protobuf.MapEntry - defaultEntry() { - return MaintenanceExclusionsDefaultEntryHolder.defaultEntry; - } - }; - - private static final MaintenanceExclusionsConverter maintenanceExclusionsConverter = - new MaintenanceExclusionsConverter(); - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.container.v1.TimeWindowOrBuilder, - com.google.container.v1.TimeWindow, - com.google.container.v1.TimeWindow.Builder> - maintenanceExclusions_; - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.container.v1.TimeWindowOrBuilder, - com.google.container.v1.TimeWindow, - com.google.container.v1.TimeWindow.Builder> - internalGetMaintenanceExclusions() { - if (maintenanceExclusions_ == null) { - return new com.google.protobuf.MapFieldBuilder<>(maintenanceExclusionsConverter); - } - return maintenanceExclusions_; - } - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.container.v1.TimeWindowOrBuilder, - com.google.container.v1.TimeWindow, - com.google.container.v1.TimeWindow.Builder> - internalGetMutableMaintenanceExclusions() { - if (maintenanceExclusions_ == null) { - maintenanceExclusions_ = - new com.google.protobuf.MapFieldBuilder<>(maintenanceExclusionsConverter); - } - bitField0_ |= 0x00000004; - onChanged(); - return maintenanceExclusions_; - } - - public int getMaintenanceExclusionsCount() { - return internalGetMaintenanceExclusions().ensureBuilderMap().size(); - } - /** - * - * - *
-     * Exceptions to maintenance window. Non-emergency maintenance should not
-     * occur in these windows.
-     * 
- * - * map<string, .google.container.v1.TimeWindow> maintenance_exclusions = 4; - */ - @java.lang.Override - public boolean containsMaintenanceExclusions(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetMaintenanceExclusions().ensureBuilderMap().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.v1.TimeWindow> maintenance_exclusions = 4; - */ - @java.lang.Override - public java.util.Map - getMaintenanceExclusionsMap() { - return internalGetMaintenanceExclusions().getImmutableMap(); - } - /** - * - * - *
-     * Exceptions to maintenance window. Non-emergency maintenance should not
-     * occur in these windows.
-     * 
- * - * map<string, .google.container.v1.TimeWindow> maintenance_exclusions = 4; - */ - @java.lang.Override - public /* nullable */ com.google.container.v1.TimeWindow getMaintenanceExclusionsOrDefault( - java.lang.String key, - /* nullable */ - com.google.container.v1.TimeWindow defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetMutableMaintenanceExclusions().ensureBuilderMap(); - return map.containsKey(key) - ? maintenanceExclusionsConverter.build(map.get(key)) - : defaultValue; - } - /** - * - * - *
-     * Exceptions to maintenance window. Non-emergency maintenance should not
-     * occur in these windows.
-     * 
- * - * map<string, .google.container.v1.TimeWindow> maintenance_exclusions = 4; - */ - @java.lang.Override - public com.google.container.v1.TimeWindow getMaintenanceExclusionsOrThrow( - java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetMutableMaintenanceExclusions().ensureBuilderMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return maintenanceExclusionsConverter.build(map.get(key)); - } - - public Builder clearMaintenanceExclusions() { - bitField0_ = (bitField0_ & ~0x00000004); - internalGetMutableMaintenanceExclusions().clear(); - return this; - } - /** - * - * - *
-     * Exceptions to maintenance window. Non-emergency maintenance should not
-     * occur in these windows.
-     * 
- * - * map<string, .google.container.v1.TimeWindow> maintenance_exclusions = 4; - */ - public Builder removeMaintenanceExclusions(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableMaintenanceExclusions().ensureBuilderMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map - getMutableMaintenanceExclusions() { - bitField0_ |= 0x00000004; - return internalGetMutableMaintenanceExclusions().ensureMessageMap(); - } - /** - * - * - *
-     * Exceptions to maintenance window. Non-emergency maintenance should not
-     * occur in these windows.
-     * 
- * - * map<string, .google.container.v1.TimeWindow> maintenance_exclusions = 4; - */ - public Builder putMaintenanceExclusions( - java.lang.String key, com.google.container.v1.TimeWindow value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableMaintenanceExclusions().ensureBuilderMap().put(key, value); - bitField0_ |= 0x00000004; - return this; - } - /** - * - * - *
-     * Exceptions to maintenance window. Non-emergency maintenance should not
-     * occur in these windows.
-     * 
- * - * map<string, .google.container.v1.TimeWindow> maintenance_exclusions = 4; - */ - public Builder putAllMaintenanceExclusions( - java.util.Map values) { - for (java.util.Map.Entry e : - values.entrySet()) { - if (e.getKey() == null || e.getValue() == null) { - throw new NullPointerException(); - } - } - internalGetMutableMaintenanceExclusions().ensureBuilderMap().putAll(values); - bitField0_ |= 0x00000004; - return this; - } - /** - * - * - *
-     * Exceptions to maintenance window. Non-emergency maintenance should not
-     * occur in these windows.
-     * 
- * - * map<string, .google.container.v1.TimeWindow> maintenance_exclusions = 4; - */ - public com.google.container.v1.TimeWindow.Builder putMaintenanceExclusionsBuilderIfAbsent( - java.lang.String key) { - java.util.Map builderMap = - internalGetMutableMaintenanceExclusions().ensureBuilderMap(); - com.google.container.v1.TimeWindowOrBuilder entry = builderMap.get(key); - if (entry == null) { - entry = com.google.container.v1.TimeWindow.newBuilder(); - builderMap.put(key, entry); - } - if (entry instanceof com.google.container.v1.TimeWindow) { - entry = ((com.google.container.v1.TimeWindow) entry).toBuilder(); - builderMap.put(key, entry); - } - return (com.google.container.v1.TimeWindow.Builder) entry; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.MaintenanceWindow) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.MaintenanceWindow) - private static final com.google.container.v1.MaintenanceWindow DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.MaintenanceWindow(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.MaintenanceWindow getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceWindowOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceWindowOrBuilder.java deleted file mode 100644 index 0f3e532c7459..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceWindowOrBuilder.java +++ /dev/null @@ -1,167 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface MaintenanceWindowOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.MaintenanceWindow) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * DailyMaintenanceWindow specifies a daily maintenance operation window.
-   * 
- * - * .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; - * - * @return Whether the dailyMaintenanceWindow field is set. - */ - boolean hasDailyMaintenanceWindow(); - /** - * - * - *
-   * DailyMaintenanceWindow specifies a daily maintenance operation window.
-   * 
- * - * .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; - * - * @return The dailyMaintenanceWindow. - */ - com.google.container.v1.DailyMaintenanceWindow getDailyMaintenanceWindow(); - /** - * - * - *
-   * DailyMaintenanceWindow specifies a daily maintenance operation window.
-   * 
- * - * .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; - */ - com.google.container.v1.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.v1.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.v1.RecurringTimeWindow recurring_window = 3; - * - * @return The recurringWindow. - */ - com.google.container.v1.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.v1.RecurringTimeWindow recurring_window = 3; - */ - com.google.container.v1.RecurringTimeWindowOrBuilder getRecurringWindowOrBuilder(); - - /** - * - * - *
-   * Exceptions to maintenance window. Non-emergency maintenance should not
-   * occur in these windows.
-   * 
- * - * map<string, .google.container.v1.TimeWindow> maintenance_exclusions = 4; - */ - int getMaintenanceExclusionsCount(); - /** - * - * - *
-   * Exceptions to maintenance window. Non-emergency maintenance should not
-   * occur in these windows.
-   * 
- * - * map<string, .google.container.v1.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.v1.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.v1.TimeWindow> maintenance_exclusions = 4; - */ - /* nullable */ - com.google.container.v1.TimeWindow getMaintenanceExclusionsOrDefault( - java.lang.String key, - /* nullable */ - com.google.container.v1.TimeWindow defaultValue); - /** - * - * - *
-   * Exceptions to maintenance window. Non-emergency maintenance should not
-   * occur in these windows.
-   * 
- * - * map<string, .google.container.v1.TimeWindow> maintenance_exclusions = 4; - */ - com.google.container.v1.TimeWindow getMaintenanceExclusionsOrThrow(java.lang.String key); - - com.google.container.v1.MaintenanceWindow.PolicyCase getPolicyCase(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ManagedPrometheusConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ManagedPrometheusConfig.java deleted file mode 100644 index 32f29f84a57c..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ManagedPrometheusConfig.java +++ /dev/null @@ -1,537 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * ManagedPrometheusConfig defines the configuration for
- * Google Cloud Managed Service for Prometheus.
- * 
- * - * Protobuf type {@code google.container.v1.ManagedPrometheusConfig} - */ -public final class ManagedPrometheusConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.ManagedPrometheusConfig) - ManagedPrometheusConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use ManagedPrometheusConfig.newBuilder() to construct. - private ManagedPrometheusConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ManagedPrometheusConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ManagedPrometheusConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ManagedPrometheusConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ManagedPrometheusConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ManagedPrometheusConfig.class, - com.google.container.v1.ManagedPrometheusConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * Enable Managed Collection.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.ManagedPrometheusConfig)) { - return super.equals(obj); - } - com.google.container.v1.ManagedPrometheusConfig other = - (com.google.container.v1.ManagedPrometheusConfig) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ManagedPrometheusConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ManagedPrometheusConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ManagedPrometheusConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ManagedPrometheusConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ManagedPrometheusConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ManagedPrometheusConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ManagedPrometheusConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ManagedPrometheusConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ManagedPrometheusConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.ManagedPrometheusConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ManagedPrometheusConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ManagedPrometheusConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.ManagedPrometheusConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * ManagedPrometheusConfig defines the configuration for
-   * Google Cloud Managed Service for Prometheus.
-   * 
- * - * Protobuf type {@code google.container.v1.ManagedPrometheusConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ManagedPrometheusConfig) - com.google.container.v1.ManagedPrometheusConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ManagedPrometheusConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ManagedPrometheusConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ManagedPrometheusConfig.class, - com.google.container.v1.ManagedPrometheusConfig.Builder.class); - } - - // Construct using com.google.container.v1.ManagedPrometheusConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enabled_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ManagedPrometheusConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ManagedPrometheusConfig getDefaultInstanceForType() { - return com.google.container.v1.ManagedPrometheusConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ManagedPrometheusConfig build() { - com.google.container.v1.ManagedPrometheusConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ManagedPrometheusConfig buildPartial() { - com.google.container.v1.ManagedPrometheusConfig result = - new com.google.container.v1.ManagedPrometheusConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.ManagedPrometheusConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ManagedPrometheusConfig) { - return mergeFrom((com.google.container.v1.ManagedPrometheusConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ManagedPrometheusConfig other) { - if (other == com.google.container.v1.ManagedPrometheusConfig.getDefaultInstance()) - return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean enabled_; - /** - * - * - *
-     * Enable Managed Collection.
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Enable Managed Collection.
-     * 
- * - * bool enabled = 1; - * - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable Managed Collection.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - enabled_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.ManagedPrometheusConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ManagedPrometheusConfig) - private static final com.google.container.v1.ManagedPrometheusConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ManagedPrometheusConfig(); - } - - public static com.google.container.v1.ManagedPrometheusConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ManagedPrometheusConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.ManagedPrometheusConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ManagedPrometheusConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ManagedPrometheusConfigOrBuilder.java deleted file mode 100644 index c5e4c09aef98..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ManagedPrometheusConfigOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface ManagedPrometheusConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ManagedPrometheusConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Enable Managed Collection.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java deleted file mode 100644 index 6a7d57dc0d29..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java +++ /dev/null @@ -1,1836 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * 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.v1.MasterAuth} - */ -public final class MasterAuth extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MasterAuth_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MasterAuth_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.MasterAuth.class, - com.google.container.v1.MasterAuth.Builder.class); - } - - private int bitField0_; - public static final int USERNAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1142 - * @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]; - * - * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1142 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1153 - * @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]; - * - * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1153 - * @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.v1.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.v1.ClientCertificateConfig client_certificate_config = 3; - * - * @return Whether the clientCertificateConfig field is set. - */ - @java.lang.Override - public boolean hasClientCertificateConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Configuration for client certificate authentication on the cluster. For
-   * clusters before v1.12, if no configuration is specified, a client
-   * certificate is issued.
-   * 
- * - * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; - * - * @return The clientCertificateConfig. - */ - @java.lang.Override - public com.google.container.v1.ClientCertificateConfig getClientCertificateConfig() { - return clientCertificateConfig_ == null - ? com.google.container.v1.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.v1.ClientCertificateConfig client_certificate_config = 3; - */ - @java.lang.Override - public com.google.container.v1.ClientCertificateConfigOrBuilder - getClientCertificateConfigOrBuilder() { - return clientCertificateConfig_ == null - ? com.google.container.v1.ClientCertificateConfig.getDefaultInstance() - : clientCertificateConfig_; - } - - public static final int CLUSTER_CA_CERTIFICATE_FIELD_NUMBER = 100; - - @SuppressWarnings("serial") - private volatile java.lang.Object clusterCaCertificate_ = ""; - /** - * - * - *
-   * [Output only] Base64-encoded public certificate that is the root of
-   * trust for the cluster.
-   * 
- * - * string cluster_ca_certificate = 100; - * - * @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; - } - } - /** - * - * - *
-   * [Output only] Base64-encoded public certificate that is the root of
-   * trust for the cluster.
-   * 
- * - * 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getClientCertificateConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterCaCertificate_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 100, clusterCaCertificate_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientCertificate_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 101, clientCertificate_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientKey_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 102, clientKey_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, username_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, getClientCertificateConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterCaCertificate_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, clusterCaCertificate_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientCertificate_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(101, clientCertificate_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientKey_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(102, clientKey_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.MasterAuth)) { - return super.equals(obj); - } - com.google.container.v1.MasterAuth other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.MasterAuth parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.MasterAuth parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.MasterAuth parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.MasterAuth parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.MasterAuth parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.MasterAuth parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.MasterAuth parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.MasterAuth} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.MasterAuth) - com.google.container.v1.MasterAuthOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MasterAuth_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MasterAuth_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.MasterAuth.class, - com.google.container.v1.MasterAuth.Builder.class); - } - - // Construct using com.google.container.v1.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) { - getClientCertificateConfigFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - username_ = ""; - password_ = ""; - clientCertificateConfig_ = null; - if (clientCertificateConfigBuilder_ != null) { - clientCertificateConfigBuilder_.dispose(); - clientCertificateConfigBuilder_ = null; - } - clusterCaCertificate_ = ""; - clientCertificate_ = ""; - clientKey_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MasterAuth_descriptor; - } - - @java.lang.Override - public com.google.container.v1.MasterAuth getDefaultInstanceForType() { - return com.google.container.v1.MasterAuth.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.MasterAuth build() { - com.google.container.v1.MasterAuth result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.MasterAuth buildPartial() { - com.google.container.v1.MasterAuth result = new com.google.container.v1.MasterAuth(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.MasterAuth result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.username_ = username_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.password_ = password_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clientCertificateConfig_ = - clientCertificateConfigBuilder_ == null - ? clientCertificateConfig_ - : clientCertificateConfigBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.clusterCaCertificate_ = clusterCaCertificate_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.clientCertificate_ = clientCertificate_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.clientKey_ = clientKey_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.MasterAuth) { - return mergeFrom((com.google.container.v1.MasterAuth) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.MasterAuth other) { - if (other == com.google.container.v1.MasterAuth.getDefaultInstance()) return this; - if (!other.getUsername().isEmpty()) { - username_ = other.username_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getPassword().isEmpty()) { - password_ = other.password_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasClientCertificateConfig()) { - mergeClientCertificateConfig(other.getClientCertificateConfig()); - } - if (!other.getClusterCaCertificate().isEmpty()) { - clusterCaCertificate_ = other.clusterCaCertificate_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getClientCertificate().isEmpty()) { - clientCertificate_ = other.clientCertificate_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (!other.getClientKey().isEmpty()) { - clientKey_ = other.clientKey_; - bitField0_ |= 0x00000020; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - username_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - password_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - getClientCertificateConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 802: - { - clusterCaCertificate_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 802 - case 810: - { - clientCertificate_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 810 - case 818: - { - clientKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 818 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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]; - * - * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1142 - * @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]; - * - * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1142 - * @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]; - * - * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1142 - * @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; - bitField0_ |= 0x00000001; - 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]; - * - * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1142 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearUsername() { - username_ = getDefaultInstance().getUsername(); - bitField0_ = (bitField0_ & ~0x00000001); - 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]; - * - * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1142 - * @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; - bitField0_ |= 0x00000001; - 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]; - * - * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1153 - * @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]; - * - * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1153 - * @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]; - * - * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1153 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1153 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearPassword() { - password_ = getDefaultInstance().getPassword(); - bitField0_ = (bitField0_ & ~0x00000002); - 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]; - * - * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1153 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.container.v1.ClientCertificateConfig clientCertificateConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ClientCertificateConfig, - com.google.container.v1.ClientCertificateConfig.Builder, - com.google.container.v1.ClientCertificateConfigOrBuilder> - clientCertificateConfigBuilder_; - /** - * - * - *
-     * Configuration for client certificate authentication on the cluster. For
-     * clusters before v1.12, if no configuration is specified, a client
-     * certificate is issued.
-     * 
- * - * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; - * - * @return Whether the clientCertificateConfig field is set. - */ - public boolean hasClientCertificateConfig() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * Configuration for client certificate authentication on the cluster. For
-     * clusters before v1.12, if no configuration is specified, a client
-     * certificate is issued.
-     * 
- * - * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; - * - * @return The clientCertificateConfig. - */ - public com.google.container.v1.ClientCertificateConfig getClientCertificateConfig() { - if (clientCertificateConfigBuilder_ == null) { - return clientCertificateConfig_ == null - ? com.google.container.v1.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.v1.ClientCertificateConfig client_certificate_config = 3; - */ - public Builder setClientCertificateConfig( - com.google.container.v1.ClientCertificateConfig value) { - if (clientCertificateConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - clientCertificateConfig_ = value; - } else { - clientCertificateConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - 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.v1.ClientCertificateConfig client_certificate_config = 3; - */ - public Builder setClientCertificateConfig( - com.google.container.v1.ClientCertificateConfig.Builder builderForValue) { - if (clientCertificateConfigBuilder_ == null) { - clientCertificateConfig_ = builderForValue.build(); - } else { - clientCertificateConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - 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.v1.ClientCertificateConfig client_certificate_config = 3; - */ - public Builder mergeClientCertificateConfig( - com.google.container.v1.ClientCertificateConfig value) { - if (clientCertificateConfigBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && clientCertificateConfig_ != null - && clientCertificateConfig_ - != com.google.container.v1.ClientCertificateConfig.getDefaultInstance()) { - getClientCertificateConfigBuilder().mergeFrom(value); - } else { - clientCertificateConfig_ = value; - } - } else { - clientCertificateConfigBuilder_.mergeFrom(value); - } - if (clientCertificateConfig_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - 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.v1.ClientCertificateConfig client_certificate_config = 3; - */ - public Builder clearClientCertificateConfig() { - bitField0_ = (bitField0_ & ~0x00000004); - clientCertificateConfig_ = null; - if (clientCertificateConfigBuilder_ != null) { - clientCertificateConfigBuilder_.dispose(); - clientCertificateConfigBuilder_ = null; - } - onChanged(); - 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.v1.ClientCertificateConfig client_certificate_config = 3; - */ - public com.google.container.v1.ClientCertificateConfig.Builder - getClientCertificateConfigBuilder() { - bitField0_ |= 0x00000004; - 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.v1.ClientCertificateConfig client_certificate_config = 3; - */ - public com.google.container.v1.ClientCertificateConfigOrBuilder - getClientCertificateConfigOrBuilder() { - if (clientCertificateConfigBuilder_ != null) { - return clientCertificateConfigBuilder_.getMessageOrBuilder(); - } else { - return clientCertificateConfig_ == null - ? com.google.container.v1.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.v1.ClientCertificateConfig client_certificate_config = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ClientCertificateConfig, - com.google.container.v1.ClientCertificateConfig.Builder, - com.google.container.v1.ClientCertificateConfigOrBuilder> - getClientCertificateConfigFieldBuilder() { - if (clientCertificateConfigBuilder_ == null) { - clientCertificateConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ClientCertificateConfig, - com.google.container.v1.ClientCertificateConfig.Builder, - com.google.container.v1.ClientCertificateConfigOrBuilder>( - getClientCertificateConfig(), getParentForChildren(), isClean()); - clientCertificateConfig_ = null; - } - return clientCertificateConfigBuilder_; - } - - private java.lang.Object clusterCaCertificate_ = ""; - /** - * - * - *
-     * [Output only] Base64-encoded public certificate that is the root of
-     * trust for the cluster.
-     * 
- * - * string cluster_ca_certificate = 100; - * - * @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; - } - } - /** - * - * - *
-     * [Output only] Base64-encoded public certificate that is the root of
-     * trust for the cluster.
-     * 
- * - * 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; - } - } - /** - * - * - *
-     * [Output only] Base64-encoded public certificate that is the root of
-     * trust for the cluster.
-     * 
- * - * 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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] Base64-encoded public certificate that is the root of
-     * trust for the cluster.
-     * 
- * - * string cluster_ca_certificate = 100; - * - * @return This builder for chaining. - */ - public Builder clearClusterCaCertificate() { - clusterCaCertificate_ = getDefaultInstance().getClusterCaCertificate(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] Base64-encoded public certificate that is the root of
-     * trust for the cluster.
-     * 
- * - * 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; - bitField0_ |= 0x00000008; - 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; - bitField0_ |= 0x00000010; - 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(); - bitField0_ = (bitField0_ & ~0x00000010); - 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; - bitField0_ |= 0x00000010; - 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; - bitField0_ |= 0x00000020; - 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(); - bitField0_ = (bitField0_ & ~0x00000020); - 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; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.MasterAuth) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.MasterAuth) - private static final com.google.container.v1.MasterAuth DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.MasterAuth(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.MasterAuth getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java deleted file mode 100644 index 9c652adc8e33..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java +++ /dev/null @@ -1,240 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface MasterAuthOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.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]; - * - * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1142 - * @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]; - * - * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1142 - * @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]; - * - * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1153 - * @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]; - * - * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1153 - * @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.v1.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.v1.ClientCertificateConfig client_certificate_config = 3; - * - * @return The clientCertificateConfig. - */ - com.google.container.v1.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.v1.ClientCertificateConfig client_certificate_config = 3; - */ - com.google.container.v1.ClientCertificateConfigOrBuilder getClientCertificateConfigOrBuilder(); - - /** - * - * - *
-   * [Output only] Base64-encoded public certificate that is the root of
-   * trust for the cluster.
-   * 
- * - * string cluster_ca_certificate = 100; - * - * @return The clusterCaCertificate. - */ - java.lang.String getClusterCaCertificate(); - /** - * - * - *
-   * [Output only] Base64-encoded public certificate that is the root of
-   * trust for the cluster.
-   * 
- * - * 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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfig.java deleted file mode 100644 index 6b37268b6983..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfig.java +++ /dev/null @@ -1,2104 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * 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.v1.MasterAuthorizedNetworksConfig} - */ -public final class MasterAuthorizedNetworksConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MasterAuthorizedNetworksConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MasterAuthorizedNetworksConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.MasterAuthorizedNetworksConfig.class, - com.google.container.v1.MasterAuthorizedNetworksConfig.Builder.class); - } - - public interface CidrBlockOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.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.v1.MasterAuthorizedNetworksConfig.CidrBlock} - */ - public static final class CidrBlock extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MasterAuthorizedNetworksConfig_CidrBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.class, - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.Builder.class); - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cidrBlock_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cidrBlock_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cidrBlock_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cidrBlock_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock)) { - return super.equals(obj); - } - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock other = - (com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock) obj; - - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getCidrBlock().equals(other.getCidrBlock())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.MasterAuthorizedNetworksConfig.CidrBlock - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.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.v1.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.v1.MasterAuthorizedNetworksConfig.CidrBlock} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock) - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MasterAuthorizedNetworksConfig_CidrBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.class, - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.Builder.class); - } - - // Construct using - // com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - displayName_ = ""; - cidrBlock_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor; - } - - @java.lang.Override - public com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock - getDefaultInstanceForType() { - return com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock build() { - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock buildPartial() { - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock result = - new com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.displayName_ = displayName_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.cidrBlock_ = cidrBlock_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock) { - return mergeFrom( - (com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock other) { - if (other - == com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock - .getDefaultInstance()) return this; - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getCidrBlock().isEmpty()) { - cidrBlock_ = other.cidrBlock_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - cidrBlock_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - 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; - bitField0_ |= 0x00000002; - 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(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock) - private static final com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int bitField0_; - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - private java.util.List - cidrBlocks_; - /** - * - * - *
-   * cidr_blocks define up to 50 external networks that could access
-   * Kubernetes master through HTTPS.
-   * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - @java.lang.Override - public java.util.List - getCidrBlocksList() { - return cidrBlocks_; - } - /** - * - * - *
-   * cidr_blocks define up to 50 external networks that could access
-   * Kubernetes master through HTTPS.
-   * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - @java.lang.Override - public java.util.List< - ? extends com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder> - getCidrBlocksOrBuilderList() { - return cidrBlocks_; - } - /** - * - * - *
-   * cidr_blocks define up to 50 external networks that could access
-   * Kubernetes master through HTTPS.
-   * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - @java.lang.Override - public int getCidrBlocksCount() { - return cidrBlocks_.size(); - } - /** - * - * - *
-   * cidr_blocks define up to 50 external networks that could access
-   * Kubernetes master through HTTPS.
-   * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - @java.lang.Override - public com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock getCidrBlocks(int index) { - return cidrBlocks_.get(index); - } - /** - * - * - *
-   * cidr_blocks define up to 50 external networks that could access
-   * Kubernetes master through HTTPS.
-   * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - @java.lang.Override - public com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder - getCidrBlocksOrBuilder(int index) { - return cidrBlocks_.get(index); - } - - public static final int GCP_PUBLIC_CIDRS_ACCESS_ENABLED_FIELD_NUMBER = 3; - private boolean gcpPublicCidrsAccessEnabled_ = false; - /** - * - * - *
-   * Whether master is accessbile via Google Compute Engine Public IP addresses.
-   * 
- * - * optional bool gcp_public_cidrs_access_enabled = 3; - * - * @return Whether the gcpPublicCidrsAccessEnabled field is set. - */ - @java.lang.Override - public boolean hasGcpPublicCidrsAccessEnabled() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Whether master is accessbile via Google Compute Engine Public IP addresses.
-   * 
- * - * optional bool gcp_public_cidrs_access_enabled = 3; - * - * @return The gcpPublicCidrsAccessEnabled. - */ - @java.lang.Override - public boolean getGcpPublicCidrsAccessEnabled() { - return gcpPublicCidrsAccessEnabled_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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)); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeBool(3, gcpPublicCidrsAccessEnabled_); - } - getUnknownFields().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)); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(3, gcpPublicCidrsAccessEnabled_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.MasterAuthorizedNetworksConfig)) { - return super.equals(obj); - } - com.google.container.v1.MasterAuthorizedNetworksConfig other = - (com.google.container.v1.MasterAuthorizedNetworksConfig) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (!getCidrBlocksList().equals(other.getCidrBlocksList())) return false; - if (hasGcpPublicCidrsAccessEnabled() != other.hasGcpPublicCidrsAccessEnabled()) return false; - if (hasGcpPublicCidrsAccessEnabled()) { - if (getGcpPublicCidrsAccessEnabled() != other.getGcpPublicCidrsAccessEnabled()) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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(); - } - if (hasGcpPublicCidrsAccessEnabled()) { - hash = (37 * hash) + GCP_PUBLIC_CIDRS_ACCESS_ENABLED_FIELD_NUMBER; - hash = - (53 * hash) + com.google.protobuf.Internal.hashBoolean(getGcpPublicCidrsAccessEnabled()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.MasterAuthorizedNetworksConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.MasterAuthorizedNetworksConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.MasterAuthorizedNetworksConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.MasterAuthorizedNetworksConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.MasterAuthorizedNetworksConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.MasterAuthorizedNetworksConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.MasterAuthorizedNetworksConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.MasterAuthorizedNetworksConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.MasterAuthorizedNetworksConfig) - com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MasterAuthorizedNetworksConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MasterAuthorizedNetworksConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.MasterAuthorizedNetworksConfig.class, - com.google.container.v1.MasterAuthorizedNetworksConfig.Builder.class); - } - - // Construct using com.google.container.v1.MasterAuthorizedNetworksConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enabled_ = false; - if (cidrBlocksBuilder_ == null) { - cidrBlocks_ = java.util.Collections.emptyList(); - } else { - cidrBlocks_ = null; - cidrBlocksBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - gcpPublicCidrsAccessEnabled_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MasterAuthorizedNetworksConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.MasterAuthorizedNetworksConfig getDefaultInstanceForType() { - return com.google.container.v1.MasterAuthorizedNetworksConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.MasterAuthorizedNetworksConfig build() { - com.google.container.v1.MasterAuthorizedNetworksConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.MasterAuthorizedNetworksConfig buildPartial() { - com.google.container.v1.MasterAuthorizedNetworksConfig result = - new com.google.container.v1.MasterAuthorizedNetworksConfig(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.container.v1.MasterAuthorizedNetworksConfig result) { - if (cidrBlocksBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - cidrBlocks_ = java.util.Collections.unmodifiableList(cidrBlocks_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.cidrBlocks_ = cidrBlocks_; - } else { - result.cidrBlocks_ = cidrBlocksBuilder_.build(); - } - } - - private void buildPartial0(com.google.container.v1.MasterAuthorizedNetworksConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.gcpPublicCidrsAccessEnabled_ = gcpPublicCidrsAccessEnabled_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.MasterAuthorizedNetworksConfig) { - return mergeFrom((com.google.container.v1.MasterAuthorizedNetworksConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.MasterAuthorizedNetworksConfig other) { - if (other == com.google.container.v1.MasterAuthorizedNetworksConfig.getDefaultInstance()) - return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - if (cidrBlocksBuilder_ == null) { - if (!other.cidrBlocks_.isEmpty()) { - if (cidrBlocks_.isEmpty()) { - cidrBlocks_ = other.cidrBlocks_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureCidrBlocksIsMutable(); - cidrBlocks_.addAll(other.cidrBlocks_); - } - onChanged(); - } - } else { - if (!other.cidrBlocks_.isEmpty()) { - if (cidrBlocksBuilder_.isEmpty()) { - cidrBlocksBuilder_.dispose(); - cidrBlocksBuilder_ = null; - cidrBlocks_ = other.cidrBlocks_; - bitField0_ = (bitField0_ & ~0x00000002); - cidrBlocksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getCidrBlocksFieldBuilder() - : null; - } else { - cidrBlocksBuilder_.addAllMessages(other.cidrBlocks_); - } - } - } - if (other.hasGcpPublicCidrsAccessEnabled()) { - setGcpPublicCidrsAccessEnabled(other.getGcpPublicCidrsAccessEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock m = - input.readMessage( - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.parser(), - extensionRegistry); - if (cidrBlocksBuilder_ == null) { - ensureCidrBlocksIsMutable(); - cidrBlocks_.add(m); - } else { - cidrBlocksBuilder_.addMessage(m); - } - break; - } // case 18 - case 24: - { - gcpPublicCidrsAccessEnabled_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether or not master authorized networks is enabled.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - enabled_ = false; - onChanged(); - return this; - } - - private java.util.List - cidrBlocks_ = java.util.Collections.emptyList(); - - private void ensureCidrBlocksIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - cidrBlocks_ = - new java.util.ArrayList< - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock>(cidrBlocks_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock, - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.Builder, - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder> - cidrBlocksBuilder_; - - /** - * - * - *
-     * cidr_blocks define up to 50 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1.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 50 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public int getCidrBlocksCount() { - if (cidrBlocksBuilder_ == null) { - return cidrBlocks_.size(); - } else { - return cidrBlocksBuilder_.getCount(); - } - } - /** - * - * - *
-     * cidr_blocks define up to 50 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock getCidrBlocks( - int index) { - if (cidrBlocksBuilder_ == null) { - return cidrBlocks_.get(index); - } else { - return cidrBlocksBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * cidr_blocks define up to 50 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public Builder setCidrBlocks( - int index, com.google.container.v1.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 50 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public Builder setCidrBlocks( - int index, - com.google.container.v1.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 50 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public Builder addCidrBlocks( - com.google.container.v1.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 50 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public Builder addCidrBlocks( - int index, com.google.container.v1.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 50 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public Builder addCidrBlocks( - com.google.container.v1.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 50 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public Builder addCidrBlocks( - int index, - com.google.container.v1.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 50 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public Builder addAllCidrBlocks( - java.lang.Iterable< - ? extends com.google.container.v1.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 50 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public Builder clearCidrBlocks() { - if (cidrBlocksBuilder_ == null) { - cidrBlocks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - cidrBlocksBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * cidr_blocks define up to 50 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1.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 50 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.Builder - getCidrBlocksBuilder(int index) { - return getCidrBlocksFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * cidr_blocks define up to 50 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder - getCidrBlocksOrBuilder(int index) { - if (cidrBlocksBuilder_ == null) { - return cidrBlocks_.get(index); - } else { - return cidrBlocksBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * cidr_blocks define up to 50 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public java.util.List< - ? extends com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder> - getCidrBlocksOrBuilderList() { - if (cidrBlocksBuilder_ != null) { - return cidrBlocksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(cidrBlocks_); - } - } - /** - * - * - *
-     * cidr_blocks define up to 50 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.Builder - addCidrBlocksBuilder() { - return getCidrBlocksFieldBuilder() - .addBuilder( - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock - .getDefaultInstance()); - } - /** - * - * - *
-     * cidr_blocks define up to 50 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.Builder - addCidrBlocksBuilder(int index) { - return getCidrBlocksFieldBuilder() - .addBuilder( - index, - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock - .getDefaultInstance()); - } - /** - * - * - *
-     * cidr_blocks define up to 50 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public java.util.List - getCidrBlocksBuilderList() { - return getCidrBlocksFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock, - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.Builder, - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder> - getCidrBlocksFieldBuilder() { - if (cidrBlocksBuilder_ == null) { - cidrBlocksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock, - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.Builder, - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder>( - cidrBlocks_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - cidrBlocks_ = null; - } - return cidrBlocksBuilder_; - } - - private boolean gcpPublicCidrsAccessEnabled_; - /** - * - * - *
-     * Whether master is accessbile via Google Compute Engine Public IP addresses.
-     * 
- * - * optional bool gcp_public_cidrs_access_enabled = 3; - * - * @return Whether the gcpPublicCidrsAccessEnabled field is set. - */ - @java.lang.Override - public boolean hasGcpPublicCidrsAccessEnabled() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * Whether master is accessbile via Google Compute Engine Public IP addresses.
-     * 
- * - * optional bool gcp_public_cidrs_access_enabled = 3; - * - * @return The gcpPublicCidrsAccessEnabled. - */ - @java.lang.Override - public boolean getGcpPublicCidrsAccessEnabled() { - return gcpPublicCidrsAccessEnabled_; - } - /** - * - * - *
-     * Whether master is accessbile via Google Compute Engine Public IP addresses.
-     * 
- * - * optional bool gcp_public_cidrs_access_enabled = 3; - * - * @param value The gcpPublicCidrsAccessEnabled to set. - * @return This builder for chaining. - */ - public Builder setGcpPublicCidrsAccessEnabled(boolean value) { - - gcpPublicCidrsAccessEnabled_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether master is accessbile via Google Compute Engine Public IP addresses.
-     * 
- * - * optional bool gcp_public_cidrs_access_enabled = 3; - * - * @return This builder for chaining. - */ - public Builder clearGcpPublicCidrsAccessEnabled() { - bitField0_ = (bitField0_ & ~0x00000004); - gcpPublicCidrsAccessEnabled_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.MasterAuthorizedNetworksConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.MasterAuthorizedNetworksConfig) - private static final com.google.container.v1.MasterAuthorizedNetworksConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.MasterAuthorizedNetworksConfig(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.MasterAuthorizedNetworksConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfigOrBuilder.java deleted file mode 100644 index c67dbb13d8ea..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfigOrBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface MasterAuthorizedNetworksConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.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 50 external networks that could access
-   * Kubernetes master through HTTPS.
-   * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - java.util.List - getCidrBlocksList(); - /** - * - * - *
-   * cidr_blocks define up to 50 external networks that could access
-   * Kubernetes master through HTTPS.
-   * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock getCidrBlocks(int index); - /** - * - * - *
-   * cidr_blocks define up to 50 external networks that could access
-   * Kubernetes master through HTTPS.
-   * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - int getCidrBlocksCount(); - /** - * - * - *
-   * cidr_blocks define up to 50 external networks that could access
-   * Kubernetes master through HTTPS.
-   * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - java.util.List< - ? extends com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder> - getCidrBlocksOrBuilderList(); - /** - * - * - *
-   * cidr_blocks define up to 50 external networks that could access
-   * Kubernetes master through HTTPS.
-   * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder getCidrBlocksOrBuilder( - int index); - - /** - * - * - *
-   * Whether master is accessbile via Google Compute Engine Public IP addresses.
-   * 
- * - * optional bool gcp_public_cidrs_access_enabled = 3; - * - * @return Whether the gcpPublicCidrsAccessEnabled field is set. - */ - boolean hasGcpPublicCidrsAccessEnabled(); - /** - * - * - *
-   * Whether master is accessbile via Google Compute Engine Public IP addresses.
-   * 
- * - * optional bool gcp_public_cidrs_access_enabled = 3; - * - * @return The gcpPublicCidrsAccessEnabled. - */ - boolean getGcpPublicCidrsAccessEnabled(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaxPodsConstraint.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaxPodsConstraint.java deleted file mode 100644 index 57180f303e6a..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaxPodsConstraint.java +++ /dev/null @@ -1,534 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Constraints applied to pods.
- * 
- * - * Protobuf type {@code google.container.v1.MaxPodsConstraint} - */ -public final class MaxPodsConstraint extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MaxPodsConstraint_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MaxPodsConstraint_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.MaxPodsConstraint.class, - com.google.container.v1.MaxPodsConstraint.Builder.class); - } - - public static final int MAX_PODS_PER_NODE_FIELD_NUMBER = 1; - private long maxPodsPerNode_ = 0L; - /** - * - * - *
-   * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.MaxPodsConstraint)) { - return super.equals(obj); - } - com.google.container.v1.MaxPodsConstraint other = - (com.google.container.v1.MaxPodsConstraint) obj; - - if (getMaxPodsPerNode() != other.getMaxPodsPerNode()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.MaxPodsConstraint parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.MaxPodsConstraint parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.MaxPodsConstraint parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.MaxPodsConstraint parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.MaxPodsConstraint parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.MaxPodsConstraint parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.MaxPodsConstraint parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.MaxPodsConstraint} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.MaxPodsConstraint) - com.google.container.v1.MaxPodsConstraintOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MaxPodsConstraint_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MaxPodsConstraint_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.MaxPodsConstraint.class, - com.google.container.v1.MaxPodsConstraint.Builder.class); - } - - // Construct using com.google.container.v1.MaxPodsConstraint.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - maxPodsPerNode_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MaxPodsConstraint_descriptor; - } - - @java.lang.Override - public com.google.container.v1.MaxPodsConstraint getDefaultInstanceForType() { - return com.google.container.v1.MaxPodsConstraint.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.MaxPodsConstraint build() { - com.google.container.v1.MaxPodsConstraint result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.MaxPodsConstraint buildPartial() { - com.google.container.v1.MaxPodsConstraint result = - new com.google.container.v1.MaxPodsConstraint(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.MaxPodsConstraint result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.maxPodsPerNode_ = maxPodsPerNode_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.MaxPodsConstraint) { - return mergeFrom((com.google.container.v1.MaxPodsConstraint) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.MaxPodsConstraint other) { - if (other == com.google.container.v1.MaxPodsConstraint.getDefaultInstance()) return this; - if (other.getMaxPodsPerNode() != 0L) { - setMaxPodsPerNode(other.getMaxPodsPerNode()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - maxPodsPerNode_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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() { - bitField0_ = (bitField0_ & ~0x00000001); - 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.v1.MaxPodsConstraint) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.MaxPodsConstraint) - private static final com.google.container.v1.MaxPodsConstraint DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.MaxPodsConstraint(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.MaxPodsConstraint getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaxPodsConstraintOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaxPodsConstraintOrBuilder.java deleted file mode 100644 index 5e78261f6c14..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaxPodsConstraintOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface MaxPodsConstraintOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MeshCertificates.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MeshCertificates.java deleted file mode 100644 index 3edcba201972..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MeshCertificates.java +++ /dev/null @@ -1,819 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Configuration for issuance of mTLS keys and certificates to Kubernetes pods.
- * 
- * - * Protobuf type {@code google.container.v1.MeshCertificates} - */ -public final class MeshCertificates extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.MeshCertificates) - MeshCertificatesOrBuilder { - private static final long serialVersionUID = 0L; - // Use MeshCertificates.newBuilder() to construct. - private MeshCertificates(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private MeshCertificates() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new MeshCertificates(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MeshCertificates_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MeshCertificates_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.MeshCertificates.class, - com.google.container.v1.MeshCertificates.Builder.class); - } - - private int bitField0_; - public static final int ENABLE_CERTIFICATES_FIELD_NUMBER = 1; - private com.google.protobuf.BoolValue enableCertificates_; - /** - * - * - *
-   * enable_certificates controls issuance of workload mTLS certificates.
-   *
-   * If set, the GKE Workload Identity Certificates controller and node agent
-   * will be deployed in the cluster, which can then be configured by creating a
-   * WorkloadCertificateConfig Custom Resource.
-   *
-   * Requires Workload Identity
-   * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
-   * must be non-empty).
-   * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - * - * @return Whether the enableCertificates field is set. - */ - @java.lang.Override - public boolean hasEnableCertificates() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * enable_certificates controls issuance of workload mTLS certificates.
-   *
-   * If set, the GKE Workload Identity Certificates controller and node agent
-   * will be deployed in the cluster, which can then be configured by creating a
-   * WorkloadCertificateConfig Custom Resource.
-   *
-   * Requires Workload Identity
-   * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
-   * must be non-empty).
-   * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - * - * @return The enableCertificates. - */ - @java.lang.Override - public com.google.protobuf.BoolValue getEnableCertificates() { - return enableCertificates_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : enableCertificates_; - } - /** - * - * - *
-   * enable_certificates controls issuance of workload mTLS certificates.
-   *
-   * If set, the GKE Workload Identity Certificates controller and node agent
-   * will be deployed in the cluster, which can then be configured by creating a
-   * WorkloadCertificateConfig Custom Resource.
-   *
-   * Requires Workload Identity
-   * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
-   * must be non-empty).
-   * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - @java.lang.Override - public com.google.protobuf.BoolValueOrBuilder getEnableCertificatesOrBuilder() { - return enableCertificates_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : enableCertificates_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getEnableCertificates()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEnableCertificates()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.MeshCertificates)) { - return super.equals(obj); - } - com.google.container.v1.MeshCertificates other = (com.google.container.v1.MeshCertificates) obj; - - if (hasEnableCertificates() != other.hasEnableCertificates()) return false; - if (hasEnableCertificates()) { - if (!getEnableCertificates().equals(other.getEnableCertificates())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasEnableCertificates()) { - hash = (37 * hash) + ENABLE_CERTIFICATES_FIELD_NUMBER; - hash = (53 * hash) + getEnableCertificates().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.MeshCertificates parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.MeshCertificates parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.MeshCertificates parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.MeshCertificates parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.MeshCertificates parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.MeshCertificates parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.MeshCertificates parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.MeshCertificates parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.MeshCertificates parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.MeshCertificates parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.MeshCertificates parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.MeshCertificates parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.MeshCertificates prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes pods.
-   * 
- * - * Protobuf type {@code google.container.v1.MeshCertificates} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.MeshCertificates) - com.google.container.v1.MeshCertificatesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MeshCertificates_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MeshCertificates_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.MeshCertificates.class, - com.google.container.v1.MeshCertificates.Builder.class); - } - - // Construct using com.google.container.v1.MeshCertificates.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getEnableCertificatesFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enableCertificates_ = null; - if (enableCertificatesBuilder_ != null) { - enableCertificatesBuilder_.dispose(); - enableCertificatesBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MeshCertificates_descriptor; - } - - @java.lang.Override - public com.google.container.v1.MeshCertificates getDefaultInstanceForType() { - return com.google.container.v1.MeshCertificates.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.MeshCertificates build() { - com.google.container.v1.MeshCertificates result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.MeshCertificates buildPartial() { - com.google.container.v1.MeshCertificates result = - new com.google.container.v1.MeshCertificates(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.MeshCertificates result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enableCertificates_ = - enableCertificatesBuilder_ == null - ? enableCertificates_ - : enableCertificatesBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.MeshCertificates) { - return mergeFrom((com.google.container.v1.MeshCertificates) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.MeshCertificates other) { - if (other == com.google.container.v1.MeshCertificates.getDefaultInstance()) return this; - if (other.hasEnableCertificates()) { - mergeEnableCertificates(other.getEnableCertificates()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage( - getEnableCertificatesFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.protobuf.BoolValue enableCertificates_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - enableCertificatesBuilder_; - /** - * - * - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     *
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     *
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - * - * @return Whether the enableCertificates field is set. - */ - public boolean hasEnableCertificates() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     *
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     *
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - * - * @return The enableCertificates. - */ - public com.google.protobuf.BoolValue getEnableCertificates() { - if (enableCertificatesBuilder_ == null) { - return enableCertificates_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : enableCertificates_; - } else { - return enableCertificatesBuilder_.getMessage(); - } - } - /** - * - * - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     *
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     *
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - public Builder setEnableCertificates(com.google.protobuf.BoolValue value) { - if (enableCertificatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - enableCertificates_ = value; - } else { - enableCertificatesBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     *
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     *
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - public Builder setEnableCertificates(com.google.protobuf.BoolValue.Builder builderForValue) { - if (enableCertificatesBuilder_ == null) { - enableCertificates_ = builderForValue.build(); - } else { - enableCertificatesBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     *
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     *
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - public Builder mergeEnableCertificates(com.google.protobuf.BoolValue value) { - if (enableCertificatesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && enableCertificates_ != null - && enableCertificates_ != com.google.protobuf.BoolValue.getDefaultInstance()) { - getEnableCertificatesBuilder().mergeFrom(value); - } else { - enableCertificates_ = value; - } - } else { - enableCertificatesBuilder_.mergeFrom(value); - } - if (enableCertificates_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * - * - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     *
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     *
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - public Builder clearEnableCertificates() { - bitField0_ = (bitField0_ & ~0x00000001); - enableCertificates_ = null; - if (enableCertificatesBuilder_ != null) { - enableCertificatesBuilder_.dispose(); - enableCertificatesBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     *
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     *
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - public com.google.protobuf.BoolValue.Builder getEnableCertificatesBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getEnableCertificatesFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     *
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     *
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - public com.google.protobuf.BoolValueOrBuilder getEnableCertificatesOrBuilder() { - if (enableCertificatesBuilder_ != null) { - return enableCertificatesBuilder_.getMessageOrBuilder(); - } else { - return enableCertificates_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : enableCertificates_; - } - } - /** - * - * - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     *
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     *
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - getEnableCertificatesFieldBuilder() { - if (enableCertificatesBuilder_ == null) { - enableCertificatesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder>( - getEnableCertificates(), getParentForChildren(), isClean()); - enableCertificates_ = null; - } - return enableCertificatesBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.MeshCertificates) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.MeshCertificates) - private static final com.google.container.v1.MeshCertificates DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.MeshCertificates(); - } - - public static com.google.container.v1.MeshCertificates getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MeshCertificates parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.MeshCertificates getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MeshCertificatesOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MeshCertificatesOrBuilder.java deleted file mode 100644 index 161d69305254..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MeshCertificatesOrBuilder.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface MeshCertificatesOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.MeshCertificates) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * enable_certificates controls issuance of workload mTLS certificates.
-   *
-   * If set, the GKE Workload Identity Certificates controller and node agent
-   * will be deployed in the cluster, which can then be configured by creating a
-   * WorkloadCertificateConfig Custom Resource.
-   *
-   * Requires Workload Identity
-   * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
-   * must be non-empty).
-   * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - * - * @return Whether the enableCertificates field is set. - */ - boolean hasEnableCertificates(); - /** - * - * - *
-   * enable_certificates controls issuance of workload mTLS certificates.
-   *
-   * If set, the GKE Workload Identity Certificates controller and node agent
-   * will be deployed in the cluster, which can then be configured by creating a
-   * WorkloadCertificateConfig Custom Resource.
-   *
-   * Requires Workload Identity
-   * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
-   * must be non-empty).
-   * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - * - * @return The enableCertificates. - */ - com.google.protobuf.BoolValue getEnableCertificates(); - /** - * - * - *
-   * enable_certificates controls issuance of workload mTLS certificates.
-   *
-   * If set, the GKE Workload Identity Certificates controller and node agent
-   * will be deployed in the cluster, which can then be configured by creating a
-   * WorkloadCertificateConfig Custom Resource.
-   *
-   * Requires Workload Identity
-   * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
-   * must be non-empty).
-   * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - com.google.protobuf.BoolValueOrBuilder getEnableCertificatesOrBuilder(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringComponentConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringComponentConfig.java deleted file mode 100644 index 61065683f9b4..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringComponentConfig.java +++ /dev/null @@ -1,1221 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * MonitoringComponentConfig is cluster monitoring component configuration.
- * 
- * - * Protobuf type {@code google.container.v1.MonitoringComponentConfig} - */ -public final class MonitoringComponentConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.MonitoringComponentConfig) - MonitoringComponentConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use MonitoringComponentConfig.newBuilder() to construct. - private MonitoringComponentConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private MonitoringComponentConfig() { - enableComponents_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new MonitoringComponentConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MonitoringComponentConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MonitoringComponentConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.MonitoringComponentConfig.class, - com.google.container.v1.MonitoringComponentConfig.Builder.class); - } - - /** - * - * - *
-   * GKE components exposing metrics
-   * 
- * - * Protobuf enum {@code google.container.v1.MonitoringComponentConfig.Component} - */ - public enum Component implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value. This shouldn't be used.
-     * 
- * - * COMPONENT_UNSPECIFIED = 0; - */ - COMPONENT_UNSPECIFIED(0), - /** - * - * - *
-     * system components
-     * 
- * - * SYSTEM_COMPONENTS = 1; - */ - SYSTEM_COMPONENTS(1), - /** - * - * - *
-     * kube-apiserver
-     * 
- * - * APISERVER = 3; - */ - APISERVER(3), - /** - * - * - *
-     * kube-scheduler
-     * 
- * - * SCHEDULER = 4; - */ - SCHEDULER(4), - /** - * - * - *
-     * kube-controller-manager
-     * 
- * - * CONTROLLER_MANAGER = 5; - */ - CONTROLLER_MANAGER(5), - /** - * - * - *
-     * Storage
-     * 
- * - * STORAGE = 7; - */ - STORAGE(7), - /** - * - * - *
-     * Horizontal Pod Autoscaling
-     * 
- * - * HPA = 8; - */ - HPA(8), - /** - * - * - *
-     * Pod
-     * 
- * - * POD = 9; - */ - POD(9), - /** - * - * - *
-     * DaemonSet
-     * 
- * - * DAEMONSET = 10; - */ - DAEMONSET(10), - /** - * - * - *
-     * Deployment
-     * 
- * - * DEPLOYMENT = 11; - */ - DEPLOYMENT(11), - /** - * - * - *
-     * Statefulset
-     * 
- * - * STATEFULSET = 12; - */ - STATEFULSET(12), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value. This shouldn't be used.
-     * 
- * - * COMPONENT_UNSPECIFIED = 0; - */ - public static final int COMPONENT_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * system components
-     * 
- * - * SYSTEM_COMPONENTS = 1; - */ - public static final int SYSTEM_COMPONENTS_VALUE = 1; - /** - * - * - *
-     * kube-apiserver
-     * 
- * - * APISERVER = 3; - */ - public static final int APISERVER_VALUE = 3; - /** - * - * - *
-     * kube-scheduler
-     * 
- * - * SCHEDULER = 4; - */ - public static final int SCHEDULER_VALUE = 4; - /** - * - * - *
-     * kube-controller-manager
-     * 
- * - * CONTROLLER_MANAGER = 5; - */ - public static final int CONTROLLER_MANAGER_VALUE = 5; - /** - * - * - *
-     * Storage
-     * 
- * - * STORAGE = 7; - */ - public static final int STORAGE_VALUE = 7; - /** - * - * - *
-     * Horizontal Pod Autoscaling
-     * 
- * - * HPA = 8; - */ - public static final int HPA_VALUE = 8; - /** - * - * - *
-     * Pod
-     * 
- * - * POD = 9; - */ - public static final int POD_VALUE = 9; - /** - * - * - *
-     * DaemonSet
-     * 
- * - * DAEMONSET = 10; - */ - public static final int DAEMONSET_VALUE = 10; - /** - * - * - *
-     * Deployment
-     * 
- * - * DEPLOYMENT = 11; - */ - public static final int DEPLOYMENT_VALUE = 11; - /** - * - * - *
-     * Statefulset
-     * 
- * - * STATEFULSET = 12; - */ - public static final int STATEFULSET_VALUE = 12; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Component valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Component forNumber(int value) { - switch (value) { - case 0: - return COMPONENT_UNSPECIFIED; - case 1: - return SYSTEM_COMPONENTS; - case 3: - return APISERVER; - case 4: - return SCHEDULER; - case 5: - return CONTROLLER_MANAGER; - case 7: - return STORAGE; - case 8: - return HPA; - case 9: - return POD; - case 10: - return DAEMONSET; - case 11: - return DEPLOYMENT; - case 12: - return STATEFULSET; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Component findValueByNumber(int number) { - return Component.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.MonitoringComponentConfig.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final Component[] VALUES = values(); - - public static Component valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Component(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.MonitoringComponentConfig.Component) - } - - public static final int ENABLE_COMPONENTS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List enableComponents_; - - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.container.v1.MonitoringComponentConfig.Component> - enableComponents_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.container.v1.MonitoringComponentConfig.Component>() { - public com.google.container.v1.MonitoringComponentConfig.Component convert( - java.lang.Integer from) { - com.google.container.v1.MonitoringComponentConfig.Component result = - com.google.container.v1.MonitoringComponentConfig.Component.forNumber(from); - return result == null - ? com.google.container.v1.MonitoringComponentConfig.Component.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-   * Select components to collect metrics. An empty set would disable all
-   * monitoring.
-   * 
- * - * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @return A list containing the enableComponents. - */ - @java.lang.Override - public java.util.List - getEnableComponentsList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.container.v1.MonitoringComponentConfig.Component>( - enableComponents_, enableComponents_converter_); - } - /** - * - * - *
-   * Select components to collect metrics. An empty set would disable all
-   * monitoring.
-   * 
- * - * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @return The count of enableComponents. - */ - @java.lang.Override - public int getEnableComponentsCount() { - return enableComponents_.size(); - } - /** - * - * - *
-   * Select components to collect metrics. An empty set would disable all
-   * monitoring.
-   * 
- * - * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @param index The index of the element to return. - * @return The enableComponents at the given index. - */ - @java.lang.Override - public com.google.container.v1.MonitoringComponentConfig.Component getEnableComponents( - int index) { - return enableComponents_converter_.convert(enableComponents_.get(index)); - } - /** - * - * - *
-   * Select components to collect metrics. An empty set would disable all
-   * monitoring.
-   * 
- * - * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @return A list containing the enum numeric values on the wire for enableComponents. - */ - @java.lang.Override - public java.util.List getEnableComponentsValueList() { - return enableComponents_; - } - /** - * - * - *
-   * Select components to collect metrics. An empty set would disable all
-   * monitoring.
-   * 
- * - * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of enableComponents at the given index. - */ - @java.lang.Override - public int getEnableComponentsValue(int index) { - return enableComponents_.get(index); - } - - private int enableComponentsMemoizedSerializedSize; - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (getEnableComponentsList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(enableComponentsMemoizedSerializedSize); - } - for (int i = 0; i < enableComponents_.size(); i++) { - output.writeEnumNoTag(enableComponents_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < enableComponents_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(enableComponents_.get(i)); - } - size += dataSize; - if (!getEnableComponentsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - enableComponentsMemoizedSerializedSize = dataSize; - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.MonitoringComponentConfig)) { - return super.equals(obj); - } - com.google.container.v1.MonitoringComponentConfig other = - (com.google.container.v1.MonitoringComponentConfig) obj; - - if (!enableComponents_.equals(other.enableComponents_)) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getEnableComponentsCount() > 0) { - hash = (37 * hash) + ENABLE_COMPONENTS_FIELD_NUMBER; - hash = (53 * hash) + enableComponents_.hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.MonitoringComponentConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.MonitoringComponentConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.MonitoringComponentConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.MonitoringComponentConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.MonitoringComponentConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.MonitoringComponentConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.MonitoringComponentConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.MonitoringComponentConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.MonitoringComponentConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.MonitoringComponentConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.MonitoringComponentConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.MonitoringComponentConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.MonitoringComponentConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * MonitoringComponentConfig is cluster monitoring component configuration.
-   * 
- * - * Protobuf type {@code google.container.v1.MonitoringComponentConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.MonitoringComponentConfig) - com.google.container.v1.MonitoringComponentConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MonitoringComponentConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MonitoringComponentConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.MonitoringComponentConfig.class, - com.google.container.v1.MonitoringComponentConfig.Builder.class); - } - - // Construct using com.google.container.v1.MonitoringComponentConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enableComponents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MonitoringComponentConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.MonitoringComponentConfig getDefaultInstanceForType() { - return com.google.container.v1.MonitoringComponentConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.MonitoringComponentConfig build() { - com.google.container.v1.MonitoringComponentConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.MonitoringComponentConfig buildPartial() { - com.google.container.v1.MonitoringComponentConfig result = - new com.google.container.v1.MonitoringComponentConfig(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.container.v1.MonitoringComponentConfig result) { - if (((bitField0_ & 0x00000001) != 0)) { - enableComponents_ = java.util.Collections.unmodifiableList(enableComponents_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.enableComponents_ = enableComponents_; - } - - private void buildPartial0(com.google.container.v1.MonitoringComponentConfig result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.MonitoringComponentConfig) { - return mergeFrom((com.google.container.v1.MonitoringComponentConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.MonitoringComponentConfig other) { - if (other == com.google.container.v1.MonitoringComponentConfig.getDefaultInstance()) - return this; - if (!other.enableComponents_.isEmpty()) { - if (enableComponents_.isEmpty()) { - enableComponents_ = other.enableComponents_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEnableComponentsIsMutable(); - enableComponents_.addAll(other.enableComponents_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - int tmpRaw = input.readEnum(); - ensureEnableComponentsIsMutable(); - enableComponents_.add(tmpRaw); - break; - } // case 8 - case 10: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureEnableComponentsIsMutable(); - enableComponents_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List enableComponents_ = java.util.Collections.emptyList(); - - private void ensureEnableComponentsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - enableComponents_ = new java.util.ArrayList(enableComponents_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Select components to collect metrics. An empty set would disable all
-     * monitoring.
-     * 
- * - * - * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @return A list containing the enableComponents. - */ - public java.util.List - getEnableComponentsList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.container.v1.MonitoringComponentConfig.Component>( - enableComponents_, enableComponents_converter_); - } - /** - * - * - *
-     * Select components to collect metrics. An empty set would disable all
-     * monitoring.
-     * 
- * - * - * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @return The count of enableComponents. - */ - public int getEnableComponentsCount() { - return enableComponents_.size(); - } - /** - * - * - *
-     * Select components to collect metrics. An empty set would disable all
-     * monitoring.
-     * 
- * - * - * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @param index The index of the element to return. - * @return The enableComponents at the given index. - */ - public com.google.container.v1.MonitoringComponentConfig.Component getEnableComponents( - int index) { - return enableComponents_converter_.convert(enableComponents_.get(index)); - } - /** - * - * - *
-     * Select components to collect metrics. An empty set would disable all
-     * monitoring.
-     * 
- * - * - * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @param index The index to set the value at. - * @param value The enableComponents to set. - * @return This builder for chaining. - */ - public Builder setEnableComponents( - int index, com.google.container.v1.MonitoringComponentConfig.Component value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnableComponentsIsMutable(); - enableComponents_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Select components to collect metrics. An empty set would disable all
-     * monitoring.
-     * 
- * - * - * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @param value The enableComponents to add. - * @return This builder for chaining. - */ - public Builder addEnableComponents( - com.google.container.v1.MonitoringComponentConfig.Component value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnableComponentsIsMutable(); - enableComponents_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Select components to collect metrics. An empty set would disable all
-     * monitoring.
-     * 
- * - * - * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @param values The enableComponents to add. - * @return This builder for chaining. - */ - public Builder addAllEnableComponents( - java.lang.Iterable - values) { - ensureEnableComponentsIsMutable(); - for (com.google.container.v1.MonitoringComponentConfig.Component value : values) { - enableComponents_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-     * Select components to collect metrics. An empty set would disable all
-     * monitoring.
-     * 
- * - * - * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @return This builder for chaining. - */ - public Builder clearEnableComponents() { - enableComponents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Select components to collect metrics. An empty set would disable all
-     * monitoring.
-     * 
- * - * - * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @return A list containing the enum numeric values on the wire for enableComponents. - */ - public java.util.List getEnableComponentsValueList() { - return java.util.Collections.unmodifiableList(enableComponents_); - } - /** - * - * - *
-     * Select components to collect metrics. An empty set would disable all
-     * monitoring.
-     * 
- * - * - * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of enableComponents at the given index. - */ - public int getEnableComponentsValue(int index) { - return enableComponents_.get(index); - } - /** - * - * - *
-     * Select components to collect metrics. An empty set would disable all
-     * monitoring.
-     * 
- * - * - * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for enableComponents to set. - * @return This builder for chaining. - */ - public Builder setEnableComponentsValue(int index, int value) { - ensureEnableComponentsIsMutable(); - enableComponents_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Select components to collect metrics. An empty set would disable all
-     * monitoring.
-     * 
- * - * - * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @param value The enum numeric value on the wire for enableComponents to add. - * @return This builder for chaining. - */ - public Builder addEnableComponentsValue(int value) { - ensureEnableComponentsIsMutable(); - enableComponents_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Select components to collect metrics. An empty set would disable all
-     * monitoring.
-     * 
- * - * - * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @param values The enum numeric values on the wire for enableComponents to add. - * @return This builder for chaining. - */ - public Builder addAllEnableComponentsValue(java.lang.Iterable values) { - ensureEnableComponentsIsMutable(); - for (int value : values) { - enableComponents_.add(value); - } - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.MonitoringComponentConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.MonitoringComponentConfig) - private static final com.google.container.v1.MonitoringComponentConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.MonitoringComponentConfig(); - } - - public static com.google.container.v1.MonitoringComponentConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MonitoringComponentConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.MonitoringComponentConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringComponentConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringComponentConfigOrBuilder.java deleted file mode 100644 index df17dfc682d7..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringComponentConfigOrBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface MonitoringComponentConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.MonitoringComponentConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Select components to collect metrics. An empty set would disable all
-   * monitoring.
-   * 
- * - * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @return A list containing the enableComponents. - */ - java.util.List - getEnableComponentsList(); - /** - * - * - *
-   * Select components to collect metrics. An empty set would disable all
-   * monitoring.
-   * 
- * - * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @return The count of enableComponents. - */ - int getEnableComponentsCount(); - /** - * - * - *
-   * Select components to collect metrics. An empty set would disable all
-   * monitoring.
-   * 
- * - * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @param index The index of the element to return. - * @return The enableComponents at the given index. - */ - com.google.container.v1.MonitoringComponentConfig.Component getEnableComponents(int index); - /** - * - * - *
-   * Select components to collect metrics. An empty set would disable all
-   * monitoring.
-   * 
- * - * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @return A list containing the enum numeric values on the wire for enableComponents. - */ - java.util.List getEnableComponentsValueList(); - /** - * - * - *
-   * Select components to collect metrics. An empty set would disable all
-   * monitoring.
-   * 
- * - * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of enableComponents at the given index. - */ - int getEnableComponentsValue(int index); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringConfig.java deleted file mode 100644 index 962a6df7f798..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringConfig.java +++ /dev/null @@ -1,1328 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * MonitoringConfig is cluster monitoring configuration.
- * 
- * - * Protobuf type {@code google.container.v1.MonitoringConfig} - */ -public final class MonitoringConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.MonitoringConfig) - MonitoringConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use MonitoringConfig.newBuilder() to construct. - private MonitoringConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private MonitoringConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new MonitoringConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MonitoringConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MonitoringConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.MonitoringConfig.class, - com.google.container.v1.MonitoringConfig.Builder.class); - } - - private int bitField0_; - public static final int COMPONENT_CONFIG_FIELD_NUMBER = 1; - private com.google.container.v1.MonitoringComponentConfig componentConfig_; - /** - * - * - *
-   * Monitoring components configuration
-   * 
- * - * .google.container.v1.MonitoringComponentConfig component_config = 1; - * - * @return Whether the componentConfig field is set. - */ - @java.lang.Override - public boolean hasComponentConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Monitoring components configuration
-   * 
- * - * .google.container.v1.MonitoringComponentConfig component_config = 1; - * - * @return The componentConfig. - */ - @java.lang.Override - public com.google.container.v1.MonitoringComponentConfig getComponentConfig() { - return componentConfig_ == null - ? com.google.container.v1.MonitoringComponentConfig.getDefaultInstance() - : componentConfig_; - } - /** - * - * - *
-   * Monitoring components configuration
-   * 
- * - * .google.container.v1.MonitoringComponentConfig component_config = 1; - */ - @java.lang.Override - public com.google.container.v1.MonitoringComponentConfigOrBuilder getComponentConfigOrBuilder() { - return componentConfig_ == null - ? com.google.container.v1.MonitoringComponentConfig.getDefaultInstance() - : componentConfig_; - } - - public static final int MANAGED_PROMETHEUS_CONFIG_FIELD_NUMBER = 2; - private com.google.container.v1.ManagedPrometheusConfig managedPrometheusConfig_; - /** - * - * - *
-   * Enable Google Cloud Managed Service for Prometheus
-   * in the cluster.
-   * 
- * - * .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; - * - * @return Whether the managedPrometheusConfig field is set. - */ - @java.lang.Override - public boolean hasManagedPrometheusConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * Enable Google Cloud Managed Service for Prometheus
-   * in the cluster.
-   * 
- * - * .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; - * - * @return The managedPrometheusConfig. - */ - @java.lang.Override - public com.google.container.v1.ManagedPrometheusConfig getManagedPrometheusConfig() { - return managedPrometheusConfig_ == null - ? com.google.container.v1.ManagedPrometheusConfig.getDefaultInstance() - : managedPrometheusConfig_; - } - /** - * - * - *
-   * Enable Google Cloud Managed Service for Prometheus
-   * in the cluster.
-   * 
- * - * .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; - */ - @java.lang.Override - public com.google.container.v1.ManagedPrometheusConfigOrBuilder - getManagedPrometheusConfigOrBuilder() { - return managedPrometheusConfig_ == null - ? com.google.container.v1.ManagedPrometheusConfig.getDefaultInstance() - : managedPrometheusConfig_; - } - - public static final int ADVANCED_DATAPATH_OBSERVABILITY_CONFIG_FIELD_NUMBER = 3; - private com.google.container.v1.AdvancedDatapathObservabilityConfig - advancedDatapathObservabilityConfig_; - /** - * - * - *
-   * Configuration of Advanced Datapath Observability features.
-   * 
- * - * - * .google.container.v1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; - * - * - * @return Whether the advancedDatapathObservabilityConfig field is set. - */ - @java.lang.Override - public boolean hasAdvancedDatapathObservabilityConfig() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-   * Configuration of Advanced Datapath Observability features.
-   * 
- * - * - * .google.container.v1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; - * - * - * @return The advancedDatapathObservabilityConfig. - */ - @java.lang.Override - public com.google.container.v1.AdvancedDatapathObservabilityConfig - getAdvancedDatapathObservabilityConfig() { - return advancedDatapathObservabilityConfig_ == null - ? com.google.container.v1.AdvancedDatapathObservabilityConfig.getDefaultInstance() - : advancedDatapathObservabilityConfig_; - } - /** - * - * - *
-   * Configuration of Advanced Datapath Observability features.
-   * 
- * - * - * .google.container.v1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; - * - */ - @java.lang.Override - public com.google.container.v1.AdvancedDatapathObservabilityConfigOrBuilder - getAdvancedDatapathObservabilityConfigOrBuilder() { - return advancedDatapathObservabilityConfig_ == null - ? com.google.container.v1.AdvancedDatapathObservabilityConfig.getDefaultInstance() - : advancedDatapathObservabilityConfig_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getComponentConfig()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getManagedPrometheusConfig()); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(3, getAdvancedDatapathObservabilityConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getComponentConfig()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, getManagedPrometheusConfig()); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, getAdvancedDatapathObservabilityConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.MonitoringConfig)) { - return super.equals(obj); - } - com.google.container.v1.MonitoringConfig other = (com.google.container.v1.MonitoringConfig) obj; - - if (hasComponentConfig() != other.hasComponentConfig()) return false; - if (hasComponentConfig()) { - if (!getComponentConfig().equals(other.getComponentConfig())) return false; - } - if (hasManagedPrometheusConfig() != other.hasManagedPrometheusConfig()) return false; - if (hasManagedPrometheusConfig()) { - if (!getManagedPrometheusConfig().equals(other.getManagedPrometheusConfig())) return false; - } - if (hasAdvancedDatapathObservabilityConfig() != other.hasAdvancedDatapathObservabilityConfig()) - return false; - if (hasAdvancedDatapathObservabilityConfig()) { - if (!getAdvancedDatapathObservabilityConfig() - .equals(other.getAdvancedDatapathObservabilityConfig())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasComponentConfig()) { - hash = (37 * hash) + COMPONENT_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getComponentConfig().hashCode(); - } - if (hasManagedPrometheusConfig()) { - hash = (37 * hash) + MANAGED_PROMETHEUS_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getManagedPrometheusConfig().hashCode(); - } - if (hasAdvancedDatapathObservabilityConfig()) { - hash = (37 * hash) + ADVANCED_DATAPATH_OBSERVABILITY_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getAdvancedDatapathObservabilityConfig().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.MonitoringConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.MonitoringConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.MonitoringConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.MonitoringConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.MonitoringConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.MonitoringConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.MonitoringConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.MonitoringConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.MonitoringConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.MonitoringConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.MonitoringConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.MonitoringConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.MonitoringConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * MonitoringConfig is cluster monitoring configuration.
-   * 
- * - * Protobuf type {@code google.container.v1.MonitoringConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.MonitoringConfig) - com.google.container.v1.MonitoringConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MonitoringConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MonitoringConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.MonitoringConfig.class, - com.google.container.v1.MonitoringConfig.Builder.class); - } - - // Construct using com.google.container.v1.MonitoringConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getComponentConfigFieldBuilder(); - getManagedPrometheusConfigFieldBuilder(); - getAdvancedDatapathObservabilityConfigFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - componentConfig_ = null; - if (componentConfigBuilder_ != null) { - componentConfigBuilder_.dispose(); - componentConfigBuilder_ = null; - } - managedPrometheusConfig_ = null; - if (managedPrometheusConfigBuilder_ != null) { - managedPrometheusConfigBuilder_.dispose(); - managedPrometheusConfigBuilder_ = null; - } - advancedDatapathObservabilityConfig_ = null; - if (advancedDatapathObservabilityConfigBuilder_ != null) { - advancedDatapathObservabilityConfigBuilder_.dispose(); - advancedDatapathObservabilityConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MonitoringConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.MonitoringConfig getDefaultInstanceForType() { - return com.google.container.v1.MonitoringConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.MonitoringConfig build() { - com.google.container.v1.MonitoringConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.MonitoringConfig buildPartial() { - com.google.container.v1.MonitoringConfig result = - new com.google.container.v1.MonitoringConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.MonitoringConfig result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.componentConfig_ = - componentConfigBuilder_ == null ? componentConfig_ : componentConfigBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.managedPrometheusConfig_ = - managedPrometheusConfigBuilder_ == null - ? managedPrometheusConfig_ - : managedPrometheusConfigBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.advancedDatapathObservabilityConfig_ = - advancedDatapathObservabilityConfigBuilder_ == null - ? advancedDatapathObservabilityConfig_ - : advancedDatapathObservabilityConfigBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.MonitoringConfig) { - return mergeFrom((com.google.container.v1.MonitoringConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.MonitoringConfig other) { - if (other == com.google.container.v1.MonitoringConfig.getDefaultInstance()) return this; - if (other.hasComponentConfig()) { - mergeComponentConfig(other.getComponentConfig()); - } - if (other.hasManagedPrometheusConfig()) { - mergeManagedPrometheusConfig(other.getManagedPrometheusConfig()); - } - if (other.hasAdvancedDatapathObservabilityConfig()) { - mergeAdvancedDatapathObservabilityConfig(other.getAdvancedDatapathObservabilityConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getComponentConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - getManagedPrometheusConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - getAdvancedDatapathObservabilityConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.container.v1.MonitoringComponentConfig componentConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MonitoringComponentConfig, - com.google.container.v1.MonitoringComponentConfig.Builder, - com.google.container.v1.MonitoringComponentConfigOrBuilder> - componentConfigBuilder_; - /** - * - * - *
-     * Monitoring components configuration
-     * 
- * - * .google.container.v1.MonitoringComponentConfig component_config = 1; - * - * @return Whether the componentConfig field is set. - */ - public boolean hasComponentConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Monitoring components configuration
-     * 
- * - * .google.container.v1.MonitoringComponentConfig component_config = 1; - * - * @return The componentConfig. - */ - public com.google.container.v1.MonitoringComponentConfig getComponentConfig() { - if (componentConfigBuilder_ == null) { - return componentConfig_ == null - ? com.google.container.v1.MonitoringComponentConfig.getDefaultInstance() - : componentConfig_; - } else { - return componentConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Monitoring components configuration
-     * 
- * - * .google.container.v1.MonitoringComponentConfig component_config = 1; - */ - public Builder setComponentConfig(com.google.container.v1.MonitoringComponentConfig value) { - if (componentConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - componentConfig_ = value; - } else { - componentConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Monitoring components configuration
-     * 
- * - * .google.container.v1.MonitoringComponentConfig component_config = 1; - */ - public Builder setComponentConfig( - com.google.container.v1.MonitoringComponentConfig.Builder builderForValue) { - if (componentConfigBuilder_ == null) { - componentConfig_ = builderForValue.build(); - } else { - componentConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Monitoring components configuration
-     * 
- * - * .google.container.v1.MonitoringComponentConfig component_config = 1; - */ - public Builder mergeComponentConfig(com.google.container.v1.MonitoringComponentConfig value) { - if (componentConfigBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && componentConfig_ != null - && componentConfig_ - != com.google.container.v1.MonitoringComponentConfig.getDefaultInstance()) { - getComponentConfigBuilder().mergeFrom(value); - } else { - componentConfig_ = value; - } - } else { - componentConfigBuilder_.mergeFrom(value); - } - if (componentConfig_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Monitoring components configuration
-     * 
- * - * .google.container.v1.MonitoringComponentConfig component_config = 1; - */ - public Builder clearComponentConfig() { - bitField0_ = (bitField0_ & ~0x00000001); - componentConfig_ = null; - if (componentConfigBuilder_ != null) { - componentConfigBuilder_.dispose(); - componentConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Monitoring components configuration
-     * 
- * - * .google.container.v1.MonitoringComponentConfig component_config = 1; - */ - public com.google.container.v1.MonitoringComponentConfig.Builder getComponentConfigBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getComponentConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Monitoring components configuration
-     * 
- * - * .google.container.v1.MonitoringComponentConfig component_config = 1; - */ - public com.google.container.v1.MonitoringComponentConfigOrBuilder - getComponentConfigOrBuilder() { - if (componentConfigBuilder_ != null) { - return componentConfigBuilder_.getMessageOrBuilder(); - } else { - return componentConfig_ == null - ? com.google.container.v1.MonitoringComponentConfig.getDefaultInstance() - : componentConfig_; - } - } - /** - * - * - *
-     * Monitoring components configuration
-     * 
- * - * .google.container.v1.MonitoringComponentConfig component_config = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MonitoringComponentConfig, - com.google.container.v1.MonitoringComponentConfig.Builder, - com.google.container.v1.MonitoringComponentConfigOrBuilder> - getComponentConfigFieldBuilder() { - if (componentConfigBuilder_ == null) { - componentConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MonitoringComponentConfig, - com.google.container.v1.MonitoringComponentConfig.Builder, - com.google.container.v1.MonitoringComponentConfigOrBuilder>( - getComponentConfig(), getParentForChildren(), isClean()); - componentConfig_ = null; - } - return componentConfigBuilder_; - } - - private com.google.container.v1.ManagedPrometheusConfig managedPrometheusConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ManagedPrometheusConfig, - com.google.container.v1.ManagedPrometheusConfig.Builder, - com.google.container.v1.ManagedPrometheusConfigOrBuilder> - managedPrometheusConfigBuilder_; - /** - * - * - *
-     * Enable Google Cloud Managed Service for Prometheus
-     * in the cluster.
-     * 
- * - * .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; - * - * @return Whether the managedPrometheusConfig field is set. - */ - public boolean hasManagedPrometheusConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * Enable Google Cloud Managed Service for Prometheus
-     * in the cluster.
-     * 
- * - * .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; - * - * @return The managedPrometheusConfig. - */ - public com.google.container.v1.ManagedPrometheusConfig getManagedPrometheusConfig() { - if (managedPrometheusConfigBuilder_ == null) { - return managedPrometheusConfig_ == null - ? com.google.container.v1.ManagedPrometheusConfig.getDefaultInstance() - : managedPrometheusConfig_; - } else { - return managedPrometheusConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Enable Google Cloud Managed Service for Prometheus
-     * in the cluster.
-     * 
- * - * .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; - */ - public Builder setManagedPrometheusConfig( - com.google.container.v1.ManagedPrometheusConfig value) { - if (managedPrometheusConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - managedPrometheusConfig_ = value; - } else { - managedPrometheusConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable Google Cloud Managed Service for Prometheus
-     * in the cluster.
-     * 
- * - * .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; - */ - public Builder setManagedPrometheusConfig( - com.google.container.v1.ManagedPrometheusConfig.Builder builderForValue) { - if (managedPrometheusConfigBuilder_ == null) { - managedPrometheusConfig_ = builderForValue.build(); - } else { - managedPrometheusConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable Google Cloud Managed Service for Prometheus
-     * in the cluster.
-     * 
- * - * .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; - */ - public Builder mergeManagedPrometheusConfig( - com.google.container.v1.ManagedPrometheusConfig value) { - if (managedPrometheusConfigBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && managedPrometheusConfig_ != null - && managedPrometheusConfig_ - != com.google.container.v1.ManagedPrometheusConfig.getDefaultInstance()) { - getManagedPrometheusConfigBuilder().mergeFrom(value); - } else { - managedPrometheusConfig_ = value; - } - } else { - managedPrometheusConfigBuilder_.mergeFrom(value); - } - if (managedPrometheusConfig_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Enable Google Cloud Managed Service for Prometheus
-     * in the cluster.
-     * 
- * - * .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; - */ - public Builder clearManagedPrometheusConfig() { - bitField0_ = (bitField0_ & ~0x00000002); - managedPrometheusConfig_ = null; - if (managedPrometheusConfigBuilder_ != null) { - managedPrometheusConfigBuilder_.dispose(); - managedPrometheusConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Enable Google Cloud Managed Service for Prometheus
-     * in the cluster.
-     * 
- * - * .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; - */ - public com.google.container.v1.ManagedPrometheusConfig.Builder - getManagedPrometheusConfigBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getManagedPrometheusConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Enable Google Cloud Managed Service for Prometheus
-     * in the cluster.
-     * 
- * - * .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; - */ - public com.google.container.v1.ManagedPrometheusConfigOrBuilder - getManagedPrometheusConfigOrBuilder() { - if (managedPrometheusConfigBuilder_ != null) { - return managedPrometheusConfigBuilder_.getMessageOrBuilder(); - } else { - return managedPrometheusConfig_ == null - ? com.google.container.v1.ManagedPrometheusConfig.getDefaultInstance() - : managedPrometheusConfig_; - } - } - /** - * - * - *
-     * Enable Google Cloud Managed Service for Prometheus
-     * in the cluster.
-     * 
- * - * .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ManagedPrometheusConfig, - com.google.container.v1.ManagedPrometheusConfig.Builder, - com.google.container.v1.ManagedPrometheusConfigOrBuilder> - getManagedPrometheusConfigFieldBuilder() { - if (managedPrometheusConfigBuilder_ == null) { - managedPrometheusConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ManagedPrometheusConfig, - com.google.container.v1.ManagedPrometheusConfig.Builder, - com.google.container.v1.ManagedPrometheusConfigOrBuilder>( - getManagedPrometheusConfig(), getParentForChildren(), isClean()); - managedPrometheusConfig_ = null; - } - return managedPrometheusConfigBuilder_; - } - - private com.google.container.v1.AdvancedDatapathObservabilityConfig - advancedDatapathObservabilityConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AdvancedDatapathObservabilityConfig, - com.google.container.v1.AdvancedDatapathObservabilityConfig.Builder, - com.google.container.v1.AdvancedDatapathObservabilityConfigOrBuilder> - advancedDatapathObservabilityConfigBuilder_; - /** - * - * - *
-     * Configuration of Advanced Datapath Observability features.
-     * 
- * - * - * .google.container.v1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; - * - * - * @return Whether the advancedDatapathObservabilityConfig field is set. - */ - public boolean hasAdvancedDatapathObservabilityConfig() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * Configuration of Advanced Datapath Observability features.
-     * 
- * - * - * .google.container.v1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; - * - * - * @return The advancedDatapathObservabilityConfig. - */ - public com.google.container.v1.AdvancedDatapathObservabilityConfig - getAdvancedDatapathObservabilityConfig() { - if (advancedDatapathObservabilityConfigBuilder_ == null) { - return advancedDatapathObservabilityConfig_ == null - ? com.google.container.v1.AdvancedDatapathObservabilityConfig.getDefaultInstance() - : advancedDatapathObservabilityConfig_; - } else { - return advancedDatapathObservabilityConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration of Advanced Datapath Observability features.
-     * 
- * - * - * .google.container.v1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; - * - */ - public Builder setAdvancedDatapathObservabilityConfig( - com.google.container.v1.AdvancedDatapathObservabilityConfig value) { - if (advancedDatapathObservabilityConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - advancedDatapathObservabilityConfig_ = value; - } else { - advancedDatapathObservabilityConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration of Advanced Datapath Observability features.
-     * 
- * - * - * .google.container.v1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; - * - */ - public Builder setAdvancedDatapathObservabilityConfig( - com.google.container.v1.AdvancedDatapathObservabilityConfig.Builder builderForValue) { - if (advancedDatapathObservabilityConfigBuilder_ == null) { - advancedDatapathObservabilityConfig_ = builderForValue.build(); - } else { - advancedDatapathObservabilityConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration of Advanced Datapath Observability features.
-     * 
- * - * - * .google.container.v1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; - * - */ - public Builder mergeAdvancedDatapathObservabilityConfig( - com.google.container.v1.AdvancedDatapathObservabilityConfig value) { - if (advancedDatapathObservabilityConfigBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && advancedDatapathObservabilityConfig_ != null - && advancedDatapathObservabilityConfig_ - != com.google.container.v1.AdvancedDatapathObservabilityConfig - .getDefaultInstance()) { - getAdvancedDatapathObservabilityConfigBuilder().mergeFrom(value); - } else { - advancedDatapathObservabilityConfig_ = value; - } - } else { - advancedDatapathObservabilityConfigBuilder_.mergeFrom(value); - } - if (advancedDatapathObservabilityConfig_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration of Advanced Datapath Observability features.
-     * 
- * - * - * .google.container.v1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; - * - */ - public Builder clearAdvancedDatapathObservabilityConfig() { - bitField0_ = (bitField0_ & ~0x00000004); - advancedDatapathObservabilityConfig_ = null; - if (advancedDatapathObservabilityConfigBuilder_ != null) { - advancedDatapathObservabilityConfigBuilder_.dispose(); - advancedDatapathObservabilityConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration of Advanced Datapath Observability features.
-     * 
- * - * - * .google.container.v1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; - * - */ - public com.google.container.v1.AdvancedDatapathObservabilityConfig.Builder - getAdvancedDatapathObservabilityConfigBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getAdvancedDatapathObservabilityConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration of Advanced Datapath Observability features.
-     * 
- * - * - * .google.container.v1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; - * - */ - public com.google.container.v1.AdvancedDatapathObservabilityConfigOrBuilder - getAdvancedDatapathObservabilityConfigOrBuilder() { - if (advancedDatapathObservabilityConfigBuilder_ != null) { - return advancedDatapathObservabilityConfigBuilder_.getMessageOrBuilder(); - } else { - return advancedDatapathObservabilityConfig_ == null - ? com.google.container.v1.AdvancedDatapathObservabilityConfig.getDefaultInstance() - : advancedDatapathObservabilityConfig_; - } - } - /** - * - * - *
-     * Configuration of Advanced Datapath Observability features.
-     * 
- * - * - * .google.container.v1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AdvancedDatapathObservabilityConfig, - com.google.container.v1.AdvancedDatapathObservabilityConfig.Builder, - com.google.container.v1.AdvancedDatapathObservabilityConfigOrBuilder> - getAdvancedDatapathObservabilityConfigFieldBuilder() { - if (advancedDatapathObservabilityConfigBuilder_ == null) { - advancedDatapathObservabilityConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AdvancedDatapathObservabilityConfig, - com.google.container.v1.AdvancedDatapathObservabilityConfig.Builder, - com.google.container.v1.AdvancedDatapathObservabilityConfigOrBuilder>( - getAdvancedDatapathObservabilityConfig(), getParentForChildren(), isClean()); - advancedDatapathObservabilityConfig_ = null; - } - return advancedDatapathObservabilityConfigBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.MonitoringConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.MonitoringConfig) - private static final com.google.container.v1.MonitoringConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.MonitoringConfig(); - } - - public static com.google.container.v1.MonitoringConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MonitoringConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.MonitoringConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringConfigOrBuilder.java deleted file mode 100644 index 588cd908c912..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringConfigOrBuilder.java +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface MonitoringConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.MonitoringConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Monitoring components configuration
-   * 
- * - * .google.container.v1.MonitoringComponentConfig component_config = 1; - * - * @return Whether the componentConfig field is set. - */ - boolean hasComponentConfig(); - /** - * - * - *
-   * Monitoring components configuration
-   * 
- * - * .google.container.v1.MonitoringComponentConfig component_config = 1; - * - * @return The componentConfig. - */ - com.google.container.v1.MonitoringComponentConfig getComponentConfig(); - /** - * - * - *
-   * Monitoring components configuration
-   * 
- * - * .google.container.v1.MonitoringComponentConfig component_config = 1; - */ - com.google.container.v1.MonitoringComponentConfigOrBuilder getComponentConfigOrBuilder(); - - /** - * - * - *
-   * Enable Google Cloud Managed Service for Prometheus
-   * in the cluster.
-   * 
- * - * .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; - * - * @return Whether the managedPrometheusConfig field is set. - */ - boolean hasManagedPrometheusConfig(); - /** - * - * - *
-   * Enable Google Cloud Managed Service for Prometheus
-   * in the cluster.
-   * 
- * - * .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; - * - * @return The managedPrometheusConfig. - */ - com.google.container.v1.ManagedPrometheusConfig getManagedPrometheusConfig(); - /** - * - * - *
-   * Enable Google Cloud Managed Service for Prometheus
-   * in the cluster.
-   * 
- * - * .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; - */ - com.google.container.v1.ManagedPrometheusConfigOrBuilder getManagedPrometheusConfigOrBuilder(); - - /** - * - * - *
-   * Configuration of Advanced Datapath Observability features.
-   * 
- * - * - * .google.container.v1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; - * - * - * @return Whether the advancedDatapathObservabilityConfig field is set. - */ - boolean hasAdvancedDatapathObservabilityConfig(); - /** - * - * - *
-   * Configuration of Advanced Datapath Observability features.
-   * 
- * - * - * .google.container.v1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; - * - * - * @return The advancedDatapathObservabilityConfig. - */ - com.google.container.v1.AdvancedDatapathObservabilityConfig - getAdvancedDatapathObservabilityConfig(); - /** - * - * - *
-   * Configuration of Advanced Datapath Observability features.
-   * 
- * - * - * .google.container.v1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; - * - */ - com.google.container.v1.AdvancedDatapathObservabilityConfigOrBuilder - getAdvancedDatapathObservabilityConfigOrBuilder(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java deleted file mode 100644 index 60067c51d438..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java +++ /dev/null @@ -1,4109 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * NetworkConfig reports the relative names of network & subnetwork.
- * 
- * - * Protobuf type {@code google.container.v1.NetworkConfig} - */ -public final class NetworkConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.NetworkConfig) - NetworkConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use NetworkConfig.newBuilder() to construct. - private NetworkConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NetworkConfig() { - network_ = ""; - subnetwork_ = ""; - datapathProvider_ = 0; - privateIpv6GoogleAccess_ = 0; - inTransitEncryptionConfig_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NetworkConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NetworkConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NetworkConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NetworkConfig.class, - com.google.container.v1.NetworkConfig.Builder.class); - } - - public interface ClusterNetworkPerformanceConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Specifies the total network bandwidth tier for NodePools in the cluster.
-     * 
- * - * - * optional .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @return Whether the totalEgressBandwidthTier field is set. - */ - boolean hasTotalEgressBandwidthTier(); - /** - * - * - *
-     * Specifies the total network bandwidth tier for NodePools in the cluster.
-     * 
- * - * - * optional .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @return The enum numeric value on the wire for totalEgressBandwidthTier. - */ - int getTotalEgressBandwidthTierValue(); - /** - * - * - *
-     * Specifies the total network bandwidth tier for NodePools in the cluster.
-     * 
- * - * - * optional .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @return The totalEgressBandwidthTier. - */ - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier - getTotalEgressBandwidthTier(); - } - /** - * - * - *
-   * Configuration of network bandwidth tiers
-   * 
- * - * Protobuf type {@code google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig} - */ - public static final class ClusterNetworkPerformanceConfig - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig) - ClusterNetworkPerformanceConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use ClusterNetworkPerformanceConfig.newBuilder() to construct. - private ClusterNetworkPerformanceConfig( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ClusterNetworkPerformanceConfig() { - totalEgressBandwidthTier_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ClusterNetworkPerformanceConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NetworkConfig_ClusterNetworkPerformanceConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NetworkConfig_ClusterNetworkPerformanceConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.class, - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder.class); - } - - /** - * - * - *
-     * Node network tier
-     * 
- * - * Protobuf enum {@code google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier} - */ - public enum Tier implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-       * Default value
-       * 
- * - * TIER_UNSPECIFIED = 0; - */ - TIER_UNSPECIFIED(0), - /** - * - * - *
-       * Higher bandwidth, actual values based on VM size.
-       * 
- * - * TIER_1 = 1; - */ - TIER_1(1), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-       * Default value
-       * 
- * - * TIER_UNSPECIFIED = 0; - */ - public static final int TIER_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-       * Higher bandwidth, actual values based on VM size.
-       * 
- * - * TIER_1 = 1; - */ - public static final int TIER_1_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 Tier 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 Tier forNumber(int value) { - switch (value) { - case 0: - return TIER_UNSPECIFIED; - case 1: - return TIER_1; - 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 Tier findValueByNumber(int number) { - return Tier.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final Tier[] VALUES = values(); - - public static Tier 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 Tier(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier) - } - - private int bitField0_; - public static final int TOTAL_EGRESS_BANDWIDTH_TIER_FIELD_NUMBER = 1; - private int totalEgressBandwidthTier_ = 0; - /** - * - * - *
-     * Specifies the total network bandwidth tier for NodePools in the cluster.
-     * 
- * - * - * optional .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @return Whether the totalEgressBandwidthTier field is set. - */ - @java.lang.Override - public boolean hasTotalEgressBandwidthTier() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Specifies the total network bandwidth tier for NodePools in the cluster.
-     * 
- * - * - * optional .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @return The enum numeric value on the wire for totalEgressBandwidthTier. - */ - @java.lang.Override - public int getTotalEgressBandwidthTierValue() { - return totalEgressBandwidthTier_; - } - /** - * - * - *
-     * Specifies the total network bandwidth tier for NodePools in the cluster.
-     * 
- * - * - * optional .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @return The totalEgressBandwidthTier. - */ - @java.lang.Override - public com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier - getTotalEgressBandwidthTier() { - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier result = - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier.forNumber( - totalEgressBandwidthTier_); - return result == null - ? com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier.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 (((bitField0_ & 0x00000001) != 0)) { - output.writeEnum(1, totalEgressBandwidthTier_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, totalEgressBandwidthTier_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig)) { - return super.equals(obj); - } - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig other = - (com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig) obj; - - if (hasTotalEgressBandwidthTier() != other.hasTotalEgressBandwidthTier()) return false; - if (hasTotalEgressBandwidthTier()) { - if (totalEgressBandwidthTier_ != other.totalEgressBandwidthTier_) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasTotalEgressBandwidthTier()) { - hash = (37 * hash) + TOTAL_EGRESS_BANDWIDTH_TIER_FIELD_NUMBER; - hash = (53 * hash) + totalEgressBandwidthTier_; - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 network bandwidth tiers
-     * 
- * - * Protobuf type {@code google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig) - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NetworkConfig_ClusterNetworkPerformanceConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NetworkConfig_ClusterNetworkPerformanceConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.class, - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder - .class); - } - - // Construct using - // com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - totalEgressBandwidthTier_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NetworkConfig_ClusterNetworkPerformanceConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig - getDefaultInstanceForType() { - return com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig build() { - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig buildPartial() { - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig result = - new com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.totalEgressBandwidthTier_ = totalEgressBandwidthTier_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig) { - return mergeFrom( - (com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig other) { - if (other - == com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig - .getDefaultInstance()) return this; - if (other.hasTotalEgressBandwidthTier()) { - setTotalEgressBandwidthTier(other.getTotalEgressBandwidthTier()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - totalEgressBandwidthTier_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int totalEgressBandwidthTier_ = 0; - /** - * - * - *
-       * Specifies the total network bandwidth tier for NodePools in the cluster.
-       * 
- * - * - * optional .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @return Whether the totalEgressBandwidthTier field is set. - */ - @java.lang.Override - public boolean hasTotalEgressBandwidthTier() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-       * Specifies the total network bandwidth tier for NodePools in the cluster.
-       * 
- * - * - * optional .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @return The enum numeric value on the wire for totalEgressBandwidthTier. - */ - @java.lang.Override - public int getTotalEgressBandwidthTierValue() { - return totalEgressBandwidthTier_; - } - /** - * - * - *
-       * Specifies the total network bandwidth tier for NodePools in the cluster.
-       * 
- * - * - * optional .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @param value The enum numeric value on the wire for totalEgressBandwidthTier to set. - * @return This builder for chaining. - */ - public Builder setTotalEgressBandwidthTierValue(int value) { - totalEgressBandwidthTier_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * Specifies the total network bandwidth tier for NodePools in the cluster.
-       * 
- * - * - * optional .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @return The totalEgressBandwidthTier. - */ - @java.lang.Override - public com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier - getTotalEgressBandwidthTier() { - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier result = - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier.forNumber( - totalEgressBandwidthTier_); - return result == null - ? com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier - .UNRECOGNIZED - : result; - } - /** - * - * - *
-       * Specifies the total network bandwidth tier for NodePools in the cluster.
-       * 
- * - * - * optional .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @param value The totalEgressBandwidthTier to set. - * @return This builder for chaining. - */ - public Builder setTotalEgressBandwidthTier( - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - totalEgressBandwidthTier_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * Specifies the total network bandwidth tier for NodePools in the cluster.
-       * 
- * - * - * optional .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @return This builder for chaining. - */ - public Builder clearTotalEgressBandwidthTier() { - bitField0_ = (bitField0_ & ~0x00000001); - totalEgressBandwidthTier_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig) - private static final com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig(); - } - - public static com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterNetworkPerformanceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int bitField0_; - public static final int NETWORK_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object network_ = ""; - /** - * - * - *
-   * Output only. The relative name of the Google Compute Engine
-   * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-   * to which the cluster is connected. Example:
-   * projects/my-project/global/networks/my-network
-   * 
- * - * 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.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-   * to which the cluster is connected. Example:
-   * projects/my-project/global/networks/my-network
-   * 
- * - * string network = 1; - * - * @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; - - @SuppressWarnings("serial") - 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_ = false; - /** - * - * - *
-   * 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.v1.DefaultSnatStatus defaultSnatStatus_; - /** - * - * - *
-   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-   * will be disabled when default_snat_status is disabled. When disabled is set
-   * to false, default IP masquerade rules will be applied to the nodes to
-   * prevent sNAT on cluster internal traffic.
-   * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - * - * @return Whether the defaultSnatStatus field is set. - */ - @java.lang.Override - public boolean hasDefaultSnatStatus() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-   * will be disabled when default_snat_status is disabled. When disabled is set
-   * to false, default IP masquerade rules will be applied to the nodes to
-   * prevent sNAT on cluster internal traffic.
-   * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - * - * @return The defaultSnatStatus. - */ - @java.lang.Override - public com.google.container.v1.DefaultSnatStatus getDefaultSnatStatus() { - return defaultSnatStatus_ == null - ? com.google.container.v1.DefaultSnatStatus.getDefaultInstance() - : defaultSnatStatus_; - } - /** - * - * - *
-   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-   * will be disabled when default_snat_status is disabled. When disabled is set
-   * to false, default IP masquerade rules will be applied to the nodes to
-   * prevent sNAT on cluster internal traffic.
-   * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - */ - @java.lang.Override - public com.google.container.v1.DefaultSnatStatusOrBuilder getDefaultSnatStatusOrBuilder() { - return defaultSnatStatus_ == null - ? com.google.container.v1.DefaultSnatStatus.getDefaultInstance() - : defaultSnatStatus_; - } - - public static final int ENABLE_L4ILB_SUBSETTING_FIELD_NUMBER = 10; - private boolean enableL4IlbSubsetting_ = false; - /** - * - * - *
-   * Whether L4ILB Subsetting is enabled for this cluster.
-   * 
- * - * bool enable_l4ilb_subsetting = 10; - * - * @return The enableL4ilbSubsetting. - */ - @java.lang.Override - public boolean getEnableL4IlbSubsetting() { - return enableL4IlbSubsetting_; - } - - public static final int DATAPATH_PROVIDER_FIELD_NUMBER = 11; - private int datapathProvider_ = 0; - /** - * - * - *
-   * The desired datapath provider for this cluster. By default, uses the
-   * IPTables-based kube-proxy implementation.
-   * 
- * - * .google.container.v1.DatapathProvider datapath_provider = 11; - * - * @return The enum numeric value on the wire for datapathProvider. - */ - @java.lang.Override - public int getDatapathProviderValue() { - return datapathProvider_; - } - /** - * - * - *
-   * The desired datapath provider for this cluster. By default, uses the
-   * IPTables-based kube-proxy implementation.
-   * 
- * - * .google.container.v1.DatapathProvider datapath_provider = 11; - * - * @return The datapathProvider. - */ - @java.lang.Override - public com.google.container.v1.DatapathProvider getDatapathProvider() { - com.google.container.v1.DatapathProvider result = - com.google.container.v1.DatapathProvider.forNumber(datapathProvider_); - return result == null ? com.google.container.v1.DatapathProvider.UNRECOGNIZED : result; - } - - public static final int PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER = 12; - private int privateIpv6GoogleAccess_ = 0; - /** - * - * - *
-   * The desired state of IPv6 connectivity to Google Services.
-   * By default, no private IPv6 access to or from Google Services (all access
-   * will be via IPv4)
-   * 
- * - * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; - * - * @return The enum numeric value on the wire for privateIpv6GoogleAccess. - */ - @java.lang.Override - public int getPrivateIpv6GoogleAccessValue() { - return privateIpv6GoogleAccess_; - } - /** - * - * - *
-   * The desired state of IPv6 connectivity to Google Services.
-   * By default, no private IPv6 access to or from Google Services (all access
-   * will be via IPv4)
-   * 
- * - * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; - * - * @return The privateIpv6GoogleAccess. - */ - @java.lang.Override - public com.google.container.v1.PrivateIPv6GoogleAccess getPrivateIpv6GoogleAccess() { - com.google.container.v1.PrivateIPv6GoogleAccess result = - com.google.container.v1.PrivateIPv6GoogleAccess.forNumber(privateIpv6GoogleAccess_); - return result == null ? com.google.container.v1.PrivateIPv6GoogleAccess.UNRECOGNIZED : result; - } - - public static final int DNS_CONFIG_FIELD_NUMBER = 13; - private com.google.container.v1.DNSConfig dnsConfig_; - /** - * - * - *
-   * DNSConfig contains clusterDNS config for this cluster.
-   * 
- * - * .google.container.v1.DNSConfig dns_config = 13; - * - * @return Whether the dnsConfig field is set. - */ - @java.lang.Override - public boolean hasDnsConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * DNSConfig contains clusterDNS config for this cluster.
-   * 
- * - * .google.container.v1.DNSConfig dns_config = 13; - * - * @return The dnsConfig. - */ - @java.lang.Override - public com.google.container.v1.DNSConfig getDnsConfig() { - return dnsConfig_ == null ? com.google.container.v1.DNSConfig.getDefaultInstance() : dnsConfig_; - } - /** - * - * - *
-   * DNSConfig contains clusterDNS config for this cluster.
-   * 
- * - * .google.container.v1.DNSConfig dns_config = 13; - */ - @java.lang.Override - public com.google.container.v1.DNSConfigOrBuilder getDnsConfigOrBuilder() { - return dnsConfig_ == null ? com.google.container.v1.DNSConfig.getDefaultInstance() : dnsConfig_; - } - - public static final int SERVICE_EXTERNAL_IPS_CONFIG_FIELD_NUMBER = 15; - private com.google.container.v1.ServiceExternalIPsConfig serviceExternalIpsConfig_; - /** - * - * - *
-   * ServiceExternalIPsConfig specifies if services with externalIPs field are
-   * blocked or not.
-   * 
- * - * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; - * - * @return Whether the serviceExternalIpsConfig field is set. - */ - @java.lang.Override - public boolean hasServiceExternalIpsConfig() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-   * ServiceExternalIPsConfig specifies if services with externalIPs field are
-   * blocked or not.
-   * 
- * - * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; - * - * @return The serviceExternalIpsConfig. - */ - @java.lang.Override - public com.google.container.v1.ServiceExternalIPsConfig getServiceExternalIpsConfig() { - return serviceExternalIpsConfig_ == null - ? com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance() - : serviceExternalIpsConfig_; - } - /** - * - * - *
-   * ServiceExternalIPsConfig specifies if services with externalIPs field are
-   * blocked or not.
-   * 
- * - * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; - */ - @java.lang.Override - public com.google.container.v1.ServiceExternalIPsConfigOrBuilder - getServiceExternalIpsConfigOrBuilder() { - return serviceExternalIpsConfig_ == null - ? com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance() - : serviceExternalIpsConfig_; - } - - public static final int GATEWAY_API_CONFIG_FIELD_NUMBER = 16; - private com.google.container.v1.GatewayAPIConfig gatewayApiConfig_; - /** - * - * - *
-   * GatewayAPIConfig contains the desired config of Gateway API on this
-   * cluster.
-   * 
- * - * .google.container.v1.GatewayAPIConfig gateway_api_config = 16; - * - * @return Whether the gatewayApiConfig field is set. - */ - @java.lang.Override - public boolean hasGatewayApiConfig() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-   * GatewayAPIConfig contains the desired config of Gateway API on this
-   * cluster.
-   * 
- * - * .google.container.v1.GatewayAPIConfig gateway_api_config = 16; - * - * @return The gatewayApiConfig. - */ - @java.lang.Override - public com.google.container.v1.GatewayAPIConfig getGatewayApiConfig() { - return gatewayApiConfig_ == null - ? com.google.container.v1.GatewayAPIConfig.getDefaultInstance() - : gatewayApiConfig_; - } - /** - * - * - *
-   * GatewayAPIConfig contains the desired config of Gateway API on this
-   * cluster.
-   * 
- * - * .google.container.v1.GatewayAPIConfig gateway_api_config = 16; - */ - @java.lang.Override - public com.google.container.v1.GatewayAPIConfigOrBuilder getGatewayApiConfigOrBuilder() { - return gatewayApiConfig_ == null - ? com.google.container.v1.GatewayAPIConfig.getDefaultInstance() - : gatewayApiConfig_; - } - - public static final int ENABLE_MULTI_NETWORKING_FIELD_NUMBER = 17; - private boolean enableMultiNetworking_ = false; - /** - * - * - *
-   * Whether multi-networking is enabled for this cluster.
-   * 
- * - * bool enable_multi_networking = 17; - * - * @return The enableMultiNetworking. - */ - @java.lang.Override - public boolean getEnableMultiNetworking() { - return enableMultiNetworking_; - } - - public static final int NETWORK_PERFORMANCE_CONFIG_FIELD_NUMBER = 18; - private com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig - networkPerformanceConfig_; - /** - * - * - *
-   * Network bandwidth tier configuration.
-   * 
- * - * - * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; - * - * - * @return Whether the networkPerformanceConfig field is set. - */ - @java.lang.Override - public boolean hasNetworkPerformanceConfig() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-   * Network bandwidth tier configuration.
-   * 
- * - * - * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; - * - * - * @return The networkPerformanceConfig. - */ - @java.lang.Override - public com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig - getNetworkPerformanceConfig() { - return networkPerformanceConfig_ == null - ? com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.getDefaultInstance() - : networkPerformanceConfig_; - } - /** - * - * - *
-   * Network bandwidth tier configuration.
-   * 
- * - * - * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; - * - */ - @java.lang.Override - public com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder - getNetworkPerformanceConfigOrBuilder() { - return networkPerformanceConfig_ == null - ? com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.getDefaultInstance() - : networkPerformanceConfig_; - } - - public static final int ENABLE_FQDN_NETWORK_POLICY_FIELD_NUMBER = 19; - private boolean enableFqdnNetworkPolicy_ = false; - /** - * - * - *
-   * Whether FQDN Network Policy is enabled on this cluster.
-   * 
- * - * optional bool enable_fqdn_network_policy = 19; - * - * @return Whether the enableFqdnNetworkPolicy field is set. - */ - @java.lang.Override - public boolean hasEnableFqdnNetworkPolicy() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * - * - *
-   * Whether FQDN Network Policy is enabled on this cluster.
-   * 
- * - * optional bool enable_fqdn_network_policy = 19; - * - * @return The enableFqdnNetworkPolicy. - */ - @java.lang.Override - public boolean getEnableFqdnNetworkPolicy() { - return enableFqdnNetworkPolicy_; - } - - public static final int IN_TRANSIT_ENCRYPTION_CONFIG_FIELD_NUMBER = 20; - private int inTransitEncryptionConfig_ = 0; - /** - * - * - *
-   * Specify the details of in-transit encryption.
-   * 
- * - * - * optional .google.container.v1.InTransitEncryptionConfig in_transit_encryption_config = 20; - * - * - * @return Whether the inTransitEncryptionConfig field is set. - */ - @java.lang.Override - public boolean hasInTransitEncryptionConfig() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * - * - *
-   * Specify the details of in-transit encryption.
-   * 
- * - * - * optional .google.container.v1.InTransitEncryptionConfig in_transit_encryption_config = 20; - * - * - * @return The enum numeric value on the wire for inTransitEncryptionConfig. - */ - @java.lang.Override - public int getInTransitEncryptionConfigValue() { - return inTransitEncryptionConfig_; - } - /** - * - * - *
-   * Specify the details of in-transit encryption.
-   * 
- * - * - * optional .google.container.v1.InTransitEncryptionConfig in_transit_encryption_config = 20; - * - * - * @return The inTransitEncryptionConfig. - */ - @java.lang.Override - public com.google.container.v1.InTransitEncryptionConfig getInTransitEncryptionConfig() { - com.google.container.v1.InTransitEncryptionConfig result = - com.google.container.v1.InTransitEncryptionConfig.forNumber(inTransitEncryptionConfig_); - return result == null ? com.google.container.v1.InTransitEncryptionConfig.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subnetwork_); - } - if (enableIntraNodeVisibility_ != false) { - output.writeBool(5, enableIntraNodeVisibility_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(7, getDefaultSnatStatus()); - } - if (enableL4IlbSubsetting_ != false) { - output.writeBool(10, enableL4IlbSubsetting_); - } - if (datapathProvider_ - != com.google.container.v1.DatapathProvider.DATAPATH_PROVIDER_UNSPECIFIED.getNumber()) { - output.writeEnum(11, datapathProvider_); - } - if (privateIpv6GoogleAccess_ - != com.google.container.v1.PrivateIPv6GoogleAccess.PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED - .getNumber()) { - output.writeEnum(12, privateIpv6GoogleAccess_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(13, getDnsConfig()); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(15, getServiceExternalIpsConfig()); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(16, getGatewayApiConfig()); - } - if (enableMultiNetworking_ != false) { - output.writeBool(17, enableMultiNetworking_); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeMessage(18, getNetworkPerformanceConfig()); - } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeBool(19, enableFqdnNetworkPolicy_); - } - if (((bitField0_ & 0x00000040) != 0)) { - output.writeEnum(20, inTransitEncryptionConfig_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, network_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subnetwork_); - } - if (enableIntraNodeVisibility_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, enableIntraNodeVisibility_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getDefaultSnatStatus()); - } - if (enableL4IlbSubsetting_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, enableL4IlbSubsetting_); - } - if (datapathProvider_ - != com.google.container.v1.DatapathProvider.DATAPATH_PROVIDER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, datapathProvider_); - } - if (privateIpv6GoogleAccess_ - != com.google.container.v1.PrivateIPv6GoogleAccess.PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, privateIpv6GoogleAccess_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getDnsConfig()); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 15, getServiceExternalIpsConfig()); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getGatewayApiConfig()); - } - if (enableMultiNetworking_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(17, enableMultiNetworking_); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 18, getNetworkPerformanceConfig()); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(19, enableFqdnNetworkPolicy_); - } - if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(20, inTransitEncryptionConfig_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.NetworkConfig)) { - return super.equals(obj); - } - com.google.container.v1.NetworkConfig other = (com.google.container.v1.NetworkConfig) obj; - - 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 (getEnableL4IlbSubsetting() != other.getEnableL4IlbSubsetting()) return false; - if (datapathProvider_ != other.datapathProvider_) return false; - if (privateIpv6GoogleAccess_ != other.privateIpv6GoogleAccess_) return false; - if (hasDnsConfig() != other.hasDnsConfig()) return false; - if (hasDnsConfig()) { - if (!getDnsConfig().equals(other.getDnsConfig())) return false; - } - if (hasServiceExternalIpsConfig() != other.hasServiceExternalIpsConfig()) return false; - if (hasServiceExternalIpsConfig()) { - if (!getServiceExternalIpsConfig().equals(other.getServiceExternalIpsConfig())) return false; - } - if (hasGatewayApiConfig() != other.hasGatewayApiConfig()) return false; - if (hasGatewayApiConfig()) { - if (!getGatewayApiConfig().equals(other.getGatewayApiConfig())) return false; - } - if (getEnableMultiNetworking() != other.getEnableMultiNetworking()) return false; - if (hasNetworkPerformanceConfig() != other.hasNetworkPerformanceConfig()) return false; - if (hasNetworkPerformanceConfig()) { - if (!getNetworkPerformanceConfig().equals(other.getNetworkPerformanceConfig())) return false; - } - if (hasEnableFqdnNetworkPolicy() != other.hasEnableFqdnNetworkPolicy()) return false; - if (hasEnableFqdnNetworkPolicy()) { - if (getEnableFqdnNetworkPolicy() != other.getEnableFqdnNetworkPolicy()) return false; - } - if (hasInTransitEncryptionConfig() != other.hasInTransitEncryptionConfig()) return false; - if (hasInTransitEncryptionConfig()) { - if (inTransitEncryptionConfig_ != other.inTransitEncryptionConfig_) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ENABLE_L4ILB_SUBSETTING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableL4IlbSubsetting()); - hash = (37 * hash) + DATAPATH_PROVIDER_FIELD_NUMBER; - hash = (53 * hash) + datapathProvider_; - hash = (37 * hash) + PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER; - hash = (53 * hash) + privateIpv6GoogleAccess_; - if (hasDnsConfig()) { - hash = (37 * hash) + DNS_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDnsConfig().hashCode(); - } - if (hasServiceExternalIpsConfig()) { - hash = (37 * hash) + SERVICE_EXTERNAL_IPS_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getServiceExternalIpsConfig().hashCode(); - } - if (hasGatewayApiConfig()) { - hash = (37 * hash) + GATEWAY_API_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getGatewayApiConfig().hashCode(); - } - hash = (37 * hash) + ENABLE_MULTI_NETWORKING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableMultiNetworking()); - if (hasNetworkPerformanceConfig()) { - hash = (37 * hash) + NETWORK_PERFORMANCE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getNetworkPerformanceConfig().hashCode(); - } - if (hasEnableFqdnNetworkPolicy()) { - hash = (37 * hash) + ENABLE_FQDN_NETWORK_POLICY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableFqdnNetworkPolicy()); - } - if (hasInTransitEncryptionConfig()) { - hash = (37 * hash) + IN_TRANSIT_ENCRYPTION_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + inTransitEncryptionConfig_; - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.NetworkConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NetworkConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NetworkConfig parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NetworkConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NetworkConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NetworkConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NetworkConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NetworkConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NetworkConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.NetworkConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NetworkConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NetworkConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.NetworkConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * NetworkConfig reports the relative names of network & subnetwork.
-   * 
- * - * Protobuf type {@code google.container.v1.NetworkConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.NetworkConfig) - com.google.container.v1.NetworkConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NetworkConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NetworkConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NetworkConfig.class, - com.google.container.v1.NetworkConfig.Builder.class); - } - - // Construct using com.google.container.v1.NetworkConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getDefaultSnatStatusFieldBuilder(); - getDnsConfigFieldBuilder(); - getServiceExternalIpsConfigFieldBuilder(); - getGatewayApiConfigFieldBuilder(); - getNetworkPerformanceConfigFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - network_ = ""; - subnetwork_ = ""; - enableIntraNodeVisibility_ = false; - defaultSnatStatus_ = null; - if (defaultSnatStatusBuilder_ != null) { - defaultSnatStatusBuilder_.dispose(); - defaultSnatStatusBuilder_ = null; - } - enableL4IlbSubsetting_ = false; - datapathProvider_ = 0; - privateIpv6GoogleAccess_ = 0; - dnsConfig_ = null; - if (dnsConfigBuilder_ != null) { - dnsConfigBuilder_.dispose(); - dnsConfigBuilder_ = null; - } - serviceExternalIpsConfig_ = null; - if (serviceExternalIpsConfigBuilder_ != null) { - serviceExternalIpsConfigBuilder_.dispose(); - serviceExternalIpsConfigBuilder_ = null; - } - gatewayApiConfig_ = null; - if (gatewayApiConfigBuilder_ != null) { - gatewayApiConfigBuilder_.dispose(); - gatewayApiConfigBuilder_ = null; - } - enableMultiNetworking_ = false; - networkPerformanceConfig_ = null; - if (networkPerformanceConfigBuilder_ != null) { - networkPerformanceConfigBuilder_.dispose(); - networkPerformanceConfigBuilder_ = null; - } - enableFqdnNetworkPolicy_ = false; - inTransitEncryptionConfig_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NetworkConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NetworkConfig getDefaultInstanceForType() { - return com.google.container.v1.NetworkConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NetworkConfig build() { - com.google.container.v1.NetworkConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NetworkConfig buildPartial() { - com.google.container.v1.NetworkConfig result = - new com.google.container.v1.NetworkConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.NetworkConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.network_ = network_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.subnetwork_ = subnetwork_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.enableIntraNodeVisibility_ = enableIntraNodeVisibility_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.defaultSnatStatus_ = - defaultSnatStatusBuilder_ == null - ? defaultSnatStatus_ - : defaultSnatStatusBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.enableL4IlbSubsetting_ = enableL4IlbSubsetting_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.datapathProvider_ = datapathProvider_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.privateIpv6GoogleAccess_ = privateIpv6GoogleAccess_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.dnsConfig_ = dnsConfigBuilder_ == null ? dnsConfig_ : dnsConfigBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.serviceExternalIpsConfig_ = - serviceExternalIpsConfigBuilder_ == null - ? serviceExternalIpsConfig_ - : serviceExternalIpsConfigBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.gatewayApiConfig_ = - gatewayApiConfigBuilder_ == null ? gatewayApiConfig_ : gatewayApiConfigBuilder_.build(); - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.enableMultiNetworking_ = enableMultiNetworking_; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.networkPerformanceConfig_ = - networkPerformanceConfigBuilder_ == null - ? networkPerformanceConfig_ - : networkPerformanceConfigBuilder_.build(); - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.enableFqdnNetworkPolicy_ = enableFqdnNetworkPolicy_; - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.inTransitEncryptionConfig_ = inTransitEncryptionConfig_; - to_bitField0_ |= 0x00000040; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NetworkConfig) { - return mergeFrom((com.google.container.v1.NetworkConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NetworkConfig other) { - if (other == com.google.container.v1.NetworkConfig.getDefaultInstance()) return this; - if (!other.getNetwork().isEmpty()) { - network_ = other.network_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getSubnetwork().isEmpty()) { - subnetwork_ = other.subnetwork_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getEnableIntraNodeVisibility() != false) { - setEnableIntraNodeVisibility(other.getEnableIntraNodeVisibility()); - } - if (other.hasDefaultSnatStatus()) { - mergeDefaultSnatStatus(other.getDefaultSnatStatus()); - } - if (other.getEnableL4IlbSubsetting() != false) { - setEnableL4IlbSubsetting(other.getEnableL4IlbSubsetting()); - } - if (other.datapathProvider_ != 0) { - setDatapathProviderValue(other.getDatapathProviderValue()); - } - if (other.privateIpv6GoogleAccess_ != 0) { - setPrivateIpv6GoogleAccessValue(other.getPrivateIpv6GoogleAccessValue()); - } - if (other.hasDnsConfig()) { - mergeDnsConfig(other.getDnsConfig()); - } - if (other.hasServiceExternalIpsConfig()) { - mergeServiceExternalIpsConfig(other.getServiceExternalIpsConfig()); - } - if (other.hasGatewayApiConfig()) { - mergeGatewayApiConfig(other.getGatewayApiConfig()); - } - if (other.getEnableMultiNetworking() != false) { - setEnableMultiNetworking(other.getEnableMultiNetworking()); - } - if (other.hasNetworkPerformanceConfig()) { - mergeNetworkPerformanceConfig(other.getNetworkPerformanceConfig()); - } - if (other.hasEnableFqdnNetworkPolicy()) { - setEnableFqdnNetworkPolicy(other.getEnableFqdnNetworkPolicy()); - } - if (other.hasInTransitEncryptionConfig()) { - setInTransitEncryptionConfig(other.getInTransitEncryptionConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - network_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - subnetwork_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 40: - { - enableIntraNodeVisibility_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 40 - case 58: - { - input.readMessage( - getDefaultSnatStatusFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 58 - case 80: - { - enableL4IlbSubsetting_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 80 - case 88: - { - datapathProvider_ = input.readEnum(); - bitField0_ |= 0x00000020; - break; - } // case 88 - case 96: - { - privateIpv6GoogleAccess_ = input.readEnum(); - bitField0_ |= 0x00000040; - break; - } // case 96 - case 106: - { - input.readMessage(getDnsConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 106 - case 122: - { - input.readMessage( - getServiceExternalIpsConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 122 - case 130: - { - input.readMessage( - getGatewayApiConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 130 - case 136: - { - enableMultiNetworking_ = input.readBool(); - bitField0_ |= 0x00000400; - break; - } // case 136 - case 146: - { - input.readMessage( - getNetworkPerformanceConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; - break; - } // case 146 - case 152: - { - enableFqdnNetworkPolicy_ = input.readBool(); - bitField0_ |= 0x00001000; - break; - } // case 152 - case 160: - { - inTransitEncryptionConfig_ = input.readEnum(); - bitField0_ |= 0x00002000; - break; - } // case 160 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object network_ = ""; - /** - * - * - *
-     * Output only. The relative name of the Google Compute Engine
-     * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-     * to which the cluster is connected. Example:
-     * projects/my-project/global/networks/my-network
-     * 
- * - * 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.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-     * to which the cluster is connected. Example:
-     * projects/my-project/global/networks/my-network
-     * 
- * - * string network = 1; - * - * @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.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-     * to which the cluster is connected. Example:
-     * projects/my-project/global/networks/my-network
-     * 
- * - * string network = 1; - * - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The relative name of the Google Compute Engine
-     * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-     * to which the cluster is connected. Example:
-     * projects/my-project/global/networks/my-network
-     * 
- * - * string network = 1; - * - * @return This builder for chaining. - */ - public Builder clearNetwork() { - network_ = getDefaultInstance().getNetwork(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The relative name of the Google Compute Engine
-     * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-     * to which the cluster is connected. Example:
-     * projects/my-project/global/networks/my-network
-     * 
- * - * 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; - bitField0_ |= 0x00000001; - 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; - bitField0_ |= 0x00000002; - 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(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - 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; - bitField0_ |= 0x00000004; - 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() { - bitField0_ = (bitField0_ & ~0x00000004); - enableIntraNodeVisibility_ = false; - onChanged(); - return this; - } - - private com.google.container.v1.DefaultSnatStatus defaultSnatStatus_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DefaultSnatStatus, - com.google.container.v1.DefaultSnatStatus.Builder, - com.google.container.v1.DefaultSnatStatusOrBuilder> - defaultSnatStatusBuilder_; - /** - * - * - *
-     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-     * will be disabled when default_snat_status is disabled. When disabled is set
-     * to false, default IP masquerade rules will be applied to the nodes to
-     * prevent sNAT on cluster internal traffic.
-     * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - * - * @return Whether the defaultSnatStatus field is set. - */ - public boolean hasDefaultSnatStatus() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-     * will be disabled when default_snat_status is disabled. When disabled is set
-     * to false, default IP masquerade rules will be applied to the nodes to
-     * prevent sNAT on cluster internal traffic.
-     * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - * - * @return The defaultSnatStatus. - */ - public com.google.container.v1.DefaultSnatStatus getDefaultSnatStatus() { - if (defaultSnatStatusBuilder_ == null) { - return defaultSnatStatus_ == null - ? com.google.container.v1.DefaultSnatStatus.getDefaultInstance() - : defaultSnatStatus_; - } else { - return defaultSnatStatusBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-     * will be disabled when default_snat_status is disabled. When disabled is set
-     * to false, default IP masquerade rules will be applied to the nodes to
-     * prevent sNAT on cluster internal traffic.
-     * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - */ - public Builder setDefaultSnatStatus(com.google.container.v1.DefaultSnatStatus value) { - if (defaultSnatStatusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - defaultSnatStatus_ = value; - } else { - defaultSnatStatusBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-     * will be disabled when default_snat_status is disabled. When disabled is set
-     * to false, default IP masquerade rules will be applied to the nodes to
-     * prevent sNAT on cluster internal traffic.
-     * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - */ - public Builder setDefaultSnatStatus( - com.google.container.v1.DefaultSnatStatus.Builder builderForValue) { - if (defaultSnatStatusBuilder_ == null) { - defaultSnatStatus_ = builderForValue.build(); - } else { - defaultSnatStatusBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-     * will be disabled when default_snat_status is disabled. When disabled is set
-     * to false, default IP masquerade rules will be applied to the nodes to
-     * prevent sNAT on cluster internal traffic.
-     * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - */ - public Builder mergeDefaultSnatStatus(com.google.container.v1.DefaultSnatStatus value) { - if (defaultSnatStatusBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && defaultSnatStatus_ != null - && defaultSnatStatus_ - != com.google.container.v1.DefaultSnatStatus.getDefaultInstance()) { - getDefaultSnatStatusBuilder().mergeFrom(value); - } else { - defaultSnatStatus_ = value; - } - } else { - defaultSnatStatusBuilder_.mergeFrom(value); - } - if (defaultSnatStatus_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-     * will be disabled when default_snat_status is disabled. When disabled is set
-     * to false, default IP masquerade rules will be applied to the nodes to
-     * prevent sNAT on cluster internal traffic.
-     * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - */ - public Builder clearDefaultSnatStatus() { - bitField0_ = (bitField0_ & ~0x00000008); - defaultSnatStatus_ = null; - if (defaultSnatStatusBuilder_ != null) { - defaultSnatStatusBuilder_.dispose(); - defaultSnatStatusBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-     * will be disabled when default_snat_status is disabled. When disabled is set
-     * to false, default IP masquerade rules will be applied to the nodes to
-     * prevent sNAT on cluster internal traffic.
-     * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - */ - public com.google.container.v1.DefaultSnatStatus.Builder getDefaultSnatStatusBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getDefaultSnatStatusFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-     * will be disabled when default_snat_status is disabled. When disabled is set
-     * to false, default IP masquerade rules will be applied to the nodes to
-     * prevent sNAT on cluster internal traffic.
-     * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - */ - public com.google.container.v1.DefaultSnatStatusOrBuilder getDefaultSnatStatusOrBuilder() { - if (defaultSnatStatusBuilder_ != null) { - return defaultSnatStatusBuilder_.getMessageOrBuilder(); - } else { - return defaultSnatStatus_ == null - ? com.google.container.v1.DefaultSnatStatus.getDefaultInstance() - : defaultSnatStatus_; - } - } - /** - * - * - *
-     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-     * will be disabled when default_snat_status is disabled. When disabled is set
-     * to false, default IP masquerade rules will be applied to the nodes to
-     * prevent sNAT on cluster internal traffic.
-     * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DefaultSnatStatus, - com.google.container.v1.DefaultSnatStatus.Builder, - com.google.container.v1.DefaultSnatStatusOrBuilder> - getDefaultSnatStatusFieldBuilder() { - if (defaultSnatStatusBuilder_ == null) { - defaultSnatStatusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DefaultSnatStatus, - com.google.container.v1.DefaultSnatStatus.Builder, - com.google.container.v1.DefaultSnatStatusOrBuilder>( - getDefaultSnatStatus(), getParentForChildren(), isClean()); - defaultSnatStatus_ = null; - } - return defaultSnatStatusBuilder_; - } - - private boolean enableL4IlbSubsetting_; - /** - * - * - *
-     * Whether L4ILB Subsetting is enabled for this cluster.
-     * 
- * - * bool enable_l4ilb_subsetting = 10; - * - * @return The enableL4ilbSubsetting. - */ - @java.lang.Override - public boolean getEnableL4IlbSubsetting() { - return enableL4IlbSubsetting_; - } - /** - * - * - *
-     * Whether L4ILB Subsetting is enabled for this cluster.
-     * 
- * - * bool enable_l4ilb_subsetting = 10; - * - * @param value The enableL4ilbSubsetting to set. - * @return This builder for chaining. - */ - public Builder setEnableL4IlbSubsetting(boolean value) { - - enableL4IlbSubsetting_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether L4ILB Subsetting is enabled for this cluster.
-     * 
- * - * bool enable_l4ilb_subsetting = 10; - * - * @return This builder for chaining. - */ - public Builder clearEnableL4IlbSubsetting() { - bitField0_ = (bitField0_ & ~0x00000010); - enableL4IlbSubsetting_ = false; - onChanged(); - return this; - } - - private int datapathProvider_ = 0; - /** - * - * - *
-     * The desired datapath provider for this cluster. By default, uses the
-     * IPTables-based kube-proxy implementation.
-     * 
- * - * .google.container.v1.DatapathProvider datapath_provider = 11; - * - * @return The enum numeric value on the wire for datapathProvider. - */ - @java.lang.Override - public int getDatapathProviderValue() { - return datapathProvider_; - } - /** - * - * - *
-     * The desired datapath provider for this cluster. By default, uses the
-     * IPTables-based kube-proxy implementation.
-     * 
- * - * .google.container.v1.DatapathProvider datapath_provider = 11; - * - * @param value The enum numeric value on the wire for datapathProvider to set. - * @return This builder for chaining. - */ - public Builder setDatapathProviderValue(int value) { - datapathProvider_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired datapath provider for this cluster. By default, uses the
-     * IPTables-based kube-proxy implementation.
-     * 
- * - * .google.container.v1.DatapathProvider datapath_provider = 11; - * - * @return The datapathProvider. - */ - @java.lang.Override - public com.google.container.v1.DatapathProvider getDatapathProvider() { - com.google.container.v1.DatapathProvider result = - com.google.container.v1.DatapathProvider.forNumber(datapathProvider_); - return result == null ? com.google.container.v1.DatapathProvider.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The desired datapath provider for this cluster. By default, uses the
-     * IPTables-based kube-proxy implementation.
-     * 
- * - * .google.container.v1.DatapathProvider datapath_provider = 11; - * - * @param value The datapathProvider to set. - * @return This builder for chaining. - */ - public Builder setDatapathProvider(com.google.container.v1.DatapathProvider value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - datapathProvider_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The desired datapath provider for this cluster. By default, uses the
-     * IPTables-based kube-proxy implementation.
-     * 
- * - * .google.container.v1.DatapathProvider datapath_provider = 11; - * - * @return This builder for chaining. - */ - public Builder clearDatapathProvider() { - bitField0_ = (bitField0_ & ~0x00000020); - datapathProvider_ = 0; - onChanged(); - return this; - } - - private int privateIpv6GoogleAccess_ = 0; - /** - * - * - *
-     * The desired state of IPv6 connectivity to Google Services.
-     * By default, no private IPv6 access to or from Google Services (all access
-     * will be via IPv4)
-     * 
- * - * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; - * - * @return The enum numeric value on the wire for privateIpv6GoogleAccess. - */ - @java.lang.Override - public int getPrivateIpv6GoogleAccessValue() { - return privateIpv6GoogleAccess_; - } - /** - * - * - *
-     * The desired state of IPv6 connectivity to Google Services.
-     * By default, no private IPv6 access to or from Google Services (all access
-     * will be via IPv4)
-     * 
- * - * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; - * - * @param value The enum numeric value on the wire for privateIpv6GoogleAccess to set. - * @return This builder for chaining. - */ - public Builder setPrivateIpv6GoogleAccessValue(int value) { - privateIpv6GoogleAccess_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired state of IPv6 connectivity to Google Services.
-     * By default, no private IPv6 access to or from Google Services (all access
-     * will be via IPv4)
-     * 
- * - * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; - * - * @return The privateIpv6GoogleAccess. - */ - @java.lang.Override - public com.google.container.v1.PrivateIPv6GoogleAccess getPrivateIpv6GoogleAccess() { - com.google.container.v1.PrivateIPv6GoogleAccess result = - com.google.container.v1.PrivateIPv6GoogleAccess.forNumber(privateIpv6GoogleAccess_); - return result == null ? com.google.container.v1.PrivateIPv6GoogleAccess.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The desired state of IPv6 connectivity to Google Services.
-     * By default, no private IPv6 access to or from Google Services (all access
-     * will be via IPv4)
-     * 
- * - * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; - * - * @param value The privateIpv6GoogleAccess to set. - * @return This builder for chaining. - */ - public Builder setPrivateIpv6GoogleAccess( - com.google.container.v1.PrivateIPv6GoogleAccess value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - privateIpv6GoogleAccess_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The desired state of IPv6 connectivity to Google Services.
-     * By default, no private IPv6 access to or from Google Services (all access
-     * will be via IPv4)
-     * 
- * - * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; - * - * @return This builder for chaining. - */ - public Builder clearPrivateIpv6GoogleAccess() { - bitField0_ = (bitField0_ & ~0x00000040); - privateIpv6GoogleAccess_ = 0; - onChanged(); - return this; - } - - private com.google.container.v1.DNSConfig dnsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DNSConfig, - com.google.container.v1.DNSConfig.Builder, - com.google.container.v1.DNSConfigOrBuilder> - dnsConfigBuilder_; - /** - * - * - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1.DNSConfig dns_config = 13; - * - * @return Whether the dnsConfig field is set. - */ - public boolean hasDnsConfig() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * - * - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1.DNSConfig dns_config = 13; - * - * @return The dnsConfig. - */ - public com.google.container.v1.DNSConfig getDnsConfig() { - if (dnsConfigBuilder_ == null) { - return dnsConfig_ == null - ? com.google.container.v1.DNSConfig.getDefaultInstance() - : dnsConfig_; - } else { - return dnsConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1.DNSConfig dns_config = 13; - */ - public Builder setDnsConfig(com.google.container.v1.DNSConfig value) { - if (dnsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dnsConfig_ = value; - } else { - dnsConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1.DNSConfig dns_config = 13; - */ - public Builder setDnsConfig(com.google.container.v1.DNSConfig.Builder builderForValue) { - if (dnsConfigBuilder_ == null) { - dnsConfig_ = builderForValue.build(); - } else { - dnsConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1.DNSConfig dns_config = 13; - */ - public Builder mergeDnsConfig(com.google.container.v1.DNSConfig value) { - if (dnsConfigBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && dnsConfig_ != null - && dnsConfig_ != com.google.container.v1.DNSConfig.getDefaultInstance()) { - getDnsConfigBuilder().mergeFrom(value); - } else { - dnsConfig_ = value; - } - } else { - dnsConfigBuilder_.mergeFrom(value); - } - if (dnsConfig_ != null) { - bitField0_ |= 0x00000080; - onChanged(); - } - return this; - } - /** - * - * - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1.DNSConfig dns_config = 13; - */ - public Builder clearDnsConfig() { - bitField0_ = (bitField0_ & ~0x00000080); - dnsConfig_ = null; - if (dnsConfigBuilder_ != null) { - dnsConfigBuilder_.dispose(); - dnsConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1.DNSConfig dns_config = 13; - */ - public com.google.container.v1.DNSConfig.Builder getDnsConfigBuilder() { - bitField0_ |= 0x00000080; - onChanged(); - return getDnsConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1.DNSConfig dns_config = 13; - */ - public com.google.container.v1.DNSConfigOrBuilder getDnsConfigOrBuilder() { - if (dnsConfigBuilder_ != null) { - return dnsConfigBuilder_.getMessageOrBuilder(); - } else { - return dnsConfig_ == null - ? com.google.container.v1.DNSConfig.getDefaultInstance() - : dnsConfig_; - } - } - /** - * - * - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1.DNSConfig dns_config = 13; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DNSConfig, - com.google.container.v1.DNSConfig.Builder, - com.google.container.v1.DNSConfigOrBuilder> - getDnsConfigFieldBuilder() { - if (dnsConfigBuilder_ == null) { - dnsConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DNSConfig, - com.google.container.v1.DNSConfig.Builder, - com.google.container.v1.DNSConfigOrBuilder>( - getDnsConfig(), getParentForChildren(), isClean()); - dnsConfig_ = null; - } - return dnsConfigBuilder_; - } - - private com.google.container.v1.ServiceExternalIPsConfig serviceExternalIpsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ServiceExternalIPsConfig, - com.google.container.v1.ServiceExternalIPsConfig.Builder, - com.google.container.v1.ServiceExternalIPsConfigOrBuilder> - serviceExternalIpsConfigBuilder_; - /** - * - * - *
-     * ServiceExternalIPsConfig specifies if services with externalIPs field are
-     * blocked or not.
-     * 
- * - * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; - * - * @return Whether the serviceExternalIpsConfig field is set. - */ - public boolean hasServiceExternalIpsConfig() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * - * - *
-     * ServiceExternalIPsConfig specifies if services with externalIPs field are
-     * blocked or not.
-     * 
- * - * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; - * - * @return The serviceExternalIpsConfig. - */ - public com.google.container.v1.ServiceExternalIPsConfig getServiceExternalIpsConfig() { - if (serviceExternalIpsConfigBuilder_ == null) { - return serviceExternalIpsConfig_ == null - ? com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance() - : serviceExternalIpsConfig_; - } else { - return serviceExternalIpsConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * ServiceExternalIPsConfig specifies if services with externalIPs field are
-     * blocked or not.
-     * 
- * - * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; - */ - public Builder setServiceExternalIpsConfig( - com.google.container.v1.ServiceExternalIPsConfig value) { - if (serviceExternalIpsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - serviceExternalIpsConfig_ = value; - } else { - serviceExternalIpsConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * - * - *
-     * ServiceExternalIPsConfig specifies if services with externalIPs field are
-     * blocked or not.
-     * 
- * - * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; - */ - public Builder setServiceExternalIpsConfig( - com.google.container.v1.ServiceExternalIPsConfig.Builder builderForValue) { - if (serviceExternalIpsConfigBuilder_ == null) { - serviceExternalIpsConfig_ = builderForValue.build(); - } else { - serviceExternalIpsConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * - * - *
-     * ServiceExternalIPsConfig specifies if services with externalIPs field are
-     * blocked or not.
-     * 
- * - * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; - */ - public Builder mergeServiceExternalIpsConfig( - com.google.container.v1.ServiceExternalIPsConfig value) { - if (serviceExternalIpsConfigBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && serviceExternalIpsConfig_ != null - && serviceExternalIpsConfig_ - != com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance()) { - getServiceExternalIpsConfigBuilder().mergeFrom(value); - } else { - serviceExternalIpsConfig_ = value; - } - } else { - serviceExternalIpsConfigBuilder_.mergeFrom(value); - } - if (serviceExternalIpsConfig_ != null) { - bitField0_ |= 0x00000100; - onChanged(); - } - return this; - } - /** - * - * - *
-     * ServiceExternalIPsConfig specifies if services with externalIPs field are
-     * blocked or not.
-     * 
- * - * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; - */ - public Builder clearServiceExternalIpsConfig() { - bitField0_ = (bitField0_ & ~0x00000100); - serviceExternalIpsConfig_ = null; - if (serviceExternalIpsConfigBuilder_ != null) { - serviceExternalIpsConfigBuilder_.dispose(); - serviceExternalIpsConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * ServiceExternalIPsConfig specifies if services with externalIPs field are
-     * blocked or not.
-     * 
- * - * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; - */ - public com.google.container.v1.ServiceExternalIPsConfig.Builder - getServiceExternalIpsConfigBuilder() { - bitField0_ |= 0x00000100; - onChanged(); - return getServiceExternalIpsConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * ServiceExternalIPsConfig specifies if services with externalIPs field are
-     * blocked or not.
-     * 
- * - * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; - */ - public com.google.container.v1.ServiceExternalIPsConfigOrBuilder - getServiceExternalIpsConfigOrBuilder() { - if (serviceExternalIpsConfigBuilder_ != null) { - return serviceExternalIpsConfigBuilder_.getMessageOrBuilder(); - } else { - return serviceExternalIpsConfig_ == null - ? com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance() - : serviceExternalIpsConfig_; - } - } - /** - * - * - *
-     * ServiceExternalIPsConfig specifies if services with externalIPs field are
-     * blocked or not.
-     * 
- * - * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ServiceExternalIPsConfig, - com.google.container.v1.ServiceExternalIPsConfig.Builder, - com.google.container.v1.ServiceExternalIPsConfigOrBuilder> - getServiceExternalIpsConfigFieldBuilder() { - if (serviceExternalIpsConfigBuilder_ == null) { - serviceExternalIpsConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ServiceExternalIPsConfig, - com.google.container.v1.ServiceExternalIPsConfig.Builder, - com.google.container.v1.ServiceExternalIPsConfigOrBuilder>( - getServiceExternalIpsConfig(), getParentForChildren(), isClean()); - serviceExternalIpsConfig_ = null; - } - return serviceExternalIpsConfigBuilder_; - } - - private com.google.container.v1.GatewayAPIConfig gatewayApiConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GatewayAPIConfig, - com.google.container.v1.GatewayAPIConfig.Builder, - com.google.container.v1.GatewayAPIConfigOrBuilder> - gatewayApiConfigBuilder_; - /** - * - * - *
-     * GatewayAPIConfig contains the desired config of Gateway API on this
-     * cluster.
-     * 
- * - * .google.container.v1.GatewayAPIConfig gateway_api_config = 16; - * - * @return Whether the gatewayApiConfig field is set. - */ - public boolean hasGatewayApiConfig() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * - * - *
-     * GatewayAPIConfig contains the desired config of Gateway API on this
-     * cluster.
-     * 
- * - * .google.container.v1.GatewayAPIConfig gateway_api_config = 16; - * - * @return The gatewayApiConfig. - */ - public com.google.container.v1.GatewayAPIConfig getGatewayApiConfig() { - if (gatewayApiConfigBuilder_ == null) { - return gatewayApiConfig_ == null - ? com.google.container.v1.GatewayAPIConfig.getDefaultInstance() - : gatewayApiConfig_; - } else { - return gatewayApiConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * GatewayAPIConfig contains the desired config of Gateway API on this
-     * cluster.
-     * 
- * - * .google.container.v1.GatewayAPIConfig gateway_api_config = 16; - */ - public Builder setGatewayApiConfig(com.google.container.v1.GatewayAPIConfig value) { - if (gatewayApiConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gatewayApiConfig_ = value; - } else { - gatewayApiConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * - * - *
-     * GatewayAPIConfig contains the desired config of Gateway API on this
-     * cluster.
-     * 
- * - * .google.container.v1.GatewayAPIConfig gateway_api_config = 16; - */ - public Builder setGatewayApiConfig( - com.google.container.v1.GatewayAPIConfig.Builder builderForValue) { - if (gatewayApiConfigBuilder_ == null) { - gatewayApiConfig_ = builderForValue.build(); - } else { - gatewayApiConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * - * - *
-     * GatewayAPIConfig contains the desired config of Gateway API on this
-     * cluster.
-     * 
- * - * .google.container.v1.GatewayAPIConfig gateway_api_config = 16; - */ - public Builder mergeGatewayApiConfig(com.google.container.v1.GatewayAPIConfig value) { - if (gatewayApiConfigBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && gatewayApiConfig_ != null - && gatewayApiConfig_ != com.google.container.v1.GatewayAPIConfig.getDefaultInstance()) { - getGatewayApiConfigBuilder().mergeFrom(value); - } else { - gatewayApiConfig_ = value; - } - } else { - gatewayApiConfigBuilder_.mergeFrom(value); - } - if (gatewayApiConfig_ != null) { - bitField0_ |= 0x00000200; - onChanged(); - } - return this; - } - /** - * - * - *
-     * GatewayAPIConfig contains the desired config of Gateway API on this
-     * cluster.
-     * 
- * - * .google.container.v1.GatewayAPIConfig gateway_api_config = 16; - */ - public Builder clearGatewayApiConfig() { - bitField0_ = (bitField0_ & ~0x00000200); - gatewayApiConfig_ = null; - if (gatewayApiConfigBuilder_ != null) { - gatewayApiConfigBuilder_.dispose(); - gatewayApiConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * GatewayAPIConfig contains the desired config of Gateway API on this
-     * cluster.
-     * 
- * - * .google.container.v1.GatewayAPIConfig gateway_api_config = 16; - */ - public com.google.container.v1.GatewayAPIConfig.Builder getGatewayApiConfigBuilder() { - bitField0_ |= 0x00000200; - onChanged(); - return getGatewayApiConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * GatewayAPIConfig contains the desired config of Gateway API on this
-     * cluster.
-     * 
- * - * .google.container.v1.GatewayAPIConfig gateway_api_config = 16; - */ - public com.google.container.v1.GatewayAPIConfigOrBuilder getGatewayApiConfigOrBuilder() { - if (gatewayApiConfigBuilder_ != null) { - return gatewayApiConfigBuilder_.getMessageOrBuilder(); - } else { - return gatewayApiConfig_ == null - ? com.google.container.v1.GatewayAPIConfig.getDefaultInstance() - : gatewayApiConfig_; - } - } - /** - * - * - *
-     * GatewayAPIConfig contains the desired config of Gateway API on this
-     * cluster.
-     * 
- * - * .google.container.v1.GatewayAPIConfig gateway_api_config = 16; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GatewayAPIConfig, - com.google.container.v1.GatewayAPIConfig.Builder, - com.google.container.v1.GatewayAPIConfigOrBuilder> - getGatewayApiConfigFieldBuilder() { - if (gatewayApiConfigBuilder_ == null) { - gatewayApiConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GatewayAPIConfig, - com.google.container.v1.GatewayAPIConfig.Builder, - com.google.container.v1.GatewayAPIConfigOrBuilder>( - getGatewayApiConfig(), getParentForChildren(), isClean()); - gatewayApiConfig_ = null; - } - return gatewayApiConfigBuilder_; - } - - private boolean enableMultiNetworking_; - /** - * - * - *
-     * Whether multi-networking is enabled for this cluster.
-     * 
- * - * bool enable_multi_networking = 17; - * - * @return The enableMultiNetworking. - */ - @java.lang.Override - public boolean getEnableMultiNetworking() { - return enableMultiNetworking_; - } - /** - * - * - *
-     * Whether multi-networking is enabled for this cluster.
-     * 
- * - * bool enable_multi_networking = 17; - * - * @param value The enableMultiNetworking to set. - * @return This builder for chaining. - */ - public Builder setEnableMultiNetworking(boolean value) { - - enableMultiNetworking_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether multi-networking is enabled for this cluster.
-     * 
- * - * bool enable_multi_networking = 17; - * - * @return This builder for chaining. - */ - public Builder clearEnableMultiNetworking() { - bitField0_ = (bitField0_ & ~0x00000400); - enableMultiNetworking_ = false; - onChanged(); - return this; - } - - private com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig - networkPerformanceConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig, - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder, - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder> - networkPerformanceConfigBuilder_; - /** - * - * - *
-     * Network bandwidth tier configuration.
-     * 
- * - * - * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; - * - * - * @return Whether the networkPerformanceConfig field is set. - */ - public boolean hasNetworkPerformanceConfig() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - * - * - *
-     * Network bandwidth tier configuration.
-     * 
- * - * - * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; - * - * - * @return The networkPerformanceConfig. - */ - public com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig - getNetworkPerformanceConfig() { - if (networkPerformanceConfigBuilder_ == null) { - return networkPerformanceConfig_ == null - ? com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig - .getDefaultInstance() - : networkPerformanceConfig_; - } else { - return networkPerformanceConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Network bandwidth tier configuration.
-     * 
- * - * - * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; - * - */ - public Builder setNetworkPerformanceConfig( - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig value) { - if (networkPerformanceConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - networkPerformanceConfig_ = value; - } else { - networkPerformanceConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - * - * - *
-     * Network bandwidth tier configuration.
-     * 
- * - * - * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; - * - */ - public Builder setNetworkPerformanceConfig( - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder - builderForValue) { - if (networkPerformanceConfigBuilder_ == null) { - networkPerformanceConfig_ = builderForValue.build(); - } else { - networkPerformanceConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - * - * - *
-     * Network bandwidth tier configuration.
-     * 
- * - * - * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; - * - */ - public Builder mergeNetworkPerformanceConfig( - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig value) { - if (networkPerformanceConfigBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) - && networkPerformanceConfig_ != null - && networkPerformanceConfig_ - != com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig - .getDefaultInstance()) { - getNetworkPerformanceConfigBuilder().mergeFrom(value); - } else { - networkPerformanceConfig_ = value; - } - } else { - networkPerformanceConfigBuilder_.mergeFrom(value); - } - if (networkPerformanceConfig_ != null) { - bitField0_ |= 0x00000800; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Network bandwidth tier configuration.
-     * 
- * - * - * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; - * - */ - public Builder clearNetworkPerformanceConfig() { - bitField0_ = (bitField0_ & ~0x00000800); - networkPerformanceConfig_ = null; - if (networkPerformanceConfigBuilder_ != null) { - networkPerformanceConfigBuilder_.dispose(); - networkPerformanceConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Network bandwidth tier configuration.
-     * 
- * - * - * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; - * - */ - public com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder - getNetworkPerformanceConfigBuilder() { - bitField0_ |= 0x00000800; - onChanged(); - return getNetworkPerformanceConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Network bandwidth tier configuration.
-     * 
- * - * - * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; - * - */ - public com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder - getNetworkPerformanceConfigOrBuilder() { - if (networkPerformanceConfigBuilder_ != null) { - return networkPerformanceConfigBuilder_.getMessageOrBuilder(); - } else { - return networkPerformanceConfig_ == null - ? com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig - .getDefaultInstance() - : networkPerformanceConfig_; - } - } - /** - * - * - *
-     * Network bandwidth tier configuration.
-     * 
- * - * - * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig, - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder, - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder> - getNetworkPerformanceConfigFieldBuilder() { - if (networkPerformanceConfigBuilder_ == null) { - networkPerformanceConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig, - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder, - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder>( - getNetworkPerformanceConfig(), getParentForChildren(), isClean()); - networkPerformanceConfig_ = null; - } - return networkPerformanceConfigBuilder_; - } - - private boolean enableFqdnNetworkPolicy_; - /** - * - * - *
-     * Whether FQDN Network Policy is enabled on this cluster.
-     * 
- * - * optional bool enable_fqdn_network_policy = 19; - * - * @return Whether the enableFqdnNetworkPolicy field is set. - */ - @java.lang.Override - public boolean hasEnableFqdnNetworkPolicy() { - return ((bitField0_ & 0x00001000) != 0); - } - /** - * - * - *
-     * Whether FQDN Network Policy is enabled on this cluster.
-     * 
- * - * optional bool enable_fqdn_network_policy = 19; - * - * @return The enableFqdnNetworkPolicy. - */ - @java.lang.Override - public boolean getEnableFqdnNetworkPolicy() { - return enableFqdnNetworkPolicy_; - } - /** - * - * - *
-     * Whether FQDN Network Policy is enabled on this cluster.
-     * 
- * - * optional bool enable_fqdn_network_policy = 19; - * - * @param value The enableFqdnNetworkPolicy to set. - * @return This builder for chaining. - */ - public Builder setEnableFqdnNetworkPolicy(boolean value) { - - enableFqdnNetworkPolicy_ = value; - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether FQDN Network Policy is enabled on this cluster.
-     * 
- * - * optional bool enable_fqdn_network_policy = 19; - * - * @return This builder for chaining. - */ - public Builder clearEnableFqdnNetworkPolicy() { - bitField0_ = (bitField0_ & ~0x00001000); - enableFqdnNetworkPolicy_ = false; - onChanged(); - return this; - } - - private int inTransitEncryptionConfig_ = 0; - /** - * - * - *
-     * Specify the details of in-transit encryption.
-     * 
- * - * - * optional .google.container.v1.InTransitEncryptionConfig in_transit_encryption_config = 20; - * - * - * @return Whether the inTransitEncryptionConfig field is set. - */ - @java.lang.Override - public boolean hasInTransitEncryptionConfig() { - return ((bitField0_ & 0x00002000) != 0); - } - /** - * - * - *
-     * Specify the details of in-transit encryption.
-     * 
- * - * - * optional .google.container.v1.InTransitEncryptionConfig in_transit_encryption_config = 20; - * - * - * @return The enum numeric value on the wire for inTransitEncryptionConfig. - */ - @java.lang.Override - public int getInTransitEncryptionConfigValue() { - return inTransitEncryptionConfig_; - } - /** - * - * - *
-     * Specify the details of in-transit encryption.
-     * 
- * - * - * optional .google.container.v1.InTransitEncryptionConfig in_transit_encryption_config = 20; - * - * - * @param value The enum numeric value on the wire for inTransitEncryptionConfig to set. - * @return This builder for chaining. - */ - public Builder setInTransitEncryptionConfigValue(int value) { - inTransitEncryptionConfig_ = value; - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - * - * - *
-     * Specify the details of in-transit encryption.
-     * 
- * - * - * optional .google.container.v1.InTransitEncryptionConfig in_transit_encryption_config = 20; - * - * - * @return The inTransitEncryptionConfig. - */ - @java.lang.Override - public com.google.container.v1.InTransitEncryptionConfig getInTransitEncryptionConfig() { - com.google.container.v1.InTransitEncryptionConfig result = - com.google.container.v1.InTransitEncryptionConfig.forNumber(inTransitEncryptionConfig_); - return result == null - ? com.google.container.v1.InTransitEncryptionConfig.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Specify the details of in-transit encryption.
-     * 
- * - * - * optional .google.container.v1.InTransitEncryptionConfig in_transit_encryption_config = 20; - * - * - * @param value The inTransitEncryptionConfig to set. - * @return This builder for chaining. - */ - public Builder setInTransitEncryptionConfig( - com.google.container.v1.InTransitEncryptionConfig value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00002000; - inTransitEncryptionConfig_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Specify the details of in-transit encryption.
-     * 
- * - * - * optional .google.container.v1.InTransitEncryptionConfig in_transit_encryption_config = 20; - * - * - * @return This builder for chaining. - */ - public Builder clearInTransitEncryptionConfig() { - bitField0_ = (bitField0_ & ~0x00002000); - inTransitEncryptionConfig_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.NetworkConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.NetworkConfig) - private static final com.google.container.v1.NetworkConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.NetworkConfig(); - } - - public static com.google.container.v1.NetworkConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NetworkConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.NetworkConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java deleted file mode 100644 index 72a2515a2507..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java +++ /dev/null @@ -1,450 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface NetworkConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.NetworkConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The relative name of the Google Compute Engine
-   * [network][google.container.v1.NetworkConfig.network](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.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-   * to which the cluster is connected. Example:
-   * projects/my-project/global/networks/my-network
-   * 
- * - * string network = 1; - * - * @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.v1.DefaultSnatStatus default_snat_status = 7; - * - * @return Whether the defaultSnatStatus field is set. - */ - boolean hasDefaultSnatStatus(); - /** - * - * - *
-   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-   * will be disabled when default_snat_status is disabled. When disabled is set
-   * to false, default IP masquerade rules will be applied to the nodes to
-   * prevent sNAT on cluster internal traffic.
-   * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - * - * @return The defaultSnatStatus. - */ - com.google.container.v1.DefaultSnatStatus getDefaultSnatStatus(); - /** - * - * - *
-   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-   * will be disabled when default_snat_status is disabled. When disabled is set
-   * to false, default IP masquerade rules will be applied to the nodes to
-   * prevent sNAT on cluster internal traffic.
-   * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - */ - com.google.container.v1.DefaultSnatStatusOrBuilder getDefaultSnatStatusOrBuilder(); - - /** - * - * - *
-   * Whether L4ILB Subsetting is enabled for this cluster.
-   * 
- * - * bool enable_l4ilb_subsetting = 10; - * - * @return The enableL4ilbSubsetting. - */ - boolean getEnableL4IlbSubsetting(); - - /** - * - * - *
-   * The desired datapath provider for this cluster. By default, uses the
-   * IPTables-based kube-proxy implementation.
-   * 
- * - * .google.container.v1.DatapathProvider datapath_provider = 11; - * - * @return The enum numeric value on the wire for datapathProvider. - */ - int getDatapathProviderValue(); - /** - * - * - *
-   * The desired datapath provider for this cluster. By default, uses the
-   * IPTables-based kube-proxy implementation.
-   * 
- * - * .google.container.v1.DatapathProvider datapath_provider = 11; - * - * @return The datapathProvider. - */ - com.google.container.v1.DatapathProvider getDatapathProvider(); - - /** - * - * - *
-   * The desired state of IPv6 connectivity to Google Services.
-   * By default, no private IPv6 access to or from Google Services (all access
-   * will be via IPv4)
-   * 
- * - * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; - * - * @return The enum numeric value on the wire for privateIpv6GoogleAccess. - */ - int getPrivateIpv6GoogleAccessValue(); - /** - * - * - *
-   * The desired state of IPv6 connectivity to Google Services.
-   * By default, no private IPv6 access to or from Google Services (all access
-   * will be via IPv4)
-   * 
- * - * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; - * - * @return The privateIpv6GoogleAccess. - */ - com.google.container.v1.PrivateIPv6GoogleAccess getPrivateIpv6GoogleAccess(); - - /** - * - * - *
-   * DNSConfig contains clusterDNS config for this cluster.
-   * 
- * - * .google.container.v1.DNSConfig dns_config = 13; - * - * @return Whether the dnsConfig field is set. - */ - boolean hasDnsConfig(); - /** - * - * - *
-   * DNSConfig contains clusterDNS config for this cluster.
-   * 
- * - * .google.container.v1.DNSConfig dns_config = 13; - * - * @return The dnsConfig. - */ - com.google.container.v1.DNSConfig getDnsConfig(); - /** - * - * - *
-   * DNSConfig contains clusterDNS config for this cluster.
-   * 
- * - * .google.container.v1.DNSConfig dns_config = 13; - */ - com.google.container.v1.DNSConfigOrBuilder getDnsConfigOrBuilder(); - - /** - * - * - *
-   * ServiceExternalIPsConfig specifies if services with externalIPs field are
-   * blocked or not.
-   * 
- * - * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; - * - * @return Whether the serviceExternalIpsConfig field is set. - */ - boolean hasServiceExternalIpsConfig(); - /** - * - * - *
-   * ServiceExternalIPsConfig specifies if services with externalIPs field are
-   * blocked or not.
-   * 
- * - * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; - * - * @return The serviceExternalIpsConfig. - */ - com.google.container.v1.ServiceExternalIPsConfig getServiceExternalIpsConfig(); - /** - * - * - *
-   * ServiceExternalIPsConfig specifies if services with externalIPs field are
-   * blocked or not.
-   * 
- * - * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; - */ - com.google.container.v1.ServiceExternalIPsConfigOrBuilder getServiceExternalIpsConfigOrBuilder(); - - /** - * - * - *
-   * GatewayAPIConfig contains the desired config of Gateway API on this
-   * cluster.
-   * 
- * - * .google.container.v1.GatewayAPIConfig gateway_api_config = 16; - * - * @return Whether the gatewayApiConfig field is set. - */ - boolean hasGatewayApiConfig(); - /** - * - * - *
-   * GatewayAPIConfig contains the desired config of Gateway API on this
-   * cluster.
-   * 
- * - * .google.container.v1.GatewayAPIConfig gateway_api_config = 16; - * - * @return The gatewayApiConfig. - */ - com.google.container.v1.GatewayAPIConfig getGatewayApiConfig(); - /** - * - * - *
-   * GatewayAPIConfig contains the desired config of Gateway API on this
-   * cluster.
-   * 
- * - * .google.container.v1.GatewayAPIConfig gateway_api_config = 16; - */ - com.google.container.v1.GatewayAPIConfigOrBuilder getGatewayApiConfigOrBuilder(); - - /** - * - * - *
-   * Whether multi-networking is enabled for this cluster.
-   * 
- * - * bool enable_multi_networking = 17; - * - * @return The enableMultiNetworking. - */ - boolean getEnableMultiNetworking(); - - /** - * - * - *
-   * Network bandwidth tier configuration.
-   * 
- * - * - * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; - * - * - * @return Whether the networkPerformanceConfig field is set. - */ - boolean hasNetworkPerformanceConfig(); - /** - * - * - *
-   * Network bandwidth tier configuration.
-   * 
- * - * - * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; - * - * - * @return The networkPerformanceConfig. - */ - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig - getNetworkPerformanceConfig(); - /** - * - * - *
-   * Network bandwidth tier configuration.
-   * 
- * - * - * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; - * - */ - com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder - getNetworkPerformanceConfigOrBuilder(); - - /** - * - * - *
-   * Whether FQDN Network Policy is enabled on this cluster.
-   * 
- * - * optional bool enable_fqdn_network_policy = 19; - * - * @return Whether the enableFqdnNetworkPolicy field is set. - */ - boolean hasEnableFqdnNetworkPolicy(); - /** - * - * - *
-   * Whether FQDN Network Policy is enabled on this cluster.
-   * 
- * - * optional bool enable_fqdn_network_policy = 19; - * - * @return The enableFqdnNetworkPolicy. - */ - boolean getEnableFqdnNetworkPolicy(); - - /** - * - * - *
-   * Specify the details of in-transit encryption.
-   * 
- * - * - * optional .google.container.v1.InTransitEncryptionConfig in_transit_encryption_config = 20; - * - * - * @return Whether the inTransitEncryptionConfig field is set. - */ - boolean hasInTransitEncryptionConfig(); - /** - * - * - *
-   * Specify the details of in-transit encryption.
-   * 
- * - * - * optional .google.container.v1.InTransitEncryptionConfig in_transit_encryption_config = 20; - * - * - * @return The enum numeric value on the wire for inTransitEncryptionConfig. - */ - int getInTransitEncryptionConfigValue(); - /** - * - * - *
-   * Specify the details of in-transit encryption.
-   * 
- * - * - * optional .google.container.v1.InTransitEncryptionConfig in_transit_encryption_config = 20; - * - * - * @return The inTransitEncryptionConfig. - */ - com.google.container.v1.InTransitEncryptionConfig getInTransitEncryptionConfig(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicy.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicy.java deleted file mode 100644 index 087aa4a1abc5..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicy.java +++ /dev/null @@ -1,820 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Configuration options for the NetworkPolicy feature.
- * https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
- * 
- * - * Protobuf type {@code google.container.v1.NetworkPolicy} - */ -public final class NetworkPolicy extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NetworkPolicy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NetworkPolicy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NetworkPolicy.class, - com.google.container.v1.NetworkPolicy.Builder.class); - } - - /** - * - * - *
-   * Allowed Network Policy providers.
-   * 
- * - * Protobuf enum {@code google.container.v1.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.v1.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.v1.NetworkPolicy.Provider) - } - - public static final int PROVIDER_FIELD_NUMBER = 1; - private int provider_ = 0; - /** - * - * - *
-   * The selected network policy provider.
-   * 
- * - * .google.container.v1.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.v1.NetworkPolicy.Provider provider = 1; - * - * @return The provider. - */ - @java.lang.Override - public com.google.container.v1.NetworkPolicy.Provider getProvider() { - com.google.container.v1.NetworkPolicy.Provider result = - com.google.container.v1.NetworkPolicy.Provider.forNumber(provider_); - return result == null ? com.google.container.v1.NetworkPolicy.Provider.UNRECOGNIZED : result; - } - - public static final int ENABLED_FIELD_NUMBER = 2; - private boolean enabled_ = false; - /** - * - * - *
-   * 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.v1.NetworkPolicy.Provider.PROVIDER_UNSPECIFIED.getNumber()) { - output.writeEnum(1, provider_); - } - if (enabled_ != false) { - output.writeBool(2, enabled_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (provider_ - != com.google.container.v1.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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.NetworkPolicy)) { - return super.equals(obj); - } - com.google.container.v1.NetworkPolicy other = (com.google.container.v1.NetworkPolicy) obj; - - if (provider_ != other.provider_) return false; - if (getEnabled() != other.getEnabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.NetworkPolicy parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.NetworkPolicy parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.NetworkPolicy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NetworkPolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NetworkPolicy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.NetworkPolicy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.NetworkPolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.NetworkPolicy} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.NetworkPolicy) - com.google.container.v1.NetworkPolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NetworkPolicy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NetworkPolicy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NetworkPolicy.class, - com.google.container.v1.NetworkPolicy.Builder.class); - } - - // Construct using com.google.container.v1.NetworkPolicy.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - provider_ = 0; - enabled_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NetworkPolicy_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NetworkPolicy getDefaultInstanceForType() { - return com.google.container.v1.NetworkPolicy.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NetworkPolicy build() { - com.google.container.v1.NetworkPolicy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NetworkPolicy buildPartial() { - com.google.container.v1.NetworkPolicy result = - new com.google.container.v1.NetworkPolicy(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.NetworkPolicy result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.provider_ = provider_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.enabled_ = enabled_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NetworkPolicy) { - return mergeFrom((com.google.container.v1.NetworkPolicy) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NetworkPolicy other) { - if (other == com.google.container.v1.NetworkPolicy.getDefaultInstance()) return this; - if (other.provider_ != 0) { - setProviderValue(other.getProviderValue()); - } - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - provider_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int provider_ = 0; - /** - * - * - *
-     * The selected network policy provider.
-     * 
- * - * .google.container.v1.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.v1.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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The selected network policy provider.
-     * 
- * - * .google.container.v1.NetworkPolicy.Provider provider = 1; - * - * @return The provider. - */ - @java.lang.Override - public com.google.container.v1.NetworkPolicy.Provider getProvider() { - com.google.container.v1.NetworkPolicy.Provider result = - com.google.container.v1.NetworkPolicy.Provider.forNumber(provider_); - return result == null ? com.google.container.v1.NetworkPolicy.Provider.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The selected network policy provider.
-     * 
- * - * .google.container.v1.NetworkPolicy.Provider provider = 1; - * - * @param value The provider to set. - * @return This builder for chaining. - */ - public Builder setProvider(com.google.container.v1.NetworkPolicy.Provider value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - provider_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The selected network policy provider.
-     * 
- * - * .google.container.v1.NetworkPolicy.Provider provider = 1; - * - * @return This builder for chaining. - */ - public Builder clearProvider() { - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether network policy is enabled on the cluster.
-     * 
- * - * bool enabled = 2; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000002); - enabled_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.NetworkPolicy) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.NetworkPolicy) - private static final com.google.container.v1.NetworkPolicy DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.NetworkPolicy(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.NetworkPolicy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyConfig.java deleted file mode 100644 index 63e5d1d3528f..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyConfig.java +++ /dev/null @@ -1,538 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * 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.v1.NetworkPolicyConfig} - */ -public final class NetworkPolicyConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NetworkPolicyConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NetworkPolicyConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NetworkPolicyConfig.class, - com.google.container.v1.NetworkPolicyConfig.Builder.class); - } - - public static final int DISABLED_FIELD_NUMBER = 1; - private boolean disabled_ = false; - /** - * - * - *
-   * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.NetworkPolicyConfig)) { - return super.equals(obj); - } - com.google.container.v1.NetworkPolicyConfig other = - (com.google.container.v1.NetworkPolicyConfig) obj; - - if (getDisabled() != other.getDisabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.NetworkPolicyConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.NetworkPolicyConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.NetworkPolicyConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NetworkPolicyConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NetworkPolicyConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.NetworkPolicyConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.NetworkPolicyConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.NetworkPolicyConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.NetworkPolicyConfig) - com.google.container.v1.NetworkPolicyConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NetworkPolicyConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NetworkPolicyConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NetworkPolicyConfig.class, - com.google.container.v1.NetworkPolicyConfig.Builder.class); - } - - // Construct using com.google.container.v1.NetworkPolicyConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - disabled_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NetworkPolicyConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NetworkPolicyConfig getDefaultInstanceForType() { - return com.google.container.v1.NetworkPolicyConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NetworkPolicyConfig build() { - com.google.container.v1.NetworkPolicyConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NetworkPolicyConfig buildPartial() { - com.google.container.v1.NetworkPolicyConfig result = - new com.google.container.v1.NetworkPolicyConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.NetworkPolicyConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.disabled_ = disabled_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NetworkPolicyConfig) { - return mergeFrom((com.google.container.v1.NetworkPolicyConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NetworkPolicyConfig other) { - if (other == com.google.container.v1.NetworkPolicyConfig.getDefaultInstance()) return this; - if (other.getDisabled() != false) { - setDisabled(other.getDisabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - disabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether NetworkPolicy is enabled for this cluster.
-     * 
- * - * bool disabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearDisabled() { - bitField0_ = (bitField0_ & ~0x00000001); - disabled_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.NetworkPolicyConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.NetworkPolicyConfig) - private static final com.google.container.v1.NetworkPolicyConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.NetworkPolicyConfig(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.NetworkPolicyConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyConfigOrBuilder.java deleted file mode 100644 index a29b04f5408e..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyConfigOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface NetworkPolicyConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.NetworkPolicyConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether NetworkPolicy is enabled for this cluster.
-   * 
- * - * bool disabled = 1; - * - * @return The disabled. - */ - boolean getDisabled(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyOrBuilder.java deleted file mode 100644 index 4cc2373ca524..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyOrBuilder.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface NetworkPolicyOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.NetworkPolicy) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The selected network policy provider.
-   * 
- * - * .google.container.v1.NetworkPolicy.Provider provider = 1; - * - * @return The enum numeric value on the wire for provider. - */ - int getProviderValue(); - /** - * - * - *
-   * The selected network policy provider.
-   * 
- * - * .google.container.v1.NetworkPolicy.Provider provider = 1; - * - * @return The provider. - */ - com.google.container.v1.NetworkPolicy.Provider getProvider(); - - /** - * - * - *
-   * Whether network policy is enabled on the cluster.
-   * 
- * - * bool enabled = 2; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkTags.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkTags.java deleted file mode 100644 index cc38bda78c3c..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkTags.java +++ /dev/null @@ -1,718 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Collection of Compute Engine network tags that can be applied to a node's
- * underlying VM instance.
- * 
- * - * Protobuf type {@code google.container.v1.NetworkTags} - */ -public final class NetworkTags extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.NetworkTags) - NetworkTagsOrBuilder { - private static final long serialVersionUID = 0L; - // Use NetworkTags.newBuilder() to construct. - private NetworkTags(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NetworkTags() { - tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NetworkTags(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NetworkTags_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NetworkTags_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NetworkTags.class, - com.google.container.v1.NetworkTags.Builder.class); - } - - public static final int TAGS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList tags_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * List of network tags.
-   * 
- * - * repeated string tags = 1; - * - * @return A list containing the tags. - */ - public com.google.protobuf.ProtocolStringList getTagsList() { - return tags_; - } - /** - * - * - *
-   * List of network tags.
-   * 
- * - * repeated string tags = 1; - * - * @return The count of tags. - */ - public int getTagsCount() { - return tags_.size(); - } - /** - * - * - *
-   * List of network tags.
-   * 
- * - * repeated string tags = 1; - * - * @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); - } - /** - * - * - *
-   * List of network tags.
-   * 
- * - * repeated string tags = 1; - * - * @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); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - 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 < tags_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tags_.getRaw(i)); - } - getUnknownFields().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 < tags_.size(); i++) { - dataSize += computeStringSizeNoTag(tags_.getRaw(i)); - } - size += dataSize; - size += 1 * getTagsList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.NetworkTags)) { - return super.equals(obj); - } - com.google.container.v1.NetworkTags other = (com.google.container.v1.NetworkTags) obj; - - if (!getTagsList().equals(other.getTagsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTagsCount() > 0) { - hash = (37 * hash) + TAGS_FIELD_NUMBER; - hash = (53 * hash) + getTagsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.NetworkTags parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NetworkTags parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NetworkTags parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NetworkTags parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NetworkTags parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NetworkTags parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NetworkTags parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NetworkTags parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NetworkTags parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.NetworkTags parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NetworkTags parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NetworkTags parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.NetworkTags prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Collection of Compute Engine network tags that can be applied to a node's
-   * underlying VM instance.
-   * 
- * - * Protobuf type {@code google.container.v1.NetworkTags} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.NetworkTags) - com.google.container.v1.NetworkTagsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NetworkTags_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NetworkTags_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NetworkTags.class, - com.google.container.v1.NetworkTags.Builder.class); - } - - // Construct using com.google.container.v1.NetworkTags.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NetworkTags_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NetworkTags getDefaultInstanceForType() { - return com.google.container.v1.NetworkTags.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NetworkTags build() { - com.google.container.v1.NetworkTags result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NetworkTags buildPartial() { - com.google.container.v1.NetworkTags result = new com.google.container.v1.NetworkTags(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.NetworkTags result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - tags_.makeImmutable(); - result.tags_ = tags_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NetworkTags) { - return mergeFrom((com.google.container.v1.NetworkTags) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NetworkTags other) { - if (other == com.google.container.v1.NetworkTags.getDefaultInstance()) return this; - if (!other.tags_.isEmpty()) { - if (tags_.isEmpty()) { - tags_ = other.tags_; - bitField0_ |= 0x00000001; - } else { - ensureTagsIsMutable(); - tags_.addAll(other.tags_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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(); - ensureTagsIsMutable(); - tags_.add(s); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.protobuf.LazyStringArrayList tags_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureTagsIsMutable() { - if (!tags_.isModifiable()) { - tags_ = new com.google.protobuf.LazyStringArrayList(tags_); - } - bitField0_ |= 0x00000001; - } - /** - * - * - *
-     * List of network tags.
-     * 
- * - * repeated string tags = 1; - * - * @return A list containing the tags. - */ - public com.google.protobuf.ProtocolStringList getTagsList() { - tags_.makeImmutable(); - return tags_; - } - /** - * - * - *
-     * List of network tags.
-     * 
- * - * repeated string tags = 1; - * - * @return The count of tags. - */ - public int getTagsCount() { - return tags_.size(); - } - /** - * - * - *
-     * List of network tags.
-     * 
- * - * repeated string tags = 1; - * - * @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); - } - /** - * - * - *
-     * List of network tags.
-     * 
- * - * repeated string tags = 1; - * - * @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); - } - /** - * - * - *
-     * List of network tags.
-     * 
- * - * repeated string tags = 1; - * - * @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); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * List of network tags.
-     * 
- * - * repeated string tags = 1; - * - * @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); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * List of network tags.
-     * 
- * - * repeated string tags = 1; - * - * @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_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * List of network tags.
-     * 
- * - * repeated string tags = 1; - * - * @return This builder for chaining. - */ - public Builder clearTags() { - tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; - onChanged(); - return this; - } - /** - * - * - *
-     * List of network tags.
-     * 
- * - * repeated string tags = 1; - * - * @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); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.NetworkTags) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.NetworkTags) - private static final com.google.container.v1.NetworkTags DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.NetworkTags(); - } - - public static com.google.container.v1.NetworkTags getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NetworkTags parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.NetworkTags getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkTagsOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkTagsOrBuilder.java deleted file mode 100644 index d5a74e43da3b..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkTagsOrBuilder.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface NetworkTagsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.NetworkTags) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * List of network tags.
-   * 
- * - * repeated string tags = 1; - * - * @return A list containing the tags. - */ - java.util.List getTagsList(); - /** - * - * - *
-   * List of network tags.
-   * 
- * - * repeated string tags = 1; - * - * @return The count of tags. - */ - int getTagsCount(); - /** - * - * - *
-   * List of network tags.
-   * 
- * - * repeated string tags = 1; - * - * @param index The index of the element to return. - * @return The tags at the given index. - */ - java.lang.String getTags(int index); - /** - * - * - *
-   * List of network tags.
-   * 
- * - * repeated string tags = 1; - * - * @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); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfig.java deleted file mode 100644 index 3e082e7068c2..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfig.java +++ /dev/null @@ -1,10333 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Parameters that describe the nodes in a cluster.
- *
- * GKE Autopilot clusters do not
- * recognize parameters in `NodeConfig`. Use
- * [AutoprovisioningNodePoolDefaults][google.container.v1.AutoprovisioningNodePoolDefaults]
- * instead.
- * 
- * - * Protobuf type {@code google.container.v1.NodeConfig} - */ -public final class NodeConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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.emptyList(); - serviceAccount_ = ""; - imageType_ = ""; - tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - accelerators_ = java.util.Collections.emptyList(); - diskType_ = ""; - minCpuPlatform_ = ""; - taints_ = java.util.Collections.emptyList(); - nodeGroup_ = ""; - bootDiskKmsKey_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NodeConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 4: - return internalGetMetadata(); - case 6: - return internalGetLabels(); - case 37: - 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.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodeConfig.class, - com.google.container.v1.NodeConfig.Builder.class); - } - - private int bitField0_; - public static final int MACHINE_TYPE_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - 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_ = 0; - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList oauthScopes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - 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.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeConfig_MetadataEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - @SuppressWarnings("serial") - 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-os-login"
-   *  - "gci-ensure-gke-docker"
-   *  - "gci-metrics-enabled"
-   *  - "gci-update-strategy"
-   *  - "instance-template"
-   *  - "kube-env"
-   *  - "startup-script"
-   *  - "user-data"
-   *  - "disable-address-manager"
-   *  - "windows-startup-script-ps1"
-   *  - "common-psm1"
-   *  - "k8s-node-setup-psm1"
-   *  - "install-ssh-psm1"
-   *  - "user-profile-psm1"
-   *
-   * 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 NullPointerException("map key"); - } - 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-os-login"
-   *  - "gci-ensure-gke-docker"
-   *  - "gci-metrics-enabled"
-   *  - "gci-update-strategy"
-   *  - "instance-template"
-   *  - "kube-env"
-   *  - "startup-script"
-   *  - "user-data"
-   *  - "disable-address-manager"
-   *  - "windows-startup-script-ps1"
-   *  - "common-psm1"
-   *  - "k8s-node-setup-psm1"
-   *  - "install-ssh-psm1"
-   *  - "user-profile-psm1"
-   *
-   * 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-os-login"
-   *  - "gci-ensure-gke-docker"
-   *  - "gci-metrics-enabled"
-   *  - "gci-update-strategy"
-   *  - "instance-template"
-   *  - "kube-env"
-   *  - "startup-script"
-   *  - "user-data"
-   *  - "disable-address-manager"
-   *  - "windows-startup-script-ps1"
-   *  - "common-psm1"
-   *  - "k8s-node-setup-psm1"
-   *  - "install-ssh-psm1"
-   *  - "user-profile-psm1"
-   *
-   * 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 /* nullable */ java.lang.String getMetadataOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - 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-os-login"
-   *  - "gci-ensure-gke-docker"
-   *  - "gci-metrics-enabled"
-   *  - "gci-update-strategy"
-   *  - "instance-template"
-   *  - "kube-env"
-   *  - "startup-script"
-   *  - "user-data"
-   *  - "disable-address-manager"
-   *  - "windows-startup-script-ps1"
-   *  - "common-psm1"
-   *  - "k8s-node-setup-psm1"
-   *  - "install-ssh-psm1"
-   *  - "user-profile-psm1"
-   *
-   * 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 NullPointerException("map key"); - } - 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; - - @SuppressWarnings("serial") - 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. Please see
-   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-   * available image types.
-   * 
- * - * 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. Please see
-   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-   * available image types.
-   * 
- * - * 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.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeConfig_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - @SuppressWarnings("serial") - 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 NullPointerException("map key"); - } - 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 /* nullable */ java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - 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 NullPointerException("map key"); - } - 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_ = 0; - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList tags_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * 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_ = false; - /** - * - * - *
-   * Whether the nodes are created as preemptible VM instances. See:
-   * https://cloud.google.com/compute/docs/instances/preemptible for more
-   * information 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; - - @SuppressWarnings("serial") - 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.v1.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.v1.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.v1.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.v1.AcceleratorConfig accelerators = 11; - */ - @java.lang.Override - public com.google.container.v1.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.v1.AcceleratorConfig accelerators = 11; - */ - @java.lang.Override - public com.google.container.v1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder(int index) { - return accelerators_.get(index); - } - - public static final int DISK_TYPE_FIELD_NUMBER = 12; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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.v1.WorkloadMetadataConfig workloadMetadataConfig_; - /** - * - * - *
-   * The workload metadata configuration for this node.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * - * @return Whether the workloadMetadataConfig field is set. - */ - @java.lang.Override - public boolean hasWorkloadMetadataConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * The workload metadata configuration for this node.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * - * @return The workloadMetadataConfig. - */ - @java.lang.Override - public com.google.container.v1.WorkloadMetadataConfig getWorkloadMetadataConfig() { - return workloadMetadataConfig_ == null - ? com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance() - : workloadMetadataConfig_; - } - /** - * - * - *
-   * The workload metadata configuration for this node.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - @java.lang.Override - public com.google.container.v1.WorkloadMetadataConfigOrBuilder - getWorkloadMetadataConfigOrBuilder() { - return workloadMetadataConfig_ == null - ? com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance() - : workloadMetadataConfig_; - } - - public static final int TAINTS_FIELD_NUMBER = 15; - - @SuppressWarnings("serial") - 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.v1.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.v1.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.v1.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.v1.NodeTaint taints = 15; - */ - @java.lang.Override - public com.google.container.v1.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.v1.NodeTaint taints = 15; - */ - @java.lang.Override - public com.google.container.v1.NodeTaintOrBuilder getTaintsOrBuilder(int index) { - return taints_.get(index); - } - - public static final int SANDBOX_CONFIG_FIELD_NUMBER = 17; - private com.google.container.v1.SandboxConfig sandboxConfig_; - /** - * - * - *
-   * Sandbox configuration for this node.
-   * 
- * - * .google.container.v1.SandboxConfig sandbox_config = 17; - * - * @return Whether the sandboxConfig field is set. - */ - @java.lang.Override - public boolean hasSandboxConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * Sandbox configuration for this node.
-   * 
- * - * .google.container.v1.SandboxConfig sandbox_config = 17; - * - * @return The sandboxConfig. - */ - @java.lang.Override - public com.google.container.v1.SandboxConfig getSandboxConfig() { - return sandboxConfig_ == null - ? com.google.container.v1.SandboxConfig.getDefaultInstance() - : sandboxConfig_; - } - /** - * - * - *
-   * Sandbox configuration for this node.
-   * 
- * - * .google.container.v1.SandboxConfig sandbox_config = 17; - */ - @java.lang.Override - public com.google.container.v1.SandboxConfigOrBuilder getSandboxConfigOrBuilder() { - return sandboxConfig_ == null - ? com.google.container.v1.SandboxConfig.getDefaultInstance() - : sandboxConfig_; - } - - public static final int NODE_GROUP_FIELD_NUMBER = 18; - - @SuppressWarnings("serial") - private volatile java.lang.Object nodeGroup_ = ""; - /** - * - * - *
-   * Setting this field will assign instances of this
-   * pool to run on the specified node group. This is useful for running
-   * workloads on [sole tenant
-   * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
-   * 
- * - * string node_group = 18; - * - * @return The nodeGroup. - */ - @java.lang.Override - public java.lang.String getNodeGroup() { - java.lang.Object ref = nodeGroup_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodeGroup_ = s; - return s; - } - } - /** - * - * - *
-   * Setting this field will assign instances of this
-   * pool to run on the specified node group. This is useful for running
-   * workloads on [sole tenant
-   * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
-   * 
- * - * string node_group = 18; - * - * @return The bytes for nodeGroup. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNodeGroupBytes() { - java.lang.Object ref = nodeGroup_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nodeGroup_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESERVATION_AFFINITY_FIELD_NUMBER = 19; - private com.google.container.v1.ReservationAffinity reservationAffinity_; - /** - * - * - *
-   * The optional reservation affinity. Setting this field will apply
-   * the specified [Zonal Compute
-   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-   * to this node pool.
-   * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - * - * @return Whether the reservationAffinity field is set. - */ - @java.lang.Override - public boolean hasReservationAffinity() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-   * The optional reservation affinity. Setting this field will apply
-   * the specified [Zonal Compute
-   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-   * to this node pool.
-   * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - * - * @return The reservationAffinity. - */ - @java.lang.Override - public com.google.container.v1.ReservationAffinity getReservationAffinity() { - return reservationAffinity_ == null - ? com.google.container.v1.ReservationAffinity.getDefaultInstance() - : reservationAffinity_; - } - /** - * - * - *
-   * The optional reservation affinity. Setting this field will apply
-   * the specified [Zonal Compute
-   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-   * to this node pool.
-   * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - */ - @java.lang.Override - public com.google.container.v1.ReservationAffinityOrBuilder getReservationAffinityOrBuilder() { - return reservationAffinity_ == null - ? com.google.container.v1.ReservationAffinity.getDefaultInstance() - : reservationAffinity_; - } - - public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER = 20; - private com.google.container.v1.ShieldedInstanceConfig shieldedInstanceConfig_; - /** - * - * - *
-   * Shielded Instance options.
-   * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - * - * @return Whether the shieldedInstanceConfig field is set. - */ - @java.lang.Override - public boolean hasShieldedInstanceConfig() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-   * Shielded Instance options.
-   * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - * - * @return The shieldedInstanceConfig. - */ - @java.lang.Override - public com.google.container.v1.ShieldedInstanceConfig getShieldedInstanceConfig() { - return shieldedInstanceConfig_ == null - ? com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() - : shieldedInstanceConfig_; - } - /** - * - * - *
-   * Shielded Instance options.
-   * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - */ - @java.lang.Override - public com.google.container.v1.ShieldedInstanceConfigOrBuilder - getShieldedInstanceConfigOrBuilder() { - return shieldedInstanceConfig_ == null - ? com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() - : shieldedInstanceConfig_; - } - - public static final int LINUX_NODE_CONFIG_FIELD_NUMBER = 21; - private com.google.container.v1.LinuxNodeConfig linuxNodeConfig_; - /** - * - * - *
-   * Parameters that can be configured on Linux nodes.
-   * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 21; - * - * @return Whether the linuxNodeConfig field is set. - */ - @java.lang.Override - public boolean hasLinuxNodeConfig() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-   * Parameters that can be configured on Linux nodes.
-   * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 21; - * - * @return The linuxNodeConfig. - */ - @java.lang.Override - public com.google.container.v1.LinuxNodeConfig getLinuxNodeConfig() { - return linuxNodeConfig_ == null - ? com.google.container.v1.LinuxNodeConfig.getDefaultInstance() - : linuxNodeConfig_; - } - /** - * - * - *
-   * Parameters that can be configured on Linux nodes.
-   * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 21; - */ - @java.lang.Override - public com.google.container.v1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder() { - return linuxNodeConfig_ == null - ? com.google.container.v1.LinuxNodeConfig.getDefaultInstance() - : linuxNodeConfig_; - } - - public static final int KUBELET_CONFIG_FIELD_NUMBER = 22; - private com.google.container.v1.NodeKubeletConfig kubeletConfig_; - /** - * - * - *
-   * Node kubelet configs.
-   * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 22; - * - * @return Whether the kubeletConfig field is set. - */ - @java.lang.Override - public boolean hasKubeletConfig() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * - * - *
-   * Node kubelet configs.
-   * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 22; - * - * @return The kubeletConfig. - */ - @java.lang.Override - public com.google.container.v1.NodeKubeletConfig getKubeletConfig() { - return kubeletConfig_ == null - ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() - : kubeletConfig_; - } - /** - * - * - *
-   * Node kubelet configs.
-   * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 22; - */ - @java.lang.Override - public com.google.container.v1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder() { - return kubeletConfig_ == null - ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() - : kubeletConfig_; - } - - public static final int BOOT_DISK_KMS_KEY_FIELD_NUMBER = 23; - - @SuppressWarnings("serial") - 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 GCFS_CONFIG_FIELD_NUMBER = 25; - private com.google.container.v1.GcfsConfig gcfsConfig_; - /** - * - * - *
-   * Google Container File System (image streaming) configs.
-   * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 25; - * - * @return Whether the gcfsConfig field is set. - */ - @java.lang.Override - public boolean hasGcfsConfig() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * - * - *
-   * Google Container File System (image streaming) configs.
-   * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 25; - * - * @return The gcfsConfig. - */ - @java.lang.Override - public com.google.container.v1.GcfsConfig getGcfsConfig() { - return gcfsConfig_ == null - ? com.google.container.v1.GcfsConfig.getDefaultInstance() - : gcfsConfig_; - } - /** - * - * - *
-   * Google Container File System (image streaming) configs.
-   * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 25; - */ - @java.lang.Override - public com.google.container.v1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { - return gcfsConfig_ == null - ? com.google.container.v1.GcfsConfig.getDefaultInstance() - : gcfsConfig_; - } - - public static final int ADVANCED_MACHINE_FEATURES_FIELD_NUMBER = 26; - private com.google.container.v1.AdvancedMachineFeatures advancedMachineFeatures_; - /** - * - * - *
-   * Advanced features for the Compute Engine VM.
-   * 
- * - * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; - * - * @return Whether the advancedMachineFeatures field is set. - */ - @java.lang.Override - public boolean hasAdvancedMachineFeatures() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * - * - *
-   * Advanced features for the Compute Engine VM.
-   * 
- * - * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; - * - * @return The advancedMachineFeatures. - */ - @java.lang.Override - public com.google.container.v1.AdvancedMachineFeatures getAdvancedMachineFeatures() { - return advancedMachineFeatures_ == null - ? com.google.container.v1.AdvancedMachineFeatures.getDefaultInstance() - : advancedMachineFeatures_; - } - /** - * - * - *
-   * Advanced features for the Compute Engine VM.
-   * 
- * - * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; - */ - @java.lang.Override - public com.google.container.v1.AdvancedMachineFeaturesOrBuilder - getAdvancedMachineFeaturesOrBuilder() { - return advancedMachineFeatures_ == null - ? com.google.container.v1.AdvancedMachineFeatures.getDefaultInstance() - : advancedMachineFeatures_; - } - - public static final int GVNIC_FIELD_NUMBER = 29; - private com.google.container.v1.VirtualNIC gvnic_; - /** - * - * - *
-   * Enable or disable gvnic in the node pool.
-   * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - * - * @return Whether the gvnic field is set. - */ - @java.lang.Override - public boolean hasGvnic() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * - * - *
-   * Enable or disable gvnic in the node pool.
-   * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - * - * @return The gvnic. - */ - @java.lang.Override - public com.google.container.v1.VirtualNIC getGvnic() { - return gvnic_ == null ? com.google.container.v1.VirtualNIC.getDefaultInstance() : gvnic_; - } - /** - * - * - *
-   * Enable or disable gvnic in the node pool.
-   * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - */ - @java.lang.Override - public com.google.container.v1.VirtualNICOrBuilder getGvnicOrBuilder() { - return gvnic_ == null ? com.google.container.v1.VirtualNIC.getDefaultInstance() : gvnic_; - } - - public static final int SPOT_FIELD_NUMBER = 32; - private boolean spot_ = false; - /** - * - * - *
-   * Spot flag for enabling Spot VM, which is a rebrand of
-   * the existing preemptible flag.
-   * 
- * - * bool spot = 32; - * - * @return The spot. - */ - @java.lang.Override - public boolean getSpot() { - return spot_; - } - - public static final int CONFIDENTIAL_NODES_FIELD_NUMBER = 35; - private com.google.container.v1.ConfidentialNodes confidentialNodes_; - /** - * - * - *
-   * Confidential nodes config.
-   * All the nodes in the node pool will be Confidential VM once enabled.
-   * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 35; - * - * @return Whether the confidentialNodes field is set. - */ - @java.lang.Override - public boolean hasConfidentialNodes() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * - * - *
-   * Confidential nodes config.
-   * All the nodes in the node pool will be Confidential VM once enabled.
-   * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 35; - * - * @return The confidentialNodes. - */ - @java.lang.Override - public com.google.container.v1.ConfidentialNodes getConfidentialNodes() { - return confidentialNodes_ == null - ? com.google.container.v1.ConfidentialNodes.getDefaultInstance() - : confidentialNodes_; - } - /** - * - * - *
-   * Confidential nodes config.
-   * All the nodes in the node pool will be Confidential VM once enabled.
-   * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 35; - */ - @java.lang.Override - public com.google.container.v1.ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder() { - return confidentialNodes_ == null - ? com.google.container.v1.ConfidentialNodes.getDefaultInstance() - : confidentialNodes_; - } - - public static final int FAST_SOCKET_FIELD_NUMBER = 36; - private com.google.container.v1.FastSocket fastSocket_; - /** - * - * - *
-   * Enable or disable NCCL fast socket for the node pool.
-   * 
- * - * optional .google.container.v1.FastSocket fast_socket = 36; - * - * @return Whether the fastSocket field is set. - */ - @java.lang.Override - public boolean hasFastSocket() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - * - * - *
-   * Enable or disable NCCL fast socket for the node pool.
-   * 
- * - * optional .google.container.v1.FastSocket fast_socket = 36; - * - * @return The fastSocket. - */ - @java.lang.Override - public com.google.container.v1.FastSocket getFastSocket() { - return fastSocket_ == null - ? com.google.container.v1.FastSocket.getDefaultInstance() - : fastSocket_; - } - /** - * - * - *
-   * Enable or disable NCCL fast socket for the node pool.
-   * 
- * - * optional .google.container.v1.FastSocket fast_socket = 36; - */ - @java.lang.Override - public com.google.container.v1.FastSocketOrBuilder getFastSocketOrBuilder() { - return fastSocket_ == null - ? com.google.container.v1.FastSocket.getDefaultInstance() - : fastSocket_; - } - - public static final int RESOURCE_LABELS_FIELD_NUMBER = 37; - - private static final class ResourceLabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeConfig_ResourceLabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - @SuppressWarnings("serial") - 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 node pool to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * map<string, string> resource_labels = 37; - */ - @java.lang.Override - public boolean containsResourceLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - 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 node pool to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * map<string, string> resource_labels = 37; - */ - @java.lang.Override - public java.util.Map getResourceLabelsMap() { - return internalGetResourceLabels().getMap(); - } - /** - * - * - *
-   * The resource labels for the node pool to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * map<string, string> resource_labels = 37; - */ - @java.lang.Override - public /* nullable */ java.lang.String getResourceLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetResourceLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * The resource labels for the node pool to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * map<string, string> resource_labels = 37; - */ - @java.lang.Override - public java.lang.String getResourceLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetResourceLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int LOGGING_CONFIG_FIELD_NUMBER = 38; - private com.google.container.v1.NodePoolLoggingConfig loggingConfig_; - /** - * - * - *
-   * Logging configuration.
-   * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 38; - * - * @return Whether the loggingConfig field is set. - */ - @java.lang.Override - public boolean hasLoggingConfig() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - * - * - *
-   * Logging configuration.
-   * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 38; - * - * @return The loggingConfig. - */ - @java.lang.Override - public com.google.container.v1.NodePoolLoggingConfig getLoggingConfig() { - return loggingConfig_ == null - ? com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance() - : loggingConfig_; - } - /** - * - * - *
-   * Logging configuration.
-   * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 38; - */ - @java.lang.Override - public com.google.container.v1.NodePoolLoggingConfigOrBuilder getLoggingConfigOrBuilder() { - return loggingConfig_ == null - ? com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance() - : loggingConfig_; - } - - public static final int WINDOWS_NODE_CONFIG_FIELD_NUMBER = 39; - private com.google.container.v1.WindowsNodeConfig windowsNodeConfig_; - /** - * - * - *
-   * Parameters that can be configured on Windows nodes.
-   * 
- * - * .google.container.v1.WindowsNodeConfig windows_node_config = 39; - * - * @return Whether the windowsNodeConfig field is set. - */ - @java.lang.Override - public boolean hasWindowsNodeConfig() { - return ((bitField0_ & 0x00001000) != 0); - } - /** - * - * - *
-   * Parameters that can be configured on Windows nodes.
-   * 
- * - * .google.container.v1.WindowsNodeConfig windows_node_config = 39; - * - * @return The windowsNodeConfig. - */ - @java.lang.Override - public com.google.container.v1.WindowsNodeConfig getWindowsNodeConfig() { - return windowsNodeConfig_ == null - ? com.google.container.v1.WindowsNodeConfig.getDefaultInstance() - : windowsNodeConfig_; - } - /** - * - * - *
-   * Parameters that can be configured on Windows nodes.
-   * 
- * - * .google.container.v1.WindowsNodeConfig windows_node_config = 39; - */ - @java.lang.Override - public com.google.container.v1.WindowsNodeConfigOrBuilder getWindowsNodeConfigOrBuilder() { - return windowsNodeConfig_ == null - ? com.google.container.v1.WindowsNodeConfig.getDefaultInstance() - : windowsNodeConfig_; - } - - public static final int LOCAL_NVME_SSD_BLOCK_CONFIG_FIELD_NUMBER = 40; - private com.google.container.v1.LocalNvmeSsdBlockConfig localNvmeSsdBlockConfig_; - /** - * - * - *
-   * Parameters for using raw-block Local NVMe SSDs.
-   * 
- * - * .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; - * - * @return Whether the localNvmeSsdBlockConfig field is set. - */ - @java.lang.Override - public boolean hasLocalNvmeSsdBlockConfig() { - return ((bitField0_ & 0x00002000) != 0); - } - /** - * - * - *
-   * Parameters for using raw-block Local NVMe SSDs.
-   * 
- * - * .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; - * - * @return The localNvmeSsdBlockConfig. - */ - @java.lang.Override - public com.google.container.v1.LocalNvmeSsdBlockConfig getLocalNvmeSsdBlockConfig() { - return localNvmeSsdBlockConfig_ == null - ? com.google.container.v1.LocalNvmeSsdBlockConfig.getDefaultInstance() - : localNvmeSsdBlockConfig_; - } - /** - * - * - *
-   * Parameters for using raw-block Local NVMe SSDs.
-   * 
- * - * .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; - */ - @java.lang.Override - public com.google.container.v1.LocalNvmeSsdBlockConfigOrBuilder - getLocalNvmeSsdBlockConfigOrBuilder() { - return localNvmeSsdBlockConfig_ == null - ? com.google.container.v1.LocalNvmeSsdBlockConfig.getDefaultInstance() - : localNvmeSsdBlockConfig_; - } - - public static final int EPHEMERAL_STORAGE_LOCAL_SSD_CONFIG_FIELD_NUMBER = 41; - private com.google.container.v1.EphemeralStorageLocalSsdConfig ephemeralStorageLocalSsdConfig_; - /** - * - * - *
-   * Parameters for the node ephemeral storage using Local SSDs.
-   * If unspecified, ephemeral storage is backed by the boot disk.
-   * 
- * - * - * .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; - * - * - * @return Whether the ephemeralStorageLocalSsdConfig field is set. - */ - @java.lang.Override - public boolean hasEphemeralStorageLocalSsdConfig() { - return ((bitField0_ & 0x00004000) != 0); - } - /** - * - * - *
-   * Parameters for the node ephemeral storage using Local SSDs.
-   * If unspecified, ephemeral storage is backed by the boot disk.
-   * 
- * - * - * .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; - * - * - * @return The ephemeralStorageLocalSsdConfig. - */ - @java.lang.Override - public com.google.container.v1.EphemeralStorageLocalSsdConfig - getEphemeralStorageLocalSsdConfig() { - return ephemeralStorageLocalSsdConfig_ == null - ? com.google.container.v1.EphemeralStorageLocalSsdConfig.getDefaultInstance() - : ephemeralStorageLocalSsdConfig_; - } - /** - * - * - *
-   * Parameters for the node ephemeral storage using Local SSDs.
-   * If unspecified, ephemeral storage is backed by the boot disk.
-   * 
- * - * - * .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; - * - */ - @java.lang.Override - public com.google.container.v1.EphemeralStorageLocalSsdConfigOrBuilder - getEphemeralStorageLocalSsdConfigOrBuilder() { - return ephemeralStorageLocalSsdConfig_ == null - ? com.google.container.v1.EphemeralStorageLocalSsdConfig.getDefaultInstance() - : ephemeralStorageLocalSsdConfig_; - } - - public static final int SOLE_TENANT_CONFIG_FIELD_NUMBER = 42; - private com.google.container.v1.SoleTenantConfig soleTenantConfig_; - /** - * - * - *
-   * Parameters for node pools to be backed by shared sole tenant node groups.
-   * 
- * - * .google.container.v1.SoleTenantConfig sole_tenant_config = 42; - * - * @return Whether the soleTenantConfig field is set. - */ - @java.lang.Override - public boolean hasSoleTenantConfig() { - return ((bitField0_ & 0x00008000) != 0); - } - /** - * - * - *
-   * Parameters for node pools to be backed by shared sole tenant node groups.
-   * 
- * - * .google.container.v1.SoleTenantConfig sole_tenant_config = 42; - * - * @return The soleTenantConfig. - */ - @java.lang.Override - public com.google.container.v1.SoleTenantConfig getSoleTenantConfig() { - return soleTenantConfig_ == null - ? com.google.container.v1.SoleTenantConfig.getDefaultInstance() - : soleTenantConfig_; - } - /** - * - * - *
-   * Parameters for node pools to be backed by shared sole tenant node groups.
-   * 
- * - * .google.container.v1.SoleTenantConfig sole_tenant_config = 42; - */ - @java.lang.Override - public com.google.container.v1.SoleTenantConfigOrBuilder getSoleTenantConfigOrBuilder() { - return soleTenantConfig_ == null - ? com.google.container.v1.SoleTenantConfig.getDefaultInstance() - : soleTenantConfig_; - } - - public static final int RESOURCE_MANAGER_TAGS_FIELD_NUMBER = 45; - private com.google.container.v1.ResourceManagerTags resourceManagerTags_; - /** - * - * - *
-   * A map of resource manager tag keys and values to be attached to the nodes.
-   * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 45; - * - * @return Whether the resourceManagerTags field is set. - */ - @java.lang.Override - public boolean hasResourceManagerTags() { - return ((bitField0_ & 0x00010000) != 0); - } - /** - * - * - *
-   * A map of resource manager tag keys and values to be attached to the nodes.
-   * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 45; - * - * @return The resourceManagerTags. - */ - @java.lang.Override - public com.google.container.v1.ResourceManagerTags getResourceManagerTags() { - return resourceManagerTags_ == null - ? com.google.container.v1.ResourceManagerTags.getDefaultInstance() - : resourceManagerTags_; - } - /** - * - * - *
-   * A map of resource manager tag keys and values to be attached to the nodes.
-   * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 45; - */ - @java.lang.Override - public com.google.container.v1.ResourceManagerTagsOrBuilder getResourceManagerTagsOrBuilder() { - return resourceManagerTags_ == null - ? com.google.container.v1.ResourceManagerTags.getDefaultInstance() - : resourceManagerTags_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageType_)) { - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 12, diskType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minCpuPlatform_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, minCpuPlatform_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(14, getWorkloadMetadataConfig()); - } - for (int i = 0; i < taints_.size(); i++) { - output.writeMessage(15, taints_.get(i)); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(17, getSandboxConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeGroup_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 18, nodeGroup_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(19, getReservationAffinity()); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(20, getShieldedInstanceConfig()); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeMessage(21, getLinuxNodeConfig()); - } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeMessage(22, getKubeletConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootDiskKmsKey_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 23, bootDiskKmsKey_); - } - if (((bitField0_ & 0x00000040) != 0)) { - output.writeMessage(25, getGcfsConfig()); - } - if (((bitField0_ & 0x00000080) != 0)) { - output.writeMessage(26, getAdvancedMachineFeatures()); - } - if (((bitField0_ & 0x00000100) != 0)) { - output.writeMessage(29, getGvnic()); - } - if (spot_ != false) { - output.writeBool(32, spot_); - } - if (((bitField0_ & 0x00000200) != 0)) { - output.writeMessage(35, getConfidentialNodes()); - } - if (((bitField0_ & 0x00000400) != 0)) { - output.writeMessage(36, getFastSocket()); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetResourceLabels(), ResourceLabelsDefaultEntryHolder.defaultEntry, 37); - if (((bitField0_ & 0x00000800) != 0)) { - output.writeMessage(38, getLoggingConfig()); - } - if (((bitField0_ & 0x00001000) != 0)) { - output.writeMessage(39, getWindowsNodeConfig()); - } - if (((bitField0_ & 0x00002000) != 0)) { - output.writeMessage(40, getLocalNvmeSsdBlockConfig()); - } - if (((bitField0_ & 0x00004000) != 0)) { - output.writeMessage(41, getEphemeralStorageLocalSsdConfig()); - } - if (((bitField0_ & 0x00008000) != 0)) { - output.writeMessage(42, getSoleTenantConfig()); - } - if (((bitField0_ & 0x00010000) != 0)) { - output.writeMessage(45, getResourceManagerTags()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageType_)) { - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, diskType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minCpuPlatform_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, minCpuPlatform_); - } - if (((bitField0_ & 0x00000001) != 0)) { - 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 (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getSandboxConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeGroup_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, nodeGroup_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(19, getReservationAffinity()); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(20, getShieldedInstanceConfig()); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getLinuxNodeConfig()); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getKubeletConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootDiskKmsKey_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, bootDiskKmsKey_); - } - if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getGcfsConfig()); - } - if (((bitField0_ & 0x00000080) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 26, getAdvancedMachineFeatures()); - } - if (((bitField0_ & 0x00000100) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getGvnic()); - } - if (spot_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(32, spot_); - } - if (((bitField0_ & 0x00000200) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(35, getConfidentialNodes()); - } - if (((bitField0_ & 0x00000400) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(36, getFastSocket()); - } - 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(37, resourceLabels__); - } - if (((bitField0_ & 0x00000800) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(38, getLoggingConfig()); - } - if (((bitField0_ & 0x00001000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(39, getWindowsNodeConfig()); - } - if (((bitField0_ & 0x00002000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 40, getLocalNvmeSsdBlockConfig()); - } - if (((bitField0_ & 0x00004000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 41, getEphemeralStorageLocalSsdConfig()); - } - if (((bitField0_ & 0x00008000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(42, getSoleTenantConfig()); - } - if (((bitField0_ & 0x00010000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(45, getResourceManagerTags()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.NodeConfig)) { - return super.equals(obj); - } - com.google.container.v1.NodeConfig other = (com.google.container.v1.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 (!getDiskType().equals(other.getDiskType())) return false; - if (!getMinCpuPlatform().equals(other.getMinCpuPlatform())) return false; - if (hasWorkloadMetadataConfig() != other.hasWorkloadMetadataConfig()) return false; - if (hasWorkloadMetadataConfig()) { - if (!getWorkloadMetadataConfig().equals(other.getWorkloadMetadataConfig())) return false; - } - if (!getTaintsList().equals(other.getTaintsList())) return false; - if (hasSandboxConfig() != other.hasSandboxConfig()) return false; - if (hasSandboxConfig()) { - if (!getSandboxConfig().equals(other.getSandboxConfig())) return false; - } - if (!getNodeGroup().equals(other.getNodeGroup())) return false; - if (hasReservationAffinity() != other.hasReservationAffinity()) return false; - if (hasReservationAffinity()) { - if (!getReservationAffinity().equals(other.getReservationAffinity())) return false; - } - if (hasShieldedInstanceConfig() != other.hasShieldedInstanceConfig()) return false; - if (hasShieldedInstanceConfig()) { - if (!getShieldedInstanceConfig().equals(other.getShieldedInstanceConfig())) return false; - } - if (hasLinuxNodeConfig() != other.hasLinuxNodeConfig()) return false; - if (hasLinuxNodeConfig()) { - if (!getLinuxNodeConfig().equals(other.getLinuxNodeConfig())) return false; - } - if (hasKubeletConfig() != other.hasKubeletConfig()) return false; - if (hasKubeletConfig()) { - if (!getKubeletConfig().equals(other.getKubeletConfig())) return false; - } - if (!getBootDiskKmsKey().equals(other.getBootDiskKmsKey())) return false; - if (hasGcfsConfig() != other.hasGcfsConfig()) return false; - if (hasGcfsConfig()) { - if (!getGcfsConfig().equals(other.getGcfsConfig())) return false; - } - if (hasAdvancedMachineFeatures() != other.hasAdvancedMachineFeatures()) return false; - if (hasAdvancedMachineFeatures()) { - if (!getAdvancedMachineFeatures().equals(other.getAdvancedMachineFeatures())) return false; - } - if (hasGvnic() != other.hasGvnic()) return false; - if (hasGvnic()) { - if (!getGvnic().equals(other.getGvnic())) return false; - } - if (getSpot() != other.getSpot()) return false; - if (hasConfidentialNodes() != other.hasConfidentialNodes()) return false; - if (hasConfidentialNodes()) { - if (!getConfidentialNodes().equals(other.getConfidentialNodes())) return false; - } - if (hasFastSocket() != other.hasFastSocket()) return false; - if (hasFastSocket()) { - if (!getFastSocket().equals(other.getFastSocket())) return false; - } - if (!internalGetResourceLabels().equals(other.internalGetResourceLabels())) return false; - if (hasLoggingConfig() != other.hasLoggingConfig()) return false; - if (hasLoggingConfig()) { - if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; - } - if (hasWindowsNodeConfig() != other.hasWindowsNodeConfig()) return false; - if (hasWindowsNodeConfig()) { - if (!getWindowsNodeConfig().equals(other.getWindowsNodeConfig())) return false; - } - if (hasLocalNvmeSsdBlockConfig() != other.hasLocalNvmeSsdBlockConfig()) return false; - if (hasLocalNvmeSsdBlockConfig()) { - if (!getLocalNvmeSsdBlockConfig().equals(other.getLocalNvmeSsdBlockConfig())) return false; - } - if (hasEphemeralStorageLocalSsdConfig() != other.hasEphemeralStorageLocalSsdConfig()) - return false; - if (hasEphemeralStorageLocalSsdConfig()) { - if (!getEphemeralStorageLocalSsdConfig().equals(other.getEphemeralStorageLocalSsdConfig())) - return false; - } - if (hasSoleTenantConfig() != other.hasSoleTenantConfig()) return false; - if (hasSoleTenantConfig()) { - if (!getSoleTenantConfig().equals(other.getSoleTenantConfig())) return false; - } - if (hasResourceManagerTags() != other.hasResourceManagerTags()) return false; - if (hasResourceManagerTags()) { - if (!getResourceManagerTags().equals(other.getResourceManagerTags())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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(); - } - 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(); - } - if (hasSandboxConfig()) { - hash = (37 * hash) + SANDBOX_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getSandboxConfig().hashCode(); - } - hash = (37 * hash) + NODE_GROUP_FIELD_NUMBER; - hash = (53 * hash) + getNodeGroup().hashCode(); - if (hasReservationAffinity()) { - hash = (37 * hash) + RESERVATION_AFFINITY_FIELD_NUMBER; - hash = (53 * hash) + getReservationAffinity().hashCode(); - } - if (hasShieldedInstanceConfig()) { - hash = (37 * hash) + SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getShieldedInstanceConfig().hashCode(); - } - if (hasLinuxNodeConfig()) { - hash = (37 * hash) + LINUX_NODE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getLinuxNodeConfig().hashCode(); - } - if (hasKubeletConfig()) { - hash = (37 * hash) + KUBELET_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getKubeletConfig().hashCode(); - } - hash = (37 * hash) + BOOT_DISK_KMS_KEY_FIELD_NUMBER; - hash = (53 * hash) + getBootDiskKmsKey().hashCode(); - if (hasGcfsConfig()) { - hash = (37 * hash) + GCFS_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getGcfsConfig().hashCode(); - } - if (hasAdvancedMachineFeatures()) { - hash = (37 * hash) + ADVANCED_MACHINE_FEATURES_FIELD_NUMBER; - hash = (53 * hash) + getAdvancedMachineFeatures().hashCode(); - } - if (hasGvnic()) { - hash = (37 * hash) + GVNIC_FIELD_NUMBER; - hash = (53 * hash) + getGvnic().hashCode(); - } - hash = (37 * hash) + SPOT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSpot()); - if (hasConfidentialNodes()) { - hash = (37 * hash) + CONFIDENTIAL_NODES_FIELD_NUMBER; - hash = (53 * hash) + getConfidentialNodes().hashCode(); - } - if (hasFastSocket()) { - hash = (37 * hash) + FAST_SOCKET_FIELD_NUMBER; - hash = (53 * hash) + getFastSocket().hashCode(); - } - if (!internalGetResourceLabels().getMap().isEmpty()) { - hash = (37 * hash) + RESOURCE_LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetResourceLabels().hashCode(); - } - if (hasLoggingConfig()) { - hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getLoggingConfig().hashCode(); - } - if (hasWindowsNodeConfig()) { - hash = (37 * hash) + WINDOWS_NODE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getWindowsNodeConfig().hashCode(); - } - if (hasLocalNvmeSsdBlockConfig()) { - hash = (37 * hash) + LOCAL_NVME_SSD_BLOCK_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getLocalNvmeSsdBlockConfig().hashCode(); - } - if (hasEphemeralStorageLocalSsdConfig()) { - hash = (37 * hash) + EPHEMERAL_STORAGE_LOCAL_SSD_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getEphemeralStorageLocalSsdConfig().hashCode(); - } - if (hasSoleTenantConfig()) { - hash = (37 * hash) + SOLE_TENANT_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getSoleTenantConfig().hashCode(); - } - if (hasResourceManagerTags()) { - hash = (37 * hash) + RESOURCE_MANAGER_TAGS_FIELD_NUMBER; - hash = (53 * hash) + getResourceManagerTags().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.NodeConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.NodeConfig parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.NodeConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodeConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodeConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.NodeConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.NodeConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.
-   *
-   * GKE Autopilot clusters do not
-   * recognize parameters in `NodeConfig`. Use
-   * [AutoprovisioningNodePoolDefaults][google.container.v1.AutoprovisioningNodePoolDefaults]
-   * instead.
-   * 
- * - * Protobuf type {@code google.container.v1.NodeConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.NodeConfig) - com.google.container.v1.NodeConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 4: - return internalGetMetadata(); - case 6: - return internalGetLabels(); - case 37: - return internalGetResourceLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 4: - return internalGetMutableMetadata(); - case 6: - return internalGetMutableLabels(); - case 37: - 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.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodeConfig.class, - com.google.container.v1.NodeConfig.Builder.class); - } - - // Construct using com.google.container.v1.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(); - getWorkloadMetadataConfigFieldBuilder(); - getTaintsFieldBuilder(); - getSandboxConfigFieldBuilder(); - getReservationAffinityFieldBuilder(); - getShieldedInstanceConfigFieldBuilder(); - getLinuxNodeConfigFieldBuilder(); - getKubeletConfigFieldBuilder(); - getGcfsConfigFieldBuilder(); - getAdvancedMachineFeaturesFieldBuilder(); - getGvnicFieldBuilder(); - getConfidentialNodesFieldBuilder(); - getFastSocketFieldBuilder(); - getLoggingConfigFieldBuilder(); - getWindowsNodeConfigFieldBuilder(); - getLocalNvmeSsdBlockConfigFieldBuilder(); - getEphemeralStorageLocalSsdConfigFieldBuilder(); - getSoleTenantConfigFieldBuilder(); - getResourceManagerTagsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - bitField1_ = 0; - machineType_ = ""; - diskSizeGb_ = 0; - oauthScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - serviceAccount_ = ""; - internalGetMutableMetadata().clear(); - imageType_ = ""; - internalGetMutableLabels().clear(); - localSsdCount_ = 0; - tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - preemptible_ = false; - if (acceleratorsBuilder_ == null) { - accelerators_ = java.util.Collections.emptyList(); - } else { - accelerators_ = null; - acceleratorsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000400); - diskType_ = ""; - minCpuPlatform_ = ""; - workloadMetadataConfig_ = null; - if (workloadMetadataConfigBuilder_ != null) { - workloadMetadataConfigBuilder_.dispose(); - workloadMetadataConfigBuilder_ = null; - } - if (taintsBuilder_ == null) { - taints_ = java.util.Collections.emptyList(); - } else { - taints_ = null; - taintsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00004000); - sandboxConfig_ = null; - if (sandboxConfigBuilder_ != null) { - sandboxConfigBuilder_.dispose(); - sandboxConfigBuilder_ = null; - } - nodeGroup_ = ""; - reservationAffinity_ = null; - if (reservationAffinityBuilder_ != null) { - reservationAffinityBuilder_.dispose(); - reservationAffinityBuilder_ = null; - } - shieldedInstanceConfig_ = null; - if (shieldedInstanceConfigBuilder_ != null) { - shieldedInstanceConfigBuilder_.dispose(); - shieldedInstanceConfigBuilder_ = null; - } - linuxNodeConfig_ = null; - if (linuxNodeConfigBuilder_ != null) { - linuxNodeConfigBuilder_.dispose(); - linuxNodeConfigBuilder_ = null; - } - kubeletConfig_ = null; - if (kubeletConfigBuilder_ != null) { - kubeletConfigBuilder_.dispose(); - kubeletConfigBuilder_ = null; - } - bootDiskKmsKey_ = ""; - gcfsConfig_ = null; - if (gcfsConfigBuilder_ != null) { - gcfsConfigBuilder_.dispose(); - gcfsConfigBuilder_ = null; - } - advancedMachineFeatures_ = null; - if (advancedMachineFeaturesBuilder_ != null) { - advancedMachineFeaturesBuilder_.dispose(); - advancedMachineFeaturesBuilder_ = null; - } - gvnic_ = null; - if (gvnicBuilder_ != null) { - gvnicBuilder_.dispose(); - gvnicBuilder_ = null; - } - spot_ = false; - confidentialNodes_ = null; - if (confidentialNodesBuilder_ != null) { - confidentialNodesBuilder_.dispose(); - confidentialNodesBuilder_ = null; - } - fastSocket_ = null; - if (fastSocketBuilder_ != null) { - fastSocketBuilder_.dispose(); - fastSocketBuilder_ = null; - } - internalGetMutableResourceLabels().clear(); - loggingConfig_ = null; - if (loggingConfigBuilder_ != null) { - loggingConfigBuilder_.dispose(); - loggingConfigBuilder_ = null; - } - windowsNodeConfig_ = null; - if (windowsNodeConfigBuilder_ != null) { - windowsNodeConfigBuilder_.dispose(); - windowsNodeConfigBuilder_ = null; - } - localNvmeSsdBlockConfig_ = null; - if (localNvmeSsdBlockConfigBuilder_ != null) { - localNvmeSsdBlockConfigBuilder_.dispose(); - localNvmeSsdBlockConfigBuilder_ = null; - } - ephemeralStorageLocalSsdConfig_ = null; - if (ephemeralStorageLocalSsdConfigBuilder_ != null) { - ephemeralStorageLocalSsdConfigBuilder_.dispose(); - ephemeralStorageLocalSsdConfigBuilder_ = null; - } - soleTenantConfig_ = null; - if (soleTenantConfigBuilder_ != null) { - soleTenantConfigBuilder_.dispose(); - soleTenantConfigBuilder_ = null; - } - resourceManagerTags_ = null; - if (resourceManagerTagsBuilder_ != null) { - resourceManagerTagsBuilder_.dispose(); - resourceManagerTagsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NodeConfig getDefaultInstanceForType() { - return com.google.container.v1.NodeConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NodeConfig build() { - com.google.container.v1.NodeConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NodeConfig buildPartial() { - com.google.container.v1.NodeConfig result = new com.google.container.v1.NodeConfig(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - if (bitField1_ != 0) { - buildPartial1(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.container.v1.NodeConfig result) { - if (acceleratorsBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0)) { - accelerators_ = java.util.Collections.unmodifiableList(accelerators_); - bitField0_ = (bitField0_ & ~0x00000400); - } - result.accelerators_ = accelerators_; - } else { - result.accelerators_ = acceleratorsBuilder_.build(); - } - if (taintsBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0)) { - taints_ = java.util.Collections.unmodifiableList(taints_); - bitField0_ = (bitField0_ & ~0x00004000); - } - result.taints_ = taints_; - } else { - result.taints_ = taintsBuilder_.build(); - } - } - - private void buildPartial0(com.google.container.v1.NodeConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.machineType_ = machineType_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.diskSizeGb_ = diskSizeGb_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - oauthScopes_.makeImmutable(); - result.oauthScopes_ = oauthScopes_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.serviceAccount_ = serviceAccount_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.metadata_ = internalGetMetadata(); - result.metadata_.makeImmutable(); - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.imageType_ = imageType_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.localSsdCount_ = localSsdCount_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - tags_.makeImmutable(); - result.tags_ = tags_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.preemptible_ = preemptible_; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.diskType_ = diskType_; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.minCpuPlatform_ = minCpuPlatform_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00002000) != 0)) { - result.workloadMetadataConfig_ = - workloadMetadataConfigBuilder_ == null - ? workloadMetadataConfig_ - : workloadMetadataConfigBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00008000) != 0)) { - result.sandboxConfig_ = - sandboxConfigBuilder_ == null ? sandboxConfig_ : sandboxConfigBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00010000) != 0)) { - result.nodeGroup_ = nodeGroup_; - } - if (((from_bitField0_ & 0x00020000) != 0)) { - result.reservationAffinity_ = - reservationAffinityBuilder_ == null - ? reservationAffinity_ - : reservationAffinityBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00040000) != 0)) { - result.shieldedInstanceConfig_ = - shieldedInstanceConfigBuilder_ == null - ? shieldedInstanceConfig_ - : shieldedInstanceConfigBuilder_.build(); - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00080000) != 0)) { - result.linuxNodeConfig_ = - linuxNodeConfigBuilder_ == null ? linuxNodeConfig_ : linuxNodeConfigBuilder_.build(); - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00100000) != 0)) { - result.kubeletConfig_ = - kubeletConfigBuilder_ == null ? kubeletConfig_ : kubeletConfigBuilder_.build(); - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00200000) != 0)) { - result.bootDiskKmsKey_ = bootDiskKmsKey_; - } - if (((from_bitField0_ & 0x00400000) != 0)) { - result.gcfsConfig_ = gcfsConfigBuilder_ == null ? gcfsConfig_ : gcfsConfigBuilder_.build(); - to_bitField0_ |= 0x00000040; - } - if (((from_bitField0_ & 0x00800000) != 0)) { - result.advancedMachineFeatures_ = - advancedMachineFeaturesBuilder_ == null - ? advancedMachineFeatures_ - : advancedMachineFeaturesBuilder_.build(); - to_bitField0_ |= 0x00000080; - } - if (((from_bitField0_ & 0x01000000) != 0)) { - result.gvnic_ = gvnicBuilder_ == null ? gvnic_ : gvnicBuilder_.build(); - to_bitField0_ |= 0x00000100; - } - if (((from_bitField0_ & 0x02000000) != 0)) { - result.spot_ = spot_; - } - if (((from_bitField0_ & 0x04000000) != 0)) { - result.confidentialNodes_ = - confidentialNodesBuilder_ == null - ? confidentialNodes_ - : confidentialNodesBuilder_.build(); - to_bitField0_ |= 0x00000200; - } - if (((from_bitField0_ & 0x08000000) != 0)) { - result.fastSocket_ = fastSocketBuilder_ == null ? fastSocket_ : fastSocketBuilder_.build(); - to_bitField0_ |= 0x00000400; - } - if (((from_bitField0_ & 0x10000000) != 0)) { - result.resourceLabels_ = internalGetResourceLabels(); - result.resourceLabels_.makeImmutable(); - } - if (((from_bitField0_ & 0x20000000) != 0)) { - result.loggingConfig_ = - loggingConfigBuilder_ == null ? loggingConfig_ : loggingConfigBuilder_.build(); - to_bitField0_ |= 0x00000800; - } - if (((from_bitField0_ & 0x40000000) != 0)) { - result.windowsNodeConfig_ = - windowsNodeConfigBuilder_ == null - ? windowsNodeConfig_ - : windowsNodeConfigBuilder_.build(); - to_bitField0_ |= 0x00001000; - } - if (((from_bitField0_ & 0x80000000) != 0)) { - result.localNvmeSsdBlockConfig_ = - localNvmeSsdBlockConfigBuilder_ == null - ? localNvmeSsdBlockConfig_ - : localNvmeSsdBlockConfigBuilder_.build(); - to_bitField0_ |= 0x00002000; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartial1(com.google.container.v1.NodeConfig result) { - int from_bitField1_ = bitField1_; - int to_bitField0_ = 0; - if (((from_bitField1_ & 0x00000001) != 0)) { - result.ephemeralStorageLocalSsdConfig_ = - ephemeralStorageLocalSsdConfigBuilder_ == null - ? ephemeralStorageLocalSsdConfig_ - : ephemeralStorageLocalSsdConfigBuilder_.build(); - to_bitField0_ |= 0x00004000; - } - if (((from_bitField1_ & 0x00000002) != 0)) { - result.soleTenantConfig_ = - soleTenantConfigBuilder_ == null ? soleTenantConfig_ : soleTenantConfigBuilder_.build(); - to_bitField0_ |= 0x00008000; - } - if (((from_bitField1_ & 0x00000004) != 0)) { - result.resourceManagerTags_ = - resourceManagerTagsBuilder_ == null - ? resourceManagerTags_ - : resourceManagerTagsBuilder_.build(); - to_bitField0_ |= 0x00010000; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NodeConfig) { - return mergeFrom((com.google.container.v1.NodeConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NodeConfig other) { - if (other == com.google.container.v1.NodeConfig.getDefaultInstance()) return this; - if (!other.getMachineType().isEmpty()) { - machineType_ = other.machineType_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getDiskSizeGb() != 0) { - setDiskSizeGb(other.getDiskSizeGb()); - } - if (!other.oauthScopes_.isEmpty()) { - if (oauthScopes_.isEmpty()) { - oauthScopes_ = other.oauthScopes_; - bitField0_ |= 0x00000004; - } else { - ensureOauthScopesIsMutable(); - oauthScopes_.addAll(other.oauthScopes_); - } - onChanged(); - } - if (!other.getServiceAccount().isEmpty()) { - serviceAccount_ = other.serviceAccount_; - bitField0_ |= 0x00000008; - onChanged(); - } - internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); - bitField0_ |= 0x00000010; - if (!other.getImageType().isEmpty()) { - imageType_ = other.imageType_; - bitField0_ |= 0x00000020; - onChanged(); - } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00000040; - if (other.getLocalSsdCount() != 0) { - setLocalSsdCount(other.getLocalSsdCount()); - } - if (!other.tags_.isEmpty()) { - if (tags_.isEmpty()) { - tags_ = other.tags_; - bitField0_ |= 0x00000100; - } else { - ensureTagsIsMutable(); - tags_.addAll(other.tags_); - } - onChanged(); - } - if (other.getPreemptible() != false) { - setPreemptible(other.getPreemptible()); - } - if (acceleratorsBuilder_ == null) { - if (!other.accelerators_.isEmpty()) { - if (accelerators_.isEmpty()) { - accelerators_ = other.accelerators_; - bitField0_ = (bitField0_ & ~0x00000400); - } else { - ensureAcceleratorsIsMutable(); - accelerators_.addAll(other.accelerators_); - } - onChanged(); - } - } else { - if (!other.accelerators_.isEmpty()) { - if (acceleratorsBuilder_.isEmpty()) { - acceleratorsBuilder_.dispose(); - acceleratorsBuilder_ = null; - accelerators_ = other.accelerators_; - bitField0_ = (bitField0_ & ~0x00000400); - acceleratorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAcceleratorsFieldBuilder() - : null; - } else { - acceleratorsBuilder_.addAllMessages(other.accelerators_); - } - } - } - if (!other.getDiskType().isEmpty()) { - diskType_ = other.diskType_; - bitField0_ |= 0x00000800; - onChanged(); - } - if (!other.getMinCpuPlatform().isEmpty()) { - minCpuPlatform_ = other.minCpuPlatform_; - bitField0_ |= 0x00001000; - onChanged(); - } - if (other.hasWorkloadMetadataConfig()) { - mergeWorkloadMetadataConfig(other.getWorkloadMetadataConfig()); - } - if (taintsBuilder_ == null) { - if (!other.taints_.isEmpty()) { - if (taints_.isEmpty()) { - taints_ = other.taints_; - bitField0_ = (bitField0_ & ~0x00004000); - } else { - ensureTaintsIsMutable(); - taints_.addAll(other.taints_); - } - onChanged(); - } - } else { - if (!other.taints_.isEmpty()) { - if (taintsBuilder_.isEmpty()) { - taintsBuilder_.dispose(); - taintsBuilder_ = null; - taints_ = other.taints_; - bitField0_ = (bitField0_ & ~0x00004000); - taintsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTaintsFieldBuilder() - : null; - } else { - taintsBuilder_.addAllMessages(other.taints_); - } - } - } - if (other.hasSandboxConfig()) { - mergeSandboxConfig(other.getSandboxConfig()); - } - if (!other.getNodeGroup().isEmpty()) { - nodeGroup_ = other.nodeGroup_; - bitField0_ |= 0x00010000; - onChanged(); - } - if (other.hasReservationAffinity()) { - mergeReservationAffinity(other.getReservationAffinity()); - } - if (other.hasShieldedInstanceConfig()) { - mergeShieldedInstanceConfig(other.getShieldedInstanceConfig()); - } - if (other.hasLinuxNodeConfig()) { - mergeLinuxNodeConfig(other.getLinuxNodeConfig()); - } - if (other.hasKubeletConfig()) { - mergeKubeletConfig(other.getKubeletConfig()); - } - if (!other.getBootDiskKmsKey().isEmpty()) { - bootDiskKmsKey_ = other.bootDiskKmsKey_; - bitField0_ |= 0x00200000; - onChanged(); - } - if (other.hasGcfsConfig()) { - mergeGcfsConfig(other.getGcfsConfig()); - } - if (other.hasAdvancedMachineFeatures()) { - mergeAdvancedMachineFeatures(other.getAdvancedMachineFeatures()); - } - if (other.hasGvnic()) { - mergeGvnic(other.getGvnic()); - } - if (other.getSpot() != false) { - setSpot(other.getSpot()); - } - if (other.hasConfidentialNodes()) { - mergeConfidentialNodes(other.getConfidentialNodes()); - } - if (other.hasFastSocket()) { - mergeFastSocket(other.getFastSocket()); - } - internalGetMutableResourceLabels().mergeFrom(other.internalGetResourceLabels()); - bitField0_ |= 0x10000000; - if (other.hasLoggingConfig()) { - mergeLoggingConfig(other.getLoggingConfig()); - } - if (other.hasWindowsNodeConfig()) { - mergeWindowsNodeConfig(other.getWindowsNodeConfig()); - } - if (other.hasLocalNvmeSsdBlockConfig()) { - mergeLocalNvmeSsdBlockConfig(other.getLocalNvmeSsdBlockConfig()); - } - if (other.hasEphemeralStorageLocalSsdConfig()) { - mergeEphemeralStorageLocalSsdConfig(other.getEphemeralStorageLocalSsdConfig()); - } - if (other.hasSoleTenantConfig()) { - mergeSoleTenantConfig(other.getSoleTenantConfig()); - } - if (other.hasResourceManagerTags()) { - mergeResourceManagerTags(other.getResourceManagerTags()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - machineType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - diskSizeGb_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureOauthScopesIsMutable(); - oauthScopes_.add(s); - break; - } // case 26 - case 34: - { - com.google.protobuf.MapEntry metadata__ = - input.readMessage( - MetadataDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableMetadata() - .getMutableMap() - .put(metadata__.getKey(), metadata__.getValue()); - bitField0_ |= 0x00000010; - break; - } // case 34 - case 42: - { - imageType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 42 - case 50: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 50 - case 56: - { - localSsdCount_ = input.readInt32(); - bitField0_ |= 0x00000080; - break; - } // case 56 - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureTagsIsMutable(); - tags_.add(s); - break; - } // case 66 - case 74: - { - serviceAccount_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 74 - case 80: - { - preemptible_ = input.readBool(); - bitField0_ |= 0x00000200; - break; - } // case 80 - case 90: - { - com.google.container.v1.AcceleratorConfig m = - input.readMessage( - com.google.container.v1.AcceleratorConfig.parser(), extensionRegistry); - if (acceleratorsBuilder_ == null) { - ensureAcceleratorsIsMutable(); - accelerators_.add(m); - } else { - acceleratorsBuilder_.addMessage(m); - } - break; - } // case 90 - case 98: - { - diskType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; - break; - } // case 98 - case 106: - { - minCpuPlatform_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; - break; - } // case 106 - case 114: - { - input.readMessage( - getWorkloadMetadataConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00002000; - break; - } // case 114 - case 122: - { - com.google.container.v1.NodeTaint m = - input.readMessage( - com.google.container.v1.NodeTaint.parser(), extensionRegistry); - if (taintsBuilder_ == null) { - ensureTaintsIsMutable(); - taints_.add(m); - } else { - taintsBuilder_.addMessage(m); - } - break; - } // case 122 - case 138: - { - input.readMessage(getSandboxConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00008000; - break; - } // case 138 - case 146: - { - nodeGroup_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00010000; - break; - } // case 146 - case 154: - { - input.readMessage( - getReservationAffinityFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00020000; - break; - } // case 154 - case 162: - { - input.readMessage( - getShieldedInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00040000; - break; - } // case 162 - case 170: - { - input.readMessage(getLinuxNodeConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00080000; - break; - } // case 170 - case 178: - { - input.readMessage(getKubeletConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00100000; - break; - } // case 178 - case 186: - { - bootDiskKmsKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00200000; - break; - } // case 186 - case 202: - { - input.readMessage(getGcfsConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00400000; - break; - } // case 202 - case 210: - { - input.readMessage( - getAdvancedMachineFeaturesFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00800000; - break; - } // case 210 - case 234: - { - input.readMessage(getGvnicFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x01000000; - break; - } // case 234 - case 256: - { - spot_ = input.readBool(); - bitField0_ |= 0x02000000; - break; - } // case 256 - case 282: - { - input.readMessage( - getConfidentialNodesFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x04000000; - break; - } // case 282 - case 290: - { - input.readMessage(getFastSocketFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x08000000; - break; - } // case 290 - case 298: - { - com.google.protobuf.MapEntry resourceLabels__ = - input.readMessage( - ResourceLabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableResourceLabels() - .getMutableMap() - .put(resourceLabels__.getKey(), resourceLabels__.getValue()); - bitField0_ |= 0x10000000; - break; - } // case 298 - case 306: - { - input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x20000000; - break; - } // case 306 - case 314: - { - input.readMessage( - getWindowsNodeConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x40000000; - break; - } // case 314 - case 322: - { - input.readMessage( - getLocalNvmeSsdBlockConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x80000000; - break; - } // case 322 - case 330: - { - input.readMessage( - getEphemeralStorageLocalSsdConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField1_ |= 0x00000001; - break; - } // case 330 - case 338: - { - input.readMessage( - getSoleTenantConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000002; - break; - } // case 338 - case 362: - { - input.readMessage( - getResourceManagerTagsFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000004; - break; - } // case 362 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - private int bitField1_; - - 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; - bitField0_ |= 0x00000001; - 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(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - 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; - bitField0_ |= 0x00000002; - 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() { - bitField0_ = (bitField0_ & ~0x00000002); - diskSizeGb_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList oauthScopes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureOauthScopesIsMutable() { - if (!oauthScopes_.isModifiable()) { - oauthScopes_ = new com.google.protobuf.LazyStringArrayList(oauthScopes_); - } - bitField0_ |= 0x00000004; - } - /** - * - * - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     *
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     *
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](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() { - oauthScopes_.makeImmutable(); - 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); - } - /** - * - * - *
-     * 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); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     *
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     *
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](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); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     *
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     *
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](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_); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     *
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     *
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](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.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; - onChanged(); - return this; - } - /** - * - * - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     *
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     *
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](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); - bitField0_ |= 0x00000004; - 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; - bitField0_ |= 0x00000008; - 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(); - bitField0_ = (bitField0_ & ~0x00000008); - 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; - bitField0_ |= 0x00000008; - 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() { - if (metadata_ == null) { - metadata_ = - com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry); - } - if (!metadata_.isMutable()) { - metadata_ = metadata_.copy(); - } - bitField0_ |= 0x00000010; - onChanged(); - 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-os-login"
-     *  - "gci-ensure-gke-docker"
-     *  - "gci-metrics-enabled"
-     *  - "gci-update-strategy"
-     *  - "instance-template"
-     *  - "kube-env"
-     *  - "startup-script"
-     *  - "user-data"
-     *  - "disable-address-manager"
-     *  - "windows-startup-script-ps1"
-     *  - "common-psm1"
-     *  - "k8s-node-setup-psm1"
-     *  - "install-ssh-psm1"
-     *  - "user-profile-psm1"
-     *
-     * 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 NullPointerException("map key"); - } - 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-os-login"
-     *  - "gci-ensure-gke-docker"
-     *  - "gci-metrics-enabled"
-     *  - "gci-update-strategy"
-     *  - "instance-template"
-     *  - "kube-env"
-     *  - "startup-script"
-     *  - "user-data"
-     *  - "disable-address-manager"
-     *  - "windows-startup-script-ps1"
-     *  - "common-psm1"
-     *  - "k8s-node-setup-psm1"
-     *  - "install-ssh-psm1"
-     *  - "user-profile-psm1"
-     *
-     * 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-os-login"
-     *  - "gci-ensure-gke-docker"
-     *  - "gci-metrics-enabled"
-     *  - "gci-update-strategy"
-     *  - "instance-template"
-     *  - "kube-env"
-     *  - "startup-script"
-     *  - "user-data"
-     *  - "disable-address-manager"
-     *  - "windows-startup-script-ps1"
-     *  - "common-psm1"
-     *  - "k8s-node-setup-psm1"
-     *  - "install-ssh-psm1"
-     *  - "user-profile-psm1"
-     *
-     * 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 /* nullable */ java.lang.String getMetadataOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - 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-os-login"
-     *  - "gci-ensure-gke-docker"
-     *  - "gci-metrics-enabled"
-     *  - "gci-update-strategy"
-     *  - "instance-template"
-     *  - "kube-env"
-     *  - "startup-script"
-     *  - "user-data"
-     *  - "disable-address-manager"
-     *  - "windows-startup-script-ps1"
-     *  - "common-psm1"
-     *  - "k8s-node-setup-psm1"
-     *  - "install-ssh-psm1"
-     *  - "user-profile-psm1"
-     *
-     * 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 NullPointerException("map key"); - } - java.util.Map map = internalGetMetadata().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearMetadata() { - bitField0_ = (bitField0_ & ~0x00000010); - 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-os-login"
-     *  - "gci-ensure-gke-docker"
-     *  - "gci-metrics-enabled"
-     *  - "gci-update-strategy"
-     *  - "instance-template"
-     *  - "kube-env"
-     *  - "startup-script"
-     *  - "user-data"
-     *  - "disable-address-manager"
-     *  - "windows-startup-script-ps1"
-     *  - "common-psm1"
-     *  - "k8s-node-setup-psm1"
-     *  - "install-ssh-psm1"
-     *  - "user-profile-psm1"
-     *
-     * 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 NullPointerException("map key"); - } - internalGetMutableMetadata().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableMetadata() { - bitField0_ |= 0x00000010; - 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-os-login"
-     *  - "gci-ensure-gke-docker"
-     *  - "gci-metrics-enabled"
-     *  - "gci-update-strategy"
-     *  - "instance-template"
-     *  - "kube-env"
-     *  - "startup-script"
-     *  - "user-data"
-     *  - "disable-address-manager"
-     *  - "windows-startup-script-ps1"
-     *  - "common-psm1"
-     *  - "k8s-node-setup-psm1"
-     *  - "install-ssh-psm1"
-     *  - "user-profile-psm1"
-     *
-     * 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 NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableMetadata().getMutableMap().put(key, value); - bitField0_ |= 0x00000010; - 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-os-login"
-     *  - "gci-ensure-gke-docker"
-     *  - "gci-metrics-enabled"
-     *  - "gci-update-strategy"
-     *  - "instance-template"
-     *  - "kube-env"
-     *  - "startup-script"
-     *  - "user-data"
-     *  - "disable-address-manager"
-     *  - "windows-startup-script-ps1"
-     *  - "common-psm1"
-     *  - "k8s-node-setup-psm1"
-     *  - "install-ssh-psm1"
-     *  - "user-profile-psm1"
-     *
-     * 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); - bitField0_ |= 0x00000010; - 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. Please see
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-     * available image types.
-     * 
- * - * 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. Please see
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-     * available image types.
-     * 
- * - * 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. Please see
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-     * available image types.
-     * 
- * - * 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; - bitField0_ |= 0x00000020; - 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. Please see
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-     * available image types.
-     * 
- * - * string image_type = 5; - * - * @return This builder for chaining. - */ - public Builder clearImageType() { - imageType_ = getDefaultInstance().getImageType(); - bitField0_ = (bitField0_ & ~0x00000020); - 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. Please see
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-     * available image types.
-     * 
- * - * 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; - bitField0_ |= 0x00000020; - 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() { - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - bitField0_ |= 0x00000040; - onChanged(); - 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 NullPointerException("map key"); - } - 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 /* nullable */ java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - 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 NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00000040); - 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 NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - bitField0_ |= 0x00000040; - 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 NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00000040; - 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); - bitField0_ |= 0x00000040; - 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; - bitField0_ |= 0x00000080; - 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() { - bitField0_ = (bitField0_ & ~0x00000080); - localSsdCount_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList tags_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureTagsIsMutable() { - if (!tags_.isModifiable()) { - tags_ = new com.google.protobuf.LazyStringArrayList(tags_); - } - bitField0_ |= 0x00000100; - } - /** - * - * - *
-     * The list of instance tags applied to all nodes. Tags are used to identify
-     * valid sources or targets for network firewalls and are specified by
-     * the client during cluster or node pool creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * repeated string tags = 8; - * - * @return A list containing the tags. - */ - public com.google.protobuf.ProtocolStringList getTagsList() { - tags_.makeImmutable(); - 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); - } - /** - * - * - *
-     * 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); - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * - * - *
-     * The list of instance tags applied to all nodes. Tags are used to identify
-     * valid sources or targets for network firewalls and are specified by
-     * the client during cluster or node pool creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * repeated string tags = 8; - * - * @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); - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * - * - *
-     * The list of instance tags applied to all nodes. Tags are used to identify
-     * valid sources or targets for network firewalls and are specified by
-     * the client during cluster or node pool creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * repeated string tags = 8; - * - * @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_); - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * - * - *
-     * The list of instance tags applied to all nodes. Tags are used to identify
-     * valid sources or targets for network firewalls and are specified by
-     * the client during cluster or node pool creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * repeated string tags = 8; - * - * @return This builder for chaining. - */ - public Builder clearTags() { - tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); - ; - onChanged(); - return this; - } - /** - * - * - *
-     * The list of instance tags applied to all nodes. Tags are used to identify
-     * valid sources or targets for network firewalls and are specified by
-     * the client during cluster or node pool creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * repeated string tags = 8; - * - * @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); - bitField0_ |= 0x00000100; - 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
-     * information 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
-     * information 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; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether the nodes are created as preemptible VM instances. See:
-     * https://cloud.google.com/compute/docs/instances/preemptible for more
-     * information about preemptible VM instances.
-     * 
- * - * bool preemptible = 10; - * - * @return This builder for chaining. - */ - public Builder clearPreemptible() { - bitField0_ = (bitField0_ & ~0x00000200); - preemptible_ = false; - onChanged(); - return this; - } - - private java.util.List accelerators_ = - java.util.Collections.emptyList(); - - private void ensureAcceleratorsIsMutable() { - if (!((bitField0_ & 0x00000400) != 0)) { - accelerators_ = - new java.util.ArrayList(accelerators_); - bitField0_ |= 0x00000400; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.AcceleratorConfig, - com.google.container.v1.AcceleratorConfig.Builder, - com.google.container.v1.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.v1.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.v1.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.v1.AcceleratorConfig accelerators = 11; - */ - public com.google.container.v1.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.v1.AcceleratorConfig accelerators = 11; - */ - public Builder setAccelerators(int index, com.google.container.v1.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.v1.AcceleratorConfig accelerators = 11; - */ - public Builder setAccelerators( - int index, com.google.container.v1.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.v1.AcceleratorConfig accelerators = 11; - */ - public Builder addAccelerators(com.google.container.v1.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.v1.AcceleratorConfig accelerators = 11; - */ - public Builder addAccelerators(int index, com.google.container.v1.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.v1.AcceleratorConfig accelerators = 11; - */ - public Builder addAccelerators( - com.google.container.v1.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.v1.AcceleratorConfig accelerators = 11; - */ - public Builder addAccelerators( - int index, com.google.container.v1.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.v1.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.v1.AcceleratorConfig accelerators = 11; - */ - public Builder clearAccelerators() { - if (acceleratorsBuilder_ == null) { - accelerators_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); - onChanged(); - } else { - acceleratorsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1.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.v1.AcceleratorConfig accelerators = 11; - */ - public com.google.container.v1.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.v1.AcceleratorConfig accelerators = 11; - */ - public com.google.container.v1.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.v1.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.v1.AcceleratorConfig accelerators = 11; - */ - public com.google.container.v1.AcceleratorConfig.Builder addAcceleratorsBuilder() { - return getAcceleratorsFieldBuilder() - .addBuilder(com.google.container.v1.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.v1.AcceleratorConfig accelerators = 11; - */ - public com.google.container.v1.AcceleratorConfig.Builder addAcceleratorsBuilder(int index) { - return getAcceleratorsFieldBuilder() - .addBuilder(index, com.google.container.v1.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.v1.AcceleratorConfig accelerators = 11; - */ - public java.util.List - getAcceleratorsBuilderList() { - return getAcceleratorsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.AcceleratorConfig, - com.google.container.v1.AcceleratorConfig.Builder, - com.google.container.v1.AcceleratorConfigOrBuilder> - getAcceleratorsFieldBuilder() { - if (acceleratorsBuilder_ == null) { - acceleratorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.AcceleratorConfig, - com.google.container.v1.AcceleratorConfig.Builder, - com.google.container.v1.AcceleratorConfigOrBuilder>( - accelerators_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); - accelerators_ = null; - } - return acceleratorsBuilder_; - } - - 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; - bitField0_ |= 0x00000800; - 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(); - bitField0_ = (bitField0_ & ~0x00000800); - 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; - bitField0_ |= 0x00000800; - 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; - bitField0_ |= 0x00001000; - 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(); - bitField0_ = (bitField0_ & ~0x00001000); - 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; - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - - private com.google.container.v1.WorkloadMetadataConfig workloadMetadataConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WorkloadMetadataConfig, - com.google.container.v1.WorkloadMetadataConfig.Builder, - com.google.container.v1.WorkloadMetadataConfigOrBuilder> - workloadMetadataConfigBuilder_; - /** - * - * - *
-     * The workload metadata configuration for this node.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * - * @return Whether the workloadMetadataConfig field is set. - */ - public boolean hasWorkloadMetadataConfig() { - return ((bitField0_ & 0x00002000) != 0); - } - /** - * - * - *
-     * The workload metadata configuration for this node.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * - * @return The workloadMetadataConfig. - */ - public com.google.container.v1.WorkloadMetadataConfig getWorkloadMetadataConfig() { - if (workloadMetadataConfigBuilder_ == null) { - return workloadMetadataConfig_ == null - ? com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance() - : workloadMetadataConfig_; - } else { - return workloadMetadataConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The workload metadata configuration for this node.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public Builder setWorkloadMetadataConfig(com.google.container.v1.WorkloadMetadataConfig value) { - if (workloadMetadataConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workloadMetadataConfig_ = value; - } else { - workloadMetadataConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - * - * - *
-     * The workload metadata configuration for this node.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public Builder setWorkloadMetadataConfig( - com.google.container.v1.WorkloadMetadataConfig.Builder builderForValue) { - if (workloadMetadataConfigBuilder_ == null) { - workloadMetadataConfig_ = builderForValue.build(); - } else { - workloadMetadataConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - * - * - *
-     * The workload metadata configuration for this node.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public Builder mergeWorkloadMetadataConfig( - com.google.container.v1.WorkloadMetadataConfig value) { - if (workloadMetadataConfigBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) - && workloadMetadataConfig_ != null - && workloadMetadataConfig_ - != com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance()) { - getWorkloadMetadataConfigBuilder().mergeFrom(value); - } else { - workloadMetadataConfig_ = value; - } - } else { - workloadMetadataConfigBuilder_.mergeFrom(value); - } - if (workloadMetadataConfig_ != null) { - bitField0_ |= 0x00002000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The workload metadata configuration for this node.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public Builder clearWorkloadMetadataConfig() { - bitField0_ = (bitField0_ & ~0x00002000); - workloadMetadataConfig_ = null; - if (workloadMetadataConfigBuilder_ != null) { - workloadMetadataConfigBuilder_.dispose(); - workloadMetadataConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The workload metadata configuration for this node.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public com.google.container.v1.WorkloadMetadataConfig.Builder - getWorkloadMetadataConfigBuilder() { - bitField0_ |= 0x00002000; - onChanged(); - return getWorkloadMetadataConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The workload metadata configuration for this node.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public com.google.container.v1.WorkloadMetadataConfigOrBuilder - getWorkloadMetadataConfigOrBuilder() { - if (workloadMetadataConfigBuilder_ != null) { - return workloadMetadataConfigBuilder_.getMessageOrBuilder(); - } else { - return workloadMetadataConfig_ == null - ? com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance() - : workloadMetadataConfig_; - } - } - /** - * - * - *
-     * The workload metadata configuration for this node.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WorkloadMetadataConfig, - com.google.container.v1.WorkloadMetadataConfig.Builder, - com.google.container.v1.WorkloadMetadataConfigOrBuilder> - getWorkloadMetadataConfigFieldBuilder() { - if (workloadMetadataConfigBuilder_ == null) { - workloadMetadataConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WorkloadMetadataConfig, - com.google.container.v1.WorkloadMetadataConfig.Builder, - com.google.container.v1.WorkloadMetadataConfigOrBuilder>( - getWorkloadMetadataConfig(), getParentForChildren(), isClean()); - workloadMetadataConfig_ = null; - } - return workloadMetadataConfigBuilder_; - } - - private java.util.List taints_ = - java.util.Collections.emptyList(); - - private void ensureTaintsIsMutable() { - if (!((bitField0_ & 0x00004000) != 0)) { - taints_ = new java.util.ArrayList(taints_); - bitField0_ |= 0x00004000; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.NodeTaint, - com.google.container.v1.NodeTaint.Builder, - com.google.container.v1.NodeTaintOrBuilder> - taintsBuilder_; - - /** - * - * - *
-     * List of kubernetes taints to be applied to each node.
-     *
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-     * 
- * - * repeated .google.container.v1.NodeTaint taints = 15; - */ - public java.util.List getTaintsList() { - if (taintsBuilder_ == null) { - return java.util.Collections.unmodifiableList(taints_); - } else { - 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.v1.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.v1.NodeTaint taints = 15; - */ - public com.google.container.v1.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.v1.NodeTaint taints = 15; - */ - public Builder setTaints(int index, com.google.container.v1.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.v1.NodeTaint taints = 15; - */ - public Builder setTaints(int index, com.google.container.v1.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.v1.NodeTaint taints = 15; - */ - public Builder addTaints(com.google.container.v1.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.v1.NodeTaint taints = 15; - */ - public Builder addTaints(int index, com.google.container.v1.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.v1.NodeTaint taints = 15; - */ - public Builder addTaints(com.google.container.v1.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.v1.NodeTaint taints = 15; - */ - public Builder addTaints(int index, com.google.container.v1.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.v1.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.v1.NodeTaint taints = 15; - */ - public Builder clearTaints() { - if (taintsBuilder_ == null) { - taints_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00004000); - onChanged(); - } else { - taintsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * List of kubernetes taints to be applied to each node.
-     *
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-     * 
- * - * repeated .google.container.v1.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.v1.NodeTaint taints = 15; - */ - public com.google.container.v1.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.v1.NodeTaint taints = 15; - */ - public com.google.container.v1.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.v1.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.v1.NodeTaint taints = 15; - */ - public com.google.container.v1.NodeTaint.Builder addTaintsBuilder() { - return getTaintsFieldBuilder() - .addBuilder(com.google.container.v1.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.v1.NodeTaint taints = 15; - */ - public com.google.container.v1.NodeTaint.Builder addTaintsBuilder(int index) { - return getTaintsFieldBuilder() - .addBuilder(index, com.google.container.v1.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.v1.NodeTaint taints = 15; - */ - public java.util.List getTaintsBuilderList() { - return getTaintsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.NodeTaint, - com.google.container.v1.NodeTaint.Builder, - com.google.container.v1.NodeTaintOrBuilder> - getTaintsFieldBuilder() { - if (taintsBuilder_ == null) { - taintsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.NodeTaint, - com.google.container.v1.NodeTaint.Builder, - com.google.container.v1.NodeTaintOrBuilder>( - taints_, ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean()); - taints_ = null; - } - return taintsBuilder_; - } - - private com.google.container.v1.SandboxConfig sandboxConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.SandboxConfig, - com.google.container.v1.SandboxConfig.Builder, - com.google.container.v1.SandboxConfigOrBuilder> - sandboxConfigBuilder_; - /** - * - * - *
-     * Sandbox configuration for this node.
-     * 
- * - * .google.container.v1.SandboxConfig sandbox_config = 17; - * - * @return Whether the sandboxConfig field is set. - */ - public boolean hasSandboxConfig() { - return ((bitField0_ & 0x00008000) != 0); - } - /** - * - * - *
-     * Sandbox configuration for this node.
-     * 
- * - * .google.container.v1.SandboxConfig sandbox_config = 17; - * - * @return The sandboxConfig. - */ - public com.google.container.v1.SandboxConfig getSandboxConfig() { - if (sandboxConfigBuilder_ == null) { - return sandboxConfig_ == null - ? com.google.container.v1.SandboxConfig.getDefaultInstance() - : sandboxConfig_; - } else { - return sandboxConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Sandbox configuration for this node.
-     * 
- * - * .google.container.v1.SandboxConfig sandbox_config = 17; - */ - public Builder setSandboxConfig(com.google.container.v1.SandboxConfig value) { - if (sandboxConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sandboxConfig_ = value; - } else { - sandboxConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - /** - * - * - *
-     * Sandbox configuration for this node.
-     * 
- * - * .google.container.v1.SandboxConfig sandbox_config = 17; - */ - public Builder setSandboxConfig(com.google.container.v1.SandboxConfig.Builder builderForValue) { - if (sandboxConfigBuilder_ == null) { - sandboxConfig_ = builderForValue.build(); - } else { - sandboxConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - /** - * - * - *
-     * Sandbox configuration for this node.
-     * 
- * - * .google.container.v1.SandboxConfig sandbox_config = 17; - */ - public Builder mergeSandboxConfig(com.google.container.v1.SandboxConfig value) { - if (sandboxConfigBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) - && sandboxConfig_ != null - && sandboxConfig_ != com.google.container.v1.SandboxConfig.getDefaultInstance()) { - getSandboxConfigBuilder().mergeFrom(value); - } else { - sandboxConfig_ = value; - } - } else { - sandboxConfigBuilder_.mergeFrom(value); - } - if (sandboxConfig_ != null) { - bitField0_ |= 0x00008000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Sandbox configuration for this node.
-     * 
- * - * .google.container.v1.SandboxConfig sandbox_config = 17; - */ - public Builder clearSandboxConfig() { - bitField0_ = (bitField0_ & ~0x00008000); - sandboxConfig_ = null; - if (sandboxConfigBuilder_ != null) { - sandboxConfigBuilder_.dispose(); - sandboxConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Sandbox configuration for this node.
-     * 
- * - * .google.container.v1.SandboxConfig sandbox_config = 17; - */ - public com.google.container.v1.SandboxConfig.Builder getSandboxConfigBuilder() { - bitField0_ |= 0x00008000; - onChanged(); - return getSandboxConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Sandbox configuration for this node.
-     * 
- * - * .google.container.v1.SandboxConfig sandbox_config = 17; - */ - public com.google.container.v1.SandboxConfigOrBuilder getSandboxConfigOrBuilder() { - if (sandboxConfigBuilder_ != null) { - return sandboxConfigBuilder_.getMessageOrBuilder(); - } else { - return sandboxConfig_ == null - ? com.google.container.v1.SandboxConfig.getDefaultInstance() - : sandboxConfig_; - } - } - /** - * - * - *
-     * Sandbox configuration for this node.
-     * 
- * - * .google.container.v1.SandboxConfig sandbox_config = 17; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.SandboxConfig, - com.google.container.v1.SandboxConfig.Builder, - com.google.container.v1.SandboxConfigOrBuilder> - getSandboxConfigFieldBuilder() { - if (sandboxConfigBuilder_ == null) { - sandboxConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.SandboxConfig, - com.google.container.v1.SandboxConfig.Builder, - com.google.container.v1.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; - bitField0_ |= 0x00010000; - 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(); - bitField0_ = (bitField0_ & ~0x00010000); - 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; - bitField0_ |= 0x00010000; - onChanged(); - return this; - } - - private com.google.container.v1.ReservationAffinity reservationAffinity_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ReservationAffinity, - com.google.container.v1.ReservationAffinity.Builder, - com.google.container.v1.ReservationAffinityOrBuilder> - reservationAffinityBuilder_; - /** - * - * - *
-     * The optional reservation affinity. Setting this field will apply
-     * the specified [Zonal Compute
-     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-     * to this node pool.
-     * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - * - * @return Whether the reservationAffinity field is set. - */ - public boolean hasReservationAffinity() { - return ((bitField0_ & 0x00020000) != 0); - } - /** - * - * - *
-     * The optional reservation affinity. Setting this field will apply
-     * the specified [Zonal Compute
-     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-     * to this node pool.
-     * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - * - * @return The reservationAffinity. - */ - public com.google.container.v1.ReservationAffinity getReservationAffinity() { - if (reservationAffinityBuilder_ == null) { - return reservationAffinity_ == null - ? com.google.container.v1.ReservationAffinity.getDefaultInstance() - : reservationAffinity_; - } else { - return reservationAffinityBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The optional reservation affinity. Setting this field will apply
-     * the specified [Zonal Compute
-     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-     * to this node pool.
-     * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - */ - public Builder setReservationAffinity(com.google.container.v1.ReservationAffinity value) { - if (reservationAffinityBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - reservationAffinity_ = value; - } else { - reservationAffinityBuilder_.setMessage(value); - } - bitField0_ |= 0x00020000; - onChanged(); - return this; - } - /** - * - * - *
-     * The optional reservation affinity. Setting this field will apply
-     * the specified [Zonal Compute
-     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-     * to this node pool.
-     * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - */ - public Builder setReservationAffinity( - com.google.container.v1.ReservationAffinity.Builder builderForValue) { - if (reservationAffinityBuilder_ == null) { - reservationAffinity_ = builderForValue.build(); - } else { - reservationAffinityBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00020000; - onChanged(); - return this; - } - /** - * - * - *
-     * The optional reservation affinity. Setting this field will apply
-     * the specified [Zonal Compute
-     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-     * to this node pool.
-     * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - */ - public Builder mergeReservationAffinity(com.google.container.v1.ReservationAffinity value) { - if (reservationAffinityBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) - && reservationAffinity_ != null - && reservationAffinity_ - != com.google.container.v1.ReservationAffinity.getDefaultInstance()) { - getReservationAffinityBuilder().mergeFrom(value); - } else { - reservationAffinity_ = value; - } - } else { - reservationAffinityBuilder_.mergeFrom(value); - } - if (reservationAffinity_ != null) { - bitField0_ |= 0x00020000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The optional reservation affinity. Setting this field will apply
-     * the specified [Zonal Compute
-     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-     * to this node pool.
-     * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - */ - public Builder clearReservationAffinity() { - bitField0_ = (bitField0_ & ~0x00020000); - reservationAffinity_ = null; - if (reservationAffinityBuilder_ != null) { - reservationAffinityBuilder_.dispose(); - reservationAffinityBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The optional reservation affinity. Setting this field will apply
-     * the specified [Zonal Compute
-     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-     * to this node pool.
-     * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - */ - public com.google.container.v1.ReservationAffinity.Builder getReservationAffinityBuilder() { - bitField0_ |= 0x00020000; - onChanged(); - return getReservationAffinityFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The optional reservation affinity. Setting this field will apply
-     * the specified [Zonal Compute
-     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-     * to this node pool.
-     * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - */ - public com.google.container.v1.ReservationAffinityOrBuilder getReservationAffinityOrBuilder() { - if (reservationAffinityBuilder_ != null) { - return reservationAffinityBuilder_.getMessageOrBuilder(); - } else { - return reservationAffinity_ == null - ? com.google.container.v1.ReservationAffinity.getDefaultInstance() - : reservationAffinity_; - } - } - /** - * - * - *
-     * The optional reservation affinity. Setting this field will apply
-     * the specified [Zonal Compute
-     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-     * to this node pool.
-     * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ReservationAffinity, - com.google.container.v1.ReservationAffinity.Builder, - com.google.container.v1.ReservationAffinityOrBuilder> - getReservationAffinityFieldBuilder() { - if (reservationAffinityBuilder_ == null) { - reservationAffinityBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ReservationAffinity, - com.google.container.v1.ReservationAffinity.Builder, - com.google.container.v1.ReservationAffinityOrBuilder>( - getReservationAffinity(), getParentForChildren(), isClean()); - reservationAffinity_ = null; - } - return reservationAffinityBuilder_; - } - - private com.google.container.v1.ShieldedInstanceConfig shieldedInstanceConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ShieldedInstanceConfig, - com.google.container.v1.ShieldedInstanceConfig.Builder, - com.google.container.v1.ShieldedInstanceConfigOrBuilder> - shieldedInstanceConfigBuilder_; - /** - * - * - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - * - * @return Whether the shieldedInstanceConfig field is set. - */ - public boolean hasShieldedInstanceConfig() { - return ((bitField0_ & 0x00040000) != 0); - } - /** - * - * - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - * - * @return The shieldedInstanceConfig. - */ - public com.google.container.v1.ShieldedInstanceConfig getShieldedInstanceConfig() { - if (shieldedInstanceConfigBuilder_ == null) { - return shieldedInstanceConfig_ == null - ? com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() - : shieldedInstanceConfig_; - } else { - return shieldedInstanceConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - */ - public Builder setShieldedInstanceConfig(com.google.container.v1.ShieldedInstanceConfig value) { - if (shieldedInstanceConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - shieldedInstanceConfig_ = value; - } else { - shieldedInstanceConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00040000; - onChanged(); - return this; - } - /** - * - * - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - */ - public Builder setShieldedInstanceConfig( - com.google.container.v1.ShieldedInstanceConfig.Builder builderForValue) { - if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfig_ = builderForValue.build(); - } else { - shieldedInstanceConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00040000; - onChanged(); - return this; - } - /** - * - * - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - */ - public Builder mergeShieldedInstanceConfig( - com.google.container.v1.ShieldedInstanceConfig value) { - if (shieldedInstanceConfigBuilder_ == null) { - if (((bitField0_ & 0x00040000) != 0) - && shieldedInstanceConfig_ != null - && shieldedInstanceConfig_ - != com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance()) { - getShieldedInstanceConfigBuilder().mergeFrom(value); - } else { - shieldedInstanceConfig_ = value; - } - } else { - shieldedInstanceConfigBuilder_.mergeFrom(value); - } - if (shieldedInstanceConfig_ != null) { - bitField0_ |= 0x00040000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - */ - public Builder clearShieldedInstanceConfig() { - bitField0_ = (bitField0_ & ~0x00040000); - shieldedInstanceConfig_ = null; - if (shieldedInstanceConfigBuilder_ != null) { - shieldedInstanceConfigBuilder_.dispose(); - shieldedInstanceConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - */ - public com.google.container.v1.ShieldedInstanceConfig.Builder - getShieldedInstanceConfigBuilder() { - bitField0_ |= 0x00040000; - onChanged(); - return getShieldedInstanceConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - */ - public com.google.container.v1.ShieldedInstanceConfigOrBuilder - getShieldedInstanceConfigOrBuilder() { - if (shieldedInstanceConfigBuilder_ != null) { - return shieldedInstanceConfigBuilder_.getMessageOrBuilder(); - } else { - return shieldedInstanceConfig_ == null - ? com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() - : shieldedInstanceConfig_; - } - } - /** - * - * - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ShieldedInstanceConfig, - com.google.container.v1.ShieldedInstanceConfig.Builder, - com.google.container.v1.ShieldedInstanceConfigOrBuilder> - getShieldedInstanceConfigFieldBuilder() { - if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ShieldedInstanceConfig, - com.google.container.v1.ShieldedInstanceConfig.Builder, - com.google.container.v1.ShieldedInstanceConfigOrBuilder>( - getShieldedInstanceConfig(), getParentForChildren(), isClean()); - shieldedInstanceConfig_ = null; - } - return shieldedInstanceConfigBuilder_; - } - - private com.google.container.v1.LinuxNodeConfig linuxNodeConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.LinuxNodeConfig, - com.google.container.v1.LinuxNodeConfig.Builder, - com.google.container.v1.LinuxNodeConfigOrBuilder> - linuxNodeConfigBuilder_; - /** - * - * - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 21; - * - * @return Whether the linuxNodeConfig field is set. - */ - public boolean hasLinuxNodeConfig() { - return ((bitField0_ & 0x00080000) != 0); - } - /** - * - * - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 21; - * - * @return The linuxNodeConfig. - */ - public com.google.container.v1.LinuxNodeConfig getLinuxNodeConfig() { - if (linuxNodeConfigBuilder_ == null) { - return linuxNodeConfig_ == null - ? com.google.container.v1.LinuxNodeConfig.getDefaultInstance() - : linuxNodeConfig_; - } else { - return linuxNodeConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 21; - */ - public Builder setLinuxNodeConfig(com.google.container.v1.LinuxNodeConfig value) { - if (linuxNodeConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - linuxNodeConfig_ = value; - } else { - linuxNodeConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00080000; - onChanged(); - return this; - } - /** - * - * - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 21; - */ - public Builder setLinuxNodeConfig( - com.google.container.v1.LinuxNodeConfig.Builder builderForValue) { - if (linuxNodeConfigBuilder_ == null) { - linuxNodeConfig_ = builderForValue.build(); - } else { - linuxNodeConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00080000; - onChanged(); - return this; - } - /** - * - * - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 21; - */ - public Builder mergeLinuxNodeConfig(com.google.container.v1.LinuxNodeConfig value) { - if (linuxNodeConfigBuilder_ == null) { - if (((bitField0_ & 0x00080000) != 0) - && linuxNodeConfig_ != null - && linuxNodeConfig_ != com.google.container.v1.LinuxNodeConfig.getDefaultInstance()) { - getLinuxNodeConfigBuilder().mergeFrom(value); - } else { - linuxNodeConfig_ = value; - } - } else { - linuxNodeConfigBuilder_.mergeFrom(value); - } - if (linuxNodeConfig_ != null) { - bitField0_ |= 0x00080000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 21; - */ - public Builder clearLinuxNodeConfig() { - bitField0_ = (bitField0_ & ~0x00080000); - linuxNodeConfig_ = null; - if (linuxNodeConfigBuilder_ != null) { - linuxNodeConfigBuilder_.dispose(); - linuxNodeConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 21; - */ - public com.google.container.v1.LinuxNodeConfig.Builder getLinuxNodeConfigBuilder() { - bitField0_ |= 0x00080000; - onChanged(); - return getLinuxNodeConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 21; - */ - public com.google.container.v1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder() { - if (linuxNodeConfigBuilder_ != null) { - return linuxNodeConfigBuilder_.getMessageOrBuilder(); - } else { - return linuxNodeConfig_ == null - ? com.google.container.v1.LinuxNodeConfig.getDefaultInstance() - : linuxNodeConfig_; - } - } - /** - * - * - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 21; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.LinuxNodeConfig, - com.google.container.v1.LinuxNodeConfig.Builder, - com.google.container.v1.LinuxNodeConfigOrBuilder> - getLinuxNodeConfigFieldBuilder() { - if (linuxNodeConfigBuilder_ == null) { - linuxNodeConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.LinuxNodeConfig, - com.google.container.v1.LinuxNodeConfig.Builder, - com.google.container.v1.LinuxNodeConfigOrBuilder>( - getLinuxNodeConfig(), getParentForChildren(), isClean()); - linuxNodeConfig_ = null; - } - return linuxNodeConfigBuilder_; - } - - private com.google.container.v1.NodeKubeletConfig kubeletConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeKubeletConfig, - com.google.container.v1.NodeKubeletConfig.Builder, - com.google.container.v1.NodeKubeletConfigOrBuilder> - kubeletConfigBuilder_; - /** - * - * - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 22; - * - * @return Whether the kubeletConfig field is set. - */ - public boolean hasKubeletConfig() { - return ((bitField0_ & 0x00100000) != 0); - } - /** - * - * - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 22; - * - * @return The kubeletConfig. - */ - public com.google.container.v1.NodeKubeletConfig getKubeletConfig() { - if (kubeletConfigBuilder_ == null) { - return kubeletConfig_ == null - ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() - : kubeletConfig_; - } else { - return kubeletConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 22; - */ - public Builder setKubeletConfig(com.google.container.v1.NodeKubeletConfig value) { - if (kubeletConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kubeletConfig_ = value; - } else { - kubeletConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00100000; - onChanged(); - return this; - } - /** - * - * - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 22; - */ - public Builder setKubeletConfig( - com.google.container.v1.NodeKubeletConfig.Builder builderForValue) { - if (kubeletConfigBuilder_ == null) { - kubeletConfig_ = builderForValue.build(); - } else { - kubeletConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00100000; - onChanged(); - return this; - } - /** - * - * - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 22; - */ - public Builder mergeKubeletConfig(com.google.container.v1.NodeKubeletConfig value) { - if (kubeletConfigBuilder_ == null) { - if (((bitField0_ & 0x00100000) != 0) - && kubeletConfig_ != null - && kubeletConfig_ != com.google.container.v1.NodeKubeletConfig.getDefaultInstance()) { - getKubeletConfigBuilder().mergeFrom(value); - } else { - kubeletConfig_ = value; - } - } else { - kubeletConfigBuilder_.mergeFrom(value); - } - if (kubeletConfig_ != null) { - bitField0_ |= 0x00100000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 22; - */ - public Builder clearKubeletConfig() { - bitField0_ = (bitField0_ & ~0x00100000); - kubeletConfig_ = null; - if (kubeletConfigBuilder_ != null) { - kubeletConfigBuilder_.dispose(); - kubeletConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 22; - */ - public com.google.container.v1.NodeKubeletConfig.Builder getKubeletConfigBuilder() { - bitField0_ |= 0x00100000; - onChanged(); - return getKubeletConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 22; - */ - public com.google.container.v1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder() { - if (kubeletConfigBuilder_ != null) { - return kubeletConfigBuilder_.getMessageOrBuilder(); - } else { - return kubeletConfig_ == null - ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() - : kubeletConfig_; - } - } - /** - * - * - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 22; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeKubeletConfig, - com.google.container.v1.NodeKubeletConfig.Builder, - com.google.container.v1.NodeKubeletConfigOrBuilder> - getKubeletConfigFieldBuilder() { - if (kubeletConfigBuilder_ == null) { - kubeletConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeKubeletConfig, - com.google.container.v1.NodeKubeletConfig.Builder, - com.google.container.v1.NodeKubeletConfigOrBuilder>( - getKubeletConfig(), getParentForChildren(), isClean()); - kubeletConfig_ = null; - } - return kubeletConfigBuilder_; - } - - private java.lang.Object bootDiskKmsKey_ = ""; - /** - * - * - *
-     *
-     * The Customer Managed Encryption Key used to encrypt the boot disk attached
-     * to each node in the node pool. This should be of the form
-     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-     * For more information about protecting resources with Cloud KMS Keys please
-     * see:
-     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-     * 
- * - * string boot_disk_kms_key = 23; - * - * @return The bootDiskKmsKey. - */ - public java.lang.String getBootDiskKmsKey() { - java.lang.Object ref = bootDiskKmsKey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bootDiskKmsKey_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     *
-     * The Customer Managed Encryption Key used to encrypt the boot disk attached
-     * to each node in the node pool. This should be of the form
-     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-     * For more information about protecting resources with Cloud KMS Keys please
-     * see:
-     * 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; - bitField0_ |= 0x00200000; - 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(); - bitField0_ = (bitField0_ & ~0x00200000); - 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; - bitField0_ |= 0x00200000; - onChanged(); - return this; - } - - private com.google.container.v1.GcfsConfig gcfsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GcfsConfig, - com.google.container.v1.GcfsConfig.Builder, - com.google.container.v1.GcfsConfigOrBuilder> - gcfsConfigBuilder_; - /** - * - * - *
-     * Google Container File System (image streaming) configs.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 25; - * - * @return Whether the gcfsConfig field is set. - */ - public boolean hasGcfsConfig() { - return ((bitField0_ & 0x00400000) != 0); - } - /** - * - * - *
-     * Google Container File System (image streaming) configs.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 25; - * - * @return The gcfsConfig. - */ - public com.google.container.v1.GcfsConfig getGcfsConfig() { - if (gcfsConfigBuilder_ == null) { - return gcfsConfig_ == null - ? com.google.container.v1.GcfsConfig.getDefaultInstance() - : gcfsConfig_; - } else { - return gcfsConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Google Container File System (image streaming) configs.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 25; - */ - public Builder setGcfsConfig(com.google.container.v1.GcfsConfig value) { - if (gcfsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gcfsConfig_ = value; - } else { - gcfsConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00400000; - onChanged(); - return this; - } - /** - * - * - *
-     * Google Container File System (image streaming) configs.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 25; - */ - public Builder setGcfsConfig(com.google.container.v1.GcfsConfig.Builder builderForValue) { - if (gcfsConfigBuilder_ == null) { - gcfsConfig_ = builderForValue.build(); - } else { - gcfsConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00400000; - onChanged(); - return this; - } - /** - * - * - *
-     * Google Container File System (image streaming) configs.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 25; - */ - public Builder mergeGcfsConfig(com.google.container.v1.GcfsConfig value) { - if (gcfsConfigBuilder_ == null) { - if (((bitField0_ & 0x00400000) != 0) - && gcfsConfig_ != null - && gcfsConfig_ != com.google.container.v1.GcfsConfig.getDefaultInstance()) { - getGcfsConfigBuilder().mergeFrom(value); - } else { - gcfsConfig_ = value; - } - } else { - gcfsConfigBuilder_.mergeFrom(value); - } - if (gcfsConfig_ != null) { - bitField0_ |= 0x00400000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Google Container File System (image streaming) configs.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 25; - */ - public Builder clearGcfsConfig() { - bitField0_ = (bitField0_ & ~0x00400000); - gcfsConfig_ = null; - if (gcfsConfigBuilder_ != null) { - gcfsConfigBuilder_.dispose(); - gcfsConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Google Container File System (image streaming) configs.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 25; - */ - public com.google.container.v1.GcfsConfig.Builder getGcfsConfigBuilder() { - bitField0_ |= 0x00400000; - onChanged(); - return getGcfsConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Google Container File System (image streaming) configs.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 25; - */ - public com.google.container.v1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { - if (gcfsConfigBuilder_ != null) { - return gcfsConfigBuilder_.getMessageOrBuilder(); - } else { - return gcfsConfig_ == null - ? com.google.container.v1.GcfsConfig.getDefaultInstance() - : gcfsConfig_; - } - } - /** - * - * - *
-     * Google Container File System (image streaming) configs.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 25; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GcfsConfig, - com.google.container.v1.GcfsConfig.Builder, - com.google.container.v1.GcfsConfigOrBuilder> - getGcfsConfigFieldBuilder() { - if (gcfsConfigBuilder_ == null) { - gcfsConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GcfsConfig, - com.google.container.v1.GcfsConfig.Builder, - com.google.container.v1.GcfsConfigOrBuilder>( - getGcfsConfig(), getParentForChildren(), isClean()); - gcfsConfig_ = null; - } - return gcfsConfigBuilder_; - } - - private com.google.container.v1.AdvancedMachineFeatures advancedMachineFeatures_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AdvancedMachineFeatures, - com.google.container.v1.AdvancedMachineFeatures.Builder, - com.google.container.v1.AdvancedMachineFeaturesOrBuilder> - advancedMachineFeaturesBuilder_; - /** - * - * - *
-     * Advanced features for the Compute Engine VM.
-     * 
- * - * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; - * - * @return Whether the advancedMachineFeatures field is set. - */ - public boolean hasAdvancedMachineFeatures() { - return ((bitField0_ & 0x00800000) != 0); - } - /** - * - * - *
-     * Advanced features for the Compute Engine VM.
-     * 
- * - * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; - * - * @return The advancedMachineFeatures. - */ - public com.google.container.v1.AdvancedMachineFeatures getAdvancedMachineFeatures() { - if (advancedMachineFeaturesBuilder_ == null) { - return advancedMachineFeatures_ == null - ? com.google.container.v1.AdvancedMachineFeatures.getDefaultInstance() - : advancedMachineFeatures_; - } else { - return advancedMachineFeaturesBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Advanced features for the Compute Engine VM.
-     * 
- * - * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; - */ - public Builder setAdvancedMachineFeatures( - com.google.container.v1.AdvancedMachineFeatures value) { - if (advancedMachineFeaturesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - advancedMachineFeatures_ = value; - } else { - advancedMachineFeaturesBuilder_.setMessage(value); - } - bitField0_ |= 0x00800000; - onChanged(); - return this; - } - /** - * - * - *
-     * Advanced features for the Compute Engine VM.
-     * 
- * - * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; - */ - public Builder setAdvancedMachineFeatures( - com.google.container.v1.AdvancedMachineFeatures.Builder builderForValue) { - if (advancedMachineFeaturesBuilder_ == null) { - advancedMachineFeatures_ = builderForValue.build(); - } else { - advancedMachineFeaturesBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00800000; - onChanged(); - return this; - } - /** - * - * - *
-     * Advanced features for the Compute Engine VM.
-     * 
- * - * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; - */ - public Builder mergeAdvancedMachineFeatures( - com.google.container.v1.AdvancedMachineFeatures value) { - if (advancedMachineFeaturesBuilder_ == null) { - if (((bitField0_ & 0x00800000) != 0) - && advancedMachineFeatures_ != null - && advancedMachineFeatures_ - != com.google.container.v1.AdvancedMachineFeatures.getDefaultInstance()) { - getAdvancedMachineFeaturesBuilder().mergeFrom(value); - } else { - advancedMachineFeatures_ = value; - } - } else { - advancedMachineFeaturesBuilder_.mergeFrom(value); - } - if (advancedMachineFeatures_ != null) { - bitField0_ |= 0x00800000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Advanced features for the Compute Engine VM.
-     * 
- * - * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; - */ - public Builder clearAdvancedMachineFeatures() { - bitField0_ = (bitField0_ & ~0x00800000); - advancedMachineFeatures_ = null; - if (advancedMachineFeaturesBuilder_ != null) { - advancedMachineFeaturesBuilder_.dispose(); - advancedMachineFeaturesBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Advanced features for the Compute Engine VM.
-     * 
- * - * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; - */ - public com.google.container.v1.AdvancedMachineFeatures.Builder - getAdvancedMachineFeaturesBuilder() { - bitField0_ |= 0x00800000; - onChanged(); - return getAdvancedMachineFeaturesFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Advanced features for the Compute Engine VM.
-     * 
- * - * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; - */ - public com.google.container.v1.AdvancedMachineFeaturesOrBuilder - getAdvancedMachineFeaturesOrBuilder() { - if (advancedMachineFeaturesBuilder_ != null) { - return advancedMachineFeaturesBuilder_.getMessageOrBuilder(); - } else { - return advancedMachineFeatures_ == null - ? com.google.container.v1.AdvancedMachineFeatures.getDefaultInstance() - : advancedMachineFeatures_; - } - } - /** - * - * - *
-     * Advanced features for the Compute Engine VM.
-     * 
- * - * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AdvancedMachineFeatures, - com.google.container.v1.AdvancedMachineFeatures.Builder, - com.google.container.v1.AdvancedMachineFeaturesOrBuilder> - getAdvancedMachineFeaturesFieldBuilder() { - if (advancedMachineFeaturesBuilder_ == null) { - advancedMachineFeaturesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AdvancedMachineFeatures, - com.google.container.v1.AdvancedMachineFeatures.Builder, - com.google.container.v1.AdvancedMachineFeaturesOrBuilder>( - getAdvancedMachineFeatures(), getParentForChildren(), isClean()); - advancedMachineFeatures_ = null; - } - return advancedMachineFeaturesBuilder_; - } - - private com.google.container.v1.VirtualNIC gvnic_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.VirtualNIC, - com.google.container.v1.VirtualNIC.Builder, - com.google.container.v1.VirtualNICOrBuilder> - gvnicBuilder_; - /** - * - * - *
-     * Enable or disable gvnic in the node pool.
-     * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - * - * @return Whether the gvnic field is set. - */ - public boolean hasGvnic() { - return ((bitField0_ & 0x01000000) != 0); - } - /** - * - * - *
-     * Enable or disable gvnic in the node pool.
-     * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - * - * @return The gvnic. - */ - public com.google.container.v1.VirtualNIC getGvnic() { - if (gvnicBuilder_ == null) { - return gvnic_ == null ? com.google.container.v1.VirtualNIC.getDefaultInstance() : gvnic_; - } else { - return gvnicBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Enable or disable gvnic in the node pool.
-     * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - */ - public Builder setGvnic(com.google.container.v1.VirtualNIC value) { - if (gvnicBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gvnic_ = value; - } else { - gvnicBuilder_.setMessage(value); - } - bitField0_ |= 0x01000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable or disable gvnic in the node pool.
-     * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - */ - public Builder setGvnic(com.google.container.v1.VirtualNIC.Builder builderForValue) { - if (gvnicBuilder_ == null) { - gvnic_ = builderForValue.build(); - } else { - gvnicBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x01000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable or disable gvnic in the node pool.
-     * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - */ - public Builder mergeGvnic(com.google.container.v1.VirtualNIC value) { - if (gvnicBuilder_ == null) { - if (((bitField0_ & 0x01000000) != 0) - && gvnic_ != null - && gvnic_ != com.google.container.v1.VirtualNIC.getDefaultInstance()) { - getGvnicBuilder().mergeFrom(value); - } else { - gvnic_ = value; - } - } else { - gvnicBuilder_.mergeFrom(value); - } - if (gvnic_ != null) { - bitField0_ |= 0x01000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Enable or disable gvnic in the node pool.
-     * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - */ - public Builder clearGvnic() { - bitField0_ = (bitField0_ & ~0x01000000); - gvnic_ = null; - if (gvnicBuilder_ != null) { - gvnicBuilder_.dispose(); - gvnicBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Enable or disable gvnic in the node pool.
-     * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - */ - public com.google.container.v1.VirtualNIC.Builder getGvnicBuilder() { - bitField0_ |= 0x01000000; - onChanged(); - return getGvnicFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Enable or disable gvnic in the node pool.
-     * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - */ - public com.google.container.v1.VirtualNICOrBuilder getGvnicOrBuilder() { - if (gvnicBuilder_ != null) { - return gvnicBuilder_.getMessageOrBuilder(); - } else { - return gvnic_ == null ? com.google.container.v1.VirtualNIC.getDefaultInstance() : gvnic_; - } - } - /** - * - * - *
-     * Enable or disable gvnic in the node pool.
-     * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.VirtualNIC, - com.google.container.v1.VirtualNIC.Builder, - com.google.container.v1.VirtualNICOrBuilder> - getGvnicFieldBuilder() { - if (gvnicBuilder_ == null) { - gvnicBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.VirtualNIC, - com.google.container.v1.VirtualNIC.Builder, - com.google.container.v1.VirtualNICOrBuilder>( - getGvnic(), getParentForChildren(), isClean()); - gvnic_ = null; - } - return gvnicBuilder_; - } - - private boolean spot_; - /** - * - * - *
-     * Spot flag for enabling Spot VM, which is a rebrand of
-     * the existing preemptible flag.
-     * 
- * - * bool spot = 32; - * - * @return The spot. - */ - @java.lang.Override - public boolean getSpot() { - return spot_; - } - /** - * - * - *
-     * Spot flag for enabling Spot VM, which is a rebrand of
-     * the existing preemptible flag.
-     * 
- * - * bool spot = 32; - * - * @param value The spot to set. - * @return This builder for chaining. - */ - public Builder setSpot(boolean value) { - - spot_ = value; - bitField0_ |= 0x02000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Spot flag for enabling Spot VM, which is a rebrand of
-     * the existing preemptible flag.
-     * 
- * - * bool spot = 32; - * - * @return This builder for chaining. - */ - public Builder clearSpot() { - bitField0_ = (bitField0_ & ~0x02000000); - spot_ = false; - onChanged(); - return this; - } - - private com.google.container.v1.ConfidentialNodes confidentialNodes_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ConfidentialNodes, - com.google.container.v1.ConfidentialNodes.Builder, - com.google.container.v1.ConfidentialNodesOrBuilder> - confidentialNodesBuilder_; - /** - * - * - *
-     * Confidential nodes config.
-     * All the nodes in the node pool will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 35; - * - * @return Whether the confidentialNodes field is set. - */ - public boolean hasConfidentialNodes() { - return ((bitField0_ & 0x04000000) != 0); - } - /** - * - * - *
-     * Confidential nodes config.
-     * All the nodes in the node pool will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 35; - * - * @return The confidentialNodes. - */ - public com.google.container.v1.ConfidentialNodes getConfidentialNodes() { - if (confidentialNodesBuilder_ == null) { - return confidentialNodes_ == null - ? com.google.container.v1.ConfidentialNodes.getDefaultInstance() - : confidentialNodes_; - } else { - return confidentialNodesBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Confidential nodes config.
-     * All the nodes in the node pool will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 35; - */ - public Builder setConfidentialNodes(com.google.container.v1.ConfidentialNodes value) { - if (confidentialNodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - confidentialNodes_ = value; - } else { - confidentialNodesBuilder_.setMessage(value); - } - bitField0_ |= 0x04000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Confidential nodes config.
-     * All the nodes in the node pool will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 35; - */ - public Builder setConfidentialNodes( - com.google.container.v1.ConfidentialNodes.Builder builderForValue) { - if (confidentialNodesBuilder_ == null) { - confidentialNodes_ = builderForValue.build(); - } else { - confidentialNodesBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x04000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Confidential nodes config.
-     * All the nodes in the node pool will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 35; - */ - public Builder mergeConfidentialNodes(com.google.container.v1.ConfidentialNodes value) { - if (confidentialNodesBuilder_ == null) { - if (((bitField0_ & 0x04000000) != 0) - && confidentialNodes_ != null - && confidentialNodes_ - != com.google.container.v1.ConfidentialNodes.getDefaultInstance()) { - getConfidentialNodesBuilder().mergeFrom(value); - } else { - confidentialNodes_ = value; - } - } else { - confidentialNodesBuilder_.mergeFrom(value); - } - if (confidentialNodes_ != null) { - bitField0_ |= 0x04000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Confidential nodes config.
-     * All the nodes in the node pool will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 35; - */ - public Builder clearConfidentialNodes() { - bitField0_ = (bitField0_ & ~0x04000000); - confidentialNodes_ = null; - if (confidentialNodesBuilder_ != null) { - confidentialNodesBuilder_.dispose(); - confidentialNodesBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Confidential nodes config.
-     * All the nodes in the node pool will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 35; - */ - public com.google.container.v1.ConfidentialNodes.Builder getConfidentialNodesBuilder() { - bitField0_ |= 0x04000000; - onChanged(); - return getConfidentialNodesFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Confidential nodes config.
-     * All the nodes in the node pool will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 35; - */ - public com.google.container.v1.ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder() { - if (confidentialNodesBuilder_ != null) { - return confidentialNodesBuilder_.getMessageOrBuilder(); - } else { - return confidentialNodes_ == null - ? com.google.container.v1.ConfidentialNodes.getDefaultInstance() - : confidentialNodes_; - } - } - /** - * - * - *
-     * Confidential nodes config.
-     * All the nodes in the node pool will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 35; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ConfidentialNodes, - com.google.container.v1.ConfidentialNodes.Builder, - com.google.container.v1.ConfidentialNodesOrBuilder> - getConfidentialNodesFieldBuilder() { - if (confidentialNodesBuilder_ == null) { - confidentialNodesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ConfidentialNodes, - com.google.container.v1.ConfidentialNodes.Builder, - com.google.container.v1.ConfidentialNodesOrBuilder>( - getConfidentialNodes(), getParentForChildren(), isClean()); - confidentialNodes_ = null; - } - return confidentialNodesBuilder_; - } - - private com.google.container.v1.FastSocket fastSocket_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.FastSocket, - com.google.container.v1.FastSocket.Builder, - com.google.container.v1.FastSocketOrBuilder> - fastSocketBuilder_; - /** - * - * - *
-     * Enable or disable NCCL fast socket for the node pool.
-     * 
- * - * optional .google.container.v1.FastSocket fast_socket = 36; - * - * @return Whether the fastSocket field is set. - */ - public boolean hasFastSocket() { - return ((bitField0_ & 0x08000000) != 0); - } - /** - * - * - *
-     * Enable or disable NCCL fast socket for the node pool.
-     * 
- * - * optional .google.container.v1.FastSocket fast_socket = 36; - * - * @return The fastSocket. - */ - public com.google.container.v1.FastSocket getFastSocket() { - if (fastSocketBuilder_ == null) { - return fastSocket_ == null - ? com.google.container.v1.FastSocket.getDefaultInstance() - : fastSocket_; - } else { - return fastSocketBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Enable or disable NCCL fast socket for the node pool.
-     * 
- * - * optional .google.container.v1.FastSocket fast_socket = 36; - */ - public Builder setFastSocket(com.google.container.v1.FastSocket value) { - if (fastSocketBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - fastSocket_ = value; - } else { - fastSocketBuilder_.setMessage(value); - } - bitField0_ |= 0x08000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable or disable NCCL fast socket for the node pool.
-     * 
- * - * optional .google.container.v1.FastSocket fast_socket = 36; - */ - public Builder setFastSocket(com.google.container.v1.FastSocket.Builder builderForValue) { - if (fastSocketBuilder_ == null) { - fastSocket_ = builderForValue.build(); - } else { - fastSocketBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x08000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable or disable NCCL fast socket for the node pool.
-     * 
- * - * optional .google.container.v1.FastSocket fast_socket = 36; - */ - public Builder mergeFastSocket(com.google.container.v1.FastSocket value) { - if (fastSocketBuilder_ == null) { - if (((bitField0_ & 0x08000000) != 0) - && fastSocket_ != null - && fastSocket_ != com.google.container.v1.FastSocket.getDefaultInstance()) { - getFastSocketBuilder().mergeFrom(value); - } else { - fastSocket_ = value; - } - } else { - fastSocketBuilder_.mergeFrom(value); - } - if (fastSocket_ != null) { - bitField0_ |= 0x08000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Enable or disable NCCL fast socket for the node pool.
-     * 
- * - * optional .google.container.v1.FastSocket fast_socket = 36; - */ - public Builder clearFastSocket() { - bitField0_ = (bitField0_ & ~0x08000000); - fastSocket_ = null; - if (fastSocketBuilder_ != null) { - fastSocketBuilder_.dispose(); - fastSocketBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Enable or disable NCCL fast socket for the node pool.
-     * 
- * - * optional .google.container.v1.FastSocket fast_socket = 36; - */ - public com.google.container.v1.FastSocket.Builder getFastSocketBuilder() { - bitField0_ |= 0x08000000; - onChanged(); - return getFastSocketFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Enable or disable NCCL fast socket for the node pool.
-     * 
- * - * optional .google.container.v1.FastSocket fast_socket = 36; - */ - public com.google.container.v1.FastSocketOrBuilder getFastSocketOrBuilder() { - if (fastSocketBuilder_ != null) { - return fastSocketBuilder_.getMessageOrBuilder(); - } else { - return fastSocket_ == null - ? com.google.container.v1.FastSocket.getDefaultInstance() - : fastSocket_; - } - } - /** - * - * - *
-     * Enable or disable NCCL fast socket for the node pool.
-     * 
- * - * optional .google.container.v1.FastSocket fast_socket = 36; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.FastSocket, - com.google.container.v1.FastSocket.Builder, - com.google.container.v1.FastSocketOrBuilder> - getFastSocketFieldBuilder() { - if (fastSocketBuilder_ == null) { - fastSocketBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.FastSocket, - com.google.container.v1.FastSocket.Builder, - com.google.container.v1.FastSocketOrBuilder>( - getFastSocket(), getParentForChildren(), isClean()); - fastSocket_ = null; - } - return fastSocketBuilder_; - } - - 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() { - if (resourceLabels_ == null) { - resourceLabels_ = - com.google.protobuf.MapField.newMapField(ResourceLabelsDefaultEntryHolder.defaultEntry); - } - if (!resourceLabels_.isMutable()) { - resourceLabels_ = resourceLabels_.copy(); - } - bitField0_ |= 0x10000000; - onChanged(); - return resourceLabels_; - } - - public int getResourceLabelsCount() { - return internalGetResourceLabels().getMap().size(); - } - /** - * - * - *
-     * The resource labels for the node pool to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * map<string, string> resource_labels = 37; - */ - @java.lang.Override - public boolean containsResourceLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - 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 node pool to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * map<string, string> resource_labels = 37; - */ - @java.lang.Override - public java.util.Map getResourceLabelsMap() { - return internalGetResourceLabels().getMap(); - } - /** - * - * - *
-     * The resource labels for the node pool to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * map<string, string> resource_labels = 37; - */ - @java.lang.Override - public /* nullable */ java.lang.String getResourceLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetResourceLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * The resource labels for the node pool to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * map<string, string> resource_labels = 37; - */ - @java.lang.Override - public java.lang.String getResourceLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetResourceLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearResourceLabels() { - bitField0_ = (bitField0_ & ~0x10000000); - internalGetMutableResourceLabels().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * The resource labels for the node pool to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * map<string, string> resource_labels = 37; - */ - public Builder removeResourceLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableResourceLabels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableResourceLabels() { - bitField0_ |= 0x10000000; - return internalGetMutableResourceLabels().getMutableMap(); - } - /** - * - * - *
-     * The resource labels for the node pool to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * map<string, string> resource_labels = 37; - */ - public Builder putResourceLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableResourceLabels().getMutableMap().put(key, value); - bitField0_ |= 0x10000000; - return this; - } - /** - * - * - *
-     * The resource labels for the node pool to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * map<string, string> resource_labels = 37; - */ - public Builder putAllResourceLabels(java.util.Map values) { - internalGetMutableResourceLabels().getMutableMap().putAll(values); - bitField0_ |= 0x10000000; - return this; - } - - private com.google.container.v1.NodePoolLoggingConfig loggingConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePoolLoggingConfig, - com.google.container.v1.NodePoolLoggingConfig.Builder, - com.google.container.v1.NodePoolLoggingConfigOrBuilder> - loggingConfigBuilder_; - /** - * - * - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 38; - * - * @return Whether the loggingConfig field is set. - */ - public boolean hasLoggingConfig() { - return ((bitField0_ & 0x20000000) != 0); - } - /** - * - * - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 38; - * - * @return The loggingConfig. - */ - public com.google.container.v1.NodePoolLoggingConfig getLoggingConfig() { - if (loggingConfigBuilder_ == null) { - return loggingConfig_ == null - ? com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance() - : loggingConfig_; - } else { - return loggingConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 38; - */ - public Builder setLoggingConfig(com.google.container.v1.NodePoolLoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - loggingConfig_ = value; - } else { - loggingConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x20000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 38; - */ - public Builder setLoggingConfig( - com.google.container.v1.NodePoolLoggingConfig.Builder builderForValue) { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = builderForValue.build(); - } else { - loggingConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x20000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 38; - */ - public Builder mergeLoggingConfig(com.google.container.v1.NodePoolLoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (((bitField0_ & 0x20000000) != 0) - && loggingConfig_ != null - && loggingConfig_ - != com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance()) { - getLoggingConfigBuilder().mergeFrom(value); - } else { - loggingConfig_ = value; - } - } else { - loggingConfigBuilder_.mergeFrom(value); - } - if (loggingConfig_ != null) { - bitField0_ |= 0x20000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 38; - */ - public Builder clearLoggingConfig() { - bitField0_ = (bitField0_ & ~0x20000000); - loggingConfig_ = null; - if (loggingConfigBuilder_ != null) { - loggingConfigBuilder_.dispose(); - loggingConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 38; - */ - public com.google.container.v1.NodePoolLoggingConfig.Builder getLoggingConfigBuilder() { - bitField0_ |= 0x20000000; - onChanged(); - return getLoggingConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 38; - */ - public com.google.container.v1.NodePoolLoggingConfigOrBuilder getLoggingConfigOrBuilder() { - if (loggingConfigBuilder_ != null) { - return loggingConfigBuilder_.getMessageOrBuilder(); - } else { - return loggingConfig_ == null - ? com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance() - : loggingConfig_; - } - } - /** - * - * - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 38; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePoolLoggingConfig, - com.google.container.v1.NodePoolLoggingConfig.Builder, - com.google.container.v1.NodePoolLoggingConfigOrBuilder> - getLoggingConfigFieldBuilder() { - if (loggingConfigBuilder_ == null) { - loggingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePoolLoggingConfig, - com.google.container.v1.NodePoolLoggingConfig.Builder, - com.google.container.v1.NodePoolLoggingConfigOrBuilder>( - getLoggingConfig(), getParentForChildren(), isClean()); - loggingConfig_ = null; - } - return loggingConfigBuilder_; - } - - private com.google.container.v1.WindowsNodeConfig windowsNodeConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WindowsNodeConfig, - com.google.container.v1.WindowsNodeConfig.Builder, - com.google.container.v1.WindowsNodeConfigOrBuilder> - windowsNodeConfigBuilder_; - /** - * - * - *
-     * Parameters that can be configured on Windows nodes.
-     * 
- * - * .google.container.v1.WindowsNodeConfig windows_node_config = 39; - * - * @return Whether the windowsNodeConfig field is set. - */ - public boolean hasWindowsNodeConfig() { - return ((bitField0_ & 0x40000000) != 0); - } - /** - * - * - *
-     * Parameters that can be configured on Windows nodes.
-     * 
- * - * .google.container.v1.WindowsNodeConfig windows_node_config = 39; - * - * @return The windowsNodeConfig. - */ - public com.google.container.v1.WindowsNodeConfig getWindowsNodeConfig() { - if (windowsNodeConfigBuilder_ == null) { - return windowsNodeConfig_ == null - ? com.google.container.v1.WindowsNodeConfig.getDefaultInstance() - : windowsNodeConfig_; - } else { - return windowsNodeConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Parameters that can be configured on Windows nodes.
-     * 
- * - * .google.container.v1.WindowsNodeConfig windows_node_config = 39; - */ - public Builder setWindowsNodeConfig(com.google.container.v1.WindowsNodeConfig value) { - if (windowsNodeConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - windowsNodeConfig_ = value; - } else { - windowsNodeConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x40000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Parameters that can be configured on Windows nodes.
-     * 
- * - * .google.container.v1.WindowsNodeConfig windows_node_config = 39; - */ - public Builder setWindowsNodeConfig( - com.google.container.v1.WindowsNodeConfig.Builder builderForValue) { - if (windowsNodeConfigBuilder_ == null) { - windowsNodeConfig_ = builderForValue.build(); - } else { - windowsNodeConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x40000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Parameters that can be configured on Windows nodes.
-     * 
- * - * .google.container.v1.WindowsNodeConfig windows_node_config = 39; - */ - public Builder mergeWindowsNodeConfig(com.google.container.v1.WindowsNodeConfig value) { - if (windowsNodeConfigBuilder_ == null) { - if (((bitField0_ & 0x40000000) != 0) - && windowsNodeConfig_ != null - && windowsNodeConfig_ - != com.google.container.v1.WindowsNodeConfig.getDefaultInstance()) { - getWindowsNodeConfigBuilder().mergeFrom(value); - } else { - windowsNodeConfig_ = value; - } - } else { - windowsNodeConfigBuilder_.mergeFrom(value); - } - if (windowsNodeConfig_ != null) { - bitField0_ |= 0x40000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Parameters that can be configured on Windows nodes.
-     * 
- * - * .google.container.v1.WindowsNodeConfig windows_node_config = 39; - */ - public Builder clearWindowsNodeConfig() { - bitField0_ = (bitField0_ & ~0x40000000); - windowsNodeConfig_ = null; - if (windowsNodeConfigBuilder_ != null) { - windowsNodeConfigBuilder_.dispose(); - windowsNodeConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Parameters that can be configured on Windows nodes.
-     * 
- * - * .google.container.v1.WindowsNodeConfig windows_node_config = 39; - */ - public com.google.container.v1.WindowsNodeConfig.Builder getWindowsNodeConfigBuilder() { - bitField0_ |= 0x40000000; - onChanged(); - return getWindowsNodeConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Parameters that can be configured on Windows nodes.
-     * 
- * - * .google.container.v1.WindowsNodeConfig windows_node_config = 39; - */ - public com.google.container.v1.WindowsNodeConfigOrBuilder getWindowsNodeConfigOrBuilder() { - if (windowsNodeConfigBuilder_ != null) { - return windowsNodeConfigBuilder_.getMessageOrBuilder(); - } else { - return windowsNodeConfig_ == null - ? com.google.container.v1.WindowsNodeConfig.getDefaultInstance() - : windowsNodeConfig_; - } - } - /** - * - * - *
-     * Parameters that can be configured on Windows nodes.
-     * 
- * - * .google.container.v1.WindowsNodeConfig windows_node_config = 39; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WindowsNodeConfig, - com.google.container.v1.WindowsNodeConfig.Builder, - com.google.container.v1.WindowsNodeConfigOrBuilder> - getWindowsNodeConfigFieldBuilder() { - if (windowsNodeConfigBuilder_ == null) { - windowsNodeConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WindowsNodeConfig, - com.google.container.v1.WindowsNodeConfig.Builder, - com.google.container.v1.WindowsNodeConfigOrBuilder>( - getWindowsNodeConfig(), getParentForChildren(), isClean()); - windowsNodeConfig_ = null; - } - return windowsNodeConfigBuilder_; - } - - private com.google.container.v1.LocalNvmeSsdBlockConfig localNvmeSsdBlockConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.LocalNvmeSsdBlockConfig, - com.google.container.v1.LocalNvmeSsdBlockConfig.Builder, - com.google.container.v1.LocalNvmeSsdBlockConfigOrBuilder> - localNvmeSsdBlockConfigBuilder_; - /** - * - * - *
-     * Parameters for using raw-block Local NVMe SSDs.
-     * 
- * - * .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; - * - * @return Whether the localNvmeSsdBlockConfig field is set. - */ - public boolean hasLocalNvmeSsdBlockConfig() { - return ((bitField0_ & 0x80000000) != 0); - } - /** - * - * - *
-     * Parameters for using raw-block Local NVMe SSDs.
-     * 
- * - * .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; - * - * @return The localNvmeSsdBlockConfig. - */ - public com.google.container.v1.LocalNvmeSsdBlockConfig getLocalNvmeSsdBlockConfig() { - if (localNvmeSsdBlockConfigBuilder_ == null) { - return localNvmeSsdBlockConfig_ == null - ? com.google.container.v1.LocalNvmeSsdBlockConfig.getDefaultInstance() - : localNvmeSsdBlockConfig_; - } else { - return localNvmeSsdBlockConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Parameters for using raw-block Local NVMe SSDs.
-     * 
- * - * .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; - */ - public Builder setLocalNvmeSsdBlockConfig( - com.google.container.v1.LocalNvmeSsdBlockConfig value) { - if (localNvmeSsdBlockConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - localNvmeSsdBlockConfig_ = value; - } else { - localNvmeSsdBlockConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x80000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Parameters for using raw-block Local NVMe SSDs.
-     * 
- * - * .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; - */ - public Builder setLocalNvmeSsdBlockConfig( - com.google.container.v1.LocalNvmeSsdBlockConfig.Builder builderForValue) { - if (localNvmeSsdBlockConfigBuilder_ == null) { - localNvmeSsdBlockConfig_ = builderForValue.build(); - } else { - localNvmeSsdBlockConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x80000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Parameters for using raw-block Local NVMe SSDs.
-     * 
- * - * .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; - */ - public Builder mergeLocalNvmeSsdBlockConfig( - com.google.container.v1.LocalNvmeSsdBlockConfig value) { - if (localNvmeSsdBlockConfigBuilder_ == null) { - if (((bitField0_ & 0x80000000) != 0) - && localNvmeSsdBlockConfig_ != null - && localNvmeSsdBlockConfig_ - != com.google.container.v1.LocalNvmeSsdBlockConfig.getDefaultInstance()) { - getLocalNvmeSsdBlockConfigBuilder().mergeFrom(value); - } else { - localNvmeSsdBlockConfig_ = value; - } - } else { - localNvmeSsdBlockConfigBuilder_.mergeFrom(value); - } - if (localNvmeSsdBlockConfig_ != null) { - bitField0_ |= 0x80000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Parameters for using raw-block Local NVMe SSDs.
-     * 
- * - * .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; - */ - public Builder clearLocalNvmeSsdBlockConfig() { - bitField0_ = (bitField0_ & ~0x80000000); - localNvmeSsdBlockConfig_ = null; - if (localNvmeSsdBlockConfigBuilder_ != null) { - localNvmeSsdBlockConfigBuilder_.dispose(); - localNvmeSsdBlockConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Parameters for using raw-block Local NVMe SSDs.
-     * 
- * - * .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; - */ - public com.google.container.v1.LocalNvmeSsdBlockConfig.Builder - getLocalNvmeSsdBlockConfigBuilder() { - bitField0_ |= 0x80000000; - onChanged(); - return getLocalNvmeSsdBlockConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Parameters for using raw-block Local NVMe SSDs.
-     * 
- * - * .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; - */ - public com.google.container.v1.LocalNvmeSsdBlockConfigOrBuilder - getLocalNvmeSsdBlockConfigOrBuilder() { - if (localNvmeSsdBlockConfigBuilder_ != null) { - return localNvmeSsdBlockConfigBuilder_.getMessageOrBuilder(); - } else { - return localNvmeSsdBlockConfig_ == null - ? com.google.container.v1.LocalNvmeSsdBlockConfig.getDefaultInstance() - : localNvmeSsdBlockConfig_; - } - } - /** - * - * - *
-     * Parameters for using raw-block Local NVMe SSDs.
-     * 
- * - * .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.LocalNvmeSsdBlockConfig, - com.google.container.v1.LocalNvmeSsdBlockConfig.Builder, - com.google.container.v1.LocalNvmeSsdBlockConfigOrBuilder> - getLocalNvmeSsdBlockConfigFieldBuilder() { - if (localNvmeSsdBlockConfigBuilder_ == null) { - localNvmeSsdBlockConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.LocalNvmeSsdBlockConfig, - com.google.container.v1.LocalNvmeSsdBlockConfig.Builder, - com.google.container.v1.LocalNvmeSsdBlockConfigOrBuilder>( - getLocalNvmeSsdBlockConfig(), getParentForChildren(), isClean()); - localNvmeSsdBlockConfig_ = null; - } - return localNvmeSsdBlockConfigBuilder_; - } - - private com.google.container.v1.EphemeralStorageLocalSsdConfig ephemeralStorageLocalSsdConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.EphemeralStorageLocalSsdConfig, - com.google.container.v1.EphemeralStorageLocalSsdConfig.Builder, - com.google.container.v1.EphemeralStorageLocalSsdConfigOrBuilder> - ephemeralStorageLocalSsdConfigBuilder_; - /** - * - * - *
-     * Parameters for the node ephemeral storage using Local SSDs.
-     * If unspecified, ephemeral storage is backed by the boot disk.
-     * 
- * - * - * .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; - * - * - * @return Whether the ephemeralStorageLocalSsdConfig field is set. - */ - public boolean hasEphemeralStorageLocalSsdConfig() { - return ((bitField1_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Parameters for the node ephemeral storage using Local SSDs.
-     * If unspecified, ephemeral storage is backed by the boot disk.
-     * 
- * - * - * .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; - * - * - * @return The ephemeralStorageLocalSsdConfig. - */ - public com.google.container.v1.EphemeralStorageLocalSsdConfig - getEphemeralStorageLocalSsdConfig() { - if (ephemeralStorageLocalSsdConfigBuilder_ == null) { - return ephemeralStorageLocalSsdConfig_ == null - ? com.google.container.v1.EphemeralStorageLocalSsdConfig.getDefaultInstance() - : ephemeralStorageLocalSsdConfig_; - } else { - return ephemeralStorageLocalSsdConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Parameters for the node ephemeral storage using Local SSDs.
-     * If unspecified, ephemeral storage is backed by the boot disk.
-     * 
- * - * - * .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; - * - */ - public Builder setEphemeralStorageLocalSsdConfig( - com.google.container.v1.EphemeralStorageLocalSsdConfig value) { - if (ephemeralStorageLocalSsdConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ephemeralStorageLocalSsdConfig_ = value; - } else { - ephemeralStorageLocalSsdConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Parameters for the node ephemeral storage using Local SSDs.
-     * If unspecified, ephemeral storage is backed by the boot disk.
-     * 
- * - * - * .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; - * - */ - public Builder setEphemeralStorageLocalSsdConfig( - com.google.container.v1.EphemeralStorageLocalSsdConfig.Builder builderForValue) { - if (ephemeralStorageLocalSsdConfigBuilder_ == null) { - ephemeralStorageLocalSsdConfig_ = builderForValue.build(); - } else { - ephemeralStorageLocalSsdConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Parameters for the node ephemeral storage using Local SSDs.
-     * If unspecified, ephemeral storage is backed by the boot disk.
-     * 
- * - * - * .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; - * - */ - public Builder mergeEphemeralStorageLocalSsdConfig( - com.google.container.v1.EphemeralStorageLocalSsdConfig value) { - if (ephemeralStorageLocalSsdConfigBuilder_ == null) { - if (((bitField1_ & 0x00000001) != 0) - && ephemeralStorageLocalSsdConfig_ != null - && ephemeralStorageLocalSsdConfig_ - != com.google.container.v1.EphemeralStorageLocalSsdConfig.getDefaultInstance()) { - getEphemeralStorageLocalSsdConfigBuilder().mergeFrom(value); - } else { - ephemeralStorageLocalSsdConfig_ = value; - } - } else { - ephemeralStorageLocalSsdConfigBuilder_.mergeFrom(value); - } - if (ephemeralStorageLocalSsdConfig_ != null) { - bitField1_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Parameters for the node ephemeral storage using Local SSDs.
-     * If unspecified, ephemeral storage is backed by the boot disk.
-     * 
- * - * - * .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; - * - */ - public Builder clearEphemeralStorageLocalSsdConfig() { - bitField1_ = (bitField1_ & ~0x00000001); - ephemeralStorageLocalSsdConfig_ = null; - if (ephemeralStorageLocalSsdConfigBuilder_ != null) { - ephemeralStorageLocalSsdConfigBuilder_.dispose(); - ephemeralStorageLocalSsdConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Parameters for the node ephemeral storage using Local SSDs.
-     * If unspecified, ephemeral storage is backed by the boot disk.
-     * 
- * - * - * .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; - * - */ - public com.google.container.v1.EphemeralStorageLocalSsdConfig.Builder - getEphemeralStorageLocalSsdConfigBuilder() { - bitField1_ |= 0x00000001; - onChanged(); - return getEphemeralStorageLocalSsdConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Parameters for the node ephemeral storage using Local SSDs.
-     * If unspecified, ephemeral storage is backed by the boot disk.
-     * 
- * - * - * .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; - * - */ - public com.google.container.v1.EphemeralStorageLocalSsdConfigOrBuilder - getEphemeralStorageLocalSsdConfigOrBuilder() { - if (ephemeralStorageLocalSsdConfigBuilder_ != null) { - return ephemeralStorageLocalSsdConfigBuilder_.getMessageOrBuilder(); - } else { - return ephemeralStorageLocalSsdConfig_ == null - ? com.google.container.v1.EphemeralStorageLocalSsdConfig.getDefaultInstance() - : ephemeralStorageLocalSsdConfig_; - } - } - /** - * - * - *
-     * Parameters for the node ephemeral storage using Local SSDs.
-     * If unspecified, ephemeral storage is backed by the boot disk.
-     * 
- * - * - * .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.EphemeralStorageLocalSsdConfig, - com.google.container.v1.EphemeralStorageLocalSsdConfig.Builder, - com.google.container.v1.EphemeralStorageLocalSsdConfigOrBuilder> - getEphemeralStorageLocalSsdConfigFieldBuilder() { - if (ephemeralStorageLocalSsdConfigBuilder_ == null) { - ephemeralStorageLocalSsdConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.EphemeralStorageLocalSsdConfig, - com.google.container.v1.EphemeralStorageLocalSsdConfig.Builder, - com.google.container.v1.EphemeralStorageLocalSsdConfigOrBuilder>( - getEphemeralStorageLocalSsdConfig(), getParentForChildren(), isClean()); - ephemeralStorageLocalSsdConfig_ = null; - } - return ephemeralStorageLocalSsdConfigBuilder_; - } - - private com.google.container.v1.SoleTenantConfig soleTenantConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.SoleTenantConfig, - com.google.container.v1.SoleTenantConfig.Builder, - com.google.container.v1.SoleTenantConfigOrBuilder> - soleTenantConfigBuilder_; - /** - * - * - *
-     * Parameters for node pools to be backed by shared sole tenant node groups.
-     * 
- * - * .google.container.v1.SoleTenantConfig sole_tenant_config = 42; - * - * @return Whether the soleTenantConfig field is set. - */ - public boolean hasSoleTenantConfig() { - return ((bitField1_ & 0x00000002) != 0); - } - /** - * - * - *
-     * Parameters for node pools to be backed by shared sole tenant node groups.
-     * 
- * - * .google.container.v1.SoleTenantConfig sole_tenant_config = 42; - * - * @return The soleTenantConfig. - */ - public com.google.container.v1.SoleTenantConfig getSoleTenantConfig() { - if (soleTenantConfigBuilder_ == null) { - return soleTenantConfig_ == null - ? com.google.container.v1.SoleTenantConfig.getDefaultInstance() - : soleTenantConfig_; - } else { - return soleTenantConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Parameters for node pools to be backed by shared sole tenant node groups.
-     * 
- * - * .google.container.v1.SoleTenantConfig sole_tenant_config = 42; - */ - public Builder setSoleTenantConfig(com.google.container.v1.SoleTenantConfig value) { - if (soleTenantConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - soleTenantConfig_ = value; - } else { - soleTenantConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Parameters for node pools to be backed by shared sole tenant node groups.
-     * 
- * - * .google.container.v1.SoleTenantConfig sole_tenant_config = 42; - */ - public Builder setSoleTenantConfig( - com.google.container.v1.SoleTenantConfig.Builder builderForValue) { - if (soleTenantConfigBuilder_ == null) { - soleTenantConfig_ = builderForValue.build(); - } else { - soleTenantConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Parameters for node pools to be backed by shared sole tenant node groups.
-     * 
- * - * .google.container.v1.SoleTenantConfig sole_tenant_config = 42; - */ - public Builder mergeSoleTenantConfig(com.google.container.v1.SoleTenantConfig value) { - if (soleTenantConfigBuilder_ == null) { - if (((bitField1_ & 0x00000002) != 0) - && soleTenantConfig_ != null - && soleTenantConfig_ != com.google.container.v1.SoleTenantConfig.getDefaultInstance()) { - getSoleTenantConfigBuilder().mergeFrom(value); - } else { - soleTenantConfig_ = value; - } - } else { - soleTenantConfigBuilder_.mergeFrom(value); - } - if (soleTenantConfig_ != null) { - bitField1_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Parameters for node pools to be backed by shared sole tenant node groups.
-     * 
- * - * .google.container.v1.SoleTenantConfig sole_tenant_config = 42; - */ - public Builder clearSoleTenantConfig() { - bitField1_ = (bitField1_ & ~0x00000002); - soleTenantConfig_ = null; - if (soleTenantConfigBuilder_ != null) { - soleTenantConfigBuilder_.dispose(); - soleTenantConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Parameters for node pools to be backed by shared sole tenant node groups.
-     * 
- * - * .google.container.v1.SoleTenantConfig sole_tenant_config = 42; - */ - public com.google.container.v1.SoleTenantConfig.Builder getSoleTenantConfigBuilder() { - bitField1_ |= 0x00000002; - onChanged(); - return getSoleTenantConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Parameters for node pools to be backed by shared sole tenant node groups.
-     * 
- * - * .google.container.v1.SoleTenantConfig sole_tenant_config = 42; - */ - public com.google.container.v1.SoleTenantConfigOrBuilder getSoleTenantConfigOrBuilder() { - if (soleTenantConfigBuilder_ != null) { - return soleTenantConfigBuilder_.getMessageOrBuilder(); - } else { - return soleTenantConfig_ == null - ? com.google.container.v1.SoleTenantConfig.getDefaultInstance() - : soleTenantConfig_; - } - } - /** - * - * - *
-     * Parameters for node pools to be backed by shared sole tenant node groups.
-     * 
- * - * .google.container.v1.SoleTenantConfig sole_tenant_config = 42; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.SoleTenantConfig, - com.google.container.v1.SoleTenantConfig.Builder, - com.google.container.v1.SoleTenantConfigOrBuilder> - getSoleTenantConfigFieldBuilder() { - if (soleTenantConfigBuilder_ == null) { - soleTenantConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.SoleTenantConfig, - com.google.container.v1.SoleTenantConfig.Builder, - com.google.container.v1.SoleTenantConfigOrBuilder>( - getSoleTenantConfig(), getParentForChildren(), isClean()); - soleTenantConfig_ = null; - } - return soleTenantConfigBuilder_; - } - - private com.google.container.v1.ResourceManagerTags resourceManagerTags_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ResourceManagerTags, - com.google.container.v1.ResourceManagerTags.Builder, - com.google.container.v1.ResourceManagerTagsOrBuilder> - resourceManagerTagsBuilder_; - /** - * - * - *
-     * A map of resource manager tag keys and values to be attached to the nodes.
-     * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 45; - * - * @return Whether the resourceManagerTags field is set. - */ - public boolean hasResourceManagerTags() { - return ((bitField1_ & 0x00000004) != 0); - } - /** - * - * - *
-     * A map of resource manager tag keys and values to be attached to the nodes.
-     * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 45; - * - * @return The resourceManagerTags. - */ - public com.google.container.v1.ResourceManagerTags getResourceManagerTags() { - if (resourceManagerTagsBuilder_ == null) { - return resourceManagerTags_ == null - ? com.google.container.v1.ResourceManagerTags.getDefaultInstance() - : resourceManagerTags_; - } else { - return resourceManagerTagsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * A map of resource manager tag keys and values to be attached to the nodes.
-     * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 45; - */ - public Builder setResourceManagerTags(com.google.container.v1.ResourceManagerTags value) { - if (resourceManagerTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resourceManagerTags_ = value; - } else { - resourceManagerTagsBuilder_.setMessage(value); - } - bitField1_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * A map of resource manager tag keys and values to be attached to the nodes.
-     * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 45; - */ - public Builder setResourceManagerTags( - com.google.container.v1.ResourceManagerTags.Builder builderForValue) { - if (resourceManagerTagsBuilder_ == null) { - resourceManagerTags_ = builderForValue.build(); - } else { - resourceManagerTagsBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * A map of resource manager tag keys and values to be attached to the nodes.
-     * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 45; - */ - public Builder mergeResourceManagerTags(com.google.container.v1.ResourceManagerTags value) { - if (resourceManagerTagsBuilder_ == null) { - if (((bitField1_ & 0x00000004) != 0) - && resourceManagerTags_ != null - && resourceManagerTags_ - != com.google.container.v1.ResourceManagerTags.getDefaultInstance()) { - getResourceManagerTagsBuilder().mergeFrom(value); - } else { - resourceManagerTags_ = value; - } - } else { - resourceManagerTagsBuilder_.mergeFrom(value); - } - if (resourceManagerTags_ != null) { - bitField1_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - * - * - *
-     * A map of resource manager tag keys and values to be attached to the nodes.
-     * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 45; - */ - public Builder clearResourceManagerTags() { - bitField1_ = (bitField1_ & ~0x00000004); - resourceManagerTags_ = null; - if (resourceManagerTagsBuilder_ != null) { - resourceManagerTagsBuilder_.dispose(); - resourceManagerTagsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * A map of resource manager tag keys and values to be attached to the nodes.
-     * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 45; - */ - public com.google.container.v1.ResourceManagerTags.Builder getResourceManagerTagsBuilder() { - bitField1_ |= 0x00000004; - onChanged(); - return getResourceManagerTagsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A map of resource manager tag keys and values to be attached to the nodes.
-     * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 45; - */ - public com.google.container.v1.ResourceManagerTagsOrBuilder getResourceManagerTagsOrBuilder() { - if (resourceManagerTagsBuilder_ != null) { - return resourceManagerTagsBuilder_.getMessageOrBuilder(); - } else { - return resourceManagerTags_ == null - ? com.google.container.v1.ResourceManagerTags.getDefaultInstance() - : resourceManagerTags_; - } - } - /** - * - * - *
-     * A map of resource manager tag keys and values to be attached to the nodes.
-     * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 45; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ResourceManagerTags, - com.google.container.v1.ResourceManagerTags.Builder, - com.google.container.v1.ResourceManagerTagsOrBuilder> - getResourceManagerTagsFieldBuilder() { - if (resourceManagerTagsBuilder_ == null) { - resourceManagerTagsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ResourceManagerTags, - com.google.container.v1.ResourceManagerTags.Builder, - com.google.container.v1.ResourceManagerTagsOrBuilder>( - getResourceManagerTags(), getParentForChildren(), isClean()); - resourceManagerTags_ = null; - } - return resourceManagerTagsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.NodeConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.NodeConfig) - private static final com.google.container.v1.NodeConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.NodeConfig(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.NodeConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigDefaults.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigDefaults.java deleted file mode 100644 index 461049fcaf1c..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigDefaults.java +++ /dev/null @@ -1,991 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Subset of NodeConfig message that has defaults.
- * 
- * - * Protobuf type {@code google.container.v1.NodeConfigDefaults} - */ -public final class NodeConfigDefaults extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.NodeConfigDefaults) - NodeConfigDefaultsOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeConfigDefaults.newBuilder() to construct. - private NodeConfigDefaults(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NodeConfigDefaults() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NodeConfigDefaults(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeConfigDefaults_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeConfigDefaults_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodeConfigDefaults.class, - com.google.container.v1.NodeConfigDefaults.Builder.class); - } - - private int bitField0_; - public static final int GCFS_CONFIG_FIELD_NUMBER = 1; - private com.google.container.v1.GcfsConfig gcfsConfig_; - /** - * - * - *
-   * GCFS (Google Container File System, also known as Riptide) options.
-   * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 1; - * - * @return Whether the gcfsConfig field is set. - */ - @java.lang.Override - public boolean hasGcfsConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * GCFS (Google Container File System, also known as Riptide) options.
-   * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 1; - * - * @return The gcfsConfig. - */ - @java.lang.Override - public com.google.container.v1.GcfsConfig getGcfsConfig() { - return gcfsConfig_ == null - ? com.google.container.v1.GcfsConfig.getDefaultInstance() - : gcfsConfig_; - } - /** - * - * - *
-   * GCFS (Google Container File System, also known as Riptide) options.
-   * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 1; - */ - @java.lang.Override - public com.google.container.v1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { - return gcfsConfig_ == null - ? com.google.container.v1.GcfsConfig.getDefaultInstance() - : gcfsConfig_; - } - - public static final int LOGGING_CONFIG_FIELD_NUMBER = 3; - private com.google.container.v1.NodePoolLoggingConfig loggingConfig_; - /** - * - * - *
-   * Logging configuration for node pools.
-   * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 3; - * - * @return Whether the loggingConfig field is set. - */ - @java.lang.Override - public boolean hasLoggingConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * Logging configuration for node pools.
-   * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 3; - * - * @return The loggingConfig. - */ - @java.lang.Override - public com.google.container.v1.NodePoolLoggingConfig getLoggingConfig() { - return loggingConfig_ == null - ? com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance() - : loggingConfig_; - } - /** - * - * - *
-   * Logging configuration for node pools.
-   * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 3; - */ - @java.lang.Override - public com.google.container.v1.NodePoolLoggingConfigOrBuilder getLoggingConfigOrBuilder() { - return loggingConfig_ == null - ? com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance() - : loggingConfig_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getGcfsConfig()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(3, getLoggingConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGcfsConfig()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLoggingConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.NodeConfigDefaults)) { - return super.equals(obj); - } - com.google.container.v1.NodeConfigDefaults other = - (com.google.container.v1.NodeConfigDefaults) obj; - - if (hasGcfsConfig() != other.hasGcfsConfig()) return false; - if (hasGcfsConfig()) { - if (!getGcfsConfig().equals(other.getGcfsConfig())) return false; - } - if (hasLoggingConfig() != other.hasLoggingConfig()) return false; - if (hasLoggingConfig()) { - if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasGcfsConfig()) { - hash = (37 * hash) + GCFS_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getGcfsConfig().hashCode(); - } - if (hasLoggingConfig()) { - hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getLoggingConfig().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.NodeConfigDefaults parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodeConfigDefaults parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodeConfigDefaults parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodeConfigDefaults parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodeConfigDefaults parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodeConfigDefaults parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodeConfigDefaults parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodeConfigDefaults parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NodeConfigDefaults parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodeConfigDefaults parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NodeConfigDefaults parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodeConfigDefaults parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.NodeConfigDefaults prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Subset of NodeConfig message that has defaults.
-   * 
- * - * Protobuf type {@code google.container.v1.NodeConfigDefaults} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.NodeConfigDefaults) - com.google.container.v1.NodeConfigDefaultsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeConfigDefaults_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeConfigDefaults_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodeConfigDefaults.class, - com.google.container.v1.NodeConfigDefaults.Builder.class); - } - - // Construct using com.google.container.v1.NodeConfigDefaults.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getGcfsConfigFieldBuilder(); - getLoggingConfigFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - gcfsConfig_ = null; - if (gcfsConfigBuilder_ != null) { - gcfsConfigBuilder_.dispose(); - gcfsConfigBuilder_ = null; - } - loggingConfig_ = null; - if (loggingConfigBuilder_ != null) { - loggingConfigBuilder_.dispose(); - loggingConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeConfigDefaults_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NodeConfigDefaults getDefaultInstanceForType() { - return com.google.container.v1.NodeConfigDefaults.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NodeConfigDefaults build() { - com.google.container.v1.NodeConfigDefaults result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NodeConfigDefaults buildPartial() { - com.google.container.v1.NodeConfigDefaults result = - new com.google.container.v1.NodeConfigDefaults(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.NodeConfigDefaults result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.gcfsConfig_ = gcfsConfigBuilder_ == null ? gcfsConfig_ : gcfsConfigBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.loggingConfig_ = - loggingConfigBuilder_ == null ? loggingConfig_ : loggingConfigBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NodeConfigDefaults) { - return mergeFrom((com.google.container.v1.NodeConfigDefaults) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NodeConfigDefaults other) { - if (other == com.google.container.v1.NodeConfigDefaults.getDefaultInstance()) return this; - if (other.hasGcfsConfig()) { - mergeGcfsConfig(other.getGcfsConfig()); - } - if (other.hasLoggingConfig()) { - mergeLoggingConfig(other.getLoggingConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getGcfsConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: - { - input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.container.v1.GcfsConfig gcfsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GcfsConfig, - com.google.container.v1.GcfsConfig.Builder, - com.google.container.v1.GcfsConfigOrBuilder> - gcfsConfigBuilder_; - /** - * - * - *
-     * GCFS (Google Container File System, also known as Riptide) options.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 1; - * - * @return Whether the gcfsConfig field is set. - */ - public boolean hasGcfsConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * GCFS (Google Container File System, also known as Riptide) options.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 1; - * - * @return The gcfsConfig. - */ - public com.google.container.v1.GcfsConfig getGcfsConfig() { - if (gcfsConfigBuilder_ == null) { - return gcfsConfig_ == null - ? com.google.container.v1.GcfsConfig.getDefaultInstance() - : gcfsConfig_; - } else { - return gcfsConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * GCFS (Google Container File System, also known as Riptide) options.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 1; - */ - public Builder setGcfsConfig(com.google.container.v1.GcfsConfig value) { - if (gcfsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gcfsConfig_ = value; - } else { - gcfsConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * GCFS (Google Container File System, also known as Riptide) options.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 1; - */ - public Builder setGcfsConfig(com.google.container.v1.GcfsConfig.Builder builderForValue) { - if (gcfsConfigBuilder_ == null) { - gcfsConfig_ = builderForValue.build(); - } else { - gcfsConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * GCFS (Google Container File System, also known as Riptide) options.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 1; - */ - public Builder mergeGcfsConfig(com.google.container.v1.GcfsConfig value) { - if (gcfsConfigBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && gcfsConfig_ != null - && gcfsConfig_ != com.google.container.v1.GcfsConfig.getDefaultInstance()) { - getGcfsConfigBuilder().mergeFrom(value); - } else { - gcfsConfig_ = value; - } - } else { - gcfsConfigBuilder_.mergeFrom(value); - } - if (gcfsConfig_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * - * - *
-     * GCFS (Google Container File System, also known as Riptide) options.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 1; - */ - public Builder clearGcfsConfig() { - bitField0_ = (bitField0_ & ~0x00000001); - gcfsConfig_ = null; - if (gcfsConfigBuilder_ != null) { - gcfsConfigBuilder_.dispose(); - gcfsConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * GCFS (Google Container File System, also known as Riptide) options.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 1; - */ - public com.google.container.v1.GcfsConfig.Builder getGcfsConfigBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getGcfsConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * GCFS (Google Container File System, also known as Riptide) options.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 1; - */ - public com.google.container.v1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { - if (gcfsConfigBuilder_ != null) { - return gcfsConfigBuilder_.getMessageOrBuilder(); - } else { - return gcfsConfig_ == null - ? com.google.container.v1.GcfsConfig.getDefaultInstance() - : gcfsConfig_; - } - } - /** - * - * - *
-     * GCFS (Google Container File System, also known as Riptide) options.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GcfsConfig, - com.google.container.v1.GcfsConfig.Builder, - com.google.container.v1.GcfsConfigOrBuilder> - getGcfsConfigFieldBuilder() { - if (gcfsConfigBuilder_ == null) { - gcfsConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GcfsConfig, - com.google.container.v1.GcfsConfig.Builder, - com.google.container.v1.GcfsConfigOrBuilder>( - getGcfsConfig(), getParentForChildren(), isClean()); - gcfsConfig_ = null; - } - return gcfsConfigBuilder_; - } - - private com.google.container.v1.NodePoolLoggingConfig loggingConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePoolLoggingConfig, - com.google.container.v1.NodePoolLoggingConfig.Builder, - com.google.container.v1.NodePoolLoggingConfigOrBuilder> - loggingConfigBuilder_; - /** - * - * - *
-     * Logging configuration for node pools.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 3; - * - * @return Whether the loggingConfig field is set. - */ - public boolean hasLoggingConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * Logging configuration for node pools.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 3; - * - * @return The loggingConfig. - */ - public com.google.container.v1.NodePoolLoggingConfig getLoggingConfig() { - if (loggingConfigBuilder_ == null) { - return loggingConfig_ == null - ? com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance() - : loggingConfig_; - } else { - return loggingConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Logging configuration for node pools.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 3; - */ - public Builder setLoggingConfig(com.google.container.v1.NodePoolLoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - loggingConfig_ = value; - } else { - loggingConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Logging configuration for node pools.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 3; - */ - public Builder setLoggingConfig( - com.google.container.v1.NodePoolLoggingConfig.Builder builderForValue) { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = builderForValue.build(); - } else { - loggingConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Logging configuration for node pools.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 3; - */ - public Builder mergeLoggingConfig(com.google.container.v1.NodePoolLoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && loggingConfig_ != null - && loggingConfig_ - != com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance()) { - getLoggingConfigBuilder().mergeFrom(value); - } else { - loggingConfig_ = value; - } - } else { - loggingConfigBuilder_.mergeFrom(value); - } - if (loggingConfig_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Logging configuration for node pools.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 3; - */ - public Builder clearLoggingConfig() { - bitField0_ = (bitField0_ & ~0x00000002); - loggingConfig_ = null; - if (loggingConfigBuilder_ != null) { - loggingConfigBuilder_.dispose(); - loggingConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Logging configuration for node pools.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 3; - */ - public com.google.container.v1.NodePoolLoggingConfig.Builder getLoggingConfigBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getLoggingConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Logging configuration for node pools.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 3; - */ - public com.google.container.v1.NodePoolLoggingConfigOrBuilder getLoggingConfigOrBuilder() { - if (loggingConfigBuilder_ != null) { - return loggingConfigBuilder_.getMessageOrBuilder(); - } else { - return loggingConfig_ == null - ? com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance() - : loggingConfig_; - } - } - /** - * - * - *
-     * Logging configuration for node pools.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePoolLoggingConfig, - com.google.container.v1.NodePoolLoggingConfig.Builder, - com.google.container.v1.NodePoolLoggingConfigOrBuilder> - getLoggingConfigFieldBuilder() { - if (loggingConfigBuilder_ == null) { - loggingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePoolLoggingConfig, - com.google.container.v1.NodePoolLoggingConfig.Builder, - com.google.container.v1.NodePoolLoggingConfigOrBuilder>( - getLoggingConfig(), getParentForChildren(), isClean()); - loggingConfig_ = null; - } - return loggingConfigBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.NodeConfigDefaults) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.NodeConfigDefaults) - private static final com.google.container.v1.NodeConfigDefaults DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.NodeConfigDefaults(); - } - - public static com.google.container.v1.NodeConfigDefaults getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeConfigDefaults parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.NodeConfigDefaults getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigDefaultsOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigDefaultsOrBuilder.java deleted file mode 100644 index 5759ee119d92..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigDefaultsOrBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface NodeConfigDefaultsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.NodeConfigDefaults) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * GCFS (Google Container File System, also known as Riptide) options.
-   * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 1; - * - * @return Whether the gcfsConfig field is set. - */ - boolean hasGcfsConfig(); - /** - * - * - *
-   * GCFS (Google Container File System, also known as Riptide) options.
-   * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 1; - * - * @return The gcfsConfig. - */ - com.google.container.v1.GcfsConfig getGcfsConfig(); - /** - * - * - *
-   * GCFS (Google Container File System, also known as Riptide) options.
-   * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 1; - */ - com.google.container.v1.GcfsConfigOrBuilder getGcfsConfigOrBuilder(); - - /** - * - * - *
-   * Logging configuration for node pools.
-   * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 3; - * - * @return Whether the loggingConfig field is set. - */ - boolean hasLoggingConfig(); - /** - * - * - *
-   * Logging configuration for node pools.
-   * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 3; - * - * @return The loggingConfig. - */ - com.google.container.v1.NodePoolLoggingConfig getLoggingConfig(); - /** - * - * - *
-   * Logging configuration for node pools.
-   * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 3; - */ - com.google.container.v1.NodePoolLoggingConfigOrBuilder getLoggingConfigOrBuilder(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigOrBuilder.java deleted file mode 100644 index 3ac0989ff023..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigOrBuilder.java +++ /dev/null @@ -1,1600 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface NodeConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.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-os-login"
-   *  - "gci-ensure-gke-docker"
-   *  - "gci-metrics-enabled"
-   *  - "gci-update-strategy"
-   *  - "instance-template"
-   *  - "kube-env"
-   *  - "startup-script"
-   *  - "user-data"
-   *  - "disable-address-manager"
-   *  - "windows-startup-script-ps1"
-   *  - "common-psm1"
-   *  - "k8s-node-setup-psm1"
-   *  - "install-ssh-psm1"
-   *  - "user-profile-psm1"
-   *
-   * 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-os-login"
-   *  - "gci-ensure-gke-docker"
-   *  - "gci-metrics-enabled"
-   *  - "gci-update-strategy"
-   *  - "instance-template"
-   *  - "kube-env"
-   *  - "startup-script"
-   *  - "user-data"
-   *  - "disable-address-manager"
-   *  - "windows-startup-script-ps1"
-   *  - "common-psm1"
-   *  - "k8s-node-setup-psm1"
-   *  - "install-ssh-psm1"
-   *  - "user-profile-psm1"
-   *
-   * 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-os-login"
-   *  - "gci-ensure-gke-docker"
-   *  - "gci-metrics-enabled"
-   *  - "gci-update-strategy"
-   *  - "instance-template"
-   *  - "kube-env"
-   *  - "startup-script"
-   *  - "user-data"
-   *  - "disable-address-manager"
-   *  - "windows-startup-script-ps1"
-   *  - "common-psm1"
-   *  - "k8s-node-setup-psm1"
-   *  - "install-ssh-psm1"
-   *  - "user-profile-psm1"
-   *
-   * 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-os-login"
-   *  - "gci-ensure-gke-docker"
-   *  - "gci-metrics-enabled"
-   *  - "gci-update-strategy"
-   *  - "instance-template"
-   *  - "kube-env"
-   *  - "startup-script"
-   *  - "user-data"
-   *  - "disable-address-manager"
-   *  - "windows-startup-script-ps1"
-   *  - "common-psm1"
-   *  - "k8s-node-setup-psm1"
-   *  - "install-ssh-psm1"
-   *  - "user-profile-psm1"
-   *
-   * 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; - */ - /* nullable */ - java.lang.String getMetadataOrDefault( - java.lang.String key, - /* nullable */ - 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-os-login"
-   *  - "gci-ensure-gke-docker"
-   *  - "gci-metrics-enabled"
-   *  - "gci-update-strategy"
-   *  - "instance-template"
-   *  - "kube-env"
-   *  - "startup-script"
-   *  - "user-data"
-   *  - "disable-address-manager"
-   *  - "windows-startup-script-ps1"
-   *  - "common-psm1"
-   *  - "k8s-node-setup-psm1"
-   *  - "install-ssh-psm1"
-   *  - "user-profile-psm1"
-   *
-   * 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. Please see
-   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-   * available image types.
-   * 
- * - * 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. Please see
-   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-   * available image types.
-   * 
- * - * 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; - */ - /* nullable */ - java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - 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
-   * information 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.v1.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.v1.AcceleratorConfig accelerators = 11; - */ - com.google.container.v1.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.v1.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.v1.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.v1.AcceleratorConfig accelerators = 11; - */ - com.google.container.v1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder(int index); - - /** - * - * - *
-   * 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.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * - * @return Whether the workloadMetadataConfig field is set. - */ - boolean hasWorkloadMetadataConfig(); - /** - * - * - *
-   * The workload metadata configuration for this node.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * - * @return The workloadMetadataConfig. - */ - com.google.container.v1.WorkloadMetadataConfig getWorkloadMetadataConfig(); - /** - * - * - *
-   * The workload metadata configuration for this node.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - com.google.container.v1.WorkloadMetadataConfigOrBuilder getWorkloadMetadataConfigOrBuilder(); - - /** - * - * - *
-   * List of kubernetes taints to be applied to each node.
-   *
-   * For more information, including usage and the valid values, see:
-   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-   * 
- * - * repeated .google.container.v1.NodeTaint taints = 15; - */ - 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.v1.NodeTaint taints = 15; - */ - com.google.container.v1.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.v1.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.v1.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.v1.NodeTaint taints = 15; - */ - com.google.container.v1.NodeTaintOrBuilder getTaintsOrBuilder(int index); - - /** - * - * - *
-   * Sandbox configuration for this node.
-   * 
- * - * .google.container.v1.SandboxConfig sandbox_config = 17; - * - * @return Whether the sandboxConfig field is set. - */ - boolean hasSandboxConfig(); - /** - * - * - *
-   * Sandbox configuration for this node.
-   * 
- * - * .google.container.v1.SandboxConfig sandbox_config = 17; - * - * @return The sandboxConfig. - */ - com.google.container.v1.SandboxConfig getSandboxConfig(); - /** - * - * - *
-   * Sandbox configuration for this node.
-   * 
- * - * .google.container.v1.SandboxConfig sandbox_config = 17; - */ - com.google.container.v1.SandboxConfigOrBuilder getSandboxConfigOrBuilder(); - - /** - * - * - *
-   * Setting this field will assign instances of this
-   * pool to run on the specified node group. This is useful for running
-   * workloads on [sole tenant
-   * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
-   * 
- * - * string node_group = 18; - * - * @return The nodeGroup. - */ - java.lang.String getNodeGroup(); - /** - * - * - *
-   * Setting this field will assign instances of this
-   * pool to run on the specified node group. This is useful for running
-   * workloads on [sole tenant
-   * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
-   * 
- * - * string node_group = 18; - * - * @return The bytes for nodeGroup. - */ - com.google.protobuf.ByteString getNodeGroupBytes(); - - /** - * - * - *
-   * The optional reservation affinity. Setting this field will apply
-   * the specified [Zonal Compute
-   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-   * to this node pool.
-   * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - * - * @return Whether the reservationAffinity field is set. - */ - boolean hasReservationAffinity(); - /** - * - * - *
-   * The optional reservation affinity. Setting this field will apply
-   * the specified [Zonal Compute
-   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-   * to this node pool.
-   * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - * - * @return The reservationAffinity. - */ - com.google.container.v1.ReservationAffinity getReservationAffinity(); - /** - * - * - *
-   * The optional reservation affinity. Setting this field will apply
-   * the specified [Zonal Compute
-   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-   * to this node pool.
-   * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - */ - com.google.container.v1.ReservationAffinityOrBuilder getReservationAffinityOrBuilder(); - - /** - * - * - *
-   * Shielded Instance options.
-   * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - * - * @return Whether the shieldedInstanceConfig field is set. - */ - boolean hasShieldedInstanceConfig(); - /** - * - * - *
-   * Shielded Instance options.
-   * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - * - * @return The shieldedInstanceConfig. - */ - com.google.container.v1.ShieldedInstanceConfig getShieldedInstanceConfig(); - /** - * - * - *
-   * Shielded Instance options.
-   * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - */ - com.google.container.v1.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder(); - - /** - * - * - *
-   * Parameters that can be configured on Linux nodes.
-   * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 21; - * - * @return Whether the linuxNodeConfig field is set. - */ - boolean hasLinuxNodeConfig(); - /** - * - * - *
-   * Parameters that can be configured on Linux nodes.
-   * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 21; - * - * @return The linuxNodeConfig. - */ - com.google.container.v1.LinuxNodeConfig getLinuxNodeConfig(); - /** - * - * - *
-   * Parameters that can be configured on Linux nodes.
-   * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 21; - */ - com.google.container.v1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder(); - - /** - * - * - *
-   * Node kubelet configs.
-   * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 22; - * - * @return Whether the kubeletConfig field is set. - */ - boolean hasKubeletConfig(); - /** - * - * - *
-   * Node kubelet configs.
-   * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 22; - * - * @return The kubeletConfig. - */ - com.google.container.v1.NodeKubeletConfig getKubeletConfig(); - /** - * - * - *
-   * Node kubelet configs.
-   * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 22; - */ - com.google.container.v1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder(); - - /** - * - * - *
-   *
-   * 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(); - - /** - * - * - *
-   * Google Container File System (image streaming) configs.
-   * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 25; - * - * @return Whether the gcfsConfig field is set. - */ - boolean hasGcfsConfig(); - /** - * - * - *
-   * Google Container File System (image streaming) configs.
-   * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 25; - * - * @return The gcfsConfig. - */ - com.google.container.v1.GcfsConfig getGcfsConfig(); - /** - * - * - *
-   * Google Container File System (image streaming) configs.
-   * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 25; - */ - com.google.container.v1.GcfsConfigOrBuilder getGcfsConfigOrBuilder(); - - /** - * - * - *
-   * Advanced features for the Compute Engine VM.
-   * 
- * - * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; - * - * @return Whether the advancedMachineFeatures field is set. - */ - boolean hasAdvancedMachineFeatures(); - /** - * - * - *
-   * Advanced features for the Compute Engine VM.
-   * 
- * - * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; - * - * @return The advancedMachineFeatures. - */ - com.google.container.v1.AdvancedMachineFeatures getAdvancedMachineFeatures(); - /** - * - * - *
-   * Advanced features for the Compute Engine VM.
-   * 
- * - * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; - */ - com.google.container.v1.AdvancedMachineFeaturesOrBuilder getAdvancedMachineFeaturesOrBuilder(); - - /** - * - * - *
-   * Enable or disable gvnic in the node pool.
-   * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - * - * @return Whether the gvnic field is set. - */ - boolean hasGvnic(); - /** - * - * - *
-   * Enable or disable gvnic in the node pool.
-   * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - * - * @return The gvnic. - */ - com.google.container.v1.VirtualNIC getGvnic(); - /** - * - * - *
-   * Enable or disable gvnic in the node pool.
-   * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - */ - com.google.container.v1.VirtualNICOrBuilder getGvnicOrBuilder(); - - /** - * - * - *
-   * Spot flag for enabling Spot VM, which is a rebrand of
-   * the existing preemptible flag.
-   * 
- * - * bool spot = 32; - * - * @return The spot. - */ - boolean getSpot(); - - /** - * - * - *
-   * Confidential nodes config.
-   * All the nodes in the node pool will be Confidential VM once enabled.
-   * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 35; - * - * @return Whether the confidentialNodes field is set. - */ - boolean hasConfidentialNodes(); - /** - * - * - *
-   * Confidential nodes config.
-   * All the nodes in the node pool will be Confidential VM once enabled.
-   * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 35; - * - * @return The confidentialNodes. - */ - com.google.container.v1.ConfidentialNodes getConfidentialNodes(); - /** - * - * - *
-   * Confidential nodes config.
-   * All the nodes in the node pool will be Confidential VM once enabled.
-   * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 35; - */ - com.google.container.v1.ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder(); - - /** - * - * - *
-   * Enable or disable NCCL fast socket for the node pool.
-   * 
- * - * optional .google.container.v1.FastSocket fast_socket = 36; - * - * @return Whether the fastSocket field is set. - */ - boolean hasFastSocket(); - /** - * - * - *
-   * Enable or disable NCCL fast socket for the node pool.
-   * 
- * - * optional .google.container.v1.FastSocket fast_socket = 36; - * - * @return The fastSocket. - */ - com.google.container.v1.FastSocket getFastSocket(); - /** - * - * - *
-   * Enable or disable NCCL fast socket for the node pool.
-   * 
- * - * optional .google.container.v1.FastSocket fast_socket = 36; - */ - com.google.container.v1.FastSocketOrBuilder getFastSocketOrBuilder(); - - /** - * - * - *
-   * The resource labels for the node pool to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * map<string, string> resource_labels = 37; - */ - int getResourceLabelsCount(); - /** - * - * - *
-   * The resource labels for the node pool to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * map<string, string> resource_labels = 37; - */ - boolean containsResourceLabels(java.lang.String key); - /** Use {@link #getResourceLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getResourceLabels(); - /** - * - * - *
-   * The resource labels for the node pool to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * map<string, string> resource_labels = 37; - */ - java.util.Map getResourceLabelsMap(); - /** - * - * - *
-   * The resource labels for the node pool to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * map<string, string> resource_labels = 37; - */ - /* nullable */ - java.lang.String getResourceLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * The resource labels for the node pool to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * map<string, string> resource_labels = 37; - */ - java.lang.String getResourceLabelsOrThrow(java.lang.String key); - - /** - * - * - *
-   * Logging configuration.
-   * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 38; - * - * @return Whether the loggingConfig field is set. - */ - boolean hasLoggingConfig(); - /** - * - * - *
-   * Logging configuration.
-   * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 38; - * - * @return The loggingConfig. - */ - com.google.container.v1.NodePoolLoggingConfig getLoggingConfig(); - /** - * - * - *
-   * Logging configuration.
-   * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 38; - */ - com.google.container.v1.NodePoolLoggingConfigOrBuilder getLoggingConfigOrBuilder(); - - /** - * - * - *
-   * Parameters that can be configured on Windows nodes.
-   * 
- * - * .google.container.v1.WindowsNodeConfig windows_node_config = 39; - * - * @return Whether the windowsNodeConfig field is set. - */ - boolean hasWindowsNodeConfig(); - /** - * - * - *
-   * Parameters that can be configured on Windows nodes.
-   * 
- * - * .google.container.v1.WindowsNodeConfig windows_node_config = 39; - * - * @return The windowsNodeConfig. - */ - com.google.container.v1.WindowsNodeConfig getWindowsNodeConfig(); - /** - * - * - *
-   * Parameters that can be configured on Windows nodes.
-   * 
- * - * .google.container.v1.WindowsNodeConfig windows_node_config = 39; - */ - com.google.container.v1.WindowsNodeConfigOrBuilder getWindowsNodeConfigOrBuilder(); - - /** - * - * - *
-   * Parameters for using raw-block Local NVMe SSDs.
-   * 
- * - * .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; - * - * @return Whether the localNvmeSsdBlockConfig field is set. - */ - boolean hasLocalNvmeSsdBlockConfig(); - /** - * - * - *
-   * Parameters for using raw-block Local NVMe SSDs.
-   * 
- * - * .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; - * - * @return The localNvmeSsdBlockConfig. - */ - com.google.container.v1.LocalNvmeSsdBlockConfig getLocalNvmeSsdBlockConfig(); - /** - * - * - *
-   * Parameters for using raw-block Local NVMe SSDs.
-   * 
- * - * .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; - */ - com.google.container.v1.LocalNvmeSsdBlockConfigOrBuilder getLocalNvmeSsdBlockConfigOrBuilder(); - - /** - * - * - *
-   * Parameters for the node ephemeral storage using Local SSDs.
-   * If unspecified, ephemeral storage is backed by the boot disk.
-   * 
- * - * - * .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; - * - * - * @return Whether the ephemeralStorageLocalSsdConfig field is set. - */ - boolean hasEphemeralStorageLocalSsdConfig(); - /** - * - * - *
-   * Parameters for the node ephemeral storage using Local SSDs.
-   * If unspecified, ephemeral storage is backed by the boot disk.
-   * 
- * - * - * .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; - * - * - * @return The ephemeralStorageLocalSsdConfig. - */ - com.google.container.v1.EphemeralStorageLocalSsdConfig getEphemeralStorageLocalSsdConfig(); - /** - * - * - *
-   * Parameters for the node ephemeral storage using Local SSDs.
-   * If unspecified, ephemeral storage is backed by the boot disk.
-   * 
- * - * - * .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; - * - */ - com.google.container.v1.EphemeralStorageLocalSsdConfigOrBuilder - getEphemeralStorageLocalSsdConfigOrBuilder(); - - /** - * - * - *
-   * Parameters for node pools to be backed by shared sole tenant node groups.
-   * 
- * - * .google.container.v1.SoleTenantConfig sole_tenant_config = 42; - * - * @return Whether the soleTenantConfig field is set. - */ - boolean hasSoleTenantConfig(); - /** - * - * - *
-   * Parameters for node pools to be backed by shared sole tenant node groups.
-   * 
- * - * .google.container.v1.SoleTenantConfig sole_tenant_config = 42; - * - * @return The soleTenantConfig. - */ - com.google.container.v1.SoleTenantConfig getSoleTenantConfig(); - /** - * - * - *
-   * Parameters for node pools to be backed by shared sole tenant node groups.
-   * 
- * - * .google.container.v1.SoleTenantConfig sole_tenant_config = 42; - */ - com.google.container.v1.SoleTenantConfigOrBuilder getSoleTenantConfigOrBuilder(); - - /** - * - * - *
-   * A map of resource manager tag keys and values to be attached to the nodes.
-   * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 45; - * - * @return Whether the resourceManagerTags field is set. - */ - boolean hasResourceManagerTags(); - /** - * - * - *
-   * A map of resource manager tag keys and values to be attached to the nodes.
-   * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 45; - * - * @return The resourceManagerTags. - */ - com.google.container.v1.ResourceManagerTags getResourceManagerTags(); - /** - * - * - *
-   * A map of resource manager tag keys and values to be attached to the nodes.
-   * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 45; - */ - com.google.container.v1.ResourceManagerTagsOrBuilder getResourceManagerTagsOrBuilder(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeKubeletConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeKubeletConfig.java deleted file mode 100644 index d83a5a0686cc..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeKubeletConfig.java +++ /dev/null @@ -1,1537 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Node kubelet configs.
- * 
- * - * Protobuf type {@code google.container.v1.NodeKubeletConfig} - */ -public final class NodeKubeletConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.NodeKubeletConfig) - NodeKubeletConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeKubeletConfig.newBuilder() to construct. - private NodeKubeletConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NodeKubeletConfig() { - cpuManagerPolicy_ = ""; - cpuCfsQuotaPeriod_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NodeKubeletConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeKubeletConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeKubeletConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodeKubeletConfig.class, - com.google.container.v1.NodeKubeletConfig.Builder.class); - } - - private int bitField0_; - public static final int CPU_MANAGER_POLICY_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - 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 ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * 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 cpuCfsQuota_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : cpuCfsQuota_; - } - - public static final int CPU_CFS_QUOTA_PERIOD_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - 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; - } - } - - public static final int POD_PIDS_LIMIT_FIELD_NUMBER = 4; - private long podPidsLimit_ = 0L; - /** - * - * - *
-   * Set the Pod PID limits. See
-   * https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits
-   *
-   * Controls the maximum number of processes allowed to run in a pod. The value
-   * must be greater than or equal to 1024 and less than 4194304.
-   * 
- * - * int64 pod_pids_limit = 4; - * - * @return The podPidsLimit. - */ - @java.lang.Override - public long getPodPidsLimit() { - return podPidsLimit_; - } - - public static final int INSECURE_KUBELET_READONLY_PORT_ENABLED_FIELD_NUMBER = 7; - private boolean insecureKubeletReadonlyPortEnabled_ = false; - /** - * - * - *
-   * Enable or disable Kubelet read only port.
-   * 
- * - * optional bool insecure_kubelet_readonly_port_enabled = 7; - * - * @return Whether the insecureKubeletReadonlyPortEnabled field is set. - */ - @java.lang.Override - public boolean hasInsecureKubeletReadonlyPortEnabled() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * Enable or disable Kubelet read only port.
-   * 
- * - * optional bool insecure_kubelet_readonly_port_enabled = 7; - * - * @return The insecureKubeletReadonlyPortEnabled. - */ - @java.lang.Override - public boolean getInsecureKubeletReadonlyPortEnabled() { - return insecureKubeletReadonlyPortEnabled_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpuManagerPolicy_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cpuManagerPolicy_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getCpuCfsQuota()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpuCfsQuotaPeriod_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cpuCfsQuotaPeriod_); - } - if (podPidsLimit_ != 0L) { - output.writeInt64(4, podPidsLimit_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeBool(7, insecureKubeletReadonlyPortEnabled_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpuManagerPolicy_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cpuManagerPolicy_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCpuCfsQuota()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpuCfsQuotaPeriod_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, cpuCfsQuotaPeriod_); - } - if (podPidsLimit_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, podPidsLimit_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 7, insecureKubeletReadonlyPortEnabled_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.NodeKubeletConfig)) { - return super.equals(obj); - } - com.google.container.v1.NodeKubeletConfig other = - (com.google.container.v1.NodeKubeletConfig) obj; - - if (!getCpuManagerPolicy().equals(other.getCpuManagerPolicy())) return false; - if (hasCpuCfsQuota() != other.hasCpuCfsQuota()) return false; - if (hasCpuCfsQuota()) { - if (!getCpuCfsQuota().equals(other.getCpuCfsQuota())) return false; - } - if (!getCpuCfsQuotaPeriod().equals(other.getCpuCfsQuotaPeriod())) return false; - if (getPodPidsLimit() != other.getPodPidsLimit()) return false; - if (hasInsecureKubeletReadonlyPortEnabled() != other.hasInsecureKubeletReadonlyPortEnabled()) - return false; - if (hasInsecureKubeletReadonlyPortEnabled()) { - if (getInsecureKubeletReadonlyPortEnabled() != other.getInsecureKubeletReadonlyPortEnabled()) - return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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 = (37 * hash) + POD_PIDS_LIMIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPodPidsLimit()); - if (hasInsecureKubeletReadonlyPortEnabled()) { - hash = (37 * hash) + INSECURE_KUBELET_READONLY_PORT_ENABLED_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getInsecureKubeletReadonlyPortEnabled()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.NodeKubeletConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodeKubeletConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodeKubeletConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodeKubeletConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodeKubeletConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodeKubeletConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodeKubeletConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodeKubeletConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NodeKubeletConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodeKubeletConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NodeKubeletConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodeKubeletConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.NodeKubeletConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Node kubelet configs.
-   * 
- * - * Protobuf type {@code google.container.v1.NodeKubeletConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.NodeKubeletConfig) - com.google.container.v1.NodeKubeletConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeKubeletConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeKubeletConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodeKubeletConfig.class, - com.google.container.v1.NodeKubeletConfig.Builder.class); - } - - // Construct using com.google.container.v1.NodeKubeletConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getCpuCfsQuotaFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - cpuManagerPolicy_ = ""; - cpuCfsQuota_ = null; - if (cpuCfsQuotaBuilder_ != null) { - cpuCfsQuotaBuilder_.dispose(); - cpuCfsQuotaBuilder_ = null; - } - cpuCfsQuotaPeriod_ = ""; - podPidsLimit_ = 0L; - insecureKubeletReadonlyPortEnabled_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeKubeletConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NodeKubeletConfig getDefaultInstanceForType() { - return com.google.container.v1.NodeKubeletConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NodeKubeletConfig build() { - com.google.container.v1.NodeKubeletConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NodeKubeletConfig buildPartial() { - com.google.container.v1.NodeKubeletConfig result = - new com.google.container.v1.NodeKubeletConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.NodeKubeletConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.cpuManagerPolicy_ = cpuManagerPolicy_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.cpuCfsQuota_ = - cpuCfsQuotaBuilder_ == null ? cpuCfsQuota_ : cpuCfsQuotaBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.cpuCfsQuotaPeriod_ = cpuCfsQuotaPeriod_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.podPidsLimit_ = podPidsLimit_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.insecureKubeletReadonlyPortEnabled_ = insecureKubeletReadonlyPortEnabled_; - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NodeKubeletConfig) { - return mergeFrom((com.google.container.v1.NodeKubeletConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NodeKubeletConfig other) { - if (other == com.google.container.v1.NodeKubeletConfig.getDefaultInstance()) return this; - if (!other.getCpuManagerPolicy().isEmpty()) { - cpuManagerPolicy_ = other.cpuManagerPolicy_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasCpuCfsQuota()) { - mergeCpuCfsQuota(other.getCpuCfsQuota()); - } - if (!other.getCpuCfsQuotaPeriod().isEmpty()) { - cpuCfsQuotaPeriod_ = other.cpuCfsQuotaPeriod_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.getPodPidsLimit() != 0L) { - setPodPidsLimit(other.getPodPidsLimit()); - } - if (other.hasInsecureKubeletReadonlyPortEnabled()) { - setInsecureKubeletReadonlyPortEnabled(other.getInsecureKubeletReadonlyPortEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - cpuManagerPolicy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getCpuCfsQuotaFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - cpuCfsQuotaPeriod_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - podPidsLimit_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 56: - { - insecureKubeletReadonlyPortEnabled_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 56 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - 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 ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * 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; - } else { - cpuCfsQuotaBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - 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(); - } else { - cpuCfsQuotaBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - 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 (((bitField0_ & 0x00000002) != 0) - && cpuCfsQuota_ != null - && cpuCfsQuota_ != com.google.protobuf.BoolValue.getDefaultInstance()) { - getCpuCfsQuotaBuilder().mergeFrom(value); - } else { - cpuCfsQuota_ = value; - } - } else { - cpuCfsQuotaBuilder_.mergeFrom(value); - } - if (cpuCfsQuota_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - 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() { - bitField0_ = (bitField0_ & ~0x00000002); - cpuCfsQuota_ = null; - if (cpuCfsQuotaBuilder_ != null) { - cpuCfsQuotaBuilder_.dispose(); - cpuCfsQuotaBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000002; - 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; - bitField0_ |= 0x00000004; - 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(); - bitField0_ = (bitField0_ & ~0x00000004); - 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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private long podPidsLimit_; - /** - * - * - *
-     * Set the Pod PID limits. See
-     * https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits
-     *
-     * Controls the maximum number of processes allowed to run in a pod. The value
-     * must be greater than or equal to 1024 and less than 4194304.
-     * 
- * - * int64 pod_pids_limit = 4; - * - * @return The podPidsLimit. - */ - @java.lang.Override - public long getPodPidsLimit() { - return podPidsLimit_; - } - /** - * - * - *
-     * Set the Pod PID limits. See
-     * https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits
-     *
-     * Controls the maximum number of processes allowed to run in a pod. The value
-     * must be greater than or equal to 1024 and less than 4194304.
-     * 
- * - * int64 pod_pids_limit = 4; - * - * @param value The podPidsLimit to set. - * @return This builder for chaining. - */ - public Builder setPodPidsLimit(long value) { - - podPidsLimit_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Set the Pod PID limits. See
-     * https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits
-     *
-     * Controls the maximum number of processes allowed to run in a pod. The value
-     * must be greater than or equal to 1024 and less than 4194304.
-     * 
- * - * int64 pod_pids_limit = 4; - * - * @return This builder for chaining. - */ - public Builder clearPodPidsLimit() { - bitField0_ = (bitField0_ & ~0x00000008); - podPidsLimit_ = 0L; - onChanged(); - return this; - } - - private boolean insecureKubeletReadonlyPortEnabled_; - /** - * - * - *
-     * Enable or disable Kubelet read only port.
-     * 
- * - * optional bool insecure_kubelet_readonly_port_enabled = 7; - * - * @return Whether the insecureKubeletReadonlyPortEnabled field is set. - */ - @java.lang.Override - public boolean hasInsecureKubeletReadonlyPortEnabled() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-     * Enable or disable Kubelet read only port.
-     * 
- * - * optional bool insecure_kubelet_readonly_port_enabled = 7; - * - * @return The insecureKubeletReadonlyPortEnabled. - */ - @java.lang.Override - public boolean getInsecureKubeletReadonlyPortEnabled() { - return insecureKubeletReadonlyPortEnabled_; - } - /** - * - * - *
-     * Enable or disable Kubelet read only port.
-     * 
- * - * optional bool insecure_kubelet_readonly_port_enabled = 7; - * - * @param value The insecureKubeletReadonlyPortEnabled to set. - * @return This builder for chaining. - */ - public Builder setInsecureKubeletReadonlyPortEnabled(boolean value) { - - insecureKubeletReadonlyPortEnabled_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable or disable Kubelet read only port.
-     * 
- * - * optional bool insecure_kubelet_readonly_port_enabled = 7; - * - * @return This builder for chaining. - */ - public Builder clearInsecureKubeletReadonlyPortEnabled() { - bitField0_ = (bitField0_ & ~0x00000010); - insecureKubeletReadonlyPortEnabled_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.NodeKubeletConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.NodeKubeletConfig) - private static final com.google.container.v1.NodeKubeletConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.NodeKubeletConfig(); - } - - public static com.google.container.v1.NodeKubeletConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeKubeletConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.NodeKubeletConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeKubeletConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeKubeletConfigOrBuilder.java deleted file mode 100644 index c5d186420407..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeKubeletConfigOrBuilder.java +++ /dev/null @@ -1,209 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface NodeKubeletConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.NodeKubeletConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Control the CPU management policy on the node.
-   * See
-   * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
-   *
-   * The following values are allowed.
-   * * "none": the default, which represents the existing scheduling behavior.
-   * * "static": allows pods with certain resource characteristics to be granted
-   * increased CPU affinity and exclusivity on the node.
-   * The default value is 'none' if unspecified.
-   * 
- * - * string cpu_manager_policy = 1; - * - * @return The cpuManagerPolicy. - */ - java.lang.String getCpuManagerPolicy(); - /** - * - * - *
-   * Control the CPU management policy on the node.
-   * See
-   * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
-   *
-   * The following values are allowed.
-   * * "none": the default, which represents the existing scheduling behavior.
-   * * "static": allows pods with certain resource characteristics to be granted
-   * increased CPU affinity and exclusivity on the node.
-   * The default value is 'none' if unspecified.
-   * 
- * - * string cpu_manager_policy = 1; - * - * @return The bytes for cpuManagerPolicy. - */ - com.google.protobuf.ByteString getCpuManagerPolicyBytes(); - - /** - * - * - *
-   * Enable CPU CFS quota enforcement for containers that specify CPU limits.
-   *
-   * This option is enabled by default which makes kubelet use CFS quota
-   * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
-   * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
-   * all.
-   *
-   * Disable this option to mitigate CPU throttling problems while still having
-   * your pods to be in Guaranteed QoS class by specifying the CPU limits.
-   *
-   * The default value is 'true' if unspecified.
-   * 
- * - * .google.protobuf.BoolValue cpu_cfs_quota = 2; - * - * @return Whether the cpuCfsQuota field is set. - */ - boolean hasCpuCfsQuota(); - /** - * - * - *
-   * Enable CPU CFS quota enforcement for containers that specify CPU limits.
-   *
-   * This option is enabled by default which makes kubelet use CFS quota
-   * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
-   * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
-   * all.
-   *
-   * Disable this option to mitigate CPU throttling problems while still having
-   * your pods to be in Guaranteed QoS class by specifying the CPU limits.
-   *
-   * The default value is 'true' if unspecified.
-   * 
- * - * .google.protobuf.BoolValue cpu_cfs_quota = 2; - * - * @return The cpuCfsQuota. - */ - com.google.protobuf.BoolValue getCpuCfsQuota(); - /** - * - * - *
-   * Enable CPU CFS quota enforcement for containers that specify CPU limits.
-   *
-   * This option is enabled by default which makes kubelet use CFS quota
-   * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
-   * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
-   * all.
-   *
-   * Disable this option to mitigate CPU throttling problems while still having
-   * your pods to be in Guaranteed QoS class by specifying the CPU limits.
-   *
-   * The default value is 'true' if unspecified.
-   * 
- * - * .google.protobuf.BoolValue cpu_cfs_quota = 2; - */ - com.google.protobuf.BoolValueOrBuilder getCpuCfsQuotaOrBuilder(); - - /** - * - * - *
-   * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
-   *
-   * The string must be a sequence of decimal numbers, each with optional
-   * fraction and a unit suffix, such as "300ms".
-   * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
-   * The value must be a positive duration.
-   * 
- * - * string cpu_cfs_quota_period = 3; - * - * @return The cpuCfsQuotaPeriod. - */ - java.lang.String getCpuCfsQuotaPeriod(); - /** - * - * - *
-   * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
-   *
-   * The string must be a sequence of decimal numbers, each with optional
-   * fraction and a unit suffix, such as "300ms".
-   * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
-   * The value must be a positive duration.
-   * 
- * - * string cpu_cfs_quota_period = 3; - * - * @return The bytes for cpuCfsQuotaPeriod. - */ - com.google.protobuf.ByteString getCpuCfsQuotaPeriodBytes(); - - /** - * - * - *
-   * Set the Pod PID limits. See
-   * https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits
-   *
-   * Controls the maximum number of processes allowed to run in a pod. The value
-   * must be greater than or equal to 1024 and less than 4194304.
-   * 
- * - * int64 pod_pids_limit = 4; - * - * @return The podPidsLimit. - */ - long getPodPidsLimit(); - - /** - * - * - *
-   * Enable or disable Kubelet read only port.
-   * 
- * - * optional bool insecure_kubelet_readonly_port_enabled = 7; - * - * @return Whether the insecureKubeletReadonlyPortEnabled field is set. - */ - boolean hasInsecureKubeletReadonlyPortEnabled(); - /** - * - * - *
-   * Enable or disable Kubelet read only port.
-   * 
- * - * optional bool insecure_kubelet_readonly_port_enabled = 7; - * - * @return The insecureKubeletReadonlyPortEnabled. - */ - boolean getInsecureKubeletReadonlyPortEnabled(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeLabels.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeLabels.java deleted file mode 100644 index cc3c8acde8a1..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeLabels.java +++ /dev/null @@ -1,775 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Collection of node-level [Kubernetes
- * labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels).
- * 
- * - * Protobuf type {@code google.container.v1.NodeLabels} - */ -public final class NodeLabels extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.NodeLabels) - NodeLabelsOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeLabels.newBuilder() to construct. - private NodeLabels(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NodeLabels() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NodeLabels(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeLabels_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - 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.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeLabels_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodeLabels.class, - com.google.container.v1.NodeLabels.Builder.class); - } - - public static final int LABELS_FIELD_NUMBER = 1; - - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeLabels_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - @SuppressWarnings("serial") - 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(); - } - /** - * - * - *
-   * Map of node label keys and node label values.
-   * 
- * - * map<string, string> labels = 1; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-   * Map of node label keys and node label values.
-   * 
- * - * map<string, string> labels = 1; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-   * Map of node label keys and node label values.
-   * 
- * - * map<string, string> labels = 1; - */ - @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Map of node label keys and node label values.
-   * 
- * - * map<string, string> labels = 1; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().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, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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(1, labels__); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.NodeLabels)) { - return super.equals(obj); - } - com.google.container.v1.NodeLabels other = (com.google.container.v1.NodeLabels) obj; - - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.NodeLabels parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodeLabels parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodeLabels parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodeLabels parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodeLabels parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodeLabels parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodeLabels parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodeLabels parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NodeLabels parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodeLabels parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NodeLabels parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodeLabels parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.NodeLabels prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Collection of node-level [Kubernetes
-   * labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels).
-   * 
- * - * Protobuf type {@code google.container.v1.NodeLabels} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.NodeLabels) - com.google.container.v1.NodeLabelsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeLabels_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - 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.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeLabels_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodeLabels.class, - com.google.container.v1.NodeLabels.Builder.class); - } - - // Construct using com.google.container.v1.NodeLabels.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableLabels().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeLabels_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NodeLabels getDefaultInstanceForType() { - return com.google.container.v1.NodeLabels.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NodeLabels build() { - com.google.container.v1.NodeLabels result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NodeLabels buildPartial() { - com.google.container.v1.NodeLabels result = new com.google.container.v1.NodeLabels(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.NodeLabels result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NodeLabels) { - return mergeFrom((com.google.container.v1.NodeLabels) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NodeLabels other) { - if (other == com.google.container.v1.NodeLabels.getDefaultInstance()) return this; - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00000001; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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() { - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - * - * - *
-     * Map of node label keys and node label values.
-     * 
- * - * map<string, string> labels = 1; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-     * Map of node label keys and node label values.
-     * 
- * - * map<string, string> labels = 1; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-     * Map of node label keys and node label values.
-     * 
- * - * map<string, string> labels = 1; - */ - @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Map of node label keys and node label values.
-     * 
- * - * map<string, string> labels = 1; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableLabels().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Map of node label keys and node label values.
-     * 
- * - * map<string, string> labels = 1; - */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - bitField0_ |= 0x00000001; - return internalGetMutableLabels().getMutableMap(); - } - /** - * - * - *
-     * Map of node label keys and node label values.
-     * 
- * - * map<string, string> labels = 1; - */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * - * - *
-     * Map of node label keys and node label values.
-     * 
- * - * map<string, string> labels = 1; - */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.NodeLabels) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.NodeLabels) - private static final com.google.container.v1.NodeLabels DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.NodeLabels(); - } - - public static com.google.container.v1.NodeLabels getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeLabels parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.NodeLabels getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeLabelsOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeLabelsOrBuilder.java deleted file mode 100644 index e44f63a883a4..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeLabelsOrBuilder.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface NodeLabelsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.NodeLabels) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Map of node label keys and node label values.
-   * 
- * - * map<string, string> labels = 1; - */ - int getLabelsCount(); - /** - * - * - *
-   * Map of node label keys and node label values.
-   * 
- * - * map<string, string> labels = 1; - */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getLabels(); - /** - * - * - *
-   * Map of node label keys and node label values.
-   * 
- * - * map<string, string> labels = 1; - */ - java.util.Map getLabelsMap(); - /** - * - * - *
-   * Map of node label keys and node label values.
-   * 
- * - * map<string, string> labels = 1; - */ - /* nullable */ - java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * Map of node label keys and node label values.
-   * 
- * - * map<string, string> labels = 1; - */ - java.lang.String getLabelsOrThrow(java.lang.String key); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeManagement.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeManagement.java deleted file mode 100644 index cfb2b7592e15..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeManagement.java +++ /dev/null @@ -1,929 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * NodeManagement defines the set of node management services turned on for the
- * node pool.
- * 
- * - * Protobuf type {@code google.container.v1.NodeManagement} - */ -public final class NodeManagement extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeManagement_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeManagement_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodeManagement.class, - com.google.container.v1.NodeManagement.Builder.class); - } - - private int bitField0_; - public static final int AUTO_UPGRADE_FIELD_NUMBER = 1; - private boolean autoUpgrade_ = false; - /** - * - * - *
-   * A flag that specifies whether node auto-upgrade is enabled for the node
-   * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
-   * up to date with the latest release version of Kubernetes.
-   * 
- * - * 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_ = false; - /** - * - * - *
-   * A flag that specifies whether the node auto-repair is enabled for the node
-   * pool. If enabled, the nodes in this node pool will be monitored and, if
-   * they fail health checks too many times, an automatic repair action will be
-   * triggered.
-   * 
- * - * 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.v1.AutoUpgradeOptions upgradeOptions_; - /** - * - * - *
-   * Specifies the Auto Upgrade knobs for the node pool.
-   * 
- * - * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - * - * @return Whether the upgradeOptions field is set. - */ - @java.lang.Override - public boolean hasUpgradeOptions() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Specifies the Auto Upgrade knobs for the node pool.
-   * 
- * - * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - * - * @return The upgradeOptions. - */ - @java.lang.Override - public com.google.container.v1.AutoUpgradeOptions getUpgradeOptions() { - return upgradeOptions_ == null - ? com.google.container.v1.AutoUpgradeOptions.getDefaultInstance() - : upgradeOptions_; - } - /** - * - * - *
-   * Specifies the Auto Upgrade knobs for the node pool.
-   * 
- * - * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - */ - @java.lang.Override - public com.google.container.v1.AutoUpgradeOptionsOrBuilder getUpgradeOptionsOrBuilder() { - return upgradeOptions_ == null - ? com.google.container.v1.AutoUpgradeOptions.getDefaultInstance() - : upgradeOptions_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(10, getUpgradeOptions()); - } - getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getUpgradeOptions()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.NodeManagement)) { - return super.equals(obj); - } - com.google.container.v1.NodeManagement other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.NodeManagement parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.NodeManagement parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.NodeManagement parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodeManagement parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodeManagement parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.NodeManagement parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.NodeManagement parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.NodeManagement} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.NodeManagement) - com.google.container.v1.NodeManagementOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeManagement_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeManagement_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodeManagement.class, - com.google.container.v1.NodeManagement.Builder.class); - } - - // Construct using com.google.container.v1.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) { - getUpgradeOptionsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - autoUpgrade_ = false; - autoRepair_ = false; - upgradeOptions_ = null; - if (upgradeOptionsBuilder_ != null) { - upgradeOptionsBuilder_.dispose(); - upgradeOptionsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeManagement_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NodeManagement getDefaultInstanceForType() { - return com.google.container.v1.NodeManagement.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NodeManagement build() { - com.google.container.v1.NodeManagement result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NodeManagement buildPartial() { - com.google.container.v1.NodeManagement result = - new com.google.container.v1.NodeManagement(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.NodeManagement result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.autoUpgrade_ = autoUpgrade_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.autoRepair_ = autoRepair_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.upgradeOptions_ = - upgradeOptionsBuilder_ == null ? upgradeOptions_ : upgradeOptionsBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NodeManagement) { - return mergeFrom((com.google.container.v1.NodeManagement) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NodeManagement other) { - if (other == com.google.container.v1.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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - autoUpgrade_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - autoRepair_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 82: - { - input.readMessage(getUpgradeOptionsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean autoUpgrade_; - /** - * - * - *
-     * A flag that specifies whether node auto-upgrade is enabled for the node
-     * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
-     * up to date with the latest release version of Kubernetes.
-     * 
- * - * bool auto_upgrade = 1; - * - * @return The autoUpgrade. - */ - @java.lang.Override - public boolean getAutoUpgrade() { - return autoUpgrade_; - } - /** - * - * - *
-     * A flag that specifies whether node auto-upgrade is enabled for the node
-     * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
-     * up to date with the latest release version of Kubernetes.
-     * 
- * - * bool auto_upgrade = 1; - * - * @param value The autoUpgrade to set. - * @return This builder for chaining. - */ - public Builder setAutoUpgrade(boolean value) { - - autoUpgrade_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * A flag that specifies whether node auto-upgrade is enabled for the node
-     * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
-     * up to date with the latest release version of Kubernetes.
-     * 
- * - * bool auto_upgrade = 1; - * - * @return This builder for chaining. - */ - public Builder clearAutoUpgrade() { - bitField0_ = (bitField0_ & ~0x00000001); - autoUpgrade_ = false; - onChanged(); - return this; - } - - private boolean autoRepair_; - /** - * - * - *
-     * A flag that specifies whether the node auto-repair is enabled for the node
-     * pool. If enabled, the nodes in this node pool will be monitored and, if
-     * they fail health checks too many times, an automatic repair action will be
-     * triggered.
-     * 
- * - * bool auto_repair = 2; - * - * @return The autoRepair. - */ - @java.lang.Override - public boolean getAutoRepair() { - return autoRepair_; - } - /** - * - * - *
-     * A flag that specifies whether the node auto-repair is enabled for the node
-     * pool. If enabled, the nodes in this node pool will be monitored and, if
-     * they fail health checks too many times, an automatic repair action will be
-     * triggered.
-     * 
- * - * bool auto_repair = 2; - * - * @param value The autoRepair to set. - * @return This builder for chaining. - */ - public Builder setAutoRepair(boolean value) { - - autoRepair_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * A flag that specifies whether the node auto-repair is enabled for the node
-     * pool. If enabled, the nodes in this node pool will be monitored and, if
-     * they fail health checks too many times, an automatic repair action will be
-     * triggered.
-     * 
- * - * bool auto_repair = 2; - * - * @return This builder for chaining. - */ - public Builder clearAutoRepair() { - bitField0_ = (bitField0_ & ~0x00000002); - autoRepair_ = false; - onChanged(); - return this; - } - - private com.google.container.v1.AutoUpgradeOptions upgradeOptions_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AutoUpgradeOptions, - com.google.container.v1.AutoUpgradeOptions.Builder, - com.google.container.v1.AutoUpgradeOptionsOrBuilder> - upgradeOptionsBuilder_; - /** - * - * - *
-     * Specifies the Auto Upgrade knobs for the node pool.
-     * 
- * - * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - * - * @return Whether the upgradeOptions field is set. - */ - public boolean hasUpgradeOptions() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * Specifies the Auto Upgrade knobs for the node pool.
-     * 
- * - * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - * - * @return The upgradeOptions. - */ - public com.google.container.v1.AutoUpgradeOptions getUpgradeOptions() { - if (upgradeOptionsBuilder_ == null) { - return upgradeOptions_ == null - ? com.google.container.v1.AutoUpgradeOptions.getDefaultInstance() - : upgradeOptions_; - } else { - return upgradeOptionsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Specifies the Auto Upgrade knobs for the node pool.
-     * 
- * - * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - */ - public Builder setUpgradeOptions(com.google.container.v1.AutoUpgradeOptions value) { - if (upgradeOptionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - upgradeOptions_ = value; - } else { - upgradeOptionsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Specifies the Auto Upgrade knobs for the node pool.
-     * 
- * - * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - */ - public Builder setUpgradeOptions( - com.google.container.v1.AutoUpgradeOptions.Builder builderForValue) { - if (upgradeOptionsBuilder_ == null) { - upgradeOptions_ = builderForValue.build(); - } else { - upgradeOptionsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Specifies the Auto Upgrade knobs for the node pool.
-     * 
- * - * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - */ - public Builder mergeUpgradeOptions(com.google.container.v1.AutoUpgradeOptions value) { - if (upgradeOptionsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && upgradeOptions_ != null - && upgradeOptions_ != com.google.container.v1.AutoUpgradeOptions.getDefaultInstance()) { - getUpgradeOptionsBuilder().mergeFrom(value); - } else { - upgradeOptions_ = value; - } - } else { - upgradeOptionsBuilder_.mergeFrom(value); - } - if (upgradeOptions_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Specifies the Auto Upgrade knobs for the node pool.
-     * 
- * - * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - */ - public Builder clearUpgradeOptions() { - bitField0_ = (bitField0_ & ~0x00000004); - upgradeOptions_ = null; - if (upgradeOptionsBuilder_ != null) { - upgradeOptionsBuilder_.dispose(); - upgradeOptionsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Specifies the Auto Upgrade knobs for the node pool.
-     * 
- * - * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - */ - public com.google.container.v1.AutoUpgradeOptions.Builder getUpgradeOptionsBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getUpgradeOptionsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Specifies the Auto Upgrade knobs for the node pool.
-     * 
- * - * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - */ - public com.google.container.v1.AutoUpgradeOptionsOrBuilder getUpgradeOptionsOrBuilder() { - if (upgradeOptionsBuilder_ != null) { - return upgradeOptionsBuilder_.getMessageOrBuilder(); - } else { - return upgradeOptions_ == null - ? com.google.container.v1.AutoUpgradeOptions.getDefaultInstance() - : upgradeOptions_; - } - } - /** - * - * - *
-     * Specifies the Auto Upgrade knobs for the node pool.
-     * 
- * - * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AutoUpgradeOptions, - com.google.container.v1.AutoUpgradeOptions.Builder, - com.google.container.v1.AutoUpgradeOptionsOrBuilder> - getUpgradeOptionsFieldBuilder() { - if (upgradeOptionsBuilder_ == null) { - upgradeOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AutoUpgradeOptions, - com.google.container.v1.AutoUpgradeOptions.Builder, - com.google.container.v1.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.v1.NodeManagement) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.NodeManagement) - private static final com.google.container.v1.NodeManagement DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.NodeManagement(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.NodeManagement getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeManagementOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeManagementOrBuilder.java deleted file mode 100644 index bc31ac3f7a51..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeManagementOrBuilder.java +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface NodeManagementOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.NodeManagement) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A flag that specifies whether node auto-upgrade is enabled for the node
-   * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
-   * up to date with the latest release version of Kubernetes.
-   * 
- * - * bool auto_upgrade = 1; - * - * @return The autoUpgrade. - */ - boolean getAutoUpgrade(); - - /** - * - * - *
-   * A flag that specifies whether the node auto-repair is enabled for the node
-   * pool. If enabled, the nodes in this node pool will be monitored and, if
-   * they fail health checks too many times, an automatic repair action will be
-   * triggered.
-   * 
- * - * bool auto_repair = 2; - * - * @return The autoRepair. - */ - boolean getAutoRepair(); - - /** - * - * - *
-   * Specifies the Auto Upgrade knobs for the node pool.
-   * 
- * - * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - * - * @return Whether the upgradeOptions field is set. - */ - boolean hasUpgradeOptions(); - /** - * - * - *
-   * Specifies the Auto Upgrade knobs for the node pool.
-   * 
- * - * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - * - * @return The upgradeOptions. - */ - com.google.container.v1.AutoUpgradeOptions getUpgradeOptions(); - /** - * - * - *
-   * Specifies the Auto Upgrade knobs for the node pool.
-   * 
- * - * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - */ - com.google.container.v1.AutoUpgradeOptionsOrBuilder getUpgradeOptionsOrBuilder(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfig.java deleted file mode 100644 index 2974be108a54..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfig.java +++ /dev/null @@ -1,4107 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Parameters for node pool-level network config.
- * 
- * - * Protobuf type {@code google.container.v1.NodeNetworkConfig} - */ -public final class NodeNetworkConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.NodeNetworkConfig) - NodeNetworkConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeNetworkConfig.newBuilder() to construct. - private NodeNetworkConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NodeNetworkConfig() { - podRange_ = ""; - podIpv4CidrBlock_ = ""; - additionalNodeNetworkConfigs_ = java.util.Collections.emptyList(); - additionalPodNetworkConfigs_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NodeNetworkConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeNetworkConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeNetworkConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodeNetworkConfig.class, - com.google.container.v1.NodeNetworkConfig.Builder.class); - } - - public interface NetworkPerformanceConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Specifies the total network bandwidth tier for the NodePool.
-     * 
- * - * - * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @return Whether the totalEgressBandwidthTier field is set. - */ - boolean hasTotalEgressBandwidthTier(); - /** - * - * - *
-     * Specifies the total network bandwidth tier for the NodePool.
-     * 
- * - * - * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @return The enum numeric value on the wire for totalEgressBandwidthTier. - */ - int getTotalEgressBandwidthTierValue(); - /** - * - * - *
-     * Specifies the total network bandwidth tier for the NodePool.
-     * 
- * - * - * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @return The totalEgressBandwidthTier. - */ - com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier - getTotalEgressBandwidthTier(); - } - /** - * - * - *
-   * Configuration of all network bandwidth tiers
-   * 
- * - * Protobuf type {@code google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig} - */ - public static final class NetworkPerformanceConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig) - NetworkPerformanceConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use NetworkPerformanceConfig.newBuilder() to construct. - private NetworkPerformanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NetworkPerformanceConfig() { - totalEgressBandwidthTier_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NetworkPerformanceConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeNetworkConfig_NetworkPerformanceConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeNetworkConfig_NetworkPerformanceConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.class, - com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Builder.class); - } - - /** - * - * - *
-     * Node network tier
-     * 
- * - * Protobuf enum {@code google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier} - */ - public enum Tier implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-       * Default value
-       * 
- * - * TIER_UNSPECIFIED = 0; - */ - TIER_UNSPECIFIED(0), - /** - * - * - *
-       * Higher bandwidth, actual values based on VM size.
-       * 
- * - * TIER_1 = 1; - */ - TIER_1(1), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-       * Default value
-       * 
- * - * TIER_UNSPECIFIED = 0; - */ - public static final int TIER_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-       * Higher bandwidth, actual values based on VM size.
-       * 
- * - * TIER_1 = 1; - */ - public static final int TIER_1_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 Tier 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 Tier forNumber(int value) { - switch (value) { - case 0: - return TIER_UNSPECIFIED; - case 1: - return TIER_1; - 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 Tier findValueByNumber(int number) { - return Tier.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final Tier[] VALUES = values(); - - public static Tier 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 Tier(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier) - } - - private int bitField0_; - public static final int TOTAL_EGRESS_BANDWIDTH_TIER_FIELD_NUMBER = 1; - private int totalEgressBandwidthTier_ = 0; - /** - * - * - *
-     * Specifies the total network bandwidth tier for the NodePool.
-     * 
- * - * - * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @return Whether the totalEgressBandwidthTier field is set. - */ - @java.lang.Override - public boolean hasTotalEgressBandwidthTier() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Specifies the total network bandwidth tier for the NodePool.
-     * 
- * - * - * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @return The enum numeric value on the wire for totalEgressBandwidthTier. - */ - @java.lang.Override - public int getTotalEgressBandwidthTierValue() { - return totalEgressBandwidthTier_; - } - /** - * - * - *
-     * Specifies the total network bandwidth tier for the NodePool.
-     * 
- * - * - * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @return The totalEgressBandwidthTier. - */ - @java.lang.Override - public com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier - getTotalEgressBandwidthTier() { - com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier result = - com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier.forNumber( - totalEgressBandwidthTier_); - return result == null - ? com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier.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 (((bitField0_ & 0x00000001) != 0)) { - output.writeEnum(1, totalEgressBandwidthTier_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, totalEgressBandwidthTier_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig)) { - return super.equals(obj); - } - com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig other = - (com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig) obj; - - if (hasTotalEgressBandwidthTier() != other.hasTotalEgressBandwidthTier()) return false; - if (hasTotalEgressBandwidthTier()) { - if (totalEgressBandwidthTier_ != other.totalEgressBandwidthTier_) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasTotalEgressBandwidthTier()) { - hash = (37 * hash) + TOTAL_EGRESS_BANDWIDTH_TIER_FIELD_NUMBER; - hash = (53 * hash) + totalEgressBandwidthTier_; - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 all network bandwidth tiers
-     * 
- * - * Protobuf type {@code google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig) - com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeNetworkConfig_NetworkPerformanceConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeNetworkConfig_NetworkPerformanceConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.class, - com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Builder.class); - } - - // Construct using - // com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - totalEgressBandwidthTier_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeNetworkConfig_NetworkPerformanceConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig - getDefaultInstanceForType() { - return com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig build() { - com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig buildPartial() { - com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig result = - new com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.totalEgressBandwidthTier_ = totalEgressBandwidthTier_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig) { - return mergeFrom( - (com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig other) { - if (other - == com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig - .getDefaultInstance()) return this; - if (other.hasTotalEgressBandwidthTier()) { - setTotalEgressBandwidthTier(other.getTotalEgressBandwidthTier()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - totalEgressBandwidthTier_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int totalEgressBandwidthTier_ = 0; - /** - * - * - *
-       * Specifies the total network bandwidth tier for the NodePool.
-       * 
- * - * - * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @return Whether the totalEgressBandwidthTier field is set. - */ - @java.lang.Override - public boolean hasTotalEgressBandwidthTier() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-       * Specifies the total network bandwidth tier for the NodePool.
-       * 
- * - * - * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @return The enum numeric value on the wire for totalEgressBandwidthTier. - */ - @java.lang.Override - public int getTotalEgressBandwidthTierValue() { - return totalEgressBandwidthTier_; - } - /** - * - * - *
-       * Specifies the total network bandwidth tier for the NodePool.
-       * 
- * - * - * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @param value The enum numeric value on the wire for totalEgressBandwidthTier to set. - * @return This builder for chaining. - */ - public Builder setTotalEgressBandwidthTierValue(int value) { - totalEgressBandwidthTier_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * Specifies the total network bandwidth tier for the NodePool.
-       * 
- * - * - * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @return The totalEgressBandwidthTier. - */ - @java.lang.Override - public com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier - getTotalEgressBandwidthTier() { - com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier result = - com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier.forNumber( - totalEgressBandwidthTier_); - return result == null - ? com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier.UNRECOGNIZED - : result; - } - /** - * - * - *
-       * Specifies the total network bandwidth tier for the NodePool.
-       * 
- * - * - * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @param value The totalEgressBandwidthTier to set. - * @return This builder for chaining. - */ - public Builder setTotalEgressBandwidthTier( - com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - totalEgressBandwidthTier_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * Specifies the total network bandwidth tier for the NodePool.
-       * 
- * - * - * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @return This builder for chaining. - */ - public Builder clearTotalEgressBandwidthTier() { - bitField0_ = (bitField0_ & ~0x00000001); - totalEgressBandwidthTier_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig) - private static final com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig(); - } - - public static com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NetworkPerformanceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int bitField0_; - public static final int CREATE_POD_RANGE_FIELD_NUMBER = 4; - private boolean createPodRange_ = false; - /** - * - * - *
-   * Input only. Whether to create a new range for pod IPs in this node pool.
-   * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they
-   * are not specified.
-   *
-   * If neither `create_pod_range` or `pod_range` are specified, the
-   * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is
-   * used.
-   *
-   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-   *
-   * This field cannot be changed after the node pool has been created.
-   * 
- * - * bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * @return The createPodRange. - */ - @java.lang.Override - public boolean getCreatePodRange() { - return createPodRange_; - } - - public static final int POD_RANGE_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - private volatile java.lang.Object podRange_ = ""; - /** - * - * - *
-   * The ID of the secondary range for pod IPs.
-   * If `create_pod_range` is true, this ID is used for the new range.
-   * If `create_pod_range` is false, uses an existing secondary range with this
-   * ID.
-   *
-   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-   *
-   * This field cannot be changed after the node pool has been created.
-   * 
- * - * string pod_range = 5; - * - * @return The podRange. - */ - @java.lang.Override - public java.lang.String getPodRange() { - java.lang.Object ref = podRange_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - podRange_ = s; - return s; - } - } - /** - * - * - *
-   * The ID of the secondary range for pod IPs.
-   * If `create_pod_range` is true, this ID is used for the new range.
-   * If `create_pod_range` is false, uses an existing secondary range with this
-   * ID.
-   *
-   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-   *
-   * This field cannot be changed after the node pool has been created.
-   * 
- * - * string pod_range = 5; - * - * @return The bytes for podRange. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPodRangeBytes() { - java.lang.Object ref = podRange_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - podRange_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int POD_IPV4_CIDR_BLOCK_FIELD_NUMBER = 6; - - @SuppressWarnings("serial") - private volatile java.lang.Object podIpv4CidrBlock_ = ""; - /** - * - * - *
-   * The IP address range for pod IPs in this node pool.
-   *
-   * Only applicable if `create_pod_range` is true.
-   *
-   * Set to blank to have a range chosen with the default size.
-   *
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   *
-   * Set to a
-   * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
-   *
-   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-   *
-   * This field cannot be changed after the node pool has been created.
-   * 
- * - * string pod_ipv4_cidr_block = 6; - * - * @return The podIpv4CidrBlock. - */ - @java.lang.Override - public java.lang.String getPodIpv4CidrBlock() { - java.lang.Object ref = podIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - podIpv4CidrBlock_ = s; - return s; - } - } - /** - * - * - *
-   * The IP address range for pod IPs in this node pool.
-   *
-   * Only applicable if `create_pod_range` is true.
-   *
-   * Set to blank to have a range chosen with the default size.
-   *
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   *
-   * Set to a
-   * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
-   *
-   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-   *
-   * This field cannot be changed after the node pool has been created.
-   * 
- * - * string pod_ipv4_cidr_block = 6; - * - * @return The bytes for podIpv4CidrBlock. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPodIpv4CidrBlockBytes() { - java.lang.Object ref = podIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - podIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ENABLE_PRIVATE_NODES_FIELD_NUMBER = 9; - private boolean enablePrivateNodes_ = false; - /** - * - * - *
-   * Whether nodes have internal IP addresses only.
-   * If enable_private_nodes is not specified, then the value is derived from
-   * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
-   * 
- * - * optional bool enable_private_nodes = 9; - * - * @return Whether the enablePrivateNodes field is set. - */ - @java.lang.Override - public boolean hasEnablePrivateNodes() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Whether nodes have internal IP addresses only.
-   * If enable_private_nodes is not specified, then the value is derived from
-   * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
-   * 
- * - * optional bool enable_private_nodes = 9; - * - * @return The enablePrivateNodes. - */ - @java.lang.Override - public boolean getEnablePrivateNodes() { - return enablePrivateNodes_; - } - - public static final int NETWORK_PERFORMANCE_CONFIG_FIELD_NUMBER = 11; - private com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig - networkPerformanceConfig_; - /** - * - * - *
-   * Network bandwidth tier configuration.
-   * 
- * - * - * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - * - * - * @return Whether the networkPerformanceConfig field is set. - */ - @java.lang.Override - public boolean hasNetworkPerformanceConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * Network bandwidth tier configuration.
-   * 
- * - * - * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - * - * - * @return The networkPerformanceConfig. - */ - @java.lang.Override - public com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig - getNetworkPerformanceConfig() { - return networkPerformanceConfig_ == null - ? com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.getDefaultInstance() - : networkPerformanceConfig_; - } - /** - * - * - *
-   * Network bandwidth tier configuration.
-   * 
- * - * - * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - * - */ - @java.lang.Override - public com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfigOrBuilder - getNetworkPerformanceConfigOrBuilder() { - return networkPerformanceConfig_ == null - ? com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.getDefaultInstance() - : networkPerformanceConfig_; - } - - public static final int POD_CIDR_OVERPROVISION_CONFIG_FIELD_NUMBER = 13; - private com.google.container.v1.PodCIDROverprovisionConfig podCidrOverprovisionConfig_; - /** - * - * - *
-   * [PRIVATE FIELD]
-   * Pod CIDR size overprovisioning config for the nodepool.
-   *
-   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-   * of max_pods_per_node is rounded off to next power of 2 and we then double
-   * that to get the size of pod CIDR block per node.
-   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-   *
-   * This config can disable the doubling of IPs (we still round off to next
-   * power of 2)
-   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-   * overprovisioning is disabled.
-   * 
- * - * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; - * - * - * @return Whether the podCidrOverprovisionConfig field is set. - */ - @java.lang.Override - public boolean hasPodCidrOverprovisionConfig() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-   * [PRIVATE FIELD]
-   * Pod CIDR size overprovisioning config for the nodepool.
-   *
-   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-   * of max_pods_per_node is rounded off to next power of 2 and we then double
-   * that to get the size of pod CIDR block per node.
-   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-   *
-   * This config can disable the doubling of IPs (we still round off to next
-   * power of 2)
-   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-   * overprovisioning is disabled.
-   * 
- * - * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; - * - * - * @return The podCidrOverprovisionConfig. - */ - @java.lang.Override - public com.google.container.v1.PodCIDROverprovisionConfig getPodCidrOverprovisionConfig() { - return podCidrOverprovisionConfig_ == null - ? com.google.container.v1.PodCIDROverprovisionConfig.getDefaultInstance() - : podCidrOverprovisionConfig_; - } - /** - * - * - *
-   * [PRIVATE FIELD]
-   * Pod CIDR size overprovisioning config for the nodepool.
-   *
-   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-   * of max_pods_per_node is rounded off to next power of 2 and we then double
-   * that to get the size of pod CIDR block per node.
-   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-   *
-   * This config can disable the doubling of IPs (we still round off to next
-   * power of 2)
-   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-   * overprovisioning is disabled.
-   * 
- * - * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; - * - */ - @java.lang.Override - public com.google.container.v1.PodCIDROverprovisionConfigOrBuilder - getPodCidrOverprovisionConfigOrBuilder() { - return podCidrOverprovisionConfig_ == null - ? com.google.container.v1.PodCIDROverprovisionConfig.getDefaultInstance() - : podCidrOverprovisionConfig_; - } - - public static final int ADDITIONAL_NODE_NETWORK_CONFIGS_FIELD_NUMBER = 14; - - @SuppressWarnings("serial") - private java.util.List - additionalNodeNetworkConfigs_; - /** - * - * - *
-   * We specify the additional node networks for this node pool using this list.
-   * Each node network corresponds to an additional interface
-   * 
- * - * - * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - @java.lang.Override - public java.util.List - getAdditionalNodeNetworkConfigsList() { - return additionalNodeNetworkConfigs_; - } - /** - * - * - *
-   * We specify the additional node networks for this node pool using this list.
-   * Each node network corresponds to an additional interface
-   * 
- * - * - * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - @java.lang.Override - public java.util.List - getAdditionalNodeNetworkConfigsOrBuilderList() { - return additionalNodeNetworkConfigs_; - } - /** - * - * - *
-   * We specify the additional node networks for this node pool using this list.
-   * Each node network corresponds to an additional interface
-   * 
- * - * - * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - @java.lang.Override - public int getAdditionalNodeNetworkConfigsCount() { - return additionalNodeNetworkConfigs_.size(); - } - /** - * - * - *
-   * We specify the additional node networks for this node pool using this list.
-   * Each node network corresponds to an additional interface
-   * 
- * - * - * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - @java.lang.Override - public com.google.container.v1.AdditionalNodeNetworkConfig getAdditionalNodeNetworkConfigs( - int index) { - return additionalNodeNetworkConfigs_.get(index); - } - /** - * - * - *
-   * We specify the additional node networks for this node pool using this list.
-   * Each node network corresponds to an additional interface
-   * 
- * - * - * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - @java.lang.Override - public com.google.container.v1.AdditionalNodeNetworkConfigOrBuilder - getAdditionalNodeNetworkConfigsOrBuilder(int index) { - return additionalNodeNetworkConfigs_.get(index); - } - - public static final int ADDITIONAL_POD_NETWORK_CONFIGS_FIELD_NUMBER = 15; - - @SuppressWarnings("serial") - private java.util.List - additionalPodNetworkConfigs_; - /** - * - * - *
-   * We specify the additional pod networks for this node pool using this list.
-   * Each pod network corresponds to an additional alias IP range for the node
-   * 
- * - * - * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - @java.lang.Override - public java.util.List - getAdditionalPodNetworkConfigsList() { - return additionalPodNetworkConfigs_; - } - /** - * - * - *
-   * We specify the additional pod networks for this node pool using this list.
-   * Each pod network corresponds to an additional alias IP range for the node
-   * 
- * - * - * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - @java.lang.Override - public java.util.List - getAdditionalPodNetworkConfigsOrBuilderList() { - return additionalPodNetworkConfigs_; - } - /** - * - * - *
-   * We specify the additional pod networks for this node pool using this list.
-   * Each pod network corresponds to an additional alias IP range for the node
-   * 
- * - * - * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - @java.lang.Override - public int getAdditionalPodNetworkConfigsCount() { - return additionalPodNetworkConfigs_.size(); - } - /** - * - * - *
-   * We specify the additional pod networks for this node pool using this list.
-   * Each pod network corresponds to an additional alias IP range for the node
-   * 
- * - * - * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - @java.lang.Override - public com.google.container.v1.AdditionalPodNetworkConfig getAdditionalPodNetworkConfigs( - int index) { - return additionalPodNetworkConfigs_.get(index); - } - /** - * - * - *
-   * We specify the additional pod networks for this node pool using this list.
-   * Each pod network corresponds to an additional alias IP range for the node
-   * 
- * - * - * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - @java.lang.Override - public com.google.container.v1.AdditionalPodNetworkConfigOrBuilder - getAdditionalPodNetworkConfigsOrBuilder(int index) { - return additionalPodNetworkConfigs_.get(index); - } - - public static final int POD_IPV4_RANGE_UTILIZATION_FIELD_NUMBER = 16; - private double podIpv4RangeUtilization_ = 0D; - /** - * - * - *
-   * Output only. [Output only] The utilization of the IPv4 range for the pod.
-   * The ratio is Usage/[Total number of IPs in the secondary range],
-   * Usage=numNodes*numZones*podIPsPerNode.
-   * 
- * - * double pod_ipv4_range_utilization = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The podIpv4RangeUtilization. - */ - @java.lang.Override - public double getPodIpv4RangeUtilization() { - return podIpv4RangeUtilization_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (createPodRange_ != false) { - output.writeBool(4, createPodRange_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(podRange_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, podRange_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(podIpv4CidrBlock_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, podIpv4CidrBlock_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeBool(9, enablePrivateNodes_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(11, getNetworkPerformanceConfig()); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(13, getPodCidrOverprovisionConfig()); - } - for (int i = 0; i < additionalNodeNetworkConfigs_.size(); i++) { - output.writeMessage(14, additionalNodeNetworkConfigs_.get(i)); - } - for (int i = 0; i < additionalPodNetworkConfigs_.size(); i++) { - output.writeMessage(15, additionalPodNetworkConfigs_.get(i)); - } - if (java.lang.Double.doubleToRawLongBits(podIpv4RangeUtilization_) != 0) { - output.writeDouble(16, podIpv4RangeUtilization_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (createPodRange_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, createPodRange_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(podRange_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, podRange_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(podIpv4CidrBlock_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, podIpv4CidrBlock_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, enablePrivateNodes_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 11, getNetworkPerformanceConfig()); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 13, getPodCidrOverprovisionConfig()); - } - for (int i = 0; i < additionalNodeNetworkConfigs_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 14, additionalNodeNetworkConfigs_.get(i)); - } - for (int i = 0; i < additionalPodNetworkConfigs_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 15, additionalPodNetworkConfigs_.get(i)); - } - if (java.lang.Double.doubleToRawLongBits(podIpv4RangeUtilization_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(16, podIpv4RangeUtilization_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.NodeNetworkConfig)) { - return super.equals(obj); - } - com.google.container.v1.NodeNetworkConfig other = - (com.google.container.v1.NodeNetworkConfig) obj; - - if (getCreatePodRange() != other.getCreatePodRange()) return false; - if (!getPodRange().equals(other.getPodRange())) return false; - if (!getPodIpv4CidrBlock().equals(other.getPodIpv4CidrBlock())) return false; - if (hasEnablePrivateNodes() != other.hasEnablePrivateNodes()) return false; - if (hasEnablePrivateNodes()) { - if (getEnablePrivateNodes() != other.getEnablePrivateNodes()) return false; - } - if (hasNetworkPerformanceConfig() != other.hasNetworkPerformanceConfig()) return false; - if (hasNetworkPerformanceConfig()) { - if (!getNetworkPerformanceConfig().equals(other.getNetworkPerformanceConfig())) return false; - } - if (hasPodCidrOverprovisionConfig() != other.hasPodCidrOverprovisionConfig()) return false; - if (hasPodCidrOverprovisionConfig()) { - if (!getPodCidrOverprovisionConfig().equals(other.getPodCidrOverprovisionConfig())) - return false; - } - if (!getAdditionalNodeNetworkConfigsList().equals(other.getAdditionalNodeNetworkConfigsList())) - return false; - if (!getAdditionalPodNetworkConfigsList().equals(other.getAdditionalPodNetworkConfigsList())) - return false; - if (java.lang.Double.doubleToLongBits(getPodIpv4RangeUtilization()) - != java.lang.Double.doubleToLongBits(other.getPodIpv4RangeUtilization())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CREATE_POD_RANGE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCreatePodRange()); - hash = (37 * hash) + POD_RANGE_FIELD_NUMBER; - hash = (53 * hash) + getPodRange().hashCode(); - hash = (37 * hash) + POD_IPV4_CIDR_BLOCK_FIELD_NUMBER; - hash = (53 * hash) + getPodIpv4CidrBlock().hashCode(); - if (hasEnablePrivateNodes()) { - hash = (37 * hash) + ENABLE_PRIVATE_NODES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePrivateNodes()); - } - if (hasNetworkPerformanceConfig()) { - hash = (37 * hash) + NETWORK_PERFORMANCE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getNetworkPerformanceConfig().hashCode(); - } - if (hasPodCidrOverprovisionConfig()) { - hash = (37 * hash) + POD_CIDR_OVERPROVISION_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getPodCidrOverprovisionConfig().hashCode(); - } - if (getAdditionalNodeNetworkConfigsCount() > 0) { - hash = (37 * hash) + ADDITIONAL_NODE_NETWORK_CONFIGS_FIELD_NUMBER; - hash = (53 * hash) + getAdditionalNodeNetworkConfigsList().hashCode(); - } - if (getAdditionalPodNetworkConfigsCount() > 0) { - hash = (37 * hash) + ADDITIONAL_POD_NETWORK_CONFIGS_FIELD_NUMBER; - hash = (53 * hash) + getAdditionalPodNetworkConfigsList().hashCode(); - } - hash = (37 * hash) + POD_IPV4_RANGE_UTILIZATION_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getPodIpv4RangeUtilization())); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.NodeNetworkConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodeNetworkConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodeNetworkConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodeNetworkConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodeNetworkConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodeNetworkConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodeNetworkConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodeNetworkConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NodeNetworkConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodeNetworkConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NodeNetworkConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodeNetworkConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.NodeNetworkConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Parameters for node pool-level network config.
-   * 
- * - * Protobuf type {@code google.container.v1.NodeNetworkConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.NodeNetworkConfig) - com.google.container.v1.NodeNetworkConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeNetworkConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeNetworkConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodeNetworkConfig.class, - com.google.container.v1.NodeNetworkConfig.Builder.class); - } - - // Construct using com.google.container.v1.NodeNetworkConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getNetworkPerformanceConfigFieldBuilder(); - getPodCidrOverprovisionConfigFieldBuilder(); - getAdditionalNodeNetworkConfigsFieldBuilder(); - getAdditionalPodNetworkConfigsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - createPodRange_ = false; - podRange_ = ""; - podIpv4CidrBlock_ = ""; - enablePrivateNodes_ = false; - networkPerformanceConfig_ = null; - if (networkPerformanceConfigBuilder_ != null) { - networkPerformanceConfigBuilder_.dispose(); - networkPerformanceConfigBuilder_ = null; - } - podCidrOverprovisionConfig_ = null; - if (podCidrOverprovisionConfigBuilder_ != null) { - podCidrOverprovisionConfigBuilder_.dispose(); - podCidrOverprovisionConfigBuilder_ = null; - } - if (additionalNodeNetworkConfigsBuilder_ == null) { - additionalNodeNetworkConfigs_ = java.util.Collections.emptyList(); - } else { - additionalNodeNetworkConfigs_ = null; - additionalNodeNetworkConfigsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000040); - if (additionalPodNetworkConfigsBuilder_ == null) { - additionalPodNetworkConfigs_ = java.util.Collections.emptyList(); - } else { - additionalPodNetworkConfigs_ = null; - additionalPodNetworkConfigsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000080); - podIpv4RangeUtilization_ = 0D; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeNetworkConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NodeNetworkConfig getDefaultInstanceForType() { - return com.google.container.v1.NodeNetworkConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NodeNetworkConfig build() { - com.google.container.v1.NodeNetworkConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NodeNetworkConfig buildPartial() { - com.google.container.v1.NodeNetworkConfig result = - new com.google.container.v1.NodeNetworkConfig(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.container.v1.NodeNetworkConfig result) { - if (additionalNodeNetworkConfigsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { - additionalNodeNetworkConfigs_ = - java.util.Collections.unmodifiableList(additionalNodeNetworkConfigs_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.additionalNodeNetworkConfigs_ = additionalNodeNetworkConfigs_; - } else { - result.additionalNodeNetworkConfigs_ = additionalNodeNetworkConfigsBuilder_.build(); - } - if (additionalPodNetworkConfigsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0)) { - additionalPodNetworkConfigs_ = - java.util.Collections.unmodifiableList(additionalPodNetworkConfigs_); - bitField0_ = (bitField0_ & ~0x00000080); - } - result.additionalPodNetworkConfigs_ = additionalPodNetworkConfigs_; - } else { - result.additionalPodNetworkConfigs_ = additionalPodNetworkConfigsBuilder_.build(); - } - } - - private void buildPartial0(com.google.container.v1.NodeNetworkConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.createPodRange_ = createPodRange_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.podRange_ = podRange_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.podIpv4CidrBlock_ = podIpv4CidrBlock_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.enablePrivateNodes_ = enablePrivateNodes_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.networkPerformanceConfig_ = - networkPerformanceConfigBuilder_ == null - ? networkPerformanceConfig_ - : networkPerformanceConfigBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.podCidrOverprovisionConfig_ = - podCidrOverprovisionConfigBuilder_ == null - ? podCidrOverprovisionConfig_ - : podCidrOverprovisionConfigBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.podIpv4RangeUtilization_ = podIpv4RangeUtilization_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NodeNetworkConfig) { - return mergeFrom((com.google.container.v1.NodeNetworkConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NodeNetworkConfig other) { - if (other == com.google.container.v1.NodeNetworkConfig.getDefaultInstance()) return this; - if (other.getCreatePodRange() != false) { - setCreatePodRange(other.getCreatePodRange()); - } - if (!other.getPodRange().isEmpty()) { - podRange_ = other.podRange_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getPodIpv4CidrBlock().isEmpty()) { - podIpv4CidrBlock_ = other.podIpv4CidrBlock_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasEnablePrivateNodes()) { - setEnablePrivateNodes(other.getEnablePrivateNodes()); - } - if (other.hasNetworkPerformanceConfig()) { - mergeNetworkPerformanceConfig(other.getNetworkPerformanceConfig()); - } - if (other.hasPodCidrOverprovisionConfig()) { - mergePodCidrOverprovisionConfig(other.getPodCidrOverprovisionConfig()); - } - if (additionalNodeNetworkConfigsBuilder_ == null) { - if (!other.additionalNodeNetworkConfigs_.isEmpty()) { - if (additionalNodeNetworkConfigs_.isEmpty()) { - additionalNodeNetworkConfigs_ = other.additionalNodeNetworkConfigs_; - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ensureAdditionalNodeNetworkConfigsIsMutable(); - additionalNodeNetworkConfigs_.addAll(other.additionalNodeNetworkConfigs_); - } - onChanged(); - } - } else { - if (!other.additionalNodeNetworkConfigs_.isEmpty()) { - if (additionalNodeNetworkConfigsBuilder_.isEmpty()) { - additionalNodeNetworkConfigsBuilder_.dispose(); - additionalNodeNetworkConfigsBuilder_ = null; - additionalNodeNetworkConfigs_ = other.additionalNodeNetworkConfigs_; - bitField0_ = (bitField0_ & ~0x00000040); - additionalNodeNetworkConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAdditionalNodeNetworkConfigsFieldBuilder() - : null; - } else { - additionalNodeNetworkConfigsBuilder_.addAllMessages( - other.additionalNodeNetworkConfigs_); - } - } - } - if (additionalPodNetworkConfigsBuilder_ == null) { - if (!other.additionalPodNetworkConfigs_.isEmpty()) { - if (additionalPodNetworkConfigs_.isEmpty()) { - additionalPodNetworkConfigs_ = other.additionalPodNetworkConfigs_; - bitField0_ = (bitField0_ & ~0x00000080); - } else { - ensureAdditionalPodNetworkConfigsIsMutable(); - additionalPodNetworkConfigs_.addAll(other.additionalPodNetworkConfigs_); - } - onChanged(); - } - } else { - if (!other.additionalPodNetworkConfigs_.isEmpty()) { - if (additionalPodNetworkConfigsBuilder_.isEmpty()) { - additionalPodNetworkConfigsBuilder_.dispose(); - additionalPodNetworkConfigsBuilder_ = null; - additionalPodNetworkConfigs_ = other.additionalPodNetworkConfigs_; - bitField0_ = (bitField0_ & ~0x00000080); - additionalPodNetworkConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAdditionalPodNetworkConfigsFieldBuilder() - : null; - } else { - additionalPodNetworkConfigsBuilder_.addAllMessages(other.additionalPodNetworkConfigs_); - } - } - } - if (other.getPodIpv4RangeUtilization() != 0D) { - setPodIpv4RangeUtilization(other.getPodIpv4RangeUtilization()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 32: - { - createPodRange_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 32 - case 42: - { - podRange_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 42 - case 50: - { - podIpv4CidrBlock_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 50 - case 72: - { - enablePrivateNodes_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 72 - case 90: - { - input.readMessage( - getNetworkPerformanceConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 90 - case 106: - { - input.readMessage( - getPodCidrOverprovisionConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 106 - case 114: - { - com.google.container.v1.AdditionalNodeNetworkConfig m = - input.readMessage( - com.google.container.v1.AdditionalNodeNetworkConfig.parser(), - extensionRegistry); - if (additionalNodeNetworkConfigsBuilder_ == null) { - ensureAdditionalNodeNetworkConfigsIsMutable(); - additionalNodeNetworkConfigs_.add(m); - } else { - additionalNodeNetworkConfigsBuilder_.addMessage(m); - } - break; - } // case 114 - case 122: - { - com.google.container.v1.AdditionalPodNetworkConfig m = - input.readMessage( - com.google.container.v1.AdditionalPodNetworkConfig.parser(), - extensionRegistry); - if (additionalPodNetworkConfigsBuilder_ == null) { - ensureAdditionalPodNetworkConfigsIsMutable(); - additionalPodNetworkConfigs_.add(m); - } else { - additionalPodNetworkConfigsBuilder_.addMessage(m); - } - break; - } // case 122 - case 129: - { - podIpv4RangeUtilization_ = input.readDouble(); - bitField0_ |= 0x00000100; - break; - } // case 129 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean createPodRange_; - /** - * - * - *
-     * Input only. Whether to create a new range for pod IPs in this node pool.
-     * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they
-     * are not specified.
-     *
-     * If neither `create_pod_range` or `pod_range` are specified, the
-     * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is
-     * used.
-     *
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     *
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * @return The createPodRange. - */ - @java.lang.Override - public boolean getCreatePodRange() { - return createPodRange_; - } - /** - * - * - *
-     * Input only. Whether to create a new range for pod IPs in this node pool.
-     * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they
-     * are not specified.
-     *
-     * If neither `create_pod_range` or `pod_range` are specified, the
-     * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is
-     * used.
-     *
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     *
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * @param value The createPodRange to set. - * @return This builder for chaining. - */ - public Builder setCreatePodRange(boolean value) { - - createPodRange_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Input only. Whether to create a new range for pod IPs in this node pool.
-     * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they
-     * are not specified.
-     *
-     * If neither `create_pod_range` or `pod_range` are specified, the
-     * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is
-     * used.
-     *
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     *
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearCreatePodRange() { - bitField0_ = (bitField0_ & ~0x00000001); - createPodRange_ = false; - onChanged(); - return this; - } - - private java.lang.Object podRange_ = ""; - /** - * - * - *
-     * The ID of the secondary range for pod IPs.
-     * If `create_pod_range` is true, this ID is used for the new range.
-     * If `create_pod_range` is false, uses an existing secondary range with this
-     * ID.
-     *
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     *
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * string pod_range = 5; - * - * @return The podRange. - */ - public java.lang.String getPodRange() { - java.lang.Object ref = podRange_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - podRange_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The ID of the secondary range for pod IPs.
-     * If `create_pod_range` is true, this ID is used for the new range.
-     * If `create_pod_range` is false, uses an existing secondary range with this
-     * ID.
-     *
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     *
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * string pod_range = 5; - * - * @return The bytes for podRange. - */ - public com.google.protobuf.ByteString getPodRangeBytes() { - java.lang.Object ref = podRange_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - podRange_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The ID of the secondary range for pod IPs.
-     * If `create_pod_range` is true, this ID is used for the new range.
-     * If `create_pod_range` is false, uses an existing secondary range with this
-     * ID.
-     *
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     *
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * string pod_range = 5; - * - * @param value The podRange to set. - * @return This builder for chaining. - */ - public Builder setPodRange(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - podRange_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * The ID of the secondary range for pod IPs.
-     * If `create_pod_range` is true, this ID is used for the new range.
-     * If `create_pod_range` is false, uses an existing secondary range with this
-     * ID.
-     *
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     *
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * string pod_range = 5; - * - * @return This builder for chaining. - */ - public Builder clearPodRange() { - podRange_ = getDefaultInstance().getPodRange(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * The ID of the secondary range for pod IPs.
-     * If `create_pod_range` is true, this ID is used for the new range.
-     * If `create_pod_range` is false, uses an existing secondary range with this
-     * ID.
-     *
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     *
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * string pod_range = 5; - * - * @param value The bytes for podRange to set. - * @return This builder for chaining. - */ - public Builder setPodRangeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - podRange_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object podIpv4CidrBlock_ = ""; - /** - * - * - *
-     * The IP address range for pod IPs in this node pool.
-     *
-     * Only applicable if `create_pod_range` is true.
-     *
-     * Set to blank to have a range chosen with the default size.
-     *
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     *
-     * Set to a
-     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
-     *
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     *
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * string pod_ipv4_cidr_block = 6; - * - * @return The podIpv4CidrBlock. - */ - public java.lang.String getPodIpv4CidrBlock() { - java.lang.Object ref = podIpv4CidrBlock_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - podIpv4CidrBlock_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The IP address range for pod IPs in this node pool.
-     *
-     * Only applicable if `create_pod_range` is true.
-     *
-     * Set to blank to have a range chosen with the default size.
-     *
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     *
-     * Set to a
-     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
-     *
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     *
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * string pod_ipv4_cidr_block = 6; - * - * @return The bytes for podIpv4CidrBlock. - */ - public com.google.protobuf.ByteString getPodIpv4CidrBlockBytes() { - java.lang.Object ref = podIpv4CidrBlock_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - podIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The IP address range for pod IPs in this node pool.
-     *
-     * Only applicable if `create_pod_range` is true.
-     *
-     * Set to blank to have a range chosen with the default size.
-     *
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     *
-     * Set to a
-     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
-     *
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     *
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * string pod_ipv4_cidr_block = 6; - * - * @param value The podIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setPodIpv4CidrBlock(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - podIpv4CidrBlock_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The IP address range for pod IPs in this node pool.
-     *
-     * Only applicable if `create_pod_range` is true.
-     *
-     * Set to blank to have a range chosen with the default size.
-     *
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     *
-     * Set to a
-     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
-     *
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     *
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * string pod_ipv4_cidr_block = 6; - * - * @return This builder for chaining. - */ - public Builder clearPodIpv4CidrBlock() { - podIpv4CidrBlock_ = getDefaultInstance().getPodIpv4CidrBlock(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * The IP address range for pod IPs in this node pool.
-     *
-     * Only applicable if `create_pod_range` is true.
-     *
-     * Set to blank to have a range chosen with the default size.
-     *
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     *
-     * Set to a
-     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
-     *
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     *
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * string pod_ipv4_cidr_block = 6; - * - * @param value The bytes for podIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setPodIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - podIpv4CidrBlock_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private boolean enablePrivateNodes_; - /** - * - * - *
-     * Whether nodes have internal IP addresses only.
-     * If enable_private_nodes is not specified, then the value is derived from
-     * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
-     * 
- * - * optional bool enable_private_nodes = 9; - * - * @return Whether the enablePrivateNodes field is set. - */ - @java.lang.Override - public boolean hasEnablePrivateNodes() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-     * Whether nodes have internal IP addresses only.
-     * If enable_private_nodes is not specified, then the value is derived from
-     * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
-     * 
- * - * optional bool enable_private_nodes = 9; - * - * @return The enablePrivateNodes. - */ - @java.lang.Override - public boolean getEnablePrivateNodes() { - return enablePrivateNodes_; - } - /** - * - * - *
-     * Whether nodes have internal IP addresses only.
-     * If enable_private_nodes is not specified, then the value is derived from
-     * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
-     * 
- * - * optional bool enable_private_nodes = 9; - * - * @param value The enablePrivateNodes to set. - * @return This builder for chaining. - */ - public Builder setEnablePrivateNodes(boolean value) { - - enablePrivateNodes_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether nodes have internal IP addresses only.
-     * If enable_private_nodes is not specified, then the value is derived from
-     * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
-     * 
- * - * optional bool enable_private_nodes = 9; - * - * @return This builder for chaining. - */ - public Builder clearEnablePrivateNodes() { - bitField0_ = (bitField0_ & ~0x00000008); - enablePrivateNodes_ = false; - onChanged(); - return this; - } - - private com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig - networkPerformanceConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig, - com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Builder, - com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfigOrBuilder> - networkPerformanceConfigBuilder_; - /** - * - * - *
-     * Network bandwidth tier configuration.
-     * 
- * - * - * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - * - * - * @return Whether the networkPerformanceConfig field is set. - */ - public boolean hasNetworkPerformanceConfig() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-     * Network bandwidth tier configuration.
-     * 
- * - * - * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - * - * - * @return The networkPerformanceConfig. - */ - public com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig - getNetworkPerformanceConfig() { - if (networkPerformanceConfigBuilder_ == null) { - return networkPerformanceConfig_ == null - ? com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig - .getDefaultInstance() - : networkPerformanceConfig_; - } else { - return networkPerformanceConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Network bandwidth tier configuration.
-     * 
- * - * - * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - * - */ - public Builder setNetworkPerformanceConfig( - com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig value) { - if (networkPerformanceConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - networkPerformanceConfig_ = value; - } else { - networkPerformanceConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Network bandwidth tier configuration.
-     * 
- * - * - * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - * - */ - public Builder setNetworkPerformanceConfig( - com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Builder - builderForValue) { - if (networkPerformanceConfigBuilder_ == null) { - networkPerformanceConfig_ = builderForValue.build(); - } else { - networkPerformanceConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Network bandwidth tier configuration.
-     * 
- * - * - * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - * - */ - public Builder mergeNetworkPerformanceConfig( - com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig value) { - if (networkPerformanceConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && networkPerformanceConfig_ != null - && networkPerformanceConfig_ - != com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig - .getDefaultInstance()) { - getNetworkPerformanceConfigBuilder().mergeFrom(value); - } else { - networkPerformanceConfig_ = value; - } - } else { - networkPerformanceConfigBuilder_.mergeFrom(value); - } - if (networkPerformanceConfig_ != null) { - bitField0_ |= 0x00000010; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Network bandwidth tier configuration.
-     * 
- * - * - * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - * - */ - public Builder clearNetworkPerformanceConfig() { - bitField0_ = (bitField0_ & ~0x00000010); - networkPerformanceConfig_ = null; - if (networkPerformanceConfigBuilder_ != null) { - networkPerformanceConfigBuilder_.dispose(); - networkPerformanceConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Network bandwidth tier configuration.
-     * 
- * - * - * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - * - */ - public com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Builder - getNetworkPerformanceConfigBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getNetworkPerformanceConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Network bandwidth tier configuration.
-     * 
- * - * - * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - * - */ - public com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfigOrBuilder - getNetworkPerformanceConfigOrBuilder() { - if (networkPerformanceConfigBuilder_ != null) { - return networkPerformanceConfigBuilder_.getMessageOrBuilder(); - } else { - return networkPerformanceConfig_ == null - ? com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig - .getDefaultInstance() - : networkPerformanceConfig_; - } - } - /** - * - * - *
-     * Network bandwidth tier configuration.
-     * 
- * - * - * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig, - com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Builder, - com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfigOrBuilder> - getNetworkPerformanceConfigFieldBuilder() { - if (networkPerformanceConfigBuilder_ == null) { - networkPerformanceConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig, - com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Builder, - com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfigOrBuilder>( - getNetworkPerformanceConfig(), getParentForChildren(), isClean()); - networkPerformanceConfig_ = null; - } - return networkPerformanceConfigBuilder_; - } - - private com.google.container.v1.PodCIDROverprovisionConfig podCidrOverprovisionConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.PodCIDROverprovisionConfig, - com.google.container.v1.PodCIDROverprovisionConfig.Builder, - com.google.container.v1.PodCIDROverprovisionConfigOrBuilder> - podCidrOverprovisionConfigBuilder_; - /** - * - * - *
-     * [PRIVATE FIELD]
-     * Pod CIDR size overprovisioning config for the nodepool.
-     *
-     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-     * of max_pods_per_node is rounded off to next power of 2 and we then double
-     * that to get the size of pod CIDR block per node.
-     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-     *
-     * This config can disable the doubling of IPs (we still round off to next
-     * power of 2)
-     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-     * overprovisioning is disabled.
-     * 
- * - * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; - * - * - * @return Whether the podCidrOverprovisionConfig field is set. - */ - public boolean hasPodCidrOverprovisionConfig() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * - * - *
-     * [PRIVATE FIELD]
-     * Pod CIDR size overprovisioning config for the nodepool.
-     *
-     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-     * of max_pods_per_node is rounded off to next power of 2 and we then double
-     * that to get the size of pod CIDR block per node.
-     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-     *
-     * This config can disable the doubling of IPs (we still round off to next
-     * power of 2)
-     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-     * overprovisioning is disabled.
-     * 
- * - * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; - * - * - * @return The podCidrOverprovisionConfig. - */ - public com.google.container.v1.PodCIDROverprovisionConfig getPodCidrOverprovisionConfig() { - if (podCidrOverprovisionConfigBuilder_ == null) { - return podCidrOverprovisionConfig_ == null - ? com.google.container.v1.PodCIDROverprovisionConfig.getDefaultInstance() - : podCidrOverprovisionConfig_; - } else { - return podCidrOverprovisionConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * [PRIVATE FIELD]
-     * Pod CIDR size overprovisioning config for the nodepool.
-     *
-     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-     * of max_pods_per_node is rounded off to next power of 2 and we then double
-     * that to get the size of pod CIDR block per node.
-     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-     *
-     * This config can disable the doubling of IPs (we still round off to next
-     * power of 2)
-     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-     * overprovisioning is disabled.
-     * 
- * - * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; - * - */ - public Builder setPodCidrOverprovisionConfig( - com.google.container.v1.PodCIDROverprovisionConfig value) { - if (podCidrOverprovisionConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - podCidrOverprovisionConfig_ = value; - } else { - podCidrOverprovisionConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * [PRIVATE FIELD]
-     * Pod CIDR size overprovisioning config for the nodepool.
-     *
-     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-     * of max_pods_per_node is rounded off to next power of 2 and we then double
-     * that to get the size of pod CIDR block per node.
-     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-     *
-     * This config can disable the doubling of IPs (we still round off to next
-     * power of 2)
-     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-     * overprovisioning is disabled.
-     * 
- * - * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; - * - */ - public Builder setPodCidrOverprovisionConfig( - com.google.container.v1.PodCIDROverprovisionConfig.Builder builderForValue) { - if (podCidrOverprovisionConfigBuilder_ == null) { - podCidrOverprovisionConfig_ = builderForValue.build(); - } else { - podCidrOverprovisionConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * [PRIVATE FIELD]
-     * Pod CIDR size overprovisioning config for the nodepool.
-     *
-     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-     * of max_pods_per_node is rounded off to next power of 2 and we then double
-     * that to get the size of pod CIDR block per node.
-     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-     *
-     * This config can disable the doubling of IPs (we still round off to next
-     * power of 2)
-     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-     * overprovisioning is disabled.
-     * 
- * - * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; - * - */ - public Builder mergePodCidrOverprovisionConfig( - com.google.container.v1.PodCIDROverprovisionConfig value) { - if (podCidrOverprovisionConfigBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && podCidrOverprovisionConfig_ != null - && podCidrOverprovisionConfig_ - != com.google.container.v1.PodCIDROverprovisionConfig.getDefaultInstance()) { - getPodCidrOverprovisionConfigBuilder().mergeFrom(value); - } else { - podCidrOverprovisionConfig_ = value; - } - } else { - podCidrOverprovisionConfigBuilder_.mergeFrom(value); - } - if (podCidrOverprovisionConfig_ != null) { - bitField0_ |= 0x00000020; - onChanged(); - } - return this; - } - /** - * - * - *
-     * [PRIVATE FIELD]
-     * Pod CIDR size overprovisioning config for the nodepool.
-     *
-     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-     * of max_pods_per_node is rounded off to next power of 2 and we then double
-     * that to get the size of pod CIDR block per node.
-     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-     *
-     * This config can disable the doubling of IPs (we still round off to next
-     * power of 2)
-     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-     * overprovisioning is disabled.
-     * 
- * - * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; - * - */ - public Builder clearPodCidrOverprovisionConfig() { - bitField0_ = (bitField0_ & ~0x00000020); - podCidrOverprovisionConfig_ = null; - if (podCidrOverprovisionConfigBuilder_ != null) { - podCidrOverprovisionConfigBuilder_.dispose(); - podCidrOverprovisionConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * [PRIVATE FIELD]
-     * Pod CIDR size overprovisioning config for the nodepool.
-     *
-     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-     * of max_pods_per_node is rounded off to next power of 2 and we then double
-     * that to get the size of pod CIDR block per node.
-     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-     *
-     * This config can disable the doubling of IPs (we still round off to next
-     * power of 2)
-     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-     * overprovisioning is disabled.
-     * 
- * - * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; - * - */ - public com.google.container.v1.PodCIDROverprovisionConfig.Builder - getPodCidrOverprovisionConfigBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getPodCidrOverprovisionConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * [PRIVATE FIELD]
-     * Pod CIDR size overprovisioning config for the nodepool.
-     *
-     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-     * of max_pods_per_node is rounded off to next power of 2 and we then double
-     * that to get the size of pod CIDR block per node.
-     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-     *
-     * This config can disable the doubling of IPs (we still round off to next
-     * power of 2)
-     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-     * overprovisioning is disabled.
-     * 
- * - * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; - * - */ - public com.google.container.v1.PodCIDROverprovisionConfigOrBuilder - getPodCidrOverprovisionConfigOrBuilder() { - if (podCidrOverprovisionConfigBuilder_ != null) { - return podCidrOverprovisionConfigBuilder_.getMessageOrBuilder(); - } else { - return podCidrOverprovisionConfig_ == null - ? com.google.container.v1.PodCIDROverprovisionConfig.getDefaultInstance() - : podCidrOverprovisionConfig_; - } - } - /** - * - * - *
-     * [PRIVATE FIELD]
-     * Pod CIDR size overprovisioning config for the nodepool.
-     *
-     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-     * of max_pods_per_node is rounded off to next power of 2 and we then double
-     * that to get the size of pod CIDR block per node.
-     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-     *
-     * This config can disable the doubling of IPs (we still round off to next
-     * power of 2)
-     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-     * overprovisioning is disabled.
-     * 
- * - * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.PodCIDROverprovisionConfig, - com.google.container.v1.PodCIDROverprovisionConfig.Builder, - com.google.container.v1.PodCIDROverprovisionConfigOrBuilder> - getPodCidrOverprovisionConfigFieldBuilder() { - if (podCidrOverprovisionConfigBuilder_ == null) { - podCidrOverprovisionConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.PodCIDROverprovisionConfig, - com.google.container.v1.PodCIDROverprovisionConfig.Builder, - com.google.container.v1.PodCIDROverprovisionConfigOrBuilder>( - getPodCidrOverprovisionConfig(), getParentForChildren(), isClean()); - podCidrOverprovisionConfig_ = null; - } - return podCidrOverprovisionConfigBuilder_; - } - - private java.util.List - additionalNodeNetworkConfigs_ = java.util.Collections.emptyList(); - - private void ensureAdditionalNodeNetworkConfigsIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { - additionalNodeNetworkConfigs_ = - new java.util.ArrayList( - additionalNodeNetworkConfigs_); - bitField0_ |= 0x00000040; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.AdditionalNodeNetworkConfig, - com.google.container.v1.AdditionalNodeNetworkConfig.Builder, - com.google.container.v1.AdditionalNodeNetworkConfigOrBuilder> - additionalNodeNetworkConfigsBuilder_; - - /** - * - * - *
-     * We specify the additional node networks for this node pool using this list.
-     * Each node network corresponds to an additional interface
-     * 
- * - * - * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - public java.util.List - getAdditionalNodeNetworkConfigsList() { - if (additionalNodeNetworkConfigsBuilder_ == null) { - return java.util.Collections.unmodifiableList(additionalNodeNetworkConfigs_); - } else { - return additionalNodeNetworkConfigsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * We specify the additional node networks for this node pool using this list.
-     * Each node network corresponds to an additional interface
-     * 
- * - * - * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - public int getAdditionalNodeNetworkConfigsCount() { - if (additionalNodeNetworkConfigsBuilder_ == null) { - return additionalNodeNetworkConfigs_.size(); - } else { - return additionalNodeNetworkConfigsBuilder_.getCount(); - } - } - /** - * - * - *
-     * We specify the additional node networks for this node pool using this list.
-     * Each node network corresponds to an additional interface
-     * 
- * - * - * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - public com.google.container.v1.AdditionalNodeNetworkConfig getAdditionalNodeNetworkConfigs( - int index) { - if (additionalNodeNetworkConfigsBuilder_ == null) { - return additionalNodeNetworkConfigs_.get(index); - } else { - return additionalNodeNetworkConfigsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * We specify the additional node networks for this node pool using this list.
-     * Each node network corresponds to an additional interface
-     * 
- * - * - * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - public Builder setAdditionalNodeNetworkConfigs( - int index, com.google.container.v1.AdditionalNodeNetworkConfig value) { - if (additionalNodeNetworkConfigsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAdditionalNodeNetworkConfigsIsMutable(); - additionalNodeNetworkConfigs_.set(index, value); - onChanged(); - } else { - additionalNodeNetworkConfigsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * We specify the additional node networks for this node pool using this list.
-     * Each node network corresponds to an additional interface
-     * 
- * - * - * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - public Builder setAdditionalNodeNetworkConfigs( - int index, com.google.container.v1.AdditionalNodeNetworkConfig.Builder builderForValue) { - if (additionalNodeNetworkConfigsBuilder_ == null) { - ensureAdditionalNodeNetworkConfigsIsMutable(); - additionalNodeNetworkConfigs_.set(index, builderForValue.build()); - onChanged(); - } else { - additionalNodeNetworkConfigsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * We specify the additional node networks for this node pool using this list.
-     * Each node network corresponds to an additional interface
-     * 
- * - * - * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - public Builder addAdditionalNodeNetworkConfigs( - com.google.container.v1.AdditionalNodeNetworkConfig value) { - if (additionalNodeNetworkConfigsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAdditionalNodeNetworkConfigsIsMutable(); - additionalNodeNetworkConfigs_.add(value); - onChanged(); - } else { - additionalNodeNetworkConfigsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * We specify the additional node networks for this node pool using this list.
-     * Each node network corresponds to an additional interface
-     * 
- * - * - * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - public Builder addAdditionalNodeNetworkConfigs( - int index, com.google.container.v1.AdditionalNodeNetworkConfig value) { - if (additionalNodeNetworkConfigsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAdditionalNodeNetworkConfigsIsMutable(); - additionalNodeNetworkConfigs_.add(index, value); - onChanged(); - } else { - additionalNodeNetworkConfigsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * We specify the additional node networks for this node pool using this list.
-     * Each node network corresponds to an additional interface
-     * 
- * - * - * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - public Builder addAdditionalNodeNetworkConfigs( - com.google.container.v1.AdditionalNodeNetworkConfig.Builder builderForValue) { - if (additionalNodeNetworkConfigsBuilder_ == null) { - ensureAdditionalNodeNetworkConfigsIsMutable(); - additionalNodeNetworkConfigs_.add(builderForValue.build()); - onChanged(); - } else { - additionalNodeNetworkConfigsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * We specify the additional node networks for this node pool using this list.
-     * Each node network corresponds to an additional interface
-     * 
- * - * - * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - public Builder addAdditionalNodeNetworkConfigs( - int index, com.google.container.v1.AdditionalNodeNetworkConfig.Builder builderForValue) { - if (additionalNodeNetworkConfigsBuilder_ == null) { - ensureAdditionalNodeNetworkConfigsIsMutable(); - additionalNodeNetworkConfigs_.add(index, builderForValue.build()); - onChanged(); - } else { - additionalNodeNetworkConfigsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * We specify the additional node networks for this node pool using this list.
-     * Each node network corresponds to an additional interface
-     * 
- * - * - * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - public Builder addAllAdditionalNodeNetworkConfigs( - java.lang.Iterable values) { - if (additionalNodeNetworkConfigsBuilder_ == null) { - ensureAdditionalNodeNetworkConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, additionalNodeNetworkConfigs_); - onChanged(); - } else { - additionalNodeNetworkConfigsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * We specify the additional node networks for this node pool using this list.
-     * Each node network corresponds to an additional interface
-     * 
- * - * - * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - public Builder clearAdditionalNodeNetworkConfigs() { - if (additionalNodeNetworkConfigsBuilder_ == null) { - additionalNodeNetworkConfigs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - } else { - additionalNodeNetworkConfigsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * We specify the additional node networks for this node pool using this list.
-     * Each node network corresponds to an additional interface
-     * 
- * - * - * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - public Builder removeAdditionalNodeNetworkConfigs(int index) { - if (additionalNodeNetworkConfigsBuilder_ == null) { - ensureAdditionalNodeNetworkConfigsIsMutable(); - additionalNodeNetworkConfigs_.remove(index); - onChanged(); - } else { - additionalNodeNetworkConfigsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * We specify the additional node networks for this node pool using this list.
-     * Each node network corresponds to an additional interface
-     * 
- * - * - * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - public com.google.container.v1.AdditionalNodeNetworkConfig.Builder - getAdditionalNodeNetworkConfigsBuilder(int index) { - return getAdditionalNodeNetworkConfigsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * We specify the additional node networks for this node pool using this list.
-     * Each node network corresponds to an additional interface
-     * 
- * - * - * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - public com.google.container.v1.AdditionalNodeNetworkConfigOrBuilder - getAdditionalNodeNetworkConfigsOrBuilder(int index) { - if (additionalNodeNetworkConfigsBuilder_ == null) { - return additionalNodeNetworkConfigs_.get(index); - } else { - return additionalNodeNetworkConfigsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * We specify the additional node networks for this node pool using this list.
-     * Each node network corresponds to an additional interface
-     * 
- * - * - * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - public java.util.List - getAdditionalNodeNetworkConfigsOrBuilderList() { - if (additionalNodeNetworkConfigsBuilder_ != null) { - return additionalNodeNetworkConfigsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(additionalNodeNetworkConfigs_); - } - } - /** - * - * - *
-     * We specify the additional node networks for this node pool using this list.
-     * Each node network corresponds to an additional interface
-     * 
- * - * - * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - public com.google.container.v1.AdditionalNodeNetworkConfig.Builder - addAdditionalNodeNetworkConfigsBuilder() { - return getAdditionalNodeNetworkConfigsFieldBuilder() - .addBuilder(com.google.container.v1.AdditionalNodeNetworkConfig.getDefaultInstance()); - } - /** - * - * - *
-     * We specify the additional node networks for this node pool using this list.
-     * Each node network corresponds to an additional interface
-     * 
- * - * - * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - public com.google.container.v1.AdditionalNodeNetworkConfig.Builder - addAdditionalNodeNetworkConfigsBuilder(int index) { - return getAdditionalNodeNetworkConfigsFieldBuilder() - .addBuilder( - index, com.google.container.v1.AdditionalNodeNetworkConfig.getDefaultInstance()); - } - /** - * - * - *
-     * We specify the additional node networks for this node pool using this list.
-     * Each node network corresponds to an additional interface
-     * 
- * - * - * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - public java.util.List - getAdditionalNodeNetworkConfigsBuilderList() { - return getAdditionalNodeNetworkConfigsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.AdditionalNodeNetworkConfig, - com.google.container.v1.AdditionalNodeNetworkConfig.Builder, - com.google.container.v1.AdditionalNodeNetworkConfigOrBuilder> - getAdditionalNodeNetworkConfigsFieldBuilder() { - if (additionalNodeNetworkConfigsBuilder_ == null) { - additionalNodeNetworkConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.AdditionalNodeNetworkConfig, - com.google.container.v1.AdditionalNodeNetworkConfig.Builder, - com.google.container.v1.AdditionalNodeNetworkConfigOrBuilder>( - additionalNodeNetworkConfigs_, - ((bitField0_ & 0x00000040) != 0), - getParentForChildren(), - isClean()); - additionalNodeNetworkConfigs_ = null; - } - return additionalNodeNetworkConfigsBuilder_; - } - - private java.util.List - additionalPodNetworkConfigs_ = java.util.Collections.emptyList(); - - private void ensureAdditionalPodNetworkConfigsIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { - additionalPodNetworkConfigs_ = - new java.util.ArrayList( - additionalPodNetworkConfigs_); - bitField0_ |= 0x00000080; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.AdditionalPodNetworkConfig, - com.google.container.v1.AdditionalPodNetworkConfig.Builder, - com.google.container.v1.AdditionalPodNetworkConfigOrBuilder> - additionalPodNetworkConfigsBuilder_; - - /** - * - * - *
-     * We specify the additional pod networks for this node pool using this list.
-     * Each pod network corresponds to an additional alias IP range for the node
-     * 
- * - * - * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - public java.util.List - getAdditionalPodNetworkConfigsList() { - if (additionalPodNetworkConfigsBuilder_ == null) { - return java.util.Collections.unmodifiableList(additionalPodNetworkConfigs_); - } else { - return additionalPodNetworkConfigsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * We specify the additional pod networks for this node pool using this list.
-     * Each pod network corresponds to an additional alias IP range for the node
-     * 
- * - * - * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - public int getAdditionalPodNetworkConfigsCount() { - if (additionalPodNetworkConfigsBuilder_ == null) { - return additionalPodNetworkConfigs_.size(); - } else { - return additionalPodNetworkConfigsBuilder_.getCount(); - } - } - /** - * - * - *
-     * We specify the additional pod networks for this node pool using this list.
-     * Each pod network corresponds to an additional alias IP range for the node
-     * 
- * - * - * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - public com.google.container.v1.AdditionalPodNetworkConfig getAdditionalPodNetworkConfigs( - int index) { - if (additionalPodNetworkConfigsBuilder_ == null) { - return additionalPodNetworkConfigs_.get(index); - } else { - return additionalPodNetworkConfigsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * We specify the additional pod networks for this node pool using this list.
-     * Each pod network corresponds to an additional alias IP range for the node
-     * 
- * - * - * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - public Builder setAdditionalPodNetworkConfigs( - int index, com.google.container.v1.AdditionalPodNetworkConfig value) { - if (additionalPodNetworkConfigsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAdditionalPodNetworkConfigsIsMutable(); - additionalPodNetworkConfigs_.set(index, value); - onChanged(); - } else { - additionalPodNetworkConfigsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * We specify the additional pod networks for this node pool using this list.
-     * Each pod network corresponds to an additional alias IP range for the node
-     * 
- * - * - * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - public Builder setAdditionalPodNetworkConfigs( - int index, com.google.container.v1.AdditionalPodNetworkConfig.Builder builderForValue) { - if (additionalPodNetworkConfigsBuilder_ == null) { - ensureAdditionalPodNetworkConfigsIsMutable(); - additionalPodNetworkConfigs_.set(index, builderForValue.build()); - onChanged(); - } else { - additionalPodNetworkConfigsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * We specify the additional pod networks for this node pool using this list.
-     * Each pod network corresponds to an additional alias IP range for the node
-     * 
- * - * - * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - public Builder addAdditionalPodNetworkConfigs( - com.google.container.v1.AdditionalPodNetworkConfig value) { - if (additionalPodNetworkConfigsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAdditionalPodNetworkConfigsIsMutable(); - additionalPodNetworkConfigs_.add(value); - onChanged(); - } else { - additionalPodNetworkConfigsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * We specify the additional pod networks for this node pool using this list.
-     * Each pod network corresponds to an additional alias IP range for the node
-     * 
- * - * - * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - public Builder addAdditionalPodNetworkConfigs( - int index, com.google.container.v1.AdditionalPodNetworkConfig value) { - if (additionalPodNetworkConfigsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAdditionalPodNetworkConfigsIsMutable(); - additionalPodNetworkConfigs_.add(index, value); - onChanged(); - } else { - additionalPodNetworkConfigsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * We specify the additional pod networks for this node pool using this list.
-     * Each pod network corresponds to an additional alias IP range for the node
-     * 
- * - * - * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - public Builder addAdditionalPodNetworkConfigs( - com.google.container.v1.AdditionalPodNetworkConfig.Builder builderForValue) { - if (additionalPodNetworkConfigsBuilder_ == null) { - ensureAdditionalPodNetworkConfigsIsMutable(); - additionalPodNetworkConfigs_.add(builderForValue.build()); - onChanged(); - } else { - additionalPodNetworkConfigsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * We specify the additional pod networks for this node pool using this list.
-     * Each pod network corresponds to an additional alias IP range for the node
-     * 
- * - * - * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - public Builder addAdditionalPodNetworkConfigs( - int index, com.google.container.v1.AdditionalPodNetworkConfig.Builder builderForValue) { - if (additionalPodNetworkConfigsBuilder_ == null) { - ensureAdditionalPodNetworkConfigsIsMutable(); - additionalPodNetworkConfigs_.add(index, builderForValue.build()); - onChanged(); - } else { - additionalPodNetworkConfigsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * We specify the additional pod networks for this node pool using this list.
-     * Each pod network corresponds to an additional alias IP range for the node
-     * 
- * - * - * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - public Builder addAllAdditionalPodNetworkConfigs( - java.lang.Iterable values) { - if (additionalPodNetworkConfigsBuilder_ == null) { - ensureAdditionalPodNetworkConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, additionalPodNetworkConfigs_); - onChanged(); - } else { - additionalPodNetworkConfigsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * We specify the additional pod networks for this node pool using this list.
-     * Each pod network corresponds to an additional alias IP range for the node
-     * 
- * - * - * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - public Builder clearAdditionalPodNetworkConfigs() { - if (additionalPodNetworkConfigsBuilder_ == null) { - additionalPodNetworkConfigs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - } else { - additionalPodNetworkConfigsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * We specify the additional pod networks for this node pool using this list.
-     * Each pod network corresponds to an additional alias IP range for the node
-     * 
- * - * - * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - public Builder removeAdditionalPodNetworkConfigs(int index) { - if (additionalPodNetworkConfigsBuilder_ == null) { - ensureAdditionalPodNetworkConfigsIsMutable(); - additionalPodNetworkConfigs_.remove(index); - onChanged(); - } else { - additionalPodNetworkConfigsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * We specify the additional pod networks for this node pool using this list.
-     * Each pod network corresponds to an additional alias IP range for the node
-     * 
- * - * - * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - public com.google.container.v1.AdditionalPodNetworkConfig.Builder - getAdditionalPodNetworkConfigsBuilder(int index) { - return getAdditionalPodNetworkConfigsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * We specify the additional pod networks for this node pool using this list.
-     * Each pod network corresponds to an additional alias IP range for the node
-     * 
- * - * - * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - public com.google.container.v1.AdditionalPodNetworkConfigOrBuilder - getAdditionalPodNetworkConfigsOrBuilder(int index) { - if (additionalPodNetworkConfigsBuilder_ == null) { - return additionalPodNetworkConfigs_.get(index); - } else { - return additionalPodNetworkConfigsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * We specify the additional pod networks for this node pool using this list.
-     * Each pod network corresponds to an additional alias IP range for the node
-     * 
- * - * - * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - public java.util.List - getAdditionalPodNetworkConfigsOrBuilderList() { - if (additionalPodNetworkConfigsBuilder_ != null) { - return additionalPodNetworkConfigsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(additionalPodNetworkConfigs_); - } - } - /** - * - * - *
-     * We specify the additional pod networks for this node pool using this list.
-     * Each pod network corresponds to an additional alias IP range for the node
-     * 
- * - * - * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - public com.google.container.v1.AdditionalPodNetworkConfig.Builder - addAdditionalPodNetworkConfigsBuilder() { - return getAdditionalPodNetworkConfigsFieldBuilder() - .addBuilder(com.google.container.v1.AdditionalPodNetworkConfig.getDefaultInstance()); - } - /** - * - * - *
-     * We specify the additional pod networks for this node pool using this list.
-     * Each pod network corresponds to an additional alias IP range for the node
-     * 
- * - * - * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - public com.google.container.v1.AdditionalPodNetworkConfig.Builder - addAdditionalPodNetworkConfigsBuilder(int index) { - return getAdditionalPodNetworkConfigsFieldBuilder() - .addBuilder( - index, com.google.container.v1.AdditionalPodNetworkConfig.getDefaultInstance()); - } - /** - * - * - *
-     * We specify the additional pod networks for this node pool using this list.
-     * Each pod network corresponds to an additional alias IP range for the node
-     * 
- * - * - * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - public java.util.List - getAdditionalPodNetworkConfigsBuilderList() { - return getAdditionalPodNetworkConfigsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.AdditionalPodNetworkConfig, - com.google.container.v1.AdditionalPodNetworkConfig.Builder, - com.google.container.v1.AdditionalPodNetworkConfigOrBuilder> - getAdditionalPodNetworkConfigsFieldBuilder() { - if (additionalPodNetworkConfigsBuilder_ == null) { - additionalPodNetworkConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.AdditionalPodNetworkConfig, - com.google.container.v1.AdditionalPodNetworkConfig.Builder, - com.google.container.v1.AdditionalPodNetworkConfigOrBuilder>( - additionalPodNetworkConfigs_, - ((bitField0_ & 0x00000080) != 0), - getParentForChildren(), - isClean()); - additionalPodNetworkConfigs_ = null; - } - return additionalPodNetworkConfigsBuilder_; - } - - private double podIpv4RangeUtilization_; - /** - * - * - *
-     * Output only. [Output only] The utilization of the IPv4 range for the pod.
-     * The ratio is Usage/[Total number of IPs in the secondary range],
-     * Usage=numNodes*numZones*podIPsPerNode.
-     * 
- * - * double pod_ipv4_range_utilization = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The podIpv4RangeUtilization. - */ - @java.lang.Override - public double getPodIpv4RangeUtilization() { - return podIpv4RangeUtilization_; - } - /** - * - * - *
-     * Output only. [Output only] The utilization of the IPv4 range for the pod.
-     * The ratio is Usage/[Total number of IPs in the secondary range],
-     * Usage=numNodes*numZones*podIPsPerNode.
-     * 
- * - * double pod_ipv4_range_utilization = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The podIpv4RangeUtilization to set. - * @return This builder for chaining. - */ - public Builder setPodIpv4RangeUtilization(double value) { - - podIpv4RangeUtilization_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. [Output only] The utilization of the IPv4 range for the pod.
-     * The ratio is Usage/[Total number of IPs in the secondary range],
-     * Usage=numNodes*numZones*podIPsPerNode.
-     * 
- * - * double pod_ipv4_range_utilization = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearPodIpv4RangeUtilization() { - bitField0_ = (bitField0_ & ~0x00000100); - podIpv4RangeUtilization_ = 0D; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.NodeNetworkConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.NodeNetworkConfig) - private static final com.google.container.v1.NodeNetworkConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.NodeNetworkConfig(); - } - - public static com.google.container.v1.NodeNetworkConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeNetworkConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.NodeNetworkConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfigOrBuilder.java deleted file mode 100644 index a0cfcb99fccc..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfigOrBuilder.java +++ /dev/null @@ -1,440 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface NodeNetworkConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.NodeNetworkConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Input only. Whether to create a new range for pod IPs in this node pool.
-   * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they
-   * are not specified.
-   *
-   * If neither `create_pod_range` or `pod_range` are specified, the
-   * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is
-   * used.
-   *
-   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-   *
-   * This field cannot be changed after the node pool has been created.
-   * 
- * - * bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * @return The createPodRange. - */ - boolean getCreatePodRange(); - - /** - * - * - *
-   * The ID of the secondary range for pod IPs.
-   * If `create_pod_range` is true, this ID is used for the new range.
-   * If `create_pod_range` is false, uses an existing secondary range with this
-   * ID.
-   *
-   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-   *
-   * This field cannot be changed after the node pool has been created.
-   * 
- * - * string pod_range = 5; - * - * @return The podRange. - */ - java.lang.String getPodRange(); - /** - * - * - *
-   * The ID of the secondary range for pod IPs.
-   * If `create_pod_range` is true, this ID is used for the new range.
-   * If `create_pod_range` is false, uses an existing secondary range with this
-   * ID.
-   *
-   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-   *
-   * This field cannot be changed after the node pool has been created.
-   * 
- * - * string pod_range = 5; - * - * @return The bytes for podRange. - */ - com.google.protobuf.ByteString getPodRangeBytes(); - - /** - * - * - *
-   * The IP address range for pod IPs in this node pool.
-   *
-   * Only applicable if `create_pod_range` is true.
-   *
-   * Set to blank to have a range chosen with the default size.
-   *
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   *
-   * Set to a
-   * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
-   *
-   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-   *
-   * This field cannot be changed after the node pool has been created.
-   * 
- * - * string pod_ipv4_cidr_block = 6; - * - * @return The podIpv4CidrBlock. - */ - java.lang.String getPodIpv4CidrBlock(); - /** - * - * - *
-   * The IP address range for pod IPs in this node pool.
-   *
-   * Only applicable if `create_pod_range` is true.
-   *
-   * Set to blank to have a range chosen with the default size.
-   *
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   *
-   * Set to a
-   * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
-   *
-   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-   *
-   * This field cannot be changed after the node pool has been created.
-   * 
- * - * string pod_ipv4_cidr_block = 6; - * - * @return The bytes for podIpv4CidrBlock. - */ - com.google.protobuf.ByteString getPodIpv4CidrBlockBytes(); - - /** - * - * - *
-   * Whether nodes have internal IP addresses only.
-   * If enable_private_nodes is not specified, then the value is derived from
-   * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
-   * 
- * - * optional bool enable_private_nodes = 9; - * - * @return Whether the enablePrivateNodes field is set. - */ - boolean hasEnablePrivateNodes(); - /** - * - * - *
-   * Whether nodes have internal IP addresses only.
-   * If enable_private_nodes is not specified, then the value is derived from
-   * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
-   * 
- * - * optional bool enable_private_nodes = 9; - * - * @return The enablePrivateNodes. - */ - boolean getEnablePrivateNodes(); - - /** - * - * - *
-   * Network bandwidth tier configuration.
-   * 
- * - * - * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - * - * - * @return Whether the networkPerformanceConfig field is set. - */ - boolean hasNetworkPerformanceConfig(); - /** - * - * - *
-   * Network bandwidth tier configuration.
-   * 
- * - * - * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - * - * - * @return The networkPerformanceConfig. - */ - com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig getNetworkPerformanceConfig(); - /** - * - * - *
-   * Network bandwidth tier configuration.
-   * 
- * - * - * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - * - */ - com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfigOrBuilder - getNetworkPerformanceConfigOrBuilder(); - - /** - * - * - *
-   * [PRIVATE FIELD]
-   * Pod CIDR size overprovisioning config for the nodepool.
-   *
-   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-   * of max_pods_per_node is rounded off to next power of 2 and we then double
-   * that to get the size of pod CIDR block per node.
-   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-   *
-   * This config can disable the doubling of IPs (we still round off to next
-   * power of 2)
-   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-   * overprovisioning is disabled.
-   * 
- * - * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; - * - * - * @return Whether the podCidrOverprovisionConfig field is set. - */ - boolean hasPodCidrOverprovisionConfig(); - /** - * - * - *
-   * [PRIVATE FIELD]
-   * Pod CIDR size overprovisioning config for the nodepool.
-   *
-   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-   * of max_pods_per_node is rounded off to next power of 2 and we then double
-   * that to get the size of pod CIDR block per node.
-   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-   *
-   * This config can disable the doubling of IPs (we still round off to next
-   * power of 2)
-   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-   * overprovisioning is disabled.
-   * 
- * - * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; - * - * - * @return The podCidrOverprovisionConfig. - */ - com.google.container.v1.PodCIDROverprovisionConfig getPodCidrOverprovisionConfig(); - /** - * - * - *
-   * [PRIVATE FIELD]
-   * Pod CIDR size overprovisioning config for the nodepool.
-   *
-   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-   * of max_pods_per_node is rounded off to next power of 2 and we then double
-   * that to get the size of pod CIDR block per node.
-   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-   *
-   * This config can disable the doubling of IPs (we still round off to next
-   * power of 2)
-   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-   * overprovisioning is disabled.
-   * 
- * - * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; - * - */ - com.google.container.v1.PodCIDROverprovisionConfigOrBuilder - getPodCidrOverprovisionConfigOrBuilder(); - - /** - * - * - *
-   * We specify the additional node networks for this node pool using this list.
-   * Each node network corresponds to an additional interface
-   * 
- * - * - * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - java.util.List - getAdditionalNodeNetworkConfigsList(); - /** - * - * - *
-   * We specify the additional node networks for this node pool using this list.
-   * Each node network corresponds to an additional interface
-   * 
- * - * - * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - com.google.container.v1.AdditionalNodeNetworkConfig getAdditionalNodeNetworkConfigs(int index); - /** - * - * - *
-   * We specify the additional node networks for this node pool using this list.
-   * Each node network corresponds to an additional interface
-   * 
- * - * - * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - int getAdditionalNodeNetworkConfigsCount(); - /** - * - * - *
-   * We specify the additional node networks for this node pool using this list.
-   * Each node network corresponds to an additional interface
-   * 
- * - * - * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - java.util.List - getAdditionalNodeNetworkConfigsOrBuilderList(); - /** - * - * - *
-   * We specify the additional node networks for this node pool using this list.
-   * Each node network corresponds to an additional interface
-   * 
- * - * - * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - com.google.container.v1.AdditionalNodeNetworkConfigOrBuilder - getAdditionalNodeNetworkConfigsOrBuilder(int index); - - /** - * - * - *
-   * We specify the additional pod networks for this node pool using this list.
-   * Each pod network corresponds to an additional alias IP range for the node
-   * 
- * - * - * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - java.util.List - getAdditionalPodNetworkConfigsList(); - /** - * - * - *
-   * We specify the additional pod networks for this node pool using this list.
-   * Each pod network corresponds to an additional alias IP range for the node
-   * 
- * - * - * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - com.google.container.v1.AdditionalPodNetworkConfig getAdditionalPodNetworkConfigs(int index); - /** - * - * - *
-   * We specify the additional pod networks for this node pool using this list.
-   * Each pod network corresponds to an additional alias IP range for the node
-   * 
- * - * - * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - int getAdditionalPodNetworkConfigsCount(); - /** - * - * - *
-   * We specify the additional pod networks for this node pool using this list.
-   * Each pod network corresponds to an additional alias IP range for the node
-   * 
- * - * - * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - java.util.List - getAdditionalPodNetworkConfigsOrBuilderList(); - /** - * - * - *
-   * We specify the additional pod networks for this node pool using this list.
-   * Each pod network corresponds to an additional alias IP range for the node
-   * 
- * - * - * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - com.google.container.v1.AdditionalPodNetworkConfigOrBuilder - getAdditionalPodNetworkConfigsOrBuilder(int index); - - /** - * - * - *
-   * Output only. [Output only] The utilization of the IPv4 range for the pod.
-   * The ratio is Usage/[Total number of IPs in the secondary range],
-   * Usage=numNodes*numZones*podIPsPerNode.
-   * 
- * - * double pod_ipv4_range_utilization = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The podIpv4RangeUtilization. - */ - double getPodIpv4RangeUtilization(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePool.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePool.java deleted file mode 100644 index a90b1a0d2747..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePool.java +++ /dev/null @@ -1,11881 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * 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.v1.NodePool} - */ -public final class NodePool extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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.emptyList(); - selfLink_ = ""; - version_ = ""; - instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - status_ = 0; - statusMessage_ = ""; - conditions_ = java.util.Collections.emptyList(); - etag_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NodePool(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePool_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePool_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodePool.class, com.google.container.v1.NodePool.Builder.class); - } - - /** - * - * - *
-   * The current status of the node pool instance.
-   * 
- * - * Protobuf enum {@code google.container.v1.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.v1.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.v1.NodePool.Status) - } - - public interface UpgradeSettingsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.NodePool.UpgradeSettings) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * The maximum number of nodes that can be created beyond the current size
-     * of the node pool during the upgrade process.
-     * 
- * - * int32 max_surge = 1; - * - * @return The maxSurge. - */ - int getMaxSurge(); - - /** - * - * - *
-     * The maximum number of nodes that can be simultaneously unavailable during
-     * the upgrade process. A node is considered available if its status is
-     * Ready.
-     * 
- * - * int32 max_unavailable = 2; - * - * @return The maxUnavailable. - */ - int getMaxUnavailable(); - - /** - * - * - *
-     * Update strategy of the node pool.
-     * 
- * - * optional .google.container.v1.NodePoolUpdateStrategy strategy = 3; - * - * @return Whether the strategy field is set. - */ - boolean hasStrategy(); - /** - * - * - *
-     * Update strategy of the node pool.
-     * 
- * - * optional .google.container.v1.NodePoolUpdateStrategy strategy = 3; - * - * @return The enum numeric value on the wire for strategy. - */ - int getStrategyValue(); - /** - * - * - *
-     * Update strategy of the node pool.
-     * 
- * - * optional .google.container.v1.NodePoolUpdateStrategy strategy = 3; - * - * @return The strategy. - */ - com.google.container.v1.NodePoolUpdateStrategy getStrategy(); - - /** - * - * - *
-     * Settings for blue-green upgrade strategy.
-     * 
- * - * optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; - * - * @return Whether the blueGreenSettings field is set. - */ - boolean hasBlueGreenSettings(); - /** - * - * - *
-     * Settings for blue-green upgrade strategy.
-     * 
- * - * optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; - * - * @return The blueGreenSettings. - */ - com.google.container.v1.BlueGreenSettings getBlueGreenSettings(); - /** - * - * - *
-     * Settings for blue-green upgrade strategy.
-     * 
- * - * optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; - */ - com.google.container.v1.BlueGreenSettingsOrBuilder getBlueGreenSettingsOrBuilder(); - } - /** - * - * - *
-   * 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.
-   *
-   * These upgrade settings configure the upgrade strategy for the node pool.
-   * Use strategy to switch between the strategies applied to the node pool.
-   *
-   * If the strategy is ROLLING, use max_surge and max_unavailable to control
-   * the level of parallelism and the level of disruption caused by upgrade.
-   * 1. 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.
-   * 2. maxUnavailable controls the number of nodes that can be simultaneously
-   * unavailable.
-   * 3. (maxUnavailable + maxSurge) determines the level of parallelism (how
-   * many nodes are being upgraded at the same time).
-   *
-   * If the strategy is BLUE_GREEN, use blue_green_settings to configure the
-   * blue-green upgrade related settings.
-   * 1. standard_rollout_policy is the default policy. The policy is used to
-   * control the way blue pool gets drained. The draining is executed in the
-   * batch mode. The batch size could be specified as either percentage of the
-   * node pool size or the number of nodes. batch_soak_duration is the soak
-   * time after each batch gets drained.
-   * 2. node_pool_soak_duration is the soak time after all blue nodes are
-   * drained. After this period, the blue pool nodes will be deleted.
-   * 
- * - * Protobuf type {@code google.container.v1.NodePool.UpgradeSettings} - */ - public static final class UpgradeSettings extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.NodePool.UpgradeSettings) - UpgradeSettingsOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpgradeSettings.newBuilder() to construct. - private UpgradeSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpgradeSettings() { - strategy_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpgradeSettings(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePool_UpgradeSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePool_UpgradeSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodePool.UpgradeSettings.class, - com.google.container.v1.NodePool.UpgradeSettings.Builder.class); - } - - private int bitField0_; - public static final int MAX_SURGE_FIELD_NUMBER = 1; - private int maxSurge_ = 0; - /** - * - * - *
-     * 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_ = 0; - /** - * - * - *
-     * 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_; - } - - public static final int STRATEGY_FIELD_NUMBER = 3; - private int strategy_ = 0; - /** - * - * - *
-     * Update strategy of the node pool.
-     * 
- * - * optional .google.container.v1.NodePoolUpdateStrategy strategy = 3; - * - * @return Whether the strategy field is set. - */ - @java.lang.Override - public boolean hasStrategy() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Update strategy of the node pool.
-     * 
- * - * optional .google.container.v1.NodePoolUpdateStrategy strategy = 3; - * - * @return The enum numeric value on the wire for strategy. - */ - @java.lang.Override - public int getStrategyValue() { - return strategy_; - } - /** - * - * - *
-     * Update strategy of the node pool.
-     * 
- * - * optional .google.container.v1.NodePoolUpdateStrategy strategy = 3; - * - * @return The strategy. - */ - @java.lang.Override - public com.google.container.v1.NodePoolUpdateStrategy getStrategy() { - com.google.container.v1.NodePoolUpdateStrategy result = - com.google.container.v1.NodePoolUpdateStrategy.forNumber(strategy_); - return result == null ? com.google.container.v1.NodePoolUpdateStrategy.UNRECOGNIZED : result; - } - - public static final int BLUE_GREEN_SETTINGS_FIELD_NUMBER = 4; - private com.google.container.v1.BlueGreenSettings blueGreenSettings_; - /** - * - * - *
-     * Settings for blue-green upgrade strategy.
-     * 
- * - * optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; - * - * @return Whether the blueGreenSettings field is set. - */ - @java.lang.Override - public boolean hasBlueGreenSettings() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * Settings for blue-green upgrade strategy.
-     * 
- * - * optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; - * - * @return The blueGreenSettings. - */ - @java.lang.Override - public com.google.container.v1.BlueGreenSettings getBlueGreenSettings() { - return blueGreenSettings_ == null - ? com.google.container.v1.BlueGreenSettings.getDefaultInstance() - : blueGreenSettings_; - } - /** - * - * - *
-     * Settings for blue-green upgrade strategy.
-     * 
- * - * optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; - */ - @java.lang.Override - public com.google.container.v1.BlueGreenSettingsOrBuilder getBlueGreenSettingsOrBuilder() { - return blueGreenSettings_ == null - ? com.google.container.v1.BlueGreenSettings.getDefaultInstance() - : blueGreenSettings_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeEnum(3, strategy_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(4, getBlueGreenSettings()); - } - getUnknownFields().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_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, strategy_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getBlueGreenSettings()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.NodePool.UpgradeSettings)) { - return super.equals(obj); - } - com.google.container.v1.NodePool.UpgradeSettings other = - (com.google.container.v1.NodePool.UpgradeSettings) obj; - - if (getMaxSurge() != other.getMaxSurge()) return false; - if (getMaxUnavailable() != other.getMaxUnavailable()) return false; - if (hasStrategy() != other.hasStrategy()) return false; - if (hasStrategy()) { - if (strategy_ != other.strategy_) return false; - } - if (hasBlueGreenSettings() != other.hasBlueGreenSettings()) return false; - if (hasBlueGreenSettings()) { - if (!getBlueGreenSettings().equals(other.getBlueGreenSettings())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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(); - if (hasStrategy()) { - hash = (37 * hash) + STRATEGY_FIELD_NUMBER; - hash = (53 * hash) + strategy_; - } - if (hasBlueGreenSettings()) { - hash = (37 * hash) + BLUE_GREEN_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getBlueGreenSettings().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodePool.UpgradeSettings parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NodePool.UpgradeSettings parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodePool.UpgradeSettings parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.NodePool.UpgradeSettings prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * These upgrade settings control the level of parallelism and the level of
-     * disruption caused by an upgrade.
-     *
-     * maxUnavailable controls the number of nodes that can be simultaneously
-     * unavailable.
-     *
-     * maxSurge controls the number of additional nodes that can be added to the
-     * node pool temporarily for the time of the upgrade to increase the number of
-     * available nodes.
-     *
-     * (maxUnavailable + maxSurge) determines the level of parallelism (how many
-     * nodes are being upgraded at the same time).
-     *
-     * Note: upgrades inevitably introduce some disruption since workloads need to
-     * be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
-     * this holds true. (Disruption stays within the limits of
-     * PodDisruptionBudget, if it is configured.)
-     *
-     * Consider a hypothetical node pool with 5 nodes having maxSurge=2,
-     * maxUnavailable=1. This means the upgrade process upgrades 3 nodes
-     * simultaneously. It creates 2 additional (upgraded) nodes, then it brings
-     * down 3 old (not yet upgraded) nodes at the same time. This ensures that
-     * there are always at least 4 nodes available.
-     *
-     * These upgrade settings configure the upgrade strategy for the node pool.
-     * Use strategy to switch between the strategies applied to the node pool.
-     *
-     * If the strategy is ROLLING, use max_surge and max_unavailable to control
-     * the level of parallelism and the level of disruption caused by upgrade.
-     * 1. 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.
-     * 2. maxUnavailable controls the number of nodes that can be simultaneously
-     * unavailable.
-     * 3. (maxUnavailable + maxSurge) determines the level of parallelism (how
-     * many nodes are being upgraded at the same time).
-     *
-     * If the strategy is BLUE_GREEN, use blue_green_settings to configure the
-     * blue-green upgrade related settings.
-     * 1. standard_rollout_policy is the default policy. The policy is used to
-     * control the way blue pool gets drained. The draining is executed in the
-     * batch mode. The batch size could be specified as either percentage of the
-     * node pool size or the number of nodes. batch_soak_duration is the soak
-     * time after each batch gets drained.
-     * 2. node_pool_soak_duration is the soak time after all blue nodes are
-     * drained. After this period, the blue pool nodes will be deleted.
-     * 
- * - * Protobuf type {@code google.container.v1.NodePool.UpgradeSettings} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.NodePool.UpgradeSettings) - com.google.container.v1.NodePool.UpgradeSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePool_UpgradeSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePool_UpgradeSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodePool.UpgradeSettings.class, - com.google.container.v1.NodePool.UpgradeSettings.Builder.class); - } - - // Construct using com.google.container.v1.NodePool.UpgradeSettings.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getBlueGreenSettingsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - maxSurge_ = 0; - maxUnavailable_ = 0; - strategy_ = 0; - blueGreenSettings_ = null; - if (blueGreenSettingsBuilder_ != null) { - blueGreenSettingsBuilder_.dispose(); - blueGreenSettingsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePool_UpgradeSettings_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NodePool.UpgradeSettings getDefaultInstanceForType() { - return com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NodePool.UpgradeSettings build() { - com.google.container.v1.NodePool.UpgradeSettings result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NodePool.UpgradeSettings buildPartial() { - com.google.container.v1.NodePool.UpgradeSettings result = - new com.google.container.v1.NodePool.UpgradeSettings(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.NodePool.UpgradeSettings result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.maxSurge_ = maxSurge_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.maxUnavailable_ = maxUnavailable_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.strategy_ = strategy_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.blueGreenSettings_ = - blueGreenSettingsBuilder_ == null - ? blueGreenSettings_ - : blueGreenSettingsBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NodePool.UpgradeSettings) { - return mergeFrom((com.google.container.v1.NodePool.UpgradeSettings) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NodePool.UpgradeSettings other) { - if (other == com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance()) - return this; - if (other.getMaxSurge() != 0) { - setMaxSurge(other.getMaxSurge()); - } - if (other.getMaxUnavailable() != 0) { - setMaxUnavailable(other.getMaxUnavailable()); - } - if (other.hasStrategy()) { - setStrategy(other.getStrategy()); - } - if (other.hasBlueGreenSettings()) { - mergeBlueGreenSettings(other.getBlueGreenSettings()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - maxSurge_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - maxUnavailable_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - strategy_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - input.readMessage( - getBlueGreenSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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() { - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000002; - 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() { - bitField0_ = (bitField0_ & ~0x00000002); - maxUnavailable_ = 0; - onChanged(); - return this; - } - - private int strategy_ = 0; - /** - * - * - *
-       * Update strategy of the node pool.
-       * 
- * - * optional .google.container.v1.NodePoolUpdateStrategy strategy = 3; - * - * @return Whether the strategy field is set. - */ - @java.lang.Override - public boolean hasStrategy() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-       * Update strategy of the node pool.
-       * 
- * - * optional .google.container.v1.NodePoolUpdateStrategy strategy = 3; - * - * @return The enum numeric value on the wire for strategy. - */ - @java.lang.Override - public int getStrategyValue() { - return strategy_; - } - /** - * - * - *
-       * Update strategy of the node pool.
-       * 
- * - * optional .google.container.v1.NodePoolUpdateStrategy strategy = 3; - * - * @param value The enum numeric value on the wire for strategy to set. - * @return This builder for chaining. - */ - public Builder setStrategyValue(int value) { - strategy_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-       * Update strategy of the node pool.
-       * 
- * - * optional .google.container.v1.NodePoolUpdateStrategy strategy = 3; - * - * @return The strategy. - */ - @java.lang.Override - public com.google.container.v1.NodePoolUpdateStrategy getStrategy() { - com.google.container.v1.NodePoolUpdateStrategy result = - com.google.container.v1.NodePoolUpdateStrategy.forNumber(strategy_); - return result == null - ? com.google.container.v1.NodePoolUpdateStrategy.UNRECOGNIZED - : result; - } - /** - * - * - *
-       * Update strategy of the node pool.
-       * 
- * - * optional .google.container.v1.NodePoolUpdateStrategy strategy = 3; - * - * @param value The strategy to set. - * @return This builder for chaining. - */ - public Builder setStrategy(com.google.container.v1.NodePoolUpdateStrategy value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - strategy_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * Update strategy of the node pool.
-       * 
- * - * optional .google.container.v1.NodePoolUpdateStrategy strategy = 3; - * - * @return This builder for chaining. - */ - public Builder clearStrategy() { - bitField0_ = (bitField0_ & ~0x00000004); - strategy_ = 0; - onChanged(); - return this; - } - - private com.google.container.v1.BlueGreenSettings blueGreenSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.BlueGreenSettings, - com.google.container.v1.BlueGreenSettings.Builder, - com.google.container.v1.BlueGreenSettingsOrBuilder> - blueGreenSettingsBuilder_; - /** - * - * - *
-       * Settings for blue-green upgrade strategy.
-       * 
- * - * optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; - * - * @return Whether the blueGreenSettings field is set. - */ - public boolean hasBlueGreenSettings() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-       * Settings for blue-green upgrade strategy.
-       * 
- * - * optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; - * - * @return The blueGreenSettings. - */ - public com.google.container.v1.BlueGreenSettings getBlueGreenSettings() { - if (blueGreenSettingsBuilder_ == null) { - return blueGreenSettings_ == null - ? com.google.container.v1.BlueGreenSettings.getDefaultInstance() - : blueGreenSettings_; - } else { - return blueGreenSettingsBuilder_.getMessage(); - } - } - /** - * - * - *
-       * Settings for blue-green upgrade strategy.
-       * 
- * - * optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; - */ - public Builder setBlueGreenSettings(com.google.container.v1.BlueGreenSettings value) { - if (blueGreenSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - blueGreenSettings_ = value; - } else { - blueGreenSettingsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-       * Settings for blue-green upgrade strategy.
-       * 
- * - * optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; - */ - public Builder setBlueGreenSettings( - com.google.container.v1.BlueGreenSettings.Builder builderForValue) { - if (blueGreenSettingsBuilder_ == null) { - blueGreenSettings_ = builderForValue.build(); - } else { - blueGreenSettingsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-       * Settings for blue-green upgrade strategy.
-       * 
- * - * optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; - */ - public Builder mergeBlueGreenSettings(com.google.container.v1.BlueGreenSettings value) { - if (blueGreenSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && blueGreenSettings_ != null - && blueGreenSettings_ - != com.google.container.v1.BlueGreenSettings.getDefaultInstance()) { - getBlueGreenSettingsBuilder().mergeFrom(value); - } else { - blueGreenSettings_ = value; - } - } else { - blueGreenSettingsBuilder_.mergeFrom(value); - } - if (blueGreenSettings_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - return this; - } - /** - * - * - *
-       * Settings for blue-green upgrade strategy.
-       * 
- * - * optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; - */ - public Builder clearBlueGreenSettings() { - bitField0_ = (bitField0_ & ~0x00000008); - blueGreenSettings_ = null; - if (blueGreenSettingsBuilder_ != null) { - blueGreenSettingsBuilder_.dispose(); - blueGreenSettingsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-       * Settings for blue-green upgrade strategy.
-       * 
- * - * optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; - */ - public com.google.container.v1.BlueGreenSettings.Builder getBlueGreenSettingsBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getBlueGreenSettingsFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * Settings for blue-green upgrade strategy.
-       * 
- * - * optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; - */ - public com.google.container.v1.BlueGreenSettingsOrBuilder getBlueGreenSettingsOrBuilder() { - if (blueGreenSettingsBuilder_ != null) { - return blueGreenSettingsBuilder_.getMessageOrBuilder(); - } else { - return blueGreenSettings_ == null - ? com.google.container.v1.BlueGreenSettings.getDefaultInstance() - : blueGreenSettings_; - } - } - /** - * - * - *
-       * Settings for blue-green upgrade strategy.
-       * 
- * - * optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.BlueGreenSettings, - com.google.container.v1.BlueGreenSettings.Builder, - com.google.container.v1.BlueGreenSettingsOrBuilder> - getBlueGreenSettingsFieldBuilder() { - if (blueGreenSettingsBuilder_ == null) { - blueGreenSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.BlueGreenSettings, - com.google.container.v1.BlueGreenSettings.Builder, - com.google.container.v1.BlueGreenSettingsOrBuilder>( - getBlueGreenSettings(), getParentForChildren(), isClean()); - blueGreenSettings_ = null; - } - return blueGreenSettingsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.NodePool.UpgradeSettings) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.NodePool.UpgradeSettings) - private static final com.google.container.v1.NodePool.UpgradeSettings DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.NodePool.UpgradeSettings(); - } - - public static com.google.container.v1.NodePool.UpgradeSettings getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpgradeSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.NodePool.UpgradeSettings getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface UpdateInfoOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.NodePool.UpdateInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Information of a blue-green upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - * - * @return Whether the blueGreenInfo field is set. - */ - boolean hasBlueGreenInfo(); - /** - * - * - *
-     * Information of a blue-green upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - * - * @return The blueGreenInfo. - */ - com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo getBlueGreenInfo(); - /** - * - * - *
-     * Information of a blue-green upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - */ - com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfoOrBuilder getBlueGreenInfoOrBuilder(); - } - /** - * - * - *
-   * UpdateInfo contains resource (instance groups, etc), status and other
-   * intermediate information relevant to a node pool upgrade.
-   * 
- * - * Protobuf type {@code google.container.v1.NodePool.UpdateInfo} - */ - public static final class UpdateInfo extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.NodePool.UpdateInfo) - UpdateInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpdateInfo.newBuilder() to construct. - private UpdateInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpdateInfo() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateInfo(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePool_UpdateInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePool_UpdateInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodePool.UpdateInfo.class, - com.google.container.v1.NodePool.UpdateInfo.Builder.class); - } - - public interface BlueGreenInfoOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.NodePool.UpdateInfo.BlueGreenInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-       * Current blue-green upgrade phase.
-       * 
- * - * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; - * - * @return The enum numeric value on the wire for phase. - */ - int getPhaseValue(); - /** - * - * - *
-       * Current blue-green upgrade phase.
-       * 
- * - * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; - * - * @return The phase. - */ - com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase getPhase(); - - /** - * - * - *
-       * The resource URLs of the [managed instance groups]
-       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-       * associated with blue pool.
-       * 
- * - * repeated string blue_instance_group_urls = 2; - * - * @return A list containing the blueInstanceGroupUrls. - */ - java.util.List getBlueInstanceGroupUrlsList(); - /** - * - * - *
-       * The resource URLs of the [managed instance groups]
-       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-       * associated with blue pool.
-       * 
- * - * repeated string blue_instance_group_urls = 2; - * - * @return The count of blueInstanceGroupUrls. - */ - int getBlueInstanceGroupUrlsCount(); - /** - * - * - *
-       * The resource URLs of the [managed instance groups]
-       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-       * associated with blue pool.
-       * 
- * - * repeated string blue_instance_group_urls = 2; - * - * @param index The index of the element to return. - * @return The blueInstanceGroupUrls at the given index. - */ - java.lang.String getBlueInstanceGroupUrls(int index); - /** - * - * - *
-       * The resource URLs of the [managed instance groups]
-       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-       * associated with blue pool.
-       * 
- * - * repeated string blue_instance_group_urls = 2; - * - * @param index The index of the value to return. - * @return The bytes of the blueInstanceGroupUrls at the given index. - */ - com.google.protobuf.ByteString getBlueInstanceGroupUrlsBytes(int index); - - /** - * - * - *
-       * The resource URLs of the [managed instance groups]
-       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-       * associated with green pool.
-       * 
- * - * repeated string green_instance_group_urls = 3; - * - * @return A list containing the greenInstanceGroupUrls. - */ - java.util.List getGreenInstanceGroupUrlsList(); - /** - * - * - *
-       * The resource URLs of the [managed instance groups]
-       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-       * associated with green pool.
-       * 
- * - * repeated string green_instance_group_urls = 3; - * - * @return The count of greenInstanceGroupUrls. - */ - int getGreenInstanceGroupUrlsCount(); - /** - * - * - *
-       * The resource URLs of the [managed instance groups]
-       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-       * associated with green pool.
-       * 
- * - * repeated string green_instance_group_urls = 3; - * - * @param index The index of the element to return. - * @return The greenInstanceGroupUrls at the given index. - */ - java.lang.String getGreenInstanceGroupUrls(int index); - /** - * - * - *
-       * The resource URLs of the [managed instance groups]
-       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-       * associated with green pool.
-       * 
- * - * repeated string green_instance_group_urls = 3; - * - * @param index The index of the value to return. - * @return The bytes of the greenInstanceGroupUrls at the given index. - */ - com.google.protobuf.ByteString getGreenInstanceGroupUrlsBytes(int index); - - /** - * - * - *
-       * Time to start deleting blue pool to complete blue-green upgrade,
-       * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-       * 
- * - * string blue_pool_deletion_start_time = 4; - * - * @return The bluePoolDeletionStartTime. - */ - java.lang.String getBluePoolDeletionStartTime(); - /** - * - * - *
-       * Time to start deleting blue pool to complete blue-green upgrade,
-       * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-       * 
- * - * string blue_pool_deletion_start_time = 4; - * - * @return The bytes for bluePoolDeletionStartTime. - */ - com.google.protobuf.ByteString getBluePoolDeletionStartTimeBytes(); - - /** - * - * - *
-       * Version of green pool.
-       * 
- * - * string green_pool_version = 5; - * - * @return The greenPoolVersion. - */ - java.lang.String getGreenPoolVersion(); - /** - * - * - *
-       * Version of green pool.
-       * 
- * - * string green_pool_version = 5; - * - * @return The bytes for greenPoolVersion. - */ - com.google.protobuf.ByteString getGreenPoolVersionBytes(); - } - /** - * - * - *
-     * Information relevant to blue-green upgrade.
-     * 
- * - * Protobuf type {@code google.container.v1.NodePool.UpdateInfo.BlueGreenInfo} - */ - public static final class BlueGreenInfo extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.NodePool.UpdateInfo.BlueGreenInfo) - BlueGreenInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use BlueGreenInfo.newBuilder() to construct. - private BlueGreenInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private BlueGreenInfo() { - phase_ = 0; - blueInstanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - greenInstanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bluePoolDeletionStartTime_ = ""; - greenPoolVersion_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BlueGreenInfo(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePool_UpdateInfo_BlueGreenInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePool_UpdateInfo_BlueGreenInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.class, - com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Builder.class); - } - - /** - * - * - *
-       * Phase represents the different stages blue-green upgrade is running in.
-       * 
- * - * Protobuf enum {@code google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase} - */ - public enum Phase implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-         * Unspecified phase.
-         * 
- * - * PHASE_UNSPECIFIED = 0; - */ - PHASE_UNSPECIFIED(0), - /** - * - * - *
-         * blue-green upgrade has been initiated.
-         * 
- * - * UPDATE_STARTED = 1; - */ - UPDATE_STARTED(1), - /** - * - * - *
-         * Start creating green pool nodes.
-         * 
- * - * CREATING_GREEN_POOL = 2; - */ - CREATING_GREEN_POOL(2), - /** - * - * - *
-         * Start cordoning blue pool nodes.
-         * 
- * - * CORDONING_BLUE_POOL = 3; - */ - CORDONING_BLUE_POOL(3), - /** - * - * - *
-         * Start draining blue pool nodes.
-         * 
- * - * DRAINING_BLUE_POOL = 4; - */ - DRAINING_BLUE_POOL(4), - /** - * - * - *
-         * Start soaking time after draining entire blue pool.
-         * 
- * - * NODE_POOL_SOAKING = 5; - */ - NODE_POOL_SOAKING(5), - /** - * - * - *
-         * Start deleting blue nodes.
-         * 
- * - * DELETING_BLUE_POOL = 6; - */ - DELETING_BLUE_POOL(6), - /** - * - * - *
-         * Rollback has been initiated.
-         * 
- * - * ROLLBACK_STARTED = 7; - */ - ROLLBACK_STARTED(7), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-         * Unspecified phase.
-         * 
- * - * PHASE_UNSPECIFIED = 0; - */ - public static final int PHASE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-         * blue-green upgrade has been initiated.
-         * 
- * - * UPDATE_STARTED = 1; - */ - public static final int UPDATE_STARTED_VALUE = 1; - /** - * - * - *
-         * Start creating green pool nodes.
-         * 
- * - * CREATING_GREEN_POOL = 2; - */ - public static final int CREATING_GREEN_POOL_VALUE = 2; - /** - * - * - *
-         * Start cordoning blue pool nodes.
-         * 
- * - * CORDONING_BLUE_POOL = 3; - */ - public static final int CORDONING_BLUE_POOL_VALUE = 3; - /** - * - * - *
-         * Start draining blue pool nodes.
-         * 
- * - * DRAINING_BLUE_POOL = 4; - */ - public static final int DRAINING_BLUE_POOL_VALUE = 4; - /** - * - * - *
-         * Start soaking time after draining entire blue pool.
-         * 
- * - * NODE_POOL_SOAKING = 5; - */ - public static final int NODE_POOL_SOAKING_VALUE = 5; - /** - * - * - *
-         * Start deleting blue nodes.
-         * 
- * - * DELETING_BLUE_POOL = 6; - */ - public static final int DELETING_BLUE_POOL_VALUE = 6; - /** - * - * - *
-         * Rollback has been initiated.
-         * 
- * - * ROLLBACK_STARTED = 7; - */ - public static final int ROLLBACK_STARTED_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 Phase 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 Phase forNumber(int value) { - switch (value) { - case 0: - return PHASE_UNSPECIFIED; - case 1: - return UPDATE_STARTED; - case 2: - return CREATING_GREEN_POOL; - case 3: - return CORDONING_BLUE_POOL; - case 4: - return DRAINING_BLUE_POOL; - case 5: - return NODE_POOL_SOAKING; - case 6: - return DELETING_BLUE_POOL; - case 7: - return ROLLBACK_STARTED; - 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 Phase findValueByNumber(int number) { - return Phase.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final Phase[] VALUES = values(); - - public static Phase 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 Phase(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase) - } - - public static final int PHASE_FIELD_NUMBER = 1; - private int phase_ = 0; - /** - * - * - *
-       * Current blue-green upgrade phase.
-       * 
- * - * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; - * - * @return The enum numeric value on the wire for phase. - */ - @java.lang.Override - public int getPhaseValue() { - return phase_; - } - /** - * - * - *
-       * Current blue-green upgrade phase.
-       * 
- * - * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; - * - * @return The phase. - */ - @java.lang.Override - public com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase getPhase() { - com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase result = - com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase.forNumber(phase_); - return result == null - ? com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase.UNRECOGNIZED - : result; - } - - public static final int BLUE_INSTANCE_GROUP_URLS_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList blueInstanceGroupUrls_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-       * The resource URLs of the [managed instance groups]
-       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-       * associated with blue pool.
-       * 
- * - * repeated string blue_instance_group_urls = 2; - * - * @return A list containing the blueInstanceGroupUrls. - */ - public com.google.protobuf.ProtocolStringList getBlueInstanceGroupUrlsList() { - return blueInstanceGroupUrls_; - } - /** - * - * - *
-       * The resource URLs of the [managed instance groups]
-       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-       * associated with blue pool.
-       * 
- * - * repeated string blue_instance_group_urls = 2; - * - * @return The count of blueInstanceGroupUrls. - */ - public int getBlueInstanceGroupUrlsCount() { - return blueInstanceGroupUrls_.size(); - } - /** - * - * - *
-       * The resource URLs of the [managed instance groups]
-       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-       * associated with blue pool.
-       * 
- * - * repeated string blue_instance_group_urls = 2; - * - * @param index The index of the element to return. - * @return The blueInstanceGroupUrls at the given index. - */ - public java.lang.String getBlueInstanceGroupUrls(int index) { - return blueInstanceGroupUrls_.get(index); - } - /** - * - * - *
-       * The resource URLs of the [managed instance groups]
-       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-       * associated with blue pool.
-       * 
- * - * repeated string blue_instance_group_urls = 2; - * - * @param index The index of the value to return. - * @return The bytes of the blueInstanceGroupUrls at the given index. - */ - public com.google.protobuf.ByteString getBlueInstanceGroupUrlsBytes(int index) { - return blueInstanceGroupUrls_.getByteString(index); - } - - public static final int GREEN_INSTANCE_GROUP_URLS_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList greenInstanceGroupUrls_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-       * The resource URLs of the [managed instance groups]
-       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-       * associated with green pool.
-       * 
- * - * repeated string green_instance_group_urls = 3; - * - * @return A list containing the greenInstanceGroupUrls. - */ - public com.google.protobuf.ProtocolStringList getGreenInstanceGroupUrlsList() { - return greenInstanceGroupUrls_; - } - /** - * - * - *
-       * The resource URLs of the [managed instance groups]
-       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-       * associated with green pool.
-       * 
- * - * repeated string green_instance_group_urls = 3; - * - * @return The count of greenInstanceGroupUrls. - */ - public int getGreenInstanceGroupUrlsCount() { - return greenInstanceGroupUrls_.size(); - } - /** - * - * - *
-       * The resource URLs of the [managed instance groups]
-       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-       * associated with green pool.
-       * 
- * - * repeated string green_instance_group_urls = 3; - * - * @param index The index of the element to return. - * @return The greenInstanceGroupUrls at the given index. - */ - public java.lang.String getGreenInstanceGroupUrls(int index) { - return greenInstanceGroupUrls_.get(index); - } - /** - * - * - *
-       * The resource URLs of the [managed instance groups]
-       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-       * associated with green pool.
-       * 
- * - * repeated string green_instance_group_urls = 3; - * - * @param index The index of the value to return. - * @return The bytes of the greenInstanceGroupUrls at the given index. - */ - public com.google.protobuf.ByteString getGreenInstanceGroupUrlsBytes(int index) { - return greenInstanceGroupUrls_.getByteString(index); - } - - public static final int BLUE_POOL_DELETION_START_TIME_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private volatile java.lang.Object bluePoolDeletionStartTime_ = ""; - /** - * - * - *
-       * Time to start deleting blue pool to complete blue-green upgrade,
-       * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-       * 
- * - * string blue_pool_deletion_start_time = 4; - * - * @return The bluePoolDeletionStartTime. - */ - @java.lang.Override - public java.lang.String getBluePoolDeletionStartTime() { - java.lang.Object ref = bluePoolDeletionStartTime_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bluePoolDeletionStartTime_ = s; - return s; - } - } - /** - * - * - *
-       * Time to start deleting blue pool to complete blue-green upgrade,
-       * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-       * 
- * - * string blue_pool_deletion_start_time = 4; - * - * @return The bytes for bluePoolDeletionStartTime. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBluePoolDeletionStartTimeBytes() { - java.lang.Object ref = bluePoolDeletionStartTime_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - bluePoolDeletionStartTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GREEN_POOL_VERSION_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - private volatile java.lang.Object greenPoolVersion_ = ""; - /** - * - * - *
-       * Version of green pool.
-       * 
- * - * string green_pool_version = 5; - * - * @return The greenPoolVersion. - */ - @java.lang.Override - public java.lang.String getGreenPoolVersion() { - java.lang.Object ref = greenPoolVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - greenPoolVersion_ = s; - return s; - } - } - /** - * - * - *
-       * Version of green pool.
-       * 
- * - * string green_pool_version = 5; - * - * @return The bytes for greenPoolVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString getGreenPoolVersionBytes() { - java.lang.Object ref = greenPoolVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - greenPoolVersion_ = 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 (phase_ - != com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase.PHASE_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, phase_); - } - for (int i = 0; i < blueInstanceGroupUrls_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 2, blueInstanceGroupUrls_.getRaw(i)); - } - for (int i = 0; i < greenInstanceGroupUrls_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 3, greenInstanceGroupUrls_.getRaw(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bluePoolDeletionStartTime_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, bluePoolDeletionStartTime_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(greenPoolVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, greenPoolVersion_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (phase_ - != com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase.PHASE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, phase_); - } - { - int dataSize = 0; - for (int i = 0; i < blueInstanceGroupUrls_.size(); i++) { - dataSize += computeStringSizeNoTag(blueInstanceGroupUrls_.getRaw(i)); - } - size += dataSize; - size += 1 * getBlueInstanceGroupUrlsList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < greenInstanceGroupUrls_.size(); i++) { - dataSize += computeStringSizeNoTag(greenInstanceGroupUrls_.getRaw(i)); - } - size += dataSize; - size += 1 * getGreenInstanceGroupUrlsList().size(); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bluePoolDeletionStartTime_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize( - 4, bluePoolDeletionStartTime_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(greenPoolVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, greenPoolVersion_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo)) { - return super.equals(obj); - } - com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo other = - (com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo) obj; - - if (phase_ != other.phase_) return false; - if (!getBlueInstanceGroupUrlsList().equals(other.getBlueInstanceGroupUrlsList())) - return false; - if (!getGreenInstanceGroupUrlsList().equals(other.getGreenInstanceGroupUrlsList())) - return false; - if (!getBluePoolDeletionStartTime().equals(other.getBluePoolDeletionStartTime())) - return false; - if (!getGreenPoolVersion().equals(other.getGreenPoolVersion())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + PHASE_FIELD_NUMBER; - hash = (53 * hash) + phase_; - if (getBlueInstanceGroupUrlsCount() > 0) { - hash = (37 * hash) + BLUE_INSTANCE_GROUP_URLS_FIELD_NUMBER; - hash = (53 * hash) + getBlueInstanceGroupUrlsList().hashCode(); - } - if (getGreenInstanceGroupUrlsCount() > 0) { - hash = (37 * hash) + GREEN_INSTANCE_GROUP_URLS_FIELD_NUMBER; - hash = (53 * hash) + getGreenInstanceGroupUrlsList().hashCode(); - } - hash = (37 * hash) + BLUE_POOL_DELETION_START_TIME_FIELD_NUMBER; - hash = (53 * hash) + getBluePoolDeletionStartTime().hashCode(); - hash = (37 * hash) + GREEN_POOL_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getGreenPoolVersion().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 relevant to blue-green upgrade.
-       * 
- * - * Protobuf type {@code google.container.v1.NodePool.UpdateInfo.BlueGreenInfo} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.NodePool.UpdateInfo.BlueGreenInfo) - com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePool_UpdateInfo_BlueGreenInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePool_UpdateInfo_BlueGreenInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.class, - com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Builder.class); - } - - // Construct using com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - phase_ = 0; - blueInstanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - greenInstanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bluePoolDeletionStartTime_ = ""; - greenPoolVersion_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePool_UpdateInfo_BlueGreenInfo_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo - getDefaultInstanceForType() { - return com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo build() { - com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo buildPartial() { - com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo result = - new com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.phase_ = phase_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - blueInstanceGroupUrls_.makeImmutable(); - result.blueInstanceGroupUrls_ = blueInstanceGroupUrls_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - greenInstanceGroupUrls_.makeImmutable(); - result.greenInstanceGroupUrls_ = greenInstanceGroupUrls_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.bluePoolDeletionStartTime_ = bluePoolDeletionStartTime_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.greenPoolVersion_ = greenPoolVersion_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo) { - return mergeFrom((com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo other) { - if (other - == com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.getDefaultInstance()) - return this; - if (other.phase_ != 0) { - setPhaseValue(other.getPhaseValue()); - } - if (!other.blueInstanceGroupUrls_.isEmpty()) { - if (blueInstanceGroupUrls_.isEmpty()) { - blueInstanceGroupUrls_ = other.blueInstanceGroupUrls_; - bitField0_ |= 0x00000002; - } else { - ensureBlueInstanceGroupUrlsIsMutable(); - blueInstanceGroupUrls_.addAll(other.blueInstanceGroupUrls_); - } - onChanged(); - } - if (!other.greenInstanceGroupUrls_.isEmpty()) { - if (greenInstanceGroupUrls_.isEmpty()) { - greenInstanceGroupUrls_ = other.greenInstanceGroupUrls_; - bitField0_ |= 0x00000004; - } else { - ensureGreenInstanceGroupUrlsIsMutable(); - greenInstanceGroupUrls_.addAll(other.greenInstanceGroupUrls_); - } - onChanged(); - } - if (!other.getBluePoolDeletionStartTime().isEmpty()) { - bluePoolDeletionStartTime_ = other.bluePoolDeletionStartTime_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getGreenPoolVersion().isEmpty()) { - greenPoolVersion_ = other.greenPoolVersion_; - bitField0_ |= 0x00000010; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - phase_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureBlueInstanceGroupUrlsIsMutable(); - blueInstanceGroupUrls_.add(s); - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureGreenInstanceGroupUrlsIsMutable(); - greenInstanceGroupUrls_.add(s); - break; - } // case 26 - case 34: - { - bluePoolDeletionStartTime_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - greenPoolVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int phase_ = 0; - /** - * - * - *
-         * Current blue-green upgrade phase.
-         * 
- * - * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; - * - * @return The enum numeric value on the wire for phase. - */ - @java.lang.Override - public int getPhaseValue() { - return phase_; - } - /** - * - * - *
-         * Current blue-green upgrade phase.
-         * 
- * - * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; - * - * @param value The enum numeric value on the wire for phase to set. - * @return This builder for chaining. - */ - public Builder setPhaseValue(int value) { - phase_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-         * Current blue-green upgrade phase.
-         * 
- * - * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; - * - * @return The phase. - */ - @java.lang.Override - public com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase getPhase() { - com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase result = - com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase.forNumber(phase_); - return result == null - ? com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase.UNRECOGNIZED - : result; - } - /** - * - * - *
-         * Current blue-green upgrade phase.
-         * 
- * - * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; - * - * @param value The phase to set. - * @return This builder for chaining. - */ - public Builder setPhase( - com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - phase_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-         * Current blue-green upgrade phase.
-         * 
- * - * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; - * - * @return This builder for chaining. - */ - public Builder clearPhase() { - bitField0_ = (bitField0_ & ~0x00000001); - phase_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList blueInstanceGroupUrls_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureBlueInstanceGroupUrlsIsMutable() { - if (!blueInstanceGroupUrls_.isModifiable()) { - blueInstanceGroupUrls_ = - new com.google.protobuf.LazyStringArrayList(blueInstanceGroupUrls_); - } - bitField0_ |= 0x00000002; - } - /** - * - * - *
-         * The resource URLs of the [managed instance groups]
-         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-         * associated with blue pool.
-         * 
- * - * repeated string blue_instance_group_urls = 2; - * - * @return A list containing the blueInstanceGroupUrls. - */ - public com.google.protobuf.ProtocolStringList getBlueInstanceGroupUrlsList() { - blueInstanceGroupUrls_.makeImmutable(); - return blueInstanceGroupUrls_; - } - /** - * - * - *
-         * The resource URLs of the [managed instance groups]
-         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-         * associated with blue pool.
-         * 
- * - * repeated string blue_instance_group_urls = 2; - * - * @return The count of blueInstanceGroupUrls. - */ - public int getBlueInstanceGroupUrlsCount() { - return blueInstanceGroupUrls_.size(); - } - /** - * - * - *
-         * The resource URLs of the [managed instance groups]
-         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-         * associated with blue pool.
-         * 
- * - * repeated string blue_instance_group_urls = 2; - * - * @param index The index of the element to return. - * @return The blueInstanceGroupUrls at the given index. - */ - public java.lang.String getBlueInstanceGroupUrls(int index) { - return blueInstanceGroupUrls_.get(index); - } - /** - * - * - *
-         * The resource URLs of the [managed instance groups]
-         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-         * associated with blue pool.
-         * 
- * - * repeated string blue_instance_group_urls = 2; - * - * @param index The index of the value to return. - * @return The bytes of the blueInstanceGroupUrls at the given index. - */ - public com.google.protobuf.ByteString getBlueInstanceGroupUrlsBytes(int index) { - return blueInstanceGroupUrls_.getByteString(index); - } - /** - * - * - *
-         * The resource URLs of the [managed instance groups]
-         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-         * associated with blue pool.
-         * 
- * - * repeated string blue_instance_group_urls = 2; - * - * @param index The index to set the value at. - * @param value The blueInstanceGroupUrls to set. - * @return This builder for chaining. - */ - public Builder setBlueInstanceGroupUrls(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureBlueInstanceGroupUrlsIsMutable(); - blueInstanceGroupUrls_.set(index, value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-         * The resource URLs of the [managed instance groups]
-         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-         * associated with blue pool.
-         * 
- * - * repeated string blue_instance_group_urls = 2; - * - * @param value The blueInstanceGroupUrls to add. - * @return This builder for chaining. - */ - public Builder addBlueInstanceGroupUrls(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureBlueInstanceGroupUrlsIsMutable(); - blueInstanceGroupUrls_.add(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-         * The resource URLs of the [managed instance groups]
-         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-         * associated with blue pool.
-         * 
- * - * repeated string blue_instance_group_urls = 2; - * - * @param values The blueInstanceGroupUrls to add. - * @return This builder for chaining. - */ - public Builder addAllBlueInstanceGroupUrls(java.lang.Iterable values) { - ensureBlueInstanceGroupUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blueInstanceGroupUrls_); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-         * The resource URLs of the [managed instance groups]
-         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-         * associated with blue pool.
-         * 
- * - * repeated string blue_instance_group_urls = 2; - * - * @return This builder for chaining. - */ - public Builder clearBlueInstanceGroupUrls() { - blueInstanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; - onChanged(); - return this; - } - /** - * - * - *
-         * The resource URLs of the [managed instance groups]
-         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-         * associated with blue pool.
-         * 
- * - * repeated string blue_instance_group_urls = 2; - * - * @param value The bytes of the blueInstanceGroupUrls to add. - * @return This builder for chaining. - */ - public Builder addBlueInstanceGroupUrlsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureBlueInstanceGroupUrlsIsMutable(); - blueInstanceGroupUrls_.add(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList greenInstanceGroupUrls_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureGreenInstanceGroupUrlsIsMutable() { - if (!greenInstanceGroupUrls_.isModifiable()) { - greenInstanceGroupUrls_ = - new com.google.protobuf.LazyStringArrayList(greenInstanceGroupUrls_); - } - bitField0_ |= 0x00000004; - } - /** - * - * - *
-         * The resource URLs of the [managed instance groups]
-         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-         * associated with green pool.
-         * 
- * - * repeated string green_instance_group_urls = 3; - * - * @return A list containing the greenInstanceGroupUrls. - */ - public com.google.protobuf.ProtocolStringList getGreenInstanceGroupUrlsList() { - greenInstanceGroupUrls_.makeImmutable(); - return greenInstanceGroupUrls_; - } - /** - * - * - *
-         * The resource URLs of the [managed instance groups]
-         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-         * associated with green pool.
-         * 
- * - * repeated string green_instance_group_urls = 3; - * - * @return The count of greenInstanceGroupUrls. - */ - public int getGreenInstanceGroupUrlsCount() { - return greenInstanceGroupUrls_.size(); - } - /** - * - * - *
-         * The resource URLs of the [managed instance groups]
-         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-         * associated with green pool.
-         * 
- * - * repeated string green_instance_group_urls = 3; - * - * @param index The index of the element to return. - * @return The greenInstanceGroupUrls at the given index. - */ - public java.lang.String getGreenInstanceGroupUrls(int index) { - return greenInstanceGroupUrls_.get(index); - } - /** - * - * - *
-         * The resource URLs of the [managed instance groups]
-         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-         * associated with green pool.
-         * 
- * - * repeated string green_instance_group_urls = 3; - * - * @param index The index of the value to return. - * @return The bytes of the greenInstanceGroupUrls at the given index. - */ - public com.google.protobuf.ByteString getGreenInstanceGroupUrlsBytes(int index) { - return greenInstanceGroupUrls_.getByteString(index); - } - /** - * - * - *
-         * The resource URLs of the [managed instance groups]
-         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-         * associated with green pool.
-         * 
- * - * repeated string green_instance_group_urls = 3; - * - * @param index The index to set the value at. - * @param value The greenInstanceGroupUrls to set. - * @return This builder for chaining. - */ - public Builder setGreenInstanceGroupUrls(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureGreenInstanceGroupUrlsIsMutable(); - greenInstanceGroupUrls_.set(index, value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-         * The resource URLs of the [managed instance groups]
-         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-         * associated with green pool.
-         * 
- * - * repeated string green_instance_group_urls = 3; - * - * @param value The greenInstanceGroupUrls to add. - * @return This builder for chaining. - */ - public Builder addGreenInstanceGroupUrls(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureGreenInstanceGroupUrlsIsMutable(); - greenInstanceGroupUrls_.add(value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-         * The resource URLs of the [managed instance groups]
-         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-         * associated with green pool.
-         * 
- * - * repeated string green_instance_group_urls = 3; - * - * @param values The greenInstanceGroupUrls to add. - * @return This builder for chaining. - */ - public Builder addAllGreenInstanceGroupUrls(java.lang.Iterable values) { - ensureGreenInstanceGroupUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, greenInstanceGroupUrls_); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-         * The resource URLs of the [managed instance groups]
-         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-         * associated with green pool.
-         * 
- * - * repeated string green_instance_group_urls = 3; - * - * @return This builder for chaining. - */ - public Builder clearGreenInstanceGroupUrls() { - greenInstanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; - onChanged(); - return this; - } - /** - * - * - *
-         * The resource URLs of the [managed instance groups]
-         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-         * associated with green pool.
-         * 
- * - * repeated string green_instance_group_urls = 3; - * - * @param value The bytes of the greenInstanceGroupUrls to add. - * @return This builder for chaining. - */ - public Builder addGreenInstanceGroupUrlsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureGreenInstanceGroupUrlsIsMutable(); - greenInstanceGroupUrls_.add(value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object bluePoolDeletionStartTime_ = ""; - /** - * - * - *
-         * Time to start deleting blue pool to complete blue-green upgrade,
-         * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-         * 
- * - * string blue_pool_deletion_start_time = 4; - * - * @return The bluePoolDeletionStartTime. - */ - public java.lang.String getBluePoolDeletionStartTime() { - java.lang.Object ref = bluePoolDeletionStartTime_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bluePoolDeletionStartTime_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-         * Time to start deleting blue pool to complete blue-green upgrade,
-         * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-         * 
- * - * string blue_pool_deletion_start_time = 4; - * - * @return The bytes for bluePoolDeletionStartTime. - */ - public com.google.protobuf.ByteString getBluePoolDeletionStartTimeBytes() { - java.lang.Object ref = bluePoolDeletionStartTime_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - bluePoolDeletionStartTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-         * Time to start deleting blue pool to complete blue-green upgrade,
-         * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-         * 
- * - * string blue_pool_deletion_start_time = 4; - * - * @param value The bluePoolDeletionStartTime to set. - * @return This builder for chaining. - */ - public Builder setBluePoolDeletionStartTime(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bluePoolDeletionStartTime_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-         * Time to start deleting blue pool to complete blue-green upgrade,
-         * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-         * 
- * - * string blue_pool_deletion_start_time = 4; - * - * @return This builder for chaining. - */ - public Builder clearBluePoolDeletionStartTime() { - bluePoolDeletionStartTime_ = getDefaultInstance().getBluePoolDeletionStartTime(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-         * Time to start deleting blue pool to complete blue-green upgrade,
-         * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-         * 
- * - * string blue_pool_deletion_start_time = 4; - * - * @param value The bytes for bluePoolDeletionStartTime to set. - * @return This builder for chaining. - */ - public Builder setBluePoolDeletionStartTimeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - bluePoolDeletionStartTime_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private java.lang.Object greenPoolVersion_ = ""; - /** - * - * - *
-         * Version of green pool.
-         * 
- * - * string green_pool_version = 5; - * - * @return The greenPoolVersion. - */ - public java.lang.String getGreenPoolVersion() { - java.lang.Object ref = greenPoolVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - greenPoolVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-         * Version of green pool.
-         * 
- * - * string green_pool_version = 5; - * - * @return The bytes for greenPoolVersion. - */ - public com.google.protobuf.ByteString getGreenPoolVersionBytes() { - java.lang.Object ref = greenPoolVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - greenPoolVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-         * Version of green pool.
-         * 
- * - * string green_pool_version = 5; - * - * @param value The greenPoolVersion to set. - * @return This builder for chaining. - */ - public Builder setGreenPoolVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - greenPoolVersion_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-         * Version of green pool.
-         * 
- * - * string green_pool_version = 5; - * - * @return This builder for chaining. - */ - public Builder clearGreenPoolVersion() { - greenPoolVersion_ = getDefaultInstance().getGreenPoolVersion(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * - * - *
-         * Version of green pool.
-         * 
- * - * string green_pool_version = 5; - * - * @param value The bytes for greenPoolVersion to set. - * @return This builder for chaining. - */ - public Builder setGreenPoolVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - greenPoolVersion_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.NodePool.UpdateInfo.BlueGreenInfo) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.NodePool.UpdateInfo.BlueGreenInfo) - private static final com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo(); - } - - public static com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BlueGreenInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int bitField0_; - public static final int BLUE_GREEN_INFO_FIELD_NUMBER = 1; - private com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blueGreenInfo_; - /** - * - * - *
-     * Information of a blue-green upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - * - * @return Whether the blueGreenInfo field is set. - */ - @java.lang.Override - public boolean hasBlueGreenInfo() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Information of a blue-green upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - * - * @return The blueGreenInfo. - */ - @java.lang.Override - public com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo getBlueGreenInfo() { - return blueGreenInfo_ == null - ? com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.getDefaultInstance() - : blueGreenInfo_; - } - /** - * - * - *
-     * Information of a blue-green upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - */ - @java.lang.Override - public com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfoOrBuilder - getBlueGreenInfoOrBuilder() { - return blueGreenInfo_ == null - ? com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.getDefaultInstance() - : blueGreenInfo_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getBlueGreenInfo()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBlueGreenInfo()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.NodePool.UpdateInfo)) { - return super.equals(obj); - } - com.google.container.v1.NodePool.UpdateInfo other = - (com.google.container.v1.NodePool.UpdateInfo) obj; - - if (hasBlueGreenInfo() != other.hasBlueGreenInfo()) return false; - if (hasBlueGreenInfo()) { - if (!getBlueGreenInfo().equals(other.getBlueGreenInfo())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasBlueGreenInfo()) { - hash = (37 * hash) + BLUE_GREEN_INFO_FIELD_NUMBER; - hash = (53 * hash) + getBlueGreenInfo().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.NodePool.UpdateInfo parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodePool.UpdateInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodePool.UpdateInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodePool.UpdateInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodePool.UpdateInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodePool.UpdateInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodePool.UpdateInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodePool.UpdateInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NodePool.UpdateInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodePool.UpdateInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NodePool.UpdateInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodePool.UpdateInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.NodePool.UpdateInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * UpdateInfo contains resource (instance groups, etc), status and other
-     * intermediate information relevant to a node pool upgrade.
-     * 
- * - * Protobuf type {@code google.container.v1.NodePool.UpdateInfo} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.NodePool.UpdateInfo) - com.google.container.v1.NodePool.UpdateInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePool_UpdateInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePool_UpdateInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodePool.UpdateInfo.class, - com.google.container.v1.NodePool.UpdateInfo.Builder.class); - } - - // Construct using com.google.container.v1.NodePool.UpdateInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getBlueGreenInfoFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - blueGreenInfo_ = null; - if (blueGreenInfoBuilder_ != null) { - blueGreenInfoBuilder_.dispose(); - blueGreenInfoBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePool_UpdateInfo_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NodePool.UpdateInfo getDefaultInstanceForType() { - return com.google.container.v1.NodePool.UpdateInfo.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NodePool.UpdateInfo build() { - com.google.container.v1.NodePool.UpdateInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NodePool.UpdateInfo buildPartial() { - com.google.container.v1.NodePool.UpdateInfo result = - new com.google.container.v1.NodePool.UpdateInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.NodePool.UpdateInfo result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.blueGreenInfo_ = - blueGreenInfoBuilder_ == null ? blueGreenInfo_ : blueGreenInfoBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NodePool.UpdateInfo) { - return mergeFrom((com.google.container.v1.NodePool.UpdateInfo) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NodePool.UpdateInfo other) { - if (other == com.google.container.v1.NodePool.UpdateInfo.getDefaultInstance()) return this; - if (other.hasBlueGreenInfo()) { - mergeBlueGreenInfo(other.getBlueGreenInfo()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getBlueGreenInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blueGreenInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo, - com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Builder, - com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfoOrBuilder> - blueGreenInfoBuilder_; - /** - * - * - *
-       * Information of a blue-green upgrade.
-       * 
- * - * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - * - * @return Whether the blueGreenInfo field is set. - */ - public boolean hasBlueGreenInfo() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-       * Information of a blue-green upgrade.
-       * 
- * - * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - * - * @return The blueGreenInfo. - */ - public com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo getBlueGreenInfo() { - if (blueGreenInfoBuilder_ == null) { - return blueGreenInfo_ == null - ? com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.getDefaultInstance() - : blueGreenInfo_; - } else { - return blueGreenInfoBuilder_.getMessage(); - } - } - /** - * - * - *
-       * Information of a blue-green upgrade.
-       * 
- * - * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - */ - public Builder setBlueGreenInfo( - com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo value) { - if (blueGreenInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - blueGreenInfo_ = value; - } else { - blueGreenInfoBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * Information of a blue-green upgrade.
-       * 
- * - * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - */ - public Builder setBlueGreenInfo( - com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Builder builderForValue) { - if (blueGreenInfoBuilder_ == null) { - blueGreenInfo_ = builderForValue.build(); - } else { - blueGreenInfoBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * Information of a blue-green upgrade.
-       * 
- * - * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - */ - public Builder mergeBlueGreenInfo( - com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo value) { - if (blueGreenInfoBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && blueGreenInfo_ != null - && blueGreenInfo_ - != com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo - .getDefaultInstance()) { - getBlueGreenInfoBuilder().mergeFrom(value); - } else { - blueGreenInfo_ = value; - } - } else { - blueGreenInfoBuilder_.mergeFrom(value); - } - if (blueGreenInfo_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * - * - *
-       * Information of a blue-green upgrade.
-       * 
- * - * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - */ - public Builder clearBlueGreenInfo() { - bitField0_ = (bitField0_ & ~0x00000001); - blueGreenInfo_ = null; - if (blueGreenInfoBuilder_ != null) { - blueGreenInfoBuilder_.dispose(); - blueGreenInfoBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-       * Information of a blue-green upgrade.
-       * 
- * - * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - */ - public com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Builder - getBlueGreenInfoBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getBlueGreenInfoFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * Information of a blue-green upgrade.
-       * 
- * - * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - */ - public com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfoOrBuilder - getBlueGreenInfoOrBuilder() { - if (blueGreenInfoBuilder_ != null) { - return blueGreenInfoBuilder_.getMessageOrBuilder(); - } else { - return blueGreenInfo_ == null - ? com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.getDefaultInstance() - : blueGreenInfo_; - } - } - /** - * - * - *
-       * Information of a blue-green upgrade.
-       * 
- * - * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo, - com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Builder, - com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfoOrBuilder> - getBlueGreenInfoFieldBuilder() { - if (blueGreenInfoBuilder_ == null) { - blueGreenInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo, - com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Builder, - com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfoOrBuilder>( - getBlueGreenInfo(), getParentForChildren(), isClean()); - blueGreenInfo_ = null; - } - return blueGreenInfoBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.NodePool.UpdateInfo) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.NodePool.UpdateInfo) - private static final com.google.container.v1.NodePool.UpdateInfo DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.NodePool.UpdateInfo(); - } - - public static com.google.container.v1.NodePool.UpdateInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.NodePool.UpdateInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface PlacementPolicyOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.NodePool.PlacementPolicy) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * The type of placement.
-     * 
- * - * .google.container.v1.NodePool.PlacementPolicy.Type type = 1; - * - * @return The enum numeric value on the wire for type. - */ - int getTypeValue(); - /** - * - * - *
-     * The type of placement.
-     * 
- * - * .google.container.v1.NodePool.PlacementPolicy.Type type = 1; - * - * @return The type. - */ - com.google.container.v1.NodePool.PlacementPolicy.Type getType(); - - /** - * - * - *
-     * Optional. TPU placement topology for pod slice node pool.
-     * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
-     * 
- * - * string tpu_topology = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The tpuTopology. - */ - java.lang.String getTpuTopology(); - /** - * - * - *
-     * Optional. TPU placement topology for pod slice node pool.
-     * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
-     * 
- * - * string tpu_topology = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for tpuTopology. - */ - com.google.protobuf.ByteString getTpuTopologyBytes(); - - /** - * - * - *
-     * If set, refers to the name of a custom resource policy supplied by the
-     * user. The resource policy must be in the same project and region as the
-     * node pool. If not found, InvalidArgument error is returned.
-     * 
- * - * string policy_name = 3; - * - * @return The policyName. - */ - java.lang.String getPolicyName(); - /** - * - * - *
-     * If set, refers to the name of a custom resource policy supplied by the
-     * user. The resource policy must be in the same project and region as the
-     * node pool. If not found, InvalidArgument error is returned.
-     * 
- * - * string policy_name = 3; - * - * @return The bytes for policyName. - */ - com.google.protobuf.ByteString getPolicyNameBytes(); - } - /** - * - * - *
-   * PlacementPolicy defines the placement policy used by the node pool.
-   * 
- * - * Protobuf type {@code google.container.v1.NodePool.PlacementPolicy} - */ - public static final class PlacementPolicy extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.NodePool.PlacementPolicy) - PlacementPolicyOrBuilder { - private static final long serialVersionUID = 0L; - // Use PlacementPolicy.newBuilder() to construct. - private PlacementPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PlacementPolicy() { - type_ = 0; - tpuTopology_ = ""; - policyName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PlacementPolicy(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePool_PlacementPolicy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePool_PlacementPolicy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodePool.PlacementPolicy.class, - com.google.container.v1.NodePool.PlacementPolicy.Builder.class); - } - - /** - * - * - *
-     * Type defines the type of placement policy.
-     * 
- * - * Protobuf enum {@code google.container.v1.NodePool.PlacementPolicy.Type} - */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-       * TYPE_UNSPECIFIED specifies no requirements on nodes
-       * placement.
-       * 
- * - * TYPE_UNSPECIFIED = 0; - */ - TYPE_UNSPECIFIED(0), - /** - * - * - *
-       * COMPACT specifies node placement in the same availability domain to
-       * ensure low communication latency.
-       * 
- * - * COMPACT = 1; - */ - COMPACT(1), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-       * TYPE_UNSPECIFIED specifies no requirements on nodes
-       * placement.
-       * 
- * - * TYPE_UNSPECIFIED = 0; - */ - public static final int TYPE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-       * COMPACT specifies node placement in the same availability domain to
-       * ensure low communication latency.
-       * 
- * - * COMPACT = 1; - */ - public static final int COMPACT_VALUE = 1; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Type valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Type forNumber(int value) { - switch (value) { - case 0: - return TYPE_UNSPECIFIED; - case 1: - return COMPACT; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.NodePool.PlacementPolicy.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final Type[] VALUES = values(); - - public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Type(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.NodePool.PlacementPolicy.Type) - } - - public static final int TYPE_FIELD_NUMBER = 1; - private int type_ = 0; - /** - * - * - *
-     * The type of placement.
-     * 
- * - * .google.container.v1.NodePool.PlacementPolicy.Type type = 1; - * - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override - public int getTypeValue() { - return type_; - } - /** - * - * - *
-     * The type of placement.
-     * 
- * - * .google.container.v1.NodePool.PlacementPolicy.Type type = 1; - * - * @return The type. - */ - @java.lang.Override - public com.google.container.v1.NodePool.PlacementPolicy.Type getType() { - com.google.container.v1.NodePool.PlacementPolicy.Type result = - com.google.container.v1.NodePool.PlacementPolicy.Type.forNumber(type_); - return result == null - ? com.google.container.v1.NodePool.PlacementPolicy.Type.UNRECOGNIZED - : result; - } - - public static final int TPU_TOPOLOGY_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object tpuTopology_ = ""; - /** - * - * - *
-     * Optional. TPU placement topology for pod slice node pool.
-     * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
-     * 
- * - * string tpu_topology = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The tpuTopology. - */ - @java.lang.Override - public java.lang.String getTpuTopology() { - java.lang.Object ref = tpuTopology_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tpuTopology_ = s; - return s; - } - } - /** - * - * - *
-     * Optional. TPU placement topology for pod slice node pool.
-     * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
-     * 
- * - * string tpu_topology = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for tpuTopology. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTpuTopologyBytes() { - java.lang.Object ref = tpuTopology_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tpuTopology_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int POLICY_NAME_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object policyName_ = ""; - /** - * - * - *
-     * If set, refers to the name of a custom resource policy supplied by the
-     * user. The resource policy must be in the same project and region as the
-     * node pool. If not found, InvalidArgument error is returned.
-     * 
- * - * string policy_name = 3; - * - * @return The policyName. - */ - @java.lang.Override - public java.lang.String getPolicyName() { - java.lang.Object ref = policyName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - policyName_ = s; - return s; - } - } - /** - * - * - *
-     * If set, refers to the name of a custom resource policy supplied by the
-     * user. The resource policy must be in the same project and region as the
-     * node pool. If not found, InvalidArgument error is returned.
-     * 
- * - * string policy_name = 3; - * - * @return The bytes for policyName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPolicyNameBytes() { - java.lang.Object ref = policyName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - policyName_ = 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 (type_ - != com.google.container.v1.NodePool.PlacementPolicy.Type.TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(1, type_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tpuTopology_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tpuTopology_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, policyName_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (type_ - != com.google.container.v1.NodePool.PlacementPolicy.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tpuTopology_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tpuTopology_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, policyName_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.NodePool.PlacementPolicy)) { - return super.equals(obj); - } - com.google.container.v1.NodePool.PlacementPolicy other = - (com.google.container.v1.NodePool.PlacementPolicy) obj; - - if (type_ != other.type_) return false; - if (!getTpuTopology().equals(other.getTpuTopology())) return false; - if (!getPolicyName().equals(other.getPolicyName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + TPU_TOPOLOGY_FIELD_NUMBER; - hash = (53 * hash) + getTpuTopology().hashCode(); - hash = (37 * hash) + POLICY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getPolicyName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.NodePool.PlacementPolicy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodePool.PlacementPolicy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodePool.PlacementPolicy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodePool.PlacementPolicy parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodePool.PlacementPolicy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodePool.PlacementPolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodePool.PlacementPolicy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodePool.PlacementPolicy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NodePool.PlacementPolicy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodePool.PlacementPolicy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NodePool.PlacementPolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodePool.PlacementPolicy parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.NodePool.PlacementPolicy prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * PlacementPolicy defines the placement policy used by the node pool.
-     * 
- * - * Protobuf type {@code google.container.v1.NodePool.PlacementPolicy} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.NodePool.PlacementPolicy) - com.google.container.v1.NodePool.PlacementPolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePool_PlacementPolicy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePool_PlacementPolicy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodePool.PlacementPolicy.class, - com.google.container.v1.NodePool.PlacementPolicy.Builder.class); - } - - // Construct using com.google.container.v1.NodePool.PlacementPolicy.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - type_ = 0; - tpuTopology_ = ""; - policyName_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePool_PlacementPolicy_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NodePool.PlacementPolicy getDefaultInstanceForType() { - return com.google.container.v1.NodePool.PlacementPolicy.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NodePool.PlacementPolicy build() { - com.google.container.v1.NodePool.PlacementPolicy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NodePool.PlacementPolicy buildPartial() { - com.google.container.v1.NodePool.PlacementPolicy result = - new com.google.container.v1.NodePool.PlacementPolicy(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.NodePool.PlacementPolicy result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.type_ = type_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.tpuTopology_ = tpuTopology_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.policyName_ = policyName_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NodePool.PlacementPolicy) { - return mergeFrom((com.google.container.v1.NodePool.PlacementPolicy) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NodePool.PlacementPolicy other) { - if (other == com.google.container.v1.NodePool.PlacementPolicy.getDefaultInstance()) - return this; - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - if (!other.getTpuTopology().isEmpty()) { - tpuTopology_ = other.tpuTopology_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getPolicyName().isEmpty()) { - policyName_ = other.policyName_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - type_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - tpuTopology_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - policyName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int type_ = 0; - /** - * - * - *
-       * The type of placement.
-       * 
- * - * .google.container.v1.NodePool.PlacementPolicy.Type type = 1; - * - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override - public int getTypeValue() { - return type_; - } - /** - * - * - *
-       * The type of placement.
-       * 
- * - * .google.container.v1.NodePool.PlacementPolicy.Type type = 1; - * - * @param value The enum numeric value on the wire for type to set. - * @return This builder for chaining. - */ - public Builder setTypeValue(int value) { - type_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * The type of placement.
-       * 
- * - * .google.container.v1.NodePool.PlacementPolicy.Type type = 1; - * - * @return The type. - */ - @java.lang.Override - public com.google.container.v1.NodePool.PlacementPolicy.Type getType() { - com.google.container.v1.NodePool.PlacementPolicy.Type result = - com.google.container.v1.NodePool.PlacementPolicy.Type.forNumber(type_); - return result == null - ? com.google.container.v1.NodePool.PlacementPolicy.Type.UNRECOGNIZED - : result; - } - /** - * - * - *
-       * The type of placement.
-       * 
- * - * .google.container.v1.NodePool.PlacementPolicy.Type type = 1; - * - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(com.google.container.v1.NodePool.PlacementPolicy.Type value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * The type of placement.
-       * 
- * - * .google.container.v1.NodePool.PlacementPolicy.Type type = 1; - * - * @return This builder for chaining. - */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000001); - type_ = 0; - onChanged(); - return this; - } - - private java.lang.Object tpuTopology_ = ""; - /** - * - * - *
-       * Optional. TPU placement topology for pod slice node pool.
-       * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
-       * 
- * - * string tpu_topology = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The tpuTopology. - */ - public java.lang.String getTpuTopology() { - java.lang.Object ref = tpuTopology_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tpuTopology_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Optional. TPU placement topology for pod slice node pool.
-       * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
-       * 
- * - * string tpu_topology = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for tpuTopology. - */ - public com.google.protobuf.ByteString getTpuTopologyBytes() { - java.lang.Object ref = tpuTopology_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tpuTopology_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Optional. TPU placement topology for pod slice node pool.
-       * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
-       * 
- * - * string tpu_topology = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The tpuTopology to set. - * @return This builder for chaining. - */ - public Builder setTpuTopology(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - tpuTopology_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. TPU placement topology for pod slice node pool.
-       * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
-       * 
- * - * string tpu_topology = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearTpuTopology() { - tpuTopology_ = getDefaultInstance().getTpuTopology(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. TPU placement topology for pod slice node pool.
-       * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
-       * 
- * - * string tpu_topology = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for tpuTopology to set. - * @return This builder for chaining. - */ - public Builder setTpuTopologyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - tpuTopology_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object policyName_ = ""; - /** - * - * - *
-       * If set, refers to the name of a custom resource policy supplied by the
-       * user. The resource policy must be in the same project and region as the
-       * node pool. If not found, InvalidArgument error is returned.
-       * 
- * - * string policy_name = 3; - * - * @return The policyName. - */ - public java.lang.String getPolicyName() { - java.lang.Object ref = policyName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - policyName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * If set, refers to the name of a custom resource policy supplied by the
-       * user. The resource policy must be in the same project and region as the
-       * node pool. If not found, InvalidArgument error is returned.
-       * 
- * - * string policy_name = 3; - * - * @return The bytes for policyName. - */ - public com.google.protobuf.ByteString getPolicyNameBytes() { - java.lang.Object ref = policyName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - policyName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * If set, refers to the name of a custom resource policy supplied by the
-       * user. The resource policy must be in the same project and region as the
-       * node pool. If not found, InvalidArgument error is returned.
-       * 
- * - * string policy_name = 3; - * - * @param value The policyName to set. - * @return This builder for chaining. - */ - public Builder setPolicyName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - policyName_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-       * If set, refers to the name of a custom resource policy supplied by the
-       * user. The resource policy must be in the same project and region as the
-       * node pool. If not found, InvalidArgument error is returned.
-       * 
- * - * string policy_name = 3; - * - * @return This builder for chaining. - */ - public Builder clearPolicyName() { - policyName_ = getDefaultInstance().getPolicyName(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-       * If set, refers to the name of a custom resource policy supplied by the
-       * user. The resource policy must be in the same project and region as the
-       * node pool. If not found, InvalidArgument error is returned.
-       * 
- * - * string policy_name = 3; - * - * @param value The bytes for policyName to set. - * @return This builder for chaining. - */ - public Builder setPolicyNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - policyName_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.NodePool.PlacementPolicy) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.NodePool.PlacementPolicy) - private static final com.google.container.v1.NodePool.PlacementPolicy DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.NodePool.PlacementPolicy(); - } - - public static com.google.container.v1.NodePool.PlacementPolicy getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PlacementPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.NodePool.PlacementPolicy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface QueuedProvisioningOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.NodePool.QueuedProvisioning) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Denotes that this nodepool is QRM specific, meaning nodes can be only
-     * obtained through queuing via the Cluster Autoscaler ProvisioningRequest
-     * API.
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); - } - /** - * - * - *
-   * QueuedProvisioning defines the queued provisioning used by the node pool.
-   * 
- * - * Protobuf type {@code google.container.v1.NodePool.QueuedProvisioning} - */ - public static final class QueuedProvisioning extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.NodePool.QueuedProvisioning) - QueuedProvisioningOrBuilder { - private static final long serialVersionUID = 0L; - // Use QueuedProvisioning.newBuilder() to construct. - private QueuedProvisioning(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private QueuedProvisioning() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new QueuedProvisioning(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePool_QueuedProvisioning_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePool_QueuedProvisioning_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodePool.QueuedProvisioning.class, - com.google.container.v1.NodePool.QueuedProvisioning.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-     * Denotes that this nodepool is QRM specific, meaning nodes can be only
-     * obtained through queuing via the Cluster Autoscaler ProvisioningRequest
-     * API.
-     * 
- * - * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.NodePool.QueuedProvisioning)) { - return super.equals(obj); - } - com.google.container.v1.NodePool.QueuedProvisioning other = - (com.google.container.v1.NodePool.QueuedProvisioning) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.NodePool.QueuedProvisioning parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodePool.QueuedProvisioning parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodePool.QueuedProvisioning parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodePool.QueuedProvisioning parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodePool.QueuedProvisioning parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodePool.QueuedProvisioning parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodePool.QueuedProvisioning parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodePool.QueuedProvisioning parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NodePool.QueuedProvisioning parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodePool.QueuedProvisioning parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NodePool.QueuedProvisioning parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodePool.QueuedProvisioning parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.container.v1.NodePool.QueuedProvisioning prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * QueuedProvisioning defines the queued provisioning used by the node pool.
-     * 
- * - * Protobuf type {@code google.container.v1.NodePool.QueuedProvisioning} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.NodePool.QueuedProvisioning) - com.google.container.v1.NodePool.QueuedProvisioningOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePool_QueuedProvisioning_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePool_QueuedProvisioning_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodePool.QueuedProvisioning.class, - com.google.container.v1.NodePool.QueuedProvisioning.Builder.class); - } - - // Construct using com.google.container.v1.NodePool.QueuedProvisioning.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enabled_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePool_QueuedProvisioning_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NodePool.QueuedProvisioning getDefaultInstanceForType() { - return com.google.container.v1.NodePool.QueuedProvisioning.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NodePool.QueuedProvisioning build() { - com.google.container.v1.NodePool.QueuedProvisioning result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NodePool.QueuedProvisioning buildPartial() { - com.google.container.v1.NodePool.QueuedProvisioning result = - new com.google.container.v1.NodePool.QueuedProvisioning(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.NodePool.QueuedProvisioning result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NodePool.QueuedProvisioning) { - return mergeFrom((com.google.container.v1.NodePool.QueuedProvisioning) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NodePool.QueuedProvisioning other) { - if (other == com.google.container.v1.NodePool.QueuedProvisioning.getDefaultInstance()) - return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean enabled_; - /** - * - * - *
-       * Denotes that this nodepool is QRM specific, meaning nodes can be only
-       * obtained through queuing via the Cluster Autoscaler ProvisioningRequest
-       * API.
-       * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-       * Denotes that this nodepool is QRM specific, meaning nodes can be only
-       * obtained through queuing via the Cluster Autoscaler ProvisioningRequest
-       * API.
-       * 
- * - * bool enabled = 1; - * - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * Denotes that this nodepool is QRM specific, meaning nodes can be only
-       * obtained through queuing via the Cluster Autoscaler ProvisioningRequest
-       * API.
-       * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - enabled_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.NodePool.QueuedProvisioning) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.NodePool.QueuedProvisioning) - private static final com.google.container.v1.NodePool.QueuedProvisioning DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.NodePool.QueuedProvisioning(); - } - - public static com.google.container.v1.NodePool.QueuedProvisioning getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueuedProvisioning parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.NodePool.QueuedProvisioning getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - 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.v1.NodeConfig config_; - /** - * - * - *
-   * The node configuration of the pool.
-   * 
- * - * .google.container.v1.NodeConfig config = 2; - * - * @return Whether the config field is set. - */ - @java.lang.Override - public boolean hasConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * The node configuration of the pool.
-   * 
- * - * .google.container.v1.NodeConfig config = 2; - * - * @return The config. - */ - @java.lang.Override - public com.google.container.v1.NodeConfig getConfig() { - return config_ == null ? com.google.container.v1.NodeConfig.getDefaultInstance() : config_; - } - /** - * - * - *
-   * The node configuration of the pool.
-   * 
- * - * .google.container.v1.NodeConfig config = 2; - */ - @java.lang.Override - public com.google.container.v1.NodeConfigOrBuilder getConfigOrBuilder() { - return config_ == null ? com.google.container.v1.NodeConfig.getDefaultInstance() : config_; - } - - public static final int INITIAL_NODE_COUNT_FIELD_NUMBER = 3; - private int initialNodeCount_ = 0; - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList locations_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * 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 NETWORK_CONFIG_FIELD_NUMBER = 14; - private com.google.container.v1.NodeNetworkConfig networkConfig_; - /** - * - * - *
-   * Networking configuration for this NodePool. If specified, it overrides the
-   * cluster-level defaults.
-   * 
- * - * .google.container.v1.NodeNetworkConfig network_config = 14; - * - * @return Whether the networkConfig field is set. - */ - @java.lang.Override - public boolean hasNetworkConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * Networking configuration for this NodePool. If specified, it overrides the
-   * cluster-level defaults.
-   * 
- * - * .google.container.v1.NodeNetworkConfig network_config = 14; - * - * @return The networkConfig. - */ - @java.lang.Override - public com.google.container.v1.NodeNetworkConfig getNetworkConfig() { - return networkConfig_ == null - ? com.google.container.v1.NodeNetworkConfig.getDefaultInstance() - : networkConfig_; - } - /** - * - * - *
-   * Networking configuration for this NodePool. If specified, it overrides the
-   * cluster-level defaults.
-   * 
- * - * .google.container.v1.NodeNetworkConfig network_config = 14; - */ - @java.lang.Override - public com.google.container.v1.NodeNetworkConfigOrBuilder getNetworkConfigOrBuilder() { - return networkConfig_ == null - ? com.google.container.v1.NodeNetworkConfig.getDefaultInstance() - : networkConfig_; - } - - public static final int SELF_LINK_FIELD_NUMBER = 100; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object version_ = ""; - /** - * - * - *
-   * The version of Kubernetes running on this NodePool's nodes. If unspecified,
-   * it defaults as described
-   * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version).
-   * 
- * - * 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 Kubernetes running on this NodePool's nodes. If unspecified,
-   * it defaults as described
-   * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version).
-   * 
- * - * 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; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList instanceGroupUrls_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * [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.
-   * During the node pool blue-green upgrade operation, the URLs contain both
-   * blue and green resources.
-   * 
- * - * 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.
-   * During the node pool blue-green upgrade operation, the URLs contain both
-   * blue and green resources.
-   * 
- * - * 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.
-   * During the node pool blue-green upgrade operation, the URLs contain both
-   * blue and green resources.
-   * 
- * - * 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.
-   * During the node pool blue-green upgrade operation, the URLs contain both
-   * blue and green resources.
-   * 
- * - * 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_ = 0; - /** - * - * - *
-   * [Output only] The status of the nodes in this pool instance.
-   * 
- * - * .google.container.v1.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.v1.NodePool.Status status = 103; - * - * @return The status. - */ - @java.lang.Override - public com.google.container.v1.NodePool.Status getStatus() { - com.google.container.v1.NodePool.Status result = - com.google.container.v1.NodePool.Status.forNumber(status_); - return result == null ? com.google.container.v1.NodePool.Status.UNRECOGNIZED : result; - } - - public static final int STATUS_MESSAGE_FIELD_NUMBER = 104; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3542 - * @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]; - * - * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3542 - * @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.v1.NodePoolAutoscaling autoscaling_; - /** - * - * - *
-   * Autoscaler configuration for this NodePool. Autoscaler is enabled
-   * only if a valid configuration is present.
-   * 
- * - * .google.container.v1.NodePoolAutoscaling autoscaling = 4; - * - * @return Whether the autoscaling field is set. - */ - @java.lang.Override - public boolean hasAutoscaling() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-   * Autoscaler configuration for this NodePool. Autoscaler is enabled
-   * only if a valid configuration is present.
-   * 
- * - * .google.container.v1.NodePoolAutoscaling autoscaling = 4; - * - * @return The autoscaling. - */ - @java.lang.Override - public com.google.container.v1.NodePoolAutoscaling getAutoscaling() { - return autoscaling_ == null - ? com.google.container.v1.NodePoolAutoscaling.getDefaultInstance() - : autoscaling_; - } - /** - * - * - *
-   * Autoscaler configuration for this NodePool. Autoscaler is enabled
-   * only if a valid configuration is present.
-   * 
- * - * .google.container.v1.NodePoolAutoscaling autoscaling = 4; - */ - @java.lang.Override - public com.google.container.v1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder() { - return autoscaling_ == null - ? com.google.container.v1.NodePoolAutoscaling.getDefaultInstance() - : autoscaling_; - } - - public static final int MANAGEMENT_FIELD_NUMBER = 5; - private com.google.container.v1.NodeManagement management_; - /** - * - * - *
-   * NodeManagement configuration for this NodePool.
-   * 
- * - * .google.container.v1.NodeManagement management = 5; - * - * @return Whether the management field is set. - */ - @java.lang.Override - public boolean hasManagement() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-   * NodeManagement configuration for this NodePool.
-   * 
- * - * .google.container.v1.NodeManagement management = 5; - * - * @return The management. - */ - @java.lang.Override - public com.google.container.v1.NodeManagement getManagement() { - return management_ == null - ? com.google.container.v1.NodeManagement.getDefaultInstance() - : management_; - } - /** - * - * - *
-   * NodeManagement configuration for this NodePool.
-   * 
- * - * .google.container.v1.NodeManagement management = 5; - */ - @java.lang.Override - public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() { - return management_ == null - ? com.google.container.v1.NodeManagement.getDefaultInstance() - : management_; - } - - public static final int MAX_PODS_CONSTRAINT_FIELD_NUMBER = 6; - private com.google.container.v1.MaxPodsConstraint maxPodsConstraint_; - /** - * - * - *
-   * The constraint on the maximum number of pods that can be run
-   * simultaneously on a node in the node pool.
-   * 
- * - * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; - * - * @return Whether the maxPodsConstraint field is set. - */ - @java.lang.Override - public boolean hasMaxPodsConstraint() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-   * The constraint on the maximum number of pods that can be run
-   * simultaneously on a node in the node pool.
-   * 
- * - * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; - * - * @return The maxPodsConstraint. - */ - @java.lang.Override - public com.google.container.v1.MaxPodsConstraint getMaxPodsConstraint() { - return maxPodsConstraint_ == null - ? com.google.container.v1.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.v1.MaxPodsConstraint max_pods_constraint = 6; - */ - @java.lang.Override - public com.google.container.v1.MaxPodsConstraintOrBuilder getMaxPodsConstraintOrBuilder() { - return maxPodsConstraint_ == null - ? com.google.container.v1.MaxPodsConstraint.getDefaultInstance() - : maxPodsConstraint_; - } - - public static final int CONDITIONS_FIELD_NUMBER = 105; - - @SuppressWarnings("serial") - private java.util.List conditions_; - /** - * - * - *
-   * Which conditions caused the current node pool state.
-   * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - @java.lang.Override - public java.util.List getConditionsList() { - return conditions_; - } - /** - * - * - *
-   * Which conditions caused the current node pool state.
-   * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - @java.lang.Override - public java.util.List - getConditionsOrBuilderList() { - return conditions_; - } - /** - * - * - *
-   * Which conditions caused the current node pool state.
-   * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - @java.lang.Override - public int getConditionsCount() { - return conditions_.size(); - } - /** - * - * - *
-   * Which conditions caused the current node pool state.
-   * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - @java.lang.Override - public com.google.container.v1.StatusCondition getConditions(int index) { - return conditions_.get(index); - } - /** - * - * - *
-   * Which conditions caused the current node pool state.
-   * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - @java.lang.Override - public com.google.container.v1.StatusConditionOrBuilder getConditionsOrBuilder(int index) { - return conditions_.get(index); - } - - public static final int POD_IPV4_CIDR_SIZE_FIELD_NUMBER = 7; - private int podIpv4CidrSize_ = 0; - /** - * - * - *
-   * [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.v1.NodePool.UpgradeSettings upgradeSettings_; - /** - * - * - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - * - * @return Whether the upgradeSettings field is set. - */ - @java.lang.Override - public boolean hasUpgradeSettings() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * - * - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - * - * @return The upgradeSettings. - */ - @java.lang.Override - public com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings() { - return upgradeSettings_ == null - ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() - : upgradeSettings_; - } - /** - * - * - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - */ - @java.lang.Override - public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { - return upgradeSettings_ == null - ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() - : upgradeSettings_; - } - - public static final int PLACEMENT_POLICY_FIELD_NUMBER = 108; - private com.google.container.v1.NodePool.PlacementPolicy placementPolicy_; - /** - * - * - *
-   * Specifies the node placement policy.
-   * 
- * - * .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; - * - * @return Whether the placementPolicy field is set. - */ - @java.lang.Override - public boolean hasPlacementPolicy() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * - * - *
-   * Specifies the node placement policy.
-   * 
- * - * .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; - * - * @return The placementPolicy. - */ - @java.lang.Override - public com.google.container.v1.NodePool.PlacementPolicy getPlacementPolicy() { - return placementPolicy_ == null - ? com.google.container.v1.NodePool.PlacementPolicy.getDefaultInstance() - : placementPolicy_; - } - /** - * - * - *
-   * Specifies the node placement policy.
-   * 
- * - * .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; - */ - @java.lang.Override - public com.google.container.v1.NodePool.PlacementPolicyOrBuilder getPlacementPolicyOrBuilder() { - return placementPolicy_ == null - ? com.google.container.v1.NodePool.PlacementPolicy.getDefaultInstance() - : placementPolicy_; - } - - public static final int UPDATE_INFO_FIELD_NUMBER = 109; - private com.google.container.v1.NodePool.UpdateInfo updateInfo_; - /** - * - * - *
-   * Output only. [Output only] Update info contains relevant information during
-   * a node pool update.
-   * 
- * - * - * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateInfo field is set. - */ - @java.lang.Override - public boolean hasUpdateInfo() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * - * - *
-   * Output only. [Output only] Update info contains relevant information during
-   * a node pool update.
-   * 
- * - * - * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateInfo. - */ - @java.lang.Override - public com.google.container.v1.NodePool.UpdateInfo getUpdateInfo() { - return updateInfo_ == null - ? com.google.container.v1.NodePool.UpdateInfo.getDefaultInstance() - : updateInfo_; - } - /** - * - * - *
-   * Output only. [Output only] Update info contains relevant information during
-   * a node pool update.
-   * 
- * - * - * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.container.v1.NodePool.UpdateInfoOrBuilder getUpdateInfoOrBuilder() { - return updateInfo_ == null - ? com.google.container.v1.NodePool.UpdateInfo.getDefaultInstance() - : updateInfo_; - } - - public static final int ETAG_FIELD_NUMBER = 110; - - @SuppressWarnings("serial") - private volatile java.lang.Object etag_ = ""; - /** - * - * - *
-   * This checksum is computed by the server based on the value of node pool
-   * fields, and may be sent on update requests to ensure the client has an
-   * up-to-date value before proceeding.
-   * 
- * - * string etag = 110; - * - * @return The etag. - */ - @java.lang.Override - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } - } - /** - * - * - *
-   * This checksum is computed by the server based on the value of node pool
-   * fields, and may be sent on update requests to ensure the client has an
-   * up-to-date value before proceeding.
-   * 
- * - * string etag = 110; - * - * @return The bytes for etag. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int QUEUED_PROVISIONING_FIELD_NUMBER = 112; - private com.google.container.v1.NodePool.QueuedProvisioning queuedProvisioning_; - /** - * - * - *
-   * Specifies the configuration of queued provisioning.
-   * 
- * - * .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; - * - * @return Whether the queuedProvisioning field is set. - */ - @java.lang.Override - public boolean hasQueuedProvisioning() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * - * - *
-   * Specifies the configuration of queued provisioning.
-   * 
- * - * .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; - * - * @return The queuedProvisioning. - */ - @java.lang.Override - public com.google.container.v1.NodePool.QueuedProvisioning getQueuedProvisioning() { - return queuedProvisioning_ == null - ? com.google.container.v1.NodePool.QueuedProvisioning.getDefaultInstance() - : queuedProvisioning_; - } - /** - * - * - *
-   * Specifies the configuration of queued provisioning.
-   * 
- * - * .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; - */ - @java.lang.Override - public com.google.container.v1.NodePool.QueuedProvisioningOrBuilder - getQueuedProvisioningOrBuilder() { - return queuedProvisioning_ == null - ? com.google.container.v1.NodePool.QueuedProvisioning.getDefaultInstance() - : queuedProvisioning_; - } - - public static final int BEST_EFFORT_PROVISIONING_FIELD_NUMBER = 113; - private com.google.container.v1.BestEffortProvisioning bestEffortProvisioning_; - /** - * - * - *
-   * Enable best effort provisioning for nodes
-   * 
- * - * .google.container.v1.BestEffortProvisioning best_effort_provisioning = 113; - * - * @return Whether the bestEffortProvisioning field is set. - */ - @java.lang.Override - public boolean hasBestEffortProvisioning() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * - * - *
-   * Enable best effort provisioning for nodes
-   * 
- * - * .google.container.v1.BestEffortProvisioning best_effort_provisioning = 113; - * - * @return The bestEffortProvisioning. - */ - @java.lang.Override - public com.google.container.v1.BestEffortProvisioning getBestEffortProvisioning() { - return bestEffortProvisioning_ == null - ? com.google.container.v1.BestEffortProvisioning.getDefaultInstance() - : bestEffortProvisioning_; - } - /** - * - * - *
-   * Enable best effort provisioning for nodes
-   * 
- * - * .google.container.v1.BestEffortProvisioning best_effort_provisioning = 113; - */ - @java.lang.Override - public com.google.container.v1.BestEffortProvisioningOrBuilder - getBestEffortProvisioningOrBuilder() { - return bestEffortProvisioning_ == null - ? com.google.container.v1.BestEffortProvisioning.getDefaultInstance() - : bestEffortProvisioning_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getConfig()); - } - if (initialNodeCount_ != 0) { - output.writeInt32(3, initialNodeCount_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(4, getAutoscaling()); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(5, getManagement()); - } - if (((bitField0_ & 0x00000010) != 0)) { - 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 (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(14, getNetworkConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 100, selfLink_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { - 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.v1.NodePool.Status.STATUS_UNSPECIFIED.getNumber()) { - output.writeEnum(103, status_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 104, statusMessage_); - } - for (int i = 0; i < conditions_.size(); i++) { - output.writeMessage(105, conditions_.get(i)); - } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeMessage(107, getUpgradeSettings()); - } - if (((bitField0_ & 0x00000040) != 0)) { - output.writeMessage(108, getPlacementPolicy()); - } - if (((bitField0_ & 0x00000080) != 0)) { - output.writeMessage(109, getUpdateInfo()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 110, etag_); - } - if (((bitField0_ & 0x00000100) != 0)) { - output.writeMessage(112, getQueuedProvisioning()); - } - if (((bitField0_ & 0x00000200) != 0)) { - output.writeMessage(113, getBestEffortProvisioning()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConfig()); - } - if (initialNodeCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, initialNodeCount_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAutoscaling()); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getManagement()); - } - if (((bitField0_ & 0x00000010) != 0)) { - 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 (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getNetworkConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, selfLink_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { - 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.v1.NodePool.Status.STATUS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(103, status_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { - 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 (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(107, getUpgradeSettings()); - } - if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(108, getPlacementPolicy()); - } - if (((bitField0_ & 0x00000080) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(109, getUpdateInfo()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(110, etag_); - } - if (((bitField0_ & 0x00000100) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(112, getQueuedProvisioning()); - } - if (((bitField0_ & 0x00000200) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 113, getBestEffortProvisioning()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.NodePool)) { - return super.equals(obj); - } - com.google.container.v1.NodePool other = (com.google.container.v1.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 (hasNetworkConfig() != other.hasNetworkConfig()) return false; - if (hasNetworkConfig()) { - if (!getNetworkConfig().equals(other.getNetworkConfig())) return false; - } - if (!getSelfLink().equals(other.getSelfLink())) return false; - if (!getVersion().equals(other.getVersion())) return false; - if (!getInstanceGroupUrlsList().equals(other.getInstanceGroupUrlsList())) return false; - 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 (hasPlacementPolicy() != other.hasPlacementPolicy()) return false; - if (hasPlacementPolicy()) { - if (!getPlacementPolicy().equals(other.getPlacementPolicy())) return false; - } - if (hasUpdateInfo() != other.hasUpdateInfo()) return false; - if (hasUpdateInfo()) { - if (!getUpdateInfo().equals(other.getUpdateInfo())) return false; - } - if (!getEtag().equals(other.getEtag())) return false; - if (hasQueuedProvisioning() != other.hasQueuedProvisioning()) return false; - if (hasQueuedProvisioning()) { - if (!getQueuedProvisioning().equals(other.getQueuedProvisioning())) return false; - } - if (hasBestEffortProvisioning() != other.hasBestEffortProvisioning()) return false; - if (hasBestEffortProvisioning()) { - if (!getBestEffortProvisioning().equals(other.getBestEffortProvisioning())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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(); - } - if (hasNetworkConfig()) { - hash = (37 * hash) + NETWORK_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getNetworkConfig().hashCode(); - } - hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; - hash = (53 * hash) + getSelfLink().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - 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(); - } - if (hasPlacementPolicy()) { - hash = (37 * hash) + PLACEMENT_POLICY_FIELD_NUMBER; - hash = (53 * hash) + getPlacementPolicy().hashCode(); - } - if (hasUpdateInfo()) { - hash = (37 * hash) + UPDATE_INFO_FIELD_NUMBER; - hash = (53 * hash) + getUpdateInfo().hashCode(); - } - hash = (37 * hash) + ETAG_FIELD_NUMBER; - hash = (53 * hash) + getEtag().hashCode(); - if (hasQueuedProvisioning()) { - hash = (37 * hash) + QUEUED_PROVISIONING_FIELD_NUMBER; - hash = (53 * hash) + getQueuedProvisioning().hashCode(); - } - if (hasBestEffortProvisioning()) { - hash = (37 * hash) + BEST_EFFORT_PROVISIONING_FIELD_NUMBER; - hash = (53 * hash) + getBestEffortProvisioning().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.NodePool parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.NodePool parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.NodePool parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodePool parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodePool parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.NodePool parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.NodePool parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodePool parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.NodePool prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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.v1.NodePool} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.NodePool) - com.google.container.v1.NodePoolOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePool_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePool_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodePool.class, - com.google.container.v1.NodePool.Builder.class); - } - - // Construct using com.google.container.v1.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) { - getConfigFieldBuilder(); - getNetworkConfigFieldBuilder(); - getAutoscalingFieldBuilder(); - getManagementFieldBuilder(); - getMaxPodsConstraintFieldBuilder(); - getConditionsFieldBuilder(); - getUpgradeSettingsFieldBuilder(); - getPlacementPolicyFieldBuilder(); - getUpdateInfoFieldBuilder(); - getQueuedProvisioningFieldBuilder(); - getBestEffortProvisioningFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - config_ = null; - if (configBuilder_ != null) { - configBuilder_.dispose(); - configBuilder_ = null; - } - initialNodeCount_ = 0; - locations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - networkConfig_ = null; - if (networkConfigBuilder_ != null) { - networkConfigBuilder_.dispose(); - networkConfigBuilder_ = null; - } - selfLink_ = ""; - version_ = ""; - instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - status_ = 0; - statusMessage_ = ""; - autoscaling_ = null; - if (autoscalingBuilder_ != null) { - autoscalingBuilder_.dispose(); - autoscalingBuilder_ = null; - } - management_ = null; - if (managementBuilder_ != null) { - managementBuilder_.dispose(); - managementBuilder_ = null; - } - maxPodsConstraint_ = null; - if (maxPodsConstraintBuilder_ != null) { - maxPodsConstraintBuilder_.dispose(); - maxPodsConstraintBuilder_ = null; - } - if (conditionsBuilder_ == null) { - conditions_ = java.util.Collections.emptyList(); - } else { - conditions_ = null; - conditionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00002000); - podIpv4CidrSize_ = 0; - upgradeSettings_ = null; - if (upgradeSettingsBuilder_ != null) { - upgradeSettingsBuilder_.dispose(); - upgradeSettingsBuilder_ = null; - } - placementPolicy_ = null; - if (placementPolicyBuilder_ != null) { - placementPolicyBuilder_.dispose(); - placementPolicyBuilder_ = null; - } - updateInfo_ = null; - if (updateInfoBuilder_ != null) { - updateInfoBuilder_.dispose(); - updateInfoBuilder_ = null; - } - etag_ = ""; - queuedProvisioning_ = null; - if (queuedProvisioningBuilder_ != null) { - queuedProvisioningBuilder_.dispose(); - queuedProvisioningBuilder_ = null; - } - bestEffortProvisioning_ = null; - if (bestEffortProvisioningBuilder_ != null) { - bestEffortProvisioningBuilder_.dispose(); - bestEffortProvisioningBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePool_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NodePool getDefaultInstanceForType() { - return com.google.container.v1.NodePool.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NodePool build() { - com.google.container.v1.NodePool result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NodePool buildPartial() { - com.google.container.v1.NodePool result = new com.google.container.v1.NodePool(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.container.v1.NodePool result) { - if (conditionsBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0)) { - conditions_ = java.util.Collections.unmodifiableList(conditions_); - bitField0_ = (bitField0_ & ~0x00002000); - } - result.conditions_ = conditions_; - } else { - result.conditions_ = conditionsBuilder_.build(); - } - } - - private void buildPartial0(com.google.container.v1.NodePool result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.config_ = configBuilder_ == null ? config_ : configBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.initialNodeCount_ = initialNodeCount_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - locations_.makeImmutable(); - result.locations_ = locations_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.networkConfig_ = - networkConfigBuilder_ == null ? networkConfig_ : networkConfigBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.selfLink_ = selfLink_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.version_ = version_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - instanceGroupUrls_.makeImmutable(); - result.instanceGroupUrls_ = instanceGroupUrls_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.status_ = status_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.statusMessage_ = statusMessage_; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.autoscaling_ = - autoscalingBuilder_ == null ? autoscaling_ : autoscalingBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.management_ = managementBuilder_ == null ? management_ : managementBuilder_.build(); - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.maxPodsConstraint_ = - maxPodsConstraintBuilder_ == null - ? maxPodsConstraint_ - : maxPodsConstraintBuilder_.build(); - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.podIpv4CidrSize_ = podIpv4CidrSize_; - } - if (((from_bitField0_ & 0x00008000) != 0)) { - result.upgradeSettings_ = - upgradeSettingsBuilder_ == null ? upgradeSettings_ : upgradeSettingsBuilder_.build(); - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00010000) != 0)) { - result.placementPolicy_ = - placementPolicyBuilder_ == null ? placementPolicy_ : placementPolicyBuilder_.build(); - to_bitField0_ |= 0x00000040; - } - if (((from_bitField0_ & 0x00020000) != 0)) { - result.updateInfo_ = updateInfoBuilder_ == null ? updateInfo_ : updateInfoBuilder_.build(); - to_bitField0_ |= 0x00000080; - } - if (((from_bitField0_ & 0x00040000) != 0)) { - result.etag_ = etag_; - } - if (((from_bitField0_ & 0x00080000) != 0)) { - result.queuedProvisioning_ = - queuedProvisioningBuilder_ == null - ? queuedProvisioning_ - : queuedProvisioningBuilder_.build(); - to_bitField0_ |= 0x00000100; - } - if (((from_bitField0_ & 0x00100000) != 0)) { - result.bestEffortProvisioning_ = - bestEffortProvisioningBuilder_ == null - ? bestEffortProvisioning_ - : bestEffortProvisioningBuilder_.build(); - to_bitField0_ |= 0x00000200; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NodePool) { - return mergeFrom((com.google.container.v1.NodePool) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NodePool other) { - if (other == com.google.container.v1.NodePool.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - 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_ |= 0x00000008; - } else { - ensureLocationsIsMutable(); - locations_.addAll(other.locations_); - } - onChanged(); - } - if (other.hasNetworkConfig()) { - mergeNetworkConfig(other.getNetworkConfig()); - } - if (!other.getSelfLink().isEmpty()) { - selfLink_ = other.selfLink_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - bitField0_ |= 0x00000040; - onChanged(); - } - if (!other.instanceGroupUrls_.isEmpty()) { - if (instanceGroupUrls_.isEmpty()) { - instanceGroupUrls_ = other.instanceGroupUrls_; - bitField0_ |= 0x00000080; - } else { - ensureInstanceGroupUrlsIsMutable(); - instanceGroupUrls_.addAll(other.instanceGroupUrls_); - } - onChanged(); - } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); - } - if (!other.getStatusMessage().isEmpty()) { - statusMessage_ = other.statusMessage_; - bitField0_ |= 0x00000200; - 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_ & ~0x00002000); - } else { - ensureConditionsIsMutable(); - conditions_.addAll(other.conditions_); - } - onChanged(); - } - } else { - if (!other.conditions_.isEmpty()) { - if (conditionsBuilder_.isEmpty()) { - conditionsBuilder_.dispose(); - conditionsBuilder_ = null; - conditions_ = other.conditions_; - bitField0_ = (bitField0_ & ~0x00002000); - 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()); - } - if (other.hasPlacementPolicy()) { - mergePlacementPolicy(other.getPlacementPolicy()); - } - if (other.hasUpdateInfo()) { - mergeUpdateInfo(other.getUpdateInfo()); - } - if (!other.getEtag().isEmpty()) { - etag_ = other.etag_; - bitField0_ |= 0x00040000; - onChanged(); - } - if (other.hasQueuedProvisioning()) { - mergeQueuedProvisioning(other.getQueuedProvisioning()); - } - if (other.hasBestEffortProvisioning()) { - mergeBestEffortProvisioning(other.getBestEffortProvisioning()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - initialNodeCount_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - input.readMessage(getAutoscalingFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; - break; - } // case 34 - case 42: - { - input.readMessage(getManagementFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; - break; - } // case 42 - case 50: - { - input.readMessage( - getMaxPodsConstraintFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; - break; - } // case 50 - case 56: - { - podIpv4CidrSize_ = input.readInt32(); - bitField0_ |= 0x00004000; - break; - } // case 56 - case 106: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureLocationsIsMutable(); - locations_.add(s); - break; - } // case 106 - case 114: - { - input.readMessage(getNetworkConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 114 - case 802: - { - selfLink_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 802 - case 810: - { - version_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 810 - case 818: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureInstanceGroupUrlsIsMutable(); - instanceGroupUrls_.add(s); - break; - } // case 818 - case 824: - { - status_ = input.readEnum(); - bitField0_ |= 0x00000100; - break; - } // case 824 - case 834: - { - statusMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; - break; - } // case 834 - case 842: - { - com.google.container.v1.StatusCondition m = - input.readMessage( - com.google.container.v1.StatusCondition.parser(), extensionRegistry); - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - conditions_.add(m); - } else { - conditionsBuilder_.addMessage(m); - } - break; - } // case 842 - case 858: - { - input.readMessage(getUpgradeSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00008000; - break; - } // case 858 - case 866: - { - input.readMessage(getPlacementPolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; - break; - } // case 866 - case 874: - { - input.readMessage(getUpdateInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00020000; - break; - } // case 874 - case 882: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00040000; - break; - } // case 882 - case 898: - { - input.readMessage( - getQueuedProvisioningFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00080000; - break; - } // case 898 - case 906: - { - input.readMessage( - getBestEffortProvisioningFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00100000; - break; - } // case 906 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the node pool.
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.container.v1.NodeConfig config_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeConfig, - com.google.container.v1.NodeConfig.Builder, - com.google.container.v1.NodeConfigOrBuilder> - configBuilder_; - /** - * - * - *
-     * The node configuration of the pool.
-     * 
- * - * .google.container.v1.NodeConfig config = 2; - * - * @return Whether the config field is set. - */ - public boolean hasConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * The node configuration of the pool.
-     * 
- * - * .google.container.v1.NodeConfig config = 2; - * - * @return The config. - */ - public com.google.container.v1.NodeConfig getConfig() { - if (configBuilder_ == null) { - return config_ == null ? com.google.container.v1.NodeConfig.getDefaultInstance() : config_; - } else { - return configBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The node configuration of the pool.
-     * 
- * - * .google.container.v1.NodeConfig config = 2; - */ - public Builder setConfig(com.google.container.v1.NodeConfig value) { - if (configBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - config_ = value; - } else { - configBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * The node configuration of the pool.
-     * 
- * - * .google.container.v1.NodeConfig config = 2; - */ - public Builder setConfig(com.google.container.v1.NodeConfig.Builder builderForValue) { - if (configBuilder_ == null) { - config_ = builderForValue.build(); - } else { - configBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * The node configuration of the pool.
-     * 
- * - * .google.container.v1.NodeConfig config = 2; - */ - public Builder mergeConfig(com.google.container.v1.NodeConfig value) { - if (configBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && config_ != null - && config_ != com.google.container.v1.NodeConfig.getDefaultInstance()) { - getConfigBuilder().mergeFrom(value); - } else { - config_ = value; - } - } else { - configBuilder_.mergeFrom(value); - } - if (config_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The node configuration of the pool.
-     * 
- * - * .google.container.v1.NodeConfig config = 2; - */ - public Builder clearConfig() { - bitField0_ = (bitField0_ & ~0x00000002); - config_ = null; - if (configBuilder_ != null) { - configBuilder_.dispose(); - configBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The node configuration of the pool.
-     * 
- * - * .google.container.v1.NodeConfig config = 2; - */ - public com.google.container.v1.NodeConfig.Builder getConfigBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The node configuration of the pool.
-     * 
- * - * .google.container.v1.NodeConfig config = 2; - */ - public com.google.container.v1.NodeConfigOrBuilder getConfigOrBuilder() { - if (configBuilder_ != null) { - return configBuilder_.getMessageOrBuilder(); - } else { - return config_ == null ? com.google.container.v1.NodeConfig.getDefaultInstance() : config_; - } - } - /** - * - * - *
-     * The node configuration of the pool.
-     * 
- * - * .google.container.v1.NodeConfig config = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeConfig, - com.google.container.v1.NodeConfig.Builder, - com.google.container.v1.NodeConfigOrBuilder> - getConfigFieldBuilder() { - if (configBuilder_ == null) { - configBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeConfig, - com.google.container.v1.NodeConfig.Builder, - com.google.container.v1.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; - bitField0_ |= 0x00000004; - 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() { - bitField0_ = (bitField0_ & ~0x00000004); - initialNodeCount_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList locations_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureLocationsIsMutable() { - if (!locations_.isModifiable()) { - locations_ = new com.google.protobuf.LazyStringArrayList(locations_); - } - bitField0_ |= 0x00000008; - } - /** - * - * - *
-     * 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() { - locations_.makeImmutable(); - 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); - } - /** - * - * - *
-     * 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); - bitField0_ |= 0x00000008; - 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); - bitField0_ |= 0x00000008; - 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_); - bitField0_ |= 0x00000008; - 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.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - ; - 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); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private com.google.container.v1.NodeNetworkConfig networkConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeNetworkConfig, - com.google.container.v1.NodeNetworkConfig.Builder, - com.google.container.v1.NodeNetworkConfigOrBuilder> - networkConfigBuilder_; - /** - * - * - *
-     * Networking configuration for this NodePool. If specified, it overrides the
-     * cluster-level defaults.
-     * 
- * - * .google.container.v1.NodeNetworkConfig network_config = 14; - * - * @return Whether the networkConfig field is set. - */ - public boolean hasNetworkConfig() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-     * Networking configuration for this NodePool. If specified, it overrides the
-     * cluster-level defaults.
-     * 
- * - * .google.container.v1.NodeNetworkConfig network_config = 14; - * - * @return The networkConfig. - */ - public com.google.container.v1.NodeNetworkConfig getNetworkConfig() { - if (networkConfigBuilder_ == null) { - return networkConfig_ == null - ? com.google.container.v1.NodeNetworkConfig.getDefaultInstance() - : networkConfig_; - } else { - return networkConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Networking configuration for this NodePool. If specified, it overrides the
-     * cluster-level defaults.
-     * 
- * - * .google.container.v1.NodeNetworkConfig network_config = 14; - */ - public Builder setNetworkConfig(com.google.container.v1.NodeNetworkConfig value) { - if (networkConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - networkConfig_ = value; - } else { - networkConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Networking configuration for this NodePool. If specified, it overrides the
-     * cluster-level defaults.
-     * 
- * - * .google.container.v1.NodeNetworkConfig network_config = 14; - */ - public Builder setNetworkConfig( - com.google.container.v1.NodeNetworkConfig.Builder builderForValue) { - if (networkConfigBuilder_ == null) { - networkConfig_ = builderForValue.build(); - } else { - networkConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Networking configuration for this NodePool. If specified, it overrides the
-     * cluster-level defaults.
-     * 
- * - * .google.container.v1.NodeNetworkConfig network_config = 14; - */ - public Builder mergeNetworkConfig(com.google.container.v1.NodeNetworkConfig value) { - if (networkConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && networkConfig_ != null - && networkConfig_ != com.google.container.v1.NodeNetworkConfig.getDefaultInstance()) { - getNetworkConfigBuilder().mergeFrom(value); - } else { - networkConfig_ = value; - } - } else { - networkConfigBuilder_.mergeFrom(value); - } - if (networkConfig_ != null) { - bitField0_ |= 0x00000010; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Networking configuration for this NodePool. If specified, it overrides the
-     * cluster-level defaults.
-     * 
- * - * .google.container.v1.NodeNetworkConfig network_config = 14; - */ - public Builder clearNetworkConfig() { - bitField0_ = (bitField0_ & ~0x00000010); - networkConfig_ = null; - if (networkConfigBuilder_ != null) { - networkConfigBuilder_.dispose(); - networkConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Networking configuration for this NodePool. If specified, it overrides the
-     * cluster-level defaults.
-     * 
- * - * .google.container.v1.NodeNetworkConfig network_config = 14; - */ - public com.google.container.v1.NodeNetworkConfig.Builder getNetworkConfigBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getNetworkConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Networking configuration for this NodePool. If specified, it overrides the
-     * cluster-level defaults.
-     * 
- * - * .google.container.v1.NodeNetworkConfig network_config = 14; - */ - public com.google.container.v1.NodeNetworkConfigOrBuilder getNetworkConfigOrBuilder() { - if (networkConfigBuilder_ != null) { - return networkConfigBuilder_.getMessageOrBuilder(); - } else { - return networkConfig_ == null - ? com.google.container.v1.NodeNetworkConfig.getDefaultInstance() - : networkConfig_; - } - } - /** - * - * - *
-     * Networking configuration for this NodePool. If specified, it overrides the
-     * cluster-level defaults.
-     * 
- * - * .google.container.v1.NodeNetworkConfig network_config = 14; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeNetworkConfig, - com.google.container.v1.NodeNetworkConfig.Builder, - com.google.container.v1.NodeNetworkConfigOrBuilder> - getNetworkConfigFieldBuilder() { - if (networkConfigBuilder_ == null) { - networkConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeNetworkConfig, - com.google.container.v1.NodeNetworkConfig.Builder, - com.google.container.v1.NodeNetworkConfigOrBuilder>( - getNetworkConfig(), getParentForChildren(), isClean()); - networkConfig_ = null; - } - return networkConfigBuilder_; - } - - private java.lang.Object selfLink_ = ""; - /** - * - * - *
-     * [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; - bitField0_ |= 0x00000020; - 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(); - bitField0_ = (bitField0_ & ~0x00000020); - 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; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - private java.lang.Object version_ = ""; - /** - * - * - *
-     * The version of Kubernetes running on this NodePool's nodes. If unspecified,
-     * it defaults as described
-     * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version).
-     * 
- * - * 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 Kubernetes running on this NodePool's nodes. If unspecified,
-     * it defaults as described
-     * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version).
-     * 
- * - * 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 Kubernetes running on this NodePool's nodes. If unspecified,
-     * it defaults as described
-     * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version).
-     * 
- * - * 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; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-     * The version of Kubernetes running on this NodePool's nodes. If unspecified,
-     * it defaults as described
-     * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version).
-     * 
- * - * string version = 101; - * - * @return This builder for chaining. - */ - public Builder clearVersion() { - version_ = getDefaultInstance().getVersion(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; - } - /** - * - * - *
-     * The version of Kubernetes running on this NodePool's nodes. If unspecified,
-     * it defaults as described
-     * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version).
-     * 
- * - * 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; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList instanceGroupUrls_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureInstanceGroupUrlsIsMutable() { - if (!instanceGroupUrls_.isModifiable()) { - instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(instanceGroupUrls_); - } - bitField0_ |= 0x00000080; - } - /** - * - * - *
-     * [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.
-     * During the node pool blue-green upgrade operation, the URLs contain both
-     * blue and green resources.
-     * 
- * - * repeated string instance_group_urls = 102; - * - * @return A list containing the instanceGroupUrls. - */ - public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { - instanceGroupUrls_.makeImmutable(); - 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.
-     * During the node pool blue-green upgrade operation, the URLs contain both
-     * blue and green resources.
-     * 
- * - * 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.
-     * During the node pool blue-green upgrade operation, the URLs contain both
-     * blue and green resources.
-     * 
- * - * 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.
-     * During the node pool blue-green upgrade operation, the URLs contain both
-     * blue and green resources.
-     * 
- * - * 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.
-     * During the node pool blue-green upgrade operation, the URLs contain both
-     * blue and green resources.
-     * 
- * - * 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); - bitField0_ |= 0x00000080; - 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.
-     * During the node pool blue-green upgrade operation, the URLs contain both
-     * blue and green resources.
-     * 
- * - * 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); - bitField0_ |= 0x00000080; - 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.
-     * During the node pool blue-green upgrade operation, the URLs contain both
-     * blue and green resources.
-     * 
- * - * 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_); - bitField0_ |= 0x00000080; - 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.
-     * During the node pool blue-green upgrade operation, the URLs contain both
-     * blue and green resources.
-     * 
- * - * repeated string instance_group_urls = 102; - * - * @return This builder for chaining. - */ - public Builder clearInstanceGroupUrls() { - instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - ; - 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.
-     * During the node pool blue-green upgrade operation, the URLs contain both
-     * blue and green resources.
-     * 
- * - * 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); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - - private int status_ = 0; - /** - * - * - *
-     * [Output only] The status of the nodes in this pool instance.
-     * 
- * - * .google.container.v1.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.v1.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; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] The status of the nodes in this pool instance.
-     * 
- * - * .google.container.v1.NodePool.Status status = 103; - * - * @return The status. - */ - @java.lang.Override - public com.google.container.v1.NodePool.Status getStatus() { - com.google.container.v1.NodePool.Status result = - com.google.container.v1.NodePool.Status.forNumber(status_); - return result == null ? com.google.container.v1.NodePool.Status.UNRECOGNIZED : result; - } - /** - * - * - *
-     * [Output only] The status of the nodes in this pool instance.
-     * 
- * - * .google.container.v1.NodePool.Status status = 103; - * - * @param value The status to set. - * @return This builder for chaining. - */ - public Builder setStatus(com.google.container.v1.NodePool.Status value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; - status_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] The status of the nodes in this pool instance.
-     * 
- * - * .google.container.v1.NodePool.Status status = 103; - * - * @return This builder for chaining. - */ - public Builder clearStatus() { - bitField0_ = (bitField0_ & ~0x00000100); - 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]; - * - * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3542 - * @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]; - * - * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3542 - * @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]; - * - * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3542 - * @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; - bitField0_ |= 0x00000200; - 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]; - * - * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3542 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearStatusMessage() { - statusMessage_ = getDefaultInstance().getStatusMessage(); - bitField0_ = (bitField0_ & ~0x00000200); - 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]; - * - * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3542 - * @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; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - - private com.google.container.v1.NodePoolAutoscaling autoscaling_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePoolAutoscaling, - com.google.container.v1.NodePoolAutoscaling.Builder, - com.google.container.v1.NodePoolAutoscalingOrBuilder> - autoscalingBuilder_; - /** - * - * - *
-     * Autoscaler configuration for this NodePool. Autoscaler is enabled
-     * only if a valid configuration is present.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling autoscaling = 4; - * - * @return Whether the autoscaling field is set. - */ - public boolean hasAutoscaling() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - * - * - *
-     * Autoscaler configuration for this NodePool. Autoscaler is enabled
-     * only if a valid configuration is present.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling autoscaling = 4; - * - * @return The autoscaling. - */ - public com.google.container.v1.NodePoolAutoscaling getAutoscaling() { - if (autoscalingBuilder_ == null) { - return autoscaling_ == null - ? com.google.container.v1.NodePoolAutoscaling.getDefaultInstance() - : autoscaling_; - } else { - return autoscalingBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Autoscaler configuration for this NodePool. Autoscaler is enabled
-     * only if a valid configuration is present.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling autoscaling = 4; - */ - public Builder setAutoscaling(com.google.container.v1.NodePoolAutoscaling value) { - if (autoscalingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - autoscaling_ = value; - } else { - autoscalingBuilder_.setMessage(value); - } - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * - * - *
-     * Autoscaler configuration for this NodePool. Autoscaler is enabled
-     * only if a valid configuration is present.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling autoscaling = 4; - */ - public Builder setAutoscaling( - com.google.container.v1.NodePoolAutoscaling.Builder builderForValue) { - if (autoscalingBuilder_ == null) { - autoscaling_ = builderForValue.build(); - } else { - autoscalingBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * - * - *
-     * Autoscaler configuration for this NodePool. Autoscaler is enabled
-     * only if a valid configuration is present.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling autoscaling = 4; - */ - public Builder mergeAutoscaling(com.google.container.v1.NodePoolAutoscaling value) { - if (autoscalingBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) - && autoscaling_ != null - && autoscaling_ != com.google.container.v1.NodePoolAutoscaling.getDefaultInstance()) { - getAutoscalingBuilder().mergeFrom(value); - } else { - autoscaling_ = value; - } - } else { - autoscalingBuilder_.mergeFrom(value); - } - if (autoscaling_ != null) { - bitField0_ |= 0x00000400; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Autoscaler configuration for this NodePool. Autoscaler is enabled
-     * only if a valid configuration is present.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling autoscaling = 4; - */ - public Builder clearAutoscaling() { - bitField0_ = (bitField0_ & ~0x00000400); - autoscaling_ = null; - if (autoscalingBuilder_ != null) { - autoscalingBuilder_.dispose(); - autoscalingBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Autoscaler configuration for this NodePool. Autoscaler is enabled
-     * only if a valid configuration is present.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling autoscaling = 4; - */ - public com.google.container.v1.NodePoolAutoscaling.Builder getAutoscalingBuilder() { - bitField0_ |= 0x00000400; - onChanged(); - return getAutoscalingFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Autoscaler configuration for this NodePool. Autoscaler is enabled
-     * only if a valid configuration is present.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling autoscaling = 4; - */ - public com.google.container.v1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder() { - if (autoscalingBuilder_ != null) { - return autoscalingBuilder_.getMessageOrBuilder(); - } else { - return autoscaling_ == null - ? com.google.container.v1.NodePoolAutoscaling.getDefaultInstance() - : autoscaling_; - } - } - /** - * - * - *
-     * Autoscaler configuration for this NodePool. Autoscaler is enabled
-     * only if a valid configuration is present.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling autoscaling = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePoolAutoscaling, - com.google.container.v1.NodePoolAutoscaling.Builder, - com.google.container.v1.NodePoolAutoscalingOrBuilder> - getAutoscalingFieldBuilder() { - if (autoscalingBuilder_ == null) { - autoscalingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePoolAutoscaling, - com.google.container.v1.NodePoolAutoscaling.Builder, - com.google.container.v1.NodePoolAutoscalingOrBuilder>( - getAutoscaling(), getParentForChildren(), isClean()); - autoscaling_ = null; - } - return autoscalingBuilder_; - } - - private com.google.container.v1.NodeManagement management_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeManagement, - com.google.container.v1.NodeManagement.Builder, - com.google.container.v1.NodeManagementOrBuilder> - managementBuilder_; - /** - * - * - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1.NodeManagement management = 5; - * - * @return Whether the management field is set. - */ - public boolean hasManagement() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - * - * - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1.NodeManagement management = 5; - * - * @return The management. - */ - public com.google.container.v1.NodeManagement getManagement() { - if (managementBuilder_ == null) { - return management_ == null - ? com.google.container.v1.NodeManagement.getDefaultInstance() - : management_; - } else { - return managementBuilder_.getMessage(); - } - } - /** - * - * - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1.NodeManagement management = 5; - */ - public Builder setManagement(com.google.container.v1.NodeManagement value) { - if (managementBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - management_ = value; - } else { - managementBuilder_.setMessage(value); - } - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - * - * - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1.NodeManagement management = 5; - */ - public Builder setManagement(com.google.container.v1.NodeManagement.Builder builderForValue) { - if (managementBuilder_ == null) { - management_ = builderForValue.build(); - } else { - managementBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - * - * - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1.NodeManagement management = 5; - */ - public Builder mergeManagement(com.google.container.v1.NodeManagement value) { - if (managementBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) - && management_ != null - && management_ != com.google.container.v1.NodeManagement.getDefaultInstance()) { - getManagementBuilder().mergeFrom(value); - } else { - management_ = value; - } - } else { - managementBuilder_.mergeFrom(value); - } - if (management_ != null) { - bitField0_ |= 0x00000800; - onChanged(); - } - return this; - } - /** - * - * - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1.NodeManagement management = 5; - */ - public Builder clearManagement() { - bitField0_ = (bitField0_ & ~0x00000800); - management_ = null; - if (managementBuilder_ != null) { - managementBuilder_.dispose(); - managementBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1.NodeManagement management = 5; - */ - public com.google.container.v1.NodeManagement.Builder getManagementBuilder() { - bitField0_ |= 0x00000800; - onChanged(); - return getManagementFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1.NodeManagement management = 5; - */ - public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() { - if (managementBuilder_ != null) { - return managementBuilder_.getMessageOrBuilder(); - } else { - return management_ == null - ? com.google.container.v1.NodeManagement.getDefaultInstance() - : management_; - } - } - /** - * - * - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1.NodeManagement management = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeManagement, - com.google.container.v1.NodeManagement.Builder, - com.google.container.v1.NodeManagementOrBuilder> - getManagementFieldBuilder() { - if (managementBuilder_ == null) { - managementBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeManagement, - com.google.container.v1.NodeManagement.Builder, - com.google.container.v1.NodeManagementOrBuilder>( - getManagement(), getParentForChildren(), isClean()); - management_ = null; - } - return managementBuilder_; - } - - private com.google.container.v1.MaxPodsConstraint maxPodsConstraint_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MaxPodsConstraint, - com.google.container.v1.MaxPodsConstraint.Builder, - com.google.container.v1.MaxPodsConstraintOrBuilder> - maxPodsConstraintBuilder_; - /** - * - * - *
-     * The constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool.
-     * 
- * - * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; - * - * @return Whether the maxPodsConstraint field is set. - */ - public boolean hasMaxPodsConstraint() { - return ((bitField0_ & 0x00001000) != 0); - } - /** - * - * - *
-     * The constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool.
-     * 
- * - * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; - * - * @return The maxPodsConstraint. - */ - public com.google.container.v1.MaxPodsConstraint getMaxPodsConstraint() { - if (maxPodsConstraintBuilder_ == null) { - return maxPodsConstraint_ == null - ? com.google.container.v1.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.v1.MaxPodsConstraint max_pods_constraint = 6; - */ - public Builder setMaxPodsConstraint(com.google.container.v1.MaxPodsConstraint value) { - if (maxPodsConstraintBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - maxPodsConstraint_ = value; - } else { - maxPodsConstraintBuilder_.setMessage(value); - } - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - * - * - *
-     * The constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool.
-     * 
- * - * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; - */ - public Builder setMaxPodsConstraint( - com.google.container.v1.MaxPodsConstraint.Builder builderForValue) { - if (maxPodsConstraintBuilder_ == null) { - maxPodsConstraint_ = builderForValue.build(); - } else { - maxPodsConstraintBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - * - * - *
-     * The constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool.
-     * 
- * - * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; - */ - public Builder mergeMaxPodsConstraint(com.google.container.v1.MaxPodsConstraint value) { - if (maxPodsConstraintBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) - && maxPodsConstraint_ != null - && maxPodsConstraint_ - != com.google.container.v1.MaxPodsConstraint.getDefaultInstance()) { - getMaxPodsConstraintBuilder().mergeFrom(value); - } else { - maxPodsConstraint_ = value; - } - } else { - maxPodsConstraintBuilder_.mergeFrom(value); - } - if (maxPodsConstraint_ != null) { - bitField0_ |= 0x00001000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool.
-     * 
- * - * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; - */ - public Builder clearMaxPodsConstraint() { - bitField0_ = (bitField0_ & ~0x00001000); - maxPodsConstraint_ = null; - if (maxPodsConstraintBuilder_ != null) { - maxPodsConstraintBuilder_.dispose(); - maxPodsConstraintBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool.
-     * 
- * - * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; - */ - public com.google.container.v1.MaxPodsConstraint.Builder getMaxPodsConstraintBuilder() { - bitField0_ |= 0x00001000; - 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.v1.MaxPodsConstraint max_pods_constraint = 6; - */ - public com.google.container.v1.MaxPodsConstraintOrBuilder getMaxPodsConstraintOrBuilder() { - if (maxPodsConstraintBuilder_ != null) { - return maxPodsConstraintBuilder_.getMessageOrBuilder(); - } else { - return maxPodsConstraint_ == null - ? com.google.container.v1.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.v1.MaxPodsConstraint max_pods_constraint = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MaxPodsConstraint, - com.google.container.v1.MaxPodsConstraint.Builder, - com.google.container.v1.MaxPodsConstraintOrBuilder> - getMaxPodsConstraintFieldBuilder() { - if (maxPodsConstraintBuilder_ == null) { - maxPodsConstraintBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MaxPodsConstraint, - com.google.container.v1.MaxPodsConstraint.Builder, - com.google.container.v1.MaxPodsConstraintOrBuilder>( - getMaxPodsConstraint(), getParentForChildren(), isClean()); - maxPodsConstraint_ = null; - } - return maxPodsConstraintBuilder_; - } - - private java.util.List conditions_ = - java.util.Collections.emptyList(); - - private void ensureConditionsIsMutable() { - if (!((bitField0_ & 0x00002000) != 0)) { - conditions_ = new java.util.ArrayList(conditions_); - bitField0_ |= 0x00002000; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.StatusCondition, - com.google.container.v1.StatusCondition.Builder, - com.google.container.v1.StatusConditionOrBuilder> - conditionsBuilder_; - - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.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.v1.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.v1.StatusCondition conditions = 105; - */ - public com.google.container.v1.StatusCondition getConditions(int index) { - if (conditionsBuilder_ == null) { - return conditions_.get(index); - } else { - return conditionsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - public Builder setConditions(int index, com.google.container.v1.StatusCondition value) { - if (conditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConditionsIsMutable(); - conditions_.set(index, value); - onChanged(); - } else { - conditionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - public Builder setConditions( - int index, com.google.container.v1.StatusCondition.Builder builderForValue) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - conditions_.set(index, builderForValue.build()); - onChanged(); - } else { - conditionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - public Builder addConditions(com.google.container.v1.StatusCondition value) { - if (conditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConditionsIsMutable(); - conditions_.add(value); - onChanged(); - } else { - conditionsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - public Builder addConditions(int index, com.google.container.v1.StatusCondition value) { - if (conditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConditionsIsMutable(); - conditions_.add(index, value); - onChanged(); - } else { - conditionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - public Builder addConditions(com.google.container.v1.StatusCondition.Builder builderForValue) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - conditions_.add(builderForValue.build()); - onChanged(); - } else { - conditionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - public Builder addConditions( - int index, com.google.container.v1.StatusCondition.Builder builderForValue) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - conditions_.add(index, builderForValue.build()); - onChanged(); - } else { - conditionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.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.v1.StatusCondition conditions = 105; - */ - public Builder clearConditions() { - if (conditionsBuilder_ == null) { - conditions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00002000); - onChanged(); - } else { - conditionsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.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.v1.StatusCondition conditions = 105; - */ - public com.google.container.v1.StatusCondition.Builder getConditionsBuilder(int index) { - return getConditionsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - public com.google.container.v1.StatusConditionOrBuilder getConditionsOrBuilder(int index) { - if (conditionsBuilder_ == null) { - return conditions_.get(index); - } else { - return conditionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.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.v1.StatusCondition conditions = 105; - */ - public com.google.container.v1.StatusCondition.Builder addConditionsBuilder() { - return getConditionsFieldBuilder() - .addBuilder(com.google.container.v1.StatusCondition.getDefaultInstance()); - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - public com.google.container.v1.StatusCondition.Builder addConditionsBuilder(int index) { - return getConditionsFieldBuilder() - .addBuilder(index, com.google.container.v1.StatusCondition.getDefaultInstance()); - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - public java.util.List - getConditionsBuilderList() { - return getConditionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.StatusCondition, - com.google.container.v1.StatusCondition.Builder, - com.google.container.v1.StatusConditionOrBuilder> - getConditionsFieldBuilder() { - if (conditionsBuilder_ == null) { - conditionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.StatusCondition, - com.google.container.v1.StatusCondition.Builder, - com.google.container.v1.StatusConditionOrBuilder>( - conditions_, ((bitField0_ & 0x00002000) != 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; - bitField0_ |= 0x00004000; - 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() { - bitField0_ = (bitField0_ & ~0x00004000); - podIpv4CidrSize_ = 0; - onChanged(); - return this; - } - - private com.google.container.v1.NodePool.UpgradeSettings upgradeSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool.UpgradeSettings, - com.google.container.v1.NodePool.UpgradeSettings.Builder, - com.google.container.v1.NodePool.UpgradeSettingsOrBuilder> - upgradeSettingsBuilder_; - /** - * - * - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - * - * @return Whether the upgradeSettings field is set. - */ - public boolean hasUpgradeSettings() { - return ((bitField0_ & 0x00008000) != 0); - } - /** - * - * - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - * - * @return The upgradeSettings. - */ - public com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings() { - if (upgradeSettingsBuilder_ == null) { - return upgradeSettings_ == null - ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() - : upgradeSettings_; - } else { - return upgradeSettingsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - */ - public Builder setUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value) { - if (upgradeSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - upgradeSettings_ = value; - } else { - upgradeSettingsBuilder_.setMessage(value); - } - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - /** - * - * - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - */ - public Builder setUpgradeSettings( - com.google.container.v1.NodePool.UpgradeSettings.Builder builderForValue) { - if (upgradeSettingsBuilder_ == null) { - upgradeSettings_ = builderForValue.build(); - } else { - upgradeSettingsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - /** - * - * - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - */ - public Builder mergeUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value) { - if (upgradeSettingsBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) - && upgradeSettings_ != null - && upgradeSettings_ - != com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance()) { - getUpgradeSettingsBuilder().mergeFrom(value); - } else { - upgradeSettings_ = value; - } - } else { - upgradeSettingsBuilder_.mergeFrom(value); - } - if (upgradeSettings_ != null) { - bitField0_ |= 0x00008000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - */ - public Builder clearUpgradeSettings() { - bitField0_ = (bitField0_ & ~0x00008000); - upgradeSettings_ = null; - if (upgradeSettingsBuilder_ != null) { - upgradeSettingsBuilder_.dispose(); - upgradeSettingsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - */ - public com.google.container.v1.NodePool.UpgradeSettings.Builder getUpgradeSettingsBuilder() { - bitField0_ |= 0x00008000; - onChanged(); - return getUpgradeSettingsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - */ - public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { - if (upgradeSettingsBuilder_ != null) { - return upgradeSettingsBuilder_.getMessageOrBuilder(); - } else { - return upgradeSettings_ == null - ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() - : upgradeSettings_; - } - } - /** - * - * - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool.UpgradeSettings, - com.google.container.v1.NodePool.UpgradeSettings.Builder, - com.google.container.v1.NodePool.UpgradeSettingsOrBuilder> - getUpgradeSettingsFieldBuilder() { - if (upgradeSettingsBuilder_ == null) { - upgradeSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool.UpgradeSettings, - com.google.container.v1.NodePool.UpgradeSettings.Builder, - com.google.container.v1.NodePool.UpgradeSettingsOrBuilder>( - getUpgradeSettings(), getParentForChildren(), isClean()); - upgradeSettings_ = null; - } - return upgradeSettingsBuilder_; - } - - private com.google.container.v1.NodePool.PlacementPolicy placementPolicy_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool.PlacementPolicy, - com.google.container.v1.NodePool.PlacementPolicy.Builder, - com.google.container.v1.NodePool.PlacementPolicyOrBuilder> - placementPolicyBuilder_; - /** - * - * - *
-     * Specifies the node placement policy.
-     * 
- * - * .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; - * - * @return Whether the placementPolicy field is set. - */ - public boolean hasPlacementPolicy() { - return ((bitField0_ & 0x00010000) != 0); - } - /** - * - * - *
-     * Specifies the node placement policy.
-     * 
- * - * .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; - * - * @return The placementPolicy. - */ - public com.google.container.v1.NodePool.PlacementPolicy getPlacementPolicy() { - if (placementPolicyBuilder_ == null) { - return placementPolicy_ == null - ? com.google.container.v1.NodePool.PlacementPolicy.getDefaultInstance() - : placementPolicy_; - } else { - return placementPolicyBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Specifies the node placement policy.
-     * 
- * - * .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; - */ - public Builder setPlacementPolicy(com.google.container.v1.NodePool.PlacementPolicy value) { - if (placementPolicyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - placementPolicy_ = value; - } else { - placementPolicyBuilder_.setMessage(value); - } - bitField0_ |= 0x00010000; - onChanged(); - return this; - } - /** - * - * - *
-     * Specifies the node placement policy.
-     * 
- * - * .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; - */ - public Builder setPlacementPolicy( - com.google.container.v1.NodePool.PlacementPolicy.Builder builderForValue) { - if (placementPolicyBuilder_ == null) { - placementPolicy_ = builderForValue.build(); - } else { - placementPolicyBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00010000; - onChanged(); - return this; - } - /** - * - * - *
-     * Specifies the node placement policy.
-     * 
- * - * .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; - */ - public Builder mergePlacementPolicy(com.google.container.v1.NodePool.PlacementPolicy value) { - if (placementPolicyBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) - && placementPolicy_ != null - && placementPolicy_ - != com.google.container.v1.NodePool.PlacementPolicy.getDefaultInstance()) { - getPlacementPolicyBuilder().mergeFrom(value); - } else { - placementPolicy_ = value; - } - } else { - placementPolicyBuilder_.mergeFrom(value); - } - if (placementPolicy_ != null) { - bitField0_ |= 0x00010000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Specifies the node placement policy.
-     * 
- * - * .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; - */ - public Builder clearPlacementPolicy() { - bitField0_ = (bitField0_ & ~0x00010000); - placementPolicy_ = null; - if (placementPolicyBuilder_ != null) { - placementPolicyBuilder_.dispose(); - placementPolicyBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Specifies the node placement policy.
-     * 
- * - * .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; - */ - public com.google.container.v1.NodePool.PlacementPolicy.Builder getPlacementPolicyBuilder() { - bitField0_ |= 0x00010000; - onChanged(); - return getPlacementPolicyFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Specifies the node placement policy.
-     * 
- * - * .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; - */ - public com.google.container.v1.NodePool.PlacementPolicyOrBuilder getPlacementPolicyOrBuilder() { - if (placementPolicyBuilder_ != null) { - return placementPolicyBuilder_.getMessageOrBuilder(); - } else { - return placementPolicy_ == null - ? com.google.container.v1.NodePool.PlacementPolicy.getDefaultInstance() - : placementPolicy_; - } - } - /** - * - * - *
-     * Specifies the node placement policy.
-     * 
- * - * .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool.PlacementPolicy, - com.google.container.v1.NodePool.PlacementPolicy.Builder, - com.google.container.v1.NodePool.PlacementPolicyOrBuilder> - getPlacementPolicyFieldBuilder() { - if (placementPolicyBuilder_ == null) { - placementPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool.PlacementPolicy, - com.google.container.v1.NodePool.PlacementPolicy.Builder, - com.google.container.v1.NodePool.PlacementPolicyOrBuilder>( - getPlacementPolicy(), getParentForChildren(), isClean()); - placementPolicy_ = null; - } - return placementPolicyBuilder_; - } - - private com.google.container.v1.NodePool.UpdateInfo updateInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool.UpdateInfo, - com.google.container.v1.NodePool.UpdateInfo.Builder, - com.google.container.v1.NodePool.UpdateInfoOrBuilder> - updateInfoBuilder_; - /** - * - * - *
-     * Output only. [Output only] Update info contains relevant information during
-     * a node pool update.
-     * 
- * - * - * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateInfo field is set. - */ - public boolean hasUpdateInfo() { - return ((bitField0_ & 0x00020000) != 0); - } - /** - * - * - *
-     * Output only. [Output only] Update info contains relevant information during
-     * a node pool update.
-     * 
- * - * - * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateInfo. - */ - public com.google.container.v1.NodePool.UpdateInfo getUpdateInfo() { - if (updateInfoBuilder_ == null) { - return updateInfo_ == null - ? com.google.container.v1.NodePool.UpdateInfo.getDefaultInstance() - : updateInfo_; - } else { - return updateInfoBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. [Output only] Update info contains relevant information during
-     * a node pool update.
-     * 
- * - * - * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setUpdateInfo(com.google.container.v1.NodePool.UpdateInfo value) { - if (updateInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateInfo_ = value; - } else { - updateInfoBuilder_.setMessage(value); - } - bitField0_ |= 0x00020000; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. [Output only] Update info contains relevant information during
-     * a node pool update.
-     * 
- * - * - * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setUpdateInfo( - com.google.container.v1.NodePool.UpdateInfo.Builder builderForValue) { - if (updateInfoBuilder_ == null) { - updateInfo_ = builderForValue.build(); - } else { - updateInfoBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00020000; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. [Output only] Update info contains relevant information during
-     * a node pool update.
-     * 
- * - * - * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeUpdateInfo(com.google.container.v1.NodePool.UpdateInfo value) { - if (updateInfoBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) - && updateInfo_ != null - && updateInfo_ != com.google.container.v1.NodePool.UpdateInfo.getDefaultInstance()) { - getUpdateInfoBuilder().mergeFrom(value); - } else { - updateInfo_ = value; - } - } else { - updateInfoBuilder_.mergeFrom(value); - } - if (updateInfo_ != null) { - bitField0_ |= 0x00020000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Output only. [Output only] Update info contains relevant information during
-     * a node pool update.
-     * 
- * - * - * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearUpdateInfo() { - bitField0_ = (bitField0_ & ~0x00020000); - updateInfo_ = null; - if (updateInfoBuilder_ != null) { - updateInfoBuilder_.dispose(); - updateInfoBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. [Output only] Update info contains relevant information during
-     * a node pool update.
-     * 
- * - * - * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.container.v1.NodePool.UpdateInfo.Builder getUpdateInfoBuilder() { - bitField0_ |= 0x00020000; - onChanged(); - return getUpdateInfoFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. [Output only] Update info contains relevant information during
-     * a node pool update.
-     * 
- * - * - * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.container.v1.NodePool.UpdateInfoOrBuilder getUpdateInfoOrBuilder() { - if (updateInfoBuilder_ != null) { - return updateInfoBuilder_.getMessageOrBuilder(); - } else { - return updateInfo_ == null - ? com.google.container.v1.NodePool.UpdateInfo.getDefaultInstance() - : updateInfo_; - } - } - /** - * - * - *
-     * Output only. [Output only] Update info contains relevant information during
-     * a node pool update.
-     * 
- * - * - * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool.UpdateInfo, - com.google.container.v1.NodePool.UpdateInfo.Builder, - com.google.container.v1.NodePool.UpdateInfoOrBuilder> - getUpdateInfoFieldBuilder() { - if (updateInfoBuilder_ == null) { - updateInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool.UpdateInfo, - com.google.container.v1.NodePool.UpdateInfo.Builder, - com.google.container.v1.NodePool.UpdateInfoOrBuilder>( - getUpdateInfo(), getParentForChildren(), isClean()); - updateInfo_ = null; - } - return updateInfoBuilder_; - } - - private java.lang.Object etag_ = ""; - /** - * - * - *
-     * This checksum is computed by the server based on the value of node pool
-     * fields, and may be sent on update requests to ensure the client has an
-     * up-to-date value before proceeding.
-     * 
- * - * string etag = 110; - * - * @return The etag. - */ - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * This checksum is computed by the server based on the value of node pool
-     * fields, and may be sent on update requests to ensure the client has an
-     * up-to-date value before proceeding.
-     * 
- * - * string etag = 110; - * - * @return The bytes for etag. - */ - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * This checksum is computed by the server based on the value of node pool
-     * fields, and may be sent on update requests to ensure the client has an
-     * up-to-date value before proceeding.
-     * 
- * - * string etag = 110; - * - * @param value The etag to set. - * @return This builder for chaining. - */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - etag_ = value; - bitField0_ |= 0x00040000; - onChanged(); - return this; - } - /** - * - * - *
-     * This checksum is computed by the server based on the value of node pool
-     * fields, and may be sent on update requests to ensure the client has an
-     * up-to-date value before proceeding.
-     * 
- * - * string etag = 110; - * - * @return This builder for chaining. - */ - public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00040000); - onChanged(); - return this; - } - /** - * - * - *
-     * This checksum is computed by the server based on the value of node pool
-     * fields, and may be sent on update requests to ensure the client has an
-     * up-to-date value before proceeding.
-     * 
- * - * string etag = 110; - * - * @param value The bytes for etag to set. - * @return This builder for chaining. - */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - etag_ = value; - bitField0_ |= 0x00040000; - onChanged(); - return this; - } - - private com.google.container.v1.NodePool.QueuedProvisioning queuedProvisioning_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool.QueuedProvisioning, - com.google.container.v1.NodePool.QueuedProvisioning.Builder, - com.google.container.v1.NodePool.QueuedProvisioningOrBuilder> - queuedProvisioningBuilder_; - /** - * - * - *
-     * Specifies the configuration of queued provisioning.
-     * 
- * - * .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; - * - * @return Whether the queuedProvisioning field is set. - */ - public boolean hasQueuedProvisioning() { - return ((bitField0_ & 0x00080000) != 0); - } - /** - * - * - *
-     * Specifies the configuration of queued provisioning.
-     * 
- * - * .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; - * - * @return The queuedProvisioning. - */ - public com.google.container.v1.NodePool.QueuedProvisioning getQueuedProvisioning() { - if (queuedProvisioningBuilder_ == null) { - return queuedProvisioning_ == null - ? com.google.container.v1.NodePool.QueuedProvisioning.getDefaultInstance() - : queuedProvisioning_; - } else { - return queuedProvisioningBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Specifies the configuration of queued provisioning.
-     * 
- * - * .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; - */ - public Builder setQueuedProvisioning( - com.google.container.v1.NodePool.QueuedProvisioning value) { - if (queuedProvisioningBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - queuedProvisioning_ = value; - } else { - queuedProvisioningBuilder_.setMessage(value); - } - bitField0_ |= 0x00080000; - onChanged(); - return this; - } - /** - * - * - *
-     * Specifies the configuration of queued provisioning.
-     * 
- * - * .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; - */ - public Builder setQueuedProvisioning( - com.google.container.v1.NodePool.QueuedProvisioning.Builder builderForValue) { - if (queuedProvisioningBuilder_ == null) { - queuedProvisioning_ = builderForValue.build(); - } else { - queuedProvisioningBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00080000; - onChanged(); - return this; - } - /** - * - * - *
-     * Specifies the configuration of queued provisioning.
-     * 
- * - * .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; - */ - public Builder mergeQueuedProvisioning( - com.google.container.v1.NodePool.QueuedProvisioning value) { - if (queuedProvisioningBuilder_ == null) { - if (((bitField0_ & 0x00080000) != 0) - && queuedProvisioning_ != null - && queuedProvisioning_ - != com.google.container.v1.NodePool.QueuedProvisioning.getDefaultInstance()) { - getQueuedProvisioningBuilder().mergeFrom(value); - } else { - queuedProvisioning_ = value; - } - } else { - queuedProvisioningBuilder_.mergeFrom(value); - } - if (queuedProvisioning_ != null) { - bitField0_ |= 0x00080000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Specifies the configuration of queued provisioning.
-     * 
- * - * .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; - */ - public Builder clearQueuedProvisioning() { - bitField0_ = (bitField0_ & ~0x00080000); - queuedProvisioning_ = null; - if (queuedProvisioningBuilder_ != null) { - queuedProvisioningBuilder_.dispose(); - queuedProvisioningBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Specifies the configuration of queued provisioning.
-     * 
- * - * .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; - */ - public com.google.container.v1.NodePool.QueuedProvisioning.Builder - getQueuedProvisioningBuilder() { - bitField0_ |= 0x00080000; - onChanged(); - return getQueuedProvisioningFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Specifies the configuration of queued provisioning.
-     * 
- * - * .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; - */ - public com.google.container.v1.NodePool.QueuedProvisioningOrBuilder - getQueuedProvisioningOrBuilder() { - if (queuedProvisioningBuilder_ != null) { - return queuedProvisioningBuilder_.getMessageOrBuilder(); - } else { - return queuedProvisioning_ == null - ? com.google.container.v1.NodePool.QueuedProvisioning.getDefaultInstance() - : queuedProvisioning_; - } - } - /** - * - * - *
-     * Specifies the configuration of queued provisioning.
-     * 
- * - * .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool.QueuedProvisioning, - com.google.container.v1.NodePool.QueuedProvisioning.Builder, - com.google.container.v1.NodePool.QueuedProvisioningOrBuilder> - getQueuedProvisioningFieldBuilder() { - if (queuedProvisioningBuilder_ == null) { - queuedProvisioningBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool.QueuedProvisioning, - com.google.container.v1.NodePool.QueuedProvisioning.Builder, - com.google.container.v1.NodePool.QueuedProvisioningOrBuilder>( - getQueuedProvisioning(), getParentForChildren(), isClean()); - queuedProvisioning_ = null; - } - return queuedProvisioningBuilder_; - } - - private com.google.container.v1.BestEffortProvisioning bestEffortProvisioning_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.BestEffortProvisioning, - com.google.container.v1.BestEffortProvisioning.Builder, - com.google.container.v1.BestEffortProvisioningOrBuilder> - bestEffortProvisioningBuilder_; - /** - * - * - *
-     * Enable best effort provisioning for nodes
-     * 
- * - * .google.container.v1.BestEffortProvisioning best_effort_provisioning = 113; - * - * @return Whether the bestEffortProvisioning field is set. - */ - public boolean hasBestEffortProvisioning() { - return ((bitField0_ & 0x00100000) != 0); - } - /** - * - * - *
-     * Enable best effort provisioning for nodes
-     * 
- * - * .google.container.v1.BestEffortProvisioning best_effort_provisioning = 113; - * - * @return The bestEffortProvisioning. - */ - public com.google.container.v1.BestEffortProvisioning getBestEffortProvisioning() { - if (bestEffortProvisioningBuilder_ == null) { - return bestEffortProvisioning_ == null - ? com.google.container.v1.BestEffortProvisioning.getDefaultInstance() - : bestEffortProvisioning_; - } else { - return bestEffortProvisioningBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Enable best effort provisioning for nodes
-     * 
- * - * .google.container.v1.BestEffortProvisioning best_effort_provisioning = 113; - */ - public Builder setBestEffortProvisioning(com.google.container.v1.BestEffortProvisioning value) { - if (bestEffortProvisioningBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - bestEffortProvisioning_ = value; - } else { - bestEffortProvisioningBuilder_.setMessage(value); - } - bitField0_ |= 0x00100000; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable best effort provisioning for nodes
-     * 
- * - * .google.container.v1.BestEffortProvisioning best_effort_provisioning = 113; - */ - public Builder setBestEffortProvisioning( - com.google.container.v1.BestEffortProvisioning.Builder builderForValue) { - if (bestEffortProvisioningBuilder_ == null) { - bestEffortProvisioning_ = builderForValue.build(); - } else { - bestEffortProvisioningBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00100000; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable best effort provisioning for nodes
-     * 
- * - * .google.container.v1.BestEffortProvisioning best_effort_provisioning = 113; - */ - public Builder mergeBestEffortProvisioning( - com.google.container.v1.BestEffortProvisioning value) { - if (bestEffortProvisioningBuilder_ == null) { - if (((bitField0_ & 0x00100000) != 0) - && bestEffortProvisioning_ != null - && bestEffortProvisioning_ - != com.google.container.v1.BestEffortProvisioning.getDefaultInstance()) { - getBestEffortProvisioningBuilder().mergeFrom(value); - } else { - bestEffortProvisioning_ = value; - } - } else { - bestEffortProvisioningBuilder_.mergeFrom(value); - } - if (bestEffortProvisioning_ != null) { - bitField0_ |= 0x00100000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Enable best effort provisioning for nodes
-     * 
- * - * .google.container.v1.BestEffortProvisioning best_effort_provisioning = 113; - */ - public Builder clearBestEffortProvisioning() { - bitField0_ = (bitField0_ & ~0x00100000); - bestEffortProvisioning_ = null; - if (bestEffortProvisioningBuilder_ != null) { - bestEffortProvisioningBuilder_.dispose(); - bestEffortProvisioningBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Enable best effort provisioning for nodes
-     * 
- * - * .google.container.v1.BestEffortProvisioning best_effort_provisioning = 113; - */ - public com.google.container.v1.BestEffortProvisioning.Builder - getBestEffortProvisioningBuilder() { - bitField0_ |= 0x00100000; - onChanged(); - return getBestEffortProvisioningFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Enable best effort provisioning for nodes
-     * 
- * - * .google.container.v1.BestEffortProvisioning best_effort_provisioning = 113; - */ - public com.google.container.v1.BestEffortProvisioningOrBuilder - getBestEffortProvisioningOrBuilder() { - if (bestEffortProvisioningBuilder_ != null) { - return bestEffortProvisioningBuilder_.getMessageOrBuilder(); - } else { - return bestEffortProvisioning_ == null - ? com.google.container.v1.BestEffortProvisioning.getDefaultInstance() - : bestEffortProvisioning_; - } - } - /** - * - * - *
-     * Enable best effort provisioning for nodes
-     * 
- * - * .google.container.v1.BestEffortProvisioning best_effort_provisioning = 113; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.BestEffortProvisioning, - com.google.container.v1.BestEffortProvisioning.Builder, - com.google.container.v1.BestEffortProvisioningOrBuilder> - getBestEffortProvisioningFieldBuilder() { - if (bestEffortProvisioningBuilder_ == null) { - bestEffortProvisioningBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.BestEffortProvisioning, - com.google.container.v1.BestEffortProvisioning.Builder, - com.google.container.v1.BestEffortProvisioningOrBuilder>( - getBestEffortProvisioning(), getParentForChildren(), isClean()); - bestEffortProvisioning_ = null; - } - return bestEffortProvisioningBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.NodePool) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.NodePool) - private static final com.google.container.v1.NodePool DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.NodePool(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.NodePool getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoConfig.java deleted file mode 100644 index f344c68ae856..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoConfig.java +++ /dev/null @@ -1,1045 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Node pool configs that apply to all auto-provisioned node pools
- * in autopilot clusters and node auto-provisioning enabled clusters.
- * 
- * - * Protobuf type {@code google.container.v1.NodePoolAutoConfig} - */ -public final class NodePoolAutoConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.NodePoolAutoConfig) - NodePoolAutoConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodePoolAutoConfig.newBuilder() to construct. - private NodePoolAutoConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NodePoolAutoConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NodePoolAutoConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePoolAutoConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePoolAutoConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodePoolAutoConfig.class, - com.google.container.v1.NodePoolAutoConfig.Builder.class); - } - - private int bitField0_; - public static final int NETWORK_TAGS_FIELD_NUMBER = 1; - private com.google.container.v1.NetworkTags networkTags_; - /** - * - * - *
-   * 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 creation. Each tag within the list
-   * must comply with RFC1035.
-   * 
- * - * .google.container.v1.NetworkTags network_tags = 1; - * - * @return Whether the networkTags field is set. - */ - @java.lang.Override - public boolean hasNetworkTags() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * 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 creation. Each tag within the list
-   * must comply with RFC1035.
-   * 
- * - * .google.container.v1.NetworkTags network_tags = 1; - * - * @return The networkTags. - */ - @java.lang.Override - public com.google.container.v1.NetworkTags getNetworkTags() { - return networkTags_ == null - ? com.google.container.v1.NetworkTags.getDefaultInstance() - : networkTags_; - } - /** - * - * - *
-   * 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 creation. Each tag within the list
-   * must comply with RFC1035.
-   * 
- * - * .google.container.v1.NetworkTags network_tags = 1; - */ - @java.lang.Override - public com.google.container.v1.NetworkTagsOrBuilder getNetworkTagsOrBuilder() { - return networkTags_ == null - ? com.google.container.v1.NetworkTags.getDefaultInstance() - : networkTags_; - } - - public static final int RESOURCE_MANAGER_TAGS_FIELD_NUMBER = 2; - private com.google.container.v1.ResourceManagerTags resourceManagerTags_; - /** - * - * - *
-   * Resource manager tag keys and values to be attached to the nodes
-   * for managing Compute Engine firewalls using Network Firewall Policies.
-   * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 2; - * - * @return Whether the resourceManagerTags field is set. - */ - @java.lang.Override - public boolean hasResourceManagerTags() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * Resource manager tag keys and values to be attached to the nodes
-   * for managing Compute Engine firewalls using Network Firewall Policies.
-   * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 2; - * - * @return The resourceManagerTags. - */ - @java.lang.Override - public com.google.container.v1.ResourceManagerTags getResourceManagerTags() { - return resourceManagerTags_ == null - ? com.google.container.v1.ResourceManagerTags.getDefaultInstance() - : resourceManagerTags_; - } - /** - * - * - *
-   * Resource manager tag keys and values to be attached to the nodes
-   * for managing Compute Engine firewalls using Network Firewall Policies.
-   * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 2; - */ - @java.lang.Override - public com.google.container.v1.ResourceManagerTagsOrBuilder getResourceManagerTagsOrBuilder() { - return resourceManagerTags_ == null - ? com.google.container.v1.ResourceManagerTags.getDefaultInstance() - : resourceManagerTags_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getNetworkTags()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getResourceManagerTags()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNetworkTags()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getResourceManagerTags()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.NodePoolAutoConfig)) { - return super.equals(obj); - } - com.google.container.v1.NodePoolAutoConfig other = - (com.google.container.v1.NodePoolAutoConfig) obj; - - if (hasNetworkTags() != other.hasNetworkTags()) return false; - if (hasNetworkTags()) { - if (!getNetworkTags().equals(other.getNetworkTags())) return false; - } - if (hasResourceManagerTags() != other.hasResourceManagerTags()) return false; - if (hasResourceManagerTags()) { - if (!getResourceManagerTags().equals(other.getResourceManagerTags())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasNetworkTags()) { - hash = (37 * hash) + NETWORK_TAGS_FIELD_NUMBER; - hash = (53 * hash) + getNetworkTags().hashCode(); - } - if (hasResourceManagerTags()) { - hash = (37 * hash) + RESOURCE_MANAGER_TAGS_FIELD_NUMBER; - hash = (53 * hash) + getResourceManagerTags().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.NodePoolAutoConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodePoolAutoConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodePoolAutoConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodePoolAutoConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodePoolAutoConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodePoolAutoConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodePoolAutoConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodePoolAutoConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NodePoolAutoConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodePoolAutoConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NodePoolAutoConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodePoolAutoConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.NodePoolAutoConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 pool configs that apply to all auto-provisioned node pools
-   * in autopilot clusters and node auto-provisioning enabled clusters.
-   * 
- * - * Protobuf type {@code google.container.v1.NodePoolAutoConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.NodePoolAutoConfig) - com.google.container.v1.NodePoolAutoConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePoolAutoConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePoolAutoConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodePoolAutoConfig.class, - com.google.container.v1.NodePoolAutoConfig.Builder.class); - } - - // Construct using com.google.container.v1.NodePoolAutoConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getNetworkTagsFieldBuilder(); - getResourceManagerTagsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - networkTags_ = null; - if (networkTagsBuilder_ != null) { - networkTagsBuilder_.dispose(); - networkTagsBuilder_ = null; - } - resourceManagerTags_ = null; - if (resourceManagerTagsBuilder_ != null) { - resourceManagerTagsBuilder_.dispose(); - resourceManagerTagsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePoolAutoConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NodePoolAutoConfig getDefaultInstanceForType() { - return com.google.container.v1.NodePoolAutoConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NodePoolAutoConfig build() { - com.google.container.v1.NodePoolAutoConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NodePoolAutoConfig buildPartial() { - com.google.container.v1.NodePoolAutoConfig result = - new com.google.container.v1.NodePoolAutoConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.NodePoolAutoConfig result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.networkTags_ = - networkTagsBuilder_ == null ? networkTags_ : networkTagsBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.resourceManagerTags_ = - resourceManagerTagsBuilder_ == null - ? resourceManagerTags_ - : resourceManagerTagsBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NodePoolAutoConfig) { - return mergeFrom((com.google.container.v1.NodePoolAutoConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NodePoolAutoConfig other) { - if (other == com.google.container.v1.NodePoolAutoConfig.getDefaultInstance()) return this; - if (other.hasNetworkTags()) { - mergeNetworkTags(other.getNetworkTags()); - } - if (other.hasResourceManagerTags()) { - mergeResourceManagerTags(other.getResourceManagerTags()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getNetworkTagsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - getResourceManagerTagsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.container.v1.NetworkTags networkTags_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkTags, - com.google.container.v1.NetworkTags.Builder, - com.google.container.v1.NetworkTagsOrBuilder> - networkTagsBuilder_; - /** - * - * - *
-     * 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 creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * .google.container.v1.NetworkTags network_tags = 1; - * - * @return Whether the networkTags field is set. - */ - public boolean hasNetworkTags() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * 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 creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * .google.container.v1.NetworkTags network_tags = 1; - * - * @return The networkTags. - */ - public com.google.container.v1.NetworkTags getNetworkTags() { - if (networkTagsBuilder_ == null) { - return networkTags_ == null - ? com.google.container.v1.NetworkTags.getDefaultInstance() - : networkTags_; - } else { - return networkTagsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * 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 creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * .google.container.v1.NetworkTags network_tags = 1; - */ - public Builder setNetworkTags(com.google.container.v1.NetworkTags value) { - if (networkTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - networkTags_ = value; - } else { - networkTagsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - 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 creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * .google.container.v1.NetworkTags network_tags = 1; - */ - public Builder setNetworkTags(com.google.container.v1.NetworkTags.Builder builderForValue) { - if (networkTagsBuilder_ == null) { - networkTags_ = builderForValue.build(); - } else { - networkTagsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - 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 creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * .google.container.v1.NetworkTags network_tags = 1; - */ - public Builder mergeNetworkTags(com.google.container.v1.NetworkTags value) { - if (networkTagsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && networkTags_ != null - && networkTags_ != com.google.container.v1.NetworkTags.getDefaultInstance()) { - getNetworkTagsBuilder().mergeFrom(value); - } else { - networkTags_ = value; - } - } else { - networkTagsBuilder_.mergeFrom(value); - } - if (networkTags_ != null) { - bitField0_ |= 0x00000001; - 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 creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * .google.container.v1.NetworkTags network_tags = 1; - */ - public Builder clearNetworkTags() { - bitField0_ = (bitField0_ & ~0x00000001); - networkTags_ = null; - if (networkTagsBuilder_ != null) { - networkTagsBuilder_.dispose(); - networkTagsBuilder_ = null; - } - 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 creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * .google.container.v1.NetworkTags network_tags = 1; - */ - public com.google.container.v1.NetworkTags.Builder getNetworkTagsBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getNetworkTagsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * 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 creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * .google.container.v1.NetworkTags network_tags = 1; - */ - public com.google.container.v1.NetworkTagsOrBuilder getNetworkTagsOrBuilder() { - if (networkTagsBuilder_ != null) { - return networkTagsBuilder_.getMessageOrBuilder(); - } else { - return networkTags_ == null - ? com.google.container.v1.NetworkTags.getDefaultInstance() - : networkTags_; - } - } - /** - * - * - *
-     * 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 creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * .google.container.v1.NetworkTags network_tags = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkTags, - com.google.container.v1.NetworkTags.Builder, - com.google.container.v1.NetworkTagsOrBuilder> - getNetworkTagsFieldBuilder() { - if (networkTagsBuilder_ == null) { - networkTagsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkTags, - com.google.container.v1.NetworkTags.Builder, - com.google.container.v1.NetworkTagsOrBuilder>( - getNetworkTags(), getParentForChildren(), isClean()); - networkTags_ = null; - } - return networkTagsBuilder_; - } - - private com.google.container.v1.ResourceManagerTags resourceManagerTags_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ResourceManagerTags, - com.google.container.v1.ResourceManagerTags.Builder, - com.google.container.v1.ResourceManagerTagsOrBuilder> - resourceManagerTagsBuilder_; - /** - * - * - *
-     * Resource manager tag keys and values to be attached to the nodes
-     * for managing Compute Engine firewalls using Network Firewall Policies.
-     * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 2; - * - * @return Whether the resourceManagerTags field is set. - */ - public boolean hasResourceManagerTags() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * Resource manager tag keys and values to be attached to the nodes
-     * for managing Compute Engine firewalls using Network Firewall Policies.
-     * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 2; - * - * @return The resourceManagerTags. - */ - public com.google.container.v1.ResourceManagerTags getResourceManagerTags() { - if (resourceManagerTagsBuilder_ == null) { - return resourceManagerTags_ == null - ? com.google.container.v1.ResourceManagerTags.getDefaultInstance() - : resourceManagerTags_; - } else { - return resourceManagerTagsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Resource manager tag keys and values to be attached to the nodes
-     * for managing Compute Engine firewalls using Network Firewall Policies.
-     * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 2; - */ - public Builder setResourceManagerTags(com.google.container.v1.ResourceManagerTags value) { - if (resourceManagerTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resourceManagerTags_ = value; - } else { - resourceManagerTagsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Resource manager tag keys and values to be attached to the nodes
-     * for managing Compute Engine firewalls using Network Firewall Policies.
-     * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 2; - */ - public Builder setResourceManagerTags( - com.google.container.v1.ResourceManagerTags.Builder builderForValue) { - if (resourceManagerTagsBuilder_ == null) { - resourceManagerTags_ = builderForValue.build(); - } else { - resourceManagerTagsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Resource manager tag keys and values to be attached to the nodes
-     * for managing Compute Engine firewalls using Network Firewall Policies.
-     * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 2; - */ - public Builder mergeResourceManagerTags(com.google.container.v1.ResourceManagerTags value) { - if (resourceManagerTagsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && resourceManagerTags_ != null - && resourceManagerTags_ - != com.google.container.v1.ResourceManagerTags.getDefaultInstance()) { - getResourceManagerTagsBuilder().mergeFrom(value); - } else { - resourceManagerTags_ = value; - } - } else { - resourceManagerTagsBuilder_.mergeFrom(value); - } - if (resourceManagerTags_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Resource manager tag keys and values to be attached to the nodes
-     * for managing Compute Engine firewalls using Network Firewall Policies.
-     * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 2; - */ - public Builder clearResourceManagerTags() { - bitField0_ = (bitField0_ & ~0x00000002); - resourceManagerTags_ = null; - if (resourceManagerTagsBuilder_ != null) { - resourceManagerTagsBuilder_.dispose(); - resourceManagerTagsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Resource manager tag keys and values to be attached to the nodes
-     * for managing Compute Engine firewalls using Network Firewall Policies.
-     * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 2; - */ - public com.google.container.v1.ResourceManagerTags.Builder getResourceManagerTagsBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getResourceManagerTagsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Resource manager tag keys and values to be attached to the nodes
-     * for managing Compute Engine firewalls using Network Firewall Policies.
-     * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 2; - */ - public com.google.container.v1.ResourceManagerTagsOrBuilder getResourceManagerTagsOrBuilder() { - if (resourceManagerTagsBuilder_ != null) { - return resourceManagerTagsBuilder_.getMessageOrBuilder(); - } else { - return resourceManagerTags_ == null - ? com.google.container.v1.ResourceManagerTags.getDefaultInstance() - : resourceManagerTags_; - } - } - /** - * - * - *
-     * Resource manager tag keys and values to be attached to the nodes
-     * for managing Compute Engine firewalls using Network Firewall Policies.
-     * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ResourceManagerTags, - com.google.container.v1.ResourceManagerTags.Builder, - com.google.container.v1.ResourceManagerTagsOrBuilder> - getResourceManagerTagsFieldBuilder() { - if (resourceManagerTagsBuilder_ == null) { - resourceManagerTagsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ResourceManagerTags, - com.google.container.v1.ResourceManagerTags.Builder, - com.google.container.v1.ResourceManagerTagsOrBuilder>( - getResourceManagerTags(), getParentForChildren(), isClean()); - resourceManagerTags_ = null; - } - return resourceManagerTagsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.NodePoolAutoConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.NodePoolAutoConfig) - private static final com.google.container.v1.NodePoolAutoConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.NodePoolAutoConfig(); - } - - public static com.google.container.v1.NodePoolAutoConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodePoolAutoConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.NodePoolAutoConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoConfigOrBuilder.java deleted file mode 100644 index e9f3559f4dfc..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoConfigOrBuilder.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface NodePoolAutoConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.NodePoolAutoConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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 creation. Each tag within the list
-   * must comply with RFC1035.
-   * 
- * - * .google.container.v1.NetworkTags network_tags = 1; - * - * @return Whether the networkTags field is set. - */ - boolean hasNetworkTags(); - /** - * - * - *
-   * 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 creation. Each tag within the list
-   * must comply with RFC1035.
-   * 
- * - * .google.container.v1.NetworkTags network_tags = 1; - * - * @return The networkTags. - */ - com.google.container.v1.NetworkTags getNetworkTags(); - /** - * - * - *
-   * 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 creation. Each tag within the list
-   * must comply with RFC1035.
-   * 
- * - * .google.container.v1.NetworkTags network_tags = 1; - */ - com.google.container.v1.NetworkTagsOrBuilder getNetworkTagsOrBuilder(); - - /** - * - * - *
-   * Resource manager tag keys and values to be attached to the nodes
-   * for managing Compute Engine firewalls using Network Firewall Policies.
-   * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 2; - * - * @return Whether the resourceManagerTags field is set. - */ - boolean hasResourceManagerTags(); - /** - * - * - *
-   * Resource manager tag keys and values to be attached to the nodes
-   * for managing Compute Engine firewalls using Network Firewall Policies.
-   * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 2; - * - * @return The resourceManagerTags. - */ - com.google.container.v1.ResourceManagerTags getResourceManagerTags(); - /** - * - * - *
-   * Resource manager tag keys and values to be attached to the nodes
-   * for managing Compute Engine firewalls using Network Firewall Policies.
-   * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 2; - */ - com.google.container.v1.ResourceManagerTagsOrBuilder getResourceManagerTagsOrBuilder(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoscaling.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoscaling.java deleted file mode 100644 index 4b79bead8a28..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoscaling.java +++ /dev/null @@ -1,1351 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * 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.v1.NodePoolAutoscaling} - */ -public final class NodePoolAutoscaling extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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() { - locationPolicy_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NodePoolAutoscaling(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePoolAutoscaling_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePoolAutoscaling_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodePoolAutoscaling.class, - com.google.container.v1.NodePoolAutoscaling.Builder.class); - } - - /** - * - * - *
-   * Location policy specifies how zones are picked when scaling up the
-   * nodepool.
-   * 
- * - * Protobuf enum {@code google.container.v1.NodePoolAutoscaling.LocationPolicy} - */ - public enum LocationPolicy implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Not set.
-     * 
- * - * LOCATION_POLICY_UNSPECIFIED = 0; - */ - LOCATION_POLICY_UNSPECIFIED(0), - /** - * - * - *
-     * BALANCED is a best effort policy that aims to balance the sizes of
-     * different zones.
-     * 
- * - * BALANCED = 1; - */ - BALANCED(1), - /** - * - * - *
-     * ANY policy picks zones that have the highest capacity available.
-     * 
- * - * ANY = 2; - */ - ANY(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Not set.
-     * 
- * - * LOCATION_POLICY_UNSPECIFIED = 0; - */ - public static final int LOCATION_POLICY_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * BALANCED is a best effort policy that aims to balance the sizes of
-     * different zones.
-     * 
- * - * BALANCED = 1; - */ - public static final int BALANCED_VALUE = 1; - /** - * - * - *
-     * ANY policy picks zones that have the highest capacity available.
-     * 
- * - * ANY = 2; - */ - public static final int ANY_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 LocationPolicy 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 LocationPolicy forNumber(int value) { - switch (value) { - case 0: - return LOCATION_POLICY_UNSPECIFIED; - case 1: - return BALANCED; - case 2: - return ANY; - 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 LocationPolicy findValueByNumber(int number) { - return LocationPolicy.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.NodePoolAutoscaling.getDescriptor().getEnumTypes().get(0); - } - - private static final LocationPolicy[] VALUES = values(); - - public static LocationPolicy 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 LocationPolicy(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.NodePoolAutoscaling.LocationPolicy) - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * 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_ = 0; - /** - * - * - *
-   * Minimum number of nodes for one location 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_ = 0; - /** - * - * - *
-   * Maximum number of nodes for one location in the NodePool. Must be >=
-   * min_node_count. There has to be enough quota to scale up the cluster.
-   * 
- * - * int32 max_node_count = 3; - * - * @return The maxNodeCount. - */ - @java.lang.Override - public int getMaxNodeCount() { - return maxNodeCount_; - } - - public static final int AUTOPROVISIONED_FIELD_NUMBER = 4; - private boolean autoprovisioned_ = false; - /** - * - * - *
-   * Can this node pool be deleted automatically.
-   * 
- * - * bool autoprovisioned = 4; - * - * @return The autoprovisioned. - */ - @java.lang.Override - public boolean getAutoprovisioned() { - return autoprovisioned_; - } - - public static final int LOCATION_POLICY_FIELD_NUMBER = 5; - private int locationPolicy_ = 0; - /** - * - * - *
-   * Location policy used when scaling up a nodepool.
-   * 
- * - * .google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5; - * - * @return The enum numeric value on the wire for locationPolicy. - */ - @java.lang.Override - public int getLocationPolicyValue() { - return locationPolicy_; - } - /** - * - * - *
-   * Location policy used when scaling up a nodepool.
-   * 
- * - * .google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5; - * - * @return The locationPolicy. - */ - @java.lang.Override - public com.google.container.v1.NodePoolAutoscaling.LocationPolicy getLocationPolicy() { - com.google.container.v1.NodePoolAutoscaling.LocationPolicy result = - com.google.container.v1.NodePoolAutoscaling.LocationPolicy.forNumber(locationPolicy_); - return result == null - ? com.google.container.v1.NodePoolAutoscaling.LocationPolicy.UNRECOGNIZED - : result; - } - - public static final int TOTAL_MIN_NODE_COUNT_FIELD_NUMBER = 6; - private int totalMinNodeCount_ = 0; - /** - * - * - *
-   * Minimum number of nodes in the node pool. Must be greater than 1 less than
-   * total_max_node_count.
-   * The total_*_node_count fields are mutually exclusive with the *_node_count
-   * fields.
-   * 
- * - * int32 total_min_node_count = 6; - * - * @return The totalMinNodeCount. - */ - @java.lang.Override - public int getTotalMinNodeCount() { - return totalMinNodeCount_; - } - - public static final int TOTAL_MAX_NODE_COUNT_FIELD_NUMBER = 7; - private int totalMaxNodeCount_ = 0; - /** - * - * - *
-   * Maximum number of nodes in the node pool. Must be greater than
-   * total_min_node_count. There has to be enough quota to scale up the cluster.
-   * The total_*_node_count fields are mutually exclusive with the *_node_count
-   * fields.
-   * 
- * - * int32 total_max_node_count = 7; - * - * @return The totalMaxNodeCount. - */ - @java.lang.Override - public int getTotalMaxNodeCount() { - return totalMaxNodeCount_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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_); - } - if (locationPolicy_ - != com.google.container.v1.NodePoolAutoscaling.LocationPolicy.LOCATION_POLICY_UNSPECIFIED - .getNumber()) { - output.writeEnum(5, locationPolicy_); - } - if (totalMinNodeCount_ != 0) { - output.writeInt32(6, totalMinNodeCount_); - } - if (totalMaxNodeCount_ != 0) { - output.writeInt32(7, totalMaxNodeCount_); - } - getUnknownFields().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_); - } - if (locationPolicy_ - != com.google.container.v1.NodePoolAutoscaling.LocationPolicy.LOCATION_POLICY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, locationPolicy_); - } - if (totalMinNodeCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, totalMinNodeCount_); - } - if (totalMaxNodeCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, totalMaxNodeCount_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.NodePoolAutoscaling)) { - return super.equals(obj); - } - com.google.container.v1.NodePoolAutoscaling other = - (com.google.container.v1.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 (locationPolicy_ != other.locationPolicy_) return false; - if (getTotalMinNodeCount() != other.getTotalMinNodeCount()) return false; - if (getTotalMaxNodeCount() != other.getTotalMaxNodeCount()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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 = (37 * hash) + LOCATION_POLICY_FIELD_NUMBER; - hash = (53 * hash) + locationPolicy_; - hash = (37 * hash) + TOTAL_MIN_NODE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getTotalMinNodeCount(); - hash = (37 * hash) + TOTAL_MAX_NODE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getTotalMaxNodeCount(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.NodePoolAutoscaling parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.NodePoolAutoscaling parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.NodePoolAutoscaling parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodePoolAutoscaling parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodePoolAutoscaling parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.NodePoolAutoscaling parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.NodePoolAutoscaling parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.NodePoolAutoscaling} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.NodePoolAutoscaling) - com.google.container.v1.NodePoolAutoscalingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePoolAutoscaling_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePoolAutoscaling_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodePoolAutoscaling.class, - com.google.container.v1.NodePoolAutoscaling.Builder.class); - } - - // Construct using com.google.container.v1.NodePoolAutoscaling.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enabled_ = false; - minNodeCount_ = 0; - maxNodeCount_ = 0; - autoprovisioned_ = false; - locationPolicy_ = 0; - totalMinNodeCount_ = 0; - totalMaxNodeCount_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePoolAutoscaling_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NodePoolAutoscaling getDefaultInstanceForType() { - return com.google.container.v1.NodePoolAutoscaling.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NodePoolAutoscaling build() { - com.google.container.v1.NodePoolAutoscaling result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NodePoolAutoscaling buildPartial() { - com.google.container.v1.NodePoolAutoscaling result = - new com.google.container.v1.NodePoolAutoscaling(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.NodePoolAutoscaling result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.minNodeCount_ = minNodeCount_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.maxNodeCount_ = maxNodeCount_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.autoprovisioned_ = autoprovisioned_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.locationPolicy_ = locationPolicy_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.totalMinNodeCount_ = totalMinNodeCount_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.totalMaxNodeCount_ = totalMaxNodeCount_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NodePoolAutoscaling) { - return mergeFrom((com.google.container.v1.NodePoolAutoscaling) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NodePoolAutoscaling other) { - if (other == com.google.container.v1.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()); - } - if (other.locationPolicy_ != 0) { - setLocationPolicyValue(other.getLocationPolicyValue()); - } - if (other.getTotalMinNodeCount() != 0) { - setTotalMinNodeCount(other.getTotalMinNodeCount()); - } - if (other.getTotalMaxNodeCount() != 0) { - setTotalMaxNodeCount(other.getTotalMaxNodeCount()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - minNodeCount_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - maxNodeCount_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - autoprovisioned_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: - { - locationPolicy_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: - { - totalMinNodeCount_ = input.readInt32(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 56: - { - totalMaxNodeCount_ = input.readInt32(); - bitField0_ |= 0x00000040; - break; - } // case 56 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Is autoscaling enabled for this node pool.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - enabled_ = false; - onChanged(); - return this; - } - - private int minNodeCount_; - /** - * - * - *
-     * Minimum number of nodes for one location 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 for one location 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Minimum number of nodes for one location in the NodePool. Must be >= 1 and
-     * <= max_node_count.
-     * 
- * - * int32 min_node_count = 2; - * - * @return This builder for chaining. - */ - public Builder clearMinNodeCount() { - bitField0_ = (bitField0_ & ~0x00000002); - minNodeCount_ = 0; - onChanged(); - return this; - } - - private int maxNodeCount_; - /** - * - * - *
-     * Maximum number of nodes for one location in the NodePool. Must be >=
-     * min_node_count. There has to be enough quota to scale up the cluster.
-     * 
- * - * int32 max_node_count = 3; - * - * @return The maxNodeCount. - */ - @java.lang.Override - public int getMaxNodeCount() { - return maxNodeCount_; - } - /** - * - * - *
-     * Maximum number of nodes for one location in the NodePool. Must be >=
-     * min_node_count. There has to be enough quota to scale up the cluster.
-     * 
- * - * int32 max_node_count = 3; - * - * @param value The maxNodeCount to set. - * @return This builder for chaining. - */ - public Builder setMaxNodeCount(int value) { - - maxNodeCount_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Maximum number of nodes for one location in the NodePool. Must be >=
-     * min_node_count. There has to be enough quota to scale up the cluster.
-     * 
- * - * int32 max_node_count = 3; - * - * @return This builder for chaining. - */ - public Builder clearMaxNodeCount() { - bitField0_ = (bitField0_ & ~0x00000004); - 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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Can this node pool be deleted automatically.
-     * 
- * - * bool autoprovisioned = 4; - * - * @return This builder for chaining. - */ - public Builder clearAutoprovisioned() { - bitField0_ = (bitField0_ & ~0x00000008); - autoprovisioned_ = false; - onChanged(); - return this; - } - - private int locationPolicy_ = 0; - /** - * - * - *
-     * Location policy used when scaling up a nodepool.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5; - * - * @return The enum numeric value on the wire for locationPolicy. - */ - @java.lang.Override - public int getLocationPolicyValue() { - return locationPolicy_; - } - /** - * - * - *
-     * Location policy used when scaling up a nodepool.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5; - * - * @param value The enum numeric value on the wire for locationPolicy to set. - * @return This builder for chaining. - */ - public Builder setLocationPolicyValue(int value) { - locationPolicy_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Location policy used when scaling up a nodepool.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5; - * - * @return The locationPolicy. - */ - @java.lang.Override - public com.google.container.v1.NodePoolAutoscaling.LocationPolicy getLocationPolicy() { - com.google.container.v1.NodePoolAutoscaling.LocationPolicy result = - com.google.container.v1.NodePoolAutoscaling.LocationPolicy.forNumber(locationPolicy_); - return result == null - ? com.google.container.v1.NodePoolAutoscaling.LocationPolicy.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Location policy used when scaling up a nodepool.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5; - * - * @param value The locationPolicy to set. - * @return This builder for chaining. - */ - public Builder setLocationPolicy( - com.google.container.v1.NodePoolAutoscaling.LocationPolicy value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - locationPolicy_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Location policy used when scaling up a nodepool.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5; - * - * @return This builder for chaining. - */ - public Builder clearLocationPolicy() { - bitField0_ = (bitField0_ & ~0x00000010); - locationPolicy_ = 0; - onChanged(); - return this; - } - - private int totalMinNodeCount_; - /** - * - * - *
-     * Minimum number of nodes in the node pool. Must be greater than 1 less than
-     * total_max_node_count.
-     * The total_*_node_count fields are mutually exclusive with the *_node_count
-     * fields.
-     * 
- * - * int32 total_min_node_count = 6; - * - * @return The totalMinNodeCount. - */ - @java.lang.Override - public int getTotalMinNodeCount() { - return totalMinNodeCount_; - } - /** - * - * - *
-     * Minimum number of nodes in the node pool. Must be greater than 1 less than
-     * total_max_node_count.
-     * The total_*_node_count fields are mutually exclusive with the *_node_count
-     * fields.
-     * 
- * - * int32 total_min_node_count = 6; - * - * @param value The totalMinNodeCount to set. - * @return This builder for chaining. - */ - public Builder setTotalMinNodeCount(int value) { - - totalMinNodeCount_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * Minimum number of nodes in the node pool. Must be greater than 1 less than
-     * total_max_node_count.
-     * The total_*_node_count fields are mutually exclusive with the *_node_count
-     * fields.
-     * 
- * - * int32 total_min_node_count = 6; - * - * @return This builder for chaining. - */ - public Builder clearTotalMinNodeCount() { - bitField0_ = (bitField0_ & ~0x00000020); - totalMinNodeCount_ = 0; - onChanged(); - return this; - } - - private int totalMaxNodeCount_; - /** - * - * - *
-     * Maximum number of nodes in the node pool. Must be greater than
-     * total_min_node_count. There has to be enough quota to scale up the cluster.
-     * The total_*_node_count fields are mutually exclusive with the *_node_count
-     * fields.
-     * 
- * - * int32 total_max_node_count = 7; - * - * @return The totalMaxNodeCount. - */ - @java.lang.Override - public int getTotalMaxNodeCount() { - return totalMaxNodeCount_; - } - /** - * - * - *
-     * Maximum number of nodes in the node pool. Must be greater than
-     * total_min_node_count. There has to be enough quota to scale up the cluster.
-     * The total_*_node_count fields are mutually exclusive with the *_node_count
-     * fields.
-     * 
- * - * int32 total_max_node_count = 7; - * - * @param value The totalMaxNodeCount to set. - * @return This builder for chaining. - */ - public Builder setTotalMaxNodeCount(int value) { - - totalMaxNodeCount_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-     * Maximum number of nodes in the node pool. Must be greater than
-     * total_min_node_count. There has to be enough quota to scale up the cluster.
-     * The total_*_node_count fields are mutually exclusive with the *_node_count
-     * fields.
-     * 
- * - * int32 total_max_node_count = 7; - * - * @return This builder for chaining. - */ - public Builder clearTotalMaxNodeCount() { - bitField0_ = (bitField0_ & ~0x00000040); - totalMaxNodeCount_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.NodePoolAutoscaling) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.NodePoolAutoscaling) - private static final com.google.container.v1.NodePoolAutoscaling DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.NodePoolAutoscaling(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.NodePoolAutoscaling getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoscalingOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoscalingOrBuilder.java deleted file mode 100644 index 0c95251aa216..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoscalingOrBuilder.java +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface NodePoolAutoscalingOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.NodePoolAutoscaling) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Is autoscaling enabled for this node pool.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); - - /** - * - * - *
-   * Minimum number of nodes for one location in the NodePool. Must be >= 1 and
-   * <= max_node_count.
-   * 
- * - * int32 min_node_count = 2; - * - * @return The minNodeCount. - */ - int getMinNodeCount(); - - /** - * - * - *
-   * Maximum number of nodes for one location in the NodePool. Must be >=
-   * min_node_count. There has to be enough quota to scale up the cluster.
-   * 
- * - * int32 max_node_count = 3; - * - * @return The maxNodeCount. - */ - int getMaxNodeCount(); - - /** - * - * - *
-   * Can this node pool be deleted automatically.
-   * 
- * - * bool autoprovisioned = 4; - * - * @return The autoprovisioned. - */ - boolean getAutoprovisioned(); - - /** - * - * - *
-   * Location policy used when scaling up a nodepool.
-   * 
- * - * .google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5; - * - * @return The enum numeric value on the wire for locationPolicy. - */ - int getLocationPolicyValue(); - /** - * - * - *
-   * Location policy used when scaling up a nodepool.
-   * 
- * - * .google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5; - * - * @return The locationPolicy. - */ - com.google.container.v1.NodePoolAutoscaling.LocationPolicy getLocationPolicy(); - - /** - * - * - *
-   * Minimum number of nodes in the node pool. Must be greater than 1 less than
-   * total_max_node_count.
-   * The total_*_node_count fields are mutually exclusive with the *_node_count
-   * fields.
-   * 
- * - * int32 total_min_node_count = 6; - * - * @return The totalMinNodeCount. - */ - int getTotalMinNodeCount(); - - /** - * - * - *
-   * Maximum number of nodes in the node pool. Must be greater than
-   * total_min_node_count. There has to be enough quota to scale up the cluster.
-   * The total_*_node_count fields are mutually exclusive with the *_node_count
-   * fields.
-   * 
- * - * int32 total_max_node_count = 7; - * - * @return The totalMaxNodeCount. - */ - int getTotalMaxNodeCount(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolDefaults.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolDefaults.java deleted file mode 100644 index f9cfb2a90b85..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolDefaults.java +++ /dev/null @@ -1,725 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Subset of Nodepool message that has defaults.
- * 
- * - * Protobuf type {@code google.container.v1.NodePoolDefaults} - */ -public final class NodePoolDefaults extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.NodePoolDefaults) - NodePoolDefaultsOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodePoolDefaults.newBuilder() to construct. - private NodePoolDefaults(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NodePoolDefaults() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NodePoolDefaults(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePoolDefaults_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePoolDefaults_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodePoolDefaults.class, - com.google.container.v1.NodePoolDefaults.Builder.class); - } - - private int bitField0_; - public static final int NODE_CONFIG_DEFAULTS_FIELD_NUMBER = 1; - private com.google.container.v1.NodeConfigDefaults nodeConfigDefaults_; - /** - * - * - *
-   * Subset of NodeConfig message that has defaults.
-   * 
- * - * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; - * - * @return Whether the nodeConfigDefaults field is set. - */ - @java.lang.Override - public boolean hasNodeConfigDefaults() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Subset of NodeConfig message that has defaults.
-   * 
- * - * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; - * - * @return The nodeConfigDefaults. - */ - @java.lang.Override - public com.google.container.v1.NodeConfigDefaults getNodeConfigDefaults() { - return nodeConfigDefaults_ == null - ? com.google.container.v1.NodeConfigDefaults.getDefaultInstance() - : nodeConfigDefaults_; - } - /** - * - * - *
-   * Subset of NodeConfig message that has defaults.
-   * 
- * - * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; - */ - @java.lang.Override - public com.google.container.v1.NodeConfigDefaultsOrBuilder getNodeConfigDefaultsOrBuilder() { - return nodeConfigDefaults_ == null - ? com.google.container.v1.NodeConfigDefaults.getDefaultInstance() - : nodeConfigDefaults_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getNodeConfigDefaults()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNodeConfigDefaults()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.NodePoolDefaults)) { - return super.equals(obj); - } - com.google.container.v1.NodePoolDefaults other = (com.google.container.v1.NodePoolDefaults) obj; - - if (hasNodeConfigDefaults() != other.hasNodeConfigDefaults()) return false; - if (hasNodeConfigDefaults()) { - if (!getNodeConfigDefaults().equals(other.getNodeConfigDefaults())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasNodeConfigDefaults()) { - hash = (37 * hash) + NODE_CONFIG_DEFAULTS_FIELD_NUMBER; - hash = (53 * hash) + getNodeConfigDefaults().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.NodePoolDefaults parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodePoolDefaults parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodePoolDefaults parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodePoolDefaults parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodePoolDefaults parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodePoolDefaults parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodePoolDefaults parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodePoolDefaults parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NodePoolDefaults parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodePoolDefaults parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NodePoolDefaults parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodePoolDefaults parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.NodePoolDefaults prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Subset of Nodepool message that has defaults.
-   * 
- * - * Protobuf type {@code google.container.v1.NodePoolDefaults} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.NodePoolDefaults) - com.google.container.v1.NodePoolDefaultsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePoolDefaults_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePoolDefaults_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodePoolDefaults.class, - com.google.container.v1.NodePoolDefaults.Builder.class); - } - - // Construct using com.google.container.v1.NodePoolDefaults.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getNodeConfigDefaultsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - nodeConfigDefaults_ = null; - if (nodeConfigDefaultsBuilder_ != null) { - nodeConfigDefaultsBuilder_.dispose(); - nodeConfigDefaultsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePoolDefaults_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NodePoolDefaults getDefaultInstanceForType() { - return com.google.container.v1.NodePoolDefaults.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NodePoolDefaults build() { - com.google.container.v1.NodePoolDefaults result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NodePoolDefaults buildPartial() { - com.google.container.v1.NodePoolDefaults result = - new com.google.container.v1.NodePoolDefaults(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.NodePoolDefaults result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.nodeConfigDefaults_ = - nodeConfigDefaultsBuilder_ == null - ? nodeConfigDefaults_ - : nodeConfigDefaultsBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NodePoolDefaults) { - return mergeFrom((com.google.container.v1.NodePoolDefaults) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NodePoolDefaults other) { - if (other == com.google.container.v1.NodePoolDefaults.getDefaultInstance()) return this; - if (other.hasNodeConfigDefaults()) { - mergeNodeConfigDefaults(other.getNodeConfigDefaults()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage( - getNodeConfigDefaultsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.container.v1.NodeConfigDefaults nodeConfigDefaults_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeConfigDefaults, - com.google.container.v1.NodeConfigDefaults.Builder, - com.google.container.v1.NodeConfigDefaultsOrBuilder> - nodeConfigDefaultsBuilder_; - /** - * - * - *
-     * Subset of NodeConfig message that has defaults.
-     * 
- * - * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; - * - * @return Whether the nodeConfigDefaults field is set. - */ - public boolean hasNodeConfigDefaults() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Subset of NodeConfig message that has defaults.
-     * 
- * - * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; - * - * @return The nodeConfigDefaults. - */ - public com.google.container.v1.NodeConfigDefaults getNodeConfigDefaults() { - if (nodeConfigDefaultsBuilder_ == null) { - return nodeConfigDefaults_ == null - ? com.google.container.v1.NodeConfigDefaults.getDefaultInstance() - : nodeConfigDefaults_; - } else { - return nodeConfigDefaultsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Subset of NodeConfig message that has defaults.
-     * 
- * - * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; - */ - public Builder setNodeConfigDefaults(com.google.container.v1.NodeConfigDefaults value) { - if (nodeConfigDefaultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - nodeConfigDefaults_ = value; - } else { - nodeConfigDefaultsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Subset of NodeConfig message that has defaults.
-     * 
- * - * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; - */ - public Builder setNodeConfigDefaults( - com.google.container.v1.NodeConfigDefaults.Builder builderForValue) { - if (nodeConfigDefaultsBuilder_ == null) { - nodeConfigDefaults_ = builderForValue.build(); - } else { - nodeConfigDefaultsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Subset of NodeConfig message that has defaults.
-     * 
- * - * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; - */ - public Builder mergeNodeConfigDefaults(com.google.container.v1.NodeConfigDefaults value) { - if (nodeConfigDefaultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && nodeConfigDefaults_ != null - && nodeConfigDefaults_ - != com.google.container.v1.NodeConfigDefaults.getDefaultInstance()) { - getNodeConfigDefaultsBuilder().mergeFrom(value); - } else { - nodeConfigDefaults_ = value; - } - } else { - nodeConfigDefaultsBuilder_.mergeFrom(value); - } - if (nodeConfigDefaults_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Subset of NodeConfig message that has defaults.
-     * 
- * - * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; - */ - public Builder clearNodeConfigDefaults() { - bitField0_ = (bitField0_ & ~0x00000001); - nodeConfigDefaults_ = null; - if (nodeConfigDefaultsBuilder_ != null) { - nodeConfigDefaultsBuilder_.dispose(); - nodeConfigDefaultsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Subset of NodeConfig message that has defaults.
-     * 
- * - * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; - */ - public com.google.container.v1.NodeConfigDefaults.Builder getNodeConfigDefaultsBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getNodeConfigDefaultsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Subset of NodeConfig message that has defaults.
-     * 
- * - * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; - */ - public com.google.container.v1.NodeConfigDefaultsOrBuilder getNodeConfigDefaultsOrBuilder() { - if (nodeConfigDefaultsBuilder_ != null) { - return nodeConfigDefaultsBuilder_.getMessageOrBuilder(); - } else { - return nodeConfigDefaults_ == null - ? com.google.container.v1.NodeConfigDefaults.getDefaultInstance() - : nodeConfigDefaults_; - } - } - /** - * - * - *
-     * Subset of NodeConfig message that has defaults.
-     * 
- * - * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeConfigDefaults, - com.google.container.v1.NodeConfigDefaults.Builder, - com.google.container.v1.NodeConfigDefaultsOrBuilder> - getNodeConfigDefaultsFieldBuilder() { - if (nodeConfigDefaultsBuilder_ == null) { - nodeConfigDefaultsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeConfigDefaults, - com.google.container.v1.NodeConfigDefaults.Builder, - com.google.container.v1.NodeConfigDefaultsOrBuilder>( - getNodeConfigDefaults(), getParentForChildren(), isClean()); - nodeConfigDefaults_ = null; - } - return nodeConfigDefaultsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.NodePoolDefaults) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.NodePoolDefaults) - private static final com.google.container.v1.NodePoolDefaults DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.NodePoolDefaults(); - } - - public static com.google.container.v1.NodePoolDefaults getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodePoolDefaults parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.NodePoolDefaults getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolDefaultsOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolDefaultsOrBuilder.java deleted file mode 100644 index 52f08b274a5c..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolDefaultsOrBuilder.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface NodePoolDefaultsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.NodePoolDefaults) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Subset of NodeConfig message that has defaults.
-   * 
- * - * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; - * - * @return Whether the nodeConfigDefaults field is set. - */ - boolean hasNodeConfigDefaults(); - /** - * - * - *
-   * Subset of NodeConfig message that has defaults.
-   * 
- * - * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; - * - * @return The nodeConfigDefaults. - */ - com.google.container.v1.NodeConfigDefaults getNodeConfigDefaults(); - /** - * - * - *
-   * Subset of NodeConfig message that has defaults.
-   * 
- * - * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; - */ - com.google.container.v1.NodeConfigDefaultsOrBuilder getNodeConfigDefaultsOrBuilder(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolLoggingConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolLoggingConfig.java deleted file mode 100644 index f2df5137a83c..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolLoggingConfig.java +++ /dev/null @@ -1,723 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * NodePoolLoggingConfig specifies logging configuration for nodepools.
- * 
- * - * Protobuf type {@code google.container.v1.NodePoolLoggingConfig} - */ -public final class NodePoolLoggingConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.NodePoolLoggingConfig) - NodePoolLoggingConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodePoolLoggingConfig.newBuilder() to construct. - private NodePoolLoggingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NodePoolLoggingConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NodePoolLoggingConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePoolLoggingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePoolLoggingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodePoolLoggingConfig.class, - com.google.container.v1.NodePoolLoggingConfig.Builder.class); - } - - private int bitField0_; - public static final int VARIANT_CONFIG_FIELD_NUMBER = 1; - private com.google.container.v1.LoggingVariantConfig variantConfig_; - /** - * - * - *
-   * Logging variant configuration.
-   * 
- * - * .google.container.v1.LoggingVariantConfig variant_config = 1; - * - * @return Whether the variantConfig field is set. - */ - @java.lang.Override - public boolean hasVariantConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Logging variant configuration.
-   * 
- * - * .google.container.v1.LoggingVariantConfig variant_config = 1; - * - * @return The variantConfig. - */ - @java.lang.Override - public com.google.container.v1.LoggingVariantConfig getVariantConfig() { - return variantConfig_ == null - ? com.google.container.v1.LoggingVariantConfig.getDefaultInstance() - : variantConfig_; - } - /** - * - * - *
-   * Logging variant configuration.
-   * 
- * - * .google.container.v1.LoggingVariantConfig variant_config = 1; - */ - @java.lang.Override - public com.google.container.v1.LoggingVariantConfigOrBuilder getVariantConfigOrBuilder() { - return variantConfig_ == null - ? com.google.container.v1.LoggingVariantConfig.getDefaultInstance() - : variantConfig_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVariantConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getVariantConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.NodePoolLoggingConfig)) { - return super.equals(obj); - } - com.google.container.v1.NodePoolLoggingConfig other = - (com.google.container.v1.NodePoolLoggingConfig) obj; - - if (hasVariantConfig() != other.hasVariantConfig()) return false; - if (hasVariantConfig()) { - if (!getVariantConfig().equals(other.getVariantConfig())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasVariantConfig()) { - hash = (37 * hash) + VARIANT_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getVariantConfig().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.NodePoolLoggingConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodePoolLoggingConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodePoolLoggingConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodePoolLoggingConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodePoolLoggingConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodePoolLoggingConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodePoolLoggingConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodePoolLoggingConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NodePoolLoggingConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodePoolLoggingConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NodePoolLoggingConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodePoolLoggingConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.NodePoolLoggingConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * NodePoolLoggingConfig specifies logging configuration for nodepools.
-   * 
- * - * Protobuf type {@code google.container.v1.NodePoolLoggingConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.NodePoolLoggingConfig) - com.google.container.v1.NodePoolLoggingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePoolLoggingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePoolLoggingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodePoolLoggingConfig.class, - com.google.container.v1.NodePoolLoggingConfig.Builder.class); - } - - // Construct using com.google.container.v1.NodePoolLoggingConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getVariantConfigFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - variantConfig_ = null; - if (variantConfigBuilder_ != null) { - variantConfigBuilder_.dispose(); - variantConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePoolLoggingConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NodePoolLoggingConfig getDefaultInstanceForType() { - return com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NodePoolLoggingConfig build() { - com.google.container.v1.NodePoolLoggingConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NodePoolLoggingConfig buildPartial() { - com.google.container.v1.NodePoolLoggingConfig result = - new com.google.container.v1.NodePoolLoggingConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.NodePoolLoggingConfig result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.variantConfig_ = - variantConfigBuilder_ == null ? variantConfig_ : variantConfigBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NodePoolLoggingConfig) { - return mergeFrom((com.google.container.v1.NodePoolLoggingConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NodePoolLoggingConfig other) { - if (other == com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance()) return this; - if (other.hasVariantConfig()) { - mergeVariantConfig(other.getVariantConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getVariantConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.container.v1.LoggingVariantConfig variantConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.LoggingVariantConfig, - com.google.container.v1.LoggingVariantConfig.Builder, - com.google.container.v1.LoggingVariantConfigOrBuilder> - variantConfigBuilder_; - /** - * - * - *
-     * Logging variant configuration.
-     * 
- * - * .google.container.v1.LoggingVariantConfig variant_config = 1; - * - * @return Whether the variantConfig field is set. - */ - public boolean hasVariantConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Logging variant configuration.
-     * 
- * - * .google.container.v1.LoggingVariantConfig variant_config = 1; - * - * @return The variantConfig. - */ - public com.google.container.v1.LoggingVariantConfig getVariantConfig() { - if (variantConfigBuilder_ == null) { - return variantConfig_ == null - ? com.google.container.v1.LoggingVariantConfig.getDefaultInstance() - : variantConfig_; - } else { - return variantConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Logging variant configuration.
-     * 
- * - * .google.container.v1.LoggingVariantConfig variant_config = 1; - */ - public Builder setVariantConfig(com.google.container.v1.LoggingVariantConfig value) { - if (variantConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - variantConfig_ = value; - } else { - variantConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Logging variant configuration.
-     * 
- * - * .google.container.v1.LoggingVariantConfig variant_config = 1; - */ - public Builder setVariantConfig( - com.google.container.v1.LoggingVariantConfig.Builder builderForValue) { - if (variantConfigBuilder_ == null) { - variantConfig_ = builderForValue.build(); - } else { - variantConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Logging variant configuration.
-     * 
- * - * .google.container.v1.LoggingVariantConfig variant_config = 1; - */ - public Builder mergeVariantConfig(com.google.container.v1.LoggingVariantConfig value) { - if (variantConfigBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && variantConfig_ != null - && variantConfig_ - != com.google.container.v1.LoggingVariantConfig.getDefaultInstance()) { - getVariantConfigBuilder().mergeFrom(value); - } else { - variantConfig_ = value; - } - } else { - variantConfigBuilder_.mergeFrom(value); - } - if (variantConfig_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Logging variant configuration.
-     * 
- * - * .google.container.v1.LoggingVariantConfig variant_config = 1; - */ - public Builder clearVariantConfig() { - bitField0_ = (bitField0_ & ~0x00000001); - variantConfig_ = null; - if (variantConfigBuilder_ != null) { - variantConfigBuilder_.dispose(); - variantConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Logging variant configuration.
-     * 
- * - * .google.container.v1.LoggingVariantConfig variant_config = 1; - */ - public com.google.container.v1.LoggingVariantConfig.Builder getVariantConfigBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getVariantConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Logging variant configuration.
-     * 
- * - * .google.container.v1.LoggingVariantConfig variant_config = 1; - */ - public com.google.container.v1.LoggingVariantConfigOrBuilder getVariantConfigOrBuilder() { - if (variantConfigBuilder_ != null) { - return variantConfigBuilder_.getMessageOrBuilder(); - } else { - return variantConfig_ == null - ? com.google.container.v1.LoggingVariantConfig.getDefaultInstance() - : variantConfig_; - } - } - /** - * - * - *
-     * Logging variant configuration.
-     * 
- * - * .google.container.v1.LoggingVariantConfig variant_config = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.LoggingVariantConfig, - com.google.container.v1.LoggingVariantConfig.Builder, - com.google.container.v1.LoggingVariantConfigOrBuilder> - getVariantConfigFieldBuilder() { - if (variantConfigBuilder_ == null) { - variantConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.LoggingVariantConfig, - com.google.container.v1.LoggingVariantConfig.Builder, - com.google.container.v1.LoggingVariantConfigOrBuilder>( - getVariantConfig(), getParentForChildren(), isClean()); - variantConfig_ = null; - } - return variantConfigBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.NodePoolLoggingConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.NodePoolLoggingConfig) - private static final com.google.container.v1.NodePoolLoggingConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.NodePoolLoggingConfig(); - } - - public static com.google.container.v1.NodePoolLoggingConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodePoolLoggingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.NodePoolLoggingConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolLoggingConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolLoggingConfigOrBuilder.java deleted file mode 100644 index 097ccc209e6d..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolLoggingConfigOrBuilder.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface NodePoolLoggingConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.NodePoolLoggingConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Logging variant configuration.
-   * 
- * - * .google.container.v1.LoggingVariantConfig variant_config = 1; - * - * @return Whether the variantConfig field is set. - */ - boolean hasVariantConfig(); - /** - * - * - *
-   * Logging variant configuration.
-   * 
- * - * .google.container.v1.LoggingVariantConfig variant_config = 1; - * - * @return The variantConfig. - */ - com.google.container.v1.LoggingVariantConfig getVariantConfig(); - /** - * - * - *
-   * Logging variant configuration.
-   * 
- * - * .google.container.v1.LoggingVariantConfig variant_config = 1; - */ - com.google.container.v1.LoggingVariantConfigOrBuilder getVariantConfigOrBuilder(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolOrBuilder.java deleted file mode 100644 index d4a1ed14f63e..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolOrBuilder.java +++ /dev/null @@ -1,797 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface NodePoolOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.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.v1.NodeConfig config = 2; - * - * @return Whether the config field is set. - */ - boolean hasConfig(); - /** - * - * - *
-   * The node configuration of the pool.
-   * 
- * - * .google.container.v1.NodeConfig config = 2; - * - * @return The config. - */ - com.google.container.v1.NodeConfig getConfig(); - /** - * - * - *
-   * The node configuration of the pool.
-   * 
- * - * .google.container.v1.NodeConfig config = 2; - */ - com.google.container.v1.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); - - /** - * - * - *
-   * Networking configuration for this NodePool. If specified, it overrides the
-   * cluster-level defaults.
-   * 
- * - * .google.container.v1.NodeNetworkConfig network_config = 14; - * - * @return Whether the networkConfig field is set. - */ - boolean hasNetworkConfig(); - /** - * - * - *
-   * Networking configuration for this NodePool. If specified, it overrides the
-   * cluster-level defaults.
-   * 
- * - * .google.container.v1.NodeNetworkConfig network_config = 14; - * - * @return The networkConfig. - */ - com.google.container.v1.NodeNetworkConfig getNetworkConfig(); - /** - * - * - *
-   * Networking configuration for this NodePool. If specified, it overrides the
-   * cluster-level defaults.
-   * 
- * - * .google.container.v1.NodeNetworkConfig network_config = 14; - */ - com.google.container.v1.NodeNetworkConfigOrBuilder getNetworkConfigOrBuilder(); - - /** - * - * - *
-   * [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 Kubernetes running on this NodePool's nodes. If unspecified,
-   * it defaults as described
-   * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version).
-   * 
- * - * string version = 101; - * - * @return The version. - */ - java.lang.String getVersion(); - /** - * - * - *
-   * The version of Kubernetes running on this NodePool's nodes. If unspecified,
-   * it defaults as described
-   * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version).
-   * 
- * - * 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.
-   * During the node pool blue-green upgrade operation, the URLs contain both
-   * blue and green resources.
-   * 
- * - * 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.
-   * During the node pool blue-green upgrade operation, the URLs contain both
-   * blue and green resources.
-   * 
- * - * 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.
-   * During the node pool blue-green upgrade operation, the URLs contain both
-   * blue and green resources.
-   * 
- * - * 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.
-   * During the node pool blue-green upgrade operation, the URLs contain both
-   * blue and green resources.
-   * 
- * - * 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.v1.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.v1.NodePool.Status status = 103; - * - * @return The status. - */ - com.google.container.v1.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]; - * - * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3542 - * @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]; - * - * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3542 - * @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.v1.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.v1.NodePoolAutoscaling autoscaling = 4; - * - * @return The autoscaling. - */ - com.google.container.v1.NodePoolAutoscaling getAutoscaling(); - /** - * - * - *
-   * Autoscaler configuration for this NodePool. Autoscaler is enabled
-   * only if a valid configuration is present.
-   * 
- * - * .google.container.v1.NodePoolAutoscaling autoscaling = 4; - */ - com.google.container.v1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder(); - - /** - * - * - *
-   * NodeManagement configuration for this NodePool.
-   * 
- * - * .google.container.v1.NodeManagement management = 5; - * - * @return Whether the management field is set. - */ - boolean hasManagement(); - /** - * - * - *
-   * NodeManagement configuration for this NodePool.
-   * 
- * - * .google.container.v1.NodeManagement management = 5; - * - * @return The management. - */ - com.google.container.v1.NodeManagement getManagement(); - /** - * - * - *
-   * NodeManagement configuration for this NodePool.
-   * 
- * - * .google.container.v1.NodeManagement management = 5; - */ - com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder(); - - /** - * - * - *
-   * The constraint on the maximum number of pods that can be run
-   * simultaneously on a node in the node pool.
-   * 
- * - * .google.container.v1.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.v1.MaxPodsConstraint max_pods_constraint = 6; - * - * @return The maxPodsConstraint. - */ - com.google.container.v1.MaxPodsConstraint getMaxPodsConstraint(); - /** - * - * - *
-   * The constraint on the maximum number of pods that can be run
-   * simultaneously on a node in the node pool.
-   * 
- * - * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; - */ - com.google.container.v1.MaxPodsConstraintOrBuilder getMaxPodsConstraintOrBuilder(); - - /** - * - * - *
-   * Which conditions caused the current node pool state.
-   * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - java.util.List getConditionsList(); - /** - * - * - *
-   * Which conditions caused the current node pool state.
-   * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - com.google.container.v1.StatusCondition getConditions(int index); - /** - * - * - *
-   * Which conditions caused the current node pool state.
-   * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - int getConditionsCount(); - /** - * - * - *
-   * Which conditions caused the current node pool state.
-   * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - java.util.List - getConditionsOrBuilderList(); - /** - * - * - *
-   * Which conditions caused the current node pool state.
-   * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - com.google.container.v1.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.v1.NodePool.UpgradeSettings upgrade_settings = 107; - * - * @return Whether the upgradeSettings field is set. - */ - boolean hasUpgradeSettings(); - /** - * - * - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - * - * @return The upgradeSettings. - */ - com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings(); - /** - * - * - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - */ - com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder(); - - /** - * - * - *
-   * Specifies the node placement policy.
-   * 
- * - * .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; - * - * @return Whether the placementPolicy field is set. - */ - boolean hasPlacementPolicy(); - /** - * - * - *
-   * Specifies the node placement policy.
-   * 
- * - * .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; - * - * @return The placementPolicy. - */ - com.google.container.v1.NodePool.PlacementPolicy getPlacementPolicy(); - /** - * - * - *
-   * Specifies the node placement policy.
-   * 
- * - * .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; - */ - com.google.container.v1.NodePool.PlacementPolicyOrBuilder getPlacementPolicyOrBuilder(); - - /** - * - * - *
-   * Output only. [Output only] Update info contains relevant information during
-   * a node pool update.
-   * 
- * - * - * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateInfo field is set. - */ - boolean hasUpdateInfo(); - /** - * - * - *
-   * Output only. [Output only] Update info contains relevant information during
-   * a node pool update.
-   * 
- * - * - * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateInfo. - */ - com.google.container.v1.NodePool.UpdateInfo getUpdateInfo(); - /** - * - * - *
-   * Output only. [Output only] Update info contains relevant information during
-   * a node pool update.
-   * 
- * - * - * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.container.v1.NodePool.UpdateInfoOrBuilder getUpdateInfoOrBuilder(); - - /** - * - * - *
-   * This checksum is computed by the server based on the value of node pool
-   * fields, and may be sent on update requests to ensure the client has an
-   * up-to-date value before proceeding.
-   * 
- * - * string etag = 110; - * - * @return The etag. - */ - java.lang.String getEtag(); - /** - * - * - *
-   * This checksum is computed by the server based on the value of node pool
-   * fields, and may be sent on update requests to ensure the client has an
-   * up-to-date value before proceeding.
-   * 
- * - * string etag = 110; - * - * @return The bytes for etag. - */ - com.google.protobuf.ByteString getEtagBytes(); - - /** - * - * - *
-   * Specifies the configuration of queued provisioning.
-   * 
- * - * .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; - * - * @return Whether the queuedProvisioning field is set. - */ - boolean hasQueuedProvisioning(); - /** - * - * - *
-   * Specifies the configuration of queued provisioning.
-   * 
- * - * .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; - * - * @return The queuedProvisioning. - */ - com.google.container.v1.NodePool.QueuedProvisioning getQueuedProvisioning(); - /** - * - * - *
-   * Specifies the configuration of queued provisioning.
-   * 
- * - * .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; - */ - com.google.container.v1.NodePool.QueuedProvisioningOrBuilder getQueuedProvisioningOrBuilder(); - - /** - * - * - *
-   * Enable best effort provisioning for nodes
-   * 
- * - * .google.container.v1.BestEffortProvisioning best_effort_provisioning = 113; - * - * @return Whether the bestEffortProvisioning field is set. - */ - boolean hasBestEffortProvisioning(); - /** - * - * - *
-   * Enable best effort provisioning for nodes
-   * 
- * - * .google.container.v1.BestEffortProvisioning best_effort_provisioning = 113; - * - * @return The bestEffortProvisioning. - */ - com.google.container.v1.BestEffortProvisioning getBestEffortProvisioning(); - /** - * - * - *
-   * Enable best effort provisioning for nodes
-   * 
- * - * .google.container.v1.BestEffortProvisioning best_effort_provisioning = 113; - */ - com.google.container.v1.BestEffortProvisioningOrBuilder getBestEffortProvisioningOrBuilder(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolUpdateStrategy.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolUpdateStrategy.java deleted file mode 100644 index 4830b0e95fed..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolUpdateStrategy.java +++ /dev/null @@ -1,184 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Strategy used for node pool update.
- * 
- * - * Protobuf enum {@code google.container.v1.NodePoolUpdateStrategy} - */ -public enum NodePoolUpdateStrategy implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Default value if unset. GKE internally defaults the update strategy to
-   * SURGE for unspecified strategies.
-   * 
- * - * NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED = 0; - */ - NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED(0), - /** - * - * - *
-   * blue-green upgrade.
-   * 
- * - * BLUE_GREEN = 2; - */ - BLUE_GREEN(2), - /** - * - * - *
-   * SURGE is the traditional way of upgrade a node pool.
-   * max_surge and max_unavailable determines the level of upgrade parallelism.
-   * 
- * - * SURGE = 3; - */ - SURGE(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * Default value if unset. GKE internally defaults the update strategy to
-   * SURGE for unspecified strategies.
-   * 
- * - * NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED = 0; - */ - public static final int NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * blue-green upgrade.
-   * 
- * - * BLUE_GREEN = 2; - */ - public static final int BLUE_GREEN_VALUE = 2; - /** - * - * - *
-   * SURGE is the traditional way of upgrade a node pool.
-   * max_surge and max_unavailable determines the level of upgrade parallelism.
-   * 
- * - * SURGE = 3; - */ - public static final int SURGE_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 NodePoolUpdateStrategy 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 NodePoolUpdateStrategy forNumber(int value) { - switch (value) { - case 0: - return NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED; - case 2: - return BLUE_GREEN; - case 3: - return SURGE; - 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 NodePoolUpdateStrategy findValueByNumber(int number) { - return NodePoolUpdateStrategy.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto.getDescriptor().getEnumTypes().get(3); - } - - private static final NodePoolUpdateStrategy[] VALUES = values(); - - public static NodePoolUpdateStrategy 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 NodePoolUpdateStrategy(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.NodePoolUpdateStrategy) -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaint.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaint.java deleted file mode 100644 index 959ba4b23b60..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaint.java +++ /dev/null @@ -1,1140 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Kubernetes taint is composed 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.v1.NodeTaint} - */ -public final class NodeTaint extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeTaint_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeTaint_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodeTaint.class, - com.google.container.v1.NodeTaint.Builder.class); - } - - /** - * - * - *
-   * Possible values for Effect in taint.
-   * 
- * - * Protobuf enum {@code google.container.v1.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.v1.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.v1.NodeTaint.Effect) - } - - public static final int KEY_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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_ = 0; - /** - * - * - *
-   * Effect for taint.
-   * 
- * - * .google.container.v1.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.v1.NodeTaint.Effect effect = 3; - * - * @return The effect. - */ - @java.lang.Override - public com.google.container.v1.NodeTaint.Effect getEffect() { - com.google.container.v1.NodeTaint.Effect result = - com.google.container.v1.NodeTaint.Effect.forNumber(effect_); - return result == null ? com.google.container.v1.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); - } - if (effect_ != com.google.container.v1.NodeTaint.Effect.EFFECT_UNSPECIFIED.getNumber()) { - output.writeEnum(3, effect_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); - } - if (effect_ != com.google.container.v1.NodeTaint.Effect.EFFECT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, effect_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.NodeTaint)) { - return super.equals(obj); - } - com.google.container.v1.NodeTaint other = (com.google.container.v1.NodeTaint) obj; - - if (!getKey().equals(other.getKey())) return false; - if (!getValue().equals(other.getValue())) return false; - if (effect_ != other.effect_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.NodeTaint parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.NodeTaint parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.NodeTaint parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodeTaint parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodeTaint parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.NodeTaint parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.NodeTaint parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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 composed 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.v1.NodeTaint} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.NodeTaint) - com.google.container.v1.NodeTaintOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeTaint_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeTaint_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodeTaint.class, - com.google.container.v1.NodeTaint.Builder.class); - } - - // Construct using com.google.container.v1.NodeTaint.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - key_ = ""; - value_ = ""; - effect_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeTaint_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NodeTaint getDefaultInstanceForType() { - return com.google.container.v1.NodeTaint.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NodeTaint build() { - com.google.container.v1.NodeTaint result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NodeTaint buildPartial() { - com.google.container.v1.NodeTaint result = new com.google.container.v1.NodeTaint(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.NodeTaint result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.key_ = key_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.value_ = value_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.effect_ = effect_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NodeTaint) { - return mergeFrom((com.google.container.v1.NodeTaint) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NodeTaint other) { - if (other == com.google.container.v1.NodeTaint.getDefaultInstance()) return this; - if (!other.getKey().isEmpty()) { - key_ = other.key_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getValue().isEmpty()) { - value_ = other.value_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.effect_ != 0) { - setEffectValue(other.getEffectValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - key_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - value_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - effect_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Key for taint.
-     * 
- * - * string key = 1; - * - * @return This builder for chaining. - */ - public Builder clearKey() { - key_ = getDefaultInstance().getKey(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Value for taint.
-     * 
- * - * string value = 2; - * - * @return This builder for chaining. - */ - public Builder clearValue() { - value_ = getDefaultInstance().getValue(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private int effect_ = 0; - /** - * - * - *
-     * Effect for taint.
-     * 
- * - * .google.container.v1.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.v1.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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Effect for taint.
-     * 
- * - * .google.container.v1.NodeTaint.Effect effect = 3; - * - * @return The effect. - */ - @java.lang.Override - public com.google.container.v1.NodeTaint.Effect getEffect() { - com.google.container.v1.NodeTaint.Effect result = - com.google.container.v1.NodeTaint.Effect.forNumber(effect_); - return result == null ? com.google.container.v1.NodeTaint.Effect.UNRECOGNIZED : result; - } - /** - * - * - *
-     * Effect for taint.
-     * 
- * - * .google.container.v1.NodeTaint.Effect effect = 3; - * - * @param value The effect to set. - * @return This builder for chaining. - */ - public Builder setEffect(com.google.container.v1.NodeTaint.Effect value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - effect_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Effect for taint.
-     * 
- * - * .google.container.v1.NodeTaint.Effect effect = 3; - * - * @return This builder for chaining. - */ - public Builder clearEffect() { - bitField0_ = (bitField0_ & ~0x00000004); - 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.v1.NodeTaint) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.NodeTaint) - private static final com.google.container.v1.NodeTaint DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.NodeTaint(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.NodeTaint getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaintOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaintOrBuilder.java deleted file mode 100644 index baf8bbc88de1..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaintOrBuilder.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface NodeTaintOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.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.v1.NodeTaint.Effect effect = 3; - * - * @return The enum numeric value on the wire for effect. - */ - int getEffectValue(); - /** - * - * - *
-   * Effect for taint.
-   * 
- * - * .google.container.v1.NodeTaint.Effect effect = 3; - * - * @return The effect. - */ - com.google.container.v1.NodeTaint.Effect getEffect(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaints.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaints.java deleted file mode 100644 index ff893448f124..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaints.java +++ /dev/null @@ -1,930 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Collection of Kubernetes [node
- * taints](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration).
- * 
- * - * Protobuf type {@code google.container.v1.NodeTaints} - */ -public final class NodeTaints extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.NodeTaints) - NodeTaintsOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeTaints.newBuilder() to construct. - private NodeTaints(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NodeTaints() { - taints_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NodeTaints(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeTaints_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeTaints_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodeTaints.class, - com.google.container.v1.NodeTaints.Builder.class); - } - - public static final int TAINTS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List taints_; - /** - * - * - *
-   * List of node taints.
-   * 
- * - * repeated .google.container.v1.NodeTaint taints = 1; - */ - @java.lang.Override - public java.util.List getTaintsList() { - return taints_; - } - /** - * - * - *
-   * List of node taints.
-   * 
- * - * repeated .google.container.v1.NodeTaint taints = 1; - */ - @java.lang.Override - public java.util.List - getTaintsOrBuilderList() { - return taints_; - } - /** - * - * - *
-   * List of node taints.
-   * 
- * - * repeated .google.container.v1.NodeTaint taints = 1; - */ - @java.lang.Override - public int getTaintsCount() { - return taints_.size(); - } - /** - * - * - *
-   * List of node taints.
-   * 
- * - * repeated .google.container.v1.NodeTaint taints = 1; - */ - @java.lang.Override - public com.google.container.v1.NodeTaint getTaints(int index) { - return taints_.get(index); - } - /** - * - * - *
-   * List of node taints.
-   * 
- * - * repeated .google.container.v1.NodeTaint taints = 1; - */ - @java.lang.Override - public com.google.container.v1.NodeTaintOrBuilder getTaintsOrBuilder(int index) { - return taints_.get(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < taints_.size(); i++) { - output.writeMessage(1, taints_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < taints_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, taints_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.NodeTaints)) { - return super.equals(obj); - } - com.google.container.v1.NodeTaints other = (com.google.container.v1.NodeTaints) obj; - - if (!getTaintsList().equals(other.getTaintsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTaintsCount() > 0) { - hash = (37 * hash) + TAINTS_FIELD_NUMBER; - hash = (53 * hash) + getTaintsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.NodeTaints parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodeTaints parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodeTaints parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodeTaints parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodeTaints parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodeTaints parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodeTaints parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodeTaints parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NodeTaints parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodeTaints parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NodeTaints parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodeTaints parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.NodeTaints prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Collection of Kubernetes [node
-   * taints](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration).
-   * 
- * - * Protobuf type {@code google.container.v1.NodeTaints} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.NodeTaints) - com.google.container.v1.NodeTaintsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeTaints_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeTaints_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodeTaints.class, - com.google.container.v1.NodeTaints.Builder.class); - } - - // Construct using com.google.container.v1.NodeTaints.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (taintsBuilder_ == null) { - taints_ = java.util.Collections.emptyList(); - } else { - taints_ = null; - taintsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeTaints_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NodeTaints getDefaultInstanceForType() { - return com.google.container.v1.NodeTaints.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NodeTaints build() { - com.google.container.v1.NodeTaints result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NodeTaints buildPartial() { - com.google.container.v1.NodeTaints result = new com.google.container.v1.NodeTaints(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.container.v1.NodeTaints result) { - if (taintsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - taints_ = java.util.Collections.unmodifiableList(taints_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.taints_ = taints_; - } else { - result.taints_ = taintsBuilder_.build(); - } - } - - private void buildPartial0(com.google.container.v1.NodeTaints result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NodeTaints) { - return mergeFrom((com.google.container.v1.NodeTaints) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NodeTaints other) { - if (other == com.google.container.v1.NodeTaints.getDefaultInstance()) return this; - if (taintsBuilder_ == null) { - if (!other.taints_.isEmpty()) { - if (taints_.isEmpty()) { - taints_ = other.taints_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTaintsIsMutable(); - taints_.addAll(other.taints_); - } - onChanged(); - } - } else { - if (!other.taints_.isEmpty()) { - if (taintsBuilder_.isEmpty()) { - taintsBuilder_.dispose(); - taintsBuilder_ = null; - taints_ = other.taints_; - bitField0_ = (bitField0_ & ~0x00000001); - taintsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTaintsFieldBuilder() - : null; - } else { - taintsBuilder_.addAllMessages(other.taints_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.container.v1.NodeTaint m = - input.readMessage( - com.google.container.v1.NodeTaint.parser(), extensionRegistry); - if (taintsBuilder_ == null) { - ensureTaintsIsMutable(); - taints_.add(m); - } else { - taintsBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List taints_ = - java.util.Collections.emptyList(); - - private void ensureTaintsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - taints_ = new java.util.ArrayList(taints_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.NodeTaint, - com.google.container.v1.NodeTaint.Builder, - com.google.container.v1.NodeTaintOrBuilder> - taintsBuilder_; - - /** - * - * - *
-     * List of node taints.
-     * 
- * - * repeated .google.container.v1.NodeTaint taints = 1; - */ - public java.util.List getTaintsList() { - if (taintsBuilder_ == null) { - return java.util.Collections.unmodifiableList(taints_); - } else { - return taintsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * List of node taints.
-     * 
- * - * repeated .google.container.v1.NodeTaint taints = 1; - */ - public int getTaintsCount() { - if (taintsBuilder_ == null) { - return taints_.size(); - } else { - return taintsBuilder_.getCount(); - } - } - /** - * - * - *
-     * List of node taints.
-     * 
- * - * repeated .google.container.v1.NodeTaint taints = 1; - */ - public com.google.container.v1.NodeTaint getTaints(int index) { - if (taintsBuilder_ == null) { - return taints_.get(index); - } else { - return taintsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * List of node taints.
-     * 
- * - * repeated .google.container.v1.NodeTaint taints = 1; - */ - public Builder setTaints(int index, com.google.container.v1.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 node taints.
-     * 
- * - * repeated .google.container.v1.NodeTaint taints = 1; - */ - public Builder setTaints(int index, com.google.container.v1.NodeTaint.Builder builderForValue) { - if (taintsBuilder_ == null) { - ensureTaintsIsMutable(); - taints_.set(index, builderForValue.build()); - onChanged(); - } else { - taintsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of node taints.
-     * 
- * - * repeated .google.container.v1.NodeTaint taints = 1; - */ - public Builder addTaints(com.google.container.v1.NodeTaint value) { - if (taintsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaintsIsMutable(); - taints_.add(value); - onChanged(); - } else { - taintsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * List of node taints.
-     * 
- * - * repeated .google.container.v1.NodeTaint taints = 1; - */ - public Builder addTaints(int index, com.google.container.v1.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 node taints.
-     * 
- * - * repeated .google.container.v1.NodeTaint taints = 1; - */ - public Builder addTaints(com.google.container.v1.NodeTaint.Builder builderForValue) { - if (taintsBuilder_ == null) { - ensureTaintsIsMutable(); - taints_.add(builderForValue.build()); - onChanged(); - } else { - taintsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of node taints.
-     * 
- * - * repeated .google.container.v1.NodeTaint taints = 1; - */ - public Builder addTaints(int index, com.google.container.v1.NodeTaint.Builder builderForValue) { - if (taintsBuilder_ == null) { - ensureTaintsIsMutable(); - taints_.add(index, builderForValue.build()); - onChanged(); - } else { - taintsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of node taints.
-     * 
- * - * repeated .google.container.v1.NodeTaint taints = 1; - */ - 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 node taints.
-     * 
- * - * repeated .google.container.v1.NodeTaint taints = 1; - */ - public Builder clearTaints() { - if (taintsBuilder_ == null) { - taints_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - taintsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * List of node taints.
-     * 
- * - * repeated .google.container.v1.NodeTaint taints = 1; - */ - public Builder removeTaints(int index) { - if (taintsBuilder_ == null) { - ensureTaintsIsMutable(); - taints_.remove(index); - onChanged(); - } else { - taintsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * List of node taints.
-     * 
- * - * repeated .google.container.v1.NodeTaint taints = 1; - */ - public com.google.container.v1.NodeTaint.Builder getTaintsBuilder(int index) { - return getTaintsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * List of node taints.
-     * 
- * - * repeated .google.container.v1.NodeTaint taints = 1; - */ - public com.google.container.v1.NodeTaintOrBuilder getTaintsOrBuilder(int index) { - if (taintsBuilder_ == null) { - return taints_.get(index); - } else { - return taintsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * List of node taints.
-     * 
- * - * repeated .google.container.v1.NodeTaint taints = 1; - */ - public java.util.List - getTaintsOrBuilderList() { - if (taintsBuilder_ != null) { - return taintsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(taints_); - } - } - /** - * - * - *
-     * List of node taints.
-     * 
- * - * repeated .google.container.v1.NodeTaint taints = 1; - */ - public com.google.container.v1.NodeTaint.Builder addTaintsBuilder() { - return getTaintsFieldBuilder() - .addBuilder(com.google.container.v1.NodeTaint.getDefaultInstance()); - } - /** - * - * - *
-     * List of node taints.
-     * 
- * - * repeated .google.container.v1.NodeTaint taints = 1; - */ - public com.google.container.v1.NodeTaint.Builder addTaintsBuilder(int index) { - return getTaintsFieldBuilder() - .addBuilder(index, com.google.container.v1.NodeTaint.getDefaultInstance()); - } - /** - * - * - *
-     * List of node taints.
-     * 
- * - * repeated .google.container.v1.NodeTaint taints = 1; - */ - public java.util.List getTaintsBuilderList() { - return getTaintsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.NodeTaint, - com.google.container.v1.NodeTaint.Builder, - com.google.container.v1.NodeTaintOrBuilder> - getTaintsFieldBuilder() { - if (taintsBuilder_ == null) { - taintsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.NodeTaint, - com.google.container.v1.NodeTaint.Builder, - com.google.container.v1.NodeTaintOrBuilder>( - taints_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - taints_ = null; - } - return taintsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.NodeTaints) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.NodeTaints) - private static final com.google.container.v1.NodeTaints DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.NodeTaints(); - } - - public static com.google.container.v1.NodeTaints getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeTaints parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.NodeTaints getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaintsOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaintsOrBuilder.java deleted file mode 100644 index 5d007fc86760..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaintsOrBuilder.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface NodeTaintsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.NodeTaints) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * List of node taints.
-   * 
- * - * repeated .google.container.v1.NodeTaint taints = 1; - */ - java.util.List getTaintsList(); - /** - * - * - *
-   * List of node taints.
-   * 
- * - * repeated .google.container.v1.NodeTaint taints = 1; - */ - com.google.container.v1.NodeTaint getTaints(int index); - /** - * - * - *
-   * List of node taints.
-   * 
- * - * repeated .google.container.v1.NodeTaint taints = 1; - */ - int getTaintsCount(); - /** - * - * - *
-   * List of node taints.
-   * 
- * - * repeated .google.container.v1.NodeTaint taints = 1; - */ - java.util.List getTaintsOrBuilderList(); - /** - * - * - *
-   * List of node taints.
-   * 
- * - * repeated .google.container.v1.NodeTaint taints = 1; - */ - com.google.container.v1.NodeTaintOrBuilder getTaintsOrBuilder(int index); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NotificationConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NotificationConfig.java deleted file mode 100644 index c74de606982e..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NotificationConfig.java +++ /dev/null @@ -1,2898 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * NotificationConfig is the configuration of notifications.
- * 
- * - * Protobuf type {@code google.container.v1.NotificationConfig} - */ -public final class NotificationConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.NotificationConfig) - NotificationConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use NotificationConfig.newBuilder() to construct. - private NotificationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NotificationConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NotificationConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NotificationConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NotificationConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NotificationConfig.class, - com.google.container.v1.NotificationConfig.Builder.class); - } - - /** - * - * - *
-   * Types of notifications currently supported. Can be used to filter what
-   * notifications are sent.
-   * 
- * - * Protobuf enum {@code google.container.v1.NotificationConfig.EventType} - */ - public enum EventType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Not set, will be ignored.
-     * 
- * - * EVENT_TYPE_UNSPECIFIED = 0; - */ - EVENT_TYPE_UNSPECIFIED(0), - /** - * - * - *
-     * Corresponds with UpgradeAvailableEvent.
-     * 
- * - * UPGRADE_AVAILABLE_EVENT = 1; - */ - UPGRADE_AVAILABLE_EVENT(1), - /** - * - * - *
-     * Corresponds with UpgradeEvent.
-     * 
- * - * UPGRADE_EVENT = 2; - */ - UPGRADE_EVENT(2), - /** - * - * - *
-     * Corresponds with SecurityBulletinEvent.
-     * 
- * - * SECURITY_BULLETIN_EVENT = 3; - */ - SECURITY_BULLETIN_EVENT(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Not set, will be ignored.
-     * 
- * - * EVENT_TYPE_UNSPECIFIED = 0; - */ - public static final int EVENT_TYPE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Corresponds with UpgradeAvailableEvent.
-     * 
- * - * UPGRADE_AVAILABLE_EVENT = 1; - */ - public static final int UPGRADE_AVAILABLE_EVENT_VALUE = 1; - /** - * - * - *
-     * Corresponds with UpgradeEvent.
-     * 
- * - * UPGRADE_EVENT = 2; - */ - public static final int UPGRADE_EVENT_VALUE = 2; - /** - * - * - *
-     * Corresponds with SecurityBulletinEvent.
-     * 
- * - * SECURITY_BULLETIN_EVENT = 3; - */ - public static final int SECURITY_BULLETIN_EVENT_VALUE = 3; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static EventType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static EventType forNumber(int value) { - switch (value) { - case 0: - return EVENT_TYPE_UNSPECIFIED; - case 1: - return UPGRADE_AVAILABLE_EVENT; - case 2: - return UPGRADE_EVENT; - case 3: - return SECURITY_BULLETIN_EVENT; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public EventType findValueByNumber(int number) { - return EventType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.NotificationConfig.getDescriptor().getEnumTypes().get(0); - } - - private static final EventType[] VALUES = values(); - - public static EventType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private EventType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.NotificationConfig.EventType) - } - - public interface PubSubOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.NotificationConfig.PubSub) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Enable notifications for Pub/Sub.
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); - - /** - * - * - *
-     * The desired Pub/Sub topic to which notifications will be
-     * sent by GKE. Format is `projects/{project}/topics/{topic}`.
-     * 
- * - * string topic = 2 [(.google.api.resource_reference) = { ... } - * - * @return The topic. - */ - java.lang.String getTopic(); - /** - * - * - *
-     * The desired Pub/Sub topic to which notifications will be
-     * sent by GKE. Format is `projects/{project}/topics/{topic}`.
-     * 
- * - * string topic = 2 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for topic. - */ - com.google.protobuf.ByteString getTopicBytes(); - - /** - * - * - *
-     * Allows filtering to one or more specific event types. If no filter is
-     * specified, or if a filter is specified with no event types, all event
-     * types will be sent
-     * 
- * - * .google.container.v1.NotificationConfig.Filter filter = 3; - * - * @return Whether the filter field is set. - */ - boolean hasFilter(); - /** - * - * - *
-     * Allows filtering to one or more specific event types. If no filter is
-     * specified, or if a filter is specified with no event types, all event
-     * types will be sent
-     * 
- * - * .google.container.v1.NotificationConfig.Filter filter = 3; - * - * @return The filter. - */ - com.google.container.v1.NotificationConfig.Filter getFilter(); - /** - * - * - *
-     * Allows filtering to one or more specific event types. If no filter is
-     * specified, or if a filter is specified with no event types, all event
-     * types will be sent
-     * 
- * - * .google.container.v1.NotificationConfig.Filter filter = 3; - */ - com.google.container.v1.NotificationConfig.FilterOrBuilder getFilterOrBuilder(); - } - /** - * - * - *
-   * Pub/Sub specific notification config.
-   * 
- * - * Protobuf type {@code google.container.v1.NotificationConfig.PubSub} - */ - public static final class PubSub extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.NotificationConfig.PubSub) - PubSubOrBuilder { - private static final long serialVersionUID = 0L; - // Use PubSub.newBuilder() to construct. - private PubSub(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PubSub() { - topic_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PubSub(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NotificationConfig_PubSub_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NotificationConfig_PubSub_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NotificationConfig.PubSub.class, - com.google.container.v1.NotificationConfig.PubSub.Builder.class); - } - - private int bitField0_; - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-     * 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object topic_ = ""; - /** - * - * - *
-     * The desired Pub/Sub topic to which notifications will be
-     * sent by GKE. Format is `projects/{project}/topics/{topic}`.
-     * 
- * - * string topic = 2 [(.google.api.resource_reference) = { ... } - * - * @return The topic. - */ - @java.lang.Override - public java.lang.String getTopic() { - java.lang.Object ref = topic_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - topic_ = s; - return s; - } - } - /** - * - * - *
-     * The desired Pub/Sub topic to which notifications will be
-     * sent by GKE. Format is `projects/{project}/topics/{topic}`.
-     * 
- * - * string topic = 2 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for topic. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTopicBytes() { - java.lang.Object ref = topic_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - topic_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTER_FIELD_NUMBER = 3; - private com.google.container.v1.NotificationConfig.Filter filter_; - /** - * - * - *
-     * Allows filtering to one or more specific event types. If no filter is
-     * specified, or if a filter is specified with no event types, all event
-     * types will be sent
-     * 
- * - * .google.container.v1.NotificationConfig.Filter filter = 3; - * - * @return Whether the filter field is set. - */ - @java.lang.Override - public boolean hasFilter() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Allows filtering to one or more specific event types. If no filter is
-     * specified, or if a filter is specified with no event types, all event
-     * types will be sent
-     * 
- * - * .google.container.v1.NotificationConfig.Filter filter = 3; - * - * @return The filter. - */ - @java.lang.Override - public com.google.container.v1.NotificationConfig.Filter getFilter() { - return filter_ == null - ? com.google.container.v1.NotificationConfig.Filter.getDefaultInstance() - : filter_; - } - /** - * - * - *
-     * Allows filtering to one or more specific event types. If no filter is
-     * specified, or if a filter is specified with no event types, all event
-     * types will be sent
-     * 
- * - * .google.container.v1.NotificationConfig.Filter filter = 3; - */ - @java.lang.Override - public com.google.container.v1.NotificationConfig.FilterOrBuilder getFilterOrBuilder() { - return filter_ == null - ? com.google.container.v1.NotificationConfig.Filter.getDefaultInstance() - : filter_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, topic_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getFilter()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topic_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFilter()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.NotificationConfig.PubSub)) { - return super.equals(obj); - } - com.google.container.v1.NotificationConfig.PubSub other = - (com.google.container.v1.NotificationConfig.PubSub) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (!getTopic().equals(other.getTopic())) return false; - if (hasFilter() != other.hasFilter()) return false; - if (hasFilter()) { - if (!getFilter().equals(other.getFilter())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); - hash = (37 * hash) + TOPIC_FIELD_NUMBER; - hash = (53 * hash) + getTopic().hashCode(); - if (hasFilter()) { - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.NotificationConfig.PubSub parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NotificationConfig.PubSub parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NotificationConfig.PubSub parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NotificationConfig.PubSub parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NotificationConfig.PubSub parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NotificationConfig.PubSub parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NotificationConfig.PubSub parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NotificationConfig.PubSub parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NotificationConfig.PubSub parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.NotificationConfig.PubSub parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NotificationConfig.PubSub parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NotificationConfig.PubSub parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.NotificationConfig.PubSub prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Pub/Sub specific notification config.
-     * 
- * - * Protobuf type {@code google.container.v1.NotificationConfig.PubSub} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.NotificationConfig.PubSub) - com.google.container.v1.NotificationConfig.PubSubOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NotificationConfig_PubSub_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NotificationConfig_PubSub_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NotificationConfig.PubSub.class, - com.google.container.v1.NotificationConfig.PubSub.Builder.class); - } - - // Construct using com.google.container.v1.NotificationConfig.PubSub.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getFilterFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enabled_ = false; - topic_ = ""; - filter_ = null; - if (filterBuilder_ != null) { - filterBuilder_.dispose(); - filterBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NotificationConfig_PubSub_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NotificationConfig.PubSub getDefaultInstanceForType() { - return com.google.container.v1.NotificationConfig.PubSub.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NotificationConfig.PubSub build() { - com.google.container.v1.NotificationConfig.PubSub result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NotificationConfig.PubSub buildPartial() { - com.google.container.v1.NotificationConfig.PubSub result = - new com.google.container.v1.NotificationConfig.PubSub(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.NotificationConfig.PubSub result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.topic_ = topic_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.filter_ = filterBuilder_ == null ? filter_ : filterBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NotificationConfig.PubSub) { - return mergeFrom((com.google.container.v1.NotificationConfig.PubSub) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NotificationConfig.PubSub other) { - if (other == com.google.container.v1.NotificationConfig.PubSub.getDefaultInstance()) - return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - if (!other.getTopic().isEmpty()) { - topic_ = other.topic_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasFilter()) { - mergeFilter(other.getFilter()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - topic_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getFilterFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * Enable notifications for Pub/Sub.
-       * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000002; - 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(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.container.v1.NotificationConfig.Filter filter_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NotificationConfig.Filter, - com.google.container.v1.NotificationConfig.Filter.Builder, - com.google.container.v1.NotificationConfig.FilterOrBuilder> - filterBuilder_; - /** - * - * - *
-       * Allows filtering to one or more specific event types. If no filter is
-       * specified, or if a filter is specified with no event types, all event
-       * types will be sent
-       * 
- * - * .google.container.v1.NotificationConfig.Filter filter = 3; - * - * @return Whether the filter field is set. - */ - public boolean hasFilter() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-       * Allows filtering to one or more specific event types. If no filter is
-       * specified, or if a filter is specified with no event types, all event
-       * types will be sent
-       * 
- * - * .google.container.v1.NotificationConfig.Filter filter = 3; - * - * @return The filter. - */ - public com.google.container.v1.NotificationConfig.Filter getFilter() { - if (filterBuilder_ == null) { - return filter_ == null - ? com.google.container.v1.NotificationConfig.Filter.getDefaultInstance() - : filter_; - } else { - return filterBuilder_.getMessage(); - } - } - /** - * - * - *
-       * Allows filtering to one or more specific event types. If no filter is
-       * specified, or if a filter is specified with no event types, all event
-       * types will be sent
-       * 
- * - * .google.container.v1.NotificationConfig.Filter filter = 3; - */ - public Builder setFilter(com.google.container.v1.NotificationConfig.Filter value) { - if (filterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - filter_ = value; - } else { - filterBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-       * Allows filtering to one or more specific event types. If no filter is
-       * specified, or if a filter is specified with no event types, all event
-       * types will be sent
-       * 
- * - * .google.container.v1.NotificationConfig.Filter filter = 3; - */ - public Builder setFilter( - com.google.container.v1.NotificationConfig.Filter.Builder builderForValue) { - if (filterBuilder_ == null) { - filter_ = builderForValue.build(); - } else { - filterBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-       * Allows filtering to one or more specific event types. If no filter is
-       * specified, or if a filter is specified with no event types, all event
-       * types will be sent
-       * 
- * - * .google.container.v1.NotificationConfig.Filter filter = 3; - */ - public Builder mergeFilter(com.google.container.v1.NotificationConfig.Filter value) { - if (filterBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && filter_ != null - && filter_ - != com.google.container.v1.NotificationConfig.Filter.getDefaultInstance()) { - getFilterBuilder().mergeFrom(value); - } else { - filter_ = value; - } - } else { - filterBuilder_.mergeFrom(value); - } - if (filter_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - * - * - *
-       * Allows filtering to one or more specific event types. If no filter is
-       * specified, or if a filter is specified with no event types, all event
-       * types will be sent
-       * 
- * - * .google.container.v1.NotificationConfig.Filter filter = 3; - */ - public Builder clearFilter() { - bitField0_ = (bitField0_ & ~0x00000004); - filter_ = null; - if (filterBuilder_ != null) { - filterBuilder_.dispose(); - filterBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-       * Allows filtering to one or more specific event types. If no filter is
-       * specified, or if a filter is specified with no event types, all event
-       * types will be sent
-       * 
- * - * .google.container.v1.NotificationConfig.Filter filter = 3; - */ - public com.google.container.v1.NotificationConfig.Filter.Builder getFilterBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * Allows filtering to one or more specific event types. If no filter is
-       * specified, or if a filter is specified with no event types, all event
-       * types will be sent
-       * 
- * - * .google.container.v1.NotificationConfig.Filter filter = 3; - */ - public com.google.container.v1.NotificationConfig.FilterOrBuilder getFilterOrBuilder() { - if (filterBuilder_ != null) { - return filterBuilder_.getMessageOrBuilder(); - } else { - return filter_ == null - ? com.google.container.v1.NotificationConfig.Filter.getDefaultInstance() - : filter_; - } - } - /** - * - * - *
-       * Allows filtering to one or more specific event types. If no filter is
-       * specified, or if a filter is specified with no event types, all event
-       * types will be sent
-       * 
- * - * .google.container.v1.NotificationConfig.Filter filter = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NotificationConfig.Filter, - com.google.container.v1.NotificationConfig.Filter.Builder, - com.google.container.v1.NotificationConfig.FilterOrBuilder> - getFilterFieldBuilder() { - if (filterBuilder_ == null) { - filterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NotificationConfig.Filter, - com.google.container.v1.NotificationConfig.Filter.Builder, - com.google.container.v1.NotificationConfig.FilterOrBuilder>( - getFilter(), getParentForChildren(), isClean()); - filter_ = null; - } - return filterBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.NotificationConfig.PubSub) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.NotificationConfig.PubSub) - private static final com.google.container.v1.NotificationConfig.PubSub DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.NotificationConfig.PubSub(); - } - - public static com.google.container.v1.NotificationConfig.PubSub getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PubSub parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.NotificationConfig.PubSub getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface FilterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.NotificationConfig.Filter) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Event types to allowlist.
-     * 
- * - * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - * - * @return A list containing the eventType. - */ - java.util.List getEventTypeList(); - /** - * - * - *
-     * Event types to allowlist.
-     * 
- * - * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - * - * @return The count of eventType. - */ - int getEventTypeCount(); - /** - * - * - *
-     * Event types to allowlist.
-     * 
- * - * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - * - * @param index The index of the element to return. - * @return The eventType at the given index. - */ - com.google.container.v1.NotificationConfig.EventType getEventType(int index); - /** - * - * - *
-     * Event types to allowlist.
-     * 
- * - * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - * - * @return A list containing the enum numeric values on the wire for eventType. - */ - java.util.List getEventTypeValueList(); - /** - * - * - *
-     * Event types to allowlist.
-     * 
- * - * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of eventType at the given index. - */ - int getEventTypeValue(int index); - } - /** - * - * - *
-   * Allows filtering to one or more specific event types. If event types are
-   * present, those and only those event types will be transmitted to the
-   * cluster. Other types will be skipped. If no filter is specified, or no
-   * event types are present, all event types will be sent
-   * 
- * - * Protobuf type {@code google.container.v1.NotificationConfig.Filter} - */ - public static final class Filter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.NotificationConfig.Filter) - FilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use Filter.newBuilder() to construct. - private Filter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Filter() { - eventType_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Filter(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NotificationConfig_Filter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NotificationConfig_Filter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NotificationConfig.Filter.class, - com.google.container.v1.NotificationConfig.Filter.Builder.class); - } - - public static final int EVENT_TYPE_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List eventType_; - - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.container.v1.NotificationConfig.EventType> - eventType_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.container.v1.NotificationConfig.EventType>() { - public com.google.container.v1.NotificationConfig.EventType convert( - java.lang.Integer from) { - com.google.container.v1.NotificationConfig.EventType result = - com.google.container.v1.NotificationConfig.EventType.forNumber(from); - return result == null - ? com.google.container.v1.NotificationConfig.EventType.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-     * Event types to allowlist.
-     * 
- * - * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - * - * @return A list containing the eventType. - */ - @java.lang.Override - public java.util.List getEventTypeList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.container.v1.NotificationConfig.EventType>( - eventType_, eventType_converter_); - } - /** - * - * - *
-     * Event types to allowlist.
-     * 
- * - * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - * - * @return The count of eventType. - */ - @java.lang.Override - public int getEventTypeCount() { - return eventType_.size(); - } - /** - * - * - *
-     * Event types to allowlist.
-     * 
- * - * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - * - * @param index The index of the element to return. - * @return The eventType at the given index. - */ - @java.lang.Override - public com.google.container.v1.NotificationConfig.EventType getEventType(int index) { - return eventType_converter_.convert(eventType_.get(index)); - } - /** - * - * - *
-     * Event types to allowlist.
-     * 
- * - * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - * - * @return A list containing the enum numeric values on the wire for eventType. - */ - @java.lang.Override - public java.util.List getEventTypeValueList() { - return eventType_; - } - /** - * - * - *
-     * Event types to allowlist.
-     * 
- * - * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of eventType at the given index. - */ - @java.lang.Override - public int getEventTypeValue(int index) { - return eventType_.get(index); - } - - private int eventTypeMemoizedSerializedSize; - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (getEventTypeList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(eventTypeMemoizedSerializedSize); - } - for (int i = 0; i < eventType_.size(); i++) { - output.writeEnumNoTag(eventType_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < eventType_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(eventType_.get(i)); - } - size += dataSize; - if (!getEventTypeList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - eventTypeMemoizedSerializedSize = dataSize; - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.NotificationConfig.Filter)) { - return super.equals(obj); - } - com.google.container.v1.NotificationConfig.Filter other = - (com.google.container.v1.NotificationConfig.Filter) obj; - - if (!eventType_.equals(other.eventType_)) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getEventTypeCount() > 0) { - hash = (37 * hash) + EVENT_TYPE_FIELD_NUMBER; - hash = (53 * hash) + eventType_.hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.NotificationConfig.Filter parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NotificationConfig.Filter parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NotificationConfig.Filter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NotificationConfig.Filter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NotificationConfig.Filter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NotificationConfig.Filter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NotificationConfig.Filter parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NotificationConfig.Filter parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NotificationConfig.Filter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.NotificationConfig.Filter parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NotificationConfig.Filter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NotificationConfig.Filter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.NotificationConfig.Filter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Allows filtering to one or more specific event types. If event types are
-     * present, those and only those event types will be transmitted to the
-     * cluster. Other types will be skipped. If no filter is specified, or no
-     * event types are present, all event types will be sent
-     * 
- * - * Protobuf type {@code google.container.v1.NotificationConfig.Filter} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.NotificationConfig.Filter) - com.google.container.v1.NotificationConfig.FilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NotificationConfig_Filter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NotificationConfig_Filter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NotificationConfig.Filter.class, - com.google.container.v1.NotificationConfig.Filter.Builder.class); - } - - // Construct using com.google.container.v1.NotificationConfig.Filter.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - eventType_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NotificationConfig_Filter_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NotificationConfig.Filter getDefaultInstanceForType() { - return com.google.container.v1.NotificationConfig.Filter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NotificationConfig.Filter build() { - com.google.container.v1.NotificationConfig.Filter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NotificationConfig.Filter buildPartial() { - com.google.container.v1.NotificationConfig.Filter result = - new com.google.container.v1.NotificationConfig.Filter(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.container.v1.NotificationConfig.Filter result) { - if (((bitField0_ & 0x00000001) != 0)) { - eventType_ = java.util.Collections.unmodifiableList(eventType_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.eventType_ = eventType_; - } - - private void buildPartial0(com.google.container.v1.NotificationConfig.Filter result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NotificationConfig.Filter) { - return mergeFrom((com.google.container.v1.NotificationConfig.Filter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NotificationConfig.Filter other) { - if (other == com.google.container.v1.NotificationConfig.Filter.getDefaultInstance()) - return this; - if (!other.eventType_.isEmpty()) { - if (eventType_.isEmpty()) { - eventType_ = other.eventType_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEventTypeIsMutable(); - eventType_.addAll(other.eventType_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - int tmpRaw = input.readEnum(); - ensureEventTypeIsMutable(); - eventType_.add(tmpRaw); - break; - } // case 8 - case 10: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureEventTypeIsMutable(); - eventType_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List eventType_ = java.util.Collections.emptyList(); - - private void ensureEventTypeIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - eventType_ = new java.util.ArrayList(eventType_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-       * Event types to allowlist.
-       * 
- * - * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - * - * @return A list containing the eventType. - */ - public java.util.List - getEventTypeList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.container.v1.NotificationConfig.EventType>( - eventType_, eventType_converter_); - } - /** - * - * - *
-       * Event types to allowlist.
-       * 
- * - * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - * - * @return The count of eventType. - */ - public int getEventTypeCount() { - return eventType_.size(); - } - /** - * - * - *
-       * Event types to allowlist.
-       * 
- * - * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - * - * @param index The index of the element to return. - * @return The eventType at the given index. - */ - public com.google.container.v1.NotificationConfig.EventType getEventType(int index) { - return eventType_converter_.convert(eventType_.get(index)); - } - /** - * - * - *
-       * Event types to allowlist.
-       * 
- * - * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - * - * @param index The index to set the value at. - * @param value The eventType to set. - * @return This builder for chaining. - */ - public Builder setEventType( - int index, com.google.container.v1.NotificationConfig.EventType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventTypeIsMutable(); - eventType_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-       * Event types to allowlist.
-       * 
- * - * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - * - * @param value The eventType to add. - * @return This builder for chaining. - */ - public Builder addEventType(com.google.container.v1.NotificationConfig.EventType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventTypeIsMutable(); - eventType_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-       * Event types to allowlist.
-       * 
- * - * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - * - * @param values The eventType to add. - * @return This builder for chaining. - */ - public Builder addAllEventType( - java.lang.Iterable - values) { - ensureEventTypeIsMutable(); - for (com.google.container.v1.NotificationConfig.EventType value : values) { - eventType_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-       * Event types to allowlist.
-       * 
- * - * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - * - * @return This builder for chaining. - */ - public Builder clearEventType() { - eventType_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-       * Event types to allowlist.
-       * 
- * - * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - * - * @return A list containing the enum numeric values on the wire for eventType. - */ - public java.util.List getEventTypeValueList() { - return java.util.Collections.unmodifiableList(eventType_); - } - /** - * - * - *
-       * Event types to allowlist.
-       * 
- * - * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of eventType at the given index. - */ - public int getEventTypeValue(int index) { - return eventType_.get(index); - } - /** - * - * - *
-       * Event types to allowlist.
-       * 
- * - * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for eventType to set. - * @return This builder for chaining. - */ - public Builder setEventTypeValue(int index, int value) { - ensureEventTypeIsMutable(); - eventType_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-       * Event types to allowlist.
-       * 
- * - * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - * - * @param value The enum numeric value on the wire for eventType to add. - * @return This builder for chaining. - */ - public Builder addEventTypeValue(int value) { - ensureEventTypeIsMutable(); - eventType_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-       * Event types to allowlist.
-       * 
- * - * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - * - * @param values The enum numeric values on the wire for eventType to add. - * @return This builder for chaining. - */ - public Builder addAllEventTypeValue(java.lang.Iterable values) { - ensureEventTypeIsMutable(); - for (int value : values) { - eventType_.add(value); - } - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.NotificationConfig.Filter) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.NotificationConfig.Filter) - private static final com.google.container.v1.NotificationConfig.Filter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.NotificationConfig.Filter(); - } - - public static com.google.container.v1.NotificationConfig.Filter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Filter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.NotificationConfig.Filter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int bitField0_; - public static final int PUBSUB_FIELD_NUMBER = 1; - private com.google.container.v1.NotificationConfig.PubSub pubsub_; - /** - * - * - *
-   * Notification config for Pub/Sub.
-   * 
- * - * .google.container.v1.NotificationConfig.PubSub pubsub = 1; - * - * @return Whether the pubsub field is set. - */ - @java.lang.Override - public boolean hasPubsub() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Notification config for Pub/Sub.
-   * 
- * - * .google.container.v1.NotificationConfig.PubSub pubsub = 1; - * - * @return The pubsub. - */ - @java.lang.Override - public com.google.container.v1.NotificationConfig.PubSub getPubsub() { - return pubsub_ == null - ? com.google.container.v1.NotificationConfig.PubSub.getDefaultInstance() - : pubsub_; - } - /** - * - * - *
-   * Notification config for Pub/Sub.
-   * 
- * - * .google.container.v1.NotificationConfig.PubSub pubsub = 1; - */ - @java.lang.Override - public com.google.container.v1.NotificationConfig.PubSubOrBuilder getPubsubOrBuilder() { - return pubsub_ == null - ? com.google.container.v1.NotificationConfig.PubSub.getDefaultInstance() - : pubsub_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getPubsub()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPubsub()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.NotificationConfig)) { - return super.equals(obj); - } - com.google.container.v1.NotificationConfig other = - (com.google.container.v1.NotificationConfig) obj; - - if (hasPubsub() != other.hasPubsub()) return false; - if (hasPubsub()) { - if (!getPubsub().equals(other.getPubsub())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.NotificationConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NotificationConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NotificationConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NotificationConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NotificationConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NotificationConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NotificationConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NotificationConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NotificationConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.NotificationConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NotificationConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NotificationConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.NotificationConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * NotificationConfig is the configuration of notifications.
-   * 
- * - * Protobuf type {@code google.container.v1.NotificationConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.NotificationConfig) - com.google.container.v1.NotificationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NotificationConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NotificationConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NotificationConfig.class, - com.google.container.v1.NotificationConfig.Builder.class); - } - - // Construct using com.google.container.v1.NotificationConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getPubsubFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - pubsub_ = null; - if (pubsubBuilder_ != null) { - pubsubBuilder_.dispose(); - pubsubBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NotificationConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NotificationConfig getDefaultInstanceForType() { - return com.google.container.v1.NotificationConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NotificationConfig build() { - com.google.container.v1.NotificationConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NotificationConfig buildPartial() { - com.google.container.v1.NotificationConfig result = - new com.google.container.v1.NotificationConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.NotificationConfig result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.pubsub_ = pubsubBuilder_ == null ? pubsub_ : pubsubBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NotificationConfig) { - return mergeFrom((com.google.container.v1.NotificationConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NotificationConfig other) { - if (other == com.google.container.v1.NotificationConfig.getDefaultInstance()) return this; - if (other.hasPubsub()) { - mergePubsub(other.getPubsub()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getPubsubFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.container.v1.NotificationConfig.PubSub pubsub_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NotificationConfig.PubSub, - com.google.container.v1.NotificationConfig.PubSub.Builder, - com.google.container.v1.NotificationConfig.PubSubOrBuilder> - pubsubBuilder_; - /** - * - * - *
-     * Notification config for Pub/Sub.
-     * 
- * - * .google.container.v1.NotificationConfig.PubSub pubsub = 1; - * - * @return Whether the pubsub field is set. - */ - public boolean hasPubsub() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Notification config for Pub/Sub.
-     * 
- * - * .google.container.v1.NotificationConfig.PubSub pubsub = 1; - * - * @return The pubsub. - */ - public com.google.container.v1.NotificationConfig.PubSub getPubsub() { - if (pubsubBuilder_ == null) { - return pubsub_ == null - ? com.google.container.v1.NotificationConfig.PubSub.getDefaultInstance() - : pubsub_; - } else { - return pubsubBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Notification config for Pub/Sub.
-     * 
- * - * .google.container.v1.NotificationConfig.PubSub pubsub = 1; - */ - public Builder setPubsub(com.google.container.v1.NotificationConfig.PubSub value) { - if (pubsubBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pubsub_ = value; - } else { - pubsubBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Notification config for Pub/Sub.
-     * 
- * - * .google.container.v1.NotificationConfig.PubSub pubsub = 1; - */ - public Builder setPubsub( - com.google.container.v1.NotificationConfig.PubSub.Builder builderForValue) { - if (pubsubBuilder_ == null) { - pubsub_ = builderForValue.build(); - } else { - pubsubBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Notification config for Pub/Sub.
-     * 
- * - * .google.container.v1.NotificationConfig.PubSub pubsub = 1; - */ - public Builder mergePubsub(com.google.container.v1.NotificationConfig.PubSub value) { - if (pubsubBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && pubsub_ != null - && pubsub_ != com.google.container.v1.NotificationConfig.PubSub.getDefaultInstance()) { - getPubsubBuilder().mergeFrom(value); - } else { - pubsub_ = value; - } - } else { - pubsubBuilder_.mergeFrom(value); - } - if (pubsub_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Notification config for Pub/Sub.
-     * 
- * - * .google.container.v1.NotificationConfig.PubSub pubsub = 1; - */ - public Builder clearPubsub() { - bitField0_ = (bitField0_ & ~0x00000001); - pubsub_ = null; - if (pubsubBuilder_ != null) { - pubsubBuilder_.dispose(); - pubsubBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Notification config for Pub/Sub.
-     * 
- * - * .google.container.v1.NotificationConfig.PubSub pubsub = 1; - */ - public com.google.container.v1.NotificationConfig.PubSub.Builder getPubsubBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getPubsubFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Notification config for Pub/Sub.
-     * 
- * - * .google.container.v1.NotificationConfig.PubSub pubsub = 1; - */ - public com.google.container.v1.NotificationConfig.PubSubOrBuilder getPubsubOrBuilder() { - if (pubsubBuilder_ != null) { - return pubsubBuilder_.getMessageOrBuilder(); - } else { - return pubsub_ == null - ? com.google.container.v1.NotificationConfig.PubSub.getDefaultInstance() - : pubsub_; - } - } - /** - * - * - *
-     * Notification config for Pub/Sub.
-     * 
- * - * .google.container.v1.NotificationConfig.PubSub pubsub = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NotificationConfig.PubSub, - com.google.container.v1.NotificationConfig.PubSub.Builder, - com.google.container.v1.NotificationConfig.PubSubOrBuilder> - getPubsubFieldBuilder() { - if (pubsubBuilder_ == null) { - pubsubBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NotificationConfig.PubSub, - com.google.container.v1.NotificationConfig.PubSub.Builder, - com.google.container.v1.NotificationConfig.PubSubOrBuilder>( - getPubsub(), getParentForChildren(), isClean()); - pubsub_ = null; - } - return pubsubBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.NotificationConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.NotificationConfig) - private static final com.google.container.v1.NotificationConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.NotificationConfig(); - } - - public static com.google.container.v1.NotificationConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NotificationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.NotificationConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NotificationConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NotificationConfigOrBuilder.java deleted file mode 100644 index 541d6c1c101b..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NotificationConfigOrBuilder.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface NotificationConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.NotificationConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Notification config for Pub/Sub.
-   * 
- * - * .google.container.v1.NotificationConfig.PubSub pubsub = 1; - * - * @return Whether the pubsub field is set. - */ - boolean hasPubsub(); - /** - * - * - *
-   * Notification config for Pub/Sub.
-   * 
- * - * .google.container.v1.NotificationConfig.PubSub pubsub = 1; - * - * @return The pubsub. - */ - com.google.container.v1.NotificationConfig.PubSub getPubsub(); - /** - * - * - *
-   * Notification config for Pub/Sub.
-   * 
- * - * .google.container.v1.NotificationConfig.PubSub pubsub = 1; - */ - com.google.container.v1.NotificationConfig.PubSubOrBuilder getPubsubOrBuilder(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java deleted file mode 100644 index 807b043577b5..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java +++ /dev/null @@ -1,5183 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * 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.v1.Operation} - */ -public final class Operation extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_Operation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_Operation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.Operation.class, - com.google.container.v1.Operation.Builder.class); - } - - /** - * - * - *
-   * Current status of the operation.
-   * 
- * - * Protobuf enum {@code google.container.v1.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.v1.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.v1.Operation.Status) - } - - /** - * - * - *
-   * Operation type categorizes the operation.
-   * 
- * - * Protobuf enum {@code google.container.v1.Operation.Type} - */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Not set.
-     * 
- * - * TYPE_UNSPECIFIED = 0; - */ - TYPE_UNSPECIFIED(0), - /** - * - * - *
-     * The cluster is being created. The cluster should be assumed to be
-     * unusable until the operation finishes.
-     *
-     * In the event of the operation failing, the cluster will enter the [ERROR
-     * state][Cluster.Status.ERROR] and eventually be deleted.
-     * 
- * - * CREATE_CLUSTER = 1; - */ - CREATE_CLUSTER(1), - /** - * - * - *
-     * The cluster is being deleted. The cluster should be assumed to be
-     * unusable as soon as this operation starts.
-     *
-     * In the event of the operation failing, the cluster will enter the [ERROR
-     * state][Cluster.Status.ERROR] and the deletion will be automatically
-     * retried until completed.
-     * 
- * - * DELETE_CLUSTER = 2; - */ - DELETE_CLUSTER(2), - /** - * - * - *
-     * The [cluster
-     * version][google.container.v1.ClusterUpdate.desired_master_version] is
-     * being updated. Note that this includes "upgrades" to the same version,
-     * which are simply a recreation. This also includes
-     * [auto-upgrades](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-upgrades#upgrading_automatically).
-     * For more details, see [documentation on cluster
-     * upgrades](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-upgrades#cluster_upgrades).
-     * 
- * - * UPGRADE_MASTER = 3; - */ - UPGRADE_MASTER(3), - /** - * - * - *
-     * A node pool is being updated. Despite calling this an "upgrade", this
-     * includes most forms of updates to node pools. This also includes
-     * [auto-upgrades](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-upgrades).
-     *
-     * This operation sets the
-     * [progress][google.container.v1.Operation.progress] field and may be
-     * [canceled][google.container.v1.ClusterManager.CancelOperation].
-     *
-     * The upgrade strategy depends on [node pool
-     * configuration](https://cloud.google.com/kubernetes-engine/docs/concepts/node-pool-upgrade-strategies).
-     * The nodes are generally still usable during this operation.
-     * 
- * - * UPGRADE_NODES = 4; - */ - UPGRADE_NODES(4), - /** - * - * - *
-     * A problem has been detected with the control plane and is being repaired.
-     * This operation type is initiated by GKE. For more details, see
-     * [documentation on
-     * repairs](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions#repairs).
-     * 
- * - * REPAIR_CLUSTER = 5; - */ - REPAIR_CLUSTER(5), - /** - * - * - *
-     * The cluster is being updated. This is a broad category of operations and
-     * includes operations that only change metadata as well as those that must
-     * recreate the entire cluster. If the control plane must be recreated, this
-     * will cause temporary downtime for zonal clusters.
-     *
-     * Some features require recreating the nodes as well. Those will be
-     * recreated as separate operations and the update may not be completely
-     * functional until the node pools recreations finish. Node recreations will
-     * generally follow [maintenance
-     * policies](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions).
-     *
-     * Some GKE-initiated operations use this type. This includes certain types
-     * of auto-upgrades and incident mitigations.
-     * 
- * - * UPDATE_CLUSTER = 6; - */ - UPDATE_CLUSTER(6), - /** - * - * - *
-     * A node pool is being created. The node pool should be assumed to be
-     * unusable until this operation finishes. In the event of an error, the
-     * node pool may be partially created.
-     *
-     * If enabled, [node
-     * autoprovisioning](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-provisioning)
-     * may have automatically initiated such operations.
-     * 
- * - * CREATE_NODE_POOL = 7; - */ - CREATE_NODE_POOL(7), - /** - * - * - *
-     * The node pool is being deleted. The node pool should be assumed to be
-     * unusable as soon as this operation starts.
-     * 
- * - * DELETE_NODE_POOL = 8; - */ - DELETE_NODE_POOL(8), - /** - * - * - *
-     * The node pool's [manamagent][google.container.v1.NodePool.management]
-     * field is being updated. These operations only update metadata and may be
-     * concurrent with most other operations.
-     * 
- * - * SET_NODE_POOL_MANAGEMENT = 9; - */ - SET_NODE_POOL_MANAGEMENT(9), - /** - * - * - *
-     * A problem has been detected with nodes and [they are being
-     * repaired](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-repair).
-     * This operation type is initiated by GKE, typically automatically. This
-     * operation may be concurrent with other operations and there may be
-     * multiple repairs occurring on the same node pool.
-     * 
- * - * AUTO_REPAIR_NODES = 10; - */ - AUTO_REPAIR_NODES(10), - /** - * - * - *
-     * Unused. Automatic node upgrade uses
-     * [UPGRADE_NODES][google.container.v1.Operation.Type.UPGRADE_NODES].
-     * 
- * - * AUTO_UPGRADE_NODES = 11 [deprecated = true]; - */ - @java.lang.Deprecated - AUTO_UPGRADE_NODES(11), - /** - * - * - *
-     * Unused. Updating labels uses
-     * [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER].
-     * 
- * - * SET_LABELS = 12 [deprecated = true]; - */ - @java.lang.Deprecated - SET_LABELS(12), - /** - * - * - *
-     * Unused. Updating master auth uses
-     * [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER].
-     * 
- * - * SET_MASTER_AUTH = 13 [deprecated = true]; - */ - @java.lang.Deprecated - SET_MASTER_AUTH(13), - /** - * - * - *
-     * The node pool is being resized. With the exception of resizing to or from
-     * size zero, the node pool is generally usable during this operation.
-     * 
- * - * SET_NODE_POOL_SIZE = 14; - */ - SET_NODE_POOL_SIZE(14), - /** - * - * - *
-     * Unused. Updating network policy uses
-     * [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER].
-     * 
- * - * SET_NETWORK_POLICY = 15 [deprecated = true]; - */ - @java.lang.Deprecated - SET_NETWORK_POLICY(15), - /** - * - * - *
-     * Unused. Updating maintenance policy uses
-     * [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER].
-     * 
- * - * SET_MAINTENANCE_POLICY = 16 [deprecated = true]; - */ - @java.lang.Deprecated - SET_MAINTENANCE_POLICY(16), - /** - * - * - *
-     * The control plane is being resized. This operation type is initiated by
-     * GKE. These operations are often performed preemptively to ensure that the
-     * control plane has sufficient resources and is not typically an indication
-     * of issues. For more details, see
-     * [documentation on
-     * resizes](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions#repairs).
-     * 
- * - * RESIZE_CLUSTER = 18; - */ - RESIZE_CLUSTER(18), - /** - * - * - *
-     * Fleet features of GKE Enterprise are being upgraded. The cluster should
-     * be assumed to be blocked for other upgrades until the operation finishes.
-     * 
- * - * FLEET_FEATURE_UPGRADE = 19; - */ - FLEET_FEATURE_UPGRADE(19), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Not set.
-     * 
- * - * TYPE_UNSPECIFIED = 0; - */ - public static final int TYPE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * The cluster is being created. The cluster should be assumed to be
-     * unusable until the operation finishes.
-     *
-     * In the event of the operation failing, the cluster will enter the [ERROR
-     * state][Cluster.Status.ERROR] and eventually be deleted.
-     * 
- * - * CREATE_CLUSTER = 1; - */ - public static final int CREATE_CLUSTER_VALUE = 1; - /** - * - * - *
-     * The cluster is being deleted. The cluster should be assumed to be
-     * unusable as soon as this operation starts.
-     *
-     * In the event of the operation failing, the cluster will enter the [ERROR
-     * state][Cluster.Status.ERROR] and the deletion will be automatically
-     * retried until completed.
-     * 
- * - * DELETE_CLUSTER = 2; - */ - public static final int DELETE_CLUSTER_VALUE = 2; - /** - * - * - *
-     * The [cluster
-     * version][google.container.v1.ClusterUpdate.desired_master_version] is
-     * being updated. Note that this includes "upgrades" to the same version,
-     * which are simply a recreation. This also includes
-     * [auto-upgrades](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-upgrades#upgrading_automatically).
-     * For more details, see [documentation on cluster
-     * upgrades](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-upgrades#cluster_upgrades).
-     * 
- * - * UPGRADE_MASTER = 3; - */ - public static final int UPGRADE_MASTER_VALUE = 3; - /** - * - * - *
-     * A node pool is being updated. Despite calling this an "upgrade", this
-     * includes most forms of updates to node pools. This also includes
-     * [auto-upgrades](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-upgrades).
-     *
-     * This operation sets the
-     * [progress][google.container.v1.Operation.progress] field and may be
-     * [canceled][google.container.v1.ClusterManager.CancelOperation].
-     *
-     * The upgrade strategy depends on [node pool
-     * configuration](https://cloud.google.com/kubernetes-engine/docs/concepts/node-pool-upgrade-strategies).
-     * The nodes are generally still usable during this operation.
-     * 
- * - * UPGRADE_NODES = 4; - */ - public static final int UPGRADE_NODES_VALUE = 4; - /** - * - * - *
-     * A problem has been detected with the control plane and is being repaired.
-     * This operation type is initiated by GKE. For more details, see
-     * [documentation on
-     * repairs](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions#repairs).
-     * 
- * - * REPAIR_CLUSTER = 5; - */ - public static final int REPAIR_CLUSTER_VALUE = 5; - /** - * - * - *
-     * The cluster is being updated. This is a broad category of operations and
-     * includes operations that only change metadata as well as those that must
-     * recreate the entire cluster. If the control plane must be recreated, this
-     * will cause temporary downtime for zonal clusters.
-     *
-     * Some features require recreating the nodes as well. Those will be
-     * recreated as separate operations and the update may not be completely
-     * functional until the node pools recreations finish. Node recreations will
-     * generally follow [maintenance
-     * policies](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions).
-     *
-     * Some GKE-initiated operations use this type. This includes certain types
-     * of auto-upgrades and incident mitigations.
-     * 
- * - * UPDATE_CLUSTER = 6; - */ - public static final int UPDATE_CLUSTER_VALUE = 6; - /** - * - * - *
-     * A node pool is being created. The node pool should be assumed to be
-     * unusable until this operation finishes. In the event of an error, the
-     * node pool may be partially created.
-     *
-     * If enabled, [node
-     * autoprovisioning](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-provisioning)
-     * may have automatically initiated such operations.
-     * 
- * - * CREATE_NODE_POOL = 7; - */ - public static final int CREATE_NODE_POOL_VALUE = 7; - /** - * - * - *
-     * The node pool is being deleted. The node pool should be assumed to be
-     * unusable as soon as this operation starts.
-     * 
- * - * DELETE_NODE_POOL = 8; - */ - public static final int DELETE_NODE_POOL_VALUE = 8; - /** - * - * - *
-     * The node pool's [manamagent][google.container.v1.NodePool.management]
-     * field is being updated. These operations only update metadata and may be
-     * concurrent with most other operations.
-     * 
- * - * SET_NODE_POOL_MANAGEMENT = 9; - */ - public static final int SET_NODE_POOL_MANAGEMENT_VALUE = 9; - /** - * - * - *
-     * A problem has been detected with nodes and [they are being
-     * repaired](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-repair).
-     * This operation type is initiated by GKE, typically automatically. This
-     * operation may be concurrent with other operations and there may be
-     * multiple repairs occurring on the same node pool.
-     * 
- * - * AUTO_REPAIR_NODES = 10; - */ - public static final int AUTO_REPAIR_NODES_VALUE = 10; - /** - * - * - *
-     * Unused. Automatic node upgrade uses
-     * [UPGRADE_NODES][google.container.v1.Operation.Type.UPGRADE_NODES].
-     * 
- * - * AUTO_UPGRADE_NODES = 11 [deprecated = true]; - */ - @java.lang.Deprecated public static final int AUTO_UPGRADE_NODES_VALUE = 11; - /** - * - * - *
-     * Unused. Updating labels uses
-     * [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER].
-     * 
- * - * SET_LABELS = 12 [deprecated = true]; - */ - @java.lang.Deprecated public static final int SET_LABELS_VALUE = 12; - /** - * - * - *
-     * Unused. Updating master auth uses
-     * [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER].
-     * 
- * - * SET_MASTER_AUTH = 13 [deprecated = true]; - */ - @java.lang.Deprecated public static final int SET_MASTER_AUTH_VALUE = 13; - /** - * - * - *
-     * The node pool is being resized. With the exception of resizing to or from
-     * size zero, the node pool is generally usable during this operation.
-     * 
- * - * SET_NODE_POOL_SIZE = 14; - */ - public static final int SET_NODE_POOL_SIZE_VALUE = 14; - /** - * - * - *
-     * Unused. Updating network policy uses
-     * [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER].
-     * 
- * - * SET_NETWORK_POLICY = 15 [deprecated = true]; - */ - @java.lang.Deprecated public static final int SET_NETWORK_POLICY_VALUE = 15; - /** - * - * - *
-     * Unused. Updating maintenance policy uses
-     * [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER].
-     * 
- * - * SET_MAINTENANCE_POLICY = 16 [deprecated = true]; - */ - @java.lang.Deprecated public static final int SET_MAINTENANCE_POLICY_VALUE = 16; - /** - * - * - *
-     * The control plane is being resized. This operation type is initiated by
-     * GKE. These operations are often performed preemptively to ensure that the
-     * control plane has sufficient resources and is not typically an indication
-     * of issues. For more details, see
-     * [documentation on
-     * resizes](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions#repairs).
-     * 
- * - * RESIZE_CLUSTER = 18; - */ - public static final int RESIZE_CLUSTER_VALUE = 18; - /** - * - * - *
-     * Fleet features of GKE Enterprise are being upgraded. The cluster should
-     * be assumed to be blocked for other upgrades until the operation finishes.
-     * 
- * - * FLEET_FEATURE_UPGRADE = 19; - */ - public static final int FLEET_FEATURE_UPGRADE_VALUE = 19; - - 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; - case 18: - return RESIZE_CLUSTER; - case 19: - return FLEET_FEATURE_UPGRADE; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.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.v1.Operation.Type) - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2448 - * @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]; - * - * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2448 - * @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_ = 0; - /** - * - * - *
-   * The operation type.
-   * 
- * - * .google.container.v1.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.v1.Operation.Type operation_type = 3; - * - * @return The operationType. - */ - @java.lang.Override - public com.google.container.v1.Operation.Type getOperationType() { - com.google.container.v1.Operation.Type result = - com.google.container.v1.Operation.Type.forNumber(operationType_); - return result == null ? com.google.container.v1.Operation.Type.UNRECOGNIZED : result; - } - - public static final int STATUS_FIELD_NUMBER = 4; - private int status_ = 0; - /** - * - * - *
-   * The current status of the operation.
-   * 
- * - * .google.container.v1.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.v1.Operation.Status status = 4; - * - * @return The status. - */ - @java.lang.Override - public com.google.container.v1.Operation.Status getStatus() { - com.google.container.v1.Operation.Status result = - com.google.container.v1.Operation.Status.forNumber(status_); - return result == null ? com.google.container.v1.Operation.Status.UNRECOGNIZED : result; - } - - public static final int DETAIL_FIELD_NUMBER = 8; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object statusMessage_ = ""; - /** - * - * - *
-   * Output only. If an error has occurred, a textual description of the error.
-   * Deprecated. Use the field error instead.
-   * 
- * - * - * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2461 - * @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 the field error instead.
-   * 
- * - * - * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2461 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object selfLink_ = ""; - /** - * - * - *
-   * Server-defined URI for the operation. Example:
-   * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
-   * 
- * - * 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 URI for the operation. Example:
-   * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
-   * 
- * - * 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object targetLink_ = ""; - /** - * - * - *
-   * Server-defined URI for the target of the operation. The format of this is a
-   * URI to the resource being modified (such as a cluster, node pool, or node).
-   * For node pool repairs, there may be multiple nodes being repaired, but only
-   * one will be the target.
-   *
-   * Examples:
-   *
-   * -
-   * ##
-   * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
-   *
-   * ##
-   * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
-   *
-   * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
-   * 
- * - * 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 URI for the target of the operation. The format of this is a
-   * URI to the resource being modified (such as a cluster, node pool, or node).
-   * For node pool repairs, there may be multiple nodes being repaired, but only
-   * one will be the target.
-   *
-   * Examples:
-   *
-   * -
-   * ##
-   * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
-   *
-   * ##
-   * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
-   *
-   * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
-   * 
- * - * 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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.v1.OperationProgress progress_; - /** - * - * - *
-   * Output only. [Output only] Progress information for an operation.
-   * 
- * - * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the progress field is set. - */ - @java.lang.Override - public boolean hasProgress() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Output only. [Output only] Progress information for an operation.
-   * 
- * - * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The progress. - */ - @java.lang.Override - public com.google.container.v1.OperationProgress getProgress() { - return progress_ == null - ? com.google.container.v1.OperationProgress.getDefaultInstance() - : progress_; - } - /** - * - * - *
-   * Output only. [Output only] Progress information for an operation.
-   * 
- * - * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.container.v1.OperationProgressOrBuilder getProgressOrBuilder() { - return progress_ == null - ? com.google.container.v1.OperationProgress.getDefaultInstance() - : progress_; - } - - public static final int CLUSTER_CONDITIONS_FIELD_NUMBER = 13; - - @SuppressWarnings("serial") - private java.util.List clusterConditions_; - /** - * - * - *
-   * Which conditions caused the current cluster state.
-   * Deprecated. Use field error instead.
-   * 
- * - * - * repeated .google.container.v1.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.v1.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.v1.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.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; - * - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.container.v1.StatusCondition getClusterConditions(int index) { - return clusterConditions_.get(index); - } - /** - * - * - *
-   * Which conditions caused the current cluster state.
-   * Deprecated. Use field error instead.
-   * 
- * - * - * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; - * - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.container.v1.StatusConditionOrBuilder getClusterConditionsOrBuilder(int index) { - return clusterConditions_.get(index); - } - - public static final int NODEPOOL_CONDITIONS_FIELD_NUMBER = 14; - - @SuppressWarnings("serial") - private java.util.List nodepoolConditions_; - /** - * - * - *
-   * Which conditions caused the current node pool state.
-   * Deprecated. Use field error instead.
-   * 
- * - * - * repeated .google.container.v1.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.v1.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.v1.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.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - * - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.container.v1.StatusCondition getNodepoolConditions(int index) { - return nodepoolConditions_.get(index); - } - /** - * - * - *
-   * Which conditions caused the current node pool state.
-   * Deprecated. Use field error instead.
-   * 
- * - * - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - * - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.container.v1.StatusConditionOrBuilder getNodepoolConditionsOrBuilder( - int index) { - return nodepoolConditions_.get(index); - } - - public static final int ERROR_FIELD_NUMBER = 15; - private com.google.rpc.Status error_; - /** - * - * - *
-   * The error result of the operation in case of failure.
-   * 
- * - * .google.rpc.Status error = 15; - * - * @return Whether the error field is set. - */ - @java.lang.Override - public boolean hasError() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * 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 error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (operationType_ != com.google.container.v1.Operation.Type.TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(3, operationType_); - } - if (status_ != com.google.container.v1.Operation.Status.STATUS_UNSPECIFIED.getNumber()) { - output.writeEnum(4, status_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusMessage_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, selfLink_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetLink_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, targetLink_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, detail_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, location_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startTime_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, startTime_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endTime_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, endTime_); - } - if (((bitField0_ & 0x00000001) != 0)) { - 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 (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(15, getError()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (operationType_ != com.google.container.v1.Operation.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, operationType_); - } - if (status_ != com.google.container.v1.Operation.Status.STATUS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, status_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, selfLink_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetLink_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, targetLink_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, detail_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, location_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startTime_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, startTime_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endTime_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, endTime_); - } - if (((bitField0_ & 0x00000001) != 0)) { - 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 (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getError()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.Operation)) { - return super.equals(obj); - } - com.google.container.v1.Operation other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.Operation parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.Operation parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.Operation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.Operation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.Operation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.Operation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.Operation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.Operation} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.Operation) - com.google.container.v1.OperationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_Operation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_Operation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.Operation.class, - com.google.container.v1.Operation.Builder.class); - } - - // Construct using com.google.container.v1.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) { - getProgressFieldBuilder(); - getClusterConditionsFieldBuilder(); - getNodepoolConditionsFieldBuilder(); - getErrorFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - zone_ = ""; - operationType_ = 0; - status_ = 0; - detail_ = ""; - statusMessage_ = ""; - selfLink_ = ""; - targetLink_ = ""; - location_ = ""; - startTime_ = ""; - endTime_ = ""; - progress_ = null; - if (progressBuilder_ != null) { - progressBuilder_.dispose(); - progressBuilder_ = null; - } - if (clusterConditionsBuilder_ == null) { - clusterConditions_ = java.util.Collections.emptyList(); - } else { - clusterConditions_ = null; - clusterConditionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00001000); - if (nodepoolConditionsBuilder_ == null) { - nodepoolConditions_ = java.util.Collections.emptyList(); - } else { - nodepoolConditions_ = null; - nodepoolConditionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00002000); - error_ = null; - if (errorBuilder_ != null) { - errorBuilder_.dispose(); - errorBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_Operation_descriptor; - } - - @java.lang.Override - public com.google.container.v1.Operation getDefaultInstanceForType() { - return com.google.container.v1.Operation.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.Operation build() { - com.google.container.v1.Operation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.Operation buildPartial() { - com.google.container.v1.Operation result = new com.google.container.v1.Operation(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.container.v1.Operation result) { - if (clusterConditionsBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0)) { - clusterConditions_ = java.util.Collections.unmodifiableList(clusterConditions_); - bitField0_ = (bitField0_ & ~0x00001000); - } - result.clusterConditions_ = clusterConditions_; - } else { - result.clusterConditions_ = clusterConditionsBuilder_.build(); - } - if (nodepoolConditionsBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0)) { - nodepoolConditions_ = java.util.Collections.unmodifiableList(nodepoolConditions_); - bitField0_ = (bitField0_ & ~0x00002000); - } - result.nodepoolConditions_ = nodepoolConditions_; - } else { - result.nodepoolConditions_ = nodepoolConditionsBuilder_.build(); - } - } - - private void buildPartial0(com.google.container.v1.Operation result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.operationType_ = operationType_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.status_ = status_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.detail_ = detail_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.statusMessage_ = statusMessage_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.selfLink_ = selfLink_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.targetLink_ = targetLink_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.location_ = location_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.startTime_ = startTime_; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.endTime_ = endTime_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000800) != 0)) { - result.progress_ = progressBuilder_ == null ? progress_ : progressBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.Operation) { - return mergeFrom((com.google.container.v1.Operation) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.Operation other) { - if (other == com.google.container.v1.Operation.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.operationType_ != 0) { - setOperationTypeValue(other.getOperationTypeValue()); - } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); - } - if (!other.getDetail().isEmpty()) { - detail_ = other.detail_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (!other.getStatusMessage().isEmpty()) { - statusMessage_ = other.statusMessage_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (!other.getSelfLink().isEmpty()) { - selfLink_ = other.selfLink_; - bitField0_ |= 0x00000040; - onChanged(); - } - if (!other.getTargetLink().isEmpty()) { - targetLink_ = other.targetLink_; - bitField0_ |= 0x00000080; - onChanged(); - } - if (!other.getLocation().isEmpty()) { - location_ = other.location_; - bitField0_ |= 0x00000100; - onChanged(); - } - if (!other.getStartTime().isEmpty()) { - startTime_ = other.startTime_; - bitField0_ |= 0x00000200; - onChanged(); - } - if (!other.getEndTime().isEmpty()) { - endTime_ = other.endTime_; - bitField0_ |= 0x00000400; - onChanged(); - } - if (other.hasProgress()) { - mergeProgress(other.getProgress()); - } - if (clusterConditionsBuilder_ == null) { - if (!other.clusterConditions_.isEmpty()) { - if (clusterConditions_.isEmpty()) { - clusterConditions_ = other.clusterConditions_; - bitField0_ = (bitField0_ & ~0x00001000); - } else { - ensureClusterConditionsIsMutable(); - clusterConditions_.addAll(other.clusterConditions_); - } - onChanged(); - } - } else { - if (!other.clusterConditions_.isEmpty()) { - if (clusterConditionsBuilder_.isEmpty()) { - clusterConditionsBuilder_.dispose(); - clusterConditionsBuilder_ = null; - clusterConditions_ = other.clusterConditions_; - bitField0_ = (bitField0_ & ~0x00001000); - clusterConditionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getClusterConditionsFieldBuilder() - : null; - } else { - clusterConditionsBuilder_.addAllMessages(other.clusterConditions_); - } - } - } - if (nodepoolConditionsBuilder_ == null) { - if (!other.nodepoolConditions_.isEmpty()) { - if (nodepoolConditions_.isEmpty()) { - nodepoolConditions_ = other.nodepoolConditions_; - bitField0_ = (bitField0_ & ~0x00002000); - } else { - ensureNodepoolConditionsIsMutable(); - nodepoolConditions_.addAll(other.nodepoolConditions_); - } - onChanged(); - } - } else { - if (!other.nodepoolConditions_.isEmpty()) { - if (nodepoolConditionsBuilder_.isEmpty()) { - nodepoolConditionsBuilder_.dispose(); - nodepoolConditionsBuilder_ = null; - nodepoolConditions_ = other.nodepoolConditions_; - bitField0_ = (bitField0_ & ~0x00002000); - nodepoolConditionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNodepoolConditionsFieldBuilder() - : null; - } else { - nodepoolConditionsBuilder_.addAllMessages(other.nodepoolConditions_); - } - } - } - if (other.hasError()) { - mergeError(other.getError()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - operationType_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - status_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - statusMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 42 - case 50: - { - selfLink_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 50 - case 58: - { - targetLink_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 58 - case 66: - { - detail_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 66 - case 74: - { - location_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 74 - case 82: - { - startTime_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; - break; - } // case 82 - case 90: - { - endTime_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; - break; - } // case 90 - case 98: - { - input.readMessage(getProgressFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; - break; - } // case 98 - case 106: - { - com.google.container.v1.StatusCondition m = - input.readMessage( - com.google.container.v1.StatusCondition.parser(), extensionRegistry); - if (clusterConditionsBuilder_ == null) { - ensureClusterConditionsIsMutable(); - clusterConditions_.add(m); - } else { - clusterConditionsBuilder_.addMessage(m); - } - break; - } // case 106 - case 114: - { - com.google.container.v1.StatusCondition m = - input.readMessage( - com.google.container.v1.StatusCondition.parser(), extensionRegistry); - if (nodepoolConditionsBuilder_ == null) { - ensureNodepoolConditionsIsMutable(); - nodepoolConditions_.add(m); - } else { - nodepoolConditionsBuilder_.addMessage(m); - } - break; - } // case 114 - case 122: - { - input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; - break; - } // case 122 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The server-assigned ID for the operation.
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - 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]; - * - * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2448 - * @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]; - * - * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2448 - * @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]; - * - * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2448 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2448 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - 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]; - * - * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2448 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private int operationType_ = 0; - /** - * - * - *
-     * The operation type.
-     * 
- * - * .google.container.v1.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.v1.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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The operation type.
-     * 
- * - * .google.container.v1.Operation.Type operation_type = 3; - * - * @return The operationType. - */ - @java.lang.Override - public com.google.container.v1.Operation.Type getOperationType() { - com.google.container.v1.Operation.Type result = - com.google.container.v1.Operation.Type.forNumber(operationType_); - return result == null ? com.google.container.v1.Operation.Type.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The operation type.
-     * 
- * - * .google.container.v1.Operation.Type operation_type = 3; - * - * @param value The operationType to set. - * @return This builder for chaining. - */ - public Builder setOperationType(com.google.container.v1.Operation.Type value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - operationType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The operation type.
-     * 
- * - * .google.container.v1.Operation.Type operation_type = 3; - * - * @return This builder for chaining. - */ - public Builder clearOperationType() { - bitField0_ = (bitField0_ & ~0x00000004); - operationType_ = 0; - onChanged(); - return this; - } - - private int status_ = 0; - /** - * - * - *
-     * The current status of the operation.
-     * 
- * - * .google.container.v1.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.v1.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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * The current status of the operation.
-     * 
- * - * .google.container.v1.Operation.Status status = 4; - * - * @return The status. - */ - @java.lang.Override - public com.google.container.v1.Operation.Status getStatus() { - com.google.container.v1.Operation.Status result = - com.google.container.v1.Operation.Status.forNumber(status_); - return result == null ? com.google.container.v1.Operation.Status.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The current status of the operation.
-     * 
- * - * .google.container.v1.Operation.Status status = 4; - * - * @param value The status to set. - * @return This builder for chaining. - */ - public Builder setStatus(com.google.container.v1.Operation.Status value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - status_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The current status of the operation.
-     * 
- * - * .google.container.v1.Operation.Status status = 4; - * - * @return This builder for chaining. - */ - public Builder clearStatus() { - bitField0_ = (bitField0_ & ~0x00000008); - 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; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Detailed operation progress, if available.
-     * 
- * - * string detail = 8; - * - * @return This builder for chaining. - */ - public Builder clearDetail() { - detail_ = getDefaultInstance().getDetail(); - bitField0_ = (bitField0_ & ~0x00000010); - 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; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private java.lang.Object statusMessage_ = ""; - /** - * - * - *
-     * Output only. If an error has occurred, a textual description of the error.
-     * Deprecated. Use the field error instead.
-     * 
- * - * - * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2461 - * @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 the field error instead.
-     * 
- * - * - * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2461 - * @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 the field error instead.
-     * 
- * - * - * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2461 - * @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; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. If an error has occurred, a textual description of the error.
-     * Deprecated. Use the field error instead.
-     * 
- * - * - * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2461 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearStatusMessage() { - statusMessage_ = getDefaultInstance().getStatusMessage(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. If an error has occurred, a textual description of the error.
-     * Deprecated. Use the field error instead.
-     * 
- * - * - * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2461 - * @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; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - private java.lang.Object selfLink_ = ""; - /** - * - * - *
-     * Server-defined URI for the operation. Example:
-     * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
-     * 
- * - * 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 URI for the operation. Example:
-     * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
-     * 
- * - * 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 URI for the operation. Example:
-     * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
-     * 
- * - * 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; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-     * Server-defined URI for the operation. Example:
-     * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
-     * 
- * - * string self_link = 6; - * - * @return This builder for chaining. - */ - public Builder clearSelfLink() { - selfLink_ = getDefaultInstance().getSelfLink(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; - } - /** - * - * - *
-     * Server-defined URI for the operation. Example:
-     * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
-     * 
- * - * 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; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - private java.lang.Object targetLink_ = ""; - /** - * - * - *
-     * Server-defined URI for the target of the operation. The format of this is a
-     * URI to the resource being modified (such as a cluster, node pool, or node).
-     * For node pool repairs, there may be multiple nodes being repaired, but only
-     * one will be the target.
-     *
-     * Examples:
-     *
-     * -
-     * ##
-     * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
-     *
-     * ##
-     * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
-     *
-     * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
-     * 
- * - * 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 URI for the target of the operation. The format of this is a
-     * URI to the resource being modified (such as a cluster, node pool, or node).
-     * For node pool repairs, there may be multiple nodes being repaired, but only
-     * one will be the target.
-     *
-     * Examples:
-     *
-     * -
-     * ##
-     * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
-     *
-     * ##
-     * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
-     *
-     * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
-     * 
- * - * 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 URI for the target of the operation. The format of this is a
-     * URI to the resource being modified (such as a cluster, node pool, or node).
-     * For node pool repairs, there may be multiple nodes being repaired, but only
-     * one will be the target.
-     *
-     * Examples:
-     *
-     * -
-     * ##
-     * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
-     *
-     * ##
-     * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
-     *
-     * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
-     * 
- * - * 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; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * Server-defined URI for the target of the operation. The format of this is a
-     * URI to the resource being modified (such as a cluster, node pool, or node).
-     * For node pool repairs, there may be multiple nodes being repaired, but only
-     * one will be the target.
-     *
-     * Examples:
-     *
-     * -
-     * ##
-     * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
-     *
-     * ##
-     * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
-     *
-     * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
-     * 
- * - * string target_link = 7; - * - * @return This builder for chaining. - */ - public Builder clearTargetLink() { - targetLink_ = getDefaultInstance().getTargetLink(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - return this; - } - /** - * - * - *
-     * Server-defined URI for the target of the operation. The format of this is a
-     * URI to the resource being modified (such as a cluster, node pool, or node).
-     * For node pool repairs, there may be multiple nodes being repaired, but only
-     * one will be the target.
-     *
-     * Examples:
-     *
-     * -
-     * ##
-     * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
-     *
-     * ##
-     * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
-     *
-     * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
-     * 
- * - * 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; - bitField0_ |= 0x00000080; - 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; - bitField0_ |= 0x00000100; - 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(); - bitField0_ = (bitField0_ & ~0x00000100); - 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; - bitField0_ |= 0x00000100; - 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; - bitField0_ |= 0x00000200; - 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(); - bitField0_ = (bitField0_ & ~0x00000200); - 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; - bitField0_ |= 0x00000200; - 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; - bitField0_ |= 0x00000400; - 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(); - bitField0_ = (bitField0_ & ~0x00000400); - 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; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - - private com.google.container.v1.OperationProgress progress_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.OperationProgress, - com.google.container.v1.OperationProgress.Builder, - com.google.container.v1.OperationProgressOrBuilder> - progressBuilder_; - /** - * - * - *
-     * Output only. [Output only] Progress information for an operation.
-     * 
- * - * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the progress field is set. - */ - public boolean hasProgress() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - * - * - *
-     * Output only. [Output only] Progress information for an operation.
-     * 
- * - * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The progress. - */ - public com.google.container.v1.OperationProgress getProgress() { - if (progressBuilder_ == null) { - return progress_ == null - ? com.google.container.v1.OperationProgress.getDefaultInstance() - : progress_; - } else { - return progressBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. [Output only] Progress information for an operation.
-     * 
- * - * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setProgress(com.google.container.v1.OperationProgress value) { - if (progressBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - progress_ = value; - } else { - progressBuilder_.setMessage(value); - } - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. [Output only] Progress information for an operation.
-     * 
- * - * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setProgress(com.google.container.v1.OperationProgress.Builder builderForValue) { - if (progressBuilder_ == null) { - progress_ = builderForValue.build(); - } else { - progressBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. [Output only] Progress information for an operation.
-     * 
- * - * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeProgress(com.google.container.v1.OperationProgress value) { - if (progressBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) - && progress_ != null - && progress_ != com.google.container.v1.OperationProgress.getDefaultInstance()) { - getProgressBuilder().mergeFrom(value); - } else { - progress_ = value; - } - } else { - progressBuilder_.mergeFrom(value); - } - if (progress_ != null) { - bitField0_ |= 0x00000800; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Output only. [Output only] Progress information for an operation.
-     * 
- * - * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearProgress() { - bitField0_ = (bitField0_ & ~0x00000800); - progress_ = null; - if (progressBuilder_ != null) { - progressBuilder_.dispose(); - progressBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. [Output only] Progress information for an operation.
-     * 
- * - * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.container.v1.OperationProgress.Builder getProgressBuilder() { - bitField0_ |= 0x00000800; - onChanged(); - return getProgressFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. [Output only] Progress information for an operation.
-     * 
- * - * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.container.v1.OperationProgressOrBuilder getProgressOrBuilder() { - if (progressBuilder_ != null) { - return progressBuilder_.getMessageOrBuilder(); - } else { - return progress_ == null - ? com.google.container.v1.OperationProgress.getDefaultInstance() - : progress_; - } - } - /** - * - * - *
-     * Output only. [Output only] Progress information for an operation.
-     * 
- * - * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.OperationProgress, - com.google.container.v1.OperationProgress.Builder, - com.google.container.v1.OperationProgressOrBuilder> - getProgressFieldBuilder() { - if (progressBuilder_ == null) { - progressBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.OperationProgress, - com.google.container.v1.OperationProgress.Builder, - com.google.container.v1.OperationProgressOrBuilder>( - getProgress(), getParentForChildren(), isClean()); - progress_ = null; - } - return progressBuilder_; - } - - private java.util.List clusterConditions_ = - java.util.Collections.emptyList(); - - private void ensureClusterConditionsIsMutable() { - if (!((bitField0_ & 0x00001000) != 0)) { - clusterConditions_ = - new java.util.ArrayList(clusterConditions_); - bitField0_ |= 0x00001000; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.StatusCondition, - com.google.container.v1.StatusCondition.Builder, - com.google.container.v1.StatusConditionOrBuilder> - clusterConditionsBuilder_; - - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * Deprecated. Use field error instead.
-     * 
- * - * - * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; - * - */ - @java.lang.Deprecated - public java.util.List getClusterConditionsList() { - if (clusterConditionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(clusterConditions_); - } else { - return clusterConditionsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * Deprecated. Use field error instead.
-     * 
- * - * - * repeated .google.container.v1.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.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; - * - */ - @java.lang.Deprecated - public com.google.container.v1.StatusCondition getClusterConditions(int index) { - if (clusterConditionsBuilder_ == null) { - return clusterConditions_.get(index); - } else { - return clusterConditionsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * Deprecated. Use field error instead.
-     * 
- * - * - * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder setClusterConditions(int index, com.google.container.v1.StatusCondition value) { - if (clusterConditionsBuilder_ == null) { - if (value == null) { - 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.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder setClusterConditions( - int index, com.google.container.v1.StatusCondition.Builder builderForValue) { - if (clusterConditionsBuilder_ == null) { - 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.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder addClusterConditions(com.google.container.v1.StatusCondition value) { - if (clusterConditionsBuilder_ == null) { - if (value == null) { - 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.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder addClusterConditions(int index, com.google.container.v1.StatusCondition value) { - if (clusterConditionsBuilder_ == null) { - if (value == null) { - 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.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder addClusterConditions( - com.google.container.v1.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.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder addClusterConditions( - int index, com.google.container.v1.StatusCondition.Builder builderForValue) { - if (clusterConditionsBuilder_ == null) { - 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.v1.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.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder clearClusterConditions() { - if (clusterConditionsBuilder_ == null) { - clusterConditions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00001000); - onChanged(); - } else { - clusterConditionsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * Deprecated. Use field error instead.
-     * 
- * - * - * repeated .google.container.v1.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.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; - * - */ - @java.lang.Deprecated - public com.google.container.v1.StatusCondition.Builder getClusterConditionsBuilder(int index) { - return getClusterConditionsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * Deprecated. Use field error instead.
-     * 
- * - * - * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; - * - */ - @java.lang.Deprecated - public com.google.container.v1.StatusConditionOrBuilder getClusterConditionsOrBuilder( - int index) { - if (clusterConditionsBuilder_ == null) { - return clusterConditions_.get(index); - } else { - return clusterConditionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * Deprecated. Use field error instead.
-     * 
- * - * - * repeated .google.container.v1.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.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; - * - */ - @java.lang.Deprecated - public com.google.container.v1.StatusCondition.Builder addClusterConditionsBuilder() { - return getClusterConditionsFieldBuilder() - .addBuilder(com.google.container.v1.StatusCondition.getDefaultInstance()); - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * Deprecated. Use field error instead.
-     * 
- * - * - * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; - * - */ - @java.lang.Deprecated - public com.google.container.v1.StatusCondition.Builder addClusterConditionsBuilder(int index) { - return getClusterConditionsFieldBuilder() - .addBuilder(index, com.google.container.v1.StatusCondition.getDefaultInstance()); - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * Deprecated. Use field error instead.
-     * 
- * - * - * repeated .google.container.v1.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.v1.StatusCondition, - com.google.container.v1.StatusCondition.Builder, - com.google.container.v1.StatusConditionOrBuilder> - getClusterConditionsFieldBuilder() { - if (clusterConditionsBuilder_ == null) { - clusterConditionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.StatusCondition, - com.google.container.v1.StatusCondition.Builder, - com.google.container.v1.StatusConditionOrBuilder>( - clusterConditions_, - ((bitField0_ & 0x00001000) != 0), - getParentForChildren(), - isClean()); - clusterConditions_ = null; - } - return clusterConditionsBuilder_; - } - - private java.util.List nodepoolConditions_ = - java.util.Collections.emptyList(); - - private void ensureNodepoolConditionsIsMutable() { - if (!((bitField0_ & 0x00002000) != 0)) { - nodepoolConditions_ = - new java.util.ArrayList(nodepoolConditions_); - bitField0_ |= 0x00002000; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.StatusCondition, - com.google.container.v1.StatusCondition.Builder, - com.google.container.v1.StatusConditionOrBuilder> - nodepoolConditionsBuilder_; - - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * Deprecated. Use field error instead.
-     * 
- * - * - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - * - */ - @java.lang.Deprecated - public java.util.List getNodepoolConditionsList() { - if (nodepoolConditionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(nodepoolConditions_); - } else { - return nodepoolConditionsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * Deprecated. Use field error instead.
-     * 
- * - * - * repeated .google.container.v1.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.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - * - */ - @java.lang.Deprecated - public com.google.container.v1.StatusCondition getNodepoolConditions(int index) { - if (nodepoolConditionsBuilder_ == null) { - return nodepoolConditions_.get(index); - } else { - return nodepoolConditionsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * Deprecated. Use field error instead.
-     * 
- * - * - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder setNodepoolConditions(int index, com.google.container.v1.StatusCondition value) { - if (nodepoolConditionsBuilder_ == null) { - if (value == null) { - 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.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder setNodepoolConditions( - int index, com.google.container.v1.StatusCondition.Builder builderForValue) { - if (nodepoolConditionsBuilder_ == null) { - 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.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder addNodepoolConditions(com.google.container.v1.StatusCondition value) { - if (nodepoolConditionsBuilder_ == null) { - if (value == null) { - 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.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder addNodepoolConditions(int index, com.google.container.v1.StatusCondition value) { - if (nodepoolConditionsBuilder_ == null) { - if (value == null) { - 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.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder addNodepoolConditions( - com.google.container.v1.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.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder addNodepoolConditions( - int index, com.google.container.v1.StatusCondition.Builder builderForValue) { - if (nodepoolConditionsBuilder_ == null) { - 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.v1.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.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder clearNodepoolConditions() { - if (nodepoolConditionsBuilder_ == null) { - nodepoolConditions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00002000); - onChanged(); - } else { - nodepoolConditionsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * Deprecated. Use field error instead.
-     * 
- * - * - * repeated .google.container.v1.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.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - * - */ - @java.lang.Deprecated - public com.google.container.v1.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.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - * - */ - @java.lang.Deprecated - public com.google.container.v1.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.v1.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.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - * - */ - @java.lang.Deprecated - public com.google.container.v1.StatusCondition.Builder addNodepoolConditionsBuilder() { - return getNodepoolConditionsFieldBuilder() - .addBuilder(com.google.container.v1.StatusCondition.getDefaultInstance()); - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * Deprecated. Use field error instead.
-     * 
- * - * - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - * - */ - @java.lang.Deprecated - public com.google.container.v1.StatusCondition.Builder addNodepoolConditionsBuilder(int index) { - return getNodepoolConditionsFieldBuilder() - .addBuilder(index, com.google.container.v1.StatusCondition.getDefaultInstance()); - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * Deprecated. Use field error instead.
-     * 
- * - * - * repeated .google.container.v1.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.v1.StatusCondition, - com.google.container.v1.StatusCondition.Builder, - com.google.container.v1.StatusConditionOrBuilder> - getNodepoolConditionsFieldBuilder() { - if (nodepoolConditionsBuilder_ == null) { - nodepoolConditionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.StatusCondition, - com.google.container.v1.StatusCondition.Builder, - com.google.container.v1.StatusConditionOrBuilder>( - nodepoolConditions_, - ((bitField0_ & 0x00002000) != 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 ((bitField0_ & 0x00004000) != 0); - } - /** - * - * - *
-     * 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; - } else { - errorBuilder_.setMessage(value); - } - bitField0_ |= 0x00004000; - onChanged(); - 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(); - } else { - errorBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00004000; - onChanged(); - 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 (((bitField0_ & 0x00004000) != 0) - && error_ != null - && error_ != com.google.rpc.Status.getDefaultInstance()) { - getErrorBuilder().mergeFrom(value); - } else { - error_ = value; - } - } else { - errorBuilder_.mergeFrom(value); - } - if (error_ != null) { - bitField0_ |= 0x00004000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The error result of the operation in case of failure.
-     * 
- * - * .google.rpc.Status error = 15; - */ - public Builder clearError() { - bitField0_ = (bitField0_ & ~0x00004000); - error_ = null; - if (errorBuilder_ != null) { - errorBuilder_.dispose(); - errorBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The error result of the operation in case of failure.
-     * 
- * - * .google.rpc.Status error = 15; - */ - public com.google.rpc.Status.Builder getErrorBuilder() { - bitField0_ |= 0x00004000; - 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.v1.Operation) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.Operation) - private static final com.google.container.v1.Operation DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.Operation(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.Operation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java deleted file mode 100644 index 8aefcc4db9d4..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java +++ /dev/null @@ -1,585 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface OperationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.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]; - * - * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2448 - * @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]; - * - * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2448 - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * The operation type.
-   * 
- * - * .google.container.v1.Operation.Type operation_type = 3; - * - * @return The enum numeric value on the wire for operationType. - */ - int getOperationTypeValue(); - /** - * - * - *
-   * The operation type.
-   * 
- * - * .google.container.v1.Operation.Type operation_type = 3; - * - * @return The operationType. - */ - com.google.container.v1.Operation.Type getOperationType(); - - /** - * - * - *
-   * The current status of the operation.
-   * 
- * - * .google.container.v1.Operation.Status status = 4; - * - * @return The enum numeric value on the wire for status. - */ - int getStatusValue(); - /** - * - * - *
-   * The current status of the operation.
-   * 
- * - * .google.container.v1.Operation.Status status = 4; - * - * @return The status. - */ - com.google.container.v1.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 the field error instead.
-   * 
- * - * - * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2461 - * @return The statusMessage. - */ - @java.lang.Deprecated - java.lang.String getStatusMessage(); - /** - * - * - *
-   * Output only. If an error has occurred, a textual description of the error.
-   * Deprecated. Use the field error instead.
-   * 
- * - * - * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2461 - * @return The bytes for statusMessage. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getStatusMessageBytes(); - - /** - * - * - *
-   * Server-defined URI for the operation. Example:
-   * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
-   * 
- * - * string self_link = 6; - * - * @return The selfLink. - */ - java.lang.String getSelfLink(); - /** - * - * - *
-   * Server-defined URI for the operation. Example:
-   * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
-   * 
- * - * string self_link = 6; - * - * @return The bytes for selfLink. - */ - com.google.protobuf.ByteString getSelfLinkBytes(); - - /** - * - * - *
-   * Server-defined URI for the target of the operation. The format of this is a
-   * URI to the resource being modified (such as a cluster, node pool, or node).
-   * For node pool repairs, there may be multiple nodes being repaired, but only
-   * one will be the target.
-   *
-   * Examples:
-   *
-   * -
-   * ##
-   * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
-   *
-   * ##
-   * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
-   *
-   * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
-   * 
- * - * string target_link = 7; - * - * @return The targetLink. - */ - java.lang.String getTargetLink(); - /** - * - * - *
-   * Server-defined URI for the target of the operation. The format of this is a
-   * URI to the resource being modified (such as a cluster, node pool, or node).
-   * For node pool repairs, there may be multiple nodes being repaired, but only
-   * one will be the target.
-   *
-   * Examples:
-   *
-   * -
-   * ##
-   * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
-   *
-   * ##
-   * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
-   *
-   * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
-   * 
- * - * 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.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the progress field is set. - */ - boolean hasProgress(); - /** - * - * - *
-   * Output only. [Output only] Progress information for an operation.
-   * 
- * - * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The progress. - */ - com.google.container.v1.OperationProgress getProgress(); - /** - * - * - *
-   * Output only. [Output only] Progress information for an operation.
-   * 
- * - * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.container.v1.OperationProgressOrBuilder getProgressOrBuilder(); - - /** - * - * - *
-   * Which conditions caused the current cluster state.
-   * Deprecated. Use field error instead.
-   * 
- * - * - * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; - * - */ - @java.lang.Deprecated - java.util.List getClusterConditionsList(); - /** - * - * - *
-   * Which conditions caused the current cluster state.
-   * Deprecated. Use field error instead.
-   * 
- * - * - * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; - * - */ - @java.lang.Deprecated - com.google.container.v1.StatusCondition getClusterConditions(int index); - /** - * - * - *
-   * Which conditions caused the current cluster state.
-   * Deprecated. Use field error instead.
-   * 
- * - * - * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; - * - */ - @java.lang.Deprecated - int getClusterConditionsCount(); - /** - * - * - *
-   * Which conditions caused the current cluster state.
-   * Deprecated. Use field error instead.
-   * 
- * - * - * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; - * - */ - @java.lang.Deprecated - java.util.List - getClusterConditionsOrBuilderList(); - /** - * - * - *
-   * Which conditions caused the current cluster state.
-   * Deprecated. Use field error instead.
-   * 
- * - * - * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; - * - */ - @java.lang.Deprecated - com.google.container.v1.StatusConditionOrBuilder getClusterConditionsOrBuilder(int index); - - /** - * - * - *
-   * Which conditions caused the current node pool state.
-   * Deprecated. Use field error instead.
-   * 
- * - * - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - * - */ - @java.lang.Deprecated - java.util.List getNodepoolConditionsList(); - /** - * - * - *
-   * Which conditions caused the current node pool state.
-   * Deprecated. Use field error instead.
-   * 
- * - * - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - * - */ - @java.lang.Deprecated - com.google.container.v1.StatusCondition getNodepoolConditions(int index); - /** - * - * - *
-   * Which conditions caused the current node pool state.
-   * Deprecated. Use field error instead.
-   * 
- * - * - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - * - */ - @java.lang.Deprecated - int getNodepoolConditionsCount(); - /** - * - * - *
-   * Which conditions caused the current node pool state.
-   * Deprecated. Use field error instead.
-   * 
- * - * - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [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.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - * - */ - @java.lang.Deprecated - com.google.container.v1.StatusConditionOrBuilder getNodepoolConditionsOrBuilder(int index); - - /** - * - * - *
-   * The error result of the operation in case of failure.
-   * 
- * - * .google.rpc.Status error = 15; - * - * @return Whether the error field is set. - */ - boolean hasError(); - /** - * - * - *
-   * The error result of the operation in case of failure.
-   * 
- * - * .google.rpc.Status error = 15; - * - * @return The error. - */ - com.google.rpc.Status getError(); - /** - * - * - *
-   * The error result of the operation in case of failure.
-   * 
- * - * .google.rpc.Status error = 15; - */ - com.google.rpc.StatusOrBuilder getErrorOrBuilder(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationProgress.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationProgress.java deleted file mode 100644 index cc494091209a..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationProgress.java +++ /dev/null @@ -1,3201 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Information about operation (or operation stage) progress.
- * 
- * - * Protobuf type {@code google.container.v1.OperationProgress} - */ -public final class OperationProgress extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.OperationProgress) - OperationProgressOrBuilder { - private static final long serialVersionUID = 0L; - // Use OperationProgress.newBuilder() to construct. - private OperationProgress(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private OperationProgress() { - name_ = ""; - status_ = 0; - metrics_ = java.util.Collections.emptyList(); - stages_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new OperationProgress(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_OperationProgress_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_OperationProgress_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.OperationProgress.class, - com.google.container.v1.OperationProgress.Builder.class); - } - - public interface MetricOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.OperationProgress.Metric) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Required. Metric name, e.g., "nodes total", "percent done".
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-     * Required. Metric name, e.g., "nodes total", "percent done".
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-     * For metrics with integer value.
-     * 
- * - * int64 int_value = 2; - * - * @return 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(); - - com.google.container.v1.OperationProgress.Metric.ValueCase getValueCase(); - } - /** - * - * - *
-   * Progress metric is (string, int|float|string) pair.
-   * 
- * - * Protobuf type {@code google.container.v1.OperationProgress.Metric} - */ - public static final class Metric extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.OperationProgress.Metric) - MetricOrBuilder { - private static final long serialVersionUID = 0L; - // Use Metric.newBuilder() to construct. - private Metric(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Metric() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Metric(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_OperationProgress_Metric_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_OperationProgress_Metric_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.OperationProgress.Metric.class, - com.google.container.v1.OperationProgress.Metric.Builder.class); - } - - private int valueCase_ = 0; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - 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_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - 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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.OperationProgress.Metric)) { - return super.equals(obj); - } - com.google.container.v1.OperationProgress.Metric other = - (com.google.container.v1.OperationProgress.Metric) obj; - - if (!getName().equals(other.getName())) return false; - if (!getValueCase().equals(other.getValueCase())) return false; - switch (valueCase_) { - case 2: - if (getIntValue() != other.getIntValue()) return false; - break; - case 3: - if (java.lang.Double.doubleToLongBits(getDoubleValue()) - != java.lang.Double.doubleToLongBits(other.getDoubleValue())) return false; - break; - case 4: - if (!getStringValue().equals(other.getStringValue())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.OperationProgress.Metric parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.OperationProgress.Metric parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.OperationProgress.Metric parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.OperationProgress.Metric parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.OperationProgress.Metric parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.OperationProgress.Metric parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.OperationProgress.Metric parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.OperationProgress.Metric parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.OperationProgress.Metric parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.OperationProgress.Metric parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.OperationProgress.Metric parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.OperationProgress.Metric parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.OperationProgress.Metric prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Progress metric is (string, int|float|string) pair.
-     * 
- * - * Protobuf type {@code google.container.v1.OperationProgress.Metric} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.OperationProgress.Metric) - com.google.container.v1.OperationProgress.MetricOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_OperationProgress_Metric_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_OperationProgress_Metric_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.OperationProgress.Metric.class, - com.google.container.v1.OperationProgress.Metric.Builder.class); - } - - // Construct using com.google.container.v1.OperationProgress.Metric.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - valueCase_ = 0; - value_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_OperationProgress_Metric_descriptor; - } - - @java.lang.Override - public com.google.container.v1.OperationProgress.Metric getDefaultInstanceForType() { - return com.google.container.v1.OperationProgress.Metric.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.OperationProgress.Metric build() { - com.google.container.v1.OperationProgress.Metric result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.OperationProgress.Metric buildPartial() { - com.google.container.v1.OperationProgress.Metric result = - new com.google.container.v1.OperationProgress.Metric(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.OperationProgress.Metric result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - private void buildPartialOneofs(com.google.container.v1.OperationProgress.Metric result) { - result.valueCase_ = valueCase_; - result.value_ = this.value_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.OperationProgress.Metric) { - return mergeFrom((com.google.container.v1.OperationProgress.Metric) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.OperationProgress.Metric other) { - if (other == com.google.container.v1.OperationProgress.Metric.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - 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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - value_ = input.readInt64(); - valueCase_ = 2; - break; - } // case 16 - case 25: - { - value_ = input.readDouble(); - valueCase_ = 3; - break; - } // case 25 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - valueCase_ = 4; - value_ = s; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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 int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - 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.v1.OperationProgress.Metric) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.OperationProgress.Metric) - private static final com.google.container.v1.OperationProgress.Metric DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.OperationProgress.Metric(); - } - - public static com.google.container.v1.OperationProgress.Metric getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Metric parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.OperationProgress.Metric getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - 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_ = 0; - /** - * - * - *
-   * Status of an operation stage.
-   * Unset for single-stage operations.
-   * 
- * - * .google.container.v1.Operation.Status status = 2; - * - * @return The enum numeric value on the wire for status. - */ - @java.lang.Override - public int getStatusValue() { - return status_; - } - /** - * - * - *
-   * Status of an operation stage.
-   * Unset for single-stage operations.
-   * 
- * - * .google.container.v1.Operation.Status status = 2; - * - * @return The status. - */ - @java.lang.Override - public com.google.container.v1.Operation.Status getStatus() { - com.google.container.v1.Operation.Status result = - com.google.container.v1.Operation.Status.forNumber(status_); - return result == null ? com.google.container.v1.Operation.Status.UNRECOGNIZED : result; - } - - public static final int METRICS_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private java.util.List metrics_; - /** - * - * - *
-   * Progress metric bundle, for example:
-   *   metrics: [{name: "nodes done",     int_value: 15},
-   *             {name: "nodes total",    int_value: 32}]
-   * or
-   *   metrics: [{name: "progress",       double_value: 0.56},
-   *             {name: "progress scale", double_value: 1.0}]
-   * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - @java.lang.Override - public java.util.List getMetricsList() { - return metrics_; - } - /** - * - * - *
-   * Progress metric bundle, for example:
-   *   metrics: [{name: "nodes done",     int_value: 15},
-   *             {name: "nodes total",    int_value: 32}]
-   * or
-   *   metrics: [{name: "progress",       double_value: 0.56},
-   *             {name: "progress scale", double_value: 1.0}]
-   * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - @java.lang.Override - public java.util.List - getMetricsOrBuilderList() { - return metrics_; - } - /** - * - * - *
-   * Progress metric bundle, for example:
-   *   metrics: [{name: "nodes done",     int_value: 15},
-   *             {name: "nodes total",    int_value: 32}]
-   * or
-   *   metrics: [{name: "progress",       double_value: 0.56},
-   *             {name: "progress scale", double_value: 1.0}]
-   * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - @java.lang.Override - public int getMetricsCount() { - return metrics_.size(); - } - /** - * - * - *
-   * Progress metric bundle, for example:
-   *   metrics: [{name: "nodes done",     int_value: 15},
-   *             {name: "nodes total",    int_value: 32}]
-   * or
-   *   metrics: [{name: "progress",       double_value: 0.56},
-   *             {name: "progress scale", double_value: 1.0}]
-   * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - @java.lang.Override - public com.google.container.v1.OperationProgress.Metric getMetrics(int index) { - return metrics_.get(index); - } - /** - * - * - *
-   * Progress metric bundle, for example:
-   *   metrics: [{name: "nodes done",     int_value: 15},
-   *             {name: "nodes total",    int_value: 32}]
-   * or
-   *   metrics: [{name: "progress",       double_value: 0.56},
-   *             {name: "progress scale", double_value: 1.0}]
-   * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - @java.lang.Override - public com.google.container.v1.OperationProgress.MetricOrBuilder getMetricsOrBuilder(int index) { - return metrics_.get(index); - } - - public static final int STAGES_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private java.util.List stages_; - /** - * - * - *
-   * Substages of an operation or a stage.
-   * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - @java.lang.Override - public java.util.List getStagesList() { - return stages_; - } - /** - * - * - *
-   * Substages of an operation or a stage.
-   * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - @java.lang.Override - public java.util.List - getStagesOrBuilderList() { - return stages_; - } - /** - * - * - *
-   * Substages of an operation or a stage.
-   * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - @java.lang.Override - public int getStagesCount() { - return stages_.size(); - } - /** - * - * - *
-   * Substages of an operation or a stage.
-   * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - @java.lang.Override - public com.google.container.v1.OperationProgress getStages(int index) { - return stages_.get(index); - } - /** - * - * - *
-   * Substages of an operation or a stage.
-   * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - @java.lang.Override - public com.google.container.v1.OperationProgressOrBuilder getStagesOrBuilder(int index) { - return stages_.get(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (status_ != com.google.container.v1.Operation.Status.STATUS_UNSPECIFIED.getNumber()) { - output.writeEnum(2, status_); - } - for (int i = 0; i < metrics_.size(); i++) { - output.writeMessage(3, metrics_.get(i)); - } - for (int i = 0; i < stages_.size(); i++) { - output.writeMessage(4, stages_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (status_ != com.google.container.v1.Operation.Status.STATUS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, status_); - } - for (int i = 0; i < metrics_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, metrics_.get(i)); - } - for (int i = 0; i < stages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, stages_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.OperationProgress)) { - return super.equals(obj); - } - com.google.container.v1.OperationProgress other = - (com.google.container.v1.OperationProgress) obj; - - if (!getName().equals(other.getName())) return false; - if (status_ != other.status_) return false; - if (!getMetricsList().equals(other.getMetricsList())) return false; - if (!getStagesList().equals(other.getStagesList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.OperationProgress parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.OperationProgress parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.OperationProgress parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.OperationProgress parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.OperationProgress parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.OperationProgress parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.OperationProgress parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.OperationProgress parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.OperationProgress parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.OperationProgress parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.OperationProgress parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.OperationProgress parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.OperationProgress prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Information about operation (or operation stage) progress.
-   * 
- * - * Protobuf type {@code google.container.v1.OperationProgress} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.OperationProgress) - com.google.container.v1.OperationProgressOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_OperationProgress_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_OperationProgress_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.OperationProgress.class, - com.google.container.v1.OperationProgress.Builder.class); - } - - // Construct using com.google.container.v1.OperationProgress.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - status_ = 0; - if (metricsBuilder_ == null) { - metrics_ = java.util.Collections.emptyList(); - } else { - metrics_ = null; - metricsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - if (stagesBuilder_ == null) { - stages_ = java.util.Collections.emptyList(); - } else { - stages_ = null; - stagesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_OperationProgress_descriptor; - } - - @java.lang.Override - public com.google.container.v1.OperationProgress getDefaultInstanceForType() { - return com.google.container.v1.OperationProgress.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.OperationProgress build() { - com.google.container.v1.OperationProgress result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.OperationProgress buildPartial() { - com.google.container.v1.OperationProgress result = - new com.google.container.v1.OperationProgress(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.container.v1.OperationProgress result) { - if (metricsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - metrics_ = java.util.Collections.unmodifiableList(metrics_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.metrics_ = metrics_; - } else { - result.metrics_ = metricsBuilder_.build(); - } - if (stagesBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - stages_ = java.util.Collections.unmodifiableList(stages_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.stages_ = stages_; - } else { - result.stages_ = stagesBuilder_.build(); - } - } - - private void buildPartial0(com.google.container.v1.OperationProgress result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.status_ = status_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.OperationProgress) { - return mergeFrom((com.google.container.v1.OperationProgress) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.OperationProgress other) { - if (other == com.google.container.v1.OperationProgress.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); - } - if (metricsBuilder_ == null) { - if (!other.metrics_.isEmpty()) { - if (metrics_.isEmpty()) { - metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureMetricsIsMutable(); - metrics_.addAll(other.metrics_); - } - onChanged(); - } - } else { - if (!other.metrics_.isEmpty()) { - if (metricsBuilder_.isEmpty()) { - metricsBuilder_.dispose(); - metricsBuilder_ = null; - metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000004); - metricsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMetricsFieldBuilder() - : null; - } else { - metricsBuilder_.addAllMessages(other.metrics_); - } - } - } - if (stagesBuilder_ == null) { - if (!other.stages_.isEmpty()) { - if (stages_.isEmpty()) { - stages_ = other.stages_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureStagesIsMutable(); - stages_.addAll(other.stages_); - } - onChanged(); - } - } else { - if (!other.stages_.isEmpty()) { - if (stagesBuilder_.isEmpty()) { - stagesBuilder_.dispose(); - stagesBuilder_ = null; - stages_ = other.stages_; - bitField0_ = (bitField0_ & ~0x00000008); - stagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getStagesFieldBuilder() - : null; - } else { - stagesBuilder_.addAllMessages(other.stages_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - status_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - com.google.container.v1.OperationProgress.Metric m = - input.readMessage( - com.google.container.v1.OperationProgress.Metric.parser(), - extensionRegistry); - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(m); - } else { - metricsBuilder_.addMessage(m); - } - break; - } // case 26 - case 34: - { - com.google.container.v1.OperationProgress m = - input.readMessage( - com.google.container.v1.OperationProgress.parser(), extensionRegistry); - if (stagesBuilder_ == null) { - ensureStagesIsMutable(); - stages_.add(m); - } else { - stagesBuilder_.addMessage(m); - } - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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; - bitField0_ |= 0x00000001; - 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(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int status_ = 0; - /** - * - * - *
-     * Status of an operation stage.
-     * Unset for single-stage operations.
-     * 
- * - * .google.container.v1.Operation.Status status = 2; - * - * @return The enum numeric value on the wire for status. - */ - @java.lang.Override - public int getStatusValue() { - return status_; - } - /** - * - * - *
-     * Status of an operation stage.
-     * Unset for single-stage operations.
-     * 
- * - * .google.container.v1.Operation.Status status = 2; - * - * @param value The enum numeric value on the wire for status to set. - * @return This builder for chaining. - */ - public Builder setStatusValue(int value) { - status_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Status of an operation stage.
-     * Unset for single-stage operations.
-     * 
- * - * .google.container.v1.Operation.Status status = 2; - * - * @return The status. - */ - @java.lang.Override - public com.google.container.v1.Operation.Status getStatus() { - com.google.container.v1.Operation.Status result = - com.google.container.v1.Operation.Status.forNumber(status_); - return result == null ? com.google.container.v1.Operation.Status.UNRECOGNIZED : result; - } - /** - * - * - *
-     * Status of an operation stage.
-     * Unset for single-stage operations.
-     * 
- * - * .google.container.v1.Operation.Status status = 2; - * - * @param value The status to set. - * @return This builder for chaining. - */ - public Builder setStatus(com.google.container.v1.Operation.Status value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - status_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Status of an operation stage.
-     * Unset for single-stage operations.
-     * 
- * - * .google.container.v1.Operation.Status status = 2; - * - * @return This builder for chaining. - */ - public Builder clearStatus() { - bitField0_ = (bitField0_ & ~0x00000002); - status_ = 0; - onChanged(); - return this; - } - - private java.util.List metrics_ = - java.util.Collections.emptyList(); - - private void ensureMetricsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - metrics_ = - new java.util.ArrayList(metrics_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.OperationProgress.Metric, - com.google.container.v1.OperationProgress.Metric.Builder, - com.google.container.v1.OperationProgress.MetricOrBuilder> - metricsBuilder_; - - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public java.util.List getMetricsList() { - if (metricsBuilder_ == null) { - return java.util.Collections.unmodifiableList(metrics_); - } else { - return metricsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public int getMetricsCount() { - if (metricsBuilder_ == null) { - return metrics_.size(); - } else { - return metricsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public com.google.container.v1.OperationProgress.Metric getMetrics(int index) { - if (metricsBuilder_ == null) { - return metrics_.get(index); - } else { - return metricsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public Builder setMetrics(int index, com.google.container.v1.OperationProgress.Metric value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.set(index, value); - onChanged(); - } else { - metricsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public Builder setMetrics( - int index, com.google.container.v1.OperationProgress.Metric.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.set(index, builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public Builder addMetrics(com.google.container.v1.OperationProgress.Metric value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.add(value); - onChanged(); - } else { - metricsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public Builder addMetrics(int index, com.google.container.v1.OperationProgress.Metric value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.add(index, value); - onChanged(); - } else { - metricsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public Builder addMetrics( - com.google.container.v1.OperationProgress.Metric.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public Builder addMetrics( - int index, com.google.container.v1.OperationProgress.Metric.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(index, builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public Builder addAllMetrics( - java.lang.Iterable values) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metrics_); - onChanged(); - } else { - metricsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public Builder clearMetrics() { - if (metricsBuilder_ == null) { - metrics_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - metricsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public Builder removeMetrics(int index) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.remove(index); - onChanged(); - } else { - metricsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public com.google.container.v1.OperationProgress.Metric.Builder getMetricsBuilder(int index) { - return getMetricsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public com.google.container.v1.OperationProgress.MetricOrBuilder getMetricsOrBuilder( - int index) { - if (metricsBuilder_ == null) { - return metrics_.get(index); - } else { - return metricsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public java.util.List - getMetricsOrBuilderList() { - if (metricsBuilder_ != null) { - return metricsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(metrics_); - } - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public com.google.container.v1.OperationProgress.Metric.Builder addMetricsBuilder() { - return getMetricsFieldBuilder() - .addBuilder(com.google.container.v1.OperationProgress.Metric.getDefaultInstance()); - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public com.google.container.v1.OperationProgress.Metric.Builder addMetricsBuilder(int index) { - return getMetricsFieldBuilder() - .addBuilder(index, com.google.container.v1.OperationProgress.Metric.getDefaultInstance()); - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public java.util.List - getMetricsBuilderList() { - return getMetricsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.OperationProgress.Metric, - com.google.container.v1.OperationProgress.Metric.Builder, - com.google.container.v1.OperationProgress.MetricOrBuilder> - getMetricsFieldBuilder() { - if (metricsBuilder_ == null) { - metricsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.OperationProgress.Metric, - com.google.container.v1.OperationProgress.Metric.Builder, - com.google.container.v1.OperationProgress.MetricOrBuilder>( - metrics_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); - metrics_ = null; - } - return metricsBuilder_; - } - - private java.util.List stages_ = - java.util.Collections.emptyList(); - - private void ensureStagesIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - stages_ = new java.util.ArrayList(stages_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.OperationProgress, - com.google.container.v1.OperationProgress.Builder, - com.google.container.v1.OperationProgressOrBuilder> - stagesBuilder_; - - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public java.util.List getStagesList() { - if (stagesBuilder_ == null) { - return java.util.Collections.unmodifiableList(stages_); - } else { - return stagesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public int getStagesCount() { - if (stagesBuilder_ == null) { - return stages_.size(); - } else { - return stagesBuilder_.getCount(); - } - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public com.google.container.v1.OperationProgress getStages(int index) { - if (stagesBuilder_ == null) { - return stages_.get(index); - } else { - return stagesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public Builder setStages(int index, com.google.container.v1.OperationProgress value) { - if (stagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStagesIsMutable(); - stages_.set(index, value); - onChanged(); - } else { - stagesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public Builder setStages( - int index, com.google.container.v1.OperationProgress.Builder builderForValue) { - if (stagesBuilder_ == null) { - ensureStagesIsMutable(); - stages_.set(index, builderForValue.build()); - onChanged(); - } else { - stagesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public Builder addStages(com.google.container.v1.OperationProgress value) { - if (stagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStagesIsMutable(); - stages_.add(value); - onChanged(); - } else { - stagesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public Builder addStages(int index, com.google.container.v1.OperationProgress value) { - if (stagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStagesIsMutable(); - stages_.add(index, value); - onChanged(); - } else { - stagesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public Builder addStages(com.google.container.v1.OperationProgress.Builder builderForValue) { - if (stagesBuilder_ == null) { - ensureStagesIsMutable(); - stages_.add(builderForValue.build()); - onChanged(); - } else { - stagesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public Builder addStages( - int index, com.google.container.v1.OperationProgress.Builder builderForValue) { - if (stagesBuilder_ == null) { - ensureStagesIsMutable(); - stages_.add(index, builderForValue.build()); - onChanged(); - } else { - stagesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public Builder addAllStages( - java.lang.Iterable values) { - if (stagesBuilder_ == null) { - ensureStagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stages_); - onChanged(); - } else { - stagesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public Builder clearStages() { - if (stagesBuilder_ == null) { - stages_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - stagesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public Builder removeStages(int index) { - if (stagesBuilder_ == null) { - ensureStagesIsMutable(); - stages_.remove(index); - onChanged(); - } else { - stagesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public com.google.container.v1.OperationProgress.Builder getStagesBuilder(int index) { - return getStagesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public com.google.container.v1.OperationProgressOrBuilder getStagesOrBuilder(int index) { - if (stagesBuilder_ == null) { - return stages_.get(index); - } else { - return stagesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public java.util.List - getStagesOrBuilderList() { - if (stagesBuilder_ != null) { - return stagesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(stages_); - } - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public com.google.container.v1.OperationProgress.Builder addStagesBuilder() { - return getStagesFieldBuilder() - .addBuilder(com.google.container.v1.OperationProgress.getDefaultInstance()); - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public com.google.container.v1.OperationProgress.Builder addStagesBuilder(int index) { - return getStagesFieldBuilder() - .addBuilder(index, com.google.container.v1.OperationProgress.getDefaultInstance()); - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public java.util.List - getStagesBuilderList() { - return getStagesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.OperationProgress, - com.google.container.v1.OperationProgress.Builder, - com.google.container.v1.OperationProgressOrBuilder> - getStagesFieldBuilder() { - if (stagesBuilder_ == null) { - stagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.OperationProgress, - com.google.container.v1.OperationProgress.Builder, - com.google.container.v1.OperationProgressOrBuilder>( - stages_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); - stages_ = null; - } - return stagesBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.OperationProgress) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.OperationProgress) - private static final com.google.container.v1.OperationProgress DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.OperationProgress(); - } - - public static com.google.container.v1.OperationProgress getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationProgress parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.OperationProgress getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationProgressOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationProgressOrBuilder.java deleted file mode 100644 index 7c5fe9b60763..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationProgressOrBuilder.java +++ /dev/null @@ -1,209 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface OperationProgressOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.OperationProgress) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A non-parameterized string describing an operation stage.
-   * Unset for single-stage operations.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * A non-parameterized string describing an operation stage.
-   * Unset for single-stage operations.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Status of an operation stage.
-   * Unset for single-stage operations.
-   * 
- * - * .google.container.v1.Operation.Status status = 2; - * - * @return The enum numeric value on the wire for status. - */ - int getStatusValue(); - /** - * - * - *
-   * Status of an operation stage.
-   * Unset for single-stage operations.
-   * 
- * - * .google.container.v1.Operation.Status status = 2; - * - * @return The status. - */ - com.google.container.v1.Operation.Status getStatus(); - - /** - * - * - *
-   * Progress metric bundle, for example:
-   *   metrics: [{name: "nodes done",     int_value: 15},
-   *             {name: "nodes total",    int_value: 32}]
-   * or
-   *   metrics: [{name: "progress",       double_value: 0.56},
-   *             {name: "progress scale", double_value: 1.0}]
-   * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - java.util.List getMetricsList(); - /** - * - * - *
-   * Progress metric bundle, for example:
-   *   metrics: [{name: "nodes done",     int_value: 15},
-   *             {name: "nodes total",    int_value: 32}]
-   * or
-   *   metrics: [{name: "progress",       double_value: 0.56},
-   *             {name: "progress scale", double_value: 1.0}]
-   * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - com.google.container.v1.OperationProgress.Metric getMetrics(int index); - /** - * - * - *
-   * Progress metric bundle, for example:
-   *   metrics: [{name: "nodes done",     int_value: 15},
-   *             {name: "nodes total",    int_value: 32}]
-   * or
-   *   metrics: [{name: "progress",       double_value: 0.56},
-   *             {name: "progress scale", double_value: 1.0}]
-   * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - int getMetricsCount(); - /** - * - * - *
-   * Progress metric bundle, for example:
-   *   metrics: [{name: "nodes done",     int_value: 15},
-   *             {name: "nodes total",    int_value: 32}]
-   * or
-   *   metrics: [{name: "progress",       double_value: 0.56},
-   *             {name: "progress scale", double_value: 1.0}]
-   * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - java.util.List - getMetricsOrBuilderList(); - /** - * - * - *
-   * Progress metric bundle, for example:
-   *   metrics: [{name: "nodes done",     int_value: 15},
-   *             {name: "nodes total",    int_value: 32}]
-   * or
-   *   metrics: [{name: "progress",       double_value: 0.56},
-   *             {name: "progress scale", double_value: 1.0}]
-   * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - com.google.container.v1.OperationProgress.MetricOrBuilder getMetricsOrBuilder(int index); - - /** - * - * - *
-   * Substages of an operation or a stage.
-   * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - java.util.List getStagesList(); - /** - * - * - *
-   * Substages of an operation or a stage.
-   * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - com.google.container.v1.OperationProgress getStages(int index); - /** - * - * - *
-   * Substages of an operation or a stage.
-   * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - int getStagesCount(); - /** - * - * - *
-   * Substages of an operation or a stage.
-   * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - java.util.List - getStagesOrBuilderList(); - /** - * - * - *
-   * Substages of an operation or a stage.
-   * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - com.google.container.v1.OperationProgressOrBuilder getStagesOrBuilder(int index); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PodCIDROverprovisionConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PodCIDROverprovisionConfig.java deleted file mode 100644 index 28da42e3f8d5..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PodCIDROverprovisionConfig.java +++ /dev/null @@ -1,541 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * [PRIVATE FIELD]
- * Config for pod CIDR size overprovisioning.
- * 
- * - * Protobuf type {@code google.container.v1.PodCIDROverprovisionConfig} - */ -public final class PodCIDROverprovisionConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.PodCIDROverprovisionConfig) - PodCIDROverprovisionConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use PodCIDROverprovisionConfig.newBuilder() to construct. - private PodCIDROverprovisionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PodCIDROverprovisionConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PodCIDROverprovisionConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_PodCIDROverprovisionConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_PodCIDROverprovisionConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.PodCIDROverprovisionConfig.class, - com.google.container.v1.PodCIDROverprovisionConfig.Builder.class); - } - - public static final int DISABLE_FIELD_NUMBER = 1; - private boolean disable_ = false; - /** - * - * - *
-   * Whether Pod CIDR overprovisioning is disabled.
-   * Note: Pod CIDR overprovisioning is enabled by default.
-   * 
- * - * bool disable = 1; - * - * @return The disable. - */ - @java.lang.Override - public boolean getDisable() { - return disable_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (disable_ != false) { - output.writeBool(1, disable_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (disable_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, disable_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.PodCIDROverprovisionConfig)) { - return super.equals(obj); - } - com.google.container.v1.PodCIDROverprovisionConfig other = - (com.google.container.v1.PodCIDROverprovisionConfig) obj; - - if (getDisable() != other.getDisable()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + DISABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisable()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.PodCIDROverprovisionConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.PodCIDROverprovisionConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.PodCIDROverprovisionConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.PodCIDROverprovisionConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.PodCIDROverprovisionConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.PodCIDROverprovisionConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.PodCIDROverprovisionConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.PodCIDROverprovisionConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.PodCIDROverprovisionConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.PodCIDROverprovisionConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.PodCIDROverprovisionConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.PodCIDROverprovisionConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.PodCIDROverprovisionConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * [PRIVATE FIELD]
-   * Config for pod CIDR size overprovisioning.
-   * 
- * - * Protobuf type {@code google.container.v1.PodCIDROverprovisionConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.PodCIDROverprovisionConfig) - com.google.container.v1.PodCIDROverprovisionConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_PodCIDROverprovisionConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_PodCIDROverprovisionConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.PodCIDROverprovisionConfig.class, - com.google.container.v1.PodCIDROverprovisionConfig.Builder.class); - } - - // Construct using com.google.container.v1.PodCIDROverprovisionConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - disable_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_PodCIDROverprovisionConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.PodCIDROverprovisionConfig getDefaultInstanceForType() { - return com.google.container.v1.PodCIDROverprovisionConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.PodCIDROverprovisionConfig build() { - com.google.container.v1.PodCIDROverprovisionConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.PodCIDROverprovisionConfig buildPartial() { - com.google.container.v1.PodCIDROverprovisionConfig result = - new com.google.container.v1.PodCIDROverprovisionConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.PodCIDROverprovisionConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.disable_ = disable_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.PodCIDROverprovisionConfig) { - return mergeFrom((com.google.container.v1.PodCIDROverprovisionConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.PodCIDROverprovisionConfig other) { - if (other == com.google.container.v1.PodCIDROverprovisionConfig.getDefaultInstance()) - return this; - if (other.getDisable() != false) { - setDisable(other.getDisable()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - disable_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean disable_; - /** - * - * - *
-     * Whether Pod CIDR overprovisioning is disabled.
-     * Note: Pod CIDR overprovisioning is enabled by default.
-     * 
- * - * bool disable = 1; - * - * @return The disable. - */ - @java.lang.Override - public boolean getDisable() { - return disable_; - } - /** - * - * - *
-     * Whether Pod CIDR overprovisioning is disabled.
-     * Note: Pod CIDR overprovisioning is enabled by default.
-     * 
- * - * bool disable = 1; - * - * @param value The disable to set. - * @return This builder for chaining. - */ - public Builder setDisable(boolean value) { - - disable_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether Pod CIDR overprovisioning is disabled.
-     * Note: Pod CIDR overprovisioning is enabled by default.
-     * 
- * - * bool disable = 1; - * - * @return This builder for chaining. - */ - public Builder clearDisable() { - bitField0_ = (bitField0_ & ~0x00000001); - disable_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.PodCIDROverprovisionConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.PodCIDROverprovisionConfig) - private static final com.google.container.v1.PodCIDROverprovisionConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.PodCIDROverprovisionConfig(); - } - - public static com.google.container.v1.PodCIDROverprovisionConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PodCIDROverprovisionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.PodCIDROverprovisionConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PodCIDROverprovisionConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PodCIDROverprovisionConfigOrBuilder.java deleted file mode 100644 index 21cbf420f503..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PodCIDROverprovisionConfigOrBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface PodCIDROverprovisionConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.PodCIDROverprovisionConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether Pod CIDR overprovisioning is disabled.
-   * Note: Pod CIDR overprovisioning is enabled by default.
-   * 
- * - * bool disable = 1; - * - * @return The disable. - */ - boolean getDisable(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfig.java deleted file mode 100644 index ae206bb6c1cf..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfig.java +++ /dev/null @@ -1,1895 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Configuration options for private clusters.
- * 
- * - * Protobuf type {@code google.container.v1.PrivateClusterConfig} - */ -public final class PrivateClusterConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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_ = ""; - privateEndpointSubnetwork_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PrivateClusterConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_PrivateClusterConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_PrivateClusterConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.PrivateClusterConfig.class, - com.google.container.v1.PrivateClusterConfig.Builder.class); - } - - private int bitField0_; - public static final int ENABLE_PRIVATE_NODES_FIELD_NUMBER = 1; - private boolean enablePrivateNodes_ = false; - /** - * - * - *
-   * 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_ = false; - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object peeringName_ = ""; - /** - * - * - *
-   * Output only. The peering name in the customer VPC used by this cluster.
-   * 
- * - * string peering_name = 7; - * - * @return The peeringName. - */ - @java.lang.Override - public java.lang.String getPeeringName() { - java.lang.Object ref = peeringName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - peeringName_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The peering name in the customer VPC used by this cluster.
-   * 
- * - * string peering_name = 7; - * - * @return The bytes for peeringName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPeeringNameBytes() { - java.lang.Object ref = peeringName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - peeringName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MASTER_GLOBAL_ACCESS_CONFIG_FIELD_NUMBER = 8; - private com.google.container.v1.PrivateClusterMasterGlobalAccessConfig masterGlobalAccessConfig_; - /** - * - * - *
-   * Controls master global access settings.
-   * 
- * - * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * - * - * @return Whether the masterGlobalAccessConfig field is set. - */ - @java.lang.Override - public boolean hasMasterGlobalAccessConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Controls master global access settings.
-   * 
- * - * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * - * - * @return The masterGlobalAccessConfig. - */ - @java.lang.Override - public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig - getMasterGlobalAccessConfig() { - return masterGlobalAccessConfig_ == null - ? com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance() - : masterGlobalAccessConfig_; - } - /** - * - * - *
-   * Controls master global access settings.
-   * 
- * - * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * - */ - @java.lang.Override - public com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder - getMasterGlobalAccessConfigOrBuilder() { - return masterGlobalAccessConfig_ == null - ? com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance() - : masterGlobalAccessConfig_; - } - - public static final int PRIVATE_ENDPOINT_SUBNETWORK_FIELD_NUMBER = 10; - - @SuppressWarnings("serial") - private volatile java.lang.Object privateEndpointSubnetwork_ = ""; - /** - * - * - *
-   * Subnet to provision the master's private endpoint during cluster creation.
-   * Specified in projects/*/regions/*/subnetworks/* format.
-   * 
- * - * string private_endpoint_subnetwork = 10; - * - * @return The privateEndpointSubnetwork. - */ - @java.lang.Override - public java.lang.String getPrivateEndpointSubnetwork() { - java.lang.Object ref = privateEndpointSubnetwork_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - privateEndpointSubnetwork_ = s; - return s; - } - } - /** - * - * - *
-   * Subnet to provision the master's private endpoint during cluster creation.
-   * Specified in projects/*/regions/*/subnetworks/* format.
-   * 
- * - * string private_endpoint_subnetwork = 10; - * - * @return The bytes for privateEndpointSubnetwork. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPrivateEndpointSubnetworkBytes() { - java.lang.Object ref = privateEndpointSubnetwork_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - privateEndpointSubnetwork_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enablePrivateNodes_ != false) { - output.writeBool(1, enablePrivateNodes_); - } - if (enablePrivateEndpoint_ != false) { - output.writeBool(2, enablePrivateEndpoint_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(masterIpv4CidrBlock_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, masterIpv4CidrBlock_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateEndpoint_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, privateEndpoint_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicEndpoint_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, publicEndpoint_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(peeringName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, peeringName_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(8, getMasterGlobalAccessConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateEndpointSubnetwork_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, privateEndpointSubnetwork_); - } - getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(masterIpv4CidrBlock_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, masterIpv4CidrBlock_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateEndpoint_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, privateEndpoint_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicEndpoint_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, publicEndpoint_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(peeringName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, peeringName_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, getMasterGlobalAccessConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateEndpointSubnetwork_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(10, privateEndpointSubnetwork_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.PrivateClusterConfig)) { - return super.equals(obj); - } - com.google.container.v1.PrivateClusterConfig other = - (com.google.container.v1.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 (!getPrivateEndpointSubnetwork().equals(other.getPrivateEndpointSubnetwork())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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 = (37 * hash) + PRIVATE_ENDPOINT_SUBNETWORK_FIELD_NUMBER; - hash = (53 * hash) + getPrivateEndpointSubnetwork().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.PrivateClusterConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.PrivateClusterConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.PrivateClusterConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.PrivateClusterConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.PrivateClusterConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.PrivateClusterConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.PrivateClusterConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.PrivateClusterConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.PrivateClusterConfig) - com.google.container.v1.PrivateClusterConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_PrivateClusterConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_PrivateClusterConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.PrivateClusterConfig.class, - com.google.container.v1.PrivateClusterConfig.Builder.class); - } - - // Construct using com.google.container.v1.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) { - getMasterGlobalAccessConfigFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enablePrivateNodes_ = false; - enablePrivateEndpoint_ = false; - masterIpv4CidrBlock_ = ""; - privateEndpoint_ = ""; - publicEndpoint_ = ""; - peeringName_ = ""; - masterGlobalAccessConfig_ = null; - if (masterGlobalAccessConfigBuilder_ != null) { - masterGlobalAccessConfigBuilder_.dispose(); - masterGlobalAccessConfigBuilder_ = null; - } - privateEndpointSubnetwork_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_PrivateClusterConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.PrivateClusterConfig getDefaultInstanceForType() { - return com.google.container.v1.PrivateClusterConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.PrivateClusterConfig build() { - com.google.container.v1.PrivateClusterConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.PrivateClusterConfig buildPartial() { - com.google.container.v1.PrivateClusterConfig result = - new com.google.container.v1.PrivateClusterConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.PrivateClusterConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enablePrivateNodes_ = enablePrivateNodes_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.enablePrivateEndpoint_ = enablePrivateEndpoint_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.masterIpv4CidrBlock_ = masterIpv4CidrBlock_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.privateEndpoint_ = privateEndpoint_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.publicEndpoint_ = publicEndpoint_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.peeringName_ = peeringName_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000040) != 0)) { - result.masterGlobalAccessConfig_ = - masterGlobalAccessConfigBuilder_ == null - ? masterGlobalAccessConfig_ - : masterGlobalAccessConfigBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.privateEndpointSubnetwork_ = privateEndpointSubnetwork_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.PrivateClusterConfig) { - return mergeFrom((com.google.container.v1.PrivateClusterConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.PrivateClusterConfig other) { - if (other == com.google.container.v1.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_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getPrivateEndpoint().isEmpty()) { - privateEndpoint_ = other.privateEndpoint_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getPublicEndpoint().isEmpty()) { - publicEndpoint_ = other.publicEndpoint_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (!other.getPeeringName().isEmpty()) { - peeringName_ = other.peeringName_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (other.hasMasterGlobalAccessConfig()) { - mergeMasterGlobalAccessConfig(other.getMasterGlobalAccessConfig()); - } - if (!other.getPrivateEndpointSubnetwork().isEmpty()) { - privateEndpointSubnetwork_ = other.privateEndpointSubnetwork_; - bitField0_ |= 0x00000080; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enablePrivateNodes_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - enablePrivateEndpoint_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - masterIpv4CidrBlock_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - privateEndpoint_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - publicEndpoint_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 58: - { - peeringName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 58 - case 66: - { - input.readMessage( - getMasterGlobalAccessConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 66 - case 82: - { - privateEndpointSubnetwork_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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() { - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000002; - 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() { - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000004; - 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(); - bitField0_ = (bitField0_ & ~0x00000004); - 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; - bitField0_ |= 0x00000004; - 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; - bitField0_ |= 0x00000008; - 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(); - bitField0_ = (bitField0_ & ~0x00000008); - 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; - bitField0_ |= 0x00000008; - 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; - bitField0_ |= 0x00000010; - 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(); - bitField0_ = (bitField0_ & ~0x00000010); - 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; - bitField0_ |= 0x00000010; - 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; - bitField0_ |= 0x00000020; - 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(); - bitField0_ = (bitField0_ & ~0x00000020); - 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; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - private com.google.container.v1.PrivateClusterMasterGlobalAccessConfig - masterGlobalAccessConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig, - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder, - com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder> - masterGlobalAccessConfigBuilder_; - /** - * - * - *
-     * Controls master global access settings.
-     * 
- * - * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * - * - * @return Whether the masterGlobalAccessConfig field is set. - */ - public boolean hasMasterGlobalAccessConfig() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * - * - *
-     * Controls master global access settings.
-     * 
- * - * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * - * - * @return The masterGlobalAccessConfig. - */ - public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig - getMasterGlobalAccessConfig() { - if (masterGlobalAccessConfigBuilder_ == null) { - return masterGlobalAccessConfig_ == null - ? com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance() - : masterGlobalAccessConfig_; - } else { - return masterGlobalAccessConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Controls master global access settings.
-     * 
- * - * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * - */ - public Builder setMasterGlobalAccessConfig( - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig value) { - if (masterGlobalAccessConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - masterGlobalAccessConfig_ = value; - } else { - masterGlobalAccessConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-     * Controls master global access settings.
-     * 
- * - * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * - */ - public Builder setMasterGlobalAccessConfig( - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder builderForValue) { - if (masterGlobalAccessConfigBuilder_ == null) { - masterGlobalAccessConfig_ = builderForValue.build(); - } else { - masterGlobalAccessConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-     * Controls master global access settings.
-     * 
- * - * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * - */ - public Builder mergeMasterGlobalAccessConfig( - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig value) { - if (masterGlobalAccessConfigBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && masterGlobalAccessConfig_ != null - && masterGlobalAccessConfig_ - != com.google.container.v1.PrivateClusterMasterGlobalAccessConfig - .getDefaultInstance()) { - getMasterGlobalAccessConfigBuilder().mergeFrom(value); - } else { - masterGlobalAccessConfig_ = value; - } - } else { - masterGlobalAccessConfigBuilder_.mergeFrom(value); - } - if (masterGlobalAccessConfig_ != null) { - bitField0_ |= 0x00000040; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Controls master global access settings.
-     * 
- * - * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * - */ - public Builder clearMasterGlobalAccessConfig() { - bitField0_ = (bitField0_ & ~0x00000040); - masterGlobalAccessConfig_ = null; - if (masterGlobalAccessConfigBuilder_ != null) { - masterGlobalAccessConfigBuilder_.dispose(); - masterGlobalAccessConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Controls master global access settings.
-     * 
- * - * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * - */ - public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder - getMasterGlobalAccessConfigBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return getMasterGlobalAccessConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Controls master global access settings.
-     * 
- * - * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * - */ - public com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder - getMasterGlobalAccessConfigOrBuilder() { - if (masterGlobalAccessConfigBuilder_ != null) { - return masterGlobalAccessConfigBuilder_.getMessageOrBuilder(); - } else { - return masterGlobalAccessConfig_ == null - ? com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance() - : masterGlobalAccessConfig_; - } - } - /** - * - * - *
-     * Controls master global access settings.
-     * 
- * - * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig, - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder, - com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder> - getMasterGlobalAccessConfigFieldBuilder() { - if (masterGlobalAccessConfigBuilder_ == null) { - masterGlobalAccessConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig, - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder, - com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder>( - getMasterGlobalAccessConfig(), getParentForChildren(), isClean()); - masterGlobalAccessConfig_ = null; - } - return masterGlobalAccessConfigBuilder_; - } - - private java.lang.Object privateEndpointSubnetwork_ = ""; - /** - * - * - *
-     * Subnet to provision the master's private endpoint during cluster creation.
-     * Specified in projects/*/regions/*/subnetworks/* format.
-     * 
- * - * string private_endpoint_subnetwork = 10; - * - * @return The privateEndpointSubnetwork. - */ - public java.lang.String getPrivateEndpointSubnetwork() { - java.lang.Object ref = privateEndpointSubnetwork_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - privateEndpointSubnetwork_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Subnet to provision the master's private endpoint during cluster creation.
-     * Specified in projects/*/regions/*/subnetworks/* format.
-     * 
- * - * string private_endpoint_subnetwork = 10; - * - * @return The bytes for privateEndpointSubnetwork. - */ - public com.google.protobuf.ByteString getPrivateEndpointSubnetworkBytes() { - java.lang.Object ref = privateEndpointSubnetwork_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - privateEndpointSubnetwork_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Subnet to provision the master's private endpoint during cluster creation.
-     * Specified in projects/*/regions/*/subnetworks/* format.
-     * 
- * - * string private_endpoint_subnetwork = 10; - * - * @param value The privateEndpointSubnetwork to set. - * @return This builder for chaining. - */ - public Builder setPrivateEndpointSubnetwork(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - privateEndpointSubnetwork_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * Subnet to provision the master's private endpoint during cluster creation.
-     * Specified in projects/*/regions/*/subnetworks/* format.
-     * 
- * - * string private_endpoint_subnetwork = 10; - * - * @return This builder for chaining. - */ - public Builder clearPrivateEndpointSubnetwork() { - privateEndpointSubnetwork_ = getDefaultInstance().getPrivateEndpointSubnetwork(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - return this; - } - /** - * - * - *
-     * Subnet to provision the master's private endpoint during cluster creation.
-     * Specified in projects/*/regions/*/subnetworks/* format.
-     * 
- * - * string private_endpoint_subnetwork = 10; - * - * @param value The bytes for privateEndpointSubnetwork to set. - * @return This builder for chaining. - */ - public Builder setPrivateEndpointSubnetworkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - privateEndpointSubnetwork_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.PrivateClusterConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.PrivateClusterConfig) - private static final com.google.container.v1.PrivateClusterConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.PrivateClusterConfig(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.PrivateClusterConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfigOrBuilder.java deleted file mode 100644 index 4da30dfe326f..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfigOrBuilder.java +++ /dev/null @@ -1,229 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface PrivateClusterConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.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.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * - * - * @return Whether the masterGlobalAccessConfig field is set. - */ - boolean hasMasterGlobalAccessConfig(); - /** - * - * - *
-   * Controls master global access settings.
-   * 
- * - * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * - * - * @return The masterGlobalAccessConfig. - */ - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig getMasterGlobalAccessConfig(); - /** - * - * - *
-   * Controls master global access settings.
-   * 
- * - * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * - */ - com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder - getMasterGlobalAccessConfigOrBuilder(); - - /** - * - * - *
-   * Subnet to provision the master's private endpoint during cluster creation.
-   * Specified in projects/*/regions/*/subnetworks/* format.
-   * 
- * - * string private_endpoint_subnetwork = 10; - * - * @return The privateEndpointSubnetwork. - */ - java.lang.String getPrivateEndpointSubnetwork(); - /** - * - * - *
-   * Subnet to provision the master's private endpoint during cluster creation.
-   * Specified in projects/*/regions/*/subnetworks/* format.
-   * 
- * - * string private_endpoint_subnetwork = 10; - * - * @return The bytes for privateEndpointSubnetwork. - */ - com.google.protobuf.ByteString getPrivateEndpointSubnetworkBytes(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterMasterGlobalAccessConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterMasterGlobalAccessConfig.java deleted file mode 100644 index 9ac26eda6b09..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterMasterGlobalAccessConfig.java +++ /dev/null @@ -1,544 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Configuration for controlling master global access settings.
- * 
- * - * Protobuf type {@code google.container.v1.PrivateClusterMasterGlobalAccessConfig} - */ -public final class PrivateClusterMasterGlobalAccessConfig - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.PrivateClusterMasterGlobalAccessConfig) - PrivateClusterMasterGlobalAccessConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use PrivateClusterMasterGlobalAccessConfig.newBuilder() to construct. - private PrivateClusterMasterGlobalAccessConfig( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PrivateClusterMasterGlobalAccessConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PrivateClusterMasterGlobalAccessConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_PrivateClusterMasterGlobalAccessConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_PrivateClusterMasterGlobalAccessConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.class, - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.PrivateClusterMasterGlobalAccessConfig)) { - return super.equals(obj); - } - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig other = - (com.google.container.v1.PrivateClusterMasterGlobalAccessConfig) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Configuration for controlling master global access settings.
-   * 
- * - * Protobuf type {@code google.container.v1.PrivateClusterMasterGlobalAccessConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.PrivateClusterMasterGlobalAccessConfig) - com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_PrivateClusterMasterGlobalAccessConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_PrivateClusterMasterGlobalAccessConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.class, - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder.class); - } - - // Construct using com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enabled_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_PrivateClusterMasterGlobalAccessConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig - getDefaultInstanceForType() { - return com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig build() { - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig buildPartial() { - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig result = - new com.google.container.v1.PrivateClusterMasterGlobalAccessConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.PrivateClusterMasterGlobalAccessConfig) { - return mergeFrom((com.google.container.v1.PrivateClusterMasterGlobalAccessConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.PrivateClusterMasterGlobalAccessConfig other) { - if (other - == com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance()) - return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whenever master is accessible globally or not.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - enabled_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.PrivateClusterMasterGlobalAccessConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.PrivateClusterMasterGlobalAccessConfig) - private static final com.google.container.v1.PrivateClusterMasterGlobalAccessConfig - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.PrivateClusterMasterGlobalAccessConfig(); - } - - public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrivateClusterMasterGlobalAccessConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterMasterGlobalAccessConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterMasterGlobalAccessConfigOrBuilder.java deleted file mode 100644 index 2572f483c6a3..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterMasterGlobalAccessConfigOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface PrivateClusterMasterGlobalAccessConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.PrivateClusterMasterGlobalAccessConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whenever master is accessible globally or not.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateIPv6GoogleAccess.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateIPv6GoogleAccess.java deleted file mode 100644 index fffab48fbed9..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateIPv6GoogleAccess.java +++ /dev/null @@ -1,203 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * PrivateIPv6GoogleAccess controls whether and how the pods can communicate
- * with Google Services through gRPC over IPv6.
- * 
- * - * Protobuf enum {@code google.container.v1.PrivateIPv6GoogleAccess} - */ -public enum PrivateIPv6GoogleAccess implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Default value. Same as DISABLED
-   * 
- * - * PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0; - */ - PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED(0), - /** - * - * - *
-   * No private access to or from Google Services
-   * 
- * - * PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED = 1; - */ - PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED(1), - /** - * - * - *
-   * Enables private IPv6 access to Google Services from GKE
-   * 
- * - * PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE = 2; - */ - PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE(2), - /** - * - * - *
-   * Enables private IPv6 access to and from Google Services
-   * 
- * - * PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL = 3; - */ - PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * Default value. Same as DISABLED
-   * 
- * - * PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0; - */ - public static final int PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * No private access to or from Google Services
-   * 
- * - * PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED = 1; - */ - public static final int PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED_VALUE = 1; - /** - * - * - *
-   * Enables private IPv6 access to Google Services from GKE
-   * 
- * - * PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE = 2; - */ - public static final int PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE_VALUE = 2; - /** - * - * - *
-   * Enables private IPv6 access to and from Google Services
-   * 
- * - * PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL = 3; - */ - public static final int PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL_VALUE = 3; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static PrivateIPv6GoogleAccess valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static PrivateIPv6GoogleAccess forNumber(int value) { - switch (value) { - case 0: - return PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED; - case 1: - return PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED; - case 2: - return PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE; - case 3: - return PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public PrivateIPv6GoogleAccess findValueByNumber(int number) { - return PrivateIPv6GoogleAccess.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto.getDescriptor().getEnumTypes().get(0); - } - - private static final PrivateIPv6GoogleAccess[] VALUES = values(); - - public static PrivateIPv6GoogleAccess valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private PrivateIPv6GoogleAccess(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.PrivateIPv6GoogleAccess) -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RangeInfo.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RangeInfo.java deleted file mode 100644 index 7e1578c9dffa..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RangeInfo.java +++ /dev/null @@ -1,718 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * RangeInfo contains the range name and the range utilization by this cluster.
- * 
- * - * Protobuf type {@code google.container.v1.RangeInfo} - */ -public final class RangeInfo extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.RangeInfo) - RangeInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use RangeInfo.newBuilder() to construct. - private RangeInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RangeInfo() { - rangeName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RangeInfo(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_RangeInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_RangeInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.RangeInfo.class, - com.google.container.v1.RangeInfo.Builder.class); - } - - public static final int RANGE_NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object rangeName_ = ""; - /** - * - * - *
-   * Output only. [Output only] Name of a range.
-   * 
- * - * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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; - } - } - /** - * - * - *
-   * Output only. [Output only] Name of a range.
-   * 
- * - * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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 UTILIZATION_FIELD_NUMBER = 2; - private double utilization_ = 0D; - /** - * - * - *
-   * Output only. [Output only] The utilization of the range.
-   * 
- * - * double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The utilization. - */ - @java.lang.Override - public double getUtilization() { - return utilization_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rangeName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, rangeName_); - } - if (java.lang.Double.doubleToRawLongBits(utilization_) != 0) { - output.writeDouble(2, utilization_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rangeName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, rangeName_); - } - if (java.lang.Double.doubleToRawLongBits(utilization_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, utilization_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.RangeInfo)) { - return super.equals(obj); - } - com.google.container.v1.RangeInfo other = (com.google.container.v1.RangeInfo) obj; - - if (!getRangeName().equals(other.getRangeName())) return false; - if (java.lang.Double.doubleToLongBits(getUtilization()) - != java.lang.Double.doubleToLongBits(other.getUtilization())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + UTILIZATION_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getUtilization())); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.RangeInfo parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.RangeInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.RangeInfo parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.RangeInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.RangeInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.RangeInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.RangeInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.RangeInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.RangeInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.RangeInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.RangeInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.RangeInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.RangeInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * RangeInfo contains the range name and the range utilization by this cluster.
-   * 
- * - * Protobuf type {@code google.container.v1.RangeInfo} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.RangeInfo) - com.google.container.v1.RangeInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_RangeInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_RangeInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.RangeInfo.class, - com.google.container.v1.RangeInfo.Builder.class); - } - - // Construct using com.google.container.v1.RangeInfo.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - rangeName_ = ""; - utilization_ = 0D; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_RangeInfo_descriptor; - } - - @java.lang.Override - public com.google.container.v1.RangeInfo getDefaultInstanceForType() { - return com.google.container.v1.RangeInfo.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.RangeInfo build() { - com.google.container.v1.RangeInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.RangeInfo buildPartial() { - com.google.container.v1.RangeInfo result = new com.google.container.v1.RangeInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.RangeInfo result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.rangeName_ = rangeName_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.utilization_ = utilization_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.RangeInfo) { - return mergeFrom((com.google.container.v1.RangeInfo) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.RangeInfo other) { - if (other == com.google.container.v1.RangeInfo.getDefaultInstance()) return this; - if (!other.getRangeName().isEmpty()) { - rangeName_ = other.rangeName_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getUtilization() != 0D) { - setUtilization(other.getUtilization()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - rangeName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 17: - { - utilization_ = input.readDouble(); - bitField0_ |= 0x00000002; - break; - } // case 17 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object rangeName_ = ""; - /** - * - * - *
-     * Output only. [Output only] Name of a range.
-     * 
- * - * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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; - } - } - /** - * - * - *
-     * Output only. [Output only] Name of a range.
-     * 
- * - * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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; - } - } - /** - * - * - *
-     * Output only. [Output only] Name of a range.
-     * 
- * - * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. [Output only] Name of a range.
-     * 
- * - * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearRangeName() { - rangeName_ = getDefaultInstance().getRangeName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. [Output only] Name of a range.
-     * 
- * - * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private double utilization_; - /** - * - * - *
-     * Output only. [Output only] The utilization of the range.
-     * 
- * - * double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The utilization. - */ - @java.lang.Override - public double getUtilization() { - return utilization_; - } - /** - * - * - *
-     * Output only. [Output only] The utilization of the range.
-     * 
- * - * double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The utilization to set. - * @return This builder for chaining. - */ - public Builder setUtilization(double value) { - - utilization_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. [Output only] The utilization of the range.
-     * 
- * - * double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearUtilization() { - bitField0_ = (bitField0_ & ~0x00000002); - utilization_ = 0D; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.RangeInfo) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.RangeInfo) - private static final com.google.container.v1.RangeInfo DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.RangeInfo(); - } - - public static com.google.container.v1.RangeInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RangeInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.RangeInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RangeInfoOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RangeInfoOrBuilder.java deleted file mode 100644 index 2ee36c3b963b..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RangeInfoOrBuilder.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface RangeInfoOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.RangeInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. [Output only] Name of a range.
-   * 
- * - * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The rangeName. - */ - java.lang.String getRangeName(); - /** - * - * - *
-   * Output only. [Output only] Name of a range.
-   * 
- * - * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for rangeName. - */ - com.google.protobuf.ByteString getRangeNameBytes(); - - /** - * - * - *
-   * Output only. [Output only] The utilization of the range.
-   * 
- * - * double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The utilization. - */ - double getUtilization(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindow.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindow.java deleted file mode 100644 index 0b5f7baa1533..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindow.java +++ /dev/null @@ -1,1112 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Represents an arbitrary window of time that recurs.
- * 
- * - * Protobuf type {@code google.container.v1.RecurringTimeWindow} - */ -public final class RecurringTimeWindow extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_RecurringTimeWindow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_RecurringTimeWindow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.RecurringTimeWindow.class, - com.google.container.v1.RecurringTimeWindow.Builder.class); - } - - private int bitField0_; - public static final int WINDOW_FIELD_NUMBER = 1; - private com.google.container.v1.TimeWindow window_; - /** - * - * - *
-   * The window of the first recurrence.
-   * 
- * - * .google.container.v1.TimeWindow window = 1; - * - * @return Whether the window field is set. - */ - @java.lang.Override - public boolean hasWindow() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * The window of the first recurrence.
-   * 
- * - * .google.container.v1.TimeWindow window = 1; - * - * @return The window. - */ - @java.lang.Override - public com.google.container.v1.TimeWindow getWindow() { - return window_ == null ? com.google.container.v1.TimeWindow.getDefaultInstance() : window_; - } - /** - * - * - *
-   * The window of the first recurrence.
-   * 
- * - * .google.container.v1.TimeWindow window = 1; - */ - @java.lang.Override - public com.google.container.v1.TimeWindowOrBuilder getWindowOrBuilder() { - return window_ == null ? com.google.container.v1.TimeWindow.getDefaultInstance() : window_; - } - - public static final int RECURRENCE_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - 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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getWindow()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recurrence_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, recurrence_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWindow()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recurrence_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, recurrence_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.RecurringTimeWindow)) { - return super.equals(obj); - } - com.google.container.v1.RecurringTimeWindow other = - (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.RecurringTimeWindow parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.RecurringTimeWindow parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.RecurringTimeWindow parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.RecurringTimeWindow parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.RecurringTimeWindow parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.RecurringTimeWindow parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.RecurringTimeWindow parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.RecurringTimeWindow} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.RecurringTimeWindow) - com.google.container.v1.RecurringTimeWindowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_RecurringTimeWindow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_RecurringTimeWindow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.RecurringTimeWindow.class, - com.google.container.v1.RecurringTimeWindow.Builder.class); - } - - // Construct using com.google.container.v1.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) { - getWindowFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - window_ = null; - if (windowBuilder_ != null) { - windowBuilder_.dispose(); - windowBuilder_ = null; - } - recurrence_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_RecurringTimeWindow_descriptor; - } - - @java.lang.Override - public com.google.container.v1.RecurringTimeWindow getDefaultInstanceForType() { - return com.google.container.v1.RecurringTimeWindow.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.RecurringTimeWindow build() { - com.google.container.v1.RecurringTimeWindow result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.RecurringTimeWindow buildPartial() { - com.google.container.v1.RecurringTimeWindow result = - new com.google.container.v1.RecurringTimeWindow(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.RecurringTimeWindow result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.window_ = windowBuilder_ == null ? window_ : windowBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.recurrence_ = recurrence_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.RecurringTimeWindow) { - return mergeFrom((com.google.container.v1.RecurringTimeWindow) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.RecurringTimeWindow other) { - if (other == com.google.container.v1.RecurringTimeWindow.getDefaultInstance()) return this; - if (other.hasWindow()) { - mergeWindow(other.getWindow()); - } - if (!other.getRecurrence().isEmpty()) { - recurrence_ = other.recurrence_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getWindowFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - recurrence_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.container.v1.TimeWindow window_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.TimeWindow, - com.google.container.v1.TimeWindow.Builder, - com.google.container.v1.TimeWindowOrBuilder> - windowBuilder_; - /** - * - * - *
-     * The window of the first recurrence.
-     * 
- * - * .google.container.v1.TimeWindow window = 1; - * - * @return Whether the window field is set. - */ - public boolean hasWindow() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * The window of the first recurrence.
-     * 
- * - * .google.container.v1.TimeWindow window = 1; - * - * @return The window. - */ - public com.google.container.v1.TimeWindow getWindow() { - if (windowBuilder_ == null) { - return window_ == null ? com.google.container.v1.TimeWindow.getDefaultInstance() : window_; - } else { - return windowBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The window of the first recurrence.
-     * 
- * - * .google.container.v1.TimeWindow window = 1; - */ - public Builder setWindow(com.google.container.v1.TimeWindow value) { - if (windowBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - window_ = value; - } else { - windowBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The window of the first recurrence.
-     * 
- * - * .google.container.v1.TimeWindow window = 1; - */ - public Builder setWindow(com.google.container.v1.TimeWindow.Builder builderForValue) { - if (windowBuilder_ == null) { - window_ = builderForValue.build(); - } else { - windowBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The window of the first recurrence.
-     * 
- * - * .google.container.v1.TimeWindow window = 1; - */ - public Builder mergeWindow(com.google.container.v1.TimeWindow value) { - if (windowBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && window_ != null - && window_ != com.google.container.v1.TimeWindow.getDefaultInstance()) { - getWindowBuilder().mergeFrom(value); - } else { - window_ = value; - } - } else { - windowBuilder_.mergeFrom(value); - } - if (window_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The window of the first recurrence.
-     * 
- * - * .google.container.v1.TimeWindow window = 1; - */ - public Builder clearWindow() { - bitField0_ = (bitField0_ & ~0x00000001); - window_ = null; - if (windowBuilder_ != null) { - windowBuilder_.dispose(); - windowBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The window of the first recurrence.
-     * 
- * - * .google.container.v1.TimeWindow window = 1; - */ - public com.google.container.v1.TimeWindow.Builder getWindowBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getWindowFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The window of the first recurrence.
-     * 
- * - * .google.container.v1.TimeWindow window = 1; - */ - public com.google.container.v1.TimeWindowOrBuilder getWindowOrBuilder() { - if (windowBuilder_ != null) { - return windowBuilder_.getMessageOrBuilder(); - } else { - return window_ == null ? com.google.container.v1.TimeWindow.getDefaultInstance() : window_; - } - } - /** - * - * - *
-     * The window of the first recurrence.
-     * 
- * - * .google.container.v1.TimeWindow window = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.TimeWindow, - com.google.container.v1.TimeWindow.Builder, - com.google.container.v1.TimeWindowOrBuilder> - getWindowFieldBuilder() { - if (windowBuilder_ == null) { - windowBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.TimeWindow, - com.google.container.v1.TimeWindow.Builder, - com.google.container.v1.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; - bitField0_ |= 0x00000002; - 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(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.RecurringTimeWindow) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.RecurringTimeWindow) - private static final com.google.container.v1.RecurringTimeWindow DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.RecurringTimeWindow(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.RecurringTimeWindow getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindowOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindowOrBuilder.java deleted file mode 100644 index 70cd7413db66..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindowOrBuilder.java +++ /dev/null @@ -1,148 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface RecurringTimeWindowOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.RecurringTimeWindow) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The window of the first recurrence.
-   * 
- * - * .google.container.v1.TimeWindow window = 1; - * - * @return Whether the window field is set. - */ - boolean hasWindow(); - /** - * - * - *
-   * The window of the first recurrence.
-   * 
- * - * .google.container.v1.TimeWindow window = 1; - * - * @return The window. - */ - com.google.container.v1.TimeWindow getWindow(); - /** - * - * - *
-   * The window of the first recurrence.
-   * 
- * - * .google.container.v1.TimeWindow window = 1; - */ - com.google.container.v1.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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReleaseChannel.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReleaseChannel.java deleted file mode 100644 index 2302dd81c10b..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReleaseChannel.java +++ /dev/null @@ -1,794 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * ReleaseChannel indicates which release channel a cluster is
- * subscribed to. Release channels are arranged in order of risk.
- *
- * When a cluster is subscribed to a release channel, Google maintains
- * both the master version and the node version. Node auto-upgrade
- * defaults to true and cannot be disabled.
- * 
- * - * Protobuf type {@code google.container.v1.ReleaseChannel} - */ -public final class ReleaseChannel extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.ReleaseChannel) - ReleaseChannelOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReleaseChannel.newBuilder() to construct. - private ReleaseChannel(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ReleaseChannel() { - channel_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ReleaseChannel(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ReleaseChannel_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ReleaseChannel_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ReleaseChannel.class, - com.google.container.v1.ReleaseChannel.Builder.class); - } - - /** - * - * - *
-   * Possible values for 'channel'.
-   * 
- * - * Protobuf enum {@code google.container.v1.ReleaseChannel.Channel} - */ - public enum Channel implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * No channel specified.
-     * 
- * - * UNSPECIFIED = 0; - */ - UNSPECIFIED(0), - /** - * - * - *
-     * RAPID channel is offered on an early access basis for customers who want
-     * to test new releases.
-     *
-     * WARNING: Versions available in the RAPID Channel may be subject to
-     * unresolved issues with no known workaround and are not subject to any
-     * SLAs.
-     * 
- * - * RAPID = 1; - */ - RAPID(1), - /** - * - * - *
-     * Clusters subscribed to REGULAR receive versions that are considered GA
-     * quality. REGULAR is intended for production users who want to take
-     * advantage of new features.
-     * 
- * - * REGULAR = 2; - */ - REGULAR(2), - /** - * - * - *
-     * Clusters subscribed to STABLE receive versions that are known to be
-     * stable and reliable in production.
-     * 
- * - * STABLE = 3; - */ - STABLE(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * No channel specified.
-     * 
- * - * UNSPECIFIED = 0; - */ - public static final int UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * RAPID channel is offered on an early access basis for customers who want
-     * to test new releases.
-     *
-     * WARNING: Versions available in the RAPID Channel may be subject to
-     * unresolved issues with no known workaround and are not subject to any
-     * SLAs.
-     * 
- * - * RAPID = 1; - */ - public static final int RAPID_VALUE = 1; - /** - * - * - *
-     * Clusters subscribed to REGULAR receive versions that are considered GA
-     * quality. REGULAR is intended for production users who want to take
-     * advantage of new features.
-     * 
- * - * REGULAR = 2; - */ - public static final int REGULAR_VALUE = 2; - /** - * - * - *
-     * Clusters subscribed to STABLE receive versions that are known to be
-     * stable and reliable in production.
-     * 
- * - * STABLE = 3; - */ - public static final int STABLE_VALUE = 3; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Channel valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Channel forNumber(int value) { - switch (value) { - case 0: - return UNSPECIFIED; - case 1: - return RAPID; - case 2: - return REGULAR; - case 3: - return STABLE; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Channel findValueByNumber(int number) { - return Channel.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.ReleaseChannel.getDescriptor().getEnumTypes().get(0); - } - - private static final Channel[] VALUES = values(); - - public static Channel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Channel(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.ReleaseChannel.Channel) - } - - public static final int CHANNEL_FIELD_NUMBER = 1; - private int channel_ = 0; - /** - * - * - *
-   * channel specifies which release channel the cluster is subscribed to.
-   * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * - * @return The enum numeric value on the wire for channel. - */ - @java.lang.Override - public int getChannelValue() { - return channel_; - } - /** - * - * - *
-   * channel specifies which release channel the cluster is subscribed to.
-   * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * - * @return The channel. - */ - @java.lang.Override - public com.google.container.v1.ReleaseChannel.Channel getChannel() { - com.google.container.v1.ReleaseChannel.Channel result = - com.google.container.v1.ReleaseChannel.Channel.forNumber(channel_); - return result == null ? com.google.container.v1.ReleaseChannel.Channel.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (channel_ != com.google.container.v1.ReleaseChannel.Channel.UNSPECIFIED.getNumber()) { - output.writeEnum(1, channel_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (channel_ != com.google.container.v1.ReleaseChannel.Channel.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, channel_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.ReleaseChannel)) { - return super.equals(obj); - } - com.google.container.v1.ReleaseChannel other = (com.google.container.v1.ReleaseChannel) obj; - - if (channel_ != other.channel_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ReleaseChannel parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ReleaseChannel parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ReleaseChannel parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ReleaseChannel parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ReleaseChannel parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ReleaseChannel parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ReleaseChannel parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ReleaseChannel parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ReleaseChannel parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.ReleaseChannel parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ReleaseChannel parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ReleaseChannel parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.ReleaseChannel prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * ReleaseChannel indicates which release channel a cluster is
-   * subscribed to. Release channels are arranged in order of risk.
-   *
-   * When a cluster is subscribed to a release channel, Google maintains
-   * both the master version and the node version. Node auto-upgrade
-   * defaults to true and cannot be disabled.
-   * 
- * - * Protobuf type {@code google.container.v1.ReleaseChannel} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ReleaseChannel) - com.google.container.v1.ReleaseChannelOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ReleaseChannel_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ReleaseChannel_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ReleaseChannel.class, - com.google.container.v1.ReleaseChannel.Builder.class); - } - - // Construct using com.google.container.v1.ReleaseChannel.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - channel_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ReleaseChannel_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ReleaseChannel getDefaultInstanceForType() { - return com.google.container.v1.ReleaseChannel.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ReleaseChannel build() { - com.google.container.v1.ReleaseChannel result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ReleaseChannel buildPartial() { - com.google.container.v1.ReleaseChannel result = - new com.google.container.v1.ReleaseChannel(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.ReleaseChannel result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.channel_ = channel_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ReleaseChannel) { - return mergeFrom((com.google.container.v1.ReleaseChannel) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ReleaseChannel other) { - if (other == com.google.container.v1.ReleaseChannel.getDefaultInstance()) return this; - if (other.channel_ != 0) { - setChannelValue(other.getChannelValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - channel_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int channel_ = 0; - /** - * - * - *
-     * channel specifies which release channel the cluster is subscribed to.
-     * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * - * @return The enum numeric value on the wire for channel. - */ - @java.lang.Override - public int getChannelValue() { - return channel_; - } - /** - * - * - *
-     * channel specifies which release channel the cluster is subscribed to.
-     * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * - * @param value The enum numeric value on the wire for channel to set. - * @return This builder for chaining. - */ - public Builder setChannelValue(int value) { - channel_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * channel specifies which release channel the cluster is subscribed to.
-     * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * - * @return The channel. - */ - @java.lang.Override - public com.google.container.v1.ReleaseChannel.Channel getChannel() { - com.google.container.v1.ReleaseChannel.Channel result = - com.google.container.v1.ReleaseChannel.Channel.forNumber(channel_); - return result == null ? com.google.container.v1.ReleaseChannel.Channel.UNRECOGNIZED : result; - } - /** - * - * - *
-     * channel specifies which release channel the cluster is subscribed to.
-     * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * - * @param value The channel to set. - * @return This builder for chaining. - */ - public Builder setChannel(com.google.container.v1.ReleaseChannel.Channel value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - channel_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * channel specifies which release channel the cluster is subscribed to.
-     * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * - * @return This builder for chaining. - */ - public Builder clearChannel() { - bitField0_ = (bitField0_ & ~0x00000001); - channel_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.ReleaseChannel) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ReleaseChannel) - private static final com.google.container.v1.ReleaseChannel DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ReleaseChannel(); - } - - public static com.google.container.v1.ReleaseChannel getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReleaseChannel parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.ReleaseChannel getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReleaseChannelOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReleaseChannelOrBuilder.java deleted file mode 100644 index 421fbdde19cc..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReleaseChannelOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface ReleaseChannelOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ReleaseChannel) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * channel specifies which release channel the cluster is subscribed to.
-   * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * - * @return The enum numeric value on the wire for channel. - */ - int getChannelValue(); - /** - * - * - *
-   * channel specifies which release channel the cluster is subscribed to.
-   * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * - * @return The channel. - */ - com.google.container.v1.ReleaseChannel.Channel getChannel(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReservationAffinity.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReservationAffinity.java deleted file mode 100644 index 6e57987f83b3..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReservationAffinity.java +++ /dev/null @@ -1,1260 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
- * is the configuration of desired reservation which instances could take
- * capacity from.
- * 
- * - * Protobuf type {@code google.container.v1.ReservationAffinity} - */ -public final class ReservationAffinity extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.ReservationAffinity) - ReservationAffinityOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReservationAffinity.newBuilder() to construct. - private ReservationAffinity(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ReservationAffinity() { - consumeReservationType_ = 0; - key_ = ""; - values_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ReservationAffinity(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ReservationAffinity_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ReservationAffinity_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ReservationAffinity.class, - com.google.container.v1.ReservationAffinity.Builder.class); - } - - /** - * - * - *
-   * Indicates whether to consume capacity from a reservation or not.
-   * 
- * - * Protobuf enum {@code google.container.v1.ReservationAffinity.Type} - */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value. This should not be used.
-     * 
- * - * UNSPECIFIED = 0; - */ - UNSPECIFIED(0), - /** - * - * - *
-     * Do not consume from any reserved capacity.
-     * 
- * - * NO_RESERVATION = 1; - */ - NO_RESERVATION(1), - /** - * - * - *
-     * Consume any reservation available.
-     * 
- * - * ANY_RESERVATION = 2; - */ - ANY_RESERVATION(2), - /** - * - * - *
-     * Must consume from a specific reservation. Must specify key value fields
-     * for specifying the reservations.
-     * 
- * - * SPECIFIC_RESERVATION = 3; - */ - SPECIFIC_RESERVATION(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value. This should not be used.
-     * 
- * - * UNSPECIFIED = 0; - */ - public static final int UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Do not consume from any reserved capacity.
-     * 
- * - * NO_RESERVATION = 1; - */ - public static final int NO_RESERVATION_VALUE = 1; - /** - * - * - *
-     * Consume any reservation available.
-     * 
- * - * ANY_RESERVATION = 2; - */ - public static final int ANY_RESERVATION_VALUE = 2; - /** - * - * - *
-     * Must consume from a specific reservation. Must specify key value fields
-     * for specifying the reservations.
-     * 
- * - * SPECIFIC_RESERVATION = 3; - */ - public static final int SPECIFIC_RESERVATION_VALUE = 3; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Type valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Type forNumber(int value) { - switch (value) { - case 0: - return UNSPECIFIED; - case 1: - return NO_RESERVATION; - case 2: - return ANY_RESERVATION; - case 3: - return SPECIFIC_RESERVATION; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.ReservationAffinity.getDescriptor().getEnumTypes().get(0); - } - - private static final Type[] VALUES = values(); - - public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Type(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.ReservationAffinity.Type) - } - - public static final int CONSUME_RESERVATION_TYPE_FIELD_NUMBER = 1; - private int consumeReservationType_ = 0; - /** - * - * - *
-   * Corresponds to the type of reservation consumption.
-   * 
- * - * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; - * - * @return The enum numeric value on the wire for consumeReservationType. - */ - @java.lang.Override - public int getConsumeReservationTypeValue() { - return consumeReservationType_; - } - /** - * - * - *
-   * Corresponds to the type of reservation consumption.
-   * 
- * - * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; - * - * @return The consumeReservationType. - */ - @java.lang.Override - public com.google.container.v1.ReservationAffinity.Type getConsumeReservationType() { - com.google.container.v1.ReservationAffinity.Type result = - com.google.container.v1.ReservationAffinity.Type.forNumber(consumeReservationType_); - return result == null ? com.google.container.v1.ReservationAffinity.Type.UNRECOGNIZED : result; - } - - public static final int KEY_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object key_ = ""; - /** - * - * - *
-   * Corresponds to the label key of a reservation resource. To target a
-   * SPECIFIC_RESERVATION by name, specify
-   * "compute.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
-   * "compute.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; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * Corresponds to the label value(s) of reservation resource(s).
-   * 
- * - * repeated string values = 3; - * - * @return A list containing the values. - */ - public com.google.protobuf.ProtocolStringList getValuesList() { - return values_; - } - /** - * - * - *
-   * Corresponds to the label value(s) of reservation resource(s).
-   * 
- * - * repeated string values = 3; - * - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - /** - * - * - *
-   * Corresponds to the label value(s) of reservation resource(s).
-   * 
- * - * repeated string values = 3; - * - * @param index The index of the element to return. - * @return The values at the given index. - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - * - * - *
-   * Corresponds to the label value(s) of reservation resource(s).
-   * 
- * - * repeated string values = 3; - * - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - public com.google.protobuf.ByteString getValuesBytes(int index) { - return values_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (consumeReservationType_ - != com.google.container.v1.ReservationAffinity.Type.UNSPECIFIED.getNumber()) { - output.writeEnum(1, consumeReservationType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { - 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)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (consumeReservationType_ - != com.google.container.v1.ReservationAffinity.Type.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, consumeReservationType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { - 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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.ReservationAffinity)) { - return super.equals(obj); - } - com.google.container.v1.ReservationAffinity other = - (com.google.container.v1.ReservationAffinity) obj; - - if (consumeReservationType_ != other.consumeReservationType_) return false; - if (!getKey().equals(other.getKey())) return false; - if (!getValuesList().equals(other.getValuesList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ReservationAffinity parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ReservationAffinity parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ReservationAffinity parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ReservationAffinity parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ReservationAffinity parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ReservationAffinity parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ReservationAffinity parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ReservationAffinity parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ReservationAffinity parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.ReservationAffinity parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ReservationAffinity parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ReservationAffinity parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.ReservationAffinity prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-   * is the configuration of desired reservation which instances could take
-   * capacity from.
-   * 
- * - * Protobuf type {@code google.container.v1.ReservationAffinity} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ReservationAffinity) - com.google.container.v1.ReservationAffinityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ReservationAffinity_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ReservationAffinity_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ReservationAffinity.class, - com.google.container.v1.ReservationAffinity.Builder.class); - } - - // Construct using com.google.container.v1.ReservationAffinity.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - consumeReservationType_ = 0; - key_ = ""; - values_ = com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ReservationAffinity_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ReservationAffinity getDefaultInstanceForType() { - return com.google.container.v1.ReservationAffinity.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ReservationAffinity build() { - com.google.container.v1.ReservationAffinity result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ReservationAffinity buildPartial() { - com.google.container.v1.ReservationAffinity result = - new com.google.container.v1.ReservationAffinity(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.ReservationAffinity result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.consumeReservationType_ = consumeReservationType_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.key_ = key_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - values_.makeImmutable(); - result.values_ = values_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ReservationAffinity) { - return mergeFrom((com.google.container.v1.ReservationAffinity) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ReservationAffinity other) { - if (other == com.google.container.v1.ReservationAffinity.getDefaultInstance()) return this; - if (other.consumeReservationType_ != 0) { - setConsumeReservationTypeValue(other.getConsumeReservationTypeValue()); - } - if (!other.getKey().isEmpty()) { - key_ = other.key_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.values_.isEmpty()) { - if (values_.isEmpty()) { - values_ = other.values_; - bitField0_ |= 0x00000004; - } else { - ensureValuesIsMutable(); - values_.addAll(other.values_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - consumeReservationType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - key_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureValuesIsMutable(); - values_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int consumeReservationType_ = 0; - /** - * - * - *
-     * Corresponds to the type of reservation consumption.
-     * 
- * - * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; - * - * @return The enum numeric value on the wire for consumeReservationType. - */ - @java.lang.Override - public int getConsumeReservationTypeValue() { - return consumeReservationType_; - } - /** - * - * - *
-     * Corresponds to the type of reservation consumption.
-     * 
- * - * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; - * - * @param value The enum numeric value on the wire for consumeReservationType to set. - * @return This builder for chaining. - */ - public Builder setConsumeReservationTypeValue(int value) { - consumeReservationType_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Corresponds to the type of reservation consumption.
-     * 
- * - * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; - * - * @return The consumeReservationType. - */ - @java.lang.Override - public com.google.container.v1.ReservationAffinity.Type getConsumeReservationType() { - com.google.container.v1.ReservationAffinity.Type result = - com.google.container.v1.ReservationAffinity.Type.forNumber(consumeReservationType_); - return result == null - ? com.google.container.v1.ReservationAffinity.Type.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Corresponds to the type of reservation consumption.
-     * 
- * - * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; - * - * @param value The consumeReservationType to set. - * @return This builder for chaining. - */ - public Builder setConsumeReservationType( - com.google.container.v1.ReservationAffinity.Type value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - consumeReservationType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Corresponds to the type of reservation consumption.
-     * 
- * - * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; - * - * @return This builder for chaining. - */ - public Builder clearConsumeReservationType() { - bitField0_ = (bitField0_ & ~0x00000001); - 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
-     * "compute.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
-     * "compute.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
-     * "compute.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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Corresponds to the label key of a reservation resource. To target a
-     * SPECIFIC_RESERVATION by name, specify
-     * "compute.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(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Corresponds to the label key of a reservation resource. To target a
-     * SPECIFIC_RESERVATION by name, specify
-     * "compute.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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureValuesIsMutable() { - if (!values_.isModifiable()) { - values_ = new com.google.protobuf.LazyStringArrayList(values_); - } - bitField0_ |= 0x00000004; - } - /** - * - * - *
-     * 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() { - values_.makeImmutable(); - 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); - } - /** - * - * - *
-     * 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); - bitField0_ |= 0x00000004; - 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); - bitField0_ |= 0x00000004; - 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_); - bitField0_ |= 0x00000004; - 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.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; - 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); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.ReservationAffinity) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ReservationAffinity) - private static final com.google.container.v1.ReservationAffinity DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ReservationAffinity(); - } - - public static com.google.container.v1.ReservationAffinity getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReservationAffinity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.ReservationAffinity getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReservationAffinityOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReservationAffinityOrBuilder.java deleted file mode 100644 index ab65abe5730f..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReservationAffinityOrBuilder.java +++ /dev/null @@ -1,133 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface ReservationAffinityOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ReservationAffinity) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Corresponds to the type of reservation consumption.
-   * 
- * - * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; - * - * @return The enum numeric value on the wire for consumeReservationType. - */ - int getConsumeReservationTypeValue(); - /** - * - * - *
-   * Corresponds to the type of reservation consumption.
-   * 
- * - * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; - * - * @return The consumeReservationType. - */ - com.google.container.v1.ReservationAffinity.Type getConsumeReservationType(); - - /** - * - * - *
-   * Corresponds to the label key of a reservation resource. To target a
-   * SPECIFIC_RESERVATION by name, specify
-   * "compute.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
-   * "compute.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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLabels.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLabels.java deleted file mode 100644 index 3026317b75a8..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLabels.java +++ /dev/null @@ -1,777 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Collection of [GCP
- * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
- * 
- * - * Protobuf type {@code google.container.v1.ResourceLabels} - */ -public final class ResourceLabels extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.ResourceLabels) - ResourceLabelsOrBuilder { - private static final long serialVersionUID = 0L; - // Use ResourceLabels.newBuilder() to construct. - private ResourceLabels(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ResourceLabels() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ResourceLabels(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceLabels_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - 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.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceLabels_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ResourceLabels.class, - com.google.container.v1.ResourceLabels.Builder.class); - } - - public static final int LABELS_FIELD_NUMBER = 1; - - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceLabels_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - @SuppressWarnings("serial") - 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(); - } - /** - * - * - *
-   * Map of node label keys and node label values.
-   * 
- * - * map<string, string> labels = 1; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-   * Map of node label keys and node label values.
-   * 
- * - * map<string, string> labels = 1; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-   * Map of node label keys and node label values.
-   * 
- * - * map<string, string> labels = 1; - */ - @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Map of node label keys and node label values.
-   * 
- * - * map<string, string> labels = 1; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().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, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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(1, labels__); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.ResourceLabels)) { - return super.equals(obj); - } - com.google.container.v1.ResourceLabels other = (com.google.container.v1.ResourceLabels) obj; - - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ResourceLabels parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ResourceLabels parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ResourceLabels parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ResourceLabels parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ResourceLabels parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ResourceLabels parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ResourceLabels parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ResourceLabels parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ResourceLabels parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.ResourceLabels parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ResourceLabels parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ResourceLabels parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.ResourceLabels prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Collection of [GCP
-   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
-   * 
- * - * Protobuf type {@code google.container.v1.ResourceLabels} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ResourceLabels) - com.google.container.v1.ResourceLabelsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceLabels_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - 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.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceLabels_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ResourceLabels.class, - com.google.container.v1.ResourceLabels.Builder.class); - } - - // Construct using com.google.container.v1.ResourceLabels.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableLabels().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceLabels_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ResourceLabels getDefaultInstanceForType() { - return com.google.container.v1.ResourceLabels.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ResourceLabels build() { - com.google.container.v1.ResourceLabels result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ResourceLabels buildPartial() { - com.google.container.v1.ResourceLabels result = - new com.google.container.v1.ResourceLabels(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.ResourceLabels result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ResourceLabels) { - return mergeFrom((com.google.container.v1.ResourceLabels) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ResourceLabels other) { - if (other == com.google.container.v1.ResourceLabels.getDefaultInstance()) return this; - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00000001; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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() { - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - * - * - *
-     * Map of node label keys and node label values.
-     * 
- * - * map<string, string> labels = 1; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-     * Map of node label keys and node label values.
-     * 
- * - * map<string, string> labels = 1; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-     * Map of node label keys and node label values.
-     * 
- * - * map<string, string> labels = 1; - */ - @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Map of node label keys and node label values.
-     * 
- * - * map<string, string> labels = 1; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableLabels().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Map of node label keys and node label values.
-     * 
- * - * map<string, string> labels = 1; - */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - bitField0_ |= 0x00000001; - return internalGetMutableLabels().getMutableMap(); - } - /** - * - * - *
-     * Map of node label keys and node label values.
-     * 
- * - * map<string, string> labels = 1; - */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * - * - *
-     * Map of node label keys and node label values.
-     * 
- * - * map<string, string> labels = 1; - */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.ResourceLabels) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ResourceLabels) - private static final com.google.container.v1.ResourceLabels DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ResourceLabels(); - } - - public static com.google.container.v1.ResourceLabels getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceLabels parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.ResourceLabels getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLabelsOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLabelsOrBuilder.java deleted file mode 100644 index 4e81b5b25bd3..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLabelsOrBuilder.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface ResourceLabelsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ResourceLabels) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Map of node label keys and node label values.
-   * 
- * - * map<string, string> labels = 1; - */ - int getLabelsCount(); - /** - * - * - *
-   * Map of node label keys and node label values.
-   * 
- * - * map<string, string> labels = 1; - */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getLabels(); - /** - * - * - *
-   * Map of node label keys and node label values.
-   * 
- * - * map<string, string> labels = 1; - */ - java.util.Map getLabelsMap(); - /** - * - * - *
-   * Map of node label keys and node label values.
-   * 
- * - * map<string, string> labels = 1; - */ - /* nullable */ - java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * Map of node label keys and node label values.
-   * 
- * - * map<string, string> labels = 1; - */ - java.lang.String getLabelsOrThrow(java.lang.String key); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLimit.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLimit.java deleted file mode 100644 index 3dc97ed5e61c..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLimit.java +++ /dev/null @@ -1,810 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Contains information about amount of some resource in the cluster.
- * For memory, value should be in GB.
- * 
- * - * Protobuf type {@code google.container.v1.ResourceLimit} - */ -public final class ResourceLimit extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceLimit_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceLimit_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ResourceLimit.class, - com.google.container.v1.ResourceLimit.Builder.class); - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - 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_ = 0L; - /** - * - * - *
-   * 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_ = 0L; - /** - * - * - *
-   * 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceType_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceType_); - } - if (minimum_ != 0L) { - output.writeInt64(2, minimum_); - } - if (maximum_ != 0L) { - output.writeInt64(3, maximum_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceType_)) { - 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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.ResourceLimit)) { - return super.equals(obj); - } - com.google.container.v1.ResourceLimit other = (com.google.container.v1.ResourceLimit) obj; - - if (!getResourceType().equals(other.getResourceType())) return false; - if (getMinimum() != other.getMinimum()) return false; - if (getMaximum() != other.getMaximum()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ResourceLimit parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.ResourceLimit parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.ResourceLimit parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ResourceLimit parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ResourceLimit parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.ResourceLimit parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.ResourceLimit parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.ResourceLimit} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ResourceLimit) - com.google.container.v1.ResourceLimitOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceLimit_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceLimit_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ResourceLimit.class, - com.google.container.v1.ResourceLimit.Builder.class); - } - - // Construct using com.google.container.v1.ResourceLimit.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - resourceType_ = ""; - minimum_ = 0L; - maximum_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceLimit_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ResourceLimit getDefaultInstanceForType() { - return com.google.container.v1.ResourceLimit.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ResourceLimit build() { - com.google.container.v1.ResourceLimit result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ResourceLimit buildPartial() { - com.google.container.v1.ResourceLimit result = - new com.google.container.v1.ResourceLimit(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.ResourceLimit result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.resourceType_ = resourceType_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.minimum_ = minimum_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.maximum_ = maximum_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ResourceLimit) { - return mergeFrom((com.google.container.v1.ResourceLimit) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ResourceLimit other) { - if (other == com.google.container.v1.ResourceLimit.getDefaultInstance()) return this; - if (!other.getResourceType().isEmpty()) { - resourceType_ = other.resourceType_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getMinimum() != 0L) { - setMinimum(other.getMinimum()); - } - if (other.getMaximum() != 0L) { - setMaximum(other.getMaximum()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - resourceType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - minimum_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - maximum_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Minimum amount of the resource in the cluster.
-     * 
- * - * int64 minimum = 2; - * - * @return This builder for chaining. - */ - public Builder clearMinimum() { - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Maximum amount of the resource in the cluster.
-     * 
- * - * int64 maximum = 3; - * - * @return This builder for chaining. - */ - public Builder clearMaximum() { - bitField0_ = (bitField0_ & ~0x00000004); - 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.v1.ResourceLimit) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ResourceLimit) - private static final com.google.container.v1.ResourceLimit DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ResourceLimit(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.ResourceLimit getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLimitOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLimitOrBuilder.java deleted file mode 100644 index 767d05e29b79..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLimitOrBuilder.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface ResourceLimitOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceManagerTags.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceManagerTags.java deleted file mode 100644 index f9c361e4ce40..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceManagerTags.java +++ /dev/null @@ -1,816 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * A map of resource manager tag keys and values to be attached to the nodes
- * for managing Compute Engine firewalls using Network Firewall Policies.
- * Tags must be according to specifications in
- * https://cloud.google.com/vpc/docs/tags-firewalls-overview#specifications.
- * A maximum of 5 tag key-value pairs can be specified.
- * Existing tags will be replaced with new values.
- * 
- * - * Protobuf type {@code google.container.v1.ResourceManagerTags} - */ -public final class ResourceManagerTags extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.ResourceManagerTags) - ResourceManagerTagsOrBuilder { - private static final long serialVersionUID = 0L; - // Use ResourceManagerTags.newBuilder() to construct. - private ResourceManagerTags(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ResourceManagerTags() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ResourceManagerTags(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceManagerTags_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetTags(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceManagerTags_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ResourceManagerTags.class, - com.google.container.v1.ResourceManagerTags.Builder.class); - } - - public static final int TAGS_FIELD_NUMBER = 1; - - private static final class TagsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceManagerTags_TagsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - @SuppressWarnings("serial") - private com.google.protobuf.MapField tags_; - - private com.google.protobuf.MapField internalGetTags() { - if (tags_ == null) { - return com.google.protobuf.MapField.emptyMapField(TagsDefaultEntryHolder.defaultEntry); - } - return tags_; - } - - public int getTagsCount() { - return internalGetTags().getMap().size(); - } - /** - * - * - *
-   * TagKeyValue must be in one of the following formats ([KEY]=[VALUE])
-   * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
-   * 2. `{org_id}/{tag_key_name}={tag_value_name}`
-   * 3. `{project_id}/{tag_key_name}={tag_value_name}`
-   * 
- * - * map<string, string> tags = 1; - */ - @java.lang.Override - public boolean containsTags(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetTags().getMap().containsKey(key); - } - /** Use {@link #getTagsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getTags() { - return getTagsMap(); - } - /** - * - * - *
-   * TagKeyValue must be in one of the following formats ([KEY]=[VALUE])
-   * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
-   * 2. `{org_id}/{tag_key_name}={tag_value_name}`
-   * 3. `{project_id}/{tag_key_name}={tag_value_name}`
-   * 
- * - * map<string, string> tags = 1; - */ - @java.lang.Override - public java.util.Map getTagsMap() { - return internalGetTags().getMap(); - } - /** - * - * - *
-   * TagKeyValue must be in one of the following formats ([KEY]=[VALUE])
-   * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
-   * 2. `{org_id}/{tag_key_name}={tag_value_name}`
-   * 3. `{project_id}/{tag_key_name}={tag_value_name}`
-   * 
- * - * map<string, string> tags = 1; - */ - @java.lang.Override - public /* nullable */ java.lang.String getTagsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetTags().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * TagKeyValue must be in one of the following formats ([KEY]=[VALUE])
-   * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
-   * 2. `{org_id}/{tag_key_name}={tag_value_name}`
-   * 3. `{project_id}/{tag_key_name}={tag_value_name}`
-   * 
- * - * map<string, string> tags = 1; - */ - @java.lang.Override - public java.lang.String getTagsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetTags().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, internalGetTags(), TagsDefaultEntryHolder.defaultEntry, 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry : - internalGetTags().getMap().entrySet()) { - com.google.protobuf.MapEntry tags__ = - TagsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, tags__); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.ResourceManagerTags)) { - return super.equals(obj); - } - com.google.container.v1.ResourceManagerTags other = - (com.google.container.v1.ResourceManagerTags) obj; - - if (!internalGetTags().equals(other.internalGetTags())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetTags().getMap().isEmpty()) { - hash = (37 * hash) + TAGS_FIELD_NUMBER; - hash = (53 * hash) + internalGetTags().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ResourceManagerTags parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ResourceManagerTags parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ResourceManagerTags parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ResourceManagerTags parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ResourceManagerTags parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ResourceManagerTags parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ResourceManagerTags parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ResourceManagerTags parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ResourceManagerTags parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.ResourceManagerTags parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ResourceManagerTags parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ResourceManagerTags parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.ResourceManagerTags prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 map of resource manager tag keys and values to be attached to the nodes
-   * for managing Compute Engine firewalls using Network Firewall Policies.
-   * Tags must be according to specifications in
-   * https://cloud.google.com/vpc/docs/tags-firewalls-overview#specifications.
-   * A maximum of 5 tag key-value pairs can be specified.
-   * Existing tags will be replaced with new values.
-   * 
- * - * Protobuf type {@code google.container.v1.ResourceManagerTags} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ResourceManagerTags) - com.google.container.v1.ResourceManagerTagsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceManagerTags_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetTags(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableTags(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceManagerTags_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ResourceManagerTags.class, - com.google.container.v1.ResourceManagerTags.Builder.class); - } - - // Construct using com.google.container.v1.ResourceManagerTags.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableTags().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceManagerTags_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ResourceManagerTags getDefaultInstanceForType() { - return com.google.container.v1.ResourceManagerTags.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ResourceManagerTags build() { - com.google.container.v1.ResourceManagerTags result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ResourceManagerTags buildPartial() { - com.google.container.v1.ResourceManagerTags result = - new com.google.container.v1.ResourceManagerTags(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.ResourceManagerTags result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.tags_ = internalGetTags(); - result.tags_.makeImmutable(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ResourceManagerTags) { - return mergeFrom((com.google.container.v1.ResourceManagerTags) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ResourceManagerTags other) { - if (other == com.google.container.v1.ResourceManagerTags.getDefaultInstance()) return this; - internalGetMutableTags().mergeFrom(other.internalGetTags()); - bitField0_ |= 0x00000001; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.protobuf.MapEntry tags__ = - input.readMessage( - TagsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableTags().getMutableMap().put(tags__.getKey(), tags__.getValue()); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.protobuf.MapField tags_; - - private com.google.protobuf.MapField internalGetTags() { - if (tags_ == null) { - return com.google.protobuf.MapField.emptyMapField(TagsDefaultEntryHolder.defaultEntry); - } - return tags_; - } - - private com.google.protobuf.MapField - internalGetMutableTags() { - if (tags_ == null) { - tags_ = com.google.protobuf.MapField.newMapField(TagsDefaultEntryHolder.defaultEntry); - } - if (!tags_.isMutable()) { - tags_ = tags_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return tags_; - } - - public int getTagsCount() { - return internalGetTags().getMap().size(); - } - /** - * - * - *
-     * TagKeyValue must be in one of the following formats ([KEY]=[VALUE])
-     * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
-     * 2. `{org_id}/{tag_key_name}={tag_value_name}`
-     * 3. `{project_id}/{tag_key_name}={tag_value_name}`
-     * 
- * - * map<string, string> tags = 1; - */ - @java.lang.Override - public boolean containsTags(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetTags().getMap().containsKey(key); - } - /** Use {@link #getTagsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getTags() { - return getTagsMap(); - } - /** - * - * - *
-     * TagKeyValue must be in one of the following formats ([KEY]=[VALUE])
-     * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
-     * 2. `{org_id}/{tag_key_name}={tag_value_name}`
-     * 3. `{project_id}/{tag_key_name}={tag_value_name}`
-     * 
- * - * map<string, string> tags = 1; - */ - @java.lang.Override - public java.util.Map getTagsMap() { - return internalGetTags().getMap(); - } - /** - * - * - *
-     * TagKeyValue must be in one of the following formats ([KEY]=[VALUE])
-     * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
-     * 2. `{org_id}/{tag_key_name}={tag_value_name}`
-     * 3. `{project_id}/{tag_key_name}={tag_value_name}`
-     * 
- * - * map<string, string> tags = 1; - */ - @java.lang.Override - public /* nullable */ java.lang.String getTagsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetTags().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * TagKeyValue must be in one of the following formats ([KEY]=[VALUE])
-     * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
-     * 2. `{org_id}/{tag_key_name}={tag_value_name}`
-     * 3. `{project_id}/{tag_key_name}={tag_value_name}`
-     * 
- * - * map<string, string> tags = 1; - */ - @java.lang.Override - public java.lang.String getTagsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetTags().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearTags() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableTags().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * TagKeyValue must be in one of the following formats ([KEY]=[VALUE])
-     * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
-     * 2. `{org_id}/{tag_key_name}={tag_value_name}`
-     * 3. `{project_id}/{tag_key_name}={tag_value_name}`
-     * 
- * - * map<string, string> tags = 1; - */ - public Builder removeTags(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableTags().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableTags() { - bitField0_ |= 0x00000001; - return internalGetMutableTags().getMutableMap(); - } - /** - * - * - *
-     * TagKeyValue must be in one of the following formats ([KEY]=[VALUE])
-     * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
-     * 2. `{org_id}/{tag_key_name}={tag_value_name}`
-     * 3. `{project_id}/{tag_key_name}={tag_value_name}`
-     * 
- * - * map<string, string> tags = 1; - */ - public Builder putTags(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableTags().getMutableMap().put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * - * - *
-     * TagKeyValue must be in one of the following formats ([KEY]=[VALUE])
-     * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
-     * 2. `{org_id}/{tag_key_name}={tag_value_name}`
-     * 3. `{project_id}/{tag_key_name}={tag_value_name}`
-     * 
- * - * map<string, string> tags = 1; - */ - public Builder putAllTags(java.util.Map values) { - internalGetMutableTags().getMutableMap().putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.ResourceManagerTags) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ResourceManagerTags) - private static final com.google.container.v1.ResourceManagerTags DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ResourceManagerTags(); - } - - public static com.google.container.v1.ResourceManagerTags getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceManagerTags parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.ResourceManagerTags getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceManagerTagsOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceManagerTagsOrBuilder.java deleted file mode 100644 index e62f78613110..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceManagerTagsOrBuilder.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface ResourceManagerTagsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ResourceManagerTags) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * TagKeyValue must be in one of the following formats ([KEY]=[VALUE])
-   * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
-   * 2. `{org_id}/{tag_key_name}={tag_value_name}`
-   * 3. `{project_id}/{tag_key_name}={tag_value_name}`
-   * 
- * - * map<string, string> tags = 1; - */ - int getTagsCount(); - /** - * - * - *
-   * TagKeyValue must be in one of the following formats ([KEY]=[VALUE])
-   * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
-   * 2. `{org_id}/{tag_key_name}={tag_value_name}`
-   * 3. `{project_id}/{tag_key_name}={tag_value_name}`
-   * 
- * - * map<string, string> tags = 1; - */ - boolean containsTags(java.lang.String key); - /** Use {@link #getTagsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getTags(); - /** - * - * - *
-   * TagKeyValue must be in one of the following formats ([KEY]=[VALUE])
-   * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
-   * 2. `{org_id}/{tag_key_name}={tag_value_name}`
-   * 3. `{project_id}/{tag_key_name}={tag_value_name}`
-   * 
- * - * map<string, string> tags = 1; - */ - java.util.Map getTagsMap(); - /** - * - * - *
-   * TagKeyValue must be in one of the following formats ([KEY]=[VALUE])
-   * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
-   * 2. `{org_id}/{tag_key_name}={tag_value_name}`
-   * 3. `{project_id}/{tag_key_name}={tag_value_name}`
-   * 
- * - * map<string, string> tags = 1; - */ - /* nullable */ - java.lang.String getTagsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * TagKeyValue must be in one of the following formats ([KEY]=[VALUE])
-   * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
-   * 2. `{org_id}/{tag_key_name}={tag_value_name}`
-   * 3. `{project_id}/{tag_key_name}={tag_value_name}`
-   * 
- * - * map<string, string> tags = 1; - */ - java.lang.String getTagsOrThrow(java.lang.String key); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceUsageExportConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceUsageExportConfig.java deleted file mode 100644 index 6f951192466e..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceUsageExportConfig.java +++ /dev/null @@ -1,2410 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Configuration for exporting cluster resource usages.
- * 
- * - * Protobuf type {@code google.container.v1.ResourceUsageExportConfig} - */ -public final class ResourceUsageExportConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceUsageExportConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceUsageExportConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ResourceUsageExportConfig.class, - com.google.container.v1.ResourceUsageExportConfig.Builder.class); - } - - public interface BigQueryDestinationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.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.v1.ResourceUsageExportConfig.BigQueryDestination} - */ - public static final class BigQueryDestination extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceUsageExportConfig_BigQueryDestination_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceUsageExportConfig_BigQueryDestination_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.class, - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.Builder.class); - } - - public static final int DATASET_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, datasetId_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, datasetId_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination)) { - return super.equals(obj); - } - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination other = - (com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination) obj; - - if (!getDatasetId().equals(other.getDatasetId())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.ResourceUsageExportConfig.BigQueryDestination parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.ResourceUsageExportConfig.BigQueryDestination parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.ResourceUsageExportConfig.BigQueryDestination parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.ResourceUsageExportConfig.BigQueryDestination - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.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.v1.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.v1.ResourceUsageExportConfig.BigQueryDestination} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ResourceUsageExportConfig.BigQueryDestination) - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceUsageExportConfig_BigQueryDestination_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceUsageExportConfig_BigQueryDestination_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.class, - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.Builder - .class); - } - - // Construct using - // com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - datasetId_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceUsageExportConfig_BigQueryDestination_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination - getDefaultInstanceForType() { - return com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination build() { - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination buildPartial() { - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination result = - new com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.datasetId_ = datasetId_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination) { - return mergeFrom( - (com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination other) { - if (other - == com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination - .getDefaultInstance()) return this; - if (!other.getDatasetId().isEmpty()) { - datasetId_ = other.datasetId_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - datasetId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * The ID of a BigQuery Dataset.
-       * 
- * - * string dataset_id = 1; - * - * @return This builder for chaining. - */ - public Builder clearDatasetId() { - datasetId_ = getDefaultInstance().getDatasetId(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.ResourceUsageExportConfig.BigQueryDestination) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ResourceUsageExportConfig.BigQueryDestination) - private static final com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface ConsumptionMeteringConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.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.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig} - */ - public static final class ConsumptionMeteringConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceUsageExportConfig_ConsumptionMeteringConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceUsageExportConfig_ConsumptionMeteringConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.class, - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder - .class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-     * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig)) { - return super.equals(obj); - } - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig other = - (com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.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.v1.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.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig) - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceUsageExportConfig_ConsumptionMeteringConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceUsageExportConfig_ConsumptionMeteringConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.class, - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder - .class); - } - - // Construct using - // com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enabled_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceUsageExportConfig_ConsumptionMeteringConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - getDefaultInstanceForType() { - return com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig build() { - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - buildPartial() { - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig result = - new com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig) { - return mergeFrom( - (com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig other) { - if (other - == com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - .getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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() { - bitField0_ = (bitField0_ & ~0x00000001); - enabled_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig) - private static final com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int bitField0_; - public static final int BIGQUERY_DESTINATION_FIELD_NUMBER = 1; - private com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination - bigqueryDestination_; - /** - * - * - *
-   * Configuration to use BigQuery as usage export destination.
-   * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * - * - * @return Whether the bigqueryDestination field is set. - */ - @java.lang.Override - public boolean hasBigqueryDestination() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Configuration to use BigQuery as usage export destination.
-   * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * - * - * @return The bigqueryDestination. - */ - @java.lang.Override - public com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination - getBigqueryDestination() { - return bigqueryDestination_ == null - ? com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.getDefaultInstance() - : bigqueryDestination_; - } - /** - * - * - *
-   * Configuration to use BigQuery as usage export destination.
-   * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * - */ - @java.lang.Override - public com.google.container.v1.ResourceUsageExportConfig.BigQueryDestinationOrBuilder - getBigqueryDestinationOrBuilder() { - return bigqueryDestination_ == null - ? com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.getDefaultInstance() - : bigqueryDestination_; - } - - public static final int ENABLE_NETWORK_EGRESS_METERING_FIELD_NUMBER = 2; - private boolean enableNetworkEgressMetering_ = false; - /** - * - * - *
-   * 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.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - consumptionMeteringConfig_; - /** - * - * - *
-   * Configuration to enable resource consumption metering.
-   * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * - * - * @return Whether the consumptionMeteringConfig field is set. - */ - @java.lang.Override - public boolean hasConsumptionMeteringConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * Configuration to enable resource consumption metering.
-   * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * - * - * @return The consumptionMeteringConfig. - */ - @java.lang.Override - public com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - getConsumptionMeteringConfig() { - return consumptionMeteringConfig_ == null - ? com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - .getDefaultInstance() - : consumptionMeteringConfig_; - } - /** - * - * - *
-   * Configuration to enable resource consumption metering.
-   * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * - */ - @java.lang.Override - public com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfigOrBuilder - getConsumptionMeteringConfigOrBuilder() { - return consumptionMeteringConfig_ == null - ? com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - .getDefaultInstance() - : consumptionMeteringConfig_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getBigqueryDestination()); - } - if (enableNetworkEgressMetering_ != false) { - output.writeBool(2, enableNetworkEgressMetering_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(3, getConsumptionMeteringConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBigqueryDestination()); - } - if (enableNetworkEgressMetering_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableNetworkEgressMetering_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, getConsumptionMeteringConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.ResourceUsageExportConfig)) { - return super.equals(obj); - } - com.google.container.v1.ResourceUsageExportConfig other = - (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ResourceUsageExportConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.ResourceUsageExportConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.ResourceUsageExportConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ResourceUsageExportConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ResourceUsageExportConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.ResourceUsageExportConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.ResourceUsageExportConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.ResourceUsageExportConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ResourceUsageExportConfig) - com.google.container.v1.ResourceUsageExportConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceUsageExportConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceUsageExportConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ResourceUsageExportConfig.class, - com.google.container.v1.ResourceUsageExportConfig.Builder.class); - } - - // Construct using com.google.container.v1.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) { - getBigqueryDestinationFieldBuilder(); - getConsumptionMeteringConfigFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - bigqueryDestination_ = null; - if (bigqueryDestinationBuilder_ != null) { - bigqueryDestinationBuilder_.dispose(); - bigqueryDestinationBuilder_ = null; - } - enableNetworkEgressMetering_ = false; - consumptionMeteringConfig_ = null; - if (consumptionMeteringConfigBuilder_ != null) { - consumptionMeteringConfigBuilder_.dispose(); - consumptionMeteringConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceUsageExportConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ResourceUsageExportConfig getDefaultInstanceForType() { - return com.google.container.v1.ResourceUsageExportConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ResourceUsageExportConfig build() { - com.google.container.v1.ResourceUsageExportConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ResourceUsageExportConfig buildPartial() { - com.google.container.v1.ResourceUsageExportConfig result = - new com.google.container.v1.ResourceUsageExportConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.ResourceUsageExportConfig result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.bigqueryDestination_ = - bigqueryDestinationBuilder_ == null - ? bigqueryDestination_ - : bigqueryDestinationBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.enableNetworkEgressMetering_ = enableNetworkEgressMetering_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.consumptionMeteringConfig_ = - consumptionMeteringConfigBuilder_ == null - ? consumptionMeteringConfig_ - : consumptionMeteringConfigBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ResourceUsageExportConfig) { - return mergeFrom((com.google.container.v1.ResourceUsageExportConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ResourceUsageExportConfig other) { - if (other == com.google.container.v1.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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage( - getBigqueryDestinationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - enableNetworkEgressMetering_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - input.readMessage( - getConsumptionMeteringConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination - bigqueryDestination_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination, - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.Builder, - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestinationOrBuilder> - bigqueryDestinationBuilder_; - /** - * - * - *
-     * Configuration to use BigQuery as usage export destination.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * - * - * @return Whether the bigqueryDestination field is set. - */ - public boolean hasBigqueryDestination() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Configuration to use BigQuery as usage export destination.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * - * - * @return The bigqueryDestination. - */ - public com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination - getBigqueryDestination() { - if (bigqueryDestinationBuilder_ == null) { - return bigqueryDestination_ == null - ? com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination - .getDefaultInstance() - : bigqueryDestination_; - } else { - return bigqueryDestinationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration to use BigQuery as usage export destination.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * - */ - public Builder setBigqueryDestination( - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination value) { - if (bigqueryDestinationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - bigqueryDestination_ = value; - } else { - bigqueryDestinationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration to use BigQuery as usage export destination.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * - */ - public Builder setBigqueryDestination( - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.Builder - builderForValue) { - if (bigqueryDestinationBuilder_ == null) { - bigqueryDestination_ = builderForValue.build(); - } else { - bigqueryDestinationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration to use BigQuery as usage export destination.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * - */ - public Builder mergeBigqueryDestination( - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination value) { - if (bigqueryDestinationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && bigqueryDestination_ != null - && bigqueryDestination_ - != com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination - .getDefaultInstance()) { - getBigqueryDestinationBuilder().mergeFrom(value); - } else { - bigqueryDestination_ = value; - } - } else { - bigqueryDestinationBuilder_.mergeFrom(value); - } - if (bigqueryDestination_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration to use BigQuery as usage export destination.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * - */ - public Builder clearBigqueryDestination() { - bitField0_ = (bitField0_ & ~0x00000001); - bigqueryDestination_ = null; - if (bigqueryDestinationBuilder_ != null) { - bigqueryDestinationBuilder_.dispose(); - bigqueryDestinationBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration to use BigQuery as usage export destination.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * - */ - public com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.Builder - getBigqueryDestinationBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getBigqueryDestinationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration to use BigQuery as usage export destination.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * - */ - public com.google.container.v1.ResourceUsageExportConfig.BigQueryDestinationOrBuilder - getBigqueryDestinationOrBuilder() { - if (bigqueryDestinationBuilder_ != null) { - return bigqueryDestinationBuilder_.getMessageOrBuilder(); - } else { - return bigqueryDestination_ == null - ? com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination - .getDefaultInstance() - : bigqueryDestination_; - } - } - /** - * - * - *
-     * Configuration to use BigQuery as usage export destination.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination, - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.Builder, - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestinationOrBuilder> - getBigqueryDestinationFieldBuilder() { - if (bigqueryDestinationBuilder_ == null) { - bigqueryDestinationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination, - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.Builder, - com.google.container.v1.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; - bitField0_ |= 0x00000002; - 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() { - bitField0_ = (bitField0_ & ~0x00000002); - enableNetworkEgressMetering_ = false; - onChanged(); - return this; - } - - private com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - consumptionMeteringConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig, - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder, - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfigOrBuilder> - consumptionMeteringConfigBuilder_; - /** - * - * - *
-     * Configuration to enable resource consumption metering.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * - * - * @return Whether the consumptionMeteringConfig field is set. - */ - public boolean hasConsumptionMeteringConfig() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * Configuration to enable resource consumption metering.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * - * - * @return The consumptionMeteringConfig. - */ - public com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - getConsumptionMeteringConfig() { - if (consumptionMeteringConfigBuilder_ == null) { - return consumptionMeteringConfig_ == null - ? com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - .getDefaultInstance() - : consumptionMeteringConfig_; - } else { - return consumptionMeteringConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration to enable resource consumption metering.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * - */ - public Builder setConsumptionMeteringConfig( - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig value) { - if (consumptionMeteringConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - consumptionMeteringConfig_ = value; - } else { - consumptionMeteringConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration to enable resource consumption metering.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * - */ - public Builder setConsumptionMeteringConfig( - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder - builderForValue) { - if (consumptionMeteringConfigBuilder_ == null) { - consumptionMeteringConfig_ = builderForValue.build(); - } else { - consumptionMeteringConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration to enable resource consumption metering.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * - */ - public Builder mergeConsumptionMeteringConfig( - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig value) { - if (consumptionMeteringConfigBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && consumptionMeteringConfig_ != null - && consumptionMeteringConfig_ - != com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - .getDefaultInstance()) { - getConsumptionMeteringConfigBuilder().mergeFrom(value); - } else { - consumptionMeteringConfig_ = value; - } - } else { - consumptionMeteringConfigBuilder_.mergeFrom(value); - } - if (consumptionMeteringConfig_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration to enable resource consumption metering.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * - */ - public Builder clearConsumptionMeteringConfig() { - bitField0_ = (bitField0_ & ~0x00000004); - consumptionMeteringConfig_ = null; - if (consumptionMeteringConfigBuilder_ != null) { - consumptionMeteringConfigBuilder_.dispose(); - consumptionMeteringConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration to enable resource consumption metering.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * - */ - public com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder - getConsumptionMeteringConfigBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getConsumptionMeteringConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration to enable resource consumption metering.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * - */ - public com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfigOrBuilder - getConsumptionMeteringConfigOrBuilder() { - if (consumptionMeteringConfigBuilder_ != null) { - return consumptionMeteringConfigBuilder_.getMessageOrBuilder(); - } else { - return consumptionMeteringConfig_ == null - ? com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - .getDefaultInstance() - : consumptionMeteringConfig_; - } - } - /** - * - * - *
-     * Configuration to enable resource consumption metering.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig, - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder, - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfigOrBuilder> - getConsumptionMeteringConfigFieldBuilder() { - if (consumptionMeteringConfigBuilder_ == null) { - consumptionMeteringConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig, - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder, - com.google.container.v1.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.v1.ResourceUsageExportConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ResourceUsageExportConfig) - private static final com.google.container.v1.ResourceUsageExportConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ResourceUsageExportConfig(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.ResourceUsageExportConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceUsageExportConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceUsageExportConfigOrBuilder.java deleted file mode 100644 index 8f1ac4ada04d..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceUsageExportConfigOrBuilder.java +++ /dev/null @@ -1,125 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface ResourceUsageExportConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ResourceUsageExportConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Configuration to use BigQuery as usage export destination.
-   * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * - * - * @return Whether the bigqueryDestination field is set. - */ - boolean hasBigqueryDestination(); - /** - * - * - *
-   * Configuration to use BigQuery as usage export destination.
-   * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * - * - * @return The bigqueryDestination. - */ - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination getBigqueryDestination(); - /** - * - * - *
-   * Configuration to use BigQuery as usage export destination.
-   * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * - */ - com.google.container.v1.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.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * - * - * @return Whether the consumptionMeteringConfig field is set. - */ - boolean hasConsumptionMeteringConfig(); - /** - * - * - *
-   * Configuration to enable resource consumption metering.
-   * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * - * - * @return The consumptionMeteringConfig. - */ - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - getConsumptionMeteringConfig(); - /** - * - * - *
-   * Configuration to enable resource consumption metering.
-   * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * - */ - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfigOrBuilder - getConsumptionMeteringConfigOrBuilder(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java deleted file mode 100644 index 8f38fee4a67a..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java +++ /dev/null @@ -1,1603 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * 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.v1.RollbackNodePoolUpgradeRequest} - */ -public final class RollbackNodePoolUpgradeRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_RollbackNodePoolUpgradeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_RollbackNodePoolUpgradeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.RollbackNodePoolUpgradeRequest.class, - com.google.container.v1.RollbackNodePoolUpgradeRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3828 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3828 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object zone_ = ""; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3834 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3834 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object clusterId_ = ""; - /** - * - * - *
-   * Deprecated. The name of the cluster to rollback.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3838 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster to rollback.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3838 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object nodePoolId_ = ""; - /** - * - * - *
-   * Deprecated. The name of the node pool to rollback.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3842 - * @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; - } - } - /** - * - * - *
-   * 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]; - * - * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3842 - * @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; - - @SuppressWarnings("serial") - 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; - } - } - - public static final int RESPECT_PDB_FIELD_NUMBER = 7; - private boolean respectPdb_ = false; - /** - * - * - *
-   * Option for rollback to ignore the PodDisruptionBudget.
-   * Default value is false.
-   * 
- * - * bool respect_pdb = 7; - * - * @return The respectPdb. - */ - @java.lang.Override - public boolean getRespectPdb() { - return respectPdb_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); - } - if (respectPdb_ != false) { - output.writeBool(7, respectPdb_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); - } - if (respectPdb_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, respectPdb_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.RollbackNodePoolUpgradeRequest)) { - return super.equals(obj); - } - com.google.container.v1.RollbackNodePoolUpgradeRequest other = - (com.google.container.v1.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 (getRespectPdb() != other.getRespectPdb()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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 = (37 * hash) + RESPECT_PDB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRespectPdb()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.RollbackNodePoolUpgradeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.RollbackNodePoolUpgradeRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.RollbackNodePoolUpgradeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.RollbackNodePoolUpgradeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.RollbackNodePoolUpgradeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.RollbackNodePoolUpgradeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.RollbackNodePoolUpgradeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.RollbackNodePoolUpgradeRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.RollbackNodePoolUpgradeRequest) - com.google.container.v1.RollbackNodePoolUpgradeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_RollbackNodePoolUpgradeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_RollbackNodePoolUpgradeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.RollbackNodePoolUpgradeRequest.class, - com.google.container.v1.RollbackNodePoolUpgradeRequest.Builder.class); - } - - // Construct using com.google.container.v1.RollbackNodePoolUpgradeRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - nodePoolId_ = ""; - name_ = ""; - respectPdb_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_RollbackNodePoolUpgradeRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.RollbackNodePoolUpgradeRequest getDefaultInstanceForType() { - return com.google.container.v1.RollbackNodePoolUpgradeRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.RollbackNodePoolUpgradeRequest build() { - com.google.container.v1.RollbackNodePoolUpgradeRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.RollbackNodePoolUpgradeRequest buildPartial() { - com.google.container.v1.RollbackNodePoolUpgradeRequest result = - new com.google.container.v1.RollbackNodePoolUpgradeRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.RollbackNodePoolUpgradeRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.nodePoolId_ = nodePoolId_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.respectPdb_ = respectPdb_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.RollbackNodePoolUpgradeRequest) { - return mergeFrom((com.google.container.v1.RollbackNodePoolUpgradeRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.RollbackNodePoolUpgradeRequest other) { - if (other == com.google.container.v1.RollbackNodePoolUpgradeRequest.getDefaultInstance()) - return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getNodePoolId().isEmpty()) { - nodePoolId_ = other.nodePoolId_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (other.getRespectPdb() != false) { - setRespectPdb(other.getRespectPdb()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - nodePoolId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 50: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - case 56: - { - respectPdb_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 56 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3828 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3828 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3828 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3828 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3828 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3834 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3834 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3834 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3834 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3834 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster to rollback.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3838 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to rollback.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3838 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to rollback.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3838 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to rollback.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3838 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to rollback.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3838 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object nodePoolId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the node pool to rollback.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1/cluster_service.proto;l=3842 - * @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; - } - } - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1/cluster_service.proto;l=3842 - * @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; - } - } - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1/cluster_service.proto;l=3842 - * @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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the node pool to rollback.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1/cluster_service.proto;l=3842 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearNodePoolId() { - nodePoolId_ = getDefaultInstance().getNodePoolId(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the node pool to rollback.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1/cluster_service.proto;l=3842 - * @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; - bitField0_ |= 0x00000008; - 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; - bitField0_ |= 0x00000010; - 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(); - bitField0_ = (bitField0_ & ~0x00000010); - 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; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private boolean respectPdb_; - /** - * - * - *
-     * Option for rollback to ignore the PodDisruptionBudget.
-     * Default value is false.
-     * 
- * - * bool respect_pdb = 7; - * - * @return The respectPdb. - */ - @java.lang.Override - public boolean getRespectPdb() { - return respectPdb_; - } - /** - * - * - *
-     * Option for rollback to ignore the PodDisruptionBudget.
-     * Default value is false.
-     * 
- * - * bool respect_pdb = 7; - * - * @param value The respectPdb to set. - * @return This builder for chaining. - */ - public Builder setRespectPdb(boolean value) { - - respectPdb_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * Option for rollback to ignore the PodDisruptionBudget.
-     * Default value is false.
-     * 
- * - * bool respect_pdb = 7; - * - * @return This builder for chaining. - */ - public Builder clearRespectPdb() { - bitField0_ = (bitField0_ & ~0x00000020); - respectPdb_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.RollbackNodePoolUpgradeRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.RollbackNodePoolUpgradeRequest) - private static final com.google.container.v1.RollbackNodePoolUpgradeRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.RollbackNodePoolUpgradeRequest(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.RollbackNodePoolUpgradeRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java deleted file mode 100644 index 3417429512d0..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java +++ /dev/null @@ -1,207 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface RollbackNodePoolUpgradeRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.RollbackNodePoolUpgradeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3828 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3828 - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3834 - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3834 - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster to rollback.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3838 - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster to rollback.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3838 - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getClusterIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the node pool to rollback.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3842 - * @return The nodePoolId. - */ - @java.lang.Deprecated - java.lang.String getNodePoolId(); - /** - * - * - *
-   * Deprecated. The name of the node pool to rollback.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3842 - * @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(); - - /** - * - * - *
-   * Option for rollback to ignore the PodDisruptionBudget.
-   * Default value is false.
-   * 
- * - * bool respect_pdb = 7; - * - * @return The respectPdb. - */ - boolean getRespectPdb(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SandboxConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SandboxConfig.java deleted file mode 100644 index 671c0bee2832..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SandboxConfig.java +++ /dev/null @@ -1,723 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * SandboxConfig contains configurations of the sandbox to use for the node.
- * 
- * - * Protobuf type {@code google.container.v1.SandboxConfig} - */ -public final class SandboxConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.SandboxConfig) - SandboxConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use SandboxConfig.newBuilder() to construct. - private SandboxConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SandboxConfig() { - type_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SandboxConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SandboxConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SandboxConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SandboxConfig.class, - com.google.container.v1.SandboxConfig.Builder.class); - } - - /** - * - * - *
-   * Possible types of sandboxes.
-   * 
- * - * Protobuf enum {@code google.container.v1.SandboxConfig.Type} - */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value. This should not be used.
-     * 
- * - * UNSPECIFIED = 0; - */ - UNSPECIFIED(0), - /** - * - * - *
-     * Run sandbox using gvisor.
-     * 
- * - * GVISOR = 1; - */ - GVISOR(1), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value. This should not be used.
-     * 
- * - * UNSPECIFIED = 0; - */ - public static final int UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Run sandbox using gvisor.
-     * 
- * - * GVISOR = 1; - */ - public static final int GVISOR_VALUE = 1; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Type valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Type forNumber(int value) { - switch (value) { - case 0: - return UNSPECIFIED; - case 1: - return GVISOR; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.SandboxConfig.getDescriptor().getEnumTypes().get(0); - } - - private static final Type[] VALUES = values(); - - public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Type(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.SandboxConfig.Type) - } - - public static final int TYPE_FIELD_NUMBER = 2; - private int type_ = 0; - /** - * - * - *
-   * Type of the sandbox to use for the node.
-   * 
- * - * .google.container.v1.SandboxConfig.Type type = 2; - * - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override - public int getTypeValue() { - return type_; - } - /** - * - * - *
-   * Type of the sandbox to use for the node.
-   * 
- * - * .google.container.v1.SandboxConfig.Type type = 2; - * - * @return The type. - */ - @java.lang.Override - public com.google.container.v1.SandboxConfig.Type getType() { - com.google.container.v1.SandboxConfig.Type result = - com.google.container.v1.SandboxConfig.Type.forNumber(type_); - return result == null ? com.google.container.v1.SandboxConfig.Type.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (type_ != com.google.container.v1.SandboxConfig.Type.UNSPECIFIED.getNumber()) { - output.writeEnum(2, type_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (type_ != com.google.container.v1.SandboxConfig.Type.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.SandboxConfig)) { - return super.equals(obj); - } - com.google.container.v1.SandboxConfig other = (com.google.container.v1.SandboxConfig) obj; - - if (type_ != other.type_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.SandboxConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SandboxConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SandboxConfig parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SandboxConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SandboxConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SandboxConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SandboxConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.SandboxConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.SandboxConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.SandboxConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.SandboxConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.SandboxConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.SandboxConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * SandboxConfig contains configurations of the sandbox to use for the node.
-   * 
- * - * Protobuf type {@code google.container.v1.SandboxConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.SandboxConfig) - com.google.container.v1.SandboxConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SandboxConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SandboxConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SandboxConfig.class, - com.google.container.v1.SandboxConfig.Builder.class); - } - - // Construct using com.google.container.v1.SandboxConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - type_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SandboxConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.SandboxConfig getDefaultInstanceForType() { - return com.google.container.v1.SandboxConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.SandboxConfig build() { - com.google.container.v1.SandboxConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.SandboxConfig buildPartial() { - com.google.container.v1.SandboxConfig result = - new com.google.container.v1.SandboxConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.SandboxConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.type_ = type_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.SandboxConfig) { - return mergeFrom((com.google.container.v1.SandboxConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.SandboxConfig other) { - if (other == com.google.container.v1.SandboxConfig.getDefaultInstance()) return this; - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 16: - { - type_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int type_ = 0; - /** - * - * - *
-     * Type of the sandbox to use for the node.
-     * 
- * - * .google.container.v1.SandboxConfig.Type type = 2; - * - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override - public int getTypeValue() { - return type_; - } - /** - * - * - *
-     * Type of the sandbox to use for the node.
-     * 
- * - * .google.container.v1.SandboxConfig.Type type = 2; - * - * @param value The enum numeric value on the wire for type to set. - * @return This builder for chaining. - */ - public Builder setTypeValue(int value) { - type_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Type of the sandbox to use for the node.
-     * 
- * - * .google.container.v1.SandboxConfig.Type type = 2; - * - * @return The type. - */ - @java.lang.Override - public com.google.container.v1.SandboxConfig.Type getType() { - com.google.container.v1.SandboxConfig.Type result = - com.google.container.v1.SandboxConfig.Type.forNumber(type_); - return result == null ? com.google.container.v1.SandboxConfig.Type.UNRECOGNIZED : result; - } - /** - * - * - *
-     * Type of the sandbox to use for the node.
-     * 
- * - * .google.container.v1.SandboxConfig.Type type = 2; - * - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(com.google.container.v1.SandboxConfig.Type value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Type of the sandbox to use for the node.
-     * 
- * - * .google.container.v1.SandboxConfig.Type type = 2; - * - * @return This builder for chaining. - */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000001); - type_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.SandboxConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.SandboxConfig) - private static final com.google.container.v1.SandboxConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.SandboxConfig(); - } - - public static com.google.container.v1.SandboxConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SandboxConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.SandboxConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SandboxConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SandboxConfigOrBuilder.java deleted file mode 100644 index ab18676d14b9..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SandboxConfigOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface SandboxConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.SandboxConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Type of the sandbox to use for the node.
-   * 
- * - * .google.container.v1.SandboxConfig.Type type = 2; - * - * @return The enum numeric value on the wire for type. - */ - int getTypeValue(); - /** - * - * - *
-   * Type of the sandbox to use for the node.
-   * 
- * - * .google.container.v1.SandboxConfig.Type type = 2; - * - * @return The type. - */ - com.google.container.v1.SandboxConfig.Type getType(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecurityBulletinEvent.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecurityBulletinEvent.java deleted file mode 100644 index 993faca2b657..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecurityBulletinEvent.java +++ /dev/null @@ -1,2516 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * SecurityBulletinEvent is a notification sent to customers when a security
- * bulletin has been posted that they are vulnerable to.
- * 
- * - * Protobuf type {@code google.container.v1.SecurityBulletinEvent} - */ -public final class SecurityBulletinEvent extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.SecurityBulletinEvent) - SecurityBulletinEventOrBuilder { - private static final long serialVersionUID = 0L; - // Use SecurityBulletinEvent.newBuilder() to construct. - private SecurityBulletinEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SecurityBulletinEvent() { - resourceTypeAffected_ = ""; - bulletinId_ = ""; - cveIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - severity_ = ""; - bulletinUri_ = ""; - briefDescription_ = ""; - affectedSupportedMinors_ = com.google.protobuf.LazyStringArrayList.emptyList(); - patchedVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - suggestedUpgradeTarget_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SecurityBulletinEvent(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SecurityBulletinEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SecurityBulletinEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SecurityBulletinEvent.class, - com.google.container.v1.SecurityBulletinEvent.Builder.class); - } - - public static final int RESOURCE_TYPE_AFFECTED_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object resourceTypeAffected_ = ""; - /** - * - * - *
-   * The resource type (node/control plane) that has the vulnerability. Multiple
-   * notifications (1 notification per resource type) will be sent for a
-   * vulnerability that affects > 1 resource type.
-   * 
- * - * string resource_type_affected = 1; - * - * @return The resourceTypeAffected. - */ - @java.lang.Override - public java.lang.String getResourceTypeAffected() { - java.lang.Object ref = resourceTypeAffected_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resourceTypeAffected_ = s; - return s; - } - } - /** - * - * - *
-   * The resource type (node/control plane) that has the vulnerability. Multiple
-   * notifications (1 notification per resource type) will be sent for a
-   * vulnerability that affects > 1 resource type.
-   * 
- * - * string resource_type_affected = 1; - * - * @return The bytes for resourceTypeAffected. - */ - @java.lang.Override - public com.google.protobuf.ByteString getResourceTypeAffectedBytes() { - java.lang.Object ref = resourceTypeAffected_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - resourceTypeAffected_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BULLETIN_ID_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object bulletinId_ = ""; - /** - * - * - *
-   * The ID of the bulletin corresponding to the vulnerability.
-   * 
- * - * string bulletin_id = 2; - * - * @return The bulletinId. - */ - @java.lang.Override - public java.lang.String getBulletinId() { - java.lang.Object ref = bulletinId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bulletinId_ = s; - return s; - } - } - /** - * - * - *
-   * The ID of the bulletin corresponding to the vulnerability.
-   * 
- * - * string bulletin_id = 2; - * - * @return The bytes for bulletinId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBulletinIdBytes() { - java.lang.Object ref = bulletinId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - bulletinId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CVE_IDS_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList cveIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * The CVEs associated with this bulletin.
-   * 
- * - * repeated string cve_ids = 3; - * - * @return A list containing the cveIds. - */ - public com.google.protobuf.ProtocolStringList getCveIdsList() { - return cveIds_; - } - /** - * - * - *
-   * The CVEs associated with this bulletin.
-   * 
- * - * repeated string cve_ids = 3; - * - * @return The count of cveIds. - */ - public int getCveIdsCount() { - return cveIds_.size(); - } - /** - * - * - *
-   * The CVEs associated with this bulletin.
-   * 
- * - * repeated string cve_ids = 3; - * - * @param index The index of the element to return. - * @return The cveIds at the given index. - */ - public java.lang.String getCveIds(int index) { - return cveIds_.get(index); - } - /** - * - * - *
-   * The CVEs associated with this bulletin.
-   * 
- * - * repeated string cve_ids = 3; - * - * @param index The index of the value to return. - * @return The bytes of the cveIds at the given index. - */ - public com.google.protobuf.ByteString getCveIdsBytes(int index) { - return cveIds_.getByteString(index); - } - - public static final int SEVERITY_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private volatile java.lang.Object severity_ = ""; - /** - * - * - *
-   * The severity of this bulletin as it relates to GKE.
-   * 
- * - * string severity = 4; - * - * @return The severity. - */ - @java.lang.Override - public java.lang.String getSeverity() { - java.lang.Object ref = severity_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - severity_ = s; - return s; - } - } - /** - * - * - *
-   * The severity of this bulletin as it relates to GKE.
-   * 
- * - * string severity = 4; - * - * @return The bytes for severity. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSeverityBytes() { - java.lang.Object ref = severity_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - severity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BULLETIN_URI_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - private volatile java.lang.Object bulletinUri_ = ""; - /** - * - * - *
-   * The URI link to the bulletin on the website for more information.
-   * 
- * - * string bulletin_uri = 5; - * - * @return The bulletinUri. - */ - @java.lang.Override - public java.lang.String getBulletinUri() { - java.lang.Object ref = bulletinUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bulletinUri_ = s; - return s; - } - } - /** - * - * - *
-   * The URI link to the bulletin on the website for more information.
-   * 
- * - * string bulletin_uri = 5; - * - * @return The bytes for bulletinUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBulletinUriBytes() { - java.lang.Object ref = bulletinUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - bulletinUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BRIEF_DESCRIPTION_FIELD_NUMBER = 6; - - @SuppressWarnings("serial") - private volatile java.lang.Object briefDescription_ = ""; - /** - * - * - *
-   * A brief description of the bulletin. See the bulletin pointed to by the
-   * bulletin_uri field for an expanded description.
-   * 
- * - * string brief_description = 6; - * - * @return The briefDescription. - */ - @java.lang.Override - public java.lang.String getBriefDescription() { - java.lang.Object ref = briefDescription_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - briefDescription_ = s; - return s; - } - } - /** - * - * - *
-   * A brief description of the bulletin. See the bulletin pointed to by the
-   * bulletin_uri field for an expanded description.
-   * 
- * - * string brief_description = 6; - * - * @return The bytes for briefDescription. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBriefDescriptionBytes() { - java.lang.Object ref = briefDescription_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - briefDescription_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AFFECTED_SUPPORTED_MINORS_FIELD_NUMBER = 7; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList affectedSupportedMinors_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * The GKE minor versions affected by this vulnerability.
-   * 
- * - * repeated string affected_supported_minors = 7; - * - * @return A list containing the affectedSupportedMinors. - */ - public com.google.protobuf.ProtocolStringList getAffectedSupportedMinorsList() { - return affectedSupportedMinors_; - } - /** - * - * - *
-   * The GKE minor versions affected by this vulnerability.
-   * 
- * - * repeated string affected_supported_minors = 7; - * - * @return The count of affectedSupportedMinors. - */ - public int getAffectedSupportedMinorsCount() { - return affectedSupportedMinors_.size(); - } - /** - * - * - *
-   * The GKE minor versions affected by this vulnerability.
-   * 
- * - * repeated string affected_supported_minors = 7; - * - * @param index The index of the element to return. - * @return The affectedSupportedMinors at the given index. - */ - public java.lang.String getAffectedSupportedMinors(int index) { - return affectedSupportedMinors_.get(index); - } - /** - * - * - *
-   * The GKE minor versions affected by this vulnerability.
-   * 
- * - * repeated string affected_supported_minors = 7; - * - * @param index The index of the value to return. - * @return The bytes of the affectedSupportedMinors at the given index. - */ - public com.google.protobuf.ByteString getAffectedSupportedMinorsBytes(int index) { - return affectedSupportedMinors_.getByteString(index); - } - - public static final int PATCHED_VERSIONS_FIELD_NUMBER = 8; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList patchedVersions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * The GKE versions where this vulnerability is patched.
-   * 
- * - * repeated string patched_versions = 8; - * - * @return A list containing the patchedVersions. - */ - public com.google.protobuf.ProtocolStringList getPatchedVersionsList() { - return patchedVersions_; - } - /** - * - * - *
-   * The GKE versions where this vulnerability is patched.
-   * 
- * - * repeated string patched_versions = 8; - * - * @return The count of patchedVersions. - */ - public int getPatchedVersionsCount() { - return patchedVersions_.size(); - } - /** - * - * - *
-   * The GKE versions where this vulnerability is patched.
-   * 
- * - * repeated string patched_versions = 8; - * - * @param index The index of the element to return. - * @return The patchedVersions at the given index. - */ - public java.lang.String getPatchedVersions(int index) { - return patchedVersions_.get(index); - } - /** - * - * - *
-   * The GKE versions where this vulnerability is patched.
-   * 
- * - * repeated string patched_versions = 8; - * - * @param index The index of the value to return. - * @return The bytes of the patchedVersions at the given index. - */ - public com.google.protobuf.ByteString getPatchedVersionsBytes(int index) { - return patchedVersions_.getByteString(index); - } - - public static final int SUGGESTED_UPGRADE_TARGET_FIELD_NUMBER = 9; - - @SuppressWarnings("serial") - private volatile java.lang.Object suggestedUpgradeTarget_ = ""; - /** - * - * - *
-   * This represents a version selected from the patched_versions field that
-   * the cluster receiving this notification should most likely want to upgrade
-   * to based on its current version. Note that if this notification is being
-   * received by a given cluster, it means that this version is currently
-   * available as an upgrade target in that cluster's location.
-   * 
- * - * string suggested_upgrade_target = 9; - * - * @return The suggestedUpgradeTarget. - */ - @java.lang.Override - public java.lang.String getSuggestedUpgradeTarget() { - java.lang.Object ref = suggestedUpgradeTarget_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - suggestedUpgradeTarget_ = s; - return s; - } - } - /** - * - * - *
-   * This represents a version selected from the patched_versions field that
-   * the cluster receiving this notification should most likely want to upgrade
-   * to based on its current version. Note that if this notification is being
-   * received by a given cluster, it means that this version is currently
-   * available as an upgrade target in that cluster's location.
-   * 
- * - * string suggested_upgrade_target = 9; - * - * @return The bytes for suggestedUpgradeTarget. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSuggestedUpgradeTargetBytes() { - java.lang.Object ref = suggestedUpgradeTarget_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - suggestedUpgradeTarget_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MANUAL_STEPS_REQUIRED_FIELD_NUMBER = 10; - private boolean manualStepsRequired_ = false; - /** - * - * - *
-   * If this field is specified, it means there are manual steps that the user
-   * must take to make their clusters safe.
-   * 
- * - * bool manual_steps_required = 10; - * - * @return The manualStepsRequired. - */ - @java.lang.Override - public boolean getManualStepsRequired() { - return manualStepsRequired_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceTypeAffected_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceTypeAffected_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bulletinId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bulletinId_); - } - for (int i = 0; i < cveIds_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cveIds_.getRaw(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(severity_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, severity_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bulletinUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, bulletinUri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(briefDescription_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, briefDescription_); - } - for (int i = 0; i < affectedSupportedMinors_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 7, affectedSupportedMinors_.getRaw(i)); - } - for (int i = 0; i < patchedVersions_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, patchedVersions_.getRaw(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(suggestedUpgradeTarget_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, suggestedUpgradeTarget_); - } - if (manualStepsRequired_ != false) { - output.writeBool(10, manualStepsRequired_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceTypeAffected_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceTypeAffected_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bulletinId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, bulletinId_); - } - { - int dataSize = 0; - for (int i = 0; i < cveIds_.size(); i++) { - dataSize += computeStringSizeNoTag(cveIds_.getRaw(i)); - } - size += dataSize; - size += 1 * getCveIdsList().size(); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(severity_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, severity_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bulletinUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, bulletinUri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(briefDescription_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, briefDescription_); - } - { - int dataSize = 0; - for (int i = 0; i < affectedSupportedMinors_.size(); i++) { - dataSize += computeStringSizeNoTag(affectedSupportedMinors_.getRaw(i)); - } - size += dataSize; - size += 1 * getAffectedSupportedMinorsList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < patchedVersions_.size(); i++) { - dataSize += computeStringSizeNoTag(patchedVersions_.getRaw(i)); - } - size += dataSize; - size += 1 * getPatchedVersionsList().size(); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(suggestedUpgradeTarget_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, suggestedUpgradeTarget_); - } - if (manualStepsRequired_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, manualStepsRequired_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.SecurityBulletinEvent)) { - return super.equals(obj); - } - com.google.container.v1.SecurityBulletinEvent other = - (com.google.container.v1.SecurityBulletinEvent) obj; - - if (!getResourceTypeAffected().equals(other.getResourceTypeAffected())) return false; - if (!getBulletinId().equals(other.getBulletinId())) return false; - if (!getCveIdsList().equals(other.getCveIdsList())) return false; - if (!getSeverity().equals(other.getSeverity())) return false; - if (!getBulletinUri().equals(other.getBulletinUri())) return false; - if (!getBriefDescription().equals(other.getBriefDescription())) return false; - if (!getAffectedSupportedMinorsList().equals(other.getAffectedSupportedMinorsList())) - return false; - if (!getPatchedVersionsList().equals(other.getPatchedVersionsList())) return false; - if (!getSuggestedUpgradeTarget().equals(other.getSuggestedUpgradeTarget())) return false; - if (getManualStepsRequired() != other.getManualStepsRequired()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RESOURCE_TYPE_AFFECTED_FIELD_NUMBER; - hash = (53 * hash) + getResourceTypeAffected().hashCode(); - hash = (37 * hash) + BULLETIN_ID_FIELD_NUMBER; - hash = (53 * hash) + getBulletinId().hashCode(); - if (getCveIdsCount() > 0) { - hash = (37 * hash) + CVE_IDS_FIELD_NUMBER; - hash = (53 * hash) + getCveIdsList().hashCode(); - } - hash = (37 * hash) + SEVERITY_FIELD_NUMBER; - hash = (53 * hash) + getSeverity().hashCode(); - hash = (37 * hash) + BULLETIN_URI_FIELD_NUMBER; - hash = (53 * hash) + getBulletinUri().hashCode(); - hash = (37 * hash) + BRIEF_DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getBriefDescription().hashCode(); - if (getAffectedSupportedMinorsCount() > 0) { - hash = (37 * hash) + AFFECTED_SUPPORTED_MINORS_FIELD_NUMBER; - hash = (53 * hash) + getAffectedSupportedMinorsList().hashCode(); - } - if (getPatchedVersionsCount() > 0) { - hash = (37 * hash) + PATCHED_VERSIONS_FIELD_NUMBER; - hash = (53 * hash) + getPatchedVersionsList().hashCode(); - } - hash = (37 * hash) + SUGGESTED_UPGRADE_TARGET_FIELD_NUMBER; - hash = (53 * hash) + getSuggestedUpgradeTarget().hashCode(); - hash = (37 * hash) + MANUAL_STEPS_REQUIRED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getManualStepsRequired()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.SecurityBulletinEvent parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SecurityBulletinEvent parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SecurityBulletinEvent parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SecurityBulletinEvent parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SecurityBulletinEvent parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SecurityBulletinEvent parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SecurityBulletinEvent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.SecurityBulletinEvent parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.SecurityBulletinEvent parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.SecurityBulletinEvent parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.SecurityBulletinEvent parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.SecurityBulletinEvent parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.SecurityBulletinEvent prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * SecurityBulletinEvent is a notification sent to customers when a security
-   * bulletin has been posted that they are vulnerable to.
-   * 
- * - * Protobuf type {@code google.container.v1.SecurityBulletinEvent} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.SecurityBulletinEvent) - com.google.container.v1.SecurityBulletinEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SecurityBulletinEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SecurityBulletinEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SecurityBulletinEvent.class, - com.google.container.v1.SecurityBulletinEvent.Builder.class); - } - - // Construct using com.google.container.v1.SecurityBulletinEvent.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - resourceTypeAffected_ = ""; - bulletinId_ = ""; - cveIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - severity_ = ""; - bulletinUri_ = ""; - briefDescription_ = ""; - affectedSupportedMinors_ = com.google.protobuf.LazyStringArrayList.emptyList(); - patchedVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - suggestedUpgradeTarget_ = ""; - manualStepsRequired_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SecurityBulletinEvent_descriptor; - } - - @java.lang.Override - public com.google.container.v1.SecurityBulletinEvent getDefaultInstanceForType() { - return com.google.container.v1.SecurityBulletinEvent.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.SecurityBulletinEvent build() { - com.google.container.v1.SecurityBulletinEvent result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.SecurityBulletinEvent buildPartial() { - com.google.container.v1.SecurityBulletinEvent result = - new com.google.container.v1.SecurityBulletinEvent(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.SecurityBulletinEvent result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.resourceTypeAffected_ = resourceTypeAffected_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.bulletinId_ = bulletinId_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - cveIds_.makeImmutable(); - result.cveIds_ = cveIds_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.severity_ = severity_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.bulletinUri_ = bulletinUri_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.briefDescription_ = briefDescription_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - affectedSupportedMinors_.makeImmutable(); - result.affectedSupportedMinors_ = affectedSupportedMinors_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - patchedVersions_.makeImmutable(); - result.patchedVersions_ = patchedVersions_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.suggestedUpgradeTarget_ = suggestedUpgradeTarget_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.manualStepsRequired_ = manualStepsRequired_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.SecurityBulletinEvent) { - return mergeFrom((com.google.container.v1.SecurityBulletinEvent) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.SecurityBulletinEvent other) { - if (other == com.google.container.v1.SecurityBulletinEvent.getDefaultInstance()) return this; - if (!other.getResourceTypeAffected().isEmpty()) { - resourceTypeAffected_ = other.resourceTypeAffected_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getBulletinId().isEmpty()) { - bulletinId_ = other.bulletinId_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.cveIds_.isEmpty()) { - if (cveIds_.isEmpty()) { - cveIds_ = other.cveIds_; - bitField0_ |= 0x00000004; - } else { - ensureCveIdsIsMutable(); - cveIds_.addAll(other.cveIds_); - } - onChanged(); - } - if (!other.getSeverity().isEmpty()) { - severity_ = other.severity_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getBulletinUri().isEmpty()) { - bulletinUri_ = other.bulletinUri_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (!other.getBriefDescription().isEmpty()) { - briefDescription_ = other.briefDescription_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (!other.affectedSupportedMinors_.isEmpty()) { - if (affectedSupportedMinors_.isEmpty()) { - affectedSupportedMinors_ = other.affectedSupportedMinors_; - bitField0_ |= 0x00000040; - } else { - ensureAffectedSupportedMinorsIsMutable(); - affectedSupportedMinors_.addAll(other.affectedSupportedMinors_); - } - onChanged(); - } - if (!other.patchedVersions_.isEmpty()) { - if (patchedVersions_.isEmpty()) { - patchedVersions_ = other.patchedVersions_; - bitField0_ |= 0x00000080; - } else { - ensurePatchedVersionsIsMutable(); - patchedVersions_.addAll(other.patchedVersions_); - } - onChanged(); - } - if (!other.getSuggestedUpgradeTarget().isEmpty()) { - suggestedUpgradeTarget_ = other.suggestedUpgradeTarget_; - bitField0_ |= 0x00000100; - onChanged(); - } - if (other.getManualStepsRequired() != false) { - setManualStepsRequired(other.getManualStepsRequired()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - resourceTypeAffected_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - bulletinId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureCveIdsIsMutable(); - cveIds_.add(s); - break; - } // case 26 - case 34: - { - severity_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - bulletinUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - briefDescription_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureAffectedSupportedMinorsIsMutable(); - affectedSupportedMinors_.add(s); - break; - } // case 58 - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - ensurePatchedVersionsIsMutable(); - patchedVersions_.add(s); - break; - } // case 66 - case 74: - { - suggestedUpgradeTarget_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 74 - case 80: - { - manualStepsRequired_ = input.readBool(); - bitField0_ |= 0x00000200; - break; - } // case 80 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object resourceTypeAffected_ = ""; - /** - * - * - *
-     * The resource type (node/control plane) that has the vulnerability. Multiple
-     * notifications (1 notification per resource type) will be sent for a
-     * vulnerability that affects > 1 resource type.
-     * 
- * - * string resource_type_affected = 1; - * - * @return The resourceTypeAffected. - */ - public java.lang.String getResourceTypeAffected() { - java.lang.Object ref = resourceTypeAffected_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resourceTypeAffected_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The resource type (node/control plane) that has the vulnerability. Multiple
-     * notifications (1 notification per resource type) will be sent for a
-     * vulnerability that affects > 1 resource type.
-     * 
- * - * string resource_type_affected = 1; - * - * @return The bytes for resourceTypeAffected. - */ - public com.google.protobuf.ByteString getResourceTypeAffectedBytes() { - java.lang.Object ref = resourceTypeAffected_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - resourceTypeAffected_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The resource type (node/control plane) that has the vulnerability. Multiple
-     * notifications (1 notification per resource type) will be sent for a
-     * vulnerability that affects > 1 resource type.
-     * 
- * - * string resource_type_affected = 1; - * - * @param value The resourceTypeAffected to set. - * @return This builder for chaining. - */ - public Builder setResourceTypeAffected(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - resourceTypeAffected_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The resource type (node/control plane) that has the vulnerability. Multiple
-     * notifications (1 notification per resource type) will be sent for a
-     * vulnerability that affects > 1 resource type.
-     * 
- * - * string resource_type_affected = 1; - * - * @return This builder for chaining. - */ - public Builder clearResourceTypeAffected() { - resourceTypeAffected_ = getDefaultInstance().getResourceTypeAffected(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * The resource type (node/control plane) that has the vulnerability. Multiple
-     * notifications (1 notification per resource type) will be sent for a
-     * vulnerability that affects > 1 resource type.
-     * 
- * - * string resource_type_affected = 1; - * - * @param value The bytes for resourceTypeAffected to set. - * @return This builder for chaining. - */ - public Builder setResourceTypeAffectedBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - resourceTypeAffected_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object bulletinId_ = ""; - /** - * - * - *
-     * The ID of the bulletin corresponding to the vulnerability.
-     * 
- * - * string bulletin_id = 2; - * - * @return The bulletinId. - */ - public java.lang.String getBulletinId() { - java.lang.Object ref = bulletinId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bulletinId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The ID of the bulletin corresponding to the vulnerability.
-     * 
- * - * string bulletin_id = 2; - * - * @return The bytes for bulletinId. - */ - public com.google.protobuf.ByteString getBulletinIdBytes() { - java.lang.Object ref = bulletinId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - bulletinId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The ID of the bulletin corresponding to the vulnerability.
-     * 
- * - * string bulletin_id = 2; - * - * @param value The bulletinId to set. - * @return This builder for chaining. - */ - public Builder setBulletinId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bulletinId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * The ID of the bulletin corresponding to the vulnerability.
-     * 
- * - * string bulletin_id = 2; - * - * @return This builder for chaining. - */ - public Builder clearBulletinId() { - bulletinId_ = getDefaultInstance().getBulletinId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * The ID of the bulletin corresponding to the vulnerability.
-     * 
- * - * string bulletin_id = 2; - * - * @param value The bytes for bulletinId to set. - * @return This builder for chaining. - */ - public Builder setBulletinIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - bulletinId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList cveIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureCveIdsIsMutable() { - if (!cveIds_.isModifiable()) { - cveIds_ = new com.google.protobuf.LazyStringArrayList(cveIds_); - } - bitField0_ |= 0x00000004; - } - /** - * - * - *
-     * The CVEs associated with this bulletin.
-     * 
- * - * repeated string cve_ids = 3; - * - * @return A list containing the cveIds. - */ - public com.google.protobuf.ProtocolStringList getCveIdsList() { - cveIds_.makeImmutable(); - return cveIds_; - } - /** - * - * - *
-     * The CVEs associated with this bulletin.
-     * 
- * - * repeated string cve_ids = 3; - * - * @return The count of cveIds. - */ - public int getCveIdsCount() { - return cveIds_.size(); - } - /** - * - * - *
-     * The CVEs associated with this bulletin.
-     * 
- * - * repeated string cve_ids = 3; - * - * @param index The index of the element to return. - * @return The cveIds at the given index. - */ - public java.lang.String getCveIds(int index) { - return cveIds_.get(index); - } - /** - * - * - *
-     * The CVEs associated with this bulletin.
-     * 
- * - * repeated string cve_ids = 3; - * - * @param index The index of the value to return. - * @return The bytes of the cveIds at the given index. - */ - public com.google.protobuf.ByteString getCveIdsBytes(int index) { - return cveIds_.getByteString(index); - } - /** - * - * - *
-     * The CVEs associated with this bulletin.
-     * 
- * - * repeated string cve_ids = 3; - * - * @param index The index to set the value at. - * @param value The cveIds to set. - * @return This builder for chaining. - */ - public Builder setCveIds(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureCveIdsIsMutable(); - cveIds_.set(index, value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The CVEs associated with this bulletin.
-     * 
- * - * repeated string cve_ids = 3; - * - * @param value The cveIds to add. - * @return This builder for chaining. - */ - public Builder addCveIds(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureCveIdsIsMutable(); - cveIds_.add(value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The CVEs associated with this bulletin.
-     * 
- * - * repeated string cve_ids = 3; - * - * @param values The cveIds to add. - * @return This builder for chaining. - */ - public Builder addAllCveIds(java.lang.Iterable values) { - ensureCveIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cveIds_); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The CVEs associated with this bulletin.
-     * 
- * - * repeated string cve_ids = 3; - * - * @return This builder for chaining. - */ - public Builder clearCveIds() { - cveIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; - onChanged(); - return this; - } - /** - * - * - *
-     * The CVEs associated with this bulletin.
-     * 
- * - * repeated string cve_ids = 3; - * - * @param value The bytes of the cveIds to add. - * @return This builder for chaining. - */ - public Builder addCveIdsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureCveIdsIsMutable(); - cveIds_.add(value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object severity_ = ""; - /** - * - * - *
-     * The severity of this bulletin as it relates to GKE.
-     * 
- * - * string severity = 4; - * - * @return The severity. - */ - public java.lang.String getSeverity() { - java.lang.Object ref = severity_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - severity_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The severity of this bulletin as it relates to GKE.
-     * 
- * - * string severity = 4; - * - * @return The bytes for severity. - */ - public com.google.protobuf.ByteString getSeverityBytes() { - java.lang.Object ref = severity_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - severity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The severity of this bulletin as it relates to GKE.
-     * 
- * - * string severity = 4; - * - * @param value The severity to set. - * @return This builder for chaining. - */ - public Builder setSeverity(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - severity_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * The severity of this bulletin as it relates to GKE.
-     * 
- * - * string severity = 4; - * - * @return This builder for chaining. - */ - public Builder clearSeverity() { - severity_ = getDefaultInstance().getSeverity(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * The severity of this bulletin as it relates to GKE.
-     * 
- * - * string severity = 4; - * - * @param value The bytes for severity to set. - * @return This builder for chaining. - */ - public Builder setSeverityBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - severity_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private java.lang.Object bulletinUri_ = ""; - /** - * - * - *
-     * The URI link to the bulletin on the website for more information.
-     * 
- * - * string bulletin_uri = 5; - * - * @return The bulletinUri. - */ - public java.lang.String getBulletinUri() { - java.lang.Object ref = bulletinUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bulletinUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The URI link to the bulletin on the website for more information.
-     * 
- * - * string bulletin_uri = 5; - * - * @return The bytes for bulletinUri. - */ - public com.google.protobuf.ByteString getBulletinUriBytes() { - java.lang.Object ref = bulletinUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - bulletinUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The URI link to the bulletin on the website for more information.
-     * 
- * - * string bulletin_uri = 5; - * - * @param value The bulletinUri to set. - * @return This builder for chaining. - */ - public Builder setBulletinUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bulletinUri_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * The URI link to the bulletin on the website for more information.
-     * 
- * - * string bulletin_uri = 5; - * - * @return This builder for chaining. - */ - public Builder clearBulletinUri() { - bulletinUri_ = getDefaultInstance().getBulletinUri(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * - * - *
-     * The URI link to the bulletin on the website for more information.
-     * 
- * - * string bulletin_uri = 5; - * - * @param value The bytes for bulletinUri to set. - * @return This builder for chaining. - */ - public Builder setBulletinUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - bulletinUri_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private java.lang.Object briefDescription_ = ""; - /** - * - * - *
-     * A brief description of the bulletin. See the bulletin pointed to by the
-     * bulletin_uri field for an expanded description.
-     * 
- * - * string brief_description = 6; - * - * @return The briefDescription. - */ - public java.lang.String getBriefDescription() { - java.lang.Object ref = briefDescription_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - briefDescription_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A brief description of the bulletin. See the bulletin pointed to by the
-     * bulletin_uri field for an expanded description.
-     * 
- * - * string brief_description = 6; - * - * @return The bytes for briefDescription. - */ - public com.google.protobuf.ByteString getBriefDescriptionBytes() { - java.lang.Object ref = briefDescription_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - briefDescription_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A brief description of the bulletin. See the bulletin pointed to by the
-     * bulletin_uri field for an expanded description.
-     * 
- * - * string brief_description = 6; - * - * @param value The briefDescription to set. - * @return This builder for chaining. - */ - public Builder setBriefDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - briefDescription_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * A brief description of the bulletin. See the bulletin pointed to by the
-     * bulletin_uri field for an expanded description.
-     * 
- * - * string brief_description = 6; - * - * @return This builder for chaining. - */ - public Builder clearBriefDescription() { - briefDescription_ = getDefaultInstance().getBriefDescription(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - /** - * - * - *
-     * A brief description of the bulletin. See the bulletin pointed to by the
-     * bulletin_uri field for an expanded description.
-     * 
- * - * string brief_description = 6; - * - * @param value The bytes for briefDescription to set. - * @return This builder for chaining. - */ - public Builder setBriefDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - briefDescription_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList affectedSupportedMinors_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureAffectedSupportedMinorsIsMutable() { - if (!affectedSupportedMinors_.isModifiable()) { - affectedSupportedMinors_ = - new com.google.protobuf.LazyStringArrayList(affectedSupportedMinors_); - } - bitField0_ |= 0x00000040; - } - /** - * - * - *
-     * The GKE minor versions affected by this vulnerability.
-     * 
- * - * repeated string affected_supported_minors = 7; - * - * @return A list containing the affectedSupportedMinors. - */ - public com.google.protobuf.ProtocolStringList getAffectedSupportedMinorsList() { - affectedSupportedMinors_.makeImmutable(); - return affectedSupportedMinors_; - } - /** - * - * - *
-     * The GKE minor versions affected by this vulnerability.
-     * 
- * - * repeated string affected_supported_minors = 7; - * - * @return The count of affectedSupportedMinors. - */ - public int getAffectedSupportedMinorsCount() { - return affectedSupportedMinors_.size(); - } - /** - * - * - *
-     * The GKE minor versions affected by this vulnerability.
-     * 
- * - * repeated string affected_supported_minors = 7; - * - * @param index The index of the element to return. - * @return The affectedSupportedMinors at the given index. - */ - public java.lang.String getAffectedSupportedMinors(int index) { - return affectedSupportedMinors_.get(index); - } - /** - * - * - *
-     * The GKE minor versions affected by this vulnerability.
-     * 
- * - * repeated string affected_supported_minors = 7; - * - * @param index The index of the value to return. - * @return The bytes of the affectedSupportedMinors at the given index. - */ - public com.google.protobuf.ByteString getAffectedSupportedMinorsBytes(int index) { - return affectedSupportedMinors_.getByteString(index); - } - /** - * - * - *
-     * The GKE minor versions affected by this vulnerability.
-     * 
- * - * repeated string affected_supported_minors = 7; - * - * @param index The index to set the value at. - * @param value The affectedSupportedMinors to set. - * @return This builder for chaining. - */ - public Builder setAffectedSupportedMinors(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAffectedSupportedMinorsIsMutable(); - affectedSupportedMinors_.set(index, value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-     * The GKE minor versions affected by this vulnerability.
-     * 
- * - * repeated string affected_supported_minors = 7; - * - * @param value The affectedSupportedMinors to add. - * @return This builder for chaining. - */ - public Builder addAffectedSupportedMinors(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAffectedSupportedMinorsIsMutable(); - affectedSupportedMinors_.add(value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-     * The GKE minor versions affected by this vulnerability.
-     * 
- * - * repeated string affected_supported_minors = 7; - * - * @param values The affectedSupportedMinors to add. - * @return This builder for chaining. - */ - public Builder addAllAffectedSupportedMinors(java.lang.Iterable values) { - ensureAffectedSupportedMinorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, affectedSupportedMinors_); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-     * The GKE minor versions affected by this vulnerability.
-     * 
- * - * repeated string affected_supported_minors = 7; - * - * @return This builder for chaining. - */ - public Builder clearAffectedSupportedMinors() { - affectedSupportedMinors_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - ; - onChanged(); - return this; - } - /** - * - * - *
-     * The GKE minor versions affected by this vulnerability.
-     * 
- * - * repeated string affected_supported_minors = 7; - * - * @param value The bytes of the affectedSupportedMinors to add. - * @return This builder for chaining. - */ - public Builder addAffectedSupportedMinorsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureAffectedSupportedMinorsIsMutable(); - affectedSupportedMinors_.add(value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList patchedVersions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensurePatchedVersionsIsMutable() { - if (!patchedVersions_.isModifiable()) { - patchedVersions_ = new com.google.protobuf.LazyStringArrayList(patchedVersions_); - } - bitField0_ |= 0x00000080; - } - /** - * - * - *
-     * The GKE versions where this vulnerability is patched.
-     * 
- * - * repeated string patched_versions = 8; - * - * @return A list containing the patchedVersions. - */ - public com.google.protobuf.ProtocolStringList getPatchedVersionsList() { - patchedVersions_.makeImmutable(); - return patchedVersions_; - } - /** - * - * - *
-     * The GKE versions where this vulnerability is patched.
-     * 
- * - * repeated string patched_versions = 8; - * - * @return The count of patchedVersions. - */ - public int getPatchedVersionsCount() { - return patchedVersions_.size(); - } - /** - * - * - *
-     * The GKE versions where this vulnerability is patched.
-     * 
- * - * repeated string patched_versions = 8; - * - * @param index The index of the element to return. - * @return The patchedVersions at the given index. - */ - public java.lang.String getPatchedVersions(int index) { - return patchedVersions_.get(index); - } - /** - * - * - *
-     * The GKE versions where this vulnerability is patched.
-     * 
- * - * repeated string patched_versions = 8; - * - * @param index The index of the value to return. - * @return The bytes of the patchedVersions at the given index. - */ - public com.google.protobuf.ByteString getPatchedVersionsBytes(int index) { - return patchedVersions_.getByteString(index); - } - /** - * - * - *
-     * The GKE versions where this vulnerability is patched.
-     * 
- * - * repeated string patched_versions = 8; - * - * @param index The index to set the value at. - * @param value The patchedVersions to set. - * @return This builder for chaining. - */ - public Builder setPatchedVersions(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePatchedVersionsIsMutable(); - patchedVersions_.set(index, value); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * The GKE versions where this vulnerability is patched.
-     * 
- * - * repeated string patched_versions = 8; - * - * @param value The patchedVersions to add. - * @return This builder for chaining. - */ - public Builder addPatchedVersions(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePatchedVersionsIsMutable(); - patchedVersions_.add(value); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * The GKE versions where this vulnerability is patched.
-     * 
- * - * repeated string patched_versions = 8; - * - * @param values The patchedVersions to add. - * @return This builder for chaining. - */ - public Builder addAllPatchedVersions(java.lang.Iterable values) { - ensurePatchedVersionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, patchedVersions_); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * The GKE versions where this vulnerability is patched.
-     * 
- * - * repeated string patched_versions = 8; - * - * @return This builder for chaining. - */ - public Builder clearPatchedVersions() { - patchedVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - ; - onChanged(); - return this; - } - /** - * - * - *
-     * The GKE versions where this vulnerability is patched.
-     * 
- * - * repeated string patched_versions = 8; - * - * @param value The bytes of the patchedVersions to add. - * @return This builder for chaining. - */ - public Builder addPatchedVersionsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensurePatchedVersionsIsMutable(); - patchedVersions_.add(value); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - - private java.lang.Object suggestedUpgradeTarget_ = ""; - /** - * - * - *
-     * This represents a version selected from the patched_versions field that
-     * the cluster receiving this notification should most likely want to upgrade
-     * to based on its current version. Note that if this notification is being
-     * received by a given cluster, it means that this version is currently
-     * available as an upgrade target in that cluster's location.
-     * 
- * - * string suggested_upgrade_target = 9; - * - * @return The suggestedUpgradeTarget. - */ - public java.lang.String getSuggestedUpgradeTarget() { - java.lang.Object ref = suggestedUpgradeTarget_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - suggestedUpgradeTarget_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * This represents a version selected from the patched_versions field that
-     * the cluster receiving this notification should most likely want to upgrade
-     * to based on its current version. Note that if this notification is being
-     * received by a given cluster, it means that this version is currently
-     * available as an upgrade target in that cluster's location.
-     * 
- * - * string suggested_upgrade_target = 9; - * - * @return The bytes for suggestedUpgradeTarget. - */ - public com.google.protobuf.ByteString getSuggestedUpgradeTargetBytes() { - java.lang.Object ref = suggestedUpgradeTarget_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - suggestedUpgradeTarget_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * This represents a version selected from the patched_versions field that
-     * the cluster receiving this notification should most likely want to upgrade
-     * to based on its current version. Note that if this notification is being
-     * received by a given cluster, it means that this version is currently
-     * available as an upgrade target in that cluster's location.
-     * 
- * - * string suggested_upgrade_target = 9; - * - * @param value The suggestedUpgradeTarget to set. - * @return This builder for chaining. - */ - public Builder setSuggestedUpgradeTarget(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - suggestedUpgradeTarget_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * - * - *
-     * This represents a version selected from the patched_versions field that
-     * the cluster receiving this notification should most likely want to upgrade
-     * to based on its current version. Note that if this notification is being
-     * received by a given cluster, it means that this version is currently
-     * available as an upgrade target in that cluster's location.
-     * 
- * - * string suggested_upgrade_target = 9; - * - * @return This builder for chaining. - */ - public Builder clearSuggestedUpgradeTarget() { - suggestedUpgradeTarget_ = getDefaultInstance().getSuggestedUpgradeTarget(); - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); - return this; - } - /** - * - * - *
-     * This represents a version selected from the patched_versions field that
-     * the cluster receiving this notification should most likely want to upgrade
-     * to based on its current version. Note that if this notification is being
-     * received by a given cluster, it means that this version is currently
-     * available as an upgrade target in that cluster's location.
-     * 
- * - * string suggested_upgrade_target = 9; - * - * @param value The bytes for suggestedUpgradeTarget to set. - * @return This builder for chaining. - */ - public Builder setSuggestedUpgradeTargetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - suggestedUpgradeTarget_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - - private boolean manualStepsRequired_; - /** - * - * - *
-     * If this field is specified, it means there are manual steps that the user
-     * must take to make their clusters safe.
-     * 
- * - * bool manual_steps_required = 10; - * - * @return The manualStepsRequired. - */ - @java.lang.Override - public boolean getManualStepsRequired() { - return manualStepsRequired_; - } - /** - * - * - *
-     * If this field is specified, it means there are manual steps that the user
-     * must take to make their clusters safe.
-     * 
- * - * bool manual_steps_required = 10; - * - * @param value The manualStepsRequired to set. - * @return This builder for chaining. - */ - public Builder setManualStepsRequired(boolean value) { - - manualStepsRequired_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * - * - *
-     * If this field is specified, it means there are manual steps that the user
-     * must take to make their clusters safe.
-     * 
- * - * bool manual_steps_required = 10; - * - * @return This builder for chaining. - */ - public Builder clearManualStepsRequired() { - bitField0_ = (bitField0_ & ~0x00000200); - manualStepsRequired_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.SecurityBulletinEvent) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.SecurityBulletinEvent) - private static final com.google.container.v1.SecurityBulletinEvent DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.SecurityBulletinEvent(); - } - - public static com.google.container.v1.SecurityBulletinEvent getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecurityBulletinEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.SecurityBulletinEvent getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecurityBulletinEventOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecurityBulletinEventOrBuilder.java deleted file mode 100644 index 26ba33c087f9..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecurityBulletinEventOrBuilder.java +++ /dev/null @@ -1,357 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface SecurityBulletinEventOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.SecurityBulletinEvent) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The resource type (node/control plane) that has the vulnerability. Multiple
-   * notifications (1 notification per resource type) will be sent for a
-   * vulnerability that affects > 1 resource type.
-   * 
- * - * string resource_type_affected = 1; - * - * @return The resourceTypeAffected. - */ - java.lang.String getResourceTypeAffected(); - /** - * - * - *
-   * The resource type (node/control plane) that has the vulnerability. Multiple
-   * notifications (1 notification per resource type) will be sent for a
-   * vulnerability that affects > 1 resource type.
-   * 
- * - * string resource_type_affected = 1; - * - * @return The bytes for resourceTypeAffected. - */ - com.google.protobuf.ByteString getResourceTypeAffectedBytes(); - - /** - * - * - *
-   * The ID of the bulletin corresponding to the vulnerability.
-   * 
- * - * string bulletin_id = 2; - * - * @return The bulletinId. - */ - java.lang.String getBulletinId(); - /** - * - * - *
-   * The ID of the bulletin corresponding to the vulnerability.
-   * 
- * - * string bulletin_id = 2; - * - * @return The bytes for bulletinId. - */ - com.google.protobuf.ByteString getBulletinIdBytes(); - - /** - * - * - *
-   * The CVEs associated with this bulletin.
-   * 
- * - * repeated string cve_ids = 3; - * - * @return A list containing the cveIds. - */ - java.util.List getCveIdsList(); - /** - * - * - *
-   * The CVEs associated with this bulletin.
-   * 
- * - * repeated string cve_ids = 3; - * - * @return The count of cveIds. - */ - int getCveIdsCount(); - /** - * - * - *
-   * The CVEs associated with this bulletin.
-   * 
- * - * repeated string cve_ids = 3; - * - * @param index The index of the element to return. - * @return The cveIds at the given index. - */ - java.lang.String getCveIds(int index); - /** - * - * - *
-   * The CVEs associated with this bulletin.
-   * 
- * - * repeated string cve_ids = 3; - * - * @param index The index of the value to return. - * @return The bytes of the cveIds at the given index. - */ - com.google.protobuf.ByteString getCveIdsBytes(int index); - - /** - * - * - *
-   * The severity of this bulletin as it relates to GKE.
-   * 
- * - * string severity = 4; - * - * @return The severity. - */ - java.lang.String getSeverity(); - /** - * - * - *
-   * The severity of this bulletin as it relates to GKE.
-   * 
- * - * string severity = 4; - * - * @return The bytes for severity. - */ - com.google.protobuf.ByteString getSeverityBytes(); - - /** - * - * - *
-   * The URI link to the bulletin on the website for more information.
-   * 
- * - * string bulletin_uri = 5; - * - * @return The bulletinUri. - */ - java.lang.String getBulletinUri(); - /** - * - * - *
-   * The URI link to the bulletin on the website for more information.
-   * 
- * - * string bulletin_uri = 5; - * - * @return The bytes for bulletinUri. - */ - com.google.protobuf.ByteString getBulletinUriBytes(); - - /** - * - * - *
-   * A brief description of the bulletin. See the bulletin pointed to by the
-   * bulletin_uri field for an expanded description.
-   * 
- * - * string brief_description = 6; - * - * @return The briefDescription. - */ - java.lang.String getBriefDescription(); - /** - * - * - *
-   * A brief description of the bulletin. See the bulletin pointed to by the
-   * bulletin_uri field for an expanded description.
-   * 
- * - * string brief_description = 6; - * - * @return The bytes for briefDescription. - */ - com.google.protobuf.ByteString getBriefDescriptionBytes(); - - /** - * - * - *
-   * The GKE minor versions affected by this vulnerability.
-   * 
- * - * repeated string affected_supported_minors = 7; - * - * @return A list containing the affectedSupportedMinors. - */ - java.util.List getAffectedSupportedMinorsList(); - /** - * - * - *
-   * The GKE minor versions affected by this vulnerability.
-   * 
- * - * repeated string affected_supported_minors = 7; - * - * @return The count of affectedSupportedMinors. - */ - int getAffectedSupportedMinorsCount(); - /** - * - * - *
-   * The GKE minor versions affected by this vulnerability.
-   * 
- * - * repeated string affected_supported_minors = 7; - * - * @param index The index of the element to return. - * @return The affectedSupportedMinors at the given index. - */ - java.lang.String getAffectedSupportedMinors(int index); - /** - * - * - *
-   * The GKE minor versions affected by this vulnerability.
-   * 
- * - * repeated string affected_supported_minors = 7; - * - * @param index The index of the value to return. - * @return The bytes of the affectedSupportedMinors at the given index. - */ - com.google.protobuf.ByteString getAffectedSupportedMinorsBytes(int index); - - /** - * - * - *
-   * The GKE versions where this vulnerability is patched.
-   * 
- * - * repeated string patched_versions = 8; - * - * @return A list containing the patchedVersions. - */ - java.util.List getPatchedVersionsList(); - /** - * - * - *
-   * The GKE versions where this vulnerability is patched.
-   * 
- * - * repeated string patched_versions = 8; - * - * @return The count of patchedVersions. - */ - int getPatchedVersionsCount(); - /** - * - * - *
-   * The GKE versions where this vulnerability is patched.
-   * 
- * - * repeated string patched_versions = 8; - * - * @param index The index of the element to return. - * @return The patchedVersions at the given index. - */ - java.lang.String getPatchedVersions(int index); - /** - * - * - *
-   * The GKE versions where this vulnerability is patched.
-   * 
- * - * repeated string patched_versions = 8; - * - * @param index The index of the value to return. - * @return The bytes of the patchedVersions at the given index. - */ - com.google.protobuf.ByteString getPatchedVersionsBytes(int index); - - /** - * - * - *
-   * This represents a version selected from the patched_versions field that
-   * the cluster receiving this notification should most likely want to upgrade
-   * to based on its current version. Note that if this notification is being
-   * received by a given cluster, it means that this version is currently
-   * available as an upgrade target in that cluster's location.
-   * 
- * - * string suggested_upgrade_target = 9; - * - * @return The suggestedUpgradeTarget. - */ - java.lang.String getSuggestedUpgradeTarget(); - /** - * - * - *
-   * This represents a version selected from the patched_versions field that
-   * the cluster receiving this notification should most likely want to upgrade
-   * to based on its current version. Note that if this notification is being
-   * received by a given cluster, it means that this version is currently
-   * available as an upgrade target in that cluster's location.
-   * 
- * - * string suggested_upgrade_target = 9; - * - * @return The bytes for suggestedUpgradeTarget. - */ - com.google.protobuf.ByteString getSuggestedUpgradeTargetBytes(); - - /** - * - * - *
-   * If this field is specified, it means there are manual steps that the user
-   * must take to make their clusters safe.
-   * 
- * - * bool manual_steps_required = 10; - * - * @return The manualStepsRequired. - */ - boolean getManualStepsRequired(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecurityPostureConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecurityPostureConfig.java deleted file mode 100644 index 7da19ecfd926..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecurityPostureConfig.java +++ /dev/null @@ -1,1185 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * SecurityPostureConfig defines the flags needed to enable/disable features for
- * the Security Posture API.
- * 
- * - * Protobuf type {@code google.container.v1.SecurityPostureConfig} - */ -public final class SecurityPostureConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.SecurityPostureConfig) - SecurityPostureConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use SecurityPostureConfig.newBuilder() to construct. - private SecurityPostureConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SecurityPostureConfig() { - mode_ = 0; - vulnerabilityMode_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SecurityPostureConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SecurityPostureConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SecurityPostureConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SecurityPostureConfig.class, - com.google.container.v1.SecurityPostureConfig.Builder.class); - } - - /** - * - * - *
-   * Mode defines enablement mode for GKE Security posture features.
-   * 
- * - * Protobuf enum {@code google.container.v1.SecurityPostureConfig.Mode} - */ - public enum Mode implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value not specified.
-     * 
- * - * MODE_UNSPECIFIED = 0; - */ - MODE_UNSPECIFIED(0), - /** - * - * - *
-     * Disables Security Posture features on the cluster.
-     * 
- * - * DISABLED = 1; - */ - DISABLED(1), - /** - * - * - *
-     * Applies Security Posture features on the cluster.
-     * 
- * - * BASIC = 2; - */ - BASIC(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value not specified.
-     * 
- * - * MODE_UNSPECIFIED = 0; - */ - public static final int MODE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Disables Security Posture features on the cluster.
-     * 
- * - * DISABLED = 1; - */ - public static final int DISABLED_VALUE = 1; - /** - * - * - *
-     * Applies Security Posture features on the cluster.
-     * 
- * - * BASIC = 2; - */ - public static final int BASIC_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 DISABLED; - case 2: - return BASIC; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Mode findValueByNumber(int number) { - return Mode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.SecurityPostureConfig.getDescriptor().getEnumTypes().get(0); - } - - private static final Mode[] VALUES = values(); - - public static Mode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Mode(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.SecurityPostureConfig.Mode) - } - - /** - * - * - *
-   * VulnerabilityMode defines enablement mode for vulnerability scanning.
-   * 
- * - * Protobuf enum {@code google.container.v1.SecurityPostureConfig.VulnerabilityMode} - */ - public enum VulnerabilityMode implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value not specified.
-     * 
- * - * VULNERABILITY_MODE_UNSPECIFIED = 0; - */ - VULNERABILITY_MODE_UNSPECIFIED(0), - /** - * - * - *
-     * Disables vulnerability scanning on the cluster.
-     * 
- * - * VULNERABILITY_DISABLED = 1; - */ - VULNERABILITY_DISABLED(1), - /** - * - * - *
-     * Applies basic vulnerability scanning on the cluster.
-     * 
- * - * VULNERABILITY_BASIC = 2; - */ - VULNERABILITY_BASIC(2), - /** - * - * - *
-     * Applies the Security Posture's vulnerability on cluster Enterprise level
-     * features.
-     * 
- * - * VULNERABILITY_ENTERPRISE = 3; - */ - VULNERABILITY_ENTERPRISE(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value not specified.
-     * 
- * - * VULNERABILITY_MODE_UNSPECIFIED = 0; - */ - public static final int VULNERABILITY_MODE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Disables vulnerability scanning on the cluster.
-     * 
- * - * VULNERABILITY_DISABLED = 1; - */ - public static final int VULNERABILITY_DISABLED_VALUE = 1; - /** - * - * - *
-     * Applies basic vulnerability scanning on the cluster.
-     * 
- * - * VULNERABILITY_BASIC = 2; - */ - public static final int VULNERABILITY_BASIC_VALUE = 2; - /** - * - * - *
-     * Applies the Security Posture's vulnerability on cluster Enterprise level
-     * features.
-     * 
- * - * VULNERABILITY_ENTERPRISE = 3; - */ - public static final int VULNERABILITY_ENTERPRISE_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 VulnerabilityMode 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 VulnerabilityMode forNumber(int value) { - switch (value) { - case 0: - return VULNERABILITY_MODE_UNSPECIFIED; - case 1: - return VULNERABILITY_DISABLED; - case 2: - return VULNERABILITY_BASIC; - case 3: - return VULNERABILITY_ENTERPRISE; - 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 VulnerabilityMode findValueByNumber(int number) { - return VulnerabilityMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.SecurityPostureConfig.getDescriptor().getEnumTypes().get(1); - } - - private static final VulnerabilityMode[] VALUES = values(); - - public static VulnerabilityMode 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 VulnerabilityMode(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.SecurityPostureConfig.VulnerabilityMode) - } - - private int bitField0_; - public static final int MODE_FIELD_NUMBER = 1; - private int mode_ = 0; - /** - * - * - *
-   * Sets which mode to use for Security Posture features.
-   * 
- * - * optional .google.container.v1.SecurityPostureConfig.Mode mode = 1; - * - * @return Whether the mode field is set. - */ - @java.lang.Override - public boolean hasMode() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Sets which mode to use for Security Posture features.
-   * 
- * - * optional .google.container.v1.SecurityPostureConfig.Mode mode = 1; - * - * @return The enum numeric value on the wire for mode. - */ - @java.lang.Override - public int getModeValue() { - return mode_; - } - /** - * - * - *
-   * Sets which mode to use for Security Posture features.
-   * 
- * - * optional .google.container.v1.SecurityPostureConfig.Mode mode = 1; - * - * @return The mode. - */ - @java.lang.Override - public com.google.container.v1.SecurityPostureConfig.Mode getMode() { - com.google.container.v1.SecurityPostureConfig.Mode result = - com.google.container.v1.SecurityPostureConfig.Mode.forNumber(mode_); - return result == null - ? com.google.container.v1.SecurityPostureConfig.Mode.UNRECOGNIZED - : result; - } - - public static final int VULNERABILITY_MODE_FIELD_NUMBER = 2; - private int vulnerabilityMode_ = 0; - /** - * - * - *
-   * Sets which mode to use for vulnerability scanning.
-   * 
- * - * - * optional .google.container.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; - * - * - * @return Whether the vulnerabilityMode field is set. - */ - @java.lang.Override - public boolean hasVulnerabilityMode() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * Sets which mode to use for vulnerability scanning.
-   * 
- * - * - * optional .google.container.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; - * - * - * @return The enum numeric value on the wire for vulnerabilityMode. - */ - @java.lang.Override - public int getVulnerabilityModeValue() { - return vulnerabilityMode_; - } - /** - * - * - *
-   * Sets which mode to use for vulnerability scanning.
-   * 
- * - * - * optional .google.container.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; - * - * - * @return The vulnerabilityMode. - */ - @java.lang.Override - public com.google.container.v1.SecurityPostureConfig.VulnerabilityMode getVulnerabilityMode() { - com.google.container.v1.SecurityPostureConfig.VulnerabilityMode result = - com.google.container.v1.SecurityPostureConfig.VulnerabilityMode.forNumber( - vulnerabilityMode_); - return result == null - ? com.google.container.v1.SecurityPostureConfig.VulnerabilityMode.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 (((bitField0_ & 0x00000001) != 0)) { - output.writeEnum(1, mode_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeEnum(2, vulnerabilityMode_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, mode_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, vulnerabilityMode_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.SecurityPostureConfig)) { - return super.equals(obj); - } - com.google.container.v1.SecurityPostureConfig other = - (com.google.container.v1.SecurityPostureConfig) obj; - - if (hasMode() != other.hasMode()) return false; - if (hasMode()) { - if (mode_ != other.mode_) return false; - } - if (hasVulnerabilityMode() != other.hasVulnerabilityMode()) return false; - if (hasVulnerabilityMode()) { - if (vulnerabilityMode_ != other.vulnerabilityMode_) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasMode()) { - hash = (37 * hash) + MODE_FIELD_NUMBER; - hash = (53 * hash) + mode_; - } - if (hasVulnerabilityMode()) { - hash = (37 * hash) + VULNERABILITY_MODE_FIELD_NUMBER; - hash = (53 * hash) + vulnerabilityMode_; - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.SecurityPostureConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SecurityPostureConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SecurityPostureConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SecurityPostureConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SecurityPostureConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SecurityPostureConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SecurityPostureConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.SecurityPostureConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.SecurityPostureConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.SecurityPostureConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.SecurityPostureConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.SecurityPostureConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.SecurityPostureConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * SecurityPostureConfig defines the flags needed to enable/disable features for
-   * the Security Posture API.
-   * 
- * - * Protobuf type {@code google.container.v1.SecurityPostureConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.SecurityPostureConfig) - com.google.container.v1.SecurityPostureConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SecurityPostureConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SecurityPostureConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SecurityPostureConfig.class, - com.google.container.v1.SecurityPostureConfig.Builder.class); - } - - // Construct using com.google.container.v1.SecurityPostureConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - mode_ = 0; - vulnerabilityMode_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SecurityPostureConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.SecurityPostureConfig getDefaultInstanceForType() { - return com.google.container.v1.SecurityPostureConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.SecurityPostureConfig build() { - com.google.container.v1.SecurityPostureConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.SecurityPostureConfig buildPartial() { - com.google.container.v1.SecurityPostureConfig result = - new com.google.container.v1.SecurityPostureConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.SecurityPostureConfig result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.mode_ = mode_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.vulnerabilityMode_ = vulnerabilityMode_; - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.SecurityPostureConfig) { - return mergeFrom((com.google.container.v1.SecurityPostureConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.SecurityPostureConfig other) { - if (other == com.google.container.v1.SecurityPostureConfig.getDefaultInstance()) return this; - if (other.hasMode()) { - setMode(other.getMode()); - } - if (other.hasVulnerabilityMode()) { - setVulnerabilityMode(other.getVulnerabilityMode()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - mode_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - vulnerabilityMode_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int mode_ = 0; - /** - * - * - *
-     * Sets which mode to use for Security Posture features.
-     * 
- * - * optional .google.container.v1.SecurityPostureConfig.Mode mode = 1; - * - * @return Whether the mode field is set. - */ - @java.lang.Override - public boolean hasMode() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Sets which mode to use for Security Posture features.
-     * 
- * - * optional .google.container.v1.SecurityPostureConfig.Mode mode = 1; - * - * @return The enum numeric value on the wire for mode. - */ - @java.lang.Override - public int getModeValue() { - return mode_; - } - /** - * - * - *
-     * Sets which mode to use for Security Posture features.
-     * 
- * - * optional .google.container.v1.SecurityPostureConfig.Mode mode = 1; - * - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Sets which mode to use for Security Posture features.
-     * 
- * - * optional .google.container.v1.SecurityPostureConfig.Mode mode = 1; - * - * @return The mode. - */ - @java.lang.Override - public com.google.container.v1.SecurityPostureConfig.Mode getMode() { - com.google.container.v1.SecurityPostureConfig.Mode result = - com.google.container.v1.SecurityPostureConfig.Mode.forNumber(mode_); - return result == null - ? com.google.container.v1.SecurityPostureConfig.Mode.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Sets which mode to use for Security Posture features.
-     * 
- * - * optional .google.container.v1.SecurityPostureConfig.Mode mode = 1; - * - * @param value The mode to set. - * @return This builder for chaining. - */ - public Builder setMode(com.google.container.v1.SecurityPostureConfig.Mode value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - mode_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Sets which mode to use for Security Posture features.
-     * 
- * - * optional .google.container.v1.SecurityPostureConfig.Mode mode = 1; - * - * @return This builder for chaining. - */ - public Builder clearMode() { - bitField0_ = (bitField0_ & ~0x00000001); - mode_ = 0; - onChanged(); - return this; - } - - private int vulnerabilityMode_ = 0; - /** - * - * - *
-     * Sets which mode to use for vulnerability scanning.
-     * 
- * - * - * optional .google.container.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; - * - * - * @return Whether the vulnerabilityMode field is set. - */ - @java.lang.Override - public boolean hasVulnerabilityMode() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * Sets which mode to use for vulnerability scanning.
-     * 
- * - * - * optional .google.container.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; - * - * - * @return The enum numeric value on the wire for vulnerabilityMode. - */ - @java.lang.Override - public int getVulnerabilityModeValue() { - return vulnerabilityMode_; - } - /** - * - * - *
-     * Sets which mode to use for vulnerability scanning.
-     * 
- * - * - * optional .google.container.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; - * - * - * @param value The enum numeric value on the wire for vulnerabilityMode to set. - * @return This builder for chaining. - */ - public Builder setVulnerabilityModeValue(int value) { - vulnerabilityMode_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Sets which mode to use for vulnerability scanning.
-     * 
- * - * - * optional .google.container.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; - * - * - * @return The vulnerabilityMode. - */ - @java.lang.Override - public com.google.container.v1.SecurityPostureConfig.VulnerabilityMode getVulnerabilityMode() { - com.google.container.v1.SecurityPostureConfig.VulnerabilityMode result = - com.google.container.v1.SecurityPostureConfig.VulnerabilityMode.forNumber( - vulnerabilityMode_); - return result == null - ? com.google.container.v1.SecurityPostureConfig.VulnerabilityMode.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Sets which mode to use for vulnerability scanning.
-     * 
- * - * - * optional .google.container.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; - * - * - * @param value The vulnerabilityMode to set. - * @return This builder for chaining. - */ - public Builder setVulnerabilityMode( - com.google.container.v1.SecurityPostureConfig.VulnerabilityMode value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - vulnerabilityMode_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Sets which mode to use for vulnerability scanning.
-     * 
- * - * - * optional .google.container.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; - * - * - * @return This builder for chaining. - */ - public Builder clearVulnerabilityMode() { - bitField0_ = (bitField0_ & ~0x00000002); - vulnerabilityMode_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.SecurityPostureConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.SecurityPostureConfig) - private static final com.google.container.v1.SecurityPostureConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.SecurityPostureConfig(); - } - - public static com.google.container.v1.SecurityPostureConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecurityPostureConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.SecurityPostureConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecurityPostureConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecurityPostureConfigOrBuilder.java deleted file mode 100644 index 5ce1ef987616..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecurityPostureConfigOrBuilder.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface SecurityPostureConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.SecurityPostureConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Sets which mode to use for Security Posture features.
-   * 
- * - * optional .google.container.v1.SecurityPostureConfig.Mode mode = 1; - * - * @return Whether the mode field is set. - */ - boolean hasMode(); - /** - * - * - *
-   * Sets which mode to use for Security Posture features.
-   * 
- * - * optional .google.container.v1.SecurityPostureConfig.Mode mode = 1; - * - * @return The enum numeric value on the wire for mode. - */ - int getModeValue(); - /** - * - * - *
-   * Sets which mode to use for Security Posture features.
-   * 
- * - * optional .google.container.v1.SecurityPostureConfig.Mode mode = 1; - * - * @return The mode. - */ - com.google.container.v1.SecurityPostureConfig.Mode getMode(); - - /** - * - * - *
-   * Sets which mode to use for vulnerability scanning.
-   * 
- * - * - * optional .google.container.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; - * - * - * @return Whether the vulnerabilityMode field is set. - */ - boolean hasVulnerabilityMode(); - /** - * - * - *
-   * Sets which mode to use for vulnerability scanning.
-   * 
- * - * - * optional .google.container.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; - * - * - * @return The enum numeric value on the wire for vulnerabilityMode. - */ - int getVulnerabilityModeValue(); - /** - * - * - *
-   * Sets which mode to use for vulnerability scanning.
-   * 
- * - * - * optional .google.container.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; - * - * - * @return The vulnerabilityMode. - */ - com.google.container.v1.SecurityPostureConfig.VulnerabilityMode getVulnerabilityMode(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfig.java deleted file mode 100644 index c73a7c436d37..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfig.java +++ /dev/null @@ -1,3291 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Kubernetes Engine service configuration.
- * 
- * - * Protobuf type {@code google.container.v1.ServerConfig} - */ -public final class ServerConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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.emptyList(); - defaultImageType_ = ""; - validImageTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - validMasterVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - channels_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ServerConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ServerConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ServerConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ServerConfig.class, - com.google.container.v1.ServerConfig.Builder.class); - } - - public interface ReleaseChannelConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ServerConfig.ReleaseChannelConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * The release channel this configuration applies to.
-     * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * - * @return The enum numeric value on the wire for channel. - */ - int getChannelValue(); - /** - * - * - *
-     * The release channel this configuration applies to.
-     * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * - * @return The channel. - */ - com.google.container.v1.ReleaseChannel.Channel getChannel(); - - /** - * - * - *
-     * The default version for newly created clusters on the channel.
-     * 
- * - * string default_version = 2; - * - * @return The defaultVersion. - */ - java.lang.String getDefaultVersion(); - /** - * - * - *
-     * The default version for newly created clusters on the channel.
-     * 
- * - * string default_version = 2; - * - * @return The bytes for defaultVersion. - */ - com.google.protobuf.ByteString getDefaultVersionBytes(); - - /** - * - * - *
-     * List of valid versions for the channel.
-     * 
- * - * repeated string valid_versions = 4; - * - * @return A list containing the validVersions. - */ - java.util.List getValidVersionsList(); - /** - * - * - *
-     * List of valid versions for the channel.
-     * 
- * - * repeated string valid_versions = 4; - * - * @return The count of validVersions. - */ - int getValidVersionsCount(); - /** - * - * - *
-     * List of valid versions for the channel.
-     * 
- * - * repeated string valid_versions = 4; - * - * @param index The index of the element to return. - * @return The validVersions at the given index. - */ - java.lang.String getValidVersions(int index); - /** - * - * - *
-     * List of valid versions for the channel.
-     * 
- * - * repeated string valid_versions = 4; - * - * @param index The index of the value to return. - * @return The bytes of the validVersions at the given index. - */ - com.google.protobuf.ByteString getValidVersionsBytes(int index); - } - /** - * - * - *
-   * ReleaseChannelConfig exposes configuration for a release channel.
-   * 
- * - * Protobuf type {@code google.container.v1.ServerConfig.ReleaseChannelConfig} - */ - public static final class ReleaseChannelConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.ServerConfig.ReleaseChannelConfig) - ReleaseChannelConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReleaseChannelConfig.newBuilder() to construct. - private ReleaseChannelConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ReleaseChannelConfig() { - channel_ = 0; - defaultVersion_ = ""; - validVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ReleaseChannelConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ServerConfig_ReleaseChannelConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ServerConfig_ReleaseChannelConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ServerConfig.ReleaseChannelConfig.class, - com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder.class); - } - - public static final int CHANNEL_FIELD_NUMBER = 1; - private int channel_ = 0; - /** - * - * - *
-     * The release channel this configuration applies to.
-     * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * - * @return The enum numeric value on the wire for channel. - */ - @java.lang.Override - public int getChannelValue() { - return channel_; - } - /** - * - * - *
-     * The release channel this configuration applies to.
-     * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * - * @return The channel. - */ - @java.lang.Override - public com.google.container.v1.ReleaseChannel.Channel getChannel() { - com.google.container.v1.ReleaseChannel.Channel result = - com.google.container.v1.ReleaseChannel.Channel.forNumber(channel_); - return result == null ? com.google.container.v1.ReleaseChannel.Channel.UNRECOGNIZED : result; - } - - public static final int DEFAULT_VERSION_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object defaultVersion_ = ""; - /** - * - * - *
-     * The default version for newly created clusters on the channel.
-     * 
- * - * string default_version = 2; - * - * @return The defaultVersion. - */ - @java.lang.Override - public java.lang.String getDefaultVersion() { - java.lang.Object ref = defaultVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultVersion_ = s; - return s; - } - } - /** - * - * - *
-     * The default version for newly created clusters on the channel.
-     * 
- * - * string default_version = 2; - * - * @return The bytes for defaultVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDefaultVersionBytes() { - java.lang.Object ref = defaultVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - defaultVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALID_VERSIONS_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList validVersions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-     * List of valid versions for the channel.
-     * 
- * - * repeated string valid_versions = 4; - * - * @return A list containing the validVersions. - */ - public com.google.protobuf.ProtocolStringList getValidVersionsList() { - return validVersions_; - } - /** - * - * - *
-     * List of valid versions for the channel.
-     * 
- * - * repeated string valid_versions = 4; - * - * @return The count of validVersions. - */ - public int getValidVersionsCount() { - return validVersions_.size(); - } - /** - * - * - *
-     * List of valid versions for the channel.
-     * 
- * - * repeated string valid_versions = 4; - * - * @param index The index of the element to return. - * @return The validVersions at the given index. - */ - public java.lang.String getValidVersions(int index) { - return validVersions_.get(index); - } - /** - * - * - *
-     * List of valid versions for the channel.
-     * 
- * - * repeated string valid_versions = 4; - * - * @param index The index of the value to return. - * @return The bytes of the validVersions at the given index. - */ - public com.google.protobuf.ByteString getValidVersionsBytes(int index) { - return validVersions_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (channel_ != com.google.container.v1.ReleaseChannel.Channel.UNSPECIFIED.getNumber()) { - output.writeEnum(1, channel_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, defaultVersion_); - } - for (int i = 0; i < validVersions_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, validVersions_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (channel_ != com.google.container.v1.ReleaseChannel.Channel.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, channel_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, defaultVersion_); - } - { - int dataSize = 0; - for (int i = 0; i < validVersions_.size(); i++) { - dataSize += computeStringSizeNoTag(validVersions_.getRaw(i)); - } - size += dataSize; - size += 1 * getValidVersionsList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.ServerConfig.ReleaseChannelConfig)) { - return super.equals(obj); - } - com.google.container.v1.ServerConfig.ReleaseChannelConfig other = - (com.google.container.v1.ServerConfig.ReleaseChannelConfig) obj; - - if (channel_ != other.channel_) return false; - if (!getDefaultVersion().equals(other.getDefaultVersion())) return false; - if (!getValidVersionsList().equals(other.getValidVersionsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CHANNEL_FIELD_NUMBER; - hash = (53 * hash) + channel_; - hash = (37 * hash) + DEFAULT_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getDefaultVersion().hashCode(); - if (getValidVersionsCount() > 0) { - hash = (37 * hash) + VALID_VERSIONS_FIELD_NUMBER; - hash = (53 * hash) + getValidVersionsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.container.v1.ServerConfig.ReleaseChannelConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * ReleaseChannelConfig exposes configuration for a release channel.
-     * 
- * - * Protobuf type {@code google.container.v1.ServerConfig.ReleaseChannelConfig} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ServerConfig.ReleaseChannelConfig) - com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ServerConfig_ReleaseChannelConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ServerConfig_ReleaseChannelConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ServerConfig.ReleaseChannelConfig.class, - com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder.class); - } - - // Construct using com.google.container.v1.ServerConfig.ReleaseChannelConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - channel_ = 0; - defaultVersion_ = ""; - validVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ServerConfig_ReleaseChannelConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ServerConfig.ReleaseChannelConfig getDefaultInstanceForType() { - return com.google.container.v1.ServerConfig.ReleaseChannelConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ServerConfig.ReleaseChannelConfig build() { - com.google.container.v1.ServerConfig.ReleaseChannelConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ServerConfig.ReleaseChannelConfig buildPartial() { - com.google.container.v1.ServerConfig.ReleaseChannelConfig result = - new com.google.container.v1.ServerConfig.ReleaseChannelConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.ServerConfig.ReleaseChannelConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.channel_ = channel_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.defaultVersion_ = defaultVersion_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - validVersions_.makeImmutable(); - result.validVersions_ = validVersions_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ServerConfig.ReleaseChannelConfig) { - return mergeFrom((com.google.container.v1.ServerConfig.ReleaseChannelConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ServerConfig.ReleaseChannelConfig other) { - if (other == com.google.container.v1.ServerConfig.ReleaseChannelConfig.getDefaultInstance()) - return this; - if (other.channel_ != 0) { - setChannelValue(other.getChannelValue()); - } - if (!other.getDefaultVersion().isEmpty()) { - defaultVersion_ = other.defaultVersion_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.validVersions_.isEmpty()) { - if (validVersions_.isEmpty()) { - validVersions_ = other.validVersions_; - bitField0_ |= 0x00000004; - } else { - ensureValidVersionsIsMutable(); - validVersions_.addAll(other.validVersions_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - channel_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - defaultVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureValidVersionsIsMutable(); - validVersions_.add(s); - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int channel_ = 0; - /** - * - * - *
-       * The release channel this configuration applies to.
-       * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * - * @return The enum numeric value on the wire for channel. - */ - @java.lang.Override - public int getChannelValue() { - return channel_; - } - /** - * - * - *
-       * The release channel this configuration applies to.
-       * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * - * @param value The enum numeric value on the wire for channel to set. - * @return This builder for chaining. - */ - public Builder setChannelValue(int value) { - channel_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * The release channel this configuration applies to.
-       * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * - * @return The channel. - */ - @java.lang.Override - public com.google.container.v1.ReleaseChannel.Channel getChannel() { - com.google.container.v1.ReleaseChannel.Channel result = - com.google.container.v1.ReleaseChannel.Channel.forNumber(channel_); - return result == null - ? com.google.container.v1.ReleaseChannel.Channel.UNRECOGNIZED - : result; - } - /** - * - * - *
-       * The release channel this configuration applies to.
-       * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * - * @param value The channel to set. - * @return This builder for chaining. - */ - public Builder setChannel(com.google.container.v1.ReleaseChannel.Channel value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - channel_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * The release channel this configuration applies to.
-       * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * - * @return This builder for chaining. - */ - public Builder clearChannel() { - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000002; - 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(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList validVersions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureValidVersionsIsMutable() { - if (!validVersions_.isModifiable()) { - validVersions_ = new com.google.protobuf.LazyStringArrayList(validVersions_); - } - bitField0_ |= 0x00000004; - } - /** - * - * - *
-       * List of valid versions for the channel.
-       * 
- * - * repeated string valid_versions = 4; - * - * @return A list containing the validVersions. - */ - public com.google.protobuf.ProtocolStringList getValidVersionsList() { - validVersions_.makeImmutable(); - 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); - } - /** - * - * - *
-       * 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); - bitField0_ |= 0x00000004; - 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); - bitField0_ |= 0x00000004; - 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_); - bitField0_ |= 0x00000004; - 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.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; - 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); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.ServerConfig.ReleaseChannelConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ServerConfig.ReleaseChannelConfig) - private static final com.google.container.v1.ServerConfig.ReleaseChannelConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ServerConfig.ReleaseChannelConfig(); - } - - public static com.google.container.v1.ServerConfig.ReleaseChannelConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReleaseChannelConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.ServerConfig.ReleaseChannelConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public static final int DEFAULT_CLUSTER_VERSION_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList validNodeVersions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList validImageTypes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList validMasterVersions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - private java.util.List channels_; - /** - * - * - *
-   * List of release channel configurations.
-   * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - @java.lang.Override - public java.util.List - getChannelsList() { - return channels_; - } - /** - * - * - *
-   * List of release channel configurations.
-   * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - @java.lang.Override - public java.util.List< - ? extends com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder> - getChannelsOrBuilderList() { - return channels_; - } - /** - * - * - *
-   * List of release channel configurations.
-   * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - @java.lang.Override - public int getChannelsCount() { - return channels_.size(); - } - /** - * - * - *
-   * List of release channel configurations.
-   * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - @java.lang.Override - public com.google.container.v1.ServerConfig.ReleaseChannelConfig getChannels(int index) { - return channels_.get(index); - } - /** - * - * - *
-   * List of release channel configurations.
-   * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - @java.lang.Override - public com.google.container.v1.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultClusterVersion_)) { - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultImageType_)) { - 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)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultClusterVersion_)) { - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultImageType_)) { - 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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.ServerConfig)) { - return super.equals(obj); - } - com.google.container.v1.ServerConfig other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ServerConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.ServerConfig parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.ServerConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ServerConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ServerConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.ServerConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.ServerConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ServerConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.ServerConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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.v1.ServerConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ServerConfig) - com.google.container.v1.ServerConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ServerConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ServerConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ServerConfig.class, - com.google.container.v1.ServerConfig.Builder.class); - } - - // Construct using com.google.container.v1.ServerConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - defaultClusterVersion_ = ""; - validNodeVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - defaultImageType_ = ""; - validImageTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - validMasterVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - if (channelsBuilder_ == null) { - channels_ = java.util.Collections.emptyList(); - } else { - channels_ = null; - channelsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ServerConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ServerConfig getDefaultInstanceForType() { - return com.google.container.v1.ServerConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ServerConfig build() { - com.google.container.v1.ServerConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ServerConfig buildPartial() { - com.google.container.v1.ServerConfig result = new com.google.container.v1.ServerConfig(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.container.v1.ServerConfig result) { - if (channelsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - channels_ = java.util.Collections.unmodifiableList(channels_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.channels_ = channels_; - } else { - result.channels_ = channelsBuilder_.build(); - } - } - - private void buildPartial0(com.google.container.v1.ServerConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.defaultClusterVersion_ = defaultClusterVersion_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - validNodeVersions_.makeImmutable(); - result.validNodeVersions_ = validNodeVersions_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.defaultImageType_ = defaultImageType_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - validImageTypes_.makeImmutable(); - result.validImageTypes_ = validImageTypes_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - validMasterVersions_.makeImmutable(); - result.validMasterVersions_ = validMasterVersions_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ServerConfig) { - return mergeFrom((com.google.container.v1.ServerConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ServerConfig other) { - if (other == com.google.container.v1.ServerConfig.getDefaultInstance()) return this; - if (!other.getDefaultClusterVersion().isEmpty()) { - defaultClusterVersion_ = other.defaultClusterVersion_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.validNodeVersions_.isEmpty()) { - if (validNodeVersions_.isEmpty()) { - validNodeVersions_ = other.validNodeVersions_; - bitField0_ |= 0x00000002; - } else { - ensureValidNodeVersionsIsMutable(); - validNodeVersions_.addAll(other.validNodeVersions_); - } - onChanged(); - } - if (!other.getDefaultImageType().isEmpty()) { - defaultImageType_ = other.defaultImageType_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.validImageTypes_.isEmpty()) { - if (validImageTypes_.isEmpty()) { - validImageTypes_ = other.validImageTypes_; - bitField0_ |= 0x00000008; - } else { - ensureValidImageTypesIsMutable(); - validImageTypes_.addAll(other.validImageTypes_); - } - onChanged(); - } - if (!other.validMasterVersions_.isEmpty()) { - if (validMasterVersions_.isEmpty()) { - validMasterVersions_ = other.validMasterVersions_; - bitField0_ |= 0x00000010; - } else { - ensureValidMasterVersionsIsMutable(); - validMasterVersions_.addAll(other.validMasterVersions_); - } - onChanged(); - } - if (channelsBuilder_ == null) { - if (!other.channels_.isEmpty()) { - if (channels_.isEmpty()) { - channels_ = other.channels_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureChannelsIsMutable(); - channels_.addAll(other.channels_); - } - onChanged(); - } - } else { - if (!other.channels_.isEmpty()) { - if (channelsBuilder_.isEmpty()) { - channelsBuilder_.dispose(); - channelsBuilder_ = null; - channels_ = other.channels_; - bitField0_ = (bitField0_ & ~0x00000020); - channelsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getChannelsFieldBuilder() - : null; - } else { - channelsBuilder_.addAllMessages(other.channels_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - defaultClusterVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureValidNodeVersionsIsMutable(); - validNodeVersions_.add(s); - break; - } // case 26 - case 34: - { - defaultImageType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureValidImageTypesIsMutable(); - validImageTypes_.add(s); - break; - } // case 42 - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureValidMasterVersionsIsMutable(); - validMasterVersions_.add(s); - break; - } // case 50 - case 74: - { - com.google.container.v1.ServerConfig.ReleaseChannelConfig m = - input.readMessage( - com.google.container.v1.ServerConfig.ReleaseChannelConfig.parser(), - extensionRegistry); - if (channelsBuilder_ == null) { - ensureChannelsIsMutable(); - channels_.add(m); - } else { - channelsBuilder_.addMessage(m); - } - break; - } // case 74 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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; - bitField0_ |= 0x00000001; - 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(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList validNodeVersions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureValidNodeVersionsIsMutable() { - if (!validNodeVersions_.isModifiable()) { - validNodeVersions_ = new com.google.protobuf.LazyStringArrayList(validNodeVersions_); - } - bitField0_ |= 0x00000002; - } - /** - * - * - *
-     * 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() { - validNodeVersions_.makeImmutable(); - 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); - } - /** - * - * - *
-     * 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); - bitField0_ |= 0x00000002; - 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); - bitField0_ |= 0x00000002; - 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_); - bitField0_ |= 0x00000002; - 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.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; - 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); - bitField0_ |= 0x00000002; - 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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Default image type.
-     * 
- * - * string default_image_type = 4; - * - * @return This builder for chaining. - */ - public Builder clearDefaultImageType() { - defaultImageType_ = getDefaultInstance().getDefaultImageType(); - bitField0_ = (bitField0_ & ~0x00000004); - 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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList validImageTypes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureValidImageTypesIsMutable() { - if (!validImageTypes_.isModifiable()) { - validImageTypes_ = new com.google.protobuf.LazyStringArrayList(validImageTypes_); - } - bitField0_ |= 0x00000008; - } - /** - * - * - *
-     * List of valid image types.
-     * 
- * - * repeated string valid_image_types = 5; - * - * @return A list containing the validImageTypes. - */ - public com.google.protobuf.ProtocolStringList getValidImageTypesList() { - validImageTypes_.makeImmutable(); - 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); - } - /** - * - * - *
-     * 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); - bitField0_ |= 0x00000008; - 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); - bitField0_ |= 0x00000008; - 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_); - bitField0_ |= 0x00000008; - 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.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - ; - 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); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList validMasterVersions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureValidMasterVersionsIsMutable() { - if (!validMasterVersions_.isModifiable()) { - validMasterVersions_ = new com.google.protobuf.LazyStringArrayList(validMasterVersions_); - } - bitField0_ |= 0x00000010; - } - /** - * - * - *
-     * 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() { - validMasterVersions_.makeImmutable(); - 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); - } - /** - * - * - *
-     * 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); - bitField0_ |= 0x00000010; - 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); - bitField0_ |= 0x00000010; - 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_); - bitField0_ |= 0x00000010; - 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.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - ; - 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); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private java.util.List channels_ = - java.util.Collections.emptyList(); - - private void ensureChannelsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - channels_ = - new java.util.ArrayList( - channels_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.ServerConfig.ReleaseChannelConfig, - com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder, - com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder> - channelsBuilder_; - - /** - * - * - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public java.util.List - getChannelsList() { - if (channelsBuilder_ == null) { - return java.util.Collections.unmodifiableList(channels_); - } else { - return channelsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public int getChannelsCount() { - if (channelsBuilder_ == null) { - return channels_.size(); - } else { - return channelsBuilder_.getCount(); - } - } - /** - * - * - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public com.google.container.v1.ServerConfig.ReleaseChannelConfig getChannels(int index) { - if (channelsBuilder_ == null) { - return channels_.get(index); - } else { - return channelsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public Builder setChannels( - int index, com.google.container.v1.ServerConfig.ReleaseChannelConfig value) { - if (channelsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChannelsIsMutable(); - channels_.set(index, value); - onChanged(); - } else { - channelsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public Builder setChannels( - int index, - com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder builderForValue) { - if (channelsBuilder_ == null) { - ensureChannelsIsMutable(); - channels_.set(index, builderForValue.build()); - onChanged(); - } else { - channelsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public Builder addChannels(com.google.container.v1.ServerConfig.ReleaseChannelConfig value) { - if (channelsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChannelsIsMutable(); - channels_.add(value); - onChanged(); - } else { - channelsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public Builder addChannels( - int index, com.google.container.v1.ServerConfig.ReleaseChannelConfig value) { - if (channelsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChannelsIsMutable(); - channels_.add(index, value); - onChanged(); - } else { - channelsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public Builder addChannels( - com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder builderForValue) { - if (channelsBuilder_ == null) { - ensureChannelsIsMutable(); - channels_.add(builderForValue.build()); - onChanged(); - } else { - channelsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public Builder addChannels( - int index, - com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder builderForValue) { - if (channelsBuilder_ == null) { - ensureChannelsIsMutable(); - channels_.add(index, builderForValue.build()); - onChanged(); - } else { - channelsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public Builder addAllChannels( - java.lang.Iterable - values) { - if (channelsBuilder_ == null) { - ensureChannelsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, channels_); - onChanged(); - } else { - channelsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public Builder clearChannels() { - if (channelsBuilder_ == null) { - channels_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - channelsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public Builder removeChannels(int index) { - if (channelsBuilder_ == null) { - ensureChannelsIsMutable(); - channels_.remove(index); - onChanged(); - } else { - channelsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder getChannelsBuilder( - int index) { - return getChannelsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder getChannelsOrBuilder( - int index) { - if (channelsBuilder_ == null) { - return channels_.get(index); - } else { - return channelsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public java.util.List< - ? extends com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder> - getChannelsOrBuilderList() { - if (channelsBuilder_ != null) { - return channelsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(channels_); - } - } - /** - * - * - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder addChannelsBuilder() { - return getChannelsFieldBuilder() - .addBuilder( - com.google.container.v1.ServerConfig.ReleaseChannelConfig.getDefaultInstance()); - } - /** - * - * - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder addChannelsBuilder( - int index) { - return getChannelsFieldBuilder() - .addBuilder( - index, - com.google.container.v1.ServerConfig.ReleaseChannelConfig.getDefaultInstance()); - } - /** - * - * - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public java.util.List - getChannelsBuilderList() { - return getChannelsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.ServerConfig.ReleaseChannelConfig, - com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder, - com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder> - getChannelsFieldBuilder() { - if (channelsBuilder_ == null) { - channelsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.ServerConfig.ReleaseChannelConfig, - com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder, - com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder>( - channels_, ((bitField0_ & 0x00000020) != 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.v1.ServerConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ServerConfig) - private static final com.google.container.v1.ServerConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ServerConfig(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.ServerConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfigOrBuilder.java deleted file mode 100644 index fbeee73e81a3..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfigOrBuilder.java +++ /dev/null @@ -1,282 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface ServerConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.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.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - java.util.List getChannelsList(); - /** - * - * - *
-   * List of release channel configurations.
-   * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - com.google.container.v1.ServerConfig.ReleaseChannelConfig getChannels(int index); - /** - * - * - *
-   * List of release channel configurations.
-   * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - int getChannelsCount(); - /** - * - * - *
-   * List of release channel configurations.
-   * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - java.util.List - getChannelsOrBuilderList(); - /** - * - * - *
-   * List of release channel configurations.
-   * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder getChannelsOrBuilder( - int index); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServiceExternalIPsConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServiceExternalIPsConfig.java deleted file mode 100644 index a961129b880d..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServiceExternalIPsConfig.java +++ /dev/null @@ -1,535 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Config to block services with externalIPs field.
- * 
- * - * Protobuf type {@code google.container.v1.ServiceExternalIPsConfig} - */ -public final class ServiceExternalIPsConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.ServiceExternalIPsConfig) - ServiceExternalIPsConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use ServiceExternalIPsConfig.newBuilder() to construct. - private ServiceExternalIPsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ServiceExternalIPsConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ServiceExternalIPsConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ServiceExternalIPsConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ServiceExternalIPsConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ServiceExternalIPsConfig.class, - com.google.container.v1.ServiceExternalIPsConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * Whether Services with ExternalIPs field are allowed or not.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.ServiceExternalIPsConfig)) { - return super.equals(obj); - } - com.google.container.v1.ServiceExternalIPsConfig other = - (com.google.container.v1.ServiceExternalIPsConfig) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ServiceExternalIPsConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ServiceExternalIPsConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ServiceExternalIPsConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ServiceExternalIPsConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ServiceExternalIPsConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ServiceExternalIPsConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ServiceExternalIPsConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ServiceExternalIPsConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ServiceExternalIPsConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.ServiceExternalIPsConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ServiceExternalIPsConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ServiceExternalIPsConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.ServiceExternalIPsConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Config to block services with externalIPs field.
-   * 
- * - * Protobuf type {@code google.container.v1.ServiceExternalIPsConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ServiceExternalIPsConfig) - com.google.container.v1.ServiceExternalIPsConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ServiceExternalIPsConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ServiceExternalIPsConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ServiceExternalIPsConfig.class, - com.google.container.v1.ServiceExternalIPsConfig.Builder.class); - } - - // Construct using com.google.container.v1.ServiceExternalIPsConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enabled_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ServiceExternalIPsConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ServiceExternalIPsConfig getDefaultInstanceForType() { - return com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ServiceExternalIPsConfig build() { - com.google.container.v1.ServiceExternalIPsConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ServiceExternalIPsConfig buildPartial() { - com.google.container.v1.ServiceExternalIPsConfig result = - new com.google.container.v1.ServiceExternalIPsConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.ServiceExternalIPsConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ServiceExternalIPsConfig) { - return mergeFrom((com.google.container.v1.ServiceExternalIPsConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ServiceExternalIPsConfig other) { - if (other == com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance()) - return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean enabled_; - /** - * - * - *
-     * Whether Services with ExternalIPs field are allowed or not.
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Whether Services with ExternalIPs field are allowed or not.
-     * 
- * - * bool enabled = 1; - * - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether Services with ExternalIPs field are allowed or not.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - enabled_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.ServiceExternalIPsConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ServiceExternalIPsConfig) - private static final com.google.container.v1.ServiceExternalIPsConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ServiceExternalIPsConfig(); - } - - public static com.google.container.v1.ServiceExternalIPsConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ServiceExternalIPsConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.ServiceExternalIPsConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServiceExternalIPsConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServiceExternalIPsConfigOrBuilder.java deleted file mode 100644 index 530afa16408f..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServiceExternalIPsConfigOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface ServiceExternalIPsConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ServiceExternalIPsConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether Services with ExternalIPs field are allowed or not.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java deleted file mode 100644 index 1080b220e4b7..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java +++ /dev/null @@ -1,1598 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * SetAddonsConfigRequest sets the addons associated with the cluster.
- * 
- * - * Protobuf type {@code google.container.v1.SetAddonsConfigRequest} - */ -public final class SetAddonsConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetAddonsConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetAddonsConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetAddonsConfigRequest.class, - com.google.container.v1.SetAddonsConfigRequest.Builder.class); - } - - private int bitField0_; - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2862 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2862 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object zone_ = ""; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2868 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2868 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object clusterId_ = ""; - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2872 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2872 - * @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.v1.AddonsConfig addonsConfig_; - /** - * - * - *
-   * Required. The desired configurations for the various addons available to
-   * run in the cluster.
-   * 
- * - * - * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the addonsConfig field is set. - */ - @java.lang.Override - public boolean hasAddonsConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Required. The desired configurations for the various addons available to
-   * run in the cluster.
-   * 
- * - * - * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The addonsConfig. - */ - @java.lang.Override - public com.google.container.v1.AddonsConfig getAddonsConfig() { - return addonsConfig_ == null - ? com.google.container.v1.AddonsConfig.getDefaultInstance() - : addonsConfig_; - } - /** - * - * - *
-   * Required. The desired configurations for the various addons available to
-   * run in the cluster.
-   * 
- * - * - * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.container.v1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() { - return addonsConfig_ == null - ? com.google.container.v1.AddonsConfig.getDefaultInstance() - : addonsConfig_; - } - - public static final int NAME_FIELD_NUMBER = 6; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(4, getAddonsConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAddonsConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.SetAddonsConfigRequest)) { - return super.equals(obj); - } - com.google.container.v1.SetAddonsConfigRequest other = - (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.SetAddonsConfigRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.SetAddonsConfigRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.SetAddonsConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetAddonsConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetAddonsConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.SetAddonsConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.SetAddonsConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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; - } - /** - * - * - *
-   * SetAddonsConfigRequest sets the addons associated with the cluster.
-   * 
- * - * Protobuf type {@code google.container.v1.SetAddonsConfigRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.SetAddonsConfigRequest) - com.google.container.v1.SetAddonsConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetAddonsConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetAddonsConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetAddonsConfigRequest.class, - com.google.container.v1.SetAddonsConfigRequest.Builder.class); - } - - // Construct using com.google.container.v1.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) { - getAddonsConfigFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - addonsConfig_ = null; - if (addonsConfigBuilder_ != null) { - addonsConfigBuilder_.dispose(); - addonsConfigBuilder_ = null; - } - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetAddonsConfigRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.SetAddonsConfigRequest getDefaultInstanceForType() { - return com.google.container.v1.SetAddonsConfigRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.SetAddonsConfigRequest build() { - com.google.container.v1.SetAddonsConfigRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.SetAddonsConfigRequest buildPartial() { - com.google.container.v1.SetAddonsConfigRequest result = - new com.google.container.v1.SetAddonsConfigRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.SetAddonsConfigRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.addonsConfig_ = - addonsConfigBuilder_ == null ? addonsConfig_ : addonsConfigBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.name_ = name_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.SetAddonsConfigRequest) { - return mergeFrom((com.google.container.v1.SetAddonsConfigRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.SetAddonsConfigRequest other) { - if (other == com.google.container.v1.SetAddonsConfigRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasAddonsConfig()) { - mergeAddonsConfig(other.getAddonsConfig()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000010; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getAddonsConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 50: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2862 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2862 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2862 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2862 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2862 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2868 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2868 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2868 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2868 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2868 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2872 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2872 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2872 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2872 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2872 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private com.google.container.v1.AddonsConfig addonsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AddonsConfig, - com.google.container.v1.AddonsConfig.Builder, - com.google.container.v1.AddonsConfigOrBuilder> - addonsConfigBuilder_; - /** - * - * - *
-     * Required. The desired configurations for the various addons available to
-     * run in the cluster.
-     * 
- * - * - * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the addonsConfig field is set. - */ - public boolean hasAddonsConfig() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-     * Required. The desired configurations for the various addons available to
-     * run in the cluster.
-     * 
- * - * - * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The addonsConfig. - */ - public com.google.container.v1.AddonsConfig getAddonsConfig() { - if (addonsConfigBuilder_ == null) { - return addonsConfig_ == null - ? com.google.container.v1.AddonsConfig.getDefaultInstance() - : addonsConfig_; - } else { - return addonsConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The desired configurations for the various addons available to
-     * run in the cluster.
-     * 
- * - * - * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setAddonsConfig(com.google.container.v1.AddonsConfig value) { - if (addonsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - addonsConfig_ = value; - } else { - addonsConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The desired configurations for the various addons available to
-     * run in the cluster.
-     * 
- * - * - * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setAddonsConfig(com.google.container.v1.AddonsConfig.Builder builderForValue) { - if (addonsConfigBuilder_ == null) { - addonsConfig_ = builderForValue.build(); - } else { - addonsConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The desired configurations for the various addons available to
-     * run in the cluster.
-     * 
- * - * - * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeAddonsConfig(com.google.container.v1.AddonsConfig value) { - if (addonsConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && addonsConfig_ != null - && addonsConfig_ != com.google.container.v1.AddonsConfig.getDefaultInstance()) { - getAddonsConfigBuilder().mergeFrom(value); - } else { - addonsConfig_ = value; - } - } else { - addonsConfigBuilder_.mergeFrom(value); - } - if (addonsConfig_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Required. The desired configurations for the various addons available to
-     * run in the cluster.
-     * 
- * - * - * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearAddonsConfig() { - bitField0_ = (bitField0_ & ~0x00000008); - addonsConfig_ = null; - if (addonsConfigBuilder_ != null) { - addonsConfigBuilder_.dispose(); - addonsConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The desired configurations for the various addons available to
-     * run in the cluster.
-     * 
- * - * - * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.container.v1.AddonsConfig.Builder getAddonsConfigBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getAddonsConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The desired configurations for the various addons available to
-     * run in the cluster.
-     * 
- * - * - * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.container.v1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() { - if (addonsConfigBuilder_ != null) { - return addonsConfigBuilder_.getMessageOrBuilder(); - } else { - return addonsConfig_ == null - ? com.google.container.v1.AddonsConfig.getDefaultInstance() - : addonsConfig_; - } - } - /** - * - * - *
-     * Required. The desired configurations for the various addons available to
-     * run in the cluster.
-     * 
- * - * - * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AddonsConfig, - com.google.container.v1.AddonsConfig.Builder, - com.google.container.v1.AddonsConfigOrBuilder> - getAddonsConfigFieldBuilder() { - if (addonsConfigBuilder_ == null) { - addonsConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AddonsConfig, - com.google.container.v1.AddonsConfig.Builder, - com.google.container.v1.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; - bitField0_ |= 0x00000010; - 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(); - bitField0_ = (bitField0_ & ~0x00000010); - 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; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.SetAddonsConfigRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.SetAddonsConfigRequest) - private static final com.google.container.v1.SetAddonsConfigRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.SetAddonsConfigRequest(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.SetAddonsConfigRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java deleted file mode 100644 index ffab47168b02..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java +++ /dev/null @@ -1,202 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface SetAddonsConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.SetAddonsConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2862 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2862 - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2868 - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2868 - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2872 - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2872 - * @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.v1.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.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The addonsConfig. - */ - com.google.container.v1.AddonsConfig getAddonsConfig(); - /** - * - * - *
-   * Required. The desired configurations for the various addons available to
-   * run in the cluster.
-   * 
- * - * - * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.container.v1.AddonsConfigOrBuilder getAddonsConfigOrBuilder(); - - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to set addons.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 6; - * - * @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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java deleted file mode 100644 index 1c67912380bb..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java +++ /dev/null @@ -1,1860 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * 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.v1.SetLabelsRequest} - */ -public final class SetLabelsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLabelsRequest_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - 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.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLabelsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetLabelsRequest.class, - com.google.container.v1.SetLabelsRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4024 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4024 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object zone_ = ""; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4030 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4030 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object clusterId_ = ""; - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4034 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4034 - * @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.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLabelsRequest_ResourceLabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - @SuppressWarnings("serial") - 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 NullPointerException("map key"); - } - 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 /* nullable */ java.lang.String getResourceLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - 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 NullPointerException("map key"); - } - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * The name (project, location, cluster name) 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 name) 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetResourceLabels(), ResourceLabelsDefaultEntryHolder.defaultEntry, 4); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(labelFingerprint_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, labelFingerprint_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(labelFingerprint_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, labelFingerprint_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.SetLabelsRequest)) { - return super.equals(obj); - } - com.google.container.v1.SetLabelsRequest other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.SetLabelsRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.SetLabelsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.SetLabelsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetLabelsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetLabelsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.SetLabelsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.SetLabelsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.SetLabelsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.SetLabelsRequest) - com.google.container.v1.SetLabelsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLabelsRequest_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 4: - return internalGetResourceLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - 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.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLabelsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetLabelsRequest.class, - com.google.container.v1.SetLabelsRequest.Builder.class); - } - - // Construct using com.google.container.v1.SetLabelsRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - internalGetMutableResourceLabels().clear(); - labelFingerprint_ = ""; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLabelsRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.SetLabelsRequest getDefaultInstanceForType() { - return com.google.container.v1.SetLabelsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.SetLabelsRequest build() { - com.google.container.v1.SetLabelsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.SetLabelsRequest buildPartial() { - com.google.container.v1.SetLabelsRequest result = - new com.google.container.v1.SetLabelsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.SetLabelsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.resourceLabels_ = internalGetResourceLabels(); - result.resourceLabels_.makeImmutable(); - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.labelFingerprint_ = labelFingerprint_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.SetLabelsRequest) { - return mergeFrom((com.google.container.v1.SetLabelsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.SetLabelsRequest other) { - if (other == com.google.container.v1.SetLabelsRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - internalGetMutableResourceLabels().mergeFrom(other.internalGetResourceLabels()); - bitField0_ |= 0x00000008; - if (!other.getLabelFingerprint().isEmpty()) { - labelFingerprint_ = other.labelFingerprint_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000020; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - com.google.protobuf.MapEntry resourceLabels__ = - input.readMessage( - ResourceLabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableResourceLabels() - .getMutableMap() - .put(resourceLabels__.getKey(), resourceLabels__.getValue()); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - labelFingerprint_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 58: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4024 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4024 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4024 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4024 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4024 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4030 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4030 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4030 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4030 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4030 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4034 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4034 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4034 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4034 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4034 - * @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; - bitField0_ |= 0x00000004; - 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() { - if (resourceLabels_ == null) { - resourceLabels_ = - com.google.protobuf.MapField.newMapField(ResourceLabelsDefaultEntryHolder.defaultEntry); - } - if (!resourceLabels_.isMutable()) { - resourceLabels_ = resourceLabels_.copy(); - } - bitField0_ |= 0x00000008; - onChanged(); - 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 NullPointerException("map key"); - } - 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 /* nullable */ java.lang.String getResourceLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - 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 NullPointerException("map key"); - } - java.util.Map map = internalGetResourceLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearResourceLabels() { - bitField0_ = (bitField0_ & ~0x00000008); - 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 NullPointerException("map key"); - } - internalGetMutableResourceLabels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableResourceLabels() { - bitField0_ |= 0x00000008; - 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 NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableResourceLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00000008; - 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); - bitField0_ |= 0x00000008; - 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; - bitField0_ |= 0x00000010; - 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(); - bitField0_ = (bitField0_ & ~0x00000010); - 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; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name (project, location, cluster name) 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 name) 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 name) 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; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster name) 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(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster name) 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; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.SetLabelsRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.SetLabelsRequest) - private static final com.google.container.v1.SetLabelsRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.SetLabelsRequest(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.SetLabelsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java deleted file mode 100644 index bfb878d9894e..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java +++ /dev/null @@ -1,256 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface SetLabelsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.SetLabelsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4024 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4024 - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4030 - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4030 - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4034 - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4034 - * @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]; - * - */ - /* nullable */ - java.lang.String getResourceLabelsOrDefault( - java.lang.String key, - /* nullable */ - 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 name) 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 name) 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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java deleted file mode 100644 index 56bf0350d77d..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java +++ /dev/null @@ -1,1377 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for
- * a cluster.
- * 
- * - * Protobuf type {@code google.container.v1.SetLegacyAbacRequest} - */ -public final class SetLegacyAbacRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLegacyAbacRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLegacyAbacRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetLegacyAbacRequest.class, - com.google.container.v1.SetLegacyAbacRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4059 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4059 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object zone_ = ""; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4065 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4065 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object clusterId_ = ""; - /** - * - * - *
-   * Deprecated. The name of the cluster to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4069 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4069 - * @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_ = false; - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * The name (project, location, cluster name) 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 name) 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (enabled_ != false) { - output.writeBool(4, enabled_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, enabled_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.SetLegacyAbacRequest)) { - return super.equals(obj); - } - com.google.container.v1.SetLegacyAbacRequest other = - (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.SetLegacyAbacRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.SetLegacyAbacRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.SetLegacyAbacRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetLegacyAbacRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetLegacyAbacRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.SetLegacyAbacRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.SetLegacyAbacRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.SetLegacyAbacRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.SetLegacyAbacRequest) - com.google.container.v1.SetLegacyAbacRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLegacyAbacRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLegacyAbacRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetLegacyAbacRequest.class, - com.google.container.v1.SetLegacyAbacRequest.Builder.class); - } - - // Construct using com.google.container.v1.SetLegacyAbacRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - enabled_ = false; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLegacyAbacRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.SetLegacyAbacRequest getDefaultInstanceForType() { - return com.google.container.v1.SetLegacyAbacRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.SetLegacyAbacRequest build() { - com.google.container.v1.SetLegacyAbacRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.SetLegacyAbacRequest buildPartial() { - com.google.container.v1.SetLegacyAbacRequest result = - new com.google.container.v1.SetLegacyAbacRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.SetLegacyAbacRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.enabled_ = enabled_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.SetLegacyAbacRequest) { - return mergeFrom((com.google.container.v1.SetLegacyAbacRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.SetLegacyAbacRequest other) { - if (other == com.google.container.v1.SetLegacyAbacRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000010; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 50: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4059 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4059 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4059 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4059 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4059 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4065 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4065 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4065 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4065 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4065 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4069 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4069 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4069 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4069 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4069 - * @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; - bitField0_ |= 0x00000004; - 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; - bitField0_ |= 0x00000008; - 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() { - bitField0_ = (bitField0_ & ~0x00000008); - enabled_ = false; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name (project, location, cluster name) 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 name) 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 name) 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; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster name) 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(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster name) 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; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.SetLegacyAbacRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.SetLegacyAbacRequest) - private static final com.google.container.v1.SetLegacyAbacRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.SetLegacyAbacRequest(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.SetLegacyAbacRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java deleted file mode 100644 index 8150d0ea53f6..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface SetLegacyAbacRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.SetLegacyAbacRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4059 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4059 - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4065 - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4065 - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4069 - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4069 - * @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 name) 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 name) 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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java deleted file mode 100644 index 47f17b2c42c4..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java +++ /dev/null @@ -1,1637 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * SetLocationsRequest sets the locations of the cluster.
- * 
- * - * Protobuf type {@code google.container.v1.SetLocationsRequest} - */ -public final class SetLocationsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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.emptyList(); - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SetLocationsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLocationsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLocationsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetLocationsRequest.class, - com.google.container.v1.SetLocationsRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2888 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2888 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object zone_ = ""; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2894 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2894 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object clusterId_ = ""; - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2898 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2898 - * @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; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList locations_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.SetLocationsRequest)) { - return super.equals(obj); - } - com.google.container.v1.SetLocationsRequest other = - (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.SetLocationsRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.SetLocationsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.SetLocationsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetLocationsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetLocationsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.SetLocationsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.SetLocationsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.SetLocationsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.SetLocationsRequest) - com.google.container.v1.SetLocationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLocationsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLocationsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetLocationsRequest.class, - com.google.container.v1.SetLocationsRequest.Builder.class); - } - - // Construct using com.google.container.v1.SetLocationsRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - locations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLocationsRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.SetLocationsRequest getDefaultInstanceForType() { - return com.google.container.v1.SetLocationsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.SetLocationsRequest build() { - com.google.container.v1.SetLocationsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.SetLocationsRequest buildPartial() { - com.google.container.v1.SetLocationsRequest result = - new com.google.container.v1.SetLocationsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.SetLocationsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - locations_.makeImmutable(); - result.locations_ = locations_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.SetLocationsRequest) { - return mergeFrom((com.google.container.v1.SetLocationsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.SetLocationsRequest other) { - if (other == com.google.container.v1.SetLocationsRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.locations_.isEmpty()) { - if (locations_.isEmpty()) { - locations_ = other.locations_; - bitField0_ |= 0x00000008; - } else { - ensureLocationsIsMutable(); - locations_.addAll(other.locations_); - } - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000010; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureLocationsIsMutable(); - locations_.add(s); - break; - } // case 34 - case 50: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2888 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2888 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2888 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2888 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2888 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2894 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2894 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2894 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2894 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2894 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2898 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2898 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2898 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2898 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2898 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList locations_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureLocationsIsMutable() { - if (!locations_.isModifiable()) { - locations_ = new com.google.protobuf.LazyStringArrayList(locations_); - } - bitField0_ |= 0x00000008; - } - /** - * - * - *
-     * 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() { - locations_.makeImmutable(); - 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); - } - /** - * - * - *
-     * 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); - bitField0_ |= 0x00000008; - 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); - bitField0_ |= 0x00000008; - 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_); - bitField0_ |= 0x00000008; - 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.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - ; - 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); - bitField0_ |= 0x00000008; - 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; - bitField0_ |= 0x00000010; - 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(); - bitField0_ = (bitField0_ & ~0x00000010); - 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; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.SetLocationsRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.SetLocationsRequest) - private static final com.google.container.v1.SetLocationsRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.SetLocationsRequest(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.SetLocationsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java deleted file mode 100644 index 4d15dc963844..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java +++ /dev/null @@ -1,233 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface SetLocationsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.SetLocationsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2888 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2888 - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2894 - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2894 - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2898 - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2898 - * @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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java deleted file mode 100644 index 4425758f335d..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java +++ /dev/null @@ -1,1535 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * SetLoggingServiceRequest sets the logging service of a cluster.
- * 
- * - * Protobuf type {@code google.container.v1.SetLoggingServiceRequest} - */ -public final class SetLoggingServiceRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLoggingServiceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLoggingServiceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetLoggingServiceRequest.class, - com.google.container.v1.SetLoggingServiceRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2792 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2792 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object zone_ = ""; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2798 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2798 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object clusterId_ = ""; - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2802 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2802 - * @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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loggingService_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, loggingService_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loggingService_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, loggingService_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.SetLoggingServiceRequest)) { - return super.equals(obj); - } - com.google.container.v1.SetLoggingServiceRequest other = - (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.SetLoggingServiceRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.SetLoggingServiceRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.SetLoggingServiceRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetLoggingServiceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetLoggingServiceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.SetLoggingServiceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.SetLoggingServiceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.SetLoggingServiceRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.SetLoggingServiceRequest) - com.google.container.v1.SetLoggingServiceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLoggingServiceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLoggingServiceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetLoggingServiceRequest.class, - com.google.container.v1.SetLoggingServiceRequest.Builder.class); - } - - // Construct using com.google.container.v1.SetLoggingServiceRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - loggingService_ = ""; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLoggingServiceRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.SetLoggingServiceRequest getDefaultInstanceForType() { - return com.google.container.v1.SetLoggingServiceRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.SetLoggingServiceRequest build() { - com.google.container.v1.SetLoggingServiceRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.SetLoggingServiceRequest buildPartial() { - com.google.container.v1.SetLoggingServiceRequest result = - new com.google.container.v1.SetLoggingServiceRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.SetLoggingServiceRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.loggingService_ = loggingService_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.SetLoggingServiceRequest) { - return mergeFrom((com.google.container.v1.SetLoggingServiceRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.SetLoggingServiceRequest other) { - if (other == com.google.container.v1.SetLoggingServiceRequest.getDefaultInstance()) - return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getLoggingService().isEmpty()) { - loggingService_ = other.loggingService_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000010; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - loggingService_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2792 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2792 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2792 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2792 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2792 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2798 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2798 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2798 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2798 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2798 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2802 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2802 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2802 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2802 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2802 - * @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; - bitField0_ |= 0x00000004; - 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; - bitField0_ |= 0x00000008; - 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(); - bitField0_ = (bitField0_ & ~0x00000008); - 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; - bitField0_ |= 0x00000008; - 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; - bitField0_ |= 0x00000010; - 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(); - bitField0_ = (bitField0_ & ~0x00000010); - 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; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.SetLoggingServiceRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.SetLoggingServiceRequest) - private static final com.google.container.v1.SetLoggingServiceRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.SetLoggingServiceRequest(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.SetLoggingServiceRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java deleted file mode 100644 index e78a4a2f1e19..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java +++ /dev/null @@ -1,203 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface SetLoggingServiceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.SetLoggingServiceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2792 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2792 - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2798 - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2798 - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2802 - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2802 - * @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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequest.java deleted file mode 100644 index 7725f40b3c63..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequest.java +++ /dev/null @@ -1,1527 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * SetMaintenancePolicyRequest sets the maintenance policy for a cluster.
- * 
- * - * Protobuf type {@code google.container.v1.SetMaintenancePolicyRequest} - */ -public final class SetMaintenancePolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetMaintenancePolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetMaintenancePolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetMaintenancePolicyRequest.class, - com.google.container.v1.SetMaintenancePolicyRequest.Builder.class); - } - - private int bitField0_; - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Required. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * 
- * - * 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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * 
- * - * 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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.v1.MaintenancePolicy maintenancePolicy_; - /** - * - * - *
-   * Required. The maintenance policy to be set for the cluster. An empty field
-   * clears the existing maintenance policy.
-   * 
- * - * - * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the maintenancePolicy field is set. - */ - @java.lang.Override - public boolean hasMaintenancePolicy() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Required. The maintenance policy to be set for the cluster. An empty field
-   * clears the existing maintenance policy.
-   * 
- * - * - * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The maintenancePolicy. - */ - @java.lang.Override - public com.google.container.v1.MaintenancePolicy getMaintenancePolicy() { - return maintenancePolicy_ == null - ? com.google.container.v1.MaintenancePolicy.getDefaultInstance() - : maintenancePolicy_; - } - /** - * - * - *
-   * Required. The maintenance policy to be set for the cluster. An empty field
-   * clears the existing maintenance policy.
-   * 
- * - * - * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.container.v1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { - return maintenancePolicy_ == null - ? com.google.container.v1.MaintenancePolicy.getDefaultInstance() - : maintenancePolicy_; - } - - public static final int NAME_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * The name (project, location, cluster name) 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 name) 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(4, getMaintenancePolicy()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMaintenancePolicy()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.SetMaintenancePolicyRequest)) { - return super.equals(obj); - } - com.google.container.v1.SetMaintenancePolicyRequest other = - (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.SetMaintenancePolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.SetMaintenancePolicyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.SetMaintenancePolicyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetMaintenancePolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetMaintenancePolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.SetMaintenancePolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.SetMaintenancePolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.SetMaintenancePolicyRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.SetMaintenancePolicyRequest) - com.google.container.v1.SetMaintenancePolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetMaintenancePolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetMaintenancePolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetMaintenancePolicyRequest.class, - com.google.container.v1.SetMaintenancePolicyRequest.Builder.class); - } - - // Construct using com.google.container.v1.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) { - getMaintenancePolicyFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - maintenancePolicy_ = null; - if (maintenancePolicyBuilder_ != null) { - maintenancePolicyBuilder_.dispose(); - maintenancePolicyBuilder_ = null; - } - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetMaintenancePolicyRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.SetMaintenancePolicyRequest getDefaultInstanceForType() { - return com.google.container.v1.SetMaintenancePolicyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.SetMaintenancePolicyRequest build() { - com.google.container.v1.SetMaintenancePolicyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.SetMaintenancePolicyRequest buildPartial() { - com.google.container.v1.SetMaintenancePolicyRequest result = - new com.google.container.v1.SetMaintenancePolicyRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.SetMaintenancePolicyRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.maintenancePolicy_ = - maintenancePolicyBuilder_ == null - ? maintenancePolicy_ - : maintenancePolicyBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.name_ = name_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.SetMaintenancePolicyRequest) { - return mergeFrom((com.google.container.v1.SetMaintenancePolicyRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.SetMaintenancePolicyRequest other) { - if (other == com.google.container.v1.SetMaintenancePolicyRequest.getDefaultInstance()) - return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasMaintenancePolicy()) { - mergeMaintenancePolicy(other.getMaintenancePolicy()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000010; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage( - getMaintenancePolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * 
- * - * 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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * 
- * - * 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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * 
- * - * 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * 
- * - * 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; - bitField0_ |= 0x00000001; - 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; - bitField0_ |= 0x00000002; - 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(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - 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; - bitField0_ |= 0x00000004; - 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(); - bitField0_ = (bitField0_ & ~0x00000004); - 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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private com.google.container.v1.MaintenancePolicy maintenancePolicy_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MaintenancePolicy, - com.google.container.v1.MaintenancePolicy.Builder, - com.google.container.v1.MaintenancePolicyOrBuilder> - maintenancePolicyBuilder_; - /** - * - * - *
-     * Required. The maintenance policy to be set for the cluster. An empty field
-     * clears the existing maintenance policy.
-     * 
- * - * - * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the maintenancePolicy field is set. - */ - public boolean hasMaintenancePolicy() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-     * Required. The maintenance policy to be set for the cluster. An empty field
-     * clears the existing maintenance policy.
-     * 
- * - * - * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The maintenancePolicy. - */ - public com.google.container.v1.MaintenancePolicy getMaintenancePolicy() { - if (maintenancePolicyBuilder_ == null) { - return maintenancePolicy_ == null - ? com.google.container.v1.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.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setMaintenancePolicy(com.google.container.v1.MaintenancePolicy value) { - if (maintenancePolicyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - maintenancePolicy_ = value; - } else { - maintenancePolicyBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The maintenance policy to be set for the cluster. An empty field
-     * clears the existing maintenance policy.
-     * 
- * - * - * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setMaintenancePolicy( - com.google.container.v1.MaintenancePolicy.Builder builderForValue) { - if (maintenancePolicyBuilder_ == null) { - maintenancePolicy_ = builderForValue.build(); - } else { - maintenancePolicyBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The maintenance policy to be set for the cluster. An empty field
-     * clears the existing maintenance policy.
-     * 
- * - * - * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeMaintenancePolicy(com.google.container.v1.MaintenancePolicy value) { - if (maintenancePolicyBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && maintenancePolicy_ != null - && maintenancePolicy_ - != com.google.container.v1.MaintenancePolicy.getDefaultInstance()) { - getMaintenancePolicyBuilder().mergeFrom(value); - } else { - maintenancePolicy_ = value; - } - } else { - maintenancePolicyBuilder_.mergeFrom(value); - } - if (maintenancePolicy_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Required. The maintenance policy to be set for the cluster. An empty field
-     * clears the existing maintenance policy.
-     * 
- * - * - * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearMaintenancePolicy() { - bitField0_ = (bitField0_ & ~0x00000008); - maintenancePolicy_ = null; - if (maintenancePolicyBuilder_ != null) { - maintenancePolicyBuilder_.dispose(); - maintenancePolicyBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The maintenance policy to be set for the cluster. An empty field
-     * clears the existing maintenance policy.
-     * 
- * - * - * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.container.v1.MaintenancePolicy.Builder getMaintenancePolicyBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getMaintenancePolicyFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The maintenance policy to be set for the cluster. An empty field
-     * clears the existing maintenance policy.
-     * 
- * - * - * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.container.v1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { - if (maintenancePolicyBuilder_ != null) { - return maintenancePolicyBuilder_.getMessageOrBuilder(); - } else { - return maintenancePolicy_ == null - ? com.google.container.v1.MaintenancePolicy.getDefaultInstance() - : maintenancePolicy_; - } - } - /** - * - * - *
-     * Required. The maintenance policy to be set for the cluster. An empty field
-     * clears the existing maintenance policy.
-     * 
- * - * - * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MaintenancePolicy, - com.google.container.v1.MaintenancePolicy.Builder, - com.google.container.v1.MaintenancePolicyOrBuilder> - getMaintenancePolicyFieldBuilder() { - if (maintenancePolicyBuilder_ == null) { - maintenancePolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MaintenancePolicy, - com.google.container.v1.MaintenancePolicy.Builder, - com.google.container.v1.MaintenancePolicyOrBuilder>( - getMaintenancePolicy(), getParentForChildren(), isClean()); - maintenancePolicy_ = null; - } - return maintenancePolicyBuilder_; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name (project, location, cluster name) 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 name) 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 name) 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; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster name) 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(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster name) 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; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.SetMaintenancePolicyRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.SetMaintenancePolicyRequest) - private static final com.google.container.v1.SetMaintenancePolicyRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.SetMaintenancePolicyRequest(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.SetMaintenancePolicyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequestOrBuilder.java deleted file mode 100644 index 948653d13ce5..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequestOrBuilder.java +++ /dev/null @@ -1,180 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface SetMaintenancePolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.SetMaintenancePolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * 
- * - * 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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * 
- * - * 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.v1.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.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The maintenancePolicy. - */ - com.google.container.v1.MaintenancePolicy getMaintenancePolicy(); - /** - * - * - *
-   * Required. The maintenance policy to be set for the cluster. An empty field
-   * clears the existing maintenance policy.
-   * 
- * - * - * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.container.v1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder(); - - /** - * - * - *
-   * The name (project, location, cluster name) 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 name) 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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java deleted file mode 100644 index c93e37549734..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java +++ /dev/null @@ -1,1916 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * SetMasterAuthRequest updates the admin password of a cluster.
- * 
- * - * Protobuf type {@code google.container.v1.SetMasterAuthRequest} - */ -public final class SetMasterAuthRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetMasterAuthRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetMasterAuthRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetMasterAuthRequest.class, - com.google.container.v1.SetMasterAuthRequest.Builder.class); - } - - /** - * - * - *
-   * Operation type: what type update to perform.
-   * 
- * - * Protobuf enum {@code google.container.v1.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.v1.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.v1.SetMasterAuthRequest.Action) - } - - private int bitField0_; - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2971 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2971 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object zone_ = ""; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2977 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2977 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object clusterId_ = ""; - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2981 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2981 - * @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_ = 0; - /** - * - * - *
-   * Required. The exact form of action to be taken on the master auth.
-   * 
- * - * - * .google.container.v1.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.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The action. - */ - @java.lang.Override - public com.google.container.v1.SetMasterAuthRequest.Action getAction() { - com.google.container.v1.SetMasterAuthRequest.Action result = - com.google.container.v1.SetMasterAuthRequest.Action.forNumber(action_); - return result == null - ? com.google.container.v1.SetMasterAuthRequest.Action.UNRECOGNIZED - : result; - } - - public static final int UPDATE_FIELD_NUMBER = 5; - private com.google.container.v1.MasterAuth update_; - /** - * - * - *
-   * Required. A description of the update.
-   * 
- * - * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the update field is set. - */ - @java.lang.Override - public boolean hasUpdate() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Required. A description of the update.
-   * 
- * - * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The update. - */ - @java.lang.Override - public com.google.container.v1.MasterAuth getUpdate() { - return update_ == null ? com.google.container.v1.MasterAuth.getDefaultInstance() : update_; - } - /** - * - * - *
-   * Required. A description of the update.
-   * 
- * - * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.container.v1.MasterAuthOrBuilder getUpdateOrBuilder() { - return update_ == null ? com.google.container.v1.MasterAuth.getDefaultInstance() : update_; - } - - public static final int NAME_FIELD_NUMBER = 7; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (action_ != com.google.container.v1.SetMasterAuthRequest.Action.UNKNOWN.getNumber()) { - output.writeEnum(4, action_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(5, getUpdate()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (action_ != com.google.container.v1.SetMasterAuthRequest.Action.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, action_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdate()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.SetMasterAuthRequest)) { - return super.equals(obj); - } - com.google.container.v1.SetMasterAuthRequest other = - (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.SetMasterAuthRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.SetMasterAuthRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.SetMasterAuthRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetMasterAuthRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetMasterAuthRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.SetMasterAuthRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.SetMasterAuthRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.SetMasterAuthRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.SetMasterAuthRequest) - com.google.container.v1.SetMasterAuthRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetMasterAuthRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetMasterAuthRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetMasterAuthRequest.class, - com.google.container.v1.SetMasterAuthRequest.Builder.class); - } - - // Construct using com.google.container.v1.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) { - getUpdateFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - action_ = 0; - update_ = null; - if (updateBuilder_ != null) { - updateBuilder_.dispose(); - updateBuilder_ = null; - } - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetMasterAuthRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.SetMasterAuthRequest getDefaultInstanceForType() { - return com.google.container.v1.SetMasterAuthRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.SetMasterAuthRequest build() { - com.google.container.v1.SetMasterAuthRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.SetMasterAuthRequest buildPartial() { - com.google.container.v1.SetMasterAuthRequest result = - new com.google.container.v1.SetMasterAuthRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.SetMasterAuthRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.action_ = action_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000010) != 0)) { - result.update_ = updateBuilder_ == null ? update_ : updateBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.name_ = name_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.SetMasterAuthRequest) { - return mergeFrom((com.google.container.v1.SetMasterAuthRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.SetMasterAuthRequest other) { - if (other == com.google.container.v1.SetMasterAuthRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.action_ != 0) { - setActionValue(other.getActionValue()); - } - if (other.hasUpdate()) { - mergeUpdate(other.getUpdate()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000020; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - action_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - input.readMessage(getUpdateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 58: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2971 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2971 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2971 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2971 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2971 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2977 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2977 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2977 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2977 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2977 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2981 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2981 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2981 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2981 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2981 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private int action_ = 0; - /** - * - * - *
-     * Required. The exact form of action to be taken on the master auth.
-     * 
- * - * - * .google.container.v1.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.v1.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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The exact form of action to be taken on the master auth.
-     * 
- * - * - * .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The action. - */ - @java.lang.Override - public com.google.container.v1.SetMasterAuthRequest.Action getAction() { - com.google.container.v1.SetMasterAuthRequest.Action result = - com.google.container.v1.SetMasterAuthRequest.Action.forNumber(action_); - return result == null - ? com.google.container.v1.SetMasterAuthRequest.Action.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Required. The exact form of action to be taken on the master auth.
-     * 
- * - * - * .google.container.v1.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.v1.SetMasterAuthRequest.Action value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - action_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The exact form of action to be taken on the master auth.
-     * 
- * - * - * .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return This builder for chaining. - */ - public Builder clearAction() { - bitField0_ = (bitField0_ & ~0x00000008); - action_ = 0; - onChanged(); - return this; - } - - private com.google.container.v1.MasterAuth update_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MasterAuth, - com.google.container.v1.MasterAuth.Builder, - com.google.container.v1.MasterAuthOrBuilder> - updateBuilder_; - /** - * - * - *
-     * Required. A description of the update.
-     * 
- * - * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the update field is set. - */ - public boolean hasUpdate() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-     * Required. A description of the update.
-     * 
- * - * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The update. - */ - public com.google.container.v1.MasterAuth getUpdate() { - if (updateBuilder_ == null) { - return update_ == null ? com.google.container.v1.MasterAuth.getDefaultInstance() : update_; - } else { - return updateBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. A description of the update.
-     * 
- * - * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdate(com.google.container.v1.MasterAuth value) { - if (updateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - update_ = value; - } else { - updateBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. A description of the update.
-     * 
- * - * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdate(com.google.container.v1.MasterAuth.Builder builderForValue) { - if (updateBuilder_ == null) { - update_ = builderForValue.build(); - } else { - updateBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. A description of the update.
-     * 
- * - * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdate(com.google.container.v1.MasterAuth value) { - if (updateBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && update_ != null - && update_ != com.google.container.v1.MasterAuth.getDefaultInstance()) { - getUpdateBuilder().mergeFrom(value); - } else { - update_ = value; - } - } else { - updateBuilder_.mergeFrom(value); - } - if (update_ != null) { - bitField0_ |= 0x00000010; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Required. A description of the update.
-     * 
- * - * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdate() { - bitField0_ = (bitField0_ & ~0x00000010); - update_ = null; - if (updateBuilder_ != null) { - updateBuilder_.dispose(); - updateBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Required. A description of the update.
-     * 
- * - * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.container.v1.MasterAuth.Builder getUpdateBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getUpdateFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. A description of the update.
-     * 
- * - * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.container.v1.MasterAuthOrBuilder getUpdateOrBuilder() { - if (updateBuilder_ != null) { - return updateBuilder_.getMessageOrBuilder(); - } else { - return update_ == null ? com.google.container.v1.MasterAuth.getDefaultInstance() : update_; - } - } - /** - * - * - *
-     * Required. A description of the update.
-     * 
- * - * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MasterAuth, - com.google.container.v1.MasterAuth.Builder, - com.google.container.v1.MasterAuthOrBuilder> - getUpdateFieldBuilder() { - if (updateBuilder_ == null) { - updateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MasterAuth, - com.google.container.v1.MasterAuth.Builder, - com.google.container.v1.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; - bitField0_ |= 0x00000020; - 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(); - bitField0_ = (bitField0_ & ~0x00000020); - 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; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.SetMasterAuthRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.SetMasterAuthRequest) - private static final com.google.container.v1.SetMasterAuthRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.SetMasterAuthRequest(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.SetMasterAuthRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java deleted file mode 100644 index b567bd92dd27..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java +++ /dev/null @@ -1,225 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface SetMasterAuthRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.SetMasterAuthRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2971 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2971 - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2977 - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2977 - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2981 - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2981 - * @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.v1.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.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The action. - */ - com.google.container.v1.SetMasterAuthRequest.Action getAction(); - - /** - * - * - *
-   * Required. A description of the update.
-   * 
- * - * .google.container.v1.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.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The update. - */ - com.google.container.v1.MasterAuth getUpdate(); - /** - * - * - *
-   * Required. A description of the update.
-   * 
- * - * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.container.v1.MasterAuthOrBuilder getUpdateOrBuilder(); - - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to set auth.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 7; - * - * @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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java deleted file mode 100644 index 5f6ebc1d7869..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java +++ /dev/null @@ -1,1535 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * SetMonitoringServiceRequest sets the monitoring service of a cluster.
- * 
- * - * Protobuf type {@code google.container.v1.SetMonitoringServiceRequest} - */ -public final class SetMonitoringServiceRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetMonitoringServiceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetMonitoringServiceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetMonitoringServiceRequest.class, - com.google.container.v1.SetMonitoringServiceRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2827 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2827 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object zone_ = ""; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2833 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2833 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object clusterId_ = ""; - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2837 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2837 - * @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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(monitoringService_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, monitoringService_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(monitoringService_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, monitoringService_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.SetMonitoringServiceRequest)) { - return super.equals(obj); - } - com.google.container.v1.SetMonitoringServiceRequest other = - (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.SetMonitoringServiceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.SetMonitoringServiceRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.SetMonitoringServiceRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetMonitoringServiceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetMonitoringServiceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.SetMonitoringServiceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.SetMonitoringServiceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.SetMonitoringServiceRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.SetMonitoringServiceRequest) - com.google.container.v1.SetMonitoringServiceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetMonitoringServiceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetMonitoringServiceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetMonitoringServiceRequest.class, - com.google.container.v1.SetMonitoringServiceRequest.Builder.class); - } - - // Construct using com.google.container.v1.SetMonitoringServiceRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - monitoringService_ = ""; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetMonitoringServiceRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.SetMonitoringServiceRequest getDefaultInstanceForType() { - return com.google.container.v1.SetMonitoringServiceRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.SetMonitoringServiceRequest build() { - com.google.container.v1.SetMonitoringServiceRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.SetMonitoringServiceRequest buildPartial() { - com.google.container.v1.SetMonitoringServiceRequest result = - new com.google.container.v1.SetMonitoringServiceRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.SetMonitoringServiceRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.monitoringService_ = monitoringService_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.SetMonitoringServiceRequest) { - return mergeFrom((com.google.container.v1.SetMonitoringServiceRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.SetMonitoringServiceRequest other) { - if (other == com.google.container.v1.SetMonitoringServiceRequest.getDefaultInstance()) - return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getMonitoringService().isEmpty()) { - monitoringService_ = other.monitoringService_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000010; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - monitoringService_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 50: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2827 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2827 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2827 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2827 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2827 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2833 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2833 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2833 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2833 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2833 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2837 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2837 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2837 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2837 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2837 - * @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; - bitField0_ |= 0x00000004; - 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; - bitField0_ |= 0x00000008; - 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(); - bitField0_ = (bitField0_ & ~0x00000008); - 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; - bitField0_ |= 0x00000008; - 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; - bitField0_ |= 0x00000010; - 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(); - bitField0_ = (bitField0_ & ~0x00000010); - 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; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.SetMonitoringServiceRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.SetMonitoringServiceRequest) - private static final com.google.container.v1.SetMonitoringServiceRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.SetMonitoringServiceRequest(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.SetMonitoringServiceRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java deleted file mode 100644 index 4606b60d7e81..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java +++ /dev/null @@ -1,203 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface SetMonitoringServiceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.SetMonitoringServiceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2827 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2827 - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2833 - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2833 - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2837 - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2837 - * @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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java deleted file mode 100644 index 8f0211de017c..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java +++ /dev/null @@ -1,1587 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * SetNetworkPolicyRequest enables/disables network policy for a cluster.
- * 
- * - * Protobuf type {@code google.container.v1.SetNetworkPolicyRequest} - */ -public final class SetNetworkPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetNetworkPolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetNetworkPolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetNetworkPolicyRequest.class, - com.google.container.v1.SetNetworkPolicyRequest.Builder.class); - } - - private int bitField0_; - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4219 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4219 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object zone_ = ""; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4225 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4225 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object clusterId_ = ""; - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4229 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4229 - * @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.v1.NetworkPolicy networkPolicy_; - /** - * - * - *
-   * Required. Configuration options for the NetworkPolicy feature.
-   * 
- * - * - * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the networkPolicy field is set. - */ - @java.lang.Override - public boolean hasNetworkPolicy() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Required. Configuration options for the NetworkPolicy feature.
-   * 
- * - * - * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The networkPolicy. - */ - @java.lang.Override - public com.google.container.v1.NetworkPolicy getNetworkPolicy() { - return networkPolicy_ == null - ? com.google.container.v1.NetworkPolicy.getDefaultInstance() - : networkPolicy_; - } - /** - * - * - *
-   * Required. Configuration options for the NetworkPolicy feature.
-   * 
- * - * - * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.container.v1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder() { - return networkPolicy_ == null - ? com.google.container.v1.NetworkPolicy.getDefaultInstance() - : networkPolicy_; - } - - public static final int NAME_FIELD_NUMBER = 6; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * The name (project, location, cluster name) 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 name) 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(4, getNetworkPolicy()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getNetworkPolicy()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.SetNetworkPolicyRequest)) { - return super.equals(obj); - } - com.google.container.v1.SetNetworkPolicyRequest other = - (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.SetNetworkPolicyRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.SetNetworkPolicyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.SetNetworkPolicyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetNetworkPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetNetworkPolicyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.SetNetworkPolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.SetNetworkPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.SetNetworkPolicyRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.SetNetworkPolicyRequest) - com.google.container.v1.SetNetworkPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetNetworkPolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetNetworkPolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetNetworkPolicyRequest.class, - com.google.container.v1.SetNetworkPolicyRequest.Builder.class); - } - - // Construct using com.google.container.v1.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) { - getNetworkPolicyFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - networkPolicy_ = null; - if (networkPolicyBuilder_ != null) { - networkPolicyBuilder_.dispose(); - networkPolicyBuilder_ = null; - } - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetNetworkPolicyRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.SetNetworkPolicyRequest getDefaultInstanceForType() { - return com.google.container.v1.SetNetworkPolicyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.SetNetworkPolicyRequest build() { - com.google.container.v1.SetNetworkPolicyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.SetNetworkPolicyRequest buildPartial() { - com.google.container.v1.SetNetworkPolicyRequest result = - new com.google.container.v1.SetNetworkPolicyRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.SetNetworkPolicyRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.networkPolicy_ = - networkPolicyBuilder_ == null ? networkPolicy_ : networkPolicyBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.name_ = name_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.SetNetworkPolicyRequest) { - return mergeFrom((com.google.container.v1.SetNetworkPolicyRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.SetNetworkPolicyRequest other) { - if (other == com.google.container.v1.SetNetworkPolicyRequest.getDefaultInstance()) - return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasNetworkPolicy()) { - mergeNetworkPolicy(other.getNetworkPolicy()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000010; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getNetworkPolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 50: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4219 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4219 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4219 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4219 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4219 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4225 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4225 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4225 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4225 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4225 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4229 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4229 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4229 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4229 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4229 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private com.google.container.v1.NetworkPolicy networkPolicy_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkPolicy, - com.google.container.v1.NetworkPolicy.Builder, - com.google.container.v1.NetworkPolicyOrBuilder> - networkPolicyBuilder_; - /** - * - * - *
-     * Required. Configuration options for the NetworkPolicy feature.
-     * 
- * - * - * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the networkPolicy field is set. - */ - public boolean hasNetworkPolicy() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-     * Required. Configuration options for the NetworkPolicy feature.
-     * 
- * - * - * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The networkPolicy. - */ - public com.google.container.v1.NetworkPolicy getNetworkPolicy() { - if (networkPolicyBuilder_ == null) { - return networkPolicy_ == null - ? com.google.container.v1.NetworkPolicy.getDefaultInstance() - : networkPolicy_; - } else { - return networkPolicyBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. Configuration options for the NetworkPolicy feature.
-     * 
- * - * - * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setNetworkPolicy(com.google.container.v1.NetworkPolicy value) { - if (networkPolicyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - networkPolicy_ = value; - } else { - networkPolicyBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Configuration options for the NetworkPolicy feature.
-     * 
- * - * - * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setNetworkPolicy(com.google.container.v1.NetworkPolicy.Builder builderForValue) { - if (networkPolicyBuilder_ == null) { - networkPolicy_ = builderForValue.build(); - } else { - networkPolicyBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Configuration options for the NetworkPolicy feature.
-     * 
- * - * - * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeNetworkPolicy(com.google.container.v1.NetworkPolicy value) { - if (networkPolicyBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && networkPolicy_ != null - && networkPolicy_ != com.google.container.v1.NetworkPolicy.getDefaultInstance()) { - getNetworkPolicyBuilder().mergeFrom(value); - } else { - networkPolicy_ = value; - } - } else { - networkPolicyBuilder_.mergeFrom(value); - } - if (networkPolicy_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Required. Configuration options for the NetworkPolicy feature.
-     * 
- * - * - * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearNetworkPolicy() { - bitField0_ = (bitField0_ & ~0x00000008); - networkPolicy_ = null; - if (networkPolicyBuilder_ != null) { - networkPolicyBuilder_.dispose(); - networkPolicyBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Configuration options for the NetworkPolicy feature.
-     * 
- * - * - * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.container.v1.NetworkPolicy.Builder getNetworkPolicyBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getNetworkPolicyFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. Configuration options for the NetworkPolicy feature.
-     * 
- * - * - * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.container.v1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder() { - if (networkPolicyBuilder_ != null) { - return networkPolicyBuilder_.getMessageOrBuilder(); - } else { - return networkPolicy_ == null - ? com.google.container.v1.NetworkPolicy.getDefaultInstance() - : networkPolicy_; - } - } - /** - * - * - *
-     * Required. Configuration options for the NetworkPolicy feature.
-     * 
- * - * - * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkPolicy, - com.google.container.v1.NetworkPolicy.Builder, - com.google.container.v1.NetworkPolicyOrBuilder> - getNetworkPolicyFieldBuilder() { - if (networkPolicyBuilder_ == null) { - networkPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkPolicy, - com.google.container.v1.NetworkPolicy.Builder, - com.google.container.v1.NetworkPolicyOrBuilder>( - getNetworkPolicy(), getParentForChildren(), isClean()); - networkPolicy_ = null; - } - return networkPolicyBuilder_; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name (project, location, cluster name) 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 name) 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 name) 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; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster name) 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(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster name) 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; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.SetNetworkPolicyRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.SetNetworkPolicyRequest) - private static final com.google.container.v1.SetNetworkPolicyRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.SetNetworkPolicyRequest(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.SetNetworkPolicyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java deleted file mode 100644 index 6e85299c3ce7..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java +++ /dev/null @@ -1,199 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface SetNetworkPolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.SetNetworkPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4219 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4219 - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4225 - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4225 - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4229 - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4229 - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getClusterIdBytes(); - - /** - * - * - *
-   * Required. Configuration options for the NetworkPolicy feature.
-   * 
- * - * - * .google.container.v1.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.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The networkPolicy. - */ - com.google.container.v1.NetworkPolicy getNetworkPolicy(); - /** - * - * - *
-   * Required. Configuration options for the NetworkPolicy feature.
-   * 
- * - * - * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.container.v1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder(); - - /** - * - * - *
-   * The name (project, location, cluster name) 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 name) 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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java deleted file mode 100644 index 9f0b1c0a4fe5..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java +++ /dev/null @@ -1,1806 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool.
- * 
- * - * Protobuf type {@code google.container.v1.SetNodePoolAutoscalingRequest} - */ -public final class SetNodePoolAutoscalingRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetNodePoolAutoscalingRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetNodePoolAutoscalingRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetNodePoolAutoscalingRequest.class, - com.google.container.v1.SetNodePoolAutoscalingRequest.Builder.class); - } - - private int bitField0_; - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2762 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2762 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object zone_ = ""; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2768 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2768 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object clusterId_ = ""; - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2772 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2772 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object nodePoolId_ = ""; - /** - * - * - *
-   * Deprecated. The name of the node pool to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2776 - * @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; - } - } - /** - * - * - *
-   * 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]; - * - * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2776 - * @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.v1.NodePoolAutoscaling autoscaling_; - /** - * - * - *
-   * Required. Autoscaling configuration for the node pool.
-   * 
- * - * - * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the autoscaling field is set. - */ - @java.lang.Override - public boolean hasAutoscaling() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Required. Autoscaling configuration for the node pool.
-   * 
- * - * - * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The autoscaling. - */ - @java.lang.Override - public com.google.container.v1.NodePoolAutoscaling getAutoscaling() { - return autoscaling_ == null - ? com.google.container.v1.NodePoolAutoscaling.getDefaultInstance() - : autoscaling_; - } - /** - * - * - *
-   * Required. Autoscaling configuration for the node pool.
-   * 
- * - * - * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.container.v1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder() { - return autoscaling_ == null - ? com.google.container.v1.NodePoolAutoscaling.getDefaultInstance() - : autoscaling_; - } - - public static final int NAME_FIELD_NUMBER = 6; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(5, getAutoscaling()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAutoscaling()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.SetNodePoolAutoscalingRequest)) { - return super.equals(obj); - } - com.google.container.v1.SetNodePoolAutoscalingRequest other = - (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.SetNodePoolAutoscalingRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.SetNodePoolAutoscalingRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.SetNodePoolAutoscalingRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetNodePoolAutoscalingRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetNodePoolAutoscalingRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.SetNodePoolAutoscalingRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.SetNodePoolAutoscalingRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.SetNodePoolAutoscalingRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.SetNodePoolAutoscalingRequest) - com.google.container.v1.SetNodePoolAutoscalingRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetNodePoolAutoscalingRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetNodePoolAutoscalingRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetNodePoolAutoscalingRequest.class, - com.google.container.v1.SetNodePoolAutoscalingRequest.Builder.class); - } - - // Construct using com.google.container.v1.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) { - getAutoscalingFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - nodePoolId_ = ""; - autoscaling_ = null; - if (autoscalingBuilder_ != null) { - autoscalingBuilder_.dispose(); - autoscalingBuilder_ = null; - } - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetNodePoolAutoscalingRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.SetNodePoolAutoscalingRequest getDefaultInstanceForType() { - return com.google.container.v1.SetNodePoolAutoscalingRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.SetNodePoolAutoscalingRequest build() { - com.google.container.v1.SetNodePoolAutoscalingRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.SetNodePoolAutoscalingRequest buildPartial() { - com.google.container.v1.SetNodePoolAutoscalingRequest result = - new com.google.container.v1.SetNodePoolAutoscalingRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.SetNodePoolAutoscalingRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.nodePoolId_ = nodePoolId_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000010) != 0)) { - result.autoscaling_ = - autoscalingBuilder_ == null ? autoscaling_ : autoscalingBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.name_ = name_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.SetNodePoolAutoscalingRequest) { - return mergeFrom((com.google.container.v1.SetNodePoolAutoscalingRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.SetNodePoolAutoscalingRequest other) { - if (other == com.google.container.v1.SetNodePoolAutoscalingRequest.getDefaultInstance()) - return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getNodePoolId().isEmpty()) { - nodePoolId_ = other.nodePoolId_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (other.hasAutoscaling()) { - mergeAutoscaling(other.getAutoscaling()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000020; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - nodePoolId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage(getAutoscalingFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2762 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2762 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2762 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2762 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2762 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2768 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2768 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2768 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2768 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2768 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2772 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2772 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2772 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2772 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2772 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object nodePoolId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the node pool to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2776 - * @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; - } - } - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2776 - * @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; - } - } - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2776 - * @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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the node pool to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2776 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearNodePoolId() { - nodePoolId_ = getDefaultInstance().getNodePoolId(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the node pool to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2776 - * @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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private com.google.container.v1.NodePoolAutoscaling autoscaling_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePoolAutoscaling, - com.google.container.v1.NodePoolAutoscaling.Builder, - com.google.container.v1.NodePoolAutoscalingOrBuilder> - autoscalingBuilder_; - /** - * - * - *
-     * Required. Autoscaling configuration for the node pool.
-     * 
- * - * - * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the autoscaling field is set. - */ - public boolean hasAutoscaling() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-     * Required. Autoscaling configuration for the node pool.
-     * 
- * - * - * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The autoscaling. - */ - public com.google.container.v1.NodePoolAutoscaling getAutoscaling() { - if (autoscalingBuilder_ == null) { - return autoscaling_ == null - ? com.google.container.v1.NodePoolAutoscaling.getDefaultInstance() - : autoscaling_; - } else { - return autoscalingBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. Autoscaling configuration for the node pool.
-     * 
- * - * - * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setAutoscaling(com.google.container.v1.NodePoolAutoscaling value) { - if (autoscalingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - autoscaling_ = value; - } else { - autoscalingBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Autoscaling configuration for the node pool.
-     * 
- * - * - * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setAutoscaling( - com.google.container.v1.NodePoolAutoscaling.Builder builderForValue) { - if (autoscalingBuilder_ == null) { - autoscaling_ = builderForValue.build(); - } else { - autoscalingBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Autoscaling configuration for the node pool.
-     * 
- * - * - * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeAutoscaling(com.google.container.v1.NodePoolAutoscaling value) { - if (autoscalingBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && autoscaling_ != null - && autoscaling_ != com.google.container.v1.NodePoolAutoscaling.getDefaultInstance()) { - getAutoscalingBuilder().mergeFrom(value); - } else { - autoscaling_ = value; - } - } else { - autoscalingBuilder_.mergeFrom(value); - } - if (autoscaling_ != null) { - bitField0_ |= 0x00000010; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Required. Autoscaling configuration for the node pool.
-     * 
- * - * - * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearAutoscaling() { - bitField0_ = (bitField0_ & ~0x00000010); - autoscaling_ = null; - if (autoscalingBuilder_ != null) { - autoscalingBuilder_.dispose(); - autoscalingBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Autoscaling configuration for the node pool.
-     * 
- * - * - * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.container.v1.NodePoolAutoscaling.Builder getAutoscalingBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getAutoscalingFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. Autoscaling configuration for the node pool.
-     * 
- * - * - * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.container.v1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder() { - if (autoscalingBuilder_ != null) { - return autoscalingBuilder_.getMessageOrBuilder(); - } else { - return autoscaling_ == null - ? com.google.container.v1.NodePoolAutoscaling.getDefaultInstance() - : autoscaling_; - } - } - /** - * - * - *
-     * Required. Autoscaling configuration for the node pool.
-     * 
- * - * - * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePoolAutoscaling, - com.google.container.v1.NodePoolAutoscaling.Builder, - com.google.container.v1.NodePoolAutoscalingOrBuilder> - getAutoscalingFieldBuilder() { - if (autoscalingBuilder_ == null) { - autoscalingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePoolAutoscaling, - com.google.container.v1.NodePoolAutoscaling.Builder, - com.google.container.v1.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; - bitField0_ |= 0x00000020; - 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(); - bitField0_ = (bitField0_ & ~0x00000020); - 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; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.SetNodePoolAutoscalingRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.SetNodePoolAutoscalingRequest) - private static final com.google.container.v1.SetNodePoolAutoscalingRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.SetNodePoolAutoscalingRequest(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.SetNodePoolAutoscalingRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java deleted file mode 100644 index a424b4ef3718..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java +++ /dev/null @@ -1,234 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface SetNodePoolAutoscalingRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.SetNodePoolAutoscalingRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2762 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2762 - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2768 - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2768 - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2772 - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2772 - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getClusterIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the node pool to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2776 - * @return The nodePoolId. - */ - @java.lang.Deprecated - java.lang.String getNodePoolId(); - /** - * - * - *
-   * Deprecated. The name of the node pool to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2776 - * @return The bytes for nodePoolId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getNodePoolIdBytes(); - - /** - * - * - *
-   * Required. Autoscaling configuration for the node pool.
-   * 
- * - * - * .google.container.v1.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.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The autoscaling. - */ - com.google.container.v1.NodePoolAutoscaling getAutoscaling(); - /** - * - * - *
-   * Required. Autoscaling configuration for the node pool.
-   * 
- * - * - * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.container.v1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder(); - - /** - * - * - *
-   * The name (project, location, cluster, node pool) of the node pool to set
-   * autoscaler settings. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 6; - * - * @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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java deleted file mode 100644 index ec8cadcea0f1..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java +++ /dev/null @@ -1,1805 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * SetNodePoolManagementRequest sets the node management properties of a node
- * pool.
- * 
- * - * Protobuf type {@code google.container.v1.SetNodePoolManagementRequest} - */ -public final class SetNodePoolManagementRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetNodePoolManagementRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetNodePoolManagementRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetNodePoolManagementRequest.class, - com.google.container.v1.SetNodePoolManagementRequest.Builder.class); - } - - private int bitField0_; - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3757 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3757 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object zone_ = ""; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3763 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3763 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object clusterId_ = ""; - /** - * - * - *
-   * Deprecated. The name of the cluster to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3767 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3767 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object nodePoolId_ = ""; - /** - * - * - *
-   * Deprecated. The name of the node pool to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3771 - * @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; - } - } - /** - * - * - *
-   * 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]; - * - * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3771 - * @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.v1.NodeManagement management_; - /** - * - * - *
-   * Required. NodeManagement configuration for the node pool.
-   * 
- * - * - * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the management field is set. - */ - @java.lang.Override - public boolean hasManagement() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Required. NodeManagement configuration for the node pool.
-   * 
- * - * - * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The management. - */ - @java.lang.Override - public com.google.container.v1.NodeManagement getManagement() { - return management_ == null - ? com.google.container.v1.NodeManagement.getDefaultInstance() - : management_; - } - /** - * - * - *
-   * Required. NodeManagement configuration for the node pool.
-   * 
- * - * - * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() { - return management_ == null - ? com.google.container.v1.NodeManagement.getDefaultInstance() - : management_; - } - - public static final int NAME_FIELD_NUMBER = 7; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(5, getManagement()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getManagement()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.SetNodePoolManagementRequest)) { - return super.equals(obj); - } - com.google.container.v1.SetNodePoolManagementRequest other = - (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.SetNodePoolManagementRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.SetNodePoolManagementRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.SetNodePoolManagementRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetNodePoolManagementRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetNodePoolManagementRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.SetNodePoolManagementRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.SetNodePoolManagementRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.SetNodePoolManagementRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.SetNodePoolManagementRequest) - com.google.container.v1.SetNodePoolManagementRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetNodePoolManagementRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetNodePoolManagementRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetNodePoolManagementRequest.class, - com.google.container.v1.SetNodePoolManagementRequest.Builder.class); - } - - // Construct using com.google.container.v1.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) { - getManagementFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - nodePoolId_ = ""; - management_ = null; - if (managementBuilder_ != null) { - managementBuilder_.dispose(); - managementBuilder_ = null; - } - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetNodePoolManagementRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.SetNodePoolManagementRequest getDefaultInstanceForType() { - return com.google.container.v1.SetNodePoolManagementRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.SetNodePoolManagementRequest build() { - com.google.container.v1.SetNodePoolManagementRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.SetNodePoolManagementRequest buildPartial() { - com.google.container.v1.SetNodePoolManagementRequest result = - new com.google.container.v1.SetNodePoolManagementRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.SetNodePoolManagementRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.nodePoolId_ = nodePoolId_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000010) != 0)) { - result.management_ = managementBuilder_ == null ? management_ : managementBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.name_ = name_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.SetNodePoolManagementRequest) { - return mergeFrom((com.google.container.v1.SetNodePoolManagementRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.SetNodePoolManagementRequest other) { - if (other == com.google.container.v1.SetNodePoolManagementRequest.getDefaultInstance()) - return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getNodePoolId().isEmpty()) { - nodePoolId_ = other.nodePoolId_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (other.hasManagement()) { - mergeManagement(other.getManagement()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000020; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - nodePoolId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage(getManagementFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 58: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3757 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3757 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3757 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3757 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3757 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3763 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3763 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3763 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3763 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3763 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3767 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3767 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3767 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3767 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3767 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object nodePoolId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the node pool to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3771 - * @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; - } - } - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3771 - * @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; - } - } - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3771 - * @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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the node pool to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3771 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearNodePoolId() { - nodePoolId_ = getDefaultInstance().getNodePoolId(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the node pool to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3771 - * @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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private com.google.container.v1.NodeManagement management_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeManagement, - com.google.container.v1.NodeManagement.Builder, - com.google.container.v1.NodeManagementOrBuilder> - managementBuilder_; - /** - * - * - *
-     * Required. NodeManagement configuration for the node pool.
-     * 
- * - * - * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the management field is set. - */ - public boolean hasManagement() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-     * Required. NodeManagement configuration for the node pool.
-     * 
- * - * - * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The management. - */ - public com.google.container.v1.NodeManagement getManagement() { - if (managementBuilder_ == null) { - return management_ == null - ? com.google.container.v1.NodeManagement.getDefaultInstance() - : management_; - } else { - return managementBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. NodeManagement configuration for the node pool.
-     * 
- * - * - * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setManagement(com.google.container.v1.NodeManagement value) { - if (managementBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - management_ = value; - } else { - managementBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. NodeManagement configuration for the node pool.
-     * 
- * - * - * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setManagement(com.google.container.v1.NodeManagement.Builder builderForValue) { - if (managementBuilder_ == null) { - management_ = builderForValue.build(); - } else { - managementBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. NodeManagement configuration for the node pool.
-     * 
- * - * - * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeManagement(com.google.container.v1.NodeManagement value) { - if (managementBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && management_ != null - && management_ != com.google.container.v1.NodeManagement.getDefaultInstance()) { - getManagementBuilder().mergeFrom(value); - } else { - management_ = value; - } - } else { - managementBuilder_.mergeFrom(value); - } - if (management_ != null) { - bitField0_ |= 0x00000010; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Required. NodeManagement configuration for the node pool.
-     * 
- * - * - * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearManagement() { - bitField0_ = (bitField0_ & ~0x00000010); - management_ = null; - if (managementBuilder_ != null) { - managementBuilder_.dispose(); - managementBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Required. NodeManagement configuration for the node pool.
-     * 
- * - * - * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.container.v1.NodeManagement.Builder getManagementBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getManagementFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. NodeManagement configuration for the node pool.
-     * 
- * - * - * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() { - if (managementBuilder_ != null) { - return managementBuilder_.getMessageOrBuilder(); - } else { - return management_ == null - ? com.google.container.v1.NodeManagement.getDefaultInstance() - : management_; - } - } - /** - * - * - *
-     * Required. NodeManagement configuration for the node pool.
-     * 
- * - * - * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeManagement, - com.google.container.v1.NodeManagement.Builder, - com.google.container.v1.NodeManagementOrBuilder> - getManagementFieldBuilder() { - if (managementBuilder_ == null) { - managementBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeManagement, - com.google.container.v1.NodeManagement.Builder, - com.google.container.v1.NodeManagementOrBuilder>( - getManagement(), getParentForChildren(), isClean()); - management_ = null; - } - return managementBuilder_; - } - - private java.lang.Object 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; - bitField0_ |= 0x00000020; - 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(); - bitField0_ = (bitField0_ & ~0x00000020); - 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; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.SetNodePoolManagementRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.SetNodePoolManagementRequest) - private static final com.google.container.v1.SetNodePoolManagementRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.SetNodePoolManagementRequest(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.SetNodePoolManagementRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java deleted file mode 100644 index 67e8d2a701e7..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java +++ /dev/null @@ -1,234 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface SetNodePoolManagementRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.SetNodePoolManagementRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3757 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3757 - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3763 - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3763 - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3767 - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3767 - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getClusterIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the node pool to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3771 - * @return The nodePoolId. - */ - @java.lang.Deprecated - java.lang.String getNodePoolId(); - /** - * - * - *
-   * Deprecated. The name of the node pool to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3771 - * @return The bytes for nodePoolId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getNodePoolIdBytes(); - - /** - * - * - *
-   * Required. NodeManagement configuration for the node pool.
-   * 
- * - * - * .google.container.v1.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.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The management. - */ - com.google.container.v1.NodeManagement getManagement(); - /** - * - * - *
-   * Required. NodeManagement configuration for the node pool.
-   * 
- * - * - * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder(); - - /** - * - * - *
-   * The name (project, location, cluster, node pool id) of the node pool to set
-   * management properties. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 7; - * - * @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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java deleted file mode 100644 index 9ce381d21721..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java +++ /dev/null @@ -1,1592 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * SetNodePoolSizeRequest sets the size of a node pool.
- * 
- * - * Protobuf type {@code google.container.v1.SetNodePoolSizeRequest} - */ -public final class SetNodePoolSizeRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetNodePoolSizeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetNodePoolSizeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetNodePoolSizeRequest.class, - com.google.container.v1.SetNodePoolSizeRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3787 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3787 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object zone_ = ""; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3793 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3793 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object clusterId_ = ""; - /** - * - * - *
-   * Deprecated. The name of the cluster to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3797 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3797 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object nodePoolId_ = ""; - /** - * - * - *
-   * Deprecated. The name of the node pool to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3801 - * @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; - } - } - /** - * - * - *
-   * 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]; - * - * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3801 - * @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_ = 0; - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); - } - if (nodeCount_ != 0) { - output.writeInt32(5, nodeCount_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); - } - if (nodeCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, nodeCount_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.SetNodePoolSizeRequest)) { - return super.equals(obj); - } - com.google.container.v1.SetNodePoolSizeRequest other = - (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.SetNodePoolSizeRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.SetNodePoolSizeRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.SetNodePoolSizeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetNodePoolSizeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetNodePoolSizeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.SetNodePoolSizeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.SetNodePoolSizeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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 of a node pool.
-   * 
- * - * Protobuf type {@code google.container.v1.SetNodePoolSizeRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.SetNodePoolSizeRequest) - com.google.container.v1.SetNodePoolSizeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetNodePoolSizeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetNodePoolSizeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetNodePoolSizeRequest.class, - com.google.container.v1.SetNodePoolSizeRequest.Builder.class); - } - - // Construct using com.google.container.v1.SetNodePoolSizeRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - nodePoolId_ = ""; - nodeCount_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetNodePoolSizeRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.SetNodePoolSizeRequest getDefaultInstanceForType() { - return com.google.container.v1.SetNodePoolSizeRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.SetNodePoolSizeRequest build() { - com.google.container.v1.SetNodePoolSizeRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.SetNodePoolSizeRequest buildPartial() { - com.google.container.v1.SetNodePoolSizeRequest result = - new com.google.container.v1.SetNodePoolSizeRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.SetNodePoolSizeRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.nodePoolId_ = nodePoolId_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.nodeCount_ = nodeCount_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.SetNodePoolSizeRequest) { - return mergeFrom((com.google.container.v1.SetNodePoolSizeRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.SetNodePoolSizeRequest other) { - if (other == com.google.container.v1.SetNodePoolSizeRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getNodePoolId().isEmpty()) { - nodePoolId_ = other.nodePoolId_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (other.getNodeCount() != 0) { - setNodeCount(other.getNodeCount()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000020; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - nodePoolId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: - { - nodeCount_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 58: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3787 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3787 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3787 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3787 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3787 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3793 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3793 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3793 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3793 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3793 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3797 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3797 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3797 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3797 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3797 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object nodePoolId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the node pool to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3801 - * @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; - } - } - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3801 - * @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; - } - } - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3801 - * @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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the node pool to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3801 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearNodePoolId() { - nodePoolId_ = getDefaultInstance().getNodePoolId(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the node pool to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3801 - * @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; - bitField0_ |= 0x00000008; - 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; - bitField0_ |= 0x00000010; - 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() { - bitField0_ = (bitField0_ & ~0x00000010); - 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; - bitField0_ |= 0x00000020; - 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(); - bitField0_ = (bitField0_ & ~0x00000020); - 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; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.SetNodePoolSizeRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.SetNodePoolSizeRequest) - private static final com.google.container.v1.SetNodePoolSizeRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.SetNodePoolSizeRequest(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.SetNodePoolSizeRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java deleted file mode 100644 index a03b5e5289dc..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface SetNodePoolSizeRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.SetNodePoolSizeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3787 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3787 - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3793 - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3793 - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3797 - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3797 - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getClusterIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the node pool to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3801 - * @return The nodePoolId. - */ - @java.lang.Deprecated - java.lang.String getNodePoolId(); - /** - * - * - *
-   * Deprecated. The name of the node pool to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3801 - * @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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedInstanceConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedInstanceConfig.java deleted file mode 100644 index 59a8a673de96..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedInstanceConfig.java +++ /dev/null @@ -1,663 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * A set of Shielded Instance options.
- * 
- * - * Protobuf type {@code google.container.v1.ShieldedInstanceConfig} - */ -public final class ShieldedInstanceConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ShieldedInstanceConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ShieldedInstanceConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ShieldedInstanceConfig.class, - com.google.container.v1.ShieldedInstanceConfig.Builder.class); - } - - public static final int ENABLE_SECURE_BOOT_FIELD_NUMBER = 1; - private boolean enableSecureBoot_ = false; - /** - * - * - *
-   * 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_ = false; - /** - * - * - *
-   * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.ShieldedInstanceConfig)) { - return super.equals(obj); - } - com.google.container.v1.ShieldedInstanceConfig other = - (com.google.container.v1.ShieldedInstanceConfig) obj; - - if (getEnableSecureBoot() != other.getEnableSecureBoot()) return false; - if (getEnableIntegrityMonitoring() != other.getEnableIntegrityMonitoring()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ShieldedInstanceConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.ShieldedInstanceConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.ShieldedInstanceConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ShieldedInstanceConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ShieldedInstanceConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.ShieldedInstanceConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.ShieldedInstanceConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.ShieldedInstanceConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ShieldedInstanceConfig) - com.google.container.v1.ShieldedInstanceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ShieldedInstanceConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ShieldedInstanceConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ShieldedInstanceConfig.class, - com.google.container.v1.ShieldedInstanceConfig.Builder.class); - } - - // Construct using com.google.container.v1.ShieldedInstanceConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enableSecureBoot_ = false; - enableIntegrityMonitoring_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ShieldedInstanceConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ShieldedInstanceConfig getDefaultInstanceForType() { - return com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ShieldedInstanceConfig build() { - com.google.container.v1.ShieldedInstanceConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ShieldedInstanceConfig buildPartial() { - com.google.container.v1.ShieldedInstanceConfig result = - new com.google.container.v1.ShieldedInstanceConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.ShieldedInstanceConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enableSecureBoot_ = enableSecureBoot_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.enableIntegrityMonitoring_ = enableIntegrityMonitoring_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ShieldedInstanceConfig) { - return mergeFrom((com.google.container.v1.ShieldedInstanceConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ShieldedInstanceConfig other) { - if (other == com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance()) return this; - if (other.getEnableSecureBoot() != false) { - setEnableSecureBoot(other.getEnableSecureBoot()); - } - if (other.getEnableIntegrityMonitoring() != false) { - setEnableIntegrityMonitoring(other.getEnableIntegrityMonitoring()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enableSecureBoot_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - enableIntegrityMonitoring_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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() { - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000002; - 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() { - bitField0_ = (bitField0_ & ~0x00000002); - 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.v1.ShieldedInstanceConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ShieldedInstanceConfig) - private static final com.google.container.v1.ShieldedInstanceConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ShieldedInstanceConfig(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.ShieldedInstanceConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedInstanceConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedInstanceConfigOrBuilder.java deleted file mode 100644 index d268b8ada1c0..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedInstanceConfigOrBuilder.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface ShieldedInstanceConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedNodes.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedNodes.java deleted file mode 100644 index 3c80158edf6c..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedNodes.java +++ /dev/null @@ -1,532 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Configuration of Shielded Nodes feature.
- * 
- * - * Protobuf type {@code google.container.v1.ShieldedNodes} - */ -public final class ShieldedNodes extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.ShieldedNodes) - ShieldedNodesOrBuilder { - private static final long serialVersionUID = 0L; - // Use ShieldedNodes.newBuilder() to construct. - private ShieldedNodes(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ShieldedNodes() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ShieldedNodes(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ShieldedNodes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ShieldedNodes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ShieldedNodes.class, - com.google.container.v1.ShieldedNodes.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.ShieldedNodes)) { - return super.equals(obj); - } - com.google.container.v1.ShieldedNodes other = (com.google.container.v1.ShieldedNodes) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ShieldedNodes parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ShieldedNodes parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ShieldedNodes parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ShieldedNodes parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ShieldedNodes parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ShieldedNodes parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ShieldedNodes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ShieldedNodes parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ShieldedNodes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.ShieldedNodes parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ShieldedNodes parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ShieldedNodes parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.ShieldedNodes prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Configuration of Shielded Nodes feature.
-   * 
- * - * Protobuf type {@code google.container.v1.ShieldedNodes} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ShieldedNodes) - com.google.container.v1.ShieldedNodesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ShieldedNodes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ShieldedNodes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ShieldedNodes.class, - com.google.container.v1.ShieldedNodes.Builder.class); - } - - // Construct using com.google.container.v1.ShieldedNodes.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enabled_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ShieldedNodes_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ShieldedNodes getDefaultInstanceForType() { - return com.google.container.v1.ShieldedNodes.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ShieldedNodes build() { - com.google.container.v1.ShieldedNodes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ShieldedNodes buildPartial() { - com.google.container.v1.ShieldedNodes result = - new com.google.container.v1.ShieldedNodes(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.ShieldedNodes result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ShieldedNodes) { - return mergeFrom((com.google.container.v1.ShieldedNodes) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ShieldedNodes other) { - if (other == com.google.container.v1.ShieldedNodes.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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() { - bitField0_ = (bitField0_ & ~0x00000001); - enabled_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.ShieldedNodes) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ShieldedNodes) - private static final com.google.container.v1.ShieldedNodes DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ShieldedNodes(); - } - - public static com.google.container.v1.ShieldedNodes getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ShieldedNodes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.ShieldedNodes getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedNodesOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedNodesOrBuilder.java deleted file mode 100644 index b79911e6b32b..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedNodesOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface ShieldedNodesOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ShieldedNodes) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether Shielded Nodes features are enabled on all nodes in this cluster.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SoleTenantConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SoleTenantConfig.java deleted file mode 100644 index 19232f649892..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SoleTenantConfig.java +++ /dev/null @@ -1,2269 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * SoleTenantConfig contains the NodeAffinities to specify what shared sole
- * tenant node groups should back the node pool.
- * 
- * - * Protobuf type {@code google.container.v1.SoleTenantConfig} - */ -public final class SoleTenantConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.SoleTenantConfig) - SoleTenantConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use SoleTenantConfig.newBuilder() to construct. - private SoleTenantConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SoleTenantConfig() { - nodeAffinities_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SoleTenantConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SoleTenantConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SoleTenantConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SoleTenantConfig.class, - com.google.container.v1.SoleTenantConfig.Builder.class); - } - - public interface NodeAffinityOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.SoleTenantConfig.NodeAffinity) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Key for NodeAffinity.
-     * 
- * - * string key = 1; - * - * @return The key. - */ - java.lang.String getKey(); - /** - * - * - *
-     * Key for NodeAffinity.
-     * 
- * - * string key = 1; - * - * @return The bytes for key. - */ - com.google.protobuf.ByteString getKeyBytes(); - - /** - * - * - *
-     * Operator for NodeAffinity.
-     * 
- * - * .google.container.v1.SoleTenantConfig.NodeAffinity.Operator operator = 2; - * - * @return The enum numeric value on the wire for operator. - */ - int getOperatorValue(); - /** - * - * - *
-     * Operator for NodeAffinity.
-     * 
- * - * .google.container.v1.SoleTenantConfig.NodeAffinity.Operator operator = 2; - * - * @return The operator. - */ - com.google.container.v1.SoleTenantConfig.NodeAffinity.Operator getOperator(); - - /** - * - * - *
-     * Values for NodeAffinity.
-     * 
- * - * repeated string values = 3; - * - * @return A list containing the values. - */ - java.util.List getValuesList(); - /** - * - * - *
-     * Values for NodeAffinity.
-     * 
- * - * repeated string values = 3; - * - * @return The count of values. - */ - int getValuesCount(); - /** - * - * - *
-     * Values for NodeAffinity.
-     * 
- * - * 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); - /** - * - * - *
-     * Values for NodeAffinity.
-     * 
- * - * 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); - } - /** - * - * - *
-   * Specifies the NodeAffinity key, values, and affinity operator according to
-   * [shared sole tenant node group
-   * affinities](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes#node_affinity_and_anti-affinity).
-   * 
- * - * Protobuf type {@code google.container.v1.SoleTenantConfig.NodeAffinity} - */ - public static final class NodeAffinity extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.SoleTenantConfig.NodeAffinity) - NodeAffinityOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeAffinity.newBuilder() to construct. - private NodeAffinity(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NodeAffinity() { - key_ = ""; - operator_ = 0; - values_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NodeAffinity(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SoleTenantConfig_NodeAffinity_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SoleTenantConfig_NodeAffinity_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SoleTenantConfig.NodeAffinity.class, - com.google.container.v1.SoleTenantConfig.NodeAffinity.Builder.class); - } - - /** - * - * - *
-     * Operator allows user to specify affinity or anti-affinity for the
-     * given key values.
-     * 
- * - * Protobuf enum {@code google.container.v1.SoleTenantConfig.NodeAffinity.Operator} - */ - public enum Operator implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-       * Invalid or unspecified affinity operator.
-       * 
- * - * OPERATOR_UNSPECIFIED = 0; - */ - OPERATOR_UNSPECIFIED(0), - /** - * - * - *
-       * Affinity operator.
-       * 
- * - * IN = 1; - */ - IN(1), - /** - * - * - *
-       * Anti-affinity operator.
-       * 
- * - * NOT_IN = 2; - */ - NOT_IN(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-       * Invalid or unspecified affinity operator.
-       * 
- * - * OPERATOR_UNSPECIFIED = 0; - */ - public static final int OPERATOR_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-       * Affinity operator.
-       * 
- * - * IN = 1; - */ - public static final int IN_VALUE = 1; - /** - * - * - *
-       * Anti-affinity operator.
-       * 
- * - * NOT_IN = 2; - */ - public static final int NOT_IN_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 Operator 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 Operator forNumber(int value) { - switch (value) { - case 0: - return OPERATOR_UNSPECIFIED; - case 1: - return IN; - case 2: - return NOT_IN; - 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 Operator findValueByNumber(int number) { - return Operator.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.SoleTenantConfig.NodeAffinity.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final Operator[] VALUES = values(); - - public static Operator 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 Operator(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.SoleTenantConfig.NodeAffinity.Operator) - } - - public static final int KEY_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object key_ = ""; - /** - * - * - *
-     * Key for NodeAffinity.
-     * 
- * - * 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 NodeAffinity.
-     * 
- * - * 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 OPERATOR_FIELD_NUMBER = 2; - private int operator_ = 0; - /** - * - * - *
-     * Operator for NodeAffinity.
-     * 
- * - * .google.container.v1.SoleTenantConfig.NodeAffinity.Operator operator = 2; - * - * @return The enum numeric value on the wire for operator. - */ - @java.lang.Override - public int getOperatorValue() { - return operator_; - } - /** - * - * - *
-     * Operator for NodeAffinity.
-     * 
- * - * .google.container.v1.SoleTenantConfig.NodeAffinity.Operator operator = 2; - * - * @return The operator. - */ - @java.lang.Override - public com.google.container.v1.SoleTenantConfig.NodeAffinity.Operator getOperator() { - com.google.container.v1.SoleTenantConfig.NodeAffinity.Operator result = - com.google.container.v1.SoleTenantConfig.NodeAffinity.Operator.forNumber(operator_); - return result == null - ? com.google.container.v1.SoleTenantConfig.NodeAffinity.Operator.UNRECOGNIZED - : result; - } - - public static final int VALUES_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-     * Values for NodeAffinity.
-     * 
- * - * repeated string values = 3; - * - * @return A list containing the values. - */ - public com.google.protobuf.ProtocolStringList getValuesList() { - return values_; - } - /** - * - * - *
-     * Values for NodeAffinity.
-     * 
- * - * repeated string values = 3; - * - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - /** - * - * - *
-     * Values for NodeAffinity.
-     * 
- * - * 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); - } - /** - * - * - *
-     * Values for NodeAffinity.
-     * 
- * - * 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); - } - if (operator_ - != com.google.container.v1.SoleTenantConfig.NodeAffinity.Operator.OPERATOR_UNSPECIFIED - .getNumber()) { - output.writeEnum(2, operator_); - } - for (int i = 0; i < values_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, values_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); - } - if (operator_ - != com.google.container.v1.SoleTenantConfig.NodeAffinity.Operator.OPERATOR_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, operator_); - } - { - int dataSize = 0; - for (int i = 0; i < values_.size(); i++) { - dataSize += computeStringSizeNoTag(values_.getRaw(i)); - } - size += dataSize; - size += 1 * getValuesList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.SoleTenantConfig.NodeAffinity)) { - return super.equals(obj); - } - com.google.container.v1.SoleTenantConfig.NodeAffinity other = - (com.google.container.v1.SoleTenantConfig.NodeAffinity) obj; - - if (!getKey().equals(other.getKey())) return false; - if (operator_ != other.operator_) return false; - if (!getValuesList().equals(other.getValuesList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + OPERATOR_FIELD_NUMBER; - hash = (53 * hash) + operator_; - if (getValuesCount() > 0) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValuesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.SoleTenantConfig.NodeAffinity parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SoleTenantConfig.NodeAffinity parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SoleTenantConfig.NodeAffinity parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SoleTenantConfig.NodeAffinity parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SoleTenantConfig.NodeAffinity parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SoleTenantConfig.NodeAffinity parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SoleTenantConfig.NodeAffinity parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.SoleTenantConfig.NodeAffinity parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.SoleTenantConfig.NodeAffinity parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.SoleTenantConfig.NodeAffinity parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.SoleTenantConfig.NodeAffinity parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.SoleTenantConfig.NodeAffinity parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.container.v1.SoleTenantConfig.NodeAffinity prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Specifies the NodeAffinity key, values, and affinity operator according to
-     * [shared sole tenant node group
-     * affinities](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes#node_affinity_and_anti-affinity).
-     * 
- * - * Protobuf type {@code google.container.v1.SoleTenantConfig.NodeAffinity} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.SoleTenantConfig.NodeAffinity) - com.google.container.v1.SoleTenantConfig.NodeAffinityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SoleTenantConfig_NodeAffinity_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SoleTenantConfig_NodeAffinity_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SoleTenantConfig.NodeAffinity.class, - com.google.container.v1.SoleTenantConfig.NodeAffinity.Builder.class); - } - - // Construct using com.google.container.v1.SoleTenantConfig.NodeAffinity.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - key_ = ""; - operator_ = 0; - values_ = com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SoleTenantConfig_NodeAffinity_descriptor; - } - - @java.lang.Override - public com.google.container.v1.SoleTenantConfig.NodeAffinity getDefaultInstanceForType() { - return com.google.container.v1.SoleTenantConfig.NodeAffinity.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.SoleTenantConfig.NodeAffinity build() { - com.google.container.v1.SoleTenantConfig.NodeAffinity result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.SoleTenantConfig.NodeAffinity buildPartial() { - com.google.container.v1.SoleTenantConfig.NodeAffinity result = - new com.google.container.v1.SoleTenantConfig.NodeAffinity(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.SoleTenantConfig.NodeAffinity result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.key_ = key_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.operator_ = operator_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - values_.makeImmutable(); - result.values_ = values_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.SoleTenantConfig.NodeAffinity) { - return mergeFrom((com.google.container.v1.SoleTenantConfig.NodeAffinity) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.SoleTenantConfig.NodeAffinity other) { - if (other == com.google.container.v1.SoleTenantConfig.NodeAffinity.getDefaultInstance()) - return this; - if (!other.getKey().isEmpty()) { - key_ = other.key_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.operator_ != 0) { - setOperatorValue(other.getOperatorValue()); - } - if (!other.values_.isEmpty()) { - if (values_.isEmpty()) { - values_ = other.values_; - bitField0_ |= 0x00000004; - } else { - ensureValuesIsMutable(); - values_.addAll(other.values_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - key_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - operator_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureValuesIsMutable(); - values_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object key_ = ""; - /** - * - * - *
-       * Key for NodeAffinity.
-       * 
- * - * 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 NodeAffinity.
-       * 
- * - * 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 NodeAffinity.
-       * 
- * - * 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * Key for NodeAffinity.
-       * 
- * - * string key = 1; - * - * @return This builder for chaining. - */ - public Builder clearKey() { - key_ = getDefaultInstance().getKey(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-       * Key for NodeAffinity.
-       * 
- * - * 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int operator_ = 0; - /** - * - * - *
-       * Operator for NodeAffinity.
-       * 
- * - * .google.container.v1.SoleTenantConfig.NodeAffinity.Operator operator = 2; - * - * @return The enum numeric value on the wire for operator. - */ - @java.lang.Override - public int getOperatorValue() { - return operator_; - } - /** - * - * - *
-       * Operator for NodeAffinity.
-       * 
- * - * .google.container.v1.SoleTenantConfig.NodeAffinity.Operator operator = 2; - * - * @param value The enum numeric value on the wire for operator to set. - * @return This builder for chaining. - */ - public Builder setOperatorValue(int value) { - operator_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-       * Operator for NodeAffinity.
-       * 
- * - * .google.container.v1.SoleTenantConfig.NodeAffinity.Operator operator = 2; - * - * @return The operator. - */ - @java.lang.Override - public com.google.container.v1.SoleTenantConfig.NodeAffinity.Operator getOperator() { - com.google.container.v1.SoleTenantConfig.NodeAffinity.Operator result = - com.google.container.v1.SoleTenantConfig.NodeAffinity.Operator.forNumber(operator_); - return result == null - ? com.google.container.v1.SoleTenantConfig.NodeAffinity.Operator.UNRECOGNIZED - : result; - } - /** - * - * - *
-       * Operator for NodeAffinity.
-       * 
- * - * .google.container.v1.SoleTenantConfig.NodeAffinity.Operator operator = 2; - * - * @param value The operator to set. - * @return This builder for chaining. - */ - public Builder setOperator( - com.google.container.v1.SoleTenantConfig.NodeAffinity.Operator value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - operator_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * Operator for NodeAffinity.
-       * 
- * - * .google.container.v1.SoleTenantConfig.NodeAffinity.Operator operator = 2; - * - * @return This builder for chaining. - */ - public Builder clearOperator() { - bitField0_ = (bitField0_ & ~0x00000002); - operator_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureValuesIsMutable() { - if (!values_.isModifiable()) { - values_ = new com.google.protobuf.LazyStringArrayList(values_); - } - bitField0_ |= 0x00000004; - } - /** - * - * - *
-       * Values for NodeAffinity.
-       * 
- * - * repeated string values = 3; - * - * @return A list containing the values. - */ - public com.google.protobuf.ProtocolStringList getValuesList() { - values_.makeImmutable(); - return values_; - } - /** - * - * - *
-       * Values for NodeAffinity.
-       * 
- * - * repeated string values = 3; - * - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - /** - * - * - *
-       * Values for NodeAffinity.
-       * 
- * - * 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); - } - /** - * - * - *
-       * Values for NodeAffinity.
-       * 
- * - * 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); - } - /** - * - * - *
-       * Values for NodeAffinity.
-       * 
- * - * 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); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-       * Values for NodeAffinity.
-       * 
- * - * 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); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-       * Values for NodeAffinity.
-       * 
- * - * 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_); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-       * Values for NodeAffinity.
-       * 
- * - * repeated string values = 3; - * - * @return This builder for chaining. - */ - public Builder clearValues() { - values_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; - onChanged(); - return this; - } - /** - * - * - *
-       * Values for NodeAffinity.
-       * 
- * - * 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); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.SoleTenantConfig.NodeAffinity) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.SoleTenantConfig.NodeAffinity) - private static final com.google.container.v1.SoleTenantConfig.NodeAffinity DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.SoleTenantConfig.NodeAffinity(); - } - - public static com.google.container.v1.SoleTenantConfig.NodeAffinity getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeAffinity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.SoleTenantConfig.NodeAffinity getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public static final int NODE_AFFINITIES_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List nodeAffinities_; - /** - * - * - *
-   * NodeAffinities used to match to a shared sole tenant node group.
-   * 
- * - * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; - */ - @java.lang.Override - public java.util.List - getNodeAffinitiesList() { - return nodeAffinities_; - } - /** - * - * - *
-   * NodeAffinities used to match to a shared sole tenant node group.
-   * 
- * - * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; - */ - @java.lang.Override - public java.util.List - getNodeAffinitiesOrBuilderList() { - return nodeAffinities_; - } - /** - * - * - *
-   * NodeAffinities used to match to a shared sole tenant node group.
-   * 
- * - * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; - */ - @java.lang.Override - public int getNodeAffinitiesCount() { - return nodeAffinities_.size(); - } - /** - * - * - *
-   * NodeAffinities used to match to a shared sole tenant node group.
-   * 
- * - * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; - */ - @java.lang.Override - public com.google.container.v1.SoleTenantConfig.NodeAffinity getNodeAffinities(int index) { - return nodeAffinities_.get(index); - } - /** - * - * - *
-   * NodeAffinities used to match to a shared sole tenant node group.
-   * 
- * - * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; - */ - @java.lang.Override - public com.google.container.v1.SoleTenantConfig.NodeAffinityOrBuilder getNodeAffinitiesOrBuilder( - int index) { - return nodeAffinities_.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 < nodeAffinities_.size(); i++) { - output.writeMessage(1, nodeAffinities_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < nodeAffinities_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, nodeAffinities_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.SoleTenantConfig)) { - return super.equals(obj); - } - com.google.container.v1.SoleTenantConfig other = (com.google.container.v1.SoleTenantConfig) obj; - - if (!getNodeAffinitiesList().equals(other.getNodeAffinitiesList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getNodeAffinitiesCount() > 0) { - hash = (37 * hash) + NODE_AFFINITIES_FIELD_NUMBER; - hash = (53 * hash) + getNodeAffinitiesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.SoleTenantConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SoleTenantConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SoleTenantConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SoleTenantConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SoleTenantConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SoleTenantConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SoleTenantConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.SoleTenantConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.SoleTenantConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.SoleTenantConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.SoleTenantConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.SoleTenantConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.SoleTenantConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * SoleTenantConfig contains the NodeAffinities to specify what shared sole
-   * tenant node groups should back the node pool.
-   * 
- * - * Protobuf type {@code google.container.v1.SoleTenantConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.SoleTenantConfig) - com.google.container.v1.SoleTenantConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SoleTenantConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SoleTenantConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SoleTenantConfig.class, - com.google.container.v1.SoleTenantConfig.Builder.class); - } - - // Construct using com.google.container.v1.SoleTenantConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (nodeAffinitiesBuilder_ == null) { - nodeAffinities_ = java.util.Collections.emptyList(); - } else { - nodeAffinities_ = null; - nodeAffinitiesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SoleTenantConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.SoleTenantConfig getDefaultInstanceForType() { - return com.google.container.v1.SoleTenantConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.SoleTenantConfig build() { - com.google.container.v1.SoleTenantConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.SoleTenantConfig buildPartial() { - com.google.container.v1.SoleTenantConfig result = - new com.google.container.v1.SoleTenantConfig(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.container.v1.SoleTenantConfig result) { - if (nodeAffinitiesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - nodeAffinities_ = java.util.Collections.unmodifiableList(nodeAffinities_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.nodeAffinities_ = nodeAffinities_; - } else { - result.nodeAffinities_ = nodeAffinitiesBuilder_.build(); - } - } - - private void buildPartial0(com.google.container.v1.SoleTenantConfig result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.SoleTenantConfig) { - return mergeFrom((com.google.container.v1.SoleTenantConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.SoleTenantConfig other) { - if (other == com.google.container.v1.SoleTenantConfig.getDefaultInstance()) return this; - if (nodeAffinitiesBuilder_ == null) { - if (!other.nodeAffinities_.isEmpty()) { - if (nodeAffinities_.isEmpty()) { - nodeAffinities_ = other.nodeAffinities_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNodeAffinitiesIsMutable(); - nodeAffinities_.addAll(other.nodeAffinities_); - } - onChanged(); - } - } else { - if (!other.nodeAffinities_.isEmpty()) { - if (nodeAffinitiesBuilder_.isEmpty()) { - nodeAffinitiesBuilder_.dispose(); - nodeAffinitiesBuilder_ = null; - nodeAffinities_ = other.nodeAffinities_; - bitField0_ = (bitField0_ & ~0x00000001); - nodeAffinitiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNodeAffinitiesFieldBuilder() - : null; - } else { - nodeAffinitiesBuilder_.addAllMessages(other.nodeAffinities_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.container.v1.SoleTenantConfig.NodeAffinity m = - input.readMessage( - com.google.container.v1.SoleTenantConfig.NodeAffinity.parser(), - extensionRegistry); - if (nodeAffinitiesBuilder_ == null) { - ensureNodeAffinitiesIsMutable(); - nodeAffinities_.add(m); - } else { - nodeAffinitiesBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List nodeAffinities_ = - java.util.Collections.emptyList(); - - private void ensureNodeAffinitiesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - nodeAffinities_ = - new java.util.ArrayList( - nodeAffinities_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.SoleTenantConfig.NodeAffinity, - com.google.container.v1.SoleTenantConfig.NodeAffinity.Builder, - com.google.container.v1.SoleTenantConfig.NodeAffinityOrBuilder> - nodeAffinitiesBuilder_; - - /** - * - * - *
-     * NodeAffinities used to match to a shared sole tenant node group.
-     * 
- * - * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; - */ - public java.util.List - getNodeAffinitiesList() { - if (nodeAffinitiesBuilder_ == null) { - return java.util.Collections.unmodifiableList(nodeAffinities_); - } else { - return nodeAffinitiesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * NodeAffinities used to match to a shared sole tenant node group.
-     * 
- * - * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; - */ - public int getNodeAffinitiesCount() { - if (nodeAffinitiesBuilder_ == null) { - return nodeAffinities_.size(); - } else { - return nodeAffinitiesBuilder_.getCount(); - } - } - /** - * - * - *
-     * NodeAffinities used to match to a shared sole tenant node group.
-     * 
- * - * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; - */ - public com.google.container.v1.SoleTenantConfig.NodeAffinity getNodeAffinities(int index) { - if (nodeAffinitiesBuilder_ == null) { - return nodeAffinities_.get(index); - } else { - return nodeAffinitiesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * NodeAffinities used to match to a shared sole tenant node group.
-     * 
- * - * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; - */ - public Builder setNodeAffinities( - int index, com.google.container.v1.SoleTenantConfig.NodeAffinity value) { - if (nodeAffinitiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeAffinitiesIsMutable(); - nodeAffinities_.set(index, value); - onChanged(); - } else { - nodeAffinitiesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * NodeAffinities used to match to a shared sole tenant node group.
-     * 
- * - * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; - */ - public Builder setNodeAffinities( - int index, com.google.container.v1.SoleTenantConfig.NodeAffinity.Builder builderForValue) { - if (nodeAffinitiesBuilder_ == null) { - ensureNodeAffinitiesIsMutable(); - nodeAffinities_.set(index, builderForValue.build()); - onChanged(); - } else { - nodeAffinitiesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * NodeAffinities used to match to a shared sole tenant node group.
-     * 
- * - * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; - */ - public Builder addNodeAffinities(com.google.container.v1.SoleTenantConfig.NodeAffinity value) { - if (nodeAffinitiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeAffinitiesIsMutable(); - nodeAffinities_.add(value); - onChanged(); - } else { - nodeAffinitiesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * NodeAffinities used to match to a shared sole tenant node group.
-     * 
- * - * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; - */ - public Builder addNodeAffinities( - int index, com.google.container.v1.SoleTenantConfig.NodeAffinity value) { - if (nodeAffinitiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeAffinitiesIsMutable(); - nodeAffinities_.add(index, value); - onChanged(); - } else { - nodeAffinitiesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * NodeAffinities used to match to a shared sole tenant node group.
-     * 
- * - * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; - */ - public Builder addNodeAffinities( - com.google.container.v1.SoleTenantConfig.NodeAffinity.Builder builderForValue) { - if (nodeAffinitiesBuilder_ == null) { - ensureNodeAffinitiesIsMutable(); - nodeAffinities_.add(builderForValue.build()); - onChanged(); - } else { - nodeAffinitiesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * NodeAffinities used to match to a shared sole tenant node group.
-     * 
- * - * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; - */ - public Builder addNodeAffinities( - int index, com.google.container.v1.SoleTenantConfig.NodeAffinity.Builder builderForValue) { - if (nodeAffinitiesBuilder_ == null) { - ensureNodeAffinitiesIsMutable(); - nodeAffinities_.add(index, builderForValue.build()); - onChanged(); - } else { - nodeAffinitiesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * NodeAffinities used to match to a shared sole tenant node group.
-     * 
- * - * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; - */ - public Builder addAllNodeAffinities( - java.lang.Iterable - values) { - if (nodeAffinitiesBuilder_ == null) { - ensureNodeAffinitiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodeAffinities_); - onChanged(); - } else { - nodeAffinitiesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * NodeAffinities used to match to a shared sole tenant node group.
-     * 
- * - * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; - */ - public Builder clearNodeAffinities() { - if (nodeAffinitiesBuilder_ == null) { - nodeAffinities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - nodeAffinitiesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * NodeAffinities used to match to a shared sole tenant node group.
-     * 
- * - * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; - */ - public Builder removeNodeAffinities(int index) { - if (nodeAffinitiesBuilder_ == null) { - ensureNodeAffinitiesIsMutable(); - nodeAffinities_.remove(index); - onChanged(); - } else { - nodeAffinitiesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * NodeAffinities used to match to a shared sole tenant node group.
-     * 
- * - * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; - */ - public com.google.container.v1.SoleTenantConfig.NodeAffinity.Builder getNodeAffinitiesBuilder( - int index) { - return getNodeAffinitiesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * NodeAffinities used to match to a shared sole tenant node group.
-     * 
- * - * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; - */ - public com.google.container.v1.SoleTenantConfig.NodeAffinityOrBuilder - getNodeAffinitiesOrBuilder(int index) { - if (nodeAffinitiesBuilder_ == null) { - return nodeAffinities_.get(index); - } else { - return nodeAffinitiesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * NodeAffinities used to match to a shared sole tenant node group.
-     * 
- * - * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; - */ - public java.util.List - getNodeAffinitiesOrBuilderList() { - if (nodeAffinitiesBuilder_ != null) { - return nodeAffinitiesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(nodeAffinities_); - } - } - /** - * - * - *
-     * NodeAffinities used to match to a shared sole tenant node group.
-     * 
- * - * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; - */ - public com.google.container.v1.SoleTenantConfig.NodeAffinity.Builder - addNodeAffinitiesBuilder() { - return getNodeAffinitiesFieldBuilder() - .addBuilder(com.google.container.v1.SoleTenantConfig.NodeAffinity.getDefaultInstance()); - } - /** - * - * - *
-     * NodeAffinities used to match to a shared sole tenant node group.
-     * 
- * - * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; - */ - public com.google.container.v1.SoleTenantConfig.NodeAffinity.Builder addNodeAffinitiesBuilder( - int index) { - return getNodeAffinitiesFieldBuilder() - .addBuilder( - index, com.google.container.v1.SoleTenantConfig.NodeAffinity.getDefaultInstance()); - } - /** - * - * - *
-     * NodeAffinities used to match to a shared sole tenant node group.
-     * 
- * - * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; - */ - public java.util.List - getNodeAffinitiesBuilderList() { - return getNodeAffinitiesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.SoleTenantConfig.NodeAffinity, - com.google.container.v1.SoleTenantConfig.NodeAffinity.Builder, - com.google.container.v1.SoleTenantConfig.NodeAffinityOrBuilder> - getNodeAffinitiesFieldBuilder() { - if (nodeAffinitiesBuilder_ == null) { - nodeAffinitiesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.SoleTenantConfig.NodeAffinity, - com.google.container.v1.SoleTenantConfig.NodeAffinity.Builder, - com.google.container.v1.SoleTenantConfig.NodeAffinityOrBuilder>( - nodeAffinities_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - nodeAffinities_ = null; - } - return nodeAffinitiesBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.SoleTenantConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.SoleTenantConfig) - private static final com.google.container.v1.SoleTenantConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.SoleTenantConfig(); - } - - public static com.google.container.v1.SoleTenantConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SoleTenantConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.SoleTenantConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SoleTenantConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SoleTenantConfigOrBuilder.java deleted file mode 100644 index a54473f24ccc..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SoleTenantConfigOrBuilder.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface SoleTenantConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.SoleTenantConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * NodeAffinities used to match to a shared sole tenant node group.
-   * 
- * - * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; - */ - java.util.List getNodeAffinitiesList(); - /** - * - * - *
-   * NodeAffinities used to match to a shared sole tenant node group.
-   * 
- * - * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; - */ - com.google.container.v1.SoleTenantConfig.NodeAffinity getNodeAffinities(int index); - /** - * - * - *
-   * NodeAffinities used to match to a shared sole tenant node group.
-   * 
- * - * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; - */ - int getNodeAffinitiesCount(); - /** - * - * - *
-   * NodeAffinities used to match to a shared sole tenant node group.
-   * 
- * - * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; - */ - java.util.List - getNodeAffinitiesOrBuilderList(); - /** - * - * - *
-   * NodeAffinities used to match to a shared sole tenant node group.
-   * 
- * - * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; - */ - com.google.container.v1.SoleTenantConfig.NodeAffinityOrBuilder getNodeAffinitiesOrBuilder( - int index); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StackType.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StackType.java deleted file mode 100644 index 7c5667ec8e14..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StackType.java +++ /dev/null @@ -1,177 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Possible values for IP stack type
- * 
- * - * Protobuf enum {@code google.container.v1.StackType} - */ -public enum StackType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Default value, will be defaulted as IPV4 only
-   * 
- * - * STACK_TYPE_UNSPECIFIED = 0; - */ - STACK_TYPE_UNSPECIFIED(0), - /** - * - * - *
-   * Cluster is IPV4 only
-   * 
- * - * IPV4 = 1; - */ - IPV4(1), - /** - * - * - *
-   * Cluster can use both IPv4 and IPv6
-   * 
- * - * IPV4_IPV6 = 2; - */ - IPV4_IPV6(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * Default value, will be defaulted as IPV4 only
-   * 
- * - * STACK_TYPE_UNSPECIFIED = 0; - */ - public static final int STACK_TYPE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * Cluster is IPV4 only
-   * 
- * - * IPV4 = 1; - */ - public static final int IPV4_VALUE = 1; - /** - * - * - *
-   * Cluster can use both IPv4 and IPv6
-   * 
- * - * IPV4_IPV6 = 2; - */ - public static final int IPV4_IPV6_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 StackType 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 StackType forNumber(int value) { - switch (value) { - case 0: - return STACK_TYPE_UNSPECIFIED; - case 1: - return IPV4; - case 2: - return IPV4_IPV6; - 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 StackType findValueByNumber(int number) { - return StackType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto.getDescriptor().getEnumTypes().get(4); - } - - private static final StackType[] VALUES = values(); - - public static StackType 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 StackType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.StackType) -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java deleted file mode 100644 index 6dd0d1ae8c16..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java +++ /dev/null @@ -1,1377 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * 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.v1.StartIPRotationRequest} - */ -public final class StartIPRotationRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_StartIPRotationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_StartIPRotationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.StartIPRotationRequest.class, - com.google.container.v1.StartIPRotationRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4085 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4085 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object zone_ = ""; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4091 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4091 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object clusterId_ = ""; - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4095 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4095 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * The name (project, location, cluster name) 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 name) 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_ = false; - /** - * - * - *
-   * 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); - } - if (rotateCredentials_ != false) { - output.writeBool(7, rotateCredentials_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); - } - if (rotateCredentials_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, rotateCredentials_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.StartIPRotationRequest)) { - return super.equals(obj); - } - com.google.container.v1.StartIPRotationRequest other = - (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.StartIPRotationRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.StartIPRotationRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.StartIPRotationRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.StartIPRotationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.StartIPRotationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.StartIPRotationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.StartIPRotationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.StartIPRotationRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.StartIPRotationRequest) - com.google.container.v1.StartIPRotationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_StartIPRotationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_StartIPRotationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.StartIPRotationRequest.class, - com.google.container.v1.StartIPRotationRequest.Builder.class); - } - - // Construct using com.google.container.v1.StartIPRotationRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - name_ = ""; - rotateCredentials_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_StartIPRotationRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.StartIPRotationRequest getDefaultInstanceForType() { - return com.google.container.v1.StartIPRotationRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.StartIPRotationRequest build() { - com.google.container.v1.StartIPRotationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.StartIPRotationRequest buildPartial() { - com.google.container.v1.StartIPRotationRequest result = - new com.google.container.v1.StartIPRotationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.StartIPRotationRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.rotateCredentials_ = rotateCredentials_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.StartIPRotationRequest) { - return mergeFrom((com.google.container.v1.StartIPRotationRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.StartIPRotationRequest other) { - if (other == com.google.container.v1.StartIPRotationRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (other.getRotateCredentials() != false) { - setRotateCredentials(other.getRotateCredentials()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 50: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 50 - case 56: - { - rotateCredentials_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 56 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4085 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4085 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4085 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4085 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4085 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4091 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4091 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4091 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4091 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4091 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4095 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4095 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4095 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4095 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4095 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name (project, location, cluster name) 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 name) 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 name) 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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster name) 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(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster name) 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; - bitField0_ |= 0x00000008; - 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; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether to rotate credentials during IP rotation.
-     * 
- * - * bool rotate_credentials = 7; - * - * @return This builder for chaining. - */ - public Builder clearRotateCredentials() { - bitField0_ = (bitField0_ & ~0x00000010); - 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.v1.StartIPRotationRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.StartIPRotationRequest) - private static final com.google.container.v1.StartIPRotationRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.StartIPRotationRequest(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.StartIPRotationRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java deleted file mode 100644 index a74142c8a2e3..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface StartIPRotationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.StartIPRotationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4085 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4085 - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4091 - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4091 - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4095 - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4095 - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getClusterIdBytes(); - - /** - * - * - *
-   * The name (project, location, cluster name) 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 name) 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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java deleted file mode 100644 index 74acd6b51d5c..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java +++ /dev/null @@ -1,1198 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * StatusCondition describes why a cluster or a node pool has a certain status
- * (e.g., ERROR or DEGRADED).
- * 
- * - * Protobuf type {@code google.container.v1.StatusCondition} - */ -public final class StatusCondition extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_StatusCondition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_StatusCondition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.StatusCondition.class, - com.google.container.v1.StatusCondition.Builder.class); - } - - /** - * - * - *
-   * Code for each condition
-   * 
- * - * Protobuf enum {@code google.container.v1.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.
-     * 
- * - * CLOUD_KMS_KEY_ERROR = 7; - */ - CLOUD_KMS_KEY_ERROR(7), - /** - * - * - *
-     * Cluster CA is expiring soon.
-     * 
- * - * CA_EXPIRING = 9; - */ - CA_EXPIRING(9), - 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.
-     * 
- * - * CLOUD_KMS_KEY_ERROR = 7; - */ - public static final int CLOUD_KMS_KEY_ERROR_VALUE = 7; - /** - * - * - *
-     * Cluster CA is expiring soon.
-     * 
- * - * CA_EXPIRING = 9; - */ - public static final int CA_EXPIRING_VALUE = 9; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - 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; - case 9: - return CA_EXPIRING; - 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.v1.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.v1.StatusCondition.Code) - } - - public static final int CODE_FIELD_NUMBER = 1; - private int code_ = 0; - /** - * - * - *
-   * Machine-friendly representation of the condition
-   * Deprecated. Use canonical_code instead.
-   * 
- * - * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; - * - * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4296 - * @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.v1.StatusCondition.Code code = 1 [deprecated = true]; - * - * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4296 - * @return The code. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.container.v1.StatusCondition.Code getCode() { - com.google.container.v1.StatusCondition.Code result = - com.google.container.v1.StatusCondition.Code.forNumber(code_); - return result == null ? com.google.container.v1.StatusCondition.Code.UNRECOGNIZED : result; - } - - public static final int MESSAGE_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - 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_ = 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; - * - * @return The canonicalCode. - */ - @java.lang.Override - public com.google.rpc.Code getCanonicalCode() { - com.google.rpc.Code result = com.google.rpc.Code.forNumber(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.v1.StatusCondition.Code.UNKNOWN.getNumber()) { - output.writeEnum(1, code_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); - } - if (canonicalCode_ != com.google.rpc.Code.OK.getNumber()) { - output.writeEnum(3, canonicalCode_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (code_ != com.google.container.v1.StatusCondition.Code.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); - } - if (canonicalCode_ != com.google.rpc.Code.OK.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, canonicalCode_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.StatusCondition)) { - return super.equals(obj); - } - com.google.container.v1.StatusCondition other = (com.google.container.v1.StatusCondition) obj; - - if (code_ != other.code_) return false; - if (!getMessage().equals(other.getMessage())) return false; - if (canonicalCode_ != other.canonicalCode_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.StatusCondition parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.StatusCondition parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.StatusCondition parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.StatusCondition parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.StatusCondition parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.StatusCondition parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.StatusCondition parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.StatusCondition} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.StatusCondition) - com.google.container.v1.StatusConditionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_StatusCondition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_StatusCondition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.StatusCondition.class, - com.google.container.v1.StatusCondition.Builder.class); - } - - // Construct using com.google.container.v1.StatusCondition.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - code_ = 0; - message_ = ""; - canonicalCode_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_StatusCondition_descriptor; - } - - @java.lang.Override - public com.google.container.v1.StatusCondition getDefaultInstanceForType() { - return com.google.container.v1.StatusCondition.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.StatusCondition build() { - com.google.container.v1.StatusCondition result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.StatusCondition buildPartial() { - com.google.container.v1.StatusCondition result = - new com.google.container.v1.StatusCondition(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.StatusCondition result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.code_ = code_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.message_ = message_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.canonicalCode_ = canonicalCode_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.StatusCondition) { - return mergeFrom((com.google.container.v1.StatusCondition) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.StatusCondition other) { - if (other == com.google.container.v1.StatusCondition.getDefaultInstance()) return this; - if (other.code_ != 0) { - setCodeValue(other.getCodeValue()); - } - if (!other.getMessage().isEmpty()) { - message_ = other.message_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.canonicalCode_ != 0) { - setCanonicalCodeValue(other.getCanonicalCodeValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - code_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - message_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - canonicalCode_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int code_ = 0; - /** - * - * - *
-     * Machine-friendly representation of the condition
-     * Deprecated. Use canonical_code instead.
-     * 
- * - * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; - * - * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4296 - * @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.v1.StatusCondition.Code code = 1 [deprecated = true]; - * - * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4296 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Machine-friendly representation of the condition
-     * Deprecated. Use canonical_code instead.
-     * 
- * - * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; - * - * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4296 - * @return The code. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.container.v1.StatusCondition.Code getCode() { - com.google.container.v1.StatusCondition.Code result = - com.google.container.v1.StatusCondition.Code.forNumber(code_); - return result == null ? com.google.container.v1.StatusCondition.Code.UNRECOGNIZED : result; - } - /** - * - * - *
-     * Machine-friendly representation of the condition
-     * Deprecated. Use canonical_code instead.
-     * 
- * - * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; - * - * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4296 - * @param value The code to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setCode(com.google.container.v1.StatusCondition.Code value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - code_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Machine-friendly representation of the condition
-     * Deprecated. Use canonical_code instead.
-     * 
- * - * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; - * - * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4296 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearCode() { - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Human-friendly representation of the condition
-     * 
- * - * string message = 2; - * - * @return This builder for chaining. - */ - public Builder clearMessage() { - message_ = getDefaultInstance().getMessage(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - 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; - bitField0_ |= 0x00000004; - 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() { - com.google.rpc.Code result = com.google.rpc.Code.forNumber(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(); - } - bitField0_ |= 0x00000004; - 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() { - bitField0_ = (bitField0_ & ~0x00000004); - 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.v1.StatusCondition) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.StatusCondition) - private static final com.google.container.v1.StatusCondition DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.StatusCondition(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.StatusCondition getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusConditionOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusConditionOrBuilder.java deleted file mode 100644 index bea004f1d0ff..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusConditionOrBuilder.java +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface StatusConditionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.StatusCondition) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Machine-friendly representation of the condition
-   * Deprecated. Use canonical_code instead.
-   * 
- * - * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; - * - * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4296 - * @return The enum numeric value on the wire for code. - */ - @java.lang.Deprecated - int getCodeValue(); - /** - * - * - *
-   * Machine-friendly representation of the condition
-   * Deprecated. Use canonical_code instead.
-   * 
- * - * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; - * - * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4296 - * @return The code. - */ - @java.lang.Deprecated - com.google.container.v1.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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/TimeWindow.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/TimeWindow.java deleted file mode 100644 index 576457a81419..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/TimeWindow.java +++ /dev/null @@ -1,1388 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Represents an arbitrary window of time.
- * 
- * - * Protobuf type {@code google.container.v1.TimeWindow} - */ -public final class TimeWindow extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_TimeWindow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_TimeWindow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.TimeWindow.class, - com.google.container.v1.TimeWindow.Builder.class); - } - - private int bitField0_; - private int optionsCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object options_; - - public enum OptionsCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - MAINTENANCE_EXCLUSION_OPTIONS(3), - OPTIONS_NOT_SET(0); - private final int value; - - private OptionsCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OptionsCase valueOf(int value) { - return forNumber(value); - } - - public static OptionsCase forNumber(int value) { - switch (value) { - case 3: - return MAINTENANCE_EXCLUSION_OPTIONS; - case 0: - return OPTIONS_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public OptionsCase getOptionsCase() { - return OptionsCase.forNumber(optionsCase_); - } - - public static final int MAINTENANCE_EXCLUSION_OPTIONS_FIELD_NUMBER = 3; - /** - * - * - *
-   * MaintenanceExclusionOptions provides maintenance exclusion related
-   * options.
-   * 
- * - * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; - * - * - * @return Whether the maintenanceExclusionOptions field is set. - */ - @java.lang.Override - public boolean hasMaintenanceExclusionOptions() { - return optionsCase_ == 3; - } - /** - * - * - *
-   * MaintenanceExclusionOptions provides maintenance exclusion related
-   * options.
-   * 
- * - * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; - * - * - * @return The maintenanceExclusionOptions. - */ - @java.lang.Override - public com.google.container.v1.MaintenanceExclusionOptions getMaintenanceExclusionOptions() { - if (optionsCase_ == 3) { - return (com.google.container.v1.MaintenanceExclusionOptions) options_; - } - return com.google.container.v1.MaintenanceExclusionOptions.getDefaultInstance(); - } - /** - * - * - *
-   * MaintenanceExclusionOptions provides maintenance exclusion related
-   * options.
-   * 
- * - * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; - * - */ - @java.lang.Override - public com.google.container.v1.MaintenanceExclusionOptionsOrBuilder - getMaintenanceExclusionOptionsOrBuilder() { - if (optionsCase_ == 3) { - return (com.google.container.v1.MaintenanceExclusionOptions) options_; - } - return com.google.container.v1.MaintenanceExclusionOptions.getDefaultInstance(); - } - - public static final int START_TIME_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp startTime_; - /** - * - * - *
-   * 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 ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * 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 startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; - } - - 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 ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * 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 endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getStartTime()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getEndTime()); - } - if (optionsCase_ == 3) { - output.writeMessage(3, (com.google.container.v1.MaintenanceExclusionOptions) options_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); - } - if (optionsCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.container.v1.MaintenanceExclusionOptions) options_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.TimeWindow)) { - return super.equals(obj); - } - com.google.container.v1.TimeWindow other = (com.google.container.v1.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 (!getOptionsCase().equals(other.getOptionsCase())) return false; - switch (optionsCase_) { - case 3: - if (!getMaintenanceExclusionOptions().equals(other.getMaintenanceExclusionOptions())) - return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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(); - } - switch (optionsCase_) { - case 3: - hash = (37 * hash) + MAINTENANCE_EXCLUSION_OPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getMaintenanceExclusionOptions().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.TimeWindow parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.TimeWindow parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.TimeWindow parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.TimeWindow parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.TimeWindow parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.TimeWindow parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.TimeWindow parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.TimeWindow} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.TimeWindow) - com.google.container.v1.TimeWindowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_TimeWindow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_TimeWindow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.TimeWindow.class, - com.google.container.v1.TimeWindow.Builder.class); - } - - // Construct using com.google.container.v1.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) { - getStartTimeFieldBuilder(); - getEndTimeFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (maintenanceExclusionOptionsBuilder_ != null) { - maintenanceExclusionOptionsBuilder_.clear(); - } - startTime_ = null; - if (startTimeBuilder_ != null) { - startTimeBuilder_.dispose(); - startTimeBuilder_ = null; - } - endTime_ = null; - if (endTimeBuilder_ != null) { - endTimeBuilder_.dispose(); - endTimeBuilder_ = null; - } - optionsCase_ = 0; - options_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_TimeWindow_descriptor; - } - - @java.lang.Override - public com.google.container.v1.TimeWindow getDefaultInstanceForType() { - return com.google.container.v1.TimeWindow.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.TimeWindow build() { - com.google.container.v1.TimeWindow result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.TimeWindow buildPartial() { - com.google.container.v1.TimeWindow result = new com.google.container.v1.TimeWindow(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.TimeWindow result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartialOneofs(com.google.container.v1.TimeWindow result) { - result.optionsCase_ = optionsCase_; - result.options_ = this.options_; - if (optionsCase_ == 3 && maintenanceExclusionOptionsBuilder_ != null) { - result.options_ = maintenanceExclusionOptionsBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.TimeWindow) { - return mergeFrom((com.google.container.v1.TimeWindow) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.TimeWindow other) { - if (other == com.google.container.v1.TimeWindow.getDefaultInstance()) return this; - if (other.hasStartTime()) { - mergeStartTime(other.getStartTime()); - } - if (other.hasEndTime()) { - mergeEndTime(other.getEndTime()); - } - switch (other.getOptionsCase()) { - case MAINTENANCE_EXCLUSION_OPTIONS: - { - mergeMaintenanceExclusionOptions(other.getMaintenanceExclusionOptions()); - break; - } - case OPTIONS_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 18: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: - { - input.readMessage( - getMaintenanceExclusionOptionsFieldBuilder().getBuilder(), extensionRegistry); - optionsCase_ = 3; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int optionsCase_ = 0; - private java.lang.Object options_; - - public OptionsCase getOptionsCase() { - return OptionsCase.forNumber(optionsCase_); - } - - public Builder clearOptions() { - optionsCase_ = 0; - options_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MaintenanceExclusionOptions, - com.google.container.v1.MaintenanceExclusionOptions.Builder, - com.google.container.v1.MaintenanceExclusionOptionsOrBuilder> - maintenanceExclusionOptionsBuilder_; - /** - * - * - *
-     * MaintenanceExclusionOptions provides maintenance exclusion related
-     * options.
-     * 
- * - * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; - * - * - * @return Whether the maintenanceExclusionOptions field is set. - */ - @java.lang.Override - public boolean hasMaintenanceExclusionOptions() { - return optionsCase_ == 3; - } - /** - * - * - *
-     * MaintenanceExclusionOptions provides maintenance exclusion related
-     * options.
-     * 
- * - * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; - * - * - * @return The maintenanceExclusionOptions. - */ - @java.lang.Override - public com.google.container.v1.MaintenanceExclusionOptions getMaintenanceExclusionOptions() { - if (maintenanceExclusionOptionsBuilder_ == null) { - if (optionsCase_ == 3) { - return (com.google.container.v1.MaintenanceExclusionOptions) options_; - } - return com.google.container.v1.MaintenanceExclusionOptions.getDefaultInstance(); - } else { - if (optionsCase_ == 3) { - return maintenanceExclusionOptionsBuilder_.getMessage(); - } - return com.google.container.v1.MaintenanceExclusionOptions.getDefaultInstance(); - } - } - /** - * - * - *
-     * MaintenanceExclusionOptions provides maintenance exclusion related
-     * options.
-     * 
- * - * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; - * - */ - public Builder setMaintenanceExclusionOptions( - com.google.container.v1.MaintenanceExclusionOptions value) { - if (maintenanceExclusionOptionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - options_ = value; - onChanged(); - } else { - maintenanceExclusionOptionsBuilder_.setMessage(value); - } - optionsCase_ = 3; - return this; - } - /** - * - * - *
-     * MaintenanceExclusionOptions provides maintenance exclusion related
-     * options.
-     * 
- * - * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; - * - */ - public Builder setMaintenanceExclusionOptions( - com.google.container.v1.MaintenanceExclusionOptions.Builder builderForValue) { - if (maintenanceExclusionOptionsBuilder_ == null) { - options_ = builderForValue.build(); - onChanged(); - } else { - maintenanceExclusionOptionsBuilder_.setMessage(builderForValue.build()); - } - optionsCase_ = 3; - return this; - } - /** - * - * - *
-     * MaintenanceExclusionOptions provides maintenance exclusion related
-     * options.
-     * 
- * - * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; - * - */ - public Builder mergeMaintenanceExclusionOptions( - com.google.container.v1.MaintenanceExclusionOptions value) { - if (maintenanceExclusionOptionsBuilder_ == null) { - if (optionsCase_ == 3 - && options_ - != com.google.container.v1.MaintenanceExclusionOptions.getDefaultInstance()) { - options_ = - com.google.container.v1.MaintenanceExclusionOptions.newBuilder( - (com.google.container.v1.MaintenanceExclusionOptions) options_) - .mergeFrom(value) - .buildPartial(); - } else { - options_ = value; - } - onChanged(); - } else { - if (optionsCase_ == 3) { - maintenanceExclusionOptionsBuilder_.mergeFrom(value); - } else { - maintenanceExclusionOptionsBuilder_.setMessage(value); - } - } - optionsCase_ = 3; - return this; - } - /** - * - * - *
-     * MaintenanceExclusionOptions provides maintenance exclusion related
-     * options.
-     * 
- * - * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; - * - */ - public Builder clearMaintenanceExclusionOptions() { - if (maintenanceExclusionOptionsBuilder_ == null) { - if (optionsCase_ == 3) { - optionsCase_ = 0; - options_ = null; - onChanged(); - } - } else { - if (optionsCase_ == 3) { - optionsCase_ = 0; - options_ = null; - } - maintenanceExclusionOptionsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * MaintenanceExclusionOptions provides maintenance exclusion related
-     * options.
-     * 
- * - * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; - * - */ - public com.google.container.v1.MaintenanceExclusionOptions.Builder - getMaintenanceExclusionOptionsBuilder() { - return getMaintenanceExclusionOptionsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * MaintenanceExclusionOptions provides maintenance exclusion related
-     * options.
-     * 
- * - * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; - * - */ - @java.lang.Override - public com.google.container.v1.MaintenanceExclusionOptionsOrBuilder - getMaintenanceExclusionOptionsOrBuilder() { - if ((optionsCase_ == 3) && (maintenanceExclusionOptionsBuilder_ != null)) { - return maintenanceExclusionOptionsBuilder_.getMessageOrBuilder(); - } else { - if (optionsCase_ == 3) { - return (com.google.container.v1.MaintenanceExclusionOptions) options_; - } - return com.google.container.v1.MaintenanceExclusionOptions.getDefaultInstance(); - } - } - /** - * - * - *
-     * MaintenanceExclusionOptions provides maintenance exclusion related
-     * options.
-     * 
- * - * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MaintenanceExclusionOptions, - com.google.container.v1.MaintenanceExclusionOptions.Builder, - com.google.container.v1.MaintenanceExclusionOptionsOrBuilder> - getMaintenanceExclusionOptionsFieldBuilder() { - if (maintenanceExclusionOptionsBuilder_ == null) { - if (!(optionsCase_ == 3)) { - options_ = com.google.container.v1.MaintenanceExclusionOptions.getDefaultInstance(); - } - maintenanceExclusionOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MaintenanceExclusionOptions, - com.google.container.v1.MaintenanceExclusionOptions.Builder, - com.google.container.v1.MaintenanceExclusionOptionsOrBuilder>( - (com.google.container.v1.MaintenanceExclusionOptions) options_, - getParentForChildren(), - isClean()); - options_ = null; - } - optionsCase_ = 3; - onChanged(); - return maintenanceExclusionOptionsBuilder_; - } - - private com.google.protobuf.Timestamp startTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - 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 ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * 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; - } else { - startTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - 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(); - } else { - startTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - 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 (((bitField0_ & 0x00000002) != 0) - && startTime_ != null - && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getStartTimeBuilder().mergeFrom(value); - } else { - startTime_ = value; - } - } else { - startTimeBuilder_.mergeFrom(value); - } - if (startTime_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The time that the window first starts.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public Builder clearStartTime() { - bitField0_ = (bitField0_ & ~0x00000002); - startTime_ = null; - if (startTimeBuilder_ != null) { - startTimeBuilder_.dispose(); - startTimeBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The time that the window first starts.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - bitField0_ |= 0x00000002; - 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 ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * 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; - } else { - endTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - 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(); - } else { - endTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - 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 (((bitField0_ & 0x00000004) != 0) - && endTime_ != null - && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getEndTimeBuilder().mergeFrom(value); - } else { - endTime_ = value; - } - } else { - endTimeBuilder_.mergeFrom(value); - } - if (endTime_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - 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() { - bitField0_ = (bitField0_ & ~0x00000004); - endTime_ = null; - if (endTimeBuilder_ != null) { - endTimeBuilder_.dispose(); - endTimeBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000004; - 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.v1.TimeWindow) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.TimeWindow) - private static final com.google.container.v1.TimeWindow DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.TimeWindow(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.TimeWindow getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/TimeWindowOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/TimeWindowOrBuilder.java deleted file mode 100644 index babc3a01d0b7..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/TimeWindowOrBuilder.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface TimeWindowOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.TimeWindow) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * MaintenanceExclusionOptions provides maintenance exclusion related
-   * options.
-   * 
- * - * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; - * - * - * @return Whether the maintenanceExclusionOptions field is set. - */ - boolean hasMaintenanceExclusionOptions(); - /** - * - * - *
-   * MaintenanceExclusionOptions provides maintenance exclusion related
-   * options.
-   * 
- * - * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; - * - * - * @return The maintenanceExclusionOptions. - */ - com.google.container.v1.MaintenanceExclusionOptions getMaintenanceExclusionOptions(); - /** - * - * - *
-   * MaintenanceExclusionOptions provides maintenance exclusion related
-   * options.
-   * 
- * - * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; - * - */ - com.google.container.v1.MaintenanceExclusionOptionsOrBuilder - getMaintenanceExclusionOptionsOrBuilder(); - - /** - * - * - *
-   * 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(); - - com.google.container.v1.TimeWindow.OptionsCase getOptionsCase(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java deleted file mode 100644 index e1674ff7bad4..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java +++ /dev/null @@ -1,1578 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * UpdateClusterRequest updates the settings of a cluster.
- * 
- * - * Protobuf type {@code google.container.v1.UpdateClusterRequest} - */ -public final class UpdateClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UpdateClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UpdateClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.UpdateClusterRequest.class, - com.google.container.v1.UpdateClusterRequest.Builder.class); - } - - private int bitField0_; - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2604 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2604 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object zone_ = ""; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2610 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2610 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object clusterId_ = ""; - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2614 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2614 - * @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.v1.ClusterUpdate update_; - /** - * - * - *
-   * Required. A description of the update.
-   * 
- * - * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the update field is set. - */ - @java.lang.Override - public boolean hasUpdate() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Required. A description of the update.
-   * 
- * - * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The update. - */ - @java.lang.Override - public com.google.container.v1.ClusterUpdate getUpdate() { - return update_ == null ? com.google.container.v1.ClusterUpdate.getDefaultInstance() : update_; - } - /** - * - * - *
-   * Required. A description of the update.
-   * 
- * - * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.container.v1.ClusterUpdateOrBuilder getUpdateOrBuilder() { - return update_ == null ? com.google.container.v1.ClusterUpdate.getDefaultInstance() : update_; - } - - public static final int NAME_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(4, getUpdate()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdate()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.UpdateClusterRequest)) { - return super.equals(obj); - } - com.google.container.v1.UpdateClusterRequest other = - (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.UpdateClusterRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.UpdateClusterRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.UpdateClusterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.UpdateClusterRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.UpdateClusterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.UpdateClusterRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.UpdateClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.UpdateClusterRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.UpdateClusterRequest) - com.google.container.v1.UpdateClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UpdateClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UpdateClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.UpdateClusterRequest.class, - com.google.container.v1.UpdateClusterRequest.Builder.class); - } - - // Construct using com.google.container.v1.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) { - getUpdateFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - update_ = null; - if (updateBuilder_ != null) { - updateBuilder_.dispose(); - updateBuilder_ = null; - } - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UpdateClusterRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.UpdateClusterRequest getDefaultInstanceForType() { - return com.google.container.v1.UpdateClusterRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.UpdateClusterRequest build() { - com.google.container.v1.UpdateClusterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.UpdateClusterRequest buildPartial() { - com.google.container.v1.UpdateClusterRequest result = - new com.google.container.v1.UpdateClusterRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.UpdateClusterRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.update_ = updateBuilder_ == null ? update_ : updateBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.name_ = name_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.UpdateClusterRequest) { - return mergeFrom((com.google.container.v1.UpdateClusterRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.UpdateClusterRequest other) { - if (other == com.google.container.v1.UpdateClusterRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasUpdate()) { - mergeUpdate(other.getUpdate()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000010; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getUpdateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2604 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2604 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2604 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2604 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2604 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2610 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2610 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2610 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2610 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2610 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2614 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2614 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2614 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2614 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2614 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private com.google.container.v1.ClusterUpdate update_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ClusterUpdate, - com.google.container.v1.ClusterUpdate.Builder, - com.google.container.v1.ClusterUpdateOrBuilder> - updateBuilder_; - /** - * - * - *
-     * Required. A description of the update.
-     * 
- * - * - * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the update field is set. - */ - public boolean hasUpdate() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-     * Required. A description of the update.
-     * 
- * - * - * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The update. - */ - public com.google.container.v1.ClusterUpdate getUpdate() { - if (updateBuilder_ == null) { - return update_ == null - ? com.google.container.v1.ClusterUpdate.getDefaultInstance() - : update_; - } else { - return updateBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. A description of the update.
-     * 
- * - * - * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdate(com.google.container.v1.ClusterUpdate value) { - if (updateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - update_ = value; - } else { - updateBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. A description of the update.
-     * 
- * - * - * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdate(com.google.container.v1.ClusterUpdate.Builder builderForValue) { - if (updateBuilder_ == null) { - update_ = builderForValue.build(); - } else { - updateBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. A description of the update.
-     * 
- * - * - * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdate(com.google.container.v1.ClusterUpdate value) { - if (updateBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && update_ != null - && update_ != com.google.container.v1.ClusterUpdate.getDefaultInstance()) { - getUpdateBuilder().mergeFrom(value); - } else { - update_ = value; - } - } else { - updateBuilder_.mergeFrom(value); - } - if (update_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Required. A description of the update.
-     * 
- * - * - * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdate() { - bitField0_ = (bitField0_ & ~0x00000008); - update_ = null; - if (updateBuilder_ != null) { - updateBuilder_.dispose(); - updateBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Required. A description of the update.
-     * 
- * - * - * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.container.v1.ClusterUpdate.Builder getUpdateBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getUpdateFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. A description of the update.
-     * 
- * - * - * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.container.v1.ClusterUpdateOrBuilder getUpdateOrBuilder() { - if (updateBuilder_ != null) { - return updateBuilder_.getMessageOrBuilder(); - } else { - return update_ == null - ? com.google.container.v1.ClusterUpdate.getDefaultInstance() - : update_; - } - } - /** - * - * - *
-     * Required. A description of the update.
-     * 
- * - * - * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ClusterUpdate, - com.google.container.v1.ClusterUpdate.Builder, - com.google.container.v1.ClusterUpdateOrBuilder> - getUpdateFieldBuilder() { - if (updateBuilder_ == null) { - updateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ClusterUpdate, - com.google.container.v1.ClusterUpdate.Builder, - com.google.container.v1.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; - bitField0_ |= 0x00000010; - 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(); - bitField0_ = (bitField0_ & ~0x00000010); - 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; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.UpdateClusterRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.UpdateClusterRequest) - private static final com.google.container.v1.UpdateClusterRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.UpdateClusterRequest(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.UpdateClusterRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java deleted file mode 100644 index cd15b27d0ea6..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java +++ /dev/null @@ -1,196 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface UpdateClusterRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.UpdateClusterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2604 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2604 - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2610 - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2610 - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2614 - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2614 - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getClusterIdBytes(); - - /** - * - * - *
-   * Required. A description of the update.
-   * 
- * - * .google.container.v1.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.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The update. - */ - com.google.container.v1.ClusterUpdate getUpdate(); - /** - * - * - *
-   * Required. A description of the update.
-   * 
- * - * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.container.v1.ClusterUpdateOrBuilder getUpdateOrBuilder(); - - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to update.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 5; - * - * @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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java deleted file mode 100644 index 922ed852149f..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java +++ /dev/null @@ -1,1527 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * UpdateMasterRequest updates the master of the cluster.
- * 
- * - * Protobuf type {@code google.container.v1.UpdateMasterRequest} - */ -public final class UpdateMasterRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UpdateMasterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UpdateMasterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.UpdateMasterRequest.class, - com.google.container.v1.UpdateMasterRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2919 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2919 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object zone_ = ""; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2925 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2925 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object clusterId_ = ""; - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2929 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2929 - * @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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(masterVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, masterVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(masterVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, masterVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.UpdateMasterRequest)) { - return super.equals(obj); - } - com.google.container.v1.UpdateMasterRequest other = - (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.UpdateMasterRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.UpdateMasterRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.UpdateMasterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.UpdateMasterRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.UpdateMasterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.UpdateMasterRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.UpdateMasterRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.UpdateMasterRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.UpdateMasterRequest) - com.google.container.v1.UpdateMasterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UpdateMasterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UpdateMasterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.UpdateMasterRequest.class, - com.google.container.v1.UpdateMasterRequest.Builder.class); - } - - // Construct using com.google.container.v1.UpdateMasterRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - masterVersion_ = ""; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UpdateMasterRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.UpdateMasterRequest getDefaultInstanceForType() { - return com.google.container.v1.UpdateMasterRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.UpdateMasterRequest build() { - com.google.container.v1.UpdateMasterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.UpdateMasterRequest buildPartial() { - com.google.container.v1.UpdateMasterRequest result = - new com.google.container.v1.UpdateMasterRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.UpdateMasterRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.masterVersion_ = masterVersion_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.UpdateMasterRequest) { - return mergeFrom((com.google.container.v1.UpdateMasterRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.UpdateMasterRequest other) { - if (other == com.google.container.v1.UpdateMasterRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getMasterVersion().isEmpty()) { - masterVersion_ = other.masterVersion_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000010; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - masterVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 58: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2919 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2919 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2919 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2919 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2919 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2925 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2925 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2925 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2925 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2925 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2929 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2929 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2929 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2929 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2929 - * @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; - bitField0_ |= 0x00000004; - 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; - bitField0_ |= 0x00000008; - 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(); - bitField0_ = (bitField0_ & ~0x00000008); - 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; - bitField0_ |= 0x00000008; - 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; - bitField0_ |= 0x00000010; - 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(); - bitField0_ = (bitField0_ & ~0x00000010); - 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; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.UpdateMasterRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.UpdateMasterRequest) - private static final com.google.container.v1.UpdateMasterRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.UpdateMasterRequest(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.UpdateMasterRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java deleted file mode 100644 index 512cfd35c8aa..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java +++ /dev/null @@ -1,201 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface UpdateMasterRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.UpdateMasterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2919 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2919 - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2925 - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2925 - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2929 - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2929 - * @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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java deleted file mode 100644 index 409a5b200b80..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java +++ /dev/null @@ -1,7418 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * UpdateNodePoolRequests update a node pool's image and/or version.
- * 
- * - * Protobuf type {@code google.container.v1.UpdateNodePoolRequest} - */ -public final class UpdateNodePoolRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.UpdateNodePoolRequest) - UpdateNodePoolRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpdateNodePoolRequest.newBuilder() to construct. - private UpdateNodePoolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpdateNodePoolRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - nodePoolId_ = ""; - nodeVersion_ = ""; - imageType_ = ""; - name_ = ""; - locations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - etag_ = ""; - machineType_ = ""; - diskType_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateNodePoolRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UpdateNodePoolRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UpdateNodePoolRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.UpdateNodePoolRequest.class, - com.google.container.v1.UpdateNodePoolRequest.Builder.class); - } - - private int bitField0_; - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2629 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2629 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object zone_ = ""; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2635 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2635 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object clusterId_ = ""; - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2639 - * @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; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2639 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object nodePoolId_ = ""; - /** - * - * - *
-   * Deprecated. The name of the node pool to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2643 - * @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; - } - } - /** - * - * - *
-   * 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]; - * - * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2643 - * @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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object imageType_ = ""; - /** - * - * - *
-   * Required. The desired image type for the node pool. Please see
-   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-   * available image types.
-   * 
- * - * 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. Please see
-   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-   * available image types.
-   * 
- * - * 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 NAME_FIELD_NUMBER = 8; - - @SuppressWarnings("serial") - 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 LOCATIONS_FIELD_NUMBER = 13; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList locations_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * node pool's nodes should be located. Changing the locations for a node pool
-   * will result in nodes being either created or removed from the node pool,
-   * depending on whether locations are being added or removed.
-   * 
- * - * repeated string locations = 13; - * - * @return A list containing the locations. - */ - public com.google.protobuf.ProtocolStringList getLocationsList() { - return locations_; - } - /** - * - * - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * node pool's nodes should be located. Changing the locations for a node pool
-   * will result in nodes being either created or removed from the node pool,
-   * depending on whether locations are being added or removed.
-   * 
- * - * repeated string locations = 13; - * - * @return The count of locations. - */ - public int getLocationsCount() { - return locations_.size(); - } - /** - * - * - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * node pool's nodes should be located. Changing the locations for a node pool
-   * will result in nodes being either created or removed from the node pool,
-   * depending on whether locations are being added or removed.
-   * 
- * - * repeated string locations = 13; - * - * @param index The index of the element to return. - * @return The locations at the given index. - */ - public java.lang.String getLocations(int index) { - return locations_.get(index); - } - /** - * - * - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * node pool's nodes should be located. Changing the locations for a node pool
-   * will result in nodes being either created or removed from the node pool,
-   * depending on whether locations are being added or removed.
-   * 
- * - * repeated string locations = 13; - * - * @param index The index of the value to return. - * @return The bytes of the locations at the given index. - */ - public com.google.protobuf.ByteString getLocationsBytes(int index) { - return locations_.getByteString(index); - } - - public static final int WORKLOAD_METADATA_CONFIG_FIELD_NUMBER = 14; - private com.google.container.v1.WorkloadMetadataConfig workloadMetadataConfig_; - /** - * - * - *
-   * The desired workload metadata config for the node pool.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * - * @return Whether the workloadMetadataConfig field is set. - */ - @java.lang.Override - public boolean hasWorkloadMetadataConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * The desired workload metadata config for the node pool.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * - * @return The workloadMetadataConfig. - */ - @java.lang.Override - public com.google.container.v1.WorkloadMetadataConfig getWorkloadMetadataConfig() { - return workloadMetadataConfig_ == null - ? com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance() - : workloadMetadataConfig_; - } - /** - * - * - *
-   * The desired workload metadata config for the node pool.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - @java.lang.Override - public com.google.container.v1.WorkloadMetadataConfigOrBuilder - getWorkloadMetadataConfigOrBuilder() { - return workloadMetadataConfig_ == null - ? com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance() - : workloadMetadataConfig_; - } - - public static final int UPGRADE_SETTINGS_FIELD_NUMBER = 15; - private com.google.container.v1.NodePool.UpgradeSettings upgradeSettings_; - /** - * - * - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - * - * @return Whether the upgradeSettings field is set. - */ - @java.lang.Override - public boolean hasUpgradeSettings() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - * - * @return The upgradeSettings. - */ - @java.lang.Override - public com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings() { - return upgradeSettings_ == null - ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() - : upgradeSettings_; - } - /** - * - * - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - */ - @java.lang.Override - public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { - return upgradeSettings_ == null - ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() - : upgradeSettings_; - } - - public static final int TAGS_FIELD_NUMBER = 16; - private com.google.container.v1.NetworkTags tags_; - /** - * - * - *
-   * The desired network tags to be applied to all nodes in the node pool.
-   * If this field is not present, the tags will not be changed. Otherwise,
-   * the existing network tags will be *replaced* with the provided tags.
-   * 
- * - * .google.container.v1.NetworkTags tags = 16; - * - * @return Whether the tags field is set. - */ - @java.lang.Override - public boolean hasTags() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-   * The desired network tags to be applied to all nodes in the node pool.
-   * If this field is not present, the tags will not be changed. Otherwise,
-   * the existing network tags will be *replaced* with the provided tags.
-   * 
- * - * .google.container.v1.NetworkTags tags = 16; - * - * @return The tags. - */ - @java.lang.Override - public com.google.container.v1.NetworkTags getTags() { - return tags_ == null ? com.google.container.v1.NetworkTags.getDefaultInstance() : tags_; - } - /** - * - * - *
-   * The desired network tags to be applied to all nodes in the node pool.
-   * If this field is not present, the tags will not be changed. Otherwise,
-   * the existing network tags will be *replaced* with the provided tags.
-   * 
- * - * .google.container.v1.NetworkTags tags = 16; - */ - @java.lang.Override - public com.google.container.v1.NetworkTagsOrBuilder getTagsOrBuilder() { - return tags_ == null ? com.google.container.v1.NetworkTags.getDefaultInstance() : tags_; - } - - public static final int TAINTS_FIELD_NUMBER = 17; - private com.google.container.v1.NodeTaints taints_; - /** - * - * - *
-   * The desired node taints to be applied to all nodes in the node pool.
-   * If this field is not present, the taints will not be changed. Otherwise,
-   * the existing node taints will be *replaced* with the provided taints.
-   * 
- * - * .google.container.v1.NodeTaints taints = 17; - * - * @return Whether the taints field is set. - */ - @java.lang.Override - public boolean hasTaints() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-   * The desired node taints to be applied to all nodes in the node pool.
-   * If this field is not present, the taints will not be changed. Otherwise,
-   * the existing node taints will be *replaced* with the provided taints.
-   * 
- * - * .google.container.v1.NodeTaints taints = 17; - * - * @return The taints. - */ - @java.lang.Override - public com.google.container.v1.NodeTaints getTaints() { - return taints_ == null ? com.google.container.v1.NodeTaints.getDefaultInstance() : taints_; - } - /** - * - * - *
-   * The desired node taints to be applied to all nodes in the node pool.
-   * If this field is not present, the taints will not be changed. Otherwise,
-   * the existing node taints will be *replaced* with the provided taints.
-   * 
- * - * .google.container.v1.NodeTaints taints = 17; - */ - @java.lang.Override - public com.google.container.v1.NodeTaintsOrBuilder getTaintsOrBuilder() { - return taints_ == null ? com.google.container.v1.NodeTaints.getDefaultInstance() : taints_; - } - - public static final int LABELS_FIELD_NUMBER = 18; - private com.google.container.v1.NodeLabels labels_; - /** - * - * - *
-   * The desired node labels to be applied to all nodes in the node pool.
-   * If this field is not present, the labels will not be changed. Otherwise,
-   * the existing node labels will be *replaced* with the provided labels.
-   * 
- * - * .google.container.v1.NodeLabels labels = 18; - * - * @return Whether the labels field is set. - */ - @java.lang.Override - public boolean hasLabels() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-   * The desired node labels to be applied to all nodes in the node pool.
-   * If this field is not present, the labels will not be changed. Otherwise,
-   * the existing node labels will be *replaced* with the provided labels.
-   * 
- * - * .google.container.v1.NodeLabels labels = 18; - * - * @return The labels. - */ - @java.lang.Override - public com.google.container.v1.NodeLabels getLabels() { - return labels_ == null ? com.google.container.v1.NodeLabels.getDefaultInstance() : labels_; - } - /** - * - * - *
-   * The desired node labels to be applied to all nodes in the node pool.
-   * If this field is not present, the labels will not be changed. Otherwise,
-   * the existing node labels will be *replaced* with the provided labels.
-   * 
- * - * .google.container.v1.NodeLabels labels = 18; - */ - @java.lang.Override - public com.google.container.v1.NodeLabelsOrBuilder getLabelsOrBuilder() { - return labels_ == null ? com.google.container.v1.NodeLabels.getDefaultInstance() : labels_; - } - - public static final int LINUX_NODE_CONFIG_FIELD_NUMBER = 19; - private com.google.container.v1.LinuxNodeConfig linuxNodeConfig_; - /** - * - * - *
-   * Parameters that can be configured on Linux nodes.
-   * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 19; - * - * @return Whether the linuxNodeConfig field is set. - */ - @java.lang.Override - public boolean hasLinuxNodeConfig() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * - * - *
-   * Parameters that can be configured on Linux nodes.
-   * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 19; - * - * @return The linuxNodeConfig. - */ - @java.lang.Override - public com.google.container.v1.LinuxNodeConfig getLinuxNodeConfig() { - return linuxNodeConfig_ == null - ? com.google.container.v1.LinuxNodeConfig.getDefaultInstance() - : linuxNodeConfig_; - } - /** - * - * - *
-   * Parameters that can be configured on Linux nodes.
-   * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 19; - */ - @java.lang.Override - public com.google.container.v1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder() { - return linuxNodeConfig_ == null - ? com.google.container.v1.LinuxNodeConfig.getDefaultInstance() - : linuxNodeConfig_; - } - - public static final int KUBELET_CONFIG_FIELD_NUMBER = 20; - private com.google.container.v1.NodeKubeletConfig kubeletConfig_; - /** - * - * - *
-   * Node kubelet configs.
-   * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 20; - * - * @return Whether the kubeletConfig field is set. - */ - @java.lang.Override - public boolean hasKubeletConfig() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * - * - *
-   * Node kubelet configs.
-   * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 20; - * - * @return The kubeletConfig. - */ - @java.lang.Override - public com.google.container.v1.NodeKubeletConfig getKubeletConfig() { - return kubeletConfig_ == null - ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() - : kubeletConfig_; - } - /** - * - * - *
-   * Node kubelet configs.
-   * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 20; - */ - @java.lang.Override - public com.google.container.v1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder() { - return kubeletConfig_ == null - ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() - : kubeletConfig_; - } - - public static final int NODE_NETWORK_CONFIG_FIELD_NUMBER = 21; - private com.google.container.v1.NodeNetworkConfig nodeNetworkConfig_; - /** - * - * - *
-   * Node network config.
-   * 
- * - * .google.container.v1.NodeNetworkConfig node_network_config = 21; - * - * @return Whether the nodeNetworkConfig field is set. - */ - @java.lang.Override - public boolean hasNodeNetworkConfig() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * - * - *
-   * Node network config.
-   * 
- * - * .google.container.v1.NodeNetworkConfig node_network_config = 21; - * - * @return The nodeNetworkConfig. - */ - @java.lang.Override - public com.google.container.v1.NodeNetworkConfig getNodeNetworkConfig() { - return nodeNetworkConfig_ == null - ? com.google.container.v1.NodeNetworkConfig.getDefaultInstance() - : nodeNetworkConfig_; - } - /** - * - * - *
-   * Node network config.
-   * 
- * - * .google.container.v1.NodeNetworkConfig node_network_config = 21; - */ - @java.lang.Override - public com.google.container.v1.NodeNetworkConfigOrBuilder getNodeNetworkConfigOrBuilder() { - return nodeNetworkConfig_ == null - ? com.google.container.v1.NodeNetworkConfig.getDefaultInstance() - : nodeNetworkConfig_; - } - - public static final int GCFS_CONFIG_FIELD_NUMBER = 22; - private com.google.container.v1.GcfsConfig gcfsConfig_; - /** - * - * - *
-   * GCFS config.
-   * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 22; - * - * @return Whether the gcfsConfig field is set. - */ - @java.lang.Override - public boolean hasGcfsConfig() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * - * - *
-   * GCFS config.
-   * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 22; - * - * @return The gcfsConfig. - */ - @java.lang.Override - public com.google.container.v1.GcfsConfig getGcfsConfig() { - return gcfsConfig_ == null - ? com.google.container.v1.GcfsConfig.getDefaultInstance() - : gcfsConfig_; - } - /** - * - * - *
-   * GCFS config.
-   * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 22; - */ - @java.lang.Override - public com.google.container.v1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { - return gcfsConfig_ == null - ? com.google.container.v1.GcfsConfig.getDefaultInstance() - : gcfsConfig_; - } - - public static final int CONFIDENTIAL_NODES_FIELD_NUMBER = 23; - private com.google.container.v1.ConfidentialNodes confidentialNodes_; - /** - * - * - *
-   * Confidential nodes config.
-   * All the nodes in the node pool will be Confidential VM once enabled.
-   * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 23; - * - * @return Whether the confidentialNodes field is set. - */ - @java.lang.Override - public boolean hasConfidentialNodes() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * - * - *
-   * Confidential nodes config.
-   * All the nodes in the node pool will be Confidential VM once enabled.
-   * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 23; - * - * @return The confidentialNodes. - */ - @java.lang.Override - public com.google.container.v1.ConfidentialNodes getConfidentialNodes() { - return confidentialNodes_ == null - ? com.google.container.v1.ConfidentialNodes.getDefaultInstance() - : confidentialNodes_; - } - /** - * - * - *
-   * Confidential nodes config.
-   * All the nodes in the node pool will be Confidential VM once enabled.
-   * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 23; - */ - @java.lang.Override - public com.google.container.v1.ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder() { - return confidentialNodes_ == null - ? com.google.container.v1.ConfidentialNodes.getDefaultInstance() - : confidentialNodes_; - } - - public static final int GVNIC_FIELD_NUMBER = 29; - private com.google.container.v1.VirtualNIC gvnic_; - /** - * - * - *
-   * Enable or disable gvnic on the node pool.
-   * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - * - * @return Whether the gvnic field is set. - */ - @java.lang.Override - public boolean hasGvnic() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - * - * - *
-   * Enable or disable gvnic on the node pool.
-   * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - * - * @return The gvnic. - */ - @java.lang.Override - public com.google.container.v1.VirtualNIC getGvnic() { - return gvnic_ == null ? com.google.container.v1.VirtualNIC.getDefaultInstance() : gvnic_; - } - /** - * - * - *
-   * Enable or disable gvnic on the node pool.
-   * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - */ - @java.lang.Override - public com.google.container.v1.VirtualNICOrBuilder getGvnicOrBuilder() { - return gvnic_ == null ? com.google.container.v1.VirtualNIC.getDefaultInstance() : gvnic_; - } - - public static final int ETAG_FIELD_NUMBER = 30; - - @SuppressWarnings("serial") - private volatile java.lang.Object etag_ = ""; - /** - * - * - *
-   * The current etag of the node pool.
-   * If an etag is provided and does not match the current etag of the node
-   * pool, update will be blocked and an ABORTED error will be returned.
-   * 
- * - * string etag = 30; - * - * @return The etag. - */ - @java.lang.Override - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } - } - /** - * - * - *
-   * The current etag of the node pool.
-   * If an etag is provided and does not match the current etag of the node
-   * pool, update will be blocked and an ABORTED error will be returned.
-   * 
- * - * string etag = 30; - * - * @return The bytes for etag. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FAST_SOCKET_FIELD_NUMBER = 31; - private com.google.container.v1.FastSocket fastSocket_; - /** - * - * - *
-   * Enable or disable NCCL fast socket for the node pool.
-   * 
- * - * .google.container.v1.FastSocket fast_socket = 31; - * - * @return Whether the fastSocket field is set. - */ - @java.lang.Override - public boolean hasFastSocket() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - * - * - *
-   * Enable or disable NCCL fast socket for the node pool.
-   * 
- * - * .google.container.v1.FastSocket fast_socket = 31; - * - * @return The fastSocket. - */ - @java.lang.Override - public com.google.container.v1.FastSocket getFastSocket() { - return fastSocket_ == null - ? com.google.container.v1.FastSocket.getDefaultInstance() - : fastSocket_; - } - /** - * - * - *
-   * Enable or disable NCCL fast socket for the node pool.
-   * 
- * - * .google.container.v1.FastSocket fast_socket = 31; - */ - @java.lang.Override - public com.google.container.v1.FastSocketOrBuilder getFastSocketOrBuilder() { - return fastSocket_ == null - ? com.google.container.v1.FastSocket.getDefaultInstance() - : fastSocket_; - } - - public static final int LOGGING_CONFIG_FIELD_NUMBER = 32; - private com.google.container.v1.NodePoolLoggingConfig loggingConfig_; - /** - * - * - *
-   * Logging configuration.
-   * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 32; - * - * @return Whether the loggingConfig field is set. - */ - @java.lang.Override - public boolean hasLoggingConfig() { - return ((bitField0_ & 0x00001000) != 0); - } - /** - * - * - *
-   * Logging configuration.
-   * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 32; - * - * @return The loggingConfig. - */ - @java.lang.Override - public com.google.container.v1.NodePoolLoggingConfig getLoggingConfig() { - return loggingConfig_ == null - ? com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance() - : loggingConfig_; - } - /** - * - * - *
-   * Logging configuration.
-   * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 32; - */ - @java.lang.Override - public com.google.container.v1.NodePoolLoggingConfigOrBuilder getLoggingConfigOrBuilder() { - return loggingConfig_ == null - ? com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance() - : loggingConfig_; - } - - public static final int RESOURCE_LABELS_FIELD_NUMBER = 33; - private com.google.container.v1.ResourceLabels resourceLabels_; - /** - * - * - *
-   * The resource labels for the node pool to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * .google.container.v1.ResourceLabels resource_labels = 33; - * - * @return Whether the resourceLabels field is set. - */ - @java.lang.Override - public boolean hasResourceLabels() { - return ((bitField0_ & 0x00002000) != 0); - } - /** - * - * - *
-   * The resource labels for the node pool to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * .google.container.v1.ResourceLabels resource_labels = 33; - * - * @return The resourceLabels. - */ - @java.lang.Override - public com.google.container.v1.ResourceLabels getResourceLabels() { - return resourceLabels_ == null - ? com.google.container.v1.ResourceLabels.getDefaultInstance() - : resourceLabels_; - } - /** - * - * - *
-   * The resource labels for the node pool to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * .google.container.v1.ResourceLabels resource_labels = 33; - */ - @java.lang.Override - public com.google.container.v1.ResourceLabelsOrBuilder getResourceLabelsOrBuilder() { - return resourceLabels_ == null - ? com.google.container.v1.ResourceLabels.getDefaultInstance() - : resourceLabels_; - } - - public static final int WINDOWS_NODE_CONFIG_FIELD_NUMBER = 34; - private com.google.container.v1.WindowsNodeConfig windowsNodeConfig_; - /** - * - * - *
-   * Parameters that can be configured on Windows nodes.
-   * 
- * - * .google.container.v1.WindowsNodeConfig windows_node_config = 34; - * - * @return Whether the windowsNodeConfig field is set. - */ - @java.lang.Override - public boolean hasWindowsNodeConfig() { - return ((bitField0_ & 0x00004000) != 0); - } - /** - * - * - *
-   * Parameters that can be configured on Windows nodes.
-   * 
- * - * .google.container.v1.WindowsNodeConfig windows_node_config = 34; - * - * @return The windowsNodeConfig. - */ - @java.lang.Override - public com.google.container.v1.WindowsNodeConfig getWindowsNodeConfig() { - return windowsNodeConfig_ == null - ? com.google.container.v1.WindowsNodeConfig.getDefaultInstance() - : windowsNodeConfig_; - } - /** - * - * - *
-   * Parameters that can be configured on Windows nodes.
-   * 
- * - * .google.container.v1.WindowsNodeConfig windows_node_config = 34; - */ - @java.lang.Override - public com.google.container.v1.WindowsNodeConfigOrBuilder getWindowsNodeConfigOrBuilder() { - return windowsNodeConfig_ == null - ? com.google.container.v1.WindowsNodeConfig.getDefaultInstance() - : windowsNodeConfig_; - } - - public static final int MACHINE_TYPE_FIELD_NUMBER = 36; - - @SuppressWarnings("serial") - private volatile java.lang.Object machineType_ = ""; - /** - * - * - *
-   * Optional. The desired [Google Compute Engine machine
-   * type](https://cloud.google.com/compute/docs/machine-types) for nodes in the
-   * node pool. Initiates an upgrade operation that migrates the nodes in the
-   * node pool to the specified machine type.
-   * 
- * - * string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - /** - * - * - *
-   * Optional. The desired [Google Compute Engine machine
-   * type](https://cloud.google.com/compute/docs/machine-types) for nodes in the
-   * node pool. Initiates an upgrade operation that migrates the nodes in the
-   * node pool to the specified machine type.
-   * 
- * - * string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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_TYPE_FIELD_NUMBER = 37; - - @SuppressWarnings("serial") - private volatile java.lang.Object diskType_ = ""; - /** - * - * - *
-   * Optional. The desired disk type (e.g. 'pd-standard', 'pd-ssd' or
-   * 'pd-balanced') for nodes in the node pool.
-   * Initiates an upgrade operation that migrates the nodes in the
-   * node pool to the specified disk type.
-   * 
- * - * string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - /** - * - * - *
-   * Optional. The desired disk type (e.g. 'pd-standard', 'pd-ssd' or
-   * 'pd-balanced') for nodes in the node pool.
-   * Initiates an upgrade operation that migrates the nodes in the
-   * node pool to the specified disk type.
-   * 
- * - * string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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 DISK_SIZE_GB_FIELD_NUMBER = 38; - private long diskSizeGb_ = 0L; - /** - * - * - *
-   * Optional. The desired disk size for nodes in the node pool specified in GB.
-   * The smallest allowed disk size is 10GB.
-   * Initiates an upgrade operation that migrates the nodes in the
-   * node pool to the specified disk size.
-   * 
- * - * int64 disk_size_gb = 38 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The diskSizeGb. - */ - @java.lang.Override - public long getDiskSizeGb() { - return diskSizeGb_; - } - - public static final int RESOURCE_MANAGER_TAGS_FIELD_NUMBER = 39; - private com.google.container.v1.ResourceManagerTags resourceManagerTags_; - /** - * - * - *
-   * Desired resource manager tag keys and values to be attached to the nodes
-   * for managing Compute Engine firewalls using Network Firewall Policies.
-   * Existing tags will be replaced with new values.
-   * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 39; - * - * @return Whether the resourceManagerTags field is set. - */ - @java.lang.Override - public boolean hasResourceManagerTags() { - return ((bitField0_ & 0x00008000) != 0); - } - /** - * - * - *
-   * Desired resource manager tag keys and values to be attached to the nodes
-   * for managing Compute Engine firewalls using Network Firewall Policies.
-   * Existing tags will be replaced with new values.
-   * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 39; - * - * @return The resourceManagerTags. - */ - @java.lang.Override - public com.google.container.v1.ResourceManagerTags getResourceManagerTags() { - return resourceManagerTags_ == null - ? com.google.container.v1.ResourceManagerTags.getDefaultInstance() - : resourceManagerTags_; - } - /** - * - * - *
-   * Desired resource manager tag keys and values to be attached to the nodes
-   * for managing Compute Engine firewalls using Network Firewall Policies.
-   * Existing tags will be replaced with new values.
-   * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 39; - */ - @java.lang.Override - public com.google.container.v1.ResourceManagerTagsOrBuilder getResourceManagerTagsOrBuilder() { - return resourceManagerTags_ == null - ? com.google.container.v1.ResourceManagerTags.getDefaultInstance() - : resourceManagerTags_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, nodeVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageType_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, imageType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - 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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(14, getWorkloadMetadataConfig()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(15, getUpgradeSettings()); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(16, getTags()); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(17, getTaints()); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeMessage(18, getLabels()); - } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeMessage(19, getLinuxNodeConfig()); - } - if (((bitField0_ & 0x00000040) != 0)) { - output.writeMessage(20, getKubeletConfig()); - } - if (((bitField0_ & 0x00000080) != 0)) { - output.writeMessage(21, getNodeNetworkConfig()); - } - if (((bitField0_ & 0x00000100) != 0)) { - output.writeMessage(22, getGcfsConfig()); - } - if (((bitField0_ & 0x00000200) != 0)) { - output.writeMessage(23, getConfidentialNodes()); - } - if (((bitField0_ & 0x00000400) != 0)) { - output.writeMessage(29, getGvnic()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 30, etag_); - } - if (((bitField0_ & 0x00000800) != 0)) { - output.writeMessage(31, getFastSocket()); - } - if (((bitField0_ & 0x00001000) != 0)) { - output.writeMessage(32, getLoggingConfig()); - } - if (((bitField0_ & 0x00002000) != 0)) { - output.writeMessage(33, getResourceLabels()); - } - if (((bitField0_ & 0x00004000) != 0)) { - output.writeMessage(34, getWindowsNodeConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 36, machineType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 37, diskType_); - } - if (diskSizeGb_ != 0L) { - output.writeInt64(38, diskSizeGb_); - } - if (((bitField0_ & 0x00008000) != 0)) { - output.writeMessage(39, getResourceManagerTags()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, nodeVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageType_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, imageType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - 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 (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(14, getWorkloadMetadataConfig()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getUpgradeSettings()); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getTags()); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getTaints()); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getLabels()); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getLinuxNodeConfig()); - } - if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getKubeletConfig()); - } - if (((bitField0_ & 0x00000080) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getNodeNetworkConfig()); - } - if (((bitField0_ & 0x00000100) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getGcfsConfig()); - } - if (((bitField0_ & 0x00000200) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getConfidentialNodes()); - } - if (((bitField0_ & 0x00000400) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getGvnic()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(30, etag_); - } - if (((bitField0_ & 0x00000800) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(31, getFastSocket()); - } - if (((bitField0_ & 0x00001000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(32, getLoggingConfig()); - } - if (((bitField0_ & 0x00002000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(33, getResourceLabels()); - } - if (((bitField0_ & 0x00004000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(34, getWindowsNodeConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(36, machineType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(37, diskType_); - } - if (diskSizeGb_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(38, diskSizeGb_); - } - if (((bitField0_ & 0x00008000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(39, getResourceManagerTags()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.UpdateNodePoolRequest)) { - return super.equals(obj); - } - com.google.container.v1.UpdateNodePoolRequest other = - (com.google.container.v1.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 (!getName().equals(other.getName())) return false; - if (!getLocationsList().equals(other.getLocationsList())) return false; - if (hasWorkloadMetadataConfig() != other.hasWorkloadMetadataConfig()) return false; - if (hasWorkloadMetadataConfig()) { - if (!getWorkloadMetadataConfig().equals(other.getWorkloadMetadataConfig())) return false; - } - if (hasUpgradeSettings() != other.hasUpgradeSettings()) return false; - if (hasUpgradeSettings()) { - if (!getUpgradeSettings().equals(other.getUpgradeSettings())) return false; - } - if (hasTags() != other.hasTags()) return false; - if (hasTags()) { - if (!getTags().equals(other.getTags())) return false; - } - if (hasTaints() != other.hasTaints()) return false; - if (hasTaints()) { - if (!getTaints().equals(other.getTaints())) return false; - } - if (hasLabels() != other.hasLabels()) return false; - if (hasLabels()) { - if (!getLabels().equals(other.getLabels())) 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 (hasNodeNetworkConfig() != other.hasNodeNetworkConfig()) return false; - if (hasNodeNetworkConfig()) { - if (!getNodeNetworkConfig().equals(other.getNodeNetworkConfig())) return false; - } - if (hasGcfsConfig() != other.hasGcfsConfig()) return false; - if (hasGcfsConfig()) { - if (!getGcfsConfig().equals(other.getGcfsConfig())) return false; - } - if (hasConfidentialNodes() != other.hasConfidentialNodes()) return false; - if (hasConfidentialNodes()) { - if (!getConfidentialNodes().equals(other.getConfidentialNodes())) return false; - } - if (hasGvnic() != other.hasGvnic()) return false; - if (hasGvnic()) { - if (!getGvnic().equals(other.getGvnic())) return false; - } - if (!getEtag().equals(other.getEtag())) return false; - if (hasFastSocket() != other.hasFastSocket()) return false; - if (hasFastSocket()) { - if (!getFastSocket().equals(other.getFastSocket())) return false; - } - if (hasLoggingConfig() != other.hasLoggingConfig()) return false; - if (hasLoggingConfig()) { - if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; - } - if (hasResourceLabels() != other.hasResourceLabels()) return false; - if (hasResourceLabels()) { - if (!getResourceLabels().equals(other.getResourceLabels())) return false; - } - if (hasWindowsNodeConfig() != other.hasWindowsNodeConfig()) return false; - if (hasWindowsNodeConfig()) { - if (!getWindowsNodeConfig().equals(other.getWindowsNodeConfig())) return false; - } - if (!getMachineType().equals(other.getMachineType())) return false; - if (!getDiskType().equals(other.getDiskType())) return false; - if (getDiskSizeGb() != other.getDiskSizeGb()) return false; - if (hasResourceManagerTags() != other.hasResourceManagerTags()) return false; - if (hasResourceManagerTags()) { - if (!getResourceManagerTags().equals(other.getResourceManagerTags())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (getLocationsCount() > 0) { - hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; - hash = (53 * hash) + getLocationsList().hashCode(); - } - if (hasWorkloadMetadataConfig()) { - hash = (37 * hash) + WORKLOAD_METADATA_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getWorkloadMetadataConfig().hashCode(); - } - if (hasUpgradeSettings()) { - hash = (37 * hash) + UPGRADE_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getUpgradeSettings().hashCode(); - } - if (hasTags()) { - hash = (37 * hash) + TAGS_FIELD_NUMBER; - hash = (53 * hash) + getTags().hashCode(); - } - if (hasTaints()) { - hash = (37 * hash) + TAINTS_FIELD_NUMBER; - hash = (53 * hash) + getTaints().hashCode(); - } - if (hasLabels()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + getLabels().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 (hasNodeNetworkConfig()) { - hash = (37 * hash) + NODE_NETWORK_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getNodeNetworkConfig().hashCode(); - } - if (hasGcfsConfig()) { - hash = (37 * hash) + GCFS_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getGcfsConfig().hashCode(); - } - if (hasConfidentialNodes()) { - hash = (37 * hash) + CONFIDENTIAL_NODES_FIELD_NUMBER; - hash = (53 * hash) + getConfidentialNodes().hashCode(); - } - if (hasGvnic()) { - hash = (37 * hash) + GVNIC_FIELD_NUMBER; - hash = (53 * hash) + getGvnic().hashCode(); - } - hash = (37 * hash) + ETAG_FIELD_NUMBER; - hash = (53 * hash) + getEtag().hashCode(); - if (hasFastSocket()) { - hash = (37 * hash) + FAST_SOCKET_FIELD_NUMBER; - hash = (53 * hash) + getFastSocket().hashCode(); - } - if (hasLoggingConfig()) { - hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getLoggingConfig().hashCode(); - } - if (hasResourceLabels()) { - hash = (37 * hash) + RESOURCE_LABELS_FIELD_NUMBER; - hash = (53 * hash) + getResourceLabels().hashCode(); - } - if (hasWindowsNodeConfig()) { - hash = (37 * hash) + WINDOWS_NODE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getWindowsNodeConfig().hashCode(); - } - hash = (37 * hash) + MACHINE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getMachineType().hashCode(); - hash = (37 * hash) + DISK_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getDiskType().hashCode(); - hash = (37 * hash) + DISK_SIZE_GB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDiskSizeGb()); - if (hasResourceManagerTags()) { - hash = (37 * hash) + RESOURCE_MANAGER_TAGS_FIELD_NUMBER; - hash = (53 * hash) + getResourceManagerTags().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.UpdateNodePoolRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.UpdateNodePoolRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.UpdateNodePoolRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.UpdateNodePoolRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.UpdateNodePoolRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.UpdateNodePoolRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.UpdateNodePoolRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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; - } - /** - * - * - *
-   * UpdateNodePoolRequests update a node pool's image and/or version.
-   * 
- * - * Protobuf type {@code google.container.v1.UpdateNodePoolRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.UpdateNodePoolRequest) - com.google.container.v1.UpdateNodePoolRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UpdateNodePoolRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UpdateNodePoolRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.UpdateNodePoolRequest.class, - com.google.container.v1.UpdateNodePoolRequest.Builder.class); - } - - // Construct using com.google.container.v1.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) { - getWorkloadMetadataConfigFieldBuilder(); - getUpgradeSettingsFieldBuilder(); - getTagsFieldBuilder(); - getTaintsFieldBuilder(); - getLabelsFieldBuilder(); - getLinuxNodeConfigFieldBuilder(); - getKubeletConfigFieldBuilder(); - getNodeNetworkConfigFieldBuilder(); - getGcfsConfigFieldBuilder(); - getConfidentialNodesFieldBuilder(); - getGvnicFieldBuilder(); - getFastSocketFieldBuilder(); - getLoggingConfigFieldBuilder(); - getResourceLabelsFieldBuilder(); - getWindowsNodeConfigFieldBuilder(); - getResourceManagerTagsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - nodePoolId_ = ""; - nodeVersion_ = ""; - imageType_ = ""; - name_ = ""; - locations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - workloadMetadataConfig_ = null; - if (workloadMetadataConfigBuilder_ != null) { - workloadMetadataConfigBuilder_.dispose(); - workloadMetadataConfigBuilder_ = null; - } - upgradeSettings_ = null; - if (upgradeSettingsBuilder_ != null) { - upgradeSettingsBuilder_.dispose(); - upgradeSettingsBuilder_ = null; - } - tags_ = null; - if (tagsBuilder_ != null) { - tagsBuilder_.dispose(); - tagsBuilder_ = null; - } - taints_ = null; - if (taintsBuilder_ != null) { - taintsBuilder_.dispose(); - taintsBuilder_ = null; - } - labels_ = null; - if (labelsBuilder_ != null) { - labelsBuilder_.dispose(); - labelsBuilder_ = null; - } - linuxNodeConfig_ = null; - if (linuxNodeConfigBuilder_ != null) { - linuxNodeConfigBuilder_.dispose(); - linuxNodeConfigBuilder_ = null; - } - kubeletConfig_ = null; - if (kubeletConfigBuilder_ != null) { - kubeletConfigBuilder_.dispose(); - kubeletConfigBuilder_ = null; - } - nodeNetworkConfig_ = null; - if (nodeNetworkConfigBuilder_ != null) { - nodeNetworkConfigBuilder_.dispose(); - nodeNetworkConfigBuilder_ = null; - } - gcfsConfig_ = null; - if (gcfsConfigBuilder_ != null) { - gcfsConfigBuilder_.dispose(); - gcfsConfigBuilder_ = null; - } - confidentialNodes_ = null; - if (confidentialNodesBuilder_ != null) { - confidentialNodesBuilder_.dispose(); - confidentialNodesBuilder_ = null; - } - gvnic_ = null; - if (gvnicBuilder_ != null) { - gvnicBuilder_.dispose(); - gvnicBuilder_ = null; - } - etag_ = ""; - fastSocket_ = null; - if (fastSocketBuilder_ != null) { - fastSocketBuilder_.dispose(); - fastSocketBuilder_ = null; - } - loggingConfig_ = null; - if (loggingConfigBuilder_ != null) { - loggingConfigBuilder_.dispose(); - loggingConfigBuilder_ = null; - } - resourceLabels_ = null; - if (resourceLabelsBuilder_ != null) { - resourceLabelsBuilder_.dispose(); - resourceLabelsBuilder_ = null; - } - windowsNodeConfig_ = null; - if (windowsNodeConfigBuilder_ != null) { - windowsNodeConfigBuilder_.dispose(); - windowsNodeConfigBuilder_ = null; - } - machineType_ = ""; - diskType_ = ""; - diskSizeGb_ = 0L; - resourceManagerTags_ = null; - if (resourceManagerTagsBuilder_ != null) { - resourceManagerTagsBuilder_.dispose(); - resourceManagerTagsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UpdateNodePoolRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.UpdateNodePoolRequest getDefaultInstanceForType() { - return com.google.container.v1.UpdateNodePoolRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.UpdateNodePoolRequest build() { - com.google.container.v1.UpdateNodePoolRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.UpdateNodePoolRequest buildPartial() { - com.google.container.v1.UpdateNodePoolRequest result = - new com.google.container.v1.UpdateNodePoolRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.UpdateNodePoolRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.nodePoolId_ = nodePoolId_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.nodeVersion_ = nodeVersion_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.imageType_ = imageType_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - locations_.makeImmutable(); - result.locations_ = locations_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000100) != 0)) { - result.workloadMetadataConfig_ = - workloadMetadataConfigBuilder_ == null - ? workloadMetadataConfig_ - : workloadMetadataConfigBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.upgradeSettings_ = - upgradeSettingsBuilder_ == null ? upgradeSettings_ : upgradeSettingsBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.tags_ = tagsBuilder_ == null ? tags_ : tagsBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.taints_ = taintsBuilder_ == null ? taints_ : taintsBuilder_.build(); - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.labels_ = labelsBuilder_ == null ? labels_ : labelsBuilder_.build(); - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.linuxNodeConfig_ = - linuxNodeConfigBuilder_ == null ? linuxNodeConfig_ : linuxNodeConfigBuilder_.build(); - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.kubeletConfig_ = - kubeletConfigBuilder_ == null ? kubeletConfig_ : kubeletConfigBuilder_.build(); - to_bitField0_ |= 0x00000040; - } - if (((from_bitField0_ & 0x00008000) != 0)) { - result.nodeNetworkConfig_ = - nodeNetworkConfigBuilder_ == null - ? nodeNetworkConfig_ - : nodeNetworkConfigBuilder_.build(); - to_bitField0_ |= 0x00000080; - } - if (((from_bitField0_ & 0x00010000) != 0)) { - result.gcfsConfig_ = gcfsConfigBuilder_ == null ? gcfsConfig_ : gcfsConfigBuilder_.build(); - to_bitField0_ |= 0x00000100; - } - if (((from_bitField0_ & 0x00020000) != 0)) { - result.confidentialNodes_ = - confidentialNodesBuilder_ == null - ? confidentialNodes_ - : confidentialNodesBuilder_.build(); - to_bitField0_ |= 0x00000200; - } - if (((from_bitField0_ & 0x00040000) != 0)) { - result.gvnic_ = gvnicBuilder_ == null ? gvnic_ : gvnicBuilder_.build(); - to_bitField0_ |= 0x00000400; - } - if (((from_bitField0_ & 0x00080000) != 0)) { - result.etag_ = etag_; - } - if (((from_bitField0_ & 0x00100000) != 0)) { - result.fastSocket_ = fastSocketBuilder_ == null ? fastSocket_ : fastSocketBuilder_.build(); - to_bitField0_ |= 0x00000800; - } - if (((from_bitField0_ & 0x00200000) != 0)) { - result.loggingConfig_ = - loggingConfigBuilder_ == null ? loggingConfig_ : loggingConfigBuilder_.build(); - to_bitField0_ |= 0x00001000; - } - if (((from_bitField0_ & 0x00400000) != 0)) { - result.resourceLabels_ = - resourceLabelsBuilder_ == null ? resourceLabels_ : resourceLabelsBuilder_.build(); - to_bitField0_ |= 0x00002000; - } - if (((from_bitField0_ & 0x00800000) != 0)) { - result.windowsNodeConfig_ = - windowsNodeConfigBuilder_ == null - ? windowsNodeConfig_ - : windowsNodeConfigBuilder_.build(); - to_bitField0_ |= 0x00004000; - } - if (((from_bitField0_ & 0x01000000) != 0)) { - result.machineType_ = machineType_; - } - if (((from_bitField0_ & 0x02000000) != 0)) { - result.diskType_ = diskType_; - } - if (((from_bitField0_ & 0x04000000) != 0)) { - result.diskSizeGb_ = diskSizeGb_; - } - if (((from_bitField0_ & 0x08000000) != 0)) { - result.resourceManagerTags_ = - resourceManagerTagsBuilder_ == null - ? resourceManagerTags_ - : resourceManagerTagsBuilder_.build(); - to_bitField0_ |= 0x00008000; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.UpdateNodePoolRequest) { - return mergeFrom((com.google.container.v1.UpdateNodePoolRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.UpdateNodePoolRequest other) { - if (other == com.google.container.v1.UpdateNodePoolRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getNodePoolId().isEmpty()) { - nodePoolId_ = other.nodePoolId_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getNodeVersion().isEmpty()) { - nodeVersion_ = other.nodeVersion_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (!other.getImageType().isEmpty()) { - imageType_ = other.imageType_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000040; - onChanged(); - } - if (!other.locations_.isEmpty()) { - if (locations_.isEmpty()) { - locations_ = other.locations_; - bitField0_ |= 0x00000080; - } else { - ensureLocationsIsMutable(); - locations_.addAll(other.locations_); - } - onChanged(); - } - if (other.hasWorkloadMetadataConfig()) { - mergeWorkloadMetadataConfig(other.getWorkloadMetadataConfig()); - } - if (other.hasUpgradeSettings()) { - mergeUpgradeSettings(other.getUpgradeSettings()); - } - if (other.hasTags()) { - mergeTags(other.getTags()); - } - if (other.hasTaints()) { - mergeTaints(other.getTaints()); - } - if (other.hasLabels()) { - mergeLabels(other.getLabels()); - } - if (other.hasLinuxNodeConfig()) { - mergeLinuxNodeConfig(other.getLinuxNodeConfig()); - } - if (other.hasKubeletConfig()) { - mergeKubeletConfig(other.getKubeletConfig()); - } - if (other.hasNodeNetworkConfig()) { - mergeNodeNetworkConfig(other.getNodeNetworkConfig()); - } - if (other.hasGcfsConfig()) { - mergeGcfsConfig(other.getGcfsConfig()); - } - if (other.hasConfidentialNodes()) { - mergeConfidentialNodes(other.getConfidentialNodes()); - } - if (other.hasGvnic()) { - mergeGvnic(other.getGvnic()); - } - if (!other.getEtag().isEmpty()) { - etag_ = other.etag_; - bitField0_ |= 0x00080000; - onChanged(); - } - if (other.hasFastSocket()) { - mergeFastSocket(other.getFastSocket()); - } - if (other.hasLoggingConfig()) { - mergeLoggingConfig(other.getLoggingConfig()); - } - if (other.hasResourceLabels()) { - mergeResourceLabels(other.getResourceLabels()); - } - if (other.hasWindowsNodeConfig()) { - mergeWindowsNodeConfig(other.getWindowsNodeConfig()); - } - if (!other.getMachineType().isEmpty()) { - machineType_ = other.machineType_; - bitField0_ |= 0x01000000; - onChanged(); - } - if (!other.getDiskType().isEmpty()) { - diskType_ = other.diskType_; - bitField0_ |= 0x02000000; - onChanged(); - } - if (other.getDiskSizeGb() != 0L) { - setDiskSizeGb(other.getDiskSizeGb()); - } - if (other.hasResourceManagerTags()) { - mergeResourceManagerTags(other.getResourceManagerTags()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - nodePoolId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - nodeVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - imageType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 66: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 66 - case 106: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureLocationsIsMutable(); - locations_.add(s); - break; - } // case 106 - case 114: - { - input.readMessage( - getWorkloadMetadataConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 114 - case 122: - { - input.readMessage(getUpgradeSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 122 - case 130: - { - input.readMessage(getTagsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; - break; - } // case 130 - case 138: - { - input.readMessage(getTaintsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; - break; - } // case 138 - case 146: - { - input.readMessage(getLabelsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; - break; - } // case 146 - case 154: - { - input.readMessage(getLinuxNodeConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00002000; - break; - } // case 154 - case 162: - { - input.readMessage(getKubeletConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; - break; - } // case 162 - case 170: - { - input.readMessage( - getNodeNetworkConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00008000; - break; - } // case 170 - case 178: - { - input.readMessage(getGcfsConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; - break; - } // case 178 - case 186: - { - input.readMessage( - getConfidentialNodesFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00020000; - break; - } // case 186 - case 234: - { - input.readMessage(getGvnicFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00040000; - break; - } // case 234 - case 242: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00080000; - break; - } // case 242 - case 250: - { - input.readMessage(getFastSocketFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00100000; - break; - } // case 250 - case 258: - { - input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00200000; - break; - } // case 258 - case 266: - { - input.readMessage(getResourceLabelsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00400000; - break; - } // case 266 - case 274: - { - input.readMessage( - getWindowsNodeConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00800000; - break; - } // case 274 - case 290: - { - machineType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x01000000; - break; - } // case 290 - case 298: - { - diskType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x02000000; - break; - } // case 298 - case 304: - { - diskSizeGb_ = input.readInt64(); - bitField0_ |= 0x04000000; - break; - } // case 304 - case 314: - { - input.readMessage( - getResourceManagerTagsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x08000000; - break; - } // case 314 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2629 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2629 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2629 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2629 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2629 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2635 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2635 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2635 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2635 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2635 - * @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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2639 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2639 - * @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; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2639 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2639 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2639 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object nodePoolId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the node pool to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2643 - * @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; - } - } - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2643 - * @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; - } - } - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2643 - * @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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the node pool to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2643 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearNodePoolId() { - nodePoolId_ = getDefaultInstance().getNodePoolId(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the node pool to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2643 - * @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; - bitField0_ |= 0x00000008; - 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; - bitField0_ |= 0x00000010; - 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(); - bitField0_ = (bitField0_ & ~0x00000010); - 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; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private java.lang.Object imageType_ = ""; - /** - * - * - *
-     * Required. The desired image type for the node pool. Please see
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-     * available image types.
-     * 
- * - * 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. Please see
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-     * available image types.
-     * 
- * - * 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. Please see
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-     * available image types.
-     * 
- * - * 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; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The desired image type for the node pool. Please see
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-     * available image types.
-     * 
- * - * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearImageType() { - imageType_ = getDefaultInstance().getImageType(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The desired image type for the node pool. Please see
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-     * available image types.
-     * 
- * - * 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; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name (project, location, cluster, node pool) of the node pool to
-     * update. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 8; - * - * @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; - bitField0_ |= 0x00000040; - 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(); - bitField0_ = (bitField0_ & ~0x00000040); - 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; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList locations_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureLocationsIsMutable() { - if (!locations_.isModifiable()) { - locations_ = new com.google.protobuf.LazyStringArrayList(locations_); - } - bitField0_ |= 0x00000080; - } - /** - * - * - *
-     * 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() { - locations_.makeImmutable(); - 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); - } - /** - * - * - *
-     * 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); - bitField0_ |= 0x00000080; - 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); - bitField0_ |= 0x00000080; - 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_); - bitField0_ |= 0x00000080; - 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.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - ; - 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); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - - private com.google.container.v1.WorkloadMetadataConfig workloadMetadataConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WorkloadMetadataConfig, - com.google.container.v1.WorkloadMetadataConfig.Builder, - com.google.container.v1.WorkloadMetadataConfigOrBuilder> - workloadMetadataConfigBuilder_; - /** - * - * - *
-     * The desired workload metadata config for the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * - * @return Whether the workloadMetadataConfig field is set. - */ - public boolean hasWorkloadMetadataConfig() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * - * - *
-     * The desired workload metadata config for the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * - * @return The workloadMetadataConfig. - */ - public com.google.container.v1.WorkloadMetadataConfig getWorkloadMetadataConfig() { - if (workloadMetadataConfigBuilder_ == null) { - return workloadMetadataConfig_ == null - ? com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance() - : workloadMetadataConfig_; - } else { - return workloadMetadataConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired workload metadata config for the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public Builder setWorkloadMetadataConfig(com.google.container.v1.WorkloadMetadataConfig value) { - if (workloadMetadataConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workloadMetadataConfig_ = value; - } else { - workloadMetadataConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired workload metadata config for the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public Builder setWorkloadMetadataConfig( - com.google.container.v1.WorkloadMetadataConfig.Builder builderForValue) { - if (workloadMetadataConfigBuilder_ == null) { - workloadMetadataConfig_ = builderForValue.build(); - } else { - workloadMetadataConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired workload metadata config for the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public Builder mergeWorkloadMetadataConfig( - com.google.container.v1.WorkloadMetadataConfig value) { - if (workloadMetadataConfigBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && workloadMetadataConfig_ != null - && workloadMetadataConfig_ - != com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance()) { - getWorkloadMetadataConfigBuilder().mergeFrom(value); - } else { - workloadMetadataConfig_ = value; - } - } else { - workloadMetadataConfigBuilder_.mergeFrom(value); - } - if (workloadMetadataConfig_ != null) { - bitField0_ |= 0x00000100; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired workload metadata config for the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public Builder clearWorkloadMetadataConfig() { - bitField0_ = (bitField0_ & ~0x00000100); - workloadMetadataConfig_ = null; - if (workloadMetadataConfigBuilder_ != null) { - workloadMetadataConfigBuilder_.dispose(); - workloadMetadataConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired workload metadata config for the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public com.google.container.v1.WorkloadMetadataConfig.Builder - getWorkloadMetadataConfigBuilder() { - bitField0_ |= 0x00000100; - onChanged(); - return getWorkloadMetadataConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired workload metadata config for the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public com.google.container.v1.WorkloadMetadataConfigOrBuilder - getWorkloadMetadataConfigOrBuilder() { - if (workloadMetadataConfigBuilder_ != null) { - return workloadMetadataConfigBuilder_.getMessageOrBuilder(); - } else { - return workloadMetadataConfig_ == null - ? com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance() - : workloadMetadataConfig_; - } - } - /** - * - * - *
-     * The desired workload metadata config for the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WorkloadMetadataConfig, - com.google.container.v1.WorkloadMetadataConfig.Builder, - com.google.container.v1.WorkloadMetadataConfigOrBuilder> - getWorkloadMetadataConfigFieldBuilder() { - if (workloadMetadataConfigBuilder_ == null) { - workloadMetadataConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WorkloadMetadataConfig, - com.google.container.v1.WorkloadMetadataConfig.Builder, - com.google.container.v1.WorkloadMetadataConfigOrBuilder>( - getWorkloadMetadataConfig(), getParentForChildren(), isClean()); - workloadMetadataConfig_ = null; - } - return workloadMetadataConfigBuilder_; - } - - private com.google.container.v1.NodePool.UpgradeSettings upgradeSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool.UpgradeSettings, - com.google.container.v1.NodePool.UpgradeSettings.Builder, - com.google.container.v1.NodePool.UpgradeSettingsOrBuilder> - upgradeSettingsBuilder_; - /** - * - * - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - * - * @return Whether the upgradeSettings field is set. - */ - public boolean hasUpgradeSettings() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * - * - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - * - * @return The upgradeSettings. - */ - public com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings() { - if (upgradeSettingsBuilder_ == null) { - return upgradeSettings_ == null - ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() - : upgradeSettings_; - } else { - return upgradeSettingsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - */ - public Builder setUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value) { - if (upgradeSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - upgradeSettings_ = value; - } else { - upgradeSettingsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * - * - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - */ - public Builder setUpgradeSettings( - com.google.container.v1.NodePool.UpgradeSettings.Builder builderForValue) { - if (upgradeSettingsBuilder_ == null) { - upgradeSettings_ = builderForValue.build(); - } else { - upgradeSettingsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * - * - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - */ - public Builder mergeUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value) { - if (upgradeSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && upgradeSettings_ != null - && upgradeSettings_ - != com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance()) { - getUpgradeSettingsBuilder().mergeFrom(value); - } else { - upgradeSettings_ = value; - } - } else { - upgradeSettingsBuilder_.mergeFrom(value); - } - if (upgradeSettings_ != null) { - bitField0_ |= 0x00000200; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - */ - public Builder clearUpgradeSettings() { - bitField0_ = (bitField0_ & ~0x00000200); - upgradeSettings_ = null; - if (upgradeSettingsBuilder_ != null) { - upgradeSettingsBuilder_.dispose(); - upgradeSettingsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - */ - public com.google.container.v1.NodePool.UpgradeSettings.Builder getUpgradeSettingsBuilder() { - bitField0_ |= 0x00000200; - onChanged(); - return getUpgradeSettingsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - */ - public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { - if (upgradeSettingsBuilder_ != null) { - return upgradeSettingsBuilder_.getMessageOrBuilder(); - } else { - return upgradeSettings_ == null - ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() - : upgradeSettings_; - } - } - /** - * - * - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool.UpgradeSettings, - com.google.container.v1.NodePool.UpgradeSettings.Builder, - com.google.container.v1.NodePool.UpgradeSettingsOrBuilder> - getUpgradeSettingsFieldBuilder() { - if (upgradeSettingsBuilder_ == null) { - upgradeSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool.UpgradeSettings, - com.google.container.v1.NodePool.UpgradeSettings.Builder, - com.google.container.v1.NodePool.UpgradeSettingsOrBuilder>( - getUpgradeSettings(), getParentForChildren(), isClean()); - upgradeSettings_ = null; - } - return upgradeSettingsBuilder_; - } - - private com.google.container.v1.NetworkTags tags_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkTags, - com.google.container.v1.NetworkTags.Builder, - com.google.container.v1.NetworkTagsOrBuilder> - tagsBuilder_; - /** - * - * - *
-     * The desired network tags to be applied to all nodes in the node pool.
-     * If this field is not present, the tags will not be changed. Otherwise,
-     * the existing network tags will be *replaced* with the provided tags.
-     * 
- * - * .google.container.v1.NetworkTags tags = 16; - * - * @return Whether the tags field is set. - */ - public boolean hasTags() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - * - * - *
-     * The desired network tags to be applied to all nodes in the node pool.
-     * If this field is not present, the tags will not be changed. Otherwise,
-     * the existing network tags will be *replaced* with the provided tags.
-     * 
- * - * .google.container.v1.NetworkTags tags = 16; - * - * @return The tags. - */ - public com.google.container.v1.NetworkTags getTags() { - if (tagsBuilder_ == null) { - return tags_ == null ? com.google.container.v1.NetworkTags.getDefaultInstance() : tags_; - } else { - return tagsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired network tags to be applied to all nodes in the node pool.
-     * If this field is not present, the tags will not be changed. Otherwise,
-     * the existing network tags will be *replaced* with the provided tags.
-     * 
- * - * .google.container.v1.NetworkTags tags = 16; - */ - public Builder setTags(com.google.container.v1.NetworkTags value) { - if (tagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tags_ = value; - } else { - tagsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired network tags to be applied to all nodes in the node pool.
-     * If this field is not present, the tags will not be changed. Otherwise,
-     * the existing network tags will be *replaced* with the provided tags.
-     * 
- * - * .google.container.v1.NetworkTags tags = 16; - */ - public Builder setTags(com.google.container.v1.NetworkTags.Builder builderForValue) { - if (tagsBuilder_ == null) { - tags_ = builderForValue.build(); - } else { - tagsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired network tags to be applied to all nodes in the node pool.
-     * If this field is not present, the tags will not be changed. Otherwise,
-     * the existing network tags will be *replaced* with the provided tags.
-     * 
- * - * .google.container.v1.NetworkTags tags = 16; - */ - public Builder mergeTags(com.google.container.v1.NetworkTags value) { - if (tagsBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) - && tags_ != null - && tags_ != com.google.container.v1.NetworkTags.getDefaultInstance()) { - getTagsBuilder().mergeFrom(value); - } else { - tags_ = value; - } - } else { - tagsBuilder_.mergeFrom(value); - } - if (tags_ != null) { - bitField0_ |= 0x00000400; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired network tags to be applied to all nodes in the node pool.
-     * If this field is not present, the tags will not be changed. Otherwise,
-     * the existing network tags will be *replaced* with the provided tags.
-     * 
- * - * .google.container.v1.NetworkTags tags = 16; - */ - public Builder clearTags() { - bitField0_ = (bitField0_ & ~0x00000400); - tags_ = null; - if (tagsBuilder_ != null) { - tagsBuilder_.dispose(); - tagsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired network tags to be applied to all nodes in the node pool.
-     * If this field is not present, the tags will not be changed. Otherwise,
-     * the existing network tags will be *replaced* with the provided tags.
-     * 
- * - * .google.container.v1.NetworkTags tags = 16; - */ - public com.google.container.v1.NetworkTags.Builder getTagsBuilder() { - bitField0_ |= 0x00000400; - onChanged(); - return getTagsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired network tags to be applied to all nodes in the node pool.
-     * If this field is not present, the tags will not be changed. Otherwise,
-     * the existing network tags will be *replaced* with the provided tags.
-     * 
- * - * .google.container.v1.NetworkTags tags = 16; - */ - public com.google.container.v1.NetworkTagsOrBuilder getTagsOrBuilder() { - if (tagsBuilder_ != null) { - return tagsBuilder_.getMessageOrBuilder(); - } else { - return tags_ == null ? com.google.container.v1.NetworkTags.getDefaultInstance() : tags_; - } - } - /** - * - * - *
-     * The desired network tags to be applied to all nodes in the node pool.
-     * If this field is not present, the tags will not be changed. Otherwise,
-     * the existing network tags will be *replaced* with the provided tags.
-     * 
- * - * .google.container.v1.NetworkTags tags = 16; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkTags, - com.google.container.v1.NetworkTags.Builder, - com.google.container.v1.NetworkTagsOrBuilder> - getTagsFieldBuilder() { - if (tagsBuilder_ == null) { - tagsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkTags, - com.google.container.v1.NetworkTags.Builder, - com.google.container.v1.NetworkTagsOrBuilder>( - getTags(), getParentForChildren(), isClean()); - tags_ = null; - } - return tagsBuilder_; - } - - private com.google.container.v1.NodeTaints taints_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeTaints, - com.google.container.v1.NodeTaints.Builder, - com.google.container.v1.NodeTaintsOrBuilder> - taintsBuilder_; - /** - * - * - *
-     * The desired node taints to be applied to all nodes in the node pool.
-     * If this field is not present, the taints will not be changed. Otherwise,
-     * the existing node taints will be *replaced* with the provided taints.
-     * 
- * - * .google.container.v1.NodeTaints taints = 17; - * - * @return Whether the taints field is set. - */ - public boolean hasTaints() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - * - * - *
-     * The desired node taints to be applied to all nodes in the node pool.
-     * If this field is not present, the taints will not be changed. Otherwise,
-     * the existing node taints will be *replaced* with the provided taints.
-     * 
- * - * .google.container.v1.NodeTaints taints = 17; - * - * @return The taints. - */ - public com.google.container.v1.NodeTaints getTaints() { - if (taintsBuilder_ == null) { - return taints_ == null ? com.google.container.v1.NodeTaints.getDefaultInstance() : taints_; - } else { - return taintsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired node taints to be applied to all nodes in the node pool.
-     * If this field is not present, the taints will not be changed. Otherwise,
-     * the existing node taints will be *replaced* with the provided taints.
-     * 
- * - * .google.container.v1.NodeTaints taints = 17; - */ - public Builder setTaints(com.google.container.v1.NodeTaints value) { - if (taintsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - taints_ = value; - } else { - taintsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired node taints to be applied to all nodes in the node pool.
-     * If this field is not present, the taints will not be changed. Otherwise,
-     * the existing node taints will be *replaced* with the provided taints.
-     * 
- * - * .google.container.v1.NodeTaints taints = 17; - */ - public Builder setTaints(com.google.container.v1.NodeTaints.Builder builderForValue) { - if (taintsBuilder_ == null) { - taints_ = builderForValue.build(); - } else { - taintsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired node taints to be applied to all nodes in the node pool.
-     * If this field is not present, the taints will not be changed. Otherwise,
-     * the existing node taints will be *replaced* with the provided taints.
-     * 
- * - * .google.container.v1.NodeTaints taints = 17; - */ - public Builder mergeTaints(com.google.container.v1.NodeTaints value) { - if (taintsBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) - && taints_ != null - && taints_ != com.google.container.v1.NodeTaints.getDefaultInstance()) { - getTaintsBuilder().mergeFrom(value); - } else { - taints_ = value; - } - } else { - taintsBuilder_.mergeFrom(value); - } - if (taints_ != null) { - bitField0_ |= 0x00000800; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired node taints to be applied to all nodes in the node pool.
-     * If this field is not present, the taints will not be changed. Otherwise,
-     * the existing node taints will be *replaced* with the provided taints.
-     * 
- * - * .google.container.v1.NodeTaints taints = 17; - */ - public Builder clearTaints() { - bitField0_ = (bitField0_ & ~0x00000800); - taints_ = null; - if (taintsBuilder_ != null) { - taintsBuilder_.dispose(); - taintsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired node taints to be applied to all nodes in the node pool.
-     * If this field is not present, the taints will not be changed. Otherwise,
-     * the existing node taints will be *replaced* with the provided taints.
-     * 
- * - * .google.container.v1.NodeTaints taints = 17; - */ - public com.google.container.v1.NodeTaints.Builder getTaintsBuilder() { - bitField0_ |= 0x00000800; - onChanged(); - return getTaintsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired node taints to be applied to all nodes in the node pool.
-     * If this field is not present, the taints will not be changed. Otherwise,
-     * the existing node taints will be *replaced* with the provided taints.
-     * 
- * - * .google.container.v1.NodeTaints taints = 17; - */ - public com.google.container.v1.NodeTaintsOrBuilder getTaintsOrBuilder() { - if (taintsBuilder_ != null) { - return taintsBuilder_.getMessageOrBuilder(); - } else { - return taints_ == null ? com.google.container.v1.NodeTaints.getDefaultInstance() : taints_; - } - } - /** - * - * - *
-     * The desired node taints to be applied to all nodes in the node pool.
-     * If this field is not present, the taints will not be changed. Otherwise,
-     * the existing node taints will be *replaced* with the provided taints.
-     * 
- * - * .google.container.v1.NodeTaints taints = 17; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeTaints, - com.google.container.v1.NodeTaints.Builder, - com.google.container.v1.NodeTaintsOrBuilder> - getTaintsFieldBuilder() { - if (taintsBuilder_ == null) { - taintsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeTaints, - com.google.container.v1.NodeTaints.Builder, - com.google.container.v1.NodeTaintsOrBuilder>( - getTaints(), getParentForChildren(), isClean()); - taints_ = null; - } - return taintsBuilder_; - } - - private com.google.container.v1.NodeLabels labels_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeLabels, - com.google.container.v1.NodeLabels.Builder, - com.google.container.v1.NodeLabelsOrBuilder> - labelsBuilder_; - /** - * - * - *
-     * The desired node labels to be applied to all nodes in the node pool.
-     * If this field is not present, the labels will not be changed. Otherwise,
-     * the existing node labels will be *replaced* with the provided labels.
-     * 
- * - * .google.container.v1.NodeLabels labels = 18; - * - * @return Whether the labels field is set. - */ - public boolean hasLabels() { - return ((bitField0_ & 0x00001000) != 0); - } - /** - * - * - *
-     * The desired node labels to be applied to all nodes in the node pool.
-     * If this field is not present, the labels will not be changed. Otherwise,
-     * the existing node labels will be *replaced* with the provided labels.
-     * 
- * - * .google.container.v1.NodeLabels labels = 18; - * - * @return The labels. - */ - public com.google.container.v1.NodeLabels getLabels() { - if (labelsBuilder_ == null) { - return labels_ == null ? com.google.container.v1.NodeLabels.getDefaultInstance() : labels_; - } else { - return labelsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired node labels to be applied to all nodes in the node pool.
-     * If this field is not present, the labels will not be changed. Otherwise,
-     * the existing node labels will be *replaced* with the provided labels.
-     * 
- * - * .google.container.v1.NodeLabels labels = 18; - */ - public Builder setLabels(com.google.container.v1.NodeLabels value) { - if (labelsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - labels_ = value; - } else { - labelsBuilder_.setMessage(value); - } - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired node labels to be applied to all nodes in the node pool.
-     * If this field is not present, the labels will not be changed. Otherwise,
-     * the existing node labels will be *replaced* with the provided labels.
-     * 
- * - * .google.container.v1.NodeLabels labels = 18; - */ - public Builder setLabels(com.google.container.v1.NodeLabels.Builder builderForValue) { - if (labelsBuilder_ == null) { - labels_ = builderForValue.build(); - } else { - labelsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired node labels to be applied to all nodes in the node pool.
-     * If this field is not present, the labels will not be changed. Otherwise,
-     * the existing node labels will be *replaced* with the provided labels.
-     * 
- * - * .google.container.v1.NodeLabels labels = 18; - */ - public Builder mergeLabels(com.google.container.v1.NodeLabels value) { - if (labelsBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) - && labels_ != null - && labels_ != com.google.container.v1.NodeLabels.getDefaultInstance()) { - getLabelsBuilder().mergeFrom(value); - } else { - labels_ = value; - } - } else { - labelsBuilder_.mergeFrom(value); - } - if (labels_ != null) { - bitField0_ |= 0x00001000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired node labels to be applied to all nodes in the node pool.
-     * If this field is not present, the labels will not be changed. Otherwise,
-     * the existing node labels will be *replaced* with the provided labels.
-     * 
- * - * .google.container.v1.NodeLabels labels = 18; - */ - public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00001000); - labels_ = null; - if (labelsBuilder_ != null) { - labelsBuilder_.dispose(); - labelsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired node labels to be applied to all nodes in the node pool.
-     * If this field is not present, the labels will not be changed. Otherwise,
-     * the existing node labels will be *replaced* with the provided labels.
-     * 
- * - * .google.container.v1.NodeLabels labels = 18; - */ - public com.google.container.v1.NodeLabels.Builder getLabelsBuilder() { - bitField0_ |= 0x00001000; - onChanged(); - return getLabelsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired node labels to be applied to all nodes in the node pool.
-     * If this field is not present, the labels will not be changed. Otherwise,
-     * the existing node labels will be *replaced* with the provided labels.
-     * 
- * - * .google.container.v1.NodeLabels labels = 18; - */ - public com.google.container.v1.NodeLabelsOrBuilder getLabelsOrBuilder() { - if (labelsBuilder_ != null) { - return labelsBuilder_.getMessageOrBuilder(); - } else { - return labels_ == null ? com.google.container.v1.NodeLabels.getDefaultInstance() : labels_; - } - } - /** - * - * - *
-     * The desired node labels to be applied to all nodes in the node pool.
-     * If this field is not present, the labels will not be changed. Otherwise,
-     * the existing node labels will be *replaced* with the provided labels.
-     * 
- * - * .google.container.v1.NodeLabels labels = 18; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeLabels, - com.google.container.v1.NodeLabels.Builder, - com.google.container.v1.NodeLabelsOrBuilder> - getLabelsFieldBuilder() { - if (labelsBuilder_ == null) { - labelsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeLabels, - com.google.container.v1.NodeLabels.Builder, - com.google.container.v1.NodeLabelsOrBuilder>( - getLabels(), getParentForChildren(), isClean()); - labels_ = null; - } - return labelsBuilder_; - } - - private com.google.container.v1.LinuxNodeConfig linuxNodeConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.LinuxNodeConfig, - com.google.container.v1.LinuxNodeConfig.Builder, - com.google.container.v1.LinuxNodeConfigOrBuilder> - linuxNodeConfigBuilder_; - /** - * - * - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 19; - * - * @return Whether the linuxNodeConfig field is set. - */ - public boolean hasLinuxNodeConfig() { - return ((bitField0_ & 0x00002000) != 0); - } - /** - * - * - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 19; - * - * @return The linuxNodeConfig. - */ - public com.google.container.v1.LinuxNodeConfig getLinuxNodeConfig() { - if (linuxNodeConfigBuilder_ == null) { - return linuxNodeConfig_ == null - ? com.google.container.v1.LinuxNodeConfig.getDefaultInstance() - : linuxNodeConfig_; - } else { - return linuxNodeConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 19; - */ - public Builder setLinuxNodeConfig(com.google.container.v1.LinuxNodeConfig value) { - if (linuxNodeConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - linuxNodeConfig_ = value; - } else { - linuxNodeConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - * - * - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 19; - */ - public Builder setLinuxNodeConfig( - com.google.container.v1.LinuxNodeConfig.Builder builderForValue) { - if (linuxNodeConfigBuilder_ == null) { - linuxNodeConfig_ = builderForValue.build(); - } else { - linuxNodeConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - * - * - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 19; - */ - public Builder mergeLinuxNodeConfig(com.google.container.v1.LinuxNodeConfig value) { - if (linuxNodeConfigBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) - && linuxNodeConfig_ != null - && linuxNodeConfig_ != com.google.container.v1.LinuxNodeConfig.getDefaultInstance()) { - getLinuxNodeConfigBuilder().mergeFrom(value); - } else { - linuxNodeConfig_ = value; - } - } else { - linuxNodeConfigBuilder_.mergeFrom(value); - } - if (linuxNodeConfig_ != null) { - bitField0_ |= 0x00002000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 19; - */ - public Builder clearLinuxNodeConfig() { - bitField0_ = (bitField0_ & ~0x00002000); - linuxNodeConfig_ = null; - if (linuxNodeConfigBuilder_ != null) { - linuxNodeConfigBuilder_.dispose(); - linuxNodeConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 19; - */ - public com.google.container.v1.LinuxNodeConfig.Builder getLinuxNodeConfigBuilder() { - bitField0_ |= 0x00002000; - onChanged(); - return getLinuxNodeConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 19; - */ - public com.google.container.v1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder() { - if (linuxNodeConfigBuilder_ != null) { - return linuxNodeConfigBuilder_.getMessageOrBuilder(); - } else { - return linuxNodeConfig_ == null - ? com.google.container.v1.LinuxNodeConfig.getDefaultInstance() - : linuxNodeConfig_; - } - } - /** - * - * - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 19; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.LinuxNodeConfig, - com.google.container.v1.LinuxNodeConfig.Builder, - com.google.container.v1.LinuxNodeConfigOrBuilder> - getLinuxNodeConfigFieldBuilder() { - if (linuxNodeConfigBuilder_ == null) { - linuxNodeConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.LinuxNodeConfig, - com.google.container.v1.LinuxNodeConfig.Builder, - com.google.container.v1.LinuxNodeConfigOrBuilder>( - getLinuxNodeConfig(), getParentForChildren(), isClean()); - linuxNodeConfig_ = null; - } - return linuxNodeConfigBuilder_; - } - - private com.google.container.v1.NodeKubeletConfig kubeletConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeKubeletConfig, - com.google.container.v1.NodeKubeletConfig.Builder, - com.google.container.v1.NodeKubeletConfigOrBuilder> - kubeletConfigBuilder_; - /** - * - * - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 20; - * - * @return Whether the kubeletConfig field is set. - */ - public boolean hasKubeletConfig() { - return ((bitField0_ & 0x00004000) != 0); - } - /** - * - * - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 20; - * - * @return The kubeletConfig. - */ - public com.google.container.v1.NodeKubeletConfig getKubeletConfig() { - if (kubeletConfigBuilder_ == null) { - return kubeletConfig_ == null - ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() - : kubeletConfig_; - } else { - return kubeletConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 20; - */ - public Builder setKubeletConfig(com.google.container.v1.NodeKubeletConfig value) { - if (kubeletConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kubeletConfig_ = value; - } else { - kubeletConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00004000; - onChanged(); - return this; - } - /** - * - * - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 20; - */ - public Builder setKubeletConfig( - com.google.container.v1.NodeKubeletConfig.Builder builderForValue) { - if (kubeletConfigBuilder_ == null) { - kubeletConfig_ = builderForValue.build(); - } else { - kubeletConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00004000; - onChanged(); - return this; - } - /** - * - * - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 20; - */ - public Builder mergeKubeletConfig(com.google.container.v1.NodeKubeletConfig value) { - if (kubeletConfigBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) - && kubeletConfig_ != null - && kubeletConfig_ != com.google.container.v1.NodeKubeletConfig.getDefaultInstance()) { - getKubeletConfigBuilder().mergeFrom(value); - } else { - kubeletConfig_ = value; - } - } else { - kubeletConfigBuilder_.mergeFrom(value); - } - if (kubeletConfig_ != null) { - bitField0_ |= 0x00004000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 20; - */ - public Builder clearKubeletConfig() { - bitField0_ = (bitField0_ & ~0x00004000); - kubeletConfig_ = null; - if (kubeletConfigBuilder_ != null) { - kubeletConfigBuilder_.dispose(); - kubeletConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 20; - */ - public com.google.container.v1.NodeKubeletConfig.Builder getKubeletConfigBuilder() { - bitField0_ |= 0x00004000; - onChanged(); - return getKubeletConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 20; - */ - public com.google.container.v1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder() { - if (kubeletConfigBuilder_ != null) { - return kubeletConfigBuilder_.getMessageOrBuilder(); - } else { - return kubeletConfig_ == null - ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() - : kubeletConfig_; - } - } - /** - * - * - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 20; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeKubeletConfig, - com.google.container.v1.NodeKubeletConfig.Builder, - com.google.container.v1.NodeKubeletConfigOrBuilder> - getKubeletConfigFieldBuilder() { - if (kubeletConfigBuilder_ == null) { - kubeletConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeKubeletConfig, - com.google.container.v1.NodeKubeletConfig.Builder, - com.google.container.v1.NodeKubeletConfigOrBuilder>( - getKubeletConfig(), getParentForChildren(), isClean()); - kubeletConfig_ = null; - } - return kubeletConfigBuilder_; - } - - private com.google.container.v1.NodeNetworkConfig nodeNetworkConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeNetworkConfig, - com.google.container.v1.NodeNetworkConfig.Builder, - com.google.container.v1.NodeNetworkConfigOrBuilder> - nodeNetworkConfigBuilder_; - /** - * - * - *
-     * Node network config.
-     * 
- * - * .google.container.v1.NodeNetworkConfig node_network_config = 21; - * - * @return Whether the nodeNetworkConfig field is set. - */ - public boolean hasNodeNetworkConfig() { - return ((bitField0_ & 0x00008000) != 0); - } - /** - * - * - *
-     * Node network config.
-     * 
- * - * .google.container.v1.NodeNetworkConfig node_network_config = 21; - * - * @return The nodeNetworkConfig. - */ - public com.google.container.v1.NodeNetworkConfig getNodeNetworkConfig() { - if (nodeNetworkConfigBuilder_ == null) { - return nodeNetworkConfig_ == null - ? com.google.container.v1.NodeNetworkConfig.getDefaultInstance() - : nodeNetworkConfig_; - } else { - return nodeNetworkConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Node network config.
-     * 
- * - * .google.container.v1.NodeNetworkConfig node_network_config = 21; - */ - public Builder setNodeNetworkConfig(com.google.container.v1.NodeNetworkConfig value) { - if (nodeNetworkConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - nodeNetworkConfig_ = value; - } else { - nodeNetworkConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - /** - * - * - *
-     * Node network config.
-     * 
- * - * .google.container.v1.NodeNetworkConfig node_network_config = 21; - */ - public Builder setNodeNetworkConfig( - com.google.container.v1.NodeNetworkConfig.Builder builderForValue) { - if (nodeNetworkConfigBuilder_ == null) { - nodeNetworkConfig_ = builderForValue.build(); - } else { - nodeNetworkConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - /** - * - * - *
-     * Node network config.
-     * 
- * - * .google.container.v1.NodeNetworkConfig node_network_config = 21; - */ - public Builder mergeNodeNetworkConfig(com.google.container.v1.NodeNetworkConfig value) { - if (nodeNetworkConfigBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) - && nodeNetworkConfig_ != null - && nodeNetworkConfig_ - != com.google.container.v1.NodeNetworkConfig.getDefaultInstance()) { - getNodeNetworkConfigBuilder().mergeFrom(value); - } else { - nodeNetworkConfig_ = value; - } - } else { - nodeNetworkConfigBuilder_.mergeFrom(value); - } - if (nodeNetworkConfig_ != null) { - bitField0_ |= 0x00008000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Node network config.
-     * 
- * - * .google.container.v1.NodeNetworkConfig node_network_config = 21; - */ - public Builder clearNodeNetworkConfig() { - bitField0_ = (bitField0_ & ~0x00008000); - nodeNetworkConfig_ = null; - if (nodeNetworkConfigBuilder_ != null) { - nodeNetworkConfigBuilder_.dispose(); - nodeNetworkConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Node network config.
-     * 
- * - * .google.container.v1.NodeNetworkConfig node_network_config = 21; - */ - public com.google.container.v1.NodeNetworkConfig.Builder getNodeNetworkConfigBuilder() { - bitField0_ |= 0x00008000; - onChanged(); - return getNodeNetworkConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Node network config.
-     * 
- * - * .google.container.v1.NodeNetworkConfig node_network_config = 21; - */ - public com.google.container.v1.NodeNetworkConfigOrBuilder getNodeNetworkConfigOrBuilder() { - if (nodeNetworkConfigBuilder_ != null) { - return nodeNetworkConfigBuilder_.getMessageOrBuilder(); - } else { - return nodeNetworkConfig_ == null - ? com.google.container.v1.NodeNetworkConfig.getDefaultInstance() - : nodeNetworkConfig_; - } - } - /** - * - * - *
-     * Node network config.
-     * 
- * - * .google.container.v1.NodeNetworkConfig node_network_config = 21; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeNetworkConfig, - com.google.container.v1.NodeNetworkConfig.Builder, - com.google.container.v1.NodeNetworkConfigOrBuilder> - getNodeNetworkConfigFieldBuilder() { - if (nodeNetworkConfigBuilder_ == null) { - nodeNetworkConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeNetworkConfig, - com.google.container.v1.NodeNetworkConfig.Builder, - com.google.container.v1.NodeNetworkConfigOrBuilder>( - getNodeNetworkConfig(), getParentForChildren(), isClean()); - nodeNetworkConfig_ = null; - } - return nodeNetworkConfigBuilder_; - } - - private com.google.container.v1.GcfsConfig gcfsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GcfsConfig, - com.google.container.v1.GcfsConfig.Builder, - com.google.container.v1.GcfsConfigOrBuilder> - gcfsConfigBuilder_; - /** - * - * - *
-     * GCFS config.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 22; - * - * @return Whether the gcfsConfig field is set. - */ - public boolean hasGcfsConfig() { - return ((bitField0_ & 0x00010000) != 0); - } - /** - * - * - *
-     * GCFS config.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 22; - * - * @return The gcfsConfig. - */ - public com.google.container.v1.GcfsConfig getGcfsConfig() { - if (gcfsConfigBuilder_ == null) { - return gcfsConfig_ == null - ? com.google.container.v1.GcfsConfig.getDefaultInstance() - : gcfsConfig_; - } else { - return gcfsConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * GCFS config.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 22; - */ - public Builder setGcfsConfig(com.google.container.v1.GcfsConfig value) { - if (gcfsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gcfsConfig_ = value; - } else { - gcfsConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00010000; - onChanged(); - return this; - } - /** - * - * - *
-     * GCFS config.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 22; - */ - public Builder setGcfsConfig(com.google.container.v1.GcfsConfig.Builder builderForValue) { - if (gcfsConfigBuilder_ == null) { - gcfsConfig_ = builderForValue.build(); - } else { - gcfsConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00010000; - onChanged(); - return this; - } - /** - * - * - *
-     * GCFS config.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 22; - */ - public Builder mergeGcfsConfig(com.google.container.v1.GcfsConfig value) { - if (gcfsConfigBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) - && gcfsConfig_ != null - && gcfsConfig_ != com.google.container.v1.GcfsConfig.getDefaultInstance()) { - getGcfsConfigBuilder().mergeFrom(value); - } else { - gcfsConfig_ = value; - } - } else { - gcfsConfigBuilder_.mergeFrom(value); - } - if (gcfsConfig_ != null) { - bitField0_ |= 0x00010000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * GCFS config.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 22; - */ - public Builder clearGcfsConfig() { - bitField0_ = (bitField0_ & ~0x00010000); - gcfsConfig_ = null; - if (gcfsConfigBuilder_ != null) { - gcfsConfigBuilder_.dispose(); - gcfsConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * GCFS config.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 22; - */ - public com.google.container.v1.GcfsConfig.Builder getGcfsConfigBuilder() { - bitField0_ |= 0x00010000; - onChanged(); - return getGcfsConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * GCFS config.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 22; - */ - public com.google.container.v1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { - if (gcfsConfigBuilder_ != null) { - return gcfsConfigBuilder_.getMessageOrBuilder(); - } else { - return gcfsConfig_ == null - ? com.google.container.v1.GcfsConfig.getDefaultInstance() - : gcfsConfig_; - } - } - /** - * - * - *
-     * GCFS config.
-     * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 22; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GcfsConfig, - com.google.container.v1.GcfsConfig.Builder, - com.google.container.v1.GcfsConfigOrBuilder> - getGcfsConfigFieldBuilder() { - if (gcfsConfigBuilder_ == null) { - gcfsConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.GcfsConfig, - com.google.container.v1.GcfsConfig.Builder, - com.google.container.v1.GcfsConfigOrBuilder>( - getGcfsConfig(), getParentForChildren(), isClean()); - gcfsConfig_ = null; - } - return gcfsConfigBuilder_; - } - - private com.google.container.v1.ConfidentialNodes confidentialNodes_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ConfidentialNodes, - com.google.container.v1.ConfidentialNodes.Builder, - com.google.container.v1.ConfidentialNodesOrBuilder> - confidentialNodesBuilder_; - /** - * - * - *
-     * Confidential nodes config.
-     * All the nodes in the node pool will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 23; - * - * @return Whether the confidentialNodes field is set. - */ - public boolean hasConfidentialNodes() { - return ((bitField0_ & 0x00020000) != 0); - } - /** - * - * - *
-     * Confidential nodes config.
-     * All the nodes in the node pool will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 23; - * - * @return The confidentialNodes. - */ - public com.google.container.v1.ConfidentialNodes getConfidentialNodes() { - if (confidentialNodesBuilder_ == null) { - return confidentialNodes_ == null - ? com.google.container.v1.ConfidentialNodes.getDefaultInstance() - : confidentialNodes_; - } else { - return confidentialNodesBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Confidential nodes config.
-     * All the nodes in the node pool will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 23; - */ - public Builder setConfidentialNodes(com.google.container.v1.ConfidentialNodes value) { - if (confidentialNodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - confidentialNodes_ = value; - } else { - confidentialNodesBuilder_.setMessage(value); - } - bitField0_ |= 0x00020000; - onChanged(); - return this; - } - /** - * - * - *
-     * Confidential nodes config.
-     * All the nodes in the node pool will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 23; - */ - public Builder setConfidentialNodes( - com.google.container.v1.ConfidentialNodes.Builder builderForValue) { - if (confidentialNodesBuilder_ == null) { - confidentialNodes_ = builderForValue.build(); - } else { - confidentialNodesBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00020000; - onChanged(); - return this; - } - /** - * - * - *
-     * Confidential nodes config.
-     * All the nodes in the node pool will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 23; - */ - public Builder mergeConfidentialNodes(com.google.container.v1.ConfidentialNodes value) { - if (confidentialNodesBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) - && confidentialNodes_ != null - && confidentialNodes_ - != com.google.container.v1.ConfidentialNodes.getDefaultInstance()) { - getConfidentialNodesBuilder().mergeFrom(value); - } else { - confidentialNodes_ = value; - } - } else { - confidentialNodesBuilder_.mergeFrom(value); - } - if (confidentialNodes_ != null) { - bitField0_ |= 0x00020000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Confidential nodes config.
-     * All the nodes in the node pool will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 23; - */ - public Builder clearConfidentialNodes() { - bitField0_ = (bitField0_ & ~0x00020000); - confidentialNodes_ = null; - if (confidentialNodesBuilder_ != null) { - confidentialNodesBuilder_.dispose(); - confidentialNodesBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Confidential nodes config.
-     * All the nodes in the node pool will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 23; - */ - public com.google.container.v1.ConfidentialNodes.Builder getConfidentialNodesBuilder() { - bitField0_ |= 0x00020000; - onChanged(); - return getConfidentialNodesFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Confidential nodes config.
-     * All the nodes in the node pool will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 23; - */ - public com.google.container.v1.ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder() { - if (confidentialNodesBuilder_ != null) { - return confidentialNodesBuilder_.getMessageOrBuilder(); - } else { - return confidentialNodes_ == null - ? com.google.container.v1.ConfidentialNodes.getDefaultInstance() - : confidentialNodes_; - } - } - /** - * - * - *
-     * Confidential nodes config.
-     * All the nodes in the node pool will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 23; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ConfidentialNodes, - com.google.container.v1.ConfidentialNodes.Builder, - com.google.container.v1.ConfidentialNodesOrBuilder> - getConfidentialNodesFieldBuilder() { - if (confidentialNodesBuilder_ == null) { - confidentialNodesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ConfidentialNodes, - com.google.container.v1.ConfidentialNodes.Builder, - com.google.container.v1.ConfidentialNodesOrBuilder>( - getConfidentialNodes(), getParentForChildren(), isClean()); - confidentialNodes_ = null; - } - return confidentialNodesBuilder_; - } - - private com.google.container.v1.VirtualNIC gvnic_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.VirtualNIC, - com.google.container.v1.VirtualNIC.Builder, - com.google.container.v1.VirtualNICOrBuilder> - gvnicBuilder_; - /** - * - * - *
-     * Enable or disable gvnic on the node pool.
-     * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - * - * @return Whether the gvnic field is set. - */ - public boolean hasGvnic() { - return ((bitField0_ & 0x00040000) != 0); - } - /** - * - * - *
-     * Enable or disable gvnic on the node pool.
-     * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - * - * @return The gvnic. - */ - public com.google.container.v1.VirtualNIC getGvnic() { - if (gvnicBuilder_ == null) { - return gvnic_ == null ? com.google.container.v1.VirtualNIC.getDefaultInstance() : gvnic_; - } else { - return gvnicBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Enable or disable gvnic on the node pool.
-     * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - */ - public Builder setGvnic(com.google.container.v1.VirtualNIC value) { - if (gvnicBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gvnic_ = value; - } else { - gvnicBuilder_.setMessage(value); - } - bitField0_ |= 0x00040000; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable or disable gvnic on the node pool.
-     * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - */ - public Builder setGvnic(com.google.container.v1.VirtualNIC.Builder builderForValue) { - if (gvnicBuilder_ == null) { - gvnic_ = builderForValue.build(); - } else { - gvnicBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00040000; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable or disable gvnic on the node pool.
-     * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - */ - public Builder mergeGvnic(com.google.container.v1.VirtualNIC value) { - if (gvnicBuilder_ == null) { - if (((bitField0_ & 0x00040000) != 0) - && gvnic_ != null - && gvnic_ != com.google.container.v1.VirtualNIC.getDefaultInstance()) { - getGvnicBuilder().mergeFrom(value); - } else { - gvnic_ = value; - } - } else { - gvnicBuilder_.mergeFrom(value); - } - if (gvnic_ != null) { - bitField0_ |= 0x00040000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Enable or disable gvnic on the node pool.
-     * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - */ - public Builder clearGvnic() { - bitField0_ = (bitField0_ & ~0x00040000); - gvnic_ = null; - if (gvnicBuilder_ != null) { - gvnicBuilder_.dispose(); - gvnicBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Enable or disable gvnic on the node pool.
-     * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - */ - public com.google.container.v1.VirtualNIC.Builder getGvnicBuilder() { - bitField0_ |= 0x00040000; - onChanged(); - return getGvnicFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Enable or disable gvnic on the node pool.
-     * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - */ - public com.google.container.v1.VirtualNICOrBuilder getGvnicOrBuilder() { - if (gvnicBuilder_ != null) { - return gvnicBuilder_.getMessageOrBuilder(); - } else { - return gvnic_ == null ? com.google.container.v1.VirtualNIC.getDefaultInstance() : gvnic_; - } - } - /** - * - * - *
-     * Enable or disable gvnic on the node pool.
-     * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.VirtualNIC, - com.google.container.v1.VirtualNIC.Builder, - com.google.container.v1.VirtualNICOrBuilder> - getGvnicFieldBuilder() { - if (gvnicBuilder_ == null) { - gvnicBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.VirtualNIC, - com.google.container.v1.VirtualNIC.Builder, - com.google.container.v1.VirtualNICOrBuilder>( - getGvnic(), getParentForChildren(), isClean()); - gvnic_ = null; - } - return gvnicBuilder_; - } - - private java.lang.Object etag_ = ""; - /** - * - * - *
-     * The current etag of the node pool.
-     * If an etag is provided and does not match the current etag of the node
-     * pool, update will be blocked and an ABORTED error will be returned.
-     * 
- * - * string etag = 30; - * - * @return The etag. - */ - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The current etag of the node pool.
-     * If an etag is provided and does not match the current etag of the node
-     * pool, update will be blocked and an ABORTED error will be returned.
-     * 
- * - * string etag = 30; - * - * @return The bytes for etag. - */ - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The current etag of the node pool.
-     * If an etag is provided and does not match the current etag of the node
-     * pool, update will be blocked and an ABORTED error will be returned.
-     * 
- * - * string etag = 30; - * - * @param value The etag to set. - * @return This builder for chaining. - */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - etag_ = value; - bitField0_ |= 0x00080000; - onChanged(); - return this; - } - /** - * - * - *
-     * The current etag of the node pool.
-     * If an etag is provided and does not match the current etag of the node
-     * pool, update will be blocked and an ABORTED error will be returned.
-     * 
- * - * string etag = 30; - * - * @return This builder for chaining. - */ - public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00080000); - onChanged(); - return this; - } - /** - * - * - *
-     * The current etag of the node pool.
-     * If an etag is provided and does not match the current etag of the node
-     * pool, update will be blocked and an ABORTED error will be returned.
-     * 
- * - * string etag = 30; - * - * @param value The bytes for etag to set. - * @return This builder for chaining. - */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - etag_ = value; - bitField0_ |= 0x00080000; - onChanged(); - return this; - } - - private com.google.container.v1.FastSocket fastSocket_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.FastSocket, - com.google.container.v1.FastSocket.Builder, - com.google.container.v1.FastSocketOrBuilder> - fastSocketBuilder_; - /** - * - * - *
-     * Enable or disable NCCL fast socket for the node pool.
-     * 
- * - * .google.container.v1.FastSocket fast_socket = 31; - * - * @return Whether the fastSocket field is set. - */ - public boolean hasFastSocket() { - return ((bitField0_ & 0x00100000) != 0); - } - /** - * - * - *
-     * Enable or disable NCCL fast socket for the node pool.
-     * 
- * - * .google.container.v1.FastSocket fast_socket = 31; - * - * @return The fastSocket. - */ - public com.google.container.v1.FastSocket getFastSocket() { - if (fastSocketBuilder_ == null) { - return fastSocket_ == null - ? com.google.container.v1.FastSocket.getDefaultInstance() - : fastSocket_; - } else { - return fastSocketBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Enable or disable NCCL fast socket for the node pool.
-     * 
- * - * .google.container.v1.FastSocket fast_socket = 31; - */ - public Builder setFastSocket(com.google.container.v1.FastSocket value) { - if (fastSocketBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - fastSocket_ = value; - } else { - fastSocketBuilder_.setMessage(value); - } - bitField0_ |= 0x00100000; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable or disable NCCL fast socket for the node pool.
-     * 
- * - * .google.container.v1.FastSocket fast_socket = 31; - */ - public Builder setFastSocket(com.google.container.v1.FastSocket.Builder builderForValue) { - if (fastSocketBuilder_ == null) { - fastSocket_ = builderForValue.build(); - } else { - fastSocketBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00100000; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable or disable NCCL fast socket for the node pool.
-     * 
- * - * .google.container.v1.FastSocket fast_socket = 31; - */ - public Builder mergeFastSocket(com.google.container.v1.FastSocket value) { - if (fastSocketBuilder_ == null) { - if (((bitField0_ & 0x00100000) != 0) - && fastSocket_ != null - && fastSocket_ != com.google.container.v1.FastSocket.getDefaultInstance()) { - getFastSocketBuilder().mergeFrom(value); - } else { - fastSocket_ = value; - } - } else { - fastSocketBuilder_.mergeFrom(value); - } - if (fastSocket_ != null) { - bitField0_ |= 0x00100000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Enable or disable NCCL fast socket for the node pool.
-     * 
- * - * .google.container.v1.FastSocket fast_socket = 31; - */ - public Builder clearFastSocket() { - bitField0_ = (bitField0_ & ~0x00100000); - fastSocket_ = null; - if (fastSocketBuilder_ != null) { - fastSocketBuilder_.dispose(); - fastSocketBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Enable or disable NCCL fast socket for the node pool.
-     * 
- * - * .google.container.v1.FastSocket fast_socket = 31; - */ - public com.google.container.v1.FastSocket.Builder getFastSocketBuilder() { - bitField0_ |= 0x00100000; - onChanged(); - return getFastSocketFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Enable or disable NCCL fast socket for the node pool.
-     * 
- * - * .google.container.v1.FastSocket fast_socket = 31; - */ - public com.google.container.v1.FastSocketOrBuilder getFastSocketOrBuilder() { - if (fastSocketBuilder_ != null) { - return fastSocketBuilder_.getMessageOrBuilder(); - } else { - return fastSocket_ == null - ? com.google.container.v1.FastSocket.getDefaultInstance() - : fastSocket_; - } - } - /** - * - * - *
-     * Enable or disable NCCL fast socket for the node pool.
-     * 
- * - * .google.container.v1.FastSocket fast_socket = 31; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.FastSocket, - com.google.container.v1.FastSocket.Builder, - com.google.container.v1.FastSocketOrBuilder> - getFastSocketFieldBuilder() { - if (fastSocketBuilder_ == null) { - fastSocketBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.FastSocket, - com.google.container.v1.FastSocket.Builder, - com.google.container.v1.FastSocketOrBuilder>( - getFastSocket(), getParentForChildren(), isClean()); - fastSocket_ = null; - } - return fastSocketBuilder_; - } - - private com.google.container.v1.NodePoolLoggingConfig loggingConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePoolLoggingConfig, - com.google.container.v1.NodePoolLoggingConfig.Builder, - com.google.container.v1.NodePoolLoggingConfigOrBuilder> - loggingConfigBuilder_; - /** - * - * - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 32; - * - * @return Whether the loggingConfig field is set. - */ - public boolean hasLoggingConfig() { - return ((bitField0_ & 0x00200000) != 0); - } - /** - * - * - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 32; - * - * @return The loggingConfig. - */ - public com.google.container.v1.NodePoolLoggingConfig getLoggingConfig() { - if (loggingConfigBuilder_ == null) { - return loggingConfig_ == null - ? com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance() - : loggingConfig_; - } else { - return loggingConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 32; - */ - public Builder setLoggingConfig(com.google.container.v1.NodePoolLoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - loggingConfig_ = value; - } else { - loggingConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00200000; - onChanged(); - return this; - } - /** - * - * - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 32; - */ - public Builder setLoggingConfig( - com.google.container.v1.NodePoolLoggingConfig.Builder builderForValue) { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = builderForValue.build(); - } else { - loggingConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00200000; - onChanged(); - return this; - } - /** - * - * - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 32; - */ - public Builder mergeLoggingConfig(com.google.container.v1.NodePoolLoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (((bitField0_ & 0x00200000) != 0) - && loggingConfig_ != null - && loggingConfig_ - != com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance()) { - getLoggingConfigBuilder().mergeFrom(value); - } else { - loggingConfig_ = value; - } - } else { - loggingConfigBuilder_.mergeFrom(value); - } - if (loggingConfig_ != null) { - bitField0_ |= 0x00200000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 32; - */ - public Builder clearLoggingConfig() { - bitField0_ = (bitField0_ & ~0x00200000); - loggingConfig_ = null; - if (loggingConfigBuilder_ != null) { - loggingConfigBuilder_.dispose(); - loggingConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 32; - */ - public com.google.container.v1.NodePoolLoggingConfig.Builder getLoggingConfigBuilder() { - bitField0_ |= 0x00200000; - onChanged(); - return getLoggingConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 32; - */ - public com.google.container.v1.NodePoolLoggingConfigOrBuilder getLoggingConfigOrBuilder() { - if (loggingConfigBuilder_ != null) { - return loggingConfigBuilder_.getMessageOrBuilder(); - } else { - return loggingConfig_ == null - ? com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance() - : loggingConfig_; - } - } - /** - * - * - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 32; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePoolLoggingConfig, - com.google.container.v1.NodePoolLoggingConfig.Builder, - com.google.container.v1.NodePoolLoggingConfigOrBuilder> - getLoggingConfigFieldBuilder() { - if (loggingConfigBuilder_ == null) { - loggingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePoolLoggingConfig, - com.google.container.v1.NodePoolLoggingConfig.Builder, - com.google.container.v1.NodePoolLoggingConfigOrBuilder>( - getLoggingConfig(), getParentForChildren(), isClean()); - loggingConfig_ = null; - } - return loggingConfigBuilder_; - } - - private com.google.container.v1.ResourceLabels resourceLabels_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ResourceLabels, - com.google.container.v1.ResourceLabels.Builder, - com.google.container.v1.ResourceLabelsOrBuilder> - resourceLabelsBuilder_; - /** - * - * - *
-     * The resource labels for the node pool to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * .google.container.v1.ResourceLabels resource_labels = 33; - * - * @return Whether the resourceLabels field is set. - */ - public boolean hasResourceLabels() { - return ((bitField0_ & 0x00400000) != 0); - } - /** - * - * - *
-     * The resource labels for the node pool to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * .google.container.v1.ResourceLabels resource_labels = 33; - * - * @return The resourceLabels. - */ - public com.google.container.v1.ResourceLabels getResourceLabels() { - if (resourceLabelsBuilder_ == null) { - return resourceLabels_ == null - ? com.google.container.v1.ResourceLabels.getDefaultInstance() - : resourceLabels_; - } else { - return resourceLabelsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The resource labels for the node pool to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * .google.container.v1.ResourceLabels resource_labels = 33; - */ - public Builder setResourceLabels(com.google.container.v1.ResourceLabels value) { - if (resourceLabelsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resourceLabels_ = value; - } else { - resourceLabelsBuilder_.setMessage(value); - } - bitField0_ |= 0x00400000; - onChanged(); - return this; - } - /** - * - * - *
-     * The resource labels for the node pool to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * .google.container.v1.ResourceLabels resource_labels = 33; - */ - public Builder setResourceLabels( - com.google.container.v1.ResourceLabels.Builder builderForValue) { - if (resourceLabelsBuilder_ == null) { - resourceLabels_ = builderForValue.build(); - } else { - resourceLabelsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00400000; - onChanged(); - return this; - } - /** - * - * - *
-     * The resource labels for the node pool to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * .google.container.v1.ResourceLabels resource_labels = 33; - */ - public Builder mergeResourceLabels(com.google.container.v1.ResourceLabels value) { - if (resourceLabelsBuilder_ == null) { - if (((bitField0_ & 0x00400000) != 0) - && resourceLabels_ != null - && resourceLabels_ != com.google.container.v1.ResourceLabels.getDefaultInstance()) { - getResourceLabelsBuilder().mergeFrom(value); - } else { - resourceLabels_ = value; - } - } else { - resourceLabelsBuilder_.mergeFrom(value); - } - if (resourceLabels_ != null) { - bitField0_ |= 0x00400000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The resource labels for the node pool to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * .google.container.v1.ResourceLabels resource_labels = 33; - */ - public Builder clearResourceLabels() { - bitField0_ = (bitField0_ & ~0x00400000); - resourceLabels_ = null; - if (resourceLabelsBuilder_ != null) { - resourceLabelsBuilder_.dispose(); - resourceLabelsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The resource labels for the node pool to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * .google.container.v1.ResourceLabels resource_labels = 33; - */ - public com.google.container.v1.ResourceLabels.Builder getResourceLabelsBuilder() { - bitField0_ |= 0x00400000; - onChanged(); - return getResourceLabelsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The resource labels for the node pool to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * .google.container.v1.ResourceLabels resource_labels = 33; - */ - public com.google.container.v1.ResourceLabelsOrBuilder getResourceLabelsOrBuilder() { - if (resourceLabelsBuilder_ != null) { - return resourceLabelsBuilder_.getMessageOrBuilder(); - } else { - return resourceLabels_ == null - ? com.google.container.v1.ResourceLabels.getDefaultInstance() - : resourceLabels_; - } - } - /** - * - * - *
-     * The resource labels for the node pool to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * .google.container.v1.ResourceLabels resource_labels = 33; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ResourceLabels, - com.google.container.v1.ResourceLabels.Builder, - com.google.container.v1.ResourceLabelsOrBuilder> - getResourceLabelsFieldBuilder() { - if (resourceLabelsBuilder_ == null) { - resourceLabelsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ResourceLabels, - com.google.container.v1.ResourceLabels.Builder, - com.google.container.v1.ResourceLabelsOrBuilder>( - getResourceLabels(), getParentForChildren(), isClean()); - resourceLabels_ = null; - } - return resourceLabelsBuilder_; - } - - private com.google.container.v1.WindowsNodeConfig windowsNodeConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WindowsNodeConfig, - com.google.container.v1.WindowsNodeConfig.Builder, - com.google.container.v1.WindowsNodeConfigOrBuilder> - windowsNodeConfigBuilder_; - /** - * - * - *
-     * Parameters that can be configured on Windows nodes.
-     * 
- * - * .google.container.v1.WindowsNodeConfig windows_node_config = 34; - * - * @return Whether the windowsNodeConfig field is set. - */ - public boolean hasWindowsNodeConfig() { - return ((bitField0_ & 0x00800000) != 0); - } - /** - * - * - *
-     * Parameters that can be configured on Windows nodes.
-     * 
- * - * .google.container.v1.WindowsNodeConfig windows_node_config = 34; - * - * @return The windowsNodeConfig. - */ - public com.google.container.v1.WindowsNodeConfig getWindowsNodeConfig() { - if (windowsNodeConfigBuilder_ == null) { - return windowsNodeConfig_ == null - ? com.google.container.v1.WindowsNodeConfig.getDefaultInstance() - : windowsNodeConfig_; - } else { - return windowsNodeConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Parameters that can be configured on Windows nodes.
-     * 
- * - * .google.container.v1.WindowsNodeConfig windows_node_config = 34; - */ - public Builder setWindowsNodeConfig(com.google.container.v1.WindowsNodeConfig value) { - if (windowsNodeConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - windowsNodeConfig_ = value; - } else { - windowsNodeConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00800000; - onChanged(); - return this; - } - /** - * - * - *
-     * Parameters that can be configured on Windows nodes.
-     * 
- * - * .google.container.v1.WindowsNodeConfig windows_node_config = 34; - */ - public Builder setWindowsNodeConfig( - com.google.container.v1.WindowsNodeConfig.Builder builderForValue) { - if (windowsNodeConfigBuilder_ == null) { - windowsNodeConfig_ = builderForValue.build(); - } else { - windowsNodeConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00800000; - onChanged(); - return this; - } - /** - * - * - *
-     * Parameters that can be configured on Windows nodes.
-     * 
- * - * .google.container.v1.WindowsNodeConfig windows_node_config = 34; - */ - public Builder mergeWindowsNodeConfig(com.google.container.v1.WindowsNodeConfig value) { - if (windowsNodeConfigBuilder_ == null) { - if (((bitField0_ & 0x00800000) != 0) - && windowsNodeConfig_ != null - && windowsNodeConfig_ - != com.google.container.v1.WindowsNodeConfig.getDefaultInstance()) { - getWindowsNodeConfigBuilder().mergeFrom(value); - } else { - windowsNodeConfig_ = value; - } - } else { - windowsNodeConfigBuilder_.mergeFrom(value); - } - if (windowsNodeConfig_ != null) { - bitField0_ |= 0x00800000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Parameters that can be configured on Windows nodes.
-     * 
- * - * .google.container.v1.WindowsNodeConfig windows_node_config = 34; - */ - public Builder clearWindowsNodeConfig() { - bitField0_ = (bitField0_ & ~0x00800000); - windowsNodeConfig_ = null; - if (windowsNodeConfigBuilder_ != null) { - windowsNodeConfigBuilder_.dispose(); - windowsNodeConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Parameters that can be configured on Windows nodes.
-     * 
- * - * .google.container.v1.WindowsNodeConfig windows_node_config = 34; - */ - public com.google.container.v1.WindowsNodeConfig.Builder getWindowsNodeConfigBuilder() { - bitField0_ |= 0x00800000; - onChanged(); - return getWindowsNodeConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Parameters that can be configured on Windows nodes.
-     * 
- * - * .google.container.v1.WindowsNodeConfig windows_node_config = 34; - */ - public com.google.container.v1.WindowsNodeConfigOrBuilder getWindowsNodeConfigOrBuilder() { - if (windowsNodeConfigBuilder_ != null) { - return windowsNodeConfigBuilder_.getMessageOrBuilder(); - } else { - return windowsNodeConfig_ == null - ? com.google.container.v1.WindowsNodeConfig.getDefaultInstance() - : windowsNodeConfig_; - } - } - /** - * - * - *
-     * Parameters that can be configured on Windows nodes.
-     * 
- * - * .google.container.v1.WindowsNodeConfig windows_node_config = 34; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WindowsNodeConfig, - com.google.container.v1.WindowsNodeConfig.Builder, - com.google.container.v1.WindowsNodeConfigOrBuilder> - getWindowsNodeConfigFieldBuilder() { - if (windowsNodeConfigBuilder_ == null) { - windowsNodeConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WindowsNodeConfig, - com.google.container.v1.WindowsNodeConfig.Builder, - com.google.container.v1.WindowsNodeConfigOrBuilder>( - getWindowsNodeConfig(), getParentForChildren(), isClean()); - windowsNodeConfig_ = null; - } - return windowsNodeConfigBuilder_; - } - - private java.lang.Object machineType_ = ""; - /** - * - * - *
-     * Optional. The desired [Google Compute Engine machine
-     * type](https://cloud.google.com/compute/docs/machine-types) for nodes in the
-     * node pool. Initiates an upgrade operation that migrates the nodes in the
-     * node pool to the specified machine type.
-     * 
- * - * string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - /** - * - * - *
-     * Optional. The desired [Google Compute Engine machine
-     * type](https://cloud.google.com/compute/docs/machine-types) for nodes in the
-     * node pool. Initiates an upgrade operation that migrates the nodes in the
-     * node pool to the specified machine type.
-     * 
- * - * string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - /** - * - * - *
-     * Optional. The desired [Google Compute Engine machine
-     * type](https://cloud.google.com/compute/docs/machine-types) for nodes in the
-     * node pool. Initiates an upgrade operation that migrates the nodes in the
-     * node pool to the specified machine type.
-     * 
- * - * string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - bitField0_ |= 0x01000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The desired [Google Compute Engine machine
-     * type](https://cloud.google.com/compute/docs/machine-types) for nodes in the
-     * node pool. Initiates an upgrade operation that migrates the nodes in the
-     * node pool to the specified machine type.
-     * 
- * - * string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearMachineType() { - machineType_ = getDefaultInstance().getMachineType(); - bitField0_ = (bitField0_ & ~0x01000000); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The desired [Google Compute Engine machine
-     * type](https://cloud.google.com/compute/docs/machine-types) for nodes in the
-     * node pool. Initiates an upgrade operation that migrates the nodes in the
-     * node pool to the specified machine type.
-     * 
- * - * string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - bitField0_ |= 0x01000000; - onChanged(); - return this; - } - - private java.lang.Object diskType_ = ""; - /** - * - * - *
-     * Optional. The desired disk type (e.g. 'pd-standard', 'pd-ssd' or
-     * 'pd-balanced') for nodes in the node pool.
-     * Initiates an upgrade operation that migrates the nodes in the
-     * node pool to the specified disk type.
-     * 
- * - * string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - /** - * - * - *
-     * Optional. The desired disk type (e.g. 'pd-standard', 'pd-ssd' or
-     * 'pd-balanced') for nodes in the node pool.
-     * Initiates an upgrade operation that migrates the nodes in the
-     * node pool to the specified disk type.
-     * 
- * - * string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - /** - * - * - *
-     * Optional. The desired disk type (e.g. 'pd-standard', 'pd-ssd' or
-     * 'pd-balanced') for nodes in the node pool.
-     * Initiates an upgrade operation that migrates the nodes in the
-     * node pool to the specified disk type.
-     * 
- * - * string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - bitField0_ |= 0x02000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The desired disk type (e.g. 'pd-standard', 'pd-ssd' or
-     * 'pd-balanced') for nodes in the node pool.
-     * Initiates an upgrade operation that migrates the nodes in the
-     * node pool to the specified disk type.
-     * 
- * - * string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearDiskType() { - diskType_ = getDefaultInstance().getDiskType(); - bitField0_ = (bitField0_ & ~0x02000000); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The desired disk type (e.g. 'pd-standard', 'pd-ssd' or
-     * 'pd-balanced') for nodes in the node pool.
-     * Initiates an upgrade operation that migrates the nodes in the
-     * node pool to the specified disk type.
-     * 
- * - * string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - bitField0_ |= 0x02000000; - onChanged(); - return this; - } - - private long diskSizeGb_; - /** - * - * - *
-     * Optional. The desired disk size for nodes in the node pool specified in GB.
-     * The smallest allowed disk size is 10GB.
-     * Initiates an upgrade operation that migrates the nodes in the
-     * node pool to the specified disk size.
-     * 
- * - * int64 disk_size_gb = 38 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The diskSizeGb. - */ - @java.lang.Override - public long getDiskSizeGb() { - return diskSizeGb_; - } - /** - * - * - *
-     * Optional. The desired disk size for nodes in the node pool specified in GB.
-     * The smallest allowed disk size is 10GB.
-     * Initiates an upgrade operation that migrates the nodes in the
-     * node pool to the specified disk size.
-     * 
- * - * int64 disk_size_gb = 38 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The diskSizeGb to set. - * @return This builder for chaining. - */ - public Builder setDiskSizeGb(long value) { - - diskSizeGb_ = value; - bitField0_ |= 0x04000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The desired disk size for nodes in the node pool specified in GB.
-     * The smallest allowed disk size is 10GB.
-     * Initiates an upgrade operation that migrates the nodes in the
-     * node pool to the specified disk size.
-     * 
- * - * int64 disk_size_gb = 38 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearDiskSizeGb() { - bitField0_ = (bitField0_ & ~0x04000000); - diskSizeGb_ = 0L; - onChanged(); - return this; - } - - private com.google.container.v1.ResourceManagerTags resourceManagerTags_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ResourceManagerTags, - com.google.container.v1.ResourceManagerTags.Builder, - com.google.container.v1.ResourceManagerTagsOrBuilder> - resourceManagerTagsBuilder_; - /** - * - * - *
-     * Desired resource manager tag keys and values to be attached to the nodes
-     * for managing Compute Engine firewalls using Network Firewall Policies.
-     * Existing tags will be replaced with new values.
-     * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 39; - * - * @return Whether the resourceManagerTags field is set. - */ - public boolean hasResourceManagerTags() { - return ((bitField0_ & 0x08000000) != 0); - } - /** - * - * - *
-     * Desired resource manager tag keys and values to be attached to the nodes
-     * for managing Compute Engine firewalls using Network Firewall Policies.
-     * Existing tags will be replaced with new values.
-     * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 39; - * - * @return The resourceManagerTags. - */ - public com.google.container.v1.ResourceManagerTags getResourceManagerTags() { - if (resourceManagerTagsBuilder_ == null) { - return resourceManagerTags_ == null - ? com.google.container.v1.ResourceManagerTags.getDefaultInstance() - : resourceManagerTags_; - } else { - return resourceManagerTagsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Desired resource manager tag keys and values to be attached to the nodes
-     * for managing Compute Engine firewalls using Network Firewall Policies.
-     * Existing tags will be replaced with new values.
-     * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 39; - */ - public Builder setResourceManagerTags(com.google.container.v1.ResourceManagerTags value) { - if (resourceManagerTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resourceManagerTags_ = value; - } else { - resourceManagerTagsBuilder_.setMessage(value); - } - bitField0_ |= 0x08000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Desired resource manager tag keys and values to be attached to the nodes
-     * for managing Compute Engine firewalls using Network Firewall Policies.
-     * Existing tags will be replaced with new values.
-     * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 39; - */ - public Builder setResourceManagerTags( - com.google.container.v1.ResourceManagerTags.Builder builderForValue) { - if (resourceManagerTagsBuilder_ == null) { - resourceManagerTags_ = builderForValue.build(); - } else { - resourceManagerTagsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x08000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Desired resource manager tag keys and values to be attached to the nodes
-     * for managing Compute Engine firewalls using Network Firewall Policies.
-     * Existing tags will be replaced with new values.
-     * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 39; - */ - public Builder mergeResourceManagerTags(com.google.container.v1.ResourceManagerTags value) { - if (resourceManagerTagsBuilder_ == null) { - if (((bitField0_ & 0x08000000) != 0) - && resourceManagerTags_ != null - && resourceManagerTags_ - != com.google.container.v1.ResourceManagerTags.getDefaultInstance()) { - getResourceManagerTagsBuilder().mergeFrom(value); - } else { - resourceManagerTags_ = value; - } - } else { - resourceManagerTagsBuilder_.mergeFrom(value); - } - if (resourceManagerTags_ != null) { - bitField0_ |= 0x08000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Desired resource manager tag keys and values to be attached to the nodes
-     * for managing Compute Engine firewalls using Network Firewall Policies.
-     * Existing tags will be replaced with new values.
-     * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 39; - */ - public Builder clearResourceManagerTags() { - bitField0_ = (bitField0_ & ~0x08000000); - resourceManagerTags_ = null; - if (resourceManagerTagsBuilder_ != null) { - resourceManagerTagsBuilder_.dispose(); - resourceManagerTagsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Desired resource manager tag keys and values to be attached to the nodes
-     * for managing Compute Engine firewalls using Network Firewall Policies.
-     * Existing tags will be replaced with new values.
-     * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 39; - */ - public com.google.container.v1.ResourceManagerTags.Builder getResourceManagerTagsBuilder() { - bitField0_ |= 0x08000000; - onChanged(); - return getResourceManagerTagsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Desired resource manager tag keys and values to be attached to the nodes
-     * for managing Compute Engine firewalls using Network Firewall Policies.
-     * Existing tags will be replaced with new values.
-     * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 39; - */ - public com.google.container.v1.ResourceManagerTagsOrBuilder getResourceManagerTagsOrBuilder() { - if (resourceManagerTagsBuilder_ != null) { - return resourceManagerTagsBuilder_.getMessageOrBuilder(); - } else { - return resourceManagerTags_ == null - ? com.google.container.v1.ResourceManagerTags.getDefaultInstance() - : resourceManagerTags_; - } - } - /** - * - * - *
-     * Desired resource manager tag keys and values to be attached to the nodes
-     * for managing Compute Engine firewalls using Network Firewall Policies.
-     * Existing tags will be replaced with new values.
-     * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 39; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ResourceManagerTags, - com.google.container.v1.ResourceManagerTags.Builder, - com.google.container.v1.ResourceManagerTagsOrBuilder> - getResourceManagerTagsFieldBuilder() { - if (resourceManagerTagsBuilder_ == null) { - resourceManagerTagsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ResourceManagerTags, - com.google.container.v1.ResourceManagerTags.Builder, - com.google.container.v1.ResourceManagerTagsOrBuilder>( - getResourceManagerTags(), getParentForChildren(), isClean()); - resourceManagerTags_ = null; - } - return resourceManagerTagsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.UpdateNodePoolRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.UpdateNodePoolRequest) - private static final com.google.container.v1.UpdateNodePoolRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.UpdateNodePoolRequest(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.UpdateNodePoolRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java deleted file mode 100644 index 15fcdbd90b59..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java +++ /dev/null @@ -1,1031 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface UpdateNodePoolRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.UpdateNodePoolRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2629 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2629 - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2635 - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2635 - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2639 - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2639 - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getClusterIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the node pool to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2643 - * @return The nodePoolId. - */ - @java.lang.Deprecated - java.lang.String getNodePoolId(); - /** - * - * - *
-   * Deprecated. The name of the node pool to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2643 - * @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. Please see
-   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-   * available image types.
-   * 
- * - * 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. Please see
-   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-   * available image types.
-   * 
- * - * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for imageType. - */ - com.google.protobuf.ByteString getImageTypeBytes(); - - /** - * - * - *
-   * The name (project, location, cluster, node pool) of the node pool to
-   * update. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 8; - * - * @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(); - - /** - * - * - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * node pool's nodes should be located. Changing the locations for a node pool
-   * will result in nodes being either created or removed from the node pool,
-   * depending on whether locations are being added or removed.
-   * 
- * - * repeated string locations = 13; - * - * @return A list containing the locations. - */ - java.util.List getLocationsList(); - /** - * - * - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * node pool's nodes should be located. Changing the locations for a node pool
-   * will result in nodes being either created or removed from the node pool,
-   * depending on whether locations are being added or removed.
-   * 
- * - * repeated string locations = 13; - * - * @return The count of locations. - */ - int getLocationsCount(); - /** - * - * - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * node pool's nodes should be located. Changing the locations for a node pool
-   * will result in nodes being either created or removed from the node pool,
-   * depending on whether locations are being added or removed.
-   * 
- * - * repeated string locations = 13; - * - * @param index The index of the element to return. - * @return The locations at the given index. - */ - java.lang.String getLocations(int index); - /** - * - * - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * node pool's nodes should be located. Changing the locations for a node pool
-   * will result in nodes being either created or removed from the node pool,
-   * depending on whether locations are being added or removed.
-   * 
- * - * repeated string locations = 13; - * - * @param index The index of the value to return. - * @return The bytes of the locations at the given index. - */ - com.google.protobuf.ByteString getLocationsBytes(int index); - - /** - * - * - *
-   * The desired workload metadata config for the node pool.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * - * @return Whether the workloadMetadataConfig field is set. - */ - boolean hasWorkloadMetadataConfig(); - /** - * - * - *
-   * The desired workload metadata config for the node pool.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * - * @return The workloadMetadataConfig. - */ - com.google.container.v1.WorkloadMetadataConfig getWorkloadMetadataConfig(); - /** - * - * - *
-   * The desired workload metadata config for the node pool.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - com.google.container.v1.WorkloadMetadataConfigOrBuilder getWorkloadMetadataConfigOrBuilder(); - - /** - * - * - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - * - * @return Whether the upgradeSettings field is set. - */ - boolean hasUpgradeSettings(); - /** - * - * - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - * - * @return The upgradeSettings. - */ - com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings(); - /** - * - * - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - */ - com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder(); - - /** - * - * - *
-   * The desired network tags to be applied to all nodes in the node pool.
-   * If this field is not present, the tags will not be changed. Otherwise,
-   * the existing network tags will be *replaced* with the provided tags.
-   * 
- * - * .google.container.v1.NetworkTags tags = 16; - * - * @return Whether the tags field is set. - */ - boolean hasTags(); - /** - * - * - *
-   * The desired network tags to be applied to all nodes in the node pool.
-   * If this field is not present, the tags will not be changed. Otherwise,
-   * the existing network tags will be *replaced* with the provided tags.
-   * 
- * - * .google.container.v1.NetworkTags tags = 16; - * - * @return The tags. - */ - com.google.container.v1.NetworkTags getTags(); - /** - * - * - *
-   * The desired network tags to be applied to all nodes in the node pool.
-   * If this field is not present, the tags will not be changed. Otherwise,
-   * the existing network tags will be *replaced* with the provided tags.
-   * 
- * - * .google.container.v1.NetworkTags tags = 16; - */ - com.google.container.v1.NetworkTagsOrBuilder getTagsOrBuilder(); - - /** - * - * - *
-   * The desired node taints to be applied to all nodes in the node pool.
-   * If this field is not present, the taints will not be changed. Otherwise,
-   * the existing node taints will be *replaced* with the provided taints.
-   * 
- * - * .google.container.v1.NodeTaints taints = 17; - * - * @return Whether the taints field is set. - */ - boolean hasTaints(); - /** - * - * - *
-   * The desired node taints to be applied to all nodes in the node pool.
-   * If this field is not present, the taints will not be changed. Otherwise,
-   * the existing node taints will be *replaced* with the provided taints.
-   * 
- * - * .google.container.v1.NodeTaints taints = 17; - * - * @return The taints. - */ - com.google.container.v1.NodeTaints getTaints(); - /** - * - * - *
-   * The desired node taints to be applied to all nodes in the node pool.
-   * If this field is not present, the taints will not be changed. Otherwise,
-   * the existing node taints will be *replaced* with the provided taints.
-   * 
- * - * .google.container.v1.NodeTaints taints = 17; - */ - com.google.container.v1.NodeTaintsOrBuilder getTaintsOrBuilder(); - - /** - * - * - *
-   * The desired node labels to be applied to all nodes in the node pool.
-   * If this field is not present, the labels will not be changed. Otherwise,
-   * the existing node labels will be *replaced* with the provided labels.
-   * 
- * - * .google.container.v1.NodeLabels labels = 18; - * - * @return Whether the labels field is set. - */ - boolean hasLabels(); - /** - * - * - *
-   * The desired node labels to be applied to all nodes in the node pool.
-   * If this field is not present, the labels will not be changed. Otherwise,
-   * the existing node labels will be *replaced* with the provided labels.
-   * 
- * - * .google.container.v1.NodeLabels labels = 18; - * - * @return The labels. - */ - com.google.container.v1.NodeLabels getLabels(); - /** - * - * - *
-   * The desired node labels to be applied to all nodes in the node pool.
-   * If this field is not present, the labels will not be changed. Otherwise,
-   * the existing node labels will be *replaced* with the provided labels.
-   * 
- * - * .google.container.v1.NodeLabels labels = 18; - */ - com.google.container.v1.NodeLabelsOrBuilder getLabelsOrBuilder(); - - /** - * - * - *
-   * Parameters that can be configured on Linux nodes.
-   * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 19; - * - * @return Whether the linuxNodeConfig field is set. - */ - boolean hasLinuxNodeConfig(); - /** - * - * - *
-   * Parameters that can be configured on Linux nodes.
-   * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 19; - * - * @return The linuxNodeConfig. - */ - com.google.container.v1.LinuxNodeConfig getLinuxNodeConfig(); - /** - * - * - *
-   * Parameters that can be configured on Linux nodes.
-   * 
- * - * .google.container.v1.LinuxNodeConfig linux_node_config = 19; - */ - com.google.container.v1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder(); - - /** - * - * - *
-   * Node kubelet configs.
-   * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 20; - * - * @return Whether the kubeletConfig field is set. - */ - boolean hasKubeletConfig(); - /** - * - * - *
-   * Node kubelet configs.
-   * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 20; - * - * @return The kubeletConfig. - */ - com.google.container.v1.NodeKubeletConfig getKubeletConfig(); - /** - * - * - *
-   * Node kubelet configs.
-   * 
- * - * .google.container.v1.NodeKubeletConfig kubelet_config = 20; - */ - com.google.container.v1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder(); - - /** - * - * - *
-   * Node network config.
-   * 
- * - * .google.container.v1.NodeNetworkConfig node_network_config = 21; - * - * @return Whether the nodeNetworkConfig field is set. - */ - boolean hasNodeNetworkConfig(); - /** - * - * - *
-   * Node network config.
-   * 
- * - * .google.container.v1.NodeNetworkConfig node_network_config = 21; - * - * @return The nodeNetworkConfig. - */ - com.google.container.v1.NodeNetworkConfig getNodeNetworkConfig(); - /** - * - * - *
-   * Node network config.
-   * 
- * - * .google.container.v1.NodeNetworkConfig node_network_config = 21; - */ - com.google.container.v1.NodeNetworkConfigOrBuilder getNodeNetworkConfigOrBuilder(); - - /** - * - * - *
-   * GCFS config.
-   * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 22; - * - * @return Whether the gcfsConfig field is set. - */ - boolean hasGcfsConfig(); - /** - * - * - *
-   * GCFS config.
-   * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 22; - * - * @return The gcfsConfig. - */ - com.google.container.v1.GcfsConfig getGcfsConfig(); - /** - * - * - *
-   * GCFS config.
-   * 
- * - * .google.container.v1.GcfsConfig gcfs_config = 22; - */ - com.google.container.v1.GcfsConfigOrBuilder getGcfsConfigOrBuilder(); - - /** - * - * - *
-   * Confidential nodes config.
-   * All the nodes in the node pool will be Confidential VM once enabled.
-   * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 23; - * - * @return Whether the confidentialNodes field is set. - */ - boolean hasConfidentialNodes(); - /** - * - * - *
-   * Confidential nodes config.
-   * All the nodes in the node pool will be Confidential VM once enabled.
-   * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 23; - * - * @return The confidentialNodes. - */ - com.google.container.v1.ConfidentialNodes getConfidentialNodes(); - /** - * - * - *
-   * Confidential nodes config.
-   * All the nodes in the node pool will be Confidential VM once enabled.
-   * 
- * - * .google.container.v1.ConfidentialNodes confidential_nodes = 23; - */ - com.google.container.v1.ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder(); - - /** - * - * - *
-   * Enable or disable gvnic on the node pool.
-   * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - * - * @return Whether the gvnic field is set. - */ - boolean hasGvnic(); - /** - * - * - *
-   * Enable or disable gvnic on the node pool.
-   * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - * - * @return The gvnic. - */ - com.google.container.v1.VirtualNIC getGvnic(); - /** - * - * - *
-   * Enable or disable gvnic on the node pool.
-   * 
- * - * .google.container.v1.VirtualNIC gvnic = 29; - */ - com.google.container.v1.VirtualNICOrBuilder getGvnicOrBuilder(); - - /** - * - * - *
-   * The current etag of the node pool.
-   * If an etag is provided and does not match the current etag of the node
-   * pool, update will be blocked and an ABORTED error will be returned.
-   * 
- * - * string etag = 30; - * - * @return The etag. - */ - java.lang.String getEtag(); - /** - * - * - *
-   * The current etag of the node pool.
-   * If an etag is provided and does not match the current etag of the node
-   * pool, update will be blocked and an ABORTED error will be returned.
-   * 
- * - * string etag = 30; - * - * @return The bytes for etag. - */ - com.google.protobuf.ByteString getEtagBytes(); - - /** - * - * - *
-   * Enable or disable NCCL fast socket for the node pool.
-   * 
- * - * .google.container.v1.FastSocket fast_socket = 31; - * - * @return Whether the fastSocket field is set. - */ - boolean hasFastSocket(); - /** - * - * - *
-   * Enable or disable NCCL fast socket for the node pool.
-   * 
- * - * .google.container.v1.FastSocket fast_socket = 31; - * - * @return The fastSocket. - */ - com.google.container.v1.FastSocket getFastSocket(); - /** - * - * - *
-   * Enable or disable NCCL fast socket for the node pool.
-   * 
- * - * .google.container.v1.FastSocket fast_socket = 31; - */ - com.google.container.v1.FastSocketOrBuilder getFastSocketOrBuilder(); - - /** - * - * - *
-   * Logging configuration.
-   * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 32; - * - * @return Whether the loggingConfig field is set. - */ - boolean hasLoggingConfig(); - /** - * - * - *
-   * Logging configuration.
-   * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 32; - * - * @return The loggingConfig. - */ - com.google.container.v1.NodePoolLoggingConfig getLoggingConfig(); - /** - * - * - *
-   * Logging configuration.
-   * 
- * - * .google.container.v1.NodePoolLoggingConfig logging_config = 32; - */ - com.google.container.v1.NodePoolLoggingConfigOrBuilder getLoggingConfigOrBuilder(); - - /** - * - * - *
-   * The resource labels for the node pool to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * .google.container.v1.ResourceLabels resource_labels = 33; - * - * @return Whether the resourceLabels field is set. - */ - boolean hasResourceLabels(); - /** - * - * - *
-   * The resource labels for the node pool to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * .google.container.v1.ResourceLabels resource_labels = 33; - * - * @return The resourceLabels. - */ - com.google.container.v1.ResourceLabels getResourceLabels(); - /** - * - * - *
-   * The resource labels for the node pool to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * .google.container.v1.ResourceLabels resource_labels = 33; - */ - com.google.container.v1.ResourceLabelsOrBuilder getResourceLabelsOrBuilder(); - - /** - * - * - *
-   * Parameters that can be configured on Windows nodes.
-   * 
- * - * .google.container.v1.WindowsNodeConfig windows_node_config = 34; - * - * @return Whether the windowsNodeConfig field is set. - */ - boolean hasWindowsNodeConfig(); - /** - * - * - *
-   * Parameters that can be configured on Windows nodes.
-   * 
- * - * .google.container.v1.WindowsNodeConfig windows_node_config = 34; - * - * @return The windowsNodeConfig. - */ - com.google.container.v1.WindowsNodeConfig getWindowsNodeConfig(); - /** - * - * - *
-   * Parameters that can be configured on Windows nodes.
-   * 
- * - * .google.container.v1.WindowsNodeConfig windows_node_config = 34; - */ - com.google.container.v1.WindowsNodeConfigOrBuilder getWindowsNodeConfigOrBuilder(); - - /** - * - * - *
-   * Optional. The desired [Google Compute Engine machine
-   * type](https://cloud.google.com/compute/docs/machine-types) for nodes in the
-   * node pool. Initiates an upgrade operation that migrates the nodes in the
-   * node pool to the specified machine type.
-   * 
- * - * string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The machineType. - */ - java.lang.String getMachineType(); - /** - * - * - *
-   * Optional. The desired [Google Compute Engine machine
-   * type](https://cloud.google.com/compute/docs/machine-types) for nodes in the
-   * node pool. Initiates an upgrade operation that migrates the nodes in the
-   * node pool to the specified machine type.
-   * 
- * - * string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for machineType. - */ - com.google.protobuf.ByteString getMachineTypeBytes(); - - /** - * - * - *
-   * Optional. The desired disk type (e.g. 'pd-standard', 'pd-ssd' or
-   * 'pd-balanced') for nodes in the node pool.
-   * Initiates an upgrade operation that migrates the nodes in the
-   * node pool to the specified disk type.
-   * 
- * - * string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The diskType. - */ - java.lang.String getDiskType(); - /** - * - * - *
-   * Optional. The desired disk type (e.g. 'pd-standard', 'pd-ssd' or
-   * 'pd-balanced') for nodes in the node pool.
-   * Initiates an upgrade operation that migrates the nodes in the
-   * node pool to the specified disk type.
-   * 
- * - * string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for diskType. - */ - com.google.protobuf.ByteString getDiskTypeBytes(); - - /** - * - * - *
-   * Optional. The desired disk size for nodes in the node pool specified in GB.
-   * The smallest allowed disk size is 10GB.
-   * Initiates an upgrade operation that migrates the nodes in the
-   * node pool to the specified disk size.
-   * 
- * - * int64 disk_size_gb = 38 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The diskSizeGb. - */ - long getDiskSizeGb(); - - /** - * - * - *
-   * Desired resource manager tag keys and values to be attached to the nodes
-   * for managing Compute Engine firewalls using Network Firewall Policies.
-   * Existing tags will be replaced with new values.
-   * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 39; - * - * @return Whether the resourceManagerTags field is set. - */ - boolean hasResourceManagerTags(); - /** - * - * - *
-   * Desired resource manager tag keys and values to be attached to the nodes
-   * for managing Compute Engine firewalls using Network Firewall Policies.
-   * Existing tags will be replaced with new values.
-   * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 39; - * - * @return The resourceManagerTags. - */ - com.google.container.v1.ResourceManagerTags getResourceManagerTags(); - /** - * - * - *
-   * Desired resource manager tag keys and values to be attached to the nodes
-   * for managing Compute Engine firewalls using Network Firewall Policies.
-   * Existing tags will be replaced with new values.
-   * 
- * - * .google.container.v1.ResourceManagerTags resource_manager_tags = 39; - */ - com.google.container.v1.ResourceManagerTagsOrBuilder getResourceManagerTagsOrBuilder(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeAvailableEvent.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeAvailableEvent.java deleted file mode 100644 index 1bbb3231eb89..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeAvailableEvent.java +++ /dev/null @@ -1,1260 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * UpgradeAvailableEvent is a notification sent to customers when a new
- * available version is released.
- * 
- * - * Protobuf type {@code google.container.v1.UpgradeAvailableEvent} - */ -public final class UpgradeAvailableEvent extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.UpgradeAvailableEvent) - UpgradeAvailableEventOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpgradeAvailableEvent.newBuilder() to construct. - private UpgradeAvailableEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpgradeAvailableEvent() { - version_ = ""; - resourceType_ = 0; - resource_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpgradeAvailableEvent(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UpgradeAvailableEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UpgradeAvailableEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.UpgradeAvailableEvent.class, - com.google.container.v1.UpgradeAvailableEvent.Builder.class); - } - - private int bitField0_; - public static final int VERSION_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object version_ = ""; - /** - * - * - *
-   * The release version available for upgrade.
-   * 
- * - * string version = 1; - * - * @return The version. - */ - @java.lang.Override - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } - } - /** - * - * - *
-   * The release version available for upgrade.
-   * 
- * - * string version = 1; - * - * @return The bytes for version. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 2; - private int resourceType_ = 0; - /** - * - * - *
-   * The resource type of the release version.
-   * 
- * - * .google.container.v1.UpgradeResourceType resource_type = 2; - * - * @return The enum numeric value on the wire for resourceType. - */ - @java.lang.Override - public int getResourceTypeValue() { - return resourceType_; - } - /** - * - * - *
-   * The resource type of the release version.
-   * 
- * - * .google.container.v1.UpgradeResourceType resource_type = 2; - * - * @return The resourceType. - */ - @java.lang.Override - public com.google.container.v1.UpgradeResourceType getResourceType() { - com.google.container.v1.UpgradeResourceType result = - com.google.container.v1.UpgradeResourceType.forNumber(resourceType_); - return result == null ? com.google.container.v1.UpgradeResourceType.UNRECOGNIZED : result; - } - - public static final int RELEASE_CHANNEL_FIELD_NUMBER = 3; - private com.google.container.v1.ReleaseChannel releaseChannel_; - /** - * - * - *
-   * The release channel of the version. If empty, it means a non-channel
-   * release.
-   * 
- * - * .google.container.v1.ReleaseChannel release_channel = 3; - * - * @return Whether the releaseChannel field is set. - */ - @java.lang.Override - public boolean hasReleaseChannel() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * The release channel of the version. If empty, it means a non-channel
-   * release.
-   * 
- * - * .google.container.v1.ReleaseChannel release_channel = 3; - * - * @return The releaseChannel. - */ - @java.lang.Override - public com.google.container.v1.ReleaseChannel getReleaseChannel() { - return releaseChannel_ == null - ? com.google.container.v1.ReleaseChannel.getDefaultInstance() - : releaseChannel_; - } - /** - * - * - *
-   * The release channel of the version. If empty, it means a non-channel
-   * release.
-   * 
- * - * .google.container.v1.ReleaseChannel release_channel = 3; - */ - @java.lang.Override - public com.google.container.v1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder() { - return releaseChannel_ == null - ? com.google.container.v1.ReleaseChannel.getDefaultInstance() - : releaseChannel_; - } - - public static final int RESOURCE_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private volatile java.lang.Object resource_ = ""; - /** - * - * - *
-   * Optional relative path to the resource. For example, the relative path of
-   * the node pool.
-   * 
- * - * string resource = 4; - * - * @return The resource. - */ - @java.lang.Override - public java.lang.String getResource() { - java.lang.Object ref = resource_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resource_ = s; - return s; - } - } - /** - * - * - *
-   * Optional relative path to the resource. For example, the relative path of
-   * the node pool.
-   * 
- * - * string resource = 4; - * - * @return The bytes for resource. - */ - @java.lang.Override - public com.google.protobuf.ByteString getResourceBytes() { - java.lang.Object ref = resource_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - resource_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); - } - if (resourceType_ - != com.google.container.v1.UpgradeResourceType.UPGRADE_RESOURCE_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(2, resourceType_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getReleaseChannel()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, resource_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); - } - if (resourceType_ - != com.google.container.v1.UpgradeResourceType.UPGRADE_RESOURCE_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, resourceType_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getReleaseChannel()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, resource_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.UpgradeAvailableEvent)) { - return super.equals(obj); - } - com.google.container.v1.UpgradeAvailableEvent other = - (com.google.container.v1.UpgradeAvailableEvent) obj; - - if (!getVersion().equals(other.getVersion())) return false; - if (resourceType_ != other.resourceType_) return false; - if (hasReleaseChannel() != other.hasReleaseChannel()) return false; - if (hasReleaseChannel()) { - if (!getReleaseChannel().equals(other.getReleaseChannel())) return false; - } - if (!getResource().equals(other.getResource())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + resourceType_; - if (hasReleaseChannel()) { - hash = (37 * hash) + RELEASE_CHANNEL_FIELD_NUMBER; - hash = (53 * hash) + getReleaseChannel().hashCode(); - } - hash = (37 * hash) + RESOURCE_FIELD_NUMBER; - hash = (53 * hash) + getResource().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.UpgradeAvailableEvent parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.UpgradeAvailableEvent parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.UpgradeAvailableEvent parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.UpgradeAvailableEvent parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.UpgradeAvailableEvent parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.UpgradeAvailableEvent parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.UpgradeAvailableEvent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.UpgradeAvailableEvent parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.UpgradeAvailableEvent parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.UpgradeAvailableEvent parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.UpgradeAvailableEvent parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.UpgradeAvailableEvent parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.UpgradeAvailableEvent prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * UpgradeAvailableEvent is a notification sent to customers when a new
-   * available version is released.
-   * 
- * - * Protobuf type {@code google.container.v1.UpgradeAvailableEvent} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.UpgradeAvailableEvent) - com.google.container.v1.UpgradeAvailableEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UpgradeAvailableEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UpgradeAvailableEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.UpgradeAvailableEvent.class, - com.google.container.v1.UpgradeAvailableEvent.Builder.class); - } - - // Construct using com.google.container.v1.UpgradeAvailableEvent.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getReleaseChannelFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - version_ = ""; - resourceType_ = 0; - releaseChannel_ = null; - if (releaseChannelBuilder_ != null) { - releaseChannelBuilder_.dispose(); - releaseChannelBuilder_ = null; - } - resource_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UpgradeAvailableEvent_descriptor; - } - - @java.lang.Override - public com.google.container.v1.UpgradeAvailableEvent getDefaultInstanceForType() { - return com.google.container.v1.UpgradeAvailableEvent.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.UpgradeAvailableEvent build() { - com.google.container.v1.UpgradeAvailableEvent result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.UpgradeAvailableEvent buildPartial() { - com.google.container.v1.UpgradeAvailableEvent result = - new com.google.container.v1.UpgradeAvailableEvent(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.UpgradeAvailableEvent result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.version_ = version_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.resourceType_ = resourceType_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.releaseChannel_ = - releaseChannelBuilder_ == null ? releaseChannel_ : releaseChannelBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.resource_ = resource_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.UpgradeAvailableEvent) { - return mergeFrom((com.google.container.v1.UpgradeAvailableEvent) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.UpgradeAvailableEvent other) { - if (other == com.google.container.v1.UpgradeAvailableEvent.getDefaultInstance()) return this; - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); - } - if (other.hasReleaseChannel()) { - mergeReleaseChannel(other.getReleaseChannel()); - } - if (!other.getResource().isEmpty()) { - resource_ = other.resource_; - bitField0_ |= 0x00000008; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - version_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - resourceType_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - input.readMessage(getReleaseChannelFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - resource_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object version_ = ""; - /** - * - * - *
-     * The release version available for upgrade.
-     * 
- * - * string version = 1; - * - * @return The version. - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The release version available for upgrade.
-     * 
- * - * string version = 1; - * - * @return The bytes for version. - */ - public com.google.protobuf.ByteString getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The release version available for upgrade.
-     * 
- * - * string version = 1; - * - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - version_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The release version available for upgrade.
-     * 
- * - * string version = 1; - * - * @return This builder for chaining. - */ - public Builder clearVersion() { - version_ = getDefaultInstance().getVersion(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * The release version available for upgrade.
-     * 
- * - * string version = 1; - * - * @param value The bytes for version to set. - * @return This builder for chaining. - */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - version_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int resourceType_ = 0; - /** - * - * - *
-     * The resource type of the release version.
-     * 
- * - * .google.container.v1.UpgradeResourceType resource_type = 2; - * - * @return The enum numeric value on the wire for resourceType. - */ - @java.lang.Override - public int getResourceTypeValue() { - return resourceType_; - } - /** - * - * - *
-     * The resource type of the release version.
-     * 
- * - * .google.container.v1.UpgradeResourceType resource_type = 2; - * - * @param value The enum numeric value on the wire for resourceType to set. - * @return This builder for chaining. - */ - public Builder setResourceTypeValue(int value) { - resourceType_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * The resource type of the release version.
-     * 
- * - * .google.container.v1.UpgradeResourceType resource_type = 2; - * - * @return The resourceType. - */ - @java.lang.Override - public com.google.container.v1.UpgradeResourceType getResourceType() { - com.google.container.v1.UpgradeResourceType result = - com.google.container.v1.UpgradeResourceType.forNumber(resourceType_); - return result == null ? com.google.container.v1.UpgradeResourceType.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The resource type of the release version.
-     * 
- * - * .google.container.v1.UpgradeResourceType resource_type = 2; - * - * @param value The resourceType to set. - * @return This builder for chaining. - */ - public Builder setResourceType(com.google.container.v1.UpgradeResourceType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - resourceType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The resource type of the release version.
-     * 
- * - * .google.container.v1.UpgradeResourceType resource_type = 2; - * - * @return This builder for chaining. - */ - public Builder clearResourceType() { - bitField0_ = (bitField0_ & ~0x00000002); - resourceType_ = 0; - onChanged(); - return this; - } - - private com.google.container.v1.ReleaseChannel releaseChannel_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ReleaseChannel, - com.google.container.v1.ReleaseChannel.Builder, - com.google.container.v1.ReleaseChannelOrBuilder> - releaseChannelBuilder_; - /** - * - * - *
-     * The release channel of the version. If empty, it means a non-channel
-     * release.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 3; - * - * @return Whether the releaseChannel field is set. - */ - public boolean hasReleaseChannel() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * The release channel of the version. If empty, it means a non-channel
-     * release.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 3; - * - * @return The releaseChannel. - */ - public com.google.container.v1.ReleaseChannel getReleaseChannel() { - if (releaseChannelBuilder_ == null) { - return releaseChannel_ == null - ? com.google.container.v1.ReleaseChannel.getDefaultInstance() - : releaseChannel_; - } else { - return releaseChannelBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The release channel of the version. If empty, it means a non-channel
-     * release.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 3; - */ - public Builder setReleaseChannel(com.google.container.v1.ReleaseChannel value) { - if (releaseChannelBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - releaseChannel_ = value; - } else { - releaseChannelBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The release channel of the version. If empty, it means a non-channel
-     * release.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 3; - */ - public Builder setReleaseChannel( - com.google.container.v1.ReleaseChannel.Builder builderForValue) { - if (releaseChannelBuilder_ == null) { - releaseChannel_ = builderForValue.build(); - } else { - releaseChannelBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The release channel of the version. If empty, it means a non-channel
-     * release.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 3; - */ - public Builder mergeReleaseChannel(com.google.container.v1.ReleaseChannel value) { - if (releaseChannelBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && releaseChannel_ != null - && releaseChannel_ != com.google.container.v1.ReleaseChannel.getDefaultInstance()) { - getReleaseChannelBuilder().mergeFrom(value); - } else { - releaseChannel_ = value; - } - } else { - releaseChannelBuilder_.mergeFrom(value); - } - if (releaseChannel_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The release channel of the version. If empty, it means a non-channel
-     * release.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 3; - */ - public Builder clearReleaseChannel() { - bitField0_ = (bitField0_ & ~0x00000004); - releaseChannel_ = null; - if (releaseChannelBuilder_ != null) { - releaseChannelBuilder_.dispose(); - releaseChannelBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The release channel of the version. If empty, it means a non-channel
-     * release.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 3; - */ - public com.google.container.v1.ReleaseChannel.Builder getReleaseChannelBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getReleaseChannelFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The release channel of the version. If empty, it means a non-channel
-     * release.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 3; - */ - public com.google.container.v1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder() { - if (releaseChannelBuilder_ != null) { - return releaseChannelBuilder_.getMessageOrBuilder(); - } else { - return releaseChannel_ == null - ? com.google.container.v1.ReleaseChannel.getDefaultInstance() - : releaseChannel_; - } - } - /** - * - * - *
-     * The release channel of the version. If empty, it means a non-channel
-     * release.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ReleaseChannel, - com.google.container.v1.ReleaseChannel.Builder, - com.google.container.v1.ReleaseChannelOrBuilder> - getReleaseChannelFieldBuilder() { - if (releaseChannelBuilder_ == null) { - releaseChannelBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ReleaseChannel, - com.google.container.v1.ReleaseChannel.Builder, - com.google.container.v1.ReleaseChannelOrBuilder>( - getReleaseChannel(), getParentForChildren(), isClean()); - releaseChannel_ = null; - } - return releaseChannelBuilder_; - } - - private java.lang.Object resource_ = ""; - /** - * - * - *
-     * Optional relative path to the resource. For example, the relative path of
-     * the node pool.
-     * 
- * - * string resource = 4; - * - * @return The resource. - */ - public java.lang.String getResource() { - java.lang.Object ref = resource_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resource_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional relative path to the resource. For example, the relative path of
-     * the node pool.
-     * 
- * - * string resource = 4; - * - * @return The bytes for resource. - */ - public com.google.protobuf.ByteString getResourceBytes() { - java.lang.Object ref = resource_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - resource_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional relative path to the resource. For example, the relative path of
-     * the node pool.
-     * 
- * - * string resource = 4; - * - * @param value The resource to set. - * @return This builder for chaining. - */ - public Builder setResource(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional relative path to the resource. For example, the relative path of
-     * the node pool.
-     * 
- * - * string resource = 4; - * - * @return This builder for chaining. - */ - public Builder clearResource() { - resource_ = getDefaultInstance().getResource(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional relative path to the resource. For example, the relative path of
-     * the node pool.
-     * 
- * - * string resource = 4; - * - * @param value The bytes for resource to set. - * @return This builder for chaining. - */ - public Builder setResourceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - resource_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.UpgradeAvailableEvent) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.UpgradeAvailableEvent) - private static final com.google.container.v1.UpgradeAvailableEvent DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.UpgradeAvailableEvent(); - } - - public static com.google.container.v1.UpgradeAvailableEvent getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpgradeAvailableEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.UpgradeAvailableEvent getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeAvailableEventOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeAvailableEventOrBuilder.java deleted file mode 100644 index 53b1e2dc6cc4..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeAvailableEventOrBuilder.java +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface UpgradeAvailableEventOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.UpgradeAvailableEvent) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The release version available for upgrade.
-   * 
- * - * string version = 1; - * - * @return The version. - */ - java.lang.String getVersion(); - /** - * - * - *
-   * The release version available for upgrade.
-   * 
- * - * string version = 1; - * - * @return The bytes for version. - */ - com.google.protobuf.ByteString getVersionBytes(); - - /** - * - * - *
-   * The resource type of the release version.
-   * 
- * - * .google.container.v1.UpgradeResourceType resource_type = 2; - * - * @return The enum numeric value on the wire for resourceType. - */ - int getResourceTypeValue(); - /** - * - * - *
-   * The resource type of the release version.
-   * 
- * - * .google.container.v1.UpgradeResourceType resource_type = 2; - * - * @return The resourceType. - */ - com.google.container.v1.UpgradeResourceType getResourceType(); - - /** - * - * - *
-   * The release channel of the version. If empty, it means a non-channel
-   * release.
-   * 
- * - * .google.container.v1.ReleaseChannel release_channel = 3; - * - * @return Whether the releaseChannel field is set. - */ - boolean hasReleaseChannel(); - /** - * - * - *
-   * The release channel of the version. If empty, it means a non-channel
-   * release.
-   * 
- * - * .google.container.v1.ReleaseChannel release_channel = 3; - * - * @return The releaseChannel. - */ - com.google.container.v1.ReleaseChannel getReleaseChannel(); - /** - * - * - *
-   * The release channel of the version. If empty, it means a non-channel
-   * release.
-   * 
- * - * .google.container.v1.ReleaseChannel release_channel = 3; - */ - com.google.container.v1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder(); - - /** - * - * - *
-   * Optional relative path to the resource. For example, the relative path of
-   * the node pool.
-   * 
- * - * string resource = 4; - * - * @return The resource. - */ - java.lang.String getResource(); - /** - * - * - *
-   * Optional relative path to the resource. For example, the relative path of
-   * the node pool.
-   * 
- * - * string resource = 4; - * - * @return The bytes for resource. - */ - com.google.protobuf.ByteString getResourceBytes(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeEvent.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeEvent.java deleted file mode 100644 index 510e60a7e187..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeEvent.java +++ /dev/null @@ -1,1611 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * UpgradeEvent is a notification sent to customers by the cluster server when
- * a resource is upgrading.
- * 
- * - * Protobuf type {@code google.container.v1.UpgradeEvent} - */ -public final class UpgradeEvent extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.UpgradeEvent) - UpgradeEventOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpgradeEvent.newBuilder() to construct. - private UpgradeEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpgradeEvent() { - resourceType_ = 0; - operation_ = ""; - currentVersion_ = ""; - targetVersion_ = ""; - resource_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpgradeEvent(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UpgradeEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UpgradeEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.UpgradeEvent.class, - com.google.container.v1.UpgradeEvent.Builder.class); - } - - private int bitField0_; - public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; - private int resourceType_ = 0; - /** - * - * - *
-   * The resource type that is upgrading.
-   * 
- * - * .google.container.v1.UpgradeResourceType resource_type = 1; - * - * @return The enum numeric value on the wire for resourceType. - */ - @java.lang.Override - public int getResourceTypeValue() { - return resourceType_; - } - /** - * - * - *
-   * The resource type that is upgrading.
-   * 
- * - * .google.container.v1.UpgradeResourceType resource_type = 1; - * - * @return The resourceType. - */ - @java.lang.Override - public com.google.container.v1.UpgradeResourceType getResourceType() { - com.google.container.v1.UpgradeResourceType result = - com.google.container.v1.UpgradeResourceType.forNumber(resourceType_); - return result == null ? com.google.container.v1.UpgradeResourceType.UNRECOGNIZED : result; - } - - public static final int OPERATION_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object operation_ = ""; - /** - * - * - *
-   * The operation associated with this upgrade.
-   * 
- * - * string operation = 2; - * - * @return The operation. - */ - @java.lang.Override - public java.lang.String getOperation() { - java.lang.Object ref = operation_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - operation_ = s; - return s; - } - } - /** - * - * - *
-   * The operation associated with this upgrade.
-   * 
- * - * string operation = 2; - * - * @return The bytes for operation. - */ - @java.lang.Override - public com.google.protobuf.ByteString getOperationBytes() { - java.lang.Object ref = operation_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - operation_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OPERATION_START_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp operationStartTime_; - /** - * - * - *
-   * The time when the operation was started.
-   * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - * - * @return Whether the operationStartTime field is set. - */ - @java.lang.Override - public boolean hasOperationStartTime() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * The time when the operation was started.
-   * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - * - * @return The operationStartTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getOperationStartTime() { - return operationStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : operationStartTime_; - } - /** - * - * - *
-   * The time when the operation was started.
-   * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getOperationStartTimeOrBuilder() { - return operationStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : operationStartTime_; - } - - public static final int CURRENT_VERSION_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private volatile java.lang.Object currentVersion_ = ""; - /** - * - * - *
-   * The current version before the upgrade.
-   * 
- * - * string current_version = 4; - * - * @return The currentVersion. - */ - @java.lang.Override - public java.lang.String getCurrentVersion() { - java.lang.Object ref = currentVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currentVersion_ = s; - return s; - } - } - /** - * - * - *
-   * The current version before the upgrade.
-   * 
- * - * string current_version = 4; - * - * @return The bytes for currentVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCurrentVersionBytes() { - java.lang.Object ref = currentVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - currentVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TARGET_VERSION_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - private volatile java.lang.Object targetVersion_ = ""; - /** - * - * - *
-   * The target version for the upgrade.
-   * 
- * - * string target_version = 5; - * - * @return The targetVersion. - */ - @java.lang.Override - public java.lang.String getTargetVersion() { - java.lang.Object ref = targetVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - targetVersion_ = s; - return s; - } - } - /** - * - * - *
-   * The target version for the upgrade.
-   * 
- * - * string target_version = 5; - * - * @return The bytes for targetVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTargetVersionBytes() { - java.lang.Object ref = targetVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - targetVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESOURCE_FIELD_NUMBER = 6; - - @SuppressWarnings("serial") - private volatile java.lang.Object resource_ = ""; - /** - * - * - *
-   * Optional relative path to the resource. For example in node pool upgrades,
-   * the relative path of the node pool.
-   * 
- * - * string resource = 6; - * - * @return The resource. - */ - @java.lang.Override - public java.lang.String getResource() { - java.lang.Object ref = resource_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resource_ = s; - return s; - } - } - /** - * - * - *
-   * Optional relative path to the resource. For example in node pool upgrades,
-   * the relative path of the node pool.
-   * 
- * - * string resource = 6; - * - * @return The bytes for resource. - */ - @java.lang.Override - public com.google.protobuf.ByteString getResourceBytes() { - java.lang.Object ref = resource_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - resource_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (resourceType_ - != com.google.container.v1.UpgradeResourceType.UPGRADE_RESOURCE_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, resourceType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operation_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, operation_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getOperationStartTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, currentVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, targetVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, resource_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (resourceType_ - != com.google.container.v1.UpgradeResourceType.UPGRADE_RESOURCE_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, resourceType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operation_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, operation_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOperationStartTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, currentVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, targetVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, resource_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.UpgradeEvent)) { - return super.equals(obj); - } - com.google.container.v1.UpgradeEvent other = (com.google.container.v1.UpgradeEvent) obj; - - if (resourceType_ != other.resourceType_) return false; - if (!getOperation().equals(other.getOperation())) return false; - if (hasOperationStartTime() != other.hasOperationStartTime()) return false; - if (hasOperationStartTime()) { - if (!getOperationStartTime().equals(other.getOperationStartTime())) return false; - } - if (!getCurrentVersion().equals(other.getCurrentVersion())) return false; - if (!getTargetVersion().equals(other.getTargetVersion())) return false; - if (!getResource().equals(other.getResource())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.UpgradeEvent parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.UpgradeEvent parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.UpgradeEvent parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.UpgradeEvent parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.UpgradeEvent parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.UpgradeEvent parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.UpgradeEvent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.UpgradeEvent parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.UpgradeEvent parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.UpgradeEvent parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.UpgradeEvent parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.UpgradeEvent parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.UpgradeEvent prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * UpgradeEvent is a notification sent to customers by the cluster server when
-   * a resource is upgrading.
-   * 
- * - * Protobuf type {@code google.container.v1.UpgradeEvent} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.UpgradeEvent) - com.google.container.v1.UpgradeEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UpgradeEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UpgradeEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.UpgradeEvent.class, - com.google.container.v1.UpgradeEvent.Builder.class); - } - - // Construct using com.google.container.v1.UpgradeEvent.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getOperationStartTimeFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - resourceType_ = 0; - operation_ = ""; - operationStartTime_ = null; - if (operationStartTimeBuilder_ != null) { - operationStartTimeBuilder_.dispose(); - operationStartTimeBuilder_ = null; - } - currentVersion_ = ""; - targetVersion_ = ""; - resource_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UpgradeEvent_descriptor; - } - - @java.lang.Override - public com.google.container.v1.UpgradeEvent getDefaultInstanceForType() { - return com.google.container.v1.UpgradeEvent.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.UpgradeEvent build() { - com.google.container.v1.UpgradeEvent result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.UpgradeEvent buildPartial() { - com.google.container.v1.UpgradeEvent result = new com.google.container.v1.UpgradeEvent(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.UpgradeEvent result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.resourceType_ = resourceType_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.operation_ = operation_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.operationStartTime_ = - operationStartTimeBuilder_ == null - ? operationStartTime_ - : operationStartTimeBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.currentVersion_ = currentVersion_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.targetVersion_ = targetVersion_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.resource_ = resource_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.UpgradeEvent) { - return mergeFrom((com.google.container.v1.UpgradeEvent) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.UpgradeEvent other) { - if (other == com.google.container.v1.UpgradeEvent.getDefaultInstance()) return this; - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); - } - if (!other.getOperation().isEmpty()) { - operation_ = other.operation_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasOperationStartTime()) { - mergeOperationStartTime(other.getOperationStartTime()); - } - if (!other.getCurrentVersion().isEmpty()) { - currentVersion_ = other.currentVersion_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getTargetVersion().isEmpty()) { - targetVersion_ = other.targetVersion_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (!other.getResource().isEmpty()) { - resource_ = other.resource_; - bitField0_ |= 0x00000020; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - resourceType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - operation_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - getOperationStartTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - currentVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - targetVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - resource_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int resourceType_ = 0; - /** - * - * - *
-     * The resource type that is upgrading.
-     * 
- * - * .google.container.v1.UpgradeResourceType resource_type = 1; - * - * @return The enum numeric value on the wire for resourceType. - */ - @java.lang.Override - public int getResourceTypeValue() { - return resourceType_; - } - /** - * - * - *
-     * The resource type that is upgrading.
-     * 
- * - * .google.container.v1.UpgradeResourceType resource_type = 1; - * - * @param value The enum numeric value on the wire for resourceType to set. - * @return This builder for chaining. - */ - public Builder setResourceTypeValue(int value) { - resourceType_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The resource type that is upgrading.
-     * 
- * - * .google.container.v1.UpgradeResourceType resource_type = 1; - * - * @return The resourceType. - */ - @java.lang.Override - public com.google.container.v1.UpgradeResourceType getResourceType() { - com.google.container.v1.UpgradeResourceType result = - com.google.container.v1.UpgradeResourceType.forNumber(resourceType_); - return result == null ? com.google.container.v1.UpgradeResourceType.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The resource type that is upgrading.
-     * 
- * - * .google.container.v1.UpgradeResourceType resource_type = 1; - * - * @param value The resourceType to set. - * @return This builder for chaining. - */ - public Builder setResourceType(com.google.container.v1.UpgradeResourceType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - resourceType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The resource type that is upgrading.
-     * 
- * - * .google.container.v1.UpgradeResourceType resource_type = 1; - * - * @return This builder for chaining. - */ - public Builder clearResourceType() { - bitField0_ = (bitField0_ & ~0x00000001); - resourceType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object operation_ = ""; - /** - * - * - *
-     * The operation associated with this upgrade.
-     * 
- * - * string operation = 2; - * - * @return The operation. - */ - public java.lang.String getOperation() { - java.lang.Object ref = operation_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - operation_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The operation associated with this upgrade.
-     * 
- * - * string operation = 2; - * - * @return The bytes for operation. - */ - public com.google.protobuf.ByteString getOperationBytes() { - java.lang.Object ref = operation_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - operation_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The operation associated with this upgrade.
-     * 
- * - * string operation = 2; - * - * @param value The operation to set. - * @return This builder for chaining. - */ - public Builder setOperation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - operation_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * The operation associated with this upgrade.
-     * 
- * - * string operation = 2; - * - * @return This builder for chaining. - */ - public Builder clearOperation() { - operation_ = getDefaultInstance().getOperation(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * The operation associated with this upgrade.
-     * 
- * - * string operation = 2; - * - * @param value The bytes for operation to set. - * @return This builder for chaining. - */ - public Builder setOperationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - operation_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp operationStartTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - operationStartTimeBuilder_; - /** - * - * - *
-     * The time when the operation was started.
-     * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - * - * @return Whether the operationStartTime field is set. - */ - public boolean hasOperationStartTime() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * The time when the operation was started.
-     * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - * - * @return The operationStartTime. - */ - public com.google.protobuf.Timestamp getOperationStartTime() { - if (operationStartTimeBuilder_ == null) { - return operationStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : operationStartTime_; - } else { - return operationStartTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The time when the operation was started.
-     * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - */ - public Builder setOperationStartTime(com.google.protobuf.Timestamp value) { - if (operationStartTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - operationStartTime_ = value; - } else { - operationStartTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The time when the operation was started.
-     * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - */ - public Builder setOperationStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (operationStartTimeBuilder_ == null) { - operationStartTime_ = builderForValue.build(); - } else { - operationStartTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The time when the operation was started.
-     * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - */ - public Builder mergeOperationStartTime(com.google.protobuf.Timestamp value) { - if (operationStartTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && operationStartTime_ != null - && operationStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getOperationStartTimeBuilder().mergeFrom(value); - } else { - operationStartTime_ = value; - } - } else { - operationStartTimeBuilder_.mergeFrom(value); - } - if (operationStartTime_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The time when the operation was started.
-     * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - */ - public Builder clearOperationStartTime() { - bitField0_ = (bitField0_ & ~0x00000004); - operationStartTime_ = null; - if (operationStartTimeBuilder_ != null) { - operationStartTimeBuilder_.dispose(); - operationStartTimeBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The time when the operation was started.
-     * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - */ - public com.google.protobuf.Timestamp.Builder getOperationStartTimeBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getOperationStartTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The time when the operation was started.
-     * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - */ - public com.google.protobuf.TimestampOrBuilder getOperationStartTimeOrBuilder() { - if (operationStartTimeBuilder_ != null) { - return operationStartTimeBuilder_.getMessageOrBuilder(); - } else { - return operationStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : operationStartTime_; - } - } - /** - * - * - *
-     * The time when the operation was started.
-     * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getOperationStartTimeFieldBuilder() { - if (operationStartTimeBuilder_ == null) { - operationStartTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getOperationStartTime(), getParentForChildren(), isClean()); - operationStartTime_ = null; - } - return operationStartTimeBuilder_; - } - - private java.lang.Object currentVersion_ = ""; - /** - * - * - *
-     * The current version before the upgrade.
-     * 
- * - * string current_version = 4; - * - * @return The currentVersion. - */ - public java.lang.String getCurrentVersion() { - java.lang.Object ref = currentVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currentVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The current version before the upgrade.
-     * 
- * - * string current_version = 4; - * - * @return The bytes for currentVersion. - */ - public com.google.protobuf.ByteString getCurrentVersionBytes() { - java.lang.Object ref = currentVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - currentVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The current version before the upgrade.
-     * 
- * - * string current_version = 4; - * - * @param value The currentVersion to set. - * @return This builder for chaining. - */ - public Builder setCurrentVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - currentVersion_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * The current version before the upgrade.
-     * 
- * - * string current_version = 4; - * - * @return This builder for chaining. - */ - public Builder clearCurrentVersion() { - currentVersion_ = getDefaultInstance().getCurrentVersion(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * The current version before the upgrade.
-     * 
- * - * string current_version = 4; - * - * @param value The bytes for currentVersion to set. - * @return This builder for chaining. - */ - public Builder setCurrentVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - currentVersion_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private java.lang.Object targetVersion_ = ""; - /** - * - * - *
-     * The target version for the upgrade.
-     * 
- * - * string target_version = 5; - * - * @return The targetVersion. - */ - public java.lang.String getTargetVersion() { - java.lang.Object ref = targetVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - targetVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The target version for the upgrade.
-     * 
- * - * string target_version = 5; - * - * @return The bytes for targetVersion. - */ - public com.google.protobuf.ByteString getTargetVersionBytes() { - java.lang.Object ref = targetVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - targetVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The target version for the upgrade.
-     * 
- * - * string target_version = 5; - * - * @param value The targetVersion to set. - * @return This builder for chaining. - */ - public Builder setTargetVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - targetVersion_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * The target version for the upgrade.
-     * 
- * - * string target_version = 5; - * - * @return This builder for chaining. - */ - public Builder clearTargetVersion() { - targetVersion_ = getDefaultInstance().getTargetVersion(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * - * - *
-     * The target version for the upgrade.
-     * 
- * - * string target_version = 5; - * - * @param value The bytes for targetVersion to set. - * @return This builder for chaining. - */ - public Builder setTargetVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - targetVersion_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private java.lang.Object resource_ = ""; - /** - * - * - *
-     * Optional relative path to the resource. For example in node pool upgrades,
-     * the relative path of the node pool.
-     * 
- * - * string resource = 6; - * - * @return The resource. - */ - public java.lang.String getResource() { - java.lang.Object ref = resource_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resource_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional relative path to the resource. For example in node pool upgrades,
-     * the relative path of the node pool.
-     * 
- * - * string resource = 6; - * - * @return The bytes for resource. - */ - public com.google.protobuf.ByteString getResourceBytes() { - java.lang.Object ref = resource_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - resource_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional relative path to the resource. For example in node pool upgrades,
-     * the relative path of the node pool.
-     * 
- * - * string resource = 6; - * - * @param value The resource to set. - * @return This builder for chaining. - */ - public Builder setResource(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional relative path to the resource. For example in node pool upgrades,
-     * the relative path of the node pool.
-     * 
- * - * string resource = 6; - * - * @return This builder for chaining. - */ - public Builder clearResource() { - resource_ = getDefaultInstance().getResource(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional relative path to the resource. For example in node pool upgrades,
-     * the relative path of the node pool.
-     * 
- * - * string resource = 6; - * - * @param value The bytes for resource to set. - * @return This builder for chaining. - */ - public Builder setResourceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - resource_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.UpgradeEvent) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.UpgradeEvent) - private static final com.google.container.v1.UpgradeEvent DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.UpgradeEvent(); - } - - public static com.google.container.v1.UpgradeEvent getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpgradeEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.UpgradeEvent getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeEventOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeEventOrBuilder.java deleted file mode 100644 index f01e477c9215..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeEventOrBuilder.java +++ /dev/null @@ -1,188 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface UpgradeEventOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.UpgradeEvent) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The resource type that is upgrading.
-   * 
- * - * .google.container.v1.UpgradeResourceType resource_type = 1; - * - * @return The enum numeric value on the wire for resourceType. - */ - int getResourceTypeValue(); - /** - * - * - *
-   * The resource type that is upgrading.
-   * 
- * - * .google.container.v1.UpgradeResourceType resource_type = 1; - * - * @return The resourceType. - */ - com.google.container.v1.UpgradeResourceType getResourceType(); - - /** - * - * - *
-   * The operation associated with this upgrade.
-   * 
- * - * string operation = 2; - * - * @return The operation. - */ - java.lang.String getOperation(); - /** - * - * - *
-   * The operation associated with this upgrade.
-   * 
- * - * string operation = 2; - * - * @return The bytes for operation. - */ - com.google.protobuf.ByteString getOperationBytes(); - - /** - * - * - *
-   * The time when the operation was started.
-   * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - * - * @return Whether the operationStartTime field is set. - */ - boolean hasOperationStartTime(); - /** - * - * - *
-   * The time when the operation was started.
-   * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - * - * @return The operationStartTime. - */ - com.google.protobuf.Timestamp getOperationStartTime(); - /** - * - * - *
-   * The time when the operation was started.
-   * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - */ - com.google.protobuf.TimestampOrBuilder getOperationStartTimeOrBuilder(); - - /** - * - * - *
-   * The current version before the upgrade.
-   * 
- * - * string current_version = 4; - * - * @return The currentVersion. - */ - java.lang.String getCurrentVersion(); - /** - * - * - *
-   * The current version before the upgrade.
-   * 
- * - * string current_version = 4; - * - * @return The bytes for currentVersion. - */ - com.google.protobuf.ByteString getCurrentVersionBytes(); - - /** - * - * - *
-   * The target version for the upgrade.
-   * 
- * - * string target_version = 5; - * - * @return The targetVersion. - */ - java.lang.String getTargetVersion(); - /** - * - * - *
-   * The target version for the upgrade.
-   * 
- * - * string target_version = 5; - * - * @return The bytes for targetVersion. - */ - com.google.protobuf.ByteString getTargetVersionBytes(); - - /** - * - * - *
-   * Optional relative path to the resource. For example in node pool upgrades,
-   * the relative path of the node pool.
-   * 
- * - * string resource = 6; - * - * @return The resource. - */ - java.lang.String getResource(); - /** - * - * - *
-   * Optional relative path to the resource. For example in node pool upgrades,
-   * the relative path of the node pool.
-   * 
- * - * string resource = 6; - * - * @return The bytes for resource. - */ - com.google.protobuf.ByteString getResourceBytes(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeResourceType.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeResourceType.java deleted file mode 100644 index 57fee0faf8dc..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeResourceType.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * UpgradeResourceType is the resource type that is upgrading. It is used
- * in upgrade notifications.
- * 
- * - * Protobuf enum {@code google.container.v1.UpgradeResourceType} - */ -public enum UpgradeResourceType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Default value. This shouldn't be used.
-   * 
- * - * UPGRADE_RESOURCE_TYPE_UNSPECIFIED = 0; - */ - UPGRADE_RESOURCE_TYPE_UNSPECIFIED(0), - /** - * - * - *
-   * Master / control plane
-   * 
- * - * MASTER = 1; - */ - MASTER(1), - /** - * - * - *
-   * Node pool
-   * 
- * - * NODE_POOL = 2; - */ - NODE_POOL(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * Default value. This shouldn't be used.
-   * 
- * - * UPGRADE_RESOURCE_TYPE_UNSPECIFIED = 0; - */ - public static final int UPGRADE_RESOURCE_TYPE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * Master / control plane
-   * 
- * - * MASTER = 1; - */ - public static final int MASTER_VALUE = 1; - /** - * - * - *
-   * Node pool
-   * 
- * - * NODE_POOL = 2; - */ - public static final int NODE_POOL_VALUE = 2; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static UpgradeResourceType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static UpgradeResourceType forNumber(int value) { - switch (value) { - case 0: - return UPGRADE_RESOURCE_TYPE_UNSPECIFIED; - case 1: - return MASTER; - case 2: - return NODE_POOL; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public UpgradeResourceType findValueByNumber(int number) { - return UpgradeResourceType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto.getDescriptor().getEnumTypes().get(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.v1.UpgradeResourceType) -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetwork.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetwork.java deleted file mode 100644 index 7a5391baa9bd..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetwork.java +++ /dev/null @@ -1,1741 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * UsableSubnetwork resource returns the subnetwork name, its associated network
- * and the primary CIDR range.
- * 
- * - * Protobuf type {@code google.container.v1.UsableSubnetwork} - */ -public final class UsableSubnetwork extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UsableSubnetwork_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UsableSubnetwork_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.UsableSubnetwork.class, - com.google.container.v1.UsableSubnetwork.Builder.class); - } - - public static final int SUBNETWORK_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - private java.util.List secondaryIpRanges_; - /** - * - * - *
-   * Secondary IP ranges.
-   * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - @java.lang.Override - public java.util.List - getSecondaryIpRangesList() { - return secondaryIpRanges_; - } - /** - * - * - *
-   * Secondary IP ranges.
-   * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - @java.lang.Override - public java.util.List - getSecondaryIpRangesOrBuilderList() { - return secondaryIpRanges_; - } - /** - * - * - *
-   * Secondary IP ranges.
-   * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - @java.lang.Override - public int getSecondaryIpRangesCount() { - return secondaryIpRanges_.size(); - } - /** - * - * - *
-   * Secondary IP ranges.
-   * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - @java.lang.Override - public com.google.container.v1.UsableSubnetworkSecondaryRange getSecondaryIpRanges(int index) { - return secondaryIpRanges_.get(index); - } - /** - * - * - *
-   * Secondary IP ranges.
-   * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - @java.lang.Override - public com.google.container.v1.UsableSubnetworkSecondaryRangeOrBuilder - getSecondaryIpRangesOrBuilder(int index) { - return secondaryIpRanges_.get(index); - } - - public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subnetwork_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, network_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipCidrRange_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ipCidrRange_); - } - for (int i = 0; i < secondaryIpRanges_.size(); i++) { - output.writeMessage(4, secondaryIpRanges_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusMessage_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subnetwork_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, network_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipCidrRange_)) { - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.UsableSubnetwork)) { - return super.equals(obj); - } - com.google.container.v1.UsableSubnetwork other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.UsableSubnetwork parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.UsableSubnetwork parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.UsableSubnetwork parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.UsableSubnetwork parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.UsableSubnetwork parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.UsableSubnetwork parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.UsableSubnetwork parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.UsableSubnetwork} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.UsableSubnetwork) - com.google.container.v1.UsableSubnetworkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UsableSubnetwork_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UsableSubnetwork_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.UsableSubnetwork.class, - com.google.container.v1.UsableSubnetwork.Builder.class); - } - - // Construct using com.google.container.v1.UsableSubnetwork.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - subnetwork_ = ""; - network_ = ""; - ipCidrRange_ = ""; - if (secondaryIpRangesBuilder_ == null) { - secondaryIpRanges_ = java.util.Collections.emptyList(); - } else { - secondaryIpRanges_ = null; - secondaryIpRangesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - statusMessage_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UsableSubnetwork_descriptor; - } - - @java.lang.Override - public com.google.container.v1.UsableSubnetwork getDefaultInstanceForType() { - return com.google.container.v1.UsableSubnetwork.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.UsableSubnetwork build() { - com.google.container.v1.UsableSubnetwork result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.UsableSubnetwork buildPartial() { - com.google.container.v1.UsableSubnetwork result = - new com.google.container.v1.UsableSubnetwork(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.container.v1.UsableSubnetwork result) { - if (secondaryIpRangesBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - secondaryIpRanges_ = java.util.Collections.unmodifiableList(secondaryIpRanges_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.secondaryIpRanges_ = secondaryIpRanges_; - } else { - result.secondaryIpRanges_ = secondaryIpRangesBuilder_.build(); - } - } - - private void buildPartial0(com.google.container.v1.UsableSubnetwork result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.subnetwork_ = subnetwork_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.network_ = network_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.ipCidrRange_ = ipCidrRange_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.statusMessage_ = statusMessage_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.UsableSubnetwork) { - return mergeFrom((com.google.container.v1.UsableSubnetwork) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.UsableSubnetwork other) { - if (other == com.google.container.v1.UsableSubnetwork.getDefaultInstance()) return this; - if (!other.getSubnetwork().isEmpty()) { - subnetwork_ = other.subnetwork_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getNetwork().isEmpty()) { - network_ = other.network_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getIpCidrRange().isEmpty()) { - ipCidrRange_ = other.ipCidrRange_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (secondaryIpRangesBuilder_ == null) { - if (!other.secondaryIpRanges_.isEmpty()) { - if (secondaryIpRanges_.isEmpty()) { - secondaryIpRanges_ = other.secondaryIpRanges_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureSecondaryIpRangesIsMutable(); - secondaryIpRanges_.addAll(other.secondaryIpRanges_); - } - onChanged(); - } - } else { - if (!other.secondaryIpRanges_.isEmpty()) { - if (secondaryIpRangesBuilder_.isEmpty()) { - secondaryIpRangesBuilder_.dispose(); - secondaryIpRangesBuilder_ = null; - secondaryIpRanges_ = other.secondaryIpRanges_; - bitField0_ = (bitField0_ & ~0x00000008); - secondaryIpRangesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSecondaryIpRangesFieldBuilder() - : null; - } else { - secondaryIpRangesBuilder_.addAllMessages(other.secondaryIpRanges_); - } - } - } - if (!other.getStatusMessage().isEmpty()) { - statusMessage_ = other.statusMessage_; - bitField0_ |= 0x00000010; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - subnetwork_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - network_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - ipCidrRange_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - com.google.container.v1.UsableSubnetworkSecondaryRange m = - input.readMessage( - com.google.container.v1.UsableSubnetworkSecondaryRange.parser(), - extensionRegistry); - if (secondaryIpRangesBuilder_ == null) { - ensureSecondaryIpRangesIsMutable(); - secondaryIpRanges_.add(m); - } else { - secondaryIpRangesBuilder_.addMessage(m); - } - break; - } // case 34 - case 42: - { - statusMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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; - bitField0_ |= 0x00000001; - 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(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - 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; - bitField0_ |= 0x00000002; - 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(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - 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; - bitField0_ |= 0x00000004; - 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(); - bitField0_ = (bitField0_ & ~0x00000004); - 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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.util.List - secondaryIpRanges_ = java.util.Collections.emptyList(); - - private void ensureSecondaryIpRangesIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - secondaryIpRanges_ = - new java.util.ArrayList( - secondaryIpRanges_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.UsableSubnetworkSecondaryRange, - com.google.container.v1.UsableSubnetworkSecondaryRange.Builder, - com.google.container.v1.UsableSubnetworkSecondaryRangeOrBuilder> - secondaryIpRangesBuilder_; - - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1.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.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public int getSecondaryIpRangesCount() { - if (secondaryIpRangesBuilder_ == null) { - return secondaryIpRanges_.size(); - } else { - return secondaryIpRangesBuilder_.getCount(); - } - } - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public com.google.container.v1.UsableSubnetworkSecondaryRange getSecondaryIpRanges(int index) { - if (secondaryIpRangesBuilder_ == null) { - return secondaryIpRanges_.get(index); - } else { - return secondaryIpRangesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public Builder setSecondaryIpRanges( - int index, com.google.container.v1.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.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public Builder setSecondaryIpRanges( - int index, com.google.container.v1.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.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public Builder addSecondaryIpRanges( - com.google.container.v1.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.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public Builder addSecondaryIpRanges( - int index, com.google.container.v1.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.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public Builder addSecondaryIpRanges( - com.google.container.v1.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.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public Builder addSecondaryIpRanges( - int index, com.google.container.v1.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.v1.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.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public Builder clearSecondaryIpRanges() { - if (secondaryIpRangesBuilder_ == null) { - secondaryIpRanges_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - secondaryIpRangesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1.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.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public com.google.container.v1.UsableSubnetworkSecondaryRange.Builder - getSecondaryIpRangesBuilder(int index) { - return getSecondaryIpRangesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public com.google.container.v1.UsableSubnetworkSecondaryRangeOrBuilder - getSecondaryIpRangesOrBuilder(int index) { - if (secondaryIpRangesBuilder_ == null) { - return secondaryIpRanges_.get(index); - } else { - return secondaryIpRangesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public java.util.List - getSecondaryIpRangesOrBuilderList() { - if (secondaryIpRangesBuilder_ != null) { - return secondaryIpRangesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(secondaryIpRanges_); - } - } - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public com.google.container.v1.UsableSubnetworkSecondaryRange.Builder - addSecondaryIpRangesBuilder() { - return getSecondaryIpRangesFieldBuilder() - .addBuilder(com.google.container.v1.UsableSubnetworkSecondaryRange.getDefaultInstance()); - } - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public com.google.container.v1.UsableSubnetworkSecondaryRange.Builder - addSecondaryIpRangesBuilder(int index) { - return getSecondaryIpRangesFieldBuilder() - .addBuilder( - index, com.google.container.v1.UsableSubnetworkSecondaryRange.getDefaultInstance()); - } - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public java.util.List - getSecondaryIpRangesBuilderList() { - return getSecondaryIpRangesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.UsableSubnetworkSecondaryRange, - com.google.container.v1.UsableSubnetworkSecondaryRange.Builder, - com.google.container.v1.UsableSubnetworkSecondaryRangeOrBuilder> - getSecondaryIpRangesFieldBuilder() { - if (secondaryIpRangesBuilder_ == null) { - secondaryIpRangesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.UsableSubnetworkSecondaryRange, - com.google.container.v1.UsableSubnetworkSecondaryRange.Builder, - com.google.container.v1.UsableSubnetworkSecondaryRangeOrBuilder>( - secondaryIpRanges_, - ((bitField0_ & 0x00000008) != 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; - bitField0_ |= 0x00000010; - 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(); - bitField0_ = (bitField0_ & ~0x00000010); - 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; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.UsableSubnetwork) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.UsableSubnetwork) - private static final com.google.container.v1.UsableSubnetwork DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.UsableSubnetwork(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.UsableSubnetwork getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkOrBuilder.java deleted file mode 100644 index a59a0232fb44..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkOrBuilder.java +++ /dev/null @@ -1,194 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface UsableSubnetworkOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.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.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - java.util.List getSecondaryIpRangesList(); - /** - * - * - *
-   * Secondary IP ranges.
-   * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - com.google.container.v1.UsableSubnetworkSecondaryRange getSecondaryIpRanges(int index); - /** - * - * - *
-   * Secondary IP ranges.
-   * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - int getSecondaryIpRangesCount(); - /** - * - * - *
-   * Secondary IP ranges.
-   * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - java.util.List - getSecondaryIpRangesOrBuilderList(); - /** - * - * - *
-   * Secondary IP ranges.
-   * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - com.google.container.v1.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/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkSecondaryRange.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkSecondaryRange.java deleted file mode 100644 index eb2419f38861..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkSecondaryRange.java +++ /dev/null @@ -1,1183 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Secondary IP range of a usable subnetwork.
- * 
- * - * Protobuf type {@code google.container.v1.UsableSubnetworkSecondaryRange} - */ -public final class UsableSubnetworkSecondaryRange extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UsableSubnetworkSecondaryRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UsableSubnetworkSecondaryRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.UsableSubnetworkSecondaryRange.class, - com.google.container.v1.UsableSubnetworkSecondaryRange.Builder.class); - } - - /** - * - * - *
-   * Status shows the current usage of a secondary IP range.
-   * 
- * - * Protobuf enum {@code google.container.v1.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 cluster(s) for
-     * services. User-managed services range can be shared between clusters
-     * within the same subnetwork.
-     * 
- * - * 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 cluster(s) for
-     * services. User-managed services range can be shared between clusters
-     * within the same subnetwork.
-     * 
- * - * 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.v1.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.v1.UsableSubnetworkSecondaryRange.Status) - } - - public static final int RANGE_NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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_ = 0; - /** - * - * - *
-   * This field is to determine the status of the secondary range programmably.
-   * 
- * - * .google.container.v1.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.v1.UsableSubnetworkSecondaryRange.Status status = 3; - * - * @return The status. - */ - @java.lang.Override - public com.google.container.v1.UsableSubnetworkSecondaryRange.Status getStatus() { - com.google.container.v1.UsableSubnetworkSecondaryRange.Status result = - com.google.container.v1.UsableSubnetworkSecondaryRange.Status.forNumber(status_); - return result == null - ? com.google.container.v1.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rangeName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, rangeName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipCidrRange_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ipCidrRange_); - } - if (status_ - != com.google.container.v1.UsableSubnetworkSecondaryRange.Status.UNKNOWN.getNumber()) { - output.writeEnum(3, status_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rangeName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, rangeName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipCidrRange_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ipCidrRange_); - } - if (status_ - != com.google.container.v1.UsableSubnetworkSecondaryRange.Status.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, status_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.UsableSubnetworkSecondaryRange)) { - return super.equals(obj); - } - com.google.container.v1.UsableSubnetworkSecondaryRange other = - (com.google.container.v1.UsableSubnetworkSecondaryRange) obj; - - if (!getRangeName().equals(other.getRangeName())) return false; - if (!getIpCidrRange().equals(other.getIpCidrRange())) return false; - if (status_ != other.status_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.UsableSubnetworkSecondaryRange parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.UsableSubnetworkSecondaryRange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.UsableSubnetworkSecondaryRange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.UsableSubnetworkSecondaryRange parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.UsableSubnetworkSecondaryRange parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.UsableSubnetworkSecondaryRange parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.UsableSubnetworkSecondaryRange parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.UsableSubnetworkSecondaryRange} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.UsableSubnetworkSecondaryRange) - com.google.container.v1.UsableSubnetworkSecondaryRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UsableSubnetworkSecondaryRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UsableSubnetworkSecondaryRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.UsableSubnetworkSecondaryRange.class, - com.google.container.v1.UsableSubnetworkSecondaryRange.Builder.class); - } - - // Construct using com.google.container.v1.UsableSubnetworkSecondaryRange.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - rangeName_ = ""; - ipCidrRange_ = ""; - status_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UsableSubnetworkSecondaryRange_descriptor; - } - - @java.lang.Override - public com.google.container.v1.UsableSubnetworkSecondaryRange getDefaultInstanceForType() { - return com.google.container.v1.UsableSubnetworkSecondaryRange.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.UsableSubnetworkSecondaryRange build() { - com.google.container.v1.UsableSubnetworkSecondaryRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.UsableSubnetworkSecondaryRange buildPartial() { - com.google.container.v1.UsableSubnetworkSecondaryRange result = - new com.google.container.v1.UsableSubnetworkSecondaryRange(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.UsableSubnetworkSecondaryRange result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.rangeName_ = rangeName_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.ipCidrRange_ = ipCidrRange_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.status_ = status_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.UsableSubnetworkSecondaryRange) { - return mergeFrom((com.google.container.v1.UsableSubnetworkSecondaryRange) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.UsableSubnetworkSecondaryRange other) { - if (other == com.google.container.v1.UsableSubnetworkSecondaryRange.getDefaultInstance()) - return this; - if (!other.getRangeName().isEmpty()) { - rangeName_ = other.rangeName_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getIpCidrRange().isEmpty()) { - ipCidrRange_ = other.ipCidrRange_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - rangeName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - ipCidrRange_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - status_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - 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; - bitField0_ |= 0x00000002; - 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(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private int status_ = 0; - /** - * - * - *
-     * This field is to determine the status of the secondary range programmably.
-     * 
- * - * .google.container.v1.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.v1.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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * This field is to determine the status of the secondary range programmably.
-     * 
- * - * .google.container.v1.UsableSubnetworkSecondaryRange.Status status = 3; - * - * @return The status. - */ - @java.lang.Override - public com.google.container.v1.UsableSubnetworkSecondaryRange.Status getStatus() { - com.google.container.v1.UsableSubnetworkSecondaryRange.Status result = - com.google.container.v1.UsableSubnetworkSecondaryRange.Status.forNumber(status_); - return result == null - ? com.google.container.v1.UsableSubnetworkSecondaryRange.Status.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * This field is to determine the status of the secondary range programmably.
-     * 
- * - * .google.container.v1.UsableSubnetworkSecondaryRange.Status status = 3; - * - * @param value The status to set. - * @return This builder for chaining. - */ - public Builder setStatus(com.google.container.v1.UsableSubnetworkSecondaryRange.Status value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - status_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * This field is to determine the status of the secondary range programmably.
-     * 
- * - * .google.container.v1.UsableSubnetworkSecondaryRange.Status status = 3; - * - * @return This builder for chaining. - */ - public Builder clearStatus() { - bitField0_ = (bitField0_ & ~0x00000004); - 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.v1.UsableSubnetworkSecondaryRange) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.UsableSubnetworkSecondaryRange) - private static final com.google.container.v1.UsableSubnetworkSecondaryRange DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.UsableSubnetworkSecondaryRange(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.UsableSubnetworkSecondaryRange getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkSecondaryRangeOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkSecondaryRangeOrBuilder.java deleted file mode 100644 index 971e2b3965d2..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkSecondaryRangeOrBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface UsableSubnetworkSecondaryRangeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.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.v1.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.v1.UsableSubnetworkSecondaryRange.Status status = 3; - * - * @return The status. - */ - com.google.container.v1.UsableSubnetworkSecondaryRange.Status getStatus(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VerticalPodAutoscaling.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VerticalPodAutoscaling.java deleted file mode 100644 index 2349d6ece5cb..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VerticalPodAutoscaling.java +++ /dev/null @@ -1,538 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * 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.v1.VerticalPodAutoscaling} - */ -public final class VerticalPodAutoscaling extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.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(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_VerticalPodAutoscaling_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_VerticalPodAutoscaling_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.VerticalPodAutoscaling.class, - com.google.container.v1.VerticalPodAutoscaling.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.VerticalPodAutoscaling)) { - return super.equals(obj); - } - com.google.container.v1.VerticalPodAutoscaling other = - (com.google.container.v1.VerticalPodAutoscaling) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.VerticalPodAutoscaling parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.VerticalPodAutoscaling parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.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.v1.VerticalPodAutoscaling parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.VerticalPodAutoscaling parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.VerticalPodAutoscaling parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.VerticalPodAutoscaling parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.VerticalPodAutoscaling parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.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.v1.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.v1.VerticalPodAutoscaling} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.VerticalPodAutoscaling) - com.google.container.v1.VerticalPodAutoscalingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_VerticalPodAutoscaling_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_VerticalPodAutoscaling_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.VerticalPodAutoscaling.class, - com.google.container.v1.VerticalPodAutoscaling.Builder.class); - } - - // Construct using com.google.container.v1.VerticalPodAutoscaling.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enabled_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_VerticalPodAutoscaling_descriptor; - } - - @java.lang.Override - public com.google.container.v1.VerticalPodAutoscaling getDefaultInstanceForType() { - return com.google.container.v1.VerticalPodAutoscaling.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.VerticalPodAutoscaling build() { - com.google.container.v1.VerticalPodAutoscaling result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.VerticalPodAutoscaling buildPartial() { - com.google.container.v1.VerticalPodAutoscaling result = - new com.google.container.v1.VerticalPodAutoscaling(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.VerticalPodAutoscaling result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.VerticalPodAutoscaling) { - return mergeFrom((com.google.container.v1.VerticalPodAutoscaling) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.VerticalPodAutoscaling other) { - if (other == com.google.container.v1.VerticalPodAutoscaling.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Enables vertical pod autoscaling.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - enabled_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.VerticalPodAutoscaling) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.VerticalPodAutoscaling) - private static final com.google.container.v1.VerticalPodAutoscaling DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.VerticalPodAutoscaling(); - } - - public static com.google.container.v1.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.VerticalPodAutoscaling getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VerticalPodAutoscalingOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VerticalPodAutoscalingOrBuilder.java deleted file mode 100644 index 74bae0b78fd1..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VerticalPodAutoscalingOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface VerticalPodAutoscalingOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.VerticalPodAutoscaling) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Enables vertical pod autoscaling.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VirtualNIC.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VirtualNIC.java deleted file mode 100644 index 649fab7f4cae..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VirtualNIC.java +++ /dev/null @@ -1,531 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Configuration of gVNIC feature.
- * 
- * - * Protobuf type {@code google.container.v1.VirtualNIC} - */ -public final class VirtualNIC extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.VirtualNIC) - VirtualNICOrBuilder { - private static final long serialVersionUID = 0L; - // Use VirtualNIC.newBuilder() to construct. - private VirtualNIC(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private VirtualNIC() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new VirtualNIC(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_VirtualNIC_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_VirtualNIC_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.VirtualNIC.class, - com.google.container.v1.VirtualNIC.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * Whether gVNIC features are enabled in the node pool.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.VirtualNIC)) { - return super.equals(obj); - } - com.google.container.v1.VirtualNIC other = (com.google.container.v1.VirtualNIC) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.VirtualNIC parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.VirtualNIC parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.VirtualNIC parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.VirtualNIC parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.VirtualNIC parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.VirtualNIC parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.VirtualNIC parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.VirtualNIC parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.VirtualNIC parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.VirtualNIC parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.VirtualNIC parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.VirtualNIC parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.VirtualNIC prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Configuration of gVNIC feature.
-   * 
- * - * Protobuf type {@code google.container.v1.VirtualNIC} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.VirtualNIC) - com.google.container.v1.VirtualNICOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_VirtualNIC_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_VirtualNIC_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.VirtualNIC.class, - com.google.container.v1.VirtualNIC.Builder.class); - } - - // Construct using com.google.container.v1.VirtualNIC.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enabled_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_VirtualNIC_descriptor; - } - - @java.lang.Override - public com.google.container.v1.VirtualNIC getDefaultInstanceForType() { - return com.google.container.v1.VirtualNIC.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.VirtualNIC build() { - com.google.container.v1.VirtualNIC result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.VirtualNIC buildPartial() { - com.google.container.v1.VirtualNIC result = new com.google.container.v1.VirtualNIC(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.VirtualNIC result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.VirtualNIC) { - return mergeFrom((com.google.container.v1.VirtualNIC) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.VirtualNIC other) { - if (other == com.google.container.v1.VirtualNIC.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean enabled_; - /** - * - * - *
-     * Whether gVNIC features are enabled in the node pool.
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Whether gVNIC features are enabled in the node pool.
-     * 
- * - * bool enabled = 1; - * - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether gVNIC features are enabled in the node pool.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - enabled_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.VirtualNIC) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.VirtualNIC) - private static final com.google.container.v1.VirtualNIC DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.VirtualNIC(); - } - - public static com.google.container.v1.VirtualNIC getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VirtualNIC parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.VirtualNIC getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VirtualNICOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VirtualNICOrBuilder.java deleted file mode 100644 index 3a033c59ef3b..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VirtualNICOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface VirtualNICOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.VirtualNIC) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether gVNIC features are enabled in the node pool.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WindowsNodeConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WindowsNodeConfig.java deleted file mode 100644 index 037a5bb45d8a..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WindowsNodeConfig.java +++ /dev/null @@ -1,757 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Parameters that can be configured on Windows nodes.
- * Windows Node Config that define the parameters that will be used to
- * configure the Windows node pool settings
- * 
- * - * Protobuf type {@code google.container.v1.WindowsNodeConfig} - */ -public final class WindowsNodeConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.WindowsNodeConfig) - WindowsNodeConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use WindowsNodeConfig.newBuilder() to construct. - private WindowsNodeConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private WindowsNodeConfig() { - osVersion_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new WindowsNodeConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_WindowsNodeConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_WindowsNodeConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.WindowsNodeConfig.class, - com.google.container.v1.WindowsNodeConfig.Builder.class); - } - - /** - * - * - *
-   * Possible OS version that can be used.
-   * 
- * - * Protobuf enum {@code google.container.v1.WindowsNodeConfig.OSVersion} - */ - public enum OSVersion implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * When OSVersion is not specified
-     * 
- * - * OS_VERSION_UNSPECIFIED = 0; - */ - OS_VERSION_UNSPECIFIED(0), - /** - * - * - *
-     * LTSC2019 specifies to use LTSC2019 as the Windows Servercore Base Image
-     * 
- * - * OS_VERSION_LTSC2019 = 1; - */ - OS_VERSION_LTSC2019(1), - /** - * - * - *
-     * LTSC2022 specifies to use LTSC2022 as the Windows Servercore Base Image
-     * 
- * - * OS_VERSION_LTSC2022 = 2; - */ - OS_VERSION_LTSC2022(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * When OSVersion is not specified
-     * 
- * - * OS_VERSION_UNSPECIFIED = 0; - */ - public static final int OS_VERSION_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * LTSC2019 specifies to use LTSC2019 as the Windows Servercore Base Image
-     * 
- * - * OS_VERSION_LTSC2019 = 1; - */ - public static final int OS_VERSION_LTSC2019_VALUE = 1; - /** - * - * - *
-     * LTSC2022 specifies to use LTSC2022 as the Windows Servercore Base Image
-     * 
- * - * OS_VERSION_LTSC2022 = 2; - */ - public static final int OS_VERSION_LTSC2022_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 OSVersion 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 OSVersion forNumber(int value) { - switch (value) { - case 0: - return OS_VERSION_UNSPECIFIED; - case 1: - return OS_VERSION_LTSC2019; - case 2: - return OS_VERSION_LTSC2022; - 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 OSVersion findValueByNumber(int number) { - return OSVersion.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.WindowsNodeConfig.getDescriptor().getEnumTypes().get(0); - } - - private static final OSVersion[] VALUES = values(); - - public static OSVersion 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 OSVersion(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.WindowsNodeConfig.OSVersion) - } - - public static final int OS_VERSION_FIELD_NUMBER = 1; - private int osVersion_ = 0; - /** - * - * - *
-   * OSVersion specifies the Windows node config to be used on the node
-   * 
- * - * .google.container.v1.WindowsNodeConfig.OSVersion os_version = 1; - * - * @return The enum numeric value on the wire for osVersion. - */ - @java.lang.Override - public int getOsVersionValue() { - return osVersion_; - } - /** - * - * - *
-   * OSVersion specifies the Windows node config to be used on the node
-   * 
- * - * .google.container.v1.WindowsNodeConfig.OSVersion os_version = 1; - * - * @return The osVersion. - */ - @java.lang.Override - public com.google.container.v1.WindowsNodeConfig.OSVersion getOsVersion() { - com.google.container.v1.WindowsNodeConfig.OSVersion result = - com.google.container.v1.WindowsNodeConfig.OSVersion.forNumber(osVersion_); - return result == null - ? com.google.container.v1.WindowsNodeConfig.OSVersion.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 (osVersion_ - != com.google.container.v1.WindowsNodeConfig.OSVersion.OS_VERSION_UNSPECIFIED.getNumber()) { - output.writeEnum(1, osVersion_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (osVersion_ - != com.google.container.v1.WindowsNodeConfig.OSVersion.OS_VERSION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, osVersion_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.WindowsNodeConfig)) { - return super.equals(obj); - } - com.google.container.v1.WindowsNodeConfig other = - (com.google.container.v1.WindowsNodeConfig) obj; - - if (osVersion_ != other.osVersion_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + OS_VERSION_FIELD_NUMBER; - hash = (53 * hash) + osVersion_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.WindowsNodeConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.WindowsNodeConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.WindowsNodeConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.WindowsNodeConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.WindowsNodeConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.WindowsNodeConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.WindowsNodeConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.WindowsNodeConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.WindowsNodeConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.WindowsNodeConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.WindowsNodeConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.WindowsNodeConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.WindowsNodeConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 Windows nodes.
-   * Windows Node Config that define the parameters that will be used to
-   * configure the Windows node pool settings
-   * 
- * - * Protobuf type {@code google.container.v1.WindowsNodeConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.WindowsNodeConfig) - com.google.container.v1.WindowsNodeConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_WindowsNodeConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_WindowsNodeConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.WindowsNodeConfig.class, - com.google.container.v1.WindowsNodeConfig.Builder.class); - } - - // Construct using com.google.container.v1.WindowsNodeConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - osVersion_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_WindowsNodeConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.WindowsNodeConfig getDefaultInstanceForType() { - return com.google.container.v1.WindowsNodeConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.WindowsNodeConfig build() { - com.google.container.v1.WindowsNodeConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.WindowsNodeConfig buildPartial() { - com.google.container.v1.WindowsNodeConfig result = - new com.google.container.v1.WindowsNodeConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.WindowsNodeConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.osVersion_ = osVersion_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.WindowsNodeConfig) { - return mergeFrom((com.google.container.v1.WindowsNodeConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.WindowsNodeConfig other) { - if (other == com.google.container.v1.WindowsNodeConfig.getDefaultInstance()) return this; - if (other.osVersion_ != 0) { - setOsVersionValue(other.getOsVersionValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - osVersion_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int osVersion_ = 0; - /** - * - * - *
-     * OSVersion specifies the Windows node config to be used on the node
-     * 
- * - * .google.container.v1.WindowsNodeConfig.OSVersion os_version = 1; - * - * @return The enum numeric value on the wire for osVersion. - */ - @java.lang.Override - public int getOsVersionValue() { - return osVersion_; - } - /** - * - * - *
-     * OSVersion specifies the Windows node config to be used on the node
-     * 
- * - * .google.container.v1.WindowsNodeConfig.OSVersion os_version = 1; - * - * @param value The enum numeric value on the wire for osVersion to set. - * @return This builder for chaining. - */ - public Builder setOsVersionValue(int value) { - osVersion_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * OSVersion specifies the Windows node config to be used on the node
-     * 
- * - * .google.container.v1.WindowsNodeConfig.OSVersion os_version = 1; - * - * @return The osVersion. - */ - @java.lang.Override - public com.google.container.v1.WindowsNodeConfig.OSVersion getOsVersion() { - com.google.container.v1.WindowsNodeConfig.OSVersion result = - com.google.container.v1.WindowsNodeConfig.OSVersion.forNumber(osVersion_); - return result == null - ? com.google.container.v1.WindowsNodeConfig.OSVersion.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * OSVersion specifies the Windows node config to be used on the node
-     * 
- * - * .google.container.v1.WindowsNodeConfig.OSVersion os_version = 1; - * - * @param value The osVersion to set. - * @return This builder for chaining. - */ - public Builder setOsVersion(com.google.container.v1.WindowsNodeConfig.OSVersion value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - osVersion_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * OSVersion specifies the Windows node config to be used on the node
-     * 
- * - * .google.container.v1.WindowsNodeConfig.OSVersion os_version = 1; - * - * @return This builder for chaining. - */ - public Builder clearOsVersion() { - bitField0_ = (bitField0_ & ~0x00000001); - osVersion_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.WindowsNodeConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.WindowsNodeConfig) - private static final com.google.container.v1.WindowsNodeConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.WindowsNodeConfig(); - } - - public static com.google.container.v1.WindowsNodeConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WindowsNodeConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.WindowsNodeConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WindowsNodeConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WindowsNodeConfigOrBuilder.java deleted file mode 100644 index 827727800139..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WindowsNodeConfigOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface WindowsNodeConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.WindowsNodeConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * OSVersion specifies the Windows node config to be used on the node
-   * 
- * - * .google.container.v1.WindowsNodeConfig.OSVersion os_version = 1; - * - * @return The enum numeric value on the wire for osVersion. - */ - int getOsVersionValue(); - /** - * - * - *
-   * OSVersion specifies the Windows node config to be used on the node
-   * 
- * - * .google.container.v1.WindowsNodeConfig.OSVersion os_version = 1; - * - * @return The osVersion. - */ - com.google.container.v1.WindowsNodeConfig.OSVersion getOsVersion(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadIdentityConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadIdentityConfig.java deleted file mode 100644 index 022097aaa069..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadIdentityConfig.java +++ /dev/null @@ -1,626 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * Configuration for the use of Kubernetes Service Accounts in GCP IAM
- * policies.
- * 
- * - * Protobuf type {@code google.container.v1.WorkloadIdentityConfig} - */ -public final class WorkloadIdentityConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.WorkloadIdentityConfig) - WorkloadIdentityConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkloadIdentityConfig.newBuilder() to construct. - private WorkloadIdentityConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private WorkloadIdentityConfig() { - workloadPool_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new WorkloadIdentityConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_WorkloadIdentityConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_WorkloadIdentityConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.WorkloadIdentityConfig.class, - com.google.container.v1.WorkloadIdentityConfig.Builder.class); - } - - public static final int WORKLOAD_POOL_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object workloadPool_ = ""; - /** - * - * - *
-   * The workload pool to attach all Kubernetes service accounts to.
-   * 
- * - * string workload_pool = 2; - * - * @return The workloadPool. - */ - @java.lang.Override - public java.lang.String getWorkloadPool() { - java.lang.Object ref = workloadPool_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workloadPool_ = s; - return s; - } - } - /** - * - * - *
-   * The workload pool to attach all Kubernetes service accounts to.
-   * 
- * - * string workload_pool = 2; - * - * @return The bytes for workloadPool. - */ - @java.lang.Override - public com.google.protobuf.ByteString getWorkloadPoolBytes() { - java.lang.Object ref = workloadPool_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - workloadPool_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workloadPool_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, workloadPool_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workloadPool_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, workloadPool_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.WorkloadIdentityConfig)) { - return super.equals(obj); - } - com.google.container.v1.WorkloadIdentityConfig other = - (com.google.container.v1.WorkloadIdentityConfig) obj; - - if (!getWorkloadPool().equals(other.getWorkloadPool())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + WORKLOAD_POOL_FIELD_NUMBER; - hash = (53 * hash) + getWorkloadPool().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.WorkloadIdentityConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.WorkloadIdentityConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.WorkloadIdentityConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.WorkloadIdentityConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.WorkloadIdentityConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.WorkloadIdentityConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.WorkloadIdentityConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.WorkloadIdentityConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.WorkloadIdentityConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.WorkloadIdentityConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.WorkloadIdentityConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.WorkloadIdentityConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.WorkloadIdentityConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-   * policies.
-   * 
- * - * Protobuf type {@code google.container.v1.WorkloadIdentityConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.WorkloadIdentityConfig) - com.google.container.v1.WorkloadIdentityConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_WorkloadIdentityConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_WorkloadIdentityConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.WorkloadIdentityConfig.class, - com.google.container.v1.WorkloadIdentityConfig.Builder.class); - } - - // Construct using com.google.container.v1.WorkloadIdentityConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - workloadPool_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_WorkloadIdentityConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.WorkloadIdentityConfig getDefaultInstanceForType() { - return com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.WorkloadIdentityConfig build() { - com.google.container.v1.WorkloadIdentityConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.WorkloadIdentityConfig buildPartial() { - com.google.container.v1.WorkloadIdentityConfig result = - new com.google.container.v1.WorkloadIdentityConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.WorkloadIdentityConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.workloadPool_ = workloadPool_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.WorkloadIdentityConfig) { - return mergeFrom((com.google.container.v1.WorkloadIdentityConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.WorkloadIdentityConfig other) { - if (other == com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance()) return this; - if (!other.getWorkloadPool().isEmpty()) { - workloadPool_ = other.workloadPool_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: - { - workloadPool_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.WorkloadIdentityConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.WorkloadIdentityConfig) - private static final com.google.container.v1.WorkloadIdentityConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.WorkloadIdentityConfig(); - } - - public static com.google.container.v1.WorkloadIdentityConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkloadIdentityConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.WorkloadIdentityConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadIdentityConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadIdentityConfigOrBuilder.java deleted file mode 100644 index 75cc8786d080..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadIdentityConfigOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface WorkloadIdentityConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.WorkloadIdentityConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The workload pool to attach all Kubernetes service accounts to.
-   * 
- * - * string workload_pool = 2; - * - * @return The workloadPool. - */ - java.lang.String getWorkloadPool(); - /** - * - * - *
-   * The workload pool to attach all Kubernetes service accounts to.
-   * 
- * - * string workload_pool = 2; - * - * @return The bytes for workloadPool. - */ - com.google.protobuf.ByteString getWorkloadPoolBytes(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadMetadataConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadMetadataConfig.java deleted file mode 100644 index c57b86adf888..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadMetadataConfig.java +++ /dev/null @@ -1,769 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * WorkloadMetadataConfig defines the metadata configuration to expose to
- * workloads on the node pool.
- * 
- * - * Protobuf type {@code google.container.v1.WorkloadMetadataConfig} - */ -public final class WorkloadMetadataConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.WorkloadMetadataConfig) - WorkloadMetadataConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkloadMetadataConfig.newBuilder() to construct. - private WorkloadMetadataConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private WorkloadMetadataConfig() { - mode_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new WorkloadMetadataConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_WorkloadMetadataConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_WorkloadMetadataConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.WorkloadMetadataConfig.class, - com.google.container.v1.WorkloadMetadataConfig.Builder.class); - } - - /** - * - * - *
-   * Mode is the configuration for how to expose metadata to workloads running
-   * on the node.
-   * 
- * - * Protobuf enum {@code google.container.v1.WorkloadMetadataConfig.Mode} - */ - public enum Mode implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Not set.
-     * 
- * - * MODE_UNSPECIFIED = 0; - */ - MODE_UNSPECIFIED(0), - /** - * - * - *
-     * Expose all Compute Engine metadata to pods.
-     * 
- * - * GCE_METADATA = 1; - */ - GCE_METADATA(1), - /** - * - * - *
-     * Run the GKE Metadata Server on this node. The GKE Metadata Server exposes
-     * a metadata API to workloads that is compatible with the V1 Compute
-     * Metadata APIs exposed by the Compute Engine and App Engine Metadata
-     * Servers. This feature can only be enabled if Workload Identity is enabled
-     * at the cluster level.
-     * 
- * - * GKE_METADATA = 2; - */ - GKE_METADATA(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Not set.
-     * 
- * - * MODE_UNSPECIFIED = 0; - */ - public static final int MODE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Expose all Compute Engine metadata to pods.
-     * 
- * - * GCE_METADATA = 1; - */ - public static final int GCE_METADATA_VALUE = 1; - /** - * - * - *
-     * Run the GKE Metadata Server on this node. The GKE Metadata Server exposes
-     * a metadata API to workloads that is compatible with the V1 Compute
-     * Metadata APIs exposed by the Compute Engine and App Engine Metadata
-     * Servers. This feature can only be enabled if Workload Identity is enabled
-     * at the cluster level.
-     * 
- * - * GKE_METADATA = 2; - */ - public static final int GKE_METADATA_VALUE = 2; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Mode valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Mode forNumber(int value) { - switch (value) { - case 0: - return MODE_UNSPECIFIED; - case 1: - return GCE_METADATA; - case 2: - return GKE_METADATA; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Mode findValueByNumber(int number) { - return Mode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.WorkloadMetadataConfig.getDescriptor().getEnumTypes().get(0); - } - - private static final Mode[] VALUES = values(); - - public static Mode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Mode(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.WorkloadMetadataConfig.Mode) - } - - public static final int MODE_FIELD_NUMBER = 2; - private int mode_ = 0; - /** - * - * - *
-   * Mode is the configuration for how to expose metadata to workloads running
-   * on the node pool.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; - * - * @return The enum numeric value on the wire for mode. - */ - @java.lang.Override - public int getModeValue() { - return mode_; - } - /** - * - * - *
-   * Mode is the configuration for how to expose metadata to workloads running
-   * on the node pool.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; - * - * @return The mode. - */ - @java.lang.Override - public com.google.container.v1.WorkloadMetadataConfig.Mode getMode() { - com.google.container.v1.WorkloadMetadataConfig.Mode result = - com.google.container.v1.WorkloadMetadataConfig.Mode.forNumber(mode_); - return result == null - ? com.google.container.v1.WorkloadMetadataConfig.Mode.UNRECOGNIZED - : result; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (mode_ != com.google.container.v1.WorkloadMetadataConfig.Mode.MODE_UNSPECIFIED.getNumber()) { - output.writeEnum(2, mode_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (mode_ != com.google.container.v1.WorkloadMetadataConfig.Mode.MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, mode_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.WorkloadMetadataConfig)) { - return super.equals(obj); - } - com.google.container.v1.WorkloadMetadataConfig other = - (com.google.container.v1.WorkloadMetadataConfig) obj; - - if (mode_ != other.mode_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MODE_FIELD_NUMBER; - hash = (53 * hash) + mode_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.WorkloadMetadataConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.WorkloadMetadataConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.WorkloadMetadataConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.WorkloadMetadataConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.WorkloadMetadataConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.WorkloadMetadataConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.WorkloadMetadataConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.WorkloadMetadataConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.WorkloadMetadataConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.WorkloadMetadataConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.WorkloadMetadataConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.WorkloadMetadataConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.WorkloadMetadataConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * WorkloadMetadataConfig defines the metadata configuration to expose to
-   * workloads on the node pool.
-   * 
- * - * Protobuf type {@code google.container.v1.WorkloadMetadataConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.WorkloadMetadataConfig) - com.google.container.v1.WorkloadMetadataConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_WorkloadMetadataConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_WorkloadMetadataConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.WorkloadMetadataConfig.class, - com.google.container.v1.WorkloadMetadataConfig.Builder.class); - } - - // Construct using com.google.container.v1.WorkloadMetadataConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - mode_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_WorkloadMetadataConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.WorkloadMetadataConfig getDefaultInstanceForType() { - return com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.WorkloadMetadataConfig build() { - com.google.container.v1.WorkloadMetadataConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.WorkloadMetadataConfig buildPartial() { - com.google.container.v1.WorkloadMetadataConfig result = - new com.google.container.v1.WorkloadMetadataConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.WorkloadMetadataConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.mode_ = mode_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.WorkloadMetadataConfig) { - return mergeFrom((com.google.container.v1.WorkloadMetadataConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.WorkloadMetadataConfig other) { - if (other == com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance()) return this; - if (other.mode_ != 0) { - setModeValue(other.getModeValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 16: - { - mode_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int mode_ = 0; - /** - * - * - *
-     * Mode is the configuration for how to expose metadata to workloads running
-     * on the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; - * - * @return The enum numeric value on the wire for mode. - */ - @java.lang.Override - public int getModeValue() { - return mode_; - } - /** - * - * - *
-     * Mode is the configuration for how to expose metadata to workloads running
-     * on the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; - * - * @param value The enum numeric value on the wire for mode to set. - * @return This builder for chaining. - */ - public Builder setModeValue(int value) { - mode_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Mode is the configuration for how to expose metadata to workloads running
-     * on the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; - * - * @return The mode. - */ - @java.lang.Override - public com.google.container.v1.WorkloadMetadataConfig.Mode getMode() { - com.google.container.v1.WorkloadMetadataConfig.Mode result = - com.google.container.v1.WorkloadMetadataConfig.Mode.forNumber(mode_); - return result == null - ? com.google.container.v1.WorkloadMetadataConfig.Mode.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Mode is the configuration for how to expose metadata to workloads running
-     * on the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; - * - * @param value The mode to set. - * @return This builder for chaining. - */ - public Builder setMode(com.google.container.v1.WorkloadMetadataConfig.Mode value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - mode_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Mode is the configuration for how to expose metadata to workloads running
-     * on the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; - * - * @return This builder for chaining. - */ - public Builder clearMode() { - bitField0_ = (bitField0_ & ~0x00000001); - mode_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.WorkloadMetadataConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.WorkloadMetadataConfig) - private static final com.google.container.v1.WorkloadMetadataConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.WorkloadMetadataConfig(); - } - - public static com.google.container.v1.WorkloadMetadataConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkloadMetadataConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.WorkloadMetadataConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadMetadataConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadMetadataConfigOrBuilder.java deleted file mode 100644 index 444eb73bc3c4..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadMetadataConfigOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface WorkloadMetadataConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.WorkloadMetadataConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Mode is the configuration for how to expose metadata to workloads running
-   * on the node pool.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; - * - * @return The enum numeric value on the wire for mode. - */ - int getModeValue(); - /** - * - * - *
-   * Mode is the configuration for how to expose metadata to workloads running
-   * on the node pool.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; - * - * @return The mode. - */ - com.google.container.v1.WorkloadMetadataConfig.Mode getMode(); -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadPolicyConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadPolicyConfig.java deleted file mode 100644 index 6323c14ba709..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadPolicyConfig.java +++ /dev/null @@ -1,575 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -/** - * - * - *
- * WorkloadPolicyConfig is the configuration of workload policy for autopilot
- * clusters.
- * 
- * - * Protobuf type {@code google.container.v1.WorkloadPolicyConfig} - */ -public final class WorkloadPolicyConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.WorkloadPolicyConfig) - WorkloadPolicyConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkloadPolicyConfig.newBuilder() to construct. - private WorkloadPolicyConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private WorkloadPolicyConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new WorkloadPolicyConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_WorkloadPolicyConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_WorkloadPolicyConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.WorkloadPolicyConfig.class, - com.google.container.v1.WorkloadPolicyConfig.Builder.class); - } - - private int bitField0_; - public static final int ALLOW_NET_ADMIN_FIELD_NUMBER = 1; - private boolean allowNetAdmin_ = false; - /** - * - * - *
-   * If true, workloads can use NET_ADMIN capability.
-   * 
- * - * optional bool allow_net_admin = 1; - * - * @return Whether the allowNetAdmin field is set. - */ - @java.lang.Override - public boolean hasAllowNetAdmin() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * If true, workloads can use NET_ADMIN capability.
-   * 
- * - * optional bool allow_net_admin = 1; - * - * @return The allowNetAdmin. - */ - @java.lang.Override - public boolean getAllowNetAdmin() { - return allowNetAdmin_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeBool(1, allowNetAdmin_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, allowNetAdmin_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.WorkloadPolicyConfig)) { - return super.equals(obj); - } - com.google.container.v1.WorkloadPolicyConfig other = - (com.google.container.v1.WorkloadPolicyConfig) obj; - - if (hasAllowNetAdmin() != other.hasAllowNetAdmin()) return false; - if (hasAllowNetAdmin()) { - if (getAllowNetAdmin() != other.getAllowNetAdmin()) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasAllowNetAdmin()) { - hash = (37 * hash) + ALLOW_NET_ADMIN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowNetAdmin()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.WorkloadPolicyConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.WorkloadPolicyConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.WorkloadPolicyConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.WorkloadPolicyConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.WorkloadPolicyConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.WorkloadPolicyConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.WorkloadPolicyConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.WorkloadPolicyConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.WorkloadPolicyConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.WorkloadPolicyConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.WorkloadPolicyConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.WorkloadPolicyConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.WorkloadPolicyConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * WorkloadPolicyConfig is the configuration of workload policy for autopilot
-   * clusters.
-   * 
- * - * Protobuf type {@code google.container.v1.WorkloadPolicyConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.WorkloadPolicyConfig) - com.google.container.v1.WorkloadPolicyConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_WorkloadPolicyConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_WorkloadPolicyConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.WorkloadPolicyConfig.class, - com.google.container.v1.WorkloadPolicyConfig.Builder.class); - } - - // Construct using com.google.container.v1.WorkloadPolicyConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - allowNetAdmin_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_WorkloadPolicyConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.WorkloadPolicyConfig getDefaultInstanceForType() { - return com.google.container.v1.WorkloadPolicyConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.WorkloadPolicyConfig build() { - com.google.container.v1.WorkloadPolicyConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.WorkloadPolicyConfig buildPartial() { - com.google.container.v1.WorkloadPolicyConfig result = - new com.google.container.v1.WorkloadPolicyConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1.WorkloadPolicyConfig result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.allowNetAdmin_ = allowNetAdmin_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.WorkloadPolicyConfig) { - return mergeFrom((com.google.container.v1.WorkloadPolicyConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.WorkloadPolicyConfig other) { - if (other == com.google.container.v1.WorkloadPolicyConfig.getDefaultInstance()) return this; - if (other.hasAllowNetAdmin()) { - setAllowNetAdmin(other.getAllowNetAdmin()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - allowNetAdmin_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean allowNetAdmin_; - /** - * - * - *
-     * If true, workloads can use NET_ADMIN capability.
-     * 
- * - * optional bool allow_net_admin = 1; - * - * @return Whether the allowNetAdmin field is set. - */ - @java.lang.Override - public boolean hasAllowNetAdmin() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * If true, workloads can use NET_ADMIN capability.
-     * 
- * - * optional bool allow_net_admin = 1; - * - * @return The allowNetAdmin. - */ - @java.lang.Override - public boolean getAllowNetAdmin() { - return allowNetAdmin_; - } - /** - * - * - *
-     * If true, workloads can use NET_ADMIN capability.
-     * 
- * - * optional bool allow_net_admin = 1; - * - * @param value The allowNetAdmin to set. - * @return This builder for chaining. - */ - public Builder setAllowNetAdmin(boolean value) { - - allowNetAdmin_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * If true, workloads can use NET_ADMIN capability.
-     * 
- * - * optional bool allow_net_admin = 1; - * - * @return This builder for chaining. - */ - public Builder clearAllowNetAdmin() { - bitField0_ = (bitField0_ & ~0x00000001); - allowNetAdmin_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.WorkloadPolicyConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.WorkloadPolicyConfig) - private static final com.google.container.v1.WorkloadPolicyConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.WorkloadPolicyConfig(); - } - - public static com.google.container.v1.WorkloadPolicyConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkloadPolicyConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1.WorkloadPolicyConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadPolicyConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadPolicyConfigOrBuilder.java deleted file mode 100644 index 529e0ae45def..000000000000 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadPolicyConfigOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1; - -public interface WorkloadPolicyConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.WorkloadPolicyConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * If true, workloads can use NET_ADMIN capability.
-   * 
- * - * optional bool allow_net_admin = 1; - * - * @return Whether the allowNetAdmin field is set. - */ - boolean hasAllowNetAdmin(); - /** - * - * - *
-   * If true, workloads can use NET_ADMIN capability.
-   * 
- * - * optional bool allow_net_admin = 1; - * - * @return The allowNetAdmin. - */ - boolean getAllowNetAdmin(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfig.java deleted file mode 100644 index 78188f841360..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfig.java +++ /dev/null @@ -1,1616 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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_ = ""; - gpuPartitionSize_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AcceleratorConfig(); - } - - 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); - } - - private int bitField0_; - public static final int ACCELERATOR_COUNT_FIELD_NUMBER = 1; - private long acceleratorCount_ = 0L; - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - 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; - } - } - - public static final int GPU_PARTITION_SIZE_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object gpuPartitionSize_ = ""; - /** - * - * - *
-   * Size of partitions to create on the GPU. Valid values are described in the
-   * NVIDIA [mig user
-   * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
-   * 
- * - * string gpu_partition_size = 3; - * - * @return The gpuPartitionSize. - */ - @java.lang.Override - public java.lang.String getGpuPartitionSize() { - java.lang.Object ref = gpuPartitionSize_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gpuPartitionSize_ = s; - return s; - } - } - /** - * - * - *
-   * Size of partitions to create on the GPU. Valid values are described in the
-   * NVIDIA [mig user
-   * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
-   * 
- * - * string gpu_partition_size = 3; - * - * @return The bytes for gpuPartitionSize. - */ - @java.lang.Override - public com.google.protobuf.ByteString getGpuPartitionSizeBytes() { - java.lang.Object ref = gpuPartitionSize_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - gpuPartitionSize_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MAX_TIME_SHARED_CLIENTS_PER_GPU_FIELD_NUMBER = 4; - private long maxTimeSharedClientsPerGpu_ = 0L; - /** - * - * - *
-   * The number of time-shared GPU resources to expose for each physical GPU.
-   * 
- * - * int64 max_time_shared_clients_per_gpu = 4 [deprecated = true]; - * - * @deprecated google.container.v1beta1.AcceleratorConfig.max_time_shared_clients_per_gpu is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4648 - * @return The maxTimeSharedClientsPerGpu. - */ - @java.lang.Override - @java.lang.Deprecated - public long getMaxTimeSharedClientsPerGpu() { - return maxTimeSharedClientsPerGpu_; - } - - public static final int GPU_SHARING_CONFIG_FIELD_NUMBER = 5; - private com.google.container.v1beta1.GPUSharingConfig gpuSharingConfig_; - /** - * - * - *
-   * The configuration for GPU sharing options.
-   * 
- * - * optional .google.container.v1beta1.GPUSharingConfig gpu_sharing_config = 5; - * - * @return Whether the gpuSharingConfig field is set. - */ - @java.lang.Override - public boolean hasGpuSharingConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * The configuration for GPU sharing options.
-   * 
- * - * optional .google.container.v1beta1.GPUSharingConfig gpu_sharing_config = 5; - * - * @return The gpuSharingConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.GPUSharingConfig getGpuSharingConfig() { - return gpuSharingConfig_ == null - ? com.google.container.v1beta1.GPUSharingConfig.getDefaultInstance() - : gpuSharingConfig_; - } - /** - * - * - *
-   * The configuration for GPU sharing options.
-   * 
- * - * optional .google.container.v1beta1.GPUSharingConfig gpu_sharing_config = 5; - */ - @java.lang.Override - public com.google.container.v1beta1.GPUSharingConfigOrBuilder getGpuSharingConfigOrBuilder() { - return gpuSharingConfig_ == null - ? com.google.container.v1beta1.GPUSharingConfig.getDefaultInstance() - : gpuSharingConfig_; - } - - public static final int GPU_DRIVER_INSTALLATION_CONFIG_FIELD_NUMBER = 6; - private com.google.container.v1beta1.GPUDriverInstallationConfig gpuDriverInstallationConfig_; - /** - * - * - *
-   * The configuration for auto installation of GPU driver.
-   * 
- * - * - * optional .google.container.v1beta1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; - * - * - * @return Whether the gpuDriverInstallationConfig field is set. - */ - @java.lang.Override - public boolean hasGpuDriverInstallationConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * The configuration for auto installation of GPU driver.
-   * 
- * - * - * optional .google.container.v1beta1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; - * - * - * @return The gpuDriverInstallationConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.GPUDriverInstallationConfig getGpuDriverInstallationConfig() { - return gpuDriverInstallationConfig_ == null - ? com.google.container.v1beta1.GPUDriverInstallationConfig.getDefaultInstance() - : gpuDriverInstallationConfig_; - } - /** - * - * - *
-   * The configuration for auto installation of GPU driver.
-   * 
- * - * - * optional .google.container.v1beta1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; - * - */ - @java.lang.Override - public com.google.container.v1beta1.GPUDriverInstallationConfigOrBuilder - getGpuDriverInstallationConfigOrBuilder() { - return gpuDriverInstallationConfig_ == null - ? com.google.container.v1beta1.GPUDriverInstallationConfig.getDefaultInstance() - : gpuDriverInstallationConfig_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(acceleratorType_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, acceleratorType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gpuPartitionSize_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, gpuPartitionSize_); - } - if (maxTimeSharedClientsPerGpu_ != 0L) { - output.writeInt64(4, maxTimeSharedClientsPerGpu_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(5, getGpuSharingConfig()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(6, getGpuDriverInstallationConfig()); - } - getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(acceleratorType_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, acceleratorType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gpuPartitionSize_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, gpuPartitionSize_); - } - if (maxTimeSharedClientsPerGpu_ != 0L) { - size += - com.google.protobuf.CodedOutputStream.computeInt64Size(4, maxTimeSharedClientsPerGpu_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getGpuSharingConfig()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, getGpuDriverInstallationConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getGpuPartitionSize().equals(other.getGpuPartitionSize())) return false; - if (getMaxTimeSharedClientsPerGpu() != other.getMaxTimeSharedClientsPerGpu()) return false; - if (hasGpuSharingConfig() != other.hasGpuSharingConfig()) return false; - if (hasGpuSharingConfig()) { - if (!getGpuSharingConfig().equals(other.getGpuSharingConfig())) return false; - } - if (hasGpuDriverInstallationConfig() != other.hasGpuDriverInstallationConfig()) return false; - if (hasGpuDriverInstallationConfig()) { - if (!getGpuDriverInstallationConfig().equals(other.getGpuDriverInstallationConfig())) - return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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 = (37 * hash) + GPU_PARTITION_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getGpuPartitionSize().hashCode(); - hash = (37 * hash) + MAX_TIME_SHARED_CLIENTS_PER_GPU_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxTimeSharedClientsPerGpu()); - if (hasGpuSharingConfig()) { - hash = (37 * hash) + GPU_SHARING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getGpuSharingConfig().hashCode(); - } - if (hasGpuDriverInstallationConfig()) { - hash = (37 * hash) + GPU_DRIVER_INSTALLATION_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getGpuDriverInstallationConfig().hashCode(); - } - hash = (29 * hash) + getUnknownFields().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) { - getGpuSharingConfigFieldBuilder(); - getGpuDriverInstallationConfigFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - acceleratorCount_ = 0L; - acceleratorType_ = ""; - gpuPartitionSize_ = ""; - maxTimeSharedClientsPerGpu_ = 0L; - gpuSharingConfig_ = null; - if (gpuSharingConfigBuilder_ != null) { - gpuSharingConfigBuilder_.dispose(); - gpuSharingConfigBuilder_ = null; - } - gpuDriverInstallationConfig_ = null; - if (gpuDriverInstallationConfigBuilder_ != null) { - gpuDriverInstallationConfigBuilder_.dispose(); - gpuDriverInstallationConfigBuilder_ = null; - } - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.AcceleratorConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.acceleratorCount_ = acceleratorCount_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.acceleratorType_ = acceleratorType_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.gpuPartitionSize_ = gpuPartitionSize_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.maxTimeSharedClientsPerGpu_ = maxTimeSharedClientsPerGpu_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000010) != 0)) { - result.gpuSharingConfig_ = - gpuSharingConfigBuilder_ == null ? gpuSharingConfig_ : gpuSharingConfigBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.gpuDriverInstallationConfig_ = - gpuDriverInstallationConfigBuilder_ == null - ? gpuDriverInstallationConfig_ - : gpuDriverInstallationConfigBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @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_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getGpuPartitionSize().isEmpty()) { - gpuPartitionSize_ = other.gpuPartitionSize_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.getMaxTimeSharedClientsPerGpu() != 0L) { - setMaxTimeSharedClientsPerGpu(other.getMaxTimeSharedClientsPerGpu()); - } - if (other.hasGpuSharingConfig()) { - mergeGpuSharingConfig(other.getGpuSharingConfig()); - } - if (other.hasGpuDriverInstallationConfig()) { - mergeGpuDriverInstallationConfig(other.getGpuDriverInstallationConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - acceleratorCount_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - acceleratorType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - gpuPartitionSize_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - maxTimeSharedClientsPerGpu_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - input.readMessage( - getGpuSharingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - input.readMessage( - getGpuDriverInstallationConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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() { - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000002; - 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(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object gpuPartitionSize_ = ""; - /** - * - * - *
-     * Size of partitions to create on the GPU. Valid values are described in the
-     * NVIDIA [mig user
-     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
-     * 
- * - * string gpu_partition_size = 3; - * - * @return The gpuPartitionSize. - */ - public java.lang.String getGpuPartitionSize() { - java.lang.Object ref = gpuPartitionSize_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gpuPartitionSize_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Size of partitions to create on the GPU. Valid values are described in the
-     * NVIDIA [mig user
-     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
-     * 
- * - * string gpu_partition_size = 3; - * - * @return The bytes for gpuPartitionSize. - */ - public com.google.protobuf.ByteString getGpuPartitionSizeBytes() { - java.lang.Object ref = gpuPartitionSize_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - gpuPartitionSize_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Size of partitions to create on the GPU. Valid values are described in the
-     * NVIDIA [mig user
-     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
-     * 
- * - * string gpu_partition_size = 3; - * - * @param value The gpuPartitionSize to set. - * @return This builder for chaining. - */ - public Builder setGpuPartitionSize(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - gpuPartitionSize_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Size of partitions to create on the GPU. Valid values are described in the
-     * NVIDIA [mig user
-     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
-     * 
- * - * string gpu_partition_size = 3; - * - * @return This builder for chaining. - */ - public Builder clearGpuPartitionSize() { - gpuPartitionSize_ = getDefaultInstance().getGpuPartitionSize(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Size of partitions to create on the GPU. Valid values are described in the
-     * NVIDIA [mig user
-     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
-     * 
- * - * string gpu_partition_size = 3; - * - * @param value The bytes for gpuPartitionSize to set. - * @return This builder for chaining. - */ - public Builder setGpuPartitionSizeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - gpuPartitionSize_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private long maxTimeSharedClientsPerGpu_; - /** - * - * - *
-     * The number of time-shared GPU resources to expose for each physical GPU.
-     * 
- * - * int64 max_time_shared_clients_per_gpu = 4 [deprecated = true]; - * - * @deprecated google.container.v1beta1.AcceleratorConfig.max_time_shared_clients_per_gpu is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4648 - * @return The maxTimeSharedClientsPerGpu. - */ - @java.lang.Override - @java.lang.Deprecated - public long getMaxTimeSharedClientsPerGpu() { - return maxTimeSharedClientsPerGpu_; - } - /** - * - * - *
-     * The number of time-shared GPU resources to expose for each physical GPU.
-     * 
- * - * int64 max_time_shared_clients_per_gpu = 4 [deprecated = true]; - * - * @deprecated google.container.v1beta1.AcceleratorConfig.max_time_shared_clients_per_gpu is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4648 - * @param value The maxTimeSharedClientsPerGpu to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setMaxTimeSharedClientsPerGpu(long value) { - - maxTimeSharedClientsPerGpu_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * The number of time-shared GPU resources to expose for each physical GPU.
-     * 
- * - * int64 max_time_shared_clients_per_gpu = 4 [deprecated = true]; - * - * @deprecated google.container.v1beta1.AcceleratorConfig.max_time_shared_clients_per_gpu is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4648 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearMaxTimeSharedClientsPerGpu() { - bitField0_ = (bitField0_ & ~0x00000008); - maxTimeSharedClientsPerGpu_ = 0L; - onChanged(); - return this; - } - - private com.google.container.v1beta1.GPUSharingConfig gpuSharingConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GPUSharingConfig, - com.google.container.v1beta1.GPUSharingConfig.Builder, - com.google.container.v1beta1.GPUSharingConfigOrBuilder> - gpuSharingConfigBuilder_; - /** - * - * - *
-     * The configuration for GPU sharing options.
-     * 
- * - * optional .google.container.v1beta1.GPUSharingConfig gpu_sharing_config = 5; - * - * @return Whether the gpuSharingConfig field is set. - */ - public boolean hasGpuSharingConfig() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-     * The configuration for GPU sharing options.
-     * 
- * - * optional .google.container.v1beta1.GPUSharingConfig gpu_sharing_config = 5; - * - * @return The gpuSharingConfig. - */ - public com.google.container.v1beta1.GPUSharingConfig getGpuSharingConfig() { - if (gpuSharingConfigBuilder_ == null) { - return gpuSharingConfig_ == null - ? com.google.container.v1beta1.GPUSharingConfig.getDefaultInstance() - : gpuSharingConfig_; - } else { - return gpuSharingConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The configuration for GPU sharing options.
-     * 
- * - * optional .google.container.v1beta1.GPUSharingConfig gpu_sharing_config = 5; - */ - public Builder setGpuSharingConfig(com.google.container.v1beta1.GPUSharingConfig value) { - if (gpuSharingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gpuSharingConfig_ = value; - } else { - gpuSharingConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * The configuration for GPU sharing options.
-     * 
- * - * optional .google.container.v1beta1.GPUSharingConfig gpu_sharing_config = 5; - */ - public Builder setGpuSharingConfig( - com.google.container.v1beta1.GPUSharingConfig.Builder builderForValue) { - if (gpuSharingConfigBuilder_ == null) { - gpuSharingConfig_ = builderForValue.build(); - } else { - gpuSharingConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * The configuration for GPU sharing options.
-     * 
- * - * optional .google.container.v1beta1.GPUSharingConfig gpu_sharing_config = 5; - */ - public Builder mergeGpuSharingConfig(com.google.container.v1beta1.GPUSharingConfig value) { - if (gpuSharingConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && gpuSharingConfig_ != null - && gpuSharingConfig_ - != com.google.container.v1beta1.GPUSharingConfig.getDefaultInstance()) { - getGpuSharingConfigBuilder().mergeFrom(value); - } else { - gpuSharingConfig_ = value; - } - } else { - gpuSharingConfigBuilder_.mergeFrom(value); - } - if (gpuSharingConfig_ != null) { - bitField0_ |= 0x00000010; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The configuration for GPU sharing options.
-     * 
- * - * optional .google.container.v1beta1.GPUSharingConfig gpu_sharing_config = 5; - */ - public Builder clearGpuSharingConfig() { - bitField0_ = (bitField0_ & ~0x00000010); - gpuSharingConfig_ = null; - if (gpuSharingConfigBuilder_ != null) { - gpuSharingConfigBuilder_.dispose(); - gpuSharingConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The configuration for GPU sharing options.
-     * 
- * - * optional .google.container.v1beta1.GPUSharingConfig gpu_sharing_config = 5; - */ - public com.google.container.v1beta1.GPUSharingConfig.Builder getGpuSharingConfigBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getGpuSharingConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The configuration for GPU sharing options.
-     * 
- * - * optional .google.container.v1beta1.GPUSharingConfig gpu_sharing_config = 5; - */ - public com.google.container.v1beta1.GPUSharingConfigOrBuilder getGpuSharingConfigOrBuilder() { - if (gpuSharingConfigBuilder_ != null) { - return gpuSharingConfigBuilder_.getMessageOrBuilder(); - } else { - return gpuSharingConfig_ == null - ? com.google.container.v1beta1.GPUSharingConfig.getDefaultInstance() - : gpuSharingConfig_; - } - } - /** - * - * - *
-     * The configuration for GPU sharing options.
-     * 
- * - * optional .google.container.v1beta1.GPUSharingConfig gpu_sharing_config = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GPUSharingConfig, - com.google.container.v1beta1.GPUSharingConfig.Builder, - com.google.container.v1beta1.GPUSharingConfigOrBuilder> - getGpuSharingConfigFieldBuilder() { - if (gpuSharingConfigBuilder_ == null) { - gpuSharingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GPUSharingConfig, - com.google.container.v1beta1.GPUSharingConfig.Builder, - com.google.container.v1beta1.GPUSharingConfigOrBuilder>( - getGpuSharingConfig(), getParentForChildren(), isClean()); - gpuSharingConfig_ = null; - } - return gpuSharingConfigBuilder_; - } - - private com.google.container.v1beta1.GPUDriverInstallationConfig gpuDriverInstallationConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GPUDriverInstallationConfig, - com.google.container.v1beta1.GPUDriverInstallationConfig.Builder, - com.google.container.v1beta1.GPUDriverInstallationConfigOrBuilder> - gpuDriverInstallationConfigBuilder_; - /** - * - * - *
-     * The configuration for auto installation of GPU driver.
-     * 
- * - * - * optional .google.container.v1beta1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; - * - * - * @return Whether the gpuDriverInstallationConfig field is set. - */ - public boolean hasGpuDriverInstallationConfig() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * - * - *
-     * The configuration for auto installation of GPU driver.
-     * 
- * - * - * optional .google.container.v1beta1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; - * - * - * @return The gpuDriverInstallationConfig. - */ - public com.google.container.v1beta1.GPUDriverInstallationConfig - getGpuDriverInstallationConfig() { - if (gpuDriverInstallationConfigBuilder_ == null) { - return gpuDriverInstallationConfig_ == null - ? com.google.container.v1beta1.GPUDriverInstallationConfig.getDefaultInstance() - : gpuDriverInstallationConfig_; - } else { - return gpuDriverInstallationConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The configuration for auto installation of GPU driver.
-     * 
- * - * - * optional .google.container.v1beta1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; - * - */ - public Builder setGpuDriverInstallationConfig( - com.google.container.v1beta1.GPUDriverInstallationConfig value) { - if (gpuDriverInstallationConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gpuDriverInstallationConfig_ = value; - } else { - gpuDriverInstallationConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * The configuration for auto installation of GPU driver.
-     * 
- * - * - * optional .google.container.v1beta1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; - * - */ - public Builder setGpuDriverInstallationConfig( - com.google.container.v1beta1.GPUDriverInstallationConfig.Builder builderForValue) { - if (gpuDriverInstallationConfigBuilder_ == null) { - gpuDriverInstallationConfig_ = builderForValue.build(); - } else { - gpuDriverInstallationConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * The configuration for auto installation of GPU driver.
-     * 
- * - * - * optional .google.container.v1beta1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; - * - */ - public Builder mergeGpuDriverInstallationConfig( - com.google.container.v1beta1.GPUDriverInstallationConfig value) { - if (gpuDriverInstallationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && gpuDriverInstallationConfig_ != null - && gpuDriverInstallationConfig_ - != com.google.container.v1beta1.GPUDriverInstallationConfig.getDefaultInstance()) { - getGpuDriverInstallationConfigBuilder().mergeFrom(value); - } else { - gpuDriverInstallationConfig_ = value; - } - } else { - gpuDriverInstallationConfigBuilder_.mergeFrom(value); - } - if (gpuDriverInstallationConfig_ != null) { - bitField0_ |= 0x00000020; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The configuration for auto installation of GPU driver.
-     * 
- * - * - * optional .google.container.v1beta1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; - * - */ - public Builder clearGpuDriverInstallationConfig() { - bitField0_ = (bitField0_ & ~0x00000020); - gpuDriverInstallationConfig_ = null; - if (gpuDriverInstallationConfigBuilder_ != null) { - gpuDriverInstallationConfigBuilder_.dispose(); - gpuDriverInstallationConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The configuration for auto installation of GPU driver.
-     * 
- * - * - * optional .google.container.v1beta1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; - * - */ - public com.google.container.v1beta1.GPUDriverInstallationConfig.Builder - getGpuDriverInstallationConfigBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getGpuDriverInstallationConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The configuration for auto installation of GPU driver.
-     * 
- * - * - * optional .google.container.v1beta1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; - * - */ - public com.google.container.v1beta1.GPUDriverInstallationConfigOrBuilder - getGpuDriverInstallationConfigOrBuilder() { - if (gpuDriverInstallationConfigBuilder_ != null) { - return gpuDriverInstallationConfigBuilder_.getMessageOrBuilder(); - } else { - return gpuDriverInstallationConfig_ == null - ? com.google.container.v1beta1.GPUDriverInstallationConfig.getDefaultInstance() - : gpuDriverInstallationConfig_; - } - } - /** - * - * - *
-     * The configuration for auto installation of GPU driver.
-     * 
- * - * - * optional .google.container.v1beta1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GPUDriverInstallationConfig, - com.google.container.v1beta1.GPUDriverInstallationConfig.Builder, - com.google.container.v1beta1.GPUDriverInstallationConfigOrBuilder> - getGpuDriverInstallationConfigFieldBuilder() { - if (gpuDriverInstallationConfigBuilder_ == null) { - gpuDriverInstallationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GPUDriverInstallationConfig, - com.google.container.v1beta1.GPUDriverInstallationConfig.Builder, - com.google.container.v1beta1.GPUDriverInstallationConfigOrBuilder>( - getGpuDriverInstallationConfig(), getParentForChildren(), isClean()); - gpuDriverInstallationConfig_ = null; - } - return gpuDriverInstallationConfigBuilder_; - } - - @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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfigOrBuilder.java deleted file mode 100644 index 4ad87b3ecf04..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfigOrBuilder.java +++ /dev/null @@ -1,188 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - - /** - * - * - *
-   * Size of partitions to create on the GPU. Valid values are described in the
-   * NVIDIA [mig user
-   * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
-   * 
- * - * string gpu_partition_size = 3; - * - * @return The gpuPartitionSize. - */ - java.lang.String getGpuPartitionSize(); - /** - * - * - *
-   * Size of partitions to create on the GPU. Valid values are described in the
-   * NVIDIA [mig user
-   * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
-   * 
- * - * string gpu_partition_size = 3; - * - * @return The bytes for gpuPartitionSize. - */ - com.google.protobuf.ByteString getGpuPartitionSizeBytes(); - - /** - * - * - *
-   * The number of time-shared GPU resources to expose for each physical GPU.
-   * 
- * - * int64 max_time_shared_clients_per_gpu = 4 [deprecated = true]; - * - * @deprecated google.container.v1beta1.AcceleratorConfig.max_time_shared_clients_per_gpu is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4648 - * @return The maxTimeSharedClientsPerGpu. - */ - @java.lang.Deprecated - long getMaxTimeSharedClientsPerGpu(); - - /** - * - * - *
-   * The configuration for GPU sharing options.
-   * 
- * - * optional .google.container.v1beta1.GPUSharingConfig gpu_sharing_config = 5; - * - * @return Whether the gpuSharingConfig field is set. - */ - boolean hasGpuSharingConfig(); - /** - * - * - *
-   * The configuration for GPU sharing options.
-   * 
- * - * optional .google.container.v1beta1.GPUSharingConfig gpu_sharing_config = 5; - * - * @return The gpuSharingConfig. - */ - com.google.container.v1beta1.GPUSharingConfig getGpuSharingConfig(); - /** - * - * - *
-   * The configuration for GPU sharing options.
-   * 
- * - * optional .google.container.v1beta1.GPUSharingConfig gpu_sharing_config = 5; - */ - com.google.container.v1beta1.GPUSharingConfigOrBuilder getGpuSharingConfigOrBuilder(); - - /** - * - * - *
-   * The configuration for auto installation of GPU driver.
-   * 
- * - * - * optional .google.container.v1beta1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; - * - * - * @return Whether the gpuDriverInstallationConfig field is set. - */ - boolean hasGpuDriverInstallationConfig(); - /** - * - * - *
-   * The configuration for auto installation of GPU driver.
-   * 
- * - * - * optional .google.container.v1beta1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; - * - * - * @return The gpuDriverInstallationConfig. - */ - com.google.container.v1beta1.GPUDriverInstallationConfig getGpuDriverInstallationConfig(); - /** - * - * - *
-   * The configuration for auto installation of GPU driver.
-   * 
- * - * - * optional .google.container.v1beta1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; - * - */ - com.google.container.v1beta1.GPUDriverInstallationConfigOrBuilder - getGpuDriverInstallationConfigOrBuilder(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalNodeNetworkConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalNodeNetworkConfig.java deleted file mode 100644 index 74ba1762665e..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalNodeNetworkConfig.java +++ /dev/null @@ -1,810 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * AdditionalNodeNetworkConfig is the configuration for additional node networks
- * within the NodeNetworkConfig message
- * 
- * - * Protobuf type {@code google.container.v1beta1.AdditionalNodeNetworkConfig} - */ -public final class AdditionalNodeNetworkConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.AdditionalNodeNetworkConfig) - AdditionalNodeNetworkConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use AdditionalNodeNetworkConfig.newBuilder() to construct. - private AdditionalNodeNetworkConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AdditionalNodeNetworkConfig() { - network_ = ""; - subnetwork_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AdditionalNodeNetworkConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_AdditionalNodeNetworkConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_AdditionalNodeNetworkConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.AdditionalNodeNetworkConfig.class, - com.google.container.v1beta1.AdditionalNodeNetworkConfig.Builder.class); - } - - public static final int NETWORK_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object network_ = ""; - /** - * - * - *
-   * Name of the VPC where the additional interface belongs
-   * 
- * - * 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; - } - } - /** - * - * - *
-   * Name of the VPC where the additional interface belongs
-   * 
- * - * 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object subnetwork_ = ""; - /** - * - * - *
-   * Name of the subnetwork where the additional interface belongs
-   * 
- * - * 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; - } - } - /** - * - * - *
-   * Name of the subnetwork where the additional interface belongs
-   * 
- * - * 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; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subnetwork_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, network_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subnetwork_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.AdditionalNodeNetworkConfig)) { - return super.equals(obj); - } - com.google.container.v1beta1.AdditionalNodeNetworkConfig other = - (com.google.container.v1beta1.AdditionalNodeNetworkConfig) obj; - - if (!getNetwork().equals(other.getNetwork())) return false; - if (!getSubnetwork().equals(other.getSubnetwork())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.AdditionalNodeNetworkConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.AdditionalNodeNetworkConfig parseFrom( - 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.AdditionalNodeNetworkConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.AdditionalNodeNetworkConfig parseFrom( - com.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.AdditionalNodeNetworkConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.AdditionalNodeNetworkConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.AdditionalNodeNetworkConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.AdditionalNodeNetworkConfig parseFrom( - java.io.InputStream 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.AdditionalNodeNetworkConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.AdditionalNodeNetworkConfig parseDelimitedFrom( - java.io.InputStream 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.AdditionalNodeNetworkConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.AdditionalNodeNetworkConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.AdditionalNodeNetworkConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * AdditionalNodeNetworkConfig is the configuration for additional node networks
-   * within the NodeNetworkConfig message
-   * 
- * - * Protobuf type {@code google.container.v1beta1.AdditionalNodeNetworkConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.AdditionalNodeNetworkConfig) - com.google.container.v1beta1.AdditionalNodeNetworkConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_AdditionalNodeNetworkConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_AdditionalNodeNetworkConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.AdditionalNodeNetworkConfig.class, - com.google.container.v1beta1.AdditionalNodeNetworkConfig.Builder.class); - } - - // Construct using com.google.container.v1beta1.AdditionalNodeNetworkConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - network_ = ""; - subnetwork_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_AdditionalNodeNetworkConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.AdditionalNodeNetworkConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.AdditionalNodeNetworkConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.AdditionalNodeNetworkConfig build() { - com.google.container.v1beta1.AdditionalNodeNetworkConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.AdditionalNodeNetworkConfig buildPartial() { - com.google.container.v1beta1.AdditionalNodeNetworkConfig result = - new com.google.container.v1beta1.AdditionalNodeNetworkConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.AdditionalNodeNetworkConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.network_ = network_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.subnetwork_ = subnetwork_; - } - } - - @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.AdditionalNodeNetworkConfig) { - return mergeFrom((com.google.container.v1beta1.AdditionalNodeNetworkConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.AdditionalNodeNetworkConfig other) { - if (other == com.google.container.v1beta1.AdditionalNodeNetworkConfig.getDefaultInstance()) - return this; - if (!other.getNetwork().isEmpty()) { - network_ = other.network_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getSubnetwork().isEmpty()) { - subnetwork_ = other.subnetwork_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - network_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - subnetwork_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object network_ = ""; - /** - * - * - *
-     * Name of the VPC where the additional interface belongs
-     * 
- * - * 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; - } - } - /** - * - * - *
-     * Name of the VPC where the additional interface belongs
-     * 
- * - * 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; - } - } - /** - * - * - *
-     * Name of the VPC where the additional interface belongs
-     * 
- * - * 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Name of the VPC where the additional interface belongs
-     * 
- * - * string network = 1; - * - * @return This builder for chaining. - */ - public Builder clearNetwork() { - network_ = getDefaultInstance().getNetwork(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Name of the VPC where the additional interface belongs
-     * 
- * - * 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object subnetwork_ = ""; - /** - * - * - *
-     * Name of the subnetwork where the additional interface belongs
-     * 
- * - * 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; - } - } - /** - * - * - *
-     * Name of the subnetwork where the additional interface belongs
-     * 
- * - * 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; - } - } - /** - * - * - *
-     * Name of the subnetwork where the additional interface belongs
-     * 
- * - * 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Name of the subnetwork where the additional interface belongs
-     * 
- * - * string subnetwork = 2; - * - * @return This builder for chaining. - */ - public Builder clearSubnetwork() { - subnetwork_ = getDefaultInstance().getSubnetwork(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Name of the subnetwork where the additional interface belongs
-     * 
- * - * 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; - bitField0_ |= 0x00000002; - 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.AdditionalNodeNetworkConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.AdditionalNodeNetworkConfig) - private static final com.google.container.v1beta1.AdditionalNodeNetworkConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.AdditionalNodeNetworkConfig(); - } - - public static com.google.container.v1beta1.AdditionalNodeNetworkConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AdditionalNodeNetworkConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.AdditionalNodeNetworkConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalNodeNetworkConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalNodeNetworkConfigOrBuilder.java deleted file mode 100644 index 10195b168bc8..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalNodeNetworkConfigOrBuilder.java +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface AdditionalNodeNetworkConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.AdditionalNodeNetworkConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Name of the VPC where the additional interface belongs
-   * 
- * - * string network = 1; - * - * @return The network. - */ - java.lang.String getNetwork(); - /** - * - * - *
-   * Name of the VPC where the additional interface belongs
-   * 
- * - * string network = 1; - * - * @return The bytes for network. - */ - com.google.protobuf.ByteString getNetworkBytes(); - - /** - * - * - *
-   * Name of the subnetwork where the additional interface belongs
-   * 
- * - * string subnetwork = 2; - * - * @return The subnetwork. - */ - java.lang.String getSubnetwork(); - /** - * - * - *
-   * Name of the subnetwork where the additional interface belongs
-   * 
- * - * string subnetwork = 2; - * - * @return The bytes for subnetwork. - */ - com.google.protobuf.ByteString getSubnetworkBytes(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalPodNetworkConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalPodNetworkConfig.java deleted file mode 100644 index 20ee9cd433d0..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalPodNetworkConfig.java +++ /dev/null @@ -1,1099 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * AdditionalPodNetworkConfig is the configuration for additional pod networks
- * within the NodeNetworkConfig message
- * 
- * - * Protobuf type {@code google.container.v1beta1.AdditionalPodNetworkConfig} - */ -public final class AdditionalPodNetworkConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.AdditionalPodNetworkConfig) - AdditionalPodNetworkConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use AdditionalPodNetworkConfig.newBuilder() to construct. - private AdditionalPodNetworkConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AdditionalPodNetworkConfig() { - subnetwork_ = ""; - secondaryPodRange_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AdditionalPodNetworkConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_AdditionalPodNetworkConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_AdditionalPodNetworkConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.AdditionalPodNetworkConfig.class, - com.google.container.v1beta1.AdditionalPodNetworkConfig.Builder.class); - } - - private int bitField0_; - public static final int SUBNETWORK_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object subnetwork_ = ""; - /** - * - * - *
-   * Name of the subnetwork where the additional pod network belongs
-   * 
- * - * 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; - } - } - /** - * - * - *
-   * Name of the subnetwork where the additional pod network belongs
-   * 
- * - * 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 SECONDARY_POD_RANGE_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object secondaryPodRange_ = ""; - /** - * - * - *
-   * The name of the secondary range on the subnet which provides IP address for
-   * this pod range
-   * 
- * - * string secondary_pod_range = 2; - * - * @return The secondaryPodRange. - */ - @java.lang.Override - public java.lang.String getSecondaryPodRange() { - java.lang.Object ref = secondaryPodRange_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - secondaryPodRange_ = s; - return s; - } - } - /** - * - * - *
-   * The name of the secondary range on the subnet which provides IP address for
-   * this pod range
-   * 
- * - * string secondary_pod_range = 2; - * - * @return The bytes for secondaryPodRange. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSecondaryPodRangeBytes() { - java.lang.Object ref = secondaryPodRange_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - secondaryPodRange_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MAX_PODS_PER_NODE_FIELD_NUMBER = 3; - private com.google.container.v1beta1.MaxPodsConstraint maxPodsPerNode_; - /** - * - * - *
-   * The maximum number of pods per node which use this pod network
-   * 
- * - * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; - * - * @return Whether the maxPodsPerNode field is set. - */ - @java.lang.Override - public boolean hasMaxPodsPerNode() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * The maximum number of pods per node which use this pod network
-   * 
- * - * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; - * - * @return The maxPodsPerNode. - */ - @java.lang.Override - public com.google.container.v1beta1.MaxPodsConstraint getMaxPodsPerNode() { - return maxPodsPerNode_ == null - ? com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance() - : maxPodsPerNode_; - } - /** - * - * - *
-   * The maximum number of pods per node which use this pod network
-   * 
- * - * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; - */ - @java.lang.Override - public com.google.container.v1beta1.MaxPodsConstraintOrBuilder getMaxPodsPerNodeOrBuilder() { - return maxPodsPerNode_ == null - ? com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance() - : 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subnetwork_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secondaryPodRange_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, secondaryPodRange_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getMaxPodsPerNode()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subnetwork_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secondaryPodRange_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, secondaryPodRange_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMaxPodsPerNode()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.AdditionalPodNetworkConfig)) { - return super.equals(obj); - } - com.google.container.v1beta1.AdditionalPodNetworkConfig other = - (com.google.container.v1beta1.AdditionalPodNetworkConfig) obj; - - if (!getSubnetwork().equals(other.getSubnetwork())) return false; - if (!getSecondaryPodRange().equals(other.getSecondaryPodRange())) return false; - if (hasMaxPodsPerNode() != other.hasMaxPodsPerNode()) return false; - if (hasMaxPodsPerNode()) { - if (!getMaxPodsPerNode().equals(other.getMaxPodsPerNode())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + SECONDARY_POD_RANGE_FIELD_NUMBER; - hash = (53 * hash) + getSecondaryPodRange().hashCode(); - if (hasMaxPodsPerNode()) { - hash = (37 * hash) + MAX_PODS_PER_NODE_FIELD_NUMBER; - hash = (53 * hash) + getMaxPodsPerNode().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.AdditionalPodNetworkConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.AdditionalPodNetworkConfig parseFrom( - 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.AdditionalPodNetworkConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.AdditionalPodNetworkConfig parseFrom( - com.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.AdditionalPodNetworkConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.AdditionalPodNetworkConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.AdditionalPodNetworkConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.AdditionalPodNetworkConfig parseFrom( - java.io.InputStream 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.AdditionalPodNetworkConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.AdditionalPodNetworkConfig parseDelimitedFrom( - java.io.InputStream 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.AdditionalPodNetworkConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.AdditionalPodNetworkConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.AdditionalPodNetworkConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * AdditionalPodNetworkConfig is the configuration for additional pod networks
-   * within the NodeNetworkConfig message
-   * 
- * - * Protobuf type {@code google.container.v1beta1.AdditionalPodNetworkConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.AdditionalPodNetworkConfig) - com.google.container.v1beta1.AdditionalPodNetworkConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_AdditionalPodNetworkConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_AdditionalPodNetworkConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.AdditionalPodNetworkConfig.class, - com.google.container.v1beta1.AdditionalPodNetworkConfig.Builder.class); - } - - // Construct using com.google.container.v1beta1.AdditionalPodNetworkConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getMaxPodsPerNodeFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - subnetwork_ = ""; - secondaryPodRange_ = ""; - maxPodsPerNode_ = null; - if (maxPodsPerNodeBuilder_ != null) { - maxPodsPerNodeBuilder_.dispose(); - maxPodsPerNodeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_AdditionalPodNetworkConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.AdditionalPodNetworkConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.AdditionalPodNetworkConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.AdditionalPodNetworkConfig build() { - com.google.container.v1beta1.AdditionalPodNetworkConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.AdditionalPodNetworkConfig buildPartial() { - com.google.container.v1beta1.AdditionalPodNetworkConfig result = - new com.google.container.v1beta1.AdditionalPodNetworkConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.AdditionalPodNetworkConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.subnetwork_ = subnetwork_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.secondaryPodRange_ = secondaryPodRange_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.maxPodsPerNode_ = - maxPodsPerNodeBuilder_ == null ? maxPodsPerNode_ : maxPodsPerNodeBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @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.AdditionalPodNetworkConfig) { - return mergeFrom((com.google.container.v1beta1.AdditionalPodNetworkConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.AdditionalPodNetworkConfig other) { - if (other == com.google.container.v1beta1.AdditionalPodNetworkConfig.getDefaultInstance()) - return this; - if (!other.getSubnetwork().isEmpty()) { - subnetwork_ = other.subnetwork_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getSecondaryPodRange().isEmpty()) { - secondaryPodRange_ = other.secondaryPodRange_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasMaxPodsPerNode()) { - mergeMaxPodsPerNode(other.getMaxPodsPerNode()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - subnetwork_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - secondaryPodRange_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getMaxPodsPerNodeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object subnetwork_ = ""; - /** - * - * - *
-     * Name of the subnetwork where the additional pod network belongs
-     * 
- * - * 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; - } - } - /** - * - * - *
-     * Name of the subnetwork where the additional pod network belongs
-     * 
- * - * 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; - } - } - /** - * - * - *
-     * Name of the subnetwork where the additional pod network belongs
-     * 
- * - * 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Name of the subnetwork where the additional pod network belongs
-     * 
- * - * string subnetwork = 1; - * - * @return This builder for chaining. - */ - public Builder clearSubnetwork() { - subnetwork_ = getDefaultInstance().getSubnetwork(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Name of the subnetwork where the additional pod network belongs
-     * 
- * - * 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object secondaryPodRange_ = ""; - /** - * - * - *
-     * The name of the secondary range on the subnet which provides IP address for
-     * this pod range
-     * 
- * - * string secondary_pod_range = 2; - * - * @return The secondaryPodRange. - */ - public java.lang.String getSecondaryPodRange() { - java.lang.Object ref = secondaryPodRange_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - secondaryPodRange_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name of the secondary range on the subnet which provides IP address for
-     * this pod range
-     * 
- * - * string secondary_pod_range = 2; - * - * @return The bytes for secondaryPodRange. - */ - public com.google.protobuf.ByteString getSecondaryPodRangeBytes() { - java.lang.Object ref = secondaryPodRange_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - secondaryPodRange_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name of the secondary range on the subnet which provides IP address for
-     * this pod range
-     * 
- * - * string secondary_pod_range = 2; - * - * @param value The secondaryPodRange to set. - * @return This builder for chaining. - */ - public Builder setSecondaryPodRange(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - secondaryPodRange_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the secondary range on the subnet which provides IP address for
-     * this pod range
-     * 
- * - * string secondary_pod_range = 2; - * - * @return This builder for chaining. - */ - public Builder clearSecondaryPodRange() { - secondaryPodRange_ = getDefaultInstance().getSecondaryPodRange(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the secondary range on the subnet which provides IP address for
-     * this pod range
-     * 
- * - * string secondary_pod_range = 2; - * - * @param value The bytes for secondaryPodRange to set. - * @return This builder for chaining. - */ - public Builder setSecondaryPodRangeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - secondaryPodRange_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.container.v1beta1.MaxPodsConstraint maxPodsPerNode_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MaxPodsConstraint, - com.google.container.v1beta1.MaxPodsConstraint.Builder, - com.google.container.v1beta1.MaxPodsConstraintOrBuilder> - maxPodsPerNodeBuilder_; - /** - * - * - *
-     * The maximum number of pods per node which use this pod network
-     * 
- * - * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; - * - * @return Whether the maxPodsPerNode field is set. - */ - public boolean hasMaxPodsPerNode() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * The maximum number of pods per node which use this pod network
-     * 
- * - * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; - * - * @return The maxPodsPerNode. - */ - public com.google.container.v1beta1.MaxPodsConstraint getMaxPodsPerNode() { - if (maxPodsPerNodeBuilder_ == null) { - return maxPodsPerNode_ == null - ? com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance() - : maxPodsPerNode_; - } else { - return maxPodsPerNodeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The maximum number of pods per node which use this pod network
-     * 
- * - * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; - */ - public Builder setMaxPodsPerNode(com.google.container.v1beta1.MaxPodsConstraint value) { - if (maxPodsPerNodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - maxPodsPerNode_ = value; - } else { - maxPodsPerNodeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The maximum number of pods per node which use this pod network
-     * 
- * - * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; - */ - public Builder setMaxPodsPerNode( - com.google.container.v1beta1.MaxPodsConstraint.Builder builderForValue) { - if (maxPodsPerNodeBuilder_ == null) { - maxPodsPerNode_ = builderForValue.build(); - } else { - maxPodsPerNodeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The maximum number of pods per node which use this pod network
-     * 
- * - * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; - */ - public Builder mergeMaxPodsPerNode(com.google.container.v1beta1.MaxPodsConstraint value) { - if (maxPodsPerNodeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && maxPodsPerNode_ != null - && maxPodsPerNode_ - != com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance()) { - getMaxPodsPerNodeBuilder().mergeFrom(value); - } else { - maxPodsPerNode_ = value; - } - } else { - maxPodsPerNodeBuilder_.mergeFrom(value); - } - if (maxPodsPerNode_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The maximum number of pods per node which use this pod network
-     * 
- * - * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; - */ - public Builder clearMaxPodsPerNode() { - bitField0_ = (bitField0_ & ~0x00000004); - maxPodsPerNode_ = null; - if (maxPodsPerNodeBuilder_ != null) { - maxPodsPerNodeBuilder_.dispose(); - maxPodsPerNodeBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The maximum number of pods per node which use this pod network
-     * 
- * - * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; - */ - public com.google.container.v1beta1.MaxPodsConstraint.Builder getMaxPodsPerNodeBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getMaxPodsPerNodeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The maximum number of pods per node which use this pod network
-     * 
- * - * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; - */ - public com.google.container.v1beta1.MaxPodsConstraintOrBuilder getMaxPodsPerNodeOrBuilder() { - if (maxPodsPerNodeBuilder_ != null) { - return maxPodsPerNodeBuilder_.getMessageOrBuilder(); - } else { - return maxPodsPerNode_ == null - ? com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance() - : maxPodsPerNode_; - } - } - /** - * - * - *
-     * The maximum number of pods per node which use this pod network
-     * 
- * - * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MaxPodsConstraint, - com.google.container.v1beta1.MaxPodsConstraint.Builder, - com.google.container.v1beta1.MaxPodsConstraintOrBuilder> - getMaxPodsPerNodeFieldBuilder() { - if (maxPodsPerNodeBuilder_ == null) { - maxPodsPerNodeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MaxPodsConstraint, - com.google.container.v1beta1.MaxPodsConstraint.Builder, - com.google.container.v1beta1.MaxPodsConstraintOrBuilder>( - getMaxPodsPerNode(), getParentForChildren(), isClean()); - maxPodsPerNode_ = null; - } - return maxPodsPerNodeBuilder_; - } - - @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.AdditionalPodNetworkConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.AdditionalPodNetworkConfig) - private static final com.google.container.v1beta1.AdditionalPodNetworkConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.AdditionalPodNetworkConfig(); - } - - public static com.google.container.v1beta1.AdditionalPodNetworkConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AdditionalPodNetworkConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.AdditionalPodNetworkConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalPodNetworkConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalPodNetworkConfigOrBuilder.java deleted file mode 100644 index 35569a821b46..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalPodNetworkConfigOrBuilder.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface AdditionalPodNetworkConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.AdditionalPodNetworkConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Name of the subnetwork where the additional pod network belongs
-   * 
- * - * string subnetwork = 1; - * - * @return The subnetwork. - */ - java.lang.String getSubnetwork(); - /** - * - * - *
-   * Name of the subnetwork where the additional pod network belongs
-   * 
- * - * string subnetwork = 1; - * - * @return The bytes for subnetwork. - */ - com.google.protobuf.ByteString getSubnetworkBytes(); - - /** - * - * - *
-   * The name of the secondary range on the subnet which provides IP address for
-   * this pod range
-   * 
- * - * string secondary_pod_range = 2; - * - * @return The secondaryPodRange. - */ - java.lang.String getSecondaryPodRange(); - /** - * - * - *
-   * The name of the secondary range on the subnet which provides IP address for
-   * this pod range
-   * 
- * - * string secondary_pod_range = 2; - * - * @return The bytes for secondaryPodRange. - */ - com.google.protobuf.ByteString getSecondaryPodRangeBytes(); - - /** - * - * - *
-   * The maximum number of pods per node which use this pod network
-   * 
- * - * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; - * - * @return Whether the maxPodsPerNode field is set. - */ - boolean hasMaxPodsPerNode(); - /** - * - * - *
-   * The maximum number of pods per node which use this pod network
-   * 
- * - * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; - * - * @return The maxPodsPerNode. - */ - com.google.container.v1beta1.MaxPodsConstraint getMaxPodsPerNode(); - /** - * - * - *
-   * The maximum number of pods per node which use this pod network
-   * 
- * - * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; - */ - com.google.container.v1beta1.MaxPodsConstraintOrBuilder getMaxPodsPerNodeOrBuilder(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalPodRangesConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalPodRangesConfig.java deleted file mode 100644 index 3537c486dc43..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalPodRangesConfig.java +++ /dev/null @@ -1,1263 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * AdditionalPodRangesConfig is the configuration for additional pod secondary
- * ranges supporting the ClusterUpdate message.
- * 
- * - * Protobuf type {@code google.container.v1beta1.AdditionalPodRangesConfig} - */ -public final class AdditionalPodRangesConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.AdditionalPodRangesConfig) - AdditionalPodRangesConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use AdditionalPodRangesConfig.newBuilder() to construct. - private AdditionalPodRangesConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AdditionalPodRangesConfig() { - podRangeNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); - podRangeInfo_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AdditionalPodRangesConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_AdditionalPodRangesConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_AdditionalPodRangesConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.AdditionalPodRangesConfig.class, - com.google.container.v1beta1.AdditionalPodRangesConfig.Builder.class); - } - - public static final int POD_RANGE_NAMES_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList podRangeNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * Name for pod secondary ipv4 range which has the actual range defined ahead.
-   * 
- * - * repeated string pod_range_names = 1; - * - * @return A list containing the podRangeNames. - */ - public com.google.protobuf.ProtocolStringList getPodRangeNamesList() { - return podRangeNames_; - } - /** - * - * - *
-   * Name for pod secondary ipv4 range which has the actual range defined ahead.
-   * 
- * - * repeated string pod_range_names = 1; - * - * @return The count of podRangeNames. - */ - public int getPodRangeNamesCount() { - return podRangeNames_.size(); - } - /** - * - * - *
-   * Name for pod secondary ipv4 range which has the actual range defined ahead.
-   * 
- * - * repeated string pod_range_names = 1; - * - * @param index The index of the element to return. - * @return The podRangeNames at the given index. - */ - public java.lang.String getPodRangeNames(int index) { - return podRangeNames_.get(index); - } - /** - * - * - *
-   * Name for pod secondary ipv4 range which has the actual range defined ahead.
-   * 
- * - * repeated string pod_range_names = 1; - * - * @param index The index of the value to return. - * @return The bytes of the podRangeNames at the given index. - */ - public com.google.protobuf.ByteString getPodRangeNamesBytes(int index) { - return podRangeNames_.getByteString(index); - } - - public static final int POD_RANGE_INFO_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private java.util.List podRangeInfo_; - /** - * - * - *
-   * Output only. [Output only] Information for additional pod range.
-   * 
- * - * - * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List getPodRangeInfoList() { - return podRangeInfo_; - } - /** - * - * - *
-   * Output only. [Output only] Information for additional pod range.
-   * 
- * - * - * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getPodRangeInfoOrBuilderList() { - return podRangeInfo_; - } - /** - * - * - *
-   * Output only. [Output only] Information for additional pod range.
-   * 
- * - * - * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public int getPodRangeInfoCount() { - return podRangeInfo_.size(); - } - /** - * - * - *
-   * Output only. [Output only] Information for additional pod range.
-   * 
- * - * - * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.container.v1beta1.RangeInfo getPodRangeInfo(int index) { - return podRangeInfo_.get(index); - } - /** - * - * - *
-   * Output only. [Output only] Information for additional pod range.
-   * 
- * - * - * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.container.v1beta1.RangeInfoOrBuilder getPodRangeInfoOrBuilder(int index) { - return podRangeInfo_.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 < podRangeNames_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, podRangeNames_.getRaw(i)); - } - for (int i = 0; i < podRangeInfo_.size(); i++) { - output.writeMessage(2, podRangeInfo_.get(i)); - } - getUnknownFields().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 < podRangeNames_.size(); i++) { - dataSize += computeStringSizeNoTag(podRangeNames_.getRaw(i)); - } - size += dataSize; - size += 1 * getPodRangeNamesList().size(); - } - for (int i = 0; i < podRangeInfo_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, podRangeInfo_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.AdditionalPodRangesConfig)) { - return super.equals(obj); - } - com.google.container.v1beta1.AdditionalPodRangesConfig other = - (com.google.container.v1beta1.AdditionalPodRangesConfig) obj; - - if (!getPodRangeNamesList().equals(other.getPodRangeNamesList())) return false; - if (!getPodRangeInfoList().equals(other.getPodRangeInfoList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getPodRangeNamesCount() > 0) { - hash = (37 * hash) + POD_RANGE_NAMES_FIELD_NUMBER; - hash = (53 * hash) + getPodRangeNamesList().hashCode(); - } - if (getPodRangeInfoCount() > 0) { - hash = (37 * hash) + POD_RANGE_INFO_FIELD_NUMBER; - hash = (53 * hash) + getPodRangeInfoList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.AdditionalPodRangesConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.AdditionalPodRangesConfig parseFrom( - 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.AdditionalPodRangesConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.AdditionalPodRangesConfig parseFrom( - com.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.AdditionalPodRangesConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.AdditionalPodRangesConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.AdditionalPodRangesConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.AdditionalPodRangesConfig parseFrom( - java.io.InputStream 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.AdditionalPodRangesConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.AdditionalPodRangesConfig parseDelimitedFrom( - java.io.InputStream 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.AdditionalPodRangesConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.AdditionalPodRangesConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.AdditionalPodRangesConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * AdditionalPodRangesConfig is the configuration for additional pod secondary
-   * ranges supporting the ClusterUpdate message.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.AdditionalPodRangesConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.AdditionalPodRangesConfig) - com.google.container.v1beta1.AdditionalPodRangesConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_AdditionalPodRangesConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_AdditionalPodRangesConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.AdditionalPodRangesConfig.class, - com.google.container.v1beta1.AdditionalPodRangesConfig.Builder.class); - } - - // Construct using com.google.container.v1beta1.AdditionalPodRangesConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - podRangeNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); - if (podRangeInfoBuilder_ == null) { - podRangeInfo_ = java.util.Collections.emptyList(); - } else { - podRangeInfo_ = null; - podRangeInfoBuilder_.clear(); - } - 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_AdditionalPodRangesConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.AdditionalPodRangesConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.AdditionalPodRangesConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.AdditionalPodRangesConfig build() { - com.google.container.v1beta1.AdditionalPodRangesConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.AdditionalPodRangesConfig buildPartial() { - com.google.container.v1beta1.AdditionalPodRangesConfig result = - new com.google.container.v1beta1.AdditionalPodRangesConfig(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.container.v1beta1.AdditionalPodRangesConfig result) { - if (podRangeInfoBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - podRangeInfo_ = java.util.Collections.unmodifiableList(podRangeInfo_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.podRangeInfo_ = podRangeInfo_; - } else { - result.podRangeInfo_ = podRangeInfoBuilder_.build(); - } - } - - private void buildPartial0(com.google.container.v1beta1.AdditionalPodRangesConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - podRangeNames_.makeImmutable(); - result.podRangeNames_ = podRangeNames_; - } - } - - @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.AdditionalPodRangesConfig) { - return mergeFrom((com.google.container.v1beta1.AdditionalPodRangesConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.AdditionalPodRangesConfig other) { - if (other == com.google.container.v1beta1.AdditionalPodRangesConfig.getDefaultInstance()) - return this; - if (!other.podRangeNames_.isEmpty()) { - if (podRangeNames_.isEmpty()) { - podRangeNames_ = other.podRangeNames_; - bitField0_ |= 0x00000001; - } else { - ensurePodRangeNamesIsMutable(); - podRangeNames_.addAll(other.podRangeNames_); - } - onChanged(); - } - if (podRangeInfoBuilder_ == null) { - if (!other.podRangeInfo_.isEmpty()) { - if (podRangeInfo_.isEmpty()) { - podRangeInfo_ = other.podRangeInfo_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensurePodRangeInfoIsMutable(); - podRangeInfo_.addAll(other.podRangeInfo_); - } - onChanged(); - } - } else { - if (!other.podRangeInfo_.isEmpty()) { - if (podRangeInfoBuilder_.isEmpty()) { - podRangeInfoBuilder_.dispose(); - podRangeInfoBuilder_ = null; - podRangeInfo_ = other.podRangeInfo_; - bitField0_ = (bitField0_ & ~0x00000002); - podRangeInfoBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPodRangeInfoFieldBuilder() - : null; - } else { - podRangeInfoBuilder_.addAllMessages(other.podRangeInfo_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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(); - ensurePodRangeNamesIsMutable(); - podRangeNames_.add(s); - break; - } // case 10 - case 18: - { - com.google.container.v1beta1.RangeInfo m = - input.readMessage( - com.google.container.v1beta1.RangeInfo.parser(), extensionRegistry); - if (podRangeInfoBuilder_ == null) { - ensurePodRangeInfoIsMutable(); - podRangeInfo_.add(m); - } else { - podRangeInfoBuilder_.addMessage(m); - } - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.protobuf.LazyStringArrayList podRangeNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensurePodRangeNamesIsMutable() { - if (!podRangeNames_.isModifiable()) { - podRangeNames_ = new com.google.protobuf.LazyStringArrayList(podRangeNames_); - } - bitField0_ |= 0x00000001; - } - /** - * - * - *
-     * Name for pod secondary ipv4 range which has the actual range defined ahead.
-     * 
- * - * repeated string pod_range_names = 1; - * - * @return A list containing the podRangeNames. - */ - public com.google.protobuf.ProtocolStringList getPodRangeNamesList() { - podRangeNames_.makeImmutable(); - return podRangeNames_; - } - /** - * - * - *
-     * Name for pod secondary ipv4 range which has the actual range defined ahead.
-     * 
- * - * repeated string pod_range_names = 1; - * - * @return The count of podRangeNames. - */ - public int getPodRangeNamesCount() { - return podRangeNames_.size(); - } - /** - * - * - *
-     * Name for pod secondary ipv4 range which has the actual range defined ahead.
-     * 
- * - * repeated string pod_range_names = 1; - * - * @param index The index of the element to return. - * @return The podRangeNames at the given index. - */ - public java.lang.String getPodRangeNames(int index) { - return podRangeNames_.get(index); - } - /** - * - * - *
-     * Name for pod secondary ipv4 range which has the actual range defined ahead.
-     * 
- * - * repeated string pod_range_names = 1; - * - * @param index The index of the value to return. - * @return The bytes of the podRangeNames at the given index. - */ - public com.google.protobuf.ByteString getPodRangeNamesBytes(int index) { - return podRangeNames_.getByteString(index); - } - /** - * - * - *
-     * Name for pod secondary ipv4 range which has the actual range defined ahead.
-     * 
- * - * repeated string pod_range_names = 1; - * - * @param index The index to set the value at. - * @param value The podRangeNames to set. - * @return This builder for chaining. - */ - public Builder setPodRangeNames(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePodRangeNamesIsMutable(); - podRangeNames_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Name for pod secondary ipv4 range which has the actual range defined ahead.
-     * 
- * - * repeated string pod_range_names = 1; - * - * @param value The podRangeNames to add. - * @return This builder for chaining. - */ - public Builder addPodRangeNames(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePodRangeNamesIsMutable(); - podRangeNames_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Name for pod secondary ipv4 range which has the actual range defined ahead.
-     * 
- * - * repeated string pod_range_names = 1; - * - * @param values The podRangeNames to add. - * @return This builder for chaining. - */ - public Builder addAllPodRangeNames(java.lang.Iterable values) { - ensurePodRangeNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, podRangeNames_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Name for pod secondary ipv4 range which has the actual range defined ahead.
-     * 
- * - * repeated string pod_range_names = 1; - * - * @return This builder for chaining. - */ - public Builder clearPodRangeNames() { - podRangeNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; - onChanged(); - return this; - } - /** - * - * - *
-     * Name for pod secondary ipv4 range which has the actual range defined ahead.
-     * 
- * - * repeated string pod_range_names = 1; - * - * @param value The bytes of the podRangeNames to add. - * @return This builder for chaining. - */ - public Builder addPodRangeNamesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensurePodRangeNamesIsMutable(); - podRangeNames_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.util.List podRangeInfo_ = - java.util.Collections.emptyList(); - - private void ensurePodRangeInfoIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - podRangeInfo_ = - new java.util.ArrayList(podRangeInfo_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.RangeInfo, - com.google.container.v1beta1.RangeInfo.Builder, - com.google.container.v1beta1.RangeInfoOrBuilder> - podRangeInfoBuilder_; - - /** - * - * - *
-     * Output only. [Output only] Information for additional pod range.
-     * 
- * - * - * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List getPodRangeInfoList() { - if (podRangeInfoBuilder_ == null) { - return java.util.Collections.unmodifiableList(podRangeInfo_); - } else { - return podRangeInfoBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Output only. [Output only] Information for additional pod range.
-     * 
- * - * - * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public int getPodRangeInfoCount() { - if (podRangeInfoBuilder_ == null) { - return podRangeInfo_.size(); - } else { - return podRangeInfoBuilder_.getCount(); - } - } - /** - * - * - *
-     * Output only. [Output only] Information for additional pod range.
-     * 
- * - * - * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.container.v1beta1.RangeInfo getPodRangeInfo(int index) { - if (podRangeInfoBuilder_ == null) { - return podRangeInfo_.get(index); - } else { - return podRangeInfoBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Output only. [Output only] Information for additional pod range.
-     * 
- * - * - * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setPodRangeInfo(int index, com.google.container.v1beta1.RangeInfo value) { - if (podRangeInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePodRangeInfoIsMutable(); - podRangeInfo_.set(index, value); - onChanged(); - } else { - podRangeInfoBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. [Output only] Information for additional pod range.
-     * 
- * - * - * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setPodRangeInfo( - int index, com.google.container.v1beta1.RangeInfo.Builder builderForValue) { - if (podRangeInfoBuilder_ == null) { - ensurePodRangeInfoIsMutable(); - podRangeInfo_.set(index, builderForValue.build()); - onChanged(); - } else { - podRangeInfoBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. [Output only] Information for additional pod range.
-     * 
- * - * - * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addPodRangeInfo(com.google.container.v1beta1.RangeInfo value) { - if (podRangeInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePodRangeInfoIsMutable(); - podRangeInfo_.add(value); - onChanged(); - } else { - podRangeInfoBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Output only. [Output only] Information for additional pod range.
-     * 
- * - * - * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addPodRangeInfo(int index, com.google.container.v1beta1.RangeInfo value) { - if (podRangeInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePodRangeInfoIsMutable(); - podRangeInfo_.add(index, value); - onChanged(); - } else { - podRangeInfoBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. [Output only] Information for additional pod range.
-     * 
- * - * - * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addPodRangeInfo(com.google.container.v1beta1.RangeInfo.Builder builderForValue) { - if (podRangeInfoBuilder_ == null) { - ensurePodRangeInfoIsMutable(); - podRangeInfo_.add(builderForValue.build()); - onChanged(); - } else { - podRangeInfoBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. [Output only] Information for additional pod range.
-     * 
- * - * - * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addPodRangeInfo( - int index, com.google.container.v1beta1.RangeInfo.Builder builderForValue) { - if (podRangeInfoBuilder_ == null) { - ensurePodRangeInfoIsMutable(); - podRangeInfo_.add(index, builderForValue.build()); - onChanged(); - } else { - podRangeInfoBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. [Output only] Information for additional pod range.
-     * 
- * - * - * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addAllPodRangeInfo( - java.lang.Iterable values) { - if (podRangeInfoBuilder_ == null) { - ensurePodRangeInfoIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, podRangeInfo_); - onChanged(); - } else { - podRangeInfoBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Output only. [Output only] Information for additional pod range.
-     * 
- * - * - * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearPodRangeInfo() { - if (podRangeInfoBuilder_ == null) { - podRangeInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - podRangeInfoBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Output only. [Output only] Information for additional pod range.
-     * 
- * - * - * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder removePodRangeInfo(int index) { - if (podRangeInfoBuilder_ == null) { - ensurePodRangeInfoIsMutable(); - podRangeInfo_.remove(index); - onChanged(); - } else { - podRangeInfoBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Output only. [Output only] Information for additional pod range.
-     * 
- * - * - * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.container.v1beta1.RangeInfo.Builder getPodRangeInfoBuilder(int index) { - return getPodRangeInfoFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Output only. [Output only] Information for additional pod range.
-     * 
- * - * - * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.container.v1beta1.RangeInfoOrBuilder getPodRangeInfoOrBuilder(int index) { - if (podRangeInfoBuilder_ == null) { - return podRangeInfo_.get(index); - } else { - return podRangeInfoBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Output only. [Output only] Information for additional pod range.
-     * 
- * - * - * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getPodRangeInfoOrBuilderList() { - if (podRangeInfoBuilder_ != null) { - return podRangeInfoBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(podRangeInfo_); - } - } - /** - * - * - *
-     * Output only. [Output only] Information for additional pod range.
-     * 
- * - * - * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.container.v1beta1.RangeInfo.Builder addPodRangeInfoBuilder() { - return getPodRangeInfoFieldBuilder() - .addBuilder(com.google.container.v1beta1.RangeInfo.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. [Output only] Information for additional pod range.
-     * 
- * - * - * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.container.v1beta1.RangeInfo.Builder addPodRangeInfoBuilder(int index) { - return getPodRangeInfoFieldBuilder() - .addBuilder(index, com.google.container.v1beta1.RangeInfo.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. [Output only] Information for additional pod range.
-     * 
- * - * - * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getPodRangeInfoBuilderList() { - return getPodRangeInfoFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.RangeInfo, - com.google.container.v1beta1.RangeInfo.Builder, - com.google.container.v1beta1.RangeInfoOrBuilder> - getPodRangeInfoFieldBuilder() { - if (podRangeInfoBuilder_ == null) { - podRangeInfoBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.RangeInfo, - com.google.container.v1beta1.RangeInfo.Builder, - com.google.container.v1beta1.RangeInfoOrBuilder>( - podRangeInfo_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - podRangeInfo_ = null; - } - return podRangeInfoBuilder_; - } - - @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.AdditionalPodRangesConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.AdditionalPodRangesConfig) - private static final com.google.container.v1beta1.AdditionalPodRangesConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.AdditionalPodRangesConfig(); - } - - public static com.google.container.v1beta1.AdditionalPodRangesConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AdditionalPodRangesConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.AdditionalPodRangesConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalPodRangesConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalPodRangesConfigOrBuilder.java deleted file mode 100644 index 8bfa3df09663..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalPodRangesConfigOrBuilder.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface AdditionalPodRangesConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.AdditionalPodRangesConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Name for pod secondary ipv4 range which has the actual range defined ahead.
-   * 
- * - * repeated string pod_range_names = 1; - * - * @return A list containing the podRangeNames. - */ - java.util.List getPodRangeNamesList(); - /** - * - * - *
-   * Name for pod secondary ipv4 range which has the actual range defined ahead.
-   * 
- * - * repeated string pod_range_names = 1; - * - * @return The count of podRangeNames. - */ - int getPodRangeNamesCount(); - /** - * - * - *
-   * Name for pod secondary ipv4 range which has the actual range defined ahead.
-   * 
- * - * repeated string pod_range_names = 1; - * - * @param index The index of the element to return. - * @return The podRangeNames at the given index. - */ - java.lang.String getPodRangeNames(int index); - /** - * - * - *
-   * Name for pod secondary ipv4 range which has the actual range defined ahead.
-   * 
- * - * repeated string pod_range_names = 1; - * - * @param index The index of the value to return. - * @return The bytes of the podRangeNames at the given index. - */ - com.google.protobuf.ByteString getPodRangeNamesBytes(int index); - - /** - * - * - *
-   * Output only. [Output only] Information for additional pod range.
-   * 
- * - * - * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List getPodRangeInfoList(); - /** - * - * - *
-   * Output only. [Output only] Information for additional pod range.
-   * 
- * - * - * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.container.v1beta1.RangeInfo getPodRangeInfo(int index); - /** - * - * - *
-   * Output only. [Output only] Information for additional pod range.
-   * 
- * - * - * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - int getPodRangeInfoCount(); - /** - * - * - *
-   * Output only. [Output only] Information for additional pod range.
-   * 
- * - * - * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List - getPodRangeInfoOrBuilderList(); - /** - * - * - *
-   * Output only. [Output only] Information for additional pod range.
-   * 
- * - * - * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.container.v1beta1.RangeInfoOrBuilder getPodRangeInfoOrBuilder(int index); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfig.java deleted file mode 100644 index 8463aa88bc7f..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfig.java +++ /dev/null @@ -1,4668 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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); - } - - private int bitField0_; - 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 ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * 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 httpLoadBalancing_ == null - ? com.google.container.v1beta1.HttpLoadBalancing.getDefaultInstance() - : httpLoadBalancing_; - } - - 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 ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * 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 horizontalPodAutoscaling_ == null - ? com.google.container.v1beta1.HorizontalPodAutoscaling.getDefaultInstance() - : horizontalPodAutoscaling_; - } - - 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]; - * - * - * @deprecated google.container.v1beta1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1332 - * @return Whether the kubernetesDashboard field is set. - */ - @java.lang.Override - @java.lang.Deprecated - public boolean hasKubernetesDashboard() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-   * 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]; - * - * - * @deprecated google.container.v1beta1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1332 - * @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 kubernetesDashboard_ == null - ? com.google.container.v1beta1.KubernetesDashboard.getDefaultInstance() - : kubernetesDashboard_; - } - - 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 ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-   * 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 networkPolicyConfig_ == null - ? com.google.container.v1beta1.NetworkPolicyConfig.getDefaultInstance() - : networkPolicyConfig_; - } - - 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 [deprecated = true]; - * - * @deprecated google.container.v1beta1.AddonsConfig.istio_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1341 - * @return Whether the istioConfig field is set. - */ - @java.lang.Override - @java.lang.Deprecated - public boolean hasIstioConfig() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-   * Configuration for Istio, an open platform to connect, manage, and secure
-   * microservices.
-   * 
- * - * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; - * - * @deprecated google.container.v1beta1.AddonsConfig.istio_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1341 - * @return The istioConfig. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.container.v1beta1.IstioConfig getIstioConfig() { - return istioConfig_ == null - ? com.google.container.v1beta1.IstioConfig.getDefaultInstance() - : istioConfig_; - } - /** - * - * - *
-   * Configuration for Istio, an open platform to connect, manage, and secure
-   * microservices.
-   * 
- * - * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.container.v1beta1.IstioConfigOrBuilder getIstioConfigOrBuilder() { - return istioConfig_ == null - ? com.google.container.v1beta1.IstioConfig.getDefaultInstance() - : istioConfig_; - } - - 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 ((bitField0_ & 0x00000020) != 0); - } - /** - * - * - *
-   * 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 cloudRunConfig_ == null - ? com.google.container.v1beta1.CloudRunConfig.getDefaultInstance() - : cloudRunConfig_; - } - - 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 ((bitField0_ & 0x00000040) != 0); - } - /** - * - * - *
-   * 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 dnsCacheConfig_ == null - ? com.google.container.v1beta1.DnsCacheConfig.getDefaultInstance() - : dnsCacheConfig_; - } - - 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 ((bitField0_ & 0x00000080) != 0); - } - /** - * - * - *
-   * 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 configConnectorConfig_ == null - ? com.google.container.v1beta1.ConfigConnectorConfig.getDefaultInstance() - : configConnectorConfig_; - } - - 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 ((bitField0_ & 0x00000100) != 0); - } - /** - * - * - *
-   * 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 gcePersistentDiskCsiDriverConfig_ == null - ? com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.getDefaultInstance() - : gcePersistentDiskCsiDriverConfig_; - } - - 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 [deprecated = true]; - * - * @deprecated google.container.v1beta1.AddonsConfig.kalm_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1360 - * @return Whether the kalmConfig field is set. - */ - @java.lang.Override - @java.lang.Deprecated - public boolean hasKalmConfig() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * - * - *
-   * Configuration for the KALM addon, which manages the lifecycle of k8s
-   * applications.
-   * 
- * - * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; - * - * @deprecated google.container.v1beta1.AddonsConfig.kalm_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1360 - * @return The kalmConfig. - */ - @java.lang.Override - @java.lang.Deprecated - 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 [deprecated = true]; - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.container.v1beta1.KalmConfigOrBuilder getKalmConfigOrBuilder() { - return kalmConfig_ == null - ? com.google.container.v1beta1.KalmConfig.getDefaultInstance() - : kalmConfig_; - } - - public static final int GCP_FILESTORE_CSI_DRIVER_CONFIG_FIELD_NUMBER = 14; - private com.google.container.v1beta1.GcpFilestoreCsiDriverConfig gcpFilestoreCsiDriverConfig_; - /** - * - * - *
-   * Configuration for the GCP Filestore CSI driver.
-   * 
- * - * - * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * - * - * @return Whether the gcpFilestoreCsiDriverConfig field is set. - */ - @java.lang.Override - public boolean hasGcpFilestoreCsiDriverConfig() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - * - * - *
-   * Configuration for the GCP Filestore CSI driver.
-   * 
- * - * - * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * - * - * @return The gcpFilestoreCsiDriverConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.GcpFilestoreCsiDriverConfig getGcpFilestoreCsiDriverConfig() { - return gcpFilestoreCsiDriverConfig_ == null - ? com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.getDefaultInstance() - : gcpFilestoreCsiDriverConfig_; - } - /** - * - * - *
-   * Configuration for the GCP Filestore CSI driver.
-   * 
- * - * - * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * - */ - @java.lang.Override - public com.google.container.v1beta1.GcpFilestoreCsiDriverConfigOrBuilder - getGcpFilestoreCsiDriverConfigOrBuilder() { - return gcpFilestoreCsiDriverConfig_ == null - ? com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.getDefaultInstance() - : gcpFilestoreCsiDriverConfig_; - } - - public static final int GKE_BACKUP_AGENT_CONFIG_FIELD_NUMBER = 16; - private com.google.container.v1beta1.GkeBackupAgentConfig gkeBackupAgentConfig_; - /** - * - * - *
-   * Configuration for the Backup for GKE agent addon.
-   * 
- * - * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; - * - * @return Whether the gkeBackupAgentConfig field is set. - */ - @java.lang.Override - public boolean hasGkeBackupAgentConfig() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - * - * - *
-   * Configuration for the Backup for GKE agent addon.
-   * 
- * - * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; - * - * @return The gkeBackupAgentConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.GkeBackupAgentConfig getGkeBackupAgentConfig() { - return gkeBackupAgentConfig_ == null - ? com.google.container.v1beta1.GkeBackupAgentConfig.getDefaultInstance() - : gkeBackupAgentConfig_; - } - /** - * - * - *
-   * Configuration for the Backup for GKE agent addon.
-   * 
- * - * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; - */ - @java.lang.Override - public com.google.container.v1beta1.GkeBackupAgentConfigOrBuilder - getGkeBackupAgentConfigOrBuilder() { - return gkeBackupAgentConfig_ == null - ? com.google.container.v1beta1.GkeBackupAgentConfig.getDefaultInstance() - : gkeBackupAgentConfig_; - } - - public static final int GCS_FUSE_CSI_DRIVER_CONFIG_FIELD_NUMBER = 17; - private com.google.container.v1beta1.GcsFuseCsiDriverConfig gcsFuseCsiDriverConfig_; - /** - * - * - *
-   * Configuration for the Cloud Storage Fuse CSI driver.
-   * 
- * - * .google.container.v1beta1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; - * - * @return Whether the gcsFuseCsiDriverConfig field is set. - */ - @java.lang.Override - public boolean hasGcsFuseCsiDriverConfig() { - return ((bitField0_ & 0x00001000) != 0); - } - /** - * - * - *
-   * Configuration for the Cloud Storage Fuse CSI driver.
-   * 
- * - * .google.container.v1beta1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; - * - * @return The gcsFuseCsiDriverConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.GcsFuseCsiDriverConfig getGcsFuseCsiDriverConfig() { - return gcsFuseCsiDriverConfig_ == null - ? com.google.container.v1beta1.GcsFuseCsiDriverConfig.getDefaultInstance() - : gcsFuseCsiDriverConfig_; - } - /** - * - * - *
-   * Configuration for the Cloud Storage Fuse CSI driver.
-   * 
- * - * .google.container.v1beta1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; - */ - @java.lang.Override - public com.google.container.v1beta1.GcsFuseCsiDriverConfigOrBuilder - getGcsFuseCsiDriverConfigOrBuilder() { - return gcsFuseCsiDriverConfig_ == null - ? com.google.container.v1beta1.GcsFuseCsiDriverConfig.getDefaultInstance() - : gcsFuseCsiDriverConfig_; - } - - public static final int STATEFUL_HA_CONFIG_FIELD_NUMBER = 18; - private com.google.container.v1beta1.StatefulHAConfig statefulHaConfig_; - /** - * - * - *
-   * Optional. Configuration for the StatefulHA add-on.
-   * 
- * - * - * .google.container.v1beta1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the statefulHaConfig field is set. - */ - @java.lang.Override - public boolean hasStatefulHaConfig() { - return ((bitField0_ & 0x00002000) != 0); - } - /** - * - * - *
-   * Optional. Configuration for the StatefulHA add-on.
-   * 
- * - * - * .google.container.v1beta1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The statefulHaConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.StatefulHAConfig getStatefulHaConfig() { - return statefulHaConfig_ == null - ? com.google.container.v1beta1.StatefulHAConfig.getDefaultInstance() - : statefulHaConfig_; - } - /** - * - * - *
-   * Optional. Configuration for the StatefulHA add-on.
-   * 
- * - * - * .google.container.v1beta1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.container.v1beta1.StatefulHAConfigOrBuilder getStatefulHaConfigOrBuilder() { - return statefulHaConfig_ == null - ? com.google.container.v1beta1.StatefulHAConfig.getDefaultInstance() - : statefulHaConfig_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getHttpLoadBalancing()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getHorizontalPodAutoscaling()); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(3, getKubernetesDashboard()); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(4, getNetworkPolicyConfig()); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeMessage(5, getIstioConfig()); - } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeMessage(7, getCloudRunConfig()); - } - if (((bitField0_ & 0x00000040) != 0)) { - output.writeMessage(8, getDnsCacheConfig()); - } - if (((bitField0_ & 0x00000080) != 0)) { - output.writeMessage(10, getConfigConnectorConfig()); - } - if (((bitField0_ & 0x00000100) != 0)) { - output.writeMessage(11, getGcePersistentDiskCsiDriverConfig()); - } - if (((bitField0_ & 0x00000200) != 0)) { - output.writeMessage(12, getKalmConfig()); - } - if (((bitField0_ & 0x00000400) != 0)) { - output.writeMessage(14, getGcpFilestoreCsiDriverConfig()); - } - if (((bitField0_ & 0x00000800) != 0)) { - output.writeMessage(16, getGkeBackupAgentConfig()); - } - if (((bitField0_ & 0x00001000) != 0)) { - output.writeMessage(17, getGcsFuseCsiDriverConfig()); - } - if (((bitField0_ & 0x00002000) != 0)) { - output.writeMessage(18, getStatefulHaConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getHttpLoadBalancing()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, getHorizontalPodAutoscaling()); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getKubernetesDashboard()); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getNetworkPolicyConfig()); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getIstioConfig()); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCloudRunConfig()); - } - if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDnsCacheConfig()); - } - if (((bitField0_ & 0x00000080) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(10, getConfigConnectorConfig()); - } - if (((bitField0_ & 0x00000100) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 11, getGcePersistentDiskCsiDriverConfig()); - } - if (((bitField0_ & 0x00000200) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getKalmConfig()); - } - if (((bitField0_ & 0x00000400) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 14, getGcpFilestoreCsiDriverConfig()); - } - if (((bitField0_ & 0x00000800) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(16, getGkeBackupAgentConfig()); - } - if (((bitField0_ & 0x00001000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(17, getGcsFuseCsiDriverConfig()); - } - if (((bitField0_ & 0x00002000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getStatefulHaConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (hasGcpFilestoreCsiDriverConfig() != other.hasGcpFilestoreCsiDriverConfig()) return false; - if (hasGcpFilestoreCsiDriverConfig()) { - if (!getGcpFilestoreCsiDriverConfig().equals(other.getGcpFilestoreCsiDriverConfig())) - return false; - } - if (hasGkeBackupAgentConfig() != other.hasGkeBackupAgentConfig()) return false; - if (hasGkeBackupAgentConfig()) { - if (!getGkeBackupAgentConfig().equals(other.getGkeBackupAgentConfig())) return false; - } - if (hasGcsFuseCsiDriverConfig() != other.hasGcsFuseCsiDriverConfig()) return false; - if (hasGcsFuseCsiDriverConfig()) { - if (!getGcsFuseCsiDriverConfig().equals(other.getGcsFuseCsiDriverConfig())) return false; - } - if (hasStatefulHaConfig() != other.hasStatefulHaConfig()) return false; - if (hasStatefulHaConfig()) { - if (!getStatefulHaConfig().equals(other.getStatefulHaConfig())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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(); - } - if (hasGcpFilestoreCsiDriverConfig()) { - hash = (37 * hash) + GCP_FILESTORE_CSI_DRIVER_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getGcpFilestoreCsiDriverConfig().hashCode(); - } - if (hasGkeBackupAgentConfig()) { - hash = (37 * hash) + GKE_BACKUP_AGENT_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getGkeBackupAgentConfig().hashCode(); - } - if (hasGcsFuseCsiDriverConfig()) { - hash = (37 * hash) + GCS_FUSE_CSI_DRIVER_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getGcsFuseCsiDriverConfig().hashCode(); - } - if (hasStatefulHaConfig()) { - hash = (37 * hash) + STATEFUL_HA_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getStatefulHaConfig().hashCode(); - } - hash = (29 * hash) + getUnknownFields().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) { - getHttpLoadBalancingFieldBuilder(); - getHorizontalPodAutoscalingFieldBuilder(); - getKubernetesDashboardFieldBuilder(); - getNetworkPolicyConfigFieldBuilder(); - getIstioConfigFieldBuilder(); - getCloudRunConfigFieldBuilder(); - getDnsCacheConfigFieldBuilder(); - getConfigConnectorConfigFieldBuilder(); - getGcePersistentDiskCsiDriverConfigFieldBuilder(); - getKalmConfigFieldBuilder(); - getGcpFilestoreCsiDriverConfigFieldBuilder(); - getGkeBackupAgentConfigFieldBuilder(); - getGcsFuseCsiDriverConfigFieldBuilder(); - getStatefulHaConfigFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - httpLoadBalancing_ = null; - if (httpLoadBalancingBuilder_ != null) { - httpLoadBalancingBuilder_.dispose(); - httpLoadBalancingBuilder_ = null; - } - horizontalPodAutoscaling_ = null; - if (horizontalPodAutoscalingBuilder_ != null) { - horizontalPodAutoscalingBuilder_.dispose(); - horizontalPodAutoscalingBuilder_ = null; - } - kubernetesDashboard_ = null; - if (kubernetesDashboardBuilder_ != null) { - kubernetesDashboardBuilder_.dispose(); - kubernetesDashboardBuilder_ = null; - } - networkPolicyConfig_ = null; - if (networkPolicyConfigBuilder_ != null) { - networkPolicyConfigBuilder_.dispose(); - networkPolicyConfigBuilder_ = null; - } - istioConfig_ = null; - if (istioConfigBuilder_ != null) { - istioConfigBuilder_.dispose(); - istioConfigBuilder_ = null; - } - cloudRunConfig_ = null; - if (cloudRunConfigBuilder_ != null) { - cloudRunConfigBuilder_.dispose(); - cloudRunConfigBuilder_ = null; - } - dnsCacheConfig_ = null; - if (dnsCacheConfigBuilder_ != null) { - dnsCacheConfigBuilder_.dispose(); - dnsCacheConfigBuilder_ = null; - } - configConnectorConfig_ = null; - if (configConnectorConfigBuilder_ != null) { - configConnectorConfigBuilder_.dispose(); - configConnectorConfigBuilder_ = null; - } - gcePersistentDiskCsiDriverConfig_ = null; - if (gcePersistentDiskCsiDriverConfigBuilder_ != null) { - gcePersistentDiskCsiDriverConfigBuilder_.dispose(); - gcePersistentDiskCsiDriverConfigBuilder_ = null; - } - kalmConfig_ = null; - if (kalmConfigBuilder_ != null) { - kalmConfigBuilder_.dispose(); - kalmConfigBuilder_ = null; - } - gcpFilestoreCsiDriverConfig_ = null; - if (gcpFilestoreCsiDriverConfigBuilder_ != null) { - gcpFilestoreCsiDriverConfigBuilder_.dispose(); - gcpFilestoreCsiDriverConfigBuilder_ = null; - } - gkeBackupAgentConfig_ = null; - if (gkeBackupAgentConfigBuilder_ != null) { - gkeBackupAgentConfigBuilder_.dispose(); - gkeBackupAgentConfigBuilder_ = null; - } - gcsFuseCsiDriverConfig_ = null; - if (gcsFuseCsiDriverConfigBuilder_ != null) { - gcsFuseCsiDriverConfigBuilder_.dispose(); - gcsFuseCsiDriverConfigBuilder_ = null; - } - statefulHaConfig_ = null; - if (statefulHaConfigBuilder_ != null) { - statefulHaConfigBuilder_.dispose(); - statefulHaConfigBuilder_ = 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 (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.AddonsConfig result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.httpLoadBalancing_ = - httpLoadBalancingBuilder_ == null - ? httpLoadBalancing_ - : httpLoadBalancingBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.horizontalPodAutoscaling_ = - horizontalPodAutoscalingBuilder_ == null - ? horizontalPodAutoscaling_ - : horizontalPodAutoscalingBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.kubernetesDashboard_ = - kubernetesDashboardBuilder_ == null - ? kubernetesDashboard_ - : kubernetesDashboardBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.networkPolicyConfig_ = - networkPolicyConfigBuilder_ == null - ? networkPolicyConfig_ - : networkPolicyConfigBuilder_.build(); - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.istioConfig_ = - istioConfigBuilder_ == null ? istioConfig_ : istioConfigBuilder_.build(); - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.cloudRunConfig_ = - cloudRunConfigBuilder_ == null ? cloudRunConfig_ : cloudRunConfigBuilder_.build(); - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.dnsCacheConfig_ = - dnsCacheConfigBuilder_ == null ? dnsCacheConfig_ : dnsCacheConfigBuilder_.build(); - to_bitField0_ |= 0x00000040; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.configConnectorConfig_ = - configConnectorConfigBuilder_ == null - ? configConnectorConfig_ - : configConnectorConfigBuilder_.build(); - to_bitField0_ |= 0x00000080; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.gcePersistentDiskCsiDriverConfig_ = - gcePersistentDiskCsiDriverConfigBuilder_ == null - ? gcePersistentDiskCsiDriverConfig_ - : gcePersistentDiskCsiDriverConfigBuilder_.build(); - to_bitField0_ |= 0x00000100; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.kalmConfig_ = kalmConfigBuilder_ == null ? kalmConfig_ : kalmConfigBuilder_.build(); - to_bitField0_ |= 0x00000200; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.gcpFilestoreCsiDriverConfig_ = - gcpFilestoreCsiDriverConfigBuilder_ == null - ? gcpFilestoreCsiDriverConfig_ - : gcpFilestoreCsiDriverConfigBuilder_.build(); - to_bitField0_ |= 0x00000400; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.gkeBackupAgentConfig_ = - gkeBackupAgentConfigBuilder_ == null - ? gkeBackupAgentConfig_ - : gkeBackupAgentConfigBuilder_.build(); - to_bitField0_ |= 0x00000800; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.gcsFuseCsiDriverConfig_ = - gcsFuseCsiDriverConfigBuilder_ == null - ? gcsFuseCsiDriverConfig_ - : gcsFuseCsiDriverConfigBuilder_.build(); - to_bitField0_ |= 0x00001000; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.statefulHaConfig_ = - statefulHaConfigBuilder_ == null ? statefulHaConfig_ : statefulHaConfigBuilder_.build(); - to_bitField0_ |= 0x00002000; - } - result.bitField0_ |= to_bitField0_; - } - - @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()); - } - if (other.hasGcpFilestoreCsiDriverConfig()) { - mergeGcpFilestoreCsiDriverConfig(other.getGcpFilestoreCsiDriverConfig()); - } - if (other.hasGkeBackupAgentConfig()) { - mergeGkeBackupAgentConfig(other.getGkeBackupAgentConfig()); - } - if (other.hasGcsFuseCsiDriverConfig()) { - mergeGcsFuseCsiDriverConfig(other.getGcsFuseCsiDriverConfig()); - } - if (other.hasStatefulHaConfig()) { - mergeStatefulHaConfig(other.getStatefulHaConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage( - getHttpLoadBalancingFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - getHorizontalPodAutoscalingFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - getKubernetesDashboardFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage( - getNetworkPolicyConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage(getIstioConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 58: - { - input.readMessage(getCloudRunConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 58 - case 66: - { - input.readMessage(getDnsCacheConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 66 - case 82: - { - input.readMessage( - getConfigConnectorConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 82 - case 90: - { - input.readMessage( - getGcePersistentDiskCsiDriverConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 90 - case 98: - { - input.readMessage(getKalmConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 98 - case 114: - { - input.readMessage( - getGcpFilestoreCsiDriverConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; - break; - } // case 114 - case 130: - { - input.readMessage( - getGkeBackupAgentConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; - break; - } // case 130 - case 138: - { - input.readMessage( - getGcsFuseCsiDriverConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; - break; - } // case 138 - case 146: - { - input.readMessage( - getStatefulHaConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00002000; - break; - } // case 146 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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 ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * 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; - } else { - httpLoadBalancingBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - 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(); - } else { - httpLoadBalancingBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - 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 (((bitField0_ & 0x00000001) != 0) - && httpLoadBalancing_ != null - && httpLoadBalancing_ - != com.google.container.v1beta1.HttpLoadBalancing.getDefaultInstance()) { - getHttpLoadBalancingBuilder().mergeFrom(value); - } else { - httpLoadBalancing_ = value; - } - } else { - httpLoadBalancingBuilder_.mergeFrom(value); - } - if (httpLoadBalancing_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - 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() { - bitField0_ = (bitField0_ & ~0x00000001); - httpLoadBalancing_ = null; - if (httpLoadBalancingBuilder_ != null) { - httpLoadBalancingBuilder_.dispose(); - httpLoadBalancingBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000001; - 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 ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * 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; - } else { - horizontalPodAutoscalingBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - 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(); - } else { - horizontalPodAutoscalingBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - 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 (((bitField0_ & 0x00000002) != 0) - && horizontalPodAutoscaling_ != null - && horizontalPodAutoscaling_ - != com.google.container.v1beta1.HorizontalPodAutoscaling.getDefaultInstance()) { - getHorizontalPodAutoscalingBuilder().mergeFrom(value); - } else { - horizontalPodAutoscaling_ = value; - } - } else { - horizontalPodAutoscalingBuilder_.mergeFrom(value); - } - if (horizontalPodAutoscaling_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - 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() { - bitField0_ = (bitField0_ & ~0x00000002); - horizontalPodAutoscaling_ = null; - if (horizontalPodAutoscalingBuilder_ != null) { - horizontalPodAutoscalingBuilder_.dispose(); - horizontalPodAutoscalingBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000002; - 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]; - * - * - * @deprecated google.container.v1beta1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1332 - * @return Whether the kubernetesDashboard field is set. - */ - @java.lang.Deprecated - public boolean hasKubernetesDashboard() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * 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]; - * - * - * @deprecated google.container.v1beta1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1332 - * @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; - } else { - kubernetesDashboardBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - 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(); - } else { - kubernetesDashboardBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - 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 (((bitField0_ & 0x00000004) != 0) - && kubernetesDashboard_ != null - && kubernetesDashboard_ - != com.google.container.v1beta1.KubernetesDashboard.getDefaultInstance()) { - getKubernetesDashboardBuilder().mergeFrom(value); - } else { - kubernetesDashboard_ = value; - } - } else { - kubernetesDashboardBuilder_.mergeFrom(value); - } - if (kubernetesDashboard_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - 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() { - bitField0_ = (bitField0_ & ~0x00000004); - kubernetesDashboard_ = null; - if (kubernetesDashboardBuilder_ != null) { - kubernetesDashboardBuilder_.dispose(); - kubernetesDashboardBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000004; - 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 ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-     * 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; - } else { - networkPolicyConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - 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(); - } else { - networkPolicyConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - 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 (((bitField0_ & 0x00000008) != 0) - && networkPolicyConfig_ != null - && networkPolicyConfig_ - != com.google.container.v1beta1.NetworkPolicyConfig.getDefaultInstance()) { - getNetworkPolicyConfigBuilder().mergeFrom(value); - } else { - networkPolicyConfig_ = value; - } - } else { - networkPolicyConfigBuilder_.mergeFrom(value); - } - if (networkPolicyConfig_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - 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() { - bitField0_ = (bitField0_ & ~0x00000008); - networkPolicyConfig_ = null; - if (networkPolicyConfigBuilder_ != null) { - networkPolicyConfigBuilder_.dispose(); - networkPolicyConfigBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000008; - 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 [deprecated = true]; - * - * @deprecated google.container.v1beta1.AddonsConfig.istio_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1341 - * @return Whether the istioConfig field is set. - */ - @java.lang.Deprecated - public boolean hasIstioConfig() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-     * Configuration for Istio, an open platform to connect, manage, and secure
-     * microservices.
-     * 
- * - * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; - * - * @deprecated google.container.v1beta1.AddonsConfig.istio_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1341 - * @return The istioConfig. - */ - @java.lang.Deprecated - 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 [deprecated = true]; - */ - @java.lang.Deprecated - public Builder setIstioConfig(com.google.container.v1beta1.IstioConfig value) { - if (istioConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - istioConfig_ = value; - } else { - istioConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for Istio, an open platform to connect, manage, and secure
-     * microservices.
-     * 
- * - * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; - */ - @java.lang.Deprecated - public Builder setIstioConfig( - com.google.container.v1beta1.IstioConfig.Builder builderForValue) { - if (istioConfigBuilder_ == null) { - istioConfig_ = builderForValue.build(); - } else { - istioConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for Istio, an open platform to connect, manage, and secure
-     * microservices.
-     * 
- * - * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; - */ - @java.lang.Deprecated - public Builder mergeIstioConfig(com.google.container.v1beta1.IstioConfig value) { - if (istioConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && istioConfig_ != null - && istioConfig_ != com.google.container.v1beta1.IstioConfig.getDefaultInstance()) { - getIstioConfigBuilder().mergeFrom(value); - } else { - istioConfig_ = value; - } - } else { - istioConfigBuilder_.mergeFrom(value); - } - if (istioConfig_ != null) { - bitField0_ |= 0x00000010; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for Istio, an open platform to connect, manage, and secure
-     * microservices.
-     * 
- * - * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; - */ - @java.lang.Deprecated - public Builder clearIstioConfig() { - bitField0_ = (bitField0_ & ~0x00000010); - istioConfig_ = null; - if (istioConfigBuilder_ != null) { - istioConfigBuilder_.dispose(); - istioConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for Istio, an open platform to connect, manage, and secure
-     * microservices.
-     * 
- * - * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; - */ - @java.lang.Deprecated - public com.google.container.v1beta1.IstioConfig.Builder getIstioConfigBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getIstioConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for Istio, an open platform to connect, manage, and secure
-     * microservices.
-     * 
- * - * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; - */ - @java.lang.Deprecated - public com.google.container.v1beta1.IstioConfigOrBuilder getIstioConfigOrBuilder() { - if (istioConfigBuilder_ != null) { - return istioConfigBuilder_.getMessageOrBuilder(); - } 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 [deprecated = true]; - */ - 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 ((bitField0_ & 0x00000020) != 0); - } - /** - * - * - *
-     * 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; - } else { - cloudRunConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - 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(); - } else { - cloudRunConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - 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 (((bitField0_ & 0x00000020) != 0) - && cloudRunConfig_ != null - && cloudRunConfig_ - != com.google.container.v1beta1.CloudRunConfig.getDefaultInstance()) { - getCloudRunConfigBuilder().mergeFrom(value); - } else { - cloudRunConfig_ = value; - } - } else { - cloudRunConfigBuilder_.mergeFrom(value); - } - if (cloudRunConfig_ != null) { - bitField0_ |= 0x00000020; - onChanged(); - } - 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() { - bitField0_ = (bitField0_ & ~0x00000020); - cloudRunConfig_ = null; - if (cloudRunConfigBuilder_ != null) { - cloudRunConfigBuilder_.dispose(); - cloudRunConfigBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000020; - 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 ((bitField0_ & 0x00000040) != 0); - } - /** - * - * - *
-     * 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; - } else { - dnsCacheConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - onChanged(); - 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(); - } else { - dnsCacheConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - onChanged(); - 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 (((bitField0_ & 0x00000040) != 0) - && dnsCacheConfig_ != null - && dnsCacheConfig_ - != com.google.container.v1beta1.DnsCacheConfig.getDefaultInstance()) { - getDnsCacheConfigBuilder().mergeFrom(value); - } else { - dnsCacheConfig_ = value; - } - } else { - dnsCacheConfigBuilder_.mergeFrom(value); - } - if (dnsCacheConfig_ != null) { - bitField0_ |= 0x00000040; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-     * 
- * - * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; - */ - public Builder clearDnsCacheConfig() { - bitField0_ = (bitField0_ & ~0x00000040); - dnsCacheConfig_ = null; - if (dnsCacheConfigBuilder_ != null) { - dnsCacheConfigBuilder_.dispose(); - dnsCacheConfigBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000040; - 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 ((bitField0_ & 0x00000080) != 0); - } - /** - * - * - *
-     * 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; - } else { - configConnectorConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000080; - onChanged(); - 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(); - } else { - configConnectorConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000080; - onChanged(); - 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 (((bitField0_ & 0x00000080) != 0) - && configConnectorConfig_ != null - && configConnectorConfig_ - != com.google.container.v1beta1.ConfigConnectorConfig.getDefaultInstance()) { - getConfigConnectorConfigBuilder().mergeFrom(value); - } else { - configConnectorConfig_ = value; - } - } else { - configConnectorConfigBuilder_.mergeFrom(value); - } - if (configConnectorConfig_ != null) { - bitField0_ |= 0x00000080; - onChanged(); - } - 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() { - bitField0_ = (bitField0_ & ~0x00000080); - configConnectorConfig_ = null; - if (configConnectorConfigBuilder_ != null) { - configConnectorConfigBuilder_.dispose(); - configConnectorConfigBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000080; - 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 ((bitField0_ & 0x00000100) != 0); - } - /** - * - * - *
-     * 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; - } else { - gcePersistentDiskCsiDriverConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000100; - onChanged(); - 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(); - } else { - gcePersistentDiskCsiDriverConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000100; - onChanged(); - 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 (((bitField0_ & 0x00000100) != 0) - && gcePersistentDiskCsiDriverConfig_ != null - && gcePersistentDiskCsiDriverConfig_ - != com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig - .getDefaultInstance()) { - getGcePersistentDiskCsiDriverConfigBuilder().mergeFrom(value); - } else { - gcePersistentDiskCsiDriverConfig_ = value; - } - } else { - gcePersistentDiskCsiDriverConfigBuilder_.mergeFrom(value); - } - if (gcePersistentDiskCsiDriverConfig_ != null) { - bitField0_ |= 0x00000100; - onChanged(); - } - 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() { - bitField0_ = (bitField0_ & ~0x00000100); - gcePersistentDiskCsiDriverConfig_ = null; - if (gcePersistentDiskCsiDriverConfigBuilder_ != null) { - gcePersistentDiskCsiDriverConfigBuilder_.dispose(); - gcePersistentDiskCsiDriverConfigBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000100; - 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 [deprecated = true]; - * - * @deprecated google.container.v1beta1.AddonsConfig.kalm_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1360 - * @return Whether the kalmConfig field is set. - */ - @java.lang.Deprecated - public boolean hasKalmConfig() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * - * - *
-     * Configuration for the KALM addon, which manages the lifecycle of k8s
-     * applications.
-     * 
- * - * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; - * - * @deprecated google.container.v1beta1.AddonsConfig.kalm_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1360 - * @return The kalmConfig. - */ - @java.lang.Deprecated - 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 [deprecated = true]; - */ - @java.lang.Deprecated - public Builder setKalmConfig(com.google.container.v1beta1.KalmConfig value) { - if (kalmConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kalmConfig_ = value; - } else { - kalmConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the KALM addon, which manages the lifecycle of k8s
-     * applications.
-     * 
- * - * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; - */ - @java.lang.Deprecated - public Builder setKalmConfig(com.google.container.v1beta1.KalmConfig.Builder builderForValue) { - if (kalmConfigBuilder_ == null) { - kalmConfig_ = builderForValue.build(); - } else { - kalmConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the KALM addon, which manages the lifecycle of k8s
-     * applications.
-     * 
- * - * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; - */ - @java.lang.Deprecated - public Builder mergeKalmConfig(com.google.container.v1beta1.KalmConfig value) { - if (kalmConfigBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && kalmConfig_ != null - && kalmConfig_ != com.google.container.v1beta1.KalmConfig.getDefaultInstance()) { - getKalmConfigBuilder().mergeFrom(value); - } else { - kalmConfig_ = value; - } - } else { - kalmConfigBuilder_.mergeFrom(value); - } - if (kalmConfig_ != null) { - bitField0_ |= 0x00000200; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for the KALM addon, which manages the lifecycle of k8s
-     * applications.
-     * 
- * - * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; - */ - @java.lang.Deprecated - public Builder clearKalmConfig() { - bitField0_ = (bitField0_ & ~0x00000200); - kalmConfig_ = null; - if (kalmConfigBuilder_ != null) { - kalmConfigBuilder_.dispose(); - kalmConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the KALM addon, which manages the lifecycle of k8s
-     * applications.
-     * 
- * - * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; - */ - @java.lang.Deprecated - public com.google.container.v1beta1.KalmConfig.Builder getKalmConfigBuilder() { - bitField0_ |= 0x00000200; - onChanged(); - return getKalmConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for the KALM addon, which manages the lifecycle of k8s
-     * applications.
-     * 
- * - * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; - */ - @java.lang.Deprecated - 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 [deprecated = true]; - */ - 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_; - } - - private com.google.container.v1beta1.GcpFilestoreCsiDriverConfig gcpFilestoreCsiDriverConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GcpFilestoreCsiDriverConfig, - com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.Builder, - com.google.container.v1beta1.GcpFilestoreCsiDriverConfigOrBuilder> - gcpFilestoreCsiDriverConfigBuilder_; - /** - * - * - *
-     * Configuration for the GCP Filestore CSI driver.
-     * 
- * - * - * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * - * - * @return Whether the gcpFilestoreCsiDriverConfig field is set. - */ - public boolean hasGcpFilestoreCsiDriverConfig() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - * - * - *
-     * Configuration for the GCP Filestore CSI driver.
-     * 
- * - * - * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * - * - * @return The gcpFilestoreCsiDriverConfig. - */ - public com.google.container.v1beta1.GcpFilestoreCsiDriverConfig - getGcpFilestoreCsiDriverConfig() { - if (gcpFilestoreCsiDriverConfigBuilder_ == null) { - return gcpFilestoreCsiDriverConfig_ == null - ? com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.getDefaultInstance() - : gcpFilestoreCsiDriverConfig_; - } else { - return gcpFilestoreCsiDriverConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for the GCP Filestore CSI driver.
-     * 
- * - * - * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * - */ - public Builder setGcpFilestoreCsiDriverConfig( - com.google.container.v1beta1.GcpFilestoreCsiDriverConfig value) { - if (gcpFilestoreCsiDriverConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gcpFilestoreCsiDriverConfig_ = value; - } else { - gcpFilestoreCsiDriverConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the GCP Filestore CSI driver.
-     * 
- * - * - * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * - */ - public Builder setGcpFilestoreCsiDriverConfig( - com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.Builder builderForValue) { - if (gcpFilestoreCsiDriverConfigBuilder_ == null) { - gcpFilestoreCsiDriverConfig_ = builderForValue.build(); - } else { - gcpFilestoreCsiDriverConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the GCP Filestore CSI driver.
-     * 
- * - * - * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * - */ - public Builder mergeGcpFilestoreCsiDriverConfig( - com.google.container.v1beta1.GcpFilestoreCsiDriverConfig value) { - if (gcpFilestoreCsiDriverConfigBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) - && gcpFilestoreCsiDriverConfig_ != null - && gcpFilestoreCsiDriverConfig_ - != com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.getDefaultInstance()) { - getGcpFilestoreCsiDriverConfigBuilder().mergeFrom(value); - } else { - gcpFilestoreCsiDriverConfig_ = value; - } - } else { - gcpFilestoreCsiDriverConfigBuilder_.mergeFrom(value); - } - if (gcpFilestoreCsiDriverConfig_ != null) { - bitField0_ |= 0x00000400; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for the GCP Filestore CSI driver.
-     * 
- * - * - * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * - */ - public Builder clearGcpFilestoreCsiDriverConfig() { - bitField0_ = (bitField0_ & ~0x00000400); - gcpFilestoreCsiDriverConfig_ = null; - if (gcpFilestoreCsiDriverConfigBuilder_ != null) { - gcpFilestoreCsiDriverConfigBuilder_.dispose(); - gcpFilestoreCsiDriverConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the GCP Filestore CSI driver.
-     * 
- * - * - * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * - */ - public com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.Builder - getGcpFilestoreCsiDriverConfigBuilder() { - bitField0_ |= 0x00000400; - onChanged(); - return getGcpFilestoreCsiDriverConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for the GCP Filestore CSI driver.
-     * 
- * - * - * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * - */ - public com.google.container.v1beta1.GcpFilestoreCsiDriverConfigOrBuilder - getGcpFilestoreCsiDriverConfigOrBuilder() { - if (gcpFilestoreCsiDriverConfigBuilder_ != null) { - return gcpFilestoreCsiDriverConfigBuilder_.getMessageOrBuilder(); - } else { - return gcpFilestoreCsiDriverConfig_ == null - ? com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.getDefaultInstance() - : gcpFilestoreCsiDriverConfig_; - } - } - /** - * - * - *
-     * Configuration for the GCP Filestore CSI driver.
-     * 
- * - * - * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GcpFilestoreCsiDriverConfig, - com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.Builder, - com.google.container.v1beta1.GcpFilestoreCsiDriverConfigOrBuilder> - getGcpFilestoreCsiDriverConfigFieldBuilder() { - if (gcpFilestoreCsiDriverConfigBuilder_ == null) { - gcpFilestoreCsiDriverConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GcpFilestoreCsiDriverConfig, - com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.Builder, - com.google.container.v1beta1.GcpFilestoreCsiDriverConfigOrBuilder>( - getGcpFilestoreCsiDriverConfig(), getParentForChildren(), isClean()); - gcpFilestoreCsiDriverConfig_ = null; - } - return gcpFilestoreCsiDriverConfigBuilder_; - } - - private com.google.container.v1beta1.GkeBackupAgentConfig gkeBackupAgentConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GkeBackupAgentConfig, - com.google.container.v1beta1.GkeBackupAgentConfig.Builder, - com.google.container.v1beta1.GkeBackupAgentConfigOrBuilder> - gkeBackupAgentConfigBuilder_; - /** - * - * - *
-     * Configuration for the Backup for GKE agent addon.
-     * 
- * - * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; - * - * @return Whether the gkeBackupAgentConfig field is set. - */ - public boolean hasGkeBackupAgentConfig() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - * - * - *
-     * Configuration for the Backup for GKE agent addon.
-     * 
- * - * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; - * - * @return The gkeBackupAgentConfig. - */ - public com.google.container.v1beta1.GkeBackupAgentConfig getGkeBackupAgentConfig() { - if (gkeBackupAgentConfigBuilder_ == null) { - return gkeBackupAgentConfig_ == null - ? com.google.container.v1beta1.GkeBackupAgentConfig.getDefaultInstance() - : gkeBackupAgentConfig_; - } else { - return gkeBackupAgentConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for the Backup for GKE agent addon.
-     * 
- * - * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; - */ - public Builder setGkeBackupAgentConfig( - com.google.container.v1beta1.GkeBackupAgentConfig value) { - if (gkeBackupAgentConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gkeBackupAgentConfig_ = value; - } else { - gkeBackupAgentConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the Backup for GKE agent addon.
-     * 
- * - * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; - */ - public Builder setGkeBackupAgentConfig( - com.google.container.v1beta1.GkeBackupAgentConfig.Builder builderForValue) { - if (gkeBackupAgentConfigBuilder_ == null) { - gkeBackupAgentConfig_ = builderForValue.build(); - } else { - gkeBackupAgentConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the Backup for GKE agent addon.
-     * 
- * - * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; - */ - public Builder mergeGkeBackupAgentConfig( - com.google.container.v1beta1.GkeBackupAgentConfig value) { - if (gkeBackupAgentConfigBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) - && gkeBackupAgentConfig_ != null - && gkeBackupAgentConfig_ - != com.google.container.v1beta1.GkeBackupAgentConfig.getDefaultInstance()) { - getGkeBackupAgentConfigBuilder().mergeFrom(value); - } else { - gkeBackupAgentConfig_ = value; - } - } else { - gkeBackupAgentConfigBuilder_.mergeFrom(value); - } - if (gkeBackupAgentConfig_ != null) { - bitField0_ |= 0x00000800; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for the Backup for GKE agent addon.
-     * 
- * - * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; - */ - public Builder clearGkeBackupAgentConfig() { - bitField0_ = (bitField0_ & ~0x00000800); - gkeBackupAgentConfig_ = null; - if (gkeBackupAgentConfigBuilder_ != null) { - gkeBackupAgentConfigBuilder_.dispose(); - gkeBackupAgentConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the Backup for GKE agent addon.
-     * 
- * - * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; - */ - public com.google.container.v1beta1.GkeBackupAgentConfig.Builder - getGkeBackupAgentConfigBuilder() { - bitField0_ |= 0x00000800; - onChanged(); - return getGkeBackupAgentConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for the Backup for GKE agent addon.
-     * 
- * - * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; - */ - public com.google.container.v1beta1.GkeBackupAgentConfigOrBuilder - getGkeBackupAgentConfigOrBuilder() { - if (gkeBackupAgentConfigBuilder_ != null) { - return gkeBackupAgentConfigBuilder_.getMessageOrBuilder(); - } else { - return gkeBackupAgentConfig_ == null - ? com.google.container.v1beta1.GkeBackupAgentConfig.getDefaultInstance() - : gkeBackupAgentConfig_; - } - } - /** - * - * - *
-     * Configuration for the Backup for GKE agent addon.
-     * 
- * - * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GkeBackupAgentConfig, - com.google.container.v1beta1.GkeBackupAgentConfig.Builder, - com.google.container.v1beta1.GkeBackupAgentConfigOrBuilder> - getGkeBackupAgentConfigFieldBuilder() { - if (gkeBackupAgentConfigBuilder_ == null) { - gkeBackupAgentConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GkeBackupAgentConfig, - com.google.container.v1beta1.GkeBackupAgentConfig.Builder, - com.google.container.v1beta1.GkeBackupAgentConfigOrBuilder>( - getGkeBackupAgentConfig(), getParentForChildren(), isClean()); - gkeBackupAgentConfig_ = null; - } - return gkeBackupAgentConfigBuilder_; - } - - private com.google.container.v1beta1.GcsFuseCsiDriverConfig gcsFuseCsiDriverConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GcsFuseCsiDriverConfig, - com.google.container.v1beta1.GcsFuseCsiDriverConfig.Builder, - com.google.container.v1beta1.GcsFuseCsiDriverConfigOrBuilder> - gcsFuseCsiDriverConfigBuilder_; - /** - * - * - *
-     * Configuration for the Cloud Storage Fuse CSI driver.
-     * 
- * - * .google.container.v1beta1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; - * - * - * @return Whether the gcsFuseCsiDriverConfig field is set. - */ - public boolean hasGcsFuseCsiDriverConfig() { - return ((bitField0_ & 0x00001000) != 0); - } - /** - * - * - *
-     * Configuration for the Cloud Storage Fuse CSI driver.
-     * 
- * - * .google.container.v1beta1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; - * - * - * @return The gcsFuseCsiDriverConfig. - */ - public com.google.container.v1beta1.GcsFuseCsiDriverConfig getGcsFuseCsiDriverConfig() { - if (gcsFuseCsiDriverConfigBuilder_ == null) { - return gcsFuseCsiDriverConfig_ == null - ? com.google.container.v1beta1.GcsFuseCsiDriverConfig.getDefaultInstance() - : gcsFuseCsiDriverConfig_; - } else { - return gcsFuseCsiDriverConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for the Cloud Storage Fuse CSI driver.
-     * 
- * - * .google.container.v1beta1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; - * - */ - public Builder setGcsFuseCsiDriverConfig( - com.google.container.v1beta1.GcsFuseCsiDriverConfig value) { - if (gcsFuseCsiDriverConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gcsFuseCsiDriverConfig_ = value; - } else { - gcsFuseCsiDriverConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the Cloud Storage Fuse CSI driver.
-     * 
- * - * .google.container.v1beta1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; - * - */ - public Builder setGcsFuseCsiDriverConfig( - com.google.container.v1beta1.GcsFuseCsiDriverConfig.Builder builderForValue) { - if (gcsFuseCsiDriverConfigBuilder_ == null) { - gcsFuseCsiDriverConfig_ = builderForValue.build(); - } else { - gcsFuseCsiDriverConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the Cloud Storage Fuse CSI driver.
-     * 
- * - * .google.container.v1beta1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; - * - */ - public Builder mergeGcsFuseCsiDriverConfig( - com.google.container.v1beta1.GcsFuseCsiDriverConfig value) { - if (gcsFuseCsiDriverConfigBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) - && gcsFuseCsiDriverConfig_ != null - && gcsFuseCsiDriverConfig_ - != com.google.container.v1beta1.GcsFuseCsiDriverConfig.getDefaultInstance()) { - getGcsFuseCsiDriverConfigBuilder().mergeFrom(value); - } else { - gcsFuseCsiDriverConfig_ = value; - } - } else { - gcsFuseCsiDriverConfigBuilder_.mergeFrom(value); - } - if (gcsFuseCsiDriverConfig_ != null) { - bitField0_ |= 0x00001000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for the Cloud Storage Fuse CSI driver.
-     * 
- * - * .google.container.v1beta1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; - * - */ - public Builder clearGcsFuseCsiDriverConfig() { - bitField0_ = (bitField0_ & ~0x00001000); - gcsFuseCsiDriverConfig_ = null; - if (gcsFuseCsiDriverConfigBuilder_ != null) { - gcsFuseCsiDriverConfigBuilder_.dispose(); - gcsFuseCsiDriverConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the Cloud Storage Fuse CSI driver.
-     * 
- * - * .google.container.v1beta1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; - * - */ - public com.google.container.v1beta1.GcsFuseCsiDriverConfig.Builder - getGcsFuseCsiDriverConfigBuilder() { - bitField0_ |= 0x00001000; - onChanged(); - return getGcsFuseCsiDriverConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for the Cloud Storage Fuse CSI driver.
-     * 
- * - * .google.container.v1beta1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; - * - */ - public com.google.container.v1beta1.GcsFuseCsiDriverConfigOrBuilder - getGcsFuseCsiDriverConfigOrBuilder() { - if (gcsFuseCsiDriverConfigBuilder_ != null) { - return gcsFuseCsiDriverConfigBuilder_.getMessageOrBuilder(); - } else { - return gcsFuseCsiDriverConfig_ == null - ? com.google.container.v1beta1.GcsFuseCsiDriverConfig.getDefaultInstance() - : gcsFuseCsiDriverConfig_; - } - } - /** - * - * - *
-     * Configuration for the Cloud Storage Fuse CSI driver.
-     * 
- * - * .google.container.v1beta1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GcsFuseCsiDriverConfig, - com.google.container.v1beta1.GcsFuseCsiDriverConfig.Builder, - com.google.container.v1beta1.GcsFuseCsiDriverConfigOrBuilder> - getGcsFuseCsiDriverConfigFieldBuilder() { - if (gcsFuseCsiDriverConfigBuilder_ == null) { - gcsFuseCsiDriverConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GcsFuseCsiDriverConfig, - com.google.container.v1beta1.GcsFuseCsiDriverConfig.Builder, - com.google.container.v1beta1.GcsFuseCsiDriverConfigOrBuilder>( - getGcsFuseCsiDriverConfig(), getParentForChildren(), isClean()); - gcsFuseCsiDriverConfig_ = null; - } - return gcsFuseCsiDriverConfigBuilder_; - } - - private com.google.container.v1beta1.StatefulHAConfig statefulHaConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.StatefulHAConfig, - com.google.container.v1beta1.StatefulHAConfig.Builder, - com.google.container.v1beta1.StatefulHAConfigOrBuilder> - statefulHaConfigBuilder_; - /** - * - * - *
-     * Optional. Configuration for the StatefulHA add-on.
-     * 
- * - * - * .google.container.v1beta1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the statefulHaConfig field is set. - */ - public boolean hasStatefulHaConfig() { - return ((bitField0_ & 0x00002000) != 0); - } - /** - * - * - *
-     * Optional. Configuration for the StatefulHA add-on.
-     * 
- * - * - * .google.container.v1beta1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The statefulHaConfig. - */ - public com.google.container.v1beta1.StatefulHAConfig getStatefulHaConfig() { - if (statefulHaConfigBuilder_ == null) { - return statefulHaConfig_ == null - ? com.google.container.v1beta1.StatefulHAConfig.getDefaultInstance() - : statefulHaConfig_; - } else { - return statefulHaConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Configuration for the StatefulHA add-on.
-     * 
- * - * - * .google.container.v1beta1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setStatefulHaConfig(com.google.container.v1beta1.StatefulHAConfig value) { - if (statefulHaConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - statefulHaConfig_ = value; - } else { - statefulHaConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Configuration for the StatefulHA add-on.
-     * 
- * - * - * .google.container.v1beta1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setStatefulHaConfig( - com.google.container.v1beta1.StatefulHAConfig.Builder builderForValue) { - if (statefulHaConfigBuilder_ == null) { - statefulHaConfig_ = builderForValue.build(); - } else { - statefulHaConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Configuration for the StatefulHA add-on.
-     * 
- * - * - * .google.container.v1beta1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeStatefulHaConfig(com.google.container.v1beta1.StatefulHAConfig value) { - if (statefulHaConfigBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) - && statefulHaConfig_ != null - && statefulHaConfig_ - != com.google.container.v1beta1.StatefulHAConfig.getDefaultInstance()) { - getStatefulHaConfigBuilder().mergeFrom(value); - } else { - statefulHaConfig_ = value; - } - } else { - statefulHaConfigBuilder_.mergeFrom(value); - } - if (statefulHaConfig_ != null) { - bitField0_ |= 0x00002000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Optional. Configuration for the StatefulHA add-on.
-     * 
- * - * - * .google.container.v1beta1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearStatefulHaConfig() { - bitField0_ = (bitField0_ & ~0x00002000); - statefulHaConfig_ = null; - if (statefulHaConfigBuilder_ != null) { - statefulHaConfigBuilder_.dispose(); - statefulHaConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Configuration for the StatefulHA add-on.
-     * 
- * - * - * .google.container.v1beta1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.container.v1beta1.StatefulHAConfig.Builder getStatefulHaConfigBuilder() { - bitField0_ |= 0x00002000; - onChanged(); - return getStatefulHaConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Configuration for the StatefulHA add-on.
-     * 
- * - * - * .google.container.v1beta1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.container.v1beta1.StatefulHAConfigOrBuilder getStatefulHaConfigOrBuilder() { - if (statefulHaConfigBuilder_ != null) { - return statefulHaConfigBuilder_.getMessageOrBuilder(); - } else { - return statefulHaConfig_ == null - ? com.google.container.v1beta1.StatefulHAConfig.getDefaultInstance() - : statefulHaConfig_; - } - } - /** - * - * - *
-     * Optional. Configuration for the StatefulHA add-on.
-     * 
- * - * - * .google.container.v1beta1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.StatefulHAConfig, - com.google.container.v1beta1.StatefulHAConfig.Builder, - com.google.container.v1beta1.StatefulHAConfigOrBuilder> - getStatefulHaConfigFieldBuilder() { - if (statefulHaConfigBuilder_ == null) { - statefulHaConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.StatefulHAConfig, - com.google.container.v1beta1.StatefulHAConfig.Builder, - com.google.container.v1beta1.StatefulHAConfigOrBuilder>( - getStatefulHaConfig(), getParentForChildren(), isClean()); - statefulHaConfig_ = null; - } - return statefulHaConfigBuilder_; - } - - @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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfigOrBuilder.java deleted file mode 100644 index 4fbb05452b1e..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfigOrBuilder.java +++ /dev/null @@ -1,607 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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]; - * - * - * @deprecated google.container.v1beta1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1332 - * @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]; - * - * - * @deprecated google.container.v1beta1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1332 - * @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 [deprecated = true]; - * - * @deprecated google.container.v1beta1.AddonsConfig.istio_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1341 - * @return Whether the istioConfig field is set. - */ - @java.lang.Deprecated - boolean hasIstioConfig(); - /** - * - * - *
-   * Configuration for Istio, an open platform to connect, manage, and secure
-   * microservices.
-   * 
- * - * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; - * - * @deprecated google.container.v1beta1.AddonsConfig.istio_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1341 - * @return The istioConfig. - */ - @java.lang.Deprecated - 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 [deprecated = true]; - */ - @java.lang.Deprecated - 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 [deprecated = true]; - * - * @deprecated google.container.v1beta1.AddonsConfig.kalm_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1360 - * @return Whether the kalmConfig field is set. - */ - @java.lang.Deprecated - boolean hasKalmConfig(); - /** - * - * - *
-   * Configuration for the KALM addon, which manages the lifecycle of k8s
-   * applications.
-   * 
- * - * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; - * - * @deprecated google.container.v1beta1.AddonsConfig.kalm_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1360 - * @return The kalmConfig. - */ - @java.lang.Deprecated - 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 [deprecated = true]; - */ - @java.lang.Deprecated - com.google.container.v1beta1.KalmConfigOrBuilder getKalmConfigOrBuilder(); - - /** - * - * - *
-   * Configuration for the GCP Filestore CSI driver.
-   * 
- * - * - * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * - * - * @return Whether the gcpFilestoreCsiDriverConfig field is set. - */ - boolean hasGcpFilestoreCsiDriverConfig(); - /** - * - * - *
-   * Configuration for the GCP Filestore CSI driver.
-   * 
- * - * - * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * - * - * @return The gcpFilestoreCsiDriverConfig. - */ - com.google.container.v1beta1.GcpFilestoreCsiDriverConfig getGcpFilestoreCsiDriverConfig(); - /** - * - * - *
-   * Configuration for the GCP Filestore CSI driver.
-   * 
- * - * - * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * - */ - com.google.container.v1beta1.GcpFilestoreCsiDriverConfigOrBuilder - getGcpFilestoreCsiDriverConfigOrBuilder(); - - /** - * - * - *
-   * Configuration for the Backup for GKE agent addon.
-   * 
- * - * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; - * - * @return Whether the gkeBackupAgentConfig field is set. - */ - boolean hasGkeBackupAgentConfig(); - /** - * - * - *
-   * Configuration for the Backup for GKE agent addon.
-   * 
- * - * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; - * - * @return The gkeBackupAgentConfig. - */ - com.google.container.v1beta1.GkeBackupAgentConfig getGkeBackupAgentConfig(); - /** - * - * - *
-   * Configuration for the Backup for GKE agent addon.
-   * 
- * - * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; - */ - com.google.container.v1beta1.GkeBackupAgentConfigOrBuilder getGkeBackupAgentConfigOrBuilder(); - - /** - * - * - *
-   * Configuration for the Cloud Storage Fuse CSI driver.
-   * 
- * - * .google.container.v1beta1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; - * - * @return Whether the gcsFuseCsiDriverConfig field is set. - */ - boolean hasGcsFuseCsiDriverConfig(); - /** - * - * - *
-   * Configuration for the Cloud Storage Fuse CSI driver.
-   * 
- * - * .google.container.v1beta1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; - * - * @return The gcsFuseCsiDriverConfig. - */ - com.google.container.v1beta1.GcsFuseCsiDriverConfig getGcsFuseCsiDriverConfig(); - /** - * - * - *
-   * Configuration for the Cloud Storage Fuse CSI driver.
-   * 
- * - * .google.container.v1beta1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; - */ - com.google.container.v1beta1.GcsFuseCsiDriverConfigOrBuilder getGcsFuseCsiDriverConfigOrBuilder(); - - /** - * - * - *
-   * Optional. Configuration for the StatefulHA add-on.
-   * 
- * - * - * .google.container.v1beta1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the statefulHaConfig field is set. - */ - boolean hasStatefulHaConfig(); - /** - * - * - *
-   * Optional. Configuration for the StatefulHA add-on.
-   * 
- * - * - * .google.container.v1beta1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The statefulHaConfig. - */ - com.google.container.v1beta1.StatefulHAConfig getStatefulHaConfig(); - /** - * - * - *
-   * Optional. Configuration for the StatefulHA add-on.
-   * 
- * - * - * .google.container.v1beta1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.container.v1beta1.StatefulHAConfigOrBuilder getStatefulHaConfigOrBuilder(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdvancedDatapathObservabilityConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdvancedDatapathObservabilityConfig.java deleted file mode 100644 index a7e9fdc2a8df..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdvancedDatapathObservabilityConfig.java +++ /dev/null @@ -1,1030 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * AdvancedDatapathObservabilityConfig specifies configuration of observability
- * features of advanced datapath.
- * 
- * - * Protobuf type {@code google.container.v1beta1.AdvancedDatapathObservabilityConfig} - */ -public final class AdvancedDatapathObservabilityConfig - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.AdvancedDatapathObservabilityConfig) - AdvancedDatapathObservabilityConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use AdvancedDatapathObservabilityConfig.newBuilder() to construct. - private AdvancedDatapathObservabilityConfig( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AdvancedDatapathObservabilityConfig() { - relayMode_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AdvancedDatapathObservabilityConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_AdvancedDatapathObservabilityConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_AdvancedDatapathObservabilityConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.class, - com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.Builder.class); - } - - /** - * - * - *
-   * Supported Relay modes
-   * 
- * - * Protobuf enum {@code google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode} - */ - public enum RelayMode implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value. This shouldn't be used.
-     * 
- * - * RELAY_MODE_UNSPECIFIED = 0; - */ - RELAY_MODE_UNSPECIFIED(0), - /** - * - * - *
-     * disabled
-     * 
- * - * DISABLED = 1; - */ - DISABLED(1), - /** - * - * - *
-     * exposed via internal load balancer
-     * 
- * - * INTERNAL_VPC_LB = 3; - */ - INTERNAL_VPC_LB(3), - /** - * - * - *
-     * exposed via external load balancer
-     * 
- * - * EXTERNAL_LB = 4; - */ - EXTERNAL_LB(4), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value. This shouldn't be used.
-     * 
- * - * RELAY_MODE_UNSPECIFIED = 0; - */ - public static final int RELAY_MODE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * disabled
-     * 
- * - * DISABLED = 1; - */ - public static final int DISABLED_VALUE = 1; - /** - * - * - *
-     * exposed via internal load balancer
-     * 
- * - * INTERNAL_VPC_LB = 3; - */ - public static final int INTERNAL_VPC_LB_VALUE = 3; - /** - * - * - *
-     * exposed via external load balancer
-     * 
- * - * EXTERNAL_LB = 4; - */ - public static final int EXTERNAL_LB_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 RelayMode 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 RelayMode forNumber(int value) { - switch (value) { - case 0: - return RELAY_MODE_UNSPECIFIED; - case 1: - return DISABLED; - case 3: - return INTERNAL_VPC_LB; - case 4: - return EXTERNAL_LB; - 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 RelayMode findValueByNumber(int number) { - return RelayMode.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.AdvancedDatapathObservabilityConfig.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final RelayMode[] VALUES = values(); - - public static RelayMode 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 RelayMode(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode) - } - - private int bitField0_; - public static final int ENABLE_METRICS_FIELD_NUMBER = 1; - private boolean enableMetrics_ = false; - /** - * - * - *
-   * Expose flow metrics on nodes
-   * 
- * - * bool enable_metrics = 1; - * - * @return The enableMetrics. - */ - @java.lang.Override - public boolean getEnableMetrics() { - return enableMetrics_; - } - - public static final int RELAY_MODE_FIELD_NUMBER = 2; - private int relayMode_ = 0; - /** - * - * - *
-   * Method used to make Relay available
-   * 
- * - * .google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; - * - * - * @return The enum numeric value on the wire for relayMode. - */ - @java.lang.Override - public int getRelayModeValue() { - return relayMode_; - } - /** - * - * - *
-   * Method used to make Relay available
-   * 
- * - * .google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; - * - * - * @return The relayMode. - */ - @java.lang.Override - public com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode getRelayMode() { - com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode result = - com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode.forNumber( - relayMode_); - return result == null - ? com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode.UNRECOGNIZED - : result; - } - - public static final int ENABLE_RELAY_FIELD_NUMBER = 3; - private boolean enableRelay_ = false; - /** - * - * - *
-   * Enable Relay component
-   * 
- * - * optional bool enable_relay = 3; - * - * @return Whether the enableRelay field is set. - */ - @java.lang.Override - public boolean hasEnableRelay() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Enable Relay component
-   * 
- * - * optional bool enable_relay = 3; - * - * @return The enableRelay. - */ - @java.lang.Override - public boolean getEnableRelay() { - return enableRelay_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enableMetrics_ != false) { - output.writeBool(1, enableMetrics_); - } - if (relayMode_ - != com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode - .RELAY_MODE_UNSPECIFIED - .getNumber()) { - output.writeEnum(2, relayMode_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeBool(3, enableRelay_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (enableMetrics_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableMetrics_); - } - if (relayMode_ - != com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode - .RELAY_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, relayMode_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enableRelay_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.AdvancedDatapathObservabilityConfig)) { - return super.equals(obj); - } - com.google.container.v1beta1.AdvancedDatapathObservabilityConfig other = - (com.google.container.v1beta1.AdvancedDatapathObservabilityConfig) obj; - - if (getEnableMetrics() != other.getEnableMetrics()) return false; - if (relayMode_ != other.relayMode_) return false; - if (hasEnableRelay() != other.hasEnableRelay()) return false; - if (hasEnableRelay()) { - if (getEnableRelay() != other.getEnableRelay()) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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_METRICS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableMetrics()); - hash = (37 * hash) + RELAY_MODE_FIELD_NUMBER; - hash = (53 * hash) + relayMode_; - if (hasEnableRelay()) { - hash = (37 * hash) + ENABLE_RELAY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableRelay()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.AdvancedDatapathObservabilityConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.AdvancedDatapathObservabilityConfig parseFrom( - 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.AdvancedDatapathObservabilityConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.AdvancedDatapathObservabilityConfig parseFrom( - com.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.AdvancedDatapathObservabilityConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.AdvancedDatapathObservabilityConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.AdvancedDatapathObservabilityConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.AdvancedDatapathObservabilityConfig parseFrom( - java.io.InputStream 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.AdvancedDatapathObservabilityConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.AdvancedDatapathObservabilityConfig parseDelimitedFrom( - java.io.InputStream 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.AdvancedDatapathObservabilityConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.AdvancedDatapathObservabilityConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.AdvancedDatapathObservabilityConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * AdvancedDatapathObservabilityConfig specifies configuration of observability
-   * features of advanced datapath.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.AdvancedDatapathObservabilityConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.AdvancedDatapathObservabilityConfig) - com.google.container.v1beta1.AdvancedDatapathObservabilityConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_AdvancedDatapathObservabilityConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_AdvancedDatapathObservabilityConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.class, - com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.Builder.class); - } - - // Construct using com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enableMetrics_ = false; - relayMode_ = 0; - enableRelay_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_AdvancedDatapathObservabilityConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.AdvancedDatapathObservabilityConfig - getDefaultInstanceForType() { - return com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.AdvancedDatapathObservabilityConfig build() { - com.google.container.v1beta1.AdvancedDatapathObservabilityConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.AdvancedDatapathObservabilityConfig buildPartial() { - com.google.container.v1beta1.AdvancedDatapathObservabilityConfig result = - new com.google.container.v1beta1.AdvancedDatapathObservabilityConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.container.v1beta1.AdvancedDatapathObservabilityConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enableMetrics_ = enableMetrics_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.relayMode_ = relayMode_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.enableRelay_ = enableRelay_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @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.AdvancedDatapathObservabilityConfig) { - return mergeFrom((com.google.container.v1beta1.AdvancedDatapathObservabilityConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.container.v1beta1.AdvancedDatapathObservabilityConfig other) { - if (other - == com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.getDefaultInstance()) - return this; - if (other.getEnableMetrics() != false) { - setEnableMetrics(other.getEnableMetrics()); - } - if (other.relayMode_ != 0) { - setRelayModeValue(other.getRelayModeValue()); - } - if (other.hasEnableRelay()) { - setEnableRelay(other.getEnableRelay()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enableMetrics_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - relayMode_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - enableRelay_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean enableMetrics_; - /** - * - * - *
-     * Expose flow metrics on nodes
-     * 
- * - * bool enable_metrics = 1; - * - * @return The enableMetrics. - */ - @java.lang.Override - public boolean getEnableMetrics() { - return enableMetrics_; - } - /** - * - * - *
-     * Expose flow metrics on nodes
-     * 
- * - * bool enable_metrics = 1; - * - * @param value The enableMetrics to set. - * @return This builder for chaining. - */ - public Builder setEnableMetrics(boolean value) { - - enableMetrics_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Expose flow metrics on nodes
-     * 
- * - * bool enable_metrics = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnableMetrics() { - bitField0_ = (bitField0_ & ~0x00000001); - enableMetrics_ = false; - onChanged(); - return this; - } - - private int relayMode_ = 0; - /** - * - * - *
-     * Method used to make Relay available
-     * 
- * - * .google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; - * - * - * @return The enum numeric value on the wire for relayMode. - */ - @java.lang.Override - public int getRelayModeValue() { - return relayMode_; - } - /** - * - * - *
-     * Method used to make Relay available
-     * 
- * - * .google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; - * - * - * @param value The enum numeric value on the wire for relayMode to set. - * @return This builder for chaining. - */ - public Builder setRelayModeValue(int value) { - relayMode_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Method used to make Relay available
-     * 
- * - * .google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; - * - * - * @return The relayMode. - */ - @java.lang.Override - public com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode - getRelayMode() { - com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode result = - com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode.forNumber( - relayMode_); - return result == null - ? com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Method used to make Relay available
-     * 
- * - * .google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; - * - * - * @param value The relayMode to set. - * @return This builder for chaining. - */ - public Builder setRelayMode( - com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - relayMode_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Method used to make Relay available
-     * 
- * - * .google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; - * - * - * @return This builder for chaining. - */ - public Builder clearRelayMode() { - bitField0_ = (bitField0_ & ~0x00000002); - relayMode_ = 0; - onChanged(); - return this; - } - - private boolean enableRelay_; - /** - * - * - *
-     * Enable Relay component
-     * 
- * - * optional bool enable_relay = 3; - * - * @return Whether the enableRelay field is set. - */ - @java.lang.Override - public boolean hasEnableRelay() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * Enable Relay component
-     * 
- * - * optional bool enable_relay = 3; - * - * @return The enableRelay. - */ - @java.lang.Override - public boolean getEnableRelay() { - return enableRelay_; - } - /** - * - * - *
-     * Enable Relay component
-     * 
- * - * optional bool enable_relay = 3; - * - * @param value The enableRelay to set. - * @return This builder for chaining. - */ - public Builder setEnableRelay(boolean value) { - - enableRelay_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable Relay component
-     * 
- * - * optional bool enable_relay = 3; - * - * @return This builder for chaining. - */ - public Builder clearEnableRelay() { - bitField0_ = (bitField0_ & ~0x00000004); - enableRelay_ = 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.AdvancedDatapathObservabilityConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.AdvancedDatapathObservabilityConfig) - private static final com.google.container.v1beta1.AdvancedDatapathObservabilityConfig - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.AdvancedDatapathObservabilityConfig(); - } - - public static com.google.container.v1beta1.AdvancedDatapathObservabilityConfig - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AdvancedDatapathObservabilityConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.AdvancedDatapathObservabilityConfig - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdvancedDatapathObservabilityConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdvancedDatapathObservabilityConfigOrBuilder.java deleted file mode 100644 index 50982866f9fd..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdvancedDatapathObservabilityConfigOrBuilder.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface AdvancedDatapathObservabilityConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.AdvancedDatapathObservabilityConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Expose flow metrics on nodes
-   * 
- * - * bool enable_metrics = 1; - * - * @return The enableMetrics. - */ - boolean getEnableMetrics(); - - /** - * - * - *
-   * Method used to make Relay available
-   * 
- * - * .google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; - * - * - * @return The enum numeric value on the wire for relayMode. - */ - int getRelayModeValue(); - /** - * - * - *
-   * Method used to make Relay available
-   * 
- * - * .google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; - * - * - * @return The relayMode. - */ - com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode getRelayMode(); - - /** - * - * - *
-   * Enable Relay component
-   * 
- * - * optional bool enable_relay = 3; - * - * @return Whether the enableRelay field is set. - */ - boolean hasEnableRelay(); - /** - * - * - *
-   * Enable Relay component
-   * 
- * - * optional bool enable_relay = 3; - * - * @return The enableRelay. - */ - boolean getEnableRelay(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdvancedMachineFeatures.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdvancedMachineFeatures.java deleted file mode 100644 index e38e1463581a..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdvancedMachineFeatures.java +++ /dev/null @@ -1,586 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * Specifies options for controlling advanced machine features.
- * 
- * - * Protobuf type {@code google.container.v1beta1.AdvancedMachineFeatures} - */ -public final class AdvancedMachineFeatures extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.AdvancedMachineFeatures) - AdvancedMachineFeaturesOrBuilder { - private static final long serialVersionUID = 0L; - // Use AdvancedMachineFeatures.newBuilder() to construct. - private AdvancedMachineFeatures(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AdvancedMachineFeatures() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AdvancedMachineFeatures(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_AdvancedMachineFeatures_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_AdvancedMachineFeatures_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.AdvancedMachineFeatures.class, - com.google.container.v1beta1.AdvancedMachineFeatures.Builder.class); - } - - private int bitField0_; - public static final int THREADS_PER_CORE_FIELD_NUMBER = 1; - private long threadsPerCore_ = 0L; - /** - * - * - *
-   * The number of threads per physical core. To disable simultaneous
-   * multithreading (SMT) set this to 1. If unset, the maximum number of threads
-   * supported per core by the underlying processor is assumed.
-   * 
- * - * optional int64 threads_per_core = 1; - * - * @return Whether the threadsPerCore field is set. - */ - @java.lang.Override - public boolean hasThreadsPerCore() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * The number of threads per physical core. To disable simultaneous
-   * multithreading (SMT) set this to 1. If unset, the maximum number of threads
-   * supported per core by the underlying processor is assumed.
-   * 
- * - * optional int64 threads_per_core = 1; - * - * @return The threadsPerCore. - */ - @java.lang.Override - public long getThreadsPerCore() { - return threadsPerCore_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt64(1, threadsPerCore_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, threadsPerCore_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1beta1.AdvancedMachineFeatures)) { - return super.equals(obj); - } - com.google.container.v1beta1.AdvancedMachineFeatures other = - (com.google.container.v1beta1.AdvancedMachineFeatures) obj; - - if (hasThreadsPerCore() != other.hasThreadsPerCore()) return false; - if (hasThreadsPerCore()) { - if (getThreadsPerCore() != other.getThreadsPerCore()) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasThreadsPerCore()) { - hash = (37 * hash) + THREADS_PER_CORE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getThreadsPerCore()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.AdvancedMachineFeatures parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.AdvancedMachineFeatures parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.AdvancedMachineFeatures parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.AdvancedMachineFeatures parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.AdvancedMachineFeatures parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.AdvancedMachineFeatures parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.AdvancedMachineFeatures parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.AdvancedMachineFeatures parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.AdvancedMachineFeatures parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.AdvancedMachineFeatures parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.AdvancedMachineFeatures parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.AdvancedMachineFeatures parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1beta1.AdvancedMachineFeatures prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Specifies options for controlling advanced machine features.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.AdvancedMachineFeatures} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.AdvancedMachineFeatures) - com.google.container.v1beta1.AdvancedMachineFeaturesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_AdvancedMachineFeatures_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_AdvancedMachineFeatures_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.AdvancedMachineFeatures.class, - com.google.container.v1beta1.AdvancedMachineFeatures.Builder.class); - } - - // Construct using com.google.container.v1beta1.AdvancedMachineFeatures.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - threadsPerCore_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_AdvancedMachineFeatures_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.AdvancedMachineFeatures getDefaultInstanceForType() { - return com.google.container.v1beta1.AdvancedMachineFeatures.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.AdvancedMachineFeatures build() { - com.google.container.v1beta1.AdvancedMachineFeatures result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.AdvancedMachineFeatures buildPartial() { - com.google.container.v1beta1.AdvancedMachineFeatures result = - new com.google.container.v1beta1.AdvancedMachineFeatures(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.AdvancedMachineFeatures result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.threadsPerCore_ = threadsPerCore_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.AdvancedMachineFeatures) { - return mergeFrom((com.google.container.v1beta1.AdvancedMachineFeatures) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.AdvancedMachineFeatures other) { - if (other == com.google.container.v1beta1.AdvancedMachineFeatures.getDefaultInstance()) - return this; - if (other.hasThreadsPerCore()) { - setThreadsPerCore(other.getThreadsPerCore()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - threadsPerCore_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private long threadsPerCore_; - /** - * - * - *
-     * The number of threads per physical core. To disable simultaneous
-     * multithreading (SMT) set this to 1. If unset, the maximum number of threads
-     * supported per core by the underlying processor is assumed.
-     * 
- * - * optional int64 threads_per_core = 1; - * - * @return Whether the threadsPerCore field is set. - */ - @java.lang.Override - public boolean hasThreadsPerCore() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * The number of threads per physical core. To disable simultaneous
-     * multithreading (SMT) set this to 1. If unset, the maximum number of threads
-     * supported per core by the underlying processor is assumed.
-     * 
- * - * optional int64 threads_per_core = 1; - * - * @return The threadsPerCore. - */ - @java.lang.Override - public long getThreadsPerCore() { - return threadsPerCore_; - } - /** - * - * - *
-     * The number of threads per physical core. To disable simultaneous
-     * multithreading (SMT) set this to 1. If unset, the maximum number of threads
-     * supported per core by the underlying processor is assumed.
-     * 
- * - * optional int64 threads_per_core = 1; - * - * @param value The threadsPerCore to set. - * @return This builder for chaining. - */ - public Builder setThreadsPerCore(long value) { - - threadsPerCore_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The number of threads per physical core. To disable simultaneous
-     * multithreading (SMT) set this to 1. If unset, the maximum number of threads
-     * supported per core by the underlying processor is assumed.
-     * 
- * - * optional int64 threads_per_core = 1; - * - * @return This builder for chaining. - */ - public Builder clearThreadsPerCore() { - bitField0_ = (bitField0_ & ~0x00000001); - threadsPerCore_ = 0L; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.AdvancedMachineFeatures) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.AdvancedMachineFeatures) - private static final com.google.container.v1beta1.AdvancedMachineFeatures DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.AdvancedMachineFeatures(); - } - - public static com.google.container.v1beta1.AdvancedMachineFeatures getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AdvancedMachineFeatures parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1beta1.AdvancedMachineFeatures getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdvancedMachineFeaturesOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdvancedMachineFeaturesOrBuilder.java deleted file mode 100644 index d55dc2f74bac..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdvancedMachineFeaturesOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface AdvancedMachineFeaturesOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.AdvancedMachineFeatures) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The number of threads per physical core. To disable simultaneous
-   * multithreading (SMT) set this to 1. If unset, the maximum number of threads
-   * supported per core by the underlying processor is assumed.
-   * 
- * - * optional int64 threads_per_core = 1; - * - * @return Whether the threadsPerCore field is set. - */ - boolean hasThreadsPerCore(); - /** - * - * - *
-   * The number of threads per physical core. To disable simultaneous
-   * multithreading (SMT) set this to 1. If unset, the maximum number of threads
-   * supported per core by the underlying processor is assumed.
-   * 
- * - * optional int64 threads_per_core = 1; - * - * @return The threadsPerCore. - */ - long getThreadsPerCore(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AuthenticatorGroupsConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AuthenticatorGroupsConfig.java deleted file mode 100644 index 648e381e61cc..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AuthenticatorGroupsConfig.java +++ /dev/null @@ -1,730 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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_ = false; - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(securityGroup_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, securityGroup_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(securityGroup_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, securityGroup_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.AuthenticatorGroupsConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.securityGroup_ = securityGroup_; - } - } - - @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_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - securityGroup_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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() { - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000002; - 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(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AuthenticatorGroupsConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AuthenticatorGroupsConfigOrBuilder.java deleted file mode 100644 index da5bda2250ef..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AuthenticatorGroupsConfigOrBuilder.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoUpgradeOptions.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoUpgradeOptions.java deleted file mode 100644 index 5b16fa749d33..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoUpgradeOptions.java +++ /dev/null @@ -1,830 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(autoUpgradeStartTime_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, autoUpgradeStartTime_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(autoUpgradeStartTime_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, autoUpgradeStartTime_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.AutoUpgradeOptions result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.autoUpgradeStartTime_ = autoUpgradeStartTime_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.description_ = description_; - } - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - autoUpgradeStartTime_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - 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; - bitField0_ |= 0x00000002; - 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(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoUpgradeOptionsOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoUpgradeOptionsOrBuilder.java deleted file mode 100644 index c9dadd75f004..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoUpgradeOptionsOrBuilder.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Autopilot.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Autopilot.java deleted file mode 100644 index 76b6761048fd..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Autopilot.java +++ /dev/null @@ -1,1125 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * Autopilot is the configuration for Autopilot settings on the cluster.
- * 
- * - * Protobuf type {@code google.container.v1beta1.Autopilot} - */ -public final class Autopilot extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.Autopilot) - AutopilotOrBuilder { - private static final long serialVersionUID = 0L; - // Use Autopilot.newBuilder() to construct. - private Autopilot(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Autopilot() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Autopilot(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_Autopilot_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_Autopilot_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.Autopilot.class, - com.google.container.v1beta1.Autopilot.Builder.class); - } - - private int bitField0_; - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * Enable Autopilot
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - public static final int WORKLOAD_POLICY_CONFIG_FIELD_NUMBER = 2; - private com.google.container.v1beta1.WorkloadPolicyConfig workloadPolicyConfig_; - /** - * - * - *
-   * Workload policy configuration for Autopilot.
-   * 
- * - * .google.container.v1beta1.WorkloadPolicyConfig workload_policy_config = 2; - * - * @return Whether the workloadPolicyConfig field is set. - */ - @java.lang.Override - public boolean hasWorkloadPolicyConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Workload policy configuration for Autopilot.
-   * 
- * - * .google.container.v1beta1.WorkloadPolicyConfig workload_policy_config = 2; - * - * @return The workloadPolicyConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.WorkloadPolicyConfig getWorkloadPolicyConfig() { - return workloadPolicyConfig_ == null - ? com.google.container.v1beta1.WorkloadPolicyConfig.getDefaultInstance() - : workloadPolicyConfig_; - } - /** - * - * - *
-   * Workload policy configuration for Autopilot.
-   * 
- * - * .google.container.v1beta1.WorkloadPolicyConfig workload_policy_config = 2; - */ - @java.lang.Override - public com.google.container.v1beta1.WorkloadPolicyConfigOrBuilder - getWorkloadPolicyConfigOrBuilder() { - return workloadPolicyConfig_ == null - ? com.google.container.v1beta1.WorkloadPolicyConfig.getDefaultInstance() - : workloadPolicyConfig_; - } - - public static final int CONVERSION_STATUS_FIELD_NUMBER = 3; - private com.google.container.v1beta1.AutopilotConversionStatus conversionStatus_; - /** - * - * - *
-   * Output only. ConversionStatus shows conversion status.
-   * 
- * - * - * .google.container.v1beta1.AutopilotConversionStatus conversion_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the conversionStatus field is set. - */ - @java.lang.Override - public boolean hasConversionStatus() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * Output only. ConversionStatus shows conversion status.
-   * 
- * - * - * .google.container.v1beta1.AutopilotConversionStatus conversion_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The conversionStatus. - */ - @java.lang.Override - public com.google.container.v1beta1.AutopilotConversionStatus getConversionStatus() { - return conversionStatus_ == null - ? com.google.container.v1beta1.AutopilotConversionStatus.getDefaultInstance() - : conversionStatus_; - } - /** - * - * - *
-   * Output only. ConversionStatus shows conversion status.
-   * 
- * - * - * .google.container.v1beta1.AutopilotConversionStatus conversion_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.container.v1beta1.AutopilotConversionStatusOrBuilder - getConversionStatusOrBuilder() { - return conversionStatus_ == null - ? com.google.container.v1beta1.AutopilotConversionStatus.getDefaultInstance() - : conversionStatus_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getWorkloadPolicyConfig()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(3, getConversionStatus()); - } - getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, getWorkloadPolicyConfig()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConversionStatus()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.Autopilot)) { - return super.equals(obj); - } - com.google.container.v1beta1.Autopilot other = (com.google.container.v1beta1.Autopilot) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (hasWorkloadPolicyConfig() != other.hasWorkloadPolicyConfig()) return false; - if (hasWorkloadPolicyConfig()) { - if (!getWorkloadPolicyConfig().equals(other.getWorkloadPolicyConfig())) return false; - } - if (hasConversionStatus() != other.hasConversionStatus()) return false; - if (hasConversionStatus()) { - if (!getConversionStatus().equals(other.getConversionStatus())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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 (hasWorkloadPolicyConfig()) { - hash = (37 * hash) + WORKLOAD_POLICY_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getWorkloadPolicyConfig().hashCode(); - } - if (hasConversionStatus()) { - hash = (37 * hash) + CONVERSION_STATUS_FIELD_NUMBER; - hash = (53 * hash) + getConversionStatus().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.Autopilot parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.Autopilot parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.Autopilot parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.Autopilot parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.Autopilot parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.Autopilot parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.Autopilot parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.Autopilot parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.Autopilot parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.Autopilot parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.Autopilot parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.Autopilot parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1beta1.Autopilot prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Autopilot is the configuration for Autopilot settings on the cluster.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.Autopilot} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.Autopilot) - com.google.container.v1beta1.AutopilotOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_Autopilot_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_Autopilot_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.Autopilot.class, - com.google.container.v1beta1.Autopilot.Builder.class); - } - - // Construct using com.google.container.v1beta1.Autopilot.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getWorkloadPolicyConfigFieldBuilder(); - getConversionStatusFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enabled_ = false; - workloadPolicyConfig_ = null; - if (workloadPolicyConfigBuilder_ != null) { - workloadPolicyConfigBuilder_.dispose(); - workloadPolicyConfigBuilder_ = null; - } - conversionStatus_ = null; - if (conversionStatusBuilder_ != null) { - conversionStatusBuilder_.dispose(); - conversionStatusBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_Autopilot_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.Autopilot getDefaultInstanceForType() { - return com.google.container.v1beta1.Autopilot.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.Autopilot build() { - com.google.container.v1beta1.Autopilot result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.Autopilot buildPartial() { - com.google.container.v1beta1.Autopilot result = - new com.google.container.v1beta1.Autopilot(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.Autopilot result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.workloadPolicyConfig_ = - workloadPolicyConfigBuilder_ == null - ? workloadPolicyConfig_ - : workloadPolicyConfigBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.conversionStatus_ = - conversionStatusBuilder_ == null ? conversionStatus_ : conversionStatusBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @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.Autopilot) { - return mergeFrom((com.google.container.v1beta1.Autopilot) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.Autopilot other) { - if (other == com.google.container.v1beta1.Autopilot.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - if (other.hasWorkloadPolicyConfig()) { - mergeWorkloadPolicyConfig(other.getWorkloadPolicyConfig()); - } - if (other.hasConversionStatus()) { - mergeConversionStatus(other.getConversionStatus()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - input.readMessage( - getWorkloadPolicyConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - getConversionStatusFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean enabled_; - /** - * - * - *
-     * Enable Autopilot
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Enable Autopilot
-     * 
- * - * bool enabled = 1; - * - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable Autopilot
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - enabled_ = false; - onChanged(); - return this; - } - - private com.google.container.v1beta1.WorkloadPolicyConfig workloadPolicyConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WorkloadPolicyConfig, - com.google.container.v1beta1.WorkloadPolicyConfig.Builder, - com.google.container.v1beta1.WorkloadPolicyConfigOrBuilder> - workloadPolicyConfigBuilder_; - /** - * - * - *
-     * Workload policy configuration for Autopilot.
-     * 
- * - * .google.container.v1beta1.WorkloadPolicyConfig workload_policy_config = 2; - * - * @return Whether the workloadPolicyConfig field is set. - */ - public boolean hasWorkloadPolicyConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * Workload policy configuration for Autopilot.
-     * 
- * - * .google.container.v1beta1.WorkloadPolicyConfig workload_policy_config = 2; - * - * @return The workloadPolicyConfig. - */ - public com.google.container.v1beta1.WorkloadPolicyConfig getWorkloadPolicyConfig() { - if (workloadPolicyConfigBuilder_ == null) { - return workloadPolicyConfig_ == null - ? com.google.container.v1beta1.WorkloadPolicyConfig.getDefaultInstance() - : workloadPolicyConfig_; - } else { - return workloadPolicyConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Workload policy configuration for Autopilot.
-     * 
- * - * .google.container.v1beta1.WorkloadPolicyConfig workload_policy_config = 2; - */ - public Builder setWorkloadPolicyConfig( - com.google.container.v1beta1.WorkloadPolicyConfig value) { - if (workloadPolicyConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workloadPolicyConfig_ = value; - } else { - workloadPolicyConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Workload policy configuration for Autopilot.
-     * 
- * - * .google.container.v1beta1.WorkloadPolicyConfig workload_policy_config = 2; - */ - public Builder setWorkloadPolicyConfig( - com.google.container.v1beta1.WorkloadPolicyConfig.Builder builderForValue) { - if (workloadPolicyConfigBuilder_ == null) { - workloadPolicyConfig_ = builderForValue.build(); - } else { - workloadPolicyConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Workload policy configuration for Autopilot.
-     * 
- * - * .google.container.v1beta1.WorkloadPolicyConfig workload_policy_config = 2; - */ - public Builder mergeWorkloadPolicyConfig( - com.google.container.v1beta1.WorkloadPolicyConfig value) { - if (workloadPolicyConfigBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && workloadPolicyConfig_ != null - && workloadPolicyConfig_ - != com.google.container.v1beta1.WorkloadPolicyConfig.getDefaultInstance()) { - getWorkloadPolicyConfigBuilder().mergeFrom(value); - } else { - workloadPolicyConfig_ = value; - } - } else { - workloadPolicyConfigBuilder_.mergeFrom(value); - } - if (workloadPolicyConfig_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Workload policy configuration for Autopilot.
-     * 
- * - * .google.container.v1beta1.WorkloadPolicyConfig workload_policy_config = 2; - */ - public Builder clearWorkloadPolicyConfig() { - bitField0_ = (bitField0_ & ~0x00000002); - workloadPolicyConfig_ = null; - if (workloadPolicyConfigBuilder_ != null) { - workloadPolicyConfigBuilder_.dispose(); - workloadPolicyConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Workload policy configuration for Autopilot.
-     * 
- * - * .google.container.v1beta1.WorkloadPolicyConfig workload_policy_config = 2; - */ - public com.google.container.v1beta1.WorkloadPolicyConfig.Builder - getWorkloadPolicyConfigBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getWorkloadPolicyConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Workload policy configuration for Autopilot.
-     * 
- * - * .google.container.v1beta1.WorkloadPolicyConfig workload_policy_config = 2; - */ - public com.google.container.v1beta1.WorkloadPolicyConfigOrBuilder - getWorkloadPolicyConfigOrBuilder() { - if (workloadPolicyConfigBuilder_ != null) { - return workloadPolicyConfigBuilder_.getMessageOrBuilder(); - } else { - return workloadPolicyConfig_ == null - ? com.google.container.v1beta1.WorkloadPolicyConfig.getDefaultInstance() - : workloadPolicyConfig_; - } - } - /** - * - * - *
-     * Workload policy configuration for Autopilot.
-     * 
- * - * .google.container.v1beta1.WorkloadPolicyConfig workload_policy_config = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WorkloadPolicyConfig, - com.google.container.v1beta1.WorkloadPolicyConfig.Builder, - com.google.container.v1beta1.WorkloadPolicyConfigOrBuilder> - getWorkloadPolicyConfigFieldBuilder() { - if (workloadPolicyConfigBuilder_ == null) { - workloadPolicyConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WorkloadPolicyConfig, - com.google.container.v1beta1.WorkloadPolicyConfig.Builder, - com.google.container.v1beta1.WorkloadPolicyConfigOrBuilder>( - getWorkloadPolicyConfig(), getParentForChildren(), isClean()); - workloadPolicyConfig_ = null; - } - return workloadPolicyConfigBuilder_; - } - - private com.google.container.v1beta1.AutopilotConversionStatus conversionStatus_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AutopilotConversionStatus, - com.google.container.v1beta1.AutopilotConversionStatus.Builder, - com.google.container.v1beta1.AutopilotConversionStatusOrBuilder> - conversionStatusBuilder_; - /** - * - * - *
-     * Output only. ConversionStatus shows conversion status.
-     * 
- * - * - * .google.container.v1beta1.AutopilotConversionStatus conversion_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the conversionStatus field is set. - */ - public boolean hasConversionStatus() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * Output only. ConversionStatus shows conversion status.
-     * 
- * - * - * .google.container.v1beta1.AutopilotConversionStatus conversion_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The conversionStatus. - */ - public com.google.container.v1beta1.AutopilotConversionStatus getConversionStatus() { - if (conversionStatusBuilder_ == null) { - return conversionStatus_ == null - ? com.google.container.v1beta1.AutopilotConversionStatus.getDefaultInstance() - : conversionStatus_; - } else { - return conversionStatusBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. ConversionStatus shows conversion status.
-     * 
- * - * - * .google.container.v1beta1.AutopilotConversionStatus conversion_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setConversionStatus( - com.google.container.v1beta1.AutopilotConversionStatus value) { - if (conversionStatusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - conversionStatus_ = value; - } else { - conversionStatusBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. ConversionStatus shows conversion status.
-     * 
- * - * - * .google.container.v1beta1.AutopilotConversionStatus conversion_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setConversionStatus( - com.google.container.v1beta1.AutopilotConversionStatus.Builder builderForValue) { - if (conversionStatusBuilder_ == null) { - conversionStatus_ = builderForValue.build(); - } else { - conversionStatusBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. ConversionStatus shows conversion status.
-     * 
- * - * - * .google.container.v1beta1.AutopilotConversionStatus conversion_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeConversionStatus( - com.google.container.v1beta1.AutopilotConversionStatus value) { - if (conversionStatusBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && conversionStatus_ != null - && conversionStatus_ - != com.google.container.v1beta1.AutopilotConversionStatus.getDefaultInstance()) { - getConversionStatusBuilder().mergeFrom(value); - } else { - conversionStatus_ = value; - } - } else { - conversionStatusBuilder_.mergeFrom(value); - } - if (conversionStatus_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Output only. ConversionStatus shows conversion status.
-     * 
- * - * - * .google.container.v1beta1.AutopilotConversionStatus conversion_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearConversionStatus() { - bitField0_ = (bitField0_ & ~0x00000004); - conversionStatus_ = null; - if (conversionStatusBuilder_ != null) { - conversionStatusBuilder_.dispose(); - conversionStatusBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. ConversionStatus shows conversion status.
-     * 
- * - * - * .google.container.v1beta1.AutopilotConversionStatus conversion_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.container.v1beta1.AutopilotConversionStatus.Builder - getConversionStatusBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getConversionStatusFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. ConversionStatus shows conversion status.
-     * 
- * - * - * .google.container.v1beta1.AutopilotConversionStatus conversion_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.container.v1beta1.AutopilotConversionStatusOrBuilder - getConversionStatusOrBuilder() { - if (conversionStatusBuilder_ != null) { - return conversionStatusBuilder_.getMessageOrBuilder(); - } else { - return conversionStatus_ == null - ? com.google.container.v1beta1.AutopilotConversionStatus.getDefaultInstance() - : conversionStatus_; - } - } - /** - * - * - *
-     * Output only. ConversionStatus shows conversion status.
-     * 
- * - * - * .google.container.v1beta1.AutopilotConversionStatus conversion_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AutopilotConversionStatus, - com.google.container.v1beta1.AutopilotConversionStatus.Builder, - com.google.container.v1beta1.AutopilotConversionStatusOrBuilder> - getConversionStatusFieldBuilder() { - if (conversionStatusBuilder_ == null) { - conversionStatusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AutopilotConversionStatus, - com.google.container.v1beta1.AutopilotConversionStatus.Builder, - com.google.container.v1beta1.AutopilotConversionStatusOrBuilder>( - getConversionStatus(), getParentForChildren(), isClean()); - conversionStatus_ = null; - } - return conversionStatusBuilder_; - } - - @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.Autopilot) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.Autopilot) - private static final com.google.container.v1beta1.Autopilot DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.Autopilot(); - } - - public static com.google.container.v1beta1.Autopilot getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Autopilot parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.Autopilot getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutopilotCompatibilityIssue.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutopilotCompatibilityIssue.java deleted file mode 100644 index 086d505ea973..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutopilotCompatibilityIssue.java +++ /dev/null @@ -1,1911 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * AutopilotCompatibilityIssue contains information about a specific
- * compatibility issue with Autopilot mode.
- * 
- * - * Protobuf type {@code google.container.v1beta1.AutopilotCompatibilityIssue} - */ -public final class AutopilotCompatibilityIssue extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.AutopilotCompatibilityIssue) - AutopilotCompatibilityIssueOrBuilder { - private static final long serialVersionUID = 0L; - // Use AutopilotCompatibilityIssue.newBuilder() to construct. - private AutopilotCompatibilityIssue(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AutopilotCompatibilityIssue() { - constraintType_ = ""; - incompatibilityType_ = 0; - subjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); - documentationUrl_ = ""; - description_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AutopilotCompatibilityIssue(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_AutopilotCompatibilityIssue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_AutopilotCompatibilityIssue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.AutopilotCompatibilityIssue.class, - com.google.container.v1beta1.AutopilotCompatibilityIssue.Builder.class); - } - - /** - * - * - *
-   * The type of the reported issue.
-   * 
- * - * Protobuf enum {@code google.container.v1beta1.AutopilotCompatibilityIssue.IssueType} - */ - public enum IssueType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value, should not be used.
-     * 
- * - * UNSPECIFIED = 0; - */ - UNSPECIFIED(0), - /** - * - * - *
-     * Indicates that the issue is a known incompatibility between the
-     * cluster and Autopilot mode.
-     * 
- * - * INCOMPATIBILITY = 1; - */ - INCOMPATIBILITY(1), - /** - * - * - *
-     * Indicates the issue is an incompatibility if customers take no further
-     * action to resolve.
-     * 
- * - * ADDITIONAL_CONFIG_REQUIRED = 2; - */ - ADDITIONAL_CONFIG_REQUIRED(2), - /** - * - * - *
-     * Indicates the issue is not an incompatibility, but depending on the
-     * workloads business logic, there is a potential that they won't work on
-     * Autopilot.
-     * 
- * - * PASSED_WITH_OPTIONAL_CONFIG = 3; - */ - PASSED_WITH_OPTIONAL_CONFIG(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value, should not be used.
-     * 
- * - * UNSPECIFIED = 0; - */ - public static final int UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Indicates that the issue is a known incompatibility between the
-     * cluster and Autopilot mode.
-     * 
- * - * INCOMPATIBILITY = 1; - */ - public static final int INCOMPATIBILITY_VALUE = 1; - /** - * - * - *
-     * Indicates the issue is an incompatibility if customers take no further
-     * action to resolve.
-     * 
- * - * ADDITIONAL_CONFIG_REQUIRED = 2; - */ - public static final int ADDITIONAL_CONFIG_REQUIRED_VALUE = 2; - /** - * - * - *
-     * Indicates the issue is not an incompatibility, but depending on the
-     * workloads business logic, there is a potential that they won't work on
-     * Autopilot.
-     * 
- * - * PASSED_WITH_OPTIONAL_CONFIG = 3; - */ - public static final int PASSED_WITH_OPTIONAL_CONFIG_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 IssueType 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 IssueType forNumber(int value) { - switch (value) { - case 0: - return UNSPECIFIED; - case 1: - return INCOMPATIBILITY; - case 2: - return ADDITIONAL_CONFIG_REQUIRED; - case 3: - return PASSED_WITH_OPTIONAL_CONFIG; - 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 IssueType findValueByNumber(int number) { - return IssueType.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.AutopilotCompatibilityIssue.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final IssueType[] VALUES = values(); - - public static IssueType 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 IssueType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1beta1.AutopilotCompatibilityIssue.IssueType) - } - - private int bitField0_; - public static final int LAST_OBSERVATION_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp lastObservation_; - /** - * - * - *
-   * The last time when this issue was observed.
-   * 
- * - * .google.protobuf.Timestamp last_observation = 1; - * - * @return Whether the lastObservation field is set. - */ - @java.lang.Override - public boolean hasLastObservation() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * The last time when this issue was observed.
-   * 
- * - * .google.protobuf.Timestamp last_observation = 1; - * - * @return The lastObservation. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getLastObservation() { - return lastObservation_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastObservation_; - } - /** - * - * - *
-   * The last time when this issue was observed.
-   * 
- * - * .google.protobuf.Timestamp last_observation = 1; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getLastObservationOrBuilder() { - return lastObservation_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastObservation_; - } - - public static final int CONSTRAINT_TYPE_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object constraintType_ = ""; - /** - * - * - *
-   * The constraint type of the issue.
-   * 
- * - * string constraint_type = 2; - * - * @return The constraintType. - */ - @java.lang.Override - public java.lang.String getConstraintType() { - java.lang.Object ref = constraintType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - constraintType_ = s; - return s; - } - } - /** - * - * - *
-   * The constraint type of the issue.
-   * 
- * - * string constraint_type = 2; - * - * @return The bytes for constraintType. - */ - @java.lang.Override - public com.google.protobuf.ByteString getConstraintTypeBytes() { - java.lang.Object ref = constraintType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - constraintType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INCOMPATIBILITY_TYPE_FIELD_NUMBER = 3; - private int incompatibilityType_ = 0; - /** - * - * - *
-   * The incompatibility type of this issue.
-   * 
- * - * .google.container.v1beta1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; - * - * - * @return The enum numeric value on the wire for incompatibilityType. - */ - @java.lang.Override - public int getIncompatibilityTypeValue() { - return incompatibilityType_; - } - /** - * - * - *
-   * The incompatibility type of this issue.
-   * 
- * - * .google.container.v1beta1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; - * - * - * @return The incompatibilityType. - */ - @java.lang.Override - public com.google.container.v1beta1.AutopilotCompatibilityIssue.IssueType - getIncompatibilityType() { - com.google.container.v1beta1.AutopilotCompatibilityIssue.IssueType result = - com.google.container.v1beta1.AutopilotCompatibilityIssue.IssueType.forNumber( - incompatibilityType_); - return result == null - ? com.google.container.v1beta1.AutopilotCompatibilityIssue.IssueType.UNRECOGNIZED - : result; - } - - public static final int SUBJECTS_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList subjects_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * The name of the resources which are subject to this issue.
-   * 
- * - * repeated string subjects = 4; - * - * @return A list containing the subjects. - */ - public com.google.protobuf.ProtocolStringList getSubjectsList() { - return subjects_; - } - /** - * - * - *
-   * The name of the resources which are subject to this issue.
-   * 
- * - * repeated string subjects = 4; - * - * @return The count of subjects. - */ - public int getSubjectsCount() { - return subjects_.size(); - } - /** - * - * - *
-   * The name of the resources which are subject to this issue.
-   * 
- * - * repeated string subjects = 4; - * - * @param index The index of the element to return. - * @return The subjects at the given index. - */ - public java.lang.String getSubjects(int index) { - return subjects_.get(index); - } - /** - * - * - *
-   * The name of the resources which are subject to this issue.
-   * 
- * - * repeated string subjects = 4; - * - * @param index The index of the value to return. - * @return The bytes of the subjects at the given index. - */ - public com.google.protobuf.ByteString getSubjectsBytes(int index) { - return subjects_.getByteString(index); - } - - public static final int DOCUMENTATION_URL_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - private volatile java.lang.Object documentationUrl_ = ""; - /** - * - * - *
-   * A URL to a public documnetation, which addresses resolving this issue.
-   * 
- * - * string documentation_url = 5; - * - * @return The documentationUrl. - */ - @java.lang.Override - public java.lang.String getDocumentationUrl() { - java.lang.Object ref = documentationUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - documentationUrl_ = s; - return s; - } - } - /** - * - * - *
-   * A URL to a public documnetation, which addresses resolving this issue.
-   * 
- * - * string documentation_url = 5; - * - * @return The bytes for documentationUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDocumentationUrlBytes() { - java.lang.Object ref = documentationUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - documentationUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 6; - - @SuppressWarnings("serial") - private volatile java.lang.Object description_ = ""; - /** - * - * - *
-   * The description of the issue.
-   * 
- * - * string description = 6; - * - * @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; - } - } - /** - * - * - *
-   * The description of the issue.
-   * 
- * - * string description = 6; - * - * @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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getLastObservation()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(constraintType_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, constraintType_); - } - if (incompatibilityType_ - != com.google.container.v1beta1.AutopilotCompatibilityIssue.IssueType.UNSPECIFIED - .getNumber()) { - output.writeEnum(3, incompatibilityType_); - } - for (int i = 0; i < subjects_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, subjects_.getRaw(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentationUrl_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, documentationUrl_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLastObservation()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(constraintType_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, constraintType_); - } - if (incompatibilityType_ - != com.google.container.v1beta1.AutopilotCompatibilityIssue.IssueType.UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, incompatibilityType_); - } - { - int dataSize = 0; - for (int i = 0; i < subjects_.size(); i++) { - dataSize += computeStringSizeNoTag(subjects_.getRaw(i)); - } - size += dataSize; - size += 1 * getSubjectsList().size(); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentationUrl_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, documentationUrl_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.AutopilotCompatibilityIssue)) { - return super.equals(obj); - } - com.google.container.v1beta1.AutopilotCompatibilityIssue other = - (com.google.container.v1beta1.AutopilotCompatibilityIssue) obj; - - if (hasLastObservation() != other.hasLastObservation()) return false; - if (hasLastObservation()) { - if (!getLastObservation().equals(other.getLastObservation())) return false; - } - if (!getConstraintType().equals(other.getConstraintType())) return false; - if (incompatibilityType_ != other.incompatibilityType_) return false; - if (!getSubjectsList().equals(other.getSubjectsList())) return false; - if (!getDocumentationUrl().equals(other.getDocumentationUrl())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasLastObservation()) { - hash = (37 * hash) + LAST_OBSERVATION_FIELD_NUMBER; - hash = (53 * hash) + getLastObservation().hashCode(); - } - hash = (37 * hash) + CONSTRAINT_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getConstraintType().hashCode(); - hash = (37 * hash) + INCOMPATIBILITY_TYPE_FIELD_NUMBER; - hash = (53 * hash) + incompatibilityType_; - if (getSubjectsCount() > 0) { - hash = (37 * hash) + SUBJECTS_FIELD_NUMBER; - hash = (53 * hash) + getSubjectsList().hashCode(); - } - hash = (37 * hash) + DOCUMENTATION_URL_FIELD_NUMBER; - hash = (53 * hash) + getDocumentationUrl().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.AutopilotCompatibilityIssue parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.AutopilotCompatibilityIssue parseFrom( - 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.AutopilotCompatibilityIssue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.AutopilotCompatibilityIssue parseFrom( - com.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.AutopilotCompatibilityIssue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.AutopilotCompatibilityIssue parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.AutopilotCompatibilityIssue parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.AutopilotCompatibilityIssue parseFrom( - java.io.InputStream 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.AutopilotCompatibilityIssue parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.AutopilotCompatibilityIssue parseDelimitedFrom( - java.io.InputStream 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.AutopilotCompatibilityIssue parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.AutopilotCompatibilityIssue parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.AutopilotCompatibilityIssue prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * AutopilotCompatibilityIssue contains information about a specific
-   * compatibility issue with Autopilot mode.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.AutopilotCompatibilityIssue} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.AutopilotCompatibilityIssue) - com.google.container.v1beta1.AutopilotCompatibilityIssueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_AutopilotCompatibilityIssue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_AutopilotCompatibilityIssue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.AutopilotCompatibilityIssue.class, - com.google.container.v1beta1.AutopilotCompatibilityIssue.Builder.class); - } - - // Construct using com.google.container.v1beta1.AutopilotCompatibilityIssue.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getLastObservationFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - lastObservation_ = null; - if (lastObservationBuilder_ != null) { - lastObservationBuilder_.dispose(); - lastObservationBuilder_ = null; - } - constraintType_ = ""; - incompatibilityType_ = 0; - subjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); - documentationUrl_ = ""; - description_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_AutopilotCompatibilityIssue_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.AutopilotCompatibilityIssue getDefaultInstanceForType() { - return com.google.container.v1beta1.AutopilotCompatibilityIssue.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.AutopilotCompatibilityIssue build() { - com.google.container.v1beta1.AutopilotCompatibilityIssue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.AutopilotCompatibilityIssue buildPartial() { - com.google.container.v1beta1.AutopilotCompatibilityIssue result = - new com.google.container.v1beta1.AutopilotCompatibilityIssue(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.AutopilotCompatibilityIssue result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.lastObservation_ = - lastObservationBuilder_ == null ? lastObservation_ : lastObservationBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.constraintType_ = constraintType_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.incompatibilityType_ = incompatibilityType_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - subjects_.makeImmutable(); - result.subjects_ = subjects_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.documentationUrl_ = documentationUrl_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.description_ = description_; - } - result.bitField0_ |= to_bitField0_; - } - - @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.AutopilotCompatibilityIssue) { - return mergeFrom((com.google.container.v1beta1.AutopilotCompatibilityIssue) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.AutopilotCompatibilityIssue other) { - if (other == com.google.container.v1beta1.AutopilotCompatibilityIssue.getDefaultInstance()) - return this; - if (other.hasLastObservation()) { - mergeLastObservation(other.getLastObservation()); - } - if (!other.getConstraintType().isEmpty()) { - constraintType_ = other.constraintType_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.incompatibilityType_ != 0) { - setIncompatibilityTypeValue(other.getIncompatibilityTypeValue()); - } - if (!other.subjects_.isEmpty()) { - if (subjects_.isEmpty()) { - subjects_ = other.subjects_; - bitField0_ |= 0x00000008; - } else { - ensureSubjectsIsMutable(); - subjects_.addAll(other.subjects_); - } - onChanged(); - } - if (!other.getDocumentationUrl().isEmpty()) { - documentationUrl_ = other.documentationUrl_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000020; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getLastObservationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - constraintType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - incompatibilityType_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureSubjectsIsMutable(); - subjects_.add(s); - break; - } // case 34 - case 42: - { - documentationUrl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.protobuf.Timestamp lastObservation_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - lastObservationBuilder_; - /** - * - * - *
-     * The last time when this issue was observed.
-     * 
- * - * .google.protobuf.Timestamp last_observation = 1; - * - * @return Whether the lastObservation field is set. - */ - public boolean hasLastObservation() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * The last time when this issue was observed.
-     * 
- * - * .google.protobuf.Timestamp last_observation = 1; - * - * @return The lastObservation. - */ - public com.google.protobuf.Timestamp getLastObservation() { - if (lastObservationBuilder_ == null) { - return lastObservation_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastObservation_; - } else { - return lastObservationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The last time when this issue was observed.
-     * 
- * - * .google.protobuf.Timestamp last_observation = 1; - */ - public Builder setLastObservation(com.google.protobuf.Timestamp value) { - if (lastObservationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - lastObservation_ = value; - } else { - lastObservationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The last time when this issue was observed.
-     * 
- * - * .google.protobuf.Timestamp last_observation = 1; - */ - public Builder setLastObservation(com.google.protobuf.Timestamp.Builder builderForValue) { - if (lastObservationBuilder_ == null) { - lastObservation_ = builderForValue.build(); - } else { - lastObservationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The last time when this issue was observed.
-     * 
- * - * .google.protobuf.Timestamp last_observation = 1; - */ - public Builder mergeLastObservation(com.google.protobuf.Timestamp value) { - if (lastObservationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && lastObservation_ != null - && lastObservation_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getLastObservationBuilder().mergeFrom(value); - } else { - lastObservation_ = value; - } - } else { - lastObservationBuilder_.mergeFrom(value); - } - if (lastObservation_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The last time when this issue was observed.
-     * 
- * - * .google.protobuf.Timestamp last_observation = 1; - */ - public Builder clearLastObservation() { - bitField0_ = (bitField0_ & ~0x00000001); - lastObservation_ = null; - if (lastObservationBuilder_ != null) { - lastObservationBuilder_.dispose(); - lastObservationBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The last time when this issue was observed.
-     * 
- * - * .google.protobuf.Timestamp last_observation = 1; - */ - public com.google.protobuf.Timestamp.Builder getLastObservationBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getLastObservationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The last time when this issue was observed.
-     * 
- * - * .google.protobuf.Timestamp last_observation = 1; - */ - public com.google.protobuf.TimestampOrBuilder getLastObservationOrBuilder() { - if (lastObservationBuilder_ != null) { - return lastObservationBuilder_.getMessageOrBuilder(); - } else { - return lastObservation_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastObservation_; - } - } - /** - * - * - *
-     * The last time when this issue was observed.
-     * 
- * - * .google.protobuf.Timestamp last_observation = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getLastObservationFieldBuilder() { - if (lastObservationBuilder_ == null) { - lastObservationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getLastObservation(), getParentForChildren(), isClean()); - lastObservation_ = null; - } - return lastObservationBuilder_; - } - - private java.lang.Object constraintType_ = ""; - /** - * - * - *
-     * The constraint type of the issue.
-     * 
- * - * string constraint_type = 2; - * - * @return The constraintType. - */ - public java.lang.String getConstraintType() { - java.lang.Object ref = constraintType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - constraintType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The constraint type of the issue.
-     * 
- * - * string constraint_type = 2; - * - * @return The bytes for constraintType. - */ - public com.google.protobuf.ByteString getConstraintTypeBytes() { - java.lang.Object ref = constraintType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - constraintType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The constraint type of the issue.
-     * 
- * - * string constraint_type = 2; - * - * @param value The constraintType to set. - * @return This builder for chaining. - */ - public Builder setConstraintType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - constraintType_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * The constraint type of the issue.
-     * 
- * - * string constraint_type = 2; - * - * @return This builder for chaining. - */ - public Builder clearConstraintType() { - constraintType_ = getDefaultInstance().getConstraintType(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * The constraint type of the issue.
-     * 
- * - * string constraint_type = 2; - * - * @param value The bytes for constraintType to set. - * @return This builder for chaining. - */ - public Builder setConstraintTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - constraintType_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private int incompatibilityType_ = 0; - /** - * - * - *
-     * The incompatibility type of this issue.
-     * 
- * - * - * .google.container.v1beta1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; - * - * - * @return The enum numeric value on the wire for incompatibilityType. - */ - @java.lang.Override - public int getIncompatibilityTypeValue() { - return incompatibilityType_; - } - /** - * - * - *
-     * The incompatibility type of this issue.
-     * 
- * - * - * .google.container.v1beta1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; - * - * - * @param value The enum numeric value on the wire for incompatibilityType to set. - * @return This builder for chaining. - */ - public Builder setIncompatibilityTypeValue(int value) { - incompatibilityType_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The incompatibility type of this issue.
-     * 
- * - * - * .google.container.v1beta1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; - * - * - * @return The incompatibilityType. - */ - @java.lang.Override - public com.google.container.v1beta1.AutopilotCompatibilityIssue.IssueType - getIncompatibilityType() { - com.google.container.v1beta1.AutopilotCompatibilityIssue.IssueType result = - com.google.container.v1beta1.AutopilotCompatibilityIssue.IssueType.forNumber( - incompatibilityType_); - return result == null - ? com.google.container.v1beta1.AutopilotCompatibilityIssue.IssueType.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * The incompatibility type of this issue.
-     * 
- * - * - * .google.container.v1beta1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; - * - * - * @param value The incompatibilityType to set. - * @return This builder for chaining. - */ - public Builder setIncompatibilityType( - com.google.container.v1beta1.AutopilotCompatibilityIssue.IssueType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - incompatibilityType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The incompatibility type of this issue.
-     * 
- * - * - * .google.container.v1beta1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; - * - * - * @return This builder for chaining. - */ - public Builder clearIncompatibilityType() { - bitField0_ = (bitField0_ & ~0x00000004); - incompatibilityType_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList subjects_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureSubjectsIsMutable() { - if (!subjects_.isModifiable()) { - subjects_ = new com.google.protobuf.LazyStringArrayList(subjects_); - } - bitField0_ |= 0x00000008; - } - /** - * - * - *
-     * The name of the resources which are subject to this issue.
-     * 
- * - * repeated string subjects = 4; - * - * @return A list containing the subjects. - */ - public com.google.protobuf.ProtocolStringList getSubjectsList() { - subjects_.makeImmutable(); - return subjects_; - } - /** - * - * - *
-     * The name of the resources which are subject to this issue.
-     * 
- * - * repeated string subjects = 4; - * - * @return The count of subjects. - */ - public int getSubjectsCount() { - return subjects_.size(); - } - /** - * - * - *
-     * The name of the resources which are subject to this issue.
-     * 
- * - * repeated string subjects = 4; - * - * @param index The index of the element to return. - * @return The subjects at the given index. - */ - public java.lang.String getSubjects(int index) { - return subjects_.get(index); - } - /** - * - * - *
-     * The name of the resources which are subject to this issue.
-     * 
- * - * repeated string subjects = 4; - * - * @param index The index of the value to return. - * @return The bytes of the subjects at the given index. - */ - public com.google.protobuf.ByteString getSubjectsBytes(int index) { - return subjects_.getByteString(index); - } - /** - * - * - *
-     * The name of the resources which are subject to this issue.
-     * 
- * - * repeated string subjects = 4; - * - * @param index The index to set the value at. - * @param value The subjects to set. - * @return This builder for chaining. - */ - public Builder setSubjects(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubjectsIsMutable(); - subjects_.set(index, value); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the resources which are subject to this issue.
-     * 
- * - * repeated string subjects = 4; - * - * @param value The subjects to add. - * @return This builder for chaining. - */ - public Builder addSubjects(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubjectsIsMutable(); - subjects_.add(value); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the resources which are subject to this issue.
-     * 
- * - * repeated string subjects = 4; - * - * @param values The subjects to add. - * @return This builder for chaining. - */ - public Builder addAllSubjects(java.lang.Iterable values) { - ensureSubjectsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subjects_); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the resources which are subject to this issue.
-     * 
- * - * repeated string subjects = 4; - * - * @return This builder for chaining. - */ - public Builder clearSubjects() { - subjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - ; - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the resources which are subject to this issue.
-     * 
- * - * repeated string subjects = 4; - * - * @param value The bytes of the subjects to add. - * @return This builder for chaining. - */ - public Builder addSubjectsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureSubjectsIsMutable(); - subjects_.add(value); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private java.lang.Object documentationUrl_ = ""; - /** - * - * - *
-     * A URL to a public documnetation, which addresses resolving this issue.
-     * 
- * - * string documentation_url = 5; - * - * @return The documentationUrl. - */ - public java.lang.String getDocumentationUrl() { - java.lang.Object ref = documentationUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - documentationUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A URL to a public documnetation, which addresses resolving this issue.
-     * 
- * - * string documentation_url = 5; - * - * @return The bytes for documentationUrl. - */ - public com.google.protobuf.ByteString getDocumentationUrlBytes() { - java.lang.Object ref = documentationUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - documentationUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A URL to a public documnetation, which addresses resolving this issue.
-     * 
- * - * string documentation_url = 5; - * - * @param value The documentationUrl to set. - * @return This builder for chaining. - */ - public Builder setDocumentationUrl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - documentationUrl_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * A URL to a public documnetation, which addresses resolving this issue.
-     * 
- * - * string documentation_url = 5; - * - * @return This builder for chaining. - */ - public Builder clearDocumentationUrl() { - documentationUrl_ = getDefaultInstance().getDocumentationUrl(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * - * - *
-     * A URL to a public documnetation, which addresses resolving this issue.
-     * 
- * - * string documentation_url = 5; - * - * @param value The bytes for documentationUrl to set. - * @return This builder for chaining. - */ - public Builder setDocumentationUrlBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - documentationUrl_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * - * - *
-     * The description of the issue.
-     * 
- * - * string description = 6; - * - * @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; - } - } - /** - * - * - *
-     * The description of the issue.
-     * 
- * - * string description = 6; - * - * @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; - } - } - /** - * - * - *
-     * The description of the issue.
-     * 
- * - * string description = 6; - * - * @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; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * The description of the issue.
-     * 
- * - * string description = 6; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - /** - * - * - *
-     * The description of the issue.
-     * 
- * - * string description = 6; - * - * @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; - bitField0_ |= 0x00000020; - 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.AutopilotCompatibilityIssue) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.AutopilotCompatibilityIssue) - private static final com.google.container.v1beta1.AutopilotCompatibilityIssue DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.AutopilotCompatibilityIssue(); - } - - public static com.google.container.v1beta1.AutopilotCompatibilityIssue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AutopilotCompatibilityIssue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.AutopilotCompatibilityIssue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutopilotCompatibilityIssueOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutopilotCompatibilityIssueOrBuilder.java deleted file mode 100644 index cef09d2cbb83..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutopilotCompatibilityIssueOrBuilder.java +++ /dev/null @@ -1,214 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface AutopilotCompatibilityIssueOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.AutopilotCompatibilityIssue) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The last time when this issue was observed.
-   * 
- * - * .google.protobuf.Timestamp last_observation = 1; - * - * @return Whether the lastObservation field is set. - */ - boolean hasLastObservation(); - /** - * - * - *
-   * The last time when this issue was observed.
-   * 
- * - * .google.protobuf.Timestamp last_observation = 1; - * - * @return The lastObservation. - */ - com.google.protobuf.Timestamp getLastObservation(); - /** - * - * - *
-   * The last time when this issue was observed.
-   * 
- * - * .google.protobuf.Timestamp last_observation = 1; - */ - com.google.protobuf.TimestampOrBuilder getLastObservationOrBuilder(); - - /** - * - * - *
-   * The constraint type of the issue.
-   * 
- * - * string constraint_type = 2; - * - * @return The constraintType. - */ - java.lang.String getConstraintType(); - /** - * - * - *
-   * The constraint type of the issue.
-   * 
- * - * string constraint_type = 2; - * - * @return The bytes for constraintType. - */ - com.google.protobuf.ByteString getConstraintTypeBytes(); - - /** - * - * - *
-   * The incompatibility type of this issue.
-   * 
- * - * .google.container.v1beta1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; - * - * - * @return The enum numeric value on the wire for incompatibilityType. - */ - int getIncompatibilityTypeValue(); - /** - * - * - *
-   * The incompatibility type of this issue.
-   * 
- * - * .google.container.v1beta1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; - * - * - * @return The incompatibilityType. - */ - com.google.container.v1beta1.AutopilotCompatibilityIssue.IssueType getIncompatibilityType(); - - /** - * - * - *
-   * The name of the resources which are subject to this issue.
-   * 
- * - * repeated string subjects = 4; - * - * @return A list containing the subjects. - */ - java.util.List getSubjectsList(); - /** - * - * - *
-   * The name of the resources which are subject to this issue.
-   * 
- * - * repeated string subjects = 4; - * - * @return The count of subjects. - */ - int getSubjectsCount(); - /** - * - * - *
-   * The name of the resources which are subject to this issue.
-   * 
- * - * repeated string subjects = 4; - * - * @param index The index of the element to return. - * @return The subjects at the given index. - */ - java.lang.String getSubjects(int index); - /** - * - * - *
-   * The name of the resources which are subject to this issue.
-   * 
- * - * repeated string subjects = 4; - * - * @param index The index of the value to return. - * @return The bytes of the subjects at the given index. - */ - com.google.protobuf.ByteString getSubjectsBytes(int index); - - /** - * - * - *
-   * A URL to a public documnetation, which addresses resolving this issue.
-   * 
- * - * string documentation_url = 5; - * - * @return The documentationUrl. - */ - java.lang.String getDocumentationUrl(); - /** - * - * - *
-   * A URL to a public documnetation, which addresses resolving this issue.
-   * 
- * - * string documentation_url = 5; - * - * @return The bytes for documentationUrl. - */ - com.google.protobuf.ByteString getDocumentationUrlBytes(); - - /** - * - * - *
-   * The description of the issue.
-   * 
- * - * string description = 6; - * - * @return The description. - */ - java.lang.String getDescription(); - /** - * - * - *
-   * The description of the issue.
-   * 
- * - * string description = 6; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutopilotConversionStatus.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutopilotConversionStatus.java deleted file mode 100644 index 93a839c1df48..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutopilotConversionStatus.java +++ /dev/null @@ -1,753 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * AutopilotConversionStatus represents conversion status.
- * 
- * - * Protobuf type {@code google.container.v1beta1.AutopilotConversionStatus} - */ -public final class AutopilotConversionStatus extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.AutopilotConversionStatus) - AutopilotConversionStatusOrBuilder { - private static final long serialVersionUID = 0L; - // Use AutopilotConversionStatus.newBuilder() to construct. - private AutopilotConversionStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AutopilotConversionStatus() { - state_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AutopilotConversionStatus(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_AutopilotConversionStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_AutopilotConversionStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.AutopilotConversionStatus.class, - com.google.container.v1beta1.AutopilotConversionStatus.Builder.class); - } - - /** - * - * - *
-   * The current state of the conversion.
-   * 
- * - * Protobuf enum {@code google.container.v1beta1.AutopilotConversionStatus.State} - */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * STATE_UNSPECIFIED indicates the state is unspecified.
-     * 
- * - * STATE_UNSPECIFIED = 0; - */ - STATE_UNSPECIFIED(0), - /** - * - * - *
-     * DONE indicates the conversion has been completed. Old node pools will
-     * continue being deleted in the background.
-     * 
- * - * DONE = 5; - */ - DONE(5), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * STATE_UNSPECIFIED indicates the state is unspecified.
-     * 
- * - * STATE_UNSPECIFIED = 0; - */ - public static final int STATE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * DONE indicates the conversion has been completed. Old node pools will
-     * continue being deleted in the background.
-     * 
- * - * DONE = 5; - */ - public static final int DONE_VALUE = 5; - - 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 STATE_UNSPECIFIED; - case 5: - return DONE; - 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.AutopilotConversionStatus.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.AutopilotConversionStatus.State) - } - - public static final int STATE_FIELD_NUMBER = 2; - private int state_ = 0; - /** - * - * - *
-   * Output only. The current state of the conversion.
-   * 
- * - * - * .google.container.v1beta1.AutopilotConversionStatus.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-   * Output only. The current state of the conversion.
-   * 
- * - * - * .google.container.v1beta1.AutopilotConversionStatus.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.container.v1beta1.AutopilotConversionStatus.State getState() { - com.google.container.v1beta1.AutopilotConversionStatus.State result = - com.google.container.v1beta1.AutopilotConversionStatus.State.forNumber(state_); - return result == null - ? com.google.container.v1beta1.AutopilotConversionStatus.State.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 (state_ - != com.google.container.v1beta1.AutopilotConversionStatus.State.STATE_UNSPECIFIED - .getNumber()) { - output.writeEnum(2, state_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (state_ - != com.google.container.v1beta1.AutopilotConversionStatus.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.AutopilotConversionStatus)) { - return super.equals(obj); - } - com.google.container.v1beta1.AutopilotConversionStatus other = - (com.google.container.v1beta1.AutopilotConversionStatus) obj; - - if (state_ != other.state_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.AutopilotConversionStatus parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.AutopilotConversionStatus parseFrom( - 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.AutopilotConversionStatus parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.AutopilotConversionStatus parseFrom( - com.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.AutopilotConversionStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.AutopilotConversionStatus parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.AutopilotConversionStatus parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.AutopilotConversionStatus parseFrom( - java.io.InputStream 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.AutopilotConversionStatus parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.AutopilotConversionStatus parseDelimitedFrom( - java.io.InputStream 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.AutopilotConversionStatus parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.AutopilotConversionStatus parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.AutopilotConversionStatus prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * AutopilotConversionStatus represents conversion status.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.AutopilotConversionStatus} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.AutopilotConversionStatus) - com.google.container.v1beta1.AutopilotConversionStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_AutopilotConversionStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_AutopilotConversionStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.AutopilotConversionStatus.class, - com.google.container.v1beta1.AutopilotConversionStatus.Builder.class); - } - - // Construct using com.google.container.v1beta1.AutopilotConversionStatus.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - state_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_AutopilotConversionStatus_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.AutopilotConversionStatus getDefaultInstanceForType() { - return com.google.container.v1beta1.AutopilotConversionStatus.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.AutopilotConversionStatus build() { - com.google.container.v1beta1.AutopilotConversionStatus result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.AutopilotConversionStatus buildPartial() { - com.google.container.v1beta1.AutopilotConversionStatus result = - new com.google.container.v1beta1.AutopilotConversionStatus(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.AutopilotConversionStatus result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.state_ = state_; - } - } - - @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.AutopilotConversionStatus) { - return mergeFrom((com.google.container.v1beta1.AutopilotConversionStatus) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.AutopilotConversionStatus other) { - if (other == com.google.container.v1beta1.AutopilotConversionStatus.getDefaultInstance()) - return this; - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 16: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int state_ = 0; - /** - * - * - *
-     * Output only. The current state of the conversion.
-     * 
- * - * - * .google.container.v1beta1.AutopilotConversionStatus.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-     * Output only. The current state of the conversion.
-     * 
- * - * - * .google.container.v1beta1.AutopilotConversionStatus.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The current state of the conversion.
-     * 
- * - * - * .google.container.v1beta1.AutopilotConversionStatus.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.container.v1beta1.AutopilotConversionStatus.State getState() { - com.google.container.v1beta1.AutopilotConversionStatus.State result = - com.google.container.v1beta1.AutopilotConversionStatus.State.forNumber(state_); - return result == null - ? com.google.container.v1beta1.AutopilotConversionStatus.State.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Output only. The current state of the conversion.
-     * 
- * - * - * .google.container.v1beta1.AutopilotConversionStatus.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(com.google.container.v1beta1.AutopilotConversionStatus.State value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The current state of the conversion.
-     * 
- * - * - * .google.container.v1beta1.AutopilotConversionStatus.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000001); - state_ = 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.AutopilotConversionStatus) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.AutopilotConversionStatus) - private static final com.google.container.v1beta1.AutopilotConversionStatus DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.AutopilotConversionStatus(); - } - - public static com.google.container.v1beta1.AutopilotConversionStatus getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AutopilotConversionStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.AutopilotConversionStatus getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutopilotConversionStatusOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutopilotConversionStatusOrBuilder.java deleted file mode 100644 index a69d4aa00252..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutopilotConversionStatusOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface AutopilotConversionStatusOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.AutopilotConversionStatus) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The current state of the conversion.
-   * 
- * - * - * .google.container.v1beta1.AutopilotConversionStatus.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - int getStateValue(); - /** - * - * - *
-   * Output only. The current state of the conversion.
-   * 
- * - * - * .google.container.v1beta1.AutopilotConversionStatus.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - com.google.container.v1beta1.AutopilotConversionStatus.State getState(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutopilotOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutopilotOrBuilder.java deleted file mode 100644 index dec09cf2b947..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutopilotOrBuilder.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface AutopilotOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.Autopilot) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Enable Autopilot
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); - - /** - * - * - *
-   * Workload policy configuration for Autopilot.
-   * 
- * - * .google.container.v1beta1.WorkloadPolicyConfig workload_policy_config = 2; - * - * @return Whether the workloadPolicyConfig field is set. - */ - boolean hasWorkloadPolicyConfig(); - /** - * - * - *
-   * Workload policy configuration for Autopilot.
-   * 
- * - * .google.container.v1beta1.WorkloadPolicyConfig workload_policy_config = 2; - * - * @return The workloadPolicyConfig. - */ - com.google.container.v1beta1.WorkloadPolicyConfig getWorkloadPolicyConfig(); - /** - * - * - *
-   * Workload policy configuration for Autopilot.
-   * 
- * - * .google.container.v1beta1.WorkloadPolicyConfig workload_policy_config = 2; - */ - com.google.container.v1beta1.WorkloadPolicyConfigOrBuilder getWorkloadPolicyConfigOrBuilder(); - - /** - * - * - *
-   * Output only. ConversionStatus shows conversion status.
-   * 
- * - * - * .google.container.v1beta1.AutopilotConversionStatus conversion_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the conversionStatus field is set. - */ - boolean hasConversionStatus(); - /** - * - * - *
-   * Output only. ConversionStatus shows conversion status.
-   * 
- * - * - * .google.container.v1beta1.AutopilotConversionStatus conversion_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The conversionStatus. - */ - com.google.container.v1beta1.AutopilotConversionStatus getConversionStatus(); - /** - * - * - *
-   * Output only. ConversionStatus shows conversion status.
-   * 
- * - * - * .google.container.v1beta1.AutopilotConversionStatus conversion_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.container.v1beta1.AutopilotConversionStatusOrBuilder getConversionStatusOrBuilder(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaults.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaults.java deleted file mode 100644 index 9064f5db974e..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaults.java +++ /dev/null @@ -1,3077 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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.emptyList(); - serviceAccount_ = ""; - minCpuPlatform_ = ""; - diskType_ = ""; - bootDiskKmsKey_ = ""; - imageType_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AutoprovisioningNodePoolDefaults(); - } - - 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); - } - - private int bitField0_; - public static final int OAUTH_SCOPES_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList oauthScopes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - 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 ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * 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 upgradeSettings_ == null - ? com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance() - : upgradeSettings_; - } - - 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 ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * 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 management_ == null - ? com.google.container.v1beta1.NodeManagement.getDefaultInstance() - : management_; - } - - public static final int MIN_CPU_PLATFORM_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - private volatile java.lang.Object minCpuPlatform_ = ""; - /** - * - * - *
-   * Deprecated. Minimum CPU platform to be used for NAP created node pools.
-   * The instance may be scheduled on the specified or newer CPU platform.
-   * Applicable values are the friendly names of CPU platforms, such as
-   * minCpuPlatform: Intel Haswell or
-   * minCpuPlatform: Intel Sandy Bridge. For more
-   * information, read [how to specify min CPU
-   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
-   * This field is deprecated, min_cpu_platform should be specified using
-   * `cloud.google.com/requested-min-cpu-platform` label selector on the pod.
-   * To unset the min cpu platform field pass "automatic"
-   * as field value.
-   * 
- * - * string min_cpu_platform = 5 [deprecated = true]; - * - * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4420 - * @return The minCpuPlatform. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. Minimum CPU platform to be used for NAP created node pools.
-   * The instance may be scheduled on the specified or newer CPU platform.
-   * Applicable values are the friendly names of CPU platforms, such as
-   * minCpuPlatform: Intel Haswell or
-   * minCpuPlatform: Intel Sandy Bridge. For more
-   * information, read [how to specify min CPU
-   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
-   * This field is deprecated, min_cpu_platform should be specified using
-   * `cloud.google.com/requested-min-cpu-platform` label selector on the pod.
-   * To unset the min cpu platform field pass "automatic"
-   * as field value.
-   * 
- * - * string min_cpu_platform = 5 [deprecated = true]; - * - * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4420 - * @return The bytes for minCpuPlatform. - */ - @java.lang.Override - @java.lang.Deprecated - 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_ = 0; - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - 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 ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-   * 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 shieldedInstanceConfig_ == null - ? com.google.container.v1beta1.ShieldedInstanceConfig.getDefaultInstance() - : shieldedInstanceConfig_; - } - - public static final int BOOT_DISK_KMS_KEY_FIELD_NUMBER = 9; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object imageType_ = ""; - /** - * - * - *
-   * The image type to use for NAP created node. Please see
-   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-   * available image types.
-   * 
- * - * 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 NAP created node. Please see
-   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-   * available image types.
-   * 
- * - * 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; - } - } - - public static final int INSECURE_KUBELET_READONLY_PORT_ENABLED_FIELD_NUMBER = 13; - private boolean insecureKubeletReadonlyPortEnabled_ = false; - /** - * - * - *
-   * Enable or disable Kubelet read only port.
-   * 
- * - * optional bool insecure_kubelet_readonly_port_enabled = 13; - * - * @return Whether the insecureKubeletReadonlyPortEnabled field is set. - */ - @java.lang.Override - public boolean hasInsecureKubeletReadonlyPortEnabled() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-   * Enable or disable Kubelet read only port.
-   * 
- * - * optional bool insecure_kubelet_readonly_port_enabled = 13; - * - * @return The insecureKubeletReadonlyPortEnabled. - */ - @java.lang.Override - public boolean getInsecureKubeletReadonlyPortEnabled() { - return insecureKubeletReadonlyPortEnabled_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceAccount_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getUpgradeSettings()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(4, getManagement()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minCpuPlatform_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, minCpuPlatform_); - } - if (diskSizeGb_ != 0) { - output.writeInt32(6, diskSizeGb_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, diskType_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(8, getShieldedInstanceConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootDiskKmsKey_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, bootDiskKmsKey_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageType_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, imageType_); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeBool(13, insecureKubeletReadonlyPortEnabled_); - } - getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, serviceAccount_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpgradeSettings()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getManagement()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minCpuPlatform_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, minCpuPlatform_); - } - if (diskSizeGb_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, diskSizeGb_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, diskType_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(8, getShieldedInstanceConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootDiskKmsKey_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, bootDiskKmsKey_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageType_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, imageType_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 13, insecureKubeletReadonlyPortEnabled_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (hasInsecureKubeletReadonlyPortEnabled() != other.hasInsecureKubeletReadonlyPortEnabled()) - return false; - if (hasInsecureKubeletReadonlyPortEnabled()) { - if (getInsecureKubeletReadonlyPortEnabled() != other.getInsecureKubeletReadonlyPortEnabled()) - return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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(); - if (hasInsecureKubeletReadonlyPortEnabled()) { - hash = (37 * hash) + INSECURE_KUBELET_READONLY_PORT_ENABLED_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getInsecureKubeletReadonlyPortEnabled()); - } - hash = (29 * hash) + getUnknownFields().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) { - getUpgradeSettingsFieldBuilder(); - getManagementFieldBuilder(); - getShieldedInstanceConfigFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - oauthScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - serviceAccount_ = ""; - upgradeSettings_ = null; - if (upgradeSettingsBuilder_ != null) { - upgradeSettingsBuilder_.dispose(); - upgradeSettingsBuilder_ = null; - } - management_ = null; - if (managementBuilder_ != null) { - managementBuilder_.dispose(); - managementBuilder_ = null; - } - minCpuPlatform_ = ""; - diskSizeGb_ = 0; - diskType_ = ""; - shieldedInstanceConfig_ = null; - if (shieldedInstanceConfigBuilder_ != null) { - shieldedInstanceConfigBuilder_.dispose(); - shieldedInstanceConfigBuilder_ = null; - } - bootDiskKmsKey_ = ""; - imageType_ = ""; - insecureKubeletReadonlyPortEnabled_ = false; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.container.v1beta1.AutoprovisioningNodePoolDefaults result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - oauthScopes_.makeImmutable(); - result.oauthScopes_ = oauthScopes_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.serviceAccount_ = serviceAccount_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.upgradeSettings_ = - upgradeSettingsBuilder_ == null ? upgradeSettings_ : upgradeSettingsBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.management_ = managementBuilder_ == null ? management_ : managementBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.minCpuPlatform_ = minCpuPlatform_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.diskSizeGb_ = diskSizeGb_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.diskType_ = diskType_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.shieldedInstanceConfig_ = - shieldedInstanceConfigBuilder_ == null - ? shieldedInstanceConfig_ - : shieldedInstanceConfigBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.bootDiskKmsKey_ = bootDiskKmsKey_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.imageType_ = imageType_; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.insecureKubeletReadonlyPortEnabled_ = insecureKubeletReadonlyPortEnabled_; - to_bitField0_ |= 0x00000008; - } - result.bitField0_ |= to_bitField0_; - } - - @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_ |= 0x00000001; - } else { - ensureOauthScopesIsMutable(); - oauthScopes_.addAll(other.oauthScopes_); - } - onChanged(); - } - if (!other.getServiceAccount().isEmpty()) { - serviceAccount_ = other.serviceAccount_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasUpgradeSettings()) { - mergeUpgradeSettings(other.getUpgradeSettings()); - } - if (other.hasManagement()) { - mergeManagement(other.getManagement()); - } - if (!other.getMinCpuPlatform().isEmpty()) { - minCpuPlatform_ = other.minCpuPlatform_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (other.getDiskSizeGb() != 0) { - setDiskSizeGb(other.getDiskSizeGb()); - } - if (!other.getDiskType().isEmpty()) { - diskType_ = other.diskType_; - bitField0_ |= 0x00000040; - onChanged(); - } - if (other.hasShieldedInstanceConfig()) { - mergeShieldedInstanceConfig(other.getShieldedInstanceConfig()); - } - if (!other.getBootDiskKmsKey().isEmpty()) { - bootDiskKmsKey_ = other.bootDiskKmsKey_; - bitField0_ |= 0x00000100; - onChanged(); - } - if (!other.getImageType().isEmpty()) { - imageType_ = other.imageType_; - bitField0_ |= 0x00000200; - onChanged(); - } - if (other.hasInsecureKubeletReadonlyPortEnabled()) { - setInsecureKubeletReadonlyPortEnabled(other.getInsecureKubeletReadonlyPortEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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(); - ensureOauthScopesIsMutable(); - oauthScopes_.add(s); - break; - } // case 10 - case 18: - { - serviceAccount_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getUpgradeSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getManagementFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - minCpuPlatform_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: - { - diskSizeGb_ = input.readInt32(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: - { - diskType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: - { - input.readMessage( - getShieldedInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 74: - { - bootDiskKmsKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 74 - case 82: - { - imageType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; - break; - } // case 82 - case 104: - { - insecureKubeletReadonlyPortEnabled_ = input.readBool(); - bitField0_ |= 0x00000400; - break; - } // case 104 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.protobuf.LazyStringArrayList oauthScopes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureOauthScopesIsMutable() { - if (!oauthScopes_.isModifiable()) { - 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() { - oauthScopes_.makeImmutable(); - 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); - } - /** - * - * - *
-     * 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); - 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 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); - 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 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_); - 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; - * - * @return This builder for chaining. - */ - public Builder clearOauthScopes() { - oauthScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - 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); - bitField0_ |= 0x00000001; - 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; - bitField0_ |= 0x00000002; - 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(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - 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 ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * 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; - } else { - upgradeSettingsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - 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(); - } else { - upgradeSettingsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - 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 (((bitField0_ & 0x00000004) != 0) - && upgradeSettings_ != null - && upgradeSettings_ - != com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance()) { - getUpgradeSettingsBuilder().mergeFrom(value); - } else { - upgradeSettings_ = value; - } - } else { - upgradeSettingsBuilder_.mergeFrom(value); - } - if (upgradeSettings_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; - */ - public Builder clearUpgradeSettings() { - bitField0_ = (bitField0_ & ~0x00000004); - upgradeSettings_ = null; - if (upgradeSettingsBuilder_ != null) { - upgradeSettingsBuilder_.dispose(); - upgradeSettingsBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000004; - 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 ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-     * 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; - } else { - managementBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - 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(); - } else { - managementBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - 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 (((bitField0_ & 0x00000008) != 0) - && management_ != null - && management_ != com.google.container.v1beta1.NodeManagement.getDefaultInstance()) { - getManagementBuilder().mergeFrom(value); - } else { - management_ = value; - } - } else { - managementBuilder_.mergeFrom(value); - } - if (management_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - return this; - } - /** - * - * - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1beta1.NodeManagement management = 4; - */ - public Builder clearManagement() { - bitField0_ = (bitField0_ & ~0x00000008); - management_ = null; - if (managementBuilder_ != null) { - managementBuilder_.dispose(); - managementBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1beta1.NodeManagement management = 4; - */ - public com.google.container.v1beta1.NodeManagement.Builder getManagementBuilder() { - bitField0_ |= 0x00000008; - 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_ = ""; - /** - * - * - *
-     * Deprecated. Minimum CPU platform to be used for NAP created node pools.
-     * The instance may be scheduled on the specified or newer CPU platform.
-     * Applicable values are the friendly names of CPU platforms, such as
-     * minCpuPlatform: Intel Haswell or
-     * minCpuPlatform: Intel Sandy Bridge. For more
-     * information, read [how to specify min CPU
-     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
-     * This field is deprecated, min_cpu_platform should be specified using
-     * `cloud.google.com/requested-min-cpu-platform` label selector on the pod.
-     * To unset the min cpu platform field pass "automatic"
-     * as field value.
-     * 
- * - * string min_cpu_platform = 5 [deprecated = true]; - * - * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4420 - * @return The minCpuPlatform. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. Minimum CPU platform to be used for NAP created node pools.
-     * The instance may be scheduled on the specified or newer CPU platform.
-     * Applicable values are the friendly names of CPU platforms, such as
-     * minCpuPlatform: Intel Haswell or
-     * minCpuPlatform: Intel Sandy Bridge. For more
-     * information, read [how to specify min CPU
-     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
-     * This field is deprecated, min_cpu_platform should be specified using
-     * `cloud.google.com/requested-min-cpu-platform` label selector on the pod.
-     * To unset the min cpu platform field pass "automatic"
-     * as field value.
-     * 
- * - * string min_cpu_platform = 5 [deprecated = true]; - * - * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4420 - * @return The bytes for minCpuPlatform. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. Minimum CPU platform to be used for NAP created node pools.
-     * The instance may be scheduled on the specified or newer CPU platform.
-     * Applicable values are the friendly names of CPU platforms, such as
-     * minCpuPlatform: Intel Haswell or
-     * minCpuPlatform: Intel Sandy Bridge. For more
-     * information, read [how to specify min CPU
-     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
-     * This field is deprecated, min_cpu_platform should be specified using
-     * `cloud.google.com/requested-min-cpu-platform` label selector on the pod.
-     * To unset the min cpu platform field pass "automatic"
-     * as field value.
-     * 
- * - * string min_cpu_platform = 5 [deprecated = true]; - * - * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4420 - * @param value The minCpuPlatform to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setMinCpuPlatform(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - minCpuPlatform_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. Minimum CPU platform to be used for NAP created node pools.
-     * The instance may be scheduled on the specified or newer CPU platform.
-     * Applicable values are the friendly names of CPU platforms, such as
-     * minCpuPlatform: Intel Haswell or
-     * minCpuPlatform: Intel Sandy Bridge. For more
-     * information, read [how to specify min CPU
-     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
-     * This field is deprecated, min_cpu_platform should be specified using
-     * `cloud.google.com/requested-min-cpu-platform` label selector on the pod.
-     * To unset the min cpu platform field pass "automatic"
-     * as field value.
-     * 
- * - * string min_cpu_platform = 5 [deprecated = true]; - * - * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4420 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearMinCpuPlatform() { - minCpuPlatform_ = getDefaultInstance().getMinCpuPlatform(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. Minimum CPU platform to be used for NAP created node pools.
-     * The instance may be scheduled on the specified or newer CPU platform.
-     * Applicable values are the friendly names of CPU platforms, such as
-     * minCpuPlatform: Intel Haswell or
-     * minCpuPlatform: Intel Sandy Bridge. For more
-     * information, read [how to specify min CPU
-     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
-     * This field is deprecated, min_cpu_platform should be specified using
-     * `cloud.google.com/requested-min-cpu-platform` label selector on the pod.
-     * To unset the min cpu platform field pass "automatic"
-     * as field value.
-     * 
- * - * string min_cpu_platform = 5 [deprecated = true]; - * - * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4420 - * @param value The bytes for minCpuPlatform to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setMinCpuPlatformBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - minCpuPlatform_ = value; - bitField0_ |= 0x00000010; - 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; - bitField0_ |= 0x00000020; - 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() { - bitField0_ = (bitField0_ & ~0x00000020); - 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; - bitField0_ |= 0x00000040; - 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(); - bitField0_ = (bitField0_ & ~0x00000040); - 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; - bitField0_ |= 0x00000040; - 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 ((bitField0_ & 0x00000080) != 0); - } - /** - * - * - *
-     * 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; - } else { - shieldedInstanceConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000080; - onChanged(); - 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(); - } else { - shieldedInstanceConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000080; - onChanged(); - 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 (((bitField0_ & 0x00000080) != 0) - && shieldedInstanceConfig_ != null - && shieldedInstanceConfig_ - != com.google.container.v1beta1.ShieldedInstanceConfig.getDefaultInstance()) { - getShieldedInstanceConfigBuilder().mergeFrom(value); - } else { - shieldedInstanceConfig_ = value; - } - } else { - shieldedInstanceConfigBuilder_.mergeFrom(value); - } - if (shieldedInstanceConfig_ != null) { - bitField0_ |= 0x00000080; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; - */ - public Builder clearShieldedInstanceConfig() { - bitField0_ = (bitField0_ & ~0x00000080); - shieldedInstanceConfig_ = null; - if (shieldedInstanceConfigBuilder_ != null) { - shieldedInstanceConfigBuilder_.dispose(); - shieldedInstanceConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; - */ - public com.google.container.v1beta1.ShieldedInstanceConfig.Builder - getShieldedInstanceConfigBuilder() { - bitField0_ |= 0x00000080; - 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; - bitField0_ |= 0x00000100; - 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(); - bitField0_ = (bitField0_ & ~0x00000100); - 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; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - - private java.lang.Object imageType_ = ""; - /** - * - * - *
-     * The image type to use for NAP created node. Please see
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-     * available image types.
-     * 
- * - * 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 NAP created node. Please see
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-     * available image types.
-     * 
- * - * 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 NAP created node. Please see
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-     * available image types.
-     * 
- * - * 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; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * - * - *
-     * The image type to use for NAP created node. Please see
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-     * available image types.
-     * 
- * - * string image_type = 10; - * - * @return This builder for chaining. - */ - public Builder clearImageType() { - imageType_ = getDefaultInstance().getImageType(); - bitField0_ = (bitField0_ & ~0x00000200); - onChanged(); - return this; - } - /** - * - * - *
-     * The image type to use for NAP created node. Please see
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-     * available image types.
-     * 
- * - * 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; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - - private boolean insecureKubeletReadonlyPortEnabled_; - /** - * - * - *
-     * Enable or disable Kubelet read only port.
-     * 
- * - * optional bool insecure_kubelet_readonly_port_enabled = 13; - * - * @return Whether the insecureKubeletReadonlyPortEnabled field is set. - */ - @java.lang.Override - public boolean hasInsecureKubeletReadonlyPortEnabled() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - * - * - *
-     * Enable or disable Kubelet read only port.
-     * 
- * - * optional bool insecure_kubelet_readonly_port_enabled = 13; - * - * @return The insecureKubeletReadonlyPortEnabled. - */ - @java.lang.Override - public boolean getInsecureKubeletReadonlyPortEnabled() { - return insecureKubeletReadonlyPortEnabled_; - } - /** - * - * - *
-     * Enable or disable Kubelet read only port.
-     * 
- * - * optional bool insecure_kubelet_readonly_port_enabled = 13; - * - * @param value The insecureKubeletReadonlyPortEnabled to set. - * @return This builder for chaining. - */ - public Builder setInsecureKubeletReadonlyPortEnabled(boolean value) { - - insecureKubeletReadonlyPortEnabled_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable or disable Kubelet read only port.
-     * 
- * - * optional bool insecure_kubelet_readonly_port_enabled = 13; - * - * @return This builder for chaining. - */ - public Builder clearInsecureKubeletReadonlyPortEnabled() { - bitField0_ = (bitField0_ & ~0x00000400); - insecureKubeletReadonlyPortEnabled_ = 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.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaultsOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaultsOrBuilder.java deleted file mode 100644 index fe8eae7e1b89..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaultsOrBuilder.java +++ /dev/null @@ -1,456 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - - /** - * - * - *
-   * Deprecated. Minimum CPU platform to be used for NAP created node pools.
-   * The instance may be scheduled on the specified or newer CPU platform.
-   * Applicable values are the friendly names of CPU platforms, such as
-   * minCpuPlatform: Intel Haswell or
-   * minCpuPlatform: Intel Sandy Bridge. For more
-   * information, read [how to specify min CPU
-   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
-   * This field is deprecated, min_cpu_platform should be specified using
-   * `cloud.google.com/requested-min-cpu-platform` label selector on the pod.
-   * To unset the min cpu platform field pass "automatic"
-   * as field value.
-   * 
- * - * string min_cpu_platform = 5 [deprecated = true]; - * - * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4420 - * @return The minCpuPlatform. - */ - @java.lang.Deprecated - java.lang.String getMinCpuPlatform(); - /** - * - * - *
-   * Deprecated. Minimum CPU platform to be used for NAP created node pools.
-   * The instance may be scheduled on the specified or newer CPU platform.
-   * Applicable values are the friendly names of CPU platforms, such as
-   * minCpuPlatform: Intel Haswell or
-   * minCpuPlatform: Intel Sandy Bridge. For more
-   * information, read [how to specify min CPU
-   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
-   * This field is deprecated, min_cpu_platform should be specified using
-   * `cloud.google.com/requested-min-cpu-platform` label selector on the pod.
-   * To unset the min cpu platform field pass "automatic"
-   * as field value.
-   * 
- * - * string min_cpu_platform = 5 [deprecated = true]; - * - * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4420 - * @return The bytes for minCpuPlatform. - */ - @java.lang.Deprecated - 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 NAP created node. Please see
-   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-   * available image types.
-   * 
- * - * string image_type = 10; - * - * @return The imageType. - */ - java.lang.String getImageType(); - /** - * - * - *
-   * The image type to use for NAP created node. Please see
-   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-   * available image types.
-   * 
- * - * string image_type = 10; - * - * @return The bytes for imageType. - */ - com.google.protobuf.ByteString getImageTypeBytes(); - - /** - * - * - *
-   * Enable or disable Kubelet read only port.
-   * 
- * - * optional bool insecure_kubelet_readonly_port_enabled = 13; - * - * @return Whether the insecureKubeletReadonlyPortEnabled field is set. - */ - boolean hasInsecureKubeletReadonlyPortEnabled(); - /** - * - * - *
-   * Enable or disable Kubelet read only port.
-   * 
- * - * optional bool insecure_kubelet_readonly_port_enabled = 13; - * - * @return The insecureKubeletReadonlyPortEnabled. - */ - boolean getInsecureKubeletReadonlyPortEnabled(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BestEffortProvisioning.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BestEffortProvisioning.java deleted file mode 100644 index 25d18e68f9af..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BestEffortProvisioning.java +++ /dev/null @@ -1,644 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * Best effort provisioning.
- * 
- * - * Protobuf type {@code google.container.v1beta1.BestEffortProvisioning} - */ -public final class BestEffortProvisioning extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.BestEffortProvisioning) - BestEffortProvisioningOrBuilder { - private static final long serialVersionUID = 0L; - // Use BestEffortProvisioning.newBuilder() to construct. - private BestEffortProvisioning(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private BestEffortProvisioning() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BestEffortProvisioning(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_BestEffortProvisioning_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_BestEffortProvisioning_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.BestEffortProvisioning.class, - com.google.container.v1beta1.BestEffortProvisioning.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * When this is enabled, cluster/node pool creations will ignore non-fatal
-   * errors like stockout to best provision as many nodes as possible right now
-   * and eventually bring up all target number of nodes
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - public static final int MIN_PROVISION_NODES_FIELD_NUMBER = 2; - private int minProvisionNodes_ = 0; - /** - * - * - *
-   * Minimum number of nodes to be provisioned to be considered as succeeded,
-   * and the rest of nodes will be provisioned gradually and eventually when
-   * stockout issue has been resolved.
-   * 
- * - * int32 min_provision_nodes = 2; - * - * @return The minProvisionNodes. - */ - @java.lang.Override - public int getMinProvisionNodes() { - return minProvisionNodes_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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 (minProvisionNodes_ != 0) { - output.writeInt32(2, minProvisionNodes_); - } - getUnknownFields().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 (minProvisionNodes_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, minProvisionNodes_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.BestEffortProvisioning)) { - return super.equals(obj); - } - com.google.container.v1beta1.BestEffortProvisioning other = - (com.google.container.v1beta1.BestEffortProvisioning) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (getMinProvisionNodes() != other.getMinProvisionNodes()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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_PROVISION_NODES_FIELD_NUMBER; - hash = (53 * hash) + getMinProvisionNodes(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.BestEffortProvisioning parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.BestEffortProvisioning parseFrom( - 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.BestEffortProvisioning parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.BestEffortProvisioning parseFrom( - com.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.BestEffortProvisioning parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.BestEffortProvisioning parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.BestEffortProvisioning parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.BestEffortProvisioning parseFrom( - java.io.InputStream 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.BestEffortProvisioning parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.BestEffortProvisioning parseDelimitedFrom( - java.io.InputStream 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.BestEffortProvisioning parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.BestEffortProvisioning parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.BestEffortProvisioning prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Best effort provisioning.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.BestEffortProvisioning} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.BestEffortProvisioning) - com.google.container.v1beta1.BestEffortProvisioningOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_BestEffortProvisioning_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_BestEffortProvisioning_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.BestEffortProvisioning.class, - com.google.container.v1beta1.BestEffortProvisioning.Builder.class); - } - - // Construct using com.google.container.v1beta1.BestEffortProvisioning.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enabled_ = false; - minProvisionNodes_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_BestEffortProvisioning_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.BestEffortProvisioning getDefaultInstanceForType() { - return com.google.container.v1beta1.BestEffortProvisioning.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.BestEffortProvisioning build() { - com.google.container.v1beta1.BestEffortProvisioning result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.BestEffortProvisioning buildPartial() { - com.google.container.v1beta1.BestEffortProvisioning result = - new com.google.container.v1beta1.BestEffortProvisioning(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.BestEffortProvisioning result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.minProvisionNodes_ = minProvisionNodes_; - } - } - - @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.BestEffortProvisioning) { - return mergeFrom((com.google.container.v1beta1.BestEffortProvisioning) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.BestEffortProvisioning other) { - if (other == com.google.container.v1beta1.BestEffortProvisioning.getDefaultInstance()) - return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - if (other.getMinProvisionNodes() != 0) { - setMinProvisionNodes(other.getMinProvisionNodes()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - minProvisionNodes_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean enabled_; - /** - * - * - *
-     * When this is enabled, cluster/node pool creations will ignore non-fatal
-     * errors like stockout to best provision as many nodes as possible right now
-     * and eventually bring up all target number of nodes
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * When this is enabled, cluster/node pool creations will ignore non-fatal
-     * errors like stockout to best provision as many nodes as possible right now
-     * and eventually bring up all target number of nodes
-     * 
- * - * bool enabled = 1; - * - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * When this is enabled, cluster/node pool creations will ignore non-fatal
-     * errors like stockout to best provision as many nodes as possible right now
-     * and eventually bring up all target number of nodes
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - enabled_ = false; - onChanged(); - return this; - } - - private int minProvisionNodes_; - /** - * - * - *
-     * Minimum number of nodes to be provisioned to be considered as succeeded,
-     * and the rest of nodes will be provisioned gradually and eventually when
-     * stockout issue has been resolved.
-     * 
- * - * int32 min_provision_nodes = 2; - * - * @return The minProvisionNodes. - */ - @java.lang.Override - public int getMinProvisionNodes() { - return minProvisionNodes_; - } - /** - * - * - *
-     * Minimum number of nodes to be provisioned to be considered as succeeded,
-     * and the rest of nodes will be provisioned gradually and eventually when
-     * stockout issue has been resolved.
-     * 
- * - * int32 min_provision_nodes = 2; - * - * @param value The minProvisionNodes to set. - * @return This builder for chaining. - */ - public Builder setMinProvisionNodes(int value) { - - minProvisionNodes_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Minimum number of nodes to be provisioned to be considered as succeeded,
-     * and the rest of nodes will be provisioned gradually and eventually when
-     * stockout issue has been resolved.
-     * 
- * - * int32 min_provision_nodes = 2; - * - * @return This builder for chaining. - */ - public Builder clearMinProvisionNodes() { - bitField0_ = (bitField0_ & ~0x00000002); - minProvisionNodes_ = 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.BestEffortProvisioning) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.BestEffortProvisioning) - private static final com.google.container.v1beta1.BestEffortProvisioning DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.BestEffortProvisioning(); - } - - public static com.google.container.v1beta1.BestEffortProvisioning getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BestEffortProvisioning parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.BestEffortProvisioning getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BestEffortProvisioningOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BestEffortProvisioningOrBuilder.java deleted file mode 100644 index c8497a2ae541..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BestEffortProvisioningOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface BestEffortProvisioningOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.BestEffortProvisioning) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * When this is enabled, cluster/node pool creations will ignore non-fatal
-   * errors like stockout to best provision as many nodes as possible right now
-   * and eventually bring up all target number of nodes
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); - - /** - * - * - *
-   * Minimum number of nodes to be provisioned to be considered as succeeded,
-   * and the rest of nodes will be provisioned gradually and eventually when
-   * stockout issue has been resolved.
-   * 
- * - * int32 min_provision_nodes = 2; - * - * @return The minProvisionNodes. - */ - int getMinProvisionNodes(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BinaryAuthorization.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BinaryAuthorization.java deleted file mode 100644 index 1fb34d6e2798..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BinaryAuthorization.java +++ /dev/null @@ -1,2229 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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() { - evaluationMode_ = 0; - policyBindings_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BinaryAuthorization(); - } - - 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); - } - - /** - * - * - *
-   * Binary Authorization mode of operation.
-   * 
- * - * Protobuf enum {@code google.container.v1beta1.BinaryAuthorization.EvaluationMode} - */ - public enum EvaluationMode implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value
-     * 
- * - * EVALUATION_MODE_UNSPECIFIED = 0; - */ - EVALUATION_MODE_UNSPECIFIED(0), - /** - * - * - *
-     * Disable BinaryAuthorization
-     * 
- * - * DISABLED = 1; - */ - DISABLED(1), - /** - * - * - *
-     * Enforce Kubernetes admission requests with BinaryAuthorization using the
-     * project's singleton policy. This is equivalent to setting the
-     * enabled boolean to true.
-     * 
- * - * PROJECT_SINGLETON_POLICY_ENFORCE = 2; - */ - PROJECT_SINGLETON_POLICY_ENFORCE(2), - /** - * - * - *
-     * Use Binary Authorization Continuous Validation with the policies
-     * specified in policy_bindings.
-     * 
- * - * POLICY_BINDINGS = 5; - */ - POLICY_BINDINGS(5), - /** - * - * - *
-     * Use Binary Authorization Continuous Validation with the policies
-     * specified in policy_bindings and enforce Kubernetes admission requests
-     * with Binary Authorization using the project's singleton policy.
-     * 
- * - * POLICY_BINDINGS_AND_PROJECT_SINGLETON_POLICY_ENFORCE = 6; - */ - POLICY_BINDINGS_AND_PROJECT_SINGLETON_POLICY_ENFORCE(6), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value
-     * 
- * - * EVALUATION_MODE_UNSPECIFIED = 0; - */ - public static final int EVALUATION_MODE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Disable BinaryAuthorization
-     * 
- * - * DISABLED = 1; - */ - public static final int DISABLED_VALUE = 1; - /** - * - * - *
-     * Enforce Kubernetes admission requests with BinaryAuthorization using the
-     * project's singleton policy. This is equivalent to setting the
-     * enabled boolean to true.
-     * 
- * - * PROJECT_SINGLETON_POLICY_ENFORCE = 2; - */ - public static final int PROJECT_SINGLETON_POLICY_ENFORCE_VALUE = 2; - /** - * - * - *
-     * Use Binary Authorization Continuous Validation with the policies
-     * specified in policy_bindings.
-     * 
- * - * POLICY_BINDINGS = 5; - */ - public static final int POLICY_BINDINGS_VALUE = 5; - /** - * - * - *
-     * Use Binary Authorization Continuous Validation with the policies
-     * specified in policy_bindings and enforce Kubernetes admission requests
-     * with Binary Authorization using the project's singleton policy.
-     * 
- * - * POLICY_BINDINGS_AND_PROJECT_SINGLETON_POLICY_ENFORCE = 6; - */ - public static final int POLICY_BINDINGS_AND_PROJECT_SINGLETON_POLICY_ENFORCE_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 EvaluationMode 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 EvaluationMode forNumber(int value) { - switch (value) { - case 0: - return EVALUATION_MODE_UNSPECIFIED; - case 1: - return DISABLED; - case 2: - return PROJECT_SINGLETON_POLICY_ENFORCE; - case 5: - return POLICY_BINDINGS; - case 6: - return POLICY_BINDINGS_AND_PROJECT_SINGLETON_POLICY_ENFORCE; - 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 EvaluationMode findValueByNumber(int number) { - return EvaluationMode.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.BinaryAuthorization.getDescriptor().getEnumTypes().get(0); - } - - private static final EvaluationMode[] VALUES = values(); - - public static EvaluationMode 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 EvaluationMode(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1beta1.BinaryAuthorization.EvaluationMode) - } - - public interface PolicyBindingOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.BinaryAuthorization.PolicyBinding) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * The relative resource name of the binauthz platform policy to audit. GKE
-     * platform policies have the following format:
-     * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
-     * 
- * - * optional string name = 1; - * - * @return Whether the name field is set. - */ - boolean hasName(); - /** - * - * - *
-     * The relative resource name of the binauthz platform policy to audit. GKE
-     * platform policies have the following format:
-     * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
-     * 
- * - * optional string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-     * The relative resource name of the binauthz platform policy to audit. GKE
-     * platform policies have the following format:
-     * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
-     * 
- * - * optional string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - } - /** - * - * - *
-   * Binauthz policy that applies to this cluster.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.BinaryAuthorization.PolicyBinding} - */ - public static final class PolicyBinding extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.BinaryAuthorization.PolicyBinding) - PolicyBindingOrBuilder { - private static final long serialVersionUID = 0L; - // Use PolicyBinding.newBuilder() to construct. - private PolicyBinding(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PolicyBinding() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PolicyBinding(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_BinaryAuthorization_PolicyBinding_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_BinaryAuthorization_PolicyBinding_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.BinaryAuthorization.PolicyBinding.class, - com.google.container.v1beta1.BinaryAuthorization.PolicyBinding.Builder.class); - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-     * The relative resource name of the binauthz platform policy to audit. GKE
-     * platform policies have the following format:
-     * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
-     * 
- * - * optional string name = 1; - * - * @return Whether the name field is set. - */ - @java.lang.Override - public boolean hasName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * The relative resource name of the binauthz platform policy to audit. GKE
-     * platform policies have the following format:
-     * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
-     * 
- * - * optional 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 relative resource name of the binauthz platform policy to audit. GKE
-     * platform policies have the following format:
-     * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
-     * 
- * - * optional string name = 1; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.PolicyBinding)) { - return super.equals(obj); - } - com.google.container.v1beta1.BinaryAuthorization.PolicyBinding other = - (com.google.container.v1beta1.BinaryAuthorization.PolicyBinding) obj; - - if (hasName() != other.hasName()) return false; - if (hasName()) { - if (!getName().equals(other.getName())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasName()) { - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.BinaryAuthorization.PolicyBinding parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.BinaryAuthorization.PolicyBinding parseFrom( - 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.PolicyBinding parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.BinaryAuthorization.PolicyBinding parseFrom( - com.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.PolicyBinding parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.BinaryAuthorization.PolicyBinding 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.PolicyBinding parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.BinaryAuthorization.PolicyBinding parseFrom( - java.io.InputStream 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.PolicyBinding parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.BinaryAuthorization.PolicyBinding parseDelimitedFrom( - java.io.InputStream 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.PolicyBinding 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.PolicyBinding parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.PolicyBinding prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Binauthz policy that applies to this cluster.
-     * 
- * - * Protobuf type {@code google.container.v1beta1.BinaryAuthorization.PolicyBinding} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.BinaryAuthorization.PolicyBinding) - com.google.container.v1beta1.BinaryAuthorization.PolicyBindingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_BinaryAuthorization_PolicyBinding_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_BinaryAuthorization_PolicyBinding_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.BinaryAuthorization.PolicyBinding.class, - com.google.container.v1beta1.BinaryAuthorization.PolicyBinding.Builder.class); - } - - // Construct using com.google.container.v1beta1.BinaryAuthorization.PolicyBinding.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 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_BinaryAuthorization_PolicyBinding_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.BinaryAuthorization.PolicyBinding - getDefaultInstanceForType() { - return com.google.container.v1beta1.BinaryAuthorization.PolicyBinding.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.BinaryAuthorization.PolicyBinding build() { - com.google.container.v1beta1.BinaryAuthorization.PolicyBinding result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.BinaryAuthorization.PolicyBinding buildPartial() { - com.google.container.v1beta1.BinaryAuthorization.PolicyBinding result = - new com.google.container.v1beta1.BinaryAuthorization.PolicyBinding(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.container.v1beta1.BinaryAuthorization.PolicyBinding result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @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.PolicyBinding) { - return mergeFrom((com.google.container.v1beta1.BinaryAuthorization.PolicyBinding) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.container.v1beta1.BinaryAuthorization.PolicyBinding other) { - if (other - == com.google.container.v1beta1.BinaryAuthorization.PolicyBinding.getDefaultInstance()) - return this; - if (other.hasName()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-       * The relative resource name of the binauthz platform policy to audit. GKE
-       * platform policies have the following format:
-       * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
-       * 
- * - * optional string name = 1; - * - * @return Whether the name field is set. - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-       * The relative resource name of the binauthz platform policy to audit. GKE
-       * platform policies have the following format:
-       * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
-       * 
- * - * optional 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 relative resource name of the binauthz platform policy to audit. GKE
-       * platform policies have the following format:
-       * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
-       * 
- * - * optional 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 relative resource name of the binauthz platform policy to audit. GKE
-       * platform policies have the following format:
-       * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
-       * 
- * - * optional 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * The relative resource name of the binauthz platform policy to audit. GKE
-       * platform policies have the following format:
-       * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
-       * 
- * - * optional string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-       * The relative resource name of the binauthz platform policy to audit. GKE
-       * platform policies have the following format:
-       * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
-       * 
- * - * optional 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; - bitField0_ |= 0x00000001; - 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.PolicyBinding) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.BinaryAuthorization.PolicyBinding) - private static final com.google.container.v1beta1.BinaryAuthorization.PolicyBinding - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.BinaryAuthorization.PolicyBinding(); - } - - public static com.google.container.v1beta1.BinaryAuthorization.PolicyBinding - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PolicyBinding parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.PolicyBinding - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * This field is deprecated. Leave this unset and instead configure
-   * BinaryAuthorization using evaluation_mode. If evaluation_mode is set to
-   * anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored.
-   * 
- * - * bool enabled = 1 [deprecated = true]; - * - * @deprecated google.container.v1beta1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1833 - * @return The enabled. - */ - @java.lang.Override - @java.lang.Deprecated - public boolean getEnabled() { - return enabled_; - } - - public static final int EVALUATION_MODE_FIELD_NUMBER = 2; - private int evaluationMode_ = 0; - /** - * - * - *
-   * Mode of operation for binauthz policy evaluation. If unspecified, defaults
-   * to DISABLED.
-   * 
- * - * .google.container.v1beta1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; - * - * @return The enum numeric value on the wire for evaluationMode. - */ - @java.lang.Override - public int getEvaluationModeValue() { - return evaluationMode_; - } - /** - * - * - *
-   * Mode of operation for binauthz policy evaluation. If unspecified, defaults
-   * to DISABLED.
-   * 
- * - * .google.container.v1beta1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; - * - * @return The evaluationMode. - */ - @java.lang.Override - public com.google.container.v1beta1.BinaryAuthorization.EvaluationMode getEvaluationMode() { - com.google.container.v1beta1.BinaryAuthorization.EvaluationMode result = - com.google.container.v1beta1.BinaryAuthorization.EvaluationMode.forNumber(evaluationMode_); - return result == null - ? com.google.container.v1beta1.BinaryAuthorization.EvaluationMode.UNRECOGNIZED - : result; - } - - public static final int POLICY_BINDINGS_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - private java.util.List - policyBindings_; - /** - * - * - *
-   * Optional. Binauthz policies that apply to this cluster.
-   * 
- * - * - * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List - getPolicyBindingsList() { - return policyBindings_; - } - /** - * - * - *
-   * Optional. Binauthz policies that apply to this cluster.
-   * 
- * - * - * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List< - ? extends com.google.container.v1beta1.BinaryAuthorization.PolicyBindingOrBuilder> - getPolicyBindingsOrBuilderList() { - return policyBindings_; - } - /** - * - * - *
-   * Optional. Binauthz policies that apply to this cluster.
-   * 
- * - * - * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public int getPolicyBindingsCount() { - return policyBindings_.size(); - } - /** - * - * - *
-   * Optional. Binauthz policies that apply to this cluster.
-   * 
- * - * - * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.container.v1beta1.BinaryAuthorization.PolicyBinding getPolicyBindings( - int index) { - return policyBindings_.get(index); - } - /** - * - * - *
-   * Optional. Binauthz policies that apply to this cluster.
-   * 
- * - * - * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.container.v1beta1.BinaryAuthorization.PolicyBindingOrBuilder - getPolicyBindingsOrBuilder(int index) { - return policyBindings_.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_); - } - if (evaluationMode_ - != com.google.container.v1beta1.BinaryAuthorization.EvaluationMode - .EVALUATION_MODE_UNSPECIFIED - .getNumber()) { - output.writeEnum(2, evaluationMode_); - } - for (int i = 0; i < policyBindings_.size(); i++) { - output.writeMessage(5, policyBindings_.get(i)); - } - getUnknownFields().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 (evaluationMode_ - != com.google.container.v1beta1.BinaryAuthorization.EvaluationMode - .EVALUATION_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, evaluationMode_); - } - for (int i = 0; i < policyBindings_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, policyBindings_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (evaluationMode_ != other.evaluationMode_) return false; - if (!getPolicyBindingsList().equals(other.getPolicyBindingsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + EVALUATION_MODE_FIELD_NUMBER; - hash = (53 * hash) + evaluationMode_; - if (getPolicyBindingsCount() > 0) { - hash = (37 * hash) + POLICY_BINDINGS_FIELD_NUMBER; - hash = (53 * hash) + getPolicyBindingsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enabled_ = false; - evaluationMode_ = 0; - if (policyBindingsBuilder_ == null) { - policyBindings_ = java.util.Collections.emptyList(); - } else { - policyBindings_ = null; - policyBindingsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - 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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.container.v1beta1.BinaryAuthorization result) { - if (policyBindingsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - policyBindings_ = java.util.Collections.unmodifiableList(policyBindings_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.policyBindings_ = policyBindings_; - } else { - result.policyBindings_ = policyBindingsBuilder_.build(); - } - } - - private void buildPartial0(com.google.container.v1beta1.BinaryAuthorization result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.evaluationMode_ = evaluationMode_; - } - } - - @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()); - } - if (other.evaluationMode_ != 0) { - setEvaluationModeValue(other.getEvaluationModeValue()); - } - if (policyBindingsBuilder_ == null) { - if (!other.policyBindings_.isEmpty()) { - if (policyBindings_.isEmpty()) { - policyBindings_ = other.policyBindings_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensurePolicyBindingsIsMutable(); - policyBindings_.addAll(other.policyBindings_); - } - onChanged(); - } - } else { - if (!other.policyBindings_.isEmpty()) { - if (policyBindingsBuilder_.isEmpty()) { - policyBindingsBuilder_.dispose(); - policyBindingsBuilder_ = null; - policyBindings_ = other.policyBindings_; - bitField0_ = (bitField0_ & ~0x00000004); - policyBindingsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPolicyBindingsFieldBuilder() - : null; - } else { - policyBindingsBuilder_.addAllMessages(other.policyBindings_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - evaluationMode_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 42: - { - com.google.container.v1beta1.BinaryAuthorization.PolicyBinding m = - input.readMessage( - com.google.container.v1beta1.BinaryAuthorization.PolicyBinding.parser(), - extensionRegistry); - if (policyBindingsBuilder_ == null) { - ensurePolicyBindingsIsMutable(); - policyBindings_.add(m); - } else { - policyBindingsBuilder_.addMessage(m); - } - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean enabled_; - /** - * - * - *
-     * This field is deprecated. Leave this unset and instead configure
-     * BinaryAuthorization using evaluation_mode. If evaluation_mode is set to
-     * anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored.
-     * 
- * - * bool enabled = 1 [deprecated = true]; - * - * @deprecated google.container.v1beta1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1833 - * @return The enabled. - */ - @java.lang.Override - @java.lang.Deprecated - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * This field is deprecated. Leave this unset and instead configure
-     * BinaryAuthorization using evaluation_mode. If evaluation_mode is set to
-     * anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored.
-     * 
- * - * bool enabled = 1 [deprecated = true]; - * - * @deprecated google.container.v1beta1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1833 - * @param value The enabled to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setEnabled(boolean value) { - - enabled_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * This field is deprecated. Leave this unset and instead configure
-     * BinaryAuthorization using evaluation_mode. If evaluation_mode is set to
-     * anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored.
-     * 
- * - * bool enabled = 1 [deprecated = true]; - * - * @deprecated google.container.v1beta1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1833 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - enabled_ = false; - onChanged(); - return this; - } - - private int evaluationMode_ = 0; - /** - * - * - *
-     * Mode of operation for binauthz policy evaluation. If unspecified, defaults
-     * to DISABLED.
-     * 
- * - * .google.container.v1beta1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; - * - * - * @return The enum numeric value on the wire for evaluationMode. - */ - @java.lang.Override - public int getEvaluationModeValue() { - return evaluationMode_; - } - /** - * - * - *
-     * Mode of operation for binauthz policy evaluation. If unspecified, defaults
-     * to DISABLED.
-     * 
- * - * .google.container.v1beta1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; - * - * - * @param value The enum numeric value on the wire for evaluationMode to set. - * @return This builder for chaining. - */ - public Builder setEvaluationModeValue(int value) { - evaluationMode_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Mode of operation for binauthz policy evaluation. If unspecified, defaults
-     * to DISABLED.
-     * 
- * - * .google.container.v1beta1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; - * - * - * @return The evaluationMode. - */ - @java.lang.Override - public com.google.container.v1beta1.BinaryAuthorization.EvaluationMode getEvaluationMode() { - com.google.container.v1beta1.BinaryAuthorization.EvaluationMode result = - com.google.container.v1beta1.BinaryAuthorization.EvaluationMode.forNumber( - evaluationMode_); - return result == null - ? com.google.container.v1beta1.BinaryAuthorization.EvaluationMode.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Mode of operation for binauthz policy evaluation. If unspecified, defaults
-     * to DISABLED.
-     * 
- * - * .google.container.v1beta1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; - * - * - * @param value The evaluationMode to set. - * @return This builder for chaining. - */ - public Builder setEvaluationMode( - com.google.container.v1beta1.BinaryAuthorization.EvaluationMode value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - evaluationMode_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Mode of operation for binauthz policy evaluation. If unspecified, defaults
-     * to DISABLED.
-     * 
- * - * .google.container.v1beta1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; - * - * - * @return This builder for chaining. - */ - public Builder clearEvaluationMode() { - bitField0_ = (bitField0_ & ~0x00000002); - evaluationMode_ = 0; - onChanged(); - return this; - } - - private java.util.List - policyBindings_ = java.util.Collections.emptyList(); - - private void ensurePolicyBindingsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - policyBindings_ = - new java.util.ArrayList( - policyBindings_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.BinaryAuthorization.PolicyBinding, - com.google.container.v1beta1.BinaryAuthorization.PolicyBinding.Builder, - com.google.container.v1beta1.BinaryAuthorization.PolicyBindingOrBuilder> - policyBindingsBuilder_; - - /** - * - * - *
-     * Optional. Binauthz policies that apply to this cluster.
-     * 
- * - * - * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getPolicyBindingsList() { - if (policyBindingsBuilder_ == null) { - return java.util.Collections.unmodifiableList(policyBindings_); - } else { - return policyBindingsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Optional. Binauthz policies that apply to this cluster.
-     * 
- * - * - * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public int getPolicyBindingsCount() { - if (policyBindingsBuilder_ == null) { - return policyBindings_.size(); - } else { - return policyBindingsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Optional. Binauthz policies that apply to this cluster.
-     * 
- * - * - * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.container.v1beta1.BinaryAuthorization.PolicyBinding getPolicyBindings( - int index) { - if (policyBindingsBuilder_ == null) { - return policyBindings_.get(index); - } else { - return policyBindingsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Optional. Binauthz policies that apply to this cluster.
-     * 
- * - * - * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPolicyBindings( - int index, com.google.container.v1beta1.BinaryAuthorization.PolicyBinding value) { - if (policyBindingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePolicyBindingsIsMutable(); - policyBindings_.set(index, value); - onChanged(); - } else { - policyBindingsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Optional. Binauthz policies that apply to this cluster.
-     * 
- * - * - * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPolicyBindings( - int index, - com.google.container.v1beta1.BinaryAuthorization.PolicyBinding.Builder builderForValue) { - if (policyBindingsBuilder_ == null) { - ensurePolicyBindingsIsMutable(); - policyBindings_.set(index, builderForValue.build()); - onChanged(); - } else { - policyBindingsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Optional. Binauthz policies that apply to this cluster.
-     * 
- * - * - * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addPolicyBindings( - com.google.container.v1beta1.BinaryAuthorization.PolicyBinding value) { - if (policyBindingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePolicyBindingsIsMutable(); - policyBindings_.add(value); - onChanged(); - } else { - policyBindingsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Optional. Binauthz policies that apply to this cluster.
-     * 
- * - * - * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addPolicyBindings( - int index, com.google.container.v1beta1.BinaryAuthorization.PolicyBinding value) { - if (policyBindingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePolicyBindingsIsMutable(); - policyBindings_.add(index, value); - onChanged(); - } else { - policyBindingsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Optional. Binauthz policies that apply to this cluster.
-     * 
- * - * - * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addPolicyBindings( - com.google.container.v1beta1.BinaryAuthorization.PolicyBinding.Builder builderForValue) { - if (policyBindingsBuilder_ == null) { - ensurePolicyBindingsIsMutable(); - policyBindings_.add(builderForValue.build()); - onChanged(); - } else { - policyBindingsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Optional. Binauthz policies that apply to this cluster.
-     * 
- * - * - * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addPolicyBindings( - int index, - com.google.container.v1beta1.BinaryAuthorization.PolicyBinding.Builder builderForValue) { - if (policyBindingsBuilder_ == null) { - ensurePolicyBindingsIsMutable(); - policyBindings_.add(index, builderForValue.build()); - onChanged(); - } else { - policyBindingsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Optional. Binauthz policies that apply to this cluster.
-     * 
- * - * - * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAllPolicyBindings( - java.lang.Iterable - values) { - if (policyBindingsBuilder_ == null) { - ensurePolicyBindingsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, policyBindings_); - onChanged(); - } else { - policyBindingsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Optional. Binauthz policies that apply to this cluster.
-     * 
- * - * - * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearPolicyBindings() { - if (policyBindingsBuilder_ == null) { - policyBindings_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - policyBindingsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. Binauthz policies that apply to this cluster.
-     * 
- * - * - * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removePolicyBindings(int index) { - if (policyBindingsBuilder_ == null) { - ensurePolicyBindingsIsMutable(); - policyBindings_.remove(index); - onChanged(); - } else { - policyBindingsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Optional. Binauthz policies that apply to this cluster.
-     * 
- * - * - * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.container.v1beta1.BinaryAuthorization.PolicyBinding.Builder - getPolicyBindingsBuilder(int index) { - return getPolicyBindingsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Optional. Binauthz policies that apply to this cluster.
-     * 
- * - * - * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.container.v1beta1.BinaryAuthorization.PolicyBindingOrBuilder - getPolicyBindingsOrBuilder(int index) { - if (policyBindingsBuilder_ == null) { - return policyBindings_.get(index); - } else { - return policyBindingsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Optional. Binauthz policies that apply to this cluster.
-     * 
- * - * - * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List< - ? extends com.google.container.v1beta1.BinaryAuthorization.PolicyBindingOrBuilder> - getPolicyBindingsOrBuilderList() { - if (policyBindingsBuilder_ != null) { - return policyBindingsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(policyBindings_); - } - } - /** - * - * - *
-     * Optional. Binauthz policies that apply to this cluster.
-     * 
- * - * - * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.container.v1beta1.BinaryAuthorization.PolicyBinding.Builder - addPolicyBindingsBuilder() { - return getPolicyBindingsFieldBuilder() - .addBuilder( - com.google.container.v1beta1.BinaryAuthorization.PolicyBinding.getDefaultInstance()); - } - /** - * - * - *
-     * Optional. Binauthz policies that apply to this cluster.
-     * 
- * - * - * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.container.v1beta1.BinaryAuthorization.PolicyBinding.Builder - addPolicyBindingsBuilder(int index) { - return getPolicyBindingsFieldBuilder() - .addBuilder( - index, - com.google.container.v1beta1.BinaryAuthorization.PolicyBinding.getDefaultInstance()); - } - /** - * - * - *
-     * Optional. Binauthz policies that apply to this cluster.
-     * 
- * - * - * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getPolicyBindingsBuilderList() { - return getPolicyBindingsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.BinaryAuthorization.PolicyBinding, - com.google.container.v1beta1.BinaryAuthorization.PolicyBinding.Builder, - com.google.container.v1beta1.BinaryAuthorization.PolicyBindingOrBuilder> - getPolicyBindingsFieldBuilder() { - if (policyBindingsBuilder_ == null) { - policyBindingsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.BinaryAuthorization.PolicyBinding, - com.google.container.v1beta1.BinaryAuthorization.PolicyBinding.Builder, - com.google.container.v1beta1.BinaryAuthorization.PolicyBindingOrBuilder>( - policyBindings_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - policyBindings_ = null; - } - return policyBindingsBuilder_; - } - - @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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BinaryAuthorizationOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BinaryAuthorizationOrBuilder.java deleted file mode 100644 index 098a4e08194b..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BinaryAuthorizationOrBuilder.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface BinaryAuthorizationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.BinaryAuthorization) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * This field is deprecated. Leave this unset and instead configure
-   * BinaryAuthorization using evaluation_mode. If evaluation_mode is set to
-   * anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored.
-   * 
- * - * bool enabled = 1 [deprecated = true]; - * - * @deprecated google.container.v1beta1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1833 - * @return The enabled. - */ - @java.lang.Deprecated - boolean getEnabled(); - - /** - * - * - *
-   * Mode of operation for binauthz policy evaluation. If unspecified, defaults
-   * to DISABLED.
-   * 
- * - * .google.container.v1beta1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; - * - * @return The enum numeric value on the wire for evaluationMode. - */ - int getEvaluationModeValue(); - /** - * - * - *
-   * Mode of operation for binauthz policy evaluation. If unspecified, defaults
-   * to DISABLED.
-   * 
- * - * .google.container.v1beta1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; - * - * @return The evaluationMode. - */ - com.google.container.v1beta1.BinaryAuthorization.EvaluationMode getEvaluationMode(); - - /** - * - * - *
-   * Optional. Binauthz policies that apply to this cluster.
-   * 
- * - * - * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List - getPolicyBindingsList(); - /** - * - * - *
-   * Optional. Binauthz policies that apply to this cluster.
-   * 
- * - * - * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.container.v1beta1.BinaryAuthorization.PolicyBinding getPolicyBindings(int index); - /** - * - * - *
-   * Optional. Binauthz policies that apply to this cluster.
-   * 
- * - * - * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getPolicyBindingsCount(); - /** - * - * - *
-   * Optional. Binauthz policies that apply to this cluster.
-   * 
- * - * - * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List - getPolicyBindingsOrBuilderList(); - /** - * - * - *
-   * Optional. Binauthz policies that apply to this cluster.
-   * 
- * - * - * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.container.v1beta1.BinaryAuthorization.PolicyBindingOrBuilder - getPolicyBindingsOrBuilder(int index); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BlueGreenSettings.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BlueGreenSettings.java deleted file mode 100644 index 85e190fdcade..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BlueGreenSettings.java +++ /dev/null @@ -1,3123 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * Settings for blue-green upgrade.
- * 
- * - * Protobuf type {@code google.container.v1beta1.BlueGreenSettings} - */ -public final class BlueGreenSettings extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.BlueGreenSettings) - BlueGreenSettingsOrBuilder { - private static final long serialVersionUID = 0L; - // Use BlueGreenSettings.newBuilder() to construct. - private BlueGreenSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private BlueGreenSettings() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BlueGreenSettings(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_BlueGreenSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_BlueGreenSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.BlueGreenSettings.class, - com.google.container.v1beta1.BlueGreenSettings.Builder.class); - } - - public interface StandardRolloutPolicyOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Percentage of the blue pool nodes to drain in a batch.
-     * The range of this field should be (0.0, 1.0].
-     * 
- * - * float batch_percentage = 1; - * - * @return Whether the batchPercentage field is set. - */ - boolean hasBatchPercentage(); - /** - * - * - *
-     * Percentage of the blue pool nodes to drain in a batch.
-     * The range of this field should be (0.0, 1.0].
-     * 
- * - * float batch_percentage = 1; - * - * @return The batchPercentage. - */ - float getBatchPercentage(); - - /** - * - * - *
-     * Number of blue nodes to drain in a batch.
-     * 
- * - * int32 batch_node_count = 2; - * - * @return Whether the batchNodeCount field is set. - */ - boolean hasBatchNodeCount(); - /** - * - * - *
-     * Number of blue nodes to drain in a batch.
-     * 
- * - * int32 batch_node_count = 2; - * - * @return The batchNodeCount. - */ - int getBatchNodeCount(); - - /** - * - * - *
-     * Soak time after each batch gets drained. Default to zero.
-     * 
- * - * optional .google.protobuf.Duration batch_soak_duration = 3; - * - * @return Whether the batchSoakDuration field is set. - */ - boolean hasBatchSoakDuration(); - /** - * - * - *
-     * Soak time after each batch gets drained. Default to zero.
-     * 
- * - * optional .google.protobuf.Duration batch_soak_duration = 3; - * - * @return The batchSoakDuration. - */ - com.google.protobuf.Duration getBatchSoakDuration(); - /** - * - * - *
-     * Soak time after each batch gets drained. Default to zero.
-     * 
- * - * optional .google.protobuf.Duration batch_soak_duration = 3; - */ - com.google.protobuf.DurationOrBuilder getBatchSoakDurationOrBuilder(); - - com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy.UpdateBatchSizeCase - getUpdateBatchSizeCase(); - } - /** - * - * - *
-   * Standard rollout policy is the default policy for blue-green.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy} - */ - public static final class StandardRolloutPolicy extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy) - StandardRolloutPolicyOrBuilder { - private static final long serialVersionUID = 0L; - // Use StandardRolloutPolicy.newBuilder() to construct. - private StandardRolloutPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private StandardRolloutPolicy() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new StandardRolloutPolicy(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_BlueGreenSettings_StandardRolloutPolicy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_BlueGreenSettings_StandardRolloutPolicy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy.class, - com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy.Builder.class); - } - - private int bitField0_; - private int updateBatchSizeCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object updateBatchSize_; - - public enum UpdateBatchSizeCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - BATCH_PERCENTAGE(1), - BATCH_NODE_COUNT(2), - UPDATEBATCHSIZE_NOT_SET(0); - private final int value; - - private UpdateBatchSizeCase(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 UpdateBatchSizeCase valueOf(int value) { - return forNumber(value); - } - - public static UpdateBatchSizeCase forNumber(int value) { - switch (value) { - case 1: - return BATCH_PERCENTAGE; - case 2: - return BATCH_NODE_COUNT; - case 0: - return UPDATEBATCHSIZE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public UpdateBatchSizeCase getUpdateBatchSizeCase() { - return UpdateBatchSizeCase.forNumber(updateBatchSizeCase_); - } - - public static final int BATCH_PERCENTAGE_FIELD_NUMBER = 1; - /** - * - * - *
-     * Percentage of the blue pool nodes to drain in a batch.
-     * The range of this field should be (0.0, 1.0].
-     * 
- * - * float batch_percentage = 1; - * - * @return Whether the batchPercentage field is set. - */ - @java.lang.Override - public boolean hasBatchPercentage() { - return updateBatchSizeCase_ == 1; - } - /** - * - * - *
-     * Percentage of the blue pool nodes to drain in a batch.
-     * The range of this field should be (0.0, 1.0].
-     * 
- * - * float batch_percentage = 1; - * - * @return The batchPercentage. - */ - @java.lang.Override - public float getBatchPercentage() { - if (updateBatchSizeCase_ == 1) { - return (java.lang.Float) updateBatchSize_; - } - return 0F; - } - - public static final int BATCH_NODE_COUNT_FIELD_NUMBER = 2; - /** - * - * - *
-     * Number of blue nodes to drain in a batch.
-     * 
- * - * int32 batch_node_count = 2; - * - * @return Whether the batchNodeCount field is set. - */ - @java.lang.Override - public boolean hasBatchNodeCount() { - return updateBatchSizeCase_ == 2; - } - /** - * - * - *
-     * Number of blue nodes to drain in a batch.
-     * 
- * - * int32 batch_node_count = 2; - * - * @return The batchNodeCount. - */ - @java.lang.Override - public int getBatchNodeCount() { - if (updateBatchSizeCase_ == 2) { - return (java.lang.Integer) updateBatchSize_; - } - return 0; - } - - public static final int BATCH_SOAK_DURATION_FIELD_NUMBER = 3; - private com.google.protobuf.Duration batchSoakDuration_; - /** - * - * - *
-     * Soak time after each batch gets drained. Default to zero.
-     * 
- * - * optional .google.protobuf.Duration batch_soak_duration = 3; - * - * @return Whether the batchSoakDuration field is set. - */ - @java.lang.Override - public boolean hasBatchSoakDuration() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Soak time after each batch gets drained. Default to zero.
-     * 
- * - * optional .google.protobuf.Duration batch_soak_duration = 3; - * - * @return The batchSoakDuration. - */ - @java.lang.Override - public com.google.protobuf.Duration getBatchSoakDuration() { - return batchSoakDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : batchSoakDuration_; - } - /** - * - * - *
-     * Soak time after each batch gets drained. Default to zero.
-     * 
- * - * optional .google.protobuf.Duration batch_soak_duration = 3; - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getBatchSoakDurationOrBuilder() { - return batchSoakDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : batchSoakDuration_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (updateBatchSizeCase_ == 1) { - output.writeFloat(1, (float) ((java.lang.Float) updateBatchSize_)); - } - if (updateBatchSizeCase_ == 2) { - output.writeInt32(2, (int) ((java.lang.Integer) updateBatchSize_)); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getBatchSoakDuration()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (updateBatchSizeCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeFloatSize( - 1, (float) ((java.lang.Float) updateBatchSize_)); - } - if (updateBatchSizeCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeInt32Size( - 2, (int) ((java.lang.Integer) updateBatchSize_)); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBatchSoakDuration()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.BlueGreenSettings.StandardRolloutPolicy)) { - return super.equals(obj); - } - com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy other = - (com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy) obj; - - if (hasBatchSoakDuration() != other.hasBatchSoakDuration()) return false; - if (hasBatchSoakDuration()) { - if (!getBatchSoakDuration().equals(other.getBatchSoakDuration())) return false; - } - if (!getUpdateBatchSizeCase().equals(other.getUpdateBatchSizeCase())) return false; - switch (updateBatchSizeCase_) { - case 1: - if (java.lang.Float.floatToIntBits(getBatchPercentage()) - != java.lang.Float.floatToIntBits(other.getBatchPercentage())) return false; - break; - case 2: - if (getBatchNodeCount() != other.getBatchNodeCount()) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasBatchSoakDuration()) { - hash = (37 * hash) + BATCH_SOAK_DURATION_FIELD_NUMBER; - hash = (53 * hash) + getBatchSoakDuration().hashCode(); - } - switch (updateBatchSizeCase_) { - case 1: - hash = (37 * hash) + BATCH_PERCENTAGE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getBatchPercentage()); - break; - case 2: - hash = (37 * hash) + BATCH_NODE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getBatchNodeCount(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy parseFrom( - 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.BlueGreenSettings.StandardRolloutPolicy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy parseFrom( - com.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.BlueGreenSettings.StandardRolloutPolicy parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy parseFrom( - java.io.InputStream 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.BlueGreenSettings.StandardRolloutPolicy - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy - parseDelimitedFrom( - java.io.InputStream 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.BlueGreenSettings.StandardRolloutPolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.BlueGreenSettings.StandardRolloutPolicy prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Standard rollout policy is the default policy for blue-green.
-     * 
- * - * Protobuf type {@code google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy) - com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_BlueGreenSettings_StandardRolloutPolicy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_BlueGreenSettings_StandardRolloutPolicy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy.class, - com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy.Builder.class); - } - - // Construct using - // com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getBatchSoakDurationFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - batchSoakDuration_ = null; - if (batchSoakDurationBuilder_ != null) { - batchSoakDurationBuilder_.dispose(); - batchSoakDurationBuilder_ = null; - } - updateBatchSizeCase_ = 0; - updateBatchSize_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_BlueGreenSettings_StandardRolloutPolicy_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy - getDefaultInstanceForType() { - return com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy build() { - com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy buildPartial() { - com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy result = - new com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.batchSoakDuration_ = - batchSoakDurationBuilder_ == null - ? batchSoakDuration_ - : batchSoakDurationBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartialOneofs( - com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy result) { - result.updateBatchSizeCase_ = updateBatchSizeCase_; - result.updateBatchSize_ = this.updateBatchSize_; - } - - @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.BlueGreenSettings.StandardRolloutPolicy) { - return mergeFrom( - (com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy other) { - if (other - == com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy - .getDefaultInstance()) return this; - if (other.hasBatchSoakDuration()) { - mergeBatchSoakDuration(other.getBatchSoakDuration()); - } - switch (other.getUpdateBatchSizeCase()) { - case BATCH_PERCENTAGE: - { - setBatchPercentage(other.getBatchPercentage()); - break; - } - case BATCH_NODE_COUNT: - { - setBatchNodeCount(other.getBatchNodeCount()); - break; - } - case UPDATEBATCHSIZE_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 13: - { - updateBatchSize_ = input.readFloat(); - updateBatchSizeCase_ = 1; - break; - } // case 13 - case 16: - { - updateBatchSize_ = input.readInt32(); - updateBatchSizeCase_ = 2; - break; - } // case 16 - case 26: - { - input.readMessage( - getBatchSoakDurationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int updateBatchSizeCase_ = 0; - private java.lang.Object updateBatchSize_; - - public UpdateBatchSizeCase getUpdateBatchSizeCase() { - return UpdateBatchSizeCase.forNumber(updateBatchSizeCase_); - } - - public Builder clearUpdateBatchSize() { - updateBatchSizeCase_ = 0; - updateBatchSize_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * - * - *
-       * Percentage of the blue pool nodes to drain in a batch.
-       * The range of this field should be (0.0, 1.0].
-       * 
- * - * float batch_percentage = 1; - * - * @return Whether the batchPercentage field is set. - */ - public boolean hasBatchPercentage() { - return updateBatchSizeCase_ == 1; - } - /** - * - * - *
-       * Percentage of the blue pool nodes to drain in a batch.
-       * The range of this field should be (0.0, 1.0].
-       * 
- * - * float batch_percentage = 1; - * - * @return The batchPercentage. - */ - public float getBatchPercentage() { - if (updateBatchSizeCase_ == 1) { - return (java.lang.Float) updateBatchSize_; - } - return 0F; - } - /** - * - * - *
-       * Percentage of the blue pool nodes to drain in a batch.
-       * The range of this field should be (0.0, 1.0].
-       * 
- * - * float batch_percentage = 1; - * - * @param value The batchPercentage to set. - * @return This builder for chaining. - */ - public Builder setBatchPercentage(float value) { - - updateBatchSizeCase_ = 1; - updateBatchSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Percentage of the blue pool nodes to drain in a batch.
-       * The range of this field should be (0.0, 1.0].
-       * 
- * - * float batch_percentage = 1; - * - * @return This builder for chaining. - */ - public Builder clearBatchPercentage() { - if (updateBatchSizeCase_ == 1) { - updateBatchSizeCase_ = 0; - updateBatchSize_ = null; - onChanged(); - } - return this; - } - - /** - * - * - *
-       * Number of blue nodes to drain in a batch.
-       * 
- * - * int32 batch_node_count = 2; - * - * @return Whether the batchNodeCount field is set. - */ - public boolean hasBatchNodeCount() { - return updateBatchSizeCase_ == 2; - } - /** - * - * - *
-       * Number of blue nodes to drain in a batch.
-       * 
- * - * int32 batch_node_count = 2; - * - * @return The batchNodeCount. - */ - public int getBatchNodeCount() { - if (updateBatchSizeCase_ == 2) { - return (java.lang.Integer) updateBatchSize_; - } - return 0; - } - /** - * - * - *
-       * Number of blue nodes to drain in a batch.
-       * 
- * - * int32 batch_node_count = 2; - * - * @param value The batchNodeCount to set. - * @return This builder for chaining. - */ - public Builder setBatchNodeCount(int value) { - - updateBatchSizeCase_ = 2; - updateBatchSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Number of blue nodes to drain in a batch.
-       * 
- * - * int32 batch_node_count = 2; - * - * @return This builder for chaining. - */ - public Builder clearBatchNodeCount() { - if (updateBatchSizeCase_ == 2) { - updateBatchSizeCase_ = 0; - updateBatchSize_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.Duration batchSoakDuration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - batchSoakDurationBuilder_; - /** - * - * - *
-       * Soak time after each batch gets drained. Default to zero.
-       * 
- * - * optional .google.protobuf.Duration batch_soak_duration = 3; - * - * @return Whether the batchSoakDuration field is set. - */ - public boolean hasBatchSoakDuration() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-       * Soak time after each batch gets drained. Default to zero.
-       * 
- * - * optional .google.protobuf.Duration batch_soak_duration = 3; - * - * @return The batchSoakDuration. - */ - public com.google.protobuf.Duration getBatchSoakDuration() { - if (batchSoakDurationBuilder_ == null) { - return batchSoakDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : batchSoakDuration_; - } else { - return batchSoakDurationBuilder_.getMessage(); - } - } - /** - * - * - *
-       * Soak time after each batch gets drained. Default to zero.
-       * 
- * - * optional .google.protobuf.Duration batch_soak_duration = 3; - */ - public Builder setBatchSoakDuration(com.google.protobuf.Duration value) { - if (batchSoakDurationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - batchSoakDuration_ = value; - } else { - batchSoakDurationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-       * Soak time after each batch gets drained. Default to zero.
-       * 
- * - * optional .google.protobuf.Duration batch_soak_duration = 3; - */ - public Builder setBatchSoakDuration(com.google.protobuf.Duration.Builder builderForValue) { - if (batchSoakDurationBuilder_ == null) { - batchSoakDuration_ = builderForValue.build(); - } else { - batchSoakDurationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-       * Soak time after each batch gets drained. Default to zero.
-       * 
- * - * optional .google.protobuf.Duration batch_soak_duration = 3; - */ - public Builder mergeBatchSoakDuration(com.google.protobuf.Duration value) { - if (batchSoakDurationBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && batchSoakDuration_ != null - && batchSoakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { - getBatchSoakDurationBuilder().mergeFrom(value); - } else { - batchSoakDuration_ = value; - } - } else { - batchSoakDurationBuilder_.mergeFrom(value); - } - if (batchSoakDuration_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - * - * - *
-       * Soak time after each batch gets drained. Default to zero.
-       * 
- * - * optional .google.protobuf.Duration batch_soak_duration = 3; - */ - public Builder clearBatchSoakDuration() { - bitField0_ = (bitField0_ & ~0x00000004); - batchSoakDuration_ = null; - if (batchSoakDurationBuilder_ != null) { - batchSoakDurationBuilder_.dispose(); - batchSoakDurationBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-       * Soak time after each batch gets drained. Default to zero.
-       * 
- * - * optional .google.protobuf.Duration batch_soak_duration = 3; - */ - public com.google.protobuf.Duration.Builder getBatchSoakDurationBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getBatchSoakDurationFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * Soak time after each batch gets drained. Default to zero.
-       * 
- * - * optional .google.protobuf.Duration batch_soak_duration = 3; - */ - public com.google.protobuf.DurationOrBuilder getBatchSoakDurationOrBuilder() { - if (batchSoakDurationBuilder_ != null) { - return batchSoakDurationBuilder_.getMessageOrBuilder(); - } else { - return batchSoakDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : batchSoakDuration_; - } - } - /** - * - * - *
-       * Soak time after each batch gets drained. Default to zero.
-       * 
- * - * optional .google.protobuf.Duration batch_soak_duration = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getBatchSoakDurationFieldBuilder() { - if (batchSoakDurationBuilder_ == null) { - batchSoakDurationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getBatchSoakDuration(), getParentForChildren(), isClean()); - batchSoakDuration_ = null; - } - return batchSoakDurationBuilder_; - } - - @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.BlueGreenSettings.StandardRolloutPolicy) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy) - private static final com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy(); - } - - public static com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StandardRolloutPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.BlueGreenSettings.StandardRolloutPolicy - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface AutoscaledRolloutPolicyOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy) - com.google.protobuf.MessageOrBuilder {} - /** - * - * - *
-   * Autoscaled rollout policy uses cluster autoscaler during
-   * blue-green upgrades to scale both the green and blue pools.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy} - */ - public static final class AutoscaledRolloutPolicy extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy) - AutoscaledRolloutPolicyOrBuilder { - private static final long serialVersionUID = 0L; - // Use AutoscaledRolloutPolicy.newBuilder() to construct. - private AutoscaledRolloutPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AutoscaledRolloutPolicy() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AutoscaledRolloutPolicy(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_BlueGreenSettings_AutoscaledRolloutPolicy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_BlueGreenSettings_AutoscaledRolloutPolicy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy.class, - com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy.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 { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.BlueGreenSettings.AutoscaledRolloutPolicy)) { - return super.equals(obj); - } - com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy other = - (com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy parseFrom( - 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.BlueGreenSettings.AutoscaledRolloutPolicy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy parseFrom( - com.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.BlueGreenSettings.AutoscaledRolloutPolicy parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy parseFrom( - java.io.InputStream 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.BlueGreenSettings.AutoscaledRolloutPolicy - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy - parseDelimitedFrom( - java.io.InputStream 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.BlueGreenSettings.AutoscaledRolloutPolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.BlueGreenSettings.AutoscaledRolloutPolicy prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Autoscaled rollout policy uses cluster autoscaler during
-     * blue-green upgrades to scale both the green and blue pools.
-     * 
- * - * Protobuf type {@code google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy) - com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_BlueGreenSettings_AutoscaledRolloutPolicy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_BlueGreenSettings_AutoscaledRolloutPolicy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy.class, - com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy.Builder - .class); - } - - // Construct using - // com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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_BlueGreenSettings_AutoscaledRolloutPolicy_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy - getDefaultInstanceForType() { - return com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy build() { - com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy buildPartial() { - com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy result = - new com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy(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.BlueGreenSettings.AutoscaledRolloutPolicy) { - return mergeFrom( - (com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy other) { - if (other - == com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy - .getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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.BlueGreenSettings.AutoscaledRolloutPolicy) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy) - private static final com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy(); - } - - public static com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AutoscaledRolloutPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.BlueGreenSettings.AutoscaledRolloutPolicy - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int bitField0_; - private int rolloutPolicyCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object rolloutPolicy_; - - public enum RolloutPolicyCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - STANDARD_ROLLOUT_POLICY(1), - AUTOSCALED_ROLLOUT_POLICY(3), - ROLLOUTPOLICY_NOT_SET(0); - private final int value; - - private RolloutPolicyCase(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 RolloutPolicyCase valueOf(int value) { - return forNumber(value); - } - - public static RolloutPolicyCase forNumber(int value) { - switch (value) { - case 1: - return STANDARD_ROLLOUT_POLICY; - case 3: - return AUTOSCALED_ROLLOUT_POLICY; - case 0: - return ROLLOUTPOLICY_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public RolloutPolicyCase getRolloutPolicyCase() { - return RolloutPolicyCase.forNumber(rolloutPolicyCase_); - } - - public static final int STANDARD_ROLLOUT_POLICY_FIELD_NUMBER = 1; - /** - * - * - *
-   * Standard policy for the blue-green upgrade.
-   * 
- * - * - * .google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; - * - * - * @return Whether the standardRolloutPolicy field is set. - */ - @java.lang.Override - public boolean hasStandardRolloutPolicy() { - return rolloutPolicyCase_ == 1; - } - /** - * - * - *
-   * Standard policy for the blue-green upgrade.
-   * 
- * - * - * .google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; - * - * - * @return The standardRolloutPolicy. - */ - @java.lang.Override - public com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy - getStandardRolloutPolicy() { - if (rolloutPolicyCase_ == 1) { - return (com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy) rolloutPolicy_; - } - return com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy - .getDefaultInstance(); - } - /** - * - * - *
-   * Standard policy for the blue-green upgrade.
-   * 
- * - * - * .google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; - * - */ - @java.lang.Override - public com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicyOrBuilder - getStandardRolloutPolicyOrBuilder() { - if (rolloutPolicyCase_ == 1) { - return (com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy) rolloutPolicy_; - } - return com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy - .getDefaultInstance(); - } - - public static final int AUTOSCALED_ROLLOUT_POLICY_FIELD_NUMBER = 3; - /** - * - * - *
-   * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
-   * 
- * - * - * .google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; - * - * - * @return Whether the autoscaledRolloutPolicy field is set. - */ - @java.lang.Override - public boolean hasAutoscaledRolloutPolicy() { - return rolloutPolicyCase_ == 3; - } - /** - * - * - *
-   * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
-   * 
- * - * - * .google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; - * - * - * @return The autoscaledRolloutPolicy. - */ - @java.lang.Override - public com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy - getAutoscaledRolloutPolicy() { - if (rolloutPolicyCase_ == 3) { - return (com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy) - rolloutPolicy_; - } - return com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy - .getDefaultInstance(); - } - /** - * - * - *
-   * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
-   * 
- * - * - * .google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; - * - */ - @java.lang.Override - public com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicyOrBuilder - getAutoscaledRolloutPolicyOrBuilder() { - if (rolloutPolicyCase_ == 3) { - return (com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy) - rolloutPolicy_; - } - return com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy - .getDefaultInstance(); - } - - public static final int NODE_POOL_SOAK_DURATION_FIELD_NUMBER = 2; - private com.google.protobuf.Duration nodePoolSoakDuration_; - /** - * - * - *
-   * Time needed after draining entire blue pool. After this period, blue pool
-   * will be cleaned up.
-   * 
- * - * optional .google.protobuf.Duration node_pool_soak_duration = 2; - * - * @return Whether the nodePoolSoakDuration field is set. - */ - @java.lang.Override - public boolean hasNodePoolSoakDuration() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Time needed after draining entire blue pool. After this period, blue pool
-   * will be cleaned up.
-   * 
- * - * optional .google.protobuf.Duration node_pool_soak_duration = 2; - * - * @return The nodePoolSoakDuration. - */ - @java.lang.Override - public com.google.protobuf.Duration getNodePoolSoakDuration() { - return nodePoolSoakDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : nodePoolSoakDuration_; - } - /** - * - * - *
-   * Time needed after draining entire blue pool. After this period, blue pool
-   * will be cleaned up.
-   * 
- * - * optional .google.protobuf.Duration node_pool_soak_duration = 2; - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getNodePoolSoakDurationOrBuilder() { - return nodePoolSoakDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : nodePoolSoakDuration_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (rolloutPolicyCase_ == 1) { - output.writeMessage( - 1, (com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy) rolloutPolicy_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getNodePoolSoakDuration()); - } - if (rolloutPolicyCase_ == 3) { - output.writeMessage( - 3, - (com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy) rolloutPolicy_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (rolloutPolicyCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, - (com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy) - rolloutPolicy_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, getNodePoolSoakDuration()); - } - if (rolloutPolicyCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, - (com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy) - rolloutPolicy_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.BlueGreenSettings)) { - return super.equals(obj); - } - com.google.container.v1beta1.BlueGreenSettings other = - (com.google.container.v1beta1.BlueGreenSettings) obj; - - if (hasNodePoolSoakDuration() != other.hasNodePoolSoakDuration()) return false; - if (hasNodePoolSoakDuration()) { - if (!getNodePoolSoakDuration().equals(other.getNodePoolSoakDuration())) return false; - } - if (!getRolloutPolicyCase().equals(other.getRolloutPolicyCase())) return false; - switch (rolloutPolicyCase_) { - case 1: - if (!getStandardRolloutPolicy().equals(other.getStandardRolloutPolicy())) return false; - break; - case 3: - if (!getAutoscaledRolloutPolicy().equals(other.getAutoscaledRolloutPolicy())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasNodePoolSoakDuration()) { - hash = (37 * hash) + NODE_POOL_SOAK_DURATION_FIELD_NUMBER; - hash = (53 * hash) + getNodePoolSoakDuration().hashCode(); - } - switch (rolloutPolicyCase_) { - case 1: - hash = (37 * hash) + STANDARD_ROLLOUT_POLICY_FIELD_NUMBER; - hash = (53 * hash) + getStandardRolloutPolicy().hashCode(); - break; - case 3: - hash = (37 * hash) + AUTOSCALED_ROLLOUT_POLICY_FIELD_NUMBER; - hash = (53 * hash) + getAutoscaledRolloutPolicy().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.BlueGreenSettings parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.BlueGreenSettings parseFrom( - 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.BlueGreenSettings parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.BlueGreenSettings parseFrom( - com.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.BlueGreenSettings parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.BlueGreenSettings parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.BlueGreenSettings parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.BlueGreenSettings parseFrom( - java.io.InputStream 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.BlueGreenSettings parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.BlueGreenSettings parseDelimitedFrom( - java.io.InputStream 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.BlueGreenSettings parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.BlueGreenSettings parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.BlueGreenSettings prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Settings for blue-green upgrade.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.BlueGreenSettings} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.BlueGreenSettings) - com.google.container.v1beta1.BlueGreenSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_BlueGreenSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_BlueGreenSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.BlueGreenSettings.class, - com.google.container.v1beta1.BlueGreenSettings.Builder.class); - } - - // Construct using com.google.container.v1beta1.BlueGreenSettings.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getNodePoolSoakDurationFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (standardRolloutPolicyBuilder_ != null) { - standardRolloutPolicyBuilder_.clear(); - } - if (autoscaledRolloutPolicyBuilder_ != null) { - autoscaledRolloutPolicyBuilder_.clear(); - } - nodePoolSoakDuration_ = null; - if (nodePoolSoakDurationBuilder_ != null) { - nodePoolSoakDurationBuilder_.dispose(); - nodePoolSoakDurationBuilder_ = null; - } - rolloutPolicyCase_ = 0; - rolloutPolicy_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_BlueGreenSettings_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.BlueGreenSettings getDefaultInstanceForType() { - return com.google.container.v1beta1.BlueGreenSettings.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.BlueGreenSettings build() { - com.google.container.v1beta1.BlueGreenSettings result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.BlueGreenSettings buildPartial() { - com.google.container.v1beta1.BlueGreenSettings result = - new com.google.container.v1beta1.BlueGreenSettings(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.BlueGreenSettings result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.nodePoolSoakDuration_ = - nodePoolSoakDurationBuilder_ == null - ? nodePoolSoakDuration_ - : nodePoolSoakDurationBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartialOneofs(com.google.container.v1beta1.BlueGreenSettings result) { - result.rolloutPolicyCase_ = rolloutPolicyCase_; - result.rolloutPolicy_ = this.rolloutPolicy_; - if (rolloutPolicyCase_ == 1 && standardRolloutPolicyBuilder_ != null) { - result.rolloutPolicy_ = standardRolloutPolicyBuilder_.build(); - } - if (rolloutPolicyCase_ == 3 && autoscaledRolloutPolicyBuilder_ != null) { - result.rolloutPolicy_ = autoscaledRolloutPolicyBuilder_.build(); - } - } - - @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.BlueGreenSettings) { - return mergeFrom((com.google.container.v1beta1.BlueGreenSettings) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.BlueGreenSettings other) { - if (other == com.google.container.v1beta1.BlueGreenSettings.getDefaultInstance()) return this; - if (other.hasNodePoolSoakDuration()) { - mergeNodePoolSoakDuration(other.getNodePoolSoakDuration()); - } - switch (other.getRolloutPolicyCase()) { - case STANDARD_ROLLOUT_POLICY: - { - mergeStandardRolloutPolicy(other.getStandardRolloutPolicy()); - break; - } - case AUTOSCALED_ROLLOUT_POLICY: - { - mergeAutoscaledRolloutPolicy(other.getAutoscaledRolloutPolicy()); - break; - } - case ROLLOUTPOLICY_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage( - getStandardRolloutPolicyFieldBuilder().getBuilder(), extensionRegistry); - rolloutPolicyCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage( - getNodePoolSoakDurationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: - { - input.readMessage( - getAutoscaledRolloutPolicyFieldBuilder().getBuilder(), extensionRegistry); - rolloutPolicyCase_ = 3; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int rolloutPolicyCase_ = 0; - private java.lang.Object rolloutPolicy_; - - public RolloutPolicyCase getRolloutPolicyCase() { - return RolloutPolicyCase.forNumber(rolloutPolicyCase_); - } - - public Builder clearRolloutPolicy() { - rolloutPolicyCase_ = 0; - rolloutPolicy_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy, - com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy.Builder, - com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicyOrBuilder> - standardRolloutPolicyBuilder_; - /** - * - * - *
-     * Standard policy for the blue-green upgrade.
-     * 
- * - * - * .google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; - * - * - * @return Whether the standardRolloutPolicy field is set. - */ - @java.lang.Override - public boolean hasStandardRolloutPolicy() { - return rolloutPolicyCase_ == 1; - } - /** - * - * - *
-     * Standard policy for the blue-green upgrade.
-     * 
- * - * - * .google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; - * - * - * @return The standardRolloutPolicy. - */ - @java.lang.Override - public com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy - getStandardRolloutPolicy() { - if (standardRolloutPolicyBuilder_ == null) { - if (rolloutPolicyCase_ == 1) { - return (com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy) - rolloutPolicy_; - } - return com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy - .getDefaultInstance(); - } else { - if (rolloutPolicyCase_ == 1) { - return standardRolloutPolicyBuilder_.getMessage(); - } - return com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy - .getDefaultInstance(); - } - } - /** - * - * - *
-     * Standard policy for the blue-green upgrade.
-     * 
- * - * - * .google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; - * - */ - public Builder setStandardRolloutPolicy( - com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy value) { - if (standardRolloutPolicyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rolloutPolicy_ = value; - onChanged(); - } else { - standardRolloutPolicyBuilder_.setMessage(value); - } - rolloutPolicyCase_ = 1; - return this; - } - /** - * - * - *
-     * Standard policy for the blue-green upgrade.
-     * 
- * - * - * .google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; - * - */ - public Builder setStandardRolloutPolicy( - com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy.Builder - builderForValue) { - if (standardRolloutPolicyBuilder_ == null) { - rolloutPolicy_ = builderForValue.build(); - onChanged(); - } else { - standardRolloutPolicyBuilder_.setMessage(builderForValue.build()); - } - rolloutPolicyCase_ = 1; - return this; - } - /** - * - * - *
-     * Standard policy for the blue-green upgrade.
-     * 
- * - * - * .google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; - * - */ - public Builder mergeStandardRolloutPolicy( - com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy value) { - if (standardRolloutPolicyBuilder_ == null) { - if (rolloutPolicyCase_ == 1 - && rolloutPolicy_ - != com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy - .getDefaultInstance()) { - rolloutPolicy_ = - com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy.newBuilder( - (com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy) - rolloutPolicy_) - .mergeFrom(value) - .buildPartial(); - } else { - rolloutPolicy_ = value; - } - onChanged(); - } else { - if (rolloutPolicyCase_ == 1) { - standardRolloutPolicyBuilder_.mergeFrom(value); - } else { - standardRolloutPolicyBuilder_.setMessage(value); - } - } - rolloutPolicyCase_ = 1; - return this; - } - /** - * - * - *
-     * Standard policy for the blue-green upgrade.
-     * 
- * - * - * .google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; - * - */ - public Builder clearStandardRolloutPolicy() { - if (standardRolloutPolicyBuilder_ == null) { - if (rolloutPolicyCase_ == 1) { - rolloutPolicyCase_ = 0; - rolloutPolicy_ = null; - onChanged(); - } - } else { - if (rolloutPolicyCase_ == 1) { - rolloutPolicyCase_ = 0; - rolloutPolicy_ = null; - } - standardRolloutPolicyBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Standard policy for the blue-green upgrade.
-     * 
- * - * - * .google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; - * - */ - public com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy.Builder - getStandardRolloutPolicyBuilder() { - return getStandardRolloutPolicyFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Standard policy for the blue-green upgrade.
-     * 
- * - * - * .google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; - * - */ - @java.lang.Override - public com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicyOrBuilder - getStandardRolloutPolicyOrBuilder() { - if ((rolloutPolicyCase_ == 1) && (standardRolloutPolicyBuilder_ != null)) { - return standardRolloutPolicyBuilder_.getMessageOrBuilder(); - } else { - if (rolloutPolicyCase_ == 1) { - return (com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy) - rolloutPolicy_; - } - return com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy - .getDefaultInstance(); - } - } - /** - * - * - *
-     * Standard policy for the blue-green upgrade.
-     * 
- * - * - * .google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy, - com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy.Builder, - com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicyOrBuilder> - getStandardRolloutPolicyFieldBuilder() { - if (standardRolloutPolicyBuilder_ == null) { - if (!(rolloutPolicyCase_ == 1)) { - rolloutPolicy_ = - com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy - .getDefaultInstance(); - } - standardRolloutPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy, - com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy.Builder, - com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicyOrBuilder>( - (com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy) - rolloutPolicy_, - getParentForChildren(), - isClean()); - rolloutPolicy_ = null; - } - rolloutPolicyCase_ = 1; - onChanged(); - return standardRolloutPolicyBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy, - com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy.Builder, - com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicyOrBuilder> - autoscaledRolloutPolicyBuilder_; - /** - * - * - *
-     * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
-     * 
- * - * - * .google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; - * - * - * @return Whether the autoscaledRolloutPolicy field is set. - */ - @java.lang.Override - public boolean hasAutoscaledRolloutPolicy() { - return rolloutPolicyCase_ == 3; - } - /** - * - * - *
-     * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
-     * 
- * - * - * .google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; - * - * - * @return The autoscaledRolloutPolicy. - */ - @java.lang.Override - public com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy - getAutoscaledRolloutPolicy() { - if (autoscaledRolloutPolicyBuilder_ == null) { - if (rolloutPolicyCase_ == 3) { - return (com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy) - rolloutPolicy_; - } - return com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy - .getDefaultInstance(); - } else { - if (rolloutPolicyCase_ == 3) { - return autoscaledRolloutPolicyBuilder_.getMessage(); - } - return com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy - .getDefaultInstance(); - } - } - /** - * - * - *
-     * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
-     * 
- * - * - * .google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; - * - */ - public Builder setAutoscaledRolloutPolicy( - com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy value) { - if (autoscaledRolloutPolicyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rolloutPolicy_ = value; - onChanged(); - } else { - autoscaledRolloutPolicyBuilder_.setMessage(value); - } - rolloutPolicyCase_ = 3; - return this; - } - /** - * - * - *
-     * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
-     * 
- * - * - * .google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; - * - */ - public Builder setAutoscaledRolloutPolicy( - com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy.Builder - builderForValue) { - if (autoscaledRolloutPolicyBuilder_ == null) { - rolloutPolicy_ = builderForValue.build(); - onChanged(); - } else { - autoscaledRolloutPolicyBuilder_.setMessage(builderForValue.build()); - } - rolloutPolicyCase_ = 3; - return this; - } - /** - * - * - *
-     * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
-     * 
- * - * - * .google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; - * - */ - public Builder mergeAutoscaledRolloutPolicy( - com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy value) { - if (autoscaledRolloutPolicyBuilder_ == null) { - if (rolloutPolicyCase_ == 3 - && rolloutPolicy_ - != com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy - .getDefaultInstance()) { - rolloutPolicy_ = - com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy.newBuilder( - (com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy) - rolloutPolicy_) - .mergeFrom(value) - .buildPartial(); - } else { - rolloutPolicy_ = value; - } - onChanged(); - } else { - if (rolloutPolicyCase_ == 3) { - autoscaledRolloutPolicyBuilder_.mergeFrom(value); - } else { - autoscaledRolloutPolicyBuilder_.setMessage(value); - } - } - rolloutPolicyCase_ = 3; - return this; - } - /** - * - * - *
-     * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
-     * 
- * - * - * .google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; - * - */ - public Builder clearAutoscaledRolloutPolicy() { - if (autoscaledRolloutPolicyBuilder_ == null) { - if (rolloutPolicyCase_ == 3) { - rolloutPolicyCase_ = 0; - rolloutPolicy_ = null; - onChanged(); - } - } else { - if (rolloutPolicyCase_ == 3) { - rolloutPolicyCase_ = 0; - rolloutPolicy_ = null; - } - autoscaledRolloutPolicyBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
-     * 
- * - * - * .google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; - * - */ - public com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy.Builder - getAutoscaledRolloutPolicyBuilder() { - return getAutoscaledRolloutPolicyFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
-     * 
- * - * - * .google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; - * - */ - @java.lang.Override - public com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicyOrBuilder - getAutoscaledRolloutPolicyOrBuilder() { - if ((rolloutPolicyCase_ == 3) && (autoscaledRolloutPolicyBuilder_ != null)) { - return autoscaledRolloutPolicyBuilder_.getMessageOrBuilder(); - } else { - if (rolloutPolicyCase_ == 3) { - return (com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy) - rolloutPolicy_; - } - return com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy - .getDefaultInstance(); - } - } - /** - * - * - *
-     * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
-     * 
- * - * - * .google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy, - com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy.Builder, - com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicyOrBuilder> - getAutoscaledRolloutPolicyFieldBuilder() { - if (autoscaledRolloutPolicyBuilder_ == null) { - if (!(rolloutPolicyCase_ == 3)) { - rolloutPolicy_ = - com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy - .getDefaultInstance(); - } - autoscaledRolloutPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy, - com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy.Builder, - com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicyOrBuilder>( - (com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy) - rolloutPolicy_, - getParentForChildren(), - isClean()); - rolloutPolicy_ = null; - } - rolloutPolicyCase_ = 3; - onChanged(); - return autoscaledRolloutPolicyBuilder_; - } - - private com.google.protobuf.Duration nodePoolSoakDuration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - nodePoolSoakDurationBuilder_; - /** - * - * - *
-     * Time needed after draining entire blue pool. After this period, blue pool
-     * will be cleaned up.
-     * 
- * - * optional .google.protobuf.Duration node_pool_soak_duration = 2; - * - * @return Whether the nodePoolSoakDuration field is set. - */ - public boolean hasNodePoolSoakDuration() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * Time needed after draining entire blue pool. After this period, blue pool
-     * will be cleaned up.
-     * 
- * - * optional .google.protobuf.Duration node_pool_soak_duration = 2; - * - * @return The nodePoolSoakDuration. - */ - public com.google.protobuf.Duration getNodePoolSoakDuration() { - if (nodePoolSoakDurationBuilder_ == null) { - return nodePoolSoakDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : nodePoolSoakDuration_; - } else { - return nodePoolSoakDurationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Time needed after draining entire blue pool. After this period, blue pool
-     * will be cleaned up.
-     * 
- * - * optional .google.protobuf.Duration node_pool_soak_duration = 2; - */ - public Builder setNodePoolSoakDuration(com.google.protobuf.Duration value) { - if (nodePoolSoakDurationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - nodePoolSoakDuration_ = value; - } else { - nodePoolSoakDurationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Time needed after draining entire blue pool. After this period, blue pool
-     * will be cleaned up.
-     * 
- * - * optional .google.protobuf.Duration node_pool_soak_duration = 2; - */ - public Builder setNodePoolSoakDuration(com.google.protobuf.Duration.Builder builderForValue) { - if (nodePoolSoakDurationBuilder_ == null) { - nodePoolSoakDuration_ = builderForValue.build(); - } else { - nodePoolSoakDurationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Time needed after draining entire blue pool. After this period, blue pool
-     * will be cleaned up.
-     * 
- * - * optional .google.protobuf.Duration node_pool_soak_duration = 2; - */ - public Builder mergeNodePoolSoakDuration(com.google.protobuf.Duration value) { - if (nodePoolSoakDurationBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && nodePoolSoakDuration_ != null - && nodePoolSoakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { - getNodePoolSoakDurationBuilder().mergeFrom(value); - } else { - nodePoolSoakDuration_ = value; - } - } else { - nodePoolSoakDurationBuilder_.mergeFrom(value); - } - if (nodePoolSoakDuration_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Time needed after draining entire blue pool. After this period, blue pool
-     * will be cleaned up.
-     * 
- * - * optional .google.protobuf.Duration node_pool_soak_duration = 2; - */ - public Builder clearNodePoolSoakDuration() { - bitField0_ = (bitField0_ & ~0x00000004); - nodePoolSoakDuration_ = null; - if (nodePoolSoakDurationBuilder_ != null) { - nodePoolSoakDurationBuilder_.dispose(); - nodePoolSoakDurationBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Time needed after draining entire blue pool. After this period, blue pool
-     * will be cleaned up.
-     * 
- * - * optional .google.protobuf.Duration node_pool_soak_duration = 2; - */ - public com.google.protobuf.Duration.Builder getNodePoolSoakDurationBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getNodePoolSoakDurationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Time needed after draining entire blue pool. After this period, blue pool
-     * will be cleaned up.
-     * 
- * - * optional .google.protobuf.Duration node_pool_soak_duration = 2; - */ - public com.google.protobuf.DurationOrBuilder getNodePoolSoakDurationOrBuilder() { - if (nodePoolSoakDurationBuilder_ != null) { - return nodePoolSoakDurationBuilder_.getMessageOrBuilder(); - } else { - return nodePoolSoakDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : nodePoolSoakDuration_; - } - } - /** - * - * - *
-     * Time needed after draining entire blue pool. After this period, blue pool
-     * will be cleaned up.
-     * 
- * - * optional .google.protobuf.Duration node_pool_soak_duration = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getNodePoolSoakDurationFieldBuilder() { - if (nodePoolSoakDurationBuilder_ == null) { - nodePoolSoakDurationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getNodePoolSoakDuration(), getParentForChildren(), isClean()); - nodePoolSoakDuration_ = null; - } - return nodePoolSoakDurationBuilder_; - } - - @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.BlueGreenSettings) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.BlueGreenSettings) - private static final com.google.container.v1beta1.BlueGreenSettings DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.BlueGreenSettings(); - } - - public static com.google.container.v1beta1.BlueGreenSettings getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BlueGreenSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.BlueGreenSettings getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BlueGreenSettingsOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BlueGreenSettingsOrBuilder.java deleted file mode 100644 index c7db81f30ef7..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BlueGreenSettingsOrBuilder.java +++ /dev/null @@ -1,151 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface BlueGreenSettingsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.BlueGreenSettings) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Standard policy for the blue-green upgrade.
-   * 
- * - * - * .google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; - * - * - * @return Whether the standardRolloutPolicy field is set. - */ - boolean hasStandardRolloutPolicy(); - /** - * - * - *
-   * Standard policy for the blue-green upgrade.
-   * 
- * - * - * .google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; - * - * - * @return The standardRolloutPolicy. - */ - com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy getStandardRolloutPolicy(); - /** - * - * - *
-   * Standard policy for the blue-green upgrade.
-   * 
- * - * - * .google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; - * - */ - com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicyOrBuilder - getStandardRolloutPolicyOrBuilder(); - - /** - * - * - *
-   * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
-   * 
- * - * - * .google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; - * - * - * @return Whether the autoscaledRolloutPolicy field is set. - */ - boolean hasAutoscaledRolloutPolicy(); - /** - * - * - *
-   * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
-   * 
- * - * - * .google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; - * - * - * @return The autoscaledRolloutPolicy. - */ - com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy - getAutoscaledRolloutPolicy(); - /** - * - * - *
-   * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
-   * 
- * - * - * .google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; - * - */ - com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicyOrBuilder - getAutoscaledRolloutPolicyOrBuilder(); - - /** - * - * - *
-   * Time needed after draining entire blue pool. After this period, blue pool
-   * will be cleaned up.
-   * 
- * - * optional .google.protobuf.Duration node_pool_soak_duration = 2; - * - * @return Whether the nodePoolSoakDuration field is set. - */ - boolean hasNodePoolSoakDuration(); - /** - * - * - *
-   * Time needed after draining entire blue pool. After this period, blue pool
-   * will be cleaned up.
-   * 
- * - * optional .google.protobuf.Duration node_pool_soak_duration = 2; - * - * @return The nodePoolSoakDuration. - */ - com.google.protobuf.Duration getNodePoolSoakDuration(); - /** - * - * - *
-   * Time needed after draining entire blue pool. After this period, blue pool
-   * will be cleaned up.
-   * 
- * - * optional .google.protobuf.Duration node_pool_soak_duration = 2; - */ - com.google.protobuf.DurationOrBuilder getNodePoolSoakDurationOrBuilder(); - - com.google.container.v1beta1.BlueGreenSettings.RolloutPolicyCase getRolloutPolicyCase(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequest.java deleted file mode 100644 index 6351864f0a58..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequest.java +++ /dev/null @@ -1,1297 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3510 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3510 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3517 - * @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]; - * - * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3517 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * - * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3521 - * @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]; - * - * - * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3521 - * @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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, operationId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, operationId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.CancelOperationRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.operationId_ = operationId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.name_ = name_; - } - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getOperationId().isEmpty()) { - operationId_ = other.operationId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000008; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - operationId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3510 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3510 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3510 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3510 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3510 - * @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; - bitField0_ |= 0x00000001; - 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]; - * - * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3517 - * @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]; - * - * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3517 - * @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]; - * - * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3517 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3517 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - 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]; - * - * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3517 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * - * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3521 - * @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]; - * - * - * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3521 - * @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]; - * - * - * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3521 - * @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; - bitField0_ |= 0x00000004; - 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]; - * - * - * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3521 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearOperationId() { - operationId_ = getDefaultInstance().getOperationId(); - bitField0_ = (bitField0_ & ~0x00000004); - 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]; - * - * - * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3521 - * @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; - bitField0_ |= 0x00000004; - 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; - bitField0_ |= 0x00000008; - 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(); - bitField0_ = (bitField0_ & ~0x00000008); - 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; - bitField0_ |= 0x00000008; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequestOrBuilder.java deleted file mode 100644 index 633232e0bdd1..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequestOrBuilder.java +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3510 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3510 - * @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]; - * - * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3517 - * @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]; - * - * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3517 - * @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]; - * - * - * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3521 - * @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]; - * - * - * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3521 - * @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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CheckAutopilotCompatibilityRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CheckAutopilotCompatibilityRequest.java deleted file mode 100644 index 50b27593055b..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CheckAutopilotCompatibilityRequest.java +++ /dev/null @@ -1,643 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * CheckAutopilotCompatibilityRequest requests getting the blockers for the
- * given operation in the cluster.
- * 
- * - * Protobuf type {@code google.container.v1beta1.CheckAutopilotCompatibilityRequest} - */ -public final class CheckAutopilotCompatibilityRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.CheckAutopilotCompatibilityRequest) - CheckAutopilotCompatibilityRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CheckAutopilotCompatibilityRequest.newBuilder() to construct. - private CheckAutopilotCompatibilityRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CheckAutopilotCompatibilityRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CheckAutopilotCompatibilityRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_CheckAutopilotCompatibilityRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_CheckAutopilotCompatibilityRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.CheckAutopilotCompatibilityRequest.class, - com.google.container.v1beta1.CheckAutopilotCompatibilityRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - 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 = 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 (project, location, cluster) of the cluster to retrieve.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.CheckAutopilotCompatibilityRequest)) { - return super.equals(obj); - } - com.google.container.v1beta1.CheckAutopilotCompatibilityRequest other = - (com.google.container.v1beta1.CheckAutopilotCompatibilityRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.CheckAutopilotCompatibilityRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.CheckAutopilotCompatibilityRequest parseFrom( - 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.CheckAutopilotCompatibilityRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.CheckAutopilotCompatibilityRequest parseFrom( - com.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.CheckAutopilotCompatibilityRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.CheckAutopilotCompatibilityRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.CheckAutopilotCompatibilityRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.CheckAutopilotCompatibilityRequest parseFrom( - java.io.InputStream 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.CheckAutopilotCompatibilityRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.CheckAutopilotCompatibilityRequest parseDelimitedFrom( - java.io.InputStream 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.CheckAutopilotCompatibilityRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.CheckAutopilotCompatibilityRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.CheckAutopilotCompatibilityRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * CheckAutopilotCompatibilityRequest requests getting the blockers for the
-   * given operation in the cluster.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.CheckAutopilotCompatibilityRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.CheckAutopilotCompatibilityRequest) - com.google.container.v1beta1.CheckAutopilotCompatibilityRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_CheckAutopilotCompatibilityRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_CheckAutopilotCompatibilityRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.CheckAutopilotCompatibilityRequest.class, - com.google.container.v1beta1.CheckAutopilotCompatibilityRequest.Builder.class); - } - - // Construct using com.google.container.v1beta1.CheckAutopilotCompatibilityRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 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_CheckAutopilotCompatibilityRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.CheckAutopilotCompatibilityRequest - getDefaultInstanceForType() { - return com.google.container.v1beta1.CheckAutopilotCompatibilityRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.CheckAutopilotCompatibilityRequest build() { - com.google.container.v1beta1.CheckAutopilotCompatibilityRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.CheckAutopilotCompatibilityRequest buildPartial() { - com.google.container.v1beta1.CheckAutopilotCompatibilityRequest result = - new com.google.container.v1beta1.CheckAutopilotCompatibilityRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.container.v1beta1.CheckAutopilotCompatibilityRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @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.CheckAutopilotCompatibilityRequest) { - return mergeFrom((com.google.container.v1beta1.CheckAutopilotCompatibilityRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.container.v1beta1.CheckAutopilotCompatibilityRequest other) { - if (other - == com.google.container.v1beta1.CheckAutopilotCompatibilityRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to retrieve.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * 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 (project, location, cluster) of the cluster to retrieve.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * 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 (project, location, cluster) of the cluster to retrieve.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to retrieve.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to retrieve.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * 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; - bitField0_ |= 0x00000001; - 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.CheckAutopilotCompatibilityRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.CheckAutopilotCompatibilityRequest) - private static final com.google.container.v1beta1.CheckAutopilotCompatibilityRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.CheckAutopilotCompatibilityRequest(); - } - - public static com.google.container.v1beta1.CheckAutopilotCompatibilityRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CheckAutopilotCompatibilityRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.CheckAutopilotCompatibilityRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CheckAutopilotCompatibilityRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CheckAutopilotCompatibilityRequestOrBuilder.java deleted file mode 100644 index bcb366b31ce2..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CheckAutopilotCompatibilityRequestOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface CheckAutopilotCompatibilityRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.CheckAutopilotCompatibilityRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to retrieve.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 1; - * - * @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 = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CheckAutopilotCompatibilityResponse.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CheckAutopilotCompatibilityResponse.java deleted file mode 100644 index d5c84c7e9b09..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CheckAutopilotCompatibilityResponse.java +++ /dev/null @@ -1,1145 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * CheckAutopilotCompatibilityResponse has a list of compatibility issues.
- * 
- * - * Protobuf type {@code google.container.v1beta1.CheckAutopilotCompatibilityResponse} - */ -public final class CheckAutopilotCompatibilityResponse - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.CheckAutopilotCompatibilityResponse) - CheckAutopilotCompatibilityResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use CheckAutopilotCompatibilityResponse.newBuilder() to construct. - private CheckAutopilotCompatibilityResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CheckAutopilotCompatibilityResponse() { - issues_ = java.util.Collections.emptyList(); - summary_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CheckAutopilotCompatibilityResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_CheckAutopilotCompatibilityResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_CheckAutopilotCompatibilityResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.CheckAutopilotCompatibilityResponse.class, - com.google.container.v1beta1.CheckAutopilotCompatibilityResponse.Builder.class); - } - - public static final int ISSUES_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List issues_; - /** - * - * - *
-   * The list of issues for the given operation.
-   * 
- * - * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; - */ - @java.lang.Override - public java.util.List getIssuesList() { - return issues_; - } - /** - * - * - *
-   * The list of issues for the given operation.
-   * 
- * - * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; - */ - @java.lang.Override - public java.util.List - getIssuesOrBuilderList() { - return issues_; - } - /** - * - * - *
-   * The list of issues for the given operation.
-   * 
- * - * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; - */ - @java.lang.Override - public int getIssuesCount() { - return issues_.size(); - } - /** - * - * - *
-   * The list of issues for the given operation.
-   * 
- * - * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; - */ - @java.lang.Override - public com.google.container.v1beta1.AutopilotCompatibilityIssue getIssues(int index) { - return issues_.get(index); - } - /** - * - * - *
-   * The list of issues for the given operation.
-   * 
- * - * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; - */ - @java.lang.Override - public com.google.container.v1beta1.AutopilotCompatibilityIssueOrBuilder getIssuesOrBuilder( - int index) { - return issues_.get(index); - } - - public static final int SUMMARY_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object summary_ = ""; - /** - * - * - *
-   * The summary of the autopilot compatibility response.
-   * 
- * - * string summary = 2; - * - * @return The summary. - */ - @java.lang.Override - public java.lang.String getSummary() { - java.lang.Object ref = summary_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - summary_ = s; - return s; - } - } - /** - * - * - *
-   * The summary of the autopilot compatibility response.
-   * 
- * - * string summary = 2; - * - * @return The bytes for summary. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSummaryBytes() { - java.lang.Object ref = summary_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - summary_ = 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 < issues_.size(); i++) { - output.writeMessage(1, issues_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(summary_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, summary_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < issues_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, issues_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(summary_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, summary_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.CheckAutopilotCompatibilityResponse)) { - return super.equals(obj); - } - com.google.container.v1beta1.CheckAutopilotCompatibilityResponse other = - (com.google.container.v1beta1.CheckAutopilotCompatibilityResponse) obj; - - if (!getIssuesList().equals(other.getIssuesList())) return false; - if (!getSummary().equals(other.getSummary())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getIssuesCount() > 0) { - hash = (37 * hash) + ISSUES_FIELD_NUMBER; - hash = (53 * hash) + getIssuesList().hashCode(); - } - hash = (37 * hash) + SUMMARY_FIELD_NUMBER; - hash = (53 * hash) + getSummary().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.CheckAutopilotCompatibilityResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.CheckAutopilotCompatibilityResponse parseFrom( - 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.CheckAutopilotCompatibilityResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.CheckAutopilotCompatibilityResponse parseFrom( - com.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.CheckAutopilotCompatibilityResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.CheckAutopilotCompatibilityResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.CheckAutopilotCompatibilityResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.CheckAutopilotCompatibilityResponse parseFrom( - java.io.InputStream 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.CheckAutopilotCompatibilityResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.CheckAutopilotCompatibilityResponse parseDelimitedFrom( - java.io.InputStream 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.CheckAutopilotCompatibilityResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.CheckAutopilotCompatibilityResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.CheckAutopilotCompatibilityResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * CheckAutopilotCompatibilityResponse has a list of compatibility issues.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.CheckAutopilotCompatibilityResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.CheckAutopilotCompatibilityResponse) - com.google.container.v1beta1.CheckAutopilotCompatibilityResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_CheckAutopilotCompatibilityResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_CheckAutopilotCompatibilityResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.CheckAutopilotCompatibilityResponse.class, - com.google.container.v1beta1.CheckAutopilotCompatibilityResponse.Builder.class); - } - - // Construct using com.google.container.v1beta1.CheckAutopilotCompatibilityResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (issuesBuilder_ == null) { - issues_ = java.util.Collections.emptyList(); - } else { - issues_ = null; - issuesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - summary_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_CheckAutopilotCompatibilityResponse_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.CheckAutopilotCompatibilityResponse - getDefaultInstanceForType() { - return com.google.container.v1beta1.CheckAutopilotCompatibilityResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.CheckAutopilotCompatibilityResponse build() { - com.google.container.v1beta1.CheckAutopilotCompatibilityResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.CheckAutopilotCompatibilityResponse buildPartial() { - com.google.container.v1beta1.CheckAutopilotCompatibilityResponse result = - new com.google.container.v1beta1.CheckAutopilotCompatibilityResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.container.v1beta1.CheckAutopilotCompatibilityResponse result) { - if (issuesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - issues_ = java.util.Collections.unmodifiableList(issues_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.issues_ = issues_; - } else { - result.issues_ = issuesBuilder_.build(); - } - } - - private void buildPartial0( - com.google.container.v1beta1.CheckAutopilotCompatibilityResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.summary_ = summary_; - } - } - - @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.CheckAutopilotCompatibilityResponse) { - return mergeFrom((com.google.container.v1beta1.CheckAutopilotCompatibilityResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.container.v1beta1.CheckAutopilotCompatibilityResponse other) { - if (other - == com.google.container.v1beta1.CheckAutopilotCompatibilityResponse.getDefaultInstance()) - return this; - if (issuesBuilder_ == null) { - if (!other.issues_.isEmpty()) { - if (issues_.isEmpty()) { - issues_ = other.issues_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureIssuesIsMutable(); - issues_.addAll(other.issues_); - } - onChanged(); - } - } else { - if (!other.issues_.isEmpty()) { - if (issuesBuilder_.isEmpty()) { - issuesBuilder_.dispose(); - issuesBuilder_ = null; - issues_ = other.issues_; - bitField0_ = (bitField0_ & ~0x00000001); - issuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getIssuesFieldBuilder() - : null; - } else { - issuesBuilder_.addAllMessages(other.issues_); - } - } - } - if (!other.getSummary().isEmpty()) { - summary_ = other.summary_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.container.v1beta1.AutopilotCompatibilityIssue m = - input.readMessage( - com.google.container.v1beta1.AutopilotCompatibilityIssue.parser(), - extensionRegistry); - if (issuesBuilder_ == null) { - ensureIssuesIsMutable(); - issues_.add(m); - } else { - issuesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - summary_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List issues_ = - java.util.Collections.emptyList(); - - private void ensureIssuesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - issues_ = - new java.util.ArrayList( - issues_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.AutopilotCompatibilityIssue, - com.google.container.v1beta1.AutopilotCompatibilityIssue.Builder, - com.google.container.v1beta1.AutopilotCompatibilityIssueOrBuilder> - issuesBuilder_; - - /** - * - * - *
-     * The list of issues for the given operation.
-     * 
- * - * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; - */ - public java.util.List - getIssuesList() { - if (issuesBuilder_ == null) { - return java.util.Collections.unmodifiableList(issues_); - } else { - return issuesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The list of issues for the given operation.
-     * 
- * - * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; - */ - public int getIssuesCount() { - if (issuesBuilder_ == null) { - return issues_.size(); - } else { - return issuesBuilder_.getCount(); - } - } - /** - * - * - *
-     * The list of issues for the given operation.
-     * 
- * - * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; - */ - public com.google.container.v1beta1.AutopilotCompatibilityIssue getIssues(int index) { - if (issuesBuilder_ == null) { - return issues_.get(index); - } else { - return issuesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The list of issues for the given operation.
-     * 
- * - * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; - */ - public Builder setIssues( - int index, com.google.container.v1beta1.AutopilotCompatibilityIssue value) { - if (issuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureIssuesIsMutable(); - issues_.set(index, value); - onChanged(); - } else { - issuesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of issues for the given operation.
-     * 
- * - * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; - */ - public Builder setIssues( - int index, - com.google.container.v1beta1.AutopilotCompatibilityIssue.Builder builderForValue) { - if (issuesBuilder_ == null) { - ensureIssuesIsMutable(); - issues_.set(index, builderForValue.build()); - onChanged(); - } else { - issuesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of issues for the given operation.
-     * 
- * - * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; - */ - public Builder addIssues(com.google.container.v1beta1.AutopilotCompatibilityIssue value) { - if (issuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureIssuesIsMutable(); - issues_.add(value); - onChanged(); - } else { - issuesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The list of issues for the given operation.
-     * 
- * - * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; - */ - public Builder addIssues( - int index, com.google.container.v1beta1.AutopilotCompatibilityIssue value) { - if (issuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureIssuesIsMutable(); - issues_.add(index, value); - onChanged(); - } else { - issuesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of issues for the given operation.
-     * 
- * - * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; - */ - public Builder addIssues( - com.google.container.v1beta1.AutopilotCompatibilityIssue.Builder builderForValue) { - if (issuesBuilder_ == null) { - ensureIssuesIsMutable(); - issues_.add(builderForValue.build()); - onChanged(); - } else { - issuesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of issues for the given operation.
-     * 
- * - * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; - */ - public Builder addIssues( - int index, - com.google.container.v1beta1.AutopilotCompatibilityIssue.Builder builderForValue) { - if (issuesBuilder_ == null) { - ensureIssuesIsMutable(); - issues_.add(index, builderForValue.build()); - onChanged(); - } else { - issuesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of issues for the given operation.
-     * 
- * - * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; - */ - public Builder addAllIssues( - java.lang.Iterable - values) { - if (issuesBuilder_ == null) { - ensureIssuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, issues_); - onChanged(); - } else { - issuesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The list of issues for the given operation.
-     * 
- * - * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; - */ - public Builder clearIssues() { - if (issuesBuilder_ == null) { - issues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - issuesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The list of issues for the given operation.
-     * 
- * - * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; - */ - public Builder removeIssues(int index) { - if (issuesBuilder_ == null) { - ensureIssuesIsMutable(); - issues_.remove(index); - onChanged(); - } else { - issuesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The list of issues for the given operation.
-     * 
- * - * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; - */ - public com.google.container.v1beta1.AutopilotCompatibilityIssue.Builder getIssuesBuilder( - int index) { - return getIssuesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The list of issues for the given operation.
-     * 
- * - * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; - */ - public com.google.container.v1beta1.AutopilotCompatibilityIssueOrBuilder getIssuesOrBuilder( - int index) { - if (issuesBuilder_ == null) { - return issues_.get(index); - } else { - return issuesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The list of issues for the given operation.
-     * 
- * - * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; - */ - public java.util.List< - ? extends com.google.container.v1beta1.AutopilotCompatibilityIssueOrBuilder> - getIssuesOrBuilderList() { - if (issuesBuilder_ != null) { - return issuesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(issues_); - } - } - /** - * - * - *
-     * The list of issues for the given operation.
-     * 
- * - * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; - */ - public com.google.container.v1beta1.AutopilotCompatibilityIssue.Builder addIssuesBuilder() { - return getIssuesFieldBuilder() - .addBuilder( - com.google.container.v1beta1.AutopilotCompatibilityIssue.getDefaultInstance()); - } - /** - * - * - *
-     * The list of issues for the given operation.
-     * 
- * - * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; - */ - public com.google.container.v1beta1.AutopilotCompatibilityIssue.Builder addIssuesBuilder( - int index) { - return getIssuesFieldBuilder() - .addBuilder( - index, com.google.container.v1beta1.AutopilotCompatibilityIssue.getDefaultInstance()); - } - /** - * - * - *
-     * The list of issues for the given operation.
-     * 
- * - * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; - */ - public java.util.List - getIssuesBuilderList() { - return getIssuesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.AutopilotCompatibilityIssue, - com.google.container.v1beta1.AutopilotCompatibilityIssue.Builder, - com.google.container.v1beta1.AutopilotCompatibilityIssueOrBuilder> - getIssuesFieldBuilder() { - if (issuesBuilder_ == null) { - issuesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.AutopilotCompatibilityIssue, - com.google.container.v1beta1.AutopilotCompatibilityIssue.Builder, - com.google.container.v1beta1.AutopilotCompatibilityIssueOrBuilder>( - issues_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - issues_ = null; - } - return issuesBuilder_; - } - - private java.lang.Object summary_ = ""; - /** - * - * - *
-     * The summary of the autopilot compatibility response.
-     * 
- * - * string summary = 2; - * - * @return The summary. - */ - public java.lang.String getSummary() { - java.lang.Object ref = summary_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - summary_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The summary of the autopilot compatibility response.
-     * 
- * - * string summary = 2; - * - * @return The bytes for summary. - */ - public com.google.protobuf.ByteString getSummaryBytes() { - java.lang.Object ref = summary_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - summary_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The summary of the autopilot compatibility response.
-     * 
- * - * string summary = 2; - * - * @param value The summary to set. - * @return This builder for chaining. - */ - public Builder setSummary(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - summary_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * The summary of the autopilot compatibility response.
-     * 
- * - * string summary = 2; - * - * @return This builder for chaining. - */ - public Builder clearSummary() { - summary_ = getDefaultInstance().getSummary(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * The summary of the autopilot compatibility response.
-     * 
- * - * string summary = 2; - * - * @param value The bytes for summary to set. - * @return This builder for chaining. - */ - public Builder setSummaryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - summary_ = value; - bitField0_ |= 0x00000002; - 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.CheckAutopilotCompatibilityResponse) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.CheckAutopilotCompatibilityResponse) - private static final com.google.container.v1beta1.CheckAutopilotCompatibilityResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.CheckAutopilotCompatibilityResponse(); - } - - public static com.google.container.v1beta1.CheckAutopilotCompatibilityResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CheckAutopilotCompatibilityResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.CheckAutopilotCompatibilityResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CheckAutopilotCompatibilityResponseOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CheckAutopilotCompatibilityResponseOrBuilder.java deleted file mode 100644 index d771e0b65c89..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CheckAutopilotCompatibilityResponseOrBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface CheckAutopilotCompatibilityResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.CheckAutopilotCompatibilityResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The list of issues for the given operation.
-   * 
- * - * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; - */ - java.util.List getIssuesList(); - /** - * - * - *
-   * The list of issues for the given operation.
-   * 
- * - * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; - */ - com.google.container.v1beta1.AutopilotCompatibilityIssue getIssues(int index); - /** - * - * - *
-   * The list of issues for the given operation.
-   * 
- * - * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; - */ - int getIssuesCount(); - /** - * - * - *
-   * The list of issues for the given operation.
-   * 
- * - * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; - */ - java.util.List - getIssuesOrBuilderList(); - /** - * - * - *
-   * The list of issues for the given operation.
-   * 
- * - * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; - */ - com.google.container.v1beta1.AutopilotCompatibilityIssueOrBuilder getIssuesOrBuilder(int index); - - /** - * - * - *
-   * The summary of the autopilot compatibility response.
-   * 
- * - * string summary = 2; - * - * @return The summary. - */ - java.lang.String getSummary(); - /** - * - * - *
-   * The summary of the autopilot compatibility response.
-   * 
- * - * string summary = 2; - * - * @return The bytes for summary. - */ - com.google.protobuf.ByteString getSummaryBytes(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClientCertificateConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClientCertificateConfig.java deleted file mode 100644 index c678a0c2eb73..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClientCertificateConfig.java +++ /dev/null @@ -1,535 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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_ = false; - /** - * - * - *
-   * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.ClientCertificateConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.issueClientCertificate_ = issueClientCertificate_; - } - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - issueClientCertificate_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Issue a client certificate.
-     * 
- * - * bool issue_client_certificate = 1; - * - * @return This builder for chaining. - */ - public Builder clearIssueClientCertificate() { - bitField0_ = (bitField0_ & ~0x00000001); - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClientCertificateConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClientCertificateConfigOrBuilder.java deleted file mode 100644 index c5042a422060..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClientCertificateConfigOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CloudRunConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CloudRunConfig.java deleted file mode 100644 index 2ae5d8f32b40..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CloudRunConfig.java +++ /dev/null @@ -1,858 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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_ = false; - /** - * - * - *
-   * 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_ = 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; - * - * @return The loadBalancerType. - */ - @java.lang.Override - public com.google.container.v1beta1.CloudRunConfig.LoadBalancerType getLoadBalancerType() { - com.google.container.v1beta1.CloudRunConfig.LoadBalancerType result = - com.google.container.v1beta1.CloudRunConfig.LoadBalancerType.forNumber(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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.CloudRunConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.disabled_ = disabled_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.loadBalancerType_ = loadBalancerType_; - } - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - disabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 24: - { - loadBalancerType_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether Cloud Run addon is enabled for this cluster.
-     * 
- * - * bool disabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearDisabled() { - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000002; - 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() { - com.google.container.v1beta1.CloudRunConfig.LoadBalancerType result = - com.google.container.v1beta1.CloudRunConfig.LoadBalancerType.forNumber(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(); - } - bitField0_ |= 0x00000002; - 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() { - bitField0_ = (bitField0_ & ~0x00000002); - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CloudRunConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CloudRunConfigOrBuilder.java deleted file mode 100644 index ffca6df882fa..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CloudRunConfigOrBuilder.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Cluster.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Cluster.java deleted file mode 100644 index f1de36e712b5..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Cluster.java +++ /dev/null @@ -1,20191 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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.emptyList(); - labelFingerprint_ = ""; - masterIpv4CidrBlock_ = ""; - selfLink_ = ""; - zone_ = ""; - endpoint_ = ""; - initialClusterVersion_ = ""; - currentMasterVersion_ = ""; - currentNodeVersion_ = ""; - createTime_ = ""; - status_ = 0; - statusMessage_ = ""; - servicesIpv4Cidr_ = ""; - instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - expireTime_ = ""; - location_ = ""; - tpuIpv4CidrBlock_ = ""; - conditions_ = java.util.Collections.emptyList(); - id_ = ""; - etag_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Cluster(); - } - - 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.MapFieldReflectionAccessor internalGetMapFieldReflection( - 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) - } - - private int bitField0_; - private int bitField1_; - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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_ = 0; - /** - * - * - *
-   * 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]; - * - * @deprecated google.container.v1beta1.Cluster.initial_node_count is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1936 - * @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]; - * - * @deprecated google.container.v1beta1.Cluster.node_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1949 - * @return Whether the nodeConfig field is set. - */ - @java.lang.Override - @java.lang.Deprecated - public boolean hasNodeConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * 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]; - * - * @deprecated google.container.v1beta1.Cluster.node_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1949 - * @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 nodeConfig_ == null - ? com.google.container.v1beta1.NodeConfig.getDefaultInstance() - : nodeConfig_; - } - - 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 ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * 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 masterAuth_ == null - ? com.google.container.v1beta1.MasterAuth.getDefaultInstance() - : masterAuth_; - } - - public static final int LOGGING_SERVICE_FIELD_NUMBER = 6; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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 ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-   * 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 addonsConfig_ == null - ? com.google.container.v1beta1.AddonsConfig.getDefaultInstance() - : addonsConfig_; - } - - public static final int SUBNETWORK_FIELD_NUMBER = 11; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList locations_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * 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_ = false; - /** - * - * - *
-   * 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 ENABLE_K8S_BETA_APIS_FIELD_NUMBER = 143; - private com.google.container.v1beta1.K8sBetaAPIConfig enableK8SBetaApis_; - /** - * - * - *
-   * Kubernetes open source beta apis enabled on the cluster. Only beta apis.
-   * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; - * - * @return Whether the enableK8sBetaApis field is set. - */ - @java.lang.Override - public boolean hasEnableK8SBetaApis() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-   * Kubernetes open source beta apis enabled on the cluster. Only beta apis.
-   * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; - * - * @return The enableK8sBetaApis. - */ - @java.lang.Override - public com.google.container.v1beta1.K8sBetaAPIConfig getEnableK8SBetaApis() { - return enableK8SBetaApis_ == null - ? com.google.container.v1beta1.K8sBetaAPIConfig.getDefaultInstance() - : enableK8SBetaApis_; - } - /** - * - * - *
-   * Kubernetes open source beta apis enabled on the cluster. Only beta apis.
-   * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; - */ - @java.lang.Override - public com.google.container.v1beta1.K8sBetaAPIConfigOrBuilder getEnableK8SBetaApisOrBuilder() { - return enableK8SBetaApis_ == null - ? com.google.container.v1beta1.K8sBetaAPIConfig.getDefaultInstance() - : enableK8SBetaApis_; - } - - 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, - ""); - } - - @SuppressWarnings("serial") - 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 NullPointerException("map key"); - } - 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 /* nullable */ java.lang.String getResourceLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - 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 NullPointerException("map key"); - } - 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; - - @SuppressWarnings("serial") - 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 ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-   * 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 legacyAbac_ == null - ? com.google.container.v1beta1.LegacyAbac.getDefaultInstance() - : legacyAbac_; - } - - 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 ((bitField0_ & 0x00000020) != 0); - } - /** - * - * - *
-   * 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 networkPolicy_ == null - ? com.google.container.v1beta1.NetworkPolicy.getDefaultInstance() - : networkPolicy_; - } - - 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 ((bitField0_ & 0x00000040) != 0); - } - /** - * - * - *
-   * 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 ipAllocationPolicy_ == null - ? com.google.container.v1beta1.IPAllocationPolicy.getDefaultInstance() - : ipAllocationPolicy_; - } - - 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 ((bitField0_ & 0x00000080) != 0); - } - /** - * - * - *
-   * 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 masterAuthorizedNetworksConfig_ == null - ? com.google.container.v1beta1.MasterAuthorizedNetworksConfig.getDefaultInstance() - : masterAuthorizedNetworksConfig_; - } - - 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 ((bitField0_ & 0x00000100) != 0); - } - /** - * - * - *
-   * 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 maintenancePolicy_ == null - ? com.google.container.v1beta1.MaintenancePolicy.getDefaultInstance() - : maintenancePolicy_; - } - - 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 ((bitField0_ & 0x00000200) != 0); - } - /** - * - * - *
-   * 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 binaryAuthorization_ == null - ? com.google.container.v1beta1.BinaryAuthorization.getDefaultInstance() - : binaryAuthorization_; - } - - 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 ((bitField0_ & 0x00000400) != 0); - } - /** - * - * - *
-   * 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 podSecurityPolicyConfig_ == null - ? com.google.container.v1beta1.PodSecurityPolicyConfig.getDefaultInstance() - : podSecurityPolicyConfig_; - } - - 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 ((bitField0_ & 0x00000800) != 0); - } - /** - * - * - *
-   * 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 autoscaling_ == null - ? com.google.container.v1beta1.ClusterAutoscaling.getDefaultInstance() - : autoscaling_; - } - - 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 ((bitField0_ & 0x00001000) != 0); - } - /** - * - * - *
-   * 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 networkConfig_ == null - ? com.google.container.v1beta1.NetworkConfig.getDefaultInstance() - : networkConfig_; - } - - public static final int PRIVATE_CLUSTER_FIELD_NUMBER = 28; - private boolean privateCluster_ = false; - /** - * - * - *
-   * 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]; - * - * @deprecated google.container.v1beta1.Cluster.private_cluster is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2074 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2081 - * @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]; - * - * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2081 - * @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 ((bitField0_ & 0x00002000) != 0); - } - /** - * - * - *
-   * 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 defaultMaxPodsConstraint_ == null - ? com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance() - : defaultMaxPodsConstraint_; - } - - 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 ((bitField0_ & 0x00004000) != 0); - } - /** - * - * - *
-   * 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 resourceUsageExportConfig_ == null - ? com.google.container.v1beta1.ResourceUsageExportConfig.getDefaultInstance() - : resourceUsageExportConfig_; - } - - 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 ((bitField0_ & 0x00008000) != 0); - } - /** - * - * - *
-   * 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 authenticatorGroupsConfig_ == null - ? com.google.container.v1beta1.AuthenticatorGroupsConfig.getDefaultInstance() - : authenticatorGroupsConfig_; - } - - 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 ((bitField0_ & 0x00010000) != 0); - } - /** - * - * - *
-   * 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 privateClusterConfig_ == null - ? com.google.container.v1beta1.PrivateClusterConfig.getDefaultInstance() - : privateClusterConfig_; - } - - 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 ((bitField0_ & 0x00020000) != 0); - } - /** - * - * - *
-   * 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 verticalPodAutoscaling_ == null - ? com.google.container.v1beta1.VerticalPodAutoscaling.getDefaultInstance() - : verticalPodAutoscaling_; - } - - 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 ((bitField0_ & 0x00040000) != 0); - } - /** - * - * - *
-   * 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 shieldedNodes_ == null - ? com.google.container.v1beta1.ShieldedNodes.getDefaultInstance() - : shieldedNodes_; - } - - public static final int RELEASE_CHANNEL_FIELD_NUMBER = 41; - private com.google.container.v1beta1.ReleaseChannel releaseChannel_; - /** - * - * - *
-   * Release channel configuration. If left unspecified on cluster creation and
-   * a version is specified, the cluster is enrolled in the most mature release
-   * channel where the version is available (first checking STABLE, then
-   * REGULAR, and finally RAPID). Otherwise, if no release channel
-   * configuration and no version is specified, the cluster is enrolled in the
-   * REGULAR channel with its default version.
-   * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 41; - * - * @return Whether the releaseChannel field is set. - */ - @java.lang.Override - public boolean hasReleaseChannel() { - return ((bitField0_ & 0x00080000) != 0); - } - /** - * - * - *
-   * Release channel configuration. If left unspecified on cluster creation and
-   * a version is specified, the cluster is enrolled in the most mature release
-   * channel where the version is available (first checking STABLE, then
-   * REGULAR, and finally RAPID). Otherwise, if no release channel
-   * configuration and no version is specified, the cluster is enrolled in the
-   * REGULAR channel with its default version.
-   * 
- * - * .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. If left unspecified on cluster creation and
-   * a version is specified, the cluster is enrolled in the most mature release
-   * channel where the version is available (first checking STABLE, then
-   * REGULAR, and finally RAPID). Otherwise, if no release channel
-   * configuration and no version is specified, the cluster is enrolled in the
-   * REGULAR channel with its default version.
-   * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 41; - */ - @java.lang.Override - public com.google.container.v1beta1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder() { - return releaseChannel_ == null - ? com.google.container.v1beta1.ReleaseChannel.getDefaultInstance() - : releaseChannel_; - } - - 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 ((bitField0_ & 0x00100000) != 0); - } - /** - * - * - *
-   * 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 workloadIdentityConfig_ == null - ? com.google.container.v1beta1.WorkloadIdentityConfig.getDefaultInstance() - : workloadIdentityConfig_; - } - - public static final int WORKLOAD_CERTIFICATES_FIELD_NUMBER = 52; - private com.google.container.v1beta1.WorkloadCertificates workloadCertificates_; - /** - * - * - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1beta1.WorkloadCertificates workload_certificates = 52; - * - * @return Whether the workloadCertificates field is set. - */ - @java.lang.Override - public boolean hasWorkloadCertificates() { - return ((bitField0_ & 0x00200000) != 0); - } - /** - * - * - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1beta1.WorkloadCertificates workload_certificates = 52; - * - * @return The workloadCertificates. - */ - @java.lang.Override - public com.google.container.v1beta1.WorkloadCertificates getWorkloadCertificates() { - return workloadCertificates_ == null - ? com.google.container.v1beta1.WorkloadCertificates.getDefaultInstance() - : workloadCertificates_; - } - /** - * - * - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1beta1.WorkloadCertificates workload_certificates = 52; - */ - @java.lang.Override - public com.google.container.v1beta1.WorkloadCertificatesOrBuilder - getWorkloadCertificatesOrBuilder() { - return workloadCertificates_ == null - ? com.google.container.v1beta1.WorkloadCertificates.getDefaultInstance() - : workloadCertificates_; - } - - public static final int MESH_CERTIFICATES_FIELD_NUMBER = 67; - private com.google.container.v1beta1.MeshCertificates meshCertificates_; - /** - * - * - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; - * - * @return Whether the meshCertificates field is set. - */ - @java.lang.Override - public boolean hasMeshCertificates() { - return ((bitField0_ & 0x00400000) != 0); - } - /** - * - * - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; - * - * @return The meshCertificates. - */ - @java.lang.Override - public com.google.container.v1beta1.MeshCertificates getMeshCertificates() { - return meshCertificates_ == null - ? com.google.container.v1beta1.MeshCertificates.getDefaultInstance() - : meshCertificates_; - } - /** - * - * - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; - */ - @java.lang.Override - public com.google.container.v1beta1.MeshCertificatesOrBuilder getMeshCertificatesOrBuilder() { - return meshCertificates_ == null - ? com.google.container.v1beta1.MeshCertificates.getDefaultInstance() - : meshCertificates_; - } - - public static final int WORKLOAD_ALTS_CONFIG_FIELD_NUMBER = 53; - private com.google.container.v1beta1.WorkloadALTSConfig workloadAltsConfig_; - /** - * - * - *
-   * Configuration for direct-path (via ALTS) with workload identity.
-   * 
- * - * .google.container.v1beta1.WorkloadALTSConfig workload_alts_config = 53; - * - * @return Whether the workloadAltsConfig field is set. - */ - @java.lang.Override - public boolean hasWorkloadAltsConfig() { - return ((bitField0_ & 0x00800000) != 0); - } - /** - * - * - *
-   * Configuration for direct-path (via ALTS) with workload identity.
-   * 
- * - * .google.container.v1beta1.WorkloadALTSConfig workload_alts_config = 53; - * - * @return The workloadAltsConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.WorkloadALTSConfig getWorkloadAltsConfig() { - return workloadAltsConfig_ == null - ? com.google.container.v1beta1.WorkloadALTSConfig.getDefaultInstance() - : workloadAltsConfig_; - } - /** - * - * - *
-   * Configuration for direct-path (via ALTS) with workload identity.
-   * 
- * - * .google.container.v1beta1.WorkloadALTSConfig workload_alts_config = 53; - */ - @java.lang.Override - public com.google.container.v1beta1.WorkloadALTSConfigOrBuilder getWorkloadAltsConfigOrBuilder() { - return workloadAltsConfig_ == null - ? com.google.container.v1beta1.WorkloadALTSConfig.getDefaultInstance() - : workloadAltsConfig_; - } - - public static final int COST_MANAGEMENT_CONFIG_FIELD_NUMBER = 45; - private com.google.container.v1beta1.CostManagementConfig costManagementConfig_; - /** - * - * - *
-   * Configuration for the fine-grained cost management feature.
-   * 
- * - * .google.container.v1beta1.CostManagementConfig cost_management_config = 45; - * - * @return Whether the costManagementConfig field is set. - */ - @java.lang.Override - public boolean hasCostManagementConfig() { - return ((bitField0_ & 0x01000000) != 0); - } - /** - * - * - *
-   * Configuration for the fine-grained cost management feature.
-   * 
- * - * .google.container.v1beta1.CostManagementConfig cost_management_config = 45; - * - * @return The costManagementConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.CostManagementConfig getCostManagementConfig() { - return costManagementConfig_ == null - ? com.google.container.v1beta1.CostManagementConfig.getDefaultInstance() - : costManagementConfig_; - } - /** - * - * - *
-   * Configuration for the fine-grained cost management feature.
-   * 
- * - * .google.container.v1beta1.CostManagementConfig cost_management_config = 45; - */ - @java.lang.Override - public com.google.container.v1beta1.CostManagementConfigOrBuilder - getCostManagementConfigOrBuilder() { - return costManagementConfig_ == null - ? com.google.container.v1beta1.CostManagementConfig.getDefaultInstance() - : costManagementConfig_; - } - - 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 ((bitField0_ & 0x02000000) != 0); - } - /** - * - * - *
-   * 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 clusterTelemetry_ == null - ? com.google.container.v1beta1.ClusterTelemetry.getDefaultInstance() - : clusterTelemetry_; - } - - 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 ((bitField0_ & 0x04000000) != 0); - } - /** - * - * - *
-   * 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 tpuConfig_ == null - ? com.google.container.v1beta1.TpuConfig.getDefaultInstance() - : tpuConfig_; - } - - 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 ((bitField0_ & 0x08000000) != 0); - } - /** - * - * - *
-   * 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 notificationConfig_ == null - ? com.google.container.v1beta1.NotificationConfig.getDefaultInstance() - : notificationConfig_; - } - - public static final int CONFIDENTIAL_NODES_FIELD_NUMBER = 50; - private com.google.container.v1beta1.ConfidentialNodes confidentialNodes_; - /** - * - * - *
-   * Configuration of Confidential Nodes.
-   * All the nodes in the cluster will be Confidential VM once enabled.
-   * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 50; - * - * @return Whether the confidentialNodes field is set. - */ - @java.lang.Override - public boolean hasConfidentialNodes() { - return ((bitField0_ & 0x10000000) != 0); - } - /** - * - * - *
-   * Configuration of Confidential Nodes.
-   * All the nodes in the cluster will be Confidential VM once enabled.
-   * 
- * - * .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.
-   * All the nodes in the cluster will be Confidential VM once enabled.
-   * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 50; - */ - @java.lang.Override - public com.google.container.v1beta1.ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder() { - return confidentialNodes_ == null - ? com.google.container.v1beta1.ConfidentialNodes.getDefaultInstance() - : confidentialNodes_; - } - - public static final int IDENTITY_SERVICE_CONFIG_FIELD_NUMBER = 54; - private com.google.container.v1beta1.IdentityServiceConfig identityServiceConfig_; - /** - * - * - *
-   * Configuration for Identity Service component.
-   * 
- * - * .google.container.v1beta1.IdentityServiceConfig identity_service_config = 54; - * - * @return Whether the identityServiceConfig field is set. - */ - @java.lang.Override - public boolean hasIdentityServiceConfig() { - return ((bitField0_ & 0x20000000) != 0); - } - /** - * - * - *
-   * Configuration for Identity Service component.
-   * 
- * - * .google.container.v1beta1.IdentityServiceConfig identity_service_config = 54; - * - * @return The identityServiceConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.IdentityServiceConfig getIdentityServiceConfig() { - return identityServiceConfig_ == null - ? com.google.container.v1beta1.IdentityServiceConfig.getDefaultInstance() - : identityServiceConfig_; - } - /** - * - * - *
-   * Configuration for Identity Service component.
-   * 
- * - * .google.container.v1beta1.IdentityServiceConfig identity_service_config = 54; - */ - @java.lang.Override - public com.google.container.v1beta1.IdentityServiceConfigOrBuilder - getIdentityServiceConfigOrBuilder() { - return identityServiceConfig_ == null - ? com.google.container.v1beta1.IdentityServiceConfig.getDefaultInstance() - : identityServiceConfig_; - } - - public static final int SELF_LINK_FIELD_NUMBER = 100; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1beta1.Cluster.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2152 - * @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]; - * - * @deprecated google.container.v1beta1.Cluster.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2152 - * @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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2185 - * @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]; - * - * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2185 - * @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; - - @SuppressWarnings("serial") - 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_ = 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; - * - * @return The status. - */ - @java.lang.Override - public com.google.container.v1beta1.Cluster.Status getStatus() { - com.google.container.v1beta1.Cluster.Status result = - com.google.container.v1beta1.Cluster.Status.forNumber(status_); - return result == null ? com.google.container.v1beta1.Cluster.Status.UNRECOGNIZED : result; - } - - public static final int STATUS_MESSAGE_FIELD_NUMBER = 108; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2197 - * @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]; - * - * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2197 - * @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_ = 0; - /** - * - * - *
-   * [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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList instanceGroupUrls_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * Deprecated. Use node_pools.instance_group_urls.
-   * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * - * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2213 - * @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]; - * - * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2213 - * @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]; - * - * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2213 - * @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]; - * - * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2213 - * @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_ = 0; - /** - * - * - *
-   * [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]; - * - * @deprecated google.container.v1beta1.Cluster.current_node_count is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2217 - * @return The currentNodeCount. - */ - @java.lang.Override - @java.lang.Deprecated - public int getCurrentNodeCount() { - return currentNodeCount_; - } - - public static final int EXPIRE_TIME_FIELD_NUMBER = 113; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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_ = false; - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - 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 ((bitField0_ & 0x40000000) != 0); - } - /** - * - * - *
-   * 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 databaseEncryption_ == null - ? com.google.container.v1beta1.DatabaseEncryption.getDefaultInstance() - : databaseEncryption_; - } - - public static final int CONDITIONS_FIELD_NUMBER = 118; - - @SuppressWarnings("serial") - 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 ((bitField0_ & 0x80000000) != 0); - } - /** - * - * - *
-   * 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 master_ == null ? com.google.container.v1beta1.Master.getDefaultInstance() : master_; - } - - public static final int AUTOPILOT_FIELD_NUMBER = 128; - private com.google.container.v1beta1.Autopilot autopilot_; - /** - * - * - *
-   * Autopilot configuration for the cluster.
-   * 
- * - * .google.container.v1beta1.Autopilot autopilot = 128; - * - * @return Whether the autopilot field is set. - */ - @java.lang.Override - public boolean hasAutopilot() { - return ((bitField1_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Autopilot configuration for the cluster.
-   * 
- * - * .google.container.v1beta1.Autopilot autopilot = 128; - * - * @return The autopilot. - */ - @java.lang.Override - public com.google.container.v1beta1.Autopilot getAutopilot() { - return autopilot_ == null - ? com.google.container.v1beta1.Autopilot.getDefaultInstance() - : autopilot_; - } - /** - * - * - *
-   * Autopilot configuration for the cluster.
-   * 
- * - * .google.container.v1beta1.Autopilot autopilot = 128; - */ - @java.lang.Override - public com.google.container.v1beta1.AutopilotOrBuilder getAutopilotOrBuilder() { - return autopilot_ == null - ? com.google.container.v1beta1.Autopilot.getDefaultInstance() - : autopilot_; - } - - public static final int ID_FIELD_NUMBER = 129; - - @SuppressWarnings("serial") - private volatile java.lang.Object id_ = ""; - /** - * - * - *
-   * Output only. Unique id for the cluster.
-   * 
- * - * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. Unique id for the cluster.
-   * 
- * - * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_POOL_DEFAULTS_FIELD_NUMBER = 131; - private com.google.container.v1beta1.NodePoolDefaults nodePoolDefaults_; - /** - * - * - *
-   * Default NodePool settings for the entire cluster. These settings are
-   * overridden if specified on the specific NodePool object.
-   * 
- * - * optional .google.container.v1beta1.NodePoolDefaults node_pool_defaults = 131; - * - * @return Whether the nodePoolDefaults field is set. - */ - @java.lang.Override - public boolean hasNodePoolDefaults() { - return ((bitField1_ & 0x00000002) != 0); - } - /** - * - * - *
-   * Default NodePool settings for the entire cluster. These settings are
-   * overridden if specified on the specific NodePool object.
-   * 
- * - * optional .google.container.v1beta1.NodePoolDefaults node_pool_defaults = 131; - * - * @return The nodePoolDefaults. - */ - @java.lang.Override - public com.google.container.v1beta1.NodePoolDefaults getNodePoolDefaults() { - return nodePoolDefaults_ == null - ? com.google.container.v1beta1.NodePoolDefaults.getDefaultInstance() - : nodePoolDefaults_; - } - /** - * - * - *
-   * Default NodePool settings for the entire cluster. These settings are
-   * overridden if specified on the specific NodePool object.
-   * 
- * - * optional .google.container.v1beta1.NodePoolDefaults node_pool_defaults = 131; - */ - @java.lang.Override - public com.google.container.v1beta1.NodePoolDefaultsOrBuilder getNodePoolDefaultsOrBuilder() { - return nodePoolDefaults_ == null - ? com.google.container.v1beta1.NodePoolDefaults.getDefaultInstance() - : nodePoolDefaults_; - } - - public static final int LOGGING_CONFIG_FIELD_NUMBER = 132; - private com.google.container.v1beta1.LoggingConfig loggingConfig_; - /** - * - * - *
-   * Logging configuration for the cluster.
-   * 
- * - * .google.container.v1beta1.LoggingConfig logging_config = 132; - * - * @return Whether the loggingConfig field is set. - */ - @java.lang.Override - public boolean hasLoggingConfig() { - return ((bitField1_ & 0x00000004) != 0); - } - /** - * - * - *
-   * Logging configuration for the cluster.
-   * 
- * - * .google.container.v1beta1.LoggingConfig logging_config = 132; - * - * @return The loggingConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.LoggingConfig getLoggingConfig() { - return loggingConfig_ == null - ? com.google.container.v1beta1.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } - /** - * - * - *
-   * Logging configuration for the cluster.
-   * 
- * - * .google.container.v1beta1.LoggingConfig logging_config = 132; - */ - @java.lang.Override - public com.google.container.v1beta1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { - return loggingConfig_ == null - ? com.google.container.v1beta1.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } - - public static final int MONITORING_CONFIG_FIELD_NUMBER = 133; - private com.google.container.v1beta1.MonitoringConfig monitoringConfig_; - /** - * - * - *
-   * Monitoring configuration for the cluster.
-   * 
- * - * .google.container.v1beta1.MonitoringConfig monitoring_config = 133; - * - * @return Whether the monitoringConfig field is set. - */ - @java.lang.Override - public boolean hasMonitoringConfig() { - return ((bitField1_ & 0x00000008) != 0); - } - /** - * - * - *
-   * Monitoring configuration for the cluster.
-   * 
- * - * .google.container.v1beta1.MonitoringConfig monitoring_config = 133; - * - * @return The monitoringConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.MonitoringConfig getMonitoringConfig() { - return monitoringConfig_ == null - ? com.google.container.v1beta1.MonitoringConfig.getDefaultInstance() - : monitoringConfig_; - } - /** - * - * - *
-   * Monitoring configuration for the cluster.
-   * 
- * - * .google.container.v1beta1.MonitoringConfig monitoring_config = 133; - */ - @java.lang.Override - public com.google.container.v1beta1.MonitoringConfigOrBuilder getMonitoringConfigOrBuilder() { - return monitoringConfig_ == null - ? com.google.container.v1beta1.MonitoringConfig.getDefaultInstance() - : monitoringConfig_; - } - - public static final int NODE_POOL_AUTO_CONFIG_FIELD_NUMBER = 136; - private com.google.container.v1beta1.NodePoolAutoConfig nodePoolAutoConfig_; - /** - * - * - *
-   * Node pool configs that apply to all auto-provisioned node pools
-   * in autopilot clusters and node auto-provisioning enabled clusters.
-   * 
- * - * .google.container.v1beta1.NodePoolAutoConfig node_pool_auto_config = 136; - * - * @return Whether the nodePoolAutoConfig field is set. - */ - @java.lang.Override - public boolean hasNodePoolAutoConfig() { - return ((bitField1_ & 0x00000010) != 0); - } - /** - * - * - *
-   * Node pool configs that apply to all auto-provisioned node pools
-   * in autopilot clusters and node auto-provisioning enabled clusters.
-   * 
- * - * .google.container.v1beta1.NodePoolAutoConfig node_pool_auto_config = 136; - * - * @return The nodePoolAutoConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.NodePoolAutoConfig getNodePoolAutoConfig() { - return nodePoolAutoConfig_ == null - ? com.google.container.v1beta1.NodePoolAutoConfig.getDefaultInstance() - : nodePoolAutoConfig_; - } - /** - * - * - *
-   * Node pool configs that apply to all auto-provisioned node pools
-   * in autopilot clusters and node auto-provisioning enabled clusters.
-   * 
- * - * .google.container.v1beta1.NodePoolAutoConfig node_pool_auto_config = 136; - */ - @java.lang.Override - public com.google.container.v1beta1.NodePoolAutoConfigOrBuilder getNodePoolAutoConfigOrBuilder() { - return nodePoolAutoConfig_ == null - ? com.google.container.v1beta1.NodePoolAutoConfig.getDefaultInstance() - : nodePoolAutoConfig_; - } - - public static final int PROTECT_CONFIG_FIELD_NUMBER = 137; - private com.google.container.v1beta1.ProtectConfig protectConfig_; - /** - * - * - *
-   * Deprecated: Use SecurityPostureConfig instead.
-   * Enable/Disable Protect API features for the cluster.
-   * 
- * - * - * optional .google.container.v1beta1.ProtectConfig protect_config = 137 [deprecated = true]; - * - * - * @deprecated google.container.v1beta1.Cluster.protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2270 - * @return Whether the protectConfig field is set. - */ - @java.lang.Override - @java.lang.Deprecated - public boolean hasProtectConfig() { - return ((bitField1_ & 0x00000020) != 0); - } - /** - * - * - *
-   * Deprecated: Use SecurityPostureConfig instead.
-   * Enable/Disable Protect API features for the cluster.
-   * 
- * - * - * optional .google.container.v1beta1.ProtectConfig protect_config = 137 [deprecated = true]; - * - * - * @deprecated google.container.v1beta1.Cluster.protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2270 - * @return The protectConfig. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.container.v1beta1.ProtectConfig getProtectConfig() { - return protectConfig_ == null - ? com.google.container.v1beta1.ProtectConfig.getDefaultInstance() - : protectConfig_; - } - /** - * - * - *
-   * Deprecated: Use SecurityPostureConfig instead.
-   * Enable/Disable Protect API features for the cluster.
-   * 
- * - * - * optional .google.container.v1beta1.ProtectConfig protect_config = 137 [deprecated = true]; - * - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.container.v1beta1.ProtectConfigOrBuilder getProtectConfigOrBuilder() { - return protectConfig_ == null - ? com.google.container.v1beta1.ProtectConfig.getDefaultInstance() - : protectConfig_; - } - - public static final int ETAG_FIELD_NUMBER = 139; - - @SuppressWarnings("serial") - private volatile java.lang.Object etag_ = ""; - /** - * - * - *
-   * This checksum is computed by the server based on the value of cluster
-   * fields, and may be sent on update requests to ensure the client has an
-   * up-to-date value before proceeding.
-   * 
- * - * string etag = 139; - * - * @return The etag. - */ - @java.lang.Override - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } - } - /** - * - * - *
-   * This checksum is computed by the server based on the value of cluster
-   * fields, and may be sent on update requests to ensure the client has an
-   * up-to-date value before proceeding.
-   * 
- * - * string etag = 139; - * - * @return The bytes for etag. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FLEET_FIELD_NUMBER = 140; - private com.google.container.v1beta1.Fleet fleet_; - /** - * - * - *
-   * Fleet information for the cluster.
-   * 
- * - * .google.container.v1beta1.Fleet fleet = 140; - * - * @return Whether the fleet field is set. - */ - @java.lang.Override - public boolean hasFleet() { - return ((bitField1_ & 0x00000040) != 0); - } - /** - * - * - *
-   * Fleet information for the cluster.
-   * 
- * - * .google.container.v1beta1.Fleet fleet = 140; - * - * @return The fleet. - */ - @java.lang.Override - public com.google.container.v1beta1.Fleet getFleet() { - return fleet_ == null ? com.google.container.v1beta1.Fleet.getDefaultInstance() : fleet_; - } - /** - * - * - *
-   * Fleet information for the cluster.
-   * 
- * - * .google.container.v1beta1.Fleet fleet = 140; - */ - @java.lang.Override - public com.google.container.v1beta1.FleetOrBuilder getFleetOrBuilder() { - return fleet_ == null ? com.google.container.v1beta1.Fleet.getDefaultInstance() : fleet_; - } - - public static final int SECURITY_POSTURE_CONFIG_FIELD_NUMBER = 145; - private com.google.container.v1beta1.SecurityPostureConfig securityPostureConfig_; - /** - * - * - *
-   * Enable/Disable Security Posture API features for the cluster.
-   * 
- * - * .google.container.v1beta1.SecurityPostureConfig security_posture_config = 145; - * - * @return Whether the securityPostureConfig field is set. - */ - @java.lang.Override - public boolean hasSecurityPostureConfig() { - return ((bitField1_ & 0x00000080) != 0); - } - /** - * - * - *
-   * Enable/Disable Security Posture API features for the cluster.
-   * 
- * - * .google.container.v1beta1.SecurityPostureConfig security_posture_config = 145; - * - * @return The securityPostureConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.SecurityPostureConfig getSecurityPostureConfig() { - return securityPostureConfig_ == null - ? com.google.container.v1beta1.SecurityPostureConfig.getDefaultInstance() - : securityPostureConfig_; - } - /** - * - * - *
-   * Enable/Disable Security Posture API features for the cluster.
-   * 
- * - * .google.container.v1beta1.SecurityPostureConfig security_posture_config = 145; - */ - @java.lang.Override - public com.google.container.v1beta1.SecurityPostureConfigOrBuilder - getSecurityPostureConfigOrBuilder() { - return securityPostureConfig_ == null - ? com.google.container.v1beta1.SecurityPostureConfig.getDefaultInstance() - : securityPostureConfig_; - } - - public static final int ENTERPRISE_CONFIG_FIELD_NUMBER = 149; - private com.google.container.v1beta1.EnterpriseConfig enterpriseConfig_; - /** - * - * - *
-   * GKE Enterprise Configuration.
-   * 
- * - * .google.container.v1beta1.EnterpriseConfig enterprise_config = 149; - * - * @return Whether the enterpriseConfig field is set. - */ - @java.lang.Override - public boolean hasEnterpriseConfig() { - return ((bitField1_ & 0x00000100) != 0); - } - /** - * - * - *
-   * GKE Enterprise Configuration.
-   * 
- * - * .google.container.v1beta1.EnterpriseConfig enterprise_config = 149; - * - * @return The enterpriseConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.EnterpriseConfig getEnterpriseConfig() { - return enterpriseConfig_ == null - ? com.google.container.v1beta1.EnterpriseConfig.getDefaultInstance() - : enterpriseConfig_; - } - /** - * - * - *
-   * GKE Enterprise Configuration.
-   * 
- * - * .google.container.v1beta1.EnterpriseConfig enterprise_config = 149; - */ - @java.lang.Override - public com.google.container.v1beta1.EnterpriseConfigOrBuilder getEnterpriseConfigOrBuilder() { - return enterpriseConfig_ == null - ? com.google.container.v1beta1.EnterpriseConfig.getDefaultInstance() - : enterpriseConfig_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); - } - if (initialNodeCount_ != 0) { - output.writeInt32(3, initialNodeCount_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(4, getNodeConfig()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(5, getMasterAuth()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loggingService_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, loggingService_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(monitoringService_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, monitoringService_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, network_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterIpv4Cidr_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, clusterIpv4Cidr_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(10, getAddonsConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, subnetwork_); - } - for (int i = 0; i < nodePools_.size(); i++) { - output.writeMessage(12, nodePools_.get(i)); - } - for (int i = 0; i < locations_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, locations_.getRaw(i)); - } - if (enableKubernetesAlpha_ != false) { - output.writeBool(14, enableKubernetesAlpha_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetResourceLabels(), ResourceLabelsDefaultEntryHolder.defaultEntry, 15); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(labelFingerprint_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 16, labelFingerprint_); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeMessage(18, getLegacyAbac()); - } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeMessage(19, getNetworkPolicy()); - } - if (((bitField0_ & 0x00000040) != 0)) { - output.writeMessage(20, getIpAllocationPolicy()); - } - if (((bitField0_ & 0x00000080) != 0)) { - output.writeMessage(22, getMasterAuthorizedNetworksConfig()); - } - if (((bitField0_ & 0x00000100) != 0)) { - output.writeMessage(23, getMaintenancePolicy()); - } - if (((bitField0_ & 0x00000200) != 0)) { - output.writeMessage(24, getBinaryAuthorization()); - } - if (((bitField0_ & 0x00000400) != 0)) { - output.writeMessage(25, getPodSecurityPolicyConfig()); - } - if (((bitField0_ & 0x00000800) != 0)) { - output.writeMessage(26, getAutoscaling()); - } - if (((bitField0_ & 0x00001000) != 0)) { - output.writeMessage(27, getNetworkConfig()); - } - if (privateCluster_ != false) { - output.writeBool(28, privateCluster_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(masterIpv4CidrBlock_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 29, masterIpv4CidrBlock_); - } - if (((bitField0_ & 0x00002000) != 0)) { - output.writeMessage(30, getDefaultMaxPodsConstraint()); - } - if (((bitField0_ & 0x00004000) != 0)) { - output.writeMessage(33, getResourceUsageExportConfig()); - } - if (((bitField0_ & 0x00008000) != 0)) { - output.writeMessage(34, getAuthenticatorGroupsConfig()); - } - if (((bitField0_ & 0x00010000) != 0)) { - output.writeMessage(37, getPrivateClusterConfig()); - } - if (((bitField0_ & 0x40000000) != 0)) { - output.writeMessage(38, getDatabaseEncryption()); - } - if (((bitField0_ & 0x00020000) != 0)) { - output.writeMessage(39, getVerticalPodAutoscaling()); - } - if (((bitField0_ & 0x00040000) != 0)) { - output.writeMessage(40, getShieldedNodes()); - } - if (((bitField0_ & 0x00080000) != 0)) { - output.writeMessage(41, getReleaseChannel()); - } - if (((bitField0_ & 0x00100000) != 0)) { - output.writeMessage(43, getWorkloadIdentityConfig()); - } - if (((bitField0_ & 0x01000000) != 0)) { - output.writeMessage(45, getCostManagementConfig()); - } - if (((bitField0_ & 0x02000000) != 0)) { - output.writeMessage(46, getClusterTelemetry()); - } - if (((bitField0_ & 0x04000000) != 0)) { - output.writeMessage(47, getTpuConfig()); - } - if (((bitField0_ & 0x08000000) != 0)) { - output.writeMessage(49, getNotificationConfig()); - } - if (((bitField0_ & 0x10000000) != 0)) { - output.writeMessage(50, getConfidentialNodes()); - } - if (((bitField0_ & 0x00200000) != 0)) { - output.writeMessage(52, getWorkloadCertificates()); - } - if (((bitField0_ & 0x00800000) != 0)) { - output.writeMessage(53, getWorkloadAltsConfig()); - } - if (((bitField0_ & 0x20000000) != 0)) { - output.writeMessage(54, getIdentityServiceConfig()); - } - if (((bitField0_ & 0x00400000) != 0)) { - output.writeMessage(67, getMeshCertificates()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 100, selfLink_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 101, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 102, endpoint_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(initialClusterVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 103, initialClusterVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentMasterVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 104, currentMasterVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentNodeVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 105, currentNodeVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(createTime_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 106, createTime_); - } - if (status_ != com.google.container.v1beta1.Cluster.Status.STATUS_UNSPECIFIED.getNumber()) { - output.writeEnum(107, status_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 108, statusMessage_); - } - if (nodeIpv4CidrSize_ != 0) { - output.writeInt32(109, nodeIpv4CidrSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesIpv4Cidr_)) { - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expireTime_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 113, expireTime_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 114, location_); - } - if (enableTpu_ != false) { - output.writeBool(115, enableTpu_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tpuIpv4CidrBlock_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 116, tpuIpv4CidrBlock_); - } - for (int i = 0; i < conditions_.size(); i++) { - output.writeMessage(118, conditions_.get(i)); - } - if (((bitField0_ & 0x80000000) != 0)) { - output.writeMessage(124, getMaster()); - } - if (((bitField1_ & 0x00000001) != 0)) { - output.writeMessage(128, getAutopilot()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 129, id_); - } - if (((bitField1_ & 0x00000002) != 0)) { - output.writeMessage(131, getNodePoolDefaults()); - } - if (((bitField1_ & 0x00000004) != 0)) { - output.writeMessage(132, getLoggingConfig()); - } - if (((bitField1_ & 0x00000008) != 0)) { - output.writeMessage(133, getMonitoringConfig()); - } - if (((bitField1_ & 0x00000010) != 0)) { - output.writeMessage(136, getNodePoolAutoConfig()); - } - if (((bitField1_ & 0x00000020) != 0)) { - output.writeMessage(137, getProtectConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 139, etag_); - } - if (((bitField1_ & 0x00000040) != 0)) { - output.writeMessage(140, getFleet()); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(143, getEnableK8SBetaApis()); - } - if (((bitField1_ & 0x00000080) != 0)) { - output.writeMessage(145, getSecurityPostureConfig()); - } - if (((bitField1_ & 0x00000100) != 0)) { - output.writeMessage(149, getEnterpriseConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); - } - if (initialNodeCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, initialNodeCount_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getNodeConfig()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getMasterAuth()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loggingService_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, loggingService_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(monitoringService_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, monitoringService_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, network_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterIpv4Cidr_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, clusterIpv4Cidr_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getAddonsConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(labelFingerprint_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, labelFingerprint_); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getLegacyAbac()); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getNetworkPolicy()); - } - if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getIpAllocationPolicy()); - } - if (((bitField0_ & 0x00000080) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 22, getMasterAuthorizedNetworksConfig()); - } - if (((bitField0_ & 0x00000100) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getMaintenancePolicy()); - } - if (((bitField0_ & 0x00000200) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(24, getBinaryAuthorization()); - } - if (((bitField0_ & 0x00000400) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 25, getPodSecurityPolicyConfig()); - } - if (((bitField0_ & 0x00000800) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, getAutoscaling()); - } - if (((bitField0_ & 0x00001000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, getNetworkConfig()); - } - if (privateCluster_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(28, privateCluster_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(masterIpv4CidrBlock_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, masterIpv4CidrBlock_); - } - if (((bitField0_ & 0x00002000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 30, getDefaultMaxPodsConstraint()); - } - if (((bitField0_ & 0x00004000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 33, getResourceUsageExportConfig()); - } - if (((bitField0_ & 0x00008000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 34, getAuthenticatorGroupsConfig()); - } - if (((bitField0_ & 0x00010000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(37, getPrivateClusterConfig()); - } - if (((bitField0_ & 0x40000000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(38, getDatabaseEncryption()); - } - if (((bitField0_ & 0x00020000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(39, getVerticalPodAutoscaling()); - } - if (((bitField0_ & 0x00040000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(40, getShieldedNodes()); - } - if (((bitField0_ & 0x00080000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(41, getReleaseChannel()); - } - if (((bitField0_ & 0x00100000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(43, getWorkloadIdentityConfig()); - } - if (((bitField0_ & 0x01000000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(45, getCostManagementConfig()); - } - if (((bitField0_ & 0x02000000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(46, getClusterTelemetry()); - } - if (((bitField0_ & 0x04000000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(47, getTpuConfig()); - } - if (((bitField0_ & 0x08000000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(49, getNotificationConfig()); - } - if (((bitField0_ & 0x10000000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(50, getConfidentialNodes()); - } - if (((bitField0_ & 0x00200000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(52, getWorkloadCertificates()); - } - if (((bitField0_ & 0x00800000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(53, getWorkloadAltsConfig()); - } - if (((bitField0_ & 0x20000000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(54, getIdentityServiceConfig()); - } - if (((bitField0_ & 0x00400000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(67, getMeshCertificates()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, selfLink_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(101, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(102, endpoint_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(initialClusterVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(103, initialClusterVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentMasterVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(104, currentMasterVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentNodeVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(105, currentNodeVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(createTime_)) { - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(108, statusMessage_); - } - if (nodeIpv4CidrSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(109, nodeIpv4CidrSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesIpv4Cidr_)) { - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expireTime_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(113, expireTime_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(114, location_); - } - if (enableTpu_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(115, enableTpu_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tpuIpv4CidrBlock_)) { - 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 (((bitField0_ & 0x80000000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(124, getMaster()); - } - if (((bitField1_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(128, getAutopilot()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(129, id_); - } - if (((bitField1_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(131, getNodePoolDefaults()); - } - if (((bitField1_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(132, getLoggingConfig()); - } - if (((bitField1_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(133, getMonitoringConfig()); - } - if (((bitField1_ & 0x00000010) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(136, getNodePoolAutoConfig()); - } - if (((bitField1_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(137, getProtectConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(139, etag_); - } - if (((bitField1_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(140, getFleet()); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(143, getEnableK8SBetaApis()); - } - if (((bitField1_ & 0x00000080) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(145, getSecurityPostureConfig()); - } - if (((bitField1_ & 0x00000100) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(149, getEnterpriseConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (hasEnableK8SBetaApis() != other.hasEnableK8SBetaApis()) return false; - if (hasEnableK8SBetaApis()) { - if (!getEnableK8SBetaApis().equals(other.getEnableK8SBetaApis())) 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 (hasWorkloadCertificates() != other.hasWorkloadCertificates()) return false; - if (hasWorkloadCertificates()) { - if (!getWorkloadCertificates().equals(other.getWorkloadCertificates())) return false; - } - if (hasMeshCertificates() != other.hasMeshCertificates()) return false; - if (hasMeshCertificates()) { - if (!getMeshCertificates().equals(other.getMeshCertificates())) return false; - } - if (hasWorkloadAltsConfig() != other.hasWorkloadAltsConfig()) return false; - if (hasWorkloadAltsConfig()) { - if (!getWorkloadAltsConfig().equals(other.getWorkloadAltsConfig())) return false; - } - if (hasCostManagementConfig() != other.hasCostManagementConfig()) return false; - if (hasCostManagementConfig()) { - if (!getCostManagementConfig().equals(other.getCostManagementConfig())) 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 (hasIdentityServiceConfig() != other.hasIdentityServiceConfig()) return false; - if (hasIdentityServiceConfig()) { - if (!getIdentityServiceConfig().equals(other.getIdentityServiceConfig())) 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 (hasAutopilot() != other.hasAutopilot()) return false; - if (hasAutopilot()) { - if (!getAutopilot().equals(other.getAutopilot())) return false; - } - if (!getId().equals(other.getId())) return false; - if (hasNodePoolDefaults() != other.hasNodePoolDefaults()) return false; - if (hasNodePoolDefaults()) { - if (!getNodePoolDefaults().equals(other.getNodePoolDefaults())) return false; - } - if (hasLoggingConfig() != other.hasLoggingConfig()) return false; - if (hasLoggingConfig()) { - if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; - } - if (hasMonitoringConfig() != other.hasMonitoringConfig()) return false; - if (hasMonitoringConfig()) { - if (!getMonitoringConfig().equals(other.getMonitoringConfig())) return false; - } - if (hasNodePoolAutoConfig() != other.hasNodePoolAutoConfig()) return false; - if (hasNodePoolAutoConfig()) { - if (!getNodePoolAutoConfig().equals(other.getNodePoolAutoConfig())) return false; - } - if (hasProtectConfig() != other.hasProtectConfig()) return false; - if (hasProtectConfig()) { - if (!getProtectConfig().equals(other.getProtectConfig())) return false; - } - if (!getEtag().equals(other.getEtag())) return false; - if (hasFleet() != other.hasFleet()) return false; - if (hasFleet()) { - if (!getFleet().equals(other.getFleet())) return false; - } - if (hasSecurityPostureConfig() != other.hasSecurityPostureConfig()) return false; - if (hasSecurityPostureConfig()) { - if (!getSecurityPostureConfig().equals(other.getSecurityPostureConfig())) return false; - } - if (hasEnterpriseConfig() != other.hasEnterpriseConfig()) return false; - if (hasEnterpriseConfig()) { - if (!getEnterpriseConfig().equals(other.getEnterpriseConfig())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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 (hasEnableK8SBetaApis()) { - hash = (37 * hash) + ENABLE_K8S_BETA_APIS_FIELD_NUMBER; - hash = (53 * hash) + getEnableK8SBetaApis().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(); - 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 (hasWorkloadCertificates()) { - hash = (37 * hash) + WORKLOAD_CERTIFICATES_FIELD_NUMBER; - hash = (53 * hash) + getWorkloadCertificates().hashCode(); - } - if (hasMeshCertificates()) { - hash = (37 * hash) + MESH_CERTIFICATES_FIELD_NUMBER; - hash = (53 * hash) + getMeshCertificates().hashCode(); - } - if (hasWorkloadAltsConfig()) { - hash = (37 * hash) + WORKLOAD_ALTS_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getWorkloadAltsConfig().hashCode(); - } - if (hasCostManagementConfig()) { - hash = (37 * hash) + COST_MANAGEMENT_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getCostManagementConfig().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(); - } - if (hasIdentityServiceConfig()) { - hash = (37 * hash) + IDENTITY_SERVICE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getIdentityServiceConfig().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(); - } - if (hasAutopilot()) { - hash = (37 * hash) + AUTOPILOT_FIELD_NUMBER; - hash = (53 * hash) + getAutopilot().hashCode(); - } - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - if (hasNodePoolDefaults()) { - hash = (37 * hash) + NODE_POOL_DEFAULTS_FIELD_NUMBER; - hash = (53 * hash) + getNodePoolDefaults().hashCode(); - } - if (hasLoggingConfig()) { - hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getLoggingConfig().hashCode(); - } - if (hasMonitoringConfig()) { - hash = (37 * hash) + MONITORING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getMonitoringConfig().hashCode(); - } - if (hasNodePoolAutoConfig()) { - hash = (37 * hash) + NODE_POOL_AUTO_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getNodePoolAutoConfig().hashCode(); - } - if (hasProtectConfig()) { - hash = (37 * hash) + PROTECT_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getProtectConfig().hashCode(); - } - hash = (37 * hash) + ETAG_FIELD_NUMBER; - hash = (53 * hash) + getEtag().hashCode(); - if (hasFleet()) { - hash = (37 * hash) + FLEET_FIELD_NUMBER; - hash = (53 * hash) + getFleet().hashCode(); - } - if (hasSecurityPostureConfig()) { - hash = (37 * hash) + SECURITY_POSTURE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getSecurityPostureConfig().hashCode(); - } - if (hasEnterpriseConfig()) { - hash = (37 * hash) + ENTERPRISE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getEnterpriseConfig().hashCode(); - } - hash = (29 * hash) + getUnknownFields().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.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 15: - return internalGetResourceLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - 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) { - getNodeConfigFieldBuilder(); - getMasterAuthFieldBuilder(); - getAddonsConfigFieldBuilder(); - getNodePoolsFieldBuilder(); - getEnableK8SBetaApisFieldBuilder(); - getLegacyAbacFieldBuilder(); - getNetworkPolicyFieldBuilder(); - getIpAllocationPolicyFieldBuilder(); - getMasterAuthorizedNetworksConfigFieldBuilder(); - getMaintenancePolicyFieldBuilder(); - getBinaryAuthorizationFieldBuilder(); - getPodSecurityPolicyConfigFieldBuilder(); - getAutoscalingFieldBuilder(); - getNetworkConfigFieldBuilder(); - getDefaultMaxPodsConstraintFieldBuilder(); - getResourceUsageExportConfigFieldBuilder(); - getAuthenticatorGroupsConfigFieldBuilder(); - getPrivateClusterConfigFieldBuilder(); - getVerticalPodAutoscalingFieldBuilder(); - getShieldedNodesFieldBuilder(); - getReleaseChannelFieldBuilder(); - getWorkloadIdentityConfigFieldBuilder(); - getWorkloadCertificatesFieldBuilder(); - getMeshCertificatesFieldBuilder(); - getWorkloadAltsConfigFieldBuilder(); - getCostManagementConfigFieldBuilder(); - getClusterTelemetryFieldBuilder(); - getTpuConfigFieldBuilder(); - getNotificationConfigFieldBuilder(); - getConfidentialNodesFieldBuilder(); - getIdentityServiceConfigFieldBuilder(); - getDatabaseEncryptionFieldBuilder(); - getConditionsFieldBuilder(); - getMasterFieldBuilder(); - getAutopilotFieldBuilder(); - getNodePoolDefaultsFieldBuilder(); - getLoggingConfigFieldBuilder(); - getMonitoringConfigFieldBuilder(); - getNodePoolAutoConfigFieldBuilder(); - getProtectConfigFieldBuilder(); - getFleetFieldBuilder(); - getSecurityPostureConfigFieldBuilder(); - getEnterpriseConfigFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - bitField1_ = 0; - bitField2_ = 0; - name_ = ""; - description_ = ""; - initialNodeCount_ = 0; - nodeConfig_ = null; - if (nodeConfigBuilder_ != null) { - nodeConfigBuilder_.dispose(); - nodeConfigBuilder_ = null; - } - masterAuth_ = null; - if (masterAuthBuilder_ != null) { - masterAuthBuilder_.dispose(); - masterAuthBuilder_ = null; - } - loggingService_ = ""; - monitoringService_ = ""; - network_ = ""; - clusterIpv4Cidr_ = ""; - addonsConfig_ = null; - if (addonsConfigBuilder_ != null) { - addonsConfigBuilder_.dispose(); - addonsConfigBuilder_ = null; - } - subnetwork_ = ""; - if (nodePoolsBuilder_ == null) { - nodePools_ = java.util.Collections.emptyList(); - } else { - nodePools_ = null; - nodePoolsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000800); - locations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - enableKubernetesAlpha_ = false; - enableK8SBetaApis_ = null; - if (enableK8SBetaApisBuilder_ != null) { - enableK8SBetaApisBuilder_.dispose(); - enableK8SBetaApisBuilder_ = null; - } - internalGetMutableResourceLabels().clear(); - labelFingerprint_ = ""; - legacyAbac_ = null; - if (legacyAbacBuilder_ != null) { - legacyAbacBuilder_.dispose(); - legacyAbacBuilder_ = null; - } - networkPolicy_ = null; - if (networkPolicyBuilder_ != null) { - networkPolicyBuilder_.dispose(); - networkPolicyBuilder_ = null; - } - ipAllocationPolicy_ = null; - if (ipAllocationPolicyBuilder_ != null) { - ipAllocationPolicyBuilder_.dispose(); - ipAllocationPolicyBuilder_ = null; - } - masterAuthorizedNetworksConfig_ = null; - if (masterAuthorizedNetworksConfigBuilder_ != null) { - masterAuthorizedNetworksConfigBuilder_.dispose(); - masterAuthorizedNetworksConfigBuilder_ = null; - } - maintenancePolicy_ = null; - if (maintenancePolicyBuilder_ != null) { - maintenancePolicyBuilder_.dispose(); - maintenancePolicyBuilder_ = null; - } - binaryAuthorization_ = null; - if (binaryAuthorizationBuilder_ != null) { - binaryAuthorizationBuilder_.dispose(); - binaryAuthorizationBuilder_ = null; - } - podSecurityPolicyConfig_ = null; - if (podSecurityPolicyConfigBuilder_ != null) { - podSecurityPolicyConfigBuilder_.dispose(); - podSecurityPolicyConfigBuilder_ = null; - } - autoscaling_ = null; - if (autoscalingBuilder_ != null) { - autoscalingBuilder_.dispose(); - autoscalingBuilder_ = null; - } - networkConfig_ = null; - if (networkConfigBuilder_ != null) { - networkConfigBuilder_.dispose(); - networkConfigBuilder_ = null; - } - privateCluster_ = false; - masterIpv4CidrBlock_ = ""; - defaultMaxPodsConstraint_ = null; - if (defaultMaxPodsConstraintBuilder_ != null) { - defaultMaxPodsConstraintBuilder_.dispose(); - defaultMaxPodsConstraintBuilder_ = null; - } - resourceUsageExportConfig_ = null; - if (resourceUsageExportConfigBuilder_ != null) { - resourceUsageExportConfigBuilder_.dispose(); - resourceUsageExportConfigBuilder_ = null; - } - authenticatorGroupsConfig_ = null; - if (authenticatorGroupsConfigBuilder_ != null) { - authenticatorGroupsConfigBuilder_.dispose(); - authenticatorGroupsConfigBuilder_ = null; - } - privateClusterConfig_ = null; - if (privateClusterConfigBuilder_ != null) { - privateClusterConfigBuilder_.dispose(); - privateClusterConfigBuilder_ = null; - } - verticalPodAutoscaling_ = null; - if (verticalPodAutoscalingBuilder_ != null) { - verticalPodAutoscalingBuilder_.dispose(); - verticalPodAutoscalingBuilder_ = null; - } - shieldedNodes_ = null; - if (shieldedNodesBuilder_ != null) { - shieldedNodesBuilder_.dispose(); - shieldedNodesBuilder_ = null; - } - releaseChannel_ = null; - if (releaseChannelBuilder_ != null) { - releaseChannelBuilder_.dispose(); - releaseChannelBuilder_ = null; - } - workloadIdentityConfig_ = null; - if (workloadIdentityConfigBuilder_ != null) { - workloadIdentityConfigBuilder_.dispose(); - workloadIdentityConfigBuilder_ = null; - } - workloadCertificates_ = null; - if (workloadCertificatesBuilder_ != null) { - workloadCertificatesBuilder_.dispose(); - workloadCertificatesBuilder_ = null; - } - meshCertificates_ = null; - if (meshCertificatesBuilder_ != null) { - meshCertificatesBuilder_.dispose(); - meshCertificatesBuilder_ = null; - } - workloadAltsConfig_ = null; - if (workloadAltsConfigBuilder_ != null) { - workloadAltsConfigBuilder_.dispose(); - workloadAltsConfigBuilder_ = null; - } - costManagementConfig_ = null; - if (costManagementConfigBuilder_ != null) { - costManagementConfigBuilder_.dispose(); - costManagementConfigBuilder_ = null; - } - clusterTelemetry_ = null; - if (clusterTelemetryBuilder_ != null) { - clusterTelemetryBuilder_.dispose(); - clusterTelemetryBuilder_ = null; - } - tpuConfig_ = null; - if (tpuConfigBuilder_ != null) { - tpuConfigBuilder_.dispose(); - tpuConfigBuilder_ = null; - } - notificationConfig_ = null; - if (notificationConfigBuilder_ != null) { - notificationConfigBuilder_.dispose(); - notificationConfigBuilder_ = null; - } - confidentialNodes_ = null; - if (confidentialNodesBuilder_ != null) { - confidentialNodesBuilder_.dispose(); - confidentialNodesBuilder_ = null; - } - identityServiceConfig_ = null; - if (identityServiceConfigBuilder_ != null) { - identityServiceConfigBuilder_.dispose(); - identityServiceConfigBuilder_ = null; - } - selfLink_ = ""; - zone_ = ""; - endpoint_ = ""; - initialClusterVersion_ = ""; - currentMasterVersion_ = ""; - currentNodeVersion_ = ""; - createTime_ = ""; - status_ = 0; - statusMessage_ = ""; - nodeIpv4CidrSize_ = 0; - servicesIpv4Cidr_ = ""; - instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - currentNodeCount_ = 0; - expireTime_ = ""; - location_ = ""; - enableTpu_ = false; - tpuIpv4CidrBlock_ = ""; - databaseEncryption_ = null; - if (databaseEncryptionBuilder_ != null) { - databaseEncryptionBuilder_.dispose(); - databaseEncryptionBuilder_ = null; - } - if (conditionsBuilder_ == null) { - conditions_ = java.util.Collections.emptyList(); - } else { - conditions_ = null; - conditionsBuilder_.clear(); - } - bitField1_ = (bitField1_ & ~0x80000000); - master_ = null; - if (masterBuilder_ != null) { - masterBuilder_.dispose(); - masterBuilder_ = null; - } - autopilot_ = null; - if (autopilotBuilder_ != null) { - autopilotBuilder_.dispose(); - autopilotBuilder_ = null; - } - id_ = ""; - nodePoolDefaults_ = null; - if (nodePoolDefaultsBuilder_ != null) { - nodePoolDefaultsBuilder_.dispose(); - nodePoolDefaultsBuilder_ = null; - } - loggingConfig_ = null; - if (loggingConfigBuilder_ != null) { - loggingConfigBuilder_.dispose(); - loggingConfigBuilder_ = null; - } - monitoringConfig_ = null; - if (monitoringConfigBuilder_ != null) { - monitoringConfigBuilder_.dispose(); - monitoringConfigBuilder_ = null; - } - nodePoolAutoConfig_ = null; - if (nodePoolAutoConfigBuilder_ != null) { - nodePoolAutoConfigBuilder_.dispose(); - nodePoolAutoConfigBuilder_ = null; - } - protectConfig_ = null; - if (protectConfigBuilder_ != null) { - protectConfigBuilder_.dispose(); - protectConfigBuilder_ = null; - } - etag_ = ""; - fleet_ = null; - if (fleetBuilder_ != null) { - fleetBuilder_.dispose(); - fleetBuilder_ = null; - } - securityPostureConfig_ = null; - if (securityPostureConfigBuilder_ != null) { - securityPostureConfigBuilder_.dispose(); - securityPostureConfigBuilder_ = null; - } - enterpriseConfig_ = null; - if (enterpriseConfigBuilder_ != null) { - enterpriseConfigBuilder_.dispose(); - enterpriseConfigBuilder_ = 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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - if (bitField1_ != 0) { - buildPartial1(result); - } - if (bitField2_ != 0) { - buildPartial2(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.container.v1beta1.Cluster result) { - if (nodePoolsBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0)) { - nodePools_ = java.util.Collections.unmodifiableList(nodePools_); - bitField0_ = (bitField0_ & ~0x00000800); - } - result.nodePools_ = nodePools_; - } else { - result.nodePools_ = nodePoolsBuilder_.build(); - } - if (conditionsBuilder_ == null) { - if (((bitField1_ & 0x80000000) != 0)) { - conditions_ = java.util.Collections.unmodifiableList(conditions_); - bitField1_ = (bitField1_ & ~0x80000000); - } - result.conditions_ = conditions_; - } else { - result.conditions_ = conditionsBuilder_.build(); - } - } - - private void buildPartial0(com.google.container.v1beta1.Cluster result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.description_ = description_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.initialNodeCount_ = initialNodeCount_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.nodeConfig_ = nodeConfigBuilder_ == null ? nodeConfig_ : nodeConfigBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.masterAuth_ = masterAuthBuilder_ == null ? masterAuth_ : masterAuthBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.loggingService_ = loggingService_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.monitoringService_ = monitoringService_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.network_ = network_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.clusterIpv4Cidr_ = clusterIpv4Cidr_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.addonsConfig_ = - addonsConfigBuilder_ == null ? addonsConfig_ : addonsConfigBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.subnetwork_ = subnetwork_; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - locations_.makeImmutable(); - result.locations_ = locations_; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.enableKubernetesAlpha_ = enableKubernetesAlpha_; - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.enableK8SBetaApis_ = - enableK8SBetaApisBuilder_ == null - ? enableK8SBetaApis_ - : enableK8SBetaApisBuilder_.build(); - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00008000) != 0)) { - result.resourceLabels_ = internalGetResourceLabels(); - result.resourceLabels_.makeImmutable(); - } - if (((from_bitField0_ & 0x00010000) != 0)) { - result.labelFingerprint_ = labelFingerprint_; - } - if (((from_bitField0_ & 0x00020000) != 0)) { - result.legacyAbac_ = legacyAbacBuilder_ == null ? legacyAbac_ : legacyAbacBuilder_.build(); - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00040000) != 0)) { - result.networkPolicy_ = - networkPolicyBuilder_ == null ? networkPolicy_ : networkPolicyBuilder_.build(); - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00080000) != 0)) { - result.ipAllocationPolicy_ = - ipAllocationPolicyBuilder_ == null - ? ipAllocationPolicy_ - : ipAllocationPolicyBuilder_.build(); - to_bitField0_ |= 0x00000040; - } - if (((from_bitField0_ & 0x00100000) != 0)) { - result.masterAuthorizedNetworksConfig_ = - masterAuthorizedNetworksConfigBuilder_ == null - ? masterAuthorizedNetworksConfig_ - : masterAuthorizedNetworksConfigBuilder_.build(); - to_bitField0_ |= 0x00000080; - } - if (((from_bitField0_ & 0x00200000) != 0)) { - result.maintenancePolicy_ = - maintenancePolicyBuilder_ == null - ? maintenancePolicy_ - : maintenancePolicyBuilder_.build(); - to_bitField0_ |= 0x00000100; - } - if (((from_bitField0_ & 0x00400000) != 0)) { - result.binaryAuthorization_ = - binaryAuthorizationBuilder_ == null - ? binaryAuthorization_ - : binaryAuthorizationBuilder_.build(); - to_bitField0_ |= 0x00000200; - } - if (((from_bitField0_ & 0x00800000) != 0)) { - result.podSecurityPolicyConfig_ = - podSecurityPolicyConfigBuilder_ == null - ? podSecurityPolicyConfig_ - : podSecurityPolicyConfigBuilder_.build(); - to_bitField0_ |= 0x00000400; - } - if (((from_bitField0_ & 0x01000000) != 0)) { - result.autoscaling_ = - autoscalingBuilder_ == null ? autoscaling_ : autoscalingBuilder_.build(); - to_bitField0_ |= 0x00000800; - } - if (((from_bitField0_ & 0x02000000) != 0)) { - result.networkConfig_ = - networkConfigBuilder_ == null ? networkConfig_ : networkConfigBuilder_.build(); - to_bitField0_ |= 0x00001000; - } - if (((from_bitField0_ & 0x04000000) != 0)) { - result.privateCluster_ = privateCluster_; - } - if (((from_bitField0_ & 0x08000000) != 0)) { - result.masterIpv4CidrBlock_ = masterIpv4CidrBlock_; - } - if (((from_bitField0_ & 0x10000000) != 0)) { - result.defaultMaxPodsConstraint_ = - defaultMaxPodsConstraintBuilder_ == null - ? defaultMaxPodsConstraint_ - : defaultMaxPodsConstraintBuilder_.build(); - to_bitField0_ |= 0x00002000; - } - if (((from_bitField0_ & 0x20000000) != 0)) { - result.resourceUsageExportConfig_ = - resourceUsageExportConfigBuilder_ == null - ? resourceUsageExportConfig_ - : resourceUsageExportConfigBuilder_.build(); - to_bitField0_ |= 0x00004000; - } - if (((from_bitField0_ & 0x40000000) != 0)) { - result.authenticatorGroupsConfig_ = - authenticatorGroupsConfigBuilder_ == null - ? authenticatorGroupsConfig_ - : authenticatorGroupsConfigBuilder_.build(); - to_bitField0_ |= 0x00008000; - } - if (((from_bitField0_ & 0x80000000) != 0)) { - result.privateClusterConfig_ = - privateClusterConfigBuilder_ == null - ? privateClusterConfig_ - : privateClusterConfigBuilder_.build(); - to_bitField0_ |= 0x00010000; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartial1(com.google.container.v1beta1.Cluster result) { - int from_bitField1_ = bitField1_; - int to_bitField0_ = 0; - if (((from_bitField1_ & 0x00000001) != 0)) { - result.verticalPodAutoscaling_ = - verticalPodAutoscalingBuilder_ == null - ? verticalPodAutoscaling_ - : verticalPodAutoscalingBuilder_.build(); - to_bitField0_ |= 0x00020000; - } - if (((from_bitField1_ & 0x00000002) != 0)) { - result.shieldedNodes_ = - shieldedNodesBuilder_ == null ? shieldedNodes_ : shieldedNodesBuilder_.build(); - to_bitField0_ |= 0x00040000; - } - if (((from_bitField1_ & 0x00000004) != 0)) { - result.releaseChannel_ = - releaseChannelBuilder_ == null ? releaseChannel_ : releaseChannelBuilder_.build(); - to_bitField0_ |= 0x00080000; - } - if (((from_bitField1_ & 0x00000008) != 0)) { - result.workloadIdentityConfig_ = - workloadIdentityConfigBuilder_ == null - ? workloadIdentityConfig_ - : workloadIdentityConfigBuilder_.build(); - to_bitField0_ |= 0x00100000; - } - if (((from_bitField1_ & 0x00000010) != 0)) { - result.workloadCertificates_ = - workloadCertificatesBuilder_ == null - ? workloadCertificates_ - : workloadCertificatesBuilder_.build(); - to_bitField0_ |= 0x00200000; - } - if (((from_bitField1_ & 0x00000020) != 0)) { - result.meshCertificates_ = - meshCertificatesBuilder_ == null ? meshCertificates_ : meshCertificatesBuilder_.build(); - to_bitField0_ |= 0x00400000; - } - if (((from_bitField1_ & 0x00000040) != 0)) { - result.workloadAltsConfig_ = - workloadAltsConfigBuilder_ == null - ? workloadAltsConfig_ - : workloadAltsConfigBuilder_.build(); - to_bitField0_ |= 0x00800000; - } - if (((from_bitField1_ & 0x00000080) != 0)) { - result.costManagementConfig_ = - costManagementConfigBuilder_ == null - ? costManagementConfig_ - : costManagementConfigBuilder_.build(); - to_bitField0_ |= 0x01000000; - } - if (((from_bitField1_ & 0x00000100) != 0)) { - result.clusterTelemetry_ = - clusterTelemetryBuilder_ == null ? clusterTelemetry_ : clusterTelemetryBuilder_.build(); - to_bitField0_ |= 0x02000000; - } - if (((from_bitField1_ & 0x00000200) != 0)) { - result.tpuConfig_ = tpuConfigBuilder_ == null ? tpuConfig_ : tpuConfigBuilder_.build(); - to_bitField0_ |= 0x04000000; - } - if (((from_bitField1_ & 0x00000400) != 0)) { - result.notificationConfig_ = - notificationConfigBuilder_ == null - ? notificationConfig_ - : notificationConfigBuilder_.build(); - to_bitField0_ |= 0x08000000; - } - if (((from_bitField1_ & 0x00000800) != 0)) { - result.confidentialNodes_ = - confidentialNodesBuilder_ == null - ? confidentialNodes_ - : confidentialNodesBuilder_.build(); - to_bitField0_ |= 0x10000000; - } - if (((from_bitField1_ & 0x00001000) != 0)) { - result.identityServiceConfig_ = - identityServiceConfigBuilder_ == null - ? identityServiceConfig_ - : identityServiceConfigBuilder_.build(); - to_bitField0_ |= 0x20000000; - } - if (((from_bitField1_ & 0x00002000) != 0)) { - result.selfLink_ = selfLink_; - } - if (((from_bitField1_ & 0x00004000) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField1_ & 0x00008000) != 0)) { - result.endpoint_ = endpoint_; - } - if (((from_bitField1_ & 0x00010000) != 0)) { - result.initialClusterVersion_ = initialClusterVersion_; - } - if (((from_bitField1_ & 0x00020000) != 0)) { - result.currentMasterVersion_ = currentMasterVersion_; - } - if (((from_bitField1_ & 0x00040000) != 0)) { - result.currentNodeVersion_ = currentNodeVersion_; - } - if (((from_bitField1_ & 0x00080000) != 0)) { - result.createTime_ = createTime_; - } - if (((from_bitField1_ & 0x00100000) != 0)) { - result.status_ = status_; - } - if (((from_bitField1_ & 0x00200000) != 0)) { - result.statusMessage_ = statusMessage_; - } - if (((from_bitField1_ & 0x00400000) != 0)) { - result.nodeIpv4CidrSize_ = nodeIpv4CidrSize_; - } - if (((from_bitField1_ & 0x00800000) != 0)) { - result.servicesIpv4Cidr_ = servicesIpv4Cidr_; - } - if (((from_bitField1_ & 0x01000000) != 0)) { - instanceGroupUrls_.makeImmutable(); - result.instanceGroupUrls_ = instanceGroupUrls_; - } - if (((from_bitField1_ & 0x02000000) != 0)) { - result.currentNodeCount_ = currentNodeCount_; - } - if (((from_bitField1_ & 0x04000000) != 0)) { - result.expireTime_ = expireTime_; - } - if (((from_bitField1_ & 0x08000000) != 0)) { - result.location_ = location_; - } - if (((from_bitField1_ & 0x10000000) != 0)) { - result.enableTpu_ = enableTpu_; - } - if (((from_bitField1_ & 0x20000000) != 0)) { - result.tpuIpv4CidrBlock_ = tpuIpv4CidrBlock_; - } - if (((from_bitField1_ & 0x40000000) != 0)) { - result.databaseEncryption_ = - databaseEncryptionBuilder_ == null - ? databaseEncryption_ - : databaseEncryptionBuilder_.build(); - to_bitField0_ |= 0x40000000; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartial2(com.google.container.v1beta1.Cluster result) { - int from_bitField2_ = bitField2_; - int to_bitField0_ = 0; - if (((from_bitField2_ & 0x00000001) != 0)) { - result.master_ = masterBuilder_ == null ? master_ : masterBuilder_.build(); - to_bitField0_ |= 0x80000000; - } - int to_bitField1_ = 0; - if (((from_bitField2_ & 0x00000002) != 0)) { - result.autopilot_ = autopilotBuilder_ == null ? autopilot_ : autopilotBuilder_.build(); - to_bitField1_ |= 0x00000001; - } - if (((from_bitField2_ & 0x00000004) != 0)) { - result.id_ = id_; - } - if (((from_bitField2_ & 0x00000008) != 0)) { - result.nodePoolDefaults_ = - nodePoolDefaultsBuilder_ == null ? nodePoolDefaults_ : nodePoolDefaultsBuilder_.build(); - to_bitField1_ |= 0x00000002; - } - if (((from_bitField2_ & 0x00000010) != 0)) { - result.loggingConfig_ = - loggingConfigBuilder_ == null ? loggingConfig_ : loggingConfigBuilder_.build(); - to_bitField1_ |= 0x00000004; - } - if (((from_bitField2_ & 0x00000020) != 0)) { - result.monitoringConfig_ = - monitoringConfigBuilder_ == null ? monitoringConfig_ : monitoringConfigBuilder_.build(); - to_bitField1_ |= 0x00000008; - } - if (((from_bitField2_ & 0x00000040) != 0)) { - result.nodePoolAutoConfig_ = - nodePoolAutoConfigBuilder_ == null - ? nodePoolAutoConfig_ - : nodePoolAutoConfigBuilder_.build(); - to_bitField1_ |= 0x00000010; - } - if (((from_bitField2_ & 0x00000080) != 0)) { - result.protectConfig_ = - protectConfigBuilder_ == null ? protectConfig_ : protectConfigBuilder_.build(); - to_bitField1_ |= 0x00000020; - } - if (((from_bitField2_ & 0x00000100) != 0)) { - result.etag_ = etag_; - } - if (((from_bitField2_ & 0x00000200) != 0)) { - result.fleet_ = fleetBuilder_ == null ? fleet_ : fleetBuilder_.build(); - to_bitField1_ |= 0x00000040; - } - if (((from_bitField2_ & 0x00000400) != 0)) { - result.securityPostureConfig_ = - securityPostureConfigBuilder_ == null - ? securityPostureConfig_ - : securityPostureConfigBuilder_.build(); - to_bitField1_ |= 0x00000080; - } - if (((from_bitField2_ & 0x00000800) != 0)) { - result.enterpriseConfig_ = - enterpriseConfigBuilder_ == null ? enterpriseConfig_ : enterpriseConfigBuilder_.build(); - to_bitField1_ |= 0x00000100; - } - result.bitField0_ |= to_bitField0_; - result.bitField1_ |= to_bitField1_; - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000002; - 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_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (!other.getMonitoringService().isEmpty()) { - monitoringService_ = other.monitoringService_; - bitField0_ |= 0x00000040; - onChanged(); - } - if (!other.getNetwork().isEmpty()) { - network_ = other.network_; - bitField0_ |= 0x00000080; - onChanged(); - } - if (!other.getClusterIpv4Cidr().isEmpty()) { - clusterIpv4Cidr_ = other.clusterIpv4Cidr_; - bitField0_ |= 0x00000100; - onChanged(); - } - if (other.hasAddonsConfig()) { - mergeAddonsConfig(other.getAddonsConfig()); - } - if (!other.getSubnetwork().isEmpty()) { - subnetwork_ = other.subnetwork_; - bitField0_ |= 0x00000400; - onChanged(); - } - if (nodePoolsBuilder_ == null) { - if (!other.nodePools_.isEmpty()) { - if (nodePools_.isEmpty()) { - nodePools_ = other.nodePools_; - bitField0_ = (bitField0_ & ~0x00000800); - } else { - ensureNodePoolsIsMutable(); - nodePools_.addAll(other.nodePools_); - } - onChanged(); - } - } else { - if (!other.nodePools_.isEmpty()) { - if (nodePoolsBuilder_.isEmpty()) { - nodePoolsBuilder_.dispose(); - nodePoolsBuilder_ = null; - nodePools_ = other.nodePools_; - bitField0_ = (bitField0_ & ~0x00000800); - nodePoolsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNodePoolsFieldBuilder() - : null; - } else { - nodePoolsBuilder_.addAllMessages(other.nodePools_); - } - } - } - if (!other.locations_.isEmpty()) { - if (locations_.isEmpty()) { - locations_ = other.locations_; - bitField0_ |= 0x00001000; - } else { - ensureLocationsIsMutable(); - locations_.addAll(other.locations_); - } - onChanged(); - } - if (other.getEnableKubernetesAlpha() != false) { - setEnableKubernetesAlpha(other.getEnableKubernetesAlpha()); - } - if (other.hasEnableK8SBetaApis()) { - mergeEnableK8SBetaApis(other.getEnableK8SBetaApis()); - } - internalGetMutableResourceLabels().mergeFrom(other.internalGetResourceLabels()); - bitField0_ |= 0x00008000; - if (!other.getLabelFingerprint().isEmpty()) { - labelFingerprint_ = other.labelFingerprint_; - bitField0_ |= 0x00010000; - 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_; - bitField0_ |= 0x08000000; - 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.hasWorkloadCertificates()) { - mergeWorkloadCertificates(other.getWorkloadCertificates()); - } - if (other.hasMeshCertificates()) { - mergeMeshCertificates(other.getMeshCertificates()); - } - if (other.hasWorkloadAltsConfig()) { - mergeWorkloadAltsConfig(other.getWorkloadAltsConfig()); - } - if (other.hasCostManagementConfig()) { - mergeCostManagementConfig(other.getCostManagementConfig()); - } - 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.hasIdentityServiceConfig()) { - mergeIdentityServiceConfig(other.getIdentityServiceConfig()); - } - if (!other.getSelfLink().isEmpty()) { - selfLink_ = other.selfLink_; - bitField1_ |= 0x00002000; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField1_ |= 0x00004000; - onChanged(); - } - if (!other.getEndpoint().isEmpty()) { - endpoint_ = other.endpoint_; - bitField1_ |= 0x00008000; - onChanged(); - } - if (!other.getInitialClusterVersion().isEmpty()) { - initialClusterVersion_ = other.initialClusterVersion_; - bitField1_ |= 0x00010000; - onChanged(); - } - if (!other.getCurrentMasterVersion().isEmpty()) { - currentMasterVersion_ = other.currentMasterVersion_; - bitField1_ |= 0x00020000; - onChanged(); - } - if (!other.getCurrentNodeVersion().isEmpty()) { - currentNodeVersion_ = other.currentNodeVersion_; - bitField1_ |= 0x00040000; - onChanged(); - } - if (!other.getCreateTime().isEmpty()) { - createTime_ = other.createTime_; - bitField1_ |= 0x00080000; - onChanged(); - } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); - } - if (!other.getStatusMessage().isEmpty()) { - statusMessage_ = other.statusMessage_; - bitField1_ |= 0x00200000; - onChanged(); - } - if (other.getNodeIpv4CidrSize() != 0) { - setNodeIpv4CidrSize(other.getNodeIpv4CidrSize()); - } - if (!other.getServicesIpv4Cidr().isEmpty()) { - servicesIpv4Cidr_ = other.servicesIpv4Cidr_; - bitField1_ |= 0x00800000; - onChanged(); - } - if (!other.instanceGroupUrls_.isEmpty()) { - if (instanceGroupUrls_.isEmpty()) { - instanceGroupUrls_ = other.instanceGroupUrls_; - bitField1_ |= 0x01000000; - } else { - ensureInstanceGroupUrlsIsMutable(); - instanceGroupUrls_.addAll(other.instanceGroupUrls_); - } - onChanged(); - } - if (other.getCurrentNodeCount() != 0) { - setCurrentNodeCount(other.getCurrentNodeCount()); - } - if (!other.getExpireTime().isEmpty()) { - expireTime_ = other.expireTime_; - bitField1_ |= 0x04000000; - onChanged(); - } - if (!other.getLocation().isEmpty()) { - location_ = other.location_; - bitField1_ |= 0x08000000; - onChanged(); - } - if (other.getEnableTpu() != false) { - setEnableTpu(other.getEnableTpu()); - } - if (!other.getTpuIpv4CidrBlock().isEmpty()) { - tpuIpv4CidrBlock_ = other.tpuIpv4CidrBlock_; - bitField1_ |= 0x20000000; - onChanged(); - } - if (other.hasDatabaseEncryption()) { - mergeDatabaseEncryption(other.getDatabaseEncryption()); - } - if (conditionsBuilder_ == null) { - if (!other.conditions_.isEmpty()) { - if (conditions_.isEmpty()) { - conditions_ = other.conditions_; - bitField1_ = (bitField1_ & ~0x80000000); - } else { - ensureConditionsIsMutable(); - conditions_.addAll(other.conditions_); - } - onChanged(); - } - } else { - if (!other.conditions_.isEmpty()) { - if (conditionsBuilder_.isEmpty()) { - conditionsBuilder_.dispose(); - conditionsBuilder_ = null; - conditions_ = other.conditions_; - bitField1_ = (bitField1_ & ~0x80000000); - conditionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getConditionsFieldBuilder() - : null; - } else { - conditionsBuilder_.addAllMessages(other.conditions_); - } - } - } - if (other.hasMaster()) { - mergeMaster(other.getMaster()); - } - if (other.hasAutopilot()) { - mergeAutopilot(other.getAutopilot()); - } - if (!other.getId().isEmpty()) { - id_ = other.id_; - bitField2_ |= 0x00000004; - onChanged(); - } - if (other.hasNodePoolDefaults()) { - mergeNodePoolDefaults(other.getNodePoolDefaults()); - } - if (other.hasLoggingConfig()) { - mergeLoggingConfig(other.getLoggingConfig()); - } - if (other.hasMonitoringConfig()) { - mergeMonitoringConfig(other.getMonitoringConfig()); - } - if (other.hasNodePoolAutoConfig()) { - mergeNodePoolAutoConfig(other.getNodePoolAutoConfig()); - } - if (other.hasProtectConfig()) { - mergeProtectConfig(other.getProtectConfig()); - } - if (!other.getEtag().isEmpty()) { - etag_ = other.etag_; - bitField2_ |= 0x00000100; - onChanged(); - } - if (other.hasFleet()) { - mergeFleet(other.getFleet()); - } - if (other.hasSecurityPostureConfig()) { - mergeSecurityPostureConfig(other.getSecurityPostureConfig()); - } - if (other.hasEnterpriseConfig()) { - mergeEnterpriseConfig(other.getEnterpriseConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - initialNodeCount_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - input.readMessage(getNodeConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage(getMasterAuthFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - loggingService_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - monitoringService_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: - { - network_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 74: - { - clusterIpv4Cidr_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 74 - case 82: - { - input.readMessage(getAddonsConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 82 - case 90: - { - subnetwork_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; - break; - } // case 90 - case 98: - { - com.google.container.v1beta1.NodePool m = - input.readMessage( - com.google.container.v1beta1.NodePool.parser(), extensionRegistry); - if (nodePoolsBuilder_ == null) { - ensureNodePoolsIsMutable(); - nodePools_.add(m); - } else { - nodePoolsBuilder_.addMessage(m); - } - break; - } // case 98 - case 106: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureLocationsIsMutable(); - locations_.add(s); - break; - } // case 106 - case 112: - { - enableKubernetesAlpha_ = input.readBool(); - bitField0_ |= 0x00002000; - break; - } // case 112 - case 122: - { - com.google.protobuf.MapEntry resourceLabels__ = - input.readMessage( - ResourceLabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableResourceLabels() - .getMutableMap() - .put(resourceLabels__.getKey(), resourceLabels__.getValue()); - bitField0_ |= 0x00008000; - break; - } // case 122 - case 130: - { - labelFingerprint_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00010000; - break; - } // case 130 - case 146: - { - input.readMessage(getLegacyAbacFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00020000; - break; - } // case 146 - case 154: - { - input.readMessage(getNetworkPolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00040000; - break; - } // case 154 - case 162: - { - input.readMessage( - getIpAllocationPolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00080000; - break; - } // case 162 - case 178: - { - input.readMessage( - getMasterAuthorizedNetworksConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00100000; - break; - } // case 178 - case 186: - { - input.readMessage( - getMaintenancePolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00200000; - break; - } // case 186 - case 194: - { - input.readMessage( - getBinaryAuthorizationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00400000; - break; - } // case 194 - case 202: - { - input.readMessage( - getPodSecurityPolicyConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00800000; - break; - } // case 202 - case 210: - { - input.readMessage(getAutoscalingFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x01000000; - break; - } // case 210 - case 218: - { - input.readMessage(getNetworkConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x02000000; - break; - } // case 218 - case 224: - { - privateCluster_ = input.readBool(); - bitField0_ |= 0x04000000; - break; - } // case 224 - case 234: - { - masterIpv4CidrBlock_ = input.readStringRequireUtf8(); - bitField0_ |= 0x08000000; - break; - } // case 234 - case 242: - { - input.readMessage( - getDefaultMaxPodsConstraintFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x10000000; - break; - } // case 242 - case 266: - { - input.readMessage( - getResourceUsageExportConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x20000000; - break; - } // case 266 - case 274: - { - input.readMessage( - getAuthenticatorGroupsConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x40000000; - break; - } // case 274 - case 298: - { - input.readMessage( - getPrivateClusterConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x80000000; - break; - } // case 298 - case 306: - { - input.readMessage( - getDatabaseEncryptionFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x40000000; - break; - } // case 306 - case 314: - { - input.readMessage( - getVerticalPodAutoscalingFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000001; - break; - } // case 314 - case 322: - { - input.readMessage(getShieldedNodesFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000002; - break; - } // case 322 - case 330: - { - input.readMessage(getReleaseChannelFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000004; - break; - } // case 330 - case 346: - { - input.readMessage( - getWorkloadIdentityConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000008; - break; - } // case 346 - case 362: - { - input.readMessage( - getCostManagementConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000080; - break; - } // case 362 - case 370: - { - input.readMessage( - getClusterTelemetryFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000100; - break; - } // case 370 - case 378: - { - input.readMessage(getTpuConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000200; - break; - } // case 378 - case 394: - { - input.readMessage( - getNotificationConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000400; - break; - } // case 394 - case 402: - { - input.readMessage( - getConfidentialNodesFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000800; - break; - } // case 402 - case 418: - { - input.readMessage( - getWorkloadCertificatesFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000010; - break; - } // case 418 - case 426: - { - input.readMessage( - getWorkloadAltsConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000040; - break; - } // case 426 - case 434: - { - input.readMessage( - getIdentityServiceConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00001000; - break; - } // case 434 - case 538: - { - input.readMessage( - getMeshCertificatesFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000020; - break; - } // case 538 - case 802: - { - selfLink_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00002000; - break; - } // case 802 - case 810: - { - zone_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00004000; - break; - } // case 810 - case 818: - { - endpoint_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00008000; - break; - } // case 818 - case 826: - { - initialClusterVersion_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00010000; - break; - } // case 826 - case 834: - { - currentMasterVersion_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00020000; - break; - } // case 834 - case 842: - { - currentNodeVersion_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00040000; - break; - } // case 842 - case 850: - { - createTime_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00080000; - break; - } // case 850 - case 856: - { - status_ = input.readEnum(); - bitField1_ |= 0x00100000; - break; - } // case 856 - case 866: - { - statusMessage_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00200000; - break; - } // case 866 - case 872: - { - nodeIpv4CidrSize_ = input.readInt32(); - bitField1_ |= 0x00400000; - break; - } // case 872 - case 882: - { - servicesIpv4Cidr_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00800000; - break; - } // case 882 - case 890: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureInstanceGroupUrlsIsMutable(); - instanceGroupUrls_.add(s); - break; - } // case 890 - case 896: - { - currentNodeCount_ = input.readInt32(); - bitField1_ |= 0x02000000; - break; - } // case 896 - case 906: - { - expireTime_ = input.readStringRequireUtf8(); - bitField1_ |= 0x04000000; - break; - } // case 906 - case 914: - { - location_ = input.readStringRequireUtf8(); - bitField1_ |= 0x08000000; - break; - } // case 914 - case 920: - { - enableTpu_ = input.readBool(); - bitField1_ |= 0x10000000; - break; - } // case 920 - case 930: - { - tpuIpv4CidrBlock_ = input.readStringRequireUtf8(); - bitField1_ |= 0x20000000; - break; - } // case 930 - case 946: - { - com.google.container.v1beta1.StatusCondition m = - input.readMessage( - com.google.container.v1beta1.StatusCondition.parser(), extensionRegistry); - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - conditions_.add(m); - } else { - conditionsBuilder_.addMessage(m); - } - break; - } // case 946 - case 994: - { - input.readMessage(getMasterFieldBuilder().getBuilder(), extensionRegistry); - bitField2_ |= 0x00000001; - break; - } // case 994 - case 1026: - { - input.readMessage(getAutopilotFieldBuilder().getBuilder(), extensionRegistry); - bitField2_ |= 0x00000002; - break; - } // case 1026 - case 1034: - { - id_ = input.readStringRequireUtf8(); - bitField2_ |= 0x00000004; - break; - } // case 1034 - case 1050: - { - input.readMessage( - getNodePoolDefaultsFieldBuilder().getBuilder(), extensionRegistry); - bitField2_ |= 0x00000008; - break; - } // case 1050 - case 1058: - { - input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField2_ |= 0x00000010; - break; - } // case 1058 - case 1066: - { - input.readMessage( - getMonitoringConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField2_ |= 0x00000020; - break; - } // case 1066 - case 1090: - { - input.readMessage( - getNodePoolAutoConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField2_ |= 0x00000040; - break; - } // case 1090 - case 1098: - { - input.readMessage(getProtectConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField2_ |= 0x00000080; - break; - } // case 1098 - case 1114: - { - etag_ = input.readStringRequireUtf8(); - bitField2_ |= 0x00000100; - break; - } // case 1114 - case 1122: - { - input.readMessage(getFleetFieldBuilder().getBuilder(), extensionRegistry); - bitField2_ |= 0x00000200; - break; - } // case 1122 - case 1146: - { - input.readMessage( - getEnableK8SBetaApisFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; - break; - } // case 1146 - case 1162: - { - input.readMessage( - getSecurityPostureConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField2_ |= 0x00000400; - break; - } // case 1162 - case 1194: - { - input.readMessage( - getEnterpriseConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField2_ |= 0x00000800; - break; - } // case 1194 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - private int bitField1_; - private int bitField2_; - - 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; - bitField0_ |= 0x00000001; - 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(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * An optional description of this cluster.
-     * 
- * - * string description = 2; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - 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]; - * - * @deprecated google.container.v1beta1.Cluster.initial_node_count is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1936 - * @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]; - * - * @deprecated google.container.v1beta1.Cluster.initial_node_count is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1936 - * @param value The initialNodeCount to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setInitialNodeCount(int value) { - - initialNodeCount_ = value; - bitField0_ |= 0x00000004; - 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]; - * - * @deprecated google.container.v1beta1.Cluster.initial_node_count is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1936 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearInitialNodeCount() { - bitField0_ = (bitField0_ & ~0x00000004); - 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]; - * - * @deprecated google.container.v1beta1.Cluster.node_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1949 - * @return Whether the nodeConfig field is set. - */ - @java.lang.Deprecated - public boolean hasNodeConfig() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-     * 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]; - * - * @deprecated google.container.v1beta1.Cluster.node_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1949 - * @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; - } else { - nodeConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - 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(); - } else { - nodeConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - 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 (((bitField0_ & 0x00000008) != 0) - && nodeConfig_ != null - && nodeConfig_ != com.google.container.v1beta1.NodeConfig.getDefaultInstance()) { - getNodeConfigBuilder().mergeFrom(value); - } else { - nodeConfig_ = value; - } - } else { - nodeConfigBuilder_.mergeFrom(value); - } - if (nodeConfig_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - 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() { - bitField0_ = (bitField0_ & ~0x00000008); - nodeConfig_ = null; - if (nodeConfigBuilder_ != null) { - nodeConfigBuilder_.dispose(); - nodeConfigBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000008; - 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 ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-     * 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; - } else { - masterAuthBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - 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(); - } else { - masterAuthBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - 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 (((bitField0_ & 0x00000010) != 0) - && masterAuth_ != null - && masterAuth_ != com.google.container.v1beta1.MasterAuth.getDefaultInstance()) { - getMasterAuthBuilder().mergeFrom(value); - } else { - masterAuth_ = value; - } - } else { - masterAuthBuilder_.mergeFrom(value); - } - if (masterAuth_ != null) { - bitField0_ |= 0x00000010; - onChanged(); - } - 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() { - bitField0_ = (bitField0_ & ~0x00000010); - masterAuth_ = null; - if (masterAuthBuilder_ != null) { - masterAuthBuilder_.dispose(); - masterAuthBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000010; - 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; - bitField0_ |= 0x00000020; - 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(); - bitField0_ = (bitField0_ & ~0x00000020); - 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; - bitField0_ |= 0x00000020; - 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; - bitField0_ |= 0x00000040; - 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(); - bitField0_ = (bitField0_ & ~0x00000040); - 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; - bitField0_ |= 0x00000040; - 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; - bitField0_ |= 0x00000080; - 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(); - bitField0_ = (bitField0_ & ~0x00000080); - 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; - bitField0_ |= 0x00000080; - 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; - bitField0_ |= 0x00000100; - 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(); - bitField0_ = (bitField0_ & ~0x00000100); - 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; - bitField0_ |= 0x00000100; - 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 ((bitField0_ & 0x00000200) != 0); - } - /** - * - * - *
-     * 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; - } else { - addonsConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000200; - onChanged(); - 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(); - } else { - addonsConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000200; - onChanged(); - 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 (((bitField0_ & 0x00000200) != 0) - && addonsConfig_ != null - && addonsConfig_ != com.google.container.v1beta1.AddonsConfig.getDefaultInstance()) { - getAddonsConfigBuilder().mergeFrom(value); - } else { - addonsConfig_ = value; - } - } else { - addonsConfigBuilder_.mergeFrom(value); - } - if (addonsConfig_ != null) { - bitField0_ |= 0x00000200; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1beta1.AddonsConfig addons_config = 10; - */ - public Builder clearAddonsConfig() { - bitField0_ = (bitField0_ & ~0x00000200); - addonsConfig_ = null; - if (addonsConfigBuilder_ != null) { - addonsConfigBuilder_.dispose(); - addonsConfigBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000200; - 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; - bitField0_ |= 0x00000400; - 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(); - bitField0_ = (bitField0_ & ~0x00000400); - 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; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - - private java.util.List nodePools_ = - java.util.Collections.emptyList(); - - private void ensureNodePoolsIsMutable() { - if (!((bitField0_ & 0x00000800) != 0)) { - nodePools_ = new java.util.ArrayList(nodePools_); - bitField0_ |= 0x00000800; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.NodePool, - com.google.container.v1beta1.NodePool.Builder, - com.google.container.v1beta1.NodePoolOrBuilder> - nodePoolsBuilder_; - - /** - * - * - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - public java.util.List getNodePoolsList() { - if (nodePoolsBuilder_ == null) { - return java.util.Collections.unmodifiableList(nodePools_); - } else { - return nodePoolsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - public int getNodePoolsCount() { - if (nodePoolsBuilder_ == null) { - return nodePools_.size(); - } else { - return nodePoolsBuilder_.getCount(); - } - } - /** - * - * - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - public com.google.container.v1beta1.NodePool getNodePools(int index) { - if (nodePoolsBuilder_ == null) { - return nodePools_.get(index); - } else { - return nodePoolsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - public Builder setNodePools(int index, com.google.container.v1beta1.NodePool value) { - if (nodePoolsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodePoolsIsMutable(); - nodePools_.set(index, value); - onChanged(); - } else { - nodePoolsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - public Builder setNodePools( - int index, com.google.container.v1beta1.NodePool.Builder builderForValue) { - if (nodePoolsBuilder_ == null) { - ensureNodePoolsIsMutable(); - nodePools_.set(index, builderForValue.build()); - onChanged(); - } else { - nodePoolsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - public Builder addNodePools(com.google.container.v1beta1.NodePool value) { - if (nodePoolsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodePoolsIsMutable(); - nodePools_.add(value); - onChanged(); - } else { - nodePoolsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - public Builder addNodePools(int index, com.google.container.v1beta1.NodePool value) { - if (nodePoolsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodePoolsIsMutable(); - nodePools_.add(index, value); - onChanged(); - } else { - nodePoolsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - public Builder addNodePools(com.google.container.v1beta1.NodePool.Builder builderForValue) { - if (nodePoolsBuilder_ == null) { - ensureNodePoolsIsMutable(); - nodePools_.add(builderForValue.build()); - onChanged(); - } else { - nodePoolsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - public Builder addNodePools( - int index, com.google.container.v1beta1.NodePool.Builder builderForValue) { - if (nodePoolsBuilder_ == null) { - ensureNodePoolsIsMutable(); - nodePools_.add(index, builderForValue.build()); - onChanged(); - } else { - nodePoolsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - public Builder addAllNodePools( - java.lang.Iterable values) { - if (nodePoolsBuilder_ == null) { - ensureNodePoolsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodePools_); - onChanged(); - } else { - nodePoolsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - public Builder clearNodePools() { - if (nodePoolsBuilder_ == null) { - nodePools_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); - onChanged(); - } else { - nodePoolsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - public Builder removeNodePools(int index) { - if (nodePoolsBuilder_ == null) { - ensureNodePoolsIsMutable(); - nodePools_.remove(index); - onChanged(); - } else { - nodePoolsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - public com.google.container.v1beta1.NodePool.Builder getNodePoolsBuilder(int index) { - return getNodePoolsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - public com.google.container.v1beta1.NodePoolOrBuilder getNodePoolsOrBuilder(int index) { - if (nodePoolsBuilder_ == null) { - return nodePools_.get(index); - } else { - return nodePoolsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - public java.util.List - getNodePoolsOrBuilderList() { - if (nodePoolsBuilder_ != null) { - return nodePoolsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(nodePools_); - } - } - /** - * - * - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - public com.google.container.v1beta1.NodePool.Builder addNodePoolsBuilder() { - return getNodePoolsFieldBuilder() - .addBuilder(com.google.container.v1beta1.NodePool.getDefaultInstance()); - } - /** - * - * - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - public com.google.container.v1beta1.NodePool.Builder addNodePoolsBuilder(int index) { - return getNodePoolsFieldBuilder() - .addBuilder(index, com.google.container.v1beta1.NodePool.getDefaultInstance()); - } - /** - * - * - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1beta1.NodePool node_pools = 12; - */ - public java.util.List getNodePoolsBuilderList() { - return getNodePoolsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.NodePool, - com.google.container.v1beta1.NodePool.Builder, - com.google.container.v1beta1.NodePoolOrBuilder> - getNodePoolsFieldBuilder() { - if (nodePoolsBuilder_ == null) { - nodePoolsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.NodePool, - com.google.container.v1beta1.NodePool.Builder, - com.google.container.v1beta1.NodePoolOrBuilder>( - nodePools_, ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean()); - nodePools_ = null; - } - return nodePoolsBuilder_; - } - - private com.google.protobuf.LazyStringArrayList locations_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureLocationsIsMutable() { - if (!locations_.isModifiable()) { - locations_ = new com.google.protobuf.LazyStringArrayList(locations_); - } - bitField0_ |= 0x00001000; - } - /** - * - * - *
-     * 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() { - locations_.makeImmutable(); - 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); - } - /** - * - * - *
-     * 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); - bitField0_ |= 0x00001000; - 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); - bitField0_ |= 0x00001000; - 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_); - bitField0_ |= 0x00001000; - 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.emptyList(); - bitField0_ = (bitField0_ & ~0x00001000); - ; - 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); - bitField0_ |= 0x00001000; - 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; - bitField0_ |= 0x00002000; - 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() { - bitField0_ = (bitField0_ & ~0x00002000); - enableKubernetesAlpha_ = false; - onChanged(); - return this; - } - - private com.google.container.v1beta1.K8sBetaAPIConfig enableK8SBetaApis_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.K8sBetaAPIConfig, - com.google.container.v1beta1.K8sBetaAPIConfig.Builder, - com.google.container.v1beta1.K8sBetaAPIConfigOrBuilder> - enableK8SBetaApisBuilder_; - /** - * - * - *
-     * Kubernetes open source beta apis enabled on the cluster. Only beta apis.
-     * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; - * - * @return Whether the enableK8sBetaApis field is set. - */ - public boolean hasEnableK8SBetaApis() { - return ((bitField0_ & 0x00004000) != 0); - } - /** - * - * - *
-     * Kubernetes open source beta apis enabled on the cluster. Only beta apis.
-     * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; - * - * @return The enableK8sBetaApis. - */ - public com.google.container.v1beta1.K8sBetaAPIConfig getEnableK8SBetaApis() { - if (enableK8SBetaApisBuilder_ == null) { - return enableK8SBetaApis_ == null - ? com.google.container.v1beta1.K8sBetaAPIConfig.getDefaultInstance() - : enableK8SBetaApis_; - } else { - return enableK8SBetaApisBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Kubernetes open source beta apis enabled on the cluster. Only beta apis.
-     * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; - */ - public Builder setEnableK8SBetaApis(com.google.container.v1beta1.K8sBetaAPIConfig value) { - if (enableK8SBetaApisBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - enableK8SBetaApis_ = value; - } else { - enableK8SBetaApisBuilder_.setMessage(value); - } - bitField0_ |= 0x00004000; - onChanged(); - return this; - } - /** - * - * - *
-     * Kubernetes open source beta apis enabled on the cluster. Only beta apis.
-     * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; - */ - public Builder setEnableK8SBetaApis( - com.google.container.v1beta1.K8sBetaAPIConfig.Builder builderForValue) { - if (enableK8SBetaApisBuilder_ == null) { - enableK8SBetaApis_ = builderForValue.build(); - } else { - enableK8SBetaApisBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00004000; - onChanged(); - return this; - } - /** - * - * - *
-     * Kubernetes open source beta apis enabled on the cluster. Only beta apis.
-     * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; - */ - public Builder mergeEnableK8SBetaApis(com.google.container.v1beta1.K8sBetaAPIConfig value) { - if (enableK8SBetaApisBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) - && enableK8SBetaApis_ != null - && enableK8SBetaApis_ - != com.google.container.v1beta1.K8sBetaAPIConfig.getDefaultInstance()) { - getEnableK8SBetaApisBuilder().mergeFrom(value); - } else { - enableK8SBetaApis_ = value; - } - } else { - enableK8SBetaApisBuilder_.mergeFrom(value); - } - if (enableK8SBetaApis_ != null) { - bitField0_ |= 0x00004000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Kubernetes open source beta apis enabled on the cluster. Only beta apis.
-     * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; - */ - public Builder clearEnableK8SBetaApis() { - bitField0_ = (bitField0_ & ~0x00004000); - enableK8SBetaApis_ = null; - if (enableK8SBetaApisBuilder_ != null) { - enableK8SBetaApisBuilder_.dispose(); - enableK8SBetaApisBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Kubernetes open source beta apis enabled on the cluster. Only beta apis.
-     * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; - */ - public com.google.container.v1beta1.K8sBetaAPIConfig.Builder getEnableK8SBetaApisBuilder() { - bitField0_ |= 0x00004000; - onChanged(); - return getEnableK8SBetaApisFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Kubernetes open source beta apis enabled on the cluster. Only beta apis.
-     * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; - */ - public com.google.container.v1beta1.K8sBetaAPIConfigOrBuilder getEnableK8SBetaApisOrBuilder() { - if (enableK8SBetaApisBuilder_ != null) { - return enableK8SBetaApisBuilder_.getMessageOrBuilder(); - } else { - return enableK8SBetaApis_ == null - ? com.google.container.v1beta1.K8sBetaAPIConfig.getDefaultInstance() - : enableK8SBetaApis_; - } - } - /** - * - * - *
-     * Kubernetes open source beta apis enabled on the cluster. Only beta apis.
-     * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.K8sBetaAPIConfig, - com.google.container.v1beta1.K8sBetaAPIConfig.Builder, - com.google.container.v1beta1.K8sBetaAPIConfigOrBuilder> - getEnableK8SBetaApisFieldBuilder() { - if (enableK8SBetaApisBuilder_ == null) { - enableK8SBetaApisBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.K8sBetaAPIConfig, - com.google.container.v1beta1.K8sBetaAPIConfig.Builder, - com.google.container.v1beta1.K8sBetaAPIConfigOrBuilder>( - getEnableK8SBetaApis(), getParentForChildren(), isClean()); - enableK8SBetaApis_ = null; - } - return enableK8SBetaApisBuilder_; - } - - 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() { - if (resourceLabels_ == null) { - resourceLabels_ = - com.google.protobuf.MapField.newMapField(ResourceLabelsDefaultEntryHolder.defaultEntry); - } - if (!resourceLabels_.isMutable()) { - resourceLabels_ = resourceLabels_.copy(); - } - bitField0_ |= 0x00008000; - onChanged(); - 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 NullPointerException("map key"); - } - 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 /* nullable */ java.lang.String getResourceLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - 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 NullPointerException("map key"); - } - java.util.Map map = internalGetResourceLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearResourceLabels() { - bitField0_ = (bitField0_ & ~0x00008000); - 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 NullPointerException("map key"); - } - internalGetMutableResourceLabels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableResourceLabels() { - bitField0_ |= 0x00008000; - 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 NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableResourceLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00008000; - 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); - bitField0_ |= 0x00008000; - 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; - bitField0_ |= 0x00010000; - 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(); - bitField0_ = (bitField0_ & ~0x00010000); - 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; - bitField0_ |= 0x00010000; - 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 ((bitField0_ & 0x00020000) != 0); - } - /** - * - * - *
-     * 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; - } else { - legacyAbacBuilder_.setMessage(value); - } - bitField0_ |= 0x00020000; - onChanged(); - 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(); - } else { - legacyAbacBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00020000; - onChanged(); - 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 (((bitField0_ & 0x00020000) != 0) - && legacyAbac_ != null - && legacyAbac_ != com.google.container.v1beta1.LegacyAbac.getDefaultInstance()) { - getLegacyAbacBuilder().mergeFrom(value); - } else { - legacyAbac_ = value; - } - } else { - legacyAbacBuilder_.mergeFrom(value); - } - if (legacyAbac_ != null) { - bitField0_ |= 0x00020000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for the legacy ABAC authorization mode.
-     * 
- * - * .google.container.v1beta1.LegacyAbac legacy_abac = 18; - */ - public Builder clearLegacyAbac() { - bitField0_ = (bitField0_ & ~0x00020000); - legacyAbac_ = null; - if (legacyAbacBuilder_ != null) { - legacyAbacBuilder_.dispose(); - legacyAbacBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the legacy ABAC authorization mode.
-     * 
- * - * .google.container.v1beta1.LegacyAbac legacy_abac = 18; - */ - public com.google.container.v1beta1.LegacyAbac.Builder getLegacyAbacBuilder() { - bitField0_ |= 0x00020000; - 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 ((bitField0_ & 0x00040000) != 0); - } - /** - * - * - *
-     * 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; - } else { - networkPolicyBuilder_.setMessage(value); - } - bitField0_ |= 0x00040000; - onChanged(); - 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(); - } else { - networkPolicyBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00040000; - onChanged(); - 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 (((bitField0_ & 0x00040000) != 0) - && networkPolicy_ != null - && networkPolicy_ != com.google.container.v1beta1.NetworkPolicy.getDefaultInstance()) { - getNetworkPolicyBuilder().mergeFrom(value); - } else { - networkPolicy_ = value; - } - } else { - networkPolicyBuilder_.mergeFrom(value); - } - if (networkPolicy_ != null) { - bitField0_ |= 0x00040000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1beta1.NetworkPolicy network_policy = 19; - */ - public Builder clearNetworkPolicy() { - bitField0_ = (bitField0_ & ~0x00040000); - networkPolicy_ = null; - if (networkPolicyBuilder_ != null) { - networkPolicyBuilder_.dispose(); - networkPolicyBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1beta1.NetworkPolicy network_policy = 19; - */ - public com.google.container.v1beta1.NetworkPolicy.Builder getNetworkPolicyBuilder() { - bitField0_ |= 0x00040000; - 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 ((bitField0_ & 0x00080000) != 0); - } - /** - * - * - *
-     * 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; - } else { - ipAllocationPolicyBuilder_.setMessage(value); - } - bitField0_ |= 0x00080000; - onChanged(); - 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(); - } else { - ipAllocationPolicyBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00080000; - onChanged(); - 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 (((bitField0_ & 0x00080000) != 0) - && ipAllocationPolicy_ != null - && ipAllocationPolicy_ - != com.google.container.v1beta1.IPAllocationPolicy.getDefaultInstance()) { - getIpAllocationPolicyBuilder().mergeFrom(value); - } else { - ipAllocationPolicy_ = value; - } - } else { - ipAllocationPolicyBuilder_.mergeFrom(value); - } - if (ipAllocationPolicy_ != null) { - bitField0_ |= 0x00080000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for cluster IP allocation.
-     * 
- * - * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; - */ - public Builder clearIpAllocationPolicy() { - bitField0_ = (bitField0_ & ~0x00080000); - ipAllocationPolicy_ = null; - if (ipAllocationPolicyBuilder_ != null) { - ipAllocationPolicyBuilder_.dispose(); - ipAllocationPolicyBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for cluster IP allocation.
-     * 
- * - * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; - */ - public com.google.container.v1beta1.IPAllocationPolicy.Builder getIpAllocationPolicyBuilder() { - bitField0_ |= 0x00080000; - 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 ((bitField0_ & 0x00100000) != 0); - } - /** - * - * - *
-     * 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; - } else { - masterAuthorizedNetworksConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00100000; - onChanged(); - 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(); - } else { - masterAuthorizedNetworksConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00100000; - onChanged(); - 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 (((bitField0_ & 0x00100000) != 0) - && masterAuthorizedNetworksConfig_ != null - && masterAuthorizedNetworksConfig_ - != com.google.container.v1beta1.MasterAuthorizedNetworksConfig - .getDefaultInstance()) { - getMasterAuthorizedNetworksConfigBuilder().mergeFrom(value); - } else { - masterAuthorizedNetworksConfig_ = value; - } - } else { - masterAuthorizedNetworksConfigBuilder_.mergeFrom(value); - } - if (masterAuthorizedNetworksConfig_ != null) { - bitField0_ |= 0x00100000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The configuration options for master authorized networks feature.
-     * 
- * - * - * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - * - */ - public Builder clearMasterAuthorizedNetworksConfig() { - bitField0_ = (bitField0_ & ~0x00100000); - masterAuthorizedNetworksConfig_ = null; - if (masterAuthorizedNetworksConfigBuilder_ != null) { - masterAuthorizedNetworksConfigBuilder_.dispose(); - masterAuthorizedNetworksConfigBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00100000; - 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 ((bitField0_ & 0x00200000) != 0); - } - /** - * - * - *
-     * 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; - } else { - maintenancePolicyBuilder_.setMessage(value); - } - bitField0_ |= 0x00200000; - onChanged(); - 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(); - } else { - maintenancePolicyBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00200000; - onChanged(); - 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 (((bitField0_ & 0x00200000) != 0) - && maintenancePolicy_ != null - && maintenancePolicy_ - != com.google.container.v1beta1.MaintenancePolicy.getDefaultInstance()) { - getMaintenancePolicyBuilder().mergeFrom(value); - } else { - maintenancePolicy_ = value; - } - } else { - maintenancePolicyBuilder_.mergeFrom(value); - } - if (maintenancePolicy_ != null) { - bitField0_ |= 0x00200000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configure the maintenance policy for this cluster.
-     * 
- * - * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; - */ - public Builder clearMaintenancePolicy() { - bitField0_ = (bitField0_ & ~0x00200000); - maintenancePolicy_ = null; - if (maintenancePolicyBuilder_ != null) { - maintenancePolicyBuilder_.dispose(); - maintenancePolicyBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configure the maintenance policy for this cluster.
-     * 
- * - * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; - */ - public com.google.container.v1beta1.MaintenancePolicy.Builder getMaintenancePolicyBuilder() { - bitField0_ |= 0x00200000; - 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 ((bitField0_ & 0x00400000) != 0); - } - /** - * - * - *
-     * 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; - } else { - binaryAuthorizationBuilder_.setMessage(value); - } - bitField0_ |= 0x00400000; - onChanged(); - 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(); - } else { - binaryAuthorizationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00400000; - onChanged(); - 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 (((bitField0_ & 0x00400000) != 0) - && binaryAuthorization_ != null - && binaryAuthorization_ - != com.google.container.v1beta1.BinaryAuthorization.getDefaultInstance()) { - getBinaryAuthorizationBuilder().mergeFrom(value); - } else { - binaryAuthorization_ = value; - } - } else { - binaryAuthorizationBuilder_.mergeFrom(value); - } - if (binaryAuthorization_ != null) { - bitField0_ |= 0x00400000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for Binary Authorization.
-     * 
- * - * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; - */ - public Builder clearBinaryAuthorization() { - bitField0_ = (bitField0_ & ~0x00400000); - binaryAuthorization_ = null; - if (binaryAuthorizationBuilder_ != null) { - binaryAuthorizationBuilder_.dispose(); - binaryAuthorizationBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for Binary Authorization.
-     * 
- * - * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; - */ - public com.google.container.v1beta1.BinaryAuthorization.Builder - getBinaryAuthorizationBuilder() { - bitField0_ |= 0x00400000; - 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 ((bitField0_ & 0x00800000) != 0); - } - /** - * - * - *
-     * 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; - } else { - podSecurityPolicyConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00800000; - onChanged(); - 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(); - } else { - podSecurityPolicyConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00800000; - onChanged(); - 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 (((bitField0_ & 0x00800000) != 0) - && podSecurityPolicyConfig_ != null - && podSecurityPolicyConfig_ - != com.google.container.v1beta1.PodSecurityPolicyConfig.getDefaultInstance()) { - getPodSecurityPolicyConfigBuilder().mergeFrom(value); - } else { - podSecurityPolicyConfig_ = value; - } - } else { - podSecurityPolicyConfigBuilder_.mergeFrom(value); - } - if (podSecurityPolicyConfig_ != null) { - bitField0_ |= 0x00800000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for the PodSecurityPolicy feature.
-     * 
- * - * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; - * - */ - public Builder clearPodSecurityPolicyConfig() { - bitField0_ = (bitField0_ & ~0x00800000); - podSecurityPolicyConfig_ = null; - if (podSecurityPolicyConfigBuilder_ != null) { - podSecurityPolicyConfigBuilder_.dispose(); - podSecurityPolicyConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the PodSecurityPolicy feature.
-     * 
- * - * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; - * - */ - public com.google.container.v1beta1.PodSecurityPolicyConfig.Builder - getPodSecurityPolicyConfigBuilder() { - bitField0_ |= 0x00800000; - 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 ((bitField0_ & 0x01000000) != 0); - } - /** - * - * - *
-     * 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; - } else { - autoscalingBuilder_.setMessage(value); - } - bitField0_ |= 0x01000000; - onChanged(); - 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(); - } else { - autoscalingBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x01000000; - onChanged(); - 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 (((bitField0_ & 0x01000000) != 0) - && autoscaling_ != null - && autoscaling_ - != com.google.container.v1beta1.ClusterAutoscaling.getDefaultInstance()) { - getAutoscalingBuilder().mergeFrom(value); - } else { - autoscaling_ = value; - } - } else { - autoscalingBuilder_.mergeFrom(value); - } - if (autoscaling_ != null) { - bitField0_ |= 0x01000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; - */ - public Builder clearAutoscaling() { - bitField0_ = (bitField0_ & ~0x01000000); - autoscaling_ = null; - if (autoscalingBuilder_ != null) { - autoscalingBuilder_.dispose(); - autoscalingBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; - */ - public com.google.container.v1beta1.ClusterAutoscaling.Builder getAutoscalingBuilder() { - bitField0_ |= 0x01000000; - 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 ((bitField0_ & 0x02000000) != 0); - } - /** - * - * - *
-     * 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; - } else { - networkConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x02000000; - onChanged(); - 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(); - } else { - networkConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x02000000; - onChanged(); - 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 (((bitField0_ & 0x02000000) != 0) - && networkConfig_ != null - && networkConfig_ != com.google.container.v1beta1.NetworkConfig.getDefaultInstance()) { - getNetworkConfigBuilder().mergeFrom(value); - } else { - networkConfig_ = value; - } - } else { - networkConfigBuilder_.mergeFrom(value); - } - if (networkConfig_ != null) { - bitField0_ |= 0x02000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for cluster networking.
-     * 
- * - * .google.container.v1beta1.NetworkConfig network_config = 27; - */ - public Builder clearNetworkConfig() { - bitField0_ = (bitField0_ & ~0x02000000); - networkConfig_ = null; - if (networkConfigBuilder_ != null) { - networkConfigBuilder_.dispose(); - networkConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for cluster networking.
-     * 
- * - * .google.container.v1beta1.NetworkConfig network_config = 27; - */ - public com.google.container.v1beta1.NetworkConfig.Builder getNetworkConfigBuilder() { - bitField0_ |= 0x02000000; - 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]; - * - * @deprecated google.container.v1beta1.Cluster.private_cluster is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2074 - * @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]; - * - * @deprecated google.container.v1beta1.Cluster.private_cluster is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2074 - * @param value The privateCluster to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setPrivateCluster(boolean value) { - - privateCluster_ = value; - bitField0_ |= 0x04000000; - 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]; - * - * @deprecated google.container.v1beta1.Cluster.private_cluster is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2074 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearPrivateCluster() { - bitField0_ = (bitField0_ & ~0x04000000); - 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]; - * - * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2081 - * @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]; - * - * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2081 - * @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]; - * - * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2081 - * @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; - bitField0_ |= 0x08000000; - 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]; - * - * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2081 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearMasterIpv4CidrBlock() { - masterIpv4CidrBlock_ = getDefaultInstance().getMasterIpv4CidrBlock(); - bitField0_ = (bitField0_ & ~0x08000000); - 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]; - * - * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2081 - * @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; - bitField0_ |= 0x08000000; - 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 ((bitField0_ & 0x10000000) != 0); - } - /** - * - * - *
-     * 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; - } else { - defaultMaxPodsConstraintBuilder_.setMessage(value); - } - bitField0_ |= 0x10000000; - onChanged(); - 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(); - } else { - defaultMaxPodsConstraintBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x10000000; - onChanged(); - 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 (((bitField0_ & 0x10000000) != 0) - && defaultMaxPodsConstraint_ != null - && defaultMaxPodsConstraint_ - != com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance()) { - getDefaultMaxPodsConstraintBuilder().mergeFrom(value); - } else { - defaultMaxPodsConstraint_ = value; - } - } else { - defaultMaxPodsConstraintBuilder_.mergeFrom(value); - } - if (defaultMaxPodsConstraint_ != null) { - bitField0_ |= 0x10000000; - onChanged(); - } - 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() { - bitField0_ = (bitField0_ & ~0x10000000); - defaultMaxPodsConstraint_ = null; - if (defaultMaxPodsConstraintBuilder_ != null) { - defaultMaxPodsConstraintBuilder_.dispose(); - defaultMaxPodsConstraintBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x10000000; - 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 ((bitField0_ & 0x20000000) != 0); - } - /** - * - * - *
-     * 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; - } else { - resourceUsageExportConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x20000000; - onChanged(); - 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(); - } else { - resourceUsageExportConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x20000000; - onChanged(); - 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 (((bitField0_ & 0x20000000) != 0) - && resourceUsageExportConfig_ != null - && resourceUsageExportConfig_ - != com.google.container.v1beta1.ResourceUsageExportConfig.getDefaultInstance()) { - getResourceUsageExportConfigBuilder().mergeFrom(value); - } else { - resourceUsageExportConfig_ = value; - } - } else { - resourceUsageExportConfigBuilder_.mergeFrom(value); - } - if (resourceUsageExportConfig_ != null) { - bitField0_ |= 0x20000000; - onChanged(); - } - 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() { - bitField0_ = (bitField0_ & ~0x20000000); - resourceUsageExportConfig_ = null; - if (resourceUsageExportConfigBuilder_ != null) { - resourceUsageExportConfigBuilder_.dispose(); - resourceUsageExportConfigBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x20000000; - 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 ((bitField0_ & 0x40000000) != 0); - } - /** - * - * - *
-     * 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; - } else { - authenticatorGroupsConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x40000000; - onChanged(); - 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(); - } else { - authenticatorGroupsConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x40000000; - onChanged(); - 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 (((bitField0_ & 0x40000000) != 0) - && authenticatorGroupsConfig_ != null - && authenticatorGroupsConfig_ - != com.google.container.v1beta1.AuthenticatorGroupsConfig.getDefaultInstance()) { - getAuthenticatorGroupsConfigBuilder().mergeFrom(value); - } else { - authenticatorGroupsConfig_ = value; - } - } else { - authenticatorGroupsConfigBuilder_.mergeFrom(value); - } - if (authenticatorGroupsConfig_ != null) { - bitField0_ |= 0x40000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration controlling RBAC group membership information.
-     * 
- * - * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - * - */ - public Builder clearAuthenticatorGroupsConfig() { - bitField0_ = (bitField0_ & ~0x40000000); - authenticatorGroupsConfig_ = null; - if (authenticatorGroupsConfigBuilder_ != null) { - authenticatorGroupsConfigBuilder_.dispose(); - authenticatorGroupsConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration controlling RBAC group membership information.
-     * 
- * - * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - * - */ - public com.google.container.v1beta1.AuthenticatorGroupsConfig.Builder - getAuthenticatorGroupsConfigBuilder() { - bitField0_ |= 0x40000000; - 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 ((bitField0_ & 0x80000000) != 0); - } - /** - * - * - *
-     * 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; - } else { - privateClusterConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x80000000; - onChanged(); - 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(); - } else { - privateClusterConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x80000000; - onChanged(); - 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 (((bitField0_ & 0x80000000) != 0) - && privateClusterConfig_ != null - && privateClusterConfig_ - != com.google.container.v1beta1.PrivateClusterConfig.getDefaultInstance()) { - getPrivateClusterConfigBuilder().mergeFrom(value); - } else { - privateClusterConfig_ = value; - } - } else { - privateClusterConfigBuilder_.mergeFrom(value); - } - if (privateClusterConfig_ != null) { - bitField0_ |= 0x80000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for private cluster.
-     * 
- * - * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; - */ - public Builder clearPrivateClusterConfig() { - bitField0_ = (bitField0_ & ~0x80000000); - privateClusterConfig_ = null; - if (privateClusterConfigBuilder_ != null) { - privateClusterConfigBuilder_.dispose(); - privateClusterConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for private cluster.
-     * 
- * - * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; - */ - public com.google.container.v1beta1.PrivateClusterConfig.Builder - getPrivateClusterConfigBuilder() { - bitField0_ |= 0x80000000; - 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 ((bitField1_ & 0x00000001) != 0); - } - /** - * - * - *
-     * 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; - } else { - verticalPodAutoscalingBuilder_.setMessage(value); - } - bitField1_ |= 0x00000001; - onChanged(); - 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(); - } else { - verticalPodAutoscalingBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000001; - onChanged(); - 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 (((bitField1_ & 0x00000001) != 0) - && verticalPodAutoscaling_ != null - && verticalPodAutoscaling_ - != com.google.container.v1beta1.VerticalPodAutoscaling.getDefaultInstance()) { - getVerticalPodAutoscalingBuilder().mergeFrom(value); - } else { - verticalPodAutoscaling_ = value; - } - } else { - verticalPodAutoscalingBuilder_.mergeFrom(value); - } - if (verticalPodAutoscaling_ != null) { - bitField1_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - */ - public Builder clearVerticalPodAutoscaling() { - bitField1_ = (bitField1_ & ~0x00000001); - verticalPodAutoscaling_ = null; - if (verticalPodAutoscalingBuilder_ != null) { - verticalPodAutoscalingBuilder_.dispose(); - verticalPodAutoscalingBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - */ - public com.google.container.v1beta1.VerticalPodAutoscaling.Builder - getVerticalPodAutoscalingBuilder() { - bitField1_ |= 0x00000001; - 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 ((bitField1_ & 0x00000002) != 0); - } - /** - * - * - *
-     * 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; - } else { - shieldedNodesBuilder_.setMessage(value); - } - bitField1_ |= 0x00000002; - onChanged(); - 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(); - } else { - shieldedNodesBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000002; - onChanged(); - 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 (((bitField1_ & 0x00000002) != 0) - && shieldedNodes_ != null - && shieldedNodes_ != com.google.container.v1beta1.ShieldedNodes.getDefaultInstance()) { - getShieldedNodesBuilder().mergeFrom(value); - } else { - shieldedNodes_ = value; - } - } else { - shieldedNodesBuilder_.mergeFrom(value); - } - if (shieldedNodes_ != null) { - bitField1_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Shielded Nodes configuration.
-     * 
- * - * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; - */ - public Builder clearShieldedNodes() { - bitField1_ = (bitField1_ & ~0x00000002); - shieldedNodes_ = null; - if (shieldedNodesBuilder_ != null) { - shieldedNodesBuilder_.dispose(); - shieldedNodesBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Shielded Nodes configuration.
-     * 
- * - * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; - */ - public com.google.container.v1beta1.ShieldedNodes.Builder getShieldedNodesBuilder() { - bitField1_ |= 0x00000002; - 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. If left unspecified on cluster creation and
-     * a version is specified, the cluster is enrolled in the most mature release
-     * channel where the version is available (first checking STABLE, then
-     * REGULAR, and finally RAPID). Otherwise, if no release channel
-     * configuration and no version is specified, the cluster is enrolled in the
-     * REGULAR channel with its default version.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 41; - * - * @return Whether the releaseChannel field is set. - */ - public boolean hasReleaseChannel() { - return ((bitField1_ & 0x00000004) != 0); - } - /** - * - * - *
-     * Release channel configuration. If left unspecified on cluster creation and
-     * a version is specified, the cluster is enrolled in the most mature release
-     * channel where the version is available (first checking STABLE, then
-     * REGULAR, and finally RAPID). Otherwise, if no release channel
-     * configuration and no version is specified, the cluster is enrolled in the
-     * REGULAR channel with its default version.
-     * 
- * - * .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. If left unspecified on cluster creation and
-     * a version is specified, the cluster is enrolled in the most mature release
-     * channel where the version is available (first checking STABLE, then
-     * REGULAR, and finally RAPID). Otherwise, if no release channel
-     * configuration and no version is specified, the cluster is enrolled in the
-     * REGULAR channel with its default version.
-     * 
- * - * .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; - } else { - releaseChannelBuilder_.setMessage(value); - } - bitField1_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Release channel configuration. If left unspecified on cluster creation and
-     * a version is specified, the cluster is enrolled in the most mature release
-     * channel where the version is available (first checking STABLE, then
-     * REGULAR, and finally RAPID). Otherwise, if no release channel
-     * configuration and no version is specified, the cluster is enrolled in the
-     * REGULAR channel with its default version.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 41; - */ - public Builder setReleaseChannel( - com.google.container.v1beta1.ReleaseChannel.Builder builderForValue) { - if (releaseChannelBuilder_ == null) { - releaseChannel_ = builderForValue.build(); - } else { - releaseChannelBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Release channel configuration. If left unspecified on cluster creation and
-     * a version is specified, the cluster is enrolled in the most mature release
-     * channel where the version is available (first checking STABLE, then
-     * REGULAR, and finally RAPID). Otherwise, if no release channel
-     * configuration and no version is specified, the cluster is enrolled in the
-     * REGULAR channel with its default version.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 41; - */ - public Builder mergeReleaseChannel(com.google.container.v1beta1.ReleaseChannel value) { - if (releaseChannelBuilder_ == null) { - if (((bitField1_ & 0x00000004) != 0) - && releaseChannel_ != null - && releaseChannel_ - != com.google.container.v1beta1.ReleaseChannel.getDefaultInstance()) { - getReleaseChannelBuilder().mergeFrom(value); - } else { - releaseChannel_ = value; - } - } else { - releaseChannelBuilder_.mergeFrom(value); - } - if (releaseChannel_ != null) { - bitField1_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Release channel configuration. If left unspecified on cluster creation and
-     * a version is specified, the cluster is enrolled in the most mature release
-     * channel where the version is available (first checking STABLE, then
-     * REGULAR, and finally RAPID). Otherwise, if no release channel
-     * configuration and no version is specified, the cluster is enrolled in the
-     * REGULAR channel with its default version.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 41; - */ - public Builder clearReleaseChannel() { - bitField1_ = (bitField1_ & ~0x00000004); - releaseChannel_ = null; - if (releaseChannelBuilder_ != null) { - releaseChannelBuilder_.dispose(); - releaseChannelBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Release channel configuration. If left unspecified on cluster creation and
-     * a version is specified, the cluster is enrolled in the most mature release
-     * channel where the version is available (first checking STABLE, then
-     * REGULAR, and finally RAPID). Otherwise, if no release channel
-     * configuration and no version is specified, the cluster is enrolled in the
-     * REGULAR channel with its default version.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 41; - */ - public com.google.container.v1beta1.ReleaseChannel.Builder getReleaseChannelBuilder() { - bitField1_ |= 0x00000004; - onChanged(); - return getReleaseChannelFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Release channel configuration. If left unspecified on cluster creation and
-     * a version is specified, the cluster is enrolled in the most mature release
-     * channel where the version is available (first checking STABLE, then
-     * REGULAR, and finally RAPID). Otherwise, if no release channel
-     * configuration and no version is specified, the cluster is enrolled in the
-     * REGULAR channel with its default version.
-     * 
- * - * .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. If left unspecified on cluster creation and
-     * a version is specified, the cluster is enrolled in the most mature release
-     * channel where the version is available (first checking STABLE, then
-     * REGULAR, and finally RAPID). Otherwise, if no release channel
-     * configuration and no version is specified, the cluster is enrolled in the
-     * REGULAR channel with its default version.
-     * 
- * - * .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 ((bitField1_ & 0x00000008) != 0); - } - /** - * - * - *
-     * 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; - } else { - workloadIdentityConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x00000008; - onChanged(); - 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(); - } else { - workloadIdentityConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000008; - onChanged(); - 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 (((bitField1_ & 0x00000008) != 0) - && workloadIdentityConfig_ != null - && workloadIdentityConfig_ - != com.google.container.v1beta1.WorkloadIdentityConfig.getDefaultInstance()) { - getWorkloadIdentityConfigBuilder().mergeFrom(value); - } else { - workloadIdentityConfig_ = value; - } - } else { - workloadIdentityConfigBuilder_.mergeFrom(value); - } - if (workloadIdentityConfig_ != null) { - bitField1_ |= 0x00000008; - onChanged(); - } - 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() { - bitField1_ = (bitField1_ & ~0x00000008); - workloadIdentityConfig_ = null; - if (workloadIdentityConfigBuilder_ != null) { - workloadIdentityConfigBuilder_.dispose(); - workloadIdentityConfigBuilder_ = null; - } - onChanged(); - 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() { - bitField1_ |= 0x00000008; - 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.WorkloadCertificates workloadCertificates_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WorkloadCertificates, - com.google.container.v1beta1.WorkloadCertificates.Builder, - com.google.container.v1beta1.WorkloadCertificatesOrBuilder> - workloadCertificatesBuilder_; - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.WorkloadCertificates workload_certificates = 52; - * - * @return Whether the workloadCertificates field is set. - */ - public boolean hasWorkloadCertificates() { - return ((bitField1_ & 0x00000010) != 0); - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.WorkloadCertificates workload_certificates = 52; - * - * @return The workloadCertificates. - */ - public com.google.container.v1beta1.WorkloadCertificates getWorkloadCertificates() { - if (workloadCertificatesBuilder_ == null) { - return workloadCertificates_ == null - ? com.google.container.v1beta1.WorkloadCertificates.getDefaultInstance() - : workloadCertificates_; - } else { - return workloadCertificatesBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.WorkloadCertificates workload_certificates = 52; - */ - public Builder setWorkloadCertificates( - com.google.container.v1beta1.WorkloadCertificates value) { - if (workloadCertificatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workloadCertificates_ = value; - } else { - workloadCertificatesBuilder_.setMessage(value); - } - bitField1_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.WorkloadCertificates workload_certificates = 52; - */ - public Builder setWorkloadCertificates( - com.google.container.v1beta1.WorkloadCertificates.Builder builderForValue) { - if (workloadCertificatesBuilder_ == null) { - workloadCertificates_ = builderForValue.build(); - } else { - workloadCertificatesBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.WorkloadCertificates workload_certificates = 52; - */ - public Builder mergeWorkloadCertificates( - com.google.container.v1beta1.WorkloadCertificates value) { - if (workloadCertificatesBuilder_ == null) { - if (((bitField1_ & 0x00000010) != 0) - && workloadCertificates_ != null - && workloadCertificates_ - != com.google.container.v1beta1.WorkloadCertificates.getDefaultInstance()) { - getWorkloadCertificatesBuilder().mergeFrom(value); - } else { - workloadCertificates_ = value; - } - } else { - workloadCertificatesBuilder_.mergeFrom(value); - } - if (workloadCertificates_ != null) { - bitField1_ |= 0x00000010; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.WorkloadCertificates workload_certificates = 52; - */ - public Builder clearWorkloadCertificates() { - bitField1_ = (bitField1_ & ~0x00000010); - workloadCertificates_ = null; - if (workloadCertificatesBuilder_ != null) { - workloadCertificatesBuilder_.dispose(); - workloadCertificatesBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.WorkloadCertificates workload_certificates = 52; - */ - public com.google.container.v1beta1.WorkloadCertificates.Builder - getWorkloadCertificatesBuilder() { - bitField1_ |= 0x00000010; - onChanged(); - return getWorkloadCertificatesFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.WorkloadCertificates workload_certificates = 52; - */ - public com.google.container.v1beta1.WorkloadCertificatesOrBuilder - getWorkloadCertificatesOrBuilder() { - if (workloadCertificatesBuilder_ != null) { - return workloadCertificatesBuilder_.getMessageOrBuilder(); - } else { - return workloadCertificates_ == null - ? com.google.container.v1beta1.WorkloadCertificates.getDefaultInstance() - : workloadCertificates_; - } - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.WorkloadCertificates workload_certificates = 52; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WorkloadCertificates, - com.google.container.v1beta1.WorkloadCertificates.Builder, - com.google.container.v1beta1.WorkloadCertificatesOrBuilder> - getWorkloadCertificatesFieldBuilder() { - if (workloadCertificatesBuilder_ == null) { - workloadCertificatesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WorkloadCertificates, - com.google.container.v1beta1.WorkloadCertificates.Builder, - com.google.container.v1beta1.WorkloadCertificatesOrBuilder>( - getWorkloadCertificates(), getParentForChildren(), isClean()); - workloadCertificates_ = null; - } - return workloadCertificatesBuilder_; - } - - private com.google.container.v1beta1.MeshCertificates meshCertificates_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MeshCertificates, - com.google.container.v1beta1.MeshCertificates.Builder, - com.google.container.v1beta1.MeshCertificatesOrBuilder> - meshCertificatesBuilder_; - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; - * - * @return Whether the meshCertificates field is set. - */ - public boolean hasMeshCertificates() { - return ((bitField1_ & 0x00000020) != 0); - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; - * - * @return The meshCertificates. - */ - public com.google.container.v1beta1.MeshCertificates getMeshCertificates() { - if (meshCertificatesBuilder_ == null) { - return meshCertificates_ == null - ? com.google.container.v1beta1.MeshCertificates.getDefaultInstance() - : meshCertificates_; - } else { - return meshCertificatesBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; - */ - public Builder setMeshCertificates(com.google.container.v1beta1.MeshCertificates value) { - if (meshCertificatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - meshCertificates_ = value; - } else { - meshCertificatesBuilder_.setMessage(value); - } - bitField1_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; - */ - public Builder setMeshCertificates( - com.google.container.v1beta1.MeshCertificates.Builder builderForValue) { - if (meshCertificatesBuilder_ == null) { - meshCertificates_ = builderForValue.build(); - } else { - meshCertificatesBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; - */ - public Builder mergeMeshCertificates(com.google.container.v1beta1.MeshCertificates value) { - if (meshCertificatesBuilder_ == null) { - if (((bitField1_ & 0x00000020) != 0) - && meshCertificates_ != null - && meshCertificates_ - != com.google.container.v1beta1.MeshCertificates.getDefaultInstance()) { - getMeshCertificatesBuilder().mergeFrom(value); - } else { - meshCertificates_ = value; - } - } else { - meshCertificatesBuilder_.mergeFrom(value); - } - if (meshCertificates_ != null) { - bitField1_ |= 0x00000020; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; - */ - public Builder clearMeshCertificates() { - bitField1_ = (bitField1_ & ~0x00000020); - meshCertificates_ = null; - if (meshCertificatesBuilder_ != null) { - meshCertificatesBuilder_.dispose(); - meshCertificatesBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; - */ - public com.google.container.v1beta1.MeshCertificates.Builder getMeshCertificatesBuilder() { - bitField1_ |= 0x00000020; - onChanged(); - return getMeshCertificatesFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; - */ - public com.google.container.v1beta1.MeshCertificatesOrBuilder getMeshCertificatesOrBuilder() { - if (meshCertificatesBuilder_ != null) { - return meshCertificatesBuilder_.getMessageOrBuilder(); - } else { - return meshCertificates_ == null - ? com.google.container.v1beta1.MeshCertificates.getDefaultInstance() - : meshCertificates_; - } - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MeshCertificates, - com.google.container.v1beta1.MeshCertificates.Builder, - com.google.container.v1beta1.MeshCertificatesOrBuilder> - getMeshCertificatesFieldBuilder() { - if (meshCertificatesBuilder_ == null) { - meshCertificatesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MeshCertificates, - com.google.container.v1beta1.MeshCertificates.Builder, - com.google.container.v1beta1.MeshCertificatesOrBuilder>( - getMeshCertificates(), getParentForChildren(), isClean()); - meshCertificates_ = null; - } - return meshCertificatesBuilder_; - } - - private com.google.container.v1beta1.WorkloadALTSConfig workloadAltsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WorkloadALTSConfig, - com.google.container.v1beta1.WorkloadALTSConfig.Builder, - com.google.container.v1beta1.WorkloadALTSConfigOrBuilder> - workloadAltsConfigBuilder_; - /** - * - * - *
-     * Configuration for direct-path (via ALTS) with workload identity.
-     * 
- * - * .google.container.v1beta1.WorkloadALTSConfig workload_alts_config = 53; - * - * @return Whether the workloadAltsConfig field is set. - */ - public boolean hasWorkloadAltsConfig() { - return ((bitField1_ & 0x00000040) != 0); - } - /** - * - * - *
-     * Configuration for direct-path (via ALTS) with workload identity.
-     * 
- * - * .google.container.v1beta1.WorkloadALTSConfig workload_alts_config = 53; - * - * @return The workloadAltsConfig. - */ - public com.google.container.v1beta1.WorkloadALTSConfig getWorkloadAltsConfig() { - if (workloadAltsConfigBuilder_ == null) { - return workloadAltsConfig_ == null - ? com.google.container.v1beta1.WorkloadALTSConfig.getDefaultInstance() - : workloadAltsConfig_; - } else { - return workloadAltsConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for direct-path (via ALTS) with workload identity.
-     * 
- * - * .google.container.v1beta1.WorkloadALTSConfig workload_alts_config = 53; - */ - public Builder setWorkloadAltsConfig(com.google.container.v1beta1.WorkloadALTSConfig value) { - if (workloadAltsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workloadAltsConfig_ = value; - } else { - workloadAltsConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for direct-path (via ALTS) with workload identity.
-     * 
- * - * .google.container.v1beta1.WorkloadALTSConfig workload_alts_config = 53; - */ - public Builder setWorkloadAltsConfig( - com.google.container.v1beta1.WorkloadALTSConfig.Builder builderForValue) { - if (workloadAltsConfigBuilder_ == null) { - workloadAltsConfig_ = builderForValue.build(); - } else { - workloadAltsConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for direct-path (via ALTS) with workload identity.
-     * 
- * - * .google.container.v1beta1.WorkloadALTSConfig workload_alts_config = 53; - */ - public Builder mergeWorkloadAltsConfig(com.google.container.v1beta1.WorkloadALTSConfig value) { - if (workloadAltsConfigBuilder_ == null) { - if (((bitField1_ & 0x00000040) != 0) - && workloadAltsConfig_ != null - && workloadAltsConfig_ - != com.google.container.v1beta1.WorkloadALTSConfig.getDefaultInstance()) { - getWorkloadAltsConfigBuilder().mergeFrom(value); - } else { - workloadAltsConfig_ = value; - } - } else { - workloadAltsConfigBuilder_.mergeFrom(value); - } - if (workloadAltsConfig_ != null) { - bitField1_ |= 0x00000040; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for direct-path (via ALTS) with workload identity.
-     * 
- * - * .google.container.v1beta1.WorkloadALTSConfig workload_alts_config = 53; - */ - public Builder clearWorkloadAltsConfig() { - bitField1_ = (bitField1_ & ~0x00000040); - workloadAltsConfig_ = null; - if (workloadAltsConfigBuilder_ != null) { - workloadAltsConfigBuilder_.dispose(); - workloadAltsConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for direct-path (via ALTS) with workload identity.
-     * 
- * - * .google.container.v1beta1.WorkloadALTSConfig workload_alts_config = 53; - */ - public com.google.container.v1beta1.WorkloadALTSConfig.Builder getWorkloadAltsConfigBuilder() { - bitField1_ |= 0x00000040; - onChanged(); - return getWorkloadAltsConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for direct-path (via ALTS) with workload identity.
-     * 
- * - * .google.container.v1beta1.WorkloadALTSConfig workload_alts_config = 53; - */ - public com.google.container.v1beta1.WorkloadALTSConfigOrBuilder - getWorkloadAltsConfigOrBuilder() { - if (workloadAltsConfigBuilder_ != null) { - return workloadAltsConfigBuilder_.getMessageOrBuilder(); - } else { - return workloadAltsConfig_ == null - ? com.google.container.v1beta1.WorkloadALTSConfig.getDefaultInstance() - : workloadAltsConfig_; - } - } - /** - * - * - *
-     * Configuration for direct-path (via ALTS) with workload identity.
-     * 
- * - * .google.container.v1beta1.WorkloadALTSConfig workload_alts_config = 53; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WorkloadALTSConfig, - com.google.container.v1beta1.WorkloadALTSConfig.Builder, - com.google.container.v1beta1.WorkloadALTSConfigOrBuilder> - getWorkloadAltsConfigFieldBuilder() { - if (workloadAltsConfigBuilder_ == null) { - workloadAltsConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WorkloadALTSConfig, - com.google.container.v1beta1.WorkloadALTSConfig.Builder, - com.google.container.v1beta1.WorkloadALTSConfigOrBuilder>( - getWorkloadAltsConfig(), getParentForChildren(), isClean()); - workloadAltsConfig_ = null; - } - return workloadAltsConfigBuilder_; - } - - private com.google.container.v1beta1.CostManagementConfig costManagementConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.CostManagementConfig, - com.google.container.v1beta1.CostManagementConfig.Builder, - com.google.container.v1beta1.CostManagementConfigOrBuilder> - costManagementConfigBuilder_; - /** - * - * - *
-     * Configuration for the fine-grained cost management feature.
-     * 
- * - * .google.container.v1beta1.CostManagementConfig cost_management_config = 45; - * - * @return Whether the costManagementConfig field is set. - */ - public boolean hasCostManagementConfig() { - return ((bitField1_ & 0x00000080) != 0); - } - /** - * - * - *
-     * Configuration for the fine-grained cost management feature.
-     * 
- * - * .google.container.v1beta1.CostManagementConfig cost_management_config = 45; - * - * @return The costManagementConfig. - */ - public com.google.container.v1beta1.CostManagementConfig getCostManagementConfig() { - if (costManagementConfigBuilder_ == null) { - return costManagementConfig_ == null - ? com.google.container.v1beta1.CostManagementConfig.getDefaultInstance() - : costManagementConfig_; - } else { - return costManagementConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for the fine-grained cost management feature.
-     * 
- * - * .google.container.v1beta1.CostManagementConfig cost_management_config = 45; - */ - public Builder setCostManagementConfig( - com.google.container.v1beta1.CostManagementConfig value) { - if (costManagementConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - costManagementConfig_ = value; - } else { - costManagementConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the fine-grained cost management feature.
-     * 
- * - * .google.container.v1beta1.CostManagementConfig cost_management_config = 45; - */ - public Builder setCostManagementConfig( - com.google.container.v1beta1.CostManagementConfig.Builder builderForValue) { - if (costManagementConfigBuilder_ == null) { - costManagementConfig_ = builderForValue.build(); - } else { - costManagementConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the fine-grained cost management feature.
-     * 
- * - * .google.container.v1beta1.CostManagementConfig cost_management_config = 45; - */ - public Builder mergeCostManagementConfig( - com.google.container.v1beta1.CostManagementConfig value) { - if (costManagementConfigBuilder_ == null) { - if (((bitField1_ & 0x00000080) != 0) - && costManagementConfig_ != null - && costManagementConfig_ - != com.google.container.v1beta1.CostManagementConfig.getDefaultInstance()) { - getCostManagementConfigBuilder().mergeFrom(value); - } else { - costManagementConfig_ = value; - } - } else { - costManagementConfigBuilder_.mergeFrom(value); - } - if (costManagementConfig_ != null) { - bitField1_ |= 0x00000080; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for the fine-grained cost management feature.
-     * 
- * - * .google.container.v1beta1.CostManagementConfig cost_management_config = 45; - */ - public Builder clearCostManagementConfig() { - bitField1_ = (bitField1_ & ~0x00000080); - costManagementConfig_ = null; - if (costManagementConfigBuilder_ != null) { - costManagementConfigBuilder_.dispose(); - costManagementConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for the fine-grained cost management feature.
-     * 
- * - * .google.container.v1beta1.CostManagementConfig cost_management_config = 45; - */ - public com.google.container.v1beta1.CostManagementConfig.Builder - getCostManagementConfigBuilder() { - bitField1_ |= 0x00000080; - onChanged(); - return getCostManagementConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for the fine-grained cost management feature.
-     * 
- * - * .google.container.v1beta1.CostManagementConfig cost_management_config = 45; - */ - public com.google.container.v1beta1.CostManagementConfigOrBuilder - getCostManagementConfigOrBuilder() { - if (costManagementConfigBuilder_ != null) { - return costManagementConfigBuilder_.getMessageOrBuilder(); - } else { - return costManagementConfig_ == null - ? com.google.container.v1beta1.CostManagementConfig.getDefaultInstance() - : costManagementConfig_; - } - } - /** - * - * - *
-     * Configuration for the fine-grained cost management feature.
-     * 
- * - * .google.container.v1beta1.CostManagementConfig cost_management_config = 45; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.CostManagementConfig, - com.google.container.v1beta1.CostManagementConfig.Builder, - com.google.container.v1beta1.CostManagementConfigOrBuilder> - getCostManagementConfigFieldBuilder() { - if (costManagementConfigBuilder_ == null) { - costManagementConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.CostManagementConfig, - com.google.container.v1beta1.CostManagementConfig.Builder, - com.google.container.v1beta1.CostManagementConfigOrBuilder>( - getCostManagementConfig(), getParentForChildren(), isClean()); - costManagementConfig_ = null; - } - return costManagementConfigBuilder_; - } - - 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 ((bitField1_ & 0x00000100) != 0); - } - /** - * - * - *
-     * 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; - } else { - clusterTelemetryBuilder_.setMessage(value); - } - bitField1_ |= 0x00000100; - onChanged(); - 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(); - } else { - clusterTelemetryBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000100; - onChanged(); - 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 (((bitField1_ & 0x00000100) != 0) - && clusterTelemetry_ != null - && clusterTelemetry_ - != com.google.container.v1beta1.ClusterTelemetry.getDefaultInstance()) { - getClusterTelemetryBuilder().mergeFrom(value); - } else { - clusterTelemetry_ = value; - } - } else { - clusterTelemetryBuilder_.mergeFrom(value); - } - if (clusterTelemetry_ != null) { - bitField1_ |= 0x00000100; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Telemetry integration for the cluster.
-     * 
- * - * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; - */ - public Builder clearClusterTelemetry() { - bitField1_ = (bitField1_ & ~0x00000100); - clusterTelemetry_ = null; - if (clusterTelemetryBuilder_ != null) { - clusterTelemetryBuilder_.dispose(); - clusterTelemetryBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Telemetry integration for the cluster.
-     * 
- * - * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; - */ - public com.google.container.v1beta1.ClusterTelemetry.Builder getClusterTelemetryBuilder() { - bitField1_ |= 0x00000100; - 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 ((bitField1_ & 0x00000200) != 0); - } - /** - * - * - *
-     * 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; - } else { - tpuConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x00000200; - onChanged(); - 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(); - } else { - tpuConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000200; - onChanged(); - 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 (((bitField1_ & 0x00000200) != 0) - && tpuConfig_ != null - && tpuConfig_ != com.google.container.v1beta1.TpuConfig.getDefaultInstance()) { - getTpuConfigBuilder().mergeFrom(value); - } else { - tpuConfig_ = value; - } - } else { - tpuConfigBuilder_.mergeFrom(value); - } - if (tpuConfig_ != null) { - bitField1_ |= 0x00000200; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for Cloud TPU support;
-     * 
- * - * .google.container.v1beta1.TpuConfig tpu_config = 47; - */ - public Builder clearTpuConfig() { - bitField1_ = (bitField1_ & ~0x00000200); - tpuConfig_ = null; - if (tpuConfigBuilder_ != null) { - tpuConfigBuilder_.dispose(); - tpuConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for Cloud TPU support;
-     * 
- * - * .google.container.v1beta1.TpuConfig tpu_config = 47; - */ - public com.google.container.v1beta1.TpuConfig.Builder getTpuConfigBuilder() { - bitField1_ |= 0x00000200; - 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 ((bitField1_ & 0x00000400) != 0); - } - /** - * - * - *
-     * 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; - } else { - notificationConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x00000400; - onChanged(); - 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(); - } else { - notificationConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000400; - onChanged(); - 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 (((bitField1_ & 0x00000400) != 0) - && notificationConfig_ != null - && notificationConfig_ - != com.google.container.v1beta1.NotificationConfig.getDefaultInstance()) { - getNotificationConfigBuilder().mergeFrom(value); - } else { - notificationConfig_ = value; - } - } else { - notificationConfigBuilder_.mergeFrom(value); - } - if (notificationConfig_ != null) { - bitField1_ |= 0x00000400; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Notification configuration of the cluster.
-     * 
- * - * .google.container.v1beta1.NotificationConfig notification_config = 49; - */ - public Builder clearNotificationConfig() { - bitField1_ = (bitField1_ & ~0x00000400); - notificationConfig_ = null; - if (notificationConfigBuilder_ != null) { - notificationConfigBuilder_.dispose(); - notificationConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Notification configuration of the cluster.
-     * 
- * - * .google.container.v1beta1.NotificationConfig notification_config = 49; - */ - public com.google.container.v1beta1.NotificationConfig.Builder getNotificationConfigBuilder() { - bitField1_ |= 0x00000400; - 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.
-     * All the nodes in the cluster will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 50; - * - * @return Whether the confidentialNodes field is set. - */ - public boolean hasConfidentialNodes() { - return ((bitField1_ & 0x00000800) != 0); - } - /** - * - * - *
-     * Configuration of Confidential Nodes.
-     * All the nodes in the cluster will be Confidential VM once enabled.
-     * 
- * - * .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.
-     * All the nodes in the cluster will be Confidential VM once enabled.
-     * 
- * - * .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; - } else { - confidentialNodesBuilder_.setMessage(value); - } - bitField1_ |= 0x00000800; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration of Confidential Nodes.
-     * All the nodes in the cluster will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 50; - */ - public Builder setConfidentialNodes( - com.google.container.v1beta1.ConfidentialNodes.Builder builderForValue) { - if (confidentialNodesBuilder_ == null) { - confidentialNodes_ = builderForValue.build(); - } else { - confidentialNodesBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000800; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration of Confidential Nodes.
-     * All the nodes in the cluster will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 50; - */ - public Builder mergeConfidentialNodes(com.google.container.v1beta1.ConfidentialNodes value) { - if (confidentialNodesBuilder_ == null) { - if (((bitField1_ & 0x00000800) != 0) - && confidentialNodes_ != null - && confidentialNodes_ - != com.google.container.v1beta1.ConfidentialNodes.getDefaultInstance()) { - getConfidentialNodesBuilder().mergeFrom(value); - } else { - confidentialNodes_ = value; - } - } else { - confidentialNodesBuilder_.mergeFrom(value); - } - if (confidentialNodes_ != null) { - bitField1_ |= 0x00000800; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration of Confidential Nodes.
-     * All the nodes in the cluster will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 50; - */ - public Builder clearConfidentialNodes() { - bitField1_ = (bitField1_ & ~0x00000800); - confidentialNodes_ = null; - if (confidentialNodesBuilder_ != null) { - confidentialNodesBuilder_.dispose(); - confidentialNodesBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration of Confidential Nodes.
-     * All the nodes in the cluster will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 50; - */ - public com.google.container.v1beta1.ConfidentialNodes.Builder getConfidentialNodesBuilder() { - bitField1_ |= 0x00000800; - onChanged(); - return getConfidentialNodesFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration of Confidential Nodes.
-     * All the nodes in the cluster will be Confidential VM once enabled.
-     * 
- * - * .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.
-     * All the nodes in the cluster will be Confidential VM once enabled.
-     * 
- * - * .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 com.google.container.v1beta1.IdentityServiceConfig identityServiceConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.IdentityServiceConfig, - com.google.container.v1beta1.IdentityServiceConfig.Builder, - com.google.container.v1beta1.IdentityServiceConfigOrBuilder> - identityServiceConfigBuilder_; - /** - * - * - *
-     * Configuration for Identity Service component.
-     * 
- * - * .google.container.v1beta1.IdentityServiceConfig identity_service_config = 54; - * - * @return Whether the identityServiceConfig field is set. - */ - public boolean hasIdentityServiceConfig() { - return ((bitField1_ & 0x00001000) != 0); - } - /** - * - * - *
-     * Configuration for Identity Service component.
-     * 
- * - * .google.container.v1beta1.IdentityServiceConfig identity_service_config = 54; - * - * @return The identityServiceConfig. - */ - public com.google.container.v1beta1.IdentityServiceConfig getIdentityServiceConfig() { - if (identityServiceConfigBuilder_ == null) { - return identityServiceConfig_ == null - ? com.google.container.v1beta1.IdentityServiceConfig.getDefaultInstance() - : identityServiceConfig_; - } else { - return identityServiceConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for Identity Service component.
-     * 
- * - * .google.container.v1beta1.IdentityServiceConfig identity_service_config = 54; - */ - public Builder setIdentityServiceConfig( - com.google.container.v1beta1.IdentityServiceConfig value) { - if (identityServiceConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - identityServiceConfig_ = value; - } else { - identityServiceConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x00001000; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for Identity Service component.
-     * 
- * - * .google.container.v1beta1.IdentityServiceConfig identity_service_config = 54; - */ - public Builder setIdentityServiceConfig( - com.google.container.v1beta1.IdentityServiceConfig.Builder builderForValue) { - if (identityServiceConfigBuilder_ == null) { - identityServiceConfig_ = builderForValue.build(); - } else { - identityServiceConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00001000; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for Identity Service component.
-     * 
- * - * .google.container.v1beta1.IdentityServiceConfig identity_service_config = 54; - */ - public Builder mergeIdentityServiceConfig( - com.google.container.v1beta1.IdentityServiceConfig value) { - if (identityServiceConfigBuilder_ == null) { - if (((bitField1_ & 0x00001000) != 0) - && identityServiceConfig_ != null - && identityServiceConfig_ - != com.google.container.v1beta1.IdentityServiceConfig.getDefaultInstance()) { - getIdentityServiceConfigBuilder().mergeFrom(value); - } else { - identityServiceConfig_ = value; - } - } else { - identityServiceConfigBuilder_.mergeFrom(value); - } - if (identityServiceConfig_ != null) { - bitField1_ |= 0x00001000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for Identity Service component.
-     * 
- * - * .google.container.v1beta1.IdentityServiceConfig identity_service_config = 54; - */ - public Builder clearIdentityServiceConfig() { - bitField1_ = (bitField1_ & ~0x00001000); - identityServiceConfig_ = null; - if (identityServiceConfigBuilder_ != null) { - identityServiceConfigBuilder_.dispose(); - identityServiceConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for Identity Service component.
-     * 
- * - * .google.container.v1beta1.IdentityServiceConfig identity_service_config = 54; - */ - public com.google.container.v1beta1.IdentityServiceConfig.Builder - getIdentityServiceConfigBuilder() { - bitField1_ |= 0x00001000; - onChanged(); - return getIdentityServiceConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for Identity Service component.
-     * 
- * - * .google.container.v1beta1.IdentityServiceConfig identity_service_config = 54; - */ - public com.google.container.v1beta1.IdentityServiceConfigOrBuilder - getIdentityServiceConfigOrBuilder() { - if (identityServiceConfigBuilder_ != null) { - return identityServiceConfigBuilder_.getMessageOrBuilder(); - } else { - return identityServiceConfig_ == null - ? com.google.container.v1beta1.IdentityServiceConfig.getDefaultInstance() - : identityServiceConfig_; - } - } - /** - * - * - *
-     * Configuration for Identity Service component.
-     * 
- * - * .google.container.v1beta1.IdentityServiceConfig identity_service_config = 54; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.IdentityServiceConfig, - com.google.container.v1beta1.IdentityServiceConfig.Builder, - com.google.container.v1beta1.IdentityServiceConfigOrBuilder> - getIdentityServiceConfigFieldBuilder() { - if (identityServiceConfigBuilder_ == null) { - identityServiceConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.IdentityServiceConfig, - com.google.container.v1beta1.IdentityServiceConfig.Builder, - com.google.container.v1beta1.IdentityServiceConfigOrBuilder>( - getIdentityServiceConfig(), getParentForChildren(), isClean()); - identityServiceConfig_ = null; - } - return identityServiceConfigBuilder_; - } - - 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; - bitField1_ |= 0x00002000; - 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(); - bitField1_ = (bitField1_ & ~0x00002000); - 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; - bitField1_ |= 0x00002000; - 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]; - * - * @deprecated google.container.v1beta1.Cluster.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2152 - * @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]; - * - * @deprecated google.container.v1beta1.Cluster.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2152 - * @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]; - * - * @deprecated google.container.v1beta1.Cluster.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2152 - * @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; - bitField1_ |= 0x00004000; - 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]; - * - * @deprecated google.container.v1beta1.Cluster.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2152 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField1_ = (bitField1_ & ~0x00004000); - 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]; - * - * @deprecated google.container.v1beta1.Cluster.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2152 - * @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; - bitField1_ |= 0x00004000; - 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; - bitField1_ |= 0x00008000; - 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(); - bitField1_ = (bitField1_ & ~0x00008000); - 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; - bitField1_ |= 0x00008000; - 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; - bitField1_ |= 0x00010000; - 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(); - bitField1_ = (bitField1_ & ~0x00010000); - 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; - bitField1_ |= 0x00010000; - 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; - bitField1_ |= 0x00020000; - 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(); - bitField1_ = (bitField1_ & ~0x00020000); - 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; - bitField1_ |= 0x00020000; - 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]; - * - * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2185 - * @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]; - * - * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2185 - * @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]; - * - * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2185 - * @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; - bitField1_ |= 0x00040000; - 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]; - * - * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2185 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearCurrentNodeVersion() { - currentNodeVersion_ = getDefaultInstance().getCurrentNodeVersion(); - bitField1_ = (bitField1_ & ~0x00040000); - 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]; - * - * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2185 - * @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; - bitField1_ |= 0x00040000; - 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; - bitField1_ |= 0x00080000; - 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(); - bitField1_ = (bitField1_ & ~0x00080000); - 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; - bitField1_ |= 0x00080000; - 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; - bitField1_ |= 0x00100000; - 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() { - com.google.container.v1beta1.Cluster.Status result = - com.google.container.v1beta1.Cluster.Status.forNumber(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(); - } - bitField1_ |= 0x00100000; - 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() { - bitField1_ = (bitField1_ & ~0x00100000); - 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]; - * - * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2197 - * @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]; - * - * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2197 - * @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]; - * - * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2197 - * @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; - bitField1_ |= 0x00200000; - 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]; - * - * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2197 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearStatusMessage() { - statusMessage_ = getDefaultInstance().getStatusMessage(); - bitField1_ = (bitField1_ & ~0x00200000); - 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]; - * - * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2197 - * @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; - bitField1_ |= 0x00200000; - 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; - bitField1_ |= 0x00400000; - 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() { - bitField1_ = (bitField1_ & ~0x00400000); - 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; - bitField1_ |= 0x00800000; - 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(); - bitField1_ = (bitField1_ & ~0x00800000); - 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; - bitField1_ |= 0x00800000; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList instanceGroupUrls_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureInstanceGroupUrlsIsMutable() { - if (!instanceGroupUrls_.isModifiable()) { - instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(instanceGroupUrls_); - } - bitField1_ |= 0x01000000; - } - /** - * - * - *
-     * Deprecated. Use node_pools.instance_group_urls.
-     * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * - * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2213 - * @return A list containing the instanceGroupUrls. - */ - @java.lang.Deprecated - public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { - instanceGroupUrls_.makeImmutable(); - return instanceGroupUrls_; - } - /** - * - * - *
-     * Deprecated. Use node_pools.instance_group_urls.
-     * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * - * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2213 - * @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]; - * - * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2213 - * @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]; - * - * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2213 - * @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]; - * - * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2213 - * @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); - bitField1_ |= 0x01000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. Use node_pools.instance_group_urls.
-     * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * - * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2213 - * @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); - bitField1_ |= 0x01000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. Use node_pools.instance_group_urls.
-     * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * - * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2213 - * @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_); - bitField1_ |= 0x01000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. Use node_pools.instance_group_urls.
-     * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * - * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2213 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearInstanceGroupUrls() { - instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField1_ = (bitField1_ & ~0x01000000); - ; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. Use node_pools.instance_group_urls.
-     * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * - * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2213 - * @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); - bitField1_ |= 0x01000000; - 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]; - * - * @deprecated google.container.v1beta1.Cluster.current_node_count is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2217 - * @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]; - * - * @deprecated google.container.v1beta1.Cluster.current_node_count is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2217 - * @param value The currentNodeCount to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setCurrentNodeCount(int value) { - - currentNodeCount_ = value; - bitField1_ |= 0x02000000; - 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]; - * - * @deprecated google.container.v1beta1.Cluster.current_node_count is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2217 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearCurrentNodeCount() { - bitField1_ = (bitField1_ & ~0x02000000); - 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; - bitField1_ |= 0x04000000; - 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(); - bitField1_ = (bitField1_ & ~0x04000000); - 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; - bitField1_ |= 0x04000000; - 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; - bitField1_ |= 0x08000000; - 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(); - bitField1_ = (bitField1_ & ~0x08000000); - 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; - bitField1_ |= 0x08000000; - 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; - bitField1_ |= 0x10000000; - 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() { - bitField1_ = (bitField1_ & ~0x10000000); - 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; - bitField1_ |= 0x20000000; - 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(); - bitField1_ = (bitField1_ & ~0x20000000); - 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; - bitField1_ |= 0x20000000; - 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 ((bitField1_ & 0x40000000) != 0); - } - /** - * - * - *
-     * 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; - } else { - databaseEncryptionBuilder_.setMessage(value); - } - bitField1_ |= 0x40000000; - onChanged(); - 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(); - } else { - databaseEncryptionBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x40000000; - onChanged(); - 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 (((bitField1_ & 0x40000000) != 0) - && databaseEncryption_ != null - && databaseEncryption_ - != com.google.container.v1beta1.DatabaseEncryption.getDefaultInstance()) { - getDatabaseEncryptionBuilder().mergeFrom(value); - } else { - databaseEncryption_ = value; - } - } else { - databaseEncryptionBuilder_.mergeFrom(value); - } - if (databaseEncryption_ != null) { - bitField1_ |= 0x40000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; - */ - public Builder clearDatabaseEncryption() { - bitField1_ = (bitField1_ & ~0x40000000); - databaseEncryption_ = null; - if (databaseEncryptionBuilder_ != null) { - databaseEncryptionBuilder_.dispose(); - databaseEncryptionBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; - */ - public com.google.container.v1beta1.DatabaseEncryption.Builder getDatabaseEncryptionBuilder() { - bitField1_ |= 0x40000000; - 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 (!((bitField1_ & 0x80000000) != 0)) { - conditions_ = - new java.util.ArrayList(conditions_); - bitField1_ |= 0x80000000; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.StatusCondition, - com.google.container.v1beta1.StatusCondition.Builder, - com.google.container.v1beta1.StatusConditionOrBuilder> - conditionsBuilder_; - - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - public java.util.List getConditionsList() { - if (conditionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(conditions_); - } else { - return conditionsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - public int getConditionsCount() { - if (conditionsBuilder_ == null) { - return conditions_.size(); - } else { - return conditionsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - public com.google.container.v1beta1.StatusCondition getConditions(int index) { - if (conditionsBuilder_ == null) { - return conditions_.get(index); - } else { - return conditionsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - public Builder setConditions(int index, com.google.container.v1beta1.StatusCondition value) { - if (conditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConditionsIsMutable(); - conditions_.set(index, value); - onChanged(); - } else { - conditionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - public Builder setConditions( - int index, com.google.container.v1beta1.StatusCondition.Builder builderForValue) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - conditions_.set(index, builderForValue.build()); - onChanged(); - } else { - conditionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - public Builder addConditions(com.google.container.v1beta1.StatusCondition value) { - if (conditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConditionsIsMutable(); - conditions_.add(value); - onChanged(); - } else { - conditionsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - public Builder addConditions(int index, com.google.container.v1beta1.StatusCondition value) { - if (conditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConditionsIsMutable(); - conditions_.add(index, value); - onChanged(); - } else { - conditionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - public Builder addConditions( - com.google.container.v1beta1.StatusCondition.Builder builderForValue) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - conditions_.add(builderForValue.build()); - onChanged(); - } else { - conditionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - public Builder addConditions( - int index, com.google.container.v1beta1.StatusCondition.Builder builderForValue) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - conditions_.add(index, builderForValue.build()); - onChanged(); - } else { - conditionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - public Builder addAllConditions( - java.lang.Iterable values) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); - onChanged(); - } else { - conditionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - public Builder clearConditions() { - if (conditionsBuilder_ == null) { - conditions_ = java.util.Collections.emptyList(); - bitField1_ = (bitField1_ & ~0x80000000); - onChanged(); - } else { - conditionsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - public Builder removeConditions(int index) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - conditions_.remove(index); - onChanged(); - } else { - conditionsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - public com.google.container.v1beta1.StatusCondition.Builder getConditionsBuilder(int index) { - return getConditionsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - public com.google.container.v1beta1.StatusConditionOrBuilder getConditionsOrBuilder(int index) { - if (conditionsBuilder_ == null) { - return conditions_.get(index); - } else { - return conditionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - public java.util.List - getConditionsOrBuilderList() { - if (conditionsBuilder_ != null) { - return conditionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(conditions_); - } - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - public com.google.container.v1beta1.StatusCondition.Builder addConditionsBuilder() { - return getConditionsFieldBuilder() - .addBuilder(com.google.container.v1beta1.StatusCondition.getDefaultInstance()); - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - public com.google.container.v1beta1.StatusCondition.Builder addConditionsBuilder(int index) { - return getConditionsFieldBuilder() - .addBuilder(index, com.google.container.v1beta1.StatusCondition.getDefaultInstance()); - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1beta1.StatusCondition conditions = 118; - */ - public java.util.List - getConditionsBuilderList() { - return getConditionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.StatusCondition, - com.google.container.v1beta1.StatusCondition.Builder, - com.google.container.v1beta1.StatusConditionOrBuilder> - getConditionsFieldBuilder() { - if (conditionsBuilder_ == null) { - conditionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.StatusCondition, - com.google.container.v1beta1.StatusCondition.Builder, - com.google.container.v1beta1.StatusConditionOrBuilder>( - conditions_, ((bitField1_ & 0x80000000) != 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 ((bitField2_ & 0x00000001) != 0); - } - /** - * - * - *
-     * 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; - } else { - masterBuilder_.setMessage(value); - } - bitField2_ |= 0x00000001; - onChanged(); - 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(); - } else { - masterBuilder_.setMessage(builderForValue.build()); - } - bitField2_ |= 0x00000001; - onChanged(); - 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 (((bitField2_ & 0x00000001) != 0) - && master_ != null - && master_ != com.google.container.v1beta1.Master.getDefaultInstance()) { - getMasterBuilder().mergeFrom(value); - } else { - master_ = value; - } - } else { - masterBuilder_.mergeFrom(value); - } - if (master_ != null) { - bitField2_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for master components.
-     * 
- * - * .google.container.v1beta1.Master master = 124; - */ - public Builder clearMaster() { - bitField2_ = (bitField2_ & ~0x00000001); - master_ = null; - if (masterBuilder_ != null) { - masterBuilder_.dispose(); - masterBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for master components.
-     * 
- * - * .google.container.v1beta1.Master master = 124; - */ - public com.google.container.v1beta1.Master.Builder getMasterBuilder() { - bitField2_ |= 0x00000001; - 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_; - } - - private com.google.container.v1beta1.Autopilot autopilot_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.Autopilot, - com.google.container.v1beta1.Autopilot.Builder, - com.google.container.v1beta1.AutopilotOrBuilder> - autopilotBuilder_; - /** - * - * - *
-     * Autopilot configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.Autopilot autopilot = 128; - * - * @return Whether the autopilot field is set. - */ - public boolean hasAutopilot() { - return ((bitField2_ & 0x00000002) != 0); - } - /** - * - * - *
-     * Autopilot configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.Autopilot autopilot = 128; - * - * @return The autopilot. - */ - public com.google.container.v1beta1.Autopilot getAutopilot() { - if (autopilotBuilder_ == null) { - return autopilot_ == null - ? com.google.container.v1beta1.Autopilot.getDefaultInstance() - : autopilot_; - } else { - return autopilotBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Autopilot configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.Autopilot autopilot = 128; - */ - public Builder setAutopilot(com.google.container.v1beta1.Autopilot value) { - if (autopilotBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - autopilot_ = value; - } else { - autopilotBuilder_.setMessage(value); - } - bitField2_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Autopilot configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.Autopilot autopilot = 128; - */ - public Builder setAutopilot(com.google.container.v1beta1.Autopilot.Builder builderForValue) { - if (autopilotBuilder_ == null) { - autopilot_ = builderForValue.build(); - } else { - autopilotBuilder_.setMessage(builderForValue.build()); - } - bitField2_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Autopilot configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.Autopilot autopilot = 128; - */ - public Builder mergeAutopilot(com.google.container.v1beta1.Autopilot value) { - if (autopilotBuilder_ == null) { - if (((bitField2_ & 0x00000002) != 0) - && autopilot_ != null - && autopilot_ != com.google.container.v1beta1.Autopilot.getDefaultInstance()) { - getAutopilotBuilder().mergeFrom(value); - } else { - autopilot_ = value; - } - } else { - autopilotBuilder_.mergeFrom(value); - } - if (autopilot_ != null) { - bitField2_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Autopilot configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.Autopilot autopilot = 128; - */ - public Builder clearAutopilot() { - bitField2_ = (bitField2_ & ~0x00000002); - autopilot_ = null; - if (autopilotBuilder_ != null) { - autopilotBuilder_.dispose(); - autopilotBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Autopilot configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.Autopilot autopilot = 128; - */ - public com.google.container.v1beta1.Autopilot.Builder getAutopilotBuilder() { - bitField2_ |= 0x00000002; - onChanged(); - return getAutopilotFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Autopilot configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.Autopilot autopilot = 128; - */ - public com.google.container.v1beta1.AutopilotOrBuilder getAutopilotOrBuilder() { - if (autopilotBuilder_ != null) { - return autopilotBuilder_.getMessageOrBuilder(); - } else { - return autopilot_ == null - ? com.google.container.v1beta1.Autopilot.getDefaultInstance() - : autopilot_; - } - } - /** - * - * - *
-     * Autopilot configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.Autopilot autopilot = 128; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.Autopilot, - com.google.container.v1beta1.Autopilot.Builder, - com.google.container.v1beta1.AutopilotOrBuilder> - getAutopilotFieldBuilder() { - if (autopilotBuilder_ == null) { - autopilotBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.Autopilot, - com.google.container.v1beta1.Autopilot.Builder, - com.google.container.v1beta1.AutopilotOrBuilder>( - getAutopilot(), getParentForChildren(), isClean()); - autopilot_ = null; - } - return autopilotBuilder_; - } - - private java.lang.Object id_ = ""; - /** - * - * - *
-     * Output only. Unique id for the cluster.
-     * 
- * - * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The id. - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. Unique id for the cluster.
-     * 
- * - * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for id. - */ - public com.google.protobuf.ByteString getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. Unique id for the cluster.
-     * 
- * - * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - bitField2_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Unique id for the cluster.
-     * 
- * - * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearId() { - id_ = getDefaultInstance().getId(); - bitField2_ = (bitField2_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Unique id for the cluster.
-     * 
- * - * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for id to set. - * @return This builder for chaining. - */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - id_ = value; - bitField2_ |= 0x00000004; - onChanged(); - return this; - } - - private com.google.container.v1beta1.NodePoolDefaults nodePoolDefaults_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePoolDefaults, - com.google.container.v1beta1.NodePoolDefaults.Builder, - com.google.container.v1beta1.NodePoolDefaultsOrBuilder> - nodePoolDefaultsBuilder_; - /** - * - * - *
-     * Default NodePool settings for the entire cluster. These settings are
-     * overridden if specified on the specific NodePool object.
-     * 
- * - * optional .google.container.v1beta1.NodePoolDefaults node_pool_defaults = 131; - * - * @return Whether the nodePoolDefaults field is set. - */ - public boolean hasNodePoolDefaults() { - return ((bitField2_ & 0x00000008) != 0); - } - /** - * - * - *
-     * Default NodePool settings for the entire cluster. These settings are
-     * overridden if specified on the specific NodePool object.
-     * 
- * - * optional .google.container.v1beta1.NodePoolDefaults node_pool_defaults = 131; - * - * @return The nodePoolDefaults. - */ - public com.google.container.v1beta1.NodePoolDefaults getNodePoolDefaults() { - if (nodePoolDefaultsBuilder_ == null) { - return nodePoolDefaults_ == null - ? com.google.container.v1beta1.NodePoolDefaults.getDefaultInstance() - : nodePoolDefaults_; - } else { - return nodePoolDefaultsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Default NodePool settings for the entire cluster. These settings are
-     * overridden if specified on the specific NodePool object.
-     * 
- * - * optional .google.container.v1beta1.NodePoolDefaults node_pool_defaults = 131; - */ - public Builder setNodePoolDefaults(com.google.container.v1beta1.NodePoolDefaults value) { - if (nodePoolDefaultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - nodePoolDefaults_ = value; - } else { - nodePoolDefaultsBuilder_.setMessage(value); - } - bitField2_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Default NodePool settings for the entire cluster. These settings are
-     * overridden if specified on the specific NodePool object.
-     * 
- * - * optional .google.container.v1beta1.NodePoolDefaults node_pool_defaults = 131; - */ - public Builder setNodePoolDefaults( - com.google.container.v1beta1.NodePoolDefaults.Builder builderForValue) { - if (nodePoolDefaultsBuilder_ == null) { - nodePoolDefaults_ = builderForValue.build(); - } else { - nodePoolDefaultsBuilder_.setMessage(builderForValue.build()); - } - bitField2_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Default NodePool settings for the entire cluster. These settings are
-     * overridden if specified on the specific NodePool object.
-     * 
- * - * optional .google.container.v1beta1.NodePoolDefaults node_pool_defaults = 131; - */ - public Builder mergeNodePoolDefaults(com.google.container.v1beta1.NodePoolDefaults value) { - if (nodePoolDefaultsBuilder_ == null) { - if (((bitField2_ & 0x00000008) != 0) - && nodePoolDefaults_ != null - && nodePoolDefaults_ - != com.google.container.v1beta1.NodePoolDefaults.getDefaultInstance()) { - getNodePoolDefaultsBuilder().mergeFrom(value); - } else { - nodePoolDefaults_ = value; - } - } else { - nodePoolDefaultsBuilder_.mergeFrom(value); - } - if (nodePoolDefaults_ != null) { - bitField2_ |= 0x00000008; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Default NodePool settings for the entire cluster. These settings are
-     * overridden if specified on the specific NodePool object.
-     * 
- * - * optional .google.container.v1beta1.NodePoolDefaults node_pool_defaults = 131; - */ - public Builder clearNodePoolDefaults() { - bitField2_ = (bitField2_ & ~0x00000008); - nodePoolDefaults_ = null; - if (nodePoolDefaultsBuilder_ != null) { - nodePoolDefaultsBuilder_.dispose(); - nodePoolDefaultsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Default NodePool settings for the entire cluster. These settings are
-     * overridden if specified on the specific NodePool object.
-     * 
- * - * optional .google.container.v1beta1.NodePoolDefaults node_pool_defaults = 131; - */ - public com.google.container.v1beta1.NodePoolDefaults.Builder getNodePoolDefaultsBuilder() { - bitField2_ |= 0x00000008; - onChanged(); - return getNodePoolDefaultsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Default NodePool settings for the entire cluster. These settings are
-     * overridden if specified on the specific NodePool object.
-     * 
- * - * optional .google.container.v1beta1.NodePoolDefaults node_pool_defaults = 131; - */ - public com.google.container.v1beta1.NodePoolDefaultsOrBuilder getNodePoolDefaultsOrBuilder() { - if (nodePoolDefaultsBuilder_ != null) { - return nodePoolDefaultsBuilder_.getMessageOrBuilder(); - } else { - return nodePoolDefaults_ == null - ? com.google.container.v1beta1.NodePoolDefaults.getDefaultInstance() - : nodePoolDefaults_; - } - } - /** - * - * - *
-     * Default NodePool settings for the entire cluster. These settings are
-     * overridden if specified on the specific NodePool object.
-     * 
- * - * optional .google.container.v1beta1.NodePoolDefaults node_pool_defaults = 131; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePoolDefaults, - com.google.container.v1beta1.NodePoolDefaults.Builder, - com.google.container.v1beta1.NodePoolDefaultsOrBuilder> - getNodePoolDefaultsFieldBuilder() { - if (nodePoolDefaultsBuilder_ == null) { - nodePoolDefaultsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePoolDefaults, - com.google.container.v1beta1.NodePoolDefaults.Builder, - com.google.container.v1beta1.NodePoolDefaultsOrBuilder>( - getNodePoolDefaults(), getParentForChildren(), isClean()); - nodePoolDefaults_ = null; - } - return nodePoolDefaultsBuilder_; - } - - private com.google.container.v1beta1.LoggingConfig loggingConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.LoggingConfig, - com.google.container.v1beta1.LoggingConfig.Builder, - com.google.container.v1beta1.LoggingConfigOrBuilder> - loggingConfigBuilder_; - /** - * - * - *
-     * Logging configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.LoggingConfig logging_config = 132; - * - * @return Whether the loggingConfig field is set. - */ - public boolean hasLoggingConfig() { - return ((bitField2_ & 0x00000010) != 0); - } - /** - * - * - *
-     * Logging configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.LoggingConfig logging_config = 132; - * - * @return The loggingConfig. - */ - public com.google.container.v1beta1.LoggingConfig getLoggingConfig() { - if (loggingConfigBuilder_ == null) { - return loggingConfig_ == null - ? com.google.container.v1beta1.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } else { - return loggingConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Logging configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.LoggingConfig logging_config = 132; - */ - public Builder setLoggingConfig(com.google.container.v1beta1.LoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - loggingConfig_ = value; - } else { - loggingConfigBuilder_.setMessage(value); - } - bitField2_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Logging configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.LoggingConfig logging_config = 132; - */ - public Builder setLoggingConfig( - com.google.container.v1beta1.LoggingConfig.Builder builderForValue) { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = builderForValue.build(); - } else { - loggingConfigBuilder_.setMessage(builderForValue.build()); - } - bitField2_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Logging configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.LoggingConfig logging_config = 132; - */ - public Builder mergeLoggingConfig(com.google.container.v1beta1.LoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (((bitField2_ & 0x00000010) != 0) - && loggingConfig_ != null - && loggingConfig_ != com.google.container.v1beta1.LoggingConfig.getDefaultInstance()) { - getLoggingConfigBuilder().mergeFrom(value); - } else { - loggingConfig_ = value; - } - } else { - loggingConfigBuilder_.mergeFrom(value); - } - if (loggingConfig_ != null) { - bitField2_ |= 0x00000010; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Logging configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.LoggingConfig logging_config = 132; - */ - public Builder clearLoggingConfig() { - bitField2_ = (bitField2_ & ~0x00000010); - loggingConfig_ = null; - if (loggingConfigBuilder_ != null) { - loggingConfigBuilder_.dispose(); - loggingConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Logging configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.LoggingConfig logging_config = 132; - */ - public com.google.container.v1beta1.LoggingConfig.Builder getLoggingConfigBuilder() { - bitField2_ |= 0x00000010; - onChanged(); - return getLoggingConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Logging configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.LoggingConfig logging_config = 132; - */ - public com.google.container.v1beta1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { - if (loggingConfigBuilder_ != null) { - return loggingConfigBuilder_.getMessageOrBuilder(); - } else { - return loggingConfig_ == null - ? com.google.container.v1beta1.LoggingConfig.getDefaultInstance() - : loggingConfig_; - } - } - /** - * - * - *
-     * Logging configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.LoggingConfig logging_config = 132; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.LoggingConfig, - com.google.container.v1beta1.LoggingConfig.Builder, - com.google.container.v1beta1.LoggingConfigOrBuilder> - getLoggingConfigFieldBuilder() { - if (loggingConfigBuilder_ == null) { - loggingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.LoggingConfig, - com.google.container.v1beta1.LoggingConfig.Builder, - com.google.container.v1beta1.LoggingConfigOrBuilder>( - getLoggingConfig(), getParentForChildren(), isClean()); - loggingConfig_ = null; - } - return loggingConfigBuilder_; - } - - private com.google.container.v1beta1.MonitoringConfig monitoringConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MonitoringConfig, - com.google.container.v1beta1.MonitoringConfig.Builder, - com.google.container.v1beta1.MonitoringConfigOrBuilder> - monitoringConfigBuilder_; - /** - * - * - *
-     * Monitoring configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.MonitoringConfig monitoring_config = 133; - * - * @return Whether the monitoringConfig field is set. - */ - public boolean hasMonitoringConfig() { - return ((bitField2_ & 0x00000020) != 0); - } - /** - * - * - *
-     * Monitoring configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.MonitoringConfig monitoring_config = 133; - * - * @return The monitoringConfig. - */ - public com.google.container.v1beta1.MonitoringConfig getMonitoringConfig() { - if (monitoringConfigBuilder_ == null) { - return monitoringConfig_ == null - ? com.google.container.v1beta1.MonitoringConfig.getDefaultInstance() - : monitoringConfig_; - } else { - return monitoringConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Monitoring configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.MonitoringConfig monitoring_config = 133; - */ - public Builder setMonitoringConfig(com.google.container.v1beta1.MonitoringConfig value) { - if (monitoringConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - monitoringConfig_ = value; - } else { - monitoringConfigBuilder_.setMessage(value); - } - bitField2_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * Monitoring configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.MonitoringConfig monitoring_config = 133; - */ - public Builder setMonitoringConfig( - com.google.container.v1beta1.MonitoringConfig.Builder builderForValue) { - if (monitoringConfigBuilder_ == null) { - monitoringConfig_ = builderForValue.build(); - } else { - monitoringConfigBuilder_.setMessage(builderForValue.build()); - } - bitField2_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * Monitoring configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.MonitoringConfig monitoring_config = 133; - */ - public Builder mergeMonitoringConfig(com.google.container.v1beta1.MonitoringConfig value) { - if (monitoringConfigBuilder_ == null) { - if (((bitField2_ & 0x00000020) != 0) - && monitoringConfig_ != null - && monitoringConfig_ - != com.google.container.v1beta1.MonitoringConfig.getDefaultInstance()) { - getMonitoringConfigBuilder().mergeFrom(value); - } else { - monitoringConfig_ = value; - } - } else { - monitoringConfigBuilder_.mergeFrom(value); - } - if (monitoringConfig_ != null) { - bitField2_ |= 0x00000020; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Monitoring configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.MonitoringConfig monitoring_config = 133; - */ - public Builder clearMonitoringConfig() { - bitField2_ = (bitField2_ & ~0x00000020); - monitoringConfig_ = null; - if (monitoringConfigBuilder_ != null) { - monitoringConfigBuilder_.dispose(); - monitoringConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Monitoring configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.MonitoringConfig monitoring_config = 133; - */ - public com.google.container.v1beta1.MonitoringConfig.Builder getMonitoringConfigBuilder() { - bitField2_ |= 0x00000020; - onChanged(); - return getMonitoringConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Monitoring configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.MonitoringConfig monitoring_config = 133; - */ - public com.google.container.v1beta1.MonitoringConfigOrBuilder getMonitoringConfigOrBuilder() { - if (monitoringConfigBuilder_ != null) { - return monitoringConfigBuilder_.getMessageOrBuilder(); - } else { - return monitoringConfig_ == null - ? com.google.container.v1beta1.MonitoringConfig.getDefaultInstance() - : monitoringConfig_; - } - } - /** - * - * - *
-     * Monitoring configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.MonitoringConfig monitoring_config = 133; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MonitoringConfig, - com.google.container.v1beta1.MonitoringConfig.Builder, - com.google.container.v1beta1.MonitoringConfigOrBuilder> - getMonitoringConfigFieldBuilder() { - if (monitoringConfigBuilder_ == null) { - monitoringConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MonitoringConfig, - com.google.container.v1beta1.MonitoringConfig.Builder, - com.google.container.v1beta1.MonitoringConfigOrBuilder>( - getMonitoringConfig(), getParentForChildren(), isClean()); - monitoringConfig_ = null; - } - return monitoringConfigBuilder_; - } - - private com.google.container.v1beta1.NodePoolAutoConfig nodePoolAutoConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePoolAutoConfig, - com.google.container.v1beta1.NodePoolAutoConfig.Builder, - com.google.container.v1beta1.NodePoolAutoConfigOrBuilder> - nodePoolAutoConfigBuilder_; - /** - * - * - *
-     * Node pool configs that apply to all auto-provisioned node pools
-     * in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoConfig node_pool_auto_config = 136; - * - * @return Whether the nodePoolAutoConfig field is set. - */ - public boolean hasNodePoolAutoConfig() { - return ((bitField2_ & 0x00000040) != 0); - } - /** - * - * - *
-     * Node pool configs that apply to all auto-provisioned node pools
-     * in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoConfig node_pool_auto_config = 136; - * - * @return The nodePoolAutoConfig. - */ - public com.google.container.v1beta1.NodePoolAutoConfig getNodePoolAutoConfig() { - if (nodePoolAutoConfigBuilder_ == null) { - return nodePoolAutoConfig_ == null - ? com.google.container.v1beta1.NodePoolAutoConfig.getDefaultInstance() - : nodePoolAutoConfig_; - } else { - return nodePoolAutoConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Node pool configs that apply to all auto-provisioned node pools
-     * in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoConfig node_pool_auto_config = 136; - */ - public Builder setNodePoolAutoConfig(com.google.container.v1beta1.NodePoolAutoConfig value) { - if (nodePoolAutoConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - nodePoolAutoConfig_ = value; - } else { - nodePoolAutoConfigBuilder_.setMessage(value); - } - bitField2_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-     * Node pool configs that apply to all auto-provisioned node pools
-     * in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoConfig node_pool_auto_config = 136; - */ - public Builder setNodePoolAutoConfig( - com.google.container.v1beta1.NodePoolAutoConfig.Builder builderForValue) { - if (nodePoolAutoConfigBuilder_ == null) { - nodePoolAutoConfig_ = builderForValue.build(); - } else { - nodePoolAutoConfigBuilder_.setMessage(builderForValue.build()); - } - bitField2_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-     * Node pool configs that apply to all auto-provisioned node pools
-     * in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoConfig node_pool_auto_config = 136; - */ - public Builder mergeNodePoolAutoConfig(com.google.container.v1beta1.NodePoolAutoConfig value) { - if (nodePoolAutoConfigBuilder_ == null) { - if (((bitField2_ & 0x00000040) != 0) - && nodePoolAutoConfig_ != null - && nodePoolAutoConfig_ - != com.google.container.v1beta1.NodePoolAutoConfig.getDefaultInstance()) { - getNodePoolAutoConfigBuilder().mergeFrom(value); - } else { - nodePoolAutoConfig_ = value; - } - } else { - nodePoolAutoConfigBuilder_.mergeFrom(value); - } - if (nodePoolAutoConfig_ != null) { - bitField2_ |= 0x00000040; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Node pool configs that apply to all auto-provisioned node pools
-     * in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoConfig node_pool_auto_config = 136; - */ - public Builder clearNodePoolAutoConfig() { - bitField2_ = (bitField2_ & ~0x00000040); - nodePoolAutoConfig_ = null; - if (nodePoolAutoConfigBuilder_ != null) { - nodePoolAutoConfigBuilder_.dispose(); - nodePoolAutoConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Node pool configs that apply to all auto-provisioned node pools
-     * in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoConfig node_pool_auto_config = 136; - */ - public com.google.container.v1beta1.NodePoolAutoConfig.Builder getNodePoolAutoConfigBuilder() { - bitField2_ |= 0x00000040; - onChanged(); - return getNodePoolAutoConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Node pool configs that apply to all auto-provisioned node pools
-     * in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoConfig node_pool_auto_config = 136; - */ - public com.google.container.v1beta1.NodePoolAutoConfigOrBuilder - getNodePoolAutoConfigOrBuilder() { - if (nodePoolAutoConfigBuilder_ != null) { - return nodePoolAutoConfigBuilder_.getMessageOrBuilder(); - } else { - return nodePoolAutoConfig_ == null - ? com.google.container.v1beta1.NodePoolAutoConfig.getDefaultInstance() - : nodePoolAutoConfig_; - } - } - /** - * - * - *
-     * Node pool configs that apply to all auto-provisioned node pools
-     * in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoConfig node_pool_auto_config = 136; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePoolAutoConfig, - com.google.container.v1beta1.NodePoolAutoConfig.Builder, - com.google.container.v1beta1.NodePoolAutoConfigOrBuilder> - getNodePoolAutoConfigFieldBuilder() { - if (nodePoolAutoConfigBuilder_ == null) { - nodePoolAutoConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePoolAutoConfig, - com.google.container.v1beta1.NodePoolAutoConfig.Builder, - com.google.container.v1beta1.NodePoolAutoConfigOrBuilder>( - getNodePoolAutoConfig(), getParentForChildren(), isClean()); - nodePoolAutoConfig_ = null; - } - return nodePoolAutoConfigBuilder_; - } - - private com.google.container.v1beta1.ProtectConfig protectConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ProtectConfig, - com.google.container.v1beta1.ProtectConfig.Builder, - com.google.container.v1beta1.ProtectConfigOrBuilder> - protectConfigBuilder_; - /** - * - * - *
-     * Deprecated: Use SecurityPostureConfig instead.
-     * Enable/Disable Protect API features for the cluster.
-     * 
- * - * - * optional .google.container.v1beta1.ProtectConfig protect_config = 137 [deprecated = true]; - * - * - * @deprecated google.container.v1beta1.Cluster.protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2270 - * @return Whether the protectConfig field is set. - */ - @java.lang.Deprecated - public boolean hasProtectConfig() { - return ((bitField2_ & 0x00000080) != 0); - } - /** - * - * - *
-     * Deprecated: Use SecurityPostureConfig instead.
-     * Enable/Disable Protect API features for the cluster.
-     * 
- * - * - * optional .google.container.v1beta1.ProtectConfig protect_config = 137 [deprecated = true]; - * - * - * @deprecated google.container.v1beta1.Cluster.protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2270 - * @return The protectConfig. - */ - @java.lang.Deprecated - public com.google.container.v1beta1.ProtectConfig getProtectConfig() { - if (protectConfigBuilder_ == null) { - return protectConfig_ == null - ? com.google.container.v1beta1.ProtectConfig.getDefaultInstance() - : protectConfig_; - } else { - return protectConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Deprecated: Use SecurityPostureConfig instead.
-     * Enable/Disable Protect API features for the cluster.
-     * 
- * - * - * optional .google.container.v1beta1.ProtectConfig protect_config = 137 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder setProtectConfig(com.google.container.v1beta1.ProtectConfig value) { - if (protectConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - protectConfig_ = value; - } else { - protectConfigBuilder_.setMessage(value); - } - bitField2_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated: Use SecurityPostureConfig instead.
-     * Enable/Disable Protect API features for the cluster.
-     * 
- * - * - * optional .google.container.v1beta1.ProtectConfig protect_config = 137 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder setProtectConfig( - com.google.container.v1beta1.ProtectConfig.Builder builderForValue) { - if (protectConfigBuilder_ == null) { - protectConfig_ = builderForValue.build(); - } else { - protectConfigBuilder_.setMessage(builderForValue.build()); - } - bitField2_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated: Use SecurityPostureConfig instead.
-     * Enable/Disable Protect API features for the cluster.
-     * 
- * - * - * optional .google.container.v1beta1.ProtectConfig protect_config = 137 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder mergeProtectConfig(com.google.container.v1beta1.ProtectConfig value) { - if (protectConfigBuilder_ == null) { - if (((bitField2_ & 0x00000080) != 0) - && protectConfig_ != null - && protectConfig_ != com.google.container.v1beta1.ProtectConfig.getDefaultInstance()) { - getProtectConfigBuilder().mergeFrom(value); - } else { - protectConfig_ = value; - } - } else { - protectConfigBuilder_.mergeFrom(value); - } - if (protectConfig_ != null) { - bitField2_ |= 0x00000080; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Deprecated: Use SecurityPostureConfig instead.
-     * Enable/Disable Protect API features for the cluster.
-     * 
- * - * - * optional .google.container.v1beta1.ProtectConfig protect_config = 137 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder clearProtectConfig() { - bitField2_ = (bitField2_ & ~0x00000080); - protectConfig_ = null; - if (protectConfigBuilder_ != null) { - protectConfigBuilder_.dispose(); - protectConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated: Use SecurityPostureConfig instead.
-     * Enable/Disable Protect API features for the cluster.
-     * 
- * - * - * optional .google.container.v1beta1.ProtectConfig protect_config = 137 [deprecated = true]; - * - */ - @java.lang.Deprecated - public com.google.container.v1beta1.ProtectConfig.Builder getProtectConfigBuilder() { - bitField2_ |= 0x00000080; - onChanged(); - return getProtectConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Deprecated: Use SecurityPostureConfig instead.
-     * Enable/Disable Protect API features for the cluster.
-     * 
- * - * - * optional .google.container.v1beta1.ProtectConfig protect_config = 137 [deprecated = true]; - * - */ - @java.lang.Deprecated - public com.google.container.v1beta1.ProtectConfigOrBuilder getProtectConfigOrBuilder() { - if (protectConfigBuilder_ != null) { - return protectConfigBuilder_.getMessageOrBuilder(); - } else { - return protectConfig_ == null - ? com.google.container.v1beta1.ProtectConfig.getDefaultInstance() - : protectConfig_; - } - } - /** - * - * - *
-     * Deprecated: Use SecurityPostureConfig instead.
-     * Enable/Disable Protect API features for the cluster.
-     * 
- * - * - * optional .google.container.v1beta1.ProtectConfig protect_config = 137 [deprecated = true]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ProtectConfig, - com.google.container.v1beta1.ProtectConfig.Builder, - com.google.container.v1beta1.ProtectConfigOrBuilder> - getProtectConfigFieldBuilder() { - if (protectConfigBuilder_ == null) { - protectConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ProtectConfig, - com.google.container.v1beta1.ProtectConfig.Builder, - com.google.container.v1beta1.ProtectConfigOrBuilder>( - getProtectConfig(), getParentForChildren(), isClean()); - protectConfig_ = null; - } - return protectConfigBuilder_; - } - - private java.lang.Object etag_ = ""; - /** - * - * - *
-     * This checksum is computed by the server based on the value of cluster
-     * fields, and may be sent on update requests to ensure the client has an
-     * up-to-date value before proceeding.
-     * 
- * - * string etag = 139; - * - * @return The etag. - */ - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * This checksum is computed by the server based on the value of cluster
-     * fields, and may be sent on update requests to ensure the client has an
-     * up-to-date value before proceeding.
-     * 
- * - * string etag = 139; - * - * @return The bytes for etag. - */ - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * This checksum is computed by the server based on the value of cluster
-     * fields, and may be sent on update requests to ensure the client has an
-     * up-to-date value before proceeding.
-     * 
- * - * string etag = 139; - * - * @param value The etag to set. - * @return This builder for chaining. - */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - etag_ = value; - bitField2_ |= 0x00000100; - onChanged(); - return this; - } - /** - * - * - *
-     * This checksum is computed by the server based on the value of cluster
-     * fields, and may be sent on update requests to ensure the client has an
-     * up-to-date value before proceeding.
-     * 
- * - * string etag = 139; - * - * @return This builder for chaining. - */ - public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); - bitField2_ = (bitField2_ & ~0x00000100); - onChanged(); - return this; - } - /** - * - * - *
-     * This checksum is computed by the server based on the value of cluster
-     * fields, and may be sent on update requests to ensure the client has an
-     * up-to-date value before proceeding.
-     * 
- * - * string etag = 139; - * - * @param value The bytes for etag to set. - * @return This builder for chaining. - */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - etag_ = value; - bitField2_ |= 0x00000100; - onChanged(); - return this; - } - - private com.google.container.v1beta1.Fleet fleet_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.Fleet, - com.google.container.v1beta1.Fleet.Builder, - com.google.container.v1beta1.FleetOrBuilder> - fleetBuilder_; - /** - * - * - *
-     * Fleet information for the cluster.
-     * 
- * - * .google.container.v1beta1.Fleet fleet = 140; - * - * @return Whether the fleet field is set. - */ - public boolean hasFleet() { - return ((bitField2_ & 0x00000200) != 0); - } - /** - * - * - *
-     * Fleet information for the cluster.
-     * 
- * - * .google.container.v1beta1.Fleet fleet = 140; - * - * @return The fleet. - */ - public com.google.container.v1beta1.Fleet getFleet() { - if (fleetBuilder_ == null) { - return fleet_ == null ? com.google.container.v1beta1.Fleet.getDefaultInstance() : fleet_; - } else { - return fleetBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Fleet information for the cluster.
-     * 
- * - * .google.container.v1beta1.Fleet fleet = 140; - */ - public Builder setFleet(com.google.container.v1beta1.Fleet value) { - if (fleetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - fleet_ = value; - } else { - fleetBuilder_.setMessage(value); - } - bitField2_ |= 0x00000200; - onChanged(); - return this; - } - /** - * - * - *
-     * Fleet information for the cluster.
-     * 
- * - * .google.container.v1beta1.Fleet fleet = 140; - */ - public Builder setFleet(com.google.container.v1beta1.Fleet.Builder builderForValue) { - if (fleetBuilder_ == null) { - fleet_ = builderForValue.build(); - } else { - fleetBuilder_.setMessage(builderForValue.build()); - } - bitField2_ |= 0x00000200; - onChanged(); - return this; - } - /** - * - * - *
-     * Fleet information for the cluster.
-     * 
- * - * .google.container.v1beta1.Fleet fleet = 140; - */ - public Builder mergeFleet(com.google.container.v1beta1.Fleet value) { - if (fleetBuilder_ == null) { - if (((bitField2_ & 0x00000200) != 0) - && fleet_ != null - && fleet_ != com.google.container.v1beta1.Fleet.getDefaultInstance()) { - getFleetBuilder().mergeFrom(value); - } else { - fleet_ = value; - } - } else { - fleetBuilder_.mergeFrom(value); - } - if (fleet_ != null) { - bitField2_ |= 0x00000200; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Fleet information for the cluster.
-     * 
- * - * .google.container.v1beta1.Fleet fleet = 140; - */ - public Builder clearFleet() { - bitField2_ = (bitField2_ & ~0x00000200); - fleet_ = null; - if (fleetBuilder_ != null) { - fleetBuilder_.dispose(); - fleetBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Fleet information for the cluster.
-     * 
- * - * .google.container.v1beta1.Fleet fleet = 140; - */ - public com.google.container.v1beta1.Fleet.Builder getFleetBuilder() { - bitField2_ |= 0x00000200; - onChanged(); - return getFleetFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Fleet information for the cluster.
-     * 
- * - * .google.container.v1beta1.Fleet fleet = 140; - */ - public com.google.container.v1beta1.FleetOrBuilder getFleetOrBuilder() { - if (fleetBuilder_ != null) { - return fleetBuilder_.getMessageOrBuilder(); - } else { - return fleet_ == null ? com.google.container.v1beta1.Fleet.getDefaultInstance() : fleet_; - } - } - /** - * - * - *
-     * Fleet information for the cluster.
-     * 
- * - * .google.container.v1beta1.Fleet fleet = 140; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.Fleet, - com.google.container.v1beta1.Fleet.Builder, - com.google.container.v1beta1.FleetOrBuilder> - getFleetFieldBuilder() { - if (fleetBuilder_ == null) { - fleetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.Fleet, - com.google.container.v1beta1.Fleet.Builder, - com.google.container.v1beta1.FleetOrBuilder>( - getFleet(), getParentForChildren(), isClean()); - fleet_ = null; - } - return fleetBuilder_; - } - - private com.google.container.v1beta1.SecurityPostureConfig securityPostureConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.SecurityPostureConfig, - com.google.container.v1beta1.SecurityPostureConfig.Builder, - com.google.container.v1beta1.SecurityPostureConfigOrBuilder> - securityPostureConfigBuilder_; - /** - * - * - *
-     * Enable/Disable Security Posture API features for the cluster.
-     * 
- * - * .google.container.v1beta1.SecurityPostureConfig security_posture_config = 145; - * - * @return Whether the securityPostureConfig field is set. - */ - public boolean hasSecurityPostureConfig() { - return ((bitField2_ & 0x00000400) != 0); - } - /** - * - * - *
-     * Enable/Disable Security Posture API features for the cluster.
-     * 
- * - * .google.container.v1beta1.SecurityPostureConfig security_posture_config = 145; - * - * @return The securityPostureConfig. - */ - public com.google.container.v1beta1.SecurityPostureConfig getSecurityPostureConfig() { - if (securityPostureConfigBuilder_ == null) { - return securityPostureConfig_ == null - ? com.google.container.v1beta1.SecurityPostureConfig.getDefaultInstance() - : securityPostureConfig_; - } else { - return securityPostureConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Enable/Disable Security Posture API features for the cluster.
-     * 
- * - * .google.container.v1beta1.SecurityPostureConfig security_posture_config = 145; - */ - public Builder setSecurityPostureConfig( - com.google.container.v1beta1.SecurityPostureConfig value) { - if (securityPostureConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - securityPostureConfig_ = value; - } else { - securityPostureConfigBuilder_.setMessage(value); - } - bitField2_ |= 0x00000400; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable/Disable Security Posture API features for the cluster.
-     * 
- * - * .google.container.v1beta1.SecurityPostureConfig security_posture_config = 145; - */ - public Builder setSecurityPostureConfig( - com.google.container.v1beta1.SecurityPostureConfig.Builder builderForValue) { - if (securityPostureConfigBuilder_ == null) { - securityPostureConfig_ = builderForValue.build(); - } else { - securityPostureConfigBuilder_.setMessage(builderForValue.build()); - } - bitField2_ |= 0x00000400; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable/Disable Security Posture API features for the cluster.
-     * 
- * - * .google.container.v1beta1.SecurityPostureConfig security_posture_config = 145; - */ - public Builder mergeSecurityPostureConfig( - com.google.container.v1beta1.SecurityPostureConfig value) { - if (securityPostureConfigBuilder_ == null) { - if (((bitField2_ & 0x00000400) != 0) - && securityPostureConfig_ != null - && securityPostureConfig_ - != com.google.container.v1beta1.SecurityPostureConfig.getDefaultInstance()) { - getSecurityPostureConfigBuilder().mergeFrom(value); - } else { - securityPostureConfig_ = value; - } - } else { - securityPostureConfigBuilder_.mergeFrom(value); - } - if (securityPostureConfig_ != null) { - bitField2_ |= 0x00000400; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Enable/Disable Security Posture API features for the cluster.
-     * 
- * - * .google.container.v1beta1.SecurityPostureConfig security_posture_config = 145; - */ - public Builder clearSecurityPostureConfig() { - bitField2_ = (bitField2_ & ~0x00000400); - securityPostureConfig_ = null; - if (securityPostureConfigBuilder_ != null) { - securityPostureConfigBuilder_.dispose(); - securityPostureConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Enable/Disable Security Posture API features for the cluster.
-     * 
- * - * .google.container.v1beta1.SecurityPostureConfig security_posture_config = 145; - */ - public com.google.container.v1beta1.SecurityPostureConfig.Builder - getSecurityPostureConfigBuilder() { - bitField2_ |= 0x00000400; - onChanged(); - return getSecurityPostureConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Enable/Disable Security Posture API features for the cluster.
-     * 
- * - * .google.container.v1beta1.SecurityPostureConfig security_posture_config = 145; - */ - public com.google.container.v1beta1.SecurityPostureConfigOrBuilder - getSecurityPostureConfigOrBuilder() { - if (securityPostureConfigBuilder_ != null) { - return securityPostureConfigBuilder_.getMessageOrBuilder(); - } else { - return securityPostureConfig_ == null - ? com.google.container.v1beta1.SecurityPostureConfig.getDefaultInstance() - : securityPostureConfig_; - } - } - /** - * - * - *
-     * Enable/Disable Security Posture API features for the cluster.
-     * 
- * - * .google.container.v1beta1.SecurityPostureConfig security_posture_config = 145; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.SecurityPostureConfig, - com.google.container.v1beta1.SecurityPostureConfig.Builder, - com.google.container.v1beta1.SecurityPostureConfigOrBuilder> - getSecurityPostureConfigFieldBuilder() { - if (securityPostureConfigBuilder_ == null) { - securityPostureConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.SecurityPostureConfig, - com.google.container.v1beta1.SecurityPostureConfig.Builder, - com.google.container.v1beta1.SecurityPostureConfigOrBuilder>( - getSecurityPostureConfig(), getParentForChildren(), isClean()); - securityPostureConfig_ = null; - } - return securityPostureConfigBuilder_; - } - - private com.google.container.v1beta1.EnterpriseConfig enterpriseConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.EnterpriseConfig, - com.google.container.v1beta1.EnterpriseConfig.Builder, - com.google.container.v1beta1.EnterpriseConfigOrBuilder> - enterpriseConfigBuilder_; - /** - * - * - *
-     * GKE Enterprise Configuration.
-     * 
- * - * .google.container.v1beta1.EnterpriseConfig enterprise_config = 149; - * - * @return Whether the enterpriseConfig field is set. - */ - public boolean hasEnterpriseConfig() { - return ((bitField2_ & 0x00000800) != 0); - } - /** - * - * - *
-     * GKE Enterprise Configuration.
-     * 
- * - * .google.container.v1beta1.EnterpriseConfig enterprise_config = 149; - * - * @return The enterpriseConfig. - */ - public com.google.container.v1beta1.EnterpriseConfig getEnterpriseConfig() { - if (enterpriseConfigBuilder_ == null) { - return enterpriseConfig_ == null - ? com.google.container.v1beta1.EnterpriseConfig.getDefaultInstance() - : enterpriseConfig_; - } else { - return enterpriseConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * GKE Enterprise Configuration.
-     * 
- * - * .google.container.v1beta1.EnterpriseConfig enterprise_config = 149; - */ - public Builder setEnterpriseConfig(com.google.container.v1beta1.EnterpriseConfig value) { - if (enterpriseConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - enterpriseConfig_ = value; - } else { - enterpriseConfigBuilder_.setMessage(value); - } - bitField2_ |= 0x00000800; - onChanged(); - return this; - } - /** - * - * - *
-     * GKE Enterprise Configuration.
-     * 
- * - * .google.container.v1beta1.EnterpriseConfig enterprise_config = 149; - */ - public Builder setEnterpriseConfig( - com.google.container.v1beta1.EnterpriseConfig.Builder builderForValue) { - if (enterpriseConfigBuilder_ == null) { - enterpriseConfig_ = builderForValue.build(); - } else { - enterpriseConfigBuilder_.setMessage(builderForValue.build()); - } - bitField2_ |= 0x00000800; - onChanged(); - return this; - } - /** - * - * - *
-     * GKE Enterprise Configuration.
-     * 
- * - * .google.container.v1beta1.EnterpriseConfig enterprise_config = 149; - */ - public Builder mergeEnterpriseConfig(com.google.container.v1beta1.EnterpriseConfig value) { - if (enterpriseConfigBuilder_ == null) { - if (((bitField2_ & 0x00000800) != 0) - && enterpriseConfig_ != null - && enterpriseConfig_ - != com.google.container.v1beta1.EnterpriseConfig.getDefaultInstance()) { - getEnterpriseConfigBuilder().mergeFrom(value); - } else { - enterpriseConfig_ = value; - } - } else { - enterpriseConfigBuilder_.mergeFrom(value); - } - if (enterpriseConfig_ != null) { - bitField2_ |= 0x00000800; - onChanged(); - } - return this; - } - /** - * - * - *
-     * GKE Enterprise Configuration.
-     * 
- * - * .google.container.v1beta1.EnterpriseConfig enterprise_config = 149; - */ - public Builder clearEnterpriseConfig() { - bitField2_ = (bitField2_ & ~0x00000800); - enterpriseConfig_ = null; - if (enterpriseConfigBuilder_ != null) { - enterpriseConfigBuilder_.dispose(); - enterpriseConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * GKE Enterprise Configuration.
-     * 
- * - * .google.container.v1beta1.EnterpriseConfig enterprise_config = 149; - */ - public com.google.container.v1beta1.EnterpriseConfig.Builder getEnterpriseConfigBuilder() { - bitField2_ |= 0x00000800; - onChanged(); - return getEnterpriseConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * GKE Enterprise Configuration.
-     * 
- * - * .google.container.v1beta1.EnterpriseConfig enterprise_config = 149; - */ - public com.google.container.v1beta1.EnterpriseConfigOrBuilder getEnterpriseConfigOrBuilder() { - if (enterpriseConfigBuilder_ != null) { - return enterpriseConfigBuilder_.getMessageOrBuilder(); - } else { - return enterpriseConfig_ == null - ? com.google.container.v1beta1.EnterpriseConfig.getDefaultInstance() - : enterpriseConfig_; - } - } - /** - * - * - *
-     * GKE Enterprise Configuration.
-     * 
- * - * .google.container.v1beta1.EnterpriseConfig enterprise_config = 149; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.EnterpriseConfig, - com.google.container.v1beta1.EnterpriseConfig.Builder, - com.google.container.v1beta1.EnterpriseConfigOrBuilder> - getEnterpriseConfigFieldBuilder() { - if (enterpriseConfigBuilder_ == null) { - enterpriseConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.EnterpriseConfig, - com.google.container.v1beta1.EnterpriseConfig.Builder, - com.google.container.v1beta1.EnterpriseConfigOrBuilder>( - getEnterpriseConfig(), getParentForChildren(), isClean()); - enterpriseConfig_ = null; - } - return enterpriseConfigBuilder_; - } - - @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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterAutoscaling.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterAutoscaling.java deleted file mode 100644 index d54c7003a6af..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterAutoscaling.java +++ /dev/null @@ -1,2040 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ClusterAutoscaling(); - } - - 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) - } - - private int bitField0_; - public static final int ENABLE_NODE_AUTOPROVISIONING_FIELD_NUMBER = 1; - private boolean enableNodeAutoprovisioning_ = false; - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - 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_ = 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; - * - * - * @return The autoscalingProfile. - */ - @java.lang.Override - public com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile - getAutoscalingProfile() { - com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile result = - com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile.forNumber( - 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 ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * 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 autoprovisioningNodePoolDefaults_ == null - ? com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.getDefaultInstance() - : autoprovisioningNodePoolDefaults_; - } - - public static final int AUTOPROVISIONING_LOCATIONS_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList autoprovisioningLocations_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * 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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(4, getAutoprovisioningNodePoolDefaults()); - } - for (int i = 0; i < autoprovisioningLocations_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 5, autoprovisioningLocations_.getRaw(i)); - } - getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) { - 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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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(); - getAutoprovisioningNodePoolDefaultsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enableNodeAutoprovisioning_ = false; - if (resourceLimitsBuilder_ == null) { - resourceLimits_ = java.util.Collections.emptyList(); - } else { - resourceLimits_ = null; - resourceLimitsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - autoscalingProfile_ = 0; - autoprovisioningNodePoolDefaults_ = null; - if (autoprovisioningNodePoolDefaultsBuilder_ != null) { - autoprovisioningNodePoolDefaultsBuilder_.dispose(); - autoprovisioningNodePoolDefaultsBuilder_ = null; - } - autoprovisioningLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - 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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.container.v1beta1.ClusterAutoscaling result) { - if (resourceLimitsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - resourceLimits_ = java.util.Collections.unmodifiableList(resourceLimits_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.resourceLimits_ = resourceLimits_; - } else { - result.resourceLimits_ = resourceLimitsBuilder_.build(); - } - } - - private void buildPartial0(com.google.container.v1beta1.ClusterAutoscaling result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enableNodeAutoprovisioning_ = enableNodeAutoprovisioning_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.autoscalingProfile_ = autoscalingProfile_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.autoprovisioningNodePoolDefaults_ = - autoprovisioningNodePoolDefaultsBuilder_ == null - ? autoprovisioningNodePoolDefaults_ - : autoprovisioningNodePoolDefaultsBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - autoprovisioningLocations_.makeImmutable(); - result.autoprovisioningLocations_ = autoprovisioningLocations_; - } - result.bitField0_ |= to_bitField0_; - } - - @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_ & ~0x00000002); - } else { - ensureResourceLimitsIsMutable(); - resourceLimits_.addAll(other.resourceLimits_); - } - onChanged(); - } - } else { - if (!other.resourceLimits_.isEmpty()) { - if (resourceLimitsBuilder_.isEmpty()) { - resourceLimitsBuilder_.dispose(); - resourceLimitsBuilder_ = null; - resourceLimits_ = other.resourceLimits_; - bitField0_ = (bitField0_ & ~0x00000002); - resourceLimitsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getResourceLimitsFieldBuilder() - : null; - } else { - resourceLimitsBuilder_.addAllMessages(other.resourceLimits_); - } - } - } - if (other.autoscalingProfile_ != 0) { - setAutoscalingProfileValue(other.getAutoscalingProfileValue()); - } - if (other.hasAutoprovisioningNodePoolDefaults()) { - mergeAutoprovisioningNodePoolDefaults(other.getAutoprovisioningNodePoolDefaults()); - } - if (!other.autoprovisioningLocations_.isEmpty()) { - if (autoprovisioningLocations_.isEmpty()) { - autoprovisioningLocations_ = other.autoprovisioningLocations_; - bitField0_ |= 0x00000010; - } else { - ensureAutoprovisioningLocationsIsMutable(); - autoprovisioningLocations_.addAll(other.autoprovisioningLocations_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enableNodeAutoprovisioning_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - com.google.container.v1beta1.ResourceLimit m = - input.readMessage( - com.google.container.v1beta1.ResourceLimit.parser(), extensionRegistry); - if (resourceLimitsBuilder_ == null) { - ensureResourceLimitsIsMutable(); - resourceLimits_.add(m); - } else { - resourceLimitsBuilder_.addMessage(m); - } - break; - } // case 18 - case 24: - { - autoscalingProfile_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - input.readMessage( - getAutoprovisioningNodePoolDefaultsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureAutoprovisioningLocationsIsMutable(); - autoprovisioningLocations_.add(s); - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Enables automatic node pool creation and deletion.
-     * 
- * - * bool enable_node_autoprovisioning = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnableNodeAutoprovisioning() { - bitField0_ = (bitField0_ & ~0x00000001); - enableNodeAutoprovisioning_ = false; - onChanged(); - return this; - } - - private java.util.List resourceLimits_ = - java.util.Collections.emptyList(); - - private void ensureResourceLimitsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - resourceLimits_ = - new java.util.ArrayList(resourceLimits_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.ResourceLimit, - com.google.container.v1beta1.ResourceLimit.Builder, - com.google.container.v1beta1.ResourceLimitOrBuilder> - resourceLimitsBuilder_; - - /** - * - * - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - public java.util.List getResourceLimitsList() { - if (resourceLimitsBuilder_ == null) { - return java.util.Collections.unmodifiableList(resourceLimits_); - } else { - return resourceLimitsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - public int getResourceLimitsCount() { - if (resourceLimitsBuilder_ == null) { - return resourceLimits_.size(); - } else { - return resourceLimitsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - public com.google.container.v1beta1.ResourceLimit getResourceLimits(int index) { - if (resourceLimitsBuilder_ == null) { - return resourceLimits_.get(index); - } else { - return resourceLimitsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - public Builder setResourceLimits(int index, com.google.container.v1beta1.ResourceLimit value) { - if (resourceLimitsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureResourceLimitsIsMutable(); - resourceLimits_.set(index, value); - onChanged(); - } else { - resourceLimitsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - public Builder setResourceLimits( - int index, com.google.container.v1beta1.ResourceLimit.Builder builderForValue) { - if (resourceLimitsBuilder_ == null) { - ensureResourceLimitsIsMutable(); - resourceLimits_.set(index, builderForValue.build()); - onChanged(); - } else { - resourceLimitsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - public Builder addResourceLimits(com.google.container.v1beta1.ResourceLimit value) { - if (resourceLimitsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureResourceLimitsIsMutable(); - resourceLimits_.add(value); - onChanged(); - } else { - resourceLimitsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - public Builder addResourceLimits(int index, com.google.container.v1beta1.ResourceLimit value) { - if (resourceLimitsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureResourceLimitsIsMutable(); - resourceLimits_.add(index, value); - onChanged(); - } else { - resourceLimitsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - public Builder addResourceLimits( - com.google.container.v1beta1.ResourceLimit.Builder builderForValue) { - if (resourceLimitsBuilder_ == null) { - ensureResourceLimitsIsMutable(); - resourceLimits_.add(builderForValue.build()); - onChanged(); - } else { - resourceLimitsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - public Builder addResourceLimits( - int index, com.google.container.v1beta1.ResourceLimit.Builder builderForValue) { - if (resourceLimitsBuilder_ == null) { - ensureResourceLimitsIsMutable(); - resourceLimits_.add(index, builderForValue.build()); - onChanged(); - } else { - resourceLimitsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - public Builder addAllResourceLimits( - java.lang.Iterable values) { - if (resourceLimitsBuilder_ == null) { - ensureResourceLimitsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceLimits_); - onChanged(); - } else { - resourceLimitsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - public Builder clearResourceLimits() { - if (resourceLimitsBuilder_ == null) { - resourceLimits_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - resourceLimitsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - public Builder removeResourceLimits(int index) { - if (resourceLimitsBuilder_ == null) { - ensureResourceLimitsIsMutable(); - resourceLimits_.remove(index); - onChanged(); - } else { - resourceLimitsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - public com.google.container.v1beta1.ResourceLimit.Builder getResourceLimitsBuilder(int index) { - return getResourceLimitsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - public com.google.container.v1beta1.ResourceLimitOrBuilder getResourceLimitsOrBuilder( - int index) { - if (resourceLimitsBuilder_ == null) { - return resourceLimits_.get(index); - } else { - return resourceLimitsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - public java.util.List - getResourceLimitsOrBuilderList() { - if (resourceLimitsBuilder_ != null) { - return resourceLimitsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(resourceLimits_); - } - } - /** - * - * - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - public com.google.container.v1beta1.ResourceLimit.Builder addResourceLimitsBuilder() { - return getResourceLimitsFieldBuilder() - .addBuilder(com.google.container.v1beta1.ResourceLimit.getDefaultInstance()); - } - /** - * - * - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - public com.google.container.v1beta1.ResourceLimit.Builder addResourceLimitsBuilder(int index) { - return getResourceLimitsFieldBuilder() - .addBuilder(index, com.google.container.v1beta1.ResourceLimit.getDefaultInstance()); - } - /** - * - * - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; - */ - public java.util.List - getResourceLimitsBuilderList() { - return getResourceLimitsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.ResourceLimit, - com.google.container.v1beta1.ResourceLimit.Builder, - com.google.container.v1beta1.ResourceLimitOrBuilder> - getResourceLimitsFieldBuilder() { - if (resourceLimitsBuilder_ == null) { - resourceLimitsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.ResourceLimit, - com.google.container.v1beta1.ResourceLimit.Builder, - com.google.container.v1beta1.ResourceLimitOrBuilder>( - resourceLimits_, - ((bitField0_ & 0x00000002) != 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; - bitField0_ |= 0x00000004; - 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() { - com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile result = - com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile.forNumber( - 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(); - } - bitField0_ |= 0x00000004; - 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() { - bitField0_ = (bitField0_ & ~0x00000004); - 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 ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-     * 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; - } else { - autoprovisioningNodePoolDefaultsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - 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(); - } else { - autoprovisioningNodePoolDefaultsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - 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 (((bitField0_ & 0x00000008) != 0) - && autoprovisioningNodePoolDefaults_ != null - && autoprovisioningNodePoolDefaults_ - != com.google.container.v1beta1.AutoprovisioningNodePoolDefaults - .getDefaultInstance()) { - getAutoprovisioningNodePoolDefaultsBuilder().mergeFrom(value); - } else { - autoprovisioningNodePoolDefaults_ = value; - } - } else { - autoprovisioningNodePoolDefaultsBuilder_.mergeFrom(value); - } - if (autoprovisioningNodePoolDefaults_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - return this; - } - /** - * - * - *
-     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-     * created by NAP.
-     * 
- * - * - * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * - */ - public Builder clearAutoprovisioningNodePoolDefaults() { - bitField0_ = (bitField0_ & ~0x00000008); - autoprovisioningNodePoolDefaults_ = null; - if (autoprovisioningNodePoolDefaultsBuilder_ != null) { - autoprovisioningNodePoolDefaultsBuilder_.dispose(); - autoprovisioningNodePoolDefaultsBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000008; - 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.LazyStringArrayList autoprovisioningLocations_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureAutoprovisioningLocationsIsMutable() { - if (!autoprovisioningLocations_.isModifiable()) { - autoprovisioningLocations_ = - new com.google.protobuf.LazyStringArrayList(autoprovisioningLocations_); - } - bitField0_ |= 0x00000010; - } - /** - * - * - *
-     * 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() { - autoprovisioningLocations_.makeImmutable(); - 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); - } - /** - * - * - *
-     * 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); - bitField0_ |= 0x00000010; - 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); - bitField0_ |= 0x00000010; - 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_); - bitField0_ |= 0x00000010; - 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.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - ; - 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); - bitField0_ |= 0x00000010; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterAutoscalingOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterAutoscalingOrBuilder.java deleted file mode 100644 index 0ef47d84464a..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterAutoscalingOrBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterOrBuilder.java deleted file mode 100644 index 6ac9a0c30f8d..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterOrBuilder.java +++ /dev/null @@ -1,2807 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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]; - * - * @deprecated google.container.v1beta1.Cluster.initial_node_count is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1936 - * @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]; - * - * @deprecated google.container.v1beta1.Cluster.node_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1949 - * @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]; - * - * @deprecated google.container.v1beta1.Cluster.node_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1949 - * @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(); - - /** - * - * - *
-   * Kubernetes open source beta apis enabled on the cluster. Only beta apis.
-   * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; - * - * @return Whether the enableK8sBetaApis field is set. - */ - boolean hasEnableK8SBetaApis(); - /** - * - * - *
-   * Kubernetes open source beta apis enabled on the cluster. Only beta apis.
-   * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; - * - * @return The enableK8sBetaApis. - */ - com.google.container.v1beta1.K8sBetaAPIConfig getEnableK8SBetaApis(); - /** - * - * - *
-   * Kubernetes open source beta apis enabled on the cluster. Only beta apis.
-   * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; - */ - com.google.container.v1beta1.K8sBetaAPIConfigOrBuilder getEnableK8SBetaApisOrBuilder(); - - /** - * - * - *
-   * 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; - */ - /* nullable */ - java.lang.String getResourceLabelsOrDefault( - java.lang.String key, - /* nullable */ - 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]; - * - * @deprecated google.container.v1beta1.Cluster.private_cluster is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2074 - * @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]; - * - * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2081 - * @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]; - * - * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2081 - * @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. If left unspecified on cluster creation and
-   * a version is specified, the cluster is enrolled in the most mature release
-   * channel where the version is available (first checking STABLE, then
-   * REGULAR, and finally RAPID). Otherwise, if no release channel
-   * configuration and no version is specified, the cluster is enrolled in the
-   * REGULAR channel with its default version.
-   * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 41; - * - * @return Whether the releaseChannel field is set. - */ - boolean hasReleaseChannel(); - /** - * - * - *
-   * Release channel configuration. If left unspecified on cluster creation and
-   * a version is specified, the cluster is enrolled in the most mature release
-   * channel where the version is available (first checking STABLE, then
-   * REGULAR, and finally RAPID). Otherwise, if no release channel
-   * configuration and no version is specified, the cluster is enrolled in the
-   * REGULAR channel with its default version.
-   * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 41; - * - * @return The releaseChannel. - */ - com.google.container.v1beta1.ReleaseChannel getReleaseChannel(); - /** - * - * - *
-   * Release channel configuration. If left unspecified on cluster creation and
-   * a version is specified, the cluster is enrolled in the most mature release
-   * channel where the version is available (first checking STABLE, then
-   * REGULAR, and finally RAPID). Otherwise, if no release channel
-   * configuration and no version is specified, the cluster is enrolled in the
-   * REGULAR channel with its default version.
-   * 
- * - * .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(); - - /** - * - * - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1beta1.WorkloadCertificates workload_certificates = 52; - * - * @return Whether the workloadCertificates field is set. - */ - boolean hasWorkloadCertificates(); - /** - * - * - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1beta1.WorkloadCertificates workload_certificates = 52; - * - * @return The workloadCertificates. - */ - com.google.container.v1beta1.WorkloadCertificates getWorkloadCertificates(); - /** - * - * - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1beta1.WorkloadCertificates workload_certificates = 52; - */ - com.google.container.v1beta1.WorkloadCertificatesOrBuilder getWorkloadCertificatesOrBuilder(); - - /** - * - * - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; - * - * @return Whether the meshCertificates field is set. - */ - boolean hasMeshCertificates(); - /** - * - * - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; - * - * @return The meshCertificates. - */ - com.google.container.v1beta1.MeshCertificates getMeshCertificates(); - /** - * - * - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; - */ - com.google.container.v1beta1.MeshCertificatesOrBuilder getMeshCertificatesOrBuilder(); - - /** - * - * - *
-   * Configuration for direct-path (via ALTS) with workload identity.
-   * 
- * - * .google.container.v1beta1.WorkloadALTSConfig workload_alts_config = 53; - * - * @return Whether the workloadAltsConfig field is set. - */ - boolean hasWorkloadAltsConfig(); - /** - * - * - *
-   * Configuration for direct-path (via ALTS) with workload identity.
-   * 
- * - * .google.container.v1beta1.WorkloadALTSConfig workload_alts_config = 53; - * - * @return The workloadAltsConfig. - */ - com.google.container.v1beta1.WorkloadALTSConfig getWorkloadAltsConfig(); - /** - * - * - *
-   * Configuration for direct-path (via ALTS) with workload identity.
-   * 
- * - * .google.container.v1beta1.WorkloadALTSConfig workload_alts_config = 53; - */ - com.google.container.v1beta1.WorkloadALTSConfigOrBuilder getWorkloadAltsConfigOrBuilder(); - - /** - * - * - *
-   * Configuration for the fine-grained cost management feature.
-   * 
- * - * .google.container.v1beta1.CostManagementConfig cost_management_config = 45; - * - * @return Whether the costManagementConfig field is set. - */ - boolean hasCostManagementConfig(); - /** - * - * - *
-   * Configuration for the fine-grained cost management feature.
-   * 
- * - * .google.container.v1beta1.CostManagementConfig cost_management_config = 45; - * - * @return The costManagementConfig. - */ - com.google.container.v1beta1.CostManagementConfig getCostManagementConfig(); - /** - * - * - *
-   * Configuration for the fine-grained cost management feature.
-   * 
- * - * .google.container.v1beta1.CostManagementConfig cost_management_config = 45; - */ - com.google.container.v1beta1.CostManagementConfigOrBuilder getCostManagementConfigOrBuilder(); - - /** - * - * - *
-   * 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.
-   * All the nodes in the cluster will be Confidential VM once enabled.
-   * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 50; - * - * @return Whether the confidentialNodes field is set. - */ - boolean hasConfidentialNodes(); - /** - * - * - *
-   * Configuration of Confidential Nodes.
-   * All the nodes in the cluster will be Confidential VM once enabled.
-   * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 50; - * - * @return The confidentialNodes. - */ - com.google.container.v1beta1.ConfidentialNodes getConfidentialNodes(); - /** - * - * - *
-   * Configuration of Confidential Nodes.
-   * All the nodes in the cluster will be Confidential VM once enabled.
-   * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 50; - */ - com.google.container.v1beta1.ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder(); - - /** - * - * - *
-   * Configuration for Identity Service component.
-   * 
- * - * .google.container.v1beta1.IdentityServiceConfig identity_service_config = 54; - * - * @return Whether the identityServiceConfig field is set. - */ - boolean hasIdentityServiceConfig(); - /** - * - * - *
-   * Configuration for Identity Service component.
-   * 
- * - * .google.container.v1beta1.IdentityServiceConfig identity_service_config = 54; - * - * @return The identityServiceConfig. - */ - com.google.container.v1beta1.IdentityServiceConfig getIdentityServiceConfig(); - /** - * - * - *
-   * Configuration for Identity Service component.
-   * 
- * - * .google.container.v1beta1.IdentityServiceConfig identity_service_config = 54; - */ - com.google.container.v1beta1.IdentityServiceConfigOrBuilder getIdentityServiceConfigOrBuilder(); - - /** - * - * - *
-   * [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]; - * - * @deprecated google.container.v1beta1.Cluster.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2152 - * @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]; - * - * @deprecated google.container.v1beta1.Cluster.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2152 - * @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]; - * - * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2185 - * @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]; - * - * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2185 - * @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]; - * - * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2197 - * @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]; - * - * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2197 - * @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]; - * - * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2213 - * @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]; - * - * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2213 - * @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]; - * - * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2213 - * @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]; - * - * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2213 - * @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]; - * - * @deprecated google.container.v1beta1.Cluster.current_node_count is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2217 - * @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(); - - /** - * - * - *
-   * Autopilot configuration for the cluster.
-   * 
- * - * .google.container.v1beta1.Autopilot autopilot = 128; - * - * @return Whether the autopilot field is set. - */ - boolean hasAutopilot(); - /** - * - * - *
-   * Autopilot configuration for the cluster.
-   * 
- * - * .google.container.v1beta1.Autopilot autopilot = 128; - * - * @return The autopilot. - */ - com.google.container.v1beta1.Autopilot getAutopilot(); - /** - * - * - *
-   * Autopilot configuration for the cluster.
-   * 
- * - * .google.container.v1beta1.Autopilot autopilot = 128; - */ - com.google.container.v1beta1.AutopilotOrBuilder getAutopilotOrBuilder(); - - /** - * - * - *
-   * Output only. Unique id for the cluster.
-   * 
- * - * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The id. - */ - java.lang.String getId(); - /** - * - * - *
-   * Output only. Unique id for the cluster.
-   * 
- * - * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for id. - */ - com.google.protobuf.ByteString getIdBytes(); - - /** - * - * - *
-   * Default NodePool settings for the entire cluster. These settings are
-   * overridden if specified on the specific NodePool object.
-   * 
- * - * optional .google.container.v1beta1.NodePoolDefaults node_pool_defaults = 131; - * - * @return Whether the nodePoolDefaults field is set. - */ - boolean hasNodePoolDefaults(); - /** - * - * - *
-   * Default NodePool settings for the entire cluster. These settings are
-   * overridden if specified on the specific NodePool object.
-   * 
- * - * optional .google.container.v1beta1.NodePoolDefaults node_pool_defaults = 131; - * - * @return The nodePoolDefaults. - */ - com.google.container.v1beta1.NodePoolDefaults getNodePoolDefaults(); - /** - * - * - *
-   * Default NodePool settings for the entire cluster. These settings are
-   * overridden if specified on the specific NodePool object.
-   * 
- * - * optional .google.container.v1beta1.NodePoolDefaults node_pool_defaults = 131; - */ - com.google.container.v1beta1.NodePoolDefaultsOrBuilder getNodePoolDefaultsOrBuilder(); - - /** - * - * - *
-   * Logging configuration for the cluster.
-   * 
- * - * .google.container.v1beta1.LoggingConfig logging_config = 132; - * - * @return Whether the loggingConfig field is set. - */ - boolean hasLoggingConfig(); - /** - * - * - *
-   * Logging configuration for the cluster.
-   * 
- * - * .google.container.v1beta1.LoggingConfig logging_config = 132; - * - * @return The loggingConfig. - */ - com.google.container.v1beta1.LoggingConfig getLoggingConfig(); - /** - * - * - *
-   * Logging configuration for the cluster.
-   * 
- * - * .google.container.v1beta1.LoggingConfig logging_config = 132; - */ - com.google.container.v1beta1.LoggingConfigOrBuilder getLoggingConfigOrBuilder(); - - /** - * - * - *
-   * Monitoring configuration for the cluster.
-   * 
- * - * .google.container.v1beta1.MonitoringConfig monitoring_config = 133; - * - * @return Whether the monitoringConfig field is set. - */ - boolean hasMonitoringConfig(); - /** - * - * - *
-   * Monitoring configuration for the cluster.
-   * 
- * - * .google.container.v1beta1.MonitoringConfig monitoring_config = 133; - * - * @return The monitoringConfig. - */ - com.google.container.v1beta1.MonitoringConfig getMonitoringConfig(); - /** - * - * - *
-   * Monitoring configuration for the cluster.
-   * 
- * - * .google.container.v1beta1.MonitoringConfig monitoring_config = 133; - */ - com.google.container.v1beta1.MonitoringConfigOrBuilder getMonitoringConfigOrBuilder(); - - /** - * - * - *
-   * Node pool configs that apply to all auto-provisioned node pools
-   * in autopilot clusters and node auto-provisioning enabled clusters.
-   * 
- * - * .google.container.v1beta1.NodePoolAutoConfig node_pool_auto_config = 136; - * - * @return Whether the nodePoolAutoConfig field is set. - */ - boolean hasNodePoolAutoConfig(); - /** - * - * - *
-   * Node pool configs that apply to all auto-provisioned node pools
-   * in autopilot clusters and node auto-provisioning enabled clusters.
-   * 
- * - * .google.container.v1beta1.NodePoolAutoConfig node_pool_auto_config = 136; - * - * @return The nodePoolAutoConfig. - */ - com.google.container.v1beta1.NodePoolAutoConfig getNodePoolAutoConfig(); - /** - * - * - *
-   * Node pool configs that apply to all auto-provisioned node pools
-   * in autopilot clusters and node auto-provisioning enabled clusters.
-   * 
- * - * .google.container.v1beta1.NodePoolAutoConfig node_pool_auto_config = 136; - */ - com.google.container.v1beta1.NodePoolAutoConfigOrBuilder getNodePoolAutoConfigOrBuilder(); - - /** - * - * - *
-   * Deprecated: Use SecurityPostureConfig instead.
-   * Enable/Disable Protect API features for the cluster.
-   * 
- * - * - * optional .google.container.v1beta1.ProtectConfig protect_config = 137 [deprecated = true]; - * - * - * @deprecated google.container.v1beta1.Cluster.protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2270 - * @return Whether the protectConfig field is set. - */ - @java.lang.Deprecated - boolean hasProtectConfig(); - /** - * - * - *
-   * Deprecated: Use SecurityPostureConfig instead.
-   * Enable/Disable Protect API features for the cluster.
-   * 
- * - * - * optional .google.container.v1beta1.ProtectConfig protect_config = 137 [deprecated = true]; - * - * - * @deprecated google.container.v1beta1.Cluster.protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2270 - * @return The protectConfig. - */ - @java.lang.Deprecated - com.google.container.v1beta1.ProtectConfig getProtectConfig(); - /** - * - * - *
-   * Deprecated: Use SecurityPostureConfig instead.
-   * Enable/Disable Protect API features for the cluster.
-   * 
- * - * - * optional .google.container.v1beta1.ProtectConfig protect_config = 137 [deprecated = true]; - * - */ - @java.lang.Deprecated - com.google.container.v1beta1.ProtectConfigOrBuilder getProtectConfigOrBuilder(); - - /** - * - * - *
-   * This checksum is computed by the server based on the value of cluster
-   * fields, and may be sent on update requests to ensure the client has an
-   * up-to-date value before proceeding.
-   * 
- * - * string etag = 139; - * - * @return The etag. - */ - java.lang.String getEtag(); - /** - * - * - *
-   * This checksum is computed by the server based on the value of cluster
-   * fields, and may be sent on update requests to ensure the client has an
-   * up-to-date value before proceeding.
-   * 
- * - * string etag = 139; - * - * @return The bytes for etag. - */ - com.google.protobuf.ByteString getEtagBytes(); - - /** - * - * - *
-   * Fleet information for the cluster.
-   * 
- * - * .google.container.v1beta1.Fleet fleet = 140; - * - * @return Whether the fleet field is set. - */ - boolean hasFleet(); - /** - * - * - *
-   * Fleet information for the cluster.
-   * 
- * - * .google.container.v1beta1.Fleet fleet = 140; - * - * @return The fleet. - */ - com.google.container.v1beta1.Fleet getFleet(); - /** - * - * - *
-   * Fleet information for the cluster.
-   * 
- * - * .google.container.v1beta1.Fleet fleet = 140; - */ - com.google.container.v1beta1.FleetOrBuilder getFleetOrBuilder(); - - /** - * - * - *
-   * Enable/Disable Security Posture API features for the cluster.
-   * 
- * - * .google.container.v1beta1.SecurityPostureConfig security_posture_config = 145; - * - * @return Whether the securityPostureConfig field is set. - */ - boolean hasSecurityPostureConfig(); - /** - * - * - *
-   * Enable/Disable Security Posture API features for the cluster.
-   * 
- * - * .google.container.v1beta1.SecurityPostureConfig security_posture_config = 145; - * - * @return The securityPostureConfig. - */ - com.google.container.v1beta1.SecurityPostureConfig getSecurityPostureConfig(); - /** - * - * - *
-   * Enable/Disable Security Posture API features for the cluster.
-   * 
- * - * .google.container.v1beta1.SecurityPostureConfig security_posture_config = 145; - */ - com.google.container.v1beta1.SecurityPostureConfigOrBuilder getSecurityPostureConfigOrBuilder(); - - /** - * - * - *
-   * GKE Enterprise Configuration.
-   * 
- * - * .google.container.v1beta1.EnterpriseConfig enterprise_config = 149; - * - * @return Whether the enterpriseConfig field is set. - */ - boolean hasEnterpriseConfig(); - /** - * - * - *
-   * GKE Enterprise Configuration.
-   * 
- * - * .google.container.v1beta1.EnterpriseConfig enterprise_config = 149; - * - * @return The enterpriseConfig. - */ - com.google.container.v1beta1.EnterpriseConfig getEnterpriseConfig(); - /** - * - * - *
-   * GKE Enterprise Configuration.
-   * 
- * - * .google.container.v1beta1.EnterpriseConfig enterprise_config = 149; - */ - com.google.container.v1beta1.EnterpriseConfigOrBuilder getEnterpriseConfigOrBuilder(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterServiceProto.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterServiceProto.java deleted file mode 100644 index a6a30da22b40..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterServiceProto.java +++ /dev/null @@ -1,4433 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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_WindowsNodeConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_WindowsNodeConfig_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_NodeConfig_ResourceLabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_NodeConfig_ResourceLabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_AdvancedMachineFeatures_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_AdvancedMachineFeatures_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_NodeNetworkConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_NodeNetworkConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_NodeNetworkConfig_NetworkPerformanceConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_NodeNetworkConfig_NetworkPerformanceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_AdditionalNodeNetworkConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_AdditionalNodeNetworkConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_AdditionalPodNetworkConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_AdditionalPodNetworkConfig_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_LocalNvmeSsdBlockConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_LocalNvmeSsdBlockConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_EphemeralStorageLocalSsdConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_EphemeralStorageLocalSsdConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_GcfsConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_GcfsConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_ReservationAffinity_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_ReservationAffinity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_SoleTenantConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_SoleTenantConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_SoleTenantConfig_NodeAffinity_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_SoleTenantConfig_NodeAffinity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_HostMaintenancePolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_HostMaintenancePolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_HostMaintenancePolicy_OpportunisticMaintenanceStrategy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_HostMaintenancePolicy_OpportunisticMaintenanceStrategy_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_NodeTaints_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_NodeTaints_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_NodeLabels_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_NodeLabels_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_NodeLabels_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_NodeLabels_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_ResourceLabels_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_ResourceLabels_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_ResourceLabels_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_ResourceLabels_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_NetworkTags_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_NetworkTags_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_GkeBackupAgentConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_GkeBackupAgentConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_StatefulHAConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_StatefulHAConfig_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_GcpFilestoreCsiDriverConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_GcpFilestoreCsiDriverConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_GcsFuseCsiDriverConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_GcsFuseCsiDriverConfig_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_PodCIDROverprovisionConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_PodCIDROverprovisionConfig_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_BinaryAuthorization_PolicyBinding_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_BinaryAuthorization_PolicyBinding_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_K8sBetaAPIConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_K8sBetaAPIConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_WorkloadConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_WorkloadConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_ProtectConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_ProtectConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_SecurityPostureConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_SecurityPostureConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_NodePoolDefaults_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_NodePoolDefaults_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_NodeConfigDefaults_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_NodeConfigDefaults_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_NodePoolAutoConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_NodePoolAutoConfig_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_AdditionalPodRangesConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_AdditionalPodRangesConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_RangeInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_RangeInfo_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_ServerConfig_WindowsVersionMapsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_ServerConfig_WindowsVersionMapsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_BestEffortProvisioning_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_BestEffortProvisioning_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_WindowsVersions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_WindowsVersions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_WindowsVersions_WindowsVersion_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_WindowsVersions_WindowsVersion_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_BlueGreenSettings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_BlueGreenSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_BlueGreenSettings_StandardRolloutPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_BlueGreenSettings_StandardRolloutPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_BlueGreenSettings_AutoscaledRolloutPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_BlueGreenSettings_AutoscaledRolloutPolicy_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_NodePool_UpdateInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_NodePool_UpdateInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_NodePool_UpdateInfo_BlueGreenInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_NodePool_UpdateInfo_BlueGreenInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_NodePool_PlacementPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_NodePool_PlacementPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_NodePool_QueuedProvisioning_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_NodePool_QueuedProvisioning_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_MaintenanceExclusionOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_MaintenanceExclusionOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_RecurringTimeWindow_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - 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_CompleteNodePoolUpgradeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_CompleteNodePoolUpgradeRequest_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_GPUSharingConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_GPUSharingConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_GPUDriverInstallationConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_GPUDriverInstallationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_ManagedPrometheusConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_ManagedPrometheusConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_WorkloadMetadataConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - 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_NetworkConfig_ClusterNetworkPerformanceConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_NetworkConfig_ClusterNetworkPerformanceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_GatewayAPIConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_GatewayAPIConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_ServiceExternalIPsConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_ServiceExternalIPsConfig_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_ILBSubsettingConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_ILBSubsettingConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_DNSConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_DNSConfig_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_WorkloadALTSConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_WorkloadALTSConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_WorkloadCertificates_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_WorkloadCertificates_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_MeshCertificates_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_MeshCertificates_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_DatabaseEncryption_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - 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_VirtualNIC_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_VirtualNIC_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_FastSocket_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_FastSocket_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_CheckAutopilotCompatibilityRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_CheckAutopilotCompatibilityRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_AutopilotCompatibilityIssue_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_AutopilotCompatibilityIssue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_CheckAutopilotCompatibilityResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_CheckAutopilotCompatibilityResponse_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_CostManagementConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_CostManagementConfig_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_AutopilotConversionStatus_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_AutopilotConversionStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_Autopilot_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_Autopilot_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_WorkloadPolicyConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_WorkloadPolicyConfig_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_NotificationConfig_Filter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_NotificationConfig_Filter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_ConfidentialNodes_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - 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; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_UpgradeAvailableEvent_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_UpgradeAvailableEvent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_SecurityBulletinEvent_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_SecurityBulletinEvent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_IdentityServiceConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_IdentityServiceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_LoggingConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_LoggingConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_LoggingComponentConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_LoggingComponentConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_MonitoringConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_MonitoringConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_AdvancedDatapathObservabilityConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_AdvancedDatapathObservabilityConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_NodePoolLoggingConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_NodePoolLoggingConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_LoggingVariantConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_LoggingVariantConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_MonitoringComponentConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_MonitoringComponentConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_Fleet_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_Fleet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_ResourceManagerTags_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_ResourceManagerTags_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_ResourceManagerTags_TagsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_ResourceManagerTags_TagsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1beta1_EnterpriseConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1beta1_EnterpriseConfig_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\036google/pr" - + "otobuf/duration.proto\032\033google/protobuf/e" - + "mpty.proto\032\037google/protobuf/timestamp.pr" - + "oto\032\036google/protobuf/wrappers.proto\032\025goo" - + "gle/rpc/code.proto\032\027google/rpc/status.pr" - + "oto\032\026google/type/date.proto\"\250\002\n\017LinuxNod" - + "eConfig\022G\n\007sysctls\030\001 \003(\01326.google.contai" - + "ner.v1beta1.LinuxNodeConfig.SysctlsEntry" - + "\022I\n\013cgroup_mode\030\002 \001(\01624.google.container" - + ".v1beta1.LinuxNodeConfig.CgroupMode\032.\n\014S" - + "ysctlsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" - + "\0028\001\"Q\n\nCgroupMode\022\033\n\027CGROUP_MODE_UNSPECI" - + "FIED\020\000\022\022\n\016CGROUP_MODE_V1\020\001\022\022\n\016CGROUP_MOD" - + "E_V2\020\002\"\271\001\n\021WindowsNodeConfig\022I\n\nos_versi" - + "on\030\001 \001(\01625.google.container.v1beta1.Wind" - + "owsNodeConfig.OSVersion\"Y\n\tOSVersion\022\032\n\026" - + "OS_VERSION_UNSPECIFIED\020\000\022\027\n\023OS_VERSION_L" - + "TSC2019\020\001\022\027\n\023OS_VERSION_LTSC2022\020\002\"\370\001\n\021N" - + "odeKubeletConfig\022\032\n\022cpu_manager_policy\030\001" - + " \001(\t\0221\n\rcpu_cfs_quota\030\002 \001(\0132\032.google.pro" - + "tobuf.BoolValue\022\034\n\024cpu_cfs_quota_period\030" - + "\003 \001(\t\022\026\n\016pod_pids_limit\030\004 \001(\003\0223\n&insecur" - + "e_kubelet_readonly_port_enabled\030\007 \001(\010H\000\210" - + "\001\001B)\n\'_insecure_kubelet_readonly_port_en" - + "abled\"\343\021\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\010metad" - + "ata\030\004 \003(\01322.google.container.v1beta1.Nod" - + "eConfig.MetadataEntry\022\022\n\nimage_type\030\005 \001(" - + "\t\022@\n\006labels\030\006 \003(\01320.google.container.v1b" - + "eta1.NodeConfig.LabelsEntry\022\027\n\017local_ssd" - + "_count\030\007 \001(\005\022\014\n\004tags\030\010 \003(\t\022\023\n\013preemptibl" - + "e\030\n \001(\010\022A\n\014accelerators\030\013 \003(\0132+.google.c" - + "ontainer.v1beta1.AcceleratorConfig\022?\n\016sa" - + "ndbox_config\030\021 \001(\0132\'.google.container.v1" - + "beta1.SandboxConfig\022\022\n\nnode_group\030\022 \001(\t\022" - + "K\n\024reservation_affinity\030\023 \001(\0132-.google.c" - + "ontainer.v1beta1.ReservationAffinity\022\021\n\t" - + "disk_type\030\014 \001(\t\022\030\n\020min_cpu_platform\030\r \001(" - + "\t\022R\n\030workload_metadata_config\030\016 \001(\01320.go" - + "ogle.container.v1beta1.WorkloadMetadataC" - + "onfig\0223\n\006taints\030\017 \003(\0132#.google.container" - + ".v1beta1.NodeTaint\022\031\n\021boot_disk_kms_key\030" - + "\027 \001(\t\022R\n\030shielded_instance_config\030\024 \001(\0132" - + "0.google.container.v1beta1.ShieldedInsta" - + "nceConfig\022D\n\021linux_node_config\030\025 \001(\0132).g" - + "oogle.container.v1beta1.LinuxNodeConfig\022" - + "C\n\016kubelet_config\030\026 \001(\0132+.google.contain" - + "er.v1beta1.NodeKubeletConfig\022R\n\030ephemera" - + "l_storage_config\030\030 \001(\01320.google.containe" - + "r.v1beta1.EphemeralStorageConfig\0229\n\013gcfs" - + "_config\030\031 \001(\0132$.google.container.v1beta1" - + ".GcfsConfig\022T\n\031advanced_machine_features" - + "\030\032 \001(\01321.google.container.v1beta1.Advanc" - + "edMachineFeatures\0223\n\005gvnic\030\035 \001(\0132$.googl" - + "e.container.v1beta1.VirtualNIC\022\014\n\004spot\030 " - + " \001(\010\022G\n\022confidential_nodes\030# \001(\0132+.googl" - + "e.container.v1beta1.ConfidentialNodes\022>\n" - + "\013fast_socket\030$ \001(\0132$.google.container.v1" - + "beta1.FastSocketH\000\210\001\001\022Q\n\017resource_labels" - + "\030% \003(\01328.google.container.v1beta1.NodeCo" - + "nfig.ResourceLabelsEntry\022G\n\016logging_conf" - + "ig\030& \001(\0132/.google.container.v1beta1.Node" - + "PoolLoggingConfig\022H\n\023windows_node_config" - + "\030\' \001(\0132+.google.container.v1beta1.Window" - + "sNodeConfig\022V\n\033local_nvme_ssd_block_conf" - + "ig\030( \001(\01321.google.container.v1beta1.Loca" - + "lNvmeSsdBlockConfig\022d\n\"ephemeral_storage" - + "_local_ssd_config\030) \001(\01328.google.contain" - + "er.v1beta1.EphemeralStorageLocalSsdConfi" - + "g\022F\n\022sole_tenant_config\030* \001(\0132*.google.c" - + "ontainer.v1beta1.SoleTenantConfig\022P\n\027hos" - + "t_maintenance_policy\030, \001(\0132/.google.cont" - + "ainer.v1beta1.HostMaintenancePolicy\022L\n\025r" - + "esource_manager_tags\030- \001(\0132-.google.cont" - + "ainer.v1beta1.ResourceManagerTags\022)\n\033ena" - + "ble_confidential_storage\030. \001(\010B\004\342A\001\001\032/\n\r" - + "MetadataEntry\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\005val" - + "ue\030\002 \001(\t:\0028\001\0325\n\023ResourceLabelsEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\016\n\014_fast_soc" - + "ket\"M\n\027AdvancedMachineFeatures\022\035\n\020thread" - + "s_per_core\030\001 \001(\003H\000\210\001\001B\023\n\021_threads_per_co" - + "re\"\357\007\n\021NodeNetworkConfig\022\036\n\020create_pod_r" - + "ange\030\004 \001(\010B\004\342A\001\004\022\021\n\tpod_range\030\005 \001(\t\022\033\n\023p" - + "od_ipv4_cidr_block\030\006 \001(\t\022!\n\024enable_priva" - + "te_nodes\030\t \001(\010H\000\210\001\001\022m\n\032network_performan" - + "ce_config\030\013 \001(\0132D.google.container.v1bet" - + "a1.NodeNetworkConfig.NetworkPerformanceC" - + "onfigH\001\210\001\001\022[\n\035pod_cidr_overprovision_con" - + "fig\030\r \001(\01324.google.container.v1beta1.Pod" - + "CIDROverprovisionConfig\022^\n\037additional_no" - + "de_network_configs\030\016 \003(\01325.google.contai" - + "ner.v1beta1.AdditionalNodeNetworkConfig\022" - + "\\\n\036additional_pod_network_configs\030\017 \003(\0132" - + "4.google.container.v1beta1.AdditionalPod" - + "NetworkConfig\022(\n\032pod_ipv4_range_utilizat" - + "ion\030\020 \001(\001B\004\342A\001\003\032\372\002\n\030NetworkPerformanceCo" - + "nfig\022s\n\033total_egress_bandwidth_tier\030\001 \001(" - + "\0162I.google.container.v1beta1.NodeNetwork" - + "Config.NetworkPerformanceConfig.TierH\000\210\001" - + "\001\022y\n!external_ip_egress_bandwidth_tier\030\002" - + " \001(\0162I.google.container.v1beta1.NodeNetw" - + "orkConfig.NetworkPerformanceConfig.TierH" - + "\001\210\001\001\"(\n\004Tier\022\024\n\020TIER_UNSPECIFIED\020\000\022\n\n\006TI" - + "ER_1\020\001B\036\n\034_total_egress_bandwidth_tierB$" - + "\n\"_external_ip_egress_bandwidth_tierB\027\n\025" - + "_enable_private_nodesB\035\n\033_network_perfor" - + "mance_config\"B\n\033AdditionalNodeNetworkCon" - + "fig\022\017\n\007network\030\001 \001(\t\022\022\n\nsubnetwork\030\002 \001(\t" - + "\"\260\001\n\032AdditionalPodNetworkConfig\022\022\n\nsubne" - + "twork\030\001 \001(\t\022\033\n\023secondary_pod_range\030\002 \001(\t" - + "\022K\n\021max_pods_per_node\030\003 \001(\0132+.google.con" - + "tainer.v1beta1.MaxPodsConstraintH\000\210\001\001B\024\n" - + "\022_max_pods_per_node\"Y\n\026ShieldedInstanceC" - + "onfig\022\032\n\022enable_secure_boot\030\001 \001(\010\022#\n\033ena" - + "ble_integrity_monitoring\030\002 \001(\010\"\212\001\n\rSandb" - + "oxConfig\022\030\n\014sandbox_type\030\001 \001(\tB\002\030\001\022:\n\004ty" - + "pe\030\002 \001(\0162,.google.container.v1beta1.Sand" - + "boxConfig.Type\"#\n\004Type\022\017\n\013UNSPECIFIED\020\000\022" - + "\n\n\006GVISOR\020\001\"1\n\026EphemeralStorageConfig\022\027\n" - + "\017local_ssd_count\030\001 \001(\005\"2\n\027LocalNvmeSsdBl" - + "ockConfig\022\027\n\017local_ssd_count\030\001 \001(\005\"9\n\036Ep" - + "hemeralStorageLocalSsdConfig\022\027\n\017local_ss" - + "d_count\030\001 \001(\005\"\035\n\nGcfsConfig\022\017\n\007enabled\030\001" - + " \001(\010\"\344\001\n\023ReservationAffinity\022T\n\030consume_" - + "reservation_type\030\001 \001(\01622.google.containe" - + "r.v1beta1.ReservationAffinity.Type\022\013\n\003ke" - + "y\030\002 \001(\t\022\016\n\006values\030\003 \003(\t\"Z\n\004Type\022\017\n\013UNSPE" - + "CIFIED\020\000\022\022\n\016NO_RESERVATION\020\001\022\023\n\017ANY_RESE" - + "RVATION\020\002\022\030\n\024SPECIFIC_RESERVATION\020\003\"\240\002\n\020" - + "SoleTenantConfig\022P\n\017node_affinities\030\001 \003(" - + "\01327.google.container.v1beta1.SoleTenantC" - + "onfig.NodeAffinity\032\271\001\n\014NodeAffinity\022\013\n\003k" - + "ey\030\001 \001(\t\022R\n\010operator\030\002 \001(\0162@.google.cont" - + "ainer.v1beta1.SoleTenantConfig.NodeAffin" - + "ity.Operator\022\016\n\006values\030\003 \003(\t\"8\n\010Operator" - + "\022\030\n\024OPERATOR_UNSPECIFIED\020\000\022\006\n\002IN\020\001\022\n\n\006NO" - + "T_IN\020\002\"\255\005\n\025HostMaintenancePolicy\022f\n\024main" - + "tenance_interval\030\001 \001(\0162C.google.containe" - + "r.v1beta1.HostMaintenancePolicy.Maintena" - + "nceIntervalH\001\210\001\001\022~\n\"opportunistic_mainte" - + "nance_strategy\030\002 \001(\0132P.google.container." - + "v1beta1.HostMaintenancePolicy.Opportunis" - + "ticMaintenanceStrategyH\000\032\240\002\n Opportunist" - + "icMaintenanceStrategy\022=\n\025node_idle_time_" - + "window\030\001 \001(\0132\031.google.protobuf.DurationH" - + "\000\210\001\001\022G\n\037maintenance_availability_window\030" - + "\002 \001(\0132\031.google.protobuf.DurationH\001\210\001\001\022\037\n" - + "\022min_nodes_per_pool\030\003 \001(\003H\002\210\001\001B\030\n\026_node_" - + "idle_time_windowB\"\n _maintenance_availab" - + "ility_windowB\025\n\023_min_nodes_per_pool\"X\n\023M" - + "aintenanceInterval\022$\n MAINTENANCE_INTERV" - + "AL_UNSPECIFIED\020\000\022\r\n\tAS_NEEDED\020\001\022\014\n\010PERIO" - + "DIC\020\002B\026\n\024maintenance_strategyB\027\n\025_mainte" - + "nance_interval\"\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*.googl" - + "e.container.v1beta1.NodeTaint.Effect\"Y\n\006" - + "Effect\022\026\n\022EFFECT_UNSPECIFIED\020\000\022\017\n\013NO_SCH" - + "EDULE\020\001\022\026\n\022PREFER_NO_SCHEDULE\020\002\022\016\n\nNO_EX" - + "ECUTE\020\003\"A\n\nNodeTaints\0223\n\006taints\030\001 \003(\0132#." - + "google.container.v1beta1.NodeTaint\"}\n\nNo" - + "deLabels\022@\n\006labels\030\001 \003(\01320.google.contai" - + "ner.v1beta1.NodeLabels.LabelsEntry\032-\n\013La" - + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - + "\001\"\205\001\n\016ResourceLabels\022D\n\006labels\030\001 \003(\01324.g" - + "oogle.container.v1beta1.ResourceLabels.L" - + "abelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" - + "\n\005value\030\002 \001(\t:\0028\001\"\033\n\013NetworkTags\022\014\n\004tags" - + "\030\001 \003(\t\"\336\001\n\nMasterAuth\022\024\n\010username\030\001 \001(\tB" - + "\002\030\001\022\024\n\010password\030\002 \001(\tB\002\030\001\022T\n\031client_cert" - + "ificate_config\030\003 \001(\01321.google.container." - + "v1beta1.ClientCertificateConfig\022\036\n\026clust" - + "er_ca_certificate\030d \001(\t\022\032\n\022client_certif" - + "icate\030e \001(\t\022\022\n\nclient_key\030f \001(\t\";\n\027Clien" - + "tCertificateConfig\022 \n\030issue_client_certi" - + "ficate\030\001 \001(\010\"\351\010\n\014AddonsConfig\022H\n\023http_lo" - + "ad_balancing\030\001 \001(\0132+.google.container.v1" - + "beta1.HttpLoadBalancing\022V\n\032horizontal_po" - + "d_autoscaling\030\002 \001(\01322.google.container.v" - + "1beta1.HorizontalPodAutoscaling\022O\n\024kuber" - + "netes_dashboard\030\003 \001(\0132-.google.container" - + ".v1beta1.KubernetesDashboardB\002\030\001\022L\n\025netw" - + "ork_policy_config\030\004 \001(\0132-.google.contain" - + "er.v1beta1.NetworkPolicyConfig\022?\n\014istio_" - + "config\030\005 \001(\0132%.google.container.v1beta1." - + "IstioConfigB\002\030\001\022B\n\020cloud_run_config\030\007 \001(" - + "\0132(.google.container.v1beta1.CloudRunCon" - + "fig\022B\n\020dns_cache_config\030\010 \001(\0132(.google.c" - + "ontainer.v1beta1.DnsCacheConfig\022P\n\027confi" - + "g_connector_config\030\n \001(\0132/.google.contai" - + "ner.v1beta1.ConfigConnectorConfig\022i\n%gce" - + "_persistent_disk_csi_driver_config\030\013 \001(\013" - + "2:.google.container.v1beta1.GcePersisten" - + "tDiskCsiDriverConfig\022=\n\013kalm_config\030\014 \001(" - + "\0132$.google.container.v1beta1.KalmConfigB" - + "\002\030\001\022^\n\037gcp_filestore_csi_driver_config\030\016" - + " \001(\01325.google.container.v1beta1.GcpFiles" - + "toreCsiDriverConfig\022O\n\027gke_backup_agent_" - + "config\030\020 \001(\0132..google.container.v1beta1." - + "GkeBackupAgentConfig\022T\n\032gcs_fuse_csi_dri" - + "ver_config\030\021 \001(\01320.google.container.v1be" - + "ta1.GcsFuseCsiDriverConfig\022L\n\022stateful_h" - + "a_config\030\022 \001(\0132*.google.container.v1beta" - + "1.StatefulHAConfigB\004\342A\001\001\"%\n\021HttpLoadBala" - + "ncing\022\020\n\010disabled\030\001 \001(\010\",\n\030HorizontalPod" - + "Autoscaling\022\020\n\010disabled\030\001 \001(\010\"\'\n\023Kuberne" - + "tesDashboard\022\020\n\010disabled\030\001 \001(\010\"\'\n\023Networ" - + "kPolicyConfig\022\020\n\010disabled\030\001 \001(\010\"!\n\016DnsCa" - + "cheConfig\022\017\n\007enabled\030\001 \001(\010\"!\n\nKalmConfig" - + "\022\023\n\007enabled\030\001 \001(\010B\002\030\001\"\'\n\024GkeBackupAgentC" - + "onfig\022\017\n\007enabled\030\001 \001(\010\"#\n\020StatefulHAConf" - + "ig\022\017\n\007enabled\030\001 \001(\010\"(\n\025ConfigConnectorCo" - + "nfig\022\017\n\007enabled\030\001 \001(\010\"3\n GcePersistentDi" - + "skCsiDriverConfig\022\017\n\007enabled\030\001 \001(\010\".\n\033Gc" - + "pFilestoreCsiDriverConfig\022\017\n\007enabled\030\001 \001" - + "(\010\")\n\026GcsFuseCsiDriverConfig\022\017\n\007enabled\030" - + "\001 \001(\010\"9\n&PrivateClusterMasterGlobalAcces" - + "sConfig\022\017\n\007enabled\030\001 \001(\010\"\312\002\n\024PrivateClus" - + "terConfig\022\034\n\024enable_private_nodes\030\001 \001(\010\022" - + "\037\n\027enable_private_endpoint\030\002 \001(\010\022\036\n\026mast" - + "er_ipv4_cidr_block\030\003 \001(\t\022\030\n\020private_endp" - + "oint\030\004 \001(\t\022\027\n\017public_endpoint\030\005 \001(\t\022\024\n\014p" - + "eering_name\030\007 \001(\t\022e\n\033master_global_acces" - + "s_config\030\010 \001(\0132@.google.container.v1beta" - + "1.PrivateClusterMasterGlobalAccessConfig" - + "\022#\n\033private_endpoint_subnetwork\030\n \001(\t\"\237\001" - + "\n\013IstioConfig\022\024\n\010disabled\030\001 \001(\010B\002\030\001\022E\n\004a" - + "uth\030\002 \001(\01623.google.container.v1beta1.Ist" - + "ioConfig.IstioAuthModeB\002\030\001\"3\n\rIstioAuthM" - + "ode\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\022" - + "load_balancer_type\030\003 \001(\01629.google.contai" - + "ner.v1beta1.CloudRunConfig.LoadBalancerT" - + "ype\"x\n\020LoadBalancerType\022\"\n\036LOAD_BALANCER" - + "_TYPE_UNSPECIFIED\020\000\022\037\n\033LOAD_BALANCER_TYP" - + "E_EXTERNAL\020\001\022\037\n\033LOAD_BALANCER_TYPE_INTER" - + "NAL\020\002\"\223\002\n\036MasterAuthorizedNetworksConfig" - + "\022\017\n\007enabled\030\001 \001(\010\022W\n\013cidr_blocks\030\002 \003(\0132B" - + ".google.container.v1beta1.MasterAuthoriz" - + "edNetworksConfig.CidrBlock\022,\n\037gcp_public" - + "_cidrs_access_enabled\030\003 \001(\010H\000\210\001\001\0325\n\tCidr" - + "Block\022\024\n\014display_name\030\001 \001(\t\022\022\n\ncidr_bloc" - + "k\030\002 \001(\tB\"\n _gcp_public_cidrs_access_enab" - + "led\"\035\n\nLegacyAbac\022\017\n\007enabled\030\001 \001(\010\"\226\001\n\rN" - + "etworkPolicy\022B\n\010provider\030\001 \001(\01620.google." - + "container.v1beta1.NetworkPolicy.Provider" - + "\022\017\n\007enabled\030\002 \001(\010\"0\n\010Provider\022\030\n\024PROVIDE" - + "R_UNSPECIFIED\020\000\022\n\n\006CALICO\020\001\"-\n\032PodCIDROv" - + "erprovisionConfig\022\017\n\007disable\030\001 \001(\010\"\252\010\n\022I" - + "PAllocationPolicy\022\026\n\016use_ip_aliases\030\001 \001(" - + "\010\022\031\n\021create_subnetwork\030\002 \001(\010\022\027\n\017subnetwo" - + "rk_name\030\003 \001(\t\022\035\n\021cluster_ipv4_cidr\030\004 \001(\t" - + "B\002\030\001\022\032\n\016node_ipv4_cidr\030\005 \001(\tB\002\030\001\022\036\n\022serv" - + "ices_ipv4_cidr\030\006 \001(\tB\002\030\001\022$\n\034cluster_seco" - + "ndary_range_name\030\007 \001(\t\022%\n\035services_secon" - + "dary_range_name\030\010 \001(\t\022\037\n\027cluster_ipv4_ci" - + "dr_block\030\t \001(\t\022\034\n\024node_ipv4_cidr_block\030\n" - + " \001(\t\022 \n\030services_ipv4_cidr_block\030\013 \001(\t\022\033" - + "\n\023allow_route_overlap\030\014 \001(\010\022\033\n\023tpu_ipv4_" - + "cidr_block\030\r \001(\t\022\022\n\nuse_routes\030\017 \001(\010\022J\n\n" - + "stack_type\030\020 \001(\01626.google.container.v1be" - + "ta1.IPAllocationPolicy.StackType\022U\n\020ipv6" - + "_access_type\030\021 \001(\0162;.google.container.v1" - + "beta1.IPAllocationPolicy.IPv6AccessType\022" - + "[\n\035pod_cidr_overprovision_config\030\025 \001(\01324" - + ".google.container.v1beta1.PodCIDROverpro" - + "visionConfig\022$\n\026subnet_ipv6_cidr_block\030\026" - + " \001(\tB\004\342A\001\003\022&\n\030services_ipv6_cidr_block\030\027" - + " \001(\tB\004\342A\001\003\022_\n\034additional_pod_ranges_conf" - + "ig\030\030 \001(\01323.google.container.v1beta1.Addi" - + "tionalPodRangesConfigB\004\342A\001\003\0220\n\"default_p" - + "od_ipv4_range_utilization\030\031 \001(\001B\004\342A\001\003\"@\n" - + "\tStackType\022\032\n\026STACK_TYPE_UNSPECIFIED\020\000\022\010" - + "\n\004IPV4\020\001\022\r\n\tIPV4_IPV6\020\002\"N\n\016IPv6AccessTyp" - + "e\022 \n\034IPV6_ACCESS_TYPE_UNSPECIFIED\020\000\022\014\n\010I" - + "NTERNAL\020\001\022\014\n\010EXTERNAL\020\002\"\301\003\n\023BinaryAuthor" - + "ization\022\023\n\007enabled\030\001 \001(\010B\002\030\001\022U\n\017evaluati" - + "on_mode\030\002 \001(\0162<.google.container.v1beta1" - + ".BinaryAuthorization.EvaluationMode\022Z\n\017p" - + "olicy_bindings\030\005 \003(\0132;.google.container." - + "v1beta1.BinaryAuthorization.PolicyBindin" - + "gB\004\342A\001\001\032+\n\rPolicyBinding\022\021\n\004name\030\001 \001(\tH\000" - + "\210\001\001B\007\n\005_name\"\264\001\n\016EvaluationMode\022\037\n\033EVALU" - + "ATION_MODE_UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022$" - + "\n PROJECT_SINGLETON_POLICY_ENFORCE\020\002\022\023\n\017" - + "POLICY_BINDINGS\020\005\0228\n4POLICY_BINDINGS_AND" - + "_PROJECT_SINGLETON_POLICY_ENFORCE\020\006\"*\n\027P" - + "odSecurityPolicyConfig\022\017\n\007enabled\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\020Cluste" - + "rTelemetry\022=\n\004type\030\001 \001(\0162/.google.contai" - + "ner.v1beta1.ClusterTelemetry.Type\"C\n\004Typ" - + "e\022\017\n\013UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\013\n\007ENAB" - + "LED\020\002\022\017\n\013SYSTEM_ONLY\020\003\"\233!\n\007Cluster\022\014\n\004na" - + "me\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\013node_config\030\004 \001" - + "(\0132$.google.container.v1beta1.NodeConfig" - + "B\002\030\001\0229\n\013master_auth\030\005 \001(\0132$.google.conta" - + "iner.v1beta1.MasterAuth\022\027\n\017logging_servi" - + "ce\030\006 \001(\t\022\032\n\022monitoring_service\030\007 \001(\t\022\017\n\007" - + "network\030\010 \001(\t\022\031\n\021cluster_ipv4_cidr\030\t \001(\t" - + "\022=\n\raddons_config\030\n \001(\0132&.google.contain" - + "er.v1beta1.AddonsConfig\022\022\n\nsubnetwork\030\013 " - + "\001(\t\0226\n\nnode_pools\030\014 \003(\0132\".google.contain" - + "er.v1beta1.NodePool\022\021\n\tlocations\030\r \003(\t\022\037" - + "\n\027enable_kubernetes_alpha\030\016 \001(\010\022I\n\024enabl" - + "e_k8s_beta_apis\030\217\001 \001(\0132*.google.containe" - + "r.v1beta1.K8sBetaAPIConfig\022N\n\017resource_l" - + "abels\030\017 \003(\01325.google.container.v1beta1.C" - + "luster.ResourceLabelsEntry\022\031\n\021label_fing" - + "erprint\030\020 \001(\t\0229\n\013legacy_abac\030\022 \001(\0132$.goo" - + "gle.container.v1beta1.LegacyAbac\022?\n\016netw" - + "ork_policy\030\023 \001(\0132\'.google.container.v1be" - + "ta1.NetworkPolicy\022J\n\024ip_allocation_polic" - + "y\030\024 \001(\0132,.google.container.v1beta1.IPAll" - + "ocationPolicy\022c\n!master_authorized_netwo" - + "rks_config\030\026 \001(\01328.google.container.v1be" - + "ta1.MasterAuthorizedNetworksConfig\022G\n\022ma" - + "intenance_policy\030\027 \001(\0132+.google.containe" - + "r.v1beta1.MaintenancePolicy\022K\n\024binary_au" - + "thorization\030\030 \001(\0132-.google.container.v1b" - + "eta1.BinaryAuthorization\022U\n\032pod_security" - + "_policy_config\030\031 \001(\01321.google.container." - + "v1beta1.PodSecurityPolicyConfig\022A\n\013autos" - + "caling\030\032 \001(\0132,.google.container.v1beta1." - + "ClusterAutoscaling\022?\n\016network_config\030\033 \001" - + "(\0132\'.google.container.v1beta1.NetworkCon" - + "fig\022\033\n\017private_cluster\030\034 \001(\010B\002\030\001\022\"\n\026mast" - + "er_ipv4_cidr_block\030\035 \001(\tB\002\030\001\022P\n\033default_" - + "max_pods_constraint\030\036 \001(\0132+.google.conta" - + "iner.v1beta1.MaxPodsConstraint\022Y\n\034resour" - + "ce_usage_export_config\030! \001(\01323.google.co" - + "ntainer.v1beta1.ResourceUsageExportConfi" - + "g\022X\n\033authenticator_groups_config\030\" \001(\01323" - + ".google.container.v1beta1.AuthenticatorG" - + "roupsConfig\022N\n\026private_cluster_config\030% " - + "\001(\0132..google.container.v1beta1.PrivateCl" - + "usterConfig\022R\n\030vertical_pod_autoscaling\030" - + "\' \001(\01320.google.container.v1beta1.Vertica" - + "lPodAutoscaling\022?\n\016shielded_nodes\030( \001(\0132" - + "\'.google.container.v1beta1.ShieldedNodes" - + "\022A\n\017release_channel\030) \001(\0132(.google.conta" - + "iner.v1beta1.ReleaseChannel\022R\n\030workload_" - + "identity_config\030+ \001(\01320.google.container" - + ".v1beta1.WorkloadIdentityConfig\022M\n\025workl" - + "oad_certificates\0304 \001(\0132..google.containe" - + "r.v1beta1.WorkloadCertificates\022E\n\021mesh_c" - + "ertificates\030C \001(\0132*.google.container.v1b" - + "eta1.MeshCertificates\022J\n\024workload_alts_c" - + "onfig\0305 \001(\0132,.google.container.v1beta1.W" - + "orkloadALTSConfig\022N\n\026cost_management_con" - + "fig\030- \001(\0132..google.container.v1beta1.Cos" - + "tManagementConfig\022E\n\021cluster_telemetry\030." - + " \001(\0132*.google.container.v1beta1.ClusterT" - + "elemetry\0227\n\ntpu_config\030/ \001(\0132#.google.co" - + "ntainer.v1beta1.TpuConfig\022I\n\023notificatio" - + "n_config\0301 \001(\0132,.google.container.v1beta" - + "1.NotificationConfig\022G\n\022confidential_nod" - + "es\0302 \001(\0132+.google.container.v1beta1.Conf" - + "identialNodes\022P\n\027identity_service_config" - + "\0306 \001(\0132/.google.container.v1beta1.Identi" - + "tyServiceConfig\022\021\n\tself_link\030d \001(\t\022\020\n\004zo" - + "ne\030e \001(\tB\002\030\001\022\020\n\010endpoint\030f \001(\t\022\037\n\027initia" - + "l_cluster_version\030g \001(\t\022\036\n\026current_maste" - + "r_version\030h \001(\t\022 \n\024current_node_version\030" - + "i \001(\tB\002\030\001\022\023\n\013create_time\030j \001(\t\0228\n\006status" - + "\030k \001(\0162(.google.container.v1beta1.Cluste" - + "r.Status\022\032\n\016status_message\030l \001(\tB\002\030\001\022\033\n\023" - + "node_ipv4_cidr_size\030m \001(\005\022\032\n\022services_ip" - + "v4_cidr\030n \001(\t\022\037\n\023instance_group_urls\030o \003" - + "(\tB\002\030\001\022\036\n\022current_node_count\030p \001(\005B\002\030\001\022\023" - + "\n\013expire_time\030q \001(\t\022\020\n\010location\030r \001(\t\022\022\n" - + "\nenable_tpu\030s \001(\010\022\033\n\023tpu_ipv4_cidr_block" - + "\030t \001(\t\022I\n\023database_encryption\030& \001(\0132,.go" - + "ogle.container.v1beta1.DatabaseEncryptio" - + "n\022=\n\nconditions\030v \003(\0132).google.container" - + ".v1beta1.StatusCondition\0220\n\006master\030| \001(\013" - + "2 .google.container.v1beta1.Master\0227\n\tau" - + "topilot\030\200\001 \001(\0132#.google.container.v1beta" - + "1.Autopilot\022\021\n\002id\030\201\001 \001(\tB\004\342A\001\003\022L\n\022node_p" - + "ool_defaults\030\203\001 \001(\0132*.google.container.v" - + "1beta1.NodePoolDefaultsH\000\210\001\001\022@\n\016logging_" - + "config\030\204\001 \001(\0132\'.google.container.v1beta1" - + ".LoggingConfig\022F\n\021monitoring_config\030\205\001 \001" - + "(\0132*.google.container.v1beta1.Monitoring" - + "Config\022L\n\025node_pool_auto_config\030\210\001 \001(\0132," - + ".google.container.v1beta1.NodePoolAutoCo" - + "nfig\022I\n\016protect_config\030\211\001 \001(\0132\'.google.c" - + "ontainer.v1beta1.ProtectConfigB\002\030\001H\001\210\001\001\022" - + "\r\n\004etag\030\213\001 \001(\t\022/\n\005fleet\030\214\001 \001(\0132\037.google." - + "container.v1beta1.Fleet\022Q\n\027security_post" - + "ure_config\030\221\001 \001(\0132/.google.container.v1b" - + "eta1.SecurityPostureConfig\022F\n\021enterprise" - + "_config\030\225\001 \001(\0132*.google.container.v1beta" - + "1.EnterpriseConfig\0325\n\023ResourceLabelsEntr", - "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"w\n\006Sta" - + "tus\022\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014PROVISION" - + "ING\020\001\022\013\n\007RUNNING\020\002\022\017\n\013RECONCILING\020\003\022\014\n\010S" - + "TOPPING\020\004\022\t\n\005ERROR\020\005\022\014\n\010DEGRADED\020\006B\025\n\023_n" - + "ode_pool_defaultsB\021\n\017_protect_config\"(\n\020" - + "K8sBetaAPIConfig\022\024\n\014enabled_apis\030\001 \003(\t\"\304" - + "\001\n\016WorkloadConfig\022F\n\naudit_mode\030\001 \001(\0162-." - + "google.container.v1beta1.WorkloadConfig." - + "ModeH\000\210\001\001\"[\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022" - + "\014\n\010DISABLED\020\001\022\t\n\005BASIC\020\004\022\020\n\010BASELINE\020\002\032\002" - + "\010\001\022\022\n\nRESTRICTED\020\003\032\002\010\001B\r\n\013_audit_mode\"\333\002" - + "\n\rProtectConfig\022F\n\017workload_config\030\001 \001(\013" - + "2(.google.container.v1beta1.WorkloadConf" - + "igH\000\210\001\001\022k\n\033workload_vulnerability_mode\030\002" - + " \001(\0162A.google.container.v1beta1.ProtectC" - + "onfig.WorkloadVulnerabilityModeH\001\210\001\001\"a\n\031" - + "WorkloadVulnerabilityMode\022+\n\'WORKLOAD_VU" - + "LNERABILITY_MODE_UNSPECIFIED\020\000\022\014\n\010DISABL" - + "ED\020\001\022\t\n\005BASIC\020\002B\022\n\020_workload_configB\036\n\034_" - + "workload_vulnerability_mode\"\250\003\n\025Security" - + "PostureConfig\022G\n\004mode\030\001 \001(\01624.google.con" - + "tainer.v1beta1.SecurityPostureConfig.Mod" - + "eH\000\210\001\001\022b\n\022vulnerability_mode\030\002 \001(\0162A.goo" - + "gle.container.v1beta1.SecurityPostureCon" - + "fig.VulnerabilityModeH\001\210\001\001\"5\n\004Mode\022\024\n\020MO" - + "DE_UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\t\n\005BASIC\020" - + "\002\"\212\001\n\021VulnerabilityMode\022\"\n\036VULNERABILITY" - + "_MODE_UNSPECIFIED\020\000\022\032\n\026VULNERABILITY_DIS" - + "ABLED\020\001\022\027\n\023VULNERABILITY_BASIC\020\002\022\034\n\030VULN" - + "ERABILITY_ENTERPRISE\020\003B\007\n\005_modeB\025\n\023_vuln" - + "erability_mode\"^\n\020NodePoolDefaults\022J\n\024no" - + "de_config_defaults\030\001 \001(\0132,.google.contai" - + "ner.v1beta1.NodeConfigDefaults\"\352\001\n\022NodeC" - + "onfigDefaults\0229\n\013gcfs_config\030\001 \001(\0132$.goo" - + "gle.container.v1beta1.GcfsConfig\022G\n\016logg" - + "ing_config\030\003 \001(\0132/.google.container.v1be" - + "ta1.NodePoolLoggingConfig\022P\n\027host_mainte" - + "nance_policy\030\005 \001(\0132/.google.container.v1" - + "beta1.HostMaintenancePolicy\"\237\001\n\022NodePool" - + "AutoConfig\022;\n\014network_tags\030\001 \001(\0132%.googl" - + "e.container.v1beta1.NetworkTags\022L\n\025resou" - + "rce_manager_tags\030\002 \001(\0132-.google.containe" - + "r.v1beta1.ResourceManagerTags\"\271$\n\rCluste" - + "rUpdate\022\034\n\024desired_node_version\030\004 \001(\t\022\"\n" - + "\032desired_monitoring_service\030\005 \001(\t\022E\n\025des" - + "ired_addons_config\030\006 \001(\0132&.google.contai" - + "ner.v1beta1.AddonsConfig\022\034\n\024desired_node" - + "_pool_id\030\007 \001(\t\022\032\n\022desired_image_type\030\010 \001" - + "(\t\022T\n\035desired_node_pool_autoscaling\030\t \001(" - + "\0132-.google.container.v1beta1.NodePoolAut" - + "oscaling\022\031\n\021desired_locations\030\n \003(\t\022k\n)d" - + "esired_master_authorized_networks_config" - + "\030\014 \001(\01328.google.container.v1beta1.Master" - + "AuthorizedNetworksConfig\022]\n\"desired_pod_" - + "security_policy_config\030\016 \001(\01321.google.co" - + "ntainer.v1beta1.PodSecurityPolicyConfig\022" - + "Q\n\033desired_cluster_autoscaling\030\017 \001(\0132,.g" - + "oogle.container.v1beta1.ClusterAutoscali" - + "ng\022S\n\034desired_binary_authorization\030\020 \001(\013" - + "2-.google.container.v1beta1.BinaryAuthor" - + "ization\022\037\n\027desired_logging_service\030\023 \001(\t" - + "\022a\n$desired_resource_usage_export_config" - + "\030\025 \001(\01323.google.container.v1beta1.Resour" - + "ceUsageExportConfig\022Z\n desired_vertical_" - + "pod_autoscaling\030\026 \001(\01320.google.container" - + ".v1beta1.VerticalPodAutoscaling\022V\n\036desir" - + "ed_private_cluster_config\030\031 \001(\0132..google" - + ".container.v1beta1.PrivateClusterConfig\022" - + "a\n$desired_intra_node_visibility_config\030" - + "\032 \001(\01323.google.container.v1beta1.IntraNo" - + "deVisibilityConfig\022P\n\033desired_default_sn" - + "at_status\030\034 \001(\0132+.google.container.v1bet" - + "a1.DefaultSnatStatus\022M\n\031desired_cluster_" - + "telemetry\030\036 \001(\0132*.google.container.v1bet" - + "a1.ClusterTelemetry\022I\n\027desired_release_c" - + "hannel\030\037 \001(\0132(.google.container.v1beta1." - + "ReleaseChannel\022?\n\022desired_tpu_config\030& \001" - + "(\0132#.google.container.v1beta1.TpuConfig\022" - + "V\n\037desired_l4ilb_subsetting_config\030\' \001(\013" - + "2-.google.container.v1beta1.ILBSubsettin" - + "gConfig\022M\n\031desired_datapath_provider\0302 \001" - + "(\0162*.google.container.v1beta1.DatapathPr" - + "ovider\022]\n\"desired_private_ipv6_google_ac" - + "cess\0303 \001(\01621.google.container.v1beta1.Pr" - + "ivateIPv6GoogleAccess\022Q\n\033desired_notific" - + "ation_config\0307 \001(\0132,.google.container.v1" - + "beta1.NotificationConfig\022\036\n\026desired_mast" - + "er_version\030d \001(\t\022A\n\023desired_gcfs_config\030" - + "m \001(\0132$.google.container.v1beta1.GcfsCon" - + "fig\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\022U\n\035desired_workload_c" - + "ertificates\030= \001(\0132..google.container.v1b" - + "eta1.WorkloadCertificates\022M\n\031desired_mes" - + "h_certificates\030C \001(\0132*.google.container." - + "v1beta1.MeshCertificates\022R\n\034desired_work" - + "load_alts_config\030> \001(\0132,.google.containe" - + "r.v1beta1.WorkloadALTSConfig\022G\n\026desired_" - + "shielded_nodes\0300 \001(\0132\'.google.container." - + "v1beta1.ShieldedNodes\022V\n\036desired_cost_ma" - + "nagement_config\0301 \001(\0132..google.container" - + ".v1beta1.CostManagementConfig\0228\n\016desired" - + "_master\0304 \001(\0132 .google.container.v1beta1" - + ".Master\022?\n\022desired_dns_config\0305 \001(\0132#.go" - + "ogle.container.v1beta1.DNSConfig\022_\n#desi" - + "red_service_external_ips_config\030< \001(\01322." - + "google.container.v1beta1.ServiceExternal" - + "IPsConfig\022`\n#desired_authenticator_group" - + "s_config\030? \001(\01323.google.container.v1beta" - + "1.AuthenticatorGroupsConfig\022G\n\026desired_l" - + "ogging_config\030@ \001(\0132\'.google.container.v" - + "1beta1.LoggingConfig\022M\n\031desired_monitori" - + "ng_config\030A \001(\0132*.google.container.v1bet" - + "a1.MonitoringConfig\022X\n\037desired_identity_" - + "service_config\030B \001(\0132/.google.container." - + "v1beta1.IdentityServiceConfig\022,\n\037desired" - + "_enable_private_endpoint\030G \001(\010H\000\210\001\001\022Y\n*d" - + "esired_node_pool_auto_config_network_tag" - + "s\030n \001(\0132%.google.container.v1beta1.Netwo" - + "rkTags\022P\n\026desired_protect_config\030p \001(\0132\'" - + ".google.container.v1beta1.ProtectConfigB" - + "\002\030\001H\001\210\001\001\022N\n\032desired_gateway_api_config\030r" - + " \001(\0132*.google.container.v1beta1.GatewayA" - + "PIConfig\022\014\n\004etag\030s \001(\t\022Y\n desired_node_p" - + "ool_logging_config\030t \001(\0132/.google.contai" - + "ner.v1beta1.NodePoolLoggingConfig\0226\n\rdes" - + "ired_fleet\030u \001(\0132\037.google.container.v1be" - + "ta1.Fleet\022?\n\022desired_stack_type\030w \001(\0162#." - + "google.container.v1beta1.StackType\022Y\n\034ad" - + "ditional_pod_ranges_config\030x \001(\01323.googl" - + "e.container.v1beta1.AdditionalPodRangesC" - + "onfig\022a\n$removed_additional_pod_ranges_c" - + "onfig\030y \001(\01323.google.container.v1beta1.A" - + "dditionalPodRangesConfig\022H\n\024enable_k8s_b" - + "eta_apis\030z \001(\0132*.google.container.v1beta" - + "1.K8sBetaAPIConfig\022X\n\037desired_security_p" - + "osture_config\030| \001(\0132/.google.container.v" - + "1beta1.SecurityPostureConfig\022s\n\"desired_" - + "network_performance_config\030} \001(\0132G.googl" - + "e.container.v1beta1.NetworkConfig.Cluste" - + "rNetworkPerformanceConfig\022/\n\"desired_ena" - + "ble_fqdn_network_policy\030~ \001(\010H\002\210\001\001\022a\n(de" - + "sired_autopilot_workload_policy_config\030\200" - + "\001 \001(\0132..google.container.v1beta1.Workloa" - + "dPolicyConfig\022J\n\025desired_k8s_beta_apis\030\203" - + "\001 \001(\0132*.google.container.v1beta1.K8sBeta" - + "APIConfig\022Y\n\037desired_host_maintenance_po" - + "licy\030\204\001 \001(\0132/.google.container.v1beta1.H" - + "ostMaintenancePolicy\022k\n3desired_node_poo" - + "l_auto_config_resource_manager_tags\030\210\001 \001" - + "(\0132-.google.container.v1beta1.ResourceMa" - + "nagerTags\022g\n$desired_in_transit_encrypti" - + "on_config\030\211\001 \001(\01623.google.container.v1be" - + "ta1.InTransitEncryptionConfigH\003\210\001\001B\"\n _d" - + "esired_enable_private_endpointB\031\n\027_desir" - + "ed_protect_configB%\n#_desired_enable_fqd" - + "n_network_policyB\'\n%_desired_in_transit_" - + "encryption_config\"w\n\031AdditionalPodRanges" - + "Config\022\027\n\017pod_range_names\030\001 \003(\t\022A\n\016pod_r" - + "ange_info\030\002 \003(\0132#.google.container.v1bet" - + "a1.RangeInfoB\004\342A\001\003\"@\n\tRangeInfo\022\030\n\nrange" - + "_name\030\001 \001(\tB\004\342A\001\003\022\031\n\013utilization\030\002 \001(\001B\004" - + "\342A\001\003\"\317\010\n\tOperation\022\014\n\004name\030\001 \001(\t\022\020\n\004zone" - + "\030\002 \001(\tB\002\030\001\022@\n\016operation_type\030\003 \001(\0162(.goo" - + "gle.container.v1beta1.Operation.Type\022:\n\006" - + "status\030\004 \001(\0162*.google.container.v1beta1." - + "Operation.Status\022\016\n\006detail\030\010 \001(\t\022\036\n\016stat" - + "us_message\030\005 \001(\tB\006\030\001\342A\001\003\022\021\n\tself_link\030\006 " - + "\001(\t\022\023\n\013target_link\030\007 \001(\t\022\020\n\010location\030\t \001" - + "(\t\022\022\n\nstart_time\030\n \001(\t\022\020\n\010end_time\030\013 \001(\t" - + "\022C\n\010progress\030\014 \001(\0132+.google.container.v1" - + "beta1.OperationProgressB\004\342A\001\003\022I\n\022cluster" - + "_conditions\030\r \003(\0132).google.container.v1b" - + "eta1.StatusConditionB\002\030\001\022J\n\023nodepool_con" - + "ditions\030\016 \003(\0132).google.container.v1beta1" - + ".StatusConditionB\002\030\001\022!\n\005error\030\017 \001(\0132\022.go" - + "ogle.rpc.Status\"R\n\006Status\022\026\n\022STATUS_UNSP" - + "ECIFIED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022\010\n\004D" - + "ONE\020\003\022\014\n\010ABORTING\020\004\"\300\003\n\004Type\022\024\n\020TYPE_UNS" - + "PECIFIED\020\000\022\022\n\016CREATE_CLUSTER\020\001\022\022\n\016DELETE" - + "_CLUSTER\020\002\022\022\n\016UPGRADE_MASTER\020\003\022\021\n\rUPGRAD" - + "E_NODES\020\004\022\022\n\016REPAIR_CLUSTER\020\005\022\022\n\016UPDATE_" - + "CLUSTER\020\006\022\024\n\020CREATE_NODE_POOL\020\007\022\024\n\020DELET" - + "E_NODE_POOL\020\010\022\034\n\030SET_NODE_POOL_MANAGEMEN" - + "T\020\t\022\025\n\021AUTO_REPAIR_NODES\020\n\022\032\n\022AUTO_UPGRA" - + "DE_NODES\020\013\032\002\010\001\022\022\n\nSET_LABELS\020\014\032\002\010\001\022\027\n\017SE" - + "T_MASTER_AUTH\020\r\032\002\010\001\022\026\n\022SET_NODE_POOL_SIZ" - + "E\020\016\022\032\n\022SET_NETWORK_POLICY\020\017\032\002\010\001\022\036\n\026SET_M" - + "AINTENANCE_POLICY\020\020\032\002\010\001\022\022\n\016RESIZE_CLUSTE" - + "R\020\022\022\031\n\025FLEET_FEATURE_UPGRADE\020\023\"\313\002\n\021Opera" - + "tionProgress\022\014\n\004name\030\001 \001(\t\022:\n\006status\030\002 \001" - + "(\0162*.google.container.v1beta1.Operation." - + "Status\022C\n\007metrics\030\003 \003(\01322.google.contain" - + "er.v1beta1.OperationProgress.Metric\022;\n\006s" - + "tages\030\004 \003(\0132+.google.container.v1beta1.O" - + "perationProgress\032j\n\006Metric\022\022\n\004name\030\001 \001(\t" - + "B\004\342A\001\002\022\023\n\tint_value\030\002 \001(\003H\000\022\026\n\014double_va" - + "lue\030\003 \001(\001H\000\022\026\n\014string_value\030\004 \001(\tH\000B\007\n\005v" - + "alue\"\222\001\n\024CreateClusterRequest\022\032\n\nproject" - + "_id\030\001 \001(\tB\006\030\001\342A\001\002\022\024\n\004zone\030\002 \001(\tB\006\030\001\342A\001\002\022" - + "8\n\007cluster\030\003 \001(\0132!.google.container.v1be" - + "ta1.ClusterB\004\342A\001\002\022\016\n\006parent\030\005 \001(\t\"o\n\021Get" - + "ClusterRequest\022\032\n\nproject_id\030\001 \001(\tB\006\030\001\342A" - + "\001\002\022\024\n\004zone\030\002 \001(\tB\006\030\001\342A\001\002\022\032\n\ncluster_id\030\003" - + " \001(\tB\006\030\001\342A\001\002\022\014\n\004name\030\005 \001(\t\"\261\001\n\024UpdateClu" - + "sterRequest\022\032\n\nproject_id\030\001 \001(\tB\006\030\001\342A\001\002\022" - + "\024\n\004zone\030\002 \001(\tB\006\030\001\342A\001\002\022\032\n\ncluster_id\030\003 \001(" - + "\tB\006\030\001\342A\001\002\022=\n\006update\030\004 \001(\0132\'.google.conta" - + "iner.v1beta1.ClusterUpdateB\004\342A\001\002\022\014\n\004name" - + "\030\005 \001(\t\"\351\n\n\025UpdateNodePoolRequest\022\032\n\nproj" - + "ect_id\030\001 \001(\tB\006\030\001\342A\001\002\022\024\n\004zone\030\002 \001(\tB\006\030\001\342A" - + "\001\002\022\032\n\ncluster_id\030\003 \001(\tB\006\030\001\342A\001\002\022\034\n\014node_p" - + "ool_id\030\004 \001(\tB\006\030\001\342A\001\002\022\032\n\014node_version\030\005 \001" - + "(\tB\004\342A\001\002\022\030\n\nimage_type\030\006 \001(\tB\004\342A\001\002\022\021\n\tlo" - + "cations\030\r \003(\t\022R\n\030workload_metadata_confi" - + "g\030\016 \001(\01320.google.container.v1beta1.Workl" - + "oadMetadataConfig\022\014\n\004name\030\010 \001(\t\022L\n\020upgra" - + "de_settings\030\017 \001(\01322.google.container.v1b" - + "eta1.NodePool.UpgradeSettings\0223\n\004tags\030\020 " - + "\001(\0132%.google.container.v1beta1.NetworkTa" - + "gs\0224\n\006taints\030\021 \001(\0132$.google.container.v1" - + "beta1.NodeTaints\0224\n\006labels\030\022 \001(\0132$.googl" - + "e.container.v1beta1.NodeLabels\022D\n\021linux_" - + "node_config\030\023 \001(\0132).google.container.v1b" - + "eta1.LinuxNodeConfig\022C\n\016kubelet_config\030\024" - + " \001(\0132+.google.container.v1beta1.NodeKube" - + "letConfig\022H\n\023node_network_config\030\025 \001(\0132+" - + ".google.container.v1beta1.NodeNetworkCon" - + "fig\0229\n\013gcfs_config\030\026 \001(\0132$.google.contai" - + "ner.v1beta1.GcfsConfig\022G\n\022confidential_n" - + "odes\030\027 \001(\0132+.google.container.v1beta1.Co" - + "nfidentialNodes\0223\n\005gvnic\030\035 \001(\0132$.google." - + "container.v1beta1.VirtualNIC\022\014\n\004etag\030\036 \001" - + "(\t\0229\n\013fast_socket\030\037 \001(\0132$.google.contain" - + "er.v1beta1.FastSocket\022G\n\016logging_config\030" - + " \001(\0132/.google.container.v1beta1.NodePoo" - + "lLoggingConfig\022A\n\017resource_labels\030! \001(\0132" - + "(.google.container.v1beta1.ResourceLabel" - + "s\022H\n\023windows_node_config\030\" \001(\0132+.google." - + "container.v1beta1.WindowsNodeConfig\022\032\n\014m" - + "achine_type\030$ \001(\tB\004\342A\001\001\022\027\n\tdisk_type\030% \001" - + "(\tB\004\342A\001\001\022\032\n\014disk_size_gb\030& \001(\003B\004\342A\001\001\022L\n\025" - + "resource_manager_tags\030\' \001(\0132-.google.con" - + "tainer.v1beta1.ResourceManagerTags\"\343\001\n\035S" - + "etNodePoolAutoscalingRequest\022\032\n\nproject_" - + "id\030\001 \001(\tB\006\030\001\342A\001\002\022\024\n\004zone\030\002 \001(\tB\006\030\001\342A\001\002\022\032" - + "\n\ncluster_id\030\003 \001(\tB\006\030\001\342A\001\002\022\034\n\014node_pool_" - + "id\030\004 \001(\tB\006\030\001\342A\001\002\022H\n\013autoscaling\030\005 \001(\0132-." - + "google.container.v1beta1.NodePoolAutosca" - + "lingB\004\342A\001\002\022\014\n\004name\030\006 \001(\t\"\225\001\n\030SetLoggingS" - + "erviceRequest\022\032\n\nproject_id\030\001 \001(\tB\006\030\001\342A\001" - + "\002\022\024\n\004zone\030\002 \001(\tB\006\030\001\342A\001\002\022\032\n\ncluster_id\030\003 " - + "\001(\tB\006\030\001\342A\001\002\022\035\n\017logging_service\030\004 \001(\tB\004\342A" - + "\001\002\022\014\n\004name\030\005 \001(\t\"\233\001\n\033SetMonitoringServic" - + "eRequest\022\032\n\nproject_id\030\001 \001(\tB\006\030\001\342A\001\002\022\024\n\004" - + "zone\030\002 \001(\tB\006\030\001\342A\001\002\022\032\n\ncluster_id\030\003 \001(\tB\006" - + "\030\001\342A\001\002\022 \n\022monitoring_service\030\004 \001(\tB\004\342A\001\002" - + "\022\014\n\004name\030\006 \001(\t\"\271\001\n\026SetAddonsConfigReques" - + "t\022\032\n\nproject_id\030\001 \001(\tB\006\030\001\342A\001\002\022\024\n\004zone\030\002 " - + "\001(\tB\006\030\001\342A\001\002\022\032\n\ncluster_id\030\003 \001(\tB\006\030\001\342A\001\002\022" - + "C\n\raddons_config\030\004 \001(\0132&.google.containe" - + "r.v1beta1.AddonsConfigB\004\342A\001\002\022\014\n\004name\030\006 \001" - + "(\t\"\212\001\n\023SetLocationsRequest\022\032\n\nproject_id" - + "\030\001 \001(\tB\006\030\001\342A\001\002\022\024\n\004zone\030\002 \001(\tB\006\030\001\342A\001\002\022\032\n\n" - + "cluster_id\030\003 \001(\tB\006\030\001\342A\001\002\022\027\n\tlocations\030\004 " - + "\003(\tB\004\342A\001\002\022\014\n\004name\030\006 \001(\t\"\217\001\n\023UpdateMaster" - + "Request\022\032\n\nproject_id\030\001 \001(\tB\006\030\001\342A\001\002\022\024\n\004z" - + "one\030\002 \001(\tB\006\030\001\342A\001\002\022\032\n\ncluster_id\030\003 \001(\tB\006\030" - + "\001\342A\001\002\022\034\n\016master_version\030\004 \001(\tB\004\342A\001\002\022\014\n\004n" - + "ame\030\007 \001(\t\"\315\002\n\024SetMasterAuthRequest\022\032\n\npr" - + "oject_id\030\001 \001(\tB\006\030\001\342A\001\002\022\024\n\004zone\030\002 \001(\tB\006\030\001" - + "\342A\001\002\022\032\n\ncluster_id\030\003 \001(\tB\006\030\001\342A\001\002\022K\n\006acti" - + "on\030\004 \001(\01625.google.container.v1beta1.SetM" - + "asterAuthRequest.ActionB\004\342A\001\002\022:\n\006update\030" - + "\005 \001(\0132$.google.container.v1beta1.MasterA" - + "uthB\004\342A\001\002\022\014\n\004name\030\007 \001(\t\"P\n\006Action\022\013\n\007UNK" - + "NOWN\020\000\022\020\n\014SET_PASSWORD\020\001\022\025\n\021GENERATE_PAS" - + "SWORD\020\002\022\020\n\014SET_USERNAME\020\003\"r\n\024DeleteClust" - + "erRequest\022\032\n\nproject_id\030\001 \001(\tB\006\030\001\342A\001\002\022\024\n" - + "\004zone\030\002 \001(\tB\006\030\001\342A\001\002\022\032\n\ncluster_id\030\003 \001(\tB" - + "\006\030\001\342A\001\002\022\014\n\004name\030\004 \001(\t\"W\n\023ListClustersReq" - + "uest\022\032\n\nproject_id\030\001 \001(\tB\006\030\001\342A\001\002\022\024\n\004zone" - + "\030\002 \001(\tB\006\030\001\342A\001\002\022\016\n\006parent\030\004 \001(\t\"b\n\024ListCl" - + "ustersResponse\0223\n\010clusters\030\001 \003(\0132!.googl" - + "e.container.v1beta1.Cluster\022\025\n\rmissing_z" - + "ones\030\002 \003(\t\"s\n\023GetOperationRequest\022\032\n\npro" - + "ject_id\030\001 \001(\tB\006\030\001\342A\001\002\022\024\n\004zone\030\002 \001(\tB\006\030\001\342" - + "A\001\002\022\034\n\014operation_id\030\003 \001(\tB\006\030\001\342A\001\002\022\014\n\004nam" - + "e\030\005 \001(\t\"Y\n\025ListOperationsRequest\022\032\n\nproj" - + "ect_id\030\001 \001(\tB\006\030\001\342A\001\002\022\024\n\004zone\030\002 \001(\tB\006\030\001\342A" - + "\001\002\022\016\n\006parent\030\004 \001(\t\"v\n\026CancelOperationReq" - + "uest\022\032\n\nproject_id\030\001 \001(\tB\006\030\001\342A\001\002\022\024\n\004zone" - + "\030\002 \001(\tB\006\030\001\342A\001\002\022\034\n\014operation_id\030\003 \001(\tB\006\030\001" - + "\342A\001\002\022\014\n\004name\030\004 \001(\t\"h\n\026ListOperationsResp" - + "onse\0227\n\noperations\030\001 \003(\0132#.google.contai" - + "ner.v1beta1.Operation\022\025\n\rmissing_zones\030\002" - + " \003(\t\"X\n\026GetServerConfigRequest\022\032\n\nprojec" - + "t_id\030\001 \001(\tB\006\030\001\342A\001\002\022\024\n\004zone\030\002 \001(\tB\006\030\001\342A\001\002" - + "\022\014\n\004name\030\004 \001(\t\"\351\005\n\014ServerConfig\022\037\n\027defau" - + "lt_cluster_version\030\001 \001(\t\022\033\n\023valid_node_v" - + "ersions\030\003 \003(\t\022\032\n\022default_image_type\030\004 \001(" - + "\t\022\031\n\021valid_image_types\030\005 \003(\t\022\035\n\025valid_ma" - + "ster_versions\030\006 \003(\t\022M\n\010channels\030\t \003(\0132;." - + "google.container.v1beta1.ServerConfig.Re" - + "leaseChannelConfig\022\\\n\024windows_version_ma" - + "ps\030\n \003(\0132>.google.container.v1beta1.Serv" - + "erConfig.WindowsVersionMapsEntry\032\261\002\n\024Rel" - + "easeChannelConfig\022A\n\007channel\030\001 \001(\01620.goo" - + "gle.container.v1beta1.ReleaseChannel.Cha" - + "nnel\022\027\n\017default_version\030\002 \001(\t\022l\n\022availab" - + "le_versions\030\003 \003(\0132L.google.container.v1b" - + "eta1.ServerConfig.ReleaseChannelConfig.A" - + "vailableVersionB\002\030\001\022\026\n\016valid_versions\030\004 " - + "\003(\t\0327\n\020AvailableVersion\022\017\n\007version\030\001 \001(\t" - + "\022\016\n\006reason\030\002 \001(\t:\002\030\001\032d\n\027WindowsVersionMa" - + "psEntry\022\013\n\003key\030\001 \001(\t\0228\n\005value\030\002 \001(\0132).go" - + "ogle.container.v1beta1.WindowsVersions:\002" - + "8\001\"F\n\026BestEffortProvisioning\022\017\n\007enabled\030" - + "\001 \001(\010\022\033\n\023min_provision_nodes\030\002 \001(\005\"\314\001\n\017W" - + "indowsVersions\022R\n\020windows_versions\030\001 \003(\013" - + "28.google.container.v1beta1.WindowsVersi" - + "ons.WindowsVersion\032e\n\016WindowsVersion\022\022\n\n" - + "image_type\030\001 \001(\t\022\022\n\nos_version\030\002 \001(\t\022+\n\020" - + "support_end_date\030\003 \001(\0132\021.google.type.Dat" - + "e\"\262\001\n\025CreateNodePoolRequest\022\032\n\nproject_i" - + "d\030\001 \001(\tB\006\030\001\342A\001\002\022\024\n\004zone\030\002 \001(\tB\006\030\001\342A\001\002\022\032\n" - + "\ncluster_id\030\003 \001(\tB\006\030\001\342A\001\002\022;\n\tnode_pool\030\004" - + " \001(\0132\".google.container.v1beta1.NodePool" - + "B\004\342A\001\002\022\016\n\006parent\030\006 \001(\t\"\221\001\n\025DeleteNodePoo" - + "lRequest\022\032\n\nproject_id\030\001 \001(\tB\006\030\001\342A\001\002\022\024\n\004" - + "zone\030\002 \001(\tB\006\030\001\342A\001\002\022\032\n\ncluster_id\030\003 \001(\tB\006" - + "\030\001\342A\001\002\022\034\n\014node_pool_id\030\004 \001(\tB\006\030\001\342A\001\002\022\014\n\004" - + "name\030\006 \001(\t\"t\n\024ListNodePoolsRequest\022\032\n\npr" - + "oject_id\030\001 \001(\tB\006\030\001\342A\001\002\022\024\n\004zone\030\002 \001(\tB\006\030\001" - + "\342A\001\002\022\032\n\ncluster_id\030\003 \001(\tB\006\030\001\342A\001\002\022\016\n\006pare" - + "nt\030\005 \001(\t\"\216\001\n\022GetNodePoolRequest\022\032\n\nproje" - + "ct_id\030\001 \001(\tB\006\030\001\342A\001\002\022\024\n\004zone\030\002 \001(\tB\006\030\001\342A\001" - + "\002\022\032\n\ncluster_id\030\003 \001(\tB\006\030\001\342A\001\002\022\034\n\014node_po" - + "ol_id\030\004 \001(\tB\006\030\001\342A\001\002\022\014\n\004name\030\006 \001(\t\"\251\004\n\021Bl" - + "ueGreenSettings\022d\n\027standard_rollout_poli" - + "cy\030\001 \001(\0132A.google.container.v1beta1.Blue" - + "GreenSettings.StandardRolloutPolicyH\000\022h\n" - + "\031autoscaled_rollout_policy\030\003 \001(\0132C.googl" - + "e.container.v1beta1.BlueGreenSettings.Au" - + "toscaledRolloutPolicyH\000\022?\n\027node_pool_soa" - + "k_duration\030\002 \001(\0132\031.google.protobuf.Durat" - + "ionH\001\210\001\001\032\271\001\n\025StandardRolloutPolicy\022\032\n\020ba" - + "tch_percentage\030\001 \001(\002H\000\022\032\n\020batch_node_cou" - + "nt\030\002 \001(\005H\000\022;\n\023batch_soak_duration\030\003 \001(\0132" - + "\031.google.protobuf.DurationH\001\210\001\001B\023\n\021updat" - + "e_batch_sizeB\026\n\024_batch_soak_duration\032\031\n\027" - + "AutoscaledRolloutPolicyB\020\n\016rollout_polic" - + "yB\032\n\030_node_pool_soak_duration\"\253\021\n\010NodePo" - + "ol\022\014\n\004name\030\001 \001(\t\0224\n\006config\030\002 \001(\0132$.googl" - + "e.container.v1beta1.NodeConfig\022\032\n\022initia" - + "l_node_count\030\003 \001(\005\022\021\n\tlocations\030\r \003(\t\022C\n" - + "\016network_config\030\016 \001(\0132+.google.container" - + ".v1beta1.NodeNetworkConfig\022\021\n\tself_link\030" - + "d \001(\t\022\017\n\007version\030e \001(\t\022\033\n\023instance_group" - + "_urls\030f \003(\t\0229\n\006status\030g \001(\0162).google.con" - + "tainer.v1beta1.NodePool.Status\022\032\n\016status" - + "_message\030h \001(\tB\002\030\001\022B\n\013autoscaling\030\004 \001(\0132" - + "-.google.container.v1beta1.NodePoolAutos" - + "caling\022<\n\nmanagement\030\005 \001(\0132(.google.cont" - + "ainer.v1beta1.NodeManagement\022H\n\023max_pods" - + "_constraint\030\006 \001(\0132+.google.container.v1b" - + "eta1.MaxPodsConstraint\022=\n\nconditions\030i \003" - + "(\0132).google.container.v1beta1.StatusCond" - + "ition\022\032\n\022pod_ipv4_cidr_size\030\007 \001(\005\022L\n\020upg" - + "rade_settings\030k \001(\01322.google.container.v" - + "1beta1.NodePool.UpgradeSettings\022L\n\020place" - + "ment_policy\030l \001(\01322.google.container.v1b" - + "eta1.NodePool.PlacementPolicy\022H\n\013update_" - + "info\030m \001(\0132-.google.container.v1beta1.No" - + "dePool.UpdateInfoB\004\342A\001\003\022\014\n\004etag\030n \001(\t\022R\n" - + "\023queued_provisioning\030p \001(\01325.google.cont" - + "ainer.v1beta1.NodePool.QueuedProvisionin" - + "g\022R\n\030best_effort_provisioning\030q \001(\01320.go" - + "ogle.container.v1beta1.BestEffortProvisi" - + "oning\032\372\001\n\017UpgradeSettings\022\021\n\tmax_surge\030\001" - + " \001(\005\022\027\n\017max_unavailable\030\002 \001(\005\022G\n\010strateg" - + "y\030\003 \001(\01620.google.container.v1beta1.NodeP" - + "oolUpdateStrategyH\000\210\001\001\022M\n\023blue_green_set" - + "tings\030\004 \001(\0132+.google.container.v1beta1.B" - + "lueGreenSettingsH\001\210\001\001B\013\n\t_strategyB\026\n\024_b" - + "lue_green_settings\032\262\004\n\nUpdateInfo\022T\n\017blu" - + "e_green_info\030\001 \001(\0132;.google.container.v1" - + "beta1.NodePool.UpdateInfo.BlueGreenInfo\032" - + "\315\003\n\rBlueGreenInfo\022P\n\005phase\030\001 \001(\0162A.googl" - + "e.container.v1beta1.NodePool.UpdateInfo." - + "BlueGreenInfo.Phase\022 \n\030blue_instance_gro" - + "up_urls\030\002 \003(\t\022!\n\031green_instance_group_ur" - + "ls\030\003 \003(\t\022%\n\035blue_pool_deletion_start_tim" - + "e\030\004 \001(\t\022\032\n\022green_pool_version\030\005 \001(\t\"\341\001\n\005" - + "Phase\022\025\n\021PHASE_UNSPECIFIED\020\000\022\022\n\016UPDATE_S" - + "TARTED\020\001\022\027\n\023CREATING_GREEN_POOL\020\002\022\027\n\023COR" - + "DONING_BLUE_POOL\020\003\022\036\n\032WAITING_TO_DRAIN_B" - + "LUE_POOL\020\010\022\026\n\022DRAINING_BLUE_POOL\020\004\022\025\n\021NO", - "DE_POOL_SOAKING\020\005\022\026\n\022DELETING_BLUE_POOL\020" - + "\006\022\024\n\020ROLLBACK_STARTED\020\007\032\256\001\n\017PlacementPol" - + "icy\022E\n\004type\030\001 \001(\01627.google.container.v1b" - + "eta1.NodePool.PlacementPolicy.Type\022\024\n\014tp" - + "u_topology\030\002 \001(\t\022\023\n\013policy_name\030\003 \001(\t\")\n" - + "\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\013\n\007COMPACT\020\001" - + "\032%\n\022QueuedProvisioning\022\017\n\007enabled\030\001 \001(\010\"" - + "\201\001\n\006Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014PR" - + "OVISIONING\020\001\022\013\n\007RUNNING\020\002\022\026\n\022RUNNING_WIT" - + "H_ERROR\020\003\022\017\n\013RECONCILING\020\004\022\014\n\010STOPPING\020\005" - + "\022\t\n\005ERROR\020\006\"\202\001\n\016NodeManagement\022\024\n\014auto_u" - + "pgrade\030\001 \001(\010\022\023\n\013auto_repair\030\002 \001(\010\022E\n\017upg" - + "rade_options\030\n \001(\0132,.google.container.v1" - + "beta1.AutoUpgradeOptions\"J\n\022AutoUpgradeO" - + "ptions\022\037\n\027auto_upgrade_start_time\030\001 \001(\t\022" - + "\023\n\013description\030\002 \001(\t\"j\n\021MaintenancePolic" - + "y\022;\n\006window\030\001 \001(\0132+.google.container.v1b" - + "eta1.MaintenanceWindow\022\030\n\020resource_versi" - + "on\030\003 \001(\t\"\212\003\n\021MaintenanceWindow\022T\n\030daily_" - + "maintenance_window\030\002 \001(\01320.google.contai" - + "ner.v1beta1.DailyMaintenanceWindowH\000\022I\n\020" - + "recurring_window\030\003 \001(\0132-.google.containe" - + "r.v1beta1.RecurringTimeWindowH\000\022f\n\026maint" - + "enance_exclusions\030\004 \003(\0132F.google.contain" - + "er.v1beta1.MaintenanceWindow.Maintenance" - + "ExclusionsEntry\032b\n\032MaintenanceExclusions" - + "Entry\022\013\n\003key\030\001 \001(\t\0223\n\005value\030\002 \001(\0132$.goog" - + "le.container.v1beta1.TimeWindow:\0028\001B\010\n\006p" - + "olicy\"\325\001\n\nTimeWindow\022^\n\035maintenance_excl" - + "usion_options\030\003 \001(\01325.google.container.v" - + "1beta1.MaintenanceExclusionOptionsH\000\022.\n\n" - + "start_time\030\001 \001(\0132\032.google.protobuf.Times" - + "tamp\022,\n\010end_time\030\002 \001(\0132\032.google.protobuf" - + ".TimestampB\t\n\007options\"\271\001\n\033MaintenanceExc" - + "lusionOptions\022J\n\005scope\030\001 \001(\0162;.google.co" - + "ntainer.v1beta1.MaintenanceExclusionOpti" - + "ons.Scope\"N\n\005Scope\022\017\n\013NO_UPGRADES\020\000\022\025\n\021N" - + "O_MINOR_UPGRADES\020\001\022\035\n\031NO_MINOR_OR_NODE_U" - + "PGRADES\020\002\"_\n\023RecurringTimeWindow\0224\n\006wind" - + "ow\030\001 \001(\0132$.google.container.v1beta1.Time" - + "Window\022\022\n\nrecurrence\030\002 \001(\t\">\n\026DailyMaint" - + "enanceWindow\022\022\n\nstart_time\030\002 \001(\t\022\020\n\010dura" - + "tion\030\003 \001(\t\"\334\001\n\034SetNodePoolManagementRequ" - + "est\022\032\n\nproject_id\030\001 \001(\tB\006\030\001\342A\001\002\022\024\n\004zone\030" - + "\002 \001(\tB\006\030\001\342A\001\002\022\032\n\ncluster_id\030\003 \001(\tB\006\030\001\342A\001" - + "\002\022\034\n\014node_pool_id\030\004 \001(\tB\006\030\001\342A\001\002\022B\n\nmanag" - + "ement\030\005 \001(\0132(.google.container.v1beta1.N" - + "odeManagementB\004\342A\001\002\022\014\n\004name\030\007 \001(\t\"\254\001\n\026Se" - + "tNodePoolSizeRequest\022\032\n\nproject_id\030\001 \001(\t" - + "B\006\030\001\342A\001\002\022\024\n\004zone\030\002 \001(\tB\006\030\001\342A\001\002\022\032\n\ncluste" - + "r_id\030\003 \001(\tB\006\030\001\342A\001\002\022\034\n\014node_pool_id\030\004 \001(\t" - + "B\006\030\001\342A\001\002\022\030\n\nnode_count\030\005 \001(\005B\004\342A\001\002\022\014\n\004na" - + "me\030\007 \001(\t\".\n\036CompleteNodePoolUpgradeReque" - + "st\022\014\n\004name\030\001 \001(\t\"\257\001\n\036RollbackNodePoolUpg" - + "radeRequest\022\032\n\nproject_id\030\001 \001(\tB\006\030\001\342A\001\002\022" - + "\024\n\004zone\030\002 \001(\tB\006\030\001\342A\001\002\022\032\n\ncluster_id\030\003 \001(" - + "\tB\006\030\001\342A\001\002\022\034\n\014node_pool_id\030\004 \001(\tB\006\030\001\342A\001\002\022" - + "\014\n\004name\030\006 \001(\t\022\023\n\013respect_pdb\030\007 \001(\010\"O\n\025Li" - + "stNodePoolsResponse\0226\n\nnode_pools\030\001 \003(\0132" - + "\".google.container.v1beta1.NodePool\"\276\003\n\022" - + "ClusterAutoscaling\022$\n\034enable_node_autopr" - + "ovisioning\030\001 \001(\010\022@\n\017resource_limits\030\002 \003(" - + "\0132\'.google.container.v1beta1.ResourceLim" - + "it\022\\\n\023autoscaling_profile\030\003 \001(\0162?.google" - + ".container.v1beta1.ClusterAutoscaling.Au" - + "toscalingProfile\022g\n#autoprovisioning_nod" - + "e_pool_defaults\030\004 \001(\0132:.google.container" - + ".v1beta1.AutoprovisioningNodePoolDefault" - + "s\022\"\n\032autoprovisioning_locations\030\005 \003(\t\"U\n" - + "\022AutoscalingProfile\022\027\n\023PROFILE_UNSPECIFI" - + "ED\020\000\022\030\n\024OPTIMIZE_UTILIZATION\020\001\022\014\n\010BALANC" - + "ED\020\002\"\207\004\n AutoprovisioningNodePoolDefault" - + "s\022\024\n\014oauth_scopes\030\001 \003(\t\022\027\n\017service_accou" - + "nt\030\002 \001(\t\022L\n\020upgrade_settings\030\003 \001(\01322.goo" - + "gle.container.v1beta1.NodePool.UpgradeSe" - + "ttings\022<\n\nmanagement\030\004 \001(\0132(.google.cont" - + "ainer.v1beta1.NodeManagement\022\034\n\020min_cpu_" - + "platform\030\005 \001(\tB\002\030\001\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" - + ".ShieldedInstanceConfig\022\031\n\021boot_disk_kms" - + "_key\030\t \001(\t\022\022\n\nimage_type\030\n \001(\t\0223\n&insecu" - + "re_kubelet_readonly_port_enabled\030\r \001(\010H\000" - + "\210\001\001B)\n\'_insecure_kubelet_readonly_port_e" - + "nabled\"H\n\rResourceLimit\022\025\n\rresource_type" - + "\030\001 \001(\t\022\017\n\007minimum\030\002 \001(\003\022\017\n\007maximum\030\003 \001(\003" - + "\"\314\002\n\023NodePoolAutoscaling\022\017\n\007enabled\030\001 \001(" - + "\010\022\026\n\016min_node_count\030\002 \001(\005\022\026\n\016max_node_co" - + "unt\030\003 \001(\005\022\027\n\017autoprovisioned\030\004 \001(\010\022U\n\017lo" - + "cation_policy\030\005 \001(\0162<.google.container.v" - + "1beta1.NodePoolAutoscaling.LocationPolic" - + "y\022\034\n\024total_min_node_count\030\006 \001(\005\022\034\n\024total" - + "_max_node_count\030\007 \001(\005\"H\n\016LocationPolicy\022" - + "\037\n\033LOCATION_POLICY_UNSPECIFIED\020\000\022\014\n\010BALA" - + "NCED\020\001\022\007\n\003ANY\020\002\"\245\002\n\020SetLabelsRequest\022\032\n\n" - + "project_id\030\001 \001(\tB\006\030\001\342A\001\002\022\024\n\004zone\030\002 \001(\tB\006" - + "\030\001\342A\001\002\022\032\n\ncluster_id\030\003 \001(\tB\006\030\001\342A\001\002\022]\n\017re" - + "source_labels\030\004 \003(\0132>.google.container.v" - + "1beta1.SetLabelsRequest.ResourceLabelsEn" - + "tryB\004\342A\001\002\022\037\n\021label_fingerprint\030\005 \001(\tB\004\342A" - + "\001\002\022\014\n\004name\030\007 \001(\t\0325\n\023ResourceLabelsEntry\022" - + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\211\001\n\024SetL" - + "egacyAbacRequest\022\032\n\nproject_id\030\001 \001(\tB\006\030\001" - + "\342A\001\002\022\024\n\004zone\030\002 \001(\tB\006\030\001\342A\001\002\022\032\n\ncluster_id" - + "\030\003 \001(\tB\006\030\001\342A\001\002\022\025\n\007enabled\030\004 \001(\010B\004\342A\001\002\022\014\n" - + "\004name\030\006 \001(\t\"\220\001\n\026StartIPRotationRequest\022\032" - + "\n\nproject_id\030\001 \001(\tB\006\030\001\342A\001\002\022\024\n\004zone\030\002 \001(\t" - + "B\006\030\001\342A\001\002\022\032\n\ncluster_id\030\003 \001(\tB\006\030\001\342A\001\002\022\014\n\004" - + "name\030\006 \001(\t\022\032\n\022rotate_credentials\030\007 \001(\010\"w" - + "\n\031CompleteIPRotationRequest\022\032\n\nproject_i" - + "d\030\001 \001(\tB\006\030\001\342A\001\002\022\024\n\004zone\030\002 \001(\tB\006\030\001\342A\001\002\022\032\n" - + "\ncluster_id\030\003 \001(\tB\006\030\001\342A\001\002\022\014\n\004name\030\007 \001(\t\"" - + "\374\002\n\021AcceleratorConfig\022\031\n\021accelerator_cou" - + "nt\030\001 \001(\003\022\030\n\020accelerator_type\030\002 \001(\t\022\032\n\022gp" - + "u_partition_size\030\003 \001(\t\022+\n\037max_time_share" - + "d_clients_per_gpu\030\004 \001(\003B\002\030\001\022K\n\022gpu_shari" - + "ng_config\030\005 \001(\0132*.google.container.v1bet" - + "a1.GPUSharingConfigH\000\210\001\001\022b\n\036gpu_driver_i" - + "nstallation_config\030\006 \001(\01325.google.contai" - + "ner.v1beta1.GPUDriverInstallationConfigH" - + "\001\210\001\001B\025\n\023_gpu_sharing_configB!\n\037_gpu_driv" - + "er_installation_config\"\377\001\n\020GPUSharingCon" - + "fig\022\"\n\032max_shared_clients_per_gpu\030\001 \001(\003\022" - + "`\n\024gpu_sharing_strategy\030\002 \001(\0162=.google.c" - + "ontainer.v1beta1.GPUSharingConfig.GPUSha" - + "ringStrategyH\000\210\001\001\"L\n\022GPUSharingStrategy\022" - + "$\n GPU_SHARING_STRATEGY_UNSPECIFIED\020\000\022\020\n" - + "\014TIME_SHARING\020\001B\027\n\025_gpu_sharing_strategy" - + "\"\211\002\n\033GPUDriverInstallationConfig\022g\n\022gpu_" - + "driver_version\030\001 \001(\0162F.google.container." - + "v1beta1.GPUDriverInstallationConfig.GPUD" - + "riverVersionH\000\210\001\001\"j\n\020GPUDriverVersion\022\"\n" - + "\036GPU_DRIVER_VERSION_UNSPECIFIED\020\000\022\031\n\025INS" - + "TALLATION_DISABLED\020\001\022\013\n\007DEFAULT\020\002\022\n\n\006LAT" - + "EST\020\003B\025\n\023_gpu_driver_version\"*\n\027ManagedP" - + "rometheusConfig\022\017\n\007enabled\030\001 \001(\010\"\313\002\n\026Wor" - + "kloadMetadataConfig\022X\n\rnode_metadata\030\001 \001" - + "(\0162=.google.container.v1beta1.WorkloadMe" - + "tadataConfig.NodeMetadataB\002\030\001\022C\n\004mode\030\002 " - + "\001(\01625.google.container.v1beta1.WorkloadM" - + "etadataConfig.Mode\"P\n\014NodeMetadata\022\017\n\013UN" - + "SPECIFIED\020\000\022\n\n\006SECURE\020\001\022\n\n\006EXPOSE\020\002\022\027\n\023G" - + "KE_METADATA_SERVER\020\003\"@\n\004Mode\022\024\n\020MODE_UNS" - + "PECIFIED\020\000\022\020\n\014GCE_METADATA\020\001\022\020\n\014GKE_META" - + "DATA\020\002\"\274\001\n\027SetNetworkPolicyRequest\022\032\n\npr" - + "oject_id\030\001 \001(\tB\006\030\001\342A\001\002\022\024\n\004zone\030\002 \001(\tB\006\030\001" - + "\342A\001\002\022\032\n\ncluster_id\030\003 \001(\tB\006\030\001\342A\001\002\022E\n\016netw" - + "ork_policy\030\004 \001(\0132\'.google.container.v1be" - + "ta1.NetworkPolicyB\004\342A\001\002\022\014\n\004name\030\006 \001(\t\"\302\001" - + "\n\033SetMaintenancePolicyRequest\022\030\n\nproject" - + "_id\030\001 \001(\tB\004\342A\001\002\022\022\n\004zone\030\002 \001(\tB\004\342A\001\002\022\030\n\nc" - + "luster_id\030\003 \001(\tB\004\342A\001\002\022M\n\022maintenance_pol" - + "icy\030\004 \001(\0132+.google.container.v1beta1.Mai" - + "ntenancePolicyB\004\342A\001\002\022\014\n\004name\030\005 \001(\t\",\n\024Li" - + "stLocationsRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002" - + "\"g\n\025ListLocationsResponse\0225\n\tlocations\030\001" - + " \003(\0132\".google.container.v1beta1.Location" - + "\022\027\n\017next_page_token\030\002 \001(\t\"\261\001\n\010Location\022=" - + "\n\004type\030\001 \001(\0162/.google.container.v1beta1." - + "Location.LocationType\022\014\n\004name\030\002 \001(\t\022\023\n\013r" - + "ecommended\030\003 \001(\010\"C\n\014LocationType\022\035\n\031LOCA" - + "TION_TYPE_UNSPECIFIED\020\000\022\010\n\004ZONE\020\001\022\n\n\006REG" - + "ION\020\002\"\262\002\n\017StatusCondition\022@\n\004code\030\001 \001(\0162" - + "..google.container.v1beta1.StatusConditi" - + "on.CodeB\002\030\001\022\017\n\007message\030\002 \001(\t\022(\n\016canonica" - + "l_code\030\003 \001(\0162\020.google.rpc.Code\"\241\001\n\004Code\022" - + "\013\n\007UNKNOWN\020\000\022\020\n\014GCE_STOCKOUT\020\001\022\037\n\033GKE_SE" - + "RVICE_ACCOUNT_DELETED\020\002\022\026\n\022GCE_QUOTA_EXC" - + "EEDED\020\003\022\023\n\017SET_BY_OPERATOR\020\004\022\027\n\023CLOUD_KM" - + "S_KEY_ERROR\020\007\022\017\n\013CA_EXPIRING\020\t\032\002\030\001\"\372\010\n\rN" - + "etworkConfig\022\017\n\007network\030\001 \001(\t\022\022\n\nsubnetw" - + "ork\030\002 \001(\t\022$\n\034enable_intra_node_visibilit" - + "y\030\005 \001(\010\022H\n\023default_snat_status\030\007 \001(\0132+.g" - + "oogle.container.v1beta1.DefaultSnatStatu" - + "s\022\037\n\027enable_l4ilb_subsetting\030\n \001(\010\022E\n\021da" - + "tapath_provider\030\013 \001(\0162*.google.container" - + ".v1beta1.DatapathProvider\022U\n\032private_ipv" - + "6_google_access\030\014 \001(\01621.google.container" - + ".v1beta1.PrivateIPv6GoogleAccess\0227\n\ndns_" - + "config\030\r \001(\0132#.google.container.v1beta1." - + "DNSConfig\022W\n\033service_external_ips_config" - + "\030\017 \001(\01322.google.container.v1beta1.Servic" - + "eExternalIPsConfig\022F\n\022gateway_api_config" - + "\030\020 \001(\0132*.google.container.v1beta1.Gatewa" - + "yAPIConfig\022\037\n\027enable_multi_networking\030\021 " - + "\001(\010\022k\n\032network_performance_config\030\022 \001(\0132" - + "G.google.container.v1beta1.NetworkConfig" - + ".ClusterNetworkPerformanceConfig\022\'\n\032enab" - + "le_fqdn_network_policy\030\023 \001(\010H\000\210\001\001\022^\n\034in_" - + "transit_encryption_config\030\024 \001(\01623.google" - + ".container.v1beta1.InTransitEncryptionCo" - + "nfigH\001\210\001\001\032\343\001\n\037ClusterNetworkPerformanceC" - + "onfig\022v\n\033total_egress_bandwidth_tier\030\001 \001" - + "(\0162L.google.container.v1beta1.NetworkCon" - + "fig.ClusterNetworkPerformanceConfig.Tier" - + "H\000\210\001\001\"(\n\004Tier\022\024\n\020TIER_UNSPECIFIED\020\000\022\n\n\006T" - + "IER_1\020\001B\036\n\034_total_egress_bandwidth_tierB" - + "\035\n\033_enable_fqdn_network_policyB\037\n\035_in_tr" - + "ansit_encryption_config\"\301\001\n\020GatewayAPICo" - + "nfig\022C\n\007channel\030\001 \001(\01622.google.container" - + ".v1beta1.GatewayAPIConfig.Channel\"h\n\007Cha" - + "nnel\022\027\n\023CHANNEL_UNSPECIFIED\020\000\022\024\n\020CHANNEL" - + "_DISABLED\020\001\022\030\n\024CHANNEL_EXPERIMENTAL\020\003\022\024\n" - + "\020CHANNEL_STANDARD\020\004\"+\n\030ServiceExternalIP" - + "sConfig\022\017\n\007enabled\030\001 \001(\010\"k\n\034ListUsableSu" - + "bnetworksRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022\016" - + "\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npag" - + "e_token\030\004 \001(\t\"y\n\035ListUsableSubnetworksRe" - + "sponse\022?\n\013subnetworks\030\001 \003(\0132*.google.con" - + "tainer.v1beta1.UsableSubnetwork\022\027\n\017next_" - + "page_token\030\002 \001(\t\"\205\002\n\036UsableSubnetworkSec" - + "ondaryRange\022\022\n\nrange_name\030\001 \001(\t\022\025\n\rip_ci" - + "dr_range\030\002 \001(\t\022O\n\006status\030\003 \001(\0162?.google." - + "container.v1beta1.UsableSubnetworkSecond" - + "aryRange.Status\"g\n\006Status\022\013\n\007UNKNOWN\020\000\022\n" - + "\n\006UNUSED\020\001\022\022\n\016IN_USE_SERVICE\020\002\022\030\n\024IN_USE" - + "_SHAREABLE_POD\020\003\022\026\n\022IN_USE_MANAGED_POD\020\004" - + "\"\275\001\n\020UsableSubnetwork\022\022\n\nsubnetwork\030\001 \001(" - + "\t\022\017\n\007network\030\002 \001(\t\022\025\n\rip_cidr_range\030\003 \001(" - + "\t\022U\n\023secondary_ip_ranges\030\004 \003(\01328.google." - + "container.v1beta1.UsableSubnetworkSecond" - + "aryRange\022\026\n\016status_message\030\005 \001(\t\")\n\026Vert" - + "icalPodAutoscaling\022\017\n\007enabled\030\001 \001(\010\"%\n\021D" - + "efaultSnatStatus\022\020\n\010disabled\030\001 \001(\010\",\n\031In" - + "traNodeVisibilityConfig\022\017\n\007enabled\030\001 \001(\010" - + "\"&\n\023ILBSubsettingConfig\022\017\n\007enabled\030\001 \001(\010" - + "\"\325\002\n\tDNSConfig\022A\n\013cluster_dns\030\001 \001(\0162,.go" - + "ogle.container.v1beta1.DNSConfig.Provide" - + "r\022G\n\021cluster_dns_scope\030\002 \001(\0162,.google.co" - + "ntainer.v1beta1.DNSConfig.DNSScope\022\032\n\022cl" - + "uster_dns_domain\030\003 \001(\t\"W\n\010Provider\022\030\n\024PR" - + "OVIDER_UNSPECIFIED\020\000\022\024\n\020PLATFORM_DEFAULT" - + "\020\001\022\r\n\tCLOUD_DNS\020\002\022\014\n\010KUBE_DNS\020\003\"G\n\010DNSSc" - + "ope\022\031\n\025DNS_SCOPE_UNSPECIFIED\020\000\022\021\n\rCLUSTE" - + "R_SCOPE\020\001\022\r\n\tVPC_SCOPE\020\002\".\n\021MaxPodsConst" - + "raint\022\031\n\021max_pods_per_node\030\001 \001(\003\"j\n\026Work" - + "loadIdentityConfig\022\036\n\022identity_namespace" - + "\030\001 \001(\tB\002\030\001\022\025\n\rworkload_pool\030\002 \001(\t\022\031\n\021ide" - + "ntity_provider\030\003 \001(\t\"E\n\022WorkloadALTSConf" - + "ig\022/\n\013enable_alts\030\001 \001(\0132\032.google.protobu" - + "f.BoolValue\"O\n\024WorkloadCertificates\0227\n\023e" - + "nable_certificates\030\001 \001(\0132\032.google.protob" - + "uf.BoolValue\"K\n\020MeshCertificates\0227\n\023enab" - + "le_certificates\030\001 \001(\0132\032.google.protobuf." - + "BoolValue\"\235\001\n\022DatabaseEncryption\022\020\n\010key_" - + "name\030\001 \001(\t\022A\n\005state\030\002 \001(\01622.google.conta" - + "iner.v1beta1.DatabaseEncryption.State\"2\n" - + "\005State\022\013\n\007UNKNOWN\020\000\022\r\n\tENCRYPTED\020\001\022\r\n\tDE" - + "CRYPTED\020\002\"\367\002\n\031ResourceUsageExportConfig\022" - + "e\n\024bigquery_destination\030\001 \001(\0132G.google.c" - + "ontainer.v1beta1.ResourceUsageExportConf" - + "ig.BigQueryDestination\022&\n\036enable_network" - + "_egress_metering\030\002 \001(\010\022r\n\033consumption_me" - + "tering_config\030\003 \001(\0132M.google.container.v" - + "1beta1.ResourceUsageExportConfig.Consump" - + "tionMeteringConfig\032)\n\023BigQueryDestinatio" - + "n\022\022\n\ndataset_id\030\001 \001(\t\032,\n\031ConsumptionMete" - + "ringConfig\022\017\n\007enabled\030\001 \001(\010\" \n\rShieldedN" - + "odes\022\017\n\007enabled\030\001 \001(\010\"\035\n\nVirtualNIC\022\017\n\007e" - + "nabled\030\001 \001(\010\"\035\n\nFastSocket\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\006iss" - + "uer\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_s" - + "upported\030\004 \003(\t\022-\n%id_token_signing_alg_v" - + "alues_supported\030\005 \003(\t\022\030\n\020claims_supporte" - + "d\030\006 \003(\t\022\023\n\013grant_types\030\007 \003(\t\"\'\n\025GetJSONW" - + "ebKeysRequest\022\016\n\006parent\030\001 \001(\t\"r\n\003Jwk\022\013\n\003" - + "kty\030\001 \001(\t\022\013\n\003alg\030\002 \001(\t\022\013\n\003use\030\003 \001(\t\022\013\n\003k" - + "id\030\004 \001(\t\022\t\n\001n\030\005 \001(\t\022\t\n\001e\030\006 \001(\t\022\t\n\001x\030\007 \001(" - + "\t\022\t\n\001y\030\010 \001(\t\022\013\n\003crv\030\t \001(\t\"E\n\026GetJSONWebK" - + "eysResponse\022+\n\004keys\030\001 \003(\0132\035.google.conta" - + "iner.v1beta1.Jwk\"2\n\"CheckAutopilotCompat" - + "ibilityRequest\022\014\n\004name\030\001 \001(\t\"\201\003\n\033Autopil" - + "otCompatibilityIssue\0224\n\020last_observation" - + "\030\001 \001(\0132\032.google.protobuf.Timestamp\022\027\n\017co" - + "nstraint_type\030\002 \001(\t\022]\n\024incompatibility_t" - + "ype\030\003 \001(\0162?.google.container.v1beta1.Aut" - + "opilotCompatibilityIssue.IssueType\022\020\n\010su" - + "bjects\030\004 \003(\t\022\031\n\021documentation_url\030\005 \001(\t\022" - + "\023\n\013description\030\006 \001(\t\"r\n\tIssueType\022\017\n\013UNS" - + "PECIFIED\020\000\022\023\n\017INCOMPATIBILITY\020\001\022\036\n\032ADDIT" - + "IONAL_CONFIG_REQUIRED\020\002\022\037\n\033PASSED_WITH_O" - + "PTIONAL_CONFIG\020\003\"}\n#CheckAutopilotCompat" - + "ibilityResponse\022E\n\006issues\030\001 \003(\01325.google" - + ".container.v1beta1.AutopilotCompatibilit" - + "yIssue\022\017\n\007summary\030\002 \001(\t\"\223\001\n\016ReleaseChann" - + "el\022A\n\007channel\030\001 \001(\01620.google.container.v" - + "1beta1.ReleaseChannel.Channel\">\n\007Channel" - + "\022\017\n\013UNSPECIFIED\020\000\022\t\n\005RAPID\020\001\022\013\n\007REGULAR\020" - + "\002\022\n\n\006STABLE\020\003\"\'\n\024CostManagementConfig\022\017\n" - + "\007enabled\030\001 \001(\010\"U\n\tTpuConfig\022\017\n\007enabled\030\001" - + " \001(\010\022\036\n\026use_service_networking\030\002 \001(\010\022\027\n\017" - + "ipv4_cidr_block\030\003 \001(\t\"\010\n\006Master\"\225\001\n\031Auto" - + "pilotConversionStatus\022N\n\005state\030\002 \001(\01629.g" - + "oogle.container.v1beta1.AutopilotConvers" - + "ionStatus.StateB\004\342A\001\003\"(\n\005State\022\025\n\021STATE_" - + "UNSPECIFIED\020\000\022\010\n\004DONE\020\005\"\302\001\n\tAutopilot\022\017\n" - + "\007enabled\030\001 \001(\010\022N\n\026workload_policy_config" - + "\030\002 \001(\0132..google.container.v1beta1.Worklo" - + "adPolicyConfig\022T\n\021conversion_status\030\003 \001(" - + "\01323.google.container.v1beta1.AutopilotCo" - + "nversionStatusB\004\342A\001\003\"H\n\024WorkloadPolicyCo" - + "nfig\022\034\n\017allow_net_admin\030\001 \001(\010H\000\210\001\001B\022\n\020_a" - + "llow_net_admin\"\267\003\n\022NotificationConfig\022C\n" - + "\006pubsub\030\001 \001(\01323.google.container.v1beta1" - + ".NotificationConfig.PubSub\032\217\001\n\006PubSub\022\017\n" - + "\007enabled\030\001 \001(\010\022/\n\005topic\030\002 \001(\tB \372A\035\n\033pubs" - + "ub.googleapis.com/Topic\022C\n\006filter\030\003 \001(\0132" - + "3.google.container.v1beta1.NotificationC" - + "onfig.Filter\032T\n\006Filter\022J\n\nevent_type\030\001 \003" - + "(\01626.google.container.v1beta1.Notificati" - + "onConfig.EventType\"t\n\tEventType\022\032\n\026EVENT" - + "_TYPE_UNSPECIFIED\020\000\022\033\n\027UPGRADE_AVAILABLE" - + "_EVENT\020\001\022\021\n\rUPGRADE_EVENT\020\002\022\033\n\027SECURITY_" - + "BULLETIN_EVENT\020\003\"$\n\021ConfidentialNodes\022\017\n" - + "\007enabled\030\001 \001(\010\"\344\001\n\014UpgradeEvent\022D\n\rresou" - + "rce_type\030\001 \001(\0162-.google.container.v1beta" - + "1.UpgradeResourceType\022\021\n\toperation\030\002 \001(\t" - + "\0228\n\024operation_start_time\030\003 \001(\0132\032.google." - + "protobuf.Timestamp\022\027\n\017current_version\030\004 " - + "\001(\t\022\026\n\016target_version\030\005 \001(\t\022\020\n\010resource\030" - + "\006 \001(\t\"\210\002\n\025UpgradeAvailableEvent\022\017\n\007versi" - + "on\030\001 \001(\t\022D\n\rresource_type\030\002 \001(\0162-.google" - + ".container.v1beta1.UpgradeResourceType\022A" - + "\n\017release_channel\030\003 \001(\0132(.google.contain" - + "er.v1beta1.ReleaseChannel\022\020\n\010resource\030\004 " - + "\001(\t\022C\n\020windows_versions\030\005 \001(\0132).google.c" - + "ontainer.v1beta1.WindowsVersions\"\236\002\n\025Sec" - + "urityBulletinEvent\022\036\n\026resource_type_affe" - + "cted\030\001 \001(\t\022\023\n\013bulletin_id\030\002 \001(\t\022\017\n\007cve_i" - + "ds\030\003 \003(\t\022\020\n\010severity\030\004 \001(\t\022\024\n\014bulletin_u" - + "ri\030\005 \001(\t\022\031\n\021brief_description\030\006 \001(\t\022!\n\031a" - + "ffected_supported_minors\030\007 \003(\t\022\030\n\020patche" - + "d_versions\030\010 \003(\t\022 \n\030suggested_upgrade_ta" - + "rget\030\t \001(\t\022\035\n\025manual_steps_required\030\n \001(" - + "\010\"(\n\025IdentityServiceConfig\022\017\n\007enabled\030\001 " - + "\001(\010\"[\n\rLoggingConfig\022J\n\020component_config" - + "\030\001 \001(\01320.google.container.v1beta1.Loggin" - + "gComponentConfig\"\364\001\n\026LoggingComponentCon" - + "fig\022U\n\021enable_components\030\001 \003(\0162:.google." - + "container.v1beta1.LoggingComponentConfig" - + ".Component\"\202\001\n\tComponent\022\031\n\025COMPONENT_UN" - + "SPECIFIED\020\000\022\025\n\021SYSTEM_COMPONENTS\020\001\022\r\n\tWO" - + "RKLOADS\020\002\022\r\n\tAPISERVER\020\003\022\r\n\tSCHEDULER\020\004\022" - + "\026\n\022CONTROLLER_MANAGER\020\005\"\246\002\n\020MonitoringCo" - + "nfig\022M\n\020component_config\030\001 \001(\01323.google." - + "container.v1beta1.MonitoringComponentCon" - + "fig\022T\n\031managed_prometheus_config\030\002 \001(\01321" - + ".google.container.v1beta1.ManagedPrometh" - + "eusConfig\022m\n&advanced_datapath_observabi" - + "lity_config\030\003 \001(\0132=.google.container.v1b" - + "eta1.AdvancedDatapathObservabilityConfig" - + "\"\243\002\n#AdvancedDatapathObservabilityConfig" - + "\022\026\n\016enable_metrics\030\001 \001(\010\022[\n\nrelay_mode\030\002" - + " \001(\0162G.google.container.v1beta1.Advanced" - + "DatapathObservabilityConfig.RelayMode\022\031\n" - + "\014enable_relay\030\003 \001(\010H\000\210\001\001\"[\n\tRelayMode\022\032\n" - + "\026RELAY_MODE_UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022" - + "\023\n\017INTERNAL_VPC_LB\020\003\022\017\n\013EXTERNAL_LB\020\004B\017\n" - + "\r_enable_relay\"_\n\025NodePoolLoggingConfig\022" - + "F\n\016variant_config\030\001 \001(\0132..google.contain" - + "er.v1beta1.LoggingVariantConfig\"\244\001\n\024Logg" - + "ingVariantConfig\022G\n\007variant\030\001 \001(\01626.goog" - + "le.container.v1beta1.LoggingVariantConfi" - + "g.Variant\"C\n\007Variant\022\027\n\023VARIANT_UNSPECIF" - + "IED\020\000\022\013\n\007DEFAULT\020\001\022\022\n\016MAX_THROUGHPUT\020\002\"\315" - + "\002\n\031MonitoringComponentConfig\022X\n\021enable_c" - + "omponents\030\001 \003(\0162=.google.container.v1bet" - + "a1.MonitoringComponentConfig.Component\"\325" - + "\001\n\tComponent\022\031\n\025COMPONENT_UNSPECIFIED\020\000\022" - + "\025\n\021SYSTEM_COMPONENTS\020\001\022\021\n\tWORKLOADS\020\002\032\002\010" - + "\001\022\r\n\tAPISERVER\020\003\022\r\n\tSCHEDULER\020\004\022\026\n\022CONTR" - + "OLLER_MANAGER\020\005\022\013\n\007STORAGE\020\007\022\007\n\003HPA\020\010\022\007\n" - + "\003POD\020\t\022\r\n\tDAEMONSET\020\n\022\016\n\nDEPLOYMENT\020\013\022\017\n" - + "\013STATEFULSET\020\014\"D\n\005Fleet\022\017\n\007project\030\001 \001(\t" - + "\022\022\n\nmembership\030\002 \001(\t\022\026\n\016pre_registered\030\003" - + " \001(\010\"\211\001\n\023ResourceManagerTags\022E\n\004tags\030\001 \003" - + "(\01327.google.container.v1beta1.ResourceMa" - + "nagerTags.TagsEntry\032+\n\tTagsEntry\022\013\n\003key\030" - + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\261\001\n\020EnterpriseC" - + "onfig\022R\n\014cluster_tier\030\001 \001(\01626.google.con" - + "tainer.v1beta1.EnterpriseConfig.ClusterT" - + "ierB\004\342A\001\003\"I\n\013ClusterTier\022\034\n\030CLUSTER_TIER" - + "_UNSPECIFIED\020\000\022\014\n\010STANDARD\020\001\022\016\n\nENTERPRI" - + "SE\020\002*\306\001\n\027PrivateIPv6GoogleAccess\022*\n&PRIV" - + "ATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED\020\000\022\'\n#" - + "PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED\020\001\022(\n" - + "$PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE\020\002\022" - + ",\n(PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIO" - + "NAL\020\003*W\n\023UpgradeResourceType\022%\n!UPGRADE_" - + "RESOURCE_TYPE_UNSPECIFIED\020\000\022\n\n\006MASTER\020\001\022" - + "\r\n\tNODE_POOL\020\002*^\n\026NodePoolUpdateStrategy" - + "\022)\n%NODE_POOL_UPDATE_STRATEGY_UNSPECIFIE" - + "D\020\000\022\016\n\nBLUE_GREEN\020\002\022\t\n\005SURGE\020\003*a\n\020Datapa" - + "thProvider\022!\n\035DATAPATH_PROVIDER_UNSPECIF" - + "IED\020\000\022\023\n\017LEGACY_DATAPATH\020\001\022\025\n\021ADVANCED_D" - + "ATAPATH\020\002*@\n\tStackType\022\032\n\026STACK_TYPE_UNS" - + "PECIFIED\020\000\022\010\n\004IPV4\020\001\022\r\n\tIPV4_IPV6\020\002*\237\001\n\031" - + "InTransitEncryptionConfig\022,\n(IN_TRANSIT_", - "ENCRYPTION_CONFIG_UNSPECIFIED\020\000\022\"\n\036IN_TR" - + "ANSIT_ENCRYPTION_DISABLED\020\001\0220\n,IN_TRANSI" - + "T_ENCRYPTION_INTER_NODE_TRANSPARENT\020\0022\246N" - + "\n\016ClusterManager\022\363\001\n\014ListClusters\022-.goog" - + "le.container.v1beta1.ListClustersRequest" - + "\032..google.container.v1beta1.ListClusters" - + "Response\"\203\001\332A\017project_id,zone\202\323\344\223\002k\0221/v1" - + "beta1/{parent=projects/*/locations/*}/cl" - + "ustersZ6\0224/v1beta1/projects/{project_id}" - + "/zones/{zone}/clusters\022\372\001\n\nGetCluster\022+." - + "google.container.v1beta1.GetClusterReque" - + "st\032!.google.container.v1beta1.Cluster\"\233\001" - + "\332A\032project_id,zone,cluster_id\202\323\344\223\002x\0221/v1" - + "beta1/{name=projects/*/locations/*/clust" - + "ers/*}ZC\022A/v1beta1/projects/{project_id}" - + "/zones/{zone}/clusters/{cluster_id}\022\370\001\n\r" - + "CreateCluster\022..google.container.v1beta1" - + ".CreateClusterRequest\032#.google.container" - + ".v1beta1.Operation\"\221\001\332A\027project_id,zone," - + "cluster\202\323\344\223\002q\"1/v1beta1/{parent=projects" - + "/*/locations/*}/clusters:\001*Z9\"4/v1beta1/" - + "projects/{project_id}/zones/{zone}/clust" - + "ers:\001*\022\217\002\n\rUpdateCluster\022..google.contai" - + "ner.v1beta1.UpdateClusterRequest\032#.googl" - + "e.container.v1beta1.Operation\"\250\001\332A!proje" - + "ct_id,zone,cluster_id,update\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*" - + "\022\232\002\n\016UpdateNodePool\022/.google.container.v" - + "1beta1.UpdateNodePoolRequest\032#.google.co" - + "ntainer.v1beta1.Operation\"\261\001\202\323\344\223\002\252\001\032=/v1" - + "beta1/{name=projects/*/locations/*/clust" - + "ers/*/nodePools/*}:\001*Zf\"a/v1beta1/projec" - + "ts/{project_id}/zones/{zone}/clusters/{c" - + "luster_id}/nodePools/{node_pool_id}/upda" - + "te:\001*\022\276\002\n\026SetNodePoolAutoscaling\0227.googl" - + "e.container.v1beta1.SetNodePoolAutoscali" - + "ngRequest\032#.google.container.v1beta1.Ope" - + "ration\"\305\001\202\323\344\223\002\276\001\"L/v1beta1/{name=project" - + "s/*/locations/*/clusters/*/nodePools/*}:" - + "setAutoscaling:\001*Zk\"f/v1beta1/projects/{" - + "project_id}/zones/{zone}/clusters/{clust" - + "er_id}/nodePools/{node_pool_id}/autoscal" - + "ing:\001*\022\264\002\n\021SetLoggingService\0222.google.co" - + "ntainer.v1beta1.SetLoggingServiceRequest" - + "\032#.google.container.v1beta1.Operation\"\305\001" - + "\332A*project_id,zone,cluster_id,logging_se" - + "rvice\202\323\344\223\002\221\001\"/v1beta1/{name=proj" - + "ects/*/locations/*/clusters/*}:setLocati" - + "ons:\001*ZP\"K/v1beta1/projects/{project_id}" - + "/zones/{zone}/clusters/{cluster_id}/loca" - + "tions:\001*\022\252\002\n\014UpdateMaster\022-.google.conta" - + "iner.v1beta1.UpdateMasterRequest\032#.googl" - + "e.container.v1beta1.Operation\"\305\001\332A)proje" - + "ct_id,zone,cluster_id,master_version\202\323\344\223" - + "\002\222\001\">/v1beta1/{name=projects/*/locations" - + "/*/clusters/*}:updateMaster:\001*ZM\"H/v1bet" - + "a1/projects/{project_id}/zones/{zone}/cl" - + "usters/{cluster_id}/master:\001*\022\210\002\n\rSetMas" - + "terAuth\022..google.container.v1beta1.SetMa" - + "sterAuthRequest\032#.google.container.v1bet" - + "a1.Operation\"\241\001\202\323\344\223\002\232\001\"?/v1beta1/{name=p" - + "rojects/*/locations/*/clusters/*}:setMas" - + "terAuth:\001*ZT\"O/v1beta1/projects/{project" - + "_id}/zones/{zone}/clusters/{cluster_id}:" - + "setMasterAuth:\001*\022\202\002\n\rDeleteCluster\022..goo" - + "gle.container.v1beta1.DeleteClusterReque" - + "st\032#.google.container.v1beta1.Operation\"" - + "\233\001\332A\032project_id,zone,cluster_id\202\323\344\223\002x*1/" - + "v1beta1/{name=projects/*/locations/*/clu" - + "sters/*}ZC*A/v1beta1/projects/{project_i" - + "d}/zones/{zone}/clusters/{cluster_id}\022\375\001" - + "\n\016ListOperations\022/.google.container.v1be" - + "ta1.ListOperationsRequest\0320.google.conta" - + "iner.v1beta1.ListOperationsResponse\"\207\001\332A" - + "\017project_id,zone\202\323\344\223\002o\0223/v1beta1/{parent" - + "=projects/*/locations/*}/operationsZ8\0226/" - + "v1beta1/projects/{project_id}/zones/{zon" - + "e}/operations\022\210\002\n\014GetOperation\022-.google." - + "container.v1beta1.GetOperationRequest\032#." - + "google.container.v1beta1.Operation\"\243\001\332A\034" - + "project_id,zone,operation_id\202\323\344\223\002~\0223/v1b" - + "eta1/{name=projects/*/locations/*/operat" - + "ions/*}ZG\022E/v1beta1/projects/{project_id" - + "}/zones/{zone}/operations/{operation_id}" - + "\022\226\002\n\017CancelOperation\0220.google.container." - + "v1beta1.CancelOperationRequest\032\026.google." - + "protobuf.Empty\"\270\001\332A\034project_id,zone,oper" - + "ation_id\202\323\344\223\002\222\001\":/v1beta1/{name=projects" - + "/*/locations/*/operations/*}:cancel:\001*ZQ" - + "\"L/v1beta1/projects/{project_id}/zones/{" - + "zone}/operations/{operation_id}:cancel:\001" - + "*\022\367\001\n\017GetServerConfig\0220.google.container" - + ".v1beta1.GetServerConfigRequest\032&.google" - + ".container.v1beta1.ServerConfig\"\211\001\332A\017pro" - + "ject_id,zone\202\323\344\223\002q\0223/v1beta1/{name=proje" - + "cts/*/locations/*}/serverConfigZ:\0228/v1be" - + "ta1/projects/{project_id}/zones/{zone}/s" - + "erverconfig\022\265\001\n\016GetJSONWebKeys\022/.google." - + "container.v1beta1.GetJSONWebKeysRequest\032" - + "0.google.container.v1beta1.GetJSONWebKey" - + "sResponse\"@\202\323\344\223\002:\0228/v1beta1/{parent=proj" - + "ects/*/locations/*/clusters/*}/jwks\022\245\002\n\r" - + "ListNodePools\022..google.container.v1beta1" - + ".ListNodePoolsRequest\032/.google.container" - + ".v1beta1.ListNodePoolsResponse\"\262\001\332A\032proj" - + "ect_id,zone,cluster_id\202\323\344\223\002\216\001\022=/v1beta1/" - + "{parent=projects/*/locations/*/clusters/" - + "*}/nodePoolsZM\022K/v1beta1/projects/{proje" - + "ct_id}/zones/{zone}/clusters/{cluster_id" - + "}/nodePools\022\260\002\n\013GetNodePool\022,.google.con" - + "tainer.v1beta1.GetNodePoolRequest\032\".goog" - + "le.container.v1beta1.NodePool\"\316\001\332A\'proje" - + "ct_id,zone,cluster_id,node_pool_id\202\323\344\223\002\235" - + "\001\022=/v1beta1/{name=projects/*/locations/*" - + "/clusters/*/nodePools/*}Z\\\022Z/v1beta1/pro" - + "jects/{project_id}/zones/{zone}/clusters" - + "/{cluster_id}/nodePools/{node_pool_id}\022\253" - + "\002\n\016CreateNodePool\022/.google.container.v1b" - + "eta1.CreateNodePoolRequest\032#.google.cont" - + "ainer.v1beta1.Operation\"\302\001\332A$project_id," - + "zone,cluster_id,node_pool\202\323\344\223\002\224\001\"=/v1bet" - + "a1/{parent=projects/*/locations/*/cluste" - + "rs/*}/nodePools:\001*ZP\"K/v1beta1/projects/" - + "{project_id}/zones/{zone}/clusters/{clus" - + "ter_id}/nodePools:\001*\022\267\002\n\016DeleteNodePool\022" - + "/.google.container.v1beta1.DeleteNodePoo" - + "lRequest\032#.google.container.v1beta1.Oper" - + "ation\"\316\001\332A\'project_id,zone,cluster_id,no" - + "de_pool_id\202\323\344\223\002\235\001*=/v1beta1/{name=projec" - + "ts/*/locations/*/clusters/*/nodePools/*}" - + "Z\\*Z/v1beta1/projects/{project_id}/zones" - + "/{zone}/clusters/{cluster_id}/nodePools/" - + "{node_pool_id}\022\305\001\n\027CompleteNodePoolUpgra" - + "de\0228.google.container.v1beta1.CompleteNo" - + "dePoolUpgradeRequest\032\026.google.protobuf.E" - + "mpty\"X\202\323\344\223\002R\"M/v1beta1/{name=projects/*/" - + "locations/*/clusters/*/nodePools/*}:comp" - + "leteUpgrade:\001*\022\341\002\n\027RollbackNodePoolUpgra" - + "de\0228.google.container.v1beta1.RollbackNo" - + "dePoolUpgradeRequest\032#.google.container." - + "v1beta1.Operation\"\346\001\332A\'project_id,zone,c" - + "luster_id,node_pool_id\202\323\344\223\002\265\001\"F/v1beta1/" - + "{name=projects/*/locations/*/clusters/*/" - + "nodePools/*}:rollback:\001*Zh\"c/v1beta1/pro" - + "jects/{project_id}/zones/{zone}/clusters" - + "/{cluster_id}/nodePools/{node_pool_id}:r" - + "ollback:\001*\022\362\002\n\025SetNodePoolManagement\0226.g" - + "oogle.container.v1beta1.SetNodePoolManag" - + "ementRequest\032#.google.container.v1beta1." - + "Operation\"\373\001\332A2project_id,zone,cluster_i" - + "d,node_pool_id,management\202\323\344\223\002\277\001\"K/v1bet" - + "a1/{name=projects/*/locations/*/clusters" - + "/*/nodePools/*}:setManagement:\001*Zm\"h/v1b" - + "eta1/projects/{project_id}/zones/{zone}/" - + "clusters/{cluster_id}/nodePools/{node_po" - + "ol_id}/setManagement:\001*\022\304\002\n\tSetLabels\022*." - + "google.container.v1beta1.SetLabelsReques" - + "t\032#.google.container.v1beta1.Operation\"\345" - + "\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(); - } - - 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_ = 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; - * - * @return The type. - */ - @java.lang.Override - public com.google.container.v1beta1.ClusterTelemetry.Type getType() { - com.google.container.v1beta1.ClusterTelemetry.Type result = - com.google.container.v1beta1.ClusterTelemetry.Type.forNumber(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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.ClusterTelemetry result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.type_ = type_; - } - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - type_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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() { - com.google.container.v1beta1.ClusterTelemetry.Type result = - com.google.container.v1beta1.ClusterTelemetry.Type.forNumber(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(); - } - bitField0_ |= 0x00000001; - 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() { - bitField0_ = (bitField0_ & ~0x00000001); - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterTelemetryOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterTelemetryOrBuilder.java deleted file mode 100644 index bc3a1383601a..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterTelemetryOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterUpdate.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterUpdate.java deleted file mode 100644 index 73fa56c40a78..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterUpdate.java +++ /dev/null @@ -1,16643 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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.emptyList(); - desiredLoggingService_ = ""; - desiredDatapathProvider_ = 0; - desiredPrivateIpv6GoogleAccess_ = 0; - desiredMasterVersion_ = ""; - etag_ = ""; - desiredStackType_ = 0; - desiredInTransitEncryptionConfig_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ClusterUpdate(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_ClusterUpdate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_ClusterUpdate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.ClusterUpdate.class, - com.google.container.v1beta1.ClusterUpdate.Builder.class); - } - - private int bitField0_; - private int bitField1_; - public static final int DESIRED_NODE_VERSION_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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 ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * 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 desiredAddonsConfig_ == null - ? com.google.container.v1beta1.AddonsConfig.getDefaultInstance() - : desiredAddonsConfig_; - } - - public static final int DESIRED_NODE_POOL_ID_FIELD_NUMBER = 7; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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 ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * 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 desiredNodePoolAutoscaling_ == null - ? com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() - : desiredNodePoolAutoscaling_; - } - - public static final int DESIRED_LOCATIONS_FIELD_NUMBER = 10; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList desiredLocations_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * 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 ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-   * 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 desiredMasterAuthorizedNetworksConfig_ == null - ? com.google.container.v1beta1.MasterAuthorizedNetworksConfig.getDefaultInstance() - : desiredMasterAuthorizedNetworksConfig_; - } - - 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 ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-   * 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 desiredPodSecurityPolicyConfig_ == null - ? com.google.container.v1beta1.PodSecurityPolicyConfig.getDefaultInstance() - : desiredPodSecurityPolicyConfig_; - } - - 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 ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-   * 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 desiredClusterAutoscaling_ == null - ? com.google.container.v1beta1.ClusterAutoscaling.getDefaultInstance() - : desiredClusterAutoscaling_; - } - - 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 ((bitField0_ & 0x00000020) != 0); - } - /** - * - * - *
-   * 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 desiredBinaryAuthorization_ == null - ? com.google.container.v1beta1.BinaryAuthorization.getDefaultInstance() - : desiredBinaryAuthorization_; - } - - public static final int DESIRED_LOGGING_SERVICE_FIELD_NUMBER = 19; - - @SuppressWarnings("serial") - 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 ((bitField0_ & 0x00000040) != 0); - } - /** - * - * - *
-   * 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 desiredResourceUsageExportConfig_ == null - ? com.google.container.v1beta1.ResourceUsageExportConfig.getDefaultInstance() - : desiredResourceUsageExportConfig_; - } - - 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 ((bitField0_ & 0x00000080) != 0); - } - /** - * - * - *
-   * 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 desiredVerticalPodAutoscaling_ == null - ? com.google.container.v1beta1.VerticalPodAutoscaling.getDefaultInstance() - : desiredVerticalPodAutoscaling_; - } - - 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 ((bitField0_ & 0x00000100) != 0); - } - /** - * - * - *
-   * 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 desiredPrivateClusterConfig_ == null - ? com.google.container.v1beta1.PrivateClusterConfig.getDefaultInstance() - : desiredPrivateClusterConfig_; - } - - 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 ((bitField0_ & 0x00000200) != 0); - } - /** - * - * - *
-   * 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 desiredIntraNodeVisibilityConfig_ == null - ? com.google.container.v1beta1.IntraNodeVisibilityConfig.getDefaultInstance() - : desiredIntraNodeVisibilityConfig_; - } - - 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 ((bitField0_ & 0x00000400) != 0); - } - /** - * - * - *
-   * 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 desiredDefaultSnatStatus_ == null - ? com.google.container.v1beta1.DefaultSnatStatus.getDefaultInstance() - : desiredDefaultSnatStatus_; - } - - 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 ((bitField0_ & 0x00000800) != 0); - } - /** - * - * - *
-   * 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 desiredClusterTelemetry_ == null - ? com.google.container.v1beta1.ClusterTelemetry.getDefaultInstance() - : desiredClusterTelemetry_; - } - - 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 ((bitField0_ & 0x00001000) != 0); - } - /** - * - * - *
-   * 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 desiredReleaseChannel_ == null - ? com.google.container.v1beta1.ReleaseChannel.getDefaultInstance() - : desiredReleaseChannel_; - } - - 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 ((bitField0_ & 0x00002000) != 0); - } - /** - * - * - *
-   * 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 desiredTpuConfig_ == null - ? com.google.container.v1beta1.TpuConfig.getDefaultInstance() - : desiredTpuConfig_; - } - - public static final int DESIRED_L4ILB_SUBSETTING_CONFIG_FIELD_NUMBER = 39; - private com.google.container.v1beta1.ILBSubsettingConfig desiredL4IlbSubsettingConfig_; - /** - * - * - *
-   * The desired L4 Internal Load Balancer Subsetting configuration.
-   * 
- * - * .google.container.v1beta1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - * - * - * @return Whether the desiredL4ilbSubsettingConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredL4IlbSubsettingConfig() { - return ((bitField0_ & 0x00004000) != 0); - } - /** - * - * - *
-   * The desired L4 Internal Load Balancer Subsetting configuration.
-   * 
- * - * .google.container.v1beta1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - * - * - * @return The desiredL4ilbSubsettingConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.ILBSubsettingConfig getDesiredL4IlbSubsettingConfig() { - return desiredL4IlbSubsettingConfig_ == null - ? com.google.container.v1beta1.ILBSubsettingConfig.getDefaultInstance() - : desiredL4IlbSubsettingConfig_; - } - /** - * - * - *
-   * The desired L4 Internal Load Balancer Subsetting configuration.
-   * 
- * - * .google.container.v1beta1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - * - */ - @java.lang.Override - public com.google.container.v1beta1.ILBSubsettingConfigOrBuilder - getDesiredL4IlbSubsettingConfigOrBuilder() { - return desiredL4IlbSubsettingConfig_ == null - ? com.google.container.v1beta1.ILBSubsettingConfig.getDefaultInstance() - : desiredL4IlbSubsettingConfig_; - } - - public static final int DESIRED_DATAPATH_PROVIDER_FIELD_NUMBER = 50; - 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; - * - * @return The desiredDatapathProvider. - */ - @java.lang.Override - public com.google.container.v1beta1.DatapathProvider getDesiredDatapathProvider() { - com.google.container.v1beta1.DatapathProvider result = - com.google.container.v1beta1.DatapathProvider.forNumber(desiredDatapathProvider_); - return result == null ? com.google.container.v1beta1.DatapathProvider.UNRECOGNIZED : result; - } - - public static final int DESIRED_PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER = 51; - private int desiredPrivateIpv6GoogleAccess_ = 0; - /** - * - * - *
-   * The desired state of IPv6 connectivity to Google Services.
-   * 
- * - * - * .google.container.v1beta1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; - * - * - * @return The enum numeric value on the wire for desiredPrivateIpv6GoogleAccess. - */ - @java.lang.Override - public int getDesiredPrivateIpv6GoogleAccessValue() { - return desiredPrivateIpv6GoogleAccess_; - } - /** - * - * - *
-   * The desired state of IPv6 connectivity to Google Services.
-   * 
- * - * - * .google.container.v1beta1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; - * - * - * @return The desiredPrivateIpv6GoogleAccess. - */ - @java.lang.Override - public com.google.container.v1beta1.PrivateIPv6GoogleAccess getDesiredPrivateIpv6GoogleAccess() { - com.google.container.v1beta1.PrivateIPv6GoogleAccess result = - com.google.container.v1beta1.PrivateIPv6GoogleAccess.forNumber( - desiredPrivateIpv6GoogleAccess_); - return result == null - ? com.google.container.v1beta1.PrivateIPv6GoogleAccess.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 ((bitField0_ & 0x00008000) != 0); - } - /** - * - * - *
-   * 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 desiredNotificationConfig_ == null - ? com.google.container.v1beta1.NotificationConfig.getDefaultInstance() - : desiredNotificationConfig_; - } - - public static final int DESIRED_MASTER_VERSION_FIELD_NUMBER = 100; - - @SuppressWarnings("serial") - 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_GCFS_CONFIG_FIELD_NUMBER = 109; - private com.google.container.v1beta1.GcfsConfig desiredGcfsConfig_; - /** - * - * - *
-   * The desired GCFS config for the cluster.
-   * 
- * - * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; - * - * @return Whether the desiredGcfsConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredGcfsConfig() { - return ((bitField0_ & 0x00010000) != 0); - } - /** - * - * - *
-   * The desired GCFS config for the cluster.
-   * 
- * - * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; - * - * @return The desiredGcfsConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.GcfsConfig getDesiredGcfsConfig() { - return desiredGcfsConfig_ == null - ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() - : desiredGcfsConfig_; - } - /** - * - * - *
-   * The desired GCFS config for the cluster.
-   * 
- * - * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; - */ - @java.lang.Override - public com.google.container.v1beta1.GcfsConfigOrBuilder getDesiredGcfsConfigOrBuilder() { - return desiredGcfsConfig_ == null - ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() - : desiredGcfsConfig_; - } - - 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 ((bitField0_ & 0x00020000) != 0); - } - /** - * - * - *
-   * 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 desiredDatabaseEncryption_ == null - ? com.google.container.v1beta1.DatabaseEncryption.getDefaultInstance() - : desiredDatabaseEncryption_; - } - - 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 ((bitField0_ & 0x00040000) != 0); - } - /** - * - * - *
-   * 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 desiredWorkloadIdentityConfig_ == null - ? com.google.container.v1beta1.WorkloadIdentityConfig.getDefaultInstance() - : desiredWorkloadIdentityConfig_; - } - - public static final int DESIRED_WORKLOAD_CERTIFICATES_FIELD_NUMBER = 61; - private com.google.container.v1beta1.WorkloadCertificates desiredWorkloadCertificates_; - /** - * - * - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1beta1.WorkloadCertificates desired_workload_certificates = 61; - * - * @return Whether the desiredWorkloadCertificates field is set. - */ - @java.lang.Override - public boolean hasDesiredWorkloadCertificates() { - return ((bitField0_ & 0x00080000) != 0); - } - /** - * - * - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1beta1.WorkloadCertificates desired_workload_certificates = 61; - * - * @return The desiredWorkloadCertificates. - */ - @java.lang.Override - public com.google.container.v1beta1.WorkloadCertificates getDesiredWorkloadCertificates() { - return desiredWorkloadCertificates_ == null - ? com.google.container.v1beta1.WorkloadCertificates.getDefaultInstance() - : desiredWorkloadCertificates_; - } - /** - * - * - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1beta1.WorkloadCertificates desired_workload_certificates = 61; - */ - @java.lang.Override - public com.google.container.v1beta1.WorkloadCertificatesOrBuilder - getDesiredWorkloadCertificatesOrBuilder() { - return desiredWorkloadCertificates_ == null - ? com.google.container.v1beta1.WorkloadCertificates.getDefaultInstance() - : desiredWorkloadCertificates_; - } - - public static final int DESIRED_MESH_CERTIFICATES_FIELD_NUMBER = 67; - private com.google.container.v1beta1.MeshCertificates desiredMeshCertificates_; - /** - * - * - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; - * - * @return Whether the desiredMeshCertificates field is set. - */ - @java.lang.Override - public boolean hasDesiredMeshCertificates() { - return ((bitField0_ & 0x00100000) != 0); - } - /** - * - * - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; - * - * @return The desiredMeshCertificates. - */ - @java.lang.Override - public com.google.container.v1beta1.MeshCertificates getDesiredMeshCertificates() { - return desiredMeshCertificates_ == null - ? com.google.container.v1beta1.MeshCertificates.getDefaultInstance() - : desiredMeshCertificates_; - } - /** - * - * - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; - */ - @java.lang.Override - public com.google.container.v1beta1.MeshCertificatesOrBuilder - getDesiredMeshCertificatesOrBuilder() { - return desiredMeshCertificates_ == null - ? com.google.container.v1beta1.MeshCertificates.getDefaultInstance() - : desiredMeshCertificates_; - } - - public static final int DESIRED_WORKLOAD_ALTS_CONFIG_FIELD_NUMBER = 62; - private com.google.container.v1beta1.WorkloadALTSConfig desiredWorkloadAltsConfig_; - /** - * - * - *
-   * Configuration for direct-path (via ALTS) with workload identity.
-   * 
- * - * .google.container.v1beta1.WorkloadALTSConfig desired_workload_alts_config = 62; - * - * @return Whether the desiredWorkloadAltsConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredWorkloadAltsConfig() { - return ((bitField0_ & 0x00200000) != 0); - } - /** - * - * - *
-   * Configuration for direct-path (via ALTS) with workload identity.
-   * 
- * - * .google.container.v1beta1.WorkloadALTSConfig desired_workload_alts_config = 62; - * - * @return The desiredWorkloadAltsConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.WorkloadALTSConfig getDesiredWorkloadAltsConfig() { - return desiredWorkloadAltsConfig_ == null - ? com.google.container.v1beta1.WorkloadALTSConfig.getDefaultInstance() - : desiredWorkloadAltsConfig_; - } - /** - * - * - *
-   * Configuration for direct-path (via ALTS) with workload identity.
-   * 
- * - * .google.container.v1beta1.WorkloadALTSConfig desired_workload_alts_config = 62; - */ - @java.lang.Override - public com.google.container.v1beta1.WorkloadALTSConfigOrBuilder - getDesiredWorkloadAltsConfigOrBuilder() { - return desiredWorkloadAltsConfig_ == null - ? com.google.container.v1beta1.WorkloadALTSConfig.getDefaultInstance() - : desiredWorkloadAltsConfig_; - } - - 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 ((bitField0_ & 0x00400000) != 0); - } - /** - * - * - *
-   * 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 desiredShieldedNodes_ == null - ? com.google.container.v1beta1.ShieldedNodes.getDefaultInstance() - : desiredShieldedNodes_; - } - - public static final int DESIRED_COST_MANAGEMENT_CONFIG_FIELD_NUMBER = 49; - private com.google.container.v1beta1.CostManagementConfig desiredCostManagementConfig_; - /** - * - * - *
-   * The desired configuration for the fine-grained cost management feature.
-   * 
- * - * .google.container.v1beta1.CostManagementConfig desired_cost_management_config = 49; - * - * - * @return Whether the desiredCostManagementConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredCostManagementConfig() { - return ((bitField0_ & 0x00800000) != 0); - } - /** - * - * - *
-   * The desired configuration for the fine-grained cost management feature.
-   * 
- * - * .google.container.v1beta1.CostManagementConfig desired_cost_management_config = 49; - * - * - * @return The desiredCostManagementConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.CostManagementConfig getDesiredCostManagementConfig() { - return desiredCostManagementConfig_ == null - ? com.google.container.v1beta1.CostManagementConfig.getDefaultInstance() - : desiredCostManagementConfig_; - } - /** - * - * - *
-   * The desired configuration for the fine-grained cost management feature.
-   * 
- * - * .google.container.v1beta1.CostManagementConfig desired_cost_management_config = 49; - * - */ - @java.lang.Override - public com.google.container.v1beta1.CostManagementConfigOrBuilder - getDesiredCostManagementConfigOrBuilder() { - return desiredCostManagementConfig_ == null - ? com.google.container.v1beta1.CostManagementConfig.getDefaultInstance() - : desiredCostManagementConfig_; - } - - 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 ((bitField0_ & 0x01000000) != 0); - } - /** - * - * - *
-   * 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 desiredMaster_ == null - ? com.google.container.v1beta1.Master.getDefaultInstance() - : desiredMaster_; - } - - public static final int DESIRED_DNS_CONFIG_FIELD_NUMBER = 53; - private com.google.container.v1beta1.DNSConfig desiredDnsConfig_; - /** - * - * - *
-   * DNSConfig contains clusterDNS config for this cluster.
-   * 
- * - * .google.container.v1beta1.DNSConfig desired_dns_config = 53; - * - * @return Whether the desiredDnsConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredDnsConfig() { - return ((bitField0_ & 0x02000000) != 0); - } - /** - * - * - *
-   * DNSConfig contains clusterDNS config for this cluster.
-   * 
- * - * .google.container.v1beta1.DNSConfig desired_dns_config = 53; - * - * @return The desiredDnsConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.DNSConfig getDesiredDnsConfig() { - return desiredDnsConfig_ == null - ? com.google.container.v1beta1.DNSConfig.getDefaultInstance() - : desiredDnsConfig_; - } - /** - * - * - *
-   * DNSConfig contains clusterDNS config for this cluster.
-   * 
- * - * .google.container.v1beta1.DNSConfig desired_dns_config = 53; - */ - @java.lang.Override - public com.google.container.v1beta1.DNSConfigOrBuilder getDesiredDnsConfigOrBuilder() { - return desiredDnsConfig_ == null - ? com.google.container.v1beta1.DNSConfig.getDefaultInstance() - : desiredDnsConfig_; - } - - public static final int DESIRED_SERVICE_EXTERNAL_IPS_CONFIG_FIELD_NUMBER = 60; - private com.google.container.v1beta1.ServiceExternalIPsConfig desiredServiceExternalIpsConfig_; - /** - * - * - *
-   * ServiceExternalIPsConfig specifies the config for the use of Services with
-   * ExternalIPs field.
-   * 
- * - * - * .google.container.v1beta1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - * - * - * @return Whether the desiredServiceExternalIpsConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredServiceExternalIpsConfig() { - return ((bitField0_ & 0x04000000) != 0); - } - /** - * - * - *
-   * ServiceExternalIPsConfig specifies the config for the use of Services with
-   * ExternalIPs field.
-   * 
- * - * - * .google.container.v1beta1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - * - * - * @return The desiredServiceExternalIpsConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.ServiceExternalIPsConfig - getDesiredServiceExternalIpsConfig() { - return desiredServiceExternalIpsConfig_ == null - ? com.google.container.v1beta1.ServiceExternalIPsConfig.getDefaultInstance() - : desiredServiceExternalIpsConfig_; - } - /** - * - * - *
-   * ServiceExternalIPsConfig specifies the config for the use of Services with
-   * ExternalIPs field.
-   * 
- * - * - * .google.container.v1beta1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - * - */ - @java.lang.Override - public com.google.container.v1beta1.ServiceExternalIPsConfigOrBuilder - getDesiredServiceExternalIpsConfigOrBuilder() { - return desiredServiceExternalIpsConfig_ == null - ? com.google.container.v1beta1.ServiceExternalIPsConfig.getDefaultInstance() - : desiredServiceExternalIpsConfig_; - } - - public static final int DESIRED_AUTHENTICATOR_GROUPS_CONFIG_FIELD_NUMBER = 63; - private com.google.container.v1beta1.AuthenticatorGroupsConfig desiredAuthenticatorGroupsConfig_; - /** - * - * - *
-   * AuthenticatorGroupsConfig specifies the config for the cluster security
-   * groups settings.
-   * 
- * - * - * .google.container.v1beta1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - * - * - * @return Whether the desiredAuthenticatorGroupsConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredAuthenticatorGroupsConfig() { - return ((bitField0_ & 0x08000000) != 0); - } - /** - * - * - *
-   * AuthenticatorGroupsConfig specifies the config for the cluster security
-   * groups settings.
-   * 
- * - * - * .google.container.v1beta1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - * - * - * @return The desiredAuthenticatorGroupsConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.AuthenticatorGroupsConfig - getDesiredAuthenticatorGroupsConfig() { - return desiredAuthenticatorGroupsConfig_ == null - ? com.google.container.v1beta1.AuthenticatorGroupsConfig.getDefaultInstance() - : desiredAuthenticatorGroupsConfig_; - } - /** - * - * - *
-   * AuthenticatorGroupsConfig specifies the config for the cluster security
-   * groups settings.
-   * 
- * - * - * .google.container.v1beta1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - * - */ - @java.lang.Override - public com.google.container.v1beta1.AuthenticatorGroupsConfigOrBuilder - getDesiredAuthenticatorGroupsConfigOrBuilder() { - return desiredAuthenticatorGroupsConfig_ == null - ? com.google.container.v1beta1.AuthenticatorGroupsConfig.getDefaultInstance() - : desiredAuthenticatorGroupsConfig_; - } - - public static final int DESIRED_LOGGING_CONFIG_FIELD_NUMBER = 64; - private com.google.container.v1beta1.LoggingConfig desiredLoggingConfig_; - /** - * - * - *
-   * The desired logging configuration.
-   * 
- * - * .google.container.v1beta1.LoggingConfig desired_logging_config = 64; - * - * @return Whether the desiredLoggingConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredLoggingConfig() { - return ((bitField0_ & 0x10000000) != 0); - } - /** - * - * - *
-   * The desired logging configuration.
-   * 
- * - * .google.container.v1beta1.LoggingConfig desired_logging_config = 64; - * - * @return The desiredLoggingConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.LoggingConfig getDesiredLoggingConfig() { - return desiredLoggingConfig_ == null - ? com.google.container.v1beta1.LoggingConfig.getDefaultInstance() - : desiredLoggingConfig_; - } - /** - * - * - *
-   * The desired logging configuration.
-   * 
- * - * .google.container.v1beta1.LoggingConfig desired_logging_config = 64; - */ - @java.lang.Override - public com.google.container.v1beta1.LoggingConfigOrBuilder getDesiredLoggingConfigOrBuilder() { - return desiredLoggingConfig_ == null - ? com.google.container.v1beta1.LoggingConfig.getDefaultInstance() - : desiredLoggingConfig_; - } - - public static final int DESIRED_MONITORING_CONFIG_FIELD_NUMBER = 65; - private com.google.container.v1beta1.MonitoringConfig desiredMonitoringConfig_; - /** - * - * - *
-   * The desired monitoring configuration.
-   * 
- * - * .google.container.v1beta1.MonitoringConfig desired_monitoring_config = 65; - * - * @return Whether the desiredMonitoringConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredMonitoringConfig() { - return ((bitField0_ & 0x20000000) != 0); - } - /** - * - * - *
-   * The desired monitoring configuration.
-   * 
- * - * .google.container.v1beta1.MonitoringConfig desired_monitoring_config = 65; - * - * @return The desiredMonitoringConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.MonitoringConfig getDesiredMonitoringConfig() { - return desiredMonitoringConfig_ == null - ? com.google.container.v1beta1.MonitoringConfig.getDefaultInstance() - : desiredMonitoringConfig_; - } - /** - * - * - *
-   * The desired monitoring configuration.
-   * 
- * - * .google.container.v1beta1.MonitoringConfig desired_monitoring_config = 65; - */ - @java.lang.Override - public com.google.container.v1beta1.MonitoringConfigOrBuilder - getDesiredMonitoringConfigOrBuilder() { - return desiredMonitoringConfig_ == null - ? com.google.container.v1beta1.MonitoringConfig.getDefaultInstance() - : desiredMonitoringConfig_; - } - - public static final int DESIRED_IDENTITY_SERVICE_CONFIG_FIELD_NUMBER = 66; - private com.google.container.v1beta1.IdentityServiceConfig desiredIdentityServiceConfig_; - /** - * - * - *
-   * The desired Identity Service component configuration.
-   * 
- * - * .google.container.v1beta1.IdentityServiceConfig desired_identity_service_config = 66; - * - * - * @return Whether the desiredIdentityServiceConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredIdentityServiceConfig() { - return ((bitField0_ & 0x40000000) != 0); - } - /** - * - * - *
-   * The desired Identity Service component configuration.
-   * 
- * - * .google.container.v1beta1.IdentityServiceConfig desired_identity_service_config = 66; - * - * - * @return The desiredIdentityServiceConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.IdentityServiceConfig getDesiredIdentityServiceConfig() { - return desiredIdentityServiceConfig_ == null - ? com.google.container.v1beta1.IdentityServiceConfig.getDefaultInstance() - : desiredIdentityServiceConfig_; - } - /** - * - * - *
-   * The desired Identity Service component configuration.
-   * 
- * - * .google.container.v1beta1.IdentityServiceConfig desired_identity_service_config = 66; - * - */ - @java.lang.Override - public com.google.container.v1beta1.IdentityServiceConfigOrBuilder - getDesiredIdentityServiceConfigOrBuilder() { - return desiredIdentityServiceConfig_ == null - ? com.google.container.v1beta1.IdentityServiceConfig.getDefaultInstance() - : desiredIdentityServiceConfig_; - } - - public static final int DESIRED_ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER = 71; - private boolean desiredEnablePrivateEndpoint_ = false; - /** - * - * - *
-   * Enable/Disable private endpoint for the cluster's master.
-   * 
- * - * optional bool desired_enable_private_endpoint = 71; - * - * @return Whether the desiredEnablePrivateEndpoint field is set. - */ - @java.lang.Override - public boolean hasDesiredEnablePrivateEndpoint() { - return ((bitField0_ & 0x80000000) != 0); - } - /** - * - * - *
-   * Enable/Disable private endpoint for the cluster's master.
-   * 
- * - * optional bool desired_enable_private_endpoint = 71; - * - * @return The desiredEnablePrivateEndpoint. - */ - @java.lang.Override - public boolean getDesiredEnablePrivateEndpoint() { - return desiredEnablePrivateEndpoint_; - } - - public static final int DESIRED_NODE_POOL_AUTO_CONFIG_NETWORK_TAGS_FIELD_NUMBER = 110; - private com.google.container.v1beta1.NetworkTags desiredNodePoolAutoConfigNetworkTags_; - /** - * - * - *
-   * The desired network tags that apply to all auto-provisioned node pools
-   * in autopilot clusters and node auto-provisioning enabled clusters.
-   * 
- * - * .google.container.v1beta1.NetworkTags desired_node_pool_auto_config_network_tags = 110; - * - * - * @return Whether the desiredNodePoolAutoConfigNetworkTags field is set. - */ - @java.lang.Override - public boolean hasDesiredNodePoolAutoConfigNetworkTags() { - return ((bitField1_ & 0x00000001) != 0); - } - /** - * - * - *
-   * The desired network tags that apply to all auto-provisioned node pools
-   * in autopilot clusters and node auto-provisioning enabled clusters.
-   * 
- * - * .google.container.v1beta1.NetworkTags desired_node_pool_auto_config_network_tags = 110; - * - * - * @return The desiredNodePoolAutoConfigNetworkTags. - */ - @java.lang.Override - public com.google.container.v1beta1.NetworkTags getDesiredNodePoolAutoConfigNetworkTags() { - return desiredNodePoolAutoConfigNetworkTags_ == null - ? com.google.container.v1beta1.NetworkTags.getDefaultInstance() - : desiredNodePoolAutoConfigNetworkTags_; - } - /** - * - * - *
-   * The desired network tags that apply to all auto-provisioned node pools
-   * in autopilot clusters and node auto-provisioning enabled clusters.
-   * 
- * - * .google.container.v1beta1.NetworkTags desired_node_pool_auto_config_network_tags = 110; - * - */ - @java.lang.Override - public com.google.container.v1beta1.NetworkTagsOrBuilder - getDesiredNodePoolAutoConfigNetworkTagsOrBuilder() { - return desiredNodePoolAutoConfigNetworkTags_ == null - ? com.google.container.v1beta1.NetworkTags.getDefaultInstance() - : desiredNodePoolAutoConfigNetworkTags_; - } - - public static final int DESIRED_PROTECT_CONFIG_FIELD_NUMBER = 112; - private com.google.container.v1beta1.ProtectConfig desiredProtectConfig_; - /** - * - * - *
-   * Deprecated: Use DesiredSecurityPostureConfig instead.
-   * Enable/Disable Protect API features for the cluster.
-   * 
- * - * - * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112 [deprecated = true]; - * - * - * @deprecated google.container.v1beta1.ClusterUpdate.desired_protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2606 - * @return Whether the desiredProtectConfig field is set. - */ - @java.lang.Override - @java.lang.Deprecated - public boolean hasDesiredProtectConfig() { - return ((bitField1_ & 0x00000002) != 0); - } - /** - * - * - *
-   * Deprecated: Use DesiredSecurityPostureConfig instead.
-   * Enable/Disable Protect API features for the cluster.
-   * 
- * - * - * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112 [deprecated = true]; - * - * - * @deprecated google.container.v1beta1.ClusterUpdate.desired_protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2606 - * @return The desiredProtectConfig. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.container.v1beta1.ProtectConfig getDesiredProtectConfig() { - return desiredProtectConfig_ == null - ? com.google.container.v1beta1.ProtectConfig.getDefaultInstance() - : desiredProtectConfig_; - } - /** - * - * - *
-   * Deprecated: Use DesiredSecurityPostureConfig instead.
-   * Enable/Disable Protect API features for the cluster.
-   * 
- * - * - * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112 [deprecated = true]; - * - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.container.v1beta1.ProtectConfigOrBuilder getDesiredProtectConfigOrBuilder() { - return desiredProtectConfig_ == null - ? com.google.container.v1beta1.ProtectConfig.getDefaultInstance() - : desiredProtectConfig_; - } - - public static final int DESIRED_GATEWAY_API_CONFIG_FIELD_NUMBER = 114; - private com.google.container.v1beta1.GatewayAPIConfig desiredGatewayApiConfig_; - /** - * - * - *
-   * The desired config of Gateway API on this cluster.
-   * 
- * - * .google.container.v1beta1.GatewayAPIConfig desired_gateway_api_config = 114; - * - * @return Whether the desiredGatewayApiConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredGatewayApiConfig() { - return ((bitField1_ & 0x00000004) != 0); - } - /** - * - * - *
-   * The desired config of Gateway API on this cluster.
-   * 
- * - * .google.container.v1beta1.GatewayAPIConfig desired_gateway_api_config = 114; - * - * @return The desiredGatewayApiConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.GatewayAPIConfig getDesiredGatewayApiConfig() { - return desiredGatewayApiConfig_ == null - ? com.google.container.v1beta1.GatewayAPIConfig.getDefaultInstance() - : desiredGatewayApiConfig_; - } - /** - * - * - *
-   * The desired config of Gateway API on this cluster.
-   * 
- * - * .google.container.v1beta1.GatewayAPIConfig desired_gateway_api_config = 114; - */ - @java.lang.Override - public com.google.container.v1beta1.GatewayAPIConfigOrBuilder - getDesiredGatewayApiConfigOrBuilder() { - return desiredGatewayApiConfig_ == null - ? com.google.container.v1beta1.GatewayAPIConfig.getDefaultInstance() - : desiredGatewayApiConfig_; - } - - public static final int ETAG_FIELD_NUMBER = 115; - - @SuppressWarnings("serial") - private volatile java.lang.Object etag_ = ""; - /** - * - * - *
-   * The current etag of the cluster.
-   * If an etag is provided and does not match the current etag of the cluster,
-   * update will be blocked and an ABORTED error will be returned.
-   * 
- * - * string etag = 115; - * - * @return The etag. - */ - @java.lang.Override - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } - } - /** - * - * - *
-   * The current etag of the cluster.
-   * If an etag is provided and does not match the current etag of the cluster,
-   * update will be blocked and an ABORTED error will be returned.
-   * 
- * - * string etag = 115; - * - * @return The bytes for etag. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESIRED_NODE_POOL_LOGGING_CONFIG_FIELD_NUMBER = 116; - private com.google.container.v1beta1.NodePoolLoggingConfig desiredNodePoolLoggingConfig_; - /** - * - * - *
-   * The desired node pool logging configuration defaults for the cluster.
-   * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; - * - * - * @return Whether the desiredNodePoolLoggingConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredNodePoolLoggingConfig() { - return ((bitField1_ & 0x00000008) != 0); - } - /** - * - * - *
-   * The desired node pool logging configuration defaults for the cluster.
-   * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; - * - * - * @return The desiredNodePoolLoggingConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.NodePoolLoggingConfig getDesiredNodePoolLoggingConfig() { - return desiredNodePoolLoggingConfig_ == null - ? com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance() - : desiredNodePoolLoggingConfig_; - } - /** - * - * - *
-   * The desired node pool logging configuration defaults for the cluster.
-   * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; - * - */ - @java.lang.Override - public com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder - getDesiredNodePoolLoggingConfigOrBuilder() { - return desiredNodePoolLoggingConfig_ == null - ? com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance() - : desiredNodePoolLoggingConfig_; - } - - public static final int DESIRED_FLEET_FIELD_NUMBER = 117; - private com.google.container.v1beta1.Fleet desiredFleet_; - /** - * - * - *
-   * The desired fleet configuration for the cluster.
-   * 
- * - * .google.container.v1beta1.Fleet desired_fleet = 117; - * - * @return Whether the desiredFleet field is set. - */ - @java.lang.Override - public boolean hasDesiredFleet() { - return ((bitField1_ & 0x00000010) != 0); - } - /** - * - * - *
-   * The desired fleet configuration for the cluster.
-   * 
- * - * .google.container.v1beta1.Fleet desired_fleet = 117; - * - * @return The desiredFleet. - */ - @java.lang.Override - public com.google.container.v1beta1.Fleet getDesiredFleet() { - return desiredFleet_ == null - ? com.google.container.v1beta1.Fleet.getDefaultInstance() - : desiredFleet_; - } - /** - * - * - *
-   * The desired fleet configuration for the cluster.
-   * 
- * - * .google.container.v1beta1.Fleet desired_fleet = 117; - */ - @java.lang.Override - public com.google.container.v1beta1.FleetOrBuilder getDesiredFleetOrBuilder() { - return desiredFleet_ == null - ? com.google.container.v1beta1.Fleet.getDefaultInstance() - : desiredFleet_; - } - - public static final int DESIRED_STACK_TYPE_FIELD_NUMBER = 119; - private int desiredStackType_ = 0; - /** - * - * - *
-   * The desired stack type of the cluster.
-   * If a stack type is provided and does not match the current stack type of
-   * the cluster, update will attempt to change the stack type to the new type.
-   * 
- * - * .google.container.v1beta1.StackType desired_stack_type = 119; - * - * @return The enum numeric value on the wire for desiredStackType. - */ - @java.lang.Override - public int getDesiredStackTypeValue() { - return desiredStackType_; - } - /** - * - * - *
-   * The desired stack type of the cluster.
-   * If a stack type is provided and does not match the current stack type of
-   * the cluster, update will attempt to change the stack type to the new type.
-   * 
- * - * .google.container.v1beta1.StackType desired_stack_type = 119; - * - * @return The desiredStackType. - */ - @java.lang.Override - public com.google.container.v1beta1.StackType getDesiredStackType() { - com.google.container.v1beta1.StackType result = - com.google.container.v1beta1.StackType.forNumber(desiredStackType_); - return result == null ? com.google.container.v1beta1.StackType.UNRECOGNIZED : result; - } - - public static final int ADDITIONAL_POD_RANGES_CONFIG_FIELD_NUMBER = 120; - private com.google.container.v1beta1.AdditionalPodRangesConfig additionalPodRangesConfig_; - /** - * - * - *
-   * The additional pod ranges to be added to the cluster. These pod ranges
-   * can be used by node pools to allocate pod IPs.
-   * 
- * - * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; - * - * - * @return Whether the additionalPodRangesConfig field is set. - */ - @java.lang.Override - public boolean hasAdditionalPodRangesConfig() { - return ((bitField1_ & 0x00000020) != 0); - } - /** - * - * - *
-   * The additional pod ranges to be added to the cluster. These pod ranges
-   * can be used by node pools to allocate pod IPs.
-   * 
- * - * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; - * - * - * @return The additionalPodRangesConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.AdditionalPodRangesConfig getAdditionalPodRangesConfig() { - return additionalPodRangesConfig_ == null - ? com.google.container.v1beta1.AdditionalPodRangesConfig.getDefaultInstance() - : additionalPodRangesConfig_; - } - /** - * - * - *
-   * The additional pod ranges to be added to the cluster. These pod ranges
-   * can be used by node pools to allocate pod IPs.
-   * 
- * - * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; - * - */ - @java.lang.Override - public com.google.container.v1beta1.AdditionalPodRangesConfigOrBuilder - getAdditionalPodRangesConfigOrBuilder() { - return additionalPodRangesConfig_ == null - ? com.google.container.v1beta1.AdditionalPodRangesConfig.getDefaultInstance() - : additionalPodRangesConfig_; - } - - public static final int REMOVED_ADDITIONAL_POD_RANGES_CONFIG_FIELD_NUMBER = 121; - private com.google.container.v1beta1.AdditionalPodRangesConfig removedAdditionalPodRangesConfig_; - /** - * - * - *
-   * The additional pod ranges that are to be removed from the cluster.
-   * The pod ranges specified here must have been specified earlier in the
-   * 'additional_pod_ranges_config' argument.
-   * 
- * - * - * .google.container.v1beta1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; - * - * - * @return Whether the removedAdditionalPodRangesConfig field is set. - */ - @java.lang.Override - public boolean hasRemovedAdditionalPodRangesConfig() { - return ((bitField1_ & 0x00000040) != 0); - } - /** - * - * - *
-   * The additional pod ranges that are to be removed from the cluster.
-   * The pod ranges specified here must have been specified earlier in the
-   * 'additional_pod_ranges_config' argument.
-   * 
- * - * - * .google.container.v1beta1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; - * - * - * @return The removedAdditionalPodRangesConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.AdditionalPodRangesConfig - getRemovedAdditionalPodRangesConfig() { - return removedAdditionalPodRangesConfig_ == null - ? com.google.container.v1beta1.AdditionalPodRangesConfig.getDefaultInstance() - : removedAdditionalPodRangesConfig_; - } - /** - * - * - *
-   * The additional pod ranges that are to be removed from the cluster.
-   * The pod ranges specified here must have been specified earlier in the
-   * 'additional_pod_ranges_config' argument.
-   * 
- * - * - * .google.container.v1beta1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; - * - */ - @java.lang.Override - public com.google.container.v1beta1.AdditionalPodRangesConfigOrBuilder - getRemovedAdditionalPodRangesConfigOrBuilder() { - return removedAdditionalPodRangesConfig_ == null - ? com.google.container.v1beta1.AdditionalPodRangesConfig.getDefaultInstance() - : removedAdditionalPodRangesConfig_; - } - - public static final int ENABLE_K8S_BETA_APIS_FIELD_NUMBER = 122; - private com.google.container.v1beta1.K8sBetaAPIConfig enableK8SBetaApis_; - /** - * - * - *
-   * Kubernetes open source beta apis enabled on the cluster. Only beta apis
-   * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; - * - * @return Whether the enableK8sBetaApis field is set. - */ - @java.lang.Override - public boolean hasEnableK8SBetaApis() { - return ((bitField1_ & 0x00000080) != 0); - } - /** - * - * - *
-   * Kubernetes open source beta apis enabled on the cluster. Only beta apis
-   * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; - * - * @return The enableK8sBetaApis. - */ - @java.lang.Override - public com.google.container.v1beta1.K8sBetaAPIConfig getEnableK8SBetaApis() { - return enableK8SBetaApis_ == null - ? com.google.container.v1beta1.K8sBetaAPIConfig.getDefaultInstance() - : enableK8SBetaApis_; - } - /** - * - * - *
-   * Kubernetes open source beta apis enabled on the cluster. Only beta apis
-   * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; - */ - @java.lang.Override - public com.google.container.v1beta1.K8sBetaAPIConfigOrBuilder getEnableK8SBetaApisOrBuilder() { - return enableK8SBetaApis_ == null - ? com.google.container.v1beta1.K8sBetaAPIConfig.getDefaultInstance() - : enableK8SBetaApis_; - } - - public static final int DESIRED_SECURITY_POSTURE_CONFIG_FIELD_NUMBER = 124; - private com.google.container.v1beta1.SecurityPostureConfig desiredSecurityPostureConfig_; - /** - * - * - *
-   * Enable/Disable Security Posture API features for the cluster.
-   * 
- * - * .google.container.v1beta1.SecurityPostureConfig desired_security_posture_config = 124; - * - * - * @return Whether the desiredSecurityPostureConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredSecurityPostureConfig() { - return ((bitField1_ & 0x00000100) != 0); - } - /** - * - * - *
-   * Enable/Disable Security Posture API features for the cluster.
-   * 
- * - * .google.container.v1beta1.SecurityPostureConfig desired_security_posture_config = 124; - * - * - * @return The desiredSecurityPostureConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.SecurityPostureConfig getDesiredSecurityPostureConfig() { - return desiredSecurityPostureConfig_ == null - ? com.google.container.v1beta1.SecurityPostureConfig.getDefaultInstance() - : desiredSecurityPostureConfig_; - } - /** - * - * - *
-   * Enable/Disable Security Posture API features for the cluster.
-   * 
- * - * .google.container.v1beta1.SecurityPostureConfig desired_security_posture_config = 124; - * - */ - @java.lang.Override - public com.google.container.v1beta1.SecurityPostureConfigOrBuilder - getDesiredSecurityPostureConfigOrBuilder() { - return desiredSecurityPostureConfig_ == null - ? com.google.container.v1beta1.SecurityPostureConfig.getDefaultInstance() - : desiredSecurityPostureConfig_; - } - - public static final int DESIRED_NETWORK_PERFORMANCE_CONFIG_FIELD_NUMBER = 125; - private com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig - desiredNetworkPerformanceConfig_; - /** - * - * - *
-   * The desired network performance config.
-   * 
- * - * - * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; - * - * - * @return Whether the desiredNetworkPerformanceConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredNetworkPerformanceConfig() { - return ((bitField1_ & 0x00000200) != 0); - } - /** - * - * - *
-   * The desired network performance config.
-   * 
- * - * - * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; - * - * - * @return The desiredNetworkPerformanceConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig - getDesiredNetworkPerformanceConfig() { - return desiredNetworkPerformanceConfig_ == null - ? com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig - .getDefaultInstance() - : desiredNetworkPerformanceConfig_; - } - /** - * - * - *
-   * The desired network performance config.
-   * 
- * - * - * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; - * - */ - @java.lang.Override - public com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder - getDesiredNetworkPerformanceConfigOrBuilder() { - return desiredNetworkPerformanceConfig_ == null - ? com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig - .getDefaultInstance() - : desiredNetworkPerformanceConfig_; - } - - public static final int DESIRED_ENABLE_FQDN_NETWORK_POLICY_FIELD_NUMBER = 126; - private boolean desiredEnableFqdnNetworkPolicy_ = false; - /** - * - * - *
-   * Enable/Disable FQDN Network Policy for the cluster.
-   * 
- * - * optional bool desired_enable_fqdn_network_policy = 126; - * - * @return Whether the desiredEnableFqdnNetworkPolicy field is set. - */ - @java.lang.Override - public boolean hasDesiredEnableFqdnNetworkPolicy() { - return ((bitField1_ & 0x00000400) != 0); - } - /** - * - * - *
-   * Enable/Disable FQDN Network Policy for the cluster.
-   * 
- * - * optional bool desired_enable_fqdn_network_policy = 126; - * - * @return The desiredEnableFqdnNetworkPolicy. - */ - @java.lang.Override - public boolean getDesiredEnableFqdnNetworkPolicy() { - return desiredEnableFqdnNetworkPolicy_; - } - - public static final int DESIRED_AUTOPILOT_WORKLOAD_POLICY_CONFIG_FIELD_NUMBER = 128; - private com.google.container.v1beta1.WorkloadPolicyConfig desiredAutopilotWorkloadPolicyConfig_; - /** - * - * - *
-   * The desired workload policy configuration for the autopilot cluster.
-   * 
- * - * - * .google.container.v1beta1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; - * - * - * @return Whether the desiredAutopilotWorkloadPolicyConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredAutopilotWorkloadPolicyConfig() { - return ((bitField1_ & 0x00000800) != 0); - } - /** - * - * - *
-   * The desired workload policy configuration for the autopilot cluster.
-   * 
- * - * - * .google.container.v1beta1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; - * - * - * @return The desiredAutopilotWorkloadPolicyConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.WorkloadPolicyConfig - getDesiredAutopilotWorkloadPolicyConfig() { - return desiredAutopilotWorkloadPolicyConfig_ == null - ? com.google.container.v1beta1.WorkloadPolicyConfig.getDefaultInstance() - : desiredAutopilotWorkloadPolicyConfig_; - } - /** - * - * - *
-   * The desired workload policy configuration for the autopilot cluster.
-   * 
- * - * - * .google.container.v1beta1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; - * - */ - @java.lang.Override - public com.google.container.v1beta1.WorkloadPolicyConfigOrBuilder - getDesiredAutopilotWorkloadPolicyConfigOrBuilder() { - return desiredAutopilotWorkloadPolicyConfig_ == null - ? com.google.container.v1beta1.WorkloadPolicyConfig.getDefaultInstance() - : desiredAutopilotWorkloadPolicyConfig_; - } - - public static final int DESIRED_K8S_BETA_APIS_FIELD_NUMBER = 131; - private com.google.container.v1beta1.K8sBetaAPIConfig desiredK8SBetaApis_; - /** - * - * - *
-   * Beta APIs enabled for cluster.
-   * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; - * - * @return Whether the desiredK8sBetaApis field is set. - */ - @java.lang.Override - public boolean hasDesiredK8SBetaApis() { - return ((bitField1_ & 0x00001000) != 0); - } - /** - * - * - *
-   * Beta APIs enabled for cluster.
-   * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; - * - * @return The desiredK8sBetaApis. - */ - @java.lang.Override - public com.google.container.v1beta1.K8sBetaAPIConfig getDesiredK8SBetaApis() { - return desiredK8SBetaApis_ == null - ? com.google.container.v1beta1.K8sBetaAPIConfig.getDefaultInstance() - : desiredK8SBetaApis_; - } - /** - * - * - *
-   * Beta APIs enabled for cluster.
-   * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; - */ - @java.lang.Override - public com.google.container.v1beta1.K8sBetaAPIConfigOrBuilder getDesiredK8SBetaApisOrBuilder() { - return desiredK8SBetaApis_ == null - ? com.google.container.v1beta1.K8sBetaAPIConfig.getDefaultInstance() - : desiredK8SBetaApis_; - } - - public static final int DESIRED_HOST_MAINTENANCE_POLICY_FIELD_NUMBER = 132; - private com.google.container.v1beta1.HostMaintenancePolicy desiredHostMaintenancePolicy_; - /** - * - * - *
-   * HostMaintenancePolicy contains the desired maintenance policy for the
-   * Google Compute Engine hosts.
-   * 
- * - * .google.container.v1beta1.HostMaintenancePolicy desired_host_maintenance_policy = 132; - * - * - * @return Whether the desiredHostMaintenancePolicy field is set. - */ - @java.lang.Override - public boolean hasDesiredHostMaintenancePolicy() { - return ((bitField1_ & 0x00002000) != 0); - } - /** - * - * - *
-   * HostMaintenancePolicy contains the desired maintenance policy for the
-   * Google Compute Engine hosts.
-   * 
- * - * .google.container.v1beta1.HostMaintenancePolicy desired_host_maintenance_policy = 132; - * - * - * @return The desiredHostMaintenancePolicy. - */ - @java.lang.Override - public com.google.container.v1beta1.HostMaintenancePolicy getDesiredHostMaintenancePolicy() { - return desiredHostMaintenancePolicy_ == null - ? com.google.container.v1beta1.HostMaintenancePolicy.getDefaultInstance() - : desiredHostMaintenancePolicy_; - } - /** - * - * - *
-   * HostMaintenancePolicy contains the desired maintenance policy for the
-   * Google Compute Engine hosts.
-   * 
- * - * .google.container.v1beta1.HostMaintenancePolicy desired_host_maintenance_policy = 132; - * - */ - @java.lang.Override - public com.google.container.v1beta1.HostMaintenancePolicyOrBuilder - getDesiredHostMaintenancePolicyOrBuilder() { - return desiredHostMaintenancePolicy_ == null - ? com.google.container.v1beta1.HostMaintenancePolicy.getDefaultInstance() - : desiredHostMaintenancePolicy_; - } - - public static final int DESIRED_NODE_POOL_AUTO_CONFIG_RESOURCE_MANAGER_TAGS_FIELD_NUMBER = 136; - private com.google.container.v1beta1.ResourceManagerTags - desiredNodePoolAutoConfigResourceManagerTags_; - /** - * - * - *
-   * The desired resource manager tags that apply to all auto-provisioned node
-   * pools in autopilot clusters and node auto-provisioning enabled clusters.
-   * 
- * - * - * .google.container.v1beta1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; - * - * - * @return Whether the desiredNodePoolAutoConfigResourceManagerTags field is set. - */ - @java.lang.Override - public boolean hasDesiredNodePoolAutoConfigResourceManagerTags() { - return ((bitField1_ & 0x00004000) != 0); - } - /** - * - * - *
-   * The desired resource manager tags that apply to all auto-provisioned node
-   * pools in autopilot clusters and node auto-provisioning enabled clusters.
-   * 
- * - * - * .google.container.v1beta1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; - * - * - * @return The desiredNodePoolAutoConfigResourceManagerTags. - */ - @java.lang.Override - public com.google.container.v1beta1.ResourceManagerTags - getDesiredNodePoolAutoConfigResourceManagerTags() { - return desiredNodePoolAutoConfigResourceManagerTags_ == null - ? com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance() - : desiredNodePoolAutoConfigResourceManagerTags_; - } - /** - * - * - *
-   * The desired resource manager tags that apply to all auto-provisioned node
-   * pools in autopilot clusters and node auto-provisioning enabled clusters.
-   * 
- * - * - * .google.container.v1beta1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; - * - */ - @java.lang.Override - public com.google.container.v1beta1.ResourceManagerTagsOrBuilder - getDesiredNodePoolAutoConfigResourceManagerTagsOrBuilder() { - return desiredNodePoolAutoConfigResourceManagerTags_ == null - ? com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance() - : desiredNodePoolAutoConfigResourceManagerTags_; - } - - public static final int DESIRED_IN_TRANSIT_ENCRYPTION_CONFIG_FIELD_NUMBER = 137; - private int desiredInTransitEncryptionConfig_ = 0; - /** - * - * - *
-   * Specify the details of in-transit encryption.
-   * 
- * - * - * optional .google.container.v1beta1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; - * - * - * @return Whether the desiredInTransitEncryptionConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredInTransitEncryptionConfig() { - return ((bitField1_ & 0x00008000) != 0); - } - /** - * - * - *
-   * Specify the details of in-transit encryption.
-   * 
- * - * - * optional .google.container.v1beta1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; - * - * - * @return The enum numeric value on the wire for desiredInTransitEncryptionConfig. - */ - @java.lang.Override - public int getDesiredInTransitEncryptionConfigValue() { - return desiredInTransitEncryptionConfig_; - } - /** - * - * - *
-   * Specify the details of in-transit encryption.
-   * 
- * - * - * optional .google.container.v1beta1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; - * - * - * @return The desiredInTransitEncryptionConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.InTransitEncryptionConfig - getDesiredInTransitEncryptionConfig() { - com.google.container.v1beta1.InTransitEncryptionConfig result = - com.google.container.v1beta1.InTransitEncryptionConfig.forNumber( - desiredInTransitEncryptionConfig_); - return result == null - ? com.google.container.v1beta1.InTransitEncryptionConfig.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredNodeVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, desiredNodeVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredMonitoringService_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, desiredMonitoringService_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(6, getDesiredAddonsConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredNodePoolId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, desiredNodePoolId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredImageType_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, desiredImageType_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(9, getDesiredNodePoolAutoscaling()); - } - for (int i = 0; i < desiredLocations_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, desiredLocations_.getRaw(i)); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(12, getDesiredMasterAuthorizedNetworksConfig()); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(14, getDesiredPodSecurityPolicyConfig()); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeMessage(15, getDesiredClusterAutoscaling()); - } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeMessage(16, getDesiredBinaryAuthorization()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredLoggingService_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 19, desiredLoggingService_); - } - if (((bitField0_ & 0x00000040) != 0)) { - output.writeMessage(21, getDesiredResourceUsageExportConfig()); - } - if (((bitField0_ & 0x00000080) != 0)) { - output.writeMessage(22, getDesiredVerticalPodAutoscaling()); - } - if (((bitField0_ & 0x00000100) != 0)) { - output.writeMessage(25, getDesiredPrivateClusterConfig()); - } - if (((bitField0_ & 0x00000200) != 0)) { - output.writeMessage(26, getDesiredIntraNodeVisibilityConfig()); - } - if (((bitField0_ & 0x00000400) != 0)) { - output.writeMessage(28, getDesiredDefaultSnatStatus()); - } - if (((bitField0_ & 0x00000800) != 0)) { - output.writeMessage(30, getDesiredClusterTelemetry()); - } - if (((bitField0_ & 0x00001000) != 0)) { - output.writeMessage(31, getDesiredReleaseChannel()); - } - if (((bitField0_ & 0x00002000) != 0)) { - output.writeMessage(38, getDesiredTpuConfig()); - } - if (((bitField0_ & 0x00004000) != 0)) { - output.writeMessage(39, getDesiredL4IlbSubsettingConfig()); - } - if (((bitField0_ & 0x00020000) != 0)) { - output.writeMessage(46, getDesiredDatabaseEncryption()); - } - if (((bitField0_ & 0x00040000) != 0)) { - output.writeMessage(47, getDesiredWorkloadIdentityConfig()); - } - if (((bitField0_ & 0x00400000) != 0)) { - output.writeMessage(48, getDesiredShieldedNodes()); - } - if (((bitField0_ & 0x00800000) != 0)) { - output.writeMessage(49, getDesiredCostManagementConfig()); - } - if (desiredDatapathProvider_ - != com.google.container.v1beta1.DatapathProvider.DATAPATH_PROVIDER_UNSPECIFIED - .getNumber()) { - output.writeEnum(50, desiredDatapathProvider_); - } - if (desiredPrivateIpv6GoogleAccess_ - != com.google.container.v1beta1.PrivateIPv6GoogleAccess - .PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED - .getNumber()) { - output.writeEnum(51, desiredPrivateIpv6GoogleAccess_); - } - if (((bitField0_ & 0x01000000) != 0)) { - output.writeMessage(52, getDesiredMaster()); - } - if (((bitField0_ & 0x02000000) != 0)) { - output.writeMessage(53, getDesiredDnsConfig()); - } - if (((bitField0_ & 0x00008000) != 0)) { - output.writeMessage(55, getDesiredNotificationConfig()); - } - if (((bitField0_ & 0x04000000) != 0)) { - output.writeMessage(60, getDesiredServiceExternalIpsConfig()); - } - if (((bitField0_ & 0x00080000) != 0)) { - output.writeMessage(61, getDesiredWorkloadCertificates()); - } - if (((bitField0_ & 0x00200000) != 0)) { - output.writeMessage(62, getDesiredWorkloadAltsConfig()); - } - if (((bitField0_ & 0x08000000) != 0)) { - output.writeMessage(63, getDesiredAuthenticatorGroupsConfig()); - } - if (((bitField0_ & 0x10000000) != 0)) { - output.writeMessage(64, getDesiredLoggingConfig()); - } - if (((bitField0_ & 0x20000000) != 0)) { - output.writeMessage(65, getDesiredMonitoringConfig()); - } - if (((bitField0_ & 0x40000000) != 0)) { - output.writeMessage(66, getDesiredIdentityServiceConfig()); - } - if (((bitField0_ & 0x00100000) != 0)) { - output.writeMessage(67, getDesiredMeshCertificates()); - } - if (((bitField0_ & 0x80000000) != 0)) { - output.writeBool(71, desiredEnablePrivateEndpoint_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredMasterVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 100, desiredMasterVersion_); - } - if (((bitField0_ & 0x00010000) != 0)) { - output.writeMessage(109, getDesiredGcfsConfig()); - } - if (((bitField1_ & 0x00000001) != 0)) { - output.writeMessage(110, getDesiredNodePoolAutoConfigNetworkTags()); - } - if (((bitField1_ & 0x00000002) != 0)) { - output.writeMessage(112, getDesiredProtectConfig()); - } - if (((bitField1_ & 0x00000004) != 0)) { - output.writeMessage(114, getDesiredGatewayApiConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 115, etag_); - } - if (((bitField1_ & 0x00000008) != 0)) { - output.writeMessage(116, getDesiredNodePoolLoggingConfig()); - } - if (((bitField1_ & 0x00000010) != 0)) { - output.writeMessage(117, getDesiredFleet()); - } - if (desiredStackType_ - != com.google.container.v1beta1.StackType.STACK_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(119, desiredStackType_); - } - if (((bitField1_ & 0x00000020) != 0)) { - output.writeMessage(120, getAdditionalPodRangesConfig()); - } - if (((bitField1_ & 0x00000040) != 0)) { - output.writeMessage(121, getRemovedAdditionalPodRangesConfig()); - } - if (((bitField1_ & 0x00000080) != 0)) { - output.writeMessage(122, getEnableK8SBetaApis()); - } - if (((bitField1_ & 0x00000100) != 0)) { - output.writeMessage(124, getDesiredSecurityPostureConfig()); - } - if (((bitField1_ & 0x00000200) != 0)) { - output.writeMessage(125, getDesiredNetworkPerformanceConfig()); - } - if (((bitField1_ & 0x00000400) != 0)) { - output.writeBool(126, desiredEnableFqdnNetworkPolicy_); - } - if (((bitField1_ & 0x00000800) != 0)) { - output.writeMessage(128, getDesiredAutopilotWorkloadPolicyConfig()); - } - if (((bitField1_ & 0x00001000) != 0)) { - output.writeMessage(131, getDesiredK8SBetaApis()); - } - if (((bitField1_ & 0x00002000) != 0)) { - output.writeMessage(132, getDesiredHostMaintenancePolicy()); - } - if (((bitField1_ & 0x00004000) != 0)) { - output.writeMessage(136, getDesiredNodePoolAutoConfigResourceManagerTags()); - } - if (((bitField1_ & 0x00008000) != 0)) { - output.writeEnum(137, desiredInTransitEncryptionConfig_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredNodeVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, desiredNodeVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredMonitoringService_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(5, desiredMonitoringService_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDesiredAddonsConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredNodePoolId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, desiredNodePoolId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredImageType_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, desiredImageType_); - } - if (((bitField0_ & 0x00000002) != 0)) { - 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 (((bitField0_ & 0x00000004) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 12, getDesiredMasterAuthorizedNetworksConfig()); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 14, getDesiredPodSecurityPolicyConfig()); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 15, getDesiredClusterAutoscaling()); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 16, getDesiredBinaryAuthorization()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredLoggingService_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, desiredLoggingService_); - } - if (((bitField0_ & 0x00000040) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 21, getDesiredResourceUsageExportConfig()); - } - if (((bitField0_ & 0x00000080) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 22, getDesiredVerticalPodAutoscaling()); - } - if (((bitField0_ & 0x00000100) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 25, getDesiredPrivateClusterConfig()); - } - if (((bitField0_ & 0x00000200) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 26, getDesiredIntraNodeVisibilityConfig()); - } - if (((bitField0_ & 0x00000400) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 28, getDesiredDefaultSnatStatus()); - } - if (((bitField0_ & 0x00000800) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 30, getDesiredClusterTelemetry()); - } - if (((bitField0_ & 0x00001000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(31, getDesiredReleaseChannel()); - } - if (((bitField0_ & 0x00002000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(38, getDesiredTpuConfig()); - } - if (((bitField0_ & 0x00004000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 39, getDesiredL4IlbSubsettingConfig()); - } - if (((bitField0_ & 0x00020000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 46, getDesiredDatabaseEncryption()); - } - if (((bitField0_ & 0x00040000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 47, getDesiredWorkloadIdentityConfig()); - } - if (((bitField0_ & 0x00400000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(48, getDesiredShieldedNodes()); - } - if (((bitField0_ & 0x00800000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 49, getDesiredCostManagementConfig()); - } - if (desiredDatapathProvider_ - != com.google.container.v1beta1.DatapathProvider.DATAPATH_PROVIDER_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(50, desiredDatapathProvider_); - } - if (desiredPrivateIpv6GoogleAccess_ - != com.google.container.v1beta1.PrivateIPv6GoogleAccess - .PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED - .getNumber()) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize( - 51, desiredPrivateIpv6GoogleAccess_); - } - if (((bitField0_ & 0x01000000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(52, getDesiredMaster()); - } - if (((bitField0_ & 0x02000000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(53, getDesiredDnsConfig()); - } - if (((bitField0_ & 0x00008000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 55, getDesiredNotificationConfig()); - } - if (((bitField0_ & 0x04000000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 60, getDesiredServiceExternalIpsConfig()); - } - if (((bitField0_ & 0x00080000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 61, getDesiredWorkloadCertificates()); - } - if (((bitField0_ & 0x00200000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 62, getDesiredWorkloadAltsConfig()); - } - if (((bitField0_ & 0x08000000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 63, getDesiredAuthenticatorGroupsConfig()); - } - if (((bitField0_ & 0x10000000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(64, getDesiredLoggingConfig()); - } - if (((bitField0_ & 0x20000000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 65, getDesiredMonitoringConfig()); - } - if (((bitField0_ & 0x40000000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 66, getDesiredIdentityServiceConfig()); - } - if (((bitField0_ & 0x00100000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 67, getDesiredMeshCertificates()); - } - if (((bitField0_ & 0x80000000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(71, desiredEnablePrivateEndpoint_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredMasterVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, desiredMasterVersion_); - } - if (((bitField0_ & 0x00010000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(109, getDesiredGcfsConfig()); - } - if (((bitField1_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 110, getDesiredNodePoolAutoConfigNetworkTags()); - } - if (((bitField1_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(112, getDesiredProtectConfig()); - } - if (((bitField1_ & 0x00000004) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 114, getDesiredGatewayApiConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(115, etag_); - } - if (((bitField1_ & 0x00000008) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 116, getDesiredNodePoolLoggingConfig()); - } - if (((bitField1_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(117, getDesiredFleet()); - } - if (desiredStackType_ - != com.google.container.v1beta1.StackType.STACK_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(119, desiredStackType_); - } - if (((bitField1_ & 0x00000020) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 120, getAdditionalPodRangesConfig()); - } - if (((bitField1_ & 0x00000040) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 121, getRemovedAdditionalPodRangesConfig()); - } - if (((bitField1_ & 0x00000080) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(122, getEnableK8SBetaApis()); - } - if (((bitField1_ & 0x00000100) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 124, getDesiredSecurityPostureConfig()); - } - if (((bitField1_ & 0x00000200) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 125, getDesiredNetworkPerformanceConfig()); - } - if (((bitField1_ & 0x00000400) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 126, desiredEnableFqdnNetworkPolicy_); - } - if (((bitField1_ & 0x00000800) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 128, getDesiredAutopilotWorkloadPolicyConfig()); - } - if (((bitField1_ & 0x00001000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(131, getDesiredK8SBetaApis()); - } - if (((bitField1_ & 0x00002000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 132, getDesiredHostMaintenancePolicy()); - } - if (((bitField1_ & 0x00004000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 136, getDesiredNodePoolAutoConfigResourceManagerTags()); - } - if (((bitField1_ & 0x00008000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize( - 137, desiredInTransitEncryptionConfig_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (hasDesiredL4IlbSubsettingConfig() != other.hasDesiredL4IlbSubsettingConfig()) return false; - if (hasDesiredL4IlbSubsettingConfig()) { - if (!getDesiredL4IlbSubsettingConfig().equals(other.getDesiredL4IlbSubsettingConfig())) - return false; - } - if (desiredDatapathProvider_ != other.desiredDatapathProvider_) return false; - if (desiredPrivateIpv6GoogleAccess_ != other.desiredPrivateIpv6GoogleAccess_) return false; - if (hasDesiredNotificationConfig() != other.hasDesiredNotificationConfig()) return false; - if (hasDesiredNotificationConfig()) { - if (!getDesiredNotificationConfig().equals(other.getDesiredNotificationConfig())) - return false; - } - if (!getDesiredMasterVersion().equals(other.getDesiredMasterVersion())) return false; - if (hasDesiredGcfsConfig() != other.hasDesiredGcfsConfig()) return false; - if (hasDesiredGcfsConfig()) { - if (!getDesiredGcfsConfig().equals(other.getDesiredGcfsConfig())) return false; - } - if (hasDesiredDatabaseEncryption() != other.hasDesiredDatabaseEncryption()) return false; - if (hasDesiredDatabaseEncryption()) { - if (!getDesiredDatabaseEncryption().equals(other.getDesiredDatabaseEncryption())) - return false; - } - if (hasDesiredWorkloadIdentityConfig() != other.hasDesiredWorkloadIdentityConfig()) - return false; - if (hasDesiredWorkloadIdentityConfig()) { - if (!getDesiredWorkloadIdentityConfig().equals(other.getDesiredWorkloadIdentityConfig())) - return false; - } - if (hasDesiredWorkloadCertificates() != other.hasDesiredWorkloadCertificates()) return false; - if (hasDesiredWorkloadCertificates()) { - if (!getDesiredWorkloadCertificates().equals(other.getDesiredWorkloadCertificates())) - return false; - } - if (hasDesiredMeshCertificates() != other.hasDesiredMeshCertificates()) return false; - if (hasDesiredMeshCertificates()) { - if (!getDesiredMeshCertificates().equals(other.getDesiredMeshCertificates())) return false; - } - if (hasDesiredWorkloadAltsConfig() != other.hasDesiredWorkloadAltsConfig()) return false; - if (hasDesiredWorkloadAltsConfig()) { - if (!getDesiredWorkloadAltsConfig().equals(other.getDesiredWorkloadAltsConfig())) - return false; - } - if (hasDesiredShieldedNodes() != other.hasDesiredShieldedNodes()) return false; - if (hasDesiredShieldedNodes()) { - if (!getDesiredShieldedNodes().equals(other.getDesiredShieldedNodes())) return false; - } - if (hasDesiredCostManagementConfig() != other.hasDesiredCostManagementConfig()) return false; - if (hasDesiredCostManagementConfig()) { - if (!getDesiredCostManagementConfig().equals(other.getDesiredCostManagementConfig())) - return false; - } - if (hasDesiredMaster() != other.hasDesiredMaster()) return false; - if (hasDesiredMaster()) { - if (!getDesiredMaster().equals(other.getDesiredMaster())) return false; - } - if (hasDesiredDnsConfig() != other.hasDesiredDnsConfig()) return false; - if (hasDesiredDnsConfig()) { - if (!getDesiredDnsConfig().equals(other.getDesiredDnsConfig())) return false; - } - if (hasDesiredServiceExternalIpsConfig() != other.hasDesiredServiceExternalIpsConfig()) - return false; - if (hasDesiredServiceExternalIpsConfig()) { - if (!getDesiredServiceExternalIpsConfig().equals(other.getDesiredServiceExternalIpsConfig())) - return false; - } - if (hasDesiredAuthenticatorGroupsConfig() != other.hasDesiredAuthenticatorGroupsConfig()) - return false; - if (hasDesiredAuthenticatorGroupsConfig()) { - if (!getDesiredAuthenticatorGroupsConfig() - .equals(other.getDesiredAuthenticatorGroupsConfig())) return false; - } - if (hasDesiredLoggingConfig() != other.hasDesiredLoggingConfig()) return false; - if (hasDesiredLoggingConfig()) { - if (!getDesiredLoggingConfig().equals(other.getDesiredLoggingConfig())) return false; - } - if (hasDesiredMonitoringConfig() != other.hasDesiredMonitoringConfig()) return false; - if (hasDesiredMonitoringConfig()) { - if (!getDesiredMonitoringConfig().equals(other.getDesiredMonitoringConfig())) return false; - } - if (hasDesiredIdentityServiceConfig() != other.hasDesiredIdentityServiceConfig()) return false; - if (hasDesiredIdentityServiceConfig()) { - if (!getDesiredIdentityServiceConfig().equals(other.getDesiredIdentityServiceConfig())) - return false; - } - if (hasDesiredEnablePrivateEndpoint() != other.hasDesiredEnablePrivateEndpoint()) return false; - if (hasDesiredEnablePrivateEndpoint()) { - if (getDesiredEnablePrivateEndpoint() != other.getDesiredEnablePrivateEndpoint()) - return false; - } - if (hasDesiredNodePoolAutoConfigNetworkTags() - != other.hasDesiredNodePoolAutoConfigNetworkTags()) return false; - if (hasDesiredNodePoolAutoConfigNetworkTags()) { - if (!getDesiredNodePoolAutoConfigNetworkTags() - .equals(other.getDesiredNodePoolAutoConfigNetworkTags())) return false; - } - if (hasDesiredProtectConfig() != other.hasDesiredProtectConfig()) return false; - if (hasDesiredProtectConfig()) { - if (!getDesiredProtectConfig().equals(other.getDesiredProtectConfig())) return false; - } - if (hasDesiredGatewayApiConfig() != other.hasDesiredGatewayApiConfig()) return false; - if (hasDesiredGatewayApiConfig()) { - if (!getDesiredGatewayApiConfig().equals(other.getDesiredGatewayApiConfig())) return false; - } - if (!getEtag().equals(other.getEtag())) return false; - if (hasDesiredNodePoolLoggingConfig() != other.hasDesiredNodePoolLoggingConfig()) return false; - if (hasDesiredNodePoolLoggingConfig()) { - if (!getDesiredNodePoolLoggingConfig().equals(other.getDesiredNodePoolLoggingConfig())) - return false; - } - if (hasDesiredFleet() != other.hasDesiredFleet()) return false; - if (hasDesiredFleet()) { - if (!getDesiredFleet().equals(other.getDesiredFleet())) return false; - } - if (desiredStackType_ != other.desiredStackType_) return false; - if (hasAdditionalPodRangesConfig() != other.hasAdditionalPodRangesConfig()) return false; - if (hasAdditionalPodRangesConfig()) { - if (!getAdditionalPodRangesConfig().equals(other.getAdditionalPodRangesConfig())) - return false; - } - if (hasRemovedAdditionalPodRangesConfig() != other.hasRemovedAdditionalPodRangesConfig()) - return false; - if (hasRemovedAdditionalPodRangesConfig()) { - if (!getRemovedAdditionalPodRangesConfig() - .equals(other.getRemovedAdditionalPodRangesConfig())) return false; - } - if (hasEnableK8SBetaApis() != other.hasEnableK8SBetaApis()) return false; - if (hasEnableK8SBetaApis()) { - if (!getEnableK8SBetaApis().equals(other.getEnableK8SBetaApis())) return false; - } - if (hasDesiredSecurityPostureConfig() != other.hasDesiredSecurityPostureConfig()) return false; - if (hasDesiredSecurityPostureConfig()) { - if (!getDesiredSecurityPostureConfig().equals(other.getDesiredSecurityPostureConfig())) - return false; - } - if (hasDesiredNetworkPerformanceConfig() != other.hasDesiredNetworkPerformanceConfig()) - return false; - if (hasDesiredNetworkPerformanceConfig()) { - if (!getDesiredNetworkPerformanceConfig().equals(other.getDesiredNetworkPerformanceConfig())) - return false; - } - if (hasDesiredEnableFqdnNetworkPolicy() != other.hasDesiredEnableFqdnNetworkPolicy()) - return false; - if (hasDesiredEnableFqdnNetworkPolicy()) { - if (getDesiredEnableFqdnNetworkPolicy() != other.getDesiredEnableFqdnNetworkPolicy()) - return false; - } - if (hasDesiredAutopilotWorkloadPolicyConfig() - != other.hasDesiredAutopilotWorkloadPolicyConfig()) return false; - if (hasDesiredAutopilotWorkloadPolicyConfig()) { - if (!getDesiredAutopilotWorkloadPolicyConfig() - .equals(other.getDesiredAutopilotWorkloadPolicyConfig())) return false; - } - if (hasDesiredK8SBetaApis() != other.hasDesiredK8SBetaApis()) return false; - if (hasDesiredK8SBetaApis()) { - if (!getDesiredK8SBetaApis().equals(other.getDesiredK8SBetaApis())) return false; - } - if (hasDesiredHostMaintenancePolicy() != other.hasDesiredHostMaintenancePolicy()) return false; - if (hasDesiredHostMaintenancePolicy()) { - if (!getDesiredHostMaintenancePolicy().equals(other.getDesiredHostMaintenancePolicy())) - return false; - } - if (hasDesiredNodePoolAutoConfigResourceManagerTags() - != other.hasDesiredNodePoolAutoConfigResourceManagerTags()) return false; - if (hasDesiredNodePoolAutoConfigResourceManagerTags()) { - if (!getDesiredNodePoolAutoConfigResourceManagerTags() - .equals(other.getDesiredNodePoolAutoConfigResourceManagerTags())) return false; - } - if (hasDesiredInTransitEncryptionConfig() != other.hasDesiredInTransitEncryptionConfig()) - return false; - if (hasDesiredInTransitEncryptionConfig()) { - if (desiredInTransitEncryptionConfig_ != other.desiredInTransitEncryptionConfig_) - return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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(); - } - if (hasDesiredL4IlbSubsettingConfig()) { - hash = (37 * hash) + DESIRED_L4ILB_SUBSETTING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredL4IlbSubsettingConfig().hashCode(); - } - hash = (37 * hash) + DESIRED_DATAPATH_PROVIDER_FIELD_NUMBER; - hash = (53 * hash) + desiredDatapathProvider_; - hash = (37 * hash) + DESIRED_PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER; - hash = (53 * hash) + desiredPrivateIpv6GoogleAccess_; - if (hasDesiredNotificationConfig()) { - hash = (37 * hash) + DESIRED_NOTIFICATION_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredNotificationConfig().hashCode(); - } - hash = (37 * hash) + DESIRED_MASTER_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getDesiredMasterVersion().hashCode(); - if (hasDesiredGcfsConfig()) { - hash = (37 * hash) + DESIRED_GCFS_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredGcfsConfig().hashCode(); - } - if (hasDesiredDatabaseEncryption()) { - hash = (37 * hash) + DESIRED_DATABASE_ENCRYPTION_FIELD_NUMBER; - hash = (53 * hash) + getDesiredDatabaseEncryption().hashCode(); - } - if (hasDesiredWorkloadIdentityConfig()) { - hash = (37 * hash) + DESIRED_WORKLOAD_IDENTITY_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredWorkloadIdentityConfig().hashCode(); - } - if (hasDesiredWorkloadCertificates()) { - hash = (37 * hash) + DESIRED_WORKLOAD_CERTIFICATES_FIELD_NUMBER; - hash = (53 * hash) + getDesiredWorkloadCertificates().hashCode(); - } - if (hasDesiredMeshCertificates()) { - hash = (37 * hash) + DESIRED_MESH_CERTIFICATES_FIELD_NUMBER; - hash = (53 * hash) + getDesiredMeshCertificates().hashCode(); - } - if (hasDesiredWorkloadAltsConfig()) { - hash = (37 * hash) + DESIRED_WORKLOAD_ALTS_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredWorkloadAltsConfig().hashCode(); - } - if (hasDesiredShieldedNodes()) { - hash = (37 * hash) + DESIRED_SHIELDED_NODES_FIELD_NUMBER; - hash = (53 * hash) + getDesiredShieldedNodes().hashCode(); - } - if (hasDesiredCostManagementConfig()) { - hash = (37 * hash) + DESIRED_COST_MANAGEMENT_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredCostManagementConfig().hashCode(); - } - if (hasDesiredMaster()) { - hash = (37 * hash) + DESIRED_MASTER_FIELD_NUMBER; - hash = (53 * hash) + getDesiredMaster().hashCode(); - } - if (hasDesiredDnsConfig()) { - hash = (37 * hash) + DESIRED_DNS_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredDnsConfig().hashCode(); - } - if (hasDesiredServiceExternalIpsConfig()) { - hash = (37 * hash) + DESIRED_SERVICE_EXTERNAL_IPS_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredServiceExternalIpsConfig().hashCode(); - } - if (hasDesiredAuthenticatorGroupsConfig()) { - hash = (37 * hash) + DESIRED_AUTHENTICATOR_GROUPS_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredAuthenticatorGroupsConfig().hashCode(); - } - if (hasDesiredLoggingConfig()) { - hash = (37 * hash) + DESIRED_LOGGING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredLoggingConfig().hashCode(); - } - if (hasDesiredMonitoringConfig()) { - hash = (37 * hash) + DESIRED_MONITORING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredMonitoringConfig().hashCode(); - } - if (hasDesiredIdentityServiceConfig()) { - hash = (37 * hash) + DESIRED_IDENTITY_SERVICE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredIdentityServiceConfig().hashCode(); - } - if (hasDesiredEnablePrivateEndpoint()) { - hash = (37 * hash) + DESIRED_ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER; - hash = - (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDesiredEnablePrivateEndpoint()); - } - if (hasDesiredNodePoolAutoConfigNetworkTags()) { - hash = (37 * hash) + DESIRED_NODE_POOL_AUTO_CONFIG_NETWORK_TAGS_FIELD_NUMBER; - hash = (53 * hash) + getDesiredNodePoolAutoConfigNetworkTags().hashCode(); - } - if (hasDesiredProtectConfig()) { - hash = (37 * hash) + DESIRED_PROTECT_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredProtectConfig().hashCode(); - } - if (hasDesiredGatewayApiConfig()) { - hash = (37 * hash) + DESIRED_GATEWAY_API_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredGatewayApiConfig().hashCode(); - } - hash = (37 * hash) + ETAG_FIELD_NUMBER; - hash = (53 * hash) + getEtag().hashCode(); - if (hasDesiredNodePoolLoggingConfig()) { - hash = (37 * hash) + DESIRED_NODE_POOL_LOGGING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredNodePoolLoggingConfig().hashCode(); - } - if (hasDesiredFleet()) { - hash = (37 * hash) + DESIRED_FLEET_FIELD_NUMBER; - hash = (53 * hash) + getDesiredFleet().hashCode(); - } - hash = (37 * hash) + DESIRED_STACK_TYPE_FIELD_NUMBER; - hash = (53 * hash) + desiredStackType_; - if (hasAdditionalPodRangesConfig()) { - hash = (37 * hash) + ADDITIONAL_POD_RANGES_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getAdditionalPodRangesConfig().hashCode(); - } - if (hasRemovedAdditionalPodRangesConfig()) { - hash = (37 * hash) + REMOVED_ADDITIONAL_POD_RANGES_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getRemovedAdditionalPodRangesConfig().hashCode(); - } - if (hasEnableK8SBetaApis()) { - hash = (37 * hash) + ENABLE_K8S_BETA_APIS_FIELD_NUMBER; - hash = (53 * hash) + getEnableK8SBetaApis().hashCode(); - } - if (hasDesiredSecurityPostureConfig()) { - hash = (37 * hash) + DESIRED_SECURITY_POSTURE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredSecurityPostureConfig().hashCode(); - } - if (hasDesiredNetworkPerformanceConfig()) { - hash = (37 * hash) + DESIRED_NETWORK_PERFORMANCE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredNetworkPerformanceConfig().hashCode(); - } - if (hasDesiredEnableFqdnNetworkPolicy()) { - hash = (37 * hash) + DESIRED_ENABLE_FQDN_NETWORK_POLICY_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getDesiredEnableFqdnNetworkPolicy()); - } - if (hasDesiredAutopilotWorkloadPolicyConfig()) { - hash = (37 * hash) + DESIRED_AUTOPILOT_WORKLOAD_POLICY_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredAutopilotWorkloadPolicyConfig().hashCode(); - } - if (hasDesiredK8SBetaApis()) { - hash = (37 * hash) + DESIRED_K8S_BETA_APIS_FIELD_NUMBER; - hash = (53 * hash) + getDesiredK8SBetaApis().hashCode(); - } - if (hasDesiredHostMaintenancePolicy()) { - hash = (37 * hash) + DESIRED_HOST_MAINTENANCE_POLICY_FIELD_NUMBER; - hash = (53 * hash) + getDesiredHostMaintenancePolicy().hashCode(); - } - if (hasDesiredNodePoolAutoConfigResourceManagerTags()) { - hash = (37 * hash) + DESIRED_NODE_POOL_AUTO_CONFIG_RESOURCE_MANAGER_TAGS_FIELD_NUMBER; - hash = (53 * hash) + getDesiredNodePoolAutoConfigResourceManagerTags().hashCode(); - } - if (hasDesiredInTransitEncryptionConfig()) { - hash = (37 * hash) + DESIRED_IN_TRANSIT_ENCRYPTION_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + desiredInTransitEncryptionConfig_; - } - hash = (29 * hash) + getUnknownFields().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) { - getDesiredAddonsConfigFieldBuilder(); - getDesiredNodePoolAutoscalingFieldBuilder(); - getDesiredMasterAuthorizedNetworksConfigFieldBuilder(); - getDesiredPodSecurityPolicyConfigFieldBuilder(); - getDesiredClusterAutoscalingFieldBuilder(); - getDesiredBinaryAuthorizationFieldBuilder(); - getDesiredResourceUsageExportConfigFieldBuilder(); - getDesiredVerticalPodAutoscalingFieldBuilder(); - getDesiredPrivateClusterConfigFieldBuilder(); - getDesiredIntraNodeVisibilityConfigFieldBuilder(); - getDesiredDefaultSnatStatusFieldBuilder(); - getDesiredClusterTelemetryFieldBuilder(); - getDesiredReleaseChannelFieldBuilder(); - getDesiredTpuConfigFieldBuilder(); - getDesiredL4IlbSubsettingConfigFieldBuilder(); - getDesiredNotificationConfigFieldBuilder(); - getDesiredGcfsConfigFieldBuilder(); - getDesiredDatabaseEncryptionFieldBuilder(); - getDesiredWorkloadIdentityConfigFieldBuilder(); - getDesiredWorkloadCertificatesFieldBuilder(); - getDesiredMeshCertificatesFieldBuilder(); - getDesiredWorkloadAltsConfigFieldBuilder(); - getDesiredShieldedNodesFieldBuilder(); - getDesiredCostManagementConfigFieldBuilder(); - getDesiredMasterFieldBuilder(); - getDesiredDnsConfigFieldBuilder(); - getDesiredServiceExternalIpsConfigFieldBuilder(); - getDesiredAuthenticatorGroupsConfigFieldBuilder(); - getDesiredLoggingConfigFieldBuilder(); - getDesiredMonitoringConfigFieldBuilder(); - getDesiredIdentityServiceConfigFieldBuilder(); - getDesiredNodePoolAutoConfigNetworkTagsFieldBuilder(); - getDesiredProtectConfigFieldBuilder(); - getDesiredGatewayApiConfigFieldBuilder(); - getDesiredNodePoolLoggingConfigFieldBuilder(); - getDesiredFleetFieldBuilder(); - getAdditionalPodRangesConfigFieldBuilder(); - getRemovedAdditionalPodRangesConfigFieldBuilder(); - getEnableK8SBetaApisFieldBuilder(); - getDesiredSecurityPostureConfigFieldBuilder(); - getDesiredNetworkPerformanceConfigFieldBuilder(); - getDesiredAutopilotWorkloadPolicyConfigFieldBuilder(); - getDesiredK8SBetaApisFieldBuilder(); - getDesiredHostMaintenancePolicyFieldBuilder(); - getDesiredNodePoolAutoConfigResourceManagerTagsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - bitField1_ = 0; - desiredNodeVersion_ = ""; - desiredMonitoringService_ = ""; - desiredAddonsConfig_ = null; - if (desiredAddonsConfigBuilder_ != null) { - desiredAddonsConfigBuilder_.dispose(); - desiredAddonsConfigBuilder_ = null; - } - desiredNodePoolId_ = ""; - desiredImageType_ = ""; - desiredNodePoolAutoscaling_ = null; - if (desiredNodePoolAutoscalingBuilder_ != null) { - desiredNodePoolAutoscalingBuilder_.dispose(); - desiredNodePoolAutoscalingBuilder_ = null; - } - desiredLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - desiredMasterAuthorizedNetworksConfig_ = null; - if (desiredMasterAuthorizedNetworksConfigBuilder_ != null) { - desiredMasterAuthorizedNetworksConfigBuilder_.dispose(); - desiredMasterAuthorizedNetworksConfigBuilder_ = null; - } - desiredPodSecurityPolicyConfig_ = null; - if (desiredPodSecurityPolicyConfigBuilder_ != null) { - desiredPodSecurityPolicyConfigBuilder_.dispose(); - desiredPodSecurityPolicyConfigBuilder_ = null; - } - desiredClusterAutoscaling_ = null; - if (desiredClusterAutoscalingBuilder_ != null) { - desiredClusterAutoscalingBuilder_.dispose(); - desiredClusterAutoscalingBuilder_ = null; - } - desiredBinaryAuthorization_ = null; - if (desiredBinaryAuthorizationBuilder_ != null) { - desiredBinaryAuthorizationBuilder_.dispose(); - desiredBinaryAuthorizationBuilder_ = null; - } - desiredLoggingService_ = ""; - desiredResourceUsageExportConfig_ = null; - if (desiredResourceUsageExportConfigBuilder_ != null) { - desiredResourceUsageExportConfigBuilder_.dispose(); - desiredResourceUsageExportConfigBuilder_ = null; - } - desiredVerticalPodAutoscaling_ = null; - if (desiredVerticalPodAutoscalingBuilder_ != null) { - desiredVerticalPodAutoscalingBuilder_.dispose(); - desiredVerticalPodAutoscalingBuilder_ = null; - } - desiredPrivateClusterConfig_ = null; - if (desiredPrivateClusterConfigBuilder_ != null) { - desiredPrivateClusterConfigBuilder_.dispose(); - desiredPrivateClusterConfigBuilder_ = null; - } - desiredIntraNodeVisibilityConfig_ = null; - if (desiredIntraNodeVisibilityConfigBuilder_ != null) { - desiredIntraNodeVisibilityConfigBuilder_.dispose(); - desiredIntraNodeVisibilityConfigBuilder_ = null; - } - desiredDefaultSnatStatus_ = null; - if (desiredDefaultSnatStatusBuilder_ != null) { - desiredDefaultSnatStatusBuilder_.dispose(); - desiredDefaultSnatStatusBuilder_ = null; - } - desiredClusterTelemetry_ = null; - if (desiredClusterTelemetryBuilder_ != null) { - desiredClusterTelemetryBuilder_.dispose(); - desiredClusterTelemetryBuilder_ = null; - } - desiredReleaseChannel_ = null; - if (desiredReleaseChannelBuilder_ != null) { - desiredReleaseChannelBuilder_.dispose(); - desiredReleaseChannelBuilder_ = null; - } - desiredTpuConfig_ = null; - if (desiredTpuConfigBuilder_ != null) { - desiredTpuConfigBuilder_.dispose(); - desiredTpuConfigBuilder_ = null; - } - desiredL4IlbSubsettingConfig_ = null; - if (desiredL4IlbSubsettingConfigBuilder_ != null) { - desiredL4IlbSubsettingConfigBuilder_.dispose(); - desiredL4IlbSubsettingConfigBuilder_ = null; - } - desiredDatapathProvider_ = 0; - desiredPrivateIpv6GoogleAccess_ = 0; - desiredNotificationConfig_ = null; - if (desiredNotificationConfigBuilder_ != null) { - desiredNotificationConfigBuilder_.dispose(); - desiredNotificationConfigBuilder_ = null; - } - desiredMasterVersion_ = ""; - desiredGcfsConfig_ = null; - if (desiredGcfsConfigBuilder_ != null) { - desiredGcfsConfigBuilder_.dispose(); - desiredGcfsConfigBuilder_ = null; - } - desiredDatabaseEncryption_ = null; - if (desiredDatabaseEncryptionBuilder_ != null) { - desiredDatabaseEncryptionBuilder_.dispose(); - desiredDatabaseEncryptionBuilder_ = null; - } - desiredWorkloadIdentityConfig_ = null; - if (desiredWorkloadIdentityConfigBuilder_ != null) { - desiredWorkloadIdentityConfigBuilder_.dispose(); - desiredWorkloadIdentityConfigBuilder_ = null; - } - desiredWorkloadCertificates_ = null; - if (desiredWorkloadCertificatesBuilder_ != null) { - desiredWorkloadCertificatesBuilder_.dispose(); - desiredWorkloadCertificatesBuilder_ = null; - } - desiredMeshCertificates_ = null; - if (desiredMeshCertificatesBuilder_ != null) { - desiredMeshCertificatesBuilder_.dispose(); - desiredMeshCertificatesBuilder_ = null; - } - desiredWorkloadAltsConfig_ = null; - if (desiredWorkloadAltsConfigBuilder_ != null) { - desiredWorkloadAltsConfigBuilder_.dispose(); - desiredWorkloadAltsConfigBuilder_ = null; - } - desiredShieldedNodes_ = null; - if (desiredShieldedNodesBuilder_ != null) { - desiredShieldedNodesBuilder_.dispose(); - desiredShieldedNodesBuilder_ = null; - } - desiredCostManagementConfig_ = null; - if (desiredCostManagementConfigBuilder_ != null) { - desiredCostManagementConfigBuilder_.dispose(); - desiredCostManagementConfigBuilder_ = null; - } - desiredMaster_ = null; - if (desiredMasterBuilder_ != null) { - desiredMasterBuilder_.dispose(); - desiredMasterBuilder_ = null; - } - desiredDnsConfig_ = null; - if (desiredDnsConfigBuilder_ != null) { - desiredDnsConfigBuilder_.dispose(); - desiredDnsConfigBuilder_ = null; - } - desiredServiceExternalIpsConfig_ = null; - if (desiredServiceExternalIpsConfigBuilder_ != null) { - desiredServiceExternalIpsConfigBuilder_.dispose(); - desiredServiceExternalIpsConfigBuilder_ = null; - } - desiredAuthenticatorGroupsConfig_ = null; - if (desiredAuthenticatorGroupsConfigBuilder_ != null) { - desiredAuthenticatorGroupsConfigBuilder_.dispose(); - desiredAuthenticatorGroupsConfigBuilder_ = null; - } - desiredLoggingConfig_ = null; - if (desiredLoggingConfigBuilder_ != null) { - desiredLoggingConfigBuilder_.dispose(); - desiredLoggingConfigBuilder_ = null; - } - desiredMonitoringConfig_ = null; - if (desiredMonitoringConfigBuilder_ != null) { - desiredMonitoringConfigBuilder_.dispose(); - desiredMonitoringConfigBuilder_ = null; - } - desiredIdentityServiceConfig_ = null; - if (desiredIdentityServiceConfigBuilder_ != null) { - desiredIdentityServiceConfigBuilder_.dispose(); - desiredIdentityServiceConfigBuilder_ = null; - } - desiredEnablePrivateEndpoint_ = false; - desiredNodePoolAutoConfigNetworkTags_ = null; - if (desiredNodePoolAutoConfigNetworkTagsBuilder_ != null) { - desiredNodePoolAutoConfigNetworkTagsBuilder_.dispose(); - desiredNodePoolAutoConfigNetworkTagsBuilder_ = null; - } - desiredProtectConfig_ = null; - if (desiredProtectConfigBuilder_ != null) { - desiredProtectConfigBuilder_.dispose(); - desiredProtectConfigBuilder_ = null; - } - desiredGatewayApiConfig_ = null; - if (desiredGatewayApiConfigBuilder_ != null) { - desiredGatewayApiConfigBuilder_.dispose(); - desiredGatewayApiConfigBuilder_ = null; - } - etag_ = ""; - desiredNodePoolLoggingConfig_ = null; - if (desiredNodePoolLoggingConfigBuilder_ != null) { - desiredNodePoolLoggingConfigBuilder_.dispose(); - desiredNodePoolLoggingConfigBuilder_ = null; - } - desiredFleet_ = null; - if (desiredFleetBuilder_ != null) { - desiredFleetBuilder_.dispose(); - desiredFleetBuilder_ = null; - } - desiredStackType_ = 0; - additionalPodRangesConfig_ = null; - if (additionalPodRangesConfigBuilder_ != null) { - additionalPodRangesConfigBuilder_.dispose(); - additionalPodRangesConfigBuilder_ = null; - } - removedAdditionalPodRangesConfig_ = null; - if (removedAdditionalPodRangesConfigBuilder_ != null) { - removedAdditionalPodRangesConfigBuilder_.dispose(); - removedAdditionalPodRangesConfigBuilder_ = null; - } - enableK8SBetaApis_ = null; - if (enableK8SBetaApisBuilder_ != null) { - enableK8SBetaApisBuilder_.dispose(); - enableK8SBetaApisBuilder_ = null; - } - desiredSecurityPostureConfig_ = null; - if (desiredSecurityPostureConfigBuilder_ != null) { - desiredSecurityPostureConfigBuilder_.dispose(); - desiredSecurityPostureConfigBuilder_ = null; - } - desiredNetworkPerformanceConfig_ = null; - if (desiredNetworkPerformanceConfigBuilder_ != null) { - desiredNetworkPerformanceConfigBuilder_.dispose(); - desiredNetworkPerformanceConfigBuilder_ = null; - } - desiredEnableFqdnNetworkPolicy_ = false; - desiredAutopilotWorkloadPolicyConfig_ = null; - if (desiredAutopilotWorkloadPolicyConfigBuilder_ != null) { - desiredAutopilotWorkloadPolicyConfigBuilder_.dispose(); - desiredAutopilotWorkloadPolicyConfigBuilder_ = null; - } - desiredK8SBetaApis_ = null; - if (desiredK8SBetaApisBuilder_ != null) { - desiredK8SBetaApisBuilder_.dispose(); - desiredK8SBetaApisBuilder_ = null; - } - desiredHostMaintenancePolicy_ = null; - if (desiredHostMaintenancePolicyBuilder_ != null) { - desiredHostMaintenancePolicyBuilder_.dispose(); - desiredHostMaintenancePolicyBuilder_ = null; - } - desiredNodePoolAutoConfigResourceManagerTags_ = null; - if (desiredNodePoolAutoConfigResourceManagerTagsBuilder_ != null) { - desiredNodePoolAutoConfigResourceManagerTagsBuilder_.dispose(); - desiredNodePoolAutoConfigResourceManagerTagsBuilder_ = null; - } - desiredInTransitEncryptionConfig_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - if (bitField1_ != 0) { - buildPartial1(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.ClusterUpdate result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.desiredNodeVersion_ = desiredNodeVersion_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.desiredMonitoringService_ = desiredMonitoringService_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.desiredAddonsConfig_ = - desiredAddonsConfigBuilder_ == null - ? desiredAddonsConfig_ - : desiredAddonsConfigBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.desiredNodePoolId_ = desiredNodePoolId_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.desiredImageType_ = desiredImageType_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.desiredNodePoolAutoscaling_ = - desiredNodePoolAutoscalingBuilder_ == null - ? desiredNodePoolAutoscaling_ - : desiredNodePoolAutoscalingBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - desiredLocations_.makeImmutable(); - result.desiredLocations_ = desiredLocations_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.desiredMasterAuthorizedNetworksConfig_ = - desiredMasterAuthorizedNetworksConfigBuilder_ == null - ? desiredMasterAuthorizedNetworksConfig_ - : desiredMasterAuthorizedNetworksConfigBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.desiredPodSecurityPolicyConfig_ = - desiredPodSecurityPolicyConfigBuilder_ == null - ? desiredPodSecurityPolicyConfig_ - : desiredPodSecurityPolicyConfigBuilder_.build(); - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.desiredClusterAutoscaling_ = - desiredClusterAutoscalingBuilder_ == null - ? desiredClusterAutoscaling_ - : desiredClusterAutoscalingBuilder_.build(); - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.desiredBinaryAuthorization_ = - desiredBinaryAuthorizationBuilder_ == null - ? desiredBinaryAuthorization_ - : desiredBinaryAuthorizationBuilder_.build(); - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.desiredLoggingService_ = desiredLoggingService_; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.desiredResourceUsageExportConfig_ = - desiredResourceUsageExportConfigBuilder_ == null - ? desiredResourceUsageExportConfig_ - : desiredResourceUsageExportConfigBuilder_.build(); - to_bitField0_ |= 0x00000040; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.desiredVerticalPodAutoscaling_ = - desiredVerticalPodAutoscalingBuilder_ == null - ? desiredVerticalPodAutoscaling_ - : desiredVerticalPodAutoscalingBuilder_.build(); - to_bitField0_ |= 0x00000080; - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.desiredPrivateClusterConfig_ = - desiredPrivateClusterConfigBuilder_ == null - ? desiredPrivateClusterConfig_ - : desiredPrivateClusterConfigBuilder_.build(); - to_bitField0_ |= 0x00000100; - } - if (((from_bitField0_ & 0x00008000) != 0)) { - result.desiredIntraNodeVisibilityConfig_ = - desiredIntraNodeVisibilityConfigBuilder_ == null - ? desiredIntraNodeVisibilityConfig_ - : desiredIntraNodeVisibilityConfigBuilder_.build(); - to_bitField0_ |= 0x00000200; - } - if (((from_bitField0_ & 0x00010000) != 0)) { - result.desiredDefaultSnatStatus_ = - desiredDefaultSnatStatusBuilder_ == null - ? desiredDefaultSnatStatus_ - : desiredDefaultSnatStatusBuilder_.build(); - to_bitField0_ |= 0x00000400; - } - if (((from_bitField0_ & 0x00020000) != 0)) { - result.desiredClusterTelemetry_ = - desiredClusterTelemetryBuilder_ == null - ? desiredClusterTelemetry_ - : desiredClusterTelemetryBuilder_.build(); - to_bitField0_ |= 0x00000800; - } - if (((from_bitField0_ & 0x00040000) != 0)) { - result.desiredReleaseChannel_ = - desiredReleaseChannelBuilder_ == null - ? desiredReleaseChannel_ - : desiredReleaseChannelBuilder_.build(); - to_bitField0_ |= 0x00001000; - } - if (((from_bitField0_ & 0x00080000) != 0)) { - result.desiredTpuConfig_ = - desiredTpuConfigBuilder_ == null ? desiredTpuConfig_ : desiredTpuConfigBuilder_.build(); - to_bitField0_ |= 0x00002000; - } - if (((from_bitField0_ & 0x00100000) != 0)) { - result.desiredL4IlbSubsettingConfig_ = - desiredL4IlbSubsettingConfigBuilder_ == null - ? desiredL4IlbSubsettingConfig_ - : desiredL4IlbSubsettingConfigBuilder_.build(); - to_bitField0_ |= 0x00004000; - } - if (((from_bitField0_ & 0x00200000) != 0)) { - result.desiredDatapathProvider_ = desiredDatapathProvider_; - } - if (((from_bitField0_ & 0x00400000) != 0)) { - result.desiredPrivateIpv6GoogleAccess_ = desiredPrivateIpv6GoogleAccess_; - } - if (((from_bitField0_ & 0x00800000) != 0)) { - result.desiredNotificationConfig_ = - desiredNotificationConfigBuilder_ == null - ? desiredNotificationConfig_ - : desiredNotificationConfigBuilder_.build(); - to_bitField0_ |= 0x00008000; - } - if (((from_bitField0_ & 0x01000000) != 0)) { - result.desiredMasterVersion_ = desiredMasterVersion_; - } - if (((from_bitField0_ & 0x02000000) != 0)) { - result.desiredGcfsConfig_ = - desiredGcfsConfigBuilder_ == null - ? desiredGcfsConfig_ - : desiredGcfsConfigBuilder_.build(); - to_bitField0_ |= 0x00010000; - } - if (((from_bitField0_ & 0x04000000) != 0)) { - result.desiredDatabaseEncryption_ = - desiredDatabaseEncryptionBuilder_ == null - ? desiredDatabaseEncryption_ - : desiredDatabaseEncryptionBuilder_.build(); - to_bitField0_ |= 0x00020000; - } - if (((from_bitField0_ & 0x08000000) != 0)) { - result.desiredWorkloadIdentityConfig_ = - desiredWorkloadIdentityConfigBuilder_ == null - ? desiredWorkloadIdentityConfig_ - : desiredWorkloadIdentityConfigBuilder_.build(); - to_bitField0_ |= 0x00040000; - } - if (((from_bitField0_ & 0x10000000) != 0)) { - result.desiredWorkloadCertificates_ = - desiredWorkloadCertificatesBuilder_ == null - ? desiredWorkloadCertificates_ - : desiredWorkloadCertificatesBuilder_.build(); - to_bitField0_ |= 0x00080000; - } - if (((from_bitField0_ & 0x20000000) != 0)) { - result.desiredMeshCertificates_ = - desiredMeshCertificatesBuilder_ == null - ? desiredMeshCertificates_ - : desiredMeshCertificatesBuilder_.build(); - to_bitField0_ |= 0x00100000; - } - if (((from_bitField0_ & 0x40000000) != 0)) { - result.desiredWorkloadAltsConfig_ = - desiredWorkloadAltsConfigBuilder_ == null - ? desiredWorkloadAltsConfig_ - : desiredWorkloadAltsConfigBuilder_.build(); - to_bitField0_ |= 0x00200000; - } - if (((from_bitField0_ & 0x80000000) != 0)) { - result.desiredShieldedNodes_ = - desiredShieldedNodesBuilder_ == null - ? desiredShieldedNodes_ - : desiredShieldedNodesBuilder_.build(); - to_bitField0_ |= 0x00400000; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartial1(com.google.container.v1beta1.ClusterUpdate result) { - int from_bitField1_ = bitField1_; - int to_bitField0_ = 0; - if (((from_bitField1_ & 0x00000001) != 0)) { - result.desiredCostManagementConfig_ = - desiredCostManagementConfigBuilder_ == null - ? desiredCostManagementConfig_ - : desiredCostManagementConfigBuilder_.build(); - to_bitField0_ |= 0x00800000; - } - if (((from_bitField1_ & 0x00000002) != 0)) { - result.desiredMaster_ = - desiredMasterBuilder_ == null ? desiredMaster_ : desiredMasterBuilder_.build(); - to_bitField0_ |= 0x01000000; - } - if (((from_bitField1_ & 0x00000004) != 0)) { - result.desiredDnsConfig_ = - desiredDnsConfigBuilder_ == null ? desiredDnsConfig_ : desiredDnsConfigBuilder_.build(); - to_bitField0_ |= 0x02000000; - } - if (((from_bitField1_ & 0x00000008) != 0)) { - result.desiredServiceExternalIpsConfig_ = - desiredServiceExternalIpsConfigBuilder_ == null - ? desiredServiceExternalIpsConfig_ - : desiredServiceExternalIpsConfigBuilder_.build(); - to_bitField0_ |= 0x04000000; - } - if (((from_bitField1_ & 0x00000010) != 0)) { - result.desiredAuthenticatorGroupsConfig_ = - desiredAuthenticatorGroupsConfigBuilder_ == null - ? desiredAuthenticatorGroupsConfig_ - : desiredAuthenticatorGroupsConfigBuilder_.build(); - to_bitField0_ |= 0x08000000; - } - if (((from_bitField1_ & 0x00000020) != 0)) { - result.desiredLoggingConfig_ = - desiredLoggingConfigBuilder_ == null - ? desiredLoggingConfig_ - : desiredLoggingConfigBuilder_.build(); - to_bitField0_ |= 0x10000000; - } - if (((from_bitField1_ & 0x00000040) != 0)) { - result.desiredMonitoringConfig_ = - desiredMonitoringConfigBuilder_ == null - ? desiredMonitoringConfig_ - : desiredMonitoringConfigBuilder_.build(); - to_bitField0_ |= 0x20000000; - } - if (((from_bitField1_ & 0x00000080) != 0)) { - result.desiredIdentityServiceConfig_ = - desiredIdentityServiceConfigBuilder_ == null - ? desiredIdentityServiceConfig_ - : desiredIdentityServiceConfigBuilder_.build(); - to_bitField0_ |= 0x40000000; - } - if (((from_bitField1_ & 0x00000100) != 0)) { - result.desiredEnablePrivateEndpoint_ = desiredEnablePrivateEndpoint_; - to_bitField0_ |= 0x80000000; - } - int to_bitField1_ = 0; - if (((from_bitField1_ & 0x00000200) != 0)) { - result.desiredNodePoolAutoConfigNetworkTags_ = - desiredNodePoolAutoConfigNetworkTagsBuilder_ == null - ? desiredNodePoolAutoConfigNetworkTags_ - : desiredNodePoolAutoConfigNetworkTagsBuilder_.build(); - to_bitField1_ |= 0x00000001; - } - if (((from_bitField1_ & 0x00000400) != 0)) { - result.desiredProtectConfig_ = - desiredProtectConfigBuilder_ == null - ? desiredProtectConfig_ - : desiredProtectConfigBuilder_.build(); - to_bitField1_ |= 0x00000002; - } - if (((from_bitField1_ & 0x00000800) != 0)) { - result.desiredGatewayApiConfig_ = - desiredGatewayApiConfigBuilder_ == null - ? desiredGatewayApiConfig_ - : desiredGatewayApiConfigBuilder_.build(); - to_bitField1_ |= 0x00000004; - } - if (((from_bitField1_ & 0x00001000) != 0)) { - result.etag_ = etag_; - } - if (((from_bitField1_ & 0x00002000) != 0)) { - result.desiredNodePoolLoggingConfig_ = - desiredNodePoolLoggingConfigBuilder_ == null - ? desiredNodePoolLoggingConfig_ - : desiredNodePoolLoggingConfigBuilder_.build(); - to_bitField1_ |= 0x00000008; - } - if (((from_bitField1_ & 0x00004000) != 0)) { - result.desiredFleet_ = - desiredFleetBuilder_ == null ? desiredFleet_ : desiredFleetBuilder_.build(); - to_bitField1_ |= 0x00000010; - } - if (((from_bitField1_ & 0x00008000) != 0)) { - result.desiredStackType_ = desiredStackType_; - } - if (((from_bitField1_ & 0x00010000) != 0)) { - result.additionalPodRangesConfig_ = - additionalPodRangesConfigBuilder_ == null - ? additionalPodRangesConfig_ - : additionalPodRangesConfigBuilder_.build(); - to_bitField1_ |= 0x00000020; - } - if (((from_bitField1_ & 0x00020000) != 0)) { - result.removedAdditionalPodRangesConfig_ = - removedAdditionalPodRangesConfigBuilder_ == null - ? removedAdditionalPodRangesConfig_ - : removedAdditionalPodRangesConfigBuilder_.build(); - to_bitField1_ |= 0x00000040; - } - if (((from_bitField1_ & 0x00040000) != 0)) { - result.enableK8SBetaApis_ = - enableK8SBetaApisBuilder_ == null - ? enableK8SBetaApis_ - : enableK8SBetaApisBuilder_.build(); - to_bitField1_ |= 0x00000080; - } - if (((from_bitField1_ & 0x00080000) != 0)) { - result.desiredSecurityPostureConfig_ = - desiredSecurityPostureConfigBuilder_ == null - ? desiredSecurityPostureConfig_ - : desiredSecurityPostureConfigBuilder_.build(); - to_bitField1_ |= 0x00000100; - } - if (((from_bitField1_ & 0x00100000) != 0)) { - result.desiredNetworkPerformanceConfig_ = - desiredNetworkPerformanceConfigBuilder_ == null - ? desiredNetworkPerformanceConfig_ - : desiredNetworkPerformanceConfigBuilder_.build(); - to_bitField1_ |= 0x00000200; - } - if (((from_bitField1_ & 0x00200000) != 0)) { - result.desiredEnableFqdnNetworkPolicy_ = desiredEnableFqdnNetworkPolicy_; - to_bitField1_ |= 0x00000400; - } - if (((from_bitField1_ & 0x00400000) != 0)) { - result.desiredAutopilotWorkloadPolicyConfig_ = - desiredAutopilotWorkloadPolicyConfigBuilder_ == null - ? desiredAutopilotWorkloadPolicyConfig_ - : desiredAutopilotWorkloadPolicyConfigBuilder_.build(); - to_bitField1_ |= 0x00000800; - } - if (((from_bitField1_ & 0x00800000) != 0)) { - result.desiredK8SBetaApis_ = - desiredK8SBetaApisBuilder_ == null - ? desiredK8SBetaApis_ - : desiredK8SBetaApisBuilder_.build(); - to_bitField1_ |= 0x00001000; - } - if (((from_bitField1_ & 0x01000000) != 0)) { - result.desiredHostMaintenancePolicy_ = - desiredHostMaintenancePolicyBuilder_ == null - ? desiredHostMaintenancePolicy_ - : desiredHostMaintenancePolicyBuilder_.build(); - to_bitField1_ |= 0x00002000; - } - if (((from_bitField1_ & 0x02000000) != 0)) { - result.desiredNodePoolAutoConfigResourceManagerTags_ = - desiredNodePoolAutoConfigResourceManagerTagsBuilder_ == null - ? desiredNodePoolAutoConfigResourceManagerTags_ - : desiredNodePoolAutoConfigResourceManagerTagsBuilder_.build(); - to_bitField1_ |= 0x00004000; - } - if (((from_bitField1_ & 0x04000000) != 0)) { - result.desiredInTransitEncryptionConfig_ = desiredInTransitEncryptionConfig_; - to_bitField1_ |= 0x00008000; - } - result.bitField0_ |= to_bitField0_; - result.bitField1_ |= to_bitField1_; - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getDesiredMonitoringService().isEmpty()) { - desiredMonitoringService_ = other.desiredMonitoringService_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasDesiredAddonsConfig()) { - mergeDesiredAddonsConfig(other.getDesiredAddonsConfig()); - } - if (!other.getDesiredNodePoolId().isEmpty()) { - desiredNodePoolId_ = other.desiredNodePoolId_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getDesiredImageType().isEmpty()) { - desiredImageType_ = other.desiredImageType_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (other.hasDesiredNodePoolAutoscaling()) { - mergeDesiredNodePoolAutoscaling(other.getDesiredNodePoolAutoscaling()); - } - if (!other.desiredLocations_.isEmpty()) { - if (desiredLocations_.isEmpty()) { - desiredLocations_ = other.desiredLocations_; - bitField0_ |= 0x00000040; - } else { - ensureDesiredLocationsIsMutable(); - desiredLocations_.addAll(other.desiredLocations_); - } - onChanged(); - } - if (other.hasDesiredMasterAuthorizedNetworksConfig()) { - mergeDesiredMasterAuthorizedNetworksConfig( - other.getDesiredMasterAuthorizedNetworksConfig()); - } - if (other.hasDesiredPodSecurityPolicyConfig()) { - mergeDesiredPodSecurityPolicyConfig(other.getDesiredPodSecurityPolicyConfig()); - } - if (other.hasDesiredClusterAutoscaling()) { - mergeDesiredClusterAutoscaling(other.getDesiredClusterAutoscaling()); - } - if (other.hasDesiredBinaryAuthorization()) { - mergeDesiredBinaryAuthorization(other.getDesiredBinaryAuthorization()); - } - if (!other.getDesiredLoggingService().isEmpty()) { - desiredLoggingService_ = other.desiredLoggingService_; - bitField0_ |= 0x00000800; - 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.hasDesiredL4IlbSubsettingConfig()) { - mergeDesiredL4IlbSubsettingConfig(other.getDesiredL4IlbSubsettingConfig()); - } - if (other.desiredDatapathProvider_ != 0) { - setDesiredDatapathProviderValue(other.getDesiredDatapathProviderValue()); - } - if (other.desiredPrivateIpv6GoogleAccess_ != 0) { - setDesiredPrivateIpv6GoogleAccessValue(other.getDesiredPrivateIpv6GoogleAccessValue()); - } - if (other.hasDesiredNotificationConfig()) { - mergeDesiredNotificationConfig(other.getDesiredNotificationConfig()); - } - if (!other.getDesiredMasterVersion().isEmpty()) { - desiredMasterVersion_ = other.desiredMasterVersion_; - bitField0_ |= 0x01000000; - onChanged(); - } - if (other.hasDesiredGcfsConfig()) { - mergeDesiredGcfsConfig(other.getDesiredGcfsConfig()); - } - if (other.hasDesiredDatabaseEncryption()) { - mergeDesiredDatabaseEncryption(other.getDesiredDatabaseEncryption()); - } - if (other.hasDesiredWorkloadIdentityConfig()) { - mergeDesiredWorkloadIdentityConfig(other.getDesiredWorkloadIdentityConfig()); - } - if (other.hasDesiredWorkloadCertificates()) { - mergeDesiredWorkloadCertificates(other.getDesiredWorkloadCertificates()); - } - if (other.hasDesiredMeshCertificates()) { - mergeDesiredMeshCertificates(other.getDesiredMeshCertificates()); - } - if (other.hasDesiredWorkloadAltsConfig()) { - mergeDesiredWorkloadAltsConfig(other.getDesiredWorkloadAltsConfig()); - } - if (other.hasDesiredShieldedNodes()) { - mergeDesiredShieldedNodes(other.getDesiredShieldedNodes()); - } - if (other.hasDesiredCostManagementConfig()) { - mergeDesiredCostManagementConfig(other.getDesiredCostManagementConfig()); - } - if (other.hasDesiredMaster()) { - mergeDesiredMaster(other.getDesiredMaster()); - } - if (other.hasDesiredDnsConfig()) { - mergeDesiredDnsConfig(other.getDesiredDnsConfig()); - } - if (other.hasDesiredServiceExternalIpsConfig()) { - mergeDesiredServiceExternalIpsConfig(other.getDesiredServiceExternalIpsConfig()); - } - if (other.hasDesiredAuthenticatorGroupsConfig()) { - mergeDesiredAuthenticatorGroupsConfig(other.getDesiredAuthenticatorGroupsConfig()); - } - if (other.hasDesiredLoggingConfig()) { - mergeDesiredLoggingConfig(other.getDesiredLoggingConfig()); - } - if (other.hasDesiredMonitoringConfig()) { - mergeDesiredMonitoringConfig(other.getDesiredMonitoringConfig()); - } - if (other.hasDesiredIdentityServiceConfig()) { - mergeDesiredIdentityServiceConfig(other.getDesiredIdentityServiceConfig()); - } - if (other.hasDesiredEnablePrivateEndpoint()) { - setDesiredEnablePrivateEndpoint(other.getDesiredEnablePrivateEndpoint()); - } - if (other.hasDesiredNodePoolAutoConfigNetworkTags()) { - mergeDesiredNodePoolAutoConfigNetworkTags(other.getDesiredNodePoolAutoConfigNetworkTags()); - } - if (other.hasDesiredProtectConfig()) { - mergeDesiredProtectConfig(other.getDesiredProtectConfig()); - } - if (other.hasDesiredGatewayApiConfig()) { - mergeDesiredGatewayApiConfig(other.getDesiredGatewayApiConfig()); - } - if (!other.getEtag().isEmpty()) { - etag_ = other.etag_; - bitField1_ |= 0x00001000; - onChanged(); - } - if (other.hasDesiredNodePoolLoggingConfig()) { - mergeDesiredNodePoolLoggingConfig(other.getDesiredNodePoolLoggingConfig()); - } - if (other.hasDesiredFleet()) { - mergeDesiredFleet(other.getDesiredFleet()); - } - if (other.desiredStackType_ != 0) { - setDesiredStackTypeValue(other.getDesiredStackTypeValue()); - } - if (other.hasAdditionalPodRangesConfig()) { - mergeAdditionalPodRangesConfig(other.getAdditionalPodRangesConfig()); - } - if (other.hasRemovedAdditionalPodRangesConfig()) { - mergeRemovedAdditionalPodRangesConfig(other.getRemovedAdditionalPodRangesConfig()); - } - if (other.hasEnableK8SBetaApis()) { - mergeEnableK8SBetaApis(other.getEnableK8SBetaApis()); - } - if (other.hasDesiredSecurityPostureConfig()) { - mergeDesiredSecurityPostureConfig(other.getDesiredSecurityPostureConfig()); - } - if (other.hasDesiredNetworkPerformanceConfig()) { - mergeDesiredNetworkPerformanceConfig(other.getDesiredNetworkPerformanceConfig()); - } - if (other.hasDesiredEnableFqdnNetworkPolicy()) { - setDesiredEnableFqdnNetworkPolicy(other.getDesiredEnableFqdnNetworkPolicy()); - } - if (other.hasDesiredAutopilotWorkloadPolicyConfig()) { - mergeDesiredAutopilotWorkloadPolicyConfig(other.getDesiredAutopilotWorkloadPolicyConfig()); - } - if (other.hasDesiredK8SBetaApis()) { - mergeDesiredK8SBetaApis(other.getDesiredK8SBetaApis()); - } - if (other.hasDesiredHostMaintenancePolicy()) { - mergeDesiredHostMaintenancePolicy(other.getDesiredHostMaintenancePolicy()); - } - if (other.hasDesiredNodePoolAutoConfigResourceManagerTags()) { - mergeDesiredNodePoolAutoConfigResourceManagerTags( - other.getDesiredNodePoolAutoConfigResourceManagerTags()); - } - if (other.hasDesiredInTransitEncryptionConfig()) { - setDesiredInTransitEncryptionConfig(other.getDesiredInTransitEncryptionConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 34: - { - desiredNodeVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 34 - case 42: - { - desiredMonitoringService_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 42 - case 50: - { - input.readMessage( - getDesiredAddonsConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 50 - case 58: - { - desiredNodePoolId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 58 - case 66: - { - desiredImageType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 66 - case 74: - { - input.readMessage( - getDesiredNodePoolAutoscalingFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 74 - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureDesiredLocationsIsMutable(); - desiredLocations_.add(s); - break; - } // case 82 - case 98: - { - input.readMessage( - getDesiredMasterAuthorizedNetworksConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 98 - case 114: - { - input.readMessage( - getDesiredPodSecurityPolicyConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 114 - case 122: - { - input.readMessage( - getDesiredClusterAutoscalingFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 122 - case 130: - { - input.readMessage( - getDesiredBinaryAuthorizationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; - break; - } // case 130 - case 154: - { - desiredLoggingService_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; - break; - } // case 154 - case 170: - { - input.readMessage( - getDesiredResourceUsageExportConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00001000; - break; - } // case 170 - case 178: - { - input.readMessage( - getDesiredVerticalPodAutoscalingFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00002000; - break; - } // case 178 - case 202: - { - input.readMessage( - getDesiredPrivateClusterConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; - break; - } // case 202 - case 210: - { - input.readMessage( - getDesiredIntraNodeVisibilityConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00008000; - break; - } // case 210 - case 226: - { - input.readMessage( - getDesiredDefaultSnatStatusFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; - break; - } // case 226 - case 242: - { - input.readMessage( - getDesiredClusterTelemetryFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00020000; - break; - } // case 242 - case 250: - { - input.readMessage( - getDesiredReleaseChannelFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00040000; - break; - } // case 250 - case 306: - { - input.readMessage( - getDesiredTpuConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00080000; - break; - } // case 306 - case 314: - { - input.readMessage( - getDesiredL4IlbSubsettingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00100000; - break; - } // case 314 - case 370: - { - input.readMessage( - getDesiredDatabaseEncryptionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x04000000; - break; - } // case 370 - case 378: - { - input.readMessage( - getDesiredWorkloadIdentityConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x08000000; - break; - } // case 378 - case 386: - { - input.readMessage( - getDesiredShieldedNodesFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x80000000; - break; - } // case 386 - case 394: - { - input.readMessage( - getDesiredCostManagementConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000001; - break; - } // case 394 - case 400: - { - desiredDatapathProvider_ = input.readEnum(); - bitField0_ |= 0x00200000; - break; - } // case 400 - case 408: - { - desiredPrivateIpv6GoogleAccess_ = input.readEnum(); - bitField0_ |= 0x00400000; - break; - } // case 408 - case 418: - { - input.readMessage(getDesiredMasterFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000002; - break; - } // case 418 - case 426: - { - input.readMessage( - getDesiredDnsConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000004; - break; - } // case 426 - case 442: - { - input.readMessage( - getDesiredNotificationConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00800000; - break; - } // case 442 - case 482: - { - input.readMessage( - getDesiredServiceExternalIpsConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField1_ |= 0x00000008; - break; - } // case 482 - case 490: - { - input.readMessage( - getDesiredWorkloadCertificatesFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x10000000; - break; - } // case 490 - case 498: - { - input.readMessage( - getDesiredWorkloadAltsConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x40000000; - break; - } // case 498 - case 506: - { - input.readMessage( - getDesiredAuthenticatorGroupsConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField1_ |= 0x00000010; - break; - } // case 506 - case 514: - { - input.readMessage( - getDesiredLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000020; - break; - } // case 514 - case 522: - { - input.readMessage( - getDesiredMonitoringConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000040; - break; - } // case 522 - case 530: - { - input.readMessage( - getDesiredIdentityServiceConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000080; - break; - } // case 530 - case 538: - { - input.readMessage( - getDesiredMeshCertificatesFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x20000000; - break; - } // case 538 - case 568: - { - desiredEnablePrivateEndpoint_ = input.readBool(); - bitField1_ |= 0x00000100; - break; - } // case 568 - case 802: - { - desiredMasterVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x01000000; - break; - } // case 802 - case 874: - { - input.readMessage( - getDesiredGcfsConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x02000000; - break; - } // case 874 - case 882: - { - input.readMessage( - getDesiredNodePoolAutoConfigNetworkTagsFieldBuilder().getBuilder(), - extensionRegistry); - bitField1_ |= 0x00000200; - break; - } // case 882 - case 898: - { - input.readMessage( - getDesiredProtectConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000400; - break; - } // case 898 - case 914: - { - input.readMessage( - getDesiredGatewayApiConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000800; - break; - } // case 914 - case 922: - { - etag_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00001000; - break; - } // case 922 - case 930: - { - input.readMessage( - getDesiredNodePoolLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00002000; - break; - } // case 930 - case 938: - { - input.readMessage(getDesiredFleetFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00004000; - break; - } // case 938 - case 952: - { - desiredStackType_ = input.readEnum(); - bitField1_ |= 0x00008000; - break; - } // case 952 - case 962: - { - input.readMessage( - getAdditionalPodRangesConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00010000; - break; - } // case 962 - case 970: - { - input.readMessage( - getRemovedAdditionalPodRangesConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField1_ |= 0x00020000; - break; - } // case 970 - case 978: - { - input.readMessage( - getEnableK8SBetaApisFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00040000; - break; - } // case 978 - case 994: - { - input.readMessage( - getDesiredSecurityPostureConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00080000; - break; - } // case 994 - case 1002: - { - input.readMessage( - getDesiredNetworkPerformanceConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField1_ |= 0x00100000; - break; - } // case 1002 - case 1008: - { - desiredEnableFqdnNetworkPolicy_ = input.readBool(); - bitField1_ |= 0x00200000; - break; - } // case 1008 - case 1026: - { - input.readMessage( - getDesiredAutopilotWorkloadPolicyConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField1_ |= 0x00400000; - break; - } // case 1026 - case 1050: - { - input.readMessage( - getDesiredK8SBetaApisFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00800000; - break; - } // case 1050 - case 1058: - { - input.readMessage( - getDesiredHostMaintenancePolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x01000000; - break; - } // case 1058 - case 1090: - { - input.readMessage( - getDesiredNodePoolAutoConfigResourceManagerTagsFieldBuilder().getBuilder(), - extensionRegistry); - bitField1_ |= 0x02000000; - break; - } // case 1090 - case 1096: - { - desiredInTransitEncryptionConfig_ = input.readEnum(); - bitField1_ |= 0x04000000; - break; - } // case 1096 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - private int bitField1_; - - 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; - bitField0_ |= 0x00000001; - 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(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - 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; - bitField0_ |= 0x00000002; - 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(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - 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 ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * 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; - } else { - desiredAddonsConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - 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(); - } else { - desiredAddonsConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - 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 (((bitField0_ & 0x00000004) != 0) - && desiredAddonsConfig_ != null - && desiredAddonsConfig_ - != com.google.container.v1beta1.AddonsConfig.getDefaultInstance()) { - getDesiredAddonsConfigBuilder().mergeFrom(value); - } else { - desiredAddonsConfig_ = value; - } - } else { - desiredAddonsConfigBuilder_.mergeFrom(value); - } - if (desiredAddonsConfig_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; - */ - public Builder clearDesiredAddonsConfig() { - bitField0_ = (bitField0_ & ~0x00000004); - desiredAddonsConfig_ = null; - if (desiredAddonsConfigBuilder_ != null) { - desiredAddonsConfigBuilder_.dispose(); - desiredAddonsConfigBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000004; - 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; - bitField0_ |= 0x00000008; - 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(); - bitField0_ = (bitField0_ & ~0x00000008); - 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; - bitField0_ |= 0x00000008; - 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; - bitField0_ |= 0x00000010; - 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(); - bitField0_ = (bitField0_ & ~0x00000010); - 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; - bitField0_ |= 0x00000010; - 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 ((bitField0_ & 0x00000020) != 0); - } - /** - * - * - *
-     * 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; - } else { - desiredNodePoolAutoscalingBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - 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(); - } else { - desiredNodePoolAutoscalingBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - 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 (((bitField0_ & 0x00000020) != 0) - && desiredNodePoolAutoscaling_ != null - && desiredNodePoolAutoscaling_ - != com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance()) { - getDesiredNodePoolAutoscalingBuilder().mergeFrom(value); - } else { - desiredNodePoolAutoscaling_ = value; - } - } else { - desiredNodePoolAutoscalingBuilder_.mergeFrom(value); - } - if (desiredNodePoolAutoscaling_ != null) { - bitField0_ |= 0x00000020; - onChanged(); - } - 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() { - bitField0_ = (bitField0_ & ~0x00000020); - desiredNodePoolAutoscaling_ = null; - if (desiredNodePoolAutoscalingBuilder_ != null) { - desiredNodePoolAutoscalingBuilder_.dispose(); - desiredNodePoolAutoscalingBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000020; - 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.LazyStringArrayList desiredLocations_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureDesiredLocationsIsMutable() { - if (!desiredLocations_.isModifiable()) { - desiredLocations_ = new com.google.protobuf.LazyStringArrayList(desiredLocations_); - } - bitField0_ |= 0x00000040; - } - /** - * - * - *
-     * 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() { - desiredLocations_.makeImmutable(); - 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); - } - /** - * - * - *
-     * 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); - bitField0_ |= 0x00000040; - 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); - bitField0_ |= 0x00000040; - 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_); - bitField0_ |= 0x00000040; - 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.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - ; - 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); - bitField0_ |= 0x00000040; - 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 ((bitField0_ & 0x00000080) != 0); - } - /** - * - * - *
-     * 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; - } else { - desiredMasterAuthorizedNetworksConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000080; - onChanged(); - 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(); - } else { - desiredMasterAuthorizedNetworksConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000080; - onChanged(); - 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 (((bitField0_ & 0x00000080) != 0) - && desiredMasterAuthorizedNetworksConfig_ != null - && desiredMasterAuthorizedNetworksConfig_ - != com.google.container.v1beta1.MasterAuthorizedNetworksConfig - .getDefaultInstance()) { - getDesiredMasterAuthorizedNetworksConfigBuilder().mergeFrom(value); - } else { - desiredMasterAuthorizedNetworksConfig_ = value; - } - } else { - desiredMasterAuthorizedNetworksConfigBuilder_.mergeFrom(value); - } - if (desiredMasterAuthorizedNetworksConfig_ != null) { - bitField0_ |= 0x00000080; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired configuration options for master authorized networks feature.
-     * 
- * - * - * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - * - */ - public Builder clearDesiredMasterAuthorizedNetworksConfig() { - bitField0_ = (bitField0_ & ~0x00000080); - desiredMasterAuthorizedNetworksConfig_ = null; - if (desiredMasterAuthorizedNetworksConfigBuilder_ != null) { - desiredMasterAuthorizedNetworksConfigBuilder_.dispose(); - desiredMasterAuthorizedNetworksConfigBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000080; - 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 ((bitField0_ & 0x00000100) != 0); - } - /** - * - * - *
-     * 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; - } else { - desiredPodSecurityPolicyConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000100; - onChanged(); - 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(); - } else { - desiredPodSecurityPolicyConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000100; - onChanged(); - 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 (((bitField0_ & 0x00000100) != 0) - && desiredPodSecurityPolicyConfig_ != null - && desiredPodSecurityPolicyConfig_ - != com.google.container.v1beta1.PodSecurityPolicyConfig.getDefaultInstance()) { - getDesiredPodSecurityPolicyConfigBuilder().mergeFrom(value); - } else { - desiredPodSecurityPolicyConfig_ = value; - } - } else { - desiredPodSecurityPolicyConfigBuilder_.mergeFrom(value); - } - if (desiredPodSecurityPolicyConfig_ != null) { - bitField0_ |= 0x00000100; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired configuration options for the PodSecurityPolicy feature.
-     * 
- * - * - * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; - * - */ - public Builder clearDesiredPodSecurityPolicyConfig() { - bitField0_ = (bitField0_ & ~0x00000100); - desiredPodSecurityPolicyConfig_ = null; - if (desiredPodSecurityPolicyConfigBuilder_ != null) { - desiredPodSecurityPolicyConfigBuilder_.dispose(); - desiredPodSecurityPolicyConfigBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000100; - 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 ((bitField0_ & 0x00000200) != 0); - } - /** - * - * - *
-     * 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; - } else { - desiredClusterAutoscalingBuilder_.setMessage(value); - } - bitField0_ |= 0x00000200; - onChanged(); - 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(); - } else { - desiredClusterAutoscalingBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000200; - onChanged(); - 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 (((bitField0_ & 0x00000200) != 0) - && desiredClusterAutoscaling_ != null - && desiredClusterAutoscaling_ - != com.google.container.v1beta1.ClusterAutoscaling.getDefaultInstance()) { - getDesiredClusterAutoscalingBuilder().mergeFrom(value); - } else { - desiredClusterAutoscaling_ = value; - } - } else { - desiredClusterAutoscalingBuilder_.mergeFrom(value); - } - if (desiredClusterAutoscaling_ != null) { - bitField0_ |= 0x00000200; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; - */ - public Builder clearDesiredClusterAutoscaling() { - bitField0_ = (bitField0_ & ~0x00000200); - desiredClusterAutoscaling_ = null; - if (desiredClusterAutoscalingBuilder_ != null) { - desiredClusterAutoscalingBuilder_.dispose(); - desiredClusterAutoscalingBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; - */ - public com.google.container.v1beta1.ClusterAutoscaling.Builder - getDesiredClusterAutoscalingBuilder() { - bitField0_ |= 0x00000200; - 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 ((bitField0_ & 0x00000400) != 0); - } - /** - * - * - *
-     * 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; - } else { - desiredBinaryAuthorizationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000400; - onChanged(); - 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(); - } else { - desiredBinaryAuthorizationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000400; - onChanged(); - 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 (((bitField0_ & 0x00000400) != 0) - && desiredBinaryAuthorization_ != null - && desiredBinaryAuthorization_ - != com.google.container.v1beta1.BinaryAuthorization.getDefaultInstance()) { - getDesiredBinaryAuthorizationBuilder().mergeFrom(value); - } else { - desiredBinaryAuthorization_ = value; - } - } else { - desiredBinaryAuthorizationBuilder_.mergeFrom(value); - } - if (desiredBinaryAuthorization_ != null) { - bitField0_ |= 0x00000400; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired configuration options for the Binary Authorization feature.
-     * 
- * - * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; - */ - public Builder clearDesiredBinaryAuthorization() { - bitField0_ = (bitField0_ & ~0x00000400); - desiredBinaryAuthorization_ = null; - if (desiredBinaryAuthorizationBuilder_ != null) { - desiredBinaryAuthorizationBuilder_.dispose(); - desiredBinaryAuthorizationBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000400; - 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; - bitField0_ |= 0x00000800; - 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(); - bitField0_ = (bitField0_ & ~0x00000800); - 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; - bitField0_ |= 0x00000800; - 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 ((bitField0_ & 0x00001000) != 0); - } - /** - * - * - *
-     * 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; - } else { - desiredResourceUsageExportConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00001000; - onChanged(); - 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(); - } else { - desiredResourceUsageExportConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00001000; - onChanged(); - 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 (((bitField0_ & 0x00001000) != 0) - && desiredResourceUsageExportConfig_ != null - && desiredResourceUsageExportConfig_ - != com.google.container.v1beta1.ResourceUsageExportConfig.getDefaultInstance()) { - getDesiredResourceUsageExportConfigBuilder().mergeFrom(value); - } else { - desiredResourceUsageExportConfig_ = value; - } - } else { - desiredResourceUsageExportConfigBuilder_.mergeFrom(value); - } - if (desiredResourceUsageExportConfig_ != null) { - bitField0_ |= 0x00001000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired configuration for exporting resource usage.
-     * 
- * - * - * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * - */ - public Builder clearDesiredResourceUsageExportConfig() { - bitField0_ = (bitField0_ & ~0x00001000); - desiredResourceUsageExportConfig_ = null; - if (desiredResourceUsageExportConfigBuilder_ != null) { - desiredResourceUsageExportConfigBuilder_.dispose(); - desiredResourceUsageExportConfigBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00001000; - 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 ((bitField0_ & 0x00002000) != 0); - } - /** - * - * - *
-     * 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; - } else { - desiredVerticalPodAutoscalingBuilder_.setMessage(value); - } - bitField0_ |= 0x00002000; - onChanged(); - 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(); - } else { - desiredVerticalPodAutoscalingBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00002000; - onChanged(); - 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 (((bitField0_ & 0x00002000) != 0) - && desiredVerticalPodAutoscaling_ != null - && desiredVerticalPodAutoscaling_ - != com.google.container.v1beta1.VerticalPodAutoscaling.getDefaultInstance()) { - getDesiredVerticalPodAutoscalingBuilder().mergeFrom(value); - } else { - desiredVerticalPodAutoscaling_ = value; - } - } else { - desiredVerticalPodAutoscalingBuilder_.mergeFrom(value); - } - if (desiredVerticalPodAutoscaling_ != null) { - bitField0_ |= 0x00002000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - * - */ - public Builder clearDesiredVerticalPodAutoscaling() { - bitField0_ = (bitField0_ & ~0x00002000); - desiredVerticalPodAutoscaling_ = null; - if (desiredVerticalPodAutoscalingBuilder_ != null) { - desiredVerticalPodAutoscalingBuilder_.dispose(); - desiredVerticalPodAutoscalingBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00002000; - 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 ((bitField0_ & 0x00004000) != 0); - } - /** - * - * - *
-     * 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; - } else { - desiredPrivateClusterConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00004000; - onChanged(); - 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(); - } else { - desiredPrivateClusterConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00004000; - onChanged(); - 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 (((bitField0_ & 0x00004000) != 0) - && desiredPrivateClusterConfig_ != null - && desiredPrivateClusterConfig_ - != com.google.container.v1beta1.PrivateClusterConfig.getDefaultInstance()) { - getDesiredPrivateClusterConfigBuilder().mergeFrom(value); - } else { - desiredPrivateClusterConfig_ = value; - } - } else { - desiredPrivateClusterConfigBuilder_.mergeFrom(value); - } - if (desiredPrivateClusterConfig_ != null) { - bitField0_ |= 0x00004000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired private cluster configuration.
-     * 
- * - * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; - * - */ - public Builder clearDesiredPrivateClusterConfig() { - bitField0_ = (bitField0_ & ~0x00004000); - desiredPrivateClusterConfig_ = null; - if (desiredPrivateClusterConfigBuilder_ != null) { - desiredPrivateClusterConfigBuilder_.dispose(); - desiredPrivateClusterConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired private cluster configuration.
-     * 
- * - * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; - * - */ - public com.google.container.v1beta1.PrivateClusterConfig.Builder - getDesiredPrivateClusterConfigBuilder() { - bitField0_ |= 0x00004000; - 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 ((bitField0_ & 0x00008000) != 0); - } - /** - * - * - *
-     * 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; - } else { - desiredIntraNodeVisibilityConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00008000; - onChanged(); - 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(); - } else { - desiredIntraNodeVisibilityConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00008000; - onChanged(); - 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 (((bitField0_ & 0x00008000) != 0) - && desiredIntraNodeVisibilityConfig_ != null - && desiredIntraNodeVisibilityConfig_ - != com.google.container.v1beta1.IntraNodeVisibilityConfig.getDefaultInstance()) { - getDesiredIntraNodeVisibilityConfigBuilder().mergeFrom(value); - } else { - desiredIntraNodeVisibilityConfig_ = value; - } - } else { - desiredIntraNodeVisibilityConfigBuilder_.mergeFrom(value); - } - if (desiredIntraNodeVisibilityConfig_ != null) { - bitField0_ |= 0x00008000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired config of Intra-node visibility.
-     * 
- * - * - * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * - */ - public Builder clearDesiredIntraNodeVisibilityConfig() { - bitField0_ = (bitField0_ & ~0x00008000); - desiredIntraNodeVisibilityConfig_ = null; - if (desiredIntraNodeVisibilityConfigBuilder_ != null) { - desiredIntraNodeVisibilityConfigBuilder_.dispose(); - desiredIntraNodeVisibilityConfigBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00008000; - 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 ((bitField0_ & 0x00010000) != 0); - } - /** - * - * - *
-     * 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; - } else { - desiredDefaultSnatStatusBuilder_.setMessage(value); - } - bitField0_ |= 0x00010000; - onChanged(); - 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(); - } else { - desiredDefaultSnatStatusBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00010000; - onChanged(); - 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 (((bitField0_ & 0x00010000) != 0) - && desiredDefaultSnatStatus_ != null - && desiredDefaultSnatStatus_ - != com.google.container.v1beta1.DefaultSnatStatus.getDefaultInstance()) { - getDesiredDefaultSnatStatusBuilder().mergeFrom(value); - } else { - desiredDefaultSnatStatus_ = value; - } - } else { - desiredDefaultSnatStatusBuilder_.mergeFrom(value); - } - if (desiredDefaultSnatStatus_ != null) { - bitField0_ |= 0x00010000; - onChanged(); - } - 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() { - bitField0_ = (bitField0_ & ~0x00010000); - desiredDefaultSnatStatus_ = null; - if (desiredDefaultSnatStatusBuilder_ != null) { - desiredDefaultSnatStatusBuilder_.dispose(); - desiredDefaultSnatStatusBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00010000; - 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 ((bitField0_ & 0x00020000) != 0); - } - /** - * - * - *
-     * 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; - } else { - desiredClusterTelemetryBuilder_.setMessage(value); - } - bitField0_ |= 0x00020000; - onChanged(); - 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(); - } else { - desiredClusterTelemetryBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00020000; - onChanged(); - 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 (((bitField0_ & 0x00020000) != 0) - && desiredClusterTelemetry_ != null - && desiredClusterTelemetry_ - != com.google.container.v1beta1.ClusterTelemetry.getDefaultInstance()) { - getDesiredClusterTelemetryBuilder().mergeFrom(value); - } else { - desiredClusterTelemetry_ = value; - } - } else { - desiredClusterTelemetryBuilder_.mergeFrom(value); - } - if (desiredClusterTelemetry_ != null) { - bitField0_ |= 0x00020000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired telemetry integration for the cluster.
-     * 
- * - * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; - */ - public Builder clearDesiredClusterTelemetry() { - bitField0_ = (bitField0_ & ~0x00020000); - desiredClusterTelemetry_ = null; - if (desiredClusterTelemetryBuilder_ != null) { - desiredClusterTelemetryBuilder_.dispose(); - desiredClusterTelemetryBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00020000; - 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 ((bitField0_ & 0x00040000) != 0); - } - /** - * - * - *
-     * 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; - } else { - desiredReleaseChannelBuilder_.setMessage(value); - } - bitField0_ |= 0x00040000; - onChanged(); - 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(); - } else { - desiredReleaseChannelBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00040000; - onChanged(); - 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 (((bitField0_ & 0x00040000) != 0) - && desiredReleaseChannel_ != null - && desiredReleaseChannel_ - != com.google.container.v1beta1.ReleaseChannel.getDefaultInstance()) { - getDesiredReleaseChannelBuilder().mergeFrom(value); - } else { - desiredReleaseChannel_ = value; - } - } else { - desiredReleaseChannelBuilder_.mergeFrom(value); - } - if (desiredReleaseChannel_ != null) { - bitField0_ |= 0x00040000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired release channel configuration.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; - */ - public Builder clearDesiredReleaseChannel() { - bitField0_ = (bitField0_ & ~0x00040000); - desiredReleaseChannel_ = null; - if (desiredReleaseChannelBuilder_ != null) { - desiredReleaseChannelBuilder_.dispose(); - desiredReleaseChannelBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired release channel configuration.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; - */ - public com.google.container.v1beta1.ReleaseChannel.Builder getDesiredReleaseChannelBuilder() { - bitField0_ |= 0x00040000; - 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 ((bitField0_ & 0x00080000) != 0); - } - /** - * - * - *
-     * 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; - } else { - desiredTpuConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00080000; - onChanged(); - 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(); - } else { - desiredTpuConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00080000; - onChanged(); - 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 (((bitField0_ & 0x00080000) != 0) - && desiredTpuConfig_ != null - && desiredTpuConfig_ != com.google.container.v1beta1.TpuConfig.getDefaultInstance()) { - getDesiredTpuConfigBuilder().mergeFrom(value); - } else { - desiredTpuConfig_ = value; - } - } else { - desiredTpuConfigBuilder_.mergeFrom(value); - } - if (desiredTpuConfig_ != null) { - bitField0_ |= 0x00080000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired Cloud TPU configuration.
-     * 
- * - * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; - */ - public Builder clearDesiredTpuConfig() { - bitField0_ = (bitField0_ & ~0x00080000); - desiredTpuConfig_ = null; - if (desiredTpuConfigBuilder_ != null) { - desiredTpuConfigBuilder_.dispose(); - desiredTpuConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired Cloud TPU configuration.
-     * 
- * - * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; - */ - public com.google.container.v1beta1.TpuConfig.Builder getDesiredTpuConfigBuilder() { - bitField0_ |= 0x00080000; - 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 com.google.container.v1beta1.ILBSubsettingConfig desiredL4IlbSubsettingConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ILBSubsettingConfig, - com.google.container.v1beta1.ILBSubsettingConfig.Builder, - com.google.container.v1beta1.ILBSubsettingConfigOrBuilder> - desiredL4IlbSubsettingConfigBuilder_; - /** - * - * - *
-     * The desired L4 Internal Load Balancer Subsetting configuration.
-     * 
- * - * .google.container.v1beta1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - * - * - * @return Whether the desiredL4ilbSubsettingConfig field is set. - */ - public boolean hasDesiredL4IlbSubsettingConfig() { - return ((bitField0_ & 0x00100000) != 0); - } - /** - * - * - *
-     * The desired L4 Internal Load Balancer Subsetting configuration.
-     * 
- * - * .google.container.v1beta1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - * - * - * @return The desiredL4ilbSubsettingConfig. - */ - public com.google.container.v1beta1.ILBSubsettingConfig getDesiredL4IlbSubsettingConfig() { - if (desiredL4IlbSubsettingConfigBuilder_ == null) { - return desiredL4IlbSubsettingConfig_ == null - ? com.google.container.v1beta1.ILBSubsettingConfig.getDefaultInstance() - : desiredL4IlbSubsettingConfig_; - } else { - return desiredL4IlbSubsettingConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired L4 Internal Load Balancer Subsetting configuration.
-     * 
- * - * .google.container.v1beta1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - * - */ - public Builder setDesiredL4IlbSubsettingConfig( - com.google.container.v1beta1.ILBSubsettingConfig value) { - if (desiredL4IlbSubsettingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredL4IlbSubsettingConfig_ = value; - } else { - desiredL4IlbSubsettingConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00100000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired L4 Internal Load Balancer Subsetting configuration.
-     * 
- * - * .google.container.v1beta1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - * - */ - public Builder setDesiredL4IlbSubsettingConfig( - com.google.container.v1beta1.ILBSubsettingConfig.Builder builderForValue) { - if (desiredL4IlbSubsettingConfigBuilder_ == null) { - desiredL4IlbSubsettingConfig_ = builderForValue.build(); - } else { - desiredL4IlbSubsettingConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00100000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired L4 Internal Load Balancer Subsetting configuration.
-     * 
- * - * .google.container.v1beta1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - * - */ - public Builder mergeDesiredL4IlbSubsettingConfig( - com.google.container.v1beta1.ILBSubsettingConfig value) { - if (desiredL4IlbSubsettingConfigBuilder_ == null) { - if (((bitField0_ & 0x00100000) != 0) - && desiredL4IlbSubsettingConfig_ != null - && desiredL4IlbSubsettingConfig_ - != com.google.container.v1beta1.ILBSubsettingConfig.getDefaultInstance()) { - getDesiredL4IlbSubsettingConfigBuilder().mergeFrom(value); - } else { - desiredL4IlbSubsettingConfig_ = value; - } - } else { - desiredL4IlbSubsettingConfigBuilder_.mergeFrom(value); - } - if (desiredL4IlbSubsettingConfig_ != null) { - bitField0_ |= 0x00100000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired L4 Internal Load Balancer Subsetting configuration.
-     * 
- * - * .google.container.v1beta1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - * - */ - public Builder clearDesiredL4IlbSubsettingConfig() { - bitField0_ = (bitField0_ & ~0x00100000); - desiredL4IlbSubsettingConfig_ = null; - if (desiredL4IlbSubsettingConfigBuilder_ != null) { - desiredL4IlbSubsettingConfigBuilder_.dispose(); - desiredL4IlbSubsettingConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired L4 Internal Load Balancer Subsetting configuration.
-     * 
- * - * .google.container.v1beta1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - * - */ - public com.google.container.v1beta1.ILBSubsettingConfig.Builder - getDesiredL4IlbSubsettingConfigBuilder() { - bitField0_ |= 0x00100000; - onChanged(); - return getDesiredL4IlbSubsettingConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired L4 Internal Load Balancer Subsetting configuration.
-     * 
- * - * .google.container.v1beta1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - * - */ - public com.google.container.v1beta1.ILBSubsettingConfigOrBuilder - getDesiredL4IlbSubsettingConfigOrBuilder() { - if (desiredL4IlbSubsettingConfigBuilder_ != null) { - return desiredL4IlbSubsettingConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredL4IlbSubsettingConfig_ == null - ? com.google.container.v1beta1.ILBSubsettingConfig.getDefaultInstance() - : desiredL4IlbSubsettingConfig_; - } - } - /** - * - * - *
-     * The desired L4 Internal Load Balancer Subsetting configuration.
-     * 
- * - * .google.container.v1beta1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ILBSubsettingConfig, - com.google.container.v1beta1.ILBSubsettingConfig.Builder, - com.google.container.v1beta1.ILBSubsettingConfigOrBuilder> - getDesiredL4IlbSubsettingConfigFieldBuilder() { - if (desiredL4IlbSubsettingConfigBuilder_ == null) { - desiredL4IlbSubsettingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ILBSubsettingConfig, - com.google.container.v1beta1.ILBSubsettingConfig.Builder, - com.google.container.v1beta1.ILBSubsettingConfigOrBuilder>( - getDesiredL4IlbSubsettingConfig(), getParentForChildren(), isClean()); - desiredL4IlbSubsettingConfig_ = null; - } - return desiredL4IlbSubsettingConfigBuilder_; - } - - 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; - bitField0_ |= 0x00200000; - 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() { - com.google.container.v1beta1.DatapathProvider result = - com.google.container.v1beta1.DatapathProvider.forNumber(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(); - } - bitField0_ |= 0x00200000; - 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() { - bitField0_ = (bitField0_ & ~0x00200000); - desiredDatapathProvider_ = 0; - onChanged(); - return this; - } - - private int desiredPrivateIpv6GoogleAccess_ = 0; - /** - * - * - *
-     * The desired state of IPv6 connectivity to Google Services.
-     * 
- * - * - * .google.container.v1beta1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; - * - * - * @return The enum numeric value on the wire for desiredPrivateIpv6GoogleAccess. - */ - @java.lang.Override - public int getDesiredPrivateIpv6GoogleAccessValue() { - return desiredPrivateIpv6GoogleAccess_; - } - /** - * - * - *
-     * The desired state of IPv6 connectivity to Google Services.
-     * 
- * - * - * .google.container.v1beta1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; - * - * - * @param value The enum numeric value on the wire for desiredPrivateIpv6GoogleAccess to set. - * @return This builder for chaining. - */ - public Builder setDesiredPrivateIpv6GoogleAccessValue(int value) { - desiredPrivateIpv6GoogleAccess_ = value; - bitField0_ |= 0x00400000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired state of IPv6 connectivity to Google Services.
-     * 
- * - * - * .google.container.v1beta1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; - * - * - * @return The desiredPrivateIpv6GoogleAccess. - */ - @java.lang.Override - public com.google.container.v1beta1.PrivateIPv6GoogleAccess - getDesiredPrivateIpv6GoogleAccess() { - com.google.container.v1beta1.PrivateIPv6GoogleAccess result = - com.google.container.v1beta1.PrivateIPv6GoogleAccess.forNumber( - desiredPrivateIpv6GoogleAccess_); - return result == null - ? com.google.container.v1beta1.PrivateIPv6GoogleAccess.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * The desired state of IPv6 connectivity to Google Services.
-     * 
- * - * - * .google.container.v1beta1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; - * - * - * @param value The desiredPrivateIpv6GoogleAccess to set. - * @return This builder for chaining. - */ - public Builder setDesiredPrivateIpv6GoogleAccess( - com.google.container.v1beta1.PrivateIPv6GoogleAccess value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00400000; - desiredPrivateIpv6GoogleAccess_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The desired state of IPv6 connectivity to Google Services.
-     * 
- * - * - * .google.container.v1beta1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; - * - * - * @return This builder for chaining. - */ - public Builder clearDesiredPrivateIpv6GoogleAccess() { - bitField0_ = (bitField0_ & ~0x00400000); - desiredPrivateIpv6GoogleAccess_ = 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 ((bitField0_ & 0x00800000) != 0); - } - /** - * - * - *
-     * 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; - } else { - desiredNotificationConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00800000; - onChanged(); - 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(); - } else { - desiredNotificationConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00800000; - onChanged(); - 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 (((bitField0_ & 0x00800000) != 0) - && desiredNotificationConfig_ != null - && desiredNotificationConfig_ - != com.google.container.v1beta1.NotificationConfig.getDefaultInstance()) { - getDesiredNotificationConfigBuilder().mergeFrom(value); - } else { - desiredNotificationConfig_ = value; - } - } else { - desiredNotificationConfigBuilder_.mergeFrom(value); - } - if (desiredNotificationConfig_ != null) { - bitField0_ |= 0x00800000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired notification configuration.
-     * 
- * - * .google.container.v1beta1.NotificationConfig desired_notification_config = 55; - */ - public Builder clearDesiredNotificationConfig() { - bitField0_ = (bitField0_ & ~0x00800000); - desiredNotificationConfig_ = null; - if (desiredNotificationConfigBuilder_ != null) { - desiredNotificationConfigBuilder_.dispose(); - desiredNotificationConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired notification configuration.
-     * 
- * - * .google.container.v1beta1.NotificationConfig desired_notification_config = 55; - */ - public com.google.container.v1beta1.NotificationConfig.Builder - getDesiredNotificationConfigBuilder() { - bitField0_ |= 0x00800000; - 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; - bitField0_ |= 0x01000000; - 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(); - bitField0_ = (bitField0_ & ~0x01000000); - 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; - bitField0_ |= 0x01000000; - onChanged(); - return this; - } - - private com.google.container.v1beta1.GcfsConfig desiredGcfsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GcfsConfig, - com.google.container.v1beta1.GcfsConfig.Builder, - com.google.container.v1beta1.GcfsConfigOrBuilder> - desiredGcfsConfigBuilder_; - /** - * - * - *
-     * The desired GCFS config for the cluster.
-     * 
- * - * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; - * - * @return Whether the desiredGcfsConfig field is set. - */ - public boolean hasDesiredGcfsConfig() { - return ((bitField0_ & 0x02000000) != 0); - } - /** - * - * - *
-     * The desired GCFS config for the cluster.
-     * 
- * - * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; - * - * @return The desiredGcfsConfig. - */ - public com.google.container.v1beta1.GcfsConfig getDesiredGcfsConfig() { - if (desiredGcfsConfigBuilder_ == null) { - return desiredGcfsConfig_ == null - ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() - : desiredGcfsConfig_; - } else { - return desiredGcfsConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired GCFS config for the cluster.
-     * 
- * - * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; - */ - public Builder setDesiredGcfsConfig(com.google.container.v1beta1.GcfsConfig value) { - if (desiredGcfsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredGcfsConfig_ = value; - } else { - desiredGcfsConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x02000000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired GCFS config for the cluster.
-     * 
- * - * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; - */ - public Builder setDesiredGcfsConfig( - com.google.container.v1beta1.GcfsConfig.Builder builderForValue) { - if (desiredGcfsConfigBuilder_ == null) { - desiredGcfsConfig_ = builderForValue.build(); - } else { - desiredGcfsConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x02000000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired GCFS config for the cluster.
-     * 
- * - * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; - */ - public Builder mergeDesiredGcfsConfig(com.google.container.v1beta1.GcfsConfig value) { - if (desiredGcfsConfigBuilder_ == null) { - if (((bitField0_ & 0x02000000) != 0) - && desiredGcfsConfig_ != null - && desiredGcfsConfig_ != com.google.container.v1beta1.GcfsConfig.getDefaultInstance()) { - getDesiredGcfsConfigBuilder().mergeFrom(value); - } else { - desiredGcfsConfig_ = value; - } - } else { - desiredGcfsConfigBuilder_.mergeFrom(value); - } - if (desiredGcfsConfig_ != null) { - bitField0_ |= 0x02000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired GCFS config for the cluster.
-     * 
- * - * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; - */ - public Builder clearDesiredGcfsConfig() { - bitField0_ = (bitField0_ & ~0x02000000); - desiredGcfsConfig_ = null; - if (desiredGcfsConfigBuilder_ != null) { - desiredGcfsConfigBuilder_.dispose(); - desiredGcfsConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired GCFS config for the cluster.
-     * 
- * - * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; - */ - public com.google.container.v1beta1.GcfsConfig.Builder getDesiredGcfsConfigBuilder() { - bitField0_ |= 0x02000000; - onChanged(); - return getDesiredGcfsConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired GCFS config for the cluster.
-     * 
- * - * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; - */ - public com.google.container.v1beta1.GcfsConfigOrBuilder getDesiredGcfsConfigOrBuilder() { - if (desiredGcfsConfigBuilder_ != null) { - return desiredGcfsConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredGcfsConfig_ == null - ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() - : desiredGcfsConfig_; - } - } - /** - * - * - *
-     * The desired GCFS config for the cluster.
-     * 
- * - * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GcfsConfig, - com.google.container.v1beta1.GcfsConfig.Builder, - com.google.container.v1beta1.GcfsConfigOrBuilder> - getDesiredGcfsConfigFieldBuilder() { - if (desiredGcfsConfigBuilder_ == null) { - desiredGcfsConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GcfsConfig, - com.google.container.v1beta1.GcfsConfig.Builder, - com.google.container.v1beta1.GcfsConfigOrBuilder>( - getDesiredGcfsConfig(), getParentForChildren(), isClean()); - desiredGcfsConfig_ = null; - } - return desiredGcfsConfigBuilder_; - } - - private com.google.container.v1beta1.DatabaseEncryption desiredDatabaseEncryption_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.DatabaseEncryption, - 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 ((bitField0_ & 0x04000000) != 0); - } - /** - * - * - *
-     * 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; - } else { - desiredDatabaseEncryptionBuilder_.setMessage(value); - } - bitField0_ |= 0x04000000; - onChanged(); - 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(); - } else { - desiredDatabaseEncryptionBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x04000000; - onChanged(); - 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 (((bitField0_ & 0x04000000) != 0) - && desiredDatabaseEncryption_ != null - && desiredDatabaseEncryption_ - != com.google.container.v1beta1.DatabaseEncryption.getDefaultInstance()) { - getDesiredDatabaseEncryptionBuilder().mergeFrom(value); - } else { - desiredDatabaseEncryption_ = value; - } - } else { - desiredDatabaseEncryptionBuilder_.mergeFrom(value); - } - if (desiredDatabaseEncryption_ != null) { - bitField0_ |= 0x04000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; - */ - public Builder clearDesiredDatabaseEncryption() { - bitField0_ = (bitField0_ & ~0x04000000); - desiredDatabaseEncryption_ = null; - if (desiredDatabaseEncryptionBuilder_ != null) { - desiredDatabaseEncryptionBuilder_.dispose(); - desiredDatabaseEncryptionBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; - */ - public com.google.container.v1beta1.DatabaseEncryption.Builder - getDesiredDatabaseEncryptionBuilder() { - bitField0_ |= 0x04000000; - 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 ((bitField0_ & 0x08000000) != 0); - } - /** - * - * - *
-     * 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; - } else { - desiredWorkloadIdentityConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x08000000; - onChanged(); - 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(); - } else { - desiredWorkloadIdentityConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x08000000; - onChanged(); - 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 (((bitField0_ & 0x08000000) != 0) - && desiredWorkloadIdentityConfig_ != null - && desiredWorkloadIdentityConfig_ - != com.google.container.v1beta1.WorkloadIdentityConfig.getDefaultInstance()) { - getDesiredWorkloadIdentityConfigBuilder().mergeFrom(value); - } else { - desiredWorkloadIdentityConfig_ = value; - } - } else { - desiredWorkloadIdentityConfigBuilder_.mergeFrom(value); - } - if (desiredWorkloadIdentityConfig_ != null) { - bitField0_ |= 0x08000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for Workload Identity.
-     * 
- * - * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * - */ - public Builder clearDesiredWorkloadIdentityConfig() { - bitField0_ = (bitField0_ & ~0x08000000); - desiredWorkloadIdentityConfig_ = null; - if (desiredWorkloadIdentityConfigBuilder_ != null) { - desiredWorkloadIdentityConfigBuilder_.dispose(); - desiredWorkloadIdentityConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for Workload Identity.
-     * 
- * - * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * - */ - public com.google.container.v1beta1.WorkloadIdentityConfig.Builder - getDesiredWorkloadIdentityConfigBuilder() { - bitField0_ |= 0x08000000; - 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.WorkloadCertificates desiredWorkloadCertificates_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WorkloadCertificates, - com.google.container.v1beta1.WorkloadCertificates.Builder, - com.google.container.v1beta1.WorkloadCertificatesOrBuilder> - desiredWorkloadCertificatesBuilder_; - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.WorkloadCertificates desired_workload_certificates = 61; - * - * - * @return Whether the desiredWorkloadCertificates field is set. - */ - public boolean hasDesiredWorkloadCertificates() { - return ((bitField0_ & 0x10000000) != 0); - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.WorkloadCertificates desired_workload_certificates = 61; - * - * - * @return The desiredWorkloadCertificates. - */ - public com.google.container.v1beta1.WorkloadCertificates getDesiredWorkloadCertificates() { - if (desiredWorkloadCertificatesBuilder_ == null) { - return desiredWorkloadCertificates_ == null - ? com.google.container.v1beta1.WorkloadCertificates.getDefaultInstance() - : desiredWorkloadCertificates_; - } else { - return desiredWorkloadCertificatesBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.WorkloadCertificates desired_workload_certificates = 61; - * - */ - public Builder setDesiredWorkloadCertificates( - com.google.container.v1beta1.WorkloadCertificates value) { - if (desiredWorkloadCertificatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredWorkloadCertificates_ = value; - } else { - desiredWorkloadCertificatesBuilder_.setMessage(value); - } - bitField0_ |= 0x10000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.WorkloadCertificates desired_workload_certificates = 61; - * - */ - public Builder setDesiredWorkloadCertificates( - com.google.container.v1beta1.WorkloadCertificates.Builder builderForValue) { - if (desiredWorkloadCertificatesBuilder_ == null) { - desiredWorkloadCertificates_ = builderForValue.build(); - } else { - desiredWorkloadCertificatesBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x10000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.WorkloadCertificates desired_workload_certificates = 61; - * - */ - public Builder mergeDesiredWorkloadCertificates( - com.google.container.v1beta1.WorkloadCertificates value) { - if (desiredWorkloadCertificatesBuilder_ == null) { - if (((bitField0_ & 0x10000000) != 0) - && desiredWorkloadCertificates_ != null - && desiredWorkloadCertificates_ - != com.google.container.v1beta1.WorkloadCertificates.getDefaultInstance()) { - getDesiredWorkloadCertificatesBuilder().mergeFrom(value); - } else { - desiredWorkloadCertificates_ = value; - } - } else { - desiredWorkloadCertificatesBuilder_.mergeFrom(value); - } - if (desiredWorkloadCertificates_ != null) { - bitField0_ |= 0x10000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.WorkloadCertificates desired_workload_certificates = 61; - * - */ - public Builder clearDesiredWorkloadCertificates() { - bitField0_ = (bitField0_ & ~0x10000000); - desiredWorkloadCertificates_ = null; - if (desiredWorkloadCertificatesBuilder_ != null) { - desiredWorkloadCertificatesBuilder_.dispose(); - desiredWorkloadCertificatesBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.WorkloadCertificates desired_workload_certificates = 61; - * - */ - public com.google.container.v1beta1.WorkloadCertificates.Builder - getDesiredWorkloadCertificatesBuilder() { - bitField0_ |= 0x10000000; - onChanged(); - return getDesiredWorkloadCertificatesFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.WorkloadCertificates desired_workload_certificates = 61; - * - */ - public com.google.container.v1beta1.WorkloadCertificatesOrBuilder - getDesiredWorkloadCertificatesOrBuilder() { - if (desiredWorkloadCertificatesBuilder_ != null) { - return desiredWorkloadCertificatesBuilder_.getMessageOrBuilder(); - } else { - return desiredWorkloadCertificates_ == null - ? com.google.container.v1beta1.WorkloadCertificates.getDefaultInstance() - : desiredWorkloadCertificates_; - } - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.WorkloadCertificates desired_workload_certificates = 61; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WorkloadCertificates, - com.google.container.v1beta1.WorkloadCertificates.Builder, - com.google.container.v1beta1.WorkloadCertificatesOrBuilder> - getDesiredWorkloadCertificatesFieldBuilder() { - if (desiredWorkloadCertificatesBuilder_ == null) { - desiredWorkloadCertificatesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WorkloadCertificates, - com.google.container.v1beta1.WorkloadCertificates.Builder, - com.google.container.v1beta1.WorkloadCertificatesOrBuilder>( - getDesiredWorkloadCertificates(), getParentForChildren(), isClean()); - desiredWorkloadCertificates_ = null; - } - return desiredWorkloadCertificatesBuilder_; - } - - private com.google.container.v1beta1.MeshCertificates desiredMeshCertificates_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MeshCertificates, - com.google.container.v1beta1.MeshCertificates.Builder, - com.google.container.v1beta1.MeshCertificatesOrBuilder> - desiredMeshCertificatesBuilder_; - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; - * - * @return Whether the desiredMeshCertificates field is set. - */ - public boolean hasDesiredMeshCertificates() { - return ((bitField0_ & 0x20000000) != 0); - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; - * - * @return The desiredMeshCertificates. - */ - public com.google.container.v1beta1.MeshCertificates getDesiredMeshCertificates() { - if (desiredMeshCertificatesBuilder_ == null) { - return desiredMeshCertificates_ == null - ? com.google.container.v1beta1.MeshCertificates.getDefaultInstance() - : desiredMeshCertificates_; - } else { - return desiredMeshCertificatesBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; - */ - public Builder setDesiredMeshCertificates(com.google.container.v1beta1.MeshCertificates value) { - if (desiredMeshCertificatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredMeshCertificates_ = value; - } else { - desiredMeshCertificatesBuilder_.setMessage(value); - } - bitField0_ |= 0x20000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; - */ - public Builder setDesiredMeshCertificates( - com.google.container.v1beta1.MeshCertificates.Builder builderForValue) { - if (desiredMeshCertificatesBuilder_ == null) { - desiredMeshCertificates_ = builderForValue.build(); - } else { - desiredMeshCertificatesBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x20000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; - */ - public Builder mergeDesiredMeshCertificates( - com.google.container.v1beta1.MeshCertificates value) { - if (desiredMeshCertificatesBuilder_ == null) { - if (((bitField0_ & 0x20000000) != 0) - && desiredMeshCertificates_ != null - && desiredMeshCertificates_ - != com.google.container.v1beta1.MeshCertificates.getDefaultInstance()) { - getDesiredMeshCertificatesBuilder().mergeFrom(value); - } else { - desiredMeshCertificates_ = value; - } - } else { - desiredMeshCertificatesBuilder_.mergeFrom(value); - } - if (desiredMeshCertificates_ != null) { - bitField0_ |= 0x20000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; - */ - public Builder clearDesiredMeshCertificates() { - bitField0_ = (bitField0_ & ~0x20000000); - desiredMeshCertificates_ = null; - if (desiredMeshCertificatesBuilder_ != null) { - desiredMeshCertificatesBuilder_.dispose(); - desiredMeshCertificatesBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; - */ - public com.google.container.v1beta1.MeshCertificates.Builder - getDesiredMeshCertificatesBuilder() { - bitField0_ |= 0x20000000; - onChanged(); - return getDesiredMeshCertificatesFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; - */ - public com.google.container.v1beta1.MeshCertificatesOrBuilder - getDesiredMeshCertificatesOrBuilder() { - if (desiredMeshCertificatesBuilder_ != null) { - return desiredMeshCertificatesBuilder_.getMessageOrBuilder(); - } else { - return desiredMeshCertificates_ == null - ? com.google.container.v1beta1.MeshCertificates.getDefaultInstance() - : desiredMeshCertificates_; - } - } - /** - * - * - *
-     * Configuration for issuance of mTLS keys and certificates to Kubernetes
-     * pods.
-     * 
- * - * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MeshCertificates, - com.google.container.v1beta1.MeshCertificates.Builder, - com.google.container.v1beta1.MeshCertificatesOrBuilder> - getDesiredMeshCertificatesFieldBuilder() { - if (desiredMeshCertificatesBuilder_ == null) { - desiredMeshCertificatesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MeshCertificates, - com.google.container.v1beta1.MeshCertificates.Builder, - com.google.container.v1beta1.MeshCertificatesOrBuilder>( - getDesiredMeshCertificates(), getParentForChildren(), isClean()); - desiredMeshCertificates_ = null; - } - return desiredMeshCertificatesBuilder_; - } - - private com.google.container.v1beta1.WorkloadALTSConfig desiredWorkloadAltsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WorkloadALTSConfig, - com.google.container.v1beta1.WorkloadALTSConfig.Builder, - com.google.container.v1beta1.WorkloadALTSConfigOrBuilder> - desiredWorkloadAltsConfigBuilder_; - /** - * - * - *
-     * Configuration for direct-path (via ALTS) with workload identity.
-     * 
- * - * .google.container.v1beta1.WorkloadALTSConfig desired_workload_alts_config = 62; - * - * @return Whether the desiredWorkloadAltsConfig field is set. - */ - public boolean hasDesiredWorkloadAltsConfig() { - return ((bitField0_ & 0x40000000) != 0); - } - /** - * - * - *
-     * Configuration for direct-path (via ALTS) with workload identity.
-     * 
- * - * .google.container.v1beta1.WorkloadALTSConfig desired_workload_alts_config = 62; - * - * @return The desiredWorkloadAltsConfig. - */ - public com.google.container.v1beta1.WorkloadALTSConfig getDesiredWorkloadAltsConfig() { - if (desiredWorkloadAltsConfigBuilder_ == null) { - return desiredWorkloadAltsConfig_ == null - ? com.google.container.v1beta1.WorkloadALTSConfig.getDefaultInstance() - : desiredWorkloadAltsConfig_; - } else { - return desiredWorkloadAltsConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for direct-path (via ALTS) with workload identity.
-     * 
- * - * .google.container.v1beta1.WorkloadALTSConfig desired_workload_alts_config = 62; - */ - public Builder setDesiredWorkloadAltsConfig( - com.google.container.v1beta1.WorkloadALTSConfig value) { - if (desiredWorkloadAltsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredWorkloadAltsConfig_ = value; - } else { - desiredWorkloadAltsConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x40000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for direct-path (via ALTS) with workload identity.
-     * 
- * - * .google.container.v1beta1.WorkloadALTSConfig desired_workload_alts_config = 62; - */ - public Builder setDesiredWorkloadAltsConfig( - com.google.container.v1beta1.WorkloadALTSConfig.Builder builderForValue) { - if (desiredWorkloadAltsConfigBuilder_ == null) { - desiredWorkloadAltsConfig_ = builderForValue.build(); - } else { - desiredWorkloadAltsConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x40000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for direct-path (via ALTS) with workload identity.
-     * 
- * - * .google.container.v1beta1.WorkloadALTSConfig desired_workload_alts_config = 62; - */ - public Builder mergeDesiredWorkloadAltsConfig( - com.google.container.v1beta1.WorkloadALTSConfig value) { - if (desiredWorkloadAltsConfigBuilder_ == null) { - if (((bitField0_ & 0x40000000) != 0) - && desiredWorkloadAltsConfig_ != null - && desiredWorkloadAltsConfig_ - != com.google.container.v1beta1.WorkloadALTSConfig.getDefaultInstance()) { - getDesiredWorkloadAltsConfigBuilder().mergeFrom(value); - } else { - desiredWorkloadAltsConfig_ = value; - } - } else { - desiredWorkloadAltsConfigBuilder_.mergeFrom(value); - } - if (desiredWorkloadAltsConfig_ != null) { - bitField0_ |= 0x40000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for direct-path (via ALTS) with workload identity.
-     * 
- * - * .google.container.v1beta1.WorkloadALTSConfig desired_workload_alts_config = 62; - */ - public Builder clearDesiredWorkloadAltsConfig() { - bitField0_ = (bitField0_ & ~0x40000000); - desiredWorkloadAltsConfig_ = null; - if (desiredWorkloadAltsConfigBuilder_ != null) { - desiredWorkloadAltsConfigBuilder_.dispose(); - desiredWorkloadAltsConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for direct-path (via ALTS) with workload identity.
-     * 
- * - * .google.container.v1beta1.WorkloadALTSConfig desired_workload_alts_config = 62; - */ - public com.google.container.v1beta1.WorkloadALTSConfig.Builder - getDesiredWorkloadAltsConfigBuilder() { - bitField0_ |= 0x40000000; - onChanged(); - return getDesiredWorkloadAltsConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for direct-path (via ALTS) with workload identity.
-     * 
- * - * .google.container.v1beta1.WorkloadALTSConfig desired_workload_alts_config = 62; - */ - public com.google.container.v1beta1.WorkloadALTSConfigOrBuilder - getDesiredWorkloadAltsConfigOrBuilder() { - if (desiredWorkloadAltsConfigBuilder_ != null) { - return desiredWorkloadAltsConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredWorkloadAltsConfig_ == null - ? com.google.container.v1beta1.WorkloadALTSConfig.getDefaultInstance() - : desiredWorkloadAltsConfig_; - } - } - /** - * - * - *
-     * Configuration for direct-path (via ALTS) with workload identity.
-     * 
- * - * .google.container.v1beta1.WorkloadALTSConfig desired_workload_alts_config = 62; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WorkloadALTSConfig, - com.google.container.v1beta1.WorkloadALTSConfig.Builder, - com.google.container.v1beta1.WorkloadALTSConfigOrBuilder> - getDesiredWorkloadAltsConfigFieldBuilder() { - if (desiredWorkloadAltsConfigBuilder_ == null) { - desiredWorkloadAltsConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WorkloadALTSConfig, - com.google.container.v1beta1.WorkloadALTSConfig.Builder, - com.google.container.v1beta1.WorkloadALTSConfigOrBuilder>( - getDesiredWorkloadAltsConfig(), getParentForChildren(), isClean()); - desiredWorkloadAltsConfig_ = null; - } - return desiredWorkloadAltsConfigBuilder_; - } - - 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 ((bitField0_ & 0x80000000) != 0); - } - /** - * - * - *
-     * 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; - } else { - desiredShieldedNodesBuilder_.setMessage(value); - } - bitField0_ |= 0x80000000; - onChanged(); - 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(); - } else { - desiredShieldedNodesBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x80000000; - onChanged(); - 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 (((bitField0_ & 0x80000000) != 0) - && desiredShieldedNodes_ != null - && desiredShieldedNodes_ - != com.google.container.v1beta1.ShieldedNodes.getDefaultInstance()) { - getDesiredShieldedNodesBuilder().mergeFrom(value); - } else { - desiredShieldedNodes_ = value; - } - } else { - desiredShieldedNodesBuilder_.mergeFrom(value); - } - if (desiredShieldedNodes_ != null) { - bitField0_ |= 0x80000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for Shielded Nodes.
-     * 
- * - * .google.container.v1beta1.ShieldedNodes desired_shielded_nodes = 48; - */ - public Builder clearDesiredShieldedNodes() { - bitField0_ = (bitField0_ & ~0x80000000); - desiredShieldedNodes_ = null; - if (desiredShieldedNodesBuilder_ != null) { - desiredShieldedNodesBuilder_.dispose(); - desiredShieldedNodesBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for Shielded Nodes.
-     * 
- * - * .google.container.v1beta1.ShieldedNodes desired_shielded_nodes = 48; - */ - public com.google.container.v1beta1.ShieldedNodes.Builder getDesiredShieldedNodesBuilder() { - bitField0_ |= 0x80000000; - 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.CostManagementConfig desiredCostManagementConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.CostManagementConfig, - com.google.container.v1beta1.CostManagementConfig.Builder, - com.google.container.v1beta1.CostManagementConfigOrBuilder> - desiredCostManagementConfigBuilder_; - /** - * - * - *
-     * The desired configuration for the fine-grained cost management feature.
-     * 
- * - * .google.container.v1beta1.CostManagementConfig desired_cost_management_config = 49; - * - * - * @return Whether the desiredCostManagementConfig field is set. - */ - public boolean hasDesiredCostManagementConfig() { - return ((bitField1_ & 0x00000001) != 0); - } - /** - * - * - *
-     * The desired configuration for the fine-grained cost management feature.
-     * 
- * - * .google.container.v1beta1.CostManagementConfig desired_cost_management_config = 49; - * - * - * @return The desiredCostManagementConfig. - */ - public com.google.container.v1beta1.CostManagementConfig getDesiredCostManagementConfig() { - if (desiredCostManagementConfigBuilder_ == null) { - return desiredCostManagementConfig_ == null - ? com.google.container.v1beta1.CostManagementConfig.getDefaultInstance() - : desiredCostManagementConfig_; - } else { - return desiredCostManagementConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired configuration for the fine-grained cost management feature.
-     * 
- * - * .google.container.v1beta1.CostManagementConfig desired_cost_management_config = 49; - * - */ - public Builder setDesiredCostManagementConfig( - com.google.container.v1beta1.CostManagementConfig value) { - if (desiredCostManagementConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredCostManagementConfig_ = value; - } else { - desiredCostManagementConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired configuration for the fine-grained cost management feature.
-     * 
- * - * .google.container.v1beta1.CostManagementConfig desired_cost_management_config = 49; - * - */ - public Builder setDesiredCostManagementConfig( - com.google.container.v1beta1.CostManagementConfig.Builder builderForValue) { - if (desiredCostManagementConfigBuilder_ == null) { - desiredCostManagementConfig_ = builderForValue.build(); - } else { - desiredCostManagementConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired configuration for the fine-grained cost management feature.
-     * 
- * - * .google.container.v1beta1.CostManagementConfig desired_cost_management_config = 49; - * - */ - public Builder mergeDesiredCostManagementConfig( - com.google.container.v1beta1.CostManagementConfig value) { - if (desiredCostManagementConfigBuilder_ == null) { - if (((bitField1_ & 0x00000001) != 0) - && desiredCostManagementConfig_ != null - && desiredCostManagementConfig_ - != com.google.container.v1beta1.CostManagementConfig.getDefaultInstance()) { - getDesiredCostManagementConfigBuilder().mergeFrom(value); - } else { - desiredCostManagementConfig_ = value; - } - } else { - desiredCostManagementConfigBuilder_.mergeFrom(value); - } - if (desiredCostManagementConfig_ != null) { - bitField1_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired configuration for the fine-grained cost management feature.
-     * 
- * - * .google.container.v1beta1.CostManagementConfig desired_cost_management_config = 49; - * - */ - public Builder clearDesiredCostManagementConfig() { - bitField1_ = (bitField1_ & ~0x00000001); - desiredCostManagementConfig_ = null; - if (desiredCostManagementConfigBuilder_ != null) { - desiredCostManagementConfigBuilder_.dispose(); - desiredCostManagementConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired configuration for the fine-grained cost management feature.
-     * 
- * - * .google.container.v1beta1.CostManagementConfig desired_cost_management_config = 49; - * - */ - public com.google.container.v1beta1.CostManagementConfig.Builder - getDesiredCostManagementConfigBuilder() { - bitField1_ |= 0x00000001; - onChanged(); - return getDesiredCostManagementConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired configuration for the fine-grained cost management feature.
-     * 
- * - * .google.container.v1beta1.CostManagementConfig desired_cost_management_config = 49; - * - */ - public com.google.container.v1beta1.CostManagementConfigOrBuilder - getDesiredCostManagementConfigOrBuilder() { - if (desiredCostManagementConfigBuilder_ != null) { - return desiredCostManagementConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredCostManagementConfig_ == null - ? com.google.container.v1beta1.CostManagementConfig.getDefaultInstance() - : desiredCostManagementConfig_; - } - } - /** - * - * - *
-     * The desired configuration for the fine-grained cost management feature.
-     * 
- * - * .google.container.v1beta1.CostManagementConfig desired_cost_management_config = 49; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.CostManagementConfig, - com.google.container.v1beta1.CostManagementConfig.Builder, - com.google.container.v1beta1.CostManagementConfigOrBuilder> - getDesiredCostManagementConfigFieldBuilder() { - if (desiredCostManagementConfigBuilder_ == null) { - desiredCostManagementConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.CostManagementConfig, - com.google.container.v1beta1.CostManagementConfig.Builder, - com.google.container.v1beta1.CostManagementConfigOrBuilder>( - getDesiredCostManagementConfig(), getParentForChildren(), isClean()); - desiredCostManagementConfig_ = null; - } - return desiredCostManagementConfigBuilder_; - } - - 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 ((bitField1_ & 0x00000002) != 0); - } - /** - * - * - *
-     * 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; - } else { - desiredMasterBuilder_.setMessage(value); - } - bitField1_ |= 0x00000002; - onChanged(); - 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(); - } else { - desiredMasterBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000002; - onChanged(); - 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 (((bitField1_ & 0x00000002) != 0) - && desiredMaster_ != null - && desiredMaster_ != com.google.container.v1beta1.Master.getDefaultInstance()) { - getDesiredMasterBuilder().mergeFrom(value); - } else { - desiredMaster_ = value; - } - } else { - desiredMasterBuilder_.mergeFrom(value); - } - if (desiredMaster_ != null) { - bitField1_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration for master components.
-     * 
- * - * .google.container.v1beta1.Master desired_master = 52; - */ - public Builder clearDesiredMaster() { - bitField1_ = (bitField1_ & ~0x00000002); - desiredMaster_ = null; - if (desiredMasterBuilder_ != null) { - desiredMasterBuilder_.dispose(); - desiredMasterBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration for master components.
-     * 
- * - * .google.container.v1beta1.Master desired_master = 52; - */ - public com.google.container.v1beta1.Master.Builder getDesiredMasterBuilder() { - bitField1_ |= 0x00000002; - 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_; - } - - private com.google.container.v1beta1.DNSConfig desiredDnsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.DNSConfig, - com.google.container.v1beta1.DNSConfig.Builder, - com.google.container.v1beta1.DNSConfigOrBuilder> - desiredDnsConfigBuilder_; - /** - * - * - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1beta1.DNSConfig desired_dns_config = 53; - * - * @return Whether the desiredDnsConfig field is set. - */ - public boolean hasDesiredDnsConfig() { - return ((bitField1_ & 0x00000004) != 0); - } - /** - * - * - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1beta1.DNSConfig desired_dns_config = 53; - * - * @return The desiredDnsConfig. - */ - public com.google.container.v1beta1.DNSConfig getDesiredDnsConfig() { - if (desiredDnsConfigBuilder_ == null) { - return desiredDnsConfig_ == null - ? com.google.container.v1beta1.DNSConfig.getDefaultInstance() - : desiredDnsConfig_; - } else { - return desiredDnsConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1beta1.DNSConfig desired_dns_config = 53; - */ - public Builder setDesiredDnsConfig(com.google.container.v1beta1.DNSConfig value) { - if (desiredDnsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredDnsConfig_ = value; - } else { - desiredDnsConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1beta1.DNSConfig desired_dns_config = 53; - */ - public Builder setDesiredDnsConfig( - com.google.container.v1beta1.DNSConfig.Builder builderForValue) { - if (desiredDnsConfigBuilder_ == null) { - desiredDnsConfig_ = builderForValue.build(); - } else { - desiredDnsConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1beta1.DNSConfig desired_dns_config = 53; - */ - public Builder mergeDesiredDnsConfig(com.google.container.v1beta1.DNSConfig value) { - if (desiredDnsConfigBuilder_ == null) { - if (((bitField1_ & 0x00000004) != 0) - && desiredDnsConfig_ != null - && desiredDnsConfig_ != com.google.container.v1beta1.DNSConfig.getDefaultInstance()) { - getDesiredDnsConfigBuilder().mergeFrom(value); - } else { - desiredDnsConfig_ = value; - } - } else { - desiredDnsConfigBuilder_.mergeFrom(value); - } - if (desiredDnsConfig_ != null) { - bitField1_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - * - * - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1beta1.DNSConfig desired_dns_config = 53; - */ - public Builder clearDesiredDnsConfig() { - bitField1_ = (bitField1_ & ~0x00000004); - desiredDnsConfig_ = null; - if (desiredDnsConfigBuilder_ != null) { - desiredDnsConfigBuilder_.dispose(); - desiredDnsConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1beta1.DNSConfig desired_dns_config = 53; - */ - public com.google.container.v1beta1.DNSConfig.Builder getDesiredDnsConfigBuilder() { - bitField1_ |= 0x00000004; - onChanged(); - return getDesiredDnsConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1beta1.DNSConfig desired_dns_config = 53; - */ - public com.google.container.v1beta1.DNSConfigOrBuilder getDesiredDnsConfigOrBuilder() { - if (desiredDnsConfigBuilder_ != null) { - return desiredDnsConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredDnsConfig_ == null - ? com.google.container.v1beta1.DNSConfig.getDefaultInstance() - : desiredDnsConfig_; - } - } - /** - * - * - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1beta1.DNSConfig desired_dns_config = 53; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.DNSConfig, - com.google.container.v1beta1.DNSConfig.Builder, - com.google.container.v1beta1.DNSConfigOrBuilder> - getDesiredDnsConfigFieldBuilder() { - if (desiredDnsConfigBuilder_ == null) { - desiredDnsConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.DNSConfig, - com.google.container.v1beta1.DNSConfig.Builder, - com.google.container.v1beta1.DNSConfigOrBuilder>( - getDesiredDnsConfig(), getParentForChildren(), isClean()); - desiredDnsConfig_ = null; - } - return desiredDnsConfigBuilder_; - } - - private com.google.container.v1beta1.ServiceExternalIPsConfig desiredServiceExternalIpsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ServiceExternalIPsConfig, - com.google.container.v1beta1.ServiceExternalIPsConfig.Builder, - com.google.container.v1beta1.ServiceExternalIPsConfigOrBuilder> - desiredServiceExternalIpsConfigBuilder_; - /** - * - * - *
-     * ServiceExternalIPsConfig specifies the config for the use of Services with
-     * ExternalIPs field.
-     * 
- * - * - * .google.container.v1beta1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - * - * - * @return Whether the desiredServiceExternalIpsConfig field is set. - */ - public boolean hasDesiredServiceExternalIpsConfig() { - return ((bitField1_ & 0x00000008) != 0); - } - /** - * - * - *
-     * ServiceExternalIPsConfig specifies the config for the use of Services with
-     * ExternalIPs field.
-     * 
- * - * - * .google.container.v1beta1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - * - * - * @return The desiredServiceExternalIpsConfig. - */ - public com.google.container.v1beta1.ServiceExternalIPsConfig - getDesiredServiceExternalIpsConfig() { - if (desiredServiceExternalIpsConfigBuilder_ == null) { - return desiredServiceExternalIpsConfig_ == null - ? com.google.container.v1beta1.ServiceExternalIPsConfig.getDefaultInstance() - : desiredServiceExternalIpsConfig_; - } else { - return desiredServiceExternalIpsConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * ServiceExternalIPsConfig specifies the config for the use of Services with
-     * ExternalIPs field.
-     * 
- * - * - * .google.container.v1beta1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - * - */ - public Builder setDesiredServiceExternalIpsConfig( - com.google.container.v1beta1.ServiceExternalIPsConfig value) { - if (desiredServiceExternalIpsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredServiceExternalIpsConfig_ = value; - } else { - desiredServiceExternalIpsConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * ServiceExternalIPsConfig specifies the config for the use of Services with
-     * ExternalIPs field.
-     * 
- * - * - * .google.container.v1beta1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - * - */ - public Builder setDesiredServiceExternalIpsConfig( - com.google.container.v1beta1.ServiceExternalIPsConfig.Builder builderForValue) { - if (desiredServiceExternalIpsConfigBuilder_ == null) { - desiredServiceExternalIpsConfig_ = builderForValue.build(); - } else { - desiredServiceExternalIpsConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * ServiceExternalIPsConfig specifies the config for the use of Services with
-     * ExternalIPs field.
-     * 
- * - * - * .google.container.v1beta1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - * - */ - public Builder mergeDesiredServiceExternalIpsConfig( - com.google.container.v1beta1.ServiceExternalIPsConfig value) { - if (desiredServiceExternalIpsConfigBuilder_ == null) { - if (((bitField1_ & 0x00000008) != 0) - && desiredServiceExternalIpsConfig_ != null - && desiredServiceExternalIpsConfig_ - != com.google.container.v1beta1.ServiceExternalIPsConfig.getDefaultInstance()) { - getDesiredServiceExternalIpsConfigBuilder().mergeFrom(value); - } else { - desiredServiceExternalIpsConfig_ = value; - } - } else { - desiredServiceExternalIpsConfigBuilder_.mergeFrom(value); - } - if (desiredServiceExternalIpsConfig_ != null) { - bitField1_ |= 0x00000008; - onChanged(); - } - return this; - } - /** - * - * - *
-     * ServiceExternalIPsConfig specifies the config for the use of Services with
-     * ExternalIPs field.
-     * 
- * - * - * .google.container.v1beta1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - * - */ - public Builder clearDesiredServiceExternalIpsConfig() { - bitField1_ = (bitField1_ & ~0x00000008); - desiredServiceExternalIpsConfig_ = null; - if (desiredServiceExternalIpsConfigBuilder_ != null) { - desiredServiceExternalIpsConfigBuilder_.dispose(); - desiredServiceExternalIpsConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * ServiceExternalIPsConfig specifies the config for the use of Services with
-     * ExternalIPs field.
-     * 
- * - * - * .google.container.v1beta1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - * - */ - public com.google.container.v1beta1.ServiceExternalIPsConfig.Builder - getDesiredServiceExternalIpsConfigBuilder() { - bitField1_ |= 0x00000008; - onChanged(); - return getDesiredServiceExternalIpsConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * ServiceExternalIPsConfig specifies the config for the use of Services with
-     * ExternalIPs field.
-     * 
- * - * - * .google.container.v1beta1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - * - */ - public com.google.container.v1beta1.ServiceExternalIPsConfigOrBuilder - getDesiredServiceExternalIpsConfigOrBuilder() { - if (desiredServiceExternalIpsConfigBuilder_ != null) { - return desiredServiceExternalIpsConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredServiceExternalIpsConfig_ == null - ? com.google.container.v1beta1.ServiceExternalIPsConfig.getDefaultInstance() - : desiredServiceExternalIpsConfig_; - } - } - /** - * - * - *
-     * ServiceExternalIPsConfig specifies the config for the use of Services with
-     * ExternalIPs field.
-     * 
- * - * - * .google.container.v1beta1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ServiceExternalIPsConfig, - com.google.container.v1beta1.ServiceExternalIPsConfig.Builder, - com.google.container.v1beta1.ServiceExternalIPsConfigOrBuilder> - getDesiredServiceExternalIpsConfigFieldBuilder() { - if (desiredServiceExternalIpsConfigBuilder_ == null) { - desiredServiceExternalIpsConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ServiceExternalIPsConfig, - com.google.container.v1beta1.ServiceExternalIPsConfig.Builder, - com.google.container.v1beta1.ServiceExternalIPsConfigOrBuilder>( - getDesiredServiceExternalIpsConfig(), getParentForChildren(), isClean()); - desiredServiceExternalIpsConfig_ = null; - } - return desiredServiceExternalIpsConfigBuilder_; - } - - private com.google.container.v1beta1.AuthenticatorGroupsConfig - desiredAuthenticatorGroupsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AuthenticatorGroupsConfig, - com.google.container.v1beta1.AuthenticatorGroupsConfig.Builder, - com.google.container.v1beta1.AuthenticatorGroupsConfigOrBuilder> - desiredAuthenticatorGroupsConfigBuilder_; - /** - * - * - *
-     * AuthenticatorGroupsConfig specifies the config for the cluster security
-     * groups settings.
-     * 
- * - * - * .google.container.v1beta1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - * - * - * @return Whether the desiredAuthenticatorGroupsConfig field is set. - */ - public boolean hasDesiredAuthenticatorGroupsConfig() { - return ((bitField1_ & 0x00000010) != 0); - } - /** - * - * - *
-     * AuthenticatorGroupsConfig specifies the config for the cluster security
-     * groups settings.
-     * 
- * - * - * .google.container.v1beta1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - * - * - * @return The desiredAuthenticatorGroupsConfig. - */ - public com.google.container.v1beta1.AuthenticatorGroupsConfig - getDesiredAuthenticatorGroupsConfig() { - if (desiredAuthenticatorGroupsConfigBuilder_ == null) { - return desiredAuthenticatorGroupsConfig_ == null - ? com.google.container.v1beta1.AuthenticatorGroupsConfig.getDefaultInstance() - : desiredAuthenticatorGroupsConfig_; - } else { - return desiredAuthenticatorGroupsConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * AuthenticatorGroupsConfig specifies the config for the cluster security
-     * groups settings.
-     * 
- * - * - * .google.container.v1beta1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - * - */ - public Builder setDesiredAuthenticatorGroupsConfig( - com.google.container.v1beta1.AuthenticatorGroupsConfig value) { - if (desiredAuthenticatorGroupsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredAuthenticatorGroupsConfig_ = value; - } else { - desiredAuthenticatorGroupsConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * AuthenticatorGroupsConfig specifies the config for the cluster security
-     * groups settings.
-     * 
- * - * - * .google.container.v1beta1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - * - */ - public Builder setDesiredAuthenticatorGroupsConfig( - com.google.container.v1beta1.AuthenticatorGroupsConfig.Builder builderForValue) { - if (desiredAuthenticatorGroupsConfigBuilder_ == null) { - desiredAuthenticatorGroupsConfig_ = builderForValue.build(); - } else { - desiredAuthenticatorGroupsConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * AuthenticatorGroupsConfig specifies the config for the cluster security
-     * groups settings.
-     * 
- * - * - * .google.container.v1beta1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - * - */ - public Builder mergeDesiredAuthenticatorGroupsConfig( - com.google.container.v1beta1.AuthenticatorGroupsConfig value) { - if (desiredAuthenticatorGroupsConfigBuilder_ == null) { - if (((bitField1_ & 0x00000010) != 0) - && desiredAuthenticatorGroupsConfig_ != null - && desiredAuthenticatorGroupsConfig_ - != com.google.container.v1beta1.AuthenticatorGroupsConfig.getDefaultInstance()) { - getDesiredAuthenticatorGroupsConfigBuilder().mergeFrom(value); - } else { - desiredAuthenticatorGroupsConfig_ = value; - } - } else { - desiredAuthenticatorGroupsConfigBuilder_.mergeFrom(value); - } - if (desiredAuthenticatorGroupsConfig_ != null) { - bitField1_ |= 0x00000010; - onChanged(); - } - return this; - } - /** - * - * - *
-     * AuthenticatorGroupsConfig specifies the config for the cluster security
-     * groups settings.
-     * 
- * - * - * .google.container.v1beta1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - * - */ - public Builder clearDesiredAuthenticatorGroupsConfig() { - bitField1_ = (bitField1_ & ~0x00000010); - desiredAuthenticatorGroupsConfig_ = null; - if (desiredAuthenticatorGroupsConfigBuilder_ != null) { - desiredAuthenticatorGroupsConfigBuilder_.dispose(); - desiredAuthenticatorGroupsConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * AuthenticatorGroupsConfig specifies the config for the cluster security
-     * groups settings.
-     * 
- * - * - * .google.container.v1beta1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - * - */ - public com.google.container.v1beta1.AuthenticatorGroupsConfig.Builder - getDesiredAuthenticatorGroupsConfigBuilder() { - bitField1_ |= 0x00000010; - onChanged(); - return getDesiredAuthenticatorGroupsConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * AuthenticatorGroupsConfig specifies the config for the cluster security
-     * groups settings.
-     * 
- * - * - * .google.container.v1beta1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - * - */ - public com.google.container.v1beta1.AuthenticatorGroupsConfigOrBuilder - getDesiredAuthenticatorGroupsConfigOrBuilder() { - if (desiredAuthenticatorGroupsConfigBuilder_ != null) { - return desiredAuthenticatorGroupsConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredAuthenticatorGroupsConfig_ == null - ? com.google.container.v1beta1.AuthenticatorGroupsConfig.getDefaultInstance() - : desiredAuthenticatorGroupsConfig_; - } - } - /** - * - * - *
-     * AuthenticatorGroupsConfig specifies the config for the cluster security
-     * groups settings.
-     * 
- * - * - * .google.container.v1beta1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AuthenticatorGroupsConfig, - com.google.container.v1beta1.AuthenticatorGroupsConfig.Builder, - com.google.container.v1beta1.AuthenticatorGroupsConfigOrBuilder> - getDesiredAuthenticatorGroupsConfigFieldBuilder() { - if (desiredAuthenticatorGroupsConfigBuilder_ == null) { - desiredAuthenticatorGroupsConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AuthenticatorGroupsConfig, - com.google.container.v1beta1.AuthenticatorGroupsConfig.Builder, - com.google.container.v1beta1.AuthenticatorGroupsConfigOrBuilder>( - getDesiredAuthenticatorGroupsConfig(), getParentForChildren(), isClean()); - desiredAuthenticatorGroupsConfig_ = null; - } - return desiredAuthenticatorGroupsConfigBuilder_; - } - - private com.google.container.v1beta1.LoggingConfig desiredLoggingConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.LoggingConfig, - com.google.container.v1beta1.LoggingConfig.Builder, - com.google.container.v1beta1.LoggingConfigOrBuilder> - desiredLoggingConfigBuilder_; - /** - * - * - *
-     * The desired logging configuration.
-     * 
- * - * .google.container.v1beta1.LoggingConfig desired_logging_config = 64; - * - * @return Whether the desiredLoggingConfig field is set. - */ - public boolean hasDesiredLoggingConfig() { - return ((bitField1_ & 0x00000020) != 0); - } - /** - * - * - *
-     * The desired logging configuration.
-     * 
- * - * .google.container.v1beta1.LoggingConfig desired_logging_config = 64; - * - * @return The desiredLoggingConfig. - */ - public com.google.container.v1beta1.LoggingConfig getDesiredLoggingConfig() { - if (desiredLoggingConfigBuilder_ == null) { - return desiredLoggingConfig_ == null - ? com.google.container.v1beta1.LoggingConfig.getDefaultInstance() - : desiredLoggingConfig_; - } else { - return desiredLoggingConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired logging configuration.
-     * 
- * - * .google.container.v1beta1.LoggingConfig desired_logging_config = 64; - */ - public Builder setDesiredLoggingConfig(com.google.container.v1beta1.LoggingConfig value) { - if (desiredLoggingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredLoggingConfig_ = value; - } else { - desiredLoggingConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired logging configuration.
-     * 
- * - * .google.container.v1beta1.LoggingConfig desired_logging_config = 64; - */ - public Builder setDesiredLoggingConfig( - com.google.container.v1beta1.LoggingConfig.Builder builderForValue) { - if (desiredLoggingConfigBuilder_ == null) { - desiredLoggingConfig_ = builderForValue.build(); - } else { - desiredLoggingConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired logging configuration.
-     * 
- * - * .google.container.v1beta1.LoggingConfig desired_logging_config = 64; - */ - public Builder mergeDesiredLoggingConfig(com.google.container.v1beta1.LoggingConfig value) { - if (desiredLoggingConfigBuilder_ == null) { - if (((bitField1_ & 0x00000020) != 0) - && desiredLoggingConfig_ != null - && desiredLoggingConfig_ - != com.google.container.v1beta1.LoggingConfig.getDefaultInstance()) { - getDesiredLoggingConfigBuilder().mergeFrom(value); - } else { - desiredLoggingConfig_ = value; - } - } else { - desiredLoggingConfigBuilder_.mergeFrom(value); - } - if (desiredLoggingConfig_ != null) { - bitField1_ |= 0x00000020; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired logging configuration.
-     * 
- * - * .google.container.v1beta1.LoggingConfig desired_logging_config = 64; - */ - public Builder clearDesiredLoggingConfig() { - bitField1_ = (bitField1_ & ~0x00000020); - desiredLoggingConfig_ = null; - if (desiredLoggingConfigBuilder_ != null) { - desiredLoggingConfigBuilder_.dispose(); - desiredLoggingConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired logging configuration.
-     * 
- * - * .google.container.v1beta1.LoggingConfig desired_logging_config = 64; - */ - public com.google.container.v1beta1.LoggingConfig.Builder getDesiredLoggingConfigBuilder() { - bitField1_ |= 0x00000020; - onChanged(); - return getDesiredLoggingConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired logging configuration.
-     * 
- * - * .google.container.v1beta1.LoggingConfig desired_logging_config = 64; - */ - public com.google.container.v1beta1.LoggingConfigOrBuilder getDesiredLoggingConfigOrBuilder() { - if (desiredLoggingConfigBuilder_ != null) { - return desiredLoggingConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredLoggingConfig_ == null - ? com.google.container.v1beta1.LoggingConfig.getDefaultInstance() - : desiredLoggingConfig_; - } - } - /** - * - * - *
-     * The desired logging configuration.
-     * 
- * - * .google.container.v1beta1.LoggingConfig desired_logging_config = 64; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.LoggingConfig, - com.google.container.v1beta1.LoggingConfig.Builder, - com.google.container.v1beta1.LoggingConfigOrBuilder> - getDesiredLoggingConfigFieldBuilder() { - if (desiredLoggingConfigBuilder_ == null) { - desiredLoggingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.LoggingConfig, - com.google.container.v1beta1.LoggingConfig.Builder, - com.google.container.v1beta1.LoggingConfigOrBuilder>( - getDesiredLoggingConfig(), getParentForChildren(), isClean()); - desiredLoggingConfig_ = null; - } - return desiredLoggingConfigBuilder_; - } - - private com.google.container.v1beta1.MonitoringConfig desiredMonitoringConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MonitoringConfig, - com.google.container.v1beta1.MonitoringConfig.Builder, - com.google.container.v1beta1.MonitoringConfigOrBuilder> - desiredMonitoringConfigBuilder_; - /** - * - * - *
-     * The desired monitoring configuration.
-     * 
- * - * .google.container.v1beta1.MonitoringConfig desired_monitoring_config = 65; - * - * @return Whether the desiredMonitoringConfig field is set. - */ - public boolean hasDesiredMonitoringConfig() { - return ((bitField1_ & 0x00000040) != 0); - } - /** - * - * - *
-     * The desired monitoring configuration.
-     * 
- * - * .google.container.v1beta1.MonitoringConfig desired_monitoring_config = 65; - * - * @return The desiredMonitoringConfig. - */ - public com.google.container.v1beta1.MonitoringConfig getDesiredMonitoringConfig() { - if (desiredMonitoringConfigBuilder_ == null) { - return desiredMonitoringConfig_ == null - ? com.google.container.v1beta1.MonitoringConfig.getDefaultInstance() - : desiredMonitoringConfig_; - } else { - return desiredMonitoringConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired monitoring configuration.
-     * 
- * - * .google.container.v1beta1.MonitoringConfig desired_monitoring_config = 65; - */ - public Builder setDesiredMonitoringConfig(com.google.container.v1beta1.MonitoringConfig value) { - if (desiredMonitoringConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredMonitoringConfig_ = value; - } else { - desiredMonitoringConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired monitoring configuration.
-     * 
- * - * .google.container.v1beta1.MonitoringConfig desired_monitoring_config = 65; - */ - public Builder setDesiredMonitoringConfig( - com.google.container.v1beta1.MonitoringConfig.Builder builderForValue) { - if (desiredMonitoringConfigBuilder_ == null) { - desiredMonitoringConfig_ = builderForValue.build(); - } else { - desiredMonitoringConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired monitoring configuration.
-     * 
- * - * .google.container.v1beta1.MonitoringConfig desired_monitoring_config = 65; - */ - public Builder mergeDesiredMonitoringConfig( - com.google.container.v1beta1.MonitoringConfig value) { - if (desiredMonitoringConfigBuilder_ == null) { - if (((bitField1_ & 0x00000040) != 0) - && desiredMonitoringConfig_ != null - && desiredMonitoringConfig_ - != com.google.container.v1beta1.MonitoringConfig.getDefaultInstance()) { - getDesiredMonitoringConfigBuilder().mergeFrom(value); - } else { - desiredMonitoringConfig_ = value; - } - } else { - desiredMonitoringConfigBuilder_.mergeFrom(value); - } - if (desiredMonitoringConfig_ != null) { - bitField1_ |= 0x00000040; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired monitoring configuration.
-     * 
- * - * .google.container.v1beta1.MonitoringConfig desired_monitoring_config = 65; - */ - public Builder clearDesiredMonitoringConfig() { - bitField1_ = (bitField1_ & ~0x00000040); - desiredMonitoringConfig_ = null; - if (desiredMonitoringConfigBuilder_ != null) { - desiredMonitoringConfigBuilder_.dispose(); - desiredMonitoringConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired monitoring configuration.
-     * 
- * - * .google.container.v1beta1.MonitoringConfig desired_monitoring_config = 65; - */ - public com.google.container.v1beta1.MonitoringConfig.Builder - getDesiredMonitoringConfigBuilder() { - bitField1_ |= 0x00000040; - onChanged(); - return getDesiredMonitoringConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired monitoring configuration.
-     * 
- * - * .google.container.v1beta1.MonitoringConfig desired_monitoring_config = 65; - */ - public com.google.container.v1beta1.MonitoringConfigOrBuilder - getDesiredMonitoringConfigOrBuilder() { - if (desiredMonitoringConfigBuilder_ != null) { - return desiredMonitoringConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredMonitoringConfig_ == null - ? com.google.container.v1beta1.MonitoringConfig.getDefaultInstance() - : desiredMonitoringConfig_; - } - } - /** - * - * - *
-     * The desired monitoring configuration.
-     * 
- * - * .google.container.v1beta1.MonitoringConfig desired_monitoring_config = 65; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MonitoringConfig, - com.google.container.v1beta1.MonitoringConfig.Builder, - com.google.container.v1beta1.MonitoringConfigOrBuilder> - getDesiredMonitoringConfigFieldBuilder() { - if (desiredMonitoringConfigBuilder_ == null) { - desiredMonitoringConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MonitoringConfig, - com.google.container.v1beta1.MonitoringConfig.Builder, - com.google.container.v1beta1.MonitoringConfigOrBuilder>( - getDesiredMonitoringConfig(), getParentForChildren(), isClean()); - desiredMonitoringConfig_ = null; - } - return desiredMonitoringConfigBuilder_; - } - - private com.google.container.v1beta1.IdentityServiceConfig desiredIdentityServiceConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.IdentityServiceConfig, - com.google.container.v1beta1.IdentityServiceConfig.Builder, - com.google.container.v1beta1.IdentityServiceConfigOrBuilder> - desiredIdentityServiceConfigBuilder_; - /** - * - * - *
-     * The desired Identity Service component configuration.
-     * 
- * - * .google.container.v1beta1.IdentityServiceConfig desired_identity_service_config = 66; - * - * - * @return Whether the desiredIdentityServiceConfig field is set. - */ - public boolean hasDesiredIdentityServiceConfig() { - return ((bitField1_ & 0x00000080) != 0); - } - /** - * - * - *
-     * The desired Identity Service component configuration.
-     * 
- * - * .google.container.v1beta1.IdentityServiceConfig desired_identity_service_config = 66; - * - * - * @return The desiredIdentityServiceConfig. - */ - public com.google.container.v1beta1.IdentityServiceConfig getDesiredIdentityServiceConfig() { - if (desiredIdentityServiceConfigBuilder_ == null) { - return desiredIdentityServiceConfig_ == null - ? com.google.container.v1beta1.IdentityServiceConfig.getDefaultInstance() - : desiredIdentityServiceConfig_; - } else { - return desiredIdentityServiceConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired Identity Service component configuration.
-     * 
- * - * .google.container.v1beta1.IdentityServiceConfig desired_identity_service_config = 66; - * - */ - public Builder setDesiredIdentityServiceConfig( - com.google.container.v1beta1.IdentityServiceConfig value) { - if (desiredIdentityServiceConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredIdentityServiceConfig_ = value; - } else { - desiredIdentityServiceConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired Identity Service component configuration.
-     * 
- * - * .google.container.v1beta1.IdentityServiceConfig desired_identity_service_config = 66; - * - */ - public Builder setDesiredIdentityServiceConfig( - com.google.container.v1beta1.IdentityServiceConfig.Builder builderForValue) { - if (desiredIdentityServiceConfigBuilder_ == null) { - desiredIdentityServiceConfig_ = builderForValue.build(); - } else { - desiredIdentityServiceConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired Identity Service component configuration.
-     * 
- * - * .google.container.v1beta1.IdentityServiceConfig desired_identity_service_config = 66; - * - */ - public Builder mergeDesiredIdentityServiceConfig( - com.google.container.v1beta1.IdentityServiceConfig value) { - if (desiredIdentityServiceConfigBuilder_ == null) { - if (((bitField1_ & 0x00000080) != 0) - && desiredIdentityServiceConfig_ != null - && desiredIdentityServiceConfig_ - != com.google.container.v1beta1.IdentityServiceConfig.getDefaultInstance()) { - getDesiredIdentityServiceConfigBuilder().mergeFrom(value); - } else { - desiredIdentityServiceConfig_ = value; - } - } else { - desiredIdentityServiceConfigBuilder_.mergeFrom(value); - } - if (desiredIdentityServiceConfig_ != null) { - bitField1_ |= 0x00000080; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired Identity Service component configuration.
-     * 
- * - * .google.container.v1beta1.IdentityServiceConfig desired_identity_service_config = 66; - * - */ - public Builder clearDesiredIdentityServiceConfig() { - bitField1_ = (bitField1_ & ~0x00000080); - desiredIdentityServiceConfig_ = null; - if (desiredIdentityServiceConfigBuilder_ != null) { - desiredIdentityServiceConfigBuilder_.dispose(); - desiredIdentityServiceConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired Identity Service component configuration.
-     * 
- * - * .google.container.v1beta1.IdentityServiceConfig desired_identity_service_config = 66; - * - */ - public com.google.container.v1beta1.IdentityServiceConfig.Builder - getDesiredIdentityServiceConfigBuilder() { - bitField1_ |= 0x00000080; - onChanged(); - return getDesiredIdentityServiceConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired Identity Service component configuration.
-     * 
- * - * .google.container.v1beta1.IdentityServiceConfig desired_identity_service_config = 66; - * - */ - public com.google.container.v1beta1.IdentityServiceConfigOrBuilder - getDesiredIdentityServiceConfigOrBuilder() { - if (desiredIdentityServiceConfigBuilder_ != null) { - return desiredIdentityServiceConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredIdentityServiceConfig_ == null - ? com.google.container.v1beta1.IdentityServiceConfig.getDefaultInstance() - : desiredIdentityServiceConfig_; - } - } - /** - * - * - *
-     * The desired Identity Service component configuration.
-     * 
- * - * .google.container.v1beta1.IdentityServiceConfig desired_identity_service_config = 66; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.IdentityServiceConfig, - com.google.container.v1beta1.IdentityServiceConfig.Builder, - com.google.container.v1beta1.IdentityServiceConfigOrBuilder> - getDesiredIdentityServiceConfigFieldBuilder() { - if (desiredIdentityServiceConfigBuilder_ == null) { - desiredIdentityServiceConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.IdentityServiceConfig, - com.google.container.v1beta1.IdentityServiceConfig.Builder, - com.google.container.v1beta1.IdentityServiceConfigOrBuilder>( - getDesiredIdentityServiceConfig(), getParentForChildren(), isClean()); - desiredIdentityServiceConfig_ = null; - } - return desiredIdentityServiceConfigBuilder_; - } - - private boolean desiredEnablePrivateEndpoint_; - /** - * - * - *
-     * Enable/Disable private endpoint for the cluster's master.
-     * 
- * - * optional bool desired_enable_private_endpoint = 71; - * - * @return Whether the desiredEnablePrivateEndpoint field is set. - */ - @java.lang.Override - public boolean hasDesiredEnablePrivateEndpoint() { - return ((bitField1_ & 0x00000100) != 0); - } - /** - * - * - *
-     * Enable/Disable private endpoint for the cluster's master.
-     * 
- * - * optional bool desired_enable_private_endpoint = 71; - * - * @return The desiredEnablePrivateEndpoint. - */ - @java.lang.Override - public boolean getDesiredEnablePrivateEndpoint() { - return desiredEnablePrivateEndpoint_; - } - /** - * - * - *
-     * Enable/Disable private endpoint for the cluster's master.
-     * 
- * - * optional bool desired_enable_private_endpoint = 71; - * - * @param value The desiredEnablePrivateEndpoint to set. - * @return This builder for chaining. - */ - public Builder setDesiredEnablePrivateEndpoint(boolean value) { - - desiredEnablePrivateEndpoint_ = value; - bitField1_ |= 0x00000100; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable/Disable private endpoint for the cluster's master.
-     * 
- * - * optional bool desired_enable_private_endpoint = 71; - * - * @return This builder for chaining. - */ - public Builder clearDesiredEnablePrivateEndpoint() { - bitField1_ = (bitField1_ & ~0x00000100); - desiredEnablePrivateEndpoint_ = false; - onChanged(); - return this; - } - - private com.google.container.v1beta1.NetworkTags desiredNodePoolAutoConfigNetworkTags_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NetworkTags, - com.google.container.v1beta1.NetworkTags.Builder, - com.google.container.v1beta1.NetworkTagsOrBuilder> - desiredNodePoolAutoConfigNetworkTagsBuilder_; - /** - * - * - *
-     * The desired network tags that apply to all auto-provisioned node pools
-     * in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * .google.container.v1beta1.NetworkTags desired_node_pool_auto_config_network_tags = 110; - * - * - * @return Whether the desiredNodePoolAutoConfigNetworkTags field is set. - */ - public boolean hasDesiredNodePoolAutoConfigNetworkTags() { - return ((bitField1_ & 0x00000200) != 0); - } - /** - * - * - *
-     * The desired network tags that apply to all auto-provisioned node pools
-     * in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * .google.container.v1beta1.NetworkTags desired_node_pool_auto_config_network_tags = 110; - * - * - * @return The desiredNodePoolAutoConfigNetworkTags. - */ - public com.google.container.v1beta1.NetworkTags getDesiredNodePoolAutoConfigNetworkTags() { - if (desiredNodePoolAutoConfigNetworkTagsBuilder_ == null) { - return desiredNodePoolAutoConfigNetworkTags_ == null - ? com.google.container.v1beta1.NetworkTags.getDefaultInstance() - : desiredNodePoolAutoConfigNetworkTags_; - } else { - return desiredNodePoolAutoConfigNetworkTagsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired network tags that apply to all auto-provisioned node pools
-     * in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * .google.container.v1beta1.NetworkTags desired_node_pool_auto_config_network_tags = 110; - * - */ - public Builder setDesiredNodePoolAutoConfigNetworkTags( - com.google.container.v1beta1.NetworkTags value) { - if (desiredNodePoolAutoConfigNetworkTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredNodePoolAutoConfigNetworkTags_ = value; - } else { - desiredNodePoolAutoConfigNetworkTagsBuilder_.setMessage(value); - } - bitField1_ |= 0x00000200; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired network tags that apply to all auto-provisioned node pools
-     * in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * .google.container.v1beta1.NetworkTags desired_node_pool_auto_config_network_tags = 110; - * - */ - public Builder setDesiredNodePoolAutoConfigNetworkTags( - com.google.container.v1beta1.NetworkTags.Builder builderForValue) { - if (desiredNodePoolAutoConfigNetworkTagsBuilder_ == null) { - desiredNodePoolAutoConfigNetworkTags_ = builderForValue.build(); - } else { - desiredNodePoolAutoConfigNetworkTagsBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000200; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired network tags that apply to all auto-provisioned node pools
-     * in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * .google.container.v1beta1.NetworkTags desired_node_pool_auto_config_network_tags = 110; - * - */ - public Builder mergeDesiredNodePoolAutoConfigNetworkTags( - com.google.container.v1beta1.NetworkTags value) { - if (desiredNodePoolAutoConfigNetworkTagsBuilder_ == null) { - if (((bitField1_ & 0x00000200) != 0) - && desiredNodePoolAutoConfigNetworkTags_ != null - && desiredNodePoolAutoConfigNetworkTags_ - != com.google.container.v1beta1.NetworkTags.getDefaultInstance()) { - getDesiredNodePoolAutoConfigNetworkTagsBuilder().mergeFrom(value); - } else { - desiredNodePoolAutoConfigNetworkTags_ = value; - } - } else { - desiredNodePoolAutoConfigNetworkTagsBuilder_.mergeFrom(value); - } - if (desiredNodePoolAutoConfigNetworkTags_ != null) { - bitField1_ |= 0x00000200; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired network tags that apply to all auto-provisioned node pools
-     * in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * .google.container.v1beta1.NetworkTags desired_node_pool_auto_config_network_tags = 110; - * - */ - public Builder clearDesiredNodePoolAutoConfigNetworkTags() { - bitField1_ = (bitField1_ & ~0x00000200); - desiredNodePoolAutoConfigNetworkTags_ = null; - if (desiredNodePoolAutoConfigNetworkTagsBuilder_ != null) { - desiredNodePoolAutoConfigNetworkTagsBuilder_.dispose(); - desiredNodePoolAutoConfigNetworkTagsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired network tags that apply to all auto-provisioned node pools
-     * in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * .google.container.v1beta1.NetworkTags desired_node_pool_auto_config_network_tags = 110; - * - */ - public com.google.container.v1beta1.NetworkTags.Builder - getDesiredNodePoolAutoConfigNetworkTagsBuilder() { - bitField1_ |= 0x00000200; - onChanged(); - return getDesiredNodePoolAutoConfigNetworkTagsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired network tags that apply to all auto-provisioned node pools
-     * in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * .google.container.v1beta1.NetworkTags desired_node_pool_auto_config_network_tags = 110; - * - */ - public com.google.container.v1beta1.NetworkTagsOrBuilder - getDesiredNodePoolAutoConfigNetworkTagsOrBuilder() { - if (desiredNodePoolAutoConfigNetworkTagsBuilder_ != null) { - return desiredNodePoolAutoConfigNetworkTagsBuilder_.getMessageOrBuilder(); - } else { - return desiredNodePoolAutoConfigNetworkTags_ == null - ? com.google.container.v1beta1.NetworkTags.getDefaultInstance() - : desiredNodePoolAutoConfigNetworkTags_; - } - } - /** - * - * - *
-     * The desired network tags that apply to all auto-provisioned node pools
-     * in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * .google.container.v1beta1.NetworkTags desired_node_pool_auto_config_network_tags = 110; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NetworkTags, - com.google.container.v1beta1.NetworkTags.Builder, - com.google.container.v1beta1.NetworkTagsOrBuilder> - getDesiredNodePoolAutoConfigNetworkTagsFieldBuilder() { - if (desiredNodePoolAutoConfigNetworkTagsBuilder_ == null) { - desiredNodePoolAutoConfigNetworkTagsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NetworkTags, - com.google.container.v1beta1.NetworkTags.Builder, - com.google.container.v1beta1.NetworkTagsOrBuilder>( - getDesiredNodePoolAutoConfigNetworkTags(), getParentForChildren(), isClean()); - desiredNodePoolAutoConfigNetworkTags_ = null; - } - return desiredNodePoolAutoConfigNetworkTagsBuilder_; - } - - private com.google.container.v1beta1.ProtectConfig desiredProtectConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ProtectConfig, - com.google.container.v1beta1.ProtectConfig.Builder, - com.google.container.v1beta1.ProtectConfigOrBuilder> - desiredProtectConfigBuilder_; - /** - * - * - *
-     * Deprecated: Use DesiredSecurityPostureConfig instead.
-     * Enable/Disable Protect API features for the cluster.
-     * 
- * - * - * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112 [deprecated = true]; - * - * - * @deprecated google.container.v1beta1.ClusterUpdate.desired_protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2606 - * @return Whether the desiredProtectConfig field is set. - */ - @java.lang.Deprecated - public boolean hasDesiredProtectConfig() { - return ((bitField1_ & 0x00000400) != 0); - } - /** - * - * - *
-     * Deprecated: Use DesiredSecurityPostureConfig instead.
-     * Enable/Disable Protect API features for the cluster.
-     * 
- * - * - * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112 [deprecated = true]; - * - * - * @deprecated google.container.v1beta1.ClusterUpdate.desired_protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2606 - * @return The desiredProtectConfig. - */ - @java.lang.Deprecated - public com.google.container.v1beta1.ProtectConfig getDesiredProtectConfig() { - if (desiredProtectConfigBuilder_ == null) { - return desiredProtectConfig_ == null - ? com.google.container.v1beta1.ProtectConfig.getDefaultInstance() - : desiredProtectConfig_; - } else { - return desiredProtectConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Deprecated: Use DesiredSecurityPostureConfig instead.
-     * Enable/Disable Protect API features for the cluster.
-     * 
- * - * - * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder setDesiredProtectConfig(com.google.container.v1beta1.ProtectConfig value) { - if (desiredProtectConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredProtectConfig_ = value; - } else { - desiredProtectConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x00000400; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated: Use DesiredSecurityPostureConfig instead.
-     * Enable/Disable Protect API features for the cluster.
-     * 
- * - * - * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder setDesiredProtectConfig( - com.google.container.v1beta1.ProtectConfig.Builder builderForValue) { - if (desiredProtectConfigBuilder_ == null) { - desiredProtectConfig_ = builderForValue.build(); - } else { - desiredProtectConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000400; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated: Use DesiredSecurityPostureConfig instead.
-     * Enable/Disable Protect API features for the cluster.
-     * 
- * - * - * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder mergeDesiredProtectConfig(com.google.container.v1beta1.ProtectConfig value) { - if (desiredProtectConfigBuilder_ == null) { - if (((bitField1_ & 0x00000400) != 0) - && desiredProtectConfig_ != null - && desiredProtectConfig_ - != com.google.container.v1beta1.ProtectConfig.getDefaultInstance()) { - getDesiredProtectConfigBuilder().mergeFrom(value); - } else { - desiredProtectConfig_ = value; - } - } else { - desiredProtectConfigBuilder_.mergeFrom(value); - } - if (desiredProtectConfig_ != null) { - bitField1_ |= 0x00000400; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Deprecated: Use DesiredSecurityPostureConfig instead.
-     * Enable/Disable Protect API features for the cluster.
-     * 
- * - * - * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder clearDesiredProtectConfig() { - bitField1_ = (bitField1_ & ~0x00000400); - desiredProtectConfig_ = null; - if (desiredProtectConfigBuilder_ != null) { - desiredProtectConfigBuilder_.dispose(); - desiredProtectConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated: Use DesiredSecurityPostureConfig instead.
-     * Enable/Disable Protect API features for the cluster.
-     * 
- * - * - * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112 [deprecated = true]; - * - */ - @java.lang.Deprecated - public com.google.container.v1beta1.ProtectConfig.Builder getDesiredProtectConfigBuilder() { - bitField1_ |= 0x00000400; - onChanged(); - return getDesiredProtectConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Deprecated: Use DesiredSecurityPostureConfig instead.
-     * Enable/Disable Protect API features for the cluster.
-     * 
- * - * - * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112 [deprecated = true]; - * - */ - @java.lang.Deprecated - public com.google.container.v1beta1.ProtectConfigOrBuilder getDesiredProtectConfigOrBuilder() { - if (desiredProtectConfigBuilder_ != null) { - return desiredProtectConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredProtectConfig_ == null - ? com.google.container.v1beta1.ProtectConfig.getDefaultInstance() - : desiredProtectConfig_; - } - } - /** - * - * - *
-     * Deprecated: Use DesiredSecurityPostureConfig instead.
-     * Enable/Disable Protect API features for the cluster.
-     * 
- * - * - * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112 [deprecated = true]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ProtectConfig, - com.google.container.v1beta1.ProtectConfig.Builder, - com.google.container.v1beta1.ProtectConfigOrBuilder> - getDesiredProtectConfigFieldBuilder() { - if (desiredProtectConfigBuilder_ == null) { - desiredProtectConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ProtectConfig, - com.google.container.v1beta1.ProtectConfig.Builder, - com.google.container.v1beta1.ProtectConfigOrBuilder>( - getDesiredProtectConfig(), getParentForChildren(), isClean()); - desiredProtectConfig_ = null; - } - return desiredProtectConfigBuilder_; - } - - private com.google.container.v1beta1.GatewayAPIConfig desiredGatewayApiConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GatewayAPIConfig, - com.google.container.v1beta1.GatewayAPIConfig.Builder, - com.google.container.v1beta1.GatewayAPIConfigOrBuilder> - desiredGatewayApiConfigBuilder_; - /** - * - * - *
-     * The desired config of Gateway API on this cluster.
-     * 
- * - * .google.container.v1beta1.GatewayAPIConfig desired_gateway_api_config = 114; - * - * @return Whether the desiredGatewayApiConfig field is set. - */ - public boolean hasDesiredGatewayApiConfig() { - return ((bitField1_ & 0x00000800) != 0); - } - /** - * - * - *
-     * The desired config of Gateway API on this cluster.
-     * 
- * - * .google.container.v1beta1.GatewayAPIConfig desired_gateway_api_config = 114; - * - * @return The desiredGatewayApiConfig. - */ - public com.google.container.v1beta1.GatewayAPIConfig getDesiredGatewayApiConfig() { - if (desiredGatewayApiConfigBuilder_ == null) { - return desiredGatewayApiConfig_ == null - ? com.google.container.v1beta1.GatewayAPIConfig.getDefaultInstance() - : desiredGatewayApiConfig_; - } else { - return desiredGatewayApiConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired config of Gateway API on this cluster.
-     * 
- * - * .google.container.v1beta1.GatewayAPIConfig desired_gateway_api_config = 114; - */ - public Builder setDesiredGatewayApiConfig(com.google.container.v1beta1.GatewayAPIConfig value) { - if (desiredGatewayApiConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredGatewayApiConfig_ = value; - } else { - desiredGatewayApiConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x00000800; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired config of Gateway API on this cluster.
-     * 
- * - * .google.container.v1beta1.GatewayAPIConfig desired_gateway_api_config = 114; - */ - public Builder setDesiredGatewayApiConfig( - com.google.container.v1beta1.GatewayAPIConfig.Builder builderForValue) { - if (desiredGatewayApiConfigBuilder_ == null) { - desiredGatewayApiConfig_ = builderForValue.build(); - } else { - desiredGatewayApiConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000800; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired config of Gateway API on this cluster.
-     * 
- * - * .google.container.v1beta1.GatewayAPIConfig desired_gateway_api_config = 114; - */ - public Builder mergeDesiredGatewayApiConfig( - com.google.container.v1beta1.GatewayAPIConfig value) { - if (desiredGatewayApiConfigBuilder_ == null) { - if (((bitField1_ & 0x00000800) != 0) - && desiredGatewayApiConfig_ != null - && desiredGatewayApiConfig_ - != com.google.container.v1beta1.GatewayAPIConfig.getDefaultInstance()) { - getDesiredGatewayApiConfigBuilder().mergeFrom(value); - } else { - desiredGatewayApiConfig_ = value; - } - } else { - desiredGatewayApiConfigBuilder_.mergeFrom(value); - } - if (desiredGatewayApiConfig_ != null) { - bitField1_ |= 0x00000800; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired config of Gateway API on this cluster.
-     * 
- * - * .google.container.v1beta1.GatewayAPIConfig desired_gateway_api_config = 114; - */ - public Builder clearDesiredGatewayApiConfig() { - bitField1_ = (bitField1_ & ~0x00000800); - desiredGatewayApiConfig_ = null; - if (desiredGatewayApiConfigBuilder_ != null) { - desiredGatewayApiConfigBuilder_.dispose(); - desiredGatewayApiConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired config of Gateway API on this cluster.
-     * 
- * - * .google.container.v1beta1.GatewayAPIConfig desired_gateway_api_config = 114; - */ - public com.google.container.v1beta1.GatewayAPIConfig.Builder - getDesiredGatewayApiConfigBuilder() { - bitField1_ |= 0x00000800; - onChanged(); - return getDesiredGatewayApiConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired config of Gateway API on this cluster.
-     * 
- * - * .google.container.v1beta1.GatewayAPIConfig desired_gateway_api_config = 114; - */ - public com.google.container.v1beta1.GatewayAPIConfigOrBuilder - getDesiredGatewayApiConfigOrBuilder() { - if (desiredGatewayApiConfigBuilder_ != null) { - return desiredGatewayApiConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredGatewayApiConfig_ == null - ? com.google.container.v1beta1.GatewayAPIConfig.getDefaultInstance() - : desiredGatewayApiConfig_; - } - } - /** - * - * - *
-     * The desired config of Gateway API on this cluster.
-     * 
- * - * .google.container.v1beta1.GatewayAPIConfig desired_gateway_api_config = 114; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GatewayAPIConfig, - com.google.container.v1beta1.GatewayAPIConfig.Builder, - com.google.container.v1beta1.GatewayAPIConfigOrBuilder> - getDesiredGatewayApiConfigFieldBuilder() { - if (desiredGatewayApiConfigBuilder_ == null) { - desiredGatewayApiConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GatewayAPIConfig, - com.google.container.v1beta1.GatewayAPIConfig.Builder, - com.google.container.v1beta1.GatewayAPIConfigOrBuilder>( - getDesiredGatewayApiConfig(), getParentForChildren(), isClean()); - desiredGatewayApiConfig_ = null; - } - return desiredGatewayApiConfigBuilder_; - } - - private java.lang.Object etag_ = ""; - /** - * - * - *
-     * The current etag of the cluster.
-     * If an etag is provided and does not match the current etag of the cluster,
-     * update will be blocked and an ABORTED error will be returned.
-     * 
- * - * string etag = 115; - * - * @return The etag. - */ - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The current etag of the cluster.
-     * If an etag is provided and does not match the current etag of the cluster,
-     * update will be blocked and an ABORTED error will be returned.
-     * 
- * - * string etag = 115; - * - * @return The bytes for etag. - */ - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The current etag of the cluster.
-     * If an etag is provided and does not match the current etag of the cluster,
-     * update will be blocked and an ABORTED error will be returned.
-     * 
- * - * string etag = 115; - * - * @param value The etag to set. - * @return This builder for chaining. - */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - etag_ = value; - bitField1_ |= 0x00001000; - onChanged(); - return this; - } - /** - * - * - *
-     * The current etag of the cluster.
-     * If an etag is provided and does not match the current etag of the cluster,
-     * update will be blocked and an ABORTED error will be returned.
-     * 
- * - * string etag = 115; - * - * @return This builder for chaining. - */ - public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); - bitField1_ = (bitField1_ & ~0x00001000); - onChanged(); - return this; - } - /** - * - * - *
-     * The current etag of the cluster.
-     * If an etag is provided and does not match the current etag of the cluster,
-     * update will be blocked and an ABORTED error will be returned.
-     * 
- * - * string etag = 115; - * - * @param value The bytes for etag to set. - * @return This builder for chaining. - */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - etag_ = value; - bitField1_ |= 0x00001000; - onChanged(); - return this; - } - - private com.google.container.v1beta1.NodePoolLoggingConfig desiredNodePoolLoggingConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePoolLoggingConfig, - com.google.container.v1beta1.NodePoolLoggingConfig.Builder, - com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder> - desiredNodePoolLoggingConfigBuilder_; - /** - * - * - *
-     * The desired node pool logging configuration defaults for the cluster.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; - * - * - * @return Whether the desiredNodePoolLoggingConfig field is set. - */ - public boolean hasDesiredNodePoolLoggingConfig() { - return ((bitField1_ & 0x00002000) != 0); - } - /** - * - * - *
-     * The desired node pool logging configuration defaults for the cluster.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; - * - * - * @return The desiredNodePoolLoggingConfig. - */ - public com.google.container.v1beta1.NodePoolLoggingConfig getDesiredNodePoolLoggingConfig() { - if (desiredNodePoolLoggingConfigBuilder_ == null) { - return desiredNodePoolLoggingConfig_ == null - ? com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance() - : desiredNodePoolLoggingConfig_; - } else { - return desiredNodePoolLoggingConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired node pool logging configuration defaults for the cluster.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; - * - */ - public Builder setDesiredNodePoolLoggingConfig( - com.google.container.v1beta1.NodePoolLoggingConfig value) { - if (desiredNodePoolLoggingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredNodePoolLoggingConfig_ = value; - } else { - desiredNodePoolLoggingConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x00002000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired node pool logging configuration defaults for the cluster.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; - * - */ - public Builder setDesiredNodePoolLoggingConfig( - com.google.container.v1beta1.NodePoolLoggingConfig.Builder builderForValue) { - if (desiredNodePoolLoggingConfigBuilder_ == null) { - desiredNodePoolLoggingConfig_ = builderForValue.build(); - } else { - desiredNodePoolLoggingConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00002000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired node pool logging configuration defaults for the cluster.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; - * - */ - public Builder mergeDesiredNodePoolLoggingConfig( - com.google.container.v1beta1.NodePoolLoggingConfig value) { - if (desiredNodePoolLoggingConfigBuilder_ == null) { - if (((bitField1_ & 0x00002000) != 0) - && desiredNodePoolLoggingConfig_ != null - && desiredNodePoolLoggingConfig_ - != com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance()) { - getDesiredNodePoolLoggingConfigBuilder().mergeFrom(value); - } else { - desiredNodePoolLoggingConfig_ = value; - } - } else { - desiredNodePoolLoggingConfigBuilder_.mergeFrom(value); - } - if (desiredNodePoolLoggingConfig_ != null) { - bitField1_ |= 0x00002000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired node pool logging configuration defaults for the cluster.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; - * - */ - public Builder clearDesiredNodePoolLoggingConfig() { - bitField1_ = (bitField1_ & ~0x00002000); - desiredNodePoolLoggingConfig_ = null; - if (desiredNodePoolLoggingConfigBuilder_ != null) { - desiredNodePoolLoggingConfigBuilder_.dispose(); - desiredNodePoolLoggingConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired node pool logging configuration defaults for the cluster.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; - * - */ - public com.google.container.v1beta1.NodePoolLoggingConfig.Builder - getDesiredNodePoolLoggingConfigBuilder() { - bitField1_ |= 0x00002000; - onChanged(); - return getDesiredNodePoolLoggingConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired node pool logging configuration defaults for the cluster.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; - * - */ - public com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder - getDesiredNodePoolLoggingConfigOrBuilder() { - if (desiredNodePoolLoggingConfigBuilder_ != null) { - return desiredNodePoolLoggingConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredNodePoolLoggingConfig_ == null - ? com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance() - : desiredNodePoolLoggingConfig_; - } - } - /** - * - * - *
-     * The desired node pool logging configuration defaults for the cluster.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePoolLoggingConfig, - com.google.container.v1beta1.NodePoolLoggingConfig.Builder, - com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder> - getDesiredNodePoolLoggingConfigFieldBuilder() { - if (desiredNodePoolLoggingConfigBuilder_ == null) { - desiredNodePoolLoggingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePoolLoggingConfig, - com.google.container.v1beta1.NodePoolLoggingConfig.Builder, - com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder>( - getDesiredNodePoolLoggingConfig(), getParentForChildren(), isClean()); - desiredNodePoolLoggingConfig_ = null; - } - return desiredNodePoolLoggingConfigBuilder_; - } - - private com.google.container.v1beta1.Fleet desiredFleet_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.Fleet, - com.google.container.v1beta1.Fleet.Builder, - com.google.container.v1beta1.FleetOrBuilder> - desiredFleetBuilder_; - /** - * - * - *
-     * The desired fleet configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.Fleet desired_fleet = 117; - * - * @return Whether the desiredFleet field is set. - */ - public boolean hasDesiredFleet() { - return ((bitField1_ & 0x00004000) != 0); - } - /** - * - * - *
-     * The desired fleet configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.Fleet desired_fleet = 117; - * - * @return The desiredFleet. - */ - public com.google.container.v1beta1.Fleet getDesiredFleet() { - if (desiredFleetBuilder_ == null) { - return desiredFleet_ == null - ? com.google.container.v1beta1.Fleet.getDefaultInstance() - : desiredFleet_; - } else { - return desiredFleetBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired fleet configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.Fleet desired_fleet = 117; - */ - public Builder setDesiredFleet(com.google.container.v1beta1.Fleet value) { - if (desiredFleetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredFleet_ = value; - } else { - desiredFleetBuilder_.setMessage(value); - } - bitField1_ |= 0x00004000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired fleet configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.Fleet desired_fleet = 117; - */ - public Builder setDesiredFleet(com.google.container.v1beta1.Fleet.Builder builderForValue) { - if (desiredFleetBuilder_ == null) { - desiredFleet_ = builderForValue.build(); - } else { - desiredFleetBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00004000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired fleet configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.Fleet desired_fleet = 117; - */ - public Builder mergeDesiredFleet(com.google.container.v1beta1.Fleet value) { - if (desiredFleetBuilder_ == null) { - if (((bitField1_ & 0x00004000) != 0) - && desiredFleet_ != null - && desiredFleet_ != com.google.container.v1beta1.Fleet.getDefaultInstance()) { - getDesiredFleetBuilder().mergeFrom(value); - } else { - desiredFleet_ = value; - } - } else { - desiredFleetBuilder_.mergeFrom(value); - } - if (desiredFleet_ != null) { - bitField1_ |= 0x00004000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired fleet configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.Fleet desired_fleet = 117; - */ - public Builder clearDesiredFleet() { - bitField1_ = (bitField1_ & ~0x00004000); - desiredFleet_ = null; - if (desiredFleetBuilder_ != null) { - desiredFleetBuilder_.dispose(); - desiredFleetBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired fleet configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.Fleet desired_fleet = 117; - */ - public com.google.container.v1beta1.Fleet.Builder getDesiredFleetBuilder() { - bitField1_ |= 0x00004000; - onChanged(); - return getDesiredFleetFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired fleet configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.Fleet desired_fleet = 117; - */ - public com.google.container.v1beta1.FleetOrBuilder getDesiredFleetOrBuilder() { - if (desiredFleetBuilder_ != null) { - return desiredFleetBuilder_.getMessageOrBuilder(); - } else { - return desiredFleet_ == null - ? com.google.container.v1beta1.Fleet.getDefaultInstance() - : desiredFleet_; - } - } - /** - * - * - *
-     * The desired fleet configuration for the cluster.
-     * 
- * - * .google.container.v1beta1.Fleet desired_fleet = 117; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.Fleet, - com.google.container.v1beta1.Fleet.Builder, - com.google.container.v1beta1.FleetOrBuilder> - getDesiredFleetFieldBuilder() { - if (desiredFleetBuilder_ == null) { - desiredFleetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.Fleet, - com.google.container.v1beta1.Fleet.Builder, - com.google.container.v1beta1.FleetOrBuilder>( - getDesiredFleet(), getParentForChildren(), isClean()); - desiredFleet_ = null; - } - return desiredFleetBuilder_; - } - - private int desiredStackType_ = 0; - /** - * - * - *
-     * The desired stack type of the cluster.
-     * If a stack type is provided and does not match the current stack type of
-     * the cluster, update will attempt to change the stack type to the new type.
-     * 
- * - * .google.container.v1beta1.StackType desired_stack_type = 119; - * - * @return The enum numeric value on the wire for desiredStackType. - */ - @java.lang.Override - public int getDesiredStackTypeValue() { - return desiredStackType_; - } - /** - * - * - *
-     * The desired stack type of the cluster.
-     * If a stack type is provided and does not match the current stack type of
-     * the cluster, update will attempt to change the stack type to the new type.
-     * 
- * - * .google.container.v1beta1.StackType desired_stack_type = 119; - * - * @param value The enum numeric value on the wire for desiredStackType to set. - * @return This builder for chaining. - */ - public Builder setDesiredStackTypeValue(int value) { - desiredStackType_ = value; - bitField1_ |= 0x00008000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired stack type of the cluster.
-     * If a stack type is provided and does not match the current stack type of
-     * the cluster, update will attempt to change the stack type to the new type.
-     * 
- * - * .google.container.v1beta1.StackType desired_stack_type = 119; - * - * @return The desiredStackType. - */ - @java.lang.Override - public com.google.container.v1beta1.StackType getDesiredStackType() { - com.google.container.v1beta1.StackType result = - com.google.container.v1beta1.StackType.forNumber(desiredStackType_); - return result == null ? com.google.container.v1beta1.StackType.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The desired stack type of the cluster.
-     * If a stack type is provided and does not match the current stack type of
-     * the cluster, update will attempt to change the stack type to the new type.
-     * 
- * - * .google.container.v1beta1.StackType desired_stack_type = 119; - * - * @param value The desiredStackType to set. - * @return This builder for chaining. - */ - public Builder setDesiredStackType(com.google.container.v1beta1.StackType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField1_ |= 0x00008000; - desiredStackType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The desired stack type of the cluster.
-     * If a stack type is provided and does not match the current stack type of
-     * the cluster, update will attempt to change the stack type to the new type.
-     * 
- * - * .google.container.v1beta1.StackType desired_stack_type = 119; - * - * @return This builder for chaining. - */ - public Builder clearDesiredStackType() { - bitField1_ = (bitField1_ & ~0x00008000); - desiredStackType_ = 0; - onChanged(); - return this; - } - - private com.google.container.v1beta1.AdditionalPodRangesConfig additionalPodRangesConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AdditionalPodRangesConfig, - com.google.container.v1beta1.AdditionalPodRangesConfig.Builder, - com.google.container.v1beta1.AdditionalPodRangesConfigOrBuilder> - additionalPodRangesConfigBuilder_; - /** - * - * - *
-     * The additional pod ranges to be added to the cluster. These pod ranges
-     * can be used by node pools to allocate pod IPs.
-     * 
- * - * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; - * - * - * @return Whether the additionalPodRangesConfig field is set. - */ - public boolean hasAdditionalPodRangesConfig() { - return ((bitField1_ & 0x00010000) != 0); - } - /** - * - * - *
-     * The additional pod ranges to be added to the cluster. These pod ranges
-     * can be used by node pools to allocate pod IPs.
-     * 
- * - * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; - * - * - * @return The additionalPodRangesConfig. - */ - public com.google.container.v1beta1.AdditionalPodRangesConfig getAdditionalPodRangesConfig() { - if (additionalPodRangesConfigBuilder_ == null) { - return additionalPodRangesConfig_ == null - ? com.google.container.v1beta1.AdditionalPodRangesConfig.getDefaultInstance() - : additionalPodRangesConfig_; - } else { - return additionalPodRangesConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The additional pod ranges to be added to the cluster. These pod ranges
-     * can be used by node pools to allocate pod IPs.
-     * 
- * - * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; - * - */ - public Builder setAdditionalPodRangesConfig( - com.google.container.v1beta1.AdditionalPodRangesConfig value) { - if (additionalPodRangesConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - additionalPodRangesConfig_ = value; - } else { - additionalPodRangesConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x00010000; - onChanged(); - return this; - } - /** - * - * - *
-     * The additional pod ranges to be added to the cluster. These pod ranges
-     * can be used by node pools to allocate pod IPs.
-     * 
- * - * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; - * - */ - public Builder setAdditionalPodRangesConfig( - com.google.container.v1beta1.AdditionalPodRangesConfig.Builder builderForValue) { - if (additionalPodRangesConfigBuilder_ == null) { - additionalPodRangesConfig_ = builderForValue.build(); - } else { - additionalPodRangesConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00010000; - onChanged(); - return this; - } - /** - * - * - *
-     * The additional pod ranges to be added to the cluster. These pod ranges
-     * can be used by node pools to allocate pod IPs.
-     * 
- * - * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; - * - */ - public Builder mergeAdditionalPodRangesConfig( - com.google.container.v1beta1.AdditionalPodRangesConfig value) { - if (additionalPodRangesConfigBuilder_ == null) { - if (((bitField1_ & 0x00010000) != 0) - && additionalPodRangesConfig_ != null - && additionalPodRangesConfig_ - != com.google.container.v1beta1.AdditionalPodRangesConfig.getDefaultInstance()) { - getAdditionalPodRangesConfigBuilder().mergeFrom(value); - } else { - additionalPodRangesConfig_ = value; - } - } else { - additionalPodRangesConfigBuilder_.mergeFrom(value); - } - if (additionalPodRangesConfig_ != null) { - bitField1_ |= 0x00010000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The additional pod ranges to be added to the cluster. These pod ranges
-     * can be used by node pools to allocate pod IPs.
-     * 
- * - * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; - * - */ - public Builder clearAdditionalPodRangesConfig() { - bitField1_ = (bitField1_ & ~0x00010000); - additionalPodRangesConfig_ = null; - if (additionalPodRangesConfigBuilder_ != null) { - additionalPodRangesConfigBuilder_.dispose(); - additionalPodRangesConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The additional pod ranges to be added to the cluster. These pod ranges
-     * can be used by node pools to allocate pod IPs.
-     * 
- * - * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; - * - */ - public com.google.container.v1beta1.AdditionalPodRangesConfig.Builder - getAdditionalPodRangesConfigBuilder() { - bitField1_ |= 0x00010000; - onChanged(); - return getAdditionalPodRangesConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The additional pod ranges to be added to the cluster. These pod ranges
-     * can be used by node pools to allocate pod IPs.
-     * 
- * - * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; - * - */ - public com.google.container.v1beta1.AdditionalPodRangesConfigOrBuilder - getAdditionalPodRangesConfigOrBuilder() { - if (additionalPodRangesConfigBuilder_ != null) { - return additionalPodRangesConfigBuilder_.getMessageOrBuilder(); - } else { - return additionalPodRangesConfig_ == null - ? com.google.container.v1beta1.AdditionalPodRangesConfig.getDefaultInstance() - : additionalPodRangesConfig_; - } - } - /** - * - * - *
-     * The additional pod ranges to be added to the cluster. These pod ranges
-     * can be used by node pools to allocate pod IPs.
-     * 
- * - * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AdditionalPodRangesConfig, - com.google.container.v1beta1.AdditionalPodRangesConfig.Builder, - com.google.container.v1beta1.AdditionalPodRangesConfigOrBuilder> - getAdditionalPodRangesConfigFieldBuilder() { - if (additionalPodRangesConfigBuilder_ == null) { - additionalPodRangesConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AdditionalPodRangesConfig, - com.google.container.v1beta1.AdditionalPodRangesConfig.Builder, - com.google.container.v1beta1.AdditionalPodRangesConfigOrBuilder>( - getAdditionalPodRangesConfig(), getParentForChildren(), isClean()); - additionalPodRangesConfig_ = null; - } - return additionalPodRangesConfigBuilder_; - } - - private com.google.container.v1beta1.AdditionalPodRangesConfig - removedAdditionalPodRangesConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AdditionalPodRangesConfig, - com.google.container.v1beta1.AdditionalPodRangesConfig.Builder, - com.google.container.v1beta1.AdditionalPodRangesConfigOrBuilder> - removedAdditionalPodRangesConfigBuilder_; - /** - * - * - *
-     * The additional pod ranges that are to be removed from the cluster.
-     * The pod ranges specified here must have been specified earlier in the
-     * 'additional_pod_ranges_config' argument.
-     * 
- * - * - * .google.container.v1beta1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; - * - * - * @return Whether the removedAdditionalPodRangesConfig field is set. - */ - public boolean hasRemovedAdditionalPodRangesConfig() { - return ((bitField1_ & 0x00020000) != 0); - } - /** - * - * - *
-     * The additional pod ranges that are to be removed from the cluster.
-     * The pod ranges specified here must have been specified earlier in the
-     * 'additional_pod_ranges_config' argument.
-     * 
- * - * - * .google.container.v1beta1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; - * - * - * @return The removedAdditionalPodRangesConfig. - */ - public com.google.container.v1beta1.AdditionalPodRangesConfig - getRemovedAdditionalPodRangesConfig() { - if (removedAdditionalPodRangesConfigBuilder_ == null) { - return removedAdditionalPodRangesConfig_ == null - ? com.google.container.v1beta1.AdditionalPodRangesConfig.getDefaultInstance() - : removedAdditionalPodRangesConfig_; - } else { - return removedAdditionalPodRangesConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The additional pod ranges that are to be removed from the cluster.
-     * The pod ranges specified here must have been specified earlier in the
-     * 'additional_pod_ranges_config' argument.
-     * 
- * - * - * .google.container.v1beta1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; - * - */ - public Builder setRemovedAdditionalPodRangesConfig( - com.google.container.v1beta1.AdditionalPodRangesConfig value) { - if (removedAdditionalPodRangesConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - removedAdditionalPodRangesConfig_ = value; - } else { - removedAdditionalPodRangesConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x00020000; - onChanged(); - return this; - } - /** - * - * - *
-     * The additional pod ranges that are to be removed from the cluster.
-     * The pod ranges specified here must have been specified earlier in the
-     * 'additional_pod_ranges_config' argument.
-     * 
- * - * - * .google.container.v1beta1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; - * - */ - public Builder setRemovedAdditionalPodRangesConfig( - com.google.container.v1beta1.AdditionalPodRangesConfig.Builder builderForValue) { - if (removedAdditionalPodRangesConfigBuilder_ == null) { - removedAdditionalPodRangesConfig_ = builderForValue.build(); - } else { - removedAdditionalPodRangesConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00020000; - onChanged(); - return this; - } - /** - * - * - *
-     * The additional pod ranges that are to be removed from the cluster.
-     * The pod ranges specified here must have been specified earlier in the
-     * 'additional_pod_ranges_config' argument.
-     * 
- * - * - * .google.container.v1beta1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; - * - */ - public Builder mergeRemovedAdditionalPodRangesConfig( - com.google.container.v1beta1.AdditionalPodRangesConfig value) { - if (removedAdditionalPodRangesConfigBuilder_ == null) { - if (((bitField1_ & 0x00020000) != 0) - && removedAdditionalPodRangesConfig_ != null - && removedAdditionalPodRangesConfig_ - != com.google.container.v1beta1.AdditionalPodRangesConfig.getDefaultInstance()) { - getRemovedAdditionalPodRangesConfigBuilder().mergeFrom(value); - } else { - removedAdditionalPodRangesConfig_ = value; - } - } else { - removedAdditionalPodRangesConfigBuilder_.mergeFrom(value); - } - if (removedAdditionalPodRangesConfig_ != null) { - bitField1_ |= 0x00020000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The additional pod ranges that are to be removed from the cluster.
-     * The pod ranges specified here must have been specified earlier in the
-     * 'additional_pod_ranges_config' argument.
-     * 
- * - * - * .google.container.v1beta1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; - * - */ - public Builder clearRemovedAdditionalPodRangesConfig() { - bitField1_ = (bitField1_ & ~0x00020000); - removedAdditionalPodRangesConfig_ = null; - if (removedAdditionalPodRangesConfigBuilder_ != null) { - removedAdditionalPodRangesConfigBuilder_.dispose(); - removedAdditionalPodRangesConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The additional pod ranges that are to be removed from the cluster.
-     * The pod ranges specified here must have been specified earlier in the
-     * 'additional_pod_ranges_config' argument.
-     * 
- * - * - * .google.container.v1beta1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; - * - */ - public com.google.container.v1beta1.AdditionalPodRangesConfig.Builder - getRemovedAdditionalPodRangesConfigBuilder() { - bitField1_ |= 0x00020000; - onChanged(); - return getRemovedAdditionalPodRangesConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The additional pod ranges that are to be removed from the cluster.
-     * The pod ranges specified here must have been specified earlier in the
-     * 'additional_pod_ranges_config' argument.
-     * 
- * - * - * .google.container.v1beta1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; - * - */ - public com.google.container.v1beta1.AdditionalPodRangesConfigOrBuilder - getRemovedAdditionalPodRangesConfigOrBuilder() { - if (removedAdditionalPodRangesConfigBuilder_ != null) { - return removedAdditionalPodRangesConfigBuilder_.getMessageOrBuilder(); - } else { - return removedAdditionalPodRangesConfig_ == null - ? com.google.container.v1beta1.AdditionalPodRangesConfig.getDefaultInstance() - : removedAdditionalPodRangesConfig_; - } - } - /** - * - * - *
-     * The additional pod ranges that are to be removed from the cluster.
-     * The pod ranges specified here must have been specified earlier in the
-     * 'additional_pod_ranges_config' argument.
-     * 
- * - * - * .google.container.v1beta1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AdditionalPodRangesConfig, - com.google.container.v1beta1.AdditionalPodRangesConfig.Builder, - com.google.container.v1beta1.AdditionalPodRangesConfigOrBuilder> - getRemovedAdditionalPodRangesConfigFieldBuilder() { - if (removedAdditionalPodRangesConfigBuilder_ == null) { - removedAdditionalPodRangesConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AdditionalPodRangesConfig, - com.google.container.v1beta1.AdditionalPodRangesConfig.Builder, - com.google.container.v1beta1.AdditionalPodRangesConfigOrBuilder>( - getRemovedAdditionalPodRangesConfig(), getParentForChildren(), isClean()); - removedAdditionalPodRangesConfig_ = null; - } - return removedAdditionalPodRangesConfigBuilder_; - } - - private com.google.container.v1beta1.K8sBetaAPIConfig enableK8SBetaApis_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.K8sBetaAPIConfig, - com.google.container.v1beta1.K8sBetaAPIConfig.Builder, - com.google.container.v1beta1.K8sBetaAPIConfigOrBuilder> - enableK8SBetaApisBuilder_; - /** - * - * - *
-     * Kubernetes open source beta apis enabled on the cluster. Only beta apis
-     * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; - * - * @return Whether the enableK8sBetaApis field is set. - */ - public boolean hasEnableK8SBetaApis() { - return ((bitField1_ & 0x00040000) != 0); - } - /** - * - * - *
-     * Kubernetes open source beta apis enabled on the cluster. Only beta apis
-     * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; - * - * @return The enableK8sBetaApis. - */ - public com.google.container.v1beta1.K8sBetaAPIConfig getEnableK8SBetaApis() { - if (enableK8SBetaApisBuilder_ == null) { - return enableK8SBetaApis_ == null - ? com.google.container.v1beta1.K8sBetaAPIConfig.getDefaultInstance() - : enableK8SBetaApis_; - } else { - return enableK8SBetaApisBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Kubernetes open source beta apis enabled on the cluster. Only beta apis
-     * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; - */ - public Builder setEnableK8SBetaApis(com.google.container.v1beta1.K8sBetaAPIConfig value) { - if (enableK8SBetaApisBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - enableK8SBetaApis_ = value; - } else { - enableK8SBetaApisBuilder_.setMessage(value); - } - bitField1_ |= 0x00040000; - onChanged(); - return this; - } - /** - * - * - *
-     * Kubernetes open source beta apis enabled on the cluster. Only beta apis
-     * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; - */ - public Builder setEnableK8SBetaApis( - com.google.container.v1beta1.K8sBetaAPIConfig.Builder builderForValue) { - if (enableK8SBetaApisBuilder_ == null) { - enableK8SBetaApis_ = builderForValue.build(); - } else { - enableK8SBetaApisBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00040000; - onChanged(); - return this; - } - /** - * - * - *
-     * Kubernetes open source beta apis enabled on the cluster. Only beta apis
-     * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; - */ - public Builder mergeEnableK8SBetaApis(com.google.container.v1beta1.K8sBetaAPIConfig value) { - if (enableK8SBetaApisBuilder_ == null) { - if (((bitField1_ & 0x00040000) != 0) - && enableK8SBetaApis_ != null - && enableK8SBetaApis_ - != com.google.container.v1beta1.K8sBetaAPIConfig.getDefaultInstance()) { - getEnableK8SBetaApisBuilder().mergeFrom(value); - } else { - enableK8SBetaApis_ = value; - } - } else { - enableK8SBetaApisBuilder_.mergeFrom(value); - } - if (enableK8SBetaApis_ != null) { - bitField1_ |= 0x00040000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Kubernetes open source beta apis enabled on the cluster. Only beta apis
-     * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; - */ - public Builder clearEnableK8SBetaApis() { - bitField1_ = (bitField1_ & ~0x00040000); - enableK8SBetaApis_ = null; - if (enableK8SBetaApisBuilder_ != null) { - enableK8SBetaApisBuilder_.dispose(); - enableK8SBetaApisBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Kubernetes open source beta apis enabled on the cluster. Only beta apis
-     * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; - */ - public com.google.container.v1beta1.K8sBetaAPIConfig.Builder getEnableK8SBetaApisBuilder() { - bitField1_ |= 0x00040000; - onChanged(); - return getEnableK8SBetaApisFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Kubernetes open source beta apis enabled on the cluster. Only beta apis
-     * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; - */ - public com.google.container.v1beta1.K8sBetaAPIConfigOrBuilder getEnableK8SBetaApisOrBuilder() { - if (enableK8SBetaApisBuilder_ != null) { - return enableK8SBetaApisBuilder_.getMessageOrBuilder(); - } else { - return enableK8SBetaApis_ == null - ? com.google.container.v1beta1.K8sBetaAPIConfig.getDefaultInstance() - : enableK8SBetaApis_; - } - } - /** - * - * - *
-     * Kubernetes open source beta apis enabled on the cluster. Only beta apis
-     * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.K8sBetaAPIConfig, - com.google.container.v1beta1.K8sBetaAPIConfig.Builder, - com.google.container.v1beta1.K8sBetaAPIConfigOrBuilder> - getEnableK8SBetaApisFieldBuilder() { - if (enableK8SBetaApisBuilder_ == null) { - enableK8SBetaApisBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.K8sBetaAPIConfig, - com.google.container.v1beta1.K8sBetaAPIConfig.Builder, - com.google.container.v1beta1.K8sBetaAPIConfigOrBuilder>( - getEnableK8SBetaApis(), getParentForChildren(), isClean()); - enableK8SBetaApis_ = null; - } - return enableK8SBetaApisBuilder_; - } - - private com.google.container.v1beta1.SecurityPostureConfig desiredSecurityPostureConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.SecurityPostureConfig, - com.google.container.v1beta1.SecurityPostureConfig.Builder, - com.google.container.v1beta1.SecurityPostureConfigOrBuilder> - desiredSecurityPostureConfigBuilder_; - /** - * - * - *
-     * Enable/Disable Security Posture API features for the cluster.
-     * 
- * - * .google.container.v1beta1.SecurityPostureConfig desired_security_posture_config = 124; - * - * - * @return Whether the desiredSecurityPostureConfig field is set. - */ - public boolean hasDesiredSecurityPostureConfig() { - return ((bitField1_ & 0x00080000) != 0); - } - /** - * - * - *
-     * Enable/Disable Security Posture API features for the cluster.
-     * 
- * - * .google.container.v1beta1.SecurityPostureConfig desired_security_posture_config = 124; - * - * - * @return The desiredSecurityPostureConfig. - */ - public com.google.container.v1beta1.SecurityPostureConfig getDesiredSecurityPostureConfig() { - if (desiredSecurityPostureConfigBuilder_ == null) { - return desiredSecurityPostureConfig_ == null - ? com.google.container.v1beta1.SecurityPostureConfig.getDefaultInstance() - : desiredSecurityPostureConfig_; - } else { - return desiredSecurityPostureConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Enable/Disable Security Posture API features for the cluster.
-     * 
- * - * .google.container.v1beta1.SecurityPostureConfig desired_security_posture_config = 124; - * - */ - public Builder setDesiredSecurityPostureConfig( - com.google.container.v1beta1.SecurityPostureConfig value) { - if (desiredSecurityPostureConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredSecurityPostureConfig_ = value; - } else { - desiredSecurityPostureConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x00080000; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable/Disable Security Posture API features for the cluster.
-     * 
- * - * .google.container.v1beta1.SecurityPostureConfig desired_security_posture_config = 124; - * - */ - public Builder setDesiredSecurityPostureConfig( - com.google.container.v1beta1.SecurityPostureConfig.Builder builderForValue) { - if (desiredSecurityPostureConfigBuilder_ == null) { - desiredSecurityPostureConfig_ = builderForValue.build(); - } else { - desiredSecurityPostureConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00080000; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable/Disable Security Posture API features for the cluster.
-     * 
- * - * .google.container.v1beta1.SecurityPostureConfig desired_security_posture_config = 124; - * - */ - public Builder mergeDesiredSecurityPostureConfig( - com.google.container.v1beta1.SecurityPostureConfig value) { - if (desiredSecurityPostureConfigBuilder_ == null) { - if (((bitField1_ & 0x00080000) != 0) - && desiredSecurityPostureConfig_ != null - && desiredSecurityPostureConfig_ - != com.google.container.v1beta1.SecurityPostureConfig.getDefaultInstance()) { - getDesiredSecurityPostureConfigBuilder().mergeFrom(value); - } else { - desiredSecurityPostureConfig_ = value; - } - } else { - desiredSecurityPostureConfigBuilder_.mergeFrom(value); - } - if (desiredSecurityPostureConfig_ != null) { - bitField1_ |= 0x00080000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Enable/Disable Security Posture API features for the cluster.
-     * 
- * - * .google.container.v1beta1.SecurityPostureConfig desired_security_posture_config = 124; - * - */ - public Builder clearDesiredSecurityPostureConfig() { - bitField1_ = (bitField1_ & ~0x00080000); - desiredSecurityPostureConfig_ = null; - if (desiredSecurityPostureConfigBuilder_ != null) { - desiredSecurityPostureConfigBuilder_.dispose(); - desiredSecurityPostureConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Enable/Disable Security Posture API features for the cluster.
-     * 
- * - * .google.container.v1beta1.SecurityPostureConfig desired_security_posture_config = 124; - * - */ - public com.google.container.v1beta1.SecurityPostureConfig.Builder - getDesiredSecurityPostureConfigBuilder() { - bitField1_ |= 0x00080000; - onChanged(); - return getDesiredSecurityPostureConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Enable/Disable Security Posture API features for the cluster.
-     * 
- * - * .google.container.v1beta1.SecurityPostureConfig desired_security_posture_config = 124; - * - */ - public com.google.container.v1beta1.SecurityPostureConfigOrBuilder - getDesiredSecurityPostureConfigOrBuilder() { - if (desiredSecurityPostureConfigBuilder_ != null) { - return desiredSecurityPostureConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredSecurityPostureConfig_ == null - ? com.google.container.v1beta1.SecurityPostureConfig.getDefaultInstance() - : desiredSecurityPostureConfig_; - } - } - /** - * - * - *
-     * Enable/Disable Security Posture API features for the cluster.
-     * 
- * - * .google.container.v1beta1.SecurityPostureConfig desired_security_posture_config = 124; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.SecurityPostureConfig, - com.google.container.v1beta1.SecurityPostureConfig.Builder, - com.google.container.v1beta1.SecurityPostureConfigOrBuilder> - getDesiredSecurityPostureConfigFieldBuilder() { - if (desiredSecurityPostureConfigBuilder_ == null) { - desiredSecurityPostureConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.SecurityPostureConfig, - com.google.container.v1beta1.SecurityPostureConfig.Builder, - com.google.container.v1beta1.SecurityPostureConfigOrBuilder>( - getDesiredSecurityPostureConfig(), getParentForChildren(), isClean()); - desiredSecurityPostureConfig_ = null; - } - return desiredSecurityPostureConfigBuilder_; - } - - private com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig - desiredNetworkPerformanceConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig, - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder, - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder> - desiredNetworkPerformanceConfigBuilder_; - /** - * - * - *
-     * The desired network performance config.
-     * 
- * - * - * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; - * - * - * @return Whether the desiredNetworkPerformanceConfig field is set. - */ - public boolean hasDesiredNetworkPerformanceConfig() { - return ((bitField1_ & 0x00100000) != 0); - } - /** - * - * - *
-     * The desired network performance config.
-     * 
- * - * - * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; - * - * - * @return The desiredNetworkPerformanceConfig. - */ - public com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig - getDesiredNetworkPerformanceConfig() { - if (desiredNetworkPerformanceConfigBuilder_ == null) { - return desiredNetworkPerformanceConfig_ == null - ? com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig - .getDefaultInstance() - : desiredNetworkPerformanceConfig_; - } else { - return desiredNetworkPerformanceConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired network performance config.
-     * 
- * - * - * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; - * - */ - public Builder setDesiredNetworkPerformanceConfig( - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig value) { - if (desiredNetworkPerformanceConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredNetworkPerformanceConfig_ = value; - } else { - desiredNetworkPerformanceConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x00100000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired network performance config.
-     * 
- * - * - * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; - * - */ - public Builder setDesiredNetworkPerformanceConfig( - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder - builderForValue) { - if (desiredNetworkPerformanceConfigBuilder_ == null) { - desiredNetworkPerformanceConfig_ = builderForValue.build(); - } else { - desiredNetworkPerformanceConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00100000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired network performance config.
-     * 
- * - * - * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; - * - */ - public Builder mergeDesiredNetworkPerformanceConfig( - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig value) { - if (desiredNetworkPerformanceConfigBuilder_ == null) { - if (((bitField1_ & 0x00100000) != 0) - && desiredNetworkPerformanceConfig_ != null - && desiredNetworkPerformanceConfig_ - != com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig - .getDefaultInstance()) { - getDesiredNetworkPerformanceConfigBuilder().mergeFrom(value); - } else { - desiredNetworkPerformanceConfig_ = value; - } - } else { - desiredNetworkPerformanceConfigBuilder_.mergeFrom(value); - } - if (desiredNetworkPerformanceConfig_ != null) { - bitField1_ |= 0x00100000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired network performance config.
-     * 
- * - * - * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; - * - */ - public Builder clearDesiredNetworkPerformanceConfig() { - bitField1_ = (bitField1_ & ~0x00100000); - desiredNetworkPerformanceConfig_ = null; - if (desiredNetworkPerformanceConfigBuilder_ != null) { - desiredNetworkPerformanceConfigBuilder_.dispose(); - desiredNetworkPerformanceConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired network performance config.
-     * 
- * - * - * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; - * - */ - public com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder - getDesiredNetworkPerformanceConfigBuilder() { - bitField1_ |= 0x00100000; - onChanged(); - return getDesiredNetworkPerformanceConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired network performance config.
-     * 
- * - * - * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; - * - */ - public com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder - getDesiredNetworkPerformanceConfigOrBuilder() { - if (desiredNetworkPerformanceConfigBuilder_ != null) { - return desiredNetworkPerformanceConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredNetworkPerformanceConfig_ == null - ? com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig - .getDefaultInstance() - : desiredNetworkPerformanceConfig_; - } - } - /** - * - * - *
-     * The desired network performance config.
-     * 
- * - * - * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig, - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder, - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder> - getDesiredNetworkPerformanceConfigFieldBuilder() { - if (desiredNetworkPerformanceConfigBuilder_ == null) { - desiredNetworkPerformanceConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig, - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder, - com.google.container.v1beta1.NetworkConfig - .ClusterNetworkPerformanceConfigOrBuilder>( - getDesiredNetworkPerformanceConfig(), getParentForChildren(), isClean()); - desiredNetworkPerformanceConfig_ = null; - } - return desiredNetworkPerformanceConfigBuilder_; - } - - private boolean desiredEnableFqdnNetworkPolicy_; - /** - * - * - *
-     * Enable/Disable FQDN Network Policy for the cluster.
-     * 
- * - * optional bool desired_enable_fqdn_network_policy = 126; - * - * @return Whether the desiredEnableFqdnNetworkPolicy field is set. - */ - @java.lang.Override - public boolean hasDesiredEnableFqdnNetworkPolicy() { - return ((bitField1_ & 0x00200000) != 0); - } - /** - * - * - *
-     * Enable/Disable FQDN Network Policy for the cluster.
-     * 
- * - * optional bool desired_enable_fqdn_network_policy = 126; - * - * @return The desiredEnableFqdnNetworkPolicy. - */ - @java.lang.Override - public boolean getDesiredEnableFqdnNetworkPolicy() { - return desiredEnableFqdnNetworkPolicy_; - } - /** - * - * - *
-     * Enable/Disable FQDN Network Policy for the cluster.
-     * 
- * - * optional bool desired_enable_fqdn_network_policy = 126; - * - * @param value The desiredEnableFqdnNetworkPolicy to set. - * @return This builder for chaining. - */ - public Builder setDesiredEnableFqdnNetworkPolicy(boolean value) { - - desiredEnableFqdnNetworkPolicy_ = value; - bitField1_ |= 0x00200000; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable/Disable FQDN Network Policy for the cluster.
-     * 
- * - * optional bool desired_enable_fqdn_network_policy = 126; - * - * @return This builder for chaining. - */ - public Builder clearDesiredEnableFqdnNetworkPolicy() { - bitField1_ = (bitField1_ & ~0x00200000); - desiredEnableFqdnNetworkPolicy_ = false; - onChanged(); - return this; - } - - private com.google.container.v1beta1.WorkloadPolicyConfig desiredAutopilotWorkloadPolicyConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WorkloadPolicyConfig, - com.google.container.v1beta1.WorkloadPolicyConfig.Builder, - com.google.container.v1beta1.WorkloadPolicyConfigOrBuilder> - desiredAutopilotWorkloadPolicyConfigBuilder_; - /** - * - * - *
-     * The desired workload policy configuration for the autopilot cluster.
-     * 
- * - * - * .google.container.v1beta1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; - * - * - * @return Whether the desiredAutopilotWorkloadPolicyConfig field is set. - */ - public boolean hasDesiredAutopilotWorkloadPolicyConfig() { - return ((bitField1_ & 0x00400000) != 0); - } - /** - * - * - *
-     * The desired workload policy configuration for the autopilot cluster.
-     * 
- * - * - * .google.container.v1beta1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; - * - * - * @return The desiredAutopilotWorkloadPolicyConfig. - */ - public com.google.container.v1beta1.WorkloadPolicyConfig - getDesiredAutopilotWorkloadPolicyConfig() { - if (desiredAutopilotWorkloadPolicyConfigBuilder_ == null) { - return desiredAutopilotWorkloadPolicyConfig_ == null - ? com.google.container.v1beta1.WorkloadPolicyConfig.getDefaultInstance() - : desiredAutopilotWorkloadPolicyConfig_; - } else { - return desiredAutopilotWorkloadPolicyConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired workload policy configuration for the autopilot cluster.
-     * 
- * - * - * .google.container.v1beta1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; - * - */ - public Builder setDesiredAutopilotWorkloadPolicyConfig( - com.google.container.v1beta1.WorkloadPolicyConfig value) { - if (desiredAutopilotWorkloadPolicyConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredAutopilotWorkloadPolicyConfig_ = value; - } else { - desiredAutopilotWorkloadPolicyConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x00400000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired workload policy configuration for the autopilot cluster.
-     * 
- * - * - * .google.container.v1beta1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; - * - */ - public Builder setDesiredAutopilotWorkloadPolicyConfig( - com.google.container.v1beta1.WorkloadPolicyConfig.Builder builderForValue) { - if (desiredAutopilotWorkloadPolicyConfigBuilder_ == null) { - desiredAutopilotWorkloadPolicyConfig_ = builderForValue.build(); - } else { - desiredAutopilotWorkloadPolicyConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00400000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired workload policy configuration for the autopilot cluster.
-     * 
- * - * - * .google.container.v1beta1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; - * - */ - public Builder mergeDesiredAutopilotWorkloadPolicyConfig( - com.google.container.v1beta1.WorkloadPolicyConfig value) { - if (desiredAutopilotWorkloadPolicyConfigBuilder_ == null) { - if (((bitField1_ & 0x00400000) != 0) - && desiredAutopilotWorkloadPolicyConfig_ != null - && desiredAutopilotWorkloadPolicyConfig_ - != com.google.container.v1beta1.WorkloadPolicyConfig.getDefaultInstance()) { - getDesiredAutopilotWorkloadPolicyConfigBuilder().mergeFrom(value); - } else { - desiredAutopilotWorkloadPolicyConfig_ = value; - } - } else { - desiredAutopilotWorkloadPolicyConfigBuilder_.mergeFrom(value); - } - if (desiredAutopilotWorkloadPolicyConfig_ != null) { - bitField1_ |= 0x00400000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired workload policy configuration for the autopilot cluster.
-     * 
- * - * - * .google.container.v1beta1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; - * - */ - public Builder clearDesiredAutopilotWorkloadPolicyConfig() { - bitField1_ = (bitField1_ & ~0x00400000); - desiredAutopilotWorkloadPolicyConfig_ = null; - if (desiredAutopilotWorkloadPolicyConfigBuilder_ != null) { - desiredAutopilotWorkloadPolicyConfigBuilder_.dispose(); - desiredAutopilotWorkloadPolicyConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired workload policy configuration for the autopilot cluster.
-     * 
- * - * - * .google.container.v1beta1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; - * - */ - public com.google.container.v1beta1.WorkloadPolicyConfig.Builder - getDesiredAutopilotWorkloadPolicyConfigBuilder() { - bitField1_ |= 0x00400000; - onChanged(); - return getDesiredAutopilotWorkloadPolicyConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired workload policy configuration for the autopilot cluster.
-     * 
- * - * - * .google.container.v1beta1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; - * - */ - public com.google.container.v1beta1.WorkloadPolicyConfigOrBuilder - getDesiredAutopilotWorkloadPolicyConfigOrBuilder() { - if (desiredAutopilotWorkloadPolicyConfigBuilder_ != null) { - return desiredAutopilotWorkloadPolicyConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredAutopilotWorkloadPolicyConfig_ == null - ? com.google.container.v1beta1.WorkloadPolicyConfig.getDefaultInstance() - : desiredAutopilotWorkloadPolicyConfig_; - } - } - /** - * - * - *
-     * The desired workload policy configuration for the autopilot cluster.
-     * 
- * - * - * .google.container.v1beta1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WorkloadPolicyConfig, - com.google.container.v1beta1.WorkloadPolicyConfig.Builder, - com.google.container.v1beta1.WorkloadPolicyConfigOrBuilder> - getDesiredAutopilotWorkloadPolicyConfigFieldBuilder() { - if (desiredAutopilotWorkloadPolicyConfigBuilder_ == null) { - desiredAutopilotWorkloadPolicyConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WorkloadPolicyConfig, - com.google.container.v1beta1.WorkloadPolicyConfig.Builder, - com.google.container.v1beta1.WorkloadPolicyConfigOrBuilder>( - getDesiredAutopilotWorkloadPolicyConfig(), getParentForChildren(), isClean()); - desiredAutopilotWorkloadPolicyConfig_ = null; - } - return desiredAutopilotWorkloadPolicyConfigBuilder_; - } - - private com.google.container.v1beta1.K8sBetaAPIConfig desiredK8SBetaApis_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.K8sBetaAPIConfig, - com.google.container.v1beta1.K8sBetaAPIConfig.Builder, - com.google.container.v1beta1.K8sBetaAPIConfigOrBuilder> - desiredK8SBetaApisBuilder_; - /** - * - * - *
-     * Beta APIs enabled for cluster.
-     * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; - * - * @return Whether the desiredK8sBetaApis field is set. - */ - public boolean hasDesiredK8SBetaApis() { - return ((bitField1_ & 0x00800000) != 0); - } - /** - * - * - *
-     * Beta APIs enabled for cluster.
-     * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; - * - * @return The desiredK8sBetaApis. - */ - public com.google.container.v1beta1.K8sBetaAPIConfig getDesiredK8SBetaApis() { - if (desiredK8SBetaApisBuilder_ == null) { - return desiredK8SBetaApis_ == null - ? com.google.container.v1beta1.K8sBetaAPIConfig.getDefaultInstance() - : desiredK8SBetaApis_; - } else { - return desiredK8SBetaApisBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Beta APIs enabled for cluster.
-     * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; - */ - public Builder setDesiredK8SBetaApis(com.google.container.v1beta1.K8sBetaAPIConfig value) { - if (desiredK8SBetaApisBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredK8SBetaApis_ = value; - } else { - desiredK8SBetaApisBuilder_.setMessage(value); - } - bitField1_ |= 0x00800000; - onChanged(); - return this; - } - /** - * - * - *
-     * Beta APIs enabled for cluster.
-     * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; - */ - public Builder setDesiredK8SBetaApis( - com.google.container.v1beta1.K8sBetaAPIConfig.Builder builderForValue) { - if (desiredK8SBetaApisBuilder_ == null) { - desiredK8SBetaApis_ = builderForValue.build(); - } else { - desiredK8SBetaApisBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00800000; - onChanged(); - return this; - } - /** - * - * - *
-     * Beta APIs enabled for cluster.
-     * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; - */ - public Builder mergeDesiredK8SBetaApis(com.google.container.v1beta1.K8sBetaAPIConfig value) { - if (desiredK8SBetaApisBuilder_ == null) { - if (((bitField1_ & 0x00800000) != 0) - && desiredK8SBetaApis_ != null - && desiredK8SBetaApis_ - != com.google.container.v1beta1.K8sBetaAPIConfig.getDefaultInstance()) { - getDesiredK8SBetaApisBuilder().mergeFrom(value); - } else { - desiredK8SBetaApis_ = value; - } - } else { - desiredK8SBetaApisBuilder_.mergeFrom(value); - } - if (desiredK8SBetaApis_ != null) { - bitField1_ |= 0x00800000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Beta APIs enabled for cluster.
-     * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; - */ - public Builder clearDesiredK8SBetaApis() { - bitField1_ = (bitField1_ & ~0x00800000); - desiredK8SBetaApis_ = null; - if (desiredK8SBetaApisBuilder_ != null) { - desiredK8SBetaApisBuilder_.dispose(); - desiredK8SBetaApisBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Beta APIs enabled for cluster.
-     * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; - */ - public com.google.container.v1beta1.K8sBetaAPIConfig.Builder getDesiredK8SBetaApisBuilder() { - bitField1_ |= 0x00800000; - onChanged(); - return getDesiredK8SBetaApisFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Beta APIs enabled for cluster.
-     * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; - */ - public com.google.container.v1beta1.K8sBetaAPIConfigOrBuilder getDesiredK8SBetaApisOrBuilder() { - if (desiredK8SBetaApisBuilder_ != null) { - return desiredK8SBetaApisBuilder_.getMessageOrBuilder(); - } else { - return desiredK8SBetaApis_ == null - ? com.google.container.v1beta1.K8sBetaAPIConfig.getDefaultInstance() - : desiredK8SBetaApis_; - } - } - /** - * - * - *
-     * Beta APIs enabled for cluster.
-     * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.K8sBetaAPIConfig, - com.google.container.v1beta1.K8sBetaAPIConfig.Builder, - com.google.container.v1beta1.K8sBetaAPIConfigOrBuilder> - getDesiredK8SBetaApisFieldBuilder() { - if (desiredK8SBetaApisBuilder_ == null) { - desiredK8SBetaApisBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.K8sBetaAPIConfig, - com.google.container.v1beta1.K8sBetaAPIConfig.Builder, - com.google.container.v1beta1.K8sBetaAPIConfigOrBuilder>( - getDesiredK8SBetaApis(), getParentForChildren(), isClean()); - desiredK8SBetaApis_ = null; - } - return desiredK8SBetaApisBuilder_; - } - - private com.google.container.v1beta1.HostMaintenancePolicy desiredHostMaintenancePolicy_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.HostMaintenancePolicy, - com.google.container.v1beta1.HostMaintenancePolicy.Builder, - com.google.container.v1beta1.HostMaintenancePolicyOrBuilder> - desiredHostMaintenancePolicyBuilder_; - /** - * - * - *
-     * HostMaintenancePolicy contains the desired maintenance policy for the
-     * Google Compute Engine hosts.
-     * 
- * - * .google.container.v1beta1.HostMaintenancePolicy desired_host_maintenance_policy = 132; - * - * - * @return Whether the desiredHostMaintenancePolicy field is set. - */ - public boolean hasDesiredHostMaintenancePolicy() { - return ((bitField1_ & 0x01000000) != 0); - } - /** - * - * - *
-     * HostMaintenancePolicy contains the desired maintenance policy for the
-     * Google Compute Engine hosts.
-     * 
- * - * .google.container.v1beta1.HostMaintenancePolicy desired_host_maintenance_policy = 132; - * - * - * @return The desiredHostMaintenancePolicy. - */ - public com.google.container.v1beta1.HostMaintenancePolicy getDesiredHostMaintenancePolicy() { - if (desiredHostMaintenancePolicyBuilder_ == null) { - return desiredHostMaintenancePolicy_ == null - ? com.google.container.v1beta1.HostMaintenancePolicy.getDefaultInstance() - : desiredHostMaintenancePolicy_; - } else { - return desiredHostMaintenancePolicyBuilder_.getMessage(); - } - } - /** - * - * - *
-     * HostMaintenancePolicy contains the desired maintenance policy for the
-     * Google Compute Engine hosts.
-     * 
- * - * .google.container.v1beta1.HostMaintenancePolicy desired_host_maintenance_policy = 132; - * - */ - public Builder setDesiredHostMaintenancePolicy( - com.google.container.v1beta1.HostMaintenancePolicy value) { - if (desiredHostMaintenancePolicyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredHostMaintenancePolicy_ = value; - } else { - desiredHostMaintenancePolicyBuilder_.setMessage(value); - } - bitField1_ |= 0x01000000; - onChanged(); - return this; - } - /** - * - * - *
-     * HostMaintenancePolicy contains the desired maintenance policy for the
-     * Google Compute Engine hosts.
-     * 
- * - * .google.container.v1beta1.HostMaintenancePolicy desired_host_maintenance_policy = 132; - * - */ - public Builder setDesiredHostMaintenancePolicy( - com.google.container.v1beta1.HostMaintenancePolicy.Builder builderForValue) { - if (desiredHostMaintenancePolicyBuilder_ == null) { - desiredHostMaintenancePolicy_ = builderForValue.build(); - } else { - desiredHostMaintenancePolicyBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x01000000; - onChanged(); - return this; - } - /** - * - * - *
-     * HostMaintenancePolicy contains the desired maintenance policy for the
-     * Google Compute Engine hosts.
-     * 
- * - * .google.container.v1beta1.HostMaintenancePolicy desired_host_maintenance_policy = 132; - * - */ - public Builder mergeDesiredHostMaintenancePolicy( - com.google.container.v1beta1.HostMaintenancePolicy value) { - if (desiredHostMaintenancePolicyBuilder_ == null) { - if (((bitField1_ & 0x01000000) != 0) - && desiredHostMaintenancePolicy_ != null - && desiredHostMaintenancePolicy_ - != com.google.container.v1beta1.HostMaintenancePolicy.getDefaultInstance()) { - getDesiredHostMaintenancePolicyBuilder().mergeFrom(value); - } else { - desiredHostMaintenancePolicy_ = value; - } - } else { - desiredHostMaintenancePolicyBuilder_.mergeFrom(value); - } - if (desiredHostMaintenancePolicy_ != null) { - bitField1_ |= 0x01000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * HostMaintenancePolicy contains the desired maintenance policy for the
-     * Google Compute Engine hosts.
-     * 
- * - * .google.container.v1beta1.HostMaintenancePolicy desired_host_maintenance_policy = 132; - * - */ - public Builder clearDesiredHostMaintenancePolicy() { - bitField1_ = (bitField1_ & ~0x01000000); - desiredHostMaintenancePolicy_ = null; - if (desiredHostMaintenancePolicyBuilder_ != null) { - desiredHostMaintenancePolicyBuilder_.dispose(); - desiredHostMaintenancePolicyBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * HostMaintenancePolicy contains the desired maintenance policy for the
-     * Google Compute Engine hosts.
-     * 
- * - * .google.container.v1beta1.HostMaintenancePolicy desired_host_maintenance_policy = 132; - * - */ - public com.google.container.v1beta1.HostMaintenancePolicy.Builder - getDesiredHostMaintenancePolicyBuilder() { - bitField1_ |= 0x01000000; - onChanged(); - return getDesiredHostMaintenancePolicyFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * HostMaintenancePolicy contains the desired maintenance policy for the
-     * Google Compute Engine hosts.
-     * 
- * - * .google.container.v1beta1.HostMaintenancePolicy desired_host_maintenance_policy = 132; - * - */ - public com.google.container.v1beta1.HostMaintenancePolicyOrBuilder - getDesiredHostMaintenancePolicyOrBuilder() { - if (desiredHostMaintenancePolicyBuilder_ != null) { - return desiredHostMaintenancePolicyBuilder_.getMessageOrBuilder(); - } else { - return desiredHostMaintenancePolicy_ == null - ? com.google.container.v1beta1.HostMaintenancePolicy.getDefaultInstance() - : desiredHostMaintenancePolicy_; - } - } - /** - * - * - *
-     * HostMaintenancePolicy contains the desired maintenance policy for the
-     * Google Compute Engine hosts.
-     * 
- * - * .google.container.v1beta1.HostMaintenancePolicy desired_host_maintenance_policy = 132; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.HostMaintenancePolicy, - com.google.container.v1beta1.HostMaintenancePolicy.Builder, - com.google.container.v1beta1.HostMaintenancePolicyOrBuilder> - getDesiredHostMaintenancePolicyFieldBuilder() { - if (desiredHostMaintenancePolicyBuilder_ == null) { - desiredHostMaintenancePolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.HostMaintenancePolicy, - com.google.container.v1beta1.HostMaintenancePolicy.Builder, - com.google.container.v1beta1.HostMaintenancePolicyOrBuilder>( - getDesiredHostMaintenancePolicy(), getParentForChildren(), isClean()); - desiredHostMaintenancePolicy_ = null; - } - return desiredHostMaintenancePolicyBuilder_; - } - - private com.google.container.v1beta1.ResourceManagerTags - desiredNodePoolAutoConfigResourceManagerTags_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ResourceManagerTags, - com.google.container.v1beta1.ResourceManagerTags.Builder, - com.google.container.v1beta1.ResourceManagerTagsOrBuilder> - desiredNodePoolAutoConfigResourceManagerTagsBuilder_; - /** - * - * - *
-     * The desired resource manager tags that apply to all auto-provisioned node
-     * pools in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * - * .google.container.v1beta1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; - * - * - * @return Whether the desiredNodePoolAutoConfigResourceManagerTags field is set. - */ - public boolean hasDesiredNodePoolAutoConfigResourceManagerTags() { - return ((bitField1_ & 0x02000000) != 0); - } - /** - * - * - *
-     * The desired resource manager tags that apply to all auto-provisioned node
-     * pools in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * - * .google.container.v1beta1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; - * - * - * @return The desiredNodePoolAutoConfigResourceManagerTags. - */ - public com.google.container.v1beta1.ResourceManagerTags - getDesiredNodePoolAutoConfigResourceManagerTags() { - if (desiredNodePoolAutoConfigResourceManagerTagsBuilder_ == null) { - return desiredNodePoolAutoConfigResourceManagerTags_ == null - ? com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance() - : desiredNodePoolAutoConfigResourceManagerTags_; - } else { - return desiredNodePoolAutoConfigResourceManagerTagsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired resource manager tags that apply to all auto-provisioned node
-     * pools in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * - * .google.container.v1beta1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; - * - */ - public Builder setDesiredNodePoolAutoConfigResourceManagerTags( - com.google.container.v1beta1.ResourceManagerTags value) { - if (desiredNodePoolAutoConfigResourceManagerTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredNodePoolAutoConfigResourceManagerTags_ = value; - } else { - desiredNodePoolAutoConfigResourceManagerTagsBuilder_.setMessage(value); - } - bitField1_ |= 0x02000000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired resource manager tags that apply to all auto-provisioned node
-     * pools in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * - * .google.container.v1beta1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; - * - */ - public Builder setDesiredNodePoolAutoConfigResourceManagerTags( - com.google.container.v1beta1.ResourceManagerTags.Builder builderForValue) { - if (desiredNodePoolAutoConfigResourceManagerTagsBuilder_ == null) { - desiredNodePoolAutoConfigResourceManagerTags_ = builderForValue.build(); - } else { - desiredNodePoolAutoConfigResourceManagerTagsBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x02000000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired resource manager tags that apply to all auto-provisioned node
-     * pools in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * - * .google.container.v1beta1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; - * - */ - public Builder mergeDesiredNodePoolAutoConfigResourceManagerTags( - com.google.container.v1beta1.ResourceManagerTags value) { - if (desiredNodePoolAutoConfigResourceManagerTagsBuilder_ == null) { - if (((bitField1_ & 0x02000000) != 0) - && desiredNodePoolAutoConfigResourceManagerTags_ != null - && desiredNodePoolAutoConfigResourceManagerTags_ - != com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance()) { - getDesiredNodePoolAutoConfigResourceManagerTagsBuilder().mergeFrom(value); - } else { - desiredNodePoolAutoConfigResourceManagerTags_ = value; - } - } else { - desiredNodePoolAutoConfigResourceManagerTagsBuilder_.mergeFrom(value); - } - if (desiredNodePoolAutoConfigResourceManagerTags_ != null) { - bitField1_ |= 0x02000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired resource manager tags that apply to all auto-provisioned node
-     * pools in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * - * .google.container.v1beta1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; - * - */ - public Builder clearDesiredNodePoolAutoConfigResourceManagerTags() { - bitField1_ = (bitField1_ & ~0x02000000); - desiredNodePoolAutoConfigResourceManagerTags_ = null; - if (desiredNodePoolAutoConfigResourceManagerTagsBuilder_ != null) { - desiredNodePoolAutoConfigResourceManagerTagsBuilder_.dispose(); - desiredNodePoolAutoConfigResourceManagerTagsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired resource manager tags that apply to all auto-provisioned node
-     * pools in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * - * .google.container.v1beta1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; - * - */ - public com.google.container.v1beta1.ResourceManagerTags.Builder - getDesiredNodePoolAutoConfigResourceManagerTagsBuilder() { - bitField1_ |= 0x02000000; - onChanged(); - return getDesiredNodePoolAutoConfigResourceManagerTagsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired resource manager tags that apply to all auto-provisioned node
-     * pools in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * - * .google.container.v1beta1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; - * - */ - public com.google.container.v1beta1.ResourceManagerTagsOrBuilder - getDesiredNodePoolAutoConfigResourceManagerTagsOrBuilder() { - if (desiredNodePoolAutoConfigResourceManagerTagsBuilder_ != null) { - return desiredNodePoolAutoConfigResourceManagerTagsBuilder_.getMessageOrBuilder(); - } else { - return desiredNodePoolAutoConfigResourceManagerTags_ == null - ? com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance() - : desiredNodePoolAutoConfigResourceManagerTags_; - } - } - /** - * - * - *
-     * The desired resource manager tags that apply to all auto-provisioned node
-     * pools in autopilot clusters and node auto-provisioning enabled clusters.
-     * 
- * - * - * .google.container.v1beta1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ResourceManagerTags, - com.google.container.v1beta1.ResourceManagerTags.Builder, - com.google.container.v1beta1.ResourceManagerTagsOrBuilder> - getDesiredNodePoolAutoConfigResourceManagerTagsFieldBuilder() { - if (desiredNodePoolAutoConfigResourceManagerTagsBuilder_ == null) { - desiredNodePoolAutoConfigResourceManagerTagsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ResourceManagerTags, - com.google.container.v1beta1.ResourceManagerTags.Builder, - com.google.container.v1beta1.ResourceManagerTagsOrBuilder>( - getDesiredNodePoolAutoConfigResourceManagerTags(), - getParentForChildren(), - isClean()); - desiredNodePoolAutoConfigResourceManagerTags_ = null; - } - return desiredNodePoolAutoConfigResourceManagerTagsBuilder_; - } - - private int desiredInTransitEncryptionConfig_ = 0; - /** - * - * - *
-     * Specify the details of in-transit encryption.
-     * 
- * - * - * optional .google.container.v1beta1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; - * - * - * @return Whether the desiredInTransitEncryptionConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredInTransitEncryptionConfig() { - return ((bitField1_ & 0x04000000) != 0); - } - /** - * - * - *
-     * Specify the details of in-transit encryption.
-     * 
- * - * - * optional .google.container.v1beta1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; - * - * - * @return The enum numeric value on the wire for desiredInTransitEncryptionConfig. - */ - @java.lang.Override - public int getDesiredInTransitEncryptionConfigValue() { - return desiredInTransitEncryptionConfig_; - } - /** - * - * - *
-     * Specify the details of in-transit encryption.
-     * 
- * - * - * optional .google.container.v1beta1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; - * - * - * @param value The enum numeric value on the wire for desiredInTransitEncryptionConfig to set. - * @return This builder for chaining. - */ - public Builder setDesiredInTransitEncryptionConfigValue(int value) { - desiredInTransitEncryptionConfig_ = value; - bitField1_ |= 0x04000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Specify the details of in-transit encryption.
-     * 
- * - * - * optional .google.container.v1beta1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; - * - * - * @return The desiredInTransitEncryptionConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.InTransitEncryptionConfig - getDesiredInTransitEncryptionConfig() { - com.google.container.v1beta1.InTransitEncryptionConfig result = - com.google.container.v1beta1.InTransitEncryptionConfig.forNumber( - desiredInTransitEncryptionConfig_); - return result == null - ? com.google.container.v1beta1.InTransitEncryptionConfig.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Specify the details of in-transit encryption.
-     * 
- * - * - * optional .google.container.v1beta1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; - * - * - * @param value The desiredInTransitEncryptionConfig to set. - * @return This builder for chaining. - */ - public Builder setDesiredInTransitEncryptionConfig( - com.google.container.v1beta1.InTransitEncryptionConfig value) { - if (value == null) { - throw new NullPointerException(); - } - bitField1_ |= 0x04000000; - desiredInTransitEncryptionConfig_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Specify the details of in-transit encryption.
-     * 
- * - * - * optional .google.container.v1beta1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; - * - * - * @return This builder for chaining. - */ - public Builder clearDesiredInTransitEncryptionConfig() { - bitField1_ = (bitField1_ & ~0x04000000); - desiredInTransitEncryptionConfig_ = 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.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterUpdateOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterUpdateOrBuilder.java deleted file mode 100644 index 0fa418b40beb..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterUpdateOrBuilder.java +++ /dev/null @@ -1,2298 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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 L4 Internal Load Balancer Subsetting configuration.
-   * 
- * - * .google.container.v1beta1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - * - * - * @return Whether the desiredL4ilbSubsettingConfig field is set. - */ - boolean hasDesiredL4IlbSubsettingConfig(); - /** - * - * - *
-   * The desired L4 Internal Load Balancer Subsetting configuration.
-   * 
- * - * .google.container.v1beta1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - * - * - * @return The desiredL4ilbSubsettingConfig. - */ - com.google.container.v1beta1.ILBSubsettingConfig getDesiredL4IlbSubsettingConfig(); - /** - * - * - *
-   * The desired L4 Internal Load Balancer Subsetting configuration.
-   * 
- * - * .google.container.v1beta1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - * - */ - com.google.container.v1beta1.ILBSubsettingConfigOrBuilder - getDesiredL4IlbSubsettingConfigOrBuilder(); - - /** - * - * - *
-   * 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 state of IPv6 connectivity to Google Services.
-   * 
- * - * - * .google.container.v1beta1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; - * - * - * @return The enum numeric value on the wire for desiredPrivateIpv6GoogleAccess. - */ - int getDesiredPrivateIpv6GoogleAccessValue(); - /** - * - * - *
-   * The desired state of IPv6 connectivity to Google Services.
-   * 
- * - * - * .google.container.v1beta1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; - * - * - * @return The desiredPrivateIpv6GoogleAccess. - */ - com.google.container.v1beta1.PrivateIPv6GoogleAccess getDesiredPrivateIpv6GoogleAccess(); - - /** - * - * - *
-   * 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(); - - /** - * - * - *
-   * The desired GCFS config for the cluster.
-   * 
- * - * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; - * - * @return Whether the desiredGcfsConfig field is set. - */ - boolean hasDesiredGcfsConfig(); - /** - * - * - *
-   * The desired GCFS config for the cluster.
-   * 
- * - * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; - * - * @return The desiredGcfsConfig. - */ - com.google.container.v1beta1.GcfsConfig getDesiredGcfsConfig(); - /** - * - * - *
-   * The desired GCFS config for the cluster.
-   * 
- * - * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; - */ - com.google.container.v1beta1.GcfsConfigOrBuilder getDesiredGcfsConfigOrBuilder(); - - /** - * - * - *
-   * 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 issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1beta1.WorkloadCertificates desired_workload_certificates = 61; - * - * @return Whether the desiredWorkloadCertificates field is set. - */ - boolean hasDesiredWorkloadCertificates(); - /** - * - * - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1beta1.WorkloadCertificates desired_workload_certificates = 61; - * - * @return The desiredWorkloadCertificates. - */ - com.google.container.v1beta1.WorkloadCertificates getDesiredWorkloadCertificates(); - /** - * - * - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1beta1.WorkloadCertificates desired_workload_certificates = 61; - */ - com.google.container.v1beta1.WorkloadCertificatesOrBuilder - getDesiredWorkloadCertificatesOrBuilder(); - - /** - * - * - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; - * - * @return Whether the desiredMeshCertificates field is set. - */ - boolean hasDesiredMeshCertificates(); - /** - * - * - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; - * - * @return The desiredMeshCertificates. - */ - com.google.container.v1beta1.MeshCertificates getDesiredMeshCertificates(); - /** - * - * - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes
-   * pods.
-   * 
- * - * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; - */ - com.google.container.v1beta1.MeshCertificatesOrBuilder getDesiredMeshCertificatesOrBuilder(); - - /** - * - * - *
-   * Configuration for direct-path (via ALTS) with workload identity.
-   * 
- * - * .google.container.v1beta1.WorkloadALTSConfig desired_workload_alts_config = 62; - * - * @return Whether the desiredWorkloadAltsConfig field is set. - */ - boolean hasDesiredWorkloadAltsConfig(); - /** - * - * - *
-   * Configuration for direct-path (via ALTS) with workload identity.
-   * 
- * - * .google.container.v1beta1.WorkloadALTSConfig desired_workload_alts_config = 62; - * - * @return The desiredWorkloadAltsConfig. - */ - com.google.container.v1beta1.WorkloadALTSConfig getDesiredWorkloadAltsConfig(); - /** - * - * - *
-   * Configuration for direct-path (via ALTS) with workload identity.
-   * 
- * - * .google.container.v1beta1.WorkloadALTSConfig desired_workload_alts_config = 62; - */ - com.google.container.v1beta1.WorkloadALTSConfigOrBuilder getDesiredWorkloadAltsConfigOrBuilder(); - - /** - * - * - *
-   * 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(); - - /** - * - * - *
-   * The desired configuration for the fine-grained cost management feature.
-   * 
- * - * .google.container.v1beta1.CostManagementConfig desired_cost_management_config = 49; - * - * - * @return Whether the desiredCostManagementConfig field is set. - */ - boolean hasDesiredCostManagementConfig(); - /** - * - * - *
-   * The desired configuration for the fine-grained cost management feature.
-   * 
- * - * .google.container.v1beta1.CostManagementConfig desired_cost_management_config = 49; - * - * - * @return The desiredCostManagementConfig. - */ - com.google.container.v1beta1.CostManagementConfig getDesiredCostManagementConfig(); - /** - * - * - *
-   * The desired configuration for the fine-grained cost management feature.
-   * 
- * - * .google.container.v1beta1.CostManagementConfig desired_cost_management_config = 49; - * - */ - com.google.container.v1beta1.CostManagementConfigOrBuilder - getDesiredCostManagementConfigOrBuilder(); - - /** - * - * - *
-   * 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(); - - /** - * - * - *
-   * DNSConfig contains clusterDNS config for this cluster.
-   * 
- * - * .google.container.v1beta1.DNSConfig desired_dns_config = 53; - * - * @return Whether the desiredDnsConfig field is set. - */ - boolean hasDesiredDnsConfig(); - /** - * - * - *
-   * DNSConfig contains clusterDNS config for this cluster.
-   * 
- * - * .google.container.v1beta1.DNSConfig desired_dns_config = 53; - * - * @return The desiredDnsConfig. - */ - com.google.container.v1beta1.DNSConfig getDesiredDnsConfig(); - /** - * - * - *
-   * DNSConfig contains clusterDNS config for this cluster.
-   * 
- * - * .google.container.v1beta1.DNSConfig desired_dns_config = 53; - */ - com.google.container.v1beta1.DNSConfigOrBuilder getDesiredDnsConfigOrBuilder(); - - /** - * - * - *
-   * ServiceExternalIPsConfig specifies the config for the use of Services with
-   * ExternalIPs field.
-   * 
- * - * - * .google.container.v1beta1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - * - * - * @return Whether the desiredServiceExternalIpsConfig field is set. - */ - boolean hasDesiredServiceExternalIpsConfig(); - /** - * - * - *
-   * ServiceExternalIPsConfig specifies the config for the use of Services with
-   * ExternalIPs field.
-   * 
- * - * - * .google.container.v1beta1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - * - * - * @return The desiredServiceExternalIpsConfig. - */ - com.google.container.v1beta1.ServiceExternalIPsConfig getDesiredServiceExternalIpsConfig(); - /** - * - * - *
-   * ServiceExternalIPsConfig specifies the config for the use of Services with
-   * ExternalIPs field.
-   * 
- * - * - * .google.container.v1beta1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - * - */ - com.google.container.v1beta1.ServiceExternalIPsConfigOrBuilder - getDesiredServiceExternalIpsConfigOrBuilder(); - - /** - * - * - *
-   * AuthenticatorGroupsConfig specifies the config for the cluster security
-   * groups settings.
-   * 
- * - * - * .google.container.v1beta1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - * - * - * @return Whether the desiredAuthenticatorGroupsConfig field is set. - */ - boolean hasDesiredAuthenticatorGroupsConfig(); - /** - * - * - *
-   * AuthenticatorGroupsConfig specifies the config for the cluster security
-   * groups settings.
-   * 
- * - * - * .google.container.v1beta1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - * - * - * @return The desiredAuthenticatorGroupsConfig. - */ - com.google.container.v1beta1.AuthenticatorGroupsConfig getDesiredAuthenticatorGroupsConfig(); - /** - * - * - *
-   * AuthenticatorGroupsConfig specifies the config for the cluster security
-   * groups settings.
-   * 
- * - * - * .google.container.v1beta1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - * - */ - com.google.container.v1beta1.AuthenticatorGroupsConfigOrBuilder - getDesiredAuthenticatorGroupsConfigOrBuilder(); - - /** - * - * - *
-   * The desired logging configuration.
-   * 
- * - * .google.container.v1beta1.LoggingConfig desired_logging_config = 64; - * - * @return Whether the desiredLoggingConfig field is set. - */ - boolean hasDesiredLoggingConfig(); - /** - * - * - *
-   * The desired logging configuration.
-   * 
- * - * .google.container.v1beta1.LoggingConfig desired_logging_config = 64; - * - * @return The desiredLoggingConfig. - */ - com.google.container.v1beta1.LoggingConfig getDesiredLoggingConfig(); - /** - * - * - *
-   * The desired logging configuration.
-   * 
- * - * .google.container.v1beta1.LoggingConfig desired_logging_config = 64; - */ - com.google.container.v1beta1.LoggingConfigOrBuilder getDesiredLoggingConfigOrBuilder(); - - /** - * - * - *
-   * The desired monitoring configuration.
-   * 
- * - * .google.container.v1beta1.MonitoringConfig desired_monitoring_config = 65; - * - * @return Whether the desiredMonitoringConfig field is set. - */ - boolean hasDesiredMonitoringConfig(); - /** - * - * - *
-   * The desired monitoring configuration.
-   * 
- * - * .google.container.v1beta1.MonitoringConfig desired_monitoring_config = 65; - * - * @return The desiredMonitoringConfig. - */ - com.google.container.v1beta1.MonitoringConfig getDesiredMonitoringConfig(); - /** - * - * - *
-   * The desired monitoring configuration.
-   * 
- * - * .google.container.v1beta1.MonitoringConfig desired_monitoring_config = 65; - */ - com.google.container.v1beta1.MonitoringConfigOrBuilder getDesiredMonitoringConfigOrBuilder(); - - /** - * - * - *
-   * The desired Identity Service component configuration.
-   * 
- * - * .google.container.v1beta1.IdentityServiceConfig desired_identity_service_config = 66; - * - * - * @return Whether the desiredIdentityServiceConfig field is set. - */ - boolean hasDesiredIdentityServiceConfig(); - /** - * - * - *
-   * The desired Identity Service component configuration.
-   * 
- * - * .google.container.v1beta1.IdentityServiceConfig desired_identity_service_config = 66; - * - * - * @return The desiredIdentityServiceConfig. - */ - com.google.container.v1beta1.IdentityServiceConfig getDesiredIdentityServiceConfig(); - /** - * - * - *
-   * The desired Identity Service component configuration.
-   * 
- * - * .google.container.v1beta1.IdentityServiceConfig desired_identity_service_config = 66; - * - */ - com.google.container.v1beta1.IdentityServiceConfigOrBuilder - getDesiredIdentityServiceConfigOrBuilder(); - - /** - * - * - *
-   * Enable/Disable private endpoint for the cluster's master.
-   * 
- * - * optional bool desired_enable_private_endpoint = 71; - * - * @return Whether the desiredEnablePrivateEndpoint field is set. - */ - boolean hasDesiredEnablePrivateEndpoint(); - /** - * - * - *
-   * Enable/Disable private endpoint for the cluster's master.
-   * 
- * - * optional bool desired_enable_private_endpoint = 71; - * - * @return The desiredEnablePrivateEndpoint. - */ - boolean getDesiredEnablePrivateEndpoint(); - - /** - * - * - *
-   * The desired network tags that apply to all auto-provisioned node pools
-   * in autopilot clusters and node auto-provisioning enabled clusters.
-   * 
- * - * .google.container.v1beta1.NetworkTags desired_node_pool_auto_config_network_tags = 110; - * - * - * @return Whether the desiredNodePoolAutoConfigNetworkTags field is set. - */ - boolean hasDesiredNodePoolAutoConfigNetworkTags(); - /** - * - * - *
-   * The desired network tags that apply to all auto-provisioned node pools
-   * in autopilot clusters and node auto-provisioning enabled clusters.
-   * 
- * - * .google.container.v1beta1.NetworkTags desired_node_pool_auto_config_network_tags = 110; - * - * - * @return The desiredNodePoolAutoConfigNetworkTags. - */ - com.google.container.v1beta1.NetworkTags getDesiredNodePoolAutoConfigNetworkTags(); - /** - * - * - *
-   * The desired network tags that apply to all auto-provisioned node pools
-   * in autopilot clusters and node auto-provisioning enabled clusters.
-   * 
- * - * .google.container.v1beta1.NetworkTags desired_node_pool_auto_config_network_tags = 110; - * - */ - com.google.container.v1beta1.NetworkTagsOrBuilder - getDesiredNodePoolAutoConfigNetworkTagsOrBuilder(); - - /** - * - * - *
-   * Deprecated: Use DesiredSecurityPostureConfig instead.
-   * Enable/Disable Protect API features for the cluster.
-   * 
- * - * - * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112 [deprecated = true]; - * - * - * @deprecated google.container.v1beta1.ClusterUpdate.desired_protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2606 - * @return Whether the desiredProtectConfig field is set. - */ - @java.lang.Deprecated - boolean hasDesiredProtectConfig(); - /** - * - * - *
-   * Deprecated: Use DesiredSecurityPostureConfig instead.
-   * Enable/Disable Protect API features for the cluster.
-   * 
- * - * - * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112 [deprecated = true]; - * - * - * @deprecated google.container.v1beta1.ClusterUpdate.desired_protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2606 - * @return The desiredProtectConfig. - */ - @java.lang.Deprecated - com.google.container.v1beta1.ProtectConfig getDesiredProtectConfig(); - /** - * - * - *
-   * Deprecated: Use DesiredSecurityPostureConfig instead.
-   * Enable/Disable Protect API features for the cluster.
-   * 
- * - * - * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112 [deprecated = true]; - * - */ - @java.lang.Deprecated - com.google.container.v1beta1.ProtectConfigOrBuilder getDesiredProtectConfigOrBuilder(); - - /** - * - * - *
-   * The desired config of Gateway API on this cluster.
-   * 
- * - * .google.container.v1beta1.GatewayAPIConfig desired_gateway_api_config = 114; - * - * @return Whether the desiredGatewayApiConfig field is set. - */ - boolean hasDesiredGatewayApiConfig(); - /** - * - * - *
-   * The desired config of Gateway API on this cluster.
-   * 
- * - * .google.container.v1beta1.GatewayAPIConfig desired_gateway_api_config = 114; - * - * @return The desiredGatewayApiConfig. - */ - com.google.container.v1beta1.GatewayAPIConfig getDesiredGatewayApiConfig(); - /** - * - * - *
-   * The desired config of Gateway API on this cluster.
-   * 
- * - * .google.container.v1beta1.GatewayAPIConfig desired_gateway_api_config = 114; - */ - com.google.container.v1beta1.GatewayAPIConfigOrBuilder getDesiredGatewayApiConfigOrBuilder(); - - /** - * - * - *
-   * The current etag of the cluster.
-   * If an etag is provided and does not match the current etag of the cluster,
-   * update will be blocked and an ABORTED error will be returned.
-   * 
- * - * string etag = 115; - * - * @return The etag. - */ - java.lang.String getEtag(); - /** - * - * - *
-   * The current etag of the cluster.
-   * If an etag is provided and does not match the current etag of the cluster,
-   * update will be blocked and an ABORTED error will be returned.
-   * 
- * - * string etag = 115; - * - * @return The bytes for etag. - */ - com.google.protobuf.ByteString getEtagBytes(); - - /** - * - * - *
-   * The desired node pool logging configuration defaults for the cluster.
-   * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; - * - * - * @return Whether the desiredNodePoolLoggingConfig field is set. - */ - boolean hasDesiredNodePoolLoggingConfig(); - /** - * - * - *
-   * The desired node pool logging configuration defaults for the cluster.
-   * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; - * - * - * @return The desiredNodePoolLoggingConfig. - */ - com.google.container.v1beta1.NodePoolLoggingConfig getDesiredNodePoolLoggingConfig(); - /** - * - * - *
-   * The desired node pool logging configuration defaults for the cluster.
-   * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; - * - */ - com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder - getDesiredNodePoolLoggingConfigOrBuilder(); - - /** - * - * - *
-   * The desired fleet configuration for the cluster.
-   * 
- * - * .google.container.v1beta1.Fleet desired_fleet = 117; - * - * @return Whether the desiredFleet field is set. - */ - boolean hasDesiredFleet(); - /** - * - * - *
-   * The desired fleet configuration for the cluster.
-   * 
- * - * .google.container.v1beta1.Fleet desired_fleet = 117; - * - * @return The desiredFleet. - */ - com.google.container.v1beta1.Fleet getDesiredFleet(); - /** - * - * - *
-   * The desired fleet configuration for the cluster.
-   * 
- * - * .google.container.v1beta1.Fleet desired_fleet = 117; - */ - com.google.container.v1beta1.FleetOrBuilder getDesiredFleetOrBuilder(); - - /** - * - * - *
-   * The desired stack type of the cluster.
-   * If a stack type is provided and does not match the current stack type of
-   * the cluster, update will attempt to change the stack type to the new type.
-   * 
- * - * .google.container.v1beta1.StackType desired_stack_type = 119; - * - * @return The enum numeric value on the wire for desiredStackType. - */ - int getDesiredStackTypeValue(); - /** - * - * - *
-   * The desired stack type of the cluster.
-   * If a stack type is provided and does not match the current stack type of
-   * the cluster, update will attempt to change the stack type to the new type.
-   * 
- * - * .google.container.v1beta1.StackType desired_stack_type = 119; - * - * @return The desiredStackType. - */ - com.google.container.v1beta1.StackType getDesiredStackType(); - - /** - * - * - *
-   * The additional pod ranges to be added to the cluster. These pod ranges
-   * can be used by node pools to allocate pod IPs.
-   * 
- * - * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; - * - * - * @return Whether the additionalPodRangesConfig field is set. - */ - boolean hasAdditionalPodRangesConfig(); - /** - * - * - *
-   * The additional pod ranges to be added to the cluster. These pod ranges
-   * can be used by node pools to allocate pod IPs.
-   * 
- * - * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; - * - * - * @return The additionalPodRangesConfig. - */ - com.google.container.v1beta1.AdditionalPodRangesConfig getAdditionalPodRangesConfig(); - /** - * - * - *
-   * The additional pod ranges to be added to the cluster. These pod ranges
-   * can be used by node pools to allocate pod IPs.
-   * 
- * - * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; - * - */ - com.google.container.v1beta1.AdditionalPodRangesConfigOrBuilder - getAdditionalPodRangesConfigOrBuilder(); - - /** - * - * - *
-   * The additional pod ranges that are to be removed from the cluster.
-   * The pod ranges specified here must have been specified earlier in the
-   * 'additional_pod_ranges_config' argument.
-   * 
- * - * - * .google.container.v1beta1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; - * - * - * @return Whether the removedAdditionalPodRangesConfig field is set. - */ - boolean hasRemovedAdditionalPodRangesConfig(); - /** - * - * - *
-   * The additional pod ranges that are to be removed from the cluster.
-   * The pod ranges specified here must have been specified earlier in the
-   * 'additional_pod_ranges_config' argument.
-   * 
- * - * - * .google.container.v1beta1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; - * - * - * @return The removedAdditionalPodRangesConfig. - */ - com.google.container.v1beta1.AdditionalPodRangesConfig getRemovedAdditionalPodRangesConfig(); - /** - * - * - *
-   * The additional pod ranges that are to be removed from the cluster.
-   * The pod ranges specified here must have been specified earlier in the
-   * 'additional_pod_ranges_config' argument.
-   * 
- * - * - * .google.container.v1beta1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; - * - */ - com.google.container.v1beta1.AdditionalPodRangesConfigOrBuilder - getRemovedAdditionalPodRangesConfigOrBuilder(); - - /** - * - * - *
-   * Kubernetes open source beta apis enabled on the cluster. Only beta apis
-   * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; - * - * @return Whether the enableK8sBetaApis field is set. - */ - boolean hasEnableK8SBetaApis(); - /** - * - * - *
-   * Kubernetes open source beta apis enabled on the cluster. Only beta apis
-   * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; - * - * @return The enableK8sBetaApis. - */ - com.google.container.v1beta1.K8sBetaAPIConfig getEnableK8SBetaApis(); - /** - * - * - *
-   * Kubernetes open source beta apis enabled on the cluster. Only beta apis
-   * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; - */ - com.google.container.v1beta1.K8sBetaAPIConfigOrBuilder getEnableK8SBetaApisOrBuilder(); - - /** - * - * - *
-   * Enable/Disable Security Posture API features for the cluster.
-   * 
- * - * .google.container.v1beta1.SecurityPostureConfig desired_security_posture_config = 124; - * - * - * @return Whether the desiredSecurityPostureConfig field is set. - */ - boolean hasDesiredSecurityPostureConfig(); - /** - * - * - *
-   * Enable/Disable Security Posture API features for the cluster.
-   * 
- * - * .google.container.v1beta1.SecurityPostureConfig desired_security_posture_config = 124; - * - * - * @return The desiredSecurityPostureConfig. - */ - com.google.container.v1beta1.SecurityPostureConfig getDesiredSecurityPostureConfig(); - /** - * - * - *
-   * Enable/Disable Security Posture API features for the cluster.
-   * 
- * - * .google.container.v1beta1.SecurityPostureConfig desired_security_posture_config = 124; - * - */ - com.google.container.v1beta1.SecurityPostureConfigOrBuilder - getDesiredSecurityPostureConfigOrBuilder(); - - /** - * - * - *
-   * The desired network performance config.
-   * 
- * - * - * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; - * - * - * @return Whether the desiredNetworkPerformanceConfig field is set. - */ - boolean hasDesiredNetworkPerformanceConfig(); - /** - * - * - *
-   * The desired network performance config.
-   * 
- * - * - * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; - * - * - * @return The desiredNetworkPerformanceConfig. - */ - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig - getDesiredNetworkPerformanceConfig(); - /** - * - * - *
-   * The desired network performance config.
-   * 
- * - * - * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; - * - */ - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder - getDesiredNetworkPerformanceConfigOrBuilder(); - - /** - * - * - *
-   * Enable/Disable FQDN Network Policy for the cluster.
-   * 
- * - * optional bool desired_enable_fqdn_network_policy = 126; - * - * @return Whether the desiredEnableFqdnNetworkPolicy field is set. - */ - boolean hasDesiredEnableFqdnNetworkPolicy(); - /** - * - * - *
-   * Enable/Disable FQDN Network Policy for the cluster.
-   * 
- * - * optional bool desired_enable_fqdn_network_policy = 126; - * - * @return The desiredEnableFqdnNetworkPolicy. - */ - boolean getDesiredEnableFqdnNetworkPolicy(); - - /** - * - * - *
-   * The desired workload policy configuration for the autopilot cluster.
-   * 
- * - * - * .google.container.v1beta1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; - * - * - * @return Whether the desiredAutopilotWorkloadPolicyConfig field is set. - */ - boolean hasDesiredAutopilotWorkloadPolicyConfig(); - /** - * - * - *
-   * The desired workload policy configuration for the autopilot cluster.
-   * 
- * - * - * .google.container.v1beta1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; - * - * - * @return The desiredAutopilotWorkloadPolicyConfig. - */ - com.google.container.v1beta1.WorkloadPolicyConfig getDesiredAutopilotWorkloadPolicyConfig(); - /** - * - * - *
-   * The desired workload policy configuration for the autopilot cluster.
-   * 
- * - * - * .google.container.v1beta1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; - * - */ - com.google.container.v1beta1.WorkloadPolicyConfigOrBuilder - getDesiredAutopilotWorkloadPolicyConfigOrBuilder(); - - /** - * - * - *
-   * Beta APIs enabled for cluster.
-   * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; - * - * @return Whether the desiredK8sBetaApis field is set. - */ - boolean hasDesiredK8SBetaApis(); - /** - * - * - *
-   * Beta APIs enabled for cluster.
-   * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; - * - * @return The desiredK8sBetaApis. - */ - com.google.container.v1beta1.K8sBetaAPIConfig getDesiredK8SBetaApis(); - /** - * - * - *
-   * Beta APIs enabled for cluster.
-   * 
- * - * .google.container.v1beta1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; - */ - com.google.container.v1beta1.K8sBetaAPIConfigOrBuilder getDesiredK8SBetaApisOrBuilder(); - - /** - * - * - *
-   * HostMaintenancePolicy contains the desired maintenance policy for the
-   * Google Compute Engine hosts.
-   * 
- * - * .google.container.v1beta1.HostMaintenancePolicy desired_host_maintenance_policy = 132; - * - * - * @return Whether the desiredHostMaintenancePolicy field is set. - */ - boolean hasDesiredHostMaintenancePolicy(); - /** - * - * - *
-   * HostMaintenancePolicy contains the desired maintenance policy for the
-   * Google Compute Engine hosts.
-   * 
- * - * .google.container.v1beta1.HostMaintenancePolicy desired_host_maintenance_policy = 132; - * - * - * @return The desiredHostMaintenancePolicy. - */ - com.google.container.v1beta1.HostMaintenancePolicy getDesiredHostMaintenancePolicy(); - /** - * - * - *
-   * HostMaintenancePolicy contains the desired maintenance policy for the
-   * Google Compute Engine hosts.
-   * 
- * - * .google.container.v1beta1.HostMaintenancePolicy desired_host_maintenance_policy = 132; - * - */ - com.google.container.v1beta1.HostMaintenancePolicyOrBuilder - getDesiredHostMaintenancePolicyOrBuilder(); - - /** - * - * - *
-   * The desired resource manager tags that apply to all auto-provisioned node
-   * pools in autopilot clusters and node auto-provisioning enabled clusters.
-   * 
- * - * - * .google.container.v1beta1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; - * - * - * @return Whether the desiredNodePoolAutoConfigResourceManagerTags field is set. - */ - boolean hasDesiredNodePoolAutoConfigResourceManagerTags(); - /** - * - * - *
-   * The desired resource manager tags that apply to all auto-provisioned node
-   * pools in autopilot clusters and node auto-provisioning enabled clusters.
-   * 
- * - * - * .google.container.v1beta1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; - * - * - * @return The desiredNodePoolAutoConfigResourceManagerTags. - */ - com.google.container.v1beta1.ResourceManagerTags - getDesiredNodePoolAutoConfigResourceManagerTags(); - /** - * - * - *
-   * The desired resource manager tags that apply to all auto-provisioned node
-   * pools in autopilot clusters and node auto-provisioning enabled clusters.
-   * 
- * - * - * .google.container.v1beta1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; - * - */ - com.google.container.v1beta1.ResourceManagerTagsOrBuilder - getDesiredNodePoolAutoConfigResourceManagerTagsOrBuilder(); - - /** - * - * - *
-   * Specify the details of in-transit encryption.
-   * 
- * - * - * optional .google.container.v1beta1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; - * - * - * @return Whether the desiredInTransitEncryptionConfig field is set. - */ - boolean hasDesiredInTransitEncryptionConfig(); - /** - * - * - *
-   * Specify the details of in-transit encryption.
-   * 
- * - * - * optional .google.container.v1beta1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; - * - * - * @return The enum numeric value on the wire for desiredInTransitEncryptionConfig. - */ - int getDesiredInTransitEncryptionConfigValue(); - /** - * - * - *
-   * Specify the details of in-transit encryption.
-   * 
- * - * - * optional .google.container.v1beta1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; - * - * - * @return The desiredInTransitEncryptionConfig. - */ - com.google.container.v1beta1.InTransitEncryptionConfig getDesiredInTransitEncryptionConfig(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequest.java deleted file mode 100644 index 4ab071c393c6..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequest.java +++ /dev/null @@ -1,1298 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4614 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4614 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4621 - * @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]; - * - * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4621 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * - * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4625 - * @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]; - * - * - * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4625 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * The name (project, location, cluster name) 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 name) 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.CompleteIPRotationRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.name_ = name_; - } - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000008; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 58: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4614 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4614 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4614 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4614 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4614 - * @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; - bitField0_ |= 0x00000001; - 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]; - * - * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4621 - * @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]; - * - * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4621 - * @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]; - * - * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4621 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4621 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - 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]; - * - * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4621 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * - * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4625 - * @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]; - * - * - * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4625 - * @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]; - * - * - * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4625 - * @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; - bitField0_ |= 0x00000004; - 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]; - * - * - * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4625 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - 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]; - * - * - * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4625 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name (project, location, cluster name) 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 name) 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 name) 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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster name) 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(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster name) 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; - bitField0_ |= 0x00000008; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequestOrBuilder.java deleted file mode 100644 index 57ff04c15036..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequestOrBuilder.java +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4614 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4614 - * @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]; - * - * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4621 - * @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]; - * - * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4621 - * @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]; - * - * - * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4625 - * @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]; - * - * - * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4625 - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getClusterIdBytes(); - - /** - * - * - *
-   * The name (project, location, cluster name) 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 name) 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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteNodePoolUpgradeRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteNodePoolUpgradeRequest.java deleted file mode 100644 index 906c182e4567..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteNodePoolUpgradeRequest.java +++ /dev/null @@ -1,643 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * CompleteNodePoolUpgradeRequest sets the name of target node pool to complete
- * upgrade.
- * 
- * - * Protobuf type {@code google.container.v1beta1.CompleteNodePoolUpgradeRequest} - */ -public final class CompleteNodePoolUpgradeRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.CompleteNodePoolUpgradeRequest) - CompleteNodePoolUpgradeRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CompleteNodePoolUpgradeRequest.newBuilder() to construct. - private CompleteNodePoolUpgradeRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CompleteNodePoolUpgradeRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CompleteNodePoolUpgradeRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_CompleteNodePoolUpgradeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_CompleteNodePoolUpgradeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.CompleteNodePoolUpgradeRequest.class, - com.google.container.v1beta1.CompleteNodePoolUpgradeRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * The name (project, location, cluster, node pool id) of the node pool to
-   * complete upgrade.
-   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * 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 (project, location, cluster, node pool id) of the node pool to
-   * complete upgrade.
-   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.CompleteNodePoolUpgradeRequest)) { - return super.equals(obj); - } - com.google.container.v1beta1.CompleteNodePoolUpgradeRequest other = - (com.google.container.v1beta1.CompleteNodePoolUpgradeRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.CompleteNodePoolUpgradeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.CompleteNodePoolUpgradeRequest parseFrom( - 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.CompleteNodePoolUpgradeRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.CompleteNodePoolUpgradeRequest parseFrom( - com.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.CompleteNodePoolUpgradeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.CompleteNodePoolUpgradeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.CompleteNodePoolUpgradeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.CompleteNodePoolUpgradeRequest parseFrom( - java.io.InputStream 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.CompleteNodePoolUpgradeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.CompleteNodePoolUpgradeRequest parseDelimitedFrom( - java.io.InputStream 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.CompleteNodePoolUpgradeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.CompleteNodePoolUpgradeRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.CompleteNodePoolUpgradeRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * CompleteNodePoolUpgradeRequest sets the name of target node pool to complete
-   * upgrade.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.CompleteNodePoolUpgradeRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.CompleteNodePoolUpgradeRequest) - com.google.container.v1beta1.CompleteNodePoolUpgradeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_CompleteNodePoolUpgradeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_CompleteNodePoolUpgradeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.CompleteNodePoolUpgradeRequest.class, - com.google.container.v1beta1.CompleteNodePoolUpgradeRequest.Builder.class); - } - - // Construct using com.google.container.v1beta1.CompleteNodePoolUpgradeRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 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_CompleteNodePoolUpgradeRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.CompleteNodePoolUpgradeRequest getDefaultInstanceForType() { - return com.google.container.v1beta1.CompleteNodePoolUpgradeRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.CompleteNodePoolUpgradeRequest build() { - com.google.container.v1beta1.CompleteNodePoolUpgradeRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.CompleteNodePoolUpgradeRequest buildPartial() { - com.google.container.v1beta1.CompleteNodePoolUpgradeRequest result = - new com.google.container.v1beta1.CompleteNodePoolUpgradeRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.CompleteNodePoolUpgradeRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @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.CompleteNodePoolUpgradeRequest) { - return mergeFrom((com.google.container.v1beta1.CompleteNodePoolUpgradeRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.CompleteNodePoolUpgradeRequest other) { - if (other == com.google.container.v1beta1.CompleteNodePoolUpgradeRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name (project, location, cluster, node pool id) of the node pool to
-     * complete upgrade.
-     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * 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 (project, location, cluster, node pool id) of the node pool to
-     * complete upgrade.
-     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * 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 (project, location, cluster, node pool id) of the node pool to
-     * complete upgrade.
-     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster, node pool id) of the node pool to
-     * complete upgrade.
-     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster, node pool id) of the node pool to
-     * complete upgrade.
-     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * 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; - bitField0_ |= 0x00000001; - 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.CompleteNodePoolUpgradeRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.CompleteNodePoolUpgradeRequest) - private static final com.google.container.v1beta1.CompleteNodePoolUpgradeRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.CompleteNodePoolUpgradeRequest(); - } - - public static com.google.container.v1beta1.CompleteNodePoolUpgradeRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CompleteNodePoolUpgradeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.CompleteNodePoolUpgradeRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteNodePoolUpgradeRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteNodePoolUpgradeRequestOrBuilder.java deleted file mode 100644 index 8efbcd0315f3..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteNodePoolUpgradeRequestOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface CompleteNodePoolUpgradeRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.CompleteNodePoolUpgradeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The name (project, location, cluster, node pool id) of the node pool to
-   * complete upgrade.
-   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The name (project, location, cluster, node pool id) of the node pool to
-   * complete upgrade.
-   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfidentialNodes.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfidentialNodes.java deleted file mode 100644 index ee2e95ec8a9a..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfidentialNodes.java +++ /dev/null @@ -1,536 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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_ = false; - /** - * - * - *
-   * Whether Confidential Nodes feature is enabled.
-   * 
- * - * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 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_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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.ConfidentialNodes result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean enabled_; - /** - * - * - *
-     * Whether Confidential Nodes feature is enabled.
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Whether Confidential Nodes feature is enabled.
-     * 
- * - * bool enabled = 1; - * - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether Confidential Nodes feature is enabled.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfidentialNodesOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfidentialNodesOrBuilder.java deleted file mode 100644 index aa9936a14270..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfidentialNodesOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfigConnectorConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfigConnectorConfig.java deleted file mode 100644 index 610fd90b4bce..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfigConnectorConfig.java +++ /dev/null @@ -1,535 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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_ = false; - /** - * - * - *
-   * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 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_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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.ConfigConnectorConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether Cloud Connector is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfigConnectorConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfigConnectorConfigOrBuilder.java deleted file mode 100644 index 1fa88b9a440a..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfigConnectorConfigOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CostManagementConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CostManagementConfig.java deleted file mode 100644 index 6268cb60bbd2..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CostManagementConfig.java +++ /dev/null @@ -1,535 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * Configuration for fine-grained cost management feature.
- * 
- * - * Protobuf type {@code google.container.v1beta1.CostManagementConfig} - */ -public final class CostManagementConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.CostManagementConfig) - CostManagementConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use CostManagementConfig.newBuilder() to construct. - private CostManagementConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CostManagementConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CostManagementConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_CostManagementConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_CostManagementConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.CostManagementConfig.class, - com.google.container.v1beta1.CostManagementConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * Whether the feature is enabled 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.CostManagementConfig)) { - return super.equals(obj); - } - com.google.container.v1beta1.CostManagementConfig other = - (com.google.container.v1beta1.CostManagementConfig) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.CostManagementConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.CostManagementConfig parseFrom( - 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.CostManagementConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.CostManagementConfig parseFrom( - com.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.CostManagementConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.CostManagementConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.CostManagementConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.CostManagementConfig parseFrom( - java.io.InputStream 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.CostManagementConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.CostManagementConfig parseDelimitedFrom( - java.io.InputStream 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.CostManagementConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.CostManagementConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.CostManagementConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 fine-grained cost management feature.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.CostManagementConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.CostManagementConfig) - com.google.container.v1beta1.CostManagementConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_CostManagementConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_CostManagementConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.CostManagementConfig.class, - com.google.container.v1beta1.CostManagementConfig.Builder.class); - } - - // Construct using com.google.container.v1beta1.CostManagementConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 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_CostManagementConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.CostManagementConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.CostManagementConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.CostManagementConfig build() { - com.google.container.v1beta1.CostManagementConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.CostManagementConfig buildPartial() { - com.google.container.v1beta1.CostManagementConfig result = - new com.google.container.v1beta1.CostManagementConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.CostManagementConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @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.CostManagementConfig) { - return mergeFrom((com.google.container.v1beta1.CostManagementConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.CostManagementConfig other) { - if (other == com.google.container.v1beta1.CostManagementConfig.getDefaultInstance()) - return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean enabled_; - /** - * - * - *
-     * Whether the feature is enabled or not.
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Whether the feature 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether the feature is enabled or not.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - 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.CostManagementConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.CostManagementConfig) - private static final com.google.container.v1beta1.CostManagementConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.CostManagementConfig(); - } - - public static com.google.container.v1beta1.CostManagementConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CostManagementConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.CostManagementConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CostManagementConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CostManagementConfigOrBuilder.java deleted file mode 100644 index 52f76b9e8a8a..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CostManagementConfigOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface CostManagementConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.CostManagementConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether the feature is enabled or not.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequest.java deleted file mode 100644 index 73b2de621eb2..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequest.java +++ /dev/null @@ -1,1388 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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); - } - - private int bitField0_; - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2952 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2952 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2959 - * @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]; - * - * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2959 - * @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 ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * 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 cluster_ == null ? com.google.container.v1beta1.Cluster.getDefaultInstance() : cluster_; - } - - public static final int PARENT_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getCluster()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parent_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCluster()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { - getClusterFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - cluster_ = null; - if (clusterBuilder_ != null) { - clusterBuilder_.dispose(); - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.CreateClusterRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.cluster_ = clusterBuilder_ == null ? cluster_ : clusterBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.parent_ = parent_; - } - result.bitField0_ |= to_bitField0_; - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasCluster()) { - mergeCluster(other.getCluster()); - } - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000008; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getClusterFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 42: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2952 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2952 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2952 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2952 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2952 - * @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; - bitField0_ |= 0x00000001; - 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]; - * - * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2959 - * @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]; - * - * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2959 - * @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]; - * - * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2959 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2959 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - 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]; - * - * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2959 - * @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; - bitField0_ |= 0x00000002; - 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 ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * 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; - } else { - clusterBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - 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(); - } else { - clusterBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - 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 (((bitField0_ & 0x00000004) != 0) - && cluster_ != null - && cluster_ != com.google.container.v1beta1.Cluster.getDefaultInstance()) { - getClusterBuilder().mergeFrom(value); - } else { - cluster_ = value; - } - } else { - clusterBuilder_.mergeFrom(value); - } - if (cluster_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - 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() { - bitField0_ = (bitField0_ & ~0x00000004); - cluster_ = null; - if (clusterBuilder_ != null) { - clusterBuilder_.dispose(); - clusterBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000004; - 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; - bitField0_ |= 0x00000008; - 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(); - bitField0_ = (bitField0_ & ~0x00000008); - 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; - bitField0_ |= 0x00000008; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequestOrBuilder.java deleted file mode 100644 index 2a3929b7c687..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequestOrBuilder.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2952 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2952 - * @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]; - * - * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2959 - * @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]; - * - * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2959 - * @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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequest.java deleted file mode 100644 index 20feaa564184..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequest.java +++ /dev/null @@ -1,1607 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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); - } - - private int bitField0_; - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3646 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3646 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3653 - * @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]; - * - * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3653 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * - * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3657 - * @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]; - * - * - * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3657 - * @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 ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * 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 nodePool_ == null - ? com.google.container.v1beta1.NodePool.getDefaultInstance() - : nodePool_; - } - - public static final int PARENT_FIELD_NUMBER = 6; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - * - * - *
-   * The parent (project, location, cluster name) 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 name) 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(4, getNodePool()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, parent_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getNodePool()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, parent_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { - getNodePoolFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - nodePool_ = null; - if (nodePoolBuilder_ != null) { - nodePoolBuilder_.dispose(); - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.CreateNodePoolRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.nodePool_ = nodePoolBuilder_ == null ? nodePool_ : nodePoolBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.parent_ = parent_; - } - result.bitField0_ |= to_bitField0_; - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasNodePool()) { - mergeNodePool(other.getNodePool()); - } - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000010; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getNodePoolFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 50: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3646 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3646 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3646 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3646 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3646 - * @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; - bitField0_ |= 0x00000001; - 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]; - * - * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3653 - * @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]; - * - * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3653 - * @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]; - * - * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3653 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3653 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - 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]; - * - * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3653 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * - * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3657 - * @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]; - * - * - * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3657 - * @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]; - * - * - * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3657 - * @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; - bitField0_ |= 0x00000004; - 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]; - * - * - * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3657 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - 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]; - * - * - * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3657 - * @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; - bitField0_ |= 0x00000004; - 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 ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-     * 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; - } else { - nodePoolBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - 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(); - } else { - nodePoolBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - 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 (((bitField0_ & 0x00000008) != 0) - && nodePool_ != null - && nodePool_ != com.google.container.v1beta1.NodePool.getDefaultInstance()) { - getNodePoolBuilder().mergeFrom(value); - } else { - nodePool_ = value; - } - } else { - nodePoolBuilder_.mergeFrom(value); - } - if (nodePool_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Required. The node pool to create.
-     * 
- * - * - * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearNodePool() { - bitField0_ = (bitField0_ & ~0x00000008); - nodePool_ = null; - if (nodePoolBuilder_ != null) { - nodePoolBuilder_.dispose(); - nodePoolBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000008; - 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 name) 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 name) 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 name) 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; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * The parent (project, location, cluster name) 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(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * - * - *
-     * The parent (project, location, cluster name) 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; - bitField0_ |= 0x00000010; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequestOrBuilder.java deleted file mode 100644 index 5984e8249e3f..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequestOrBuilder.java +++ /dev/null @@ -1,205 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3646 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3646 - * @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]; - * - * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3653 - * @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]; - * - * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3653 - * @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]; - * - * - * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3657 - * @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]; - * - * - * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3657 - * @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 name) 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 name) 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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DNSConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DNSConfig.java deleted file mode 100644 index 5e2e5a5dbfd9..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DNSConfig.java +++ /dev/null @@ -1,1259 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * DNSConfig contains the desired set of options for configuring clusterDNS.
- * 
- * - * Protobuf type {@code google.container.v1beta1.DNSConfig} - */ -public final class DNSConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.DNSConfig) - DNSConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use DNSConfig.newBuilder() to construct. - private DNSConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DNSConfig() { - clusterDns_ = 0; - clusterDnsScope_ = 0; - clusterDnsDomain_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DNSConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_DNSConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_DNSConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.DNSConfig.class, - com.google.container.v1beta1.DNSConfig.Builder.class); - } - - /** - * - * - *
-   * Provider lists the various in-cluster DNS providers.
-   * 
- * - * Protobuf enum {@code google.container.v1beta1.DNSConfig.Provider} - */ - public enum Provider implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value
-     * 
- * - * PROVIDER_UNSPECIFIED = 0; - */ - PROVIDER_UNSPECIFIED(0), - /** - * - * - *
-     * Use GKE default DNS provider(kube-dns) for DNS resolution.
-     * 
- * - * PLATFORM_DEFAULT = 1; - */ - PLATFORM_DEFAULT(1), - /** - * - * - *
-     * Use CloudDNS for DNS resolution.
-     * 
- * - * CLOUD_DNS = 2; - */ - CLOUD_DNS(2), - /** - * - * - *
-     * Use KubeDNS for DNS resolution.
-     * 
- * - * KUBE_DNS = 3; - */ - KUBE_DNS(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value
-     * 
- * - * PROVIDER_UNSPECIFIED = 0; - */ - public static final int PROVIDER_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Use GKE default DNS provider(kube-dns) for DNS resolution.
-     * 
- * - * PLATFORM_DEFAULT = 1; - */ - public static final int PLATFORM_DEFAULT_VALUE = 1; - /** - * - * - *
-     * Use CloudDNS for DNS resolution.
-     * 
- * - * CLOUD_DNS = 2; - */ - public static final int CLOUD_DNS_VALUE = 2; - /** - * - * - *
-     * Use KubeDNS for DNS resolution.
-     * 
- * - * KUBE_DNS = 3; - */ - public static final int KUBE_DNS_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 Provider valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Provider forNumber(int value) { - switch (value) { - case 0: - return PROVIDER_UNSPECIFIED; - case 1: - return PLATFORM_DEFAULT; - case 2: - return CLOUD_DNS; - case 3: - return KUBE_DNS; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Provider findValueByNumber(int number) { - return Provider.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1beta1.DNSConfig.getDescriptor().getEnumTypes().get(0); - } - - private static final Provider[] VALUES = values(); - - public static Provider valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Provider(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1beta1.DNSConfig.Provider) - } - - /** - * - * - *
-   * DNSScope lists the various scopes of access to cluster DNS records.
-   * 
- * - * Protobuf enum {@code google.container.v1beta1.DNSConfig.DNSScope} - */ - public enum DNSScope implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value, will be inferred as cluster scope.
-     * 
- * - * DNS_SCOPE_UNSPECIFIED = 0; - */ - DNS_SCOPE_UNSPECIFIED(0), - /** - * - * - *
-     * DNS records are accessible from within the cluster.
-     * 
- * - * CLUSTER_SCOPE = 1; - */ - CLUSTER_SCOPE(1), - /** - * - * - *
-     * DNS records are accessible from within the VPC.
-     * 
- * - * VPC_SCOPE = 2; - */ - VPC_SCOPE(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value, will be inferred as cluster scope.
-     * 
- * - * DNS_SCOPE_UNSPECIFIED = 0; - */ - public static final int DNS_SCOPE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * DNS records are accessible from within the cluster.
-     * 
- * - * CLUSTER_SCOPE = 1; - */ - public static final int CLUSTER_SCOPE_VALUE = 1; - /** - * - * - *
-     * DNS records are accessible from within the VPC.
-     * 
- * - * VPC_SCOPE = 2; - */ - public static final int VPC_SCOPE_VALUE = 2; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static DNSScope valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static DNSScope forNumber(int value) { - switch (value) { - case 0: - return DNS_SCOPE_UNSPECIFIED; - case 1: - return CLUSTER_SCOPE; - case 2: - return VPC_SCOPE; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DNSScope findValueByNumber(int number) { - return DNSScope.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1beta1.DNSConfig.getDescriptor().getEnumTypes().get(1); - } - - private static final DNSScope[] VALUES = values(); - - public static DNSScope valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private DNSScope(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1beta1.DNSConfig.DNSScope) - } - - public static final int CLUSTER_DNS_FIELD_NUMBER = 1; - private int clusterDns_ = 0; - /** - * - * - *
-   * cluster_dns indicates which in-cluster DNS provider should be used.
-   * 
- * - * .google.container.v1beta1.DNSConfig.Provider cluster_dns = 1; - * - * @return The enum numeric value on the wire for clusterDns. - */ - @java.lang.Override - public int getClusterDnsValue() { - return clusterDns_; - } - /** - * - * - *
-   * cluster_dns indicates which in-cluster DNS provider should be used.
-   * 
- * - * .google.container.v1beta1.DNSConfig.Provider cluster_dns = 1; - * - * @return The clusterDns. - */ - @java.lang.Override - public com.google.container.v1beta1.DNSConfig.Provider getClusterDns() { - com.google.container.v1beta1.DNSConfig.Provider result = - com.google.container.v1beta1.DNSConfig.Provider.forNumber(clusterDns_); - return result == null ? com.google.container.v1beta1.DNSConfig.Provider.UNRECOGNIZED : result; - } - - public static final int CLUSTER_DNS_SCOPE_FIELD_NUMBER = 2; - private int clusterDnsScope_ = 0; - /** - * - * - *
-   * cluster_dns_scope indicates the scope of access to cluster DNS records.
-   * 
- * - * .google.container.v1beta1.DNSConfig.DNSScope cluster_dns_scope = 2; - * - * @return The enum numeric value on the wire for clusterDnsScope. - */ - @java.lang.Override - public int getClusterDnsScopeValue() { - return clusterDnsScope_; - } - /** - * - * - *
-   * cluster_dns_scope indicates the scope of access to cluster DNS records.
-   * 
- * - * .google.container.v1beta1.DNSConfig.DNSScope cluster_dns_scope = 2; - * - * @return The clusterDnsScope. - */ - @java.lang.Override - public com.google.container.v1beta1.DNSConfig.DNSScope getClusterDnsScope() { - com.google.container.v1beta1.DNSConfig.DNSScope result = - com.google.container.v1beta1.DNSConfig.DNSScope.forNumber(clusterDnsScope_); - return result == null ? com.google.container.v1beta1.DNSConfig.DNSScope.UNRECOGNIZED : result; - } - - public static final int CLUSTER_DNS_DOMAIN_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object clusterDnsDomain_ = ""; - /** - * - * - *
-   * cluster_dns_domain is the suffix used for all cluster service records.
-   * 
- * - * string cluster_dns_domain = 3; - * - * @return The clusterDnsDomain. - */ - @java.lang.Override - public java.lang.String getClusterDnsDomain() { - java.lang.Object ref = clusterDnsDomain_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterDnsDomain_ = s; - return s; - } - } - /** - * - * - *
-   * cluster_dns_domain is the suffix used for all cluster service records.
-   * 
- * - * string cluster_dns_domain = 3; - * - * @return The bytes for clusterDnsDomain. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterDnsDomainBytes() { - java.lang.Object ref = clusterDnsDomain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterDnsDomain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (clusterDns_ - != com.google.container.v1beta1.DNSConfig.Provider.PROVIDER_UNSPECIFIED.getNumber()) { - output.writeEnum(1, clusterDns_); - } - if (clusterDnsScope_ - != com.google.container.v1beta1.DNSConfig.DNSScope.DNS_SCOPE_UNSPECIFIED.getNumber()) { - output.writeEnum(2, clusterDnsScope_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterDnsDomain_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterDnsDomain_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (clusterDns_ - != com.google.container.v1beta1.DNSConfig.Provider.PROVIDER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, clusterDns_); - } - if (clusterDnsScope_ - != com.google.container.v1beta1.DNSConfig.DNSScope.DNS_SCOPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, clusterDnsScope_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterDnsDomain_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterDnsDomain_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.DNSConfig)) { - return super.equals(obj); - } - com.google.container.v1beta1.DNSConfig other = (com.google.container.v1beta1.DNSConfig) obj; - - if (clusterDns_ != other.clusterDns_) return false; - if (clusterDnsScope_ != other.clusterDnsScope_) return false; - if (!getClusterDnsDomain().equals(other.getClusterDnsDomain())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CLUSTER_DNS_FIELD_NUMBER; - hash = (53 * hash) + clusterDns_; - hash = (37 * hash) + CLUSTER_DNS_SCOPE_FIELD_NUMBER; - hash = (53 * hash) + clusterDnsScope_; - hash = (37 * hash) + CLUSTER_DNS_DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getClusterDnsDomain().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.DNSConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.DNSConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.DNSConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.DNSConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.DNSConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.DNSConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.DNSConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.DNSConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.DNSConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.DNSConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.DNSConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.DNSConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1beta1.DNSConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * DNSConfig contains the desired set of options for configuring clusterDNS.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.DNSConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.DNSConfig) - com.google.container.v1beta1.DNSConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_DNSConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_DNSConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.DNSConfig.class, - com.google.container.v1beta1.DNSConfig.Builder.class); - } - - // Construct using com.google.container.v1beta1.DNSConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - clusterDns_ = 0; - clusterDnsScope_ = 0; - clusterDnsDomain_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_DNSConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.DNSConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.DNSConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.DNSConfig build() { - com.google.container.v1beta1.DNSConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.DNSConfig buildPartial() { - com.google.container.v1beta1.DNSConfig result = - new com.google.container.v1beta1.DNSConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.DNSConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.clusterDns_ = clusterDns_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.clusterDnsScope_ = clusterDnsScope_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterDnsDomain_ = clusterDnsDomain_; - } - } - - @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.DNSConfig) { - return mergeFrom((com.google.container.v1beta1.DNSConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.DNSConfig other) { - if (other == com.google.container.v1beta1.DNSConfig.getDefaultInstance()) return this; - if (other.clusterDns_ != 0) { - setClusterDnsValue(other.getClusterDnsValue()); - } - if (other.clusterDnsScope_ != 0) { - setClusterDnsScopeValue(other.getClusterDnsScopeValue()); - } - if (!other.getClusterDnsDomain().isEmpty()) { - clusterDnsDomain_ = other.clusterDnsDomain_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - clusterDns_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - clusterDnsScope_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - clusterDnsDomain_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int clusterDns_ = 0; - /** - * - * - *
-     * cluster_dns indicates which in-cluster DNS provider should be used.
-     * 
- * - * .google.container.v1beta1.DNSConfig.Provider cluster_dns = 1; - * - * @return The enum numeric value on the wire for clusterDns. - */ - @java.lang.Override - public int getClusterDnsValue() { - return clusterDns_; - } - /** - * - * - *
-     * cluster_dns indicates which in-cluster DNS provider should be used.
-     * 
- * - * .google.container.v1beta1.DNSConfig.Provider cluster_dns = 1; - * - * @param value The enum numeric value on the wire for clusterDns to set. - * @return This builder for chaining. - */ - public Builder setClusterDnsValue(int value) { - clusterDns_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * cluster_dns indicates which in-cluster DNS provider should be used.
-     * 
- * - * .google.container.v1beta1.DNSConfig.Provider cluster_dns = 1; - * - * @return The clusterDns. - */ - @java.lang.Override - public com.google.container.v1beta1.DNSConfig.Provider getClusterDns() { - com.google.container.v1beta1.DNSConfig.Provider result = - com.google.container.v1beta1.DNSConfig.Provider.forNumber(clusterDns_); - return result == null ? com.google.container.v1beta1.DNSConfig.Provider.UNRECOGNIZED : result; - } - /** - * - * - *
-     * cluster_dns indicates which in-cluster DNS provider should be used.
-     * 
- * - * .google.container.v1beta1.DNSConfig.Provider cluster_dns = 1; - * - * @param value The clusterDns to set. - * @return This builder for chaining. - */ - public Builder setClusterDns(com.google.container.v1beta1.DNSConfig.Provider value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - clusterDns_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * cluster_dns indicates which in-cluster DNS provider should be used.
-     * 
- * - * .google.container.v1beta1.DNSConfig.Provider cluster_dns = 1; - * - * @return This builder for chaining. - */ - public Builder clearClusterDns() { - bitField0_ = (bitField0_ & ~0x00000001); - clusterDns_ = 0; - onChanged(); - return this; - } - - private int clusterDnsScope_ = 0; - /** - * - * - *
-     * cluster_dns_scope indicates the scope of access to cluster DNS records.
-     * 
- * - * .google.container.v1beta1.DNSConfig.DNSScope cluster_dns_scope = 2; - * - * @return The enum numeric value on the wire for clusterDnsScope. - */ - @java.lang.Override - public int getClusterDnsScopeValue() { - return clusterDnsScope_; - } - /** - * - * - *
-     * cluster_dns_scope indicates the scope of access to cluster DNS records.
-     * 
- * - * .google.container.v1beta1.DNSConfig.DNSScope cluster_dns_scope = 2; - * - * @param value The enum numeric value on the wire for clusterDnsScope to set. - * @return This builder for chaining. - */ - public Builder setClusterDnsScopeValue(int value) { - clusterDnsScope_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * cluster_dns_scope indicates the scope of access to cluster DNS records.
-     * 
- * - * .google.container.v1beta1.DNSConfig.DNSScope cluster_dns_scope = 2; - * - * @return The clusterDnsScope. - */ - @java.lang.Override - public com.google.container.v1beta1.DNSConfig.DNSScope getClusterDnsScope() { - com.google.container.v1beta1.DNSConfig.DNSScope result = - com.google.container.v1beta1.DNSConfig.DNSScope.forNumber(clusterDnsScope_); - return result == null ? com.google.container.v1beta1.DNSConfig.DNSScope.UNRECOGNIZED : result; - } - /** - * - * - *
-     * cluster_dns_scope indicates the scope of access to cluster DNS records.
-     * 
- * - * .google.container.v1beta1.DNSConfig.DNSScope cluster_dns_scope = 2; - * - * @param value The clusterDnsScope to set. - * @return This builder for chaining. - */ - public Builder setClusterDnsScope(com.google.container.v1beta1.DNSConfig.DNSScope value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - clusterDnsScope_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * cluster_dns_scope indicates the scope of access to cluster DNS records.
-     * 
- * - * .google.container.v1beta1.DNSConfig.DNSScope cluster_dns_scope = 2; - * - * @return This builder for chaining. - */ - public Builder clearClusterDnsScope() { - bitField0_ = (bitField0_ & ~0x00000002); - clusterDnsScope_ = 0; - onChanged(); - return this; - } - - private java.lang.Object clusterDnsDomain_ = ""; - /** - * - * - *
-     * cluster_dns_domain is the suffix used for all cluster service records.
-     * 
- * - * string cluster_dns_domain = 3; - * - * @return The clusterDnsDomain. - */ - public java.lang.String getClusterDnsDomain() { - java.lang.Object ref = clusterDnsDomain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterDnsDomain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * cluster_dns_domain is the suffix used for all cluster service records.
-     * 
- * - * string cluster_dns_domain = 3; - * - * @return The bytes for clusterDnsDomain. - */ - public com.google.protobuf.ByteString getClusterDnsDomainBytes() { - java.lang.Object ref = clusterDnsDomain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterDnsDomain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * cluster_dns_domain is the suffix used for all cluster service records.
-     * 
- * - * string cluster_dns_domain = 3; - * - * @param value The clusterDnsDomain to set. - * @return This builder for chaining. - */ - public Builder setClusterDnsDomain(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - clusterDnsDomain_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * cluster_dns_domain is the suffix used for all cluster service records.
-     * 
- * - * string cluster_dns_domain = 3; - * - * @return This builder for chaining. - */ - public Builder clearClusterDnsDomain() { - clusterDnsDomain_ = getDefaultInstance().getClusterDnsDomain(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * cluster_dns_domain is the suffix used for all cluster service records.
-     * 
- * - * string cluster_dns_domain = 3; - * - * @param value The bytes for clusterDnsDomain to set. - * @return This builder for chaining. - */ - public Builder setClusterDnsDomainBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - clusterDnsDomain_ = value; - bitField0_ |= 0x00000004; - 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.DNSConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.DNSConfig) - private static final com.google.container.v1beta1.DNSConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.DNSConfig(); - } - - public static com.google.container.v1beta1.DNSConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DNSConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.DNSConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DNSConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DNSConfigOrBuilder.java deleted file mode 100644 index 30933d943710..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DNSConfigOrBuilder.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface DNSConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.DNSConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * cluster_dns indicates which in-cluster DNS provider should be used.
-   * 
- * - * .google.container.v1beta1.DNSConfig.Provider cluster_dns = 1; - * - * @return The enum numeric value on the wire for clusterDns. - */ - int getClusterDnsValue(); - /** - * - * - *
-   * cluster_dns indicates which in-cluster DNS provider should be used.
-   * 
- * - * .google.container.v1beta1.DNSConfig.Provider cluster_dns = 1; - * - * @return The clusterDns. - */ - com.google.container.v1beta1.DNSConfig.Provider getClusterDns(); - - /** - * - * - *
-   * cluster_dns_scope indicates the scope of access to cluster DNS records.
-   * 
- * - * .google.container.v1beta1.DNSConfig.DNSScope cluster_dns_scope = 2; - * - * @return The enum numeric value on the wire for clusterDnsScope. - */ - int getClusterDnsScopeValue(); - /** - * - * - *
-   * cluster_dns_scope indicates the scope of access to cluster DNS records.
-   * 
- * - * .google.container.v1beta1.DNSConfig.DNSScope cluster_dns_scope = 2; - * - * @return The clusterDnsScope. - */ - com.google.container.v1beta1.DNSConfig.DNSScope getClusterDnsScope(); - - /** - * - * - *
-   * cluster_dns_domain is the suffix used for all cluster service records.
-   * 
- * - * string cluster_dns_domain = 3; - * - * @return The clusterDnsDomain. - */ - java.lang.String getClusterDnsDomain(); - /** - * - * - *
-   * cluster_dns_domain is the suffix used for all cluster service records.
-   * 
- * - * string cluster_dns_domain = 3; - * - * @return The bytes for clusterDnsDomain. - */ - com.google.protobuf.ByteString getClusterDnsDomainBytes(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DailyMaintenanceWindow.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DailyMaintenanceWindow.java deleted file mode 100644 index f2b50321868d..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DailyMaintenanceWindow.java +++ /dev/null @@ -1,821 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startTime_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, startTime_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(duration_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, duration_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startTime_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, startTime_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(duration_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, duration_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.DailyMaintenanceWindow result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.startTime_ = startTime_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.duration_ = duration_; - } - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getDuration().isEmpty()) { - duration_ = other.duration_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: - { - startTime_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 18 - case 26: - { - duration_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - 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; - bitField0_ |= 0x00000002; - 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(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DailyMaintenanceWindowOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DailyMaintenanceWindowOrBuilder.java deleted file mode 100644 index ddee32993967..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DailyMaintenanceWindowOrBuilder.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DatabaseEncryption.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DatabaseEncryption.java deleted file mode 100644 index d76525c9e3ee..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DatabaseEncryption.java +++ /dev/null @@ -1,943 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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() { - keyName_ = ""; - state_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DatabaseEncryption(); - } - - 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 KEY_NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - 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; - } - } - - public static final int STATE_FIELD_NUMBER = 2; - private int state_ = 0; - /** - * - * - *
-   * The desired 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_; - } - /** - * - * - *
-   * The desired 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() { - com.google.container.v1beta1.DatabaseEncryption.State result = - com.google.container.v1beta1.DatabaseEncryption.State.forNumber(state_); - return result == null - ? com.google.container.v1beta1.DatabaseEncryption.State.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyName_); - } - if (state_ != com.google.container.v1beta1.DatabaseEncryption.State.UNKNOWN.getNumber()) { - output.writeEnum(2, state_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyName_)) { - 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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getKeyName().equals(other.getKeyName())) return false; - if (state_ != other.state_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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_NAME_FIELD_NUMBER; - hash = (53 * hash) + getKeyName().hashCode(); - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (29 * hash) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - keyName_ = ""; - state_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.DatabaseEncryption result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.keyName_ = keyName_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.state_ = state_; - } - } - - @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.getKeyName().isEmpty()) { - keyName_ = other.keyName_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - keyName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int state_ = 0; - /** - * - * - *
-     * The desired 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_; - } - /** - * - * - *
-     * The desired 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired 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() { - com.google.container.v1beta1.DatabaseEncryption.State result = - com.google.container.v1beta1.DatabaseEncryption.State.forNumber(state_); - return result == null - ? com.google.container.v1beta1.DatabaseEncryption.State.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * The desired 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(); - } - bitField0_ |= 0x00000002; - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The desired state of etcd encryption.
-     * 
- * - * .google.container.v1beta1.DatabaseEncryption.State state = 2; - * - * @return This builder for chaining. - */ - public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000002); - state_ = 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.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DatabaseEncryptionOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DatabaseEncryptionOrBuilder.java deleted file mode 100644 index e657cd673ee4..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DatabaseEncryptionOrBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface DatabaseEncryptionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.DatabaseEncryption) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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(); - - /** - * - * - *
-   * The desired state of etcd encryption.
-   * 
- * - * .google.container.v1beta1.DatabaseEncryption.State state = 2; - * - * @return The enum numeric value on the wire for state. - */ - int getStateValue(); - /** - * - * - *
-   * The desired state of etcd encryption.
-   * 
- * - * .google.container.v1beta1.DatabaseEncryption.State state = 2; - * - * @return The state. - */ - com.google.container.v1beta1.DatabaseEncryption.State getState(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DatapathProvider.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DatapathProvider.java deleted file mode 100644 index 18ff4ddefe1d..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DatapathProvider.java +++ /dev/null @@ -1,184 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(3); - } - - 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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DefaultSnatStatus.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DefaultSnatStatus.java deleted file mode 100644 index 2566046fee44..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DefaultSnatStatus.java +++ /dev/null @@ -1,536 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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_ = false; - /** - * - * - *
-   * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.DefaultSnatStatus result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.disabled_ = disabled_; - } - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - disabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Disables cluster default sNAT rules.
-     * 
- * - * bool disabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearDisabled() { - bitField0_ = (bitField0_ & ~0x00000001); - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DefaultSnatStatusOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DefaultSnatStatusOrBuilder.java deleted file mode 100644 index f416cf7cf293..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DefaultSnatStatusOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequest.java deleted file mode 100644 index d8f2b4422ade..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequest.java +++ /dev/null @@ -1,1297 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3411 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3411 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3418 - * @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]; - * - * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3418 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * - * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3422 - * @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]; - * - * - * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3422 - * @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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.DeleteClusterRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.name_ = name_; - } - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000008; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3411 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3411 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3411 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3411 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3411 - * @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; - bitField0_ |= 0x00000001; - 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]; - * - * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3418 - * @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]; - * - * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3418 - * @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]; - * - * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3418 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3418 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - 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]; - * - * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3418 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * - * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3422 - * @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]; - * - * - * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3422 - * @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]; - * - * - * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3422 - * @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; - bitField0_ |= 0x00000004; - 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]; - * - * - * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3422 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - 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]; - * - * - * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3422 - * @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; - bitField0_ |= 0x00000004; - 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; - bitField0_ |= 0x00000008; - 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(); - bitField0_ = (bitField0_ & ~0x00000008); - 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; - bitField0_ |= 0x00000008; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequestOrBuilder.java deleted file mode 100644 index ad2dca37f5ed..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequestOrBuilder.java +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3411 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3411 - * @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]; - * - * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3418 - * @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]; - * - * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3418 - * @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]; - * - * - * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3422 - * @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]; - * - * - * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3422 - * @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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequest.java deleted file mode 100644 index 6bcf043ae1cf..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequest.java +++ /dev/null @@ -1,1521 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3674 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3674 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3681 - * @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]; - * - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3681 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3685 - * @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]; - * - * - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3685 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3690 - * @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]; - * - * - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3690 - * @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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.DeleteNodePoolRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.nodePoolId_ = nodePoolId_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.name_ = name_; - } - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getNodePoolId().isEmpty()) { - nodePoolId_ = other.nodePoolId_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000010; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - nodePoolId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 50: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3674 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3674 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3674 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3674 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3674 - * @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; - bitField0_ |= 0x00000001; - 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]; - * - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3681 - * @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]; - * - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3681 - * @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]; - * - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3681 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3681 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - 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]; - * - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3681 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3685 - * @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]; - * - * - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3685 - * @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]; - * - * - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3685 - * @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; - bitField0_ |= 0x00000004; - 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]; - * - * - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3685 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - 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]; - * - * - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3685 - * @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; - bitField0_ |= 0x00000004; - 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]; - * - * - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3690 - * @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]; - * - * - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3690 - * @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]; - * - * - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3690 - * @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; - bitField0_ |= 0x00000008; - 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]; - * - * - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3690 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearNodePoolId() { - nodePoolId_ = getDefaultInstance().getNodePoolId(); - bitField0_ = (bitField0_ & ~0x00000008); - 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]; - * - * - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3690 - * @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; - bitField0_ |= 0x00000008; - 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; - bitField0_ |= 0x00000010; - 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(); - bitField0_ = (bitField0_ & ~0x00000010); - 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; - bitField0_ |= 0x00000010; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequestOrBuilder.java deleted file mode 100644 index 4f98e295b9ea..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequestOrBuilder.java +++ /dev/null @@ -1,199 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3674 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3674 - * @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]; - * - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3681 - * @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]; - * - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3681 - * @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]; - * - * - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3685 - * @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]; - * - * - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3685 - * @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]; - * - * - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3690 - * @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]; - * - * - * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3690 - * @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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DnsCacheConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DnsCacheConfig.java deleted file mode 100644 index accd4820cedf..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DnsCacheConfig.java +++ /dev/null @@ -1,534 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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_ = false; - /** - * - * - *
-   * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 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_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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.DnsCacheConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether NodeLocal DNSCache is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DnsCacheConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DnsCacheConfigOrBuilder.java deleted file mode 100644 index fd4e2021574e..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DnsCacheConfigOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EnterpriseConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EnterpriseConfig.java deleted file mode 100644 index b8a0f8684418..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EnterpriseConfig.java +++ /dev/null @@ -1,776 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * EnterpriseConfig is the cluster enterprise configuration.
- * 
- * - * Protobuf type {@code google.container.v1beta1.EnterpriseConfig} - */ -public final class EnterpriseConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.EnterpriseConfig) - EnterpriseConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use EnterpriseConfig.newBuilder() to construct. - private EnterpriseConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private EnterpriseConfig() { - clusterTier_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new EnterpriseConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_EnterpriseConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_EnterpriseConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.EnterpriseConfig.class, - com.google.container.v1beta1.EnterpriseConfig.Builder.class); - } - - /** - * - * - *
-   * Premium tiers for GKE Cluster.
-   * 
- * - * Protobuf enum {@code google.container.v1beta1.EnterpriseConfig.ClusterTier} - */ - public enum ClusterTier implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * CLUSTER_TIER_UNSPECIFIED is when cluster_tier is not set.
-     * 
- * - * CLUSTER_TIER_UNSPECIFIED = 0; - */ - CLUSTER_TIER_UNSPECIFIED(0), - /** - * - * - *
-     * STANDARD indicates a standard GKE cluster.
-     * 
- * - * STANDARD = 1; - */ - STANDARD(1), - /** - * - * - *
-     * ENTERPRISE indicates a GKE Enterprise cluster.
-     * 
- * - * ENTERPRISE = 2; - */ - ENTERPRISE(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * CLUSTER_TIER_UNSPECIFIED is when cluster_tier is not set.
-     * 
- * - * CLUSTER_TIER_UNSPECIFIED = 0; - */ - public static final int CLUSTER_TIER_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * STANDARD indicates a standard GKE cluster.
-     * 
- * - * STANDARD = 1; - */ - public static final int STANDARD_VALUE = 1; - /** - * - * - *
-     * ENTERPRISE indicates a GKE Enterprise cluster.
-     * 
- * - * ENTERPRISE = 2; - */ - public static final int ENTERPRISE_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 ClusterTier 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 ClusterTier forNumber(int value) { - switch (value) { - case 0: - return CLUSTER_TIER_UNSPECIFIED; - case 1: - return STANDARD; - case 2: - return ENTERPRISE; - 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 ClusterTier findValueByNumber(int number) { - return ClusterTier.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.EnterpriseConfig.getDescriptor().getEnumTypes().get(0); - } - - private static final ClusterTier[] VALUES = values(); - - public static ClusterTier 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 ClusterTier(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1beta1.EnterpriseConfig.ClusterTier) - } - - public static final int CLUSTER_TIER_FIELD_NUMBER = 1; - private int clusterTier_ = 0; - /** - * - * - *
-   * Output only. [Output only] cluster_tier specifies the premium tier of the
-   * cluster.
-   * 
- * - * - * .google.container.v1beta1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for clusterTier. - */ - @java.lang.Override - public int getClusterTierValue() { - return clusterTier_; - } - /** - * - * - *
-   * Output only. [Output only] cluster_tier specifies the premium tier of the
-   * cluster.
-   * 
- * - * - * .google.container.v1beta1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The clusterTier. - */ - @java.lang.Override - public com.google.container.v1beta1.EnterpriseConfig.ClusterTier getClusterTier() { - com.google.container.v1beta1.EnterpriseConfig.ClusterTier result = - com.google.container.v1beta1.EnterpriseConfig.ClusterTier.forNumber(clusterTier_); - return result == null - ? com.google.container.v1beta1.EnterpriseConfig.ClusterTier.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 (clusterTier_ - != com.google.container.v1beta1.EnterpriseConfig.ClusterTier.CLUSTER_TIER_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, clusterTier_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (clusterTier_ - != com.google.container.v1beta1.EnterpriseConfig.ClusterTier.CLUSTER_TIER_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, clusterTier_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.EnterpriseConfig)) { - return super.equals(obj); - } - com.google.container.v1beta1.EnterpriseConfig other = - (com.google.container.v1beta1.EnterpriseConfig) obj; - - if (clusterTier_ != other.clusterTier_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CLUSTER_TIER_FIELD_NUMBER; - hash = (53 * hash) + clusterTier_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.EnterpriseConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.EnterpriseConfig parseFrom( - 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.EnterpriseConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.EnterpriseConfig parseFrom( - com.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.EnterpriseConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.EnterpriseConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.EnterpriseConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.EnterpriseConfig parseFrom( - java.io.InputStream 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.EnterpriseConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.EnterpriseConfig parseDelimitedFrom( - java.io.InputStream 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.EnterpriseConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.EnterpriseConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.EnterpriseConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * EnterpriseConfig is the cluster enterprise configuration.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.EnterpriseConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.EnterpriseConfig) - com.google.container.v1beta1.EnterpriseConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_EnterpriseConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_EnterpriseConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.EnterpriseConfig.class, - com.google.container.v1beta1.EnterpriseConfig.Builder.class); - } - - // Construct using com.google.container.v1beta1.EnterpriseConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - clusterTier_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_EnterpriseConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.EnterpriseConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.EnterpriseConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.EnterpriseConfig build() { - com.google.container.v1beta1.EnterpriseConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.EnterpriseConfig buildPartial() { - com.google.container.v1beta1.EnterpriseConfig result = - new com.google.container.v1beta1.EnterpriseConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.EnterpriseConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.clusterTier_ = clusterTier_; - } - } - - @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.EnterpriseConfig) { - return mergeFrom((com.google.container.v1beta1.EnterpriseConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.EnterpriseConfig other) { - if (other == com.google.container.v1beta1.EnterpriseConfig.getDefaultInstance()) return this; - if (other.clusterTier_ != 0) { - setClusterTierValue(other.getClusterTierValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - clusterTier_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int clusterTier_ = 0; - /** - * - * - *
-     * Output only. [Output only] cluster_tier specifies the premium tier of the
-     * cluster.
-     * 
- * - * - * .google.container.v1beta1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for clusterTier. - */ - @java.lang.Override - public int getClusterTierValue() { - return clusterTier_; - } - /** - * - * - *
-     * Output only. [Output only] cluster_tier specifies the premium tier of the
-     * cluster.
-     * 
- * - * - * .google.container.v1beta1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for clusterTier to set. - * @return This builder for chaining. - */ - public Builder setClusterTierValue(int value) { - clusterTier_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. [Output only] cluster_tier specifies the premium tier of the
-     * cluster.
-     * 
- * - * - * .google.container.v1beta1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The clusterTier. - */ - @java.lang.Override - public com.google.container.v1beta1.EnterpriseConfig.ClusterTier getClusterTier() { - com.google.container.v1beta1.EnterpriseConfig.ClusterTier result = - com.google.container.v1beta1.EnterpriseConfig.ClusterTier.forNumber(clusterTier_); - return result == null - ? com.google.container.v1beta1.EnterpriseConfig.ClusterTier.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Output only. [Output only] cluster_tier specifies the premium tier of the
-     * cluster.
-     * 
- * - * - * .google.container.v1beta1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The clusterTier to set. - * @return This builder for chaining. - */ - public Builder setClusterTier(com.google.container.v1beta1.EnterpriseConfig.ClusterTier value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - clusterTier_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. [Output only] cluster_tier specifies the premium tier of the
-     * cluster.
-     * 
- * - * - * .google.container.v1beta1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearClusterTier() { - bitField0_ = (bitField0_ & ~0x00000001); - clusterTier_ = 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.EnterpriseConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.EnterpriseConfig) - private static final com.google.container.v1beta1.EnterpriseConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.EnterpriseConfig(); - } - - public static com.google.container.v1beta1.EnterpriseConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnterpriseConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.EnterpriseConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EnterpriseConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EnterpriseConfigOrBuilder.java deleted file mode 100644 index 150787cba7b7..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EnterpriseConfigOrBuilder.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface EnterpriseConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.EnterpriseConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. [Output only] cluster_tier specifies the premium tier of the
-   * cluster.
-   * 
- * - * - * .google.container.v1beta1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for clusterTier. - */ - int getClusterTierValue(); - /** - * - * - *
-   * Output only. [Output only] cluster_tier specifies the premium tier of the
-   * cluster.
-   * 
- * - * - * .google.container.v1beta1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The clusterTier. - */ - com.google.container.v1beta1.EnterpriseConfig.ClusterTier getClusterTier(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EphemeralStorageConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EphemeralStorageConfig.java deleted file mode 100644 index 978e4c406872..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EphemeralStorageConfig.java +++ /dev/null @@ -1,601 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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_ = 0; - /** - * - * - *
-   * Number of local SSDs to use to back ephemeral storage. Uses NVMe
-   * interfaces. The limit for this value is dependent upon the maximum number
-   * of disk available on a machine per zone. See:
-   * https://cloud.google.com/compute/docs/disks/local-ssd
-   * for more information.
-   *
-   * A zero (or unset) value has different meanings depending on machine type
-   * being used:
-   * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
-   * zero (or unset) means to disable using local SSDs as ephemeral storage.
-   * 2. For Gen3 machines which dictate a specific number of local ssds, zero
-   * (or unset) means to use the default number of local ssds that goes with
-   * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
-   * ssds would be provisioned. For c3-standard-8 (which doesn't support local
-   * ssds), 0 will be provisioned. See
-   * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
-   * for more info.
-   * 
- * - * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.EphemeralStorageConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.localSsdCount_ = localSsdCount_; - } - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - localSsdCount_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int localSsdCount_; - /** - * - * - *
-     * Number of local SSDs to use to back ephemeral storage. Uses NVMe
-     * interfaces. The limit for this value is dependent upon the maximum number
-     * of disk available on a machine per zone. See:
-     * https://cloud.google.com/compute/docs/disks/local-ssd
-     * for more information.
-     *
-     * A zero (or unset) value has different meanings depending on machine type
-     * being used:
-     * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
-     * zero (or unset) means to disable using local SSDs as ephemeral storage.
-     * 2. For Gen3 machines which dictate a specific number of local ssds, zero
-     * (or unset) means to use the default number of local ssds that goes with
-     * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
-     * ssds would be provisioned. For c3-standard-8 (which doesn't support local
-     * ssds), 0 will be provisioned. See
-     * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
-     * for more info.
-     * 
- * - * 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. The limit for this value is dependent upon the maximum number
-     * of disk available on a machine per zone. See:
-     * https://cloud.google.com/compute/docs/disks/local-ssd
-     * for more information.
-     *
-     * A zero (or unset) value has different meanings depending on machine type
-     * being used:
-     * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
-     * zero (or unset) means to disable using local SSDs as ephemeral storage.
-     * 2. For Gen3 machines which dictate a specific number of local ssds, zero
-     * (or unset) means to use the default number of local ssds that goes with
-     * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
-     * ssds would be provisioned. For c3-standard-8 (which doesn't support local
-     * ssds), 0 will be provisioned. See
-     * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
-     * for more info.
-     * 
- * - * int32 local_ssd_count = 1; - * - * @param value The localSsdCount to set. - * @return This builder for chaining. - */ - public Builder setLocalSsdCount(int value) { - - localSsdCount_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Number of local SSDs to use to back ephemeral storage. Uses NVMe
-     * interfaces. The limit for this value is dependent upon the maximum number
-     * of disk available on a machine per zone. See:
-     * https://cloud.google.com/compute/docs/disks/local-ssd
-     * for more information.
-     *
-     * A zero (or unset) value has different meanings depending on machine type
-     * being used:
-     * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
-     * zero (or unset) means to disable using local SSDs as ephemeral storage.
-     * 2. For Gen3 machines which dictate a specific number of local ssds, zero
-     * (or unset) means to use the default number of local ssds that goes with
-     * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
-     * ssds would be provisioned. For c3-standard-8 (which doesn't support local
-     * ssds), 0 will be provisioned. See
-     * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
-     * for more info.
-     * 
- * - * int32 local_ssd_count = 1; - * - * @return This builder for chaining. - */ - public Builder clearLocalSsdCount() { - bitField0_ = (bitField0_ & ~0x00000001); - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EphemeralStorageConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EphemeralStorageConfigOrBuilder.java deleted file mode 100644 index fcbbf0dc9fc9..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EphemeralStorageConfigOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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. The limit for this value is dependent upon the maximum number
-   * of disk available on a machine per zone. See:
-   * https://cloud.google.com/compute/docs/disks/local-ssd
-   * for more information.
-   *
-   * A zero (or unset) value has different meanings depending on machine type
-   * being used:
-   * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
-   * zero (or unset) means to disable using local SSDs as ephemeral storage.
-   * 2. For Gen3 machines which dictate a specific number of local ssds, zero
-   * (or unset) means to use the default number of local ssds that goes with
-   * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
-   * ssds would be provisioned. For c3-standard-8 (which doesn't support local
-   * ssds), 0 will be provisioned. See
-   * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
-   * for more info.
-   * 
- * - * int32 local_ssd_count = 1; - * - * @return The localSsdCount. - */ - int getLocalSsdCount(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EphemeralStorageLocalSsdConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EphemeralStorageLocalSsdConfig.java deleted file mode 100644 index a9dc2f280ad4..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EphemeralStorageLocalSsdConfig.java +++ /dev/null @@ -1,607 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * EphemeralStorageLocalSsdConfig contains configuration for the node ephemeral
- * storage using Local SSDs.
- * 
- * - * Protobuf type {@code google.container.v1beta1.EphemeralStorageLocalSsdConfig} - */ -public final class EphemeralStorageLocalSsdConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.EphemeralStorageLocalSsdConfig) - EphemeralStorageLocalSsdConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use EphemeralStorageLocalSsdConfig.newBuilder() to construct. - private EphemeralStorageLocalSsdConfig( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private EphemeralStorageLocalSsdConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new EphemeralStorageLocalSsdConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_EphemeralStorageLocalSsdConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_EphemeralStorageLocalSsdConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.EphemeralStorageLocalSsdConfig.class, - com.google.container.v1beta1.EphemeralStorageLocalSsdConfig.Builder.class); - } - - public static final int LOCAL_SSD_COUNT_FIELD_NUMBER = 1; - private int localSsdCount_ = 0; - /** - * - * - *
-   * Number of local SSDs to use to back ephemeral storage. Uses NVMe
-   * interfaces.
-   *
-   * A zero (or unset) value has different meanings depending on machine type
-   * being used:
-   * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
-   * zero (or unset) means to disable using local SSDs as ephemeral storage. The
-   * limit for this value is dependent upon the maximum number of disk
-   * available on a machine per zone. See:
-   * https://cloud.google.com/compute/docs/disks/local-ssd
-   * for more information.
-   * 2. For Gen3 machines which dictate a specific number of local ssds, zero
-   * (or unset) means to use the default number of local ssds that goes with
-   * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
-   * ssds would be provisioned. For c3-standard-8 (which doesn't support local
-   * ssds), 0 will be provisioned. See
-   * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
-   * for more info.
-   * 
- * - * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.EphemeralStorageLocalSsdConfig)) { - return super.equals(obj); - } - com.google.container.v1beta1.EphemeralStorageLocalSsdConfig other = - (com.google.container.v1beta1.EphemeralStorageLocalSsdConfig) obj; - - if (getLocalSsdCount() != other.getLocalSsdCount()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.EphemeralStorageLocalSsdConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.EphemeralStorageLocalSsdConfig parseFrom( - 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.EphemeralStorageLocalSsdConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.EphemeralStorageLocalSsdConfig parseFrom( - com.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.EphemeralStorageLocalSsdConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.EphemeralStorageLocalSsdConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.EphemeralStorageLocalSsdConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.EphemeralStorageLocalSsdConfig parseFrom( - java.io.InputStream 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.EphemeralStorageLocalSsdConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.EphemeralStorageLocalSsdConfig parseDelimitedFrom( - java.io.InputStream 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.EphemeralStorageLocalSsdConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.EphemeralStorageLocalSsdConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.EphemeralStorageLocalSsdConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * EphemeralStorageLocalSsdConfig contains configuration for the node ephemeral
-   * storage using Local SSDs.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.EphemeralStorageLocalSsdConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.EphemeralStorageLocalSsdConfig) - com.google.container.v1beta1.EphemeralStorageLocalSsdConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_EphemeralStorageLocalSsdConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_EphemeralStorageLocalSsdConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.EphemeralStorageLocalSsdConfig.class, - com.google.container.v1beta1.EphemeralStorageLocalSsdConfig.Builder.class); - } - - // Construct using com.google.container.v1beta1.EphemeralStorageLocalSsdConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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_EphemeralStorageLocalSsdConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.EphemeralStorageLocalSsdConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.EphemeralStorageLocalSsdConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.EphemeralStorageLocalSsdConfig build() { - com.google.container.v1beta1.EphemeralStorageLocalSsdConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.EphemeralStorageLocalSsdConfig buildPartial() { - com.google.container.v1beta1.EphemeralStorageLocalSsdConfig result = - new com.google.container.v1beta1.EphemeralStorageLocalSsdConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.EphemeralStorageLocalSsdConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.localSsdCount_ = localSsdCount_; - } - } - - @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.EphemeralStorageLocalSsdConfig) { - return mergeFrom((com.google.container.v1beta1.EphemeralStorageLocalSsdConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.EphemeralStorageLocalSsdConfig other) { - if (other == com.google.container.v1beta1.EphemeralStorageLocalSsdConfig.getDefaultInstance()) - return this; - if (other.getLocalSsdCount() != 0) { - setLocalSsdCount(other.getLocalSsdCount()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - localSsdCount_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int localSsdCount_; - /** - * - * - *
-     * Number of local SSDs to use to back ephemeral storage. Uses NVMe
-     * interfaces.
-     *
-     * A zero (or unset) value has different meanings depending on machine type
-     * being used:
-     * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
-     * zero (or unset) means to disable using local SSDs as ephemeral storage. The
-     * limit for this value is dependent upon the maximum number of disk
-     * available on a machine per zone. See:
-     * https://cloud.google.com/compute/docs/disks/local-ssd
-     * for more information.
-     * 2. For Gen3 machines which dictate a specific number of local ssds, zero
-     * (or unset) means to use the default number of local ssds that goes with
-     * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
-     * ssds would be provisioned. For c3-standard-8 (which doesn't support local
-     * ssds), 0 will be provisioned. See
-     * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
-     * for more info.
-     * 
- * - * 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.
-     *
-     * A zero (or unset) value has different meanings depending on machine type
-     * being used:
-     * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
-     * zero (or unset) means to disable using local SSDs as ephemeral storage. The
-     * limit for this value is dependent upon the maximum number of disk
-     * available on a machine per zone. See:
-     * https://cloud.google.com/compute/docs/disks/local-ssd
-     * for more information.
-     * 2. For Gen3 machines which dictate a specific number of local ssds, zero
-     * (or unset) means to use the default number of local ssds that goes with
-     * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
-     * ssds would be provisioned. For c3-standard-8 (which doesn't support local
-     * ssds), 0 will be provisioned. See
-     * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
-     * for more info.
-     * 
- * - * int32 local_ssd_count = 1; - * - * @param value The localSsdCount to set. - * @return This builder for chaining. - */ - public Builder setLocalSsdCount(int value) { - - localSsdCount_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Number of local SSDs to use to back ephemeral storage. Uses NVMe
-     * interfaces.
-     *
-     * A zero (or unset) value has different meanings depending on machine type
-     * being used:
-     * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
-     * zero (or unset) means to disable using local SSDs as ephemeral storage. The
-     * limit for this value is dependent upon the maximum number of disk
-     * available on a machine per zone. See:
-     * https://cloud.google.com/compute/docs/disks/local-ssd
-     * for more information.
-     * 2. For Gen3 machines which dictate a specific number of local ssds, zero
-     * (or unset) means to use the default number of local ssds that goes with
-     * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
-     * ssds would be provisioned. For c3-standard-8 (which doesn't support local
-     * ssds), 0 will be provisioned. See
-     * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
-     * for more info.
-     * 
- * - * int32 local_ssd_count = 1; - * - * @return This builder for chaining. - */ - public Builder clearLocalSsdCount() { - bitField0_ = (bitField0_ & ~0x00000001); - 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.EphemeralStorageLocalSsdConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.EphemeralStorageLocalSsdConfig) - private static final com.google.container.v1beta1.EphemeralStorageLocalSsdConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.EphemeralStorageLocalSsdConfig(); - } - - public static com.google.container.v1beta1.EphemeralStorageLocalSsdConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EphemeralStorageLocalSsdConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.EphemeralStorageLocalSsdConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EphemeralStorageLocalSsdConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EphemeralStorageLocalSsdConfigOrBuilder.java deleted file mode 100644 index 31f9e3e68ac3..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EphemeralStorageLocalSsdConfigOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface EphemeralStorageLocalSsdConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.EphemeralStorageLocalSsdConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Number of local SSDs to use to back ephemeral storage. Uses NVMe
-   * interfaces.
-   *
-   * A zero (or unset) value has different meanings depending on machine type
-   * being used:
-   * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
-   * zero (or unset) means to disable using local SSDs as ephemeral storage. The
-   * limit for this value is dependent upon the maximum number of disk
-   * available on a machine per zone. See:
-   * https://cloud.google.com/compute/docs/disks/local-ssd
-   * for more information.
-   * 2. For Gen3 machines which dictate a specific number of local ssds, zero
-   * (or unset) means to use the default number of local ssds that goes with
-   * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
-   * ssds would be provisioned. For c3-standard-8 (which doesn't support local
-   * ssds), 0 will be provisioned. See
-   * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
-   * for more info.
-   * 
- * - * int32 local_ssd_count = 1; - * - * @return The localSsdCount. - */ - int getLocalSsdCount(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/FastSocket.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/FastSocket.java deleted file mode 100644 index b8c400ee9ba0..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/FastSocket.java +++ /dev/null @@ -1,533 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * Configuration of Fast Socket feature.
- * 
- * - * Protobuf type {@code google.container.v1beta1.FastSocket} - */ -public final class FastSocket extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.FastSocket) - FastSocketOrBuilder { - private static final long serialVersionUID = 0L; - // Use FastSocket.newBuilder() to construct. - private FastSocket(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private FastSocket() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new FastSocket(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_FastSocket_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_FastSocket_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.FastSocket.class, - com.google.container.v1beta1.FastSocket.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * Whether Fast Socket features are enabled in the node pool.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.FastSocket)) { - return super.equals(obj); - } - com.google.container.v1beta1.FastSocket other = (com.google.container.v1beta1.FastSocket) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.FastSocket parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.FastSocket parseFrom( - 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.FastSocket parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.FastSocket parseFrom( - com.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.FastSocket parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.FastSocket parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.FastSocket parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.FastSocket parseFrom( - java.io.InputStream 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.FastSocket parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.FastSocket parseDelimitedFrom( - java.io.InputStream 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.FastSocket parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.FastSocket parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.FastSocket prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 Fast Socket feature.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.FastSocket} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.FastSocket) - com.google.container.v1beta1.FastSocketOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_FastSocket_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_FastSocket_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.FastSocket.class, - com.google.container.v1beta1.FastSocket.Builder.class); - } - - // Construct using com.google.container.v1beta1.FastSocket.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 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_FastSocket_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.FastSocket getDefaultInstanceForType() { - return com.google.container.v1beta1.FastSocket.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.FastSocket build() { - com.google.container.v1beta1.FastSocket result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.FastSocket buildPartial() { - com.google.container.v1beta1.FastSocket result = - new com.google.container.v1beta1.FastSocket(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.FastSocket result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @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.FastSocket) { - return mergeFrom((com.google.container.v1beta1.FastSocket) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.FastSocket other) { - if (other == com.google.container.v1beta1.FastSocket.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean enabled_; - /** - * - * - *
-     * Whether Fast Socket features are enabled in the node pool.
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Whether Fast Socket features are enabled in the node pool.
-     * 
- * - * bool enabled = 1; - * - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether Fast Socket features are enabled in the node pool.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - 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.FastSocket) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.FastSocket) - private static final com.google.container.v1beta1.FastSocket DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.FastSocket(); - } - - public static com.google.container.v1beta1.FastSocket getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FastSocket parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.FastSocket getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/FastSocketOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/FastSocketOrBuilder.java deleted file mode 100644 index f244abd86472..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/FastSocketOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface FastSocketOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.FastSocket) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether Fast Socket features are enabled in the node pool.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Fleet.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Fleet.java deleted file mode 100644 index dae447b51fc3..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Fleet.java +++ /dev/null @@ -1,928 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * Fleet is the fleet configuration for the cluster.
- * 
- * - * Protobuf type {@code google.container.v1beta1.Fleet} - */ -public final class Fleet extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.Fleet) - FleetOrBuilder { - private static final long serialVersionUID = 0L; - // Use Fleet.newBuilder() to construct. - private Fleet(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Fleet() { - project_ = ""; - membership_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Fleet(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_Fleet_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_Fleet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.Fleet.class, - com.google.container.v1beta1.Fleet.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object project_ = ""; - /** - * - * - *
-   * The Fleet host project(project ID or project number) where this cluster
-   * will be registered to. This field cannot be changed after the cluster has
-   * been registered.
-   * 
- * - * string project = 1; - * - * @return The project. - */ - @java.lang.Override - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } - } - /** - * - * - *
-   * The Fleet host project(project ID or project number) where this cluster
-   * will be registered to. This field cannot be changed after the cluster has
-   * been registered.
-   * 
- * - * string project = 1; - * - * @return The bytes for project. - */ - @java.lang.Override - public com.google.protobuf.ByteString getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MEMBERSHIP_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object membership_ = ""; - /** - * - * - *
-   * [Output only] The full resource name of the registered fleet membership of
-   * the cluster, in the format
-   * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
-   * 
- * - * string membership = 2; - * - * @return The membership. - */ - @java.lang.Override - public java.lang.String getMembership() { - java.lang.Object ref = membership_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - membership_ = s; - return s; - } - } - /** - * - * - *
-   * [Output only] The full resource name of the registered fleet membership of
-   * the cluster, in the format
-   * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
-   * 
- * - * string membership = 2; - * - * @return The bytes for membership. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMembershipBytes() { - java.lang.Object ref = membership_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - membership_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PRE_REGISTERED_FIELD_NUMBER = 3; - private boolean preRegistered_ = false; - /** - * - * - *
-   * [Output only] Whether the cluster has been registered through the fleet
-   * API.
-   * 
- * - * bool pre_registered = 3; - * - * @return The preRegistered. - */ - @java.lang.Override - public boolean getPreRegistered() { - return preRegistered_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(membership_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, membership_); - } - if (preRegistered_ != false) { - output.writeBool(3, preRegistered_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(membership_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, membership_); - } - if (preRegistered_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, preRegistered_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.Fleet)) { - return super.equals(obj); - } - com.google.container.v1beta1.Fleet other = (com.google.container.v1beta1.Fleet) obj; - - if (!getProject().equals(other.getProject())) return false; - if (!getMembership().equals(other.getMembership())) return false; - if (getPreRegistered() != other.getPreRegistered()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + MEMBERSHIP_FIELD_NUMBER; - hash = (53 * hash) + getMembership().hashCode(); - hash = (37 * hash) + PRE_REGISTERED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreRegistered()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.Fleet parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.Fleet parseFrom( - 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.Fleet parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.Fleet parseFrom( - com.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.Fleet parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.Fleet parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.Fleet parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.Fleet parseFrom( - java.io.InputStream 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.Fleet parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.Fleet parseDelimitedFrom( - java.io.InputStream 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.Fleet parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.Fleet parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.Fleet prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Fleet is the fleet configuration for the cluster.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.Fleet} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.Fleet) - com.google.container.v1beta1.FleetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_Fleet_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_Fleet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.Fleet.class, - com.google.container.v1beta1.Fleet.Builder.class); - } - - // Construct using com.google.container.v1beta1.Fleet.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - project_ = ""; - membership_ = ""; - preRegistered_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_Fleet_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.Fleet getDefaultInstanceForType() { - return com.google.container.v1beta1.Fleet.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.Fleet build() { - com.google.container.v1beta1.Fleet result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.Fleet buildPartial() { - com.google.container.v1beta1.Fleet result = new com.google.container.v1beta1.Fleet(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.Fleet result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.project_ = project_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.membership_ = membership_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.preRegistered_ = preRegistered_; - } - } - - @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.Fleet) { - return mergeFrom((com.google.container.v1beta1.Fleet) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.Fleet other) { - if (other == com.google.container.v1beta1.Fleet.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getMembership().isEmpty()) { - membership_ = other.membership_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getPreRegistered() != false) { - setPreRegistered(other.getPreRegistered()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - project_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - membership_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - preRegistered_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object project_ = ""; - /** - * - * - *
-     * The Fleet host project(project ID or project number) where this cluster
-     * will be registered to. This field cannot be changed after the cluster has
-     * been registered.
-     * 
- * - * string project = 1; - * - * @return The project. - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The Fleet host project(project ID or project number) where this cluster
-     * will be registered to. This field cannot be changed after the cluster has
-     * been registered.
-     * 
- * - * string project = 1; - * - * @return The bytes for project. - */ - public com.google.protobuf.ByteString getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The Fleet host project(project ID or project number) where this cluster
-     * will be registered to. This field cannot be changed after the cluster has
-     * been registered.
-     * 
- * - * string project = 1; - * - * @param value The project to set. - * @return This builder for chaining. - */ - public Builder setProject(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - project_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The Fleet host project(project ID or project number) where this cluster
-     * will be registered to. This field cannot be changed after the cluster has
-     * been registered.
-     * 
- * - * string project = 1; - * - * @return This builder for chaining. - */ - public Builder clearProject() { - project_ = getDefaultInstance().getProject(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * The Fleet host project(project ID or project number) where this cluster
-     * will be registered to. This field cannot be changed after the cluster has
-     * been registered.
-     * 
- * - * string project = 1; - * - * @param value The bytes for project to set. - * @return This builder for chaining. - */ - public Builder setProjectBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - project_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object membership_ = ""; - /** - * - * - *
-     * [Output only] The full resource name of the registered fleet membership of
-     * the cluster, in the format
-     * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
-     * 
- * - * string membership = 2; - * - * @return The membership. - */ - public java.lang.String getMembership() { - java.lang.Object ref = membership_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - membership_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * [Output only] The full resource name of the registered fleet membership of
-     * the cluster, in the format
-     * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
-     * 
- * - * string membership = 2; - * - * @return The bytes for membership. - */ - public com.google.protobuf.ByteString getMembershipBytes() { - java.lang.Object ref = membership_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - membership_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * [Output only] The full resource name of the registered fleet membership of
-     * the cluster, in the format
-     * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
-     * 
- * - * string membership = 2; - * - * @param value The membership to set. - * @return This builder for chaining. - */ - public Builder setMembership(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - membership_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] The full resource name of the registered fleet membership of
-     * the cluster, in the format
-     * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
-     * 
- * - * string membership = 2; - * - * @return This builder for chaining. - */ - public Builder clearMembership() { - membership_ = getDefaultInstance().getMembership(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] The full resource name of the registered fleet membership of
-     * the cluster, in the format
-     * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
-     * 
- * - * string membership = 2; - * - * @param value The bytes for membership to set. - * @return This builder for chaining. - */ - public Builder setMembershipBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - membership_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private boolean preRegistered_; - /** - * - * - *
-     * [Output only] Whether the cluster has been registered through the fleet
-     * API.
-     * 
- * - * bool pre_registered = 3; - * - * @return The preRegistered. - */ - @java.lang.Override - public boolean getPreRegistered() { - return preRegistered_; - } - /** - * - * - *
-     * [Output only] Whether the cluster has been registered through the fleet
-     * API.
-     * 
- * - * bool pre_registered = 3; - * - * @param value The preRegistered to set. - * @return This builder for chaining. - */ - public Builder setPreRegistered(boolean value) { - - preRegistered_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] Whether the cluster has been registered through the fleet
-     * API.
-     * 
- * - * bool pre_registered = 3; - * - * @return This builder for chaining. - */ - public Builder clearPreRegistered() { - bitField0_ = (bitField0_ & ~0x00000004); - preRegistered_ = 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.Fleet) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.Fleet) - private static final com.google.container.v1beta1.Fleet DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.Fleet(); - } - - public static com.google.container.v1beta1.Fleet getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Fleet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.Fleet getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/FleetOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/FleetOrBuilder.java deleted file mode 100644 index a39bcf4a0ca9..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/FleetOrBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface FleetOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.Fleet) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The Fleet host project(project ID or project number) where this cluster
-   * will be registered to. This field cannot be changed after the cluster has
-   * been registered.
-   * 
- * - * string project = 1; - * - * @return The project. - */ - java.lang.String getProject(); - /** - * - * - *
-   * The Fleet host project(project ID or project number) where this cluster
-   * will be registered to. This field cannot be changed after the cluster has
-   * been registered.
-   * 
- * - * string project = 1; - * - * @return The bytes for project. - */ - com.google.protobuf.ByteString getProjectBytes(); - - /** - * - * - *
-   * [Output only] The full resource name of the registered fleet membership of
-   * the cluster, in the format
-   * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
-   * 
- * - * string membership = 2; - * - * @return The membership. - */ - java.lang.String getMembership(); - /** - * - * - *
-   * [Output only] The full resource name of the registered fleet membership of
-   * the cluster, in the format
-   * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
-   * 
- * - * string membership = 2; - * - * @return The bytes for membership. - */ - com.google.protobuf.ByteString getMembershipBytes(); - - /** - * - * - *
-   * [Output only] Whether the cluster has been registered through the fleet
-   * API.
-   * 
- * - * bool pre_registered = 3; - * - * @return The preRegistered. - */ - boolean getPreRegistered(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GPUDriverInstallationConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GPUDriverInstallationConfig.java deleted file mode 100644 index 34b2bf6d5ff5..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GPUDriverInstallationConfig.java +++ /dev/null @@ -1,843 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * GPUDriverInstallationConfig specifies the version of GPU driver to be auto
- * installed.
- * 
- * - * Protobuf type {@code google.container.v1beta1.GPUDriverInstallationConfig} - */ -public final class GPUDriverInstallationConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.GPUDriverInstallationConfig) - GPUDriverInstallationConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use GPUDriverInstallationConfig.newBuilder() to construct. - private GPUDriverInstallationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GPUDriverInstallationConfig() { - gpuDriverVersion_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GPUDriverInstallationConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_GPUDriverInstallationConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_GPUDriverInstallationConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.GPUDriverInstallationConfig.class, - com.google.container.v1beta1.GPUDriverInstallationConfig.Builder.class); - } - - /** - * - * - *
-   * The GPU driver version to install.
-   * 
- * - * Protobuf enum {@code google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion} - */ - public enum GPUDriverVersion implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value is to not install any GPU driver.
-     * 
- * - * GPU_DRIVER_VERSION_UNSPECIFIED = 0; - */ - GPU_DRIVER_VERSION_UNSPECIFIED(0), - /** - * - * - *
-     * Disable GPU driver auto installation and needs manual installation
-     * 
- * - * INSTALLATION_DISABLED = 1; - */ - INSTALLATION_DISABLED(1), - /** - * - * - *
-     * "Default" GPU driver in COS and Ubuntu.
-     * 
- * - * DEFAULT = 2; - */ - DEFAULT(2), - /** - * - * - *
-     * "Latest" GPU driver in COS.
-     * 
- * - * LATEST = 3; - */ - LATEST(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value is to not install any GPU driver.
-     * 
- * - * GPU_DRIVER_VERSION_UNSPECIFIED = 0; - */ - public static final int GPU_DRIVER_VERSION_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Disable GPU driver auto installation and needs manual installation
-     * 
- * - * INSTALLATION_DISABLED = 1; - */ - public static final int INSTALLATION_DISABLED_VALUE = 1; - /** - * - * - *
-     * "Default" GPU driver in COS and Ubuntu.
-     * 
- * - * DEFAULT = 2; - */ - public static final int DEFAULT_VALUE = 2; - /** - * - * - *
-     * "Latest" GPU driver in COS.
-     * 
- * - * LATEST = 3; - */ - public static final int LATEST_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 GPUDriverVersion 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 GPUDriverVersion forNumber(int value) { - switch (value) { - case 0: - return GPU_DRIVER_VERSION_UNSPECIFIED; - case 1: - return INSTALLATION_DISABLED; - case 2: - return DEFAULT; - case 3: - return LATEST; - 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 GPUDriverVersion findValueByNumber(int number) { - return GPUDriverVersion.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.GPUDriverInstallationConfig.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final GPUDriverVersion[] VALUES = values(); - - public static GPUDriverVersion 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 GPUDriverVersion(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion) - } - - private int bitField0_; - public static final int GPU_DRIVER_VERSION_FIELD_NUMBER = 1; - private int gpuDriverVersion_ = 0; - /** - * - * - *
-   * Mode for how the GPU driver is installed.
-   * 
- * - * - * optional .google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; - * - * - * @return Whether the gpuDriverVersion field is set. - */ - @java.lang.Override - public boolean hasGpuDriverVersion() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Mode for how the GPU driver is installed.
-   * 
- * - * - * optional .google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; - * - * - * @return The enum numeric value on the wire for gpuDriverVersion. - */ - @java.lang.Override - public int getGpuDriverVersionValue() { - return gpuDriverVersion_; - } - /** - * - * - *
-   * Mode for how the GPU driver is installed.
-   * 
- * - * - * optional .google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; - * - * - * @return The gpuDriverVersion. - */ - @java.lang.Override - public com.google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion - getGpuDriverVersion() { - com.google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion result = - com.google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion.forNumber( - gpuDriverVersion_); - return result == null - ? com.google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion.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 (((bitField0_ & 0x00000001) != 0)) { - output.writeEnum(1, gpuDriverVersion_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, gpuDriverVersion_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.GPUDriverInstallationConfig)) { - return super.equals(obj); - } - com.google.container.v1beta1.GPUDriverInstallationConfig other = - (com.google.container.v1beta1.GPUDriverInstallationConfig) obj; - - if (hasGpuDriverVersion() != other.hasGpuDriverVersion()) return false; - if (hasGpuDriverVersion()) { - if (gpuDriverVersion_ != other.gpuDriverVersion_) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasGpuDriverVersion()) { - hash = (37 * hash) + GPU_DRIVER_VERSION_FIELD_NUMBER; - hash = (53 * hash) + gpuDriverVersion_; - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.GPUDriverInstallationConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.GPUDriverInstallationConfig parseFrom( - 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.GPUDriverInstallationConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.GPUDriverInstallationConfig parseFrom( - com.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.GPUDriverInstallationConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.GPUDriverInstallationConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.GPUDriverInstallationConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.GPUDriverInstallationConfig parseFrom( - java.io.InputStream 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.GPUDriverInstallationConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.GPUDriverInstallationConfig parseDelimitedFrom( - java.io.InputStream 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.GPUDriverInstallationConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.GPUDriverInstallationConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.GPUDriverInstallationConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * GPUDriverInstallationConfig specifies the version of GPU driver to be auto
-   * installed.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.GPUDriverInstallationConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.GPUDriverInstallationConfig) - com.google.container.v1beta1.GPUDriverInstallationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_GPUDriverInstallationConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_GPUDriverInstallationConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.GPUDriverInstallationConfig.class, - com.google.container.v1beta1.GPUDriverInstallationConfig.Builder.class); - } - - // Construct using com.google.container.v1beta1.GPUDriverInstallationConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - gpuDriverVersion_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_GPUDriverInstallationConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.GPUDriverInstallationConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.GPUDriverInstallationConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.GPUDriverInstallationConfig build() { - com.google.container.v1beta1.GPUDriverInstallationConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.GPUDriverInstallationConfig buildPartial() { - com.google.container.v1beta1.GPUDriverInstallationConfig result = - new com.google.container.v1beta1.GPUDriverInstallationConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.GPUDriverInstallationConfig result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.gpuDriverVersion_ = gpuDriverVersion_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @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.GPUDriverInstallationConfig) { - return mergeFrom((com.google.container.v1beta1.GPUDriverInstallationConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.GPUDriverInstallationConfig other) { - if (other == com.google.container.v1beta1.GPUDriverInstallationConfig.getDefaultInstance()) - return this; - if (other.hasGpuDriverVersion()) { - setGpuDriverVersion(other.getGpuDriverVersion()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - gpuDriverVersion_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int gpuDriverVersion_ = 0; - /** - * - * - *
-     * Mode for how the GPU driver is installed.
-     * 
- * - * - * optional .google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; - * - * - * @return Whether the gpuDriverVersion field is set. - */ - @java.lang.Override - public boolean hasGpuDriverVersion() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Mode for how the GPU driver is installed.
-     * 
- * - * - * optional .google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; - * - * - * @return The enum numeric value on the wire for gpuDriverVersion. - */ - @java.lang.Override - public int getGpuDriverVersionValue() { - return gpuDriverVersion_; - } - /** - * - * - *
-     * Mode for how the GPU driver is installed.
-     * 
- * - * - * optional .google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; - * - * - * @param value The enum numeric value on the wire for gpuDriverVersion to set. - * @return This builder for chaining. - */ - public Builder setGpuDriverVersionValue(int value) { - gpuDriverVersion_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Mode for how the GPU driver is installed.
-     * 
- * - * - * optional .google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; - * - * - * @return The gpuDriverVersion. - */ - @java.lang.Override - public com.google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion - getGpuDriverVersion() { - com.google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion result = - com.google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion.forNumber( - gpuDriverVersion_); - return result == null - ? com.google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Mode for how the GPU driver is installed.
-     * 
- * - * - * optional .google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; - * - * - * @param value The gpuDriverVersion to set. - * @return This builder for chaining. - */ - public Builder setGpuDriverVersion( - com.google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - gpuDriverVersion_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Mode for how the GPU driver is installed.
-     * 
- * - * - * optional .google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; - * - * - * @return This builder for chaining. - */ - public Builder clearGpuDriverVersion() { - bitField0_ = (bitField0_ & ~0x00000001); - gpuDriverVersion_ = 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.GPUDriverInstallationConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.GPUDriverInstallationConfig) - private static final com.google.container.v1beta1.GPUDriverInstallationConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.GPUDriverInstallationConfig(); - } - - public static com.google.container.v1beta1.GPUDriverInstallationConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GPUDriverInstallationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.GPUDriverInstallationConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GPUDriverInstallationConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GPUDriverInstallationConfigOrBuilder.java deleted file mode 100644 index 0711b4dd3c59..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GPUDriverInstallationConfigOrBuilder.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface GPUDriverInstallationConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GPUDriverInstallationConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Mode for how the GPU driver is installed.
-   * 
- * - * - * optional .google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; - * - * - * @return Whether the gpuDriverVersion field is set. - */ - boolean hasGpuDriverVersion(); - /** - * - * - *
-   * Mode for how the GPU driver is installed.
-   * 
- * - * - * optional .google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; - * - * - * @return The enum numeric value on the wire for gpuDriverVersion. - */ - int getGpuDriverVersionValue(); - /** - * - * - *
-   * Mode for how the GPU driver is installed.
-   * 
- * - * - * optional .google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; - * - * - * @return The gpuDriverVersion. - */ - com.google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion getGpuDriverVersion(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GPUSharingConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GPUSharingConfig.java deleted file mode 100644 index 9dca55a923ab..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GPUSharingConfig.java +++ /dev/null @@ -1,888 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * GPUSharingConfig represents the GPU sharing configuration for Hardware
- * Accelerators.
- * 
- * - * Protobuf type {@code google.container.v1beta1.GPUSharingConfig} - */ -public final class GPUSharingConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.GPUSharingConfig) - GPUSharingConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use GPUSharingConfig.newBuilder() to construct. - private GPUSharingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GPUSharingConfig() { - gpuSharingStrategy_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GPUSharingConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_GPUSharingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_GPUSharingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.GPUSharingConfig.class, - com.google.container.v1beta1.GPUSharingConfig.Builder.class); - } - - /** - * - * - *
-   * The type of GPU sharing strategy currently provided.
-   * 
- * - * Protobuf enum {@code google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy} - */ - public enum GPUSharingStrategy implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value.
-     * 
- * - * GPU_SHARING_STRATEGY_UNSPECIFIED = 0; - */ - GPU_SHARING_STRATEGY_UNSPECIFIED(0), - /** - * - * - *
-     * GPUs are time-shared between containers.
-     * 
- * - * TIME_SHARING = 1; - */ - TIME_SHARING(1), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value.
-     * 
- * - * GPU_SHARING_STRATEGY_UNSPECIFIED = 0; - */ - public static final int GPU_SHARING_STRATEGY_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * GPUs are time-shared between containers.
-     * 
- * - * TIME_SHARING = 1; - */ - public static final int TIME_SHARING_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 GPUSharingStrategy 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 GPUSharingStrategy forNumber(int value) { - switch (value) { - case 0: - return GPU_SHARING_STRATEGY_UNSPECIFIED; - case 1: - return TIME_SHARING; - 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 GPUSharingStrategy findValueByNumber(int number) { - return GPUSharingStrategy.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.GPUSharingConfig.getDescriptor().getEnumTypes().get(0); - } - - private static final GPUSharingStrategy[] VALUES = values(); - - public static GPUSharingStrategy 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 GPUSharingStrategy(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy) - } - - private int bitField0_; - public static final int MAX_SHARED_CLIENTS_PER_GPU_FIELD_NUMBER = 1; - private long maxSharedClientsPerGpu_ = 0L; - /** - * - * - *
-   * The max number of containers that can share a physical GPU.
-   * 
- * - * int64 max_shared_clients_per_gpu = 1; - * - * @return The maxSharedClientsPerGpu. - */ - @java.lang.Override - public long getMaxSharedClientsPerGpu() { - return maxSharedClientsPerGpu_; - } - - public static final int GPU_SHARING_STRATEGY_FIELD_NUMBER = 2; - private int gpuSharingStrategy_ = 0; - /** - * - * - *
-   * The type of GPU sharing strategy to enable on the GPU node.
-   * 
- * - * - * optional .google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; - * - * - * @return Whether the gpuSharingStrategy field is set. - */ - @java.lang.Override - public boolean hasGpuSharingStrategy() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * The type of GPU sharing strategy to enable on the GPU node.
-   * 
- * - * - * optional .google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; - * - * - * @return The enum numeric value on the wire for gpuSharingStrategy. - */ - @java.lang.Override - public int getGpuSharingStrategyValue() { - return gpuSharingStrategy_; - } - /** - * - * - *
-   * The type of GPU sharing strategy to enable on the GPU node.
-   * 
- * - * - * optional .google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; - * - * - * @return The gpuSharingStrategy. - */ - @java.lang.Override - public com.google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy getGpuSharingStrategy() { - com.google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy result = - com.google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy.forNumber( - gpuSharingStrategy_); - return result == null - ? com.google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy.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 (maxSharedClientsPerGpu_ != 0L) { - output.writeInt64(1, maxSharedClientsPerGpu_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeEnum(2, gpuSharingStrategy_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (maxSharedClientsPerGpu_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, maxSharedClientsPerGpu_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, gpuSharingStrategy_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.GPUSharingConfig)) { - return super.equals(obj); - } - com.google.container.v1beta1.GPUSharingConfig other = - (com.google.container.v1beta1.GPUSharingConfig) obj; - - if (getMaxSharedClientsPerGpu() != other.getMaxSharedClientsPerGpu()) return false; - if (hasGpuSharingStrategy() != other.hasGpuSharingStrategy()) return false; - if (hasGpuSharingStrategy()) { - if (gpuSharingStrategy_ != other.gpuSharingStrategy_) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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_SHARED_CLIENTS_PER_GPU_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxSharedClientsPerGpu()); - if (hasGpuSharingStrategy()) { - hash = (37 * hash) + GPU_SHARING_STRATEGY_FIELD_NUMBER; - hash = (53 * hash) + gpuSharingStrategy_; - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.GPUSharingConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.GPUSharingConfig parseFrom( - 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.GPUSharingConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.GPUSharingConfig parseFrom( - com.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.GPUSharingConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.GPUSharingConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.GPUSharingConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.GPUSharingConfig parseFrom( - java.io.InputStream 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.GPUSharingConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.GPUSharingConfig parseDelimitedFrom( - java.io.InputStream 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.GPUSharingConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.GPUSharingConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.GPUSharingConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * GPUSharingConfig represents the GPU sharing configuration for Hardware
-   * Accelerators.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.GPUSharingConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.GPUSharingConfig) - com.google.container.v1beta1.GPUSharingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_GPUSharingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_GPUSharingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.GPUSharingConfig.class, - com.google.container.v1beta1.GPUSharingConfig.Builder.class); - } - - // Construct using com.google.container.v1beta1.GPUSharingConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - maxSharedClientsPerGpu_ = 0L; - gpuSharingStrategy_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_GPUSharingConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.GPUSharingConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.GPUSharingConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.GPUSharingConfig build() { - com.google.container.v1beta1.GPUSharingConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.GPUSharingConfig buildPartial() { - com.google.container.v1beta1.GPUSharingConfig result = - new com.google.container.v1beta1.GPUSharingConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.GPUSharingConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.maxSharedClientsPerGpu_ = maxSharedClientsPerGpu_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.gpuSharingStrategy_ = gpuSharingStrategy_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @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.GPUSharingConfig) { - return mergeFrom((com.google.container.v1beta1.GPUSharingConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.GPUSharingConfig other) { - if (other == com.google.container.v1beta1.GPUSharingConfig.getDefaultInstance()) return this; - if (other.getMaxSharedClientsPerGpu() != 0L) { - setMaxSharedClientsPerGpu(other.getMaxSharedClientsPerGpu()); - } - if (other.hasGpuSharingStrategy()) { - setGpuSharingStrategy(other.getGpuSharingStrategy()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - maxSharedClientsPerGpu_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - gpuSharingStrategy_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private long maxSharedClientsPerGpu_; - /** - * - * - *
-     * The max number of containers that can share a physical GPU.
-     * 
- * - * int64 max_shared_clients_per_gpu = 1; - * - * @return The maxSharedClientsPerGpu. - */ - @java.lang.Override - public long getMaxSharedClientsPerGpu() { - return maxSharedClientsPerGpu_; - } - /** - * - * - *
-     * The max number of containers that can share a physical GPU.
-     * 
- * - * int64 max_shared_clients_per_gpu = 1; - * - * @param value The maxSharedClientsPerGpu to set. - * @return This builder for chaining. - */ - public Builder setMaxSharedClientsPerGpu(long value) { - - maxSharedClientsPerGpu_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The max number of containers that can share a physical GPU.
-     * 
- * - * int64 max_shared_clients_per_gpu = 1; - * - * @return This builder for chaining. - */ - public Builder clearMaxSharedClientsPerGpu() { - bitField0_ = (bitField0_ & ~0x00000001); - maxSharedClientsPerGpu_ = 0L; - onChanged(); - return this; - } - - private int gpuSharingStrategy_ = 0; - /** - * - * - *
-     * The type of GPU sharing strategy to enable on the GPU node.
-     * 
- * - * - * optional .google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; - * - * - * @return Whether the gpuSharingStrategy field is set. - */ - @java.lang.Override - public boolean hasGpuSharingStrategy() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * The type of GPU sharing strategy to enable on the GPU node.
-     * 
- * - * - * optional .google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; - * - * - * @return The enum numeric value on the wire for gpuSharingStrategy. - */ - @java.lang.Override - public int getGpuSharingStrategyValue() { - return gpuSharingStrategy_; - } - /** - * - * - *
-     * The type of GPU sharing strategy to enable on the GPU node.
-     * 
- * - * - * optional .google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; - * - * - * @param value The enum numeric value on the wire for gpuSharingStrategy to set. - * @return This builder for chaining. - */ - public Builder setGpuSharingStrategyValue(int value) { - gpuSharingStrategy_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * The type of GPU sharing strategy to enable on the GPU node.
-     * 
- * - * - * optional .google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; - * - * - * @return The gpuSharingStrategy. - */ - @java.lang.Override - public com.google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy - getGpuSharingStrategy() { - com.google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy result = - com.google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy.forNumber( - gpuSharingStrategy_); - return result == null - ? com.google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * The type of GPU sharing strategy to enable on the GPU node.
-     * 
- * - * - * optional .google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; - * - * - * @param value The gpuSharingStrategy to set. - * @return This builder for chaining. - */ - public Builder setGpuSharingStrategy( - com.google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - gpuSharingStrategy_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The type of GPU sharing strategy to enable on the GPU node.
-     * 
- * - * - * optional .google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; - * - * - * @return This builder for chaining. - */ - public Builder clearGpuSharingStrategy() { - bitField0_ = (bitField0_ & ~0x00000002); - gpuSharingStrategy_ = 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.GPUSharingConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.GPUSharingConfig) - private static final com.google.container.v1beta1.GPUSharingConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.GPUSharingConfig(); - } - - public static com.google.container.v1beta1.GPUSharingConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GPUSharingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.GPUSharingConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GPUSharingConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GPUSharingConfigOrBuilder.java deleted file mode 100644 index ab0abcd00f2d..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GPUSharingConfigOrBuilder.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface GPUSharingConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GPUSharingConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The max number of containers that can share a physical GPU.
-   * 
- * - * int64 max_shared_clients_per_gpu = 1; - * - * @return The maxSharedClientsPerGpu. - */ - long getMaxSharedClientsPerGpu(); - - /** - * - * - *
-   * The type of GPU sharing strategy to enable on the GPU node.
-   * 
- * - * - * optional .google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; - * - * - * @return Whether the gpuSharingStrategy field is set. - */ - boolean hasGpuSharingStrategy(); - /** - * - * - *
-   * The type of GPU sharing strategy to enable on the GPU node.
-   * 
- * - * - * optional .google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; - * - * - * @return The enum numeric value on the wire for gpuSharingStrategy. - */ - int getGpuSharingStrategyValue(); - /** - * - * - *
-   * The type of GPU sharing strategy to enable on the GPU node.
-   * 
- * - * - * optional .google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; - * - * - * @return The gpuSharingStrategy. - */ - com.google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy getGpuSharingStrategy(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GatewayAPIConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GatewayAPIConfig.java deleted file mode 100644 index 33df780f9111..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GatewayAPIConfig.java +++ /dev/null @@ -1,776 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * GatewayAPIConfig contains the desired config of Gateway API on this cluster.
- * 
- * - * Protobuf type {@code google.container.v1beta1.GatewayAPIConfig} - */ -public final class GatewayAPIConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.GatewayAPIConfig) - GatewayAPIConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use GatewayAPIConfig.newBuilder() to construct. - private GatewayAPIConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GatewayAPIConfig() { - channel_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GatewayAPIConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_GatewayAPIConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_GatewayAPIConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.GatewayAPIConfig.class, - com.google.container.v1beta1.GatewayAPIConfig.Builder.class); - } - - /** - * - * - *
-   * Channel describes if/how Gateway API should be installed and implemented in
-   * a cluster.
-   * 
- * - * Protobuf enum {@code google.container.v1beta1.GatewayAPIConfig.Channel} - */ - public enum Channel implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value.
-     * 
- * - * CHANNEL_UNSPECIFIED = 0; - */ - CHANNEL_UNSPECIFIED(0), - /** - * - * - *
-     * Gateway API support is disabled
-     * 
- * - * CHANNEL_DISABLED = 1; - */ - CHANNEL_DISABLED(1), - /** - * - * - *
-     * Gateway API support is enabled, experimental CRDs are installed
-     * 
- * - * CHANNEL_EXPERIMENTAL = 3; - */ - CHANNEL_EXPERIMENTAL(3), - /** - * - * - *
-     * Gateway API support is enabled, standard CRDs are installed
-     * 
- * - * CHANNEL_STANDARD = 4; - */ - CHANNEL_STANDARD(4), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value.
-     * 
- * - * CHANNEL_UNSPECIFIED = 0; - */ - public static final int CHANNEL_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Gateway API support is disabled
-     * 
- * - * CHANNEL_DISABLED = 1; - */ - public static final int CHANNEL_DISABLED_VALUE = 1; - /** - * - * - *
-     * Gateway API support is enabled, experimental CRDs are installed
-     * 
- * - * CHANNEL_EXPERIMENTAL = 3; - */ - public static final int CHANNEL_EXPERIMENTAL_VALUE = 3; - /** - * - * - *
-     * Gateway API support is enabled, standard CRDs are installed
-     * 
- * - * CHANNEL_STANDARD = 4; - */ - public static final int CHANNEL_STANDARD_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 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 CHANNEL_UNSPECIFIED; - case 1: - return CHANNEL_DISABLED; - case 3: - return CHANNEL_EXPERIMENTAL; - case 4: - return CHANNEL_STANDARD; - 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.GatewayAPIConfig.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.GatewayAPIConfig.Channel) - } - - public static final int CHANNEL_FIELD_NUMBER = 1; - private int channel_ = 0; - /** - * - * - *
-   * The Gateway API release channel to use for Gateway API.
-   * 
- * - * .google.container.v1beta1.GatewayAPIConfig.Channel channel = 1; - * - * @return The enum numeric value on the wire for channel. - */ - @java.lang.Override - public int getChannelValue() { - return channel_; - } - /** - * - * - *
-   * The Gateway API release channel to use for Gateway API.
-   * 
- * - * .google.container.v1beta1.GatewayAPIConfig.Channel channel = 1; - * - * @return The channel. - */ - @java.lang.Override - public com.google.container.v1beta1.GatewayAPIConfig.Channel getChannel() { - com.google.container.v1beta1.GatewayAPIConfig.Channel result = - com.google.container.v1beta1.GatewayAPIConfig.Channel.forNumber(channel_); - return result == null - ? com.google.container.v1beta1.GatewayAPIConfig.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.GatewayAPIConfig.Channel.CHANNEL_UNSPECIFIED.getNumber()) { - output.writeEnum(1, channel_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (channel_ - != com.google.container.v1beta1.GatewayAPIConfig.Channel.CHANNEL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, channel_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.GatewayAPIConfig)) { - return super.equals(obj); - } - com.google.container.v1beta1.GatewayAPIConfig other = - (com.google.container.v1beta1.GatewayAPIConfig) obj; - - if (channel_ != other.channel_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.GatewayAPIConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.GatewayAPIConfig parseFrom( - 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.GatewayAPIConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.GatewayAPIConfig parseFrom( - com.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.GatewayAPIConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.GatewayAPIConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.GatewayAPIConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.GatewayAPIConfig parseFrom( - java.io.InputStream 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.GatewayAPIConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.GatewayAPIConfig parseDelimitedFrom( - java.io.InputStream 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.GatewayAPIConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.GatewayAPIConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.GatewayAPIConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * GatewayAPIConfig contains the desired config of Gateway API on this cluster.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.GatewayAPIConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.GatewayAPIConfig) - com.google.container.v1beta1.GatewayAPIConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_GatewayAPIConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_GatewayAPIConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.GatewayAPIConfig.class, - com.google.container.v1beta1.GatewayAPIConfig.Builder.class); - } - - // Construct using com.google.container.v1beta1.GatewayAPIConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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_GatewayAPIConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.GatewayAPIConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.GatewayAPIConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.GatewayAPIConfig build() { - com.google.container.v1beta1.GatewayAPIConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.GatewayAPIConfig buildPartial() { - com.google.container.v1beta1.GatewayAPIConfig result = - new com.google.container.v1beta1.GatewayAPIConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.GatewayAPIConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.channel_ = channel_; - } - } - - @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.GatewayAPIConfig) { - return mergeFrom((com.google.container.v1beta1.GatewayAPIConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.GatewayAPIConfig other) { - if (other == com.google.container.v1beta1.GatewayAPIConfig.getDefaultInstance()) return this; - if (other.channel_ != 0) { - setChannelValue(other.getChannelValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - channel_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int channel_ = 0; - /** - * - * - *
-     * The Gateway API release channel to use for Gateway API.
-     * 
- * - * .google.container.v1beta1.GatewayAPIConfig.Channel channel = 1; - * - * @return The enum numeric value on the wire for channel. - */ - @java.lang.Override - public int getChannelValue() { - return channel_; - } - /** - * - * - *
-     * The Gateway API release channel to use for Gateway API.
-     * 
- * - * .google.container.v1beta1.GatewayAPIConfig.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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The Gateway API release channel to use for Gateway API.
-     * 
- * - * .google.container.v1beta1.GatewayAPIConfig.Channel channel = 1; - * - * @return The channel. - */ - @java.lang.Override - public com.google.container.v1beta1.GatewayAPIConfig.Channel getChannel() { - com.google.container.v1beta1.GatewayAPIConfig.Channel result = - com.google.container.v1beta1.GatewayAPIConfig.Channel.forNumber(channel_); - return result == null - ? com.google.container.v1beta1.GatewayAPIConfig.Channel.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * The Gateway API release channel to use for Gateway API.
-     * 
- * - * .google.container.v1beta1.GatewayAPIConfig.Channel channel = 1; - * - * @param value The channel to set. - * @return This builder for chaining. - */ - public Builder setChannel(com.google.container.v1beta1.GatewayAPIConfig.Channel value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - channel_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The Gateway API release channel to use for Gateway API.
-     * 
- * - * .google.container.v1beta1.GatewayAPIConfig.Channel channel = 1; - * - * @return This builder for chaining. - */ - public Builder clearChannel() { - bitField0_ = (bitField0_ & ~0x00000001); - 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.GatewayAPIConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.GatewayAPIConfig) - private static final com.google.container.v1beta1.GatewayAPIConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.GatewayAPIConfig(); - } - - public static com.google.container.v1beta1.GatewayAPIConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GatewayAPIConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.GatewayAPIConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GatewayAPIConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GatewayAPIConfigOrBuilder.java deleted file mode 100644 index d1965e33215a..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GatewayAPIConfigOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface GatewayAPIConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GatewayAPIConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The Gateway API release channel to use for Gateway API.
-   * 
- * - * .google.container.v1beta1.GatewayAPIConfig.Channel channel = 1; - * - * @return The enum numeric value on the wire for channel. - */ - int getChannelValue(); - /** - * - * - *
-   * The Gateway API release channel to use for Gateway API.
-   * 
- * - * .google.container.v1beta1.GatewayAPIConfig.Channel channel = 1; - * - * @return The channel. - */ - com.google.container.v1beta1.GatewayAPIConfig.Channel getChannel(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcePersistentDiskCsiDriverConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcePersistentDiskCsiDriverConfig.java deleted file mode 100644 index 13cb10f81ae4..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcePersistentDiskCsiDriverConfig.java +++ /dev/null @@ -1,541 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * Configuration for the Compute Engine PD CSI driver.
- * 
- * - * 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(); - } - - 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_ = false; - /** - * - * - *
-   * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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.
-   * 
- * - * 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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 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_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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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() { - bitField0_ = (bitField0_ & ~0x00000001); - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcePersistentDiskCsiDriverConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcePersistentDiskCsiDriverConfigOrBuilder.java deleted file mode 100644 index 71eb3b38530b..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcePersistentDiskCsiDriverConfigOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcfsConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcfsConfig.java deleted file mode 100644 index 17bae59c930f..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcfsConfig.java +++ /dev/null @@ -1,533 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * GcfsConfig contains configurations of Google Container File System.
- * 
- * - * Protobuf type {@code google.container.v1beta1.GcfsConfig} - */ -public final class GcfsConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.GcfsConfig) - GcfsConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use GcfsConfig.newBuilder() to construct. - private GcfsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GcfsConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GcfsConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_GcfsConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_GcfsConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.GcfsConfig.class, - com.google.container.v1beta1.GcfsConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * Whether to use GCFS.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1beta1.GcfsConfig)) { - return super.equals(obj); - } - com.google.container.v1beta1.GcfsConfig other = (com.google.container.v1beta1.GcfsConfig) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.GcfsConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.GcfsConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.GcfsConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.GcfsConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.GcfsConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.GcfsConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.GcfsConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.GcfsConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.GcfsConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.GcfsConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.GcfsConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.GcfsConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1beta1.GcfsConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * GcfsConfig contains configurations of Google Container File System.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.GcfsConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.GcfsConfig) - com.google.container.v1beta1.GcfsConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_GcfsConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_GcfsConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.GcfsConfig.class, - com.google.container.v1beta1.GcfsConfig.Builder.class); - } - - // Construct using com.google.container.v1beta1.GcfsConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 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_GcfsConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.GcfsConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.GcfsConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.GcfsConfig build() { - com.google.container.v1beta1.GcfsConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.GcfsConfig buildPartial() { - com.google.container.v1beta1.GcfsConfig result = - new com.google.container.v1beta1.GcfsConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.GcfsConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.GcfsConfig) { - return mergeFrom((com.google.container.v1beta1.GcfsConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.GcfsConfig other) { - if (other == com.google.container.v1beta1.GcfsConfig.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean enabled_; - /** - * - * - *
-     * Whether to use GCFS.
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Whether to use GCFS.
-     * 
- * - * bool enabled = 1; - * - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether to use GCFS.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - enabled_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.GcfsConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.GcfsConfig) - private static final com.google.container.v1beta1.GcfsConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.GcfsConfig(); - } - - public static com.google.container.v1beta1.GcfsConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcfsConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1beta1.GcfsConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcfsConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcfsConfigOrBuilder.java deleted file mode 100644 index 4d3ecff25cca..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcfsConfigOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface GcfsConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GcfsConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether to use GCFS.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcpFilestoreCsiDriverConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcpFilestoreCsiDriverConfig.java deleted file mode 100644 index 575f5bf3d1df..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcpFilestoreCsiDriverConfig.java +++ /dev/null @@ -1,536 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * Configuration for the GCP Filestore CSI driver.
- * 
- * - * Protobuf type {@code google.container.v1beta1.GcpFilestoreCsiDriverConfig} - */ -public final class GcpFilestoreCsiDriverConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.GcpFilestoreCsiDriverConfig) - GcpFilestoreCsiDriverConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use GcpFilestoreCsiDriverConfig.newBuilder() to construct. - private GcpFilestoreCsiDriverConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GcpFilestoreCsiDriverConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GcpFilestoreCsiDriverConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_GcpFilestoreCsiDriverConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_GcpFilestoreCsiDriverConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.class, - com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * Whether the GCP Filestore CSI driver is enabled for this cluster.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1beta1.GcpFilestoreCsiDriverConfig)) { - return super.equals(obj); - } - com.google.container.v1beta1.GcpFilestoreCsiDriverConfig other = - (com.google.container.v1beta1.GcpFilestoreCsiDriverConfig) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.GcpFilestoreCsiDriverConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.GcpFilestoreCsiDriverConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.GcpFilestoreCsiDriverConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.GcpFilestoreCsiDriverConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.GcpFilestoreCsiDriverConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.GcpFilestoreCsiDriverConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.GcpFilestoreCsiDriverConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.GcpFilestoreCsiDriverConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.GcpFilestoreCsiDriverConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.GcpFilestoreCsiDriverConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.GcpFilestoreCsiDriverConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.GcpFilestoreCsiDriverConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.container.v1beta1.GcpFilestoreCsiDriverConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Configuration for the GCP Filestore CSI driver.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.GcpFilestoreCsiDriverConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.GcpFilestoreCsiDriverConfig) - com.google.container.v1beta1.GcpFilestoreCsiDriverConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_GcpFilestoreCsiDriverConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_GcpFilestoreCsiDriverConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.class, - com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.Builder.class); - } - - // Construct using com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 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_GcpFilestoreCsiDriverConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.GcpFilestoreCsiDriverConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.GcpFilestoreCsiDriverConfig build() { - com.google.container.v1beta1.GcpFilestoreCsiDriverConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.GcpFilestoreCsiDriverConfig buildPartial() { - com.google.container.v1beta1.GcpFilestoreCsiDriverConfig result = - new com.google.container.v1beta1.GcpFilestoreCsiDriverConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.GcpFilestoreCsiDriverConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.GcpFilestoreCsiDriverConfig) { - return mergeFrom((com.google.container.v1beta1.GcpFilestoreCsiDriverConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.GcpFilestoreCsiDriverConfig other) { - if (other == com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.getDefaultInstance()) - return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean enabled_; - /** - * - * - *
-     * Whether the GCP Filestore CSI driver is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Whether the GCP Filestore CSI driver is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether the GCP Filestore CSI driver is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - enabled_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.GcpFilestoreCsiDriverConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.GcpFilestoreCsiDriverConfig) - private static final com.google.container.v1beta1.GcpFilestoreCsiDriverConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.GcpFilestoreCsiDriverConfig(); - } - - public static com.google.container.v1beta1.GcpFilestoreCsiDriverConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcpFilestoreCsiDriverConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1beta1.GcpFilestoreCsiDriverConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcpFilestoreCsiDriverConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcpFilestoreCsiDriverConfigOrBuilder.java deleted file mode 100644 index f39b42f124f3..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcpFilestoreCsiDriverConfigOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface GcpFilestoreCsiDriverConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GcpFilestoreCsiDriverConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether the GCP Filestore CSI driver is enabled for this cluster.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcsFuseCsiDriverConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcsFuseCsiDriverConfig.java deleted file mode 100644 index c1446bb47738..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcsFuseCsiDriverConfig.java +++ /dev/null @@ -1,535 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * Configuration for the Cloud Storage Fuse CSI driver.
- * 
- * - * Protobuf type {@code google.container.v1beta1.GcsFuseCsiDriverConfig} - */ -public final class GcsFuseCsiDriverConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.GcsFuseCsiDriverConfig) - GcsFuseCsiDriverConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use GcsFuseCsiDriverConfig.newBuilder() to construct. - private GcsFuseCsiDriverConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GcsFuseCsiDriverConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GcsFuseCsiDriverConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_GcsFuseCsiDriverConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_GcsFuseCsiDriverConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.GcsFuseCsiDriverConfig.class, - com.google.container.v1beta1.GcsFuseCsiDriverConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * Whether the Cloud Storage Fuse 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.GcsFuseCsiDriverConfig)) { - return super.equals(obj); - } - com.google.container.v1beta1.GcsFuseCsiDriverConfig other = - (com.google.container.v1beta1.GcsFuseCsiDriverConfig) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.GcsFuseCsiDriverConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.GcsFuseCsiDriverConfig parseFrom( - 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.GcsFuseCsiDriverConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.GcsFuseCsiDriverConfig parseFrom( - com.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.GcsFuseCsiDriverConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.GcsFuseCsiDriverConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.GcsFuseCsiDriverConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.GcsFuseCsiDriverConfig parseFrom( - java.io.InputStream 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.GcsFuseCsiDriverConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.GcsFuseCsiDriverConfig parseDelimitedFrom( - java.io.InputStream 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.GcsFuseCsiDriverConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.GcsFuseCsiDriverConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.GcsFuseCsiDriverConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 Cloud Storage Fuse CSI driver.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.GcsFuseCsiDriverConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.GcsFuseCsiDriverConfig) - com.google.container.v1beta1.GcsFuseCsiDriverConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_GcsFuseCsiDriverConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_GcsFuseCsiDriverConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.GcsFuseCsiDriverConfig.class, - com.google.container.v1beta1.GcsFuseCsiDriverConfig.Builder.class); - } - - // Construct using com.google.container.v1beta1.GcsFuseCsiDriverConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 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_GcsFuseCsiDriverConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.GcsFuseCsiDriverConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.GcsFuseCsiDriverConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.GcsFuseCsiDriverConfig build() { - com.google.container.v1beta1.GcsFuseCsiDriverConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.GcsFuseCsiDriverConfig buildPartial() { - com.google.container.v1beta1.GcsFuseCsiDriverConfig result = - new com.google.container.v1beta1.GcsFuseCsiDriverConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.GcsFuseCsiDriverConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @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.GcsFuseCsiDriverConfig) { - return mergeFrom((com.google.container.v1beta1.GcsFuseCsiDriverConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.GcsFuseCsiDriverConfig other) { - if (other == com.google.container.v1beta1.GcsFuseCsiDriverConfig.getDefaultInstance()) - return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean enabled_; - /** - * - * - *
-     * Whether the Cloud Storage Fuse CSI driver is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Whether the Cloud Storage Fuse 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether the Cloud Storage Fuse CSI driver is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - 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.GcsFuseCsiDriverConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.GcsFuseCsiDriverConfig) - private static final com.google.container.v1beta1.GcsFuseCsiDriverConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.GcsFuseCsiDriverConfig(); - } - - public static com.google.container.v1beta1.GcsFuseCsiDriverConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsFuseCsiDriverConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.GcsFuseCsiDriverConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcsFuseCsiDriverConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcsFuseCsiDriverConfigOrBuilder.java deleted file mode 100644 index b6ab7b8efc18..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcsFuseCsiDriverConfigOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface GcsFuseCsiDriverConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GcsFuseCsiDriverConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether the Cloud Storage Fuse CSI driver is enabled for this cluster.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequest.java deleted file mode 100644 index a23fb4ed6a95..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequest.java +++ /dev/null @@ -1,1296 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2975 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2975 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2982 - * @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]; - * - * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2982 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * - * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2986 - * @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]; - * - * - * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2986 - * @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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.GetClusterRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.name_ = name_; - } - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000008; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 42: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2975 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2975 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2975 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2975 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2975 - * @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; - bitField0_ |= 0x00000001; - 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]; - * - * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2982 - * @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]; - * - * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2982 - * @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]; - * - * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2982 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2982 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - 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]; - * - * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2982 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * - * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2986 - * @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]; - * - * - * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2986 - * @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]; - * - * - * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2986 - * @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; - bitField0_ |= 0x00000004; - 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]; - * - * - * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2986 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - 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]; - * - * - * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2986 - * @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; - bitField0_ |= 0x00000004; - 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; - bitField0_ |= 0x00000008; - 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(); - bitField0_ = (bitField0_ & ~0x00000008); - 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; - bitField0_ |= 0x00000008; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequestOrBuilder.java deleted file mode 100644 index 487e76c709cd..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequestOrBuilder.java +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2975 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2975 - * @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]; - * - * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2982 - * @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]; - * - * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2982 - * @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]; - * - * - * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2986 - * @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]; - * - * - * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2986 - * @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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysRequest.java deleted file mode 100644 index 1afb11934e05..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysRequest.java +++ /dev/null @@ -1,638 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - * - * - *
-   * The cluster (project, location, cluster name) 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 name) 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.GetJSONWebKeysRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * The cluster (project, location, cluster name) 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 name) 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 name) 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The cluster (project, location, cluster name) 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(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * The cluster (project, location, cluster name) 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; - bitField0_ |= 0x00000001; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysRequestOrBuilder.java deleted file mode 100644 index 6982d44d45f5..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysRequestOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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 name) 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 name) 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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysResponse.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysResponse.java deleted file mode 100644 index f46e75eddede..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysResponse.java +++ /dev/null @@ -1,955 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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; - - @SuppressWarnings("serial") - 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)); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (keysBuilder_ == null) { - keys_ = java.util.Collections.emptyList(); - } else { - keys_ = null; - keysBuilder_.clear(); - } - 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_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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.container.v1beta1.GetJSONWebKeysResponse result) { - if (keysBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - keys_ = java.util.Collections.unmodifiableList(keys_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.keys_ = keys_; - } else { - result.keys_ = keysBuilder_.build(); - } - } - - private void buildPartial0(com.google.container.v1beta1.GetJSONWebKeysResponse result) { - int from_bitField0_ = bitField0_; - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.container.v1beta1.Jwk m = - input.readMessage(com.google.container.v1beta1.Jwk.parser(), extensionRegistry); - if (keysBuilder_ == null) { - ensureKeysIsMutable(); - keys_.add(m); - } else { - keysBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysResponseOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysResponseOrBuilder.java deleted file mode 100644 index e9d0e806d822..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysResponseOrBuilder.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequest.java deleted file mode 100644 index 030c206671b3..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequest.java +++ /dev/null @@ -1,1521 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3728 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3728 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3735 - * @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]; - * - * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3735 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * - * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3739 - * @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]; - * - * - * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3739 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * - * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3744 - * @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]; - * - * - * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3744 - * @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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.GetNodePoolRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.nodePoolId_ = nodePoolId_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.name_ = name_; - } - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getNodePoolId().isEmpty()) { - nodePoolId_ = other.nodePoolId_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000010; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - nodePoolId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 50: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3728 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3728 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3728 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3728 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3728 - * @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; - bitField0_ |= 0x00000001; - 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]; - * - * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3735 - * @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]; - * - * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3735 - * @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]; - * - * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3735 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3735 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - 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]; - * - * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3735 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * - * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3739 - * @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]; - * - * - * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3739 - * @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]; - * - * - * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3739 - * @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; - bitField0_ |= 0x00000004; - 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]; - * - * - * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3739 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - 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]; - * - * - * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3739 - * @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; - bitField0_ |= 0x00000004; - 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]; - * - * - * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3744 - * @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]; - * - * - * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3744 - * @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]; - * - * - * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3744 - * @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; - bitField0_ |= 0x00000008; - 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]; - * - * - * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3744 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearNodePoolId() { - nodePoolId_ = getDefaultInstance().getNodePoolId(); - bitField0_ = (bitField0_ & ~0x00000008); - 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]; - * - * - * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3744 - * @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; - bitField0_ |= 0x00000008; - 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; - bitField0_ |= 0x00000010; - 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(); - bitField0_ = (bitField0_ & ~0x00000010); - 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; - bitField0_ |= 0x00000010; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequestOrBuilder.java deleted file mode 100644 index b7f05438342f..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequestOrBuilder.java +++ /dev/null @@ -1,199 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3728 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3728 - * @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]; - * - * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3735 - * @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]; - * - * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3735 - * @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]; - * - * - * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3739 - * @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]; - * - * - * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3739 - * @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]; - * - * - * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3744 - * @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]; - * - * - * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3744 - * @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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigRequest.java deleted file mode 100644 index 9843f77260c9..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigRequest.java +++ /dev/null @@ -1,634 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - * - * - *
-   * The cluster (project, location, cluster name) 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 name) 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.GetOpenIDConfigRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * The cluster (project, location, cluster name) 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 name) 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 name) 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The cluster (project, location, cluster name) 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(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * The cluster (project, location, cluster name) 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; - bitField0_ |= 0x00000001; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigRequestOrBuilder.java deleted file mode 100644 index 9ff13096d109..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigRequestOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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 name) 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 name) 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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigResponse.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigResponse.java deleted file mode 100644 index 61a458f3f12c..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigResponse.java +++ /dev/null @@ -1,2204 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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.emptyList(); - subjectTypesSupported_ = com.google.protobuf.LazyStringArrayList.emptyList(); - idTokenSigningAlgValuesSupported_ = com.google.protobuf.LazyStringArrayList.emptyList(); - claimsSupported_ = com.google.protobuf.LazyStringArrayList.emptyList(); - grantTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetOpenIDConfigResponse(); - } - - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList responseTypesSupported_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList subjectTypesSupported_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList idTokenSigningAlgValuesSupported_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList claimsSupported_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList grantTypes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(issuer_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, issuer_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jwksUri_)) { - 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)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(issuer_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, issuer_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jwksUri_)) { - 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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - issuer_ = ""; - jwksUri_ = ""; - responseTypesSupported_ = com.google.protobuf.LazyStringArrayList.emptyList(); - subjectTypesSupported_ = com.google.protobuf.LazyStringArrayList.emptyList(); - idTokenSigningAlgValuesSupported_ = com.google.protobuf.LazyStringArrayList.emptyList(); - claimsSupported_ = com.google.protobuf.LazyStringArrayList.emptyList(); - grantTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.GetOpenIDConfigResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.issuer_ = issuer_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.jwksUri_ = jwksUri_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - responseTypesSupported_.makeImmutable(); - result.responseTypesSupported_ = responseTypesSupported_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - subjectTypesSupported_.makeImmutable(); - result.subjectTypesSupported_ = subjectTypesSupported_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - idTokenSigningAlgValuesSupported_.makeImmutable(); - result.idTokenSigningAlgValuesSupported_ = idTokenSigningAlgValuesSupported_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - claimsSupported_.makeImmutable(); - result.claimsSupported_ = claimsSupported_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - grantTypes_.makeImmutable(); - result.grantTypes_ = grantTypes_; - } - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getJwksUri().isEmpty()) { - jwksUri_ = other.jwksUri_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.responseTypesSupported_.isEmpty()) { - if (responseTypesSupported_.isEmpty()) { - responseTypesSupported_ = other.responseTypesSupported_; - bitField0_ |= 0x00000004; - } else { - ensureResponseTypesSupportedIsMutable(); - responseTypesSupported_.addAll(other.responseTypesSupported_); - } - onChanged(); - } - if (!other.subjectTypesSupported_.isEmpty()) { - if (subjectTypesSupported_.isEmpty()) { - subjectTypesSupported_ = other.subjectTypesSupported_; - bitField0_ |= 0x00000008; - } else { - ensureSubjectTypesSupportedIsMutable(); - subjectTypesSupported_.addAll(other.subjectTypesSupported_); - } - onChanged(); - } - if (!other.idTokenSigningAlgValuesSupported_.isEmpty()) { - if (idTokenSigningAlgValuesSupported_.isEmpty()) { - idTokenSigningAlgValuesSupported_ = other.idTokenSigningAlgValuesSupported_; - bitField0_ |= 0x00000010; - } else { - ensureIdTokenSigningAlgValuesSupportedIsMutable(); - idTokenSigningAlgValuesSupported_.addAll(other.idTokenSigningAlgValuesSupported_); - } - onChanged(); - } - if (!other.claimsSupported_.isEmpty()) { - if (claimsSupported_.isEmpty()) { - claimsSupported_ = other.claimsSupported_; - bitField0_ |= 0x00000020; - } else { - ensureClaimsSupportedIsMutable(); - claimsSupported_.addAll(other.claimsSupported_); - } - onChanged(); - } - if (!other.grantTypes_.isEmpty()) { - if (grantTypes_.isEmpty()) { - grantTypes_ = other.grantTypes_; - bitField0_ |= 0x00000040; - } else { - ensureGrantTypesIsMutable(); - grantTypes_.addAll(other.grantTypes_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - issuer_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - jwksUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureResponseTypesSupportedIsMutable(); - responseTypesSupported_.add(s); - break; - } // case 26 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureSubjectTypesSupportedIsMutable(); - subjectTypesSupported_.add(s); - break; - } // case 34 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureIdTokenSigningAlgValuesSupportedIsMutable(); - idTokenSigningAlgValuesSupported_.add(s); - break; - } // case 42 - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureClaimsSupportedIsMutable(); - claimsSupported_.add(s); - break; - } // case 50 - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureGrantTypesIsMutable(); - grantTypes_.add(s); - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * OIDC Issuer.
-     * 
- * - * string issuer = 1; - * - * @return This builder for chaining. - */ - public Builder clearIssuer() { - issuer_ = getDefaultInstance().getIssuer(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * JSON Web Key uri.
-     * 
- * - * string jwks_uri = 2; - * - * @return This builder for chaining. - */ - public Builder clearJwksUri() { - jwksUri_ = getDefaultInstance().getJwksUri(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList responseTypesSupported_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureResponseTypesSupportedIsMutable() { - if (!responseTypesSupported_.isModifiable()) { - responseTypesSupported_ = - new com.google.protobuf.LazyStringArrayList(responseTypesSupported_); - } - bitField0_ |= 0x00000004; - } - /** - * - * - *
-     * Supported response types.
-     * 
- * - * repeated string response_types_supported = 3; - * - * @return A list containing the responseTypesSupported. - */ - public com.google.protobuf.ProtocolStringList getResponseTypesSupportedList() { - responseTypesSupported_.makeImmutable(); - 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); - } - /** - * - * - *
-     * 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); - bitField0_ |= 0x00000004; - 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); - bitField0_ |= 0x00000004; - 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_); - bitField0_ |= 0x00000004; - 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.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; - 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); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList subjectTypesSupported_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureSubjectTypesSupportedIsMutable() { - if (!subjectTypesSupported_.isModifiable()) { - subjectTypesSupported_ = - new com.google.protobuf.LazyStringArrayList(subjectTypesSupported_); - } - bitField0_ |= 0x00000008; - } - /** - * - * - *
-     * Supported subject types.
-     * 
- * - * repeated string subject_types_supported = 4; - * - * @return A list containing the subjectTypesSupported. - */ - public com.google.protobuf.ProtocolStringList getSubjectTypesSupportedList() { - subjectTypesSupported_.makeImmutable(); - 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); - } - /** - * - * - *
-     * 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); - bitField0_ |= 0x00000008; - 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); - bitField0_ |= 0x00000008; - 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_); - bitField0_ |= 0x00000008; - 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.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - ; - 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); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList idTokenSigningAlgValuesSupported_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureIdTokenSigningAlgValuesSupportedIsMutable() { - if (!idTokenSigningAlgValuesSupported_.isModifiable()) { - idTokenSigningAlgValuesSupported_ = - new com.google.protobuf.LazyStringArrayList(idTokenSigningAlgValuesSupported_); - } - bitField0_ |= 0x00000010; - } - /** - * - * - *
-     * 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() { - idTokenSigningAlgValuesSupported_.makeImmutable(); - 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); - } - /** - * - * - *
-     * 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); - bitField0_ |= 0x00000010; - 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); - bitField0_ |= 0x00000010; - 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_); - bitField0_ |= 0x00000010; - 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.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - ; - 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); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList claimsSupported_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureClaimsSupportedIsMutable() { - if (!claimsSupported_.isModifiable()) { - claimsSupported_ = new com.google.protobuf.LazyStringArrayList(claimsSupported_); - } - bitField0_ |= 0x00000020; - } - /** - * - * - *
-     * Supported claims.
-     * 
- * - * repeated string claims_supported = 6; - * - * @return A list containing the claimsSupported. - */ - public com.google.protobuf.ProtocolStringList getClaimsSupportedList() { - claimsSupported_.makeImmutable(); - 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); - } - /** - * - * - *
-     * 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); - bitField0_ |= 0x00000020; - 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); - bitField0_ |= 0x00000020; - 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_); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * Supported claims.
-     * 
- * - * repeated string claims_supported = 6; - * - * @return This builder for chaining. - */ - public Builder clearClaimsSupported() { - claimsSupported_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - ; - 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); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList grantTypes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureGrantTypesIsMutable() { - if (!grantTypes_.isModifiable()) { - grantTypes_ = new com.google.protobuf.LazyStringArrayList(grantTypes_); - } - bitField0_ |= 0x00000040; - } - /** - * - * - *
-     * Supported grant types.
-     * 
- * - * repeated string grant_types = 7; - * - * @return A list containing the grantTypes. - */ - public com.google.protobuf.ProtocolStringList getGrantTypesList() { - grantTypes_.makeImmutable(); - 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); - } - /** - * - * - *
-     * 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); - bitField0_ |= 0x00000040; - 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); - bitField0_ |= 0x00000040; - 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_); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-     * Supported grant types.
-     * 
- * - * repeated string grant_types = 7; - * - * @return This builder for chaining. - */ - public Builder clearGrantTypes() { - grantTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - ; - 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); - bitField0_ |= 0x00000040; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigResponseOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigResponseOrBuilder.java deleted file mode 100644 index b1bba3d2263b..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigResponseOrBuilder.java +++ /dev/null @@ -1,331 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequest.java deleted file mode 100644 index 35d91378539f..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequest.java +++ /dev/null @@ -1,1297 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3466 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3466 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3473 - * @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]; - * - * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3473 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * - * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3477 - * @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]; - * - * - * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3477 - * @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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, operationId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, operationId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.GetOperationRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.operationId_ = operationId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.name_ = name_; - } - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getOperationId().isEmpty()) { - operationId_ = other.operationId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000008; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - operationId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 42: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3466 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3466 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3466 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3466 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3466 - * @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; - bitField0_ |= 0x00000001; - 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]; - * - * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3473 - * @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]; - * - * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3473 - * @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]; - * - * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3473 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3473 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - 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]; - * - * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3473 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * - * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3477 - * @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]; - * - * - * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3477 - * @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]; - * - * - * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3477 - * @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; - bitField0_ |= 0x00000004; - 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]; - * - * - * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3477 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearOperationId() { - operationId_ = getDefaultInstance().getOperationId(); - bitField0_ = (bitField0_ & ~0x00000004); - 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]; - * - * - * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3477 - * @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; - bitField0_ |= 0x00000004; - 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; - bitField0_ |= 0x00000008; - 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(); - bitField0_ = (bitField0_ & ~0x00000008); - 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; - bitField0_ |= 0x00000008; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequestOrBuilder.java deleted file mode 100644 index 2fa209a89408..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequestOrBuilder.java +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3466 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3466 - * @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]; - * - * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3473 - * @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]; - * - * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3473 - * @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]; - * - * - * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3477 - * @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]; - * - * - * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3477 - * @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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequest.java deleted file mode 100644 index da1c6c0493a6..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequest.java +++ /dev/null @@ -1,1080 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3544 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3544 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3551 - * @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]; - * - * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3551 - * @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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.GetServerConfigRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.name_ = name_; - } - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 34: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3544 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3544 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3544 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3544 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3544 - * @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; - bitField0_ |= 0x00000001; - 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]; - * - * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3551 - * @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]; - * - * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3551 - * @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]; - * - * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3551 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3551 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - 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]; - * - * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3551 - * @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; - bitField0_ |= 0x00000002; - 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; - bitField0_ |= 0x00000004; - 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(); - bitField0_ = (bitField0_ & ~0x00000004); - 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; - bitField0_ |= 0x00000004; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequestOrBuilder.java deleted file mode 100644 index 52631ee90fa1..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequestOrBuilder.java +++ /dev/null @@ -1,127 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3544 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3544 - * @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]; - * - * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3551 - * @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]; - * - * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3551 - * @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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GkeBackupAgentConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GkeBackupAgentConfig.java deleted file mode 100644 index 8792b714abb7..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GkeBackupAgentConfig.java +++ /dev/null @@ -1,535 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * Configuration for the Backup for GKE Agent.
- * 
- * - * Protobuf type {@code google.container.v1beta1.GkeBackupAgentConfig} - */ -public final class GkeBackupAgentConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.GkeBackupAgentConfig) - GkeBackupAgentConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use GkeBackupAgentConfig.newBuilder() to construct. - private GkeBackupAgentConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GkeBackupAgentConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GkeBackupAgentConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_GkeBackupAgentConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_GkeBackupAgentConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.GkeBackupAgentConfig.class, - com.google.container.v1beta1.GkeBackupAgentConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * Whether the Backup for GKE agent is enabled for this cluster.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1beta1.GkeBackupAgentConfig)) { - return super.equals(obj); - } - com.google.container.v1beta1.GkeBackupAgentConfig other = - (com.google.container.v1beta1.GkeBackupAgentConfig) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.GkeBackupAgentConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.GkeBackupAgentConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.GkeBackupAgentConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.GkeBackupAgentConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.GkeBackupAgentConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.GkeBackupAgentConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.GkeBackupAgentConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.GkeBackupAgentConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.GkeBackupAgentConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.GkeBackupAgentConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.GkeBackupAgentConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.GkeBackupAgentConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1beta1.GkeBackupAgentConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Configuration for the Backup for GKE Agent.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.GkeBackupAgentConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.GkeBackupAgentConfig) - com.google.container.v1beta1.GkeBackupAgentConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_GkeBackupAgentConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_GkeBackupAgentConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.GkeBackupAgentConfig.class, - com.google.container.v1beta1.GkeBackupAgentConfig.Builder.class); - } - - // Construct using com.google.container.v1beta1.GkeBackupAgentConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 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_GkeBackupAgentConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.GkeBackupAgentConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.GkeBackupAgentConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.GkeBackupAgentConfig build() { - com.google.container.v1beta1.GkeBackupAgentConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.GkeBackupAgentConfig buildPartial() { - com.google.container.v1beta1.GkeBackupAgentConfig result = - new com.google.container.v1beta1.GkeBackupAgentConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.GkeBackupAgentConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.GkeBackupAgentConfig) { - return mergeFrom((com.google.container.v1beta1.GkeBackupAgentConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.GkeBackupAgentConfig other) { - if (other == com.google.container.v1beta1.GkeBackupAgentConfig.getDefaultInstance()) - return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean enabled_; - /** - * - * - *
-     * Whether the Backup for GKE agent is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Whether the Backup for GKE agent is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether the Backup for GKE agent is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - enabled_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.GkeBackupAgentConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.GkeBackupAgentConfig) - private static final com.google.container.v1beta1.GkeBackupAgentConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.GkeBackupAgentConfig(); - } - - public static com.google.container.v1beta1.GkeBackupAgentConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GkeBackupAgentConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1beta1.GkeBackupAgentConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GkeBackupAgentConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GkeBackupAgentConfigOrBuilder.java deleted file mode 100644 index 44d0202feac7..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GkeBackupAgentConfigOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface GkeBackupAgentConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GkeBackupAgentConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether the Backup for GKE agent is enabled for this cluster.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HorizontalPodAutoscaling.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HorizontalPodAutoscaling.java deleted file mode 100644 index 23e376d11353..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HorizontalPodAutoscaling.java +++ /dev/null @@ -1,548 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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_ = false; - /** - * - * - *
-   * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.HorizontalPodAutoscaling result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.disabled_ = disabled_; - } - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - disabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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() { - bitField0_ = (bitField0_ & ~0x00000001); - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HorizontalPodAutoscalingOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HorizontalPodAutoscalingOrBuilder.java deleted file mode 100644 index 91901949347e..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HorizontalPodAutoscalingOrBuilder.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HostMaintenancePolicy.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HostMaintenancePolicy.java deleted file mode 100644 index 2f8a1723649b..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HostMaintenancePolicy.java +++ /dev/null @@ -1,2651 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * HostMaintenancePolicy contains the maintenance policy for the hosts on which
- * the GKE VMs run on.
- * 
- * - * Protobuf type {@code google.container.v1beta1.HostMaintenancePolicy} - */ -public final class HostMaintenancePolicy extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.HostMaintenancePolicy) - HostMaintenancePolicyOrBuilder { - private static final long serialVersionUID = 0L; - // Use HostMaintenancePolicy.newBuilder() to construct. - private HostMaintenancePolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private HostMaintenancePolicy() { - maintenanceInterval_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new HostMaintenancePolicy(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_HostMaintenancePolicy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_HostMaintenancePolicy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.HostMaintenancePolicy.class, - com.google.container.v1beta1.HostMaintenancePolicy.Builder.class); - } - - /** - * - * - *
-   * Allows selecting how infrastructure upgrades should be applied to the
-   * cluster or node pool.
-   * 
- * - * Protobuf enum {@code google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval} - */ - public enum MaintenanceInterval implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * The maintenance interval is not explicitly specified.
-     * 
- * - * MAINTENANCE_INTERVAL_UNSPECIFIED = 0; - */ - MAINTENANCE_INTERVAL_UNSPECIFIED(0), - /** - * - * - *
-     * Nodes are eligible to receive infrastructure and hypervisor updates as
-     * they become available.  This may result in more maintenance operations
-     * (live migrations or terminations) for the node than the PERIODIC option.
-     * 
- * - * AS_NEEDED = 1; - */ - AS_NEEDED(1), - /** - * - * - *
-     * Nodes receive infrastructure and hypervisor updates on a periodic basis,
-     * minimizing the number of maintenance operations (live migrations or
-     * terminations) on an individual VM.  This may mean underlying VMs will
-     * take longer to receive an update than if it was configured for
-     * AS_NEEDED.  Security updates will still be applied as soon
-     * as they are available.
-     * 
- * - * PERIODIC = 2; - */ - PERIODIC(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * The maintenance interval is not explicitly specified.
-     * 
- * - * MAINTENANCE_INTERVAL_UNSPECIFIED = 0; - */ - public static final int MAINTENANCE_INTERVAL_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Nodes are eligible to receive infrastructure and hypervisor updates as
-     * they become available.  This may result in more maintenance operations
-     * (live migrations or terminations) for the node than the PERIODIC option.
-     * 
- * - * AS_NEEDED = 1; - */ - public static final int AS_NEEDED_VALUE = 1; - /** - * - * - *
-     * Nodes receive infrastructure and hypervisor updates on a periodic basis,
-     * minimizing the number of maintenance operations (live migrations or
-     * terminations) on an individual VM.  This may mean underlying VMs will
-     * take longer to receive an update than if it was configured for
-     * AS_NEEDED.  Security updates will still be applied as soon
-     * as they are available.
-     * 
- * - * PERIODIC = 2; - */ - public static final int PERIODIC_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 MaintenanceInterval 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 MaintenanceInterval forNumber(int value) { - switch (value) { - case 0: - return MAINTENANCE_INTERVAL_UNSPECIFIED; - case 1: - return AS_NEEDED; - case 2: - return PERIODIC; - 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 MaintenanceInterval findValueByNumber(int number) { - return MaintenanceInterval.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.HostMaintenancePolicy.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final MaintenanceInterval[] VALUES = values(); - - public static MaintenanceInterval 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 MaintenanceInterval(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval) - } - - public interface OpportunisticMaintenanceStrategyOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * The amount of time that a node can remain idle (no customer owned
-     * workloads running), before triggering maintenance.
-     * 
- * - * optional .google.protobuf.Duration node_idle_time_window = 1; - * - * @return Whether the nodeIdleTimeWindow field is set. - */ - boolean hasNodeIdleTimeWindow(); - /** - * - * - *
-     * The amount of time that a node can remain idle (no customer owned
-     * workloads running), before triggering maintenance.
-     * 
- * - * optional .google.protobuf.Duration node_idle_time_window = 1; - * - * @return The nodeIdleTimeWindow. - */ - com.google.protobuf.Duration getNodeIdleTimeWindow(); - /** - * - * - *
-     * The amount of time that a node can remain idle (no customer owned
-     * workloads running), before triggering maintenance.
-     * 
- * - * optional .google.protobuf.Duration node_idle_time_window = 1; - */ - com.google.protobuf.DurationOrBuilder getNodeIdleTimeWindowOrBuilder(); - - /** - * - * - *
-     * The window of time that opportunistic maintenance can run. Example: A
-     * setting of 14 days implies that opportunistic maintenance can only be ran
-     * in the 2 weeks leading up to the scheduled maintenance date. Setting 28
-     * days allows opportunistic maintenance to run at any time in the scheduled
-     * maintenance window (all `PERIODIC` maintenance is set 28 days in
-     * advance).
-     * 
- * - * optional .google.protobuf.Duration maintenance_availability_window = 2; - * - * @return Whether the maintenanceAvailabilityWindow field is set. - */ - boolean hasMaintenanceAvailabilityWindow(); - /** - * - * - *
-     * The window of time that opportunistic maintenance can run. Example: A
-     * setting of 14 days implies that opportunistic maintenance can only be ran
-     * in the 2 weeks leading up to the scheduled maintenance date. Setting 28
-     * days allows opportunistic maintenance to run at any time in the scheduled
-     * maintenance window (all `PERIODIC` maintenance is set 28 days in
-     * advance).
-     * 
- * - * optional .google.protobuf.Duration maintenance_availability_window = 2; - * - * @return The maintenanceAvailabilityWindow. - */ - com.google.protobuf.Duration getMaintenanceAvailabilityWindow(); - /** - * - * - *
-     * The window of time that opportunistic maintenance can run. Example: A
-     * setting of 14 days implies that opportunistic maintenance can only be ran
-     * in the 2 weeks leading up to the scheduled maintenance date. Setting 28
-     * days allows opportunistic maintenance to run at any time in the scheduled
-     * maintenance window (all `PERIODIC` maintenance is set 28 days in
-     * advance).
-     * 
- * - * optional .google.protobuf.Duration maintenance_availability_window = 2; - */ - com.google.protobuf.DurationOrBuilder getMaintenanceAvailabilityWindowOrBuilder(); - - /** - * - * - *
-     * The minimum nodes required to be available in a pool. Blocks maintenance
-     * if it would cause the number of running nodes to dip below this value.
-     * 
- * - * optional int64 min_nodes_per_pool = 3; - * - * @return Whether the minNodesPerPool field is set. - */ - boolean hasMinNodesPerPool(); - /** - * - * - *
-     * The minimum nodes required to be available in a pool. Blocks maintenance
-     * if it would cause the number of running nodes to dip below this value.
-     * 
- * - * optional int64 min_nodes_per_pool = 3; - * - * @return The minNodesPerPool. - */ - long getMinNodesPerPool(); - } - /** - * - * - *
-   * Strategy that will trigger maintenance on behalf of the customer.
-   * 
- * - * Protobuf type {@code - * google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy} - */ - public static final class OpportunisticMaintenanceStrategy - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy) - OpportunisticMaintenanceStrategyOrBuilder { - private static final long serialVersionUID = 0L; - // Use OpportunisticMaintenanceStrategy.newBuilder() to construct. - private OpportunisticMaintenanceStrategy( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private OpportunisticMaintenanceStrategy() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new OpportunisticMaintenanceStrategy(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_HostMaintenancePolicy_OpportunisticMaintenanceStrategy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_HostMaintenancePolicy_OpportunisticMaintenanceStrategy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy - .class, - com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy - .Builder.class); - } - - private int bitField0_; - public static final int NODE_IDLE_TIME_WINDOW_FIELD_NUMBER = 1; - private com.google.protobuf.Duration nodeIdleTimeWindow_; - /** - * - * - *
-     * The amount of time that a node can remain idle (no customer owned
-     * workloads running), before triggering maintenance.
-     * 
- * - * optional .google.protobuf.Duration node_idle_time_window = 1; - * - * @return Whether the nodeIdleTimeWindow field is set. - */ - @java.lang.Override - public boolean hasNodeIdleTimeWindow() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * The amount of time that a node can remain idle (no customer owned
-     * workloads running), before triggering maintenance.
-     * 
- * - * optional .google.protobuf.Duration node_idle_time_window = 1; - * - * @return The nodeIdleTimeWindow. - */ - @java.lang.Override - public com.google.protobuf.Duration getNodeIdleTimeWindow() { - return nodeIdleTimeWindow_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : nodeIdleTimeWindow_; - } - /** - * - * - *
-     * The amount of time that a node can remain idle (no customer owned
-     * workloads running), before triggering maintenance.
-     * 
- * - * optional .google.protobuf.Duration node_idle_time_window = 1; - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getNodeIdleTimeWindowOrBuilder() { - return nodeIdleTimeWindow_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : nodeIdleTimeWindow_; - } - - public static final int MAINTENANCE_AVAILABILITY_WINDOW_FIELD_NUMBER = 2; - private com.google.protobuf.Duration maintenanceAvailabilityWindow_; - /** - * - * - *
-     * The window of time that opportunistic maintenance can run. Example: A
-     * setting of 14 days implies that opportunistic maintenance can only be ran
-     * in the 2 weeks leading up to the scheduled maintenance date. Setting 28
-     * days allows opportunistic maintenance to run at any time in the scheduled
-     * maintenance window (all `PERIODIC` maintenance is set 28 days in
-     * advance).
-     * 
- * - * optional .google.protobuf.Duration maintenance_availability_window = 2; - * - * @return Whether the maintenanceAvailabilityWindow field is set. - */ - @java.lang.Override - public boolean hasMaintenanceAvailabilityWindow() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * The window of time that opportunistic maintenance can run. Example: A
-     * setting of 14 days implies that opportunistic maintenance can only be ran
-     * in the 2 weeks leading up to the scheduled maintenance date. Setting 28
-     * days allows opportunistic maintenance to run at any time in the scheduled
-     * maintenance window (all `PERIODIC` maintenance is set 28 days in
-     * advance).
-     * 
- * - * optional .google.protobuf.Duration maintenance_availability_window = 2; - * - * @return The maintenanceAvailabilityWindow. - */ - @java.lang.Override - public com.google.protobuf.Duration getMaintenanceAvailabilityWindow() { - return maintenanceAvailabilityWindow_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maintenanceAvailabilityWindow_; - } - /** - * - * - *
-     * The window of time that opportunistic maintenance can run. Example: A
-     * setting of 14 days implies that opportunistic maintenance can only be ran
-     * in the 2 weeks leading up to the scheduled maintenance date. Setting 28
-     * days allows opportunistic maintenance to run at any time in the scheduled
-     * maintenance window (all `PERIODIC` maintenance is set 28 days in
-     * advance).
-     * 
- * - * optional .google.protobuf.Duration maintenance_availability_window = 2; - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getMaintenanceAvailabilityWindowOrBuilder() { - return maintenanceAvailabilityWindow_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maintenanceAvailabilityWindow_; - } - - public static final int MIN_NODES_PER_POOL_FIELD_NUMBER = 3; - private long minNodesPerPool_ = 0L; - /** - * - * - *
-     * The minimum nodes required to be available in a pool. Blocks maintenance
-     * if it would cause the number of running nodes to dip below this value.
-     * 
- * - * optional int64 min_nodes_per_pool = 3; - * - * @return Whether the minNodesPerPool field is set. - */ - @java.lang.Override - public boolean hasMinNodesPerPool() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * The minimum nodes required to be available in a pool. Blocks maintenance
-     * if it would cause the number of running nodes to dip below this value.
-     * 
- * - * optional int64 min_nodes_per_pool = 3; - * - * @return The minNodesPerPool. - */ - @java.lang.Override - public long getMinNodesPerPool() { - return minNodesPerPool_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getNodeIdleTimeWindow()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getMaintenanceAvailabilityWindow()); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeInt64(3, minNodesPerPool_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNodeIdleTimeWindow()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, getMaintenanceAvailabilityWindow()); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, minNodesPerPool_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.HostMaintenancePolicy.OpportunisticMaintenanceStrategy)) { - return super.equals(obj); - } - com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy other = - (com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy) obj; - - if (hasNodeIdleTimeWindow() != other.hasNodeIdleTimeWindow()) return false; - if (hasNodeIdleTimeWindow()) { - if (!getNodeIdleTimeWindow().equals(other.getNodeIdleTimeWindow())) return false; - } - if (hasMaintenanceAvailabilityWindow() != other.hasMaintenanceAvailabilityWindow()) - return false; - if (hasMaintenanceAvailabilityWindow()) { - if (!getMaintenanceAvailabilityWindow().equals(other.getMaintenanceAvailabilityWindow())) - return false; - } - if (hasMinNodesPerPool() != other.hasMinNodesPerPool()) return false; - if (hasMinNodesPerPool()) { - if (getMinNodesPerPool() != other.getMinNodesPerPool()) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasNodeIdleTimeWindow()) { - hash = (37 * hash) + NODE_IDLE_TIME_WINDOW_FIELD_NUMBER; - hash = (53 * hash) + getNodeIdleTimeWindow().hashCode(); - } - if (hasMaintenanceAvailabilityWindow()) { - hash = (37 * hash) + MAINTENANCE_AVAILABILITY_WINDOW_FIELD_NUMBER; - hash = (53 * hash) + getMaintenanceAvailabilityWindow().hashCode(); - } - if (hasMinNodesPerPool()) { - hash = (37 * hash) + MIN_NODES_PER_POOL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMinNodesPerPool()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.HostMaintenancePolicy - .OpportunisticMaintenanceStrategy - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.HostMaintenancePolicy - .OpportunisticMaintenanceStrategy - parseFrom( - 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.HostMaintenancePolicy - .OpportunisticMaintenanceStrategy - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.HostMaintenancePolicy - .OpportunisticMaintenanceStrategy - parseFrom( - com.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.HostMaintenancePolicy - .OpportunisticMaintenanceStrategy - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.HostMaintenancePolicy - .OpportunisticMaintenanceStrategy - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.HostMaintenancePolicy - .OpportunisticMaintenanceStrategy - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.HostMaintenancePolicy - .OpportunisticMaintenanceStrategy - parseFrom( - java.io.InputStream 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.HostMaintenancePolicy - .OpportunisticMaintenanceStrategy - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.HostMaintenancePolicy - .OpportunisticMaintenanceStrategy - parseDelimitedFrom( - java.io.InputStream 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.HostMaintenancePolicy - .OpportunisticMaintenanceStrategy - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.HostMaintenancePolicy - .OpportunisticMaintenanceStrategy - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.HostMaintenancePolicy.OpportunisticMaintenanceStrategy - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Strategy that will trigger maintenance on behalf of the customer.
-     * 
- * - * Protobuf type {@code - * google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy) - com.google.container.v1beta1.HostMaintenancePolicy - .OpportunisticMaintenanceStrategyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_HostMaintenancePolicy_OpportunisticMaintenanceStrategy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_HostMaintenancePolicy_OpportunisticMaintenanceStrategy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy - .class, - com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy - .Builder.class); - } - - // Construct using - // com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getNodeIdleTimeWindowFieldBuilder(); - getMaintenanceAvailabilityWindowFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - nodeIdleTimeWindow_ = null; - if (nodeIdleTimeWindowBuilder_ != null) { - nodeIdleTimeWindowBuilder_.dispose(); - nodeIdleTimeWindowBuilder_ = null; - } - maintenanceAvailabilityWindow_ = null; - if (maintenanceAvailabilityWindowBuilder_ != null) { - maintenanceAvailabilityWindowBuilder_.dispose(); - maintenanceAvailabilityWindowBuilder_ = null; - } - minNodesPerPool_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_HostMaintenancePolicy_OpportunisticMaintenanceStrategy_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy - getDefaultInstanceForType() { - return com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy - build() { - com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy - buildPartial() { - com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy result = - new com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy( - this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy - result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.nodeIdleTimeWindow_ = - nodeIdleTimeWindowBuilder_ == null - ? nodeIdleTimeWindow_ - : nodeIdleTimeWindowBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.maintenanceAvailabilityWindow_ = - maintenanceAvailabilityWindowBuilder_ == null - ? maintenanceAvailabilityWindow_ - : maintenanceAvailabilityWindowBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.minNodesPerPool_ = minNodesPerPool_; - to_bitField0_ |= 0x00000004; - } - result.bitField0_ |= to_bitField0_; - } - - @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.HostMaintenancePolicy.OpportunisticMaintenanceStrategy) { - return mergeFrom( - (com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy - other) { - if (other - == com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy - .getDefaultInstance()) return this; - if (other.hasNodeIdleTimeWindow()) { - mergeNodeIdleTimeWindow(other.getNodeIdleTimeWindow()); - } - if (other.hasMaintenanceAvailabilityWindow()) { - mergeMaintenanceAvailabilityWindow(other.getMaintenanceAvailabilityWindow()); - } - if (other.hasMinNodesPerPool()) { - setMinNodesPerPool(other.getMinNodesPerPool()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage( - getNodeIdleTimeWindowFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - getMaintenanceAvailabilityWindowFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - minNodesPerPool_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.protobuf.Duration nodeIdleTimeWindow_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - nodeIdleTimeWindowBuilder_; - /** - * - * - *
-       * The amount of time that a node can remain idle (no customer owned
-       * workloads running), before triggering maintenance.
-       * 
- * - * optional .google.protobuf.Duration node_idle_time_window = 1; - * - * @return Whether the nodeIdleTimeWindow field is set. - */ - public boolean hasNodeIdleTimeWindow() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-       * The amount of time that a node can remain idle (no customer owned
-       * workloads running), before triggering maintenance.
-       * 
- * - * optional .google.protobuf.Duration node_idle_time_window = 1; - * - * @return The nodeIdleTimeWindow. - */ - public com.google.protobuf.Duration getNodeIdleTimeWindow() { - if (nodeIdleTimeWindowBuilder_ == null) { - return nodeIdleTimeWindow_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : nodeIdleTimeWindow_; - } else { - return nodeIdleTimeWindowBuilder_.getMessage(); - } - } - /** - * - * - *
-       * The amount of time that a node can remain idle (no customer owned
-       * workloads running), before triggering maintenance.
-       * 
- * - * optional .google.protobuf.Duration node_idle_time_window = 1; - */ - public Builder setNodeIdleTimeWindow(com.google.protobuf.Duration value) { - if (nodeIdleTimeWindowBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - nodeIdleTimeWindow_ = value; - } else { - nodeIdleTimeWindowBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * The amount of time that a node can remain idle (no customer owned
-       * workloads running), before triggering maintenance.
-       * 
- * - * optional .google.protobuf.Duration node_idle_time_window = 1; - */ - public Builder setNodeIdleTimeWindow(com.google.protobuf.Duration.Builder builderForValue) { - if (nodeIdleTimeWindowBuilder_ == null) { - nodeIdleTimeWindow_ = builderForValue.build(); - } else { - nodeIdleTimeWindowBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * The amount of time that a node can remain idle (no customer owned
-       * workloads running), before triggering maintenance.
-       * 
- * - * optional .google.protobuf.Duration node_idle_time_window = 1; - */ - public Builder mergeNodeIdleTimeWindow(com.google.protobuf.Duration value) { - if (nodeIdleTimeWindowBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && nodeIdleTimeWindow_ != null - && nodeIdleTimeWindow_ != com.google.protobuf.Duration.getDefaultInstance()) { - getNodeIdleTimeWindowBuilder().mergeFrom(value); - } else { - nodeIdleTimeWindow_ = value; - } - } else { - nodeIdleTimeWindowBuilder_.mergeFrom(value); - } - if (nodeIdleTimeWindow_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * - * - *
-       * The amount of time that a node can remain idle (no customer owned
-       * workloads running), before triggering maintenance.
-       * 
- * - * optional .google.protobuf.Duration node_idle_time_window = 1; - */ - public Builder clearNodeIdleTimeWindow() { - bitField0_ = (bitField0_ & ~0x00000001); - nodeIdleTimeWindow_ = null; - if (nodeIdleTimeWindowBuilder_ != null) { - nodeIdleTimeWindowBuilder_.dispose(); - nodeIdleTimeWindowBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-       * The amount of time that a node can remain idle (no customer owned
-       * workloads running), before triggering maintenance.
-       * 
- * - * optional .google.protobuf.Duration node_idle_time_window = 1; - */ - public com.google.protobuf.Duration.Builder getNodeIdleTimeWindowBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getNodeIdleTimeWindowFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * The amount of time that a node can remain idle (no customer owned
-       * workloads running), before triggering maintenance.
-       * 
- * - * optional .google.protobuf.Duration node_idle_time_window = 1; - */ - public com.google.protobuf.DurationOrBuilder getNodeIdleTimeWindowOrBuilder() { - if (nodeIdleTimeWindowBuilder_ != null) { - return nodeIdleTimeWindowBuilder_.getMessageOrBuilder(); - } else { - return nodeIdleTimeWindow_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : nodeIdleTimeWindow_; - } - } - /** - * - * - *
-       * The amount of time that a node can remain idle (no customer owned
-       * workloads running), before triggering maintenance.
-       * 
- * - * optional .google.protobuf.Duration node_idle_time_window = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getNodeIdleTimeWindowFieldBuilder() { - if (nodeIdleTimeWindowBuilder_ == null) { - nodeIdleTimeWindowBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getNodeIdleTimeWindow(), getParentForChildren(), isClean()); - nodeIdleTimeWindow_ = null; - } - return nodeIdleTimeWindowBuilder_; - } - - private com.google.protobuf.Duration maintenanceAvailabilityWindow_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - maintenanceAvailabilityWindowBuilder_; - /** - * - * - *
-       * The window of time that opportunistic maintenance can run. Example: A
-       * setting of 14 days implies that opportunistic maintenance can only be ran
-       * in the 2 weeks leading up to the scheduled maintenance date. Setting 28
-       * days allows opportunistic maintenance to run at any time in the scheduled
-       * maintenance window (all `PERIODIC` maintenance is set 28 days in
-       * advance).
-       * 
- * - * optional .google.protobuf.Duration maintenance_availability_window = 2; - * - * @return Whether the maintenanceAvailabilityWindow field is set. - */ - public boolean hasMaintenanceAvailabilityWindow() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-       * The window of time that opportunistic maintenance can run. Example: A
-       * setting of 14 days implies that opportunistic maintenance can only be ran
-       * in the 2 weeks leading up to the scheduled maintenance date. Setting 28
-       * days allows opportunistic maintenance to run at any time in the scheduled
-       * maintenance window (all `PERIODIC` maintenance is set 28 days in
-       * advance).
-       * 
- * - * optional .google.protobuf.Duration maintenance_availability_window = 2; - * - * @return The maintenanceAvailabilityWindow. - */ - public com.google.protobuf.Duration getMaintenanceAvailabilityWindow() { - if (maintenanceAvailabilityWindowBuilder_ == null) { - return maintenanceAvailabilityWindow_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maintenanceAvailabilityWindow_; - } else { - return maintenanceAvailabilityWindowBuilder_.getMessage(); - } - } - /** - * - * - *
-       * The window of time that opportunistic maintenance can run. Example: A
-       * setting of 14 days implies that opportunistic maintenance can only be ran
-       * in the 2 weeks leading up to the scheduled maintenance date. Setting 28
-       * days allows opportunistic maintenance to run at any time in the scheduled
-       * maintenance window (all `PERIODIC` maintenance is set 28 days in
-       * advance).
-       * 
- * - * optional .google.protobuf.Duration maintenance_availability_window = 2; - */ - public Builder setMaintenanceAvailabilityWindow(com.google.protobuf.Duration value) { - if (maintenanceAvailabilityWindowBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - maintenanceAvailabilityWindow_ = value; - } else { - maintenanceAvailabilityWindowBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-       * The window of time that opportunistic maintenance can run. Example: A
-       * setting of 14 days implies that opportunistic maintenance can only be ran
-       * in the 2 weeks leading up to the scheduled maintenance date. Setting 28
-       * days allows opportunistic maintenance to run at any time in the scheduled
-       * maintenance window (all `PERIODIC` maintenance is set 28 days in
-       * advance).
-       * 
- * - * optional .google.protobuf.Duration maintenance_availability_window = 2; - */ - public Builder setMaintenanceAvailabilityWindow( - com.google.protobuf.Duration.Builder builderForValue) { - if (maintenanceAvailabilityWindowBuilder_ == null) { - maintenanceAvailabilityWindow_ = builderForValue.build(); - } else { - maintenanceAvailabilityWindowBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-       * The window of time that opportunistic maintenance can run. Example: A
-       * setting of 14 days implies that opportunistic maintenance can only be ran
-       * in the 2 weeks leading up to the scheduled maintenance date. Setting 28
-       * days allows opportunistic maintenance to run at any time in the scheduled
-       * maintenance window (all `PERIODIC` maintenance is set 28 days in
-       * advance).
-       * 
- * - * optional .google.protobuf.Duration maintenance_availability_window = 2; - */ - public Builder mergeMaintenanceAvailabilityWindow(com.google.protobuf.Duration value) { - if (maintenanceAvailabilityWindowBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && maintenanceAvailabilityWindow_ != null - && maintenanceAvailabilityWindow_ - != com.google.protobuf.Duration.getDefaultInstance()) { - getMaintenanceAvailabilityWindowBuilder().mergeFrom(value); - } else { - maintenanceAvailabilityWindow_ = value; - } - } else { - maintenanceAvailabilityWindowBuilder_.mergeFrom(value); - } - if (maintenanceAvailabilityWindow_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * - * - *
-       * The window of time that opportunistic maintenance can run. Example: A
-       * setting of 14 days implies that opportunistic maintenance can only be ran
-       * in the 2 weeks leading up to the scheduled maintenance date. Setting 28
-       * days allows opportunistic maintenance to run at any time in the scheduled
-       * maintenance window (all `PERIODIC` maintenance is set 28 days in
-       * advance).
-       * 
- * - * optional .google.protobuf.Duration maintenance_availability_window = 2; - */ - public Builder clearMaintenanceAvailabilityWindow() { - bitField0_ = (bitField0_ & ~0x00000002); - maintenanceAvailabilityWindow_ = null; - if (maintenanceAvailabilityWindowBuilder_ != null) { - maintenanceAvailabilityWindowBuilder_.dispose(); - maintenanceAvailabilityWindowBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-       * The window of time that opportunistic maintenance can run. Example: A
-       * setting of 14 days implies that opportunistic maintenance can only be ran
-       * in the 2 weeks leading up to the scheduled maintenance date. Setting 28
-       * days allows opportunistic maintenance to run at any time in the scheduled
-       * maintenance window (all `PERIODIC` maintenance is set 28 days in
-       * advance).
-       * 
- * - * optional .google.protobuf.Duration maintenance_availability_window = 2; - */ - public com.google.protobuf.Duration.Builder getMaintenanceAvailabilityWindowBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getMaintenanceAvailabilityWindowFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * The window of time that opportunistic maintenance can run. Example: A
-       * setting of 14 days implies that opportunistic maintenance can only be ran
-       * in the 2 weeks leading up to the scheduled maintenance date. Setting 28
-       * days allows opportunistic maintenance to run at any time in the scheduled
-       * maintenance window (all `PERIODIC` maintenance is set 28 days in
-       * advance).
-       * 
- * - * optional .google.protobuf.Duration maintenance_availability_window = 2; - */ - public com.google.protobuf.DurationOrBuilder getMaintenanceAvailabilityWindowOrBuilder() { - if (maintenanceAvailabilityWindowBuilder_ != null) { - return maintenanceAvailabilityWindowBuilder_.getMessageOrBuilder(); - } else { - return maintenanceAvailabilityWindow_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maintenanceAvailabilityWindow_; - } - } - /** - * - * - *
-       * The window of time that opportunistic maintenance can run. Example: A
-       * setting of 14 days implies that opportunistic maintenance can only be ran
-       * in the 2 weeks leading up to the scheduled maintenance date. Setting 28
-       * days allows opportunistic maintenance to run at any time in the scheduled
-       * maintenance window (all `PERIODIC` maintenance is set 28 days in
-       * advance).
-       * 
- * - * optional .google.protobuf.Duration maintenance_availability_window = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getMaintenanceAvailabilityWindowFieldBuilder() { - if (maintenanceAvailabilityWindowBuilder_ == null) { - maintenanceAvailabilityWindowBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getMaintenanceAvailabilityWindow(), getParentForChildren(), isClean()); - maintenanceAvailabilityWindow_ = null; - } - return maintenanceAvailabilityWindowBuilder_; - } - - private long minNodesPerPool_; - /** - * - * - *
-       * The minimum nodes required to be available in a pool. Blocks maintenance
-       * if it would cause the number of running nodes to dip below this value.
-       * 
- * - * optional int64 min_nodes_per_pool = 3; - * - * @return Whether the minNodesPerPool field is set. - */ - @java.lang.Override - public boolean hasMinNodesPerPool() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-       * The minimum nodes required to be available in a pool. Blocks maintenance
-       * if it would cause the number of running nodes to dip below this value.
-       * 
- * - * optional int64 min_nodes_per_pool = 3; - * - * @return The minNodesPerPool. - */ - @java.lang.Override - public long getMinNodesPerPool() { - return minNodesPerPool_; - } - /** - * - * - *
-       * The minimum nodes required to be available in a pool. Blocks maintenance
-       * if it would cause the number of running nodes to dip below this value.
-       * 
- * - * optional int64 min_nodes_per_pool = 3; - * - * @param value The minNodesPerPool to set. - * @return This builder for chaining. - */ - public Builder setMinNodesPerPool(long value) { - - minNodesPerPool_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-       * The minimum nodes required to be available in a pool. Blocks maintenance
-       * if it would cause the number of running nodes to dip below this value.
-       * 
- * - * optional int64 min_nodes_per_pool = 3; - * - * @return This builder for chaining. - */ - public Builder clearMinNodesPerPool() { - bitField0_ = (bitField0_ & ~0x00000004); - minNodesPerPool_ = 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.HostMaintenancePolicy.OpportunisticMaintenanceStrategy) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy) - private static final com.google.container.v1beta1.HostMaintenancePolicy - .OpportunisticMaintenanceStrategy - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy(); - } - - public static com.google.container.v1beta1.HostMaintenancePolicy - .OpportunisticMaintenanceStrategy - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OpportunisticMaintenanceStrategy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.HostMaintenancePolicy.OpportunisticMaintenanceStrategy - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int bitField0_; - private int maintenanceStrategyCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object maintenanceStrategy_; - - public enum MaintenanceStrategyCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - OPPORTUNISTIC_MAINTENANCE_STRATEGY(2), - MAINTENANCESTRATEGY_NOT_SET(0); - private final int value; - - private MaintenanceStrategyCase(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 MaintenanceStrategyCase valueOf(int value) { - return forNumber(value); - } - - public static MaintenanceStrategyCase forNumber(int value) { - switch (value) { - case 2: - return OPPORTUNISTIC_MAINTENANCE_STRATEGY; - case 0: - return MAINTENANCESTRATEGY_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public MaintenanceStrategyCase getMaintenanceStrategyCase() { - return MaintenanceStrategyCase.forNumber(maintenanceStrategyCase_); - } - - public static final int MAINTENANCE_INTERVAL_FIELD_NUMBER = 1; - private int maintenanceInterval_ = 0; - /** - * - * - *
-   * Specifies the frequency of planned maintenance events.
-   * 
- * - * - * optional .google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval maintenance_interval = 1; - * - * - * @return Whether the maintenanceInterval field is set. - */ - @java.lang.Override - public boolean hasMaintenanceInterval() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Specifies the frequency of planned maintenance events.
-   * 
- * - * - * optional .google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval maintenance_interval = 1; - * - * - * @return The enum numeric value on the wire for maintenanceInterval. - */ - @java.lang.Override - public int getMaintenanceIntervalValue() { - return maintenanceInterval_; - } - /** - * - * - *
-   * Specifies the frequency of planned maintenance events.
-   * 
- * - * - * optional .google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval maintenance_interval = 1; - * - * - * @return The maintenanceInterval. - */ - @java.lang.Override - public com.google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval - getMaintenanceInterval() { - com.google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval result = - com.google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval.forNumber( - maintenanceInterval_); - return result == null - ? com.google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval.UNRECOGNIZED - : result; - } - - public static final int OPPORTUNISTIC_MAINTENANCE_STRATEGY_FIELD_NUMBER = 2; - /** - * - * - *
-   * Strategy that will trigger maintenance on behalf of the customer.
-   * 
- * - * - * .google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2; - * - * - * @return Whether the opportunisticMaintenanceStrategy field is set. - */ - @java.lang.Override - public boolean hasOpportunisticMaintenanceStrategy() { - return maintenanceStrategyCase_ == 2; - } - /** - * - * - *
-   * Strategy that will trigger maintenance on behalf of the customer.
-   * 
- * - * - * .google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2; - * - * - * @return The opportunisticMaintenanceStrategy. - */ - @java.lang.Override - public com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy - getOpportunisticMaintenanceStrategy() { - if (maintenanceStrategyCase_ == 2) { - return (com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy) - maintenanceStrategy_; - } - return com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy - .getDefaultInstance(); - } - /** - * - * - *
-   * Strategy that will trigger maintenance on behalf of the customer.
-   * 
- * - * - * .google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2; - * - */ - @java.lang.Override - public com.google.container.v1beta1.HostMaintenancePolicy - .OpportunisticMaintenanceStrategyOrBuilder - getOpportunisticMaintenanceStrategyOrBuilder() { - if (maintenanceStrategyCase_ == 2) { - return (com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy) - maintenanceStrategy_; - } - return com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy - .getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeEnum(1, maintenanceInterval_); - } - if (maintenanceStrategyCase_ == 2) { - output.writeMessage( - 2, - (com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy) - maintenanceStrategy_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, maintenanceInterval_); - } - if (maintenanceStrategyCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, - (com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy) - maintenanceStrategy_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.HostMaintenancePolicy)) { - return super.equals(obj); - } - com.google.container.v1beta1.HostMaintenancePolicy other = - (com.google.container.v1beta1.HostMaintenancePolicy) obj; - - if (hasMaintenanceInterval() != other.hasMaintenanceInterval()) return false; - if (hasMaintenanceInterval()) { - if (maintenanceInterval_ != other.maintenanceInterval_) return false; - } - if (!getMaintenanceStrategyCase().equals(other.getMaintenanceStrategyCase())) return false; - switch (maintenanceStrategyCase_) { - case 2: - if (!getOpportunisticMaintenanceStrategy() - .equals(other.getOpportunisticMaintenanceStrategy())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasMaintenanceInterval()) { - hash = (37 * hash) + MAINTENANCE_INTERVAL_FIELD_NUMBER; - hash = (53 * hash) + maintenanceInterval_; - } - switch (maintenanceStrategyCase_) { - case 2: - hash = (37 * hash) + OPPORTUNISTIC_MAINTENANCE_STRATEGY_FIELD_NUMBER; - hash = (53 * hash) + getOpportunisticMaintenanceStrategy().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.HostMaintenancePolicy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.HostMaintenancePolicy parseFrom( - 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.HostMaintenancePolicy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.HostMaintenancePolicy parseFrom( - com.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.HostMaintenancePolicy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.HostMaintenancePolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.HostMaintenancePolicy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.HostMaintenancePolicy parseFrom( - java.io.InputStream 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.HostMaintenancePolicy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.HostMaintenancePolicy parseDelimitedFrom( - java.io.InputStream 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.HostMaintenancePolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.HostMaintenancePolicy parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.HostMaintenancePolicy prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * HostMaintenancePolicy contains the maintenance policy for the hosts on which
-   * the GKE VMs run on.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.HostMaintenancePolicy} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.HostMaintenancePolicy) - com.google.container.v1beta1.HostMaintenancePolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_HostMaintenancePolicy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_HostMaintenancePolicy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.HostMaintenancePolicy.class, - com.google.container.v1beta1.HostMaintenancePolicy.Builder.class); - } - - // Construct using com.google.container.v1beta1.HostMaintenancePolicy.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - maintenanceInterval_ = 0; - if (opportunisticMaintenanceStrategyBuilder_ != null) { - opportunisticMaintenanceStrategyBuilder_.clear(); - } - maintenanceStrategyCase_ = 0; - maintenanceStrategy_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_HostMaintenancePolicy_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.HostMaintenancePolicy getDefaultInstanceForType() { - return com.google.container.v1beta1.HostMaintenancePolicy.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.HostMaintenancePolicy build() { - com.google.container.v1beta1.HostMaintenancePolicy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.HostMaintenancePolicy buildPartial() { - com.google.container.v1beta1.HostMaintenancePolicy result = - new com.google.container.v1beta1.HostMaintenancePolicy(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.HostMaintenancePolicy result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.maintenanceInterval_ = maintenanceInterval_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartialOneofs(com.google.container.v1beta1.HostMaintenancePolicy result) { - result.maintenanceStrategyCase_ = maintenanceStrategyCase_; - result.maintenanceStrategy_ = this.maintenanceStrategy_; - if (maintenanceStrategyCase_ == 2 && opportunisticMaintenanceStrategyBuilder_ != null) { - result.maintenanceStrategy_ = opportunisticMaintenanceStrategyBuilder_.build(); - } - } - - @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.HostMaintenancePolicy) { - return mergeFrom((com.google.container.v1beta1.HostMaintenancePolicy) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.HostMaintenancePolicy other) { - if (other == com.google.container.v1beta1.HostMaintenancePolicy.getDefaultInstance()) - return this; - if (other.hasMaintenanceInterval()) { - setMaintenanceInterval(other.getMaintenanceInterval()); - } - switch (other.getMaintenanceStrategyCase()) { - case OPPORTUNISTIC_MAINTENANCE_STRATEGY: - { - mergeOpportunisticMaintenanceStrategy(other.getOpportunisticMaintenanceStrategy()); - break; - } - case MAINTENANCESTRATEGY_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - maintenanceInterval_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - input.readMessage( - getOpportunisticMaintenanceStrategyFieldBuilder().getBuilder(), - extensionRegistry); - maintenanceStrategyCase_ = 2; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int maintenanceStrategyCase_ = 0; - private java.lang.Object maintenanceStrategy_; - - public MaintenanceStrategyCase getMaintenanceStrategyCase() { - return MaintenanceStrategyCase.forNumber(maintenanceStrategyCase_); - } - - public Builder clearMaintenanceStrategy() { - maintenanceStrategyCase_ = 0; - maintenanceStrategy_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private int maintenanceInterval_ = 0; - /** - * - * - *
-     * Specifies the frequency of planned maintenance events.
-     * 
- * - * - * optional .google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval maintenance_interval = 1; - * - * - * @return Whether the maintenanceInterval field is set. - */ - @java.lang.Override - public boolean hasMaintenanceInterval() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Specifies the frequency of planned maintenance events.
-     * 
- * - * - * optional .google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval maintenance_interval = 1; - * - * - * @return The enum numeric value on the wire for maintenanceInterval. - */ - @java.lang.Override - public int getMaintenanceIntervalValue() { - return maintenanceInterval_; - } - /** - * - * - *
-     * Specifies the frequency of planned maintenance events.
-     * 
- * - * - * optional .google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval maintenance_interval = 1; - * - * - * @param value The enum numeric value on the wire for maintenanceInterval to set. - * @return This builder for chaining. - */ - public Builder setMaintenanceIntervalValue(int value) { - maintenanceInterval_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Specifies the frequency of planned maintenance events.
-     * 
- * - * - * optional .google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval maintenance_interval = 1; - * - * - * @return The maintenanceInterval. - */ - @java.lang.Override - public com.google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval - getMaintenanceInterval() { - com.google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval result = - com.google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval.forNumber( - maintenanceInterval_); - return result == null - ? com.google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Specifies the frequency of planned maintenance events.
-     * 
- * - * - * optional .google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval maintenance_interval = 1; - * - * - * @param value The maintenanceInterval to set. - * @return This builder for chaining. - */ - public Builder setMaintenanceInterval( - com.google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - maintenanceInterval_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Specifies the frequency of planned maintenance events.
-     * 
- * - * - * optional .google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval maintenance_interval = 1; - * - * - * @return This builder for chaining. - */ - public Builder clearMaintenanceInterval() { - bitField0_ = (bitField0_ & ~0x00000001); - maintenanceInterval_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy, - com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy - .Builder, - com.google.container.v1beta1.HostMaintenancePolicy - .OpportunisticMaintenanceStrategyOrBuilder> - opportunisticMaintenanceStrategyBuilder_; - /** - * - * - *
-     * Strategy that will trigger maintenance on behalf of the customer.
-     * 
- * - * - * .google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2; - * - * - * @return Whether the opportunisticMaintenanceStrategy field is set. - */ - @java.lang.Override - public boolean hasOpportunisticMaintenanceStrategy() { - return maintenanceStrategyCase_ == 2; - } - /** - * - * - *
-     * Strategy that will trigger maintenance on behalf of the customer.
-     * 
- * - * - * .google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2; - * - * - * @return The opportunisticMaintenanceStrategy. - */ - @java.lang.Override - public com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy - getOpportunisticMaintenanceStrategy() { - if (opportunisticMaintenanceStrategyBuilder_ == null) { - if (maintenanceStrategyCase_ == 2) { - return (com.google.container.v1beta1.HostMaintenancePolicy - .OpportunisticMaintenanceStrategy) - maintenanceStrategy_; - } - return com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy - .getDefaultInstance(); - } else { - if (maintenanceStrategyCase_ == 2) { - return opportunisticMaintenanceStrategyBuilder_.getMessage(); - } - return com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy - .getDefaultInstance(); - } - } - /** - * - * - *
-     * Strategy that will trigger maintenance on behalf of the customer.
-     * 
- * - * - * .google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2; - * - */ - public Builder setOpportunisticMaintenanceStrategy( - com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy value) { - if (opportunisticMaintenanceStrategyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - maintenanceStrategy_ = value; - onChanged(); - } else { - opportunisticMaintenanceStrategyBuilder_.setMessage(value); - } - maintenanceStrategyCase_ = 2; - return this; - } - /** - * - * - *
-     * Strategy that will trigger maintenance on behalf of the customer.
-     * 
- * - * - * .google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2; - * - */ - public Builder setOpportunisticMaintenanceStrategy( - com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy.Builder - builderForValue) { - if (opportunisticMaintenanceStrategyBuilder_ == null) { - maintenanceStrategy_ = builderForValue.build(); - onChanged(); - } else { - opportunisticMaintenanceStrategyBuilder_.setMessage(builderForValue.build()); - } - maintenanceStrategyCase_ = 2; - return this; - } - /** - * - * - *
-     * Strategy that will trigger maintenance on behalf of the customer.
-     * 
- * - * - * .google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2; - * - */ - public Builder mergeOpportunisticMaintenanceStrategy( - com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy value) { - if (opportunisticMaintenanceStrategyBuilder_ == null) { - if (maintenanceStrategyCase_ == 2 - && maintenanceStrategy_ - != com.google.container.v1beta1.HostMaintenancePolicy - .OpportunisticMaintenanceStrategy.getDefaultInstance()) { - maintenanceStrategy_ = - com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy - .newBuilder( - (com.google.container.v1beta1.HostMaintenancePolicy - .OpportunisticMaintenanceStrategy) - maintenanceStrategy_) - .mergeFrom(value) - .buildPartial(); - } else { - maintenanceStrategy_ = value; - } - onChanged(); - } else { - if (maintenanceStrategyCase_ == 2) { - opportunisticMaintenanceStrategyBuilder_.mergeFrom(value); - } else { - opportunisticMaintenanceStrategyBuilder_.setMessage(value); - } - } - maintenanceStrategyCase_ = 2; - return this; - } - /** - * - * - *
-     * Strategy that will trigger maintenance on behalf of the customer.
-     * 
- * - * - * .google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2; - * - */ - public Builder clearOpportunisticMaintenanceStrategy() { - if (opportunisticMaintenanceStrategyBuilder_ == null) { - if (maintenanceStrategyCase_ == 2) { - maintenanceStrategyCase_ = 0; - maintenanceStrategy_ = null; - onChanged(); - } - } else { - if (maintenanceStrategyCase_ == 2) { - maintenanceStrategyCase_ = 0; - maintenanceStrategy_ = null; - } - opportunisticMaintenanceStrategyBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Strategy that will trigger maintenance on behalf of the customer.
-     * 
- * - * - * .google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2; - * - */ - public com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy - .Builder - getOpportunisticMaintenanceStrategyBuilder() { - return getOpportunisticMaintenanceStrategyFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Strategy that will trigger maintenance on behalf of the customer.
-     * 
- * - * - * .google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2; - * - */ - @java.lang.Override - public com.google.container.v1beta1.HostMaintenancePolicy - .OpportunisticMaintenanceStrategyOrBuilder - getOpportunisticMaintenanceStrategyOrBuilder() { - if ((maintenanceStrategyCase_ == 2) && (opportunisticMaintenanceStrategyBuilder_ != null)) { - return opportunisticMaintenanceStrategyBuilder_.getMessageOrBuilder(); - } else { - if (maintenanceStrategyCase_ == 2) { - return (com.google.container.v1beta1.HostMaintenancePolicy - .OpportunisticMaintenanceStrategy) - maintenanceStrategy_; - } - return com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy - .getDefaultInstance(); - } - } - /** - * - * - *
-     * Strategy that will trigger maintenance on behalf of the customer.
-     * 
- * - * - * .google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy, - com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy - .Builder, - com.google.container.v1beta1.HostMaintenancePolicy - .OpportunisticMaintenanceStrategyOrBuilder> - getOpportunisticMaintenanceStrategyFieldBuilder() { - if (opportunisticMaintenanceStrategyBuilder_ == null) { - if (!(maintenanceStrategyCase_ == 2)) { - maintenanceStrategy_ = - com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy - .getDefaultInstance(); - } - opportunisticMaintenanceStrategyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy, - com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy - .Builder, - com.google.container.v1beta1.HostMaintenancePolicy - .OpportunisticMaintenanceStrategyOrBuilder>( - (com.google.container.v1beta1.HostMaintenancePolicy - .OpportunisticMaintenanceStrategy) - maintenanceStrategy_, - getParentForChildren(), - isClean()); - maintenanceStrategy_ = null; - } - maintenanceStrategyCase_ = 2; - onChanged(); - return opportunisticMaintenanceStrategyBuilder_; - } - - @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.HostMaintenancePolicy) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.HostMaintenancePolicy) - private static final com.google.container.v1beta1.HostMaintenancePolicy DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.HostMaintenancePolicy(); - } - - public static com.google.container.v1beta1.HostMaintenancePolicy getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HostMaintenancePolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.HostMaintenancePolicy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HostMaintenancePolicyOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HostMaintenancePolicyOrBuilder.java deleted file mode 100644 index ee6bcf0a6d9d..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HostMaintenancePolicyOrBuilder.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface HostMaintenancePolicyOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.HostMaintenancePolicy) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Specifies the frequency of planned maintenance events.
-   * 
- * - * - * optional .google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval maintenance_interval = 1; - * - * - * @return Whether the maintenanceInterval field is set. - */ - boolean hasMaintenanceInterval(); - /** - * - * - *
-   * Specifies the frequency of planned maintenance events.
-   * 
- * - * - * optional .google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval maintenance_interval = 1; - * - * - * @return The enum numeric value on the wire for maintenanceInterval. - */ - int getMaintenanceIntervalValue(); - /** - * - * - *
-   * Specifies the frequency of planned maintenance events.
-   * 
- * - * - * optional .google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval maintenance_interval = 1; - * - * - * @return The maintenanceInterval. - */ - com.google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval getMaintenanceInterval(); - - /** - * - * - *
-   * Strategy that will trigger maintenance on behalf of the customer.
-   * 
- * - * - * .google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2; - * - * - * @return Whether the opportunisticMaintenanceStrategy field is set. - */ - boolean hasOpportunisticMaintenanceStrategy(); - /** - * - * - *
-   * Strategy that will trigger maintenance on behalf of the customer.
-   * 
- * - * - * .google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2; - * - * - * @return The opportunisticMaintenanceStrategy. - */ - com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy - getOpportunisticMaintenanceStrategy(); - /** - * - * - *
-   * Strategy that will trigger maintenance on behalf of the customer.
-   * 
- * - * - * .google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2; - * - */ - com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategyOrBuilder - getOpportunisticMaintenanceStrategyOrBuilder(); - - com.google.container.v1beta1.HostMaintenancePolicy.MaintenanceStrategyCase - getMaintenanceStrategyCase(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HttpLoadBalancing.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HttpLoadBalancing.java deleted file mode 100644 index 7e10c884e68c..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HttpLoadBalancing.java +++ /dev/null @@ -1,544 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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_ = false; - /** - * - * - *
-   * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.HttpLoadBalancing result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.disabled_ = disabled_; - } - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - disabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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() { - bitField0_ = (bitField0_ & ~0x00000001); - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HttpLoadBalancingOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HttpLoadBalancingOrBuilder.java deleted file mode 100644 index 9a91d997c109..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HttpLoadBalancingOrBuilder.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ILBSubsettingConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ILBSubsettingConfig.java deleted file mode 100644 index 541a30db8b1a..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ILBSubsettingConfig.java +++ /dev/null @@ -1,537 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * ILBSubsettingConfig contains the desired config of L4 Internal LoadBalancer
- * subsetting on this cluster.
- * 
- * - * Protobuf type {@code google.container.v1beta1.ILBSubsettingConfig} - */ -public final class ILBSubsettingConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.ILBSubsettingConfig) - ILBSubsettingConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use ILBSubsettingConfig.newBuilder() to construct. - private ILBSubsettingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ILBSubsettingConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ILBSubsettingConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_ILBSubsettingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_ILBSubsettingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.ILBSubsettingConfig.class, - com.google.container.v1beta1.ILBSubsettingConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * Enables l4 ILB subsetting for this cluster
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.ILBSubsettingConfig)) { - return super.equals(obj); - } - com.google.container.v1beta1.ILBSubsettingConfig other = - (com.google.container.v1beta1.ILBSubsettingConfig) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.ILBSubsettingConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.ILBSubsettingConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.ILBSubsettingConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.ILBSubsettingConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.ILBSubsettingConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.ILBSubsettingConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.ILBSubsettingConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.ILBSubsettingConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.ILBSubsettingConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.ILBSubsettingConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.ILBSubsettingConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.ILBSubsettingConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1beta1.ILBSubsettingConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * ILBSubsettingConfig contains the desired config of L4 Internal LoadBalancer
-   * subsetting on this cluster.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.ILBSubsettingConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ILBSubsettingConfig) - com.google.container.v1beta1.ILBSubsettingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_ILBSubsettingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_ILBSubsettingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.ILBSubsettingConfig.class, - com.google.container.v1beta1.ILBSubsettingConfig.Builder.class); - } - - // Construct using com.google.container.v1beta1.ILBSubsettingConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 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_ILBSubsettingConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.ILBSubsettingConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.ILBSubsettingConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.ILBSubsettingConfig build() { - com.google.container.v1beta1.ILBSubsettingConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.ILBSubsettingConfig buildPartial() { - com.google.container.v1beta1.ILBSubsettingConfig result = - new com.google.container.v1beta1.ILBSubsettingConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.ILBSubsettingConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @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.ILBSubsettingConfig) { - return mergeFrom((com.google.container.v1beta1.ILBSubsettingConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.ILBSubsettingConfig other) { - if (other == com.google.container.v1beta1.ILBSubsettingConfig.getDefaultInstance()) - return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean enabled_; - /** - * - * - *
-     * Enables l4 ILB subsetting for this cluster
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Enables l4 ILB subsetting for this cluster
-     * 
- * - * bool enabled = 1; - * - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Enables l4 ILB subsetting for this cluster
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - 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.ILBSubsettingConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.ILBSubsettingConfig) - private static final com.google.container.v1beta1.ILBSubsettingConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.ILBSubsettingConfig(); - } - - public static com.google.container.v1beta1.ILBSubsettingConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ILBSubsettingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.ILBSubsettingConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ILBSubsettingConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ILBSubsettingConfigOrBuilder.java deleted file mode 100644 index 6e137346ed18..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ILBSubsettingConfigOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface ILBSubsettingConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ILBSubsettingConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Enables l4 ILB subsetting for this cluster
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IPAllocationPolicy.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IPAllocationPolicy.java deleted file mode 100644 index 1bda136933b2..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IPAllocationPolicy.java +++ /dev/null @@ -1,5181 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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_ = ""; - stackType_ = 0; - ipv6AccessType_ = 0; - subnetIpv6CidrBlock_ = ""; - servicesIpv6CidrBlock_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new IPAllocationPolicy(); - } - - 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); - } - - /** - * - * - *
-   * Possible values for IP stack type
-   * 
- * - * Protobuf enum {@code google.container.v1beta1.IPAllocationPolicy.StackType} - */ - public enum StackType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * By default, the clusters will be IPV4 only
-     * 
- * - * STACK_TYPE_UNSPECIFIED = 0; - */ - STACK_TYPE_UNSPECIFIED(0), - /** - * - * - *
-     * The value used if the cluster is a IPV4 only
-     * 
- * - * IPV4 = 1; - */ - IPV4(1), - /** - * - * - *
-     * The value used if the cluster is a dual stack cluster
-     * 
- * - * IPV4_IPV6 = 2; - */ - IPV4_IPV6(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * By default, the clusters will be IPV4 only
-     * 
- * - * STACK_TYPE_UNSPECIFIED = 0; - */ - public static final int STACK_TYPE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * The value used if the cluster is a IPV4 only
-     * 
- * - * IPV4 = 1; - */ - public static final int IPV4_VALUE = 1; - /** - * - * - *
-     * The value used if the cluster is a dual stack cluster
-     * 
- * - * IPV4_IPV6 = 2; - */ - public static final int IPV4_IPV6_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 StackType 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 StackType forNumber(int value) { - switch (value) { - case 0: - return STACK_TYPE_UNSPECIFIED; - case 1: - return IPV4; - case 2: - return IPV4_IPV6; - 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 StackType findValueByNumber(int number) { - return StackType.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.IPAllocationPolicy.getDescriptor().getEnumTypes().get(0); - } - - private static final StackType[] VALUES = values(); - - public static StackType 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 StackType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1beta1.IPAllocationPolicy.StackType) - } - - /** - * - * - *
-   * IPv6 access type
-   * 
- * - * Protobuf enum {@code google.container.v1beta1.IPAllocationPolicy.IPv6AccessType} - */ - public enum IPv6AccessType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value, will be defaulted as type external.
-     * 
- * - * IPV6_ACCESS_TYPE_UNSPECIFIED = 0; - */ - IPV6_ACCESS_TYPE_UNSPECIFIED(0), - /** - * - * - *
-     * Access type internal (all v6 addresses are internal IPs)
-     * 
- * - * INTERNAL = 1; - */ - INTERNAL(1), - /** - * - * - *
-     * Access type external (all v6 addresses are external IPs)
-     * 
- * - * EXTERNAL = 2; - */ - EXTERNAL(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value, will be defaulted as type external.
-     * 
- * - * IPV6_ACCESS_TYPE_UNSPECIFIED = 0; - */ - public static final int IPV6_ACCESS_TYPE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Access type internal (all v6 addresses are internal IPs)
-     * 
- * - * INTERNAL = 1; - */ - public static final int INTERNAL_VALUE = 1; - /** - * - * - *
-     * Access type external (all v6 addresses are external IPs)
-     * 
- * - * EXTERNAL = 2; - */ - public static final int EXTERNAL_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 IPv6AccessType 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 IPv6AccessType forNumber(int value) { - switch (value) { - case 0: - return IPV6_ACCESS_TYPE_UNSPECIFIED; - case 1: - return INTERNAL; - case 2: - return EXTERNAL; - 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 IPv6AccessType findValueByNumber(int number) { - return IPv6AccessType.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.IPAllocationPolicy.getDescriptor().getEnumTypes().get(1); - } - - private static final IPv6AccessType[] VALUES = values(); - - public static IPv6AccessType 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 IPv6AccessType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1beta1.IPAllocationPolicy.IPv6AccessType) - } - - private int bitField0_; - public static final int USE_IP_ALIASES_FIELD_NUMBER = 1; - private boolean useIpAliases_ = false; - /** - * - * - *
-   * 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_ = false; - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object clusterIpv4Cidr_ = ""; - /** - * - * - *
-   * This field is deprecated, use cluster_ipv4_cidr_block.
-   * 
- * - * string cluster_ipv4_cidr = 4 [deprecated = true]; - * - * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1640 - * @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]; - * - * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1640 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object nodeIpv4Cidr_ = ""; - /** - * - * - *
-   * This field is deprecated, use node_ipv4_cidr_block.
-   * 
- * - * string node_ipv4_cidr = 5 [deprecated = true]; - * - * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1643 - * @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]; - * - * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1643 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object servicesIpv4Cidr_ = ""; - /** - * - * - *
-   * This field is deprecated, use services_ipv4_cidr_block.
-   * 
- * - * string services_ipv4_cidr = 6 [deprecated = true]; - * - * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1646 - * @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]; - * - * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1646 - * @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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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_ = false; - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - 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_ = false; - /** - * - * - *
-   * 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_; - } - - public static final int STACK_TYPE_FIELD_NUMBER = 16; - private int stackType_ = 0; - /** - * - * - *
-   * IP stack type
-   * 
- * - * .google.container.v1beta1.IPAllocationPolicy.StackType stack_type = 16; - * - * @return The enum numeric value on the wire for stackType. - */ - @java.lang.Override - public int getStackTypeValue() { - return stackType_; - } - /** - * - * - *
-   * IP stack type
-   * 
- * - * .google.container.v1beta1.IPAllocationPolicy.StackType stack_type = 16; - * - * @return The stackType. - */ - @java.lang.Override - public com.google.container.v1beta1.IPAllocationPolicy.StackType getStackType() { - com.google.container.v1beta1.IPAllocationPolicy.StackType result = - com.google.container.v1beta1.IPAllocationPolicy.StackType.forNumber(stackType_); - return result == null - ? com.google.container.v1beta1.IPAllocationPolicy.StackType.UNRECOGNIZED - : result; - } - - public static final int IPV6_ACCESS_TYPE_FIELD_NUMBER = 17; - private int ipv6AccessType_ = 0; - /** - * - * - *
-   * The ipv6 access type (internal or external) when create_subnetwork is true
-   * 
- * - * .google.container.v1beta1.IPAllocationPolicy.IPv6AccessType ipv6_access_type = 17; - * - * @return The enum numeric value on the wire for ipv6AccessType. - */ - @java.lang.Override - public int getIpv6AccessTypeValue() { - return ipv6AccessType_; - } - /** - * - * - *
-   * The ipv6 access type (internal or external) when create_subnetwork is true
-   * 
- * - * .google.container.v1beta1.IPAllocationPolicy.IPv6AccessType ipv6_access_type = 17; - * - * @return The ipv6AccessType. - */ - @java.lang.Override - public com.google.container.v1beta1.IPAllocationPolicy.IPv6AccessType getIpv6AccessType() { - com.google.container.v1beta1.IPAllocationPolicy.IPv6AccessType result = - com.google.container.v1beta1.IPAllocationPolicy.IPv6AccessType.forNumber(ipv6AccessType_); - return result == null - ? com.google.container.v1beta1.IPAllocationPolicy.IPv6AccessType.UNRECOGNIZED - : result; - } - - public static final int POD_CIDR_OVERPROVISION_CONFIG_FIELD_NUMBER = 21; - private com.google.container.v1beta1.PodCIDROverprovisionConfig podCidrOverprovisionConfig_; - /** - * - * - *
-   * [PRIVATE FIELD]
-   * Pod CIDR size overprovisioning config for the cluster.
-   *
-   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-   * of max_pods_per_node is doubled and then rounded off to next power of 2 to
-   * get the size of pod CIDR block per node.
-   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-   *
-   * This config can disable the doubling of IPs (we still round off to next
-   * power of 2)
-   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-   * overprovisioning is disabled.
-   * 
- * - * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; - * - * - * @return Whether the podCidrOverprovisionConfig field is set. - */ - @java.lang.Override - public boolean hasPodCidrOverprovisionConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * [PRIVATE FIELD]
-   * Pod CIDR size overprovisioning config for the cluster.
-   *
-   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-   * of max_pods_per_node is doubled and then rounded off to next power of 2 to
-   * get the size of pod CIDR block per node.
-   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-   *
-   * This config can disable the doubling of IPs (we still round off to next
-   * power of 2)
-   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-   * overprovisioning is disabled.
-   * 
- * - * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; - * - * - * @return The podCidrOverprovisionConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.PodCIDROverprovisionConfig getPodCidrOverprovisionConfig() { - return podCidrOverprovisionConfig_ == null - ? com.google.container.v1beta1.PodCIDROverprovisionConfig.getDefaultInstance() - : podCidrOverprovisionConfig_; - } - /** - * - * - *
-   * [PRIVATE FIELD]
-   * Pod CIDR size overprovisioning config for the cluster.
-   *
-   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-   * of max_pods_per_node is doubled and then rounded off to next power of 2 to
-   * get the size of pod CIDR block per node.
-   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-   *
-   * This config can disable the doubling of IPs (we still round off to next
-   * power of 2)
-   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-   * overprovisioning is disabled.
-   * 
- * - * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; - * - */ - @java.lang.Override - public com.google.container.v1beta1.PodCIDROverprovisionConfigOrBuilder - getPodCidrOverprovisionConfigOrBuilder() { - return podCidrOverprovisionConfig_ == null - ? com.google.container.v1beta1.PodCIDROverprovisionConfig.getDefaultInstance() - : podCidrOverprovisionConfig_; - } - - public static final int SUBNET_IPV6_CIDR_BLOCK_FIELD_NUMBER = 22; - - @SuppressWarnings("serial") - private volatile java.lang.Object subnetIpv6CidrBlock_ = ""; - /** - * - * - *
-   * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
-   * pods.
-   * 
- * - * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The subnetIpv6CidrBlock. - */ - @java.lang.Override - public java.lang.String getSubnetIpv6CidrBlock() { - java.lang.Object ref = subnetIpv6CidrBlock_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subnetIpv6CidrBlock_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
-   * pods.
-   * 
- * - * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for subnetIpv6CidrBlock. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSubnetIpv6CidrBlockBytes() { - java.lang.Object ref = subnetIpv6CidrBlock_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - subnetIpv6CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SERVICES_IPV6_CIDR_BLOCK_FIELD_NUMBER = 23; - - @SuppressWarnings("serial") - private volatile java.lang.Object servicesIpv6CidrBlock_ = ""; - /** - * - * - *
-   * Output only. [Output only] The services IPv6 CIDR block for the cluster.
-   * 
- * - * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The servicesIpv6CidrBlock. - */ - @java.lang.Override - public java.lang.String getServicesIpv6CidrBlock() { - java.lang.Object ref = servicesIpv6CidrBlock_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - servicesIpv6CidrBlock_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. [Output only] The services IPv6 CIDR block for the cluster.
-   * 
- * - * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for servicesIpv6CidrBlock. - */ - @java.lang.Override - public com.google.protobuf.ByteString getServicesIpv6CidrBlockBytes() { - java.lang.Object ref = servicesIpv6CidrBlock_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - servicesIpv6CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ADDITIONAL_POD_RANGES_CONFIG_FIELD_NUMBER = 24; - private com.google.container.v1beta1.AdditionalPodRangesConfig additionalPodRangesConfig_; - /** - * - * - *
-   * Output only. [Output only] The additional pod ranges that are added to the
-   * cluster. These pod ranges can be used by new node pools to allocate pod IPs
-   * automatically. Once the range is removed it will not show up in
-   * IPAllocationPolicy.
-   * 
- * - * - * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the additionalPodRangesConfig field is set. - */ - @java.lang.Override - public boolean hasAdditionalPodRangesConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * Output only. [Output only] The additional pod ranges that are added to the
-   * cluster. These pod ranges can be used by new node pools to allocate pod IPs
-   * automatically. Once the range is removed it will not show up in
-   * IPAllocationPolicy.
-   * 
- * - * - * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The additionalPodRangesConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.AdditionalPodRangesConfig getAdditionalPodRangesConfig() { - return additionalPodRangesConfig_ == null - ? com.google.container.v1beta1.AdditionalPodRangesConfig.getDefaultInstance() - : additionalPodRangesConfig_; - } - /** - * - * - *
-   * Output only. [Output only] The additional pod ranges that are added to the
-   * cluster. These pod ranges can be used by new node pools to allocate pod IPs
-   * automatically. Once the range is removed it will not show up in
-   * IPAllocationPolicy.
-   * 
- * - * - * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.container.v1beta1.AdditionalPodRangesConfigOrBuilder - getAdditionalPodRangesConfigOrBuilder() { - return additionalPodRangesConfig_ == null - ? com.google.container.v1beta1.AdditionalPodRangesConfig.getDefaultInstance() - : additionalPodRangesConfig_; - } - - public static final int DEFAULT_POD_IPV4_RANGE_UTILIZATION_FIELD_NUMBER = 25; - private double defaultPodIpv4RangeUtilization_ = 0D; - /** - * - * - *
-   * Output only. [Output only] The utilization of the cluster default IPv4
-   * range for the pod. The ratio is Usage/[Total number of IPs in the secondary
-   * range], Usage=numNodes*numZones*podIPsPerNode.
-   * 
- * - * - * double default_pod_ipv4_range_utilization = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The defaultPodIpv4RangeUtilization. - */ - @java.lang.Override - public double getDefaultPodIpv4RangeUtilization() { - return defaultPodIpv4RangeUtilization_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetworkName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, subnetworkName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterIpv4Cidr_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, clusterIpv4Cidr_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeIpv4Cidr_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, nodeIpv4Cidr_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesIpv4Cidr_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, servicesIpv4Cidr_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterSecondaryRangeName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, clusterSecondaryRangeName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesSecondaryRangeName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, servicesSecondaryRangeName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterIpv4CidrBlock_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, clusterIpv4CidrBlock_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeIpv4CidrBlock_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, nodeIpv4CidrBlock_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesIpv4CidrBlock_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, servicesIpv4CidrBlock_); - } - if (allowRouteOverlap_ != false) { - output.writeBool(12, allowRouteOverlap_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tpuIpv4CidrBlock_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, tpuIpv4CidrBlock_); - } - if (useRoutes_ != false) { - output.writeBool(15, useRoutes_); - } - if (stackType_ - != com.google.container.v1beta1.IPAllocationPolicy.StackType.STACK_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(16, stackType_); - } - if (ipv6AccessType_ - != com.google.container.v1beta1.IPAllocationPolicy.IPv6AccessType - .IPV6_ACCESS_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(17, ipv6AccessType_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(21, getPodCidrOverprovisionConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetIpv6CidrBlock_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 22, subnetIpv6CidrBlock_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesIpv6CidrBlock_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 23, servicesIpv6CidrBlock_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(24, getAdditionalPodRangesConfig()); - } - if (java.lang.Double.doubleToRawLongBits(defaultPodIpv4RangeUtilization_) != 0) { - output.writeDouble(25, defaultPodIpv4RangeUtilization_); - } - getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetworkName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, subnetworkName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterIpv4Cidr_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, clusterIpv4Cidr_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeIpv4Cidr_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, nodeIpv4Cidr_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesIpv4Cidr_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, servicesIpv4Cidr_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterSecondaryRangeName_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(7, clusterSecondaryRangeName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesSecondaryRangeName_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(8, servicesSecondaryRangeName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterIpv4CidrBlock_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, clusterIpv4CidrBlock_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeIpv4CidrBlock_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, nodeIpv4CidrBlock_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesIpv4CidrBlock_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, servicesIpv4CidrBlock_); - } - if (allowRouteOverlap_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, allowRouteOverlap_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tpuIpv4CidrBlock_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, tpuIpv4CidrBlock_); - } - if (useRoutes_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, useRoutes_); - } - if (stackType_ - != com.google.container.v1beta1.IPAllocationPolicy.StackType.STACK_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(16, stackType_); - } - if (ipv6AccessType_ - != com.google.container.v1beta1.IPAllocationPolicy.IPv6AccessType - .IPV6_ACCESS_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, ipv6AccessType_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 21, getPodCidrOverprovisionConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetIpv6CidrBlock_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, subnetIpv6CidrBlock_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesIpv6CidrBlock_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, servicesIpv6CidrBlock_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 24, getAdditionalPodRangesConfig()); - } - if (java.lang.Double.doubleToRawLongBits(defaultPodIpv4RangeUtilization_) != 0) { - size += - com.google.protobuf.CodedOutputStream.computeDoubleSize( - 25, defaultPodIpv4RangeUtilization_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (stackType_ != other.stackType_) return false; - if (ipv6AccessType_ != other.ipv6AccessType_) return false; - if (hasPodCidrOverprovisionConfig() != other.hasPodCidrOverprovisionConfig()) return false; - if (hasPodCidrOverprovisionConfig()) { - if (!getPodCidrOverprovisionConfig().equals(other.getPodCidrOverprovisionConfig())) - return false; - } - if (!getSubnetIpv6CidrBlock().equals(other.getSubnetIpv6CidrBlock())) return false; - if (!getServicesIpv6CidrBlock().equals(other.getServicesIpv6CidrBlock())) return false; - if (hasAdditionalPodRangesConfig() != other.hasAdditionalPodRangesConfig()) return false; - if (hasAdditionalPodRangesConfig()) { - if (!getAdditionalPodRangesConfig().equals(other.getAdditionalPodRangesConfig())) - return false; - } - if (java.lang.Double.doubleToLongBits(getDefaultPodIpv4RangeUtilization()) - != java.lang.Double.doubleToLongBits(other.getDefaultPodIpv4RangeUtilization())) - return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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 = (37 * hash) + STACK_TYPE_FIELD_NUMBER; - hash = (53 * hash) + stackType_; - hash = (37 * hash) + IPV6_ACCESS_TYPE_FIELD_NUMBER; - hash = (53 * hash) + ipv6AccessType_; - if (hasPodCidrOverprovisionConfig()) { - hash = (37 * hash) + POD_CIDR_OVERPROVISION_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getPodCidrOverprovisionConfig().hashCode(); - } - hash = (37 * hash) + SUBNET_IPV6_CIDR_BLOCK_FIELD_NUMBER; - hash = (53 * hash) + getSubnetIpv6CidrBlock().hashCode(); - hash = (37 * hash) + SERVICES_IPV6_CIDR_BLOCK_FIELD_NUMBER; - hash = (53 * hash) + getServicesIpv6CidrBlock().hashCode(); - if (hasAdditionalPodRangesConfig()) { - hash = (37 * hash) + ADDITIONAL_POD_RANGES_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getAdditionalPodRangesConfig().hashCode(); - } - hash = (37 * hash) + DEFAULT_POD_IPV4_RANGE_UTILIZATION_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getDefaultPodIpv4RangeUtilization())); - hash = (29 * hash) + getUnknownFields().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) { - getPodCidrOverprovisionConfigFieldBuilder(); - getAdditionalPodRangesConfigFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - useIpAliases_ = false; - createSubnetwork_ = false; - subnetworkName_ = ""; - clusterIpv4Cidr_ = ""; - nodeIpv4Cidr_ = ""; - servicesIpv4Cidr_ = ""; - clusterSecondaryRangeName_ = ""; - servicesSecondaryRangeName_ = ""; - clusterIpv4CidrBlock_ = ""; - nodeIpv4CidrBlock_ = ""; - servicesIpv4CidrBlock_ = ""; - allowRouteOverlap_ = false; - tpuIpv4CidrBlock_ = ""; - useRoutes_ = false; - stackType_ = 0; - ipv6AccessType_ = 0; - podCidrOverprovisionConfig_ = null; - if (podCidrOverprovisionConfigBuilder_ != null) { - podCidrOverprovisionConfigBuilder_.dispose(); - podCidrOverprovisionConfigBuilder_ = null; - } - subnetIpv6CidrBlock_ = ""; - servicesIpv6CidrBlock_ = ""; - additionalPodRangesConfig_ = null; - if (additionalPodRangesConfigBuilder_ != null) { - additionalPodRangesConfigBuilder_.dispose(); - additionalPodRangesConfigBuilder_ = null; - } - defaultPodIpv4RangeUtilization_ = 0D; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.IPAllocationPolicy result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.useIpAliases_ = useIpAliases_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.createSubnetwork_ = createSubnetwork_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.subnetworkName_ = subnetworkName_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.clusterIpv4Cidr_ = clusterIpv4Cidr_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.nodeIpv4Cidr_ = nodeIpv4Cidr_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.servicesIpv4Cidr_ = servicesIpv4Cidr_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.clusterSecondaryRangeName_ = clusterSecondaryRangeName_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.servicesSecondaryRangeName_ = servicesSecondaryRangeName_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.clusterIpv4CidrBlock_ = clusterIpv4CidrBlock_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.nodeIpv4CidrBlock_ = nodeIpv4CidrBlock_; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.servicesIpv4CidrBlock_ = servicesIpv4CidrBlock_; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.allowRouteOverlap_ = allowRouteOverlap_; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.tpuIpv4CidrBlock_ = tpuIpv4CidrBlock_; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.useRoutes_ = useRoutes_; - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.stackType_ = stackType_; - } - if (((from_bitField0_ & 0x00008000) != 0)) { - result.ipv6AccessType_ = ipv6AccessType_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00010000) != 0)) { - result.podCidrOverprovisionConfig_ = - podCidrOverprovisionConfigBuilder_ == null - ? podCidrOverprovisionConfig_ - : podCidrOverprovisionConfigBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00020000) != 0)) { - result.subnetIpv6CidrBlock_ = subnetIpv6CidrBlock_; - } - if (((from_bitField0_ & 0x00040000) != 0)) { - result.servicesIpv6CidrBlock_ = servicesIpv6CidrBlock_; - } - if (((from_bitField0_ & 0x00080000) != 0)) { - result.additionalPodRangesConfig_ = - additionalPodRangesConfigBuilder_ == null - ? additionalPodRangesConfig_ - : additionalPodRangesConfigBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00100000) != 0)) { - result.defaultPodIpv4RangeUtilization_ = defaultPodIpv4RangeUtilization_; - } - result.bitField0_ |= to_bitField0_; - } - - @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_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getClusterIpv4Cidr().isEmpty()) { - clusterIpv4Cidr_ = other.clusterIpv4Cidr_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getNodeIpv4Cidr().isEmpty()) { - nodeIpv4Cidr_ = other.nodeIpv4Cidr_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (!other.getServicesIpv4Cidr().isEmpty()) { - servicesIpv4Cidr_ = other.servicesIpv4Cidr_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (!other.getClusterSecondaryRangeName().isEmpty()) { - clusterSecondaryRangeName_ = other.clusterSecondaryRangeName_; - bitField0_ |= 0x00000040; - onChanged(); - } - if (!other.getServicesSecondaryRangeName().isEmpty()) { - servicesSecondaryRangeName_ = other.servicesSecondaryRangeName_; - bitField0_ |= 0x00000080; - onChanged(); - } - if (!other.getClusterIpv4CidrBlock().isEmpty()) { - clusterIpv4CidrBlock_ = other.clusterIpv4CidrBlock_; - bitField0_ |= 0x00000100; - onChanged(); - } - if (!other.getNodeIpv4CidrBlock().isEmpty()) { - nodeIpv4CidrBlock_ = other.nodeIpv4CidrBlock_; - bitField0_ |= 0x00000200; - onChanged(); - } - if (!other.getServicesIpv4CidrBlock().isEmpty()) { - servicesIpv4CidrBlock_ = other.servicesIpv4CidrBlock_; - bitField0_ |= 0x00000400; - onChanged(); - } - if (other.getAllowRouteOverlap() != false) { - setAllowRouteOverlap(other.getAllowRouteOverlap()); - } - if (!other.getTpuIpv4CidrBlock().isEmpty()) { - tpuIpv4CidrBlock_ = other.tpuIpv4CidrBlock_; - bitField0_ |= 0x00001000; - onChanged(); - } - if (other.getUseRoutes() != false) { - setUseRoutes(other.getUseRoutes()); - } - if (other.stackType_ != 0) { - setStackTypeValue(other.getStackTypeValue()); - } - if (other.ipv6AccessType_ != 0) { - setIpv6AccessTypeValue(other.getIpv6AccessTypeValue()); - } - if (other.hasPodCidrOverprovisionConfig()) { - mergePodCidrOverprovisionConfig(other.getPodCidrOverprovisionConfig()); - } - if (!other.getSubnetIpv6CidrBlock().isEmpty()) { - subnetIpv6CidrBlock_ = other.subnetIpv6CidrBlock_; - bitField0_ |= 0x00020000; - onChanged(); - } - if (!other.getServicesIpv6CidrBlock().isEmpty()) { - servicesIpv6CidrBlock_ = other.servicesIpv6CidrBlock_; - bitField0_ |= 0x00040000; - onChanged(); - } - if (other.hasAdditionalPodRangesConfig()) { - mergeAdditionalPodRangesConfig(other.getAdditionalPodRangesConfig()); - } - if (other.getDefaultPodIpv4RangeUtilization() != 0D) { - setDefaultPodIpv4RangeUtilization(other.getDefaultPodIpv4RangeUtilization()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - useIpAliases_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - createSubnetwork_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - subnetworkName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - clusterIpv4Cidr_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - nodeIpv4Cidr_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - servicesIpv4Cidr_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - clusterSecondaryRangeName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: - { - servicesSecondaryRangeName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 74: - { - clusterIpv4CidrBlock_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 74 - case 82: - { - nodeIpv4CidrBlock_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; - break; - } // case 82 - case 90: - { - servicesIpv4CidrBlock_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; - break; - } // case 90 - case 96: - { - allowRouteOverlap_ = input.readBool(); - bitField0_ |= 0x00000800; - break; - } // case 96 - case 106: - { - tpuIpv4CidrBlock_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; - break; - } // case 106 - case 120: - { - useRoutes_ = input.readBool(); - bitField0_ |= 0x00002000; - break; - } // case 120 - case 128: - { - stackType_ = input.readEnum(); - bitField0_ |= 0x00004000; - break; - } // case 128 - case 136: - { - ipv6AccessType_ = input.readEnum(); - bitField0_ |= 0x00008000; - break; - } // case 136 - case 170: - { - input.readMessage( - getPodCidrOverprovisionConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; - break; - } // case 170 - case 178: - { - subnetIpv6CidrBlock_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00020000; - break; - } // case 178 - case 186: - { - servicesIpv6CidrBlock_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00040000; - break; - } // case 186 - case 194: - { - input.readMessage( - getAdditionalPodRangesConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00080000; - break; - } // case 194 - case 201: - { - defaultPodIpv4RangeUtilization_ = input.readDouble(); - bitField0_ |= 0x00100000; - break; - } // case 201 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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() { - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000002; - 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() { - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000004; - 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(); - bitField0_ = (bitField0_ & ~0x00000004); - 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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object clusterIpv4Cidr_ = ""; - /** - * - * - *
-     * This field is deprecated, use cluster_ipv4_cidr_block.
-     * 
- * - * string cluster_ipv4_cidr = 4 [deprecated = true]; - * - * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1640 - * @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]; - * - * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1640 - * @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]; - * - * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1640 - * @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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * This field is deprecated, use cluster_ipv4_cidr_block.
-     * 
- * - * string cluster_ipv4_cidr = 4 [deprecated = true]; - * - * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1640 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterIpv4Cidr() { - clusterIpv4Cidr_ = getDefaultInstance().getClusterIpv4Cidr(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * This field is deprecated, use cluster_ipv4_cidr_block.
-     * 
- * - * string cluster_ipv4_cidr = 4 [deprecated = true]; - * - * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1640 - * @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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private java.lang.Object nodeIpv4Cidr_ = ""; - /** - * - * - *
-     * This field is deprecated, use node_ipv4_cidr_block.
-     * 
- * - * string node_ipv4_cidr = 5 [deprecated = true]; - * - * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1643 - * @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]; - * - * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1643 - * @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]; - * - * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1643 - * @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; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * This field is deprecated, use node_ipv4_cidr_block.
-     * 
- * - * string node_ipv4_cidr = 5 [deprecated = true]; - * - * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1643 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearNodeIpv4Cidr() { - nodeIpv4Cidr_ = getDefaultInstance().getNodeIpv4Cidr(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * - * - *
-     * This field is deprecated, use node_ipv4_cidr_block.
-     * 
- * - * string node_ipv4_cidr = 5 [deprecated = true]; - * - * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1643 - * @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; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private java.lang.Object servicesIpv4Cidr_ = ""; - /** - * - * - *
-     * This field is deprecated, use services_ipv4_cidr_block.
-     * 
- * - * string services_ipv4_cidr = 6 [deprecated = true]; - * - * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1646 - * @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]; - * - * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1646 - * @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]; - * - * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1646 - * @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; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * This field is deprecated, use services_ipv4_cidr_block.
-     * 
- * - * string services_ipv4_cidr = 6 [deprecated = true]; - * - * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1646 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearServicesIpv4Cidr() { - servicesIpv4Cidr_ = getDefaultInstance().getServicesIpv4Cidr(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - /** - * - * - *
-     * This field is deprecated, use services_ipv4_cidr_block.
-     * 
- * - * string services_ipv4_cidr = 6 [deprecated = true]; - * - * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1646 - * @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; - bitField0_ |= 0x00000020; - 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; - bitField0_ |= 0x00000040; - 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(); - bitField0_ = (bitField0_ & ~0x00000040); - 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; - bitField0_ |= 0x00000040; - 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; - bitField0_ |= 0x00000080; - 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(); - bitField0_ = (bitField0_ & ~0x00000080); - 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; - bitField0_ |= 0x00000080; - 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; - bitField0_ |= 0x00000100; - 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(); - bitField0_ = (bitField0_ & ~0x00000100); - 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; - bitField0_ |= 0x00000100; - 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; - bitField0_ |= 0x00000200; - 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(); - bitField0_ = (bitField0_ & ~0x00000200); - 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; - bitField0_ |= 0x00000200; - 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; - bitField0_ |= 0x00000400; - 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(); - bitField0_ = (bitField0_ & ~0x00000400); - 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; - bitField0_ |= 0x00000400; - 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; - bitField0_ |= 0x00000800; - 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() { - bitField0_ = (bitField0_ & ~0x00000800); - 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; - bitField0_ |= 0x00001000; - 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(); - bitField0_ = (bitField0_ & ~0x00001000); - 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; - bitField0_ |= 0x00001000; - 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; - bitField0_ |= 0x00002000; - 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() { - bitField0_ = (bitField0_ & ~0x00002000); - useRoutes_ = false; - onChanged(); - return this; - } - - private int stackType_ = 0; - /** - * - * - *
-     * IP stack type
-     * 
- * - * .google.container.v1beta1.IPAllocationPolicy.StackType stack_type = 16; - * - * @return The enum numeric value on the wire for stackType. - */ - @java.lang.Override - public int getStackTypeValue() { - return stackType_; - } - /** - * - * - *
-     * IP stack type
-     * 
- * - * .google.container.v1beta1.IPAllocationPolicy.StackType stack_type = 16; - * - * @param value The enum numeric value on the wire for stackType to set. - * @return This builder for chaining. - */ - public Builder setStackTypeValue(int value) { - stackType_ = value; - bitField0_ |= 0x00004000; - onChanged(); - return this; - } - /** - * - * - *
-     * IP stack type
-     * 
- * - * .google.container.v1beta1.IPAllocationPolicy.StackType stack_type = 16; - * - * @return The stackType. - */ - @java.lang.Override - public com.google.container.v1beta1.IPAllocationPolicy.StackType getStackType() { - com.google.container.v1beta1.IPAllocationPolicy.StackType result = - com.google.container.v1beta1.IPAllocationPolicy.StackType.forNumber(stackType_); - return result == null - ? com.google.container.v1beta1.IPAllocationPolicy.StackType.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * IP stack type
-     * 
- * - * .google.container.v1beta1.IPAllocationPolicy.StackType stack_type = 16; - * - * @param value The stackType to set. - * @return This builder for chaining. - */ - public Builder setStackType(com.google.container.v1beta1.IPAllocationPolicy.StackType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00004000; - stackType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * IP stack type
-     * 
- * - * .google.container.v1beta1.IPAllocationPolicy.StackType stack_type = 16; - * - * @return This builder for chaining. - */ - public Builder clearStackType() { - bitField0_ = (bitField0_ & ~0x00004000); - stackType_ = 0; - onChanged(); - return this; - } - - private int ipv6AccessType_ = 0; - /** - * - * - *
-     * The ipv6 access type (internal or external) when create_subnetwork is true
-     * 
- * - * .google.container.v1beta1.IPAllocationPolicy.IPv6AccessType ipv6_access_type = 17; - * - * - * @return The enum numeric value on the wire for ipv6AccessType. - */ - @java.lang.Override - public int getIpv6AccessTypeValue() { - return ipv6AccessType_; - } - /** - * - * - *
-     * The ipv6 access type (internal or external) when create_subnetwork is true
-     * 
- * - * .google.container.v1beta1.IPAllocationPolicy.IPv6AccessType ipv6_access_type = 17; - * - * - * @param value The enum numeric value on the wire for ipv6AccessType to set. - * @return This builder for chaining. - */ - public Builder setIpv6AccessTypeValue(int value) { - ipv6AccessType_ = value; - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - /** - * - * - *
-     * The ipv6 access type (internal or external) when create_subnetwork is true
-     * 
- * - * .google.container.v1beta1.IPAllocationPolicy.IPv6AccessType ipv6_access_type = 17; - * - * - * @return The ipv6AccessType. - */ - @java.lang.Override - public com.google.container.v1beta1.IPAllocationPolicy.IPv6AccessType getIpv6AccessType() { - com.google.container.v1beta1.IPAllocationPolicy.IPv6AccessType result = - com.google.container.v1beta1.IPAllocationPolicy.IPv6AccessType.forNumber(ipv6AccessType_); - return result == null - ? com.google.container.v1beta1.IPAllocationPolicy.IPv6AccessType.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * The ipv6 access type (internal or external) when create_subnetwork is true
-     * 
- * - * .google.container.v1beta1.IPAllocationPolicy.IPv6AccessType ipv6_access_type = 17; - * - * - * @param value The ipv6AccessType to set. - * @return This builder for chaining. - */ - public Builder setIpv6AccessType( - com.google.container.v1beta1.IPAllocationPolicy.IPv6AccessType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00008000; - ipv6AccessType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The ipv6 access type (internal or external) when create_subnetwork is true
-     * 
- * - * .google.container.v1beta1.IPAllocationPolicy.IPv6AccessType ipv6_access_type = 17; - * - * - * @return This builder for chaining. - */ - public Builder clearIpv6AccessType() { - bitField0_ = (bitField0_ & ~0x00008000); - ipv6AccessType_ = 0; - onChanged(); - return this; - } - - private com.google.container.v1beta1.PodCIDROverprovisionConfig podCidrOverprovisionConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.PodCIDROverprovisionConfig, - com.google.container.v1beta1.PodCIDROverprovisionConfig.Builder, - com.google.container.v1beta1.PodCIDROverprovisionConfigOrBuilder> - podCidrOverprovisionConfigBuilder_; - /** - * - * - *
-     * [PRIVATE FIELD]
-     * Pod CIDR size overprovisioning config for the cluster.
-     *
-     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-     * of max_pods_per_node is doubled and then rounded off to next power of 2 to
-     * get the size of pod CIDR block per node.
-     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-     *
-     * This config can disable the doubling of IPs (we still round off to next
-     * power of 2)
-     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-     * overprovisioning is disabled.
-     * 
- * - * - * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; - * - * - * @return Whether the podCidrOverprovisionConfig field is set. - */ - public boolean hasPodCidrOverprovisionConfig() { - return ((bitField0_ & 0x00010000) != 0); - } - /** - * - * - *
-     * [PRIVATE FIELD]
-     * Pod CIDR size overprovisioning config for the cluster.
-     *
-     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-     * of max_pods_per_node is doubled and then rounded off to next power of 2 to
-     * get the size of pod CIDR block per node.
-     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-     *
-     * This config can disable the doubling of IPs (we still round off to next
-     * power of 2)
-     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-     * overprovisioning is disabled.
-     * 
- * - * - * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; - * - * - * @return The podCidrOverprovisionConfig. - */ - public com.google.container.v1beta1.PodCIDROverprovisionConfig getPodCidrOverprovisionConfig() { - if (podCidrOverprovisionConfigBuilder_ == null) { - return podCidrOverprovisionConfig_ == null - ? com.google.container.v1beta1.PodCIDROverprovisionConfig.getDefaultInstance() - : podCidrOverprovisionConfig_; - } else { - return podCidrOverprovisionConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * [PRIVATE FIELD]
-     * Pod CIDR size overprovisioning config for the cluster.
-     *
-     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-     * of max_pods_per_node is doubled and then rounded off to next power of 2 to
-     * get the size of pod CIDR block per node.
-     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-     *
-     * This config can disable the doubling of IPs (we still round off to next
-     * power of 2)
-     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-     * overprovisioning is disabled.
-     * 
- * - * - * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; - * - */ - public Builder setPodCidrOverprovisionConfig( - com.google.container.v1beta1.PodCIDROverprovisionConfig value) { - if (podCidrOverprovisionConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - podCidrOverprovisionConfig_ = value; - } else { - podCidrOverprovisionConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00010000; - onChanged(); - return this; - } - /** - * - * - *
-     * [PRIVATE FIELD]
-     * Pod CIDR size overprovisioning config for the cluster.
-     *
-     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-     * of max_pods_per_node is doubled and then rounded off to next power of 2 to
-     * get the size of pod CIDR block per node.
-     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-     *
-     * This config can disable the doubling of IPs (we still round off to next
-     * power of 2)
-     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-     * overprovisioning is disabled.
-     * 
- * - * - * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; - * - */ - public Builder setPodCidrOverprovisionConfig( - com.google.container.v1beta1.PodCIDROverprovisionConfig.Builder builderForValue) { - if (podCidrOverprovisionConfigBuilder_ == null) { - podCidrOverprovisionConfig_ = builderForValue.build(); - } else { - podCidrOverprovisionConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00010000; - onChanged(); - return this; - } - /** - * - * - *
-     * [PRIVATE FIELD]
-     * Pod CIDR size overprovisioning config for the cluster.
-     *
-     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-     * of max_pods_per_node is doubled and then rounded off to next power of 2 to
-     * get the size of pod CIDR block per node.
-     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-     *
-     * This config can disable the doubling of IPs (we still round off to next
-     * power of 2)
-     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-     * overprovisioning is disabled.
-     * 
- * - * - * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; - * - */ - public Builder mergePodCidrOverprovisionConfig( - com.google.container.v1beta1.PodCIDROverprovisionConfig value) { - if (podCidrOverprovisionConfigBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) - && podCidrOverprovisionConfig_ != null - && podCidrOverprovisionConfig_ - != com.google.container.v1beta1.PodCIDROverprovisionConfig.getDefaultInstance()) { - getPodCidrOverprovisionConfigBuilder().mergeFrom(value); - } else { - podCidrOverprovisionConfig_ = value; - } - } else { - podCidrOverprovisionConfigBuilder_.mergeFrom(value); - } - if (podCidrOverprovisionConfig_ != null) { - bitField0_ |= 0x00010000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * [PRIVATE FIELD]
-     * Pod CIDR size overprovisioning config for the cluster.
-     *
-     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-     * of max_pods_per_node is doubled and then rounded off to next power of 2 to
-     * get the size of pod CIDR block per node.
-     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-     *
-     * This config can disable the doubling of IPs (we still round off to next
-     * power of 2)
-     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-     * overprovisioning is disabled.
-     * 
- * - * - * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; - * - */ - public Builder clearPodCidrOverprovisionConfig() { - bitField0_ = (bitField0_ & ~0x00010000); - podCidrOverprovisionConfig_ = null; - if (podCidrOverprovisionConfigBuilder_ != null) { - podCidrOverprovisionConfigBuilder_.dispose(); - podCidrOverprovisionConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * [PRIVATE FIELD]
-     * Pod CIDR size overprovisioning config for the cluster.
-     *
-     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-     * of max_pods_per_node is doubled and then rounded off to next power of 2 to
-     * get the size of pod CIDR block per node.
-     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-     *
-     * This config can disable the doubling of IPs (we still round off to next
-     * power of 2)
-     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-     * overprovisioning is disabled.
-     * 
- * - * - * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; - * - */ - public com.google.container.v1beta1.PodCIDROverprovisionConfig.Builder - getPodCidrOverprovisionConfigBuilder() { - bitField0_ |= 0x00010000; - onChanged(); - return getPodCidrOverprovisionConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * [PRIVATE FIELD]
-     * Pod CIDR size overprovisioning config for the cluster.
-     *
-     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-     * of max_pods_per_node is doubled and then rounded off to next power of 2 to
-     * get the size of pod CIDR block per node.
-     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-     *
-     * This config can disable the doubling of IPs (we still round off to next
-     * power of 2)
-     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-     * overprovisioning is disabled.
-     * 
- * - * - * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; - * - */ - public com.google.container.v1beta1.PodCIDROverprovisionConfigOrBuilder - getPodCidrOverprovisionConfigOrBuilder() { - if (podCidrOverprovisionConfigBuilder_ != null) { - return podCidrOverprovisionConfigBuilder_.getMessageOrBuilder(); - } else { - return podCidrOverprovisionConfig_ == null - ? com.google.container.v1beta1.PodCIDROverprovisionConfig.getDefaultInstance() - : podCidrOverprovisionConfig_; - } - } - /** - * - * - *
-     * [PRIVATE FIELD]
-     * Pod CIDR size overprovisioning config for the cluster.
-     *
-     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-     * of max_pods_per_node is doubled and then rounded off to next power of 2 to
-     * get the size of pod CIDR block per node.
-     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-     *
-     * This config can disable the doubling of IPs (we still round off to next
-     * power of 2)
-     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-     * overprovisioning is disabled.
-     * 
- * - * - * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.PodCIDROverprovisionConfig, - com.google.container.v1beta1.PodCIDROverprovisionConfig.Builder, - com.google.container.v1beta1.PodCIDROverprovisionConfigOrBuilder> - getPodCidrOverprovisionConfigFieldBuilder() { - if (podCidrOverprovisionConfigBuilder_ == null) { - podCidrOverprovisionConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.PodCIDROverprovisionConfig, - com.google.container.v1beta1.PodCIDROverprovisionConfig.Builder, - com.google.container.v1beta1.PodCIDROverprovisionConfigOrBuilder>( - getPodCidrOverprovisionConfig(), getParentForChildren(), isClean()); - podCidrOverprovisionConfig_ = null; - } - return podCidrOverprovisionConfigBuilder_; - } - - private java.lang.Object subnetIpv6CidrBlock_ = ""; - /** - * - * - *
-     * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
-     * pods.
-     * 
- * - * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The subnetIpv6CidrBlock. - */ - public java.lang.String getSubnetIpv6CidrBlock() { - java.lang.Object ref = subnetIpv6CidrBlock_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subnetIpv6CidrBlock_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
-     * pods.
-     * 
- * - * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for subnetIpv6CidrBlock. - */ - public com.google.protobuf.ByteString getSubnetIpv6CidrBlockBytes() { - java.lang.Object ref = subnetIpv6CidrBlock_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - subnetIpv6CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
-     * pods.
-     * 
- * - * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The subnetIpv6CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setSubnetIpv6CidrBlock(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - subnetIpv6CidrBlock_ = value; - bitField0_ |= 0x00020000; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
-     * pods.
-     * 
- * - * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearSubnetIpv6CidrBlock() { - subnetIpv6CidrBlock_ = getDefaultInstance().getSubnetIpv6CidrBlock(); - bitField0_ = (bitField0_ & ~0x00020000); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
-     * pods.
-     * 
- * - * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for subnetIpv6CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setSubnetIpv6CidrBlockBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - subnetIpv6CidrBlock_ = value; - bitField0_ |= 0x00020000; - onChanged(); - return this; - } - - private java.lang.Object servicesIpv6CidrBlock_ = ""; - /** - * - * - *
-     * Output only. [Output only] The services IPv6 CIDR block for the cluster.
-     * 
- * - * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The servicesIpv6CidrBlock. - */ - public java.lang.String getServicesIpv6CidrBlock() { - java.lang.Object ref = servicesIpv6CidrBlock_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - servicesIpv6CidrBlock_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. [Output only] The services IPv6 CIDR block for the cluster.
-     * 
- * - * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The bytes for servicesIpv6CidrBlock. - */ - public com.google.protobuf.ByteString getServicesIpv6CidrBlockBytes() { - java.lang.Object ref = servicesIpv6CidrBlock_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - servicesIpv6CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. [Output only] The services IPv6 CIDR block for the cluster.
-     * 
- * - * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The servicesIpv6CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setServicesIpv6CidrBlock(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - servicesIpv6CidrBlock_ = value; - bitField0_ |= 0x00040000; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. [Output only] The services IPv6 CIDR block for the cluster.
-     * 
- * - * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearServicesIpv6CidrBlock() { - servicesIpv6CidrBlock_ = getDefaultInstance().getServicesIpv6CidrBlock(); - bitField0_ = (bitField0_ & ~0x00040000); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. [Output only] The services IPv6 CIDR block for the cluster.
-     * 
- * - * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The bytes for servicesIpv6CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setServicesIpv6CidrBlockBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - servicesIpv6CidrBlock_ = value; - bitField0_ |= 0x00040000; - onChanged(); - return this; - } - - private com.google.container.v1beta1.AdditionalPodRangesConfig additionalPodRangesConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AdditionalPodRangesConfig, - com.google.container.v1beta1.AdditionalPodRangesConfig.Builder, - com.google.container.v1beta1.AdditionalPodRangesConfigOrBuilder> - additionalPodRangesConfigBuilder_; - /** - * - * - *
-     * Output only. [Output only] The additional pod ranges that are added to the
-     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
-     * automatically. Once the range is removed it will not show up in
-     * IPAllocationPolicy.
-     * 
- * - * - * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the additionalPodRangesConfig field is set. - */ - public boolean hasAdditionalPodRangesConfig() { - return ((bitField0_ & 0x00080000) != 0); - } - /** - * - * - *
-     * Output only. [Output only] The additional pod ranges that are added to the
-     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
-     * automatically. Once the range is removed it will not show up in
-     * IPAllocationPolicy.
-     * 
- * - * - * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The additionalPodRangesConfig. - */ - public com.google.container.v1beta1.AdditionalPodRangesConfig getAdditionalPodRangesConfig() { - if (additionalPodRangesConfigBuilder_ == null) { - return additionalPodRangesConfig_ == null - ? com.google.container.v1beta1.AdditionalPodRangesConfig.getDefaultInstance() - : additionalPodRangesConfig_; - } else { - return additionalPodRangesConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. [Output only] The additional pod ranges that are added to the
-     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
-     * automatically. Once the range is removed it will not show up in
-     * IPAllocationPolicy.
-     * 
- * - * - * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setAdditionalPodRangesConfig( - com.google.container.v1beta1.AdditionalPodRangesConfig value) { - if (additionalPodRangesConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - additionalPodRangesConfig_ = value; - } else { - additionalPodRangesConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00080000; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. [Output only] The additional pod ranges that are added to the
-     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
-     * automatically. Once the range is removed it will not show up in
-     * IPAllocationPolicy.
-     * 
- * - * - * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setAdditionalPodRangesConfig( - com.google.container.v1beta1.AdditionalPodRangesConfig.Builder builderForValue) { - if (additionalPodRangesConfigBuilder_ == null) { - additionalPodRangesConfig_ = builderForValue.build(); - } else { - additionalPodRangesConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00080000; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. [Output only] The additional pod ranges that are added to the
-     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
-     * automatically. Once the range is removed it will not show up in
-     * IPAllocationPolicy.
-     * 
- * - * - * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeAdditionalPodRangesConfig( - com.google.container.v1beta1.AdditionalPodRangesConfig value) { - if (additionalPodRangesConfigBuilder_ == null) { - if (((bitField0_ & 0x00080000) != 0) - && additionalPodRangesConfig_ != null - && additionalPodRangesConfig_ - != com.google.container.v1beta1.AdditionalPodRangesConfig.getDefaultInstance()) { - getAdditionalPodRangesConfigBuilder().mergeFrom(value); - } else { - additionalPodRangesConfig_ = value; - } - } else { - additionalPodRangesConfigBuilder_.mergeFrom(value); - } - if (additionalPodRangesConfig_ != null) { - bitField0_ |= 0x00080000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Output only. [Output only] The additional pod ranges that are added to the
-     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
-     * automatically. Once the range is removed it will not show up in
-     * IPAllocationPolicy.
-     * 
- * - * - * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearAdditionalPodRangesConfig() { - bitField0_ = (bitField0_ & ~0x00080000); - additionalPodRangesConfig_ = null; - if (additionalPodRangesConfigBuilder_ != null) { - additionalPodRangesConfigBuilder_.dispose(); - additionalPodRangesConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. [Output only] The additional pod ranges that are added to the
-     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
-     * automatically. Once the range is removed it will not show up in
-     * IPAllocationPolicy.
-     * 
- * - * - * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.container.v1beta1.AdditionalPodRangesConfig.Builder - getAdditionalPodRangesConfigBuilder() { - bitField0_ |= 0x00080000; - onChanged(); - return getAdditionalPodRangesConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. [Output only] The additional pod ranges that are added to the
-     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
-     * automatically. Once the range is removed it will not show up in
-     * IPAllocationPolicy.
-     * 
- * - * - * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.container.v1beta1.AdditionalPodRangesConfigOrBuilder - getAdditionalPodRangesConfigOrBuilder() { - if (additionalPodRangesConfigBuilder_ != null) { - return additionalPodRangesConfigBuilder_.getMessageOrBuilder(); - } else { - return additionalPodRangesConfig_ == null - ? com.google.container.v1beta1.AdditionalPodRangesConfig.getDefaultInstance() - : additionalPodRangesConfig_; - } - } - /** - * - * - *
-     * Output only. [Output only] The additional pod ranges that are added to the
-     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
-     * automatically. Once the range is removed it will not show up in
-     * IPAllocationPolicy.
-     * 
- * - * - * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AdditionalPodRangesConfig, - com.google.container.v1beta1.AdditionalPodRangesConfig.Builder, - com.google.container.v1beta1.AdditionalPodRangesConfigOrBuilder> - getAdditionalPodRangesConfigFieldBuilder() { - if (additionalPodRangesConfigBuilder_ == null) { - additionalPodRangesConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AdditionalPodRangesConfig, - com.google.container.v1beta1.AdditionalPodRangesConfig.Builder, - com.google.container.v1beta1.AdditionalPodRangesConfigOrBuilder>( - getAdditionalPodRangesConfig(), getParentForChildren(), isClean()); - additionalPodRangesConfig_ = null; - } - return additionalPodRangesConfigBuilder_; - } - - private double defaultPodIpv4RangeUtilization_; - /** - * - * - *
-     * Output only. [Output only] The utilization of the cluster default IPv4
-     * range for the pod. The ratio is Usage/[Total number of IPs in the secondary
-     * range], Usage=numNodes*numZones*podIPsPerNode.
-     * 
- * - * - * double default_pod_ipv4_range_utilization = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The defaultPodIpv4RangeUtilization. - */ - @java.lang.Override - public double getDefaultPodIpv4RangeUtilization() { - return defaultPodIpv4RangeUtilization_; - } - /** - * - * - *
-     * Output only. [Output only] The utilization of the cluster default IPv4
-     * range for the pod. The ratio is Usage/[Total number of IPs in the secondary
-     * range], Usage=numNodes*numZones*podIPsPerNode.
-     * 
- * - * - * double default_pod_ipv4_range_utilization = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The defaultPodIpv4RangeUtilization to set. - * @return This builder for chaining. - */ - public Builder setDefaultPodIpv4RangeUtilization(double value) { - - defaultPodIpv4RangeUtilization_ = value; - bitField0_ |= 0x00100000; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. [Output only] The utilization of the cluster default IPv4
-     * range for the pod. The ratio is Usage/[Total number of IPs in the secondary
-     * range], Usage=numNodes*numZones*podIPsPerNode.
-     * 
- * - * - * double default_pod_ipv4_range_utilization = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearDefaultPodIpv4RangeUtilization() { - bitField0_ = (bitField0_ & ~0x00100000); - defaultPodIpv4RangeUtilization_ = 0D; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IPAllocationPolicyOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IPAllocationPolicyOrBuilder.java deleted file mode 100644 index 8a5e1c5b0626..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IPAllocationPolicyOrBuilder.java +++ /dev/null @@ -1,747 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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]; - * - * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1640 - * @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]; - * - * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1640 - * @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]; - * - * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1643 - * @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]; - * - * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1643 - * @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]; - * - * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1646 - * @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]; - * - * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1646 - * @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(); - - /** - * - * - *
-   * IP stack type
-   * 
- * - * .google.container.v1beta1.IPAllocationPolicy.StackType stack_type = 16; - * - * @return The enum numeric value on the wire for stackType. - */ - int getStackTypeValue(); - /** - * - * - *
-   * IP stack type
-   * 
- * - * .google.container.v1beta1.IPAllocationPolicy.StackType stack_type = 16; - * - * @return The stackType. - */ - com.google.container.v1beta1.IPAllocationPolicy.StackType getStackType(); - - /** - * - * - *
-   * The ipv6 access type (internal or external) when create_subnetwork is true
-   * 
- * - * .google.container.v1beta1.IPAllocationPolicy.IPv6AccessType ipv6_access_type = 17; - * - * @return The enum numeric value on the wire for ipv6AccessType. - */ - int getIpv6AccessTypeValue(); - /** - * - * - *
-   * The ipv6 access type (internal or external) when create_subnetwork is true
-   * 
- * - * .google.container.v1beta1.IPAllocationPolicy.IPv6AccessType ipv6_access_type = 17; - * - * @return The ipv6AccessType. - */ - com.google.container.v1beta1.IPAllocationPolicy.IPv6AccessType getIpv6AccessType(); - - /** - * - * - *
-   * [PRIVATE FIELD]
-   * Pod CIDR size overprovisioning config for the cluster.
-   *
-   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-   * of max_pods_per_node is doubled and then rounded off to next power of 2 to
-   * get the size of pod CIDR block per node.
-   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-   *
-   * This config can disable the doubling of IPs (we still round off to next
-   * power of 2)
-   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-   * overprovisioning is disabled.
-   * 
- * - * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; - * - * - * @return Whether the podCidrOverprovisionConfig field is set. - */ - boolean hasPodCidrOverprovisionConfig(); - /** - * - * - *
-   * [PRIVATE FIELD]
-   * Pod CIDR size overprovisioning config for the cluster.
-   *
-   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-   * of max_pods_per_node is doubled and then rounded off to next power of 2 to
-   * get the size of pod CIDR block per node.
-   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-   *
-   * This config can disable the doubling of IPs (we still round off to next
-   * power of 2)
-   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-   * overprovisioning is disabled.
-   * 
- * - * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; - * - * - * @return The podCidrOverprovisionConfig. - */ - com.google.container.v1beta1.PodCIDROverprovisionConfig getPodCidrOverprovisionConfig(); - /** - * - * - *
-   * [PRIVATE FIELD]
-   * Pod CIDR size overprovisioning config for the cluster.
-   *
-   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-   * of max_pods_per_node is doubled and then rounded off to next power of 2 to
-   * get the size of pod CIDR block per node.
-   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-   *
-   * This config can disable the doubling of IPs (we still round off to next
-   * power of 2)
-   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-   * overprovisioning is disabled.
-   * 
- * - * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; - * - */ - com.google.container.v1beta1.PodCIDROverprovisionConfigOrBuilder - getPodCidrOverprovisionConfigOrBuilder(); - - /** - * - * - *
-   * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
-   * pods.
-   * 
- * - * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The subnetIpv6CidrBlock. - */ - java.lang.String getSubnetIpv6CidrBlock(); - /** - * - * - *
-   * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
-   * pods.
-   * 
- * - * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for subnetIpv6CidrBlock. - */ - com.google.protobuf.ByteString getSubnetIpv6CidrBlockBytes(); - - /** - * - * - *
-   * Output only. [Output only] The services IPv6 CIDR block for the cluster.
-   * 
- * - * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The servicesIpv6CidrBlock. - */ - java.lang.String getServicesIpv6CidrBlock(); - /** - * - * - *
-   * Output only. [Output only] The services IPv6 CIDR block for the cluster.
-   * 
- * - * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for servicesIpv6CidrBlock. - */ - com.google.protobuf.ByteString getServicesIpv6CidrBlockBytes(); - - /** - * - * - *
-   * Output only. [Output only] The additional pod ranges that are added to the
-   * cluster. These pod ranges can be used by new node pools to allocate pod IPs
-   * automatically. Once the range is removed it will not show up in
-   * IPAllocationPolicy.
-   * 
- * - * - * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the additionalPodRangesConfig field is set. - */ - boolean hasAdditionalPodRangesConfig(); - /** - * - * - *
-   * Output only. [Output only] The additional pod ranges that are added to the
-   * cluster. These pod ranges can be used by new node pools to allocate pod IPs
-   * automatically. Once the range is removed it will not show up in
-   * IPAllocationPolicy.
-   * 
- * - * - * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The additionalPodRangesConfig. - */ - com.google.container.v1beta1.AdditionalPodRangesConfig getAdditionalPodRangesConfig(); - /** - * - * - *
-   * Output only. [Output only] The additional pod ranges that are added to the
-   * cluster. These pod ranges can be used by new node pools to allocate pod IPs
-   * automatically. Once the range is removed it will not show up in
-   * IPAllocationPolicy.
-   * 
- * - * - * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.container.v1beta1.AdditionalPodRangesConfigOrBuilder - getAdditionalPodRangesConfigOrBuilder(); - - /** - * - * - *
-   * Output only. [Output only] The utilization of the cluster default IPv4
-   * range for the pod. The ratio is Usage/[Total number of IPs in the secondary
-   * range], Usage=numNodes*numZones*podIPsPerNode.
-   * 
- * - * - * double default_pod_ipv4_range_utilization = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The defaultPodIpv4RangeUtilization. - */ - double getDefaultPodIpv4RangeUtilization(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IdentityServiceConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IdentityServiceConfig.java deleted file mode 100644 index dab035a35fc4..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IdentityServiceConfig.java +++ /dev/null @@ -1,537 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * IdentityServiceConfig is configuration for Identity Service which allows
- * customers to use external identity providers with the K8S API
- * 
- * - * Protobuf type {@code google.container.v1beta1.IdentityServiceConfig} - */ -public final class IdentityServiceConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.IdentityServiceConfig) - IdentityServiceConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use IdentityServiceConfig.newBuilder() to construct. - private IdentityServiceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private IdentityServiceConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new IdentityServiceConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_IdentityServiceConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_IdentityServiceConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.IdentityServiceConfig.class, - com.google.container.v1beta1.IdentityServiceConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * Whether to enable the Identity Service component
-   * 
- * - * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.IdentityServiceConfig)) { - return super.equals(obj); - } - com.google.container.v1beta1.IdentityServiceConfig other = - (com.google.container.v1beta1.IdentityServiceConfig) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.IdentityServiceConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.IdentityServiceConfig parseFrom( - 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.IdentityServiceConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.IdentityServiceConfig parseFrom( - com.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.IdentityServiceConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.IdentityServiceConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.IdentityServiceConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.IdentityServiceConfig parseFrom( - java.io.InputStream 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.IdentityServiceConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.IdentityServiceConfig parseDelimitedFrom( - java.io.InputStream 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.IdentityServiceConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.IdentityServiceConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.IdentityServiceConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * IdentityServiceConfig is configuration for Identity Service which allows
-   * customers to use external identity providers with the K8S API
-   * 
- * - * Protobuf type {@code google.container.v1beta1.IdentityServiceConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.IdentityServiceConfig) - com.google.container.v1beta1.IdentityServiceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_IdentityServiceConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_IdentityServiceConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.IdentityServiceConfig.class, - com.google.container.v1beta1.IdentityServiceConfig.Builder.class); - } - - // Construct using com.google.container.v1beta1.IdentityServiceConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 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_IdentityServiceConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.IdentityServiceConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.IdentityServiceConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.IdentityServiceConfig build() { - com.google.container.v1beta1.IdentityServiceConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.IdentityServiceConfig buildPartial() { - com.google.container.v1beta1.IdentityServiceConfig result = - new com.google.container.v1beta1.IdentityServiceConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.IdentityServiceConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @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.IdentityServiceConfig) { - return mergeFrom((com.google.container.v1beta1.IdentityServiceConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.IdentityServiceConfig other) { - if (other == com.google.container.v1beta1.IdentityServiceConfig.getDefaultInstance()) - return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean enabled_; - /** - * - * - *
-     * Whether to enable the Identity Service component
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Whether to enable the Identity Service component
-     * 
- * - * bool enabled = 1; - * - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether to enable the Identity Service component
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - 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.IdentityServiceConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.IdentityServiceConfig) - private static final com.google.container.v1beta1.IdentityServiceConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.IdentityServiceConfig(); - } - - public static com.google.container.v1beta1.IdentityServiceConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IdentityServiceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.IdentityServiceConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IdentityServiceConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IdentityServiceConfigOrBuilder.java deleted file mode 100644 index ff7df3283ade..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IdentityServiceConfigOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface IdentityServiceConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.IdentityServiceConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether to enable the Identity Service component
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/InTransitEncryptionConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/InTransitEncryptionConfig.java deleted file mode 100644 index bdaa7c6a5343..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/InTransitEncryptionConfig.java +++ /dev/null @@ -1,182 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * Options for in-transit encryption.
- * 
- * - * Protobuf enum {@code google.container.v1beta1.InTransitEncryptionConfig} - */ -public enum InTransitEncryptionConfig implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Unspecified, will be inferred as default -
-   * IN_TRANSIT_ENCRYPTION_UNSPECIFIED.
-   * 
- * - * IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED = 0; - */ - IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED(0), - /** - * - * - *
-   * In-transit encryption is disabled.
-   * 
- * - * IN_TRANSIT_ENCRYPTION_DISABLED = 1; - */ - IN_TRANSIT_ENCRYPTION_DISABLED(1), - /** - * - * - *
-   * Data in-transit is encrypted using inter-node transparent encryption.
-   * 
- * - * IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT = 2; - */ - IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * Unspecified, will be inferred as default -
-   * IN_TRANSIT_ENCRYPTION_UNSPECIFIED.
-   * 
- * - * IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED = 0; - */ - public static final int IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * In-transit encryption is disabled.
-   * 
- * - * IN_TRANSIT_ENCRYPTION_DISABLED = 1; - */ - public static final int IN_TRANSIT_ENCRYPTION_DISABLED_VALUE = 1; - /** - * - * - *
-   * Data in-transit is encrypted using inter-node transparent encryption.
-   * 
- * - * IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT = 2; - */ - public static final int IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT_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 InTransitEncryptionConfig 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 InTransitEncryptionConfig forNumber(int value) { - switch (value) { - case 0: - return IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED; - case 1: - return IN_TRANSIT_ENCRYPTION_DISABLED; - case 2: - return IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT; - 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 InTransitEncryptionConfig findValueByNumber(int number) { - return InTransitEncryptionConfig.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(5); - } - - private static final InTransitEncryptionConfig[] VALUES = values(); - - public static InTransitEncryptionConfig 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 InTransitEncryptionConfig(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1beta1.InTransitEncryptionConfig) -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IntraNodeVisibilityConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IntraNodeVisibilityConfig.java deleted file mode 100644 index 5ddae1abe8ed..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IntraNodeVisibilityConfig.java +++ /dev/null @@ -1,538 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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_ = false; - /** - * - * - *
-   * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 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_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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.IntraNodeVisibilityConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Enables intra node visibility for this cluster.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IntraNodeVisibilityConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IntraNodeVisibilityConfigOrBuilder.java deleted file mode 100644 index cbe9069eff40..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IntraNodeVisibilityConfigOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfig.java deleted file mode 100644 index da0bbac58516..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfig.java +++ /dev/null @@ -1,859 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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_ = false; - /** - * - * - *
-   * Whether Istio is enabled for this cluster.
-   * 
- * - * bool disabled = 1 [deprecated = true]; - * - * @deprecated google.container.v1beta1.IstioConfig.disabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1508 - * @return The disabled. - */ - @java.lang.Override - @java.lang.Deprecated - public boolean getDisabled() { - return disabled_; - } - - public static final int AUTH_FIELD_NUMBER = 2; - private int auth_ = 0; - /** - * - * - *
-   * The specified Istio auth mode, either none, or mutual TLS.
-   * 
- * - * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2 [deprecated = true]; - * - * @deprecated google.container.v1beta1.IstioConfig.auth is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1511 - * @return The enum numeric value on the wire for auth. - */ - @java.lang.Override - @java.lang.Deprecated - public int getAuthValue() { - return auth_; - } - /** - * - * - *
-   * The specified Istio auth mode, either none, or mutual TLS.
-   * 
- * - * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2 [deprecated = true]; - * - * @deprecated google.container.v1beta1.IstioConfig.auth is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1511 - * @return The auth. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.container.v1beta1.IstioConfig.IstioAuthMode getAuth() { - com.google.container.v1beta1.IstioConfig.IstioAuthMode result = - com.google.container.v1beta1.IstioConfig.IstioAuthMode.forNumber(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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.IstioConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.disabled_ = disabled_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.auth_ = auth_; - } - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - disabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - auth_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean disabled_; - /** - * - * - *
-     * Whether Istio is enabled for this cluster.
-     * 
- * - * bool disabled = 1 [deprecated = true]; - * - * @deprecated google.container.v1beta1.IstioConfig.disabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1508 - * @return The disabled. - */ - @java.lang.Override - @java.lang.Deprecated - public boolean getDisabled() { - return disabled_; - } - /** - * - * - *
-     * Whether Istio is enabled for this cluster.
-     * 
- * - * bool disabled = 1 [deprecated = true]; - * - * @deprecated google.container.v1beta1.IstioConfig.disabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1508 - * @param value The disabled to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setDisabled(boolean value) { - - disabled_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether Istio is enabled for this cluster.
-     * 
- * - * bool disabled = 1 [deprecated = true]; - * - * @deprecated google.container.v1beta1.IstioConfig.disabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1508 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearDisabled() { - bitField0_ = (bitField0_ & ~0x00000001); - 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 [deprecated = true]; - * - * - * @deprecated google.container.v1beta1.IstioConfig.auth is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1511 - * @return The enum numeric value on the wire for auth. - */ - @java.lang.Override - @java.lang.Deprecated - public int getAuthValue() { - return auth_; - } - /** - * - * - *
-     * The specified Istio auth mode, either none, or mutual TLS.
-     * 
- * - * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2 [deprecated = true]; - * - * - * @deprecated google.container.v1beta1.IstioConfig.auth is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1511 - * @param value The enum numeric value on the wire for auth to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setAuthValue(int value) { - auth_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * The specified Istio auth mode, either none, or mutual TLS.
-     * 
- * - * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2 [deprecated = true]; - * - * - * @deprecated google.container.v1beta1.IstioConfig.auth is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1511 - * @return The auth. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.container.v1beta1.IstioConfig.IstioAuthMode getAuth() { - com.google.container.v1beta1.IstioConfig.IstioAuthMode result = - com.google.container.v1beta1.IstioConfig.IstioAuthMode.forNumber(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 [deprecated = true]; - * - * - * @deprecated google.container.v1beta1.IstioConfig.auth is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1511 - * @param value The auth to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setAuth(com.google.container.v1beta1.IstioConfig.IstioAuthMode value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - auth_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The specified Istio auth mode, either none, or mutual TLS.
-     * 
- * - * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2 [deprecated = true]; - * - * - * @deprecated google.container.v1beta1.IstioConfig.auth is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1511 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearAuth() { - bitField0_ = (bitField0_ & ~0x00000002); - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfigOrBuilder.java deleted file mode 100644 index c5bfc71a10c7..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfigOrBuilder.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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 [deprecated = true]; - * - * @deprecated google.container.v1beta1.IstioConfig.disabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1508 - * @return The disabled. - */ - @java.lang.Deprecated - boolean getDisabled(); - - /** - * - * - *
-   * The specified Istio auth mode, either none, or mutual TLS.
-   * 
- * - * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2 [deprecated = true]; - * - * @deprecated google.container.v1beta1.IstioConfig.auth is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1511 - * @return The enum numeric value on the wire for auth. - */ - @java.lang.Deprecated - int getAuthValue(); - /** - * - * - *
-   * The specified Istio auth mode, either none, or mutual TLS.
-   * 
- * - * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2 [deprecated = true]; - * - * @deprecated google.container.v1beta1.IstioConfig.auth is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1511 - * @return The auth. - */ - @java.lang.Deprecated - com.google.container.v1beta1.IstioConfig.IstioAuthMode getAuth(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Jwk.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Jwk.java deleted file mode 100644 index 2376b27ad24a..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Jwk.java +++ /dev/null @@ -1,2076 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kty_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kty_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alg_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, alg_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(use_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, use_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kid_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, kid_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(n_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, n_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(e_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, e_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(x_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, x_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(y_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, y_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crv_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, crv_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kty_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kty_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alg_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, alg_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(use_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, use_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kid_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, kid_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(n_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, n_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(e_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, e_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(x_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, x_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(y_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, y_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crv_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, crv_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.Jwk result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.kty_ = kty_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.alg_ = alg_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.use_ = use_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.kid_ = kid_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.n_ = n_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.e_ = e_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.x_ = x_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.y_ = y_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.crv_ = crv_; - } - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getAlg().isEmpty()) { - alg_ = other.alg_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getUse().isEmpty()) { - use_ = other.use_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getKid().isEmpty()) { - kid_ = other.kid_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getN().isEmpty()) { - n_ = other.n_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (!other.getE().isEmpty()) { - e_ = other.e_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (!other.getX().isEmpty()) { - x_ = other.x_; - bitField0_ |= 0x00000040; - onChanged(); - } - if (!other.getY().isEmpty()) { - y_ = other.y_; - bitField0_ |= 0x00000080; - onChanged(); - } - if (!other.getCrv().isEmpty()) { - crv_ = other.crv_; - bitField0_ |= 0x00000100; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - kty_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - alg_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - use_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - kid_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - n_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - e_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - x_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: - { - y_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 74: - { - crv_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 74 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Key Type.
-     * 
- * - * string kty = 1; - * - * @return This builder for chaining. - */ - public Builder clearKty() { - kty_ = getDefaultInstance().getKty(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Algorithm.
-     * 
- * - * string alg = 2; - * - * @return This builder for chaining. - */ - public Builder clearAlg() { - alg_ = getDefaultInstance().getAlg(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - 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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Permitted uses for the public keys.
-     * 
- * - * string use = 3; - * - * @return This builder for chaining. - */ - public Builder clearUse() { - use_ = getDefaultInstance().getUse(); - bitField0_ = (bitField0_ & ~0x00000004); - 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; - bitField0_ |= 0x00000004; - 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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Key ID.
-     * 
- * - * string kid = 4; - * - * @return This builder for chaining. - */ - public Builder clearKid() { - kid_ = getDefaultInstance().getKid(); - bitField0_ = (bitField0_ & ~0x00000008); - 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; - bitField0_ |= 0x00000008; - 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; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Used for RSA keys.
-     * 
- * - * string n = 5; - * - * @return This builder for chaining. - */ - public Builder clearN() { - n_ = getDefaultInstance().getN(); - bitField0_ = (bitField0_ & ~0x00000010); - 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; - bitField0_ |= 0x00000010; - 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; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * Used for RSA keys.
-     * 
- * - * string e = 6; - * - * @return This builder for chaining. - */ - public Builder clearE() { - e_ = getDefaultInstance().getE(); - bitField0_ = (bitField0_ & ~0x00000020); - 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; - bitField0_ |= 0x00000020; - 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; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-     * Used for ECDSA keys.
-     * 
- * - * string x = 7; - * - * @return This builder for chaining. - */ - public Builder clearX() { - x_ = getDefaultInstance().getX(); - bitField0_ = (bitField0_ & ~0x00000040); - 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; - bitField0_ |= 0x00000040; - 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; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * Used for ECDSA keys.
-     * 
- * - * string y = 8; - * - * @return This builder for chaining. - */ - public Builder clearY() { - y_ = getDefaultInstance().getY(); - bitField0_ = (bitField0_ & ~0x00000080); - 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; - bitField0_ |= 0x00000080; - 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; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * - * - *
-     * Used for ECDSA keys.
-     * 
- * - * string crv = 9; - * - * @return This builder for chaining. - */ - public Builder clearCrv() { - crv_ = getDefaultInstance().getCrv(); - bitField0_ = (bitField0_ & ~0x00000100); - 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; - bitField0_ |= 0x00000100; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/JwkOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/JwkOrBuilder.java deleted file mode 100644 index bd4bba0cdbd5..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/JwkOrBuilder.java +++ /dev/null @@ -1,251 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/K8sBetaAPIConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/K8sBetaAPIConfig.java deleted file mode 100644 index 7b04045eb57a..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/K8sBetaAPIConfig.java +++ /dev/null @@ -1,719 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * Kubernetes open source beta apis enabled on the cluster.
- * 
- * - * Protobuf type {@code google.container.v1beta1.K8sBetaAPIConfig} - */ -public final class K8sBetaAPIConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.K8sBetaAPIConfig) - K8sBetaAPIConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use K8sBetaAPIConfig.newBuilder() to construct. - private K8sBetaAPIConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private K8sBetaAPIConfig() { - enabledApis_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new K8sBetaAPIConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_K8sBetaAPIConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_K8sBetaAPIConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.K8sBetaAPIConfig.class, - com.google.container.v1beta1.K8sBetaAPIConfig.Builder.class); - } - - public static final int ENABLED_APIS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList enabledApis_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * api name, e.g. storage.k8s.io/v1beta1/csistoragecapacities.
-   * 
- * - * repeated string enabled_apis = 1; - * - * @return A list containing the enabledApis. - */ - public com.google.protobuf.ProtocolStringList getEnabledApisList() { - return enabledApis_; - } - /** - * - * - *
-   * api name, e.g. storage.k8s.io/v1beta1/csistoragecapacities.
-   * 
- * - * repeated string enabled_apis = 1; - * - * @return The count of enabledApis. - */ - public int getEnabledApisCount() { - return enabledApis_.size(); - } - /** - * - * - *
-   * api name, e.g. storage.k8s.io/v1beta1/csistoragecapacities.
-   * 
- * - * repeated string enabled_apis = 1; - * - * @param index The index of the element to return. - * @return The enabledApis at the given index. - */ - public java.lang.String getEnabledApis(int index) { - return enabledApis_.get(index); - } - /** - * - * - *
-   * api name, e.g. storage.k8s.io/v1beta1/csistoragecapacities.
-   * 
- * - * repeated string enabled_apis = 1; - * - * @param index The index of the value to return. - * @return The bytes of the enabledApis at the given index. - */ - public com.google.protobuf.ByteString getEnabledApisBytes(int index) { - return enabledApis_.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 < enabledApis_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, enabledApis_.getRaw(i)); - } - getUnknownFields().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 < enabledApis_.size(); i++) { - dataSize += computeStringSizeNoTag(enabledApis_.getRaw(i)); - } - size += dataSize; - size += 1 * getEnabledApisList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.K8sBetaAPIConfig)) { - return super.equals(obj); - } - com.google.container.v1beta1.K8sBetaAPIConfig other = - (com.google.container.v1beta1.K8sBetaAPIConfig) obj; - - if (!getEnabledApisList().equals(other.getEnabledApisList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getEnabledApisCount() > 0) { - hash = (37 * hash) + ENABLED_APIS_FIELD_NUMBER; - hash = (53 * hash) + getEnabledApisList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.K8sBetaAPIConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.K8sBetaAPIConfig parseFrom( - 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.K8sBetaAPIConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.K8sBetaAPIConfig parseFrom( - com.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.K8sBetaAPIConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.K8sBetaAPIConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.K8sBetaAPIConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.K8sBetaAPIConfig parseFrom( - java.io.InputStream 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.K8sBetaAPIConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.K8sBetaAPIConfig parseDelimitedFrom( - java.io.InputStream 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.K8sBetaAPIConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.K8sBetaAPIConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.K8sBetaAPIConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 open source beta apis enabled on the cluster.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.K8sBetaAPIConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.K8sBetaAPIConfig) - com.google.container.v1beta1.K8sBetaAPIConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_K8sBetaAPIConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_K8sBetaAPIConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.K8sBetaAPIConfig.class, - com.google.container.v1beta1.K8sBetaAPIConfig.Builder.class); - } - - // Construct using com.google.container.v1beta1.K8sBetaAPIConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enabledApis_ = com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_K8sBetaAPIConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.K8sBetaAPIConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.K8sBetaAPIConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.K8sBetaAPIConfig build() { - com.google.container.v1beta1.K8sBetaAPIConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.K8sBetaAPIConfig buildPartial() { - com.google.container.v1beta1.K8sBetaAPIConfig result = - new com.google.container.v1beta1.K8sBetaAPIConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.K8sBetaAPIConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - enabledApis_.makeImmutable(); - result.enabledApis_ = enabledApis_; - } - } - - @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.K8sBetaAPIConfig) { - return mergeFrom((com.google.container.v1beta1.K8sBetaAPIConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.K8sBetaAPIConfig other) { - if (other == com.google.container.v1beta1.K8sBetaAPIConfig.getDefaultInstance()) return this; - if (!other.enabledApis_.isEmpty()) { - if (enabledApis_.isEmpty()) { - enabledApis_ = other.enabledApis_; - bitField0_ |= 0x00000001; - } else { - ensureEnabledApisIsMutable(); - enabledApis_.addAll(other.enabledApis_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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(); - ensureEnabledApisIsMutable(); - enabledApis_.add(s); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.protobuf.LazyStringArrayList enabledApis_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureEnabledApisIsMutable() { - if (!enabledApis_.isModifiable()) { - enabledApis_ = new com.google.protobuf.LazyStringArrayList(enabledApis_); - } - bitField0_ |= 0x00000001; - } - /** - * - * - *
-     * api name, e.g. storage.k8s.io/v1beta1/csistoragecapacities.
-     * 
- * - * repeated string enabled_apis = 1; - * - * @return A list containing the enabledApis. - */ - public com.google.protobuf.ProtocolStringList getEnabledApisList() { - enabledApis_.makeImmutable(); - return enabledApis_; - } - /** - * - * - *
-     * api name, e.g. storage.k8s.io/v1beta1/csistoragecapacities.
-     * 
- * - * repeated string enabled_apis = 1; - * - * @return The count of enabledApis. - */ - public int getEnabledApisCount() { - return enabledApis_.size(); - } - /** - * - * - *
-     * api name, e.g. storage.k8s.io/v1beta1/csistoragecapacities.
-     * 
- * - * repeated string enabled_apis = 1; - * - * @param index The index of the element to return. - * @return The enabledApis at the given index. - */ - public java.lang.String getEnabledApis(int index) { - return enabledApis_.get(index); - } - /** - * - * - *
-     * api name, e.g. storage.k8s.io/v1beta1/csistoragecapacities.
-     * 
- * - * repeated string enabled_apis = 1; - * - * @param index The index of the value to return. - * @return The bytes of the enabledApis at the given index. - */ - public com.google.protobuf.ByteString getEnabledApisBytes(int index) { - return enabledApis_.getByteString(index); - } - /** - * - * - *
-     * api name, e.g. storage.k8s.io/v1beta1/csistoragecapacities.
-     * 
- * - * repeated string enabled_apis = 1; - * - * @param index The index to set the value at. - * @param value The enabledApis to set. - * @return This builder for chaining. - */ - public Builder setEnabledApis(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnabledApisIsMutable(); - enabledApis_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * api name, e.g. storage.k8s.io/v1beta1/csistoragecapacities.
-     * 
- * - * repeated string enabled_apis = 1; - * - * @param value The enabledApis to add. - * @return This builder for chaining. - */ - public Builder addEnabledApis(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnabledApisIsMutable(); - enabledApis_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * api name, e.g. storage.k8s.io/v1beta1/csistoragecapacities.
-     * 
- * - * repeated string enabled_apis = 1; - * - * @param values The enabledApis to add. - * @return This builder for chaining. - */ - public Builder addAllEnabledApis(java.lang.Iterable values) { - ensureEnabledApisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, enabledApis_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * api name, e.g. storage.k8s.io/v1beta1/csistoragecapacities.
-     * 
- * - * repeated string enabled_apis = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabledApis() { - enabledApis_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; - onChanged(); - return this; - } - /** - * - * - *
-     * api name, e.g. storage.k8s.io/v1beta1/csistoragecapacities.
-     * 
- * - * repeated string enabled_apis = 1; - * - * @param value The bytes of the enabledApis to add. - * @return This builder for chaining. - */ - public Builder addEnabledApisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureEnabledApisIsMutable(); - enabledApis_.add(value); - bitField0_ |= 0x00000001; - 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.K8sBetaAPIConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.K8sBetaAPIConfig) - private static final com.google.container.v1beta1.K8sBetaAPIConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.K8sBetaAPIConfig(); - } - - public static com.google.container.v1beta1.K8sBetaAPIConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public K8sBetaAPIConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.K8sBetaAPIConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/K8sBetaAPIConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/K8sBetaAPIConfigOrBuilder.java deleted file mode 100644 index 96db72cd453e..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/K8sBetaAPIConfigOrBuilder.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface K8sBetaAPIConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.K8sBetaAPIConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * api name, e.g. storage.k8s.io/v1beta1/csistoragecapacities.
-   * 
- * - * repeated string enabled_apis = 1; - * - * @return A list containing the enabledApis. - */ - java.util.List getEnabledApisList(); - /** - * - * - *
-   * api name, e.g. storage.k8s.io/v1beta1/csistoragecapacities.
-   * 
- * - * repeated string enabled_apis = 1; - * - * @return The count of enabledApis. - */ - int getEnabledApisCount(); - /** - * - * - *
-   * api name, e.g. storage.k8s.io/v1beta1/csistoragecapacities.
-   * 
- * - * repeated string enabled_apis = 1; - * - * @param index The index of the element to return. - * @return The enabledApis at the given index. - */ - java.lang.String getEnabledApis(int index); - /** - * - * - *
-   * api name, e.g. storage.k8s.io/v1beta1/csistoragecapacities.
-   * 
- * - * repeated string enabled_apis = 1; - * - * @param index The index of the value to return. - * @return The bytes of the enabledApis at the given index. - */ - com.google.protobuf.ByteString getEnabledApisBytes(int index); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KalmConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KalmConfig.java deleted file mode 100644 index a21b80881ab8..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KalmConfig.java +++ /dev/null @@ -1,545 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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_ = false; - /** - * - * - *
-   * Whether KALM is enabled for this cluster.
-   * 
- * - * bool enabled = 1 [deprecated = true]; - * - * @deprecated google.container.v1beta1.KalmConfig.enabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1418 - * @return The enabled. - */ - @java.lang.Override - @java.lang.Deprecated - 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 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_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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.KalmConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean enabled_; - /** - * - * - *
-     * Whether KALM is enabled for this cluster.
-     * 
- * - * bool enabled = 1 [deprecated = true]; - * - * @deprecated google.container.v1beta1.KalmConfig.enabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1418 - * @return The enabled. - */ - @java.lang.Override - @java.lang.Deprecated - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Whether KALM is enabled for this cluster.
-     * 
- * - * bool enabled = 1 [deprecated = true]; - * - * @deprecated google.container.v1beta1.KalmConfig.enabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1418 - * @param value The enabled to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setEnabled(boolean value) { - - enabled_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether KALM is enabled for this cluster.
-     * 
- * - * bool enabled = 1 [deprecated = true]; - * - * @deprecated google.container.v1beta1.KalmConfig.enabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1418 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KalmConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KalmConfigOrBuilder.java deleted file mode 100644 index 492a83d415ed..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KalmConfigOrBuilder.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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 [deprecated = true]; - * - * @deprecated google.container.v1beta1.KalmConfig.enabled is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1418 - * @return The enabled. - */ - @java.lang.Deprecated - boolean getEnabled(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KubernetesDashboard.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KubernetesDashboard.java deleted file mode 100644 index 19880382413d..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KubernetesDashboard.java +++ /dev/null @@ -1,535 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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_ = false; - /** - * - * - *
-   * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.KubernetesDashboard result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.disabled_ = disabled_; - } - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - disabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether the Kubernetes Dashboard is enabled for this cluster.
-     * 
- * - * bool disabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearDisabled() { - bitField0_ = (bitField0_ & ~0x00000001); - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KubernetesDashboardOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KubernetesDashboardOrBuilder.java deleted file mode 100644 index ad4b08700379..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KubernetesDashboardOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LegacyAbac.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LegacyAbac.java deleted file mode 100644 index 5239dcc26d22..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LegacyAbac.java +++ /dev/null @@ -1,547 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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_ = false; - /** - * - * - *
-   * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 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_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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.LegacyAbac result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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() { - bitField0_ = (bitField0_ & ~0x00000001); - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LegacyAbacOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LegacyAbacOrBuilder.java deleted file mode 100644 index 4ccbe19988f6..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LegacyAbacOrBuilder.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LinuxNodeConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LinuxNodeConfig.java deleted file mode 100644 index 1cef84b32718..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LinuxNodeConfig.java +++ /dev/null @@ -1,1261 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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() { - cgroupMode_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new LinuxNodeConfig(); - } - - 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.MapFieldReflectionAccessor internalGetMapFieldReflection( - 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); - } - - /** - * - * - *
-   * Possible cgroup modes that can be used.
-   * 
- * - * Protobuf enum {@code google.container.v1beta1.LinuxNodeConfig.CgroupMode} - */ - public enum CgroupMode implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * CGROUP_MODE_UNSPECIFIED is when unspecified cgroup configuration is used.
-     * The default for the GKE node OS image will be used.
-     * 
- * - * CGROUP_MODE_UNSPECIFIED = 0; - */ - CGROUP_MODE_UNSPECIFIED(0), - /** - * - * - *
-     * CGROUP_MODE_V1 specifies to use cgroupv1 for the cgroup configuration on
-     * the node image.
-     * 
- * - * CGROUP_MODE_V1 = 1; - */ - CGROUP_MODE_V1(1), - /** - * - * - *
-     * CGROUP_MODE_V2 specifies to use cgroupv2 for the cgroup configuration on
-     * the node image.
-     * 
- * - * CGROUP_MODE_V2 = 2; - */ - CGROUP_MODE_V2(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * CGROUP_MODE_UNSPECIFIED is when unspecified cgroup configuration is used.
-     * The default for the GKE node OS image will be used.
-     * 
- * - * CGROUP_MODE_UNSPECIFIED = 0; - */ - public static final int CGROUP_MODE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * CGROUP_MODE_V1 specifies to use cgroupv1 for the cgroup configuration on
-     * the node image.
-     * 
- * - * CGROUP_MODE_V1 = 1; - */ - public static final int CGROUP_MODE_V1_VALUE = 1; - /** - * - * - *
-     * CGROUP_MODE_V2 specifies to use cgroupv2 for the cgroup configuration on
-     * the node image.
-     * 
- * - * CGROUP_MODE_V2 = 2; - */ - public static final int CGROUP_MODE_V2_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 CgroupMode 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 CgroupMode forNumber(int value) { - switch (value) { - case 0: - return CGROUP_MODE_UNSPECIFIED; - case 1: - return CGROUP_MODE_V1; - case 2: - return CGROUP_MODE_V2; - 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 CgroupMode findValueByNumber(int number) { - return CgroupMode.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.LinuxNodeConfig.getDescriptor().getEnumTypes().get(0); - } - - private static final CgroupMode[] VALUES = values(); - - public static CgroupMode 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 CgroupMode(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1beta1.LinuxNodeConfig.CgroupMode) - } - - 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, - ""); - } - - @SuppressWarnings("serial") - 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.busy_poll
-   * net.core.busy_read
-   * 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 NullPointerException("map key"); - } - 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.busy_poll
-   * net.core.busy_read
-   * 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.busy_poll
-   * net.core.busy_read
-   * 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 /* nullable */ java.lang.String getSysctlsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - 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.busy_poll
-   * net.core.busy_read
-   * 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 NullPointerException("map key"); - } - java.util.Map map = internalGetSysctls().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int CGROUP_MODE_FIELD_NUMBER = 2; - private int cgroupMode_ = 0; - /** - * - * - *
-   * cgroup_mode specifies the cgroup mode to be used on the node.
-   * 
- * - * .google.container.v1beta1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; - * - * @return The enum numeric value on the wire for cgroupMode. - */ - @java.lang.Override - public int getCgroupModeValue() { - return cgroupMode_; - } - /** - * - * - *
-   * cgroup_mode specifies the cgroup mode to be used on the node.
-   * 
- * - * .google.container.v1beta1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; - * - * @return The cgroupMode. - */ - @java.lang.Override - public com.google.container.v1beta1.LinuxNodeConfig.CgroupMode getCgroupMode() { - com.google.container.v1beta1.LinuxNodeConfig.CgroupMode result = - com.google.container.v1beta1.LinuxNodeConfig.CgroupMode.forNumber(cgroupMode_); - return result == null - ? com.google.container.v1beta1.LinuxNodeConfig.CgroupMode.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 { - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetSysctls(), SysctlsDefaultEntryHolder.defaultEntry, 1); - if (cgroupMode_ - != com.google.container.v1beta1.LinuxNodeConfig.CgroupMode.CGROUP_MODE_UNSPECIFIED - .getNumber()) { - output.writeEnum(2, cgroupMode_); - } - getUnknownFields().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__); - } - if (cgroupMode_ - != com.google.container.v1beta1.LinuxNodeConfig.CgroupMode.CGROUP_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, cgroupMode_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (cgroupMode_ != other.cgroupMode_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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 = (37 * hash) + CGROUP_MODE_FIELD_NUMBER; - hash = (53 * hash) + cgroupMode_; - hash = (29 * hash) + getUnknownFields().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.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetSysctls(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - 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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableSysctls().clear(); - cgroupMode_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.LinuxNodeConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.sysctls_ = internalGetSysctls(); - result.sysctls_.makeImmutable(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.cgroupMode_ = cgroupMode_; - } - } - - @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()); - bitField0_ |= 0x00000001; - if (other.cgroupMode_ != 0) { - setCgroupModeValue(other.getCgroupModeValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.protobuf.MapEntry sysctls__ = - input.readMessage( - SysctlsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableSysctls() - .getMutableMap() - .put(sysctls__.getKey(), sysctls__.getValue()); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - cgroupMode_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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() { - if (sysctls_ == null) { - sysctls_ = com.google.protobuf.MapField.newMapField(SysctlsDefaultEntryHolder.defaultEntry); - } - if (!sysctls_.isMutable()) { - sysctls_ = sysctls_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - 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.busy_poll
-     * net.core.busy_read
-     * 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 NullPointerException("map key"); - } - 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.busy_poll
-     * net.core.busy_read
-     * 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.busy_poll
-     * net.core.busy_read
-     * 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 /* nullable */ java.lang.String getSysctlsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - 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.busy_poll
-     * net.core.busy_read
-     * 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 NullPointerException("map key"); - } - java.util.Map map = internalGetSysctls().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearSysctls() { - bitField0_ = (bitField0_ & ~0x00000001); - 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.busy_poll
-     * net.core.busy_read
-     * 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 NullPointerException("map key"); - } - internalGetMutableSysctls().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableSysctls() { - bitField0_ |= 0x00000001; - 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.busy_poll
-     * net.core.busy_read
-     * 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 NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableSysctls().getMutableMap().put(key, value); - bitField0_ |= 0x00000001; - 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.busy_poll
-     * net.core.busy_read
-     * 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); - bitField0_ |= 0x00000001; - return this; - } - - private int cgroupMode_ = 0; - /** - * - * - *
-     * cgroup_mode specifies the cgroup mode to be used on the node.
-     * 
- * - * .google.container.v1beta1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; - * - * @return The enum numeric value on the wire for cgroupMode. - */ - @java.lang.Override - public int getCgroupModeValue() { - return cgroupMode_; - } - /** - * - * - *
-     * cgroup_mode specifies the cgroup mode to be used on the node.
-     * 
- * - * .google.container.v1beta1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; - * - * @param value The enum numeric value on the wire for cgroupMode to set. - * @return This builder for chaining. - */ - public Builder setCgroupModeValue(int value) { - cgroupMode_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * cgroup_mode specifies the cgroup mode to be used on the node.
-     * 
- * - * .google.container.v1beta1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; - * - * @return The cgroupMode. - */ - @java.lang.Override - public com.google.container.v1beta1.LinuxNodeConfig.CgroupMode getCgroupMode() { - com.google.container.v1beta1.LinuxNodeConfig.CgroupMode result = - com.google.container.v1beta1.LinuxNodeConfig.CgroupMode.forNumber(cgroupMode_); - return result == null - ? com.google.container.v1beta1.LinuxNodeConfig.CgroupMode.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * cgroup_mode specifies the cgroup mode to be used on the node.
-     * 
- * - * .google.container.v1beta1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; - * - * @param value The cgroupMode to set. - * @return This builder for chaining. - */ - public Builder setCgroupMode(com.google.container.v1beta1.LinuxNodeConfig.CgroupMode value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - cgroupMode_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * cgroup_mode specifies the cgroup mode to be used on the node.
-     * 
- * - * .google.container.v1beta1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; - * - * @return This builder for chaining. - */ - public Builder clearCgroupMode() { - bitField0_ = (bitField0_ & ~0x00000002); - cgroupMode_ = 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.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LinuxNodeConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LinuxNodeConfigOrBuilder.java deleted file mode 100644 index 894d303257ce..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LinuxNodeConfigOrBuilder.java +++ /dev/null @@ -1,184 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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.busy_poll
-   * net.core.busy_read
-   * 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.busy_poll
-   * net.core.busy_read
-   * 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.busy_poll
-   * net.core.busy_read
-   * 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.busy_poll
-   * net.core.busy_read
-   * 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; - */ - /* nullable */ - java.lang.String getSysctlsOrDefault( - java.lang.String key, - /* nullable */ - 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.busy_poll
-   * net.core.busy_read
-   * 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); - - /** - * - * - *
-   * cgroup_mode specifies the cgroup mode to be used on the node.
-   * 
- * - * .google.container.v1beta1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; - * - * @return The enum numeric value on the wire for cgroupMode. - */ - int getCgroupModeValue(); - /** - * - * - *
-   * cgroup_mode specifies the cgroup mode to be used on the node.
-   * 
- * - * .google.container.v1beta1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; - * - * @return The cgroupMode. - */ - com.google.container.v1beta1.LinuxNodeConfig.CgroupMode getCgroupMode(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequest.java deleted file mode 100644 index 48d4416f9497..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequest.java +++ /dev/null @@ -1,1087 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3435 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3435 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3442 - * @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]; - * - * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3442 - * @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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parent_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parent_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.ListClustersRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.parent_ = parent_; - } - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 34: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3435 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3435 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3435 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3435 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3435 - * @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; - bitField0_ |= 0x00000001; - 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]; - * - * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3442 - * @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]; - * - * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3442 - * @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]; - * - * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3442 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3442 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - 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]; - * - * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3442 - * @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; - bitField0_ |= 0x00000002; - 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; - bitField0_ |= 0x00000004; - 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(); - bitField0_ = (bitField0_ & ~0x00000004); - 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; - bitField0_ |= 0x00000004; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequestOrBuilder.java deleted file mode 100644 index 0765aa90d929..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequestOrBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3435 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3435 - * @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]; - * - * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3442 - * @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]; - * - * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3442 - * @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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersResponse.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersResponse.java deleted file mode 100644 index cca0bbfbec49..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersResponse.java +++ /dev/null @@ -1,1248 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListClustersResponse(); - } - - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList missingZones_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * 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)); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (clustersBuilder_ == null) { - clusters_ = java.util.Collections.emptyList(); - } else { - clusters_ = null; - clustersBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - missingZones_ = com.google.protobuf.LazyStringArrayList.emptyList(); - 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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.container.v1beta1.ListClustersResponse result) { - if (clustersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - clusters_ = java.util.Collections.unmodifiableList(clusters_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.clusters_ = clusters_; - } else { - result.clusters_ = clustersBuilder_.build(); - } - } - - private void buildPartial0(com.google.container.v1beta1.ListClustersResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - missingZones_.makeImmutable(); - result.missingZones_ = missingZones_; - } - } - - @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_ |= 0x00000002; - } else { - ensureMissingZonesIsMutable(); - missingZones_.addAll(other.missingZones_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.container.v1beta1.Cluster m = - input.readMessage( - com.google.container.v1beta1.Cluster.parser(), extensionRegistry); - if (clustersBuilder_ == null) { - ensureClustersIsMutable(); - clusters_.add(m); - } else { - clustersBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureMissingZonesIsMutable(); - missingZones_.add(s); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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.LazyStringArrayList missingZones_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureMissingZonesIsMutable() { - if (!missingZones_.isModifiable()) { - 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() { - missingZones_.makeImmutable(); - 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); - } - /** - * - * - *
-     * 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); - 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 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); - 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 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_); - 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; - * - * @return This builder for chaining. - */ - public Builder clearMissingZones() { - missingZones_ = com.google.protobuf.LazyStringArrayList.emptyList(); - 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); - bitField0_ |= 0x00000002; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersResponseOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersResponseOrBuilder.java deleted file mode 100644 index c7a0e135125f..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersResponseOrBuilder.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsRequest.java deleted file mode 100644 index 5201aa42cfeb..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsRequest.java +++ /dev/null @@ -1,632 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.ListLocationsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsRequestOrBuilder.java deleted file mode 100644 index 70d9c071f32e..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsRequestOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsResponse.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsResponse.java deleted file mode 100644 index 0c31ced9f9d0..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsResponse.java +++ /dev/null @@ -1,1140 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (locationsBuilder_ == null) { - locations_ = java.util.Collections.emptyList(); - } else { - locations_ = null; - locationsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - 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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.container.v1beta1.ListLocationsResponse result) { - if (locationsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - locations_ = java.util.Collections.unmodifiableList(locations_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.locations_ = locations_; - } else { - result.locations_ = locationsBuilder_.build(); - } - } - - private void buildPartial0(com.google.container.v1beta1.ListLocationsResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @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_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.container.v1beta1.Location m = - input.readMessage( - com.google.container.v1beta1.Location.parser(), extensionRegistry); - if (locationsBuilder_ == null) { - ensureLocationsIsMutable(); - locations_.add(m); - } else { - locationsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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; - bitField0_ |= 0x00000002; - 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(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsResponseOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsResponseOrBuilder.java deleted file mode 100644 index 6f396d7ad5e6..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsResponseOrBuilder.java +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequest.java deleted file mode 100644 index b8e099a00129..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequest.java +++ /dev/null @@ -1,1297 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3704 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3704 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3711 - * @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]; - * - * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3711 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * - * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3715 - * @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]; - * - * - * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3715 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - * - * - *
-   * The parent (project, location, cluster name) 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 name) 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parent_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.ListNodePoolsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.parent_ = parent_; - } - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000008; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 42: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3704 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3704 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3704 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3704 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3704 - * @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; - bitField0_ |= 0x00000001; - 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]; - * - * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3711 - * @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]; - * - * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3711 - * @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]; - * - * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3711 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3711 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - 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]; - * - * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3711 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * - * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3715 - * @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]; - * - * - * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3715 - * @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]; - * - * - * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3715 - * @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; - bitField0_ |= 0x00000004; - 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]; - * - * - * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3715 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - 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]; - * - * - * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3715 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * The parent (project, location, cluster name) 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 name) 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 name) 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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * The parent (project, location, cluster name) 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(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * The parent (project, location, cluster name) 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; - bitField0_ |= 0x00000008; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequestOrBuilder.java deleted file mode 100644 index 14b4bc06fb77..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequestOrBuilder.java +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3704 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3704 - * @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]; - * - * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3711 - * @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]; - * - * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3711 - * @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]; - * - * - * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3715 - * @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]; - * - * - * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3715 - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getClusterIdBytes(); - - /** - * - * - *
-   * The parent (project, location, cluster name) 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 name) 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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsResponse.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsResponse.java deleted file mode 100644 index b92652c44379..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsResponse.java +++ /dev/null @@ -1,935 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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; - - @SuppressWarnings("serial") - 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)); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (nodePoolsBuilder_ == null) { - nodePools_ = java.util.Collections.emptyList(); - } else { - nodePools_ = null; - nodePoolsBuilder_.clear(); - } - 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_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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.container.v1beta1.ListNodePoolsResponse result) { - if (nodePoolsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - nodePools_ = java.util.Collections.unmodifiableList(nodePools_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.nodePools_ = nodePools_; - } else { - result.nodePools_ = nodePoolsBuilder_.build(); - } - } - - private void buildPartial0(com.google.container.v1beta1.ListNodePoolsResponse result) { - int from_bitField0_ = bitField0_; - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.container.v1beta1.NodePool m = - input.readMessage( - com.google.container.v1beta1.NodePool.parser(), extensionRegistry); - if (nodePoolsBuilder_ == null) { - ensureNodePoolsIsMutable(); - nodePools_.add(m); - } else { - nodePoolsBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsResponseOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsResponseOrBuilder.java deleted file mode 100644 index e8a5f988d798..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsResponseOrBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequest.java deleted file mode 100644 index 838f6fb9afb9..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequest.java +++ /dev/null @@ -1,1087 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3490 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3490 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3497 - * @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]; - * - * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3497 - * @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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parent_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parent_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.ListOperationsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.parent_ = parent_; - } - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 34: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3490 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3490 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3490 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3490 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3490 - * @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; - bitField0_ |= 0x00000001; - 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]; - * - * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3497 - * @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]; - * - * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3497 - * @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]; - * - * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3497 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3497 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - 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]; - * - * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3497 - * @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; - bitField0_ |= 0x00000002; - 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; - bitField0_ |= 0x00000004; - 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(); - bitField0_ = (bitField0_ & ~0x00000004); - 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; - bitField0_ |= 0x00000004; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequestOrBuilder.java deleted file mode 100644 index ad5a39e3387f..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequestOrBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3490 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3490 - * @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]; - * - * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3497 - * @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]; - * - * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3497 - * @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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsResponse.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsResponse.java deleted file mode 100644 index 9fdfae8dba0d..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsResponse.java +++ /dev/null @@ -1,1226 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListOperationsResponse(); - } - - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList missingZones_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * 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)); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (operationsBuilder_ == null) { - operations_ = java.util.Collections.emptyList(); - } else { - operations_ = null; - operationsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - missingZones_ = com.google.protobuf.LazyStringArrayList.emptyList(); - 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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.container.v1beta1.ListOperationsResponse result) { - if (operationsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - operations_ = java.util.Collections.unmodifiableList(operations_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.operations_ = operations_; - } else { - result.operations_ = operationsBuilder_.build(); - } - } - - private void buildPartial0(com.google.container.v1beta1.ListOperationsResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - missingZones_.makeImmutable(); - result.missingZones_ = missingZones_; - } - } - - @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_ |= 0x00000002; - } else { - ensureMissingZonesIsMutable(); - missingZones_.addAll(other.missingZones_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.container.v1beta1.Operation m = - input.readMessage( - com.google.container.v1beta1.Operation.parser(), extensionRegistry); - if (operationsBuilder_ == null) { - ensureOperationsIsMutable(); - operations_.add(m); - } else { - operationsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureMissingZonesIsMutable(); - missingZones_.add(s); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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.LazyStringArrayList missingZones_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureMissingZonesIsMutable() { - if (!missingZones_.isModifiable()) { - 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() { - missingZones_.makeImmutable(); - 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); - } - /** - * - * - *
-     * 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); - 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 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); - 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 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_); - 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; - * - * @return This builder for chaining. - */ - public Builder clearMissingZones() { - missingZones_ = com.google.protobuf.LazyStringArrayList.emptyList(); - 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); - bitField0_ |= 0x00000002; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsResponseOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsResponseOrBuilder.java deleted file mode 100644 index d8ec840662b9..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsResponseOrBuilder.java +++ /dev/null @@ -1,133 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksRequest.java deleted file mode 100644 index c89a4597614b..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksRequest.java +++ /dev/null @@ -1,1132 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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_ = 0; - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); - } - if (pageSize_ != 0) { - output.writeInt32(3, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.ListUsableSubnetworksRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.filter_ = filter_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.pageToken_ = pageToken_; - } - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000008; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - 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; - bitField0_ |= 0x00000002; - 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(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - 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; - bitField0_ |= 0x00000004; - 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() { - bitField0_ = (bitField0_ & ~0x00000004); - 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; - bitField0_ |= 0x00000008; - 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(); - bitField0_ = (bitField0_ & ~0x00000008); - 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; - bitField0_ |= 0x00000008; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksRequestOrBuilder.java deleted file mode 100644 index 22d3cd629f64..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksRequestOrBuilder.java +++ /dev/null @@ -1,127 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksResponse.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksResponse.java deleted file mode 100644 index 0df3856c521e..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksResponse.java +++ /dev/null @@ -1,1145 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (subnetworksBuilder_ == null) { - subnetworks_ = java.util.Collections.emptyList(); - } else { - subnetworks_ = null; - subnetworksBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - 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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.container.v1beta1.ListUsableSubnetworksResponse result) { - if (subnetworksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - subnetworks_ = java.util.Collections.unmodifiableList(subnetworks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.subnetworks_ = subnetworks_; - } else { - result.subnetworks_ = subnetworksBuilder_.build(); - } - } - - private void buildPartial0(com.google.container.v1beta1.ListUsableSubnetworksResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @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_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.container.v1beta1.UsableSubnetwork m = - input.readMessage( - com.google.container.v1beta1.UsableSubnetwork.parser(), extensionRegistry); - if (subnetworksBuilder_ == null) { - ensureSubnetworksIsMutable(); - subnetworks_.add(m); - } else { - subnetworksBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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; - bitField0_ |= 0x00000002; - 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(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksResponseOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksResponseOrBuilder.java deleted file mode 100644 index 7b76787cfda8..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksResponseOrBuilder.java +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LocalNvmeSsdBlockConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LocalNvmeSsdBlockConfig.java deleted file mode 100644 index a481f4ff4e86..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LocalNvmeSsdBlockConfig.java +++ /dev/null @@ -1,597 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * LocalNvmeSsdBlockConfig contains configuration for using raw-block local
- * NVMe SSDs
- * 
- * - * Protobuf type {@code google.container.v1beta1.LocalNvmeSsdBlockConfig} - */ -public final class LocalNvmeSsdBlockConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.LocalNvmeSsdBlockConfig) - LocalNvmeSsdBlockConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use LocalNvmeSsdBlockConfig.newBuilder() to construct. - private LocalNvmeSsdBlockConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private LocalNvmeSsdBlockConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new LocalNvmeSsdBlockConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_LocalNvmeSsdBlockConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_LocalNvmeSsdBlockConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.LocalNvmeSsdBlockConfig.class, - com.google.container.v1beta1.LocalNvmeSsdBlockConfig.Builder.class); - } - - public static final int LOCAL_SSD_COUNT_FIELD_NUMBER = 1; - private int localSsdCount_ = 0; - /** - * - * - *
-   * Number of local NVMe SSDs to use.  The limit for this value is dependent
-   * upon the maximum number of disk available on a machine per zone. See:
-   * https://cloud.google.com/compute/docs/disks/local-ssd
-   * for more information.
-   *
-   * A zero (or unset) value has different meanings depending on machine type
-   * being used:
-   * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
-   * zero (or unset) means to disable using local SSDs as ephemeral storage.
-   * 2. For Gen3 machines which dictate a specific number of local ssds, zero
-   * (or unset) means to use the default number of local ssds that goes with
-   * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
-   * ssds would be provisioned. For c3-standard-8 (which doesn't support local
-   * ssds), 0 will be provisioned. See
-   * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
-   * for more info.
-   * 
- * - * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.LocalNvmeSsdBlockConfig)) { - return super.equals(obj); - } - com.google.container.v1beta1.LocalNvmeSsdBlockConfig other = - (com.google.container.v1beta1.LocalNvmeSsdBlockConfig) obj; - - if (getLocalSsdCount() != other.getLocalSsdCount()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.LocalNvmeSsdBlockConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.LocalNvmeSsdBlockConfig parseFrom( - 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.LocalNvmeSsdBlockConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.LocalNvmeSsdBlockConfig parseFrom( - com.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.LocalNvmeSsdBlockConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.LocalNvmeSsdBlockConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.LocalNvmeSsdBlockConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.LocalNvmeSsdBlockConfig parseFrom( - java.io.InputStream 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.LocalNvmeSsdBlockConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.LocalNvmeSsdBlockConfig parseDelimitedFrom( - java.io.InputStream 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.LocalNvmeSsdBlockConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.LocalNvmeSsdBlockConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.LocalNvmeSsdBlockConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * LocalNvmeSsdBlockConfig contains configuration for using raw-block local
-   * NVMe SSDs
-   * 
- * - * Protobuf type {@code google.container.v1beta1.LocalNvmeSsdBlockConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.LocalNvmeSsdBlockConfig) - com.google.container.v1beta1.LocalNvmeSsdBlockConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_LocalNvmeSsdBlockConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_LocalNvmeSsdBlockConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.LocalNvmeSsdBlockConfig.class, - com.google.container.v1beta1.LocalNvmeSsdBlockConfig.Builder.class); - } - - // Construct using com.google.container.v1beta1.LocalNvmeSsdBlockConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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_LocalNvmeSsdBlockConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.LocalNvmeSsdBlockConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.LocalNvmeSsdBlockConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.LocalNvmeSsdBlockConfig build() { - com.google.container.v1beta1.LocalNvmeSsdBlockConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.LocalNvmeSsdBlockConfig buildPartial() { - com.google.container.v1beta1.LocalNvmeSsdBlockConfig result = - new com.google.container.v1beta1.LocalNvmeSsdBlockConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.LocalNvmeSsdBlockConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.localSsdCount_ = localSsdCount_; - } - } - - @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.LocalNvmeSsdBlockConfig) { - return mergeFrom((com.google.container.v1beta1.LocalNvmeSsdBlockConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.LocalNvmeSsdBlockConfig other) { - if (other == com.google.container.v1beta1.LocalNvmeSsdBlockConfig.getDefaultInstance()) - return this; - if (other.getLocalSsdCount() != 0) { - setLocalSsdCount(other.getLocalSsdCount()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - localSsdCount_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int localSsdCount_; - /** - * - * - *
-     * Number of local NVMe SSDs to use.  The limit for this value is dependent
-     * upon the maximum number of disk available on a machine per zone. See:
-     * https://cloud.google.com/compute/docs/disks/local-ssd
-     * for more information.
-     *
-     * A zero (or unset) value has different meanings depending on machine type
-     * being used:
-     * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
-     * zero (or unset) means to disable using local SSDs as ephemeral storage.
-     * 2. For Gen3 machines which dictate a specific number of local ssds, zero
-     * (or unset) means to use the default number of local ssds that goes with
-     * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
-     * ssds would be provisioned. For c3-standard-8 (which doesn't support local
-     * ssds), 0 will be provisioned. See
-     * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
-     * for more info.
-     * 
- * - * int32 local_ssd_count = 1; - * - * @return The localSsdCount. - */ - @java.lang.Override - public int getLocalSsdCount() { - return localSsdCount_; - } - /** - * - * - *
-     * Number of local NVMe SSDs to use.  The limit for this value is dependent
-     * upon the maximum number of disk available on a machine per zone. See:
-     * https://cloud.google.com/compute/docs/disks/local-ssd
-     * for more information.
-     *
-     * A zero (or unset) value has different meanings depending on machine type
-     * being used:
-     * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
-     * zero (or unset) means to disable using local SSDs as ephemeral storage.
-     * 2. For Gen3 machines which dictate a specific number of local ssds, zero
-     * (or unset) means to use the default number of local ssds that goes with
-     * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
-     * ssds would be provisioned. For c3-standard-8 (which doesn't support local
-     * ssds), 0 will be provisioned. See
-     * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
-     * for more info.
-     * 
- * - * int32 local_ssd_count = 1; - * - * @param value The localSsdCount to set. - * @return This builder for chaining. - */ - public Builder setLocalSsdCount(int value) { - - localSsdCount_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Number of local NVMe SSDs to use.  The limit for this value is dependent
-     * upon the maximum number of disk available on a machine per zone. See:
-     * https://cloud.google.com/compute/docs/disks/local-ssd
-     * for more information.
-     *
-     * A zero (or unset) value has different meanings depending on machine type
-     * being used:
-     * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
-     * zero (or unset) means to disable using local SSDs as ephemeral storage.
-     * 2. For Gen3 machines which dictate a specific number of local ssds, zero
-     * (or unset) means to use the default number of local ssds that goes with
-     * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
-     * ssds would be provisioned. For c3-standard-8 (which doesn't support local
-     * ssds), 0 will be provisioned. See
-     * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
-     * for more info.
-     * 
- * - * int32 local_ssd_count = 1; - * - * @return This builder for chaining. - */ - public Builder clearLocalSsdCount() { - bitField0_ = (bitField0_ & ~0x00000001); - 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.LocalNvmeSsdBlockConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.LocalNvmeSsdBlockConfig) - private static final com.google.container.v1beta1.LocalNvmeSsdBlockConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.LocalNvmeSsdBlockConfig(); - } - - public static com.google.container.v1beta1.LocalNvmeSsdBlockConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LocalNvmeSsdBlockConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.LocalNvmeSsdBlockConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LocalNvmeSsdBlockConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LocalNvmeSsdBlockConfigOrBuilder.java deleted file mode 100644 index b0a882a6c78b..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LocalNvmeSsdBlockConfigOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface LocalNvmeSsdBlockConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.LocalNvmeSsdBlockConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Number of local NVMe SSDs to use.  The limit for this value is dependent
-   * upon the maximum number of disk available on a machine per zone. See:
-   * https://cloud.google.com/compute/docs/disks/local-ssd
-   * for more information.
-   *
-   * A zero (or unset) value has different meanings depending on machine type
-   * being used:
-   * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
-   * zero (or unset) means to disable using local SSDs as ephemeral storage.
-   * 2. For Gen3 machines which dictate a specific number of local ssds, zero
-   * (or unset) means to use the default number of local ssds that goes with
-   * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
-   * ssds would be provisioned. For c3-standard-8 (which doesn't support local
-   * ssds), 0 will be provisioned. See
-   * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
-   * for more info.
-   * 
- * - * int32 local_ssd_count = 1; - * - * @return The localSsdCount. - */ - int getLocalSsdCount(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Location.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Location.java deleted file mode 100644 index a70c8f94647f..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Location.java +++ /dev/null @@ -1,1044 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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_ = 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; - * - * @return The type. - */ - @java.lang.Override - public com.google.container.v1beta1.Location.LocationType getType() { - com.google.container.v1beta1.Location.LocationType result = - com.google.container.v1beta1.Location.LocationType.forNumber(type_); - return result == null - ? com.google.container.v1beta1.Location.LocationType.UNRECOGNIZED - : result; - } - - public static final int NAME_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - 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_ = false; - /** - * - * - *
-   * Whether the location is recommended 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); - } - if (recommended_ != false) { - output.writeBool(3, recommended_); - } - getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); - } - if (recommended_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, recommended_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.Location result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.type_ = type_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.recommended_ = recommended_; - } - } - - @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_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getRecommended() != false) { - setRecommended(other.getRecommended()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - type_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - recommended_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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() { - com.google.container.v1beta1.Location.LocationType result = - com.google.container.v1beta1.Location.LocationType.forNumber(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(); - } - bitField0_ |= 0x00000001; - 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() { - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000002; - 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(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private boolean recommended_; - /** - * - * - *
-     * Whether the location is recommended for GKE cluster scheduling.
-     * 
- * - * bool recommended = 3; - * - * @return The recommended. - */ - @java.lang.Override - public boolean getRecommended() { - return recommended_; - } - /** - * - * - *
-     * Whether the location is recommended 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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether the location is recommended for GKE cluster scheduling.
-     * 
- * - * bool recommended = 3; - * - * @return This builder for chaining. - */ - public Builder clearRecommended() { - bitField0_ = (bitField0_ & ~0x00000004); - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LocationOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LocationOrBuilder.java deleted file mode 100644 index fb2cd419bfde..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LocationOrBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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 recommended for GKE cluster scheduling.
-   * 
- * - * bool recommended = 3; - * - * @return The recommended. - */ - boolean getRecommended(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingComponentConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingComponentConfig.java deleted file mode 100644 index 5e074699f04c..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingComponentConfig.java +++ /dev/null @@ -1,1099 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * LoggingComponentConfig is cluster logging component configuration.
- * 
- * - * Protobuf type {@code google.container.v1beta1.LoggingComponentConfig} - */ -public final class LoggingComponentConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.LoggingComponentConfig) - LoggingComponentConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use LoggingComponentConfig.newBuilder() to construct. - private LoggingComponentConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private LoggingComponentConfig() { - enableComponents_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new LoggingComponentConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_LoggingComponentConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_LoggingComponentConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.LoggingComponentConfig.class, - com.google.container.v1beta1.LoggingComponentConfig.Builder.class); - } - - /** - * - * - *
-   * GKE components exposing logs
-   * 
- * - * Protobuf enum {@code google.container.v1beta1.LoggingComponentConfig.Component} - */ - public enum Component implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value. This shouldn't be used.
-     * 
- * - * COMPONENT_UNSPECIFIED = 0; - */ - COMPONENT_UNSPECIFIED(0), - /** - * - * - *
-     * system components
-     * 
- * - * SYSTEM_COMPONENTS = 1; - */ - SYSTEM_COMPONENTS(1), - /** - * - * - *
-     * workloads
-     * 
- * - * WORKLOADS = 2; - */ - WORKLOADS(2), - /** - * - * - *
-     * kube-apiserver
-     * 
- * - * APISERVER = 3; - */ - APISERVER(3), - /** - * - * - *
-     * kube-scheduler
-     * 
- * - * SCHEDULER = 4; - */ - SCHEDULER(4), - /** - * - * - *
-     * kube-controller-manager
-     * 
- * - * CONTROLLER_MANAGER = 5; - */ - CONTROLLER_MANAGER(5), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value. This shouldn't be used.
-     * 
- * - * COMPONENT_UNSPECIFIED = 0; - */ - public static final int COMPONENT_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * system components
-     * 
- * - * SYSTEM_COMPONENTS = 1; - */ - public static final int SYSTEM_COMPONENTS_VALUE = 1; - /** - * - * - *
-     * workloads
-     * 
- * - * WORKLOADS = 2; - */ - public static final int WORKLOADS_VALUE = 2; - /** - * - * - *
-     * kube-apiserver
-     * 
- * - * APISERVER = 3; - */ - public static final int APISERVER_VALUE = 3; - /** - * - * - *
-     * kube-scheduler
-     * 
- * - * SCHEDULER = 4; - */ - public static final int SCHEDULER_VALUE = 4; - /** - * - * - *
-     * kube-controller-manager
-     * 
- * - * CONTROLLER_MANAGER = 5; - */ - public static final int CONTROLLER_MANAGER_VALUE = 5; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Component valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Component forNumber(int value) { - switch (value) { - case 0: - return COMPONENT_UNSPECIFIED; - case 1: - return SYSTEM_COMPONENTS; - case 2: - return WORKLOADS; - case 3: - return APISERVER; - case 4: - return SCHEDULER; - case 5: - return CONTROLLER_MANAGER; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Component findValueByNumber(int number) { - return Component.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1beta1.LoggingComponentConfig.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final Component[] VALUES = values(); - - public static Component valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Component(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1beta1.LoggingComponentConfig.Component) - } - - public static final int ENABLE_COMPONENTS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List enableComponents_; - - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.container.v1beta1.LoggingComponentConfig.Component> - enableComponents_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.container.v1beta1.LoggingComponentConfig.Component>() { - public com.google.container.v1beta1.LoggingComponentConfig.Component convert( - java.lang.Integer from) { - com.google.container.v1beta1.LoggingComponentConfig.Component result = - com.google.container.v1beta1.LoggingComponentConfig.Component.forNumber(from); - return result == null - ? com.google.container.v1beta1.LoggingComponentConfig.Component.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-   * Select components to collect logs. An empty set would disable all logging.
-   * 
- * - * - * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @return A list containing the enableComponents. - */ - @java.lang.Override - public java.util.List - getEnableComponentsList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.container.v1beta1.LoggingComponentConfig.Component>( - enableComponents_, enableComponents_converter_); - } - /** - * - * - *
-   * Select components to collect logs. An empty set would disable all logging.
-   * 
- * - * - * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @return The count of enableComponents. - */ - @java.lang.Override - public int getEnableComponentsCount() { - return enableComponents_.size(); - } - /** - * - * - *
-   * Select components to collect logs. An empty set would disable all logging.
-   * 
- * - * - * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @param index The index of the element to return. - * @return The enableComponents at the given index. - */ - @java.lang.Override - public com.google.container.v1beta1.LoggingComponentConfig.Component getEnableComponents( - int index) { - return enableComponents_converter_.convert(enableComponents_.get(index)); - } - /** - * - * - *
-   * Select components to collect logs. An empty set would disable all logging.
-   * 
- * - * - * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @return A list containing the enum numeric values on the wire for enableComponents. - */ - @java.lang.Override - public java.util.List getEnableComponentsValueList() { - return enableComponents_; - } - /** - * - * - *
-   * Select components to collect logs. An empty set would disable all logging.
-   * 
- * - * - * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of enableComponents at the given index. - */ - @java.lang.Override - public int getEnableComponentsValue(int index) { - return enableComponents_.get(index); - } - - private int enableComponentsMemoizedSerializedSize; - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (getEnableComponentsList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(enableComponentsMemoizedSerializedSize); - } - for (int i = 0; i < enableComponents_.size(); i++) { - output.writeEnumNoTag(enableComponents_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < enableComponents_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(enableComponents_.get(i)); - } - size += dataSize; - if (!getEnableComponentsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - enableComponentsMemoizedSerializedSize = dataSize; - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.LoggingComponentConfig)) { - return super.equals(obj); - } - com.google.container.v1beta1.LoggingComponentConfig other = - (com.google.container.v1beta1.LoggingComponentConfig) obj; - - if (!enableComponents_.equals(other.enableComponents_)) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getEnableComponentsCount() > 0) { - hash = (37 * hash) + ENABLE_COMPONENTS_FIELD_NUMBER; - hash = (53 * hash) + enableComponents_.hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.LoggingComponentConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.LoggingComponentConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.LoggingComponentConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.LoggingComponentConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.LoggingComponentConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.LoggingComponentConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.LoggingComponentConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.LoggingComponentConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.LoggingComponentConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.LoggingComponentConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.LoggingComponentConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.LoggingComponentConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1beta1.LoggingComponentConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * LoggingComponentConfig is cluster logging component configuration.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.LoggingComponentConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.LoggingComponentConfig) - com.google.container.v1beta1.LoggingComponentConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_LoggingComponentConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_LoggingComponentConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.LoggingComponentConfig.class, - com.google.container.v1beta1.LoggingComponentConfig.Builder.class); - } - - // Construct using com.google.container.v1beta1.LoggingComponentConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enableComponents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_LoggingComponentConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.LoggingComponentConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.LoggingComponentConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.LoggingComponentConfig build() { - com.google.container.v1beta1.LoggingComponentConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.LoggingComponentConfig buildPartial() { - com.google.container.v1beta1.LoggingComponentConfig result = - new com.google.container.v1beta1.LoggingComponentConfig(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.container.v1beta1.LoggingComponentConfig result) { - if (((bitField0_ & 0x00000001) != 0)) { - enableComponents_ = java.util.Collections.unmodifiableList(enableComponents_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.enableComponents_ = enableComponents_; - } - - private void buildPartial0(com.google.container.v1beta1.LoggingComponentConfig result) { - int from_bitField0_ = bitField0_; - } - - @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.LoggingComponentConfig) { - return mergeFrom((com.google.container.v1beta1.LoggingComponentConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.LoggingComponentConfig other) { - if (other == com.google.container.v1beta1.LoggingComponentConfig.getDefaultInstance()) - return this; - if (!other.enableComponents_.isEmpty()) { - if (enableComponents_.isEmpty()) { - enableComponents_ = other.enableComponents_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEnableComponentsIsMutable(); - enableComponents_.addAll(other.enableComponents_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - int tmpRaw = input.readEnum(); - ensureEnableComponentsIsMutable(); - enableComponents_.add(tmpRaw); - break; - } // case 8 - case 10: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureEnableComponentsIsMutable(); - enableComponents_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List enableComponents_ = java.util.Collections.emptyList(); - - private void ensureEnableComponentsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - enableComponents_ = new java.util.ArrayList(enableComponents_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Select components to collect logs. An empty set would disable all logging.
-     * 
- * - * - * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @return A list containing the enableComponents. - */ - public java.util.List - getEnableComponentsList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.container.v1beta1.LoggingComponentConfig.Component>( - enableComponents_, enableComponents_converter_); - } - /** - * - * - *
-     * Select components to collect logs. An empty set would disable all logging.
-     * 
- * - * - * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @return The count of enableComponents. - */ - public int getEnableComponentsCount() { - return enableComponents_.size(); - } - /** - * - * - *
-     * Select components to collect logs. An empty set would disable all logging.
-     * 
- * - * - * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @param index The index of the element to return. - * @return The enableComponents at the given index. - */ - public com.google.container.v1beta1.LoggingComponentConfig.Component getEnableComponents( - int index) { - return enableComponents_converter_.convert(enableComponents_.get(index)); - } - /** - * - * - *
-     * Select components to collect logs. An empty set would disable all logging.
-     * 
- * - * - * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @param index The index to set the value at. - * @param value The enableComponents to set. - * @return This builder for chaining. - */ - public Builder setEnableComponents( - int index, com.google.container.v1beta1.LoggingComponentConfig.Component value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnableComponentsIsMutable(); - enableComponents_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Select components to collect logs. An empty set would disable all logging.
-     * 
- * - * - * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @param value The enableComponents to add. - * @return This builder for chaining. - */ - public Builder addEnableComponents( - com.google.container.v1beta1.LoggingComponentConfig.Component value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnableComponentsIsMutable(); - enableComponents_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Select components to collect logs. An empty set would disable all logging.
-     * 
- * - * - * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @param values The enableComponents to add. - * @return This builder for chaining. - */ - public Builder addAllEnableComponents( - java.lang.Iterable - values) { - ensureEnableComponentsIsMutable(); - for (com.google.container.v1beta1.LoggingComponentConfig.Component value : values) { - enableComponents_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-     * Select components to collect logs. An empty set would disable all logging.
-     * 
- * - * - * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @return This builder for chaining. - */ - public Builder clearEnableComponents() { - enableComponents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Select components to collect logs. An empty set would disable all logging.
-     * 
- * - * - * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @return A list containing the enum numeric values on the wire for enableComponents. - */ - public java.util.List getEnableComponentsValueList() { - return java.util.Collections.unmodifiableList(enableComponents_); - } - /** - * - * - *
-     * Select components to collect logs. An empty set would disable all logging.
-     * 
- * - * - * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of enableComponents at the given index. - */ - public int getEnableComponentsValue(int index) { - return enableComponents_.get(index); - } - /** - * - * - *
-     * Select components to collect logs. An empty set would disable all logging.
-     * 
- * - * - * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for enableComponents to set. - * @return This builder for chaining. - */ - public Builder setEnableComponentsValue(int index, int value) { - ensureEnableComponentsIsMutable(); - enableComponents_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Select components to collect logs. An empty set would disable all logging.
-     * 
- * - * - * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @param value The enum numeric value on the wire for enableComponents to add. - * @return This builder for chaining. - */ - public Builder addEnableComponentsValue(int value) { - ensureEnableComponentsIsMutable(); - enableComponents_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Select components to collect logs. An empty set would disable all logging.
-     * 
- * - * - * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @param values The enum numeric values on the wire for enableComponents to add. - * @return This builder for chaining. - */ - public Builder addAllEnableComponentsValue(java.lang.Iterable values) { - ensureEnableComponentsIsMutable(); - for (int value : values) { - enableComponents_.add(value); - } - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.LoggingComponentConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.LoggingComponentConfig) - private static final com.google.container.v1beta1.LoggingComponentConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.LoggingComponentConfig(); - } - - public static com.google.container.v1beta1.LoggingComponentConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LoggingComponentConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.LoggingComponentConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingComponentConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingComponentConfigOrBuilder.java deleted file mode 100644 index eefa01b4554e..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingComponentConfigOrBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface LoggingComponentConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.LoggingComponentConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Select components to collect logs. An empty set would disable all logging.
-   * 
- * - * - * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @return A list containing the enableComponents. - */ - java.util.List - getEnableComponentsList(); - /** - * - * - *
-   * Select components to collect logs. An empty set would disable all logging.
-   * 
- * - * - * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @return The count of enableComponents. - */ - int getEnableComponentsCount(); - /** - * - * - *
-   * Select components to collect logs. An empty set would disable all logging.
-   * 
- * - * - * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @param index The index of the element to return. - * @return The enableComponents at the given index. - */ - com.google.container.v1beta1.LoggingComponentConfig.Component getEnableComponents(int index); - /** - * - * - *
-   * Select components to collect logs. An empty set would disable all logging.
-   * 
- * - * - * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @return A list containing the enum numeric values on the wire for enableComponents. - */ - java.util.List getEnableComponentsValueList(); - /** - * - * - *
-   * Select components to collect logs. An empty set would disable all logging.
-   * 
- * - * - * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of enableComponents at the given index. - */ - int getEnableComponentsValue(int index); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingConfig.java deleted file mode 100644 index 794fe74ca28b..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingConfig.java +++ /dev/null @@ -1,725 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * LoggingConfig is cluster logging configuration.
- * 
- * - * Protobuf type {@code google.container.v1beta1.LoggingConfig} - */ -public final class LoggingConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.LoggingConfig) - LoggingConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use LoggingConfig.newBuilder() to construct. - private LoggingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private LoggingConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new LoggingConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_LoggingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_LoggingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.LoggingConfig.class, - com.google.container.v1beta1.LoggingConfig.Builder.class); - } - - private int bitField0_; - public static final int COMPONENT_CONFIG_FIELD_NUMBER = 1; - private com.google.container.v1beta1.LoggingComponentConfig componentConfig_; - /** - * - * - *
-   * Logging components configuration
-   * 
- * - * .google.container.v1beta1.LoggingComponentConfig component_config = 1; - * - * @return Whether the componentConfig field is set. - */ - @java.lang.Override - public boolean hasComponentConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Logging components configuration
-   * 
- * - * .google.container.v1beta1.LoggingComponentConfig component_config = 1; - * - * @return The componentConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.LoggingComponentConfig getComponentConfig() { - return componentConfig_ == null - ? com.google.container.v1beta1.LoggingComponentConfig.getDefaultInstance() - : componentConfig_; - } - /** - * - * - *
-   * Logging components configuration
-   * 
- * - * .google.container.v1beta1.LoggingComponentConfig component_config = 1; - */ - @java.lang.Override - public com.google.container.v1beta1.LoggingComponentConfigOrBuilder - getComponentConfigOrBuilder() { - return componentConfig_ == null - ? com.google.container.v1beta1.LoggingComponentConfig.getDefaultInstance() - : componentConfig_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getComponentConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getComponentConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.LoggingConfig)) { - return super.equals(obj); - } - com.google.container.v1beta1.LoggingConfig other = - (com.google.container.v1beta1.LoggingConfig) obj; - - if (hasComponentConfig() != other.hasComponentConfig()) return false; - if (hasComponentConfig()) { - if (!getComponentConfig().equals(other.getComponentConfig())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasComponentConfig()) { - hash = (37 * hash) + COMPONENT_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getComponentConfig().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.LoggingConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.LoggingConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.LoggingConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.LoggingConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.LoggingConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.LoggingConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.LoggingConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.LoggingConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.LoggingConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.LoggingConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.LoggingConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.LoggingConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1beta1.LoggingConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * LoggingConfig is cluster logging configuration.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.LoggingConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.LoggingConfig) - com.google.container.v1beta1.LoggingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_LoggingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_LoggingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.LoggingConfig.class, - com.google.container.v1beta1.LoggingConfig.Builder.class); - } - - // Construct using com.google.container.v1beta1.LoggingConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getComponentConfigFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - componentConfig_ = null; - if (componentConfigBuilder_ != null) { - componentConfigBuilder_.dispose(); - componentConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_LoggingConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.LoggingConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.LoggingConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.LoggingConfig build() { - com.google.container.v1beta1.LoggingConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.LoggingConfig buildPartial() { - com.google.container.v1beta1.LoggingConfig result = - new com.google.container.v1beta1.LoggingConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.LoggingConfig result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.componentConfig_ = - componentConfigBuilder_ == null ? componentConfig_ : componentConfigBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @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.LoggingConfig) { - return mergeFrom((com.google.container.v1beta1.LoggingConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.LoggingConfig other) { - if (other == com.google.container.v1beta1.LoggingConfig.getDefaultInstance()) return this; - if (other.hasComponentConfig()) { - mergeComponentConfig(other.getComponentConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getComponentConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.container.v1beta1.LoggingComponentConfig componentConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.LoggingComponentConfig, - com.google.container.v1beta1.LoggingComponentConfig.Builder, - com.google.container.v1beta1.LoggingComponentConfigOrBuilder> - componentConfigBuilder_; - /** - * - * - *
-     * Logging components configuration
-     * 
- * - * .google.container.v1beta1.LoggingComponentConfig component_config = 1; - * - * @return Whether the componentConfig field is set. - */ - public boolean hasComponentConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Logging components configuration
-     * 
- * - * .google.container.v1beta1.LoggingComponentConfig component_config = 1; - * - * @return The componentConfig. - */ - public com.google.container.v1beta1.LoggingComponentConfig getComponentConfig() { - if (componentConfigBuilder_ == null) { - return componentConfig_ == null - ? com.google.container.v1beta1.LoggingComponentConfig.getDefaultInstance() - : componentConfig_; - } else { - return componentConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Logging components configuration
-     * 
- * - * .google.container.v1beta1.LoggingComponentConfig component_config = 1; - */ - public Builder setComponentConfig(com.google.container.v1beta1.LoggingComponentConfig value) { - if (componentConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - componentConfig_ = value; - } else { - componentConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Logging components configuration
-     * 
- * - * .google.container.v1beta1.LoggingComponentConfig component_config = 1; - */ - public Builder setComponentConfig( - com.google.container.v1beta1.LoggingComponentConfig.Builder builderForValue) { - if (componentConfigBuilder_ == null) { - componentConfig_ = builderForValue.build(); - } else { - componentConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Logging components configuration
-     * 
- * - * .google.container.v1beta1.LoggingComponentConfig component_config = 1; - */ - public Builder mergeComponentConfig(com.google.container.v1beta1.LoggingComponentConfig value) { - if (componentConfigBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && componentConfig_ != null - && componentConfig_ - != com.google.container.v1beta1.LoggingComponentConfig.getDefaultInstance()) { - getComponentConfigBuilder().mergeFrom(value); - } else { - componentConfig_ = value; - } - } else { - componentConfigBuilder_.mergeFrom(value); - } - if (componentConfig_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Logging components configuration
-     * 
- * - * .google.container.v1beta1.LoggingComponentConfig component_config = 1; - */ - public Builder clearComponentConfig() { - bitField0_ = (bitField0_ & ~0x00000001); - componentConfig_ = null; - if (componentConfigBuilder_ != null) { - componentConfigBuilder_.dispose(); - componentConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Logging components configuration
-     * 
- * - * .google.container.v1beta1.LoggingComponentConfig component_config = 1; - */ - public com.google.container.v1beta1.LoggingComponentConfig.Builder getComponentConfigBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getComponentConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Logging components configuration
-     * 
- * - * .google.container.v1beta1.LoggingComponentConfig component_config = 1; - */ - public com.google.container.v1beta1.LoggingComponentConfigOrBuilder - getComponentConfigOrBuilder() { - if (componentConfigBuilder_ != null) { - return componentConfigBuilder_.getMessageOrBuilder(); - } else { - return componentConfig_ == null - ? com.google.container.v1beta1.LoggingComponentConfig.getDefaultInstance() - : componentConfig_; - } - } - /** - * - * - *
-     * Logging components configuration
-     * 
- * - * .google.container.v1beta1.LoggingComponentConfig component_config = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.LoggingComponentConfig, - com.google.container.v1beta1.LoggingComponentConfig.Builder, - com.google.container.v1beta1.LoggingComponentConfigOrBuilder> - getComponentConfigFieldBuilder() { - if (componentConfigBuilder_ == null) { - componentConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.LoggingComponentConfig, - com.google.container.v1beta1.LoggingComponentConfig.Builder, - com.google.container.v1beta1.LoggingComponentConfigOrBuilder>( - getComponentConfig(), getParentForChildren(), isClean()); - componentConfig_ = null; - } - return componentConfigBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.LoggingConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.LoggingConfig) - private static final com.google.container.v1beta1.LoggingConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.LoggingConfig(); - } - - public static com.google.container.v1beta1.LoggingConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LoggingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.LoggingConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingConfigOrBuilder.java deleted file mode 100644 index 7ab53470efbd..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingConfigOrBuilder.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface LoggingConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.LoggingConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Logging components configuration
-   * 
- * - * .google.container.v1beta1.LoggingComponentConfig component_config = 1; - * - * @return Whether the componentConfig field is set. - */ - boolean hasComponentConfig(); - /** - * - * - *
-   * Logging components configuration
-   * 
- * - * .google.container.v1beta1.LoggingComponentConfig component_config = 1; - * - * @return The componentConfig. - */ - com.google.container.v1beta1.LoggingComponentConfig getComponentConfig(); - /** - * - * - *
-   * Logging components configuration
-   * 
- * - * .google.container.v1beta1.LoggingComponentConfig component_config = 1; - */ - com.google.container.v1beta1.LoggingComponentConfigOrBuilder getComponentConfigOrBuilder(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingVariantConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingVariantConfig.java deleted file mode 100644 index 58fe25223ea6..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingVariantConfig.java +++ /dev/null @@ -1,758 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * LoggingVariantConfig specifies the behaviour of the logging component.
- * 
- * - * Protobuf type {@code google.container.v1beta1.LoggingVariantConfig} - */ -public final class LoggingVariantConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.LoggingVariantConfig) - LoggingVariantConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use LoggingVariantConfig.newBuilder() to construct. - private LoggingVariantConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private LoggingVariantConfig() { - variant_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new LoggingVariantConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_LoggingVariantConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_LoggingVariantConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.LoggingVariantConfig.class, - com.google.container.v1beta1.LoggingVariantConfig.Builder.class); - } - - /** - * - * - *
-   * Logging component variants.
-   * 
- * - * Protobuf enum {@code google.container.v1beta1.LoggingVariantConfig.Variant} - */ - public enum Variant implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value. This shouldn't be used.
-     * 
- * - * VARIANT_UNSPECIFIED = 0; - */ - VARIANT_UNSPECIFIED(0), - /** - * - * - *
-     * default logging variant.
-     * 
- * - * DEFAULT = 1; - */ - DEFAULT(1), - /** - * - * - *
-     * maximum logging throughput variant.
-     * 
- * - * MAX_THROUGHPUT = 2; - */ - MAX_THROUGHPUT(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value. This shouldn't be used.
-     * 
- * - * VARIANT_UNSPECIFIED = 0; - */ - public static final int VARIANT_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * default logging variant.
-     * 
- * - * DEFAULT = 1; - */ - public static final int DEFAULT_VALUE = 1; - /** - * - * - *
-     * maximum logging throughput variant.
-     * 
- * - * MAX_THROUGHPUT = 2; - */ - public static final int MAX_THROUGHPUT_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 Variant 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 Variant forNumber(int value) { - switch (value) { - case 0: - return VARIANT_UNSPECIFIED; - case 1: - return DEFAULT; - case 2: - return MAX_THROUGHPUT; - 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 Variant findValueByNumber(int number) { - return Variant.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.LoggingVariantConfig.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final Variant[] VALUES = values(); - - public static Variant 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 Variant(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1beta1.LoggingVariantConfig.Variant) - } - - public static final int VARIANT_FIELD_NUMBER = 1; - private int variant_ = 0; - /** - * - * - *
-   * Logging variant deployed on nodes.
-   * 
- * - * .google.container.v1beta1.LoggingVariantConfig.Variant variant = 1; - * - * @return The enum numeric value on the wire for variant. - */ - @java.lang.Override - public int getVariantValue() { - return variant_; - } - /** - * - * - *
-   * Logging variant deployed on nodes.
-   * 
- * - * .google.container.v1beta1.LoggingVariantConfig.Variant variant = 1; - * - * @return The variant. - */ - @java.lang.Override - public com.google.container.v1beta1.LoggingVariantConfig.Variant getVariant() { - com.google.container.v1beta1.LoggingVariantConfig.Variant result = - com.google.container.v1beta1.LoggingVariantConfig.Variant.forNumber(variant_); - return result == null - ? com.google.container.v1beta1.LoggingVariantConfig.Variant.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 (variant_ - != com.google.container.v1beta1.LoggingVariantConfig.Variant.VARIANT_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, variant_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (variant_ - != com.google.container.v1beta1.LoggingVariantConfig.Variant.VARIANT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, variant_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.LoggingVariantConfig)) { - return super.equals(obj); - } - com.google.container.v1beta1.LoggingVariantConfig other = - (com.google.container.v1beta1.LoggingVariantConfig) obj; - - if (variant_ != other.variant_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + VARIANT_FIELD_NUMBER; - hash = (53 * hash) + variant_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.LoggingVariantConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.LoggingVariantConfig parseFrom( - 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.LoggingVariantConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.LoggingVariantConfig parseFrom( - com.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.LoggingVariantConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.LoggingVariantConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.LoggingVariantConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.LoggingVariantConfig parseFrom( - java.io.InputStream 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.LoggingVariantConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.LoggingVariantConfig parseDelimitedFrom( - java.io.InputStream 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.LoggingVariantConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.LoggingVariantConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.LoggingVariantConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * LoggingVariantConfig specifies the behaviour of the logging component.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.LoggingVariantConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.LoggingVariantConfig) - com.google.container.v1beta1.LoggingVariantConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_LoggingVariantConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_LoggingVariantConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.LoggingVariantConfig.class, - com.google.container.v1beta1.LoggingVariantConfig.Builder.class); - } - - // Construct using com.google.container.v1beta1.LoggingVariantConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - variant_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_LoggingVariantConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.LoggingVariantConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.LoggingVariantConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.LoggingVariantConfig build() { - com.google.container.v1beta1.LoggingVariantConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.LoggingVariantConfig buildPartial() { - com.google.container.v1beta1.LoggingVariantConfig result = - new com.google.container.v1beta1.LoggingVariantConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.LoggingVariantConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.variant_ = variant_; - } - } - - @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.LoggingVariantConfig) { - return mergeFrom((com.google.container.v1beta1.LoggingVariantConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.LoggingVariantConfig other) { - if (other == com.google.container.v1beta1.LoggingVariantConfig.getDefaultInstance()) - return this; - if (other.variant_ != 0) { - setVariantValue(other.getVariantValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - variant_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int variant_ = 0; - /** - * - * - *
-     * Logging variant deployed on nodes.
-     * 
- * - * .google.container.v1beta1.LoggingVariantConfig.Variant variant = 1; - * - * @return The enum numeric value on the wire for variant. - */ - @java.lang.Override - public int getVariantValue() { - return variant_; - } - /** - * - * - *
-     * Logging variant deployed on nodes.
-     * 
- * - * .google.container.v1beta1.LoggingVariantConfig.Variant variant = 1; - * - * @param value The enum numeric value on the wire for variant to set. - * @return This builder for chaining. - */ - public Builder setVariantValue(int value) { - variant_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Logging variant deployed on nodes.
-     * 
- * - * .google.container.v1beta1.LoggingVariantConfig.Variant variant = 1; - * - * @return The variant. - */ - @java.lang.Override - public com.google.container.v1beta1.LoggingVariantConfig.Variant getVariant() { - com.google.container.v1beta1.LoggingVariantConfig.Variant result = - com.google.container.v1beta1.LoggingVariantConfig.Variant.forNumber(variant_); - return result == null - ? com.google.container.v1beta1.LoggingVariantConfig.Variant.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Logging variant deployed on nodes.
-     * 
- * - * .google.container.v1beta1.LoggingVariantConfig.Variant variant = 1; - * - * @param value The variant to set. - * @return This builder for chaining. - */ - public Builder setVariant(com.google.container.v1beta1.LoggingVariantConfig.Variant value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - variant_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Logging variant deployed on nodes.
-     * 
- * - * .google.container.v1beta1.LoggingVariantConfig.Variant variant = 1; - * - * @return This builder for chaining. - */ - public Builder clearVariant() { - bitField0_ = (bitField0_ & ~0x00000001); - variant_ = 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.LoggingVariantConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.LoggingVariantConfig) - private static final com.google.container.v1beta1.LoggingVariantConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.LoggingVariantConfig(); - } - - public static com.google.container.v1beta1.LoggingVariantConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LoggingVariantConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.LoggingVariantConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingVariantConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingVariantConfigOrBuilder.java deleted file mode 100644 index 4016f7835878..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingVariantConfigOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface LoggingVariantConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.LoggingVariantConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Logging variant deployed on nodes.
-   * 
- * - * .google.container.v1beta1.LoggingVariantConfig.Variant variant = 1; - * - * @return The enum numeric value on the wire for variant. - */ - int getVariantValue(); - /** - * - * - *
-   * Logging variant deployed on nodes.
-   * 
- * - * .google.container.v1beta1.LoggingVariantConfig.Variant variant = 1; - * - * @return The variant. - */ - com.google.container.v1beta1.LoggingVariantConfig.Variant getVariant(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceExclusionOptions.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceExclusionOptions.java deleted file mode 100644 index 424f5197cbb1..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceExclusionOptions.java +++ /dev/null @@ -1,774 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * Represents the Maintenance exclusion option.
- * 
- * - * Protobuf type {@code google.container.v1beta1.MaintenanceExclusionOptions} - */ -public final class MaintenanceExclusionOptions extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.MaintenanceExclusionOptions) - MaintenanceExclusionOptionsOrBuilder { - private static final long serialVersionUID = 0L; - // Use MaintenanceExclusionOptions.newBuilder() to construct. - private MaintenanceExclusionOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private MaintenanceExclusionOptions() { - scope_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new MaintenanceExclusionOptions(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_MaintenanceExclusionOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_MaintenanceExclusionOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.MaintenanceExclusionOptions.class, - com.google.container.v1beta1.MaintenanceExclusionOptions.Builder.class); - } - - /** - * - * - *
-   * Scope of exclusion.
-   * 
- * - * Protobuf enum {@code google.container.v1beta1.MaintenanceExclusionOptions.Scope} - */ - public enum Scope implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * NO_UPGRADES excludes all upgrades, including patch upgrades and minor
-     * upgrades across control planes and nodes. This is the default exclusion
-     * behavior.
-     * 
- * - * NO_UPGRADES = 0; - */ - NO_UPGRADES(0), - /** - * - * - *
-     * NO_MINOR_UPGRADES excludes all minor upgrades for the cluster, only
-     * patches are allowed.
-     * 
- * - * NO_MINOR_UPGRADES = 1; - */ - NO_MINOR_UPGRADES(1), - /** - * - * - *
-     * NO_MINOR_OR_NODE_UPGRADES excludes all minor upgrades for the cluster,
-     * and also exclude all node pool upgrades. Only control
-     * plane patches are allowed.
-     * 
- * - * NO_MINOR_OR_NODE_UPGRADES = 2; - */ - NO_MINOR_OR_NODE_UPGRADES(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * NO_UPGRADES excludes all upgrades, including patch upgrades and minor
-     * upgrades across control planes and nodes. This is the default exclusion
-     * behavior.
-     * 
- * - * NO_UPGRADES = 0; - */ - public static final int NO_UPGRADES_VALUE = 0; - /** - * - * - *
-     * NO_MINOR_UPGRADES excludes all minor upgrades for the cluster, only
-     * patches are allowed.
-     * 
- * - * NO_MINOR_UPGRADES = 1; - */ - public static final int NO_MINOR_UPGRADES_VALUE = 1; - /** - * - * - *
-     * NO_MINOR_OR_NODE_UPGRADES excludes all minor upgrades for the cluster,
-     * and also exclude all node pool upgrades. Only control
-     * plane patches are allowed.
-     * 
- * - * NO_MINOR_OR_NODE_UPGRADES = 2; - */ - public static final int NO_MINOR_OR_NODE_UPGRADES_VALUE = 2; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Scope valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Scope forNumber(int value) { - switch (value) { - case 0: - return NO_UPGRADES; - case 1: - return NO_MINOR_UPGRADES; - case 2: - return NO_MINOR_OR_NODE_UPGRADES; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Scope findValueByNumber(int number) { - return Scope.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1beta1.MaintenanceExclusionOptions.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final Scope[] VALUES = values(); - - public static Scope valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Scope(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1beta1.MaintenanceExclusionOptions.Scope) - } - - public static final int SCOPE_FIELD_NUMBER = 1; - private int scope_ = 0; - /** - * - * - *
-   * Scope specifies the upgrade scope which upgrades are blocked by the
-   * exclusion.
-   * 
- * - * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; - * - * @return The enum numeric value on the wire for scope. - */ - @java.lang.Override - public int getScopeValue() { - return scope_; - } - /** - * - * - *
-   * Scope specifies the upgrade scope which upgrades are blocked by the
-   * exclusion.
-   * 
- * - * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; - * - * @return The scope. - */ - @java.lang.Override - public com.google.container.v1beta1.MaintenanceExclusionOptions.Scope getScope() { - com.google.container.v1beta1.MaintenanceExclusionOptions.Scope result = - com.google.container.v1beta1.MaintenanceExclusionOptions.Scope.forNumber(scope_); - return result == null - ? com.google.container.v1beta1.MaintenanceExclusionOptions.Scope.UNRECOGNIZED - : result; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (scope_ - != com.google.container.v1beta1.MaintenanceExclusionOptions.Scope.NO_UPGRADES.getNumber()) { - output.writeEnum(1, scope_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (scope_ - != com.google.container.v1beta1.MaintenanceExclusionOptions.Scope.NO_UPGRADES.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, scope_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1beta1.MaintenanceExclusionOptions)) { - return super.equals(obj); - } - com.google.container.v1beta1.MaintenanceExclusionOptions other = - (com.google.container.v1beta1.MaintenanceExclusionOptions) obj; - - if (scope_ != other.scope_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SCOPE_FIELD_NUMBER; - hash = (53 * hash) + scope_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.MaintenanceExclusionOptions parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.MaintenanceExclusionOptions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.MaintenanceExclusionOptions parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.MaintenanceExclusionOptions parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.MaintenanceExclusionOptions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.MaintenanceExclusionOptions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.MaintenanceExclusionOptions parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.MaintenanceExclusionOptions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.MaintenanceExclusionOptions parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.MaintenanceExclusionOptions parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.MaintenanceExclusionOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.MaintenanceExclusionOptions parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.container.v1beta1.MaintenanceExclusionOptions prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Represents the Maintenance exclusion option.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.MaintenanceExclusionOptions} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.MaintenanceExclusionOptions) - com.google.container.v1beta1.MaintenanceExclusionOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_MaintenanceExclusionOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_MaintenanceExclusionOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.MaintenanceExclusionOptions.class, - com.google.container.v1beta1.MaintenanceExclusionOptions.Builder.class); - } - - // Construct using com.google.container.v1beta1.MaintenanceExclusionOptions.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - scope_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_MaintenanceExclusionOptions_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.MaintenanceExclusionOptions getDefaultInstanceForType() { - return com.google.container.v1beta1.MaintenanceExclusionOptions.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.MaintenanceExclusionOptions build() { - com.google.container.v1beta1.MaintenanceExclusionOptions result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.MaintenanceExclusionOptions buildPartial() { - com.google.container.v1beta1.MaintenanceExclusionOptions result = - new com.google.container.v1beta1.MaintenanceExclusionOptions(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.MaintenanceExclusionOptions result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.scope_ = scope_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.MaintenanceExclusionOptions) { - return mergeFrom((com.google.container.v1beta1.MaintenanceExclusionOptions) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.MaintenanceExclusionOptions other) { - if (other == com.google.container.v1beta1.MaintenanceExclusionOptions.getDefaultInstance()) - return this; - if (other.scope_ != 0) { - setScopeValue(other.getScopeValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - scope_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int scope_ = 0; - /** - * - * - *
-     * Scope specifies the upgrade scope which upgrades are blocked by the
-     * exclusion.
-     * 
- * - * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; - * - * @return The enum numeric value on the wire for scope. - */ - @java.lang.Override - public int getScopeValue() { - return scope_; - } - /** - * - * - *
-     * Scope specifies the upgrade scope which upgrades are blocked by the
-     * exclusion.
-     * 
- * - * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; - * - * @param value The enum numeric value on the wire for scope to set. - * @return This builder for chaining. - */ - public Builder setScopeValue(int value) { - scope_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Scope specifies the upgrade scope which upgrades are blocked by the
-     * exclusion.
-     * 
- * - * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; - * - * @return The scope. - */ - @java.lang.Override - public com.google.container.v1beta1.MaintenanceExclusionOptions.Scope getScope() { - com.google.container.v1beta1.MaintenanceExclusionOptions.Scope result = - com.google.container.v1beta1.MaintenanceExclusionOptions.Scope.forNumber(scope_); - return result == null - ? com.google.container.v1beta1.MaintenanceExclusionOptions.Scope.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Scope specifies the upgrade scope which upgrades are blocked by the
-     * exclusion.
-     * 
- * - * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; - * - * @param value The scope to set. - * @return This builder for chaining. - */ - public Builder setScope(com.google.container.v1beta1.MaintenanceExclusionOptions.Scope value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - scope_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Scope specifies the upgrade scope which upgrades are blocked by the
-     * exclusion.
-     * 
- * - * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; - * - * @return This builder for chaining. - */ - public Builder clearScope() { - bitField0_ = (bitField0_ & ~0x00000001); - scope_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.MaintenanceExclusionOptions) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.MaintenanceExclusionOptions) - private static final com.google.container.v1beta1.MaintenanceExclusionOptions DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.MaintenanceExclusionOptions(); - } - - public static com.google.container.v1beta1.MaintenanceExclusionOptions getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MaintenanceExclusionOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1beta1.MaintenanceExclusionOptions getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceExclusionOptionsOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceExclusionOptionsOrBuilder.java deleted file mode 100644 index b905848169ea..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceExclusionOptionsOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface MaintenanceExclusionOptionsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.MaintenanceExclusionOptions) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Scope specifies the upgrade scope which upgrades are blocked by the
-   * exclusion.
-   * 
- * - * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; - * - * @return The enum numeric value on the wire for scope. - */ - int getScopeValue(); - /** - * - * - *
-   * Scope specifies the upgrade scope which upgrades are blocked by the
-   * exclusion.
-   * 
- * - * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; - * - * @return The scope. - */ - com.google.container.v1beta1.MaintenanceExclusionOptions.Scope getScope(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenancePolicy.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenancePolicy.java deleted file mode 100644 index 4729a7b431aa..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenancePolicy.java +++ /dev/null @@ -1,932 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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); - } - - private int bitField0_; - 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 ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * 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 window_ == null - ? com.google.container.v1beta1.MaintenanceWindow.getDefaultInstance() - : window_; - } - - public static final int RESOURCE_VERSION_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - 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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getWindow()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, resourceVersion_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWindow()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resourceVersion_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { - getWindowFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - window_ = null; - if (windowBuilder_ != null) { - windowBuilder_.dispose(); - 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 (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.MaintenancePolicy result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.window_ = windowBuilder_ == null ? window_ : windowBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.resourceVersion_ = resourceVersion_; - } - result.bitField0_ |= to_bitField0_; - } - - @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_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getWindowFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: - { - resourceVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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 ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * 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; - } else { - windowBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - 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(); - } else { - windowBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - 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 (((bitField0_ & 0x00000001) != 0) - && window_ != null - && window_ != com.google.container.v1beta1.MaintenanceWindow.getDefaultInstance()) { - getWindowBuilder().mergeFrom(value); - } else { - window_ = value; - } - } else { - windowBuilder_.mergeFrom(value); - } - if (window_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Specifies the maintenance window in which maintenance may be performed.
-     * 
- * - * .google.container.v1beta1.MaintenanceWindow window = 1; - */ - public Builder clearWindow() { - bitField0_ = (bitField0_ & ~0x00000001); - window_ = null; - if (windowBuilder_ != null) { - windowBuilder_.dispose(); - windowBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000001; - 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; - bitField0_ |= 0x00000002; - 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(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenancePolicyOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenancePolicyOrBuilder.java deleted file mode 100644 index dbb4019670d0..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenancePolicyOrBuilder.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceWindow.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceWindow.java deleted file mode 100644 index 4748971067f9..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceWindow.java +++ /dev/null @@ -1,1596 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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.MapFieldReflectionAccessor internalGetMapFieldReflection( - 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; - - @SuppressWarnings("serial") - 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()); - } - - @SuppressWarnings("serial") - 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 NullPointerException("map key"); - } - 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 /* nullable */ com.google.container.v1beta1.TimeWindow getMaintenanceExclusionsOrDefault( - java.lang.String key, - /* nullable */ - com.google.container.v1beta1.TimeWindow defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - 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 NullPointerException("map key"); - } - 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); - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 4: - return internalGetMaintenanceExclusions(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - 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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (dailyMaintenanceWindowBuilder_ != null) { - dailyMaintenanceWindowBuilder_.clear(); - } - if (recurringWindowBuilder_ != null) { - recurringWindowBuilder_.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); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.MaintenanceWindow result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.maintenanceExclusions_ = - internalGetMaintenanceExclusions() - .build(MaintenanceExclusionsDefaultEntryHolder.defaultEntry); - } - } - - private void buildPartialOneofs(com.google.container.v1beta1.MaintenanceWindow result) { - result.policyCase_ = policyCase_; - result.policy_ = this.policy_; - if (policyCase_ == 2 && dailyMaintenanceWindowBuilder_ != null) { - result.policy_ = dailyMaintenanceWindowBuilder_.build(); - } - if (policyCase_ == 3 && recurringWindowBuilder_ != null) { - result.policy_ = recurringWindowBuilder_.build(); - } - } - - @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()); - bitField0_ |= 0x00000004; - 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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: - { - input.readMessage( - getDailyMaintenanceWindowFieldBuilder().getBuilder(), extensionRegistry); - policyCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getRecurringWindowFieldBuilder().getBuilder(), extensionRegistry); - policyCase_ = 3; - break; - } // case 26 - case 34: - { - com.google.protobuf.MapEntry< - java.lang.String, com.google.container.v1beta1.TimeWindow> - maintenanceExclusions__ = - input.readMessage( - MaintenanceExclusionsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableMaintenanceExclusions() - .ensureBuilderMap() - .put(maintenanceExclusions__.getKey(), maintenanceExclusions__.getValue()); - bitField0_ |= 0x00000004; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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); - } 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 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); - } 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 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 static final class MaintenanceExclusionsConverter - implements com.google.protobuf.MapFieldBuilder.Converter< - java.lang.String, - com.google.container.v1beta1.TimeWindowOrBuilder, - com.google.container.v1beta1.TimeWindow> { - @java.lang.Override - public com.google.container.v1beta1.TimeWindow build( - com.google.container.v1beta1.TimeWindowOrBuilder val) { - if (val instanceof com.google.container.v1beta1.TimeWindow) { - return (com.google.container.v1beta1.TimeWindow) val; - } - return ((com.google.container.v1beta1.TimeWindow.Builder) val).build(); - } - - @java.lang.Override - public com.google.protobuf.MapEntry - defaultEntry() { - return MaintenanceExclusionsDefaultEntryHolder.defaultEntry; - } - }; - - private static final MaintenanceExclusionsConverter maintenanceExclusionsConverter = - new MaintenanceExclusionsConverter(); - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.container.v1beta1.TimeWindowOrBuilder, - com.google.container.v1beta1.TimeWindow, - com.google.container.v1beta1.TimeWindow.Builder> - maintenanceExclusions_; - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.container.v1beta1.TimeWindowOrBuilder, - com.google.container.v1beta1.TimeWindow, - com.google.container.v1beta1.TimeWindow.Builder> - internalGetMaintenanceExclusions() { - if (maintenanceExclusions_ == null) { - return new com.google.protobuf.MapFieldBuilder<>(maintenanceExclusionsConverter); - } - return maintenanceExclusions_; - } - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.container.v1beta1.TimeWindowOrBuilder, - com.google.container.v1beta1.TimeWindow, - com.google.container.v1beta1.TimeWindow.Builder> - internalGetMutableMaintenanceExclusions() { - if (maintenanceExclusions_ == null) { - maintenanceExclusions_ = - new com.google.protobuf.MapFieldBuilder<>(maintenanceExclusionsConverter); - } - bitField0_ |= 0x00000004; - onChanged(); - return maintenanceExclusions_; - } - - public int getMaintenanceExclusionsCount() { - return internalGetMaintenanceExclusions().ensureBuilderMap().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 NullPointerException("map key"); - } - return internalGetMaintenanceExclusions().ensureBuilderMap().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().getImmutableMap(); - } - /** - * - * - *
-     * 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 /* nullable */ com.google.container.v1beta1.TimeWindow getMaintenanceExclusionsOrDefault( - java.lang.String key, - /* nullable */ - com.google.container.v1beta1.TimeWindow defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetMutableMaintenanceExclusions().ensureBuilderMap(); - return map.containsKey(key) - ? maintenanceExclusionsConverter.build(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 NullPointerException("map key"); - } - java.util.Map map = - internalGetMutableMaintenanceExclusions().ensureBuilderMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return maintenanceExclusionsConverter.build(map.get(key)); - } - - public Builder clearMaintenanceExclusions() { - bitField0_ = (bitField0_ & ~0x00000004); - internalGetMutableMaintenanceExclusions().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 NullPointerException("map key"); - } - internalGetMutableMaintenanceExclusions().ensureBuilderMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map - getMutableMaintenanceExclusions() { - bitField0_ |= 0x00000004; - return internalGetMutableMaintenanceExclusions().ensureMessageMap(); - } - /** - * - * - *
-     * 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 NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableMaintenanceExclusions().ensureBuilderMap().put(key, value); - bitField0_ |= 0x00000004; - 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) { - for (java.util.Map.Entry e : - values.entrySet()) { - if (e.getKey() == null || e.getValue() == null) { - throw new NullPointerException(); - } - } - internalGetMutableMaintenanceExclusions().ensureBuilderMap().putAll(values); - bitField0_ |= 0x00000004; - 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 com.google.container.v1beta1.TimeWindow.Builder putMaintenanceExclusionsBuilderIfAbsent( - java.lang.String key) { - java.util.Map builderMap = - internalGetMutableMaintenanceExclusions().ensureBuilderMap(); - com.google.container.v1beta1.TimeWindowOrBuilder entry = builderMap.get(key); - if (entry == null) { - entry = com.google.container.v1beta1.TimeWindow.newBuilder(); - builderMap.put(key, entry); - } - if (entry instanceof com.google.container.v1beta1.TimeWindow) { - entry = ((com.google.container.v1beta1.TimeWindow) entry).toBuilder(); - builderMap.put(key, entry); - } - return (com.google.container.v1beta1.TimeWindow.Builder) entry; - } - - @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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceWindowOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceWindowOrBuilder.java deleted file mode 100644 index ca76a188a901..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceWindowOrBuilder.java +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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; - * - */ - /* nullable */ - com.google.container.v1beta1.TimeWindow getMaintenanceExclusionsOrDefault( - java.lang.String key, - /* nullable */ - 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); - - com.google.container.v1beta1.MaintenanceWindow.PolicyCase getPolicyCase(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ManagedPrometheusConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ManagedPrometheusConfig.java deleted file mode 100644 index 9a1cd3bf5d72..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ManagedPrometheusConfig.java +++ /dev/null @@ -1,537 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * ManagedPrometheusConfig defines the configuration for
- * Google Cloud Managed Service for Prometheus.
- * 
- * - * Protobuf type {@code google.container.v1beta1.ManagedPrometheusConfig} - */ -public final class ManagedPrometheusConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.ManagedPrometheusConfig) - ManagedPrometheusConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use ManagedPrometheusConfig.newBuilder() to construct. - private ManagedPrometheusConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ManagedPrometheusConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ManagedPrometheusConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_ManagedPrometheusConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_ManagedPrometheusConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.ManagedPrometheusConfig.class, - com.google.container.v1beta1.ManagedPrometheusConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * Enable Managed Collection.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1beta1.ManagedPrometheusConfig)) { - return super.equals(obj); - } - com.google.container.v1beta1.ManagedPrometheusConfig other = - (com.google.container.v1beta1.ManagedPrometheusConfig) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.ManagedPrometheusConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.ManagedPrometheusConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.ManagedPrometheusConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.ManagedPrometheusConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.ManagedPrometheusConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.ManagedPrometheusConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.ManagedPrometheusConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.ManagedPrometheusConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.ManagedPrometheusConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.ManagedPrometheusConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.ManagedPrometheusConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.ManagedPrometheusConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1beta1.ManagedPrometheusConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * ManagedPrometheusConfig defines the configuration for
-   * Google Cloud Managed Service for Prometheus.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.ManagedPrometheusConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ManagedPrometheusConfig) - com.google.container.v1beta1.ManagedPrometheusConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_ManagedPrometheusConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_ManagedPrometheusConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.ManagedPrometheusConfig.class, - com.google.container.v1beta1.ManagedPrometheusConfig.Builder.class); - } - - // Construct using com.google.container.v1beta1.ManagedPrometheusConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 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_ManagedPrometheusConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.ManagedPrometheusConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.ManagedPrometheusConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.ManagedPrometheusConfig build() { - com.google.container.v1beta1.ManagedPrometheusConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.ManagedPrometheusConfig buildPartial() { - com.google.container.v1beta1.ManagedPrometheusConfig result = - new com.google.container.v1beta1.ManagedPrometheusConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.ManagedPrometheusConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.ManagedPrometheusConfig) { - return mergeFrom((com.google.container.v1beta1.ManagedPrometheusConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.ManagedPrometheusConfig other) { - if (other == com.google.container.v1beta1.ManagedPrometheusConfig.getDefaultInstance()) - return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean enabled_; - /** - * - * - *
-     * Enable Managed Collection.
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Enable Managed Collection.
-     * 
- * - * bool enabled = 1; - * - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable Managed Collection.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - enabled_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ManagedPrometheusConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.ManagedPrometheusConfig) - private static final com.google.container.v1beta1.ManagedPrometheusConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.ManagedPrometheusConfig(); - } - - public static com.google.container.v1beta1.ManagedPrometheusConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ManagedPrometheusConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1beta1.ManagedPrometheusConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ManagedPrometheusConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ManagedPrometheusConfigOrBuilder.java deleted file mode 100644 index 32ff3e21e8da..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ManagedPrometheusConfigOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface ManagedPrometheusConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ManagedPrometheusConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Enable Managed Collection.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Master.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Master.java deleted file mode 100644 index fd791d4bd584..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Master.java +++ /dev/null @@ -1,428 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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 { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuth.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuth.java deleted file mode 100644 index 9d4949f1f986..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuth.java +++ /dev/null @@ -1,1789 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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); - } - - private int bitField0_; - public static final int USERNAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1beta1.MasterAuth.username is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1280 - * @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]; - * - * @deprecated google.container.v1beta1.MasterAuth.username is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1280 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1beta1.MasterAuth.password is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1291 - * @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]; - * - * @deprecated google.container.v1beta1.MasterAuth.password is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1291 - * @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 ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * 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 clientCertificateConfig_ == null - ? com.google.container.v1beta1.ClientCertificateConfig.getDefaultInstance() - : clientCertificateConfig_; - } - - public static final int CLUSTER_CA_CERTIFICATE_FIELD_NUMBER = 100; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getClientCertificateConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterCaCertificate_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 100, clusterCaCertificate_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientCertificate_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 101, clientCertificate_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientKey_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 102, clientKey_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, username_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, getClientCertificateConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterCaCertificate_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, clusterCaCertificate_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientCertificate_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(101, clientCertificate_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientKey_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(102, clientKey_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { - getClientCertificateConfigFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - username_ = ""; - password_ = ""; - clientCertificateConfig_ = null; - if (clientCertificateConfigBuilder_ != null) { - clientCertificateConfigBuilder_.dispose(); - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.MasterAuth result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.username_ = username_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.password_ = password_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clientCertificateConfig_ = - clientCertificateConfigBuilder_ == null - ? clientCertificateConfig_ - : clientCertificateConfigBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.clusterCaCertificate_ = clusterCaCertificate_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.clientCertificate_ = clientCertificate_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.clientKey_ = clientKey_; - } - result.bitField0_ |= to_bitField0_; - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getPassword().isEmpty()) { - password_ = other.password_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasClientCertificateConfig()) { - mergeClientCertificateConfig(other.getClientCertificateConfig()); - } - if (!other.getClusterCaCertificate().isEmpty()) { - clusterCaCertificate_ = other.clusterCaCertificate_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getClientCertificate().isEmpty()) { - clientCertificate_ = other.clientCertificate_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (!other.getClientKey().isEmpty()) { - clientKey_ = other.clientKey_; - bitField0_ |= 0x00000020; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - username_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - password_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - getClientCertificateConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 802: - { - clusterCaCertificate_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 802 - case 810: - { - clientCertificate_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 810 - case 818: - { - clientKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 818 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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]; - * - * @deprecated google.container.v1beta1.MasterAuth.username is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1280 - * @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]; - * - * @deprecated google.container.v1beta1.MasterAuth.username is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1280 - * @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]; - * - * @deprecated google.container.v1beta1.MasterAuth.username is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1280 - * @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; - bitField0_ |= 0x00000001; - 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]; - * - * @deprecated google.container.v1beta1.MasterAuth.username is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1280 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearUsername() { - username_ = getDefaultInstance().getUsername(); - bitField0_ = (bitField0_ & ~0x00000001); - 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]; - * - * @deprecated google.container.v1beta1.MasterAuth.username is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1280 - * @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; - bitField0_ |= 0x00000001; - 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]; - * - * @deprecated google.container.v1beta1.MasterAuth.password is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1291 - * @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]; - * - * @deprecated google.container.v1beta1.MasterAuth.password is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1291 - * @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]; - * - * @deprecated google.container.v1beta1.MasterAuth.password is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1291 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * @deprecated google.container.v1beta1.MasterAuth.password is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1291 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearPassword() { - password_ = getDefaultInstance().getPassword(); - bitField0_ = (bitField0_ & ~0x00000002); - 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]; - * - * @deprecated google.container.v1beta1.MasterAuth.password is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1291 - * @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; - bitField0_ |= 0x00000002; - 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 ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * 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; - } else { - clientCertificateConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - 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(); - } else { - clientCertificateConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - 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 (((bitField0_ & 0x00000004) != 0) - && clientCertificateConfig_ != null - && clientCertificateConfig_ - != com.google.container.v1beta1.ClientCertificateConfig.getDefaultInstance()) { - getClientCertificateConfigBuilder().mergeFrom(value); - } else { - clientCertificateConfig_ = value; - } - } else { - clientCertificateConfigBuilder_.mergeFrom(value); - } - if (clientCertificateConfig_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - 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() { - bitField0_ = (bitField0_ & ~0x00000004); - clientCertificateConfig_ = null; - if (clientCertificateConfigBuilder_ != null) { - clientCertificateConfigBuilder_.dispose(); - clientCertificateConfigBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000004; - 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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * string cluster_ca_certificate = 100; - * - * @return This builder for chaining. - */ - public Builder clearClusterCaCertificate() { - clusterCaCertificate_ = getDefaultInstance().getClusterCaCertificate(); - bitField0_ = (bitField0_ & ~0x00000008); - 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; - bitField0_ |= 0x00000008; - 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; - bitField0_ |= 0x00000010; - 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(); - bitField0_ = (bitField0_ & ~0x00000010); - 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; - bitField0_ |= 0x00000010; - 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; - bitField0_ |= 0x00000020; - 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(); - bitField0_ = (bitField0_ & ~0x00000020); - 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; - bitField0_ |= 0x00000020; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthOrBuilder.java deleted file mode 100644 index d9916933b625..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthOrBuilder.java +++ /dev/null @@ -1,227 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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]; - * - * @deprecated google.container.v1beta1.MasterAuth.username is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1280 - * @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]; - * - * @deprecated google.container.v1beta1.MasterAuth.username is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1280 - * @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]; - * - * @deprecated google.container.v1beta1.MasterAuth.password is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1291 - * @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]; - * - * @deprecated google.container.v1beta1.MasterAuth.password is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1291 - * @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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthorizedNetworksConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthorizedNetworksConfig.java deleted file mode 100644 index 227bc7ea8735..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthorizedNetworksConfig.java +++ /dev/null @@ -1,2138 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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(); - } - - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cidrBlock_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cidrBlock_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cidrBlock_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cidrBlock_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.displayName_ = displayName_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.cidrBlock_ = cidrBlock_; - } - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getCidrBlock().isEmpty()) { - cidrBlock_ = other.cidrBlock_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - cidrBlock_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - 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; - bitField0_ |= 0x00000002; - 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(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int bitField0_; - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - 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); - } - - public static final int GCP_PUBLIC_CIDRS_ACCESS_ENABLED_FIELD_NUMBER = 3; - private boolean gcpPublicCidrsAccessEnabled_ = false; - /** - * - * - *
-   * Whether master is accessbile via Google Compute Engine Public IP addresses.
-   * 
- * - * optional bool gcp_public_cidrs_access_enabled = 3; - * - * @return Whether the gcpPublicCidrsAccessEnabled field is set. - */ - @java.lang.Override - public boolean hasGcpPublicCidrsAccessEnabled() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Whether master is accessbile via Google Compute Engine Public IP addresses.
-   * 
- * - * optional bool gcp_public_cidrs_access_enabled = 3; - * - * @return The gcpPublicCidrsAccessEnabled. - */ - @java.lang.Override - public boolean getGcpPublicCidrsAccessEnabled() { - return gcpPublicCidrsAccessEnabled_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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)); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeBool(3, gcpPublicCidrsAccessEnabled_); - } - getUnknownFields().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)); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(3, gcpPublicCidrsAccessEnabled_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (hasGcpPublicCidrsAccessEnabled() != other.hasGcpPublicCidrsAccessEnabled()) return false; - if (hasGcpPublicCidrsAccessEnabled()) { - if (getGcpPublicCidrsAccessEnabled() != other.getGcpPublicCidrsAccessEnabled()) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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(); - } - if (hasGcpPublicCidrsAccessEnabled()) { - hash = (37 * hash) + GCP_PUBLIC_CIDRS_ACCESS_ENABLED_FIELD_NUMBER; - hash = - (53 * hash) + com.google.protobuf.Internal.hashBoolean(getGcpPublicCidrsAccessEnabled()); - } - hash = (29 * hash) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enabled_ = false; - if (cidrBlocksBuilder_ == null) { - cidrBlocks_ = java.util.Collections.emptyList(); - } else { - cidrBlocks_ = null; - cidrBlocksBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - gcpPublicCidrsAccessEnabled_ = false; - 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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.container.v1beta1.MasterAuthorizedNetworksConfig result) { - if (cidrBlocksBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - cidrBlocks_ = java.util.Collections.unmodifiableList(cidrBlocks_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.cidrBlocks_ = cidrBlocks_; - } else { - result.cidrBlocks_ = cidrBlocksBuilder_.build(); - } - } - - private void buildPartial0(com.google.container.v1beta1.MasterAuthorizedNetworksConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.gcpPublicCidrsAccessEnabled_ = gcpPublicCidrsAccessEnabled_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @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_ & ~0x00000002); - } else { - ensureCidrBlocksIsMutable(); - cidrBlocks_.addAll(other.cidrBlocks_); - } - onChanged(); - } - } else { - if (!other.cidrBlocks_.isEmpty()) { - if (cidrBlocksBuilder_.isEmpty()) { - cidrBlocksBuilder_.dispose(); - cidrBlocksBuilder_ = null; - cidrBlocks_ = other.cidrBlocks_; - bitField0_ = (bitField0_ & ~0x00000002); - cidrBlocksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getCidrBlocksFieldBuilder() - : null; - } else { - cidrBlocksBuilder_.addAllMessages(other.cidrBlocks_); - } - } - } - if (other.hasGcpPublicCidrsAccessEnabled()) { - setGcpPublicCidrsAccessEnabled(other.getGcpPublicCidrsAccessEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock m = - input.readMessage( - com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock - .parser(), - extensionRegistry); - if (cidrBlocksBuilder_ == null) { - ensureCidrBlocksIsMutable(); - cidrBlocks_.add(m); - } else { - cidrBlocksBuilder_.addMessage(m); - } - break; - } // case 18 - case 24: - { - gcpPublicCidrsAccessEnabled_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether or not master authorized networks is enabled.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - enabled_ = false; - onChanged(); - return this; - } - - private java.util.List - cidrBlocks_ = java.util.Collections.emptyList(); - - private void ensureCidrBlocksIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - cidrBlocks_ = - new java.util.ArrayList< - com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock>(cidrBlocks_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock, - com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder, - com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder> - cidrBlocksBuilder_; - - /** - * - * - *
-     * cidr_blocks define up to 10 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * - * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public java.util.List - getCidrBlocksList() { - if (cidrBlocksBuilder_ == null) { - return java.util.Collections.unmodifiableList(cidrBlocks_); - } else { - return cidrBlocksBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * cidr_blocks define up to 10 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * - * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public int getCidrBlocksCount() { - if (cidrBlocksBuilder_ == null) { - return cidrBlocks_.size(); - } else { - return cidrBlocksBuilder_.getCount(); - } - } - /** - * - * - *
-     * cidr_blocks define up to 10 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * - * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock getCidrBlocks( - int index) { - if (cidrBlocksBuilder_ == null) { - return cidrBlocks_.get(index); - } else { - return cidrBlocksBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * cidr_blocks define up to 10 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * - * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public Builder setCidrBlocks( - int index, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock value) { - if (cidrBlocksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCidrBlocksIsMutable(); - cidrBlocks_.set(index, value); - onChanged(); - } else { - cidrBlocksBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * cidr_blocks define up to 10 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * - * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public Builder setCidrBlocks( - int index, - com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder - builderForValue) { - if (cidrBlocksBuilder_ == null) { - ensureCidrBlocksIsMutable(); - cidrBlocks_.set(index, builderForValue.build()); - onChanged(); - } else { - cidrBlocksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * cidr_blocks define up to 10 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * - * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public Builder addCidrBlocks( - com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock value) { - if (cidrBlocksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCidrBlocksIsMutable(); - cidrBlocks_.add(value); - onChanged(); - } else { - cidrBlocksBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * cidr_blocks define up to 10 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * - * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public Builder addCidrBlocks( - int index, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock value) { - if (cidrBlocksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCidrBlocksIsMutable(); - cidrBlocks_.add(index, value); - onChanged(); - } else { - cidrBlocksBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * cidr_blocks define up to 10 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * - * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public Builder addCidrBlocks( - com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder - builderForValue) { - if (cidrBlocksBuilder_ == null) { - ensureCidrBlocksIsMutable(); - cidrBlocks_.add(builderForValue.build()); - onChanged(); - } else { - cidrBlocksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * cidr_blocks define up to 10 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * - * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public Builder addCidrBlocks( - int index, - com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder - builderForValue) { - if (cidrBlocksBuilder_ == null) { - ensureCidrBlocksIsMutable(); - cidrBlocks_.add(index, builderForValue.build()); - onChanged(); - } else { - cidrBlocksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * cidr_blocks define up to 10 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * - * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public Builder addAllCidrBlocks( - java.lang.Iterable< - ? 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_ & ~0x00000002); - onChanged(); - } else { - cidrBlocksBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * cidr_blocks define up to 10 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * - * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public Builder removeCidrBlocks(int index) { - if (cidrBlocksBuilder_ == null) { - ensureCidrBlocksIsMutable(); - cidrBlocks_.remove(index); - onChanged(); - } else { - cidrBlocksBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * cidr_blocks define up to 10 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * - * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder - getCidrBlocksBuilder(int index) { - return getCidrBlocksFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * cidr_blocks define up to 10 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * - * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder - getCidrBlocksOrBuilder(int index) { - if (cidrBlocksBuilder_ == null) { - return cidrBlocks_.get(index); - } else { - return cidrBlocksBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * cidr_blocks define up to 10 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * - * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public java.util.List< - ? 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_ & 0x00000002) != 0), getParentForChildren(), isClean()); - cidrBlocks_ = null; - } - return cidrBlocksBuilder_; - } - - private boolean gcpPublicCidrsAccessEnabled_; - /** - * - * - *
-     * Whether master is accessbile via Google Compute Engine Public IP addresses.
-     * 
- * - * optional bool gcp_public_cidrs_access_enabled = 3; - * - * @return Whether the gcpPublicCidrsAccessEnabled field is set. - */ - @java.lang.Override - public boolean hasGcpPublicCidrsAccessEnabled() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * Whether master is accessbile via Google Compute Engine Public IP addresses.
-     * 
- * - * optional bool gcp_public_cidrs_access_enabled = 3; - * - * @return The gcpPublicCidrsAccessEnabled. - */ - @java.lang.Override - public boolean getGcpPublicCidrsAccessEnabled() { - return gcpPublicCidrsAccessEnabled_; - } - /** - * - * - *
-     * Whether master is accessbile via Google Compute Engine Public IP addresses.
-     * 
- * - * optional bool gcp_public_cidrs_access_enabled = 3; - * - * @param value The gcpPublicCidrsAccessEnabled to set. - * @return This builder for chaining. - */ - public Builder setGcpPublicCidrsAccessEnabled(boolean value) { - - gcpPublicCidrsAccessEnabled_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether master is accessbile via Google Compute Engine Public IP addresses.
-     * 
- * - * optional bool gcp_public_cidrs_access_enabled = 3; - * - * @return This builder for chaining. - */ - public Builder clearGcpPublicCidrsAccessEnabled() { - bitField0_ = (bitField0_ & ~0x00000004); - gcpPublicCidrsAccessEnabled_ = 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.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthorizedNetworksConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthorizedNetworksConfigOrBuilder.java deleted file mode 100644 index 19898832b99d..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthorizedNetworksConfigOrBuilder.java +++ /dev/null @@ -1,134 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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); - - /** - * - * - *
-   * Whether master is accessbile via Google Compute Engine Public IP addresses.
-   * 
- * - * optional bool gcp_public_cidrs_access_enabled = 3; - * - * @return Whether the gcpPublicCidrsAccessEnabled field is set. - */ - boolean hasGcpPublicCidrsAccessEnabled(); - /** - * - * - *
-   * Whether master is accessbile via Google Compute Engine Public IP addresses.
-   * 
- * - * optional bool gcp_public_cidrs_access_enabled = 3; - * - * @return The gcpPublicCidrsAccessEnabled. - */ - boolean getGcpPublicCidrsAccessEnabled(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterOrBuilder.java deleted file mode 100644 index 3590defc79b7..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterOrBuilder.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaxPodsConstraint.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaxPodsConstraint.java deleted file mode 100644 index 62f537265313..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaxPodsConstraint.java +++ /dev/null @@ -1,534 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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_ = 0L; - /** - * - * - *
-   * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.MaxPodsConstraint result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.maxPodsPerNode_ = maxPodsPerNode_; - } - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - maxPodsPerNode_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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() { - bitField0_ = (bitField0_ & ~0x00000001); - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaxPodsConstraintOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaxPodsConstraintOrBuilder.java deleted file mode 100644 index 8e4bd9606d5b..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaxPodsConstraintOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MeshCertificates.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MeshCertificates.java deleted file mode 100644 index fa61146b54f3..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MeshCertificates.java +++ /dev/null @@ -1,820 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * Configuration for issuance of mTLS keys and certificates to Kubernetes pods.
- * 
- * - * Protobuf type {@code google.container.v1beta1.MeshCertificates} - */ -public final class MeshCertificates extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.MeshCertificates) - MeshCertificatesOrBuilder { - private static final long serialVersionUID = 0L; - // Use MeshCertificates.newBuilder() to construct. - private MeshCertificates(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private MeshCertificates() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new MeshCertificates(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_MeshCertificates_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_MeshCertificates_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.MeshCertificates.class, - com.google.container.v1beta1.MeshCertificates.Builder.class); - } - - private int bitField0_; - public static final int ENABLE_CERTIFICATES_FIELD_NUMBER = 1; - private com.google.protobuf.BoolValue enableCertificates_; - /** - * - * - *
-   * enable_certificates controls issuance of workload mTLS certificates.
-   *
-   * If set, the GKE Workload Identity Certificates controller and node agent
-   * will be deployed in the cluster, which can then be configured by creating a
-   * WorkloadCertificateConfig Custom Resource.
-   *
-   * Requires Workload Identity
-   * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
-   * must be non-empty).
-   * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - * - * @return Whether the enableCertificates field is set. - */ - @java.lang.Override - public boolean hasEnableCertificates() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * enable_certificates controls issuance of workload mTLS certificates.
-   *
-   * If set, the GKE Workload Identity Certificates controller and node agent
-   * will be deployed in the cluster, which can then be configured by creating a
-   * WorkloadCertificateConfig Custom Resource.
-   *
-   * Requires Workload Identity
-   * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
-   * must be non-empty).
-   * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - * - * @return The enableCertificates. - */ - @java.lang.Override - public com.google.protobuf.BoolValue getEnableCertificates() { - return enableCertificates_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : enableCertificates_; - } - /** - * - * - *
-   * enable_certificates controls issuance of workload mTLS certificates.
-   *
-   * If set, the GKE Workload Identity Certificates controller and node agent
-   * will be deployed in the cluster, which can then be configured by creating a
-   * WorkloadCertificateConfig Custom Resource.
-   *
-   * Requires Workload Identity
-   * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
-   * must be non-empty).
-   * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - @java.lang.Override - public com.google.protobuf.BoolValueOrBuilder getEnableCertificatesOrBuilder() { - return enableCertificates_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : enableCertificates_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getEnableCertificates()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEnableCertificates()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1beta1.MeshCertificates)) { - return super.equals(obj); - } - com.google.container.v1beta1.MeshCertificates other = - (com.google.container.v1beta1.MeshCertificates) obj; - - if (hasEnableCertificates() != other.hasEnableCertificates()) return false; - if (hasEnableCertificates()) { - if (!getEnableCertificates().equals(other.getEnableCertificates())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasEnableCertificates()) { - hash = (37 * hash) + ENABLE_CERTIFICATES_FIELD_NUMBER; - hash = (53 * hash) + getEnableCertificates().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.MeshCertificates parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.MeshCertificates parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.MeshCertificates parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.MeshCertificates parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.MeshCertificates parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.MeshCertificates parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.MeshCertificates parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.MeshCertificates parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.MeshCertificates parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.MeshCertificates parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.MeshCertificates parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.MeshCertificates parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1beta1.MeshCertificates prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes pods.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.MeshCertificates} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.MeshCertificates) - com.google.container.v1beta1.MeshCertificatesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_MeshCertificates_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_MeshCertificates_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.MeshCertificates.class, - com.google.container.v1beta1.MeshCertificates.Builder.class); - } - - // Construct using com.google.container.v1beta1.MeshCertificates.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getEnableCertificatesFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enableCertificates_ = null; - if (enableCertificatesBuilder_ != null) { - enableCertificatesBuilder_.dispose(); - enableCertificatesBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_MeshCertificates_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.MeshCertificates getDefaultInstanceForType() { - return com.google.container.v1beta1.MeshCertificates.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.MeshCertificates build() { - com.google.container.v1beta1.MeshCertificates result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.MeshCertificates buildPartial() { - com.google.container.v1beta1.MeshCertificates result = - new com.google.container.v1beta1.MeshCertificates(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.MeshCertificates result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enableCertificates_ = - enableCertificatesBuilder_ == null - ? enableCertificates_ - : enableCertificatesBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.MeshCertificates) { - return mergeFrom((com.google.container.v1beta1.MeshCertificates) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.MeshCertificates other) { - if (other == com.google.container.v1beta1.MeshCertificates.getDefaultInstance()) return this; - if (other.hasEnableCertificates()) { - mergeEnableCertificates(other.getEnableCertificates()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage( - getEnableCertificatesFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.protobuf.BoolValue enableCertificates_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - enableCertificatesBuilder_; - /** - * - * - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     *
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     *
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - * - * @return Whether the enableCertificates field is set. - */ - public boolean hasEnableCertificates() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     *
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     *
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - * - * @return The enableCertificates. - */ - public com.google.protobuf.BoolValue getEnableCertificates() { - if (enableCertificatesBuilder_ == null) { - return enableCertificates_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : enableCertificates_; - } else { - return enableCertificatesBuilder_.getMessage(); - } - } - /** - * - * - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     *
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     *
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - public Builder setEnableCertificates(com.google.protobuf.BoolValue value) { - if (enableCertificatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - enableCertificates_ = value; - } else { - enableCertificatesBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     *
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     *
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - public Builder setEnableCertificates(com.google.protobuf.BoolValue.Builder builderForValue) { - if (enableCertificatesBuilder_ == null) { - enableCertificates_ = builderForValue.build(); - } else { - enableCertificatesBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     *
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     *
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - public Builder mergeEnableCertificates(com.google.protobuf.BoolValue value) { - if (enableCertificatesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && enableCertificates_ != null - && enableCertificates_ != com.google.protobuf.BoolValue.getDefaultInstance()) { - getEnableCertificatesBuilder().mergeFrom(value); - } else { - enableCertificates_ = value; - } - } else { - enableCertificatesBuilder_.mergeFrom(value); - } - if (enableCertificates_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * - * - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     *
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     *
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - public Builder clearEnableCertificates() { - bitField0_ = (bitField0_ & ~0x00000001); - enableCertificates_ = null; - if (enableCertificatesBuilder_ != null) { - enableCertificatesBuilder_.dispose(); - enableCertificatesBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     *
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     *
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - public com.google.protobuf.BoolValue.Builder getEnableCertificatesBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getEnableCertificatesFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     *
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     *
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - public com.google.protobuf.BoolValueOrBuilder getEnableCertificatesOrBuilder() { - if (enableCertificatesBuilder_ != null) { - return enableCertificatesBuilder_.getMessageOrBuilder(); - } else { - return enableCertificates_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : enableCertificates_; - } - } - /** - * - * - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     *
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     *
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - getEnableCertificatesFieldBuilder() { - if (enableCertificatesBuilder_ == null) { - enableCertificatesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder>( - getEnableCertificates(), getParentForChildren(), isClean()); - enableCertificates_ = null; - } - return enableCertificatesBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.MeshCertificates) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.MeshCertificates) - private static final com.google.container.v1beta1.MeshCertificates DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.MeshCertificates(); - } - - public static com.google.container.v1beta1.MeshCertificates getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MeshCertificates parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1beta1.MeshCertificates getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MeshCertificatesOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MeshCertificatesOrBuilder.java deleted file mode 100644 index c19ead218cda..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MeshCertificatesOrBuilder.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface MeshCertificatesOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.MeshCertificates) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * enable_certificates controls issuance of workload mTLS certificates.
-   *
-   * If set, the GKE Workload Identity Certificates controller and node agent
-   * will be deployed in the cluster, which can then be configured by creating a
-   * WorkloadCertificateConfig Custom Resource.
-   *
-   * Requires Workload Identity
-   * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
-   * must be non-empty).
-   * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - * - * @return Whether the enableCertificates field is set. - */ - boolean hasEnableCertificates(); - /** - * - * - *
-   * enable_certificates controls issuance of workload mTLS certificates.
-   *
-   * If set, the GKE Workload Identity Certificates controller and node agent
-   * will be deployed in the cluster, which can then be configured by creating a
-   * WorkloadCertificateConfig Custom Resource.
-   *
-   * Requires Workload Identity
-   * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
-   * must be non-empty).
-   * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - * - * @return The enableCertificates. - */ - com.google.protobuf.BoolValue getEnableCertificates(); - /** - * - * - *
-   * enable_certificates controls issuance of workload mTLS certificates.
-   *
-   * If set, the GKE Workload Identity Certificates controller and node agent
-   * will be deployed in the cluster, which can then be configured by creating a
-   * WorkloadCertificateConfig Custom Resource.
-   *
-   * Requires Workload Identity
-   * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
-   * must be non-empty).
-   * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - com.google.protobuf.BoolValueOrBuilder getEnableCertificatesOrBuilder(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringComponentConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringComponentConfig.java deleted file mode 100644 index 1d7814f49d4b..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringComponentConfig.java +++ /dev/null @@ -1,1252 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * MonitoringComponentConfig is cluster monitoring component configuration.
- * 
- * - * Protobuf type {@code google.container.v1beta1.MonitoringComponentConfig} - */ -public final class MonitoringComponentConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.MonitoringComponentConfig) - MonitoringComponentConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use MonitoringComponentConfig.newBuilder() to construct. - private MonitoringComponentConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private MonitoringComponentConfig() { - enableComponents_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new MonitoringComponentConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_MonitoringComponentConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_MonitoringComponentConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.MonitoringComponentConfig.class, - com.google.container.v1beta1.MonitoringComponentConfig.Builder.class); - } - - /** - * - * - *
-   * GKE components exposing metrics
-   * 
- * - * Protobuf enum {@code google.container.v1beta1.MonitoringComponentConfig.Component} - */ - public enum Component implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value. This shouldn't be used.
-     * 
- * - * COMPONENT_UNSPECIFIED = 0; - */ - COMPONENT_UNSPECIFIED(0), - /** - * - * - *
-     * system components
-     * 
- * - * SYSTEM_COMPONENTS = 1; - */ - SYSTEM_COMPONENTS(1), - /** - * - * - *
-     * Deprecated: Use Google Cloud Managed Service for Prometheus.
-     * 
- * - * WORKLOADS = 2 [deprecated = true]; - */ - @java.lang.Deprecated - WORKLOADS(2), - /** - * - * - *
-     * kube-apiserver
-     * 
- * - * APISERVER = 3; - */ - APISERVER(3), - /** - * - * - *
-     * kube-scheduler
-     * 
- * - * SCHEDULER = 4; - */ - SCHEDULER(4), - /** - * - * - *
-     * kube-controller-manager
-     * 
- * - * CONTROLLER_MANAGER = 5; - */ - CONTROLLER_MANAGER(5), - /** - * - * - *
-     * Storage
-     * 
- * - * STORAGE = 7; - */ - STORAGE(7), - /** - * - * - *
-     * Horizontal Pod Autoscaling
-     * 
- * - * HPA = 8; - */ - HPA(8), - /** - * - * - *
-     * Pod
-     * 
- * - * POD = 9; - */ - POD(9), - /** - * - * - *
-     * DaemonSet
-     * 
- * - * DAEMONSET = 10; - */ - DAEMONSET(10), - /** - * - * - *
-     * Deployment
-     * 
- * - * DEPLOYMENT = 11; - */ - DEPLOYMENT(11), - /** - * - * - *
-     * Statefulset
-     * 
- * - * STATEFULSET = 12; - */ - STATEFULSET(12), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value. This shouldn't be used.
-     * 
- * - * COMPONENT_UNSPECIFIED = 0; - */ - public static final int COMPONENT_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * system components
-     * 
- * - * SYSTEM_COMPONENTS = 1; - */ - public static final int SYSTEM_COMPONENTS_VALUE = 1; - /** - * - * - *
-     * Deprecated: Use Google Cloud Managed Service for Prometheus.
-     * 
- * - * WORKLOADS = 2 [deprecated = true]; - */ - @java.lang.Deprecated public static final int WORKLOADS_VALUE = 2; - /** - * - * - *
-     * kube-apiserver
-     * 
- * - * APISERVER = 3; - */ - public static final int APISERVER_VALUE = 3; - /** - * - * - *
-     * kube-scheduler
-     * 
- * - * SCHEDULER = 4; - */ - public static final int SCHEDULER_VALUE = 4; - /** - * - * - *
-     * kube-controller-manager
-     * 
- * - * CONTROLLER_MANAGER = 5; - */ - public static final int CONTROLLER_MANAGER_VALUE = 5; - /** - * - * - *
-     * Storage
-     * 
- * - * STORAGE = 7; - */ - public static final int STORAGE_VALUE = 7; - /** - * - * - *
-     * Horizontal Pod Autoscaling
-     * 
- * - * HPA = 8; - */ - public static final int HPA_VALUE = 8; - /** - * - * - *
-     * Pod
-     * 
- * - * POD = 9; - */ - public static final int POD_VALUE = 9; - /** - * - * - *
-     * DaemonSet
-     * 
- * - * DAEMONSET = 10; - */ - public static final int DAEMONSET_VALUE = 10; - /** - * - * - *
-     * Deployment
-     * 
- * - * DEPLOYMENT = 11; - */ - public static final int DEPLOYMENT_VALUE = 11; - /** - * - * - *
-     * Statefulset
-     * 
- * - * STATEFULSET = 12; - */ - public static final int STATEFULSET_VALUE = 12; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Component valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Component forNumber(int value) { - switch (value) { - case 0: - return COMPONENT_UNSPECIFIED; - case 1: - return SYSTEM_COMPONENTS; - case 2: - return WORKLOADS; - case 3: - return APISERVER; - case 4: - return SCHEDULER; - case 5: - return CONTROLLER_MANAGER; - case 7: - return STORAGE; - case 8: - return HPA; - case 9: - return POD; - case 10: - return DAEMONSET; - case 11: - return DEPLOYMENT; - case 12: - return STATEFULSET; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Component findValueByNumber(int number) { - return Component.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1beta1.MonitoringComponentConfig.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final Component[] VALUES = values(); - - public static Component valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Component(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1beta1.MonitoringComponentConfig.Component) - } - - public static final int ENABLE_COMPONENTS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List enableComponents_; - - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.container.v1beta1.MonitoringComponentConfig.Component> - enableComponents_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, - com.google.container.v1beta1.MonitoringComponentConfig.Component>() { - public com.google.container.v1beta1.MonitoringComponentConfig.Component convert( - java.lang.Integer from) { - com.google.container.v1beta1.MonitoringComponentConfig.Component result = - com.google.container.v1beta1.MonitoringComponentConfig.Component.forNumber(from); - return result == null - ? com.google.container.v1beta1.MonitoringComponentConfig.Component.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-   * Select components to collect metrics. An empty set would disable all
-   * monitoring.
-   * 
- * - * - * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @return A list containing the enableComponents. - */ - @java.lang.Override - public java.util.List - getEnableComponentsList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.container.v1beta1.MonitoringComponentConfig.Component>( - enableComponents_, enableComponents_converter_); - } - /** - * - * - *
-   * Select components to collect metrics. An empty set would disable all
-   * monitoring.
-   * 
- * - * - * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @return The count of enableComponents. - */ - @java.lang.Override - public int getEnableComponentsCount() { - return enableComponents_.size(); - } - /** - * - * - *
-   * Select components to collect metrics. An empty set would disable all
-   * monitoring.
-   * 
- * - * - * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @param index The index of the element to return. - * @return The enableComponents at the given index. - */ - @java.lang.Override - public com.google.container.v1beta1.MonitoringComponentConfig.Component getEnableComponents( - int index) { - return enableComponents_converter_.convert(enableComponents_.get(index)); - } - /** - * - * - *
-   * Select components to collect metrics. An empty set would disable all
-   * monitoring.
-   * 
- * - * - * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @return A list containing the enum numeric values on the wire for enableComponents. - */ - @java.lang.Override - public java.util.List getEnableComponentsValueList() { - return enableComponents_; - } - /** - * - * - *
-   * Select components to collect metrics. An empty set would disable all
-   * monitoring.
-   * 
- * - * - * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of enableComponents at the given index. - */ - @java.lang.Override - public int getEnableComponentsValue(int index) { - return enableComponents_.get(index); - } - - private int enableComponentsMemoizedSerializedSize; - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (getEnableComponentsList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(enableComponentsMemoizedSerializedSize); - } - for (int i = 0; i < enableComponents_.size(); i++) { - output.writeEnumNoTag(enableComponents_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < enableComponents_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(enableComponents_.get(i)); - } - size += dataSize; - if (!getEnableComponentsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - enableComponentsMemoizedSerializedSize = dataSize; - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.MonitoringComponentConfig)) { - return super.equals(obj); - } - com.google.container.v1beta1.MonitoringComponentConfig other = - (com.google.container.v1beta1.MonitoringComponentConfig) obj; - - if (!enableComponents_.equals(other.enableComponents_)) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getEnableComponentsCount() > 0) { - hash = (37 * hash) + ENABLE_COMPONENTS_FIELD_NUMBER; - hash = (53 * hash) + enableComponents_.hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.MonitoringComponentConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.MonitoringComponentConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.MonitoringComponentConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.MonitoringComponentConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.MonitoringComponentConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.MonitoringComponentConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.MonitoringComponentConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.MonitoringComponentConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.MonitoringComponentConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.MonitoringComponentConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.MonitoringComponentConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.MonitoringComponentConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.container.v1beta1.MonitoringComponentConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * MonitoringComponentConfig is cluster monitoring component configuration.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.MonitoringComponentConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.MonitoringComponentConfig) - com.google.container.v1beta1.MonitoringComponentConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_MonitoringComponentConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_MonitoringComponentConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.MonitoringComponentConfig.class, - com.google.container.v1beta1.MonitoringComponentConfig.Builder.class); - } - - // Construct using com.google.container.v1beta1.MonitoringComponentConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enableComponents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_MonitoringComponentConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.MonitoringComponentConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.MonitoringComponentConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.MonitoringComponentConfig build() { - com.google.container.v1beta1.MonitoringComponentConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.MonitoringComponentConfig buildPartial() { - com.google.container.v1beta1.MonitoringComponentConfig result = - new com.google.container.v1beta1.MonitoringComponentConfig(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.container.v1beta1.MonitoringComponentConfig result) { - if (((bitField0_ & 0x00000001) != 0)) { - enableComponents_ = java.util.Collections.unmodifiableList(enableComponents_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.enableComponents_ = enableComponents_; - } - - private void buildPartial0(com.google.container.v1beta1.MonitoringComponentConfig result) { - int from_bitField0_ = bitField0_; - } - - @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.MonitoringComponentConfig) { - return mergeFrom((com.google.container.v1beta1.MonitoringComponentConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.MonitoringComponentConfig other) { - if (other == com.google.container.v1beta1.MonitoringComponentConfig.getDefaultInstance()) - return this; - if (!other.enableComponents_.isEmpty()) { - if (enableComponents_.isEmpty()) { - enableComponents_ = other.enableComponents_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEnableComponentsIsMutable(); - enableComponents_.addAll(other.enableComponents_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - int tmpRaw = input.readEnum(); - ensureEnableComponentsIsMutable(); - enableComponents_.add(tmpRaw); - break; - } // case 8 - case 10: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureEnableComponentsIsMutable(); - enableComponents_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List enableComponents_ = java.util.Collections.emptyList(); - - private void ensureEnableComponentsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - enableComponents_ = new java.util.ArrayList(enableComponents_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Select components to collect metrics. An empty set would disable all
-     * monitoring.
-     * 
- * - * - * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @return A list containing the enableComponents. - */ - public java.util.List - getEnableComponentsList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.container.v1beta1.MonitoringComponentConfig.Component>( - enableComponents_, enableComponents_converter_); - } - /** - * - * - *
-     * Select components to collect metrics. An empty set would disable all
-     * monitoring.
-     * 
- * - * - * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @return The count of enableComponents. - */ - public int getEnableComponentsCount() { - return enableComponents_.size(); - } - /** - * - * - *
-     * Select components to collect metrics. An empty set would disable all
-     * monitoring.
-     * 
- * - * - * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @param index The index of the element to return. - * @return The enableComponents at the given index. - */ - public com.google.container.v1beta1.MonitoringComponentConfig.Component getEnableComponents( - int index) { - return enableComponents_converter_.convert(enableComponents_.get(index)); - } - /** - * - * - *
-     * Select components to collect metrics. An empty set would disable all
-     * monitoring.
-     * 
- * - * - * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @param index The index to set the value at. - * @param value The enableComponents to set. - * @return This builder for chaining. - */ - public Builder setEnableComponents( - int index, com.google.container.v1beta1.MonitoringComponentConfig.Component value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnableComponentsIsMutable(); - enableComponents_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Select components to collect metrics. An empty set would disable all
-     * monitoring.
-     * 
- * - * - * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @param value The enableComponents to add. - * @return This builder for chaining. - */ - public Builder addEnableComponents( - com.google.container.v1beta1.MonitoringComponentConfig.Component value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnableComponentsIsMutable(); - enableComponents_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Select components to collect metrics. An empty set would disable all
-     * monitoring.
-     * 
- * - * - * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @param values The enableComponents to add. - * @return This builder for chaining. - */ - public Builder addAllEnableComponents( - java.lang.Iterable< - ? extends com.google.container.v1beta1.MonitoringComponentConfig.Component> - values) { - ensureEnableComponentsIsMutable(); - for (com.google.container.v1beta1.MonitoringComponentConfig.Component value : values) { - enableComponents_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-     * Select components to collect metrics. An empty set would disable all
-     * monitoring.
-     * 
- * - * - * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @return This builder for chaining. - */ - public Builder clearEnableComponents() { - enableComponents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Select components to collect metrics. An empty set would disable all
-     * monitoring.
-     * 
- * - * - * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @return A list containing the enum numeric values on the wire for enableComponents. - */ - public java.util.List getEnableComponentsValueList() { - return java.util.Collections.unmodifiableList(enableComponents_); - } - /** - * - * - *
-     * Select components to collect metrics. An empty set would disable all
-     * monitoring.
-     * 
- * - * - * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of enableComponents at the given index. - */ - public int getEnableComponentsValue(int index) { - return enableComponents_.get(index); - } - /** - * - * - *
-     * Select components to collect metrics. An empty set would disable all
-     * monitoring.
-     * 
- * - * - * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for enableComponents to set. - * @return This builder for chaining. - */ - public Builder setEnableComponentsValue(int index, int value) { - ensureEnableComponentsIsMutable(); - enableComponents_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Select components to collect metrics. An empty set would disable all
-     * monitoring.
-     * 
- * - * - * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @param value The enum numeric value on the wire for enableComponents to add. - * @return This builder for chaining. - */ - public Builder addEnableComponentsValue(int value) { - ensureEnableComponentsIsMutable(); - enableComponents_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Select components to collect metrics. An empty set would disable all
-     * monitoring.
-     * 
- * - * - * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @param values The enum numeric values on the wire for enableComponents to add. - * @return This builder for chaining. - */ - public Builder addAllEnableComponentsValue(java.lang.Iterable values) { - ensureEnableComponentsIsMutable(); - for (int value : values) { - enableComponents_.add(value); - } - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.MonitoringComponentConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.MonitoringComponentConfig) - private static final com.google.container.v1beta1.MonitoringComponentConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.MonitoringComponentConfig(); - } - - public static com.google.container.v1beta1.MonitoringComponentConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MonitoringComponentConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.MonitoringComponentConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringComponentConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringComponentConfigOrBuilder.java deleted file mode 100644 index 932ca3f341ff..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringComponentConfigOrBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface MonitoringComponentConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.MonitoringComponentConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Select components to collect metrics. An empty set would disable all
-   * monitoring.
-   * 
- * - * - * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @return A list containing the enableComponents. - */ - java.util.List - getEnableComponentsList(); - /** - * - * - *
-   * Select components to collect metrics. An empty set would disable all
-   * monitoring.
-   * 
- * - * - * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @return The count of enableComponents. - */ - int getEnableComponentsCount(); - /** - * - * - *
-   * Select components to collect metrics. An empty set would disable all
-   * monitoring.
-   * 
- * - * - * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @param index The index of the element to return. - * @return The enableComponents at the given index. - */ - com.google.container.v1beta1.MonitoringComponentConfig.Component getEnableComponents(int index); - /** - * - * - *
-   * Select components to collect metrics. An empty set would disable all
-   * monitoring.
-   * 
- * - * - * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @return A list containing the enum numeric values on the wire for enableComponents. - */ - java.util.List getEnableComponentsValueList(); - /** - * - * - *
-   * Select components to collect metrics. An empty set would disable all
-   * monitoring.
-   * 
- * - * - * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of enableComponents at the given index. - */ - int getEnableComponentsValue(int index); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringConfig.java deleted file mode 100644 index e4a358ef28b3..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringConfig.java +++ /dev/null @@ -1,1333 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * MonitoringConfig is cluster monitoring configuration.
- * 
- * - * Protobuf type {@code google.container.v1beta1.MonitoringConfig} - */ -public final class MonitoringConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.MonitoringConfig) - MonitoringConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use MonitoringConfig.newBuilder() to construct. - private MonitoringConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private MonitoringConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new MonitoringConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_MonitoringConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_MonitoringConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.MonitoringConfig.class, - com.google.container.v1beta1.MonitoringConfig.Builder.class); - } - - private int bitField0_; - public static final int COMPONENT_CONFIG_FIELD_NUMBER = 1; - private com.google.container.v1beta1.MonitoringComponentConfig componentConfig_; - /** - * - * - *
-   * Monitoring components configuration
-   * 
- * - * .google.container.v1beta1.MonitoringComponentConfig component_config = 1; - * - * @return Whether the componentConfig field is set. - */ - @java.lang.Override - public boolean hasComponentConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Monitoring components configuration
-   * 
- * - * .google.container.v1beta1.MonitoringComponentConfig component_config = 1; - * - * @return The componentConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.MonitoringComponentConfig getComponentConfig() { - return componentConfig_ == null - ? com.google.container.v1beta1.MonitoringComponentConfig.getDefaultInstance() - : componentConfig_; - } - /** - * - * - *
-   * Monitoring components configuration
-   * 
- * - * .google.container.v1beta1.MonitoringComponentConfig component_config = 1; - */ - @java.lang.Override - public com.google.container.v1beta1.MonitoringComponentConfigOrBuilder - getComponentConfigOrBuilder() { - return componentConfig_ == null - ? com.google.container.v1beta1.MonitoringComponentConfig.getDefaultInstance() - : componentConfig_; - } - - public static final int MANAGED_PROMETHEUS_CONFIG_FIELD_NUMBER = 2; - private com.google.container.v1beta1.ManagedPrometheusConfig managedPrometheusConfig_; - /** - * - * - *
-   * Enable Google Cloud Managed Service for Prometheus
-   * in the cluster.
-   * 
- * - * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; - * - * @return Whether the managedPrometheusConfig field is set. - */ - @java.lang.Override - public boolean hasManagedPrometheusConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * Enable Google Cloud Managed Service for Prometheus
-   * in the cluster.
-   * 
- * - * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; - * - * @return The managedPrometheusConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.ManagedPrometheusConfig getManagedPrometheusConfig() { - return managedPrometheusConfig_ == null - ? com.google.container.v1beta1.ManagedPrometheusConfig.getDefaultInstance() - : managedPrometheusConfig_; - } - /** - * - * - *
-   * Enable Google Cloud Managed Service for Prometheus
-   * in the cluster.
-   * 
- * - * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; - */ - @java.lang.Override - public com.google.container.v1beta1.ManagedPrometheusConfigOrBuilder - getManagedPrometheusConfigOrBuilder() { - return managedPrometheusConfig_ == null - ? com.google.container.v1beta1.ManagedPrometheusConfig.getDefaultInstance() - : managedPrometheusConfig_; - } - - public static final int ADVANCED_DATAPATH_OBSERVABILITY_CONFIG_FIELD_NUMBER = 3; - private com.google.container.v1beta1.AdvancedDatapathObservabilityConfig - advancedDatapathObservabilityConfig_; - /** - * - * - *
-   * Configuration of Advanced Datapath Observability features.
-   * 
- * - * - * .google.container.v1beta1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; - * - * - * @return Whether the advancedDatapathObservabilityConfig field is set. - */ - @java.lang.Override - public boolean hasAdvancedDatapathObservabilityConfig() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-   * Configuration of Advanced Datapath Observability features.
-   * 
- * - * - * .google.container.v1beta1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; - * - * - * @return The advancedDatapathObservabilityConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.AdvancedDatapathObservabilityConfig - getAdvancedDatapathObservabilityConfig() { - return advancedDatapathObservabilityConfig_ == null - ? com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.getDefaultInstance() - : advancedDatapathObservabilityConfig_; - } - /** - * - * - *
-   * Configuration of Advanced Datapath Observability features.
-   * 
- * - * - * .google.container.v1beta1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; - * - */ - @java.lang.Override - public com.google.container.v1beta1.AdvancedDatapathObservabilityConfigOrBuilder - getAdvancedDatapathObservabilityConfigOrBuilder() { - return advancedDatapathObservabilityConfig_ == null - ? com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.getDefaultInstance() - : advancedDatapathObservabilityConfig_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getComponentConfig()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getManagedPrometheusConfig()); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(3, getAdvancedDatapathObservabilityConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getComponentConfig()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, getManagedPrometheusConfig()); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, getAdvancedDatapathObservabilityConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.MonitoringConfig)) { - return super.equals(obj); - } - com.google.container.v1beta1.MonitoringConfig other = - (com.google.container.v1beta1.MonitoringConfig) obj; - - if (hasComponentConfig() != other.hasComponentConfig()) return false; - if (hasComponentConfig()) { - if (!getComponentConfig().equals(other.getComponentConfig())) return false; - } - if (hasManagedPrometheusConfig() != other.hasManagedPrometheusConfig()) return false; - if (hasManagedPrometheusConfig()) { - if (!getManagedPrometheusConfig().equals(other.getManagedPrometheusConfig())) return false; - } - if (hasAdvancedDatapathObservabilityConfig() != other.hasAdvancedDatapathObservabilityConfig()) - return false; - if (hasAdvancedDatapathObservabilityConfig()) { - if (!getAdvancedDatapathObservabilityConfig() - .equals(other.getAdvancedDatapathObservabilityConfig())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasComponentConfig()) { - hash = (37 * hash) + COMPONENT_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getComponentConfig().hashCode(); - } - if (hasManagedPrometheusConfig()) { - hash = (37 * hash) + MANAGED_PROMETHEUS_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getManagedPrometheusConfig().hashCode(); - } - if (hasAdvancedDatapathObservabilityConfig()) { - hash = (37 * hash) + ADVANCED_DATAPATH_OBSERVABILITY_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getAdvancedDatapathObservabilityConfig().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.MonitoringConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.MonitoringConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.MonitoringConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.MonitoringConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.MonitoringConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.MonitoringConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.MonitoringConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.MonitoringConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.MonitoringConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.MonitoringConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.MonitoringConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.MonitoringConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1beta1.MonitoringConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * MonitoringConfig is cluster monitoring configuration.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.MonitoringConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.MonitoringConfig) - com.google.container.v1beta1.MonitoringConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_MonitoringConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_MonitoringConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.MonitoringConfig.class, - com.google.container.v1beta1.MonitoringConfig.Builder.class); - } - - // Construct using com.google.container.v1beta1.MonitoringConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getComponentConfigFieldBuilder(); - getManagedPrometheusConfigFieldBuilder(); - getAdvancedDatapathObservabilityConfigFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - componentConfig_ = null; - if (componentConfigBuilder_ != null) { - componentConfigBuilder_.dispose(); - componentConfigBuilder_ = null; - } - managedPrometheusConfig_ = null; - if (managedPrometheusConfigBuilder_ != null) { - managedPrometheusConfigBuilder_.dispose(); - managedPrometheusConfigBuilder_ = null; - } - advancedDatapathObservabilityConfig_ = null; - if (advancedDatapathObservabilityConfigBuilder_ != null) { - advancedDatapathObservabilityConfigBuilder_.dispose(); - advancedDatapathObservabilityConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_MonitoringConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.MonitoringConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.MonitoringConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.MonitoringConfig build() { - com.google.container.v1beta1.MonitoringConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.MonitoringConfig buildPartial() { - com.google.container.v1beta1.MonitoringConfig result = - new com.google.container.v1beta1.MonitoringConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.MonitoringConfig result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.componentConfig_ = - componentConfigBuilder_ == null ? componentConfig_ : componentConfigBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.managedPrometheusConfig_ = - managedPrometheusConfigBuilder_ == null - ? managedPrometheusConfig_ - : managedPrometheusConfigBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.advancedDatapathObservabilityConfig_ = - advancedDatapathObservabilityConfigBuilder_ == null - ? advancedDatapathObservabilityConfig_ - : advancedDatapathObservabilityConfigBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - result.bitField0_ |= to_bitField0_; - } - - @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.MonitoringConfig) { - return mergeFrom((com.google.container.v1beta1.MonitoringConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.MonitoringConfig other) { - if (other == com.google.container.v1beta1.MonitoringConfig.getDefaultInstance()) return this; - if (other.hasComponentConfig()) { - mergeComponentConfig(other.getComponentConfig()); - } - if (other.hasManagedPrometheusConfig()) { - mergeManagedPrometheusConfig(other.getManagedPrometheusConfig()); - } - if (other.hasAdvancedDatapathObservabilityConfig()) { - mergeAdvancedDatapathObservabilityConfig(other.getAdvancedDatapathObservabilityConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getComponentConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - getManagedPrometheusConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - getAdvancedDatapathObservabilityConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.container.v1beta1.MonitoringComponentConfig componentConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MonitoringComponentConfig, - com.google.container.v1beta1.MonitoringComponentConfig.Builder, - com.google.container.v1beta1.MonitoringComponentConfigOrBuilder> - componentConfigBuilder_; - /** - * - * - *
-     * Monitoring components configuration
-     * 
- * - * .google.container.v1beta1.MonitoringComponentConfig component_config = 1; - * - * @return Whether the componentConfig field is set. - */ - public boolean hasComponentConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Monitoring components configuration
-     * 
- * - * .google.container.v1beta1.MonitoringComponentConfig component_config = 1; - * - * @return The componentConfig. - */ - public com.google.container.v1beta1.MonitoringComponentConfig getComponentConfig() { - if (componentConfigBuilder_ == null) { - return componentConfig_ == null - ? com.google.container.v1beta1.MonitoringComponentConfig.getDefaultInstance() - : componentConfig_; - } else { - return componentConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Monitoring components configuration
-     * 
- * - * .google.container.v1beta1.MonitoringComponentConfig component_config = 1; - */ - public Builder setComponentConfig( - com.google.container.v1beta1.MonitoringComponentConfig value) { - if (componentConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - componentConfig_ = value; - } else { - componentConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Monitoring components configuration
-     * 
- * - * .google.container.v1beta1.MonitoringComponentConfig component_config = 1; - */ - public Builder setComponentConfig( - com.google.container.v1beta1.MonitoringComponentConfig.Builder builderForValue) { - if (componentConfigBuilder_ == null) { - componentConfig_ = builderForValue.build(); - } else { - componentConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Monitoring components configuration
-     * 
- * - * .google.container.v1beta1.MonitoringComponentConfig component_config = 1; - */ - public Builder mergeComponentConfig( - com.google.container.v1beta1.MonitoringComponentConfig value) { - if (componentConfigBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && componentConfig_ != null - && componentConfig_ - != com.google.container.v1beta1.MonitoringComponentConfig.getDefaultInstance()) { - getComponentConfigBuilder().mergeFrom(value); - } else { - componentConfig_ = value; - } - } else { - componentConfigBuilder_.mergeFrom(value); - } - if (componentConfig_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Monitoring components configuration
-     * 
- * - * .google.container.v1beta1.MonitoringComponentConfig component_config = 1; - */ - public Builder clearComponentConfig() { - bitField0_ = (bitField0_ & ~0x00000001); - componentConfig_ = null; - if (componentConfigBuilder_ != null) { - componentConfigBuilder_.dispose(); - componentConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Monitoring components configuration
-     * 
- * - * .google.container.v1beta1.MonitoringComponentConfig component_config = 1; - */ - public com.google.container.v1beta1.MonitoringComponentConfig.Builder - getComponentConfigBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getComponentConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Monitoring components configuration
-     * 
- * - * .google.container.v1beta1.MonitoringComponentConfig component_config = 1; - */ - public com.google.container.v1beta1.MonitoringComponentConfigOrBuilder - getComponentConfigOrBuilder() { - if (componentConfigBuilder_ != null) { - return componentConfigBuilder_.getMessageOrBuilder(); - } else { - return componentConfig_ == null - ? com.google.container.v1beta1.MonitoringComponentConfig.getDefaultInstance() - : componentConfig_; - } - } - /** - * - * - *
-     * Monitoring components configuration
-     * 
- * - * .google.container.v1beta1.MonitoringComponentConfig component_config = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MonitoringComponentConfig, - com.google.container.v1beta1.MonitoringComponentConfig.Builder, - com.google.container.v1beta1.MonitoringComponentConfigOrBuilder> - getComponentConfigFieldBuilder() { - if (componentConfigBuilder_ == null) { - componentConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MonitoringComponentConfig, - com.google.container.v1beta1.MonitoringComponentConfig.Builder, - com.google.container.v1beta1.MonitoringComponentConfigOrBuilder>( - getComponentConfig(), getParentForChildren(), isClean()); - componentConfig_ = null; - } - return componentConfigBuilder_; - } - - private com.google.container.v1beta1.ManagedPrometheusConfig managedPrometheusConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ManagedPrometheusConfig, - com.google.container.v1beta1.ManagedPrometheusConfig.Builder, - com.google.container.v1beta1.ManagedPrometheusConfigOrBuilder> - managedPrometheusConfigBuilder_; - /** - * - * - *
-     * Enable Google Cloud Managed Service for Prometheus
-     * in the cluster.
-     * 
- * - * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; - * - * @return Whether the managedPrometheusConfig field is set. - */ - public boolean hasManagedPrometheusConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * Enable Google Cloud Managed Service for Prometheus
-     * in the cluster.
-     * 
- * - * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; - * - * @return The managedPrometheusConfig. - */ - public com.google.container.v1beta1.ManagedPrometheusConfig getManagedPrometheusConfig() { - if (managedPrometheusConfigBuilder_ == null) { - return managedPrometheusConfig_ == null - ? com.google.container.v1beta1.ManagedPrometheusConfig.getDefaultInstance() - : managedPrometheusConfig_; - } else { - return managedPrometheusConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Enable Google Cloud Managed Service for Prometheus
-     * in the cluster.
-     * 
- * - * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; - */ - public Builder setManagedPrometheusConfig( - com.google.container.v1beta1.ManagedPrometheusConfig value) { - if (managedPrometheusConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - managedPrometheusConfig_ = value; - } else { - managedPrometheusConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable Google Cloud Managed Service for Prometheus
-     * in the cluster.
-     * 
- * - * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; - */ - public Builder setManagedPrometheusConfig( - com.google.container.v1beta1.ManagedPrometheusConfig.Builder builderForValue) { - if (managedPrometheusConfigBuilder_ == null) { - managedPrometheusConfig_ = builderForValue.build(); - } else { - managedPrometheusConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable Google Cloud Managed Service for Prometheus
-     * in the cluster.
-     * 
- * - * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; - */ - public Builder mergeManagedPrometheusConfig( - com.google.container.v1beta1.ManagedPrometheusConfig value) { - if (managedPrometheusConfigBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && managedPrometheusConfig_ != null - && managedPrometheusConfig_ - != com.google.container.v1beta1.ManagedPrometheusConfig.getDefaultInstance()) { - getManagedPrometheusConfigBuilder().mergeFrom(value); - } else { - managedPrometheusConfig_ = value; - } - } else { - managedPrometheusConfigBuilder_.mergeFrom(value); - } - if (managedPrometheusConfig_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Enable Google Cloud Managed Service for Prometheus
-     * in the cluster.
-     * 
- * - * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; - */ - public Builder clearManagedPrometheusConfig() { - bitField0_ = (bitField0_ & ~0x00000002); - managedPrometheusConfig_ = null; - if (managedPrometheusConfigBuilder_ != null) { - managedPrometheusConfigBuilder_.dispose(); - managedPrometheusConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Enable Google Cloud Managed Service for Prometheus
-     * in the cluster.
-     * 
- * - * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; - */ - public com.google.container.v1beta1.ManagedPrometheusConfig.Builder - getManagedPrometheusConfigBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getManagedPrometheusConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Enable Google Cloud Managed Service for Prometheus
-     * in the cluster.
-     * 
- * - * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; - */ - public com.google.container.v1beta1.ManagedPrometheusConfigOrBuilder - getManagedPrometheusConfigOrBuilder() { - if (managedPrometheusConfigBuilder_ != null) { - return managedPrometheusConfigBuilder_.getMessageOrBuilder(); - } else { - return managedPrometheusConfig_ == null - ? com.google.container.v1beta1.ManagedPrometheusConfig.getDefaultInstance() - : managedPrometheusConfig_; - } - } - /** - * - * - *
-     * Enable Google Cloud Managed Service for Prometheus
-     * in the cluster.
-     * 
- * - * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ManagedPrometheusConfig, - com.google.container.v1beta1.ManagedPrometheusConfig.Builder, - com.google.container.v1beta1.ManagedPrometheusConfigOrBuilder> - getManagedPrometheusConfigFieldBuilder() { - if (managedPrometheusConfigBuilder_ == null) { - managedPrometheusConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ManagedPrometheusConfig, - com.google.container.v1beta1.ManagedPrometheusConfig.Builder, - com.google.container.v1beta1.ManagedPrometheusConfigOrBuilder>( - getManagedPrometheusConfig(), getParentForChildren(), isClean()); - managedPrometheusConfig_ = null; - } - return managedPrometheusConfigBuilder_; - } - - private com.google.container.v1beta1.AdvancedDatapathObservabilityConfig - advancedDatapathObservabilityConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AdvancedDatapathObservabilityConfig, - com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.Builder, - com.google.container.v1beta1.AdvancedDatapathObservabilityConfigOrBuilder> - advancedDatapathObservabilityConfigBuilder_; - /** - * - * - *
-     * Configuration of Advanced Datapath Observability features.
-     * 
- * - * - * .google.container.v1beta1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; - * - * - * @return Whether the advancedDatapathObservabilityConfig field is set. - */ - public boolean hasAdvancedDatapathObservabilityConfig() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * Configuration of Advanced Datapath Observability features.
-     * 
- * - * - * .google.container.v1beta1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; - * - * - * @return The advancedDatapathObservabilityConfig. - */ - public com.google.container.v1beta1.AdvancedDatapathObservabilityConfig - getAdvancedDatapathObservabilityConfig() { - if (advancedDatapathObservabilityConfigBuilder_ == null) { - return advancedDatapathObservabilityConfig_ == null - ? com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.getDefaultInstance() - : advancedDatapathObservabilityConfig_; - } else { - return advancedDatapathObservabilityConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration of Advanced Datapath Observability features.
-     * 
- * - * - * .google.container.v1beta1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; - * - */ - public Builder setAdvancedDatapathObservabilityConfig( - com.google.container.v1beta1.AdvancedDatapathObservabilityConfig value) { - if (advancedDatapathObservabilityConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - advancedDatapathObservabilityConfig_ = value; - } else { - advancedDatapathObservabilityConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration of Advanced Datapath Observability features.
-     * 
- * - * - * .google.container.v1beta1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; - * - */ - public Builder setAdvancedDatapathObservabilityConfig( - com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.Builder builderForValue) { - if (advancedDatapathObservabilityConfigBuilder_ == null) { - advancedDatapathObservabilityConfig_ = builderForValue.build(); - } else { - advancedDatapathObservabilityConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration of Advanced Datapath Observability features.
-     * 
- * - * - * .google.container.v1beta1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; - * - */ - public Builder mergeAdvancedDatapathObservabilityConfig( - com.google.container.v1beta1.AdvancedDatapathObservabilityConfig value) { - if (advancedDatapathObservabilityConfigBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && advancedDatapathObservabilityConfig_ != null - && advancedDatapathObservabilityConfig_ - != com.google.container.v1beta1.AdvancedDatapathObservabilityConfig - .getDefaultInstance()) { - getAdvancedDatapathObservabilityConfigBuilder().mergeFrom(value); - } else { - advancedDatapathObservabilityConfig_ = value; - } - } else { - advancedDatapathObservabilityConfigBuilder_.mergeFrom(value); - } - if (advancedDatapathObservabilityConfig_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration of Advanced Datapath Observability features.
-     * 
- * - * - * .google.container.v1beta1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; - * - */ - public Builder clearAdvancedDatapathObservabilityConfig() { - bitField0_ = (bitField0_ & ~0x00000004); - advancedDatapathObservabilityConfig_ = null; - if (advancedDatapathObservabilityConfigBuilder_ != null) { - advancedDatapathObservabilityConfigBuilder_.dispose(); - advancedDatapathObservabilityConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Configuration of Advanced Datapath Observability features.
-     * 
- * - * - * .google.container.v1beta1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; - * - */ - public com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.Builder - getAdvancedDatapathObservabilityConfigBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getAdvancedDatapathObservabilityConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration of Advanced Datapath Observability features.
-     * 
- * - * - * .google.container.v1beta1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; - * - */ - public com.google.container.v1beta1.AdvancedDatapathObservabilityConfigOrBuilder - getAdvancedDatapathObservabilityConfigOrBuilder() { - if (advancedDatapathObservabilityConfigBuilder_ != null) { - return advancedDatapathObservabilityConfigBuilder_.getMessageOrBuilder(); - } else { - return advancedDatapathObservabilityConfig_ == null - ? com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.getDefaultInstance() - : advancedDatapathObservabilityConfig_; - } - } - /** - * - * - *
-     * Configuration of Advanced Datapath Observability features.
-     * 
- * - * - * .google.container.v1beta1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AdvancedDatapathObservabilityConfig, - com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.Builder, - com.google.container.v1beta1.AdvancedDatapathObservabilityConfigOrBuilder> - getAdvancedDatapathObservabilityConfigFieldBuilder() { - if (advancedDatapathObservabilityConfigBuilder_ == null) { - advancedDatapathObservabilityConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AdvancedDatapathObservabilityConfig, - com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.Builder, - com.google.container.v1beta1.AdvancedDatapathObservabilityConfigOrBuilder>( - getAdvancedDatapathObservabilityConfig(), getParentForChildren(), isClean()); - advancedDatapathObservabilityConfig_ = null; - } - return advancedDatapathObservabilityConfigBuilder_; - } - - @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.MonitoringConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.MonitoringConfig) - private static final com.google.container.v1beta1.MonitoringConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.MonitoringConfig(); - } - - public static com.google.container.v1beta1.MonitoringConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MonitoringConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.MonitoringConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringConfigOrBuilder.java deleted file mode 100644 index 1fc95d8ccb30..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringConfigOrBuilder.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface MonitoringConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.MonitoringConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Monitoring components configuration
-   * 
- * - * .google.container.v1beta1.MonitoringComponentConfig component_config = 1; - * - * @return Whether the componentConfig field is set. - */ - boolean hasComponentConfig(); - /** - * - * - *
-   * Monitoring components configuration
-   * 
- * - * .google.container.v1beta1.MonitoringComponentConfig component_config = 1; - * - * @return The componentConfig. - */ - com.google.container.v1beta1.MonitoringComponentConfig getComponentConfig(); - /** - * - * - *
-   * Monitoring components configuration
-   * 
- * - * .google.container.v1beta1.MonitoringComponentConfig component_config = 1; - */ - com.google.container.v1beta1.MonitoringComponentConfigOrBuilder getComponentConfigOrBuilder(); - - /** - * - * - *
-   * Enable Google Cloud Managed Service for Prometheus
-   * in the cluster.
-   * 
- * - * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; - * - * @return Whether the managedPrometheusConfig field is set. - */ - boolean hasManagedPrometheusConfig(); - /** - * - * - *
-   * Enable Google Cloud Managed Service for Prometheus
-   * in the cluster.
-   * 
- * - * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; - * - * @return The managedPrometheusConfig. - */ - com.google.container.v1beta1.ManagedPrometheusConfig getManagedPrometheusConfig(); - /** - * - * - *
-   * Enable Google Cloud Managed Service for Prometheus
-   * in the cluster.
-   * 
- * - * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; - */ - com.google.container.v1beta1.ManagedPrometheusConfigOrBuilder - getManagedPrometheusConfigOrBuilder(); - - /** - * - * - *
-   * Configuration of Advanced Datapath Observability features.
-   * 
- * - * - * .google.container.v1beta1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; - * - * - * @return Whether the advancedDatapathObservabilityConfig field is set. - */ - boolean hasAdvancedDatapathObservabilityConfig(); - /** - * - * - *
-   * Configuration of Advanced Datapath Observability features.
-   * 
- * - * - * .google.container.v1beta1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; - * - * - * @return The advancedDatapathObservabilityConfig. - */ - com.google.container.v1beta1.AdvancedDatapathObservabilityConfig - getAdvancedDatapathObservabilityConfig(); - /** - * - * - *
-   * Configuration of Advanced Datapath Observability features.
-   * 
- * - * - * .google.container.v1beta1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; - * - */ - com.google.container.v1beta1.AdvancedDatapathObservabilityConfigOrBuilder - getAdvancedDatapathObservabilityConfigOrBuilder(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfig.java deleted file mode 100644 index a3f9eb1c3978..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfig.java +++ /dev/null @@ -1,4159 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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; - privateIpv6GoogleAccess_ = 0; - inTransitEncryptionConfig_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NetworkConfig(); - } - - 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 interface ClusterNetworkPerformanceConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Specifies the total network bandwidth tier for the NodePool.
-     * 
- * - * - * optional .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @return Whether the totalEgressBandwidthTier field is set. - */ - boolean hasTotalEgressBandwidthTier(); - /** - * - * - *
-     * Specifies the total network bandwidth tier for the NodePool.
-     * 
- * - * - * optional .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @return The enum numeric value on the wire for totalEgressBandwidthTier. - */ - int getTotalEgressBandwidthTierValue(); - /** - * - * - *
-     * Specifies the total network bandwidth tier for the NodePool.
-     * 
- * - * - * optional .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @return The totalEgressBandwidthTier. - */ - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier - getTotalEgressBandwidthTier(); - } - /** - * - * - *
-   * Configuration of all network bandwidth tiers
-   * 
- * - * Protobuf type {@code google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig} - */ - public static final class ClusterNetworkPerformanceConfig - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig) - ClusterNetworkPerformanceConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use ClusterNetworkPerformanceConfig.newBuilder() to construct. - private ClusterNetworkPerformanceConfig( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ClusterNetworkPerformanceConfig() { - totalEgressBandwidthTier_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ClusterNetworkPerformanceConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NetworkConfig_ClusterNetworkPerformanceConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NetworkConfig_ClusterNetworkPerformanceConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.class, - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder - .class); - } - - /** - * - * - *
-     * Node network tier
-     * 
- * - * Protobuf enum {@code - * google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier} - */ - public enum Tier implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-       * Default value
-       * 
- * - * TIER_UNSPECIFIED = 0; - */ - TIER_UNSPECIFIED(0), - /** - * - * - *
-       * Higher bandwidth, actual values based on VM size.
-       * 
- * - * TIER_1 = 1; - */ - TIER_1(1), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-       * Default value
-       * 
- * - * TIER_UNSPECIFIED = 0; - */ - public static final int TIER_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-       * Higher bandwidth, actual values based on VM size.
-       * 
- * - * TIER_1 = 1; - */ - public static final int TIER_1_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 Tier 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 Tier forNumber(int value) { - switch (value) { - case 0: - return TIER_UNSPECIFIED; - case 1: - return TIER_1; - 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 Tier findValueByNumber(int number) { - return Tier.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.NetworkConfig.ClusterNetworkPerformanceConfig - .getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final Tier[] VALUES = values(); - - public static Tier 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 Tier(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier) - } - - private int bitField0_; - public static final int TOTAL_EGRESS_BANDWIDTH_TIER_FIELD_NUMBER = 1; - private int totalEgressBandwidthTier_ = 0; - /** - * - * - *
-     * Specifies the total network bandwidth tier for the NodePool.
-     * 
- * - * - * optional .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @return Whether the totalEgressBandwidthTier field is set. - */ - @java.lang.Override - public boolean hasTotalEgressBandwidthTier() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Specifies the total network bandwidth tier for the NodePool.
-     * 
- * - * - * optional .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @return The enum numeric value on the wire for totalEgressBandwidthTier. - */ - @java.lang.Override - public int getTotalEgressBandwidthTierValue() { - return totalEgressBandwidthTier_; - } - /** - * - * - *
-     * Specifies the total network bandwidth tier for the NodePool.
-     * 
- * - * - * optional .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @return The totalEgressBandwidthTier. - */ - @java.lang.Override - public com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier - getTotalEgressBandwidthTier() { - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier result = - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier.forNumber( - totalEgressBandwidthTier_); - return result == null - ? com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier - .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 (((bitField0_ & 0x00000001) != 0)) { - output.writeEnum(1, totalEgressBandwidthTier_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, totalEgressBandwidthTier_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.ClusterNetworkPerformanceConfig)) { - return super.equals(obj); - } - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig other = - (com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig) obj; - - if (hasTotalEgressBandwidthTier() != other.hasTotalEgressBandwidthTier()) return false; - if (hasTotalEgressBandwidthTier()) { - if (totalEgressBandwidthTier_ != other.totalEgressBandwidthTier_) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasTotalEgressBandwidthTier()) { - hash = (37 * hash) + TOTAL_EGRESS_BANDWIDTH_TIER_FIELD_NUMBER; - hash = (53 * hash) + totalEgressBandwidthTier_; - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig - parseFrom( - 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.ClusterNetworkPerformanceConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig - parseFrom( - com.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.ClusterNetworkPerformanceConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig - 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.ClusterNetworkPerformanceConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig - parseFrom( - java.io.InputStream 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.ClusterNetworkPerformanceConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig - parseDelimitedFrom( - java.io.InputStream 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.ClusterNetworkPerformanceConfig - 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.ClusterNetworkPerformanceConfig - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.ClusterNetworkPerformanceConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 all network bandwidth tiers
-     * 
- * - * Protobuf type {@code google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig) - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NetworkConfig_ClusterNetworkPerformanceConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NetworkConfig_ClusterNetworkPerformanceConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.class, - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder - .class); - } - - // Construct using - // com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - totalEgressBandwidthTier_ = 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_ClusterNetworkPerformanceConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig - getDefaultInstanceForType() { - return com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig build() { - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig - buildPartial() { - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig result = - new com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.totalEgressBandwidthTier_ = totalEgressBandwidthTier_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @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.ClusterNetworkPerformanceConfig) { - return mergeFrom( - (com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig other) { - if (other - == com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig - .getDefaultInstance()) return this; - if (other.hasTotalEgressBandwidthTier()) { - setTotalEgressBandwidthTier(other.getTotalEgressBandwidthTier()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - totalEgressBandwidthTier_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int totalEgressBandwidthTier_ = 0; - /** - * - * - *
-       * Specifies the total network bandwidth tier for the NodePool.
-       * 
- * - * - * optional .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @return Whether the totalEgressBandwidthTier field is set. - */ - @java.lang.Override - public boolean hasTotalEgressBandwidthTier() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-       * Specifies the total network bandwidth tier for the NodePool.
-       * 
- * - * - * optional .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @return The enum numeric value on the wire for totalEgressBandwidthTier. - */ - @java.lang.Override - public int getTotalEgressBandwidthTierValue() { - return totalEgressBandwidthTier_; - } - /** - * - * - *
-       * Specifies the total network bandwidth tier for the NodePool.
-       * 
- * - * - * optional .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @param value The enum numeric value on the wire for totalEgressBandwidthTier to set. - * @return This builder for chaining. - */ - public Builder setTotalEgressBandwidthTierValue(int value) { - totalEgressBandwidthTier_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * Specifies the total network bandwidth tier for the NodePool.
-       * 
- * - * - * optional .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @return The totalEgressBandwidthTier. - */ - @java.lang.Override - public com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier - getTotalEgressBandwidthTier() { - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier result = - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier - .forNumber(totalEgressBandwidthTier_); - return result == null - ? com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier - .UNRECOGNIZED - : result; - } - /** - * - * - *
-       * Specifies the total network bandwidth tier for the NodePool.
-       * 
- * - * - * optional .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @param value The totalEgressBandwidthTier to set. - * @return This builder for chaining. - */ - public Builder setTotalEgressBandwidthTier( - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - totalEgressBandwidthTier_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * Specifies the total network bandwidth tier for the NodePool.
-       * 
- * - * - * optional .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @return This builder for chaining. - */ - public Builder clearTotalEgressBandwidthTier() { - bitField0_ = (bitField0_ & ~0x00000001); - totalEgressBandwidthTier_ = 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.ClusterNetworkPerformanceConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig) - private static final com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig(); - } - - public static com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterNetworkPerformanceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.ClusterNetworkPerformanceConfig - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int bitField0_; - public static final int NETWORK_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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_ = false; - /** - * - * - *
-   * 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 ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * 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 defaultSnatStatus_ == null - ? com.google.container.v1beta1.DefaultSnatStatus.getDefaultInstance() - : defaultSnatStatus_; - } - - public static final int ENABLE_L4ILB_SUBSETTING_FIELD_NUMBER = 10; - private boolean enableL4IlbSubsetting_ = false; - /** - * - * - *
-   * Whether L4ILB Subsetting is enabled for this cluster.
-   * 
- * - * bool enable_l4ilb_subsetting = 10; - * - * @return The enableL4ilbSubsetting. - */ - @java.lang.Override - public boolean getEnableL4IlbSubsetting() { - return enableL4IlbSubsetting_; - } - - public static final int DATAPATH_PROVIDER_FIELD_NUMBER = 11; - private int datapathProvider_ = 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; - * - * @return The datapathProvider. - */ - @java.lang.Override - public com.google.container.v1beta1.DatapathProvider getDatapathProvider() { - com.google.container.v1beta1.DatapathProvider result = - com.google.container.v1beta1.DatapathProvider.forNumber(datapathProvider_); - return result == null ? com.google.container.v1beta1.DatapathProvider.UNRECOGNIZED : result; - } - - public static final int PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER = 12; - private int privateIpv6GoogleAccess_ = 0; - /** - * - * - *
-   * The desired state of IPv6 connectivity to Google Services.
-   * By default, no private IPv6 access to or from Google Services (all access
-   * will be via IPv4)
-   * 
- * - * .google.container.v1beta1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; - * - * @return The enum numeric value on the wire for privateIpv6GoogleAccess. - */ - @java.lang.Override - public int getPrivateIpv6GoogleAccessValue() { - return privateIpv6GoogleAccess_; - } - /** - * - * - *
-   * The desired state of IPv6 connectivity to Google Services.
-   * By default, no private IPv6 access to or from Google Services (all access
-   * will be via IPv4)
-   * 
- * - * .google.container.v1beta1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; - * - * @return The privateIpv6GoogleAccess. - */ - @java.lang.Override - public com.google.container.v1beta1.PrivateIPv6GoogleAccess getPrivateIpv6GoogleAccess() { - com.google.container.v1beta1.PrivateIPv6GoogleAccess result = - com.google.container.v1beta1.PrivateIPv6GoogleAccess.forNumber(privateIpv6GoogleAccess_); - return result == null - ? com.google.container.v1beta1.PrivateIPv6GoogleAccess.UNRECOGNIZED - : result; - } - - public static final int DNS_CONFIG_FIELD_NUMBER = 13; - private com.google.container.v1beta1.DNSConfig dnsConfig_; - /** - * - * - *
-   * DNSConfig contains clusterDNS config for this cluster.
-   * 
- * - * .google.container.v1beta1.DNSConfig dns_config = 13; - * - * @return Whether the dnsConfig field is set. - */ - @java.lang.Override - public boolean hasDnsConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * DNSConfig contains clusterDNS config for this cluster.
-   * 
- * - * .google.container.v1beta1.DNSConfig dns_config = 13; - * - * @return The dnsConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.DNSConfig getDnsConfig() { - return dnsConfig_ == null - ? com.google.container.v1beta1.DNSConfig.getDefaultInstance() - : dnsConfig_; - } - /** - * - * - *
-   * DNSConfig contains clusterDNS config for this cluster.
-   * 
- * - * .google.container.v1beta1.DNSConfig dns_config = 13; - */ - @java.lang.Override - public com.google.container.v1beta1.DNSConfigOrBuilder getDnsConfigOrBuilder() { - return dnsConfig_ == null - ? com.google.container.v1beta1.DNSConfig.getDefaultInstance() - : dnsConfig_; - } - - public static final int SERVICE_EXTERNAL_IPS_CONFIG_FIELD_NUMBER = 15; - private com.google.container.v1beta1.ServiceExternalIPsConfig serviceExternalIpsConfig_; - /** - * - * - *
-   * ServiceExternalIPsConfig specifies if services with externalIPs field are
-   * blocked or not.
-   * 
- * - * .google.container.v1beta1.ServiceExternalIPsConfig service_external_ips_config = 15; - * - * - * @return Whether the serviceExternalIpsConfig field is set. - */ - @java.lang.Override - public boolean hasServiceExternalIpsConfig() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-   * ServiceExternalIPsConfig specifies if services with externalIPs field are
-   * blocked or not.
-   * 
- * - * .google.container.v1beta1.ServiceExternalIPsConfig service_external_ips_config = 15; - * - * - * @return The serviceExternalIpsConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.ServiceExternalIPsConfig getServiceExternalIpsConfig() { - return serviceExternalIpsConfig_ == null - ? com.google.container.v1beta1.ServiceExternalIPsConfig.getDefaultInstance() - : serviceExternalIpsConfig_; - } - /** - * - * - *
-   * ServiceExternalIPsConfig specifies if services with externalIPs field are
-   * blocked or not.
-   * 
- * - * .google.container.v1beta1.ServiceExternalIPsConfig service_external_ips_config = 15; - * - */ - @java.lang.Override - public com.google.container.v1beta1.ServiceExternalIPsConfigOrBuilder - getServiceExternalIpsConfigOrBuilder() { - return serviceExternalIpsConfig_ == null - ? com.google.container.v1beta1.ServiceExternalIPsConfig.getDefaultInstance() - : serviceExternalIpsConfig_; - } - - public static final int GATEWAY_API_CONFIG_FIELD_NUMBER = 16; - private com.google.container.v1beta1.GatewayAPIConfig gatewayApiConfig_; - /** - * - * - *
-   * GatewayAPIConfig contains the desired config of Gateway API on this
-   * cluster.
-   * 
- * - * .google.container.v1beta1.GatewayAPIConfig gateway_api_config = 16; - * - * @return Whether the gatewayApiConfig field is set. - */ - @java.lang.Override - public boolean hasGatewayApiConfig() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-   * GatewayAPIConfig contains the desired config of Gateway API on this
-   * cluster.
-   * 
- * - * .google.container.v1beta1.GatewayAPIConfig gateway_api_config = 16; - * - * @return The gatewayApiConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.GatewayAPIConfig getGatewayApiConfig() { - return gatewayApiConfig_ == null - ? com.google.container.v1beta1.GatewayAPIConfig.getDefaultInstance() - : gatewayApiConfig_; - } - /** - * - * - *
-   * GatewayAPIConfig contains the desired config of Gateway API on this
-   * cluster.
-   * 
- * - * .google.container.v1beta1.GatewayAPIConfig gateway_api_config = 16; - */ - @java.lang.Override - public com.google.container.v1beta1.GatewayAPIConfigOrBuilder getGatewayApiConfigOrBuilder() { - return gatewayApiConfig_ == null - ? com.google.container.v1beta1.GatewayAPIConfig.getDefaultInstance() - : gatewayApiConfig_; - } - - public static final int ENABLE_MULTI_NETWORKING_FIELD_NUMBER = 17; - private boolean enableMultiNetworking_ = false; - /** - * - * - *
-   * Whether multi-networking is enabled for this cluster.
-   * 
- * - * bool enable_multi_networking = 17; - * - * @return The enableMultiNetworking. - */ - @java.lang.Override - public boolean getEnableMultiNetworking() { - return enableMultiNetworking_; - } - - public static final int NETWORK_PERFORMANCE_CONFIG_FIELD_NUMBER = 18; - private com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig - networkPerformanceConfig_; - /** - * - * - *
-   * Network bandwidth tier configuration.
-   * 
- * - * - * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; - * - * - * @return Whether the networkPerformanceConfig field is set. - */ - @java.lang.Override - public boolean hasNetworkPerformanceConfig() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-   * Network bandwidth tier configuration.
-   * 
- * - * - * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; - * - * - * @return The networkPerformanceConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig - getNetworkPerformanceConfig() { - return networkPerformanceConfig_ == null - ? com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig - .getDefaultInstance() - : networkPerformanceConfig_; - } - /** - * - * - *
-   * Network bandwidth tier configuration.
-   * 
- * - * - * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; - * - */ - @java.lang.Override - public com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder - getNetworkPerformanceConfigOrBuilder() { - return networkPerformanceConfig_ == null - ? com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig - .getDefaultInstance() - : networkPerformanceConfig_; - } - - public static final int ENABLE_FQDN_NETWORK_POLICY_FIELD_NUMBER = 19; - private boolean enableFqdnNetworkPolicy_ = false; - /** - * - * - *
-   * Whether FQDN Network Policy is enabled on this cluster.
-   * 
- * - * optional bool enable_fqdn_network_policy = 19; - * - * @return Whether the enableFqdnNetworkPolicy field is set. - */ - @java.lang.Override - public boolean hasEnableFqdnNetworkPolicy() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * - * - *
-   * Whether FQDN Network Policy is enabled on this cluster.
-   * 
- * - * optional bool enable_fqdn_network_policy = 19; - * - * @return The enableFqdnNetworkPolicy. - */ - @java.lang.Override - public boolean getEnableFqdnNetworkPolicy() { - return enableFqdnNetworkPolicy_; - } - - public static final int IN_TRANSIT_ENCRYPTION_CONFIG_FIELD_NUMBER = 20; - private int inTransitEncryptionConfig_ = 0; - /** - * - * - *
-   * Specify the details of in-transit encryption.
-   * 
- * - * - * optional .google.container.v1beta1.InTransitEncryptionConfig in_transit_encryption_config = 20; - * - * - * @return Whether the inTransitEncryptionConfig field is set. - */ - @java.lang.Override - public boolean hasInTransitEncryptionConfig() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * - * - *
-   * Specify the details of in-transit encryption.
-   * 
- * - * - * optional .google.container.v1beta1.InTransitEncryptionConfig in_transit_encryption_config = 20; - * - * - * @return The enum numeric value on the wire for inTransitEncryptionConfig. - */ - @java.lang.Override - public int getInTransitEncryptionConfigValue() { - return inTransitEncryptionConfig_; - } - /** - * - * - *
-   * Specify the details of in-transit encryption.
-   * 
- * - * - * optional .google.container.v1beta1.InTransitEncryptionConfig in_transit_encryption_config = 20; - * - * - * @return The inTransitEncryptionConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.InTransitEncryptionConfig getInTransitEncryptionConfig() { - com.google.container.v1beta1.InTransitEncryptionConfig result = - com.google.container.v1beta1.InTransitEncryptionConfig.forNumber( - inTransitEncryptionConfig_); - return result == null - ? com.google.container.v1beta1.InTransitEncryptionConfig.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subnetwork_); - } - if (enableIntraNodeVisibility_ != false) { - output.writeBool(5, enableIntraNodeVisibility_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(7, getDefaultSnatStatus()); - } - if (enableL4IlbSubsetting_ != false) { - output.writeBool(10, enableL4IlbSubsetting_); - } - if (datapathProvider_ - != com.google.container.v1beta1.DatapathProvider.DATAPATH_PROVIDER_UNSPECIFIED - .getNumber()) { - output.writeEnum(11, datapathProvider_); - } - if (privateIpv6GoogleAccess_ - != com.google.container.v1beta1.PrivateIPv6GoogleAccess - .PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED - .getNumber()) { - output.writeEnum(12, privateIpv6GoogleAccess_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(13, getDnsConfig()); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(15, getServiceExternalIpsConfig()); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(16, getGatewayApiConfig()); - } - if (enableMultiNetworking_ != false) { - output.writeBool(17, enableMultiNetworking_); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeMessage(18, getNetworkPerformanceConfig()); - } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeBool(19, enableFqdnNetworkPolicy_); - } - if (((bitField0_ & 0x00000040) != 0)) { - output.writeEnum(20, inTransitEncryptionConfig_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, network_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subnetwork_); - } - if (enableIntraNodeVisibility_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, enableIntraNodeVisibility_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getDefaultSnatStatus()); - } - if (enableL4IlbSubsetting_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, enableL4IlbSubsetting_); - } - if (datapathProvider_ - != com.google.container.v1beta1.DatapathProvider.DATAPATH_PROVIDER_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, datapathProvider_); - } - if (privateIpv6GoogleAccess_ - != com.google.container.v1beta1.PrivateIPv6GoogleAccess - .PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, privateIpv6GoogleAccess_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getDnsConfig()); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 15, getServiceExternalIpsConfig()); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getGatewayApiConfig()); - } - if (enableMultiNetworking_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(17, enableMultiNetworking_); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 18, getNetworkPerformanceConfig()); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(19, enableFqdnNetworkPolicy_); - } - if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(20, inTransitEncryptionConfig_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (getEnableL4IlbSubsetting() != other.getEnableL4IlbSubsetting()) return false; - if (datapathProvider_ != other.datapathProvider_) return false; - if (privateIpv6GoogleAccess_ != other.privateIpv6GoogleAccess_) return false; - if (hasDnsConfig() != other.hasDnsConfig()) return false; - if (hasDnsConfig()) { - if (!getDnsConfig().equals(other.getDnsConfig())) return false; - } - if (hasServiceExternalIpsConfig() != other.hasServiceExternalIpsConfig()) return false; - if (hasServiceExternalIpsConfig()) { - if (!getServiceExternalIpsConfig().equals(other.getServiceExternalIpsConfig())) return false; - } - if (hasGatewayApiConfig() != other.hasGatewayApiConfig()) return false; - if (hasGatewayApiConfig()) { - if (!getGatewayApiConfig().equals(other.getGatewayApiConfig())) return false; - } - if (getEnableMultiNetworking() != other.getEnableMultiNetworking()) return false; - if (hasNetworkPerformanceConfig() != other.hasNetworkPerformanceConfig()) return false; - if (hasNetworkPerformanceConfig()) { - if (!getNetworkPerformanceConfig().equals(other.getNetworkPerformanceConfig())) return false; - } - if (hasEnableFqdnNetworkPolicy() != other.hasEnableFqdnNetworkPolicy()) return false; - if (hasEnableFqdnNetworkPolicy()) { - if (getEnableFqdnNetworkPolicy() != other.getEnableFqdnNetworkPolicy()) return false; - } - if (hasInTransitEncryptionConfig() != other.hasInTransitEncryptionConfig()) return false; - if (hasInTransitEncryptionConfig()) { - if (inTransitEncryptionConfig_ != other.inTransitEncryptionConfig_) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ENABLE_L4ILB_SUBSETTING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableL4IlbSubsetting()); - hash = (37 * hash) + DATAPATH_PROVIDER_FIELD_NUMBER; - hash = (53 * hash) + datapathProvider_; - hash = (37 * hash) + PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER; - hash = (53 * hash) + privateIpv6GoogleAccess_; - if (hasDnsConfig()) { - hash = (37 * hash) + DNS_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDnsConfig().hashCode(); - } - if (hasServiceExternalIpsConfig()) { - hash = (37 * hash) + SERVICE_EXTERNAL_IPS_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getServiceExternalIpsConfig().hashCode(); - } - if (hasGatewayApiConfig()) { - hash = (37 * hash) + GATEWAY_API_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getGatewayApiConfig().hashCode(); - } - hash = (37 * hash) + ENABLE_MULTI_NETWORKING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableMultiNetworking()); - if (hasNetworkPerformanceConfig()) { - hash = (37 * hash) + NETWORK_PERFORMANCE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getNetworkPerformanceConfig().hashCode(); - } - if (hasEnableFqdnNetworkPolicy()) { - hash = (37 * hash) + ENABLE_FQDN_NETWORK_POLICY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableFqdnNetworkPolicy()); - } - if (hasInTransitEncryptionConfig()) { - hash = (37 * hash) + IN_TRANSIT_ENCRYPTION_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + inTransitEncryptionConfig_; - } - hash = (29 * hash) + getUnknownFields().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) { - getDefaultSnatStatusFieldBuilder(); - getDnsConfigFieldBuilder(); - getServiceExternalIpsConfigFieldBuilder(); - getGatewayApiConfigFieldBuilder(); - getNetworkPerformanceConfigFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - network_ = ""; - subnetwork_ = ""; - enableIntraNodeVisibility_ = false; - defaultSnatStatus_ = null; - if (defaultSnatStatusBuilder_ != null) { - defaultSnatStatusBuilder_.dispose(); - defaultSnatStatusBuilder_ = null; - } - enableL4IlbSubsetting_ = false; - datapathProvider_ = 0; - privateIpv6GoogleAccess_ = 0; - dnsConfig_ = null; - if (dnsConfigBuilder_ != null) { - dnsConfigBuilder_.dispose(); - dnsConfigBuilder_ = null; - } - serviceExternalIpsConfig_ = null; - if (serviceExternalIpsConfigBuilder_ != null) { - serviceExternalIpsConfigBuilder_.dispose(); - serviceExternalIpsConfigBuilder_ = null; - } - gatewayApiConfig_ = null; - if (gatewayApiConfigBuilder_ != null) { - gatewayApiConfigBuilder_.dispose(); - gatewayApiConfigBuilder_ = null; - } - enableMultiNetworking_ = false; - networkPerformanceConfig_ = null; - if (networkPerformanceConfigBuilder_ != null) { - networkPerformanceConfigBuilder_.dispose(); - networkPerformanceConfigBuilder_ = null; - } - enableFqdnNetworkPolicy_ = false; - inTransitEncryptionConfig_ = 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.NetworkConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.network_ = network_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.subnetwork_ = subnetwork_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.enableIntraNodeVisibility_ = enableIntraNodeVisibility_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.defaultSnatStatus_ = - defaultSnatStatusBuilder_ == null - ? defaultSnatStatus_ - : defaultSnatStatusBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.enableL4IlbSubsetting_ = enableL4IlbSubsetting_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.datapathProvider_ = datapathProvider_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.privateIpv6GoogleAccess_ = privateIpv6GoogleAccess_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.dnsConfig_ = dnsConfigBuilder_ == null ? dnsConfig_ : dnsConfigBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.serviceExternalIpsConfig_ = - serviceExternalIpsConfigBuilder_ == null - ? serviceExternalIpsConfig_ - : serviceExternalIpsConfigBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.gatewayApiConfig_ = - gatewayApiConfigBuilder_ == null ? gatewayApiConfig_ : gatewayApiConfigBuilder_.build(); - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.enableMultiNetworking_ = enableMultiNetworking_; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.networkPerformanceConfig_ = - networkPerformanceConfigBuilder_ == null - ? networkPerformanceConfig_ - : networkPerformanceConfigBuilder_.build(); - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.enableFqdnNetworkPolicy_ = enableFqdnNetworkPolicy_; - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.inTransitEncryptionConfig_ = inTransitEncryptionConfig_; - to_bitField0_ |= 0x00000040; - } - result.bitField0_ |= to_bitField0_; - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getSubnetwork().isEmpty()) { - subnetwork_ = other.subnetwork_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getEnableIntraNodeVisibility() != false) { - setEnableIntraNodeVisibility(other.getEnableIntraNodeVisibility()); - } - if (other.hasDefaultSnatStatus()) { - mergeDefaultSnatStatus(other.getDefaultSnatStatus()); - } - if (other.getEnableL4IlbSubsetting() != false) { - setEnableL4IlbSubsetting(other.getEnableL4IlbSubsetting()); - } - if (other.datapathProvider_ != 0) { - setDatapathProviderValue(other.getDatapathProviderValue()); - } - if (other.privateIpv6GoogleAccess_ != 0) { - setPrivateIpv6GoogleAccessValue(other.getPrivateIpv6GoogleAccessValue()); - } - if (other.hasDnsConfig()) { - mergeDnsConfig(other.getDnsConfig()); - } - if (other.hasServiceExternalIpsConfig()) { - mergeServiceExternalIpsConfig(other.getServiceExternalIpsConfig()); - } - if (other.hasGatewayApiConfig()) { - mergeGatewayApiConfig(other.getGatewayApiConfig()); - } - if (other.getEnableMultiNetworking() != false) { - setEnableMultiNetworking(other.getEnableMultiNetworking()); - } - if (other.hasNetworkPerformanceConfig()) { - mergeNetworkPerformanceConfig(other.getNetworkPerformanceConfig()); - } - if (other.hasEnableFqdnNetworkPolicy()) { - setEnableFqdnNetworkPolicy(other.getEnableFqdnNetworkPolicy()); - } - if (other.hasInTransitEncryptionConfig()) { - setInTransitEncryptionConfig(other.getInTransitEncryptionConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - network_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - subnetwork_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 40: - { - enableIntraNodeVisibility_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 40 - case 58: - { - input.readMessage( - getDefaultSnatStatusFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 58 - case 80: - { - enableL4IlbSubsetting_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 80 - case 88: - { - datapathProvider_ = input.readEnum(); - bitField0_ |= 0x00000020; - break; - } // case 88 - case 96: - { - privateIpv6GoogleAccess_ = input.readEnum(); - bitField0_ |= 0x00000040; - break; - } // case 96 - case 106: - { - input.readMessage(getDnsConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 106 - case 122: - { - input.readMessage( - getServiceExternalIpsConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 122 - case 130: - { - input.readMessage( - getGatewayApiConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 130 - case 136: - { - enableMultiNetworking_ = input.readBool(); - bitField0_ |= 0x00000400; - break; - } // case 136 - case 146: - { - input.readMessage( - getNetworkPerformanceConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; - break; - } // case 146 - case 152: - { - enableFqdnNetworkPolicy_ = input.readBool(); - bitField0_ |= 0x00001000; - break; - } // case 152 - case 160: - { - inTransitEncryptionConfig_ = input.readEnum(); - bitField0_ |= 0x00002000; - break; - } // case 160 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - 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; - bitField0_ |= 0x00000002; - 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(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - 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; - bitField0_ |= 0x00000004; - 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() { - bitField0_ = (bitField0_ & ~0x00000004); - 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 ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-     * 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; - } else { - defaultSnatStatusBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - 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(); - } else { - defaultSnatStatusBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - 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 (((bitField0_ & 0x00000008) != 0) - && defaultSnatStatus_ != null - && defaultSnatStatus_ - != com.google.container.v1beta1.DefaultSnatStatus.getDefaultInstance()) { - getDefaultSnatStatusBuilder().mergeFrom(value); - } else { - defaultSnatStatus_ = value; - } - } else { - defaultSnatStatusBuilder_.mergeFrom(value); - } - if (defaultSnatStatus_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - 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() { - bitField0_ = (bitField0_ & ~0x00000008); - defaultSnatStatus_ = null; - if (defaultSnatStatusBuilder_ != null) { - defaultSnatStatusBuilder_.dispose(); - defaultSnatStatusBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000008; - 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 boolean enableL4IlbSubsetting_; - /** - * - * - *
-     * Whether L4ILB Subsetting is enabled for this cluster.
-     * 
- * - * bool enable_l4ilb_subsetting = 10; - * - * @return The enableL4ilbSubsetting. - */ - @java.lang.Override - public boolean getEnableL4IlbSubsetting() { - return enableL4IlbSubsetting_; - } - /** - * - * - *
-     * Whether L4ILB Subsetting is enabled for this cluster.
-     * 
- * - * bool enable_l4ilb_subsetting = 10; - * - * @param value The enableL4ilbSubsetting to set. - * @return This builder for chaining. - */ - public Builder setEnableL4IlbSubsetting(boolean value) { - - enableL4IlbSubsetting_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether L4ILB Subsetting is enabled for this cluster.
-     * 
- * - * bool enable_l4ilb_subsetting = 10; - * - * @return This builder for chaining. - */ - public Builder clearEnableL4IlbSubsetting() { - bitField0_ = (bitField0_ & ~0x00000010); - enableL4IlbSubsetting_ = false; - onChanged(); - return this; - } - - private int datapathProvider_ = 0; - /** - * - * - *
-     * The desired datapath provider for this cluster. By default, uses the
-     * IPTables-based kube-proxy implementation.
-     * 
- * - * .google.container.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; - bitField0_ |= 0x00000020; - 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() { - com.google.container.v1beta1.DatapathProvider result = - com.google.container.v1beta1.DatapathProvider.forNumber(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(); - } - bitField0_ |= 0x00000020; - 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() { - bitField0_ = (bitField0_ & ~0x00000020); - datapathProvider_ = 0; - onChanged(); - return this; - } - - private int privateIpv6GoogleAccess_ = 0; - /** - * - * - *
-     * The desired state of IPv6 connectivity to Google Services.
-     * By default, no private IPv6 access to or from Google Services (all access
-     * will be via IPv4)
-     * 
- * - * .google.container.v1beta1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; - * - * - * @return The enum numeric value on the wire for privateIpv6GoogleAccess. - */ - @java.lang.Override - public int getPrivateIpv6GoogleAccessValue() { - return privateIpv6GoogleAccess_; - } - /** - * - * - *
-     * The desired state of IPv6 connectivity to Google Services.
-     * By default, no private IPv6 access to or from Google Services (all access
-     * will be via IPv4)
-     * 
- * - * .google.container.v1beta1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; - * - * - * @param value The enum numeric value on the wire for privateIpv6GoogleAccess to set. - * @return This builder for chaining. - */ - public Builder setPrivateIpv6GoogleAccessValue(int value) { - privateIpv6GoogleAccess_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired state of IPv6 connectivity to Google Services.
-     * By default, no private IPv6 access to or from Google Services (all access
-     * will be via IPv4)
-     * 
- * - * .google.container.v1beta1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; - * - * - * @return The privateIpv6GoogleAccess. - */ - @java.lang.Override - public com.google.container.v1beta1.PrivateIPv6GoogleAccess getPrivateIpv6GoogleAccess() { - com.google.container.v1beta1.PrivateIPv6GoogleAccess result = - com.google.container.v1beta1.PrivateIPv6GoogleAccess.forNumber(privateIpv6GoogleAccess_); - return result == null - ? com.google.container.v1beta1.PrivateIPv6GoogleAccess.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * The desired state of IPv6 connectivity to Google Services.
-     * By default, no private IPv6 access to or from Google Services (all access
-     * will be via IPv4)
-     * 
- * - * .google.container.v1beta1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; - * - * - * @param value The privateIpv6GoogleAccess to set. - * @return This builder for chaining. - */ - public Builder setPrivateIpv6GoogleAccess( - com.google.container.v1beta1.PrivateIPv6GoogleAccess value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - privateIpv6GoogleAccess_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The desired state of IPv6 connectivity to Google Services.
-     * By default, no private IPv6 access to or from Google Services (all access
-     * will be via IPv4)
-     * 
- * - * .google.container.v1beta1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; - * - * - * @return This builder for chaining. - */ - public Builder clearPrivateIpv6GoogleAccess() { - bitField0_ = (bitField0_ & ~0x00000040); - privateIpv6GoogleAccess_ = 0; - onChanged(); - return this; - } - - private com.google.container.v1beta1.DNSConfig dnsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.DNSConfig, - com.google.container.v1beta1.DNSConfig.Builder, - com.google.container.v1beta1.DNSConfigOrBuilder> - dnsConfigBuilder_; - /** - * - * - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1beta1.DNSConfig dns_config = 13; - * - * @return Whether the dnsConfig field is set. - */ - public boolean hasDnsConfig() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * - * - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1beta1.DNSConfig dns_config = 13; - * - * @return The dnsConfig. - */ - public com.google.container.v1beta1.DNSConfig getDnsConfig() { - if (dnsConfigBuilder_ == null) { - return dnsConfig_ == null - ? com.google.container.v1beta1.DNSConfig.getDefaultInstance() - : dnsConfig_; - } else { - return dnsConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1beta1.DNSConfig dns_config = 13; - */ - public Builder setDnsConfig(com.google.container.v1beta1.DNSConfig value) { - if (dnsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dnsConfig_ = value; - } else { - dnsConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1beta1.DNSConfig dns_config = 13; - */ - public Builder setDnsConfig(com.google.container.v1beta1.DNSConfig.Builder builderForValue) { - if (dnsConfigBuilder_ == null) { - dnsConfig_ = builderForValue.build(); - } else { - dnsConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1beta1.DNSConfig dns_config = 13; - */ - public Builder mergeDnsConfig(com.google.container.v1beta1.DNSConfig value) { - if (dnsConfigBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && dnsConfig_ != null - && dnsConfig_ != com.google.container.v1beta1.DNSConfig.getDefaultInstance()) { - getDnsConfigBuilder().mergeFrom(value); - } else { - dnsConfig_ = value; - } - } else { - dnsConfigBuilder_.mergeFrom(value); - } - if (dnsConfig_ != null) { - bitField0_ |= 0x00000080; - onChanged(); - } - return this; - } - /** - * - * - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1beta1.DNSConfig dns_config = 13; - */ - public Builder clearDnsConfig() { - bitField0_ = (bitField0_ & ~0x00000080); - dnsConfig_ = null; - if (dnsConfigBuilder_ != null) { - dnsConfigBuilder_.dispose(); - dnsConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1beta1.DNSConfig dns_config = 13; - */ - public com.google.container.v1beta1.DNSConfig.Builder getDnsConfigBuilder() { - bitField0_ |= 0x00000080; - onChanged(); - return getDnsConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1beta1.DNSConfig dns_config = 13; - */ - public com.google.container.v1beta1.DNSConfigOrBuilder getDnsConfigOrBuilder() { - if (dnsConfigBuilder_ != null) { - return dnsConfigBuilder_.getMessageOrBuilder(); - } else { - return dnsConfig_ == null - ? com.google.container.v1beta1.DNSConfig.getDefaultInstance() - : dnsConfig_; - } - } - /** - * - * - *
-     * DNSConfig contains clusterDNS config for this cluster.
-     * 
- * - * .google.container.v1beta1.DNSConfig dns_config = 13; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.DNSConfig, - com.google.container.v1beta1.DNSConfig.Builder, - com.google.container.v1beta1.DNSConfigOrBuilder> - getDnsConfigFieldBuilder() { - if (dnsConfigBuilder_ == null) { - dnsConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.DNSConfig, - com.google.container.v1beta1.DNSConfig.Builder, - com.google.container.v1beta1.DNSConfigOrBuilder>( - getDnsConfig(), getParentForChildren(), isClean()); - dnsConfig_ = null; - } - return dnsConfigBuilder_; - } - - private com.google.container.v1beta1.ServiceExternalIPsConfig serviceExternalIpsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ServiceExternalIPsConfig, - com.google.container.v1beta1.ServiceExternalIPsConfig.Builder, - com.google.container.v1beta1.ServiceExternalIPsConfigOrBuilder> - serviceExternalIpsConfigBuilder_; - /** - * - * - *
-     * ServiceExternalIPsConfig specifies if services with externalIPs field are
-     * blocked or not.
-     * 
- * - * .google.container.v1beta1.ServiceExternalIPsConfig service_external_ips_config = 15; - * - * - * @return Whether the serviceExternalIpsConfig field is set. - */ - public boolean hasServiceExternalIpsConfig() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * - * - *
-     * ServiceExternalIPsConfig specifies if services with externalIPs field are
-     * blocked or not.
-     * 
- * - * .google.container.v1beta1.ServiceExternalIPsConfig service_external_ips_config = 15; - * - * - * @return The serviceExternalIpsConfig. - */ - public com.google.container.v1beta1.ServiceExternalIPsConfig getServiceExternalIpsConfig() { - if (serviceExternalIpsConfigBuilder_ == null) { - return serviceExternalIpsConfig_ == null - ? com.google.container.v1beta1.ServiceExternalIPsConfig.getDefaultInstance() - : serviceExternalIpsConfig_; - } else { - return serviceExternalIpsConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * ServiceExternalIPsConfig specifies if services with externalIPs field are
-     * blocked or not.
-     * 
- * - * .google.container.v1beta1.ServiceExternalIPsConfig service_external_ips_config = 15; - * - */ - public Builder setServiceExternalIpsConfig( - com.google.container.v1beta1.ServiceExternalIPsConfig value) { - if (serviceExternalIpsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - serviceExternalIpsConfig_ = value; - } else { - serviceExternalIpsConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * - * - *
-     * ServiceExternalIPsConfig specifies if services with externalIPs field are
-     * blocked or not.
-     * 
- * - * .google.container.v1beta1.ServiceExternalIPsConfig service_external_ips_config = 15; - * - */ - public Builder setServiceExternalIpsConfig( - com.google.container.v1beta1.ServiceExternalIPsConfig.Builder builderForValue) { - if (serviceExternalIpsConfigBuilder_ == null) { - serviceExternalIpsConfig_ = builderForValue.build(); - } else { - serviceExternalIpsConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * - * - *
-     * ServiceExternalIPsConfig specifies if services with externalIPs field are
-     * blocked or not.
-     * 
- * - * .google.container.v1beta1.ServiceExternalIPsConfig service_external_ips_config = 15; - * - */ - public Builder mergeServiceExternalIpsConfig( - com.google.container.v1beta1.ServiceExternalIPsConfig value) { - if (serviceExternalIpsConfigBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && serviceExternalIpsConfig_ != null - && serviceExternalIpsConfig_ - != com.google.container.v1beta1.ServiceExternalIPsConfig.getDefaultInstance()) { - getServiceExternalIpsConfigBuilder().mergeFrom(value); - } else { - serviceExternalIpsConfig_ = value; - } - } else { - serviceExternalIpsConfigBuilder_.mergeFrom(value); - } - if (serviceExternalIpsConfig_ != null) { - bitField0_ |= 0x00000100; - onChanged(); - } - return this; - } - /** - * - * - *
-     * ServiceExternalIPsConfig specifies if services with externalIPs field are
-     * blocked or not.
-     * 
- * - * .google.container.v1beta1.ServiceExternalIPsConfig service_external_ips_config = 15; - * - */ - public Builder clearServiceExternalIpsConfig() { - bitField0_ = (bitField0_ & ~0x00000100); - serviceExternalIpsConfig_ = null; - if (serviceExternalIpsConfigBuilder_ != null) { - serviceExternalIpsConfigBuilder_.dispose(); - serviceExternalIpsConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * ServiceExternalIPsConfig specifies if services with externalIPs field are
-     * blocked or not.
-     * 
- * - * .google.container.v1beta1.ServiceExternalIPsConfig service_external_ips_config = 15; - * - */ - public com.google.container.v1beta1.ServiceExternalIPsConfig.Builder - getServiceExternalIpsConfigBuilder() { - bitField0_ |= 0x00000100; - onChanged(); - return getServiceExternalIpsConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * ServiceExternalIPsConfig specifies if services with externalIPs field are
-     * blocked or not.
-     * 
- * - * .google.container.v1beta1.ServiceExternalIPsConfig service_external_ips_config = 15; - * - */ - public com.google.container.v1beta1.ServiceExternalIPsConfigOrBuilder - getServiceExternalIpsConfigOrBuilder() { - if (serviceExternalIpsConfigBuilder_ != null) { - return serviceExternalIpsConfigBuilder_.getMessageOrBuilder(); - } else { - return serviceExternalIpsConfig_ == null - ? com.google.container.v1beta1.ServiceExternalIPsConfig.getDefaultInstance() - : serviceExternalIpsConfig_; - } - } - /** - * - * - *
-     * ServiceExternalIPsConfig specifies if services with externalIPs field are
-     * blocked or not.
-     * 
- * - * .google.container.v1beta1.ServiceExternalIPsConfig service_external_ips_config = 15; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ServiceExternalIPsConfig, - com.google.container.v1beta1.ServiceExternalIPsConfig.Builder, - com.google.container.v1beta1.ServiceExternalIPsConfigOrBuilder> - getServiceExternalIpsConfigFieldBuilder() { - if (serviceExternalIpsConfigBuilder_ == null) { - serviceExternalIpsConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ServiceExternalIPsConfig, - com.google.container.v1beta1.ServiceExternalIPsConfig.Builder, - com.google.container.v1beta1.ServiceExternalIPsConfigOrBuilder>( - getServiceExternalIpsConfig(), getParentForChildren(), isClean()); - serviceExternalIpsConfig_ = null; - } - return serviceExternalIpsConfigBuilder_; - } - - private com.google.container.v1beta1.GatewayAPIConfig gatewayApiConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GatewayAPIConfig, - com.google.container.v1beta1.GatewayAPIConfig.Builder, - com.google.container.v1beta1.GatewayAPIConfigOrBuilder> - gatewayApiConfigBuilder_; - /** - * - * - *
-     * GatewayAPIConfig contains the desired config of Gateway API on this
-     * cluster.
-     * 
- * - * .google.container.v1beta1.GatewayAPIConfig gateway_api_config = 16; - * - * @return Whether the gatewayApiConfig field is set. - */ - public boolean hasGatewayApiConfig() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * - * - *
-     * GatewayAPIConfig contains the desired config of Gateway API on this
-     * cluster.
-     * 
- * - * .google.container.v1beta1.GatewayAPIConfig gateway_api_config = 16; - * - * @return The gatewayApiConfig. - */ - public com.google.container.v1beta1.GatewayAPIConfig getGatewayApiConfig() { - if (gatewayApiConfigBuilder_ == null) { - return gatewayApiConfig_ == null - ? com.google.container.v1beta1.GatewayAPIConfig.getDefaultInstance() - : gatewayApiConfig_; - } else { - return gatewayApiConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * GatewayAPIConfig contains the desired config of Gateway API on this
-     * cluster.
-     * 
- * - * .google.container.v1beta1.GatewayAPIConfig gateway_api_config = 16; - */ - public Builder setGatewayApiConfig(com.google.container.v1beta1.GatewayAPIConfig value) { - if (gatewayApiConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gatewayApiConfig_ = value; - } else { - gatewayApiConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * - * - *
-     * GatewayAPIConfig contains the desired config of Gateway API on this
-     * cluster.
-     * 
- * - * .google.container.v1beta1.GatewayAPIConfig gateway_api_config = 16; - */ - public Builder setGatewayApiConfig( - com.google.container.v1beta1.GatewayAPIConfig.Builder builderForValue) { - if (gatewayApiConfigBuilder_ == null) { - gatewayApiConfig_ = builderForValue.build(); - } else { - gatewayApiConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * - * - *
-     * GatewayAPIConfig contains the desired config of Gateway API on this
-     * cluster.
-     * 
- * - * .google.container.v1beta1.GatewayAPIConfig gateway_api_config = 16; - */ - public Builder mergeGatewayApiConfig(com.google.container.v1beta1.GatewayAPIConfig value) { - if (gatewayApiConfigBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && gatewayApiConfig_ != null - && gatewayApiConfig_ - != com.google.container.v1beta1.GatewayAPIConfig.getDefaultInstance()) { - getGatewayApiConfigBuilder().mergeFrom(value); - } else { - gatewayApiConfig_ = value; - } - } else { - gatewayApiConfigBuilder_.mergeFrom(value); - } - if (gatewayApiConfig_ != null) { - bitField0_ |= 0x00000200; - onChanged(); - } - return this; - } - /** - * - * - *
-     * GatewayAPIConfig contains the desired config of Gateway API on this
-     * cluster.
-     * 
- * - * .google.container.v1beta1.GatewayAPIConfig gateway_api_config = 16; - */ - public Builder clearGatewayApiConfig() { - bitField0_ = (bitField0_ & ~0x00000200); - gatewayApiConfig_ = null; - if (gatewayApiConfigBuilder_ != null) { - gatewayApiConfigBuilder_.dispose(); - gatewayApiConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * GatewayAPIConfig contains the desired config of Gateway API on this
-     * cluster.
-     * 
- * - * .google.container.v1beta1.GatewayAPIConfig gateway_api_config = 16; - */ - public com.google.container.v1beta1.GatewayAPIConfig.Builder getGatewayApiConfigBuilder() { - bitField0_ |= 0x00000200; - onChanged(); - return getGatewayApiConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * GatewayAPIConfig contains the desired config of Gateway API on this
-     * cluster.
-     * 
- * - * .google.container.v1beta1.GatewayAPIConfig gateway_api_config = 16; - */ - public com.google.container.v1beta1.GatewayAPIConfigOrBuilder getGatewayApiConfigOrBuilder() { - if (gatewayApiConfigBuilder_ != null) { - return gatewayApiConfigBuilder_.getMessageOrBuilder(); - } else { - return gatewayApiConfig_ == null - ? com.google.container.v1beta1.GatewayAPIConfig.getDefaultInstance() - : gatewayApiConfig_; - } - } - /** - * - * - *
-     * GatewayAPIConfig contains the desired config of Gateway API on this
-     * cluster.
-     * 
- * - * .google.container.v1beta1.GatewayAPIConfig gateway_api_config = 16; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GatewayAPIConfig, - com.google.container.v1beta1.GatewayAPIConfig.Builder, - com.google.container.v1beta1.GatewayAPIConfigOrBuilder> - getGatewayApiConfigFieldBuilder() { - if (gatewayApiConfigBuilder_ == null) { - gatewayApiConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GatewayAPIConfig, - com.google.container.v1beta1.GatewayAPIConfig.Builder, - com.google.container.v1beta1.GatewayAPIConfigOrBuilder>( - getGatewayApiConfig(), getParentForChildren(), isClean()); - gatewayApiConfig_ = null; - } - return gatewayApiConfigBuilder_; - } - - private boolean enableMultiNetworking_; - /** - * - * - *
-     * Whether multi-networking is enabled for this cluster.
-     * 
- * - * bool enable_multi_networking = 17; - * - * @return The enableMultiNetworking. - */ - @java.lang.Override - public boolean getEnableMultiNetworking() { - return enableMultiNetworking_; - } - /** - * - * - *
-     * Whether multi-networking is enabled for this cluster.
-     * 
- * - * bool enable_multi_networking = 17; - * - * @param value The enableMultiNetworking to set. - * @return This builder for chaining. - */ - public Builder setEnableMultiNetworking(boolean value) { - - enableMultiNetworking_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether multi-networking is enabled for this cluster.
-     * 
- * - * bool enable_multi_networking = 17; - * - * @return This builder for chaining. - */ - public Builder clearEnableMultiNetworking() { - bitField0_ = (bitField0_ & ~0x00000400); - enableMultiNetworking_ = false; - onChanged(); - return this; - } - - private com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig - networkPerformanceConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig, - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder, - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder> - networkPerformanceConfigBuilder_; - /** - * - * - *
-     * Network bandwidth tier configuration.
-     * 
- * - * - * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; - * - * - * @return Whether the networkPerformanceConfig field is set. - */ - public boolean hasNetworkPerformanceConfig() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - * - * - *
-     * Network bandwidth tier configuration.
-     * 
- * - * - * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; - * - * - * @return The networkPerformanceConfig. - */ - public com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig - getNetworkPerformanceConfig() { - if (networkPerformanceConfigBuilder_ == null) { - return networkPerformanceConfig_ == null - ? com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig - .getDefaultInstance() - : networkPerformanceConfig_; - } else { - return networkPerformanceConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Network bandwidth tier configuration.
-     * 
- * - * - * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; - * - */ - public Builder setNetworkPerformanceConfig( - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig value) { - if (networkPerformanceConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - networkPerformanceConfig_ = value; - } else { - networkPerformanceConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - * - * - *
-     * Network bandwidth tier configuration.
-     * 
- * - * - * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; - * - */ - public Builder setNetworkPerformanceConfig( - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder - builderForValue) { - if (networkPerformanceConfigBuilder_ == null) { - networkPerformanceConfig_ = builderForValue.build(); - } else { - networkPerformanceConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - * - * - *
-     * Network bandwidth tier configuration.
-     * 
- * - * - * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; - * - */ - public Builder mergeNetworkPerformanceConfig( - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig value) { - if (networkPerformanceConfigBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) - && networkPerformanceConfig_ != null - && networkPerformanceConfig_ - != com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig - .getDefaultInstance()) { - getNetworkPerformanceConfigBuilder().mergeFrom(value); - } else { - networkPerformanceConfig_ = value; - } - } else { - networkPerformanceConfigBuilder_.mergeFrom(value); - } - if (networkPerformanceConfig_ != null) { - bitField0_ |= 0x00000800; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Network bandwidth tier configuration.
-     * 
- * - * - * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; - * - */ - public Builder clearNetworkPerformanceConfig() { - bitField0_ = (bitField0_ & ~0x00000800); - networkPerformanceConfig_ = null; - if (networkPerformanceConfigBuilder_ != null) { - networkPerformanceConfigBuilder_.dispose(); - networkPerformanceConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Network bandwidth tier configuration.
-     * 
- * - * - * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; - * - */ - public com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder - getNetworkPerformanceConfigBuilder() { - bitField0_ |= 0x00000800; - onChanged(); - return getNetworkPerformanceConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Network bandwidth tier configuration.
-     * 
- * - * - * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; - * - */ - public com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder - getNetworkPerformanceConfigOrBuilder() { - if (networkPerformanceConfigBuilder_ != null) { - return networkPerformanceConfigBuilder_.getMessageOrBuilder(); - } else { - return networkPerformanceConfig_ == null - ? com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig - .getDefaultInstance() - : networkPerformanceConfig_; - } - } - /** - * - * - *
-     * Network bandwidth tier configuration.
-     * 
- * - * - * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig, - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder, - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder> - getNetworkPerformanceConfigFieldBuilder() { - if (networkPerformanceConfigBuilder_ == null) { - networkPerformanceConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig, - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder, - com.google.container.v1beta1.NetworkConfig - .ClusterNetworkPerformanceConfigOrBuilder>( - getNetworkPerformanceConfig(), getParentForChildren(), isClean()); - networkPerformanceConfig_ = null; - } - return networkPerformanceConfigBuilder_; - } - - private boolean enableFqdnNetworkPolicy_; - /** - * - * - *
-     * Whether FQDN Network Policy is enabled on this cluster.
-     * 
- * - * optional bool enable_fqdn_network_policy = 19; - * - * @return Whether the enableFqdnNetworkPolicy field is set. - */ - @java.lang.Override - public boolean hasEnableFqdnNetworkPolicy() { - return ((bitField0_ & 0x00001000) != 0); - } - /** - * - * - *
-     * Whether FQDN Network Policy is enabled on this cluster.
-     * 
- * - * optional bool enable_fqdn_network_policy = 19; - * - * @return The enableFqdnNetworkPolicy. - */ - @java.lang.Override - public boolean getEnableFqdnNetworkPolicy() { - return enableFqdnNetworkPolicy_; - } - /** - * - * - *
-     * Whether FQDN Network Policy is enabled on this cluster.
-     * 
- * - * optional bool enable_fqdn_network_policy = 19; - * - * @param value The enableFqdnNetworkPolicy to set. - * @return This builder for chaining. - */ - public Builder setEnableFqdnNetworkPolicy(boolean value) { - - enableFqdnNetworkPolicy_ = value; - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether FQDN Network Policy is enabled on this cluster.
-     * 
- * - * optional bool enable_fqdn_network_policy = 19; - * - * @return This builder for chaining. - */ - public Builder clearEnableFqdnNetworkPolicy() { - bitField0_ = (bitField0_ & ~0x00001000); - enableFqdnNetworkPolicy_ = false; - onChanged(); - return this; - } - - private int inTransitEncryptionConfig_ = 0; - /** - * - * - *
-     * Specify the details of in-transit encryption.
-     * 
- * - * - * optional .google.container.v1beta1.InTransitEncryptionConfig in_transit_encryption_config = 20; - * - * - * @return Whether the inTransitEncryptionConfig field is set. - */ - @java.lang.Override - public boolean hasInTransitEncryptionConfig() { - return ((bitField0_ & 0x00002000) != 0); - } - /** - * - * - *
-     * Specify the details of in-transit encryption.
-     * 
- * - * - * optional .google.container.v1beta1.InTransitEncryptionConfig in_transit_encryption_config = 20; - * - * - * @return The enum numeric value on the wire for inTransitEncryptionConfig. - */ - @java.lang.Override - public int getInTransitEncryptionConfigValue() { - return inTransitEncryptionConfig_; - } - /** - * - * - *
-     * Specify the details of in-transit encryption.
-     * 
- * - * - * optional .google.container.v1beta1.InTransitEncryptionConfig in_transit_encryption_config = 20; - * - * - * @param value The enum numeric value on the wire for inTransitEncryptionConfig to set. - * @return This builder for chaining. - */ - public Builder setInTransitEncryptionConfigValue(int value) { - inTransitEncryptionConfig_ = value; - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - * - * - *
-     * Specify the details of in-transit encryption.
-     * 
- * - * - * optional .google.container.v1beta1.InTransitEncryptionConfig in_transit_encryption_config = 20; - * - * - * @return The inTransitEncryptionConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.InTransitEncryptionConfig getInTransitEncryptionConfig() { - com.google.container.v1beta1.InTransitEncryptionConfig result = - com.google.container.v1beta1.InTransitEncryptionConfig.forNumber( - inTransitEncryptionConfig_); - return result == null - ? com.google.container.v1beta1.InTransitEncryptionConfig.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Specify the details of in-transit encryption.
-     * 
- * - * - * optional .google.container.v1beta1.InTransitEncryptionConfig in_transit_encryption_config = 20; - * - * - * @param value The inTransitEncryptionConfig to set. - * @return This builder for chaining. - */ - public Builder setInTransitEncryptionConfig( - com.google.container.v1beta1.InTransitEncryptionConfig value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00002000; - inTransitEncryptionConfig_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Specify the details of in-transit encryption.
-     * 
- * - * - * optional .google.container.v1beta1.InTransitEncryptionConfig in_transit_encryption_config = 20; - * - * - * @return This builder for chaining. - */ - public Builder clearInTransitEncryptionConfig() { - bitField0_ = (bitField0_ & ~0x00002000); - inTransitEncryptionConfig_ = 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfigOrBuilder.java deleted file mode 100644 index edc8f9773fe8..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfigOrBuilder.java +++ /dev/null @@ -1,454 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - - /** - * - * - *
-   * Whether L4ILB Subsetting is enabled for this cluster.
-   * 
- * - * bool enable_l4ilb_subsetting = 10; - * - * @return The enableL4ilbSubsetting. - */ - boolean getEnableL4IlbSubsetting(); - - /** - * - * - *
-   * The desired datapath provider for this cluster. By default, uses the
-   * IPTables-based kube-proxy implementation.
-   * 
- * - * .google.container.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(); - - /** - * - * - *
-   * The desired state of IPv6 connectivity to Google Services.
-   * By default, no private IPv6 access to or from Google Services (all access
-   * will be via IPv4)
-   * 
- * - * .google.container.v1beta1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; - * - * @return The enum numeric value on the wire for privateIpv6GoogleAccess. - */ - int getPrivateIpv6GoogleAccessValue(); - /** - * - * - *
-   * The desired state of IPv6 connectivity to Google Services.
-   * By default, no private IPv6 access to or from Google Services (all access
-   * will be via IPv4)
-   * 
- * - * .google.container.v1beta1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; - * - * @return The privateIpv6GoogleAccess. - */ - com.google.container.v1beta1.PrivateIPv6GoogleAccess getPrivateIpv6GoogleAccess(); - - /** - * - * - *
-   * DNSConfig contains clusterDNS config for this cluster.
-   * 
- * - * .google.container.v1beta1.DNSConfig dns_config = 13; - * - * @return Whether the dnsConfig field is set. - */ - boolean hasDnsConfig(); - /** - * - * - *
-   * DNSConfig contains clusterDNS config for this cluster.
-   * 
- * - * .google.container.v1beta1.DNSConfig dns_config = 13; - * - * @return The dnsConfig. - */ - com.google.container.v1beta1.DNSConfig getDnsConfig(); - /** - * - * - *
-   * DNSConfig contains clusterDNS config for this cluster.
-   * 
- * - * .google.container.v1beta1.DNSConfig dns_config = 13; - */ - com.google.container.v1beta1.DNSConfigOrBuilder getDnsConfigOrBuilder(); - - /** - * - * - *
-   * ServiceExternalIPsConfig specifies if services with externalIPs field are
-   * blocked or not.
-   * 
- * - * .google.container.v1beta1.ServiceExternalIPsConfig service_external_ips_config = 15; - * - * - * @return Whether the serviceExternalIpsConfig field is set. - */ - boolean hasServiceExternalIpsConfig(); - /** - * - * - *
-   * ServiceExternalIPsConfig specifies if services with externalIPs field are
-   * blocked or not.
-   * 
- * - * .google.container.v1beta1.ServiceExternalIPsConfig service_external_ips_config = 15; - * - * - * @return The serviceExternalIpsConfig. - */ - com.google.container.v1beta1.ServiceExternalIPsConfig getServiceExternalIpsConfig(); - /** - * - * - *
-   * ServiceExternalIPsConfig specifies if services with externalIPs field are
-   * blocked or not.
-   * 
- * - * .google.container.v1beta1.ServiceExternalIPsConfig service_external_ips_config = 15; - * - */ - com.google.container.v1beta1.ServiceExternalIPsConfigOrBuilder - getServiceExternalIpsConfigOrBuilder(); - - /** - * - * - *
-   * GatewayAPIConfig contains the desired config of Gateway API on this
-   * cluster.
-   * 
- * - * .google.container.v1beta1.GatewayAPIConfig gateway_api_config = 16; - * - * @return Whether the gatewayApiConfig field is set. - */ - boolean hasGatewayApiConfig(); - /** - * - * - *
-   * GatewayAPIConfig contains the desired config of Gateway API on this
-   * cluster.
-   * 
- * - * .google.container.v1beta1.GatewayAPIConfig gateway_api_config = 16; - * - * @return The gatewayApiConfig. - */ - com.google.container.v1beta1.GatewayAPIConfig getGatewayApiConfig(); - /** - * - * - *
-   * GatewayAPIConfig contains the desired config of Gateway API on this
-   * cluster.
-   * 
- * - * .google.container.v1beta1.GatewayAPIConfig gateway_api_config = 16; - */ - com.google.container.v1beta1.GatewayAPIConfigOrBuilder getGatewayApiConfigOrBuilder(); - - /** - * - * - *
-   * Whether multi-networking is enabled for this cluster.
-   * 
- * - * bool enable_multi_networking = 17; - * - * @return The enableMultiNetworking. - */ - boolean getEnableMultiNetworking(); - - /** - * - * - *
-   * Network bandwidth tier configuration.
-   * 
- * - * - * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; - * - * - * @return Whether the networkPerformanceConfig field is set. - */ - boolean hasNetworkPerformanceConfig(); - /** - * - * - *
-   * Network bandwidth tier configuration.
-   * 
- * - * - * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; - * - * - * @return The networkPerformanceConfig. - */ - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig - getNetworkPerformanceConfig(); - /** - * - * - *
-   * Network bandwidth tier configuration.
-   * 
- * - * - * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; - * - */ - com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder - getNetworkPerformanceConfigOrBuilder(); - - /** - * - * - *
-   * Whether FQDN Network Policy is enabled on this cluster.
-   * 
- * - * optional bool enable_fqdn_network_policy = 19; - * - * @return Whether the enableFqdnNetworkPolicy field is set. - */ - boolean hasEnableFqdnNetworkPolicy(); - /** - * - * - *
-   * Whether FQDN Network Policy is enabled on this cluster.
-   * 
- * - * optional bool enable_fqdn_network_policy = 19; - * - * @return The enableFqdnNetworkPolicy. - */ - boolean getEnableFqdnNetworkPolicy(); - - /** - * - * - *
-   * Specify the details of in-transit encryption.
-   * 
- * - * - * optional .google.container.v1beta1.InTransitEncryptionConfig in_transit_encryption_config = 20; - * - * - * @return Whether the inTransitEncryptionConfig field is set. - */ - boolean hasInTransitEncryptionConfig(); - /** - * - * - *
-   * Specify the details of in-transit encryption.
-   * 
- * - * - * optional .google.container.v1beta1.InTransitEncryptionConfig in_transit_encryption_config = 20; - * - * - * @return The enum numeric value on the wire for inTransitEncryptionConfig. - */ - int getInTransitEncryptionConfigValue(); - /** - * - * - *
-   * Specify the details of in-transit encryption.
-   * 
- * - * - * optional .google.container.v1beta1.InTransitEncryptionConfig in_transit_encryption_config = 20; - * - * - * @return The inTransitEncryptionConfig. - */ - com.google.container.v1beta1.InTransitEncryptionConfig getInTransitEncryptionConfig(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicy.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicy.java deleted file mode 100644 index d6af758d836f..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicy.java +++ /dev/null @@ -1,826 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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_ = 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; - * - * @return The provider. - */ - @java.lang.Override - public com.google.container.v1beta1.NetworkPolicy.Provider getProvider() { - com.google.container.v1beta1.NetworkPolicy.Provider result = - com.google.container.v1beta1.NetworkPolicy.Provider.forNumber(provider_); - return result == null - ? com.google.container.v1beta1.NetworkPolicy.Provider.UNRECOGNIZED - : result; - } - - public static final int ENABLED_FIELD_NUMBER = 2; - private boolean enabled_ = false; - /** - * - * - *
-   * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.NetworkPolicy result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.provider_ = provider_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.enabled_ = enabled_; - } - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - provider_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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() { - com.google.container.v1beta1.NetworkPolicy.Provider result = - com.google.container.v1beta1.NetworkPolicy.Provider.forNumber(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(); - } - bitField0_ |= 0x00000001; - 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() { - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether network policy is enabled on the cluster.
-     * 
- * - * bool enabled = 2; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000002); - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicyConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicyConfig.java deleted file mode 100644 index 7c380ea75e48..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicyConfig.java +++ /dev/null @@ -1,539 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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_ = false; - /** - * - * - *
-   * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.NetworkPolicyConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.disabled_ = disabled_; - } - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - disabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether NetworkPolicy is enabled for this cluster.
-     * 
- * - * bool disabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearDisabled() { - bitField0_ = (bitField0_ & ~0x00000001); - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicyConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicyConfigOrBuilder.java deleted file mode 100644 index a7bb3e8b007b..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicyConfigOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicyOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicyOrBuilder.java deleted file mode 100644 index 353a9966a6b9..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicyOrBuilder.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkTags.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkTags.java deleted file mode 100644 index fe95d05175c1..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkTags.java +++ /dev/null @@ -1,722 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * Collection of Compute Engine network tags that can be applied to a node's
- * underlying VM instance. (See `tags` field in
- * [`NodeConfig`](/kubernetes-engine/docs/reference/rest/v1/NodeConfig)).
- * 
- * - * Protobuf type {@code google.container.v1beta1.NetworkTags} - */ -public final class NetworkTags extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.NetworkTags) - NetworkTagsOrBuilder { - private static final long serialVersionUID = 0L; - // Use NetworkTags.newBuilder() to construct. - private NetworkTags(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NetworkTags() { - tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NetworkTags(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NetworkTags_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NetworkTags_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.NetworkTags.class, - com.google.container.v1beta1.NetworkTags.Builder.class); - } - - public static final int TAGS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList tags_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * List of network tags.
-   * 
- * - * repeated string tags = 1; - * - * @return A list containing the tags. - */ - public com.google.protobuf.ProtocolStringList getTagsList() { - return tags_; - } - /** - * - * - *
-   * List of network tags.
-   * 
- * - * repeated string tags = 1; - * - * @return The count of tags. - */ - public int getTagsCount() { - return tags_.size(); - } - /** - * - * - *
-   * List of network tags.
-   * 
- * - * repeated string tags = 1; - * - * @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); - } - /** - * - * - *
-   * List of network tags.
-   * 
- * - * repeated string tags = 1; - * - * @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); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - 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 < tags_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tags_.getRaw(i)); - } - getUnknownFields().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 < tags_.size(); i++) { - dataSize += computeStringSizeNoTag(tags_.getRaw(i)); - } - size += dataSize; - size += 1 * getTagsList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.NetworkTags)) { - return super.equals(obj); - } - com.google.container.v1beta1.NetworkTags other = (com.google.container.v1beta1.NetworkTags) obj; - - if (!getTagsList().equals(other.getTagsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTagsCount() > 0) { - hash = (37 * hash) + TAGS_FIELD_NUMBER; - hash = (53 * hash) + getTagsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.NetworkTags parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NetworkTags parseFrom( - 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.NetworkTags parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NetworkTags parseFrom( - com.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.NetworkTags parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NetworkTags parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.NetworkTags parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NetworkTags parseFrom( - java.io.InputStream 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.NetworkTags parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NetworkTags parseDelimitedFrom( - java.io.InputStream 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.NetworkTags parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NetworkTags parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.NetworkTags prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Collection of Compute Engine network tags that can be applied to a node's
-   * underlying VM instance. (See `tags` field in
-   * [`NodeConfig`](/kubernetes-engine/docs/reference/rest/v1/NodeConfig)).
-   * 
- * - * Protobuf type {@code google.container.v1beta1.NetworkTags} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NetworkTags) - com.google.container.v1beta1.NetworkTagsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NetworkTags_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NetworkTags_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.NetworkTags.class, - com.google.container.v1beta1.NetworkTags.Builder.class); - } - - // Construct using com.google.container.v1beta1.NetworkTags.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NetworkTags_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.NetworkTags getDefaultInstanceForType() { - return com.google.container.v1beta1.NetworkTags.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.NetworkTags build() { - com.google.container.v1beta1.NetworkTags result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.NetworkTags buildPartial() { - com.google.container.v1beta1.NetworkTags result = - new com.google.container.v1beta1.NetworkTags(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.NetworkTags result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - tags_.makeImmutable(); - result.tags_ = tags_; - } - } - - @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.NetworkTags) { - return mergeFrom((com.google.container.v1beta1.NetworkTags) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.NetworkTags other) { - if (other == com.google.container.v1beta1.NetworkTags.getDefaultInstance()) return this; - if (!other.tags_.isEmpty()) { - if (tags_.isEmpty()) { - tags_ = other.tags_; - bitField0_ |= 0x00000001; - } else { - ensureTagsIsMutable(); - tags_.addAll(other.tags_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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(); - ensureTagsIsMutable(); - tags_.add(s); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.protobuf.LazyStringArrayList tags_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureTagsIsMutable() { - if (!tags_.isModifiable()) { - tags_ = new com.google.protobuf.LazyStringArrayList(tags_); - } - bitField0_ |= 0x00000001; - } - /** - * - * - *
-     * List of network tags.
-     * 
- * - * repeated string tags = 1; - * - * @return A list containing the tags. - */ - public com.google.protobuf.ProtocolStringList getTagsList() { - tags_.makeImmutable(); - return tags_; - } - /** - * - * - *
-     * List of network tags.
-     * 
- * - * repeated string tags = 1; - * - * @return The count of tags. - */ - public int getTagsCount() { - return tags_.size(); - } - /** - * - * - *
-     * List of network tags.
-     * 
- * - * repeated string tags = 1; - * - * @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); - } - /** - * - * - *
-     * List of network tags.
-     * 
- * - * repeated string tags = 1; - * - * @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); - } - /** - * - * - *
-     * List of network tags.
-     * 
- * - * repeated string tags = 1; - * - * @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); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * List of network tags.
-     * 
- * - * repeated string tags = 1; - * - * @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); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * List of network tags.
-     * 
- * - * repeated string tags = 1; - * - * @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_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * List of network tags.
-     * 
- * - * repeated string tags = 1; - * - * @return This builder for chaining. - */ - public Builder clearTags() { - tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; - onChanged(); - return this; - } - /** - * - * - *
-     * List of network tags.
-     * 
- * - * repeated string tags = 1; - * - * @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); - bitField0_ |= 0x00000001; - 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.NetworkTags) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.NetworkTags) - private static final com.google.container.v1beta1.NetworkTags DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.NetworkTags(); - } - - public static com.google.container.v1beta1.NetworkTags getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NetworkTags parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.NetworkTags getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkTagsOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkTagsOrBuilder.java deleted file mode 100644 index fc43cc3c7044..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkTagsOrBuilder.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface NetworkTagsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NetworkTags) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * List of network tags.
-   * 
- * - * repeated string tags = 1; - * - * @return A list containing the tags. - */ - java.util.List getTagsList(); - /** - * - * - *
-   * List of network tags.
-   * 
- * - * repeated string tags = 1; - * - * @return The count of tags. - */ - int getTagsCount(); - /** - * - * - *
-   * List of network tags.
-   * 
- * - * repeated string tags = 1; - * - * @param index The index of the element to return. - * @return The tags at the given index. - */ - java.lang.String getTags(int index); - /** - * - * - *
-   * List of network tags.
-   * 
- * - * repeated string tags = 1; - * - * @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); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfig.java deleted file mode 100644 index 46b12cd0b9a5..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfig.java +++ /dev/null @@ -1,11089 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * Parameters that describe the nodes in a cluster.
- *
- * GKE Autopilot clusters do not
- * recognize parameters in `NodeConfig`. Use
- * [AutoprovisioningNodePoolDefaults][google.container.v1beta1.AutoprovisioningNodePoolDefaults]
- * instead.
- * 
- * - * 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.emptyList(); - serviceAccount_ = ""; - imageType_ = ""; - tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - 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(); - } - - 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.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 4: - return internalGetMetadata(); - case 6: - return internalGetLabels(); - case 37: - 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_NodeConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.NodeConfig.class, - com.google.container.v1beta1.NodeConfig.Builder.class); - } - - private int bitField0_; - public static final int MACHINE_TYPE_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - 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_ = 0; - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList oauthScopes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - 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, - ""); - } - - @SuppressWarnings("serial") - 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"
-   *
-   * 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 NullPointerException("map key"); - } - 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"
-   *
-   * 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"
-   *
-   * 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 /* nullable */ java.lang.String getMetadataOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - 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"
-   *
-   * 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 NullPointerException("map key"); - } - 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; - - @SuppressWarnings("serial") - 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. Please see
-   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-   * available image types.
-   * 
- * - * 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. Please see
-   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-   * available image types.
-   * 
- * - * 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, - ""); - } - - @SuppressWarnings("serial") - 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 NullPointerException("map key"); - } - 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 /* nullable */ java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - 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 NullPointerException("map key"); - } - 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_ = 0; - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList tags_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * 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_ = false; - /** - * - * - *
-   * Whether the nodes are created as preemptible VM instances. See:
-   * https://cloud.google.com/compute/docs/instances/preemptible for more
-   * information 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; - - @SuppressWarnings("serial") - 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 ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * 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 sandboxConfig_ == null - ? com.google.container.v1beta1.SandboxConfig.getDefaultInstance() - : sandboxConfig_; - } - - public static final int NODE_GROUP_FIELD_NUMBER = 18; - - @SuppressWarnings("serial") - 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 ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * 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 reservationAffinity_ == null - ? com.google.container.v1beta1.ReservationAffinity.getDefaultInstance() - : reservationAffinity_; - } - - public static final int DISK_TYPE_FIELD_NUMBER = 12; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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 ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-   * 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 workloadMetadataConfig_ == null - ? com.google.container.v1beta1.WorkloadMetadataConfig.getDefaultInstance() - : workloadMetadataConfig_; - } - - public static final int TAINTS_FIELD_NUMBER = 15; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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 ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-   * 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 shieldedInstanceConfig_ == null - ? com.google.container.v1beta1.ShieldedInstanceConfig.getDefaultInstance() - : shieldedInstanceConfig_; - } - - 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 ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-   * 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 linuxNodeConfig_ == null - ? com.google.container.v1beta1.LinuxNodeConfig.getDefaultInstance() - : linuxNodeConfig_; - } - - 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 ((bitField0_ & 0x00000020) != 0); - } - /** - * - * - *
-   * 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 kubeletConfig_ == null - ? com.google.container.v1beta1.NodeKubeletConfig.getDefaultInstance() - : kubeletConfig_; - } - - 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 ((bitField0_ & 0x00000040) != 0); - } - /** - * - * - *
-   * 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 ephemeralStorageConfig_ == null - ? com.google.container.v1beta1.EphemeralStorageConfig.getDefaultInstance() - : ephemeralStorageConfig_; - } - - public static final int GCFS_CONFIG_FIELD_NUMBER = 25; - private com.google.container.v1beta1.GcfsConfig gcfsConfig_; - /** - * - * - *
-   * GCFS (Google Container File System) configs.
-   * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 25; - * - * @return Whether the gcfsConfig field is set. - */ - @java.lang.Override - public boolean hasGcfsConfig() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * - * - *
-   * GCFS (Google Container File System) configs.
-   * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 25; - * - * @return The gcfsConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.GcfsConfig getGcfsConfig() { - return gcfsConfig_ == null - ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() - : gcfsConfig_; - } - /** - * - * - *
-   * GCFS (Google Container File System) configs.
-   * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 25; - */ - @java.lang.Override - public com.google.container.v1beta1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { - return gcfsConfig_ == null - ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() - : gcfsConfig_; - } - - public static final int ADVANCED_MACHINE_FEATURES_FIELD_NUMBER = 26; - private com.google.container.v1beta1.AdvancedMachineFeatures advancedMachineFeatures_; - /** - * - * - *
-   * Advanced features for the Compute Engine VM.
-   * 
- * - * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; - * - * @return Whether the advancedMachineFeatures field is set. - */ - @java.lang.Override - public boolean hasAdvancedMachineFeatures() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * - * - *
-   * Advanced features for the Compute Engine VM.
-   * 
- * - * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; - * - * @return The advancedMachineFeatures. - */ - @java.lang.Override - public com.google.container.v1beta1.AdvancedMachineFeatures getAdvancedMachineFeatures() { - return advancedMachineFeatures_ == null - ? com.google.container.v1beta1.AdvancedMachineFeatures.getDefaultInstance() - : advancedMachineFeatures_; - } - /** - * - * - *
-   * Advanced features for the Compute Engine VM.
-   * 
- * - * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; - */ - @java.lang.Override - public com.google.container.v1beta1.AdvancedMachineFeaturesOrBuilder - getAdvancedMachineFeaturesOrBuilder() { - return advancedMachineFeatures_ == null - ? com.google.container.v1beta1.AdvancedMachineFeatures.getDefaultInstance() - : advancedMachineFeatures_; - } - - public static final int GVNIC_FIELD_NUMBER = 29; - private com.google.container.v1beta1.VirtualNIC gvnic_; - /** - * - * - *
-   * Enable or disable gvnic on the node pool.
-   * 
- * - * .google.container.v1beta1.VirtualNIC gvnic = 29; - * - * @return Whether the gvnic field is set. - */ - @java.lang.Override - public boolean hasGvnic() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * - * - *
-   * Enable or disable gvnic on the node pool.
-   * 
- * - * .google.container.v1beta1.VirtualNIC gvnic = 29; - * - * @return The gvnic. - */ - @java.lang.Override - public com.google.container.v1beta1.VirtualNIC getGvnic() { - return gvnic_ == null ? com.google.container.v1beta1.VirtualNIC.getDefaultInstance() : gvnic_; - } - /** - * - * - *
-   * Enable or disable gvnic on the node pool.
-   * 
- * - * .google.container.v1beta1.VirtualNIC gvnic = 29; - */ - @java.lang.Override - public com.google.container.v1beta1.VirtualNICOrBuilder getGvnicOrBuilder() { - return gvnic_ == null ? com.google.container.v1beta1.VirtualNIC.getDefaultInstance() : gvnic_; - } - - public static final int SPOT_FIELD_NUMBER = 32; - private boolean spot_ = false; - /** - * - * - *
-   * Spot flag for enabling Spot VM, which is a rebrand of
-   * the existing preemptible flag.
-   * 
- * - * bool spot = 32; - * - * @return The spot. - */ - @java.lang.Override - public boolean getSpot() { - return spot_; - } - - public static final int CONFIDENTIAL_NODES_FIELD_NUMBER = 35; - private com.google.container.v1beta1.ConfidentialNodes confidentialNodes_; - /** - * - * - *
-   * Confidential nodes config.
-   * All the nodes in the node pool will be Confidential VM once enabled.
-   * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 35; - * - * @return Whether the confidentialNodes field is set. - */ - @java.lang.Override - public boolean hasConfidentialNodes() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - * - * - *
-   * Confidential nodes config.
-   * All the nodes in the node pool will be Confidential VM once enabled.
-   * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 35; - * - * @return The confidentialNodes. - */ - @java.lang.Override - public com.google.container.v1beta1.ConfidentialNodes getConfidentialNodes() { - return confidentialNodes_ == null - ? com.google.container.v1beta1.ConfidentialNodes.getDefaultInstance() - : confidentialNodes_; - } - /** - * - * - *
-   * Confidential nodes config.
-   * All the nodes in the node pool will be Confidential VM once enabled.
-   * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 35; - */ - @java.lang.Override - public com.google.container.v1beta1.ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder() { - return confidentialNodes_ == null - ? com.google.container.v1beta1.ConfidentialNodes.getDefaultInstance() - : confidentialNodes_; - } - - public static final int FAST_SOCKET_FIELD_NUMBER = 36; - private com.google.container.v1beta1.FastSocket fastSocket_; - /** - * - * - *
-   * Enable or disable NCCL fast socket for the node pool.
-   * 
- * - * optional .google.container.v1beta1.FastSocket fast_socket = 36; - * - * @return Whether the fastSocket field is set. - */ - @java.lang.Override - public boolean hasFastSocket() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - * - * - *
-   * Enable or disable NCCL fast socket for the node pool.
-   * 
- * - * optional .google.container.v1beta1.FastSocket fast_socket = 36; - * - * @return The fastSocket. - */ - @java.lang.Override - public com.google.container.v1beta1.FastSocket getFastSocket() { - return fastSocket_ == null - ? com.google.container.v1beta1.FastSocket.getDefaultInstance() - : fastSocket_; - } - /** - * - * - *
-   * Enable or disable NCCL fast socket for the node pool.
-   * 
- * - * optional .google.container.v1beta1.FastSocket fast_socket = 36; - */ - @java.lang.Override - public com.google.container.v1beta1.FastSocketOrBuilder getFastSocketOrBuilder() { - return fastSocket_ == null - ? com.google.container.v1beta1.FastSocket.getDefaultInstance() - : fastSocket_; - } - - public static final int RESOURCE_LABELS_FIELD_NUMBER = 37; - - 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_NodeConfig_ResourceLabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - @SuppressWarnings("serial") - 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 node pool to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * map<string, string> resource_labels = 37; - */ - @java.lang.Override - public boolean containsResourceLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - 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 node pool to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * map<string, string> resource_labels = 37; - */ - @java.lang.Override - public java.util.Map getResourceLabelsMap() { - return internalGetResourceLabels().getMap(); - } - /** - * - * - *
-   * The resource labels for the node pool to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * map<string, string> resource_labels = 37; - */ - @java.lang.Override - public /* nullable */ java.lang.String getResourceLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetResourceLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * The resource labels for the node pool to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * map<string, string> resource_labels = 37; - */ - @java.lang.Override - public java.lang.String getResourceLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetResourceLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int LOGGING_CONFIG_FIELD_NUMBER = 38; - private com.google.container.v1beta1.NodePoolLoggingConfig loggingConfig_; - /** - * - * - *
-   * Logging configuration.
-   * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 38; - * - * @return Whether the loggingConfig field is set. - */ - @java.lang.Override - public boolean hasLoggingConfig() { - return ((bitField0_ & 0x00001000) != 0); - } - /** - * - * - *
-   * Logging configuration.
-   * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 38; - * - * @return The loggingConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.NodePoolLoggingConfig getLoggingConfig() { - return loggingConfig_ == null - ? com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance() - : loggingConfig_; - } - /** - * - * - *
-   * Logging configuration.
-   * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 38; - */ - @java.lang.Override - public com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder getLoggingConfigOrBuilder() { - return loggingConfig_ == null - ? com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance() - : loggingConfig_; - } - - public static final int WINDOWS_NODE_CONFIG_FIELD_NUMBER = 39; - private com.google.container.v1beta1.WindowsNodeConfig windowsNodeConfig_; - /** - * - * - *
-   * Parameters that can be configured on Windows nodes.
-   * 
- * - * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 39; - * - * @return Whether the windowsNodeConfig field is set. - */ - @java.lang.Override - public boolean hasWindowsNodeConfig() { - return ((bitField0_ & 0x00002000) != 0); - } - /** - * - * - *
-   * Parameters that can be configured on Windows nodes.
-   * 
- * - * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 39; - * - * @return The windowsNodeConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.WindowsNodeConfig getWindowsNodeConfig() { - return windowsNodeConfig_ == null - ? com.google.container.v1beta1.WindowsNodeConfig.getDefaultInstance() - : windowsNodeConfig_; - } - /** - * - * - *
-   * Parameters that can be configured on Windows nodes.
-   * 
- * - * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 39; - */ - @java.lang.Override - public com.google.container.v1beta1.WindowsNodeConfigOrBuilder getWindowsNodeConfigOrBuilder() { - return windowsNodeConfig_ == null - ? com.google.container.v1beta1.WindowsNodeConfig.getDefaultInstance() - : windowsNodeConfig_; - } - - public static final int LOCAL_NVME_SSD_BLOCK_CONFIG_FIELD_NUMBER = 40; - private com.google.container.v1beta1.LocalNvmeSsdBlockConfig localNvmeSsdBlockConfig_; - /** - * - * - *
-   * Parameters for using raw-block Local NVMe SSDs.
-   * 
- * - * .google.container.v1beta1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; - * - * - * @return Whether the localNvmeSsdBlockConfig field is set. - */ - @java.lang.Override - public boolean hasLocalNvmeSsdBlockConfig() { - return ((bitField0_ & 0x00004000) != 0); - } - /** - * - * - *
-   * Parameters for using raw-block Local NVMe SSDs.
-   * 
- * - * .google.container.v1beta1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; - * - * - * @return The localNvmeSsdBlockConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.LocalNvmeSsdBlockConfig getLocalNvmeSsdBlockConfig() { - return localNvmeSsdBlockConfig_ == null - ? com.google.container.v1beta1.LocalNvmeSsdBlockConfig.getDefaultInstance() - : localNvmeSsdBlockConfig_; - } - /** - * - * - *
-   * Parameters for using raw-block Local NVMe SSDs.
-   * 
- * - * .google.container.v1beta1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; - * - */ - @java.lang.Override - public com.google.container.v1beta1.LocalNvmeSsdBlockConfigOrBuilder - getLocalNvmeSsdBlockConfigOrBuilder() { - return localNvmeSsdBlockConfig_ == null - ? com.google.container.v1beta1.LocalNvmeSsdBlockConfig.getDefaultInstance() - : localNvmeSsdBlockConfig_; - } - - public static final int EPHEMERAL_STORAGE_LOCAL_SSD_CONFIG_FIELD_NUMBER = 41; - private com.google.container.v1beta1.EphemeralStorageLocalSsdConfig - ephemeralStorageLocalSsdConfig_; - /** - * - * - *
-   * Parameters for the node ephemeral storage using Local SSDs.
-   * If unspecified, ephemeral storage is backed by the boot disk.
-   * This field is functionally equivalent to the ephemeral_storage_config
-   * 
- * - * - * .google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; - * - * - * @return Whether the ephemeralStorageLocalSsdConfig field is set. - */ - @java.lang.Override - public boolean hasEphemeralStorageLocalSsdConfig() { - return ((bitField0_ & 0x00008000) != 0); - } - /** - * - * - *
-   * Parameters for the node ephemeral storage using Local SSDs.
-   * If unspecified, ephemeral storage is backed by the boot disk.
-   * This field is functionally equivalent to the ephemeral_storage_config
-   * 
- * - * - * .google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; - * - * - * @return The ephemeralStorageLocalSsdConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.EphemeralStorageLocalSsdConfig - getEphemeralStorageLocalSsdConfig() { - return ephemeralStorageLocalSsdConfig_ == null - ? com.google.container.v1beta1.EphemeralStorageLocalSsdConfig.getDefaultInstance() - : ephemeralStorageLocalSsdConfig_; - } - /** - * - * - *
-   * Parameters for the node ephemeral storage using Local SSDs.
-   * If unspecified, ephemeral storage is backed by the boot disk.
-   * This field is functionally equivalent to the ephemeral_storage_config
-   * 
- * - * - * .google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; - * - */ - @java.lang.Override - public com.google.container.v1beta1.EphemeralStorageLocalSsdConfigOrBuilder - getEphemeralStorageLocalSsdConfigOrBuilder() { - return ephemeralStorageLocalSsdConfig_ == null - ? com.google.container.v1beta1.EphemeralStorageLocalSsdConfig.getDefaultInstance() - : ephemeralStorageLocalSsdConfig_; - } - - public static final int SOLE_TENANT_CONFIG_FIELD_NUMBER = 42; - private com.google.container.v1beta1.SoleTenantConfig soleTenantConfig_; - /** - * - * - *
-   * Parameters for node pools to be backed by shared sole tenant node groups.
-   * 
- * - * .google.container.v1beta1.SoleTenantConfig sole_tenant_config = 42; - * - * @return Whether the soleTenantConfig field is set. - */ - @java.lang.Override - public boolean hasSoleTenantConfig() { - return ((bitField0_ & 0x00010000) != 0); - } - /** - * - * - *
-   * Parameters for node pools to be backed by shared sole tenant node groups.
-   * 
- * - * .google.container.v1beta1.SoleTenantConfig sole_tenant_config = 42; - * - * @return The soleTenantConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.SoleTenantConfig getSoleTenantConfig() { - return soleTenantConfig_ == null - ? com.google.container.v1beta1.SoleTenantConfig.getDefaultInstance() - : soleTenantConfig_; - } - /** - * - * - *
-   * Parameters for node pools to be backed by shared sole tenant node groups.
-   * 
- * - * .google.container.v1beta1.SoleTenantConfig sole_tenant_config = 42; - */ - @java.lang.Override - public com.google.container.v1beta1.SoleTenantConfigOrBuilder getSoleTenantConfigOrBuilder() { - return soleTenantConfig_ == null - ? com.google.container.v1beta1.SoleTenantConfig.getDefaultInstance() - : soleTenantConfig_; - } - - public static final int HOST_MAINTENANCE_POLICY_FIELD_NUMBER = 44; - private com.google.container.v1beta1.HostMaintenancePolicy hostMaintenancePolicy_; - /** - * - * - *
-   * HostMaintenancePolicy contains the desired maintenance policy for the
-   * Google Compute Engine hosts.
-   * 
- * - * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 44; - * - * @return Whether the hostMaintenancePolicy field is set. - */ - @java.lang.Override - public boolean hasHostMaintenancePolicy() { - return ((bitField0_ & 0x00020000) != 0); - } - /** - * - * - *
-   * HostMaintenancePolicy contains the desired maintenance policy for the
-   * Google Compute Engine hosts.
-   * 
- * - * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 44; - * - * @return The hostMaintenancePolicy. - */ - @java.lang.Override - public com.google.container.v1beta1.HostMaintenancePolicy getHostMaintenancePolicy() { - return hostMaintenancePolicy_ == null - ? com.google.container.v1beta1.HostMaintenancePolicy.getDefaultInstance() - : hostMaintenancePolicy_; - } - /** - * - * - *
-   * HostMaintenancePolicy contains the desired maintenance policy for the
-   * Google Compute Engine hosts.
-   * 
- * - * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 44; - */ - @java.lang.Override - public com.google.container.v1beta1.HostMaintenancePolicyOrBuilder - getHostMaintenancePolicyOrBuilder() { - return hostMaintenancePolicy_ == null - ? com.google.container.v1beta1.HostMaintenancePolicy.getDefaultInstance() - : hostMaintenancePolicy_; - } - - public static final int RESOURCE_MANAGER_TAGS_FIELD_NUMBER = 45; - private com.google.container.v1beta1.ResourceManagerTags resourceManagerTags_; - /** - * - * - *
-   * A map of resource manager tag keys and values to be attached to the nodes.
-   * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 45; - * - * @return Whether the resourceManagerTags field is set. - */ - @java.lang.Override - public boolean hasResourceManagerTags() { - return ((bitField0_ & 0x00040000) != 0); - } - /** - * - * - *
-   * A map of resource manager tag keys and values to be attached to the nodes.
-   * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 45; - * - * @return The resourceManagerTags. - */ - @java.lang.Override - public com.google.container.v1beta1.ResourceManagerTags getResourceManagerTags() { - return resourceManagerTags_ == null - ? com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance() - : resourceManagerTags_; - } - /** - * - * - *
-   * A map of resource manager tag keys and values to be attached to the nodes.
-   * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 45; - */ - @java.lang.Override - public com.google.container.v1beta1.ResourceManagerTagsOrBuilder - getResourceManagerTagsOrBuilder() { - return resourceManagerTags_ == null - ? com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance() - : resourceManagerTags_; - } - - public static final int ENABLE_CONFIDENTIAL_STORAGE_FIELD_NUMBER = 46; - private boolean enableConfidentialStorage_ = false; - /** - * - * - *
-   * Optional. Enable confidential storage on Hyperdisk.
-   * boot_disk_kms_key is required when enable_confidential_storage is true.
-   * This is only available for private preview.
-   * 
- * - * bool enable_confidential_storage = 46 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The enableConfidentialStorage. - */ - @java.lang.Override - public boolean getEnableConfidentialStorage() { - return enableConfidentialStorage_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageType_)) { - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 12, diskType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minCpuPlatform_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, minCpuPlatform_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(14, getWorkloadMetadataConfig()); - } - for (int i = 0; i < taints_.size(); i++) { - output.writeMessage(15, taints_.get(i)); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(17, getSandboxConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeGroup_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 18, nodeGroup_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(19, getReservationAffinity()); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(20, getShieldedInstanceConfig()); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeMessage(21, getLinuxNodeConfig()); - } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeMessage(22, getKubeletConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootDiskKmsKey_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 23, bootDiskKmsKey_); - } - if (((bitField0_ & 0x00000040) != 0)) { - output.writeMessage(24, getEphemeralStorageConfig()); - } - if (((bitField0_ & 0x00000080) != 0)) { - output.writeMessage(25, getGcfsConfig()); - } - if (((bitField0_ & 0x00000100) != 0)) { - output.writeMessage(26, getAdvancedMachineFeatures()); - } - if (((bitField0_ & 0x00000200) != 0)) { - output.writeMessage(29, getGvnic()); - } - if (spot_ != false) { - output.writeBool(32, spot_); - } - if (((bitField0_ & 0x00000400) != 0)) { - output.writeMessage(35, getConfidentialNodes()); - } - if (((bitField0_ & 0x00000800) != 0)) { - output.writeMessage(36, getFastSocket()); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetResourceLabels(), ResourceLabelsDefaultEntryHolder.defaultEntry, 37); - if (((bitField0_ & 0x00001000) != 0)) { - output.writeMessage(38, getLoggingConfig()); - } - if (((bitField0_ & 0x00002000) != 0)) { - output.writeMessage(39, getWindowsNodeConfig()); - } - if (((bitField0_ & 0x00004000) != 0)) { - output.writeMessage(40, getLocalNvmeSsdBlockConfig()); - } - if (((bitField0_ & 0x00008000) != 0)) { - output.writeMessage(41, getEphemeralStorageLocalSsdConfig()); - } - if (((bitField0_ & 0x00010000) != 0)) { - output.writeMessage(42, getSoleTenantConfig()); - } - if (((bitField0_ & 0x00020000) != 0)) { - output.writeMessage(44, getHostMaintenancePolicy()); - } - if (((bitField0_ & 0x00040000) != 0)) { - output.writeMessage(45, getResourceManagerTags()); - } - if (enableConfidentialStorage_ != false) { - output.writeBool(46, enableConfidentialStorage_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageType_)) { - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, diskType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minCpuPlatform_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, minCpuPlatform_); - } - if (((bitField0_ & 0x00000004) != 0)) { - 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 (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getSandboxConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeGroup_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, nodeGroup_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(19, getReservationAffinity()); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(20, getShieldedInstanceConfig()); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getLinuxNodeConfig()); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getKubeletConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootDiskKmsKey_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, bootDiskKmsKey_); - } - if (((bitField0_ & 0x00000040) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(24, getEphemeralStorageConfig()); - } - if (((bitField0_ & 0x00000080) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getGcfsConfig()); - } - if (((bitField0_ & 0x00000100) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 26, getAdvancedMachineFeatures()); - } - if (((bitField0_ & 0x00000200) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getGvnic()); - } - if (spot_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(32, spot_); - } - if (((bitField0_ & 0x00000400) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(35, getConfidentialNodes()); - } - if (((bitField0_ & 0x00000800) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(36, getFastSocket()); - } - 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(37, resourceLabels__); - } - if (((bitField0_ & 0x00001000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(38, getLoggingConfig()); - } - if (((bitField0_ & 0x00002000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(39, getWindowsNodeConfig()); - } - if (((bitField0_ & 0x00004000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 40, getLocalNvmeSsdBlockConfig()); - } - if (((bitField0_ & 0x00008000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 41, getEphemeralStorageLocalSsdConfig()); - } - if (((bitField0_ & 0x00010000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(42, getSoleTenantConfig()); - } - if (((bitField0_ & 0x00020000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(44, getHostMaintenancePolicy()); - } - if (((bitField0_ & 0x00040000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(45, getResourceManagerTags()); - } - if (enableConfidentialStorage_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(46, enableConfidentialStorage_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (hasGcfsConfig() != other.hasGcfsConfig()) return false; - if (hasGcfsConfig()) { - if (!getGcfsConfig().equals(other.getGcfsConfig())) return false; - } - if (hasAdvancedMachineFeatures() != other.hasAdvancedMachineFeatures()) return false; - if (hasAdvancedMachineFeatures()) { - if (!getAdvancedMachineFeatures().equals(other.getAdvancedMachineFeatures())) return false; - } - if (hasGvnic() != other.hasGvnic()) return false; - if (hasGvnic()) { - if (!getGvnic().equals(other.getGvnic())) return false; - } - if (getSpot() != other.getSpot()) return false; - if (hasConfidentialNodes() != other.hasConfidentialNodes()) return false; - if (hasConfidentialNodes()) { - if (!getConfidentialNodes().equals(other.getConfidentialNodes())) return false; - } - if (hasFastSocket() != other.hasFastSocket()) return false; - if (hasFastSocket()) { - if (!getFastSocket().equals(other.getFastSocket())) return false; - } - if (!internalGetResourceLabels().equals(other.internalGetResourceLabels())) return false; - if (hasLoggingConfig() != other.hasLoggingConfig()) return false; - if (hasLoggingConfig()) { - if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; - } - if (hasWindowsNodeConfig() != other.hasWindowsNodeConfig()) return false; - if (hasWindowsNodeConfig()) { - if (!getWindowsNodeConfig().equals(other.getWindowsNodeConfig())) return false; - } - if (hasLocalNvmeSsdBlockConfig() != other.hasLocalNvmeSsdBlockConfig()) return false; - if (hasLocalNvmeSsdBlockConfig()) { - if (!getLocalNvmeSsdBlockConfig().equals(other.getLocalNvmeSsdBlockConfig())) return false; - } - if (hasEphemeralStorageLocalSsdConfig() != other.hasEphemeralStorageLocalSsdConfig()) - return false; - if (hasEphemeralStorageLocalSsdConfig()) { - if (!getEphemeralStorageLocalSsdConfig().equals(other.getEphemeralStorageLocalSsdConfig())) - return false; - } - if (hasSoleTenantConfig() != other.hasSoleTenantConfig()) return false; - if (hasSoleTenantConfig()) { - if (!getSoleTenantConfig().equals(other.getSoleTenantConfig())) return false; - } - if (hasHostMaintenancePolicy() != other.hasHostMaintenancePolicy()) return false; - if (hasHostMaintenancePolicy()) { - if (!getHostMaintenancePolicy().equals(other.getHostMaintenancePolicy())) return false; - } - if (hasResourceManagerTags() != other.hasResourceManagerTags()) return false; - if (hasResourceManagerTags()) { - if (!getResourceManagerTags().equals(other.getResourceManagerTags())) return false; - } - if (getEnableConfidentialStorage() != other.getEnableConfidentialStorage()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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(); - } - if (hasGcfsConfig()) { - hash = (37 * hash) + GCFS_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getGcfsConfig().hashCode(); - } - if (hasAdvancedMachineFeatures()) { - hash = (37 * hash) + ADVANCED_MACHINE_FEATURES_FIELD_NUMBER; - hash = (53 * hash) + getAdvancedMachineFeatures().hashCode(); - } - if (hasGvnic()) { - hash = (37 * hash) + GVNIC_FIELD_NUMBER; - hash = (53 * hash) + getGvnic().hashCode(); - } - hash = (37 * hash) + SPOT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSpot()); - if (hasConfidentialNodes()) { - hash = (37 * hash) + CONFIDENTIAL_NODES_FIELD_NUMBER; - hash = (53 * hash) + getConfidentialNodes().hashCode(); - } - if (hasFastSocket()) { - hash = (37 * hash) + FAST_SOCKET_FIELD_NUMBER; - hash = (53 * hash) + getFastSocket().hashCode(); - } - if (!internalGetResourceLabels().getMap().isEmpty()) { - hash = (37 * hash) + RESOURCE_LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetResourceLabels().hashCode(); - } - if (hasLoggingConfig()) { - hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getLoggingConfig().hashCode(); - } - if (hasWindowsNodeConfig()) { - hash = (37 * hash) + WINDOWS_NODE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getWindowsNodeConfig().hashCode(); - } - if (hasLocalNvmeSsdBlockConfig()) { - hash = (37 * hash) + LOCAL_NVME_SSD_BLOCK_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getLocalNvmeSsdBlockConfig().hashCode(); - } - if (hasEphemeralStorageLocalSsdConfig()) { - hash = (37 * hash) + EPHEMERAL_STORAGE_LOCAL_SSD_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getEphemeralStorageLocalSsdConfig().hashCode(); - } - if (hasSoleTenantConfig()) { - hash = (37 * hash) + SOLE_TENANT_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getSoleTenantConfig().hashCode(); - } - if (hasHostMaintenancePolicy()) { - hash = (37 * hash) + HOST_MAINTENANCE_POLICY_FIELD_NUMBER; - hash = (53 * hash) + getHostMaintenancePolicy().hashCode(); - } - if (hasResourceManagerTags()) { - hash = (37 * hash) + RESOURCE_MANAGER_TAGS_FIELD_NUMBER; - hash = (53 * hash) + getResourceManagerTags().hashCode(); - } - hash = (37 * hash) + ENABLE_CONFIDENTIAL_STORAGE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableConfidentialStorage()); - hash = (29 * hash) + getUnknownFields().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.
-   *
-   * GKE Autopilot clusters do not
-   * recognize parameters in `NodeConfig`. Use
-   * [AutoprovisioningNodePoolDefaults][google.container.v1beta1.AutoprovisioningNodePoolDefaults]
-   * instead.
-   * 
- * - * 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.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 4: - return internalGetMetadata(); - case 6: - return internalGetLabels(); - case 37: - return internalGetResourceLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 4: - return internalGetMutableMetadata(); - case 6: - return internalGetMutableLabels(); - case 37: - 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_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(); - getSandboxConfigFieldBuilder(); - getReservationAffinityFieldBuilder(); - getWorkloadMetadataConfigFieldBuilder(); - getTaintsFieldBuilder(); - getShieldedInstanceConfigFieldBuilder(); - getLinuxNodeConfigFieldBuilder(); - getKubeletConfigFieldBuilder(); - getEphemeralStorageConfigFieldBuilder(); - getGcfsConfigFieldBuilder(); - getAdvancedMachineFeaturesFieldBuilder(); - getGvnicFieldBuilder(); - getConfidentialNodesFieldBuilder(); - getFastSocketFieldBuilder(); - getLoggingConfigFieldBuilder(); - getWindowsNodeConfigFieldBuilder(); - getLocalNvmeSsdBlockConfigFieldBuilder(); - getEphemeralStorageLocalSsdConfigFieldBuilder(); - getSoleTenantConfigFieldBuilder(); - getHostMaintenancePolicyFieldBuilder(); - getResourceManagerTagsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - bitField1_ = 0; - machineType_ = ""; - diskSizeGb_ = 0; - oauthScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - serviceAccount_ = ""; - internalGetMutableMetadata().clear(); - imageType_ = ""; - internalGetMutableLabels().clear(); - localSsdCount_ = 0; - tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - preemptible_ = false; - if (acceleratorsBuilder_ == null) { - accelerators_ = java.util.Collections.emptyList(); - } else { - accelerators_ = null; - acceleratorsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000400); - sandboxConfig_ = null; - if (sandboxConfigBuilder_ != null) { - sandboxConfigBuilder_.dispose(); - sandboxConfigBuilder_ = null; - } - nodeGroup_ = ""; - reservationAffinity_ = null; - if (reservationAffinityBuilder_ != null) { - reservationAffinityBuilder_.dispose(); - reservationAffinityBuilder_ = null; - } - diskType_ = ""; - minCpuPlatform_ = ""; - workloadMetadataConfig_ = null; - if (workloadMetadataConfigBuilder_ != null) { - workloadMetadataConfigBuilder_.dispose(); - workloadMetadataConfigBuilder_ = null; - } - if (taintsBuilder_ == null) { - taints_ = java.util.Collections.emptyList(); - } else { - taints_ = null; - taintsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00020000); - bootDiskKmsKey_ = ""; - shieldedInstanceConfig_ = null; - if (shieldedInstanceConfigBuilder_ != null) { - shieldedInstanceConfigBuilder_.dispose(); - shieldedInstanceConfigBuilder_ = null; - } - linuxNodeConfig_ = null; - if (linuxNodeConfigBuilder_ != null) { - linuxNodeConfigBuilder_.dispose(); - linuxNodeConfigBuilder_ = null; - } - kubeletConfig_ = null; - if (kubeletConfigBuilder_ != null) { - kubeletConfigBuilder_.dispose(); - kubeletConfigBuilder_ = null; - } - ephemeralStorageConfig_ = null; - if (ephemeralStorageConfigBuilder_ != null) { - ephemeralStorageConfigBuilder_.dispose(); - ephemeralStorageConfigBuilder_ = null; - } - gcfsConfig_ = null; - if (gcfsConfigBuilder_ != null) { - gcfsConfigBuilder_.dispose(); - gcfsConfigBuilder_ = null; - } - advancedMachineFeatures_ = null; - if (advancedMachineFeaturesBuilder_ != null) { - advancedMachineFeaturesBuilder_.dispose(); - advancedMachineFeaturesBuilder_ = null; - } - gvnic_ = null; - if (gvnicBuilder_ != null) { - gvnicBuilder_.dispose(); - gvnicBuilder_ = null; - } - spot_ = false; - confidentialNodes_ = null; - if (confidentialNodesBuilder_ != null) { - confidentialNodesBuilder_.dispose(); - confidentialNodesBuilder_ = null; - } - fastSocket_ = null; - if (fastSocketBuilder_ != null) { - fastSocketBuilder_.dispose(); - fastSocketBuilder_ = null; - } - internalGetMutableResourceLabels().clear(); - loggingConfig_ = null; - if (loggingConfigBuilder_ != null) { - loggingConfigBuilder_.dispose(); - loggingConfigBuilder_ = null; - } - windowsNodeConfig_ = null; - if (windowsNodeConfigBuilder_ != null) { - windowsNodeConfigBuilder_.dispose(); - windowsNodeConfigBuilder_ = null; - } - localNvmeSsdBlockConfig_ = null; - if (localNvmeSsdBlockConfigBuilder_ != null) { - localNvmeSsdBlockConfigBuilder_.dispose(); - localNvmeSsdBlockConfigBuilder_ = null; - } - ephemeralStorageLocalSsdConfig_ = null; - if (ephemeralStorageLocalSsdConfigBuilder_ != null) { - ephemeralStorageLocalSsdConfigBuilder_.dispose(); - ephemeralStorageLocalSsdConfigBuilder_ = null; - } - soleTenantConfig_ = null; - if (soleTenantConfigBuilder_ != null) { - soleTenantConfigBuilder_.dispose(); - soleTenantConfigBuilder_ = null; - } - hostMaintenancePolicy_ = null; - if (hostMaintenancePolicyBuilder_ != null) { - hostMaintenancePolicyBuilder_.dispose(); - hostMaintenancePolicyBuilder_ = null; - } - resourceManagerTags_ = null; - if (resourceManagerTagsBuilder_ != null) { - resourceManagerTagsBuilder_.dispose(); - resourceManagerTagsBuilder_ = null; - } - enableConfidentialStorage_ = false; - 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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - if (bitField1_ != 0) { - buildPartial1(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.container.v1beta1.NodeConfig result) { - if (acceleratorsBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0)) { - accelerators_ = java.util.Collections.unmodifiableList(accelerators_); - bitField0_ = (bitField0_ & ~0x00000400); - } - result.accelerators_ = accelerators_; - } else { - result.accelerators_ = acceleratorsBuilder_.build(); - } - if (taintsBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0)) { - taints_ = java.util.Collections.unmodifiableList(taints_); - bitField0_ = (bitField0_ & ~0x00020000); - } - result.taints_ = taints_; - } else { - result.taints_ = taintsBuilder_.build(); - } - } - - private void buildPartial0(com.google.container.v1beta1.NodeConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.machineType_ = machineType_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.diskSizeGb_ = diskSizeGb_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - oauthScopes_.makeImmutable(); - result.oauthScopes_ = oauthScopes_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.serviceAccount_ = serviceAccount_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.metadata_ = internalGetMetadata(); - result.metadata_.makeImmutable(); - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.imageType_ = imageType_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.localSsdCount_ = localSsdCount_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - tags_.makeImmutable(); - result.tags_ = tags_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.preemptible_ = preemptible_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000800) != 0)) { - result.sandboxConfig_ = - sandboxConfigBuilder_ == null ? sandboxConfig_ : sandboxConfigBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.nodeGroup_ = nodeGroup_; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.reservationAffinity_ = - reservationAffinityBuilder_ == null - ? reservationAffinity_ - : reservationAffinityBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.diskType_ = diskType_; - } - if (((from_bitField0_ & 0x00008000) != 0)) { - result.minCpuPlatform_ = minCpuPlatform_; - } - if (((from_bitField0_ & 0x00010000) != 0)) { - result.workloadMetadataConfig_ = - workloadMetadataConfigBuilder_ == null - ? workloadMetadataConfig_ - : workloadMetadataConfigBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00040000) != 0)) { - result.bootDiskKmsKey_ = bootDiskKmsKey_; - } - if (((from_bitField0_ & 0x00080000) != 0)) { - result.shieldedInstanceConfig_ = - shieldedInstanceConfigBuilder_ == null - ? shieldedInstanceConfig_ - : shieldedInstanceConfigBuilder_.build(); - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00100000) != 0)) { - result.linuxNodeConfig_ = - linuxNodeConfigBuilder_ == null ? linuxNodeConfig_ : linuxNodeConfigBuilder_.build(); - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00200000) != 0)) { - result.kubeletConfig_ = - kubeletConfigBuilder_ == null ? kubeletConfig_ : kubeletConfigBuilder_.build(); - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00400000) != 0)) { - result.ephemeralStorageConfig_ = - ephemeralStorageConfigBuilder_ == null - ? ephemeralStorageConfig_ - : ephemeralStorageConfigBuilder_.build(); - to_bitField0_ |= 0x00000040; - } - if (((from_bitField0_ & 0x00800000) != 0)) { - result.gcfsConfig_ = gcfsConfigBuilder_ == null ? gcfsConfig_ : gcfsConfigBuilder_.build(); - to_bitField0_ |= 0x00000080; - } - if (((from_bitField0_ & 0x01000000) != 0)) { - result.advancedMachineFeatures_ = - advancedMachineFeaturesBuilder_ == null - ? advancedMachineFeatures_ - : advancedMachineFeaturesBuilder_.build(); - to_bitField0_ |= 0x00000100; - } - if (((from_bitField0_ & 0x02000000) != 0)) { - result.gvnic_ = gvnicBuilder_ == null ? gvnic_ : gvnicBuilder_.build(); - to_bitField0_ |= 0x00000200; - } - if (((from_bitField0_ & 0x04000000) != 0)) { - result.spot_ = spot_; - } - if (((from_bitField0_ & 0x08000000) != 0)) { - result.confidentialNodes_ = - confidentialNodesBuilder_ == null - ? confidentialNodes_ - : confidentialNodesBuilder_.build(); - to_bitField0_ |= 0x00000400; - } - if (((from_bitField0_ & 0x10000000) != 0)) { - result.fastSocket_ = fastSocketBuilder_ == null ? fastSocket_ : fastSocketBuilder_.build(); - to_bitField0_ |= 0x00000800; - } - if (((from_bitField0_ & 0x20000000) != 0)) { - result.resourceLabels_ = internalGetResourceLabels(); - result.resourceLabels_.makeImmutable(); - } - if (((from_bitField0_ & 0x40000000) != 0)) { - result.loggingConfig_ = - loggingConfigBuilder_ == null ? loggingConfig_ : loggingConfigBuilder_.build(); - to_bitField0_ |= 0x00001000; - } - if (((from_bitField0_ & 0x80000000) != 0)) { - result.windowsNodeConfig_ = - windowsNodeConfigBuilder_ == null - ? windowsNodeConfig_ - : windowsNodeConfigBuilder_.build(); - to_bitField0_ |= 0x00002000; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartial1(com.google.container.v1beta1.NodeConfig result) { - int from_bitField1_ = bitField1_; - int to_bitField0_ = 0; - if (((from_bitField1_ & 0x00000001) != 0)) { - result.localNvmeSsdBlockConfig_ = - localNvmeSsdBlockConfigBuilder_ == null - ? localNvmeSsdBlockConfig_ - : localNvmeSsdBlockConfigBuilder_.build(); - to_bitField0_ |= 0x00004000; - } - if (((from_bitField1_ & 0x00000002) != 0)) { - result.ephemeralStorageLocalSsdConfig_ = - ephemeralStorageLocalSsdConfigBuilder_ == null - ? ephemeralStorageLocalSsdConfig_ - : ephemeralStorageLocalSsdConfigBuilder_.build(); - to_bitField0_ |= 0x00008000; - } - if (((from_bitField1_ & 0x00000004) != 0)) { - result.soleTenantConfig_ = - soleTenantConfigBuilder_ == null ? soleTenantConfig_ : soleTenantConfigBuilder_.build(); - to_bitField0_ |= 0x00010000; - } - if (((from_bitField1_ & 0x00000008) != 0)) { - result.hostMaintenancePolicy_ = - hostMaintenancePolicyBuilder_ == null - ? hostMaintenancePolicy_ - : hostMaintenancePolicyBuilder_.build(); - to_bitField0_ |= 0x00020000; - } - if (((from_bitField1_ & 0x00000010) != 0)) { - result.resourceManagerTags_ = - resourceManagerTagsBuilder_ == null - ? resourceManagerTags_ - : resourceManagerTagsBuilder_.build(); - to_bitField0_ |= 0x00040000; - } - if (((from_bitField1_ & 0x00000020) != 0)) { - result.enableConfidentialStorage_ = enableConfidentialStorage_; - } - result.bitField0_ |= to_bitField0_; - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getDiskSizeGb() != 0) { - setDiskSizeGb(other.getDiskSizeGb()); - } - if (!other.oauthScopes_.isEmpty()) { - if (oauthScopes_.isEmpty()) { - oauthScopes_ = other.oauthScopes_; - bitField0_ |= 0x00000004; - } else { - ensureOauthScopesIsMutable(); - oauthScopes_.addAll(other.oauthScopes_); - } - onChanged(); - } - if (!other.getServiceAccount().isEmpty()) { - serviceAccount_ = other.serviceAccount_; - bitField0_ |= 0x00000008; - onChanged(); - } - internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); - bitField0_ |= 0x00000010; - if (!other.getImageType().isEmpty()) { - imageType_ = other.imageType_; - bitField0_ |= 0x00000020; - onChanged(); - } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00000040; - if (other.getLocalSsdCount() != 0) { - setLocalSsdCount(other.getLocalSsdCount()); - } - if (!other.tags_.isEmpty()) { - if (tags_.isEmpty()) { - tags_ = other.tags_; - bitField0_ |= 0x00000100; - } else { - ensureTagsIsMutable(); - tags_.addAll(other.tags_); - } - onChanged(); - } - if (other.getPreemptible() != false) { - setPreemptible(other.getPreemptible()); - } - if (acceleratorsBuilder_ == null) { - if (!other.accelerators_.isEmpty()) { - if (accelerators_.isEmpty()) { - accelerators_ = other.accelerators_; - bitField0_ = (bitField0_ & ~0x00000400); - } else { - ensureAcceleratorsIsMutable(); - accelerators_.addAll(other.accelerators_); - } - onChanged(); - } - } else { - if (!other.accelerators_.isEmpty()) { - if (acceleratorsBuilder_.isEmpty()) { - acceleratorsBuilder_.dispose(); - acceleratorsBuilder_ = null; - accelerators_ = other.accelerators_; - bitField0_ = (bitField0_ & ~0x00000400); - acceleratorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAcceleratorsFieldBuilder() - : null; - } else { - acceleratorsBuilder_.addAllMessages(other.accelerators_); - } - } - } - if (other.hasSandboxConfig()) { - mergeSandboxConfig(other.getSandboxConfig()); - } - if (!other.getNodeGroup().isEmpty()) { - nodeGroup_ = other.nodeGroup_; - bitField0_ |= 0x00001000; - onChanged(); - } - if (other.hasReservationAffinity()) { - mergeReservationAffinity(other.getReservationAffinity()); - } - if (!other.getDiskType().isEmpty()) { - diskType_ = other.diskType_; - bitField0_ |= 0x00004000; - onChanged(); - } - if (!other.getMinCpuPlatform().isEmpty()) { - minCpuPlatform_ = other.minCpuPlatform_; - bitField0_ |= 0x00008000; - onChanged(); - } - if (other.hasWorkloadMetadataConfig()) { - mergeWorkloadMetadataConfig(other.getWorkloadMetadataConfig()); - } - if (taintsBuilder_ == null) { - if (!other.taints_.isEmpty()) { - if (taints_.isEmpty()) { - taints_ = other.taints_; - bitField0_ = (bitField0_ & ~0x00020000); - } else { - ensureTaintsIsMutable(); - taints_.addAll(other.taints_); - } - onChanged(); - } - } else { - if (!other.taints_.isEmpty()) { - if (taintsBuilder_.isEmpty()) { - taintsBuilder_.dispose(); - taintsBuilder_ = null; - taints_ = other.taints_; - bitField0_ = (bitField0_ & ~0x00020000); - taintsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTaintsFieldBuilder() - : null; - } else { - taintsBuilder_.addAllMessages(other.taints_); - } - } - } - if (!other.getBootDiskKmsKey().isEmpty()) { - bootDiskKmsKey_ = other.bootDiskKmsKey_; - bitField0_ |= 0x00040000; - 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()); - } - if (other.hasGcfsConfig()) { - mergeGcfsConfig(other.getGcfsConfig()); - } - if (other.hasAdvancedMachineFeatures()) { - mergeAdvancedMachineFeatures(other.getAdvancedMachineFeatures()); - } - if (other.hasGvnic()) { - mergeGvnic(other.getGvnic()); - } - if (other.getSpot() != false) { - setSpot(other.getSpot()); - } - if (other.hasConfidentialNodes()) { - mergeConfidentialNodes(other.getConfidentialNodes()); - } - if (other.hasFastSocket()) { - mergeFastSocket(other.getFastSocket()); - } - internalGetMutableResourceLabels().mergeFrom(other.internalGetResourceLabels()); - bitField0_ |= 0x20000000; - if (other.hasLoggingConfig()) { - mergeLoggingConfig(other.getLoggingConfig()); - } - if (other.hasWindowsNodeConfig()) { - mergeWindowsNodeConfig(other.getWindowsNodeConfig()); - } - if (other.hasLocalNvmeSsdBlockConfig()) { - mergeLocalNvmeSsdBlockConfig(other.getLocalNvmeSsdBlockConfig()); - } - if (other.hasEphemeralStorageLocalSsdConfig()) { - mergeEphemeralStorageLocalSsdConfig(other.getEphemeralStorageLocalSsdConfig()); - } - if (other.hasSoleTenantConfig()) { - mergeSoleTenantConfig(other.getSoleTenantConfig()); - } - if (other.hasHostMaintenancePolicy()) { - mergeHostMaintenancePolicy(other.getHostMaintenancePolicy()); - } - if (other.hasResourceManagerTags()) { - mergeResourceManagerTags(other.getResourceManagerTags()); - } - if (other.getEnableConfidentialStorage() != false) { - setEnableConfidentialStorage(other.getEnableConfidentialStorage()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - machineType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - diskSizeGb_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureOauthScopesIsMutable(); - oauthScopes_.add(s); - break; - } // case 26 - case 34: - { - com.google.protobuf.MapEntry metadata__ = - input.readMessage( - MetadataDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableMetadata() - .getMutableMap() - .put(metadata__.getKey(), metadata__.getValue()); - bitField0_ |= 0x00000010; - break; - } // case 34 - case 42: - { - imageType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 42 - case 50: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 50 - case 56: - { - localSsdCount_ = input.readInt32(); - bitField0_ |= 0x00000080; - break; - } // case 56 - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureTagsIsMutable(); - tags_.add(s); - break; - } // case 66 - case 74: - { - serviceAccount_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 74 - case 80: - { - preemptible_ = input.readBool(); - bitField0_ |= 0x00000200; - break; - } // case 80 - case 90: - { - com.google.container.v1beta1.AcceleratorConfig m = - input.readMessage( - com.google.container.v1beta1.AcceleratorConfig.parser(), extensionRegistry); - if (acceleratorsBuilder_ == null) { - ensureAcceleratorsIsMutable(); - accelerators_.add(m); - } else { - acceleratorsBuilder_.addMessage(m); - } - break; - } // case 90 - case 98: - { - diskType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00004000; - break; - } // case 98 - case 106: - { - minCpuPlatform_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00008000; - break; - } // case 106 - case 114: - { - input.readMessage( - getWorkloadMetadataConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; - break; - } // case 114 - case 122: - { - com.google.container.v1beta1.NodeTaint m = - input.readMessage( - com.google.container.v1beta1.NodeTaint.parser(), extensionRegistry); - if (taintsBuilder_ == null) { - ensureTaintsIsMutable(); - taints_.add(m); - } else { - taintsBuilder_.addMessage(m); - } - break; - } // case 122 - case 138: - { - input.readMessage(getSandboxConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; - break; - } // case 138 - case 146: - { - nodeGroup_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; - break; - } // case 146 - case 154: - { - input.readMessage( - getReservationAffinityFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00002000; - break; - } // case 154 - case 162: - { - input.readMessage( - getShieldedInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00080000; - break; - } // case 162 - case 170: - { - input.readMessage(getLinuxNodeConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00100000; - break; - } // case 170 - case 178: - { - input.readMessage(getKubeletConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00200000; - break; - } // case 178 - case 186: - { - bootDiskKmsKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00040000; - break; - } // case 186 - case 194: - { - input.readMessage( - getEphemeralStorageConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00400000; - break; - } // case 194 - case 202: - { - input.readMessage(getGcfsConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00800000; - break; - } // case 202 - case 210: - { - input.readMessage( - getAdvancedMachineFeaturesFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x01000000; - break; - } // case 210 - case 234: - { - input.readMessage(getGvnicFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x02000000; - break; - } // case 234 - case 256: - { - spot_ = input.readBool(); - bitField0_ |= 0x04000000; - break; - } // case 256 - case 282: - { - input.readMessage( - getConfidentialNodesFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x08000000; - break; - } // case 282 - case 290: - { - input.readMessage(getFastSocketFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x10000000; - break; - } // case 290 - case 298: - { - com.google.protobuf.MapEntry resourceLabels__ = - input.readMessage( - ResourceLabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableResourceLabels() - .getMutableMap() - .put(resourceLabels__.getKey(), resourceLabels__.getValue()); - bitField0_ |= 0x20000000; - break; - } // case 298 - case 306: - { - input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x40000000; - break; - } // case 306 - case 314: - { - input.readMessage( - getWindowsNodeConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x80000000; - break; - } // case 314 - case 322: - { - input.readMessage( - getLocalNvmeSsdBlockConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000001; - break; - } // case 322 - case 330: - { - input.readMessage( - getEphemeralStorageLocalSsdConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField1_ |= 0x00000002; - break; - } // case 330 - case 338: - { - input.readMessage( - getSoleTenantConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000004; - break; - } // case 338 - case 354: - { - input.readMessage( - getHostMaintenancePolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000008; - break; - } // case 354 - case 362: - { - input.readMessage( - getResourceManagerTagsFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000010; - break; - } // case 362 - case 368: - { - enableConfidentialStorage_ = input.readBool(); - bitField1_ |= 0x00000020; - break; - } // case 368 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - private int bitField1_; - - 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; - bitField0_ |= 0x00000001; - 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(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - 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; - bitField0_ |= 0x00000002; - 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() { - bitField0_ = (bitField0_ & ~0x00000002); - diskSizeGb_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList oauthScopes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureOauthScopesIsMutable() { - if (!oauthScopes_.isModifiable()) { - oauthScopes_ = new com.google.protobuf.LazyStringArrayList(oauthScopes_); - } - bitField0_ |= 0x00000004; - } - /** - * - * - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     *
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     *
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](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() { - oauthScopes_.makeImmutable(); - 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); - } - /** - * - * - *
-     * 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); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     *
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     *
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](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); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     *
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     *
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](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_); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     *
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     *
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](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.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; - onChanged(); - return this; - } - /** - * - * - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     *
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     *
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](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); - bitField0_ |= 0x00000004; - 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; - bitField0_ |= 0x00000008; - 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(); - bitField0_ = (bitField0_ & ~0x00000008); - 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; - bitField0_ |= 0x00000008; - 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() { - if (metadata_ == null) { - metadata_ = - com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry); - } - if (!metadata_.isMutable()) { - metadata_ = metadata_.copy(); - } - bitField0_ |= 0x00000010; - onChanged(); - 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"
-     *
-     * 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 NullPointerException("map key"); - } - 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"
-     *
-     * 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"
-     *
-     * 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 /* nullable */ java.lang.String getMetadataOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - 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"
-     *
-     * 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 NullPointerException("map key"); - } - java.util.Map map = internalGetMetadata().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearMetadata() { - bitField0_ = (bitField0_ & ~0x00000010); - 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"
-     *
-     * 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 NullPointerException("map key"); - } - internalGetMutableMetadata().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableMetadata() { - bitField0_ |= 0x00000010; - 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"
-     *
-     * 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 NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableMetadata().getMutableMap().put(key, value); - bitField0_ |= 0x00000010; - 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"
-     *
-     * 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); - bitField0_ |= 0x00000010; - 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. Please see
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-     * available image types.
-     * 
- * - * 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. Please see
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-     * available image types.
-     * 
- * - * 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. Please see
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-     * available image types.
-     * 
- * - * 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; - bitField0_ |= 0x00000020; - 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. Please see
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-     * available image types.
-     * 
- * - * string image_type = 5; - * - * @return This builder for chaining. - */ - public Builder clearImageType() { - imageType_ = getDefaultInstance().getImageType(); - bitField0_ = (bitField0_ & ~0x00000020); - 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. Please see
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-     * available image types.
-     * 
- * - * 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; - bitField0_ |= 0x00000020; - 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() { - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - bitField0_ |= 0x00000040; - onChanged(); - 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 NullPointerException("map key"); - } - 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 /* nullable */ java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - 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 NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00000040); - 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 NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - bitField0_ |= 0x00000040; - 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 NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00000040; - 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); - bitField0_ |= 0x00000040; - 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; - bitField0_ |= 0x00000080; - 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() { - bitField0_ = (bitField0_ & ~0x00000080); - localSsdCount_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList tags_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureTagsIsMutable() { - if (!tags_.isModifiable()) { - tags_ = new com.google.protobuf.LazyStringArrayList(tags_); - } - bitField0_ |= 0x00000100; - } - /** - * - * - *
-     * The list of instance tags applied to all nodes. Tags are used to identify
-     * valid sources or targets for network firewalls and are specified by
-     * the client during cluster or node pool creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * repeated string tags = 8; - * - * @return A list containing the tags. - */ - public com.google.protobuf.ProtocolStringList getTagsList() { - tags_.makeImmutable(); - 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); - } - /** - * - * - *
-     * 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); - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * - * - *
-     * The list of instance tags applied to all nodes. Tags are used to identify
-     * valid sources or targets for network firewalls and are specified by
-     * the client during cluster or node pool creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * repeated string tags = 8; - * - * @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); - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * - * - *
-     * The list of instance tags applied to all nodes. Tags are used to identify
-     * valid sources or targets for network firewalls and are specified by
-     * the client during cluster or node pool creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * repeated string tags = 8; - * - * @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_); - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * - * - *
-     * The list of instance tags applied to all nodes. Tags are used to identify
-     * valid sources or targets for network firewalls and are specified by
-     * the client during cluster or node pool creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * repeated string tags = 8; - * - * @return This builder for chaining. - */ - public Builder clearTags() { - tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); - ; - onChanged(); - return this; - } - /** - * - * - *
-     * The list of instance tags applied to all nodes. Tags are used to identify
-     * valid sources or targets for network firewalls and are specified by
-     * the client during cluster or node pool creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * repeated string tags = 8; - * - * @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); - bitField0_ |= 0x00000100; - 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
-     * information 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
-     * information 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; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether the nodes are created as preemptible VM instances. See:
-     * https://cloud.google.com/compute/docs/instances/preemptible for more
-     * information about preemptible VM instances.
-     * 
- * - * bool preemptible = 10; - * - * @return This builder for chaining. - */ - public Builder clearPreemptible() { - bitField0_ = (bitField0_ & ~0x00000200); - preemptible_ = false; - onChanged(); - return this; - } - - private java.util.List accelerators_ = - java.util.Collections.emptyList(); - - private void ensureAcceleratorsIsMutable() { - if (!((bitField0_ & 0x00000400) != 0)) { - accelerators_ = - new java.util.ArrayList(accelerators_); - bitField0_ |= 0x00000400; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.AcceleratorConfig, - com.google.container.v1beta1.AcceleratorConfig.Builder, - com.google.container.v1beta1.AcceleratorConfigOrBuilder> - acceleratorsBuilder_; - - /** - * - * - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - public java.util.List getAcceleratorsList() { - if (acceleratorsBuilder_ == null) { - return java.util.Collections.unmodifiableList(accelerators_); - } else { - return acceleratorsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - public int getAcceleratorsCount() { - if (acceleratorsBuilder_ == null) { - return accelerators_.size(); - } else { - return acceleratorsBuilder_.getCount(); - } - } - /** - * - * - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - public com.google.container.v1beta1.AcceleratorConfig getAccelerators(int index) { - if (acceleratorsBuilder_ == null) { - return accelerators_.get(index); - } else { - return acceleratorsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - public Builder setAccelerators( - int index, com.google.container.v1beta1.AcceleratorConfig value) { - if (acceleratorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAcceleratorsIsMutable(); - accelerators_.set(index, value); - onChanged(); - } else { - acceleratorsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - public Builder setAccelerators( - int index, com.google.container.v1beta1.AcceleratorConfig.Builder builderForValue) { - if (acceleratorsBuilder_ == null) { - ensureAcceleratorsIsMutable(); - accelerators_.set(index, builderForValue.build()); - onChanged(); - } else { - acceleratorsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - public Builder addAccelerators(com.google.container.v1beta1.AcceleratorConfig value) { - if (acceleratorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAcceleratorsIsMutable(); - accelerators_.add(value); - onChanged(); - } else { - acceleratorsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - public Builder addAccelerators( - int index, com.google.container.v1beta1.AcceleratorConfig value) { - if (acceleratorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAcceleratorsIsMutable(); - accelerators_.add(index, value); - onChanged(); - } else { - acceleratorsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - public Builder addAccelerators( - com.google.container.v1beta1.AcceleratorConfig.Builder builderForValue) { - if (acceleratorsBuilder_ == null) { - ensureAcceleratorsIsMutable(); - accelerators_.add(builderForValue.build()); - onChanged(); - } else { - acceleratorsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - public Builder addAccelerators( - int index, com.google.container.v1beta1.AcceleratorConfig.Builder builderForValue) { - if (acceleratorsBuilder_ == null) { - ensureAcceleratorsIsMutable(); - accelerators_.add(index, builderForValue.build()); - onChanged(); - } else { - acceleratorsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - public Builder addAllAccelerators( - java.lang.Iterable values) { - if (acceleratorsBuilder_ == null) { - ensureAcceleratorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accelerators_); - onChanged(); - } else { - acceleratorsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - public Builder clearAccelerators() { - if (acceleratorsBuilder_ == null) { - accelerators_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); - onChanged(); - } else { - acceleratorsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - public Builder removeAccelerators(int index) { - if (acceleratorsBuilder_ == null) { - ensureAcceleratorsIsMutable(); - accelerators_.remove(index); - onChanged(); - } else { - acceleratorsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - public com.google.container.v1beta1.AcceleratorConfig.Builder getAcceleratorsBuilder( - int index) { - return getAcceleratorsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - public com.google.container.v1beta1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder( - int index) { - if (acceleratorsBuilder_ == null) { - return accelerators_.get(index); - } else { - return acceleratorsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - public java.util.List - getAcceleratorsOrBuilderList() { - if (acceleratorsBuilder_ != null) { - return acceleratorsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(accelerators_); - } - } - /** - * - * - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - public com.google.container.v1beta1.AcceleratorConfig.Builder addAcceleratorsBuilder() { - return getAcceleratorsFieldBuilder() - .addBuilder(com.google.container.v1beta1.AcceleratorConfig.getDefaultInstance()); - } - /** - * - * - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - public com.google.container.v1beta1.AcceleratorConfig.Builder addAcceleratorsBuilder( - int index) { - return getAcceleratorsFieldBuilder() - .addBuilder(index, com.google.container.v1beta1.AcceleratorConfig.getDefaultInstance()); - } - /** - * - * - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; - */ - public java.util.List - getAcceleratorsBuilderList() { - return getAcceleratorsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.AcceleratorConfig, - com.google.container.v1beta1.AcceleratorConfig.Builder, - com.google.container.v1beta1.AcceleratorConfigOrBuilder> - getAcceleratorsFieldBuilder() { - if (acceleratorsBuilder_ == null) { - acceleratorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.AcceleratorConfig, - com.google.container.v1beta1.AcceleratorConfig.Builder, - com.google.container.v1beta1.AcceleratorConfigOrBuilder>( - accelerators_, ((bitField0_ & 0x00000400) != 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 ((bitField0_ & 0x00000800) != 0); - } - /** - * - * - *
-     * 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; - } else { - sandboxConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000800; - onChanged(); - 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(); - } else { - sandboxConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000800; - onChanged(); - 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 (((bitField0_ & 0x00000800) != 0) - && sandboxConfig_ != null - && sandboxConfig_ != com.google.container.v1beta1.SandboxConfig.getDefaultInstance()) { - getSandboxConfigBuilder().mergeFrom(value); - } else { - sandboxConfig_ = value; - } - } else { - sandboxConfigBuilder_.mergeFrom(value); - } - if (sandboxConfig_ != null) { - bitField0_ |= 0x00000800; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Sandbox configuration for this node.
-     * 
- * - * .google.container.v1beta1.SandboxConfig sandbox_config = 17; - */ - public Builder clearSandboxConfig() { - bitField0_ = (bitField0_ & ~0x00000800); - sandboxConfig_ = null; - if (sandboxConfigBuilder_ != null) { - sandboxConfigBuilder_.dispose(); - sandboxConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Sandbox configuration for this node.
-     * 
- * - * .google.container.v1beta1.SandboxConfig sandbox_config = 17; - */ - public com.google.container.v1beta1.SandboxConfig.Builder getSandboxConfigBuilder() { - bitField0_ |= 0x00000800; - 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; - bitField0_ |= 0x00001000; - 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(); - bitField0_ = (bitField0_ & ~0x00001000); - 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; - bitField0_ |= 0x00001000; - 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 ((bitField0_ & 0x00002000) != 0); - } - /** - * - * - *
-     * 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; - } else { - reservationAffinityBuilder_.setMessage(value); - } - bitField0_ |= 0x00002000; - onChanged(); - 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(); - } else { - reservationAffinityBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00002000; - onChanged(); - 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 (((bitField0_ & 0x00002000) != 0) - && reservationAffinity_ != null - && reservationAffinity_ - != com.google.container.v1beta1.ReservationAffinity.getDefaultInstance()) { - getReservationAffinityBuilder().mergeFrom(value); - } else { - reservationAffinity_ = value; - } - } else { - reservationAffinityBuilder_.mergeFrom(value); - } - if (reservationAffinity_ != null) { - bitField0_ |= 0x00002000; - onChanged(); - } - 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() { - bitField0_ = (bitField0_ & ~0x00002000); - reservationAffinity_ = null; - if (reservationAffinityBuilder_ != null) { - reservationAffinityBuilder_.dispose(); - reservationAffinityBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00002000; - 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; - bitField0_ |= 0x00004000; - 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(); - bitField0_ = (bitField0_ & ~0x00004000); - 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; - bitField0_ |= 0x00004000; - 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; - bitField0_ |= 0x00008000; - 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(); - bitField0_ = (bitField0_ & ~0x00008000); - 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; - bitField0_ |= 0x00008000; - 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 ((bitField0_ & 0x00010000) != 0); - } - /** - * - * - *
-     * 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; - } else { - workloadMetadataConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00010000; - onChanged(); - 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(); - } else { - workloadMetadataConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00010000; - onChanged(); - 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 (((bitField0_ & 0x00010000) != 0) - && workloadMetadataConfig_ != null - && workloadMetadataConfig_ - != com.google.container.v1beta1.WorkloadMetadataConfig.getDefaultInstance()) { - getWorkloadMetadataConfigBuilder().mergeFrom(value); - } else { - workloadMetadataConfig_ = value; - } - } else { - workloadMetadataConfigBuilder_.mergeFrom(value); - } - if (workloadMetadataConfig_ != null) { - bitField0_ |= 0x00010000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The workload metadata configuration for this node.
-     * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public Builder clearWorkloadMetadataConfig() { - bitField0_ = (bitField0_ & ~0x00010000); - workloadMetadataConfig_ = null; - if (workloadMetadataConfigBuilder_ != null) { - workloadMetadataConfigBuilder_.dispose(); - workloadMetadataConfigBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00010000; - 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_ & 0x00020000) != 0)) { - taints_ = new java.util.ArrayList(taints_); - bitField0_ |= 0x00020000; - } - } - - 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_ & ~0x00020000); - 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_ & 0x00020000) != 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; - bitField0_ |= 0x00040000; - 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(); - bitField0_ = (bitField0_ & ~0x00040000); - 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; - bitField0_ |= 0x00040000; - 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 ((bitField0_ & 0x00080000) != 0); - } - /** - * - * - *
-     * 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; - } else { - shieldedInstanceConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00080000; - onChanged(); - 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(); - } else { - shieldedInstanceConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00080000; - onChanged(); - 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 (((bitField0_ & 0x00080000) != 0) - && shieldedInstanceConfig_ != null - && shieldedInstanceConfig_ - != com.google.container.v1beta1.ShieldedInstanceConfig.getDefaultInstance()) { - getShieldedInstanceConfigBuilder().mergeFrom(value); - } else { - shieldedInstanceConfig_ = value; - } - } else { - shieldedInstanceConfigBuilder_.mergeFrom(value); - } - if (shieldedInstanceConfig_ != null) { - bitField0_ |= 0x00080000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; - */ - public Builder clearShieldedInstanceConfig() { - bitField0_ = (bitField0_ & ~0x00080000); - shieldedInstanceConfig_ = null; - if (shieldedInstanceConfigBuilder_ != null) { - shieldedInstanceConfigBuilder_.dispose(); - shieldedInstanceConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; - */ - public com.google.container.v1beta1.ShieldedInstanceConfig.Builder - getShieldedInstanceConfigBuilder() { - bitField0_ |= 0x00080000; - 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 ((bitField0_ & 0x00100000) != 0); - } - /** - * - * - *
-     * 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; - } else { - linuxNodeConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00100000; - onChanged(); - 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(); - } else { - linuxNodeConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00100000; - onChanged(); - 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 (((bitField0_ & 0x00100000) != 0) - && linuxNodeConfig_ != null - && linuxNodeConfig_ - != com.google.container.v1beta1.LinuxNodeConfig.getDefaultInstance()) { - getLinuxNodeConfigBuilder().mergeFrom(value); - } else { - linuxNodeConfig_ = value; - } - } else { - linuxNodeConfigBuilder_.mergeFrom(value); - } - if (linuxNodeConfig_ != null) { - bitField0_ |= 0x00100000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 21; - */ - public Builder clearLinuxNodeConfig() { - bitField0_ = (bitField0_ & ~0x00100000); - linuxNodeConfig_ = null; - if (linuxNodeConfigBuilder_ != null) { - linuxNodeConfigBuilder_.dispose(); - linuxNodeConfigBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00100000; - 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 ((bitField0_ & 0x00200000) != 0); - } - /** - * - * - *
-     * 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; - } else { - kubeletConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00200000; - onChanged(); - 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(); - } else { - kubeletConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00200000; - onChanged(); - 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 (((bitField0_ & 0x00200000) != 0) - && kubeletConfig_ != null - && kubeletConfig_ - != com.google.container.v1beta1.NodeKubeletConfig.getDefaultInstance()) { - getKubeletConfigBuilder().mergeFrom(value); - } else { - kubeletConfig_ = value; - } - } else { - kubeletConfigBuilder_.mergeFrom(value); - } - if (kubeletConfig_ != null) { - bitField0_ |= 0x00200000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; - */ - public Builder clearKubeletConfig() { - bitField0_ = (bitField0_ & ~0x00200000); - kubeletConfig_ = null; - if (kubeletConfigBuilder_ != null) { - kubeletConfigBuilder_.dispose(); - kubeletConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; - */ - public com.google.container.v1beta1.NodeKubeletConfig.Builder getKubeletConfigBuilder() { - bitField0_ |= 0x00200000; - 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 ((bitField0_ & 0x00400000) != 0); - } - /** - * - * - *
-     * 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; - } else { - ephemeralStorageConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00400000; - onChanged(); - 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(); - } else { - ephemeralStorageConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00400000; - onChanged(); - 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 (((bitField0_ & 0x00400000) != 0) - && ephemeralStorageConfig_ != null - && ephemeralStorageConfig_ - != com.google.container.v1beta1.EphemeralStorageConfig.getDefaultInstance()) { - getEphemeralStorageConfigBuilder().mergeFrom(value); - } else { - ephemeralStorageConfig_ = value; - } - } else { - ephemeralStorageConfigBuilder_.mergeFrom(value); - } - if (ephemeralStorageConfig_ != null) { - bitField0_ |= 0x00400000; - onChanged(); - } - 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() { - bitField0_ = (bitField0_ & ~0x00400000); - ephemeralStorageConfig_ = null; - if (ephemeralStorageConfigBuilder_ != null) { - ephemeralStorageConfigBuilder_.dispose(); - ephemeralStorageConfigBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00400000; - 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_; - } - - private com.google.container.v1beta1.GcfsConfig gcfsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GcfsConfig, - com.google.container.v1beta1.GcfsConfig.Builder, - com.google.container.v1beta1.GcfsConfigOrBuilder> - gcfsConfigBuilder_; - /** - * - * - *
-     * GCFS (Google Container File System) configs.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 25; - * - * @return Whether the gcfsConfig field is set. - */ - public boolean hasGcfsConfig() { - return ((bitField0_ & 0x00800000) != 0); - } - /** - * - * - *
-     * GCFS (Google Container File System) configs.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 25; - * - * @return The gcfsConfig. - */ - public com.google.container.v1beta1.GcfsConfig getGcfsConfig() { - if (gcfsConfigBuilder_ == null) { - return gcfsConfig_ == null - ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() - : gcfsConfig_; - } else { - return gcfsConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * GCFS (Google Container File System) configs.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 25; - */ - public Builder setGcfsConfig(com.google.container.v1beta1.GcfsConfig value) { - if (gcfsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gcfsConfig_ = value; - } else { - gcfsConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00800000; - onChanged(); - return this; - } - /** - * - * - *
-     * GCFS (Google Container File System) configs.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 25; - */ - public Builder setGcfsConfig(com.google.container.v1beta1.GcfsConfig.Builder builderForValue) { - if (gcfsConfigBuilder_ == null) { - gcfsConfig_ = builderForValue.build(); - } else { - gcfsConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00800000; - onChanged(); - return this; - } - /** - * - * - *
-     * GCFS (Google Container File System) configs.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 25; - */ - public Builder mergeGcfsConfig(com.google.container.v1beta1.GcfsConfig value) { - if (gcfsConfigBuilder_ == null) { - if (((bitField0_ & 0x00800000) != 0) - && gcfsConfig_ != null - && gcfsConfig_ != com.google.container.v1beta1.GcfsConfig.getDefaultInstance()) { - getGcfsConfigBuilder().mergeFrom(value); - } else { - gcfsConfig_ = value; - } - } else { - gcfsConfigBuilder_.mergeFrom(value); - } - if (gcfsConfig_ != null) { - bitField0_ |= 0x00800000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * GCFS (Google Container File System) configs.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 25; - */ - public Builder clearGcfsConfig() { - bitField0_ = (bitField0_ & ~0x00800000); - gcfsConfig_ = null; - if (gcfsConfigBuilder_ != null) { - gcfsConfigBuilder_.dispose(); - gcfsConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * GCFS (Google Container File System) configs.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 25; - */ - public com.google.container.v1beta1.GcfsConfig.Builder getGcfsConfigBuilder() { - bitField0_ |= 0x00800000; - onChanged(); - return getGcfsConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * GCFS (Google Container File System) configs.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 25; - */ - public com.google.container.v1beta1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { - if (gcfsConfigBuilder_ != null) { - return gcfsConfigBuilder_.getMessageOrBuilder(); - } else { - return gcfsConfig_ == null - ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() - : gcfsConfig_; - } - } - /** - * - * - *
-     * GCFS (Google Container File System) configs.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 25; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GcfsConfig, - com.google.container.v1beta1.GcfsConfig.Builder, - com.google.container.v1beta1.GcfsConfigOrBuilder> - getGcfsConfigFieldBuilder() { - if (gcfsConfigBuilder_ == null) { - gcfsConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GcfsConfig, - com.google.container.v1beta1.GcfsConfig.Builder, - com.google.container.v1beta1.GcfsConfigOrBuilder>( - getGcfsConfig(), getParentForChildren(), isClean()); - gcfsConfig_ = null; - } - return gcfsConfigBuilder_; - } - - private com.google.container.v1beta1.AdvancedMachineFeatures advancedMachineFeatures_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AdvancedMachineFeatures, - com.google.container.v1beta1.AdvancedMachineFeatures.Builder, - com.google.container.v1beta1.AdvancedMachineFeaturesOrBuilder> - advancedMachineFeaturesBuilder_; - /** - * - * - *
-     * Advanced features for the Compute Engine VM.
-     * 
- * - * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; - * - * - * @return Whether the advancedMachineFeatures field is set. - */ - public boolean hasAdvancedMachineFeatures() { - return ((bitField0_ & 0x01000000) != 0); - } - /** - * - * - *
-     * Advanced features for the Compute Engine VM.
-     * 
- * - * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; - * - * - * @return The advancedMachineFeatures. - */ - public com.google.container.v1beta1.AdvancedMachineFeatures getAdvancedMachineFeatures() { - if (advancedMachineFeaturesBuilder_ == null) { - return advancedMachineFeatures_ == null - ? com.google.container.v1beta1.AdvancedMachineFeatures.getDefaultInstance() - : advancedMachineFeatures_; - } else { - return advancedMachineFeaturesBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Advanced features for the Compute Engine VM.
-     * 
- * - * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; - * - */ - public Builder setAdvancedMachineFeatures( - com.google.container.v1beta1.AdvancedMachineFeatures value) { - if (advancedMachineFeaturesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - advancedMachineFeatures_ = value; - } else { - advancedMachineFeaturesBuilder_.setMessage(value); - } - bitField0_ |= 0x01000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Advanced features for the Compute Engine VM.
-     * 
- * - * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; - * - */ - public Builder setAdvancedMachineFeatures( - com.google.container.v1beta1.AdvancedMachineFeatures.Builder builderForValue) { - if (advancedMachineFeaturesBuilder_ == null) { - advancedMachineFeatures_ = builderForValue.build(); - } else { - advancedMachineFeaturesBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x01000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Advanced features for the Compute Engine VM.
-     * 
- * - * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; - * - */ - public Builder mergeAdvancedMachineFeatures( - com.google.container.v1beta1.AdvancedMachineFeatures value) { - if (advancedMachineFeaturesBuilder_ == null) { - if (((bitField0_ & 0x01000000) != 0) - && advancedMachineFeatures_ != null - && advancedMachineFeatures_ - != com.google.container.v1beta1.AdvancedMachineFeatures.getDefaultInstance()) { - getAdvancedMachineFeaturesBuilder().mergeFrom(value); - } else { - advancedMachineFeatures_ = value; - } - } else { - advancedMachineFeaturesBuilder_.mergeFrom(value); - } - if (advancedMachineFeatures_ != null) { - bitField0_ |= 0x01000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Advanced features for the Compute Engine VM.
-     * 
- * - * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; - * - */ - public Builder clearAdvancedMachineFeatures() { - bitField0_ = (bitField0_ & ~0x01000000); - advancedMachineFeatures_ = null; - if (advancedMachineFeaturesBuilder_ != null) { - advancedMachineFeaturesBuilder_.dispose(); - advancedMachineFeaturesBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Advanced features for the Compute Engine VM.
-     * 
- * - * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; - * - */ - public com.google.container.v1beta1.AdvancedMachineFeatures.Builder - getAdvancedMachineFeaturesBuilder() { - bitField0_ |= 0x01000000; - onChanged(); - return getAdvancedMachineFeaturesFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Advanced features for the Compute Engine VM.
-     * 
- * - * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; - * - */ - public com.google.container.v1beta1.AdvancedMachineFeaturesOrBuilder - getAdvancedMachineFeaturesOrBuilder() { - if (advancedMachineFeaturesBuilder_ != null) { - return advancedMachineFeaturesBuilder_.getMessageOrBuilder(); - } else { - return advancedMachineFeatures_ == null - ? com.google.container.v1beta1.AdvancedMachineFeatures.getDefaultInstance() - : advancedMachineFeatures_; - } - } - /** - * - * - *
-     * Advanced features for the Compute Engine VM.
-     * 
- * - * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AdvancedMachineFeatures, - com.google.container.v1beta1.AdvancedMachineFeatures.Builder, - com.google.container.v1beta1.AdvancedMachineFeaturesOrBuilder> - getAdvancedMachineFeaturesFieldBuilder() { - if (advancedMachineFeaturesBuilder_ == null) { - advancedMachineFeaturesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.AdvancedMachineFeatures, - com.google.container.v1beta1.AdvancedMachineFeatures.Builder, - com.google.container.v1beta1.AdvancedMachineFeaturesOrBuilder>( - getAdvancedMachineFeatures(), getParentForChildren(), isClean()); - advancedMachineFeatures_ = null; - } - return advancedMachineFeaturesBuilder_; - } - - private com.google.container.v1beta1.VirtualNIC gvnic_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.VirtualNIC, - com.google.container.v1beta1.VirtualNIC.Builder, - com.google.container.v1beta1.VirtualNICOrBuilder> - gvnicBuilder_; - /** - * - * - *
-     * Enable or disable gvnic on the node pool.
-     * 
- * - * .google.container.v1beta1.VirtualNIC gvnic = 29; - * - * @return Whether the gvnic field is set. - */ - public boolean hasGvnic() { - return ((bitField0_ & 0x02000000) != 0); - } - /** - * - * - *
-     * Enable or disable gvnic on the node pool.
-     * 
- * - * .google.container.v1beta1.VirtualNIC gvnic = 29; - * - * @return The gvnic. - */ - public com.google.container.v1beta1.VirtualNIC getGvnic() { - if (gvnicBuilder_ == null) { - return gvnic_ == null - ? com.google.container.v1beta1.VirtualNIC.getDefaultInstance() - : gvnic_; - } else { - return gvnicBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Enable or disable gvnic on the node pool.
-     * 
- * - * .google.container.v1beta1.VirtualNIC gvnic = 29; - */ - public Builder setGvnic(com.google.container.v1beta1.VirtualNIC value) { - if (gvnicBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gvnic_ = value; - } else { - gvnicBuilder_.setMessage(value); - } - bitField0_ |= 0x02000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable or disable gvnic on the node pool.
-     * 
- * - * .google.container.v1beta1.VirtualNIC gvnic = 29; - */ - public Builder setGvnic(com.google.container.v1beta1.VirtualNIC.Builder builderForValue) { - if (gvnicBuilder_ == null) { - gvnic_ = builderForValue.build(); - } else { - gvnicBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x02000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable or disable gvnic on the node pool.
-     * 
- * - * .google.container.v1beta1.VirtualNIC gvnic = 29; - */ - public Builder mergeGvnic(com.google.container.v1beta1.VirtualNIC value) { - if (gvnicBuilder_ == null) { - if (((bitField0_ & 0x02000000) != 0) - && gvnic_ != null - && gvnic_ != com.google.container.v1beta1.VirtualNIC.getDefaultInstance()) { - getGvnicBuilder().mergeFrom(value); - } else { - gvnic_ = value; - } - } else { - gvnicBuilder_.mergeFrom(value); - } - if (gvnic_ != null) { - bitField0_ |= 0x02000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Enable or disable gvnic on the node pool.
-     * 
- * - * .google.container.v1beta1.VirtualNIC gvnic = 29; - */ - public Builder clearGvnic() { - bitField0_ = (bitField0_ & ~0x02000000); - gvnic_ = null; - if (gvnicBuilder_ != null) { - gvnicBuilder_.dispose(); - gvnicBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Enable or disable gvnic on the node pool.
-     * 
- * - * .google.container.v1beta1.VirtualNIC gvnic = 29; - */ - public com.google.container.v1beta1.VirtualNIC.Builder getGvnicBuilder() { - bitField0_ |= 0x02000000; - onChanged(); - return getGvnicFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Enable or disable gvnic on the node pool.
-     * 
- * - * .google.container.v1beta1.VirtualNIC gvnic = 29; - */ - public com.google.container.v1beta1.VirtualNICOrBuilder getGvnicOrBuilder() { - if (gvnicBuilder_ != null) { - return gvnicBuilder_.getMessageOrBuilder(); - } else { - return gvnic_ == null - ? com.google.container.v1beta1.VirtualNIC.getDefaultInstance() - : gvnic_; - } - } - /** - * - * - *
-     * Enable or disable gvnic on the node pool.
-     * 
- * - * .google.container.v1beta1.VirtualNIC gvnic = 29; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.VirtualNIC, - com.google.container.v1beta1.VirtualNIC.Builder, - com.google.container.v1beta1.VirtualNICOrBuilder> - getGvnicFieldBuilder() { - if (gvnicBuilder_ == null) { - gvnicBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.VirtualNIC, - com.google.container.v1beta1.VirtualNIC.Builder, - com.google.container.v1beta1.VirtualNICOrBuilder>( - getGvnic(), getParentForChildren(), isClean()); - gvnic_ = null; - } - return gvnicBuilder_; - } - - private boolean spot_; - /** - * - * - *
-     * Spot flag for enabling Spot VM, which is a rebrand of
-     * the existing preemptible flag.
-     * 
- * - * bool spot = 32; - * - * @return The spot. - */ - @java.lang.Override - public boolean getSpot() { - return spot_; - } - /** - * - * - *
-     * Spot flag for enabling Spot VM, which is a rebrand of
-     * the existing preemptible flag.
-     * 
- * - * bool spot = 32; - * - * @param value The spot to set. - * @return This builder for chaining. - */ - public Builder setSpot(boolean value) { - - spot_ = value; - bitField0_ |= 0x04000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Spot flag for enabling Spot VM, which is a rebrand of
-     * the existing preemptible flag.
-     * 
- * - * bool spot = 32; - * - * @return This builder for chaining. - */ - public Builder clearSpot() { - bitField0_ = (bitField0_ & ~0x04000000); - spot_ = false; - onChanged(); - return this; - } - - 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_; - /** - * - * - *
-     * Confidential nodes config.
-     * All the nodes in the node pool will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 35; - * - * @return Whether the confidentialNodes field is set. - */ - public boolean hasConfidentialNodes() { - return ((bitField0_ & 0x08000000) != 0); - } - /** - * - * - *
-     * Confidential nodes config.
-     * All the nodes in the node pool will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 35; - * - * @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(); - } - } - /** - * - * - *
-     * Confidential nodes config.
-     * All the nodes in the node pool will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 35; - */ - public Builder setConfidentialNodes(com.google.container.v1beta1.ConfidentialNodes value) { - if (confidentialNodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - confidentialNodes_ = value; - } else { - confidentialNodesBuilder_.setMessage(value); - } - bitField0_ |= 0x08000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Confidential nodes config.
-     * All the nodes in the node pool will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 35; - */ - public Builder setConfidentialNodes( - com.google.container.v1beta1.ConfidentialNodes.Builder builderForValue) { - if (confidentialNodesBuilder_ == null) { - confidentialNodes_ = builderForValue.build(); - } else { - confidentialNodesBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x08000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Confidential nodes config.
-     * All the nodes in the node pool will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 35; - */ - public Builder mergeConfidentialNodes(com.google.container.v1beta1.ConfidentialNodes value) { - if (confidentialNodesBuilder_ == null) { - if (((bitField0_ & 0x08000000) != 0) - && confidentialNodes_ != null - && confidentialNodes_ - != com.google.container.v1beta1.ConfidentialNodes.getDefaultInstance()) { - getConfidentialNodesBuilder().mergeFrom(value); - } else { - confidentialNodes_ = value; - } - } else { - confidentialNodesBuilder_.mergeFrom(value); - } - if (confidentialNodes_ != null) { - bitField0_ |= 0x08000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Confidential nodes config.
-     * All the nodes in the node pool will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 35; - */ - public Builder clearConfidentialNodes() { - bitField0_ = (bitField0_ & ~0x08000000); - confidentialNodes_ = null; - if (confidentialNodesBuilder_ != null) { - confidentialNodesBuilder_.dispose(); - confidentialNodesBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Confidential nodes config.
-     * All the nodes in the node pool will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 35; - */ - public com.google.container.v1beta1.ConfidentialNodes.Builder getConfidentialNodesBuilder() { - bitField0_ |= 0x08000000; - onChanged(); - return getConfidentialNodesFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Confidential nodes config.
-     * All the nodes in the node pool will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 35; - */ - public com.google.container.v1beta1.ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder() { - if (confidentialNodesBuilder_ != null) { - return confidentialNodesBuilder_.getMessageOrBuilder(); - } else { - return confidentialNodes_ == null - ? com.google.container.v1beta1.ConfidentialNodes.getDefaultInstance() - : confidentialNodes_; - } - } - /** - * - * - *
-     * Confidential nodes config.
-     * All the nodes in the node pool will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 35; - */ - 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 com.google.container.v1beta1.FastSocket fastSocket_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.FastSocket, - com.google.container.v1beta1.FastSocket.Builder, - com.google.container.v1beta1.FastSocketOrBuilder> - fastSocketBuilder_; - /** - * - * - *
-     * Enable or disable NCCL fast socket for the node pool.
-     * 
- * - * optional .google.container.v1beta1.FastSocket fast_socket = 36; - * - * @return Whether the fastSocket field is set. - */ - public boolean hasFastSocket() { - return ((bitField0_ & 0x10000000) != 0); - } - /** - * - * - *
-     * Enable or disable NCCL fast socket for the node pool.
-     * 
- * - * optional .google.container.v1beta1.FastSocket fast_socket = 36; - * - * @return The fastSocket. - */ - public com.google.container.v1beta1.FastSocket getFastSocket() { - if (fastSocketBuilder_ == null) { - return fastSocket_ == null - ? com.google.container.v1beta1.FastSocket.getDefaultInstance() - : fastSocket_; - } else { - return fastSocketBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Enable or disable NCCL fast socket for the node pool.
-     * 
- * - * optional .google.container.v1beta1.FastSocket fast_socket = 36; - */ - public Builder setFastSocket(com.google.container.v1beta1.FastSocket value) { - if (fastSocketBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - fastSocket_ = value; - } else { - fastSocketBuilder_.setMessage(value); - } - bitField0_ |= 0x10000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable or disable NCCL fast socket for the node pool.
-     * 
- * - * optional .google.container.v1beta1.FastSocket fast_socket = 36; - */ - public Builder setFastSocket(com.google.container.v1beta1.FastSocket.Builder builderForValue) { - if (fastSocketBuilder_ == null) { - fastSocket_ = builderForValue.build(); - } else { - fastSocketBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x10000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable or disable NCCL fast socket for the node pool.
-     * 
- * - * optional .google.container.v1beta1.FastSocket fast_socket = 36; - */ - public Builder mergeFastSocket(com.google.container.v1beta1.FastSocket value) { - if (fastSocketBuilder_ == null) { - if (((bitField0_ & 0x10000000) != 0) - && fastSocket_ != null - && fastSocket_ != com.google.container.v1beta1.FastSocket.getDefaultInstance()) { - getFastSocketBuilder().mergeFrom(value); - } else { - fastSocket_ = value; - } - } else { - fastSocketBuilder_.mergeFrom(value); - } - if (fastSocket_ != null) { - bitField0_ |= 0x10000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Enable or disable NCCL fast socket for the node pool.
-     * 
- * - * optional .google.container.v1beta1.FastSocket fast_socket = 36; - */ - public Builder clearFastSocket() { - bitField0_ = (bitField0_ & ~0x10000000); - fastSocket_ = null; - if (fastSocketBuilder_ != null) { - fastSocketBuilder_.dispose(); - fastSocketBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Enable or disable NCCL fast socket for the node pool.
-     * 
- * - * optional .google.container.v1beta1.FastSocket fast_socket = 36; - */ - public com.google.container.v1beta1.FastSocket.Builder getFastSocketBuilder() { - bitField0_ |= 0x10000000; - onChanged(); - return getFastSocketFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Enable or disable NCCL fast socket for the node pool.
-     * 
- * - * optional .google.container.v1beta1.FastSocket fast_socket = 36; - */ - public com.google.container.v1beta1.FastSocketOrBuilder getFastSocketOrBuilder() { - if (fastSocketBuilder_ != null) { - return fastSocketBuilder_.getMessageOrBuilder(); - } else { - return fastSocket_ == null - ? com.google.container.v1beta1.FastSocket.getDefaultInstance() - : fastSocket_; - } - } - /** - * - * - *
-     * Enable or disable NCCL fast socket for the node pool.
-     * 
- * - * optional .google.container.v1beta1.FastSocket fast_socket = 36; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.FastSocket, - com.google.container.v1beta1.FastSocket.Builder, - com.google.container.v1beta1.FastSocketOrBuilder> - getFastSocketFieldBuilder() { - if (fastSocketBuilder_ == null) { - fastSocketBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.FastSocket, - com.google.container.v1beta1.FastSocket.Builder, - com.google.container.v1beta1.FastSocketOrBuilder>( - getFastSocket(), getParentForChildren(), isClean()); - fastSocket_ = null; - } - return fastSocketBuilder_; - } - - 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() { - if (resourceLabels_ == null) { - resourceLabels_ = - com.google.protobuf.MapField.newMapField(ResourceLabelsDefaultEntryHolder.defaultEntry); - } - if (!resourceLabels_.isMutable()) { - resourceLabels_ = resourceLabels_.copy(); - } - bitField0_ |= 0x20000000; - onChanged(); - return resourceLabels_; - } - - public int getResourceLabelsCount() { - return internalGetResourceLabels().getMap().size(); - } - /** - * - * - *
-     * The resource labels for the node pool to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * map<string, string> resource_labels = 37; - */ - @java.lang.Override - public boolean containsResourceLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - 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 node pool to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * map<string, string> resource_labels = 37; - */ - @java.lang.Override - public java.util.Map getResourceLabelsMap() { - return internalGetResourceLabels().getMap(); - } - /** - * - * - *
-     * The resource labels for the node pool to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * map<string, string> resource_labels = 37; - */ - @java.lang.Override - public /* nullable */ java.lang.String getResourceLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetResourceLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * The resource labels for the node pool to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * map<string, string> resource_labels = 37; - */ - @java.lang.Override - public java.lang.String getResourceLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetResourceLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearResourceLabels() { - bitField0_ = (bitField0_ & ~0x20000000); - internalGetMutableResourceLabels().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * The resource labels for the node pool to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * map<string, string> resource_labels = 37; - */ - public Builder removeResourceLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableResourceLabels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableResourceLabels() { - bitField0_ |= 0x20000000; - return internalGetMutableResourceLabels().getMutableMap(); - } - /** - * - * - *
-     * The resource labels for the node pool to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * map<string, string> resource_labels = 37; - */ - public Builder putResourceLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableResourceLabels().getMutableMap().put(key, value); - bitField0_ |= 0x20000000; - return this; - } - /** - * - * - *
-     * The resource labels for the node pool to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * map<string, string> resource_labels = 37; - */ - public Builder putAllResourceLabels(java.util.Map values) { - internalGetMutableResourceLabels().getMutableMap().putAll(values); - bitField0_ |= 0x20000000; - return this; - } - - private com.google.container.v1beta1.NodePoolLoggingConfig loggingConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePoolLoggingConfig, - com.google.container.v1beta1.NodePoolLoggingConfig.Builder, - com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder> - loggingConfigBuilder_; - /** - * - * - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 38; - * - * @return Whether the loggingConfig field is set. - */ - public boolean hasLoggingConfig() { - return ((bitField0_ & 0x40000000) != 0); - } - /** - * - * - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 38; - * - * @return The loggingConfig. - */ - public com.google.container.v1beta1.NodePoolLoggingConfig getLoggingConfig() { - if (loggingConfigBuilder_ == null) { - return loggingConfig_ == null - ? com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance() - : loggingConfig_; - } else { - return loggingConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 38; - */ - public Builder setLoggingConfig(com.google.container.v1beta1.NodePoolLoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - loggingConfig_ = value; - } else { - loggingConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x40000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 38; - */ - public Builder setLoggingConfig( - com.google.container.v1beta1.NodePoolLoggingConfig.Builder builderForValue) { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = builderForValue.build(); - } else { - loggingConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x40000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 38; - */ - public Builder mergeLoggingConfig(com.google.container.v1beta1.NodePoolLoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (((bitField0_ & 0x40000000) != 0) - && loggingConfig_ != null - && loggingConfig_ - != com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance()) { - getLoggingConfigBuilder().mergeFrom(value); - } else { - loggingConfig_ = value; - } - } else { - loggingConfigBuilder_.mergeFrom(value); - } - if (loggingConfig_ != null) { - bitField0_ |= 0x40000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 38; - */ - public Builder clearLoggingConfig() { - bitField0_ = (bitField0_ & ~0x40000000); - loggingConfig_ = null; - if (loggingConfigBuilder_ != null) { - loggingConfigBuilder_.dispose(); - loggingConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 38; - */ - public com.google.container.v1beta1.NodePoolLoggingConfig.Builder getLoggingConfigBuilder() { - bitField0_ |= 0x40000000; - onChanged(); - return getLoggingConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 38; - */ - public com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder getLoggingConfigOrBuilder() { - if (loggingConfigBuilder_ != null) { - return loggingConfigBuilder_.getMessageOrBuilder(); - } else { - return loggingConfig_ == null - ? com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance() - : loggingConfig_; - } - } - /** - * - * - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 38; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePoolLoggingConfig, - com.google.container.v1beta1.NodePoolLoggingConfig.Builder, - com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder> - getLoggingConfigFieldBuilder() { - if (loggingConfigBuilder_ == null) { - loggingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePoolLoggingConfig, - com.google.container.v1beta1.NodePoolLoggingConfig.Builder, - com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder>( - getLoggingConfig(), getParentForChildren(), isClean()); - loggingConfig_ = null; - } - return loggingConfigBuilder_; - } - - private com.google.container.v1beta1.WindowsNodeConfig windowsNodeConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WindowsNodeConfig, - com.google.container.v1beta1.WindowsNodeConfig.Builder, - com.google.container.v1beta1.WindowsNodeConfigOrBuilder> - windowsNodeConfigBuilder_; - /** - * - * - *
-     * Parameters that can be configured on Windows nodes.
-     * 
- * - * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 39; - * - * @return Whether the windowsNodeConfig field is set. - */ - public boolean hasWindowsNodeConfig() { - return ((bitField0_ & 0x80000000) != 0); - } - /** - * - * - *
-     * Parameters that can be configured on Windows nodes.
-     * 
- * - * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 39; - * - * @return The windowsNodeConfig. - */ - public com.google.container.v1beta1.WindowsNodeConfig getWindowsNodeConfig() { - if (windowsNodeConfigBuilder_ == null) { - return windowsNodeConfig_ == null - ? com.google.container.v1beta1.WindowsNodeConfig.getDefaultInstance() - : windowsNodeConfig_; - } else { - return windowsNodeConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Parameters that can be configured on Windows nodes.
-     * 
- * - * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 39; - */ - public Builder setWindowsNodeConfig(com.google.container.v1beta1.WindowsNodeConfig value) { - if (windowsNodeConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - windowsNodeConfig_ = value; - } else { - windowsNodeConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x80000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Parameters that can be configured on Windows nodes.
-     * 
- * - * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 39; - */ - public Builder setWindowsNodeConfig( - com.google.container.v1beta1.WindowsNodeConfig.Builder builderForValue) { - if (windowsNodeConfigBuilder_ == null) { - windowsNodeConfig_ = builderForValue.build(); - } else { - windowsNodeConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x80000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Parameters that can be configured on Windows nodes.
-     * 
- * - * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 39; - */ - public Builder mergeWindowsNodeConfig(com.google.container.v1beta1.WindowsNodeConfig value) { - if (windowsNodeConfigBuilder_ == null) { - if (((bitField0_ & 0x80000000) != 0) - && windowsNodeConfig_ != null - && windowsNodeConfig_ - != com.google.container.v1beta1.WindowsNodeConfig.getDefaultInstance()) { - getWindowsNodeConfigBuilder().mergeFrom(value); - } else { - windowsNodeConfig_ = value; - } - } else { - windowsNodeConfigBuilder_.mergeFrom(value); - } - if (windowsNodeConfig_ != null) { - bitField0_ |= 0x80000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Parameters that can be configured on Windows nodes.
-     * 
- * - * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 39; - */ - public Builder clearWindowsNodeConfig() { - bitField0_ = (bitField0_ & ~0x80000000); - windowsNodeConfig_ = null; - if (windowsNodeConfigBuilder_ != null) { - windowsNodeConfigBuilder_.dispose(); - windowsNodeConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Parameters that can be configured on Windows nodes.
-     * 
- * - * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 39; - */ - public com.google.container.v1beta1.WindowsNodeConfig.Builder getWindowsNodeConfigBuilder() { - bitField0_ |= 0x80000000; - onChanged(); - return getWindowsNodeConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Parameters that can be configured on Windows nodes.
-     * 
- * - * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 39; - */ - public com.google.container.v1beta1.WindowsNodeConfigOrBuilder getWindowsNodeConfigOrBuilder() { - if (windowsNodeConfigBuilder_ != null) { - return windowsNodeConfigBuilder_.getMessageOrBuilder(); - } else { - return windowsNodeConfig_ == null - ? com.google.container.v1beta1.WindowsNodeConfig.getDefaultInstance() - : windowsNodeConfig_; - } - } - /** - * - * - *
-     * Parameters that can be configured on Windows nodes.
-     * 
- * - * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 39; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WindowsNodeConfig, - com.google.container.v1beta1.WindowsNodeConfig.Builder, - com.google.container.v1beta1.WindowsNodeConfigOrBuilder> - getWindowsNodeConfigFieldBuilder() { - if (windowsNodeConfigBuilder_ == null) { - windowsNodeConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WindowsNodeConfig, - com.google.container.v1beta1.WindowsNodeConfig.Builder, - com.google.container.v1beta1.WindowsNodeConfigOrBuilder>( - getWindowsNodeConfig(), getParentForChildren(), isClean()); - windowsNodeConfig_ = null; - } - return windowsNodeConfigBuilder_; - } - - private com.google.container.v1beta1.LocalNvmeSsdBlockConfig localNvmeSsdBlockConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.LocalNvmeSsdBlockConfig, - com.google.container.v1beta1.LocalNvmeSsdBlockConfig.Builder, - com.google.container.v1beta1.LocalNvmeSsdBlockConfigOrBuilder> - localNvmeSsdBlockConfigBuilder_; - /** - * - * - *
-     * Parameters for using raw-block Local NVMe SSDs.
-     * 
- * - * .google.container.v1beta1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; - * - * - * @return Whether the localNvmeSsdBlockConfig field is set. - */ - public boolean hasLocalNvmeSsdBlockConfig() { - return ((bitField1_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Parameters for using raw-block Local NVMe SSDs.
-     * 
- * - * .google.container.v1beta1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; - * - * - * @return The localNvmeSsdBlockConfig. - */ - public com.google.container.v1beta1.LocalNvmeSsdBlockConfig getLocalNvmeSsdBlockConfig() { - if (localNvmeSsdBlockConfigBuilder_ == null) { - return localNvmeSsdBlockConfig_ == null - ? com.google.container.v1beta1.LocalNvmeSsdBlockConfig.getDefaultInstance() - : localNvmeSsdBlockConfig_; - } else { - return localNvmeSsdBlockConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Parameters for using raw-block Local NVMe SSDs.
-     * 
- * - * .google.container.v1beta1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; - * - */ - public Builder setLocalNvmeSsdBlockConfig( - com.google.container.v1beta1.LocalNvmeSsdBlockConfig value) { - if (localNvmeSsdBlockConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - localNvmeSsdBlockConfig_ = value; - } else { - localNvmeSsdBlockConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Parameters for using raw-block Local NVMe SSDs.
-     * 
- * - * .google.container.v1beta1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; - * - */ - public Builder setLocalNvmeSsdBlockConfig( - com.google.container.v1beta1.LocalNvmeSsdBlockConfig.Builder builderForValue) { - if (localNvmeSsdBlockConfigBuilder_ == null) { - localNvmeSsdBlockConfig_ = builderForValue.build(); - } else { - localNvmeSsdBlockConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Parameters for using raw-block Local NVMe SSDs.
-     * 
- * - * .google.container.v1beta1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; - * - */ - public Builder mergeLocalNvmeSsdBlockConfig( - com.google.container.v1beta1.LocalNvmeSsdBlockConfig value) { - if (localNvmeSsdBlockConfigBuilder_ == null) { - if (((bitField1_ & 0x00000001) != 0) - && localNvmeSsdBlockConfig_ != null - && localNvmeSsdBlockConfig_ - != com.google.container.v1beta1.LocalNvmeSsdBlockConfig.getDefaultInstance()) { - getLocalNvmeSsdBlockConfigBuilder().mergeFrom(value); - } else { - localNvmeSsdBlockConfig_ = value; - } - } else { - localNvmeSsdBlockConfigBuilder_.mergeFrom(value); - } - if (localNvmeSsdBlockConfig_ != null) { - bitField1_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Parameters for using raw-block Local NVMe SSDs.
-     * 
- * - * .google.container.v1beta1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; - * - */ - public Builder clearLocalNvmeSsdBlockConfig() { - bitField1_ = (bitField1_ & ~0x00000001); - localNvmeSsdBlockConfig_ = null; - if (localNvmeSsdBlockConfigBuilder_ != null) { - localNvmeSsdBlockConfigBuilder_.dispose(); - localNvmeSsdBlockConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Parameters for using raw-block Local NVMe SSDs.
-     * 
- * - * .google.container.v1beta1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; - * - */ - public com.google.container.v1beta1.LocalNvmeSsdBlockConfig.Builder - getLocalNvmeSsdBlockConfigBuilder() { - bitField1_ |= 0x00000001; - onChanged(); - return getLocalNvmeSsdBlockConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Parameters for using raw-block Local NVMe SSDs.
-     * 
- * - * .google.container.v1beta1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; - * - */ - public com.google.container.v1beta1.LocalNvmeSsdBlockConfigOrBuilder - getLocalNvmeSsdBlockConfigOrBuilder() { - if (localNvmeSsdBlockConfigBuilder_ != null) { - return localNvmeSsdBlockConfigBuilder_.getMessageOrBuilder(); - } else { - return localNvmeSsdBlockConfig_ == null - ? com.google.container.v1beta1.LocalNvmeSsdBlockConfig.getDefaultInstance() - : localNvmeSsdBlockConfig_; - } - } - /** - * - * - *
-     * Parameters for using raw-block Local NVMe SSDs.
-     * 
- * - * .google.container.v1beta1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.LocalNvmeSsdBlockConfig, - com.google.container.v1beta1.LocalNvmeSsdBlockConfig.Builder, - com.google.container.v1beta1.LocalNvmeSsdBlockConfigOrBuilder> - getLocalNvmeSsdBlockConfigFieldBuilder() { - if (localNvmeSsdBlockConfigBuilder_ == null) { - localNvmeSsdBlockConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.LocalNvmeSsdBlockConfig, - com.google.container.v1beta1.LocalNvmeSsdBlockConfig.Builder, - com.google.container.v1beta1.LocalNvmeSsdBlockConfigOrBuilder>( - getLocalNvmeSsdBlockConfig(), getParentForChildren(), isClean()); - localNvmeSsdBlockConfig_ = null; - } - return localNvmeSsdBlockConfigBuilder_; - } - - private com.google.container.v1beta1.EphemeralStorageLocalSsdConfig - ephemeralStorageLocalSsdConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.EphemeralStorageLocalSsdConfig, - com.google.container.v1beta1.EphemeralStorageLocalSsdConfig.Builder, - com.google.container.v1beta1.EphemeralStorageLocalSsdConfigOrBuilder> - ephemeralStorageLocalSsdConfigBuilder_; - /** - * - * - *
-     * Parameters for the node ephemeral storage using Local SSDs.
-     * If unspecified, ephemeral storage is backed by the boot disk.
-     * This field is functionally equivalent to the ephemeral_storage_config
-     * 
- * - * - * .google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; - * - * - * @return Whether the ephemeralStorageLocalSsdConfig field is set. - */ - public boolean hasEphemeralStorageLocalSsdConfig() { - return ((bitField1_ & 0x00000002) != 0); - } - /** - * - * - *
-     * Parameters for the node ephemeral storage using Local SSDs.
-     * If unspecified, ephemeral storage is backed by the boot disk.
-     * This field is functionally equivalent to the ephemeral_storage_config
-     * 
- * - * - * .google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; - * - * - * @return The ephemeralStorageLocalSsdConfig. - */ - public com.google.container.v1beta1.EphemeralStorageLocalSsdConfig - getEphemeralStorageLocalSsdConfig() { - if (ephemeralStorageLocalSsdConfigBuilder_ == null) { - return ephemeralStorageLocalSsdConfig_ == null - ? com.google.container.v1beta1.EphemeralStorageLocalSsdConfig.getDefaultInstance() - : ephemeralStorageLocalSsdConfig_; - } else { - return ephemeralStorageLocalSsdConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Parameters for the node ephemeral storage using Local SSDs.
-     * If unspecified, ephemeral storage is backed by the boot disk.
-     * This field is functionally equivalent to the ephemeral_storage_config
-     * 
- * - * - * .google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; - * - */ - public Builder setEphemeralStorageLocalSsdConfig( - com.google.container.v1beta1.EphemeralStorageLocalSsdConfig value) { - if (ephemeralStorageLocalSsdConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ephemeralStorageLocalSsdConfig_ = value; - } else { - ephemeralStorageLocalSsdConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Parameters for the node ephemeral storage using Local SSDs.
-     * If unspecified, ephemeral storage is backed by the boot disk.
-     * This field is functionally equivalent to the ephemeral_storage_config
-     * 
- * - * - * .google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; - * - */ - public Builder setEphemeralStorageLocalSsdConfig( - com.google.container.v1beta1.EphemeralStorageLocalSsdConfig.Builder builderForValue) { - if (ephemeralStorageLocalSsdConfigBuilder_ == null) { - ephemeralStorageLocalSsdConfig_ = builderForValue.build(); - } else { - ephemeralStorageLocalSsdConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Parameters for the node ephemeral storage using Local SSDs.
-     * If unspecified, ephemeral storage is backed by the boot disk.
-     * This field is functionally equivalent to the ephemeral_storage_config
-     * 
- * - * - * .google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; - * - */ - public Builder mergeEphemeralStorageLocalSsdConfig( - com.google.container.v1beta1.EphemeralStorageLocalSsdConfig value) { - if (ephemeralStorageLocalSsdConfigBuilder_ == null) { - if (((bitField1_ & 0x00000002) != 0) - && ephemeralStorageLocalSsdConfig_ != null - && ephemeralStorageLocalSsdConfig_ - != com.google.container.v1beta1.EphemeralStorageLocalSsdConfig - .getDefaultInstance()) { - getEphemeralStorageLocalSsdConfigBuilder().mergeFrom(value); - } else { - ephemeralStorageLocalSsdConfig_ = value; - } - } else { - ephemeralStorageLocalSsdConfigBuilder_.mergeFrom(value); - } - if (ephemeralStorageLocalSsdConfig_ != null) { - bitField1_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Parameters for the node ephemeral storage using Local SSDs.
-     * If unspecified, ephemeral storage is backed by the boot disk.
-     * This field is functionally equivalent to the ephemeral_storage_config
-     * 
- * - * - * .google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; - * - */ - public Builder clearEphemeralStorageLocalSsdConfig() { - bitField1_ = (bitField1_ & ~0x00000002); - ephemeralStorageLocalSsdConfig_ = null; - if (ephemeralStorageLocalSsdConfigBuilder_ != null) { - ephemeralStorageLocalSsdConfigBuilder_.dispose(); - ephemeralStorageLocalSsdConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Parameters for the node ephemeral storage using Local SSDs.
-     * If unspecified, ephemeral storage is backed by the boot disk.
-     * This field is functionally equivalent to the ephemeral_storage_config
-     * 
- * - * - * .google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; - * - */ - public com.google.container.v1beta1.EphemeralStorageLocalSsdConfig.Builder - getEphemeralStorageLocalSsdConfigBuilder() { - bitField1_ |= 0x00000002; - onChanged(); - return getEphemeralStorageLocalSsdConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Parameters for the node ephemeral storage using Local SSDs.
-     * If unspecified, ephemeral storage is backed by the boot disk.
-     * This field is functionally equivalent to the ephemeral_storage_config
-     * 
- * - * - * .google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; - * - */ - public com.google.container.v1beta1.EphemeralStorageLocalSsdConfigOrBuilder - getEphemeralStorageLocalSsdConfigOrBuilder() { - if (ephemeralStorageLocalSsdConfigBuilder_ != null) { - return ephemeralStorageLocalSsdConfigBuilder_.getMessageOrBuilder(); - } else { - return ephemeralStorageLocalSsdConfig_ == null - ? com.google.container.v1beta1.EphemeralStorageLocalSsdConfig.getDefaultInstance() - : ephemeralStorageLocalSsdConfig_; - } - } - /** - * - * - *
-     * Parameters for the node ephemeral storage using Local SSDs.
-     * If unspecified, ephemeral storage is backed by the boot disk.
-     * This field is functionally equivalent to the ephemeral_storage_config
-     * 
- * - * - * .google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.EphemeralStorageLocalSsdConfig, - com.google.container.v1beta1.EphemeralStorageLocalSsdConfig.Builder, - com.google.container.v1beta1.EphemeralStorageLocalSsdConfigOrBuilder> - getEphemeralStorageLocalSsdConfigFieldBuilder() { - if (ephemeralStorageLocalSsdConfigBuilder_ == null) { - ephemeralStorageLocalSsdConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.EphemeralStorageLocalSsdConfig, - com.google.container.v1beta1.EphemeralStorageLocalSsdConfig.Builder, - com.google.container.v1beta1.EphemeralStorageLocalSsdConfigOrBuilder>( - getEphemeralStorageLocalSsdConfig(), getParentForChildren(), isClean()); - ephemeralStorageLocalSsdConfig_ = null; - } - return ephemeralStorageLocalSsdConfigBuilder_; - } - - private com.google.container.v1beta1.SoleTenantConfig soleTenantConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.SoleTenantConfig, - com.google.container.v1beta1.SoleTenantConfig.Builder, - com.google.container.v1beta1.SoleTenantConfigOrBuilder> - soleTenantConfigBuilder_; - /** - * - * - *
-     * Parameters for node pools to be backed by shared sole tenant node groups.
-     * 
- * - * .google.container.v1beta1.SoleTenantConfig sole_tenant_config = 42; - * - * @return Whether the soleTenantConfig field is set. - */ - public boolean hasSoleTenantConfig() { - return ((bitField1_ & 0x00000004) != 0); - } - /** - * - * - *
-     * Parameters for node pools to be backed by shared sole tenant node groups.
-     * 
- * - * .google.container.v1beta1.SoleTenantConfig sole_tenant_config = 42; - * - * @return The soleTenantConfig. - */ - public com.google.container.v1beta1.SoleTenantConfig getSoleTenantConfig() { - if (soleTenantConfigBuilder_ == null) { - return soleTenantConfig_ == null - ? com.google.container.v1beta1.SoleTenantConfig.getDefaultInstance() - : soleTenantConfig_; - } else { - return soleTenantConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Parameters for node pools to be backed by shared sole tenant node groups.
-     * 
- * - * .google.container.v1beta1.SoleTenantConfig sole_tenant_config = 42; - */ - public Builder setSoleTenantConfig(com.google.container.v1beta1.SoleTenantConfig value) { - if (soleTenantConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - soleTenantConfig_ = value; - } else { - soleTenantConfigBuilder_.setMessage(value); - } - bitField1_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Parameters for node pools to be backed by shared sole tenant node groups.
-     * 
- * - * .google.container.v1beta1.SoleTenantConfig sole_tenant_config = 42; - */ - public Builder setSoleTenantConfig( - com.google.container.v1beta1.SoleTenantConfig.Builder builderForValue) { - if (soleTenantConfigBuilder_ == null) { - soleTenantConfig_ = builderForValue.build(); - } else { - soleTenantConfigBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Parameters for node pools to be backed by shared sole tenant node groups.
-     * 
- * - * .google.container.v1beta1.SoleTenantConfig sole_tenant_config = 42; - */ - public Builder mergeSoleTenantConfig(com.google.container.v1beta1.SoleTenantConfig value) { - if (soleTenantConfigBuilder_ == null) { - if (((bitField1_ & 0x00000004) != 0) - && soleTenantConfig_ != null - && soleTenantConfig_ - != com.google.container.v1beta1.SoleTenantConfig.getDefaultInstance()) { - getSoleTenantConfigBuilder().mergeFrom(value); - } else { - soleTenantConfig_ = value; - } - } else { - soleTenantConfigBuilder_.mergeFrom(value); - } - if (soleTenantConfig_ != null) { - bitField1_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Parameters for node pools to be backed by shared sole tenant node groups.
-     * 
- * - * .google.container.v1beta1.SoleTenantConfig sole_tenant_config = 42; - */ - public Builder clearSoleTenantConfig() { - bitField1_ = (bitField1_ & ~0x00000004); - soleTenantConfig_ = null; - if (soleTenantConfigBuilder_ != null) { - soleTenantConfigBuilder_.dispose(); - soleTenantConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Parameters for node pools to be backed by shared sole tenant node groups.
-     * 
- * - * .google.container.v1beta1.SoleTenantConfig sole_tenant_config = 42; - */ - public com.google.container.v1beta1.SoleTenantConfig.Builder getSoleTenantConfigBuilder() { - bitField1_ |= 0x00000004; - onChanged(); - return getSoleTenantConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Parameters for node pools to be backed by shared sole tenant node groups.
-     * 
- * - * .google.container.v1beta1.SoleTenantConfig sole_tenant_config = 42; - */ - public com.google.container.v1beta1.SoleTenantConfigOrBuilder getSoleTenantConfigOrBuilder() { - if (soleTenantConfigBuilder_ != null) { - return soleTenantConfigBuilder_.getMessageOrBuilder(); - } else { - return soleTenantConfig_ == null - ? com.google.container.v1beta1.SoleTenantConfig.getDefaultInstance() - : soleTenantConfig_; - } - } - /** - * - * - *
-     * Parameters for node pools to be backed by shared sole tenant node groups.
-     * 
- * - * .google.container.v1beta1.SoleTenantConfig sole_tenant_config = 42; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.SoleTenantConfig, - com.google.container.v1beta1.SoleTenantConfig.Builder, - com.google.container.v1beta1.SoleTenantConfigOrBuilder> - getSoleTenantConfigFieldBuilder() { - if (soleTenantConfigBuilder_ == null) { - soleTenantConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.SoleTenantConfig, - com.google.container.v1beta1.SoleTenantConfig.Builder, - com.google.container.v1beta1.SoleTenantConfigOrBuilder>( - getSoleTenantConfig(), getParentForChildren(), isClean()); - soleTenantConfig_ = null; - } - return soleTenantConfigBuilder_; - } - - private com.google.container.v1beta1.HostMaintenancePolicy hostMaintenancePolicy_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.HostMaintenancePolicy, - com.google.container.v1beta1.HostMaintenancePolicy.Builder, - com.google.container.v1beta1.HostMaintenancePolicyOrBuilder> - hostMaintenancePolicyBuilder_; - /** - * - * - *
-     * HostMaintenancePolicy contains the desired maintenance policy for the
-     * Google Compute Engine hosts.
-     * 
- * - * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 44; - * - * @return Whether the hostMaintenancePolicy field is set. - */ - public boolean hasHostMaintenancePolicy() { - return ((bitField1_ & 0x00000008) != 0); - } - /** - * - * - *
-     * HostMaintenancePolicy contains the desired maintenance policy for the
-     * Google Compute Engine hosts.
-     * 
- * - * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 44; - * - * @return The hostMaintenancePolicy. - */ - public com.google.container.v1beta1.HostMaintenancePolicy getHostMaintenancePolicy() { - if (hostMaintenancePolicyBuilder_ == null) { - return hostMaintenancePolicy_ == null - ? com.google.container.v1beta1.HostMaintenancePolicy.getDefaultInstance() - : hostMaintenancePolicy_; - } else { - return hostMaintenancePolicyBuilder_.getMessage(); - } - } - /** - * - * - *
-     * HostMaintenancePolicy contains the desired maintenance policy for the
-     * Google Compute Engine hosts.
-     * 
- * - * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 44; - */ - public Builder setHostMaintenancePolicy( - com.google.container.v1beta1.HostMaintenancePolicy value) { - if (hostMaintenancePolicyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - hostMaintenancePolicy_ = value; - } else { - hostMaintenancePolicyBuilder_.setMessage(value); - } - bitField1_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * HostMaintenancePolicy contains the desired maintenance policy for the
-     * Google Compute Engine hosts.
-     * 
- * - * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 44; - */ - public Builder setHostMaintenancePolicy( - com.google.container.v1beta1.HostMaintenancePolicy.Builder builderForValue) { - if (hostMaintenancePolicyBuilder_ == null) { - hostMaintenancePolicy_ = builderForValue.build(); - } else { - hostMaintenancePolicyBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * HostMaintenancePolicy contains the desired maintenance policy for the
-     * Google Compute Engine hosts.
-     * 
- * - * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 44; - */ - public Builder mergeHostMaintenancePolicy( - com.google.container.v1beta1.HostMaintenancePolicy value) { - if (hostMaintenancePolicyBuilder_ == null) { - if (((bitField1_ & 0x00000008) != 0) - && hostMaintenancePolicy_ != null - && hostMaintenancePolicy_ - != com.google.container.v1beta1.HostMaintenancePolicy.getDefaultInstance()) { - getHostMaintenancePolicyBuilder().mergeFrom(value); - } else { - hostMaintenancePolicy_ = value; - } - } else { - hostMaintenancePolicyBuilder_.mergeFrom(value); - } - if (hostMaintenancePolicy_ != null) { - bitField1_ |= 0x00000008; - onChanged(); - } - return this; - } - /** - * - * - *
-     * HostMaintenancePolicy contains the desired maintenance policy for the
-     * Google Compute Engine hosts.
-     * 
- * - * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 44; - */ - public Builder clearHostMaintenancePolicy() { - bitField1_ = (bitField1_ & ~0x00000008); - hostMaintenancePolicy_ = null; - if (hostMaintenancePolicyBuilder_ != null) { - hostMaintenancePolicyBuilder_.dispose(); - hostMaintenancePolicyBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * HostMaintenancePolicy contains the desired maintenance policy for the
-     * Google Compute Engine hosts.
-     * 
- * - * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 44; - */ - public com.google.container.v1beta1.HostMaintenancePolicy.Builder - getHostMaintenancePolicyBuilder() { - bitField1_ |= 0x00000008; - onChanged(); - return getHostMaintenancePolicyFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * HostMaintenancePolicy contains the desired maintenance policy for the
-     * Google Compute Engine hosts.
-     * 
- * - * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 44; - */ - public com.google.container.v1beta1.HostMaintenancePolicyOrBuilder - getHostMaintenancePolicyOrBuilder() { - if (hostMaintenancePolicyBuilder_ != null) { - return hostMaintenancePolicyBuilder_.getMessageOrBuilder(); - } else { - return hostMaintenancePolicy_ == null - ? com.google.container.v1beta1.HostMaintenancePolicy.getDefaultInstance() - : hostMaintenancePolicy_; - } - } - /** - * - * - *
-     * HostMaintenancePolicy contains the desired maintenance policy for the
-     * Google Compute Engine hosts.
-     * 
- * - * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 44; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.HostMaintenancePolicy, - com.google.container.v1beta1.HostMaintenancePolicy.Builder, - com.google.container.v1beta1.HostMaintenancePolicyOrBuilder> - getHostMaintenancePolicyFieldBuilder() { - if (hostMaintenancePolicyBuilder_ == null) { - hostMaintenancePolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.HostMaintenancePolicy, - com.google.container.v1beta1.HostMaintenancePolicy.Builder, - com.google.container.v1beta1.HostMaintenancePolicyOrBuilder>( - getHostMaintenancePolicy(), getParentForChildren(), isClean()); - hostMaintenancePolicy_ = null; - } - return hostMaintenancePolicyBuilder_; - } - - private com.google.container.v1beta1.ResourceManagerTags resourceManagerTags_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ResourceManagerTags, - com.google.container.v1beta1.ResourceManagerTags.Builder, - com.google.container.v1beta1.ResourceManagerTagsOrBuilder> - resourceManagerTagsBuilder_; - /** - * - * - *
-     * A map of resource manager tag keys and values to be attached to the nodes.
-     * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 45; - * - * @return Whether the resourceManagerTags field is set. - */ - public boolean hasResourceManagerTags() { - return ((bitField1_ & 0x00000010) != 0); - } - /** - * - * - *
-     * A map of resource manager tag keys and values to be attached to the nodes.
-     * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 45; - * - * @return The resourceManagerTags. - */ - public com.google.container.v1beta1.ResourceManagerTags getResourceManagerTags() { - if (resourceManagerTagsBuilder_ == null) { - return resourceManagerTags_ == null - ? com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance() - : resourceManagerTags_; - } else { - return resourceManagerTagsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * A map of resource manager tag keys and values to be attached to the nodes.
-     * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 45; - */ - public Builder setResourceManagerTags(com.google.container.v1beta1.ResourceManagerTags value) { - if (resourceManagerTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resourceManagerTags_ = value; - } else { - resourceManagerTagsBuilder_.setMessage(value); - } - bitField1_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * A map of resource manager tag keys and values to be attached to the nodes.
-     * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 45; - */ - public Builder setResourceManagerTags( - com.google.container.v1beta1.ResourceManagerTags.Builder builderForValue) { - if (resourceManagerTagsBuilder_ == null) { - resourceManagerTags_ = builderForValue.build(); - } else { - resourceManagerTagsBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * A map of resource manager tag keys and values to be attached to the nodes.
-     * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 45; - */ - public Builder mergeResourceManagerTags( - com.google.container.v1beta1.ResourceManagerTags value) { - if (resourceManagerTagsBuilder_ == null) { - if (((bitField1_ & 0x00000010) != 0) - && resourceManagerTags_ != null - && resourceManagerTags_ - != com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance()) { - getResourceManagerTagsBuilder().mergeFrom(value); - } else { - resourceManagerTags_ = value; - } - } else { - resourceManagerTagsBuilder_.mergeFrom(value); - } - if (resourceManagerTags_ != null) { - bitField1_ |= 0x00000010; - onChanged(); - } - return this; - } - /** - * - * - *
-     * A map of resource manager tag keys and values to be attached to the nodes.
-     * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 45; - */ - public Builder clearResourceManagerTags() { - bitField1_ = (bitField1_ & ~0x00000010); - resourceManagerTags_ = null; - if (resourceManagerTagsBuilder_ != null) { - resourceManagerTagsBuilder_.dispose(); - resourceManagerTagsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * A map of resource manager tag keys and values to be attached to the nodes.
-     * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 45; - */ - public com.google.container.v1beta1.ResourceManagerTags.Builder - getResourceManagerTagsBuilder() { - bitField1_ |= 0x00000010; - onChanged(); - return getResourceManagerTagsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A map of resource manager tag keys and values to be attached to the nodes.
-     * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 45; - */ - public com.google.container.v1beta1.ResourceManagerTagsOrBuilder - getResourceManagerTagsOrBuilder() { - if (resourceManagerTagsBuilder_ != null) { - return resourceManagerTagsBuilder_.getMessageOrBuilder(); - } else { - return resourceManagerTags_ == null - ? com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance() - : resourceManagerTags_; - } - } - /** - * - * - *
-     * A map of resource manager tag keys and values to be attached to the nodes.
-     * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 45; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ResourceManagerTags, - com.google.container.v1beta1.ResourceManagerTags.Builder, - com.google.container.v1beta1.ResourceManagerTagsOrBuilder> - getResourceManagerTagsFieldBuilder() { - if (resourceManagerTagsBuilder_ == null) { - resourceManagerTagsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ResourceManagerTags, - com.google.container.v1beta1.ResourceManagerTags.Builder, - com.google.container.v1beta1.ResourceManagerTagsOrBuilder>( - getResourceManagerTags(), getParentForChildren(), isClean()); - resourceManagerTags_ = null; - } - return resourceManagerTagsBuilder_; - } - - private boolean enableConfidentialStorage_; - /** - * - * - *
-     * Optional. Enable confidential storage on Hyperdisk.
-     * boot_disk_kms_key is required when enable_confidential_storage is true.
-     * This is only available for private preview.
-     * 
- * - * bool enable_confidential_storage = 46 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The enableConfidentialStorage. - */ - @java.lang.Override - public boolean getEnableConfidentialStorage() { - return enableConfidentialStorage_; - } - /** - * - * - *
-     * Optional. Enable confidential storage on Hyperdisk.
-     * boot_disk_kms_key is required when enable_confidential_storage is true.
-     * This is only available for private preview.
-     * 
- * - * bool enable_confidential_storage = 46 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The enableConfidentialStorage to set. - * @return This builder for chaining. - */ - public Builder setEnableConfidentialStorage(boolean value) { - - enableConfidentialStorage_ = value; - bitField1_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Enable confidential storage on Hyperdisk.
-     * boot_disk_kms_key is required when enable_confidential_storage is true.
-     * This is only available for private preview.
-     * 
- * - * bool enable_confidential_storage = 46 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearEnableConfidentialStorage() { - bitField1_ = (bitField1_ & ~0x00000020); - enableConfidentialStorage_ = 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.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigDefaults.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigDefaults.java deleted file mode 100644 index 2e105a969fba..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigDefaults.java +++ /dev/null @@ -1,1284 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * Subset of NodeConfig message that has defaults.
- * 
- * - * Protobuf type {@code google.container.v1beta1.NodeConfigDefaults} - */ -public final class NodeConfigDefaults extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodeConfigDefaults) - NodeConfigDefaultsOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeConfigDefaults.newBuilder() to construct. - private NodeConfigDefaults(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NodeConfigDefaults() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NodeConfigDefaults(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodeConfigDefaults_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodeConfigDefaults_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.NodeConfigDefaults.class, - com.google.container.v1beta1.NodeConfigDefaults.Builder.class); - } - - private int bitField0_; - public static final int GCFS_CONFIG_FIELD_NUMBER = 1; - private com.google.container.v1beta1.GcfsConfig gcfsConfig_; - /** - * - * - *
-   * GCFS (Google Container File System, also known as Riptide) options.
-   * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 1; - * - * @return Whether the gcfsConfig field is set. - */ - @java.lang.Override - public boolean hasGcfsConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * GCFS (Google Container File System, also known as Riptide) options.
-   * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 1; - * - * @return The gcfsConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.GcfsConfig getGcfsConfig() { - return gcfsConfig_ == null - ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() - : gcfsConfig_; - } - /** - * - * - *
-   * GCFS (Google Container File System, also known as Riptide) options.
-   * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 1; - */ - @java.lang.Override - public com.google.container.v1beta1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { - return gcfsConfig_ == null - ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() - : gcfsConfig_; - } - - public static final int LOGGING_CONFIG_FIELD_NUMBER = 3; - private com.google.container.v1beta1.NodePoolLoggingConfig loggingConfig_; - /** - * - * - *
-   * Logging configuration for node pools.
-   * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 3; - * - * @return Whether the loggingConfig field is set. - */ - @java.lang.Override - public boolean hasLoggingConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * Logging configuration for node pools.
-   * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 3; - * - * @return The loggingConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.NodePoolLoggingConfig getLoggingConfig() { - return loggingConfig_ == null - ? com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance() - : loggingConfig_; - } - /** - * - * - *
-   * Logging configuration for node pools.
-   * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 3; - */ - @java.lang.Override - public com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder getLoggingConfigOrBuilder() { - return loggingConfig_ == null - ? com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance() - : loggingConfig_; - } - - public static final int HOST_MAINTENANCE_POLICY_FIELD_NUMBER = 5; - private com.google.container.v1beta1.HostMaintenancePolicy hostMaintenancePolicy_; - /** - * - * - *
-   * HostMaintenancePolicy contains the desired maintenance policy for the
-   * Google Compute Engine hosts.
-   * 
- * - * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 5; - * - * @return Whether the hostMaintenancePolicy field is set. - */ - @java.lang.Override - public boolean hasHostMaintenancePolicy() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-   * HostMaintenancePolicy contains the desired maintenance policy for the
-   * Google Compute Engine hosts.
-   * 
- * - * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 5; - * - * @return The hostMaintenancePolicy. - */ - @java.lang.Override - public com.google.container.v1beta1.HostMaintenancePolicy getHostMaintenancePolicy() { - return hostMaintenancePolicy_ == null - ? com.google.container.v1beta1.HostMaintenancePolicy.getDefaultInstance() - : hostMaintenancePolicy_; - } - /** - * - * - *
-   * HostMaintenancePolicy contains the desired maintenance policy for the
-   * Google Compute Engine hosts.
-   * 
- * - * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 5; - */ - @java.lang.Override - public com.google.container.v1beta1.HostMaintenancePolicyOrBuilder - getHostMaintenancePolicyOrBuilder() { - return hostMaintenancePolicy_ == null - ? com.google.container.v1beta1.HostMaintenancePolicy.getDefaultInstance() - : hostMaintenancePolicy_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getGcfsConfig()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(3, getLoggingConfig()); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(5, getHostMaintenancePolicy()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGcfsConfig()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLoggingConfig()); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(5, getHostMaintenancePolicy()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.NodeConfigDefaults)) { - return super.equals(obj); - } - com.google.container.v1beta1.NodeConfigDefaults other = - (com.google.container.v1beta1.NodeConfigDefaults) obj; - - if (hasGcfsConfig() != other.hasGcfsConfig()) return false; - if (hasGcfsConfig()) { - if (!getGcfsConfig().equals(other.getGcfsConfig())) return false; - } - if (hasLoggingConfig() != other.hasLoggingConfig()) return false; - if (hasLoggingConfig()) { - if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; - } - if (hasHostMaintenancePolicy() != other.hasHostMaintenancePolicy()) return false; - if (hasHostMaintenancePolicy()) { - if (!getHostMaintenancePolicy().equals(other.getHostMaintenancePolicy())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasGcfsConfig()) { - hash = (37 * hash) + GCFS_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getGcfsConfig().hashCode(); - } - if (hasLoggingConfig()) { - hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getLoggingConfig().hashCode(); - } - if (hasHostMaintenancePolicy()) { - hash = (37 * hash) + HOST_MAINTENANCE_POLICY_FIELD_NUMBER; - hash = (53 * hash) + getHostMaintenancePolicy().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.NodeConfigDefaults parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NodeConfigDefaults parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.NodeConfigDefaults parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NodeConfigDefaults parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.NodeConfigDefaults parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NodeConfigDefaults parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.NodeConfigDefaults parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NodeConfigDefaults parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.NodeConfigDefaults parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NodeConfigDefaults parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.NodeConfigDefaults parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NodeConfigDefaults parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1beta1.NodeConfigDefaults prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Subset of NodeConfig message that has defaults.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.NodeConfigDefaults} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NodeConfigDefaults) - com.google.container.v1beta1.NodeConfigDefaultsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodeConfigDefaults_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodeConfigDefaults_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.NodeConfigDefaults.class, - com.google.container.v1beta1.NodeConfigDefaults.Builder.class); - } - - // Construct using com.google.container.v1beta1.NodeConfigDefaults.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getGcfsConfigFieldBuilder(); - getLoggingConfigFieldBuilder(); - getHostMaintenancePolicyFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - gcfsConfig_ = null; - if (gcfsConfigBuilder_ != null) { - gcfsConfigBuilder_.dispose(); - gcfsConfigBuilder_ = null; - } - loggingConfig_ = null; - if (loggingConfigBuilder_ != null) { - loggingConfigBuilder_.dispose(); - loggingConfigBuilder_ = null; - } - hostMaintenancePolicy_ = null; - if (hostMaintenancePolicyBuilder_ != null) { - hostMaintenancePolicyBuilder_.dispose(); - hostMaintenancePolicyBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodeConfigDefaults_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.NodeConfigDefaults getDefaultInstanceForType() { - return com.google.container.v1beta1.NodeConfigDefaults.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.NodeConfigDefaults build() { - com.google.container.v1beta1.NodeConfigDefaults result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.NodeConfigDefaults buildPartial() { - com.google.container.v1beta1.NodeConfigDefaults result = - new com.google.container.v1beta1.NodeConfigDefaults(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.NodeConfigDefaults result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.gcfsConfig_ = gcfsConfigBuilder_ == null ? gcfsConfig_ : gcfsConfigBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.loggingConfig_ = - loggingConfigBuilder_ == null ? loggingConfig_ : loggingConfigBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.hostMaintenancePolicy_ = - hostMaintenancePolicyBuilder_ == null - ? hostMaintenancePolicy_ - : hostMaintenancePolicyBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - result.bitField0_ |= to_bitField0_; - } - - @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.NodeConfigDefaults) { - return mergeFrom((com.google.container.v1beta1.NodeConfigDefaults) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.NodeConfigDefaults other) { - if (other == com.google.container.v1beta1.NodeConfigDefaults.getDefaultInstance()) - return this; - if (other.hasGcfsConfig()) { - mergeGcfsConfig(other.getGcfsConfig()); - } - if (other.hasLoggingConfig()) { - mergeLoggingConfig(other.getLoggingConfig()); - } - if (other.hasHostMaintenancePolicy()) { - mergeHostMaintenancePolicy(other.getHostMaintenancePolicy()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getGcfsConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: - { - input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 26 - case 42: - { - input.readMessage( - getHostMaintenancePolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.container.v1beta1.GcfsConfig gcfsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GcfsConfig, - com.google.container.v1beta1.GcfsConfig.Builder, - com.google.container.v1beta1.GcfsConfigOrBuilder> - gcfsConfigBuilder_; - /** - * - * - *
-     * GCFS (Google Container File System, also known as Riptide) options.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 1; - * - * @return Whether the gcfsConfig field is set. - */ - public boolean hasGcfsConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * GCFS (Google Container File System, also known as Riptide) options.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 1; - * - * @return The gcfsConfig. - */ - public com.google.container.v1beta1.GcfsConfig getGcfsConfig() { - if (gcfsConfigBuilder_ == null) { - return gcfsConfig_ == null - ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() - : gcfsConfig_; - } else { - return gcfsConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * GCFS (Google Container File System, also known as Riptide) options.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 1; - */ - public Builder setGcfsConfig(com.google.container.v1beta1.GcfsConfig value) { - if (gcfsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gcfsConfig_ = value; - } else { - gcfsConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * GCFS (Google Container File System, also known as Riptide) options.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 1; - */ - public Builder setGcfsConfig(com.google.container.v1beta1.GcfsConfig.Builder builderForValue) { - if (gcfsConfigBuilder_ == null) { - gcfsConfig_ = builderForValue.build(); - } else { - gcfsConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * GCFS (Google Container File System, also known as Riptide) options.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 1; - */ - public Builder mergeGcfsConfig(com.google.container.v1beta1.GcfsConfig value) { - if (gcfsConfigBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && gcfsConfig_ != null - && gcfsConfig_ != com.google.container.v1beta1.GcfsConfig.getDefaultInstance()) { - getGcfsConfigBuilder().mergeFrom(value); - } else { - gcfsConfig_ = value; - } - } else { - gcfsConfigBuilder_.mergeFrom(value); - } - if (gcfsConfig_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * - * - *
-     * GCFS (Google Container File System, also known as Riptide) options.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 1; - */ - public Builder clearGcfsConfig() { - bitField0_ = (bitField0_ & ~0x00000001); - gcfsConfig_ = null; - if (gcfsConfigBuilder_ != null) { - gcfsConfigBuilder_.dispose(); - gcfsConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * GCFS (Google Container File System, also known as Riptide) options.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 1; - */ - public com.google.container.v1beta1.GcfsConfig.Builder getGcfsConfigBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getGcfsConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * GCFS (Google Container File System, also known as Riptide) options.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 1; - */ - public com.google.container.v1beta1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { - if (gcfsConfigBuilder_ != null) { - return gcfsConfigBuilder_.getMessageOrBuilder(); - } else { - return gcfsConfig_ == null - ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() - : gcfsConfig_; - } - } - /** - * - * - *
-     * GCFS (Google Container File System, also known as Riptide) options.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GcfsConfig, - com.google.container.v1beta1.GcfsConfig.Builder, - com.google.container.v1beta1.GcfsConfigOrBuilder> - getGcfsConfigFieldBuilder() { - if (gcfsConfigBuilder_ == null) { - gcfsConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GcfsConfig, - com.google.container.v1beta1.GcfsConfig.Builder, - com.google.container.v1beta1.GcfsConfigOrBuilder>( - getGcfsConfig(), getParentForChildren(), isClean()); - gcfsConfig_ = null; - } - return gcfsConfigBuilder_; - } - - private com.google.container.v1beta1.NodePoolLoggingConfig loggingConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePoolLoggingConfig, - com.google.container.v1beta1.NodePoolLoggingConfig.Builder, - com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder> - loggingConfigBuilder_; - /** - * - * - *
-     * Logging configuration for node pools.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 3; - * - * @return Whether the loggingConfig field is set. - */ - public boolean hasLoggingConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * Logging configuration for node pools.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 3; - * - * @return The loggingConfig. - */ - public com.google.container.v1beta1.NodePoolLoggingConfig getLoggingConfig() { - if (loggingConfigBuilder_ == null) { - return loggingConfig_ == null - ? com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance() - : loggingConfig_; - } else { - return loggingConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Logging configuration for node pools.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 3; - */ - public Builder setLoggingConfig(com.google.container.v1beta1.NodePoolLoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - loggingConfig_ = value; - } else { - loggingConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Logging configuration for node pools.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 3; - */ - public Builder setLoggingConfig( - com.google.container.v1beta1.NodePoolLoggingConfig.Builder builderForValue) { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = builderForValue.build(); - } else { - loggingConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Logging configuration for node pools.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 3; - */ - public Builder mergeLoggingConfig(com.google.container.v1beta1.NodePoolLoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && loggingConfig_ != null - && loggingConfig_ - != com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance()) { - getLoggingConfigBuilder().mergeFrom(value); - } else { - loggingConfig_ = value; - } - } else { - loggingConfigBuilder_.mergeFrom(value); - } - if (loggingConfig_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Logging configuration for node pools.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 3; - */ - public Builder clearLoggingConfig() { - bitField0_ = (bitField0_ & ~0x00000002); - loggingConfig_ = null; - if (loggingConfigBuilder_ != null) { - loggingConfigBuilder_.dispose(); - loggingConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Logging configuration for node pools.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 3; - */ - public com.google.container.v1beta1.NodePoolLoggingConfig.Builder getLoggingConfigBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getLoggingConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Logging configuration for node pools.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 3; - */ - public com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder getLoggingConfigOrBuilder() { - if (loggingConfigBuilder_ != null) { - return loggingConfigBuilder_.getMessageOrBuilder(); - } else { - return loggingConfig_ == null - ? com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance() - : loggingConfig_; - } - } - /** - * - * - *
-     * Logging configuration for node pools.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePoolLoggingConfig, - com.google.container.v1beta1.NodePoolLoggingConfig.Builder, - com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder> - getLoggingConfigFieldBuilder() { - if (loggingConfigBuilder_ == null) { - loggingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePoolLoggingConfig, - com.google.container.v1beta1.NodePoolLoggingConfig.Builder, - com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder>( - getLoggingConfig(), getParentForChildren(), isClean()); - loggingConfig_ = null; - } - return loggingConfigBuilder_; - } - - private com.google.container.v1beta1.HostMaintenancePolicy hostMaintenancePolicy_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.HostMaintenancePolicy, - com.google.container.v1beta1.HostMaintenancePolicy.Builder, - com.google.container.v1beta1.HostMaintenancePolicyOrBuilder> - hostMaintenancePolicyBuilder_; - /** - * - * - *
-     * HostMaintenancePolicy contains the desired maintenance policy for the
-     * Google Compute Engine hosts.
-     * 
- * - * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 5; - * - * @return Whether the hostMaintenancePolicy field is set. - */ - public boolean hasHostMaintenancePolicy() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * HostMaintenancePolicy contains the desired maintenance policy for the
-     * Google Compute Engine hosts.
-     * 
- * - * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 5; - * - * @return The hostMaintenancePolicy. - */ - public com.google.container.v1beta1.HostMaintenancePolicy getHostMaintenancePolicy() { - if (hostMaintenancePolicyBuilder_ == null) { - return hostMaintenancePolicy_ == null - ? com.google.container.v1beta1.HostMaintenancePolicy.getDefaultInstance() - : hostMaintenancePolicy_; - } else { - return hostMaintenancePolicyBuilder_.getMessage(); - } - } - /** - * - * - *
-     * HostMaintenancePolicy contains the desired maintenance policy for the
-     * Google Compute Engine hosts.
-     * 
- * - * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 5; - */ - public Builder setHostMaintenancePolicy( - com.google.container.v1beta1.HostMaintenancePolicy value) { - if (hostMaintenancePolicyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - hostMaintenancePolicy_ = value; - } else { - hostMaintenancePolicyBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * HostMaintenancePolicy contains the desired maintenance policy for the
-     * Google Compute Engine hosts.
-     * 
- * - * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 5; - */ - public Builder setHostMaintenancePolicy( - com.google.container.v1beta1.HostMaintenancePolicy.Builder builderForValue) { - if (hostMaintenancePolicyBuilder_ == null) { - hostMaintenancePolicy_ = builderForValue.build(); - } else { - hostMaintenancePolicyBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * HostMaintenancePolicy contains the desired maintenance policy for the
-     * Google Compute Engine hosts.
-     * 
- * - * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 5; - */ - public Builder mergeHostMaintenancePolicy( - com.google.container.v1beta1.HostMaintenancePolicy value) { - if (hostMaintenancePolicyBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && hostMaintenancePolicy_ != null - && hostMaintenancePolicy_ - != com.google.container.v1beta1.HostMaintenancePolicy.getDefaultInstance()) { - getHostMaintenancePolicyBuilder().mergeFrom(value); - } else { - hostMaintenancePolicy_ = value; - } - } else { - hostMaintenancePolicyBuilder_.mergeFrom(value); - } - if (hostMaintenancePolicy_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - * - * - *
-     * HostMaintenancePolicy contains the desired maintenance policy for the
-     * Google Compute Engine hosts.
-     * 
- * - * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 5; - */ - public Builder clearHostMaintenancePolicy() { - bitField0_ = (bitField0_ & ~0x00000004); - hostMaintenancePolicy_ = null; - if (hostMaintenancePolicyBuilder_ != null) { - hostMaintenancePolicyBuilder_.dispose(); - hostMaintenancePolicyBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * HostMaintenancePolicy contains the desired maintenance policy for the
-     * Google Compute Engine hosts.
-     * 
- * - * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 5; - */ - public com.google.container.v1beta1.HostMaintenancePolicy.Builder - getHostMaintenancePolicyBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getHostMaintenancePolicyFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * HostMaintenancePolicy contains the desired maintenance policy for the
-     * Google Compute Engine hosts.
-     * 
- * - * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 5; - */ - public com.google.container.v1beta1.HostMaintenancePolicyOrBuilder - getHostMaintenancePolicyOrBuilder() { - if (hostMaintenancePolicyBuilder_ != null) { - return hostMaintenancePolicyBuilder_.getMessageOrBuilder(); - } else { - return hostMaintenancePolicy_ == null - ? com.google.container.v1beta1.HostMaintenancePolicy.getDefaultInstance() - : hostMaintenancePolicy_; - } - } - /** - * - * - *
-     * HostMaintenancePolicy contains the desired maintenance policy for the
-     * Google Compute Engine hosts.
-     * 
- * - * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.HostMaintenancePolicy, - com.google.container.v1beta1.HostMaintenancePolicy.Builder, - com.google.container.v1beta1.HostMaintenancePolicyOrBuilder> - getHostMaintenancePolicyFieldBuilder() { - if (hostMaintenancePolicyBuilder_ == null) { - hostMaintenancePolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.HostMaintenancePolicy, - com.google.container.v1beta1.HostMaintenancePolicy.Builder, - com.google.container.v1beta1.HostMaintenancePolicyOrBuilder>( - getHostMaintenancePolicy(), getParentForChildren(), isClean()); - hostMaintenancePolicy_ = null; - } - return hostMaintenancePolicyBuilder_; - } - - @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.NodeConfigDefaults) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodeConfigDefaults) - private static final com.google.container.v1beta1.NodeConfigDefaults DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.NodeConfigDefaults(); - } - - public static com.google.container.v1beta1.NodeConfigDefaults getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeConfigDefaults parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.NodeConfigDefaults getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigDefaultsOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigDefaultsOrBuilder.java deleted file mode 100644 index d9f33c425eed..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigDefaultsOrBuilder.java +++ /dev/null @@ -1,134 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface NodeConfigDefaultsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodeConfigDefaults) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * GCFS (Google Container File System, also known as Riptide) options.
-   * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 1; - * - * @return Whether the gcfsConfig field is set. - */ - boolean hasGcfsConfig(); - /** - * - * - *
-   * GCFS (Google Container File System, also known as Riptide) options.
-   * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 1; - * - * @return The gcfsConfig. - */ - com.google.container.v1beta1.GcfsConfig getGcfsConfig(); - /** - * - * - *
-   * GCFS (Google Container File System, also known as Riptide) options.
-   * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 1; - */ - com.google.container.v1beta1.GcfsConfigOrBuilder getGcfsConfigOrBuilder(); - - /** - * - * - *
-   * Logging configuration for node pools.
-   * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 3; - * - * @return Whether the loggingConfig field is set. - */ - boolean hasLoggingConfig(); - /** - * - * - *
-   * Logging configuration for node pools.
-   * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 3; - * - * @return The loggingConfig. - */ - com.google.container.v1beta1.NodePoolLoggingConfig getLoggingConfig(); - /** - * - * - *
-   * Logging configuration for node pools.
-   * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 3; - */ - com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder getLoggingConfigOrBuilder(); - - /** - * - * - *
-   * HostMaintenancePolicy contains the desired maintenance policy for the
-   * Google Compute Engine hosts.
-   * 
- * - * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 5; - * - * @return Whether the hostMaintenancePolicy field is set. - */ - boolean hasHostMaintenancePolicy(); - /** - * - * - *
-   * HostMaintenancePolicy contains the desired maintenance policy for the
-   * Google Compute Engine hosts.
-   * 
- * - * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 5; - * - * @return The hostMaintenancePolicy. - */ - com.google.container.v1beta1.HostMaintenancePolicy getHostMaintenancePolicy(); - /** - * - * - *
-   * HostMaintenancePolicy contains the desired maintenance policy for the
-   * Google Compute Engine hosts.
-   * 
- * - * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 5; - */ - com.google.container.v1beta1.HostMaintenancePolicyOrBuilder getHostMaintenancePolicyOrBuilder(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigOrBuilder.java deleted file mode 100644 index 2cbb719bad16..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigOrBuilder.java +++ /dev/null @@ -1,1702 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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"
-   *
-   * 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"
-   *
-   * 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"
-   *
-   * 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"
-   *
-   * 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; - */ - /* nullable */ - java.lang.String getMetadataOrDefault( - java.lang.String key, - /* nullable */ - 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"
-   *
-   * 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. Please see
-   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-   * available image types.
-   * 
- * - * 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. Please see
-   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-   * available image types.
-   * 
- * - * 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; - */ - /* nullable */ - java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - 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
-   * information 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(); - - /** - * - * - *
-   * GCFS (Google Container File System) configs.
-   * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 25; - * - * @return Whether the gcfsConfig field is set. - */ - boolean hasGcfsConfig(); - /** - * - * - *
-   * GCFS (Google Container File System) configs.
-   * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 25; - * - * @return The gcfsConfig. - */ - com.google.container.v1beta1.GcfsConfig getGcfsConfig(); - /** - * - * - *
-   * GCFS (Google Container File System) configs.
-   * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 25; - */ - com.google.container.v1beta1.GcfsConfigOrBuilder getGcfsConfigOrBuilder(); - - /** - * - * - *
-   * Advanced features for the Compute Engine VM.
-   * 
- * - * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; - * - * @return Whether the advancedMachineFeatures field is set. - */ - boolean hasAdvancedMachineFeatures(); - /** - * - * - *
-   * Advanced features for the Compute Engine VM.
-   * 
- * - * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; - * - * @return The advancedMachineFeatures. - */ - com.google.container.v1beta1.AdvancedMachineFeatures getAdvancedMachineFeatures(); - /** - * - * - *
-   * Advanced features for the Compute Engine VM.
-   * 
- * - * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; - */ - com.google.container.v1beta1.AdvancedMachineFeaturesOrBuilder - getAdvancedMachineFeaturesOrBuilder(); - - /** - * - * - *
-   * Enable or disable gvnic on the node pool.
-   * 
- * - * .google.container.v1beta1.VirtualNIC gvnic = 29; - * - * @return Whether the gvnic field is set. - */ - boolean hasGvnic(); - /** - * - * - *
-   * Enable or disable gvnic on the node pool.
-   * 
- * - * .google.container.v1beta1.VirtualNIC gvnic = 29; - * - * @return The gvnic. - */ - com.google.container.v1beta1.VirtualNIC getGvnic(); - /** - * - * - *
-   * Enable or disable gvnic on the node pool.
-   * 
- * - * .google.container.v1beta1.VirtualNIC gvnic = 29; - */ - com.google.container.v1beta1.VirtualNICOrBuilder getGvnicOrBuilder(); - - /** - * - * - *
-   * Spot flag for enabling Spot VM, which is a rebrand of
-   * the existing preemptible flag.
-   * 
- * - * bool spot = 32; - * - * @return The spot. - */ - boolean getSpot(); - - /** - * - * - *
-   * Confidential nodes config.
-   * All the nodes in the node pool will be Confidential VM once enabled.
-   * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 35; - * - * @return Whether the confidentialNodes field is set. - */ - boolean hasConfidentialNodes(); - /** - * - * - *
-   * Confidential nodes config.
-   * All the nodes in the node pool will be Confidential VM once enabled.
-   * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 35; - * - * @return The confidentialNodes. - */ - com.google.container.v1beta1.ConfidentialNodes getConfidentialNodes(); - /** - * - * - *
-   * Confidential nodes config.
-   * All the nodes in the node pool will be Confidential VM once enabled.
-   * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 35; - */ - com.google.container.v1beta1.ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder(); - - /** - * - * - *
-   * Enable or disable NCCL fast socket for the node pool.
-   * 
- * - * optional .google.container.v1beta1.FastSocket fast_socket = 36; - * - * @return Whether the fastSocket field is set. - */ - boolean hasFastSocket(); - /** - * - * - *
-   * Enable or disable NCCL fast socket for the node pool.
-   * 
- * - * optional .google.container.v1beta1.FastSocket fast_socket = 36; - * - * @return The fastSocket. - */ - com.google.container.v1beta1.FastSocket getFastSocket(); - /** - * - * - *
-   * Enable or disable NCCL fast socket for the node pool.
-   * 
- * - * optional .google.container.v1beta1.FastSocket fast_socket = 36; - */ - com.google.container.v1beta1.FastSocketOrBuilder getFastSocketOrBuilder(); - - /** - * - * - *
-   * The resource labels for the node pool to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * map<string, string> resource_labels = 37; - */ - int getResourceLabelsCount(); - /** - * - * - *
-   * The resource labels for the node pool to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * map<string, string> resource_labels = 37; - */ - boolean containsResourceLabels(java.lang.String key); - /** Use {@link #getResourceLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getResourceLabels(); - /** - * - * - *
-   * The resource labels for the node pool to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * map<string, string> resource_labels = 37; - */ - java.util.Map getResourceLabelsMap(); - /** - * - * - *
-   * The resource labels for the node pool to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * map<string, string> resource_labels = 37; - */ - /* nullable */ - java.lang.String getResourceLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * The resource labels for the node pool to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * map<string, string> resource_labels = 37; - */ - java.lang.String getResourceLabelsOrThrow(java.lang.String key); - - /** - * - * - *
-   * Logging configuration.
-   * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 38; - * - * @return Whether the loggingConfig field is set. - */ - boolean hasLoggingConfig(); - /** - * - * - *
-   * Logging configuration.
-   * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 38; - * - * @return The loggingConfig. - */ - com.google.container.v1beta1.NodePoolLoggingConfig getLoggingConfig(); - /** - * - * - *
-   * Logging configuration.
-   * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 38; - */ - com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder getLoggingConfigOrBuilder(); - - /** - * - * - *
-   * Parameters that can be configured on Windows nodes.
-   * 
- * - * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 39; - * - * @return Whether the windowsNodeConfig field is set. - */ - boolean hasWindowsNodeConfig(); - /** - * - * - *
-   * Parameters that can be configured on Windows nodes.
-   * 
- * - * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 39; - * - * @return The windowsNodeConfig. - */ - com.google.container.v1beta1.WindowsNodeConfig getWindowsNodeConfig(); - /** - * - * - *
-   * Parameters that can be configured on Windows nodes.
-   * 
- * - * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 39; - */ - com.google.container.v1beta1.WindowsNodeConfigOrBuilder getWindowsNodeConfigOrBuilder(); - - /** - * - * - *
-   * Parameters for using raw-block Local NVMe SSDs.
-   * 
- * - * .google.container.v1beta1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; - * - * - * @return Whether the localNvmeSsdBlockConfig field is set. - */ - boolean hasLocalNvmeSsdBlockConfig(); - /** - * - * - *
-   * Parameters for using raw-block Local NVMe SSDs.
-   * 
- * - * .google.container.v1beta1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; - * - * - * @return The localNvmeSsdBlockConfig. - */ - com.google.container.v1beta1.LocalNvmeSsdBlockConfig getLocalNvmeSsdBlockConfig(); - /** - * - * - *
-   * Parameters for using raw-block Local NVMe SSDs.
-   * 
- * - * .google.container.v1beta1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; - * - */ - com.google.container.v1beta1.LocalNvmeSsdBlockConfigOrBuilder - getLocalNvmeSsdBlockConfigOrBuilder(); - - /** - * - * - *
-   * Parameters for the node ephemeral storage using Local SSDs.
-   * If unspecified, ephemeral storage is backed by the boot disk.
-   * This field is functionally equivalent to the ephemeral_storage_config
-   * 
- * - * - * .google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; - * - * - * @return Whether the ephemeralStorageLocalSsdConfig field is set. - */ - boolean hasEphemeralStorageLocalSsdConfig(); - /** - * - * - *
-   * Parameters for the node ephemeral storage using Local SSDs.
-   * If unspecified, ephemeral storage is backed by the boot disk.
-   * This field is functionally equivalent to the ephemeral_storage_config
-   * 
- * - * - * .google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; - * - * - * @return The ephemeralStorageLocalSsdConfig. - */ - com.google.container.v1beta1.EphemeralStorageLocalSsdConfig getEphemeralStorageLocalSsdConfig(); - /** - * - * - *
-   * Parameters for the node ephemeral storage using Local SSDs.
-   * If unspecified, ephemeral storage is backed by the boot disk.
-   * This field is functionally equivalent to the ephemeral_storage_config
-   * 
- * - * - * .google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; - * - */ - com.google.container.v1beta1.EphemeralStorageLocalSsdConfigOrBuilder - getEphemeralStorageLocalSsdConfigOrBuilder(); - - /** - * - * - *
-   * Parameters for node pools to be backed by shared sole tenant node groups.
-   * 
- * - * .google.container.v1beta1.SoleTenantConfig sole_tenant_config = 42; - * - * @return Whether the soleTenantConfig field is set. - */ - boolean hasSoleTenantConfig(); - /** - * - * - *
-   * Parameters for node pools to be backed by shared sole tenant node groups.
-   * 
- * - * .google.container.v1beta1.SoleTenantConfig sole_tenant_config = 42; - * - * @return The soleTenantConfig. - */ - com.google.container.v1beta1.SoleTenantConfig getSoleTenantConfig(); - /** - * - * - *
-   * Parameters for node pools to be backed by shared sole tenant node groups.
-   * 
- * - * .google.container.v1beta1.SoleTenantConfig sole_tenant_config = 42; - */ - com.google.container.v1beta1.SoleTenantConfigOrBuilder getSoleTenantConfigOrBuilder(); - - /** - * - * - *
-   * HostMaintenancePolicy contains the desired maintenance policy for the
-   * Google Compute Engine hosts.
-   * 
- * - * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 44; - * - * @return Whether the hostMaintenancePolicy field is set. - */ - boolean hasHostMaintenancePolicy(); - /** - * - * - *
-   * HostMaintenancePolicy contains the desired maintenance policy for the
-   * Google Compute Engine hosts.
-   * 
- * - * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 44; - * - * @return The hostMaintenancePolicy. - */ - com.google.container.v1beta1.HostMaintenancePolicy getHostMaintenancePolicy(); - /** - * - * - *
-   * HostMaintenancePolicy contains the desired maintenance policy for the
-   * Google Compute Engine hosts.
-   * 
- * - * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 44; - */ - com.google.container.v1beta1.HostMaintenancePolicyOrBuilder getHostMaintenancePolicyOrBuilder(); - - /** - * - * - *
-   * A map of resource manager tag keys and values to be attached to the nodes.
-   * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 45; - * - * @return Whether the resourceManagerTags field is set. - */ - boolean hasResourceManagerTags(); - /** - * - * - *
-   * A map of resource manager tag keys and values to be attached to the nodes.
-   * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 45; - * - * @return The resourceManagerTags. - */ - com.google.container.v1beta1.ResourceManagerTags getResourceManagerTags(); - /** - * - * - *
-   * A map of resource manager tag keys and values to be attached to the nodes.
-   * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 45; - */ - com.google.container.v1beta1.ResourceManagerTagsOrBuilder getResourceManagerTagsOrBuilder(); - - /** - * - * - *
-   * Optional. Enable confidential storage on Hyperdisk.
-   * boot_disk_kms_key is required when enable_confidential_storage is true.
-   * This is only available for private preview.
-   * 
- * - * bool enable_confidential_storage = 46 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The enableConfidentialStorage. - */ - boolean getEnableConfidentialStorage(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeKubeletConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeKubeletConfig.java deleted file mode 100644 index 4c86e9600d1a..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeKubeletConfig.java +++ /dev/null @@ -1,1537 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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); - } - - private int bitField0_; - public static final int CPU_MANAGER_POLICY_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - 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 ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * 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 cpuCfsQuota_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : cpuCfsQuota_; - } - - public static final int CPU_CFS_QUOTA_PERIOD_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - 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; - } - } - - public static final int POD_PIDS_LIMIT_FIELD_NUMBER = 4; - private long podPidsLimit_ = 0L; - /** - * - * - *
-   * Set the Pod PID limits. See
-   * https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits
-   *
-   * Controls the maximum number of processes allowed to run in a pod. The value
-   * must be greater than or equal to 1024 and less than 4194304.
-   * 
- * - * int64 pod_pids_limit = 4; - * - * @return The podPidsLimit. - */ - @java.lang.Override - public long getPodPidsLimit() { - return podPidsLimit_; - } - - public static final int INSECURE_KUBELET_READONLY_PORT_ENABLED_FIELD_NUMBER = 7; - private boolean insecureKubeletReadonlyPortEnabled_ = false; - /** - * - * - *
-   * Enable or disable Kubelet read only port.
-   * 
- * - * optional bool insecure_kubelet_readonly_port_enabled = 7; - * - * @return Whether the insecureKubeletReadonlyPortEnabled field is set. - */ - @java.lang.Override - public boolean hasInsecureKubeletReadonlyPortEnabled() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * Enable or disable Kubelet read only port.
-   * 
- * - * optional bool insecure_kubelet_readonly_port_enabled = 7; - * - * @return The insecureKubeletReadonlyPortEnabled. - */ - @java.lang.Override - public boolean getInsecureKubeletReadonlyPortEnabled() { - return insecureKubeletReadonlyPortEnabled_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpuManagerPolicy_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cpuManagerPolicy_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getCpuCfsQuota()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpuCfsQuotaPeriod_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cpuCfsQuotaPeriod_); - } - if (podPidsLimit_ != 0L) { - output.writeInt64(4, podPidsLimit_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeBool(7, insecureKubeletReadonlyPortEnabled_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpuManagerPolicy_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cpuManagerPolicy_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCpuCfsQuota()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpuCfsQuotaPeriod_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, cpuCfsQuotaPeriod_); - } - if (podPidsLimit_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, podPidsLimit_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 7, insecureKubeletReadonlyPortEnabled_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (getPodPidsLimit() != other.getPodPidsLimit()) return false; - if (hasInsecureKubeletReadonlyPortEnabled() != other.hasInsecureKubeletReadonlyPortEnabled()) - return false; - if (hasInsecureKubeletReadonlyPortEnabled()) { - if (getInsecureKubeletReadonlyPortEnabled() != other.getInsecureKubeletReadonlyPortEnabled()) - return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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 = (37 * hash) + POD_PIDS_LIMIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPodPidsLimit()); - if (hasInsecureKubeletReadonlyPortEnabled()) { - hash = (37 * hash) + INSECURE_KUBELET_READONLY_PORT_ENABLED_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getInsecureKubeletReadonlyPortEnabled()); - } - hash = (29 * hash) + getUnknownFields().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) { - getCpuCfsQuotaFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - cpuManagerPolicy_ = ""; - cpuCfsQuota_ = null; - if (cpuCfsQuotaBuilder_ != null) { - cpuCfsQuotaBuilder_.dispose(); - cpuCfsQuotaBuilder_ = null; - } - cpuCfsQuotaPeriod_ = ""; - podPidsLimit_ = 0L; - insecureKubeletReadonlyPortEnabled_ = false; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.NodeKubeletConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.cpuManagerPolicy_ = cpuManagerPolicy_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.cpuCfsQuota_ = - cpuCfsQuotaBuilder_ == null ? cpuCfsQuota_ : cpuCfsQuotaBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.cpuCfsQuotaPeriod_ = cpuCfsQuotaPeriod_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.podPidsLimit_ = podPidsLimit_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.insecureKubeletReadonlyPortEnabled_ = insecureKubeletReadonlyPortEnabled_; - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasCpuCfsQuota()) { - mergeCpuCfsQuota(other.getCpuCfsQuota()); - } - if (!other.getCpuCfsQuotaPeriod().isEmpty()) { - cpuCfsQuotaPeriod_ = other.cpuCfsQuotaPeriod_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.getPodPidsLimit() != 0L) { - setPodPidsLimit(other.getPodPidsLimit()); - } - if (other.hasInsecureKubeletReadonlyPortEnabled()) { - setInsecureKubeletReadonlyPortEnabled(other.getInsecureKubeletReadonlyPortEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - cpuManagerPolicy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getCpuCfsQuotaFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - cpuCfsQuotaPeriod_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - podPidsLimit_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 56: - { - insecureKubeletReadonlyPortEnabled_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 56 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - 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 ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * 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; - } else { - cpuCfsQuotaBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - 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(); - } else { - cpuCfsQuotaBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - 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 (((bitField0_ & 0x00000002) != 0) - && cpuCfsQuota_ != null - && cpuCfsQuota_ != com.google.protobuf.BoolValue.getDefaultInstance()) { - getCpuCfsQuotaBuilder().mergeFrom(value); - } else { - cpuCfsQuota_ = value; - } - } else { - cpuCfsQuotaBuilder_.mergeFrom(value); - } - if (cpuCfsQuota_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - 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() { - bitField0_ = (bitField0_ & ~0x00000002); - cpuCfsQuota_ = null; - if (cpuCfsQuotaBuilder_ != null) { - cpuCfsQuotaBuilder_.dispose(); - cpuCfsQuotaBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000002; - 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; - bitField0_ |= 0x00000004; - 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(); - bitField0_ = (bitField0_ & ~0x00000004); - 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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private long podPidsLimit_; - /** - * - * - *
-     * Set the Pod PID limits. See
-     * https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits
-     *
-     * Controls the maximum number of processes allowed to run in a pod. The value
-     * must be greater than or equal to 1024 and less than 4194304.
-     * 
- * - * int64 pod_pids_limit = 4; - * - * @return The podPidsLimit. - */ - @java.lang.Override - public long getPodPidsLimit() { - return podPidsLimit_; - } - /** - * - * - *
-     * Set the Pod PID limits. See
-     * https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits
-     *
-     * Controls the maximum number of processes allowed to run in a pod. The value
-     * must be greater than or equal to 1024 and less than 4194304.
-     * 
- * - * int64 pod_pids_limit = 4; - * - * @param value The podPidsLimit to set. - * @return This builder for chaining. - */ - public Builder setPodPidsLimit(long value) { - - podPidsLimit_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Set the Pod PID limits. See
-     * https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits
-     *
-     * Controls the maximum number of processes allowed to run in a pod. The value
-     * must be greater than or equal to 1024 and less than 4194304.
-     * 
- * - * int64 pod_pids_limit = 4; - * - * @return This builder for chaining. - */ - public Builder clearPodPidsLimit() { - bitField0_ = (bitField0_ & ~0x00000008); - podPidsLimit_ = 0L; - onChanged(); - return this; - } - - private boolean insecureKubeletReadonlyPortEnabled_; - /** - * - * - *
-     * Enable or disable Kubelet read only port.
-     * 
- * - * optional bool insecure_kubelet_readonly_port_enabled = 7; - * - * @return Whether the insecureKubeletReadonlyPortEnabled field is set. - */ - @java.lang.Override - public boolean hasInsecureKubeletReadonlyPortEnabled() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-     * Enable or disable Kubelet read only port.
-     * 
- * - * optional bool insecure_kubelet_readonly_port_enabled = 7; - * - * @return The insecureKubeletReadonlyPortEnabled. - */ - @java.lang.Override - public boolean getInsecureKubeletReadonlyPortEnabled() { - return insecureKubeletReadonlyPortEnabled_; - } - /** - * - * - *
-     * Enable or disable Kubelet read only port.
-     * 
- * - * optional bool insecure_kubelet_readonly_port_enabled = 7; - * - * @param value The insecureKubeletReadonlyPortEnabled to set. - * @return This builder for chaining. - */ - public Builder setInsecureKubeletReadonlyPortEnabled(boolean value) { - - insecureKubeletReadonlyPortEnabled_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable or disable Kubelet read only port.
-     * 
- * - * optional bool insecure_kubelet_readonly_port_enabled = 7; - * - * @return This builder for chaining. - */ - public Builder clearInsecureKubeletReadonlyPortEnabled() { - bitField0_ = (bitField0_ & ~0x00000010); - insecureKubeletReadonlyPortEnabled_ = 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.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeKubeletConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeKubeletConfigOrBuilder.java deleted file mode 100644 index 3630ec28b05f..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeKubeletConfigOrBuilder.java +++ /dev/null @@ -1,209 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - - /** - * - * - *
-   * Set the Pod PID limits. See
-   * https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits
-   *
-   * Controls the maximum number of processes allowed to run in a pod. The value
-   * must be greater than or equal to 1024 and less than 4194304.
-   * 
- * - * int64 pod_pids_limit = 4; - * - * @return The podPidsLimit. - */ - long getPodPidsLimit(); - - /** - * - * - *
-   * Enable or disable Kubelet read only port.
-   * 
- * - * optional bool insecure_kubelet_readonly_port_enabled = 7; - * - * @return Whether the insecureKubeletReadonlyPortEnabled field is set. - */ - boolean hasInsecureKubeletReadonlyPortEnabled(); - /** - * - * - *
-   * Enable or disable Kubelet read only port.
-   * 
- * - * optional bool insecure_kubelet_readonly_port_enabled = 7; - * - * @return The insecureKubeletReadonlyPortEnabled. - */ - boolean getInsecureKubeletReadonlyPortEnabled(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeLabels.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeLabels.java deleted file mode 100644 index eae1e1d3e627..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeLabels.java +++ /dev/null @@ -1,777 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * Collection of node-level [Kubernetes
- * labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels).
- * 
- * - * Protobuf type {@code google.container.v1beta1.NodeLabels} - */ -public final class NodeLabels extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodeLabels) - NodeLabelsOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeLabels.newBuilder() to construct. - private NodeLabels(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NodeLabels() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NodeLabels(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodeLabels_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - 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_NodeLabels_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.NodeLabels.class, - com.google.container.v1beta1.NodeLabels.Builder.class); - } - - public static final int LABELS_FIELD_NUMBER = 1; - - 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_NodeLabels_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - @SuppressWarnings("serial") - 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(); - } - /** - * - * - *
-   * Map of node label keys and node label values.
-   * 
- * - * map<string, string> labels = 1; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-   * Map of node label keys and node label values.
-   * 
- * - * map<string, string> labels = 1; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-   * Map of node label keys and node label values.
-   * 
- * - * map<string, string> labels = 1; - */ - @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Map of node label keys and node label values.
-   * 
- * - * map<string, string> labels = 1; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().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, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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(1, labels__); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.NodeLabels)) { - return super.equals(obj); - } - com.google.container.v1beta1.NodeLabels other = (com.google.container.v1beta1.NodeLabels) obj; - - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.NodeLabels parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NodeLabels parseFrom( - 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.NodeLabels parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NodeLabels parseFrom( - com.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.NodeLabels parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NodeLabels parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.NodeLabels parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NodeLabels parseFrom( - java.io.InputStream 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.NodeLabels parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NodeLabels parseDelimitedFrom( - java.io.InputStream 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.NodeLabels parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NodeLabels parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.NodeLabels prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Collection of node-level [Kubernetes
-   * labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels).
-   * 
- * - * Protobuf type {@code google.container.v1beta1.NodeLabels} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NodeLabels) - com.google.container.v1beta1.NodeLabelsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodeLabels_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - 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_NodeLabels_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.NodeLabels.class, - com.google.container.v1beta1.NodeLabels.Builder.class); - } - - // Construct using com.google.container.v1beta1.NodeLabels.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableLabels().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodeLabels_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.NodeLabels getDefaultInstanceForType() { - return com.google.container.v1beta1.NodeLabels.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.NodeLabels build() { - com.google.container.v1beta1.NodeLabels result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.NodeLabels buildPartial() { - com.google.container.v1beta1.NodeLabels result = - new com.google.container.v1beta1.NodeLabels(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.NodeLabels result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - } - } - - @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.NodeLabels) { - return mergeFrom((com.google.container.v1beta1.NodeLabels) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.NodeLabels other) { - if (other == com.google.container.v1beta1.NodeLabels.getDefaultInstance()) return this; - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00000001; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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() { - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - * - * - *
-     * Map of node label keys and node label values.
-     * 
- * - * map<string, string> labels = 1; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-     * Map of node label keys and node label values.
-     * 
- * - * map<string, string> labels = 1; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-     * Map of node label keys and node label values.
-     * 
- * - * map<string, string> labels = 1; - */ - @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Map of node label keys and node label values.
-     * 
- * - * map<string, string> labels = 1; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableLabels().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Map of node label keys and node label values.
-     * 
- * - * map<string, string> labels = 1; - */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - bitField0_ |= 0x00000001; - return internalGetMutableLabels().getMutableMap(); - } - /** - * - * - *
-     * Map of node label keys and node label values.
-     * 
- * - * map<string, string> labels = 1; - */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * - * - *
-     * Map of node label keys and node label values.
-     * 
- * - * map<string, string> labels = 1; - */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00000001; - 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.NodeLabels) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodeLabels) - private static final com.google.container.v1beta1.NodeLabels DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.NodeLabels(); - } - - public static com.google.container.v1beta1.NodeLabels getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeLabels parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.NodeLabels getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeLabelsOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeLabelsOrBuilder.java deleted file mode 100644 index 5f7828611c3d..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeLabelsOrBuilder.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface NodeLabelsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodeLabels) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Map of node label keys and node label values.
-   * 
- * - * map<string, string> labels = 1; - */ - int getLabelsCount(); - /** - * - * - *
-   * Map of node label keys and node label values.
-   * 
- * - * map<string, string> labels = 1; - */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getLabels(); - /** - * - * - *
-   * Map of node label keys and node label values.
-   * 
- * - * map<string, string> labels = 1; - */ - java.util.Map getLabelsMap(); - /** - * - * - *
-   * Map of node label keys and node label values.
-   * 
- * - * map<string, string> labels = 1; - */ - /* nullable */ - java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * Map of node label keys and node label values.
-   * 
- * - * map<string, string> labels = 1; - */ - java.lang.String getLabelsOrThrow(java.lang.String key); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeManagement.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeManagement.java deleted file mode 100644 index 281e5d795b6e..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeManagement.java +++ /dev/null @@ -1,911 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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); - } - - private int bitField0_; - public static final int AUTO_UPGRADE_FIELD_NUMBER = 1; - private boolean autoUpgrade_ = false; - /** - * - * - *
-   * 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_ = false; - /** - * - * - *
-   * 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 ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * 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 upgradeOptions_ == null - ? com.google.container.v1beta1.AutoUpgradeOptions.getDefaultInstance() - : upgradeOptions_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(10, getUpgradeOptions()); - } - getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getUpgradeOptions()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { - getUpgradeOptionsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - autoUpgrade_ = false; - autoRepair_ = false; - upgradeOptions_ = null; - if (upgradeOptionsBuilder_ != null) { - upgradeOptionsBuilder_.dispose(); - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.NodeManagement result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.autoUpgrade_ = autoUpgrade_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.autoRepair_ = autoRepair_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.upgradeOptions_ = - upgradeOptionsBuilder_ == null ? upgradeOptions_ : upgradeOptionsBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - autoUpgrade_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - autoRepair_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 82: - { - input.readMessage(getUpgradeOptionsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether the nodes will be automatically upgraded.
-     * 
- * - * bool auto_upgrade = 1; - * - * @return This builder for chaining. - */ - public Builder clearAutoUpgrade() { - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether the nodes will be automatically repaired.
-     * 
- * - * bool auto_repair = 2; - * - * @return This builder for chaining. - */ - public Builder clearAutoRepair() { - bitField0_ = (bitField0_ & ~0x00000002); - 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 ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * 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; - } else { - upgradeOptionsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - 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(); - } else { - upgradeOptionsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - 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 (((bitField0_ & 0x00000004) != 0) - && upgradeOptions_ != null - && upgradeOptions_ - != com.google.container.v1beta1.AutoUpgradeOptions.getDefaultInstance()) { - getUpgradeOptionsBuilder().mergeFrom(value); - } else { - upgradeOptions_ = value; - } - } else { - upgradeOptionsBuilder_.mergeFrom(value); - } - if (upgradeOptions_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Specifies the Auto Upgrade knobs for the node pool.
-     * 
- * - * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; - */ - public Builder clearUpgradeOptions() { - bitField0_ = (bitField0_ & ~0x00000004); - upgradeOptions_ = null; - if (upgradeOptionsBuilder_ != null) { - upgradeOptionsBuilder_.dispose(); - upgradeOptionsBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000004; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeManagementOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeManagementOrBuilder.java deleted file mode 100644 index a59ea7f98450..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeManagementOrBuilder.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeNetworkConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeNetworkConfig.java deleted file mode 100644 index f65890a5db3b..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeNetworkConfig.java +++ /dev/null @@ -1,4410 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * Parameters for node pool-level network config.
- * 
- * - * Protobuf type {@code google.container.v1beta1.NodeNetworkConfig} - */ -public final class NodeNetworkConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodeNetworkConfig) - NodeNetworkConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeNetworkConfig.newBuilder() to construct. - private NodeNetworkConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NodeNetworkConfig() { - podRange_ = ""; - podIpv4CidrBlock_ = ""; - additionalNodeNetworkConfigs_ = java.util.Collections.emptyList(); - additionalPodNetworkConfigs_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NodeNetworkConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodeNetworkConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodeNetworkConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.NodeNetworkConfig.class, - com.google.container.v1beta1.NodeNetworkConfig.Builder.class); - } - - public interface NetworkPerformanceConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Specifies the total network bandwidth tier for the NodePool.
-     * 
- * - * - * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @return Whether the totalEgressBandwidthTier field is set. - */ - boolean hasTotalEgressBandwidthTier(); - /** - * - * - *
-     * Specifies the total network bandwidth tier for the NodePool.
-     * 
- * - * - * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @return The enum numeric value on the wire for totalEgressBandwidthTier. - */ - int getTotalEgressBandwidthTierValue(); - /** - * - * - *
-     * Specifies the total network bandwidth tier for the NodePool.
-     * 
- * - * - * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @return The totalEgressBandwidthTier. - */ - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier - getTotalEgressBandwidthTier(); - - /** - * - * - *
-     * Specifies the network bandwidth tier for the NodePool for traffic to
-     * external/public IP addresses.
-     * 
- * - * - * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier external_ip_egress_bandwidth_tier = 2; - * - * - * @return Whether the externalIpEgressBandwidthTier field is set. - */ - boolean hasExternalIpEgressBandwidthTier(); - /** - * - * - *
-     * Specifies the network bandwidth tier for the NodePool for traffic to
-     * external/public IP addresses.
-     * 
- * - * - * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier external_ip_egress_bandwidth_tier = 2; - * - * - * @return The enum numeric value on the wire for externalIpEgressBandwidthTier. - */ - int getExternalIpEgressBandwidthTierValue(); - /** - * - * - *
-     * Specifies the network bandwidth tier for the NodePool for traffic to
-     * external/public IP addresses.
-     * 
- * - * - * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier external_ip_egress_bandwidth_tier = 2; - * - * - * @return The externalIpEgressBandwidthTier. - */ - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier - getExternalIpEgressBandwidthTier(); - } - /** - * - * - *
-   * Configuration of all network bandwidth tiers
-   * 
- * - * Protobuf type {@code google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig} - */ - public static final class NetworkPerformanceConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig) - NetworkPerformanceConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use NetworkPerformanceConfig.newBuilder() to construct. - private NetworkPerformanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NetworkPerformanceConfig() { - totalEgressBandwidthTier_ = 0; - externalIpEgressBandwidthTier_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NetworkPerformanceConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodeNetworkConfig_NetworkPerformanceConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodeNetworkConfig_NetworkPerformanceConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.class, - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Builder - .class); - } - - /** - * - * - *
-     * Node network tier
-     * 
- * - * Protobuf enum {@code - * google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier} - */ - public enum Tier implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-       * Default value
-       * 
- * - * TIER_UNSPECIFIED = 0; - */ - TIER_UNSPECIFIED(0), - /** - * - * - *
-       * Higher bandwidth, actual values based on VM size.
-       * 
- * - * TIER_1 = 1; - */ - TIER_1(1), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-       * Default value
-       * 
- * - * TIER_UNSPECIFIED = 0; - */ - public static final int TIER_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-       * Higher bandwidth, actual values based on VM size.
-       * 
- * - * TIER_1 = 1; - */ - public static final int TIER_1_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 Tier 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 Tier forNumber(int value) { - switch (value) { - case 0: - return TIER_UNSPECIFIED; - case 1: - return TIER_1; - 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 Tier findValueByNumber(int number) { - return Tier.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.NodeNetworkConfig.NetworkPerformanceConfig - .getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final Tier[] VALUES = values(); - - public static Tier 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 Tier(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier) - } - - private int bitField0_; - public static final int TOTAL_EGRESS_BANDWIDTH_TIER_FIELD_NUMBER = 1; - private int totalEgressBandwidthTier_ = 0; - /** - * - * - *
-     * Specifies the total network bandwidth tier for the NodePool.
-     * 
- * - * - * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @return Whether the totalEgressBandwidthTier field is set. - */ - @java.lang.Override - public boolean hasTotalEgressBandwidthTier() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Specifies the total network bandwidth tier for the NodePool.
-     * 
- * - * - * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @return The enum numeric value on the wire for totalEgressBandwidthTier. - */ - @java.lang.Override - public int getTotalEgressBandwidthTierValue() { - return totalEgressBandwidthTier_; - } - /** - * - * - *
-     * Specifies the total network bandwidth tier for the NodePool.
-     * 
- * - * - * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @return The totalEgressBandwidthTier. - */ - @java.lang.Override - public com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier - getTotalEgressBandwidthTier() { - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier result = - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier.forNumber( - totalEgressBandwidthTier_); - return result == null - ? com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier - .UNRECOGNIZED - : result; - } - - public static final int EXTERNAL_IP_EGRESS_BANDWIDTH_TIER_FIELD_NUMBER = 2; - private int externalIpEgressBandwidthTier_ = 0; - /** - * - * - *
-     * Specifies the network bandwidth tier for the NodePool for traffic to
-     * external/public IP addresses.
-     * 
- * - * - * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier external_ip_egress_bandwidth_tier = 2; - * - * - * @return Whether the externalIpEgressBandwidthTier field is set. - */ - @java.lang.Override - public boolean hasExternalIpEgressBandwidthTier() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * Specifies the network bandwidth tier for the NodePool for traffic to
-     * external/public IP addresses.
-     * 
- * - * - * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier external_ip_egress_bandwidth_tier = 2; - * - * - * @return The enum numeric value on the wire for externalIpEgressBandwidthTier. - */ - @java.lang.Override - public int getExternalIpEgressBandwidthTierValue() { - return externalIpEgressBandwidthTier_; - } - /** - * - * - *
-     * Specifies the network bandwidth tier for the NodePool for traffic to
-     * external/public IP addresses.
-     * 
- * - * - * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier external_ip_egress_bandwidth_tier = 2; - * - * - * @return The externalIpEgressBandwidthTier. - */ - @java.lang.Override - public com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier - getExternalIpEgressBandwidthTier() { - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier result = - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier.forNumber( - externalIpEgressBandwidthTier_); - return result == null - ? com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier - .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 (((bitField0_ & 0x00000001) != 0)) { - output.writeEnum(1, totalEgressBandwidthTier_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeEnum(2, externalIpEgressBandwidthTier_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, totalEgressBandwidthTier_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize( - 2, externalIpEgressBandwidthTier_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.NodeNetworkConfig.NetworkPerformanceConfig)) { - return super.equals(obj); - } - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig other = - (com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig) obj; - - if (hasTotalEgressBandwidthTier() != other.hasTotalEgressBandwidthTier()) return false; - if (hasTotalEgressBandwidthTier()) { - if (totalEgressBandwidthTier_ != other.totalEgressBandwidthTier_) return false; - } - if (hasExternalIpEgressBandwidthTier() != other.hasExternalIpEgressBandwidthTier()) - return false; - if (hasExternalIpEgressBandwidthTier()) { - if (externalIpEgressBandwidthTier_ != other.externalIpEgressBandwidthTier_) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasTotalEgressBandwidthTier()) { - hash = (37 * hash) + TOTAL_EGRESS_BANDWIDTH_TIER_FIELD_NUMBER; - hash = (53 * hash) + totalEgressBandwidthTier_; - } - if (hasExternalIpEgressBandwidthTier()) { - hash = (37 * hash) + EXTERNAL_IP_EGRESS_BANDWIDTH_TIER_FIELD_NUMBER; - hash = (53 * hash) + externalIpEgressBandwidthTier_; - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig parseFrom( - 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.NodeNetworkConfig.NetworkPerformanceConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig parseFrom( - com.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.NodeNetworkConfig.NetworkPerformanceConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig parseFrom( - java.io.InputStream 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.NodeNetworkConfig.NetworkPerformanceConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig - parseDelimitedFrom( - java.io.InputStream 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.NodeNetworkConfig.NetworkPerformanceConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.NodeNetworkConfig.NetworkPerformanceConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 all network bandwidth tiers
-     * 
- * - * Protobuf type {@code google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig) - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodeNetworkConfig_NetworkPerformanceConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodeNetworkConfig_NetworkPerformanceConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.class, - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Builder - .class); - } - - // Construct using - // com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - totalEgressBandwidthTier_ = 0; - externalIpEgressBandwidthTier_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodeNetworkConfig_NetworkPerformanceConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig - getDefaultInstanceForType() { - return com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig build() { - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig - buildPartial() { - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig result = - new com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.totalEgressBandwidthTier_ = totalEgressBandwidthTier_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.externalIpEgressBandwidthTier_ = externalIpEgressBandwidthTier_; - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @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.NodeNetworkConfig.NetworkPerformanceConfig) { - return mergeFrom( - (com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig other) { - if (other - == com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig - .getDefaultInstance()) return this; - if (other.hasTotalEgressBandwidthTier()) { - setTotalEgressBandwidthTier(other.getTotalEgressBandwidthTier()); - } - if (other.hasExternalIpEgressBandwidthTier()) { - setExternalIpEgressBandwidthTier(other.getExternalIpEgressBandwidthTier()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - totalEgressBandwidthTier_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - externalIpEgressBandwidthTier_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int totalEgressBandwidthTier_ = 0; - /** - * - * - *
-       * Specifies the total network bandwidth tier for the NodePool.
-       * 
- * - * - * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @return Whether the totalEgressBandwidthTier field is set. - */ - @java.lang.Override - public boolean hasTotalEgressBandwidthTier() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-       * Specifies the total network bandwidth tier for the NodePool.
-       * 
- * - * - * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @return The enum numeric value on the wire for totalEgressBandwidthTier. - */ - @java.lang.Override - public int getTotalEgressBandwidthTierValue() { - return totalEgressBandwidthTier_; - } - /** - * - * - *
-       * Specifies the total network bandwidth tier for the NodePool.
-       * 
- * - * - * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @param value The enum numeric value on the wire for totalEgressBandwidthTier to set. - * @return This builder for chaining. - */ - public Builder setTotalEgressBandwidthTierValue(int value) { - totalEgressBandwidthTier_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * Specifies the total network bandwidth tier for the NodePool.
-       * 
- * - * - * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @return The totalEgressBandwidthTier. - */ - @java.lang.Override - public com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier - getTotalEgressBandwidthTier() { - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier result = - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier.forNumber( - totalEgressBandwidthTier_); - return result == null - ? com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier - .UNRECOGNIZED - : result; - } - /** - * - * - *
-       * Specifies the total network bandwidth tier for the NodePool.
-       * 
- * - * - * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @param value The totalEgressBandwidthTier to set. - * @return This builder for chaining. - */ - public Builder setTotalEgressBandwidthTier( - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - totalEgressBandwidthTier_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * Specifies the total network bandwidth tier for the NodePool.
-       * 
- * - * - * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * - * - * @return This builder for chaining. - */ - public Builder clearTotalEgressBandwidthTier() { - bitField0_ = (bitField0_ & ~0x00000001); - totalEgressBandwidthTier_ = 0; - onChanged(); - return this; - } - - private int externalIpEgressBandwidthTier_ = 0; - /** - * - * - *
-       * Specifies the network bandwidth tier for the NodePool for traffic to
-       * external/public IP addresses.
-       * 
- * - * - * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier external_ip_egress_bandwidth_tier = 2; - * - * - * @return Whether the externalIpEgressBandwidthTier field is set. - */ - @java.lang.Override - public boolean hasExternalIpEgressBandwidthTier() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-       * Specifies the network bandwidth tier for the NodePool for traffic to
-       * external/public IP addresses.
-       * 
- * - * - * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier external_ip_egress_bandwidth_tier = 2; - * - * - * @return The enum numeric value on the wire for externalIpEgressBandwidthTier. - */ - @java.lang.Override - public int getExternalIpEgressBandwidthTierValue() { - return externalIpEgressBandwidthTier_; - } - /** - * - * - *
-       * Specifies the network bandwidth tier for the NodePool for traffic to
-       * external/public IP addresses.
-       * 
- * - * - * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier external_ip_egress_bandwidth_tier = 2; - * - * - * @param value The enum numeric value on the wire for externalIpEgressBandwidthTier to set. - * @return This builder for chaining. - */ - public Builder setExternalIpEgressBandwidthTierValue(int value) { - externalIpEgressBandwidthTier_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-       * Specifies the network bandwidth tier for the NodePool for traffic to
-       * external/public IP addresses.
-       * 
- * - * - * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier external_ip_egress_bandwidth_tier = 2; - * - * - * @return The externalIpEgressBandwidthTier. - */ - @java.lang.Override - public com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier - getExternalIpEgressBandwidthTier() { - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier result = - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier.forNumber( - externalIpEgressBandwidthTier_); - return result == null - ? com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier - .UNRECOGNIZED - : result; - } - /** - * - * - *
-       * Specifies the network bandwidth tier for the NodePool for traffic to
-       * external/public IP addresses.
-       * 
- * - * - * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier external_ip_egress_bandwidth_tier = 2; - * - * - * @param value The externalIpEgressBandwidthTier to set. - * @return This builder for chaining. - */ - public Builder setExternalIpEgressBandwidthTier( - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - externalIpEgressBandwidthTier_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * Specifies the network bandwidth tier for the NodePool for traffic to
-       * external/public IP addresses.
-       * 
- * - * - * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier external_ip_egress_bandwidth_tier = 2; - * - * - * @return This builder for chaining. - */ - public Builder clearExternalIpEgressBandwidthTier() { - bitField0_ = (bitField0_ & ~0x00000002); - externalIpEgressBandwidthTier_ = 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.NodeNetworkConfig.NetworkPerformanceConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig) - private static final com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig(); - } - - public static com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NetworkPerformanceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.NodeNetworkConfig.NetworkPerformanceConfig - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int bitField0_; - public static final int CREATE_POD_RANGE_FIELD_NUMBER = 4; - private boolean createPodRange_ = false; - /** - * - * - *
-   * Input only. Whether to create a new range for pod IPs in this node pool.
-   * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they
-   * are not specified.
-   *
-   * If neither `create_pod_range` or `pod_range` are specified, the
-   * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is
-   * used.
-   *
-   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-   *
-   * This field cannot be changed after the node pool has been created.
-   * 
- * - * bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * @return The createPodRange. - */ - @java.lang.Override - public boolean getCreatePodRange() { - return createPodRange_; - } - - public static final int POD_RANGE_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - private volatile java.lang.Object podRange_ = ""; - /** - * - * - *
-   * The ID of the secondary range for pod IPs.
-   * If `create_pod_range` is true, this ID is used for the new range.
-   * If `create_pod_range` is false, uses an existing secondary range with this
-   * ID.
-   *
-   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-   *
-   * This field cannot be changed after the node pool has been created.
-   * 
- * - * string pod_range = 5; - * - * @return The podRange. - */ - @java.lang.Override - public java.lang.String getPodRange() { - java.lang.Object ref = podRange_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - podRange_ = s; - return s; - } - } - /** - * - * - *
-   * The ID of the secondary range for pod IPs.
-   * If `create_pod_range` is true, this ID is used for the new range.
-   * If `create_pod_range` is false, uses an existing secondary range with this
-   * ID.
-   *
-   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-   *
-   * This field cannot be changed after the node pool has been created.
-   * 
- * - * string pod_range = 5; - * - * @return The bytes for podRange. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPodRangeBytes() { - java.lang.Object ref = podRange_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - podRange_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int POD_IPV4_CIDR_BLOCK_FIELD_NUMBER = 6; - - @SuppressWarnings("serial") - private volatile java.lang.Object podIpv4CidrBlock_ = ""; - /** - * - * - *
-   * The IP address range for pod IPs in this node pool.
-   *
-   * Only applicable if `create_pod_range` is true.
-   *
-   * Set to blank to have a range chosen with the default size.
-   *
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   *
-   * Set to a
-   * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
-   *
-   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-   *
-   * This field cannot be changed after the node pool has been created.
-   * 
- * - * string pod_ipv4_cidr_block = 6; - * - * @return The podIpv4CidrBlock. - */ - @java.lang.Override - public java.lang.String getPodIpv4CidrBlock() { - java.lang.Object ref = podIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - podIpv4CidrBlock_ = s; - return s; - } - } - /** - * - * - *
-   * The IP address range for pod IPs in this node pool.
-   *
-   * Only applicable if `create_pod_range` is true.
-   *
-   * Set to blank to have a range chosen with the default size.
-   *
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   *
-   * Set to a
-   * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
-   *
-   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-   *
-   * This field cannot be changed after the node pool has been created.
-   * 
- * - * string pod_ipv4_cidr_block = 6; - * - * @return The bytes for podIpv4CidrBlock. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPodIpv4CidrBlockBytes() { - java.lang.Object ref = podIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - podIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ENABLE_PRIVATE_NODES_FIELD_NUMBER = 9; - private boolean enablePrivateNodes_ = false; - /** - * - * - *
-   * Whether nodes have internal IP addresses only.
-   * If enable_private_nodes is not specified, then the value is derived from
-   * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
-   * 
- * - * optional bool enable_private_nodes = 9; - * - * @return Whether the enablePrivateNodes field is set. - */ - @java.lang.Override - public boolean hasEnablePrivateNodes() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Whether nodes have internal IP addresses only.
-   * If enable_private_nodes is not specified, then the value is derived from
-   * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
-   * 
- * - * optional bool enable_private_nodes = 9; - * - * @return The enablePrivateNodes. - */ - @java.lang.Override - public boolean getEnablePrivateNodes() { - return enablePrivateNodes_; - } - - public static final int NETWORK_PERFORMANCE_CONFIG_FIELD_NUMBER = 11; - private com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig - networkPerformanceConfig_; - /** - * - * - *
-   * Network bandwidth tier configuration.
-   * 
- * - * - * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - * - * - * @return Whether the networkPerformanceConfig field is set. - */ - @java.lang.Override - public boolean hasNetworkPerformanceConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * Network bandwidth tier configuration.
-   * 
- * - * - * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - * - * - * @return The networkPerformanceConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig - getNetworkPerformanceConfig() { - return networkPerformanceConfig_ == null - ? com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig - .getDefaultInstance() - : networkPerformanceConfig_; - } - /** - * - * - *
-   * Network bandwidth tier configuration.
-   * 
- * - * - * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - * - */ - @java.lang.Override - public com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfigOrBuilder - getNetworkPerformanceConfigOrBuilder() { - return networkPerformanceConfig_ == null - ? com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig - .getDefaultInstance() - : networkPerformanceConfig_; - } - - public static final int POD_CIDR_OVERPROVISION_CONFIG_FIELD_NUMBER = 13; - private com.google.container.v1beta1.PodCIDROverprovisionConfig podCidrOverprovisionConfig_; - /** - * - * - *
-   * [PRIVATE FIELD]
-   * Pod CIDR size overprovisioning config for the nodepool.
-   *
-   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-   * of max_pods_per_node is rounded off to next power of 2 and we then double
-   * that to get the size of pod CIDR block per node.
-   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-   *
-   * This config can disable the doubling of IPs (we still round off to next
-   * power of 2)
-   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-   * overprovisioning is disabled.
-   * 
- * - * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; - * - * - * @return Whether the podCidrOverprovisionConfig field is set. - */ - @java.lang.Override - public boolean hasPodCidrOverprovisionConfig() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-   * [PRIVATE FIELD]
-   * Pod CIDR size overprovisioning config for the nodepool.
-   *
-   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-   * of max_pods_per_node is rounded off to next power of 2 and we then double
-   * that to get the size of pod CIDR block per node.
-   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-   *
-   * This config can disable the doubling of IPs (we still round off to next
-   * power of 2)
-   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-   * overprovisioning is disabled.
-   * 
- * - * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; - * - * - * @return The podCidrOverprovisionConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.PodCIDROverprovisionConfig getPodCidrOverprovisionConfig() { - return podCidrOverprovisionConfig_ == null - ? com.google.container.v1beta1.PodCIDROverprovisionConfig.getDefaultInstance() - : podCidrOverprovisionConfig_; - } - /** - * - * - *
-   * [PRIVATE FIELD]
-   * Pod CIDR size overprovisioning config for the nodepool.
-   *
-   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-   * of max_pods_per_node is rounded off to next power of 2 and we then double
-   * that to get the size of pod CIDR block per node.
-   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-   *
-   * This config can disable the doubling of IPs (we still round off to next
-   * power of 2)
-   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-   * overprovisioning is disabled.
-   * 
- * - * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; - * - */ - @java.lang.Override - public com.google.container.v1beta1.PodCIDROverprovisionConfigOrBuilder - getPodCidrOverprovisionConfigOrBuilder() { - return podCidrOverprovisionConfig_ == null - ? com.google.container.v1beta1.PodCIDROverprovisionConfig.getDefaultInstance() - : podCidrOverprovisionConfig_; - } - - public static final int ADDITIONAL_NODE_NETWORK_CONFIGS_FIELD_NUMBER = 14; - - @SuppressWarnings("serial") - private java.util.List - additionalNodeNetworkConfigs_; - /** - * - * - *
-   * We specify the additional node networks for this node pool using this list.
-   * Each node network corresponds to an additional interface
-   * 
- * - * - * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - @java.lang.Override - public java.util.List - getAdditionalNodeNetworkConfigsList() { - return additionalNodeNetworkConfigs_; - } - /** - * - * - *
-   * We specify the additional node networks for this node pool using this list.
-   * Each node network corresponds to an additional interface
-   * 
- * - * - * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - @java.lang.Override - public java.util.List - getAdditionalNodeNetworkConfigsOrBuilderList() { - return additionalNodeNetworkConfigs_; - } - /** - * - * - *
-   * We specify the additional node networks for this node pool using this list.
-   * Each node network corresponds to an additional interface
-   * 
- * - * - * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - @java.lang.Override - public int getAdditionalNodeNetworkConfigsCount() { - return additionalNodeNetworkConfigs_.size(); - } - /** - * - * - *
-   * We specify the additional node networks for this node pool using this list.
-   * Each node network corresponds to an additional interface
-   * 
- * - * - * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - @java.lang.Override - public com.google.container.v1beta1.AdditionalNodeNetworkConfig getAdditionalNodeNetworkConfigs( - int index) { - return additionalNodeNetworkConfigs_.get(index); - } - /** - * - * - *
-   * We specify the additional node networks for this node pool using this list.
-   * Each node network corresponds to an additional interface
-   * 
- * - * - * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - @java.lang.Override - public com.google.container.v1beta1.AdditionalNodeNetworkConfigOrBuilder - getAdditionalNodeNetworkConfigsOrBuilder(int index) { - return additionalNodeNetworkConfigs_.get(index); - } - - public static final int ADDITIONAL_POD_NETWORK_CONFIGS_FIELD_NUMBER = 15; - - @SuppressWarnings("serial") - private java.util.List - additionalPodNetworkConfigs_; - /** - * - * - *
-   * We specify the additional pod networks for this node pool using this list.
-   * Each pod network corresponds to an additional alias IP range for the node
-   * 
- * - * - * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - @java.lang.Override - public java.util.List - getAdditionalPodNetworkConfigsList() { - return additionalPodNetworkConfigs_; - } - /** - * - * - *
-   * We specify the additional pod networks for this node pool using this list.
-   * Each pod network corresponds to an additional alias IP range for the node
-   * 
- * - * - * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - @java.lang.Override - public java.util.List - getAdditionalPodNetworkConfigsOrBuilderList() { - return additionalPodNetworkConfigs_; - } - /** - * - * - *
-   * We specify the additional pod networks for this node pool using this list.
-   * Each pod network corresponds to an additional alias IP range for the node
-   * 
- * - * - * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - @java.lang.Override - public int getAdditionalPodNetworkConfigsCount() { - return additionalPodNetworkConfigs_.size(); - } - /** - * - * - *
-   * We specify the additional pod networks for this node pool using this list.
-   * Each pod network corresponds to an additional alias IP range for the node
-   * 
- * - * - * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - @java.lang.Override - public com.google.container.v1beta1.AdditionalPodNetworkConfig getAdditionalPodNetworkConfigs( - int index) { - return additionalPodNetworkConfigs_.get(index); - } - /** - * - * - *
-   * We specify the additional pod networks for this node pool using this list.
-   * Each pod network corresponds to an additional alias IP range for the node
-   * 
- * - * - * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - @java.lang.Override - public com.google.container.v1beta1.AdditionalPodNetworkConfigOrBuilder - getAdditionalPodNetworkConfigsOrBuilder(int index) { - return additionalPodNetworkConfigs_.get(index); - } - - public static final int POD_IPV4_RANGE_UTILIZATION_FIELD_NUMBER = 16; - private double podIpv4RangeUtilization_ = 0D; - /** - * - * - *
-   * Output only. [Output only] The utilization of the IPv4 range for the pod.
-   * The ratio is Usage/[Total number of IPs in the secondary range],
-   * Usage=numNodes*numZones*podIPsPerNode.
-   * 
- * - * double pod_ipv4_range_utilization = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The podIpv4RangeUtilization. - */ - @java.lang.Override - public double getPodIpv4RangeUtilization() { - return podIpv4RangeUtilization_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (createPodRange_ != false) { - output.writeBool(4, createPodRange_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(podRange_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, podRange_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(podIpv4CidrBlock_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, podIpv4CidrBlock_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeBool(9, enablePrivateNodes_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(11, getNetworkPerformanceConfig()); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(13, getPodCidrOverprovisionConfig()); - } - for (int i = 0; i < additionalNodeNetworkConfigs_.size(); i++) { - output.writeMessage(14, additionalNodeNetworkConfigs_.get(i)); - } - for (int i = 0; i < additionalPodNetworkConfigs_.size(); i++) { - output.writeMessage(15, additionalPodNetworkConfigs_.get(i)); - } - if (java.lang.Double.doubleToRawLongBits(podIpv4RangeUtilization_) != 0) { - output.writeDouble(16, podIpv4RangeUtilization_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (createPodRange_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, createPodRange_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(podRange_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, podRange_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(podIpv4CidrBlock_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, podIpv4CidrBlock_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, enablePrivateNodes_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 11, getNetworkPerformanceConfig()); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 13, getPodCidrOverprovisionConfig()); - } - for (int i = 0; i < additionalNodeNetworkConfigs_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 14, additionalNodeNetworkConfigs_.get(i)); - } - for (int i = 0; i < additionalPodNetworkConfigs_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 15, additionalPodNetworkConfigs_.get(i)); - } - if (java.lang.Double.doubleToRawLongBits(podIpv4RangeUtilization_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(16, podIpv4RangeUtilization_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.NodeNetworkConfig)) { - return super.equals(obj); - } - com.google.container.v1beta1.NodeNetworkConfig other = - (com.google.container.v1beta1.NodeNetworkConfig) obj; - - if (getCreatePodRange() != other.getCreatePodRange()) return false; - if (!getPodRange().equals(other.getPodRange())) return false; - if (!getPodIpv4CidrBlock().equals(other.getPodIpv4CidrBlock())) return false; - if (hasEnablePrivateNodes() != other.hasEnablePrivateNodes()) return false; - if (hasEnablePrivateNodes()) { - if (getEnablePrivateNodes() != other.getEnablePrivateNodes()) return false; - } - if (hasNetworkPerformanceConfig() != other.hasNetworkPerformanceConfig()) return false; - if (hasNetworkPerformanceConfig()) { - if (!getNetworkPerformanceConfig().equals(other.getNetworkPerformanceConfig())) return false; - } - if (hasPodCidrOverprovisionConfig() != other.hasPodCidrOverprovisionConfig()) return false; - if (hasPodCidrOverprovisionConfig()) { - if (!getPodCidrOverprovisionConfig().equals(other.getPodCidrOverprovisionConfig())) - return false; - } - if (!getAdditionalNodeNetworkConfigsList().equals(other.getAdditionalNodeNetworkConfigsList())) - return false; - if (!getAdditionalPodNetworkConfigsList().equals(other.getAdditionalPodNetworkConfigsList())) - return false; - if (java.lang.Double.doubleToLongBits(getPodIpv4RangeUtilization()) - != java.lang.Double.doubleToLongBits(other.getPodIpv4RangeUtilization())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CREATE_POD_RANGE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCreatePodRange()); - hash = (37 * hash) + POD_RANGE_FIELD_NUMBER; - hash = (53 * hash) + getPodRange().hashCode(); - hash = (37 * hash) + POD_IPV4_CIDR_BLOCK_FIELD_NUMBER; - hash = (53 * hash) + getPodIpv4CidrBlock().hashCode(); - if (hasEnablePrivateNodes()) { - hash = (37 * hash) + ENABLE_PRIVATE_NODES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePrivateNodes()); - } - if (hasNetworkPerformanceConfig()) { - hash = (37 * hash) + NETWORK_PERFORMANCE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getNetworkPerformanceConfig().hashCode(); - } - if (hasPodCidrOverprovisionConfig()) { - hash = (37 * hash) + POD_CIDR_OVERPROVISION_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getPodCidrOverprovisionConfig().hashCode(); - } - if (getAdditionalNodeNetworkConfigsCount() > 0) { - hash = (37 * hash) + ADDITIONAL_NODE_NETWORK_CONFIGS_FIELD_NUMBER; - hash = (53 * hash) + getAdditionalNodeNetworkConfigsList().hashCode(); - } - if (getAdditionalPodNetworkConfigsCount() > 0) { - hash = (37 * hash) + ADDITIONAL_POD_NETWORK_CONFIGS_FIELD_NUMBER; - hash = (53 * hash) + getAdditionalPodNetworkConfigsList().hashCode(); - } - hash = (37 * hash) + POD_IPV4_RANGE_UTILIZATION_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getPodIpv4RangeUtilization())); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.NodeNetworkConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NodeNetworkConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.NodeNetworkConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NodeNetworkConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.NodeNetworkConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NodeNetworkConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.NodeNetworkConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NodeNetworkConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.NodeNetworkConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NodeNetworkConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.NodeNetworkConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NodeNetworkConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1beta1.NodeNetworkConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Parameters for node pool-level network config.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.NodeNetworkConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NodeNetworkConfig) - com.google.container.v1beta1.NodeNetworkConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodeNetworkConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodeNetworkConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.NodeNetworkConfig.class, - com.google.container.v1beta1.NodeNetworkConfig.Builder.class); - } - - // Construct using com.google.container.v1beta1.NodeNetworkConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getNetworkPerformanceConfigFieldBuilder(); - getPodCidrOverprovisionConfigFieldBuilder(); - getAdditionalNodeNetworkConfigsFieldBuilder(); - getAdditionalPodNetworkConfigsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - createPodRange_ = false; - podRange_ = ""; - podIpv4CidrBlock_ = ""; - enablePrivateNodes_ = false; - networkPerformanceConfig_ = null; - if (networkPerformanceConfigBuilder_ != null) { - networkPerformanceConfigBuilder_.dispose(); - networkPerformanceConfigBuilder_ = null; - } - podCidrOverprovisionConfig_ = null; - if (podCidrOverprovisionConfigBuilder_ != null) { - podCidrOverprovisionConfigBuilder_.dispose(); - podCidrOverprovisionConfigBuilder_ = null; - } - if (additionalNodeNetworkConfigsBuilder_ == null) { - additionalNodeNetworkConfigs_ = java.util.Collections.emptyList(); - } else { - additionalNodeNetworkConfigs_ = null; - additionalNodeNetworkConfigsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000040); - if (additionalPodNetworkConfigsBuilder_ == null) { - additionalPodNetworkConfigs_ = java.util.Collections.emptyList(); - } else { - additionalPodNetworkConfigs_ = null; - additionalPodNetworkConfigsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000080); - podIpv4RangeUtilization_ = 0D; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodeNetworkConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.NodeNetworkConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.NodeNetworkConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.NodeNetworkConfig build() { - com.google.container.v1beta1.NodeNetworkConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.NodeNetworkConfig buildPartial() { - com.google.container.v1beta1.NodeNetworkConfig result = - new com.google.container.v1beta1.NodeNetworkConfig(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.container.v1beta1.NodeNetworkConfig result) { - if (additionalNodeNetworkConfigsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { - additionalNodeNetworkConfigs_ = - java.util.Collections.unmodifiableList(additionalNodeNetworkConfigs_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.additionalNodeNetworkConfigs_ = additionalNodeNetworkConfigs_; - } else { - result.additionalNodeNetworkConfigs_ = additionalNodeNetworkConfigsBuilder_.build(); - } - if (additionalPodNetworkConfigsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0)) { - additionalPodNetworkConfigs_ = - java.util.Collections.unmodifiableList(additionalPodNetworkConfigs_); - bitField0_ = (bitField0_ & ~0x00000080); - } - result.additionalPodNetworkConfigs_ = additionalPodNetworkConfigs_; - } else { - result.additionalPodNetworkConfigs_ = additionalPodNetworkConfigsBuilder_.build(); - } - } - - private void buildPartial0(com.google.container.v1beta1.NodeNetworkConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.createPodRange_ = createPodRange_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.podRange_ = podRange_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.podIpv4CidrBlock_ = podIpv4CidrBlock_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.enablePrivateNodes_ = enablePrivateNodes_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.networkPerformanceConfig_ = - networkPerformanceConfigBuilder_ == null - ? networkPerformanceConfig_ - : networkPerformanceConfigBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.podCidrOverprovisionConfig_ = - podCidrOverprovisionConfigBuilder_ == null - ? podCidrOverprovisionConfig_ - : podCidrOverprovisionConfigBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.podIpv4RangeUtilization_ = podIpv4RangeUtilization_; - } - result.bitField0_ |= to_bitField0_; - } - - @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.NodeNetworkConfig) { - return mergeFrom((com.google.container.v1beta1.NodeNetworkConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.NodeNetworkConfig other) { - if (other == com.google.container.v1beta1.NodeNetworkConfig.getDefaultInstance()) return this; - if (other.getCreatePodRange() != false) { - setCreatePodRange(other.getCreatePodRange()); - } - if (!other.getPodRange().isEmpty()) { - podRange_ = other.podRange_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getPodIpv4CidrBlock().isEmpty()) { - podIpv4CidrBlock_ = other.podIpv4CidrBlock_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasEnablePrivateNodes()) { - setEnablePrivateNodes(other.getEnablePrivateNodes()); - } - if (other.hasNetworkPerformanceConfig()) { - mergeNetworkPerformanceConfig(other.getNetworkPerformanceConfig()); - } - if (other.hasPodCidrOverprovisionConfig()) { - mergePodCidrOverprovisionConfig(other.getPodCidrOverprovisionConfig()); - } - if (additionalNodeNetworkConfigsBuilder_ == null) { - if (!other.additionalNodeNetworkConfigs_.isEmpty()) { - if (additionalNodeNetworkConfigs_.isEmpty()) { - additionalNodeNetworkConfigs_ = other.additionalNodeNetworkConfigs_; - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ensureAdditionalNodeNetworkConfigsIsMutable(); - additionalNodeNetworkConfigs_.addAll(other.additionalNodeNetworkConfigs_); - } - onChanged(); - } - } else { - if (!other.additionalNodeNetworkConfigs_.isEmpty()) { - if (additionalNodeNetworkConfigsBuilder_.isEmpty()) { - additionalNodeNetworkConfigsBuilder_.dispose(); - additionalNodeNetworkConfigsBuilder_ = null; - additionalNodeNetworkConfigs_ = other.additionalNodeNetworkConfigs_; - bitField0_ = (bitField0_ & ~0x00000040); - additionalNodeNetworkConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAdditionalNodeNetworkConfigsFieldBuilder() - : null; - } else { - additionalNodeNetworkConfigsBuilder_.addAllMessages( - other.additionalNodeNetworkConfigs_); - } - } - } - if (additionalPodNetworkConfigsBuilder_ == null) { - if (!other.additionalPodNetworkConfigs_.isEmpty()) { - if (additionalPodNetworkConfigs_.isEmpty()) { - additionalPodNetworkConfigs_ = other.additionalPodNetworkConfigs_; - bitField0_ = (bitField0_ & ~0x00000080); - } else { - ensureAdditionalPodNetworkConfigsIsMutable(); - additionalPodNetworkConfigs_.addAll(other.additionalPodNetworkConfigs_); - } - onChanged(); - } - } else { - if (!other.additionalPodNetworkConfigs_.isEmpty()) { - if (additionalPodNetworkConfigsBuilder_.isEmpty()) { - additionalPodNetworkConfigsBuilder_.dispose(); - additionalPodNetworkConfigsBuilder_ = null; - additionalPodNetworkConfigs_ = other.additionalPodNetworkConfigs_; - bitField0_ = (bitField0_ & ~0x00000080); - additionalPodNetworkConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAdditionalPodNetworkConfigsFieldBuilder() - : null; - } else { - additionalPodNetworkConfigsBuilder_.addAllMessages(other.additionalPodNetworkConfigs_); - } - } - } - if (other.getPodIpv4RangeUtilization() != 0D) { - setPodIpv4RangeUtilization(other.getPodIpv4RangeUtilization()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 32: - { - createPodRange_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 32 - case 42: - { - podRange_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 42 - case 50: - { - podIpv4CidrBlock_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 50 - case 72: - { - enablePrivateNodes_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 72 - case 90: - { - input.readMessage( - getNetworkPerformanceConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 90 - case 106: - { - input.readMessage( - getPodCidrOverprovisionConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 106 - case 114: - { - com.google.container.v1beta1.AdditionalNodeNetworkConfig m = - input.readMessage( - com.google.container.v1beta1.AdditionalNodeNetworkConfig.parser(), - extensionRegistry); - if (additionalNodeNetworkConfigsBuilder_ == null) { - ensureAdditionalNodeNetworkConfigsIsMutable(); - additionalNodeNetworkConfigs_.add(m); - } else { - additionalNodeNetworkConfigsBuilder_.addMessage(m); - } - break; - } // case 114 - case 122: - { - com.google.container.v1beta1.AdditionalPodNetworkConfig m = - input.readMessage( - com.google.container.v1beta1.AdditionalPodNetworkConfig.parser(), - extensionRegistry); - if (additionalPodNetworkConfigsBuilder_ == null) { - ensureAdditionalPodNetworkConfigsIsMutable(); - additionalPodNetworkConfigs_.add(m); - } else { - additionalPodNetworkConfigsBuilder_.addMessage(m); - } - break; - } // case 122 - case 129: - { - podIpv4RangeUtilization_ = input.readDouble(); - bitField0_ |= 0x00000100; - break; - } // case 129 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean createPodRange_; - /** - * - * - *
-     * Input only. Whether to create a new range for pod IPs in this node pool.
-     * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they
-     * are not specified.
-     *
-     * If neither `create_pod_range` or `pod_range` are specified, the
-     * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is
-     * used.
-     *
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     *
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * @return The createPodRange. - */ - @java.lang.Override - public boolean getCreatePodRange() { - return createPodRange_; - } - /** - * - * - *
-     * Input only. Whether to create a new range for pod IPs in this node pool.
-     * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they
-     * are not specified.
-     *
-     * If neither `create_pod_range` or `pod_range` are specified, the
-     * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is
-     * used.
-     *
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     *
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * @param value The createPodRange to set. - * @return This builder for chaining. - */ - public Builder setCreatePodRange(boolean value) { - - createPodRange_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Input only. Whether to create a new range for pod IPs in this node pool.
-     * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they
-     * are not specified.
-     *
-     * If neither `create_pod_range` or `pod_range` are specified, the
-     * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is
-     * used.
-     *
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     *
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearCreatePodRange() { - bitField0_ = (bitField0_ & ~0x00000001); - createPodRange_ = false; - onChanged(); - return this; - } - - private java.lang.Object podRange_ = ""; - /** - * - * - *
-     * The ID of the secondary range for pod IPs.
-     * If `create_pod_range` is true, this ID is used for the new range.
-     * If `create_pod_range` is false, uses an existing secondary range with this
-     * ID.
-     *
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     *
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * string pod_range = 5; - * - * @return The podRange. - */ - public java.lang.String getPodRange() { - java.lang.Object ref = podRange_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - podRange_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The ID of the secondary range for pod IPs.
-     * If `create_pod_range` is true, this ID is used for the new range.
-     * If `create_pod_range` is false, uses an existing secondary range with this
-     * ID.
-     *
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     *
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * string pod_range = 5; - * - * @return The bytes for podRange. - */ - public com.google.protobuf.ByteString getPodRangeBytes() { - java.lang.Object ref = podRange_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - podRange_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The ID of the secondary range for pod IPs.
-     * If `create_pod_range` is true, this ID is used for the new range.
-     * If `create_pod_range` is false, uses an existing secondary range with this
-     * ID.
-     *
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     *
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * string pod_range = 5; - * - * @param value The podRange to set. - * @return This builder for chaining. - */ - public Builder setPodRange(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - podRange_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * The ID of the secondary range for pod IPs.
-     * If `create_pod_range` is true, this ID is used for the new range.
-     * If `create_pod_range` is false, uses an existing secondary range with this
-     * ID.
-     *
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     *
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * string pod_range = 5; - * - * @return This builder for chaining. - */ - public Builder clearPodRange() { - podRange_ = getDefaultInstance().getPodRange(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * The ID of the secondary range for pod IPs.
-     * If `create_pod_range` is true, this ID is used for the new range.
-     * If `create_pod_range` is false, uses an existing secondary range with this
-     * ID.
-     *
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     *
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * string pod_range = 5; - * - * @param value The bytes for podRange to set. - * @return This builder for chaining. - */ - public Builder setPodRangeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - podRange_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object podIpv4CidrBlock_ = ""; - /** - * - * - *
-     * The IP address range for pod IPs in this node pool.
-     *
-     * Only applicable if `create_pod_range` is true.
-     *
-     * Set to blank to have a range chosen with the default size.
-     *
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     *
-     * Set to a
-     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
-     *
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     *
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * string pod_ipv4_cidr_block = 6; - * - * @return The podIpv4CidrBlock. - */ - public java.lang.String getPodIpv4CidrBlock() { - java.lang.Object ref = podIpv4CidrBlock_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - podIpv4CidrBlock_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The IP address range for pod IPs in this node pool.
-     *
-     * Only applicable if `create_pod_range` is true.
-     *
-     * Set to blank to have a range chosen with the default size.
-     *
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     *
-     * Set to a
-     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
-     *
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     *
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * string pod_ipv4_cidr_block = 6; - * - * @return The bytes for podIpv4CidrBlock. - */ - public com.google.protobuf.ByteString getPodIpv4CidrBlockBytes() { - java.lang.Object ref = podIpv4CidrBlock_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - podIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The IP address range for pod IPs in this node pool.
-     *
-     * Only applicable if `create_pod_range` is true.
-     *
-     * Set to blank to have a range chosen with the default size.
-     *
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     *
-     * Set to a
-     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
-     *
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     *
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * string pod_ipv4_cidr_block = 6; - * - * @param value The podIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setPodIpv4CidrBlock(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - podIpv4CidrBlock_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The IP address range for pod IPs in this node pool.
-     *
-     * Only applicable if `create_pod_range` is true.
-     *
-     * Set to blank to have a range chosen with the default size.
-     *
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     *
-     * Set to a
-     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
-     *
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     *
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * string pod_ipv4_cidr_block = 6; - * - * @return This builder for chaining. - */ - public Builder clearPodIpv4CidrBlock() { - podIpv4CidrBlock_ = getDefaultInstance().getPodIpv4CidrBlock(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * The IP address range for pod IPs in this node pool.
-     *
-     * Only applicable if `create_pod_range` is true.
-     *
-     * Set to blank to have a range chosen with the default size.
-     *
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     *
-     * Set to a
-     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
-     *
-     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-     *
-     * This field cannot be changed after the node pool has been created.
-     * 
- * - * string pod_ipv4_cidr_block = 6; - * - * @param value The bytes for podIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setPodIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - podIpv4CidrBlock_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private boolean enablePrivateNodes_; - /** - * - * - *
-     * Whether nodes have internal IP addresses only.
-     * If enable_private_nodes is not specified, then the value is derived from
-     * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
-     * 
- * - * optional bool enable_private_nodes = 9; - * - * @return Whether the enablePrivateNodes field is set. - */ - @java.lang.Override - public boolean hasEnablePrivateNodes() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-     * Whether nodes have internal IP addresses only.
-     * If enable_private_nodes is not specified, then the value is derived from
-     * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
-     * 
- * - * optional bool enable_private_nodes = 9; - * - * @return The enablePrivateNodes. - */ - @java.lang.Override - public boolean getEnablePrivateNodes() { - return enablePrivateNodes_; - } - /** - * - * - *
-     * Whether nodes have internal IP addresses only.
-     * If enable_private_nodes is not specified, then the value is derived from
-     * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
-     * 
- * - * optional bool enable_private_nodes = 9; - * - * @param value The enablePrivateNodes to set. - * @return This builder for chaining. - */ - public Builder setEnablePrivateNodes(boolean value) { - - enablePrivateNodes_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether nodes have internal IP addresses only.
-     * If enable_private_nodes is not specified, then the value is derived from
-     * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
-     * 
- * - * optional bool enable_private_nodes = 9; - * - * @return This builder for chaining. - */ - public Builder clearEnablePrivateNodes() { - bitField0_ = (bitField0_ & ~0x00000008); - enablePrivateNodes_ = false; - onChanged(); - return this; - } - - private com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig - networkPerformanceConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig, - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Builder, - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfigOrBuilder> - networkPerformanceConfigBuilder_; - /** - * - * - *
-     * Network bandwidth tier configuration.
-     * 
- * - * - * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - * - * - * @return Whether the networkPerformanceConfig field is set. - */ - public boolean hasNetworkPerformanceConfig() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-     * Network bandwidth tier configuration.
-     * 
- * - * - * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - * - * - * @return The networkPerformanceConfig. - */ - public com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig - getNetworkPerformanceConfig() { - if (networkPerformanceConfigBuilder_ == null) { - return networkPerformanceConfig_ == null - ? com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig - .getDefaultInstance() - : networkPerformanceConfig_; - } else { - return networkPerformanceConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Network bandwidth tier configuration.
-     * 
- * - * - * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - * - */ - public Builder setNetworkPerformanceConfig( - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig value) { - if (networkPerformanceConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - networkPerformanceConfig_ = value; - } else { - networkPerformanceConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Network bandwidth tier configuration.
-     * 
- * - * - * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - * - */ - public Builder setNetworkPerformanceConfig( - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Builder - builderForValue) { - if (networkPerformanceConfigBuilder_ == null) { - networkPerformanceConfig_ = builderForValue.build(); - } else { - networkPerformanceConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Network bandwidth tier configuration.
-     * 
- * - * - * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - * - */ - public Builder mergeNetworkPerformanceConfig( - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig value) { - if (networkPerformanceConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && networkPerformanceConfig_ != null - && networkPerformanceConfig_ - != com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig - .getDefaultInstance()) { - getNetworkPerformanceConfigBuilder().mergeFrom(value); - } else { - networkPerformanceConfig_ = value; - } - } else { - networkPerformanceConfigBuilder_.mergeFrom(value); - } - if (networkPerformanceConfig_ != null) { - bitField0_ |= 0x00000010; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Network bandwidth tier configuration.
-     * 
- * - * - * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - * - */ - public Builder clearNetworkPerformanceConfig() { - bitField0_ = (bitField0_ & ~0x00000010); - networkPerformanceConfig_ = null; - if (networkPerformanceConfigBuilder_ != null) { - networkPerformanceConfigBuilder_.dispose(); - networkPerformanceConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Network bandwidth tier configuration.
-     * 
- * - * - * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - * - */ - public com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Builder - getNetworkPerformanceConfigBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getNetworkPerformanceConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Network bandwidth tier configuration.
-     * 
- * - * - * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - * - */ - public com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfigOrBuilder - getNetworkPerformanceConfigOrBuilder() { - if (networkPerformanceConfigBuilder_ != null) { - return networkPerformanceConfigBuilder_.getMessageOrBuilder(); - } else { - return networkPerformanceConfig_ == null - ? com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig - .getDefaultInstance() - : networkPerformanceConfig_; - } - } - /** - * - * - *
-     * Network bandwidth tier configuration.
-     * 
- * - * - * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig, - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Builder, - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfigOrBuilder> - getNetworkPerformanceConfigFieldBuilder() { - if (networkPerformanceConfigBuilder_ == null) { - networkPerformanceConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig, - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Builder, - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfigOrBuilder>( - getNetworkPerformanceConfig(), getParentForChildren(), isClean()); - networkPerformanceConfig_ = null; - } - return networkPerformanceConfigBuilder_; - } - - private com.google.container.v1beta1.PodCIDROverprovisionConfig podCidrOverprovisionConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.PodCIDROverprovisionConfig, - com.google.container.v1beta1.PodCIDROverprovisionConfig.Builder, - com.google.container.v1beta1.PodCIDROverprovisionConfigOrBuilder> - podCidrOverprovisionConfigBuilder_; - /** - * - * - *
-     * [PRIVATE FIELD]
-     * Pod CIDR size overprovisioning config for the nodepool.
-     *
-     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-     * of max_pods_per_node is rounded off to next power of 2 and we then double
-     * that to get the size of pod CIDR block per node.
-     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-     *
-     * This config can disable the doubling of IPs (we still round off to next
-     * power of 2)
-     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-     * overprovisioning is disabled.
-     * 
- * - * - * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; - * - * - * @return Whether the podCidrOverprovisionConfig field is set. - */ - public boolean hasPodCidrOverprovisionConfig() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * - * - *
-     * [PRIVATE FIELD]
-     * Pod CIDR size overprovisioning config for the nodepool.
-     *
-     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-     * of max_pods_per_node is rounded off to next power of 2 and we then double
-     * that to get the size of pod CIDR block per node.
-     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-     *
-     * This config can disable the doubling of IPs (we still round off to next
-     * power of 2)
-     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-     * overprovisioning is disabled.
-     * 
- * - * - * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; - * - * - * @return The podCidrOverprovisionConfig. - */ - public com.google.container.v1beta1.PodCIDROverprovisionConfig getPodCidrOverprovisionConfig() { - if (podCidrOverprovisionConfigBuilder_ == null) { - return podCidrOverprovisionConfig_ == null - ? com.google.container.v1beta1.PodCIDROverprovisionConfig.getDefaultInstance() - : podCidrOverprovisionConfig_; - } else { - return podCidrOverprovisionConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * [PRIVATE FIELD]
-     * Pod CIDR size overprovisioning config for the nodepool.
-     *
-     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-     * of max_pods_per_node is rounded off to next power of 2 and we then double
-     * that to get the size of pod CIDR block per node.
-     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-     *
-     * This config can disable the doubling of IPs (we still round off to next
-     * power of 2)
-     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-     * overprovisioning is disabled.
-     * 
- * - * - * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; - * - */ - public Builder setPodCidrOverprovisionConfig( - com.google.container.v1beta1.PodCIDROverprovisionConfig value) { - if (podCidrOverprovisionConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - podCidrOverprovisionConfig_ = value; - } else { - podCidrOverprovisionConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * [PRIVATE FIELD]
-     * Pod CIDR size overprovisioning config for the nodepool.
-     *
-     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-     * of max_pods_per_node is rounded off to next power of 2 and we then double
-     * that to get the size of pod CIDR block per node.
-     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-     *
-     * This config can disable the doubling of IPs (we still round off to next
-     * power of 2)
-     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-     * overprovisioning is disabled.
-     * 
- * - * - * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; - * - */ - public Builder setPodCidrOverprovisionConfig( - com.google.container.v1beta1.PodCIDROverprovisionConfig.Builder builderForValue) { - if (podCidrOverprovisionConfigBuilder_ == null) { - podCidrOverprovisionConfig_ = builderForValue.build(); - } else { - podCidrOverprovisionConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * [PRIVATE FIELD]
-     * Pod CIDR size overprovisioning config for the nodepool.
-     *
-     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-     * of max_pods_per_node is rounded off to next power of 2 and we then double
-     * that to get the size of pod CIDR block per node.
-     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-     *
-     * This config can disable the doubling of IPs (we still round off to next
-     * power of 2)
-     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-     * overprovisioning is disabled.
-     * 
- * - * - * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; - * - */ - public Builder mergePodCidrOverprovisionConfig( - com.google.container.v1beta1.PodCIDROverprovisionConfig value) { - if (podCidrOverprovisionConfigBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && podCidrOverprovisionConfig_ != null - && podCidrOverprovisionConfig_ - != com.google.container.v1beta1.PodCIDROverprovisionConfig.getDefaultInstance()) { - getPodCidrOverprovisionConfigBuilder().mergeFrom(value); - } else { - podCidrOverprovisionConfig_ = value; - } - } else { - podCidrOverprovisionConfigBuilder_.mergeFrom(value); - } - if (podCidrOverprovisionConfig_ != null) { - bitField0_ |= 0x00000020; - onChanged(); - } - return this; - } - /** - * - * - *
-     * [PRIVATE FIELD]
-     * Pod CIDR size overprovisioning config for the nodepool.
-     *
-     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-     * of max_pods_per_node is rounded off to next power of 2 and we then double
-     * that to get the size of pod CIDR block per node.
-     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-     *
-     * This config can disable the doubling of IPs (we still round off to next
-     * power of 2)
-     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-     * overprovisioning is disabled.
-     * 
- * - * - * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; - * - */ - public Builder clearPodCidrOverprovisionConfig() { - bitField0_ = (bitField0_ & ~0x00000020); - podCidrOverprovisionConfig_ = null; - if (podCidrOverprovisionConfigBuilder_ != null) { - podCidrOverprovisionConfigBuilder_.dispose(); - podCidrOverprovisionConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * [PRIVATE FIELD]
-     * Pod CIDR size overprovisioning config for the nodepool.
-     *
-     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-     * of max_pods_per_node is rounded off to next power of 2 and we then double
-     * that to get the size of pod CIDR block per node.
-     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-     *
-     * This config can disable the doubling of IPs (we still round off to next
-     * power of 2)
-     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-     * overprovisioning is disabled.
-     * 
- * - * - * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; - * - */ - public com.google.container.v1beta1.PodCIDROverprovisionConfig.Builder - getPodCidrOverprovisionConfigBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getPodCidrOverprovisionConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * [PRIVATE FIELD]
-     * Pod CIDR size overprovisioning config for the nodepool.
-     *
-     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-     * of max_pods_per_node is rounded off to next power of 2 and we then double
-     * that to get the size of pod CIDR block per node.
-     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-     *
-     * This config can disable the doubling of IPs (we still round off to next
-     * power of 2)
-     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-     * overprovisioning is disabled.
-     * 
- * - * - * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; - * - */ - public com.google.container.v1beta1.PodCIDROverprovisionConfigOrBuilder - getPodCidrOverprovisionConfigOrBuilder() { - if (podCidrOverprovisionConfigBuilder_ != null) { - return podCidrOverprovisionConfigBuilder_.getMessageOrBuilder(); - } else { - return podCidrOverprovisionConfig_ == null - ? com.google.container.v1beta1.PodCIDROverprovisionConfig.getDefaultInstance() - : podCidrOverprovisionConfig_; - } - } - /** - * - * - *
-     * [PRIVATE FIELD]
-     * Pod CIDR size overprovisioning config for the nodepool.
-     *
-     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-     * of max_pods_per_node is rounded off to next power of 2 and we then double
-     * that to get the size of pod CIDR block per node.
-     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-     *
-     * This config can disable the doubling of IPs (we still round off to next
-     * power of 2)
-     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-     * overprovisioning is disabled.
-     * 
- * - * - * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.PodCIDROverprovisionConfig, - com.google.container.v1beta1.PodCIDROverprovisionConfig.Builder, - com.google.container.v1beta1.PodCIDROverprovisionConfigOrBuilder> - getPodCidrOverprovisionConfigFieldBuilder() { - if (podCidrOverprovisionConfigBuilder_ == null) { - podCidrOverprovisionConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.PodCIDROverprovisionConfig, - com.google.container.v1beta1.PodCIDROverprovisionConfig.Builder, - com.google.container.v1beta1.PodCIDROverprovisionConfigOrBuilder>( - getPodCidrOverprovisionConfig(), getParentForChildren(), isClean()); - podCidrOverprovisionConfig_ = null; - } - return podCidrOverprovisionConfigBuilder_; - } - - private java.util.List - additionalNodeNetworkConfigs_ = java.util.Collections.emptyList(); - - private void ensureAdditionalNodeNetworkConfigsIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { - additionalNodeNetworkConfigs_ = - new java.util.ArrayList( - additionalNodeNetworkConfigs_); - bitField0_ |= 0x00000040; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.AdditionalNodeNetworkConfig, - com.google.container.v1beta1.AdditionalNodeNetworkConfig.Builder, - com.google.container.v1beta1.AdditionalNodeNetworkConfigOrBuilder> - additionalNodeNetworkConfigsBuilder_; - - /** - * - * - *
-     * We specify the additional node networks for this node pool using this list.
-     * Each node network corresponds to an additional interface
-     * 
- * - * - * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - public java.util.List - getAdditionalNodeNetworkConfigsList() { - if (additionalNodeNetworkConfigsBuilder_ == null) { - return java.util.Collections.unmodifiableList(additionalNodeNetworkConfigs_); - } else { - return additionalNodeNetworkConfigsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * We specify the additional node networks for this node pool using this list.
-     * Each node network corresponds to an additional interface
-     * 
- * - * - * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - public int getAdditionalNodeNetworkConfigsCount() { - if (additionalNodeNetworkConfigsBuilder_ == null) { - return additionalNodeNetworkConfigs_.size(); - } else { - return additionalNodeNetworkConfigsBuilder_.getCount(); - } - } - /** - * - * - *
-     * We specify the additional node networks for this node pool using this list.
-     * Each node network corresponds to an additional interface
-     * 
- * - * - * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - public com.google.container.v1beta1.AdditionalNodeNetworkConfig getAdditionalNodeNetworkConfigs( - int index) { - if (additionalNodeNetworkConfigsBuilder_ == null) { - return additionalNodeNetworkConfigs_.get(index); - } else { - return additionalNodeNetworkConfigsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * We specify the additional node networks for this node pool using this list.
-     * Each node network corresponds to an additional interface
-     * 
- * - * - * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - public Builder setAdditionalNodeNetworkConfigs( - int index, com.google.container.v1beta1.AdditionalNodeNetworkConfig value) { - if (additionalNodeNetworkConfigsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAdditionalNodeNetworkConfigsIsMutable(); - additionalNodeNetworkConfigs_.set(index, value); - onChanged(); - } else { - additionalNodeNetworkConfigsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * We specify the additional node networks for this node pool using this list.
-     * Each node network corresponds to an additional interface
-     * 
- * - * - * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - public Builder setAdditionalNodeNetworkConfigs( - int index, - com.google.container.v1beta1.AdditionalNodeNetworkConfig.Builder builderForValue) { - if (additionalNodeNetworkConfigsBuilder_ == null) { - ensureAdditionalNodeNetworkConfigsIsMutable(); - additionalNodeNetworkConfigs_.set(index, builderForValue.build()); - onChanged(); - } else { - additionalNodeNetworkConfigsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * We specify the additional node networks for this node pool using this list.
-     * Each node network corresponds to an additional interface
-     * 
- * - * - * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - public Builder addAdditionalNodeNetworkConfigs( - com.google.container.v1beta1.AdditionalNodeNetworkConfig value) { - if (additionalNodeNetworkConfigsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAdditionalNodeNetworkConfigsIsMutable(); - additionalNodeNetworkConfigs_.add(value); - onChanged(); - } else { - additionalNodeNetworkConfigsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * We specify the additional node networks for this node pool using this list.
-     * Each node network corresponds to an additional interface
-     * 
- * - * - * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - public Builder addAdditionalNodeNetworkConfigs( - int index, com.google.container.v1beta1.AdditionalNodeNetworkConfig value) { - if (additionalNodeNetworkConfigsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAdditionalNodeNetworkConfigsIsMutable(); - additionalNodeNetworkConfigs_.add(index, value); - onChanged(); - } else { - additionalNodeNetworkConfigsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * We specify the additional node networks for this node pool using this list.
-     * Each node network corresponds to an additional interface
-     * 
- * - * - * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - public Builder addAdditionalNodeNetworkConfigs( - com.google.container.v1beta1.AdditionalNodeNetworkConfig.Builder builderForValue) { - if (additionalNodeNetworkConfigsBuilder_ == null) { - ensureAdditionalNodeNetworkConfigsIsMutable(); - additionalNodeNetworkConfigs_.add(builderForValue.build()); - onChanged(); - } else { - additionalNodeNetworkConfigsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * We specify the additional node networks for this node pool using this list.
-     * Each node network corresponds to an additional interface
-     * 
- * - * - * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - public Builder addAdditionalNodeNetworkConfigs( - int index, - com.google.container.v1beta1.AdditionalNodeNetworkConfig.Builder builderForValue) { - if (additionalNodeNetworkConfigsBuilder_ == null) { - ensureAdditionalNodeNetworkConfigsIsMutable(); - additionalNodeNetworkConfigs_.add(index, builderForValue.build()); - onChanged(); - } else { - additionalNodeNetworkConfigsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * We specify the additional node networks for this node pool using this list.
-     * Each node network corresponds to an additional interface
-     * 
- * - * - * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - public Builder addAllAdditionalNodeNetworkConfigs( - java.lang.Iterable - values) { - if (additionalNodeNetworkConfigsBuilder_ == null) { - ensureAdditionalNodeNetworkConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, additionalNodeNetworkConfigs_); - onChanged(); - } else { - additionalNodeNetworkConfigsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * We specify the additional node networks for this node pool using this list.
-     * Each node network corresponds to an additional interface
-     * 
- * - * - * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - public Builder clearAdditionalNodeNetworkConfigs() { - if (additionalNodeNetworkConfigsBuilder_ == null) { - additionalNodeNetworkConfigs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - } else { - additionalNodeNetworkConfigsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * We specify the additional node networks for this node pool using this list.
-     * Each node network corresponds to an additional interface
-     * 
- * - * - * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - public Builder removeAdditionalNodeNetworkConfigs(int index) { - if (additionalNodeNetworkConfigsBuilder_ == null) { - ensureAdditionalNodeNetworkConfigsIsMutable(); - additionalNodeNetworkConfigs_.remove(index); - onChanged(); - } else { - additionalNodeNetworkConfigsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * We specify the additional node networks for this node pool using this list.
-     * Each node network corresponds to an additional interface
-     * 
- * - * - * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - public com.google.container.v1beta1.AdditionalNodeNetworkConfig.Builder - getAdditionalNodeNetworkConfigsBuilder(int index) { - return getAdditionalNodeNetworkConfigsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * We specify the additional node networks for this node pool using this list.
-     * Each node network corresponds to an additional interface
-     * 
- * - * - * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - public com.google.container.v1beta1.AdditionalNodeNetworkConfigOrBuilder - getAdditionalNodeNetworkConfigsOrBuilder(int index) { - if (additionalNodeNetworkConfigsBuilder_ == null) { - return additionalNodeNetworkConfigs_.get(index); - } else { - return additionalNodeNetworkConfigsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * We specify the additional node networks for this node pool using this list.
-     * Each node network corresponds to an additional interface
-     * 
- * - * - * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - public java.util.List< - ? extends com.google.container.v1beta1.AdditionalNodeNetworkConfigOrBuilder> - getAdditionalNodeNetworkConfigsOrBuilderList() { - if (additionalNodeNetworkConfigsBuilder_ != null) { - return additionalNodeNetworkConfigsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(additionalNodeNetworkConfigs_); - } - } - /** - * - * - *
-     * We specify the additional node networks for this node pool using this list.
-     * Each node network corresponds to an additional interface
-     * 
- * - * - * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - public com.google.container.v1beta1.AdditionalNodeNetworkConfig.Builder - addAdditionalNodeNetworkConfigsBuilder() { - return getAdditionalNodeNetworkConfigsFieldBuilder() - .addBuilder( - com.google.container.v1beta1.AdditionalNodeNetworkConfig.getDefaultInstance()); - } - /** - * - * - *
-     * We specify the additional node networks for this node pool using this list.
-     * Each node network corresponds to an additional interface
-     * 
- * - * - * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - public com.google.container.v1beta1.AdditionalNodeNetworkConfig.Builder - addAdditionalNodeNetworkConfigsBuilder(int index) { - return getAdditionalNodeNetworkConfigsFieldBuilder() - .addBuilder( - index, com.google.container.v1beta1.AdditionalNodeNetworkConfig.getDefaultInstance()); - } - /** - * - * - *
-     * We specify the additional node networks for this node pool using this list.
-     * Each node network corresponds to an additional interface
-     * 
- * - * - * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - public java.util.List - getAdditionalNodeNetworkConfigsBuilderList() { - return getAdditionalNodeNetworkConfigsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.AdditionalNodeNetworkConfig, - com.google.container.v1beta1.AdditionalNodeNetworkConfig.Builder, - com.google.container.v1beta1.AdditionalNodeNetworkConfigOrBuilder> - getAdditionalNodeNetworkConfigsFieldBuilder() { - if (additionalNodeNetworkConfigsBuilder_ == null) { - additionalNodeNetworkConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.AdditionalNodeNetworkConfig, - com.google.container.v1beta1.AdditionalNodeNetworkConfig.Builder, - com.google.container.v1beta1.AdditionalNodeNetworkConfigOrBuilder>( - additionalNodeNetworkConfigs_, - ((bitField0_ & 0x00000040) != 0), - getParentForChildren(), - isClean()); - additionalNodeNetworkConfigs_ = null; - } - return additionalNodeNetworkConfigsBuilder_; - } - - private java.util.List - additionalPodNetworkConfigs_ = java.util.Collections.emptyList(); - - private void ensureAdditionalPodNetworkConfigsIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { - additionalPodNetworkConfigs_ = - new java.util.ArrayList( - additionalPodNetworkConfigs_); - bitField0_ |= 0x00000080; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.AdditionalPodNetworkConfig, - com.google.container.v1beta1.AdditionalPodNetworkConfig.Builder, - com.google.container.v1beta1.AdditionalPodNetworkConfigOrBuilder> - additionalPodNetworkConfigsBuilder_; - - /** - * - * - *
-     * We specify the additional pod networks for this node pool using this list.
-     * Each pod network corresponds to an additional alias IP range for the node
-     * 
- * - * - * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - public java.util.List - getAdditionalPodNetworkConfigsList() { - if (additionalPodNetworkConfigsBuilder_ == null) { - return java.util.Collections.unmodifiableList(additionalPodNetworkConfigs_); - } else { - return additionalPodNetworkConfigsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * We specify the additional pod networks for this node pool using this list.
-     * Each pod network corresponds to an additional alias IP range for the node
-     * 
- * - * - * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - public int getAdditionalPodNetworkConfigsCount() { - if (additionalPodNetworkConfigsBuilder_ == null) { - return additionalPodNetworkConfigs_.size(); - } else { - return additionalPodNetworkConfigsBuilder_.getCount(); - } - } - /** - * - * - *
-     * We specify the additional pod networks for this node pool using this list.
-     * Each pod network corresponds to an additional alias IP range for the node
-     * 
- * - * - * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - public com.google.container.v1beta1.AdditionalPodNetworkConfig getAdditionalPodNetworkConfigs( - int index) { - if (additionalPodNetworkConfigsBuilder_ == null) { - return additionalPodNetworkConfigs_.get(index); - } else { - return additionalPodNetworkConfigsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * We specify the additional pod networks for this node pool using this list.
-     * Each pod network corresponds to an additional alias IP range for the node
-     * 
- * - * - * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - public Builder setAdditionalPodNetworkConfigs( - int index, com.google.container.v1beta1.AdditionalPodNetworkConfig value) { - if (additionalPodNetworkConfigsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAdditionalPodNetworkConfigsIsMutable(); - additionalPodNetworkConfigs_.set(index, value); - onChanged(); - } else { - additionalPodNetworkConfigsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * We specify the additional pod networks for this node pool using this list.
-     * Each pod network corresponds to an additional alias IP range for the node
-     * 
- * - * - * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - public Builder setAdditionalPodNetworkConfigs( - int index, - com.google.container.v1beta1.AdditionalPodNetworkConfig.Builder builderForValue) { - if (additionalPodNetworkConfigsBuilder_ == null) { - ensureAdditionalPodNetworkConfigsIsMutable(); - additionalPodNetworkConfigs_.set(index, builderForValue.build()); - onChanged(); - } else { - additionalPodNetworkConfigsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * We specify the additional pod networks for this node pool using this list.
-     * Each pod network corresponds to an additional alias IP range for the node
-     * 
- * - * - * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - public Builder addAdditionalPodNetworkConfigs( - com.google.container.v1beta1.AdditionalPodNetworkConfig value) { - if (additionalPodNetworkConfigsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAdditionalPodNetworkConfigsIsMutable(); - additionalPodNetworkConfigs_.add(value); - onChanged(); - } else { - additionalPodNetworkConfigsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * We specify the additional pod networks for this node pool using this list.
-     * Each pod network corresponds to an additional alias IP range for the node
-     * 
- * - * - * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - public Builder addAdditionalPodNetworkConfigs( - int index, com.google.container.v1beta1.AdditionalPodNetworkConfig value) { - if (additionalPodNetworkConfigsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAdditionalPodNetworkConfigsIsMutable(); - additionalPodNetworkConfigs_.add(index, value); - onChanged(); - } else { - additionalPodNetworkConfigsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * We specify the additional pod networks for this node pool using this list.
-     * Each pod network corresponds to an additional alias IP range for the node
-     * 
- * - * - * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - public Builder addAdditionalPodNetworkConfigs( - com.google.container.v1beta1.AdditionalPodNetworkConfig.Builder builderForValue) { - if (additionalPodNetworkConfigsBuilder_ == null) { - ensureAdditionalPodNetworkConfigsIsMutable(); - additionalPodNetworkConfigs_.add(builderForValue.build()); - onChanged(); - } else { - additionalPodNetworkConfigsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * We specify the additional pod networks for this node pool using this list.
-     * Each pod network corresponds to an additional alias IP range for the node
-     * 
- * - * - * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - public Builder addAdditionalPodNetworkConfigs( - int index, - com.google.container.v1beta1.AdditionalPodNetworkConfig.Builder builderForValue) { - if (additionalPodNetworkConfigsBuilder_ == null) { - ensureAdditionalPodNetworkConfigsIsMutable(); - additionalPodNetworkConfigs_.add(index, builderForValue.build()); - onChanged(); - } else { - additionalPodNetworkConfigsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * We specify the additional pod networks for this node pool using this list.
-     * Each pod network corresponds to an additional alias IP range for the node
-     * 
- * - * - * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - public Builder addAllAdditionalPodNetworkConfigs( - java.lang.Iterable - values) { - if (additionalPodNetworkConfigsBuilder_ == null) { - ensureAdditionalPodNetworkConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, additionalPodNetworkConfigs_); - onChanged(); - } else { - additionalPodNetworkConfigsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * We specify the additional pod networks for this node pool using this list.
-     * Each pod network corresponds to an additional alias IP range for the node
-     * 
- * - * - * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - public Builder clearAdditionalPodNetworkConfigs() { - if (additionalPodNetworkConfigsBuilder_ == null) { - additionalPodNetworkConfigs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - } else { - additionalPodNetworkConfigsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * We specify the additional pod networks for this node pool using this list.
-     * Each pod network corresponds to an additional alias IP range for the node
-     * 
- * - * - * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - public Builder removeAdditionalPodNetworkConfigs(int index) { - if (additionalPodNetworkConfigsBuilder_ == null) { - ensureAdditionalPodNetworkConfigsIsMutable(); - additionalPodNetworkConfigs_.remove(index); - onChanged(); - } else { - additionalPodNetworkConfigsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * We specify the additional pod networks for this node pool using this list.
-     * Each pod network corresponds to an additional alias IP range for the node
-     * 
- * - * - * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - public com.google.container.v1beta1.AdditionalPodNetworkConfig.Builder - getAdditionalPodNetworkConfigsBuilder(int index) { - return getAdditionalPodNetworkConfigsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * We specify the additional pod networks for this node pool using this list.
-     * Each pod network corresponds to an additional alias IP range for the node
-     * 
- * - * - * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - public com.google.container.v1beta1.AdditionalPodNetworkConfigOrBuilder - getAdditionalPodNetworkConfigsOrBuilder(int index) { - if (additionalPodNetworkConfigsBuilder_ == null) { - return additionalPodNetworkConfigs_.get(index); - } else { - return additionalPodNetworkConfigsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * We specify the additional pod networks for this node pool using this list.
-     * Each pod network corresponds to an additional alias IP range for the node
-     * 
- * - * - * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - public java.util.List< - ? extends com.google.container.v1beta1.AdditionalPodNetworkConfigOrBuilder> - getAdditionalPodNetworkConfigsOrBuilderList() { - if (additionalPodNetworkConfigsBuilder_ != null) { - return additionalPodNetworkConfigsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(additionalPodNetworkConfigs_); - } - } - /** - * - * - *
-     * We specify the additional pod networks for this node pool using this list.
-     * Each pod network corresponds to an additional alias IP range for the node
-     * 
- * - * - * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - public com.google.container.v1beta1.AdditionalPodNetworkConfig.Builder - addAdditionalPodNetworkConfigsBuilder() { - return getAdditionalPodNetworkConfigsFieldBuilder() - .addBuilder(com.google.container.v1beta1.AdditionalPodNetworkConfig.getDefaultInstance()); - } - /** - * - * - *
-     * We specify the additional pod networks for this node pool using this list.
-     * Each pod network corresponds to an additional alias IP range for the node
-     * 
- * - * - * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - public com.google.container.v1beta1.AdditionalPodNetworkConfig.Builder - addAdditionalPodNetworkConfigsBuilder(int index) { - return getAdditionalPodNetworkConfigsFieldBuilder() - .addBuilder( - index, com.google.container.v1beta1.AdditionalPodNetworkConfig.getDefaultInstance()); - } - /** - * - * - *
-     * We specify the additional pod networks for this node pool using this list.
-     * Each pod network corresponds to an additional alias IP range for the node
-     * 
- * - * - * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - public java.util.List - getAdditionalPodNetworkConfigsBuilderList() { - return getAdditionalPodNetworkConfigsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.AdditionalPodNetworkConfig, - com.google.container.v1beta1.AdditionalPodNetworkConfig.Builder, - com.google.container.v1beta1.AdditionalPodNetworkConfigOrBuilder> - getAdditionalPodNetworkConfigsFieldBuilder() { - if (additionalPodNetworkConfigsBuilder_ == null) { - additionalPodNetworkConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.AdditionalPodNetworkConfig, - com.google.container.v1beta1.AdditionalPodNetworkConfig.Builder, - com.google.container.v1beta1.AdditionalPodNetworkConfigOrBuilder>( - additionalPodNetworkConfigs_, - ((bitField0_ & 0x00000080) != 0), - getParentForChildren(), - isClean()); - additionalPodNetworkConfigs_ = null; - } - return additionalPodNetworkConfigsBuilder_; - } - - private double podIpv4RangeUtilization_; - /** - * - * - *
-     * Output only. [Output only] The utilization of the IPv4 range for the pod.
-     * The ratio is Usage/[Total number of IPs in the secondary range],
-     * Usage=numNodes*numZones*podIPsPerNode.
-     * 
- * - * double pod_ipv4_range_utilization = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The podIpv4RangeUtilization. - */ - @java.lang.Override - public double getPodIpv4RangeUtilization() { - return podIpv4RangeUtilization_; - } - /** - * - * - *
-     * Output only. [Output only] The utilization of the IPv4 range for the pod.
-     * The ratio is Usage/[Total number of IPs in the secondary range],
-     * Usage=numNodes*numZones*podIPsPerNode.
-     * 
- * - * double pod_ipv4_range_utilization = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The podIpv4RangeUtilization to set. - * @return This builder for chaining. - */ - public Builder setPodIpv4RangeUtilization(double value) { - - podIpv4RangeUtilization_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. [Output only] The utilization of the IPv4 range for the pod.
-     * The ratio is Usage/[Total number of IPs in the secondary range],
-     * Usage=numNodes*numZones*podIPsPerNode.
-     * 
- * - * double pod_ipv4_range_utilization = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearPodIpv4RangeUtilization() { - bitField0_ = (bitField0_ & ~0x00000100); - podIpv4RangeUtilization_ = 0D; - 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.NodeNetworkConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodeNetworkConfig) - private static final com.google.container.v1beta1.NodeNetworkConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.NodeNetworkConfig(); - } - - public static com.google.container.v1beta1.NodeNetworkConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeNetworkConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.NodeNetworkConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeNetworkConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeNetworkConfigOrBuilder.java deleted file mode 100644 index 196e15f5a84d..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeNetworkConfigOrBuilder.java +++ /dev/null @@ -1,442 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface NodeNetworkConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodeNetworkConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Input only. Whether to create a new range for pod IPs in this node pool.
-   * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they
-   * are not specified.
-   *
-   * If neither `create_pod_range` or `pod_range` are specified, the
-   * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is
-   * used.
-   *
-   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-   *
-   * This field cannot be changed after the node pool has been created.
-   * 
- * - * bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * @return The createPodRange. - */ - boolean getCreatePodRange(); - - /** - * - * - *
-   * The ID of the secondary range for pod IPs.
-   * If `create_pod_range` is true, this ID is used for the new range.
-   * If `create_pod_range` is false, uses an existing secondary range with this
-   * ID.
-   *
-   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-   *
-   * This field cannot be changed after the node pool has been created.
-   * 
- * - * string pod_range = 5; - * - * @return The podRange. - */ - java.lang.String getPodRange(); - /** - * - * - *
-   * The ID of the secondary range for pod IPs.
-   * If `create_pod_range` is true, this ID is used for the new range.
-   * If `create_pod_range` is false, uses an existing secondary range with this
-   * ID.
-   *
-   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-   *
-   * This field cannot be changed after the node pool has been created.
-   * 
- * - * string pod_range = 5; - * - * @return The bytes for podRange. - */ - com.google.protobuf.ByteString getPodRangeBytes(); - - /** - * - * - *
-   * The IP address range for pod IPs in this node pool.
-   *
-   * Only applicable if `create_pod_range` is true.
-   *
-   * Set to blank to have a range chosen with the default size.
-   *
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   *
-   * Set to a
-   * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
-   *
-   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-   *
-   * This field cannot be changed after the node pool has been created.
-   * 
- * - * string pod_ipv4_cidr_block = 6; - * - * @return The podIpv4CidrBlock. - */ - java.lang.String getPodIpv4CidrBlock(); - /** - * - * - *
-   * The IP address range for pod IPs in this node pool.
-   *
-   * Only applicable if `create_pod_range` is true.
-   *
-   * Set to blank to have a range chosen with the default size.
-   *
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   *
-   * Set to a
-   * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
-   *
-   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
-   *
-   * This field cannot be changed after the node pool has been created.
-   * 
- * - * string pod_ipv4_cidr_block = 6; - * - * @return The bytes for podIpv4CidrBlock. - */ - com.google.protobuf.ByteString getPodIpv4CidrBlockBytes(); - - /** - * - * - *
-   * Whether nodes have internal IP addresses only.
-   * If enable_private_nodes is not specified, then the value is derived from
-   * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
-   * 
- * - * optional bool enable_private_nodes = 9; - * - * @return Whether the enablePrivateNodes field is set. - */ - boolean hasEnablePrivateNodes(); - /** - * - * - *
-   * Whether nodes have internal IP addresses only.
-   * If enable_private_nodes is not specified, then the value is derived from
-   * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
-   * 
- * - * optional bool enable_private_nodes = 9; - * - * @return The enablePrivateNodes. - */ - boolean getEnablePrivateNodes(); - - /** - * - * - *
-   * Network bandwidth tier configuration.
-   * 
- * - * - * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - * - * - * @return Whether the networkPerformanceConfig field is set. - */ - boolean hasNetworkPerformanceConfig(); - /** - * - * - *
-   * Network bandwidth tier configuration.
-   * 
- * - * - * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - * - * - * @return The networkPerformanceConfig. - */ - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig - getNetworkPerformanceConfig(); - /** - * - * - *
-   * Network bandwidth tier configuration.
-   * 
- * - * - * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - * - */ - com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfigOrBuilder - getNetworkPerformanceConfigOrBuilder(); - - /** - * - * - *
-   * [PRIVATE FIELD]
-   * Pod CIDR size overprovisioning config for the nodepool.
-   *
-   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-   * of max_pods_per_node is rounded off to next power of 2 and we then double
-   * that to get the size of pod CIDR block per node.
-   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-   *
-   * This config can disable the doubling of IPs (we still round off to next
-   * power of 2)
-   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-   * overprovisioning is disabled.
-   * 
- * - * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; - * - * - * @return Whether the podCidrOverprovisionConfig field is set. - */ - boolean hasPodCidrOverprovisionConfig(); - /** - * - * - *
-   * [PRIVATE FIELD]
-   * Pod CIDR size overprovisioning config for the nodepool.
-   *
-   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-   * of max_pods_per_node is rounded off to next power of 2 and we then double
-   * that to get the size of pod CIDR block per node.
-   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-   *
-   * This config can disable the doubling of IPs (we still round off to next
-   * power of 2)
-   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-   * overprovisioning is disabled.
-   * 
- * - * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; - * - * - * @return The podCidrOverprovisionConfig. - */ - com.google.container.v1beta1.PodCIDROverprovisionConfig getPodCidrOverprovisionConfig(); - /** - * - * - *
-   * [PRIVATE FIELD]
-   * Pod CIDR size overprovisioning config for the nodepool.
-   *
-   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
-   * of max_pods_per_node is rounded off to next power of 2 and we then double
-   * that to get the size of pod CIDR block per node.
-   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
-   *
-   * This config can disable the doubling of IPs (we still round off to next
-   * power of 2)
-   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
-   * overprovisioning is disabled.
-   * 
- * - * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; - * - */ - com.google.container.v1beta1.PodCIDROverprovisionConfigOrBuilder - getPodCidrOverprovisionConfigOrBuilder(); - - /** - * - * - *
-   * We specify the additional node networks for this node pool using this list.
-   * Each node network corresponds to an additional interface
-   * 
- * - * - * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - java.util.List - getAdditionalNodeNetworkConfigsList(); - /** - * - * - *
-   * We specify the additional node networks for this node pool using this list.
-   * Each node network corresponds to an additional interface
-   * 
- * - * - * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - com.google.container.v1beta1.AdditionalNodeNetworkConfig getAdditionalNodeNetworkConfigs( - int index); - /** - * - * - *
-   * We specify the additional node networks for this node pool using this list.
-   * Each node network corresponds to an additional interface
-   * 
- * - * - * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - int getAdditionalNodeNetworkConfigsCount(); - /** - * - * - *
-   * We specify the additional node networks for this node pool using this list.
-   * Each node network corresponds to an additional interface
-   * 
- * - * - * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - java.util.List - getAdditionalNodeNetworkConfigsOrBuilderList(); - /** - * - * - *
-   * We specify the additional node networks for this node pool using this list.
-   * Each node network corresponds to an additional interface
-   * 
- * - * - * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * - */ - com.google.container.v1beta1.AdditionalNodeNetworkConfigOrBuilder - getAdditionalNodeNetworkConfigsOrBuilder(int index); - - /** - * - * - *
-   * We specify the additional pod networks for this node pool using this list.
-   * Each pod network corresponds to an additional alias IP range for the node
-   * 
- * - * - * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - java.util.List - getAdditionalPodNetworkConfigsList(); - /** - * - * - *
-   * We specify the additional pod networks for this node pool using this list.
-   * Each pod network corresponds to an additional alias IP range for the node
-   * 
- * - * - * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - com.google.container.v1beta1.AdditionalPodNetworkConfig getAdditionalPodNetworkConfigs(int index); - /** - * - * - *
-   * We specify the additional pod networks for this node pool using this list.
-   * Each pod network corresponds to an additional alias IP range for the node
-   * 
- * - * - * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - int getAdditionalPodNetworkConfigsCount(); - /** - * - * - *
-   * We specify the additional pod networks for this node pool using this list.
-   * Each pod network corresponds to an additional alias IP range for the node
-   * 
- * - * - * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - java.util.List - getAdditionalPodNetworkConfigsOrBuilderList(); - /** - * - * - *
-   * We specify the additional pod networks for this node pool using this list.
-   * Each pod network corresponds to an additional alias IP range for the node
-   * 
- * - * - * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * - */ - com.google.container.v1beta1.AdditionalPodNetworkConfigOrBuilder - getAdditionalPodNetworkConfigsOrBuilder(int index); - - /** - * - * - *
-   * Output only. [Output only] The utilization of the IPv4 range for the pod.
-   * The ratio is Usage/[Total number of IPs in the secondary range],
-   * Usage=numNodes*numZones*podIPsPerNode.
-   * 
- * - * double pod_ipv4_range_utilization = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The podIpv4RangeUtilization. - */ - double getPodIpv4RangeUtilization(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePool.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePool.java deleted file mode 100644 index 6f1623c10ca4..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePool.java +++ /dev/null @@ -1,11953 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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.emptyList(); - selfLink_ = ""; - version_ = ""; - instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - status_ = 0; - statusMessage_ = ""; - conditions_ = java.util.Collections.emptyList(); - etag_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NodePool(); - } - - 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(); - - /** - * - * - *
-     * Update strategy of the node pool.
-     * 
- * - * optional .google.container.v1beta1.NodePoolUpdateStrategy strategy = 3; - * - * @return Whether the strategy field is set. - */ - boolean hasStrategy(); - /** - * - * - *
-     * Update strategy of the node pool.
-     * 
- * - * optional .google.container.v1beta1.NodePoolUpdateStrategy strategy = 3; - * - * @return The enum numeric value on the wire for strategy. - */ - int getStrategyValue(); - /** - * - * - *
-     * Update strategy of the node pool.
-     * 
- * - * optional .google.container.v1beta1.NodePoolUpdateStrategy strategy = 3; - * - * @return The strategy. - */ - com.google.container.v1beta1.NodePoolUpdateStrategy getStrategy(); - - /** - * - * - *
-     * Settings for blue-green upgrade strategy.
-     * 
- * - * optional .google.container.v1beta1.BlueGreenSettings blue_green_settings = 4; - * - * @return Whether the blueGreenSettings field is set. - */ - boolean hasBlueGreenSettings(); - /** - * - * - *
-     * Settings for blue-green upgrade strategy.
-     * 
- * - * optional .google.container.v1beta1.BlueGreenSettings blue_green_settings = 4; - * - * @return The blueGreenSettings. - */ - com.google.container.v1beta1.BlueGreenSettings getBlueGreenSettings(); - /** - * - * - *
-     * Settings for blue-green upgrade strategy.
-     * 
- * - * optional .google.container.v1beta1.BlueGreenSettings blue_green_settings = 4; - */ - com.google.container.v1beta1.BlueGreenSettingsOrBuilder getBlueGreenSettingsOrBuilder(); - } - /** - * - * - *
-   * 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.
-   *
-   * These upgrade settings configure the upgrade strategy for the node pool.
-   * Use strategy to switch between the strategies applied to the node pool.
-   *
-   * If the strategy is SURGE, use max_surge and max_unavailable to control
-   * the level of parallelism and the level of disruption caused by upgrade.
-   * 1. 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.
-   * 2. maxUnavailable controls the number of nodes that can be simultaneously
-   * unavailable.
-   * 3. (maxUnavailable + maxSurge) determines the level of parallelism (how
-   * many nodes are being upgraded at the same time).
-   *
-   * If the strategy is BLUE_GREEN, use blue_green_settings to configure the
-   * blue-green upgrade related settings.
-   * 1. standard_rollout_policy is the default policy. The policy is used to
-   * control the way blue pool gets drained. The draining is executed in the
-   * batch mode. The batch size could be specified as either percentage of the
-   * node pool size or the number of nodes. batch_soak_duration is the soak
-   * time after each batch gets drained.
-   * 2. node_pool_soak_duration is the soak time after all blue nodes are
-   * drained. After this period, the blue pool nodes will be deleted.
-   * 
- * - * 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() { - strategy_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpgradeSettings(); - } - - 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); - } - - private int bitField0_; - public static final int MAX_SURGE_FIELD_NUMBER = 1; - private int maxSurge_ = 0; - /** - * - * - *
-     * 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_ = 0; - /** - * - * - *
-     * 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_; - } - - public static final int STRATEGY_FIELD_NUMBER = 3; - private int strategy_ = 0; - /** - * - * - *
-     * Update strategy of the node pool.
-     * 
- * - * optional .google.container.v1beta1.NodePoolUpdateStrategy strategy = 3; - * - * @return Whether the strategy field is set. - */ - @java.lang.Override - public boolean hasStrategy() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Update strategy of the node pool.
-     * 
- * - * optional .google.container.v1beta1.NodePoolUpdateStrategy strategy = 3; - * - * @return The enum numeric value on the wire for strategy. - */ - @java.lang.Override - public int getStrategyValue() { - return strategy_; - } - /** - * - * - *
-     * Update strategy of the node pool.
-     * 
- * - * optional .google.container.v1beta1.NodePoolUpdateStrategy strategy = 3; - * - * @return The strategy. - */ - @java.lang.Override - public com.google.container.v1beta1.NodePoolUpdateStrategy getStrategy() { - com.google.container.v1beta1.NodePoolUpdateStrategy result = - com.google.container.v1beta1.NodePoolUpdateStrategy.forNumber(strategy_); - return result == null - ? com.google.container.v1beta1.NodePoolUpdateStrategy.UNRECOGNIZED - : result; - } - - public static final int BLUE_GREEN_SETTINGS_FIELD_NUMBER = 4; - private com.google.container.v1beta1.BlueGreenSettings blueGreenSettings_; - /** - * - * - *
-     * Settings for blue-green upgrade strategy.
-     * 
- * - * optional .google.container.v1beta1.BlueGreenSettings blue_green_settings = 4; - * - * @return Whether the blueGreenSettings field is set. - */ - @java.lang.Override - public boolean hasBlueGreenSettings() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * Settings for blue-green upgrade strategy.
-     * 
- * - * optional .google.container.v1beta1.BlueGreenSettings blue_green_settings = 4; - * - * @return The blueGreenSettings. - */ - @java.lang.Override - public com.google.container.v1beta1.BlueGreenSettings getBlueGreenSettings() { - return blueGreenSettings_ == null - ? com.google.container.v1beta1.BlueGreenSettings.getDefaultInstance() - : blueGreenSettings_; - } - /** - * - * - *
-     * Settings for blue-green upgrade strategy.
-     * 
- * - * optional .google.container.v1beta1.BlueGreenSettings blue_green_settings = 4; - */ - @java.lang.Override - public com.google.container.v1beta1.BlueGreenSettingsOrBuilder getBlueGreenSettingsOrBuilder() { - return blueGreenSettings_ == null - ? com.google.container.v1beta1.BlueGreenSettings.getDefaultInstance() - : blueGreenSettings_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeEnum(3, strategy_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(4, getBlueGreenSettings()); - } - getUnknownFields().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_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, strategy_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getBlueGreenSettings()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (hasStrategy() != other.hasStrategy()) return false; - if (hasStrategy()) { - if (strategy_ != other.strategy_) return false; - } - if (hasBlueGreenSettings() != other.hasBlueGreenSettings()) return false; - if (hasBlueGreenSettings()) { - if (!getBlueGreenSettings().equals(other.getBlueGreenSettings())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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(); - if (hasStrategy()) { - hash = (37 * hash) + STRATEGY_FIELD_NUMBER; - hash = (53 * hash) + strategy_; - } - if (hasBlueGreenSettings()) { - hash = (37 * hash) + BLUE_GREEN_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getBlueGreenSettings().hashCode(); - } - hash = (29 * hash) + getUnknownFields().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.
-     *
-     * These upgrade settings configure the upgrade strategy for the node pool.
-     * Use strategy to switch between the strategies applied to the node pool.
-     *
-     * If the strategy is SURGE, use max_surge and max_unavailable to control
-     * the level of parallelism and the level of disruption caused by upgrade.
-     * 1. 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.
-     * 2. maxUnavailable controls the number of nodes that can be simultaneously
-     * unavailable.
-     * 3. (maxUnavailable + maxSurge) determines the level of parallelism (how
-     * many nodes are being upgraded at the same time).
-     *
-     * If the strategy is BLUE_GREEN, use blue_green_settings to configure the
-     * blue-green upgrade related settings.
-     * 1. standard_rollout_policy is the default policy. The policy is used to
-     * control the way blue pool gets drained. The draining is executed in the
-     * batch mode. The batch size could be specified as either percentage of the
-     * node pool size or the number of nodes. batch_soak_duration is the soak
-     * time after each batch gets drained.
-     * 2. node_pool_soak_duration is the soak time after all blue nodes are
-     * drained. After this period, the blue pool nodes will be deleted.
-     * 
- * - * 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) { - getBlueGreenSettingsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - maxSurge_ = 0; - maxUnavailable_ = 0; - strategy_ = 0; - blueGreenSettings_ = null; - if (blueGreenSettingsBuilder_ != null) { - blueGreenSettingsBuilder_.dispose(); - blueGreenSettingsBuilder_ = 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_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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.NodePool.UpgradeSettings result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.maxSurge_ = maxSurge_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.maxUnavailable_ = maxUnavailable_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.strategy_ = strategy_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.blueGreenSettings_ = - blueGreenSettingsBuilder_ == null - ? blueGreenSettings_ - : blueGreenSettingsBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @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()); - } - if (other.hasStrategy()) { - setStrategy(other.getStrategy()); - } - if (other.hasBlueGreenSettings()) { - mergeBlueGreenSettings(other.getBlueGreenSettings()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - maxSurge_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - maxUnavailable_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - strategy_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - input.readMessage( - getBlueGreenSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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() { - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000002; - 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() { - bitField0_ = (bitField0_ & ~0x00000002); - maxUnavailable_ = 0; - onChanged(); - return this; - } - - private int strategy_ = 0; - /** - * - * - *
-       * Update strategy of the node pool.
-       * 
- * - * optional .google.container.v1beta1.NodePoolUpdateStrategy strategy = 3; - * - * @return Whether the strategy field is set. - */ - @java.lang.Override - public boolean hasStrategy() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-       * Update strategy of the node pool.
-       * 
- * - * optional .google.container.v1beta1.NodePoolUpdateStrategy strategy = 3; - * - * @return The enum numeric value on the wire for strategy. - */ - @java.lang.Override - public int getStrategyValue() { - return strategy_; - } - /** - * - * - *
-       * Update strategy of the node pool.
-       * 
- * - * optional .google.container.v1beta1.NodePoolUpdateStrategy strategy = 3; - * - * @param value The enum numeric value on the wire for strategy to set. - * @return This builder for chaining. - */ - public Builder setStrategyValue(int value) { - strategy_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-       * Update strategy of the node pool.
-       * 
- * - * optional .google.container.v1beta1.NodePoolUpdateStrategy strategy = 3; - * - * @return The strategy. - */ - @java.lang.Override - public com.google.container.v1beta1.NodePoolUpdateStrategy getStrategy() { - com.google.container.v1beta1.NodePoolUpdateStrategy result = - com.google.container.v1beta1.NodePoolUpdateStrategy.forNumber(strategy_); - return result == null - ? com.google.container.v1beta1.NodePoolUpdateStrategy.UNRECOGNIZED - : result; - } - /** - * - * - *
-       * Update strategy of the node pool.
-       * 
- * - * optional .google.container.v1beta1.NodePoolUpdateStrategy strategy = 3; - * - * @param value The strategy to set. - * @return This builder for chaining. - */ - public Builder setStrategy(com.google.container.v1beta1.NodePoolUpdateStrategy value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - strategy_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * Update strategy of the node pool.
-       * 
- * - * optional .google.container.v1beta1.NodePoolUpdateStrategy strategy = 3; - * - * @return This builder for chaining. - */ - public Builder clearStrategy() { - bitField0_ = (bitField0_ & ~0x00000004); - strategy_ = 0; - onChanged(); - return this; - } - - private com.google.container.v1beta1.BlueGreenSettings blueGreenSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.BlueGreenSettings, - com.google.container.v1beta1.BlueGreenSettings.Builder, - com.google.container.v1beta1.BlueGreenSettingsOrBuilder> - blueGreenSettingsBuilder_; - /** - * - * - *
-       * Settings for blue-green upgrade strategy.
-       * 
- * - * optional .google.container.v1beta1.BlueGreenSettings blue_green_settings = 4; - * - * @return Whether the blueGreenSettings field is set. - */ - public boolean hasBlueGreenSettings() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-       * Settings for blue-green upgrade strategy.
-       * 
- * - * optional .google.container.v1beta1.BlueGreenSettings blue_green_settings = 4; - * - * @return The blueGreenSettings. - */ - public com.google.container.v1beta1.BlueGreenSettings getBlueGreenSettings() { - if (blueGreenSettingsBuilder_ == null) { - return blueGreenSettings_ == null - ? com.google.container.v1beta1.BlueGreenSettings.getDefaultInstance() - : blueGreenSettings_; - } else { - return blueGreenSettingsBuilder_.getMessage(); - } - } - /** - * - * - *
-       * Settings for blue-green upgrade strategy.
-       * 
- * - * optional .google.container.v1beta1.BlueGreenSettings blue_green_settings = 4; - */ - public Builder setBlueGreenSettings(com.google.container.v1beta1.BlueGreenSettings value) { - if (blueGreenSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - blueGreenSettings_ = value; - } else { - blueGreenSettingsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-       * Settings for blue-green upgrade strategy.
-       * 
- * - * optional .google.container.v1beta1.BlueGreenSettings blue_green_settings = 4; - */ - public Builder setBlueGreenSettings( - com.google.container.v1beta1.BlueGreenSettings.Builder builderForValue) { - if (blueGreenSettingsBuilder_ == null) { - blueGreenSettings_ = builderForValue.build(); - } else { - blueGreenSettingsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-       * Settings for blue-green upgrade strategy.
-       * 
- * - * optional .google.container.v1beta1.BlueGreenSettings blue_green_settings = 4; - */ - public Builder mergeBlueGreenSettings(com.google.container.v1beta1.BlueGreenSettings value) { - if (blueGreenSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && blueGreenSettings_ != null - && blueGreenSettings_ - != com.google.container.v1beta1.BlueGreenSettings.getDefaultInstance()) { - getBlueGreenSettingsBuilder().mergeFrom(value); - } else { - blueGreenSettings_ = value; - } - } else { - blueGreenSettingsBuilder_.mergeFrom(value); - } - if (blueGreenSettings_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - return this; - } - /** - * - * - *
-       * Settings for blue-green upgrade strategy.
-       * 
- * - * optional .google.container.v1beta1.BlueGreenSettings blue_green_settings = 4; - */ - public Builder clearBlueGreenSettings() { - bitField0_ = (bitField0_ & ~0x00000008); - blueGreenSettings_ = null; - if (blueGreenSettingsBuilder_ != null) { - blueGreenSettingsBuilder_.dispose(); - blueGreenSettingsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-       * Settings for blue-green upgrade strategy.
-       * 
- * - * optional .google.container.v1beta1.BlueGreenSettings blue_green_settings = 4; - */ - public com.google.container.v1beta1.BlueGreenSettings.Builder getBlueGreenSettingsBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getBlueGreenSettingsFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * Settings for blue-green upgrade strategy.
-       * 
- * - * optional .google.container.v1beta1.BlueGreenSettings blue_green_settings = 4; - */ - public com.google.container.v1beta1.BlueGreenSettingsOrBuilder - getBlueGreenSettingsOrBuilder() { - if (blueGreenSettingsBuilder_ != null) { - return blueGreenSettingsBuilder_.getMessageOrBuilder(); - } else { - return blueGreenSettings_ == null - ? com.google.container.v1beta1.BlueGreenSettings.getDefaultInstance() - : blueGreenSettings_; - } - } - /** - * - * - *
-       * Settings for blue-green upgrade strategy.
-       * 
- * - * optional .google.container.v1beta1.BlueGreenSettings blue_green_settings = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.BlueGreenSettings, - com.google.container.v1beta1.BlueGreenSettings.Builder, - com.google.container.v1beta1.BlueGreenSettingsOrBuilder> - getBlueGreenSettingsFieldBuilder() { - if (blueGreenSettingsBuilder_ == null) { - blueGreenSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.BlueGreenSettings, - com.google.container.v1beta1.BlueGreenSettings.Builder, - com.google.container.v1beta1.BlueGreenSettingsOrBuilder>( - getBlueGreenSettings(), getParentForChildren(), isClean()); - blueGreenSettings_ = null; - } - return blueGreenSettingsBuilder_; - } - - @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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1beta1.NodePool.UpgradeSettings getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface UpdateInfoOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodePool.UpdateInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Information of a blue-green upgrade.
-     * 
- * - * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - * - * @return Whether the blueGreenInfo field is set. - */ - boolean hasBlueGreenInfo(); - /** - * - * - *
-     * Information of a blue-green upgrade.
-     * 
- * - * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - * - * @return The blueGreenInfo. - */ - com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo getBlueGreenInfo(); - /** - * - * - *
-     * Information of a blue-green upgrade.
-     * 
- * - * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - */ - com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfoOrBuilder - getBlueGreenInfoOrBuilder(); - } - /** - * - * - *
-   * UpdateInfo contains resource (instance groups, etc), status and other
-   * intermediate information relevant to a node pool upgrade.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.NodePool.UpdateInfo} - */ - public static final class UpdateInfo extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodePool.UpdateInfo) - UpdateInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpdateInfo.newBuilder() to construct. - private UpdateInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpdateInfo() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateInfo(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodePool_UpdateInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodePool_UpdateInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.NodePool.UpdateInfo.class, - com.google.container.v1beta1.NodePool.UpdateInfo.Builder.class); - } - - public interface BlueGreenInfoOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-       * Current blue-green upgrade phase.
-       * 
- * - * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; - * - * @return The enum numeric value on the wire for phase. - */ - int getPhaseValue(); - /** - * - * - *
-       * Current blue-green upgrade phase.
-       * 
- * - * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; - * - * @return The phase. - */ - com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase getPhase(); - - /** - * - * - *
-       * The resource URLs of the [managed instance groups]
-       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-       * associated with blue pool.
-       * 
- * - * repeated string blue_instance_group_urls = 2; - * - * @return A list containing the blueInstanceGroupUrls. - */ - java.util.List getBlueInstanceGroupUrlsList(); - /** - * - * - *
-       * The resource URLs of the [managed instance groups]
-       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-       * associated with blue pool.
-       * 
- * - * repeated string blue_instance_group_urls = 2; - * - * @return The count of blueInstanceGroupUrls. - */ - int getBlueInstanceGroupUrlsCount(); - /** - * - * - *
-       * The resource URLs of the [managed instance groups]
-       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-       * associated with blue pool.
-       * 
- * - * repeated string blue_instance_group_urls = 2; - * - * @param index The index of the element to return. - * @return The blueInstanceGroupUrls at the given index. - */ - java.lang.String getBlueInstanceGroupUrls(int index); - /** - * - * - *
-       * The resource URLs of the [managed instance groups]
-       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-       * associated with blue pool.
-       * 
- * - * repeated string blue_instance_group_urls = 2; - * - * @param index The index of the value to return. - * @return The bytes of the blueInstanceGroupUrls at the given index. - */ - com.google.protobuf.ByteString getBlueInstanceGroupUrlsBytes(int index); - - /** - * - * - *
-       * The resource URLs of the [managed instance groups]
-       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-       * associated with green pool.
-       * 
- * - * repeated string green_instance_group_urls = 3; - * - * @return A list containing the greenInstanceGroupUrls. - */ - java.util.List getGreenInstanceGroupUrlsList(); - /** - * - * - *
-       * The resource URLs of the [managed instance groups]
-       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-       * associated with green pool.
-       * 
- * - * repeated string green_instance_group_urls = 3; - * - * @return The count of greenInstanceGroupUrls. - */ - int getGreenInstanceGroupUrlsCount(); - /** - * - * - *
-       * The resource URLs of the [managed instance groups]
-       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-       * associated with green pool.
-       * 
- * - * repeated string green_instance_group_urls = 3; - * - * @param index The index of the element to return. - * @return The greenInstanceGroupUrls at the given index. - */ - java.lang.String getGreenInstanceGroupUrls(int index); - /** - * - * - *
-       * The resource URLs of the [managed instance groups]
-       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-       * associated with green pool.
-       * 
- * - * repeated string green_instance_group_urls = 3; - * - * @param index The index of the value to return. - * @return The bytes of the greenInstanceGroupUrls at the given index. - */ - com.google.protobuf.ByteString getGreenInstanceGroupUrlsBytes(int index); - - /** - * - * - *
-       * Time to start deleting blue pool to complete blue-green upgrade,
-       * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-       * 
- * - * string blue_pool_deletion_start_time = 4; - * - * @return The bluePoolDeletionStartTime. - */ - java.lang.String getBluePoolDeletionStartTime(); - /** - * - * - *
-       * Time to start deleting blue pool to complete blue-green upgrade,
-       * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-       * 
- * - * string blue_pool_deletion_start_time = 4; - * - * @return The bytes for bluePoolDeletionStartTime. - */ - com.google.protobuf.ByteString getBluePoolDeletionStartTimeBytes(); - - /** - * - * - *
-       * Version of green pool.
-       * 
- * - * string green_pool_version = 5; - * - * @return The greenPoolVersion. - */ - java.lang.String getGreenPoolVersion(); - /** - * - * - *
-       * Version of green pool.
-       * 
- * - * string green_pool_version = 5; - * - * @return The bytes for greenPoolVersion. - */ - com.google.protobuf.ByteString getGreenPoolVersionBytes(); - } - /** - * - * - *
-     * Information relevant to blue-green upgrade.
-     * 
- * - * Protobuf type {@code google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo} - */ - public static final class BlueGreenInfo extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo) - BlueGreenInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use BlueGreenInfo.newBuilder() to construct. - private BlueGreenInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private BlueGreenInfo() { - phase_ = 0; - blueInstanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - greenInstanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bluePoolDeletionStartTime_ = ""; - greenPoolVersion_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BlueGreenInfo(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodePool_UpdateInfo_BlueGreenInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodePool_UpdateInfo_BlueGreenInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.class, - com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Builder.class); - } - - /** - * - * - *
-       * Phase represents the different stages blue-green upgrade is running in.
-       * 
- * - * Protobuf enum {@code google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase} - */ - public enum Phase implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-         * Unspecified phase.
-         * 
- * - * PHASE_UNSPECIFIED = 0; - */ - PHASE_UNSPECIFIED(0), - /** - * - * - *
-         * blue-green upgrade has been initiated.
-         * 
- * - * UPDATE_STARTED = 1; - */ - UPDATE_STARTED(1), - /** - * - * - *
-         * Start creating green pool nodes.
-         * 
- * - * CREATING_GREEN_POOL = 2; - */ - CREATING_GREEN_POOL(2), - /** - * - * - *
-         * Start cordoning blue pool nodes.
-         * 
- * - * CORDONING_BLUE_POOL = 3; - */ - CORDONING_BLUE_POOL(3), - /** - * - * - *
-         * Start waiting after cordoning the blue pool and before draining it.
-         * 
- * - * WAITING_TO_DRAIN_BLUE_POOL = 8; - */ - WAITING_TO_DRAIN_BLUE_POOL(8), - /** - * - * - *
-         * Start draining blue pool nodes.
-         * 
- * - * DRAINING_BLUE_POOL = 4; - */ - DRAINING_BLUE_POOL(4), - /** - * - * - *
-         * Start soaking time after draining entire blue pool.
-         * 
- * - * NODE_POOL_SOAKING = 5; - */ - NODE_POOL_SOAKING(5), - /** - * - * - *
-         * Start deleting blue nodes.
-         * 
- * - * DELETING_BLUE_POOL = 6; - */ - DELETING_BLUE_POOL(6), - /** - * - * - *
-         * Rollback has been initiated.
-         * 
- * - * ROLLBACK_STARTED = 7; - */ - ROLLBACK_STARTED(7), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-         * Unspecified phase.
-         * 
- * - * PHASE_UNSPECIFIED = 0; - */ - public static final int PHASE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-         * blue-green upgrade has been initiated.
-         * 
- * - * UPDATE_STARTED = 1; - */ - public static final int UPDATE_STARTED_VALUE = 1; - /** - * - * - *
-         * Start creating green pool nodes.
-         * 
- * - * CREATING_GREEN_POOL = 2; - */ - public static final int CREATING_GREEN_POOL_VALUE = 2; - /** - * - * - *
-         * Start cordoning blue pool nodes.
-         * 
- * - * CORDONING_BLUE_POOL = 3; - */ - public static final int CORDONING_BLUE_POOL_VALUE = 3; - /** - * - * - *
-         * Start waiting after cordoning the blue pool and before draining it.
-         * 
- * - * WAITING_TO_DRAIN_BLUE_POOL = 8; - */ - public static final int WAITING_TO_DRAIN_BLUE_POOL_VALUE = 8; - /** - * - * - *
-         * Start draining blue pool nodes.
-         * 
- * - * DRAINING_BLUE_POOL = 4; - */ - public static final int DRAINING_BLUE_POOL_VALUE = 4; - /** - * - * - *
-         * Start soaking time after draining entire blue pool.
-         * 
- * - * NODE_POOL_SOAKING = 5; - */ - public static final int NODE_POOL_SOAKING_VALUE = 5; - /** - * - * - *
-         * Start deleting blue nodes.
-         * 
- * - * DELETING_BLUE_POOL = 6; - */ - public static final int DELETING_BLUE_POOL_VALUE = 6; - /** - * - * - *
-         * Rollback has been initiated.
-         * 
- * - * ROLLBACK_STARTED = 7; - */ - public static final int ROLLBACK_STARTED_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 Phase 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 Phase forNumber(int value) { - switch (value) { - case 0: - return PHASE_UNSPECIFIED; - case 1: - return UPDATE_STARTED; - case 2: - return CREATING_GREEN_POOL; - case 3: - return CORDONING_BLUE_POOL; - case 8: - return WAITING_TO_DRAIN_BLUE_POOL; - case 4: - return DRAINING_BLUE_POOL; - case 5: - return NODE_POOL_SOAKING; - case 6: - return DELETING_BLUE_POOL; - case 7: - return ROLLBACK_STARTED; - 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 Phase findValueByNumber(int number) { - return Phase.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.UpdateInfo.BlueGreenInfo.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final Phase[] VALUES = values(); - - public static Phase 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 Phase(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase) - } - - public static final int PHASE_FIELD_NUMBER = 1; - private int phase_ = 0; - /** - * - * - *
-       * Current blue-green upgrade phase.
-       * 
- * - * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; - * - * @return The enum numeric value on the wire for phase. - */ - @java.lang.Override - public int getPhaseValue() { - return phase_; - } - /** - * - * - *
-       * Current blue-green upgrade phase.
-       * 
- * - * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; - * - * @return The phase. - */ - @java.lang.Override - public com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase getPhase() { - com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase result = - com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase.forNumber(phase_); - return result == null - ? com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase.UNRECOGNIZED - : result; - } - - public static final int BLUE_INSTANCE_GROUP_URLS_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList blueInstanceGroupUrls_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-       * The resource URLs of the [managed instance groups]
-       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-       * associated with blue pool.
-       * 
- * - * repeated string blue_instance_group_urls = 2; - * - * @return A list containing the blueInstanceGroupUrls. - */ - public com.google.protobuf.ProtocolStringList getBlueInstanceGroupUrlsList() { - return blueInstanceGroupUrls_; - } - /** - * - * - *
-       * The resource URLs of the [managed instance groups]
-       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-       * associated with blue pool.
-       * 
- * - * repeated string blue_instance_group_urls = 2; - * - * @return The count of blueInstanceGroupUrls. - */ - public int getBlueInstanceGroupUrlsCount() { - return blueInstanceGroupUrls_.size(); - } - /** - * - * - *
-       * The resource URLs of the [managed instance groups]
-       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-       * associated with blue pool.
-       * 
- * - * repeated string blue_instance_group_urls = 2; - * - * @param index The index of the element to return. - * @return The blueInstanceGroupUrls at the given index. - */ - public java.lang.String getBlueInstanceGroupUrls(int index) { - return blueInstanceGroupUrls_.get(index); - } - /** - * - * - *
-       * The resource URLs of the [managed instance groups]
-       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-       * associated with blue pool.
-       * 
- * - * repeated string blue_instance_group_urls = 2; - * - * @param index The index of the value to return. - * @return The bytes of the blueInstanceGroupUrls at the given index. - */ - public com.google.protobuf.ByteString getBlueInstanceGroupUrlsBytes(int index) { - return blueInstanceGroupUrls_.getByteString(index); - } - - public static final int GREEN_INSTANCE_GROUP_URLS_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList greenInstanceGroupUrls_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-       * The resource URLs of the [managed instance groups]
-       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-       * associated with green pool.
-       * 
- * - * repeated string green_instance_group_urls = 3; - * - * @return A list containing the greenInstanceGroupUrls. - */ - public com.google.protobuf.ProtocolStringList getGreenInstanceGroupUrlsList() { - return greenInstanceGroupUrls_; - } - /** - * - * - *
-       * The resource URLs of the [managed instance groups]
-       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-       * associated with green pool.
-       * 
- * - * repeated string green_instance_group_urls = 3; - * - * @return The count of greenInstanceGroupUrls. - */ - public int getGreenInstanceGroupUrlsCount() { - return greenInstanceGroupUrls_.size(); - } - /** - * - * - *
-       * The resource URLs of the [managed instance groups]
-       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-       * associated with green pool.
-       * 
- * - * repeated string green_instance_group_urls = 3; - * - * @param index The index of the element to return. - * @return The greenInstanceGroupUrls at the given index. - */ - public java.lang.String getGreenInstanceGroupUrls(int index) { - return greenInstanceGroupUrls_.get(index); - } - /** - * - * - *
-       * The resource URLs of the [managed instance groups]
-       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-       * associated with green pool.
-       * 
- * - * repeated string green_instance_group_urls = 3; - * - * @param index The index of the value to return. - * @return The bytes of the greenInstanceGroupUrls at the given index. - */ - public com.google.protobuf.ByteString getGreenInstanceGroupUrlsBytes(int index) { - return greenInstanceGroupUrls_.getByteString(index); - } - - public static final int BLUE_POOL_DELETION_START_TIME_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private volatile java.lang.Object bluePoolDeletionStartTime_ = ""; - /** - * - * - *
-       * Time to start deleting blue pool to complete blue-green upgrade,
-       * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-       * 
- * - * string blue_pool_deletion_start_time = 4; - * - * @return The bluePoolDeletionStartTime. - */ - @java.lang.Override - public java.lang.String getBluePoolDeletionStartTime() { - java.lang.Object ref = bluePoolDeletionStartTime_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bluePoolDeletionStartTime_ = s; - return s; - } - } - /** - * - * - *
-       * Time to start deleting blue pool to complete blue-green upgrade,
-       * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-       * 
- * - * string blue_pool_deletion_start_time = 4; - * - * @return The bytes for bluePoolDeletionStartTime. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBluePoolDeletionStartTimeBytes() { - java.lang.Object ref = bluePoolDeletionStartTime_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - bluePoolDeletionStartTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GREEN_POOL_VERSION_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - private volatile java.lang.Object greenPoolVersion_ = ""; - /** - * - * - *
-       * Version of green pool.
-       * 
- * - * string green_pool_version = 5; - * - * @return The greenPoolVersion. - */ - @java.lang.Override - public java.lang.String getGreenPoolVersion() { - java.lang.Object ref = greenPoolVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - greenPoolVersion_ = s; - return s; - } - } - /** - * - * - *
-       * Version of green pool.
-       * 
- * - * string green_pool_version = 5; - * - * @return The bytes for greenPoolVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString getGreenPoolVersionBytes() { - java.lang.Object ref = greenPoolVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - greenPoolVersion_ = 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 (phase_ - != com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase - .PHASE_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, phase_); - } - for (int i = 0; i < blueInstanceGroupUrls_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 2, blueInstanceGroupUrls_.getRaw(i)); - } - for (int i = 0; i < greenInstanceGroupUrls_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 3, greenInstanceGroupUrls_.getRaw(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bluePoolDeletionStartTime_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, bluePoolDeletionStartTime_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(greenPoolVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, greenPoolVersion_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (phase_ - != com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase - .PHASE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, phase_); - } - { - int dataSize = 0; - for (int i = 0; i < blueInstanceGroupUrls_.size(); i++) { - dataSize += computeStringSizeNoTag(blueInstanceGroupUrls_.getRaw(i)); - } - size += dataSize; - size += 1 * getBlueInstanceGroupUrlsList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < greenInstanceGroupUrls_.size(); i++) { - dataSize += computeStringSizeNoTag(greenInstanceGroupUrls_.getRaw(i)); - } - size += dataSize; - size += 1 * getGreenInstanceGroupUrlsList().size(); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bluePoolDeletionStartTime_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize( - 4, bluePoolDeletionStartTime_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(greenPoolVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, greenPoolVersion_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.UpdateInfo.BlueGreenInfo)) { - return super.equals(obj); - } - com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo other = - (com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo) obj; - - if (phase_ != other.phase_) return false; - if (!getBlueInstanceGroupUrlsList().equals(other.getBlueInstanceGroupUrlsList())) - return false; - if (!getGreenInstanceGroupUrlsList().equals(other.getGreenInstanceGroupUrlsList())) - return false; - if (!getBluePoolDeletionStartTime().equals(other.getBluePoolDeletionStartTime())) - return false; - if (!getGreenPoolVersion().equals(other.getGreenPoolVersion())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + PHASE_FIELD_NUMBER; - hash = (53 * hash) + phase_; - if (getBlueInstanceGroupUrlsCount() > 0) { - hash = (37 * hash) + BLUE_INSTANCE_GROUP_URLS_FIELD_NUMBER; - hash = (53 * hash) + getBlueInstanceGroupUrlsList().hashCode(); - } - if (getGreenInstanceGroupUrlsCount() > 0) { - hash = (37 * hash) + GREEN_INSTANCE_GROUP_URLS_FIELD_NUMBER; - hash = (53 * hash) + getGreenInstanceGroupUrlsList().hashCode(); - } - hash = (37 * hash) + BLUE_POOL_DELETION_START_TIME_FIELD_NUMBER; - hash = (53 * hash) + getBluePoolDeletionStartTime().hashCode(); - hash = (37 * hash) + GREEN_POOL_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getGreenPoolVersion().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo parseFrom( - 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.UpdateInfo.BlueGreenInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo parseFrom( - com.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.UpdateInfo.BlueGreenInfo parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo 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.UpdateInfo.BlueGreenInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo parseFrom( - java.io.InputStream 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.UpdateInfo.BlueGreenInfo - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo - parseDelimitedFrom( - java.io.InputStream 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.UpdateInfo.BlueGreenInfo 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.UpdateInfo.BlueGreenInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.UpdateInfo.BlueGreenInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 relevant to blue-green upgrade.
-       * 
- * - * Protobuf type {@code google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo) - com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodePool_UpdateInfo_BlueGreenInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodePool_UpdateInfo_BlueGreenInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.class, - com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Builder.class); - } - - // Construct using - // com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - phase_ = 0; - blueInstanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - greenInstanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bluePoolDeletionStartTime_ = ""; - greenPoolVersion_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodePool_UpdateInfo_BlueGreenInfo_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo - getDefaultInstanceForType() { - return com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo build() { - com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo buildPartial() { - com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo result = - new com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.phase_ = phase_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - blueInstanceGroupUrls_.makeImmutable(); - result.blueInstanceGroupUrls_ = blueInstanceGroupUrls_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - greenInstanceGroupUrls_.makeImmutable(); - result.greenInstanceGroupUrls_ = greenInstanceGroupUrls_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.bluePoolDeletionStartTime_ = bluePoolDeletionStartTime_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.greenPoolVersion_ = greenPoolVersion_; - } - } - - @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.UpdateInfo.BlueGreenInfo) { - return mergeFrom( - (com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo other) { - if (other - == com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo - .getDefaultInstance()) return this; - if (other.phase_ != 0) { - setPhaseValue(other.getPhaseValue()); - } - if (!other.blueInstanceGroupUrls_.isEmpty()) { - if (blueInstanceGroupUrls_.isEmpty()) { - blueInstanceGroupUrls_ = other.blueInstanceGroupUrls_; - bitField0_ |= 0x00000002; - } else { - ensureBlueInstanceGroupUrlsIsMutable(); - blueInstanceGroupUrls_.addAll(other.blueInstanceGroupUrls_); - } - onChanged(); - } - if (!other.greenInstanceGroupUrls_.isEmpty()) { - if (greenInstanceGroupUrls_.isEmpty()) { - greenInstanceGroupUrls_ = other.greenInstanceGroupUrls_; - bitField0_ |= 0x00000004; - } else { - ensureGreenInstanceGroupUrlsIsMutable(); - greenInstanceGroupUrls_.addAll(other.greenInstanceGroupUrls_); - } - onChanged(); - } - if (!other.getBluePoolDeletionStartTime().isEmpty()) { - bluePoolDeletionStartTime_ = other.bluePoolDeletionStartTime_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getGreenPoolVersion().isEmpty()) { - greenPoolVersion_ = other.greenPoolVersion_; - bitField0_ |= 0x00000010; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - phase_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureBlueInstanceGroupUrlsIsMutable(); - blueInstanceGroupUrls_.add(s); - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureGreenInstanceGroupUrlsIsMutable(); - greenInstanceGroupUrls_.add(s); - break; - } // case 26 - case 34: - { - bluePoolDeletionStartTime_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - greenPoolVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int phase_ = 0; - /** - * - * - *
-         * Current blue-green upgrade phase.
-         * 
- * - * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; - * - * @return The enum numeric value on the wire for phase. - */ - @java.lang.Override - public int getPhaseValue() { - return phase_; - } - /** - * - * - *
-         * Current blue-green upgrade phase.
-         * 
- * - * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; - * - * @param value The enum numeric value on the wire for phase to set. - * @return This builder for chaining. - */ - public Builder setPhaseValue(int value) { - phase_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-         * Current blue-green upgrade phase.
-         * 
- * - * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; - * - * @return The phase. - */ - @java.lang.Override - public com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase getPhase() { - com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase result = - com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase.forNumber( - phase_); - return result == null - ? com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase.UNRECOGNIZED - : result; - } - /** - * - * - *
-         * Current blue-green upgrade phase.
-         * 
- * - * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; - * - * @param value The phase to set. - * @return This builder for chaining. - */ - public Builder setPhase( - com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - phase_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-         * Current blue-green upgrade phase.
-         * 
- * - * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; - * - * @return This builder for chaining. - */ - public Builder clearPhase() { - bitField0_ = (bitField0_ & ~0x00000001); - phase_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList blueInstanceGroupUrls_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureBlueInstanceGroupUrlsIsMutable() { - if (!blueInstanceGroupUrls_.isModifiable()) { - blueInstanceGroupUrls_ = - new com.google.protobuf.LazyStringArrayList(blueInstanceGroupUrls_); - } - bitField0_ |= 0x00000002; - } - /** - * - * - *
-         * The resource URLs of the [managed instance groups]
-         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-         * associated with blue pool.
-         * 
- * - * repeated string blue_instance_group_urls = 2; - * - * @return A list containing the blueInstanceGroupUrls. - */ - public com.google.protobuf.ProtocolStringList getBlueInstanceGroupUrlsList() { - blueInstanceGroupUrls_.makeImmutable(); - return blueInstanceGroupUrls_; - } - /** - * - * - *
-         * The resource URLs of the [managed instance groups]
-         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-         * associated with blue pool.
-         * 
- * - * repeated string blue_instance_group_urls = 2; - * - * @return The count of blueInstanceGroupUrls. - */ - public int getBlueInstanceGroupUrlsCount() { - return blueInstanceGroupUrls_.size(); - } - /** - * - * - *
-         * The resource URLs of the [managed instance groups]
-         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-         * associated with blue pool.
-         * 
- * - * repeated string blue_instance_group_urls = 2; - * - * @param index The index of the element to return. - * @return The blueInstanceGroupUrls at the given index. - */ - public java.lang.String getBlueInstanceGroupUrls(int index) { - return blueInstanceGroupUrls_.get(index); - } - /** - * - * - *
-         * The resource URLs of the [managed instance groups]
-         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-         * associated with blue pool.
-         * 
- * - * repeated string blue_instance_group_urls = 2; - * - * @param index The index of the value to return. - * @return The bytes of the blueInstanceGroupUrls at the given index. - */ - public com.google.protobuf.ByteString getBlueInstanceGroupUrlsBytes(int index) { - return blueInstanceGroupUrls_.getByteString(index); - } - /** - * - * - *
-         * The resource URLs of the [managed instance groups]
-         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-         * associated with blue pool.
-         * 
- * - * repeated string blue_instance_group_urls = 2; - * - * @param index The index to set the value at. - * @param value The blueInstanceGroupUrls to set. - * @return This builder for chaining. - */ - public Builder setBlueInstanceGroupUrls(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureBlueInstanceGroupUrlsIsMutable(); - blueInstanceGroupUrls_.set(index, value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-         * The resource URLs of the [managed instance groups]
-         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-         * associated with blue pool.
-         * 
- * - * repeated string blue_instance_group_urls = 2; - * - * @param value The blueInstanceGroupUrls to add. - * @return This builder for chaining. - */ - public Builder addBlueInstanceGroupUrls(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureBlueInstanceGroupUrlsIsMutable(); - blueInstanceGroupUrls_.add(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-         * The resource URLs of the [managed instance groups]
-         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-         * associated with blue pool.
-         * 
- * - * repeated string blue_instance_group_urls = 2; - * - * @param values The blueInstanceGroupUrls to add. - * @return This builder for chaining. - */ - public Builder addAllBlueInstanceGroupUrls(java.lang.Iterable values) { - ensureBlueInstanceGroupUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blueInstanceGroupUrls_); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-         * The resource URLs of the [managed instance groups]
-         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-         * associated with blue pool.
-         * 
- * - * repeated string blue_instance_group_urls = 2; - * - * @return This builder for chaining. - */ - public Builder clearBlueInstanceGroupUrls() { - blueInstanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; - onChanged(); - return this; - } - /** - * - * - *
-         * The resource URLs of the [managed instance groups]
-         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-         * associated with blue pool.
-         * 
- * - * repeated string blue_instance_group_urls = 2; - * - * @param value The bytes of the blueInstanceGroupUrls to add. - * @return This builder for chaining. - */ - public Builder addBlueInstanceGroupUrlsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureBlueInstanceGroupUrlsIsMutable(); - blueInstanceGroupUrls_.add(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList greenInstanceGroupUrls_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureGreenInstanceGroupUrlsIsMutable() { - if (!greenInstanceGroupUrls_.isModifiable()) { - greenInstanceGroupUrls_ = - new com.google.protobuf.LazyStringArrayList(greenInstanceGroupUrls_); - } - bitField0_ |= 0x00000004; - } - /** - * - * - *
-         * The resource URLs of the [managed instance groups]
-         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-         * associated with green pool.
-         * 
- * - * repeated string green_instance_group_urls = 3; - * - * @return A list containing the greenInstanceGroupUrls. - */ - public com.google.protobuf.ProtocolStringList getGreenInstanceGroupUrlsList() { - greenInstanceGroupUrls_.makeImmutable(); - return greenInstanceGroupUrls_; - } - /** - * - * - *
-         * The resource URLs of the [managed instance groups]
-         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-         * associated with green pool.
-         * 
- * - * repeated string green_instance_group_urls = 3; - * - * @return The count of greenInstanceGroupUrls. - */ - public int getGreenInstanceGroupUrlsCount() { - return greenInstanceGroupUrls_.size(); - } - /** - * - * - *
-         * The resource URLs of the [managed instance groups]
-         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-         * associated with green pool.
-         * 
- * - * repeated string green_instance_group_urls = 3; - * - * @param index The index of the element to return. - * @return The greenInstanceGroupUrls at the given index. - */ - public java.lang.String getGreenInstanceGroupUrls(int index) { - return greenInstanceGroupUrls_.get(index); - } - /** - * - * - *
-         * The resource URLs of the [managed instance groups]
-         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-         * associated with green pool.
-         * 
- * - * repeated string green_instance_group_urls = 3; - * - * @param index The index of the value to return. - * @return The bytes of the greenInstanceGroupUrls at the given index. - */ - public com.google.protobuf.ByteString getGreenInstanceGroupUrlsBytes(int index) { - return greenInstanceGroupUrls_.getByteString(index); - } - /** - * - * - *
-         * The resource URLs of the [managed instance groups]
-         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-         * associated with green pool.
-         * 
- * - * repeated string green_instance_group_urls = 3; - * - * @param index The index to set the value at. - * @param value The greenInstanceGroupUrls to set. - * @return This builder for chaining. - */ - public Builder setGreenInstanceGroupUrls(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureGreenInstanceGroupUrlsIsMutable(); - greenInstanceGroupUrls_.set(index, value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-         * The resource URLs of the [managed instance groups]
-         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-         * associated with green pool.
-         * 
- * - * repeated string green_instance_group_urls = 3; - * - * @param value The greenInstanceGroupUrls to add. - * @return This builder for chaining. - */ - public Builder addGreenInstanceGroupUrls(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureGreenInstanceGroupUrlsIsMutable(); - greenInstanceGroupUrls_.add(value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-         * The resource URLs of the [managed instance groups]
-         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-         * associated with green pool.
-         * 
- * - * repeated string green_instance_group_urls = 3; - * - * @param values The greenInstanceGroupUrls to add. - * @return This builder for chaining. - */ - public Builder addAllGreenInstanceGroupUrls(java.lang.Iterable values) { - ensureGreenInstanceGroupUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, greenInstanceGroupUrls_); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-         * The resource URLs of the [managed instance groups]
-         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-         * associated with green pool.
-         * 
- * - * repeated string green_instance_group_urls = 3; - * - * @return This builder for chaining. - */ - public Builder clearGreenInstanceGroupUrls() { - greenInstanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; - onChanged(); - return this; - } - /** - * - * - *
-         * The resource URLs of the [managed instance groups]
-         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
-         * associated with green pool.
-         * 
- * - * repeated string green_instance_group_urls = 3; - * - * @param value The bytes of the greenInstanceGroupUrls to add. - * @return This builder for chaining. - */ - public Builder addGreenInstanceGroupUrlsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureGreenInstanceGroupUrlsIsMutable(); - greenInstanceGroupUrls_.add(value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object bluePoolDeletionStartTime_ = ""; - /** - * - * - *
-         * Time to start deleting blue pool to complete blue-green upgrade,
-         * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-         * 
- * - * string blue_pool_deletion_start_time = 4; - * - * @return The bluePoolDeletionStartTime. - */ - public java.lang.String getBluePoolDeletionStartTime() { - java.lang.Object ref = bluePoolDeletionStartTime_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bluePoolDeletionStartTime_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-         * Time to start deleting blue pool to complete blue-green upgrade,
-         * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-         * 
- * - * string blue_pool_deletion_start_time = 4; - * - * @return The bytes for bluePoolDeletionStartTime. - */ - public com.google.protobuf.ByteString getBluePoolDeletionStartTimeBytes() { - java.lang.Object ref = bluePoolDeletionStartTime_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - bluePoolDeletionStartTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-         * Time to start deleting blue pool to complete blue-green upgrade,
-         * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-         * 
- * - * string blue_pool_deletion_start_time = 4; - * - * @param value The bluePoolDeletionStartTime to set. - * @return This builder for chaining. - */ - public Builder setBluePoolDeletionStartTime(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bluePoolDeletionStartTime_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-         * Time to start deleting blue pool to complete blue-green upgrade,
-         * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-         * 
- * - * string blue_pool_deletion_start_time = 4; - * - * @return This builder for chaining. - */ - public Builder clearBluePoolDeletionStartTime() { - bluePoolDeletionStartTime_ = getDefaultInstance().getBluePoolDeletionStartTime(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-         * Time to start deleting blue pool to complete blue-green upgrade,
-         * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-         * 
- * - * string blue_pool_deletion_start_time = 4; - * - * @param value The bytes for bluePoolDeletionStartTime to set. - * @return This builder for chaining. - */ - public Builder setBluePoolDeletionStartTimeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - bluePoolDeletionStartTime_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private java.lang.Object greenPoolVersion_ = ""; - /** - * - * - *
-         * Version of green pool.
-         * 
- * - * string green_pool_version = 5; - * - * @return The greenPoolVersion. - */ - public java.lang.String getGreenPoolVersion() { - java.lang.Object ref = greenPoolVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - greenPoolVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-         * Version of green pool.
-         * 
- * - * string green_pool_version = 5; - * - * @return The bytes for greenPoolVersion. - */ - public com.google.protobuf.ByteString getGreenPoolVersionBytes() { - java.lang.Object ref = greenPoolVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - greenPoolVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-         * Version of green pool.
-         * 
- * - * string green_pool_version = 5; - * - * @param value The greenPoolVersion to set. - * @return This builder for chaining. - */ - public Builder setGreenPoolVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - greenPoolVersion_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-         * Version of green pool.
-         * 
- * - * string green_pool_version = 5; - * - * @return This builder for chaining. - */ - public Builder clearGreenPoolVersion() { - greenPoolVersion_ = getDefaultInstance().getGreenPoolVersion(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * - * - *
-         * Version of green pool.
-         * 
- * - * string green_pool_version = 5; - * - * @param value The bytes for greenPoolVersion to set. - * @return This builder for chaining. - */ - public Builder setGreenPoolVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - greenPoolVersion_ = value; - bitField0_ |= 0x00000010; - 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.UpdateInfo.BlueGreenInfo) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo) - private static final com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo(); - } - - public static com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BlueGreenInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.UpdateInfo.BlueGreenInfo - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int bitField0_; - public static final int BLUE_GREEN_INFO_FIELD_NUMBER = 1; - private com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo blueGreenInfo_; - /** - * - * - *
-     * Information of a blue-green upgrade.
-     * 
- * - * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - * - * @return Whether the blueGreenInfo field is set. - */ - @java.lang.Override - public boolean hasBlueGreenInfo() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Information of a blue-green upgrade.
-     * 
- * - * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - * - * @return The blueGreenInfo. - */ - @java.lang.Override - public com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo getBlueGreenInfo() { - return blueGreenInfo_ == null - ? com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.getDefaultInstance() - : blueGreenInfo_; - } - /** - * - * - *
-     * Information of a blue-green upgrade.
-     * 
- * - * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - */ - @java.lang.Override - public com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfoOrBuilder - getBlueGreenInfoOrBuilder() { - return blueGreenInfo_ == null - ? com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.getDefaultInstance() - : blueGreenInfo_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getBlueGreenInfo()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBlueGreenInfo()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.UpdateInfo)) { - return super.equals(obj); - } - com.google.container.v1beta1.NodePool.UpdateInfo other = - (com.google.container.v1beta1.NodePool.UpdateInfo) obj; - - if (hasBlueGreenInfo() != other.hasBlueGreenInfo()) return false; - if (hasBlueGreenInfo()) { - if (!getBlueGreenInfo().equals(other.getBlueGreenInfo())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasBlueGreenInfo()) { - hash = (37 * hash) + BLUE_GREEN_INFO_FIELD_NUMBER; - hash = (53 * hash) + getBlueGreenInfo().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.NodePool.UpdateInfo parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NodePool.UpdateInfo parseFrom( - 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.UpdateInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NodePool.UpdateInfo parseFrom( - com.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.UpdateInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NodePool.UpdateInfo 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.UpdateInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NodePool.UpdateInfo parseFrom( - java.io.InputStream 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.UpdateInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NodePool.UpdateInfo parseDelimitedFrom( - java.io.InputStream 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.UpdateInfo 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.UpdateInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.UpdateInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * UpdateInfo contains resource (instance groups, etc), status and other
-     * intermediate information relevant to a node pool upgrade.
-     * 
- * - * Protobuf type {@code google.container.v1beta1.NodePool.UpdateInfo} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NodePool.UpdateInfo) - com.google.container.v1beta1.NodePool.UpdateInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodePool_UpdateInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodePool_UpdateInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.NodePool.UpdateInfo.class, - com.google.container.v1beta1.NodePool.UpdateInfo.Builder.class); - } - - // Construct using com.google.container.v1beta1.NodePool.UpdateInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getBlueGreenInfoFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - blueGreenInfo_ = null; - if (blueGreenInfoBuilder_ != null) { - blueGreenInfoBuilder_.dispose(); - blueGreenInfoBuilder_ = 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_UpdateInfo_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.NodePool.UpdateInfo getDefaultInstanceForType() { - return com.google.container.v1beta1.NodePool.UpdateInfo.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.NodePool.UpdateInfo build() { - com.google.container.v1beta1.NodePool.UpdateInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.NodePool.UpdateInfo buildPartial() { - com.google.container.v1beta1.NodePool.UpdateInfo result = - new com.google.container.v1beta1.NodePool.UpdateInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.NodePool.UpdateInfo result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.blueGreenInfo_ = - blueGreenInfoBuilder_ == null ? blueGreenInfo_ : blueGreenInfoBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @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.UpdateInfo) { - return mergeFrom((com.google.container.v1beta1.NodePool.UpdateInfo) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.NodePool.UpdateInfo other) { - if (other == com.google.container.v1beta1.NodePool.UpdateInfo.getDefaultInstance()) - return this; - if (other.hasBlueGreenInfo()) { - mergeBlueGreenInfo(other.getBlueGreenInfo()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getBlueGreenInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo blueGreenInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo, - com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Builder, - com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfoOrBuilder> - blueGreenInfoBuilder_; - /** - * - * - *
-       * Information of a blue-green upgrade.
-       * 
- * - * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - * - * - * @return Whether the blueGreenInfo field is set. - */ - public boolean hasBlueGreenInfo() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-       * Information of a blue-green upgrade.
-       * 
- * - * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - * - * - * @return The blueGreenInfo. - */ - public com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo getBlueGreenInfo() { - if (blueGreenInfoBuilder_ == null) { - return blueGreenInfo_ == null - ? com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.getDefaultInstance() - : blueGreenInfo_; - } else { - return blueGreenInfoBuilder_.getMessage(); - } - } - /** - * - * - *
-       * Information of a blue-green upgrade.
-       * 
- * - * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - * - */ - public Builder setBlueGreenInfo( - com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo value) { - if (blueGreenInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - blueGreenInfo_ = value; - } else { - blueGreenInfoBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * Information of a blue-green upgrade.
-       * 
- * - * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - * - */ - public Builder setBlueGreenInfo( - com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Builder builderForValue) { - if (blueGreenInfoBuilder_ == null) { - blueGreenInfo_ = builderForValue.build(); - } else { - blueGreenInfoBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * Information of a blue-green upgrade.
-       * 
- * - * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - * - */ - public Builder mergeBlueGreenInfo( - com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo value) { - if (blueGreenInfoBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && blueGreenInfo_ != null - && blueGreenInfo_ - != com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo - .getDefaultInstance()) { - getBlueGreenInfoBuilder().mergeFrom(value); - } else { - blueGreenInfo_ = value; - } - } else { - blueGreenInfoBuilder_.mergeFrom(value); - } - if (blueGreenInfo_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * - * - *
-       * Information of a blue-green upgrade.
-       * 
- * - * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - * - */ - public Builder clearBlueGreenInfo() { - bitField0_ = (bitField0_ & ~0x00000001); - blueGreenInfo_ = null; - if (blueGreenInfoBuilder_ != null) { - blueGreenInfoBuilder_.dispose(); - blueGreenInfoBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-       * Information of a blue-green upgrade.
-       * 
- * - * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - * - */ - public com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Builder - getBlueGreenInfoBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getBlueGreenInfoFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * Information of a blue-green upgrade.
-       * 
- * - * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - * - */ - public com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfoOrBuilder - getBlueGreenInfoOrBuilder() { - if (blueGreenInfoBuilder_ != null) { - return blueGreenInfoBuilder_.getMessageOrBuilder(); - } else { - return blueGreenInfo_ == null - ? com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.getDefaultInstance() - : blueGreenInfo_; - } - } - /** - * - * - *
-       * Information of a blue-green upgrade.
-       * 
- * - * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo, - com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Builder, - com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfoOrBuilder> - getBlueGreenInfoFieldBuilder() { - if (blueGreenInfoBuilder_ == null) { - blueGreenInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo, - com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Builder, - com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfoOrBuilder>( - getBlueGreenInfo(), getParentForChildren(), isClean()); - blueGreenInfo_ = null; - } - return blueGreenInfoBuilder_; - } - - @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.UpdateInfo) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodePool.UpdateInfo) - private static final com.google.container.v1beta1.NodePool.UpdateInfo DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.NodePool.UpdateInfo(); - } - - public static com.google.container.v1beta1.NodePool.UpdateInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.UpdateInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface PlacementPolicyOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodePool.PlacementPolicy) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * The type of placement.
-     * 
- * - * .google.container.v1beta1.NodePool.PlacementPolicy.Type type = 1; - * - * @return The enum numeric value on the wire for type. - */ - int getTypeValue(); - /** - * - * - *
-     * The type of placement.
-     * 
- * - * .google.container.v1beta1.NodePool.PlacementPolicy.Type type = 1; - * - * @return The type. - */ - com.google.container.v1beta1.NodePool.PlacementPolicy.Type getType(); - - /** - * - * - *
-     * TPU placement topology for pod slice node pool.
-     * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
-     * 
- * - * string tpu_topology = 2; - * - * @return The tpuTopology. - */ - java.lang.String getTpuTopology(); - /** - * - * - *
-     * TPU placement topology for pod slice node pool.
-     * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
-     * 
- * - * string tpu_topology = 2; - * - * @return The bytes for tpuTopology. - */ - com.google.protobuf.ByteString getTpuTopologyBytes(); - - /** - * - * - *
-     * If set, refers to the name of a custom resource policy supplied by the
-     * user. The resource policy must be in the same project and region as the
-     * node pool. If not found, InvalidArgument error is returned.
-     * 
- * - * string policy_name = 3; - * - * @return The policyName. - */ - java.lang.String getPolicyName(); - /** - * - * - *
-     * If set, refers to the name of a custom resource policy supplied by the
-     * user. The resource policy must be in the same project and region as the
-     * node pool. If not found, InvalidArgument error is returned.
-     * 
- * - * string policy_name = 3; - * - * @return The bytes for policyName. - */ - com.google.protobuf.ByteString getPolicyNameBytes(); - } - /** - * - * - *
-   * PlacementPolicy defines the placement policy used by the node pool.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.NodePool.PlacementPolicy} - */ - public static final class PlacementPolicy extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodePool.PlacementPolicy) - PlacementPolicyOrBuilder { - private static final long serialVersionUID = 0L; - // Use PlacementPolicy.newBuilder() to construct. - private PlacementPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PlacementPolicy() { - type_ = 0; - tpuTopology_ = ""; - policyName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PlacementPolicy(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodePool_PlacementPolicy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodePool_PlacementPolicy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.NodePool.PlacementPolicy.class, - com.google.container.v1beta1.NodePool.PlacementPolicy.Builder.class); - } - - /** - * - * - *
-     * Type defines the type of placement policy.
-     * 
- * - * Protobuf enum {@code google.container.v1beta1.NodePool.PlacementPolicy.Type} - */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-       * TYPE_UNSPECIFIED specifies no requirements on nodes
-       * placement.
-       * 
- * - * TYPE_UNSPECIFIED = 0; - */ - TYPE_UNSPECIFIED(0), - /** - * - * - *
-       * COMPACT specifies node placement in the same availability domain to
-       * ensure low communication latency.
-       * 
- * - * COMPACT = 1; - */ - COMPACT(1), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-       * TYPE_UNSPECIFIED specifies no requirements on nodes
-       * placement.
-       * 
- * - * TYPE_UNSPECIFIED = 0; - */ - public static final int TYPE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-       * COMPACT specifies node placement in the same availability domain to
-       * ensure low communication latency.
-       * 
- * - * COMPACT = 1; - */ - public static final int COMPACT_VALUE = 1; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Type valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Type forNumber(int value) { - switch (value) { - case 0: - return TYPE_UNSPECIFIED; - case 1: - return COMPACT; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1beta1.NodePool.PlacementPolicy.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final Type[] VALUES = values(); - - public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Type(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1beta1.NodePool.PlacementPolicy.Type) - } - - public static final int TYPE_FIELD_NUMBER = 1; - private int type_ = 0; - /** - * - * - *
-     * The type of placement.
-     * 
- * - * .google.container.v1beta1.NodePool.PlacementPolicy.Type type = 1; - * - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override - public int getTypeValue() { - return type_; - } - /** - * - * - *
-     * The type of placement.
-     * 
- * - * .google.container.v1beta1.NodePool.PlacementPolicy.Type type = 1; - * - * @return The type. - */ - @java.lang.Override - public com.google.container.v1beta1.NodePool.PlacementPolicy.Type getType() { - com.google.container.v1beta1.NodePool.PlacementPolicy.Type result = - com.google.container.v1beta1.NodePool.PlacementPolicy.Type.forNumber(type_); - return result == null - ? com.google.container.v1beta1.NodePool.PlacementPolicy.Type.UNRECOGNIZED - : result; - } - - public static final int TPU_TOPOLOGY_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object tpuTopology_ = ""; - /** - * - * - *
-     * TPU placement topology for pod slice node pool.
-     * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
-     * 
- * - * string tpu_topology = 2; - * - * @return The tpuTopology. - */ - @java.lang.Override - public java.lang.String getTpuTopology() { - java.lang.Object ref = tpuTopology_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tpuTopology_ = s; - return s; - } - } - /** - * - * - *
-     * TPU placement topology for pod slice node pool.
-     * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
-     * 
- * - * string tpu_topology = 2; - * - * @return The bytes for tpuTopology. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTpuTopologyBytes() { - java.lang.Object ref = tpuTopology_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tpuTopology_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int POLICY_NAME_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object policyName_ = ""; - /** - * - * - *
-     * If set, refers to the name of a custom resource policy supplied by the
-     * user. The resource policy must be in the same project and region as the
-     * node pool. If not found, InvalidArgument error is returned.
-     * 
- * - * string policy_name = 3; - * - * @return The policyName. - */ - @java.lang.Override - public java.lang.String getPolicyName() { - java.lang.Object ref = policyName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - policyName_ = s; - return s; - } - } - /** - * - * - *
-     * If set, refers to the name of a custom resource policy supplied by the
-     * user. The resource policy must be in the same project and region as the
-     * node pool. If not found, InvalidArgument error is returned.
-     * 
- * - * string policy_name = 3; - * - * @return The bytes for policyName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPolicyNameBytes() { - java.lang.Object ref = policyName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - policyName_ = 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 (type_ - != com.google.container.v1beta1.NodePool.PlacementPolicy.Type.TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, type_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tpuTopology_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tpuTopology_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, policyName_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (type_ - != com.google.container.v1beta1.NodePool.PlacementPolicy.Type.TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tpuTopology_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tpuTopology_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, policyName_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1beta1.NodePool.PlacementPolicy)) { - return super.equals(obj); - } - com.google.container.v1beta1.NodePool.PlacementPolicy other = - (com.google.container.v1beta1.NodePool.PlacementPolicy) obj; - - if (type_ != other.type_) return false; - if (!getTpuTopology().equals(other.getTpuTopology())) return false; - if (!getPolicyName().equals(other.getPolicyName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + TPU_TOPOLOGY_FIELD_NUMBER; - hash = (53 * hash) + getTpuTopology().hashCode(); - hash = (37 * hash) + POLICY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getPolicyName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.NodePool.PlacementPolicy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NodePool.PlacementPolicy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.NodePool.PlacementPolicy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NodePool.PlacementPolicy parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.NodePool.PlacementPolicy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NodePool.PlacementPolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.NodePool.PlacementPolicy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NodePool.PlacementPolicy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.NodePool.PlacementPolicy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NodePool.PlacementPolicy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.NodePool.PlacementPolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NodePool.PlacementPolicy parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.container.v1beta1.NodePool.PlacementPolicy prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * PlacementPolicy defines the placement policy used by the node pool.
-     * 
- * - * Protobuf type {@code google.container.v1beta1.NodePool.PlacementPolicy} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NodePool.PlacementPolicy) - com.google.container.v1beta1.NodePool.PlacementPolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodePool_PlacementPolicy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodePool_PlacementPolicy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.NodePool.PlacementPolicy.class, - com.google.container.v1beta1.NodePool.PlacementPolicy.Builder.class); - } - - // Construct using com.google.container.v1beta1.NodePool.PlacementPolicy.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - type_ = 0; - tpuTopology_ = ""; - policyName_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodePool_PlacementPolicy_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.NodePool.PlacementPolicy getDefaultInstanceForType() { - return com.google.container.v1beta1.NodePool.PlacementPolicy.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.NodePool.PlacementPolicy build() { - com.google.container.v1beta1.NodePool.PlacementPolicy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.NodePool.PlacementPolicy buildPartial() { - com.google.container.v1beta1.NodePool.PlacementPolicy result = - new com.google.container.v1beta1.NodePool.PlacementPolicy(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.NodePool.PlacementPolicy result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.type_ = type_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.tpuTopology_ = tpuTopology_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.policyName_ = policyName_; - } - } - - @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.PlacementPolicy) { - return mergeFrom((com.google.container.v1beta1.NodePool.PlacementPolicy) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.NodePool.PlacementPolicy other) { - if (other == com.google.container.v1beta1.NodePool.PlacementPolicy.getDefaultInstance()) - return this; - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - if (!other.getTpuTopology().isEmpty()) { - tpuTopology_ = other.tpuTopology_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getPolicyName().isEmpty()) { - policyName_ = other.policyName_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - type_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - tpuTopology_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - policyName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int type_ = 0; - /** - * - * - *
-       * The type of placement.
-       * 
- * - * .google.container.v1beta1.NodePool.PlacementPolicy.Type type = 1; - * - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override - public int getTypeValue() { - return type_; - } - /** - * - * - *
-       * The type of placement.
-       * 
- * - * .google.container.v1beta1.NodePool.PlacementPolicy.Type type = 1; - * - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * The type of placement.
-       * 
- * - * .google.container.v1beta1.NodePool.PlacementPolicy.Type type = 1; - * - * @return The type. - */ - @java.lang.Override - public com.google.container.v1beta1.NodePool.PlacementPolicy.Type getType() { - com.google.container.v1beta1.NodePool.PlacementPolicy.Type result = - com.google.container.v1beta1.NodePool.PlacementPolicy.Type.forNumber(type_); - return result == null - ? com.google.container.v1beta1.NodePool.PlacementPolicy.Type.UNRECOGNIZED - : result; - } - /** - * - * - *
-       * The type of placement.
-       * 
- * - * .google.container.v1beta1.NodePool.PlacementPolicy.Type type = 1; - * - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(com.google.container.v1beta1.NodePool.PlacementPolicy.Type value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * The type of placement.
-       * 
- * - * .google.container.v1beta1.NodePool.PlacementPolicy.Type type = 1; - * - * @return This builder for chaining. - */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000001); - type_ = 0; - onChanged(); - return this; - } - - private java.lang.Object tpuTopology_ = ""; - /** - * - * - *
-       * TPU placement topology for pod slice node pool.
-       * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
-       * 
- * - * string tpu_topology = 2; - * - * @return The tpuTopology. - */ - public java.lang.String getTpuTopology() { - java.lang.Object ref = tpuTopology_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tpuTopology_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * TPU placement topology for pod slice node pool.
-       * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
-       * 
- * - * string tpu_topology = 2; - * - * @return The bytes for tpuTopology. - */ - public com.google.protobuf.ByteString getTpuTopologyBytes() { - java.lang.Object ref = tpuTopology_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tpuTopology_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * TPU placement topology for pod slice node pool.
-       * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
-       * 
- * - * string tpu_topology = 2; - * - * @param value The tpuTopology to set. - * @return This builder for chaining. - */ - public Builder setTpuTopology(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - tpuTopology_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-       * TPU placement topology for pod slice node pool.
-       * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
-       * 
- * - * string tpu_topology = 2; - * - * @return This builder for chaining. - */ - public Builder clearTpuTopology() { - tpuTopology_ = getDefaultInstance().getTpuTopology(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-       * TPU placement topology for pod slice node pool.
-       * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
-       * 
- * - * string tpu_topology = 2; - * - * @param value The bytes for tpuTopology to set. - * @return This builder for chaining. - */ - public Builder setTpuTopologyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - tpuTopology_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object policyName_ = ""; - /** - * - * - *
-       * If set, refers to the name of a custom resource policy supplied by the
-       * user. The resource policy must be in the same project and region as the
-       * node pool. If not found, InvalidArgument error is returned.
-       * 
- * - * string policy_name = 3; - * - * @return The policyName. - */ - public java.lang.String getPolicyName() { - java.lang.Object ref = policyName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - policyName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * If set, refers to the name of a custom resource policy supplied by the
-       * user. The resource policy must be in the same project and region as the
-       * node pool. If not found, InvalidArgument error is returned.
-       * 
- * - * string policy_name = 3; - * - * @return The bytes for policyName. - */ - public com.google.protobuf.ByteString getPolicyNameBytes() { - java.lang.Object ref = policyName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - policyName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * If set, refers to the name of a custom resource policy supplied by the
-       * user. The resource policy must be in the same project and region as the
-       * node pool. If not found, InvalidArgument error is returned.
-       * 
- * - * string policy_name = 3; - * - * @param value The policyName to set. - * @return This builder for chaining. - */ - public Builder setPolicyName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - policyName_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-       * If set, refers to the name of a custom resource policy supplied by the
-       * user. The resource policy must be in the same project and region as the
-       * node pool. If not found, InvalidArgument error is returned.
-       * 
- * - * string policy_name = 3; - * - * @return This builder for chaining. - */ - public Builder clearPolicyName() { - policyName_ = getDefaultInstance().getPolicyName(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-       * If set, refers to the name of a custom resource policy supplied by the
-       * user. The resource policy must be in the same project and region as the
-       * node pool. If not found, InvalidArgument error is returned.
-       * 
- * - * string policy_name = 3; - * - * @param value The bytes for policyName to set. - * @return This builder for chaining. - */ - public Builder setPolicyNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - policyName_ = value; - bitField0_ |= 0x00000004; - 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.PlacementPolicy) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodePool.PlacementPolicy) - private static final com.google.container.v1beta1.NodePool.PlacementPolicy DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.NodePool.PlacementPolicy(); - } - - public static com.google.container.v1beta1.NodePool.PlacementPolicy getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PlacementPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.PlacementPolicy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface QueuedProvisioningOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodePool.QueuedProvisioning) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Denotes that this nodepool is QRM specific, meaning nodes can be only
-     * obtained through queuing via the Cluster Autoscaler ProvisioningRequest
-     * API.
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); - } - /** - * - * - *
-   * QueuedProvisioning defines the queued provisioning used by the node pool.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.NodePool.QueuedProvisioning} - */ - public static final class QueuedProvisioning extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodePool.QueuedProvisioning) - QueuedProvisioningOrBuilder { - private static final long serialVersionUID = 0L; - // Use QueuedProvisioning.newBuilder() to construct. - private QueuedProvisioning(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private QueuedProvisioning() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new QueuedProvisioning(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodePool_QueuedProvisioning_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodePool_QueuedProvisioning_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.NodePool.QueuedProvisioning.class, - com.google.container.v1beta1.NodePool.QueuedProvisioning.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-     * Denotes that this nodepool is QRM specific, meaning nodes can be only
-     * obtained through queuing via the Cluster Autoscaler ProvisioningRequest
-     * API.
-     * 
- * - * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.QueuedProvisioning)) { - return super.equals(obj); - } - com.google.container.v1beta1.NodePool.QueuedProvisioning other = - (com.google.container.v1beta1.NodePool.QueuedProvisioning) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.NodePool.QueuedProvisioning parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NodePool.QueuedProvisioning parseFrom( - 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.QueuedProvisioning parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NodePool.QueuedProvisioning parseFrom( - com.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.QueuedProvisioning parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NodePool.QueuedProvisioning 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.QueuedProvisioning parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NodePool.QueuedProvisioning parseFrom( - java.io.InputStream 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.QueuedProvisioning parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NodePool.QueuedProvisioning parseDelimitedFrom( - java.io.InputStream 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.QueuedProvisioning 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.QueuedProvisioning parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.QueuedProvisioning prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * QueuedProvisioning defines the queued provisioning used by the node pool.
-     * 
- * - * Protobuf type {@code google.container.v1beta1.NodePool.QueuedProvisioning} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NodePool.QueuedProvisioning) - com.google.container.v1beta1.NodePool.QueuedProvisioningOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodePool_QueuedProvisioning_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodePool_QueuedProvisioning_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.NodePool.QueuedProvisioning.class, - com.google.container.v1beta1.NodePool.QueuedProvisioning.Builder.class); - } - - // Construct using com.google.container.v1beta1.NodePool.QueuedProvisioning.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 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_NodePool_QueuedProvisioning_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.NodePool.QueuedProvisioning getDefaultInstanceForType() { - return com.google.container.v1beta1.NodePool.QueuedProvisioning.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.NodePool.QueuedProvisioning build() { - com.google.container.v1beta1.NodePool.QueuedProvisioning result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.NodePool.QueuedProvisioning buildPartial() { - com.google.container.v1beta1.NodePool.QueuedProvisioning result = - new com.google.container.v1beta1.NodePool.QueuedProvisioning(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.NodePool.QueuedProvisioning result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @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.QueuedProvisioning) { - return mergeFrom((com.google.container.v1beta1.NodePool.QueuedProvisioning) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.NodePool.QueuedProvisioning other) { - if (other == com.google.container.v1beta1.NodePool.QueuedProvisioning.getDefaultInstance()) - return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean enabled_; - /** - * - * - *
-       * Denotes that this nodepool is QRM specific, meaning nodes can be only
-       * obtained through queuing via the Cluster Autoscaler ProvisioningRequest
-       * API.
-       * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-       * Denotes that this nodepool is QRM specific, meaning nodes can be only
-       * obtained through queuing via the Cluster Autoscaler ProvisioningRequest
-       * API.
-       * 
- * - * bool enabled = 1; - * - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * Denotes that this nodepool is QRM specific, meaning nodes can be only
-       * obtained through queuing via the Cluster Autoscaler ProvisioningRequest
-       * API.
-       * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - 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.NodePool.QueuedProvisioning) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodePool.QueuedProvisioning) - private static final com.google.container.v1beta1.NodePool.QueuedProvisioning DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.NodePool.QueuedProvisioning(); - } - - public static com.google.container.v1beta1.NodePool.QueuedProvisioning getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueuedProvisioning parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.QueuedProvisioning getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - 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 ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * 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 config_ == null ? com.google.container.v1beta1.NodeConfig.getDefaultInstance() : config_; - } - - public static final int INITIAL_NODE_COUNT_FIELD_NUMBER = 3; - private int initialNodeCount_ = 0; - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList locations_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * 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 NETWORK_CONFIG_FIELD_NUMBER = 14; - private com.google.container.v1beta1.NodeNetworkConfig networkConfig_; - /** - * - * - *
-   * Networking configuration for this NodePool. If specified, it overrides the
-   * cluster-level defaults.
-   * 
- * - * .google.container.v1beta1.NodeNetworkConfig network_config = 14; - * - * @return Whether the networkConfig field is set. - */ - @java.lang.Override - public boolean hasNetworkConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * Networking configuration for this NodePool. If specified, it overrides the
-   * cluster-level defaults.
-   * 
- * - * .google.container.v1beta1.NodeNetworkConfig network_config = 14; - * - * @return The networkConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.NodeNetworkConfig getNetworkConfig() { - return networkConfig_ == null - ? com.google.container.v1beta1.NodeNetworkConfig.getDefaultInstance() - : networkConfig_; - } - /** - * - * - *
-   * Networking configuration for this NodePool. If specified, it overrides the
-   * cluster-level defaults.
-   * 
- * - * .google.container.v1beta1.NodeNetworkConfig network_config = 14; - */ - @java.lang.Override - public com.google.container.v1beta1.NodeNetworkConfigOrBuilder getNetworkConfigOrBuilder() { - return networkConfig_ == null - ? com.google.container.v1beta1.NodeNetworkConfig.getDefaultInstance() - : networkConfig_; - } - - public static final int SELF_LINK_FIELD_NUMBER = 100; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object version_ = ""; - /** - * - * - *
-   * The version of Kubernetes running on this NodePool's nodes. If unspecified,
-   * it defaults as described
-   * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version).
-   * 
- * - * 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 Kubernetes running on this NodePool's nodes. If unspecified,
-   * it defaults as described
-   * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version).
-   * 
- * - * 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; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList instanceGroupUrls_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * [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.
-   * During the node pool blue-green upgrade operation, the URLs contain both
-   * blue and green resources.
-   * 
- * - * 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.
-   * During the node pool blue-green upgrade operation, the URLs contain both
-   * blue and green resources.
-   * 
- * - * 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.
-   * During the node pool blue-green upgrade operation, the URLs contain both
-   * blue and green resources.
-   * 
- * - * 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.
-   * During the node pool blue-green upgrade operation, the URLs contain both
-   * blue and green resources.
-   * 
- * - * 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_ = 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; - * - * @return The status. - */ - @java.lang.Override - public com.google.container.v1beta1.NodePool.Status getStatus() { - com.google.container.v1beta1.NodePool.Status result = - com.google.container.v1beta1.NodePool.Status.forNumber(status_); - return result == null ? com.google.container.v1beta1.NodePool.Status.UNRECOGNIZED : result; - } - - public static final int STATUS_MESSAGE_FIELD_NUMBER = 104; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4033 - * @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]; - * - * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4033 - * @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 ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-   * 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 autoscaling_ == null - ? com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() - : autoscaling_; - } - - 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 ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-   * 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 management_ == null - ? com.google.container.v1beta1.NodeManagement.getDefaultInstance() - : management_; - } - - 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 ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-   * 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 maxPodsConstraint_ == null - ? com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance() - : maxPodsConstraint_; - } - - public static final int CONDITIONS_FIELD_NUMBER = 105; - - @SuppressWarnings("serial") - 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_ = 0; - /** - * - * - *
-   * [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 ((bitField0_ & 0x00000020) != 0); - } - /** - * - * - *
-   * 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 upgradeSettings_ == null - ? com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance() - : upgradeSettings_; - } - - public static final int PLACEMENT_POLICY_FIELD_NUMBER = 108; - private com.google.container.v1beta1.NodePool.PlacementPolicy placementPolicy_; - /** - * - * - *
-   * Specifies the node placement policy.
-   * 
- * - * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; - * - * @return Whether the placementPolicy field is set. - */ - @java.lang.Override - public boolean hasPlacementPolicy() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * - * - *
-   * Specifies the node placement policy.
-   * 
- * - * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; - * - * @return The placementPolicy. - */ - @java.lang.Override - public com.google.container.v1beta1.NodePool.PlacementPolicy getPlacementPolicy() { - return placementPolicy_ == null - ? com.google.container.v1beta1.NodePool.PlacementPolicy.getDefaultInstance() - : placementPolicy_; - } - /** - * - * - *
-   * Specifies the node placement policy.
-   * 
- * - * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; - */ - @java.lang.Override - public com.google.container.v1beta1.NodePool.PlacementPolicyOrBuilder - getPlacementPolicyOrBuilder() { - return placementPolicy_ == null - ? com.google.container.v1beta1.NodePool.PlacementPolicy.getDefaultInstance() - : placementPolicy_; - } - - public static final int UPDATE_INFO_FIELD_NUMBER = 109; - private com.google.container.v1beta1.NodePool.UpdateInfo updateInfo_; - /** - * - * - *
-   * Output only. [Output only] Update info contains relevant information during
-   * a node pool update.
-   * 
- * - * - * .google.container.v1beta1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateInfo field is set. - */ - @java.lang.Override - public boolean hasUpdateInfo() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * - * - *
-   * Output only. [Output only] Update info contains relevant information during
-   * a node pool update.
-   * 
- * - * - * .google.container.v1beta1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateInfo. - */ - @java.lang.Override - public com.google.container.v1beta1.NodePool.UpdateInfo getUpdateInfo() { - return updateInfo_ == null - ? com.google.container.v1beta1.NodePool.UpdateInfo.getDefaultInstance() - : updateInfo_; - } - /** - * - * - *
-   * Output only. [Output only] Update info contains relevant information during
-   * a node pool update.
-   * 
- * - * - * .google.container.v1beta1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.container.v1beta1.NodePool.UpdateInfoOrBuilder getUpdateInfoOrBuilder() { - return updateInfo_ == null - ? com.google.container.v1beta1.NodePool.UpdateInfo.getDefaultInstance() - : updateInfo_; - } - - public static final int ETAG_FIELD_NUMBER = 110; - - @SuppressWarnings("serial") - private volatile java.lang.Object etag_ = ""; - /** - * - * - *
-   * This checksum is computed by the server based on the value of node pool
-   * fields, and may be sent on update requests to ensure the client has an
-   * up-to-date value before proceeding.
-   * 
- * - * string etag = 110; - * - * @return The etag. - */ - @java.lang.Override - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } - } - /** - * - * - *
-   * This checksum is computed by the server based on the value of node pool
-   * fields, and may be sent on update requests to ensure the client has an
-   * up-to-date value before proceeding.
-   * 
- * - * string etag = 110; - * - * @return The bytes for etag. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int QUEUED_PROVISIONING_FIELD_NUMBER = 112; - private com.google.container.v1beta1.NodePool.QueuedProvisioning queuedProvisioning_; - /** - * - * - *
-   * Specifies the configuration of queued provisioning.
-   * 
- * - * .google.container.v1beta1.NodePool.QueuedProvisioning queued_provisioning = 112; - * - * @return Whether the queuedProvisioning field is set. - */ - @java.lang.Override - public boolean hasQueuedProvisioning() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * - * - *
-   * Specifies the configuration of queued provisioning.
-   * 
- * - * .google.container.v1beta1.NodePool.QueuedProvisioning queued_provisioning = 112; - * - * @return The queuedProvisioning. - */ - @java.lang.Override - public com.google.container.v1beta1.NodePool.QueuedProvisioning getQueuedProvisioning() { - return queuedProvisioning_ == null - ? com.google.container.v1beta1.NodePool.QueuedProvisioning.getDefaultInstance() - : queuedProvisioning_; - } - /** - * - * - *
-   * Specifies the configuration of queued provisioning.
-   * 
- * - * .google.container.v1beta1.NodePool.QueuedProvisioning queued_provisioning = 112; - */ - @java.lang.Override - public com.google.container.v1beta1.NodePool.QueuedProvisioningOrBuilder - getQueuedProvisioningOrBuilder() { - return queuedProvisioning_ == null - ? com.google.container.v1beta1.NodePool.QueuedProvisioning.getDefaultInstance() - : queuedProvisioning_; - } - - public static final int BEST_EFFORT_PROVISIONING_FIELD_NUMBER = 113; - private com.google.container.v1beta1.BestEffortProvisioning bestEffortProvisioning_; - /** - * - * - *
-   * Enable best effort provisioning for nodes
-   * 
- * - * .google.container.v1beta1.BestEffortProvisioning best_effort_provisioning = 113; - * - * @return Whether the bestEffortProvisioning field is set. - */ - @java.lang.Override - public boolean hasBestEffortProvisioning() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * - * - *
-   * Enable best effort provisioning for nodes
-   * 
- * - * .google.container.v1beta1.BestEffortProvisioning best_effort_provisioning = 113; - * - * @return The bestEffortProvisioning. - */ - @java.lang.Override - public com.google.container.v1beta1.BestEffortProvisioning getBestEffortProvisioning() { - return bestEffortProvisioning_ == null - ? com.google.container.v1beta1.BestEffortProvisioning.getDefaultInstance() - : bestEffortProvisioning_; - } - /** - * - * - *
-   * Enable best effort provisioning for nodes
-   * 
- * - * .google.container.v1beta1.BestEffortProvisioning best_effort_provisioning = 113; - */ - @java.lang.Override - public com.google.container.v1beta1.BestEffortProvisioningOrBuilder - getBestEffortProvisioningOrBuilder() { - return bestEffortProvisioning_ == null - ? com.google.container.v1beta1.BestEffortProvisioning.getDefaultInstance() - : bestEffortProvisioning_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getConfig()); - } - if (initialNodeCount_ != 0) { - output.writeInt32(3, initialNodeCount_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(4, getAutoscaling()); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(5, getManagement()); - } - if (((bitField0_ & 0x00000010) != 0)) { - 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 (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(14, getNetworkConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 100, selfLink_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 104, statusMessage_); - } - for (int i = 0; i < conditions_.size(); i++) { - output.writeMessage(105, conditions_.get(i)); - } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeMessage(107, getUpgradeSettings()); - } - if (((bitField0_ & 0x00000040) != 0)) { - output.writeMessage(108, getPlacementPolicy()); - } - if (((bitField0_ & 0x00000080) != 0)) { - output.writeMessage(109, getUpdateInfo()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 110, etag_); - } - if (((bitField0_ & 0x00000100) != 0)) { - output.writeMessage(112, getQueuedProvisioning()); - } - if (((bitField0_ & 0x00000200) != 0)) { - output.writeMessage(113, getBestEffortProvisioning()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConfig()); - } - if (initialNodeCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, initialNodeCount_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAutoscaling()); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getManagement()); - } - if (((bitField0_ & 0x00000010) != 0)) { - 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 (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getNetworkConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, selfLink_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { - 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 (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(107, getUpgradeSettings()); - } - if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(108, getPlacementPolicy()); - } - if (((bitField0_ & 0x00000080) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(109, getUpdateInfo()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(110, etag_); - } - if (((bitField0_ & 0x00000100) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(112, getQueuedProvisioning()); - } - if (((bitField0_ & 0x00000200) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 113, getBestEffortProvisioning()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (hasNetworkConfig() != other.hasNetworkConfig()) return false; - if (hasNetworkConfig()) { - if (!getNetworkConfig().equals(other.getNetworkConfig())) return false; - } - if (!getSelfLink().equals(other.getSelfLink())) return false; - if (!getVersion().equals(other.getVersion())) return false; - if (!getInstanceGroupUrlsList().equals(other.getInstanceGroupUrlsList())) return false; - 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 (hasPlacementPolicy() != other.hasPlacementPolicy()) return false; - if (hasPlacementPolicy()) { - if (!getPlacementPolicy().equals(other.getPlacementPolicy())) return false; - } - if (hasUpdateInfo() != other.hasUpdateInfo()) return false; - if (hasUpdateInfo()) { - if (!getUpdateInfo().equals(other.getUpdateInfo())) return false; - } - if (!getEtag().equals(other.getEtag())) return false; - if (hasQueuedProvisioning() != other.hasQueuedProvisioning()) return false; - if (hasQueuedProvisioning()) { - if (!getQueuedProvisioning().equals(other.getQueuedProvisioning())) return false; - } - if (hasBestEffortProvisioning() != other.hasBestEffortProvisioning()) return false; - if (hasBestEffortProvisioning()) { - if (!getBestEffortProvisioning().equals(other.getBestEffortProvisioning())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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(); - } - if (hasNetworkConfig()) { - hash = (37 * hash) + NETWORK_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getNetworkConfig().hashCode(); - } - hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; - hash = (53 * hash) + getSelfLink().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - 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(); - } - if (hasPlacementPolicy()) { - hash = (37 * hash) + PLACEMENT_POLICY_FIELD_NUMBER; - hash = (53 * hash) + getPlacementPolicy().hashCode(); - } - if (hasUpdateInfo()) { - hash = (37 * hash) + UPDATE_INFO_FIELD_NUMBER; - hash = (53 * hash) + getUpdateInfo().hashCode(); - } - hash = (37 * hash) + ETAG_FIELD_NUMBER; - hash = (53 * hash) + getEtag().hashCode(); - if (hasQueuedProvisioning()) { - hash = (37 * hash) + QUEUED_PROVISIONING_FIELD_NUMBER; - hash = (53 * hash) + getQueuedProvisioning().hashCode(); - } - if (hasBestEffortProvisioning()) { - hash = (37 * hash) + BEST_EFFORT_PROVISIONING_FIELD_NUMBER; - hash = (53 * hash) + getBestEffortProvisioning().hashCode(); - } - hash = (29 * hash) + getUnknownFields().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) { - getConfigFieldBuilder(); - getNetworkConfigFieldBuilder(); - getAutoscalingFieldBuilder(); - getManagementFieldBuilder(); - getMaxPodsConstraintFieldBuilder(); - getConditionsFieldBuilder(); - getUpgradeSettingsFieldBuilder(); - getPlacementPolicyFieldBuilder(); - getUpdateInfoFieldBuilder(); - getQueuedProvisioningFieldBuilder(); - getBestEffortProvisioningFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - config_ = null; - if (configBuilder_ != null) { - configBuilder_.dispose(); - configBuilder_ = null; - } - initialNodeCount_ = 0; - locations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - networkConfig_ = null; - if (networkConfigBuilder_ != null) { - networkConfigBuilder_.dispose(); - networkConfigBuilder_ = null; - } - selfLink_ = ""; - version_ = ""; - instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - status_ = 0; - statusMessage_ = ""; - autoscaling_ = null; - if (autoscalingBuilder_ != null) { - autoscalingBuilder_.dispose(); - autoscalingBuilder_ = null; - } - management_ = null; - if (managementBuilder_ != null) { - managementBuilder_.dispose(); - managementBuilder_ = null; - } - maxPodsConstraint_ = null; - if (maxPodsConstraintBuilder_ != null) { - maxPodsConstraintBuilder_.dispose(); - maxPodsConstraintBuilder_ = null; - } - if (conditionsBuilder_ == null) { - conditions_ = java.util.Collections.emptyList(); - } else { - conditions_ = null; - conditionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00002000); - podIpv4CidrSize_ = 0; - upgradeSettings_ = null; - if (upgradeSettingsBuilder_ != null) { - upgradeSettingsBuilder_.dispose(); - upgradeSettingsBuilder_ = null; - } - placementPolicy_ = null; - if (placementPolicyBuilder_ != null) { - placementPolicyBuilder_.dispose(); - placementPolicyBuilder_ = null; - } - updateInfo_ = null; - if (updateInfoBuilder_ != null) { - updateInfoBuilder_.dispose(); - updateInfoBuilder_ = null; - } - etag_ = ""; - queuedProvisioning_ = null; - if (queuedProvisioningBuilder_ != null) { - queuedProvisioningBuilder_.dispose(); - queuedProvisioningBuilder_ = null; - } - bestEffortProvisioning_ = null; - if (bestEffortProvisioningBuilder_ != null) { - bestEffortProvisioningBuilder_.dispose(); - bestEffortProvisioningBuilder_ = 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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.container.v1beta1.NodePool result) { - if (conditionsBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0)) { - conditions_ = java.util.Collections.unmodifiableList(conditions_); - bitField0_ = (bitField0_ & ~0x00002000); - } - result.conditions_ = conditions_; - } else { - result.conditions_ = conditionsBuilder_.build(); - } - } - - private void buildPartial0(com.google.container.v1beta1.NodePool result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.config_ = configBuilder_ == null ? config_ : configBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.initialNodeCount_ = initialNodeCount_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - locations_.makeImmutable(); - result.locations_ = locations_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.networkConfig_ = - networkConfigBuilder_ == null ? networkConfig_ : networkConfigBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.selfLink_ = selfLink_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.version_ = version_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - instanceGroupUrls_.makeImmutable(); - result.instanceGroupUrls_ = instanceGroupUrls_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.status_ = status_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.statusMessage_ = statusMessage_; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.autoscaling_ = - autoscalingBuilder_ == null ? autoscaling_ : autoscalingBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.management_ = managementBuilder_ == null ? management_ : managementBuilder_.build(); - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.maxPodsConstraint_ = - maxPodsConstraintBuilder_ == null - ? maxPodsConstraint_ - : maxPodsConstraintBuilder_.build(); - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.podIpv4CidrSize_ = podIpv4CidrSize_; - } - if (((from_bitField0_ & 0x00008000) != 0)) { - result.upgradeSettings_ = - upgradeSettingsBuilder_ == null ? upgradeSettings_ : upgradeSettingsBuilder_.build(); - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00010000) != 0)) { - result.placementPolicy_ = - placementPolicyBuilder_ == null ? placementPolicy_ : placementPolicyBuilder_.build(); - to_bitField0_ |= 0x00000040; - } - if (((from_bitField0_ & 0x00020000) != 0)) { - result.updateInfo_ = updateInfoBuilder_ == null ? updateInfo_ : updateInfoBuilder_.build(); - to_bitField0_ |= 0x00000080; - } - if (((from_bitField0_ & 0x00040000) != 0)) { - result.etag_ = etag_; - } - if (((from_bitField0_ & 0x00080000) != 0)) { - result.queuedProvisioning_ = - queuedProvisioningBuilder_ == null - ? queuedProvisioning_ - : queuedProvisioningBuilder_.build(); - to_bitField0_ |= 0x00000100; - } - if (((from_bitField0_ & 0x00100000) != 0)) { - result.bestEffortProvisioning_ = - bestEffortProvisioningBuilder_ == null - ? bestEffortProvisioning_ - : bestEffortProvisioningBuilder_.build(); - to_bitField0_ |= 0x00000200; - } - result.bitField0_ |= to_bitField0_; - } - - @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_; - bitField0_ |= 0x00000001; - 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_ |= 0x00000008; - } else { - ensureLocationsIsMutable(); - locations_.addAll(other.locations_); - } - onChanged(); - } - if (other.hasNetworkConfig()) { - mergeNetworkConfig(other.getNetworkConfig()); - } - if (!other.getSelfLink().isEmpty()) { - selfLink_ = other.selfLink_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - bitField0_ |= 0x00000040; - onChanged(); - } - if (!other.instanceGroupUrls_.isEmpty()) { - if (instanceGroupUrls_.isEmpty()) { - instanceGroupUrls_ = other.instanceGroupUrls_; - bitField0_ |= 0x00000080; - } else { - ensureInstanceGroupUrlsIsMutable(); - instanceGroupUrls_.addAll(other.instanceGroupUrls_); - } - onChanged(); - } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); - } - if (!other.getStatusMessage().isEmpty()) { - statusMessage_ = other.statusMessage_; - bitField0_ |= 0x00000200; - 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_ & ~0x00002000); - } else { - ensureConditionsIsMutable(); - conditions_.addAll(other.conditions_); - } - onChanged(); - } - } else { - if (!other.conditions_.isEmpty()) { - if (conditionsBuilder_.isEmpty()) { - conditionsBuilder_.dispose(); - conditionsBuilder_ = null; - conditions_ = other.conditions_; - bitField0_ = (bitField0_ & ~0x00002000); - 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()); - } - if (other.hasPlacementPolicy()) { - mergePlacementPolicy(other.getPlacementPolicy()); - } - if (other.hasUpdateInfo()) { - mergeUpdateInfo(other.getUpdateInfo()); - } - if (!other.getEtag().isEmpty()) { - etag_ = other.etag_; - bitField0_ |= 0x00040000; - onChanged(); - } - if (other.hasQueuedProvisioning()) { - mergeQueuedProvisioning(other.getQueuedProvisioning()); - } - if (other.hasBestEffortProvisioning()) { - mergeBestEffortProvisioning(other.getBestEffortProvisioning()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - initialNodeCount_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - input.readMessage(getAutoscalingFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; - break; - } // case 34 - case 42: - { - input.readMessage(getManagementFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; - break; - } // case 42 - case 50: - { - input.readMessage( - getMaxPodsConstraintFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; - break; - } // case 50 - case 56: - { - podIpv4CidrSize_ = input.readInt32(); - bitField0_ |= 0x00004000; - break; - } // case 56 - case 106: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureLocationsIsMutable(); - locations_.add(s); - break; - } // case 106 - case 114: - { - input.readMessage(getNetworkConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 114 - case 802: - { - selfLink_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 802 - case 810: - { - version_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 810 - case 818: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureInstanceGroupUrlsIsMutable(); - instanceGroupUrls_.add(s); - break; - } // case 818 - case 824: - { - status_ = input.readEnum(); - bitField0_ |= 0x00000100; - break; - } // case 824 - case 834: - { - statusMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; - break; - } // case 834 - case 842: - { - com.google.container.v1beta1.StatusCondition m = - input.readMessage( - com.google.container.v1beta1.StatusCondition.parser(), extensionRegistry); - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - conditions_.add(m); - } else { - conditionsBuilder_.addMessage(m); - } - break; - } // case 842 - case 858: - { - input.readMessage(getUpgradeSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00008000; - break; - } // case 858 - case 866: - { - input.readMessage(getPlacementPolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; - break; - } // case 866 - case 874: - { - input.readMessage(getUpdateInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00020000; - break; - } // case 874 - case 882: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00040000; - break; - } // case 882 - case 898: - { - input.readMessage( - getQueuedProvisioningFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00080000; - break; - } // case 898 - case 906: - { - input.readMessage( - getBestEffortProvisioningFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00100000; - break; - } // case 906 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the node pool.
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - 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 ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * 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; - } else { - configBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - 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(); - } else { - configBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - 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 (((bitField0_ & 0x00000002) != 0) - && config_ != null - && config_ != com.google.container.v1beta1.NodeConfig.getDefaultInstance()) { - getConfigBuilder().mergeFrom(value); - } else { - config_ = value; - } - } else { - configBuilder_.mergeFrom(value); - } - if (config_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The node configuration of the pool.
-     * 
- * - * .google.container.v1beta1.NodeConfig config = 2; - */ - public Builder clearConfig() { - bitField0_ = (bitField0_ & ~0x00000002); - config_ = null; - if (configBuilder_ != null) { - configBuilder_.dispose(); - configBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The node configuration of the pool.
-     * 
- * - * .google.container.v1beta1.NodeConfig config = 2; - */ - public com.google.container.v1beta1.NodeConfig.Builder getConfigBuilder() { - bitField0_ |= 0x00000002; - 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; - bitField0_ |= 0x00000004; - 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() { - bitField0_ = (bitField0_ & ~0x00000004); - initialNodeCount_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList locations_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureLocationsIsMutable() { - if (!locations_.isModifiable()) { - locations_ = new com.google.protobuf.LazyStringArrayList(locations_); - } - bitField0_ |= 0x00000008; - } - /** - * - * - *
-     * 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() { - locations_.makeImmutable(); - 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); - } - /** - * - * - *
-     * 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); - bitField0_ |= 0x00000008; - 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); - bitField0_ |= 0x00000008; - 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_); - bitField0_ |= 0x00000008; - 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.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - ; - 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); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private com.google.container.v1beta1.NodeNetworkConfig networkConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodeNetworkConfig, - com.google.container.v1beta1.NodeNetworkConfig.Builder, - com.google.container.v1beta1.NodeNetworkConfigOrBuilder> - networkConfigBuilder_; - /** - * - * - *
-     * Networking configuration for this NodePool. If specified, it overrides the
-     * cluster-level defaults.
-     * 
- * - * .google.container.v1beta1.NodeNetworkConfig network_config = 14; - * - * @return Whether the networkConfig field is set. - */ - public boolean hasNetworkConfig() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-     * Networking configuration for this NodePool. If specified, it overrides the
-     * cluster-level defaults.
-     * 
- * - * .google.container.v1beta1.NodeNetworkConfig network_config = 14; - * - * @return The networkConfig. - */ - public com.google.container.v1beta1.NodeNetworkConfig getNetworkConfig() { - if (networkConfigBuilder_ == null) { - return networkConfig_ == null - ? com.google.container.v1beta1.NodeNetworkConfig.getDefaultInstance() - : networkConfig_; - } else { - return networkConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Networking configuration for this NodePool. If specified, it overrides the
-     * cluster-level defaults.
-     * 
- * - * .google.container.v1beta1.NodeNetworkConfig network_config = 14; - */ - public Builder setNetworkConfig(com.google.container.v1beta1.NodeNetworkConfig value) { - if (networkConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - networkConfig_ = value; - } else { - networkConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Networking configuration for this NodePool. If specified, it overrides the
-     * cluster-level defaults.
-     * 
- * - * .google.container.v1beta1.NodeNetworkConfig network_config = 14; - */ - public Builder setNetworkConfig( - com.google.container.v1beta1.NodeNetworkConfig.Builder builderForValue) { - if (networkConfigBuilder_ == null) { - networkConfig_ = builderForValue.build(); - } else { - networkConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Networking configuration for this NodePool. If specified, it overrides the
-     * cluster-level defaults.
-     * 
- * - * .google.container.v1beta1.NodeNetworkConfig network_config = 14; - */ - public Builder mergeNetworkConfig(com.google.container.v1beta1.NodeNetworkConfig value) { - if (networkConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && networkConfig_ != null - && networkConfig_ - != com.google.container.v1beta1.NodeNetworkConfig.getDefaultInstance()) { - getNetworkConfigBuilder().mergeFrom(value); - } else { - networkConfig_ = value; - } - } else { - networkConfigBuilder_.mergeFrom(value); - } - if (networkConfig_ != null) { - bitField0_ |= 0x00000010; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Networking configuration for this NodePool. If specified, it overrides the
-     * cluster-level defaults.
-     * 
- * - * .google.container.v1beta1.NodeNetworkConfig network_config = 14; - */ - public Builder clearNetworkConfig() { - bitField0_ = (bitField0_ & ~0x00000010); - networkConfig_ = null; - if (networkConfigBuilder_ != null) { - networkConfigBuilder_.dispose(); - networkConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Networking configuration for this NodePool. If specified, it overrides the
-     * cluster-level defaults.
-     * 
- * - * .google.container.v1beta1.NodeNetworkConfig network_config = 14; - */ - public com.google.container.v1beta1.NodeNetworkConfig.Builder getNetworkConfigBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getNetworkConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Networking configuration for this NodePool. If specified, it overrides the
-     * cluster-level defaults.
-     * 
- * - * .google.container.v1beta1.NodeNetworkConfig network_config = 14; - */ - public com.google.container.v1beta1.NodeNetworkConfigOrBuilder getNetworkConfigOrBuilder() { - if (networkConfigBuilder_ != null) { - return networkConfigBuilder_.getMessageOrBuilder(); - } else { - return networkConfig_ == null - ? com.google.container.v1beta1.NodeNetworkConfig.getDefaultInstance() - : networkConfig_; - } - } - /** - * - * - *
-     * Networking configuration for this NodePool. If specified, it overrides the
-     * cluster-level defaults.
-     * 
- * - * .google.container.v1beta1.NodeNetworkConfig network_config = 14; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodeNetworkConfig, - com.google.container.v1beta1.NodeNetworkConfig.Builder, - com.google.container.v1beta1.NodeNetworkConfigOrBuilder> - getNetworkConfigFieldBuilder() { - if (networkConfigBuilder_ == null) { - networkConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodeNetworkConfig, - com.google.container.v1beta1.NodeNetworkConfig.Builder, - com.google.container.v1beta1.NodeNetworkConfigOrBuilder>( - getNetworkConfig(), getParentForChildren(), isClean()); - networkConfig_ = null; - } - return networkConfigBuilder_; - } - - 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; - bitField0_ |= 0x00000020; - 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(); - bitField0_ = (bitField0_ & ~0x00000020); - 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; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - private java.lang.Object version_ = ""; - /** - * - * - *
-     * The version of Kubernetes running on this NodePool's nodes. If unspecified,
-     * it defaults as described
-     * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version).
-     * 
- * - * 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 Kubernetes running on this NodePool's nodes. If unspecified,
-     * it defaults as described
-     * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version).
-     * 
- * - * 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 Kubernetes running on this NodePool's nodes. If unspecified,
-     * it defaults as described
-     * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version).
-     * 
- * - * 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; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-     * The version of Kubernetes running on this NodePool's nodes. If unspecified,
-     * it defaults as described
-     * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version).
-     * 
- * - * string version = 101; - * - * @return This builder for chaining. - */ - public Builder clearVersion() { - version_ = getDefaultInstance().getVersion(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; - } - /** - * - * - *
-     * The version of Kubernetes running on this NodePool's nodes. If unspecified,
-     * it defaults as described
-     * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version).
-     * 
- * - * 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; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList instanceGroupUrls_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureInstanceGroupUrlsIsMutable() { - if (!instanceGroupUrls_.isModifiable()) { - instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(instanceGroupUrls_); - } - bitField0_ |= 0x00000080; - } - /** - * - * - *
-     * [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.
-     * During the node pool blue-green upgrade operation, the URLs contain both
-     * blue and green resources.
-     * 
- * - * repeated string instance_group_urls = 102; - * - * @return A list containing the instanceGroupUrls. - */ - public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { - instanceGroupUrls_.makeImmutable(); - 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.
-     * During the node pool blue-green upgrade operation, the URLs contain both
-     * blue and green resources.
-     * 
- * - * 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.
-     * During the node pool blue-green upgrade operation, the URLs contain both
-     * blue and green resources.
-     * 
- * - * 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.
-     * During the node pool blue-green upgrade operation, the URLs contain both
-     * blue and green resources.
-     * 
- * - * 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.
-     * During the node pool blue-green upgrade operation, the URLs contain both
-     * blue and green resources.
-     * 
- * - * 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); - bitField0_ |= 0x00000080; - 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.
-     * During the node pool blue-green upgrade operation, the URLs contain both
-     * blue and green resources.
-     * 
- * - * 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); - bitField0_ |= 0x00000080; - 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.
-     * During the node pool blue-green upgrade operation, the URLs contain both
-     * blue and green resources.
-     * 
- * - * 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_); - bitField0_ |= 0x00000080; - 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.
-     * During the node pool blue-green upgrade operation, the URLs contain both
-     * blue and green resources.
-     * 
- * - * repeated string instance_group_urls = 102; - * - * @return This builder for chaining. - */ - public Builder clearInstanceGroupUrls() { - instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - ; - 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.
-     * During the node pool blue-green upgrade operation, the URLs contain both
-     * blue and green resources.
-     * 
- * - * 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); - bitField0_ |= 0x00000080; - 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; - bitField0_ |= 0x00000100; - 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() { - com.google.container.v1beta1.NodePool.Status result = - com.google.container.v1beta1.NodePool.Status.forNumber(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(); - } - bitField0_ |= 0x00000100; - 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() { - bitField0_ = (bitField0_ & ~0x00000100); - 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]; - * - * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4033 - * @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]; - * - * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4033 - * @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]; - * - * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4033 - * @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; - bitField0_ |= 0x00000200; - 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]; - * - * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4033 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearStatusMessage() { - statusMessage_ = getDefaultInstance().getStatusMessage(); - bitField0_ = (bitField0_ & ~0x00000200); - 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]; - * - * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4033 - * @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; - bitField0_ |= 0x00000200; - 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 ((bitField0_ & 0x00000400) != 0); - } - /** - * - * - *
-     * 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; - } else { - autoscalingBuilder_.setMessage(value); - } - bitField0_ |= 0x00000400; - onChanged(); - 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(); - } else { - autoscalingBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000400; - onChanged(); - 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 (((bitField0_ & 0x00000400) != 0) - && autoscaling_ != null - && autoscaling_ - != com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance()) { - getAutoscalingBuilder().mergeFrom(value); - } else { - autoscaling_ = value; - } - } else { - autoscalingBuilder_.mergeFrom(value); - } - if (autoscaling_ != null) { - bitField0_ |= 0x00000400; - onChanged(); - } - 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() { - bitField0_ = (bitField0_ & ~0x00000400); - autoscaling_ = null; - if (autoscalingBuilder_ != null) { - autoscalingBuilder_.dispose(); - autoscalingBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000400; - 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 ((bitField0_ & 0x00000800) != 0); - } - /** - * - * - *
-     * 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; - } else { - managementBuilder_.setMessage(value); - } - bitField0_ |= 0x00000800; - onChanged(); - 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(); - } else { - managementBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000800; - onChanged(); - 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 (((bitField0_ & 0x00000800) != 0) - && management_ != null - && management_ != com.google.container.v1beta1.NodeManagement.getDefaultInstance()) { - getManagementBuilder().mergeFrom(value); - } else { - management_ = value; - } - } else { - managementBuilder_.mergeFrom(value); - } - if (management_ != null) { - bitField0_ |= 0x00000800; - onChanged(); - } - return this; - } - /** - * - * - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1beta1.NodeManagement management = 5; - */ - public Builder clearManagement() { - bitField0_ = (bitField0_ & ~0x00000800); - management_ = null; - if (managementBuilder_ != null) { - managementBuilder_.dispose(); - managementBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1beta1.NodeManagement management = 5; - */ - public com.google.container.v1beta1.NodeManagement.Builder getManagementBuilder() { - bitField0_ |= 0x00000800; - 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 ((bitField0_ & 0x00001000) != 0); - } - /** - * - * - *
-     * 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; - } else { - maxPodsConstraintBuilder_.setMessage(value); - } - bitField0_ |= 0x00001000; - onChanged(); - 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(); - } else { - maxPodsConstraintBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00001000; - onChanged(); - 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 (((bitField0_ & 0x00001000) != 0) - && maxPodsConstraint_ != null - && maxPodsConstraint_ - != com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance()) { - getMaxPodsConstraintBuilder().mergeFrom(value); - } else { - maxPodsConstraint_ = value; - } - } else { - maxPodsConstraintBuilder_.mergeFrom(value); - } - if (maxPodsConstraint_ != null) { - bitField0_ |= 0x00001000; - onChanged(); - } - 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() { - bitField0_ = (bitField0_ & ~0x00001000); - maxPodsConstraint_ = null; - if (maxPodsConstraintBuilder_ != null) { - maxPodsConstraintBuilder_.dispose(); - maxPodsConstraintBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00001000; - 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_ & 0x00002000) != 0)) { - conditions_ = - new java.util.ArrayList(conditions_); - bitField0_ |= 0x00002000; - } - } - - 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_ & ~0x00002000); - 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_ & 0x00002000) != 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; - bitField0_ |= 0x00004000; - 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() { - bitField0_ = (bitField0_ & ~0x00004000); - 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 ((bitField0_ & 0x00008000) != 0); - } - /** - * - * - *
-     * 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; - } else { - upgradeSettingsBuilder_.setMessage(value); - } - bitField0_ |= 0x00008000; - onChanged(); - 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(); - } else { - upgradeSettingsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00008000; - onChanged(); - 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 (((bitField0_ & 0x00008000) != 0) - && upgradeSettings_ != null - && upgradeSettings_ - != com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance()) { - getUpgradeSettingsBuilder().mergeFrom(value); - } else { - upgradeSettings_ = value; - } - } else { - upgradeSettingsBuilder_.mergeFrom(value); - } - if (upgradeSettings_ != null) { - bitField0_ |= 0x00008000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; - */ - public Builder clearUpgradeSettings() { - bitField0_ = (bitField0_ & ~0x00008000); - upgradeSettings_ = null; - if (upgradeSettingsBuilder_ != null) { - upgradeSettingsBuilder_.dispose(); - upgradeSettingsBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00008000; - 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_; - } - - private com.google.container.v1beta1.NodePool.PlacementPolicy placementPolicy_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePool.PlacementPolicy, - com.google.container.v1beta1.NodePool.PlacementPolicy.Builder, - com.google.container.v1beta1.NodePool.PlacementPolicyOrBuilder> - placementPolicyBuilder_; - /** - * - * - *
-     * Specifies the node placement policy.
-     * 
- * - * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; - * - * @return Whether the placementPolicy field is set. - */ - public boolean hasPlacementPolicy() { - return ((bitField0_ & 0x00010000) != 0); - } - /** - * - * - *
-     * Specifies the node placement policy.
-     * 
- * - * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; - * - * @return The placementPolicy. - */ - public com.google.container.v1beta1.NodePool.PlacementPolicy getPlacementPolicy() { - if (placementPolicyBuilder_ == null) { - return placementPolicy_ == null - ? com.google.container.v1beta1.NodePool.PlacementPolicy.getDefaultInstance() - : placementPolicy_; - } else { - return placementPolicyBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Specifies the node placement policy.
-     * 
- * - * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; - */ - public Builder setPlacementPolicy(com.google.container.v1beta1.NodePool.PlacementPolicy value) { - if (placementPolicyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - placementPolicy_ = value; - } else { - placementPolicyBuilder_.setMessage(value); - } - bitField0_ |= 0x00010000; - onChanged(); - return this; - } - /** - * - * - *
-     * Specifies the node placement policy.
-     * 
- * - * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; - */ - public Builder setPlacementPolicy( - com.google.container.v1beta1.NodePool.PlacementPolicy.Builder builderForValue) { - if (placementPolicyBuilder_ == null) { - placementPolicy_ = builderForValue.build(); - } else { - placementPolicyBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00010000; - onChanged(); - return this; - } - /** - * - * - *
-     * Specifies the node placement policy.
-     * 
- * - * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; - */ - public Builder mergePlacementPolicy( - com.google.container.v1beta1.NodePool.PlacementPolicy value) { - if (placementPolicyBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) - && placementPolicy_ != null - && placementPolicy_ - != com.google.container.v1beta1.NodePool.PlacementPolicy.getDefaultInstance()) { - getPlacementPolicyBuilder().mergeFrom(value); - } else { - placementPolicy_ = value; - } - } else { - placementPolicyBuilder_.mergeFrom(value); - } - if (placementPolicy_ != null) { - bitField0_ |= 0x00010000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Specifies the node placement policy.
-     * 
- * - * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; - */ - public Builder clearPlacementPolicy() { - bitField0_ = (bitField0_ & ~0x00010000); - placementPolicy_ = null; - if (placementPolicyBuilder_ != null) { - placementPolicyBuilder_.dispose(); - placementPolicyBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Specifies the node placement policy.
-     * 
- * - * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; - */ - public com.google.container.v1beta1.NodePool.PlacementPolicy.Builder - getPlacementPolicyBuilder() { - bitField0_ |= 0x00010000; - onChanged(); - return getPlacementPolicyFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Specifies the node placement policy.
-     * 
- * - * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; - */ - public com.google.container.v1beta1.NodePool.PlacementPolicyOrBuilder - getPlacementPolicyOrBuilder() { - if (placementPolicyBuilder_ != null) { - return placementPolicyBuilder_.getMessageOrBuilder(); - } else { - return placementPolicy_ == null - ? com.google.container.v1beta1.NodePool.PlacementPolicy.getDefaultInstance() - : placementPolicy_; - } - } - /** - * - * - *
-     * Specifies the node placement policy.
-     * 
- * - * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePool.PlacementPolicy, - com.google.container.v1beta1.NodePool.PlacementPolicy.Builder, - com.google.container.v1beta1.NodePool.PlacementPolicyOrBuilder> - getPlacementPolicyFieldBuilder() { - if (placementPolicyBuilder_ == null) { - placementPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePool.PlacementPolicy, - com.google.container.v1beta1.NodePool.PlacementPolicy.Builder, - com.google.container.v1beta1.NodePool.PlacementPolicyOrBuilder>( - getPlacementPolicy(), getParentForChildren(), isClean()); - placementPolicy_ = null; - } - return placementPolicyBuilder_; - } - - private com.google.container.v1beta1.NodePool.UpdateInfo updateInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePool.UpdateInfo, - com.google.container.v1beta1.NodePool.UpdateInfo.Builder, - com.google.container.v1beta1.NodePool.UpdateInfoOrBuilder> - updateInfoBuilder_; - /** - * - * - *
-     * Output only. [Output only] Update info contains relevant information during
-     * a node pool update.
-     * 
- * - * - * .google.container.v1beta1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateInfo field is set. - */ - public boolean hasUpdateInfo() { - return ((bitField0_ & 0x00020000) != 0); - } - /** - * - * - *
-     * Output only. [Output only] Update info contains relevant information during
-     * a node pool update.
-     * 
- * - * - * .google.container.v1beta1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateInfo. - */ - public com.google.container.v1beta1.NodePool.UpdateInfo getUpdateInfo() { - if (updateInfoBuilder_ == null) { - return updateInfo_ == null - ? com.google.container.v1beta1.NodePool.UpdateInfo.getDefaultInstance() - : updateInfo_; - } else { - return updateInfoBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. [Output only] Update info contains relevant information during
-     * a node pool update.
-     * 
- * - * - * .google.container.v1beta1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setUpdateInfo(com.google.container.v1beta1.NodePool.UpdateInfo value) { - if (updateInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateInfo_ = value; - } else { - updateInfoBuilder_.setMessage(value); - } - bitField0_ |= 0x00020000; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. [Output only] Update info contains relevant information during
-     * a node pool update.
-     * 
- * - * - * .google.container.v1beta1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setUpdateInfo( - com.google.container.v1beta1.NodePool.UpdateInfo.Builder builderForValue) { - if (updateInfoBuilder_ == null) { - updateInfo_ = builderForValue.build(); - } else { - updateInfoBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00020000; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. [Output only] Update info contains relevant information during
-     * a node pool update.
-     * 
- * - * - * .google.container.v1beta1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeUpdateInfo(com.google.container.v1beta1.NodePool.UpdateInfo value) { - if (updateInfoBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) - && updateInfo_ != null - && updateInfo_ - != com.google.container.v1beta1.NodePool.UpdateInfo.getDefaultInstance()) { - getUpdateInfoBuilder().mergeFrom(value); - } else { - updateInfo_ = value; - } - } else { - updateInfoBuilder_.mergeFrom(value); - } - if (updateInfo_ != null) { - bitField0_ |= 0x00020000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Output only. [Output only] Update info contains relevant information during
-     * a node pool update.
-     * 
- * - * - * .google.container.v1beta1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearUpdateInfo() { - bitField0_ = (bitField0_ & ~0x00020000); - updateInfo_ = null; - if (updateInfoBuilder_ != null) { - updateInfoBuilder_.dispose(); - updateInfoBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. [Output only] Update info contains relevant information during
-     * a node pool update.
-     * 
- * - * - * .google.container.v1beta1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.container.v1beta1.NodePool.UpdateInfo.Builder getUpdateInfoBuilder() { - bitField0_ |= 0x00020000; - onChanged(); - return getUpdateInfoFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. [Output only] Update info contains relevant information during
-     * a node pool update.
-     * 
- * - * - * .google.container.v1beta1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.container.v1beta1.NodePool.UpdateInfoOrBuilder getUpdateInfoOrBuilder() { - if (updateInfoBuilder_ != null) { - return updateInfoBuilder_.getMessageOrBuilder(); - } else { - return updateInfo_ == null - ? com.google.container.v1beta1.NodePool.UpdateInfo.getDefaultInstance() - : updateInfo_; - } - } - /** - * - * - *
-     * Output only. [Output only] Update info contains relevant information during
-     * a node pool update.
-     * 
- * - * - * .google.container.v1beta1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePool.UpdateInfo, - com.google.container.v1beta1.NodePool.UpdateInfo.Builder, - com.google.container.v1beta1.NodePool.UpdateInfoOrBuilder> - getUpdateInfoFieldBuilder() { - if (updateInfoBuilder_ == null) { - updateInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePool.UpdateInfo, - com.google.container.v1beta1.NodePool.UpdateInfo.Builder, - com.google.container.v1beta1.NodePool.UpdateInfoOrBuilder>( - getUpdateInfo(), getParentForChildren(), isClean()); - updateInfo_ = null; - } - return updateInfoBuilder_; - } - - private java.lang.Object etag_ = ""; - /** - * - * - *
-     * This checksum is computed by the server based on the value of node pool
-     * fields, and may be sent on update requests to ensure the client has an
-     * up-to-date value before proceeding.
-     * 
- * - * string etag = 110; - * - * @return The etag. - */ - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * This checksum is computed by the server based on the value of node pool
-     * fields, and may be sent on update requests to ensure the client has an
-     * up-to-date value before proceeding.
-     * 
- * - * string etag = 110; - * - * @return The bytes for etag. - */ - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * This checksum is computed by the server based on the value of node pool
-     * fields, and may be sent on update requests to ensure the client has an
-     * up-to-date value before proceeding.
-     * 
- * - * string etag = 110; - * - * @param value The etag to set. - * @return This builder for chaining. - */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - etag_ = value; - bitField0_ |= 0x00040000; - onChanged(); - return this; - } - /** - * - * - *
-     * This checksum is computed by the server based on the value of node pool
-     * fields, and may be sent on update requests to ensure the client has an
-     * up-to-date value before proceeding.
-     * 
- * - * string etag = 110; - * - * @return This builder for chaining. - */ - public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00040000); - onChanged(); - return this; - } - /** - * - * - *
-     * This checksum is computed by the server based on the value of node pool
-     * fields, and may be sent on update requests to ensure the client has an
-     * up-to-date value before proceeding.
-     * 
- * - * string etag = 110; - * - * @param value The bytes for etag to set. - * @return This builder for chaining. - */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - etag_ = value; - bitField0_ |= 0x00040000; - onChanged(); - return this; - } - - private com.google.container.v1beta1.NodePool.QueuedProvisioning queuedProvisioning_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePool.QueuedProvisioning, - com.google.container.v1beta1.NodePool.QueuedProvisioning.Builder, - com.google.container.v1beta1.NodePool.QueuedProvisioningOrBuilder> - queuedProvisioningBuilder_; - /** - * - * - *
-     * Specifies the configuration of queued provisioning.
-     * 
- * - * .google.container.v1beta1.NodePool.QueuedProvisioning queued_provisioning = 112; - * - * @return Whether the queuedProvisioning field is set. - */ - public boolean hasQueuedProvisioning() { - return ((bitField0_ & 0x00080000) != 0); - } - /** - * - * - *
-     * Specifies the configuration of queued provisioning.
-     * 
- * - * .google.container.v1beta1.NodePool.QueuedProvisioning queued_provisioning = 112; - * - * @return The queuedProvisioning. - */ - public com.google.container.v1beta1.NodePool.QueuedProvisioning getQueuedProvisioning() { - if (queuedProvisioningBuilder_ == null) { - return queuedProvisioning_ == null - ? com.google.container.v1beta1.NodePool.QueuedProvisioning.getDefaultInstance() - : queuedProvisioning_; - } else { - return queuedProvisioningBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Specifies the configuration of queued provisioning.
-     * 
- * - * .google.container.v1beta1.NodePool.QueuedProvisioning queued_provisioning = 112; - */ - public Builder setQueuedProvisioning( - com.google.container.v1beta1.NodePool.QueuedProvisioning value) { - if (queuedProvisioningBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - queuedProvisioning_ = value; - } else { - queuedProvisioningBuilder_.setMessage(value); - } - bitField0_ |= 0x00080000; - onChanged(); - return this; - } - /** - * - * - *
-     * Specifies the configuration of queued provisioning.
-     * 
- * - * .google.container.v1beta1.NodePool.QueuedProvisioning queued_provisioning = 112; - */ - public Builder setQueuedProvisioning( - com.google.container.v1beta1.NodePool.QueuedProvisioning.Builder builderForValue) { - if (queuedProvisioningBuilder_ == null) { - queuedProvisioning_ = builderForValue.build(); - } else { - queuedProvisioningBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00080000; - onChanged(); - return this; - } - /** - * - * - *
-     * Specifies the configuration of queued provisioning.
-     * 
- * - * .google.container.v1beta1.NodePool.QueuedProvisioning queued_provisioning = 112; - */ - public Builder mergeQueuedProvisioning( - com.google.container.v1beta1.NodePool.QueuedProvisioning value) { - if (queuedProvisioningBuilder_ == null) { - if (((bitField0_ & 0x00080000) != 0) - && queuedProvisioning_ != null - && queuedProvisioning_ - != com.google.container.v1beta1.NodePool.QueuedProvisioning.getDefaultInstance()) { - getQueuedProvisioningBuilder().mergeFrom(value); - } else { - queuedProvisioning_ = value; - } - } else { - queuedProvisioningBuilder_.mergeFrom(value); - } - if (queuedProvisioning_ != null) { - bitField0_ |= 0x00080000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Specifies the configuration of queued provisioning.
-     * 
- * - * .google.container.v1beta1.NodePool.QueuedProvisioning queued_provisioning = 112; - */ - public Builder clearQueuedProvisioning() { - bitField0_ = (bitField0_ & ~0x00080000); - queuedProvisioning_ = null; - if (queuedProvisioningBuilder_ != null) { - queuedProvisioningBuilder_.dispose(); - queuedProvisioningBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Specifies the configuration of queued provisioning.
-     * 
- * - * .google.container.v1beta1.NodePool.QueuedProvisioning queued_provisioning = 112; - */ - public com.google.container.v1beta1.NodePool.QueuedProvisioning.Builder - getQueuedProvisioningBuilder() { - bitField0_ |= 0x00080000; - onChanged(); - return getQueuedProvisioningFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Specifies the configuration of queued provisioning.
-     * 
- * - * .google.container.v1beta1.NodePool.QueuedProvisioning queued_provisioning = 112; - */ - public com.google.container.v1beta1.NodePool.QueuedProvisioningOrBuilder - getQueuedProvisioningOrBuilder() { - if (queuedProvisioningBuilder_ != null) { - return queuedProvisioningBuilder_.getMessageOrBuilder(); - } else { - return queuedProvisioning_ == null - ? com.google.container.v1beta1.NodePool.QueuedProvisioning.getDefaultInstance() - : queuedProvisioning_; - } - } - /** - * - * - *
-     * Specifies the configuration of queued provisioning.
-     * 
- * - * .google.container.v1beta1.NodePool.QueuedProvisioning queued_provisioning = 112; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePool.QueuedProvisioning, - com.google.container.v1beta1.NodePool.QueuedProvisioning.Builder, - com.google.container.v1beta1.NodePool.QueuedProvisioningOrBuilder> - getQueuedProvisioningFieldBuilder() { - if (queuedProvisioningBuilder_ == null) { - queuedProvisioningBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePool.QueuedProvisioning, - com.google.container.v1beta1.NodePool.QueuedProvisioning.Builder, - com.google.container.v1beta1.NodePool.QueuedProvisioningOrBuilder>( - getQueuedProvisioning(), getParentForChildren(), isClean()); - queuedProvisioning_ = null; - } - return queuedProvisioningBuilder_; - } - - private com.google.container.v1beta1.BestEffortProvisioning bestEffortProvisioning_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.BestEffortProvisioning, - com.google.container.v1beta1.BestEffortProvisioning.Builder, - com.google.container.v1beta1.BestEffortProvisioningOrBuilder> - bestEffortProvisioningBuilder_; - /** - * - * - *
-     * Enable best effort provisioning for nodes
-     * 
- * - * .google.container.v1beta1.BestEffortProvisioning best_effort_provisioning = 113; - * - * @return Whether the bestEffortProvisioning field is set. - */ - public boolean hasBestEffortProvisioning() { - return ((bitField0_ & 0x00100000) != 0); - } - /** - * - * - *
-     * Enable best effort provisioning for nodes
-     * 
- * - * .google.container.v1beta1.BestEffortProvisioning best_effort_provisioning = 113; - * - * @return The bestEffortProvisioning. - */ - public com.google.container.v1beta1.BestEffortProvisioning getBestEffortProvisioning() { - if (bestEffortProvisioningBuilder_ == null) { - return bestEffortProvisioning_ == null - ? com.google.container.v1beta1.BestEffortProvisioning.getDefaultInstance() - : bestEffortProvisioning_; - } else { - return bestEffortProvisioningBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Enable best effort provisioning for nodes
-     * 
- * - * .google.container.v1beta1.BestEffortProvisioning best_effort_provisioning = 113; - */ - public Builder setBestEffortProvisioning( - com.google.container.v1beta1.BestEffortProvisioning value) { - if (bestEffortProvisioningBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - bestEffortProvisioning_ = value; - } else { - bestEffortProvisioningBuilder_.setMessage(value); - } - bitField0_ |= 0x00100000; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable best effort provisioning for nodes
-     * 
- * - * .google.container.v1beta1.BestEffortProvisioning best_effort_provisioning = 113; - */ - public Builder setBestEffortProvisioning( - com.google.container.v1beta1.BestEffortProvisioning.Builder builderForValue) { - if (bestEffortProvisioningBuilder_ == null) { - bestEffortProvisioning_ = builderForValue.build(); - } else { - bestEffortProvisioningBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00100000; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable best effort provisioning for nodes
-     * 
- * - * .google.container.v1beta1.BestEffortProvisioning best_effort_provisioning = 113; - */ - public Builder mergeBestEffortProvisioning( - com.google.container.v1beta1.BestEffortProvisioning value) { - if (bestEffortProvisioningBuilder_ == null) { - if (((bitField0_ & 0x00100000) != 0) - && bestEffortProvisioning_ != null - && bestEffortProvisioning_ - != com.google.container.v1beta1.BestEffortProvisioning.getDefaultInstance()) { - getBestEffortProvisioningBuilder().mergeFrom(value); - } else { - bestEffortProvisioning_ = value; - } - } else { - bestEffortProvisioningBuilder_.mergeFrom(value); - } - if (bestEffortProvisioning_ != null) { - bitField0_ |= 0x00100000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Enable best effort provisioning for nodes
-     * 
- * - * .google.container.v1beta1.BestEffortProvisioning best_effort_provisioning = 113; - */ - public Builder clearBestEffortProvisioning() { - bitField0_ = (bitField0_ & ~0x00100000); - bestEffortProvisioning_ = null; - if (bestEffortProvisioningBuilder_ != null) { - bestEffortProvisioningBuilder_.dispose(); - bestEffortProvisioningBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Enable best effort provisioning for nodes
-     * 
- * - * .google.container.v1beta1.BestEffortProvisioning best_effort_provisioning = 113; - */ - public com.google.container.v1beta1.BestEffortProvisioning.Builder - getBestEffortProvisioningBuilder() { - bitField0_ |= 0x00100000; - onChanged(); - return getBestEffortProvisioningFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Enable best effort provisioning for nodes
-     * 
- * - * .google.container.v1beta1.BestEffortProvisioning best_effort_provisioning = 113; - */ - public com.google.container.v1beta1.BestEffortProvisioningOrBuilder - getBestEffortProvisioningOrBuilder() { - if (bestEffortProvisioningBuilder_ != null) { - return bestEffortProvisioningBuilder_.getMessageOrBuilder(); - } else { - return bestEffortProvisioning_ == null - ? com.google.container.v1beta1.BestEffortProvisioning.getDefaultInstance() - : bestEffortProvisioning_; - } - } - /** - * - * - *
-     * Enable best effort provisioning for nodes
-     * 
- * - * .google.container.v1beta1.BestEffortProvisioning best_effort_provisioning = 113; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.BestEffortProvisioning, - com.google.container.v1beta1.BestEffortProvisioning.Builder, - com.google.container.v1beta1.BestEffortProvisioningOrBuilder> - getBestEffortProvisioningFieldBuilder() { - if (bestEffortProvisioningBuilder_ == null) { - bestEffortProvisioningBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.BestEffortProvisioning, - com.google.container.v1beta1.BestEffortProvisioning.Builder, - com.google.container.v1beta1.BestEffortProvisioningOrBuilder>( - getBestEffortProvisioning(), getParentForChildren(), isClean()); - bestEffortProvisioning_ = null; - } - return bestEffortProvisioningBuilder_; - } - - @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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoConfig.java deleted file mode 100644 index 77eb2a33f02c..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoConfig.java +++ /dev/null @@ -1,1051 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * node pool configs that apply to all auto-provisioned node pools
- * in autopilot clusters and node auto-provisioning enabled clusters
- * 
- * - * Protobuf type {@code google.container.v1beta1.NodePoolAutoConfig} - */ -public final class NodePoolAutoConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodePoolAutoConfig) - NodePoolAutoConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodePoolAutoConfig.newBuilder() to construct. - private NodePoolAutoConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NodePoolAutoConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NodePoolAutoConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodePoolAutoConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodePoolAutoConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.NodePoolAutoConfig.class, - com.google.container.v1beta1.NodePoolAutoConfig.Builder.class); - } - - private int bitField0_; - public static final int NETWORK_TAGS_FIELD_NUMBER = 1; - private com.google.container.v1beta1.NetworkTags networkTags_; - /** - * - * - *
-   * 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 creation. Each tag within the list
-   * must comply with RFC1035.
-   * 
- * - * .google.container.v1beta1.NetworkTags network_tags = 1; - * - * @return Whether the networkTags field is set. - */ - @java.lang.Override - public boolean hasNetworkTags() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * 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 creation. Each tag within the list
-   * must comply with RFC1035.
-   * 
- * - * .google.container.v1beta1.NetworkTags network_tags = 1; - * - * @return The networkTags. - */ - @java.lang.Override - public com.google.container.v1beta1.NetworkTags getNetworkTags() { - return networkTags_ == null - ? com.google.container.v1beta1.NetworkTags.getDefaultInstance() - : networkTags_; - } - /** - * - * - *
-   * 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 creation. Each tag within the list
-   * must comply with RFC1035.
-   * 
- * - * .google.container.v1beta1.NetworkTags network_tags = 1; - */ - @java.lang.Override - public com.google.container.v1beta1.NetworkTagsOrBuilder getNetworkTagsOrBuilder() { - return networkTags_ == null - ? com.google.container.v1beta1.NetworkTags.getDefaultInstance() - : networkTags_; - } - - public static final int RESOURCE_MANAGER_TAGS_FIELD_NUMBER = 2; - private com.google.container.v1beta1.ResourceManagerTags resourceManagerTags_; - /** - * - * - *
-   * Resource manager tag keys and values to be attached to the nodes
-   * for managing Compute Engine firewalls using Network Firewall Policies.
-   * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 2; - * - * @return Whether the resourceManagerTags field is set. - */ - @java.lang.Override - public boolean hasResourceManagerTags() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * Resource manager tag keys and values to be attached to the nodes
-   * for managing Compute Engine firewalls using Network Firewall Policies.
-   * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 2; - * - * @return The resourceManagerTags. - */ - @java.lang.Override - public com.google.container.v1beta1.ResourceManagerTags getResourceManagerTags() { - return resourceManagerTags_ == null - ? com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance() - : resourceManagerTags_; - } - /** - * - * - *
-   * Resource manager tag keys and values to be attached to the nodes
-   * for managing Compute Engine firewalls using Network Firewall Policies.
-   * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 2; - */ - @java.lang.Override - public com.google.container.v1beta1.ResourceManagerTagsOrBuilder - getResourceManagerTagsOrBuilder() { - return resourceManagerTags_ == null - ? com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance() - : resourceManagerTags_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getNetworkTags()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getResourceManagerTags()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNetworkTags()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getResourceManagerTags()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.NodePoolAutoConfig)) { - return super.equals(obj); - } - com.google.container.v1beta1.NodePoolAutoConfig other = - (com.google.container.v1beta1.NodePoolAutoConfig) obj; - - if (hasNetworkTags() != other.hasNetworkTags()) return false; - if (hasNetworkTags()) { - if (!getNetworkTags().equals(other.getNetworkTags())) return false; - } - if (hasResourceManagerTags() != other.hasResourceManagerTags()) return false; - if (hasResourceManagerTags()) { - if (!getResourceManagerTags().equals(other.getResourceManagerTags())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasNetworkTags()) { - hash = (37 * hash) + NETWORK_TAGS_FIELD_NUMBER; - hash = (53 * hash) + getNetworkTags().hashCode(); - } - if (hasResourceManagerTags()) { - hash = (37 * hash) + RESOURCE_MANAGER_TAGS_FIELD_NUMBER; - hash = (53 * hash) + getResourceManagerTags().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.NodePoolAutoConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NodePoolAutoConfig parseFrom( - 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.NodePoolAutoConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NodePoolAutoConfig parseFrom( - com.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.NodePoolAutoConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NodePoolAutoConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.NodePoolAutoConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NodePoolAutoConfig parseFrom( - java.io.InputStream 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.NodePoolAutoConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NodePoolAutoConfig parseDelimitedFrom( - java.io.InputStream 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.NodePoolAutoConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NodePoolAutoConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.NodePoolAutoConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 pool configs that apply to all auto-provisioned node pools
-   * in autopilot clusters and node auto-provisioning enabled clusters
-   * 
- * - * Protobuf type {@code google.container.v1beta1.NodePoolAutoConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NodePoolAutoConfig) - com.google.container.v1beta1.NodePoolAutoConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodePoolAutoConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodePoolAutoConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.NodePoolAutoConfig.class, - com.google.container.v1beta1.NodePoolAutoConfig.Builder.class); - } - - // Construct using com.google.container.v1beta1.NodePoolAutoConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getNetworkTagsFieldBuilder(); - getResourceManagerTagsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - networkTags_ = null; - if (networkTagsBuilder_ != null) { - networkTagsBuilder_.dispose(); - networkTagsBuilder_ = null; - } - resourceManagerTags_ = null; - if (resourceManagerTagsBuilder_ != null) { - resourceManagerTagsBuilder_.dispose(); - resourceManagerTagsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodePoolAutoConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.NodePoolAutoConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.NodePoolAutoConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.NodePoolAutoConfig build() { - com.google.container.v1beta1.NodePoolAutoConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.NodePoolAutoConfig buildPartial() { - com.google.container.v1beta1.NodePoolAutoConfig result = - new com.google.container.v1beta1.NodePoolAutoConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.NodePoolAutoConfig result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.networkTags_ = - networkTagsBuilder_ == null ? networkTags_ : networkTagsBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.resourceManagerTags_ = - resourceManagerTagsBuilder_ == null - ? resourceManagerTags_ - : resourceManagerTagsBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @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.NodePoolAutoConfig) { - return mergeFrom((com.google.container.v1beta1.NodePoolAutoConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.NodePoolAutoConfig other) { - if (other == com.google.container.v1beta1.NodePoolAutoConfig.getDefaultInstance()) - return this; - if (other.hasNetworkTags()) { - mergeNetworkTags(other.getNetworkTags()); - } - if (other.hasResourceManagerTags()) { - mergeResourceManagerTags(other.getResourceManagerTags()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getNetworkTagsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - getResourceManagerTagsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.container.v1beta1.NetworkTags networkTags_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NetworkTags, - com.google.container.v1beta1.NetworkTags.Builder, - com.google.container.v1beta1.NetworkTagsOrBuilder> - networkTagsBuilder_; - /** - * - * - *
-     * 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 creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * .google.container.v1beta1.NetworkTags network_tags = 1; - * - * @return Whether the networkTags field is set. - */ - public boolean hasNetworkTags() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * 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 creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * .google.container.v1beta1.NetworkTags network_tags = 1; - * - * @return The networkTags. - */ - public com.google.container.v1beta1.NetworkTags getNetworkTags() { - if (networkTagsBuilder_ == null) { - return networkTags_ == null - ? com.google.container.v1beta1.NetworkTags.getDefaultInstance() - : networkTags_; - } else { - return networkTagsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * 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 creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * .google.container.v1beta1.NetworkTags network_tags = 1; - */ - public Builder setNetworkTags(com.google.container.v1beta1.NetworkTags value) { - if (networkTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - networkTags_ = value; - } else { - networkTagsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - 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 creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * .google.container.v1beta1.NetworkTags network_tags = 1; - */ - public Builder setNetworkTags( - com.google.container.v1beta1.NetworkTags.Builder builderForValue) { - if (networkTagsBuilder_ == null) { - networkTags_ = builderForValue.build(); - } else { - networkTagsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - 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 creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * .google.container.v1beta1.NetworkTags network_tags = 1; - */ - public Builder mergeNetworkTags(com.google.container.v1beta1.NetworkTags value) { - if (networkTagsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && networkTags_ != null - && networkTags_ != com.google.container.v1beta1.NetworkTags.getDefaultInstance()) { - getNetworkTagsBuilder().mergeFrom(value); - } else { - networkTags_ = value; - } - } else { - networkTagsBuilder_.mergeFrom(value); - } - if (networkTags_ != null) { - bitField0_ |= 0x00000001; - 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 creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * .google.container.v1beta1.NetworkTags network_tags = 1; - */ - public Builder clearNetworkTags() { - bitField0_ = (bitField0_ & ~0x00000001); - networkTags_ = null; - if (networkTagsBuilder_ != null) { - networkTagsBuilder_.dispose(); - networkTagsBuilder_ = null; - } - 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 creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * .google.container.v1beta1.NetworkTags network_tags = 1; - */ - public com.google.container.v1beta1.NetworkTags.Builder getNetworkTagsBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getNetworkTagsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * 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 creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * .google.container.v1beta1.NetworkTags network_tags = 1; - */ - public com.google.container.v1beta1.NetworkTagsOrBuilder getNetworkTagsOrBuilder() { - if (networkTagsBuilder_ != null) { - return networkTagsBuilder_.getMessageOrBuilder(); - } else { - return networkTags_ == null - ? com.google.container.v1beta1.NetworkTags.getDefaultInstance() - : networkTags_; - } - } - /** - * - * - *
-     * 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 creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * .google.container.v1beta1.NetworkTags network_tags = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NetworkTags, - com.google.container.v1beta1.NetworkTags.Builder, - com.google.container.v1beta1.NetworkTagsOrBuilder> - getNetworkTagsFieldBuilder() { - if (networkTagsBuilder_ == null) { - networkTagsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NetworkTags, - com.google.container.v1beta1.NetworkTags.Builder, - com.google.container.v1beta1.NetworkTagsOrBuilder>( - getNetworkTags(), getParentForChildren(), isClean()); - networkTags_ = null; - } - return networkTagsBuilder_; - } - - private com.google.container.v1beta1.ResourceManagerTags resourceManagerTags_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ResourceManagerTags, - com.google.container.v1beta1.ResourceManagerTags.Builder, - com.google.container.v1beta1.ResourceManagerTagsOrBuilder> - resourceManagerTagsBuilder_; - /** - * - * - *
-     * Resource manager tag keys and values to be attached to the nodes
-     * for managing Compute Engine firewalls using Network Firewall Policies.
-     * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 2; - * - * @return Whether the resourceManagerTags field is set. - */ - public boolean hasResourceManagerTags() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * Resource manager tag keys and values to be attached to the nodes
-     * for managing Compute Engine firewalls using Network Firewall Policies.
-     * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 2; - * - * @return The resourceManagerTags. - */ - public com.google.container.v1beta1.ResourceManagerTags getResourceManagerTags() { - if (resourceManagerTagsBuilder_ == null) { - return resourceManagerTags_ == null - ? com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance() - : resourceManagerTags_; - } else { - return resourceManagerTagsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Resource manager tag keys and values to be attached to the nodes
-     * for managing Compute Engine firewalls using Network Firewall Policies.
-     * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 2; - */ - public Builder setResourceManagerTags(com.google.container.v1beta1.ResourceManagerTags value) { - if (resourceManagerTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resourceManagerTags_ = value; - } else { - resourceManagerTagsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Resource manager tag keys and values to be attached to the nodes
-     * for managing Compute Engine firewalls using Network Firewall Policies.
-     * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 2; - */ - public Builder setResourceManagerTags( - com.google.container.v1beta1.ResourceManagerTags.Builder builderForValue) { - if (resourceManagerTagsBuilder_ == null) { - resourceManagerTags_ = builderForValue.build(); - } else { - resourceManagerTagsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Resource manager tag keys and values to be attached to the nodes
-     * for managing Compute Engine firewalls using Network Firewall Policies.
-     * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 2; - */ - public Builder mergeResourceManagerTags( - com.google.container.v1beta1.ResourceManagerTags value) { - if (resourceManagerTagsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && resourceManagerTags_ != null - && resourceManagerTags_ - != com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance()) { - getResourceManagerTagsBuilder().mergeFrom(value); - } else { - resourceManagerTags_ = value; - } - } else { - resourceManagerTagsBuilder_.mergeFrom(value); - } - if (resourceManagerTags_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Resource manager tag keys and values to be attached to the nodes
-     * for managing Compute Engine firewalls using Network Firewall Policies.
-     * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 2; - */ - public Builder clearResourceManagerTags() { - bitField0_ = (bitField0_ & ~0x00000002); - resourceManagerTags_ = null; - if (resourceManagerTagsBuilder_ != null) { - resourceManagerTagsBuilder_.dispose(); - resourceManagerTagsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Resource manager tag keys and values to be attached to the nodes
-     * for managing Compute Engine firewalls using Network Firewall Policies.
-     * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 2; - */ - public com.google.container.v1beta1.ResourceManagerTags.Builder - getResourceManagerTagsBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getResourceManagerTagsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Resource manager tag keys and values to be attached to the nodes
-     * for managing Compute Engine firewalls using Network Firewall Policies.
-     * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 2; - */ - public com.google.container.v1beta1.ResourceManagerTagsOrBuilder - getResourceManagerTagsOrBuilder() { - if (resourceManagerTagsBuilder_ != null) { - return resourceManagerTagsBuilder_.getMessageOrBuilder(); - } else { - return resourceManagerTags_ == null - ? com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance() - : resourceManagerTags_; - } - } - /** - * - * - *
-     * Resource manager tag keys and values to be attached to the nodes
-     * for managing Compute Engine firewalls using Network Firewall Policies.
-     * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ResourceManagerTags, - com.google.container.v1beta1.ResourceManagerTags.Builder, - com.google.container.v1beta1.ResourceManagerTagsOrBuilder> - getResourceManagerTagsFieldBuilder() { - if (resourceManagerTagsBuilder_ == null) { - resourceManagerTagsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ResourceManagerTags, - com.google.container.v1beta1.ResourceManagerTags.Builder, - com.google.container.v1beta1.ResourceManagerTagsOrBuilder>( - getResourceManagerTags(), getParentForChildren(), isClean()); - resourceManagerTags_ = null; - } - return resourceManagerTagsBuilder_; - } - - @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.NodePoolAutoConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodePoolAutoConfig) - private static final com.google.container.v1beta1.NodePoolAutoConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.NodePoolAutoConfig(); - } - - public static com.google.container.v1beta1.NodePoolAutoConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodePoolAutoConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.NodePoolAutoConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoConfigOrBuilder.java deleted file mode 100644 index ffd8fe0eb9d5..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoConfigOrBuilder.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface NodePoolAutoConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodePoolAutoConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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 creation. Each tag within the list
-   * must comply with RFC1035.
-   * 
- * - * .google.container.v1beta1.NetworkTags network_tags = 1; - * - * @return Whether the networkTags field is set. - */ - boolean hasNetworkTags(); - /** - * - * - *
-   * 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 creation. Each tag within the list
-   * must comply with RFC1035.
-   * 
- * - * .google.container.v1beta1.NetworkTags network_tags = 1; - * - * @return The networkTags. - */ - com.google.container.v1beta1.NetworkTags getNetworkTags(); - /** - * - * - *
-   * 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 creation. Each tag within the list
-   * must comply with RFC1035.
-   * 
- * - * .google.container.v1beta1.NetworkTags network_tags = 1; - */ - com.google.container.v1beta1.NetworkTagsOrBuilder getNetworkTagsOrBuilder(); - - /** - * - * - *
-   * Resource manager tag keys and values to be attached to the nodes
-   * for managing Compute Engine firewalls using Network Firewall Policies.
-   * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 2; - * - * @return Whether the resourceManagerTags field is set. - */ - boolean hasResourceManagerTags(); - /** - * - * - *
-   * Resource manager tag keys and values to be attached to the nodes
-   * for managing Compute Engine firewalls using Network Firewall Policies.
-   * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 2; - * - * @return The resourceManagerTags. - */ - com.google.container.v1beta1.ResourceManagerTags getResourceManagerTags(); - /** - * - * - *
-   * Resource manager tag keys and values to be attached to the nodes
-   * for managing Compute Engine firewalls using Network Firewall Policies.
-   * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 2; - */ - com.google.container.v1beta1.ResourceManagerTagsOrBuilder getResourceManagerTagsOrBuilder(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoscaling.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoscaling.java deleted file mode 100644 index a896a6b7c6df..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoscaling.java +++ /dev/null @@ -1,1360 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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() { - locationPolicy_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NodePoolAutoscaling(); - } - - 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); - } - - /** - * - * - *
-   * Location policy specifies how zones are picked when scaling up the
-   * nodepool.
-   * 
- * - * Protobuf enum {@code google.container.v1beta1.NodePoolAutoscaling.LocationPolicy} - */ - public enum LocationPolicy implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Not set.
-     * 
- * - * LOCATION_POLICY_UNSPECIFIED = 0; - */ - LOCATION_POLICY_UNSPECIFIED(0), - /** - * - * - *
-     * BALANCED is a best effort policy that aims to balance the sizes of
-     * different zones.
-     * 
- * - * BALANCED = 1; - */ - BALANCED(1), - /** - * - * - *
-     * ANY policy picks zones that have the highest capacity available.
-     * 
- * - * ANY = 2; - */ - ANY(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Not set.
-     * 
- * - * LOCATION_POLICY_UNSPECIFIED = 0; - */ - public static final int LOCATION_POLICY_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * BALANCED is a best effort policy that aims to balance the sizes of
-     * different zones.
-     * 
- * - * BALANCED = 1; - */ - public static final int BALANCED_VALUE = 1; - /** - * - * - *
-     * ANY policy picks zones that have the highest capacity available.
-     * 
- * - * ANY = 2; - */ - public static final int ANY_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 LocationPolicy 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 LocationPolicy forNumber(int value) { - switch (value) { - case 0: - return LOCATION_POLICY_UNSPECIFIED; - case 1: - return BALANCED; - case 2: - return ANY; - 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 LocationPolicy findValueByNumber(int number) { - return LocationPolicy.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.NodePoolAutoscaling.getDescriptor().getEnumTypes().get(0); - } - - private static final LocationPolicy[] VALUES = values(); - - public static LocationPolicy 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 LocationPolicy(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1beta1.NodePoolAutoscaling.LocationPolicy) - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * 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_ = 0; - /** - * - * - *
-   * Minimum number of nodes for one location 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_ = 0; - /** - * - * - *
-   * Maximum number of nodes for one location in the NodePool. Must be >=
-   * min_node_count. There has to be enough quota to scale up the cluster.
-   * 
- * - * int32 max_node_count = 3; - * - * @return The maxNodeCount. - */ - @java.lang.Override - public int getMaxNodeCount() { - return maxNodeCount_; - } - - public static final int AUTOPROVISIONED_FIELD_NUMBER = 4; - private boolean autoprovisioned_ = false; - /** - * - * - *
-   * Can this node pool be deleted automatically.
-   * 
- * - * bool autoprovisioned = 4; - * - * @return The autoprovisioned. - */ - @java.lang.Override - public boolean getAutoprovisioned() { - return autoprovisioned_; - } - - public static final int LOCATION_POLICY_FIELD_NUMBER = 5; - private int locationPolicy_ = 0; - /** - * - * - *
-   * Location policy used when scaling up a nodepool.
-   * 
- * - * .google.container.v1beta1.NodePoolAutoscaling.LocationPolicy location_policy = 5; - * - * @return The enum numeric value on the wire for locationPolicy. - */ - @java.lang.Override - public int getLocationPolicyValue() { - return locationPolicy_; - } - /** - * - * - *
-   * Location policy used when scaling up a nodepool.
-   * 
- * - * .google.container.v1beta1.NodePoolAutoscaling.LocationPolicy location_policy = 5; - * - * @return The locationPolicy. - */ - @java.lang.Override - public com.google.container.v1beta1.NodePoolAutoscaling.LocationPolicy getLocationPolicy() { - com.google.container.v1beta1.NodePoolAutoscaling.LocationPolicy result = - com.google.container.v1beta1.NodePoolAutoscaling.LocationPolicy.forNumber(locationPolicy_); - return result == null - ? com.google.container.v1beta1.NodePoolAutoscaling.LocationPolicy.UNRECOGNIZED - : result; - } - - public static final int TOTAL_MIN_NODE_COUNT_FIELD_NUMBER = 6; - private int totalMinNodeCount_ = 0; - /** - * - * - *
-   * Minimum number of nodes in the node pool. Must be greater than 1 less than
-   * total_max_node_count.
-   * The total_*_node_count fields are mutually exclusive with the *_node_count
-   * fields.
-   * 
- * - * int32 total_min_node_count = 6; - * - * @return The totalMinNodeCount. - */ - @java.lang.Override - public int getTotalMinNodeCount() { - return totalMinNodeCount_; - } - - public static final int TOTAL_MAX_NODE_COUNT_FIELD_NUMBER = 7; - private int totalMaxNodeCount_ = 0; - /** - * - * - *
-   * Maximum number of nodes in the node pool. Must be greater than
-   * total_min_node_count. There has to be enough quota to scale up the cluster.
-   * The total_*_node_count fields are mutually exclusive with the *_node_count
-   * fields.
-   * 
- * - * int32 total_max_node_count = 7; - * - * @return The totalMaxNodeCount. - */ - @java.lang.Override - public int getTotalMaxNodeCount() { - return totalMaxNodeCount_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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_); - } - if (locationPolicy_ - != com.google.container.v1beta1.NodePoolAutoscaling.LocationPolicy - .LOCATION_POLICY_UNSPECIFIED - .getNumber()) { - output.writeEnum(5, locationPolicy_); - } - if (totalMinNodeCount_ != 0) { - output.writeInt32(6, totalMinNodeCount_); - } - if (totalMaxNodeCount_ != 0) { - output.writeInt32(7, totalMaxNodeCount_); - } - getUnknownFields().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_); - } - if (locationPolicy_ - != com.google.container.v1beta1.NodePoolAutoscaling.LocationPolicy - .LOCATION_POLICY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, locationPolicy_); - } - if (totalMinNodeCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, totalMinNodeCount_); - } - if (totalMaxNodeCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, totalMaxNodeCount_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (locationPolicy_ != other.locationPolicy_) return false; - if (getTotalMinNodeCount() != other.getTotalMinNodeCount()) return false; - if (getTotalMaxNodeCount() != other.getTotalMaxNodeCount()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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 = (37 * hash) + LOCATION_POLICY_FIELD_NUMBER; - hash = (53 * hash) + locationPolicy_; - hash = (37 * hash) + TOTAL_MIN_NODE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getTotalMinNodeCount(); - hash = (37 * hash) + TOTAL_MAX_NODE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getTotalMaxNodeCount(); - hash = (29 * hash) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enabled_ = false; - minNodeCount_ = 0; - maxNodeCount_ = 0; - autoprovisioned_ = false; - locationPolicy_ = 0; - totalMinNodeCount_ = 0; - totalMaxNodeCount_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.NodePoolAutoscaling result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.minNodeCount_ = minNodeCount_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.maxNodeCount_ = maxNodeCount_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.autoprovisioned_ = autoprovisioned_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.locationPolicy_ = locationPolicy_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.totalMinNodeCount_ = totalMinNodeCount_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.totalMaxNodeCount_ = totalMaxNodeCount_; - } - } - - @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()); - } - if (other.locationPolicy_ != 0) { - setLocationPolicyValue(other.getLocationPolicyValue()); - } - if (other.getTotalMinNodeCount() != 0) { - setTotalMinNodeCount(other.getTotalMinNodeCount()); - } - if (other.getTotalMaxNodeCount() != 0) { - setTotalMaxNodeCount(other.getTotalMaxNodeCount()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - minNodeCount_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - maxNodeCount_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - autoprovisioned_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: - { - locationPolicy_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: - { - totalMinNodeCount_ = input.readInt32(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 56: - { - totalMaxNodeCount_ = input.readInt32(); - bitField0_ |= 0x00000040; - break; - } // case 56 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Is autoscaling enabled for this node pool.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - enabled_ = false; - onChanged(); - return this; - } - - private int minNodeCount_; - /** - * - * - *
-     * Minimum number of nodes for one location 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 for one location 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Minimum number of nodes for one location in the NodePool. Must be >= 1 and
-     * <= max_node_count.
-     * 
- * - * int32 min_node_count = 2; - * - * @return This builder for chaining. - */ - public Builder clearMinNodeCount() { - bitField0_ = (bitField0_ & ~0x00000002); - minNodeCount_ = 0; - onChanged(); - return this; - } - - private int maxNodeCount_; - /** - * - * - *
-     * Maximum number of nodes for one location in the NodePool. Must be >=
-     * min_node_count. There has to be enough quota to scale up the cluster.
-     * 
- * - * int32 max_node_count = 3; - * - * @return The maxNodeCount. - */ - @java.lang.Override - public int getMaxNodeCount() { - return maxNodeCount_; - } - /** - * - * - *
-     * Maximum number of nodes for one location in the NodePool. Must be >=
-     * min_node_count. There has to be enough quota to scale up the cluster.
-     * 
- * - * int32 max_node_count = 3; - * - * @param value The maxNodeCount to set. - * @return This builder for chaining. - */ - public Builder setMaxNodeCount(int value) { - - maxNodeCount_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Maximum number of nodes for one location in the NodePool. Must be >=
-     * min_node_count. There has to be enough quota to scale up the cluster.
-     * 
- * - * int32 max_node_count = 3; - * - * @return This builder for chaining. - */ - public Builder clearMaxNodeCount() { - bitField0_ = (bitField0_ & ~0x00000004); - 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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Can this node pool be deleted automatically.
-     * 
- * - * bool autoprovisioned = 4; - * - * @return This builder for chaining. - */ - public Builder clearAutoprovisioned() { - bitField0_ = (bitField0_ & ~0x00000008); - autoprovisioned_ = false; - onChanged(); - return this; - } - - private int locationPolicy_ = 0; - /** - * - * - *
-     * Location policy used when scaling up a nodepool.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoscaling.LocationPolicy location_policy = 5; - * - * - * @return The enum numeric value on the wire for locationPolicy. - */ - @java.lang.Override - public int getLocationPolicyValue() { - return locationPolicy_; - } - /** - * - * - *
-     * Location policy used when scaling up a nodepool.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoscaling.LocationPolicy location_policy = 5; - * - * - * @param value The enum numeric value on the wire for locationPolicy to set. - * @return This builder for chaining. - */ - public Builder setLocationPolicyValue(int value) { - locationPolicy_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Location policy used when scaling up a nodepool.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoscaling.LocationPolicy location_policy = 5; - * - * - * @return The locationPolicy. - */ - @java.lang.Override - public com.google.container.v1beta1.NodePoolAutoscaling.LocationPolicy getLocationPolicy() { - com.google.container.v1beta1.NodePoolAutoscaling.LocationPolicy result = - com.google.container.v1beta1.NodePoolAutoscaling.LocationPolicy.forNumber( - locationPolicy_); - return result == null - ? com.google.container.v1beta1.NodePoolAutoscaling.LocationPolicy.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Location policy used when scaling up a nodepool.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoscaling.LocationPolicy location_policy = 5; - * - * - * @param value The locationPolicy to set. - * @return This builder for chaining. - */ - public Builder setLocationPolicy( - com.google.container.v1beta1.NodePoolAutoscaling.LocationPolicy value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - locationPolicy_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Location policy used when scaling up a nodepool.
-     * 
- * - * .google.container.v1beta1.NodePoolAutoscaling.LocationPolicy location_policy = 5; - * - * - * @return This builder for chaining. - */ - public Builder clearLocationPolicy() { - bitField0_ = (bitField0_ & ~0x00000010); - locationPolicy_ = 0; - onChanged(); - return this; - } - - private int totalMinNodeCount_; - /** - * - * - *
-     * Minimum number of nodes in the node pool. Must be greater than 1 less than
-     * total_max_node_count.
-     * The total_*_node_count fields are mutually exclusive with the *_node_count
-     * fields.
-     * 
- * - * int32 total_min_node_count = 6; - * - * @return The totalMinNodeCount. - */ - @java.lang.Override - public int getTotalMinNodeCount() { - return totalMinNodeCount_; - } - /** - * - * - *
-     * Minimum number of nodes in the node pool. Must be greater than 1 less than
-     * total_max_node_count.
-     * The total_*_node_count fields are mutually exclusive with the *_node_count
-     * fields.
-     * 
- * - * int32 total_min_node_count = 6; - * - * @param value The totalMinNodeCount to set. - * @return This builder for chaining. - */ - public Builder setTotalMinNodeCount(int value) { - - totalMinNodeCount_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * Minimum number of nodes in the node pool. Must be greater than 1 less than
-     * total_max_node_count.
-     * The total_*_node_count fields are mutually exclusive with the *_node_count
-     * fields.
-     * 
- * - * int32 total_min_node_count = 6; - * - * @return This builder for chaining. - */ - public Builder clearTotalMinNodeCount() { - bitField0_ = (bitField0_ & ~0x00000020); - totalMinNodeCount_ = 0; - onChanged(); - return this; - } - - private int totalMaxNodeCount_; - /** - * - * - *
-     * Maximum number of nodes in the node pool. Must be greater than
-     * total_min_node_count. There has to be enough quota to scale up the cluster.
-     * The total_*_node_count fields are mutually exclusive with the *_node_count
-     * fields.
-     * 
- * - * int32 total_max_node_count = 7; - * - * @return The totalMaxNodeCount. - */ - @java.lang.Override - public int getTotalMaxNodeCount() { - return totalMaxNodeCount_; - } - /** - * - * - *
-     * Maximum number of nodes in the node pool. Must be greater than
-     * total_min_node_count. There has to be enough quota to scale up the cluster.
-     * The total_*_node_count fields are mutually exclusive with the *_node_count
-     * fields.
-     * 
- * - * int32 total_max_node_count = 7; - * - * @param value The totalMaxNodeCount to set. - * @return This builder for chaining. - */ - public Builder setTotalMaxNodeCount(int value) { - - totalMaxNodeCount_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-     * Maximum number of nodes in the node pool. Must be greater than
-     * total_min_node_count. There has to be enough quota to scale up the cluster.
-     * The total_*_node_count fields are mutually exclusive with the *_node_count
-     * fields.
-     * 
- * - * int32 total_max_node_count = 7; - * - * @return This builder for chaining. - */ - public Builder clearTotalMaxNodeCount() { - bitField0_ = (bitField0_ & ~0x00000040); - totalMaxNodeCount_ = 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.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoscalingOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoscalingOrBuilder.java deleted file mode 100644 index df7f26d86442..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoscalingOrBuilder.java +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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 for one location in the NodePool. Must be >= 1 and
-   * <= max_node_count.
-   * 
- * - * int32 min_node_count = 2; - * - * @return The minNodeCount. - */ - int getMinNodeCount(); - - /** - * - * - *
-   * Maximum number of nodes for one location in the NodePool. Must be >=
-   * min_node_count. There has to be enough quota to scale up the cluster.
-   * 
- * - * int32 max_node_count = 3; - * - * @return The maxNodeCount. - */ - int getMaxNodeCount(); - - /** - * - * - *
-   * Can this node pool be deleted automatically.
-   * 
- * - * bool autoprovisioned = 4; - * - * @return The autoprovisioned. - */ - boolean getAutoprovisioned(); - - /** - * - * - *
-   * Location policy used when scaling up a nodepool.
-   * 
- * - * .google.container.v1beta1.NodePoolAutoscaling.LocationPolicy location_policy = 5; - * - * @return The enum numeric value on the wire for locationPolicy. - */ - int getLocationPolicyValue(); - /** - * - * - *
-   * Location policy used when scaling up a nodepool.
-   * 
- * - * .google.container.v1beta1.NodePoolAutoscaling.LocationPolicy location_policy = 5; - * - * @return The locationPolicy. - */ - com.google.container.v1beta1.NodePoolAutoscaling.LocationPolicy getLocationPolicy(); - - /** - * - * - *
-   * Minimum number of nodes in the node pool. Must be greater than 1 less than
-   * total_max_node_count.
-   * The total_*_node_count fields are mutually exclusive with the *_node_count
-   * fields.
-   * 
- * - * int32 total_min_node_count = 6; - * - * @return The totalMinNodeCount. - */ - int getTotalMinNodeCount(); - - /** - * - * - *
-   * Maximum number of nodes in the node pool. Must be greater than
-   * total_min_node_count. There has to be enough quota to scale up the cluster.
-   * The total_*_node_count fields are mutually exclusive with the *_node_count
-   * fields.
-   * 
- * - * int32 total_max_node_count = 7; - * - * @return The totalMaxNodeCount. - */ - int getTotalMaxNodeCount(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolDefaults.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolDefaults.java deleted file mode 100644 index fe39a9d5eb41..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolDefaults.java +++ /dev/null @@ -1,727 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * Subset of Nodepool message that has defaults.
- * 
- * - * Protobuf type {@code google.container.v1beta1.NodePoolDefaults} - */ -public final class NodePoolDefaults extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodePoolDefaults) - NodePoolDefaultsOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodePoolDefaults.newBuilder() to construct. - private NodePoolDefaults(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NodePoolDefaults() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NodePoolDefaults(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodePoolDefaults_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodePoolDefaults_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.NodePoolDefaults.class, - com.google.container.v1beta1.NodePoolDefaults.Builder.class); - } - - private int bitField0_; - public static final int NODE_CONFIG_DEFAULTS_FIELD_NUMBER = 1; - private com.google.container.v1beta1.NodeConfigDefaults nodeConfigDefaults_; - /** - * - * - *
-   * Subset of NodeConfig message that has defaults.
-   * 
- * - * .google.container.v1beta1.NodeConfigDefaults node_config_defaults = 1; - * - * @return Whether the nodeConfigDefaults field is set. - */ - @java.lang.Override - public boolean hasNodeConfigDefaults() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Subset of NodeConfig message that has defaults.
-   * 
- * - * .google.container.v1beta1.NodeConfigDefaults node_config_defaults = 1; - * - * @return The nodeConfigDefaults. - */ - @java.lang.Override - public com.google.container.v1beta1.NodeConfigDefaults getNodeConfigDefaults() { - return nodeConfigDefaults_ == null - ? com.google.container.v1beta1.NodeConfigDefaults.getDefaultInstance() - : nodeConfigDefaults_; - } - /** - * - * - *
-   * Subset of NodeConfig message that has defaults.
-   * 
- * - * .google.container.v1beta1.NodeConfigDefaults node_config_defaults = 1; - */ - @java.lang.Override - public com.google.container.v1beta1.NodeConfigDefaultsOrBuilder getNodeConfigDefaultsOrBuilder() { - return nodeConfigDefaults_ == null - ? com.google.container.v1beta1.NodeConfigDefaults.getDefaultInstance() - : nodeConfigDefaults_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getNodeConfigDefaults()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNodeConfigDefaults()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.NodePoolDefaults)) { - return super.equals(obj); - } - com.google.container.v1beta1.NodePoolDefaults other = - (com.google.container.v1beta1.NodePoolDefaults) obj; - - if (hasNodeConfigDefaults() != other.hasNodeConfigDefaults()) return false; - if (hasNodeConfigDefaults()) { - if (!getNodeConfigDefaults().equals(other.getNodeConfigDefaults())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasNodeConfigDefaults()) { - hash = (37 * hash) + NODE_CONFIG_DEFAULTS_FIELD_NUMBER; - hash = (53 * hash) + getNodeConfigDefaults().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.NodePoolDefaults parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NodePoolDefaults parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.NodePoolDefaults parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NodePoolDefaults parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.NodePoolDefaults parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NodePoolDefaults parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.NodePoolDefaults parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NodePoolDefaults parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.NodePoolDefaults parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NodePoolDefaults parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.NodePoolDefaults parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NodePoolDefaults parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1beta1.NodePoolDefaults prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Subset of Nodepool message that has defaults.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.NodePoolDefaults} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NodePoolDefaults) - com.google.container.v1beta1.NodePoolDefaultsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodePoolDefaults_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodePoolDefaults_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.NodePoolDefaults.class, - com.google.container.v1beta1.NodePoolDefaults.Builder.class); - } - - // Construct using com.google.container.v1beta1.NodePoolDefaults.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getNodeConfigDefaultsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - nodeConfigDefaults_ = null; - if (nodeConfigDefaultsBuilder_ != null) { - nodeConfigDefaultsBuilder_.dispose(); - nodeConfigDefaultsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodePoolDefaults_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.NodePoolDefaults getDefaultInstanceForType() { - return com.google.container.v1beta1.NodePoolDefaults.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.NodePoolDefaults build() { - com.google.container.v1beta1.NodePoolDefaults result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.NodePoolDefaults buildPartial() { - com.google.container.v1beta1.NodePoolDefaults result = - new com.google.container.v1beta1.NodePoolDefaults(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.NodePoolDefaults result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.nodeConfigDefaults_ = - nodeConfigDefaultsBuilder_ == null - ? nodeConfigDefaults_ - : nodeConfigDefaultsBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @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.NodePoolDefaults) { - return mergeFrom((com.google.container.v1beta1.NodePoolDefaults) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.NodePoolDefaults other) { - if (other == com.google.container.v1beta1.NodePoolDefaults.getDefaultInstance()) return this; - if (other.hasNodeConfigDefaults()) { - mergeNodeConfigDefaults(other.getNodeConfigDefaults()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage( - getNodeConfigDefaultsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.container.v1beta1.NodeConfigDefaults nodeConfigDefaults_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodeConfigDefaults, - com.google.container.v1beta1.NodeConfigDefaults.Builder, - com.google.container.v1beta1.NodeConfigDefaultsOrBuilder> - nodeConfigDefaultsBuilder_; - /** - * - * - *
-     * Subset of NodeConfig message that has defaults.
-     * 
- * - * .google.container.v1beta1.NodeConfigDefaults node_config_defaults = 1; - * - * @return Whether the nodeConfigDefaults field is set. - */ - public boolean hasNodeConfigDefaults() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Subset of NodeConfig message that has defaults.
-     * 
- * - * .google.container.v1beta1.NodeConfigDefaults node_config_defaults = 1; - * - * @return The nodeConfigDefaults. - */ - public com.google.container.v1beta1.NodeConfigDefaults getNodeConfigDefaults() { - if (nodeConfigDefaultsBuilder_ == null) { - return nodeConfigDefaults_ == null - ? com.google.container.v1beta1.NodeConfigDefaults.getDefaultInstance() - : nodeConfigDefaults_; - } else { - return nodeConfigDefaultsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Subset of NodeConfig message that has defaults.
-     * 
- * - * .google.container.v1beta1.NodeConfigDefaults node_config_defaults = 1; - */ - public Builder setNodeConfigDefaults(com.google.container.v1beta1.NodeConfigDefaults value) { - if (nodeConfigDefaultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - nodeConfigDefaults_ = value; - } else { - nodeConfigDefaultsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Subset of NodeConfig message that has defaults.
-     * 
- * - * .google.container.v1beta1.NodeConfigDefaults node_config_defaults = 1; - */ - public Builder setNodeConfigDefaults( - com.google.container.v1beta1.NodeConfigDefaults.Builder builderForValue) { - if (nodeConfigDefaultsBuilder_ == null) { - nodeConfigDefaults_ = builderForValue.build(); - } else { - nodeConfigDefaultsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Subset of NodeConfig message that has defaults.
-     * 
- * - * .google.container.v1beta1.NodeConfigDefaults node_config_defaults = 1; - */ - public Builder mergeNodeConfigDefaults(com.google.container.v1beta1.NodeConfigDefaults value) { - if (nodeConfigDefaultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && nodeConfigDefaults_ != null - && nodeConfigDefaults_ - != com.google.container.v1beta1.NodeConfigDefaults.getDefaultInstance()) { - getNodeConfigDefaultsBuilder().mergeFrom(value); - } else { - nodeConfigDefaults_ = value; - } - } else { - nodeConfigDefaultsBuilder_.mergeFrom(value); - } - if (nodeConfigDefaults_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Subset of NodeConfig message that has defaults.
-     * 
- * - * .google.container.v1beta1.NodeConfigDefaults node_config_defaults = 1; - */ - public Builder clearNodeConfigDefaults() { - bitField0_ = (bitField0_ & ~0x00000001); - nodeConfigDefaults_ = null; - if (nodeConfigDefaultsBuilder_ != null) { - nodeConfigDefaultsBuilder_.dispose(); - nodeConfigDefaultsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Subset of NodeConfig message that has defaults.
-     * 
- * - * .google.container.v1beta1.NodeConfigDefaults node_config_defaults = 1; - */ - public com.google.container.v1beta1.NodeConfigDefaults.Builder getNodeConfigDefaultsBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getNodeConfigDefaultsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Subset of NodeConfig message that has defaults.
-     * 
- * - * .google.container.v1beta1.NodeConfigDefaults node_config_defaults = 1; - */ - public com.google.container.v1beta1.NodeConfigDefaultsOrBuilder - getNodeConfigDefaultsOrBuilder() { - if (nodeConfigDefaultsBuilder_ != null) { - return nodeConfigDefaultsBuilder_.getMessageOrBuilder(); - } else { - return nodeConfigDefaults_ == null - ? com.google.container.v1beta1.NodeConfigDefaults.getDefaultInstance() - : nodeConfigDefaults_; - } - } - /** - * - * - *
-     * Subset of NodeConfig message that has defaults.
-     * 
- * - * .google.container.v1beta1.NodeConfigDefaults node_config_defaults = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodeConfigDefaults, - com.google.container.v1beta1.NodeConfigDefaults.Builder, - com.google.container.v1beta1.NodeConfigDefaultsOrBuilder> - getNodeConfigDefaultsFieldBuilder() { - if (nodeConfigDefaultsBuilder_ == null) { - nodeConfigDefaultsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodeConfigDefaults, - com.google.container.v1beta1.NodeConfigDefaults.Builder, - com.google.container.v1beta1.NodeConfigDefaultsOrBuilder>( - getNodeConfigDefaults(), getParentForChildren(), isClean()); - nodeConfigDefaults_ = null; - } - return nodeConfigDefaultsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.NodePoolDefaults) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodePoolDefaults) - private static final com.google.container.v1beta1.NodePoolDefaults DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.NodePoolDefaults(); - } - - public static com.google.container.v1beta1.NodePoolDefaults getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodePoolDefaults parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.NodePoolDefaults getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolDefaultsOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolDefaultsOrBuilder.java deleted file mode 100644 index eb9268c77873..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolDefaultsOrBuilder.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface NodePoolDefaultsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodePoolDefaults) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Subset of NodeConfig message that has defaults.
-   * 
- * - * .google.container.v1beta1.NodeConfigDefaults node_config_defaults = 1; - * - * @return Whether the nodeConfigDefaults field is set. - */ - boolean hasNodeConfigDefaults(); - /** - * - * - *
-   * Subset of NodeConfig message that has defaults.
-   * 
- * - * .google.container.v1beta1.NodeConfigDefaults node_config_defaults = 1; - * - * @return The nodeConfigDefaults. - */ - com.google.container.v1beta1.NodeConfigDefaults getNodeConfigDefaults(); - /** - * - * - *
-   * Subset of NodeConfig message that has defaults.
-   * 
- * - * .google.container.v1beta1.NodeConfigDefaults node_config_defaults = 1; - */ - com.google.container.v1beta1.NodeConfigDefaultsOrBuilder getNodeConfigDefaultsOrBuilder(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolLoggingConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolLoggingConfig.java deleted file mode 100644 index ed98c584c7f7..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolLoggingConfig.java +++ /dev/null @@ -1,724 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * NodePoolLoggingConfig specifies logging configuration for nodepools.
- * 
- * - * Protobuf type {@code google.container.v1beta1.NodePoolLoggingConfig} - */ -public final class NodePoolLoggingConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodePoolLoggingConfig) - NodePoolLoggingConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodePoolLoggingConfig.newBuilder() to construct. - private NodePoolLoggingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NodePoolLoggingConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NodePoolLoggingConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodePoolLoggingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodePoolLoggingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.NodePoolLoggingConfig.class, - com.google.container.v1beta1.NodePoolLoggingConfig.Builder.class); - } - - private int bitField0_; - public static final int VARIANT_CONFIG_FIELD_NUMBER = 1; - private com.google.container.v1beta1.LoggingVariantConfig variantConfig_; - /** - * - * - *
-   * Logging variant configuration.
-   * 
- * - * .google.container.v1beta1.LoggingVariantConfig variant_config = 1; - * - * @return Whether the variantConfig field is set. - */ - @java.lang.Override - public boolean hasVariantConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Logging variant configuration.
-   * 
- * - * .google.container.v1beta1.LoggingVariantConfig variant_config = 1; - * - * @return The variantConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.LoggingVariantConfig getVariantConfig() { - return variantConfig_ == null - ? com.google.container.v1beta1.LoggingVariantConfig.getDefaultInstance() - : variantConfig_; - } - /** - * - * - *
-   * Logging variant configuration.
-   * 
- * - * .google.container.v1beta1.LoggingVariantConfig variant_config = 1; - */ - @java.lang.Override - public com.google.container.v1beta1.LoggingVariantConfigOrBuilder getVariantConfigOrBuilder() { - return variantConfig_ == null - ? com.google.container.v1beta1.LoggingVariantConfig.getDefaultInstance() - : variantConfig_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVariantConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getVariantConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.NodePoolLoggingConfig)) { - return super.equals(obj); - } - com.google.container.v1beta1.NodePoolLoggingConfig other = - (com.google.container.v1beta1.NodePoolLoggingConfig) obj; - - if (hasVariantConfig() != other.hasVariantConfig()) return false; - if (hasVariantConfig()) { - if (!getVariantConfig().equals(other.getVariantConfig())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasVariantConfig()) { - hash = (37 * hash) + VARIANT_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getVariantConfig().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.NodePoolLoggingConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NodePoolLoggingConfig parseFrom( - 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.NodePoolLoggingConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NodePoolLoggingConfig parseFrom( - com.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.NodePoolLoggingConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NodePoolLoggingConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.NodePoolLoggingConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NodePoolLoggingConfig parseFrom( - java.io.InputStream 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.NodePoolLoggingConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NodePoolLoggingConfig parseDelimitedFrom( - java.io.InputStream 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.NodePoolLoggingConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NodePoolLoggingConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.NodePoolLoggingConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * NodePoolLoggingConfig specifies logging configuration for nodepools.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.NodePoolLoggingConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NodePoolLoggingConfig) - com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodePoolLoggingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodePoolLoggingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.NodePoolLoggingConfig.class, - com.google.container.v1beta1.NodePoolLoggingConfig.Builder.class); - } - - // Construct using com.google.container.v1beta1.NodePoolLoggingConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getVariantConfigFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - variantConfig_ = null; - if (variantConfigBuilder_ != null) { - variantConfigBuilder_.dispose(); - variantConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodePoolLoggingConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.NodePoolLoggingConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.NodePoolLoggingConfig build() { - com.google.container.v1beta1.NodePoolLoggingConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.NodePoolLoggingConfig buildPartial() { - com.google.container.v1beta1.NodePoolLoggingConfig result = - new com.google.container.v1beta1.NodePoolLoggingConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.NodePoolLoggingConfig result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.variantConfig_ = - variantConfigBuilder_ == null ? variantConfig_ : variantConfigBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @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.NodePoolLoggingConfig) { - return mergeFrom((com.google.container.v1beta1.NodePoolLoggingConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.NodePoolLoggingConfig other) { - if (other == com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance()) - return this; - if (other.hasVariantConfig()) { - mergeVariantConfig(other.getVariantConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getVariantConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.container.v1beta1.LoggingVariantConfig variantConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.LoggingVariantConfig, - com.google.container.v1beta1.LoggingVariantConfig.Builder, - com.google.container.v1beta1.LoggingVariantConfigOrBuilder> - variantConfigBuilder_; - /** - * - * - *
-     * Logging variant configuration.
-     * 
- * - * .google.container.v1beta1.LoggingVariantConfig variant_config = 1; - * - * @return Whether the variantConfig field is set. - */ - public boolean hasVariantConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Logging variant configuration.
-     * 
- * - * .google.container.v1beta1.LoggingVariantConfig variant_config = 1; - * - * @return The variantConfig. - */ - public com.google.container.v1beta1.LoggingVariantConfig getVariantConfig() { - if (variantConfigBuilder_ == null) { - return variantConfig_ == null - ? com.google.container.v1beta1.LoggingVariantConfig.getDefaultInstance() - : variantConfig_; - } else { - return variantConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Logging variant configuration.
-     * 
- * - * .google.container.v1beta1.LoggingVariantConfig variant_config = 1; - */ - public Builder setVariantConfig(com.google.container.v1beta1.LoggingVariantConfig value) { - if (variantConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - variantConfig_ = value; - } else { - variantConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Logging variant configuration.
-     * 
- * - * .google.container.v1beta1.LoggingVariantConfig variant_config = 1; - */ - public Builder setVariantConfig( - com.google.container.v1beta1.LoggingVariantConfig.Builder builderForValue) { - if (variantConfigBuilder_ == null) { - variantConfig_ = builderForValue.build(); - } else { - variantConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Logging variant configuration.
-     * 
- * - * .google.container.v1beta1.LoggingVariantConfig variant_config = 1; - */ - public Builder mergeVariantConfig(com.google.container.v1beta1.LoggingVariantConfig value) { - if (variantConfigBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && variantConfig_ != null - && variantConfig_ - != com.google.container.v1beta1.LoggingVariantConfig.getDefaultInstance()) { - getVariantConfigBuilder().mergeFrom(value); - } else { - variantConfig_ = value; - } - } else { - variantConfigBuilder_.mergeFrom(value); - } - if (variantConfig_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Logging variant configuration.
-     * 
- * - * .google.container.v1beta1.LoggingVariantConfig variant_config = 1; - */ - public Builder clearVariantConfig() { - bitField0_ = (bitField0_ & ~0x00000001); - variantConfig_ = null; - if (variantConfigBuilder_ != null) { - variantConfigBuilder_.dispose(); - variantConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Logging variant configuration.
-     * 
- * - * .google.container.v1beta1.LoggingVariantConfig variant_config = 1; - */ - public com.google.container.v1beta1.LoggingVariantConfig.Builder getVariantConfigBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getVariantConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Logging variant configuration.
-     * 
- * - * .google.container.v1beta1.LoggingVariantConfig variant_config = 1; - */ - public com.google.container.v1beta1.LoggingVariantConfigOrBuilder getVariantConfigOrBuilder() { - if (variantConfigBuilder_ != null) { - return variantConfigBuilder_.getMessageOrBuilder(); - } else { - return variantConfig_ == null - ? com.google.container.v1beta1.LoggingVariantConfig.getDefaultInstance() - : variantConfig_; - } - } - /** - * - * - *
-     * Logging variant configuration.
-     * 
- * - * .google.container.v1beta1.LoggingVariantConfig variant_config = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.LoggingVariantConfig, - com.google.container.v1beta1.LoggingVariantConfig.Builder, - com.google.container.v1beta1.LoggingVariantConfigOrBuilder> - getVariantConfigFieldBuilder() { - if (variantConfigBuilder_ == null) { - variantConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.LoggingVariantConfig, - com.google.container.v1beta1.LoggingVariantConfig.Builder, - com.google.container.v1beta1.LoggingVariantConfigOrBuilder>( - getVariantConfig(), getParentForChildren(), isClean()); - variantConfig_ = null; - } - return variantConfigBuilder_; - } - - @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.NodePoolLoggingConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodePoolLoggingConfig) - private static final com.google.container.v1beta1.NodePoolLoggingConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.NodePoolLoggingConfig(); - } - - public static com.google.container.v1beta1.NodePoolLoggingConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodePoolLoggingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.NodePoolLoggingConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolLoggingConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolLoggingConfigOrBuilder.java deleted file mode 100644 index b3a1bd8f6163..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolLoggingConfigOrBuilder.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface NodePoolLoggingConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodePoolLoggingConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Logging variant configuration.
-   * 
- * - * .google.container.v1beta1.LoggingVariantConfig variant_config = 1; - * - * @return Whether the variantConfig field is set. - */ - boolean hasVariantConfig(); - /** - * - * - *
-   * Logging variant configuration.
-   * 
- * - * .google.container.v1beta1.LoggingVariantConfig variant_config = 1; - * - * @return The variantConfig. - */ - com.google.container.v1beta1.LoggingVariantConfig getVariantConfig(); - /** - * - * - *
-   * Logging variant configuration.
-   * 
- * - * .google.container.v1beta1.LoggingVariantConfig variant_config = 1; - */ - com.google.container.v1beta1.LoggingVariantConfigOrBuilder getVariantConfigOrBuilder(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolOrBuilder.java deleted file mode 100644 index af1ae07d5d69..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolOrBuilder.java +++ /dev/null @@ -1,798 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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); - - /** - * - * - *
-   * Networking configuration for this NodePool. If specified, it overrides the
-   * cluster-level defaults.
-   * 
- * - * .google.container.v1beta1.NodeNetworkConfig network_config = 14; - * - * @return Whether the networkConfig field is set. - */ - boolean hasNetworkConfig(); - /** - * - * - *
-   * Networking configuration for this NodePool. If specified, it overrides the
-   * cluster-level defaults.
-   * 
- * - * .google.container.v1beta1.NodeNetworkConfig network_config = 14; - * - * @return The networkConfig. - */ - com.google.container.v1beta1.NodeNetworkConfig getNetworkConfig(); - /** - * - * - *
-   * Networking configuration for this NodePool. If specified, it overrides the
-   * cluster-level defaults.
-   * 
- * - * .google.container.v1beta1.NodeNetworkConfig network_config = 14; - */ - com.google.container.v1beta1.NodeNetworkConfigOrBuilder getNetworkConfigOrBuilder(); - - /** - * - * - *
-   * [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 Kubernetes running on this NodePool's nodes. If unspecified,
-   * it defaults as described
-   * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version).
-   * 
- * - * string version = 101; - * - * @return The version. - */ - java.lang.String getVersion(); - /** - * - * - *
-   * The version of Kubernetes running on this NodePool's nodes. If unspecified,
-   * it defaults as described
-   * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version).
-   * 
- * - * 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.
-   * During the node pool blue-green upgrade operation, the URLs contain both
-   * blue and green resources.
-   * 
- * - * 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.
-   * During the node pool blue-green upgrade operation, the URLs contain both
-   * blue and green resources.
-   * 
- * - * 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.
-   * During the node pool blue-green upgrade operation, the URLs contain both
-   * blue and green resources.
-   * 
- * - * 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.
-   * During the node pool blue-green upgrade operation, the URLs contain both
-   * blue and green resources.
-   * 
- * - * 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]; - * - * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4033 - * @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]; - * - * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4033 - * @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(); - - /** - * - * - *
-   * Specifies the node placement policy.
-   * 
- * - * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; - * - * @return Whether the placementPolicy field is set. - */ - boolean hasPlacementPolicy(); - /** - * - * - *
-   * Specifies the node placement policy.
-   * 
- * - * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; - * - * @return The placementPolicy. - */ - com.google.container.v1beta1.NodePool.PlacementPolicy getPlacementPolicy(); - /** - * - * - *
-   * Specifies the node placement policy.
-   * 
- * - * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; - */ - com.google.container.v1beta1.NodePool.PlacementPolicyOrBuilder getPlacementPolicyOrBuilder(); - - /** - * - * - *
-   * Output only. [Output only] Update info contains relevant information during
-   * a node pool update.
-   * 
- * - * - * .google.container.v1beta1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateInfo field is set. - */ - boolean hasUpdateInfo(); - /** - * - * - *
-   * Output only. [Output only] Update info contains relevant information during
-   * a node pool update.
-   * 
- * - * - * .google.container.v1beta1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateInfo. - */ - com.google.container.v1beta1.NodePool.UpdateInfo getUpdateInfo(); - /** - * - * - *
-   * Output only. [Output only] Update info contains relevant information during
-   * a node pool update.
-   * 
- * - * - * .google.container.v1beta1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.container.v1beta1.NodePool.UpdateInfoOrBuilder getUpdateInfoOrBuilder(); - - /** - * - * - *
-   * This checksum is computed by the server based on the value of node pool
-   * fields, and may be sent on update requests to ensure the client has an
-   * up-to-date value before proceeding.
-   * 
- * - * string etag = 110; - * - * @return The etag. - */ - java.lang.String getEtag(); - /** - * - * - *
-   * This checksum is computed by the server based on the value of node pool
-   * fields, and may be sent on update requests to ensure the client has an
-   * up-to-date value before proceeding.
-   * 
- * - * string etag = 110; - * - * @return The bytes for etag. - */ - com.google.protobuf.ByteString getEtagBytes(); - - /** - * - * - *
-   * Specifies the configuration of queued provisioning.
-   * 
- * - * .google.container.v1beta1.NodePool.QueuedProvisioning queued_provisioning = 112; - * - * @return Whether the queuedProvisioning field is set. - */ - boolean hasQueuedProvisioning(); - /** - * - * - *
-   * Specifies the configuration of queued provisioning.
-   * 
- * - * .google.container.v1beta1.NodePool.QueuedProvisioning queued_provisioning = 112; - * - * @return The queuedProvisioning. - */ - com.google.container.v1beta1.NodePool.QueuedProvisioning getQueuedProvisioning(); - /** - * - * - *
-   * Specifies the configuration of queued provisioning.
-   * 
- * - * .google.container.v1beta1.NodePool.QueuedProvisioning queued_provisioning = 112; - */ - com.google.container.v1beta1.NodePool.QueuedProvisioningOrBuilder - getQueuedProvisioningOrBuilder(); - - /** - * - * - *
-   * Enable best effort provisioning for nodes
-   * 
- * - * .google.container.v1beta1.BestEffortProvisioning best_effort_provisioning = 113; - * - * @return Whether the bestEffortProvisioning field is set. - */ - boolean hasBestEffortProvisioning(); - /** - * - * - *
-   * Enable best effort provisioning for nodes
-   * 
- * - * .google.container.v1beta1.BestEffortProvisioning best_effort_provisioning = 113; - * - * @return The bestEffortProvisioning. - */ - com.google.container.v1beta1.BestEffortProvisioning getBestEffortProvisioning(); - /** - * - * - *
-   * Enable best effort provisioning for nodes
-   * 
- * - * .google.container.v1beta1.BestEffortProvisioning best_effort_provisioning = 113; - */ - com.google.container.v1beta1.BestEffortProvisioningOrBuilder getBestEffortProvisioningOrBuilder(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolUpdateStrategy.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolUpdateStrategy.java deleted file mode 100644 index 4ad43eab2ed9..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolUpdateStrategy.java +++ /dev/null @@ -1,184 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * Strategy used for node pool update.
- * 
- * - * Protobuf enum {@code google.container.v1beta1.NodePoolUpdateStrategy} - */ -public enum NodePoolUpdateStrategy implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Default value if unset. GKE internally defaults the update strategy to
-   * SURGE for unspecified strategies.
-   * 
- * - * NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED = 0; - */ - NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED(0), - /** - * - * - *
-   * blue-green upgrade.
-   * 
- * - * BLUE_GREEN = 2; - */ - BLUE_GREEN(2), - /** - * - * - *
-   * SURGE is the traditional way of upgrading a node pool.
-   * max_surge and max_unavailable determines the level of upgrade parallelism.
-   * 
- * - * SURGE = 3; - */ - SURGE(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * Default value if unset. GKE internally defaults the update strategy to
-   * SURGE for unspecified strategies.
-   * 
- * - * NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED = 0; - */ - public static final int NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * blue-green upgrade.
-   * 
- * - * BLUE_GREEN = 2; - */ - public static final int BLUE_GREEN_VALUE = 2; - /** - * - * - *
-   * SURGE is the traditional way of upgrading a node pool.
-   * max_surge and max_unavailable determines the level of upgrade parallelism.
-   * 
- * - * SURGE = 3; - */ - public static final int SURGE_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 NodePoolUpdateStrategy 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 NodePoolUpdateStrategy forNumber(int value) { - switch (value) { - case 0: - return NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED; - case 2: - return BLUE_GREEN; - case 3: - return SURGE; - 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 NodePoolUpdateStrategy findValueByNumber(int number) { - return NodePoolUpdateStrategy.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(2); - } - - private static final NodePoolUpdateStrategy[] VALUES = values(); - - public static NodePoolUpdateStrategy 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 NodePoolUpdateStrategy(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1beta1.NodePoolUpdateStrategy) -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeTaint.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeTaint.java deleted file mode 100644 index 7e8a3cf22e9a..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeTaint.java +++ /dev/null @@ -1,1142 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * Kubernetes taint is composed 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(); - } - - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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_ = 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; - * - * @return The effect. - */ - @java.lang.Override - public com.google.container.v1beta1.NodeTaint.Effect getEffect() { - com.google.container.v1beta1.NodeTaint.Effect result = - com.google.container.v1beta1.NodeTaint.Effect.forNumber(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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); - } - if (effect_ != com.google.container.v1beta1.NodeTaint.Effect.EFFECT_UNSPECIFIED.getNumber()) { - output.writeEnum(3, effect_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { - 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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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 composed 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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.NodeTaint result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.key_ = key_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.value_ = value_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.effect_ = effect_; - } - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getValue().isEmpty()) { - value_ = other.value_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.effect_ != 0) { - setEffectValue(other.getEffectValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - key_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - value_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - effect_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Key for taint.
-     * 
- * - * string key = 1; - * - * @return This builder for chaining. - */ - public Builder clearKey() { - key_ = getDefaultInstance().getKey(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Value for taint.
-     * 
- * - * string value = 2; - * - * @return This builder for chaining. - */ - public Builder clearValue() { - value_ = getDefaultInstance().getValue(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - 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; - bitField0_ |= 0x00000004; - 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() { - com.google.container.v1beta1.NodeTaint.Effect result = - com.google.container.v1beta1.NodeTaint.Effect.forNumber(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(); - } - bitField0_ |= 0x00000004; - effect_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Effect for taint.
-     * 
- * - * .google.container.v1beta1.NodeTaint.Effect effect = 3; - * - * @return This builder for chaining. - */ - public Builder clearEffect() { - bitField0_ = (bitField0_ & ~0x00000004); - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeTaintOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeTaintOrBuilder.java deleted file mode 100644 index 9a848189ac55..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeTaintOrBuilder.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeTaints.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeTaints.java deleted file mode 100644 index 1322e3244269..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeTaints.java +++ /dev/null @@ -1,934 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * Collection of Kubernetes [node
- * taints](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration).
- * 
- * - * Protobuf type {@code google.container.v1beta1.NodeTaints} - */ -public final class NodeTaints extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodeTaints) - NodeTaintsOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeTaints.newBuilder() to construct. - private NodeTaints(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NodeTaints() { - taints_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NodeTaints(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodeTaints_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodeTaints_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.NodeTaints.class, - com.google.container.v1beta1.NodeTaints.Builder.class); - } - - public static final int TAINTS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List taints_; - /** - * - * - *
-   * List of node taints.
-   * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 1; - */ - @java.lang.Override - public java.util.List getTaintsList() { - return taints_; - } - /** - * - * - *
-   * List of node taints.
-   * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 1; - */ - @java.lang.Override - public java.util.List - getTaintsOrBuilderList() { - return taints_; - } - /** - * - * - *
-   * List of node taints.
-   * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 1; - */ - @java.lang.Override - public int getTaintsCount() { - return taints_.size(); - } - /** - * - * - *
-   * List of node taints.
-   * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 1; - */ - @java.lang.Override - public com.google.container.v1beta1.NodeTaint getTaints(int index) { - return taints_.get(index); - } - /** - * - * - *
-   * List of node taints.
-   * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 1; - */ - @java.lang.Override - public com.google.container.v1beta1.NodeTaintOrBuilder getTaintsOrBuilder(int index) { - return taints_.get(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < taints_.size(); i++) { - output.writeMessage(1, taints_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < taints_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, taints_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.NodeTaints)) { - return super.equals(obj); - } - com.google.container.v1beta1.NodeTaints other = (com.google.container.v1beta1.NodeTaints) obj; - - if (!getTaintsList().equals(other.getTaintsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTaintsCount() > 0) { - hash = (37 * hash) + TAINTS_FIELD_NUMBER; - hash = (53 * hash) + getTaintsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.NodeTaints parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NodeTaints parseFrom( - 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.NodeTaints parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NodeTaints parseFrom( - com.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.NodeTaints parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NodeTaints parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.NodeTaints parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NodeTaints parseFrom( - java.io.InputStream 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.NodeTaints parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NodeTaints parseDelimitedFrom( - java.io.InputStream 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.NodeTaints parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NodeTaints parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.NodeTaints prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Collection of Kubernetes [node
-   * taints](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration).
-   * 
- * - * Protobuf type {@code google.container.v1beta1.NodeTaints} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NodeTaints) - com.google.container.v1beta1.NodeTaintsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodeTaints_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NodeTaints_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.NodeTaints.class, - com.google.container.v1beta1.NodeTaints.Builder.class); - } - - // Construct using com.google.container.v1beta1.NodeTaints.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (taintsBuilder_ == null) { - taints_ = java.util.Collections.emptyList(); - } else { - taints_ = null; - taintsBuilder_.clear(); - } - 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_NodeTaints_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.NodeTaints getDefaultInstanceForType() { - return com.google.container.v1beta1.NodeTaints.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.NodeTaints build() { - com.google.container.v1beta1.NodeTaints result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.NodeTaints buildPartial() { - com.google.container.v1beta1.NodeTaints result = - new com.google.container.v1beta1.NodeTaints(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.container.v1beta1.NodeTaints result) { - if (taintsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - taints_ = java.util.Collections.unmodifiableList(taints_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.taints_ = taints_; - } else { - result.taints_ = taintsBuilder_.build(); - } - } - - private void buildPartial0(com.google.container.v1beta1.NodeTaints result) { - int from_bitField0_ = bitField0_; - } - - @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.NodeTaints) { - return mergeFrom((com.google.container.v1beta1.NodeTaints) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.NodeTaints other) { - if (other == com.google.container.v1beta1.NodeTaints.getDefaultInstance()) return this; - if (taintsBuilder_ == null) { - if (!other.taints_.isEmpty()) { - if (taints_.isEmpty()) { - taints_ = other.taints_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTaintsIsMutable(); - taints_.addAll(other.taints_); - } - onChanged(); - } - } else { - if (!other.taints_.isEmpty()) { - if (taintsBuilder_.isEmpty()) { - taintsBuilder_.dispose(); - taintsBuilder_ = null; - taints_ = other.taints_; - bitField0_ = (bitField0_ & ~0x00000001); - taintsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTaintsFieldBuilder() - : null; - } else { - taintsBuilder_.addAllMessages(other.taints_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.container.v1beta1.NodeTaint m = - input.readMessage( - com.google.container.v1beta1.NodeTaint.parser(), extensionRegistry); - if (taintsBuilder_ == null) { - ensureTaintsIsMutable(); - taints_.add(m); - } else { - taintsBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List taints_ = - java.util.Collections.emptyList(); - - private void ensureTaintsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - taints_ = new java.util.ArrayList(taints_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.NodeTaint, - com.google.container.v1beta1.NodeTaint.Builder, - com.google.container.v1beta1.NodeTaintOrBuilder> - taintsBuilder_; - - /** - * - * - *
-     * List of node taints.
-     * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 1; - */ - public java.util.List getTaintsList() { - if (taintsBuilder_ == null) { - return java.util.Collections.unmodifiableList(taints_); - } else { - return taintsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * List of node taints.
-     * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 1; - */ - public int getTaintsCount() { - if (taintsBuilder_ == null) { - return taints_.size(); - } else { - return taintsBuilder_.getCount(); - } - } - /** - * - * - *
-     * List of node taints.
-     * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 1; - */ - public com.google.container.v1beta1.NodeTaint getTaints(int index) { - if (taintsBuilder_ == null) { - return taints_.get(index); - } else { - return taintsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * List of node taints.
-     * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 1; - */ - 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 node taints.
-     * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 1; - */ - 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 node taints.
-     * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 1; - */ - 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 node taints.
-     * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 1; - */ - 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 node taints.
-     * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 1; - */ - 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 node taints.
-     * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 1; - */ - 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 node taints.
-     * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 1; - */ - 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 node taints.
-     * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 1; - */ - public Builder clearTaints() { - if (taintsBuilder_ == null) { - taints_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - taintsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * List of node taints.
-     * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 1; - */ - public Builder removeTaints(int index) { - if (taintsBuilder_ == null) { - ensureTaintsIsMutable(); - taints_.remove(index); - onChanged(); - } else { - taintsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * List of node taints.
-     * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 1; - */ - public com.google.container.v1beta1.NodeTaint.Builder getTaintsBuilder(int index) { - return getTaintsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * List of node taints.
-     * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 1; - */ - public com.google.container.v1beta1.NodeTaintOrBuilder getTaintsOrBuilder(int index) { - if (taintsBuilder_ == null) { - return taints_.get(index); - } else { - return taintsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * List of node taints.
-     * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 1; - */ - public java.util.List - getTaintsOrBuilderList() { - if (taintsBuilder_ != null) { - return taintsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(taints_); - } - } - /** - * - * - *
-     * List of node taints.
-     * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 1; - */ - public com.google.container.v1beta1.NodeTaint.Builder addTaintsBuilder() { - return getTaintsFieldBuilder() - .addBuilder(com.google.container.v1beta1.NodeTaint.getDefaultInstance()); - } - /** - * - * - *
-     * List of node taints.
-     * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 1; - */ - public com.google.container.v1beta1.NodeTaint.Builder addTaintsBuilder(int index) { - return getTaintsFieldBuilder() - .addBuilder(index, com.google.container.v1beta1.NodeTaint.getDefaultInstance()); - } - /** - * - * - *
-     * List of node taints.
-     * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 1; - */ - 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_ & 0x00000001) != 0), getParentForChildren(), isClean()); - taints_ = null; - } - return taintsBuilder_; - } - - @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.NodeTaints) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodeTaints) - private static final com.google.container.v1beta1.NodeTaints DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.NodeTaints(); - } - - public static com.google.container.v1beta1.NodeTaints getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeTaints parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.NodeTaints getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeTaintsOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeTaintsOrBuilder.java deleted file mode 100644 index b8f8f340b4b5..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeTaintsOrBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface NodeTaintsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodeTaints) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * List of node taints.
-   * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 1; - */ - java.util.List getTaintsList(); - /** - * - * - *
-   * List of node taints.
-   * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 1; - */ - com.google.container.v1beta1.NodeTaint getTaints(int index); - /** - * - * - *
-   * List of node taints.
-   * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 1; - */ - int getTaintsCount(); - /** - * - * - *
-   * List of node taints.
-   * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 1; - */ - java.util.List - getTaintsOrBuilderList(); - /** - * - * - *
-   * List of node taints.
-   * 
- * - * repeated .google.container.v1beta1.NodeTaint taints = 1; - */ - com.google.container.v1beta1.NodeTaintOrBuilder getTaintsOrBuilder(int index); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NotificationConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NotificationConfig.java deleted file mode 100644 index d2c9d8c96e87..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NotificationConfig.java +++ /dev/null @@ -1,2915 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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); - } - - /** - * - * - *
-   * Types of notifications currently supported. Can be used to filter what
-   * notifications are sent.
-   * 
- * - * Protobuf enum {@code google.container.v1beta1.NotificationConfig.EventType} - */ - public enum EventType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Not set, will be ignored.
-     * 
- * - * EVENT_TYPE_UNSPECIFIED = 0; - */ - EVENT_TYPE_UNSPECIFIED(0), - /** - * - * - *
-     * Corresponds with UpgradeAvailableEvent.
-     * 
- * - * UPGRADE_AVAILABLE_EVENT = 1; - */ - UPGRADE_AVAILABLE_EVENT(1), - /** - * - * - *
-     * Corresponds with UpgradeEvent.
-     * 
- * - * UPGRADE_EVENT = 2; - */ - UPGRADE_EVENT(2), - /** - * - * - *
-     * Corresponds with SecurityBulletinEvent.
-     * 
- * - * SECURITY_BULLETIN_EVENT = 3; - */ - SECURITY_BULLETIN_EVENT(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Not set, will be ignored.
-     * 
- * - * EVENT_TYPE_UNSPECIFIED = 0; - */ - public static final int EVENT_TYPE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Corresponds with UpgradeAvailableEvent.
-     * 
- * - * UPGRADE_AVAILABLE_EVENT = 1; - */ - public static final int UPGRADE_AVAILABLE_EVENT_VALUE = 1; - /** - * - * - *
-     * Corresponds with UpgradeEvent.
-     * 
- * - * UPGRADE_EVENT = 2; - */ - public static final int UPGRADE_EVENT_VALUE = 2; - /** - * - * - *
-     * Corresponds with SecurityBulletinEvent.
-     * 
- * - * SECURITY_BULLETIN_EVENT = 3; - */ - public static final int SECURITY_BULLETIN_EVENT_VALUE = 3; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static EventType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static EventType forNumber(int value) { - switch (value) { - case 0: - return EVENT_TYPE_UNSPECIFIED; - case 1: - return UPGRADE_AVAILABLE_EVENT; - case 2: - return UPGRADE_EVENT; - case 3: - return SECURITY_BULLETIN_EVENT; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public EventType findValueByNumber(int number) { - return EventType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1beta1.NotificationConfig.getDescriptor().getEnumTypes().get(0); - } - - private static final EventType[] VALUES = values(); - - public static EventType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private EventType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1beta1.NotificationConfig.EventType) - } - - public interface PubSubOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NotificationConfig.PubSub) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Enable notifications for Pub/Sub.
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); - - /** - * - * - *
-     * The desired Pub/Sub topic to which notifications will be
-     * sent by GKE. Format is `projects/{project}/topics/{topic}`.
-     * 
- * - * string topic = 2 [(.google.api.resource_reference) = { ... } - * - * @return The topic. - */ - java.lang.String getTopic(); - /** - * - * - *
-     * The desired Pub/Sub topic to which notifications will be
-     * sent by GKE. Format is `projects/{project}/topics/{topic}`.
-     * 
- * - * string topic = 2 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for topic. - */ - com.google.protobuf.ByteString getTopicBytes(); - - /** - * - * - *
-     * Allows filtering to one or more specific event types. If no filter is
-     * specified, or if a filter is specified with no event types, all event
-     * types will be sent
-     * 
- * - * .google.container.v1beta1.NotificationConfig.Filter filter = 3; - * - * @return Whether the filter field is set. - */ - boolean hasFilter(); - /** - * - * - *
-     * Allows filtering to one or more specific event types. If no filter is
-     * specified, or if a filter is specified with no event types, all event
-     * types will be sent
-     * 
- * - * .google.container.v1beta1.NotificationConfig.Filter filter = 3; - * - * @return The filter. - */ - com.google.container.v1beta1.NotificationConfig.Filter getFilter(); - /** - * - * - *
-     * Allows filtering to one or more specific event types. If no filter is
-     * specified, or if a filter is specified with no event types, all event
-     * types will be sent
-     * 
- * - * .google.container.v1beta1.NotificationConfig.Filter filter = 3; - */ - com.google.container.v1beta1.NotificationConfig.FilterOrBuilder getFilterOrBuilder(); - } - /** - * - * - *
-   * 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(); - } - - 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); - } - - private int bitField0_; - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-     * 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object topic_ = ""; - /** - * - * - *
-     * The desired Pub/Sub topic to which notifications will be
-     * sent by GKE. Format is `projects/{project}/topics/{topic}`.
-     * 
- * - * string topic = 2 [(.google.api.resource_reference) = { ... } - * - * @return The topic. - */ - @java.lang.Override - public java.lang.String getTopic() { - java.lang.Object ref = topic_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - topic_ = s; - return s; - } - } - /** - * - * - *
-     * The desired Pub/Sub topic to which notifications will be
-     * sent by GKE. Format is `projects/{project}/topics/{topic}`.
-     * 
- * - * string topic = 2 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for topic. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTopicBytes() { - java.lang.Object ref = topic_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - topic_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTER_FIELD_NUMBER = 3; - private com.google.container.v1beta1.NotificationConfig.Filter filter_; - /** - * - * - *
-     * Allows filtering to one or more specific event types. If no filter is
-     * specified, or if a filter is specified with no event types, all event
-     * types will be sent
-     * 
- * - * .google.container.v1beta1.NotificationConfig.Filter filter = 3; - * - * @return Whether the filter field is set. - */ - @java.lang.Override - public boolean hasFilter() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Allows filtering to one or more specific event types. If no filter is
-     * specified, or if a filter is specified with no event types, all event
-     * types will be sent
-     * 
- * - * .google.container.v1beta1.NotificationConfig.Filter filter = 3; - * - * @return The filter. - */ - @java.lang.Override - public com.google.container.v1beta1.NotificationConfig.Filter getFilter() { - return filter_ == null - ? com.google.container.v1beta1.NotificationConfig.Filter.getDefaultInstance() - : filter_; - } - /** - * - * - *
-     * Allows filtering to one or more specific event types. If no filter is
-     * specified, or if a filter is specified with no event types, all event
-     * types will be sent
-     * 
- * - * .google.container.v1beta1.NotificationConfig.Filter filter = 3; - */ - @java.lang.Override - public com.google.container.v1beta1.NotificationConfig.FilterOrBuilder getFilterOrBuilder() { - return filter_ == null - ? com.google.container.v1beta1.NotificationConfig.Filter.getDefaultInstance() - : filter_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, topic_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getFilter()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topic_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFilter()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (hasFilter() != other.hasFilter()) return false; - if (hasFilter()) { - if (!getFilter().equals(other.getFilter())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); - hash = (37 * hash) + TOPIC_FIELD_NUMBER; - hash = (53 * hash) + getTopic().hashCode(); - if (hasFilter()) { - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - } - hash = (29 * hash) + getUnknownFields().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) { - getFilterFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enabled_ = false; - topic_ = ""; - filter_ = null; - if (filterBuilder_ != null) { - filterBuilder_.dispose(); - filterBuilder_ = 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_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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.NotificationConfig.PubSub result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.topic_ = topic_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.filter_ = filterBuilder_ == null ? filter_ : filterBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @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_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasFilter()) { - mergeFilter(other.getFilter()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - topic_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getFilterFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * Enable notifications for Pub/Sub.
-       * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000002; - 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(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.container.v1beta1.NotificationConfig.Filter filter_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NotificationConfig.Filter, - com.google.container.v1beta1.NotificationConfig.Filter.Builder, - com.google.container.v1beta1.NotificationConfig.FilterOrBuilder> - filterBuilder_; - /** - * - * - *
-       * Allows filtering to one or more specific event types. If no filter is
-       * specified, or if a filter is specified with no event types, all event
-       * types will be sent
-       * 
- * - * .google.container.v1beta1.NotificationConfig.Filter filter = 3; - * - * @return Whether the filter field is set. - */ - public boolean hasFilter() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-       * Allows filtering to one or more specific event types. If no filter is
-       * specified, or if a filter is specified with no event types, all event
-       * types will be sent
-       * 
- * - * .google.container.v1beta1.NotificationConfig.Filter filter = 3; - * - * @return The filter. - */ - public com.google.container.v1beta1.NotificationConfig.Filter getFilter() { - if (filterBuilder_ == null) { - return filter_ == null - ? com.google.container.v1beta1.NotificationConfig.Filter.getDefaultInstance() - : filter_; - } else { - return filterBuilder_.getMessage(); - } - } - /** - * - * - *
-       * Allows filtering to one or more specific event types. If no filter is
-       * specified, or if a filter is specified with no event types, all event
-       * types will be sent
-       * 
- * - * .google.container.v1beta1.NotificationConfig.Filter filter = 3; - */ - public Builder setFilter(com.google.container.v1beta1.NotificationConfig.Filter value) { - if (filterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - filter_ = value; - } else { - filterBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-       * Allows filtering to one or more specific event types. If no filter is
-       * specified, or if a filter is specified with no event types, all event
-       * types will be sent
-       * 
- * - * .google.container.v1beta1.NotificationConfig.Filter filter = 3; - */ - public Builder setFilter( - com.google.container.v1beta1.NotificationConfig.Filter.Builder builderForValue) { - if (filterBuilder_ == null) { - filter_ = builderForValue.build(); - } else { - filterBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-       * Allows filtering to one or more specific event types. If no filter is
-       * specified, or if a filter is specified with no event types, all event
-       * types will be sent
-       * 
- * - * .google.container.v1beta1.NotificationConfig.Filter filter = 3; - */ - public Builder mergeFilter(com.google.container.v1beta1.NotificationConfig.Filter value) { - if (filterBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && filter_ != null - && filter_ - != com.google.container.v1beta1.NotificationConfig.Filter.getDefaultInstance()) { - getFilterBuilder().mergeFrom(value); - } else { - filter_ = value; - } - } else { - filterBuilder_.mergeFrom(value); - } - if (filter_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - * - * - *
-       * Allows filtering to one or more specific event types. If no filter is
-       * specified, or if a filter is specified with no event types, all event
-       * types will be sent
-       * 
- * - * .google.container.v1beta1.NotificationConfig.Filter filter = 3; - */ - public Builder clearFilter() { - bitField0_ = (bitField0_ & ~0x00000004); - filter_ = null; - if (filterBuilder_ != null) { - filterBuilder_.dispose(); - filterBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-       * Allows filtering to one or more specific event types. If no filter is
-       * specified, or if a filter is specified with no event types, all event
-       * types will be sent
-       * 
- * - * .google.container.v1beta1.NotificationConfig.Filter filter = 3; - */ - public com.google.container.v1beta1.NotificationConfig.Filter.Builder getFilterBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * Allows filtering to one or more specific event types. If no filter is
-       * specified, or if a filter is specified with no event types, all event
-       * types will be sent
-       * 
- * - * .google.container.v1beta1.NotificationConfig.Filter filter = 3; - */ - public com.google.container.v1beta1.NotificationConfig.FilterOrBuilder getFilterOrBuilder() { - if (filterBuilder_ != null) { - return filterBuilder_.getMessageOrBuilder(); - } else { - return filter_ == null - ? com.google.container.v1beta1.NotificationConfig.Filter.getDefaultInstance() - : filter_; - } - } - /** - * - * - *
-       * Allows filtering to one or more specific event types. If no filter is
-       * specified, or if a filter is specified with no event types, all event
-       * types will be sent
-       * 
- * - * .google.container.v1beta1.NotificationConfig.Filter filter = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NotificationConfig.Filter, - com.google.container.v1beta1.NotificationConfig.Filter.Builder, - com.google.container.v1beta1.NotificationConfig.FilterOrBuilder> - getFilterFieldBuilder() { - if (filterBuilder_ == null) { - filterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NotificationConfig.Filter, - com.google.container.v1beta1.NotificationConfig.Filter.Builder, - com.google.container.v1beta1.NotificationConfig.FilterOrBuilder>( - getFilter(), getParentForChildren(), isClean()); - filter_ = null; - } - return filterBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.NotificationConfig.PubSub) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.NotificationConfig.PubSub) - private static final com.google.container.v1beta1.NotificationConfig.PubSub DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.NotificationConfig.PubSub(); - } - - public static com.google.container.v1beta1.NotificationConfig.PubSub getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PubSub parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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 interface FilterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NotificationConfig.Filter) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Event types to allowlist.
-     * 
- * - * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; - * - * @return A list containing the eventType. - */ - java.util.List getEventTypeList(); - /** - * - * - *
-     * Event types to allowlist.
-     * 
- * - * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; - * - * @return The count of eventType. - */ - int getEventTypeCount(); - /** - * - * - *
-     * Event types to allowlist.
-     * 
- * - * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; - * - * @param index The index of the element to return. - * @return The eventType at the given index. - */ - com.google.container.v1beta1.NotificationConfig.EventType getEventType(int index); - /** - * - * - *
-     * Event types to allowlist.
-     * 
- * - * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; - * - * @return A list containing the enum numeric values on the wire for eventType. - */ - java.util.List getEventTypeValueList(); - /** - * - * - *
-     * Event types to allowlist.
-     * 
- * - * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of eventType at the given index. - */ - int getEventTypeValue(int index); - } - /** - * - * - *
-   * Allows filtering to one or more specific event types. If event types are
-   * present, those and only those event types will be transmitted to the
-   * cluster. Other types will be skipped. If no filter is specified, or no
-   * event types are present, all event types will be sent
-   * 
- * - * Protobuf type {@code google.container.v1beta1.NotificationConfig.Filter} - */ - public static final class Filter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.NotificationConfig.Filter) - FilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use Filter.newBuilder() to construct. - private Filter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Filter() { - eventType_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Filter(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NotificationConfig_Filter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NotificationConfig_Filter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.NotificationConfig.Filter.class, - com.google.container.v1beta1.NotificationConfig.Filter.Builder.class); - } - - public static final int EVENT_TYPE_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List eventType_; - - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.container.v1beta1.NotificationConfig.EventType> - eventType_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.container.v1beta1.NotificationConfig.EventType>() { - public com.google.container.v1beta1.NotificationConfig.EventType convert( - java.lang.Integer from) { - com.google.container.v1beta1.NotificationConfig.EventType result = - com.google.container.v1beta1.NotificationConfig.EventType.forNumber(from); - return result == null - ? com.google.container.v1beta1.NotificationConfig.EventType.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-     * Event types to allowlist.
-     * 
- * - * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; - * - * @return A list containing the eventType. - */ - @java.lang.Override - public java.util.List - getEventTypeList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.container.v1beta1.NotificationConfig.EventType>( - eventType_, eventType_converter_); - } - /** - * - * - *
-     * Event types to allowlist.
-     * 
- * - * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; - * - * @return The count of eventType. - */ - @java.lang.Override - public int getEventTypeCount() { - return eventType_.size(); - } - /** - * - * - *
-     * Event types to allowlist.
-     * 
- * - * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; - * - * @param index The index of the element to return. - * @return The eventType at the given index. - */ - @java.lang.Override - public com.google.container.v1beta1.NotificationConfig.EventType getEventType(int index) { - return eventType_converter_.convert(eventType_.get(index)); - } - /** - * - * - *
-     * Event types to allowlist.
-     * 
- * - * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; - * - * @return A list containing the enum numeric values on the wire for eventType. - */ - @java.lang.Override - public java.util.List getEventTypeValueList() { - return eventType_; - } - /** - * - * - *
-     * Event types to allowlist.
-     * 
- * - * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of eventType at the given index. - */ - @java.lang.Override - public int getEventTypeValue(int index) { - return eventType_.get(index); - } - - private int eventTypeMemoizedSerializedSize; - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (getEventTypeList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(eventTypeMemoizedSerializedSize); - } - for (int i = 0; i < eventType_.size(); i++) { - output.writeEnumNoTag(eventType_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < eventType_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(eventType_.get(i)); - } - size += dataSize; - if (!getEventTypeList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - eventTypeMemoizedSerializedSize = dataSize; - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1beta1.NotificationConfig.Filter)) { - return super.equals(obj); - } - com.google.container.v1beta1.NotificationConfig.Filter other = - (com.google.container.v1beta1.NotificationConfig.Filter) obj; - - if (!eventType_.equals(other.eventType_)) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getEventTypeCount() > 0) { - hash = (37 * hash) + EVENT_TYPE_FIELD_NUMBER; - hash = (53 * hash) + eventType_.hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.NotificationConfig.Filter parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NotificationConfig.Filter parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.NotificationConfig.Filter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NotificationConfig.Filter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.NotificationConfig.Filter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.NotificationConfig.Filter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.NotificationConfig.Filter parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NotificationConfig.Filter parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.NotificationConfig.Filter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NotificationConfig.Filter parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.NotificationConfig.Filter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.NotificationConfig.Filter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.container.v1beta1.NotificationConfig.Filter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Allows filtering to one or more specific event types. If event types are
-     * present, those and only those event types will be transmitted to the
-     * cluster. Other types will be skipped. If no filter is specified, or no
-     * event types are present, all event types will be sent
-     * 
- * - * Protobuf type {@code google.container.v1beta1.NotificationConfig.Filter} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NotificationConfig.Filter) - com.google.container.v1beta1.NotificationConfig.FilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NotificationConfig_Filter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NotificationConfig_Filter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.NotificationConfig.Filter.class, - com.google.container.v1beta1.NotificationConfig.Filter.Builder.class); - } - - // Construct using com.google.container.v1beta1.NotificationConfig.Filter.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - eventType_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_NotificationConfig_Filter_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.NotificationConfig.Filter getDefaultInstanceForType() { - return com.google.container.v1beta1.NotificationConfig.Filter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.NotificationConfig.Filter build() { - com.google.container.v1beta1.NotificationConfig.Filter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.NotificationConfig.Filter buildPartial() { - com.google.container.v1beta1.NotificationConfig.Filter result = - new com.google.container.v1beta1.NotificationConfig.Filter(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.container.v1beta1.NotificationConfig.Filter result) { - if (((bitField0_ & 0x00000001) != 0)) { - eventType_ = java.util.Collections.unmodifiableList(eventType_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.eventType_ = eventType_; - } - - private void buildPartial0(com.google.container.v1beta1.NotificationConfig.Filter result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.NotificationConfig.Filter) { - return mergeFrom((com.google.container.v1beta1.NotificationConfig.Filter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.NotificationConfig.Filter other) { - if (other == com.google.container.v1beta1.NotificationConfig.Filter.getDefaultInstance()) - return this; - if (!other.eventType_.isEmpty()) { - if (eventType_.isEmpty()) { - eventType_ = other.eventType_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEventTypeIsMutable(); - eventType_.addAll(other.eventType_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - int tmpRaw = input.readEnum(); - ensureEventTypeIsMutable(); - eventType_.add(tmpRaw); - break; - } // case 8 - case 10: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureEventTypeIsMutable(); - eventType_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List eventType_ = java.util.Collections.emptyList(); - - private void ensureEventTypeIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - eventType_ = new java.util.ArrayList(eventType_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-       * Event types to allowlist.
-       * 
- * - * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; - * - * - * @return A list containing the eventType. - */ - public java.util.List - getEventTypeList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.container.v1beta1.NotificationConfig.EventType>( - eventType_, eventType_converter_); - } - /** - * - * - *
-       * Event types to allowlist.
-       * 
- * - * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; - * - * - * @return The count of eventType. - */ - public int getEventTypeCount() { - return eventType_.size(); - } - /** - * - * - *
-       * Event types to allowlist.
-       * 
- * - * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; - * - * - * @param index The index of the element to return. - * @return The eventType at the given index. - */ - public com.google.container.v1beta1.NotificationConfig.EventType getEventType(int index) { - return eventType_converter_.convert(eventType_.get(index)); - } - /** - * - * - *
-       * Event types to allowlist.
-       * 
- * - * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; - * - * - * @param index The index to set the value at. - * @param value The eventType to set. - * @return This builder for chaining. - */ - public Builder setEventType( - int index, com.google.container.v1beta1.NotificationConfig.EventType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventTypeIsMutable(); - eventType_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-       * Event types to allowlist.
-       * 
- * - * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; - * - * - * @param value The eventType to add. - * @return This builder for chaining. - */ - public Builder addEventType(com.google.container.v1beta1.NotificationConfig.EventType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventTypeIsMutable(); - eventType_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-       * Event types to allowlist.
-       * 
- * - * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; - * - * - * @param values The eventType to add. - * @return This builder for chaining. - */ - public Builder addAllEventType( - java.lang.Iterable - values) { - ensureEventTypeIsMutable(); - for (com.google.container.v1beta1.NotificationConfig.EventType value : values) { - eventType_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-       * Event types to allowlist.
-       * 
- * - * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; - * - * - * @return This builder for chaining. - */ - public Builder clearEventType() { - eventType_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-       * Event types to allowlist.
-       * 
- * - * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; - * - * - * @return A list containing the enum numeric values on the wire for eventType. - */ - public java.util.List getEventTypeValueList() { - return java.util.Collections.unmodifiableList(eventType_); - } - /** - * - * - *
-       * Event types to allowlist.
-       * 
- * - * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of eventType at the given index. - */ - public int getEventTypeValue(int index) { - return eventType_.get(index); - } - /** - * - * - *
-       * Event types to allowlist.
-       * 
- * - * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; - * - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for eventType to set. - * @return This builder for chaining. - */ - public Builder setEventTypeValue(int index, int value) { - ensureEventTypeIsMutable(); - eventType_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-       * Event types to allowlist.
-       * 
- * - * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; - * - * - * @param value The enum numeric value on the wire for eventType to add. - * @return This builder for chaining. - */ - public Builder addEventTypeValue(int value) { - ensureEventTypeIsMutable(); - eventType_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-       * Event types to allowlist.
-       * 
- * - * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; - * - * - * @param values The enum numeric values on the wire for eventType to add. - * @return This builder for chaining. - */ - public Builder addAllEventTypeValue(java.lang.Iterable values) { - ensureEventTypeIsMutable(); - for (int value : values) { - eventType_.add(value); - } - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.NotificationConfig.Filter) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.NotificationConfig.Filter) - private static final com.google.container.v1beta1.NotificationConfig.Filter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.NotificationConfig.Filter(); - } - - public static com.google.container.v1beta1.NotificationConfig.Filter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Filter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1beta1.NotificationConfig.Filter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int bitField0_; - 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 ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * 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 pubsub_ == null - ? com.google.container.v1beta1.NotificationConfig.PubSub.getDefaultInstance() - : pubsub_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getPubsub()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPubsub()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { - getPubsubFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - pubsub_ = null; - if (pubsubBuilder_ != null) { - pubsubBuilder_.dispose(); - 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 (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.NotificationConfig result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.pubsub_ = pubsubBuilder_ == null ? pubsub_ : pubsubBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getPubsubFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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 ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * 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; - } else { - pubsubBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - 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(); - } else { - pubsubBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - 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 (((bitField0_ & 0x00000001) != 0) - && pubsub_ != null - && pubsub_ - != com.google.container.v1beta1.NotificationConfig.PubSub.getDefaultInstance()) { - getPubsubBuilder().mergeFrom(value); - } else { - pubsub_ = value; - } - } else { - pubsubBuilder_.mergeFrom(value); - } - if (pubsub_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Notification config for Pub/Sub.
-     * 
- * - * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; - */ - public Builder clearPubsub() { - bitField0_ = (bitField0_ & ~0x00000001); - pubsub_ = null; - if (pubsubBuilder_ != null) { - pubsubBuilder_.dispose(); - pubsubBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Notification config for Pub/Sub.
-     * 
- * - * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; - */ - public com.google.container.v1beta1.NotificationConfig.PubSub.Builder getPubsubBuilder() { - bitField0_ |= 0x00000001; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NotificationConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NotificationConfigOrBuilder.java deleted file mode 100644 index 670a6649ee38..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NotificationConfigOrBuilder.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Operation.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Operation.java deleted file mode 100644 index 062b21b4702d..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Operation.java +++ /dev/null @@ -1,5202 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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 categorizes the operation.
-   * 
- * - * Protobuf enum {@code google.container.v1beta1.Operation.Type} - */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Not set.
-     * 
- * - * TYPE_UNSPECIFIED = 0; - */ - TYPE_UNSPECIFIED(0), - /** - * - * - *
-     * The cluster is being created. The cluster should be assumed to be
-     * unusable until the operation finishes.
-     *
-     * In the event of the operation failing, the cluster will enter the [ERROR
-     * state][Cluster.Status.ERROR] and eventually be deleted.
-     * 
- * - * CREATE_CLUSTER = 1; - */ - CREATE_CLUSTER(1), - /** - * - * - *
-     * The cluster is being deleted. The cluster should be assumed to be
-     * unusable as soon as this operation starts.
-     *
-     * In the event of the operation failing, the cluster will enter the [ERROR
-     * state][Cluster.Status.ERROR] and the deletion will be automatically
-     * retried until completed.
-     * 
- * - * DELETE_CLUSTER = 2; - */ - DELETE_CLUSTER(2), - /** - * - * - *
-     * The [cluster
-     * version][google.container.v1beta1.ClusterUpdate.desired_master_version]
-     * is being updated. Note that this includes "upgrades" to the same version,
-     * which are simply a recreation. This also includes
-     * [auto-upgrades](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-upgrades#upgrading_automatically).
-     * For more details, see [documentation on cluster
-     * upgrades](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-upgrades#cluster_upgrades).
-     * 
- * - * UPGRADE_MASTER = 3; - */ - UPGRADE_MASTER(3), - /** - * - * - *
-     * A node pool is being updated. Despite calling this an "upgrade", this
-     * includes most forms of updates to node pools. This also includes
-     * [auto-upgrades](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-upgrades).
-     *
-     * This operation sets the
-     * [progress][google.container.v1beta1.Operation.progress] field and may be
-     * [canceled][google.container.v1beta1.ClusterManager.CancelOperation].
-     *
-     * The upgrade strategy depends on [node pool
-     * configuration](https://cloud.google.com/kubernetes-engine/docs/concepts/node-pool-upgrade-strategies).
-     * The nodes are generally still usable during this operation.
-     * 
- * - * UPGRADE_NODES = 4; - */ - UPGRADE_NODES(4), - /** - * - * - *
-     * A problem has been detected with the control plane and is being repaired.
-     * This operation type is initiated by GKE. For more details, see
-     * [documentation on
-     * repairs](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions#repairs).
-     * 
- * - * REPAIR_CLUSTER = 5; - */ - REPAIR_CLUSTER(5), - /** - * - * - *
-     * The cluster is being updated. This is a broad category of operations and
-     * includes operations that only change metadata as well as those that must
-     * recreate the entire cluster. If the control plane must be recreated, this
-     * will cause temporary downtime for zonal clusters.
-     *
-     * Some features require recreating the nodes as well. Those will be
-     * recreated as separate operations and the update may not be completely
-     * functional until the node pools recreations finish. Node recreations will
-     * generally follow [maintenance
-     * policies](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions).
-     *
-     * Some GKE-initiated operations use this type. This includes certain types
-     * of auto-upgrades and incident mitigations.
-     * 
- * - * UPDATE_CLUSTER = 6; - */ - UPDATE_CLUSTER(6), - /** - * - * - *
-     * A node pool is being created. The node pool should be assumed to be
-     * unusable until this operation finishes. In the event of an error, the
-     * node pool may be partially created.
-     *
-     * If enabled, [node
-     * autoprovisioning](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-provisioning)
-     * may have automatically initiated such operations.
-     * 
- * - * CREATE_NODE_POOL = 7; - */ - CREATE_NODE_POOL(7), - /** - * - * - *
-     * The node pool is being deleted. The node pool should be assumed to be
-     * unusable as soon as this operation starts.
-     * 
- * - * DELETE_NODE_POOL = 8; - */ - DELETE_NODE_POOL(8), - /** - * - * - *
-     * The node pool's
-     * [manamagent][google.container.v1beta1.NodePool.management] field is being
-     * updated. These operations only update metadata and may be concurrent with
-     * most other operations.
-     * 
- * - * SET_NODE_POOL_MANAGEMENT = 9; - */ - SET_NODE_POOL_MANAGEMENT(9), - /** - * - * - *
-     * A problem has been detected with nodes and [they are being
-     * repaired](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-repair).
-     * This operation type is initiated by GKE, typically automatically. This
-     * operation may be concurrent with other operations and there may be
-     * multiple repairs occurring on the same node pool.
-     * 
- * - * AUTO_REPAIR_NODES = 10; - */ - AUTO_REPAIR_NODES(10), - /** - * - * - *
-     * Unused. Automatic node upgrade uses
-     * [UPGRADE_NODES][google.container.v1beta1.Operation.Type.UPGRADE_NODES].
-     * 
- * - * AUTO_UPGRADE_NODES = 11 [deprecated = true]; - */ - @java.lang.Deprecated - AUTO_UPGRADE_NODES(11), - /** - * - * - *
-     * Unused. Updating labels uses
-     * [UPDATE_CLUSTER][google.container.v1beta1.Operation.Type.UPDATE_CLUSTER].
-     * 
- * - * SET_LABELS = 12 [deprecated = true]; - */ - @java.lang.Deprecated - SET_LABELS(12), - /** - * - * - *
-     * Unused. Updating master auth uses
-     * [UPDATE_CLUSTER][google.container.v1beta1.Operation.Type.UPDATE_CLUSTER].
-     * 
- * - * SET_MASTER_AUTH = 13 [deprecated = true]; - */ - @java.lang.Deprecated - SET_MASTER_AUTH(13), - /** - * - * - *
-     * The node pool is being resized. With the exception of resizing to or from
-     * size zero, the node pool is generally usable during this operation.
-     * 
- * - * SET_NODE_POOL_SIZE = 14; - */ - SET_NODE_POOL_SIZE(14), - /** - * - * - *
-     * Unused. Updating network policy uses
-     * [UPDATE_CLUSTER][google.container.v1beta1.Operation.Type.UPDATE_CLUSTER].
-     * 
- * - * SET_NETWORK_POLICY = 15 [deprecated = true]; - */ - @java.lang.Deprecated - SET_NETWORK_POLICY(15), - /** - * - * - *
-     * Unused. Updating maintenance policy uses
-     * [UPDATE_CLUSTER][google.container.v1beta1.Operation.Type.UPDATE_CLUSTER].
-     * 
- * - * SET_MAINTENANCE_POLICY = 16 [deprecated = true]; - */ - @java.lang.Deprecated - SET_MAINTENANCE_POLICY(16), - /** - * - * - *
-     * The control plane is being resized. This operation type is initiated by
-     * GKE. These operations are often performed preemptively to ensure that the
-     * control plane has sufficient resources and is not typically an indication
-     * of issues. For more details, see
-     * [documentation on
-     * resizes](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions#repairs).
-     * 
- * - * RESIZE_CLUSTER = 18; - */ - RESIZE_CLUSTER(18), - /** - * - * - *
-     * Fleet features of GKE Enterprise are being upgraded. The cluster should
-     * be assumed to be blocked for other upgrades until the operation finishes.
-     * 
- * - * FLEET_FEATURE_UPGRADE = 19; - */ - FLEET_FEATURE_UPGRADE(19), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Not set.
-     * 
- * - * TYPE_UNSPECIFIED = 0; - */ - public static final int TYPE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * The cluster is being created. The cluster should be assumed to be
-     * unusable until the operation finishes.
-     *
-     * In the event of the operation failing, the cluster will enter the [ERROR
-     * state][Cluster.Status.ERROR] and eventually be deleted.
-     * 
- * - * CREATE_CLUSTER = 1; - */ - public static final int CREATE_CLUSTER_VALUE = 1; - /** - * - * - *
-     * The cluster is being deleted. The cluster should be assumed to be
-     * unusable as soon as this operation starts.
-     *
-     * In the event of the operation failing, the cluster will enter the [ERROR
-     * state][Cluster.Status.ERROR] and the deletion will be automatically
-     * retried until completed.
-     * 
- * - * DELETE_CLUSTER = 2; - */ - public static final int DELETE_CLUSTER_VALUE = 2; - /** - * - * - *
-     * The [cluster
-     * version][google.container.v1beta1.ClusterUpdate.desired_master_version]
-     * is being updated. Note that this includes "upgrades" to the same version,
-     * which are simply a recreation. This also includes
-     * [auto-upgrades](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-upgrades#upgrading_automatically).
-     * For more details, see [documentation on cluster
-     * upgrades](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-upgrades#cluster_upgrades).
-     * 
- * - * UPGRADE_MASTER = 3; - */ - public static final int UPGRADE_MASTER_VALUE = 3; - /** - * - * - *
-     * A node pool is being updated. Despite calling this an "upgrade", this
-     * includes most forms of updates to node pools. This also includes
-     * [auto-upgrades](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-upgrades).
-     *
-     * This operation sets the
-     * [progress][google.container.v1beta1.Operation.progress] field and may be
-     * [canceled][google.container.v1beta1.ClusterManager.CancelOperation].
-     *
-     * The upgrade strategy depends on [node pool
-     * configuration](https://cloud.google.com/kubernetes-engine/docs/concepts/node-pool-upgrade-strategies).
-     * The nodes are generally still usable during this operation.
-     * 
- * - * UPGRADE_NODES = 4; - */ - public static final int UPGRADE_NODES_VALUE = 4; - /** - * - * - *
-     * A problem has been detected with the control plane and is being repaired.
-     * This operation type is initiated by GKE. For more details, see
-     * [documentation on
-     * repairs](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions#repairs).
-     * 
- * - * REPAIR_CLUSTER = 5; - */ - public static final int REPAIR_CLUSTER_VALUE = 5; - /** - * - * - *
-     * The cluster is being updated. This is a broad category of operations and
-     * includes operations that only change metadata as well as those that must
-     * recreate the entire cluster. If the control plane must be recreated, this
-     * will cause temporary downtime for zonal clusters.
-     *
-     * Some features require recreating the nodes as well. Those will be
-     * recreated as separate operations and the update may not be completely
-     * functional until the node pools recreations finish. Node recreations will
-     * generally follow [maintenance
-     * policies](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions).
-     *
-     * Some GKE-initiated operations use this type. This includes certain types
-     * of auto-upgrades and incident mitigations.
-     * 
- * - * UPDATE_CLUSTER = 6; - */ - public static final int UPDATE_CLUSTER_VALUE = 6; - /** - * - * - *
-     * A node pool is being created. The node pool should be assumed to be
-     * unusable until this operation finishes. In the event of an error, the
-     * node pool may be partially created.
-     *
-     * If enabled, [node
-     * autoprovisioning](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-provisioning)
-     * may have automatically initiated such operations.
-     * 
- * - * CREATE_NODE_POOL = 7; - */ - public static final int CREATE_NODE_POOL_VALUE = 7; - /** - * - * - *
-     * The node pool is being deleted. The node pool should be assumed to be
-     * unusable as soon as this operation starts.
-     * 
- * - * DELETE_NODE_POOL = 8; - */ - public static final int DELETE_NODE_POOL_VALUE = 8; - /** - * - * - *
-     * The node pool's
-     * [manamagent][google.container.v1beta1.NodePool.management] field is being
-     * updated. These operations only update metadata and may be concurrent with
-     * most other operations.
-     * 
- * - * SET_NODE_POOL_MANAGEMENT = 9; - */ - public static final int SET_NODE_POOL_MANAGEMENT_VALUE = 9; - /** - * - * - *
-     * A problem has been detected with nodes and [they are being
-     * repaired](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-repair).
-     * This operation type is initiated by GKE, typically automatically. This
-     * operation may be concurrent with other operations and there may be
-     * multiple repairs occurring on the same node pool.
-     * 
- * - * AUTO_REPAIR_NODES = 10; - */ - public static final int AUTO_REPAIR_NODES_VALUE = 10; - /** - * - * - *
-     * Unused. Automatic node upgrade uses
-     * [UPGRADE_NODES][google.container.v1beta1.Operation.Type.UPGRADE_NODES].
-     * 
- * - * AUTO_UPGRADE_NODES = 11 [deprecated = true]; - */ - @java.lang.Deprecated public static final int AUTO_UPGRADE_NODES_VALUE = 11; - /** - * - * - *
-     * Unused. Updating labels uses
-     * [UPDATE_CLUSTER][google.container.v1beta1.Operation.Type.UPDATE_CLUSTER].
-     * 
- * - * SET_LABELS = 12 [deprecated = true]; - */ - @java.lang.Deprecated public static final int SET_LABELS_VALUE = 12; - /** - * - * - *
-     * Unused. Updating master auth uses
-     * [UPDATE_CLUSTER][google.container.v1beta1.Operation.Type.UPDATE_CLUSTER].
-     * 
- * - * SET_MASTER_AUTH = 13 [deprecated = true]; - */ - @java.lang.Deprecated public static final int SET_MASTER_AUTH_VALUE = 13; - /** - * - * - *
-     * The node pool is being resized. With the exception of resizing to or from
-     * size zero, the node pool is generally usable during this operation.
-     * 
- * - * SET_NODE_POOL_SIZE = 14; - */ - public static final int SET_NODE_POOL_SIZE_VALUE = 14; - /** - * - * - *
-     * Unused. Updating network policy uses
-     * [UPDATE_CLUSTER][google.container.v1beta1.Operation.Type.UPDATE_CLUSTER].
-     * 
- * - * SET_NETWORK_POLICY = 15 [deprecated = true]; - */ - @java.lang.Deprecated public static final int SET_NETWORK_POLICY_VALUE = 15; - /** - * - * - *
-     * Unused. Updating maintenance policy uses
-     * [UPDATE_CLUSTER][google.container.v1beta1.Operation.Type.UPDATE_CLUSTER].
-     * 
- * - * SET_MAINTENANCE_POLICY = 16 [deprecated = true]; - */ - @java.lang.Deprecated public static final int SET_MAINTENANCE_POLICY_VALUE = 16; - /** - * - * - *
-     * The control plane is being resized. This operation type is initiated by
-     * GKE. These operations are often performed preemptively to ensure that the
-     * control plane has sufficient resources and is not typically an indication
-     * of issues. For more details, see
-     * [documentation on
-     * resizes](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions#repairs).
-     * 
- * - * RESIZE_CLUSTER = 18; - */ - public static final int RESIZE_CLUSTER_VALUE = 18; - /** - * - * - *
-     * Fleet features of GKE Enterprise are being upgraded. The cluster should
-     * be assumed to be blocked for other upgrades until the operation finishes.
-     * 
- * - * FLEET_FEATURE_UPGRADE = 19; - */ - public static final int FLEET_FEATURE_UPGRADE_VALUE = 19; - - 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; - case 18: - return RESIZE_CLUSTER; - case 19: - return FLEET_FEATURE_UPGRADE; - 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) - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1beta1.Operation.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2840 - * @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]; - * - * @deprecated google.container.v1beta1.Operation.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2840 - * @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_ = 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; - * - * @return The operationType. - */ - @java.lang.Override - public com.google.container.v1beta1.Operation.Type getOperationType() { - com.google.container.v1beta1.Operation.Type result = - com.google.container.v1beta1.Operation.Type.forNumber(operationType_); - return result == null ? com.google.container.v1beta1.Operation.Type.UNRECOGNIZED : result; - } - - public static final int STATUS_FIELD_NUMBER = 4; - 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; - * - * @return The status. - */ - @java.lang.Override - public com.google.container.v1beta1.Operation.Status getStatus() { - com.google.container.v1beta1.Operation.Status result = - com.google.container.v1beta1.Operation.Status.forNumber(status_); - return result == null ? com.google.container.v1beta1.Operation.Status.UNRECOGNIZED : result; - } - - public static final int DETAIL_FIELD_NUMBER = 8; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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]; - * - * - * @deprecated google.container.v1beta1.Operation.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2853 - * @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]; - * - * - * @deprecated google.container.v1beta1.Operation.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2853 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object selfLink_ = ""; - /** - * - * - *
-   * Server-defined URI for the operation. Example:
-   * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
-   * 
- * - * 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 URI for the operation. Example:
-   * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
-   * 
- * - * 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object targetLink_ = ""; - /** - * - * - *
-   * Server-defined URI for the target of the operation. The format of this is a
-   * URI to the resource being modified (such as a cluster, node pool, or node).
-   * For node pool repairs, there may be multiple nodes being repaired, but only
-   * one will be the target.
-   *
-   * Examples:
-   *
-   * -
-   * ##
-   * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
-   *
-   * ##
-   * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
-   *
-   * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
-   * 
- * - * 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 URI for the target of the operation. The format of this is a
-   * URI to the resource being modified (such as a cluster, node pool, or node).
-   * For node pool repairs, there may be multiple nodes being repaired, but only
-   * one will be the target.
-   *
-   * Examples:
-   *
-   * -
-   * ##
-   * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
-   *
-   * ##
-   * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
-   *
-   * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
-   * 
- * - * 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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 ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * 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 progress_ == null - ? com.google.container.v1beta1.OperationProgress.getDefaultInstance() - : progress_; - } - - public static final int CLUSTER_CONDITIONS_FIELD_NUMBER = 13; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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 ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * 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 error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusMessage_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, selfLink_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetLink_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, targetLink_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, detail_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, location_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startTime_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, startTime_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endTime_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, endTime_); - } - if (((bitField0_ & 0x00000001) != 0)) { - 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 (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(15, getError()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, selfLink_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetLink_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, targetLink_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, detail_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, location_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startTime_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, startTime_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endTime_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, endTime_); - } - if (((bitField0_ & 0x00000001) != 0)) { - 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 (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getError()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { - getProgressFieldBuilder(); - getClusterConditionsFieldBuilder(); - getNodepoolConditionsFieldBuilder(); - getErrorFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - zone_ = ""; - operationType_ = 0; - status_ = 0; - detail_ = ""; - statusMessage_ = ""; - selfLink_ = ""; - targetLink_ = ""; - location_ = ""; - startTime_ = ""; - endTime_ = ""; - progress_ = null; - if (progressBuilder_ != null) { - progressBuilder_.dispose(); - progressBuilder_ = null; - } - if (clusterConditionsBuilder_ == null) { - clusterConditions_ = java.util.Collections.emptyList(); - } else { - clusterConditions_ = null; - clusterConditionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00001000); - if (nodepoolConditionsBuilder_ == null) { - nodepoolConditions_ = java.util.Collections.emptyList(); - } else { - nodepoolConditions_ = null; - nodepoolConditionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00002000); - error_ = null; - if (errorBuilder_ != null) { - errorBuilder_.dispose(); - 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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.container.v1beta1.Operation result) { - if (clusterConditionsBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0)) { - clusterConditions_ = java.util.Collections.unmodifiableList(clusterConditions_); - bitField0_ = (bitField0_ & ~0x00001000); - } - result.clusterConditions_ = clusterConditions_; - } else { - result.clusterConditions_ = clusterConditionsBuilder_.build(); - } - if (nodepoolConditionsBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0)) { - nodepoolConditions_ = java.util.Collections.unmodifiableList(nodepoolConditions_); - bitField0_ = (bitField0_ & ~0x00002000); - } - result.nodepoolConditions_ = nodepoolConditions_; - } else { - result.nodepoolConditions_ = nodepoolConditionsBuilder_.build(); - } - } - - private void buildPartial0(com.google.container.v1beta1.Operation result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.operationType_ = operationType_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.status_ = status_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.detail_ = detail_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.statusMessage_ = statusMessage_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.selfLink_ = selfLink_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.targetLink_ = targetLink_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.location_ = location_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.startTime_ = startTime_; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.endTime_ = endTime_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000800) != 0)) { - result.progress_ = progressBuilder_ == null ? progress_ : progressBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.operationType_ != 0) { - setOperationTypeValue(other.getOperationTypeValue()); - } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); - } - if (!other.getDetail().isEmpty()) { - detail_ = other.detail_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (!other.getStatusMessage().isEmpty()) { - statusMessage_ = other.statusMessage_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (!other.getSelfLink().isEmpty()) { - selfLink_ = other.selfLink_; - bitField0_ |= 0x00000040; - onChanged(); - } - if (!other.getTargetLink().isEmpty()) { - targetLink_ = other.targetLink_; - bitField0_ |= 0x00000080; - onChanged(); - } - if (!other.getLocation().isEmpty()) { - location_ = other.location_; - bitField0_ |= 0x00000100; - onChanged(); - } - if (!other.getStartTime().isEmpty()) { - startTime_ = other.startTime_; - bitField0_ |= 0x00000200; - onChanged(); - } - if (!other.getEndTime().isEmpty()) { - endTime_ = other.endTime_; - bitField0_ |= 0x00000400; - onChanged(); - } - if (other.hasProgress()) { - mergeProgress(other.getProgress()); - } - if (clusterConditionsBuilder_ == null) { - if (!other.clusterConditions_.isEmpty()) { - if (clusterConditions_.isEmpty()) { - clusterConditions_ = other.clusterConditions_; - bitField0_ = (bitField0_ & ~0x00001000); - } else { - ensureClusterConditionsIsMutable(); - clusterConditions_.addAll(other.clusterConditions_); - } - onChanged(); - } - } else { - if (!other.clusterConditions_.isEmpty()) { - if (clusterConditionsBuilder_.isEmpty()) { - clusterConditionsBuilder_.dispose(); - clusterConditionsBuilder_ = null; - clusterConditions_ = other.clusterConditions_; - bitField0_ = (bitField0_ & ~0x00001000); - clusterConditionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getClusterConditionsFieldBuilder() - : null; - } else { - clusterConditionsBuilder_.addAllMessages(other.clusterConditions_); - } - } - } - if (nodepoolConditionsBuilder_ == null) { - if (!other.nodepoolConditions_.isEmpty()) { - if (nodepoolConditions_.isEmpty()) { - nodepoolConditions_ = other.nodepoolConditions_; - bitField0_ = (bitField0_ & ~0x00002000); - } else { - ensureNodepoolConditionsIsMutable(); - nodepoolConditions_.addAll(other.nodepoolConditions_); - } - onChanged(); - } - } else { - if (!other.nodepoolConditions_.isEmpty()) { - if (nodepoolConditionsBuilder_.isEmpty()) { - nodepoolConditionsBuilder_.dispose(); - nodepoolConditionsBuilder_ = null; - nodepoolConditions_ = other.nodepoolConditions_; - bitField0_ = (bitField0_ & ~0x00002000); - nodepoolConditionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNodepoolConditionsFieldBuilder() - : null; - } else { - nodepoolConditionsBuilder_.addAllMessages(other.nodepoolConditions_); - } - } - } - if (other.hasError()) { - mergeError(other.getError()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - operationType_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - status_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - statusMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 42 - case 50: - { - selfLink_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 50 - case 58: - { - targetLink_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 58 - case 66: - { - detail_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 66 - case 74: - { - location_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 74 - case 82: - { - startTime_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; - break; - } // case 82 - case 90: - { - endTime_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; - break; - } // case 90 - case 98: - { - input.readMessage(getProgressFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; - break; - } // case 98 - case 106: - { - com.google.container.v1beta1.StatusCondition m = - input.readMessage( - com.google.container.v1beta1.StatusCondition.parser(), extensionRegistry); - if (clusterConditionsBuilder_ == null) { - ensureClusterConditionsIsMutable(); - clusterConditions_.add(m); - } else { - clusterConditionsBuilder_.addMessage(m); - } - break; - } // case 106 - case 114: - { - com.google.container.v1beta1.StatusCondition m = - input.readMessage( - com.google.container.v1beta1.StatusCondition.parser(), extensionRegistry); - if (nodepoolConditionsBuilder_ == null) { - ensureNodepoolConditionsIsMutable(); - nodepoolConditions_.add(m); - } else { - nodepoolConditionsBuilder_.addMessage(m); - } - break; - } // case 114 - case 122: - { - input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; - break; - } // case 122 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The server-assigned ID for the operation.
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - 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]; - * - * @deprecated google.container.v1beta1.Operation.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2840 - * @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]; - * - * @deprecated google.container.v1beta1.Operation.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2840 - * @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]; - * - * @deprecated google.container.v1beta1.Operation.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2840 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * @deprecated google.container.v1beta1.Operation.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2840 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - 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]; - * - * @deprecated google.container.v1beta1.Operation.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2840 - * @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; - bitField0_ |= 0x00000002; - 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; - bitField0_ |= 0x00000004; - 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() { - com.google.container.v1beta1.Operation.Type result = - com.google.container.v1beta1.Operation.Type.forNumber(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(); - } - bitField0_ |= 0x00000004; - 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() { - bitField0_ = (bitField0_ & ~0x00000004); - 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; - bitField0_ |= 0x00000008; - 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() { - com.google.container.v1beta1.Operation.Status result = - com.google.container.v1beta1.Operation.Status.forNumber(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(); - } - bitField0_ |= 0x00000008; - 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() { - bitField0_ = (bitField0_ & ~0x00000008); - 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; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Detailed operation progress, if available.
-     * 
- * - * string detail = 8; - * - * @return This builder for chaining. - */ - public Builder clearDetail() { - detail_ = getDefaultInstance().getDetail(); - bitField0_ = (bitField0_ & ~0x00000010); - 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; - bitField0_ |= 0x00000010; - 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]; - * - * - * @deprecated google.container.v1beta1.Operation.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2853 - * @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]; - * - * - * @deprecated google.container.v1beta1.Operation.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2853 - * @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]; - * - * - * @deprecated google.container.v1beta1.Operation.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2853 - * @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; - bitField0_ |= 0x00000020; - 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]; - * - * - * @deprecated google.container.v1beta1.Operation.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2853 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearStatusMessage() { - statusMessage_ = getDefaultInstance().getStatusMessage(); - bitField0_ = (bitField0_ & ~0x00000020); - 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]; - * - * - * @deprecated google.container.v1beta1.Operation.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2853 - * @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; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - private java.lang.Object selfLink_ = ""; - /** - * - * - *
-     * Server-defined URI for the operation. Example:
-     * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
-     * 
- * - * 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 URI for the operation. Example:
-     * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
-     * 
- * - * 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 URI for the operation. Example:
-     * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
-     * 
- * - * 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; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-     * Server-defined URI for the operation. Example:
-     * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
-     * 
- * - * string self_link = 6; - * - * @return This builder for chaining. - */ - public Builder clearSelfLink() { - selfLink_ = getDefaultInstance().getSelfLink(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; - } - /** - * - * - *
-     * Server-defined URI for the operation. Example:
-     * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
-     * 
- * - * 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; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - private java.lang.Object targetLink_ = ""; - /** - * - * - *
-     * Server-defined URI for the target of the operation. The format of this is a
-     * URI to the resource being modified (such as a cluster, node pool, or node).
-     * For node pool repairs, there may be multiple nodes being repaired, but only
-     * one will be the target.
-     *
-     * Examples:
-     *
-     * -
-     * ##
-     * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
-     *
-     * ##
-     * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
-     *
-     * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
-     * 
- * - * 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 URI for the target of the operation. The format of this is a
-     * URI to the resource being modified (such as a cluster, node pool, or node).
-     * For node pool repairs, there may be multiple nodes being repaired, but only
-     * one will be the target.
-     *
-     * Examples:
-     *
-     * -
-     * ##
-     * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
-     *
-     * ##
-     * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
-     *
-     * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
-     * 
- * - * 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 URI for the target of the operation. The format of this is a
-     * URI to the resource being modified (such as a cluster, node pool, or node).
-     * For node pool repairs, there may be multiple nodes being repaired, but only
-     * one will be the target.
-     *
-     * Examples:
-     *
-     * -
-     * ##
-     * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
-     *
-     * ##
-     * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
-     *
-     * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
-     * 
- * - * 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; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * Server-defined URI for the target of the operation. The format of this is a
-     * URI to the resource being modified (such as a cluster, node pool, or node).
-     * For node pool repairs, there may be multiple nodes being repaired, but only
-     * one will be the target.
-     *
-     * Examples:
-     *
-     * -
-     * ##
-     * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
-     *
-     * ##
-     * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
-     *
-     * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
-     * 
- * - * string target_link = 7; - * - * @return This builder for chaining. - */ - public Builder clearTargetLink() { - targetLink_ = getDefaultInstance().getTargetLink(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - return this; - } - /** - * - * - *
-     * Server-defined URI for the target of the operation. The format of this is a
-     * URI to the resource being modified (such as a cluster, node pool, or node).
-     * For node pool repairs, there may be multiple nodes being repaired, but only
-     * one will be the target.
-     *
-     * Examples:
-     *
-     * -
-     * ##
-     * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
-     *
-     * ##
-     * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
-     *
-     * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
-     * 
- * - * 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; - bitField0_ |= 0x00000080; - 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; - bitField0_ |= 0x00000100; - 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(); - bitField0_ = (bitField0_ & ~0x00000100); - 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; - bitField0_ |= 0x00000100; - 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; - bitField0_ |= 0x00000200; - 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(); - bitField0_ = (bitField0_ & ~0x00000200); - 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; - bitField0_ |= 0x00000200; - 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; - bitField0_ |= 0x00000400; - 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(); - bitField0_ = (bitField0_ & ~0x00000400); - 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; - bitField0_ |= 0x00000400; - 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 ((bitField0_ & 0x00000800) != 0); - } - /** - * - * - *
-     * 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; - } else { - progressBuilder_.setMessage(value); - } - bitField0_ |= 0x00000800; - onChanged(); - 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(); - } else { - progressBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000800; - onChanged(); - 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 (((bitField0_ & 0x00000800) != 0) - && progress_ != null - && progress_ != com.google.container.v1beta1.OperationProgress.getDefaultInstance()) { - getProgressBuilder().mergeFrom(value); - } else { - progress_ = value; - } - } else { - progressBuilder_.mergeFrom(value); - } - if (progress_ != null) { - bitField0_ |= 0x00000800; - onChanged(); - } - 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() { - bitField0_ = (bitField0_ & ~0x00000800); - progress_ = null; - if (progressBuilder_ != null) { - progressBuilder_.dispose(); - progressBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000800; - 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_ & 0x00001000) != 0)) { - clusterConditions_ = - new java.util.ArrayList( - clusterConditions_); - bitField0_ |= 0x00001000; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.StatusCondition, - com.google.container.v1beta1.StatusCondition.Builder, - com.google.container.v1beta1.StatusConditionOrBuilder> - clusterConditionsBuilder_; - - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 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_ & ~0x00001000); - 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_ & 0x00001000) != 0), - getParentForChildren(), - isClean()); - clusterConditions_ = null; - } - return clusterConditionsBuilder_; - } - - private java.util.List nodepoolConditions_ = - java.util.Collections.emptyList(); - - private void ensureNodepoolConditionsIsMutable() { - if (!((bitField0_ & 0x00002000) != 0)) { - nodepoolConditions_ = - new java.util.ArrayList( - nodepoolConditions_); - bitField0_ |= 0x00002000; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.StatusCondition, - com.google.container.v1beta1.StatusCondition.Builder, - com.google.container.v1beta1.StatusConditionOrBuilder> - nodepoolConditionsBuilder_; - - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 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_ & ~0x00002000); - 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_ & 0x00002000) != 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 ((bitField0_ & 0x00004000) != 0); - } - /** - * - * - *
-     * 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; - } else { - errorBuilder_.setMessage(value); - } - bitField0_ |= 0x00004000; - onChanged(); - 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(); - } else { - errorBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00004000; - onChanged(); - 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 (((bitField0_ & 0x00004000) != 0) - && error_ != null - && error_ != com.google.rpc.Status.getDefaultInstance()) { - getErrorBuilder().mergeFrom(value); - } else { - error_ = value; - } - } else { - errorBuilder_.mergeFrom(value); - } - if (error_ != null) { - bitField0_ |= 0x00004000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The error result of the operation in case of failure.
-     * 
- * - * .google.rpc.Status error = 15; - */ - public Builder clearError() { - bitField0_ = (bitField0_ & ~0x00004000); - error_ = null; - if (errorBuilder_ != null) { - errorBuilder_.dispose(); - errorBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The error result of the operation in case of failure.
-     * 
- * - * .google.rpc.Status error = 15; - */ - public com.google.rpc.Status.Builder getErrorBuilder() { - bitField0_ |= 0x00004000; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationOrBuilder.java deleted file mode 100644 index 414b70166007..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationOrBuilder.java +++ /dev/null @@ -1,585 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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]; - * - * @deprecated google.container.v1beta1.Operation.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2840 - * @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]; - * - * @deprecated google.container.v1beta1.Operation.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2840 - * @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]; - * - * - * @deprecated google.container.v1beta1.Operation.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2853 - * @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]; - * - * - * @deprecated google.container.v1beta1.Operation.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2853 - * @return The bytes for statusMessage. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getStatusMessageBytes(); - - /** - * - * - *
-   * Server-defined URI for the operation. Example:
-   * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
-   * 
- * - * string self_link = 6; - * - * @return The selfLink. - */ - java.lang.String getSelfLink(); - /** - * - * - *
-   * Server-defined URI for the operation. Example:
-   * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
-   * 
- * - * string self_link = 6; - * - * @return The bytes for selfLink. - */ - com.google.protobuf.ByteString getSelfLinkBytes(); - - /** - * - * - *
-   * Server-defined URI for the target of the operation. The format of this is a
-   * URI to the resource being modified (such as a cluster, node pool, or node).
-   * For node pool repairs, there may be multiple nodes being repaired, but only
-   * one will be the target.
-   *
-   * Examples:
-   *
-   * -
-   * ##
-   * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
-   *
-   * ##
-   * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
-   *
-   * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
-   * 
- * - * string target_link = 7; - * - * @return The targetLink. - */ - java.lang.String getTargetLink(); - /** - * - * - *
-   * Server-defined URI for the target of the operation. The format of this is a
-   * URI to the resource being modified (such as a cluster, node pool, or node).
-   * For node pool repairs, there may be multiple nodes being repaired, but only
-   * one will be the target.
-   *
-   * Examples:
-   *
-   * -
-   * ##
-   * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
-   *
-   * ##
-   * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
-   *
-   * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
-   * 
- * - * 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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationProgress.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationProgress.java deleted file mode 100644 index 26e8dd5baa1d..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationProgress.java +++ /dev/null @@ -1,3212 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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(); - - 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(); - } - - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - 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_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - 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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.OperationProgress.Metric result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - private void buildPartialOneofs( - com.google.container.v1beta1.OperationProgress.Metric result) { - result.valueCase_ = valueCase_; - result.value_ = this.value_; - } - - @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_; - bitField0_ |= 0x00000001; - 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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - value_ = input.readInt64(); - valueCase_ = 2; - break; - } // case 16 - case 25: - { - value_ = input.readDouble(); - valueCase_ = 3; - break; - } // case 25 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - valueCase_ = 4; - value_ = s; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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 int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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; - - @SuppressWarnings("serial") - 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_ = 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; - * - * @return The status. - */ - @java.lang.Override - public com.google.container.v1beta1.Operation.Status getStatus() { - com.google.container.v1beta1.Operation.Status result = - com.google.container.v1beta1.Operation.Status.forNumber(status_); - return result == null ? com.google.container.v1beta1.Operation.Status.UNRECOGNIZED : result; - } - - public static final int METRICS_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - 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)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - 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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - status_ = 0; - if (metricsBuilder_ == null) { - metrics_ = java.util.Collections.emptyList(); - } else { - metrics_ = null; - metricsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - if (stagesBuilder_ == null) { - stages_ = java.util.Collections.emptyList(); - } else { - stages_ = null; - stagesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - 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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.container.v1beta1.OperationProgress result) { - if (metricsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - metrics_ = java.util.Collections.unmodifiableList(metrics_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.metrics_ = metrics_; - } else { - result.metrics_ = metricsBuilder_.build(); - } - if (stagesBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - stages_ = java.util.Collections.unmodifiableList(stages_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.stages_ = stages_; - } else { - result.stages_ = stagesBuilder_.build(); - } - } - - private void buildPartial0(com.google.container.v1beta1.OperationProgress result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.status_ = status_; - } - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); - } - if (metricsBuilder_ == null) { - if (!other.metrics_.isEmpty()) { - if (metrics_.isEmpty()) { - metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureMetricsIsMutable(); - metrics_.addAll(other.metrics_); - } - onChanged(); - } - } else { - if (!other.metrics_.isEmpty()) { - if (metricsBuilder_.isEmpty()) { - metricsBuilder_.dispose(); - metricsBuilder_ = null; - metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000004); - metricsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMetricsFieldBuilder() - : null; - } else { - metricsBuilder_.addAllMessages(other.metrics_); - } - } - } - if (stagesBuilder_ == null) { - if (!other.stages_.isEmpty()) { - if (stages_.isEmpty()) { - stages_ = other.stages_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureStagesIsMutable(); - stages_.addAll(other.stages_); - } - onChanged(); - } - } else { - if (!other.stages_.isEmpty()) { - if (stagesBuilder_.isEmpty()) { - stagesBuilder_.dispose(); - stagesBuilder_ = null; - stages_ = other.stages_; - bitField0_ = (bitField0_ & ~0x00000008); - stagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getStagesFieldBuilder() - : null; - } else { - stagesBuilder_.addAllMessages(other.stages_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - status_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - com.google.container.v1beta1.OperationProgress.Metric m = - input.readMessage( - com.google.container.v1beta1.OperationProgress.Metric.parser(), - extensionRegistry); - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(m); - } else { - metricsBuilder_.addMessage(m); - } - break; - } // case 26 - case 34: - { - com.google.container.v1beta1.OperationProgress m = - input.readMessage( - com.google.container.v1beta1.OperationProgress.parser(), extensionRegistry); - if (stagesBuilder_ == null) { - ensureStagesIsMutable(); - stages_.add(m); - } else { - stagesBuilder_.addMessage(m); - } - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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; - bitField0_ |= 0x00000001; - 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(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - 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; - bitField0_ |= 0x00000002; - 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() { - com.google.container.v1beta1.Operation.Status result = - com.google.container.v1beta1.Operation.Status.forNumber(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(); - } - bitField0_ |= 0x00000002; - 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() { - bitField0_ = (bitField0_ & ~0x00000002); - status_ = 0; - onChanged(); - return this; - } - - private java.util.List metrics_ = - java.util.Collections.emptyList(); - - private void ensureMetricsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - metrics_ = - new java.util.ArrayList( - metrics_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.OperationProgress.Metric, - com.google.container.v1beta1.OperationProgress.Metric.Builder, - com.google.container.v1beta1.OperationProgress.MetricOrBuilder> - metricsBuilder_; - - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - public java.util.List getMetricsList() { - if (metricsBuilder_ == null) { - return java.util.Collections.unmodifiableList(metrics_); - } else { - return metricsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - public int getMetricsCount() { - if (metricsBuilder_ == null) { - return metrics_.size(); - } else { - return metricsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - public com.google.container.v1beta1.OperationProgress.Metric getMetrics(int index) { - if (metricsBuilder_ == null) { - return metrics_.get(index); - } else { - return metricsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - public Builder setMetrics( - int index, com.google.container.v1beta1.OperationProgress.Metric value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.set(index, value); - onChanged(); - } else { - metricsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - public Builder setMetrics( - int index, com.google.container.v1beta1.OperationProgress.Metric.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.set(index, builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - public Builder addMetrics(com.google.container.v1beta1.OperationProgress.Metric value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.add(value); - onChanged(); - } else { - metricsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - public Builder addMetrics( - int index, com.google.container.v1beta1.OperationProgress.Metric value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.add(index, value); - onChanged(); - } else { - metricsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - public Builder addMetrics( - com.google.container.v1beta1.OperationProgress.Metric.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - public Builder addMetrics( - int index, com.google.container.v1beta1.OperationProgress.Metric.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(index, builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - public Builder addAllMetrics( - java.lang.Iterable - values) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metrics_); - onChanged(); - } else { - metricsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - public Builder clearMetrics() { - if (metricsBuilder_ == null) { - metrics_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - metricsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - public Builder removeMetrics(int index) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.remove(index); - onChanged(); - } else { - metricsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - public com.google.container.v1beta1.OperationProgress.Metric.Builder getMetricsBuilder( - int index) { - return getMetricsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - public com.google.container.v1beta1.OperationProgress.MetricOrBuilder getMetricsOrBuilder( - int index) { - if (metricsBuilder_ == null) { - return metrics_.get(index); - } else { - return metricsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - public java.util.List - getMetricsOrBuilderList() { - if (metricsBuilder_ != null) { - return metricsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(metrics_); - } - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - public com.google.container.v1beta1.OperationProgress.Metric.Builder addMetricsBuilder() { - return getMetricsFieldBuilder() - .addBuilder(com.google.container.v1beta1.OperationProgress.Metric.getDefaultInstance()); - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - public com.google.container.v1beta1.OperationProgress.Metric.Builder addMetricsBuilder( - int index) { - return getMetricsFieldBuilder() - .addBuilder( - index, com.google.container.v1beta1.OperationProgress.Metric.getDefaultInstance()); - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; - */ - public java.util.List - getMetricsBuilderList() { - return getMetricsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.OperationProgress.Metric, - com.google.container.v1beta1.OperationProgress.Metric.Builder, - com.google.container.v1beta1.OperationProgress.MetricOrBuilder> - getMetricsFieldBuilder() { - if (metricsBuilder_ == null) { - metricsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.OperationProgress.Metric, - com.google.container.v1beta1.OperationProgress.Metric.Builder, - com.google.container.v1beta1.OperationProgress.MetricOrBuilder>( - metrics_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); - metrics_ = null; - } - return metricsBuilder_; - } - - private java.util.List stages_ = - java.util.Collections.emptyList(); - - private void ensureStagesIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - stages_ = new java.util.ArrayList(stages_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.OperationProgress, - com.google.container.v1beta1.OperationProgress.Builder, - com.google.container.v1beta1.OperationProgressOrBuilder> - stagesBuilder_; - - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - public java.util.List getStagesList() { - if (stagesBuilder_ == null) { - return java.util.Collections.unmodifiableList(stages_); - } else { - return stagesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - public int getStagesCount() { - if (stagesBuilder_ == null) { - return stages_.size(); - } else { - return stagesBuilder_.getCount(); - } - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - public com.google.container.v1beta1.OperationProgress getStages(int index) { - if (stagesBuilder_ == null) { - return stages_.get(index); - } else { - return stagesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - public Builder setStages(int index, com.google.container.v1beta1.OperationProgress value) { - if (stagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStagesIsMutable(); - stages_.set(index, value); - onChanged(); - } else { - stagesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - public Builder setStages( - int index, com.google.container.v1beta1.OperationProgress.Builder builderForValue) { - if (stagesBuilder_ == null) { - ensureStagesIsMutable(); - stages_.set(index, builderForValue.build()); - onChanged(); - } else { - stagesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - public Builder addStages(com.google.container.v1beta1.OperationProgress value) { - if (stagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStagesIsMutable(); - stages_.add(value); - onChanged(); - } else { - stagesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - public Builder addStages(int index, com.google.container.v1beta1.OperationProgress value) { - if (stagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStagesIsMutable(); - stages_.add(index, value); - onChanged(); - } else { - stagesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - public Builder addStages( - com.google.container.v1beta1.OperationProgress.Builder builderForValue) { - if (stagesBuilder_ == null) { - ensureStagesIsMutable(); - stages_.add(builderForValue.build()); - onChanged(); - } else { - stagesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - public Builder addStages( - int index, com.google.container.v1beta1.OperationProgress.Builder builderForValue) { - if (stagesBuilder_ == null) { - ensureStagesIsMutable(); - stages_.add(index, builderForValue.build()); - onChanged(); - } else { - stagesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - public Builder addAllStages( - java.lang.Iterable values) { - if (stagesBuilder_ == null) { - ensureStagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stages_); - onChanged(); - } else { - stagesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - public Builder clearStages() { - if (stagesBuilder_ == null) { - stages_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - stagesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - public Builder removeStages(int index) { - if (stagesBuilder_ == null) { - ensureStagesIsMutable(); - stages_.remove(index); - onChanged(); - } else { - stagesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - public com.google.container.v1beta1.OperationProgress.Builder getStagesBuilder(int index) { - return getStagesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - public com.google.container.v1beta1.OperationProgressOrBuilder getStagesOrBuilder(int index) { - if (stagesBuilder_ == null) { - return stages_.get(index); - } else { - return stagesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - public java.util.List - getStagesOrBuilderList() { - if (stagesBuilder_ != null) { - return stagesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(stages_); - } - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - public com.google.container.v1beta1.OperationProgress.Builder addStagesBuilder() { - return getStagesFieldBuilder() - .addBuilder(com.google.container.v1beta1.OperationProgress.getDefaultInstance()); - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - public com.google.container.v1beta1.OperationProgress.Builder addStagesBuilder(int index) { - return getStagesFieldBuilder() - .addBuilder(index, com.google.container.v1beta1.OperationProgress.getDefaultInstance()); - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1beta1.OperationProgress stages = 4; - */ - public java.util.List - getStagesBuilderList() { - return getStagesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.OperationProgress, - com.google.container.v1beta1.OperationProgress.Builder, - com.google.container.v1beta1.OperationProgressOrBuilder> - getStagesFieldBuilder() { - if (stagesBuilder_ == null) { - stagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.OperationProgress, - com.google.container.v1beta1.OperationProgress.Builder, - com.google.container.v1beta1.OperationProgressOrBuilder>( - stages_, ((bitField0_ & 0x00000008) != 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationProgressOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationProgressOrBuilder.java deleted file mode 100644 index 60eee0afeb5c..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationProgressOrBuilder.java +++ /dev/null @@ -1,209 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PodCIDROverprovisionConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PodCIDROverprovisionConfig.java deleted file mode 100644 index a0cf791d2266..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PodCIDROverprovisionConfig.java +++ /dev/null @@ -1,542 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * [PRIVATE FIELD]
- * Config for pod CIDR size overprovisioning.
- * 
- * - * Protobuf type {@code google.container.v1beta1.PodCIDROverprovisionConfig} - */ -public final class PodCIDROverprovisionConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.PodCIDROverprovisionConfig) - PodCIDROverprovisionConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use PodCIDROverprovisionConfig.newBuilder() to construct. - private PodCIDROverprovisionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PodCIDROverprovisionConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PodCIDROverprovisionConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_PodCIDROverprovisionConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_PodCIDROverprovisionConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.PodCIDROverprovisionConfig.class, - com.google.container.v1beta1.PodCIDROverprovisionConfig.Builder.class); - } - - public static final int DISABLE_FIELD_NUMBER = 1; - private boolean disable_ = false; - /** - * - * - *
-   * Whether Pod CIDR overprovisioning is disabled.
-   * Note: Pod CIDR overprovisioning is enabled by default.
-   * 
- * - * bool disable = 1; - * - * @return The disable. - */ - @java.lang.Override - public boolean getDisable() { - return disable_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (disable_ != false) { - output.writeBool(1, disable_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (disable_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, disable_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.PodCIDROverprovisionConfig)) { - return super.equals(obj); - } - com.google.container.v1beta1.PodCIDROverprovisionConfig other = - (com.google.container.v1beta1.PodCIDROverprovisionConfig) obj; - - if (getDisable() != other.getDisable()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + DISABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisable()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.PodCIDROverprovisionConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.PodCIDROverprovisionConfig parseFrom( - 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.PodCIDROverprovisionConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.PodCIDROverprovisionConfig parseFrom( - com.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.PodCIDROverprovisionConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.PodCIDROverprovisionConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.PodCIDROverprovisionConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.PodCIDROverprovisionConfig parseFrom( - java.io.InputStream 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.PodCIDROverprovisionConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.PodCIDROverprovisionConfig parseDelimitedFrom( - java.io.InputStream 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.PodCIDROverprovisionConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.PodCIDROverprovisionConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.PodCIDROverprovisionConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * [PRIVATE FIELD]
-   * Config for pod CIDR size overprovisioning.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.PodCIDROverprovisionConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.PodCIDROverprovisionConfig) - com.google.container.v1beta1.PodCIDROverprovisionConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_PodCIDROverprovisionConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_PodCIDROverprovisionConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.PodCIDROverprovisionConfig.class, - com.google.container.v1beta1.PodCIDROverprovisionConfig.Builder.class); - } - - // Construct using com.google.container.v1beta1.PodCIDROverprovisionConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - disable_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_PodCIDROverprovisionConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.PodCIDROverprovisionConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.PodCIDROverprovisionConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.PodCIDROverprovisionConfig build() { - com.google.container.v1beta1.PodCIDROverprovisionConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.PodCIDROverprovisionConfig buildPartial() { - com.google.container.v1beta1.PodCIDROverprovisionConfig result = - new com.google.container.v1beta1.PodCIDROverprovisionConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.PodCIDROverprovisionConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.disable_ = disable_; - } - } - - @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.PodCIDROverprovisionConfig) { - return mergeFrom((com.google.container.v1beta1.PodCIDROverprovisionConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.PodCIDROverprovisionConfig other) { - if (other == com.google.container.v1beta1.PodCIDROverprovisionConfig.getDefaultInstance()) - return this; - if (other.getDisable() != false) { - setDisable(other.getDisable()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - disable_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean disable_; - /** - * - * - *
-     * Whether Pod CIDR overprovisioning is disabled.
-     * Note: Pod CIDR overprovisioning is enabled by default.
-     * 
- * - * bool disable = 1; - * - * @return The disable. - */ - @java.lang.Override - public boolean getDisable() { - return disable_; - } - /** - * - * - *
-     * Whether Pod CIDR overprovisioning is disabled.
-     * Note: Pod CIDR overprovisioning is enabled by default.
-     * 
- * - * bool disable = 1; - * - * @param value The disable to set. - * @return This builder for chaining. - */ - public Builder setDisable(boolean value) { - - disable_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether Pod CIDR overprovisioning is disabled.
-     * Note: Pod CIDR overprovisioning is enabled by default.
-     * 
- * - * bool disable = 1; - * - * @return This builder for chaining. - */ - public Builder clearDisable() { - bitField0_ = (bitField0_ & ~0x00000001); - disable_ = 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.PodCIDROverprovisionConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.PodCIDROverprovisionConfig) - private static final com.google.container.v1beta1.PodCIDROverprovisionConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.PodCIDROverprovisionConfig(); - } - - public static com.google.container.v1beta1.PodCIDROverprovisionConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PodCIDROverprovisionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.PodCIDROverprovisionConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PodCIDROverprovisionConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PodCIDROverprovisionConfigOrBuilder.java deleted file mode 100644 index 430e399507b8..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PodCIDROverprovisionConfigOrBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface PodCIDROverprovisionConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.PodCIDROverprovisionConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether Pod CIDR overprovisioning is disabled.
-   * Note: Pod CIDR overprovisioning is enabled by default.
-   * 
- * - * bool disable = 1; - * - * @return The disable. - */ - boolean getDisable(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PodSecurityPolicyConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PodSecurityPolicyConfig.java deleted file mode 100644 index 408aead84ff8..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PodSecurityPolicyConfig.java +++ /dev/null @@ -1,539 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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_ = false; - /** - * - * - *
-   * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 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_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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.PodSecurityPolicyConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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() { - bitField0_ = (bitField0_ & ~0x00000001); - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PodSecurityPolicyConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PodSecurityPolicyConfigOrBuilder.java deleted file mode 100644 index eb689cf6bb8f..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PodSecurityPolicyConfigOrBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterConfig.java deleted file mode 100644 index 7bcaa1f47e1d..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterConfig.java +++ /dev/null @@ -1,1900 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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_ = ""; - privateEndpointSubnetwork_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PrivateClusterConfig(); - } - - 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); - } - - private int bitField0_; - public static final int ENABLE_PRIVATE_NODES_FIELD_NUMBER = 1; - private boolean enablePrivateNodes_ = false; - /** - * - * - *
-   * 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_ = false; - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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 ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * 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 masterGlobalAccessConfig_ == null - ? com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance() - : masterGlobalAccessConfig_; - } - - public static final int PRIVATE_ENDPOINT_SUBNETWORK_FIELD_NUMBER = 10; - - @SuppressWarnings("serial") - private volatile java.lang.Object privateEndpointSubnetwork_ = ""; - /** - * - * - *
-   * Subnet to provision the master's private endpoint during cluster creation.
-   * Specified in projects/*/regions/*/subnetworks/* format.
-   * 
- * - * string private_endpoint_subnetwork = 10; - * - * @return The privateEndpointSubnetwork. - */ - @java.lang.Override - public java.lang.String getPrivateEndpointSubnetwork() { - java.lang.Object ref = privateEndpointSubnetwork_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - privateEndpointSubnetwork_ = s; - return s; - } - } - /** - * - * - *
-   * Subnet to provision the master's private endpoint during cluster creation.
-   * Specified in projects/*/regions/*/subnetworks/* format.
-   * 
- * - * string private_endpoint_subnetwork = 10; - * - * @return The bytes for privateEndpointSubnetwork. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPrivateEndpointSubnetworkBytes() { - java.lang.Object ref = privateEndpointSubnetwork_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - privateEndpointSubnetwork_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enablePrivateNodes_ != false) { - output.writeBool(1, enablePrivateNodes_); - } - if (enablePrivateEndpoint_ != false) { - output.writeBool(2, enablePrivateEndpoint_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(masterIpv4CidrBlock_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, masterIpv4CidrBlock_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateEndpoint_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, privateEndpoint_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicEndpoint_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, publicEndpoint_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(peeringName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, peeringName_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(8, getMasterGlobalAccessConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateEndpointSubnetwork_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, privateEndpointSubnetwork_); - } - getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(masterIpv4CidrBlock_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, masterIpv4CidrBlock_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateEndpoint_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, privateEndpoint_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicEndpoint_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, publicEndpoint_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(peeringName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, peeringName_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, getMasterGlobalAccessConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateEndpointSubnetwork_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(10, privateEndpointSubnetwork_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getPrivateEndpointSubnetwork().equals(other.getPrivateEndpointSubnetwork())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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 = (37 * hash) + PRIVATE_ENDPOINT_SUBNETWORK_FIELD_NUMBER; - hash = (53 * hash) + getPrivateEndpointSubnetwork().hashCode(); - hash = (29 * hash) + getUnknownFields().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) { - getMasterGlobalAccessConfigFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enablePrivateNodes_ = false; - enablePrivateEndpoint_ = false; - masterIpv4CidrBlock_ = ""; - privateEndpoint_ = ""; - publicEndpoint_ = ""; - peeringName_ = ""; - masterGlobalAccessConfig_ = null; - if (masterGlobalAccessConfigBuilder_ != null) { - masterGlobalAccessConfigBuilder_.dispose(); - masterGlobalAccessConfigBuilder_ = null; - } - privateEndpointSubnetwork_ = ""; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.PrivateClusterConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enablePrivateNodes_ = enablePrivateNodes_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.enablePrivateEndpoint_ = enablePrivateEndpoint_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.masterIpv4CidrBlock_ = masterIpv4CidrBlock_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.privateEndpoint_ = privateEndpoint_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.publicEndpoint_ = publicEndpoint_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.peeringName_ = peeringName_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000040) != 0)) { - result.masterGlobalAccessConfig_ = - masterGlobalAccessConfigBuilder_ == null - ? masterGlobalAccessConfig_ - : masterGlobalAccessConfigBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.privateEndpointSubnetwork_ = privateEndpointSubnetwork_; - } - result.bitField0_ |= to_bitField0_; - } - - @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_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getPrivateEndpoint().isEmpty()) { - privateEndpoint_ = other.privateEndpoint_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getPublicEndpoint().isEmpty()) { - publicEndpoint_ = other.publicEndpoint_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (!other.getPeeringName().isEmpty()) { - peeringName_ = other.peeringName_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (other.hasMasterGlobalAccessConfig()) { - mergeMasterGlobalAccessConfig(other.getMasterGlobalAccessConfig()); - } - if (!other.getPrivateEndpointSubnetwork().isEmpty()) { - privateEndpointSubnetwork_ = other.privateEndpointSubnetwork_; - bitField0_ |= 0x00000080; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enablePrivateNodes_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - enablePrivateEndpoint_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - masterIpv4CidrBlock_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - privateEndpoint_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - publicEndpoint_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 58: - { - peeringName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 58 - case 66: - { - input.readMessage( - getMasterGlobalAccessConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 66 - case 82: - { - privateEndpointSubnetwork_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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() { - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000002; - 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() { - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000004; - 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(); - bitField0_ = (bitField0_ & ~0x00000004); - 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; - bitField0_ |= 0x00000004; - 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; - bitField0_ |= 0x00000008; - 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(); - bitField0_ = (bitField0_ & ~0x00000008); - 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; - bitField0_ |= 0x00000008; - 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; - bitField0_ |= 0x00000010; - 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(); - bitField0_ = (bitField0_ & ~0x00000010); - 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; - bitField0_ |= 0x00000010; - 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; - bitField0_ |= 0x00000020; - 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(); - bitField0_ = (bitField0_ & ~0x00000020); - 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; - bitField0_ |= 0x00000020; - 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 ((bitField0_ & 0x00000040) != 0); - } - /** - * - * - *
-     * 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; - } else { - masterGlobalAccessConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - onChanged(); - 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(); - } else { - masterGlobalAccessConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - onChanged(); - 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 (((bitField0_ & 0x00000040) != 0) - && masterGlobalAccessConfig_ != null - && masterGlobalAccessConfig_ - != com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig - .getDefaultInstance()) { - getMasterGlobalAccessConfigBuilder().mergeFrom(value); - } else { - masterGlobalAccessConfig_ = value; - } - } else { - masterGlobalAccessConfigBuilder_.mergeFrom(value); - } - if (masterGlobalAccessConfig_ != null) { - bitField0_ |= 0x00000040; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Controls master global access settings.
-     * 
- * - * - * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * - */ - public Builder clearMasterGlobalAccessConfig() { - bitField0_ = (bitField0_ & ~0x00000040); - masterGlobalAccessConfig_ = null; - if (masterGlobalAccessConfigBuilder_ != null) { - masterGlobalAccessConfigBuilder_.dispose(); - masterGlobalAccessConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Controls master global access settings.
-     * 
- * - * - * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * - */ - public com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.Builder - getMasterGlobalAccessConfigBuilder() { - bitField0_ |= 0x00000040; - 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_; - } - - private java.lang.Object privateEndpointSubnetwork_ = ""; - /** - * - * - *
-     * Subnet to provision the master's private endpoint during cluster creation.
-     * Specified in projects/*/regions/*/subnetworks/* format.
-     * 
- * - * string private_endpoint_subnetwork = 10; - * - * @return The privateEndpointSubnetwork. - */ - public java.lang.String getPrivateEndpointSubnetwork() { - java.lang.Object ref = privateEndpointSubnetwork_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - privateEndpointSubnetwork_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Subnet to provision the master's private endpoint during cluster creation.
-     * Specified in projects/*/regions/*/subnetworks/* format.
-     * 
- * - * string private_endpoint_subnetwork = 10; - * - * @return The bytes for privateEndpointSubnetwork. - */ - public com.google.protobuf.ByteString getPrivateEndpointSubnetworkBytes() { - java.lang.Object ref = privateEndpointSubnetwork_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - privateEndpointSubnetwork_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Subnet to provision the master's private endpoint during cluster creation.
-     * Specified in projects/*/regions/*/subnetworks/* format.
-     * 
- * - * string private_endpoint_subnetwork = 10; - * - * @param value The privateEndpointSubnetwork to set. - * @return This builder for chaining. - */ - public Builder setPrivateEndpointSubnetwork(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - privateEndpointSubnetwork_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * Subnet to provision the master's private endpoint during cluster creation.
-     * Specified in projects/*/regions/*/subnetworks/* format.
-     * 
- * - * string private_endpoint_subnetwork = 10; - * - * @return This builder for chaining. - */ - public Builder clearPrivateEndpointSubnetwork() { - privateEndpointSubnetwork_ = getDefaultInstance().getPrivateEndpointSubnetwork(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - return this; - } - /** - * - * - *
-     * Subnet to provision the master's private endpoint during cluster creation.
-     * Specified in projects/*/regions/*/subnetworks/* format.
-     * 
- * - * string private_endpoint_subnetwork = 10; - * - * @param value The bytes for privateEndpointSubnetwork to set. - * @return This builder for chaining. - */ - public Builder setPrivateEndpointSubnetworkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - privateEndpointSubnetwork_ = value; - bitField0_ |= 0x00000080; - 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.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterConfigOrBuilder.java deleted file mode 100644 index fe40f8b67460..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterConfigOrBuilder.java +++ /dev/null @@ -1,229 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - - /** - * - * - *
-   * Subnet to provision the master's private endpoint during cluster creation.
-   * Specified in projects/*/regions/*/subnetworks/* format.
-   * 
- * - * string private_endpoint_subnetwork = 10; - * - * @return The privateEndpointSubnetwork. - */ - java.lang.String getPrivateEndpointSubnetwork(); - /** - * - * - *
-   * Subnet to provision the master's private endpoint during cluster creation.
-   * Specified in projects/*/regions/*/subnetworks/* format.
-   * 
- * - * string private_endpoint_subnetwork = 10; - * - * @return The bytes for privateEndpointSubnetwork. - */ - com.google.protobuf.ByteString getPrivateEndpointSubnetworkBytes(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterMasterGlobalAccessConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterMasterGlobalAccessConfig.java deleted file mode 100644 index e44d772096c7..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterMasterGlobalAccessConfig.java +++ /dev/null @@ -1,549 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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_ = false; - /** - * - * - *
-   * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 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_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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whenever master is accessible globally or not.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterMasterGlobalAccessConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterMasterGlobalAccessConfigOrBuilder.java deleted file mode 100644 index 02bdfb5ee3a9..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterMasterGlobalAccessConfigOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateIPv6GoogleAccess.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateIPv6GoogleAccess.java deleted file mode 100644 index f3abc4f889a6..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateIPv6GoogleAccess.java +++ /dev/null @@ -1,203 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * PrivateIPv6GoogleAccess controls whether and how the pods can communicate
- * with Google Services through gRPC over IPv6.
- * 
- * - * Protobuf enum {@code google.container.v1beta1.PrivateIPv6GoogleAccess} - */ -public enum PrivateIPv6GoogleAccess implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Default value. Same as DISABLED
-   * 
- * - * PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0; - */ - PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED(0), - /** - * - * - *
-   * No private access to or from Google Services
-   * 
- * - * PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED = 1; - */ - PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED(1), - /** - * - * - *
-   * Enables private IPv6 access to Google Services from GKE
-   * 
- * - * PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE = 2; - */ - PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE(2), - /** - * - * - *
-   * Enables private IPv6 access to and from Google Services
-   * 
- * - * PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL = 3; - */ - PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * Default value. Same as DISABLED
-   * 
- * - * PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0; - */ - public static final int PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * No private access to or from Google Services
-   * 
- * - * PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED = 1; - */ - public static final int PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED_VALUE = 1; - /** - * - * - *
-   * Enables private IPv6 access to Google Services from GKE
-   * 
- * - * PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE = 2; - */ - public static final int PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE_VALUE = 2; - /** - * - * - *
-   * Enables private IPv6 access to and from Google Services
-   * 
- * - * PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL = 3; - */ - public static final int PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL_VALUE = 3; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static PrivateIPv6GoogleAccess valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static PrivateIPv6GoogleAccess forNumber(int value) { - switch (value) { - case 0: - return PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED; - case 1: - return PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED; - case 2: - return PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE; - case 3: - return PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public PrivateIPv6GoogleAccess findValueByNumber(int number) { - return PrivateIPv6GoogleAccess.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto.getDescriptor().getEnumTypes().get(0); - } - - private static final PrivateIPv6GoogleAccess[] VALUES = values(); - - public static PrivateIPv6GoogleAccess valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private PrivateIPv6GoogleAccess(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1beta1.PrivateIPv6GoogleAccess) -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ProtectConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ProtectConfig.java deleted file mode 100644 index 5cc09d278d00..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ProtectConfig.java +++ /dev/null @@ -1,1109 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * ProtectConfig defines the flags needed to enable/disable features for the
- * Protect API.
- * 
- * - * Protobuf type {@code google.container.v1beta1.ProtectConfig} - */ -public final class ProtectConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.ProtectConfig) - ProtectConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProtectConfig.newBuilder() to construct. - private ProtectConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ProtectConfig() { - workloadVulnerabilityMode_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ProtectConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_ProtectConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_ProtectConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.ProtectConfig.class, - com.google.container.v1beta1.ProtectConfig.Builder.class); - } - - /** - * - * - *
-   * WorkloadVulnerabilityMode defines mode to perform vulnerability scanning.
-   * 
- * - * Protobuf enum {@code google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode} - */ - public enum WorkloadVulnerabilityMode implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value not specified.
-     * 
- * - * WORKLOAD_VULNERABILITY_MODE_UNSPECIFIED = 0; - */ - WORKLOAD_VULNERABILITY_MODE_UNSPECIFIED(0), - /** - * - * - *
-     * Disables Workload Vulnerability Scanning feature on the cluster.
-     * 
- * - * DISABLED = 1; - */ - DISABLED(1), - /** - * - * - *
-     * Applies basic vulnerability scanning settings for cluster workloads.
-     * 
- * - * BASIC = 2; - */ - BASIC(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value not specified.
-     * 
- * - * WORKLOAD_VULNERABILITY_MODE_UNSPECIFIED = 0; - */ - public static final int WORKLOAD_VULNERABILITY_MODE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Disables Workload Vulnerability Scanning feature on the cluster.
-     * 
- * - * DISABLED = 1; - */ - public static final int DISABLED_VALUE = 1; - /** - * - * - *
-     * Applies basic vulnerability scanning settings for cluster workloads.
-     * 
- * - * BASIC = 2; - */ - public static final int BASIC_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 WorkloadVulnerabilityMode 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 WorkloadVulnerabilityMode forNumber(int value) { - switch (value) { - case 0: - return WORKLOAD_VULNERABILITY_MODE_UNSPECIFIED; - case 1: - return DISABLED; - case 2: - return BASIC; - 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 WorkloadVulnerabilityMode findValueByNumber(int number) { - return WorkloadVulnerabilityMode.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.ProtectConfig.getDescriptor().getEnumTypes().get(0); - } - - private static final WorkloadVulnerabilityMode[] VALUES = values(); - - public static WorkloadVulnerabilityMode 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 WorkloadVulnerabilityMode(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode) - } - - private int bitField0_; - public static final int WORKLOAD_CONFIG_FIELD_NUMBER = 1; - private com.google.container.v1beta1.WorkloadConfig workloadConfig_; - /** - * - * - *
-   * WorkloadConfig defines which actions are enabled for a cluster's workload
-   * configurations.
-   * 
- * - * optional .google.container.v1beta1.WorkloadConfig workload_config = 1; - * - * @return Whether the workloadConfig field is set. - */ - @java.lang.Override - public boolean hasWorkloadConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * WorkloadConfig defines which actions are enabled for a cluster's workload
-   * configurations.
-   * 
- * - * optional .google.container.v1beta1.WorkloadConfig workload_config = 1; - * - * @return The workloadConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.WorkloadConfig getWorkloadConfig() { - return workloadConfig_ == null - ? com.google.container.v1beta1.WorkloadConfig.getDefaultInstance() - : workloadConfig_; - } - /** - * - * - *
-   * WorkloadConfig defines which actions are enabled for a cluster's workload
-   * configurations.
-   * 
- * - * optional .google.container.v1beta1.WorkloadConfig workload_config = 1; - */ - @java.lang.Override - public com.google.container.v1beta1.WorkloadConfigOrBuilder getWorkloadConfigOrBuilder() { - return workloadConfig_ == null - ? com.google.container.v1beta1.WorkloadConfig.getDefaultInstance() - : workloadConfig_; - } - - public static final int WORKLOAD_VULNERABILITY_MODE_FIELD_NUMBER = 2; - private int workloadVulnerabilityMode_ = 0; - /** - * - * - *
-   * Sets which mode to use for Protect workload vulnerability scanning feature.
-   * 
- * - * - * optional .google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode workload_vulnerability_mode = 2; - * - * - * @return Whether the workloadVulnerabilityMode field is set. - */ - @java.lang.Override - public boolean hasWorkloadVulnerabilityMode() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * Sets which mode to use for Protect workload vulnerability scanning feature.
-   * 
- * - * - * optional .google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode workload_vulnerability_mode = 2; - * - * - * @return The enum numeric value on the wire for workloadVulnerabilityMode. - */ - @java.lang.Override - public int getWorkloadVulnerabilityModeValue() { - return workloadVulnerabilityMode_; - } - /** - * - * - *
-   * Sets which mode to use for Protect workload vulnerability scanning feature.
-   * 
- * - * - * optional .google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode workload_vulnerability_mode = 2; - * - * - * @return The workloadVulnerabilityMode. - */ - @java.lang.Override - public com.google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode - getWorkloadVulnerabilityMode() { - com.google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode result = - com.google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode.forNumber( - workloadVulnerabilityMode_); - return result == null - ? com.google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode.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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getWorkloadConfig()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeEnum(2, workloadVulnerabilityMode_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWorkloadConfig()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, workloadVulnerabilityMode_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.ProtectConfig)) { - return super.equals(obj); - } - com.google.container.v1beta1.ProtectConfig other = - (com.google.container.v1beta1.ProtectConfig) obj; - - if (hasWorkloadConfig() != other.hasWorkloadConfig()) return false; - if (hasWorkloadConfig()) { - if (!getWorkloadConfig().equals(other.getWorkloadConfig())) return false; - } - if (hasWorkloadVulnerabilityMode() != other.hasWorkloadVulnerabilityMode()) return false; - if (hasWorkloadVulnerabilityMode()) { - if (workloadVulnerabilityMode_ != other.workloadVulnerabilityMode_) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasWorkloadConfig()) { - hash = (37 * hash) + WORKLOAD_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getWorkloadConfig().hashCode(); - } - if (hasWorkloadVulnerabilityMode()) { - hash = (37 * hash) + WORKLOAD_VULNERABILITY_MODE_FIELD_NUMBER; - hash = (53 * hash) + workloadVulnerabilityMode_; - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.ProtectConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.ProtectConfig parseFrom( - 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.ProtectConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.ProtectConfig parseFrom( - com.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.ProtectConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.ProtectConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.ProtectConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.ProtectConfig parseFrom( - java.io.InputStream 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.ProtectConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.ProtectConfig parseDelimitedFrom( - java.io.InputStream 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.ProtectConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.ProtectConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.ProtectConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * ProtectConfig defines the flags needed to enable/disable features for the
-   * Protect API.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.ProtectConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ProtectConfig) - com.google.container.v1beta1.ProtectConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_ProtectConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_ProtectConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.ProtectConfig.class, - com.google.container.v1beta1.ProtectConfig.Builder.class); - } - - // Construct using com.google.container.v1beta1.ProtectConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getWorkloadConfigFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - workloadConfig_ = null; - if (workloadConfigBuilder_ != null) { - workloadConfigBuilder_.dispose(); - workloadConfigBuilder_ = null; - } - workloadVulnerabilityMode_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_ProtectConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.ProtectConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.ProtectConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.ProtectConfig build() { - com.google.container.v1beta1.ProtectConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.ProtectConfig buildPartial() { - com.google.container.v1beta1.ProtectConfig result = - new com.google.container.v1beta1.ProtectConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.ProtectConfig result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.workloadConfig_ = - workloadConfigBuilder_ == null ? workloadConfig_ : workloadConfigBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.workloadVulnerabilityMode_ = workloadVulnerabilityMode_; - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @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.ProtectConfig) { - return mergeFrom((com.google.container.v1beta1.ProtectConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.ProtectConfig other) { - if (other == com.google.container.v1beta1.ProtectConfig.getDefaultInstance()) return this; - if (other.hasWorkloadConfig()) { - mergeWorkloadConfig(other.getWorkloadConfig()); - } - if (other.hasWorkloadVulnerabilityMode()) { - setWorkloadVulnerabilityMode(other.getWorkloadVulnerabilityMode()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getWorkloadConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - workloadVulnerabilityMode_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.container.v1beta1.WorkloadConfig workloadConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WorkloadConfig, - com.google.container.v1beta1.WorkloadConfig.Builder, - com.google.container.v1beta1.WorkloadConfigOrBuilder> - workloadConfigBuilder_; - /** - * - * - *
-     * WorkloadConfig defines which actions are enabled for a cluster's workload
-     * configurations.
-     * 
- * - * optional .google.container.v1beta1.WorkloadConfig workload_config = 1; - * - * @return Whether the workloadConfig field is set. - */ - public boolean hasWorkloadConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * WorkloadConfig defines which actions are enabled for a cluster's workload
-     * configurations.
-     * 
- * - * optional .google.container.v1beta1.WorkloadConfig workload_config = 1; - * - * @return The workloadConfig. - */ - public com.google.container.v1beta1.WorkloadConfig getWorkloadConfig() { - if (workloadConfigBuilder_ == null) { - return workloadConfig_ == null - ? com.google.container.v1beta1.WorkloadConfig.getDefaultInstance() - : workloadConfig_; - } else { - return workloadConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * WorkloadConfig defines which actions are enabled for a cluster's workload
-     * configurations.
-     * 
- * - * optional .google.container.v1beta1.WorkloadConfig workload_config = 1; - */ - public Builder setWorkloadConfig(com.google.container.v1beta1.WorkloadConfig value) { - if (workloadConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workloadConfig_ = value; - } else { - workloadConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * WorkloadConfig defines which actions are enabled for a cluster's workload
-     * configurations.
-     * 
- * - * optional .google.container.v1beta1.WorkloadConfig workload_config = 1; - */ - public Builder setWorkloadConfig( - com.google.container.v1beta1.WorkloadConfig.Builder builderForValue) { - if (workloadConfigBuilder_ == null) { - workloadConfig_ = builderForValue.build(); - } else { - workloadConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * WorkloadConfig defines which actions are enabled for a cluster's workload
-     * configurations.
-     * 
- * - * optional .google.container.v1beta1.WorkloadConfig workload_config = 1; - */ - public Builder mergeWorkloadConfig(com.google.container.v1beta1.WorkloadConfig value) { - if (workloadConfigBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && workloadConfig_ != null - && workloadConfig_ - != com.google.container.v1beta1.WorkloadConfig.getDefaultInstance()) { - getWorkloadConfigBuilder().mergeFrom(value); - } else { - workloadConfig_ = value; - } - } else { - workloadConfigBuilder_.mergeFrom(value); - } - if (workloadConfig_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * - * - *
-     * WorkloadConfig defines which actions are enabled for a cluster's workload
-     * configurations.
-     * 
- * - * optional .google.container.v1beta1.WorkloadConfig workload_config = 1; - */ - public Builder clearWorkloadConfig() { - bitField0_ = (bitField0_ & ~0x00000001); - workloadConfig_ = null; - if (workloadConfigBuilder_ != null) { - workloadConfigBuilder_.dispose(); - workloadConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * WorkloadConfig defines which actions are enabled for a cluster's workload
-     * configurations.
-     * 
- * - * optional .google.container.v1beta1.WorkloadConfig workload_config = 1; - */ - public com.google.container.v1beta1.WorkloadConfig.Builder getWorkloadConfigBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getWorkloadConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * WorkloadConfig defines which actions are enabled for a cluster's workload
-     * configurations.
-     * 
- * - * optional .google.container.v1beta1.WorkloadConfig workload_config = 1; - */ - public com.google.container.v1beta1.WorkloadConfigOrBuilder getWorkloadConfigOrBuilder() { - if (workloadConfigBuilder_ != null) { - return workloadConfigBuilder_.getMessageOrBuilder(); - } else { - return workloadConfig_ == null - ? com.google.container.v1beta1.WorkloadConfig.getDefaultInstance() - : workloadConfig_; - } - } - /** - * - * - *
-     * WorkloadConfig defines which actions are enabled for a cluster's workload
-     * configurations.
-     * 
- * - * optional .google.container.v1beta1.WorkloadConfig workload_config = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WorkloadConfig, - com.google.container.v1beta1.WorkloadConfig.Builder, - com.google.container.v1beta1.WorkloadConfigOrBuilder> - getWorkloadConfigFieldBuilder() { - if (workloadConfigBuilder_ == null) { - workloadConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WorkloadConfig, - com.google.container.v1beta1.WorkloadConfig.Builder, - com.google.container.v1beta1.WorkloadConfigOrBuilder>( - getWorkloadConfig(), getParentForChildren(), isClean()); - workloadConfig_ = null; - } - return workloadConfigBuilder_; - } - - private int workloadVulnerabilityMode_ = 0; - /** - * - * - *
-     * Sets which mode to use for Protect workload vulnerability scanning feature.
-     * 
- * - * - * optional .google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode workload_vulnerability_mode = 2; - * - * - * @return Whether the workloadVulnerabilityMode field is set. - */ - @java.lang.Override - public boolean hasWorkloadVulnerabilityMode() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * Sets which mode to use for Protect workload vulnerability scanning feature.
-     * 
- * - * - * optional .google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode workload_vulnerability_mode = 2; - * - * - * @return The enum numeric value on the wire for workloadVulnerabilityMode. - */ - @java.lang.Override - public int getWorkloadVulnerabilityModeValue() { - return workloadVulnerabilityMode_; - } - /** - * - * - *
-     * Sets which mode to use for Protect workload vulnerability scanning feature.
-     * 
- * - * - * optional .google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode workload_vulnerability_mode = 2; - * - * - * @param value The enum numeric value on the wire for workloadVulnerabilityMode to set. - * @return This builder for chaining. - */ - public Builder setWorkloadVulnerabilityModeValue(int value) { - workloadVulnerabilityMode_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Sets which mode to use for Protect workload vulnerability scanning feature.
-     * 
- * - * - * optional .google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode workload_vulnerability_mode = 2; - * - * - * @return The workloadVulnerabilityMode. - */ - @java.lang.Override - public com.google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode - getWorkloadVulnerabilityMode() { - com.google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode result = - com.google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode.forNumber( - workloadVulnerabilityMode_); - return result == null - ? com.google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Sets which mode to use for Protect workload vulnerability scanning feature.
-     * 
- * - * - * optional .google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode workload_vulnerability_mode = 2; - * - * - * @param value The workloadVulnerabilityMode to set. - * @return This builder for chaining. - */ - public Builder setWorkloadVulnerabilityMode( - com.google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - workloadVulnerabilityMode_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Sets which mode to use for Protect workload vulnerability scanning feature.
-     * 
- * - * - * optional .google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode workload_vulnerability_mode = 2; - * - * - * @return This builder for chaining. - */ - public Builder clearWorkloadVulnerabilityMode() { - bitField0_ = (bitField0_ & ~0x00000002); - workloadVulnerabilityMode_ = 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.ProtectConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.ProtectConfig) - private static final com.google.container.v1beta1.ProtectConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.ProtectConfig(); - } - - public static com.google.container.v1beta1.ProtectConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProtectConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.ProtectConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ProtectConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ProtectConfigOrBuilder.java deleted file mode 100644 index b85a7f7090d0..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ProtectConfigOrBuilder.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface ProtectConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ProtectConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * WorkloadConfig defines which actions are enabled for a cluster's workload
-   * configurations.
-   * 
- * - * optional .google.container.v1beta1.WorkloadConfig workload_config = 1; - * - * @return Whether the workloadConfig field is set. - */ - boolean hasWorkloadConfig(); - /** - * - * - *
-   * WorkloadConfig defines which actions are enabled for a cluster's workload
-   * configurations.
-   * 
- * - * optional .google.container.v1beta1.WorkloadConfig workload_config = 1; - * - * @return The workloadConfig. - */ - com.google.container.v1beta1.WorkloadConfig getWorkloadConfig(); - /** - * - * - *
-   * WorkloadConfig defines which actions are enabled for a cluster's workload
-   * configurations.
-   * 
- * - * optional .google.container.v1beta1.WorkloadConfig workload_config = 1; - */ - com.google.container.v1beta1.WorkloadConfigOrBuilder getWorkloadConfigOrBuilder(); - - /** - * - * - *
-   * Sets which mode to use for Protect workload vulnerability scanning feature.
-   * 
- * - * - * optional .google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode workload_vulnerability_mode = 2; - * - * - * @return Whether the workloadVulnerabilityMode field is set. - */ - boolean hasWorkloadVulnerabilityMode(); - /** - * - * - *
-   * Sets which mode to use for Protect workload vulnerability scanning feature.
-   * 
- * - * - * optional .google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode workload_vulnerability_mode = 2; - * - * - * @return The enum numeric value on the wire for workloadVulnerabilityMode. - */ - int getWorkloadVulnerabilityModeValue(); - /** - * - * - *
-   * Sets which mode to use for Protect workload vulnerability scanning feature.
-   * 
- * - * - * optional .google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode workload_vulnerability_mode = 2; - * - * - * @return The workloadVulnerabilityMode. - */ - com.google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode - getWorkloadVulnerabilityMode(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RangeInfo.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RangeInfo.java deleted file mode 100644 index da49018938bd..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RangeInfo.java +++ /dev/null @@ -1,720 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * RangeInfo contains the range name and the range utilization by this cluster.
- * 
- * - * Protobuf type {@code google.container.v1beta1.RangeInfo} - */ -public final class RangeInfo extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.RangeInfo) - RangeInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use RangeInfo.newBuilder() to construct. - private RangeInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RangeInfo() { - rangeName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RangeInfo(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_RangeInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_RangeInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.RangeInfo.class, - com.google.container.v1beta1.RangeInfo.Builder.class); - } - - public static final int RANGE_NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object rangeName_ = ""; - /** - * - * - *
-   * Output only. [Output only] Name of a range.
-   * 
- * - * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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; - } - } - /** - * - * - *
-   * Output only. [Output only] Name of a range.
-   * 
- * - * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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 UTILIZATION_FIELD_NUMBER = 2; - private double utilization_ = 0D; - /** - * - * - *
-   * Output only. [Output only] The utilization of the range.
-   * 
- * - * double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The utilization. - */ - @java.lang.Override - public double getUtilization() { - return utilization_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rangeName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, rangeName_); - } - if (java.lang.Double.doubleToRawLongBits(utilization_) != 0) { - output.writeDouble(2, utilization_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rangeName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, rangeName_); - } - if (java.lang.Double.doubleToRawLongBits(utilization_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, utilization_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.RangeInfo)) { - return super.equals(obj); - } - com.google.container.v1beta1.RangeInfo other = (com.google.container.v1beta1.RangeInfo) obj; - - if (!getRangeName().equals(other.getRangeName())) return false; - if (java.lang.Double.doubleToLongBits(getUtilization()) - != java.lang.Double.doubleToLongBits(other.getUtilization())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + UTILIZATION_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getUtilization())); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.RangeInfo parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.RangeInfo parseFrom( - 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.RangeInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.RangeInfo parseFrom( - com.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.RangeInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.RangeInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.RangeInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.RangeInfo parseFrom( - java.io.InputStream 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.RangeInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.RangeInfo parseDelimitedFrom( - java.io.InputStream 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.RangeInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.RangeInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.RangeInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * RangeInfo contains the range name and the range utilization by this cluster.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.RangeInfo} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.RangeInfo) - com.google.container.v1beta1.RangeInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_RangeInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_RangeInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.RangeInfo.class, - com.google.container.v1beta1.RangeInfo.Builder.class); - } - - // Construct using com.google.container.v1beta1.RangeInfo.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - rangeName_ = ""; - utilization_ = 0D; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_RangeInfo_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.RangeInfo getDefaultInstanceForType() { - return com.google.container.v1beta1.RangeInfo.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.RangeInfo build() { - com.google.container.v1beta1.RangeInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.RangeInfo buildPartial() { - com.google.container.v1beta1.RangeInfo result = - new com.google.container.v1beta1.RangeInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.RangeInfo result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.rangeName_ = rangeName_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.utilization_ = utilization_; - } - } - - @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.RangeInfo) { - return mergeFrom((com.google.container.v1beta1.RangeInfo) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.RangeInfo other) { - if (other == com.google.container.v1beta1.RangeInfo.getDefaultInstance()) return this; - if (!other.getRangeName().isEmpty()) { - rangeName_ = other.rangeName_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getUtilization() != 0D) { - setUtilization(other.getUtilization()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - rangeName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 17: - { - utilization_ = input.readDouble(); - bitField0_ |= 0x00000002; - break; - } // case 17 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object rangeName_ = ""; - /** - * - * - *
-     * Output only. [Output only] Name of a range.
-     * 
- * - * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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; - } - } - /** - * - * - *
-     * Output only. [Output only] Name of a range.
-     * 
- * - * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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; - } - } - /** - * - * - *
-     * Output only. [Output only] Name of a range.
-     * 
- * - * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. [Output only] Name of a range.
-     * 
- * - * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearRangeName() { - rangeName_ = getDefaultInstance().getRangeName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. [Output only] Name of a range.
-     * 
- * - * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private double utilization_; - /** - * - * - *
-     * Output only. [Output only] The utilization of the range.
-     * 
- * - * double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The utilization. - */ - @java.lang.Override - public double getUtilization() { - return utilization_; - } - /** - * - * - *
-     * Output only. [Output only] The utilization of the range.
-     * 
- * - * double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The utilization to set. - * @return This builder for chaining. - */ - public Builder setUtilization(double value) { - - utilization_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. [Output only] The utilization of the range.
-     * 
- * - * double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearUtilization() { - bitField0_ = (bitField0_ & ~0x00000002); - utilization_ = 0D; - 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.RangeInfo) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.RangeInfo) - private static final com.google.container.v1beta1.RangeInfo DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.RangeInfo(); - } - - public static com.google.container.v1beta1.RangeInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RangeInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.RangeInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RangeInfoOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RangeInfoOrBuilder.java deleted file mode 100644 index b9cd6976bda2..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RangeInfoOrBuilder.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface RangeInfoOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.RangeInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. [Output only] Name of a range.
-   * 
- * - * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The rangeName. - */ - java.lang.String getRangeName(); - /** - * - * - *
-   * Output only. [Output only] Name of a range.
-   * 
- * - * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for rangeName. - */ - com.google.protobuf.ByteString getRangeNameBytes(); - - /** - * - * - *
-   * Output only. [Output only] The utilization of the range.
-   * 
- * - * double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The utilization. - */ - double getUtilization(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RecurringTimeWindow.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RecurringTimeWindow.java deleted file mode 100644 index e30520b60acc..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RecurringTimeWindow.java +++ /dev/null @@ -1,1117 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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); - } - - private int bitField0_; - 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 ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * 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 window_ == null ? com.google.container.v1beta1.TimeWindow.getDefaultInstance() : window_; - } - - public static final int RECURRENCE_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - 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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getWindow()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recurrence_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, recurrence_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWindow()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recurrence_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, recurrence_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { - getWindowFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - window_ = null; - if (windowBuilder_ != null) { - windowBuilder_.dispose(); - 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 (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.RecurringTimeWindow result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.window_ = windowBuilder_ == null ? window_ : windowBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.recurrence_ = recurrence_; - } - result.bitField0_ |= to_bitField0_; - } - - @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_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getWindowFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - recurrence_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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 ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * 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; - } else { - windowBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - 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(); - } else { - windowBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - 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 (((bitField0_ & 0x00000001) != 0) - && window_ != null - && window_ != com.google.container.v1beta1.TimeWindow.getDefaultInstance()) { - getWindowBuilder().mergeFrom(value); - } else { - window_ = value; - } - } else { - windowBuilder_.mergeFrom(value); - } - if (window_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The window of the first recurrence.
-     * 
- * - * .google.container.v1beta1.TimeWindow window = 1; - */ - public Builder clearWindow() { - bitField0_ = (bitField0_ & ~0x00000001); - window_ = null; - if (windowBuilder_ != null) { - windowBuilder_.dispose(); - windowBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The window of the first recurrence.
-     * 
- * - * .google.container.v1beta1.TimeWindow window = 1; - */ - public com.google.container.v1beta1.TimeWindow.Builder getWindowBuilder() { - bitField0_ |= 0x00000001; - 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; - bitField0_ |= 0x00000002; - 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(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RecurringTimeWindowOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RecurringTimeWindowOrBuilder.java deleted file mode 100644 index a78bae37cad5..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RecurringTimeWindowOrBuilder.java +++ /dev/null @@ -1,148 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReleaseChannel.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReleaseChannel.java deleted file mode 100644 index 27054438b812..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReleaseChannel.java +++ /dev/null @@ -1,799 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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_ = 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; - * - * @return The channel. - */ - @java.lang.Override - public com.google.container.v1beta1.ReleaseChannel.Channel getChannel() { - com.google.container.v1beta1.ReleaseChannel.Channel result = - com.google.container.v1beta1.ReleaseChannel.Channel.forNumber(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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.ReleaseChannel result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.channel_ = channel_; - } - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - channel_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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() { - com.google.container.v1beta1.ReleaseChannel.Channel result = - com.google.container.v1beta1.ReleaseChannel.Channel.forNumber(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(); - } - bitField0_ |= 0x00000001; - 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() { - bitField0_ = (bitField0_ & ~0x00000001); - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReleaseChannelOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReleaseChannelOrBuilder.java deleted file mode 100644 index 32cd64bd255f..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReleaseChannelOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReservationAffinity.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReservationAffinity.java deleted file mode 100644 index bea2230b53ab..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReservationAffinity.java +++ /dev/null @@ -1,1263 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ReservationAffinity(); - } - - 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_ = 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; - * - * @return The consumeReservationType. - */ - @java.lang.Override - public com.google.container.v1beta1.ReservationAffinity.Type getConsumeReservationType() { - com.google.container.v1beta1.ReservationAffinity.Type result = - com.google.container.v1beta1.ReservationAffinity.Type.forNumber(consumeReservationType_); - return result == null - ? com.google.container.v1beta1.ReservationAffinity.Type.UNRECOGNIZED - : result; - } - - public static final int KEY_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object key_ = ""; - /** - * - * - *
-   * Corresponds to the label key of a reservation resource. To target a
-   * SPECIFIC_RESERVATION by name, specify
-   * "compute.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
-   * "compute.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; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { - 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)); - } - getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { - 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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - consumeReservationType_ = 0; - key_ = ""; - values_ = com.google.protobuf.LazyStringArrayList.emptyList(); - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.ReservationAffinity result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.consumeReservationType_ = consumeReservationType_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.key_ = key_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - values_.makeImmutable(); - result.values_ = values_; - } - } - - @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_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.values_.isEmpty()) { - if (values_.isEmpty()) { - values_ = other.values_; - bitField0_ |= 0x00000004; - } else { - ensureValuesIsMutable(); - values_.addAll(other.values_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - consumeReservationType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - key_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureValuesIsMutable(); - values_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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; - bitField0_ |= 0x00000001; - 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() { - com.google.container.v1beta1.ReservationAffinity.Type result = - com.google.container.v1beta1.ReservationAffinity.Type.forNumber(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(); - } - bitField0_ |= 0x00000001; - 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() { - bitField0_ = (bitField0_ & ~0x00000001); - 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
-     * "compute.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
-     * "compute.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
-     * "compute.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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Corresponds to the label key of a reservation resource. To target a
-     * SPECIFIC_RESERVATION by name, specify
-     * "compute.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(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Corresponds to the label key of a reservation resource. To target a
-     * SPECIFIC_RESERVATION by name, specify
-     * "compute.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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureValuesIsMutable() { - if (!values_.isModifiable()) { - values_ = new com.google.protobuf.LazyStringArrayList(values_); - } - bitField0_ |= 0x00000004; - } - /** - * - * - *
-     * 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() { - values_.makeImmutable(); - 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); - } - /** - * - * - *
-     * 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); - bitField0_ |= 0x00000004; - 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); - bitField0_ |= 0x00000004; - 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_); - bitField0_ |= 0x00000004; - 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.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; - 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); - bitField0_ |= 0x00000004; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReservationAffinityOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReservationAffinityOrBuilder.java deleted file mode 100644 index cb05d28ed858..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReservationAffinityOrBuilder.java +++ /dev/null @@ -1,133 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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
-   * "compute.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
-   * "compute.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLabels.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLabels.java deleted file mode 100644 index 51448da6daeb..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLabels.java +++ /dev/null @@ -1,778 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * Collection of [GCP
- * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
- * 
- * - * Protobuf type {@code google.container.v1beta1.ResourceLabels} - */ -public final class ResourceLabels extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.ResourceLabels) - ResourceLabelsOrBuilder { - private static final long serialVersionUID = 0L; - // Use ResourceLabels.newBuilder() to construct. - private ResourceLabels(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ResourceLabels() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ResourceLabels(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_ResourceLabels_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - 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_ResourceLabels_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.ResourceLabels.class, - com.google.container.v1beta1.ResourceLabels.Builder.class); - } - - public static final int LABELS_FIELD_NUMBER = 1; - - 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_ResourceLabels_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - @SuppressWarnings("serial") - 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(); - } - /** - * - * - *
-   * Map of node label keys and node label values.
-   * 
- * - * map<string, string> labels = 1; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-   * Map of node label keys and node label values.
-   * 
- * - * map<string, string> labels = 1; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-   * Map of node label keys and node label values.
-   * 
- * - * map<string, string> labels = 1; - */ - @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Map of node label keys and node label values.
-   * 
- * - * map<string, string> labels = 1; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().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, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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(1, labels__); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.ResourceLabels)) { - return super.equals(obj); - } - com.google.container.v1beta1.ResourceLabels other = - (com.google.container.v1beta1.ResourceLabels) obj; - - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.ResourceLabels parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.ResourceLabels parseFrom( - 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.ResourceLabels parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.ResourceLabels parseFrom( - com.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.ResourceLabels parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.ResourceLabels parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.ResourceLabels parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.ResourceLabels parseFrom( - java.io.InputStream 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.ResourceLabels parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.ResourceLabels parseDelimitedFrom( - java.io.InputStream 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.ResourceLabels parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.ResourceLabels parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.ResourceLabels prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Collection of [GCP
-   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
-   * 
- * - * Protobuf type {@code google.container.v1beta1.ResourceLabels} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ResourceLabels) - com.google.container.v1beta1.ResourceLabelsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_ResourceLabels_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - 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_ResourceLabels_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.ResourceLabels.class, - com.google.container.v1beta1.ResourceLabels.Builder.class); - } - - // Construct using com.google.container.v1beta1.ResourceLabels.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableLabels().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_ResourceLabels_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.ResourceLabels getDefaultInstanceForType() { - return com.google.container.v1beta1.ResourceLabels.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.ResourceLabels build() { - com.google.container.v1beta1.ResourceLabels result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.ResourceLabels buildPartial() { - com.google.container.v1beta1.ResourceLabels result = - new com.google.container.v1beta1.ResourceLabels(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.ResourceLabels result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - } - } - - @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.ResourceLabels) { - return mergeFrom((com.google.container.v1beta1.ResourceLabels) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.ResourceLabels other) { - if (other == com.google.container.v1beta1.ResourceLabels.getDefaultInstance()) return this; - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00000001; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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() { - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - * - * - *
-     * Map of node label keys and node label values.
-     * 
- * - * map<string, string> labels = 1; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-     * Map of node label keys and node label values.
-     * 
- * - * map<string, string> labels = 1; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-     * Map of node label keys and node label values.
-     * 
- * - * map<string, string> labels = 1; - */ - @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Map of node label keys and node label values.
-     * 
- * - * map<string, string> labels = 1; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableLabels().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Map of node label keys and node label values.
-     * 
- * - * map<string, string> labels = 1; - */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - bitField0_ |= 0x00000001; - return internalGetMutableLabels().getMutableMap(); - } - /** - * - * - *
-     * Map of node label keys and node label values.
-     * 
- * - * map<string, string> labels = 1; - */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * - * - *
-     * Map of node label keys and node label values.
-     * 
- * - * map<string, string> labels = 1; - */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00000001; - 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.ResourceLabels) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.ResourceLabels) - private static final com.google.container.v1beta1.ResourceLabels DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.ResourceLabels(); - } - - public static com.google.container.v1beta1.ResourceLabels getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceLabels parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.ResourceLabels getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLabelsOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLabelsOrBuilder.java deleted file mode 100644 index 4e28a002d3b5..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLabelsOrBuilder.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface ResourceLabelsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ResourceLabels) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Map of node label keys and node label values.
-   * 
- * - * map<string, string> labels = 1; - */ - int getLabelsCount(); - /** - * - * - *
-   * Map of node label keys and node label values.
-   * 
- * - * map<string, string> labels = 1; - */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getLabels(); - /** - * - * - *
-   * Map of node label keys and node label values.
-   * 
- * - * map<string, string> labels = 1; - */ - java.util.Map getLabelsMap(); - /** - * - * - *
-   * Map of node label keys and node label values.
-   * 
- * - * map<string, string> labels = 1; - */ - /* nullable */ - java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * Map of node label keys and node label values.
-   * 
- * - * map<string, string> labels = 1; - */ - java.lang.String getLabelsOrThrow(java.lang.String key); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLimit.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLimit.java deleted file mode 100644 index 4e5e3dfb7c23..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLimit.java +++ /dev/null @@ -1,812 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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; - - @SuppressWarnings("serial") - 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_ = 0L; - /** - * - * - *
-   * 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_ = 0L; - /** - * - * - *
-   * 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceType_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceType_); - } - if (minimum_ != 0L) { - output.writeInt64(2, minimum_); - } - if (maximum_ != 0L) { - output.writeInt64(3, maximum_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceType_)) { - 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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.ResourceLimit result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.resourceType_ = resourceType_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.minimum_ = minimum_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.maximum_ = maximum_; - } - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getMinimum() != 0L) { - setMinimum(other.getMinimum()); - } - if (other.getMaximum() != 0L) { - setMaximum(other.getMaximum()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - resourceType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - minimum_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - maximum_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Minimum amount of the resource in the cluster.
-     * 
- * - * int64 minimum = 2; - * - * @return This builder for chaining. - */ - public Builder clearMinimum() { - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Maximum amount of the resource in the cluster.
-     * 
- * - * int64 maximum = 3; - * - * @return This builder for chaining. - */ - public Builder clearMaximum() { - bitField0_ = (bitField0_ & ~0x00000004); - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLimitOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLimitOrBuilder.java deleted file mode 100644 index 0e941543689d..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLimitOrBuilder.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceManagerTags.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceManagerTags.java deleted file mode 100644 index e8f975f749d6..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceManagerTags.java +++ /dev/null @@ -1,817 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * A map of resource manager tag keys and values to be attached to the nodes
- * for managing Compute Engine firewalls using Network Firewall Policies.
- * Tags must be according to specifications in
- * https://cloud.google.com/vpc/docs/tags-firewalls-overview#specifications.
- * A maximum of 5 tag key-value pairs can be specified.
- * Existing tags will be replaced with new values.
- * 
- * - * Protobuf type {@code google.container.v1beta1.ResourceManagerTags} - */ -public final class ResourceManagerTags extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.ResourceManagerTags) - ResourceManagerTagsOrBuilder { - private static final long serialVersionUID = 0L; - // Use ResourceManagerTags.newBuilder() to construct. - private ResourceManagerTags(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ResourceManagerTags() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ResourceManagerTags(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_ResourceManagerTags_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetTags(); - 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_ResourceManagerTags_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.ResourceManagerTags.class, - com.google.container.v1beta1.ResourceManagerTags.Builder.class); - } - - public static final int TAGS_FIELD_NUMBER = 1; - - private static final class TagsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_ResourceManagerTags_TagsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - @SuppressWarnings("serial") - private com.google.protobuf.MapField tags_; - - private com.google.protobuf.MapField internalGetTags() { - if (tags_ == null) { - return com.google.protobuf.MapField.emptyMapField(TagsDefaultEntryHolder.defaultEntry); - } - return tags_; - } - - public int getTagsCount() { - return internalGetTags().getMap().size(); - } - /** - * - * - *
-   * Tags must be in one of the following formats ([KEY]=[VALUE])
-   * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
-   * 2. `{org_id}/{tag_key_name}={tag_value_name}`
-   * 3. `{project_id}/{tag_key_name}={tag_value_name}`
-   * 
- * - * map<string, string> tags = 1; - */ - @java.lang.Override - public boolean containsTags(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetTags().getMap().containsKey(key); - } - /** Use {@link #getTagsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getTags() { - return getTagsMap(); - } - /** - * - * - *
-   * Tags must be in one of the following formats ([KEY]=[VALUE])
-   * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
-   * 2. `{org_id}/{tag_key_name}={tag_value_name}`
-   * 3. `{project_id}/{tag_key_name}={tag_value_name}`
-   * 
- * - * map<string, string> tags = 1; - */ - @java.lang.Override - public java.util.Map getTagsMap() { - return internalGetTags().getMap(); - } - /** - * - * - *
-   * Tags must be in one of the following formats ([KEY]=[VALUE])
-   * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
-   * 2. `{org_id}/{tag_key_name}={tag_value_name}`
-   * 3. `{project_id}/{tag_key_name}={tag_value_name}`
-   * 
- * - * map<string, string> tags = 1; - */ - @java.lang.Override - public /* nullable */ java.lang.String getTagsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetTags().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Tags must be in one of the following formats ([KEY]=[VALUE])
-   * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
-   * 2. `{org_id}/{tag_key_name}={tag_value_name}`
-   * 3. `{project_id}/{tag_key_name}={tag_value_name}`
-   * 
- * - * map<string, string> tags = 1; - */ - @java.lang.Override - public java.lang.String getTagsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetTags().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, internalGetTags(), TagsDefaultEntryHolder.defaultEntry, 1); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry : - internalGetTags().getMap().entrySet()) { - com.google.protobuf.MapEntry tags__ = - TagsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, tags__); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.ResourceManagerTags)) { - return super.equals(obj); - } - com.google.container.v1beta1.ResourceManagerTags other = - (com.google.container.v1beta1.ResourceManagerTags) obj; - - if (!internalGetTags().equals(other.internalGetTags())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetTags().getMap().isEmpty()) { - hash = (37 * hash) + TAGS_FIELD_NUMBER; - hash = (53 * hash) + internalGetTags().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.ResourceManagerTags parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.ResourceManagerTags parseFrom( - 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.ResourceManagerTags parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.ResourceManagerTags parseFrom( - com.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.ResourceManagerTags parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.ResourceManagerTags parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.ResourceManagerTags parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.ResourceManagerTags parseFrom( - java.io.InputStream 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.ResourceManagerTags parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.ResourceManagerTags parseDelimitedFrom( - java.io.InputStream 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.ResourceManagerTags parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.ResourceManagerTags parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.ResourceManagerTags prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 map of resource manager tag keys and values to be attached to the nodes
-   * for managing Compute Engine firewalls using Network Firewall Policies.
-   * Tags must be according to specifications in
-   * https://cloud.google.com/vpc/docs/tags-firewalls-overview#specifications.
-   * A maximum of 5 tag key-value pairs can be specified.
-   * Existing tags will be replaced with new values.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.ResourceManagerTags} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ResourceManagerTags) - com.google.container.v1beta1.ResourceManagerTagsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_ResourceManagerTags_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetTags(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableTags(); - 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_ResourceManagerTags_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.ResourceManagerTags.class, - com.google.container.v1beta1.ResourceManagerTags.Builder.class); - } - - // Construct using com.google.container.v1beta1.ResourceManagerTags.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableTags().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_ResourceManagerTags_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.ResourceManagerTags getDefaultInstanceForType() { - return com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.ResourceManagerTags build() { - com.google.container.v1beta1.ResourceManagerTags result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.ResourceManagerTags buildPartial() { - com.google.container.v1beta1.ResourceManagerTags result = - new com.google.container.v1beta1.ResourceManagerTags(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.ResourceManagerTags result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.tags_ = internalGetTags(); - result.tags_.makeImmutable(); - } - } - - @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.ResourceManagerTags) { - return mergeFrom((com.google.container.v1beta1.ResourceManagerTags) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.ResourceManagerTags other) { - if (other == com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance()) - return this; - internalGetMutableTags().mergeFrom(other.internalGetTags()); - bitField0_ |= 0x00000001; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.protobuf.MapEntry tags__ = - input.readMessage( - TagsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableTags().getMutableMap().put(tags__.getKey(), tags__.getValue()); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.protobuf.MapField tags_; - - private com.google.protobuf.MapField internalGetTags() { - if (tags_ == null) { - return com.google.protobuf.MapField.emptyMapField(TagsDefaultEntryHolder.defaultEntry); - } - return tags_; - } - - private com.google.protobuf.MapField - internalGetMutableTags() { - if (tags_ == null) { - tags_ = com.google.protobuf.MapField.newMapField(TagsDefaultEntryHolder.defaultEntry); - } - if (!tags_.isMutable()) { - tags_ = tags_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return tags_; - } - - public int getTagsCount() { - return internalGetTags().getMap().size(); - } - /** - * - * - *
-     * Tags must be in one of the following formats ([KEY]=[VALUE])
-     * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
-     * 2. `{org_id}/{tag_key_name}={tag_value_name}`
-     * 3. `{project_id}/{tag_key_name}={tag_value_name}`
-     * 
- * - * map<string, string> tags = 1; - */ - @java.lang.Override - public boolean containsTags(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetTags().getMap().containsKey(key); - } - /** Use {@link #getTagsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getTags() { - return getTagsMap(); - } - /** - * - * - *
-     * Tags must be in one of the following formats ([KEY]=[VALUE])
-     * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
-     * 2. `{org_id}/{tag_key_name}={tag_value_name}`
-     * 3. `{project_id}/{tag_key_name}={tag_value_name}`
-     * 
- * - * map<string, string> tags = 1; - */ - @java.lang.Override - public java.util.Map getTagsMap() { - return internalGetTags().getMap(); - } - /** - * - * - *
-     * Tags must be in one of the following formats ([KEY]=[VALUE])
-     * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
-     * 2. `{org_id}/{tag_key_name}={tag_value_name}`
-     * 3. `{project_id}/{tag_key_name}={tag_value_name}`
-     * 
- * - * map<string, string> tags = 1; - */ - @java.lang.Override - public /* nullable */ java.lang.String getTagsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetTags().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Tags must be in one of the following formats ([KEY]=[VALUE])
-     * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
-     * 2. `{org_id}/{tag_key_name}={tag_value_name}`
-     * 3. `{project_id}/{tag_key_name}={tag_value_name}`
-     * 
- * - * map<string, string> tags = 1; - */ - @java.lang.Override - public java.lang.String getTagsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetTags().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearTags() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableTags().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Tags must be in one of the following formats ([KEY]=[VALUE])
-     * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
-     * 2. `{org_id}/{tag_key_name}={tag_value_name}`
-     * 3. `{project_id}/{tag_key_name}={tag_value_name}`
-     * 
- * - * map<string, string> tags = 1; - */ - public Builder removeTags(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableTags().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableTags() { - bitField0_ |= 0x00000001; - return internalGetMutableTags().getMutableMap(); - } - /** - * - * - *
-     * Tags must be in one of the following formats ([KEY]=[VALUE])
-     * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
-     * 2. `{org_id}/{tag_key_name}={tag_value_name}`
-     * 3. `{project_id}/{tag_key_name}={tag_value_name}`
-     * 
- * - * map<string, string> tags = 1; - */ - public Builder putTags(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableTags().getMutableMap().put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * - * - *
-     * Tags must be in one of the following formats ([KEY]=[VALUE])
-     * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
-     * 2. `{org_id}/{tag_key_name}={tag_value_name}`
-     * 3. `{project_id}/{tag_key_name}={tag_value_name}`
-     * 
- * - * map<string, string> tags = 1; - */ - public Builder putAllTags(java.util.Map values) { - internalGetMutableTags().getMutableMap().putAll(values); - bitField0_ |= 0x00000001; - 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.ResourceManagerTags) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.ResourceManagerTags) - private static final com.google.container.v1beta1.ResourceManagerTags DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.ResourceManagerTags(); - } - - public static com.google.container.v1beta1.ResourceManagerTags getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceManagerTags parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.ResourceManagerTags getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceManagerTagsOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceManagerTagsOrBuilder.java deleted file mode 100644 index 2a58e75f3adc..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceManagerTagsOrBuilder.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface ResourceManagerTagsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ResourceManagerTags) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Tags must be in one of the following formats ([KEY]=[VALUE])
-   * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
-   * 2. `{org_id}/{tag_key_name}={tag_value_name}`
-   * 3. `{project_id}/{tag_key_name}={tag_value_name}`
-   * 
- * - * map<string, string> tags = 1; - */ - int getTagsCount(); - /** - * - * - *
-   * Tags must be in one of the following formats ([KEY]=[VALUE])
-   * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
-   * 2. `{org_id}/{tag_key_name}={tag_value_name}`
-   * 3. `{project_id}/{tag_key_name}={tag_value_name}`
-   * 
- * - * map<string, string> tags = 1; - */ - boolean containsTags(java.lang.String key); - /** Use {@link #getTagsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getTags(); - /** - * - * - *
-   * Tags must be in one of the following formats ([KEY]=[VALUE])
-   * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
-   * 2. `{org_id}/{tag_key_name}={tag_value_name}`
-   * 3. `{project_id}/{tag_key_name}={tag_value_name}`
-   * 
- * - * map<string, string> tags = 1; - */ - java.util.Map getTagsMap(); - /** - * - * - *
-   * Tags must be in one of the following formats ([KEY]=[VALUE])
-   * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
-   * 2. `{org_id}/{tag_key_name}={tag_value_name}`
-   * 3. `{project_id}/{tag_key_name}={tag_value_name}`
-   * 
- * - * map<string, string> tags = 1; - */ - /* nullable */ - java.lang.String getTagsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * Tags must be in one of the following formats ([KEY]=[VALUE])
-   * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
-   * 2. `{org_id}/{tag_key_name}={tag_value_name}`
-   * 3. `{project_id}/{tag_key_name}={tag_value_name}`
-   * 
- * - * map<string, string> tags = 1; - */ - java.lang.String getTagsOrThrow(java.lang.String key); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceUsageExportConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceUsageExportConfig.java deleted file mode 100644 index 20dac4c07a23..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceUsageExportConfig.java +++ /dev/null @@ -1,2437 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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(); - } - - 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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, datasetId_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, datasetId_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.datasetId_ = datasetId_; - } - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - datasetId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * The ID of a BigQuery Dataset.
-       * 
- * - * string dataset_id = 1; - * - * @return This builder for chaining. - */ - public Builder clearDatasetId() { - datasetId_ = getDefaultInstance().getDatasetId(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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(); - } - - 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_ = false; - /** - * - * - *
-     * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 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_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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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() { - bitField0_ = (bitField0_ & ~0x00000001); - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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; - } - } - - private int bitField0_; - 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 ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * 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 bigqueryDestination_ == null - ? com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination - .getDefaultInstance() - : bigqueryDestination_; - } - - public static final int ENABLE_NETWORK_EGRESS_METERING_FIELD_NUMBER = 2; - private boolean enableNetworkEgressMetering_ = false; - /** - * - * - *
-   * 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 ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * 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 consumptionMeteringConfig_ == null - ? com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig - .getDefaultInstance() - : consumptionMeteringConfig_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getBigqueryDestination()); - } - if (enableNetworkEgressMetering_ != false) { - output.writeBool(2, enableNetworkEgressMetering_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(3, getConsumptionMeteringConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBigqueryDestination()); - } - if (enableNetworkEgressMetering_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableNetworkEgressMetering_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, getConsumptionMeteringConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { - getBigqueryDestinationFieldBuilder(); - getConsumptionMeteringConfigFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - bigqueryDestination_ = null; - if (bigqueryDestinationBuilder_ != null) { - bigqueryDestinationBuilder_.dispose(); - bigqueryDestinationBuilder_ = null; - } - enableNetworkEgressMetering_ = false; - consumptionMeteringConfig_ = null; - if (consumptionMeteringConfigBuilder_ != null) { - consumptionMeteringConfigBuilder_.dispose(); - 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 (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.ResourceUsageExportConfig result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.bigqueryDestination_ = - bigqueryDestinationBuilder_ == null - ? bigqueryDestination_ - : bigqueryDestinationBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.enableNetworkEgressMetering_ = enableNetworkEgressMetering_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.consumptionMeteringConfig_ = - consumptionMeteringConfigBuilder_ == null - ? consumptionMeteringConfig_ - : consumptionMeteringConfigBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage( - getBigqueryDestinationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - enableNetworkEgressMetering_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - input.readMessage( - getConsumptionMeteringConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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 ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * 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; - } else { - bigqueryDestinationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - 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(); - } else { - bigqueryDestinationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - 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 (((bitField0_ & 0x00000001) != 0) - && bigqueryDestination_ != null - && bigqueryDestination_ - != com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination - .getDefaultInstance()) { - getBigqueryDestinationBuilder().mergeFrom(value); - } else { - bigqueryDestination_ = value; - } - } else { - bigqueryDestinationBuilder_.mergeFrom(value); - } - if (bigqueryDestination_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration to use BigQuery as usage export destination.
-     * 
- * - * - * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * - */ - public Builder clearBigqueryDestination() { - bitField0_ = (bitField0_ & ~0x00000001); - bigqueryDestination_ = null; - if (bigqueryDestinationBuilder_ != null) { - bigqueryDestinationBuilder_.dispose(); - bigqueryDestinationBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000001; - 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; - bitField0_ |= 0x00000002; - 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() { - bitField0_ = (bitField0_ & ~0x00000002); - 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 ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * 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; - } else { - consumptionMeteringConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - 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(); - } else { - consumptionMeteringConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - 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 (((bitField0_ & 0x00000004) != 0) - && consumptionMeteringConfig_ != null - && consumptionMeteringConfig_ - != com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig - .getDefaultInstance()) { - getConsumptionMeteringConfigBuilder().mergeFrom(value); - } else { - consumptionMeteringConfig_ = value; - } - } else { - consumptionMeteringConfigBuilder_.mergeFrom(value); - } - if (consumptionMeteringConfig_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Configuration to enable resource consumption metering.
-     * 
- * - * - * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * - */ - public Builder clearConsumptionMeteringConfig() { - bitField0_ = (bitField0_ & ~0x00000004); - consumptionMeteringConfig_ = null; - if (consumptionMeteringConfigBuilder_ != null) { - consumptionMeteringConfigBuilder_.dispose(); - consumptionMeteringConfigBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000004; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceUsageExportConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceUsageExportConfigOrBuilder.java deleted file mode 100644 index 8861600ccdf2..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceUsageExportConfigOrBuilder.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequest.java deleted file mode 100644 index eedd11a7e318..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequest.java +++ /dev/null @@ -1,1624 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4306 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4306 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4313 - * @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]; - * - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4313 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4317 - * @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]; - * - * - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4317 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4322 - * @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]; - * - * - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4322 - * @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; - - @SuppressWarnings("serial") - 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; - } - } - - public static final int RESPECT_PDB_FIELD_NUMBER = 7; - private boolean respectPdb_ = false; - /** - * - * - *
-   * Option for rollback to ignore the PodDisruptionBudget.
-   * Default value is false.
-   * 
- * - * bool respect_pdb = 7; - * - * @return The respectPdb. - */ - @java.lang.Override - public boolean getRespectPdb() { - return respectPdb_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); - } - if (respectPdb_ != false) { - output.writeBool(7, respectPdb_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); - } - if (respectPdb_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, respectPdb_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (getRespectPdb() != other.getRespectPdb()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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 = (37 * hash) + RESPECT_PDB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRespectPdb()); - hash = (29 * hash) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - nodePoolId_ = ""; - name_ = ""; - respectPdb_ = false; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.RollbackNodePoolUpgradeRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.nodePoolId_ = nodePoolId_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.respectPdb_ = respectPdb_; - } - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getNodePoolId().isEmpty()) { - nodePoolId_ = other.nodePoolId_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (other.getRespectPdb() != false) { - setRespectPdb(other.getRespectPdb()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - nodePoolId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 50: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - case 56: - { - respectPdb_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 56 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4306 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4306 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4306 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4306 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4306 - * @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; - bitField0_ |= 0x00000001; - 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]; - * - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4313 - * @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]; - * - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4313 - * @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]; - * - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4313 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4313 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - 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]; - * - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4313 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4317 - * @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]; - * - * - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4317 - * @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]; - * - * - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4317 - * @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; - bitField0_ |= 0x00000004; - 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]; - * - * - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4317 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - 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]; - * - * - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4317 - * @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; - bitField0_ |= 0x00000004; - 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]; - * - * - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4322 - * @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]; - * - * - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4322 - * @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]; - * - * - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4322 - * @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; - bitField0_ |= 0x00000008; - 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]; - * - * - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4322 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearNodePoolId() { - nodePoolId_ = getDefaultInstance().getNodePoolId(); - bitField0_ = (bitField0_ & ~0x00000008); - 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]; - * - * - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4322 - * @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; - bitField0_ |= 0x00000008; - 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; - bitField0_ |= 0x00000010; - 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(); - bitField0_ = (bitField0_ & ~0x00000010); - 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; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private boolean respectPdb_; - /** - * - * - *
-     * Option for rollback to ignore the PodDisruptionBudget.
-     * Default value is false.
-     * 
- * - * bool respect_pdb = 7; - * - * @return The respectPdb. - */ - @java.lang.Override - public boolean getRespectPdb() { - return respectPdb_; - } - /** - * - * - *
-     * Option for rollback to ignore the PodDisruptionBudget.
-     * Default value is false.
-     * 
- * - * bool respect_pdb = 7; - * - * @param value The respectPdb to set. - * @return This builder for chaining. - */ - public Builder setRespectPdb(boolean value) { - - respectPdb_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * Option for rollback to ignore the PodDisruptionBudget.
-     * Default value is false.
-     * 
- * - * bool respect_pdb = 7; - * - * @return This builder for chaining. - */ - public Builder clearRespectPdb() { - bitField0_ = (bitField0_ & ~0x00000020); - respectPdb_ = 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.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequestOrBuilder.java deleted file mode 100644 index beacefadba4c..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequestOrBuilder.java +++ /dev/null @@ -1,213 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4306 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4306 - * @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]; - * - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4313 - * @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]; - * - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4313 - * @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]; - * - * - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4317 - * @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]; - * - * - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4317 - * @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]; - * - * - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4322 - * @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]; - * - * - * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4322 - * @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(); - - /** - * - * - *
-   * Option for rollback to ignore the PodDisruptionBudget.
-   * Default value is false.
-   * 
- * - * bool respect_pdb = 7; - * - * @return The respectPdb. - */ - boolean getRespectPdb(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SandboxConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SandboxConfig.java deleted file mode 100644 index 1d19500b1ef0..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SandboxConfig.java +++ /dev/null @@ -1,928 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object sandboxType_ = ""; - /** - * - * - *
-   * Type of the sandbox to use for the node (e.g. 'gvisor')
-   * 
- * - * string sandbox_type = 1 [deprecated = true]; - * - * @deprecated google.container.v1beta1.SandboxConfig.sandbox_type is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1004 - * @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]; - * - * @deprecated google.container.v1beta1.SandboxConfig.sandbox_type is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1004 - * @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_ = 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; - * - * @return The type. - */ - @java.lang.Override - public com.google.container.v1beta1.SandboxConfig.Type getType() { - com.google.container.v1beta1.SandboxConfig.Type result = - com.google.container.v1beta1.SandboxConfig.Type.forNumber(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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sandboxType_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sandboxType_); - } - if (type_ != com.google.container.v1beta1.SandboxConfig.Type.UNSPECIFIED.getNumber()) { - output.writeEnum(2, type_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sandboxType_)) { - 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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.SandboxConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.sandboxType_ = sandboxType_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.type_ = type_; - } - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - sandboxType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - type_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object sandboxType_ = ""; - /** - * - * - *
-     * Type of the sandbox to use for the node (e.g. 'gvisor')
-     * 
- * - * string sandbox_type = 1 [deprecated = true]; - * - * @deprecated google.container.v1beta1.SandboxConfig.sandbox_type is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1004 - * @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]; - * - * @deprecated google.container.v1beta1.SandboxConfig.sandbox_type is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1004 - * @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]; - * - * @deprecated google.container.v1beta1.SandboxConfig.sandbox_type is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1004 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Type of the sandbox to use for the node (e.g. 'gvisor')
-     * 
- * - * string sandbox_type = 1 [deprecated = true]; - * - * @deprecated google.container.v1beta1.SandboxConfig.sandbox_type is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1004 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearSandboxType() { - sandboxType_ = getDefaultInstance().getSandboxType(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Type of the sandbox to use for the node (e.g. 'gvisor')
-     * 
- * - * string sandbox_type = 1 [deprecated = true]; - * - * @deprecated google.container.v1beta1.SandboxConfig.sandbox_type is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1004 - * @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; - bitField0_ |= 0x00000001; - 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; - bitField0_ |= 0x00000002; - 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() { - com.google.container.v1beta1.SandboxConfig.Type result = - com.google.container.v1beta1.SandboxConfig.Type.forNumber(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(); - } - bitField0_ |= 0x00000002; - 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() { - bitField0_ = (bitField0_ & ~0x00000002); - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SandboxConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SandboxConfigOrBuilder.java deleted file mode 100644 index d8b90d7ab924..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SandboxConfigOrBuilder.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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]; - * - * @deprecated google.container.v1beta1.SandboxConfig.sandbox_type is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1004 - * @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]; - * - * @deprecated google.container.v1beta1.SandboxConfig.sandbox_type is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=1004 - * @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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SecurityBulletinEvent.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SecurityBulletinEvent.java deleted file mode 100644 index 5736009e187a..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SecurityBulletinEvent.java +++ /dev/null @@ -1,2517 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * SecurityBulletinEvent is a notification sent to customers when a security
- * bulletin has been posted that they are vulnerable to.
- * 
- * - * Protobuf type {@code google.container.v1beta1.SecurityBulletinEvent} - */ -public final class SecurityBulletinEvent extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.SecurityBulletinEvent) - SecurityBulletinEventOrBuilder { - private static final long serialVersionUID = 0L; - // Use SecurityBulletinEvent.newBuilder() to construct. - private SecurityBulletinEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SecurityBulletinEvent() { - resourceTypeAffected_ = ""; - bulletinId_ = ""; - cveIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - severity_ = ""; - bulletinUri_ = ""; - briefDescription_ = ""; - affectedSupportedMinors_ = com.google.protobuf.LazyStringArrayList.emptyList(); - patchedVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - suggestedUpgradeTarget_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SecurityBulletinEvent(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_SecurityBulletinEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_SecurityBulletinEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.SecurityBulletinEvent.class, - com.google.container.v1beta1.SecurityBulletinEvent.Builder.class); - } - - public static final int RESOURCE_TYPE_AFFECTED_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object resourceTypeAffected_ = ""; - /** - * - * - *
-   * The resource type (node/control plane) that has the vulnerability. Multiple
-   * notifications (1 notification per resource type) will be sent for a
-   * vulnerability that affects > 1 resource type.
-   * 
- * - * string resource_type_affected = 1; - * - * @return The resourceTypeAffected. - */ - @java.lang.Override - public java.lang.String getResourceTypeAffected() { - java.lang.Object ref = resourceTypeAffected_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resourceTypeAffected_ = s; - return s; - } - } - /** - * - * - *
-   * The resource type (node/control plane) that has the vulnerability. Multiple
-   * notifications (1 notification per resource type) will be sent for a
-   * vulnerability that affects > 1 resource type.
-   * 
- * - * string resource_type_affected = 1; - * - * @return The bytes for resourceTypeAffected. - */ - @java.lang.Override - public com.google.protobuf.ByteString getResourceTypeAffectedBytes() { - java.lang.Object ref = resourceTypeAffected_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - resourceTypeAffected_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BULLETIN_ID_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object bulletinId_ = ""; - /** - * - * - *
-   * The ID of the bulletin corresponding to the vulnerability.
-   * 
- * - * string bulletin_id = 2; - * - * @return The bulletinId. - */ - @java.lang.Override - public java.lang.String getBulletinId() { - java.lang.Object ref = bulletinId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bulletinId_ = s; - return s; - } - } - /** - * - * - *
-   * The ID of the bulletin corresponding to the vulnerability.
-   * 
- * - * string bulletin_id = 2; - * - * @return The bytes for bulletinId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBulletinIdBytes() { - java.lang.Object ref = bulletinId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - bulletinId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CVE_IDS_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList cveIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * The CVEs associated with this bulletin.
-   * 
- * - * repeated string cve_ids = 3; - * - * @return A list containing the cveIds. - */ - public com.google.protobuf.ProtocolStringList getCveIdsList() { - return cveIds_; - } - /** - * - * - *
-   * The CVEs associated with this bulletin.
-   * 
- * - * repeated string cve_ids = 3; - * - * @return The count of cveIds. - */ - public int getCveIdsCount() { - return cveIds_.size(); - } - /** - * - * - *
-   * The CVEs associated with this bulletin.
-   * 
- * - * repeated string cve_ids = 3; - * - * @param index The index of the element to return. - * @return The cveIds at the given index. - */ - public java.lang.String getCveIds(int index) { - return cveIds_.get(index); - } - /** - * - * - *
-   * The CVEs associated with this bulletin.
-   * 
- * - * repeated string cve_ids = 3; - * - * @param index The index of the value to return. - * @return The bytes of the cveIds at the given index. - */ - public com.google.protobuf.ByteString getCveIdsBytes(int index) { - return cveIds_.getByteString(index); - } - - public static final int SEVERITY_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private volatile java.lang.Object severity_ = ""; - /** - * - * - *
-   * The severity of this bulletin as it relates to GKE.
-   * 
- * - * string severity = 4; - * - * @return The severity. - */ - @java.lang.Override - public java.lang.String getSeverity() { - java.lang.Object ref = severity_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - severity_ = s; - return s; - } - } - /** - * - * - *
-   * The severity of this bulletin as it relates to GKE.
-   * 
- * - * string severity = 4; - * - * @return The bytes for severity. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSeverityBytes() { - java.lang.Object ref = severity_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - severity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BULLETIN_URI_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - private volatile java.lang.Object bulletinUri_ = ""; - /** - * - * - *
-   * The URI link to the bulletin on the website for more information.
-   * 
- * - * string bulletin_uri = 5; - * - * @return The bulletinUri. - */ - @java.lang.Override - public java.lang.String getBulletinUri() { - java.lang.Object ref = bulletinUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bulletinUri_ = s; - return s; - } - } - /** - * - * - *
-   * The URI link to the bulletin on the website for more information.
-   * 
- * - * string bulletin_uri = 5; - * - * @return The bytes for bulletinUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBulletinUriBytes() { - java.lang.Object ref = bulletinUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - bulletinUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BRIEF_DESCRIPTION_FIELD_NUMBER = 6; - - @SuppressWarnings("serial") - private volatile java.lang.Object briefDescription_ = ""; - /** - * - * - *
-   * A brief description of the bulletin. See the bulletin pointed to by the
-   * bulletin_uri field for an expanded description.
-   * 
- * - * string brief_description = 6; - * - * @return The briefDescription. - */ - @java.lang.Override - public java.lang.String getBriefDescription() { - java.lang.Object ref = briefDescription_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - briefDescription_ = s; - return s; - } - } - /** - * - * - *
-   * A brief description of the bulletin. See the bulletin pointed to by the
-   * bulletin_uri field for an expanded description.
-   * 
- * - * string brief_description = 6; - * - * @return The bytes for briefDescription. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBriefDescriptionBytes() { - java.lang.Object ref = briefDescription_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - briefDescription_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AFFECTED_SUPPORTED_MINORS_FIELD_NUMBER = 7; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList affectedSupportedMinors_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * The GKE minor versions affected by this vulnerability.
-   * 
- * - * repeated string affected_supported_minors = 7; - * - * @return A list containing the affectedSupportedMinors. - */ - public com.google.protobuf.ProtocolStringList getAffectedSupportedMinorsList() { - return affectedSupportedMinors_; - } - /** - * - * - *
-   * The GKE minor versions affected by this vulnerability.
-   * 
- * - * repeated string affected_supported_minors = 7; - * - * @return The count of affectedSupportedMinors. - */ - public int getAffectedSupportedMinorsCount() { - return affectedSupportedMinors_.size(); - } - /** - * - * - *
-   * The GKE minor versions affected by this vulnerability.
-   * 
- * - * repeated string affected_supported_minors = 7; - * - * @param index The index of the element to return. - * @return The affectedSupportedMinors at the given index. - */ - public java.lang.String getAffectedSupportedMinors(int index) { - return affectedSupportedMinors_.get(index); - } - /** - * - * - *
-   * The GKE minor versions affected by this vulnerability.
-   * 
- * - * repeated string affected_supported_minors = 7; - * - * @param index The index of the value to return. - * @return The bytes of the affectedSupportedMinors at the given index. - */ - public com.google.protobuf.ByteString getAffectedSupportedMinorsBytes(int index) { - return affectedSupportedMinors_.getByteString(index); - } - - public static final int PATCHED_VERSIONS_FIELD_NUMBER = 8; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList patchedVersions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * The GKE versions where this vulnerability is patched.
-   * 
- * - * repeated string patched_versions = 8; - * - * @return A list containing the patchedVersions. - */ - public com.google.protobuf.ProtocolStringList getPatchedVersionsList() { - return patchedVersions_; - } - /** - * - * - *
-   * The GKE versions where this vulnerability is patched.
-   * 
- * - * repeated string patched_versions = 8; - * - * @return The count of patchedVersions. - */ - public int getPatchedVersionsCount() { - return patchedVersions_.size(); - } - /** - * - * - *
-   * The GKE versions where this vulnerability is patched.
-   * 
- * - * repeated string patched_versions = 8; - * - * @param index The index of the element to return. - * @return The patchedVersions at the given index. - */ - public java.lang.String getPatchedVersions(int index) { - return patchedVersions_.get(index); - } - /** - * - * - *
-   * The GKE versions where this vulnerability is patched.
-   * 
- * - * repeated string patched_versions = 8; - * - * @param index The index of the value to return. - * @return The bytes of the patchedVersions at the given index. - */ - public com.google.protobuf.ByteString getPatchedVersionsBytes(int index) { - return patchedVersions_.getByteString(index); - } - - public static final int SUGGESTED_UPGRADE_TARGET_FIELD_NUMBER = 9; - - @SuppressWarnings("serial") - private volatile java.lang.Object suggestedUpgradeTarget_ = ""; - /** - * - * - *
-   * This represents a version selected from the patched_versions field that
-   * the cluster receiving this notification should most likely want to upgrade
-   * to based on its current version. Note that if this notification is being
-   * received by a given cluster, it means that this version is currently
-   * available as an upgrade target in that cluster's location.
-   * 
- * - * string suggested_upgrade_target = 9; - * - * @return The suggestedUpgradeTarget. - */ - @java.lang.Override - public java.lang.String getSuggestedUpgradeTarget() { - java.lang.Object ref = suggestedUpgradeTarget_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - suggestedUpgradeTarget_ = s; - return s; - } - } - /** - * - * - *
-   * This represents a version selected from the patched_versions field that
-   * the cluster receiving this notification should most likely want to upgrade
-   * to based on its current version. Note that if this notification is being
-   * received by a given cluster, it means that this version is currently
-   * available as an upgrade target in that cluster's location.
-   * 
- * - * string suggested_upgrade_target = 9; - * - * @return The bytes for suggestedUpgradeTarget. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSuggestedUpgradeTargetBytes() { - java.lang.Object ref = suggestedUpgradeTarget_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - suggestedUpgradeTarget_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MANUAL_STEPS_REQUIRED_FIELD_NUMBER = 10; - private boolean manualStepsRequired_ = false; - /** - * - * - *
-   * If this field is specified, it means there are manual steps that the user
-   * must take to make their clusters safe.
-   * 
- * - * bool manual_steps_required = 10; - * - * @return The manualStepsRequired. - */ - @java.lang.Override - public boolean getManualStepsRequired() { - return manualStepsRequired_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceTypeAffected_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceTypeAffected_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bulletinId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bulletinId_); - } - for (int i = 0; i < cveIds_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cveIds_.getRaw(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(severity_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, severity_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bulletinUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, bulletinUri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(briefDescription_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, briefDescription_); - } - for (int i = 0; i < affectedSupportedMinors_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 7, affectedSupportedMinors_.getRaw(i)); - } - for (int i = 0; i < patchedVersions_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, patchedVersions_.getRaw(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(suggestedUpgradeTarget_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, suggestedUpgradeTarget_); - } - if (manualStepsRequired_ != false) { - output.writeBool(10, manualStepsRequired_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceTypeAffected_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceTypeAffected_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bulletinId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, bulletinId_); - } - { - int dataSize = 0; - for (int i = 0; i < cveIds_.size(); i++) { - dataSize += computeStringSizeNoTag(cveIds_.getRaw(i)); - } - size += dataSize; - size += 1 * getCveIdsList().size(); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(severity_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, severity_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bulletinUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, bulletinUri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(briefDescription_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, briefDescription_); - } - { - int dataSize = 0; - for (int i = 0; i < affectedSupportedMinors_.size(); i++) { - dataSize += computeStringSizeNoTag(affectedSupportedMinors_.getRaw(i)); - } - size += dataSize; - size += 1 * getAffectedSupportedMinorsList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < patchedVersions_.size(); i++) { - dataSize += computeStringSizeNoTag(patchedVersions_.getRaw(i)); - } - size += dataSize; - size += 1 * getPatchedVersionsList().size(); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(suggestedUpgradeTarget_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, suggestedUpgradeTarget_); - } - if (manualStepsRequired_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, manualStepsRequired_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1beta1.SecurityBulletinEvent)) { - return super.equals(obj); - } - com.google.container.v1beta1.SecurityBulletinEvent other = - (com.google.container.v1beta1.SecurityBulletinEvent) obj; - - if (!getResourceTypeAffected().equals(other.getResourceTypeAffected())) return false; - if (!getBulletinId().equals(other.getBulletinId())) return false; - if (!getCveIdsList().equals(other.getCveIdsList())) return false; - if (!getSeverity().equals(other.getSeverity())) return false; - if (!getBulletinUri().equals(other.getBulletinUri())) return false; - if (!getBriefDescription().equals(other.getBriefDescription())) return false; - if (!getAffectedSupportedMinorsList().equals(other.getAffectedSupportedMinorsList())) - return false; - if (!getPatchedVersionsList().equals(other.getPatchedVersionsList())) return false; - if (!getSuggestedUpgradeTarget().equals(other.getSuggestedUpgradeTarget())) return false; - if (getManualStepsRequired() != other.getManualStepsRequired()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RESOURCE_TYPE_AFFECTED_FIELD_NUMBER; - hash = (53 * hash) + getResourceTypeAffected().hashCode(); - hash = (37 * hash) + BULLETIN_ID_FIELD_NUMBER; - hash = (53 * hash) + getBulletinId().hashCode(); - if (getCveIdsCount() > 0) { - hash = (37 * hash) + CVE_IDS_FIELD_NUMBER; - hash = (53 * hash) + getCveIdsList().hashCode(); - } - hash = (37 * hash) + SEVERITY_FIELD_NUMBER; - hash = (53 * hash) + getSeverity().hashCode(); - hash = (37 * hash) + BULLETIN_URI_FIELD_NUMBER; - hash = (53 * hash) + getBulletinUri().hashCode(); - hash = (37 * hash) + BRIEF_DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getBriefDescription().hashCode(); - if (getAffectedSupportedMinorsCount() > 0) { - hash = (37 * hash) + AFFECTED_SUPPORTED_MINORS_FIELD_NUMBER; - hash = (53 * hash) + getAffectedSupportedMinorsList().hashCode(); - } - if (getPatchedVersionsCount() > 0) { - hash = (37 * hash) + PATCHED_VERSIONS_FIELD_NUMBER; - hash = (53 * hash) + getPatchedVersionsList().hashCode(); - } - hash = (37 * hash) + SUGGESTED_UPGRADE_TARGET_FIELD_NUMBER; - hash = (53 * hash) + getSuggestedUpgradeTarget().hashCode(); - hash = (37 * hash) + MANUAL_STEPS_REQUIRED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getManualStepsRequired()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.SecurityBulletinEvent parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.SecurityBulletinEvent parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.SecurityBulletinEvent parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.SecurityBulletinEvent parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.SecurityBulletinEvent parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.SecurityBulletinEvent parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.SecurityBulletinEvent parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.SecurityBulletinEvent parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.SecurityBulletinEvent parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.SecurityBulletinEvent parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.SecurityBulletinEvent parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.SecurityBulletinEvent parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1beta1.SecurityBulletinEvent prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * SecurityBulletinEvent is a notification sent to customers when a security
-   * bulletin has been posted that they are vulnerable to.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.SecurityBulletinEvent} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.SecurityBulletinEvent) - com.google.container.v1beta1.SecurityBulletinEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_SecurityBulletinEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_SecurityBulletinEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.SecurityBulletinEvent.class, - com.google.container.v1beta1.SecurityBulletinEvent.Builder.class); - } - - // Construct using com.google.container.v1beta1.SecurityBulletinEvent.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - resourceTypeAffected_ = ""; - bulletinId_ = ""; - cveIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - severity_ = ""; - bulletinUri_ = ""; - briefDescription_ = ""; - affectedSupportedMinors_ = com.google.protobuf.LazyStringArrayList.emptyList(); - patchedVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - suggestedUpgradeTarget_ = ""; - manualStepsRequired_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_SecurityBulletinEvent_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.SecurityBulletinEvent getDefaultInstanceForType() { - return com.google.container.v1beta1.SecurityBulletinEvent.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.SecurityBulletinEvent build() { - com.google.container.v1beta1.SecurityBulletinEvent result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.SecurityBulletinEvent buildPartial() { - com.google.container.v1beta1.SecurityBulletinEvent result = - new com.google.container.v1beta1.SecurityBulletinEvent(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.SecurityBulletinEvent result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.resourceTypeAffected_ = resourceTypeAffected_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.bulletinId_ = bulletinId_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - cveIds_.makeImmutable(); - result.cveIds_ = cveIds_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.severity_ = severity_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.bulletinUri_ = bulletinUri_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.briefDescription_ = briefDescription_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - affectedSupportedMinors_.makeImmutable(); - result.affectedSupportedMinors_ = affectedSupportedMinors_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - patchedVersions_.makeImmutable(); - result.patchedVersions_ = patchedVersions_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.suggestedUpgradeTarget_ = suggestedUpgradeTarget_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.manualStepsRequired_ = manualStepsRequired_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1beta1.SecurityBulletinEvent) { - return mergeFrom((com.google.container.v1beta1.SecurityBulletinEvent) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.SecurityBulletinEvent other) { - if (other == com.google.container.v1beta1.SecurityBulletinEvent.getDefaultInstance()) - return this; - if (!other.getResourceTypeAffected().isEmpty()) { - resourceTypeAffected_ = other.resourceTypeAffected_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getBulletinId().isEmpty()) { - bulletinId_ = other.bulletinId_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.cveIds_.isEmpty()) { - if (cveIds_.isEmpty()) { - cveIds_ = other.cveIds_; - bitField0_ |= 0x00000004; - } else { - ensureCveIdsIsMutable(); - cveIds_.addAll(other.cveIds_); - } - onChanged(); - } - if (!other.getSeverity().isEmpty()) { - severity_ = other.severity_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getBulletinUri().isEmpty()) { - bulletinUri_ = other.bulletinUri_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (!other.getBriefDescription().isEmpty()) { - briefDescription_ = other.briefDescription_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (!other.affectedSupportedMinors_.isEmpty()) { - if (affectedSupportedMinors_.isEmpty()) { - affectedSupportedMinors_ = other.affectedSupportedMinors_; - bitField0_ |= 0x00000040; - } else { - ensureAffectedSupportedMinorsIsMutable(); - affectedSupportedMinors_.addAll(other.affectedSupportedMinors_); - } - onChanged(); - } - if (!other.patchedVersions_.isEmpty()) { - if (patchedVersions_.isEmpty()) { - patchedVersions_ = other.patchedVersions_; - bitField0_ |= 0x00000080; - } else { - ensurePatchedVersionsIsMutable(); - patchedVersions_.addAll(other.patchedVersions_); - } - onChanged(); - } - if (!other.getSuggestedUpgradeTarget().isEmpty()) { - suggestedUpgradeTarget_ = other.suggestedUpgradeTarget_; - bitField0_ |= 0x00000100; - onChanged(); - } - if (other.getManualStepsRequired() != false) { - setManualStepsRequired(other.getManualStepsRequired()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - resourceTypeAffected_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - bulletinId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureCveIdsIsMutable(); - cveIds_.add(s); - break; - } // case 26 - case 34: - { - severity_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - bulletinUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - briefDescription_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureAffectedSupportedMinorsIsMutable(); - affectedSupportedMinors_.add(s); - break; - } // case 58 - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - ensurePatchedVersionsIsMutable(); - patchedVersions_.add(s); - break; - } // case 66 - case 74: - { - suggestedUpgradeTarget_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 74 - case 80: - { - manualStepsRequired_ = input.readBool(); - bitField0_ |= 0x00000200; - break; - } // case 80 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object resourceTypeAffected_ = ""; - /** - * - * - *
-     * The resource type (node/control plane) that has the vulnerability. Multiple
-     * notifications (1 notification per resource type) will be sent for a
-     * vulnerability that affects > 1 resource type.
-     * 
- * - * string resource_type_affected = 1; - * - * @return The resourceTypeAffected. - */ - public java.lang.String getResourceTypeAffected() { - java.lang.Object ref = resourceTypeAffected_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resourceTypeAffected_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The resource type (node/control plane) that has the vulnerability. Multiple
-     * notifications (1 notification per resource type) will be sent for a
-     * vulnerability that affects > 1 resource type.
-     * 
- * - * string resource_type_affected = 1; - * - * @return The bytes for resourceTypeAffected. - */ - public com.google.protobuf.ByteString getResourceTypeAffectedBytes() { - java.lang.Object ref = resourceTypeAffected_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - resourceTypeAffected_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The resource type (node/control plane) that has the vulnerability. Multiple
-     * notifications (1 notification per resource type) will be sent for a
-     * vulnerability that affects > 1 resource type.
-     * 
- * - * string resource_type_affected = 1; - * - * @param value The resourceTypeAffected to set. - * @return This builder for chaining. - */ - public Builder setResourceTypeAffected(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - resourceTypeAffected_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The resource type (node/control plane) that has the vulnerability. Multiple
-     * notifications (1 notification per resource type) will be sent for a
-     * vulnerability that affects > 1 resource type.
-     * 
- * - * string resource_type_affected = 1; - * - * @return This builder for chaining. - */ - public Builder clearResourceTypeAffected() { - resourceTypeAffected_ = getDefaultInstance().getResourceTypeAffected(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * The resource type (node/control plane) that has the vulnerability. Multiple
-     * notifications (1 notification per resource type) will be sent for a
-     * vulnerability that affects > 1 resource type.
-     * 
- * - * string resource_type_affected = 1; - * - * @param value The bytes for resourceTypeAffected to set. - * @return This builder for chaining. - */ - public Builder setResourceTypeAffectedBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - resourceTypeAffected_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object bulletinId_ = ""; - /** - * - * - *
-     * The ID of the bulletin corresponding to the vulnerability.
-     * 
- * - * string bulletin_id = 2; - * - * @return The bulletinId. - */ - public java.lang.String getBulletinId() { - java.lang.Object ref = bulletinId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bulletinId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The ID of the bulletin corresponding to the vulnerability.
-     * 
- * - * string bulletin_id = 2; - * - * @return The bytes for bulletinId. - */ - public com.google.protobuf.ByteString getBulletinIdBytes() { - java.lang.Object ref = bulletinId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - bulletinId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The ID of the bulletin corresponding to the vulnerability.
-     * 
- * - * string bulletin_id = 2; - * - * @param value The bulletinId to set. - * @return This builder for chaining. - */ - public Builder setBulletinId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bulletinId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * The ID of the bulletin corresponding to the vulnerability.
-     * 
- * - * string bulletin_id = 2; - * - * @return This builder for chaining. - */ - public Builder clearBulletinId() { - bulletinId_ = getDefaultInstance().getBulletinId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * The ID of the bulletin corresponding to the vulnerability.
-     * 
- * - * string bulletin_id = 2; - * - * @param value The bytes for bulletinId to set. - * @return This builder for chaining. - */ - public Builder setBulletinIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - bulletinId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList cveIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureCveIdsIsMutable() { - if (!cveIds_.isModifiable()) { - cveIds_ = new com.google.protobuf.LazyStringArrayList(cveIds_); - } - bitField0_ |= 0x00000004; - } - /** - * - * - *
-     * The CVEs associated with this bulletin.
-     * 
- * - * repeated string cve_ids = 3; - * - * @return A list containing the cveIds. - */ - public com.google.protobuf.ProtocolStringList getCveIdsList() { - cveIds_.makeImmutable(); - return cveIds_; - } - /** - * - * - *
-     * The CVEs associated with this bulletin.
-     * 
- * - * repeated string cve_ids = 3; - * - * @return The count of cveIds. - */ - public int getCveIdsCount() { - return cveIds_.size(); - } - /** - * - * - *
-     * The CVEs associated with this bulletin.
-     * 
- * - * repeated string cve_ids = 3; - * - * @param index The index of the element to return. - * @return The cveIds at the given index. - */ - public java.lang.String getCveIds(int index) { - return cveIds_.get(index); - } - /** - * - * - *
-     * The CVEs associated with this bulletin.
-     * 
- * - * repeated string cve_ids = 3; - * - * @param index The index of the value to return. - * @return The bytes of the cveIds at the given index. - */ - public com.google.protobuf.ByteString getCveIdsBytes(int index) { - return cveIds_.getByteString(index); - } - /** - * - * - *
-     * The CVEs associated with this bulletin.
-     * 
- * - * repeated string cve_ids = 3; - * - * @param index The index to set the value at. - * @param value The cveIds to set. - * @return This builder for chaining. - */ - public Builder setCveIds(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureCveIdsIsMutable(); - cveIds_.set(index, value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The CVEs associated with this bulletin.
-     * 
- * - * repeated string cve_ids = 3; - * - * @param value The cveIds to add. - * @return This builder for chaining. - */ - public Builder addCveIds(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureCveIdsIsMutable(); - cveIds_.add(value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The CVEs associated with this bulletin.
-     * 
- * - * repeated string cve_ids = 3; - * - * @param values The cveIds to add. - * @return This builder for chaining. - */ - public Builder addAllCveIds(java.lang.Iterable values) { - ensureCveIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cveIds_); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The CVEs associated with this bulletin.
-     * 
- * - * repeated string cve_ids = 3; - * - * @return This builder for chaining. - */ - public Builder clearCveIds() { - cveIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; - onChanged(); - return this; - } - /** - * - * - *
-     * The CVEs associated with this bulletin.
-     * 
- * - * repeated string cve_ids = 3; - * - * @param value The bytes of the cveIds to add. - * @return This builder for chaining. - */ - public Builder addCveIdsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureCveIdsIsMutable(); - cveIds_.add(value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object severity_ = ""; - /** - * - * - *
-     * The severity of this bulletin as it relates to GKE.
-     * 
- * - * string severity = 4; - * - * @return The severity. - */ - public java.lang.String getSeverity() { - java.lang.Object ref = severity_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - severity_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The severity of this bulletin as it relates to GKE.
-     * 
- * - * string severity = 4; - * - * @return The bytes for severity. - */ - public com.google.protobuf.ByteString getSeverityBytes() { - java.lang.Object ref = severity_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - severity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The severity of this bulletin as it relates to GKE.
-     * 
- * - * string severity = 4; - * - * @param value The severity to set. - * @return This builder for chaining. - */ - public Builder setSeverity(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - severity_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * The severity of this bulletin as it relates to GKE.
-     * 
- * - * string severity = 4; - * - * @return This builder for chaining. - */ - public Builder clearSeverity() { - severity_ = getDefaultInstance().getSeverity(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * The severity of this bulletin as it relates to GKE.
-     * 
- * - * string severity = 4; - * - * @param value The bytes for severity to set. - * @return This builder for chaining. - */ - public Builder setSeverityBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - severity_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private java.lang.Object bulletinUri_ = ""; - /** - * - * - *
-     * The URI link to the bulletin on the website for more information.
-     * 
- * - * string bulletin_uri = 5; - * - * @return The bulletinUri. - */ - public java.lang.String getBulletinUri() { - java.lang.Object ref = bulletinUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bulletinUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The URI link to the bulletin on the website for more information.
-     * 
- * - * string bulletin_uri = 5; - * - * @return The bytes for bulletinUri. - */ - public com.google.protobuf.ByteString getBulletinUriBytes() { - java.lang.Object ref = bulletinUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - bulletinUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The URI link to the bulletin on the website for more information.
-     * 
- * - * string bulletin_uri = 5; - * - * @param value The bulletinUri to set. - * @return This builder for chaining. - */ - public Builder setBulletinUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bulletinUri_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * The URI link to the bulletin on the website for more information.
-     * 
- * - * string bulletin_uri = 5; - * - * @return This builder for chaining. - */ - public Builder clearBulletinUri() { - bulletinUri_ = getDefaultInstance().getBulletinUri(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * - * - *
-     * The URI link to the bulletin on the website for more information.
-     * 
- * - * string bulletin_uri = 5; - * - * @param value The bytes for bulletinUri to set. - * @return This builder for chaining. - */ - public Builder setBulletinUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - bulletinUri_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private java.lang.Object briefDescription_ = ""; - /** - * - * - *
-     * A brief description of the bulletin. See the bulletin pointed to by the
-     * bulletin_uri field for an expanded description.
-     * 
- * - * string brief_description = 6; - * - * @return The briefDescription. - */ - public java.lang.String getBriefDescription() { - java.lang.Object ref = briefDescription_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - briefDescription_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A brief description of the bulletin. See the bulletin pointed to by the
-     * bulletin_uri field for an expanded description.
-     * 
- * - * string brief_description = 6; - * - * @return The bytes for briefDescription. - */ - public com.google.protobuf.ByteString getBriefDescriptionBytes() { - java.lang.Object ref = briefDescription_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - briefDescription_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A brief description of the bulletin. See the bulletin pointed to by the
-     * bulletin_uri field for an expanded description.
-     * 
- * - * string brief_description = 6; - * - * @param value The briefDescription to set. - * @return This builder for chaining. - */ - public Builder setBriefDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - briefDescription_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * A brief description of the bulletin. See the bulletin pointed to by the
-     * bulletin_uri field for an expanded description.
-     * 
- * - * string brief_description = 6; - * - * @return This builder for chaining. - */ - public Builder clearBriefDescription() { - briefDescription_ = getDefaultInstance().getBriefDescription(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - /** - * - * - *
-     * A brief description of the bulletin. See the bulletin pointed to by the
-     * bulletin_uri field for an expanded description.
-     * 
- * - * string brief_description = 6; - * - * @param value The bytes for briefDescription to set. - * @return This builder for chaining. - */ - public Builder setBriefDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - briefDescription_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList affectedSupportedMinors_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureAffectedSupportedMinorsIsMutable() { - if (!affectedSupportedMinors_.isModifiable()) { - affectedSupportedMinors_ = - new com.google.protobuf.LazyStringArrayList(affectedSupportedMinors_); - } - bitField0_ |= 0x00000040; - } - /** - * - * - *
-     * The GKE minor versions affected by this vulnerability.
-     * 
- * - * repeated string affected_supported_minors = 7; - * - * @return A list containing the affectedSupportedMinors. - */ - public com.google.protobuf.ProtocolStringList getAffectedSupportedMinorsList() { - affectedSupportedMinors_.makeImmutable(); - return affectedSupportedMinors_; - } - /** - * - * - *
-     * The GKE minor versions affected by this vulnerability.
-     * 
- * - * repeated string affected_supported_minors = 7; - * - * @return The count of affectedSupportedMinors. - */ - public int getAffectedSupportedMinorsCount() { - return affectedSupportedMinors_.size(); - } - /** - * - * - *
-     * The GKE minor versions affected by this vulnerability.
-     * 
- * - * repeated string affected_supported_minors = 7; - * - * @param index The index of the element to return. - * @return The affectedSupportedMinors at the given index. - */ - public java.lang.String getAffectedSupportedMinors(int index) { - return affectedSupportedMinors_.get(index); - } - /** - * - * - *
-     * The GKE minor versions affected by this vulnerability.
-     * 
- * - * repeated string affected_supported_minors = 7; - * - * @param index The index of the value to return. - * @return The bytes of the affectedSupportedMinors at the given index. - */ - public com.google.protobuf.ByteString getAffectedSupportedMinorsBytes(int index) { - return affectedSupportedMinors_.getByteString(index); - } - /** - * - * - *
-     * The GKE minor versions affected by this vulnerability.
-     * 
- * - * repeated string affected_supported_minors = 7; - * - * @param index The index to set the value at. - * @param value The affectedSupportedMinors to set. - * @return This builder for chaining. - */ - public Builder setAffectedSupportedMinors(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAffectedSupportedMinorsIsMutable(); - affectedSupportedMinors_.set(index, value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-     * The GKE minor versions affected by this vulnerability.
-     * 
- * - * repeated string affected_supported_minors = 7; - * - * @param value The affectedSupportedMinors to add. - * @return This builder for chaining. - */ - public Builder addAffectedSupportedMinors(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAffectedSupportedMinorsIsMutable(); - affectedSupportedMinors_.add(value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-     * The GKE minor versions affected by this vulnerability.
-     * 
- * - * repeated string affected_supported_minors = 7; - * - * @param values The affectedSupportedMinors to add. - * @return This builder for chaining. - */ - public Builder addAllAffectedSupportedMinors(java.lang.Iterable values) { - ensureAffectedSupportedMinorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, affectedSupportedMinors_); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-     * The GKE minor versions affected by this vulnerability.
-     * 
- * - * repeated string affected_supported_minors = 7; - * - * @return This builder for chaining. - */ - public Builder clearAffectedSupportedMinors() { - affectedSupportedMinors_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - ; - onChanged(); - return this; - } - /** - * - * - *
-     * The GKE minor versions affected by this vulnerability.
-     * 
- * - * repeated string affected_supported_minors = 7; - * - * @param value The bytes of the affectedSupportedMinors to add. - * @return This builder for chaining. - */ - public Builder addAffectedSupportedMinorsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureAffectedSupportedMinorsIsMutable(); - affectedSupportedMinors_.add(value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList patchedVersions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensurePatchedVersionsIsMutable() { - if (!patchedVersions_.isModifiable()) { - patchedVersions_ = new com.google.protobuf.LazyStringArrayList(patchedVersions_); - } - bitField0_ |= 0x00000080; - } - /** - * - * - *
-     * The GKE versions where this vulnerability is patched.
-     * 
- * - * repeated string patched_versions = 8; - * - * @return A list containing the patchedVersions. - */ - public com.google.protobuf.ProtocolStringList getPatchedVersionsList() { - patchedVersions_.makeImmutable(); - return patchedVersions_; - } - /** - * - * - *
-     * The GKE versions where this vulnerability is patched.
-     * 
- * - * repeated string patched_versions = 8; - * - * @return The count of patchedVersions. - */ - public int getPatchedVersionsCount() { - return patchedVersions_.size(); - } - /** - * - * - *
-     * The GKE versions where this vulnerability is patched.
-     * 
- * - * repeated string patched_versions = 8; - * - * @param index The index of the element to return. - * @return The patchedVersions at the given index. - */ - public java.lang.String getPatchedVersions(int index) { - return patchedVersions_.get(index); - } - /** - * - * - *
-     * The GKE versions where this vulnerability is patched.
-     * 
- * - * repeated string patched_versions = 8; - * - * @param index The index of the value to return. - * @return The bytes of the patchedVersions at the given index. - */ - public com.google.protobuf.ByteString getPatchedVersionsBytes(int index) { - return patchedVersions_.getByteString(index); - } - /** - * - * - *
-     * The GKE versions where this vulnerability is patched.
-     * 
- * - * repeated string patched_versions = 8; - * - * @param index The index to set the value at. - * @param value The patchedVersions to set. - * @return This builder for chaining. - */ - public Builder setPatchedVersions(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePatchedVersionsIsMutable(); - patchedVersions_.set(index, value); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * The GKE versions where this vulnerability is patched.
-     * 
- * - * repeated string patched_versions = 8; - * - * @param value The patchedVersions to add. - * @return This builder for chaining. - */ - public Builder addPatchedVersions(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePatchedVersionsIsMutable(); - patchedVersions_.add(value); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * The GKE versions where this vulnerability is patched.
-     * 
- * - * repeated string patched_versions = 8; - * - * @param values The patchedVersions to add. - * @return This builder for chaining. - */ - public Builder addAllPatchedVersions(java.lang.Iterable values) { - ensurePatchedVersionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, patchedVersions_); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * The GKE versions where this vulnerability is patched.
-     * 
- * - * repeated string patched_versions = 8; - * - * @return This builder for chaining. - */ - public Builder clearPatchedVersions() { - patchedVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - ; - onChanged(); - return this; - } - /** - * - * - *
-     * The GKE versions where this vulnerability is patched.
-     * 
- * - * repeated string patched_versions = 8; - * - * @param value The bytes of the patchedVersions to add. - * @return This builder for chaining. - */ - public Builder addPatchedVersionsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensurePatchedVersionsIsMutable(); - patchedVersions_.add(value); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - - private java.lang.Object suggestedUpgradeTarget_ = ""; - /** - * - * - *
-     * This represents a version selected from the patched_versions field that
-     * the cluster receiving this notification should most likely want to upgrade
-     * to based on its current version. Note that if this notification is being
-     * received by a given cluster, it means that this version is currently
-     * available as an upgrade target in that cluster's location.
-     * 
- * - * string suggested_upgrade_target = 9; - * - * @return The suggestedUpgradeTarget. - */ - public java.lang.String getSuggestedUpgradeTarget() { - java.lang.Object ref = suggestedUpgradeTarget_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - suggestedUpgradeTarget_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * This represents a version selected from the patched_versions field that
-     * the cluster receiving this notification should most likely want to upgrade
-     * to based on its current version. Note that if this notification is being
-     * received by a given cluster, it means that this version is currently
-     * available as an upgrade target in that cluster's location.
-     * 
- * - * string suggested_upgrade_target = 9; - * - * @return The bytes for suggestedUpgradeTarget. - */ - public com.google.protobuf.ByteString getSuggestedUpgradeTargetBytes() { - java.lang.Object ref = suggestedUpgradeTarget_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - suggestedUpgradeTarget_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * This represents a version selected from the patched_versions field that
-     * the cluster receiving this notification should most likely want to upgrade
-     * to based on its current version. Note that if this notification is being
-     * received by a given cluster, it means that this version is currently
-     * available as an upgrade target in that cluster's location.
-     * 
- * - * string suggested_upgrade_target = 9; - * - * @param value The suggestedUpgradeTarget to set. - * @return This builder for chaining. - */ - public Builder setSuggestedUpgradeTarget(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - suggestedUpgradeTarget_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * - * - *
-     * This represents a version selected from the patched_versions field that
-     * the cluster receiving this notification should most likely want to upgrade
-     * to based on its current version. Note that if this notification is being
-     * received by a given cluster, it means that this version is currently
-     * available as an upgrade target in that cluster's location.
-     * 
- * - * string suggested_upgrade_target = 9; - * - * @return This builder for chaining. - */ - public Builder clearSuggestedUpgradeTarget() { - suggestedUpgradeTarget_ = getDefaultInstance().getSuggestedUpgradeTarget(); - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); - return this; - } - /** - * - * - *
-     * This represents a version selected from the patched_versions field that
-     * the cluster receiving this notification should most likely want to upgrade
-     * to based on its current version. Note that if this notification is being
-     * received by a given cluster, it means that this version is currently
-     * available as an upgrade target in that cluster's location.
-     * 
- * - * string suggested_upgrade_target = 9; - * - * @param value The bytes for suggestedUpgradeTarget to set. - * @return This builder for chaining. - */ - public Builder setSuggestedUpgradeTargetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - suggestedUpgradeTarget_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - - private boolean manualStepsRequired_; - /** - * - * - *
-     * If this field is specified, it means there are manual steps that the user
-     * must take to make their clusters safe.
-     * 
- * - * bool manual_steps_required = 10; - * - * @return The manualStepsRequired. - */ - @java.lang.Override - public boolean getManualStepsRequired() { - return manualStepsRequired_; - } - /** - * - * - *
-     * If this field is specified, it means there are manual steps that the user
-     * must take to make their clusters safe.
-     * 
- * - * bool manual_steps_required = 10; - * - * @param value The manualStepsRequired to set. - * @return This builder for chaining. - */ - public Builder setManualStepsRequired(boolean value) { - - manualStepsRequired_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * - * - *
-     * If this field is specified, it means there are manual steps that the user
-     * must take to make their clusters safe.
-     * 
- * - * bool manual_steps_required = 10; - * - * @return This builder for chaining. - */ - public Builder clearManualStepsRequired() { - bitField0_ = (bitField0_ & ~0x00000200); - manualStepsRequired_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SecurityBulletinEvent) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.SecurityBulletinEvent) - private static final com.google.container.v1beta1.SecurityBulletinEvent DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.SecurityBulletinEvent(); - } - - public static com.google.container.v1beta1.SecurityBulletinEvent getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecurityBulletinEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.container.v1beta1.SecurityBulletinEvent getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SecurityBulletinEventOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SecurityBulletinEventOrBuilder.java deleted file mode 100644 index 2d3523e8f21d..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SecurityBulletinEventOrBuilder.java +++ /dev/null @@ -1,357 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface SecurityBulletinEventOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SecurityBulletinEvent) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The resource type (node/control plane) that has the vulnerability. Multiple
-   * notifications (1 notification per resource type) will be sent for a
-   * vulnerability that affects > 1 resource type.
-   * 
- * - * string resource_type_affected = 1; - * - * @return The resourceTypeAffected. - */ - java.lang.String getResourceTypeAffected(); - /** - * - * - *
-   * The resource type (node/control plane) that has the vulnerability. Multiple
-   * notifications (1 notification per resource type) will be sent for a
-   * vulnerability that affects > 1 resource type.
-   * 
- * - * string resource_type_affected = 1; - * - * @return The bytes for resourceTypeAffected. - */ - com.google.protobuf.ByteString getResourceTypeAffectedBytes(); - - /** - * - * - *
-   * The ID of the bulletin corresponding to the vulnerability.
-   * 
- * - * string bulletin_id = 2; - * - * @return The bulletinId. - */ - java.lang.String getBulletinId(); - /** - * - * - *
-   * The ID of the bulletin corresponding to the vulnerability.
-   * 
- * - * string bulletin_id = 2; - * - * @return The bytes for bulletinId. - */ - com.google.protobuf.ByteString getBulletinIdBytes(); - - /** - * - * - *
-   * The CVEs associated with this bulletin.
-   * 
- * - * repeated string cve_ids = 3; - * - * @return A list containing the cveIds. - */ - java.util.List getCveIdsList(); - /** - * - * - *
-   * The CVEs associated with this bulletin.
-   * 
- * - * repeated string cve_ids = 3; - * - * @return The count of cveIds. - */ - int getCveIdsCount(); - /** - * - * - *
-   * The CVEs associated with this bulletin.
-   * 
- * - * repeated string cve_ids = 3; - * - * @param index The index of the element to return. - * @return The cveIds at the given index. - */ - java.lang.String getCveIds(int index); - /** - * - * - *
-   * The CVEs associated with this bulletin.
-   * 
- * - * repeated string cve_ids = 3; - * - * @param index The index of the value to return. - * @return The bytes of the cveIds at the given index. - */ - com.google.protobuf.ByteString getCveIdsBytes(int index); - - /** - * - * - *
-   * The severity of this bulletin as it relates to GKE.
-   * 
- * - * string severity = 4; - * - * @return The severity. - */ - java.lang.String getSeverity(); - /** - * - * - *
-   * The severity of this bulletin as it relates to GKE.
-   * 
- * - * string severity = 4; - * - * @return The bytes for severity. - */ - com.google.protobuf.ByteString getSeverityBytes(); - - /** - * - * - *
-   * The URI link to the bulletin on the website for more information.
-   * 
- * - * string bulletin_uri = 5; - * - * @return The bulletinUri. - */ - java.lang.String getBulletinUri(); - /** - * - * - *
-   * The URI link to the bulletin on the website for more information.
-   * 
- * - * string bulletin_uri = 5; - * - * @return The bytes for bulletinUri. - */ - com.google.protobuf.ByteString getBulletinUriBytes(); - - /** - * - * - *
-   * A brief description of the bulletin. See the bulletin pointed to by the
-   * bulletin_uri field for an expanded description.
-   * 
- * - * string brief_description = 6; - * - * @return The briefDescription. - */ - java.lang.String getBriefDescription(); - /** - * - * - *
-   * A brief description of the bulletin. See the bulletin pointed to by the
-   * bulletin_uri field for an expanded description.
-   * 
- * - * string brief_description = 6; - * - * @return The bytes for briefDescription. - */ - com.google.protobuf.ByteString getBriefDescriptionBytes(); - - /** - * - * - *
-   * The GKE minor versions affected by this vulnerability.
-   * 
- * - * repeated string affected_supported_minors = 7; - * - * @return A list containing the affectedSupportedMinors. - */ - java.util.List getAffectedSupportedMinorsList(); - /** - * - * - *
-   * The GKE minor versions affected by this vulnerability.
-   * 
- * - * repeated string affected_supported_minors = 7; - * - * @return The count of affectedSupportedMinors. - */ - int getAffectedSupportedMinorsCount(); - /** - * - * - *
-   * The GKE minor versions affected by this vulnerability.
-   * 
- * - * repeated string affected_supported_minors = 7; - * - * @param index The index of the element to return. - * @return The affectedSupportedMinors at the given index. - */ - java.lang.String getAffectedSupportedMinors(int index); - /** - * - * - *
-   * The GKE minor versions affected by this vulnerability.
-   * 
- * - * repeated string affected_supported_minors = 7; - * - * @param index The index of the value to return. - * @return The bytes of the affectedSupportedMinors at the given index. - */ - com.google.protobuf.ByteString getAffectedSupportedMinorsBytes(int index); - - /** - * - * - *
-   * The GKE versions where this vulnerability is patched.
-   * 
- * - * repeated string patched_versions = 8; - * - * @return A list containing the patchedVersions. - */ - java.util.List getPatchedVersionsList(); - /** - * - * - *
-   * The GKE versions where this vulnerability is patched.
-   * 
- * - * repeated string patched_versions = 8; - * - * @return The count of patchedVersions. - */ - int getPatchedVersionsCount(); - /** - * - * - *
-   * The GKE versions where this vulnerability is patched.
-   * 
- * - * repeated string patched_versions = 8; - * - * @param index The index of the element to return. - * @return The patchedVersions at the given index. - */ - java.lang.String getPatchedVersions(int index); - /** - * - * - *
-   * The GKE versions where this vulnerability is patched.
-   * 
- * - * repeated string patched_versions = 8; - * - * @param index The index of the value to return. - * @return The bytes of the patchedVersions at the given index. - */ - com.google.protobuf.ByteString getPatchedVersionsBytes(int index); - - /** - * - * - *
-   * This represents a version selected from the patched_versions field that
-   * the cluster receiving this notification should most likely want to upgrade
-   * to based on its current version. Note that if this notification is being
-   * received by a given cluster, it means that this version is currently
-   * available as an upgrade target in that cluster's location.
-   * 
- * - * string suggested_upgrade_target = 9; - * - * @return The suggestedUpgradeTarget. - */ - java.lang.String getSuggestedUpgradeTarget(); - /** - * - * - *
-   * This represents a version selected from the patched_versions field that
-   * the cluster receiving this notification should most likely want to upgrade
-   * to based on its current version. Note that if this notification is being
-   * received by a given cluster, it means that this version is currently
-   * available as an upgrade target in that cluster's location.
-   * 
- * - * string suggested_upgrade_target = 9; - * - * @return The bytes for suggestedUpgradeTarget. - */ - com.google.protobuf.ByteString getSuggestedUpgradeTargetBytes(); - - /** - * - * - *
-   * If this field is specified, it means there are manual steps that the user
-   * must take to make their clusters safe.
-   * 
- * - * bool manual_steps_required = 10; - * - * @return The manualStepsRequired. - */ - boolean getManualStepsRequired(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SecurityPostureConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SecurityPostureConfig.java deleted file mode 100644 index 5301ebf265da..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SecurityPostureConfig.java +++ /dev/null @@ -1,1192 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * SecurityPostureConfig defines the flags needed to enable/disable features for
- * the Security Posture API.
- * 
- * - * Protobuf type {@code google.container.v1beta1.SecurityPostureConfig} - */ -public final class SecurityPostureConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.SecurityPostureConfig) - SecurityPostureConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use SecurityPostureConfig.newBuilder() to construct. - private SecurityPostureConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SecurityPostureConfig() { - mode_ = 0; - vulnerabilityMode_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SecurityPostureConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_SecurityPostureConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_SecurityPostureConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.SecurityPostureConfig.class, - com.google.container.v1beta1.SecurityPostureConfig.Builder.class); - } - - /** - * - * - *
-   * Mode defines enablement mode for GKE Security posture features.
-   * 
- * - * Protobuf enum {@code google.container.v1beta1.SecurityPostureConfig.Mode} - */ - public enum Mode implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value not specified.
-     * 
- * - * MODE_UNSPECIFIED = 0; - */ - MODE_UNSPECIFIED(0), - /** - * - * - *
-     * Disables Security Posture features on the cluster.
-     * 
- * - * DISABLED = 1; - */ - DISABLED(1), - /** - * - * - *
-     * Applies Security Posture features on the cluster.
-     * 
- * - * BASIC = 2; - */ - BASIC(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value not specified.
-     * 
- * - * MODE_UNSPECIFIED = 0; - */ - public static final int MODE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Disables Security Posture features on the cluster.
-     * 
- * - * DISABLED = 1; - */ - public static final int DISABLED_VALUE = 1; - /** - * - * - *
-     * Applies Security Posture features on the cluster.
-     * 
- * - * BASIC = 2; - */ - public static final int BASIC_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 DISABLED; - case 2: - return BASIC; - 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.SecurityPostureConfig.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final Mode[] VALUES = values(); - - public static Mode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Mode(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1beta1.SecurityPostureConfig.Mode) - } - - /** - * - * - *
-   * VulnerabilityMode defines enablement mode for vulnerability scanning.
-   * 
- * - * Protobuf enum {@code google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode} - */ - public enum VulnerabilityMode implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value not specified.
-     * 
- * - * VULNERABILITY_MODE_UNSPECIFIED = 0; - */ - VULNERABILITY_MODE_UNSPECIFIED(0), - /** - * - * - *
-     * Disables vulnerability scanning on the cluster.
-     * 
- * - * VULNERABILITY_DISABLED = 1; - */ - VULNERABILITY_DISABLED(1), - /** - * - * - *
-     * Applies basic vulnerability scanning on the cluster.
-     * 
- * - * VULNERABILITY_BASIC = 2; - */ - VULNERABILITY_BASIC(2), - /** - * - * - *
-     * Applies the Security Posture's vulnerability on cluster Enterprise level
-     * features.
-     * 
- * - * VULNERABILITY_ENTERPRISE = 3; - */ - VULNERABILITY_ENTERPRISE(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value not specified.
-     * 
- * - * VULNERABILITY_MODE_UNSPECIFIED = 0; - */ - public static final int VULNERABILITY_MODE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Disables vulnerability scanning on the cluster.
-     * 
- * - * VULNERABILITY_DISABLED = 1; - */ - public static final int VULNERABILITY_DISABLED_VALUE = 1; - /** - * - * - *
-     * Applies basic vulnerability scanning on the cluster.
-     * 
- * - * VULNERABILITY_BASIC = 2; - */ - public static final int VULNERABILITY_BASIC_VALUE = 2; - /** - * - * - *
-     * Applies the Security Posture's vulnerability on cluster Enterprise level
-     * features.
-     * 
- * - * VULNERABILITY_ENTERPRISE = 3; - */ - public static final int VULNERABILITY_ENTERPRISE_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 VulnerabilityMode 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 VulnerabilityMode forNumber(int value) { - switch (value) { - case 0: - return VULNERABILITY_MODE_UNSPECIFIED; - case 1: - return VULNERABILITY_DISABLED; - case 2: - return VULNERABILITY_BASIC; - case 3: - return VULNERABILITY_ENTERPRISE; - 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 VulnerabilityMode findValueByNumber(int number) { - return VulnerabilityMode.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.SecurityPostureConfig.getDescriptor() - .getEnumTypes() - .get(1); - } - - private static final VulnerabilityMode[] VALUES = values(); - - public static VulnerabilityMode 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 VulnerabilityMode(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode) - } - - private int bitField0_; - public static final int MODE_FIELD_NUMBER = 1; - private int mode_ = 0; - /** - * - * - *
-   * Sets which mode to use for Security Posture features.
-   * 
- * - * optional .google.container.v1beta1.SecurityPostureConfig.Mode mode = 1; - * - * @return Whether the mode field is set. - */ - @java.lang.Override - public boolean hasMode() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Sets which mode to use for Security Posture features.
-   * 
- * - * optional .google.container.v1beta1.SecurityPostureConfig.Mode mode = 1; - * - * @return The enum numeric value on the wire for mode. - */ - @java.lang.Override - public int getModeValue() { - return mode_; - } - /** - * - * - *
-   * Sets which mode to use for Security Posture features.
-   * 
- * - * optional .google.container.v1beta1.SecurityPostureConfig.Mode mode = 1; - * - * @return The mode. - */ - @java.lang.Override - public com.google.container.v1beta1.SecurityPostureConfig.Mode getMode() { - com.google.container.v1beta1.SecurityPostureConfig.Mode result = - com.google.container.v1beta1.SecurityPostureConfig.Mode.forNumber(mode_); - return result == null - ? com.google.container.v1beta1.SecurityPostureConfig.Mode.UNRECOGNIZED - : result; - } - - public static final int VULNERABILITY_MODE_FIELD_NUMBER = 2; - private int vulnerabilityMode_ = 0; - /** - * - * - *
-   * Sets which mode to use for vulnerability scanning.
-   * 
- * - * - * optional .google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; - * - * - * @return Whether the vulnerabilityMode field is set. - */ - @java.lang.Override - public boolean hasVulnerabilityMode() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * Sets which mode to use for vulnerability scanning.
-   * 
- * - * - * optional .google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; - * - * - * @return The enum numeric value on the wire for vulnerabilityMode. - */ - @java.lang.Override - public int getVulnerabilityModeValue() { - return vulnerabilityMode_; - } - /** - * - * - *
-   * Sets which mode to use for vulnerability scanning.
-   * 
- * - * - * optional .google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; - * - * - * @return The vulnerabilityMode. - */ - @java.lang.Override - public com.google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode - getVulnerabilityMode() { - com.google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode result = - com.google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode.forNumber( - vulnerabilityMode_); - return result == null - ? com.google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode.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 (((bitField0_ & 0x00000001) != 0)) { - output.writeEnum(1, mode_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeEnum(2, vulnerabilityMode_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, mode_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, vulnerabilityMode_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.SecurityPostureConfig)) { - return super.equals(obj); - } - com.google.container.v1beta1.SecurityPostureConfig other = - (com.google.container.v1beta1.SecurityPostureConfig) obj; - - if (hasMode() != other.hasMode()) return false; - if (hasMode()) { - if (mode_ != other.mode_) return false; - } - if (hasVulnerabilityMode() != other.hasVulnerabilityMode()) return false; - if (hasVulnerabilityMode()) { - if (vulnerabilityMode_ != other.vulnerabilityMode_) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasMode()) { - hash = (37 * hash) + MODE_FIELD_NUMBER; - hash = (53 * hash) + mode_; - } - if (hasVulnerabilityMode()) { - hash = (37 * hash) + VULNERABILITY_MODE_FIELD_NUMBER; - hash = (53 * hash) + vulnerabilityMode_; - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.SecurityPostureConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.SecurityPostureConfig parseFrom( - 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.SecurityPostureConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.SecurityPostureConfig parseFrom( - com.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.SecurityPostureConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.SecurityPostureConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.SecurityPostureConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.SecurityPostureConfig parseFrom( - java.io.InputStream 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.SecurityPostureConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.SecurityPostureConfig parseDelimitedFrom( - java.io.InputStream 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.SecurityPostureConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.SecurityPostureConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.SecurityPostureConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * SecurityPostureConfig defines the flags needed to enable/disable features for
-   * the Security Posture API.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.SecurityPostureConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.SecurityPostureConfig) - com.google.container.v1beta1.SecurityPostureConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_SecurityPostureConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_SecurityPostureConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.SecurityPostureConfig.class, - com.google.container.v1beta1.SecurityPostureConfig.Builder.class); - } - - // Construct using com.google.container.v1beta1.SecurityPostureConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - mode_ = 0; - vulnerabilityMode_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_SecurityPostureConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.SecurityPostureConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.SecurityPostureConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.SecurityPostureConfig build() { - com.google.container.v1beta1.SecurityPostureConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.SecurityPostureConfig buildPartial() { - com.google.container.v1beta1.SecurityPostureConfig result = - new com.google.container.v1beta1.SecurityPostureConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.SecurityPostureConfig result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.mode_ = mode_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.vulnerabilityMode_ = vulnerabilityMode_; - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @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.SecurityPostureConfig) { - return mergeFrom((com.google.container.v1beta1.SecurityPostureConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.SecurityPostureConfig other) { - if (other == com.google.container.v1beta1.SecurityPostureConfig.getDefaultInstance()) - return this; - if (other.hasMode()) { - setMode(other.getMode()); - } - if (other.hasVulnerabilityMode()) { - setVulnerabilityMode(other.getVulnerabilityMode()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - mode_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - vulnerabilityMode_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int mode_ = 0; - /** - * - * - *
-     * Sets which mode to use for Security Posture features.
-     * 
- * - * optional .google.container.v1beta1.SecurityPostureConfig.Mode mode = 1; - * - * @return Whether the mode field is set. - */ - @java.lang.Override - public boolean hasMode() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Sets which mode to use for Security Posture features.
-     * 
- * - * optional .google.container.v1beta1.SecurityPostureConfig.Mode mode = 1; - * - * @return The enum numeric value on the wire for mode. - */ - @java.lang.Override - public int getModeValue() { - return mode_; - } - /** - * - * - *
-     * Sets which mode to use for Security Posture features.
-     * 
- * - * optional .google.container.v1beta1.SecurityPostureConfig.Mode mode = 1; - * - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Sets which mode to use for Security Posture features.
-     * 
- * - * optional .google.container.v1beta1.SecurityPostureConfig.Mode mode = 1; - * - * @return The mode. - */ - @java.lang.Override - public com.google.container.v1beta1.SecurityPostureConfig.Mode getMode() { - com.google.container.v1beta1.SecurityPostureConfig.Mode result = - com.google.container.v1beta1.SecurityPostureConfig.Mode.forNumber(mode_); - return result == null - ? com.google.container.v1beta1.SecurityPostureConfig.Mode.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Sets which mode to use for Security Posture features.
-     * 
- * - * optional .google.container.v1beta1.SecurityPostureConfig.Mode mode = 1; - * - * @param value The mode to set. - * @return This builder for chaining. - */ - public Builder setMode(com.google.container.v1beta1.SecurityPostureConfig.Mode value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - mode_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Sets which mode to use for Security Posture features.
-     * 
- * - * optional .google.container.v1beta1.SecurityPostureConfig.Mode mode = 1; - * - * @return This builder for chaining. - */ - public Builder clearMode() { - bitField0_ = (bitField0_ & ~0x00000001); - mode_ = 0; - onChanged(); - return this; - } - - private int vulnerabilityMode_ = 0; - /** - * - * - *
-     * Sets which mode to use for vulnerability scanning.
-     * 
- * - * - * optional .google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; - * - * - * @return Whether the vulnerabilityMode field is set. - */ - @java.lang.Override - public boolean hasVulnerabilityMode() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * Sets which mode to use for vulnerability scanning.
-     * 
- * - * - * optional .google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; - * - * - * @return The enum numeric value on the wire for vulnerabilityMode. - */ - @java.lang.Override - public int getVulnerabilityModeValue() { - return vulnerabilityMode_; - } - /** - * - * - *
-     * Sets which mode to use for vulnerability scanning.
-     * 
- * - * - * optional .google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; - * - * - * @param value The enum numeric value on the wire for vulnerabilityMode to set. - * @return This builder for chaining. - */ - public Builder setVulnerabilityModeValue(int value) { - vulnerabilityMode_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Sets which mode to use for vulnerability scanning.
-     * 
- * - * - * optional .google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; - * - * - * @return The vulnerabilityMode. - */ - @java.lang.Override - public com.google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode - getVulnerabilityMode() { - com.google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode result = - com.google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode.forNumber( - vulnerabilityMode_); - return result == null - ? com.google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Sets which mode to use for vulnerability scanning.
-     * 
- * - * - * optional .google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; - * - * - * @param value The vulnerabilityMode to set. - * @return This builder for chaining. - */ - public Builder setVulnerabilityMode( - com.google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - vulnerabilityMode_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Sets which mode to use for vulnerability scanning.
-     * 
- * - * - * optional .google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; - * - * - * @return This builder for chaining. - */ - public Builder clearVulnerabilityMode() { - bitField0_ = (bitField0_ & ~0x00000002); - vulnerabilityMode_ = 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.SecurityPostureConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.SecurityPostureConfig) - private static final com.google.container.v1beta1.SecurityPostureConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.SecurityPostureConfig(); - } - - public static com.google.container.v1beta1.SecurityPostureConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecurityPostureConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.SecurityPostureConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SecurityPostureConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SecurityPostureConfigOrBuilder.java deleted file mode 100644 index ac7f86eae39f..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SecurityPostureConfigOrBuilder.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface SecurityPostureConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SecurityPostureConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Sets which mode to use for Security Posture features.
-   * 
- * - * optional .google.container.v1beta1.SecurityPostureConfig.Mode mode = 1; - * - * @return Whether the mode field is set. - */ - boolean hasMode(); - /** - * - * - *
-   * Sets which mode to use for Security Posture features.
-   * 
- * - * optional .google.container.v1beta1.SecurityPostureConfig.Mode mode = 1; - * - * @return The enum numeric value on the wire for mode. - */ - int getModeValue(); - /** - * - * - *
-   * Sets which mode to use for Security Posture features.
-   * 
- * - * optional .google.container.v1beta1.SecurityPostureConfig.Mode mode = 1; - * - * @return The mode. - */ - com.google.container.v1beta1.SecurityPostureConfig.Mode getMode(); - - /** - * - * - *
-   * Sets which mode to use for vulnerability scanning.
-   * 
- * - * - * optional .google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; - * - * - * @return Whether the vulnerabilityMode field is set. - */ - boolean hasVulnerabilityMode(); - /** - * - * - *
-   * Sets which mode to use for vulnerability scanning.
-   * 
- * - * - * optional .google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; - * - * - * @return The enum numeric value on the wire for vulnerabilityMode. - */ - int getVulnerabilityModeValue(); - /** - * - * - *
-   * Sets which mode to use for vulnerability scanning.
-   * 
- * - * - * optional .google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; - * - * - * @return The vulnerabilityMode. - */ - com.google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode getVulnerabilityMode(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ServerConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ServerConfig.java deleted file mode 100644 index 5faebe154144..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ServerConfig.java +++ /dev/null @@ -1,5405 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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.emptyList(); - defaultImageType_ = ""; - validImageTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - validMasterVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - channels_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ServerConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_ServerConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 10: - return internalGetWindowsVersionMaps(); - 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_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.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ReleaseChannelConfig(); - } - - 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(); - } - - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, reason_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, reason_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.version_ = version_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.reason_ = reason_; - } - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getReason().isEmpty()) { - reason_ = other.reason_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - version_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - reason_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-         * Kubernetes version.
-         * 
- * - * string version = 1; - * - * @return This builder for chaining. - */ - public Builder clearVersion() { - version_ = getDefaultInstance().getVersion(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-         * Reason for availability.
-         * 
- * - * string reason = 2; - * - * @return This builder for chaining. - */ - public Builder clearReason() { - reason_ = getDefaultInstance().getReason(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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_ = 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; - * - * @return The channel. - */ - @java.lang.Override - public com.google.container.v1beta1.ReleaseChannel.Channel getChannel() { - com.google.container.v1beta1.ReleaseChannel.Channel result = - com.google.container.v1beta1.ReleaseChannel.Channel.forNumber(channel_); - return result == null - ? com.google.container.v1beta1.ReleaseChannel.Channel.UNRECOGNIZED - : result; - } - - public static final int DEFAULT_VERSION_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList validVersions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-     * 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultVersion_)) { - 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)); - } - getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultVersion_)) { - 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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - channel_ = 0; - defaultVersion_ = ""; - if (availableVersionsBuilder_ == null) { - availableVersions_ = java.util.Collections.emptyList(); - } else { - availableVersions_ = null; - availableVersionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - validVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - 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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig result) { - if (availableVersionsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - availableVersions_ = java.util.Collections.unmodifiableList(availableVersions_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.availableVersions_ = availableVersions_; - } else { - result.availableVersions_ = availableVersionsBuilder_.build(); - } - } - - private void buildPartial0( - com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.channel_ = channel_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.defaultVersion_ = defaultVersion_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - validVersions_.makeImmutable(); - result.validVersions_ = validVersions_; - } - } - - @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_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (availableVersionsBuilder_ == null) { - if (!other.availableVersions_.isEmpty()) { - if (availableVersions_.isEmpty()) { - availableVersions_ = other.availableVersions_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureAvailableVersionsIsMutable(); - availableVersions_.addAll(other.availableVersions_); - } - onChanged(); - } - } else { - if (!other.availableVersions_.isEmpty()) { - if (availableVersionsBuilder_.isEmpty()) { - availableVersionsBuilder_.dispose(); - availableVersionsBuilder_ = null; - availableVersions_ = other.availableVersions_; - bitField0_ = (bitField0_ & ~0x00000004); - availableVersionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAvailableVersionsFieldBuilder() - : null; - } else { - availableVersionsBuilder_.addAllMessages(other.availableVersions_); - } - } - } - if (!other.validVersions_.isEmpty()) { - if (validVersions_.isEmpty()) { - validVersions_ = other.validVersions_; - bitField0_ |= 0x00000008; - } else { - ensureValidVersionsIsMutable(); - validVersions_.addAll(other.validVersions_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - channel_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - defaultVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion - m = - input.readMessage( - com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig - .AvailableVersion.parser(), - extensionRegistry); - if (availableVersionsBuilder_ == null) { - ensureAvailableVersionsIsMutable(); - availableVersions_.add(m); - } else { - availableVersionsBuilder_.addMessage(m); - } - break; - } // case 26 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureValidVersionsIsMutable(); - validVersions_.add(s); - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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; - bitField0_ |= 0x00000001; - 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() { - com.google.container.v1beta1.ReleaseChannel.Channel result = - com.google.container.v1beta1.ReleaseChannel.Channel.forNumber(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(); - } - bitField0_ |= 0x00000001; - 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() { - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000002; - 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(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.util.List< - com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion> - availableVersions_ = java.util.Collections.emptyList(); - - private void ensureAvailableVersionsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - availableVersions_ = - new java.util.ArrayList< - com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion>( - availableVersions_); - bitField0_ |= 0x00000004; - } - } - - 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_ & ~0x00000004); - 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_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - availableVersions_ = null; - } - return availableVersionsBuilder_; - } - - private com.google.protobuf.LazyStringArrayList validVersions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureValidVersionsIsMutable() { - if (!validVersions_.isModifiable()) { - validVersions_ = new com.google.protobuf.LazyStringArrayList(validVersions_); - } - bitField0_ |= 0x00000008; - } - /** - * - * - *
-       * List of valid versions for the channel.
-       * 
- * - * repeated string valid_versions = 4; - * - * @return A list containing the validVersions. - */ - public com.google.protobuf.ProtocolStringList getValidVersionsList() { - validVersions_.makeImmutable(); - 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); - } - /** - * - * - *
-       * 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); - bitField0_ |= 0x00000008; - 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); - bitField0_ |= 0x00000008; - 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_); - bitField0_ |= 0x00000008; - 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.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - ; - 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); - bitField0_ |= 0x00000008; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList validNodeVersions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList validImageTypes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList validMasterVersions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - 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); - } - - public static final int WINDOWS_VERSION_MAPS_FIELD_NUMBER = 10; - - private static final class WindowsVersionMapsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.google.container.v1beta1.WindowsVersions> - defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_ServerConfig_WindowsVersionMapsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.container.v1beta1.WindowsVersions.getDefaultInstance()); - } - - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, com.google.container.v1beta1.WindowsVersions> - windowsVersionMaps_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.container.v1beta1.WindowsVersions> - internalGetWindowsVersionMaps() { - if (windowsVersionMaps_ == null) { - return com.google.protobuf.MapField.emptyMapField( - WindowsVersionMapsDefaultEntryHolder.defaultEntry); - } - return windowsVersionMaps_; - } - - public int getWindowsVersionMapsCount() { - return internalGetWindowsVersionMaps().getMap().size(); - } - /** - * - * - *
-   * Maps of Kubernetes version and supported Windows server versions.
-   * 
- * - * map<string, .google.container.v1beta1.WindowsVersions> windows_version_maps = 10; - * - */ - @java.lang.Override - public boolean containsWindowsVersionMaps(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetWindowsVersionMaps().getMap().containsKey(key); - } - /** Use {@link #getWindowsVersionMapsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getWindowsVersionMaps() { - return getWindowsVersionMapsMap(); - } - /** - * - * - *
-   * Maps of Kubernetes version and supported Windows server versions.
-   * 
- * - * map<string, .google.container.v1beta1.WindowsVersions> windows_version_maps = 10; - * - */ - @java.lang.Override - public java.util.Map - getWindowsVersionMapsMap() { - return internalGetWindowsVersionMaps().getMap(); - } - /** - * - * - *
-   * Maps of Kubernetes version and supported Windows server versions.
-   * 
- * - * map<string, .google.container.v1beta1.WindowsVersions> windows_version_maps = 10; - * - */ - @java.lang.Override - public /* nullable */ com.google.container.v1beta1.WindowsVersions getWindowsVersionMapsOrDefault( - java.lang.String key, - /* nullable */ - com.google.container.v1beta1.WindowsVersions defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetWindowsVersionMaps().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Maps of Kubernetes version and supported Windows server versions.
-   * 
- * - * map<string, .google.container.v1beta1.WindowsVersions> windows_version_maps = 10; - * - */ - @java.lang.Override - public com.google.container.v1beta1.WindowsVersions getWindowsVersionMapsOrThrow( - java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetWindowsVersionMaps().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultClusterVersion_)) { - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultImageType_)) { - 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)); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, - internalGetWindowsVersionMaps(), - WindowsVersionMapsDefaultEntryHolder.defaultEntry, - 10); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultClusterVersion_)) { - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultImageType_)) { - 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)); - } - for (java.util.Map.Entry entry : - internalGetWindowsVersionMaps().getMap().entrySet()) { - com.google.protobuf.MapEntry - windowsVersionMaps__ = - WindowsVersionMapsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, windowsVersionMaps__); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!internalGetWindowsVersionMaps().equals(other.internalGetWindowsVersionMaps())) - return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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(); - } - if (!internalGetWindowsVersionMaps().getMap().isEmpty()) { - hash = (37 * hash) + WINDOWS_VERSION_MAPS_FIELD_NUMBER; - hash = (53 * hash) + internalGetWindowsVersionMaps().hashCode(); - } - hash = (29 * hash) + getUnknownFields().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; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 10: - return internalGetWindowsVersionMaps(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 10: - return internalGetMutableWindowsVersionMaps(); - 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_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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - defaultClusterVersion_ = ""; - validNodeVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - defaultImageType_ = ""; - validImageTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - validMasterVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - if (channelsBuilder_ == null) { - channels_ = java.util.Collections.emptyList(); - } else { - channels_ = null; - channelsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - internalGetMutableWindowsVersionMaps().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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.container.v1beta1.ServerConfig result) { - if (channelsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - channels_ = java.util.Collections.unmodifiableList(channels_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.channels_ = channels_; - } else { - result.channels_ = channelsBuilder_.build(); - } - } - - private void buildPartial0(com.google.container.v1beta1.ServerConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.defaultClusterVersion_ = defaultClusterVersion_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - validNodeVersions_.makeImmutable(); - result.validNodeVersions_ = validNodeVersions_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.defaultImageType_ = defaultImageType_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - validImageTypes_.makeImmutable(); - result.validImageTypes_ = validImageTypes_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - validMasterVersions_.makeImmutable(); - result.validMasterVersions_ = validMasterVersions_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.windowsVersionMaps_ = - internalGetWindowsVersionMaps() - .build(WindowsVersionMapsDefaultEntryHolder.defaultEntry); - } - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.validNodeVersions_.isEmpty()) { - if (validNodeVersions_.isEmpty()) { - validNodeVersions_ = other.validNodeVersions_; - bitField0_ |= 0x00000002; - } else { - ensureValidNodeVersionsIsMutable(); - validNodeVersions_.addAll(other.validNodeVersions_); - } - onChanged(); - } - if (!other.getDefaultImageType().isEmpty()) { - defaultImageType_ = other.defaultImageType_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.validImageTypes_.isEmpty()) { - if (validImageTypes_.isEmpty()) { - validImageTypes_ = other.validImageTypes_; - bitField0_ |= 0x00000008; - } else { - ensureValidImageTypesIsMutable(); - validImageTypes_.addAll(other.validImageTypes_); - } - onChanged(); - } - if (!other.validMasterVersions_.isEmpty()) { - if (validMasterVersions_.isEmpty()) { - validMasterVersions_ = other.validMasterVersions_; - bitField0_ |= 0x00000010; - } else { - ensureValidMasterVersionsIsMutable(); - validMasterVersions_.addAll(other.validMasterVersions_); - } - onChanged(); - } - if (channelsBuilder_ == null) { - if (!other.channels_.isEmpty()) { - if (channels_.isEmpty()) { - channels_ = other.channels_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureChannelsIsMutable(); - channels_.addAll(other.channels_); - } - onChanged(); - } - } else { - if (!other.channels_.isEmpty()) { - if (channelsBuilder_.isEmpty()) { - channelsBuilder_.dispose(); - channelsBuilder_ = null; - channels_ = other.channels_; - bitField0_ = (bitField0_ & ~0x00000020); - channelsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getChannelsFieldBuilder() - : null; - } else { - channelsBuilder_.addAllMessages(other.channels_); - } - } - } - internalGetMutableWindowsVersionMaps().mergeFrom(other.internalGetWindowsVersionMaps()); - bitField0_ |= 0x00000040; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - defaultClusterVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureValidNodeVersionsIsMutable(); - validNodeVersions_.add(s); - break; - } // case 26 - case 34: - { - defaultImageType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureValidImageTypesIsMutable(); - validImageTypes_.add(s); - break; - } // case 42 - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureValidMasterVersionsIsMutable(); - validMasterVersions_.add(s); - break; - } // case 50 - case 74: - { - com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig m = - input.readMessage( - com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.parser(), - extensionRegistry); - if (channelsBuilder_ == null) { - ensureChannelsIsMutable(); - channels_.add(m); - } else { - channelsBuilder_.addMessage(m); - } - break; - } // case 74 - case 82: - { - com.google.protobuf.MapEntry< - java.lang.String, com.google.container.v1beta1.WindowsVersions> - windowsVersionMaps__ = - input.readMessage( - WindowsVersionMapsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableWindowsVersionMaps() - .ensureBuilderMap() - .put(windowsVersionMaps__.getKey(), windowsVersionMaps__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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; - bitField0_ |= 0x00000001; - 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(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList validNodeVersions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureValidNodeVersionsIsMutable() { - if (!validNodeVersions_.isModifiable()) { - validNodeVersions_ = new com.google.protobuf.LazyStringArrayList(validNodeVersions_); - } - bitField0_ |= 0x00000002; - } - /** - * - * - *
-     * 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() { - validNodeVersions_.makeImmutable(); - 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); - } - /** - * - * - *
-     * 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); - bitField0_ |= 0x00000002; - 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); - bitField0_ |= 0x00000002; - 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_); - bitField0_ |= 0x00000002; - 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.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; - 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); - bitField0_ |= 0x00000002; - 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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Default image type.
-     * 
- * - * string default_image_type = 4; - * - * @return This builder for chaining. - */ - public Builder clearDefaultImageType() { - defaultImageType_ = getDefaultInstance().getDefaultImageType(); - bitField0_ = (bitField0_ & ~0x00000004); - 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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList validImageTypes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureValidImageTypesIsMutable() { - if (!validImageTypes_.isModifiable()) { - validImageTypes_ = new com.google.protobuf.LazyStringArrayList(validImageTypes_); - } - bitField0_ |= 0x00000008; - } - /** - * - * - *
-     * List of valid image types.
-     * 
- * - * repeated string valid_image_types = 5; - * - * @return A list containing the validImageTypes. - */ - public com.google.protobuf.ProtocolStringList getValidImageTypesList() { - validImageTypes_.makeImmutable(); - 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); - } - /** - * - * - *
-     * 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); - bitField0_ |= 0x00000008; - 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); - bitField0_ |= 0x00000008; - 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_); - bitField0_ |= 0x00000008; - 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.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - ; - 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); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList validMasterVersions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureValidMasterVersionsIsMutable() { - if (!validMasterVersions_.isModifiable()) { - validMasterVersions_ = new com.google.protobuf.LazyStringArrayList(validMasterVersions_); - } - bitField0_ |= 0x00000010; - } - /** - * - * - *
-     * 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() { - validMasterVersions_.makeImmutable(); - 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); - } - /** - * - * - *
-     * 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); - bitField0_ |= 0x00000010; - 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); - bitField0_ |= 0x00000010; - 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_); - bitField0_ |= 0x00000010; - 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.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - ; - 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); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private java.util.List - channels_ = java.util.Collections.emptyList(); - - private void ensureChannelsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - channels_ = - new java.util.ArrayList( - channels_); - bitField0_ |= 0x00000020; - } - } - - 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_ & ~0x00000020); - 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_ & 0x00000020) != 0), getParentForChildren(), isClean()); - channels_ = null; - } - return channelsBuilder_; - } - - private static final class WindowsVersionMapsConverter - implements com.google.protobuf.MapFieldBuilder.Converter< - java.lang.String, - com.google.container.v1beta1.WindowsVersionsOrBuilder, - com.google.container.v1beta1.WindowsVersions> { - @java.lang.Override - public com.google.container.v1beta1.WindowsVersions build( - com.google.container.v1beta1.WindowsVersionsOrBuilder val) { - if (val instanceof com.google.container.v1beta1.WindowsVersions) { - return (com.google.container.v1beta1.WindowsVersions) val; - } - return ((com.google.container.v1beta1.WindowsVersions.Builder) val).build(); - } - - @java.lang.Override - public com.google.protobuf.MapEntry< - java.lang.String, com.google.container.v1beta1.WindowsVersions> - defaultEntry() { - return WindowsVersionMapsDefaultEntryHolder.defaultEntry; - } - }; - - private static final WindowsVersionMapsConverter windowsVersionMapsConverter = - new WindowsVersionMapsConverter(); - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.container.v1beta1.WindowsVersionsOrBuilder, - com.google.container.v1beta1.WindowsVersions, - com.google.container.v1beta1.WindowsVersions.Builder> - windowsVersionMaps_; - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.container.v1beta1.WindowsVersionsOrBuilder, - com.google.container.v1beta1.WindowsVersions, - com.google.container.v1beta1.WindowsVersions.Builder> - internalGetWindowsVersionMaps() { - if (windowsVersionMaps_ == null) { - return new com.google.protobuf.MapFieldBuilder<>(windowsVersionMapsConverter); - } - return windowsVersionMaps_; - } - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.container.v1beta1.WindowsVersionsOrBuilder, - com.google.container.v1beta1.WindowsVersions, - com.google.container.v1beta1.WindowsVersions.Builder> - internalGetMutableWindowsVersionMaps() { - if (windowsVersionMaps_ == null) { - windowsVersionMaps_ = - new com.google.protobuf.MapFieldBuilder<>(windowsVersionMapsConverter); - } - bitField0_ |= 0x00000040; - onChanged(); - return windowsVersionMaps_; - } - - public int getWindowsVersionMapsCount() { - return internalGetWindowsVersionMaps().ensureBuilderMap().size(); - } - /** - * - * - *
-     * Maps of Kubernetes version and supported Windows server versions.
-     * 
- * - * map<string, .google.container.v1beta1.WindowsVersions> windows_version_maps = 10; - * - */ - @java.lang.Override - public boolean containsWindowsVersionMaps(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetWindowsVersionMaps().ensureBuilderMap().containsKey(key); - } - /** Use {@link #getWindowsVersionMapsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getWindowsVersionMaps() { - return getWindowsVersionMapsMap(); - } - /** - * - * - *
-     * Maps of Kubernetes version and supported Windows server versions.
-     * 
- * - * map<string, .google.container.v1beta1.WindowsVersions> windows_version_maps = 10; - * - */ - @java.lang.Override - public java.util.Map - getWindowsVersionMapsMap() { - return internalGetWindowsVersionMaps().getImmutableMap(); - } - /** - * - * - *
-     * Maps of Kubernetes version and supported Windows server versions.
-     * 
- * - * map<string, .google.container.v1beta1.WindowsVersions> windows_version_maps = 10; - * - */ - @java.lang.Override - public /* nullable */ com.google.container.v1beta1.WindowsVersions - getWindowsVersionMapsOrDefault( - java.lang.String key, - /* nullable */ - com.google.container.v1beta1.WindowsVersions defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetMutableWindowsVersionMaps().ensureBuilderMap(); - return map.containsKey(key) ? windowsVersionMapsConverter.build(map.get(key)) : defaultValue; - } - /** - * - * - *
-     * Maps of Kubernetes version and supported Windows server versions.
-     * 
- * - * map<string, .google.container.v1beta1.WindowsVersions> windows_version_maps = 10; - * - */ - @java.lang.Override - public com.google.container.v1beta1.WindowsVersions getWindowsVersionMapsOrThrow( - java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetMutableWindowsVersionMaps().ensureBuilderMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return windowsVersionMapsConverter.build(map.get(key)); - } - - public Builder clearWindowsVersionMaps() { - bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableWindowsVersionMaps().clear(); - return this; - } - /** - * - * - *
-     * Maps of Kubernetes version and supported Windows server versions.
-     * 
- * - * map<string, .google.container.v1beta1.WindowsVersions> windows_version_maps = 10; - * - */ - public Builder removeWindowsVersionMaps(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableWindowsVersionMaps().ensureBuilderMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map - getMutableWindowsVersionMaps() { - bitField0_ |= 0x00000040; - return internalGetMutableWindowsVersionMaps().ensureMessageMap(); - } - /** - * - * - *
-     * Maps of Kubernetes version and supported Windows server versions.
-     * 
- * - * map<string, .google.container.v1beta1.WindowsVersions> windows_version_maps = 10; - * - */ - public Builder putWindowsVersionMaps( - java.lang.String key, com.google.container.v1beta1.WindowsVersions value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableWindowsVersionMaps().ensureBuilderMap().put(key, value); - bitField0_ |= 0x00000040; - return this; - } - /** - * - * - *
-     * Maps of Kubernetes version and supported Windows server versions.
-     * 
- * - * map<string, .google.container.v1beta1.WindowsVersions> windows_version_maps = 10; - * - */ - public Builder putAllWindowsVersionMaps( - java.util.Map values) { - for (java.util.Map.Entry e : - values.entrySet()) { - if (e.getKey() == null || e.getValue() == null) { - throw new NullPointerException(); - } - } - internalGetMutableWindowsVersionMaps().ensureBuilderMap().putAll(values); - bitField0_ |= 0x00000040; - return this; - } - /** - * - * - *
-     * Maps of Kubernetes version and supported Windows server versions.
-     * 
- * - * map<string, .google.container.v1beta1.WindowsVersions> windows_version_maps = 10; - * - */ - public com.google.container.v1beta1.WindowsVersions.Builder - putWindowsVersionMapsBuilderIfAbsent(java.lang.String key) { - java.util.Map - builderMap = internalGetMutableWindowsVersionMaps().ensureBuilderMap(); - com.google.container.v1beta1.WindowsVersionsOrBuilder entry = builderMap.get(key); - if (entry == null) { - entry = com.google.container.v1beta1.WindowsVersions.newBuilder(); - builderMap.put(key, entry); - } - if (entry instanceof com.google.container.v1beta1.WindowsVersions) { - entry = ((com.google.container.v1beta1.WindowsVersions) entry).toBuilder(); - builderMap.put(key, entry); - } - return (com.google.container.v1beta1.WindowsVersions.Builder) entry; - } - - @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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ServerConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ServerConfigOrBuilder.java deleted file mode 100644 index 33025bdec2b6..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ServerConfigOrBuilder.java +++ /dev/null @@ -1,347 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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); - - /** - * - * - *
-   * Maps of Kubernetes version and supported Windows server versions.
-   * 
- * - * map<string, .google.container.v1beta1.WindowsVersions> windows_version_maps = 10; - * - */ - int getWindowsVersionMapsCount(); - /** - * - * - *
-   * Maps of Kubernetes version and supported Windows server versions.
-   * 
- * - * map<string, .google.container.v1beta1.WindowsVersions> windows_version_maps = 10; - * - */ - boolean containsWindowsVersionMaps(java.lang.String key); - /** Use {@link #getWindowsVersionMapsMap()} instead. */ - @java.lang.Deprecated - java.util.Map - getWindowsVersionMaps(); - /** - * - * - *
-   * Maps of Kubernetes version and supported Windows server versions.
-   * 
- * - * map<string, .google.container.v1beta1.WindowsVersions> windows_version_maps = 10; - * - */ - java.util.Map - getWindowsVersionMapsMap(); - /** - * - * - *
-   * Maps of Kubernetes version and supported Windows server versions.
-   * 
- * - * map<string, .google.container.v1beta1.WindowsVersions> windows_version_maps = 10; - * - */ - /* nullable */ - com.google.container.v1beta1.WindowsVersions getWindowsVersionMapsOrDefault( - java.lang.String key, - /* nullable */ - com.google.container.v1beta1.WindowsVersions defaultValue); - /** - * - * - *
-   * Maps of Kubernetes version and supported Windows server versions.
-   * 
- * - * map<string, .google.container.v1beta1.WindowsVersions> windows_version_maps = 10; - * - */ - com.google.container.v1beta1.WindowsVersions getWindowsVersionMapsOrThrow(java.lang.String key); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ServiceExternalIPsConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ServiceExternalIPsConfig.java deleted file mode 100644 index db3948a8cd68..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ServiceExternalIPsConfig.java +++ /dev/null @@ -1,536 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * Config to block services with externalIPs field.
- * 
- * - * Protobuf type {@code google.container.v1beta1.ServiceExternalIPsConfig} - */ -public final class ServiceExternalIPsConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.ServiceExternalIPsConfig) - ServiceExternalIPsConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use ServiceExternalIPsConfig.newBuilder() to construct. - private ServiceExternalIPsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ServiceExternalIPsConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ServiceExternalIPsConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_ServiceExternalIPsConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_ServiceExternalIPsConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.ServiceExternalIPsConfig.class, - com.google.container.v1beta1.ServiceExternalIPsConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * Whether Services with ExternalIPs field are allowed or not.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.ServiceExternalIPsConfig)) { - return super.equals(obj); - } - com.google.container.v1beta1.ServiceExternalIPsConfig other = - (com.google.container.v1beta1.ServiceExternalIPsConfig) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.ServiceExternalIPsConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.ServiceExternalIPsConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.ServiceExternalIPsConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.ServiceExternalIPsConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.ServiceExternalIPsConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.ServiceExternalIPsConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.ServiceExternalIPsConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.ServiceExternalIPsConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.ServiceExternalIPsConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.ServiceExternalIPsConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.ServiceExternalIPsConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.ServiceExternalIPsConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.container.v1beta1.ServiceExternalIPsConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Config to block services with externalIPs field.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.ServiceExternalIPsConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ServiceExternalIPsConfig) - com.google.container.v1beta1.ServiceExternalIPsConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_ServiceExternalIPsConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_ServiceExternalIPsConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.ServiceExternalIPsConfig.class, - com.google.container.v1beta1.ServiceExternalIPsConfig.Builder.class); - } - - // Construct using com.google.container.v1beta1.ServiceExternalIPsConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 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_ServiceExternalIPsConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.ServiceExternalIPsConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.ServiceExternalIPsConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.ServiceExternalIPsConfig build() { - com.google.container.v1beta1.ServiceExternalIPsConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.ServiceExternalIPsConfig buildPartial() { - com.google.container.v1beta1.ServiceExternalIPsConfig result = - new com.google.container.v1beta1.ServiceExternalIPsConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.ServiceExternalIPsConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @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.ServiceExternalIPsConfig) { - return mergeFrom((com.google.container.v1beta1.ServiceExternalIPsConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.ServiceExternalIPsConfig other) { - if (other == com.google.container.v1beta1.ServiceExternalIPsConfig.getDefaultInstance()) - return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean enabled_; - /** - * - * - *
-     * Whether Services with ExternalIPs field are allowed or not.
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Whether Services with ExternalIPs field are allowed or not.
-     * 
- * - * bool enabled = 1; - * - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether Services with ExternalIPs field are allowed or not.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - 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.ServiceExternalIPsConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.ServiceExternalIPsConfig) - private static final com.google.container.v1beta1.ServiceExternalIPsConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.ServiceExternalIPsConfig(); - } - - public static com.google.container.v1beta1.ServiceExternalIPsConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ServiceExternalIPsConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.ServiceExternalIPsConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ServiceExternalIPsConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ServiceExternalIPsConfigOrBuilder.java deleted file mode 100644 index 051c59a48e4e..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ServiceExternalIPsConfigOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface ServiceExternalIPsConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ServiceExternalIPsConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether Services with ExternalIPs field are allowed or not.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequest.java deleted file mode 100644 index a7db346ef4f3..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequest.java +++ /dev/null @@ -1,1614 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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); - } - - private int bitField0_; - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3266 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3266 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3273 - * @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]; - * - * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3273 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * - * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3277 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3277 - * @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 ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * 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 addonsConfig_ == null - ? com.google.container.v1beta1.AddonsConfig.getDefaultInstance() - : addonsConfig_; - } - - public static final int NAME_FIELD_NUMBER = 6; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(4, getAddonsConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAddonsConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { - getAddonsConfigFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - addonsConfig_ = null; - if (addonsConfigBuilder_ != null) { - addonsConfigBuilder_.dispose(); - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.SetAddonsConfigRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.addonsConfig_ = - addonsConfigBuilder_ == null ? addonsConfig_ : addonsConfigBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.name_ = name_; - } - result.bitField0_ |= to_bitField0_; - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasAddonsConfig()) { - mergeAddonsConfig(other.getAddonsConfig()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000010; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getAddonsConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 50: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3266 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3266 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3266 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3266 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3266 - * @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; - bitField0_ |= 0x00000001; - 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]; - * - * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3273 - * @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]; - * - * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3273 - * @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]; - * - * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3273 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3273 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - 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]; - * - * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3273 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * - * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3277 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3277 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3277 - * @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; - bitField0_ |= 0x00000004; - 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]; - * - * - * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3277 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - 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]; - * - * - * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3277 - * @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; - bitField0_ |= 0x00000004; - 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 ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-     * 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; - } else { - addonsConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - 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(); - } else { - addonsConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - 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 (((bitField0_ & 0x00000008) != 0) - && addonsConfig_ != null - && addonsConfig_ != com.google.container.v1beta1.AddonsConfig.getDefaultInstance()) { - getAddonsConfigBuilder().mergeFrom(value); - } else { - addonsConfig_ = value; - } - } else { - addonsConfigBuilder_.mergeFrom(value); - } - if (addonsConfig_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - 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() { - bitField0_ = (bitField0_ & ~0x00000008); - addonsConfig_ = null; - if (addonsConfigBuilder_ != null) { - addonsConfigBuilder_.dispose(); - addonsConfigBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000008; - 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; - bitField0_ |= 0x00000010; - 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(); - bitField0_ = (bitField0_ & ~0x00000010); - 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; - bitField0_ |= 0x00000010; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequestOrBuilder.java deleted file mode 100644 index 61969c4866f8..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequestOrBuilder.java +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3266 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3266 - * @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]; - * - * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3273 - * @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]; - * - * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3273 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3277 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3277 - * @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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequest.java deleted file mode 100644 index eb31ff3c95bd..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequest.java +++ /dev/null @@ -1,1875 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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.MapFieldReflectionAccessor internalGetMapFieldReflection( - 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4522 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4522 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4529 - * @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]; - * - * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4529 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * - * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4533 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4533 - * @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, - ""); - } - - @SuppressWarnings("serial") - 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 NullPointerException("map key"); - } - 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 /* nullable */ java.lang.String getResourceLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - 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 NullPointerException("map key"); - } - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * The name (project, location, cluster name) 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 name) 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetResourceLabels(), ResourceLabelsDefaultEntryHolder.defaultEntry, 4); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(labelFingerprint_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, labelFingerprint_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(labelFingerprint_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, labelFingerprint_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 4: - return internalGetResourceLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - 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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.SetLabelsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.resourceLabels_ = internalGetResourceLabels(); - result.resourceLabels_.makeImmutable(); - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.labelFingerprint_ = labelFingerprint_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.name_ = name_; - } - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - internalGetMutableResourceLabels().mergeFrom(other.internalGetResourceLabels()); - bitField0_ |= 0x00000008; - if (!other.getLabelFingerprint().isEmpty()) { - labelFingerprint_ = other.labelFingerprint_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000020; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - com.google.protobuf.MapEntry resourceLabels__ = - input.readMessage( - ResourceLabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableResourceLabels() - .getMutableMap() - .put(resourceLabels__.getKey(), resourceLabels__.getValue()); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - labelFingerprint_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 58: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4522 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4522 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4522 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4522 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4522 - * @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; - bitField0_ |= 0x00000001; - 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]; - * - * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4529 - * @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]; - * - * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4529 - * @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]; - * - * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4529 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4529 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - 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]; - * - * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4529 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * - * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4533 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4533 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4533 - * @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; - bitField0_ |= 0x00000004; - 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]; - * - * - * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4533 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - 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]; - * - * - * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4533 - * @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; - bitField0_ |= 0x00000004; - 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() { - if (resourceLabels_ == null) { - resourceLabels_ = - com.google.protobuf.MapField.newMapField(ResourceLabelsDefaultEntryHolder.defaultEntry); - } - if (!resourceLabels_.isMutable()) { - resourceLabels_ = resourceLabels_.copy(); - } - bitField0_ |= 0x00000008; - onChanged(); - 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 NullPointerException("map key"); - } - 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 /* nullable */ java.lang.String getResourceLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - 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 NullPointerException("map key"); - } - java.util.Map map = internalGetResourceLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearResourceLabels() { - bitField0_ = (bitField0_ & ~0x00000008); - 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 NullPointerException("map key"); - } - internalGetMutableResourceLabels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableResourceLabels() { - bitField0_ |= 0x00000008; - 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 NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableResourceLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00000008; - 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); - bitField0_ |= 0x00000008; - 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; - bitField0_ |= 0x00000010; - 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(); - bitField0_ = (bitField0_ & ~0x00000010); - 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; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name (project, location, cluster name) 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 name) 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 name) 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; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster name) 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(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster name) 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; - bitField0_ |= 0x00000020; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequestOrBuilder.java deleted file mode 100644 index 07b4cf8dd17b..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequestOrBuilder.java +++ /dev/null @@ -1,260 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4522 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4522 - * @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]; - * - * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4529 - * @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]; - * - * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4529 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4533 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4533 - * @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]; - * - */ - /* nullable */ - java.lang.String getResourceLabelsOrDefault( - java.lang.String key, - /* nullable */ - 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 name) 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 name) 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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequest.java deleted file mode 100644 index c854c800fe26..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequest.java +++ /dev/null @@ -1,1392 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4559 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4559 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4566 - * @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]; - * - * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4566 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * - * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4570 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4570 - * @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_ = false; - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * The name (project, location, cluster name) 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 name) 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (enabled_ != false) { - output.writeBool(4, enabled_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, enabled_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.SetLegacyAbacRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.enabled_ = enabled_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.name_ = name_; - } - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000010; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 50: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4559 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4559 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4559 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4559 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4559 - * @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; - bitField0_ |= 0x00000001; - 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]; - * - * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4566 - * @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]; - * - * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4566 - * @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]; - * - * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4566 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4566 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - 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]; - * - * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4566 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * - * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4570 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4570 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4570 - * @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; - bitField0_ |= 0x00000004; - 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]; - * - * - * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4570 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - 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]; - * - * - * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4570 - * @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; - bitField0_ |= 0x00000004; - 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; - bitField0_ |= 0x00000008; - 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() { - bitField0_ = (bitField0_ & ~0x00000008); - enabled_ = false; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name (project, location, cluster name) 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 name) 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 name) 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; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster name) 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(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster name) 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; - bitField0_ |= 0x00000010; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequestOrBuilder.java deleted file mode 100644 index 6c217b48ee8c..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequestOrBuilder.java +++ /dev/null @@ -1,175 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4559 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4559 - * @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]; - * - * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4566 - * @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]; - * - * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4566 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4570 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4570 - * @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 name) 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 name) 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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequest.java deleted file mode 100644 index a8cc9f05bb9b..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequest.java +++ /dev/null @@ -1,1652 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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.emptyList(); - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SetLocationsRequest(); - } - - 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3294 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3294 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3301 - * @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]; - * - * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3301 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * - * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3305 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3305 - * @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; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList locations_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - locations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.SetLocationsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - locations_.makeImmutable(); - result.locations_ = locations_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.name_ = name_; - } - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.locations_.isEmpty()) { - if (locations_.isEmpty()) { - locations_ = other.locations_; - bitField0_ |= 0x00000008; - } else { - ensureLocationsIsMutable(); - locations_.addAll(other.locations_); - } - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000010; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureLocationsIsMutable(); - locations_.add(s); - break; - } // case 34 - case 50: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3294 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3294 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3294 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3294 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3294 - * @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; - bitField0_ |= 0x00000001; - 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]; - * - * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3301 - * @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]; - * - * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3301 - * @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]; - * - * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3301 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3301 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - 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]; - * - * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3301 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * - * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3305 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3305 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3305 - * @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; - bitField0_ |= 0x00000004; - 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]; - * - * - * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3305 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - 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]; - * - * - * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3305 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList locations_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureLocationsIsMutable() { - if (!locations_.isModifiable()) { - locations_ = new com.google.protobuf.LazyStringArrayList(locations_); - } - bitField0_ |= 0x00000008; - } - /** - * - * - *
-     * 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() { - locations_.makeImmutable(); - 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); - } - /** - * - * - *
-     * 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); - bitField0_ |= 0x00000008; - 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); - bitField0_ |= 0x00000008; - 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_); - bitField0_ |= 0x00000008; - 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.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - ; - 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); - bitField0_ |= 0x00000008; - 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; - bitField0_ |= 0x00000010; - 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(); - bitField0_ = (bitField0_ & ~0x00000010); - 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; - bitField0_ |= 0x00000010; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequestOrBuilder.java deleted file mode 100644 index 10383a2f770f..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequestOrBuilder.java +++ /dev/null @@ -1,237 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3294 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3294 - * @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]; - * - * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3301 - * @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]; - * - * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3301 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3305 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3305 - * @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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequest.java deleted file mode 100644 index d2c2c9519fb4..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequest.java +++ /dev/null @@ -1,1550 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3192 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3192 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3199 - * @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]; - * - * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3199 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * - * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3203 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3203 - * @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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loggingService_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, loggingService_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loggingService_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, loggingService_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.SetLoggingServiceRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.loggingService_ = loggingService_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.name_ = name_; - } - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getLoggingService().isEmpty()) { - loggingService_ = other.loggingService_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000010; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - loggingService_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3192 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3192 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3192 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3192 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3192 - * @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; - bitField0_ |= 0x00000001; - 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]; - * - * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3199 - * @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]; - * - * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3199 - * @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]; - * - * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3199 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3199 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - 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]; - * - * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3199 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * - * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3203 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3203 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3203 - * @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; - bitField0_ |= 0x00000004; - 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]; - * - * - * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3203 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - 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]; - * - * - * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3203 - * @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; - bitField0_ |= 0x00000004; - 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; - bitField0_ |= 0x00000008; - 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(); - bitField0_ = (bitField0_ & ~0x00000008); - 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; - bitField0_ |= 0x00000008; - 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; - bitField0_ |= 0x00000010; - 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(); - bitField0_ = (bitField0_ & ~0x00000010); - 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; - bitField0_ |= 0x00000010; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequestOrBuilder.java deleted file mode 100644 index f958aaf0e6e5..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequestOrBuilder.java +++ /dev/null @@ -1,207 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3192 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3192 - * @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]; - * - * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3199 - * @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]; - * - * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3199 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3203 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3203 - * @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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMaintenancePolicyRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMaintenancePolicyRequest.java deleted file mode 100644 index fad9e35f4536..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMaintenancePolicyRequest.java +++ /dev/null @@ -1,1528 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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); - } - - private int bitField0_; - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Required. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * 
- * - * 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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * 
- * - * 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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 ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * 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 maintenancePolicy_ == null - ? com.google.container.v1beta1.MaintenancePolicy.getDefaultInstance() - : maintenancePolicy_; - } - - public static final int NAME_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * The name (project, location, cluster name) 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 name) 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(4, getMaintenancePolicy()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMaintenancePolicy()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { - getMaintenancePolicyFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - maintenancePolicy_ = null; - if (maintenancePolicyBuilder_ != null) { - maintenancePolicyBuilder_.dispose(); - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.SetMaintenancePolicyRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.maintenancePolicy_ = - maintenancePolicyBuilder_ == null - ? maintenancePolicy_ - : maintenancePolicyBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.name_ = name_; - } - result.bitField0_ |= to_bitField0_; - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasMaintenancePolicy()) { - mergeMaintenancePolicy(other.getMaintenancePolicy()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000010; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage( - getMaintenancePolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * 
- * - * 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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * 
- * - * 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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * 
- * - * 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * 
- * - * 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; - bitField0_ |= 0x00000001; - 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; - bitField0_ |= 0x00000002; - 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(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - 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; - bitField0_ |= 0x00000004; - 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(); - bitField0_ = (bitField0_ & ~0x00000004); - 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; - bitField0_ |= 0x00000004; - 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 ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-     * 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; - } else { - maintenancePolicyBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - 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(); - } else { - maintenancePolicyBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - 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 (((bitField0_ & 0x00000008) != 0) - && maintenancePolicy_ != null - && maintenancePolicy_ - != com.google.container.v1beta1.MaintenancePolicy.getDefaultInstance()) { - getMaintenancePolicyBuilder().mergeFrom(value); - } else { - maintenancePolicy_ = value; - } - } else { - maintenancePolicyBuilder_.mergeFrom(value); - } - if (maintenancePolicy_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - 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() { - bitField0_ = (bitField0_ & ~0x00000008); - maintenancePolicy_ = null; - if (maintenancePolicyBuilder_ != null) { - maintenancePolicyBuilder_.dispose(); - maintenancePolicyBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000008; - 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 name) 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 name) 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 name) 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; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster name) 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(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster name) 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; - bitField0_ |= 0x00000010; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMaintenancePolicyRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMaintenancePolicyRequestOrBuilder.java deleted file mode 100644 index 662e9abb67b1..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMaintenancePolicyRequestOrBuilder.java +++ /dev/null @@ -1,180 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * 
- * - * 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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * 
- * - * 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 name) 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 name) 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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequest.java deleted file mode 100644 index f0f4c84139e6..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequest.java +++ /dev/null @@ -1,1949 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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) - } - - private int bitField0_; - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3381 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3381 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3388 - * @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]; - * - * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3388 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * - * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3392 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3392 - * @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_ = 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]; - * - * - * @return The action. - */ - @java.lang.Override - public com.google.container.v1beta1.SetMasterAuthRequest.Action getAction() { - com.google.container.v1beta1.SetMasterAuthRequest.Action result = - com.google.container.v1beta1.SetMasterAuthRequest.Action.forNumber(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 ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * 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 update_ == null ? com.google.container.v1beta1.MasterAuth.getDefaultInstance() : update_; - } - - public static final int NAME_FIELD_NUMBER = 7; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (action_ != com.google.container.v1beta1.SetMasterAuthRequest.Action.UNKNOWN.getNumber()) { - output.writeEnum(4, action_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(5, getUpdate()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - 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 (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdate()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { - getUpdateFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - action_ = 0; - update_ = null; - if (updateBuilder_ != null) { - updateBuilder_.dispose(); - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.SetMasterAuthRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.action_ = action_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000010) != 0)) { - result.update_ = updateBuilder_ == null ? update_ : updateBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.name_ = name_; - } - result.bitField0_ |= to_bitField0_; - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.action_ != 0) { - setActionValue(other.getActionValue()); - } - if (other.hasUpdate()) { - mergeUpdate(other.getUpdate()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000020; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - action_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - input.readMessage(getUpdateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 58: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3381 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3381 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3381 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3381 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3381 - * @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; - bitField0_ |= 0x00000001; - 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]; - * - * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3388 - * @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]; - * - * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3388 - * @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]; - * - * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3388 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3388 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - 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]; - * - * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3388 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * - * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3392 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3392 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3392 - * @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; - bitField0_ |= 0x00000004; - 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]; - * - * - * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3392 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - 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]; - * - * - * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3392 - * @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; - bitField0_ |= 0x00000004; - 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; - bitField0_ |= 0x00000008; - 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() { - com.google.container.v1beta1.SetMasterAuthRequest.Action result = - com.google.container.v1beta1.SetMasterAuthRequest.Action.forNumber(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(); - } - bitField0_ |= 0x00000008; - 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() { - bitField0_ = (bitField0_ & ~0x00000008); - 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 ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-     * 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; - } else { - updateBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - 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(); - } else { - updateBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - 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 (((bitField0_ & 0x00000010) != 0) - && update_ != null - && update_ != com.google.container.v1beta1.MasterAuth.getDefaultInstance()) { - getUpdateBuilder().mergeFrom(value); - } else { - update_ = value; - } - } else { - updateBuilder_.mergeFrom(value); - } - if (update_ != null) { - bitField0_ |= 0x00000010; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Required. A description of the update.
-     * 
- * - * - * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdate() { - bitField0_ = (bitField0_ & ~0x00000010); - update_ = null; - if (updateBuilder_ != null) { - updateBuilder_.dispose(); - updateBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000010; - 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; - bitField0_ |= 0x00000020; - 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(); - bitField0_ = (bitField0_ & ~0x00000020); - 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; - bitField0_ |= 0x00000020; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequestOrBuilder.java deleted file mode 100644 index 71f61304fd8a..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequestOrBuilder.java +++ /dev/null @@ -1,232 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3381 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3381 - * @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]; - * - * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3388 - * @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]; - * - * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3388 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3392 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3392 - * @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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequest.java deleted file mode 100644 index b32d4efce153..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequest.java +++ /dev/null @@ -1,1550 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3229 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3229 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3236 - * @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]; - * - * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3236 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * - * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3240 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3240 - * @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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(monitoringService_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, monitoringService_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(monitoringService_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, monitoringService_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.SetMonitoringServiceRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.monitoringService_ = monitoringService_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.name_ = name_; - } - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getMonitoringService().isEmpty()) { - monitoringService_ = other.monitoringService_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000010; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - monitoringService_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 50: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3229 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3229 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3229 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3229 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3229 - * @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; - bitField0_ |= 0x00000001; - 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]; - * - * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3236 - * @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]; - * - * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3236 - * @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]; - * - * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3236 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3236 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - 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]; - * - * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3236 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * - * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3240 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3240 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3240 - * @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; - bitField0_ |= 0x00000004; - 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]; - * - * - * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3240 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - 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]; - * - * - * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3240 - * @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; - bitField0_ |= 0x00000004; - 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; - bitField0_ |= 0x00000008; - 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(); - bitField0_ = (bitField0_ & ~0x00000008); - 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; - bitField0_ |= 0x00000008; - 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; - bitField0_ |= 0x00000010; - 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(); - bitField0_ = (bitField0_ & ~0x00000010); - 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; - bitField0_ |= 0x00000010; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequestOrBuilder.java deleted file mode 100644 index d20344e8150f..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequestOrBuilder.java +++ /dev/null @@ -1,207 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3229 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3229 - * @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]; - * - * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3236 - * @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]; - * - * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3236 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3240 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3240 - * @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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequest.java deleted file mode 100644 index 848822d6e83f..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequest.java +++ /dev/null @@ -1,1602 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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); - } - - private int bitField0_; - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4766 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4766 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4773 - * @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]; - * - * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4773 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * - * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4777 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4777 - * @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 ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * 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 networkPolicy_ == null - ? com.google.container.v1beta1.NetworkPolicy.getDefaultInstance() - : networkPolicy_; - } - - public static final int NAME_FIELD_NUMBER = 6; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * The name (project, location, cluster name) 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 name) 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(4, getNetworkPolicy()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getNetworkPolicy()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { - getNetworkPolicyFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - networkPolicy_ = null; - if (networkPolicyBuilder_ != null) { - networkPolicyBuilder_.dispose(); - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.SetNetworkPolicyRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.networkPolicy_ = - networkPolicyBuilder_ == null ? networkPolicy_ : networkPolicyBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.name_ = name_; - } - result.bitField0_ |= to_bitField0_; - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasNetworkPolicy()) { - mergeNetworkPolicy(other.getNetworkPolicy()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000010; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getNetworkPolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 50: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4766 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4766 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4766 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4766 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4766 - * @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; - bitField0_ |= 0x00000001; - 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]; - * - * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4773 - * @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]; - * - * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4773 - * @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]; - * - * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4773 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4773 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - 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]; - * - * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4773 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * - * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4777 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4777 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4777 - * @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; - bitField0_ |= 0x00000004; - 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]; - * - * - * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4777 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - 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]; - * - * - * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4777 - * @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; - bitField0_ |= 0x00000004; - 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 ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-     * 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; - } else { - networkPolicyBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - 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(); - } else { - networkPolicyBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - 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 (((bitField0_ & 0x00000008) != 0) - && networkPolicy_ != null - && networkPolicy_ != com.google.container.v1beta1.NetworkPolicy.getDefaultInstance()) { - getNetworkPolicyBuilder().mergeFrom(value); - } else { - networkPolicy_ = value; - } - } else { - networkPolicyBuilder_.mergeFrom(value); - } - if (networkPolicy_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Required. Configuration options for the NetworkPolicy feature.
-     * 
- * - * - * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearNetworkPolicy() { - bitField0_ = (bitField0_ & ~0x00000008); - networkPolicy_ = null; - if (networkPolicyBuilder_ != null) { - networkPolicyBuilder_.dispose(); - networkPolicyBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000008; - 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 name) 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 name) 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 name) 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; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster name) 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(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster name) 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; - bitField0_ |= 0x00000010; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequestOrBuilder.java deleted file mode 100644 index de827e6576e7..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequestOrBuilder.java +++ /dev/null @@ -1,203 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4766 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4766 - * @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]; - * - * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4773 - * @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]; - * - * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4773 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4777 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4777 - * @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 name) 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 name) 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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequest.java deleted file mode 100644 index fda5dffcbcd5..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequest.java +++ /dev/null @@ -1,1828 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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); - } - - private int bitField0_; - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3159 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3159 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3166 - * @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]; - * - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3166 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3170 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3170 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3175 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3175 - * @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 ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * 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 autoscaling_ == null - ? com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() - : autoscaling_; - } - - public static final int NAME_FIELD_NUMBER = 6; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(5, getAutoscaling()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAutoscaling()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { - getAutoscalingFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - nodePoolId_ = ""; - autoscaling_ = null; - if (autoscalingBuilder_ != null) { - autoscalingBuilder_.dispose(); - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.SetNodePoolAutoscalingRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.nodePoolId_ = nodePoolId_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000010) != 0)) { - result.autoscaling_ = - autoscalingBuilder_ == null ? autoscaling_ : autoscalingBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.name_ = name_; - } - result.bitField0_ |= to_bitField0_; - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getNodePoolId().isEmpty()) { - nodePoolId_ = other.nodePoolId_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (other.hasAutoscaling()) { - mergeAutoscaling(other.getAutoscaling()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000020; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - nodePoolId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage(getAutoscalingFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3159 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3159 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3159 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3159 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3159 - * @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; - bitField0_ |= 0x00000001; - 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]; - * - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3166 - * @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]; - * - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3166 - * @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]; - * - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3166 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3166 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - 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]; - * - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3166 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3170 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3170 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3170 - * @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; - bitField0_ |= 0x00000004; - 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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3170 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - 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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3170 - * @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; - bitField0_ |= 0x00000004; - 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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=3175 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=3175 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=3175 - * @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; - bitField0_ |= 0x00000008; - 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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=3175 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearNodePoolId() { - nodePoolId_ = getDefaultInstance().getNodePoolId(); - bitField0_ = (bitField0_ & ~0x00000008); - 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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=3175 - * @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; - bitField0_ |= 0x00000008; - 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 ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-     * 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; - } else { - autoscalingBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - 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(); - } else { - autoscalingBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - 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 (((bitField0_ & 0x00000010) != 0) - && autoscaling_ != null - && autoscaling_ - != com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance()) { - getAutoscalingBuilder().mergeFrom(value); - } else { - autoscaling_ = value; - } - } else { - autoscalingBuilder_.mergeFrom(value); - } - if (autoscaling_ != null) { - bitField0_ |= 0x00000010; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Required. Autoscaling configuration for the node pool.
-     * 
- * - * - * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearAutoscaling() { - bitField0_ = (bitField0_ & ~0x00000010); - autoscaling_ = null; - if (autoscalingBuilder_ != null) { - autoscalingBuilder_.dispose(); - autoscalingBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000010; - 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; - bitField0_ |= 0x00000020; - 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(); - bitField0_ = (bitField0_ & ~0x00000020); - 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; - bitField0_ |= 0x00000020; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequestOrBuilder.java deleted file mode 100644 index 75dc8b30bffa..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequestOrBuilder.java +++ /dev/null @@ -1,240 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3159 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3159 - * @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]; - * - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3166 - * @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]; - * - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3166 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3170 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3170 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3175 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3175 - * @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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequest.java deleted file mode 100644 index 959a86e91c61..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequest.java +++ /dev/null @@ -1,1828 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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); - } - - private int bitField0_; - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4229 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4229 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4236 - * @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]; - * - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4236 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4240 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4240 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4245 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4245 - * @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 ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * 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 management_ == null - ? com.google.container.v1beta1.NodeManagement.getDefaultInstance() - : management_; - } - - public static final int NAME_FIELD_NUMBER = 7; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(5, getManagement()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getManagement()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { - getManagementFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - nodePoolId_ = ""; - management_ = null; - if (managementBuilder_ != null) { - managementBuilder_.dispose(); - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.SetNodePoolManagementRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.nodePoolId_ = nodePoolId_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000010) != 0)) { - result.management_ = managementBuilder_ == null ? management_ : managementBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.name_ = name_; - } - result.bitField0_ |= to_bitField0_; - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getNodePoolId().isEmpty()) { - nodePoolId_ = other.nodePoolId_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (other.hasManagement()) { - mergeManagement(other.getManagement()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000020; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - nodePoolId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage(getManagementFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 58: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4229 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4229 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4229 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4229 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4229 - * @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; - bitField0_ |= 0x00000001; - 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]; - * - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4236 - * @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]; - * - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4236 - * @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]; - * - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4236 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4236 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - 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]; - * - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4236 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4240 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4240 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4240 - * @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; - bitField0_ |= 0x00000004; - 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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4240 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - 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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4240 - * @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; - bitField0_ |= 0x00000004; - 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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4245 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4245 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4245 - * @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; - bitField0_ |= 0x00000008; - 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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4245 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearNodePoolId() { - nodePoolId_ = getDefaultInstance().getNodePoolId(); - bitField0_ = (bitField0_ & ~0x00000008); - 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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4245 - * @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; - bitField0_ |= 0x00000008; - 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 ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-     * 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; - } else { - managementBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - 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(); - } else { - managementBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - 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 (((bitField0_ & 0x00000010) != 0) - && management_ != null - && management_ != com.google.container.v1beta1.NodeManagement.getDefaultInstance()) { - getManagementBuilder().mergeFrom(value); - } else { - management_ = value; - } - } else { - managementBuilder_.mergeFrom(value); - } - if (management_ != null) { - bitField0_ |= 0x00000010; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Required. NodeManagement configuration for the node pool.
-     * 
- * - * - * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearManagement() { - bitField0_ = (bitField0_ & ~0x00000010); - management_ = null; - if (managementBuilder_ != null) { - managementBuilder_.dispose(); - managementBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000010; - 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; - bitField0_ |= 0x00000020; - 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(); - bitField0_ = (bitField0_ & ~0x00000020); - 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; - bitField0_ |= 0x00000020; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequestOrBuilder.java deleted file mode 100644 index 0d421603c17a..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequestOrBuilder.java +++ /dev/null @@ -1,240 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4229 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4229 - * @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]; - * - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4236 - * @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]; - * - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4236 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4240 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4240 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4245 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4245 - * @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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequest.java deleted file mode 100644 index 5201681d40ad..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequest.java +++ /dev/null @@ -1,1614 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * SetNodePoolSizeRequest sets the size of 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(); - } - - 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4262 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4262 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4269 - * @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]; - * - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4269 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4273 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4273 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4278 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4278 - * @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_ = 0; - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); - } - if (nodeCount_ != 0) { - output.writeInt32(5, nodeCount_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); - } - if (nodeCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, nodeCount_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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 of 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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.SetNodePoolSizeRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.nodePoolId_ = nodePoolId_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.nodeCount_ = nodeCount_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.name_ = name_; - } - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getNodePoolId().isEmpty()) { - nodePoolId_ = other.nodePoolId_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (other.getNodeCount() != 0) { - setNodeCount(other.getNodeCount()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000020; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - nodePoolId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: - { - nodeCount_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 58: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4262 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4262 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4262 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4262 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4262 - * @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; - bitField0_ |= 0x00000001; - 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]; - * - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4269 - * @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]; - * - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4269 - * @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]; - * - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4269 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4269 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - 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]; - * - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4269 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4273 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4273 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4273 - * @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; - bitField0_ |= 0x00000004; - 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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4273 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - 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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4273 - * @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; - bitField0_ |= 0x00000004; - 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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4278 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4278 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4278 - * @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; - bitField0_ |= 0x00000008; - 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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4278 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearNodePoolId() { - nodePoolId_ = getDefaultInstance().getNodePoolId(); - bitField0_ = (bitField0_ & ~0x00000008); - 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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4278 - * @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; - bitField0_ |= 0x00000008; - 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; - bitField0_ |= 0x00000010; - 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() { - bitField0_ = (bitField0_ & ~0x00000010); - 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; - bitField0_ |= 0x00000020; - 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(); - bitField0_ = (bitField0_ & ~0x00000020); - 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; - bitField0_ |= 0x00000020; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequestOrBuilder.java deleted file mode 100644 index 4b67c5fea6b7..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequestOrBuilder.java +++ /dev/null @@ -1,212 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4262 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4262 - * @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]; - * - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4269 - * @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]; - * - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4269 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4273 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4273 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4278 - * @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]; - * - * - * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4278 - * @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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedInstanceConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedInstanceConfig.java deleted file mode 100644 index 13b5bff298c1..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedInstanceConfig.java +++ /dev/null @@ -1,664 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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_ = false; - /** - * - * - *
-   * 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_ = false; - /** - * - * - *
-   * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.ShieldedInstanceConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enableSecureBoot_ = enableSecureBoot_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.enableIntegrityMonitoring_ = enableIntegrityMonitoring_; - } - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enableSecureBoot_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - enableIntegrityMonitoring_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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() { - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000002; - 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() { - bitField0_ = (bitField0_ & ~0x00000002); - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedInstanceConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedInstanceConfigOrBuilder.java deleted file mode 100644 index 62a35d374dce..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedInstanceConfigOrBuilder.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedNodes.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedNodes.java deleted file mode 100644 index 0d03c2de33a8..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedNodes.java +++ /dev/null @@ -1,534 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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_ = false; - /** - * - * - *
-   * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 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_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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.ShieldedNodes result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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() { - bitField0_ = (bitField0_ & ~0x00000001); - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedNodesOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedNodesOrBuilder.java deleted file mode 100644 index 607c647bdbc7..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedNodesOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SoleTenantConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SoleTenantConfig.java deleted file mode 100644 index c8f97cbae6a6..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SoleTenantConfig.java +++ /dev/null @@ -1,2308 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * SoleTenantConfig contains the NodeAffinities to specify what shared sole
- * tenant node groups should back the node pool.
- * 
- * - * Protobuf type {@code google.container.v1beta1.SoleTenantConfig} - */ -public final class SoleTenantConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.SoleTenantConfig) - SoleTenantConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use SoleTenantConfig.newBuilder() to construct. - private SoleTenantConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SoleTenantConfig() { - nodeAffinities_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SoleTenantConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_SoleTenantConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_SoleTenantConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.SoleTenantConfig.class, - com.google.container.v1beta1.SoleTenantConfig.Builder.class); - } - - public interface NodeAffinityOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SoleTenantConfig.NodeAffinity) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Key for NodeAffinity.
-     * 
- * - * string key = 1; - * - * @return The key. - */ - java.lang.String getKey(); - /** - * - * - *
-     * Key for NodeAffinity.
-     * 
- * - * string key = 1; - * - * @return The bytes for key. - */ - com.google.protobuf.ByteString getKeyBytes(); - - /** - * - * - *
-     * Operator for NodeAffinity.
-     * 
- * - * .google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator operator = 2; - * - * @return The enum numeric value on the wire for operator. - */ - int getOperatorValue(); - /** - * - * - *
-     * Operator for NodeAffinity.
-     * 
- * - * .google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator operator = 2; - * - * @return The operator. - */ - com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator getOperator(); - - /** - * - * - *
-     * Values for NodeAffinity.
-     * 
- * - * repeated string values = 3; - * - * @return A list containing the values. - */ - java.util.List getValuesList(); - /** - * - * - *
-     * Values for NodeAffinity.
-     * 
- * - * repeated string values = 3; - * - * @return The count of values. - */ - int getValuesCount(); - /** - * - * - *
-     * Values for NodeAffinity.
-     * 
- * - * 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); - /** - * - * - *
-     * Values for NodeAffinity.
-     * 
- * - * 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); - } - /** - * - * - *
-   * Specifies the NodeAffinity key, values, and affinity operator according to
-   * [shared sole tenant node group
-   * affinities](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes#node_affinity_and_anti-affinity).
-   * 
- * - * Protobuf type {@code google.container.v1beta1.SoleTenantConfig.NodeAffinity} - */ - public static final class NodeAffinity extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.SoleTenantConfig.NodeAffinity) - NodeAffinityOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeAffinity.newBuilder() to construct. - private NodeAffinity(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NodeAffinity() { - key_ = ""; - operator_ = 0; - values_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NodeAffinity(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_SoleTenantConfig_NodeAffinity_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_SoleTenantConfig_NodeAffinity_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.class, - com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Builder.class); - } - - /** - * - * - *
-     * Operator allows user to specify affinity or anti-affinity for the
-     * given key values.
-     * 
- * - * Protobuf enum {@code google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator} - */ - public enum Operator implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-       * Invalid or unspecified affinity operator.
-       * 
- * - * OPERATOR_UNSPECIFIED = 0; - */ - OPERATOR_UNSPECIFIED(0), - /** - * - * - *
-       * Affinity operator.
-       * 
- * - * IN = 1; - */ - IN(1), - /** - * - * - *
-       * Anti-affinity operator.
-       * 
- * - * NOT_IN = 2; - */ - NOT_IN(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-       * Invalid or unspecified affinity operator.
-       * 
- * - * OPERATOR_UNSPECIFIED = 0; - */ - public static final int OPERATOR_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-       * Affinity operator.
-       * 
- * - * IN = 1; - */ - public static final int IN_VALUE = 1; - /** - * - * - *
-       * Anti-affinity operator.
-       * 
- * - * NOT_IN = 2; - */ - public static final int NOT_IN_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 Operator 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 Operator forNumber(int value) { - switch (value) { - case 0: - return OPERATOR_UNSPECIFIED; - case 1: - return IN; - case 2: - return NOT_IN; - 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 Operator findValueByNumber(int number) { - return Operator.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.SoleTenantConfig.NodeAffinity.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final Operator[] VALUES = values(); - - public static Operator 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 Operator(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator) - } - - public static final int KEY_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object key_ = ""; - /** - * - * - *
-     * Key for NodeAffinity.
-     * 
- * - * 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 NodeAffinity.
-     * 
- * - * 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 OPERATOR_FIELD_NUMBER = 2; - private int operator_ = 0; - /** - * - * - *
-     * Operator for NodeAffinity.
-     * 
- * - * .google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator operator = 2; - * - * @return The enum numeric value on the wire for operator. - */ - @java.lang.Override - public int getOperatorValue() { - return operator_; - } - /** - * - * - *
-     * Operator for NodeAffinity.
-     * 
- * - * .google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator operator = 2; - * - * @return The operator. - */ - @java.lang.Override - public com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator getOperator() { - com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator result = - com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator.forNumber(operator_); - return result == null - ? com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator.UNRECOGNIZED - : result; - } - - public static final int VALUES_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-     * Values for NodeAffinity.
-     * 
- * - * repeated string values = 3; - * - * @return A list containing the values. - */ - public com.google.protobuf.ProtocolStringList getValuesList() { - return values_; - } - /** - * - * - *
-     * Values for NodeAffinity.
-     * 
- * - * repeated string values = 3; - * - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - /** - * - * - *
-     * Values for NodeAffinity.
-     * 
- * - * 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); - } - /** - * - * - *
-     * Values for NodeAffinity.
-     * 
- * - * 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); - } - if (operator_ - != com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator - .OPERATOR_UNSPECIFIED - .getNumber()) { - output.writeEnum(2, operator_); - } - for (int i = 0; i < values_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, values_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); - } - if (operator_ - != com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator - .OPERATOR_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, operator_); - } - { - int dataSize = 0; - for (int i = 0; i < values_.size(); i++) { - dataSize += computeStringSizeNoTag(values_.getRaw(i)); - } - size += dataSize; - size += 1 * getValuesList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.SoleTenantConfig.NodeAffinity)) { - return super.equals(obj); - } - com.google.container.v1beta1.SoleTenantConfig.NodeAffinity other = - (com.google.container.v1beta1.SoleTenantConfig.NodeAffinity) obj; - - if (!getKey().equals(other.getKey())) return false; - if (operator_ != other.operator_) return false; - if (!getValuesList().equals(other.getValuesList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + OPERATOR_FIELD_NUMBER; - hash = (53 * hash) + operator_; - if (getValuesCount() > 0) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValuesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.SoleTenantConfig.NodeAffinity parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.SoleTenantConfig.NodeAffinity parseFrom( - 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.SoleTenantConfig.NodeAffinity parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.SoleTenantConfig.NodeAffinity parseFrom( - com.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.SoleTenantConfig.NodeAffinity parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.SoleTenantConfig.NodeAffinity parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.SoleTenantConfig.NodeAffinity parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.SoleTenantConfig.NodeAffinity parseFrom( - java.io.InputStream 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.SoleTenantConfig.NodeAffinity parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.SoleTenantConfig.NodeAffinity parseDelimitedFrom( - java.io.InputStream 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.SoleTenantConfig.NodeAffinity parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.SoleTenantConfig.NodeAffinity parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.SoleTenantConfig.NodeAffinity prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Specifies the NodeAffinity key, values, and affinity operator according to
-     * [shared sole tenant node group
-     * affinities](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes#node_affinity_and_anti-affinity).
-     * 
- * - * Protobuf type {@code google.container.v1beta1.SoleTenantConfig.NodeAffinity} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.SoleTenantConfig.NodeAffinity) - com.google.container.v1beta1.SoleTenantConfig.NodeAffinityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_SoleTenantConfig_NodeAffinity_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_SoleTenantConfig_NodeAffinity_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.class, - com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Builder.class); - } - - // Construct using com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - key_ = ""; - operator_ = 0; - values_ = com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_SoleTenantConfig_NodeAffinity_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.SoleTenantConfig.NodeAffinity - getDefaultInstanceForType() { - return com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.SoleTenantConfig.NodeAffinity build() { - com.google.container.v1beta1.SoleTenantConfig.NodeAffinity result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.SoleTenantConfig.NodeAffinity buildPartial() { - com.google.container.v1beta1.SoleTenantConfig.NodeAffinity result = - new com.google.container.v1beta1.SoleTenantConfig.NodeAffinity(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.container.v1beta1.SoleTenantConfig.NodeAffinity result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.key_ = key_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.operator_ = operator_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - values_.makeImmutable(); - result.values_ = values_; - } - } - - @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.SoleTenantConfig.NodeAffinity) { - return mergeFrom((com.google.container.v1beta1.SoleTenantConfig.NodeAffinity) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.SoleTenantConfig.NodeAffinity other) { - if (other - == com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.getDefaultInstance()) - return this; - if (!other.getKey().isEmpty()) { - key_ = other.key_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.operator_ != 0) { - setOperatorValue(other.getOperatorValue()); - } - if (!other.values_.isEmpty()) { - if (values_.isEmpty()) { - values_ = other.values_; - bitField0_ |= 0x00000004; - } else { - ensureValuesIsMutable(); - values_.addAll(other.values_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - key_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - operator_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureValuesIsMutable(); - values_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object key_ = ""; - /** - * - * - *
-       * Key for NodeAffinity.
-       * 
- * - * 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 NodeAffinity.
-       * 
- * - * 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 NodeAffinity.
-       * 
- * - * 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * Key for NodeAffinity.
-       * 
- * - * string key = 1; - * - * @return This builder for chaining. - */ - public Builder clearKey() { - key_ = getDefaultInstance().getKey(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-       * Key for NodeAffinity.
-       * 
- * - * 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int operator_ = 0; - /** - * - * - *
-       * Operator for NodeAffinity.
-       * 
- * - * .google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator operator = 2; - * - * @return The enum numeric value on the wire for operator. - */ - @java.lang.Override - public int getOperatorValue() { - return operator_; - } - /** - * - * - *
-       * Operator for NodeAffinity.
-       * 
- * - * .google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator operator = 2; - * - * @param value The enum numeric value on the wire for operator to set. - * @return This builder for chaining. - */ - public Builder setOperatorValue(int value) { - operator_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-       * Operator for NodeAffinity.
-       * 
- * - * .google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator operator = 2; - * - * @return The operator. - */ - @java.lang.Override - public com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator getOperator() { - com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator result = - com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator.forNumber( - operator_); - return result == null - ? com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator.UNRECOGNIZED - : result; - } - /** - * - * - *
-       * Operator for NodeAffinity.
-       * 
- * - * .google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator operator = 2; - * - * @param value The operator to set. - * @return This builder for chaining. - */ - public Builder setOperator( - com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - operator_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * Operator for NodeAffinity.
-       * 
- * - * .google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator operator = 2; - * - * @return This builder for chaining. - */ - public Builder clearOperator() { - bitField0_ = (bitField0_ & ~0x00000002); - operator_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureValuesIsMutable() { - if (!values_.isModifiable()) { - values_ = new com.google.protobuf.LazyStringArrayList(values_); - } - bitField0_ |= 0x00000004; - } - /** - * - * - *
-       * Values for NodeAffinity.
-       * 
- * - * repeated string values = 3; - * - * @return A list containing the values. - */ - public com.google.protobuf.ProtocolStringList getValuesList() { - values_.makeImmutable(); - return values_; - } - /** - * - * - *
-       * Values for NodeAffinity.
-       * 
- * - * repeated string values = 3; - * - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - /** - * - * - *
-       * Values for NodeAffinity.
-       * 
- * - * 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); - } - /** - * - * - *
-       * Values for NodeAffinity.
-       * 
- * - * 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); - } - /** - * - * - *
-       * Values for NodeAffinity.
-       * 
- * - * 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); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-       * Values for NodeAffinity.
-       * 
- * - * 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); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-       * Values for NodeAffinity.
-       * 
- * - * 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_); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-       * Values for NodeAffinity.
-       * 
- * - * repeated string values = 3; - * - * @return This builder for chaining. - */ - public Builder clearValues() { - values_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; - onChanged(); - return this; - } - /** - * - * - *
-       * Values for NodeAffinity.
-       * 
- * - * 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); - bitField0_ |= 0x00000004; - 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.SoleTenantConfig.NodeAffinity) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.SoleTenantConfig.NodeAffinity) - private static final com.google.container.v1beta1.SoleTenantConfig.NodeAffinity - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.SoleTenantConfig.NodeAffinity(); - } - - public static com.google.container.v1beta1.SoleTenantConfig.NodeAffinity getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeAffinity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.SoleTenantConfig.NodeAffinity getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public static final int NODE_AFFINITIES_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List - nodeAffinities_; - /** - * - * - *
-   * NodeAffinities used to match to a shared sole tenant node group.
-   * 
- * - * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; - * - */ - @java.lang.Override - public java.util.List - getNodeAffinitiesList() { - return nodeAffinities_; - } - /** - * - * - *
-   * NodeAffinities used to match to a shared sole tenant node group.
-   * 
- * - * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; - * - */ - @java.lang.Override - public java.util.List< - ? extends com.google.container.v1beta1.SoleTenantConfig.NodeAffinityOrBuilder> - getNodeAffinitiesOrBuilderList() { - return nodeAffinities_; - } - /** - * - * - *
-   * NodeAffinities used to match to a shared sole tenant node group.
-   * 
- * - * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; - * - */ - @java.lang.Override - public int getNodeAffinitiesCount() { - return nodeAffinities_.size(); - } - /** - * - * - *
-   * NodeAffinities used to match to a shared sole tenant node group.
-   * 
- * - * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; - * - */ - @java.lang.Override - public com.google.container.v1beta1.SoleTenantConfig.NodeAffinity getNodeAffinities(int index) { - return nodeAffinities_.get(index); - } - /** - * - * - *
-   * NodeAffinities used to match to a shared sole tenant node group.
-   * 
- * - * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; - * - */ - @java.lang.Override - public com.google.container.v1beta1.SoleTenantConfig.NodeAffinityOrBuilder - getNodeAffinitiesOrBuilder(int index) { - return nodeAffinities_.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 < nodeAffinities_.size(); i++) { - output.writeMessage(1, nodeAffinities_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < nodeAffinities_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, nodeAffinities_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.SoleTenantConfig)) { - return super.equals(obj); - } - com.google.container.v1beta1.SoleTenantConfig other = - (com.google.container.v1beta1.SoleTenantConfig) obj; - - if (!getNodeAffinitiesList().equals(other.getNodeAffinitiesList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getNodeAffinitiesCount() > 0) { - hash = (37 * hash) + NODE_AFFINITIES_FIELD_NUMBER; - hash = (53 * hash) + getNodeAffinitiesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.SoleTenantConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.SoleTenantConfig parseFrom( - 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.SoleTenantConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.SoleTenantConfig parseFrom( - com.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.SoleTenantConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.SoleTenantConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.SoleTenantConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.SoleTenantConfig parseFrom( - java.io.InputStream 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.SoleTenantConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.SoleTenantConfig parseDelimitedFrom( - java.io.InputStream 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.SoleTenantConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.SoleTenantConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.SoleTenantConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * SoleTenantConfig contains the NodeAffinities to specify what shared sole
-   * tenant node groups should back the node pool.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.SoleTenantConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.SoleTenantConfig) - com.google.container.v1beta1.SoleTenantConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_SoleTenantConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_SoleTenantConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.SoleTenantConfig.class, - com.google.container.v1beta1.SoleTenantConfig.Builder.class); - } - - // Construct using com.google.container.v1beta1.SoleTenantConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (nodeAffinitiesBuilder_ == null) { - nodeAffinities_ = java.util.Collections.emptyList(); - } else { - nodeAffinities_ = null; - nodeAffinitiesBuilder_.clear(); - } - 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_SoleTenantConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.SoleTenantConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.SoleTenantConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.SoleTenantConfig build() { - com.google.container.v1beta1.SoleTenantConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.SoleTenantConfig buildPartial() { - com.google.container.v1beta1.SoleTenantConfig result = - new com.google.container.v1beta1.SoleTenantConfig(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.container.v1beta1.SoleTenantConfig result) { - if (nodeAffinitiesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - nodeAffinities_ = java.util.Collections.unmodifiableList(nodeAffinities_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.nodeAffinities_ = nodeAffinities_; - } else { - result.nodeAffinities_ = nodeAffinitiesBuilder_.build(); - } - } - - private void buildPartial0(com.google.container.v1beta1.SoleTenantConfig result) { - int from_bitField0_ = bitField0_; - } - - @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.SoleTenantConfig) { - return mergeFrom((com.google.container.v1beta1.SoleTenantConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.SoleTenantConfig other) { - if (other == com.google.container.v1beta1.SoleTenantConfig.getDefaultInstance()) return this; - if (nodeAffinitiesBuilder_ == null) { - if (!other.nodeAffinities_.isEmpty()) { - if (nodeAffinities_.isEmpty()) { - nodeAffinities_ = other.nodeAffinities_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNodeAffinitiesIsMutable(); - nodeAffinities_.addAll(other.nodeAffinities_); - } - onChanged(); - } - } else { - if (!other.nodeAffinities_.isEmpty()) { - if (nodeAffinitiesBuilder_.isEmpty()) { - nodeAffinitiesBuilder_.dispose(); - nodeAffinitiesBuilder_ = null; - nodeAffinities_ = other.nodeAffinities_; - bitField0_ = (bitField0_ & ~0x00000001); - nodeAffinitiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNodeAffinitiesFieldBuilder() - : null; - } else { - nodeAffinitiesBuilder_.addAllMessages(other.nodeAffinities_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.container.v1beta1.SoleTenantConfig.NodeAffinity m = - input.readMessage( - com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.parser(), - extensionRegistry); - if (nodeAffinitiesBuilder_ == null) { - ensureNodeAffinitiesIsMutable(); - nodeAffinities_.add(m); - } else { - nodeAffinitiesBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List - nodeAffinities_ = java.util.Collections.emptyList(); - - private void ensureNodeAffinitiesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - nodeAffinities_ = - new java.util.ArrayList( - nodeAffinities_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.SoleTenantConfig.NodeAffinity, - com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Builder, - com.google.container.v1beta1.SoleTenantConfig.NodeAffinityOrBuilder> - nodeAffinitiesBuilder_; - - /** - * - * - *
-     * NodeAffinities used to match to a shared sole tenant node group.
-     * 
- * - * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; - * - */ - public java.util.List - getNodeAffinitiesList() { - if (nodeAffinitiesBuilder_ == null) { - return java.util.Collections.unmodifiableList(nodeAffinities_); - } else { - return nodeAffinitiesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * NodeAffinities used to match to a shared sole tenant node group.
-     * 
- * - * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; - * - */ - public int getNodeAffinitiesCount() { - if (nodeAffinitiesBuilder_ == null) { - return nodeAffinities_.size(); - } else { - return nodeAffinitiesBuilder_.getCount(); - } - } - /** - * - * - *
-     * NodeAffinities used to match to a shared sole tenant node group.
-     * 
- * - * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; - * - */ - public com.google.container.v1beta1.SoleTenantConfig.NodeAffinity getNodeAffinities(int index) { - if (nodeAffinitiesBuilder_ == null) { - return nodeAffinities_.get(index); - } else { - return nodeAffinitiesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * NodeAffinities used to match to a shared sole tenant node group.
-     * 
- * - * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; - * - */ - public Builder setNodeAffinities( - int index, com.google.container.v1beta1.SoleTenantConfig.NodeAffinity value) { - if (nodeAffinitiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeAffinitiesIsMutable(); - nodeAffinities_.set(index, value); - onChanged(); - } else { - nodeAffinitiesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * NodeAffinities used to match to a shared sole tenant node group.
-     * 
- * - * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; - * - */ - public Builder setNodeAffinities( - int index, - com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Builder builderForValue) { - if (nodeAffinitiesBuilder_ == null) { - ensureNodeAffinitiesIsMutable(); - nodeAffinities_.set(index, builderForValue.build()); - onChanged(); - } else { - nodeAffinitiesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * NodeAffinities used to match to a shared sole tenant node group.
-     * 
- * - * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; - * - */ - public Builder addNodeAffinities( - com.google.container.v1beta1.SoleTenantConfig.NodeAffinity value) { - if (nodeAffinitiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeAffinitiesIsMutable(); - nodeAffinities_.add(value); - onChanged(); - } else { - nodeAffinitiesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * NodeAffinities used to match to a shared sole tenant node group.
-     * 
- * - * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; - * - */ - public Builder addNodeAffinities( - int index, com.google.container.v1beta1.SoleTenantConfig.NodeAffinity value) { - if (nodeAffinitiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeAffinitiesIsMutable(); - nodeAffinities_.add(index, value); - onChanged(); - } else { - nodeAffinitiesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * NodeAffinities used to match to a shared sole tenant node group.
-     * 
- * - * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; - * - */ - public Builder addNodeAffinities( - com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Builder builderForValue) { - if (nodeAffinitiesBuilder_ == null) { - ensureNodeAffinitiesIsMutable(); - nodeAffinities_.add(builderForValue.build()); - onChanged(); - } else { - nodeAffinitiesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * NodeAffinities used to match to a shared sole tenant node group.
-     * 
- * - * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; - * - */ - public Builder addNodeAffinities( - int index, - com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Builder builderForValue) { - if (nodeAffinitiesBuilder_ == null) { - ensureNodeAffinitiesIsMutable(); - nodeAffinities_.add(index, builderForValue.build()); - onChanged(); - } else { - nodeAffinitiesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * NodeAffinities used to match to a shared sole tenant node group.
-     * 
- * - * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; - * - */ - public Builder addAllNodeAffinities( - java.lang.Iterable - values) { - if (nodeAffinitiesBuilder_ == null) { - ensureNodeAffinitiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodeAffinities_); - onChanged(); - } else { - nodeAffinitiesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * NodeAffinities used to match to a shared sole tenant node group.
-     * 
- * - * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; - * - */ - public Builder clearNodeAffinities() { - if (nodeAffinitiesBuilder_ == null) { - nodeAffinities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - nodeAffinitiesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * NodeAffinities used to match to a shared sole tenant node group.
-     * 
- * - * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; - * - */ - public Builder removeNodeAffinities(int index) { - if (nodeAffinitiesBuilder_ == null) { - ensureNodeAffinitiesIsMutable(); - nodeAffinities_.remove(index); - onChanged(); - } else { - nodeAffinitiesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * NodeAffinities used to match to a shared sole tenant node group.
-     * 
- * - * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; - * - */ - public com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Builder - getNodeAffinitiesBuilder(int index) { - return getNodeAffinitiesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * NodeAffinities used to match to a shared sole tenant node group.
-     * 
- * - * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; - * - */ - public com.google.container.v1beta1.SoleTenantConfig.NodeAffinityOrBuilder - getNodeAffinitiesOrBuilder(int index) { - if (nodeAffinitiesBuilder_ == null) { - return nodeAffinities_.get(index); - } else { - return nodeAffinitiesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * NodeAffinities used to match to a shared sole tenant node group.
-     * 
- * - * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; - * - */ - public java.util.List< - ? extends com.google.container.v1beta1.SoleTenantConfig.NodeAffinityOrBuilder> - getNodeAffinitiesOrBuilderList() { - if (nodeAffinitiesBuilder_ != null) { - return nodeAffinitiesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(nodeAffinities_); - } - } - /** - * - * - *
-     * NodeAffinities used to match to a shared sole tenant node group.
-     * 
- * - * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; - * - */ - public com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Builder - addNodeAffinitiesBuilder() { - return getNodeAffinitiesFieldBuilder() - .addBuilder( - com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.getDefaultInstance()); - } - /** - * - * - *
-     * NodeAffinities used to match to a shared sole tenant node group.
-     * 
- * - * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; - * - */ - public com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Builder - addNodeAffinitiesBuilder(int index) { - return getNodeAffinitiesFieldBuilder() - .addBuilder( - index, - com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.getDefaultInstance()); - } - /** - * - * - *
-     * NodeAffinities used to match to a shared sole tenant node group.
-     * 
- * - * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; - * - */ - public java.util.List - getNodeAffinitiesBuilderList() { - return getNodeAffinitiesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.SoleTenantConfig.NodeAffinity, - com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Builder, - com.google.container.v1beta1.SoleTenantConfig.NodeAffinityOrBuilder> - getNodeAffinitiesFieldBuilder() { - if (nodeAffinitiesBuilder_ == null) { - nodeAffinitiesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.SoleTenantConfig.NodeAffinity, - com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Builder, - com.google.container.v1beta1.SoleTenantConfig.NodeAffinityOrBuilder>( - nodeAffinities_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - nodeAffinities_ = null; - } - return nodeAffinitiesBuilder_; - } - - @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.SoleTenantConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.SoleTenantConfig) - private static final com.google.container.v1beta1.SoleTenantConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.SoleTenantConfig(); - } - - public static com.google.container.v1beta1.SoleTenantConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SoleTenantConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.SoleTenantConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SoleTenantConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SoleTenantConfigOrBuilder.java deleted file mode 100644 index d7787de3ef3f..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SoleTenantConfigOrBuilder.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface SoleTenantConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SoleTenantConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * NodeAffinities used to match to a shared sole tenant node group.
-   * 
- * - * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; - * - */ - java.util.List - getNodeAffinitiesList(); - /** - * - * - *
-   * NodeAffinities used to match to a shared sole tenant node group.
-   * 
- * - * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; - * - */ - com.google.container.v1beta1.SoleTenantConfig.NodeAffinity getNodeAffinities(int index); - /** - * - * - *
-   * NodeAffinities used to match to a shared sole tenant node group.
-   * 
- * - * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; - * - */ - int getNodeAffinitiesCount(); - /** - * - * - *
-   * NodeAffinities used to match to a shared sole tenant node group.
-   * 
- * - * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; - * - */ - java.util.List - getNodeAffinitiesOrBuilderList(); - /** - * - * - *
-   * NodeAffinities used to match to a shared sole tenant node group.
-   * 
- * - * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; - * - */ - com.google.container.v1beta1.SoleTenantConfig.NodeAffinityOrBuilder getNodeAffinitiesOrBuilder( - int index); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StackType.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StackType.java deleted file mode 100644 index d55f5ff7ded8..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StackType.java +++ /dev/null @@ -1,177 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * Possible values for IP stack type
- * 
- * - * Protobuf enum {@code google.container.v1beta1.StackType} - */ -public enum StackType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * By default, the clusters will be IPV4 only
-   * 
- * - * STACK_TYPE_UNSPECIFIED = 0; - */ - STACK_TYPE_UNSPECIFIED(0), - /** - * - * - *
-   * The value used if the cluster is a IPV4 only
-   * 
- * - * IPV4 = 1; - */ - IPV4(1), - /** - * - * - *
-   * The value used if the cluster is a dual stack cluster
-   * 
- * - * IPV4_IPV6 = 2; - */ - IPV4_IPV6(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * By default, the clusters will be IPV4 only
-   * 
- * - * STACK_TYPE_UNSPECIFIED = 0; - */ - public static final int STACK_TYPE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * The value used if the cluster is a IPV4 only
-   * 
- * - * IPV4 = 1; - */ - public static final int IPV4_VALUE = 1; - /** - * - * - *
-   * The value used if the cluster is a dual stack cluster
-   * 
- * - * IPV4_IPV6 = 2; - */ - public static final int IPV4_IPV6_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 StackType 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 StackType forNumber(int value) { - switch (value) { - case 0: - return STACK_TYPE_UNSPECIFIED; - case 1: - return IPV4; - case 2: - return IPV4_IPV6; - 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 StackType findValueByNumber(int number) { - return StackType.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(4); - } - - private static final StackType[] VALUES = values(); - - public static StackType 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 StackType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1beta1.StackType) -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequest.java deleted file mode 100644 index 29afc1fa7bf2..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequest.java +++ /dev/null @@ -1,1392 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4587 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4587 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4594 - * @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]; - * - * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4594 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * - * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4598 - * @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]; - * - * - * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4598 - * @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; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * The name (project, location, cluster name) 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 name) 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_ = false; - /** - * - * - *
-   * 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); - } - if (rotateCredentials_ != false) { - output.writeBool(7, rotateCredentials_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); - } - if (rotateCredentials_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, rotateCredentials_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.StartIPRotationRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.rotateCredentials_ = rotateCredentials_; - } - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (other.getRotateCredentials() != false) { - setRotateCredentials(other.getRotateCredentials()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 50: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 50 - case 56: - { - rotateCredentials_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 56 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4587 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4587 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4587 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4587 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4587 - * @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; - bitField0_ |= 0x00000001; - 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]; - * - * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4594 - * @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]; - * - * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4594 - * @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]; - * - * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4594 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4594 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - 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]; - * - * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4594 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * - * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4598 - * @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]; - * - * - * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4598 - * @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]; - * - * - * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4598 - * @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; - bitField0_ |= 0x00000004; - 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]; - * - * - * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4598 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - 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]; - * - * - * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4598 - * @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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name (project, location, cluster name) 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 name) 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 name) 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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster name) 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(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster name) 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; - bitField0_ |= 0x00000008; - 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; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether to rotate credentials during IP rotation.
-     * 
- * - * bool rotate_credentials = 7; - * - * @return This builder for chaining. - */ - public Builder clearRotateCredentials() { - bitField0_ = (bitField0_ & ~0x00000010); - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequestOrBuilder.java deleted file mode 100644 index bddd87864aac..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequestOrBuilder.java +++ /dev/null @@ -1,175 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4587 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4587 - * @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]; - * - * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4594 - * @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]; - * - * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4594 - * @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]; - * - * - * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4598 - * @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]; - * - * - * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4598 - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getClusterIdBytes(); - - /** - * - * - *
-   * The name (project, location, cluster name) 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 name) 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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatefulHAConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatefulHAConfig.java deleted file mode 100644 index 307d0d191211..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatefulHAConfig.java +++ /dev/null @@ -1,534 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * Configuration for the Stateful HA add-on.
- * 
- * - * Protobuf type {@code google.container.v1beta1.StatefulHAConfig} - */ -public final class StatefulHAConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.StatefulHAConfig) - StatefulHAConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use StatefulHAConfig.newBuilder() to construct. - private StatefulHAConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private StatefulHAConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new StatefulHAConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_StatefulHAConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_StatefulHAConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.StatefulHAConfig.class, - com.google.container.v1beta1.StatefulHAConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * Whether the Stateful HA add-on 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.StatefulHAConfig)) { - return super.equals(obj); - } - com.google.container.v1beta1.StatefulHAConfig other = - (com.google.container.v1beta1.StatefulHAConfig) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.StatefulHAConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.StatefulHAConfig parseFrom( - 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.StatefulHAConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.StatefulHAConfig parseFrom( - com.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.StatefulHAConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.StatefulHAConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.StatefulHAConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.StatefulHAConfig parseFrom( - java.io.InputStream 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.StatefulHAConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.StatefulHAConfig parseDelimitedFrom( - java.io.InputStream 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.StatefulHAConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.StatefulHAConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.StatefulHAConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 Stateful HA add-on.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.StatefulHAConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.StatefulHAConfig) - com.google.container.v1beta1.StatefulHAConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_StatefulHAConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_StatefulHAConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.StatefulHAConfig.class, - com.google.container.v1beta1.StatefulHAConfig.Builder.class); - } - - // Construct using com.google.container.v1beta1.StatefulHAConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 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_StatefulHAConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.StatefulHAConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.StatefulHAConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.StatefulHAConfig build() { - com.google.container.v1beta1.StatefulHAConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.StatefulHAConfig buildPartial() { - com.google.container.v1beta1.StatefulHAConfig result = - new com.google.container.v1beta1.StatefulHAConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.StatefulHAConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @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.StatefulHAConfig) { - return mergeFrom((com.google.container.v1beta1.StatefulHAConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.StatefulHAConfig other) { - if (other == com.google.container.v1beta1.StatefulHAConfig.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean enabled_; - /** - * - * - *
-     * Whether the Stateful HA add-on is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Whether the Stateful HA add-on 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether the Stateful HA add-on is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - 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.StatefulHAConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.StatefulHAConfig) - private static final com.google.container.v1beta1.StatefulHAConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.StatefulHAConfig(); - } - - public static com.google.container.v1beta1.StatefulHAConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StatefulHAConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.StatefulHAConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatefulHAConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatefulHAConfigOrBuilder.java deleted file mode 100644 index 9e45c084f0dc..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatefulHAConfigOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface StatefulHAConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.StatefulHAConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether the Stateful HA add-on is enabled for this cluster.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusCondition.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusCondition.java deleted file mode 100644 index e2ed2726cafd..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusCondition.java +++ /dev/null @@ -1,1204 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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} - */ - @java.lang.Deprecated - 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.
-     * 
- * - * CLOUD_KMS_KEY_ERROR = 7; - */ - CLOUD_KMS_KEY_ERROR(7), - /** - * - * - *
-     * Cluster CA is expiring soon.
-     * More codes TBA
-     * 
- * - * CA_EXPIRING = 9; - */ - CA_EXPIRING(9), - 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.
-     * 
- * - * CLOUD_KMS_KEY_ERROR = 7; - */ - public static final int CLOUD_KMS_KEY_ERROR_VALUE = 7; - /** - * - * - *
-     * Cluster CA is expiring soon.
-     * More codes TBA
-     * 
- * - * CA_EXPIRING = 9; - */ - public static final int CA_EXPIRING_VALUE = 9; - - 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; - case 9: - return CA_EXPIRING; - 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_ = 0; - /** - * - * - *
-   * Machine-friendly representation of the condition
-   * Deprecated. Use canonical_code instead.
-   * 
- * - * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; - * - * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4895 - * @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]; - * - * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4895 - * @return The code. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.container.v1beta1.StatusCondition.Code getCode() { - com.google.container.v1beta1.StatusCondition.Code result = - com.google.container.v1beta1.StatusCondition.Code.forNumber(code_); - return result == null ? com.google.container.v1beta1.StatusCondition.Code.UNRECOGNIZED : result; - } - - public static final int MESSAGE_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - 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_ = 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; - * - * @return The canonicalCode. - */ - @java.lang.Override - public com.google.rpc.Code getCanonicalCode() { - com.google.rpc.Code result = com.google.rpc.Code.forNumber(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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); - } - if (canonicalCode_ != com.google.rpc.Code.OK.getNumber()) { - output.writeEnum(3, canonicalCode_); - } - getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); - } - if (canonicalCode_ != com.google.rpc.Code.OK.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, canonicalCode_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.StatusCondition result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.code_ = code_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.message_ = message_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.canonicalCode_ = canonicalCode_; - } - } - - @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_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.canonicalCode_ != 0) { - setCanonicalCodeValue(other.getCanonicalCodeValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - code_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - message_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - canonicalCode_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int code_ = 0; - /** - * - * - *
-     * Machine-friendly representation of the condition
-     * Deprecated. Use canonical_code instead.
-     * 
- * - * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; - * - * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4895 - * @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]; - * - * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4895 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Machine-friendly representation of the condition
-     * Deprecated. Use canonical_code instead.
-     * 
- * - * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; - * - * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4895 - * @return The code. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.container.v1beta1.StatusCondition.Code getCode() { - com.google.container.v1beta1.StatusCondition.Code result = - com.google.container.v1beta1.StatusCondition.Code.forNumber(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]; - * - * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4895 - * @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(); - } - bitField0_ |= 0x00000001; - 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]; - * - * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4895 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearCode() { - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Human-friendly representation of the condition
-     * 
- * - * string message = 2; - * - * @return This builder for chaining. - */ - public Builder clearMessage() { - message_ = getDefaultInstance().getMessage(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - 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; - bitField0_ |= 0x00000004; - 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() { - com.google.rpc.Code result = com.google.rpc.Code.forNumber(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(); - } - bitField0_ |= 0x00000004; - 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() { - bitField0_ = (bitField0_ & ~0x00000004); - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusConditionOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusConditionOrBuilder.java deleted file mode 100644 index b5467b571619..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusConditionOrBuilder.java +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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]; - * - * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4895 - * @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]; - * - * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4895 - * @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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TimeWindow.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TimeWindow.java deleted file mode 100644 index 293476302462..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TimeWindow.java +++ /dev/null @@ -1,1400 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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); - } - - private int bitField0_; - private int optionsCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object options_; - - public enum OptionsCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - MAINTENANCE_EXCLUSION_OPTIONS(3), - OPTIONS_NOT_SET(0); - private final int value; - - private OptionsCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OptionsCase valueOf(int value) { - return forNumber(value); - } - - public static OptionsCase forNumber(int value) { - switch (value) { - case 3: - return MAINTENANCE_EXCLUSION_OPTIONS; - case 0: - return OPTIONS_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public OptionsCase getOptionsCase() { - return OptionsCase.forNumber(optionsCase_); - } - - public static final int MAINTENANCE_EXCLUSION_OPTIONS_FIELD_NUMBER = 3; - /** - * - * - *
-   * MaintenanceExclusionOptions provides maintenance exclusion related
-   * options.
-   * 
- * - * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; - * - * - * @return Whether the maintenanceExclusionOptions field is set. - */ - @java.lang.Override - public boolean hasMaintenanceExclusionOptions() { - return optionsCase_ == 3; - } - /** - * - * - *
-   * MaintenanceExclusionOptions provides maintenance exclusion related
-   * options.
-   * 
- * - * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; - * - * - * @return The maintenanceExclusionOptions. - */ - @java.lang.Override - public com.google.container.v1beta1.MaintenanceExclusionOptions getMaintenanceExclusionOptions() { - if (optionsCase_ == 3) { - return (com.google.container.v1beta1.MaintenanceExclusionOptions) options_; - } - return com.google.container.v1beta1.MaintenanceExclusionOptions.getDefaultInstance(); - } - /** - * - * - *
-   * MaintenanceExclusionOptions provides maintenance exclusion related
-   * options.
-   * 
- * - * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; - * - */ - @java.lang.Override - public com.google.container.v1beta1.MaintenanceExclusionOptionsOrBuilder - getMaintenanceExclusionOptionsOrBuilder() { - if (optionsCase_ == 3) { - return (com.google.container.v1beta1.MaintenanceExclusionOptions) options_; - } - return com.google.container.v1beta1.MaintenanceExclusionOptions.getDefaultInstance(); - } - - public static final int START_TIME_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp startTime_; - /** - * - * - *
-   * 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 ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * 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 startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; - } - - 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 ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * 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 endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getStartTime()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getEndTime()); - } - if (optionsCase_ == 3) { - output.writeMessage(3, (com.google.container.v1beta1.MaintenanceExclusionOptions) options_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); - } - if (optionsCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.container.v1beta1.MaintenanceExclusionOptions) options_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getOptionsCase().equals(other.getOptionsCase())) return false; - switch (optionsCase_) { - case 3: - if (!getMaintenanceExclusionOptions().equals(other.getMaintenanceExclusionOptions())) - return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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(); - } - switch (optionsCase_) { - case 3: - hash = (37 * hash) + MAINTENANCE_EXCLUSION_OPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getMaintenanceExclusionOptions().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().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) { - getStartTimeFieldBuilder(); - getEndTimeFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (maintenanceExclusionOptionsBuilder_ != null) { - maintenanceExclusionOptionsBuilder_.clear(); - } - startTime_ = null; - if (startTimeBuilder_ != null) { - startTimeBuilder_.dispose(); - startTimeBuilder_ = null; - } - endTime_ = null; - if (endTimeBuilder_ != null) { - endTimeBuilder_.dispose(); - endTimeBuilder_ = null; - } - optionsCase_ = 0; - options_ = 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 (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.TimeWindow result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartialOneofs(com.google.container.v1beta1.TimeWindow result) { - result.optionsCase_ = optionsCase_; - result.options_ = this.options_; - if (optionsCase_ == 3 && maintenanceExclusionOptionsBuilder_ != null) { - result.options_ = maintenanceExclusionOptionsBuilder_.build(); - } - } - - @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()); - } - switch (other.getOptionsCase()) { - case MAINTENANCE_EXCLUSION_OPTIONS: - { - mergeMaintenanceExclusionOptions(other.getMaintenanceExclusionOptions()); - break; - } - case OPTIONS_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 18: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: - { - input.readMessage( - getMaintenanceExclusionOptionsFieldBuilder().getBuilder(), extensionRegistry); - optionsCase_ = 3; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int optionsCase_ = 0; - private java.lang.Object options_; - - public OptionsCase getOptionsCase() { - return OptionsCase.forNumber(optionsCase_); - } - - public Builder clearOptions() { - optionsCase_ = 0; - options_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MaintenanceExclusionOptions, - com.google.container.v1beta1.MaintenanceExclusionOptions.Builder, - com.google.container.v1beta1.MaintenanceExclusionOptionsOrBuilder> - maintenanceExclusionOptionsBuilder_; - /** - * - * - *
-     * MaintenanceExclusionOptions provides maintenance exclusion related
-     * options.
-     * 
- * - * - * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; - * - * - * @return Whether the maintenanceExclusionOptions field is set. - */ - @java.lang.Override - public boolean hasMaintenanceExclusionOptions() { - return optionsCase_ == 3; - } - /** - * - * - *
-     * MaintenanceExclusionOptions provides maintenance exclusion related
-     * options.
-     * 
- * - * - * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; - * - * - * @return The maintenanceExclusionOptions. - */ - @java.lang.Override - public com.google.container.v1beta1.MaintenanceExclusionOptions - getMaintenanceExclusionOptions() { - if (maintenanceExclusionOptionsBuilder_ == null) { - if (optionsCase_ == 3) { - return (com.google.container.v1beta1.MaintenanceExclusionOptions) options_; - } - return com.google.container.v1beta1.MaintenanceExclusionOptions.getDefaultInstance(); - } else { - if (optionsCase_ == 3) { - return maintenanceExclusionOptionsBuilder_.getMessage(); - } - return com.google.container.v1beta1.MaintenanceExclusionOptions.getDefaultInstance(); - } - } - /** - * - * - *
-     * MaintenanceExclusionOptions provides maintenance exclusion related
-     * options.
-     * 
- * - * - * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; - * - */ - public Builder setMaintenanceExclusionOptions( - com.google.container.v1beta1.MaintenanceExclusionOptions value) { - if (maintenanceExclusionOptionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - options_ = value; - onChanged(); - } else { - maintenanceExclusionOptionsBuilder_.setMessage(value); - } - optionsCase_ = 3; - return this; - } - /** - * - * - *
-     * MaintenanceExclusionOptions provides maintenance exclusion related
-     * options.
-     * 
- * - * - * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; - * - */ - public Builder setMaintenanceExclusionOptions( - com.google.container.v1beta1.MaintenanceExclusionOptions.Builder builderForValue) { - if (maintenanceExclusionOptionsBuilder_ == null) { - options_ = builderForValue.build(); - onChanged(); - } else { - maintenanceExclusionOptionsBuilder_.setMessage(builderForValue.build()); - } - optionsCase_ = 3; - return this; - } - /** - * - * - *
-     * MaintenanceExclusionOptions provides maintenance exclusion related
-     * options.
-     * 
- * - * - * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; - * - */ - public Builder mergeMaintenanceExclusionOptions( - com.google.container.v1beta1.MaintenanceExclusionOptions value) { - if (maintenanceExclusionOptionsBuilder_ == null) { - if (optionsCase_ == 3 - && options_ - != com.google.container.v1beta1.MaintenanceExclusionOptions.getDefaultInstance()) { - options_ = - com.google.container.v1beta1.MaintenanceExclusionOptions.newBuilder( - (com.google.container.v1beta1.MaintenanceExclusionOptions) options_) - .mergeFrom(value) - .buildPartial(); - } else { - options_ = value; - } - onChanged(); - } else { - if (optionsCase_ == 3) { - maintenanceExclusionOptionsBuilder_.mergeFrom(value); - } else { - maintenanceExclusionOptionsBuilder_.setMessage(value); - } - } - optionsCase_ = 3; - return this; - } - /** - * - * - *
-     * MaintenanceExclusionOptions provides maintenance exclusion related
-     * options.
-     * 
- * - * - * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; - * - */ - public Builder clearMaintenanceExclusionOptions() { - if (maintenanceExclusionOptionsBuilder_ == null) { - if (optionsCase_ == 3) { - optionsCase_ = 0; - options_ = null; - onChanged(); - } - } else { - if (optionsCase_ == 3) { - optionsCase_ = 0; - options_ = null; - } - maintenanceExclusionOptionsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * MaintenanceExclusionOptions provides maintenance exclusion related
-     * options.
-     * 
- * - * - * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; - * - */ - public com.google.container.v1beta1.MaintenanceExclusionOptions.Builder - getMaintenanceExclusionOptionsBuilder() { - return getMaintenanceExclusionOptionsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * MaintenanceExclusionOptions provides maintenance exclusion related
-     * options.
-     * 
- * - * - * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; - * - */ - @java.lang.Override - public com.google.container.v1beta1.MaintenanceExclusionOptionsOrBuilder - getMaintenanceExclusionOptionsOrBuilder() { - if ((optionsCase_ == 3) && (maintenanceExclusionOptionsBuilder_ != null)) { - return maintenanceExclusionOptionsBuilder_.getMessageOrBuilder(); - } else { - if (optionsCase_ == 3) { - return (com.google.container.v1beta1.MaintenanceExclusionOptions) options_; - } - return com.google.container.v1beta1.MaintenanceExclusionOptions.getDefaultInstance(); - } - } - /** - * - * - *
-     * MaintenanceExclusionOptions provides maintenance exclusion related
-     * options.
-     * 
- * - * - * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MaintenanceExclusionOptions, - com.google.container.v1beta1.MaintenanceExclusionOptions.Builder, - com.google.container.v1beta1.MaintenanceExclusionOptionsOrBuilder> - getMaintenanceExclusionOptionsFieldBuilder() { - if (maintenanceExclusionOptionsBuilder_ == null) { - if (!(optionsCase_ == 3)) { - options_ = com.google.container.v1beta1.MaintenanceExclusionOptions.getDefaultInstance(); - } - maintenanceExclusionOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.MaintenanceExclusionOptions, - com.google.container.v1beta1.MaintenanceExclusionOptions.Builder, - com.google.container.v1beta1.MaintenanceExclusionOptionsOrBuilder>( - (com.google.container.v1beta1.MaintenanceExclusionOptions) options_, - getParentForChildren(), - isClean()); - options_ = null; - } - optionsCase_ = 3; - onChanged(); - return maintenanceExclusionOptionsBuilder_; - } - - private com.google.protobuf.Timestamp startTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - 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 ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * 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; - } else { - startTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - 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(); - } else { - startTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - 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 (((bitField0_ & 0x00000002) != 0) - && startTime_ != null - && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getStartTimeBuilder().mergeFrom(value); - } else { - startTime_ = value; - } - } else { - startTimeBuilder_.mergeFrom(value); - } - if (startTime_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The time that the window first starts.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public Builder clearStartTime() { - bitField0_ = (bitField0_ & ~0x00000002); - startTime_ = null; - if (startTimeBuilder_ != null) { - startTimeBuilder_.dispose(); - startTimeBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The time that the window first starts.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - bitField0_ |= 0x00000002; - 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 ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * 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; - } else { - endTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - 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(); - } else { - endTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - 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 (((bitField0_ & 0x00000004) != 0) - && endTime_ != null - && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getEndTimeBuilder().mergeFrom(value); - } else { - endTime_ = value; - } - } else { - endTimeBuilder_.mergeFrom(value); - } - if (endTime_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - 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() { - bitField0_ = (bitField0_ & ~0x00000004); - endTime_ = null; - if (endTimeBuilder_ != null) { - endTimeBuilder_.dispose(); - endTimeBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000004; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TimeWindowOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TimeWindowOrBuilder.java deleted file mode 100644 index f51030f7ee51..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TimeWindowOrBuilder.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface TimeWindowOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.TimeWindow) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * MaintenanceExclusionOptions provides maintenance exclusion related
-   * options.
-   * 
- * - * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; - * - * - * @return Whether the maintenanceExclusionOptions field is set. - */ - boolean hasMaintenanceExclusionOptions(); - /** - * - * - *
-   * MaintenanceExclusionOptions provides maintenance exclusion related
-   * options.
-   * 
- * - * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; - * - * - * @return The maintenanceExclusionOptions. - */ - com.google.container.v1beta1.MaintenanceExclusionOptions getMaintenanceExclusionOptions(); - /** - * - * - *
-   * MaintenanceExclusionOptions provides maintenance exclusion related
-   * options.
-   * 
- * - * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; - * - */ - com.google.container.v1beta1.MaintenanceExclusionOptionsOrBuilder - getMaintenanceExclusionOptionsOrBuilder(); - - /** - * - * - *
-   * 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(); - - com.google.container.v1beta1.TimeWindow.OptionsCase getOptionsCase(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TpuConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TpuConfig.java deleted file mode 100644 index 378f2d5d9a3e..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TpuConfig.java +++ /dev/null @@ -1,809 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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_ = false; - /** - * - * - *
-   * 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_ = false; - /** - * - * - *
-   * 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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipv4CidrBlock_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ipv4CidrBlock_); - } - getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipv4CidrBlock_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ipv4CidrBlock_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.TpuConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.useServiceNetworking_ = useServiceNetworking_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.ipv4CidrBlock_ = ipv4CidrBlock_; - } - } - - @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_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - useServiceNetworking_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - ipv4CidrBlock_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether Cloud TPU integration is enabled or not.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000002; - 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() { - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000004; - 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(); - bitField0_ = (bitField0_ & ~0x00000004); - 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; - bitField0_ |= 0x00000004; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TpuConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TpuConfigOrBuilder.java deleted file mode 100644 index 82914b9c05fb..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TpuConfigOrBuilder.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequest.java deleted file mode 100644 index e80b3698107c..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequest.java +++ /dev/null @@ -1,1600 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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); - } - - private int bitField0_; - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2999 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2999 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3006 - * @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]; - * - * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3006 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * - * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3010 - * @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]; - * - * - * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3010 - * @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 ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * 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 update_ == null - ? com.google.container.v1beta1.ClusterUpdate.getDefaultInstance() - : update_; - } - - public static final int NAME_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(4, getUpdate()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdate()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { - getUpdateFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - update_ = null; - if (updateBuilder_ != null) { - updateBuilder_.dispose(); - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.UpdateClusterRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.update_ = updateBuilder_ == null ? update_ : updateBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.name_ = name_; - } - result.bitField0_ |= to_bitField0_; - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasUpdate()) { - mergeUpdate(other.getUpdate()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000010; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getUpdateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2999 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2999 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2999 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2999 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2999 - * @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; - bitField0_ |= 0x00000001; - 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]; - * - * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3006 - * @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]; - * - * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3006 - * @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]; - * - * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3006 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3006 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - 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]; - * - * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3006 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * - * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3010 - * @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]; - * - * - * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3010 - * @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]; - * - * - * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3010 - * @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; - bitField0_ |= 0x00000004; - 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]; - * - * - * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3010 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - 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]; - * - * - * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3010 - * @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; - bitField0_ |= 0x00000004; - 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 ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-     * 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; - } else { - updateBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - 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(); - } else { - updateBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - 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 (((bitField0_ & 0x00000008) != 0) - && update_ != null - && update_ != com.google.container.v1beta1.ClusterUpdate.getDefaultInstance()) { - getUpdateBuilder().mergeFrom(value); - } else { - update_ = value; - } - } else { - updateBuilder_.mergeFrom(value); - } - if (update_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Required. A description of the update.
-     * 
- * - * - * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdate() { - bitField0_ = (bitField0_ & ~0x00000008); - update_ = null; - if (updateBuilder_ != null) { - updateBuilder_.dispose(); - updateBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000008; - 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; - bitField0_ |= 0x00000010; - 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(); - bitField0_ = (bitField0_ & ~0x00000010); - 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; - bitField0_ |= 0x00000010; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequestOrBuilder.java deleted file mode 100644 index c4da23ec5eee..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequestOrBuilder.java +++ /dev/null @@ -1,203 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2999 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2999 - * @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]; - * - * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3006 - * @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]; - * - * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3006 - * @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]; - * - * - * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3010 - * @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]; - * - * - * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3010 - * @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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequest.java deleted file mode 100644 index 883f0540503c..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequest.java +++ /dev/null @@ -1,1542 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3327 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3327 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3334 - * @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]; - * - * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3334 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * - * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3338 - * @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]; - * - * - * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3338 - * @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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(masterVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, masterVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(masterVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, masterVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.UpdateMasterRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.masterVersion_ = masterVersion_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.name_ = name_; - } - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getMasterVersion().isEmpty()) { - masterVersion_ = other.masterVersion_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000010; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - masterVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 58: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3327 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3327 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3327 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3327 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3327 - * @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; - bitField0_ |= 0x00000001; - 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]; - * - * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3334 - * @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]; - * - * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3334 - * @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]; - * - * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3334 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3334 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - 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]; - * - * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3334 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * - * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3338 - * @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]; - * - * - * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3338 - * @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]; - * - * - * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3338 - * @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; - bitField0_ |= 0x00000004; - 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]; - * - * - * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3338 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - 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]; - * - * - * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3338 - * @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; - bitField0_ |= 0x00000004; - 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; - bitField0_ |= 0x00000008; - 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(); - bitField0_ = (bitField0_ & ~0x00000008); - 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; - bitField0_ |= 0x00000008; - 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; - bitField0_ |= 0x00000010; - 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(); - bitField0_ = (bitField0_ & ~0x00000010); - 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; - bitField0_ |= 0x00000010; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequestOrBuilder.java deleted file mode 100644 index 46fc0bfceac2..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequestOrBuilder.java +++ /dev/null @@ -1,205 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3327 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3327 - * @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]; - * - * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3334 - * @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]; - * - * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3334 - * @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]; - * - * - * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3338 - * @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]; - * - * - * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3338 - * @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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequest.java deleted file mode 100644 index 476ce568210e..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequest.java +++ /dev/null @@ -1,7450 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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.emptyList(); - name_ = ""; - etag_ = ""; - machineType_ = ""; - diskType_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateNodePoolRequest(); - } - - 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); - } - - private int bitField0_; - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3026 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3026 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3033 - * @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]; - * - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3033 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3037 - * @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]; - * - * - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3037 - * @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; - - @SuppressWarnings("serial") - 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]; - * - * - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3042 - * @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]; - * - * - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3042 - * @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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object imageType_ = ""; - /** - * - * - *
-   * Required. The desired image type for the node pool. Please see
-   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-   * available image types.
-   * 
- * - * 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. Please see
-   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-   * available image types.
-   * 
- * - * 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; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList locations_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * 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 ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * 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 workloadMetadataConfig_ == null - ? com.google.container.v1beta1.WorkloadMetadataConfig.getDefaultInstance() - : workloadMetadataConfig_; - } - - public static final int NAME_FIELD_NUMBER = 8; - - @SuppressWarnings("serial") - 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 ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * 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 upgradeSettings_ == null - ? com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance() - : upgradeSettings_; - } - - public static final int TAGS_FIELD_NUMBER = 16; - private com.google.container.v1beta1.NetworkTags tags_; - /** - * - * - *
-   * The desired network tags to be applied to all nodes in the node pool.
-   * If this field is not present, the tags will not be changed. Otherwise,
-   * the existing network tags will be *replaced* with the provided tags.
-   * 
- * - * .google.container.v1beta1.NetworkTags tags = 16; - * - * @return Whether the tags field is set. - */ - @java.lang.Override - public boolean hasTags() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-   * The desired network tags to be applied to all nodes in the node pool.
-   * If this field is not present, the tags will not be changed. Otherwise,
-   * the existing network tags will be *replaced* with the provided tags.
-   * 
- * - * .google.container.v1beta1.NetworkTags tags = 16; - * - * @return The tags. - */ - @java.lang.Override - public com.google.container.v1beta1.NetworkTags getTags() { - return tags_ == null ? com.google.container.v1beta1.NetworkTags.getDefaultInstance() : tags_; - } - /** - * - * - *
-   * The desired network tags to be applied to all nodes in the node pool.
-   * If this field is not present, the tags will not be changed. Otherwise,
-   * the existing network tags will be *replaced* with the provided tags.
-   * 
- * - * .google.container.v1beta1.NetworkTags tags = 16; - */ - @java.lang.Override - public com.google.container.v1beta1.NetworkTagsOrBuilder getTagsOrBuilder() { - return tags_ == null ? com.google.container.v1beta1.NetworkTags.getDefaultInstance() : tags_; - } - - public static final int TAINTS_FIELD_NUMBER = 17; - private com.google.container.v1beta1.NodeTaints taints_; - /** - * - * - *
-   * The desired node taints to be applied to all nodes in the node pool.
-   * If this field is not present, the taints will not be changed. Otherwise,
-   * the existing node taints will be *replaced* with the provided taints.
-   * 
- * - * .google.container.v1beta1.NodeTaints taints = 17; - * - * @return Whether the taints field is set. - */ - @java.lang.Override - public boolean hasTaints() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-   * The desired node taints to be applied to all nodes in the node pool.
-   * If this field is not present, the taints will not be changed. Otherwise,
-   * the existing node taints will be *replaced* with the provided taints.
-   * 
- * - * .google.container.v1beta1.NodeTaints taints = 17; - * - * @return The taints. - */ - @java.lang.Override - public com.google.container.v1beta1.NodeTaints getTaints() { - return taints_ == null ? com.google.container.v1beta1.NodeTaints.getDefaultInstance() : taints_; - } - /** - * - * - *
-   * The desired node taints to be applied to all nodes in the node pool.
-   * If this field is not present, the taints will not be changed. Otherwise,
-   * the existing node taints will be *replaced* with the provided taints.
-   * 
- * - * .google.container.v1beta1.NodeTaints taints = 17; - */ - @java.lang.Override - public com.google.container.v1beta1.NodeTaintsOrBuilder getTaintsOrBuilder() { - return taints_ == null ? com.google.container.v1beta1.NodeTaints.getDefaultInstance() : taints_; - } - - public static final int LABELS_FIELD_NUMBER = 18; - private com.google.container.v1beta1.NodeLabels labels_; - /** - * - * - *
-   * The desired node labels to be applied to all nodes in the node pool.
-   * If this field is not present, the labels will not be changed. Otherwise,
-   * the existing node labels will be *replaced* with the provided labels.
-   * 
- * - * .google.container.v1beta1.NodeLabels labels = 18; - * - * @return Whether the labels field is set. - */ - @java.lang.Override - public boolean hasLabels() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-   * The desired node labels to be applied to all nodes in the node pool.
-   * If this field is not present, the labels will not be changed. Otherwise,
-   * the existing node labels will be *replaced* with the provided labels.
-   * 
- * - * .google.container.v1beta1.NodeLabels labels = 18; - * - * @return The labels. - */ - @java.lang.Override - public com.google.container.v1beta1.NodeLabels getLabels() { - return labels_ == null ? com.google.container.v1beta1.NodeLabels.getDefaultInstance() : labels_; - } - /** - * - * - *
-   * The desired node labels to be applied to all nodes in the node pool.
-   * If this field is not present, the labels will not be changed. Otherwise,
-   * the existing node labels will be *replaced* with the provided labels.
-   * 
- * - * .google.container.v1beta1.NodeLabels labels = 18; - */ - @java.lang.Override - public com.google.container.v1beta1.NodeLabelsOrBuilder getLabelsOrBuilder() { - return labels_ == null ? com.google.container.v1beta1.NodeLabels.getDefaultInstance() : labels_; - } - - 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 ((bitField0_ & 0x00000020) != 0); - } - /** - * - * - *
-   * 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 linuxNodeConfig_ == null - ? com.google.container.v1beta1.LinuxNodeConfig.getDefaultInstance() - : linuxNodeConfig_; - } - - 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 ((bitField0_ & 0x00000040) != 0); - } - /** - * - * - *
-   * 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 kubeletConfig_ == null - ? com.google.container.v1beta1.NodeKubeletConfig.getDefaultInstance() - : kubeletConfig_; - } - - public static final int NODE_NETWORK_CONFIG_FIELD_NUMBER = 21; - private com.google.container.v1beta1.NodeNetworkConfig nodeNetworkConfig_; - /** - * - * - *
-   * Node network config.
-   * 
- * - * .google.container.v1beta1.NodeNetworkConfig node_network_config = 21; - * - * @return Whether the nodeNetworkConfig field is set. - */ - @java.lang.Override - public boolean hasNodeNetworkConfig() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * - * - *
-   * Node network config.
-   * 
- * - * .google.container.v1beta1.NodeNetworkConfig node_network_config = 21; - * - * @return The nodeNetworkConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.NodeNetworkConfig getNodeNetworkConfig() { - return nodeNetworkConfig_ == null - ? com.google.container.v1beta1.NodeNetworkConfig.getDefaultInstance() - : nodeNetworkConfig_; - } - /** - * - * - *
-   * Node network config.
-   * 
- * - * .google.container.v1beta1.NodeNetworkConfig node_network_config = 21; - */ - @java.lang.Override - public com.google.container.v1beta1.NodeNetworkConfigOrBuilder getNodeNetworkConfigOrBuilder() { - return nodeNetworkConfig_ == null - ? com.google.container.v1beta1.NodeNetworkConfig.getDefaultInstance() - : nodeNetworkConfig_; - } - - public static final int GCFS_CONFIG_FIELD_NUMBER = 22; - private com.google.container.v1beta1.GcfsConfig gcfsConfig_; - /** - * - * - *
-   * GCFS config.
-   * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 22; - * - * @return Whether the gcfsConfig field is set. - */ - @java.lang.Override - public boolean hasGcfsConfig() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * - * - *
-   * GCFS config.
-   * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 22; - * - * @return The gcfsConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.GcfsConfig getGcfsConfig() { - return gcfsConfig_ == null - ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() - : gcfsConfig_; - } - /** - * - * - *
-   * GCFS config.
-   * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 22; - */ - @java.lang.Override - public com.google.container.v1beta1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { - return gcfsConfig_ == null - ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() - : gcfsConfig_; - } - - public static final int CONFIDENTIAL_NODES_FIELD_NUMBER = 23; - private com.google.container.v1beta1.ConfidentialNodes confidentialNodes_; - /** - * - * - *
-   * Confidential nodes config.
-   * All the nodes in the node pool will be Confidential VM once enabled.
-   * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 23; - * - * @return Whether the confidentialNodes field is set. - */ - @java.lang.Override - public boolean hasConfidentialNodes() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * - * - *
-   * Confidential nodes config.
-   * All the nodes in the node pool will be Confidential VM once enabled.
-   * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 23; - * - * @return The confidentialNodes. - */ - @java.lang.Override - public com.google.container.v1beta1.ConfidentialNodes getConfidentialNodes() { - return confidentialNodes_ == null - ? com.google.container.v1beta1.ConfidentialNodes.getDefaultInstance() - : confidentialNodes_; - } - /** - * - * - *
-   * Confidential nodes config.
-   * All the nodes in the node pool will be Confidential VM once enabled.
-   * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 23; - */ - @java.lang.Override - public com.google.container.v1beta1.ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder() { - return confidentialNodes_ == null - ? com.google.container.v1beta1.ConfidentialNodes.getDefaultInstance() - : confidentialNodes_; - } - - public static final int GVNIC_FIELD_NUMBER = 29; - private com.google.container.v1beta1.VirtualNIC gvnic_; - /** - * - * - *
-   * Enable or disable gvnic on the node pool.
-   * 
- * - * .google.container.v1beta1.VirtualNIC gvnic = 29; - * - * @return Whether the gvnic field is set. - */ - @java.lang.Override - public boolean hasGvnic() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - * - * - *
-   * Enable or disable gvnic on the node pool.
-   * 
- * - * .google.container.v1beta1.VirtualNIC gvnic = 29; - * - * @return The gvnic. - */ - @java.lang.Override - public com.google.container.v1beta1.VirtualNIC getGvnic() { - return gvnic_ == null ? com.google.container.v1beta1.VirtualNIC.getDefaultInstance() : gvnic_; - } - /** - * - * - *
-   * Enable or disable gvnic on the node pool.
-   * 
- * - * .google.container.v1beta1.VirtualNIC gvnic = 29; - */ - @java.lang.Override - public com.google.container.v1beta1.VirtualNICOrBuilder getGvnicOrBuilder() { - return gvnic_ == null ? com.google.container.v1beta1.VirtualNIC.getDefaultInstance() : gvnic_; - } - - public static final int ETAG_FIELD_NUMBER = 30; - - @SuppressWarnings("serial") - private volatile java.lang.Object etag_ = ""; - /** - * - * - *
-   * The current etag of the node pool.
-   * If an etag is provided and does not match the current etag of the node
-   * pool, update will be blocked and an ABORTED error will be returned.
-   * 
- * - * string etag = 30; - * - * @return The etag. - */ - @java.lang.Override - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } - } - /** - * - * - *
-   * The current etag of the node pool.
-   * If an etag is provided and does not match the current etag of the node
-   * pool, update will be blocked and an ABORTED error will be returned.
-   * 
- * - * string etag = 30; - * - * @return The bytes for etag. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FAST_SOCKET_FIELD_NUMBER = 31; - private com.google.container.v1beta1.FastSocket fastSocket_; - /** - * - * - *
-   * Enable or disable NCCL fast socket for the node pool.
-   * 
- * - * .google.container.v1beta1.FastSocket fast_socket = 31; - * - * @return Whether the fastSocket field is set. - */ - @java.lang.Override - public boolean hasFastSocket() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - * - * - *
-   * Enable or disable NCCL fast socket for the node pool.
-   * 
- * - * .google.container.v1beta1.FastSocket fast_socket = 31; - * - * @return The fastSocket. - */ - @java.lang.Override - public com.google.container.v1beta1.FastSocket getFastSocket() { - return fastSocket_ == null - ? com.google.container.v1beta1.FastSocket.getDefaultInstance() - : fastSocket_; - } - /** - * - * - *
-   * Enable or disable NCCL fast socket for the node pool.
-   * 
- * - * .google.container.v1beta1.FastSocket fast_socket = 31; - */ - @java.lang.Override - public com.google.container.v1beta1.FastSocketOrBuilder getFastSocketOrBuilder() { - return fastSocket_ == null - ? com.google.container.v1beta1.FastSocket.getDefaultInstance() - : fastSocket_; - } - - public static final int LOGGING_CONFIG_FIELD_NUMBER = 32; - private com.google.container.v1beta1.NodePoolLoggingConfig loggingConfig_; - /** - * - * - *
-   * Logging configuration.
-   * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 32; - * - * @return Whether the loggingConfig field is set. - */ - @java.lang.Override - public boolean hasLoggingConfig() { - return ((bitField0_ & 0x00001000) != 0); - } - /** - * - * - *
-   * Logging configuration.
-   * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 32; - * - * @return The loggingConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.NodePoolLoggingConfig getLoggingConfig() { - return loggingConfig_ == null - ? com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance() - : loggingConfig_; - } - /** - * - * - *
-   * Logging configuration.
-   * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 32; - */ - @java.lang.Override - public com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder getLoggingConfigOrBuilder() { - return loggingConfig_ == null - ? com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance() - : loggingConfig_; - } - - public static final int RESOURCE_LABELS_FIELD_NUMBER = 33; - private com.google.container.v1beta1.ResourceLabels resourceLabels_; - /** - * - * - *
-   * The resource labels for the node pool to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * .google.container.v1beta1.ResourceLabels resource_labels = 33; - * - * @return Whether the resourceLabels field is set. - */ - @java.lang.Override - public boolean hasResourceLabels() { - return ((bitField0_ & 0x00002000) != 0); - } - /** - * - * - *
-   * The resource labels for the node pool to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * .google.container.v1beta1.ResourceLabels resource_labels = 33; - * - * @return The resourceLabels. - */ - @java.lang.Override - public com.google.container.v1beta1.ResourceLabels getResourceLabels() { - return resourceLabels_ == null - ? com.google.container.v1beta1.ResourceLabels.getDefaultInstance() - : resourceLabels_; - } - /** - * - * - *
-   * The resource labels for the node pool to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * .google.container.v1beta1.ResourceLabels resource_labels = 33; - */ - @java.lang.Override - public com.google.container.v1beta1.ResourceLabelsOrBuilder getResourceLabelsOrBuilder() { - return resourceLabels_ == null - ? com.google.container.v1beta1.ResourceLabels.getDefaultInstance() - : resourceLabels_; - } - - public static final int WINDOWS_NODE_CONFIG_FIELD_NUMBER = 34; - private com.google.container.v1beta1.WindowsNodeConfig windowsNodeConfig_; - /** - * - * - *
-   * Parameters that can be configured on Windows nodes.
-   * 
- * - * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 34; - * - * @return Whether the windowsNodeConfig field is set. - */ - @java.lang.Override - public boolean hasWindowsNodeConfig() { - return ((bitField0_ & 0x00004000) != 0); - } - /** - * - * - *
-   * Parameters that can be configured on Windows nodes.
-   * 
- * - * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 34; - * - * @return The windowsNodeConfig. - */ - @java.lang.Override - public com.google.container.v1beta1.WindowsNodeConfig getWindowsNodeConfig() { - return windowsNodeConfig_ == null - ? com.google.container.v1beta1.WindowsNodeConfig.getDefaultInstance() - : windowsNodeConfig_; - } - /** - * - * - *
-   * Parameters that can be configured on Windows nodes.
-   * 
- * - * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 34; - */ - @java.lang.Override - public com.google.container.v1beta1.WindowsNodeConfigOrBuilder getWindowsNodeConfigOrBuilder() { - return windowsNodeConfig_ == null - ? com.google.container.v1beta1.WindowsNodeConfig.getDefaultInstance() - : windowsNodeConfig_; - } - - public static final int MACHINE_TYPE_FIELD_NUMBER = 36; - - @SuppressWarnings("serial") - private volatile java.lang.Object machineType_ = ""; - /** - * - * - *
-   * Optional. The desired machine type for nodes in the node pool.
-   * Initiates an upgrade operation that migrates the nodes in the
-   * node pool to the specified machine type.
-   * 
- * - * string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - /** - * - * - *
-   * Optional. The desired machine type for nodes in the node pool.
-   * Initiates an upgrade operation that migrates the nodes in the
-   * node pool to the specified machine type.
-   * 
- * - * string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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_TYPE_FIELD_NUMBER = 37; - - @SuppressWarnings("serial") - private volatile java.lang.Object diskType_ = ""; - /** - * - * - *
-   * Optional. The desired disk type for nodes in the node pool.
-   * Initiates an upgrade operation that migrates the nodes in the
-   * node pool to the specified disk type.
-   * 
- * - * string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - /** - * - * - *
-   * Optional. The desired disk type for nodes in the node pool.
-   * Initiates an upgrade operation that migrates the nodes in the
-   * node pool to the specified disk type.
-   * 
- * - * string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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 DISK_SIZE_GB_FIELD_NUMBER = 38; - private long diskSizeGb_ = 0L; - /** - * - * - *
-   * Optional. The desired disk size for nodes in the node pool.
-   * Initiates an upgrade operation that migrates the nodes in the
-   * node pool to the specified disk size.
-   * 
- * - * int64 disk_size_gb = 38 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The diskSizeGb. - */ - @java.lang.Override - public long getDiskSizeGb() { - return diskSizeGb_; - } - - public static final int RESOURCE_MANAGER_TAGS_FIELD_NUMBER = 39; - private com.google.container.v1beta1.ResourceManagerTags resourceManagerTags_; - /** - * - * - *
-   * Desired resource manager tag keys and values to be attached to the nodes
-   * for managing Compute Engine firewalls using Network Firewall Policies.
-   * Existing tags will be replaced with new values.
-   * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 39; - * - * @return Whether the resourceManagerTags field is set. - */ - @java.lang.Override - public boolean hasResourceManagerTags() { - return ((bitField0_ & 0x00008000) != 0); - } - /** - * - * - *
-   * Desired resource manager tag keys and values to be attached to the nodes
-   * for managing Compute Engine firewalls using Network Firewall Policies.
-   * Existing tags will be replaced with new values.
-   * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 39; - * - * @return The resourceManagerTags. - */ - @java.lang.Override - public com.google.container.v1beta1.ResourceManagerTags getResourceManagerTags() { - return resourceManagerTags_ == null - ? com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance() - : resourceManagerTags_; - } - /** - * - * - *
-   * Desired resource manager tag keys and values to be attached to the nodes
-   * for managing Compute Engine firewalls using Network Firewall Policies.
-   * Existing tags will be replaced with new values.
-   * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 39; - */ - @java.lang.Override - public com.google.container.v1beta1.ResourceManagerTagsOrBuilder - getResourceManagerTagsOrBuilder() { - return resourceManagerTags_ == null - ? com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance() - : resourceManagerTags_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, nodeVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageType_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, imageType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - 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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(14, getWorkloadMetadataConfig()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(15, getUpgradeSettings()); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(16, getTags()); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(17, getTaints()); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeMessage(18, getLabels()); - } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeMessage(19, getLinuxNodeConfig()); - } - if (((bitField0_ & 0x00000040) != 0)) { - output.writeMessage(20, getKubeletConfig()); - } - if (((bitField0_ & 0x00000080) != 0)) { - output.writeMessage(21, getNodeNetworkConfig()); - } - if (((bitField0_ & 0x00000100) != 0)) { - output.writeMessage(22, getGcfsConfig()); - } - if (((bitField0_ & 0x00000200) != 0)) { - output.writeMessage(23, getConfidentialNodes()); - } - if (((bitField0_ & 0x00000400) != 0)) { - output.writeMessage(29, getGvnic()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 30, etag_); - } - if (((bitField0_ & 0x00000800) != 0)) { - output.writeMessage(31, getFastSocket()); - } - if (((bitField0_ & 0x00001000) != 0)) { - output.writeMessage(32, getLoggingConfig()); - } - if (((bitField0_ & 0x00002000) != 0)) { - output.writeMessage(33, getResourceLabels()); - } - if (((bitField0_ & 0x00004000) != 0)) { - output.writeMessage(34, getWindowsNodeConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 36, machineType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 37, diskType_); - } - if (diskSizeGb_ != 0L) { - output.writeInt64(38, diskSizeGb_); - } - if (((bitField0_ & 0x00008000) != 0)) { - output.writeMessage(39, getResourceManagerTags()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, nodeVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageType_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, imageType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - 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 (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(14, getWorkloadMetadataConfig()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getUpgradeSettings()); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getTags()); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getTaints()); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getLabels()); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getLinuxNodeConfig()); - } - if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getKubeletConfig()); - } - if (((bitField0_ & 0x00000080) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getNodeNetworkConfig()); - } - if (((bitField0_ & 0x00000100) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getGcfsConfig()); - } - if (((bitField0_ & 0x00000200) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getConfidentialNodes()); - } - if (((bitField0_ & 0x00000400) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getGvnic()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(30, etag_); - } - if (((bitField0_ & 0x00000800) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(31, getFastSocket()); - } - if (((bitField0_ & 0x00001000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(32, getLoggingConfig()); - } - if (((bitField0_ & 0x00002000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(33, getResourceLabels()); - } - if (((bitField0_ & 0x00004000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(34, getWindowsNodeConfig()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(36, machineType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(37, diskType_); - } - if (diskSizeGb_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(38, diskSizeGb_); - } - if (((bitField0_ & 0x00008000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(39, getResourceManagerTags()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (hasTags() != other.hasTags()) return false; - if (hasTags()) { - if (!getTags().equals(other.getTags())) return false; - } - if (hasTaints() != other.hasTaints()) return false; - if (hasTaints()) { - if (!getTaints().equals(other.getTaints())) return false; - } - if (hasLabels() != other.hasLabels()) return false; - if (hasLabels()) { - if (!getLabels().equals(other.getLabels())) 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 (hasNodeNetworkConfig() != other.hasNodeNetworkConfig()) return false; - if (hasNodeNetworkConfig()) { - if (!getNodeNetworkConfig().equals(other.getNodeNetworkConfig())) return false; - } - if (hasGcfsConfig() != other.hasGcfsConfig()) return false; - if (hasGcfsConfig()) { - if (!getGcfsConfig().equals(other.getGcfsConfig())) return false; - } - if (hasConfidentialNodes() != other.hasConfidentialNodes()) return false; - if (hasConfidentialNodes()) { - if (!getConfidentialNodes().equals(other.getConfidentialNodes())) return false; - } - if (hasGvnic() != other.hasGvnic()) return false; - if (hasGvnic()) { - if (!getGvnic().equals(other.getGvnic())) return false; - } - if (!getEtag().equals(other.getEtag())) return false; - if (hasFastSocket() != other.hasFastSocket()) return false; - if (hasFastSocket()) { - if (!getFastSocket().equals(other.getFastSocket())) return false; - } - if (hasLoggingConfig() != other.hasLoggingConfig()) return false; - if (hasLoggingConfig()) { - if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; - } - if (hasResourceLabels() != other.hasResourceLabels()) return false; - if (hasResourceLabels()) { - if (!getResourceLabels().equals(other.getResourceLabels())) return false; - } - if (hasWindowsNodeConfig() != other.hasWindowsNodeConfig()) return false; - if (hasWindowsNodeConfig()) { - if (!getWindowsNodeConfig().equals(other.getWindowsNodeConfig())) return false; - } - if (!getMachineType().equals(other.getMachineType())) return false; - if (!getDiskType().equals(other.getDiskType())) return false; - if (getDiskSizeGb() != other.getDiskSizeGb()) return false; - if (hasResourceManagerTags() != other.hasResourceManagerTags()) return false; - if (hasResourceManagerTags()) { - if (!getResourceManagerTags().equals(other.getResourceManagerTags())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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 (hasTags()) { - hash = (37 * hash) + TAGS_FIELD_NUMBER; - hash = (53 * hash) + getTags().hashCode(); - } - if (hasTaints()) { - hash = (37 * hash) + TAINTS_FIELD_NUMBER; - hash = (53 * hash) + getTaints().hashCode(); - } - if (hasLabels()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + getLabels().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 (hasNodeNetworkConfig()) { - hash = (37 * hash) + NODE_NETWORK_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getNodeNetworkConfig().hashCode(); - } - if (hasGcfsConfig()) { - hash = (37 * hash) + GCFS_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getGcfsConfig().hashCode(); - } - if (hasConfidentialNodes()) { - hash = (37 * hash) + CONFIDENTIAL_NODES_FIELD_NUMBER; - hash = (53 * hash) + getConfidentialNodes().hashCode(); - } - if (hasGvnic()) { - hash = (37 * hash) + GVNIC_FIELD_NUMBER; - hash = (53 * hash) + getGvnic().hashCode(); - } - hash = (37 * hash) + ETAG_FIELD_NUMBER; - hash = (53 * hash) + getEtag().hashCode(); - if (hasFastSocket()) { - hash = (37 * hash) + FAST_SOCKET_FIELD_NUMBER; - hash = (53 * hash) + getFastSocket().hashCode(); - } - if (hasLoggingConfig()) { - hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getLoggingConfig().hashCode(); - } - if (hasResourceLabels()) { - hash = (37 * hash) + RESOURCE_LABELS_FIELD_NUMBER; - hash = (53 * hash) + getResourceLabels().hashCode(); - } - if (hasWindowsNodeConfig()) { - hash = (37 * hash) + WINDOWS_NODE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getWindowsNodeConfig().hashCode(); - } - hash = (37 * hash) + MACHINE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getMachineType().hashCode(); - hash = (37 * hash) + DISK_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getDiskType().hashCode(); - hash = (37 * hash) + DISK_SIZE_GB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDiskSizeGb()); - if (hasResourceManagerTags()) { - hash = (37 * hash) + RESOURCE_MANAGER_TAGS_FIELD_NUMBER; - hash = (53 * hash) + getResourceManagerTags().hashCode(); - } - hash = (29 * hash) + getUnknownFields().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) { - getWorkloadMetadataConfigFieldBuilder(); - getUpgradeSettingsFieldBuilder(); - getTagsFieldBuilder(); - getTaintsFieldBuilder(); - getLabelsFieldBuilder(); - getLinuxNodeConfigFieldBuilder(); - getKubeletConfigFieldBuilder(); - getNodeNetworkConfigFieldBuilder(); - getGcfsConfigFieldBuilder(); - getConfidentialNodesFieldBuilder(); - getGvnicFieldBuilder(); - getFastSocketFieldBuilder(); - getLoggingConfigFieldBuilder(); - getResourceLabelsFieldBuilder(); - getWindowsNodeConfigFieldBuilder(); - getResourceManagerTagsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - nodePoolId_ = ""; - nodeVersion_ = ""; - imageType_ = ""; - locations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - workloadMetadataConfig_ = null; - if (workloadMetadataConfigBuilder_ != null) { - workloadMetadataConfigBuilder_.dispose(); - workloadMetadataConfigBuilder_ = null; - } - name_ = ""; - upgradeSettings_ = null; - if (upgradeSettingsBuilder_ != null) { - upgradeSettingsBuilder_.dispose(); - upgradeSettingsBuilder_ = null; - } - tags_ = null; - if (tagsBuilder_ != null) { - tagsBuilder_.dispose(); - tagsBuilder_ = null; - } - taints_ = null; - if (taintsBuilder_ != null) { - taintsBuilder_.dispose(); - taintsBuilder_ = null; - } - labels_ = null; - if (labelsBuilder_ != null) { - labelsBuilder_.dispose(); - labelsBuilder_ = null; - } - linuxNodeConfig_ = null; - if (linuxNodeConfigBuilder_ != null) { - linuxNodeConfigBuilder_.dispose(); - linuxNodeConfigBuilder_ = null; - } - kubeletConfig_ = null; - if (kubeletConfigBuilder_ != null) { - kubeletConfigBuilder_.dispose(); - kubeletConfigBuilder_ = null; - } - nodeNetworkConfig_ = null; - if (nodeNetworkConfigBuilder_ != null) { - nodeNetworkConfigBuilder_.dispose(); - nodeNetworkConfigBuilder_ = null; - } - gcfsConfig_ = null; - if (gcfsConfigBuilder_ != null) { - gcfsConfigBuilder_.dispose(); - gcfsConfigBuilder_ = null; - } - confidentialNodes_ = null; - if (confidentialNodesBuilder_ != null) { - confidentialNodesBuilder_.dispose(); - confidentialNodesBuilder_ = null; - } - gvnic_ = null; - if (gvnicBuilder_ != null) { - gvnicBuilder_.dispose(); - gvnicBuilder_ = null; - } - etag_ = ""; - fastSocket_ = null; - if (fastSocketBuilder_ != null) { - fastSocketBuilder_.dispose(); - fastSocketBuilder_ = null; - } - loggingConfig_ = null; - if (loggingConfigBuilder_ != null) { - loggingConfigBuilder_.dispose(); - loggingConfigBuilder_ = null; - } - resourceLabels_ = null; - if (resourceLabelsBuilder_ != null) { - resourceLabelsBuilder_.dispose(); - resourceLabelsBuilder_ = null; - } - windowsNodeConfig_ = null; - if (windowsNodeConfigBuilder_ != null) { - windowsNodeConfigBuilder_.dispose(); - windowsNodeConfigBuilder_ = null; - } - machineType_ = ""; - diskType_ = ""; - diskSizeGb_ = 0L; - resourceManagerTags_ = null; - if (resourceManagerTagsBuilder_ != null) { - resourceManagerTagsBuilder_.dispose(); - resourceManagerTagsBuilder_ = 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.UpdateNodePoolRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.zone_ = zone_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clusterId_ = clusterId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.nodePoolId_ = nodePoolId_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.nodeVersion_ = nodeVersion_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.imageType_ = imageType_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - locations_.makeImmutable(); - result.locations_ = locations_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000080) != 0)) { - result.workloadMetadataConfig_ = - workloadMetadataConfigBuilder_ == null - ? workloadMetadataConfig_ - : workloadMetadataConfigBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.upgradeSettings_ = - upgradeSettingsBuilder_ == null ? upgradeSettings_ : upgradeSettingsBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.tags_ = tagsBuilder_ == null ? tags_ : tagsBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.taints_ = taintsBuilder_ == null ? taints_ : taintsBuilder_.build(); - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.labels_ = labelsBuilder_ == null ? labels_ : labelsBuilder_.build(); - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.linuxNodeConfig_ = - linuxNodeConfigBuilder_ == null ? linuxNodeConfig_ : linuxNodeConfigBuilder_.build(); - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.kubeletConfig_ = - kubeletConfigBuilder_ == null ? kubeletConfig_ : kubeletConfigBuilder_.build(); - to_bitField0_ |= 0x00000040; - } - if (((from_bitField0_ & 0x00008000) != 0)) { - result.nodeNetworkConfig_ = - nodeNetworkConfigBuilder_ == null - ? nodeNetworkConfig_ - : nodeNetworkConfigBuilder_.build(); - to_bitField0_ |= 0x00000080; - } - if (((from_bitField0_ & 0x00010000) != 0)) { - result.gcfsConfig_ = gcfsConfigBuilder_ == null ? gcfsConfig_ : gcfsConfigBuilder_.build(); - to_bitField0_ |= 0x00000100; - } - if (((from_bitField0_ & 0x00020000) != 0)) { - result.confidentialNodes_ = - confidentialNodesBuilder_ == null - ? confidentialNodes_ - : confidentialNodesBuilder_.build(); - to_bitField0_ |= 0x00000200; - } - if (((from_bitField0_ & 0x00040000) != 0)) { - result.gvnic_ = gvnicBuilder_ == null ? gvnic_ : gvnicBuilder_.build(); - to_bitField0_ |= 0x00000400; - } - if (((from_bitField0_ & 0x00080000) != 0)) { - result.etag_ = etag_; - } - if (((from_bitField0_ & 0x00100000) != 0)) { - result.fastSocket_ = fastSocketBuilder_ == null ? fastSocket_ : fastSocketBuilder_.build(); - to_bitField0_ |= 0x00000800; - } - if (((from_bitField0_ & 0x00200000) != 0)) { - result.loggingConfig_ = - loggingConfigBuilder_ == null ? loggingConfig_ : loggingConfigBuilder_.build(); - to_bitField0_ |= 0x00001000; - } - if (((from_bitField0_ & 0x00400000) != 0)) { - result.resourceLabels_ = - resourceLabelsBuilder_ == null ? resourceLabels_ : resourceLabelsBuilder_.build(); - to_bitField0_ |= 0x00002000; - } - if (((from_bitField0_ & 0x00800000) != 0)) { - result.windowsNodeConfig_ = - windowsNodeConfigBuilder_ == null - ? windowsNodeConfig_ - : windowsNodeConfigBuilder_.build(); - to_bitField0_ |= 0x00004000; - } - if (((from_bitField0_ & 0x01000000) != 0)) { - result.machineType_ = machineType_; - } - if (((from_bitField0_ & 0x02000000) != 0)) { - result.diskType_ = diskType_; - } - if (((from_bitField0_ & 0x04000000) != 0)) { - result.diskSizeGb_ = diskSizeGb_; - } - if (((from_bitField0_ & 0x08000000) != 0)) { - result.resourceManagerTags_ = - resourceManagerTagsBuilder_ == null - ? resourceManagerTags_ - : resourceManagerTagsBuilder_.build(); - to_bitField0_ |= 0x00008000; - } - result.bitField0_ |= to_bitField0_; - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getNodePoolId().isEmpty()) { - nodePoolId_ = other.nodePoolId_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getNodeVersion().isEmpty()) { - nodeVersion_ = other.nodeVersion_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (!other.getImageType().isEmpty()) { - imageType_ = other.imageType_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (!other.locations_.isEmpty()) { - if (locations_.isEmpty()) { - locations_ = other.locations_; - bitField0_ |= 0x00000040; - } else { - ensureLocationsIsMutable(); - locations_.addAll(other.locations_); - } - onChanged(); - } - if (other.hasWorkloadMetadataConfig()) { - mergeWorkloadMetadataConfig(other.getWorkloadMetadataConfig()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000100; - onChanged(); - } - if (other.hasUpgradeSettings()) { - mergeUpgradeSettings(other.getUpgradeSettings()); - } - if (other.hasTags()) { - mergeTags(other.getTags()); - } - if (other.hasTaints()) { - mergeTaints(other.getTaints()); - } - if (other.hasLabels()) { - mergeLabels(other.getLabels()); - } - if (other.hasLinuxNodeConfig()) { - mergeLinuxNodeConfig(other.getLinuxNodeConfig()); - } - if (other.hasKubeletConfig()) { - mergeKubeletConfig(other.getKubeletConfig()); - } - if (other.hasNodeNetworkConfig()) { - mergeNodeNetworkConfig(other.getNodeNetworkConfig()); - } - if (other.hasGcfsConfig()) { - mergeGcfsConfig(other.getGcfsConfig()); - } - if (other.hasConfidentialNodes()) { - mergeConfidentialNodes(other.getConfidentialNodes()); - } - if (other.hasGvnic()) { - mergeGvnic(other.getGvnic()); - } - if (!other.getEtag().isEmpty()) { - etag_ = other.etag_; - bitField0_ |= 0x00080000; - onChanged(); - } - if (other.hasFastSocket()) { - mergeFastSocket(other.getFastSocket()); - } - if (other.hasLoggingConfig()) { - mergeLoggingConfig(other.getLoggingConfig()); - } - if (other.hasResourceLabels()) { - mergeResourceLabels(other.getResourceLabels()); - } - if (other.hasWindowsNodeConfig()) { - mergeWindowsNodeConfig(other.getWindowsNodeConfig()); - } - if (!other.getMachineType().isEmpty()) { - machineType_ = other.machineType_; - bitField0_ |= 0x01000000; - onChanged(); - } - if (!other.getDiskType().isEmpty()) { - diskType_ = other.diskType_; - bitField0_ |= 0x02000000; - onChanged(); - } - if (other.getDiskSizeGb() != 0L) { - setDiskSizeGb(other.getDiskSizeGb()); - } - if (other.hasResourceManagerTags()) { - mergeResourceManagerTags(other.getResourceManagerTags()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - zone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - clusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - nodePoolId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - nodeVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - imageType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 66: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 66 - case 106: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureLocationsIsMutable(); - locations_.add(s); - break; - } // case 106 - case 114: - { - input.readMessage( - getWorkloadMetadataConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 114 - case 122: - { - input.readMessage(getUpgradeSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 122 - case 130: - { - input.readMessage(getTagsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; - break; - } // case 130 - case 138: - { - input.readMessage(getTaintsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; - break; - } // case 138 - case 146: - { - input.readMessage(getLabelsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; - break; - } // case 146 - case 154: - { - input.readMessage(getLinuxNodeConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00002000; - break; - } // case 154 - case 162: - { - input.readMessage(getKubeletConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; - break; - } // case 162 - case 170: - { - input.readMessage( - getNodeNetworkConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00008000; - break; - } // case 170 - case 178: - { - input.readMessage(getGcfsConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; - break; - } // case 178 - case 186: - { - input.readMessage( - getConfidentialNodesFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00020000; - break; - } // case 186 - case 234: - { - input.readMessage(getGvnicFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00040000; - break; - } // case 234 - case 242: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00080000; - break; - } // case 242 - case 250: - { - input.readMessage(getFastSocketFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00100000; - break; - } // case 250 - case 258: - { - input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00200000; - break; - } // case 258 - case 266: - { - input.readMessage(getResourceLabelsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00400000; - break; - } // case 266 - case 274: - { - input.readMessage( - getWindowsNodeConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00800000; - break; - } // case 274 - case 290: - { - machineType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x01000000; - break; - } // case 290 - case 298: - { - diskType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x02000000; - break; - } // case 298 - case 304: - { - diskSizeGb_ = input.readInt64(); - bitField0_ |= 0x04000000; - break; - } // case 304 - case 314: - { - input.readMessage( - getResourceManagerTagsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x08000000; - break; - } // case 314 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3026 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3026 - * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3026 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3026 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Deprecated. The Google Developers Console [project ID or project
-     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3026 - * @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; - bitField0_ |= 0x00000001; - 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]; - * - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3033 - * @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]; - * - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3033 - * @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]; - * - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3033 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3033 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - zone_ = getDefaultInstance().getZone(); - bitField0_ = (bitField0_ & ~0x00000002); - 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]; - * - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3033 - * @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; - bitField0_ |= 0x00000002; - 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]; - * - * - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3037 - * @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]; - * - * - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3037 - * @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]; - * - * - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3037 - * @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; - bitField0_ |= 0x00000004; - 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]; - * - * - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3037 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); - bitField0_ = (bitField0_ & ~0x00000004); - 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]; - * - * - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3037 - * @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; - bitField0_ |= 0x00000004; - 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]; - * - * - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3042 - * @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]; - * - * - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3042 - * @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]; - * - * - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3042 - * @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; - bitField0_ |= 0x00000008; - 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]; - * - * - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3042 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearNodePoolId() { - nodePoolId_ = getDefaultInstance().getNodePoolId(); - bitField0_ = (bitField0_ & ~0x00000008); - 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]; - * - * - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3042 - * @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; - bitField0_ |= 0x00000008; - 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; - bitField0_ |= 0x00000010; - 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(); - bitField0_ = (bitField0_ & ~0x00000010); - 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; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private java.lang.Object imageType_ = ""; - /** - * - * - *
-     * Required. The desired image type for the node pool. Please see
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-     * available image types.
-     * 
- * - * 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. Please see
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-     * available image types.
-     * 
- * - * 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. Please see
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-     * available image types.
-     * 
- * - * 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; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The desired image type for the node pool. Please see
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-     * available image types.
-     * 
- * - * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearImageType() { - imageType_ = getDefaultInstance().getImageType(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The desired image type for the node pool. Please see
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-     * available image types.
-     * 
- * - * 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; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList locations_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureLocationsIsMutable() { - if (!locations_.isModifiable()) { - locations_ = new com.google.protobuf.LazyStringArrayList(locations_); - } - bitField0_ |= 0x00000040; - } - /** - * - * - *
-     * 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() { - locations_.makeImmutable(); - 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); - } - /** - * - * - *
-     * 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); - bitField0_ |= 0x00000040; - 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); - bitField0_ |= 0x00000040; - 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_); - bitField0_ |= 0x00000040; - 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.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - ; - 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); - bitField0_ |= 0x00000040; - 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 ((bitField0_ & 0x00000080) != 0); - } - /** - * - * - *
-     * 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; - } else { - workloadMetadataConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000080; - onChanged(); - 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(); - } else { - workloadMetadataConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000080; - onChanged(); - 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 (((bitField0_ & 0x00000080) != 0) - && workloadMetadataConfig_ != null - && workloadMetadataConfig_ - != com.google.container.v1beta1.WorkloadMetadataConfig.getDefaultInstance()) { - getWorkloadMetadataConfigBuilder().mergeFrom(value); - } else { - workloadMetadataConfig_ = value; - } - } else { - workloadMetadataConfigBuilder_.mergeFrom(value); - } - if (workloadMetadataConfig_ != null) { - bitField0_ |= 0x00000080; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired workload metadata config for the node pool.
-     * 
- * - * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public Builder clearWorkloadMetadataConfig() { - bitField0_ = (bitField0_ & ~0x00000080); - workloadMetadataConfig_ = null; - if (workloadMetadataConfigBuilder_ != null) { - workloadMetadataConfigBuilder_.dispose(); - workloadMetadataConfigBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000080; - 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; - bitField0_ |= 0x00000100; - 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(); - bitField0_ = (bitField0_ & ~0x00000100); - 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; - bitField0_ |= 0x00000100; - 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 ((bitField0_ & 0x00000200) != 0); - } - /** - * - * - *
-     * 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; - } else { - upgradeSettingsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000200; - onChanged(); - 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(); - } else { - upgradeSettingsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000200; - onChanged(); - 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 (((bitField0_ & 0x00000200) != 0) - && upgradeSettings_ != null - && upgradeSettings_ - != com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance()) { - getUpgradeSettingsBuilder().mergeFrom(value); - } else { - upgradeSettings_ = value; - } - } else { - upgradeSettingsBuilder_.mergeFrom(value); - } - if (upgradeSettings_ != null) { - bitField0_ |= 0x00000200; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; - */ - public Builder clearUpgradeSettings() { - bitField0_ = (bitField0_ & ~0x00000200); - upgradeSettings_ = null; - if (upgradeSettingsBuilder_ != null) { - upgradeSettingsBuilder_.dispose(); - upgradeSettingsBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00000200; - 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.NetworkTags tags_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NetworkTags, - com.google.container.v1beta1.NetworkTags.Builder, - com.google.container.v1beta1.NetworkTagsOrBuilder> - tagsBuilder_; - /** - * - * - *
-     * The desired network tags to be applied to all nodes in the node pool.
-     * If this field is not present, the tags will not be changed. Otherwise,
-     * the existing network tags will be *replaced* with the provided tags.
-     * 
- * - * .google.container.v1beta1.NetworkTags tags = 16; - * - * @return Whether the tags field is set. - */ - public boolean hasTags() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - * - * - *
-     * The desired network tags to be applied to all nodes in the node pool.
-     * If this field is not present, the tags will not be changed. Otherwise,
-     * the existing network tags will be *replaced* with the provided tags.
-     * 
- * - * .google.container.v1beta1.NetworkTags tags = 16; - * - * @return The tags. - */ - public com.google.container.v1beta1.NetworkTags getTags() { - if (tagsBuilder_ == null) { - return tags_ == null - ? com.google.container.v1beta1.NetworkTags.getDefaultInstance() - : tags_; - } else { - return tagsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired network tags to be applied to all nodes in the node pool.
-     * If this field is not present, the tags will not be changed. Otherwise,
-     * the existing network tags will be *replaced* with the provided tags.
-     * 
- * - * .google.container.v1beta1.NetworkTags tags = 16; - */ - public Builder setTags(com.google.container.v1beta1.NetworkTags value) { - if (tagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tags_ = value; - } else { - tagsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired network tags to be applied to all nodes in the node pool.
-     * If this field is not present, the tags will not be changed. Otherwise,
-     * the existing network tags will be *replaced* with the provided tags.
-     * 
- * - * .google.container.v1beta1.NetworkTags tags = 16; - */ - public Builder setTags(com.google.container.v1beta1.NetworkTags.Builder builderForValue) { - if (tagsBuilder_ == null) { - tags_ = builderForValue.build(); - } else { - tagsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired network tags to be applied to all nodes in the node pool.
-     * If this field is not present, the tags will not be changed. Otherwise,
-     * the existing network tags will be *replaced* with the provided tags.
-     * 
- * - * .google.container.v1beta1.NetworkTags tags = 16; - */ - public Builder mergeTags(com.google.container.v1beta1.NetworkTags value) { - if (tagsBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) - && tags_ != null - && tags_ != com.google.container.v1beta1.NetworkTags.getDefaultInstance()) { - getTagsBuilder().mergeFrom(value); - } else { - tags_ = value; - } - } else { - tagsBuilder_.mergeFrom(value); - } - if (tags_ != null) { - bitField0_ |= 0x00000400; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired network tags to be applied to all nodes in the node pool.
-     * If this field is not present, the tags will not be changed. Otherwise,
-     * the existing network tags will be *replaced* with the provided tags.
-     * 
- * - * .google.container.v1beta1.NetworkTags tags = 16; - */ - public Builder clearTags() { - bitField0_ = (bitField0_ & ~0x00000400); - tags_ = null; - if (tagsBuilder_ != null) { - tagsBuilder_.dispose(); - tagsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired network tags to be applied to all nodes in the node pool.
-     * If this field is not present, the tags will not be changed. Otherwise,
-     * the existing network tags will be *replaced* with the provided tags.
-     * 
- * - * .google.container.v1beta1.NetworkTags tags = 16; - */ - public com.google.container.v1beta1.NetworkTags.Builder getTagsBuilder() { - bitField0_ |= 0x00000400; - onChanged(); - return getTagsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired network tags to be applied to all nodes in the node pool.
-     * If this field is not present, the tags will not be changed. Otherwise,
-     * the existing network tags will be *replaced* with the provided tags.
-     * 
- * - * .google.container.v1beta1.NetworkTags tags = 16; - */ - public com.google.container.v1beta1.NetworkTagsOrBuilder getTagsOrBuilder() { - if (tagsBuilder_ != null) { - return tagsBuilder_.getMessageOrBuilder(); - } else { - return tags_ == null - ? com.google.container.v1beta1.NetworkTags.getDefaultInstance() - : tags_; - } - } - /** - * - * - *
-     * The desired network tags to be applied to all nodes in the node pool.
-     * If this field is not present, the tags will not be changed. Otherwise,
-     * the existing network tags will be *replaced* with the provided tags.
-     * 
- * - * .google.container.v1beta1.NetworkTags tags = 16; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NetworkTags, - com.google.container.v1beta1.NetworkTags.Builder, - com.google.container.v1beta1.NetworkTagsOrBuilder> - getTagsFieldBuilder() { - if (tagsBuilder_ == null) { - tagsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NetworkTags, - com.google.container.v1beta1.NetworkTags.Builder, - com.google.container.v1beta1.NetworkTagsOrBuilder>( - getTags(), getParentForChildren(), isClean()); - tags_ = null; - } - return tagsBuilder_; - } - - private com.google.container.v1beta1.NodeTaints taints_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodeTaints, - com.google.container.v1beta1.NodeTaints.Builder, - com.google.container.v1beta1.NodeTaintsOrBuilder> - taintsBuilder_; - /** - * - * - *
-     * The desired node taints to be applied to all nodes in the node pool.
-     * If this field is not present, the taints will not be changed. Otherwise,
-     * the existing node taints will be *replaced* with the provided taints.
-     * 
- * - * .google.container.v1beta1.NodeTaints taints = 17; - * - * @return Whether the taints field is set. - */ - public boolean hasTaints() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - * - * - *
-     * The desired node taints to be applied to all nodes in the node pool.
-     * If this field is not present, the taints will not be changed. Otherwise,
-     * the existing node taints will be *replaced* with the provided taints.
-     * 
- * - * .google.container.v1beta1.NodeTaints taints = 17; - * - * @return The taints. - */ - public com.google.container.v1beta1.NodeTaints getTaints() { - if (taintsBuilder_ == null) { - return taints_ == null - ? com.google.container.v1beta1.NodeTaints.getDefaultInstance() - : taints_; - } else { - return taintsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired node taints to be applied to all nodes in the node pool.
-     * If this field is not present, the taints will not be changed. Otherwise,
-     * the existing node taints will be *replaced* with the provided taints.
-     * 
- * - * .google.container.v1beta1.NodeTaints taints = 17; - */ - public Builder setTaints(com.google.container.v1beta1.NodeTaints value) { - if (taintsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - taints_ = value; - } else { - taintsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired node taints to be applied to all nodes in the node pool.
-     * If this field is not present, the taints will not be changed. Otherwise,
-     * the existing node taints will be *replaced* with the provided taints.
-     * 
- * - * .google.container.v1beta1.NodeTaints taints = 17; - */ - public Builder setTaints(com.google.container.v1beta1.NodeTaints.Builder builderForValue) { - if (taintsBuilder_ == null) { - taints_ = builderForValue.build(); - } else { - taintsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired node taints to be applied to all nodes in the node pool.
-     * If this field is not present, the taints will not be changed. Otherwise,
-     * the existing node taints will be *replaced* with the provided taints.
-     * 
- * - * .google.container.v1beta1.NodeTaints taints = 17; - */ - public Builder mergeTaints(com.google.container.v1beta1.NodeTaints value) { - if (taintsBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) - && taints_ != null - && taints_ != com.google.container.v1beta1.NodeTaints.getDefaultInstance()) { - getTaintsBuilder().mergeFrom(value); - } else { - taints_ = value; - } - } else { - taintsBuilder_.mergeFrom(value); - } - if (taints_ != null) { - bitField0_ |= 0x00000800; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired node taints to be applied to all nodes in the node pool.
-     * If this field is not present, the taints will not be changed. Otherwise,
-     * the existing node taints will be *replaced* with the provided taints.
-     * 
- * - * .google.container.v1beta1.NodeTaints taints = 17; - */ - public Builder clearTaints() { - bitField0_ = (bitField0_ & ~0x00000800); - taints_ = null; - if (taintsBuilder_ != null) { - taintsBuilder_.dispose(); - taintsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired node taints to be applied to all nodes in the node pool.
-     * If this field is not present, the taints will not be changed. Otherwise,
-     * the existing node taints will be *replaced* with the provided taints.
-     * 
- * - * .google.container.v1beta1.NodeTaints taints = 17; - */ - public com.google.container.v1beta1.NodeTaints.Builder getTaintsBuilder() { - bitField0_ |= 0x00000800; - onChanged(); - return getTaintsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired node taints to be applied to all nodes in the node pool.
-     * If this field is not present, the taints will not be changed. Otherwise,
-     * the existing node taints will be *replaced* with the provided taints.
-     * 
- * - * .google.container.v1beta1.NodeTaints taints = 17; - */ - public com.google.container.v1beta1.NodeTaintsOrBuilder getTaintsOrBuilder() { - if (taintsBuilder_ != null) { - return taintsBuilder_.getMessageOrBuilder(); - } else { - return taints_ == null - ? com.google.container.v1beta1.NodeTaints.getDefaultInstance() - : taints_; - } - } - /** - * - * - *
-     * The desired node taints to be applied to all nodes in the node pool.
-     * If this field is not present, the taints will not be changed. Otherwise,
-     * the existing node taints will be *replaced* with the provided taints.
-     * 
- * - * .google.container.v1beta1.NodeTaints taints = 17; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodeTaints, - com.google.container.v1beta1.NodeTaints.Builder, - com.google.container.v1beta1.NodeTaintsOrBuilder> - getTaintsFieldBuilder() { - if (taintsBuilder_ == null) { - taintsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodeTaints, - com.google.container.v1beta1.NodeTaints.Builder, - com.google.container.v1beta1.NodeTaintsOrBuilder>( - getTaints(), getParentForChildren(), isClean()); - taints_ = null; - } - return taintsBuilder_; - } - - private com.google.container.v1beta1.NodeLabels labels_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodeLabels, - com.google.container.v1beta1.NodeLabels.Builder, - com.google.container.v1beta1.NodeLabelsOrBuilder> - labelsBuilder_; - /** - * - * - *
-     * The desired node labels to be applied to all nodes in the node pool.
-     * If this field is not present, the labels will not be changed. Otherwise,
-     * the existing node labels will be *replaced* with the provided labels.
-     * 
- * - * .google.container.v1beta1.NodeLabels labels = 18; - * - * @return Whether the labels field is set. - */ - public boolean hasLabels() { - return ((bitField0_ & 0x00001000) != 0); - } - /** - * - * - *
-     * The desired node labels to be applied to all nodes in the node pool.
-     * If this field is not present, the labels will not be changed. Otherwise,
-     * the existing node labels will be *replaced* with the provided labels.
-     * 
- * - * .google.container.v1beta1.NodeLabels labels = 18; - * - * @return The labels. - */ - public com.google.container.v1beta1.NodeLabels getLabels() { - if (labelsBuilder_ == null) { - return labels_ == null - ? com.google.container.v1beta1.NodeLabels.getDefaultInstance() - : labels_; - } else { - return labelsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired node labels to be applied to all nodes in the node pool.
-     * If this field is not present, the labels will not be changed. Otherwise,
-     * the existing node labels will be *replaced* with the provided labels.
-     * 
- * - * .google.container.v1beta1.NodeLabels labels = 18; - */ - public Builder setLabels(com.google.container.v1beta1.NodeLabels value) { - if (labelsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - labels_ = value; - } else { - labelsBuilder_.setMessage(value); - } - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired node labels to be applied to all nodes in the node pool.
-     * If this field is not present, the labels will not be changed. Otherwise,
-     * the existing node labels will be *replaced* with the provided labels.
-     * 
- * - * .google.container.v1beta1.NodeLabels labels = 18; - */ - public Builder setLabels(com.google.container.v1beta1.NodeLabels.Builder builderForValue) { - if (labelsBuilder_ == null) { - labels_ = builderForValue.build(); - } else { - labelsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired node labels to be applied to all nodes in the node pool.
-     * If this field is not present, the labels will not be changed. Otherwise,
-     * the existing node labels will be *replaced* with the provided labels.
-     * 
- * - * .google.container.v1beta1.NodeLabels labels = 18; - */ - public Builder mergeLabels(com.google.container.v1beta1.NodeLabels value) { - if (labelsBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) - && labels_ != null - && labels_ != com.google.container.v1beta1.NodeLabels.getDefaultInstance()) { - getLabelsBuilder().mergeFrom(value); - } else { - labels_ = value; - } - } else { - labelsBuilder_.mergeFrom(value); - } - if (labels_ != null) { - bitField0_ |= 0x00001000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The desired node labels to be applied to all nodes in the node pool.
-     * If this field is not present, the labels will not be changed. Otherwise,
-     * the existing node labels will be *replaced* with the provided labels.
-     * 
- * - * .google.container.v1beta1.NodeLabels labels = 18; - */ - public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00001000); - labels_ = null; - if (labelsBuilder_ != null) { - labelsBuilder_.dispose(); - labelsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The desired node labels to be applied to all nodes in the node pool.
-     * If this field is not present, the labels will not be changed. Otherwise,
-     * the existing node labels will be *replaced* with the provided labels.
-     * 
- * - * .google.container.v1beta1.NodeLabels labels = 18; - */ - public com.google.container.v1beta1.NodeLabels.Builder getLabelsBuilder() { - bitField0_ |= 0x00001000; - onChanged(); - return getLabelsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired node labels to be applied to all nodes in the node pool.
-     * If this field is not present, the labels will not be changed. Otherwise,
-     * the existing node labels will be *replaced* with the provided labels.
-     * 
- * - * .google.container.v1beta1.NodeLabels labels = 18; - */ - public com.google.container.v1beta1.NodeLabelsOrBuilder getLabelsOrBuilder() { - if (labelsBuilder_ != null) { - return labelsBuilder_.getMessageOrBuilder(); - } else { - return labels_ == null - ? com.google.container.v1beta1.NodeLabels.getDefaultInstance() - : labels_; - } - } - /** - * - * - *
-     * The desired node labels to be applied to all nodes in the node pool.
-     * If this field is not present, the labels will not be changed. Otherwise,
-     * the existing node labels will be *replaced* with the provided labels.
-     * 
- * - * .google.container.v1beta1.NodeLabels labels = 18; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodeLabels, - com.google.container.v1beta1.NodeLabels.Builder, - com.google.container.v1beta1.NodeLabelsOrBuilder> - getLabelsFieldBuilder() { - if (labelsBuilder_ == null) { - labelsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodeLabels, - com.google.container.v1beta1.NodeLabels.Builder, - com.google.container.v1beta1.NodeLabelsOrBuilder>( - getLabels(), getParentForChildren(), isClean()); - labels_ = null; - } - return labelsBuilder_; - } - - 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 ((bitField0_ & 0x00002000) != 0); - } - /** - * - * - *
-     * 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; - } else { - linuxNodeConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00002000; - onChanged(); - 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(); - } else { - linuxNodeConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00002000; - onChanged(); - 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 (((bitField0_ & 0x00002000) != 0) - && linuxNodeConfig_ != null - && linuxNodeConfig_ - != com.google.container.v1beta1.LinuxNodeConfig.getDefaultInstance()) { - getLinuxNodeConfigBuilder().mergeFrom(value); - } else { - linuxNodeConfig_ = value; - } - } else { - linuxNodeConfigBuilder_.mergeFrom(value); - } - if (linuxNodeConfig_ != null) { - bitField0_ |= 0x00002000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Parameters that can be configured on Linux nodes.
-     * 
- * - * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 19; - */ - public Builder clearLinuxNodeConfig() { - bitField0_ = (bitField0_ & ~0x00002000); - linuxNodeConfig_ = null; - if (linuxNodeConfigBuilder_ != null) { - linuxNodeConfigBuilder_.dispose(); - linuxNodeConfigBuilder_ = null; - } - onChanged(); - 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() { - bitField0_ |= 0x00002000; - 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 ((bitField0_ & 0x00004000) != 0); - } - /** - * - * - *
-     * 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; - } else { - kubeletConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00004000; - onChanged(); - 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(); - } else { - kubeletConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00004000; - onChanged(); - 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 (((bitField0_ & 0x00004000) != 0) - && kubeletConfig_ != null - && kubeletConfig_ - != com.google.container.v1beta1.NodeKubeletConfig.getDefaultInstance()) { - getKubeletConfigBuilder().mergeFrom(value); - } else { - kubeletConfig_ = value; - } - } else { - kubeletConfigBuilder_.mergeFrom(value); - } - if (kubeletConfig_ != null) { - bitField0_ |= 0x00004000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 20; - */ - public Builder clearKubeletConfig() { - bitField0_ = (bitField0_ & ~0x00004000); - kubeletConfig_ = null; - if (kubeletConfigBuilder_ != null) { - kubeletConfigBuilder_.dispose(); - kubeletConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Node kubelet configs.
-     * 
- * - * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 20; - */ - public com.google.container.v1beta1.NodeKubeletConfig.Builder getKubeletConfigBuilder() { - bitField0_ |= 0x00004000; - 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_; - } - - private com.google.container.v1beta1.NodeNetworkConfig nodeNetworkConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodeNetworkConfig, - com.google.container.v1beta1.NodeNetworkConfig.Builder, - com.google.container.v1beta1.NodeNetworkConfigOrBuilder> - nodeNetworkConfigBuilder_; - /** - * - * - *
-     * Node network config.
-     * 
- * - * .google.container.v1beta1.NodeNetworkConfig node_network_config = 21; - * - * @return Whether the nodeNetworkConfig field is set. - */ - public boolean hasNodeNetworkConfig() { - return ((bitField0_ & 0x00008000) != 0); - } - /** - * - * - *
-     * Node network config.
-     * 
- * - * .google.container.v1beta1.NodeNetworkConfig node_network_config = 21; - * - * @return The nodeNetworkConfig. - */ - public com.google.container.v1beta1.NodeNetworkConfig getNodeNetworkConfig() { - if (nodeNetworkConfigBuilder_ == null) { - return nodeNetworkConfig_ == null - ? com.google.container.v1beta1.NodeNetworkConfig.getDefaultInstance() - : nodeNetworkConfig_; - } else { - return nodeNetworkConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Node network config.
-     * 
- * - * .google.container.v1beta1.NodeNetworkConfig node_network_config = 21; - */ - public Builder setNodeNetworkConfig(com.google.container.v1beta1.NodeNetworkConfig value) { - if (nodeNetworkConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - nodeNetworkConfig_ = value; - } else { - nodeNetworkConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - /** - * - * - *
-     * Node network config.
-     * 
- * - * .google.container.v1beta1.NodeNetworkConfig node_network_config = 21; - */ - public Builder setNodeNetworkConfig( - com.google.container.v1beta1.NodeNetworkConfig.Builder builderForValue) { - if (nodeNetworkConfigBuilder_ == null) { - nodeNetworkConfig_ = builderForValue.build(); - } else { - nodeNetworkConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - /** - * - * - *
-     * Node network config.
-     * 
- * - * .google.container.v1beta1.NodeNetworkConfig node_network_config = 21; - */ - public Builder mergeNodeNetworkConfig(com.google.container.v1beta1.NodeNetworkConfig value) { - if (nodeNetworkConfigBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) - && nodeNetworkConfig_ != null - && nodeNetworkConfig_ - != com.google.container.v1beta1.NodeNetworkConfig.getDefaultInstance()) { - getNodeNetworkConfigBuilder().mergeFrom(value); - } else { - nodeNetworkConfig_ = value; - } - } else { - nodeNetworkConfigBuilder_.mergeFrom(value); - } - if (nodeNetworkConfig_ != null) { - bitField0_ |= 0x00008000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Node network config.
-     * 
- * - * .google.container.v1beta1.NodeNetworkConfig node_network_config = 21; - */ - public Builder clearNodeNetworkConfig() { - bitField0_ = (bitField0_ & ~0x00008000); - nodeNetworkConfig_ = null; - if (nodeNetworkConfigBuilder_ != null) { - nodeNetworkConfigBuilder_.dispose(); - nodeNetworkConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Node network config.
-     * 
- * - * .google.container.v1beta1.NodeNetworkConfig node_network_config = 21; - */ - public com.google.container.v1beta1.NodeNetworkConfig.Builder getNodeNetworkConfigBuilder() { - bitField0_ |= 0x00008000; - onChanged(); - return getNodeNetworkConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Node network config.
-     * 
- * - * .google.container.v1beta1.NodeNetworkConfig node_network_config = 21; - */ - public com.google.container.v1beta1.NodeNetworkConfigOrBuilder getNodeNetworkConfigOrBuilder() { - if (nodeNetworkConfigBuilder_ != null) { - return nodeNetworkConfigBuilder_.getMessageOrBuilder(); - } else { - return nodeNetworkConfig_ == null - ? com.google.container.v1beta1.NodeNetworkConfig.getDefaultInstance() - : nodeNetworkConfig_; - } - } - /** - * - * - *
-     * Node network config.
-     * 
- * - * .google.container.v1beta1.NodeNetworkConfig node_network_config = 21; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodeNetworkConfig, - com.google.container.v1beta1.NodeNetworkConfig.Builder, - com.google.container.v1beta1.NodeNetworkConfigOrBuilder> - getNodeNetworkConfigFieldBuilder() { - if (nodeNetworkConfigBuilder_ == null) { - nodeNetworkConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodeNetworkConfig, - com.google.container.v1beta1.NodeNetworkConfig.Builder, - com.google.container.v1beta1.NodeNetworkConfigOrBuilder>( - getNodeNetworkConfig(), getParentForChildren(), isClean()); - nodeNetworkConfig_ = null; - } - return nodeNetworkConfigBuilder_; - } - - private com.google.container.v1beta1.GcfsConfig gcfsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GcfsConfig, - com.google.container.v1beta1.GcfsConfig.Builder, - com.google.container.v1beta1.GcfsConfigOrBuilder> - gcfsConfigBuilder_; - /** - * - * - *
-     * GCFS config.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 22; - * - * @return Whether the gcfsConfig field is set. - */ - public boolean hasGcfsConfig() { - return ((bitField0_ & 0x00010000) != 0); - } - /** - * - * - *
-     * GCFS config.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 22; - * - * @return The gcfsConfig. - */ - public com.google.container.v1beta1.GcfsConfig getGcfsConfig() { - if (gcfsConfigBuilder_ == null) { - return gcfsConfig_ == null - ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() - : gcfsConfig_; - } else { - return gcfsConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * GCFS config.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 22; - */ - public Builder setGcfsConfig(com.google.container.v1beta1.GcfsConfig value) { - if (gcfsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gcfsConfig_ = value; - } else { - gcfsConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00010000; - onChanged(); - return this; - } - /** - * - * - *
-     * GCFS config.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 22; - */ - public Builder setGcfsConfig(com.google.container.v1beta1.GcfsConfig.Builder builderForValue) { - if (gcfsConfigBuilder_ == null) { - gcfsConfig_ = builderForValue.build(); - } else { - gcfsConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00010000; - onChanged(); - return this; - } - /** - * - * - *
-     * GCFS config.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 22; - */ - public Builder mergeGcfsConfig(com.google.container.v1beta1.GcfsConfig value) { - if (gcfsConfigBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) - && gcfsConfig_ != null - && gcfsConfig_ != com.google.container.v1beta1.GcfsConfig.getDefaultInstance()) { - getGcfsConfigBuilder().mergeFrom(value); - } else { - gcfsConfig_ = value; - } - } else { - gcfsConfigBuilder_.mergeFrom(value); - } - if (gcfsConfig_ != null) { - bitField0_ |= 0x00010000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * GCFS config.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 22; - */ - public Builder clearGcfsConfig() { - bitField0_ = (bitField0_ & ~0x00010000); - gcfsConfig_ = null; - if (gcfsConfigBuilder_ != null) { - gcfsConfigBuilder_.dispose(); - gcfsConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * GCFS config.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 22; - */ - public com.google.container.v1beta1.GcfsConfig.Builder getGcfsConfigBuilder() { - bitField0_ |= 0x00010000; - onChanged(); - return getGcfsConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * GCFS config.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 22; - */ - public com.google.container.v1beta1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { - if (gcfsConfigBuilder_ != null) { - return gcfsConfigBuilder_.getMessageOrBuilder(); - } else { - return gcfsConfig_ == null - ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() - : gcfsConfig_; - } - } - /** - * - * - *
-     * GCFS config.
-     * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 22; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GcfsConfig, - com.google.container.v1beta1.GcfsConfig.Builder, - com.google.container.v1beta1.GcfsConfigOrBuilder> - getGcfsConfigFieldBuilder() { - if (gcfsConfigBuilder_ == null) { - gcfsConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.GcfsConfig, - com.google.container.v1beta1.GcfsConfig.Builder, - com.google.container.v1beta1.GcfsConfigOrBuilder>( - getGcfsConfig(), getParentForChildren(), isClean()); - gcfsConfig_ = null; - } - return gcfsConfigBuilder_; - } - - private com.google.container.v1beta1.ConfidentialNodes confidentialNodes_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ConfidentialNodes, - com.google.container.v1beta1.ConfidentialNodes.Builder, - com.google.container.v1beta1.ConfidentialNodesOrBuilder> - confidentialNodesBuilder_; - /** - * - * - *
-     * Confidential nodes config.
-     * All the nodes in the node pool will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 23; - * - * @return Whether the confidentialNodes field is set. - */ - public boolean hasConfidentialNodes() { - return ((bitField0_ & 0x00020000) != 0); - } - /** - * - * - *
-     * Confidential nodes config.
-     * All the nodes in the node pool will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 23; - * - * @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(); - } - } - /** - * - * - *
-     * Confidential nodes config.
-     * All the nodes in the node pool will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 23; - */ - public Builder setConfidentialNodes(com.google.container.v1beta1.ConfidentialNodes value) { - if (confidentialNodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - confidentialNodes_ = value; - } else { - confidentialNodesBuilder_.setMessage(value); - } - bitField0_ |= 0x00020000; - onChanged(); - return this; - } - /** - * - * - *
-     * Confidential nodes config.
-     * All the nodes in the node pool will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 23; - */ - public Builder setConfidentialNodes( - com.google.container.v1beta1.ConfidentialNodes.Builder builderForValue) { - if (confidentialNodesBuilder_ == null) { - confidentialNodes_ = builderForValue.build(); - } else { - confidentialNodesBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00020000; - onChanged(); - return this; - } - /** - * - * - *
-     * Confidential nodes config.
-     * All the nodes in the node pool will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 23; - */ - public Builder mergeConfidentialNodes(com.google.container.v1beta1.ConfidentialNodes value) { - if (confidentialNodesBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) - && confidentialNodes_ != null - && confidentialNodes_ - != com.google.container.v1beta1.ConfidentialNodes.getDefaultInstance()) { - getConfidentialNodesBuilder().mergeFrom(value); - } else { - confidentialNodes_ = value; - } - } else { - confidentialNodesBuilder_.mergeFrom(value); - } - if (confidentialNodes_ != null) { - bitField0_ |= 0x00020000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Confidential nodes config.
-     * All the nodes in the node pool will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 23; - */ - public Builder clearConfidentialNodes() { - bitField0_ = (bitField0_ & ~0x00020000); - confidentialNodes_ = null; - if (confidentialNodesBuilder_ != null) { - confidentialNodesBuilder_.dispose(); - confidentialNodesBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Confidential nodes config.
-     * All the nodes in the node pool will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 23; - */ - public com.google.container.v1beta1.ConfidentialNodes.Builder getConfidentialNodesBuilder() { - bitField0_ |= 0x00020000; - onChanged(); - return getConfidentialNodesFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Confidential nodes config.
-     * All the nodes in the node pool will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 23; - */ - public com.google.container.v1beta1.ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder() { - if (confidentialNodesBuilder_ != null) { - return confidentialNodesBuilder_.getMessageOrBuilder(); - } else { - return confidentialNodes_ == null - ? com.google.container.v1beta1.ConfidentialNodes.getDefaultInstance() - : confidentialNodes_; - } - } - /** - * - * - *
-     * Confidential nodes config.
-     * All the nodes in the node pool will be Confidential VM once enabled.
-     * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 23; - */ - 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 com.google.container.v1beta1.VirtualNIC gvnic_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.VirtualNIC, - com.google.container.v1beta1.VirtualNIC.Builder, - com.google.container.v1beta1.VirtualNICOrBuilder> - gvnicBuilder_; - /** - * - * - *
-     * Enable or disable gvnic on the node pool.
-     * 
- * - * .google.container.v1beta1.VirtualNIC gvnic = 29; - * - * @return Whether the gvnic field is set. - */ - public boolean hasGvnic() { - return ((bitField0_ & 0x00040000) != 0); - } - /** - * - * - *
-     * Enable or disable gvnic on the node pool.
-     * 
- * - * .google.container.v1beta1.VirtualNIC gvnic = 29; - * - * @return The gvnic. - */ - public com.google.container.v1beta1.VirtualNIC getGvnic() { - if (gvnicBuilder_ == null) { - return gvnic_ == null - ? com.google.container.v1beta1.VirtualNIC.getDefaultInstance() - : gvnic_; - } else { - return gvnicBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Enable or disable gvnic on the node pool.
-     * 
- * - * .google.container.v1beta1.VirtualNIC gvnic = 29; - */ - public Builder setGvnic(com.google.container.v1beta1.VirtualNIC value) { - if (gvnicBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gvnic_ = value; - } else { - gvnicBuilder_.setMessage(value); - } - bitField0_ |= 0x00040000; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable or disable gvnic on the node pool.
-     * 
- * - * .google.container.v1beta1.VirtualNIC gvnic = 29; - */ - public Builder setGvnic(com.google.container.v1beta1.VirtualNIC.Builder builderForValue) { - if (gvnicBuilder_ == null) { - gvnic_ = builderForValue.build(); - } else { - gvnicBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00040000; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable or disable gvnic on the node pool.
-     * 
- * - * .google.container.v1beta1.VirtualNIC gvnic = 29; - */ - public Builder mergeGvnic(com.google.container.v1beta1.VirtualNIC value) { - if (gvnicBuilder_ == null) { - if (((bitField0_ & 0x00040000) != 0) - && gvnic_ != null - && gvnic_ != com.google.container.v1beta1.VirtualNIC.getDefaultInstance()) { - getGvnicBuilder().mergeFrom(value); - } else { - gvnic_ = value; - } - } else { - gvnicBuilder_.mergeFrom(value); - } - if (gvnic_ != null) { - bitField0_ |= 0x00040000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Enable or disable gvnic on the node pool.
-     * 
- * - * .google.container.v1beta1.VirtualNIC gvnic = 29; - */ - public Builder clearGvnic() { - bitField0_ = (bitField0_ & ~0x00040000); - gvnic_ = null; - if (gvnicBuilder_ != null) { - gvnicBuilder_.dispose(); - gvnicBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Enable or disable gvnic on the node pool.
-     * 
- * - * .google.container.v1beta1.VirtualNIC gvnic = 29; - */ - public com.google.container.v1beta1.VirtualNIC.Builder getGvnicBuilder() { - bitField0_ |= 0x00040000; - onChanged(); - return getGvnicFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Enable or disable gvnic on the node pool.
-     * 
- * - * .google.container.v1beta1.VirtualNIC gvnic = 29; - */ - public com.google.container.v1beta1.VirtualNICOrBuilder getGvnicOrBuilder() { - if (gvnicBuilder_ != null) { - return gvnicBuilder_.getMessageOrBuilder(); - } else { - return gvnic_ == null - ? com.google.container.v1beta1.VirtualNIC.getDefaultInstance() - : gvnic_; - } - } - /** - * - * - *
-     * Enable or disable gvnic on the node pool.
-     * 
- * - * .google.container.v1beta1.VirtualNIC gvnic = 29; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.VirtualNIC, - com.google.container.v1beta1.VirtualNIC.Builder, - com.google.container.v1beta1.VirtualNICOrBuilder> - getGvnicFieldBuilder() { - if (gvnicBuilder_ == null) { - gvnicBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.VirtualNIC, - com.google.container.v1beta1.VirtualNIC.Builder, - com.google.container.v1beta1.VirtualNICOrBuilder>( - getGvnic(), getParentForChildren(), isClean()); - gvnic_ = null; - } - return gvnicBuilder_; - } - - private java.lang.Object etag_ = ""; - /** - * - * - *
-     * The current etag of the node pool.
-     * If an etag is provided and does not match the current etag of the node
-     * pool, update will be blocked and an ABORTED error will be returned.
-     * 
- * - * string etag = 30; - * - * @return The etag. - */ - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The current etag of the node pool.
-     * If an etag is provided and does not match the current etag of the node
-     * pool, update will be blocked and an ABORTED error will be returned.
-     * 
- * - * string etag = 30; - * - * @return The bytes for etag. - */ - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The current etag of the node pool.
-     * If an etag is provided and does not match the current etag of the node
-     * pool, update will be blocked and an ABORTED error will be returned.
-     * 
- * - * string etag = 30; - * - * @param value The etag to set. - * @return This builder for chaining. - */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - etag_ = value; - bitField0_ |= 0x00080000; - onChanged(); - return this; - } - /** - * - * - *
-     * The current etag of the node pool.
-     * If an etag is provided and does not match the current etag of the node
-     * pool, update will be blocked and an ABORTED error will be returned.
-     * 
- * - * string etag = 30; - * - * @return This builder for chaining. - */ - public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00080000); - onChanged(); - return this; - } - /** - * - * - *
-     * The current etag of the node pool.
-     * If an etag is provided and does not match the current etag of the node
-     * pool, update will be blocked and an ABORTED error will be returned.
-     * 
- * - * string etag = 30; - * - * @param value The bytes for etag to set. - * @return This builder for chaining. - */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - etag_ = value; - bitField0_ |= 0x00080000; - onChanged(); - return this; - } - - private com.google.container.v1beta1.FastSocket fastSocket_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.FastSocket, - com.google.container.v1beta1.FastSocket.Builder, - com.google.container.v1beta1.FastSocketOrBuilder> - fastSocketBuilder_; - /** - * - * - *
-     * Enable or disable NCCL fast socket for the node pool.
-     * 
- * - * .google.container.v1beta1.FastSocket fast_socket = 31; - * - * @return Whether the fastSocket field is set. - */ - public boolean hasFastSocket() { - return ((bitField0_ & 0x00100000) != 0); - } - /** - * - * - *
-     * Enable or disable NCCL fast socket for the node pool.
-     * 
- * - * .google.container.v1beta1.FastSocket fast_socket = 31; - * - * @return The fastSocket. - */ - public com.google.container.v1beta1.FastSocket getFastSocket() { - if (fastSocketBuilder_ == null) { - return fastSocket_ == null - ? com.google.container.v1beta1.FastSocket.getDefaultInstance() - : fastSocket_; - } else { - return fastSocketBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Enable or disable NCCL fast socket for the node pool.
-     * 
- * - * .google.container.v1beta1.FastSocket fast_socket = 31; - */ - public Builder setFastSocket(com.google.container.v1beta1.FastSocket value) { - if (fastSocketBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - fastSocket_ = value; - } else { - fastSocketBuilder_.setMessage(value); - } - bitField0_ |= 0x00100000; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable or disable NCCL fast socket for the node pool.
-     * 
- * - * .google.container.v1beta1.FastSocket fast_socket = 31; - */ - public Builder setFastSocket(com.google.container.v1beta1.FastSocket.Builder builderForValue) { - if (fastSocketBuilder_ == null) { - fastSocket_ = builderForValue.build(); - } else { - fastSocketBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00100000; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable or disable NCCL fast socket for the node pool.
-     * 
- * - * .google.container.v1beta1.FastSocket fast_socket = 31; - */ - public Builder mergeFastSocket(com.google.container.v1beta1.FastSocket value) { - if (fastSocketBuilder_ == null) { - if (((bitField0_ & 0x00100000) != 0) - && fastSocket_ != null - && fastSocket_ != com.google.container.v1beta1.FastSocket.getDefaultInstance()) { - getFastSocketBuilder().mergeFrom(value); - } else { - fastSocket_ = value; - } - } else { - fastSocketBuilder_.mergeFrom(value); - } - if (fastSocket_ != null) { - bitField0_ |= 0x00100000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Enable or disable NCCL fast socket for the node pool.
-     * 
- * - * .google.container.v1beta1.FastSocket fast_socket = 31; - */ - public Builder clearFastSocket() { - bitField0_ = (bitField0_ & ~0x00100000); - fastSocket_ = null; - if (fastSocketBuilder_ != null) { - fastSocketBuilder_.dispose(); - fastSocketBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Enable or disable NCCL fast socket for the node pool.
-     * 
- * - * .google.container.v1beta1.FastSocket fast_socket = 31; - */ - public com.google.container.v1beta1.FastSocket.Builder getFastSocketBuilder() { - bitField0_ |= 0x00100000; - onChanged(); - return getFastSocketFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Enable or disable NCCL fast socket for the node pool.
-     * 
- * - * .google.container.v1beta1.FastSocket fast_socket = 31; - */ - public com.google.container.v1beta1.FastSocketOrBuilder getFastSocketOrBuilder() { - if (fastSocketBuilder_ != null) { - return fastSocketBuilder_.getMessageOrBuilder(); - } else { - return fastSocket_ == null - ? com.google.container.v1beta1.FastSocket.getDefaultInstance() - : fastSocket_; - } - } - /** - * - * - *
-     * Enable or disable NCCL fast socket for the node pool.
-     * 
- * - * .google.container.v1beta1.FastSocket fast_socket = 31; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.FastSocket, - com.google.container.v1beta1.FastSocket.Builder, - com.google.container.v1beta1.FastSocketOrBuilder> - getFastSocketFieldBuilder() { - if (fastSocketBuilder_ == null) { - fastSocketBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.FastSocket, - com.google.container.v1beta1.FastSocket.Builder, - com.google.container.v1beta1.FastSocketOrBuilder>( - getFastSocket(), getParentForChildren(), isClean()); - fastSocket_ = null; - } - return fastSocketBuilder_; - } - - private com.google.container.v1beta1.NodePoolLoggingConfig loggingConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePoolLoggingConfig, - com.google.container.v1beta1.NodePoolLoggingConfig.Builder, - com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder> - loggingConfigBuilder_; - /** - * - * - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 32; - * - * @return Whether the loggingConfig field is set. - */ - public boolean hasLoggingConfig() { - return ((bitField0_ & 0x00200000) != 0); - } - /** - * - * - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 32; - * - * @return The loggingConfig. - */ - public com.google.container.v1beta1.NodePoolLoggingConfig getLoggingConfig() { - if (loggingConfigBuilder_ == null) { - return loggingConfig_ == null - ? com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance() - : loggingConfig_; - } else { - return loggingConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 32; - */ - public Builder setLoggingConfig(com.google.container.v1beta1.NodePoolLoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - loggingConfig_ = value; - } else { - loggingConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00200000; - onChanged(); - return this; - } - /** - * - * - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 32; - */ - public Builder setLoggingConfig( - com.google.container.v1beta1.NodePoolLoggingConfig.Builder builderForValue) { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = builderForValue.build(); - } else { - loggingConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00200000; - onChanged(); - return this; - } - /** - * - * - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 32; - */ - public Builder mergeLoggingConfig(com.google.container.v1beta1.NodePoolLoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (((bitField0_ & 0x00200000) != 0) - && loggingConfig_ != null - && loggingConfig_ - != com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance()) { - getLoggingConfigBuilder().mergeFrom(value); - } else { - loggingConfig_ = value; - } - } else { - loggingConfigBuilder_.mergeFrom(value); - } - if (loggingConfig_ != null) { - bitField0_ |= 0x00200000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 32; - */ - public Builder clearLoggingConfig() { - bitField0_ = (bitField0_ & ~0x00200000); - loggingConfig_ = null; - if (loggingConfigBuilder_ != null) { - loggingConfigBuilder_.dispose(); - loggingConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 32; - */ - public com.google.container.v1beta1.NodePoolLoggingConfig.Builder getLoggingConfigBuilder() { - bitField0_ |= 0x00200000; - onChanged(); - return getLoggingConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 32; - */ - public com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder getLoggingConfigOrBuilder() { - if (loggingConfigBuilder_ != null) { - return loggingConfigBuilder_.getMessageOrBuilder(); - } else { - return loggingConfig_ == null - ? com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance() - : loggingConfig_; - } - } - /** - * - * - *
-     * Logging configuration.
-     * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 32; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePoolLoggingConfig, - com.google.container.v1beta1.NodePoolLoggingConfig.Builder, - com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder> - getLoggingConfigFieldBuilder() { - if (loggingConfigBuilder_ == null) { - loggingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.NodePoolLoggingConfig, - com.google.container.v1beta1.NodePoolLoggingConfig.Builder, - com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder>( - getLoggingConfig(), getParentForChildren(), isClean()); - loggingConfig_ = null; - } - return loggingConfigBuilder_; - } - - private com.google.container.v1beta1.ResourceLabels resourceLabels_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ResourceLabels, - com.google.container.v1beta1.ResourceLabels.Builder, - com.google.container.v1beta1.ResourceLabelsOrBuilder> - resourceLabelsBuilder_; - /** - * - * - *
-     * The resource labels for the node pool to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * .google.container.v1beta1.ResourceLabels resource_labels = 33; - * - * @return Whether the resourceLabels field is set. - */ - public boolean hasResourceLabels() { - return ((bitField0_ & 0x00400000) != 0); - } - /** - * - * - *
-     * The resource labels for the node pool to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * .google.container.v1beta1.ResourceLabels resource_labels = 33; - * - * @return The resourceLabels. - */ - public com.google.container.v1beta1.ResourceLabels getResourceLabels() { - if (resourceLabelsBuilder_ == null) { - return resourceLabels_ == null - ? com.google.container.v1beta1.ResourceLabels.getDefaultInstance() - : resourceLabels_; - } else { - return resourceLabelsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The resource labels for the node pool to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * .google.container.v1beta1.ResourceLabels resource_labels = 33; - */ - public Builder setResourceLabels(com.google.container.v1beta1.ResourceLabels value) { - if (resourceLabelsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resourceLabels_ = value; - } else { - resourceLabelsBuilder_.setMessage(value); - } - bitField0_ |= 0x00400000; - onChanged(); - return this; - } - /** - * - * - *
-     * The resource labels for the node pool to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * .google.container.v1beta1.ResourceLabels resource_labels = 33; - */ - public Builder setResourceLabels( - com.google.container.v1beta1.ResourceLabels.Builder builderForValue) { - if (resourceLabelsBuilder_ == null) { - resourceLabels_ = builderForValue.build(); - } else { - resourceLabelsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00400000; - onChanged(); - return this; - } - /** - * - * - *
-     * The resource labels for the node pool to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * .google.container.v1beta1.ResourceLabels resource_labels = 33; - */ - public Builder mergeResourceLabels(com.google.container.v1beta1.ResourceLabels value) { - if (resourceLabelsBuilder_ == null) { - if (((bitField0_ & 0x00400000) != 0) - && resourceLabels_ != null - && resourceLabels_ - != com.google.container.v1beta1.ResourceLabels.getDefaultInstance()) { - getResourceLabelsBuilder().mergeFrom(value); - } else { - resourceLabels_ = value; - } - } else { - resourceLabelsBuilder_.mergeFrom(value); - } - if (resourceLabels_ != null) { - bitField0_ |= 0x00400000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The resource labels for the node pool to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * .google.container.v1beta1.ResourceLabels resource_labels = 33; - */ - public Builder clearResourceLabels() { - bitField0_ = (bitField0_ & ~0x00400000); - resourceLabels_ = null; - if (resourceLabelsBuilder_ != null) { - resourceLabelsBuilder_.dispose(); - resourceLabelsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The resource labels for the node pool to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * .google.container.v1beta1.ResourceLabels resource_labels = 33; - */ - public com.google.container.v1beta1.ResourceLabels.Builder getResourceLabelsBuilder() { - bitField0_ |= 0x00400000; - onChanged(); - return getResourceLabelsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The resource labels for the node pool to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * .google.container.v1beta1.ResourceLabels resource_labels = 33; - */ - public com.google.container.v1beta1.ResourceLabelsOrBuilder getResourceLabelsOrBuilder() { - if (resourceLabelsBuilder_ != null) { - return resourceLabelsBuilder_.getMessageOrBuilder(); - } else { - return resourceLabels_ == null - ? com.google.container.v1beta1.ResourceLabels.getDefaultInstance() - : resourceLabels_; - } - } - /** - * - * - *
-     * The resource labels for the node pool to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * .google.container.v1beta1.ResourceLabels resource_labels = 33; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ResourceLabels, - com.google.container.v1beta1.ResourceLabels.Builder, - com.google.container.v1beta1.ResourceLabelsOrBuilder> - getResourceLabelsFieldBuilder() { - if (resourceLabelsBuilder_ == null) { - resourceLabelsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ResourceLabels, - com.google.container.v1beta1.ResourceLabels.Builder, - com.google.container.v1beta1.ResourceLabelsOrBuilder>( - getResourceLabels(), getParentForChildren(), isClean()); - resourceLabels_ = null; - } - return resourceLabelsBuilder_; - } - - private com.google.container.v1beta1.WindowsNodeConfig windowsNodeConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WindowsNodeConfig, - com.google.container.v1beta1.WindowsNodeConfig.Builder, - com.google.container.v1beta1.WindowsNodeConfigOrBuilder> - windowsNodeConfigBuilder_; - /** - * - * - *
-     * Parameters that can be configured on Windows nodes.
-     * 
- * - * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 34; - * - * @return Whether the windowsNodeConfig field is set. - */ - public boolean hasWindowsNodeConfig() { - return ((bitField0_ & 0x00800000) != 0); - } - /** - * - * - *
-     * Parameters that can be configured on Windows nodes.
-     * 
- * - * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 34; - * - * @return The windowsNodeConfig. - */ - public com.google.container.v1beta1.WindowsNodeConfig getWindowsNodeConfig() { - if (windowsNodeConfigBuilder_ == null) { - return windowsNodeConfig_ == null - ? com.google.container.v1beta1.WindowsNodeConfig.getDefaultInstance() - : windowsNodeConfig_; - } else { - return windowsNodeConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Parameters that can be configured on Windows nodes.
-     * 
- * - * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 34; - */ - public Builder setWindowsNodeConfig(com.google.container.v1beta1.WindowsNodeConfig value) { - if (windowsNodeConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - windowsNodeConfig_ = value; - } else { - windowsNodeConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00800000; - onChanged(); - return this; - } - /** - * - * - *
-     * Parameters that can be configured on Windows nodes.
-     * 
- * - * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 34; - */ - public Builder setWindowsNodeConfig( - com.google.container.v1beta1.WindowsNodeConfig.Builder builderForValue) { - if (windowsNodeConfigBuilder_ == null) { - windowsNodeConfig_ = builderForValue.build(); - } else { - windowsNodeConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00800000; - onChanged(); - return this; - } - /** - * - * - *
-     * Parameters that can be configured on Windows nodes.
-     * 
- * - * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 34; - */ - public Builder mergeWindowsNodeConfig(com.google.container.v1beta1.WindowsNodeConfig value) { - if (windowsNodeConfigBuilder_ == null) { - if (((bitField0_ & 0x00800000) != 0) - && windowsNodeConfig_ != null - && windowsNodeConfig_ - != com.google.container.v1beta1.WindowsNodeConfig.getDefaultInstance()) { - getWindowsNodeConfigBuilder().mergeFrom(value); - } else { - windowsNodeConfig_ = value; - } - } else { - windowsNodeConfigBuilder_.mergeFrom(value); - } - if (windowsNodeConfig_ != null) { - bitField0_ |= 0x00800000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Parameters that can be configured on Windows nodes.
-     * 
- * - * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 34; - */ - public Builder clearWindowsNodeConfig() { - bitField0_ = (bitField0_ & ~0x00800000); - windowsNodeConfig_ = null; - if (windowsNodeConfigBuilder_ != null) { - windowsNodeConfigBuilder_.dispose(); - windowsNodeConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Parameters that can be configured on Windows nodes.
-     * 
- * - * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 34; - */ - public com.google.container.v1beta1.WindowsNodeConfig.Builder getWindowsNodeConfigBuilder() { - bitField0_ |= 0x00800000; - onChanged(); - return getWindowsNodeConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Parameters that can be configured on Windows nodes.
-     * 
- * - * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 34; - */ - public com.google.container.v1beta1.WindowsNodeConfigOrBuilder getWindowsNodeConfigOrBuilder() { - if (windowsNodeConfigBuilder_ != null) { - return windowsNodeConfigBuilder_.getMessageOrBuilder(); - } else { - return windowsNodeConfig_ == null - ? com.google.container.v1beta1.WindowsNodeConfig.getDefaultInstance() - : windowsNodeConfig_; - } - } - /** - * - * - *
-     * Parameters that can be configured on Windows nodes.
-     * 
- * - * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 34; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WindowsNodeConfig, - com.google.container.v1beta1.WindowsNodeConfig.Builder, - com.google.container.v1beta1.WindowsNodeConfigOrBuilder> - getWindowsNodeConfigFieldBuilder() { - if (windowsNodeConfigBuilder_ == null) { - windowsNodeConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WindowsNodeConfig, - com.google.container.v1beta1.WindowsNodeConfig.Builder, - com.google.container.v1beta1.WindowsNodeConfigOrBuilder>( - getWindowsNodeConfig(), getParentForChildren(), isClean()); - windowsNodeConfig_ = null; - } - return windowsNodeConfigBuilder_; - } - - private java.lang.Object machineType_ = ""; - /** - * - * - *
-     * Optional. The desired machine type for nodes in the node pool.
-     * Initiates an upgrade operation that migrates the nodes in the
-     * node pool to the specified machine type.
-     * 
- * - * string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - /** - * - * - *
-     * Optional. The desired machine type for nodes in the node pool.
-     * Initiates an upgrade operation that migrates the nodes in the
-     * node pool to the specified machine type.
-     * 
- * - * string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - /** - * - * - *
-     * Optional. The desired machine type for nodes in the node pool.
-     * Initiates an upgrade operation that migrates the nodes in the
-     * node pool to the specified machine type.
-     * 
- * - * string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - bitField0_ |= 0x01000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The desired machine type for nodes in the node pool.
-     * Initiates an upgrade operation that migrates the nodes in the
-     * node pool to the specified machine type.
-     * 
- * - * string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearMachineType() { - machineType_ = getDefaultInstance().getMachineType(); - bitField0_ = (bitField0_ & ~0x01000000); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The desired machine type for nodes in the node pool.
-     * Initiates an upgrade operation that migrates the nodes in the
-     * node pool to the specified machine type.
-     * 
- * - * string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - bitField0_ |= 0x01000000; - onChanged(); - return this; - } - - private java.lang.Object diskType_ = ""; - /** - * - * - *
-     * Optional. The desired disk type for nodes in the node pool.
-     * Initiates an upgrade operation that migrates the nodes in the
-     * node pool to the specified disk type.
-     * 
- * - * string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - /** - * - * - *
-     * Optional. The desired disk type for nodes in the node pool.
-     * Initiates an upgrade operation that migrates the nodes in the
-     * node pool to the specified disk type.
-     * 
- * - * string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - /** - * - * - *
-     * Optional. The desired disk type for nodes in the node pool.
-     * Initiates an upgrade operation that migrates the nodes in the
-     * node pool to the specified disk type.
-     * 
- * - * string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - bitField0_ |= 0x02000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The desired disk type for nodes in the node pool.
-     * Initiates an upgrade operation that migrates the nodes in the
-     * node pool to the specified disk type.
-     * 
- * - * string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearDiskType() { - diskType_ = getDefaultInstance().getDiskType(); - bitField0_ = (bitField0_ & ~0x02000000); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The desired disk type for nodes in the node pool.
-     * Initiates an upgrade operation that migrates the nodes in the
-     * node pool to the specified disk type.
-     * 
- * - * string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - bitField0_ |= 0x02000000; - onChanged(); - return this; - } - - private long diskSizeGb_; - /** - * - * - *
-     * Optional. The desired disk size for nodes in the node pool.
-     * Initiates an upgrade operation that migrates the nodes in the
-     * node pool to the specified disk size.
-     * 
- * - * int64 disk_size_gb = 38 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The diskSizeGb. - */ - @java.lang.Override - public long getDiskSizeGb() { - return diskSizeGb_; - } - /** - * - * - *
-     * Optional. The desired disk size for nodes in the node pool.
-     * Initiates an upgrade operation that migrates the nodes in the
-     * node pool to the specified disk size.
-     * 
- * - * int64 disk_size_gb = 38 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The diskSizeGb to set. - * @return This builder for chaining. - */ - public Builder setDiskSizeGb(long value) { - - diskSizeGb_ = value; - bitField0_ |= 0x04000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The desired disk size for nodes in the node pool.
-     * Initiates an upgrade operation that migrates the nodes in the
-     * node pool to the specified disk size.
-     * 
- * - * int64 disk_size_gb = 38 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearDiskSizeGb() { - bitField0_ = (bitField0_ & ~0x04000000); - diskSizeGb_ = 0L; - onChanged(); - return this; - } - - private com.google.container.v1beta1.ResourceManagerTags resourceManagerTags_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ResourceManagerTags, - com.google.container.v1beta1.ResourceManagerTags.Builder, - com.google.container.v1beta1.ResourceManagerTagsOrBuilder> - resourceManagerTagsBuilder_; - /** - * - * - *
-     * Desired resource manager tag keys and values to be attached to the nodes
-     * for managing Compute Engine firewalls using Network Firewall Policies.
-     * Existing tags will be replaced with new values.
-     * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 39; - * - * @return Whether the resourceManagerTags field is set. - */ - public boolean hasResourceManagerTags() { - return ((bitField0_ & 0x08000000) != 0); - } - /** - * - * - *
-     * Desired resource manager tag keys and values to be attached to the nodes
-     * for managing Compute Engine firewalls using Network Firewall Policies.
-     * Existing tags will be replaced with new values.
-     * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 39; - * - * @return The resourceManagerTags. - */ - public com.google.container.v1beta1.ResourceManagerTags getResourceManagerTags() { - if (resourceManagerTagsBuilder_ == null) { - return resourceManagerTags_ == null - ? com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance() - : resourceManagerTags_; - } else { - return resourceManagerTagsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Desired resource manager tag keys and values to be attached to the nodes
-     * for managing Compute Engine firewalls using Network Firewall Policies.
-     * Existing tags will be replaced with new values.
-     * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 39; - */ - public Builder setResourceManagerTags(com.google.container.v1beta1.ResourceManagerTags value) { - if (resourceManagerTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resourceManagerTags_ = value; - } else { - resourceManagerTagsBuilder_.setMessage(value); - } - bitField0_ |= 0x08000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Desired resource manager tag keys and values to be attached to the nodes
-     * for managing Compute Engine firewalls using Network Firewall Policies.
-     * Existing tags will be replaced with new values.
-     * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 39; - */ - public Builder setResourceManagerTags( - com.google.container.v1beta1.ResourceManagerTags.Builder builderForValue) { - if (resourceManagerTagsBuilder_ == null) { - resourceManagerTags_ = builderForValue.build(); - } else { - resourceManagerTagsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x08000000; - onChanged(); - return this; - } - /** - * - * - *
-     * Desired resource manager tag keys and values to be attached to the nodes
-     * for managing Compute Engine firewalls using Network Firewall Policies.
-     * Existing tags will be replaced with new values.
-     * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 39; - */ - public Builder mergeResourceManagerTags( - com.google.container.v1beta1.ResourceManagerTags value) { - if (resourceManagerTagsBuilder_ == null) { - if (((bitField0_ & 0x08000000) != 0) - && resourceManagerTags_ != null - && resourceManagerTags_ - != com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance()) { - getResourceManagerTagsBuilder().mergeFrom(value); - } else { - resourceManagerTags_ = value; - } - } else { - resourceManagerTagsBuilder_.mergeFrom(value); - } - if (resourceManagerTags_ != null) { - bitField0_ |= 0x08000000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Desired resource manager tag keys and values to be attached to the nodes
-     * for managing Compute Engine firewalls using Network Firewall Policies.
-     * Existing tags will be replaced with new values.
-     * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 39; - */ - public Builder clearResourceManagerTags() { - bitField0_ = (bitField0_ & ~0x08000000); - resourceManagerTags_ = null; - if (resourceManagerTagsBuilder_ != null) { - resourceManagerTagsBuilder_.dispose(); - resourceManagerTagsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Desired resource manager tag keys and values to be attached to the nodes
-     * for managing Compute Engine firewalls using Network Firewall Policies.
-     * Existing tags will be replaced with new values.
-     * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 39; - */ - public com.google.container.v1beta1.ResourceManagerTags.Builder - getResourceManagerTagsBuilder() { - bitField0_ |= 0x08000000; - onChanged(); - return getResourceManagerTagsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Desired resource manager tag keys and values to be attached to the nodes
-     * for managing Compute Engine firewalls using Network Firewall Policies.
-     * Existing tags will be replaced with new values.
-     * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 39; - */ - public com.google.container.v1beta1.ResourceManagerTagsOrBuilder - getResourceManagerTagsOrBuilder() { - if (resourceManagerTagsBuilder_ != null) { - return resourceManagerTagsBuilder_.getMessageOrBuilder(); - } else { - return resourceManagerTags_ == null - ? com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance() - : resourceManagerTags_; - } - } - /** - * - * - *
-     * Desired resource manager tag keys and values to be attached to the nodes
-     * for managing Compute Engine firewalls using Network Firewall Policies.
-     * Existing tags will be replaced with new values.
-     * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 39; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ResourceManagerTags, - com.google.container.v1beta1.ResourceManagerTags.Builder, - com.google.container.v1beta1.ResourceManagerTagsOrBuilder> - getResourceManagerTagsFieldBuilder() { - if (resourceManagerTagsBuilder_ == null) { - resourceManagerTagsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.ResourceManagerTags, - com.google.container.v1beta1.ResourceManagerTags.Builder, - com.google.container.v1beta1.ResourceManagerTagsOrBuilder>( - getResourceManagerTags(), getParentForChildren(), isClean()); - resourceManagerTags_ = null; - } - return resourceManagerTagsBuilder_; - } - - @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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequestOrBuilder.java deleted file mode 100644 index 0f11832d5a1d..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequestOrBuilder.java +++ /dev/null @@ -1,1032 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3026 - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. Deprecated. The Google Developers Console [project ID or project
-   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * - * - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3026 - * @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]; - * - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3033 - * @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]; - * - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3033 - * @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]; - * - * - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3037 - * @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]; - * - * - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3037 - * @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]; - * - * - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3042 - * @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]; - * - * - * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3042 - * @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. Please see
-   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-   * available image types.
-   * 
- * - * 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. Please see
-   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
-   * available image types.
-   * 
- * - * 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(); - - /** - * - * - *
-   * The desired network tags to be applied to all nodes in the node pool.
-   * If this field is not present, the tags will not be changed. Otherwise,
-   * the existing network tags will be *replaced* with the provided tags.
-   * 
- * - * .google.container.v1beta1.NetworkTags tags = 16; - * - * @return Whether the tags field is set. - */ - boolean hasTags(); - /** - * - * - *
-   * The desired network tags to be applied to all nodes in the node pool.
-   * If this field is not present, the tags will not be changed. Otherwise,
-   * the existing network tags will be *replaced* with the provided tags.
-   * 
- * - * .google.container.v1beta1.NetworkTags tags = 16; - * - * @return The tags. - */ - com.google.container.v1beta1.NetworkTags getTags(); - /** - * - * - *
-   * The desired network tags to be applied to all nodes in the node pool.
-   * If this field is not present, the tags will not be changed. Otherwise,
-   * the existing network tags will be *replaced* with the provided tags.
-   * 
- * - * .google.container.v1beta1.NetworkTags tags = 16; - */ - com.google.container.v1beta1.NetworkTagsOrBuilder getTagsOrBuilder(); - - /** - * - * - *
-   * The desired node taints to be applied to all nodes in the node pool.
-   * If this field is not present, the taints will not be changed. Otherwise,
-   * the existing node taints will be *replaced* with the provided taints.
-   * 
- * - * .google.container.v1beta1.NodeTaints taints = 17; - * - * @return Whether the taints field is set. - */ - boolean hasTaints(); - /** - * - * - *
-   * The desired node taints to be applied to all nodes in the node pool.
-   * If this field is not present, the taints will not be changed. Otherwise,
-   * the existing node taints will be *replaced* with the provided taints.
-   * 
- * - * .google.container.v1beta1.NodeTaints taints = 17; - * - * @return The taints. - */ - com.google.container.v1beta1.NodeTaints getTaints(); - /** - * - * - *
-   * The desired node taints to be applied to all nodes in the node pool.
-   * If this field is not present, the taints will not be changed. Otherwise,
-   * the existing node taints will be *replaced* with the provided taints.
-   * 
- * - * .google.container.v1beta1.NodeTaints taints = 17; - */ - com.google.container.v1beta1.NodeTaintsOrBuilder getTaintsOrBuilder(); - - /** - * - * - *
-   * The desired node labels to be applied to all nodes in the node pool.
-   * If this field is not present, the labels will not be changed. Otherwise,
-   * the existing node labels will be *replaced* with the provided labels.
-   * 
- * - * .google.container.v1beta1.NodeLabels labels = 18; - * - * @return Whether the labels field is set. - */ - boolean hasLabels(); - /** - * - * - *
-   * The desired node labels to be applied to all nodes in the node pool.
-   * If this field is not present, the labels will not be changed. Otherwise,
-   * the existing node labels will be *replaced* with the provided labels.
-   * 
- * - * .google.container.v1beta1.NodeLabels labels = 18; - * - * @return The labels. - */ - com.google.container.v1beta1.NodeLabels getLabels(); - /** - * - * - *
-   * The desired node labels to be applied to all nodes in the node pool.
-   * If this field is not present, the labels will not be changed. Otherwise,
-   * the existing node labels will be *replaced* with the provided labels.
-   * 
- * - * .google.container.v1beta1.NodeLabels labels = 18; - */ - com.google.container.v1beta1.NodeLabelsOrBuilder getLabelsOrBuilder(); - - /** - * - * - *
-   * 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(); - - /** - * - * - *
-   * Node network config.
-   * 
- * - * .google.container.v1beta1.NodeNetworkConfig node_network_config = 21; - * - * @return Whether the nodeNetworkConfig field is set. - */ - boolean hasNodeNetworkConfig(); - /** - * - * - *
-   * Node network config.
-   * 
- * - * .google.container.v1beta1.NodeNetworkConfig node_network_config = 21; - * - * @return The nodeNetworkConfig. - */ - com.google.container.v1beta1.NodeNetworkConfig getNodeNetworkConfig(); - /** - * - * - *
-   * Node network config.
-   * 
- * - * .google.container.v1beta1.NodeNetworkConfig node_network_config = 21; - */ - com.google.container.v1beta1.NodeNetworkConfigOrBuilder getNodeNetworkConfigOrBuilder(); - - /** - * - * - *
-   * GCFS config.
-   * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 22; - * - * @return Whether the gcfsConfig field is set. - */ - boolean hasGcfsConfig(); - /** - * - * - *
-   * GCFS config.
-   * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 22; - * - * @return The gcfsConfig. - */ - com.google.container.v1beta1.GcfsConfig getGcfsConfig(); - /** - * - * - *
-   * GCFS config.
-   * 
- * - * .google.container.v1beta1.GcfsConfig gcfs_config = 22; - */ - com.google.container.v1beta1.GcfsConfigOrBuilder getGcfsConfigOrBuilder(); - - /** - * - * - *
-   * Confidential nodes config.
-   * All the nodes in the node pool will be Confidential VM once enabled.
-   * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 23; - * - * @return Whether the confidentialNodes field is set. - */ - boolean hasConfidentialNodes(); - /** - * - * - *
-   * Confidential nodes config.
-   * All the nodes in the node pool will be Confidential VM once enabled.
-   * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 23; - * - * @return The confidentialNodes. - */ - com.google.container.v1beta1.ConfidentialNodes getConfidentialNodes(); - /** - * - * - *
-   * Confidential nodes config.
-   * All the nodes in the node pool will be Confidential VM once enabled.
-   * 
- * - * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 23; - */ - com.google.container.v1beta1.ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder(); - - /** - * - * - *
-   * Enable or disable gvnic on the node pool.
-   * 
- * - * .google.container.v1beta1.VirtualNIC gvnic = 29; - * - * @return Whether the gvnic field is set. - */ - boolean hasGvnic(); - /** - * - * - *
-   * Enable or disable gvnic on the node pool.
-   * 
- * - * .google.container.v1beta1.VirtualNIC gvnic = 29; - * - * @return The gvnic. - */ - com.google.container.v1beta1.VirtualNIC getGvnic(); - /** - * - * - *
-   * Enable or disable gvnic on the node pool.
-   * 
- * - * .google.container.v1beta1.VirtualNIC gvnic = 29; - */ - com.google.container.v1beta1.VirtualNICOrBuilder getGvnicOrBuilder(); - - /** - * - * - *
-   * The current etag of the node pool.
-   * If an etag is provided and does not match the current etag of the node
-   * pool, update will be blocked and an ABORTED error will be returned.
-   * 
- * - * string etag = 30; - * - * @return The etag. - */ - java.lang.String getEtag(); - /** - * - * - *
-   * The current etag of the node pool.
-   * If an etag is provided and does not match the current etag of the node
-   * pool, update will be blocked and an ABORTED error will be returned.
-   * 
- * - * string etag = 30; - * - * @return The bytes for etag. - */ - com.google.protobuf.ByteString getEtagBytes(); - - /** - * - * - *
-   * Enable or disable NCCL fast socket for the node pool.
-   * 
- * - * .google.container.v1beta1.FastSocket fast_socket = 31; - * - * @return Whether the fastSocket field is set. - */ - boolean hasFastSocket(); - /** - * - * - *
-   * Enable or disable NCCL fast socket for the node pool.
-   * 
- * - * .google.container.v1beta1.FastSocket fast_socket = 31; - * - * @return The fastSocket. - */ - com.google.container.v1beta1.FastSocket getFastSocket(); - /** - * - * - *
-   * Enable or disable NCCL fast socket for the node pool.
-   * 
- * - * .google.container.v1beta1.FastSocket fast_socket = 31; - */ - com.google.container.v1beta1.FastSocketOrBuilder getFastSocketOrBuilder(); - - /** - * - * - *
-   * Logging configuration.
-   * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 32; - * - * @return Whether the loggingConfig field is set. - */ - boolean hasLoggingConfig(); - /** - * - * - *
-   * Logging configuration.
-   * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 32; - * - * @return The loggingConfig. - */ - com.google.container.v1beta1.NodePoolLoggingConfig getLoggingConfig(); - /** - * - * - *
-   * Logging configuration.
-   * 
- * - * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 32; - */ - com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder getLoggingConfigOrBuilder(); - - /** - * - * - *
-   * The resource labels for the node pool to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * .google.container.v1beta1.ResourceLabels resource_labels = 33; - * - * @return Whether the resourceLabels field is set. - */ - boolean hasResourceLabels(); - /** - * - * - *
-   * The resource labels for the node pool to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * .google.container.v1beta1.ResourceLabels resource_labels = 33; - * - * @return The resourceLabels. - */ - com.google.container.v1beta1.ResourceLabels getResourceLabels(); - /** - * - * - *
-   * The resource labels for the node pool to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * .google.container.v1beta1.ResourceLabels resource_labels = 33; - */ - com.google.container.v1beta1.ResourceLabelsOrBuilder getResourceLabelsOrBuilder(); - - /** - * - * - *
-   * Parameters that can be configured on Windows nodes.
-   * 
- * - * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 34; - * - * @return Whether the windowsNodeConfig field is set. - */ - boolean hasWindowsNodeConfig(); - /** - * - * - *
-   * Parameters that can be configured on Windows nodes.
-   * 
- * - * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 34; - * - * @return The windowsNodeConfig. - */ - com.google.container.v1beta1.WindowsNodeConfig getWindowsNodeConfig(); - /** - * - * - *
-   * Parameters that can be configured on Windows nodes.
-   * 
- * - * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 34; - */ - com.google.container.v1beta1.WindowsNodeConfigOrBuilder getWindowsNodeConfigOrBuilder(); - - /** - * - * - *
-   * Optional. The desired machine type for nodes in the node pool.
-   * Initiates an upgrade operation that migrates the nodes in the
-   * node pool to the specified machine type.
-   * 
- * - * string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The machineType. - */ - java.lang.String getMachineType(); - /** - * - * - *
-   * Optional. The desired machine type for nodes in the node pool.
-   * Initiates an upgrade operation that migrates the nodes in the
-   * node pool to the specified machine type.
-   * 
- * - * string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for machineType. - */ - com.google.protobuf.ByteString getMachineTypeBytes(); - - /** - * - * - *
-   * Optional. The desired disk type for nodes in the node pool.
-   * Initiates an upgrade operation that migrates the nodes in the
-   * node pool to the specified disk type.
-   * 
- * - * string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The diskType. - */ - java.lang.String getDiskType(); - /** - * - * - *
-   * Optional. The desired disk type for nodes in the node pool.
-   * Initiates an upgrade operation that migrates the nodes in the
-   * node pool to the specified disk type.
-   * 
- * - * string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for diskType. - */ - com.google.protobuf.ByteString getDiskTypeBytes(); - - /** - * - * - *
-   * Optional. The desired disk size for nodes in the node pool.
-   * Initiates an upgrade operation that migrates the nodes in the
-   * node pool to the specified disk size.
-   * 
- * - * int64 disk_size_gb = 38 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The diskSizeGb. - */ - long getDiskSizeGb(); - - /** - * - * - *
-   * Desired resource manager tag keys and values to be attached to the nodes
-   * for managing Compute Engine firewalls using Network Firewall Policies.
-   * Existing tags will be replaced with new values.
-   * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 39; - * - * @return Whether the resourceManagerTags field is set. - */ - boolean hasResourceManagerTags(); - /** - * - * - *
-   * Desired resource manager tag keys and values to be attached to the nodes
-   * for managing Compute Engine firewalls using Network Firewall Policies.
-   * Existing tags will be replaced with new values.
-   * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 39; - * - * @return The resourceManagerTags. - */ - com.google.container.v1beta1.ResourceManagerTags getResourceManagerTags(); - /** - * - * - *
-   * Desired resource manager tag keys and values to be attached to the nodes
-   * for managing Compute Engine firewalls using Network Firewall Policies.
-   * Existing tags will be replaced with new values.
-   * 
- * - * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 39; - */ - com.google.container.v1beta1.ResourceManagerTagsOrBuilder getResourceManagerTagsOrBuilder(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeAvailableEvent.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeAvailableEvent.java deleted file mode 100644 index d12ed5243497..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeAvailableEvent.java +++ /dev/null @@ -1,1535 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * UpgradeAvailableEvent is a notification sent to customers when a new
- * available version is released.
- * 
- * - * Protobuf type {@code google.container.v1beta1.UpgradeAvailableEvent} - */ -public final class UpgradeAvailableEvent extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.UpgradeAvailableEvent) - UpgradeAvailableEventOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpgradeAvailableEvent.newBuilder() to construct. - private UpgradeAvailableEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpgradeAvailableEvent() { - version_ = ""; - resourceType_ = 0; - resource_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpgradeAvailableEvent(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_UpgradeAvailableEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_UpgradeAvailableEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.UpgradeAvailableEvent.class, - com.google.container.v1beta1.UpgradeAvailableEvent.Builder.class); - } - - private int bitField0_; - public static final int VERSION_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object version_ = ""; - /** - * - * - *
-   * The release version available for upgrade.
-   * 
- * - * string version = 1; - * - * @return The version. - */ - @java.lang.Override - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } - } - /** - * - * - *
-   * The release version available for upgrade.
-   * 
- * - * string version = 1; - * - * @return The bytes for version. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 2; - private int resourceType_ = 0; - /** - * - * - *
-   * The resource type of the release version.
-   * 
- * - * .google.container.v1beta1.UpgradeResourceType resource_type = 2; - * - * @return The enum numeric value on the wire for resourceType. - */ - @java.lang.Override - public int getResourceTypeValue() { - return resourceType_; - } - /** - * - * - *
-   * The resource type of the release version.
-   * 
- * - * .google.container.v1beta1.UpgradeResourceType resource_type = 2; - * - * @return The resourceType. - */ - @java.lang.Override - public com.google.container.v1beta1.UpgradeResourceType getResourceType() { - com.google.container.v1beta1.UpgradeResourceType result = - com.google.container.v1beta1.UpgradeResourceType.forNumber(resourceType_); - return result == null ? com.google.container.v1beta1.UpgradeResourceType.UNRECOGNIZED : result; - } - - public static final int RELEASE_CHANNEL_FIELD_NUMBER = 3; - private com.google.container.v1beta1.ReleaseChannel releaseChannel_; - /** - * - * - *
-   * The release channel of the version. If empty, it means a non-channel
-   * release.
-   * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 3; - * - * @return Whether the releaseChannel field is set. - */ - @java.lang.Override - public boolean hasReleaseChannel() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * The release channel of the version. If empty, it means a non-channel
-   * release.
-   * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 3; - * - * @return The releaseChannel. - */ - @java.lang.Override - public com.google.container.v1beta1.ReleaseChannel getReleaseChannel() { - return releaseChannel_ == null - ? com.google.container.v1beta1.ReleaseChannel.getDefaultInstance() - : releaseChannel_; - } - /** - * - * - *
-   * The release channel of the version. If empty, it means a non-channel
-   * release.
-   * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 3; - */ - @java.lang.Override - public com.google.container.v1beta1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder() { - return releaseChannel_ == null - ? com.google.container.v1beta1.ReleaseChannel.getDefaultInstance() - : releaseChannel_; - } - - public static final int RESOURCE_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private volatile java.lang.Object resource_ = ""; - /** - * - * - *
-   * Optional relative path to the resource. For example, the relative path of
-   * the node pool.
-   * 
- * - * string resource = 4; - * - * @return The resource. - */ - @java.lang.Override - public java.lang.String getResource() { - java.lang.Object ref = resource_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resource_ = s; - return s; - } - } - /** - * - * - *
-   * Optional relative path to the resource. For example, the relative path of
-   * the node pool.
-   * 
- * - * string resource = 4; - * - * @return The bytes for resource. - */ - @java.lang.Override - public com.google.protobuf.ByteString getResourceBytes() { - java.lang.Object ref = resource_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - resource_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int WINDOWS_VERSIONS_FIELD_NUMBER = 5; - private com.google.container.v1beta1.WindowsVersions windowsVersions_; - /** - * - * - *
-   * Windows node versions info.
-   * 
- * - * .google.container.v1beta1.WindowsVersions windows_versions = 5; - * - * @return Whether the windowsVersions field is set. - */ - @java.lang.Override - public boolean hasWindowsVersions() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * Windows node versions info.
-   * 
- * - * .google.container.v1beta1.WindowsVersions windows_versions = 5; - * - * @return The windowsVersions. - */ - @java.lang.Override - public com.google.container.v1beta1.WindowsVersions getWindowsVersions() { - return windowsVersions_ == null - ? com.google.container.v1beta1.WindowsVersions.getDefaultInstance() - : windowsVersions_; - } - /** - * - * - *
-   * Windows node versions info.
-   * 
- * - * .google.container.v1beta1.WindowsVersions windows_versions = 5; - */ - @java.lang.Override - public com.google.container.v1beta1.WindowsVersionsOrBuilder getWindowsVersionsOrBuilder() { - return windowsVersions_ == null - ? com.google.container.v1beta1.WindowsVersions.getDefaultInstance() - : windowsVersions_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); - } - if (resourceType_ - != com.google.container.v1beta1.UpgradeResourceType.UPGRADE_RESOURCE_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(2, resourceType_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getReleaseChannel()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, resource_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(5, getWindowsVersions()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); - } - if (resourceType_ - != com.google.container.v1beta1.UpgradeResourceType.UPGRADE_RESOURCE_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, resourceType_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getReleaseChannel()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, resource_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getWindowsVersions()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.UpgradeAvailableEvent)) { - return super.equals(obj); - } - com.google.container.v1beta1.UpgradeAvailableEvent other = - (com.google.container.v1beta1.UpgradeAvailableEvent) obj; - - if (!getVersion().equals(other.getVersion())) return false; - if (resourceType_ != other.resourceType_) return false; - if (hasReleaseChannel() != other.hasReleaseChannel()) return false; - if (hasReleaseChannel()) { - if (!getReleaseChannel().equals(other.getReleaseChannel())) return false; - } - if (!getResource().equals(other.getResource())) return false; - if (hasWindowsVersions() != other.hasWindowsVersions()) return false; - if (hasWindowsVersions()) { - if (!getWindowsVersions().equals(other.getWindowsVersions())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + resourceType_; - if (hasReleaseChannel()) { - hash = (37 * hash) + RELEASE_CHANNEL_FIELD_NUMBER; - hash = (53 * hash) + getReleaseChannel().hashCode(); - } - hash = (37 * hash) + RESOURCE_FIELD_NUMBER; - hash = (53 * hash) + getResource().hashCode(); - if (hasWindowsVersions()) { - hash = (37 * hash) + WINDOWS_VERSIONS_FIELD_NUMBER; - hash = (53 * hash) + getWindowsVersions().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.UpgradeAvailableEvent parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.UpgradeAvailableEvent parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.UpgradeAvailableEvent parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.UpgradeAvailableEvent parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.UpgradeAvailableEvent parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.UpgradeAvailableEvent parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.UpgradeAvailableEvent parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.UpgradeAvailableEvent parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.UpgradeAvailableEvent parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.UpgradeAvailableEvent parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.UpgradeAvailableEvent parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.UpgradeAvailableEvent parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1beta1.UpgradeAvailableEvent prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * UpgradeAvailableEvent is a notification sent to customers when a new
-   * available version is released.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.UpgradeAvailableEvent} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.UpgradeAvailableEvent) - com.google.container.v1beta1.UpgradeAvailableEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_UpgradeAvailableEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_UpgradeAvailableEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.UpgradeAvailableEvent.class, - com.google.container.v1beta1.UpgradeAvailableEvent.Builder.class); - } - - // Construct using com.google.container.v1beta1.UpgradeAvailableEvent.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getReleaseChannelFieldBuilder(); - getWindowsVersionsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - version_ = ""; - resourceType_ = 0; - releaseChannel_ = null; - if (releaseChannelBuilder_ != null) { - releaseChannelBuilder_.dispose(); - releaseChannelBuilder_ = null; - } - resource_ = ""; - windowsVersions_ = null; - if (windowsVersionsBuilder_ != null) { - windowsVersionsBuilder_.dispose(); - windowsVersionsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_UpgradeAvailableEvent_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.UpgradeAvailableEvent getDefaultInstanceForType() { - return com.google.container.v1beta1.UpgradeAvailableEvent.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.UpgradeAvailableEvent build() { - com.google.container.v1beta1.UpgradeAvailableEvent result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.UpgradeAvailableEvent buildPartial() { - com.google.container.v1beta1.UpgradeAvailableEvent result = - new com.google.container.v1beta1.UpgradeAvailableEvent(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.UpgradeAvailableEvent result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.version_ = version_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.resourceType_ = resourceType_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.releaseChannel_ = - releaseChannelBuilder_ == null ? releaseChannel_ : releaseChannelBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.resource_ = resource_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.windowsVersions_ = - windowsVersionsBuilder_ == null ? windowsVersions_ : windowsVersionsBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @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.UpgradeAvailableEvent) { - return mergeFrom((com.google.container.v1beta1.UpgradeAvailableEvent) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.UpgradeAvailableEvent other) { - if (other == com.google.container.v1beta1.UpgradeAvailableEvent.getDefaultInstance()) - return this; - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); - } - if (other.hasReleaseChannel()) { - mergeReleaseChannel(other.getReleaseChannel()); - } - if (!other.getResource().isEmpty()) { - resource_ = other.resource_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (other.hasWindowsVersions()) { - mergeWindowsVersions(other.getWindowsVersions()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - version_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - resourceType_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - input.readMessage(getReleaseChannelFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - resource_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage(getWindowsVersionsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object version_ = ""; - /** - * - * - *
-     * The release version available for upgrade.
-     * 
- * - * string version = 1; - * - * @return The version. - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The release version available for upgrade.
-     * 
- * - * string version = 1; - * - * @return The bytes for version. - */ - public com.google.protobuf.ByteString getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The release version available for upgrade.
-     * 
- * - * string version = 1; - * - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - version_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The release version available for upgrade.
-     * 
- * - * string version = 1; - * - * @return This builder for chaining. - */ - public Builder clearVersion() { - version_ = getDefaultInstance().getVersion(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * The release version available for upgrade.
-     * 
- * - * string version = 1; - * - * @param value The bytes for version to set. - * @return This builder for chaining. - */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - version_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int resourceType_ = 0; - /** - * - * - *
-     * The resource type of the release version.
-     * 
- * - * .google.container.v1beta1.UpgradeResourceType resource_type = 2; - * - * @return The enum numeric value on the wire for resourceType. - */ - @java.lang.Override - public int getResourceTypeValue() { - return resourceType_; - } - /** - * - * - *
-     * The resource type of the release version.
-     * 
- * - * .google.container.v1beta1.UpgradeResourceType resource_type = 2; - * - * @param value The enum numeric value on the wire for resourceType to set. - * @return This builder for chaining. - */ - public Builder setResourceTypeValue(int value) { - resourceType_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * The resource type of the release version.
-     * 
- * - * .google.container.v1beta1.UpgradeResourceType resource_type = 2; - * - * @return The resourceType. - */ - @java.lang.Override - public com.google.container.v1beta1.UpgradeResourceType getResourceType() { - com.google.container.v1beta1.UpgradeResourceType result = - com.google.container.v1beta1.UpgradeResourceType.forNumber(resourceType_); - return result == null - ? com.google.container.v1beta1.UpgradeResourceType.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * The resource type of the release version.
-     * 
- * - * .google.container.v1beta1.UpgradeResourceType resource_type = 2; - * - * @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(); - } - bitField0_ |= 0x00000002; - resourceType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The resource type of the release version.
-     * 
- * - * .google.container.v1beta1.UpgradeResourceType resource_type = 2; - * - * @return This builder for chaining. - */ - public Builder clearResourceType() { - bitField0_ = (bitField0_ & ~0x00000002); - resourceType_ = 0; - onChanged(); - return this; - } - - 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_; - /** - * - * - *
-     * The release channel of the version. If empty, it means a non-channel
-     * release.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 3; - * - * @return Whether the releaseChannel field is set. - */ - public boolean hasReleaseChannel() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * The release channel of the version. If empty, it means a non-channel
-     * release.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 3; - * - * @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(); - } - } - /** - * - * - *
-     * The release channel of the version. If empty, it means a non-channel
-     * release.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 3; - */ - public Builder setReleaseChannel(com.google.container.v1beta1.ReleaseChannel value) { - if (releaseChannelBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - releaseChannel_ = value; - } else { - releaseChannelBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The release channel of the version. If empty, it means a non-channel
-     * release.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 3; - */ - public Builder setReleaseChannel( - com.google.container.v1beta1.ReleaseChannel.Builder builderForValue) { - if (releaseChannelBuilder_ == null) { - releaseChannel_ = builderForValue.build(); - } else { - releaseChannelBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The release channel of the version. If empty, it means a non-channel
-     * release.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 3; - */ - public Builder mergeReleaseChannel(com.google.container.v1beta1.ReleaseChannel value) { - if (releaseChannelBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && releaseChannel_ != null - && releaseChannel_ - != com.google.container.v1beta1.ReleaseChannel.getDefaultInstance()) { - getReleaseChannelBuilder().mergeFrom(value); - } else { - releaseChannel_ = value; - } - } else { - releaseChannelBuilder_.mergeFrom(value); - } - if (releaseChannel_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The release channel of the version. If empty, it means a non-channel
-     * release.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 3; - */ - public Builder clearReleaseChannel() { - bitField0_ = (bitField0_ & ~0x00000004); - releaseChannel_ = null; - if (releaseChannelBuilder_ != null) { - releaseChannelBuilder_.dispose(); - releaseChannelBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The release channel of the version. If empty, it means a non-channel
-     * release.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 3; - */ - public com.google.container.v1beta1.ReleaseChannel.Builder getReleaseChannelBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getReleaseChannelFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The release channel of the version. If empty, it means a non-channel
-     * release.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 3; - */ - public com.google.container.v1beta1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder() { - if (releaseChannelBuilder_ != null) { - return releaseChannelBuilder_.getMessageOrBuilder(); - } else { - return releaseChannel_ == null - ? com.google.container.v1beta1.ReleaseChannel.getDefaultInstance() - : releaseChannel_; - } - } - /** - * - * - *
-     * The release channel of the version. If empty, it means a non-channel
-     * release.
-     * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 3; - */ - 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 java.lang.Object resource_ = ""; - /** - * - * - *
-     * Optional relative path to the resource. For example, the relative path of
-     * the node pool.
-     * 
- * - * string resource = 4; - * - * @return The resource. - */ - public java.lang.String getResource() { - java.lang.Object ref = resource_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resource_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional relative path to the resource. For example, the relative path of
-     * the node pool.
-     * 
- * - * string resource = 4; - * - * @return The bytes for resource. - */ - public com.google.protobuf.ByteString getResourceBytes() { - java.lang.Object ref = resource_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - resource_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional relative path to the resource. For example, the relative path of
-     * the node pool.
-     * 
- * - * string resource = 4; - * - * @param value The resource to set. - * @return This builder for chaining. - */ - public Builder setResource(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional relative path to the resource. For example, the relative path of
-     * the node pool.
-     * 
- * - * string resource = 4; - * - * @return This builder for chaining. - */ - public Builder clearResource() { - resource_ = getDefaultInstance().getResource(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional relative path to the resource. For example, the relative path of
-     * the node pool.
-     * 
- * - * string resource = 4; - * - * @param value The bytes for resource to set. - * @return This builder for chaining. - */ - public Builder setResourceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - resource_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private com.google.container.v1beta1.WindowsVersions windowsVersions_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WindowsVersions, - com.google.container.v1beta1.WindowsVersions.Builder, - com.google.container.v1beta1.WindowsVersionsOrBuilder> - windowsVersionsBuilder_; - /** - * - * - *
-     * Windows node versions info.
-     * 
- * - * .google.container.v1beta1.WindowsVersions windows_versions = 5; - * - * @return Whether the windowsVersions field is set. - */ - public boolean hasWindowsVersions() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-     * Windows node versions info.
-     * 
- * - * .google.container.v1beta1.WindowsVersions windows_versions = 5; - * - * @return The windowsVersions. - */ - public com.google.container.v1beta1.WindowsVersions getWindowsVersions() { - if (windowsVersionsBuilder_ == null) { - return windowsVersions_ == null - ? com.google.container.v1beta1.WindowsVersions.getDefaultInstance() - : windowsVersions_; - } else { - return windowsVersionsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Windows node versions info.
-     * 
- * - * .google.container.v1beta1.WindowsVersions windows_versions = 5; - */ - public Builder setWindowsVersions(com.google.container.v1beta1.WindowsVersions value) { - if (windowsVersionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - windowsVersions_ = value; - } else { - windowsVersionsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Windows node versions info.
-     * 
- * - * .google.container.v1beta1.WindowsVersions windows_versions = 5; - */ - public Builder setWindowsVersions( - com.google.container.v1beta1.WindowsVersions.Builder builderForValue) { - if (windowsVersionsBuilder_ == null) { - windowsVersions_ = builderForValue.build(); - } else { - windowsVersionsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Windows node versions info.
-     * 
- * - * .google.container.v1beta1.WindowsVersions windows_versions = 5; - */ - public Builder mergeWindowsVersions(com.google.container.v1beta1.WindowsVersions value) { - if (windowsVersionsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && windowsVersions_ != null - && windowsVersions_ - != com.google.container.v1beta1.WindowsVersions.getDefaultInstance()) { - getWindowsVersionsBuilder().mergeFrom(value); - } else { - windowsVersions_ = value; - } - } else { - windowsVersionsBuilder_.mergeFrom(value); - } - if (windowsVersions_ != null) { - bitField0_ |= 0x00000010; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Windows node versions info.
-     * 
- * - * .google.container.v1beta1.WindowsVersions windows_versions = 5; - */ - public Builder clearWindowsVersions() { - bitField0_ = (bitField0_ & ~0x00000010); - windowsVersions_ = null; - if (windowsVersionsBuilder_ != null) { - windowsVersionsBuilder_.dispose(); - windowsVersionsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Windows node versions info.
-     * 
- * - * .google.container.v1beta1.WindowsVersions windows_versions = 5; - */ - public com.google.container.v1beta1.WindowsVersions.Builder getWindowsVersionsBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getWindowsVersionsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Windows node versions info.
-     * 
- * - * .google.container.v1beta1.WindowsVersions windows_versions = 5; - */ - public com.google.container.v1beta1.WindowsVersionsOrBuilder getWindowsVersionsOrBuilder() { - if (windowsVersionsBuilder_ != null) { - return windowsVersionsBuilder_.getMessageOrBuilder(); - } else { - return windowsVersions_ == null - ? com.google.container.v1beta1.WindowsVersions.getDefaultInstance() - : windowsVersions_; - } - } - /** - * - * - *
-     * Windows node versions info.
-     * 
- * - * .google.container.v1beta1.WindowsVersions windows_versions = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WindowsVersions, - com.google.container.v1beta1.WindowsVersions.Builder, - com.google.container.v1beta1.WindowsVersionsOrBuilder> - getWindowsVersionsFieldBuilder() { - if (windowsVersionsBuilder_ == null) { - windowsVersionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1beta1.WindowsVersions, - com.google.container.v1beta1.WindowsVersions.Builder, - com.google.container.v1beta1.WindowsVersionsOrBuilder>( - getWindowsVersions(), getParentForChildren(), isClean()); - windowsVersions_ = null; - } - return windowsVersionsBuilder_; - } - - @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.UpgradeAvailableEvent) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.UpgradeAvailableEvent) - private static final com.google.container.v1beta1.UpgradeAvailableEvent DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.UpgradeAvailableEvent(); - } - - public static com.google.container.v1beta1.UpgradeAvailableEvent getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpgradeAvailableEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.UpgradeAvailableEvent getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeAvailableEventOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeAvailableEventOrBuilder.java deleted file mode 100644 index 3adde7601e55..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeAvailableEventOrBuilder.java +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface UpgradeAvailableEventOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.UpgradeAvailableEvent) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The release version available for upgrade.
-   * 
- * - * string version = 1; - * - * @return The version. - */ - java.lang.String getVersion(); - /** - * - * - *
-   * The release version available for upgrade.
-   * 
- * - * string version = 1; - * - * @return The bytes for version. - */ - com.google.protobuf.ByteString getVersionBytes(); - - /** - * - * - *
-   * The resource type of the release version.
-   * 
- * - * .google.container.v1beta1.UpgradeResourceType resource_type = 2; - * - * @return The enum numeric value on the wire for resourceType. - */ - int getResourceTypeValue(); - /** - * - * - *
-   * The resource type of the release version.
-   * 
- * - * .google.container.v1beta1.UpgradeResourceType resource_type = 2; - * - * @return The resourceType. - */ - com.google.container.v1beta1.UpgradeResourceType getResourceType(); - - /** - * - * - *
-   * The release channel of the version. If empty, it means a non-channel
-   * release.
-   * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 3; - * - * @return Whether the releaseChannel field is set. - */ - boolean hasReleaseChannel(); - /** - * - * - *
-   * The release channel of the version. If empty, it means a non-channel
-   * release.
-   * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 3; - * - * @return The releaseChannel. - */ - com.google.container.v1beta1.ReleaseChannel getReleaseChannel(); - /** - * - * - *
-   * The release channel of the version. If empty, it means a non-channel
-   * release.
-   * 
- * - * .google.container.v1beta1.ReleaseChannel release_channel = 3; - */ - com.google.container.v1beta1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder(); - - /** - * - * - *
-   * Optional relative path to the resource. For example, the relative path of
-   * the node pool.
-   * 
- * - * string resource = 4; - * - * @return The resource. - */ - java.lang.String getResource(); - /** - * - * - *
-   * Optional relative path to the resource. For example, the relative path of
-   * the node pool.
-   * 
- * - * string resource = 4; - * - * @return The bytes for resource. - */ - com.google.protobuf.ByteString getResourceBytes(); - - /** - * - * - *
-   * Windows node versions info.
-   * 
- * - * .google.container.v1beta1.WindowsVersions windows_versions = 5; - * - * @return Whether the windowsVersions field is set. - */ - boolean hasWindowsVersions(); - /** - * - * - *
-   * Windows node versions info.
-   * 
- * - * .google.container.v1beta1.WindowsVersions windows_versions = 5; - * - * @return The windowsVersions. - */ - com.google.container.v1beta1.WindowsVersions getWindowsVersions(); - /** - * - * - *
-   * Windows node versions info.
-   * 
- * - * .google.container.v1beta1.WindowsVersions windows_versions = 5; - */ - com.google.container.v1beta1.WindowsVersionsOrBuilder getWindowsVersionsOrBuilder(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeEvent.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeEvent.java deleted file mode 100644 index e3e965f9b40d..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeEvent.java +++ /dev/null @@ -1,1616 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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); - } - - private int bitField0_; - public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; - private int resourceType_ = 0; - /** - * - * - *
-   * The resource type that is upgrading.
-   * 
- * - * .google.container.v1beta1.UpgradeResourceType resource_type = 1; - * - * @return The enum numeric value on the wire for resourceType. - */ - @java.lang.Override - public int getResourceTypeValue() { - return resourceType_; - } - /** - * - * - *
-   * The resource type that is upgrading.
-   * 
- * - * .google.container.v1beta1.UpgradeResourceType resource_type = 1; - * - * @return The resourceType. - */ - @java.lang.Override - public com.google.container.v1beta1.UpgradeResourceType getResourceType() { - com.google.container.v1beta1.UpgradeResourceType result = - com.google.container.v1beta1.UpgradeResourceType.forNumber(resourceType_); - return result == null ? com.google.container.v1beta1.UpgradeResourceType.UNRECOGNIZED : result; - } - - public static final int OPERATION_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object operation_ = ""; - /** - * - * - *
-   * The operation associated with this upgrade.
-   * 
- * - * string operation = 2; - * - * @return The operation. - */ - @java.lang.Override - public java.lang.String getOperation() { - java.lang.Object ref = operation_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - operation_ = s; - return s; - } - } - /** - * - * - *
-   * The operation associated with this upgrade.
-   * 
- * - * string operation = 2; - * - * @return The bytes for operation. - */ - @java.lang.Override - public com.google.protobuf.ByteString getOperationBytes() { - java.lang.Object ref = operation_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - operation_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OPERATION_START_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp operationStartTime_; - /** - * - * - *
-   * The time when the operation was started.
-   * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - * - * @return Whether the operationStartTime field is set. - */ - @java.lang.Override - public boolean hasOperationStartTime() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * The time when the operation was started.
-   * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - * - * @return The operationStartTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getOperationStartTime() { - return operationStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : operationStartTime_; - } - /** - * - * - *
-   * The time when the operation was started.
-   * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getOperationStartTimeOrBuilder() { - return operationStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : operationStartTime_; - } - - public static final int CURRENT_VERSION_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private volatile java.lang.Object currentVersion_ = ""; - /** - * - * - *
-   * The current version before the upgrade.
-   * 
- * - * string current_version = 4; - * - * @return The currentVersion. - */ - @java.lang.Override - public java.lang.String getCurrentVersion() { - java.lang.Object ref = currentVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currentVersion_ = s; - return s; - } - } - /** - * - * - *
-   * The current version before the upgrade.
-   * 
- * - * string current_version = 4; - * - * @return The bytes for currentVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCurrentVersionBytes() { - java.lang.Object ref = currentVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - currentVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TARGET_VERSION_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - private volatile java.lang.Object targetVersion_ = ""; - /** - * - * - *
-   * The target version for the upgrade.
-   * 
- * - * string target_version = 5; - * - * @return The targetVersion. - */ - @java.lang.Override - public java.lang.String getTargetVersion() { - java.lang.Object ref = targetVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - targetVersion_ = s; - return s; - } - } - /** - * - * - *
-   * The target version for the upgrade.
-   * 
- * - * string target_version = 5; - * - * @return The bytes for targetVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTargetVersionBytes() { - java.lang.Object ref = targetVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - targetVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESOURCE_FIELD_NUMBER = 6; - - @SuppressWarnings("serial") - private volatile java.lang.Object resource_ = ""; - /** - * - * - *
-   * Optional relative path to the resource. For example in node pool upgrades,
-   * the relative path of the node pool.
-   * 
- * - * string resource = 6; - * - * @return The resource. - */ - @java.lang.Override - public java.lang.String getResource() { - java.lang.Object ref = resource_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resource_ = s; - return s; - } - } - /** - * - * - *
-   * Optional relative path to the resource. For example in node pool upgrades,
-   * the relative path of the node pool.
-   * 
- * - * string resource = 6; - * - * @return The bytes for resource. - */ - @java.lang.Override - public com.google.protobuf.ByteString getResourceBytes() { - java.lang.Object ref = resource_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - resource_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (resourceType_ - != com.google.container.v1beta1.UpgradeResourceType.UPGRADE_RESOURCE_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, resourceType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operation_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, operation_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getOperationStartTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, currentVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, targetVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, resource_); - } - getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operation_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, operation_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOperationStartTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, currentVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, targetVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, resource_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { - getOperationStartTimeFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - resourceType_ = 0; - operation_ = ""; - operationStartTime_ = null; - if (operationStartTimeBuilder_ != null) { - operationStartTimeBuilder_.dispose(); - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.UpgradeEvent result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.resourceType_ = resourceType_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.operation_ = operation_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.operationStartTime_ = - operationStartTimeBuilder_ == null - ? operationStartTime_ - : operationStartTimeBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.currentVersion_ = currentVersion_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.targetVersion_ = targetVersion_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.resource_ = resource_; - } - result.bitField0_ |= to_bitField0_; - } - - @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_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasOperationStartTime()) { - mergeOperationStartTime(other.getOperationStartTime()); - } - if (!other.getCurrentVersion().isEmpty()) { - currentVersion_ = other.currentVersion_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getTargetVersion().isEmpty()) { - targetVersion_ = other.targetVersion_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (!other.getResource().isEmpty()) { - resource_ = other.resource_; - bitField0_ |= 0x00000020; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - resourceType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - operation_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - getOperationStartTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - currentVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - targetVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - resource_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int resourceType_ = 0; - /** - * - * - *
-     * The resource type that is upgrading.
-     * 
- * - * .google.container.v1beta1.UpgradeResourceType resource_type = 1; - * - * @return The enum numeric value on the wire for resourceType. - */ - @java.lang.Override - public int getResourceTypeValue() { - return resourceType_; - } - /** - * - * - *
-     * The resource type that is upgrading.
-     * 
- * - * .google.container.v1beta1.UpgradeResourceType resource_type = 1; - * - * @param value The enum numeric value on the wire for resourceType to set. - * @return This builder for chaining. - */ - public Builder setResourceTypeValue(int value) { - resourceType_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The resource type that is upgrading.
-     * 
- * - * .google.container.v1beta1.UpgradeResourceType resource_type = 1; - * - * @return The resourceType. - */ - @java.lang.Override - public com.google.container.v1beta1.UpgradeResourceType getResourceType() { - com.google.container.v1beta1.UpgradeResourceType result = - com.google.container.v1beta1.UpgradeResourceType.forNumber(resourceType_); - return result == null - ? com.google.container.v1beta1.UpgradeResourceType.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * The resource type that is upgrading.
-     * 
- * - * .google.container.v1beta1.UpgradeResourceType resource_type = 1; - * - * @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(); - } - bitField0_ |= 0x00000001; - resourceType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The resource type that is upgrading.
-     * 
- * - * .google.container.v1beta1.UpgradeResourceType resource_type = 1; - * - * @return This builder for chaining. - */ - public Builder clearResourceType() { - bitField0_ = (bitField0_ & ~0x00000001); - resourceType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object operation_ = ""; - /** - * - * - *
-     * The operation associated with this upgrade.
-     * 
- * - * string operation = 2; - * - * @return The operation. - */ - public java.lang.String getOperation() { - java.lang.Object ref = operation_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - operation_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The operation associated with this upgrade.
-     * 
- * - * string operation = 2; - * - * @return The bytes for operation. - */ - public com.google.protobuf.ByteString getOperationBytes() { - java.lang.Object ref = operation_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - operation_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The operation associated with this upgrade.
-     * 
- * - * string operation = 2; - * - * @param value The operation to set. - * @return This builder for chaining. - */ - public Builder setOperation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - operation_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * The operation associated with this upgrade.
-     * 
- * - * string operation = 2; - * - * @return This builder for chaining. - */ - public Builder clearOperation() { - operation_ = getDefaultInstance().getOperation(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * The operation associated with this upgrade.
-     * 
- * - * string operation = 2; - * - * @param value The bytes for operation to set. - * @return This builder for chaining. - */ - public Builder setOperationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - operation_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp operationStartTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - operationStartTimeBuilder_; - /** - * - * - *
-     * The time when the operation was started.
-     * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - * - * @return Whether the operationStartTime field is set. - */ - public boolean hasOperationStartTime() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * The time when the operation was started.
-     * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - * - * @return The operationStartTime. - */ - public com.google.protobuf.Timestamp getOperationStartTime() { - if (operationStartTimeBuilder_ == null) { - return operationStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : operationStartTime_; - } else { - return operationStartTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The time when the operation was started.
-     * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - */ - public Builder setOperationStartTime(com.google.protobuf.Timestamp value) { - if (operationStartTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - operationStartTime_ = value; - } else { - operationStartTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The time when the operation was started.
-     * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - */ - public Builder setOperationStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (operationStartTimeBuilder_ == null) { - operationStartTime_ = builderForValue.build(); - } else { - operationStartTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The time when the operation was started.
-     * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - */ - public Builder mergeOperationStartTime(com.google.protobuf.Timestamp value) { - if (operationStartTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && operationStartTime_ != null - && operationStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getOperationStartTimeBuilder().mergeFrom(value); - } else { - operationStartTime_ = value; - } - } else { - operationStartTimeBuilder_.mergeFrom(value); - } - if (operationStartTime_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - * - * - *
-     * The time when the operation was started.
-     * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - */ - public Builder clearOperationStartTime() { - bitField0_ = (bitField0_ & ~0x00000004); - operationStartTime_ = null; - if (operationStartTimeBuilder_ != null) { - operationStartTimeBuilder_.dispose(); - operationStartTimeBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The time when the operation was started.
-     * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - */ - public com.google.protobuf.Timestamp.Builder getOperationStartTimeBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getOperationStartTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The time when the operation was started.
-     * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - */ - public com.google.protobuf.TimestampOrBuilder getOperationStartTimeOrBuilder() { - if (operationStartTimeBuilder_ != null) { - return operationStartTimeBuilder_.getMessageOrBuilder(); - } else { - return operationStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : operationStartTime_; - } - } - /** - * - * - *
-     * The time when the operation was started.
-     * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getOperationStartTimeFieldBuilder() { - if (operationStartTimeBuilder_ == null) { - operationStartTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getOperationStartTime(), getParentForChildren(), isClean()); - operationStartTime_ = null; - } - return operationStartTimeBuilder_; - } - - private java.lang.Object currentVersion_ = ""; - /** - * - * - *
-     * The current version before the upgrade.
-     * 
- * - * string current_version = 4; - * - * @return The currentVersion. - */ - public java.lang.String getCurrentVersion() { - java.lang.Object ref = currentVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currentVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The current version before the upgrade.
-     * 
- * - * string current_version = 4; - * - * @return The bytes for currentVersion. - */ - public com.google.protobuf.ByteString getCurrentVersionBytes() { - java.lang.Object ref = currentVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - currentVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The current version before the upgrade.
-     * 
- * - * string current_version = 4; - * - * @param value The currentVersion to set. - * @return This builder for chaining. - */ - public Builder setCurrentVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - currentVersion_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * The current version before the upgrade.
-     * 
- * - * string current_version = 4; - * - * @return This builder for chaining. - */ - public Builder clearCurrentVersion() { - currentVersion_ = getDefaultInstance().getCurrentVersion(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * The current version before the upgrade.
-     * 
- * - * string current_version = 4; - * - * @param value The bytes for currentVersion to set. - * @return This builder for chaining. - */ - public Builder setCurrentVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - currentVersion_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private java.lang.Object targetVersion_ = ""; - /** - * - * - *
-     * The target version for the upgrade.
-     * 
- * - * string target_version = 5; - * - * @return The targetVersion. - */ - public java.lang.String getTargetVersion() { - java.lang.Object ref = targetVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - targetVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The target version for the upgrade.
-     * 
- * - * string target_version = 5; - * - * @return The bytes for targetVersion. - */ - public com.google.protobuf.ByteString getTargetVersionBytes() { - java.lang.Object ref = targetVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - targetVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The target version for the upgrade.
-     * 
- * - * string target_version = 5; - * - * @param value The targetVersion to set. - * @return This builder for chaining. - */ - public Builder setTargetVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - targetVersion_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * The target version for the upgrade.
-     * 
- * - * string target_version = 5; - * - * @return This builder for chaining. - */ - public Builder clearTargetVersion() { - targetVersion_ = getDefaultInstance().getTargetVersion(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * - * - *
-     * The target version for the upgrade.
-     * 
- * - * string target_version = 5; - * - * @param value The bytes for targetVersion to set. - * @return This builder for chaining. - */ - public Builder setTargetVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - targetVersion_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private java.lang.Object resource_ = ""; - /** - * - * - *
-     * Optional relative path to the resource. For example in node pool upgrades,
-     * the relative path of the node pool.
-     * 
- * - * string resource = 6; - * - * @return The resource. - */ - public java.lang.String getResource() { - java.lang.Object ref = resource_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resource_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional relative path to the resource. For example in node pool upgrades,
-     * the relative path of the node pool.
-     * 
- * - * string resource = 6; - * - * @return The bytes for resource. - */ - public com.google.protobuf.ByteString getResourceBytes() { - java.lang.Object ref = resource_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - resource_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional relative path to the resource. For example in node pool upgrades,
-     * the relative path of the node pool.
-     * 
- * - * string resource = 6; - * - * @param value The resource to set. - * @return This builder for chaining. - */ - public Builder setResource(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional relative path to the resource. For example in node pool upgrades,
-     * the relative path of the node pool.
-     * 
- * - * string resource = 6; - * - * @return This builder for chaining. - */ - public Builder clearResource() { - resource_ = getDefaultInstance().getResource(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional relative path to the resource. For example in node pool upgrades,
-     * the relative path of the node pool.
-     * 
- * - * string resource = 6; - * - * @param value The bytes for resource to set. - * @return This builder for chaining. - */ - public Builder setResourceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - resource_ = value; - bitField0_ |= 0x00000020; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeEventOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeEventOrBuilder.java deleted file mode 100644 index dd9d040b2d7e..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeEventOrBuilder.java +++ /dev/null @@ -1,188 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface UpgradeEventOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.UpgradeEvent) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The resource type that is upgrading.
-   * 
- * - * .google.container.v1beta1.UpgradeResourceType resource_type = 1; - * - * @return The enum numeric value on the wire for resourceType. - */ - int getResourceTypeValue(); - /** - * - * - *
-   * The resource type that is upgrading.
-   * 
- * - * .google.container.v1beta1.UpgradeResourceType resource_type = 1; - * - * @return The resourceType. - */ - com.google.container.v1beta1.UpgradeResourceType getResourceType(); - - /** - * - * - *
-   * The operation associated with this upgrade.
-   * 
- * - * string operation = 2; - * - * @return The operation. - */ - java.lang.String getOperation(); - /** - * - * - *
-   * The operation associated with this upgrade.
-   * 
- * - * string operation = 2; - * - * @return The bytes for operation. - */ - com.google.protobuf.ByteString getOperationBytes(); - - /** - * - * - *
-   * The time when the operation was started.
-   * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - * - * @return Whether the operationStartTime field is set. - */ - boolean hasOperationStartTime(); - /** - * - * - *
-   * The time when the operation was started.
-   * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - * - * @return The operationStartTime. - */ - com.google.protobuf.Timestamp getOperationStartTime(); - /** - * - * - *
-   * The time when the operation was started.
-   * 
- * - * .google.protobuf.Timestamp operation_start_time = 3; - */ - com.google.protobuf.TimestampOrBuilder getOperationStartTimeOrBuilder(); - - /** - * - * - *
-   * The current version before the upgrade.
-   * 
- * - * string current_version = 4; - * - * @return The currentVersion. - */ - java.lang.String getCurrentVersion(); - /** - * - * - *
-   * The current version before the upgrade.
-   * 
- * - * string current_version = 4; - * - * @return The bytes for currentVersion. - */ - com.google.protobuf.ByteString getCurrentVersionBytes(); - - /** - * - * - *
-   * The target version for the upgrade.
-   * 
- * - * string target_version = 5; - * - * @return The targetVersion. - */ - java.lang.String getTargetVersion(); - /** - * - * - *
-   * The target version for the upgrade.
-   * 
- * - * string target_version = 5; - * - * @return The bytes for targetVersion. - */ - com.google.protobuf.ByteString getTargetVersionBytes(); - - /** - * - * - *
-   * Optional relative path to the resource. For example in node pool upgrades,
-   * the relative path of the node pool.
-   * 
- * - * string resource = 6; - * - * @return The resource. - */ - java.lang.String getResource(); - /** - * - * - *
-   * Optional relative path to the resource. For example in node pool upgrades,
-   * the relative path of the node pool.
-   * 
- * - * string resource = 6; - * - * @return The bytes for resource. - */ - com.google.protobuf.ByteString getResourceBytes(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeResourceType.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeResourceType.java deleted file mode 100644 index cbdd01d84c5a..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeResourceType.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetwork.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetwork.java deleted file mode 100644 index 6615e7ba73b9..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetwork.java +++ /dev/null @@ -1,1774 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subnetwork_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, network_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipCidrRange_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ipCidrRange_); - } - for (int i = 0; i < secondaryIpRanges_.size(); i++) { - output.writeMessage(4, secondaryIpRanges_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusMessage_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subnetwork_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, network_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipCidrRange_)) { - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - subnetwork_ = ""; - network_ = ""; - ipCidrRange_ = ""; - if (secondaryIpRangesBuilder_ == null) { - secondaryIpRanges_ = java.util.Collections.emptyList(); - } else { - secondaryIpRanges_ = null; - secondaryIpRangesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - 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); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.container.v1beta1.UsableSubnetwork result) { - if (secondaryIpRangesBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - secondaryIpRanges_ = java.util.Collections.unmodifiableList(secondaryIpRanges_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.secondaryIpRanges_ = secondaryIpRanges_; - } else { - result.secondaryIpRanges_ = secondaryIpRangesBuilder_.build(); - } - } - - private void buildPartial0(com.google.container.v1beta1.UsableSubnetwork result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.subnetwork_ = subnetwork_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.network_ = network_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.ipCidrRange_ = ipCidrRange_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.statusMessage_ = statusMessage_; - } - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getNetwork().isEmpty()) { - network_ = other.network_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getIpCidrRange().isEmpty()) { - ipCidrRange_ = other.ipCidrRange_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (secondaryIpRangesBuilder_ == null) { - if (!other.secondaryIpRanges_.isEmpty()) { - if (secondaryIpRanges_.isEmpty()) { - secondaryIpRanges_ = other.secondaryIpRanges_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureSecondaryIpRangesIsMutable(); - secondaryIpRanges_.addAll(other.secondaryIpRanges_); - } - onChanged(); - } - } else { - if (!other.secondaryIpRanges_.isEmpty()) { - if (secondaryIpRangesBuilder_.isEmpty()) { - secondaryIpRangesBuilder_.dispose(); - secondaryIpRangesBuilder_ = null; - secondaryIpRanges_ = other.secondaryIpRanges_; - bitField0_ = (bitField0_ & ~0x00000008); - secondaryIpRangesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSecondaryIpRangesFieldBuilder() - : null; - } else { - secondaryIpRangesBuilder_.addAllMessages(other.secondaryIpRanges_); - } - } - } - if (!other.getStatusMessage().isEmpty()) { - statusMessage_ = other.statusMessage_; - bitField0_ |= 0x00000010; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - subnetwork_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - network_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - ipCidrRange_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - com.google.container.v1beta1.UsableSubnetworkSecondaryRange m = - input.readMessage( - com.google.container.v1beta1.UsableSubnetworkSecondaryRange.parser(), - extensionRegistry); - if (secondaryIpRangesBuilder_ == null) { - ensureSecondaryIpRangesIsMutable(); - secondaryIpRanges_.add(m); - } else { - secondaryIpRangesBuilder_.addMessage(m); - } - break; - } // case 34 - case 42: - { - statusMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - 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; - bitField0_ |= 0x00000001; - 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(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - 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; - bitField0_ |= 0x00000002; - 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(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - 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; - bitField0_ |= 0x00000004; - 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(); - bitField0_ = (bitField0_ & ~0x00000004); - 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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.util.List - secondaryIpRanges_ = java.util.Collections.emptyList(); - - private void ensureSecondaryIpRangesIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - secondaryIpRanges_ = - new java.util.ArrayList( - secondaryIpRanges_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.UsableSubnetworkSecondaryRange, - com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder, - com.google.container.v1beta1.UsableSubnetworkSecondaryRangeOrBuilder> - secondaryIpRangesBuilder_; - - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public java.util.List - getSecondaryIpRangesList() { - if (secondaryIpRangesBuilder_ == null) { - return java.util.Collections.unmodifiableList(secondaryIpRanges_); - } else { - return secondaryIpRangesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public int getSecondaryIpRangesCount() { - if (secondaryIpRangesBuilder_ == null) { - return secondaryIpRanges_.size(); - } else { - return secondaryIpRangesBuilder_.getCount(); - } - } - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public com.google.container.v1beta1.UsableSubnetworkSecondaryRange getSecondaryIpRanges( - int index) { - if (secondaryIpRangesBuilder_ == null) { - return secondaryIpRanges_.get(index); - } else { - return secondaryIpRangesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public Builder setSecondaryIpRanges( - int index, com.google.container.v1beta1.UsableSubnetworkSecondaryRange value) { - if (secondaryIpRangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSecondaryIpRangesIsMutable(); - secondaryIpRanges_.set(index, value); - onChanged(); - } else { - secondaryIpRangesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public Builder setSecondaryIpRanges( - int index, - com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder builderForValue) { - if (secondaryIpRangesBuilder_ == null) { - ensureSecondaryIpRangesIsMutable(); - secondaryIpRanges_.set(index, builderForValue.build()); - onChanged(); - } else { - secondaryIpRangesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public Builder addSecondaryIpRanges( - com.google.container.v1beta1.UsableSubnetworkSecondaryRange value) { - if (secondaryIpRangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSecondaryIpRangesIsMutable(); - secondaryIpRanges_.add(value); - onChanged(); - } else { - secondaryIpRangesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public Builder addSecondaryIpRanges( - int index, com.google.container.v1beta1.UsableSubnetworkSecondaryRange value) { - if (secondaryIpRangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSecondaryIpRangesIsMutable(); - secondaryIpRanges_.add(index, value); - onChanged(); - } else { - secondaryIpRangesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public Builder addSecondaryIpRanges( - com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder builderForValue) { - if (secondaryIpRangesBuilder_ == null) { - ensureSecondaryIpRangesIsMutable(); - secondaryIpRanges_.add(builderForValue.build()); - onChanged(); - } else { - secondaryIpRangesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public Builder addSecondaryIpRanges( - int index, - com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder builderForValue) { - if (secondaryIpRangesBuilder_ == null) { - ensureSecondaryIpRangesIsMutable(); - secondaryIpRanges_.add(index, builderForValue.build()); - onChanged(); - } else { - secondaryIpRangesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public Builder addAllSecondaryIpRanges( - java.lang.Iterable - values) { - if (secondaryIpRangesBuilder_ == null) { - ensureSecondaryIpRangesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, secondaryIpRanges_); - onChanged(); - } else { - secondaryIpRangesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public Builder clearSecondaryIpRanges() { - if (secondaryIpRangesBuilder_ == null) { - secondaryIpRanges_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - secondaryIpRangesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public Builder removeSecondaryIpRanges(int index) { - if (secondaryIpRangesBuilder_ == null) { - ensureSecondaryIpRangesIsMutable(); - secondaryIpRanges_.remove(index); - onChanged(); - } else { - secondaryIpRangesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder - getSecondaryIpRangesBuilder(int index) { - return getSecondaryIpRangesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public com.google.container.v1beta1.UsableSubnetworkSecondaryRangeOrBuilder - getSecondaryIpRangesOrBuilder(int index) { - if (secondaryIpRangesBuilder_ == null) { - return secondaryIpRanges_.get(index); - } else { - return secondaryIpRangesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * - * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public java.util.List< - ? 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_ & 0x00000008) != 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; - bitField0_ |= 0x00000010; - 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(); - bitField0_ = (bitField0_ & ~0x00000010); - 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; - bitField0_ |= 0x00000010; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetworkOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetworkOrBuilder.java deleted file mode 100644 index e7c036ca9ea4..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetworkOrBuilder.java +++ /dev/null @@ -1,200 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetworkSecondaryRange.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetworkSecondaryRange.java deleted file mode 100644 index fbbf499af72e..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetworkSecondaryRange.java +++ /dev/null @@ -1,1182 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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_ = 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; - * - * @return The status. - */ - @java.lang.Override - public com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status getStatus() { - com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status result = - com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status.forNumber(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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rangeName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, rangeName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipCidrRange_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ipCidrRange_); - } - if (status_ - != com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status.UNKNOWN.getNumber()) { - output.writeEnum(3, status_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rangeName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, rangeName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipCidrRange_)) { - 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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.UsableSubnetworkSecondaryRange result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.rangeName_ = rangeName_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.ipCidrRange_ = ipCidrRange_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.status_ = status_; - } - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getIpCidrRange().isEmpty()) { - ipCidrRange_ = other.ipCidrRange_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - rangeName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - ipCidrRange_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - status_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - 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(); - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000001; - 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; - bitField0_ |= 0x00000002; - 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(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - 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; - bitField0_ |= 0x00000004; - 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() { - com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status result = - com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status.forNumber(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(); - } - bitField0_ |= 0x00000004; - 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() { - bitField0_ = (bitField0_ & ~0x00000004); - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetworkSecondaryRangeOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetworkSecondaryRangeOrBuilder.java deleted file mode 100644 index cf61f9d99f9e..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetworkSecondaryRangeOrBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/VerticalPodAutoscaling.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/VerticalPodAutoscaling.java deleted file mode 100644 index 9c7d72940c5b..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/VerticalPodAutoscaling.java +++ /dev/null @@ -1,539 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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_ = false; - /** - * - * - *
-   * 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 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_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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.VerticalPodAutoscaling result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Enables vertical pod autoscaling.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/VerticalPodAutoscalingOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/VerticalPodAutoscalingOrBuilder.java deleted file mode 100644 index c1081c3f371d..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/VerticalPodAutoscalingOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/VirtualNIC.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/VirtualNIC.java deleted file mode 100644 index 76ab49fe6b6d..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/VirtualNIC.java +++ /dev/null @@ -1,533 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * Configuration of gVNIC feature.
- * 
- * - * Protobuf type {@code google.container.v1beta1.VirtualNIC} - */ -public final class VirtualNIC extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.VirtualNIC) - VirtualNICOrBuilder { - private static final long serialVersionUID = 0L; - // Use VirtualNIC.newBuilder() to construct. - private VirtualNIC(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private VirtualNIC() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new VirtualNIC(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_VirtualNIC_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_VirtualNIC_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.VirtualNIC.class, - com.google.container.v1beta1.VirtualNIC.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_ = false; - /** - * - * - *
-   * Whether gVNIC features are enabled in the node pool.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.VirtualNIC)) { - return super.equals(obj); - } - com.google.container.v1beta1.VirtualNIC other = (com.google.container.v1beta1.VirtualNIC) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.VirtualNIC parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.VirtualNIC parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.VirtualNIC parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.VirtualNIC parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.VirtualNIC parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.VirtualNIC parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.VirtualNIC parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.VirtualNIC parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.VirtualNIC parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.VirtualNIC parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1beta1.VirtualNIC parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.VirtualNIC parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1beta1.VirtualNIC prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Configuration of gVNIC feature.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.VirtualNIC} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.VirtualNIC) - com.google.container.v1beta1.VirtualNICOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_VirtualNIC_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_VirtualNIC_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.VirtualNIC.class, - com.google.container.v1beta1.VirtualNIC.Builder.class); - } - - // Construct using com.google.container.v1beta1.VirtualNIC.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 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_VirtualNIC_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.VirtualNIC getDefaultInstanceForType() { - return com.google.container.v1beta1.VirtualNIC.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.VirtualNIC build() { - com.google.container.v1beta1.VirtualNIC result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.VirtualNIC buildPartial() { - com.google.container.v1beta1.VirtualNIC result = - new com.google.container.v1beta1.VirtualNIC(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.VirtualNIC result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enabled_ = enabled_; - } - } - - @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.VirtualNIC) { - return mergeFrom((com.google.container.v1beta1.VirtualNIC) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.VirtualNIC other) { - if (other == com.google.container.v1beta1.VirtualNIC.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean enabled_; - /** - * - * - *
-     * Whether gVNIC features are enabled in the node pool.
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Whether gVNIC features are enabled in the node pool.
-     * 
- * - * bool enabled = 1; - * - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether gVNIC features are enabled in the node pool.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000001); - 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.VirtualNIC) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.VirtualNIC) - private static final com.google.container.v1beta1.VirtualNIC DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.VirtualNIC(); - } - - public static com.google.container.v1beta1.VirtualNIC getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VirtualNIC parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.VirtualNIC getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/VirtualNICOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/VirtualNICOrBuilder.java deleted file mode 100644 index c724d65316c4..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/VirtualNICOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface VirtualNICOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.VirtualNIC) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether gVNIC features are enabled in the node pool.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WindowsNodeConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WindowsNodeConfig.java deleted file mode 100644 index a859cb669d98..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WindowsNodeConfig.java +++ /dev/null @@ -1,759 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * Parameters that can be configured on Windows nodes.
- * Windows Node Config that define the parameters that will be used to
- * configure the Windows node pool settings
- * 
- * - * Protobuf type {@code google.container.v1beta1.WindowsNodeConfig} - */ -public final class WindowsNodeConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.WindowsNodeConfig) - WindowsNodeConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use WindowsNodeConfig.newBuilder() to construct. - private WindowsNodeConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private WindowsNodeConfig() { - osVersion_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new WindowsNodeConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_WindowsNodeConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_WindowsNodeConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.WindowsNodeConfig.class, - com.google.container.v1beta1.WindowsNodeConfig.Builder.class); - } - - /** - * - * - *
-   * Possible OS version that can be used.
-   * 
- * - * Protobuf enum {@code google.container.v1beta1.WindowsNodeConfig.OSVersion} - */ - public enum OSVersion implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * When OSVersion is not specified
-     * 
- * - * OS_VERSION_UNSPECIFIED = 0; - */ - OS_VERSION_UNSPECIFIED(0), - /** - * - * - *
-     * LTSC2019 specifies to use LTSC2019 as the Windows Servercore Base Image
-     * 
- * - * OS_VERSION_LTSC2019 = 1; - */ - OS_VERSION_LTSC2019(1), - /** - * - * - *
-     * LTSC2022 specifies to use LTSC2022 as the Windows Servercore Base Image
-     * 
- * - * OS_VERSION_LTSC2022 = 2; - */ - OS_VERSION_LTSC2022(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * When OSVersion is not specified
-     * 
- * - * OS_VERSION_UNSPECIFIED = 0; - */ - public static final int OS_VERSION_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * LTSC2019 specifies to use LTSC2019 as the Windows Servercore Base Image
-     * 
- * - * OS_VERSION_LTSC2019 = 1; - */ - public static final int OS_VERSION_LTSC2019_VALUE = 1; - /** - * - * - *
-     * LTSC2022 specifies to use LTSC2022 as the Windows Servercore Base Image
-     * 
- * - * OS_VERSION_LTSC2022 = 2; - */ - public static final int OS_VERSION_LTSC2022_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 OSVersion 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 OSVersion forNumber(int value) { - switch (value) { - case 0: - return OS_VERSION_UNSPECIFIED; - case 1: - return OS_VERSION_LTSC2019; - case 2: - return OS_VERSION_LTSC2022; - 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 OSVersion findValueByNumber(int number) { - return OSVersion.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.WindowsNodeConfig.getDescriptor().getEnumTypes().get(0); - } - - private static final OSVersion[] VALUES = values(); - - public static OSVersion 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 OSVersion(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1beta1.WindowsNodeConfig.OSVersion) - } - - public static final int OS_VERSION_FIELD_NUMBER = 1; - private int osVersion_ = 0; - /** - * - * - *
-   * OSVersion specifies the Windows node config to be used on the node
-   * 
- * - * .google.container.v1beta1.WindowsNodeConfig.OSVersion os_version = 1; - * - * @return The enum numeric value on the wire for osVersion. - */ - @java.lang.Override - public int getOsVersionValue() { - return osVersion_; - } - /** - * - * - *
-   * OSVersion specifies the Windows node config to be used on the node
-   * 
- * - * .google.container.v1beta1.WindowsNodeConfig.OSVersion os_version = 1; - * - * @return The osVersion. - */ - @java.lang.Override - public com.google.container.v1beta1.WindowsNodeConfig.OSVersion getOsVersion() { - com.google.container.v1beta1.WindowsNodeConfig.OSVersion result = - com.google.container.v1beta1.WindowsNodeConfig.OSVersion.forNumber(osVersion_); - return result == null - ? com.google.container.v1beta1.WindowsNodeConfig.OSVersion.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 (osVersion_ - != com.google.container.v1beta1.WindowsNodeConfig.OSVersion.OS_VERSION_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, osVersion_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (osVersion_ - != com.google.container.v1beta1.WindowsNodeConfig.OSVersion.OS_VERSION_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, osVersion_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.WindowsNodeConfig)) { - return super.equals(obj); - } - com.google.container.v1beta1.WindowsNodeConfig other = - (com.google.container.v1beta1.WindowsNodeConfig) obj; - - if (osVersion_ != other.osVersion_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + OS_VERSION_FIELD_NUMBER; - hash = (53 * hash) + osVersion_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.WindowsNodeConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.WindowsNodeConfig parseFrom( - 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.WindowsNodeConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.WindowsNodeConfig parseFrom( - com.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.WindowsNodeConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.WindowsNodeConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.WindowsNodeConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.WindowsNodeConfig parseFrom( - java.io.InputStream 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.WindowsNodeConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.WindowsNodeConfig parseDelimitedFrom( - java.io.InputStream 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.WindowsNodeConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.WindowsNodeConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.WindowsNodeConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 Windows nodes.
-   * Windows Node Config that define the parameters that will be used to
-   * configure the Windows node pool settings
-   * 
- * - * Protobuf type {@code google.container.v1beta1.WindowsNodeConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.WindowsNodeConfig) - com.google.container.v1beta1.WindowsNodeConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_WindowsNodeConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_WindowsNodeConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.WindowsNodeConfig.class, - com.google.container.v1beta1.WindowsNodeConfig.Builder.class); - } - - // Construct using com.google.container.v1beta1.WindowsNodeConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - osVersion_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_WindowsNodeConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.WindowsNodeConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.WindowsNodeConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.WindowsNodeConfig build() { - com.google.container.v1beta1.WindowsNodeConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.WindowsNodeConfig buildPartial() { - com.google.container.v1beta1.WindowsNodeConfig result = - new com.google.container.v1beta1.WindowsNodeConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.WindowsNodeConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.osVersion_ = osVersion_; - } - } - - @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.WindowsNodeConfig) { - return mergeFrom((com.google.container.v1beta1.WindowsNodeConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.WindowsNodeConfig other) { - if (other == com.google.container.v1beta1.WindowsNodeConfig.getDefaultInstance()) return this; - if (other.osVersion_ != 0) { - setOsVersionValue(other.getOsVersionValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - osVersion_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int osVersion_ = 0; - /** - * - * - *
-     * OSVersion specifies the Windows node config to be used on the node
-     * 
- * - * .google.container.v1beta1.WindowsNodeConfig.OSVersion os_version = 1; - * - * @return The enum numeric value on the wire for osVersion. - */ - @java.lang.Override - public int getOsVersionValue() { - return osVersion_; - } - /** - * - * - *
-     * OSVersion specifies the Windows node config to be used on the node
-     * 
- * - * .google.container.v1beta1.WindowsNodeConfig.OSVersion os_version = 1; - * - * @param value The enum numeric value on the wire for osVersion to set. - * @return This builder for chaining. - */ - public Builder setOsVersionValue(int value) { - osVersion_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * OSVersion specifies the Windows node config to be used on the node
-     * 
- * - * .google.container.v1beta1.WindowsNodeConfig.OSVersion os_version = 1; - * - * @return The osVersion. - */ - @java.lang.Override - public com.google.container.v1beta1.WindowsNodeConfig.OSVersion getOsVersion() { - com.google.container.v1beta1.WindowsNodeConfig.OSVersion result = - com.google.container.v1beta1.WindowsNodeConfig.OSVersion.forNumber(osVersion_); - return result == null - ? com.google.container.v1beta1.WindowsNodeConfig.OSVersion.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * OSVersion specifies the Windows node config to be used on the node
-     * 
- * - * .google.container.v1beta1.WindowsNodeConfig.OSVersion os_version = 1; - * - * @param value The osVersion to set. - * @return This builder for chaining. - */ - public Builder setOsVersion(com.google.container.v1beta1.WindowsNodeConfig.OSVersion value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - osVersion_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * OSVersion specifies the Windows node config to be used on the node
-     * 
- * - * .google.container.v1beta1.WindowsNodeConfig.OSVersion os_version = 1; - * - * @return This builder for chaining. - */ - public Builder clearOsVersion() { - bitField0_ = (bitField0_ & ~0x00000001); - osVersion_ = 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.WindowsNodeConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.WindowsNodeConfig) - private static final com.google.container.v1beta1.WindowsNodeConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.WindowsNodeConfig(); - } - - public static com.google.container.v1beta1.WindowsNodeConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WindowsNodeConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.WindowsNodeConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WindowsNodeConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WindowsNodeConfigOrBuilder.java deleted file mode 100644 index b3a991f21da9..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WindowsNodeConfigOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface WindowsNodeConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.WindowsNodeConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * OSVersion specifies the Windows node config to be used on the node
-   * 
- * - * .google.container.v1beta1.WindowsNodeConfig.OSVersion os_version = 1; - * - * @return The enum numeric value on the wire for osVersion. - */ - int getOsVersionValue(); - /** - * - * - *
-   * OSVersion specifies the Windows node config to be used on the node
-   * 
- * - * .google.container.v1beta1.WindowsNodeConfig.OSVersion os_version = 1; - * - * @return The osVersion. - */ - com.google.container.v1beta1.WindowsNodeConfig.OSVersion getOsVersion(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WindowsVersions.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WindowsVersions.java deleted file mode 100644 index a31dae2589f1..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WindowsVersions.java +++ /dev/null @@ -1,2145 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * Windows server versions.
- * 
- * - * Protobuf type {@code google.container.v1beta1.WindowsVersions} - */ -public final class WindowsVersions extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.WindowsVersions) - WindowsVersionsOrBuilder { - private static final long serialVersionUID = 0L; - // Use WindowsVersions.newBuilder() to construct. - private WindowsVersions(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private WindowsVersions() { - windowsVersions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new WindowsVersions(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_WindowsVersions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_WindowsVersions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.WindowsVersions.class, - com.google.container.v1beta1.WindowsVersions.Builder.class); - } - - public interface WindowsVersionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.WindowsVersions.WindowsVersion) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Windows server image type
-     * 
- * - * string image_type = 1; - * - * @return The imageType. - */ - java.lang.String getImageType(); - /** - * - * - *
-     * Windows server image type
-     * 
- * - * string image_type = 1; - * - * @return The bytes for imageType. - */ - com.google.protobuf.ByteString getImageTypeBytes(); - - /** - * - * - *
-     * Windows server build number
-     * 
- * - * string os_version = 2; - * - * @return The osVersion. - */ - java.lang.String getOsVersion(); - /** - * - * - *
-     * Windows server build number
-     * 
- * - * string os_version = 2; - * - * @return The bytes for osVersion. - */ - com.google.protobuf.ByteString getOsVersionBytes(); - - /** - * - * - *
-     * Mainstream support end date
-     * 
- * - * .google.type.Date support_end_date = 3; - * - * @return Whether the supportEndDate field is set. - */ - boolean hasSupportEndDate(); - /** - * - * - *
-     * Mainstream support end date
-     * 
- * - * .google.type.Date support_end_date = 3; - * - * @return The supportEndDate. - */ - com.google.type.Date getSupportEndDate(); - /** - * - * - *
-     * Mainstream support end date
-     * 
- * - * .google.type.Date support_end_date = 3; - */ - com.google.type.DateOrBuilder getSupportEndDateOrBuilder(); - } - /** - * - * - *
-   * Windows server version.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.WindowsVersions.WindowsVersion} - */ - public static final class WindowsVersion extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.WindowsVersions.WindowsVersion) - WindowsVersionOrBuilder { - private static final long serialVersionUID = 0L; - // Use WindowsVersion.newBuilder() to construct. - private WindowsVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private WindowsVersion() { - imageType_ = ""; - osVersion_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new WindowsVersion(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_WindowsVersions_WindowsVersion_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_WindowsVersions_WindowsVersion_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.WindowsVersions.WindowsVersion.class, - com.google.container.v1beta1.WindowsVersions.WindowsVersion.Builder.class); - } - - private int bitField0_; - public static final int IMAGE_TYPE_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object imageType_ = ""; - /** - * - * - *
-     * Windows server image type
-     * 
- * - * string image_type = 1; - * - * @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; - } - } - /** - * - * - *
-     * Windows server image type
-     * 
- * - * string image_type = 1; - * - * @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 OS_VERSION_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object osVersion_ = ""; - /** - * - * - *
-     * Windows server build number
-     * 
- * - * string os_version = 2; - * - * @return The osVersion. - */ - @java.lang.Override - public java.lang.String getOsVersion() { - java.lang.Object ref = osVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - osVersion_ = s; - return s; - } - } - /** - * - * - *
-     * Windows server build number
-     * 
- * - * string os_version = 2; - * - * @return The bytes for osVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString getOsVersionBytes() { - java.lang.Object ref = osVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - osVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SUPPORT_END_DATE_FIELD_NUMBER = 3; - private com.google.type.Date supportEndDate_; - /** - * - * - *
-     * Mainstream support end date
-     * 
- * - * .google.type.Date support_end_date = 3; - * - * @return Whether the supportEndDate field is set. - */ - @java.lang.Override - public boolean hasSupportEndDate() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Mainstream support end date
-     * 
- * - * .google.type.Date support_end_date = 3; - * - * @return The supportEndDate. - */ - @java.lang.Override - public com.google.type.Date getSupportEndDate() { - return supportEndDate_ == null ? com.google.type.Date.getDefaultInstance() : supportEndDate_; - } - /** - * - * - *
-     * Mainstream support end date
-     * 
- * - * .google.type.Date support_end_date = 3; - */ - @java.lang.Override - public com.google.type.DateOrBuilder getSupportEndDateOrBuilder() { - return supportEndDate_ == null ? com.google.type.Date.getDefaultInstance() : supportEndDate_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageType_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, imageType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(osVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, osVersion_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getSupportEndDate()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageType_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, imageType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(osVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, osVersion_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSupportEndDate()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.WindowsVersions.WindowsVersion)) { - return super.equals(obj); - } - com.google.container.v1beta1.WindowsVersions.WindowsVersion other = - (com.google.container.v1beta1.WindowsVersions.WindowsVersion) obj; - - if (!getImageType().equals(other.getImageType())) return false; - if (!getOsVersion().equals(other.getOsVersion())) return false; - if (hasSupportEndDate() != other.hasSupportEndDate()) return false; - if (hasSupportEndDate()) { - if (!getSupportEndDate().equals(other.getSupportEndDate())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + IMAGE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getImageType().hashCode(); - hash = (37 * hash) + OS_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getOsVersion().hashCode(); - if (hasSupportEndDate()) { - hash = (37 * hash) + SUPPORT_END_DATE_FIELD_NUMBER; - hash = (53 * hash) + getSupportEndDate().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.WindowsVersions.WindowsVersion parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.WindowsVersions.WindowsVersion parseFrom( - 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.WindowsVersions.WindowsVersion parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.WindowsVersions.WindowsVersion parseFrom( - com.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.WindowsVersions.WindowsVersion parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.WindowsVersions.WindowsVersion parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.WindowsVersions.WindowsVersion parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.WindowsVersions.WindowsVersion parseFrom( - java.io.InputStream 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.WindowsVersions.WindowsVersion parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.WindowsVersions.WindowsVersion parseDelimitedFrom( - java.io.InputStream 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.WindowsVersions.WindowsVersion parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.WindowsVersions.WindowsVersion parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.WindowsVersions.WindowsVersion prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Windows server version.
-     * 
- * - * Protobuf type {@code google.container.v1beta1.WindowsVersions.WindowsVersion} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.WindowsVersions.WindowsVersion) - com.google.container.v1beta1.WindowsVersions.WindowsVersionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_WindowsVersions_WindowsVersion_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_WindowsVersions_WindowsVersion_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.WindowsVersions.WindowsVersion.class, - com.google.container.v1beta1.WindowsVersions.WindowsVersion.Builder.class); - } - - // Construct using com.google.container.v1beta1.WindowsVersions.WindowsVersion.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getSupportEndDateFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - imageType_ = ""; - osVersion_ = ""; - supportEndDate_ = null; - if (supportEndDateBuilder_ != null) { - supportEndDateBuilder_.dispose(); - supportEndDateBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_WindowsVersions_WindowsVersion_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.WindowsVersions.WindowsVersion - getDefaultInstanceForType() { - return com.google.container.v1beta1.WindowsVersions.WindowsVersion.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.WindowsVersions.WindowsVersion build() { - com.google.container.v1beta1.WindowsVersions.WindowsVersion result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.WindowsVersions.WindowsVersion buildPartial() { - com.google.container.v1beta1.WindowsVersions.WindowsVersion result = - new com.google.container.v1beta1.WindowsVersions.WindowsVersion(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.container.v1beta1.WindowsVersions.WindowsVersion result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.imageType_ = imageType_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.osVersion_ = osVersion_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.supportEndDate_ = - supportEndDateBuilder_ == null ? supportEndDate_ : supportEndDateBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @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.WindowsVersions.WindowsVersion) { - return mergeFrom((com.google.container.v1beta1.WindowsVersions.WindowsVersion) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.WindowsVersions.WindowsVersion other) { - if (other - == com.google.container.v1beta1.WindowsVersions.WindowsVersion.getDefaultInstance()) - return this; - if (!other.getImageType().isEmpty()) { - imageType_ = other.imageType_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getOsVersion().isEmpty()) { - osVersion_ = other.osVersion_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasSupportEndDate()) { - mergeSupportEndDate(other.getSupportEndDate()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - imageType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - osVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - getSupportEndDateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object imageType_ = ""; - /** - * - * - *
-       * Windows server image type
-       * 
- * - * string image_type = 1; - * - * @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; - } - } - /** - * - * - *
-       * Windows server image type
-       * 
- * - * string image_type = 1; - * - * @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; - } - } - /** - * - * - *
-       * Windows server image type
-       * 
- * - * string image_type = 1; - * - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * Windows server image type
-       * 
- * - * string image_type = 1; - * - * @return This builder for chaining. - */ - public Builder clearImageType() { - imageType_ = getDefaultInstance().getImageType(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-       * Windows server image type
-       * 
- * - * string image_type = 1; - * - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object osVersion_ = ""; - /** - * - * - *
-       * Windows server build number
-       * 
- * - * string os_version = 2; - * - * @return The osVersion. - */ - public java.lang.String getOsVersion() { - java.lang.Object ref = osVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - osVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Windows server build number
-       * 
- * - * string os_version = 2; - * - * @return The bytes for osVersion. - */ - public com.google.protobuf.ByteString getOsVersionBytes() { - java.lang.Object ref = osVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - osVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Windows server build number
-       * 
- * - * string os_version = 2; - * - * @param value The osVersion to set. - * @return This builder for chaining. - */ - public Builder setOsVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - osVersion_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-       * Windows server build number
-       * 
- * - * string os_version = 2; - * - * @return This builder for chaining. - */ - public Builder clearOsVersion() { - osVersion_ = getDefaultInstance().getOsVersion(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-       * Windows server build number
-       * 
- * - * string os_version = 2; - * - * @param value The bytes for osVersion to set. - * @return This builder for chaining. - */ - public Builder setOsVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - osVersion_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.type.Date supportEndDate_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - supportEndDateBuilder_; - /** - * - * - *
-       * Mainstream support end date
-       * 
- * - * .google.type.Date support_end_date = 3; - * - * @return Whether the supportEndDate field is set. - */ - public boolean hasSupportEndDate() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-       * Mainstream support end date
-       * 
- * - * .google.type.Date support_end_date = 3; - * - * @return The supportEndDate. - */ - public com.google.type.Date getSupportEndDate() { - if (supportEndDateBuilder_ == null) { - return supportEndDate_ == null - ? com.google.type.Date.getDefaultInstance() - : supportEndDate_; - } else { - return supportEndDateBuilder_.getMessage(); - } - } - /** - * - * - *
-       * Mainstream support end date
-       * 
- * - * .google.type.Date support_end_date = 3; - */ - public Builder setSupportEndDate(com.google.type.Date value) { - if (supportEndDateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - supportEndDate_ = value; - } else { - supportEndDateBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-       * Mainstream support end date
-       * 
- * - * .google.type.Date support_end_date = 3; - */ - public Builder setSupportEndDate(com.google.type.Date.Builder builderForValue) { - if (supportEndDateBuilder_ == null) { - supportEndDate_ = builderForValue.build(); - } else { - supportEndDateBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-       * Mainstream support end date
-       * 
- * - * .google.type.Date support_end_date = 3; - */ - public Builder mergeSupportEndDate(com.google.type.Date value) { - if (supportEndDateBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && supportEndDate_ != null - && supportEndDate_ != com.google.type.Date.getDefaultInstance()) { - getSupportEndDateBuilder().mergeFrom(value); - } else { - supportEndDate_ = value; - } - } else { - supportEndDateBuilder_.mergeFrom(value); - } - if (supportEndDate_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - * - * - *
-       * Mainstream support end date
-       * 
- * - * .google.type.Date support_end_date = 3; - */ - public Builder clearSupportEndDate() { - bitField0_ = (bitField0_ & ~0x00000004); - supportEndDate_ = null; - if (supportEndDateBuilder_ != null) { - supportEndDateBuilder_.dispose(); - supportEndDateBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-       * Mainstream support end date
-       * 
- * - * .google.type.Date support_end_date = 3; - */ - public com.google.type.Date.Builder getSupportEndDateBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getSupportEndDateFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * Mainstream support end date
-       * 
- * - * .google.type.Date support_end_date = 3; - */ - public com.google.type.DateOrBuilder getSupportEndDateOrBuilder() { - if (supportEndDateBuilder_ != null) { - return supportEndDateBuilder_.getMessageOrBuilder(); - } else { - return supportEndDate_ == null - ? com.google.type.Date.getDefaultInstance() - : supportEndDate_; - } - } - /** - * - * - *
-       * Mainstream support end date
-       * 
- * - * .google.type.Date support_end_date = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - getSupportEndDateFieldBuilder() { - if (supportEndDateBuilder_ == null) { - supportEndDateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, - com.google.type.Date.Builder, - com.google.type.DateOrBuilder>( - getSupportEndDate(), getParentForChildren(), isClean()); - supportEndDate_ = null; - } - return supportEndDateBuilder_; - } - - @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.WindowsVersions.WindowsVersion) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.WindowsVersions.WindowsVersion) - private static final com.google.container.v1beta1.WindowsVersions.WindowsVersion - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.WindowsVersions.WindowsVersion(); - } - - public static com.google.container.v1beta1.WindowsVersions.WindowsVersion getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WindowsVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.WindowsVersions.WindowsVersion getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public static final int WINDOWS_VERSIONS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List - windowsVersions_; - /** - * - * - *
-   * List of Windows server versions.
-   * 
- * - * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; - * - */ - @java.lang.Override - public java.util.List - getWindowsVersionsList() { - return windowsVersions_; - } - /** - * - * - *
-   * List of Windows server versions.
-   * 
- * - * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; - * - */ - @java.lang.Override - public java.util.List< - ? extends com.google.container.v1beta1.WindowsVersions.WindowsVersionOrBuilder> - getWindowsVersionsOrBuilderList() { - return windowsVersions_; - } - /** - * - * - *
-   * List of Windows server versions.
-   * 
- * - * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; - * - */ - @java.lang.Override - public int getWindowsVersionsCount() { - return windowsVersions_.size(); - } - /** - * - * - *
-   * List of Windows server versions.
-   * 
- * - * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; - * - */ - @java.lang.Override - public com.google.container.v1beta1.WindowsVersions.WindowsVersion getWindowsVersions(int index) { - return windowsVersions_.get(index); - } - /** - * - * - *
-   * List of Windows server versions.
-   * 
- * - * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; - * - */ - @java.lang.Override - public com.google.container.v1beta1.WindowsVersions.WindowsVersionOrBuilder - getWindowsVersionsOrBuilder(int index) { - return windowsVersions_.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 < windowsVersions_.size(); i++) { - output.writeMessage(1, windowsVersions_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < windowsVersions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, windowsVersions_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.WindowsVersions)) { - return super.equals(obj); - } - com.google.container.v1beta1.WindowsVersions other = - (com.google.container.v1beta1.WindowsVersions) obj; - - if (!getWindowsVersionsList().equals(other.getWindowsVersionsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getWindowsVersionsCount() > 0) { - hash = (37 * hash) + WINDOWS_VERSIONS_FIELD_NUMBER; - hash = (53 * hash) + getWindowsVersionsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.WindowsVersions parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.WindowsVersions parseFrom( - 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.WindowsVersions parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.WindowsVersions parseFrom( - com.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.WindowsVersions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.WindowsVersions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.WindowsVersions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.WindowsVersions parseFrom( - java.io.InputStream 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.WindowsVersions parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.WindowsVersions parseDelimitedFrom( - java.io.InputStream 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.WindowsVersions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.WindowsVersions parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.WindowsVersions prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Windows server versions.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.WindowsVersions} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.WindowsVersions) - com.google.container.v1beta1.WindowsVersionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_WindowsVersions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_WindowsVersions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.WindowsVersions.class, - com.google.container.v1beta1.WindowsVersions.Builder.class); - } - - // Construct using com.google.container.v1beta1.WindowsVersions.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (windowsVersionsBuilder_ == null) { - windowsVersions_ = java.util.Collections.emptyList(); - } else { - windowsVersions_ = null; - windowsVersionsBuilder_.clear(); - } - 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_WindowsVersions_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.WindowsVersions getDefaultInstanceForType() { - return com.google.container.v1beta1.WindowsVersions.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.WindowsVersions build() { - com.google.container.v1beta1.WindowsVersions result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.WindowsVersions buildPartial() { - com.google.container.v1beta1.WindowsVersions result = - new com.google.container.v1beta1.WindowsVersions(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.container.v1beta1.WindowsVersions result) { - if (windowsVersionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - windowsVersions_ = java.util.Collections.unmodifiableList(windowsVersions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.windowsVersions_ = windowsVersions_; - } else { - result.windowsVersions_ = windowsVersionsBuilder_.build(); - } - } - - private void buildPartial0(com.google.container.v1beta1.WindowsVersions result) { - int from_bitField0_ = bitField0_; - } - - @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.WindowsVersions) { - return mergeFrom((com.google.container.v1beta1.WindowsVersions) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.WindowsVersions other) { - if (other == com.google.container.v1beta1.WindowsVersions.getDefaultInstance()) return this; - if (windowsVersionsBuilder_ == null) { - if (!other.windowsVersions_.isEmpty()) { - if (windowsVersions_.isEmpty()) { - windowsVersions_ = other.windowsVersions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureWindowsVersionsIsMutable(); - windowsVersions_.addAll(other.windowsVersions_); - } - onChanged(); - } - } else { - if (!other.windowsVersions_.isEmpty()) { - if (windowsVersionsBuilder_.isEmpty()) { - windowsVersionsBuilder_.dispose(); - windowsVersionsBuilder_ = null; - windowsVersions_ = other.windowsVersions_; - bitField0_ = (bitField0_ & ~0x00000001); - windowsVersionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWindowsVersionsFieldBuilder() - : null; - } else { - windowsVersionsBuilder_.addAllMessages(other.windowsVersions_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.container.v1beta1.WindowsVersions.WindowsVersion m = - input.readMessage( - com.google.container.v1beta1.WindowsVersions.WindowsVersion.parser(), - extensionRegistry); - if (windowsVersionsBuilder_ == null) { - ensureWindowsVersionsIsMutable(); - windowsVersions_.add(m); - } else { - windowsVersionsBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List - windowsVersions_ = java.util.Collections.emptyList(); - - private void ensureWindowsVersionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - windowsVersions_ = - new java.util.ArrayList( - windowsVersions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.WindowsVersions.WindowsVersion, - com.google.container.v1beta1.WindowsVersions.WindowsVersion.Builder, - com.google.container.v1beta1.WindowsVersions.WindowsVersionOrBuilder> - windowsVersionsBuilder_; - - /** - * - * - *
-     * List of Windows server versions.
-     * 
- * - * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; - * - */ - public java.util.List - getWindowsVersionsList() { - if (windowsVersionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(windowsVersions_); - } else { - return windowsVersionsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * List of Windows server versions.
-     * 
- * - * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; - * - */ - public int getWindowsVersionsCount() { - if (windowsVersionsBuilder_ == null) { - return windowsVersions_.size(); - } else { - return windowsVersionsBuilder_.getCount(); - } - } - /** - * - * - *
-     * List of Windows server versions.
-     * 
- * - * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; - * - */ - public com.google.container.v1beta1.WindowsVersions.WindowsVersion getWindowsVersions( - int index) { - if (windowsVersionsBuilder_ == null) { - return windowsVersions_.get(index); - } else { - return windowsVersionsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * List of Windows server versions.
-     * 
- * - * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; - * - */ - public Builder setWindowsVersions( - int index, com.google.container.v1beta1.WindowsVersions.WindowsVersion value) { - if (windowsVersionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWindowsVersionsIsMutable(); - windowsVersions_.set(index, value); - onChanged(); - } else { - windowsVersionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * List of Windows server versions.
-     * 
- * - * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; - * - */ - public Builder setWindowsVersions( - int index, - com.google.container.v1beta1.WindowsVersions.WindowsVersion.Builder builderForValue) { - if (windowsVersionsBuilder_ == null) { - ensureWindowsVersionsIsMutable(); - windowsVersions_.set(index, builderForValue.build()); - onChanged(); - } else { - windowsVersionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of Windows server versions.
-     * 
- * - * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; - * - */ - public Builder addWindowsVersions( - com.google.container.v1beta1.WindowsVersions.WindowsVersion value) { - if (windowsVersionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWindowsVersionsIsMutable(); - windowsVersions_.add(value); - onChanged(); - } else { - windowsVersionsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * List of Windows server versions.
-     * 
- * - * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; - * - */ - public Builder addWindowsVersions( - int index, com.google.container.v1beta1.WindowsVersions.WindowsVersion value) { - if (windowsVersionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWindowsVersionsIsMutable(); - windowsVersions_.add(index, value); - onChanged(); - } else { - windowsVersionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * List of Windows server versions.
-     * 
- * - * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; - * - */ - public Builder addWindowsVersions( - com.google.container.v1beta1.WindowsVersions.WindowsVersion.Builder builderForValue) { - if (windowsVersionsBuilder_ == null) { - ensureWindowsVersionsIsMutable(); - windowsVersions_.add(builderForValue.build()); - onChanged(); - } else { - windowsVersionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of Windows server versions.
-     * 
- * - * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; - * - */ - public Builder addWindowsVersions( - int index, - com.google.container.v1beta1.WindowsVersions.WindowsVersion.Builder builderForValue) { - if (windowsVersionsBuilder_ == null) { - ensureWindowsVersionsIsMutable(); - windowsVersions_.add(index, builderForValue.build()); - onChanged(); - } else { - windowsVersionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of Windows server versions.
-     * 
- * - * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; - * - */ - public Builder addAllWindowsVersions( - java.lang.Iterable - values) { - if (windowsVersionsBuilder_ == null) { - ensureWindowsVersionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, windowsVersions_); - onChanged(); - } else { - windowsVersionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * List of Windows server versions.
-     * 
- * - * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; - * - */ - public Builder clearWindowsVersions() { - if (windowsVersionsBuilder_ == null) { - windowsVersions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - windowsVersionsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * List of Windows server versions.
-     * 
- * - * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; - * - */ - public Builder removeWindowsVersions(int index) { - if (windowsVersionsBuilder_ == null) { - ensureWindowsVersionsIsMutable(); - windowsVersions_.remove(index); - onChanged(); - } else { - windowsVersionsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * List of Windows server versions.
-     * 
- * - * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; - * - */ - public com.google.container.v1beta1.WindowsVersions.WindowsVersion.Builder - getWindowsVersionsBuilder(int index) { - return getWindowsVersionsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * List of Windows server versions.
-     * 
- * - * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; - * - */ - public com.google.container.v1beta1.WindowsVersions.WindowsVersionOrBuilder - getWindowsVersionsOrBuilder(int index) { - if (windowsVersionsBuilder_ == null) { - return windowsVersions_.get(index); - } else { - return windowsVersionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * List of Windows server versions.
-     * 
- * - * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; - * - */ - public java.util.List< - ? extends com.google.container.v1beta1.WindowsVersions.WindowsVersionOrBuilder> - getWindowsVersionsOrBuilderList() { - if (windowsVersionsBuilder_ != null) { - return windowsVersionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(windowsVersions_); - } - } - /** - * - * - *
-     * List of Windows server versions.
-     * 
- * - * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; - * - */ - public com.google.container.v1beta1.WindowsVersions.WindowsVersion.Builder - addWindowsVersionsBuilder() { - return getWindowsVersionsFieldBuilder() - .addBuilder( - com.google.container.v1beta1.WindowsVersions.WindowsVersion.getDefaultInstance()); - } - /** - * - * - *
-     * List of Windows server versions.
-     * 
- * - * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; - * - */ - public com.google.container.v1beta1.WindowsVersions.WindowsVersion.Builder - addWindowsVersionsBuilder(int index) { - return getWindowsVersionsFieldBuilder() - .addBuilder( - index, - com.google.container.v1beta1.WindowsVersions.WindowsVersion.getDefaultInstance()); - } - /** - * - * - *
-     * List of Windows server versions.
-     * 
- * - * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; - * - */ - public java.util.List - getWindowsVersionsBuilderList() { - return getWindowsVersionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.WindowsVersions.WindowsVersion, - com.google.container.v1beta1.WindowsVersions.WindowsVersion.Builder, - com.google.container.v1beta1.WindowsVersions.WindowsVersionOrBuilder> - getWindowsVersionsFieldBuilder() { - if (windowsVersionsBuilder_ == null) { - windowsVersionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1beta1.WindowsVersions.WindowsVersion, - com.google.container.v1beta1.WindowsVersions.WindowsVersion.Builder, - com.google.container.v1beta1.WindowsVersions.WindowsVersionOrBuilder>( - windowsVersions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - windowsVersions_ = null; - } - return windowsVersionsBuilder_; - } - - @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.WindowsVersions) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.WindowsVersions) - private static final com.google.container.v1beta1.WindowsVersions DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.WindowsVersions(); - } - - public static com.google.container.v1beta1.WindowsVersions getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WindowsVersions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.WindowsVersions getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WindowsVersionsOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WindowsVersionsOrBuilder.java deleted file mode 100644 index 26d89f59a4bd..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WindowsVersionsOrBuilder.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface WindowsVersionsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.WindowsVersions) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * List of Windows server versions.
-   * 
- * - * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; - * - */ - java.util.List - getWindowsVersionsList(); - /** - * - * - *
-   * List of Windows server versions.
-   * 
- * - * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; - * - */ - com.google.container.v1beta1.WindowsVersions.WindowsVersion getWindowsVersions(int index); - /** - * - * - *
-   * List of Windows server versions.
-   * 
- * - * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; - * - */ - int getWindowsVersionsCount(); - /** - * - * - *
-   * List of Windows server versions.
-   * 
- * - * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; - * - */ - java.util.List - getWindowsVersionsOrBuilderList(); - /** - * - * - *
-   * List of Windows server versions.
-   * 
- * - * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; - * - */ - com.google.container.v1beta1.WindowsVersions.WindowsVersionOrBuilder getWindowsVersionsOrBuilder( - int index); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadALTSConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadALTSConfig.java deleted file mode 100644 index 6a69423f0dc4..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadALTSConfig.java +++ /dev/null @@ -1,777 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * Configuration for direct-path (via ALTS) with workload identity.
- * 
- * - * Protobuf type {@code google.container.v1beta1.WorkloadALTSConfig} - */ -public final class WorkloadALTSConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.WorkloadALTSConfig) - WorkloadALTSConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkloadALTSConfig.newBuilder() to construct. - private WorkloadALTSConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private WorkloadALTSConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new WorkloadALTSConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_WorkloadALTSConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_WorkloadALTSConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.WorkloadALTSConfig.class, - com.google.container.v1beta1.WorkloadALTSConfig.Builder.class); - } - - private int bitField0_; - public static final int ENABLE_ALTS_FIELD_NUMBER = 1; - private com.google.protobuf.BoolValue enableAlts_; - /** - * - * - *
-   * enable_alts controls whether the alts handshaker should be enabled or not
-   * for direct-path.
-   *
-   * Requires Workload Identity
-   * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
-   * must be non-empty).
-   * 
- * - * .google.protobuf.BoolValue enable_alts = 1; - * - * @return Whether the enableAlts field is set. - */ - @java.lang.Override - public boolean hasEnableAlts() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * enable_alts controls whether the alts handshaker should be enabled or not
-   * for direct-path.
-   *
-   * Requires Workload Identity
-   * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
-   * must be non-empty).
-   * 
- * - * .google.protobuf.BoolValue enable_alts = 1; - * - * @return The enableAlts. - */ - @java.lang.Override - public com.google.protobuf.BoolValue getEnableAlts() { - return enableAlts_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableAlts_; - } - /** - * - * - *
-   * enable_alts controls whether the alts handshaker should be enabled or not
-   * for direct-path.
-   *
-   * Requires Workload Identity
-   * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
-   * must be non-empty).
-   * 
- * - * .google.protobuf.BoolValue enable_alts = 1; - */ - @java.lang.Override - public com.google.protobuf.BoolValueOrBuilder getEnableAltsOrBuilder() { - return enableAlts_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableAlts_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getEnableAlts()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEnableAlts()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.WorkloadALTSConfig)) { - return super.equals(obj); - } - com.google.container.v1beta1.WorkloadALTSConfig other = - (com.google.container.v1beta1.WorkloadALTSConfig) obj; - - if (hasEnableAlts() != other.hasEnableAlts()) return false; - if (hasEnableAlts()) { - if (!getEnableAlts().equals(other.getEnableAlts())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasEnableAlts()) { - hash = (37 * hash) + ENABLE_ALTS_FIELD_NUMBER; - hash = (53 * hash) + getEnableAlts().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.WorkloadALTSConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.WorkloadALTSConfig parseFrom( - 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.WorkloadALTSConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.WorkloadALTSConfig parseFrom( - com.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.WorkloadALTSConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.WorkloadALTSConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.WorkloadALTSConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.WorkloadALTSConfig parseFrom( - java.io.InputStream 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.WorkloadALTSConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.WorkloadALTSConfig parseDelimitedFrom( - java.io.InputStream 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.WorkloadALTSConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.WorkloadALTSConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.WorkloadALTSConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 direct-path (via ALTS) with workload identity.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.WorkloadALTSConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.WorkloadALTSConfig) - com.google.container.v1beta1.WorkloadALTSConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_WorkloadALTSConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_WorkloadALTSConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.WorkloadALTSConfig.class, - com.google.container.v1beta1.WorkloadALTSConfig.Builder.class); - } - - // Construct using com.google.container.v1beta1.WorkloadALTSConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getEnableAltsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enableAlts_ = null; - if (enableAltsBuilder_ != null) { - enableAltsBuilder_.dispose(); - enableAltsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_WorkloadALTSConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.WorkloadALTSConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.WorkloadALTSConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.WorkloadALTSConfig build() { - com.google.container.v1beta1.WorkloadALTSConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.WorkloadALTSConfig buildPartial() { - com.google.container.v1beta1.WorkloadALTSConfig result = - new com.google.container.v1beta1.WorkloadALTSConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.WorkloadALTSConfig result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enableAlts_ = enableAltsBuilder_ == null ? enableAlts_ : enableAltsBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @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.WorkloadALTSConfig) { - return mergeFrom((com.google.container.v1beta1.WorkloadALTSConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.WorkloadALTSConfig other) { - if (other == com.google.container.v1beta1.WorkloadALTSConfig.getDefaultInstance()) - return this; - if (other.hasEnableAlts()) { - mergeEnableAlts(other.getEnableAlts()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getEnableAltsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.protobuf.BoolValue enableAlts_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - enableAltsBuilder_; - /** - * - * - *
-     * enable_alts controls whether the alts handshaker should be enabled or not
-     * for direct-path.
-     *
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_alts = 1; - * - * @return Whether the enableAlts field is set. - */ - public boolean hasEnableAlts() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * enable_alts controls whether the alts handshaker should be enabled or not
-     * for direct-path.
-     *
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_alts = 1; - * - * @return The enableAlts. - */ - public com.google.protobuf.BoolValue getEnableAlts() { - if (enableAltsBuilder_ == null) { - return enableAlts_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : enableAlts_; - } else { - return enableAltsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * enable_alts controls whether the alts handshaker should be enabled or not
-     * for direct-path.
-     *
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_alts = 1; - */ - public Builder setEnableAlts(com.google.protobuf.BoolValue value) { - if (enableAltsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - enableAlts_ = value; - } else { - enableAltsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * enable_alts controls whether the alts handshaker should be enabled or not
-     * for direct-path.
-     *
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_alts = 1; - */ - public Builder setEnableAlts(com.google.protobuf.BoolValue.Builder builderForValue) { - if (enableAltsBuilder_ == null) { - enableAlts_ = builderForValue.build(); - } else { - enableAltsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * enable_alts controls whether the alts handshaker should be enabled or not
-     * for direct-path.
-     *
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_alts = 1; - */ - public Builder mergeEnableAlts(com.google.protobuf.BoolValue value) { - if (enableAltsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && enableAlts_ != null - && enableAlts_ != com.google.protobuf.BoolValue.getDefaultInstance()) { - getEnableAltsBuilder().mergeFrom(value); - } else { - enableAlts_ = value; - } - } else { - enableAltsBuilder_.mergeFrom(value); - } - if (enableAlts_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * - * - *
-     * enable_alts controls whether the alts handshaker should be enabled or not
-     * for direct-path.
-     *
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_alts = 1; - */ - public Builder clearEnableAlts() { - bitField0_ = (bitField0_ & ~0x00000001); - enableAlts_ = null; - if (enableAltsBuilder_ != null) { - enableAltsBuilder_.dispose(); - enableAltsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * enable_alts controls whether the alts handshaker should be enabled or not
-     * for direct-path.
-     *
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_alts = 1; - */ - public com.google.protobuf.BoolValue.Builder getEnableAltsBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getEnableAltsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * enable_alts controls whether the alts handshaker should be enabled or not
-     * for direct-path.
-     *
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_alts = 1; - */ - public com.google.protobuf.BoolValueOrBuilder getEnableAltsOrBuilder() { - if (enableAltsBuilder_ != null) { - return enableAltsBuilder_.getMessageOrBuilder(); - } else { - return enableAlts_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : enableAlts_; - } - } - /** - * - * - *
-     * enable_alts controls whether the alts handshaker should be enabled or not
-     * for direct-path.
-     *
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_alts = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - getEnableAltsFieldBuilder() { - if (enableAltsBuilder_ == null) { - enableAltsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder>( - getEnableAlts(), getParentForChildren(), isClean()); - enableAlts_ = null; - } - return enableAltsBuilder_; - } - - @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.WorkloadALTSConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.WorkloadALTSConfig) - private static final com.google.container.v1beta1.WorkloadALTSConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.WorkloadALTSConfig(); - } - - public static com.google.container.v1beta1.WorkloadALTSConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkloadALTSConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.WorkloadALTSConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadALTSConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadALTSConfigOrBuilder.java deleted file mode 100644 index 798fd85e33c4..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadALTSConfigOrBuilder.java +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface WorkloadALTSConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.WorkloadALTSConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * enable_alts controls whether the alts handshaker should be enabled or not
-   * for direct-path.
-   *
-   * Requires Workload Identity
-   * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
-   * must be non-empty).
-   * 
- * - * .google.protobuf.BoolValue enable_alts = 1; - * - * @return Whether the enableAlts field is set. - */ - boolean hasEnableAlts(); - /** - * - * - *
-   * enable_alts controls whether the alts handshaker should be enabled or not
-   * for direct-path.
-   *
-   * Requires Workload Identity
-   * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
-   * must be non-empty).
-   * 
- * - * .google.protobuf.BoolValue enable_alts = 1; - * - * @return The enableAlts. - */ - com.google.protobuf.BoolValue getEnableAlts(); - /** - * - * - *
-   * enable_alts controls whether the alts handshaker should be enabled or not
-   * for direct-path.
-   *
-   * Requires Workload Identity
-   * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
-   * must be non-empty).
-   * 
- * - * .google.protobuf.BoolValue enable_alts = 1; - */ - com.google.protobuf.BoolValueOrBuilder getEnableAltsOrBuilder(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadCertificates.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadCertificates.java deleted file mode 100644 index 3d6f99d26779..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadCertificates.java +++ /dev/null @@ -1,821 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * Configuration for issuance of mTLS keys and certificates to Kubernetes pods.
- * 
- * - * Protobuf type {@code google.container.v1beta1.WorkloadCertificates} - */ -public final class WorkloadCertificates extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.WorkloadCertificates) - WorkloadCertificatesOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkloadCertificates.newBuilder() to construct. - private WorkloadCertificates(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private WorkloadCertificates() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new WorkloadCertificates(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_WorkloadCertificates_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_WorkloadCertificates_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.WorkloadCertificates.class, - com.google.container.v1beta1.WorkloadCertificates.Builder.class); - } - - private int bitField0_; - public static final int ENABLE_CERTIFICATES_FIELD_NUMBER = 1; - private com.google.protobuf.BoolValue enableCertificates_; - /** - * - * - *
-   * enable_certificates controls issuance of workload mTLS certificates.
-   *
-   * If set, the GKE Workload Identity Certificates controller and node agent
-   * will be deployed in the cluster, which can then be configured by creating a
-   * WorkloadCertificateConfig Custom Resource.
-   *
-   * Requires Workload Identity
-   * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
-   * must be non-empty).
-   * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - * - * @return Whether the enableCertificates field is set. - */ - @java.lang.Override - public boolean hasEnableCertificates() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * enable_certificates controls issuance of workload mTLS certificates.
-   *
-   * If set, the GKE Workload Identity Certificates controller and node agent
-   * will be deployed in the cluster, which can then be configured by creating a
-   * WorkloadCertificateConfig Custom Resource.
-   *
-   * Requires Workload Identity
-   * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
-   * must be non-empty).
-   * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - * - * @return The enableCertificates. - */ - @java.lang.Override - public com.google.protobuf.BoolValue getEnableCertificates() { - return enableCertificates_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : enableCertificates_; - } - /** - * - * - *
-   * enable_certificates controls issuance of workload mTLS certificates.
-   *
-   * If set, the GKE Workload Identity Certificates controller and node agent
-   * will be deployed in the cluster, which can then be configured by creating a
-   * WorkloadCertificateConfig Custom Resource.
-   *
-   * Requires Workload Identity
-   * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
-   * must be non-empty).
-   * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - @java.lang.Override - public com.google.protobuf.BoolValueOrBuilder getEnableCertificatesOrBuilder() { - return enableCertificates_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : enableCertificates_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getEnableCertificates()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEnableCertificates()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.WorkloadCertificates)) { - return super.equals(obj); - } - com.google.container.v1beta1.WorkloadCertificates other = - (com.google.container.v1beta1.WorkloadCertificates) obj; - - if (hasEnableCertificates() != other.hasEnableCertificates()) return false; - if (hasEnableCertificates()) { - if (!getEnableCertificates().equals(other.getEnableCertificates())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasEnableCertificates()) { - hash = (37 * hash) + ENABLE_CERTIFICATES_FIELD_NUMBER; - hash = (53 * hash) + getEnableCertificates().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.WorkloadCertificates parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.WorkloadCertificates parseFrom( - 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.WorkloadCertificates parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.WorkloadCertificates parseFrom( - com.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.WorkloadCertificates parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.WorkloadCertificates parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.WorkloadCertificates parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.WorkloadCertificates parseFrom( - java.io.InputStream 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.WorkloadCertificates parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.WorkloadCertificates parseDelimitedFrom( - java.io.InputStream 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.WorkloadCertificates parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.WorkloadCertificates parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.WorkloadCertificates prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Configuration for issuance of mTLS keys and certificates to Kubernetes pods.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.WorkloadCertificates} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.WorkloadCertificates) - com.google.container.v1beta1.WorkloadCertificatesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_WorkloadCertificates_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_WorkloadCertificates_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.WorkloadCertificates.class, - com.google.container.v1beta1.WorkloadCertificates.Builder.class); - } - - // Construct using com.google.container.v1beta1.WorkloadCertificates.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getEnableCertificatesFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enableCertificates_ = null; - if (enableCertificatesBuilder_ != null) { - enableCertificatesBuilder_.dispose(); - enableCertificatesBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_WorkloadCertificates_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.WorkloadCertificates getDefaultInstanceForType() { - return com.google.container.v1beta1.WorkloadCertificates.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.WorkloadCertificates build() { - com.google.container.v1beta1.WorkloadCertificates result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.WorkloadCertificates buildPartial() { - com.google.container.v1beta1.WorkloadCertificates result = - new com.google.container.v1beta1.WorkloadCertificates(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.WorkloadCertificates result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enableCertificates_ = - enableCertificatesBuilder_ == null - ? enableCertificates_ - : enableCertificatesBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @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.WorkloadCertificates) { - return mergeFrom((com.google.container.v1beta1.WorkloadCertificates) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.WorkloadCertificates other) { - if (other == com.google.container.v1beta1.WorkloadCertificates.getDefaultInstance()) - return this; - if (other.hasEnableCertificates()) { - mergeEnableCertificates(other.getEnableCertificates()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage( - getEnableCertificatesFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.protobuf.BoolValue enableCertificates_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - enableCertificatesBuilder_; - /** - * - * - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     *
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     *
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - * - * @return Whether the enableCertificates field is set. - */ - public boolean hasEnableCertificates() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     *
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     *
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - * - * @return The enableCertificates. - */ - public com.google.protobuf.BoolValue getEnableCertificates() { - if (enableCertificatesBuilder_ == null) { - return enableCertificates_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : enableCertificates_; - } else { - return enableCertificatesBuilder_.getMessage(); - } - } - /** - * - * - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     *
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     *
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - public Builder setEnableCertificates(com.google.protobuf.BoolValue value) { - if (enableCertificatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - enableCertificates_ = value; - } else { - enableCertificatesBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     *
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     *
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - public Builder setEnableCertificates(com.google.protobuf.BoolValue.Builder builderForValue) { - if (enableCertificatesBuilder_ == null) { - enableCertificates_ = builderForValue.build(); - } else { - enableCertificatesBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     *
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     *
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - public Builder mergeEnableCertificates(com.google.protobuf.BoolValue value) { - if (enableCertificatesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && enableCertificates_ != null - && enableCertificates_ != com.google.protobuf.BoolValue.getDefaultInstance()) { - getEnableCertificatesBuilder().mergeFrom(value); - } else { - enableCertificates_ = value; - } - } else { - enableCertificatesBuilder_.mergeFrom(value); - } - if (enableCertificates_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * - * - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     *
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     *
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - public Builder clearEnableCertificates() { - bitField0_ = (bitField0_ & ~0x00000001); - enableCertificates_ = null; - if (enableCertificatesBuilder_ != null) { - enableCertificatesBuilder_.dispose(); - enableCertificatesBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     *
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     *
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - public com.google.protobuf.BoolValue.Builder getEnableCertificatesBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getEnableCertificatesFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     *
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     *
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - public com.google.protobuf.BoolValueOrBuilder getEnableCertificatesOrBuilder() { - if (enableCertificatesBuilder_ != null) { - return enableCertificatesBuilder_.getMessageOrBuilder(); - } else { - return enableCertificates_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : enableCertificates_; - } - } - /** - * - * - *
-     * enable_certificates controls issuance of workload mTLS certificates.
-     *
-     * If set, the GKE Workload Identity Certificates controller and node agent
-     * will be deployed in the cluster, which can then be configured by creating a
-     * WorkloadCertificateConfig Custom Resource.
-     *
-     * Requires Workload Identity
-     * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
-     * must be non-empty).
-     * 
- * - * .google.protobuf.BoolValue enable_certificates = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - getEnableCertificatesFieldBuilder() { - if (enableCertificatesBuilder_ == null) { - enableCertificatesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder>( - getEnableCertificates(), getParentForChildren(), isClean()); - enableCertificates_ = null; - } - return enableCertificatesBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1beta1.WorkloadCertificates) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.WorkloadCertificates) - private static final com.google.container.v1beta1.WorkloadCertificates DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.WorkloadCertificates(); - } - - public static com.google.container.v1beta1.WorkloadCertificates getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkloadCertificates parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.WorkloadCertificates getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadConfig.java deleted file mode 100644 index fea711695ff0..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadConfig.java +++ /dev/null @@ -1,842 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * WorkloadConfig defines the flags to enable or disable the
- * workload configurations for the cluster.
- * 
- * - * Protobuf type {@code google.container.v1beta1.WorkloadConfig} - */ -public final class WorkloadConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.WorkloadConfig) - WorkloadConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkloadConfig.newBuilder() to construct. - private WorkloadConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private WorkloadConfig() { - auditMode_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new WorkloadConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_WorkloadConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_WorkloadConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.WorkloadConfig.class, - com.google.container.v1beta1.WorkloadConfig.Builder.class); - } - - /** - * - * - *
-   * Mode defines how to audit the workload configs.
-   * 
- * - * Protobuf enum {@code google.container.v1beta1.WorkloadConfig.Mode} - */ - public enum Mode implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value meaning that no mode has been specified.
-     * 
- * - * MODE_UNSPECIFIED = 0; - */ - MODE_UNSPECIFIED(0), - /** - * - * - *
-     * This disables Workload Configuration auditing on the cluster,
-     * meaning that nothing is surfaced.
-     * 
- * - * DISABLED = 1; - */ - DISABLED(1), - /** - * - * - *
-     * Applies the default set of policy auditing to a cluster's workloads.
-     * 
- * - * BASIC = 4; - */ - BASIC(4), - /** - * - * - *
-     * Surfaces configurations that are not in line with the
-     * Pod Security Standard Baseline policy.
-     * 
- * - * BASELINE = 2 [deprecated = true]; - */ - @java.lang.Deprecated - BASELINE(2), - /** - * - * - *
-     * Surfaces configurations that are not in line with the
-     * Pod Security Standard Restricted policy.
-     * 
- * - * RESTRICTED = 3 [deprecated = true]; - */ - @java.lang.Deprecated - RESTRICTED(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value meaning that no mode has been specified.
-     * 
- * - * MODE_UNSPECIFIED = 0; - */ - public static final int MODE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * This disables Workload Configuration auditing on the cluster,
-     * meaning that nothing is surfaced.
-     * 
- * - * DISABLED = 1; - */ - public static final int DISABLED_VALUE = 1; - /** - * - * - *
-     * Applies the default set of policy auditing to a cluster's workloads.
-     * 
- * - * BASIC = 4; - */ - public static final int BASIC_VALUE = 4; - /** - * - * - *
-     * Surfaces configurations that are not in line with the
-     * Pod Security Standard Baseline policy.
-     * 
- * - * BASELINE = 2 [deprecated = true]; - */ - @java.lang.Deprecated public static final int BASELINE_VALUE = 2; - /** - * - * - *
-     * Surfaces configurations that are not in line with the
-     * Pod Security Standard Restricted policy.
-     * 
- * - * RESTRICTED = 3 [deprecated = true]; - */ - @java.lang.Deprecated public static final int RESTRICTED_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 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 DISABLED; - case 4: - return BASIC; - case 2: - return BASELINE; - case 3: - return RESTRICTED; - 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.WorkloadConfig.getDescriptor().getEnumTypes().get(0); - } - - private static final Mode[] VALUES = values(); - - public static Mode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Mode(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1beta1.WorkloadConfig.Mode) - } - - private int bitField0_; - public static final int AUDIT_MODE_FIELD_NUMBER = 1; - private int auditMode_ = 0; - /** - * - * - *
-   * Sets which mode of auditing should be used for the cluster's workloads.
-   * 
- * - * optional .google.container.v1beta1.WorkloadConfig.Mode audit_mode = 1; - * - * @return Whether the auditMode field is set. - */ - @java.lang.Override - public boolean hasAuditMode() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Sets which mode of auditing should be used for the cluster's workloads.
-   * 
- * - * optional .google.container.v1beta1.WorkloadConfig.Mode audit_mode = 1; - * - * @return The enum numeric value on the wire for auditMode. - */ - @java.lang.Override - public int getAuditModeValue() { - return auditMode_; - } - /** - * - * - *
-   * Sets which mode of auditing should be used for the cluster's workloads.
-   * 
- * - * optional .google.container.v1beta1.WorkloadConfig.Mode audit_mode = 1; - * - * @return The auditMode. - */ - @java.lang.Override - public com.google.container.v1beta1.WorkloadConfig.Mode getAuditMode() { - com.google.container.v1beta1.WorkloadConfig.Mode result = - com.google.container.v1beta1.WorkloadConfig.Mode.forNumber(auditMode_); - return result == null ? com.google.container.v1beta1.WorkloadConfig.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 (((bitField0_ & 0x00000001) != 0)) { - output.writeEnum(1, auditMode_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, auditMode_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.WorkloadConfig)) { - return super.equals(obj); - } - com.google.container.v1beta1.WorkloadConfig other = - (com.google.container.v1beta1.WorkloadConfig) obj; - - if (hasAuditMode() != other.hasAuditMode()) return false; - if (hasAuditMode()) { - if (auditMode_ != other.auditMode_) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasAuditMode()) { - hash = (37 * hash) + AUDIT_MODE_FIELD_NUMBER; - hash = (53 * hash) + auditMode_; - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.WorkloadConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.WorkloadConfig parseFrom( - 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.WorkloadConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.WorkloadConfig parseFrom( - com.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.WorkloadConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.WorkloadConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.WorkloadConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.WorkloadConfig parseFrom( - java.io.InputStream 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.WorkloadConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.WorkloadConfig parseDelimitedFrom( - java.io.InputStream 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.WorkloadConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.WorkloadConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.WorkloadConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * WorkloadConfig defines the flags to enable or disable the
-   * workload configurations for the cluster.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.WorkloadConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.WorkloadConfig) - com.google.container.v1beta1.WorkloadConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_WorkloadConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_WorkloadConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.WorkloadConfig.class, - com.google.container.v1beta1.WorkloadConfig.Builder.class); - } - - // Construct using com.google.container.v1beta1.WorkloadConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - auditMode_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_WorkloadConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.WorkloadConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.WorkloadConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.WorkloadConfig build() { - com.google.container.v1beta1.WorkloadConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.WorkloadConfig buildPartial() { - com.google.container.v1beta1.WorkloadConfig result = - new com.google.container.v1beta1.WorkloadConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.WorkloadConfig result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.auditMode_ = auditMode_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @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.WorkloadConfig) { - return mergeFrom((com.google.container.v1beta1.WorkloadConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.WorkloadConfig other) { - if (other == com.google.container.v1beta1.WorkloadConfig.getDefaultInstance()) return this; - if (other.hasAuditMode()) { - setAuditMode(other.getAuditMode()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - auditMode_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int auditMode_ = 0; - /** - * - * - *
-     * Sets which mode of auditing should be used for the cluster's workloads.
-     * 
- * - * optional .google.container.v1beta1.WorkloadConfig.Mode audit_mode = 1; - * - * @return Whether the auditMode field is set. - */ - @java.lang.Override - public boolean hasAuditMode() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Sets which mode of auditing should be used for the cluster's workloads.
-     * 
- * - * optional .google.container.v1beta1.WorkloadConfig.Mode audit_mode = 1; - * - * @return The enum numeric value on the wire for auditMode. - */ - @java.lang.Override - public int getAuditModeValue() { - return auditMode_; - } - /** - * - * - *
-     * Sets which mode of auditing should be used for the cluster's workloads.
-     * 
- * - * optional .google.container.v1beta1.WorkloadConfig.Mode audit_mode = 1; - * - * @param value The enum numeric value on the wire for auditMode to set. - * @return This builder for chaining. - */ - public Builder setAuditModeValue(int value) { - auditMode_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Sets which mode of auditing should be used for the cluster's workloads.
-     * 
- * - * optional .google.container.v1beta1.WorkloadConfig.Mode audit_mode = 1; - * - * @return The auditMode. - */ - @java.lang.Override - public com.google.container.v1beta1.WorkloadConfig.Mode getAuditMode() { - com.google.container.v1beta1.WorkloadConfig.Mode result = - com.google.container.v1beta1.WorkloadConfig.Mode.forNumber(auditMode_); - return result == null - ? com.google.container.v1beta1.WorkloadConfig.Mode.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Sets which mode of auditing should be used for the cluster's workloads.
-     * 
- * - * optional .google.container.v1beta1.WorkloadConfig.Mode audit_mode = 1; - * - * @param value The auditMode to set. - * @return This builder for chaining. - */ - public Builder setAuditMode(com.google.container.v1beta1.WorkloadConfig.Mode value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - auditMode_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Sets which mode of auditing should be used for the cluster's workloads.
-     * 
- * - * optional .google.container.v1beta1.WorkloadConfig.Mode audit_mode = 1; - * - * @return This builder for chaining. - */ - public Builder clearAuditMode() { - bitField0_ = (bitField0_ & ~0x00000001); - auditMode_ = 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.WorkloadConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.WorkloadConfig) - private static final com.google.container.v1beta1.WorkloadConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.WorkloadConfig(); - } - - public static com.google.container.v1beta1.WorkloadConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkloadConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.WorkloadConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadConfigOrBuilder.java deleted file mode 100644 index cf069623ebc5..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadConfigOrBuilder.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface WorkloadConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.WorkloadConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Sets which mode of auditing should be used for the cluster's workloads.
-   * 
- * - * optional .google.container.v1beta1.WorkloadConfig.Mode audit_mode = 1; - * - * @return Whether the auditMode field is set. - */ - boolean hasAuditMode(); - /** - * - * - *
-   * Sets which mode of auditing should be used for the cluster's workloads.
-   * 
- * - * optional .google.container.v1beta1.WorkloadConfig.Mode audit_mode = 1; - * - * @return The enum numeric value on the wire for auditMode. - */ - int getAuditModeValue(); - /** - * - * - *
-   * Sets which mode of auditing should be used for the cluster's workloads.
-   * 
- * - * optional .google.container.v1beta1.WorkloadConfig.Mode audit_mode = 1; - * - * @return The auditMode. - */ - com.google.container.v1beta1.WorkloadConfig.Mode getAuditMode(); -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfig.java deleted file mode 100644 index fb09f73471e5..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfig.java +++ /dev/null @@ -1,1012 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object identityNamespace_ = ""; - /** - * - * - *
-   * IAM Identity Namespace to attach all Kubernetes Service Accounts to.
-   * 
- * - * string identity_namespace = 1 [deprecated = true]; - * - * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5181 - * @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]; - * - * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5181 - * @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; - - @SuppressWarnings("serial") - 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; - - @SuppressWarnings("serial") - 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(identityNamespace_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, identityNamespace_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workloadPool_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, workloadPool_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(identityProvider_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, identityProvider_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(identityNamespace_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, identityNamespace_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workloadPool_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, workloadPool_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(identityProvider_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, identityProvider_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.WorkloadIdentityConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.identityNamespace_ = identityNamespace_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.workloadPool_ = workloadPool_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.identityProvider_ = identityProvider_; - } - } - - @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_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getWorkloadPool().isEmpty()) { - workloadPool_ = other.workloadPool_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getIdentityProvider().isEmpty()) { - identityProvider_ = other.identityProvider_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - identityNamespace_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - workloadPool_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - identityProvider_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object identityNamespace_ = ""; - /** - * - * - *
-     * IAM Identity Namespace to attach all Kubernetes Service Accounts to.
-     * 
- * - * string identity_namespace = 1 [deprecated = true]; - * - * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5181 - * @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]; - * - * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5181 - * @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]; - * - * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5181 - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * IAM Identity Namespace to attach all Kubernetes Service Accounts to.
-     * 
- * - * string identity_namespace = 1 [deprecated = true]; - * - * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5181 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearIdentityNamespace() { - identityNamespace_ = getDefaultInstance().getIdentityNamespace(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * IAM Identity Namespace to attach all Kubernetes Service Accounts to.
-     * 
- * - * string identity_namespace = 1 [deprecated = true]; - * - * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5181 - * @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; - bitField0_ |= 0x00000001; - 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; - bitField0_ |= 0x00000002; - 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(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - 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; - bitField0_ |= 0x00000004; - 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(); - bitField0_ = (bitField0_ & ~0x00000004); - 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; - bitField0_ |= 0x00000004; - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfigOrBuilder.java deleted file mode 100644 index 2a6c82824be2..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfigOrBuilder.java +++ /dev/null @@ -1,107 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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]; - * - * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5181 - * @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]; - * - * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5181 - * @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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfig.java deleted file mode 100644 index 0df0bffcfb3c..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfig.java +++ /dev/null @@ -1,1177 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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(); - } - - 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_ = 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]; - * - * - * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4754 - * @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]; - * - * - * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4754 - * @return The nodeMetadata. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata getNodeMetadata() { - com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata result = - com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata.forNumber(nodeMetadata_); - return result == null - ? com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata.UNRECOGNIZED - : result; - } - - public static final int MODE_FIELD_NUMBER = 2; - 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; - * - * @return The mode. - */ - @java.lang.Override - public com.google.container.v1beta1.WorkloadMetadataConfig.Mode getMode() { - com.google.container.v1beta1.WorkloadMetadataConfig.Mode result = - com.google.container.v1beta1.WorkloadMetadataConfig.Mode.forNumber(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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - 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); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.WorkloadMetadataConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.nodeMetadata_ = nodeMetadata_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.mode_ = mode_; - } - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - nodeMetadata_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - mode_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - 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]; - * - * - * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4754 - * @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]; - * - * - * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4754 - * @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; - bitField0_ |= 0x00000001; - 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]; - * - * - * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4754 - * @return The nodeMetadata. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata getNodeMetadata() { - com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata result = - com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata.forNumber(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]; - * - * - * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4754 - * @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(); - } - bitField0_ |= 0x00000001; - 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]; - * - * - * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4754 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearNodeMetadata() { - bitField0_ = (bitField0_ & ~0x00000001); - 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; - bitField0_ |= 0x00000002; - 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() { - com.google.container.v1beta1.WorkloadMetadataConfig.Mode result = - com.google.container.v1beta1.WorkloadMetadataConfig.Mode.forNumber(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(); - } - bitField0_ |= 0x00000002; - 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() { - bitField0_ = (bitField0_ & ~0x00000002); - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfigOrBuilder.java deleted file mode 100644 index 1eadb29e88d0..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfigOrBuilder.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -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]; - * - * - * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4754 - * @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]; - * - * - * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4754 - * @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/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadPolicyConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadPolicyConfig.java deleted file mode 100644 index f923327b5a33..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadPolicyConfig.java +++ /dev/null @@ -1,576 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -/** - * - * - *
- * WorkloadPolicyConfig is the configuration of workload policy for autopilot
- * clusters.
- * 
- * - * Protobuf type {@code google.container.v1beta1.WorkloadPolicyConfig} - */ -public final class WorkloadPolicyConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1beta1.WorkloadPolicyConfig) - WorkloadPolicyConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkloadPolicyConfig.newBuilder() to construct. - private WorkloadPolicyConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private WorkloadPolicyConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new WorkloadPolicyConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_WorkloadPolicyConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_WorkloadPolicyConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.WorkloadPolicyConfig.class, - com.google.container.v1beta1.WorkloadPolicyConfig.Builder.class); - } - - private int bitField0_; - public static final int ALLOW_NET_ADMIN_FIELD_NUMBER = 1; - private boolean allowNetAdmin_ = false; - /** - * - * - *
-   * If true, workloads can use NET_ADMIN capability.
-   * 
- * - * optional bool allow_net_admin = 1; - * - * @return Whether the allowNetAdmin field is set. - */ - @java.lang.Override - public boolean hasAllowNetAdmin() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * If true, workloads can use NET_ADMIN capability.
-   * 
- * - * optional bool allow_net_admin = 1; - * - * @return The allowNetAdmin. - */ - @java.lang.Override - public boolean getAllowNetAdmin() { - return allowNetAdmin_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeBool(1, allowNetAdmin_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, allowNetAdmin_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.WorkloadPolicyConfig)) { - return super.equals(obj); - } - com.google.container.v1beta1.WorkloadPolicyConfig other = - (com.google.container.v1beta1.WorkloadPolicyConfig) obj; - - if (hasAllowNetAdmin() != other.hasAllowNetAdmin()) return false; - if (hasAllowNetAdmin()) { - if (getAllowNetAdmin() != other.getAllowNetAdmin()) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasAllowNetAdmin()) { - hash = (37 * hash) + ALLOW_NET_ADMIN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowNetAdmin()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1beta1.WorkloadPolicyConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.WorkloadPolicyConfig parseFrom( - 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.WorkloadPolicyConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.WorkloadPolicyConfig parseFrom( - com.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.WorkloadPolicyConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1beta1.WorkloadPolicyConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1beta1.WorkloadPolicyConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.WorkloadPolicyConfig parseFrom( - java.io.InputStream 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.WorkloadPolicyConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.WorkloadPolicyConfig parseDelimitedFrom( - java.io.InputStream 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.WorkloadPolicyConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1beta1.WorkloadPolicyConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.WorkloadPolicyConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * WorkloadPolicyConfig is the configuration of workload policy for autopilot
-   * clusters.
-   * 
- * - * Protobuf type {@code google.container.v1beta1.WorkloadPolicyConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1beta1.WorkloadPolicyConfig) - com.google.container.v1beta1.WorkloadPolicyConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_WorkloadPolicyConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_WorkloadPolicyConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1beta1.WorkloadPolicyConfig.class, - com.google.container.v1beta1.WorkloadPolicyConfig.Builder.class); - } - - // Construct using com.google.container.v1beta1.WorkloadPolicyConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - allowNetAdmin_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1beta1.ClusterServiceProto - .internal_static_google_container_v1beta1_WorkloadPolicyConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1beta1.WorkloadPolicyConfig getDefaultInstanceForType() { - return com.google.container.v1beta1.WorkloadPolicyConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1beta1.WorkloadPolicyConfig build() { - com.google.container.v1beta1.WorkloadPolicyConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1beta1.WorkloadPolicyConfig buildPartial() { - com.google.container.v1beta1.WorkloadPolicyConfig result = - new com.google.container.v1beta1.WorkloadPolicyConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.container.v1beta1.WorkloadPolicyConfig result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.allowNetAdmin_ = allowNetAdmin_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @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.WorkloadPolicyConfig) { - return mergeFrom((com.google.container.v1beta1.WorkloadPolicyConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1beta1.WorkloadPolicyConfig other) { - if (other == com.google.container.v1beta1.WorkloadPolicyConfig.getDefaultInstance()) - return this; - if (other.hasAllowNetAdmin()) { - setAllowNetAdmin(other.getAllowNetAdmin()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - allowNetAdmin_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean allowNetAdmin_; - /** - * - * - *
-     * If true, workloads can use NET_ADMIN capability.
-     * 
- * - * optional bool allow_net_admin = 1; - * - * @return Whether the allowNetAdmin field is set. - */ - @java.lang.Override - public boolean hasAllowNetAdmin() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * If true, workloads can use NET_ADMIN capability.
-     * 
- * - * optional bool allow_net_admin = 1; - * - * @return The allowNetAdmin. - */ - @java.lang.Override - public boolean getAllowNetAdmin() { - return allowNetAdmin_; - } - /** - * - * - *
-     * If true, workloads can use NET_ADMIN capability.
-     * 
- * - * optional bool allow_net_admin = 1; - * - * @param value The allowNetAdmin to set. - * @return This builder for chaining. - */ - public Builder setAllowNetAdmin(boolean value) { - - allowNetAdmin_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * If true, workloads can use NET_ADMIN capability.
-     * 
- * - * optional bool allow_net_admin = 1; - * - * @return This builder for chaining. - */ - public Builder clearAllowNetAdmin() { - bitField0_ = (bitField0_ & ~0x00000001); - allowNetAdmin_ = 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.WorkloadPolicyConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1beta1.WorkloadPolicyConfig) - private static final com.google.container.v1beta1.WorkloadPolicyConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1beta1.WorkloadPolicyConfig(); - } - - public static com.google.container.v1beta1.WorkloadPolicyConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkloadPolicyConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.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.WorkloadPolicyConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadPolicyConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadPolicyConfigOrBuilder.java deleted file mode 100644 index dbdf883977ce..000000000000 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadPolicyConfigOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 - -// Protobuf Java Version: 3.25.2 -package com.google.container.v1beta1; - -public interface WorkloadPolicyConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1beta1.WorkloadPolicyConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * If true, workloads can use NET_ADMIN capability.
-   * 
- * - * optional bool allow_net_admin = 1; - * - * @return Whether the allowNetAdmin field is set. - */ - boolean hasAllowNetAdmin(); - /** - * - * - *
-   * If true, workloads can use NET_ADMIN capability.
-   * 
- * - * optional bool allow_net_admin = 1; - * - * @return The allowNetAdmin. - */ - boolean getAllowNetAdmin(); -} diff --git a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java b/owl-bot-staging/java-container/v1/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java similarity index 100% rename from java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java rename to owl-bot-staging/java-container/v1/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java diff --git a/owl-bot-staging/java-container/v1/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerSettings.java b/owl-bot-staging/java-container/v1/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerSettings.java new file mode 100644 index 000000000000..3f22d6f180d6 --- /dev/null +++ b/owl-bot-staging/java-container/v1/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerSettings.java @@ -0,0 +1,604 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.v1; + +import static com.google.cloud.container.v1.ClusterManagerClient.ListUsableSubnetworksPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +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.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.container.v1.stub.ClusterManagerStubSettings; +import com.google.container.v1.CancelOperationRequest; +import com.google.container.v1.CheckAutopilotCompatibilityRequest; +import com.google.container.v1.CheckAutopilotCompatibilityResponse; +import com.google.container.v1.Cluster; +import com.google.container.v1.CompleteIPRotationRequest; +import com.google.container.v1.CompleteNodePoolUpgradeRequest; +import com.google.container.v1.CreateClusterRequest; +import com.google.container.v1.CreateNodePoolRequest; +import com.google.container.v1.DeleteClusterRequest; +import com.google.container.v1.DeleteNodePoolRequest; +import com.google.container.v1.GetClusterRequest; +import com.google.container.v1.GetJSONWebKeysRequest; +import com.google.container.v1.GetJSONWebKeysResponse; +import com.google.container.v1.GetNodePoolRequest; +import com.google.container.v1.GetOperationRequest; +import com.google.container.v1.GetServerConfigRequest; +import com.google.container.v1.ListClustersRequest; +import com.google.container.v1.ListClustersResponse; +import com.google.container.v1.ListNodePoolsRequest; +import com.google.container.v1.ListNodePoolsResponse; +import com.google.container.v1.ListOperationsRequest; +import com.google.container.v1.ListOperationsResponse; +import com.google.container.v1.ListUsableSubnetworksRequest; +import com.google.container.v1.ListUsableSubnetworksResponse; +import com.google.container.v1.NodePool; +import com.google.container.v1.Operation; +import com.google.container.v1.RollbackNodePoolUpgradeRequest; +import com.google.container.v1.ServerConfig; +import com.google.container.v1.SetAddonsConfigRequest; +import com.google.container.v1.SetLabelsRequest; +import com.google.container.v1.SetLegacyAbacRequest; +import com.google.container.v1.SetLocationsRequest; +import com.google.container.v1.SetLoggingServiceRequest; +import com.google.container.v1.SetMaintenancePolicyRequest; +import com.google.container.v1.SetMasterAuthRequest; +import com.google.container.v1.SetMonitoringServiceRequest; +import com.google.container.v1.SetNetworkPolicyRequest; +import com.google.container.v1.SetNodePoolAutoscalingRequest; +import com.google.container.v1.SetNodePoolManagementRequest; +import com.google.container.v1.SetNodePoolSizeRequest; +import com.google.container.v1.StartIPRotationRequest; +import com.google.container.v1.UpdateClusterRequest; +import com.google.container.v1.UpdateMasterRequest; +import com.google.container.v1.UpdateNodePoolRequest; +import com.google.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
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ClusterManagerSettings.Builder clusterManagerSettingsBuilder =
+ *     ClusterManagerSettings.newBuilder();
+ * clusterManagerSettingsBuilder
+ *     .listClustersSettings()
+ *     .setRetrySettings(
+ *         clusterManagerSettingsBuilder
+ *             .listClustersSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * ClusterManagerSettings clusterManagerSettings = clusterManagerSettingsBuilder.build();
+ * }
+ */ +@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 getJSONWebKeys. */ + public UnaryCallSettings getJSONWebKeysSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).getJSONWebKeysSettings(); + } + + /** Returns the object with the settings used for calls to listNodePools. */ + public UnaryCallSettings listNodePoolsSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).listNodePoolsSettings(); + } + + /** 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 completeNodePoolUpgrade. */ + public UnaryCallSettings + completeNodePoolUpgradeSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).completeNodePoolUpgradeSettings(); + } + + /** 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 checkAutopilotCompatibility. */ + public UnaryCallSettings + checkAutopilotCompatibilitySettings() { + return ((ClusterManagerStubSettings) getStubSettings()).checkAutopilotCompatibilitySettings(); + } + + 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()); + } + + /** + * 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) { + 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 getJSONWebKeys. */ + public UnaryCallSettings.Builder + getJSONWebKeysSettings() { + return getStubSettingsBuilder().getJSONWebKeysSettings(); + } + + /** 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 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 completeNodePoolUpgrade. */ + public UnaryCallSettings.Builder + completeNodePoolUpgradeSettings() { + return getStubSettingsBuilder().completeNodePoolUpgradeSettings(); + } + + /** 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 checkAutopilotCompatibility. */ + public UnaryCallSettings.Builder< + CheckAutopilotCompatibilityRequest, CheckAutopilotCompatibilityResponse> + checkAutopilotCompatibilitySettings() { + return getStubSettingsBuilder().checkAutopilotCompatibilitySettings(); + } + + @Override + public ClusterManagerSettings build() throws IOException { + return new ClusterManagerSettings(this); + } + } +} diff --git a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/gapic_metadata.json b/owl-bot-staging/java-container/v1/google-cloud-container/src/main/java/com/google/cloud/container/v1/gapic_metadata.json similarity index 100% rename from java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/gapic_metadata.json rename to owl-bot-staging/java-container/v1/google-cloud-container/src/main/java/com/google/cloud/container/v1/gapic_metadata.json diff --git a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/package-info.java b/owl-bot-staging/java-container/v1/google-cloud-container/src/main/java/com/google/cloud/container/v1/package-info.java similarity index 100% rename from java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/package-info.java rename to owl-bot-staging/java-container/v1/google-cloud-container/src/main/java/com/google/cloud/container/v1/package-info.java diff --git a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStub.java b/owl-bot-staging/java-container/v1/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStub.java similarity index 100% rename from java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStub.java rename to owl-bot-staging/java-container/v1/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStub.java diff --git a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.java b/owl-bot-staging/java-container/v1/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.java similarity index 100% rename from java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.java rename to owl-bot-staging/java-container/v1/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.java diff --git a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/GrpcClusterManagerCallableFactory.java b/owl-bot-staging/java-container/v1/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/GrpcClusterManagerCallableFactory.java similarity index 100% rename from java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/GrpcClusterManagerCallableFactory.java rename to owl-bot-staging/java-container/v1/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/GrpcClusterManagerCallableFactory.java diff --git a/owl-bot-staging/java-container/v1/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/GrpcClusterManagerStub.java b/owl-bot-staging/java-container/v1/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/GrpcClusterManagerStub.java new file mode 100644 index 000000000000..3fcb926c9cee --- /dev/null +++ b/owl-bot-staging/java-container/v1/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/GrpcClusterManagerStub.java @@ -0,0 +1,1310 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.v1.stub; + +import static com.google.cloud.container.v1.ClusterManagerClient.ListUsableSubnetworksPagedResponse; + +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.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.container.v1.CancelOperationRequest; +import com.google.container.v1.CheckAutopilotCompatibilityRequest; +import com.google.container.v1.CheckAutopilotCompatibilityResponse; +import com.google.container.v1.Cluster; +import com.google.container.v1.CompleteIPRotationRequest; +import com.google.container.v1.CompleteNodePoolUpgradeRequest; +import com.google.container.v1.CreateClusterRequest; +import com.google.container.v1.CreateNodePoolRequest; +import com.google.container.v1.DeleteClusterRequest; +import com.google.container.v1.DeleteNodePoolRequest; +import com.google.container.v1.GetClusterRequest; +import com.google.container.v1.GetJSONWebKeysRequest; +import com.google.container.v1.GetJSONWebKeysResponse; +import com.google.container.v1.GetNodePoolRequest; +import com.google.container.v1.GetOperationRequest; +import com.google.container.v1.GetServerConfigRequest; +import com.google.container.v1.ListClustersRequest; +import com.google.container.v1.ListClustersResponse; +import com.google.container.v1.ListNodePoolsRequest; +import com.google.container.v1.ListNodePoolsResponse; +import com.google.container.v1.ListOperationsRequest; +import com.google.container.v1.ListOperationsResponse; +import com.google.container.v1.ListUsableSubnetworksRequest; +import com.google.container.v1.ListUsableSubnetworksResponse; +import com.google.container.v1.NodePool; +import com.google.container.v1.Operation; +import com.google.container.v1.RollbackNodePoolUpgradeRequest; +import com.google.container.v1.ServerConfig; +import com.google.container.v1.SetAddonsConfigRequest; +import com.google.container.v1.SetLabelsRequest; +import com.google.container.v1.SetLegacyAbacRequest; +import com.google.container.v1.SetLocationsRequest; +import com.google.container.v1.SetLoggingServiceRequest; +import com.google.container.v1.SetMaintenancePolicyRequest; +import com.google.container.v1.SetMasterAuthRequest; +import com.google.container.v1.SetMonitoringServiceRequest; +import com.google.container.v1.SetNetworkPolicyRequest; +import com.google.container.v1.SetNodePoolAutoscalingRequest; +import com.google.container.v1.SetNodePoolManagementRequest; +import com.google.container.v1.SetNodePoolSizeRequest; +import com.google.container.v1.StartIPRotationRequest; +import com.google.container.v1.UpdateClusterRequest; +import com.google.container.v1.UpdateMasterRequest; +import com.google.container.v1.UpdateNodePoolRequest; +import com.google.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. + */ +@Generated("by gapic-generator-java") +public class GrpcClusterManagerStub extends ClusterManagerStub { + private static final MethodDescriptor + listClustersMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.ClusterManager/GetServerConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(GetServerConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ServerConfig.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getJSONWebKeysMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1.ClusterManager/GetJSONWebKeys") + .setRequestMarshaller( + ProtoUtils.marshaller(GetJSONWebKeysRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(GetJSONWebKeysResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listNodePoolsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1.ClusterManager/ListNodePools") + .setRequestMarshaller( + ProtoUtils.marshaller(ListNodePoolsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListNodePoolsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getNodePoolMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1.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.v1.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.v1.ClusterManager/DeleteNodePool") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteNodePoolRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + completeNodePoolUpgradeMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1.ClusterManager/CompleteNodePoolUpgrade") + .setRequestMarshaller( + ProtoUtils.marshaller(CompleteNodePoolUpgradeRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + rollbackNodePoolUpgradeMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.ClusterManager/ListUsableSubnetworks") + .setRequestMarshaller( + ProtoUtils.marshaller(ListUsableSubnetworksRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListUsableSubnetworksResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + CheckAutopilotCompatibilityRequest, CheckAutopilotCompatibilityResponse> + checkAutopilotCompatibilityMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1.ClusterManager/CheckAutopilotCompatibility") + .setRequestMarshaller( + ProtoUtils.marshaller(CheckAutopilotCompatibilityRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(CheckAutopilotCompatibilityResponse.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 getJSONWebKeysCallable; + private final UnaryCallable listNodePoolsCallable; + private final UnaryCallable getNodePoolCallable; + private final UnaryCallable createNodePoolCallable; + private final UnaryCallable deleteNodePoolCallable; + private final UnaryCallable + completeNodePoolUpgradeCallable; + 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< + CheckAutopilotCompatibilityRequest, CheckAutopilotCompatibilityResponse> + checkAutopilotCompatibilityCallable; + + 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( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings getClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getClusterMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings createClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createClusterMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateClusterMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateNodePoolTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateNodePoolMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("node_pool_id", String.valueOf(request.getNodePoolId())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings + setNodePoolAutoscalingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setNodePoolAutoscalingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("node_pool_id", String.valueOf(request.getNodePoolId())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings setLoggingServiceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setLoggingServiceMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings setMonitoringServiceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setMonitoringServiceMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings setAddonsConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setAddonsConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings setLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateMasterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateMasterMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings setMasterAuthTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setMasterAuthMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteClusterMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listOperationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listOperationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings getOperationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getOperationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + builder.add("operation_id", String.valueOf(request.getOperationId())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings cancelOperationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(cancelOperationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + builder.add("operation_id", String.valueOf(request.getOperationId())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings getServerConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getServerConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getJSONWebKeysTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getJSONWebKeysMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings listNodePoolsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listNodePoolsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("parent", String.valueOf(request.getParent())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings getNodePoolTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getNodePoolMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("node_pool_id", String.valueOf(request.getNodePoolId())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings createNodePoolTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createNodePoolMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("parent", String.valueOf(request.getParent())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteNodePoolTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteNodePoolMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("node_pool_id", String.valueOf(request.getNodePoolId())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings + completeNodePoolUpgradeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(completeNodePoolUpgradeMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + rollbackNodePoolUpgradeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(rollbackNodePoolUpgradeMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("node_pool_id", String.valueOf(request.getNodePoolId())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings + setNodePoolManagementTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setNodePoolManagementMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("node_pool_id", String.valueOf(request.getNodePoolId())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings setLabelsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setLabelsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings setLegacyAbacTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setLegacyAbacMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings startIPRotationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(startIPRotationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings completeIPRotationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(completeIPRotationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings setNodePoolSizeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setNodePoolSizeMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("node_pool_id", String.valueOf(request.getNodePoolId())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings setNetworkPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setNetworkPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings setMaintenancePolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setMaintenancePolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listUsableSubnetworksTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listUsableSubnetworksMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + checkAutopilotCompatibilityTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(checkAutopilotCompatibilityMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.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.getJSONWebKeysCallable = + callableFactory.createUnaryCallable( + getJSONWebKeysTransportSettings, settings.getJSONWebKeysSettings(), clientContext); + this.listNodePoolsCallable = + callableFactory.createUnaryCallable( + listNodePoolsTransportSettings, settings.listNodePoolsSettings(), 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.completeNodePoolUpgradeCallable = + callableFactory.createUnaryCallable( + completeNodePoolUpgradeTransportSettings, + settings.completeNodePoolUpgradeSettings(), + 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.checkAutopilotCompatibilityCallable = + callableFactory.createUnaryCallable( + checkAutopilotCompatibilityTransportSettings, + settings.checkAutopilotCompatibilitySettings(), + 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 getJSONWebKeysCallable() { + return getJSONWebKeysCallable; + } + + @Override + public UnaryCallable listNodePoolsCallable() { + return listNodePoolsCallable; + } + + @Override + public UnaryCallable getNodePoolCallable() { + return getNodePoolCallable; + } + + @Override + public UnaryCallable createNodePoolCallable() { + return createNodePoolCallable; + } + + @Override + public UnaryCallable deleteNodePoolCallable() { + return deleteNodePoolCallable; + } + + @Override + public UnaryCallable completeNodePoolUpgradeCallable() { + return completeNodePoolUpgradeCallable; + } + + @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 + checkAutopilotCompatibilityCallable() { + return checkAutopilotCompatibilityCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @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/java-container/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1/reflect-config.json b/owl-bot-staging/java-container/v1/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1/reflect-config.json similarity index 99% rename from java-container/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1/reflect-config.json rename to owl-bot-staging/java-container/v1/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1/reflect-config.json index 13e5cb5ba54d..848a324bd450 100644 --- a/java-container/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1/reflect-config.json +++ b/owl-bot-staging/java-container/v1/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1/reflect-config.json @@ -3617,6 +3617,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.container.v1.StatefulHAConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1.StatefulHAConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.container.v1.StatusCondition", "queryAllDeclaredConstructors": true, diff --git a/java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientTest.java b/owl-bot-staging/java-container/v1/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientTest.java similarity index 100% rename from java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientTest.java rename to owl-bot-staging/java-container/v1/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientTest.java diff --git a/java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1/MockClusterManager.java b/owl-bot-staging/java-container/v1/google-cloud-container/src/test/java/com/google/cloud/container/v1/MockClusterManager.java similarity index 100% rename from java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1/MockClusterManager.java rename to owl-bot-staging/java-container/v1/google-cloud-container/src/test/java/com/google/cloud/container/v1/MockClusterManager.java diff --git a/java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1/MockClusterManagerImpl.java b/owl-bot-staging/java-container/v1/google-cloud-container/src/test/java/com/google/cloud/container/v1/MockClusterManagerImpl.java similarity index 100% rename from java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1/MockClusterManagerImpl.java rename to owl-bot-staging/java-container/v1/google-cloud-container/src/test/java/com/google/cloud/container/v1/MockClusterManagerImpl.java diff --git a/owl-bot-staging/java-container/v1/grpc-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterManagerGrpc.java b/owl-bot-staging/java-container/v1/grpc-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterManagerGrpc.java new file mode 100644 index 000000000000..88ff7afb1d63 --- /dev/null +++ b/owl-bot-staging/java-container/v1/grpc-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterManagerGrpc.java @@ -0,0 +1,3277 @@ +package com.google.container.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * Google Kubernetes Engine Cluster Manager v1
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/container/v1/cluster_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ClusterManagerGrpc { + + private ClusterManagerGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.container.v1.ClusterManager"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListClustersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListClusters", + requestType = com.google.container.v1.ListClustersRequest.class, + responseType = com.google.container.v1.ListClustersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListClustersMethod() { + io.grpc.MethodDescriptor getListClustersMethod; + if ((getListClustersMethod = ClusterManagerGrpc.getListClustersMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getListClustersMethod = ClusterManagerGrpc.getListClustersMethod) == null) { + ClusterManagerGrpc.getListClustersMethod = getListClustersMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListClusters")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.ListClustersRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.ListClustersResponse.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("ListClusters")) + .build(); + } + } + } + return getListClustersMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCluster", + requestType = com.google.container.v1.GetClusterRequest.class, + responseType = com.google.container.v1.Cluster.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetClusterMethod() { + io.grpc.MethodDescriptor getGetClusterMethod; + if ((getGetClusterMethod = ClusterManagerGrpc.getGetClusterMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getGetClusterMethod = ClusterManagerGrpc.getGetClusterMethod) == null) { + ClusterManagerGrpc.getGetClusterMethod = getGetClusterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.GetClusterRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.Cluster.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("GetCluster")) + .build(); + } + } + } + return getGetClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCluster", + requestType = com.google.container.v1.CreateClusterRequest.class, + responseType = com.google.container.v1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateClusterMethod() { + io.grpc.MethodDescriptor getCreateClusterMethod; + if ((getCreateClusterMethod = ClusterManagerGrpc.getCreateClusterMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getCreateClusterMethod = ClusterManagerGrpc.getCreateClusterMethod) == null) { + ClusterManagerGrpc.getCreateClusterMethod = getCreateClusterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.CreateClusterRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("CreateCluster")) + .build(); + } + } + } + return getCreateClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCluster", + requestType = com.google.container.v1.UpdateClusterRequest.class, + responseType = com.google.container.v1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateClusterMethod() { + io.grpc.MethodDescriptor getUpdateClusterMethod; + if ((getUpdateClusterMethod = ClusterManagerGrpc.getUpdateClusterMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getUpdateClusterMethod = ClusterManagerGrpc.getUpdateClusterMethod) == null) { + ClusterManagerGrpc.getUpdateClusterMethod = getUpdateClusterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.UpdateClusterRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("UpdateCluster")) + .build(); + } + } + } + return getUpdateClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateNodePoolMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateNodePool", + requestType = com.google.container.v1.UpdateNodePoolRequest.class, + responseType = com.google.container.v1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateNodePoolMethod() { + io.grpc.MethodDescriptor getUpdateNodePoolMethod; + if ((getUpdateNodePoolMethod = ClusterManagerGrpc.getUpdateNodePoolMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getUpdateNodePoolMethod = ClusterManagerGrpc.getUpdateNodePoolMethod) == null) { + ClusterManagerGrpc.getUpdateNodePoolMethod = getUpdateNodePoolMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateNodePool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.UpdateNodePoolRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("UpdateNodePool")) + .build(); + } + } + } + return getUpdateNodePoolMethod; + } + + private static volatile io.grpc.MethodDescriptor getSetNodePoolAutoscalingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetNodePoolAutoscaling", + requestType = com.google.container.v1.SetNodePoolAutoscalingRequest.class, + responseType = com.google.container.v1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSetNodePoolAutoscalingMethod() { + io.grpc.MethodDescriptor getSetNodePoolAutoscalingMethod; + if ((getSetNodePoolAutoscalingMethod = ClusterManagerGrpc.getSetNodePoolAutoscalingMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetNodePoolAutoscalingMethod = ClusterManagerGrpc.getSetNodePoolAutoscalingMethod) == null) { + ClusterManagerGrpc.getSetNodePoolAutoscalingMethod = getSetNodePoolAutoscalingMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetNodePoolAutoscaling")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.SetNodePoolAutoscalingRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("SetNodePoolAutoscaling")) + .build(); + } + } + } + return getSetNodePoolAutoscalingMethod; + } + + private static volatile io.grpc.MethodDescriptor getSetLoggingServiceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetLoggingService", + requestType = com.google.container.v1.SetLoggingServiceRequest.class, + responseType = com.google.container.v1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSetLoggingServiceMethod() { + io.grpc.MethodDescriptor getSetLoggingServiceMethod; + if ((getSetLoggingServiceMethod = ClusterManagerGrpc.getSetLoggingServiceMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetLoggingServiceMethod = ClusterManagerGrpc.getSetLoggingServiceMethod) == null) { + ClusterManagerGrpc.getSetLoggingServiceMethod = getSetLoggingServiceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetLoggingService")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.SetLoggingServiceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("SetLoggingService")) + .build(); + } + } + } + return getSetLoggingServiceMethod; + } + + private static volatile io.grpc.MethodDescriptor getSetMonitoringServiceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetMonitoringService", + requestType = com.google.container.v1.SetMonitoringServiceRequest.class, + responseType = com.google.container.v1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSetMonitoringServiceMethod() { + io.grpc.MethodDescriptor getSetMonitoringServiceMethod; + if ((getSetMonitoringServiceMethod = ClusterManagerGrpc.getSetMonitoringServiceMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetMonitoringServiceMethod = ClusterManagerGrpc.getSetMonitoringServiceMethod) == null) { + ClusterManagerGrpc.getSetMonitoringServiceMethod = getSetMonitoringServiceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetMonitoringService")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.SetMonitoringServiceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("SetMonitoringService")) + .build(); + } + } + } + return getSetMonitoringServiceMethod; + } + + private static volatile io.grpc.MethodDescriptor getSetAddonsConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetAddonsConfig", + requestType = com.google.container.v1.SetAddonsConfigRequest.class, + responseType = com.google.container.v1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSetAddonsConfigMethod() { + io.grpc.MethodDescriptor getSetAddonsConfigMethod; + if ((getSetAddonsConfigMethod = ClusterManagerGrpc.getSetAddonsConfigMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetAddonsConfigMethod = ClusterManagerGrpc.getSetAddonsConfigMethod) == null) { + ClusterManagerGrpc.getSetAddonsConfigMethod = getSetAddonsConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetAddonsConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.SetAddonsConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("SetAddonsConfig")) + .build(); + } + } + } + return getSetAddonsConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getSetLocationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetLocations", + requestType = com.google.container.v1.SetLocationsRequest.class, + responseType = com.google.container.v1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSetLocationsMethod() { + io.grpc.MethodDescriptor getSetLocationsMethod; + if ((getSetLocationsMethod = ClusterManagerGrpc.getSetLocationsMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetLocationsMethod = ClusterManagerGrpc.getSetLocationsMethod) == null) { + ClusterManagerGrpc.getSetLocationsMethod = getSetLocationsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetLocations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.SetLocationsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("SetLocations")) + .build(); + } + } + } + return getSetLocationsMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateMasterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateMaster", + requestType = com.google.container.v1.UpdateMasterRequest.class, + responseType = com.google.container.v1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateMasterMethod() { + io.grpc.MethodDescriptor getUpdateMasterMethod; + if ((getUpdateMasterMethod = ClusterManagerGrpc.getUpdateMasterMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getUpdateMasterMethod = ClusterManagerGrpc.getUpdateMasterMethod) == null) { + ClusterManagerGrpc.getUpdateMasterMethod = getUpdateMasterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateMaster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.UpdateMasterRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("UpdateMaster")) + .build(); + } + } + } + return getUpdateMasterMethod; + } + + private static volatile io.grpc.MethodDescriptor getSetMasterAuthMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetMasterAuth", + requestType = com.google.container.v1.SetMasterAuthRequest.class, + responseType = com.google.container.v1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSetMasterAuthMethod() { + io.grpc.MethodDescriptor getSetMasterAuthMethod; + if ((getSetMasterAuthMethod = ClusterManagerGrpc.getSetMasterAuthMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetMasterAuthMethod = ClusterManagerGrpc.getSetMasterAuthMethod) == null) { + ClusterManagerGrpc.getSetMasterAuthMethod = getSetMasterAuthMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetMasterAuth")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.SetMasterAuthRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("SetMasterAuth")) + .build(); + } + } + } + return getSetMasterAuthMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCluster", + requestType = com.google.container.v1.DeleteClusterRequest.class, + responseType = com.google.container.v1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteClusterMethod() { + io.grpc.MethodDescriptor getDeleteClusterMethod; + if ((getDeleteClusterMethod = ClusterManagerGrpc.getDeleteClusterMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getDeleteClusterMethod = ClusterManagerGrpc.getDeleteClusterMethod) == null) { + ClusterManagerGrpc.getDeleteClusterMethod = getDeleteClusterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.DeleteClusterRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("DeleteCluster")) + .build(); + } + } + } + return getDeleteClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor getListOperationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListOperations", + requestType = com.google.container.v1.ListOperationsRequest.class, + responseType = com.google.container.v1.ListOperationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListOperationsMethod() { + io.grpc.MethodDescriptor getListOperationsMethod; + if ((getListOperationsMethod = ClusterManagerGrpc.getListOperationsMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getListOperationsMethod = ClusterManagerGrpc.getListOperationsMethod) == null) { + ClusterManagerGrpc.getListOperationsMethod = getListOperationsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListOperations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.ListOperationsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.ListOperationsResponse.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("ListOperations")) + .build(); + } + } + } + return getListOperationsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetOperationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetOperation", + requestType = com.google.container.v1.GetOperationRequest.class, + responseType = com.google.container.v1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetOperationMethod() { + io.grpc.MethodDescriptor getGetOperationMethod; + if ((getGetOperationMethod = ClusterManagerGrpc.getGetOperationMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getGetOperationMethod = ClusterManagerGrpc.getGetOperationMethod) == null) { + ClusterManagerGrpc.getGetOperationMethod = getGetOperationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOperation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.GetOperationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("GetOperation")) + .build(); + } + } + } + return getGetOperationMethod; + } + + private static volatile io.grpc.MethodDescriptor getCancelOperationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CancelOperation", + requestType = com.google.container.v1.CancelOperationRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCancelOperationMethod() { + io.grpc.MethodDescriptor getCancelOperationMethod; + if ((getCancelOperationMethod = ClusterManagerGrpc.getCancelOperationMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getCancelOperationMethod = ClusterManagerGrpc.getCancelOperationMethod) == null) { + ClusterManagerGrpc.getCancelOperationMethod = getCancelOperationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CancelOperation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.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 getGetServerConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetServerConfig", + requestType = com.google.container.v1.GetServerConfigRequest.class, + responseType = com.google.container.v1.ServerConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetServerConfigMethod() { + io.grpc.MethodDescriptor getGetServerConfigMethod; + if ((getGetServerConfigMethod = ClusterManagerGrpc.getGetServerConfigMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getGetServerConfigMethod = ClusterManagerGrpc.getGetServerConfigMethod) == null) { + ClusterManagerGrpc.getGetServerConfigMethod = getGetServerConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetServerConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.GetServerConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.ServerConfig.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("GetServerConfig")) + .build(); + } + } + } + return getGetServerConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetJSONWebKeysMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetJSONWebKeys", + requestType = com.google.container.v1.GetJSONWebKeysRequest.class, + responseType = com.google.container.v1.GetJSONWebKeysResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetJSONWebKeysMethod() { + io.grpc.MethodDescriptor getGetJSONWebKeysMethod; + if ((getGetJSONWebKeysMethod = ClusterManagerGrpc.getGetJSONWebKeysMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getGetJSONWebKeysMethod = ClusterManagerGrpc.getGetJSONWebKeysMethod) == null) { + ClusterManagerGrpc.getGetJSONWebKeysMethod = getGetJSONWebKeysMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetJSONWebKeys")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.GetJSONWebKeysRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.GetJSONWebKeysResponse.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("GetJSONWebKeys")) + .build(); + } + } + } + return getGetJSONWebKeysMethod; + } + + private static volatile io.grpc.MethodDescriptor getListNodePoolsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNodePools", + requestType = com.google.container.v1.ListNodePoolsRequest.class, + responseType = com.google.container.v1.ListNodePoolsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListNodePoolsMethod() { + io.grpc.MethodDescriptor getListNodePoolsMethod; + if ((getListNodePoolsMethod = ClusterManagerGrpc.getListNodePoolsMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getListNodePoolsMethod = ClusterManagerGrpc.getListNodePoolsMethod) == null) { + ClusterManagerGrpc.getListNodePoolsMethod = getListNodePoolsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNodePools")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.ListNodePoolsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.ListNodePoolsResponse.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("ListNodePools")) + .build(); + } + } + } + return getListNodePoolsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetNodePoolMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetNodePool", + requestType = com.google.container.v1.GetNodePoolRequest.class, + responseType = com.google.container.v1.NodePool.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetNodePoolMethod() { + io.grpc.MethodDescriptor getGetNodePoolMethod; + if ((getGetNodePoolMethod = ClusterManagerGrpc.getGetNodePoolMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getGetNodePoolMethod = ClusterManagerGrpc.getGetNodePoolMethod) == null) { + ClusterManagerGrpc.getGetNodePoolMethod = getGetNodePoolMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNodePool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.GetNodePoolRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.NodePool.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("GetNodePool")) + .build(); + } + } + } + return getGetNodePoolMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateNodePoolMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateNodePool", + requestType = com.google.container.v1.CreateNodePoolRequest.class, + responseType = com.google.container.v1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateNodePoolMethod() { + io.grpc.MethodDescriptor getCreateNodePoolMethod; + if ((getCreateNodePoolMethod = ClusterManagerGrpc.getCreateNodePoolMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getCreateNodePoolMethod = ClusterManagerGrpc.getCreateNodePoolMethod) == null) { + ClusterManagerGrpc.getCreateNodePoolMethod = getCreateNodePoolMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateNodePool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.CreateNodePoolRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("CreateNodePool")) + .build(); + } + } + } + return getCreateNodePoolMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteNodePoolMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteNodePool", + requestType = com.google.container.v1.DeleteNodePoolRequest.class, + responseType = com.google.container.v1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteNodePoolMethod() { + io.grpc.MethodDescriptor getDeleteNodePoolMethod; + if ((getDeleteNodePoolMethod = ClusterManagerGrpc.getDeleteNodePoolMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getDeleteNodePoolMethod = ClusterManagerGrpc.getDeleteNodePoolMethod) == null) { + ClusterManagerGrpc.getDeleteNodePoolMethod = getDeleteNodePoolMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteNodePool")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.DeleteNodePoolRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("DeleteNodePool")) + .build(); + } + } + } + return getDeleteNodePoolMethod; + } + + private static volatile io.grpc.MethodDescriptor getCompleteNodePoolUpgradeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CompleteNodePoolUpgrade", + requestType = com.google.container.v1.CompleteNodePoolUpgradeRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCompleteNodePoolUpgradeMethod() { + io.grpc.MethodDescriptor getCompleteNodePoolUpgradeMethod; + if ((getCompleteNodePoolUpgradeMethod = ClusterManagerGrpc.getCompleteNodePoolUpgradeMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getCompleteNodePoolUpgradeMethod = ClusterManagerGrpc.getCompleteNodePoolUpgradeMethod) == null) { + ClusterManagerGrpc.getCompleteNodePoolUpgradeMethod = getCompleteNodePoolUpgradeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CompleteNodePoolUpgrade")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.CompleteNodePoolUpgradeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("CompleteNodePoolUpgrade")) + .build(); + } + } + } + return getCompleteNodePoolUpgradeMethod; + } + + private static volatile io.grpc.MethodDescriptor getRollbackNodePoolUpgradeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RollbackNodePoolUpgrade", + requestType = com.google.container.v1.RollbackNodePoolUpgradeRequest.class, + responseType = com.google.container.v1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRollbackNodePoolUpgradeMethod() { + io.grpc.MethodDescriptor getRollbackNodePoolUpgradeMethod; + if ((getRollbackNodePoolUpgradeMethod = ClusterManagerGrpc.getRollbackNodePoolUpgradeMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getRollbackNodePoolUpgradeMethod = ClusterManagerGrpc.getRollbackNodePoolUpgradeMethod) == null) { + ClusterManagerGrpc.getRollbackNodePoolUpgradeMethod = getRollbackNodePoolUpgradeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RollbackNodePoolUpgrade")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.RollbackNodePoolUpgradeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("RollbackNodePoolUpgrade")) + .build(); + } + } + } + return getRollbackNodePoolUpgradeMethod; + } + + private static volatile io.grpc.MethodDescriptor getSetNodePoolManagementMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetNodePoolManagement", + requestType = com.google.container.v1.SetNodePoolManagementRequest.class, + responseType = com.google.container.v1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSetNodePoolManagementMethod() { + io.grpc.MethodDescriptor getSetNodePoolManagementMethod; + if ((getSetNodePoolManagementMethod = ClusterManagerGrpc.getSetNodePoolManagementMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetNodePoolManagementMethod = ClusterManagerGrpc.getSetNodePoolManagementMethod) == null) { + ClusterManagerGrpc.getSetNodePoolManagementMethod = getSetNodePoolManagementMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetNodePoolManagement")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.SetNodePoolManagementRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("SetNodePoolManagement")) + .build(); + } + } + } + return getSetNodePoolManagementMethod; + } + + private static volatile io.grpc.MethodDescriptor getSetLabelsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetLabels", + requestType = com.google.container.v1.SetLabelsRequest.class, + responseType = com.google.container.v1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSetLabelsMethod() { + io.grpc.MethodDescriptor getSetLabelsMethod; + if ((getSetLabelsMethod = ClusterManagerGrpc.getSetLabelsMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetLabelsMethod = ClusterManagerGrpc.getSetLabelsMethod) == null) { + ClusterManagerGrpc.getSetLabelsMethod = getSetLabelsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetLabels")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.SetLabelsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("SetLabels")) + .build(); + } + } + } + return getSetLabelsMethod; + } + + private static volatile io.grpc.MethodDescriptor getSetLegacyAbacMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetLegacyAbac", + requestType = com.google.container.v1.SetLegacyAbacRequest.class, + responseType = com.google.container.v1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSetLegacyAbacMethod() { + io.grpc.MethodDescriptor getSetLegacyAbacMethod; + if ((getSetLegacyAbacMethod = ClusterManagerGrpc.getSetLegacyAbacMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetLegacyAbacMethod = ClusterManagerGrpc.getSetLegacyAbacMethod) == null) { + ClusterManagerGrpc.getSetLegacyAbacMethod = getSetLegacyAbacMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetLegacyAbac")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.SetLegacyAbacRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("SetLegacyAbac")) + .build(); + } + } + } + return getSetLegacyAbacMethod; + } + + private static volatile io.grpc.MethodDescriptor getStartIPRotationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartIPRotation", + requestType = com.google.container.v1.StartIPRotationRequest.class, + responseType = com.google.container.v1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getStartIPRotationMethod() { + io.grpc.MethodDescriptor getStartIPRotationMethod; + if ((getStartIPRotationMethod = ClusterManagerGrpc.getStartIPRotationMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getStartIPRotationMethod = ClusterManagerGrpc.getStartIPRotationMethod) == null) { + ClusterManagerGrpc.getStartIPRotationMethod = getStartIPRotationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartIPRotation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.StartIPRotationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("StartIPRotation")) + .build(); + } + } + } + return getStartIPRotationMethod; + } + + private static volatile io.grpc.MethodDescriptor getCompleteIPRotationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CompleteIPRotation", + requestType = com.google.container.v1.CompleteIPRotationRequest.class, + responseType = com.google.container.v1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCompleteIPRotationMethod() { + io.grpc.MethodDescriptor getCompleteIPRotationMethod; + if ((getCompleteIPRotationMethod = ClusterManagerGrpc.getCompleteIPRotationMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getCompleteIPRotationMethod = ClusterManagerGrpc.getCompleteIPRotationMethod) == null) { + ClusterManagerGrpc.getCompleteIPRotationMethod = getCompleteIPRotationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CompleteIPRotation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.CompleteIPRotationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("CompleteIPRotation")) + .build(); + } + } + } + return getCompleteIPRotationMethod; + } + + private static volatile io.grpc.MethodDescriptor getSetNodePoolSizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetNodePoolSize", + requestType = com.google.container.v1.SetNodePoolSizeRequest.class, + responseType = com.google.container.v1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSetNodePoolSizeMethod() { + io.grpc.MethodDescriptor getSetNodePoolSizeMethod; + if ((getSetNodePoolSizeMethod = ClusterManagerGrpc.getSetNodePoolSizeMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetNodePoolSizeMethod = ClusterManagerGrpc.getSetNodePoolSizeMethod) == null) { + ClusterManagerGrpc.getSetNodePoolSizeMethod = getSetNodePoolSizeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetNodePoolSize")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.SetNodePoolSizeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("SetNodePoolSize")) + .build(); + } + } + } + return getSetNodePoolSizeMethod; + } + + private static volatile io.grpc.MethodDescriptor getSetNetworkPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetNetworkPolicy", + requestType = com.google.container.v1.SetNetworkPolicyRequest.class, + responseType = com.google.container.v1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSetNetworkPolicyMethod() { + io.grpc.MethodDescriptor getSetNetworkPolicyMethod; + if ((getSetNetworkPolicyMethod = ClusterManagerGrpc.getSetNetworkPolicyMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetNetworkPolicyMethod = ClusterManagerGrpc.getSetNetworkPolicyMethod) == null) { + ClusterManagerGrpc.getSetNetworkPolicyMethod = getSetNetworkPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetNetworkPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.SetNetworkPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("SetNetworkPolicy")) + .build(); + } + } + } + return getSetNetworkPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getSetMaintenancePolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetMaintenancePolicy", + requestType = com.google.container.v1.SetMaintenancePolicyRequest.class, + responseType = com.google.container.v1.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSetMaintenancePolicyMethod() { + io.grpc.MethodDescriptor getSetMaintenancePolicyMethod; + if ((getSetMaintenancePolicyMethod = ClusterManagerGrpc.getSetMaintenancePolicyMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetMaintenancePolicyMethod = ClusterManagerGrpc.getSetMaintenancePolicyMethod) == null) { + ClusterManagerGrpc.getSetMaintenancePolicyMethod = getSetMaintenancePolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetMaintenancePolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.SetMaintenancePolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("SetMaintenancePolicy")) + .build(); + } + } + } + return getSetMaintenancePolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getListUsableSubnetworksMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListUsableSubnetworks", + requestType = com.google.container.v1.ListUsableSubnetworksRequest.class, + responseType = com.google.container.v1.ListUsableSubnetworksResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListUsableSubnetworksMethod() { + io.grpc.MethodDescriptor getListUsableSubnetworksMethod; + if ((getListUsableSubnetworksMethod = ClusterManagerGrpc.getListUsableSubnetworksMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getListUsableSubnetworksMethod = ClusterManagerGrpc.getListUsableSubnetworksMethod) == null) { + ClusterManagerGrpc.getListUsableSubnetworksMethod = getListUsableSubnetworksMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListUsableSubnetworks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.ListUsableSubnetworksRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.ListUsableSubnetworksResponse.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("ListUsableSubnetworks")) + .build(); + } + } + } + return getListUsableSubnetworksMethod; + } + + private static volatile io.grpc.MethodDescriptor getCheckAutopilotCompatibilityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CheckAutopilotCompatibility", + requestType = com.google.container.v1.CheckAutopilotCompatibilityRequest.class, + responseType = com.google.container.v1.CheckAutopilotCompatibilityResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCheckAutopilotCompatibilityMethod() { + io.grpc.MethodDescriptor getCheckAutopilotCompatibilityMethod; + if ((getCheckAutopilotCompatibilityMethod = ClusterManagerGrpc.getCheckAutopilotCompatibilityMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getCheckAutopilotCompatibilityMethod = ClusterManagerGrpc.getCheckAutopilotCompatibilityMethod) == null) { + ClusterManagerGrpc.getCheckAutopilotCompatibilityMethod = getCheckAutopilotCompatibilityMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CheckAutopilotCompatibility")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.CheckAutopilotCompatibilityRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1.CheckAutopilotCompatibilityResponse.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("CheckAutopilotCompatibility")) + .build(); + } + } + } + return getCheckAutopilotCompatibilityMethod; + } + + /** + * 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 v1
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Lists all clusters owned by a project in either the specified zone or all
+     * zones.
+     * 
+ */ + default void listClusters(com.google.container.v1.ListClustersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListClustersMethod(), responseObserver); + } + + /** + *
+     * Gets the details of a specific cluster.
+     * 
+ */ + default void getCluster(com.google.container.v1.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.
+     * 
+ */ + default void createCluster(com.google.container.v1.CreateClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateClusterMethod(), responseObserver); + } + + /** + *
+     * Updates the settings of a specific cluster.
+     * 
+ */ + default void updateCluster(com.google.container.v1.UpdateClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateClusterMethod(), responseObserver); + } + + /** + *
+     * Updates the version and/or image type for the specified node pool.
+     * 
+ */ + default void updateNodePool(com.google.container.v1.UpdateNodePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateNodePoolMethod(), responseObserver); + } + + /** + *
+     * Sets the autoscaling settings for the specified node pool.
+     * 
+ */ + default void setNodePoolAutoscaling(com.google.container.v1.SetNodePoolAutoscalingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetNodePoolAutoscalingMethod(), responseObserver); + } + + /** + *
+     * Sets the logging service for a specific cluster.
+     * 
+ */ + default void setLoggingService(com.google.container.v1.SetLoggingServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetLoggingServiceMethod(), responseObserver); + } + + /** + *
+     * Sets the monitoring service for a specific cluster.
+     * 
+ */ + default void setMonitoringService(com.google.container.v1.SetMonitoringServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetMonitoringServiceMethod(), responseObserver); + } + + /** + *
+     * Sets the addons for a specific cluster.
+     * 
+ */ + default void setAddonsConfig(com.google.container.v1.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/v1/projects.locations.clusters/update)
+     * instead.
+     * 
+ */ + @java.lang.Deprecated + default void setLocations(com.google.container.v1.SetLocationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetLocationsMethod(), responseObserver); + } + + /** + *
+     * Updates the master for a specific cluster.
+     * 
+ */ + default void updateMaster(com.google.container.v1.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.
+     * 
+ */ + default void setMasterAuth(com.google.container.v1.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.
+     * 
+ */ + default void deleteCluster(com.google.container.v1.DeleteClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteClusterMethod(), responseObserver); + } + + /** + *
+     * Lists all operations in a project in a specific zone or all zones.
+     * 
+ */ + default void listOperations(com.google.container.v1.ListOperationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListOperationsMethod(), responseObserver); + } + + /** + *
+     * Gets the specified operation.
+     * 
+ */ + default void getOperation(com.google.container.v1.GetOperationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetOperationMethod(), responseObserver); + } + + /** + *
+     * Cancels the specified operation.
+     * 
+ */ + default void cancelOperation(com.google.container.v1.CancelOperationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCancelOperationMethod(), responseObserver); + } + + /** + *
+     * Returns configuration info about the Google Kubernetes Engine service.
+     * 
+ */ + default void getServerConfig(com.google.container.v1.GetServerConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetServerConfigMethod(), responseObserver); + } + + /** + *
+     * Gets the public component of the cluster signing keys in
+     * JSON Web Key format.
+     * 
+ */ + default void getJSONWebKeys(com.google.container.v1.GetJSONWebKeysRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetJSONWebKeysMethod(), responseObserver); + } + + /** + *
+     * Lists the node pools for a cluster.
+     * 
+ */ + default void listNodePools(com.google.container.v1.ListNodePoolsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNodePoolsMethod(), responseObserver); + } + + /** + *
+     * Retrieves the requested node pool.
+     * 
+ */ + default void getNodePool(com.google.container.v1.GetNodePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNodePoolMethod(), responseObserver); + } + + /** + *
+     * Creates a node pool for a cluster.
+     * 
+ */ + default void createNodePool(com.google.container.v1.CreateNodePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateNodePoolMethod(), responseObserver); + } + + /** + *
+     * Deletes a node pool from a cluster.
+     * 
+ */ + default void deleteNodePool(com.google.container.v1.DeleteNodePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteNodePoolMethod(), responseObserver); + } + + /** + *
+     * CompleteNodePoolUpgrade will signal an on-going node pool upgrade to
+     * complete.
+     * 
+ */ + default void completeNodePoolUpgrade(com.google.container.v1.CompleteNodePoolUpgradeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCompleteNodePoolUpgradeMethod(), responseObserver); + } + + /** + *
+     * Rolls back a previously Aborted or Failed NodePool upgrade.
+     * This makes no changes if the last upgrade successfully completed.
+     * 
+ */ + default void rollbackNodePoolUpgrade(com.google.container.v1.RollbackNodePoolUpgradeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRollbackNodePoolUpgradeMethod(), responseObserver); + } + + /** + *
+     * Sets the NodeManagement options for a node pool.
+     * 
+ */ + default void setNodePoolManagement(com.google.container.v1.SetNodePoolManagementRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetNodePoolManagementMethod(), responseObserver); + } + + /** + *
+     * Sets labels on a cluster.
+     * 
+ */ + default void setLabels(com.google.container.v1.SetLabelsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetLabelsMethod(), responseObserver); + } + + /** + *
+     * Enables or disables the ABAC authorization mechanism on a cluster.
+     * 
+ */ + default void setLegacyAbac(com.google.container.v1.SetLegacyAbacRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetLegacyAbacMethod(), responseObserver); + } + + /** + *
+     * Starts master IP rotation.
+     * 
+ */ + default void startIPRotation(com.google.container.v1.StartIPRotationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartIPRotationMethod(), responseObserver); + } + + /** + *
+     * Completes master IP rotation.
+     * 
+ */ + default void completeIPRotation(com.google.container.v1.CompleteIPRotationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCompleteIPRotationMethod(), responseObserver); + } + + /** + *
+     * Sets the size for a specific node pool. The new size will be used for all
+     * replicas, including future replicas created by modifying
+     * [NodePool.locations][google.container.v1.NodePool.locations].
+     * 
+ */ + default void setNodePoolSize(com.google.container.v1.SetNodePoolSizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetNodePoolSizeMethod(), responseObserver); + } + + /** + *
+     * Enables or disables Network Policy for a cluster.
+     * 
+ */ + default void setNetworkPolicy(com.google.container.v1.SetNetworkPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetNetworkPolicyMethod(), responseObserver); + } + + /** + *
+     * Sets the maintenance policy for a cluster.
+     * 
+ */ + default void setMaintenancePolicy(com.google.container.v1.SetMaintenancePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetMaintenancePolicyMethod(), responseObserver); + } + + /** + *
+     * Lists subnetworks that are usable for creating clusters in a project.
+     * 
+ */ + default void listUsableSubnetworks(com.google.container.v1.ListUsableSubnetworksRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListUsableSubnetworksMethod(), responseObserver); + } + + /** + *
+     * Checks the cluster compatibility with Autopilot mode, and returns a list of
+     * compatibility issues.
+     * 
+ */ + default void checkAutopilotCompatibility(com.google.container.v1.CheckAutopilotCompatibilityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCheckAutopilotCompatibilityMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service ClusterManager. + *
+   * Google Kubernetes Engine Cluster Manager v1
+   * 
+ */ + public static abstract class ClusterManagerImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return ClusterManagerGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service ClusterManager. + *
+   * Google Kubernetes Engine Cluster Manager v1
+   * 
+ */ + 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.v1.ListClustersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListClustersMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the details of a specific cluster.
+     * 
+ */ + public void getCluster(com.google.container.v1.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.v1.CreateClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateClusterMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the settings of a specific cluster.
+     * 
+ */ + public void updateCluster(com.google.container.v1.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 for the specified node pool.
+     * 
+ */ + public void updateNodePool(com.google.container.v1.UpdateNodePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateNodePoolMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Sets the autoscaling settings for the specified node pool.
+     * 
+ */ + public void setNodePoolAutoscaling(com.google.container.v1.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.v1.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.v1.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.v1.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/v1/projects.locations.clusters/update)
+     * instead.
+     * 
+ */ + @java.lang.Deprecated + public void setLocations(com.google.container.v1.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.v1.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.v1.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.v1.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 a specific zone or all zones.
+     * 
+ */ + public void listOperations(com.google.container.v1.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.v1.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.v1.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.v1.GetServerConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetServerConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the public component of the cluster signing keys in
+     * JSON Web Key format.
+     * 
+ */ + public void getJSONWebKeys(com.google.container.v1.GetJSONWebKeysRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetJSONWebKeysMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists the node pools for a cluster.
+     * 
+ */ + public void listNodePools(com.google.container.v1.ListNodePoolsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNodePoolsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Retrieves the requested node pool.
+     * 
+ */ + public void getNodePool(com.google.container.v1.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.v1.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.v1.DeleteNodePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteNodePoolMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * CompleteNodePoolUpgrade will signal an on-going node pool upgrade to
+     * complete.
+     * 
+ */ + public void completeNodePoolUpgrade(com.google.container.v1.CompleteNodePoolUpgradeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCompleteNodePoolUpgradeMethod(), 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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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. The new size will be used for all
+     * replicas, including future replicas created by modifying
+     * [NodePool.locations][google.container.v1.NodePool.locations].
+     * 
+ */ + public void setNodePoolSize(com.google.container.v1.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.v1.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.v1.SetMaintenancePolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetMaintenancePolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists subnetworks that are usable for creating clusters in a project.
+     * 
+ */ + public void listUsableSubnetworks(com.google.container.v1.ListUsableSubnetworksRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListUsableSubnetworksMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Checks the cluster compatibility with Autopilot mode, and returns a list of
+     * compatibility issues.
+     * 
+ */ + public void checkAutopilotCompatibility(com.google.container.v1.CheckAutopilotCompatibilityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCheckAutopilotCompatibilityMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service ClusterManager. + *
+   * Google Kubernetes Engine Cluster Manager v1
+   * 
+ */ + 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.v1.ListClustersResponse listClusters(com.google.container.v1.ListClustersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListClustersMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets the details of a specific cluster.
+     * 
+ */ + public com.google.container.v1.Cluster getCluster(com.google.container.v1.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.v1.Operation createCluster(com.google.container.v1.CreateClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateClusterMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the settings of a specific cluster.
+     * 
+ */ + public com.google.container.v1.Operation updateCluster(com.google.container.v1.UpdateClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateClusterMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the version and/or image type for the specified node pool.
+     * 
+ */ + public com.google.container.v1.Operation updateNodePool(com.google.container.v1.UpdateNodePoolRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateNodePoolMethod(), getCallOptions(), request); + } + + /** + *
+     * Sets the autoscaling settings for the specified node pool.
+     * 
+ */ + public com.google.container.v1.Operation setNodePoolAutoscaling(com.google.container.v1.SetNodePoolAutoscalingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetNodePoolAutoscalingMethod(), getCallOptions(), request); + } + + /** + *
+     * Sets the logging service for a specific cluster.
+     * 
+ */ + public com.google.container.v1.Operation setLoggingService(com.google.container.v1.SetLoggingServiceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetLoggingServiceMethod(), getCallOptions(), request); + } + + /** + *
+     * Sets the monitoring service for a specific cluster.
+     * 
+ */ + public com.google.container.v1.Operation setMonitoringService(com.google.container.v1.SetMonitoringServiceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetMonitoringServiceMethod(), getCallOptions(), request); + } + + /** + *
+     * Sets the addons for a specific cluster.
+     * 
+ */ + public com.google.container.v1.Operation setAddonsConfig(com.google.container.v1.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/v1/projects.locations.clusters/update)
+     * instead.
+     * 
+ */ + @java.lang.Deprecated + public com.google.container.v1.Operation setLocations(com.google.container.v1.SetLocationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetLocationsMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the master for a specific cluster.
+     * 
+ */ + public com.google.container.v1.Operation updateMaster(com.google.container.v1.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.v1.Operation setMasterAuth(com.google.container.v1.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.v1.Operation deleteCluster(com.google.container.v1.DeleteClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteClusterMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists all operations in a project in a specific zone or all zones.
+     * 
+ */ + public com.google.container.v1.ListOperationsResponse listOperations(com.google.container.v1.ListOperationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListOperationsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets the specified operation.
+     * 
+ */ + public com.google.container.v1.Operation getOperation(com.google.container.v1.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.v1.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.v1.ServerConfig getServerConfig(com.google.container.v1.GetServerConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetServerConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets the public component of the cluster signing keys in
+     * JSON Web Key format.
+     * 
+ */ + public com.google.container.v1.GetJSONWebKeysResponse getJSONWebKeys(com.google.container.v1.GetJSONWebKeysRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetJSONWebKeysMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists the node pools for a cluster.
+     * 
+ */ + public com.google.container.v1.ListNodePoolsResponse listNodePools(com.google.container.v1.ListNodePoolsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNodePoolsMethod(), getCallOptions(), request); + } + + /** + *
+     * Retrieves the requested node pool.
+     * 
+ */ + public com.google.container.v1.NodePool getNodePool(com.google.container.v1.GetNodePoolRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNodePoolMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a node pool for a cluster.
+     * 
+ */ + public com.google.container.v1.Operation createNodePool(com.google.container.v1.CreateNodePoolRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateNodePoolMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a node pool from a cluster.
+     * 
+ */ + public com.google.container.v1.Operation deleteNodePool(com.google.container.v1.DeleteNodePoolRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteNodePoolMethod(), getCallOptions(), request); + } + + /** + *
+     * CompleteNodePoolUpgrade will signal an on-going node pool upgrade to
+     * complete.
+     * 
+ */ + public com.google.protobuf.Empty completeNodePoolUpgrade(com.google.container.v1.CompleteNodePoolUpgradeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCompleteNodePoolUpgradeMethod(), 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.v1.Operation rollbackNodePoolUpgrade(com.google.container.v1.RollbackNodePoolUpgradeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRollbackNodePoolUpgradeMethod(), getCallOptions(), request); + } + + /** + *
+     * Sets the NodeManagement options for a node pool.
+     * 
+ */ + public com.google.container.v1.Operation setNodePoolManagement(com.google.container.v1.SetNodePoolManagementRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetNodePoolManagementMethod(), getCallOptions(), request); + } + + /** + *
+     * Sets labels on a cluster.
+     * 
+ */ + public com.google.container.v1.Operation setLabels(com.google.container.v1.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.v1.Operation setLegacyAbac(com.google.container.v1.SetLegacyAbacRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetLegacyAbacMethod(), getCallOptions(), request); + } + + /** + *
+     * Starts master IP rotation.
+     * 
+ */ + public com.google.container.v1.Operation startIPRotation(com.google.container.v1.StartIPRotationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartIPRotationMethod(), getCallOptions(), request); + } + + /** + *
+     * Completes master IP rotation.
+     * 
+ */ + public com.google.container.v1.Operation completeIPRotation(com.google.container.v1.CompleteIPRotationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCompleteIPRotationMethod(), getCallOptions(), request); + } + + /** + *
+     * Sets the size for a specific node pool. The new size will be used for all
+     * replicas, including future replicas created by modifying
+     * [NodePool.locations][google.container.v1.NodePool.locations].
+     * 
+ */ + public com.google.container.v1.Operation setNodePoolSize(com.google.container.v1.SetNodePoolSizeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetNodePoolSizeMethod(), getCallOptions(), request); + } + + /** + *
+     * Enables or disables Network Policy for a cluster.
+     * 
+ */ + public com.google.container.v1.Operation setNetworkPolicy(com.google.container.v1.SetNetworkPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetNetworkPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Sets the maintenance policy for a cluster.
+     * 
+ */ + public com.google.container.v1.Operation setMaintenancePolicy(com.google.container.v1.SetMaintenancePolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetMaintenancePolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists subnetworks that are usable for creating clusters in a project.
+     * 
+ */ + public com.google.container.v1.ListUsableSubnetworksResponse listUsableSubnetworks(com.google.container.v1.ListUsableSubnetworksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListUsableSubnetworksMethod(), getCallOptions(), request); + } + + /** + *
+     * Checks the cluster compatibility with Autopilot mode, and returns a list of
+     * compatibility issues.
+     * 
+ */ + public com.google.container.v1.CheckAutopilotCompatibilityResponse checkAutopilotCompatibility(com.google.container.v1.CheckAutopilotCompatibilityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCheckAutopilotCompatibilityMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service ClusterManager. + *
+   * Google Kubernetes Engine Cluster Manager v1
+   * 
+ */ + 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 listClusters( + com.google.container.v1.ListClustersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListClustersMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets the details of a specific cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getCluster( + com.google.container.v1.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 createCluster( + com.google.container.v1.CreateClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateClusterMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the settings of a specific cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateCluster( + com.google.container.v1.UpdateClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateClusterMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the version and/or image type for the specified node pool.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateNodePool( + com.google.container.v1.UpdateNodePoolRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateNodePoolMethod(), getCallOptions()), request); + } + + /** + *
+     * Sets the autoscaling settings for the specified node pool.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setNodePoolAutoscaling( + com.google.container.v1.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 setLoggingService( + com.google.container.v1.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 setMonitoringService( + com.google.container.v1.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 setAddonsConfig( + com.google.container.v1.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/v1/projects.locations.clusters/update)
+     * instead.
+     * 
+ */ + @java.lang.Deprecated + public com.google.common.util.concurrent.ListenableFuture setLocations( + com.google.container.v1.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 updateMaster( + com.google.container.v1.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 setMasterAuth( + com.google.container.v1.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 deleteCluster( + com.google.container.v1.DeleteClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteClusterMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists all operations in a project in a specific zone or all zones.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listOperations( + com.google.container.v1.ListOperationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListOperationsMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets the specified operation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getOperation( + com.google.container.v1.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.v1.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 getServerConfig( + com.google.container.v1.GetServerConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetServerConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets the public component of the cluster signing keys in
+     * JSON Web Key format.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getJSONWebKeys( + com.google.container.v1.GetJSONWebKeysRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetJSONWebKeysMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists the node pools for a cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listNodePools( + com.google.container.v1.ListNodePoolsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNodePoolsMethod(), getCallOptions()), request); + } + + /** + *
+     * Retrieves the requested node pool.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getNodePool( + com.google.container.v1.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 createNodePool( + com.google.container.v1.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 deleteNodePool( + com.google.container.v1.DeleteNodePoolRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteNodePoolMethod(), getCallOptions()), request); + } + + /** + *
+     * CompleteNodePoolUpgrade will signal an on-going node pool upgrade to
+     * complete.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture completeNodePoolUpgrade( + com.google.container.v1.CompleteNodePoolUpgradeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCompleteNodePoolUpgradeMethod(), 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 rollbackNodePoolUpgrade( + com.google.container.v1.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 setNodePoolManagement( + com.google.container.v1.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 setLabels( + com.google.container.v1.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 setLegacyAbac( + com.google.container.v1.SetLegacyAbacRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetLegacyAbacMethod(), getCallOptions()), request); + } + + /** + *
+     * Starts master IP rotation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture startIPRotation( + com.google.container.v1.StartIPRotationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartIPRotationMethod(), getCallOptions()), request); + } + + /** + *
+     * Completes master IP rotation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture completeIPRotation( + com.google.container.v1.CompleteIPRotationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCompleteIPRotationMethod(), getCallOptions()), request); + } + + /** + *
+     * Sets the size for a specific node pool. The new size will be used for all
+     * replicas, including future replicas created by modifying
+     * [NodePool.locations][google.container.v1.NodePool.locations].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setNodePoolSize( + com.google.container.v1.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 setNetworkPolicy( + com.google.container.v1.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 setMaintenancePolicy( + com.google.container.v1.SetMaintenancePolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetMaintenancePolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists subnetworks that are usable for creating clusters in a project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listUsableSubnetworks( + com.google.container.v1.ListUsableSubnetworksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListUsableSubnetworksMethod(), getCallOptions()), request); + } + + /** + *
+     * Checks the cluster compatibility with Autopilot mode, and returns a list of
+     * compatibility issues.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture checkAutopilotCompatibility( + com.google.container.v1.CheckAutopilotCompatibilityRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCheckAutopilotCompatibilityMethod(), 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_GET_JSONWEB_KEYS = 17; + private static final int METHODID_LIST_NODE_POOLS = 18; + private static final int METHODID_GET_NODE_POOL = 19; + private static final int METHODID_CREATE_NODE_POOL = 20; + private static final int METHODID_DELETE_NODE_POOL = 21; + private static final int METHODID_COMPLETE_NODE_POOL_UPGRADE = 22; + private static final int METHODID_ROLLBACK_NODE_POOL_UPGRADE = 23; + private static final int METHODID_SET_NODE_POOL_MANAGEMENT = 24; + private static final int METHODID_SET_LABELS = 25; + private static final int METHODID_SET_LEGACY_ABAC = 26; + private static final int METHODID_START_IPROTATION = 27; + private static final int METHODID_COMPLETE_IPROTATION = 28; + private static final int METHODID_SET_NODE_POOL_SIZE = 29; + private static final int METHODID_SET_NETWORK_POLICY = 30; + private static final int METHODID_SET_MAINTENANCE_POLICY = 31; + private static final int METHODID_LIST_USABLE_SUBNETWORKS = 32; + private static final int METHODID_CHECK_AUTOPILOT_COMPATIBILITY = 33; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService 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.v1.ListClustersRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CLUSTER: + serviceImpl.getCluster((com.google.container.v1.GetClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_CLUSTER: + serviceImpl.createCluster((com.google.container.v1.CreateClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CLUSTER: + serviceImpl.updateCluster((com.google.container.v1.UpdateClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_NODE_POOL: + serviceImpl.updateNodePool((com.google.container.v1.UpdateNodePoolRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_NODE_POOL_AUTOSCALING: + serviceImpl.setNodePoolAutoscaling((com.google.container.v1.SetNodePoolAutoscalingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_LOGGING_SERVICE: + serviceImpl.setLoggingService((com.google.container.v1.SetLoggingServiceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_MONITORING_SERVICE: + serviceImpl.setMonitoringService((com.google.container.v1.SetMonitoringServiceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_ADDONS_CONFIG: + serviceImpl.setAddonsConfig((com.google.container.v1.SetAddonsConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_LOCATIONS: + serviceImpl.setLocations((com.google.container.v1.SetLocationsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_MASTER: + serviceImpl.updateMaster((com.google.container.v1.UpdateMasterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_MASTER_AUTH: + serviceImpl.setMasterAuth((com.google.container.v1.SetMasterAuthRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CLUSTER: + serviceImpl.deleteCluster((com.google.container.v1.DeleteClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_OPERATIONS: + serviceImpl.listOperations((com.google.container.v1.ListOperationsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_OPERATION: + serviceImpl.getOperation((com.google.container.v1.GetOperationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CANCEL_OPERATION: + serviceImpl.cancelOperation((com.google.container.v1.CancelOperationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SERVER_CONFIG: + serviceImpl.getServerConfig((com.google.container.v1.GetServerConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_JSONWEB_KEYS: + serviceImpl.getJSONWebKeys((com.google.container.v1.GetJSONWebKeysRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_NODE_POOLS: + serviceImpl.listNodePools((com.google.container.v1.ListNodePoolsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_NODE_POOL: + serviceImpl.getNodePool((com.google.container.v1.GetNodePoolRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_NODE_POOL: + serviceImpl.createNodePool((com.google.container.v1.CreateNodePoolRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_NODE_POOL: + serviceImpl.deleteNodePool((com.google.container.v1.DeleteNodePoolRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_COMPLETE_NODE_POOL_UPGRADE: + serviceImpl.completeNodePoolUpgrade((com.google.container.v1.CompleteNodePoolUpgradeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ROLLBACK_NODE_POOL_UPGRADE: + serviceImpl.rollbackNodePoolUpgrade((com.google.container.v1.RollbackNodePoolUpgradeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_NODE_POOL_MANAGEMENT: + serviceImpl.setNodePoolManagement((com.google.container.v1.SetNodePoolManagementRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_LABELS: + serviceImpl.setLabels((com.google.container.v1.SetLabelsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_LEGACY_ABAC: + serviceImpl.setLegacyAbac((com.google.container.v1.SetLegacyAbacRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_START_IPROTATION: + serviceImpl.startIPRotation((com.google.container.v1.StartIPRotationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_COMPLETE_IPROTATION: + serviceImpl.completeIPRotation((com.google.container.v1.CompleteIPRotationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_NODE_POOL_SIZE: + serviceImpl.setNodePoolSize((com.google.container.v1.SetNodePoolSizeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_NETWORK_POLICY: + serviceImpl.setNetworkPolicy((com.google.container.v1.SetNetworkPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_MAINTENANCE_POLICY: + serviceImpl.setMaintenancePolicy((com.google.container.v1.SetMaintenancePolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_USABLE_SUBNETWORKS: + serviceImpl.listUsableSubnetworks((com.google.container.v1.ListUsableSubnetworksRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CHECK_AUTOPILOT_COMPATIBILITY: + serviceImpl.checkAutopilotCompatibility((com.google.container.v1.CheckAutopilotCompatibilityRequest) 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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListClustersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.ListClustersRequest, + com.google.container.v1.ListClustersResponse>( + service, METHODID_LIST_CLUSTERS))) + .addMethod( + getGetClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.GetClusterRequest, + com.google.container.v1.Cluster>( + service, METHODID_GET_CLUSTER))) + .addMethod( + getCreateClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.CreateClusterRequest, + com.google.container.v1.Operation>( + service, METHODID_CREATE_CLUSTER))) + .addMethod( + getUpdateClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.UpdateClusterRequest, + com.google.container.v1.Operation>( + service, METHODID_UPDATE_CLUSTER))) + .addMethod( + getUpdateNodePoolMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.UpdateNodePoolRequest, + com.google.container.v1.Operation>( + service, METHODID_UPDATE_NODE_POOL))) + .addMethod( + getSetNodePoolAutoscalingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.SetNodePoolAutoscalingRequest, + com.google.container.v1.Operation>( + service, METHODID_SET_NODE_POOL_AUTOSCALING))) + .addMethod( + getSetLoggingServiceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.SetLoggingServiceRequest, + com.google.container.v1.Operation>( + service, METHODID_SET_LOGGING_SERVICE))) + .addMethod( + getSetMonitoringServiceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.SetMonitoringServiceRequest, + com.google.container.v1.Operation>( + service, METHODID_SET_MONITORING_SERVICE))) + .addMethod( + getSetAddonsConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.SetAddonsConfigRequest, + com.google.container.v1.Operation>( + service, METHODID_SET_ADDONS_CONFIG))) + .addMethod( + getSetLocationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.SetLocationsRequest, + com.google.container.v1.Operation>( + service, METHODID_SET_LOCATIONS))) + .addMethod( + getUpdateMasterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.UpdateMasterRequest, + com.google.container.v1.Operation>( + service, METHODID_UPDATE_MASTER))) + .addMethod( + getSetMasterAuthMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.SetMasterAuthRequest, + com.google.container.v1.Operation>( + service, METHODID_SET_MASTER_AUTH))) + .addMethod( + getDeleteClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.DeleteClusterRequest, + com.google.container.v1.Operation>( + service, METHODID_DELETE_CLUSTER))) + .addMethod( + getListOperationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.ListOperationsRequest, + com.google.container.v1.ListOperationsResponse>( + service, METHODID_LIST_OPERATIONS))) + .addMethod( + getGetOperationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.GetOperationRequest, + com.google.container.v1.Operation>( + service, METHODID_GET_OPERATION))) + .addMethod( + getCancelOperationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.CancelOperationRequest, + com.google.protobuf.Empty>( + service, METHODID_CANCEL_OPERATION))) + .addMethod( + getGetServerConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.GetServerConfigRequest, + com.google.container.v1.ServerConfig>( + service, METHODID_GET_SERVER_CONFIG))) + .addMethod( + getGetJSONWebKeysMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.GetJSONWebKeysRequest, + com.google.container.v1.GetJSONWebKeysResponse>( + service, METHODID_GET_JSONWEB_KEYS))) + .addMethod( + getListNodePoolsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.ListNodePoolsRequest, + com.google.container.v1.ListNodePoolsResponse>( + service, METHODID_LIST_NODE_POOLS))) + .addMethod( + getGetNodePoolMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.GetNodePoolRequest, + com.google.container.v1.NodePool>( + service, METHODID_GET_NODE_POOL))) + .addMethod( + getCreateNodePoolMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.CreateNodePoolRequest, + com.google.container.v1.Operation>( + service, METHODID_CREATE_NODE_POOL))) + .addMethod( + getDeleteNodePoolMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.DeleteNodePoolRequest, + com.google.container.v1.Operation>( + service, METHODID_DELETE_NODE_POOL))) + .addMethod( + getCompleteNodePoolUpgradeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.CompleteNodePoolUpgradeRequest, + com.google.protobuf.Empty>( + service, METHODID_COMPLETE_NODE_POOL_UPGRADE))) + .addMethod( + getRollbackNodePoolUpgradeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.RollbackNodePoolUpgradeRequest, + com.google.container.v1.Operation>( + service, METHODID_ROLLBACK_NODE_POOL_UPGRADE))) + .addMethod( + getSetNodePoolManagementMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.SetNodePoolManagementRequest, + com.google.container.v1.Operation>( + service, METHODID_SET_NODE_POOL_MANAGEMENT))) + .addMethod( + getSetLabelsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.SetLabelsRequest, + com.google.container.v1.Operation>( + service, METHODID_SET_LABELS))) + .addMethod( + getSetLegacyAbacMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.SetLegacyAbacRequest, + com.google.container.v1.Operation>( + service, METHODID_SET_LEGACY_ABAC))) + .addMethod( + getStartIPRotationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.StartIPRotationRequest, + com.google.container.v1.Operation>( + service, METHODID_START_IPROTATION))) + .addMethod( + getCompleteIPRotationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.CompleteIPRotationRequest, + com.google.container.v1.Operation>( + service, METHODID_COMPLETE_IPROTATION))) + .addMethod( + getSetNodePoolSizeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.SetNodePoolSizeRequest, + com.google.container.v1.Operation>( + service, METHODID_SET_NODE_POOL_SIZE))) + .addMethod( + getSetNetworkPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.SetNetworkPolicyRequest, + com.google.container.v1.Operation>( + service, METHODID_SET_NETWORK_POLICY))) + .addMethod( + getSetMaintenancePolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.SetMaintenancePolicyRequest, + com.google.container.v1.Operation>( + service, METHODID_SET_MAINTENANCE_POLICY))) + .addMethod( + getListUsableSubnetworksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.ListUsableSubnetworksRequest, + com.google.container.v1.ListUsableSubnetworksResponse>( + service, METHODID_LIST_USABLE_SUBNETWORKS))) + .addMethod( + getCheckAutopilotCompatibilityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.CheckAutopilotCompatibilityRequest, + com.google.container.v1.CheckAutopilotCompatibilityResponse>( + service, METHODID_CHECK_AUTOPILOT_COMPATIBILITY))) + .build(); + } + + private static abstract class ClusterManagerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ClusterManagerBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.container.v1.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 java.lang.String methodName; + + ClusterManagerMethodDescriptorSupplier(java.lang.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(getGetJSONWebKeysMethod()) + .addMethod(getListNodePoolsMethod()) + .addMethod(getGetNodePoolMethod()) + .addMethod(getCreateNodePoolMethod()) + .addMethod(getDeleteNodePoolMethod()) + .addMethod(getCompleteNodePoolUpgradeMethod()) + .addMethod(getRollbackNodePoolUpgradeMethod()) + .addMethod(getSetNodePoolManagementMethod()) + .addMethod(getSetLabelsMethod()) + .addMethod(getSetLegacyAbacMethod()) + .addMethod(getStartIPRotationMethod()) + .addMethod(getCompleteIPRotationMethod()) + .addMethod(getSetNodePoolSizeMethod()) + .addMethod(getSetNetworkPolicyMethod()) + .addMethod(getSetMaintenancePolicyMethod()) + .addMethod(getListUsableSubnetworksMethod()) + .addMethod(getCheckAutopilotCompatibilityMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AcceleratorConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AcceleratorConfig.java new file mode 100644 index 000000000000..7324b3bca5c5 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AcceleratorConfig.java @@ -0,0 +1,1320 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * AcceleratorConfig represents a Hardware Accelerator request.
+ * 
+ * + * Protobuf type {@code google.container.v1.AcceleratorConfig} + */ +public final class AcceleratorConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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_ = ""; + gpuPartitionSize_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AcceleratorConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AcceleratorConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AcceleratorConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.AcceleratorConfig.class, com.google.container.v1.AcceleratorConfig.Builder.class); + } + + private int bitField0_; + public static final int ACCELERATOR_COUNT_FIELD_NUMBER = 1; + private long acceleratorCount_ = 0L; + /** + *
+   * 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; + @SuppressWarnings("serial") + 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; + } + } + + public static final int GPU_PARTITION_SIZE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object gpuPartitionSize_ = ""; + /** + *
+   * Size of partitions to create on the GPU. Valid values are described in the
+   * NVIDIA [mig user
+   * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+   * 
+ * + * string gpu_partition_size = 3; + * @return The gpuPartitionSize. + */ + @java.lang.Override + public java.lang.String getGpuPartitionSize() { + java.lang.Object ref = gpuPartitionSize_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gpuPartitionSize_ = s; + return s; + } + } + /** + *
+   * Size of partitions to create on the GPU. Valid values are described in the
+   * NVIDIA [mig user
+   * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+   * 
+ * + * string gpu_partition_size = 3; + * @return The bytes for gpuPartitionSize. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getGpuPartitionSizeBytes() { + java.lang.Object ref = gpuPartitionSize_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + gpuPartitionSize_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GPU_SHARING_CONFIG_FIELD_NUMBER = 5; + private com.google.container.v1.GPUSharingConfig gpuSharingConfig_; + /** + *
+   * The configuration for GPU sharing options.
+   * 
+ * + * optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; + * @return Whether the gpuSharingConfig field is set. + */ + @java.lang.Override + public boolean hasGpuSharingConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * The configuration for GPU sharing options.
+   * 
+ * + * optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; + * @return The gpuSharingConfig. + */ + @java.lang.Override + public com.google.container.v1.GPUSharingConfig getGpuSharingConfig() { + return gpuSharingConfig_ == null ? com.google.container.v1.GPUSharingConfig.getDefaultInstance() : gpuSharingConfig_; + } + /** + *
+   * The configuration for GPU sharing options.
+   * 
+ * + * optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; + */ + @java.lang.Override + public com.google.container.v1.GPUSharingConfigOrBuilder getGpuSharingConfigOrBuilder() { + return gpuSharingConfig_ == null ? com.google.container.v1.GPUSharingConfig.getDefaultInstance() : gpuSharingConfig_; + } + + public static final int GPU_DRIVER_INSTALLATION_CONFIG_FIELD_NUMBER = 6; + private com.google.container.v1.GPUDriverInstallationConfig gpuDriverInstallationConfig_; + /** + *
+   * The configuration for auto installation of GPU driver.
+   * 
+ * + * optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; + * @return Whether the gpuDriverInstallationConfig field is set. + */ + @java.lang.Override + public boolean hasGpuDriverInstallationConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * The configuration for auto installation of GPU driver.
+   * 
+ * + * optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; + * @return The gpuDriverInstallationConfig. + */ + @java.lang.Override + public com.google.container.v1.GPUDriverInstallationConfig getGpuDriverInstallationConfig() { + return gpuDriverInstallationConfig_ == null ? com.google.container.v1.GPUDriverInstallationConfig.getDefaultInstance() : gpuDriverInstallationConfig_; + } + /** + *
+   * The configuration for auto installation of GPU driver.
+   * 
+ * + * optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; + */ + @java.lang.Override + public com.google.container.v1.GPUDriverInstallationConfigOrBuilder getGpuDriverInstallationConfigOrBuilder() { + return gpuDriverInstallationConfig_ == null ? com.google.container.v1.GPUDriverInstallationConfig.getDefaultInstance() : gpuDriverInstallationConfig_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(acceleratorType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, acceleratorType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gpuPartitionSize_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, gpuPartitionSize_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getGpuSharingConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getGpuDriverInstallationConfig()); + } + getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(acceleratorType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, acceleratorType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gpuPartitionSize_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, gpuPartitionSize_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getGpuSharingConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getGpuDriverInstallationConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.AcceleratorConfig)) { + return super.equals(obj); + } + com.google.container.v1.AcceleratorConfig other = (com.google.container.v1.AcceleratorConfig) obj; + + if (getAcceleratorCount() + != other.getAcceleratorCount()) return false; + if (!getAcceleratorType() + .equals(other.getAcceleratorType())) return false; + if (!getGpuPartitionSize() + .equals(other.getGpuPartitionSize())) return false; + if (hasGpuSharingConfig() != other.hasGpuSharingConfig()) return false; + if (hasGpuSharingConfig()) { + if (!getGpuSharingConfig() + .equals(other.getGpuSharingConfig())) return false; + } + if (hasGpuDriverInstallationConfig() != other.hasGpuDriverInstallationConfig()) return false; + if (hasGpuDriverInstallationConfig()) { + if (!getGpuDriverInstallationConfig() + .equals(other.getGpuDriverInstallationConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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 = (37 * hash) + GPU_PARTITION_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getGpuPartitionSize().hashCode(); + if (hasGpuSharingConfig()) { + hash = (37 * hash) + GPU_SHARING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGpuSharingConfig().hashCode(); + } + if (hasGpuDriverInstallationConfig()) { + hash = (37 * hash) + GPU_DRIVER_INSTALLATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGpuDriverInstallationConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.AcceleratorConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.AcceleratorConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.AcceleratorConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.AcceleratorConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.AcceleratorConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.AcceleratorConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.AcceleratorConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.AcceleratorConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.AcceleratorConfig) + com.google.container.v1.AcceleratorConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AcceleratorConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AcceleratorConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.AcceleratorConfig.class, com.google.container.v1.AcceleratorConfig.Builder.class); + } + + // Construct using com.google.container.v1.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) { + getGpuSharingConfigFieldBuilder(); + getGpuDriverInstallationConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + acceleratorCount_ = 0L; + acceleratorType_ = ""; + gpuPartitionSize_ = ""; + gpuSharingConfig_ = null; + if (gpuSharingConfigBuilder_ != null) { + gpuSharingConfigBuilder_.dispose(); + gpuSharingConfigBuilder_ = null; + } + gpuDriverInstallationConfig_ = null; + if (gpuDriverInstallationConfigBuilder_ != null) { + gpuDriverInstallationConfigBuilder_.dispose(); + gpuDriverInstallationConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AcceleratorConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.AcceleratorConfig getDefaultInstanceForType() { + return com.google.container.v1.AcceleratorConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.AcceleratorConfig build() { + com.google.container.v1.AcceleratorConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.AcceleratorConfig buildPartial() { + com.google.container.v1.AcceleratorConfig result = new com.google.container.v1.AcceleratorConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.AcceleratorConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.acceleratorCount_ = acceleratorCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.acceleratorType_ = acceleratorType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.gpuPartitionSize_ = gpuPartitionSize_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.gpuSharingConfig_ = gpuSharingConfigBuilder_ == null + ? gpuSharingConfig_ + : gpuSharingConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.gpuDriverInstallationConfig_ = gpuDriverInstallationConfigBuilder_ == null + ? gpuDriverInstallationConfig_ + : gpuDriverInstallationConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.AcceleratorConfig) { + return mergeFrom((com.google.container.v1.AcceleratorConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.AcceleratorConfig other) { + if (other == com.google.container.v1.AcceleratorConfig.getDefaultInstance()) return this; + if (other.getAcceleratorCount() != 0L) { + setAcceleratorCount(other.getAcceleratorCount()); + } + if (!other.getAcceleratorType().isEmpty()) { + acceleratorType_ = other.acceleratorType_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getGpuPartitionSize().isEmpty()) { + gpuPartitionSize_ = other.gpuPartitionSize_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasGpuSharingConfig()) { + mergeGpuSharingConfig(other.getGpuSharingConfig()); + } + if (other.hasGpuDriverInstallationConfig()) { + mergeGpuDriverInstallationConfig(other.getGpuDriverInstallationConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + acceleratorCount_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + acceleratorType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + gpuPartitionSize_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 42: { + input.readMessage( + getGpuSharingConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: { + input.readMessage( + getGpuDriverInstallationConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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() { + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000002; + 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(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object gpuPartitionSize_ = ""; + /** + *
+     * Size of partitions to create on the GPU. Valid values are described in the
+     * NVIDIA [mig user
+     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+     * 
+ * + * string gpu_partition_size = 3; + * @return The gpuPartitionSize. + */ + public java.lang.String getGpuPartitionSize() { + java.lang.Object ref = gpuPartitionSize_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gpuPartitionSize_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Size of partitions to create on the GPU. Valid values are described in the
+     * NVIDIA [mig user
+     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+     * 
+ * + * string gpu_partition_size = 3; + * @return The bytes for gpuPartitionSize. + */ + public com.google.protobuf.ByteString + getGpuPartitionSizeBytes() { + java.lang.Object ref = gpuPartitionSize_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + gpuPartitionSize_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Size of partitions to create on the GPU. Valid values are described in the
+     * NVIDIA [mig user
+     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+     * 
+ * + * string gpu_partition_size = 3; + * @param value The gpuPartitionSize to set. + * @return This builder for chaining. + */ + public Builder setGpuPartitionSize( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + gpuPartitionSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Size of partitions to create on the GPU. Valid values are described in the
+     * NVIDIA [mig user
+     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+     * 
+ * + * string gpu_partition_size = 3; + * @return This builder for chaining. + */ + public Builder clearGpuPartitionSize() { + gpuPartitionSize_ = getDefaultInstance().getGpuPartitionSize(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Size of partitions to create on the GPU. Valid values are described in the
+     * NVIDIA [mig user
+     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+     * 
+ * + * string gpu_partition_size = 3; + * @param value The bytes for gpuPartitionSize to set. + * @return This builder for chaining. + */ + public Builder setGpuPartitionSizeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + gpuPartitionSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.container.v1.GPUSharingConfig gpuSharingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GPUSharingConfig, com.google.container.v1.GPUSharingConfig.Builder, com.google.container.v1.GPUSharingConfigOrBuilder> gpuSharingConfigBuilder_; + /** + *
+     * The configuration for GPU sharing options.
+     * 
+ * + * optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; + * @return Whether the gpuSharingConfig field is set. + */ + public boolean hasGpuSharingConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * The configuration for GPU sharing options.
+     * 
+ * + * optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; + * @return The gpuSharingConfig. + */ + public com.google.container.v1.GPUSharingConfig getGpuSharingConfig() { + if (gpuSharingConfigBuilder_ == null) { + return gpuSharingConfig_ == null ? com.google.container.v1.GPUSharingConfig.getDefaultInstance() : gpuSharingConfig_; + } else { + return gpuSharingConfigBuilder_.getMessage(); + } + } + /** + *
+     * The configuration for GPU sharing options.
+     * 
+ * + * optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; + */ + public Builder setGpuSharingConfig(com.google.container.v1.GPUSharingConfig value) { + if (gpuSharingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gpuSharingConfig_ = value; + } else { + gpuSharingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The configuration for GPU sharing options.
+     * 
+ * + * optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; + */ + public Builder setGpuSharingConfig( + com.google.container.v1.GPUSharingConfig.Builder builderForValue) { + if (gpuSharingConfigBuilder_ == null) { + gpuSharingConfig_ = builderForValue.build(); + } else { + gpuSharingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The configuration for GPU sharing options.
+     * 
+ * + * optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; + */ + public Builder mergeGpuSharingConfig(com.google.container.v1.GPUSharingConfig value) { + if (gpuSharingConfigBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + gpuSharingConfig_ != null && + gpuSharingConfig_ != com.google.container.v1.GPUSharingConfig.getDefaultInstance()) { + getGpuSharingConfigBuilder().mergeFrom(value); + } else { + gpuSharingConfig_ = value; + } + } else { + gpuSharingConfigBuilder_.mergeFrom(value); + } + if (gpuSharingConfig_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + *
+     * The configuration for GPU sharing options.
+     * 
+ * + * optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; + */ + public Builder clearGpuSharingConfig() { + bitField0_ = (bitField0_ & ~0x00000008); + gpuSharingConfig_ = null; + if (gpuSharingConfigBuilder_ != null) { + gpuSharingConfigBuilder_.dispose(); + gpuSharingConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The configuration for GPU sharing options.
+     * 
+ * + * optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; + */ + public com.google.container.v1.GPUSharingConfig.Builder getGpuSharingConfigBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getGpuSharingConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The configuration for GPU sharing options.
+     * 
+ * + * optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; + */ + public com.google.container.v1.GPUSharingConfigOrBuilder getGpuSharingConfigOrBuilder() { + if (gpuSharingConfigBuilder_ != null) { + return gpuSharingConfigBuilder_.getMessageOrBuilder(); + } else { + return gpuSharingConfig_ == null ? + com.google.container.v1.GPUSharingConfig.getDefaultInstance() : gpuSharingConfig_; + } + } + /** + *
+     * The configuration for GPU sharing options.
+     * 
+ * + * optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GPUSharingConfig, com.google.container.v1.GPUSharingConfig.Builder, com.google.container.v1.GPUSharingConfigOrBuilder> + getGpuSharingConfigFieldBuilder() { + if (gpuSharingConfigBuilder_ == null) { + gpuSharingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GPUSharingConfig, com.google.container.v1.GPUSharingConfig.Builder, com.google.container.v1.GPUSharingConfigOrBuilder>( + getGpuSharingConfig(), + getParentForChildren(), + isClean()); + gpuSharingConfig_ = null; + } + return gpuSharingConfigBuilder_; + } + + private com.google.container.v1.GPUDriverInstallationConfig gpuDriverInstallationConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GPUDriverInstallationConfig, com.google.container.v1.GPUDriverInstallationConfig.Builder, com.google.container.v1.GPUDriverInstallationConfigOrBuilder> gpuDriverInstallationConfigBuilder_; + /** + *
+     * The configuration for auto installation of GPU driver.
+     * 
+ * + * optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; + * @return Whether the gpuDriverInstallationConfig field is set. + */ + public boolean hasGpuDriverInstallationConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+     * The configuration for auto installation of GPU driver.
+     * 
+ * + * optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; + * @return The gpuDriverInstallationConfig. + */ + public com.google.container.v1.GPUDriverInstallationConfig getGpuDriverInstallationConfig() { + if (gpuDriverInstallationConfigBuilder_ == null) { + return gpuDriverInstallationConfig_ == null ? com.google.container.v1.GPUDriverInstallationConfig.getDefaultInstance() : gpuDriverInstallationConfig_; + } else { + return gpuDriverInstallationConfigBuilder_.getMessage(); + } + } + /** + *
+     * The configuration for auto installation of GPU driver.
+     * 
+ * + * optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; + */ + public Builder setGpuDriverInstallationConfig(com.google.container.v1.GPUDriverInstallationConfig value) { + if (gpuDriverInstallationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gpuDriverInstallationConfig_ = value; + } else { + gpuDriverInstallationConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * The configuration for auto installation of GPU driver.
+     * 
+ * + * optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; + */ + public Builder setGpuDriverInstallationConfig( + com.google.container.v1.GPUDriverInstallationConfig.Builder builderForValue) { + if (gpuDriverInstallationConfigBuilder_ == null) { + gpuDriverInstallationConfig_ = builderForValue.build(); + } else { + gpuDriverInstallationConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * The configuration for auto installation of GPU driver.
+     * 
+ * + * optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; + */ + public Builder mergeGpuDriverInstallationConfig(com.google.container.v1.GPUDriverInstallationConfig value) { + if (gpuDriverInstallationConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + gpuDriverInstallationConfig_ != null && + gpuDriverInstallationConfig_ != com.google.container.v1.GPUDriverInstallationConfig.getDefaultInstance()) { + getGpuDriverInstallationConfigBuilder().mergeFrom(value); + } else { + gpuDriverInstallationConfig_ = value; + } + } else { + gpuDriverInstallationConfigBuilder_.mergeFrom(value); + } + if (gpuDriverInstallationConfig_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + *
+     * The configuration for auto installation of GPU driver.
+     * 
+ * + * optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; + */ + public Builder clearGpuDriverInstallationConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + gpuDriverInstallationConfig_ = null; + if (gpuDriverInstallationConfigBuilder_ != null) { + gpuDriverInstallationConfigBuilder_.dispose(); + gpuDriverInstallationConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The configuration for auto installation of GPU driver.
+     * 
+ * + * optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; + */ + public com.google.container.v1.GPUDriverInstallationConfig.Builder getGpuDriverInstallationConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getGpuDriverInstallationConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The configuration for auto installation of GPU driver.
+     * 
+ * + * optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; + */ + public com.google.container.v1.GPUDriverInstallationConfigOrBuilder getGpuDriverInstallationConfigOrBuilder() { + if (gpuDriverInstallationConfigBuilder_ != null) { + return gpuDriverInstallationConfigBuilder_.getMessageOrBuilder(); + } else { + return gpuDriverInstallationConfig_ == null ? + com.google.container.v1.GPUDriverInstallationConfig.getDefaultInstance() : gpuDriverInstallationConfig_; + } + } + /** + *
+     * The configuration for auto installation of GPU driver.
+     * 
+ * + * optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GPUDriverInstallationConfig, com.google.container.v1.GPUDriverInstallationConfig.Builder, com.google.container.v1.GPUDriverInstallationConfigOrBuilder> + getGpuDriverInstallationConfigFieldBuilder() { + if (gpuDriverInstallationConfigBuilder_ == null) { + gpuDriverInstallationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GPUDriverInstallationConfig, com.google.container.v1.GPUDriverInstallationConfig.Builder, com.google.container.v1.GPUDriverInstallationConfigOrBuilder>( + getGpuDriverInstallationConfig(), + getParentForChildren(), + isClean()); + gpuDriverInstallationConfig_ = null; + } + return gpuDriverInstallationConfigBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.AcceleratorConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.AcceleratorConfig) + private static final com.google.container.v1.AcceleratorConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.AcceleratorConfig(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.AcceleratorConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AcceleratorConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AcceleratorConfigOrBuilder.java new file mode 100644 index 000000000000..f0594c203bff --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AcceleratorConfigOrBuilder.java @@ -0,0 +1,120 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface AcceleratorConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.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(); + + /** + *
+   * Size of partitions to create on the GPU. Valid values are described in the
+   * NVIDIA [mig user
+   * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+   * 
+ * + * string gpu_partition_size = 3; + * @return The gpuPartitionSize. + */ + java.lang.String getGpuPartitionSize(); + /** + *
+   * Size of partitions to create on the GPU. Valid values are described in the
+   * NVIDIA [mig user
+   * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+   * 
+ * + * string gpu_partition_size = 3; + * @return The bytes for gpuPartitionSize. + */ + com.google.protobuf.ByteString + getGpuPartitionSizeBytes(); + + /** + *
+   * The configuration for GPU sharing options.
+   * 
+ * + * optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; + * @return Whether the gpuSharingConfig field is set. + */ + boolean hasGpuSharingConfig(); + /** + *
+   * The configuration for GPU sharing options.
+   * 
+ * + * optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; + * @return The gpuSharingConfig. + */ + com.google.container.v1.GPUSharingConfig getGpuSharingConfig(); + /** + *
+   * The configuration for GPU sharing options.
+   * 
+ * + * optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; + */ + com.google.container.v1.GPUSharingConfigOrBuilder getGpuSharingConfigOrBuilder(); + + /** + *
+   * The configuration for auto installation of GPU driver.
+   * 
+ * + * optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; + * @return Whether the gpuDriverInstallationConfig field is set. + */ + boolean hasGpuDriverInstallationConfig(); + /** + *
+   * The configuration for auto installation of GPU driver.
+   * 
+ * + * optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; + * @return The gpuDriverInstallationConfig. + */ + com.google.container.v1.GPUDriverInstallationConfig getGpuDriverInstallationConfig(); + /** + *
+   * The configuration for auto installation of GPU driver.
+   * 
+ * + * optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; + */ + com.google.container.v1.GPUDriverInstallationConfigOrBuilder getGpuDriverInstallationConfigOrBuilder(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalNodeNetworkConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalNodeNetworkConfig.java new file mode 100644 index 000000000000..26f1fe3cc6f9 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalNodeNetworkConfig.java @@ -0,0 +1,744 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * AdditionalNodeNetworkConfig is the configuration for additional node networks
+ * within the NodeNetworkConfig message
+ * 
+ * + * Protobuf type {@code google.container.v1.AdditionalNodeNetworkConfig} + */ +public final class AdditionalNodeNetworkConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.AdditionalNodeNetworkConfig) + AdditionalNodeNetworkConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use AdditionalNodeNetworkConfig.newBuilder() to construct. + private AdditionalNodeNetworkConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AdditionalNodeNetworkConfig() { + network_ = ""; + subnetwork_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AdditionalNodeNetworkConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AdditionalNodeNetworkConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AdditionalNodeNetworkConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.AdditionalNodeNetworkConfig.class, com.google.container.v1.AdditionalNodeNetworkConfig.Builder.class); + } + + public static final int NETWORK_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object network_ = ""; + /** + *
+   * Name of the VPC where the additional interface belongs
+   * 
+ * + * 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; + } + } + /** + *
+   * Name of the VPC where the additional interface belongs
+   * 
+ * + * 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; + @SuppressWarnings("serial") + private volatile java.lang.Object subnetwork_ = ""; + /** + *
+   * Name of the subnetwork where the additional interface belongs
+   * 
+ * + * 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; + } + } + /** + *
+   * Name of the subnetwork where the additional interface belongs
+   * 
+ * + * 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; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subnetwork_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subnetwork_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.AdditionalNodeNetworkConfig)) { + return super.equals(obj); + } + com.google.container.v1.AdditionalNodeNetworkConfig other = (com.google.container.v1.AdditionalNodeNetworkConfig) obj; + + if (!getNetwork() + .equals(other.getNetwork())) return false; + if (!getSubnetwork() + .equals(other.getSubnetwork())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.AdditionalNodeNetworkConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.AdditionalNodeNetworkConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.AdditionalNodeNetworkConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.AdditionalNodeNetworkConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.AdditionalNodeNetworkConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.AdditionalNodeNetworkConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.AdditionalNodeNetworkConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.AdditionalNodeNetworkConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.AdditionalNodeNetworkConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.AdditionalNodeNetworkConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.AdditionalNodeNetworkConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.AdditionalNodeNetworkConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.AdditionalNodeNetworkConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * AdditionalNodeNetworkConfig is the configuration for additional node networks
+   * within the NodeNetworkConfig message
+   * 
+ * + * Protobuf type {@code google.container.v1.AdditionalNodeNetworkConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.AdditionalNodeNetworkConfig) + com.google.container.v1.AdditionalNodeNetworkConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AdditionalNodeNetworkConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AdditionalNodeNetworkConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.AdditionalNodeNetworkConfig.class, com.google.container.v1.AdditionalNodeNetworkConfig.Builder.class); + } + + // Construct using com.google.container.v1.AdditionalNodeNetworkConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + network_ = ""; + subnetwork_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AdditionalNodeNetworkConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.AdditionalNodeNetworkConfig getDefaultInstanceForType() { + return com.google.container.v1.AdditionalNodeNetworkConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.AdditionalNodeNetworkConfig build() { + com.google.container.v1.AdditionalNodeNetworkConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.AdditionalNodeNetworkConfig buildPartial() { + com.google.container.v1.AdditionalNodeNetworkConfig result = new com.google.container.v1.AdditionalNodeNetworkConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.AdditionalNodeNetworkConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.network_ = network_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.subnetwork_ = subnetwork_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.AdditionalNodeNetworkConfig) { + return mergeFrom((com.google.container.v1.AdditionalNodeNetworkConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.AdditionalNodeNetworkConfig other) { + if (other == com.google.container.v1.AdditionalNodeNetworkConfig.getDefaultInstance()) return this; + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSubnetwork().isEmpty()) { + subnetwork_ = other.subnetwork_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + network_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + subnetwork_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object network_ = ""; + /** + *
+     * Name of the VPC where the additional interface belongs
+     * 
+ * + * 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; + } + } + /** + *
+     * Name of the VPC where the additional interface belongs
+     * 
+ * + * 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; + } + } + /** + *
+     * Name of the VPC where the additional interface belongs
+     * 
+ * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Name of the VPC where the additional interface belongs
+     * 
+ * + * string network = 1; + * @return This builder for chaining. + */ + public Builder clearNetwork() { + network_ = getDefaultInstance().getNetwork(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Name of the VPC where the additional interface belongs
+     * 
+ * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object subnetwork_ = ""; + /** + *
+     * Name of the subnetwork where the additional interface belongs
+     * 
+ * + * 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; + } + } + /** + *
+     * Name of the subnetwork where the additional interface belongs
+     * 
+ * + * 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; + } + } + /** + *
+     * Name of the subnetwork where the additional interface belongs
+     * 
+ * + * 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Name of the subnetwork where the additional interface belongs
+     * 
+ * + * string subnetwork = 2; + * @return This builder for chaining. + */ + public Builder clearSubnetwork() { + subnetwork_ = getDefaultInstance().getSubnetwork(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Name of the subnetwork where the additional interface belongs
+     * 
+ * + * 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.AdditionalNodeNetworkConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.AdditionalNodeNetworkConfig) + private static final com.google.container.v1.AdditionalNodeNetworkConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.AdditionalNodeNetworkConfig(); + } + + public static com.google.container.v1.AdditionalNodeNetworkConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdditionalNodeNetworkConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.AdditionalNodeNetworkConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalNodeNetworkConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalNodeNetworkConfigOrBuilder.java new file mode 100644 index 000000000000..1c9b27b43e32 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalNodeNetworkConfigOrBuilder.java @@ -0,0 +1,50 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface AdditionalNodeNetworkConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.AdditionalNodeNetworkConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Name of the VPC where the additional interface belongs
+   * 
+ * + * string network = 1; + * @return The network. + */ + java.lang.String getNetwork(); + /** + *
+   * Name of the VPC where the additional interface belongs
+   * 
+ * + * string network = 1; + * @return The bytes for network. + */ + com.google.protobuf.ByteString + getNetworkBytes(); + + /** + *
+   * Name of the subnetwork where the additional interface belongs
+   * 
+ * + * string subnetwork = 2; + * @return The subnetwork. + */ + java.lang.String getSubnetwork(); + /** + *
+   * Name of the subnetwork where the additional interface belongs
+   * 
+ * + * string subnetwork = 2; + * @return The bytes for subnetwork. + */ + com.google.protobuf.ByteString + getSubnetworkBytes(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalPodNetworkConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalPodNetworkConfig.java new file mode 100644 index 000000000000..7047f3f98048 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalPodNetworkConfig.java @@ -0,0 +1,992 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * AdditionalPodNetworkConfig is the configuration for additional pod networks
+ * within the NodeNetworkConfig message
+ * 
+ * + * Protobuf type {@code google.container.v1.AdditionalPodNetworkConfig} + */ +public final class AdditionalPodNetworkConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.AdditionalPodNetworkConfig) + AdditionalPodNetworkConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use AdditionalPodNetworkConfig.newBuilder() to construct. + private AdditionalPodNetworkConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AdditionalPodNetworkConfig() { + subnetwork_ = ""; + secondaryPodRange_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AdditionalPodNetworkConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AdditionalPodNetworkConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AdditionalPodNetworkConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.AdditionalPodNetworkConfig.class, com.google.container.v1.AdditionalPodNetworkConfig.Builder.class); + } + + private int bitField0_; + public static final int SUBNETWORK_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object subnetwork_ = ""; + /** + *
+   * Name of the subnetwork where the additional pod network belongs
+   * 
+ * + * 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; + } + } + /** + *
+   * Name of the subnetwork where the additional pod network belongs
+   * 
+ * + * 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 SECONDARY_POD_RANGE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object secondaryPodRange_ = ""; + /** + *
+   * The name of the secondary range on the subnet which provides IP address for
+   * this pod range
+   * 
+ * + * string secondary_pod_range = 2; + * @return The secondaryPodRange. + */ + @java.lang.Override + public java.lang.String getSecondaryPodRange() { + java.lang.Object ref = secondaryPodRange_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secondaryPodRange_ = s; + return s; + } + } + /** + *
+   * The name of the secondary range on the subnet which provides IP address for
+   * this pod range
+   * 
+ * + * string secondary_pod_range = 2; + * @return The bytes for secondaryPodRange. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSecondaryPodRangeBytes() { + java.lang.Object ref = secondaryPodRange_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + secondaryPodRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAX_PODS_PER_NODE_FIELD_NUMBER = 3; + private com.google.container.v1.MaxPodsConstraint maxPodsPerNode_; + /** + *
+   * The maximum number of pods per node which use this pod network
+   * 
+ * + * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; + * @return Whether the maxPodsPerNode field is set. + */ + @java.lang.Override + public boolean hasMaxPodsPerNode() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * The maximum number of pods per node which use this pod network
+   * 
+ * + * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; + * @return The maxPodsPerNode. + */ + @java.lang.Override + public com.google.container.v1.MaxPodsConstraint getMaxPodsPerNode() { + return maxPodsPerNode_ == null ? com.google.container.v1.MaxPodsConstraint.getDefaultInstance() : maxPodsPerNode_; + } + /** + *
+   * The maximum number of pods per node which use this pod network
+   * 
+ * + * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; + */ + @java.lang.Override + public com.google.container.v1.MaxPodsConstraintOrBuilder getMaxPodsPerNodeOrBuilder() { + return maxPodsPerNode_ == null ? com.google.container.v1.MaxPodsConstraint.getDefaultInstance() : 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subnetwork_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secondaryPodRange_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, secondaryPodRange_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getMaxPodsPerNode()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subnetwork_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secondaryPodRange_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, secondaryPodRange_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getMaxPodsPerNode()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.AdditionalPodNetworkConfig)) { + return super.equals(obj); + } + com.google.container.v1.AdditionalPodNetworkConfig other = (com.google.container.v1.AdditionalPodNetworkConfig) obj; + + if (!getSubnetwork() + .equals(other.getSubnetwork())) return false; + if (!getSecondaryPodRange() + .equals(other.getSecondaryPodRange())) return false; + if (hasMaxPodsPerNode() != other.hasMaxPodsPerNode()) return false; + if (hasMaxPodsPerNode()) { + if (!getMaxPodsPerNode() + .equals(other.getMaxPodsPerNode())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + SECONDARY_POD_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getSecondaryPodRange().hashCode(); + if (hasMaxPodsPerNode()) { + hash = (37 * hash) + MAX_PODS_PER_NODE_FIELD_NUMBER; + hash = (53 * hash) + getMaxPodsPerNode().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.AdditionalPodNetworkConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.AdditionalPodNetworkConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.AdditionalPodNetworkConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.AdditionalPodNetworkConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.AdditionalPodNetworkConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.AdditionalPodNetworkConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.AdditionalPodNetworkConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.AdditionalPodNetworkConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.AdditionalPodNetworkConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.AdditionalPodNetworkConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.AdditionalPodNetworkConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.AdditionalPodNetworkConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.AdditionalPodNetworkConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * AdditionalPodNetworkConfig is the configuration for additional pod networks
+   * within the NodeNetworkConfig message
+   * 
+ * + * Protobuf type {@code google.container.v1.AdditionalPodNetworkConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.AdditionalPodNetworkConfig) + com.google.container.v1.AdditionalPodNetworkConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AdditionalPodNetworkConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AdditionalPodNetworkConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.AdditionalPodNetworkConfig.class, com.google.container.v1.AdditionalPodNetworkConfig.Builder.class); + } + + // Construct using com.google.container.v1.AdditionalPodNetworkConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMaxPodsPerNodeFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + subnetwork_ = ""; + secondaryPodRange_ = ""; + maxPodsPerNode_ = null; + if (maxPodsPerNodeBuilder_ != null) { + maxPodsPerNodeBuilder_.dispose(); + maxPodsPerNodeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AdditionalPodNetworkConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.AdditionalPodNetworkConfig getDefaultInstanceForType() { + return com.google.container.v1.AdditionalPodNetworkConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.AdditionalPodNetworkConfig build() { + com.google.container.v1.AdditionalPodNetworkConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.AdditionalPodNetworkConfig buildPartial() { + com.google.container.v1.AdditionalPodNetworkConfig result = new com.google.container.v1.AdditionalPodNetworkConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.AdditionalPodNetworkConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.subnetwork_ = subnetwork_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.secondaryPodRange_ = secondaryPodRange_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.maxPodsPerNode_ = maxPodsPerNodeBuilder_ == null + ? maxPodsPerNode_ + : maxPodsPerNodeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.AdditionalPodNetworkConfig) { + return mergeFrom((com.google.container.v1.AdditionalPodNetworkConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.AdditionalPodNetworkConfig other) { + if (other == com.google.container.v1.AdditionalPodNetworkConfig.getDefaultInstance()) return this; + if (!other.getSubnetwork().isEmpty()) { + subnetwork_ = other.subnetwork_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSecondaryPodRange().isEmpty()) { + secondaryPodRange_ = other.secondaryPodRange_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasMaxPodsPerNode()) { + mergeMaxPodsPerNode(other.getMaxPodsPerNode()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + subnetwork_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + secondaryPodRange_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getMaxPodsPerNodeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object subnetwork_ = ""; + /** + *
+     * Name of the subnetwork where the additional pod network belongs
+     * 
+ * + * 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; + } + } + /** + *
+     * Name of the subnetwork where the additional pod network belongs
+     * 
+ * + * 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; + } + } + /** + *
+     * Name of the subnetwork where the additional pod network belongs
+     * 
+ * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Name of the subnetwork where the additional pod network belongs
+     * 
+ * + * string subnetwork = 1; + * @return This builder for chaining. + */ + public Builder clearSubnetwork() { + subnetwork_ = getDefaultInstance().getSubnetwork(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Name of the subnetwork where the additional pod network belongs
+     * 
+ * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object secondaryPodRange_ = ""; + /** + *
+     * The name of the secondary range on the subnet which provides IP address for
+     * this pod range
+     * 
+ * + * string secondary_pod_range = 2; + * @return The secondaryPodRange. + */ + public java.lang.String getSecondaryPodRange() { + java.lang.Object ref = secondaryPodRange_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secondaryPodRange_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the secondary range on the subnet which provides IP address for
+     * this pod range
+     * 
+ * + * string secondary_pod_range = 2; + * @return The bytes for secondaryPodRange. + */ + public com.google.protobuf.ByteString + getSecondaryPodRangeBytes() { + java.lang.Object ref = secondaryPodRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + secondaryPodRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the secondary range on the subnet which provides IP address for
+     * this pod range
+     * 
+ * + * string secondary_pod_range = 2; + * @param value The secondaryPodRange to set. + * @return This builder for chaining. + */ + public Builder setSecondaryPodRange( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + secondaryPodRange_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The name of the secondary range on the subnet which provides IP address for
+     * this pod range
+     * 
+ * + * string secondary_pod_range = 2; + * @return This builder for chaining. + */ + public Builder clearSecondaryPodRange() { + secondaryPodRange_ = getDefaultInstance().getSecondaryPodRange(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * The name of the secondary range on the subnet which provides IP address for
+     * this pod range
+     * 
+ * + * string secondary_pod_range = 2; + * @param value The bytes for secondaryPodRange to set. + * @return This builder for chaining. + */ + public Builder setSecondaryPodRangeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + secondaryPodRange_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.container.v1.MaxPodsConstraint maxPodsPerNode_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MaxPodsConstraint, com.google.container.v1.MaxPodsConstraint.Builder, com.google.container.v1.MaxPodsConstraintOrBuilder> maxPodsPerNodeBuilder_; + /** + *
+     * The maximum number of pods per node which use this pod network
+     * 
+ * + * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; + * @return Whether the maxPodsPerNode field is set. + */ + public boolean hasMaxPodsPerNode() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * The maximum number of pods per node which use this pod network
+     * 
+ * + * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; + * @return The maxPodsPerNode. + */ + public com.google.container.v1.MaxPodsConstraint getMaxPodsPerNode() { + if (maxPodsPerNodeBuilder_ == null) { + return maxPodsPerNode_ == null ? com.google.container.v1.MaxPodsConstraint.getDefaultInstance() : maxPodsPerNode_; + } else { + return maxPodsPerNodeBuilder_.getMessage(); + } + } + /** + *
+     * The maximum number of pods per node which use this pod network
+     * 
+ * + * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; + */ + public Builder setMaxPodsPerNode(com.google.container.v1.MaxPodsConstraint value) { + if (maxPodsPerNodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maxPodsPerNode_ = value; + } else { + maxPodsPerNodeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The maximum number of pods per node which use this pod network
+     * 
+ * + * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; + */ + public Builder setMaxPodsPerNode( + com.google.container.v1.MaxPodsConstraint.Builder builderForValue) { + if (maxPodsPerNodeBuilder_ == null) { + maxPodsPerNode_ = builderForValue.build(); + } else { + maxPodsPerNodeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The maximum number of pods per node which use this pod network
+     * 
+ * + * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; + */ + public Builder mergeMaxPodsPerNode(com.google.container.v1.MaxPodsConstraint value) { + if (maxPodsPerNodeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + maxPodsPerNode_ != null && + maxPodsPerNode_ != com.google.container.v1.MaxPodsConstraint.getDefaultInstance()) { + getMaxPodsPerNodeBuilder().mergeFrom(value); + } else { + maxPodsPerNode_ = value; + } + } else { + maxPodsPerNodeBuilder_.mergeFrom(value); + } + if (maxPodsPerNode_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+     * The maximum number of pods per node which use this pod network
+     * 
+ * + * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; + */ + public Builder clearMaxPodsPerNode() { + bitField0_ = (bitField0_ & ~0x00000004); + maxPodsPerNode_ = null; + if (maxPodsPerNodeBuilder_ != null) { + maxPodsPerNodeBuilder_.dispose(); + maxPodsPerNodeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The maximum number of pods per node which use this pod network
+     * 
+ * + * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; + */ + public com.google.container.v1.MaxPodsConstraint.Builder getMaxPodsPerNodeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getMaxPodsPerNodeFieldBuilder().getBuilder(); + } + /** + *
+     * The maximum number of pods per node which use this pod network
+     * 
+ * + * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; + */ + public com.google.container.v1.MaxPodsConstraintOrBuilder getMaxPodsPerNodeOrBuilder() { + if (maxPodsPerNodeBuilder_ != null) { + return maxPodsPerNodeBuilder_.getMessageOrBuilder(); + } else { + return maxPodsPerNode_ == null ? + com.google.container.v1.MaxPodsConstraint.getDefaultInstance() : maxPodsPerNode_; + } + } + /** + *
+     * The maximum number of pods per node which use this pod network
+     * 
+ * + * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MaxPodsConstraint, com.google.container.v1.MaxPodsConstraint.Builder, com.google.container.v1.MaxPodsConstraintOrBuilder> + getMaxPodsPerNodeFieldBuilder() { + if (maxPodsPerNodeBuilder_ == null) { + maxPodsPerNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MaxPodsConstraint, com.google.container.v1.MaxPodsConstraint.Builder, com.google.container.v1.MaxPodsConstraintOrBuilder>( + getMaxPodsPerNode(), + getParentForChildren(), + isClean()); + maxPodsPerNode_ = null; + } + return maxPodsPerNodeBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.AdditionalPodNetworkConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.AdditionalPodNetworkConfig) + private static final com.google.container.v1.AdditionalPodNetworkConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.AdditionalPodNetworkConfig(); + } + + public static com.google.container.v1.AdditionalPodNetworkConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdditionalPodNetworkConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.AdditionalPodNetworkConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalPodNetworkConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalPodNetworkConfigOrBuilder.java new file mode 100644 index 000000000000..ead9a39510b4 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalPodNetworkConfigOrBuilder.java @@ -0,0 +1,79 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface AdditionalPodNetworkConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.AdditionalPodNetworkConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Name of the subnetwork where the additional pod network belongs
+   * 
+ * + * string subnetwork = 1; + * @return The subnetwork. + */ + java.lang.String getSubnetwork(); + /** + *
+   * Name of the subnetwork where the additional pod network belongs
+   * 
+ * + * string subnetwork = 1; + * @return The bytes for subnetwork. + */ + com.google.protobuf.ByteString + getSubnetworkBytes(); + + /** + *
+   * The name of the secondary range on the subnet which provides IP address for
+   * this pod range
+   * 
+ * + * string secondary_pod_range = 2; + * @return The secondaryPodRange. + */ + java.lang.String getSecondaryPodRange(); + /** + *
+   * The name of the secondary range on the subnet which provides IP address for
+   * this pod range
+   * 
+ * + * string secondary_pod_range = 2; + * @return The bytes for secondaryPodRange. + */ + com.google.protobuf.ByteString + getSecondaryPodRangeBytes(); + + /** + *
+   * The maximum number of pods per node which use this pod network
+   * 
+ * + * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; + * @return Whether the maxPodsPerNode field is set. + */ + boolean hasMaxPodsPerNode(); + /** + *
+   * The maximum number of pods per node which use this pod network
+   * 
+ * + * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; + * @return The maxPodsPerNode. + */ + com.google.container.v1.MaxPodsConstraint getMaxPodsPerNode(); + /** + *
+   * The maximum number of pods per node which use this pod network
+   * 
+ * + * optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; + */ + com.google.container.v1.MaxPodsConstraintOrBuilder getMaxPodsPerNodeOrBuilder(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalPodRangesConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalPodRangesConfig.java new file mode 100644 index 000000000000..a86a7ee3e972 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalPodRangesConfig.java @@ -0,0 +1,1103 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * AdditionalPodRangesConfig is the configuration for additional pod secondary
+ * ranges supporting the ClusterUpdate message.
+ * 
+ * + * Protobuf type {@code google.container.v1.AdditionalPodRangesConfig} + */ +public final class AdditionalPodRangesConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.AdditionalPodRangesConfig) + AdditionalPodRangesConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use AdditionalPodRangesConfig.newBuilder() to construct. + private AdditionalPodRangesConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AdditionalPodRangesConfig() { + podRangeNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + podRangeInfo_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AdditionalPodRangesConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AdditionalPodRangesConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AdditionalPodRangesConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.AdditionalPodRangesConfig.class, com.google.container.v1.AdditionalPodRangesConfig.Builder.class); + } + + public static final int POD_RANGE_NAMES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList podRangeNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * Name for pod secondary ipv4 range which has the actual range defined ahead.
+   * 
+ * + * repeated string pod_range_names = 1; + * @return A list containing the podRangeNames. + */ + public com.google.protobuf.ProtocolStringList + getPodRangeNamesList() { + return podRangeNames_; + } + /** + *
+   * Name for pod secondary ipv4 range which has the actual range defined ahead.
+   * 
+ * + * repeated string pod_range_names = 1; + * @return The count of podRangeNames. + */ + public int getPodRangeNamesCount() { + return podRangeNames_.size(); + } + /** + *
+   * Name for pod secondary ipv4 range which has the actual range defined ahead.
+   * 
+ * + * repeated string pod_range_names = 1; + * @param index The index of the element to return. + * @return The podRangeNames at the given index. + */ + public java.lang.String getPodRangeNames(int index) { + return podRangeNames_.get(index); + } + /** + *
+   * Name for pod secondary ipv4 range which has the actual range defined ahead.
+   * 
+ * + * repeated string pod_range_names = 1; + * @param index The index of the value to return. + * @return The bytes of the podRangeNames at the given index. + */ + public com.google.protobuf.ByteString + getPodRangeNamesBytes(int index) { + return podRangeNames_.getByteString(index); + } + + public static final int POD_RANGE_INFO_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List podRangeInfo_; + /** + *
+   * Output only. [Output only] Information for additional pod range.
+   * 
+ * + * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public java.util.List getPodRangeInfoList() { + return podRangeInfo_; + } + /** + *
+   * Output only. [Output only] Information for additional pod range.
+   * 
+ * + * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public java.util.List + getPodRangeInfoOrBuilderList() { + return podRangeInfo_; + } + /** + *
+   * Output only. [Output only] Information for additional pod range.
+   * 
+ * + * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public int getPodRangeInfoCount() { + return podRangeInfo_.size(); + } + /** + *
+   * Output only. [Output only] Information for additional pod range.
+   * 
+ * + * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.container.v1.RangeInfo getPodRangeInfo(int index) { + return podRangeInfo_.get(index); + } + /** + *
+   * Output only. [Output only] Information for additional pod range.
+   * 
+ * + * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.container.v1.RangeInfoOrBuilder getPodRangeInfoOrBuilder( + int index) { + return podRangeInfo_.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 < podRangeNames_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, podRangeNames_.getRaw(i)); + } + for (int i = 0; i < podRangeInfo_.size(); i++) { + output.writeMessage(2, podRangeInfo_.get(i)); + } + getUnknownFields().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 < podRangeNames_.size(); i++) { + dataSize += computeStringSizeNoTag(podRangeNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getPodRangeNamesList().size(); + } + for (int i = 0; i < podRangeInfo_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, podRangeInfo_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.AdditionalPodRangesConfig)) { + return super.equals(obj); + } + com.google.container.v1.AdditionalPodRangesConfig other = (com.google.container.v1.AdditionalPodRangesConfig) obj; + + if (!getPodRangeNamesList() + .equals(other.getPodRangeNamesList())) return false; + if (!getPodRangeInfoList() + .equals(other.getPodRangeInfoList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getPodRangeNamesCount() > 0) { + hash = (37 * hash) + POD_RANGE_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getPodRangeNamesList().hashCode(); + } + if (getPodRangeInfoCount() > 0) { + hash = (37 * hash) + POD_RANGE_INFO_FIELD_NUMBER; + hash = (53 * hash) + getPodRangeInfoList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.AdditionalPodRangesConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.AdditionalPodRangesConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.AdditionalPodRangesConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.AdditionalPodRangesConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.AdditionalPodRangesConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.AdditionalPodRangesConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.AdditionalPodRangesConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.AdditionalPodRangesConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.AdditionalPodRangesConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.AdditionalPodRangesConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.AdditionalPodRangesConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.AdditionalPodRangesConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.AdditionalPodRangesConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * AdditionalPodRangesConfig is the configuration for additional pod secondary
+   * ranges supporting the ClusterUpdate message.
+   * 
+ * + * Protobuf type {@code google.container.v1.AdditionalPodRangesConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.AdditionalPodRangesConfig) + com.google.container.v1.AdditionalPodRangesConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AdditionalPodRangesConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AdditionalPodRangesConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.AdditionalPodRangesConfig.class, com.google.container.v1.AdditionalPodRangesConfig.Builder.class); + } + + // Construct using com.google.container.v1.AdditionalPodRangesConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + podRangeNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + if (podRangeInfoBuilder_ == null) { + podRangeInfo_ = java.util.Collections.emptyList(); + } else { + podRangeInfo_ = null; + podRangeInfoBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AdditionalPodRangesConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.AdditionalPodRangesConfig getDefaultInstanceForType() { + return com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.AdditionalPodRangesConfig build() { + com.google.container.v1.AdditionalPodRangesConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.AdditionalPodRangesConfig buildPartial() { + com.google.container.v1.AdditionalPodRangesConfig result = new com.google.container.v1.AdditionalPodRangesConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1.AdditionalPodRangesConfig result) { + if (podRangeInfoBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + podRangeInfo_ = java.util.Collections.unmodifiableList(podRangeInfo_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.podRangeInfo_ = podRangeInfo_; + } else { + result.podRangeInfo_ = podRangeInfoBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1.AdditionalPodRangesConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + podRangeNames_.makeImmutable(); + result.podRangeNames_ = podRangeNames_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.AdditionalPodRangesConfig) { + return mergeFrom((com.google.container.v1.AdditionalPodRangesConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.AdditionalPodRangesConfig other) { + if (other == com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance()) return this; + if (!other.podRangeNames_.isEmpty()) { + if (podRangeNames_.isEmpty()) { + podRangeNames_ = other.podRangeNames_; + bitField0_ |= 0x00000001; + } else { + ensurePodRangeNamesIsMutable(); + podRangeNames_.addAll(other.podRangeNames_); + } + onChanged(); + } + if (podRangeInfoBuilder_ == null) { + if (!other.podRangeInfo_.isEmpty()) { + if (podRangeInfo_.isEmpty()) { + podRangeInfo_ = other.podRangeInfo_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensurePodRangeInfoIsMutable(); + podRangeInfo_.addAll(other.podRangeInfo_); + } + onChanged(); + } + } else { + if (!other.podRangeInfo_.isEmpty()) { + if (podRangeInfoBuilder_.isEmpty()) { + podRangeInfoBuilder_.dispose(); + podRangeInfoBuilder_ = null; + podRangeInfo_ = other.podRangeInfo_; + bitField0_ = (bitField0_ & ~0x00000002); + podRangeInfoBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPodRangeInfoFieldBuilder() : null; + } else { + podRangeInfoBuilder_.addAllMessages(other.podRangeInfo_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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(); + ensurePodRangeNamesIsMutable(); + podRangeNames_.add(s); + break; + } // case 10 + case 18: { + com.google.container.v1.RangeInfo m = + input.readMessage( + com.google.container.v1.RangeInfo.parser(), + extensionRegistry); + if (podRangeInfoBuilder_ == null) { + ensurePodRangeInfoIsMutable(); + podRangeInfo_.add(m); + } else { + podRangeInfoBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList podRangeNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensurePodRangeNamesIsMutable() { + if (!podRangeNames_.isModifiable()) { + podRangeNames_ = new com.google.protobuf.LazyStringArrayList(podRangeNames_); + } + bitField0_ |= 0x00000001; + } + /** + *
+     * Name for pod secondary ipv4 range which has the actual range defined ahead.
+     * 
+ * + * repeated string pod_range_names = 1; + * @return A list containing the podRangeNames. + */ + public com.google.protobuf.ProtocolStringList + getPodRangeNamesList() { + podRangeNames_.makeImmutable(); + return podRangeNames_; + } + /** + *
+     * Name for pod secondary ipv4 range which has the actual range defined ahead.
+     * 
+ * + * repeated string pod_range_names = 1; + * @return The count of podRangeNames. + */ + public int getPodRangeNamesCount() { + return podRangeNames_.size(); + } + /** + *
+     * Name for pod secondary ipv4 range which has the actual range defined ahead.
+     * 
+ * + * repeated string pod_range_names = 1; + * @param index The index of the element to return. + * @return The podRangeNames at the given index. + */ + public java.lang.String getPodRangeNames(int index) { + return podRangeNames_.get(index); + } + /** + *
+     * Name for pod secondary ipv4 range which has the actual range defined ahead.
+     * 
+ * + * repeated string pod_range_names = 1; + * @param index The index of the value to return. + * @return The bytes of the podRangeNames at the given index. + */ + public com.google.protobuf.ByteString + getPodRangeNamesBytes(int index) { + return podRangeNames_.getByteString(index); + } + /** + *
+     * Name for pod secondary ipv4 range which has the actual range defined ahead.
+     * 
+ * + * repeated string pod_range_names = 1; + * @param index The index to set the value at. + * @param value The podRangeNames to set. + * @return This builder for chaining. + */ + public Builder setPodRangeNames( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensurePodRangeNamesIsMutable(); + podRangeNames_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Name for pod secondary ipv4 range which has the actual range defined ahead.
+     * 
+ * + * repeated string pod_range_names = 1; + * @param value The podRangeNames to add. + * @return This builder for chaining. + */ + public Builder addPodRangeNames( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensurePodRangeNamesIsMutable(); + podRangeNames_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Name for pod secondary ipv4 range which has the actual range defined ahead.
+     * 
+ * + * repeated string pod_range_names = 1; + * @param values The podRangeNames to add. + * @return This builder for chaining. + */ + public Builder addAllPodRangeNames( + java.lang.Iterable values) { + ensurePodRangeNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, podRangeNames_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Name for pod secondary ipv4 range which has the actual range defined ahead.
+     * 
+ * + * repeated string pod_range_names = 1; + * @return This builder for chaining. + */ + public Builder clearPodRangeNames() { + podRangeNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; + onChanged(); + return this; + } + /** + *
+     * Name for pod secondary ipv4 range which has the actual range defined ahead.
+     * 
+ * + * repeated string pod_range_names = 1; + * @param value The bytes of the podRangeNames to add. + * @return This builder for chaining. + */ + public Builder addPodRangeNamesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensurePodRangeNamesIsMutable(); + podRangeNames_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List podRangeInfo_ = + java.util.Collections.emptyList(); + private void ensurePodRangeInfoIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + podRangeInfo_ = new java.util.ArrayList(podRangeInfo_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.RangeInfo, com.google.container.v1.RangeInfo.Builder, com.google.container.v1.RangeInfoOrBuilder> podRangeInfoBuilder_; + + /** + *
+     * Output only. [Output only] Information for additional pod range.
+     * 
+ * + * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List getPodRangeInfoList() { + if (podRangeInfoBuilder_ == null) { + return java.util.Collections.unmodifiableList(podRangeInfo_); + } else { + return podRangeInfoBuilder_.getMessageList(); + } + } + /** + *
+     * Output only. [Output only] Information for additional pod range.
+     * 
+ * + * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public int getPodRangeInfoCount() { + if (podRangeInfoBuilder_ == null) { + return podRangeInfo_.size(); + } else { + return podRangeInfoBuilder_.getCount(); + } + } + /** + *
+     * Output only. [Output only] Information for additional pod range.
+     * 
+ * + * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.container.v1.RangeInfo getPodRangeInfo(int index) { + if (podRangeInfoBuilder_ == null) { + return podRangeInfo_.get(index); + } else { + return podRangeInfoBuilder_.getMessage(index); + } + } + /** + *
+     * Output only. [Output only] Information for additional pod range.
+     * 
+ * + * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setPodRangeInfo( + int index, com.google.container.v1.RangeInfo value) { + if (podRangeInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePodRangeInfoIsMutable(); + podRangeInfo_.set(index, value); + onChanged(); + } else { + podRangeInfoBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Output only. [Output only] Information for additional pod range.
+     * 
+ * + * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setPodRangeInfo( + int index, com.google.container.v1.RangeInfo.Builder builderForValue) { + if (podRangeInfoBuilder_ == null) { + ensurePodRangeInfoIsMutable(); + podRangeInfo_.set(index, builderForValue.build()); + onChanged(); + } else { + podRangeInfoBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. [Output only] Information for additional pod range.
+     * 
+ * + * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addPodRangeInfo(com.google.container.v1.RangeInfo value) { + if (podRangeInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePodRangeInfoIsMutable(); + podRangeInfo_.add(value); + onChanged(); + } else { + podRangeInfoBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Output only. [Output only] Information for additional pod range.
+     * 
+ * + * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addPodRangeInfo( + int index, com.google.container.v1.RangeInfo value) { + if (podRangeInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePodRangeInfoIsMutable(); + podRangeInfo_.add(index, value); + onChanged(); + } else { + podRangeInfoBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Output only. [Output only] Information for additional pod range.
+     * 
+ * + * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addPodRangeInfo( + com.google.container.v1.RangeInfo.Builder builderForValue) { + if (podRangeInfoBuilder_ == null) { + ensurePodRangeInfoIsMutable(); + podRangeInfo_.add(builderForValue.build()); + onChanged(); + } else { + podRangeInfoBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. [Output only] Information for additional pod range.
+     * 
+ * + * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addPodRangeInfo( + int index, com.google.container.v1.RangeInfo.Builder builderForValue) { + if (podRangeInfoBuilder_ == null) { + ensurePodRangeInfoIsMutable(); + podRangeInfo_.add(index, builderForValue.build()); + onChanged(); + } else { + podRangeInfoBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. [Output only] Information for additional pod range.
+     * 
+ * + * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addAllPodRangeInfo( + java.lang.Iterable values) { + if (podRangeInfoBuilder_ == null) { + ensurePodRangeInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, podRangeInfo_); + onChanged(); + } else { + podRangeInfoBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Output only. [Output only] Information for additional pod range.
+     * 
+ * + * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearPodRangeInfo() { + if (podRangeInfoBuilder_ == null) { + podRangeInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + podRangeInfoBuilder_.clear(); + } + return this; + } + /** + *
+     * Output only. [Output only] Information for additional pod range.
+     * 
+ * + * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder removePodRangeInfo(int index) { + if (podRangeInfoBuilder_ == null) { + ensurePodRangeInfoIsMutable(); + podRangeInfo_.remove(index); + onChanged(); + } else { + podRangeInfoBuilder_.remove(index); + } + return this; + } + /** + *
+     * Output only. [Output only] Information for additional pod range.
+     * 
+ * + * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.container.v1.RangeInfo.Builder getPodRangeInfoBuilder( + int index) { + return getPodRangeInfoFieldBuilder().getBuilder(index); + } + /** + *
+     * Output only. [Output only] Information for additional pod range.
+     * 
+ * + * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.container.v1.RangeInfoOrBuilder getPodRangeInfoOrBuilder( + int index) { + if (podRangeInfoBuilder_ == null) { + return podRangeInfo_.get(index); } else { + return podRangeInfoBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Output only. [Output only] Information for additional pod range.
+     * 
+ * + * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List + getPodRangeInfoOrBuilderList() { + if (podRangeInfoBuilder_ != null) { + return podRangeInfoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(podRangeInfo_); + } + } + /** + *
+     * Output only. [Output only] Information for additional pod range.
+     * 
+ * + * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.container.v1.RangeInfo.Builder addPodRangeInfoBuilder() { + return getPodRangeInfoFieldBuilder().addBuilder( + com.google.container.v1.RangeInfo.getDefaultInstance()); + } + /** + *
+     * Output only. [Output only] Information for additional pod range.
+     * 
+ * + * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.container.v1.RangeInfo.Builder addPodRangeInfoBuilder( + int index) { + return getPodRangeInfoFieldBuilder().addBuilder( + index, com.google.container.v1.RangeInfo.getDefaultInstance()); + } + /** + *
+     * Output only. [Output only] Information for additional pod range.
+     * 
+ * + * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List + getPodRangeInfoBuilderList() { + return getPodRangeInfoFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.RangeInfo, com.google.container.v1.RangeInfo.Builder, com.google.container.v1.RangeInfoOrBuilder> + getPodRangeInfoFieldBuilder() { + if (podRangeInfoBuilder_ == null) { + podRangeInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.RangeInfo, com.google.container.v1.RangeInfo.Builder, com.google.container.v1.RangeInfoOrBuilder>( + podRangeInfo_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + podRangeInfo_ = null; + } + return podRangeInfoBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.AdditionalPodRangesConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.AdditionalPodRangesConfig) + private static final com.google.container.v1.AdditionalPodRangesConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.AdditionalPodRangesConfig(); + } + + public static com.google.container.v1.AdditionalPodRangesConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdditionalPodRangesConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.AdditionalPodRangesConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalPodRangesConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalPodRangesConfigOrBuilder.java new file mode 100644 index 000000000000..d910bf321919 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdditionalPodRangesConfigOrBuilder.java @@ -0,0 +1,95 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface AdditionalPodRangesConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.AdditionalPodRangesConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Name for pod secondary ipv4 range which has the actual range defined ahead.
+   * 
+ * + * repeated string pod_range_names = 1; + * @return A list containing the podRangeNames. + */ + java.util.List + getPodRangeNamesList(); + /** + *
+   * Name for pod secondary ipv4 range which has the actual range defined ahead.
+   * 
+ * + * repeated string pod_range_names = 1; + * @return The count of podRangeNames. + */ + int getPodRangeNamesCount(); + /** + *
+   * Name for pod secondary ipv4 range which has the actual range defined ahead.
+   * 
+ * + * repeated string pod_range_names = 1; + * @param index The index of the element to return. + * @return The podRangeNames at the given index. + */ + java.lang.String getPodRangeNames(int index); + /** + *
+   * Name for pod secondary ipv4 range which has the actual range defined ahead.
+   * 
+ * + * repeated string pod_range_names = 1; + * @param index The index of the value to return. + * @return The bytes of the podRangeNames at the given index. + */ + com.google.protobuf.ByteString + getPodRangeNamesBytes(int index); + + /** + *
+   * Output only. [Output only] Information for additional pod range.
+   * 
+ * + * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + java.util.List + getPodRangeInfoList(); + /** + *
+   * Output only. [Output only] Information for additional pod range.
+   * 
+ * + * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.container.v1.RangeInfo getPodRangeInfo(int index); + /** + *
+   * Output only. [Output only] Information for additional pod range.
+   * 
+ * + * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + int getPodRangeInfoCount(); + /** + *
+   * Output only. [Output only] Information for additional pod range.
+   * 
+ * + * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + java.util.List + getPodRangeInfoOrBuilderList(); + /** + *
+   * Output only. [Output only] Information for additional pod range.
+   * 
+ * + * repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.container.v1.RangeInfoOrBuilder getPodRangeInfoOrBuilder( + int index); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfig.java new file mode 100644 index 000000000000..340b6892f477 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfig.java @@ -0,0 +1,3360 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Configuration for the addons that can be automatically spun up in the
+ * cluster, enabling additional functionality.
+ * 
+ * + * Protobuf type {@code google.container.v1.AddonsConfig} + */ +public final class AddonsConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AddonsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AddonsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.AddonsConfig.class, com.google.container.v1.AddonsConfig.Builder.class); + } + + private int bitField0_; + public static final int HTTP_LOAD_BALANCING_FIELD_NUMBER = 1; + private com.google.container.v1.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.v1.HttpLoadBalancing http_load_balancing = 1; + * @return Whether the httpLoadBalancing field is set. + */ + @java.lang.Override + public boolean hasHttpLoadBalancing() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * 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.v1.HttpLoadBalancing http_load_balancing = 1; + * @return The httpLoadBalancing. + */ + @java.lang.Override + public com.google.container.v1.HttpLoadBalancing getHttpLoadBalancing() { + return httpLoadBalancing_ == null ? com.google.container.v1.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.v1.HttpLoadBalancing http_load_balancing = 1; + */ + @java.lang.Override + public com.google.container.v1.HttpLoadBalancingOrBuilder getHttpLoadBalancingOrBuilder() { + return httpLoadBalancing_ == null ? com.google.container.v1.HttpLoadBalancing.getDefaultInstance() : httpLoadBalancing_; + } + + public static final int HORIZONTAL_POD_AUTOSCALING_FIELD_NUMBER = 2; + private com.google.container.v1.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.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * @return Whether the horizontalPodAutoscaling field is set. + */ + @java.lang.Override + public boolean hasHorizontalPodAutoscaling() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * 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.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * @return The horizontalPodAutoscaling. + */ + @java.lang.Override + public com.google.container.v1.HorizontalPodAutoscaling getHorizontalPodAutoscaling() { + return horizontalPodAutoscaling_ == null ? com.google.container.v1.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.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + @java.lang.Override + public com.google.container.v1.HorizontalPodAutoscalingOrBuilder getHorizontalPodAutoscalingOrBuilder() { + return horizontalPodAutoscaling_ == null ? com.google.container.v1.HorizontalPodAutoscaling.getDefaultInstance() : horizontalPodAutoscaling_; + } + + public static final int KUBERNETES_DASHBOARD_FIELD_NUMBER = 3; + private com.google.container.v1.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.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. + * See google/container/v1/cluster_service.proto;l=1196 + * @return Whether the kubernetesDashboard field is set. + */ + @java.lang.Override + @java.lang.Deprecated public boolean hasKubernetesDashboard() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+   * 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.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. + * See google/container/v1/cluster_service.proto;l=1196 + * @return The kubernetesDashboard. + */ + @java.lang.Override + @java.lang.Deprecated public com.google.container.v1.KubernetesDashboard getKubernetesDashboard() { + return kubernetesDashboard_ == null ? com.google.container.v1.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.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + */ + @java.lang.Override + @java.lang.Deprecated public com.google.container.v1.KubernetesDashboardOrBuilder getKubernetesDashboardOrBuilder() { + return kubernetesDashboard_ == null ? com.google.container.v1.KubernetesDashboard.getDefaultInstance() : kubernetesDashboard_; + } + + public static final int NETWORK_POLICY_CONFIG_FIELD_NUMBER = 4; + private com.google.container.v1.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.v1.NetworkPolicyConfig network_policy_config = 4; + * @return Whether the networkPolicyConfig field is set. + */ + @java.lang.Override + public boolean hasNetworkPolicyConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+   * 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.v1.NetworkPolicyConfig network_policy_config = 4; + * @return The networkPolicyConfig. + */ + @java.lang.Override + public com.google.container.v1.NetworkPolicyConfig getNetworkPolicyConfig() { + return networkPolicyConfig_ == null ? com.google.container.v1.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.v1.NetworkPolicyConfig network_policy_config = 4; + */ + @java.lang.Override + public com.google.container.v1.NetworkPolicyConfigOrBuilder getNetworkPolicyConfigOrBuilder() { + return networkPolicyConfig_ == null ? com.google.container.v1.NetworkPolicyConfig.getDefaultInstance() : networkPolicyConfig_; + } + + public static final int CLOUD_RUN_CONFIG_FIELD_NUMBER = 7; + private com.google.container.v1.CloudRunConfig cloudRunConfig_; + /** + *
+   * Configuration for the Cloud Run addon, which allows the user to use a
+   * managed Knative service.
+   * 
+ * + * .google.container.v1.CloudRunConfig cloud_run_config = 7; + * @return Whether the cloudRunConfig field is set. + */ + @java.lang.Override + public boolean hasCloudRunConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+   * Configuration for the Cloud Run addon, which allows the user to use a
+   * managed Knative service.
+   * 
+ * + * .google.container.v1.CloudRunConfig cloud_run_config = 7; + * @return The cloudRunConfig. + */ + @java.lang.Override + public com.google.container.v1.CloudRunConfig getCloudRunConfig() { + return cloudRunConfig_ == null ? com.google.container.v1.CloudRunConfig.getDefaultInstance() : cloudRunConfig_; + } + /** + *
+   * Configuration for the Cloud Run addon, which allows the user to use a
+   * managed Knative service.
+   * 
+ * + * .google.container.v1.CloudRunConfig cloud_run_config = 7; + */ + @java.lang.Override + public com.google.container.v1.CloudRunConfigOrBuilder getCloudRunConfigOrBuilder() { + return cloudRunConfig_ == null ? com.google.container.v1.CloudRunConfig.getDefaultInstance() : cloudRunConfig_; + } + + public static final int DNS_CACHE_CONFIG_FIELD_NUMBER = 8; + private com.google.container.v1.DnsCacheConfig dnsCacheConfig_; + /** + *
+   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+   * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + * @return Whether the dnsCacheConfig field is set. + */ + @java.lang.Override + public boolean hasDnsCacheConfig() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+   * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + * @return The dnsCacheConfig. + */ + @java.lang.Override + public com.google.container.v1.DnsCacheConfig getDnsCacheConfig() { + return dnsCacheConfig_ == null ? com.google.container.v1.DnsCacheConfig.getDefaultInstance() : dnsCacheConfig_; + } + /** + *
+   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+   * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + */ + @java.lang.Override + public com.google.container.v1.DnsCacheConfigOrBuilder getDnsCacheConfigOrBuilder() { + return dnsCacheConfig_ == null ? com.google.container.v1.DnsCacheConfig.getDefaultInstance() : dnsCacheConfig_; + } + + public static final int CONFIG_CONNECTOR_CONFIG_FIELD_NUMBER = 10; + private com.google.container.v1.ConfigConnectorConfig configConnectorConfig_; + /** + *
+   * Configuration for the ConfigConnector add-on, a Kubernetes
+   * extension to manage hosted GCP services through the Kubernetes API
+   * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + * @return Whether the configConnectorConfig field is set. + */ + @java.lang.Override + public boolean hasConfigConnectorConfig() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+   * Configuration for the ConfigConnector add-on, a Kubernetes
+   * extension to manage hosted GCP services through the Kubernetes API
+   * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + * @return The configConnectorConfig. + */ + @java.lang.Override + public com.google.container.v1.ConfigConnectorConfig getConfigConnectorConfig() { + return configConnectorConfig_ == null ? com.google.container.v1.ConfigConnectorConfig.getDefaultInstance() : configConnectorConfig_; + } + /** + *
+   * Configuration for the ConfigConnector add-on, a Kubernetes
+   * extension to manage hosted GCP services through the Kubernetes API
+   * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + */ + @java.lang.Override + public com.google.container.v1.ConfigConnectorConfigOrBuilder getConfigConnectorConfigOrBuilder() { + return configConnectorConfig_ == null ? com.google.container.v1.ConfigConnectorConfig.getDefaultInstance() : configConnectorConfig_; + } + + public static final int GCE_PERSISTENT_DISK_CSI_DRIVER_CONFIG_FIELD_NUMBER = 11; + private com.google.container.v1.GcePersistentDiskCsiDriverConfig gcePersistentDiskCsiDriverConfig_; + /** + *
+   * Configuration for the Compute Engine Persistent Disk CSI driver.
+   * 
+ * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * @return Whether the gcePersistentDiskCsiDriverConfig field is set. + */ + @java.lang.Override + public boolean hasGcePersistentDiskCsiDriverConfig() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+   * Configuration for the Compute Engine Persistent Disk CSI driver.
+   * 
+ * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * @return The gcePersistentDiskCsiDriverConfig. + */ + @java.lang.Override + public com.google.container.v1.GcePersistentDiskCsiDriverConfig getGcePersistentDiskCsiDriverConfig() { + return gcePersistentDiskCsiDriverConfig_ == null ? com.google.container.v1.GcePersistentDiskCsiDriverConfig.getDefaultInstance() : gcePersistentDiskCsiDriverConfig_; + } + /** + *
+   * Configuration for the Compute Engine Persistent Disk CSI driver.
+   * 
+ * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + */ + @java.lang.Override + public com.google.container.v1.GcePersistentDiskCsiDriverConfigOrBuilder getGcePersistentDiskCsiDriverConfigOrBuilder() { + return gcePersistentDiskCsiDriverConfig_ == null ? com.google.container.v1.GcePersistentDiskCsiDriverConfig.getDefaultInstance() : gcePersistentDiskCsiDriverConfig_; + } + + public static final int GCP_FILESTORE_CSI_DRIVER_CONFIG_FIELD_NUMBER = 14; + private com.google.container.v1.GcpFilestoreCsiDriverConfig gcpFilestoreCsiDriverConfig_; + /** + *
+   * Configuration for the GCP Filestore CSI driver.
+   * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * @return Whether the gcpFilestoreCsiDriverConfig field is set. + */ + @java.lang.Override + public boolean hasGcpFilestoreCsiDriverConfig() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + *
+   * Configuration for the GCP Filestore CSI driver.
+   * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * @return The gcpFilestoreCsiDriverConfig. + */ + @java.lang.Override + public com.google.container.v1.GcpFilestoreCsiDriverConfig getGcpFilestoreCsiDriverConfig() { + return gcpFilestoreCsiDriverConfig_ == null ? com.google.container.v1.GcpFilestoreCsiDriverConfig.getDefaultInstance() : gcpFilestoreCsiDriverConfig_; + } + /** + *
+   * Configuration for the GCP Filestore CSI driver.
+   * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + */ + @java.lang.Override + public com.google.container.v1.GcpFilestoreCsiDriverConfigOrBuilder getGcpFilestoreCsiDriverConfigOrBuilder() { + return gcpFilestoreCsiDriverConfig_ == null ? com.google.container.v1.GcpFilestoreCsiDriverConfig.getDefaultInstance() : gcpFilestoreCsiDriverConfig_; + } + + public static final int GKE_BACKUP_AGENT_CONFIG_FIELD_NUMBER = 16; + private com.google.container.v1.GkeBackupAgentConfig gkeBackupAgentConfig_; + /** + *
+   * Configuration for the Backup for GKE agent addon.
+   * 
+ * + * .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; + * @return Whether the gkeBackupAgentConfig field is set. + */ + @java.lang.Override + public boolean hasGkeBackupAgentConfig() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + *
+   * Configuration for the Backup for GKE agent addon.
+   * 
+ * + * .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; + * @return The gkeBackupAgentConfig. + */ + @java.lang.Override + public com.google.container.v1.GkeBackupAgentConfig getGkeBackupAgentConfig() { + return gkeBackupAgentConfig_ == null ? com.google.container.v1.GkeBackupAgentConfig.getDefaultInstance() : gkeBackupAgentConfig_; + } + /** + *
+   * Configuration for the Backup for GKE agent addon.
+   * 
+ * + * .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; + */ + @java.lang.Override + public com.google.container.v1.GkeBackupAgentConfigOrBuilder getGkeBackupAgentConfigOrBuilder() { + return gkeBackupAgentConfig_ == null ? com.google.container.v1.GkeBackupAgentConfig.getDefaultInstance() : gkeBackupAgentConfig_; + } + + public static final int GCS_FUSE_CSI_DRIVER_CONFIG_FIELD_NUMBER = 17; + private com.google.container.v1.GcsFuseCsiDriverConfig gcsFuseCsiDriverConfig_; + /** + *
+   * Configuration for the Cloud Storage Fuse CSI driver.
+   * 
+ * + * .google.container.v1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; + * @return Whether the gcsFuseCsiDriverConfig field is set. + */ + @java.lang.Override + public boolean hasGcsFuseCsiDriverConfig() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + *
+   * Configuration for the Cloud Storage Fuse CSI driver.
+   * 
+ * + * .google.container.v1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; + * @return The gcsFuseCsiDriverConfig. + */ + @java.lang.Override + public com.google.container.v1.GcsFuseCsiDriverConfig getGcsFuseCsiDriverConfig() { + return gcsFuseCsiDriverConfig_ == null ? com.google.container.v1.GcsFuseCsiDriverConfig.getDefaultInstance() : gcsFuseCsiDriverConfig_; + } + /** + *
+   * Configuration for the Cloud Storage Fuse CSI driver.
+   * 
+ * + * .google.container.v1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; + */ + @java.lang.Override + public com.google.container.v1.GcsFuseCsiDriverConfigOrBuilder getGcsFuseCsiDriverConfigOrBuilder() { + return gcsFuseCsiDriverConfig_ == null ? com.google.container.v1.GcsFuseCsiDriverConfig.getDefaultInstance() : gcsFuseCsiDriverConfig_; + } + + public static final int STATEFUL_HA_CONFIG_FIELD_NUMBER = 18; + private com.google.container.v1.StatefulHAConfig statefulHaConfig_; + /** + *
+   * Optional. Configuration for the StatefulHA add-on.
+   * 
+ * + * .google.container.v1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the statefulHaConfig field is set. + */ + @java.lang.Override + public boolean hasStatefulHaConfig() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + *
+   * Optional. Configuration for the StatefulHA add-on.
+   * 
+ * + * .google.container.v1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return The statefulHaConfig. + */ + @java.lang.Override + public com.google.container.v1.StatefulHAConfig getStatefulHaConfig() { + return statefulHaConfig_ == null ? com.google.container.v1.StatefulHAConfig.getDefaultInstance() : statefulHaConfig_; + } + /** + *
+   * Optional. Configuration for the StatefulHA add-on.
+   * 
+ * + * .google.container.v1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.container.v1.StatefulHAConfigOrBuilder getStatefulHaConfigOrBuilder() { + return statefulHaConfig_ == null ? com.google.container.v1.StatefulHAConfig.getDefaultInstance() : statefulHaConfig_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getHttpLoadBalancing()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getHorizontalPodAutoscaling()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getKubernetesDashboard()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getNetworkPolicyConfig()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(7, getCloudRunConfig()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(8, getDnsCacheConfig()); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(10, getConfigConnectorConfig()); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(11, getGcePersistentDiskCsiDriverConfig()); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(14, getGcpFilestoreCsiDriverConfig()); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeMessage(16, getGkeBackupAgentConfig()); + } + if (((bitField0_ & 0x00000400) != 0)) { + output.writeMessage(17, getGcsFuseCsiDriverConfig()); + } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeMessage(18, getStatefulHaConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHttpLoadBalancing()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getHorizontalPodAutoscaling()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getKubernetesDashboard()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getNetworkPolicyConfig()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getCloudRunConfig()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getDnsCacheConfig()); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getConfigConnectorConfig()); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getGcePersistentDiskCsiDriverConfig()); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getGcpFilestoreCsiDriverConfig()); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getGkeBackupAgentConfig()); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getGcsFuseCsiDriverConfig()); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, getStatefulHaConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.AddonsConfig)) { + return super.equals(obj); + } + com.google.container.v1.AddonsConfig other = (com.google.container.v1.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 (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 (hasGcpFilestoreCsiDriverConfig() != other.hasGcpFilestoreCsiDriverConfig()) return false; + if (hasGcpFilestoreCsiDriverConfig()) { + if (!getGcpFilestoreCsiDriverConfig() + .equals(other.getGcpFilestoreCsiDriverConfig())) return false; + } + if (hasGkeBackupAgentConfig() != other.hasGkeBackupAgentConfig()) return false; + if (hasGkeBackupAgentConfig()) { + if (!getGkeBackupAgentConfig() + .equals(other.getGkeBackupAgentConfig())) return false; + } + if (hasGcsFuseCsiDriverConfig() != other.hasGcsFuseCsiDriverConfig()) return false; + if (hasGcsFuseCsiDriverConfig()) { + if (!getGcsFuseCsiDriverConfig() + .equals(other.getGcsFuseCsiDriverConfig())) return false; + } + if (hasStatefulHaConfig() != other.hasStatefulHaConfig()) return false; + if (hasStatefulHaConfig()) { + if (!getStatefulHaConfig() + .equals(other.getStatefulHaConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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 (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 (hasGcpFilestoreCsiDriverConfig()) { + hash = (37 * hash) + GCP_FILESTORE_CSI_DRIVER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGcpFilestoreCsiDriverConfig().hashCode(); + } + if (hasGkeBackupAgentConfig()) { + hash = (37 * hash) + GKE_BACKUP_AGENT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGkeBackupAgentConfig().hashCode(); + } + if (hasGcsFuseCsiDriverConfig()) { + hash = (37 * hash) + GCS_FUSE_CSI_DRIVER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGcsFuseCsiDriverConfig().hashCode(); + } + if (hasStatefulHaConfig()) { + hash = (37 * hash) + STATEFUL_HA_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getStatefulHaConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.AddonsConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.AddonsConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.AddonsConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.AddonsConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.AddonsConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.AddonsConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.AddonsConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.AddonsConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.AddonsConfig) + com.google.container.v1.AddonsConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AddonsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AddonsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.AddonsConfig.class, com.google.container.v1.AddonsConfig.Builder.class); + } + + // Construct using com.google.container.v1.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) { + getHttpLoadBalancingFieldBuilder(); + getHorizontalPodAutoscalingFieldBuilder(); + getKubernetesDashboardFieldBuilder(); + getNetworkPolicyConfigFieldBuilder(); + getCloudRunConfigFieldBuilder(); + getDnsCacheConfigFieldBuilder(); + getConfigConnectorConfigFieldBuilder(); + getGcePersistentDiskCsiDriverConfigFieldBuilder(); + getGcpFilestoreCsiDriverConfigFieldBuilder(); + getGkeBackupAgentConfigFieldBuilder(); + getGcsFuseCsiDriverConfigFieldBuilder(); + getStatefulHaConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + httpLoadBalancing_ = null; + if (httpLoadBalancingBuilder_ != null) { + httpLoadBalancingBuilder_.dispose(); + httpLoadBalancingBuilder_ = null; + } + horizontalPodAutoscaling_ = null; + if (horizontalPodAutoscalingBuilder_ != null) { + horizontalPodAutoscalingBuilder_.dispose(); + horizontalPodAutoscalingBuilder_ = null; + } + kubernetesDashboard_ = null; + if (kubernetesDashboardBuilder_ != null) { + kubernetesDashboardBuilder_.dispose(); + kubernetesDashboardBuilder_ = null; + } + networkPolicyConfig_ = null; + if (networkPolicyConfigBuilder_ != null) { + networkPolicyConfigBuilder_.dispose(); + networkPolicyConfigBuilder_ = null; + } + cloudRunConfig_ = null; + if (cloudRunConfigBuilder_ != null) { + cloudRunConfigBuilder_.dispose(); + cloudRunConfigBuilder_ = null; + } + dnsCacheConfig_ = null; + if (dnsCacheConfigBuilder_ != null) { + dnsCacheConfigBuilder_.dispose(); + dnsCacheConfigBuilder_ = null; + } + configConnectorConfig_ = null; + if (configConnectorConfigBuilder_ != null) { + configConnectorConfigBuilder_.dispose(); + configConnectorConfigBuilder_ = null; + } + gcePersistentDiskCsiDriverConfig_ = null; + if (gcePersistentDiskCsiDriverConfigBuilder_ != null) { + gcePersistentDiskCsiDriverConfigBuilder_.dispose(); + gcePersistentDiskCsiDriverConfigBuilder_ = null; + } + gcpFilestoreCsiDriverConfig_ = null; + if (gcpFilestoreCsiDriverConfigBuilder_ != null) { + gcpFilestoreCsiDriverConfigBuilder_.dispose(); + gcpFilestoreCsiDriverConfigBuilder_ = null; + } + gkeBackupAgentConfig_ = null; + if (gkeBackupAgentConfigBuilder_ != null) { + gkeBackupAgentConfigBuilder_.dispose(); + gkeBackupAgentConfigBuilder_ = null; + } + gcsFuseCsiDriverConfig_ = null; + if (gcsFuseCsiDriverConfigBuilder_ != null) { + gcsFuseCsiDriverConfigBuilder_.dispose(); + gcsFuseCsiDriverConfigBuilder_ = null; + } + statefulHaConfig_ = null; + if (statefulHaConfigBuilder_ != null) { + statefulHaConfigBuilder_.dispose(); + statefulHaConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AddonsConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.AddonsConfig getDefaultInstanceForType() { + return com.google.container.v1.AddonsConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.AddonsConfig build() { + com.google.container.v1.AddonsConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.AddonsConfig buildPartial() { + com.google.container.v1.AddonsConfig result = new com.google.container.v1.AddonsConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.AddonsConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.httpLoadBalancing_ = httpLoadBalancingBuilder_ == null + ? httpLoadBalancing_ + : httpLoadBalancingBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.horizontalPodAutoscaling_ = horizontalPodAutoscalingBuilder_ == null + ? horizontalPodAutoscaling_ + : horizontalPodAutoscalingBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.kubernetesDashboard_ = kubernetesDashboardBuilder_ == null + ? kubernetesDashboard_ + : kubernetesDashboardBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.networkPolicyConfig_ = networkPolicyConfigBuilder_ == null + ? networkPolicyConfig_ + : networkPolicyConfigBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.cloudRunConfig_ = cloudRunConfigBuilder_ == null + ? cloudRunConfig_ + : cloudRunConfigBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.dnsCacheConfig_ = dnsCacheConfigBuilder_ == null + ? dnsCacheConfig_ + : dnsCacheConfigBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.configConnectorConfig_ = configConnectorConfigBuilder_ == null + ? configConnectorConfig_ + : configConnectorConfigBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.gcePersistentDiskCsiDriverConfig_ = gcePersistentDiskCsiDriverConfigBuilder_ == null + ? gcePersistentDiskCsiDriverConfig_ + : gcePersistentDiskCsiDriverConfigBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.gcpFilestoreCsiDriverConfig_ = gcpFilestoreCsiDriverConfigBuilder_ == null + ? gcpFilestoreCsiDriverConfig_ + : gcpFilestoreCsiDriverConfigBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.gkeBackupAgentConfig_ = gkeBackupAgentConfigBuilder_ == null + ? gkeBackupAgentConfig_ + : gkeBackupAgentConfigBuilder_.build(); + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.gcsFuseCsiDriverConfig_ = gcsFuseCsiDriverConfigBuilder_ == null + ? gcsFuseCsiDriverConfig_ + : gcsFuseCsiDriverConfigBuilder_.build(); + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.statefulHaConfig_ = statefulHaConfigBuilder_ == null + ? statefulHaConfig_ + : statefulHaConfigBuilder_.build(); + to_bitField0_ |= 0x00000800; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.AddonsConfig) { + return mergeFrom((com.google.container.v1.AddonsConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.AddonsConfig other) { + if (other == com.google.container.v1.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.hasCloudRunConfig()) { + mergeCloudRunConfig(other.getCloudRunConfig()); + } + if (other.hasDnsCacheConfig()) { + mergeDnsCacheConfig(other.getDnsCacheConfig()); + } + if (other.hasConfigConnectorConfig()) { + mergeConfigConnectorConfig(other.getConfigConnectorConfig()); + } + if (other.hasGcePersistentDiskCsiDriverConfig()) { + mergeGcePersistentDiskCsiDriverConfig(other.getGcePersistentDiskCsiDriverConfig()); + } + if (other.hasGcpFilestoreCsiDriverConfig()) { + mergeGcpFilestoreCsiDriverConfig(other.getGcpFilestoreCsiDriverConfig()); + } + if (other.hasGkeBackupAgentConfig()) { + mergeGkeBackupAgentConfig(other.getGkeBackupAgentConfig()); + } + if (other.hasGcsFuseCsiDriverConfig()) { + mergeGcsFuseCsiDriverConfig(other.getGcsFuseCsiDriverConfig()); + } + if (other.hasStatefulHaConfig()) { + mergeStatefulHaConfig(other.getStatefulHaConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getHttpLoadBalancingFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getHorizontalPodAutoscalingFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getKubernetesDashboardFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getNetworkPolicyConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 58: { + input.readMessage( + getCloudRunConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 58 + case 66: { + input.readMessage( + getDnsCacheConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 66 + case 82: { + input.readMessage( + getConfigConnectorConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 82 + case 90: { + input.readMessage( + getGcePersistentDiskCsiDriverConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 90 + case 114: { + input.readMessage( + getGcpFilestoreCsiDriverConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 114 + case 130: { + input.readMessage( + getGkeBackupAgentConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 130 + case 138: { + input.readMessage( + getGcsFuseCsiDriverConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 138 + case 146: { + input.readMessage( + getStatefulHaConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 146 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.container.v1.HttpLoadBalancing httpLoadBalancing_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.HttpLoadBalancing, com.google.container.v1.HttpLoadBalancing.Builder, com.google.container.v1.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.v1.HttpLoadBalancing http_load_balancing = 1; + * @return Whether the httpLoadBalancing field is set. + */ + public boolean hasHttpLoadBalancing() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * 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.v1.HttpLoadBalancing http_load_balancing = 1; + * @return The httpLoadBalancing. + */ + public com.google.container.v1.HttpLoadBalancing getHttpLoadBalancing() { + if (httpLoadBalancingBuilder_ == null) { + return httpLoadBalancing_ == null ? com.google.container.v1.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.v1.HttpLoadBalancing http_load_balancing = 1; + */ + public Builder setHttpLoadBalancing(com.google.container.v1.HttpLoadBalancing value) { + if (httpLoadBalancingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + httpLoadBalancing_ = value; + } else { + httpLoadBalancingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + 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.v1.HttpLoadBalancing http_load_balancing = 1; + */ + public Builder setHttpLoadBalancing( + com.google.container.v1.HttpLoadBalancing.Builder builderForValue) { + if (httpLoadBalancingBuilder_ == null) { + httpLoadBalancing_ = builderForValue.build(); + } else { + httpLoadBalancingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + 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.v1.HttpLoadBalancing http_load_balancing = 1; + */ + public Builder mergeHttpLoadBalancing(com.google.container.v1.HttpLoadBalancing value) { + if (httpLoadBalancingBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + httpLoadBalancing_ != null && + httpLoadBalancing_ != com.google.container.v1.HttpLoadBalancing.getDefaultInstance()) { + getHttpLoadBalancingBuilder().mergeFrom(value); + } else { + httpLoadBalancing_ = value; + } + } else { + httpLoadBalancingBuilder_.mergeFrom(value); + } + if (httpLoadBalancing_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + 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.v1.HttpLoadBalancing http_load_balancing = 1; + */ + public Builder clearHttpLoadBalancing() { + bitField0_ = (bitField0_ & ~0x00000001); + httpLoadBalancing_ = null; + if (httpLoadBalancingBuilder_ != null) { + httpLoadBalancingBuilder_.dispose(); + httpLoadBalancingBuilder_ = null; + } + onChanged(); + 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.v1.HttpLoadBalancing http_load_balancing = 1; + */ + public com.google.container.v1.HttpLoadBalancing.Builder getHttpLoadBalancingBuilder() { + bitField0_ |= 0x00000001; + 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.v1.HttpLoadBalancing http_load_balancing = 1; + */ + public com.google.container.v1.HttpLoadBalancingOrBuilder getHttpLoadBalancingOrBuilder() { + if (httpLoadBalancingBuilder_ != null) { + return httpLoadBalancingBuilder_.getMessageOrBuilder(); + } else { + return httpLoadBalancing_ == null ? + com.google.container.v1.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.v1.HttpLoadBalancing http_load_balancing = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.HttpLoadBalancing, com.google.container.v1.HttpLoadBalancing.Builder, com.google.container.v1.HttpLoadBalancingOrBuilder> + getHttpLoadBalancingFieldBuilder() { + if (httpLoadBalancingBuilder_ == null) { + httpLoadBalancingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.HttpLoadBalancing, com.google.container.v1.HttpLoadBalancing.Builder, com.google.container.v1.HttpLoadBalancingOrBuilder>( + getHttpLoadBalancing(), + getParentForChildren(), + isClean()); + httpLoadBalancing_ = null; + } + return httpLoadBalancingBuilder_; + } + + private com.google.container.v1.HorizontalPodAutoscaling horizontalPodAutoscaling_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.HorizontalPodAutoscaling, com.google.container.v1.HorizontalPodAutoscaling.Builder, com.google.container.v1.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.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * @return Whether the horizontalPodAutoscaling field is set. + */ + public boolean hasHorizontalPodAutoscaling() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * 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.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * @return The horizontalPodAutoscaling. + */ + public com.google.container.v1.HorizontalPodAutoscaling getHorizontalPodAutoscaling() { + if (horizontalPodAutoscalingBuilder_ == null) { + return horizontalPodAutoscaling_ == null ? com.google.container.v1.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.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + public Builder setHorizontalPodAutoscaling(com.google.container.v1.HorizontalPodAutoscaling value) { + if (horizontalPodAutoscalingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + horizontalPodAutoscaling_ = value; + } else { + horizontalPodAutoscalingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + 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.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + public Builder setHorizontalPodAutoscaling( + com.google.container.v1.HorizontalPodAutoscaling.Builder builderForValue) { + if (horizontalPodAutoscalingBuilder_ == null) { + horizontalPodAutoscaling_ = builderForValue.build(); + } else { + horizontalPodAutoscalingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + 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.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + public Builder mergeHorizontalPodAutoscaling(com.google.container.v1.HorizontalPodAutoscaling value) { + if (horizontalPodAutoscalingBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + horizontalPodAutoscaling_ != null && + horizontalPodAutoscaling_ != com.google.container.v1.HorizontalPodAutoscaling.getDefaultInstance()) { + getHorizontalPodAutoscalingBuilder().mergeFrom(value); + } else { + horizontalPodAutoscaling_ = value; + } + } else { + horizontalPodAutoscalingBuilder_.mergeFrom(value); + } + if (horizontalPodAutoscaling_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + 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.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + public Builder clearHorizontalPodAutoscaling() { + bitField0_ = (bitField0_ & ~0x00000002); + horizontalPodAutoscaling_ = null; + if (horizontalPodAutoscalingBuilder_ != null) { + horizontalPodAutoscalingBuilder_.dispose(); + horizontalPodAutoscalingBuilder_ = null; + } + onChanged(); + 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.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + public com.google.container.v1.HorizontalPodAutoscaling.Builder getHorizontalPodAutoscalingBuilder() { + bitField0_ |= 0x00000002; + 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.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + public com.google.container.v1.HorizontalPodAutoscalingOrBuilder getHorizontalPodAutoscalingOrBuilder() { + if (horizontalPodAutoscalingBuilder_ != null) { + return horizontalPodAutoscalingBuilder_.getMessageOrBuilder(); + } else { + return horizontalPodAutoscaling_ == null ? + com.google.container.v1.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.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.HorizontalPodAutoscaling, com.google.container.v1.HorizontalPodAutoscaling.Builder, com.google.container.v1.HorizontalPodAutoscalingOrBuilder> + getHorizontalPodAutoscalingFieldBuilder() { + if (horizontalPodAutoscalingBuilder_ == null) { + horizontalPodAutoscalingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.HorizontalPodAutoscaling, com.google.container.v1.HorizontalPodAutoscaling.Builder, com.google.container.v1.HorizontalPodAutoscalingOrBuilder>( + getHorizontalPodAutoscaling(), + getParentForChildren(), + isClean()); + horizontalPodAutoscaling_ = null; + } + return horizontalPodAutoscalingBuilder_; + } + + private com.google.container.v1.KubernetesDashboard kubernetesDashboard_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.KubernetesDashboard, com.google.container.v1.KubernetesDashboard.Builder, com.google.container.v1.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.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. + * See google/container/v1/cluster_service.proto;l=1196 + * @return Whether the kubernetesDashboard field is set. + */ + @java.lang.Deprecated public boolean hasKubernetesDashboard() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * 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.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. + * See google/container/v1/cluster_service.proto;l=1196 + * @return The kubernetesDashboard. + */ + @java.lang.Deprecated public com.google.container.v1.KubernetesDashboard getKubernetesDashboard() { + if (kubernetesDashboardBuilder_ == null) { + return kubernetesDashboard_ == null ? com.google.container.v1.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.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setKubernetesDashboard(com.google.container.v1.KubernetesDashboard value) { + if (kubernetesDashboardBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kubernetesDashboard_ = value; + } else { + kubernetesDashboardBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + 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.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setKubernetesDashboard( + com.google.container.v1.KubernetesDashboard.Builder builderForValue) { + if (kubernetesDashboardBuilder_ == null) { + kubernetesDashboard_ = builderForValue.build(); + } else { + kubernetesDashboardBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + 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.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder mergeKubernetesDashboard(com.google.container.v1.KubernetesDashboard value) { + if (kubernetesDashboardBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + kubernetesDashboard_ != null && + kubernetesDashboard_ != com.google.container.v1.KubernetesDashboard.getDefaultInstance()) { + getKubernetesDashboardBuilder().mergeFrom(value); + } else { + kubernetesDashboard_ = value; + } + } else { + kubernetesDashboardBuilder_.mergeFrom(value); + } + if (kubernetesDashboard_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + 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.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearKubernetesDashboard() { + bitField0_ = (bitField0_ & ~0x00000004); + kubernetesDashboard_ = null; + if (kubernetesDashboardBuilder_ != null) { + kubernetesDashboardBuilder_.dispose(); + kubernetesDashboardBuilder_ = null; + } + onChanged(); + 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.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.container.v1.KubernetesDashboard.Builder getKubernetesDashboardBuilder() { + bitField0_ |= 0x00000004; + 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.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.container.v1.KubernetesDashboardOrBuilder getKubernetesDashboardOrBuilder() { + if (kubernetesDashboardBuilder_ != null) { + return kubernetesDashboardBuilder_.getMessageOrBuilder(); + } else { + return kubernetesDashboard_ == null ? + com.google.container.v1.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.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.KubernetesDashboard, com.google.container.v1.KubernetesDashboard.Builder, com.google.container.v1.KubernetesDashboardOrBuilder> + getKubernetesDashboardFieldBuilder() { + if (kubernetesDashboardBuilder_ == null) { + kubernetesDashboardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.KubernetesDashboard, com.google.container.v1.KubernetesDashboard.Builder, com.google.container.v1.KubernetesDashboardOrBuilder>( + getKubernetesDashboard(), + getParentForChildren(), + isClean()); + kubernetesDashboard_ = null; + } + return kubernetesDashboardBuilder_; + } + + private com.google.container.v1.NetworkPolicyConfig networkPolicyConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkPolicyConfig, com.google.container.v1.NetworkPolicyConfig.Builder, com.google.container.v1.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.v1.NetworkPolicyConfig network_policy_config = 4; + * @return Whether the networkPolicyConfig field is set. + */ + public boolean hasNetworkPolicyConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * 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.v1.NetworkPolicyConfig network_policy_config = 4; + * @return The networkPolicyConfig. + */ + public com.google.container.v1.NetworkPolicyConfig getNetworkPolicyConfig() { + if (networkPolicyConfigBuilder_ == null) { + return networkPolicyConfig_ == null ? com.google.container.v1.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.v1.NetworkPolicyConfig network_policy_config = 4; + */ + public Builder setNetworkPolicyConfig(com.google.container.v1.NetworkPolicyConfig value) { + if (networkPolicyConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkPolicyConfig_ = value; + } else { + networkPolicyConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + 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.v1.NetworkPolicyConfig network_policy_config = 4; + */ + public Builder setNetworkPolicyConfig( + com.google.container.v1.NetworkPolicyConfig.Builder builderForValue) { + if (networkPolicyConfigBuilder_ == null) { + networkPolicyConfig_ = builderForValue.build(); + } else { + networkPolicyConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + 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.v1.NetworkPolicyConfig network_policy_config = 4; + */ + public Builder mergeNetworkPolicyConfig(com.google.container.v1.NetworkPolicyConfig value) { + if (networkPolicyConfigBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + networkPolicyConfig_ != null && + networkPolicyConfig_ != com.google.container.v1.NetworkPolicyConfig.getDefaultInstance()) { + getNetworkPolicyConfigBuilder().mergeFrom(value); + } else { + networkPolicyConfig_ = value; + } + } else { + networkPolicyConfigBuilder_.mergeFrom(value); + } + if (networkPolicyConfig_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + 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.v1.NetworkPolicyConfig network_policy_config = 4; + */ + public Builder clearNetworkPolicyConfig() { + bitField0_ = (bitField0_ & ~0x00000008); + networkPolicyConfig_ = null; + if (networkPolicyConfigBuilder_ != null) { + networkPolicyConfigBuilder_.dispose(); + networkPolicyConfigBuilder_ = null; + } + onChanged(); + 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.v1.NetworkPolicyConfig network_policy_config = 4; + */ + public com.google.container.v1.NetworkPolicyConfig.Builder getNetworkPolicyConfigBuilder() { + bitField0_ |= 0x00000008; + 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.v1.NetworkPolicyConfig network_policy_config = 4; + */ + public com.google.container.v1.NetworkPolicyConfigOrBuilder getNetworkPolicyConfigOrBuilder() { + if (networkPolicyConfigBuilder_ != null) { + return networkPolicyConfigBuilder_.getMessageOrBuilder(); + } else { + return networkPolicyConfig_ == null ? + com.google.container.v1.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.v1.NetworkPolicyConfig network_policy_config = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkPolicyConfig, com.google.container.v1.NetworkPolicyConfig.Builder, com.google.container.v1.NetworkPolicyConfigOrBuilder> + getNetworkPolicyConfigFieldBuilder() { + if (networkPolicyConfigBuilder_ == null) { + networkPolicyConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkPolicyConfig, com.google.container.v1.NetworkPolicyConfig.Builder, com.google.container.v1.NetworkPolicyConfigOrBuilder>( + getNetworkPolicyConfig(), + getParentForChildren(), + isClean()); + networkPolicyConfig_ = null; + } + return networkPolicyConfigBuilder_; + } + + private com.google.container.v1.CloudRunConfig cloudRunConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.CloudRunConfig, com.google.container.v1.CloudRunConfig.Builder, com.google.container.v1.CloudRunConfigOrBuilder> cloudRunConfigBuilder_; + /** + *
+     * Configuration for the Cloud Run addon, which allows the user to use a
+     * managed Knative service.
+     * 
+ * + * .google.container.v1.CloudRunConfig cloud_run_config = 7; + * @return Whether the cloudRunConfig field is set. + */ + public boolean hasCloudRunConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+     * Configuration for the Cloud Run addon, which allows the user to use a
+     * managed Knative service.
+     * 
+ * + * .google.container.v1.CloudRunConfig cloud_run_config = 7; + * @return The cloudRunConfig. + */ + public com.google.container.v1.CloudRunConfig getCloudRunConfig() { + if (cloudRunConfigBuilder_ == null) { + return cloudRunConfig_ == null ? com.google.container.v1.CloudRunConfig.getDefaultInstance() : cloudRunConfig_; + } else { + return cloudRunConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for the Cloud Run addon, which allows the user to use a
+     * managed Knative service.
+     * 
+ * + * .google.container.v1.CloudRunConfig cloud_run_config = 7; + */ + public Builder setCloudRunConfig(com.google.container.v1.CloudRunConfig value) { + if (cloudRunConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cloudRunConfig_ = value; + } else { + cloudRunConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Configuration for the Cloud Run addon, which allows the user to use a
+     * managed Knative service.
+     * 
+ * + * .google.container.v1.CloudRunConfig cloud_run_config = 7; + */ + public Builder setCloudRunConfig( + com.google.container.v1.CloudRunConfig.Builder builderForValue) { + if (cloudRunConfigBuilder_ == null) { + cloudRunConfig_ = builderForValue.build(); + } else { + cloudRunConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Configuration for the Cloud Run addon, which allows the user to use a
+     * managed Knative service.
+     * 
+ * + * .google.container.v1.CloudRunConfig cloud_run_config = 7; + */ + public Builder mergeCloudRunConfig(com.google.container.v1.CloudRunConfig value) { + if (cloudRunConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + cloudRunConfig_ != null && + cloudRunConfig_ != com.google.container.v1.CloudRunConfig.getDefaultInstance()) { + getCloudRunConfigBuilder().mergeFrom(value); + } else { + cloudRunConfig_ = value; + } + } else { + cloudRunConfigBuilder_.mergeFrom(value); + } + if (cloudRunConfig_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for the Cloud Run addon, which allows the user to use a
+     * managed Knative service.
+     * 
+ * + * .google.container.v1.CloudRunConfig cloud_run_config = 7; + */ + public Builder clearCloudRunConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + cloudRunConfig_ = null; + if (cloudRunConfigBuilder_ != null) { + cloudRunConfigBuilder_.dispose(); + cloudRunConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for the Cloud Run addon, which allows the user to use a
+     * managed Knative service.
+     * 
+ * + * .google.container.v1.CloudRunConfig cloud_run_config = 7; + */ + public com.google.container.v1.CloudRunConfig.Builder getCloudRunConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getCloudRunConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for the Cloud Run addon, which allows the user to use a
+     * managed Knative service.
+     * 
+ * + * .google.container.v1.CloudRunConfig cloud_run_config = 7; + */ + public com.google.container.v1.CloudRunConfigOrBuilder getCloudRunConfigOrBuilder() { + if (cloudRunConfigBuilder_ != null) { + return cloudRunConfigBuilder_.getMessageOrBuilder(); + } else { + return cloudRunConfig_ == null ? + com.google.container.v1.CloudRunConfig.getDefaultInstance() : cloudRunConfig_; + } + } + /** + *
+     * Configuration for the Cloud Run addon, which allows the user to use a
+     * managed Knative service.
+     * 
+ * + * .google.container.v1.CloudRunConfig cloud_run_config = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.CloudRunConfig, com.google.container.v1.CloudRunConfig.Builder, com.google.container.v1.CloudRunConfigOrBuilder> + getCloudRunConfigFieldBuilder() { + if (cloudRunConfigBuilder_ == null) { + cloudRunConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.CloudRunConfig, com.google.container.v1.CloudRunConfig.Builder, com.google.container.v1.CloudRunConfigOrBuilder>( + getCloudRunConfig(), + getParentForChildren(), + isClean()); + cloudRunConfig_ = null; + } + return cloudRunConfigBuilder_; + } + + private com.google.container.v1.DnsCacheConfig dnsCacheConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DnsCacheConfig, com.google.container.v1.DnsCacheConfig.Builder, com.google.container.v1.DnsCacheConfigOrBuilder> dnsCacheConfigBuilder_; + /** + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + * @return Whether the dnsCacheConfig field is set. + */ + public boolean hasDnsCacheConfig() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + * @return The dnsCacheConfig. + */ + public com.google.container.v1.DnsCacheConfig getDnsCacheConfig() { + if (dnsCacheConfigBuilder_ == null) { + return dnsCacheConfig_ == null ? com.google.container.v1.DnsCacheConfig.getDefaultInstance() : dnsCacheConfig_; + } else { + return dnsCacheConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + */ + public Builder setDnsCacheConfig(com.google.container.v1.DnsCacheConfig value) { + if (dnsCacheConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dnsCacheConfig_ = value; + } else { + dnsCacheConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + */ + public Builder setDnsCacheConfig( + com.google.container.v1.DnsCacheConfig.Builder builderForValue) { + if (dnsCacheConfigBuilder_ == null) { + dnsCacheConfig_ = builderForValue.build(); + } else { + dnsCacheConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + */ + public Builder mergeDnsCacheConfig(com.google.container.v1.DnsCacheConfig value) { + if (dnsCacheConfigBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && + dnsCacheConfig_ != null && + dnsCacheConfig_ != com.google.container.v1.DnsCacheConfig.getDefaultInstance()) { + getDnsCacheConfigBuilder().mergeFrom(value); + } else { + dnsCacheConfig_ = value; + } + } else { + dnsCacheConfigBuilder_.mergeFrom(value); + } + if (dnsCacheConfig_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + */ + public Builder clearDnsCacheConfig() { + bitField0_ = (bitField0_ & ~0x00000020); + dnsCacheConfig_ = null; + if (dnsCacheConfigBuilder_ != null) { + dnsCacheConfigBuilder_.dispose(); + dnsCacheConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + */ + public com.google.container.v1.DnsCacheConfig.Builder getDnsCacheConfigBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getDnsCacheConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + */ + public com.google.container.v1.DnsCacheConfigOrBuilder getDnsCacheConfigOrBuilder() { + if (dnsCacheConfigBuilder_ != null) { + return dnsCacheConfigBuilder_.getMessageOrBuilder(); + } else { + return dnsCacheConfig_ == null ? + com.google.container.v1.DnsCacheConfig.getDefaultInstance() : dnsCacheConfig_; + } + } + /** + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DnsCacheConfig, com.google.container.v1.DnsCacheConfig.Builder, com.google.container.v1.DnsCacheConfigOrBuilder> + getDnsCacheConfigFieldBuilder() { + if (dnsCacheConfigBuilder_ == null) { + dnsCacheConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DnsCacheConfig, com.google.container.v1.DnsCacheConfig.Builder, com.google.container.v1.DnsCacheConfigOrBuilder>( + getDnsCacheConfig(), + getParentForChildren(), + isClean()); + dnsCacheConfig_ = null; + } + return dnsCacheConfigBuilder_; + } + + private com.google.container.v1.ConfigConnectorConfig configConnectorConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ConfigConnectorConfig, com.google.container.v1.ConfigConnectorConfig.Builder, com.google.container.v1.ConfigConnectorConfigOrBuilder> configConnectorConfigBuilder_; + /** + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + * @return Whether the configConnectorConfig field is set. + */ + public boolean hasConfigConnectorConfig() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + * @return The configConnectorConfig. + */ + public com.google.container.v1.ConfigConnectorConfig getConfigConnectorConfig() { + if (configConnectorConfigBuilder_ == null) { + return configConnectorConfig_ == null ? com.google.container.v1.ConfigConnectorConfig.getDefaultInstance() : configConnectorConfig_; + } else { + return configConnectorConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + */ + public Builder setConfigConnectorConfig(com.google.container.v1.ConfigConnectorConfig value) { + if (configConnectorConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + configConnectorConfig_ = value; + } else { + configConnectorConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + */ + public Builder setConfigConnectorConfig( + com.google.container.v1.ConfigConnectorConfig.Builder builderForValue) { + if (configConnectorConfigBuilder_ == null) { + configConnectorConfig_ = builderForValue.build(); + } else { + configConnectorConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + */ + public Builder mergeConfigConnectorConfig(com.google.container.v1.ConfigConnectorConfig value) { + if (configConnectorConfigBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) && + configConnectorConfig_ != null && + configConnectorConfig_ != com.google.container.v1.ConfigConnectorConfig.getDefaultInstance()) { + getConfigConnectorConfigBuilder().mergeFrom(value); + } else { + configConnectorConfig_ = value; + } + } else { + configConnectorConfigBuilder_.mergeFrom(value); + } + if (configConnectorConfig_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + */ + public Builder clearConfigConnectorConfig() { + bitField0_ = (bitField0_ & ~0x00000040); + configConnectorConfig_ = null; + if (configConnectorConfigBuilder_ != null) { + configConnectorConfigBuilder_.dispose(); + configConnectorConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + */ + public com.google.container.v1.ConfigConnectorConfig.Builder getConfigConnectorConfigBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getConfigConnectorConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + */ + public com.google.container.v1.ConfigConnectorConfigOrBuilder getConfigConnectorConfigOrBuilder() { + if (configConnectorConfigBuilder_ != null) { + return configConnectorConfigBuilder_.getMessageOrBuilder(); + } else { + return configConnectorConfig_ == null ? + com.google.container.v1.ConfigConnectorConfig.getDefaultInstance() : configConnectorConfig_; + } + } + /** + *
+     * Configuration for the ConfigConnector add-on, a Kubernetes
+     * extension to manage hosted GCP services through the Kubernetes API
+     * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ConfigConnectorConfig, com.google.container.v1.ConfigConnectorConfig.Builder, com.google.container.v1.ConfigConnectorConfigOrBuilder> + getConfigConnectorConfigFieldBuilder() { + if (configConnectorConfigBuilder_ == null) { + configConnectorConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ConfigConnectorConfig, com.google.container.v1.ConfigConnectorConfig.Builder, com.google.container.v1.ConfigConnectorConfigOrBuilder>( + getConfigConnectorConfig(), + getParentForChildren(), + isClean()); + configConnectorConfig_ = null; + } + return configConnectorConfigBuilder_; + } + + private com.google.container.v1.GcePersistentDiskCsiDriverConfig gcePersistentDiskCsiDriverConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcePersistentDiskCsiDriverConfig, com.google.container.v1.GcePersistentDiskCsiDriverConfig.Builder, com.google.container.v1.GcePersistentDiskCsiDriverConfigOrBuilder> gcePersistentDiskCsiDriverConfigBuilder_; + /** + *
+     * Configuration for the Compute Engine Persistent Disk CSI driver.
+     * 
+ * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * @return Whether the gcePersistentDiskCsiDriverConfig field is set. + */ + public boolean hasGcePersistentDiskCsiDriverConfig() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+     * Configuration for the Compute Engine Persistent Disk CSI driver.
+     * 
+ * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * @return The gcePersistentDiskCsiDriverConfig. + */ + public com.google.container.v1.GcePersistentDiskCsiDriverConfig getGcePersistentDiskCsiDriverConfig() { + if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { + return gcePersistentDiskCsiDriverConfig_ == null ? com.google.container.v1.GcePersistentDiskCsiDriverConfig.getDefaultInstance() : gcePersistentDiskCsiDriverConfig_; + } else { + return gcePersistentDiskCsiDriverConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for the Compute Engine Persistent Disk CSI driver.
+     * 
+ * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + */ + public Builder setGcePersistentDiskCsiDriverConfig(com.google.container.v1.GcePersistentDiskCsiDriverConfig value) { + if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gcePersistentDiskCsiDriverConfig_ = value; + } else { + gcePersistentDiskCsiDriverConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * Configuration for the Compute Engine Persistent Disk CSI driver.
+     * 
+ * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + */ + public Builder setGcePersistentDiskCsiDriverConfig( + com.google.container.v1.GcePersistentDiskCsiDriverConfig.Builder builderForValue) { + if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { + gcePersistentDiskCsiDriverConfig_ = builderForValue.build(); + } else { + gcePersistentDiskCsiDriverConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * Configuration for the Compute Engine Persistent Disk CSI driver.
+     * 
+ * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + */ + public Builder mergeGcePersistentDiskCsiDriverConfig(com.google.container.v1.GcePersistentDiskCsiDriverConfig value) { + if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) && + gcePersistentDiskCsiDriverConfig_ != null && + gcePersistentDiskCsiDriverConfig_ != com.google.container.v1.GcePersistentDiskCsiDriverConfig.getDefaultInstance()) { + getGcePersistentDiskCsiDriverConfigBuilder().mergeFrom(value); + } else { + gcePersistentDiskCsiDriverConfig_ = value; + } + } else { + gcePersistentDiskCsiDriverConfigBuilder_.mergeFrom(value); + } + if (gcePersistentDiskCsiDriverConfig_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for the Compute Engine Persistent Disk CSI driver.
+     * 
+ * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + */ + public Builder clearGcePersistentDiskCsiDriverConfig() { + bitField0_ = (bitField0_ & ~0x00000080); + gcePersistentDiskCsiDriverConfig_ = null; + if (gcePersistentDiskCsiDriverConfigBuilder_ != null) { + gcePersistentDiskCsiDriverConfigBuilder_.dispose(); + gcePersistentDiskCsiDriverConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for the Compute Engine Persistent Disk CSI driver.
+     * 
+ * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + */ + public com.google.container.v1.GcePersistentDiskCsiDriverConfig.Builder getGcePersistentDiskCsiDriverConfigBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getGcePersistentDiskCsiDriverConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for the Compute Engine Persistent Disk CSI driver.
+     * 
+ * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + */ + public com.google.container.v1.GcePersistentDiskCsiDriverConfigOrBuilder getGcePersistentDiskCsiDriverConfigOrBuilder() { + if (gcePersistentDiskCsiDriverConfigBuilder_ != null) { + return gcePersistentDiskCsiDriverConfigBuilder_.getMessageOrBuilder(); + } else { + return gcePersistentDiskCsiDriverConfig_ == null ? + com.google.container.v1.GcePersistentDiskCsiDriverConfig.getDefaultInstance() : gcePersistentDiskCsiDriverConfig_; + } + } + /** + *
+     * Configuration for the Compute Engine Persistent Disk CSI driver.
+     * 
+ * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcePersistentDiskCsiDriverConfig, com.google.container.v1.GcePersistentDiskCsiDriverConfig.Builder, com.google.container.v1.GcePersistentDiskCsiDriverConfigOrBuilder> + getGcePersistentDiskCsiDriverConfigFieldBuilder() { + if (gcePersistentDiskCsiDriverConfigBuilder_ == null) { + gcePersistentDiskCsiDriverConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcePersistentDiskCsiDriverConfig, com.google.container.v1.GcePersistentDiskCsiDriverConfig.Builder, com.google.container.v1.GcePersistentDiskCsiDriverConfigOrBuilder>( + getGcePersistentDiskCsiDriverConfig(), + getParentForChildren(), + isClean()); + gcePersistentDiskCsiDriverConfig_ = null; + } + return gcePersistentDiskCsiDriverConfigBuilder_; + } + + private com.google.container.v1.GcpFilestoreCsiDriverConfig gcpFilestoreCsiDriverConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcpFilestoreCsiDriverConfig, com.google.container.v1.GcpFilestoreCsiDriverConfig.Builder, com.google.container.v1.GcpFilestoreCsiDriverConfigOrBuilder> gcpFilestoreCsiDriverConfigBuilder_; + /** + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * @return Whether the gcpFilestoreCsiDriverConfig field is set. + */ + public boolean hasGcpFilestoreCsiDriverConfig() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * @return The gcpFilestoreCsiDriverConfig. + */ + public com.google.container.v1.GcpFilestoreCsiDriverConfig getGcpFilestoreCsiDriverConfig() { + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + return gcpFilestoreCsiDriverConfig_ == null ? com.google.container.v1.GcpFilestoreCsiDriverConfig.getDefaultInstance() : gcpFilestoreCsiDriverConfig_; + } else { + return gcpFilestoreCsiDriverConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + */ + public Builder setGcpFilestoreCsiDriverConfig(com.google.container.v1.GcpFilestoreCsiDriverConfig value) { + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gcpFilestoreCsiDriverConfig_ = value; + } else { + gcpFilestoreCsiDriverConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + */ + public Builder setGcpFilestoreCsiDriverConfig( + com.google.container.v1.GcpFilestoreCsiDriverConfig.Builder builderForValue) { + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + gcpFilestoreCsiDriverConfig_ = builderForValue.build(); + } else { + gcpFilestoreCsiDriverConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + */ + public Builder mergeGcpFilestoreCsiDriverConfig(com.google.container.v1.GcpFilestoreCsiDriverConfig value) { + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) && + gcpFilestoreCsiDriverConfig_ != null && + gcpFilestoreCsiDriverConfig_ != com.google.container.v1.GcpFilestoreCsiDriverConfig.getDefaultInstance()) { + getGcpFilestoreCsiDriverConfigBuilder().mergeFrom(value); + } else { + gcpFilestoreCsiDriverConfig_ = value; + } + } else { + gcpFilestoreCsiDriverConfigBuilder_.mergeFrom(value); + } + if (gcpFilestoreCsiDriverConfig_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + */ + public Builder clearGcpFilestoreCsiDriverConfig() { + bitField0_ = (bitField0_ & ~0x00000100); + gcpFilestoreCsiDriverConfig_ = null; + if (gcpFilestoreCsiDriverConfigBuilder_ != null) { + gcpFilestoreCsiDriverConfigBuilder_.dispose(); + gcpFilestoreCsiDriverConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + */ + public com.google.container.v1.GcpFilestoreCsiDriverConfig.Builder getGcpFilestoreCsiDriverConfigBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getGcpFilestoreCsiDriverConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + */ + public com.google.container.v1.GcpFilestoreCsiDriverConfigOrBuilder getGcpFilestoreCsiDriverConfigOrBuilder() { + if (gcpFilestoreCsiDriverConfigBuilder_ != null) { + return gcpFilestoreCsiDriverConfigBuilder_.getMessageOrBuilder(); + } else { + return gcpFilestoreCsiDriverConfig_ == null ? + com.google.container.v1.GcpFilestoreCsiDriverConfig.getDefaultInstance() : gcpFilestoreCsiDriverConfig_; + } + } + /** + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcpFilestoreCsiDriverConfig, com.google.container.v1.GcpFilestoreCsiDriverConfig.Builder, com.google.container.v1.GcpFilestoreCsiDriverConfigOrBuilder> + getGcpFilestoreCsiDriverConfigFieldBuilder() { + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + gcpFilestoreCsiDriverConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcpFilestoreCsiDriverConfig, com.google.container.v1.GcpFilestoreCsiDriverConfig.Builder, com.google.container.v1.GcpFilestoreCsiDriverConfigOrBuilder>( + getGcpFilestoreCsiDriverConfig(), + getParentForChildren(), + isClean()); + gcpFilestoreCsiDriverConfig_ = null; + } + return gcpFilestoreCsiDriverConfigBuilder_; + } + + private com.google.container.v1.GkeBackupAgentConfig gkeBackupAgentConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GkeBackupAgentConfig, com.google.container.v1.GkeBackupAgentConfig.Builder, com.google.container.v1.GkeBackupAgentConfigOrBuilder> gkeBackupAgentConfigBuilder_; + /** + *
+     * Configuration for the Backup for GKE agent addon.
+     * 
+ * + * .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; + * @return Whether the gkeBackupAgentConfig field is set. + */ + public boolean hasGkeBackupAgentConfig() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + *
+     * Configuration for the Backup for GKE agent addon.
+     * 
+ * + * .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; + * @return The gkeBackupAgentConfig. + */ + public com.google.container.v1.GkeBackupAgentConfig getGkeBackupAgentConfig() { + if (gkeBackupAgentConfigBuilder_ == null) { + return gkeBackupAgentConfig_ == null ? com.google.container.v1.GkeBackupAgentConfig.getDefaultInstance() : gkeBackupAgentConfig_; + } else { + return gkeBackupAgentConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for the Backup for GKE agent addon.
+     * 
+ * + * .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; + */ + public Builder setGkeBackupAgentConfig(com.google.container.v1.GkeBackupAgentConfig value) { + if (gkeBackupAgentConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gkeBackupAgentConfig_ = value; + } else { + gkeBackupAgentConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * Configuration for the Backup for GKE agent addon.
+     * 
+ * + * .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; + */ + public Builder setGkeBackupAgentConfig( + com.google.container.v1.GkeBackupAgentConfig.Builder builderForValue) { + if (gkeBackupAgentConfigBuilder_ == null) { + gkeBackupAgentConfig_ = builderForValue.build(); + } else { + gkeBackupAgentConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * Configuration for the Backup for GKE agent addon.
+     * 
+ * + * .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; + */ + public Builder mergeGkeBackupAgentConfig(com.google.container.v1.GkeBackupAgentConfig value) { + if (gkeBackupAgentConfigBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) && + gkeBackupAgentConfig_ != null && + gkeBackupAgentConfig_ != com.google.container.v1.GkeBackupAgentConfig.getDefaultInstance()) { + getGkeBackupAgentConfigBuilder().mergeFrom(value); + } else { + gkeBackupAgentConfig_ = value; + } + } else { + gkeBackupAgentConfigBuilder_.mergeFrom(value); + } + if (gkeBackupAgentConfig_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for the Backup for GKE agent addon.
+     * 
+ * + * .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; + */ + public Builder clearGkeBackupAgentConfig() { + bitField0_ = (bitField0_ & ~0x00000200); + gkeBackupAgentConfig_ = null; + if (gkeBackupAgentConfigBuilder_ != null) { + gkeBackupAgentConfigBuilder_.dispose(); + gkeBackupAgentConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for the Backup for GKE agent addon.
+     * 
+ * + * .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; + */ + public com.google.container.v1.GkeBackupAgentConfig.Builder getGkeBackupAgentConfigBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getGkeBackupAgentConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for the Backup for GKE agent addon.
+     * 
+ * + * .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; + */ + public com.google.container.v1.GkeBackupAgentConfigOrBuilder getGkeBackupAgentConfigOrBuilder() { + if (gkeBackupAgentConfigBuilder_ != null) { + return gkeBackupAgentConfigBuilder_.getMessageOrBuilder(); + } else { + return gkeBackupAgentConfig_ == null ? + com.google.container.v1.GkeBackupAgentConfig.getDefaultInstance() : gkeBackupAgentConfig_; + } + } + /** + *
+     * Configuration for the Backup for GKE agent addon.
+     * 
+ * + * .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GkeBackupAgentConfig, com.google.container.v1.GkeBackupAgentConfig.Builder, com.google.container.v1.GkeBackupAgentConfigOrBuilder> + getGkeBackupAgentConfigFieldBuilder() { + if (gkeBackupAgentConfigBuilder_ == null) { + gkeBackupAgentConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GkeBackupAgentConfig, com.google.container.v1.GkeBackupAgentConfig.Builder, com.google.container.v1.GkeBackupAgentConfigOrBuilder>( + getGkeBackupAgentConfig(), + getParentForChildren(), + isClean()); + gkeBackupAgentConfig_ = null; + } + return gkeBackupAgentConfigBuilder_; + } + + private com.google.container.v1.GcsFuseCsiDriverConfig gcsFuseCsiDriverConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcsFuseCsiDriverConfig, com.google.container.v1.GcsFuseCsiDriverConfig.Builder, com.google.container.v1.GcsFuseCsiDriverConfigOrBuilder> gcsFuseCsiDriverConfigBuilder_; + /** + *
+     * Configuration for the Cloud Storage Fuse CSI driver.
+     * 
+ * + * .google.container.v1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; + * @return Whether the gcsFuseCsiDriverConfig field is set. + */ + public boolean hasGcsFuseCsiDriverConfig() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + *
+     * Configuration for the Cloud Storage Fuse CSI driver.
+     * 
+ * + * .google.container.v1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; + * @return The gcsFuseCsiDriverConfig. + */ + public com.google.container.v1.GcsFuseCsiDriverConfig getGcsFuseCsiDriverConfig() { + if (gcsFuseCsiDriverConfigBuilder_ == null) { + return gcsFuseCsiDriverConfig_ == null ? com.google.container.v1.GcsFuseCsiDriverConfig.getDefaultInstance() : gcsFuseCsiDriverConfig_; + } else { + return gcsFuseCsiDriverConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for the Cloud Storage Fuse CSI driver.
+     * 
+ * + * .google.container.v1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; + */ + public Builder setGcsFuseCsiDriverConfig(com.google.container.v1.GcsFuseCsiDriverConfig value) { + if (gcsFuseCsiDriverConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gcsFuseCsiDriverConfig_ = value; + } else { + gcsFuseCsiDriverConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+     * Configuration for the Cloud Storage Fuse CSI driver.
+     * 
+ * + * .google.container.v1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; + */ + public Builder setGcsFuseCsiDriverConfig( + com.google.container.v1.GcsFuseCsiDriverConfig.Builder builderForValue) { + if (gcsFuseCsiDriverConfigBuilder_ == null) { + gcsFuseCsiDriverConfig_ = builderForValue.build(); + } else { + gcsFuseCsiDriverConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+     * Configuration for the Cloud Storage Fuse CSI driver.
+     * 
+ * + * .google.container.v1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; + */ + public Builder mergeGcsFuseCsiDriverConfig(com.google.container.v1.GcsFuseCsiDriverConfig value) { + if (gcsFuseCsiDriverConfigBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) && + gcsFuseCsiDriverConfig_ != null && + gcsFuseCsiDriverConfig_ != com.google.container.v1.GcsFuseCsiDriverConfig.getDefaultInstance()) { + getGcsFuseCsiDriverConfigBuilder().mergeFrom(value); + } else { + gcsFuseCsiDriverConfig_ = value; + } + } else { + gcsFuseCsiDriverConfigBuilder_.mergeFrom(value); + } + if (gcsFuseCsiDriverConfig_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for the Cloud Storage Fuse CSI driver.
+     * 
+ * + * .google.container.v1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; + */ + public Builder clearGcsFuseCsiDriverConfig() { + bitField0_ = (bitField0_ & ~0x00000400); + gcsFuseCsiDriverConfig_ = null; + if (gcsFuseCsiDriverConfigBuilder_ != null) { + gcsFuseCsiDriverConfigBuilder_.dispose(); + gcsFuseCsiDriverConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for the Cloud Storage Fuse CSI driver.
+     * 
+ * + * .google.container.v1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; + */ + public com.google.container.v1.GcsFuseCsiDriverConfig.Builder getGcsFuseCsiDriverConfigBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getGcsFuseCsiDriverConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for the Cloud Storage Fuse CSI driver.
+     * 
+ * + * .google.container.v1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; + */ + public com.google.container.v1.GcsFuseCsiDriverConfigOrBuilder getGcsFuseCsiDriverConfigOrBuilder() { + if (gcsFuseCsiDriverConfigBuilder_ != null) { + return gcsFuseCsiDriverConfigBuilder_.getMessageOrBuilder(); + } else { + return gcsFuseCsiDriverConfig_ == null ? + com.google.container.v1.GcsFuseCsiDriverConfig.getDefaultInstance() : gcsFuseCsiDriverConfig_; + } + } + /** + *
+     * Configuration for the Cloud Storage Fuse CSI driver.
+     * 
+ * + * .google.container.v1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcsFuseCsiDriverConfig, com.google.container.v1.GcsFuseCsiDriverConfig.Builder, com.google.container.v1.GcsFuseCsiDriverConfigOrBuilder> + getGcsFuseCsiDriverConfigFieldBuilder() { + if (gcsFuseCsiDriverConfigBuilder_ == null) { + gcsFuseCsiDriverConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcsFuseCsiDriverConfig, com.google.container.v1.GcsFuseCsiDriverConfig.Builder, com.google.container.v1.GcsFuseCsiDriverConfigOrBuilder>( + getGcsFuseCsiDriverConfig(), + getParentForChildren(), + isClean()); + gcsFuseCsiDriverConfig_ = null; + } + return gcsFuseCsiDriverConfigBuilder_; + } + + private com.google.container.v1.StatefulHAConfig statefulHaConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.StatefulHAConfig, com.google.container.v1.StatefulHAConfig.Builder, com.google.container.v1.StatefulHAConfigOrBuilder> statefulHaConfigBuilder_; + /** + *
+     * Optional. Configuration for the StatefulHA add-on.
+     * 
+ * + * .google.container.v1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the statefulHaConfig field is set. + */ + public boolean hasStatefulHaConfig() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + *
+     * Optional. Configuration for the StatefulHA add-on.
+     * 
+ * + * .google.container.v1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return The statefulHaConfig. + */ + public com.google.container.v1.StatefulHAConfig getStatefulHaConfig() { + if (statefulHaConfigBuilder_ == null) { + return statefulHaConfig_ == null ? com.google.container.v1.StatefulHAConfig.getDefaultInstance() : statefulHaConfig_; + } else { + return statefulHaConfigBuilder_.getMessage(); + } + } + /** + *
+     * Optional. Configuration for the StatefulHA add-on.
+     * 
+ * + * .google.container.v1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setStatefulHaConfig(com.google.container.v1.StatefulHAConfig value) { + if (statefulHaConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + statefulHaConfig_ = value; + } else { + statefulHaConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * Optional. Configuration for the StatefulHA add-on.
+     * 
+ * + * .google.container.v1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setStatefulHaConfig( + com.google.container.v1.StatefulHAConfig.Builder builderForValue) { + if (statefulHaConfigBuilder_ == null) { + statefulHaConfig_ = builderForValue.build(); + } else { + statefulHaConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * Optional. Configuration for the StatefulHA add-on.
+     * 
+ * + * .google.container.v1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeStatefulHaConfig(com.google.container.v1.StatefulHAConfig value) { + if (statefulHaConfigBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) && + statefulHaConfig_ != null && + statefulHaConfig_ != com.google.container.v1.StatefulHAConfig.getDefaultInstance()) { + getStatefulHaConfigBuilder().mergeFrom(value); + } else { + statefulHaConfig_ = value; + } + } else { + statefulHaConfigBuilder_.mergeFrom(value); + } + if (statefulHaConfig_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + /** + *
+     * Optional. Configuration for the StatefulHA add-on.
+     * 
+ * + * .google.container.v1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearStatefulHaConfig() { + bitField0_ = (bitField0_ & ~0x00000800); + statefulHaConfig_ = null; + if (statefulHaConfigBuilder_ != null) { + statefulHaConfigBuilder_.dispose(); + statefulHaConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Optional. Configuration for the StatefulHA add-on.
+     * 
+ * + * .google.container.v1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.container.v1.StatefulHAConfig.Builder getStatefulHaConfigBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return getStatefulHaConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Optional. Configuration for the StatefulHA add-on.
+     * 
+ * + * .google.container.v1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.container.v1.StatefulHAConfigOrBuilder getStatefulHaConfigOrBuilder() { + if (statefulHaConfigBuilder_ != null) { + return statefulHaConfigBuilder_.getMessageOrBuilder(); + } else { + return statefulHaConfig_ == null ? + com.google.container.v1.StatefulHAConfig.getDefaultInstance() : statefulHaConfig_; + } + } + /** + *
+     * Optional. Configuration for the StatefulHA add-on.
+     * 
+ * + * .google.container.v1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.StatefulHAConfig, com.google.container.v1.StatefulHAConfig.Builder, com.google.container.v1.StatefulHAConfigOrBuilder> + getStatefulHaConfigFieldBuilder() { + if (statefulHaConfigBuilder_ == null) { + statefulHaConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.StatefulHAConfig, com.google.container.v1.StatefulHAConfig.Builder, com.google.container.v1.StatefulHAConfigOrBuilder>( + getStatefulHaConfig(), + getParentForChildren(), + isClean()); + statefulHaConfig_ = null; + } + return statefulHaConfigBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.AddonsConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.AddonsConfig) + private static final com.google.container.v1.AddonsConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.AddonsConfig(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.AddonsConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfigOrBuilder.java new file mode 100644 index 000000000000..0529e514b661 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfigOrBuilder.java @@ -0,0 +1,371 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface AddonsConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.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.v1.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.v1.HttpLoadBalancing http_load_balancing = 1; + * @return The httpLoadBalancing. + */ + com.google.container.v1.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.v1.HttpLoadBalancing http_load_balancing = 1; + */ + com.google.container.v1.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.v1.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.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * @return The horizontalPodAutoscaling. + */ + com.google.container.v1.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.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + */ + com.google.container.v1.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.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. + * See google/container/v1/cluster_service.proto;l=1196 + * @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.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. + * See google/container/v1/cluster_service.proto;l=1196 + * @return The kubernetesDashboard. + */ + @java.lang.Deprecated com.google.container.v1.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.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + */ + @java.lang.Deprecated com.google.container.v1.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.v1.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.v1.NetworkPolicyConfig network_policy_config = 4; + * @return The networkPolicyConfig. + */ + com.google.container.v1.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.v1.NetworkPolicyConfig network_policy_config = 4; + */ + com.google.container.v1.NetworkPolicyConfigOrBuilder getNetworkPolicyConfigOrBuilder(); + + /** + *
+   * Configuration for the Cloud Run addon, which allows the user to use a
+   * managed Knative service.
+   * 
+ * + * .google.container.v1.CloudRunConfig cloud_run_config = 7; + * @return Whether the cloudRunConfig field is set. + */ + boolean hasCloudRunConfig(); + /** + *
+   * Configuration for the Cloud Run addon, which allows the user to use a
+   * managed Knative service.
+   * 
+ * + * .google.container.v1.CloudRunConfig cloud_run_config = 7; + * @return The cloudRunConfig. + */ + com.google.container.v1.CloudRunConfig getCloudRunConfig(); + /** + *
+   * Configuration for the Cloud Run addon, which allows the user to use a
+   * managed Knative service.
+   * 
+ * + * .google.container.v1.CloudRunConfig cloud_run_config = 7; + */ + com.google.container.v1.CloudRunConfigOrBuilder getCloudRunConfigOrBuilder(); + + /** + *
+   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+   * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + * @return Whether the dnsCacheConfig field is set. + */ + boolean hasDnsCacheConfig(); + /** + *
+   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+   * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + * @return The dnsCacheConfig. + */ + com.google.container.v1.DnsCacheConfig getDnsCacheConfig(); + /** + *
+   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+   * 
+ * + * .google.container.v1.DnsCacheConfig dns_cache_config = 8; + */ + com.google.container.v1.DnsCacheConfigOrBuilder getDnsCacheConfigOrBuilder(); + + /** + *
+   * Configuration for the ConfigConnector add-on, a Kubernetes
+   * extension to manage hosted GCP services through the Kubernetes API
+   * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + * @return Whether the configConnectorConfig field is set. + */ + boolean hasConfigConnectorConfig(); + /** + *
+   * Configuration for the ConfigConnector add-on, a Kubernetes
+   * extension to manage hosted GCP services through the Kubernetes API
+   * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + * @return The configConnectorConfig. + */ + com.google.container.v1.ConfigConnectorConfig getConfigConnectorConfig(); + /** + *
+   * Configuration for the ConfigConnector add-on, a Kubernetes
+   * extension to manage hosted GCP services through the Kubernetes API
+   * 
+ * + * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; + */ + com.google.container.v1.ConfigConnectorConfigOrBuilder getConfigConnectorConfigOrBuilder(); + + /** + *
+   * Configuration for the Compute Engine Persistent Disk CSI driver.
+   * 
+ * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * @return Whether the gcePersistentDiskCsiDriverConfig field is set. + */ + boolean hasGcePersistentDiskCsiDriverConfig(); + /** + *
+   * Configuration for the Compute Engine Persistent Disk CSI driver.
+   * 
+ * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + * @return The gcePersistentDiskCsiDriverConfig. + */ + com.google.container.v1.GcePersistentDiskCsiDriverConfig getGcePersistentDiskCsiDriverConfig(); + /** + *
+   * Configuration for the Compute Engine Persistent Disk CSI driver.
+   * 
+ * + * .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + */ + com.google.container.v1.GcePersistentDiskCsiDriverConfigOrBuilder getGcePersistentDiskCsiDriverConfigOrBuilder(); + + /** + *
+   * Configuration for the GCP Filestore CSI driver.
+   * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * @return Whether the gcpFilestoreCsiDriverConfig field is set. + */ + boolean hasGcpFilestoreCsiDriverConfig(); + /** + *
+   * Configuration for the GCP Filestore CSI driver.
+   * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * @return The gcpFilestoreCsiDriverConfig. + */ + com.google.container.v1.GcpFilestoreCsiDriverConfig getGcpFilestoreCsiDriverConfig(); + /** + *
+   * Configuration for the GCP Filestore CSI driver.
+   * 
+ * + * .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + */ + com.google.container.v1.GcpFilestoreCsiDriverConfigOrBuilder getGcpFilestoreCsiDriverConfigOrBuilder(); + + /** + *
+   * Configuration for the Backup for GKE agent addon.
+   * 
+ * + * .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; + * @return Whether the gkeBackupAgentConfig field is set. + */ + boolean hasGkeBackupAgentConfig(); + /** + *
+   * Configuration for the Backup for GKE agent addon.
+   * 
+ * + * .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; + * @return The gkeBackupAgentConfig. + */ + com.google.container.v1.GkeBackupAgentConfig getGkeBackupAgentConfig(); + /** + *
+   * Configuration for the Backup for GKE agent addon.
+   * 
+ * + * .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; + */ + com.google.container.v1.GkeBackupAgentConfigOrBuilder getGkeBackupAgentConfigOrBuilder(); + + /** + *
+   * Configuration for the Cloud Storage Fuse CSI driver.
+   * 
+ * + * .google.container.v1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; + * @return Whether the gcsFuseCsiDriverConfig field is set. + */ + boolean hasGcsFuseCsiDriverConfig(); + /** + *
+   * Configuration for the Cloud Storage Fuse CSI driver.
+   * 
+ * + * .google.container.v1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; + * @return The gcsFuseCsiDriverConfig. + */ + com.google.container.v1.GcsFuseCsiDriverConfig getGcsFuseCsiDriverConfig(); + /** + *
+   * Configuration for the Cloud Storage Fuse CSI driver.
+   * 
+ * + * .google.container.v1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; + */ + com.google.container.v1.GcsFuseCsiDriverConfigOrBuilder getGcsFuseCsiDriverConfigOrBuilder(); + + /** + *
+   * Optional. Configuration for the StatefulHA add-on.
+   * 
+ * + * .google.container.v1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the statefulHaConfig field is set. + */ + boolean hasStatefulHaConfig(); + /** + *
+   * Optional. Configuration for the StatefulHA add-on.
+   * 
+ * + * .google.container.v1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return The statefulHaConfig. + */ + com.google.container.v1.StatefulHAConfig getStatefulHaConfig(); + /** + *
+   * Optional. Configuration for the StatefulHA add-on.
+   * 
+ * + * .google.container.v1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.container.v1.StatefulHAConfigOrBuilder getStatefulHaConfigOrBuilder(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedDatapathObservabilityConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedDatapathObservabilityConfig.java new file mode 100644 index 000000000000..281ba0184795 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedDatapathObservabilityConfig.java @@ -0,0 +1,899 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * AdvancedDatapathObservabilityConfig specifies configuration of observability
+ * features of advanced datapath.
+ * 
+ * + * Protobuf type {@code google.container.v1.AdvancedDatapathObservabilityConfig} + */ +public final class AdvancedDatapathObservabilityConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.AdvancedDatapathObservabilityConfig) + AdvancedDatapathObservabilityConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use AdvancedDatapathObservabilityConfig.newBuilder() to construct. + private AdvancedDatapathObservabilityConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AdvancedDatapathObservabilityConfig() { + relayMode_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AdvancedDatapathObservabilityConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AdvancedDatapathObservabilityConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AdvancedDatapathObservabilityConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.AdvancedDatapathObservabilityConfig.class, com.google.container.v1.AdvancedDatapathObservabilityConfig.Builder.class); + } + + /** + *
+   * Supported Relay modes
+   * 
+ * + * Protobuf enum {@code google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode} + */ + public enum RelayMode + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Default value. This shouldn't be used.
+     * 
+ * + * RELAY_MODE_UNSPECIFIED = 0; + */ + RELAY_MODE_UNSPECIFIED(0), + /** + *
+     * disabled
+     * 
+ * + * DISABLED = 1; + */ + DISABLED(1), + /** + *
+     * exposed via internal load balancer
+     * 
+ * + * INTERNAL_VPC_LB = 3; + */ + INTERNAL_VPC_LB(3), + /** + *
+     * exposed via external load balancer
+     * 
+ * + * EXTERNAL_LB = 4; + */ + EXTERNAL_LB(4), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Default value. This shouldn't be used.
+     * 
+ * + * RELAY_MODE_UNSPECIFIED = 0; + */ + public static final int RELAY_MODE_UNSPECIFIED_VALUE = 0; + /** + *
+     * disabled
+     * 
+ * + * DISABLED = 1; + */ + public static final int DISABLED_VALUE = 1; + /** + *
+     * exposed via internal load balancer
+     * 
+ * + * INTERNAL_VPC_LB = 3; + */ + public static final int INTERNAL_VPC_LB_VALUE = 3; + /** + *
+     * exposed via external load balancer
+     * 
+ * + * EXTERNAL_LB = 4; + */ + public static final int EXTERNAL_LB_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 RelayMode 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 RelayMode forNumber(int value) { + switch (value) { + case 0: return RELAY_MODE_UNSPECIFIED; + case 1: return DISABLED; + case 3: return INTERNAL_VPC_LB; + case 4: return EXTERNAL_LB; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + RelayMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RelayMode findValueByNumber(int number) { + return RelayMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.AdvancedDatapathObservabilityConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final RelayMode[] VALUES = values(); + + public static RelayMode 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 RelayMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode) + } + + private int bitField0_; + public static final int ENABLE_METRICS_FIELD_NUMBER = 1; + private boolean enableMetrics_ = false; + /** + *
+   * Expose flow metrics on nodes
+   * 
+ * + * bool enable_metrics = 1; + * @return The enableMetrics. + */ + @java.lang.Override + public boolean getEnableMetrics() { + return enableMetrics_; + } + + public static final int RELAY_MODE_FIELD_NUMBER = 2; + private int relayMode_ = 0; + /** + *
+   * Method used to make Relay available
+   * 
+ * + * .google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; + * @return The enum numeric value on the wire for relayMode. + */ + @java.lang.Override public int getRelayModeValue() { + return relayMode_; + } + /** + *
+   * Method used to make Relay available
+   * 
+ * + * .google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; + * @return The relayMode. + */ + @java.lang.Override public com.google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode getRelayMode() { + com.google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode result = com.google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode.forNumber(relayMode_); + return result == null ? com.google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode.UNRECOGNIZED : result; + } + + public static final int ENABLE_RELAY_FIELD_NUMBER = 3; + private boolean enableRelay_ = false; + /** + *
+   * Enable Relay component
+   * 
+ * + * optional bool enable_relay = 3; + * @return Whether the enableRelay field is set. + */ + @java.lang.Override + public boolean hasEnableRelay() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Enable Relay component
+   * 
+ * + * optional bool enable_relay = 3; + * @return The enableRelay. + */ + @java.lang.Override + public boolean getEnableRelay() { + return enableRelay_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (enableMetrics_ != false) { + output.writeBool(1, enableMetrics_); + } + if (relayMode_ != com.google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode.RELAY_MODE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, relayMode_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(3, enableRelay_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableMetrics_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enableMetrics_); + } + if (relayMode_ != com.google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode.RELAY_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, relayMode_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, enableRelay_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.AdvancedDatapathObservabilityConfig)) { + return super.equals(obj); + } + com.google.container.v1.AdvancedDatapathObservabilityConfig other = (com.google.container.v1.AdvancedDatapathObservabilityConfig) obj; + + if (getEnableMetrics() + != other.getEnableMetrics()) return false; + if (relayMode_ != other.relayMode_) return false; + if (hasEnableRelay() != other.hasEnableRelay()) return false; + if (hasEnableRelay()) { + if (getEnableRelay() + != other.getEnableRelay()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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_METRICS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableMetrics()); + hash = (37 * hash) + RELAY_MODE_FIELD_NUMBER; + hash = (53 * hash) + relayMode_; + if (hasEnableRelay()) { + hash = (37 * hash) + ENABLE_RELAY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableRelay()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.AdvancedDatapathObservabilityConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.AdvancedDatapathObservabilityConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.AdvancedDatapathObservabilityConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.AdvancedDatapathObservabilityConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.AdvancedDatapathObservabilityConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.AdvancedDatapathObservabilityConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.AdvancedDatapathObservabilityConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.AdvancedDatapathObservabilityConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.AdvancedDatapathObservabilityConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.AdvancedDatapathObservabilityConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.AdvancedDatapathObservabilityConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.AdvancedDatapathObservabilityConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.AdvancedDatapathObservabilityConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * AdvancedDatapathObservabilityConfig specifies configuration of observability
+   * features of advanced datapath.
+   * 
+ * + * Protobuf type {@code google.container.v1.AdvancedDatapathObservabilityConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.AdvancedDatapathObservabilityConfig) + com.google.container.v1.AdvancedDatapathObservabilityConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AdvancedDatapathObservabilityConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AdvancedDatapathObservabilityConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.AdvancedDatapathObservabilityConfig.class, com.google.container.v1.AdvancedDatapathObservabilityConfig.Builder.class); + } + + // Construct using com.google.container.v1.AdvancedDatapathObservabilityConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enableMetrics_ = false; + relayMode_ = 0; + enableRelay_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AdvancedDatapathObservabilityConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.AdvancedDatapathObservabilityConfig getDefaultInstanceForType() { + return com.google.container.v1.AdvancedDatapathObservabilityConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.AdvancedDatapathObservabilityConfig build() { + com.google.container.v1.AdvancedDatapathObservabilityConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.AdvancedDatapathObservabilityConfig buildPartial() { + com.google.container.v1.AdvancedDatapathObservabilityConfig result = new com.google.container.v1.AdvancedDatapathObservabilityConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.AdvancedDatapathObservabilityConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enableMetrics_ = enableMetrics_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.relayMode_ = relayMode_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.enableRelay_ = enableRelay_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.AdvancedDatapathObservabilityConfig) { + return mergeFrom((com.google.container.v1.AdvancedDatapathObservabilityConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.AdvancedDatapathObservabilityConfig other) { + if (other == com.google.container.v1.AdvancedDatapathObservabilityConfig.getDefaultInstance()) return this; + if (other.getEnableMetrics() != false) { + setEnableMetrics(other.getEnableMetrics()); + } + if (other.relayMode_ != 0) { + setRelayModeValue(other.getRelayModeValue()); + } + if (other.hasEnableRelay()) { + setEnableRelay(other.getEnableRelay()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enableMetrics_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + relayMode_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + enableRelay_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enableMetrics_ ; + /** + *
+     * Expose flow metrics on nodes
+     * 
+ * + * bool enable_metrics = 1; + * @return The enableMetrics. + */ + @java.lang.Override + public boolean getEnableMetrics() { + return enableMetrics_; + } + /** + *
+     * Expose flow metrics on nodes
+     * 
+ * + * bool enable_metrics = 1; + * @param value The enableMetrics to set. + * @return This builder for chaining. + */ + public Builder setEnableMetrics(boolean value) { + + enableMetrics_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Expose flow metrics on nodes
+     * 
+ * + * bool enable_metrics = 1; + * @return This builder for chaining. + */ + public Builder clearEnableMetrics() { + bitField0_ = (bitField0_ & ~0x00000001); + enableMetrics_ = false; + onChanged(); + return this; + } + + private int relayMode_ = 0; + /** + *
+     * Method used to make Relay available
+     * 
+ * + * .google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; + * @return The enum numeric value on the wire for relayMode. + */ + @java.lang.Override public int getRelayModeValue() { + return relayMode_; + } + /** + *
+     * Method used to make Relay available
+     * 
+ * + * .google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; + * @param value The enum numeric value on the wire for relayMode to set. + * @return This builder for chaining. + */ + public Builder setRelayModeValue(int value) { + relayMode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Method used to make Relay available
+     * 
+ * + * .google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; + * @return The relayMode. + */ + @java.lang.Override + public com.google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode getRelayMode() { + com.google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode result = com.google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode.forNumber(relayMode_); + return result == null ? com.google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode.UNRECOGNIZED : result; + } + /** + *
+     * Method used to make Relay available
+     * 
+ * + * .google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; + * @param value The relayMode to set. + * @return This builder for chaining. + */ + public Builder setRelayMode(com.google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + relayMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Method used to make Relay available
+     * 
+ * + * .google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; + * @return This builder for chaining. + */ + public Builder clearRelayMode() { + bitField0_ = (bitField0_ & ~0x00000002); + relayMode_ = 0; + onChanged(); + return this; + } + + private boolean enableRelay_ ; + /** + *
+     * Enable Relay component
+     * 
+ * + * optional bool enable_relay = 3; + * @return Whether the enableRelay field is set. + */ + @java.lang.Override + public boolean hasEnableRelay() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * Enable Relay component
+     * 
+ * + * optional bool enable_relay = 3; + * @return The enableRelay. + */ + @java.lang.Override + public boolean getEnableRelay() { + return enableRelay_; + } + /** + *
+     * Enable Relay component
+     * 
+ * + * optional bool enable_relay = 3; + * @param value The enableRelay to set. + * @return This builder for chaining. + */ + public Builder setEnableRelay(boolean value) { + + enableRelay_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Enable Relay component
+     * 
+ * + * optional bool enable_relay = 3; + * @return This builder for chaining. + */ + public Builder clearEnableRelay() { + bitField0_ = (bitField0_ & ~0x00000004); + enableRelay_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.AdvancedDatapathObservabilityConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.AdvancedDatapathObservabilityConfig) + private static final com.google.container.v1.AdvancedDatapathObservabilityConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.AdvancedDatapathObservabilityConfig(); + } + + public static com.google.container.v1.AdvancedDatapathObservabilityConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdvancedDatapathObservabilityConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.AdvancedDatapathObservabilityConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedDatapathObservabilityConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedDatapathObservabilityConfigOrBuilder.java new file mode 100644 index 000000000000..ece9493b4742 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedDatapathObservabilityConfigOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface AdvancedDatapathObservabilityConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.AdvancedDatapathObservabilityConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Expose flow metrics on nodes
+   * 
+ * + * bool enable_metrics = 1; + * @return The enableMetrics. + */ + boolean getEnableMetrics(); + + /** + *
+   * Method used to make Relay available
+   * 
+ * + * .google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; + * @return The enum numeric value on the wire for relayMode. + */ + int getRelayModeValue(); + /** + *
+   * Method used to make Relay available
+   * 
+ * + * .google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; + * @return The relayMode. + */ + com.google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode getRelayMode(); + + /** + *
+   * Enable Relay component
+   * 
+ * + * optional bool enable_relay = 3; + * @return Whether the enableRelay field is set. + */ + boolean hasEnableRelay(); + /** + *
+   * Enable Relay component
+   * 
+ * + * optional bool enable_relay = 3; + * @return The enableRelay. + */ + boolean getEnableRelay(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedMachineFeatures.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedMachineFeatures.java new file mode 100644 index 000000000000..7aafcee66fef --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedMachineFeatures.java @@ -0,0 +1,542 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Specifies options for controlling advanced machine features.
+ * 
+ * + * Protobuf type {@code google.container.v1.AdvancedMachineFeatures} + */ +public final class AdvancedMachineFeatures extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.AdvancedMachineFeatures) + AdvancedMachineFeaturesOrBuilder { +private static final long serialVersionUID = 0L; + // Use AdvancedMachineFeatures.newBuilder() to construct. + private AdvancedMachineFeatures(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AdvancedMachineFeatures() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AdvancedMachineFeatures(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AdvancedMachineFeatures_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AdvancedMachineFeatures_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.AdvancedMachineFeatures.class, com.google.container.v1.AdvancedMachineFeatures.Builder.class); + } + + private int bitField0_; + public static final int THREADS_PER_CORE_FIELD_NUMBER = 1; + private long threadsPerCore_ = 0L; + /** + *
+   * The number of threads per physical core. To disable simultaneous
+   * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+   * supported per core by the underlying processor is assumed.
+   * 
+ * + * optional int64 threads_per_core = 1; + * @return Whether the threadsPerCore field is set. + */ + @java.lang.Override + public boolean hasThreadsPerCore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * The number of threads per physical core. To disable simultaneous
+   * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+   * supported per core by the underlying processor is assumed.
+   * 
+ * + * optional int64 threads_per_core = 1; + * @return The threadsPerCore. + */ + @java.lang.Override + public long getThreadsPerCore() { + return threadsPerCore_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt64(1, threadsPerCore_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, threadsPerCore_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.AdvancedMachineFeatures)) { + return super.equals(obj); + } + com.google.container.v1.AdvancedMachineFeatures other = (com.google.container.v1.AdvancedMachineFeatures) obj; + + if (hasThreadsPerCore() != other.hasThreadsPerCore()) return false; + if (hasThreadsPerCore()) { + if (getThreadsPerCore() + != other.getThreadsPerCore()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasThreadsPerCore()) { + hash = (37 * hash) + THREADS_PER_CORE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getThreadsPerCore()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.AdvancedMachineFeatures parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.AdvancedMachineFeatures parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.AdvancedMachineFeatures parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.AdvancedMachineFeatures parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.AdvancedMachineFeatures parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.AdvancedMachineFeatures parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.AdvancedMachineFeatures parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.AdvancedMachineFeatures parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.AdvancedMachineFeatures parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.AdvancedMachineFeatures parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.AdvancedMachineFeatures parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.AdvancedMachineFeatures parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.AdvancedMachineFeatures prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Specifies options for controlling advanced machine features.
+   * 
+ * + * Protobuf type {@code google.container.v1.AdvancedMachineFeatures} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.AdvancedMachineFeatures) + com.google.container.v1.AdvancedMachineFeaturesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AdvancedMachineFeatures_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AdvancedMachineFeatures_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.AdvancedMachineFeatures.class, com.google.container.v1.AdvancedMachineFeatures.Builder.class); + } + + // Construct using com.google.container.v1.AdvancedMachineFeatures.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + threadsPerCore_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AdvancedMachineFeatures_descriptor; + } + + @java.lang.Override + public com.google.container.v1.AdvancedMachineFeatures getDefaultInstanceForType() { + return com.google.container.v1.AdvancedMachineFeatures.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.AdvancedMachineFeatures build() { + com.google.container.v1.AdvancedMachineFeatures result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.AdvancedMachineFeatures buildPartial() { + com.google.container.v1.AdvancedMachineFeatures result = new com.google.container.v1.AdvancedMachineFeatures(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.AdvancedMachineFeatures result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.threadsPerCore_ = threadsPerCore_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.AdvancedMachineFeatures) { + return mergeFrom((com.google.container.v1.AdvancedMachineFeatures)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.AdvancedMachineFeatures other) { + if (other == com.google.container.v1.AdvancedMachineFeatures.getDefaultInstance()) return this; + if (other.hasThreadsPerCore()) { + setThreadsPerCore(other.getThreadsPerCore()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + threadsPerCore_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private long threadsPerCore_ ; + /** + *
+     * The number of threads per physical core. To disable simultaneous
+     * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+     * supported per core by the underlying processor is assumed.
+     * 
+ * + * optional int64 threads_per_core = 1; + * @return Whether the threadsPerCore field is set. + */ + @java.lang.Override + public boolean hasThreadsPerCore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * The number of threads per physical core. To disable simultaneous
+     * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+     * supported per core by the underlying processor is assumed.
+     * 
+ * + * optional int64 threads_per_core = 1; + * @return The threadsPerCore. + */ + @java.lang.Override + public long getThreadsPerCore() { + return threadsPerCore_; + } + /** + *
+     * The number of threads per physical core. To disable simultaneous
+     * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+     * supported per core by the underlying processor is assumed.
+     * 
+ * + * optional int64 threads_per_core = 1; + * @param value The threadsPerCore to set. + * @return This builder for chaining. + */ + public Builder setThreadsPerCore(long value) { + + threadsPerCore_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The number of threads per physical core. To disable simultaneous
+     * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+     * supported per core by the underlying processor is assumed.
+     * 
+ * + * optional int64 threads_per_core = 1; + * @return This builder for chaining. + */ + public Builder clearThreadsPerCore() { + bitField0_ = (bitField0_ & ~0x00000001); + threadsPerCore_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.AdvancedMachineFeatures) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.AdvancedMachineFeatures) + private static final com.google.container.v1.AdvancedMachineFeatures DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.AdvancedMachineFeatures(); + } + + public static com.google.container.v1.AdvancedMachineFeatures getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdvancedMachineFeatures parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.AdvancedMachineFeatures getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedMachineFeaturesOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedMachineFeaturesOrBuilder.java new file mode 100644 index 000000000000..cd8e6eafcdfa --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedMachineFeaturesOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface AdvancedMachineFeaturesOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.AdvancedMachineFeatures) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The number of threads per physical core. To disable simultaneous
+   * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+   * supported per core by the underlying processor is assumed.
+   * 
+ * + * optional int64 threads_per_core = 1; + * @return Whether the threadsPerCore field is set. + */ + boolean hasThreadsPerCore(); + /** + *
+   * The number of threads per physical core. To disable simultaneous
+   * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+   * supported per core by the underlying processor is assumed.
+   * 
+ * + * optional int64 threads_per_core = 1; + * @return The threadsPerCore. + */ + long getThreadsPerCore(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AuthenticatorGroupsConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AuthenticatorGroupsConfig.java new file mode 100644 index 000000000000..84b3205de069 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AuthenticatorGroupsConfig.java @@ -0,0 +1,672 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Configuration for returning group information from authenticators.
+ * 
+ * + * Protobuf type {@code google.container.v1.AuthenticatorGroupsConfig} + */ +public final class AuthenticatorGroupsConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AuthenticatorGroupsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AuthenticatorGroupsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.AuthenticatorGroupsConfig.class, com.google.container.v1.AuthenticatorGroupsConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * 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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(securityGroup_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, securityGroup_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enabled_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(securityGroup_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, securityGroup_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.AuthenticatorGroupsConfig)) { + return super.equals(obj); + } + com.google.container.v1.AuthenticatorGroupsConfig other = (com.google.container.v1.AuthenticatorGroupsConfig) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getSecurityGroup() + .equals(other.getSecurityGroup())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.AuthenticatorGroupsConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.AuthenticatorGroupsConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.AuthenticatorGroupsConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.AuthenticatorGroupsConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.AuthenticatorGroupsConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.AuthenticatorGroupsConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.AuthenticatorGroupsConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.AuthenticatorGroupsConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.AuthenticatorGroupsConfig) + com.google.container.v1.AuthenticatorGroupsConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AuthenticatorGroupsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AuthenticatorGroupsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.AuthenticatorGroupsConfig.class, com.google.container.v1.AuthenticatorGroupsConfig.Builder.class); + } + + // Construct using com.google.container.v1.AuthenticatorGroupsConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + securityGroup_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AuthenticatorGroupsConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.AuthenticatorGroupsConfig getDefaultInstanceForType() { + return com.google.container.v1.AuthenticatorGroupsConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.AuthenticatorGroupsConfig build() { + com.google.container.v1.AuthenticatorGroupsConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.AuthenticatorGroupsConfig buildPartial() { + com.google.container.v1.AuthenticatorGroupsConfig result = new com.google.container.v1.AuthenticatorGroupsConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.AuthenticatorGroupsConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.securityGroup_ = securityGroup_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.AuthenticatorGroupsConfig) { + return mergeFrom((com.google.container.v1.AuthenticatorGroupsConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.AuthenticatorGroupsConfig other) { + if (other == com.google.container.v1.AuthenticatorGroupsConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (!other.getSecurityGroup().isEmpty()) { + securityGroup_ = other.securityGroup_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + securityGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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() { + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000002; + 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(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.AuthenticatorGroupsConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.AuthenticatorGroupsConfig) + private static final com.google.container.v1.AuthenticatorGroupsConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.AuthenticatorGroupsConfig(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.AuthenticatorGroupsConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AuthenticatorGroupsConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AuthenticatorGroupsConfigOrBuilder.java new file mode 100644 index 000000000000..1949e4c44788 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AuthenticatorGroupsConfigOrBuilder.java @@ -0,0 +1,43 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface AuthenticatorGroupsConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoUpgradeOptions.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoUpgradeOptions.java new file mode 100644 index 000000000000..4b55c9247d2a --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoUpgradeOptions.java @@ -0,0 +1,765 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * AutoUpgradeOptions defines the set of options for the user to control how
+ * the Auto Upgrades will proceed.
+ * 
+ * + * Protobuf type {@code google.container.v1.AutoUpgradeOptions} + */ +public final class AutoUpgradeOptions extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AutoUpgradeOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AutoUpgradeOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.AutoUpgradeOptions.class, com.google.container.v1.AutoUpgradeOptions.Builder.class); + } + + public static final int AUTO_UPGRADE_START_TIME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(autoUpgradeStartTime_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, autoUpgradeStartTime_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(autoUpgradeStartTime_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, autoUpgradeStartTime_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.AutoUpgradeOptions)) { + return super.equals(obj); + } + com.google.container.v1.AutoUpgradeOptions other = (com.google.container.v1.AutoUpgradeOptions) obj; + + if (!getAutoUpgradeStartTime() + .equals(other.getAutoUpgradeStartTime())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.AutoUpgradeOptions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.AutoUpgradeOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.AutoUpgradeOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.AutoUpgradeOptions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.AutoUpgradeOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.AutoUpgradeOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.AutoUpgradeOptions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.AutoUpgradeOptions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.AutoUpgradeOptions) + com.google.container.v1.AutoUpgradeOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AutoUpgradeOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AutoUpgradeOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.AutoUpgradeOptions.class, com.google.container.v1.AutoUpgradeOptions.Builder.class); + } + + // Construct using com.google.container.v1.AutoUpgradeOptions.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + autoUpgradeStartTime_ = ""; + description_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AutoUpgradeOptions_descriptor; + } + + @java.lang.Override + public com.google.container.v1.AutoUpgradeOptions getDefaultInstanceForType() { + return com.google.container.v1.AutoUpgradeOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.AutoUpgradeOptions build() { + com.google.container.v1.AutoUpgradeOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.AutoUpgradeOptions buildPartial() { + com.google.container.v1.AutoUpgradeOptions result = new com.google.container.v1.AutoUpgradeOptions(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.AutoUpgradeOptions result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.autoUpgradeStartTime_ = autoUpgradeStartTime_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.AutoUpgradeOptions) { + return mergeFrom((com.google.container.v1.AutoUpgradeOptions)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.AutoUpgradeOptions other) { + if (other == com.google.container.v1.AutoUpgradeOptions.getDefaultInstance()) return this; + if (!other.getAutoUpgradeStartTime().isEmpty()) { + autoUpgradeStartTime_ = other.autoUpgradeStartTime_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + autoUpgradeStartTime_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + 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; + bitField0_ |= 0x00000002; + 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(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.AutoUpgradeOptions) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.AutoUpgradeOptions) + private static final com.google.container.v1.AutoUpgradeOptions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.AutoUpgradeOptions(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.AutoUpgradeOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoUpgradeOptionsOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoUpgradeOptionsOrBuilder.java new file mode 100644 index 000000000000..a34110c26b29 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoUpgradeOptionsOrBuilder.java @@ -0,0 +1,56 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface AutoUpgradeOptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Autopilot.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Autopilot.java new file mode 100644 index 000000000000..c229bc23fb61 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Autopilot.java @@ -0,0 +1,738 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Autopilot is the configuration for Autopilot settings on the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1.Autopilot} + */ +public final class Autopilot extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.Autopilot) + AutopilotOrBuilder { +private static final long serialVersionUID = 0L; + // Use Autopilot.newBuilder() to construct. + private Autopilot(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Autopilot() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Autopilot(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_Autopilot_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_Autopilot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.Autopilot.class, com.google.container.v1.Autopilot.Builder.class); + } + + private int bitField0_; + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * Enable Autopilot
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int WORKLOAD_POLICY_CONFIG_FIELD_NUMBER = 2; + private com.google.container.v1.WorkloadPolicyConfig workloadPolicyConfig_; + /** + *
+   * Workload policy configuration for Autopilot.
+   * 
+ * + * .google.container.v1.WorkloadPolicyConfig workload_policy_config = 2; + * @return Whether the workloadPolicyConfig field is set. + */ + @java.lang.Override + public boolean hasWorkloadPolicyConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Workload policy configuration for Autopilot.
+   * 
+ * + * .google.container.v1.WorkloadPolicyConfig workload_policy_config = 2; + * @return The workloadPolicyConfig. + */ + @java.lang.Override + public com.google.container.v1.WorkloadPolicyConfig getWorkloadPolicyConfig() { + return workloadPolicyConfig_ == null ? com.google.container.v1.WorkloadPolicyConfig.getDefaultInstance() : workloadPolicyConfig_; + } + /** + *
+   * Workload policy configuration for Autopilot.
+   * 
+ * + * .google.container.v1.WorkloadPolicyConfig workload_policy_config = 2; + */ + @java.lang.Override + public com.google.container.v1.WorkloadPolicyConfigOrBuilder getWorkloadPolicyConfigOrBuilder() { + return workloadPolicyConfig_ == null ? com.google.container.v1.WorkloadPolicyConfig.getDefaultInstance() : workloadPolicyConfig_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getWorkloadPolicyConfig()); + } + getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getWorkloadPolicyConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.Autopilot)) { + return super.equals(obj); + } + com.google.container.v1.Autopilot other = (com.google.container.v1.Autopilot) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (hasWorkloadPolicyConfig() != other.hasWorkloadPolicyConfig()) return false; + if (hasWorkloadPolicyConfig()) { + if (!getWorkloadPolicyConfig() + .equals(other.getWorkloadPolicyConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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 (hasWorkloadPolicyConfig()) { + hash = (37 * hash) + WORKLOAD_POLICY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getWorkloadPolicyConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.Autopilot parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.Autopilot parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.Autopilot parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.Autopilot parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.Autopilot parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.Autopilot parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.Autopilot parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.Autopilot parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.Autopilot parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.Autopilot parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.Autopilot parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.Autopilot parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.Autopilot prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Autopilot is the configuration for Autopilot settings on the cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1.Autopilot} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.Autopilot) + com.google.container.v1.AutopilotOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_Autopilot_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_Autopilot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.Autopilot.class, com.google.container.v1.Autopilot.Builder.class); + } + + // Construct using com.google.container.v1.Autopilot.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getWorkloadPolicyConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + workloadPolicyConfig_ = null; + if (workloadPolicyConfigBuilder_ != null) { + workloadPolicyConfigBuilder_.dispose(); + workloadPolicyConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_Autopilot_descriptor; + } + + @java.lang.Override + public com.google.container.v1.Autopilot getDefaultInstanceForType() { + return com.google.container.v1.Autopilot.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.Autopilot build() { + com.google.container.v1.Autopilot result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.Autopilot buildPartial() { + com.google.container.v1.Autopilot result = new com.google.container.v1.Autopilot(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.Autopilot result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.workloadPolicyConfig_ = workloadPolicyConfigBuilder_ == null + ? workloadPolicyConfig_ + : workloadPolicyConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.Autopilot) { + return mergeFrom((com.google.container.v1.Autopilot)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.Autopilot other) { + if (other == com.google.container.v1.Autopilot.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (other.hasWorkloadPolicyConfig()) { + mergeWorkloadPolicyConfig(other.getWorkloadPolicyConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getWorkloadPolicyConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enabled_ ; + /** + *
+     * Enable Autopilot
+     * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Enable Autopilot
+     * 
+ * + * bool enabled = 1; + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Enable Autopilot
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + + private com.google.container.v1.WorkloadPolicyConfig workloadPolicyConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WorkloadPolicyConfig, com.google.container.v1.WorkloadPolicyConfig.Builder, com.google.container.v1.WorkloadPolicyConfigOrBuilder> workloadPolicyConfigBuilder_; + /** + *
+     * Workload policy configuration for Autopilot.
+     * 
+ * + * .google.container.v1.WorkloadPolicyConfig workload_policy_config = 2; + * @return Whether the workloadPolicyConfig field is set. + */ + public boolean hasWorkloadPolicyConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Workload policy configuration for Autopilot.
+     * 
+ * + * .google.container.v1.WorkloadPolicyConfig workload_policy_config = 2; + * @return The workloadPolicyConfig. + */ + public com.google.container.v1.WorkloadPolicyConfig getWorkloadPolicyConfig() { + if (workloadPolicyConfigBuilder_ == null) { + return workloadPolicyConfig_ == null ? com.google.container.v1.WorkloadPolicyConfig.getDefaultInstance() : workloadPolicyConfig_; + } else { + return workloadPolicyConfigBuilder_.getMessage(); + } + } + /** + *
+     * Workload policy configuration for Autopilot.
+     * 
+ * + * .google.container.v1.WorkloadPolicyConfig workload_policy_config = 2; + */ + public Builder setWorkloadPolicyConfig(com.google.container.v1.WorkloadPolicyConfig value) { + if (workloadPolicyConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workloadPolicyConfig_ = value; + } else { + workloadPolicyConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Workload policy configuration for Autopilot.
+     * 
+ * + * .google.container.v1.WorkloadPolicyConfig workload_policy_config = 2; + */ + public Builder setWorkloadPolicyConfig( + com.google.container.v1.WorkloadPolicyConfig.Builder builderForValue) { + if (workloadPolicyConfigBuilder_ == null) { + workloadPolicyConfig_ = builderForValue.build(); + } else { + workloadPolicyConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Workload policy configuration for Autopilot.
+     * 
+ * + * .google.container.v1.WorkloadPolicyConfig workload_policy_config = 2; + */ + public Builder mergeWorkloadPolicyConfig(com.google.container.v1.WorkloadPolicyConfig value) { + if (workloadPolicyConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + workloadPolicyConfig_ != null && + workloadPolicyConfig_ != com.google.container.v1.WorkloadPolicyConfig.getDefaultInstance()) { + getWorkloadPolicyConfigBuilder().mergeFrom(value); + } else { + workloadPolicyConfig_ = value; + } + } else { + workloadPolicyConfigBuilder_.mergeFrom(value); + } + if (workloadPolicyConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + *
+     * Workload policy configuration for Autopilot.
+     * 
+ * + * .google.container.v1.WorkloadPolicyConfig workload_policy_config = 2; + */ + public Builder clearWorkloadPolicyConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + workloadPolicyConfig_ = null; + if (workloadPolicyConfigBuilder_ != null) { + workloadPolicyConfigBuilder_.dispose(); + workloadPolicyConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Workload policy configuration for Autopilot.
+     * 
+ * + * .google.container.v1.WorkloadPolicyConfig workload_policy_config = 2; + */ + public com.google.container.v1.WorkloadPolicyConfig.Builder getWorkloadPolicyConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getWorkloadPolicyConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Workload policy configuration for Autopilot.
+     * 
+ * + * .google.container.v1.WorkloadPolicyConfig workload_policy_config = 2; + */ + public com.google.container.v1.WorkloadPolicyConfigOrBuilder getWorkloadPolicyConfigOrBuilder() { + if (workloadPolicyConfigBuilder_ != null) { + return workloadPolicyConfigBuilder_.getMessageOrBuilder(); + } else { + return workloadPolicyConfig_ == null ? + com.google.container.v1.WorkloadPolicyConfig.getDefaultInstance() : workloadPolicyConfig_; + } + } + /** + *
+     * Workload policy configuration for Autopilot.
+     * 
+ * + * .google.container.v1.WorkloadPolicyConfig workload_policy_config = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WorkloadPolicyConfig, com.google.container.v1.WorkloadPolicyConfig.Builder, com.google.container.v1.WorkloadPolicyConfigOrBuilder> + getWorkloadPolicyConfigFieldBuilder() { + if (workloadPolicyConfigBuilder_ == null) { + workloadPolicyConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WorkloadPolicyConfig, com.google.container.v1.WorkloadPolicyConfig.Builder, com.google.container.v1.WorkloadPolicyConfigOrBuilder>( + getWorkloadPolicyConfig(), + getParentForChildren(), + isClean()); + workloadPolicyConfig_ = null; + } + return workloadPolicyConfigBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.Autopilot) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.Autopilot) + private static final com.google.container.v1.Autopilot DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.Autopilot(); + } + + public static com.google.container.v1.Autopilot getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Autopilot parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.Autopilot getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutopilotCompatibilityIssue.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutopilotCompatibilityIssue.java new file mode 100644 index 000000000000..dfa2a132b3d6 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutopilotCompatibilityIssue.java @@ -0,0 +1,1682 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * AutopilotCompatibilityIssue contains information about a specific
+ * compatibility issue with Autopilot mode.
+ * 
+ * + * Protobuf type {@code google.container.v1.AutopilotCompatibilityIssue} + */ +public final class AutopilotCompatibilityIssue extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.AutopilotCompatibilityIssue) + AutopilotCompatibilityIssueOrBuilder { +private static final long serialVersionUID = 0L; + // Use AutopilotCompatibilityIssue.newBuilder() to construct. + private AutopilotCompatibilityIssue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AutopilotCompatibilityIssue() { + constraintType_ = ""; + incompatibilityType_ = 0; + subjects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + documentationUrl_ = ""; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AutopilotCompatibilityIssue(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AutopilotCompatibilityIssue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AutopilotCompatibilityIssue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.AutopilotCompatibilityIssue.class, com.google.container.v1.AutopilotCompatibilityIssue.Builder.class); + } + + /** + *
+   * The type of the reported issue.
+   * 
+ * + * Protobuf enum {@code google.container.v1.AutopilotCompatibilityIssue.IssueType} + */ + public enum IssueType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Default value, should not be used.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + *
+     * Indicates that the issue is a known incompatibility between the
+     * cluster and Autopilot mode.
+     * 
+ * + * INCOMPATIBILITY = 1; + */ + INCOMPATIBILITY(1), + /** + *
+     * Indicates the issue is an incompatibility if customers take no further
+     * action to resolve.
+     * 
+ * + * ADDITIONAL_CONFIG_REQUIRED = 2; + */ + ADDITIONAL_CONFIG_REQUIRED(2), + /** + *
+     * Indicates the issue is not an incompatibility, but depending on the
+     * workloads business logic, there is a potential that they won't work on
+     * Autopilot.
+     * 
+ * + * PASSED_WITH_OPTIONAL_CONFIG = 3; + */ + PASSED_WITH_OPTIONAL_CONFIG(3), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Default value, should not be used.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + *
+     * Indicates that the issue is a known incompatibility between the
+     * cluster and Autopilot mode.
+     * 
+ * + * INCOMPATIBILITY = 1; + */ + public static final int INCOMPATIBILITY_VALUE = 1; + /** + *
+     * Indicates the issue is an incompatibility if customers take no further
+     * action to resolve.
+     * 
+ * + * ADDITIONAL_CONFIG_REQUIRED = 2; + */ + public static final int ADDITIONAL_CONFIG_REQUIRED_VALUE = 2; + /** + *
+     * Indicates the issue is not an incompatibility, but depending on the
+     * workloads business logic, there is a potential that they won't work on
+     * Autopilot.
+     * 
+ * + * PASSED_WITH_OPTIONAL_CONFIG = 3; + */ + public static final int PASSED_WITH_OPTIONAL_CONFIG_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 IssueType 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 IssueType forNumber(int value) { + switch (value) { + case 0: return UNSPECIFIED; + case 1: return INCOMPATIBILITY; + case 2: return ADDITIONAL_CONFIG_REQUIRED; + case 3: return PASSED_WITH_OPTIONAL_CONFIG; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + IssueType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public IssueType findValueByNumber(int number) { + return IssueType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.AutopilotCompatibilityIssue.getDescriptor().getEnumTypes().get(0); + } + + private static final IssueType[] VALUES = values(); + + public static IssueType 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 IssueType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.AutopilotCompatibilityIssue.IssueType) + } + + private int bitField0_; + public static final int LAST_OBSERVATION_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp lastObservation_; + /** + *
+   * The last time when this issue was observed.
+   * 
+ * + * .google.protobuf.Timestamp last_observation = 1; + * @return Whether the lastObservation field is set. + */ + @java.lang.Override + public boolean hasLastObservation() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * The last time when this issue was observed.
+   * 
+ * + * .google.protobuf.Timestamp last_observation = 1; + * @return The lastObservation. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getLastObservation() { + return lastObservation_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastObservation_; + } + /** + *
+   * The last time when this issue was observed.
+   * 
+ * + * .google.protobuf.Timestamp last_observation = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getLastObservationOrBuilder() { + return lastObservation_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastObservation_; + } + + public static final int CONSTRAINT_TYPE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object constraintType_ = ""; + /** + *
+   * The constraint type of the issue.
+   * 
+ * + * string constraint_type = 2; + * @return The constraintType. + */ + @java.lang.Override + public java.lang.String getConstraintType() { + java.lang.Object ref = constraintType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + constraintType_ = s; + return s; + } + } + /** + *
+   * The constraint type of the issue.
+   * 
+ * + * string constraint_type = 2; + * @return The bytes for constraintType. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getConstraintTypeBytes() { + java.lang.Object ref = constraintType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + constraintType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INCOMPATIBILITY_TYPE_FIELD_NUMBER = 3; + private int incompatibilityType_ = 0; + /** + *
+   * The incompatibility type of this issue.
+   * 
+ * + * .google.container.v1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; + * @return The enum numeric value on the wire for incompatibilityType. + */ + @java.lang.Override public int getIncompatibilityTypeValue() { + return incompatibilityType_; + } + /** + *
+   * The incompatibility type of this issue.
+   * 
+ * + * .google.container.v1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; + * @return The incompatibilityType. + */ + @java.lang.Override public com.google.container.v1.AutopilotCompatibilityIssue.IssueType getIncompatibilityType() { + com.google.container.v1.AutopilotCompatibilityIssue.IssueType result = com.google.container.v1.AutopilotCompatibilityIssue.IssueType.forNumber(incompatibilityType_); + return result == null ? com.google.container.v1.AutopilotCompatibilityIssue.IssueType.UNRECOGNIZED : result; + } + + public static final int SUBJECTS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList subjects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * The name of the resources which are subject to this issue.
+   * 
+ * + * repeated string subjects = 4; + * @return A list containing the subjects. + */ + public com.google.protobuf.ProtocolStringList + getSubjectsList() { + return subjects_; + } + /** + *
+   * The name of the resources which are subject to this issue.
+   * 
+ * + * repeated string subjects = 4; + * @return The count of subjects. + */ + public int getSubjectsCount() { + return subjects_.size(); + } + /** + *
+   * The name of the resources which are subject to this issue.
+   * 
+ * + * repeated string subjects = 4; + * @param index The index of the element to return. + * @return The subjects at the given index. + */ + public java.lang.String getSubjects(int index) { + return subjects_.get(index); + } + /** + *
+   * The name of the resources which are subject to this issue.
+   * 
+ * + * repeated string subjects = 4; + * @param index The index of the value to return. + * @return The bytes of the subjects at the given index. + */ + public com.google.protobuf.ByteString + getSubjectsBytes(int index) { + return subjects_.getByteString(index); + } + + public static final int DOCUMENTATION_URL_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object documentationUrl_ = ""; + /** + *
+   * A URL to a public documnetation, which addresses resolving this issue.
+   * 
+ * + * string documentation_url = 5; + * @return The documentationUrl. + */ + @java.lang.Override + public java.lang.String getDocumentationUrl() { + java.lang.Object ref = documentationUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + documentationUrl_ = s; + return s; + } + } + /** + *
+   * A URL to a public documnetation, which addresses resolving this issue.
+   * 
+ * + * string documentation_url = 5; + * @return The bytes for documentationUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDocumentationUrlBytes() { + java.lang.Object ref = documentationUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + documentationUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + *
+   * The description of the issue.
+   * 
+ * + * string description = 6; + * @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; + } + } + /** + *
+   * The description of the issue.
+   * 
+ * + * string description = 6; + * @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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getLastObservation()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(constraintType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, constraintType_); + } + if (incompatibilityType_ != com.google.container.v1.AutopilotCompatibilityIssue.IssueType.UNSPECIFIED.getNumber()) { + output.writeEnum(3, incompatibilityType_); + } + for (int i = 0; i < subjects_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, subjects_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentationUrl_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, documentationUrl_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getLastObservation()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(constraintType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, constraintType_); + } + if (incompatibilityType_ != com.google.container.v1.AutopilotCompatibilityIssue.IssueType.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, incompatibilityType_); + } + { + int dataSize = 0; + for (int i = 0; i < subjects_.size(); i++) { + dataSize += computeStringSizeNoTag(subjects_.getRaw(i)); + } + size += dataSize; + size += 1 * getSubjectsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentationUrl_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, documentationUrl_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.AutopilotCompatibilityIssue)) { + return super.equals(obj); + } + com.google.container.v1.AutopilotCompatibilityIssue other = (com.google.container.v1.AutopilotCompatibilityIssue) obj; + + if (hasLastObservation() != other.hasLastObservation()) return false; + if (hasLastObservation()) { + if (!getLastObservation() + .equals(other.getLastObservation())) return false; + } + if (!getConstraintType() + .equals(other.getConstraintType())) return false; + if (incompatibilityType_ != other.incompatibilityType_) return false; + if (!getSubjectsList() + .equals(other.getSubjectsList())) return false; + if (!getDocumentationUrl() + .equals(other.getDocumentationUrl())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasLastObservation()) { + hash = (37 * hash) + LAST_OBSERVATION_FIELD_NUMBER; + hash = (53 * hash) + getLastObservation().hashCode(); + } + hash = (37 * hash) + CONSTRAINT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getConstraintType().hashCode(); + hash = (37 * hash) + INCOMPATIBILITY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + incompatibilityType_; + if (getSubjectsCount() > 0) { + hash = (37 * hash) + SUBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getSubjectsList().hashCode(); + } + hash = (37 * hash) + DOCUMENTATION_URL_FIELD_NUMBER; + hash = (53 * hash) + getDocumentationUrl().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.AutopilotCompatibilityIssue parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.AutopilotCompatibilityIssue parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.AutopilotCompatibilityIssue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.AutopilotCompatibilityIssue parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.AutopilotCompatibilityIssue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.AutopilotCompatibilityIssue parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.AutopilotCompatibilityIssue parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.AutopilotCompatibilityIssue parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.AutopilotCompatibilityIssue parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.AutopilotCompatibilityIssue parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.AutopilotCompatibilityIssue parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.AutopilotCompatibilityIssue parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.AutopilotCompatibilityIssue prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * AutopilotCompatibilityIssue contains information about a specific
+   * compatibility issue with Autopilot mode.
+   * 
+ * + * Protobuf type {@code google.container.v1.AutopilotCompatibilityIssue} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.AutopilotCompatibilityIssue) + com.google.container.v1.AutopilotCompatibilityIssueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AutopilotCompatibilityIssue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AutopilotCompatibilityIssue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.AutopilotCompatibilityIssue.class, com.google.container.v1.AutopilotCompatibilityIssue.Builder.class); + } + + // Construct using com.google.container.v1.AutopilotCompatibilityIssue.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getLastObservationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + lastObservation_ = null; + if (lastObservationBuilder_ != null) { + lastObservationBuilder_.dispose(); + lastObservationBuilder_ = null; + } + constraintType_ = ""; + incompatibilityType_ = 0; + subjects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + documentationUrl_ = ""; + description_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AutopilotCompatibilityIssue_descriptor; + } + + @java.lang.Override + public com.google.container.v1.AutopilotCompatibilityIssue getDefaultInstanceForType() { + return com.google.container.v1.AutopilotCompatibilityIssue.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.AutopilotCompatibilityIssue build() { + com.google.container.v1.AutopilotCompatibilityIssue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.AutopilotCompatibilityIssue buildPartial() { + com.google.container.v1.AutopilotCompatibilityIssue result = new com.google.container.v1.AutopilotCompatibilityIssue(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.AutopilotCompatibilityIssue result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.lastObservation_ = lastObservationBuilder_ == null + ? lastObservation_ + : lastObservationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.constraintType_ = constraintType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.incompatibilityType_ = incompatibilityType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + subjects_.makeImmutable(); + result.subjects_ = subjects_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.documentationUrl_ = documentationUrl_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.description_ = description_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.AutopilotCompatibilityIssue) { + return mergeFrom((com.google.container.v1.AutopilotCompatibilityIssue)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.AutopilotCompatibilityIssue other) { + if (other == com.google.container.v1.AutopilotCompatibilityIssue.getDefaultInstance()) return this; + if (other.hasLastObservation()) { + mergeLastObservation(other.getLastObservation()); + } + if (!other.getConstraintType().isEmpty()) { + constraintType_ = other.constraintType_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.incompatibilityType_ != 0) { + setIncompatibilityTypeValue(other.getIncompatibilityTypeValue()); + } + if (!other.subjects_.isEmpty()) { + if (subjects_.isEmpty()) { + subjects_ = other.subjects_; + bitField0_ |= 0x00000008; + } else { + ensureSubjectsIsMutable(); + subjects_.addAll(other.subjects_); + } + onChanged(); + } + if (!other.getDocumentationUrl().isEmpty()) { + documentationUrl_ = other.documentationUrl_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000020; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getLastObservationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + constraintType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + incompatibilityType_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureSubjectsIsMutable(); + subjects_.add(s); + break; + } // case 34 + case 42: { + documentationUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.Timestamp lastObservation_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastObservationBuilder_; + /** + *
+     * The last time when this issue was observed.
+     * 
+ * + * .google.protobuf.Timestamp last_observation = 1; + * @return Whether the lastObservation field is set. + */ + public boolean hasLastObservation() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * The last time when this issue was observed.
+     * 
+ * + * .google.protobuf.Timestamp last_observation = 1; + * @return The lastObservation. + */ + public com.google.protobuf.Timestamp getLastObservation() { + if (lastObservationBuilder_ == null) { + return lastObservation_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastObservation_; + } else { + return lastObservationBuilder_.getMessage(); + } + } + /** + *
+     * The last time when this issue was observed.
+     * 
+ * + * .google.protobuf.Timestamp last_observation = 1; + */ + public Builder setLastObservation(com.google.protobuf.Timestamp value) { + if (lastObservationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastObservation_ = value; + } else { + lastObservationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The last time when this issue was observed.
+     * 
+ * + * .google.protobuf.Timestamp last_observation = 1; + */ + public Builder setLastObservation( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (lastObservationBuilder_ == null) { + lastObservation_ = builderForValue.build(); + } else { + lastObservationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The last time when this issue was observed.
+     * 
+ * + * .google.protobuf.Timestamp last_observation = 1; + */ + public Builder mergeLastObservation(com.google.protobuf.Timestamp value) { + if (lastObservationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + lastObservation_ != null && + lastObservation_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLastObservationBuilder().mergeFrom(value); + } else { + lastObservation_ = value; + } + } else { + lastObservationBuilder_.mergeFrom(value); + } + if (lastObservation_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+     * The last time when this issue was observed.
+     * 
+ * + * .google.protobuf.Timestamp last_observation = 1; + */ + public Builder clearLastObservation() { + bitField0_ = (bitField0_ & ~0x00000001); + lastObservation_ = null; + if (lastObservationBuilder_ != null) { + lastObservationBuilder_.dispose(); + lastObservationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The last time when this issue was observed.
+     * 
+ * + * .google.protobuf.Timestamp last_observation = 1; + */ + public com.google.protobuf.Timestamp.Builder getLastObservationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getLastObservationFieldBuilder().getBuilder(); + } + /** + *
+     * The last time when this issue was observed.
+     * 
+ * + * .google.protobuf.Timestamp last_observation = 1; + */ + public com.google.protobuf.TimestampOrBuilder getLastObservationOrBuilder() { + if (lastObservationBuilder_ != null) { + return lastObservationBuilder_.getMessageOrBuilder(); + } else { + return lastObservation_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : lastObservation_; + } + } + /** + *
+     * The last time when this issue was observed.
+     * 
+ * + * .google.protobuf.Timestamp last_observation = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getLastObservationFieldBuilder() { + if (lastObservationBuilder_ == null) { + lastObservationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getLastObservation(), + getParentForChildren(), + isClean()); + lastObservation_ = null; + } + return lastObservationBuilder_; + } + + private java.lang.Object constraintType_ = ""; + /** + *
+     * The constraint type of the issue.
+     * 
+ * + * string constraint_type = 2; + * @return The constraintType. + */ + public java.lang.String getConstraintType() { + java.lang.Object ref = constraintType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + constraintType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The constraint type of the issue.
+     * 
+ * + * string constraint_type = 2; + * @return The bytes for constraintType. + */ + public com.google.protobuf.ByteString + getConstraintTypeBytes() { + java.lang.Object ref = constraintType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + constraintType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The constraint type of the issue.
+     * 
+ * + * string constraint_type = 2; + * @param value The constraintType to set. + * @return This builder for chaining. + */ + public Builder setConstraintType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + constraintType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The constraint type of the issue.
+     * 
+ * + * string constraint_type = 2; + * @return This builder for chaining. + */ + public Builder clearConstraintType() { + constraintType_ = getDefaultInstance().getConstraintType(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * The constraint type of the issue.
+     * 
+ * + * string constraint_type = 2; + * @param value The bytes for constraintType to set. + * @return This builder for chaining. + */ + public Builder setConstraintTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + constraintType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int incompatibilityType_ = 0; + /** + *
+     * The incompatibility type of this issue.
+     * 
+ * + * .google.container.v1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; + * @return The enum numeric value on the wire for incompatibilityType. + */ + @java.lang.Override public int getIncompatibilityTypeValue() { + return incompatibilityType_; + } + /** + *
+     * The incompatibility type of this issue.
+     * 
+ * + * .google.container.v1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; + * @param value The enum numeric value on the wire for incompatibilityType to set. + * @return This builder for chaining. + */ + public Builder setIncompatibilityTypeValue(int value) { + incompatibilityType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The incompatibility type of this issue.
+     * 
+ * + * .google.container.v1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; + * @return The incompatibilityType. + */ + @java.lang.Override + public com.google.container.v1.AutopilotCompatibilityIssue.IssueType getIncompatibilityType() { + com.google.container.v1.AutopilotCompatibilityIssue.IssueType result = com.google.container.v1.AutopilotCompatibilityIssue.IssueType.forNumber(incompatibilityType_); + return result == null ? com.google.container.v1.AutopilotCompatibilityIssue.IssueType.UNRECOGNIZED : result; + } + /** + *
+     * The incompatibility type of this issue.
+     * 
+ * + * .google.container.v1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; + * @param value The incompatibilityType to set. + * @return This builder for chaining. + */ + public Builder setIncompatibilityType(com.google.container.v1.AutopilotCompatibilityIssue.IssueType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + incompatibilityType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The incompatibility type of this issue.
+     * 
+ * + * .google.container.v1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; + * @return This builder for chaining. + */ + public Builder clearIncompatibilityType() { + bitField0_ = (bitField0_ & ~0x00000004); + incompatibilityType_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList subjects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureSubjectsIsMutable() { + if (!subjects_.isModifiable()) { + subjects_ = new com.google.protobuf.LazyStringArrayList(subjects_); + } + bitField0_ |= 0x00000008; + } + /** + *
+     * The name of the resources which are subject to this issue.
+     * 
+ * + * repeated string subjects = 4; + * @return A list containing the subjects. + */ + public com.google.protobuf.ProtocolStringList + getSubjectsList() { + subjects_.makeImmutable(); + return subjects_; + } + /** + *
+     * The name of the resources which are subject to this issue.
+     * 
+ * + * repeated string subjects = 4; + * @return The count of subjects. + */ + public int getSubjectsCount() { + return subjects_.size(); + } + /** + *
+     * The name of the resources which are subject to this issue.
+     * 
+ * + * repeated string subjects = 4; + * @param index The index of the element to return. + * @return The subjects at the given index. + */ + public java.lang.String getSubjects(int index) { + return subjects_.get(index); + } + /** + *
+     * The name of the resources which are subject to this issue.
+     * 
+ * + * repeated string subjects = 4; + * @param index The index of the value to return. + * @return The bytes of the subjects at the given index. + */ + public com.google.protobuf.ByteString + getSubjectsBytes(int index) { + return subjects_.getByteString(index); + } + /** + *
+     * The name of the resources which are subject to this issue.
+     * 
+ * + * repeated string subjects = 4; + * @param index The index to set the value at. + * @param value The subjects to set. + * @return This builder for chaining. + */ + public Builder setSubjects( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureSubjectsIsMutable(); + subjects_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The name of the resources which are subject to this issue.
+     * 
+ * + * repeated string subjects = 4; + * @param value The subjects to add. + * @return This builder for chaining. + */ + public Builder addSubjects( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureSubjectsIsMutable(); + subjects_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The name of the resources which are subject to this issue.
+     * 
+ * + * repeated string subjects = 4; + * @param values The subjects to add. + * @return This builder for chaining. + */ + public Builder addAllSubjects( + java.lang.Iterable values) { + ensureSubjectsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, subjects_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The name of the resources which are subject to this issue.
+     * 
+ * + * repeated string subjects = 4; + * @return This builder for chaining. + */ + public Builder clearSubjects() { + subjects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; + onChanged(); + return this; + } + /** + *
+     * The name of the resources which are subject to this issue.
+     * 
+ * + * repeated string subjects = 4; + * @param value The bytes of the subjects to add. + * @return This builder for chaining. + */ + public Builder addSubjectsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureSubjectsIsMutable(); + subjects_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object documentationUrl_ = ""; + /** + *
+     * A URL to a public documnetation, which addresses resolving this issue.
+     * 
+ * + * string documentation_url = 5; + * @return The documentationUrl. + */ + public java.lang.String getDocumentationUrl() { + java.lang.Object ref = documentationUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + documentationUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A URL to a public documnetation, which addresses resolving this issue.
+     * 
+ * + * string documentation_url = 5; + * @return The bytes for documentationUrl. + */ + public com.google.protobuf.ByteString + getDocumentationUrlBytes() { + java.lang.Object ref = documentationUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + documentationUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A URL to a public documnetation, which addresses resolving this issue.
+     * 
+ * + * string documentation_url = 5; + * @param value The documentationUrl to set. + * @return This builder for chaining. + */ + public Builder setDocumentationUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + documentationUrl_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * A URL to a public documnetation, which addresses resolving this issue.
+     * 
+ * + * string documentation_url = 5; + * @return This builder for chaining. + */ + public Builder clearDocumentationUrl() { + documentationUrl_ = getDefaultInstance().getDocumentationUrl(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+     * A URL to a public documnetation, which addresses resolving this issue.
+     * 
+ * + * string documentation_url = 5; + * @param value The bytes for documentationUrl to set. + * @return This builder for chaining. + */ + public Builder setDocumentationUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + documentationUrl_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + *
+     * The description of the issue.
+     * 
+ * + * string description = 6; + * @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; + } + } + /** + *
+     * The description of the issue.
+     * 
+ * + * string description = 6; + * @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; + } + } + /** + *
+     * The description of the issue.
+     * 
+ * + * string description = 6; + * @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; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * The description of the issue.
+     * 
+ * + * string description = 6; + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + *
+     * The description of the issue.
+     * 
+ * + * string description = 6; + * @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; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.AutopilotCompatibilityIssue) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.AutopilotCompatibilityIssue) + private static final com.google.container.v1.AutopilotCompatibilityIssue DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.AutopilotCompatibilityIssue(); + } + + public static com.google.container.v1.AutopilotCompatibilityIssue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutopilotCompatibilityIssue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.AutopilotCompatibilityIssue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutopilotCompatibilityIssueOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutopilotCompatibilityIssueOrBuilder.java new file mode 100644 index 000000000000..208359cc2852 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutopilotCompatibilityIssueOrBuilder.java @@ -0,0 +1,157 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface AutopilotCompatibilityIssueOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.AutopilotCompatibilityIssue) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The last time when this issue was observed.
+   * 
+ * + * .google.protobuf.Timestamp last_observation = 1; + * @return Whether the lastObservation field is set. + */ + boolean hasLastObservation(); + /** + *
+   * The last time when this issue was observed.
+   * 
+ * + * .google.protobuf.Timestamp last_observation = 1; + * @return The lastObservation. + */ + com.google.protobuf.Timestamp getLastObservation(); + /** + *
+   * The last time when this issue was observed.
+   * 
+ * + * .google.protobuf.Timestamp last_observation = 1; + */ + com.google.protobuf.TimestampOrBuilder getLastObservationOrBuilder(); + + /** + *
+   * The constraint type of the issue.
+   * 
+ * + * string constraint_type = 2; + * @return The constraintType. + */ + java.lang.String getConstraintType(); + /** + *
+   * The constraint type of the issue.
+   * 
+ * + * string constraint_type = 2; + * @return The bytes for constraintType. + */ + com.google.protobuf.ByteString + getConstraintTypeBytes(); + + /** + *
+   * The incompatibility type of this issue.
+   * 
+ * + * .google.container.v1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; + * @return The enum numeric value on the wire for incompatibilityType. + */ + int getIncompatibilityTypeValue(); + /** + *
+   * The incompatibility type of this issue.
+   * 
+ * + * .google.container.v1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; + * @return The incompatibilityType. + */ + com.google.container.v1.AutopilotCompatibilityIssue.IssueType getIncompatibilityType(); + + /** + *
+   * The name of the resources which are subject to this issue.
+   * 
+ * + * repeated string subjects = 4; + * @return A list containing the subjects. + */ + java.util.List + getSubjectsList(); + /** + *
+   * The name of the resources which are subject to this issue.
+   * 
+ * + * repeated string subjects = 4; + * @return The count of subjects. + */ + int getSubjectsCount(); + /** + *
+   * The name of the resources which are subject to this issue.
+   * 
+ * + * repeated string subjects = 4; + * @param index The index of the element to return. + * @return The subjects at the given index. + */ + java.lang.String getSubjects(int index); + /** + *
+   * The name of the resources which are subject to this issue.
+   * 
+ * + * repeated string subjects = 4; + * @param index The index of the value to return. + * @return The bytes of the subjects at the given index. + */ + com.google.protobuf.ByteString + getSubjectsBytes(int index); + + /** + *
+   * A URL to a public documnetation, which addresses resolving this issue.
+   * 
+ * + * string documentation_url = 5; + * @return The documentationUrl. + */ + java.lang.String getDocumentationUrl(); + /** + *
+   * A URL to a public documnetation, which addresses resolving this issue.
+   * 
+ * + * string documentation_url = 5; + * @return The bytes for documentationUrl. + */ + com.google.protobuf.ByteString + getDocumentationUrlBytes(); + + /** + *
+   * The description of the issue.
+   * 
+ * + * string description = 6; + * @return The description. + */ + java.lang.String getDescription(); + /** + *
+   * The description of the issue.
+   * 
+ * + * string description = 6; + * @return The bytes for description. + */ + com.google.protobuf.ByteString + getDescriptionBytes(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutopilotOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutopilotOrBuilder.java new file mode 100644 index 000000000000..f33852a97da1 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutopilotOrBuilder.java @@ -0,0 +1,47 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface AutopilotOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.Autopilot) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Enable Autopilot
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); + + /** + *
+   * Workload policy configuration for Autopilot.
+   * 
+ * + * .google.container.v1.WorkloadPolicyConfig workload_policy_config = 2; + * @return Whether the workloadPolicyConfig field is set. + */ + boolean hasWorkloadPolicyConfig(); + /** + *
+   * Workload policy configuration for Autopilot.
+   * 
+ * + * .google.container.v1.WorkloadPolicyConfig workload_policy_config = 2; + * @return The workloadPolicyConfig. + */ + com.google.container.v1.WorkloadPolicyConfig getWorkloadPolicyConfig(); + /** + *
+   * Workload policy configuration for Autopilot.
+   * 
+ * + * .google.container.v1.WorkloadPolicyConfig workload_policy_config = 2; + */ + com.google.container.v1.WorkloadPolicyConfigOrBuilder getWorkloadPolicyConfigOrBuilder(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaults.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaults.java new file mode 100644 index 000000000000..12597451bcac --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaults.java @@ -0,0 +1,2545 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * AutoprovisioningNodePoolDefaults contains defaults for a node pool created
+ * by NAP.
+ * 
+ * + * Protobuf type {@code google.container.v1.AutoprovisioningNodePoolDefaults} + */ +public final class AutoprovisioningNodePoolDefaults extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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.emptyList(); + serviceAccount_ = ""; + minCpuPlatform_ = ""; + diskType_ = ""; + bootDiskKmsKey_ = ""; + imageType_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AutoprovisioningNodePoolDefaults(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AutoprovisioningNodePoolDefaults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AutoprovisioningNodePoolDefaults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.AutoprovisioningNodePoolDefaults.class, com.google.container.v1.AutoprovisioningNodePoolDefaults.Builder.class); + } + + private int bitField0_; + public static final int OAUTH_SCOPES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList oauthScopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * Scopes that are used by NAP when creating node pools.
+   * 
+ * + * repeated string oauth_scopes = 1; + * @return A list containing the oauthScopes. + */ + public com.google.protobuf.ProtocolStringList + getOauthScopesList() { + return oauthScopes_; + } + /** + *
+   * Scopes that are used by NAP when creating node pools.
+   * 
+ * + * repeated string oauth_scopes = 1; + * @return The count of oauthScopes. + */ + public int getOauthScopesCount() { + return oauthScopes_.size(); + } + /** + *
+   * Scopes that are used by NAP when creating node pools.
+   * 
+ * + * 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); + } + /** + *
+   * Scopes that are used by NAP when creating node pools.
+   * 
+ * + * 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; + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAccount_ = ""; + /** + *
+   * The Google Cloud Platform Service Account to be used by the node VMs.
+   * 
+ * + * 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.
+   * 
+ * + * 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.v1.NodePool.UpgradeSettings upgradeSettings_; + /** + *
+   * Specifies the upgrade settings for NAP created node pools
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + * @return Whether the upgradeSettings field is set. + */ + @java.lang.Override + public boolean hasUpgradeSettings() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Specifies the upgrade settings for NAP created node pools
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + * @return The upgradeSettings. + */ + @java.lang.Override + public com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings() { + return upgradeSettings_ == null ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() : upgradeSettings_; + } + /** + *
+   * Specifies the upgrade settings for NAP created node pools
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + @java.lang.Override + public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { + return upgradeSettings_ == null ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() : upgradeSettings_; + } + + public static final int MANAGEMENT_FIELD_NUMBER = 4; + private com.google.container.v1.NodeManagement management_; + /** + *
+   * Specifies the node management options for NAP created node-pools.
+   * 
+ * + * .google.container.v1.NodeManagement management = 4; + * @return Whether the management field is set. + */ + @java.lang.Override + public boolean hasManagement() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * Specifies the node management options for NAP created node-pools.
+   * 
+ * + * .google.container.v1.NodeManagement management = 4; + * @return The management. + */ + @java.lang.Override + public com.google.container.v1.NodeManagement getManagement() { + return management_ == null ? com.google.container.v1.NodeManagement.getDefaultInstance() : management_; + } + /** + *
+   * Specifies the node management options for NAP created node-pools.
+   * 
+ * + * .google.container.v1.NodeManagement management = 4; + */ + @java.lang.Override + public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() { + return management_ == null ? com.google.container.v1.NodeManagement.getDefaultInstance() : management_; + } + + public static final int MIN_CPU_PLATFORM_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object minCpuPlatform_ = ""; + /** + *
+   * Deprecated. Minimum CPU platform to be used for NAP created node pools.
+   * The instance may be scheduled on the specified or newer CPU platform.
+   * Applicable values are the friendly names of CPU platforms, such as
+   * minCpuPlatform: Intel Haswell or
+   * minCpuPlatform: Intel Sandy Bridge. For more
+   * information, read [how to specify min CPU
+   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
+   * This field is deprecated, min_cpu_platform should be specified using
+   * `cloud.google.com/requested-min-cpu-platform` label selector on the pod.
+   * To unset the min cpu platform field pass "automatic"
+   * as field value.
+   * 
+ * + * string min_cpu_platform = 5 [deprecated = true]; + * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is deprecated. + * See google/container/v1/cluster_service.proto;l=3933 + * @return The minCpuPlatform. + */ + @java.lang.Override + @java.lang.Deprecated 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; + } + } + /** + *
+   * Deprecated. Minimum CPU platform to be used for NAP created node pools.
+   * The instance may be scheduled on the specified or newer CPU platform.
+   * Applicable values are the friendly names of CPU platforms, such as
+   * minCpuPlatform: Intel Haswell or
+   * minCpuPlatform: Intel Sandy Bridge. For more
+   * information, read [how to specify min CPU
+   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
+   * This field is deprecated, min_cpu_platform should be specified using
+   * `cloud.google.com/requested-min-cpu-platform` label selector on the pod.
+   * To unset the min cpu platform field pass "automatic"
+   * as field value.
+   * 
+ * + * string min_cpu_platform = 5 [deprecated = true]; + * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is deprecated. + * See google/container/v1/cluster_service.proto;l=3933 + * @return The bytes for minCpuPlatform. + */ + @java.lang.Override + @java.lang.Deprecated 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_ = 0; + /** + *
+   * 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; + @SuppressWarnings("serial") + private volatile java.lang.Object diskType_ = ""; + /** + *
+   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+   * 'pd-balanced')
+   *
+   * If unspecified, the default disk type is 'pd-standard'
+   * 
+ * + * string disk_type = 7; + * @return The diskType. + */ + @java.lang.Override + public java.lang.String getDiskType() { + java.lang.Object ref = diskType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + diskType_ = s; + return s; + } + } + /** + *
+   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+   * 'pd-balanced')
+   *
+   * If unspecified, the default disk type is 'pd-standard'
+   * 
+ * + * string disk_type = 7; + * @return The bytes for diskType. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDiskTypeBytes() { + java.lang.Object ref = diskType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + diskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER = 8; + private com.google.container.v1.ShieldedInstanceConfig shieldedInstanceConfig_; + /** + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + * @return Whether the shieldedInstanceConfig field is set. + */ + @java.lang.Override + public boolean hasShieldedInstanceConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + * @return The shieldedInstanceConfig. + */ + @java.lang.Override + public com.google.container.v1.ShieldedInstanceConfig getShieldedInstanceConfig() { + return shieldedInstanceConfig_ == null ? com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + } + /** + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + @java.lang.Override + public com.google.container.v1.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { + return shieldedInstanceConfig_ == null ? com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + } + + public static final int BOOT_DISK_KMS_KEY_FIELD_NUMBER = 9; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + private volatile java.lang.Object imageType_ = ""; + /** + *
+   * The image type to use for NAP created node. Please see
+   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+   * available image types.
+   * 
+ * + * 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 NAP created node. Please see
+   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+   * available image types.
+   * 
+ * + * 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; + } + } + + public static final int INSECURE_KUBELET_READONLY_PORT_ENABLED_FIELD_NUMBER = 13; + private boolean insecureKubeletReadonlyPortEnabled_ = false; + /** + *
+   * Enable or disable Kubelet read only port.
+   * 
+ * + * optional bool insecure_kubelet_readonly_port_enabled = 13; + * @return Whether the insecureKubeletReadonlyPortEnabled field is set. + */ + @java.lang.Override + public boolean hasInsecureKubeletReadonlyPortEnabled() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+   * Enable or disable Kubelet read only port.
+   * 
+ * + * optional bool insecure_kubelet_readonly_port_enabled = 13; + * @return The insecureKubeletReadonlyPortEnabled. + */ + @java.lang.Override + public boolean getInsecureKubeletReadonlyPortEnabled() { + return insecureKubeletReadonlyPortEnabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceAccount_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getUpgradeSettings()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getManagement()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minCpuPlatform_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, minCpuPlatform_); + } + if (diskSizeGb_ != 0) { + output.writeInt32(6, diskSizeGb_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, diskType_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(8, getShieldedInstanceConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootDiskKmsKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, bootDiskKmsKey_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, imageType_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeBool(13, insecureKubeletReadonlyPortEnabled_); + } + getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, serviceAccount_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpgradeSettings()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getManagement()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minCpuPlatform_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, minCpuPlatform_); + } + if (diskSizeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, diskSizeGb_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, diskType_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getShieldedInstanceConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootDiskKmsKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, bootDiskKmsKey_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, imageType_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(13, insecureKubeletReadonlyPortEnabled_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.AutoprovisioningNodePoolDefaults)) { + return super.equals(obj); + } + com.google.container.v1.AutoprovisioningNodePoolDefaults other = (com.google.container.v1.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 (hasInsecureKubeletReadonlyPortEnabled() != other.hasInsecureKubeletReadonlyPortEnabled()) return false; + if (hasInsecureKubeletReadonlyPortEnabled()) { + if (getInsecureKubeletReadonlyPortEnabled() + != other.getInsecureKubeletReadonlyPortEnabled()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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(); + if (hasInsecureKubeletReadonlyPortEnabled()) { + hash = (37 * hash) + INSECURE_KUBELET_READONLY_PORT_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInsecureKubeletReadonlyPortEnabled()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.AutoprovisioningNodePoolDefaults parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.AutoprovisioningNodePoolDefaults parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.AutoprovisioningNodePoolDefaults parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.AutoprovisioningNodePoolDefaults parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.AutoprovisioningNodePoolDefaults} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.AutoprovisioningNodePoolDefaults) + com.google.container.v1.AutoprovisioningNodePoolDefaultsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AutoprovisioningNodePoolDefaults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AutoprovisioningNodePoolDefaults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.AutoprovisioningNodePoolDefaults.class, com.google.container.v1.AutoprovisioningNodePoolDefaults.Builder.class); + } + + // Construct using com.google.container.v1.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) { + getUpgradeSettingsFieldBuilder(); + getManagementFieldBuilder(); + getShieldedInstanceConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + oauthScopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + serviceAccount_ = ""; + upgradeSettings_ = null; + if (upgradeSettingsBuilder_ != null) { + upgradeSettingsBuilder_.dispose(); + upgradeSettingsBuilder_ = null; + } + management_ = null; + if (managementBuilder_ != null) { + managementBuilder_.dispose(); + managementBuilder_ = null; + } + minCpuPlatform_ = ""; + diskSizeGb_ = 0; + diskType_ = ""; + shieldedInstanceConfig_ = null; + if (shieldedInstanceConfigBuilder_ != null) { + shieldedInstanceConfigBuilder_.dispose(); + shieldedInstanceConfigBuilder_ = null; + } + bootDiskKmsKey_ = ""; + imageType_ = ""; + insecureKubeletReadonlyPortEnabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_AutoprovisioningNodePoolDefaults_descriptor; + } + + @java.lang.Override + public com.google.container.v1.AutoprovisioningNodePoolDefaults getDefaultInstanceForType() { + return com.google.container.v1.AutoprovisioningNodePoolDefaults.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.AutoprovisioningNodePoolDefaults build() { + com.google.container.v1.AutoprovisioningNodePoolDefaults result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.AutoprovisioningNodePoolDefaults buildPartial() { + com.google.container.v1.AutoprovisioningNodePoolDefaults result = new com.google.container.v1.AutoprovisioningNodePoolDefaults(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.AutoprovisioningNodePoolDefaults result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + oauthScopes_.makeImmutable(); + result.oauthScopes_ = oauthScopes_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.serviceAccount_ = serviceAccount_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.upgradeSettings_ = upgradeSettingsBuilder_ == null + ? upgradeSettings_ + : upgradeSettingsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.management_ = managementBuilder_ == null + ? management_ + : managementBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.minCpuPlatform_ = minCpuPlatform_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.diskSizeGb_ = diskSizeGb_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.diskType_ = diskType_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.shieldedInstanceConfig_ = shieldedInstanceConfigBuilder_ == null + ? shieldedInstanceConfig_ + : shieldedInstanceConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.bootDiskKmsKey_ = bootDiskKmsKey_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.imageType_ = imageType_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.insecureKubeletReadonlyPortEnabled_ = insecureKubeletReadonlyPortEnabled_; + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.AutoprovisioningNodePoolDefaults) { + return mergeFrom((com.google.container.v1.AutoprovisioningNodePoolDefaults)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.AutoprovisioningNodePoolDefaults other) { + if (other == com.google.container.v1.AutoprovisioningNodePoolDefaults.getDefaultInstance()) return this; + if (!other.oauthScopes_.isEmpty()) { + if (oauthScopes_.isEmpty()) { + oauthScopes_ = other.oauthScopes_; + bitField0_ |= 0x00000001; + } else { + ensureOauthScopesIsMutable(); + oauthScopes_.addAll(other.oauthScopes_); + } + onChanged(); + } + if (!other.getServiceAccount().isEmpty()) { + serviceAccount_ = other.serviceAccount_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasUpgradeSettings()) { + mergeUpgradeSettings(other.getUpgradeSettings()); + } + if (other.hasManagement()) { + mergeManagement(other.getManagement()); + } + if (!other.getMinCpuPlatform().isEmpty()) { + minCpuPlatform_ = other.minCpuPlatform_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getDiskSizeGb() != 0) { + setDiskSizeGb(other.getDiskSizeGb()); + } + if (!other.getDiskType().isEmpty()) { + diskType_ = other.diskType_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasShieldedInstanceConfig()) { + mergeShieldedInstanceConfig(other.getShieldedInstanceConfig()); + } + if (!other.getBootDiskKmsKey().isEmpty()) { + bootDiskKmsKey_ = other.bootDiskKmsKey_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.getImageType().isEmpty()) { + imageType_ = other.imageType_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (other.hasInsecureKubeletReadonlyPortEnabled()) { + setInsecureKubeletReadonlyPortEnabled(other.getInsecureKubeletReadonlyPortEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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(); + ensureOauthScopesIsMutable(); + oauthScopes_.add(s); + break; + } // case 10 + case 18: { + serviceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getUpgradeSettingsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getManagementFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + minCpuPlatform_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + diskSizeGb_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: { + diskType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + input.readMessage( + getShieldedInstanceConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: { + bootDiskKmsKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: { + imageType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 104: { + insecureKubeletReadonlyPortEnabled_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 104 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList oauthScopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureOauthScopesIsMutable() { + if (!oauthScopes_.isModifiable()) { + oauthScopes_ = new com.google.protobuf.LazyStringArrayList(oauthScopes_); + } + bitField0_ |= 0x00000001; + } + /** + *
+     * Scopes that are used by NAP when creating node pools.
+     * 
+ * + * repeated string oauth_scopes = 1; + * @return A list containing the oauthScopes. + */ + public com.google.protobuf.ProtocolStringList + getOauthScopesList() { + oauthScopes_.makeImmutable(); + return oauthScopes_; + } + /** + *
+     * Scopes that are used by NAP when creating node pools.
+     * 
+ * + * repeated string oauth_scopes = 1; + * @return The count of oauthScopes. + */ + public int getOauthScopesCount() { + return oauthScopes_.size(); + } + /** + *
+     * Scopes that are used by NAP when creating node pools.
+     * 
+ * + * 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); + } + /** + *
+     * Scopes that are used by NAP when creating node pools.
+     * 
+ * + * 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); + } + /** + *
+     * Scopes that are used by NAP when creating node pools.
+     * 
+ * + * 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); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Scopes that are used by NAP when creating node pools.
+     * 
+ * + * 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); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Scopes that are used by NAP when creating node pools.
+     * 
+ * + * 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_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Scopes that are used by NAP when creating node pools.
+     * 
+ * + * repeated string oauth_scopes = 1; + * @return This builder for chaining. + */ + public Builder clearOauthScopes() { + oauthScopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; + onChanged(); + return this; + } + /** + *
+     * Scopes that are used by NAP when creating node pools.
+     * 
+ * + * 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); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object serviceAccount_ = ""; + /** + *
+     * The Google Cloud Platform Service Account to be used by the node VMs.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The Google Cloud Platform Service Account to be used by the node VMs.
+     * 
+ * + * string service_account = 2; + * @return This builder for chaining. + */ + public Builder clearServiceAccount() { + serviceAccount_ = getDefaultInstance().getServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * The Google Cloud Platform Service Account to be used by the node VMs.
+     * 
+ * + * 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.container.v1.NodePool.UpgradeSettings upgradeSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool.UpgradeSettings, com.google.container.v1.NodePool.UpgradeSettings.Builder, com.google.container.v1.NodePool.UpgradeSettingsOrBuilder> upgradeSettingsBuilder_; + /** + *
+     * Specifies the upgrade settings for NAP created node pools
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + * @return Whether the upgradeSettings field is set. + */ + public boolean hasUpgradeSettings() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * Specifies the upgrade settings for NAP created node pools
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + * @return The upgradeSettings. + */ + public com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings() { + if (upgradeSettingsBuilder_ == null) { + return upgradeSettings_ == null ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() : upgradeSettings_; + } else { + return upgradeSettingsBuilder_.getMessage(); + } + } + /** + *
+     * Specifies the upgrade settings for NAP created node pools
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + public Builder setUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value) { + if (upgradeSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + upgradeSettings_ = value; + } else { + upgradeSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Specifies the upgrade settings for NAP created node pools
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + public Builder setUpgradeSettings( + com.google.container.v1.NodePool.UpgradeSettings.Builder builderForValue) { + if (upgradeSettingsBuilder_ == null) { + upgradeSettings_ = builderForValue.build(); + } else { + upgradeSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Specifies the upgrade settings for NAP created node pools
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + public Builder mergeUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value) { + if (upgradeSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + upgradeSettings_ != null && + upgradeSettings_ != com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance()) { + getUpgradeSettingsBuilder().mergeFrom(value); + } else { + upgradeSettings_ = value; + } + } else { + upgradeSettingsBuilder_.mergeFrom(value); + } + if (upgradeSettings_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+     * Specifies the upgrade settings for NAP created node pools
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + public Builder clearUpgradeSettings() { + bitField0_ = (bitField0_ & ~0x00000004); + upgradeSettings_ = null; + if (upgradeSettingsBuilder_ != null) { + upgradeSettingsBuilder_.dispose(); + upgradeSettingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Specifies the upgrade settings for NAP created node pools
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + public com.google.container.v1.NodePool.UpgradeSettings.Builder getUpgradeSettingsBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getUpgradeSettingsFieldBuilder().getBuilder(); + } + /** + *
+     * Specifies the upgrade settings for NAP created node pools
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { + if (upgradeSettingsBuilder_ != null) { + return upgradeSettingsBuilder_.getMessageOrBuilder(); + } else { + return upgradeSettings_ == null ? + com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() : upgradeSettings_; + } + } + /** + *
+     * Specifies the upgrade settings for NAP created node pools
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool.UpgradeSettings, com.google.container.v1.NodePool.UpgradeSettings.Builder, com.google.container.v1.NodePool.UpgradeSettingsOrBuilder> + getUpgradeSettingsFieldBuilder() { + if (upgradeSettingsBuilder_ == null) { + upgradeSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool.UpgradeSettings, com.google.container.v1.NodePool.UpgradeSettings.Builder, com.google.container.v1.NodePool.UpgradeSettingsOrBuilder>( + getUpgradeSettings(), + getParentForChildren(), + isClean()); + upgradeSettings_ = null; + } + return upgradeSettingsBuilder_; + } + + private com.google.container.v1.NodeManagement management_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeManagement, com.google.container.v1.NodeManagement.Builder, com.google.container.v1.NodeManagementOrBuilder> managementBuilder_; + /** + *
+     * Specifies the node management options for NAP created node-pools.
+     * 
+ * + * .google.container.v1.NodeManagement management = 4; + * @return Whether the management field is set. + */ + public boolean hasManagement() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * Specifies the node management options for NAP created node-pools.
+     * 
+ * + * .google.container.v1.NodeManagement management = 4; + * @return The management. + */ + public com.google.container.v1.NodeManagement getManagement() { + if (managementBuilder_ == null) { + return management_ == null ? com.google.container.v1.NodeManagement.getDefaultInstance() : management_; + } else { + return managementBuilder_.getMessage(); + } + } + /** + *
+     * Specifies the node management options for NAP created node-pools.
+     * 
+ * + * .google.container.v1.NodeManagement management = 4; + */ + public Builder setManagement(com.google.container.v1.NodeManagement value) { + if (managementBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + management_ = value; + } else { + managementBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Specifies the node management options for NAP created node-pools.
+     * 
+ * + * .google.container.v1.NodeManagement management = 4; + */ + public Builder setManagement( + com.google.container.v1.NodeManagement.Builder builderForValue) { + if (managementBuilder_ == null) { + management_ = builderForValue.build(); + } else { + managementBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Specifies the node management options for NAP created node-pools.
+     * 
+ * + * .google.container.v1.NodeManagement management = 4; + */ + public Builder mergeManagement(com.google.container.v1.NodeManagement value) { + if (managementBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + management_ != null && + management_ != com.google.container.v1.NodeManagement.getDefaultInstance()) { + getManagementBuilder().mergeFrom(value); + } else { + management_ = value; + } + } else { + managementBuilder_.mergeFrom(value); + } + if (management_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + *
+     * Specifies the node management options for NAP created node-pools.
+     * 
+ * + * .google.container.v1.NodeManagement management = 4; + */ + public Builder clearManagement() { + bitField0_ = (bitField0_ & ~0x00000008); + management_ = null; + if (managementBuilder_ != null) { + managementBuilder_.dispose(); + managementBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Specifies the node management options for NAP created node-pools.
+     * 
+ * + * .google.container.v1.NodeManagement management = 4; + */ + public com.google.container.v1.NodeManagement.Builder getManagementBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getManagementFieldBuilder().getBuilder(); + } + /** + *
+     * Specifies the node management options for NAP created node-pools.
+     * 
+ * + * .google.container.v1.NodeManagement management = 4; + */ + public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() { + if (managementBuilder_ != null) { + return managementBuilder_.getMessageOrBuilder(); + } else { + return management_ == null ? + com.google.container.v1.NodeManagement.getDefaultInstance() : management_; + } + } + /** + *
+     * Specifies the node management options for NAP created node-pools.
+     * 
+ * + * .google.container.v1.NodeManagement management = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeManagement, com.google.container.v1.NodeManagement.Builder, com.google.container.v1.NodeManagementOrBuilder> + getManagementFieldBuilder() { + if (managementBuilder_ == null) { + managementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeManagement, com.google.container.v1.NodeManagement.Builder, com.google.container.v1.NodeManagementOrBuilder>( + getManagement(), + getParentForChildren(), + isClean()); + management_ = null; + } + return managementBuilder_; + } + + private java.lang.Object minCpuPlatform_ = ""; + /** + *
+     * Deprecated. Minimum CPU platform to be used for NAP created node pools.
+     * The instance may be scheduled on the specified or newer CPU platform.
+     * Applicable values are the friendly names of CPU platforms, such as
+     * minCpuPlatform: Intel Haswell or
+     * minCpuPlatform: Intel Sandy Bridge. For more
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
+     * This field is deprecated, min_cpu_platform should be specified using
+     * `cloud.google.com/requested-min-cpu-platform` label selector on the pod.
+     * To unset the min cpu platform field pass "automatic"
+     * as field value.
+     * 
+ * + * string min_cpu_platform = 5 [deprecated = true]; + * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is deprecated. + * See google/container/v1/cluster_service.proto;l=3933 + * @return The minCpuPlatform. + */ + @java.lang.Deprecated 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; + } + } + /** + *
+     * Deprecated. Minimum CPU platform to be used for NAP created node pools.
+     * The instance may be scheduled on the specified or newer CPU platform.
+     * Applicable values are the friendly names of CPU platforms, such as
+     * minCpuPlatform: Intel Haswell or
+     * minCpuPlatform: Intel Sandy Bridge. For more
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
+     * This field is deprecated, min_cpu_platform should be specified using
+     * `cloud.google.com/requested-min-cpu-platform` label selector on the pod.
+     * To unset the min cpu platform field pass "automatic"
+     * as field value.
+     * 
+ * + * string min_cpu_platform = 5 [deprecated = true]; + * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is deprecated. + * See google/container/v1/cluster_service.proto;l=3933 + * @return The bytes for minCpuPlatform. + */ + @java.lang.Deprecated 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; + } + } + /** + *
+     * Deprecated. Minimum CPU platform to be used for NAP created node pools.
+     * The instance may be scheduled on the specified or newer CPU platform.
+     * Applicable values are the friendly names of CPU platforms, such as
+     * minCpuPlatform: Intel Haswell or
+     * minCpuPlatform: Intel Sandy Bridge. For more
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
+     * This field is deprecated, min_cpu_platform should be specified using
+     * `cloud.google.com/requested-min-cpu-platform` label selector on the pod.
+     * To unset the min cpu platform field pass "automatic"
+     * as field value.
+     * 
+ * + * string min_cpu_platform = 5 [deprecated = true]; + * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is deprecated. + * See google/container/v1/cluster_service.proto;l=3933 + * @param value The minCpuPlatform to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setMinCpuPlatform( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + minCpuPlatform_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Deprecated. Minimum CPU platform to be used for NAP created node pools.
+     * The instance may be scheduled on the specified or newer CPU platform.
+     * Applicable values are the friendly names of CPU platforms, such as
+     * minCpuPlatform: Intel Haswell or
+     * minCpuPlatform: Intel Sandy Bridge. For more
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
+     * This field is deprecated, min_cpu_platform should be specified using
+     * `cloud.google.com/requested-min-cpu-platform` label selector on the pod.
+     * To unset the min cpu platform field pass "automatic"
+     * as field value.
+     * 
+ * + * string min_cpu_platform = 5 [deprecated = true]; + * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is deprecated. + * See google/container/v1/cluster_service.proto;l=3933 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearMinCpuPlatform() { + minCpuPlatform_ = getDefaultInstance().getMinCpuPlatform(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+     * Deprecated. Minimum CPU platform to be used for NAP created node pools.
+     * The instance may be scheduled on the specified or newer CPU platform.
+     * Applicable values are the friendly names of CPU platforms, such as
+     * minCpuPlatform: Intel Haswell or
+     * minCpuPlatform: Intel Sandy Bridge. For more
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
+     * This field is deprecated, min_cpu_platform should be specified using
+     * `cloud.google.com/requested-min-cpu-platform` label selector on the pod.
+     * To unset the min cpu platform field pass "automatic"
+     * as field value.
+     * 
+ * + * string min_cpu_platform = 5 [deprecated = true]; + * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is deprecated. + * See google/container/v1/cluster_service.proto;l=3933 + * @param value The bytes for minCpuPlatform to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setMinCpuPlatformBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + minCpuPlatform_ = value; + bitField0_ |= 0x00000010; + 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; + bitField0_ |= 0x00000020; + 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() { + bitField0_ = (bitField0_ & ~0x00000020); + 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; + bitField0_ |= 0x00000040; + 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(); + bitField0_ = (bitField0_ & ~0x00000040); + 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; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.container.v1.ShieldedInstanceConfig shieldedInstanceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ShieldedInstanceConfig, com.google.container.v1.ShieldedInstanceConfig.Builder, com.google.container.v1.ShieldedInstanceConfigOrBuilder> shieldedInstanceConfigBuilder_; + /** + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + * @return Whether the shieldedInstanceConfig field is set. + */ + public boolean hasShieldedInstanceConfig() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + * @return The shieldedInstanceConfig. + */ + public com.google.container.v1.ShieldedInstanceConfig getShieldedInstanceConfig() { + if (shieldedInstanceConfigBuilder_ == null) { + return shieldedInstanceConfig_ == null ? com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + } else { + return shieldedInstanceConfigBuilder_.getMessage(); + } + } + /** + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + public Builder setShieldedInstanceConfig(com.google.container.v1.ShieldedInstanceConfig value) { + if (shieldedInstanceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + shieldedInstanceConfig_ = value; + } else { + shieldedInstanceConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + public Builder setShieldedInstanceConfig( + com.google.container.v1.ShieldedInstanceConfig.Builder builderForValue) { + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfig_ = builderForValue.build(); + } else { + shieldedInstanceConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + public Builder mergeShieldedInstanceConfig(com.google.container.v1.ShieldedInstanceConfig value) { + if (shieldedInstanceConfigBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) && + shieldedInstanceConfig_ != null && + shieldedInstanceConfig_ != com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance()) { + getShieldedInstanceConfigBuilder().mergeFrom(value); + } else { + shieldedInstanceConfig_ = value; + } + } else { + shieldedInstanceConfigBuilder_.mergeFrom(value); + } + if (shieldedInstanceConfig_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + /** + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + public Builder clearShieldedInstanceConfig() { + bitField0_ = (bitField0_ & ~0x00000080); + shieldedInstanceConfig_ = null; + if (shieldedInstanceConfigBuilder_ != null) { + shieldedInstanceConfigBuilder_.dispose(); + shieldedInstanceConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + public com.google.container.v1.ShieldedInstanceConfig.Builder getShieldedInstanceConfigBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getShieldedInstanceConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + public com.google.container.v1.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { + if (shieldedInstanceConfigBuilder_ != null) { + return shieldedInstanceConfigBuilder_.getMessageOrBuilder(); + } else { + return shieldedInstanceConfig_ == null ? + com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + } + } + /** + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ShieldedInstanceConfig, com.google.container.v1.ShieldedInstanceConfig.Builder, com.google.container.v1.ShieldedInstanceConfigOrBuilder> + getShieldedInstanceConfigFieldBuilder() { + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ShieldedInstanceConfig, com.google.container.v1.ShieldedInstanceConfig.Builder, com.google.container.v1.ShieldedInstanceConfigOrBuilder>( + getShieldedInstanceConfig(), + getParentForChildren(), + isClean()); + shieldedInstanceConfig_ = null; + } + return shieldedInstanceConfigBuilder_; + } + + private java.lang.Object bootDiskKmsKey_ = ""; + /** + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 9; + * @return The bootDiskKmsKey. + */ + public java.lang.String getBootDiskKmsKey() { + java.lang.Object ref = bootDiskKmsKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bootDiskKmsKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 9; + * @return The bytes for bootDiskKmsKey. + */ + public com.google.protobuf.ByteString + getBootDiskKmsKeyBytes() { + java.lang.Object ref = bootDiskKmsKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bootDiskKmsKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 9; + * @param value The bootDiskKmsKey to set. + * @return This builder for chaining. + */ + public Builder setBootDiskKmsKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + bootDiskKmsKey_ = value; + bitField0_ |= 0x00000100; + 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(); + bitField0_ = (bitField0_ & ~0x00000100); + 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; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.lang.Object imageType_ = ""; + /** + *
+     * The image type to use for NAP created node. Please see
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+     * available image types.
+     * 
+ * + * 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 NAP created node. Please see
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+     * available image types.
+     * 
+ * + * 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 NAP created node. Please see
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+     * available image types.
+     * 
+ * + * 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; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * The image type to use for NAP created node. Please see
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+     * available image types.
+     * 
+ * + * string image_type = 10; + * @return This builder for chaining. + */ + public Builder clearImageType() { + imageType_ = getDefaultInstance().getImageType(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + *
+     * The image type to use for NAP created node. Please see
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+     * available image types.
+     * 
+ * + * 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; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private boolean insecureKubeletReadonlyPortEnabled_ ; + /** + *
+     * Enable or disable Kubelet read only port.
+     * 
+ * + * optional bool insecure_kubelet_readonly_port_enabled = 13; + * @return Whether the insecureKubeletReadonlyPortEnabled field is set. + */ + @java.lang.Override + public boolean hasInsecureKubeletReadonlyPortEnabled() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + *
+     * Enable or disable Kubelet read only port.
+     * 
+ * + * optional bool insecure_kubelet_readonly_port_enabled = 13; + * @return The insecureKubeletReadonlyPortEnabled. + */ + @java.lang.Override + public boolean getInsecureKubeletReadonlyPortEnabled() { + return insecureKubeletReadonlyPortEnabled_; + } + /** + *
+     * Enable or disable Kubelet read only port.
+     * 
+ * + * optional bool insecure_kubelet_readonly_port_enabled = 13; + * @param value The insecureKubeletReadonlyPortEnabled to set. + * @return This builder for chaining. + */ + public Builder setInsecureKubeletReadonlyPortEnabled(boolean value) { + + insecureKubeletReadonlyPortEnabled_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+     * Enable or disable Kubelet read only port.
+     * 
+ * + * optional bool insecure_kubelet_readonly_port_enabled = 13; + * @return This builder for chaining. + */ + public Builder clearInsecureKubeletReadonlyPortEnabled() { + bitField0_ = (bitField0_ & ~0x00000400); + insecureKubeletReadonlyPortEnabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.AutoprovisioningNodePoolDefaults) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.AutoprovisioningNodePoolDefaults) + private static final com.google.container.v1.AutoprovisioningNodePoolDefaults DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.AutoprovisioningNodePoolDefaults(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.AutoprovisioningNodePoolDefaults getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaultsOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaultsOrBuilder.java new file mode 100644 index 000000000000..04a600146591 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaultsOrBuilder.java @@ -0,0 +1,308 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface AutoprovisioningNodePoolDefaultsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.AutoprovisioningNodePoolDefaults) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Scopes that are used by NAP when creating node pools.
+   * 
+ * + * repeated string oauth_scopes = 1; + * @return A list containing the oauthScopes. + */ + java.util.List + getOauthScopesList(); + /** + *
+   * Scopes that are used by NAP when creating node pools.
+   * 
+ * + * repeated string oauth_scopes = 1; + * @return The count of oauthScopes. + */ + int getOauthScopesCount(); + /** + *
+   * Scopes that are used by NAP when creating node pools.
+   * 
+ * + * 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); + /** + *
+   * Scopes that are used by NAP when creating node pools.
+   * 
+ * + * 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.
+   * 
+ * + * string service_account = 2; + * @return The serviceAccount. + */ + java.lang.String getServiceAccount(); + /** + *
+   * The Google Cloud Platform Service Account to be used by the node VMs.
+   * 
+ * + * string service_account = 2; + * @return The bytes for serviceAccount. + */ + com.google.protobuf.ByteString + getServiceAccountBytes(); + + /** + *
+   * Specifies the upgrade settings for NAP created node pools
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + * @return Whether the upgradeSettings field is set. + */ + boolean hasUpgradeSettings(); + /** + *
+   * Specifies the upgrade settings for NAP created node pools
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + * @return The upgradeSettings. + */ + com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings(); + /** + *
+   * Specifies the upgrade settings for NAP created node pools
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder(); + + /** + *
+   * Specifies the node management options for NAP created node-pools.
+   * 
+ * + * .google.container.v1.NodeManagement management = 4; + * @return Whether the management field is set. + */ + boolean hasManagement(); + /** + *
+   * Specifies the node management options for NAP created node-pools.
+   * 
+ * + * .google.container.v1.NodeManagement management = 4; + * @return The management. + */ + com.google.container.v1.NodeManagement getManagement(); + /** + *
+   * Specifies the node management options for NAP created node-pools.
+   * 
+ * + * .google.container.v1.NodeManagement management = 4; + */ + com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder(); + + /** + *
+   * Deprecated. Minimum CPU platform to be used for NAP created node pools.
+   * The instance may be scheduled on the specified or newer CPU platform.
+   * Applicable values are the friendly names of CPU platforms, such as
+   * minCpuPlatform: Intel Haswell or
+   * minCpuPlatform: Intel Sandy Bridge. For more
+   * information, read [how to specify min CPU
+   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
+   * This field is deprecated, min_cpu_platform should be specified using
+   * `cloud.google.com/requested-min-cpu-platform` label selector on the pod.
+   * To unset the min cpu platform field pass "automatic"
+   * as field value.
+   * 
+ * + * string min_cpu_platform = 5 [deprecated = true]; + * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is deprecated. + * See google/container/v1/cluster_service.proto;l=3933 + * @return The minCpuPlatform. + */ + @java.lang.Deprecated java.lang.String getMinCpuPlatform(); + /** + *
+   * Deprecated. Minimum CPU platform to be used for NAP created node pools.
+   * The instance may be scheduled on the specified or newer CPU platform.
+   * Applicable values are the friendly names of CPU platforms, such as
+   * minCpuPlatform: Intel Haswell or
+   * minCpuPlatform: Intel Sandy Bridge. For more
+   * information, read [how to specify min CPU
+   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
+   * This field is deprecated, min_cpu_platform should be specified using
+   * `cloud.google.com/requested-min-cpu-platform` label selector on the pod.
+   * To unset the min cpu platform field pass "automatic"
+   * as field value.
+   * 
+ * + * string min_cpu_platform = 5 [deprecated = true]; + * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is deprecated. + * See google/container/v1/cluster_service.proto;l=3933 + * @return The bytes for minCpuPlatform. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getMinCpuPlatformBytes(); + + /** + *
+   * Size of the disk attached to each node, specified in GB.
+   * The smallest allowed disk size is 10GB.
+   *
+   * If unspecified, the default disk size is 100GB.
+   * 
+ * + * int32 disk_size_gb = 6; + * @return The diskSizeGb. + */ + int getDiskSizeGb(); + + /** + *
+   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+   * 'pd-balanced')
+   *
+   * If unspecified, the default disk type is 'pd-standard'
+   * 
+ * + * string disk_type = 7; + * @return The diskType. + */ + java.lang.String getDiskType(); + /** + *
+   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
+   * 'pd-balanced')
+   *
+   * If unspecified, the default disk type is 'pd-standard'
+   * 
+ * + * string disk_type = 7; + * @return The bytes for diskType. + */ + com.google.protobuf.ByteString + getDiskTypeBytes(); + + /** + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + * @return Whether the shieldedInstanceConfig field is set. + */ + boolean hasShieldedInstanceConfig(); + /** + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + * @return The shieldedInstanceConfig. + */ + com.google.container.v1.ShieldedInstanceConfig getShieldedInstanceConfig(); + /** + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + com.google.container.v1.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder(); + + /** + *
+   * The Customer Managed Encryption Key used to encrypt the boot disk attached
+   * to each node in the node pool. This should be of the form
+   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+   * For more information about protecting resources with Cloud KMS Keys please
+   * see:
+   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+   * 
+ * + * string boot_disk_kms_key = 9; + * @return The bootDiskKmsKey. + */ + java.lang.String getBootDiskKmsKey(); + /** + *
+   * The Customer Managed Encryption Key used to encrypt the boot disk attached
+   * to each node in the node pool. This should be of the form
+   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+   * For more information about protecting resources with Cloud KMS Keys please
+   * see:
+   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+   * 
+ * + * string boot_disk_kms_key = 9; + * @return The bytes for bootDiskKmsKey. + */ + com.google.protobuf.ByteString + getBootDiskKmsKeyBytes(); + + /** + *
+   * The image type to use for NAP created node. Please see
+   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+   * available image types.
+   * 
+ * + * string image_type = 10; + * @return The imageType. + */ + java.lang.String getImageType(); + /** + *
+   * The image type to use for NAP created node. Please see
+   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+   * available image types.
+   * 
+ * + * string image_type = 10; + * @return The bytes for imageType. + */ + com.google.protobuf.ByteString + getImageTypeBytes(); + + /** + *
+   * Enable or disable Kubelet read only port.
+   * 
+ * + * optional bool insecure_kubelet_readonly_port_enabled = 13; + * @return Whether the insecureKubeletReadonlyPortEnabled field is set. + */ + boolean hasInsecureKubeletReadonlyPortEnabled(); + /** + *
+   * Enable or disable Kubelet read only port.
+   * 
+ * + * optional bool insecure_kubelet_readonly_port_enabled = 13; + * @return The insecureKubeletReadonlyPortEnabled. + */ + boolean getInsecureKubeletReadonlyPortEnabled(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BestEffortProvisioning.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BestEffortProvisioning.java new file mode 100644 index 000000000000..204af6953ce5 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BestEffortProvisioning.java @@ -0,0 +1,595 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Best effort provisioning.
+ * 
+ * + * Protobuf type {@code google.container.v1.BestEffortProvisioning} + */ +public final class BestEffortProvisioning extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.BestEffortProvisioning) + BestEffortProvisioningOrBuilder { +private static final long serialVersionUID = 0L; + // Use BestEffortProvisioning.newBuilder() to construct. + private BestEffortProvisioning(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BestEffortProvisioning() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BestEffortProvisioning(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_BestEffortProvisioning_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_BestEffortProvisioning_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.BestEffortProvisioning.class, com.google.container.v1.BestEffortProvisioning.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * When this is enabled, cluster/node pool creations will ignore non-fatal
+   * errors like stockout to best provision as many nodes as possible right now
+   * and eventually bring up all target number of nodes
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int MIN_PROVISION_NODES_FIELD_NUMBER = 2; + private int minProvisionNodes_ = 0; + /** + *
+   * Minimum number of nodes to be provisioned to be considered as succeeded,
+   * and the rest of nodes will be provisioned gradually and eventually when
+   * stockout issue has been resolved.
+   * 
+ * + * int32 min_provision_nodes = 2; + * @return The minProvisionNodes. + */ + @java.lang.Override + public int getMinProvisionNodes() { + return minProvisionNodes_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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 (minProvisionNodes_ != 0) { + output.writeInt32(2, minProvisionNodes_); + } + getUnknownFields().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 (minProvisionNodes_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, minProvisionNodes_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.BestEffortProvisioning)) { + return super.equals(obj); + } + com.google.container.v1.BestEffortProvisioning other = (com.google.container.v1.BestEffortProvisioning) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (getMinProvisionNodes() + != other.getMinProvisionNodes()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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_PROVISION_NODES_FIELD_NUMBER; + hash = (53 * hash) + getMinProvisionNodes(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.BestEffortProvisioning parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.BestEffortProvisioning parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.BestEffortProvisioning parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.BestEffortProvisioning parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.BestEffortProvisioning parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.BestEffortProvisioning parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.BestEffortProvisioning parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.BestEffortProvisioning parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.BestEffortProvisioning parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.BestEffortProvisioning parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.BestEffortProvisioning parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.BestEffortProvisioning parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.BestEffortProvisioning prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Best effort provisioning.
+   * 
+ * + * Protobuf type {@code google.container.v1.BestEffortProvisioning} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.BestEffortProvisioning) + com.google.container.v1.BestEffortProvisioningOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_BestEffortProvisioning_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_BestEffortProvisioning_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.BestEffortProvisioning.class, com.google.container.v1.BestEffortProvisioning.Builder.class); + } + + // Construct using com.google.container.v1.BestEffortProvisioning.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + minProvisionNodes_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_BestEffortProvisioning_descriptor; + } + + @java.lang.Override + public com.google.container.v1.BestEffortProvisioning getDefaultInstanceForType() { + return com.google.container.v1.BestEffortProvisioning.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.BestEffortProvisioning build() { + com.google.container.v1.BestEffortProvisioning result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.BestEffortProvisioning buildPartial() { + com.google.container.v1.BestEffortProvisioning result = new com.google.container.v1.BestEffortProvisioning(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.BestEffortProvisioning result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.minProvisionNodes_ = minProvisionNodes_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.BestEffortProvisioning) { + return mergeFrom((com.google.container.v1.BestEffortProvisioning)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.BestEffortProvisioning other) { + if (other == com.google.container.v1.BestEffortProvisioning.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (other.getMinProvisionNodes() != 0) { + setMinProvisionNodes(other.getMinProvisionNodes()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + minProvisionNodes_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enabled_ ; + /** + *
+     * When this is enabled, cluster/node pool creations will ignore non-fatal
+     * errors like stockout to best provision as many nodes as possible right now
+     * and eventually bring up all target number of nodes
+     * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * When this is enabled, cluster/node pool creations will ignore non-fatal
+     * errors like stockout to best provision as many nodes as possible right now
+     * and eventually bring up all target number of nodes
+     * 
+ * + * bool enabled = 1; + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * When this is enabled, cluster/node pool creations will ignore non-fatal
+     * errors like stockout to best provision as many nodes as possible right now
+     * and eventually bring up all target number of nodes
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + + private int minProvisionNodes_ ; + /** + *
+     * Minimum number of nodes to be provisioned to be considered as succeeded,
+     * and the rest of nodes will be provisioned gradually and eventually when
+     * stockout issue has been resolved.
+     * 
+ * + * int32 min_provision_nodes = 2; + * @return The minProvisionNodes. + */ + @java.lang.Override + public int getMinProvisionNodes() { + return minProvisionNodes_; + } + /** + *
+     * Minimum number of nodes to be provisioned to be considered as succeeded,
+     * and the rest of nodes will be provisioned gradually and eventually when
+     * stockout issue has been resolved.
+     * 
+ * + * int32 min_provision_nodes = 2; + * @param value The minProvisionNodes to set. + * @return This builder for chaining. + */ + public Builder setMinProvisionNodes(int value) { + + minProvisionNodes_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Minimum number of nodes to be provisioned to be considered as succeeded,
+     * and the rest of nodes will be provisioned gradually and eventually when
+     * stockout issue has been resolved.
+     * 
+ * + * int32 min_provision_nodes = 2; + * @return This builder for chaining. + */ + public Builder clearMinProvisionNodes() { + bitField0_ = (bitField0_ & ~0x00000002); + minProvisionNodes_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.BestEffortProvisioning) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.BestEffortProvisioning) + private static final com.google.container.v1.BestEffortProvisioning DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.BestEffortProvisioning(); + } + + public static com.google.container.v1.BestEffortProvisioning getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BestEffortProvisioning parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.BestEffortProvisioning getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BestEffortProvisioningOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BestEffortProvisioningOrBuilder.java new file mode 100644 index 000000000000..8d8b0499617f --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BestEffortProvisioningOrBuilder.java @@ -0,0 +1,34 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface BestEffortProvisioningOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.BestEffortProvisioning) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * When this is enabled, cluster/node pool creations will ignore non-fatal
+   * errors like stockout to best provision as many nodes as possible right now
+   * and eventually bring up all target number of nodes
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); + + /** + *
+   * Minimum number of nodes to be provisioned to be considered as succeeded,
+   * and the rest of nodes will be provisioned gradually and eventually when
+   * stockout issue has been resolved.
+   * 
+ * + * int32 min_provision_nodes = 2; + * @return The minProvisionNodes. + */ + int getMinProvisionNodes(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorization.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorization.java new file mode 100644 index 000000000000..fa82e059aa23 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorization.java @@ -0,0 +1,791 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Configuration for Binary Authorization.
+ * 
+ * + * Protobuf type {@code google.container.v1.BinaryAuthorization} + */ +public final class BinaryAuthorization extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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() { + evaluationMode_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BinaryAuthorization(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_BinaryAuthorization_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_BinaryAuthorization_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.BinaryAuthorization.class, com.google.container.v1.BinaryAuthorization.Builder.class); + } + + /** + *
+   * Binary Authorization mode of operation.
+   * 
+ * + * Protobuf enum {@code google.container.v1.BinaryAuthorization.EvaluationMode} + */ + public enum EvaluationMode + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Default value
+     * 
+ * + * EVALUATION_MODE_UNSPECIFIED = 0; + */ + EVALUATION_MODE_UNSPECIFIED(0), + /** + *
+     * Disable BinaryAuthorization
+     * 
+ * + * DISABLED = 1; + */ + DISABLED(1), + /** + *
+     * Enforce Kubernetes admission requests with BinaryAuthorization using the
+     * project's singleton policy. This is equivalent to setting the
+     * enabled boolean to true.
+     * 
+ * + * PROJECT_SINGLETON_POLICY_ENFORCE = 2; + */ + PROJECT_SINGLETON_POLICY_ENFORCE(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Default value
+     * 
+ * + * EVALUATION_MODE_UNSPECIFIED = 0; + */ + public static final int EVALUATION_MODE_UNSPECIFIED_VALUE = 0; + /** + *
+     * Disable BinaryAuthorization
+     * 
+ * + * DISABLED = 1; + */ + public static final int DISABLED_VALUE = 1; + /** + *
+     * Enforce Kubernetes admission requests with BinaryAuthorization using the
+     * project's singleton policy. This is equivalent to setting the
+     * enabled boolean to true.
+     * 
+ * + * PROJECT_SINGLETON_POLICY_ENFORCE = 2; + */ + public static final int PROJECT_SINGLETON_POLICY_ENFORCE_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 EvaluationMode 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 EvaluationMode forNumber(int value) { + switch (value) { + case 0: return EVALUATION_MODE_UNSPECIFIED; + case 1: return DISABLED; + case 2: return PROJECT_SINGLETON_POLICY_ENFORCE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + EvaluationMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EvaluationMode findValueByNumber(int number) { + return EvaluationMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.BinaryAuthorization.getDescriptor().getEnumTypes().get(0); + } + + private static final EvaluationMode[] VALUES = values(); + + public static EvaluationMode 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 EvaluationMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.BinaryAuthorization.EvaluationMode) + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * This field is deprecated. Leave this unset and instead configure
+   * BinaryAuthorization using evaluation_mode. If evaluation_mode is set to
+   * anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored.
+   * 
+ * + * bool enabled = 1 [deprecated = true]; + * @deprecated google.container.v1.BinaryAuthorization.enabled is deprecated. + * See google/container/v1/cluster_service.proto;l=1450 + * @return The enabled. + */ + @java.lang.Override + @java.lang.Deprecated public boolean getEnabled() { + return enabled_; + } + + public static final int EVALUATION_MODE_FIELD_NUMBER = 2; + private int evaluationMode_ = 0; + /** + *
+   * Mode of operation for binauthz policy evaluation. If unspecified, defaults
+   * to DISABLED.
+   * 
+ * + * .google.container.v1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; + * @return The enum numeric value on the wire for evaluationMode. + */ + @java.lang.Override public int getEvaluationModeValue() { + return evaluationMode_; + } + /** + *
+   * Mode of operation for binauthz policy evaluation. If unspecified, defaults
+   * to DISABLED.
+   * 
+ * + * .google.container.v1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; + * @return The evaluationMode. + */ + @java.lang.Override public com.google.container.v1.BinaryAuthorization.EvaluationMode getEvaluationMode() { + com.google.container.v1.BinaryAuthorization.EvaluationMode result = com.google.container.v1.BinaryAuthorization.EvaluationMode.forNumber(evaluationMode_); + return result == null ? com.google.container.v1.BinaryAuthorization.EvaluationMode.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 (enabled_ != false) { + output.writeBool(1, enabled_); + } + if (evaluationMode_ != com.google.container.v1.BinaryAuthorization.EvaluationMode.EVALUATION_MODE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, evaluationMode_); + } + getUnknownFields().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 (evaluationMode_ != com.google.container.v1.BinaryAuthorization.EvaluationMode.EVALUATION_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, evaluationMode_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.BinaryAuthorization)) { + return super.equals(obj); + } + com.google.container.v1.BinaryAuthorization other = (com.google.container.v1.BinaryAuthorization) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (evaluationMode_ != other.evaluationMode_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + EVALUATION_MODE_FIELD_NUMBER; + hash = (53 * hash) + evaluationMode_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.BinaryAuthorization parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.BinaryAuthorization parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.BinaryAuthorization parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.BinaryAuthorization parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.BinaryAuthorization parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.BinaryAuthorization parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.BinaryAuthorization parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.BinaryAuthorization} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.BinaryAuthorization) + com.google.container.v1.BinaryAuthorizationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_BinaryAuthorization_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_BinaryAuthorization_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.BinaryAuthorization.class, com.google.container.v1.BinaryAuthorization.Builder.class); + } + + // Construct using com.google.container.v1.BinaryAuthorization.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + evaluationMode_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_BinaryAuthorization_descriptor; + } + + @java.lang.Override + public com.google.container.v1.BinaryAuthorization getDefaultInstanceForType() { + return com.google.container.v1.BinaryAuthorization.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.BinaryAuthorization build() { + com.google.container.v1.BinaryAuthorization result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.BinaryAuthorization buildPartial() { + com.google.container.v1.BinaryAuthorization result = new com.google.container.v1.BinaryAuthorization(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.BinaryAuthorization result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.evaluationMode_ = evaluationMode_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.BinaryAuthorization) { + return mergeFrom((com.google.container.v1.BinaryAuthorization)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.BinaryAuthorization other) { + if (other == com.google.container.v1.BinaryAuthorization.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (other.evaluationMode_ != 0) { + setEvaluationModeValue(other.getEvaluationModeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + evaluationMode_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enabled_ ; + /** + *
+     * This field is deprecated. Leave this unset and instead configure
+     * BinaryAuthorization using evaluation_mode. If evaluation_mode is set to
+     * anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored.
+     * 
+ * + * bool enabled = 1 [deprecated = true]; + * @deprecated google.container.v1.BinaryAuthorization.enabled is deprecated. + * See google/container/v1/cluster_service.proto;l=1450 + * @return The enabled. + */ + @java.lang.Override + @java.lang.Deprecated public boolean getEnabled() { + return enabled_; + } + /** + *
+     * This field is deprecated. Leave this unset and instead configure
+     * BinaryAuthorization using evaluation_mode. If evaluation_mode is set to
+     * anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored.
+     * 
+ * + * bool enabled = 1 [deprecated = true]; + * @deprecated google.container.v1.BinaryAuthorization.enabled is deprecated. + * See google/container/v1/cluster_service.proto;l=1450 + * @param value The enabled to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * This field is deprecated. Leave this unset and instead configure
+     * BinaryAuthorization using evaluation_mode. If evaluation_mode is set to
+     * anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored.
+     * 
+ * + * bool enabled = 1 [deprecated = true]; + * @deprecated google.container.v1.BinaryAuthorization.enabled is deprecated. + * See google/container/v1/cluster_service.proto;l=1450 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + + private int evaluationMode_ = 0; + /** + *
+     * Mode of operation for binauthz policy evaluation. If unspecified, defaults
+     * to DISABLED.
+     * 
+ * + * .google.container.v1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; + * @return The enum numeric value on the wire for evaluationMode. + */ + @java.lang.Override public int getEvaluationModeValue() { + return evaluationMode_; + } + /** + *
+     * Mode of operation for binauthz policy evaluation. If unspecified, defaults
+     * to DISABLED.
+     * 
+ * + * .google.container.v1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; + * @param value The enum numeric value on the wire for evaluationMode to set. + * @return This builder for chaining. + */ + public Builder setEvaluationModeValue(int value) { + evaluationMode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Mode of operation for binauthz policy evaluation. If unspecified, defaults
+     * to DISABLED.
+     * 
+ * + * .google.container.v1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; + * @return The evaluationMode. + */ + @java.lang.Override + public com.google.container.v1.BinaryAuthorization.EvaluationMode getEvaluationMode() { + com.google.container.v1.BinaryAuthorization.EvaluationMode result = com.google.container.v1.BinaryAuthorization.EvaluationMode.forNumber(evaluationMode_); + return result == null ? com.google.container.v1.BinaryAuthorization.EvaluationMode.UNRECOGNIZED : result; + } + /** + *
+     * Mode of operation for binauthz policy evaluation. If unspecified, defaults
+     * to DISABLED.
+     * 
+ * + * .google.container.v1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; + * @param value The evaluationMode to set. + * @return This builder for chaining. + */ + public Builder setEvaluationMode(com.google.container.v1.BinaryAuthorization.EvaluationMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + evaluationMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Mode of operation for binauthz policy evaluation. If unspecified, defaults
+     * to DISABLED.
+     * 
+ * + * .google.container.v1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; + * @return This builder for chaining. + */ + public Builder clearEvaluationMode() { + bitField0_ = (bitField0_ & ~0x00000002); + evaluationMode_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.BinaryAuthorization) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.BinaryAuthorization) + private static final com.google.container.v1.BinaryAuthorization DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.BinaryAuthorization(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.BinaryAuthorization getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorizationOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorizationOrBuilder.java new file mode 100644 index 000000000000..856cdad1b777 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorizationOrBuilder.java @@ -0,0 +1,45 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface BinaryAuthorizationOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.BinaryAuthorization) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * This field is deprecated. Leave this unset and instead configure
+   * BinaryAuthorization using evaluation_mode. If evaluation_mode is set to
+   * anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored.
+   * 
+ * + * bool enabled = 1 [deprecated = true]; + * @deprecated google.container.v1.BinaryAuthorization.enabled is deprecated. + * See google/container/v1/cluster_service.proto;l=1450 + * @return The enabled. + */ + @java.lang.Deprecated boolean getEnabled(); + + /** + *
+   * Mode of operation for binauthz policy evaluation. If unspecified, defaults
+   * to DISABLED.
+   * 
+ * + * .google.container.v1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; + * @return The enum numeric value on the wire for evaluationMode. + */ + int getEvaluationModeValue(); + /** + *
+   * Mode of operation for binauthz policy evaluation. If unspecified, defaults
+   * to DISABLED.
+   * 
+ * + * .google.container.v1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; + * @return The evaluationMode. + */ + com.google.container.v1.BinaryAuthorization.EvaluationMode getEvaluationMode(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BlueGreenSettings.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BlueGreenSettings.java new file mode 100644 index 000000000000..1c2b4b2b61c8 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BlueGreenSettings.java @@ -0,0 +1,2033 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Settings for blue-green upgrade.
+ * 
+ * + * Protobuf type {@code google.container.v1.BlueGreenSettings} + */ +public final class BlueGreenSettings extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.BlueGreenSettings) + BlueGreenSettingsOrBuilder { +private static final long serialVersionUID = 0L; + // Use BlueGreenSettings.newBuilder() to construct. + private BlueGreenSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BlueGreenSettings() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BlueGreenSettings(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_BlueGreenSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_BlueGreenSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.BlueGreenSettings.class, com.google.container.v1.BlueGreenSettings.Builder.class); + } + + public interface StandardRolloutPolicyOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.BlueGreenSettings.StandardRolloutPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Percentage of the blue pool nodes to drain in a batch.
+     * The range of this field should be (0.0, 1.0].
+     * 
+ * + * float batch_percentage = 1; + * @return Whether the batchPercentage field is set. + */ + boolean hasBatchPercentage(); + /** + *
+     * Percentage of the blue pool nodes to drain in a batch.
+     * The range of this field should be (0.0, 1.0].
+     * 
+ * + * float batch_percentage = 1; + * @return The batchPercentage. + */ + float getBatchPercentage(); + + /** + *
+     * Number of blue nodes to drain in a batch.
+     * 
+ * + * int32 batch_node_count = 2; + * @return Whether the batchNodeCount field is set. + */ + boolean hasBatchNodeCount(); + /** + *
+     * Number of blue nodes to drain in a batch.
+     * 
+ * + * int32 batch_node_count = 2; + * @return The batchNodeCount. + */ + int getBatchNodeCount(); + + /** + *
+     * Soak time after each batch gets drained. Default to zero.
+     * 
+ * + * optional .google.protobuf.Duration batch_soak_duration = 3; + * @return Whether the batchSoakDuration field is set. + */ + boolean hasBatchSoakDuration(); + /** + *
+     * Soak time after each batch gets drained. Default to zero.
+     * 
+ * + * optional .google.protobuf.Duration batch_soak_duration = 3; + * @return The batchSoakDuration. + */ + com.google.protobuf.Duration getBatchSoakDuration(); + /** + *
+     * Soak time after each batch gets drained. Default to zero.
+     * 
+ * + * optional .google.protobuf.Duration batch_soak_duration = 3; + */ + com.google.protobuf.DurationOrBuilder getBatchSoakDurationOrBuilder(); + + com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.UpdateBatchSizeCase getUpdateBatchSizeCase(); + } + /** + *
+   * Standard rollout policy is the default policy for blue-green.
+   * 
+ * + * Protobuf type {@code google.container.v1.BlueGreenSettings.StandardRolloutPolicy} + */ + public static final class StandardRolloutPolicy extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.BlueGreenSettings.StandardRolloutPolicy) + StandardRolloutPolicyOrBuilder { + private static final long serialVersionUID = 0L; + // Use StandardRolloutPolicy.newBuilder() to construct. + private StandardRolloutPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StandardRolloutPolicy() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StandardRolloutPolicy(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_BlueGreenSettings_StandardRolloutPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_BlueGreenSettings_StandardRolloutPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.class, com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.Builder.class); + } + + private int bitField0_; + private int updateBatchSizeCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object updateBatchSize_; + public enum UpdateBatchSizeCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + BATCH_PERCENTAGE(1), + BATCH_NODE_COUNT(2), + UPDATEBATCHSIZE_NOT_SET(0); + private final int value; + private UpdateBatchSizeCase(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 UpdateBatchSizeCase valueOf(int value) { + return forNumber(value); + } + + public static UpdateBatchSizeCase forNumber(int value) { + switch (value) { + case 1: return BATCH_PERCENTAGE; + case 2: return BATCH_NODE_COUNT; + case 0: return UPDATEBATCHSIZE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public UpdateBatchSizeCase + getUpdateBatchSizeCase() { + return UpdateBatchSizeCase.forNumber( + updateBatchSizeCase_); + } + + public static final int BATCH_PERCENTAGE_FIELD_NUMBER = 1; + /** + *
+     * Percentage of the blue pool nodes to drain in a batch.
+     * The range of this field should be (0.0, 1.0].
+     * 
+ * + * float batch_percentage = 1; + * @return Whether the batchPercentage field is set. + */ + @java.lang.Override + public boolean hasBatchPercentage() { + return updateBatchSizeCase_ == 1; + } + /** + *
+     * Percentage of the blue pool nodes to drain in a batch.
+     * The range of this field should be (0.0, 1.0].
+     * 
+ * + * float batch_percentage = 1; + * @return The batchPercentage. + */ + @java.lang.Override + public float getBatchPercentage() { + if (updateBatchSizeCase_ == 1) { + return (java.lang.Float) updateBatchSize_; + } + return 0F; + } + + public static final int BATCH_NODE_COUNT_FIELD_NUMBER = 2; + /** + *
+     * Number of blue nodes to drain in a batch.
+     * 
+ * + * int32 batch_node_count = 2; + * @return Whether the batchNodeCount field is set. + */ + @java.lang.Override + public boolean hasBatchNodeCount() { + return updateBatchSizeCase_ == 2; + } + /** + *
+     * Number of blue nodes to drain in a batch.
+     * 
+ * + * int32 batch_node_count = 2; + * @return The batchNodeCount. + */ + @java.lang.Override + public int getBatchNodeCount() { + if (updateBatchSizeCase_ == 2) { + return (java.lang.Integer) updateBatchSize_; + } + return 0; + } + + public static final int BATCH_SOAK_DURATION_FIELD_NUMBER = 3; + private com.google.protobuf.Duration batchSoakDuration_; + /** + *
+     * Soak time after each batch gets drained. Default to zero.
+     * 
+ * + * optional .google.protobuf.Duration batch_soak_duration = 3; + * @return Whether the batchSoakDuration field is set. + */ + @java.lang.Override + public boolean hasBatchSoakDuration() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Soak time after each batch gets drained. Default to zero.
+     * 
+ * + * optional .google.protobuf.Duration batch_soak_duration = 3; + * @return The batchSoakDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getBatchSoakDuration() { + return batchSoakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : batchSoakDuration_; + } + /** + *
+     * Soak time after each batch gets drained. Default to zero.
+     * 
+ * + * optional .google.protobuf.Duration batch_soak_duration = 3; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getBatchSoakDurationOrBuilder() { + return batchSoakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : batchSoakDuration_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (updateBatchSizeCase_ == 1) { + output.writeFloat( + 1, (float)((java.lang.Float) updateBatchSize_)); + } + if (updateBatchSizeCase_ == 2) { + output.writeInt32( + 2, (int)((java.lang.Integer) updateBatchSize_)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getBatchSoakDuration()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (updateBatchSizeCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize( + 1, (float)((java.lang.Float) updateBatchSize_)); + } + if (updateBatchSizeCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size( + 2, (int)((java.lang.Integer) updateBatchSize_)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getBatchSoakDuration()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy)) { + return super.equals(obj); + } + com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy other = (com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy) obj; + + if (hasBatchSoakDuration() != other.hasBatchSoakDuration()) return false; + if (hasBatchSoakDuration()) { + if (!getBatchSoakDuration() + .equals(other.getBatchSoakDuration())) return false; + } + if (!getUpdateBatchSizeCase().equals(other.getUpdateBatchSizeCase())) return false; + switch (updateBatchSizeCase_) { + case 1: + if (java.lang.Float.floatToIntBits(getBatchPercentage()) + != java.lang.Float.floatToIntBits( + other.getBatchPercentage())) return false; + break; + case 2: + if (getBatchNodeCount() + != other.getBatchNodeCount()) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasBatchSoakDuration()) { + hash = (37 * hash) + BATCH_SOAK_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getBatchSoakDuration().hashCode(); + } + switch (updateBatchSizeCase_) { + case 1: + hash = (37 * hash) + BATCH_PERCENTAGE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getBatchPercentage()); + break; + case 2: + hash = (37 * hash) + BATCH_NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getBatchNodeCount(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Standard rollout policy is the default policy for blue-green.
+     * 
+ * + * Protobuf type {@code google.container.v1.BlueGreenSettings.StandardRolloutPolicy} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.BlueGreenSettings.StandardRolloutPolicy) + com.google.container.v1.BlueGreenSettings.StandardRolloutPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_BlueGreenSettings_StandardRolloutPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_BlueGreenSettings_StandardRolloutPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.class, com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.Builder.class); + } + + // Construct using com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getBatchSoakDurationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + batchSoakDuration_ = null; + if (batchSoakDurationBuilder_ != null) { + batchSoakDurationBuilder_.dispose(); + batchSoakDurationBuilder_ = null; + } + updateBatchSizeCase_ = 0; + updateBatchSize_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_BlueGreenSettings_StandardRolloutPolicy_descriptor; + } + + @java.lang.Override + public com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy getDefaultInstanceForType() { + return com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy build() { + com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy buildPartial() { + com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy result = new com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.batchSoakDuration_ = batchSoakDurationBuilder_ == null + ? batchSoakDuration_ + : batchSoakDurationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy result) { + result.updateBatchSizeCase_ = updateBatchSizeCase_; + result.updateBatchSize_ = this.updateBatchSize_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy) { + return mergeFrom((com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy other) { + if (other == com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.getDefaultInstance()) return this; + if (other.hasBatchSoakDuration()) { + mergeBatchSoakDuration(other.getBatchSoakDuration()); + } + switch (other.getUpdateBatchSizeCase()) { + case BATCH_PERCENTAGE: { + setBatchPercentage(other.getBatchPercentage()); + break; + } + case BATCH_NODE_COUNT: { + setBatchNodeCount(other.getBatchNodeCount()); + break; + } + case UPDATEBATCHSIZE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 13: { + updateBatchSize_ = input.readFloat(); + updateBatchSizeCase_ = 1; + break; + } // case 13 + case 16: { + updateBatchSize_ = input.readInt32(); + updateBatchSizeCase_ = 2; + break; + } // case 16 + case 26: { + input.readMessage( + getBatchSoakDurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int updateBatchSizeCase_ = 0; + private java.lang.Object updateBatchSize_; + public UpdateBatchSizeCase + getUpdateBatchSizeCase() { + return UpdateBatchSizeCase.forNumber( + updateBatchSizeCase_); + } + + public Builder clearUpdateBatchSize() { + updateBatchSizeCase_ = 0; + updateBatchSize_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + *
+       * Percentage of the blue pool nodes to drain in a batch.
+       * The range of this field should be (0.0, 1.0].
+       * 
+ * + * float batch_percentage = 1; + * @return Whether the batchPercentage field is set. + */ + public boolean hasBatchPercentage() { + return updateBatchSizeCase_ == 1; + } + /** + *
+       * Percentage of the blue pool nodes to drain in a batch.
+       * The range of this field should be (0.0, 1.0].
+       * 
+ * + * float batch_percentage = 1; + * @return The batchPercentage. + */ + public float getBatchPercentage() { + if (updateBatchSizeCase_ == 1) { + return (java.lang.Float) updateBatchSize_; + } + return 0F; + } + /** + *
+       * Percentage of the blue pool nodes to drain in a batch.
+       * The range of this field should be (0.0, 1.0].
+       * 
+ * + * float batch_percentage = 1; + * @param value The batchPercentage to set. + * @return This builder for chaining. + */ + public Builder setBatchPercentage(float value) { + + updateBatchSizeCase_ = 1; + updateBatchSize_ = value; + onChanged(); + return this; + } + /** + *
+       * Percentage of the blue pool nodes to drain in a batch.
+       * The range of this field should be (0.0, 1.0].
+       * 
+ * + * float batch_percentage = 1; + * @return This builder for chaining. + */ + public Builder clearBatchPercentage() { + if (updateBatchSizeCase_ == 1) { + updateBatchSizeCase_ = 0; + updateBatchSize_ = null; + onChanged(); + } + return this; + } + + /** + *
+       * Number of blue nodes to drain in a batch.
+       * 
+ * + * int32 batch_node_count = 2; + * @return Whether the batchNodeCount field is set. + */ + public boolean hasBatchNodeCount() { + return updateBatchSizeCase_ == 2; + } + /** + *
+       * Number of blue nodes to drain in a batch.
+       * 
+ * + * int32 batch_node_count = 2; + * @return The batchNodeCount. + */ + public int getBatchNodeCount() { + if (updateBatchSizeCase_ == 2) { + return (java.lang.Integer) updateBatchSize_; + } + return 0; + } + /** + *
+       * Number of blue nodes to drain in a batch.
+       * 
+ * + * int32 batch_node_count = 2; + * @param value The batchNodeCount to set. + * @return This builder for chaining. + */ + public Builder setBatchNodeCount(int value) { + + updateBatchSizeCase_ = 2; + updateBatchSize_ = value; + onChanged(); + return this; + } + /** + *
+       * Number of blue nodes to drain in a batch.
+       * 
+ * + * int32 batch_node_count = 2; + * @return This builder for chaining. + */ + public Builder clearBatchNodeCount() { + if (updateBatchSizeCase_ == 2) { + updateBatchSizeCase_ = 0; + updateBatchSize_ = null; + onChanged(); + } + return this; + } + + private com.google.protobuf.Duration batchSoakDuration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> batchSoakDurationBuilder_; + /** + *
+       * Soak time after each batch gets drained. Default to zero.
+       * 
+ * + * optional .google.protobuf.Duration batch_soak_duration = 3; + * @return Whether the batchSoakDuration field is set. + */ + public boolean hasBatchSoakDuration() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+       * Soak time after each batch gets drained. Default to zero.
+       * 
+ * + * optional .google.protobuf.Duration batch_soak_duration = 3; + * @return The batchSoakDuration. + */ + public com.google.protobuf.Duration getBatchSoakDuration() { + if (batchSoakDurationBuilder_ == null) { + return batchSoakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : batchSoakDuration_; + } else { + return batchSoakDurationBuilder_.getMessage(); + } + } + /** + *
+       * Soak time after each batch gets drained. Default to zero.
+       * 
+ * + * optional .google.protobuf.Duration batch_soak_duration = 3; + */ + public Builder setBatchSoakDuration(com.google.protobuf.Duration value) { + if (batchSoakDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + batchSoakDuration_ = value; + } else { + batchSoakDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Soak time after each batch gets drained. Default to zero.
+       * 
+ * + * optional .google.protobuf.Duration batch_soak_duration = 3; + */ + public Builder setBatchSoakDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (batchSoakDurationBuilder_ == null) { + batchSoakDuration_ = builderForValue.build(); + } else { + batchSoakDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Soak time after each batch gets drained. Default to zero.
+       * 
+ * + * optional .google.protobuf.Duration batch_soak_duration = 3; + */ + public Builder mergeBatchSoakDuration(com.google.protobuf.Duration value) { + if (batchSoakDurationBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + batchSoakDuration_ != null && + batchSoakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getBatchSoakDurationBuilder().mergeFrom(value); + } else { + batchSoakDuration_ = value; + } + } else { + batchSoakDurationBuilder_.mergeFrom(value); + } + if (batchSoakDuration_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+       * Soak time after each batch gets drained. Default to zero.
+       * 
+ * + * optional .google.protobuf.Duration batch_soak_duration = 3; + */ + public Builder clearBatchSoakDuration() { + bitField0_ = (bitField0_ & ~0x00000004); + batchSoakDuration_ = null; + if (batchSoakDurationBuilder_ != null) { + batchSoakDurationBuilder_.dispose(); + batchSoakDurationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Soak time after each batch gets drained. Default to zero.
+       * 
+ * + * optional .google.protobuf.Duration batch_soak_duration = 3; + */ + public com.google.protobuf.Duration.Builder getBatchSoakDurationBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getBatchSoakDurationFieldBuilder().getBuilder(); + } + /** + *
+       * Soak time after each batch gets drained. Default to zero.
+       * 
+ * + * optional .google.protobuf.Duration batch_soak_duration = 3; + */ + public com.google.protobuf.DurationOrBuilder getBatchSoakDurationOrBuilder() { + if (batchSoakDurationBuilder_ != null) { + return batchSoakDurationBuilder_.getMessageOrBuilder(); + } else { + return batchSoakDuration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : batchSoakDuration_; + } + } + /** + *
+       * Soak time after each batch gets drained. Default to zero.
+       * 
+ * + * optional .google.protobuf.Duration batch_soak_duration = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getBatchSoakDurationFieldBuilder() { + if (batchSoakDurationBuilder_ == null) { + batchSoakDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getBatchSoakDuration(), + getParentForChildren(), + isClean()); + batchSoakDuration_ = null; + } + return batchSoakDurationBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.BlueGreenSettings.StandardRolloutPolicy) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.BlueGreenSettings.StandardRolloutPolicy) + private static final com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy(); + } + + public static com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StandardRolloutPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + private int rolloutPolicyCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object rolloutPolicy_; + public enum RolloutPolicyCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + STANDARD_ROLLOUT_POLICY(1), + ROLLOUTPOLICY_NOT_SET(0); + private final int value; + private RolloutPolicyCase(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 RolloutPolicyCase valueOf(int value) { + return forNumber(value); + } + + public static RolloutPolicyCase forNumber(int value) { + switch (value) { + case 1: return STANDARD_ROLLOUT_POLICY; + case 0: return ROLLOUTPOLICY_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public RolloutPolicyCase + getRolloutPolicyCase() { + return RolloutPolicyCase.forNumber( + rolloutPolicyCase_); + } + + public static final int STANDARD_ROLLOUT_POLICY_FIELD_NUMBER = 1; + /** + *
+   * Standard policy for the blue-green upgrade.
+   * 
+ * + * .google.container.v1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; + * @return Whether the standardRolloutPolicy field is set. + */ + @java.lang.Override + public boolean hasStandardRolloutPolicy() { + return rolloutPolicyCase_ == 1; + } + /** + *
+   * Standard policy for the blue-green upgrade.
+   * 
+ * + * .google.container.v1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; + * @return The standardRolloutPolicy. + */ + @java.lang.Override + public com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy getStandardRolloutPolicy() { + if (rolloutPolicyCase_ == 1) { + return (com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy) rolloutPolicy_; + } + return com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.getDefaultInstance(); + } + /** + *
+   * Standard policy for the blue-green upgrade.
+   * 
+ * + * .google.container.v1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; + */ + @java.lang.Override + public com.google.container.v1.BlueGreenSettings.StandardRolloutPolicyOrBuilder getStandardRolloutPolicyOrBuilder() { + if (rolloutPolicyCase_ == 1) { + return (com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy) rolloutPolicy_; + } + return com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.getDefaultInstance(); + } + + public static final int NODE_POOL_SOAK_DURATION_FIELD_NUMBER = 2; + private com.google.protobuf.Duration nodePoolSoakDuration_; + /** + *
+   * Time needed after draining entire blue pool. After this period, blue pool
+   * will be cleaned up.
+   * 
+ * + * optional .google.protobuf.Duration node_pool_soak_duration = 2; + * @return Whether the nodePoolSoakDuration field is set. + */ + @java.lang.Override + public boolean hasNodePoolSoakDuration() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Time needed after draining entire blue pool. After this period, blue pool
+   * will be cleaned up.
+   * 
+ * + * optional .google.protobuf.Duration node_pool_soak_duration = 2; + * @return The nodePoolSoakDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getNodePoolSoakDuration() { + return nodePoolSoakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : nodePoolSoakDuration_; + } + /** + *
+   * Time needed after draining entire blue pool. After this period, blue pool
+   * will be cleaned up.
+   * 
+ * + * optional .google.protobuf.Duration node_pool_soak_duration = 2; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getNodePoolSoakDurationOrBuilder() { + return nodePoolSoakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : nodePoolSoakDuration_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (rolloutPolicyCase_ == 1) { + output.writeMessage(1, (com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy) rolloutPolicy_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getNodePoolSoakDuration()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (rolloutPolicyCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy) rolloutPolicy_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getNodePoolSoakDuration()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.BlueGreenSettings)) { + return super.equals(obj); + } + com.google.container.v1.BlueGreenSettings other = (com.google.container.v1.BlueGreenSettings) obj; + + if (hasNodePoolSoakDuration() != other.hasNodePoolSoakDuration()) return false; + if (hasNodePoolSoakDuration()) { + if (!getNodePoolSoakDuration() + .equals(other.getNodePoolSoakDuration())) return false; + } + if (!getRolloutPolicyCase().equals(other.getRolloutPolicyCase())) return false; + switch (rolloutPolicyCase_) { + case 1: + if (!getStandardRolloutPolicy() + .equals(other.getStandardRolloutPolicy())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasNodePoolSoakDuration()) { + hash = (37 * hash) + NODE_POOL_SOAK_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getNodePoolSoakDuration().hashCode(); + } + switch (rolloutPolicyCase_) { + case 1: + hash = (37 * hash) + STANDARD_ROLLOUT_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getStandardRolloutPolicy().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.BlueGreenSettings parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.BlueGreenSettings parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.BlueGreenSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.BlueGreenSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.BlueGreenSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.BlueGreenSettings parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.BlueGreenSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.BlueGreenSettings parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.BlueGreenSettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.BlueGreenSettings parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.BlueGreenSettings parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.BlueGreenSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.BlueGreenSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Settings for blue-green upgrade.
+   * 
+ * + * Protobuf type {@code google.container.v1.BlueGreenSettings} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.BlueGreenSettings) + com.google.container.v1.BlueGreenSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_BlueGreenSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_BlueGreenSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.BlueGreenSettings.class, com.google.container.v1.BlueGreenSettings.Builder.class); + } + + // Construct using com.google.container.v1.BlueGreenSettings.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNodePoolSoakDurationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (standardRolloutPolicyBuilder_ != null) { + standardRolloutPolicyBuilder_.clear(); + } + nodePoolSoakDuration_ = null; + if (nodePoolSoakDurationBuilder_ != null) { + nodePoolSoakDurationBuilder_.dispose(); + nodePoolSoakDurationBuilder_ = null; + } + rolloutPolicyCase_ = 0; + rolloutPolicy_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_BlueGreenSettings_descriptor; + } + + @java.lang.Override + public com.google.container.v1.BlueGreenSettings getDefaultInstanceForType() { + return com.google.container.v1.BlueGreenSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.BlueGreenSettings build() { + com.google.container.v1.BlueGreenSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.BlueGreenSettings buildPartial() { + com.google.container.v1.BlueGreenSettings result = new com.google.container.v1.BlueGreenSettings(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.BlueGreenSettings result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nodePoolSoakDuration_ = nodePoolSoakDurationBuilder_ == null + ? nodePoolSoakDuration_ + : nodePoolSoakDurationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.container.v1.BlueGreenSettings result) { + result.rolloutPolicyCase_ = rolloutPolicyCase_; + result.rolloutPolicy_ = this.rolloutPolicy_; + if (rolloutPolicyCase_ == 1 && + standardRolloutPolicyBuilder_ != null) { + result.rolloutPolicy_ = standardRolloutPolicyBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.BlueGreenSettings) { + return mergeFrom((com.google.container.v1.BlueGreenSettings)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.BlueGreenSettings other) { + if (other == com.google.container.v1.BlueGreenSettings.getDefaultInstance()) return this; + if (other.hasNodePoolSoakDuration()) { + mergeNodePoolSoakDuration(other.getNodePoolSoakDuration()); + } + switch (other.getRolloutPolicyCase()) { + case STANDARD_ROLLOUT_POLICY: { + mergeStandardRolloutPolicy(other.getStandardRolloutPolicy()); + break; + } + case ROLLOUTPOLICY_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getStandardRolloutPolicyFieldBuilder().getBuilder(), + extensionRegistry); + rolloutPolicyCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getNodePoolSoakDurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int rolloutPolicyCase_ = 0; + private java.lang.Object rolloutPolicy_; + public RolloutPolicyCase + getRolloutPolicyCase() { + return RolloutPolicyCase.forNumber( + rolloutPolicyCase_); + } + + public Builder clearRolloutPolicy() { + rolloutPolicyCase_ = 0; + rolloutPolicy_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy, com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.Builder, com.google.container.v1.BlueGreenSettings.StandardRolloutPolicyOrBuilder> standardRolloutPolicyBuilder_; + /** + *
+     * Standard policy for the blue-green upgrade.
+     * 
+ * + * .google.container.v1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; + * @return Whether the standardRolloutPolicy field is set. + */ + @java.lang.Override + public boolean hasStandardRolloutPolicy() { + return rolloutPolicyCase_ == 1; + } + /** + *
+     * Standard policy for the blue-green upgrade.
+     * 
+ * + * .google.container.v1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; + * @return The standardRolloutPolicy. + */ + @java.lang.Override + public com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy getStandardRolloutPolicy() { + if (standardRolloutPolicyBuilder_ == null) { + if (rolloutPolicyCase_ == 1) { + return (com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy) rolloutPolicy_; + } + return com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.getDefaultInstance(); + } else { + if (rolloutPolicyCase_ == 1) { + return standardRolloutPolicyBuilder_.getMessage(); + } + return com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.getDefaultInstance(); + } + } + /** + *
+     * Standard policy for the blue-green upgrade.
+     * 
+ * + * .google.container.v1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; + */ + public Builder setStandardRolloutPolicy(com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy value) { + if (standardRolloutPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rolloutPolicy_ = value; + onChanged(); + } else { + standardRolloutPolicyBuilder_.setMessage(value); + } + rolloutPolicyCase_ = 1; + return this; + } + /** + *
+     * Standard policy for the blue-green upgrade.
+     * 
+ * + * .google.container.v1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; + */ + public Builder setStandardRolloutPolicy( + com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.Builder builderForValue) { + if (standardRolloutPolicyBuilder_ == null) { + rolloutPolicy_ = builderForValue.build(); + onChanged(); + } else { + standardRolloutPolicyBuilder_.setMessage(builderForValue.build()); + } + rolloutPolicyCase_ = 1; + return this; + } + /** + *
+     * Standard policy for the blue-green upgrade.
+     * 
+ * + * .google.container.v1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; + */ + public Builder mergeStandardRolloutPolicy(com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy value) { + if (standardRolloutPolicyBuilder_ == null) { + if (rolloutPolicyCase_ == 1 && + rolloutPolicy_ != com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.getDefaultInstance()) { + rolloutPolicy_ = com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.newBuilder((com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy) rolloutPolicy_) + .mergeFrom(value).buildPartial(); + } else { + rolloutPolicy_ = value; + } + onChanged(); + } else { + if (rolloutPolicyCase_ == 1) { + standardRolloutPolicyBuilder_.mergeFrom(value); + } else { + standardRolloutPolicyBuilder_.setMessage(value); + } + } + rolloutPolicyCase_ = 1; + return this; + } + /** + *
+     * Standard policy for the blue-green upgrade.
+     * 
+ * + * .google.container.v1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; + */ + public Builder clearStandardRolloutPolicy() { + if (standardRolloutPolicyBuilder_ == null) { + if (rolloutPolicyCase_ == 1) { + rolloutPolicyCase_ = 0; + rolloutPolicy_ = null; + onChanged(); + } + } else { + if (rolloutPolicyCase_ == 1) { + rolloutPolicyCase_ = 0; + rolloutPolicy_ = null; + } + standardRolloutPolicyBuilder_.clear(); + } + return this; + } + /** + *
+     * Standard policy for the blue-green upgrade.
+     * 
+ * + * .google.container.v1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; + */ + public com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.Builder getStandardRolloutPolicyBuilder() { + return getStandardRolloutPolicyFieldBuilder().getBuilder(); + } + /** + *
+     * Standard policy for the blue-green upgrade.
+     * 
+ * + * .google.container.v1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; + */ + @java.lang.Override + public com.google.container.v1.BlueGreenSettings.StandardRolloutPolicyOrBuilder getStandardRolloutPolicyOrBuilder() { + if ((rolloutPolicyCase_ == 1) && (standardRolloutPolicyBuilder_ != null)) { + return standardRolloutPolicyBuilder_.getMessageOrBuilder(); + } else { + if (rolloutPolicyCase_ == 1) { + return (com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy) rolloutPolicy_; + } + return com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.getDefaultInstance(); + } + } + /** + *
+     * Standard policy for the blue-green upgrade.
+     * 
+ * + * .google.container.v1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy, com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.Builder, com.google.container.v1.BlueGreenSettings.StandardRolloutPolicyOrBuilder> + getStandardRolloutPolicyFieldBuilder() { + if (standardRolloutPolicyBuilder_ == null) { + if (!(rolloutPolicyCase_ == 1)) { + rolloutPolicy_ = com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.getDefaultInstance(); + } + standardRolloutPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy, com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.Builder, com.google.container.v1.BlueGreenSettings.StandardRolloutPolicyOrBuilder>( + (com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy) rolloutPolicy_, + getParentForChildren(), + isClean()); + rolloutPolicy_ = null; + } + rolloutPolicyCase_ = 1; + onChanged(); + return standardRolloutPolicyBuilder_; + } + + private com.google.protobuf.Duration nodePoolSoakDuration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> nodePoolSoakDurationBuilder_; + /** + *
+     * Time needed after draining entire blue pool. After this period, blue pool
+     * will be cleaned up.
+     * 
+ * + * optional .google.protobuf.Duration node_pool_soak_duration = 2; + * @return Whether the nodePoolSoakDuration field is set. + */ + public boolean hasNodePoolSoakDuration() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Time needed after draining entire blue pool. After this period, blue pool
+     * will be cleaned up.
+     * 
+ * + * optional .google.protobuf.Duration node_pool_soak_duration = 2; + * @return The nodePoolSoakDuration. + */ + public com.google.protobuf.Duration getNodePoolSoakDuration() { + if (nodePoolSoakDurationBuilder_ == null) { + return nodePoolSoakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : nodePoolSoakDuration_; + } else { + return nodePoolSoakDurationBuilder_.getMessage(); + } + } + /** + *
+     * Time needed after draining entire blue pool. After this period, blue pool
+     * will be cleaned up.
+     * 
+ * + * optional .google.protobuf.Duration node_pool_soak_duration = 2; + */ + public Builder setNodePoolSoakDuration(com.google.protobuf.Duration value) { + if (nodePoolSoakDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodePoolSoakDuration_ = value; + } else { + nodePoolSoakDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Time needed after draining entire blue pool. After this period, blue pool
+     * will be cleaned up.
+     * 
+ * + * optional .google.protobuf.Duration node_pool_soak_duration = 2; + */ + public Builder setNodePoolSoakDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (nodePoolSoakDurationBuilder_ == null) { + nodePoolSoakDuration_ = builderForValue.build(); + } else { + nodePoolSoakDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Time needed after draining entire blue pool. After this period, blue pool
+     * will be cleaned up.
+     * 
+ * + * optional .google.protobuf.Duration node_pool_soak_duration = 2; + */ + public Builder mergeNodePoolSoakDuration(com.google.protobuf.Duration value) { + if (nodePoolSoakDurationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + nodePoolSoakDuration_ != null && + nodePoolSoakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getNodePoolSoakDurationBuilder().mergeFrom(value); + } else { + nodePoolSoakDuration_ = value; + } + } else { + nodePoolSoakDurationBuilder_.mergeFrom(value); + } + if (nodePoolSoakDuration_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + *
+     * Time needed after draining entire blue pool. After this period, blue pool
+     * will be cleaned up.
+     * 
+ * + * optional .google.protobuf.Duration node_pool_soak_duration = 2; + */ + public Builder clearNodePoolSoakDuration() { + bitField0_ = (bitField0_ & ~0x00000002); + nodePoolSoakDuration_ = null; + if (nodePoolSoakDurationBuilder_ != null) { + nodePoolSoakDurationBuilder_.dispose(); + nodePoolSoakDurationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Time needed after draining entire blue pool. After this period, blue pool
+     * will be cleaned up.
+     * 
+ * + * optional .google.protobuf.Duration node_pool_soak_duration = 2; + */ + public com.google.protobuf.Duration.Builder getNodePoolSoakDurationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getNodePoolSoakDurationFieldBuilder().getBuilder(); + } + /** + *
+     * Time needed after draining entire blue pool. After this period, blue pool
+     * will be cleaned up.
+     * 
+ * + * optional .google.protobuf.Duration node_pool_soak_duration = 2; + */ + public com.google.protobuf.DurationOrBuilder getNodePoolSoakDurationOrBuilder() { + if (nodePoolSoakDurationBuilder_ != null) { + return nodePoolSoakDurationBuilder_.getMessageOrBuilder(); + } else { + return nodePoolSoakDuration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : nodePoolSoakDuration_; + } + } + /** + *
+     * Time needed after draining entire blue pool. After this period, blue pool
+     * will be cleaned up.
+     * 
+ * + * optional .google.protobuf.Duration node_pool_soak_duration = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getNodePoolSoakDurationFieldBuilder() { + if (nodePoolSoakDurationBuilder_ == null) { + nodePoolSoakDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getNodePoolSoakDuration(), + getParentForChildren(), + isClean()); + nodePoolSoakDuration_ = null; + } + return nodePoolSoakDurationBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.BlueGreenSettings) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.BlueGreenSettings) + private static final com.google.container.v1.BlueGreenSettings DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.BlueGreenSettings(); + } + + public static com.google.container.v1.BlueGreenSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BlueGreenSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.BlueGreenSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BlueGreenSettingsOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BlueGreenSettingsOrBuilder.java new file mode 100644 index 000000000000..07b19ff56ffc --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BlueGreenSettingsOrBuilder.java @@ -0,0 +1,69 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface BlueGreenSettingsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.BlueGreenSettings) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Standard policy for the blue-green upgrade.
+   * 
+ * + * .google.container.v1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; + * @return Whether the standardRolloutPolicy field is set. + */ + boolean hasStandardRolloutPolicy(); + /** + *
+   * Standard policy for the blue-green upgrade.
+   * 
+ * + * .google.container.v1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; + * @return The standardRolloutPolicy. + */ + com.google.container.v1.BlueGreenSettings.StandardRolloutPolicy getStandardRolloutPolicy(); + /** + *
+   * Standard policy for the blue-green upgrade.
+   * 
+ * + * .google.container.v1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; + */ + com.google.container.v1.BlueGreenSettings.StandardRolloutPolicyOrBuilder getStandardRolloutPolicyOrBuilder(); + + /** + *
+   * Time needed after draining entire blue pool. After this period, blue pool
+   * will be cleaned up.
+   * 
+ * + * optional .google.protobuf.Duration node_pool_soak_duration = 2; + * @return Whether the nodePoolSoakDuration field is set. + */ + boolean hasNodePoolSoakDuration(); + /** + *
+   * Time needed after draining entire blue pool. After this period, blue pool
+   * will be cleaned up.
+   * 
+ * + * optional .google.protobuf.Duration node_pool_soak_duration = 2; + * @return The nodePoolSoakDuration. + */ + com.google.protobuf.Duration getNodePoolSoakDuration(); + /** + *
+   * Time needed after draining entire blue pool. After this period, blue pool
+   * will be cleaned up.
+   * 
+ * + * optional .google.protobuf.Duration node_pool_soak_duration = 2; + */ + com.google.protobuf.DurationOrBuilder getNodePoolSoakDurationOrBuilder(); + + com.google.container.v1.BlueGreenSettings.RolloutPolicyCase getRolloutPolicyCase(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java new file mode 100644 index 000000000000..d40db61d34c2 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java @@ -0,0 +1,1161 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * CancelOperationRequest cancels a single operation.
+ * 
+ * + * Protobuf type {@code google.container.v1.CancelOperationRequest} + */ +public final class CancelOperationRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CancelOperationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CancelOperationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.CancelOperationRequest.class, com.google.container.v1.CancelOperationRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3102 + * @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; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3102 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + /** + *
+   * 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]; + * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3108 + * @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; + } + } + /** + *
+   * 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]; + * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3108 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object operationId_ = ""; + /** + *
+   * Deprecated. The server-assigned `name` of the operation.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string operation_id = 3 [deprecated = true]; + * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3112 + * @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; + } + } + /** + *
+   * 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]; + * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3112 + * @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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, operationId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, operationId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.CancelOperationRequest)) { + return super.equals(obj); + } + com.google.container.v1.CancelOperationRequest other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.CancelOperationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.CancelOperationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.CancelOperationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.CancelOperationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.CancelOperationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.CancelOperationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.CancelOperationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.CancelOperationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.CancelOperationRequest) + com.google.container.v1.CancelOperationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CancelOperationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CancelOperationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.CancelOperationRequest.class, com.google.container.v1.CancelOperationRequest.Builder.class); + } + + // Construct using com.google.container.v1.CancelOperationRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + operationId_ = ""; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CancelOperationRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1.CancelOperationRequest getDefaultInstanceForType() { + return com.google.container.v1.CancelOperationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.CancelOperationRequest build() { + com.google.container.v1.CancelOperationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.CancelOperationRequest buildPartial() { + com.google.container.v1.CancelOperationRequest result = new com.google.container.v1.CancelOperationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.CancelOperationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.operationId_ = operationId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.CancelOperationRequest) { + return mergeFrom((com.google.container.v1.CancelOperationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.CancelOperationRequest other) { + if (other == com.google.container.v1.CancelOperationRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getOperationId().isEmpty()) { + operationId_ = other.operationId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + operationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3102 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3102 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3102 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3102 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3102 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * 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]; + * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3108 + * @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; + } + } + /** + *
+     * 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]; + * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3108 + * @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; + } + } + /** + *
+     * 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]; + * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3108 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * 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]; + * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3108 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * 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]; + * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3108 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object operationId_ = ""; + /** + *
+     * Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string operation_id = 3 [deprecated = true]; + * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3112 + * @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; + } + } + /** + *
+     * 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]; + * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3112 + * @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; + } + } + /** + *
+     * 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]; + * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3112 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string operation_id = 3 [deprecated = true]; + * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3112 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearOperationId() { + operationId_ = getDefaultInstance().getOperationId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string operation_id = 3 [deprecated = true]; + * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3112 + * @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; + bitField0_ |= 0x00000004; + 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; + bitField0_ |= 0x00000008; + 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(); + bitField0_ = (bitField0_ & ~0x00000008); + 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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.CancelOperationRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.CancelOperationRequest) + private static final com.google.container.v1.CancelOperationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.CancelOperationRequest(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.CancelOperationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java new file mode 100644 index 000000000000..0600b0e7d345 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java @@ -0,0 +1,116 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface CancelOperationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.CancelOperationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3102 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3102 + * @return The bytes for projectId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * operation resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3108 + * @return The zone. + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * operation resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3108 + * @return The bytes for zone. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The server-assigned `name` of the operation.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string operation_id = 3 [deprecated = true]; + * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3112 + * @return The operationId. + */ + @java.lang.Deprecated java.lang.String getOperationId(); + /** + *
+   * Deprecated. The server-assigned `name` of the operation.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string operation_id = 3 [deprecated = true]; + * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3112 + * @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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CheckAutopilotCompatibilityRequest.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CheckAutopilotCompatibilityRequest.java new file mode 100644 index 000000000000..e3676fc39b5e --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CheckAutopilotCompatibilityRequest.java @@ -0,0 +1,587 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * CheckAutopilotCompatibilityRequest requests getting the blockers for the
+ * given operation in the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1.CheckAutopilotCompatibilityRequest} + */ +public final class CheckAutopilotCompatibilityRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.CheckAutopilotCompatibilityRequest) + CheckAutopilotCompatibilityRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CheckAutopilotCompatibilityRequest.newBuilder() to construct. + private CheckAutopilotCompatibilityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CheckAutopilotCompatibilityRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CheckAutopilotCompatibilityRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CheckAutopilotCompatibilityRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CheckAutopilotCompatibilityRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.CheckAutopilotCompatibilityRequest.class, com.google.container.v1.CheckAutopilotCompatibilityRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + 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 = 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 (project, location, cluster) of the cluster to retrieve.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.CheckAutopilotCompatibilityRequest)) { + return super.equals(obj); + } + com.google.container.v1.CheckAutopilotCompatibilityRequest other = (com.google.container.v1.CheckAutopilotCompatibilityRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.CheckAutopilotCompatibilityRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.CheckAutopilotCompatibilityRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.CheckAutopilotCompatibilityRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.CheckAutopilotCompatibilityRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.CheckAutopilotCompatibilityRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.CheckAutopilotCompatibilityRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.CheckAutopilotCompatibilityRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.CheckAutopilotCompatibilityRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.CheckAutopilotCompatibilityRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.CheckAutopilotCompatibilityRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.CheckAutopilotCompatibilityRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.CheckAutopilotCompatibilityRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.CheckAutopilotCompatibilityRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * CheckAutopilotCompatibilityRequest requests getting the blockers for the
+   * given operation in the cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1.CheckAutopilotCompatibilityRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.CheckAutopilotCompatibilityRequest) + com.google.container.v1.CheckAutopilotCompatibilityRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CheckAutopilotCompatibilityRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CheckAutopilotCompatibilityRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.CheckAutopilotCompatibilityRequest.class, com.google.container.v1.CheckAutopilotCompatibilityRequest.Builder.class); + } + + // Construct using com.google.container.v1.CheckAutopilotCompatibilityRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CheckAutopilotCompatibilityRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1.CheckAutopilotCompatibilityRequest getDefaultInstanceForType() { + return com.google.container.v1.CheckAutopilotCompatibilityRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.CheckAutopilotCompatibilityRequest build() { + com.google.container.v1.CheckAutopilotCompatibilityRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.CheckAutopilotCompatibilityRequest buildPartial() { + com.google.container.v1.CheckAutopilotCompatibilityRequest result = new com.google.container.v1.CheckAutopilotCompatibilityRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.CheckAutopilotCompatibilityRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.CheckAutopilotCompatibilityRequest) { + return mergeFrom((com.google.container.v1.CheckAutopilotCompatibilityRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.CheckAutopilotCompatibilityRequest other) { + if (other == com.google.container.v1.CheckAutopilotCompatibilityRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster) of the cluster to retrieve.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * 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 (project, location, cluster) of the cluster to retrieve.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * 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 (project, location, cluster) of the cluster to retrieve.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to retrieve.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to retrieve.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.CheckAutopilotCompatibilityRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.CheckAutopilotCompatibilityRequest) + private static final com.google.container.v1.CheckAutopilotCompatibilityRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.CheckAutopilotCompatibilityRequest(); + } + + public static com.google.container.v1.CheckAutopilotCompatibilityRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CheckAutopilotCompatibilityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.CheckAutopilotCompatibilityRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CheckAutopilotCompatibilityRequestOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CheckAutopilotCompatibilityRequestOrBuilder.java new file mode 100644 index 000000000000..97866aad1e2e --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CheckAutopilotCompatibilityRequestOrBuilder.java @@ -0,0 +1,32 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface CheckAutopilotCompatibilityRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.CheckAutopilotCompatibilityRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name (project, location, cluster) of the cluster to retrieve.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 1; + * @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 = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CheckAutopilotCompatibilityResponse.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CheckAutopilotCompatibilityResponse.java new file mode 100644 index 000000000000..94fd33201bb7 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CheckAutopilotCompatibilityResponse.java @@ -0,0 +1,1024 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * CheckAutopilotCompatibilityResponse has a list of compatibility issues.
+ * 
+ * + * Protobuf type {@code google.container.v1.CheckAutopilotCompatibilityResponse} + */ +public final class CheckAutopilotCompatibilityResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.CheckAutopilotCompatibilityResponse) + CheckAutopilotCompatibilityResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use CheckAutopilotCompatibilityResponse.newBuilder() to construct. + private CheckAutopilotCompatibilityResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CheckAutopilotCompatibilityResponse() { + issues_ = java.util.Collections.emptyList(); + summary_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CheckAutopilotCompatibilityResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CheckAutopilotCompatibilityResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CheckAutopilotCompatibilityResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.CheckAutopilotCompatibilityResponse.class, com.google.container.v1.CheckAutopilotCompatibilityResponse.Builder.class); + } + + public static final int ISSUES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List issues_; + /** + *
+   * The list of issues for the given operation.
+   * 
+ * + * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; + */ + @java.lang.Override + public java.util.List getIssuesList() { + return issues_; + } + /** + *
+   * The list of issues for the given operation.
+   * 
+ * + * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; + */ + @java.lang.Override + public java.util.List + getIssuesOrBuilderList() { + return issues_; + } + /** + *
+   * The list of issues for the given operation.
+   * 
+ * + * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; + */ + @java.lang.Override + public int getIssuesCount() { + return issues_.size(); + } + /** + *
+   * The list of issues for the given operation.
+   * 
+ * + * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; + */ + @java.lang.Override + public com.google.container.v1.AutopilotCompatibilityIssue getIssues(int index) { + return issues_.get(index); + } + /** + *
+   * The list of issues for the given operation.
+   * 
+ * + * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; + */ + @java.lang.Override + public com.google.container.v1.AutopilotCompatibilityIssueOrBuilder getIssuesOrBuilder( + int index) { + return issues_.get(index); + } + + public static final int SUMMARY_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object summary_ = ""; + /** + *
+   * The summary of the autopilot compatibility response.
+   * 
+ * + * string summary = 2; + * @return The summary. + */ + @java.lang.Override + public java.lang.String getSummary() { + java.lang.Object ref = summary_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + summary_ = s; + return s; + } + } + /** + *
+   * The summary of the autopilot compatibility response.
+   * 
+ * + * string summary = 2; + * @return The bytes for summary. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSummaryBytes() { + java.lang.Object ref = summary_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + summary_ = 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 < issues_.size(); i++) { + output.writeMessage(1, issues_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(summary_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, summary_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < issues_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, issues_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(summary_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, summary_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.CheckAutopilotCompatibilityResponse)) { + return super.equals(obj); + } + com.google.container.v1.CheckAutopilotCompatibilityResponse other = (com.google.container.v1.CheckAutopilotCompatibilityResponse) obj; + + if (!getIssuesList() + .equals(other.getIssuesList())) return false; + if (!getSummary() + .equals(other.getSummary())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getIssuesCount() > 0) { + hash = (37 * hash) + ISSUES_FIELD_NUMBER; + hash = (53 * hash) + getIssuesList().hashCode(); + } + hash = (37 * hash) + SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getSummary().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.CheckAutopilotCompatibilityResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.CheckAutopilotCompatibilityResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.CheckAutopilotCompatibilityResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.CheckAutopilotCompatibilityResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.CheckAutopilotCompatibilityResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.CheckAutopilotCompatibilityResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.CheckAutopilotCompatibilityResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.CheckAutopilotCompatibilityResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.CheckAutopilotCompatibilityResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.CheckAutopilotCompatibilityResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.CheckAutopilotCompatibilityResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.CheckAutopilotCompatibilityResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.CheckAutopilotCompatibilityResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * CheckAutopilotCompatibilityResponse has a list of compatibility issues.
+   * 
+ * + * Protobuf type {@code google.container.v1.CheckAutopilotCompatibilityResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.CheckAutopilotCompatibilityResponse) + com.google.container.v1.CheckAutopilotCompatibilityResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CheckAutopilotCompatibilityResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CheckAutopilotCompatibilityResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.CheckAutopilotCompatibilityResponse.class, com.google.container.v1.CheckAutopilotCompatibilityResponse.Builder.class); + } + + // Construct using com.google.container.v1.CheckAutopilotCompatibilityResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (issuesBuilder_ == null) { + issues_ = java.util.Collections.emptyList(); + } else { + issues_ = null; + issuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + summary_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CheckAutopilotCompatibilityResponse_descriptor; + } + + @java.lang.Override + public com.google.container.v1.CheckAutopilotCompatibilityResponse getDefaultInstanceForType() { + return com.google.container.v1.CheckAutopilotCompatibilityResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.CheckAutopilotCompatibilityResponse build() { + com.google.container.v1.CheckAutopilotCompatibilityResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.CheckAutopilotCompatibilityResponse buildPartial() { + com.google.container.v1.CheckAutopilotCompatibilityResponse result = new com.google.container.v1.CheckAutopilotCompatibilityResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1.CheckAutopilotCompatibilityResponse result) { + if (issuesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + issues_ = java.util.Collections.unmodifiableList(issues_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.issues_ = issues_; + } else { + result.issues_ = issuesBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1.CheckAutopilotCompatibilityResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.summary_ = summary_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.CheckAutopilotCompatibilityResponse) { + return mergeFrom((com.google.container.v1.CheckAutopilotCompatibilityResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.CheckAutopilotCompatibilityResponse other) { + if (other == com.google.container.v1.CheckAutopilotCompatibilityResponse.getDefaultInstance()) return this; + if (issuesBuilder_ == null) { + if (!other.issues_.isEmpty()) { + if (issues_.isEmpty()) { + issues_ = other.issues_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureIssuesIsMutable(); + issues_.addAll(other.issues_); + } + onChanged(); + } + } else { + if (!other.issues_.isEmpty()) { + if (issuesBuilder_.isEmpty()) { + issuesBuilder_.dispose(); + issuesBuilder_ = null; + issues_ = other.issues_; + bitField0_ = (bitField0_ & ~0x00000001); + issuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getIssuesFieldBuilder() : null; + } else { + issuesBuilder_.addAllMessages(other.issues_); + } + } + } + if (!other.getSummary().isEmpty()) { + summary_ = other.summary_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.container.v1.AutopilotCompatibilityIssue m = + input.readMessage( + com.google.container.v1.AutopilotCompatibilityIssue.parser(), + extensionRegistry); + if (issuesBuilder_ == null) { + ensureIssuesIsMutable(); + issues_.add(m); + } else { + issuesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + summary_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List issues_ = + java.util.Collections.emptyList(); + private void ensureIssuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + issues_ = new java.util.ArrayList(issues_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.AutopilotCompatibilityIssue, com.google.container.v1.AutopilotCompatibilityIssue.Builder, com.google.container.v1.AutopilotCompatibilityIssueOrBuilder> issuesBuilder_; + + /** + *
+     * The list of issues for the given operation.
+     * 
+ * + * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; + */ + public java.util.List getIssuesList() { + if (issuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(issues_); + } else { + return issuesBuilder_.getMessageList(); + } + } + /** + *
+     * The list of issues for the given operation.
+     * 
+ * + * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; + */ + public int getIssuesCount() { + if (issuesBuilder_ == null) { + return issues_.size(); + } else { + return issuesBuilder_.getCount(); + } + } + /** + *
+     * The list of issues for the given operation.
+     * 
+ * + * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; + */ + public com.google.container.v1.AutopilotCompatibilityIssue getIssues(int index) { + if (issuesBuilder_ == null) { + return issues_.get(index); + } else { + return issuesBuilder_.getMessage(index); + } + } + /** + *
+     * The list of issues for the given operation.
+     * 
+ * + * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; + */ + public Builder setIssues( + int index, com.google.container.v1.AutopilotCompatibilityIssue value) { + if (issuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIssuesIsMutable(); + issues_.set(index, value); + onChanged(); + } else { + issuesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The list of issues for the given operation.
+     * 
+ * + * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; + */ + public Builder setIssues( + int index, com.google.container.v1.AutopilotCompatibilityIssue.Builder builderForValue) { + if (issuesBuilder_ == null) { + ensureIssuesIsMutable(); + issues_.set(index, builderForValue.build()); + onChanged(); + } else { + issuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The list of issues for the given operation.
+     * 
+ * + * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; + */ + public Builder addIssues(com.google.container.v1.AutopilotCompatibilityIssue value) { + if (issuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIssuesIsMutable(); + issues_.add(value); + onChanged(); + } else { + issuesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The list of issues for the given operation.
+     * 
+ * + * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; + */ + public Builder addIssues( + int index, com.google.container.v1.AutopilotCompatibilityIssue value) { + if (issuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIssuesIsMutable(); + issues_.add(index, value); + onChanged(); + } else { + issuesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The list of issues for the given operation.
+     * 
+ * + * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; + */ + public Builder addIssues( + com.google.container.v1.AutopilotCompatibilityIssue.Builder builderForValue) { + if (issuesBuilder_ == null) { + ensureIssuesIsMutable(); + issues_.add(builderForValue.build()); + onChanged(); + } else { + issuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The list of issues for the given operation.
+     * 
+ * + * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; + */ + public Builder addIssues( + int index, com.google.container.v1.AutopilotCompatibilityIssue.Builder builderForValue) { + if (issuesBuilder_ == null) { + ensureIssuesIsMutable(); + issues_.add(index, builderForValue.build()); + onChanged(); + } else { + issuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The list of issues for the given operation.
+     * 
+ * + * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; + */ + public Builder addAllIssues( + java.lang.Iterable values) { + if (issuesBuilder_ == null) { + ensureIssuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, issues_); + onChanged(); + } else { + issuesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The list of issues for the given operation.
+     * 
+ * + * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; + */ + public Builder clearIssues() { + if (issuesBuilder_ == null) { + issues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + issuesBuilder_.clear(); + } + return this; + } + /** + *
+     * The list of issues for the given operation.
+     * 
+ * + * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; + */ + public Builder removeIssues(int index) { + if (issuesBuilder_ == null) { + ensureIssuesIsMutable(); + issues_.remove(index); + onChanged(); + } else { + issuesBuilder_.remove(index); + } + return this; + } + /** + *
+     * The list of issues for the given operation.
+     * 
+ * + * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; + */ + public com.google.container.v1.AutopilotCompatibilityIssue.Builder getIssuesBuilder( + int index) { + return getIssuesFieldBuilder().getBuilder(index); + } + /** + *
+     * The list of issues for the given operation.
+     * 
+ * + * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; + */ + public com.google.container.v1.AutopilotCompatibilityIssueOrBuilder getIssuesOrBuilder( + int index) { + if (issuesBuilder_ == null) { + return issues_.get(index); } else { + return issuesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The list of issues for the given operation.
+     * 
+ * + * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; + */ + public java.util.List + getIssuesOrBuilderList() { + if (issuesBuilder_ != null) { + return issuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(issues_); + } + } + /** + *
+     * The list of issues for the given operation.
+     * 
+ * + * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; + */ + public com.google.container.v1.AutopilotCompatibilityIssue.Builder addIssuesBuilder() { + return getIssuesFieldBuilder().addBuilder( + com.google.container.v1.AutopilotCompatibilityIssue.getDefaultInstance()); + } + /** + *
+     * The list of issues for the given operation.
+     * 
+ * + * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; + */ + public com.google.container.v1.AutopilotCompatibilityIssue.Builder addIssuesBuilder( + int index) { + return getIssuesFieldBuilder().addBuilder( + index, com.google.container.v1.AutopilotCompatibilityIssue.getDefaultInstance()); + } + /** + *
+     * The list of issues for the given operation.
+     * 
+ * + * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; + */ + public java.util.List + getIssuesBuilderList() { + return getIssuesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.AutopilotCompatibilityIssue, com.google.container.v1.AutopilotCompatibilityIssue.Builder, com.google.container.v1.AutopilotCompatibilityIssueOrBuilder> + getIssuesFieldBuilder() { + if (issuesBuilder_ == null) { + issuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.AutopilotCompatibilityIssue, com.google.container.v1.AutopilotCompatibilityIssue.Builder, com.google.container.v1.AutopilotCompatibilityIssueOrBuilder>( + issues_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + issues_ = null; + } + return issuesBuilder_; + } + + private java.lang.Object summary_ = ""; + /** + *
+     * The summary of the autopilot compatibility response.
+     * 
+ * + * string summary = 2; + * @return The summary. + */ + public java.lang.String getSummary() { + java.lang.Object ref = summary_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + summary_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The summary of the autopilot compatibility response.
+     * 
+ * + * string summary = 2; + * @return The bytes for summary. + */ + public com.google.protobuf.ByteString + getSummaryBytes() { + java.lang.Object ref = summary_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + summary_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The summary of the autopilot compatibility response.
+     * 
+ * + * string summary = 2; + * @param value The summary to set. + * @return This builder for chaining. + */ + public Builder setSummary( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + summary_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The summary of the autopilot compatibility response.
+     * 
+ * + * string summary = 2; + * @return This builder for chaining. + */ + public Builder clearSummary() { + summary_ = getDefaultInstance().getSummary(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * The summary of the autopilot compatibility response.
+     * 
+ * + * string summary = 2; + * @param value The bytes for summary to set. + * @return This builder for chaining. + */ + public Builder setSummaryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + summary_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.CheckAutopilotCompatibilityResponse) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.CheckAutopilotCompatibilityResponse) + private static final com.google.container.v1.CheckAutopilotCompatibilityResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.CheckAutopilotCompatibilityResponse(); + } + + public static com.google.container.v1.CheckAutopilotCompatibilityResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CheckAutopilotCompatibilityResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.CheckAutopilotCompatibilityResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CheckAutopilotCompatibilityResponseOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CheckAutopilotCompatibilityResponseOrBuilder.java new file mode 100644 index 000000000000..444378d20002 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CheckAutopilotCompatibilityResponseOrBuilder.java @@ -0,0 +1,74 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface CheckAutopilotCompatibilityResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.CheckAutopilotCompatibilityResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The list of issues for the given operation.
+   * 
+ * + * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; + */ + java.util.List + getIssuesList(); + /** + *
+   * The list of issues for the given operation.
+   * 
+ * + * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; + */ + com.google.container.v1.AutopilotCompatibilityIssue getIssues(int index); + /** + *
+   * The list of issues for the given operation.
+   * 
+ * + * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; + */ + int getIssuesCount(); + /** + *
+   * The list of issues for the given operation.
+   * 
+ * + * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; + */ + java.util.List + getIssuesOrBuilderList(); + /** + *
+   * The list of issues for the given operation.
+   * 
+ * + * repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; + */ + com.google.container.v1.AutopilotCompatibilityIssueOrBuilder getIssuesOrBuilder( + int index); + + /** + *
+   * The summary of the autopilot compatibility response.
+   * 
+ * + * string summary = 2; + * @return The summary. + */ + java.lang.String getSummary(); + /** + *
+   * The summary of the autopilot compatibility response.
+   * 
+ * + * string summary = 2; + * @return The bytes for summary. + */ + com.google.protobuf.ByteString + getSummaryBytes(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClientCertificateConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClientCertificateConfig.java new file mode 100644 index 000000000000..21755b423202 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClientCertificateConfig.java @@ -0,0 +1,497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Configuration for client certificates on the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1.ClientCertificateConfig} + */ +public final class ClientCertificateConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ClientCertificateConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ClientCertificateConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ClientCertificateConfig.class, com.google.container.v1.ClientCertificateConfig.Builder.class); + } + + public static final int ISSUE_CLIENT_CERTIFICATE_FIELD_NUMBER = 1; + private boolean issueClientCertificate_ = false; + /** + *
+   * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.ClientCertificateConfig)) { + return super.equals(obj); + } + com.google.container.v1.ClientCertificateConfig other = (com.google.container.v1.ClientCertificateConfig) obj; + + if (getIssueClientCertificate() + != other.getIssueClientCertificate()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ClientCertificateConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.ClientCertificateConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.ClientCertificateConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ClientCertificateConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ClientCertificateConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.ClientCertificateConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.ClientCertificateConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.ClientCertificateConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ClientCertificateConfig) + com.google.container.v1.ClientCertificateConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ClientCertificateConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ClientCertificateConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ClientCertificateConfig.class, com.google.container.v1.ClientCertificateConfig.Builder.class); + } + + // Construct using com.google.container.v1.ClientCertificateConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + issueClientCertificate_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ClientCertificateConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ClientCertificateConfig getDefaultInstanceForType() { + return com.google.container.v1.ClientCertificateConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ClientCertificateConfig build() { + com.google.container.v1.ClientCertificateConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ClientCertificateConfig buildPartial() { + com.google.container.v1.ClientCertificateConfig result = new com.google.container.v1.ClientCertificateConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.ClientCertificateConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.issueClientCertificate_ = issueClientCertificate_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ClientCertificateConfig) { + return mergeFrom((com.google.container.v1.ClientCertificateConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ClientCertificateConfig other) { + if (other == com.google.container.v1.ClientCertificateConfig.getDefaultInstance()) return this; + if (other.getIssueClientCertificate() != false) { + setIssueClientCertificate(other.getIssueClientCertificate()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + issueClientCertificate_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Issue a client certificate.
+     * 
+ * + * bool issue_client_certificate = 1; + * @return This builder for chaining. + */ + public Builder clearIssueClientCertificate() { + bitField0_ = (bitField0_ & ~0x00000001); + 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.v1.ClientCertificateConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ClientCertificateConfig) + private static final com.google.container.v1.ClientCertificateConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.ClientCertificateConfig(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.ClientCertificateConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClientCertificateConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClientCertificateConfigOrBuilder.java new file mode 100644 index 000000000000..26642013d2ae --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClientCertificateConfigOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface ClientCertificateConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ClientCertificateConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Issue a client certificate.
+   * 
+ * + * bool issue_client_certificate = 1; + * @return The issueClientCertificate. + */ + boolean getIssueClientCertificate(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CloudRunConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CloudRunConfig.java new file mode 100644 index 000000000000..52b892fe5758 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CloudRunConfig.java @@ -0,0 +1,764 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Configuration options for the Cloud Run feature.
+ * 
+ * + * Protobuf type {@code google.container.v1.CloudRunConfig} + */ +public final class CloudRunConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CloudRunConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CloudRunConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.CloudRunConfig.class, com.google.container.v1.CloudRunConfig.Builder.class); + } + + /** + *
+   * Load balancer type of ingress service of Cloud Run.
+   * 
+ * + * Protobuf enum {@code google.container.v1.CloudRunConfig.LoadBalancerType} + */ + public enum LoadBalancerType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Load balancer type for Cloud Run is unspecified.
+     * 
+ * + * LOAD_BALANCER_TYPE_UNSPECIFIED = 0; + */ + LOAD_BALANCER_TYPE_UNSPECIFIED(0), + /** + *
+     * Install external load balancer for Cloud Run.
+     * 
+ * + * LOAD_BALANCER_TYPE_EXTERNAL = 1; + */ + LOAD_BALANCER_TYPE_EXTERNAL(1), + /** + *
+     * Install internal load balancer for Cloud Run.
+     * 
+ * + * LOAD_BALANCER_TYPE_INTERNAL = 2; + */ + LOAD_BALANCER_TYPE_INTERNAL(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Load balancer type for Cloud Run is unspecified.
+     * 
+ * + * LOAD_BALANCER_TYPE_UNSPECIFIED = 0; + */ + public static final int LOAD_BALANCER_TYPE_UNSPECIFIED_VALUE = 0; + /** + *
+     * Install external load balancer for Cloud Run.
+     * 
+ * + * LOAD_BALANCER_TYPE_EXTERNAL = 1; + */ + public static final int LOAD_BALANCER_TYPE_EXTERNAL_VALUE = 1; + /** + *
+     * Install internal load balancer for Cloud Run.
+     * 
+ * + * LOAD_BALANCER_TYPE_INTERNAL = 2; + */ + public static final int LOAD_BALANCER_TYPE_INTERNAL_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LoadBalancerType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static LoadBalancerType forNumber(int value) { + switch (value) { + case 0: return LOAD_BALANCER_TYPE_UNSPECIFIED; + case 1: return LOAD_BALANCER_TYPE_EXTERNAL; + case 2: return LOAD_BALANCER_TYPE_INTERNAL; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + LoadBalancerType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LoadBalancerType findValueByNumber(int number) { + return LoadBalancerType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.CloudRunConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final LoadBalancerType[] VALUES = values(); + + public static LoadBalancerType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private LoadBalancerType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.CloudRunConfig.LoadBalancerType) + } + + public static final int DISABLED_FIELD_NUMBER = 1; + private boolean disabled_ = false; + /** + *
+   * 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_ = 0; + /** + *
+   * Which load balancer type is installed for Cloud Run.
+   * 
+ * + * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * @return The enum numeric value on the wire for loadBalancerType. + */ + @java.lang.Override public int getLoadBalancerTypeValue() { + return loadBalancerType_; + } + /** + *
+   * Which load balancer type is installed for Cloud Run.
+   * 
+ * + * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * @return The loadBalancerType. + */ + @java.lang.Override public com.google.container.v1.CloudRunConfig.LoadBalancerType getLoadBalancerType() { + com.google.container.v1.CloudRunConfig.LoadBalancerType result = com.google.container.v1.CloudRunConfig.LoadBalancerType.forNumber(loadBalancerType_); + return result == null ? com.google.container.v1.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.v1.CloudRunConfig.LoadBalancerType.LOAD_BALANCER_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, loadBalancerType_); + } + getUnknownFields().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.v1.CloudRunConfig.LoadBalancerType.LOAD_BALANCER_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, loadBalancerType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.CloudRunConfig)) { + return super.equals(obj); + } + com.google.container.v1.CloudRunConfig other = (com.google.container.v1.CloudRunConfig) obj; + + if (getDisabled() + != other.getDisabled()) return false; + if (loadBalancerType_ != other.loadBalancerType_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.CloudRunConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.CloudRunConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.CloudRunConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.CloudRunConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.CloudRunConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.CloudRunConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.CloudRunConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.CloudRunConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.CloudRunConfig) + com.google.container.v1.CloudRunConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CloudRunConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CloudRunConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.CloudRunConfig.class, com.google.container.v1.CloudRunConfig.Builder.class); + } + + // Construct using com.google.container.v1.CloudRunConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + disabled_ = false; + loadBalancerType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CloudRunConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.CloudRunConfig getDefaultInstanceForType() { + return com.google.container.v1.CloudRunConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.CloudRunConfig build() { + com.google.container.v1.CloudRunConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.CloudRunConfig buildPartial() { + com.google.container.v1.CloudRunConfig result = new com.google.container.v1.CloudRunConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.CloudRunConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.disabled_ = disabled_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.loadBalancerType_ = loadBalancerType_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.CloudRunConfig) { + return mergeFrom((com.google.container.v1.CloudRunConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.CloudRunConfig other) { + if (other == com.google.container.v1.CloudRunConfig.getDefaultInstance()) return this; + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } + if (other.loadBalancerType_ != 0) { + setLoadBalancerTypeValue(other.getLoadBalancerTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + disabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 24: { + loadBalancerType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether Cloud Run addon is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + * @return This builder for chaining. + */ + public Builder clearDisabled() { + bitField0_ = (bitField0_ & ~0x00000001); + disabled_ = false; + onChanged(); + return this; + } + + private int loadBalancerType_ = 0; + /** + *
+     * Which load balancer type is installed for Cloud Run.
+     * 
+ * + * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * @return The enum numeric value on the wire for loadBalancerType. + */ + @java.lang.Override public int getLoadBalancerTypeValue() { + return loadBalancerType_; + } + /** + *
+     * Which load balancer type is installed for Cloud Run.
+     * 
+ * + * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * @param value The enum numeric value on the wire for loadBalancerType to set. + * @return This builder for chaining. + */ + public Builder setLoadBalancerTypeValue(int value) { + loadBalancerType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Which load balancer type is installed for Cloud Run.
+     * 
+ * + * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * @return The loadBalancerType. + */ + @java.lang.Override + public com.google.container.v1.CloudRunConfig.LoadBalancerType getLoadBalancerType() { + com.google.container.v1.CloudRunConfig.LoadBalancerType result = com.google.container.v1.CloudRunConfig.LoadBalancerType.forNumber(loadBalancerType_); + return result == null ? com.google.container.v1.CloudRunConfig.LoadBalancerType.UNRECOGNIZED : result; + } + /** + *
+     * Which load balancer type is installed for Cloud Run.
+     * 
+ * + * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * @param value The loadBalancerType to set. + * @return This builder for chaining. + */ + public Builder setLoadBalancerType(com.google.container.v1.CloudRunConfig.LoadBalancerType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + loadBalancerType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Which load balancer type is installed for Cloud Run.
+     * 
+ * + * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * @return This builder for chaining. + */ + public Builder clearLoadBalancerType() { + bitField0_ = (bitField0_ & ~0x00000002); + 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.v1.CloudRunConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.CloudRunConfig) + private static final com.google.container.v1.CloudRunConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.CloudRunConfig(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.CloudRunConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CloudRunConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CloudRunConfigOrBuilder.java new file mode 100644 index 000000000000..72744007509f --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CloudRunConfigOrBuilder.java @@ -0,0 +1,39 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface CloudRunConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.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.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * @return The enum numeric value on the wire for loadBalancerType. + */ + int getLoadBalancerTypeValue(); + /** + *
+   * Which load balancer type is installed for Cloud Run.
+   * 
+ * + * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; + * @return The loadBalancerType. + */ + com.google.container.v1.CloudRunConfig.LoadBalancerType getLoadBalancerType(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java new file mode 100644 index 000000000000..6bbb1556b9ad --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java @@ -0,0 +1,15611 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * A Google Kubernetes Engine cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1.Cluster} + */ +public final class Cluster extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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.emptyList(); + labelFingerprint_ = ""; + selfLink_ = ""; + zone_ = ""; + endpoint_ = ""; + initialClusterVersion_ = ""; + currentMasterVersion_ = ""; + currentNodeVersion_ = ""; + createTime_ = ""; + status_ = 0; + statusMessage_ = ""; + servicesIpv4Cidr_ = ""; + instanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + expireTime_ = ""; + location_ = ""; + tpuIpv4CidrBlock_ = ""; + conditions_ = java.util.Collections.emptyList(); + id_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Cluster(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_Cluster_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + 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.v1.ClusterServiceProto.internal_static_google_container_v1_Cluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.Cluster.class, com.google.container.v1.Cluster.Builder.class); + } + + /** + *
+   * The current status of the cluster.
+   * 
+ * + * Protobuf enum {@code google.container.v1.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 is unusable. It will be
+     * automatically deleted. 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 is unusable. It will be
+     * automatically deleted. 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< + Status> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Status findValueByNumber(int number) { + return Status.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.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.v1.Cluster.Status) + } + + private int bitField0_; + private int bitField1_; + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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_ = 0; + /** + *
+   * 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]; + * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. + * See google/container/v1/cluster_service.proto;l=1679 + * @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.v1.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.v1.NodeConfig node_config = 4 [deprecated = true]; + * @deprecated google.container.v1.Cluster.node_config is deprecated. + * See google/container/v1/cluster_service.proto;l=1692 + * @return Whether the nodeConfig field is set. + */ + @java.lang.Override + @java.lang.Deprecated public boolean hasNodeConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * 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.v1.NodeConfig node_config = 4 [deprecated = true]; + * @deprecated google.container.v1.Cluster.node_config is deprecated. + * See google/container/v1/cluster_service.proto;l=1692 + * @return The nodeConfig. + */ + @java.lang.Override + @java.lang.Deprecated public com.google.container.v1.NodeConfig getNodeConfig() { + return nodeConfig_ == null ? com.google.container.v1.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.v1.NodeConfig node_config = 4 [deprecated = true]; + */ + @java.lang.Override + @java.lang.Deprecated public com.google.container.v1.NodeConfigOrBuilder getNodeConfigOrBuilder() { + return nodeConfig_ == null ? com.google.container.v1.NodeConfig.getDefaultInstance() : nodeConfig_; + } + + public static final int MASTER_AUTH_FIELD_NUMBER = 5; + private com.google.container.v1.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.v1.MasterAuth master_auth = 5; + * @return Whether the masterAuth field is set. + */ + @java.lang.Override + public boolean hasMasterAuth() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * 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.v1.MasterAuth master_auth = 5; + * @return The masterAuth. + */ + @java.lang.Override + public com.google.container.v1.MasterAuth getMasterAuth() { + return masterAuth_ == null ? com.google.container.v1.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.v1.MasterAuth master_auth = 5; + */ + @java.lang.Override + public com.google.container.v1.MasterAuthOrBuilder getMasterAuthOrBuilder() { + return masterAuth_ == null ? com.google.container.v1.MasterAuth.getDefaultInstance() : masterAuth_; + } + + public static final int LOGGING_SERVICE_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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.
+   * 
+ * + * 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.
+   * 
+ * + * 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; + @SuppressWarnings("serial") + 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.v1.AddonsConfig addonsConfig_; + /** + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1.AddonsConfig addons_config = 10; + * @return Whether the addonsConfig field is set. + */ + @java.lang.Override + public boolean hasAddonsConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1.AddonsConfig addons_config = 10; + * @return The addonsConfig. + */ + @java.lang.Override + public com.google.container.v1.AddonsConfig getAddonsConfig() { + return addonsConfig_ == null ? com.google.container.v1.AddonsConfig.getDefaultInstance() : addonsConfig_; + } + /** + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1.AddonsConfig addons_config = 10; + */ + @java.lang.Override + public com.google.container.v1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() { + return addonsConfig_ == null ? com.google.container.v1.AddonsConfig.getDefaultInstance() : addonsConfig_; + } + + public static final int SUBNETWORK_FIELD_NUMBER = 11; + @SuppressWarnings("serial") + 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.
+   * 
+ * + * 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.
+   * 
+ * + * 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; + @SuppressWarnings("serial") + 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.v1.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.v1.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.v1.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.v1.NodePool node_pools = 12; + */ + @java.lang.Override + public com.google.container.v1.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.v1.NodePool node_pools = 12; + */ + @java.lang.Override + public com.google.container.v1.NodePoolOrBuilder getNodePoolsOrBuilder( + int index) { + return nodePools_.get(index); + } + + public static final int LOCATIONS_FIELD_NUMBER = 13; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList locations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * 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_ = false; + /** + *
+   * Kubernetes alpha features are enabled on this cluster. This includes alpha
+   * API groups (e.g. v1alpha1) and features that may not be production ready in
+   * the kubernetes version of the master and nodes.
+   * The cluster has no SLA for uptime and master/node upgrades are disabled.
+   * Alpha enabled clusters are automatically deleted thirty days after
+   * creation.
+   * 
+ * + * bool enable_kubernetes_alpha = 14; + * @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< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_Cluster_ResourceLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> resourceLabels_; + private com.google.protobuf.MapField + internalGetResourceLabels() { + if (resourceLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + return resourceLabels_; + } + public int getResourceLabelsCount() { + return internalGetResourceLabels().getMap().size(); + } + /** + *
+   * The resource labels for the cluster to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 15; + */ + @java.lang.Override + public boolean containsResourceLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + 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 /* nullable */ +java.lang.String getResourceLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + 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 NullPointerException("map key"); } + 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; + @SuppressWarnings("serial") + 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.v1.LegacyAbac legacyAbac_; + /** + *
+   * Configuration for the legacy ABAC authorization mode.
+   * 
+ * + * .google.container.v1.LegacyAbac legacy_abac = 18; + * @return Whether the legacyAbac field is set. + */ + @java.lang.Override + public boolean hasLegacyAbac() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+   * Configuration for the legacy ABAC authorization mode.
+   * 
+ * + * .google.container.v1.LegacyAbac legacy_abac = 18; + * @return The legacyAbac. + */ + @java.lang.Override + public com.google.container.v1.LegacyAbac getLegacyAbac() { + return legacyAbac_ == null ? com.google.container.v1.LegacyAbac.getDefaultInstance() : legacyAbac_; + } + /** + *
+   * Configuration for the legacy ABAC authorization mode.
+   * 
+ * + * .google.container.v1.LegacyAbac legacy_abac = 18; + */ + @java.lang.Override + public com.google.container.v1.LegacyAbacOrBuilder getLegacyAbacOrBuilder() { + return legacyAbac_ == null ? com.google.container.v1.LegacyAbac.getDefaultInstance() : legacyAbac_; + } + + public static final int NETWORK_POLICY_FIELD_NUMBER = 19; + private com.google.container.v1.NetworkPolicy networkPolicy_; + /** + *
+   * Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1.NetworkPolicy network_policy = 19; + * @return Whether the networkPolicy field is set. + */ + @java.lang.Override + public boolean hasNetworkPolicy() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+   * Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1.NetworkPolicy network_policy = 19; + * @return The networkPolicy. + */ + @java.lang.Override + public com.google.container.v1.NetworkPolicy getNetworkPolicy() { + return networkPolicy_ == null ? com.google.container.v1.NetworkPolicy.getDefaultInstance() : networkPolicy_; + } + /** + *
+   * Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1.NetworkPolicy network_policy = 19; + */ + @java.lang.Override + public com.google.container.v1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder() { + return networkPolicy_ == null ? com.google.container.v1.NetworkPolicy.getDefaultInstance() : networkPolicy_; + } + + public static final int IP_ALLOCATION_POLICY_FIELD_NUMBER = 20; + private com.google.container.v1.IPAllocationPolicy ipAllocationPolicy_; + /** + *
+   * Configuration for cluster IP allocation.
+   * 
+ * + * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; + * @return Whether the ipAllocationPolicy field is set. + */ + @java.lang.Override + public boolean hasIpAllocationPolicy() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+   * Configuration for cluster IP allocation.
+   * 
+ * + * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; + * @return The ipAllocationPolicy. + */ + @java.lang.Override + public com.google.container.v1.IPAllocationPolicy getIpAllocationPolicy() { + return ipAllocationPolicy_ == null ? com.google.container.v1.IPAllocationPolicy.getDefaultInstance() : ipAllocationPolicy_; + } + /** + *
+   * Configuration for cluster IP allocation.
+   * 
+ * + * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; + */ + @java.lang.Override + public com.google.container.v1.IPAllocationPolicyOrBuilder getIpAllocationPolicyOrBuilder() { + return ipAllocationPolicy_ == null ? com.google.container.v1.IPAllocationPolicy.getDefaultInstance() : ipAllocationPolicy_; + } + + public static final int MASTER_AUTHORIZED_NETWORKS_CONFIG_FIELD_NUMBER = 22; + private com.google.container.v1.MasterAuthorizedNetworksConfig masterAuthorizedNetworksConfig_; + /** + *
+   * The configuration options for master authorized networks feature.
+   * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * @return Whether the masterAuthorizedNetworksConfig field is set. + */ + @java.lang.Override + public boolean hasMasterAuthorizedNetworksConfig() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+   * The configuration options for master authorized networks feature.
+   * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * @return The masterAuthorizedNetworksConfig. + */ + @java.lang.Override + public com.google.container.v1.MasterAuthorizedNetworksConfig getMasterAuthorizedNetworksConfig() { + return masterAuthorizedNetworksConfig_ == null ? com.google.container.v1.MasterAuthorizedNetworksConfig.getDefaultInstance() : masterAuthorizedNetworksConfig_; + } + /** + *
+   * The configuration options for master authorized networks feature.
+   * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + @java.lang.Override + public com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder getMasterAuthorizedNetworksConfigOrBuilder() { + return masterAuthorizedNetworksConfig_ == null ? com.google.container.v1.MasterAuthorizedNetworksConfig.getDefaultInstance() : masterAuthorizedNetworksConfig_; + } + + public static final int MAINTENANCE_POLICY_FIELD_NUMBER = 23; + private com.google.container.v1.MaintenancePolicy maintenancePolicy_; + /** + *
+   * Configure the maintenance policy for this cluster.
+   * 
+ * + * .google.container.v1.MaintenancePolicy maintenance_policy = 23; + * @return Whether the maintenancePolicy field is set. + */ + @java.lang.Override + public boolean hasMaintenancePolicy() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+   * Configure the maintenance policy for this cluster.
+   * 
+ * + * .google.container.v1.MaintenancePolicy maintenance_policy = 23; + * @return The maintenancePolicy. + */ + @java.lang.Override + public com.google.container.v1.MaintenancePolicy getMaintenancePolicy() { + return maintenancePolicy_ == null ? com.google.container.v1.MaintenancePolicy.getDefaultInstance() : maintenancePolicy_; + } + /** + *
+   * Configure the maintenance policy for this cluster.
+   * 
+ * + * .google.container.v1.MaintenancePolicy maintenance_policy = 23; + */ + @java.lang.Override + public com.google.container.v1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { + return maintenancePolicy_ == null ? com.google.container.v1.MaintenancePolicy.getDefaultInstance() : maintenancePolicy_; + } + + public static final int BINARY_AUTHORIZATION_FIELD_NUMBER = 24; + private com.google.container.v1.BinaryAuthorization binaryAuthorization_; + /** + *
+   * Configuration for Binary Authorization.
+   * 
+ * + * .google.container.v1.BinaryAuthorization binary_authorization = 24; + * @return Whether the binaryAuthorization field is set. + */ + @java.lang.Override + public boolean hasBinaryAuthorization() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + *
+   * Configuration for Binary Authorization.
+   * 
+ * + * .google.container.v1.BinaryAuthorization binary_authorization = 24; + * @return The binaryAuthorization. + */ + @java.lang.Override + public com.google.container.v1.BinaryAuthorization getBinaryAuthorization() { + return binaryAuthorization_ == null ? com.google.container.v1.BinaryAuthorization.getDefaultInstance() : binaryAuthorization_; + } + /** + *
+   * Configuration for Binary Authorization.
+   * 
+ * + * .google.container.v1.BinaryAuthorization binary_authorization = 24; + */ + @java.lang.Override + public com.google.container.v1.BinaryAuthorizationOrBuilder getBinaryAuthorizationOrBuilder() { + return binaryAuthorization_ == null ? com.google.container.v1.BinaryAuthorization.getDefaultInstance() : binaryAuthorization_; + } + + public static final int AUTOSCALING_FIELD_NUMBER = 26; + private com.google.container.v1.ClusterAutoscaling autoscaling_; + /** + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1.ClusterAutoscaling autoscaling = 26; + * @return Whether the autoscaling field is set. + */ + @java.lang.Override + public boolean hasAutoscaling() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1.ClusterAutoscaling autoscaling = 26; + * @return The autoscaling. + */ + @java.lang.Override + public com.google.container.v1.ClusterAutoscaling getAutoscaling() { + return autoscaling_ == null ? com.google.container.v1.ClusterAutoscaling.getDefaultInstance() : autoscaling_; + } + /** + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1.ClusterAutoscaling autoscaling = 26; + */ + @java.lang.Override + public com.google.container.v1.ClusterAutoscalingOrBuilder getAutoscalingOrBuilder() { + return autoscaling_ == null ? com.google.container.v1.ClusterAutoscaling.getDefaultInstance() : autoscaling_; + } + + public static final int NETWORK_CONFIG_FIELD_NUMBER = 27; + private com.google.container.v1.NetworkConfig networkConfig_; + /** + *
+   * Configuration for cluster networking.
+   * 
+ * + * .google.container.v1.NetworkConfig network_config = 27; + * @return Whether the networkConfig field is set. + */ + @java.lang.Override + public boolean hasNetworkConfig() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + *
+   * Configuration for cluster networking.
+   * 
+ * + * .google.container.v1.NetworkConfig network_config = 27; + * @return The networkConfig. + */ + @java.lang.Override + public com.google.container.v1.NetworkConfig getNetworkConfig() { + return networkConfig_ == null ? com.google.container.v1.NetworkConfig.getDefaultInstance() : networkConfig_; + } + /** + *
+   * Configuration for cluster networking.
+   * 
+ * + * .google.container.v1.NetworkConfig network_config = 27; + */ + @java.lang.Override + public com.google.container.v1.NetworkConfigOrBuilder getNetworkConfigOrBuilder() { + return networkConfig_ == null ? com.google.container.v1.NetworkConfig.getDefaultInstance() : networkConfig_; + } + + public static final int DEFAULT_MAX_PODS_CONSTRAINT_FIELD_NUMBER = 30; + private com.google.container.v1.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.v1.MaxPodsConstraint default_max_pods_constraint = 30; + * @return Whether the defaultMaxPodsConstraint field is set. + */ + @java.lang.Override + public boolean hasDefaultMaxPodsConstraint() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + *
+   * 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.v1.MaxPodsConstraint default_max_pods_constraint = 30; + * @return The defaultMaxPodsConstraint. + */ + @java.lang.Override + public com.google.container.v1.MaxPodsConstraint getDefaultMaxPodsConstraint() { + return defaultMaxPodsConstraint_ == null ? com.google.container.v1.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.v1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + @java.lang.Override + public com.google.container.v1.MaxPodsConstraintOrBuilder getDefaultMaxPodsConstraintOrBuilder() { + return defaultMaxPodsConstraint_ == null ? com.google.container.v1.MaxPodsConstraint.getDefaultInstance() : defaultMaxPodsConstraint_; + } + + public static final int RESOURCE_USAGE_EXPORT_CONFIG_FIELD_NUMBER = 33; + private com.google.container.v1.ResourceUsageExportConfig resourceUsageExportConfig_; + /** + *
+   * Configuration for exporting resource usages. Resource usage export is
+   * disabled when this config is unspecified.
+   * 
+ * + * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; + * @return Whether the resourceUsageExportConfig field is set. + */ + @java.lang.Override + public boolean hasResourceUsageExportConfig() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + *
+   * Configuration for exporting resource usages. Resource usage export is
+   * disabled when this config is unspecified.
+   * 
+ * + * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; + * @return The resourceUsageExportConfig. + */ + @java.lang.Override + public com.google.container.v1.ResourceUsageExportConfig getResourceUsageExportConfig() { + return resourceUsageExportConfig_ == null ? com.google.container.v1.ResourceUsageExportConfig.getDefaultInstance() : resourceUsageExportConfig_; + } + /** + *
+   * Configuration for exporting resource usages. Resource usage export is
+   * disabled when this config is unspecified.
+   * 
+ * + * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; + */ + @java.lang.Override + public com.google.container.v1.ResourceUsageExportConfigOrBuilder getResourceUsageExportConfigOrBuilder() { + return resourceUsageExportConfig_ == null ? com.google.container.v1.ResourceUsageExportConfig.getDefaultInstance() : resourceUsageExportConfig_; + } + + public static final int AUTHENTICATOR_GROUPS_CONFIG_FIELD_NUMBER = 34; + private com.google.container.v1.AuthenticatorGroupsConfig authenticatorGroupsConfig_; + /** + *
+   * Configuration controlling RBAC group membership information.
+   * 
+ * + * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * @return Whether the authenticatorGroupsConfig field is set. + */ + @java.lang.Override + public boolean hasAuthenticatorGroupsConfig() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + *
+   * Configuration controlling RBAC group membership information.
+   * 
+ * + * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * @return The authenticatorGroupsConfig. + */ + @java.lang.Override + public com.google.container.v1.AuthenticatorGroupsConfig getAuthenticatorGroupsConfig() { + return authenticatorGroupsConfig_ == null ? com.google.container.v1.AuthenticatorGroupsConfig.getDefaultInstance() : authenticatorGroupsConfig_; + } + /** + *
+   * Configuration controlling RBAC group membership information.
+   * 
+ * + * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + */ + @java.lang.Override + public com.google.container.v1.AuthenticatorGroupsConfigOrBuilder getAuthenticatorGroupsConfigOrBuilder() { + return authenticatorGroupsConfig_ == null ? com.google.container.v1.AuthenticatorGroupsConfig.getDefaultInstance() : authenticatorGroupsConfig_; + } + + public static final int PRIVATE_CLUSTER_CONFIG_FIELD_NUMBER = 37; + private com.google.container.v1.PrivateClusterConfig privateClusterConfig_; + /** + *
+   * Configuration for private cluster.
+   * 
+ * + * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; + * @return Whether the privateClusterConfig field is set. + */ + @java.lang.Override + public boolean hasPrivateClusterConfig() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + *
+   * Configuration for private cluster.
+   * 
+ * + * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; + * @return The privateClusterConfig. + */ + @java.lang.Override + public com.google.container.v1.PrivateClusterConfig getPrivateClusterConfig() { + return privateClusterConfig_ == null ? com.google.container.v1.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; + } + /** + *
+   * Configuration for private cluster.
+   * 
+ * + * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; + */ + @java.lang.Override + public com.google.container.v1.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder() { + return privateClusterConfig_ == null ? com.google.container.v1.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; + } + + public static final int DATABASE_ENCRYPTION_FIELD_NUMBER = 38; + private com.google.container.v1.DatabaseEncryption databaseEncryption_; + /** + *
+   * Configuration of etcd encryption.
+   * 
+ * + * .google.container.v1.DatabaseEncryption database_encryption = 38; + * @return Whether the databaseEncryption field is set. + */ + @java.lang.Override + public boolean hasDatabaseEncryption() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + *
+   * Configuration of etcd encryption.
+   * 
+ * + * .google.container.v1.DatabaseEncryption database_encryption = 38; + * @return The databaseEncryption. + */ + @java.lang.Override + public com.google.container.v1.DatabaseEncryption getDatabaseEncryption() { + return databaseEncryption_ == null ? com.google.container.v1.DatabaseEncryption.getDefaultInstance() : databaseEncryption_; + } + /** + *
+   * Configuration of etcd encryption.
+   * 
+ * + * .google.container.v1.DatabaseEncryption database_encryption = 38; + */ + @java.lang.Override + public com.google.container.v1.DatabaseEncryptionOrBuilder getDatabaseEncryptionOrBuilder() { + return databaseEncryption_ == null ? com.google.container.v1.DatabaseEncryption.getDefaultInstance() : databaseEncryption_; + } + + public static final int VERTICAL_POD_AUTOSCALING_FIELD_NUMBER = 39; + private com.google.container.v1.VerticalPodAutoscaling verticalPodAutoscaling_; + /** + *
+   * Cluster-level Vertical Pod Autoscaling configuration.
+   * 
+ * + * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + * @return Whether the verticalPodAutoscaling field is set. + */ + @java.lang.Override + public boolean hasVerticalPodAutoscaling() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + *
+   * Cluster-level Vertical Pod Autoscaling configuration.
+   * 
+ * + * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + * @return The verticalPodAutoscaling. + */ + @java.lang.Override + public com.google.container.v1.VerticalPodAutoscaling getVerticalPodAutoscaling() { + return verticalPodAutoscaling_ == null ? com.google.container.v1.VerticalPodAutoscaling.getDefaultInstance() : verticalPodAutoscaling_; + } + /** + *
+   * Cluster-level Vertical Pod Autoscaling configuration.
+   * 
+ * + * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + */ + @java.lang.Override + public com.google.container.v1.VerticalPodAutoscalingOrBuilder getVerticalPodAutoscalingOrBuilder() { + return verticalPodAutoscaling_ == null ? com.google.container.v1.VerticalPodAutoscaling.getDefaultInstance() : verticalPodAutoscaling_; + } + + public static final int SHIELDED_NODES_FIELD_NUMBER = 40; + private com.google.container.v1.ShieldedNodes shieldedNodes_; + /** + *
+   * Shielded Nodes configuration.
+   * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + * @return Whether the shieldedNodes field is set. + */ + @java.lang.Override + public boolean hasShieldedNodes() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + *
+   * Shielded Nodes configuration.
+   * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + * @return The shieldedNodes. + */ + @java.lang.Override + public com.google.container.v1.ShieldedNodes getShieldedNodes() { + return shieldedNodes_ == null ? com.google.container.v1.ShieldedNodes.getDefaultInstance() : shieldedNodes_; + } + /** + *
+   * Shielded Nodes configuration.
+   * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + */ + @java.lang.Override + public com.google.container.v1.ShieldedNodesOrBuilder getShieldedNodesOrBuilder() { + return shieldedNodes_ == null ? com.google.container.v1.ShieldedNodes.getDefaultInstance() : shieldedNodes_; + } + + public static final int RELEASE_CHANNEL_FIELD_NUMBER = 41; + private com.google.container.v1.ReleaseChannel releaseChannel_; + /** + *
+   * Release channel configuration. If left unspecified on cluster creation and
+   * a version is specified, the cluster is enrolled in the most mature release
+   * channel where the version is available (first checking STABLE, then
+   * REGULAR, and finally RAPID). Otherwise, if no release channel
+   * configuration and no version is specified, the cluster is enrolled in the
+   * REGULAR channel with its default version.
+   * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + * @return Whether the releaseChannel field is set. + */ + @java.lang.Override + public boolean hasReleaseChannel() { + return ((bitField0_ & 0x00040000) != 0); + } + /** + *
+   * Release channel configuration. If left unspecified on cluster creation and
+   * a version is specified, the cluster is enrolled in the most mature release
+   * channel where the version is available (first checking STABLE, then
+   * REGULAR, and finally RAPID). Otherwise, if no release channel
+   * configuration and no version is specified, the cluster is enrolled in the
+   * REGULAR channel with its default version.
+   * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + * @return The releaseChannel. + */ + @java.lang.Override + public com.google.container.v1.ReleaseChannel getReleaseChannel() { + return releaseChannel_ == null ? com.google.container.v1.ReleaseChannel.getDefaultInstance() : releaseChannel_; + } + /** + *
+   * Release channel configuration. If left unspecified on cluster creation and
+   * a version is specified, the cluster is enrolled in the most mature release
+   * channel where the version is available (first checking STABLE, then
+   * REGULAR, and finally RAPID). Otherwise, if no release channel
+   * configuration and no version is specified, the cluster is enrolled in the
+   * REGULAR channel with its default version.
+   * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + */ + @java.lang.Override + public com.google.container.v1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder() { + return releaseChannel_ == null ? com.google.container.v1.ReleaseChannel.getDefaultInstance() : releaseChannel_; + } + + public static final int WORKLOAD_IDENTITY_CONFIG_FIELD_NUMBER = 43; + private com.google.container.v1.WorkloadIdentityConfig workloadIdentityConfig_; + /** + *
+   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+   * policies.
+   * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + * @return Whether the workloadIdentityConfig field is set. + */ + @java.lang.Override + public boolean hasWorkloadIdentityConfig() { + return ((bitField0_ & 0x00080000) != 0); + } + /** + *
+   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+   * policies.
+   * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + * @return The workloadIdentityConfig. + */ + @java.lang.Override + public com.google.container.v1.WorkloadIdentityConfig getWorkloadIdentityConfig() { + return workloadIdentityConfig_ == null ? com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance() : workloadIdentityConfig_; + } + /** + *
+   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+   * policies.
+   * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + */ + @java.lang.Override + public com.google.container.v1.WorkloadIdentityConfigOrBuilder getWorkloadIdentityConfigOrBuilder() { + return workloadIdentityConfig_ == null ? com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance() : workloadIdentityConfig_; + } + + public static final int MESH_CERTIFICATES_FIELD_NUMBER = 67; + private com.google.container.v1.MeshCertificates meshCertificates_; + /** + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1.MeshCertificates mesh_certificates = 67; + * @return Whether the meshCertificates field is set. + */ + @java.lang.Override + public boolean hasMeshCertificates() { + return ((bitField0_ & 0x00100000) != 0); + } + /** + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1.MeshCertificates mesh_certificates = 67; + * @return The meshCertificates. + */ + @java.lang.Override + public com.google.container.v1.MeshCertificates getMeshCertificates() { + return meshCertificates_ == null ? com.google.container.v1.MeshCertificates.getDefaultInstance() : meshCertificates_; + } + /** + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1.MeshCertificates mesh_certificates = 67; + */ + @java.lang.Override + public com.google.container.v1.MeshCertificatesOrBuilder getMeshCertificatesOrBuilder() { + return meshCertificates_ == null ? com.google.container.v1.MeshCertificates.getDefaultInstance() : meshCertificates_; + } + + public static final int COST_MANAGEMENT_CONFIG_FIELD_NUMBER = 45; + private com.google.container.v1.CostManagementConfig costManagementConfig_; + /** + *
+   * Configuration for the fine-grained cost management feature.
+   * 
+ * + * .google.container.v1.CostManagementConfig cost_management_config = 45; + * @return Whether the costManagementConfig field is set. + */ + @java.lang.Override + public boolean hasCostManagementConfig() { + return ((bitField0_ & 0x00200000) != 0); + } + /** + *
+   * Configuration for the fine-grained cost management feature.
+   * 
+ * + * .google.container.v1.CostManagementConfig cost_management_config = 45; + * @return The costManagementConfig. + */ + @java.lang.Override + public com.google.container.v1.CostManagementConfig getCostManagementConfig() { + return costManagementConfig_ == null ? com.google.container.v1.CostManagementConfig.getDefaultInstance() : costManagementConfig_; + } + /** + *
+   * Configuration for the fine-grained cost management feature.
+   * 
+ * + * .google.container.v1.CostManagementConfig cost_management_config = 45; + */ + @java.lang.Override + public com.google.container.v1.CostManagementConfigOrBuilder getCostManagementConfigOrBuilder() { + return costManagementConfig_ == null ? com.google.container.v1.CostManagementConfig.getDefaultInstance() : costManagementConfig_; + } + + public static final int NOTIFICATION_CONFIG_FIELD_NUMBER = 49; + private com.google.container.v1.NotificationConfig notificationConfig_; + /** + *
+   * Notification configuration of the cluster.
+   * 
+ * + * .google.container.v1.NotificationConfig notification_config = 49; + * @return Whether the notificationConfig field is set. + */ + @java.lang.Override + public boolean hasNotificationConfig() { + return ((bitField0_ & 0x00400000) != 0); + } + /** + *
+   * Notification configuration of the cluster.
+   * 
+ * + * .google.container.v1.NotificationConfig notification_config = 49; + * @return The notificationConfig. + */ + @java.lang.Override + public com.google.container.v1.NotificationConfig getNotificationConfig() { + return notificationConfig_ == null ? com.google.container.v1.NotificationConfig.getDefaultInstance() : notificationConfig_; + } + /** + *
+   * Notification configuration of the cluster.
+   * 
+ * + * .google.container.v1.NotificationConfig notification_config = 49; + */ + @java.lang.Override + public com.google.container.v1.NotificationConfigOrBuilder getNotificationConfigOrBuilder() { + return notificationConfig_ == null ? com.google.container.v1.NotificationConfig.getDefaultInstance() : notificationConfig_; + } + + public static final int CONFIDENTIAL_NODES_FIELD_NUMBER = 50; + private com.google.container.v1.ConfidentialNodes confidentialNodes_; + /** + *
+   * Configuration of Confidential Nodes.
+   * All the nodes in the cluster will be Confidential VM once enabled.
+   * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 50; + * @return Whether the confidentialNodes field is set. + */ + @java.lang.Override + public boolean hasConfidentialNodes() { + return ((bitField0_ & 0x00800000) != 0); + } + /** + *
+   * Configuration of Confidential Nodes.
+   * All the nodes in the cluster will be Confidential VM once enabled.
+   * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 50; + * @return The confidentialNodes. + */ + @java.lang.Override + public com.google.container.v1.ConfidentialNodes getConfidentialNodes() { + return confidentialNodes_ == null ? com.google.container.v1.ConfidentialNodes.getDefaultInstance() : confidentialNodes_; + } + /** + *
+   * Configuration of Confidential Nodes.
+   * All the nodes in the cluster will be Confidential VM once enabled.
+   * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 50; + */ + @java.lang.Override + public com.google.container.v1.ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder() { + return confidentialNodes_ == null ? com.google.container.v1.ConfidentialNodes.getDefaultInstance() : confidentialNodes_; + } + + public static final int IDENTITY_SERVICE_CONFIG_FIELD_NUMBER = 54; + private com.google.container.v1.IdentityServiceConfig identityServiceConfig_; + /** + *
+   * Configuration for Identity Service component.
+   * 
+ * + * .google.container.v1.IdentityServiceConfig identity_service_config = 54; + * @return Whether the identityServiceConfig field is set. + */ + @java.lang.Override + public boolean hasIdentityServiceConfig() { + return ((bitField0_ & 0x01000000) != 0); + } + /** + *
+   * Configuration for Identity Service component.
+   * 
+ * + * .google.container.v1.IdentityServiceConfig identity_service_config = 54; + * @return The identityServiceConfig. + */ + @java.lang.Override + public com.google.container.v1.IdentityServiceConfig getIdentityServiceConfig() { + return identityServiceConfig_ == null ? com.google.container.v1.IdentityServiceConfig.getDefaultInstance() : identityServiceConfig_; + } + /** + *
+   * Configuration for Identity Service component.
+   * 
+ * + * .google.container.v1.IdentityServiceConfig identity_service_config = 54; + */ + @java.lang.Override + public com.google.container.v1.IdentityServiceConfigOrBuilder getIdentityServiceConfigOrBuilder() { + return identityServiceConfig_ == null ? com.google.container.v1.IdentityServiceConfig.getDefaultInstance() : identityServiceConfig_; + } + + public static final int SELF_LINK_FIELD_NUMBER = 100; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1.Cluster.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=1863 + * @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]; + * @deprecated google.container.v1.Cluster.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=1863 + * @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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + private volatile java.lang.Object currentNodeVersion_ = ""; + /** + *
+   * [Output only] Deprecated, use
+   * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
+   * instead. The current version of the node software components. If they are
+   * currently at multiple versions because they're in the process of being
+   * upgraded, this reflects the minimum version of all nodes.
+   * 
+ * + * string current_node_version = 105 [deprecated = true]; + * @deprecated google.container.v1.Cluster.current_node_version is deprecated. + * See google/container/v1/cluster_service.proto;l=1896 + * @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
+   * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
+   * instead. The current version of the node software components. If they are
+   * currently at multiple versions because they're in the process of being
+   * upgraded, this reflects the minimum version of all nodes.
+   * 
+ * + * string current_node_version = 105 [deprecated = true]; + * @deprecated google.container.v1.Cluster.current_node_version is deprecated. + * See google/container/v1/cluster_service.proto;l=1896 + * @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; + @SuppressWarnings("serial") + 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_ = 0; + /** + *
+   * [Output only] The current status of this cluster.
+   * 
+ * + * .google.container.v1.Cluster.Status status = 107; + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + *
+   * [Output only] The current status of this cluster.
+   * 
+ * + * .google.container.v1.Cluster.Status status = 107; + * @return The status. + */ + @java.lang.Override public com.google.container.v1.Cluster.Status getStatus() { + com.google.container.v1.Cluster.Status result = com.google.container.v1.Cluster.Status.forNumber(status_); + return result == null ? com.google.container.v1.Cluster.Status.UNRECOGNIZED : result; + } + + public static final int STATUS_MESSAGE_FIELD_NUMBER = 108; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1.Cluster.status_message is deprecated. + * See google/container/v1/cluster_service.proto;l=1908 + * @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]; + * @deprecated google.container.v1.Cluster.status_message is deprecated. + * See google/container/v1/cluster_service.proto;l=1908 + * @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_ = 0; + /** + *
+   * [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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList instanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * Deprecated. Use node_pools.instance_group_urls.
+   * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. + * See google/container/v1/cluster_service.proto;l=1924 + * @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]; + * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. + * See google/container/v1/cluster_service.proto;l=1924 + * @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]; + * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. + * See google/container/v1/cluster_service.proto;l=1924 + * @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]; + * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. + * See google/container/v1/cluster_service.proto;l=1924 + * @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_ = 0; + /** + *
+   * [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]; + * @deprecated google.container.v1.Cluster.current_node_count is deprecated. + * See google/container/v1/cluster_service.proto;l=1928 + * @return The currentNodeCount. + */ + @java.lang.Override + @java.lang.Deprecated public int getCurrentNodeCount() { + return currentNodeCount_; + } + + public static final int EXPIRE_TIME_FIELD_NUMBER = 113; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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_ = false; + /** + *
+   * Enable the ability to use Cloud TPUs in this cluster.
+   * 
+ * + * bool enable_tpu = 115; + * @return The enableTpu. + */ + @java.lang.Override + public boolean getEnableTpu() { + return enableTpu_; + } + + public static final int TPU_IPV4_CIDR_BLOCK_FIELD_NUMBER = 116; + @SuppressWarnings("serial") + 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 CONDITIONS_FIELD_NUMBER = 118; + @SuppressWarnings("serial") + private java.util.List conditions_; + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + @java.lang.Override + public java.util.List getConditionsList() { + return conditions_; + } + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + @java.lang.Override + public java.util.List + getConditionsOrBuilderList() { + return conditions_; + } + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + @java.lang.Override + public int getConditionsCount() { + return conditions_.size(); + } + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + @java.lang.Override + public com.google.container.v1.StatusCondition getConditions(int index) { + return conditions_.get(index); + } + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + @java.lang.Override + public com.google.container.v1.StatusConditionOrBuilder getConditionsOrBuilder( + int index) { + return conditions_.get(index); + } + + public static final int AUTOPILOT_FIELD_NUMBER = 128; + private com.google.container.v1.Autopilot autopilot_; + /** + *
+   * Autopilot configuration for the cluster.
+   * 
+ * + * .google.container.v1.Autopilot autopilot = 128; + * @return Whether the autopilot field is set. + */ + @java.lang.Override + public boolean hasAutopilot() { + return ((bitField0_ & 0x02000000) != 0); + } + /** + *
+   * Autopilot configuration for the cluster.
+   * 
+ * + * .google.container.v1.Autopilot autopilot = 128; + * @return The autopilot. + */ + @java.lang.Override + public com.google.container.v1.Autopilot getAutopilot() { + return autopilot_ == null ? com.google.container.v1.Autopilot.getDefaultInstance() : autopilot_; + } + /** + *
+   * Autopilot configuration for the cluster.
+   * 
+ * + * .google.container.v1.Autopilot autopilot = 128; + */ + @java.lang.Override + public com.google.container.v1.AutopilotOrBuilder getAutopilotOrBuilder() { + return autopilot_ == null ? com.google.container.v1.Autopilot.getDefaultInstance() : autopilot_; + } + + public static final int ID_FIELD_NUMBER = 129; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + *
+   * Output only. Unique id for the cluster.
+   * 
+ * + * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + *
+   * Output only. Unique id for the cluster.
+   * 
+ * + * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_DEFAULTS_FIELD_NUMBER = 131; + private com.google.container.v1.NodePoolDefaults nodePoolDefaults_; + /** + *
+   * Default NodePool settings for the entire cluster. These settings are
+   * overridden if specified on the specific NodePool object.
+   * 
+ * + * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; + * @return Whether the nodePoolDefaults field is set. + */ + @java.lang.Override + public boolean hasNodePoolDefaults() { + return ((bitField0_ & 0x04000000) != 0); + } + /** + *
+   * Default NodePool settings for the entire cluster. These settings are
+   * overridden if specified on the specific NodePool object.
+   * 
+ * + * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; + * @return The nodePoolDefaults. + */ + @java.lang.Override + public com.google.container.v1.NodePoolDefaults getNodePoolDefaults() { + return nodePoolDefaults_ == null ? com.google.container.v1.NodePoolDefaults.getDefaultInstance() : nodePoolDefaults_; + } + /** + *
+   * Default NodePool settings for the entire cluster. These settings are
+   * overridden if specified on the specific NodePool object.
+   * 
+ * + * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; + */ + @java.lang.Override + public com.google.container.v1.NodePoolDefaultsOrBuilder getNodePoolDefaultsOrBuilder() { + return nodePoolDefaults_ == null ? com.google.container.v1.NodePoolDefaults.getDefaultInstance() : nodePoolDefaults_; + } + + public static final int LOGGING_CONFIG_FIELD_NUMBER = 132; + private com.google.container.v1.LoggingConfig loggingConfig_; + /** + *
+   * Logging configuration for the cluster.
+   * 
+ * + * .google.container.v1.LoggingConfig logging_config = 132; + * @return Whether the loggingConfig field is set. + */ + @java.lang.Override + public boolean hasLoggingConfig() { + return ((bitField0_ & 0x08000000) != 0); + } + /** + *
+   * Logging configuration for the cluster.
+   * 
+ * + * .google.container.v1.LoggingConfig logging_config = 132; + * @return The loggingConfig. + */ + @java.lang.Override + public com.google.container.v1.LoggingConfig getLoggingConfig() { + return loggingConfig_ == null ? com.google.container.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; + } + /** + *
+   * Logging configuration for the cluster.
+   * 
+ * + * .google.container.v1.LoggingConfig logging_config = 132; + */ + @java.lang.Override + public com.google.container.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { + return loggingConfig_ == null ? com.google.container.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; + } + + public static final int MONITORING_CONFIG_FIELD_NUMBER = 133; + private com.google.container.v1.MonitoringConfig monitoringConfig_; + /** + *
+   * Monitoring configuration for the cluster.
+   * 
+ * + * .google.container.v1.MonitoringConfig monitoring_config = 133; + * @return Whether the monitoringConfig field is set. + */ + @java.lang.Override + public boolean hasMonitoringConfig() { + return ((bitField0_ & 0x10000000) != 0); + } + /** + *
+   * Monitoring configuration for the cluster.
+   * 
+ * + * .google.container.v1.MonitoringConfig monitoring_config = 133; + * @return The monitoringConfig. + */ + @java.lang.Override + public com.google.container.v1.MonitoringConfig getMonitoringConfig() { + return monitoringConfig_ == null ? com.google.container.v1.MonitoringConfig.getDefaultInstance() : monitoringConfig_; + } + /** + *
+   * Monitoring configuration for the cluster.
+   * 
+ * + * .google.container.v1.MonitoringConfig monitoring_config = 133; + */ + @java.lang.Override + public com.google.container.v1.MonitoringConfigOrBuilder getMonitoringConfigOrBuilder() { + return monitoringConfig_ == null ? com.google.container.v1.MonitoringConfig.getDefaultInstance() : monitoringConfig_; + } + + public static final int NODE_POOL_AUTO_CONFIG_FIELD_NUMBER = 136; + private com.google.container.v1.NodePoolAutoConfig nodePoolAutoConfig_; + /** + *
+   * Node pool configs that apply to all auto-provisioned node pools
+   * in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; + * @return Whether the nodePoolAutoConfig field is set. + */ + @java.lang.Override + public boolean hasNodePoolAutoConfig() { + return ((bitField0_ & 0x20000000) != 0); + } + /** + *
+   * Node pool configs that apply to all auto-provisioned node pools
+   * in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; + * @return The nodePoolAutoConfig. + */ + @java.lang.Override + public com.google.container.v1.NodePoolAutoConfig getNodePoolAutoConfig() { + return nodePoolAutoConfig_ == null ? com.google.container.v1.NodePoolAutoConfig.getDefaultInstance() : nodePoolAutoConfig_; + } + /** + *
+   * Node pool configs that apply to all auto-provisioned node pools
+   * in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; + */ + @java.lang.Override + public com.google.container.v1.NodePoolAutoConfigOrBuilder getNodePoolAutoConfigOrBuilder() { + return nodePoolAutoConfig_ == null ? com.google.container.v1.NodePoolAutoConfig.getDefaultInstance() : nodePoolAutoConfig_; + } + + public static final int ETAG_FIELD_NUMBER = 139; + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + /** + *
+   * This checksum is computed by the server based on the value of cluster
+   * fields, and may be sent on update requests to ensure the client has an
+   * up-to-date value before proceeding.
+   * 
+ * + * string etag = 139; + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + /** + *
+   * This checksum is computed by the server based on the value of cluster
+   * fields, and may be sent on update requests to ensure the client has an
+   * up-to-date value before proceeding.
+   * 
+ * + * string etag = 139; + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FLEET_FIELD_NUMBER = 140; + private com.google.container.v1.Fleet fleet_; + /** + *
+   * Fleet information for the cluster.
+   * 
+ * + * .google.container.v1.Fleet fleet = 140; + * @return Whether the fleet field is set. + */ + @java.lang.Override + public boolean hasFleet() { + return ((bitField0_ & 0x40000000) != 0); + } + /** + *
+   * Fleet information for the cluster.
+   * 
+ * + * .google.container.v1.Fleet fleet = 140; + * @return The fleet. + */ + @java.lang.Override + public com.google.container.v1.Fleet getFleet() { + return fleet_ == null ? com.google.container.v1.Fleet.getDefaultInstance() : fleet_; + } + /** + *
+   * Fleet information for the cluster.
+   * 
+ * + * .google.container.v1.Fleet fleet = 140; + */ + @java.lang.Override + public com.google.container.v1.FleetOrBuilder getFleetOrBuilder() { + return fleet_ == null ? com.google.container.v1.Fleet.getDefaultInstance() : fleet_; + } + + public static final int SECURITY_POSTURE_CONFIG_FIELD_NUMBER = 145; + private com.google.container.v1.SecurityPostureConfig securityPostureConfig_; + /** + *
+   * Enable/Disable Security Posture API features for the cluster.
+   * 
+ * + * .google.container.v1.SecurityPostureConfig security_posture_config = 145; + * @return Whether the securityPostureConfig field is set. + */ + @java.lang.Override + public boolean hasSecurityPostureConfig() { + return ((bitField0_ & 0x80000000) != 0); + } + /** + *
+   * Enable/Disable Security Posture API features for the cluster.
+   * 
+ * + * .google.container.v1.SecurityPostureConfig security_posture_config = 145; + * @return The securityPostureConfig. + */ + @java.lang.Override + public com.google.container.v1.SecurityPostureConfig getSecurityPostureConfig() { + return securityPostureConfig_ == null ? com.google.container.v1.SecurityPostureConfig.getDefaultInstance() : securityPostureConfig_; + } + /** + *
+   * Enable/Disable Security Posture API features for the cluster.
+   * 
+ * + * .google.container.v1.SecurityPostureConfig security_posture_config = 145; + */ + @java.lang.Override + public com.google.container.v1.SecurityPostureConfigOrBuilder getSecurityPostureConfigOrBuilder() { + return securityPostureConfig_ == null ? com.google.container.v1.SecurityPostureConfig.getDefaultInstance() : securityPostureConfig_; + } + + public static final int ENABLE_K8S_BETA_APIS_FIELD_NUMBER = 143; + private com.google.container.v1.K8sBetaAPIConfig enableK8SBetaApis_; + /** + *
+   * Beta APIs Config
+   * 
+ * + * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; + * @return Whether the enableK8sBetaApis field is set. + */ + @java.lang.Override + public boolean hasEnableK8SBetaApis() { + return ((bitField1_ & 0x00000001) != 0); + } + /** + *
+   * Beta APIs Config
+   * 
+ * + * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; + * @return The enableK8sBetaApis. + */ + @java.lang.Override + public com.google.container.v1.K8sBetaAPIConfig getEnableK8SBetaApis() { + return enableK8SBetaApis_ == null ? com.google.container.v1.K8sBetaAPIConfig.getDefaultInstance() : enableK8SBetaApis_; + } + /** + *
+   * Beta APIs Config
+   * 
+ * + * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; + */ + @java.lang.Override + public com.google.container.v1.K8sBetaAPIConfigOrBuilder getEnableK8SBetaApisOrBuilder() { + return enableK8SBetaApis_ == null ? com.google.container.v1.K8sBetaAPIConfig.getDefaultInstance() : enableK8SBetaApis_; + } + + public static final int ENTERPRISE_CONFIG_FIELD_NUMBER = 149; + private com.google.container.v1.EnterpriseConfig enterpriseConfig_; + /** + *
+   * GKE Enterprise Configuration.
+   * 
+ * + * .google.container.v1.EnterpriseConfig enterprise_config = 149; + * @return Whether the enterpriseConfig field is set. + */ + @java.lang.Override + public boolean hasEnterpriseConfig() { + return ((bitField1_ & 0x00000002) != 0); + } + /** + *
+   * GKE Enterprise Configuration.
+   * 
+ * + * .google.container.v1.EnterpriseConfig enterprise_config = 149; + * @return The enterpriseConfig. + */ + @java.lang.Override + public com.google.container.v1.EnterpriseConfig getEnterpriseConfig() { + return enterpriseConfig_ == null ? com.google.container.v1.EnterpriseConfig.getDefaultInstance() : enterpriseConfig_; + } + /** + *
+   * GKE Enterprise Configuration.
+   * 
+ * + * .google.container.v1.EnterpriseConfig enterprise_config = 149; + */ + @java.lang.Override + public com.google.container.v1.EnterpriseConfigOrBuilder getEnterpriseConfigOrBuilder() { + return enterpriseConfig_ == null ? com.google.container.v1.EnterpriseConfig.getDefaultInstance() : enterpriseConfig_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + if (initialNodeCount_ != 0) { + output.writeInt32(3, initialNodeCount_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getNodeConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getMasterAuth()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loggingService_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, loggingService_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(monitoringService_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, monitoringService_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterIpv4Cidr_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, clusterIpv4Cidr_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(10, getAddonsConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, subnetwork_); + } + for (int i = 0; i < nodePools_.size(); i++) { + output.writeMessage(12, nodePools_.get(i)); + } + for (int i = 0; i < locations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, locations_.getRaw(i)); + } + if (enableKubernetesAlpha_ != false) { + output.writeBool(14, enableKubernetesAlpha_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetResourceLabels(), + ResourceLabelsDefaultEntryHolder.defaultEntry, + 15); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(labelFingerprint_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, labelFingerprint_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(18, getLegacyAbac()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(19, getNetworkPolicy()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(20, getIpAllocationPolicy()); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(22, getMasterAuthorizedNetworksConfig()); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(23, getMaintenancePolicy()); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(24, getBinaryAuthorization()); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeMessage(26, getAutoscaling()); + } + if (((bitField0_ & 0x00000400) != 0)) { + output.writeMessage(27, getNetworkConfig()); + } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeMessage(30, getDefaultMaxPodsConstraint()); + } + if (((bitField0_ & 0x00001000) != 0)) { + output.writeMessage(33, getResourceUsageExportConfig()); + } + if (((bitField0_ & 0x00002000) != 0)) { + output.writeMessage(34, getAuthenticatorGroupsConfig()); + } + if (((bitField0_ & 0x00004000) != 0)) { + output.writeMessage(37, getPrivateClusterConfig()); + } + if (((bitField0_ & 0x00008000) != 0)) { + output.writeMessage(38, getDatabaseEncryption()); + } + if (((bitField0_ & 0x00010000) != 0)) { + output.writeMessage(39, getVerticalPodAutoscaling()); + } + if (((bitField0_ & 0x00020000) != 0)) { + output.writeMessage(40, getShieldedNodes()); + } + if (((bitField0_ & 0x00040000) != 0)) { + output.writeMessage(41, getReleaseChannel()); + } + if (((bitField0_ & 0x00080000) != 0)) { + output.writeMessage(43, getWorkloadIdentityConfig()); + } + if (((bitField0_ & 0x00200000) != 0)) { + output.writeMessage(45, getCostManagementConfig()); + } + if (((bitField0_ & 0x00400000) != 0)) { + output.writeMessage(49, getNotificationConfig()); + } + if (((bitField0_ & 0x00800000) != 0)) { + output.writeMessage(50, getConfidentialNodes()); + } + if (((bitField0_ & 0x01000000) != 0)) { + output.writeMessage(54, getIdentityServiceConfig()); + } + if (((bitField0_ & 0x00100000) != 0)) { + output.writeMessage(67, getMeshCertificates()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 100, selfLink_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 101, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 102, endpoint_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(initialClusterVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 103, initialClusterVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentMasterVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 104, currentMasterVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentNodeVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 105, currentNodeVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(createTime_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 106, createTime_); + } + if (status_ != com.google.container.v1.Cluster.Status.STATUS_UNSPECIFIED.getNumber()) { + output.writeEnum(107, status_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 108, statusMessage_); + } + if (nodeIpv4CidrSize_ != 0) { + output.writeInt32(109, nodeIpv4CidrSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesIpv4Cidr_)) { + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expireTime_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 113, expireTime_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 114, location_); + } + if (enableTpu_ != false) { + output.writeBool(115, enableTpu_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tpuIpv4CidrBlock_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 116, tpuIpv4CidrBlock_); + } + for (int i = 0; i < conditions_.size(); i++) { + output.writeMessage(118, conditions_.get(i)); + } + if (((bitField0_ & 0x02000000) != 0)) { + output.writeMessage(128, getAutopilot()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 129, id_); + } + if (((bitField0_ & 0x04000000) != 0)) { + output.writeMessage(131, getNodePoolDefaults()); + } + if (((bitField0_ & 0x08000000) != 0)) { + output.writeMessage(132, getLoggingConfig()); + } + if (((bitField0_ & 0x10000000) != 0)) { + output.writeMessage(133, getMonitoringConfig()); + } + if (((bitField0_ & 0x20000000) != 0)) { + output.writeMessage(136, getNodePoolAutoConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 139, etag_); + } + if (((bitField0_ & 0x40000000) != 0)) { + output.writeMessage(140, getFleet()); + } + if (((bitField1_ & 0x00000001) != 0)) { + output.writeMessage(143, getEnableK8SBetaApis()); + } + if (((bitField0_ & 0x80000000) != 0)) { + output.writeMessage(145, getSecurityPostureConfig()); + } + if (((bitField1_ & 0x00000002) != 0)) { + output.writeMessage(149, getEnterpriseConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + if (initialNodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, initialNodeCount_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getNodeConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getMasterAuth()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loggingService_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, loggingService_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(monitoringService_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, monitoringService_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterIpv4Cidr_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, clusterIpv4Cidr_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getAddonsConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(labelFingerprint_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, labelFingerprint_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, getLegacyAbac()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, getNetworkPolicy()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(20, getIpAllocationPolicy()); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(22, getMasterAuthorizedNetworksConfig()); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(23, getMaintenancePolicy()); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(24, getBinaryAuthorization()); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(26, getAutoscaling()); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(27, getNetworkConfig()); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(30, getDefaultMaxPodsConstraint()); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(33, getResourceUsageExportConfig()); + } + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(34, getAuthenticatorGroupsConfig()); + } + if (((bitField0_ & 0x00004000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(37, getPrivateClusterConfig()); + } + if (((bitField0_ & 0x00008000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(38, getDatabaseEncryption()); + } + if (((bitField0_ & 0x00010000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(39, getVerticalPodAutoscaling()); + } + if (((bitField0_ & 0x00020000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(40, getShieldedNodes()); + } + if (((bitField0_ & 0x00040000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(41, getReleaseChannel()); + } + if (((bitField0_ & 0x00080000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(43, getWorkloadIdentityConfig()); + } + if (((bitField0_ & 0x00200000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(45, getCostManagementConfig()); + } + if (((bitField0_ & 0x00400000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(49, getNotificationConfig()); + } + if (((bitField0_ & 0x00800000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(50, getConfidentialNodes()); + } + if (((bitField0_ & 0x01000000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(54, getIdentityServiceConfig()); + } + if (((bitField0_ & 0x00100000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(67, getMeshCertificates()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, selfLink_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(101, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(102, endpoint_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(initialClusterVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(103, initialClusterVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentMasterVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(104, currentMasterVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentNodeVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(105, currentNodeVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(createTime_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(106, createTime_); + } + if (status_ != com.google.container.v1.Cluster.Status.STATUS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(107, status_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(108, statusMessage_); + } + if (nodeIpv4CidrSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(109, nodeIpv4CidrSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesIpv4Cidr_)) { + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expireTime_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(113, expireTime_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(114, location_); + } + if (enableTpu_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(115, enableTpu_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tpuIpv4CidrBlock_)) { + 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 (((bitField0_ & 0x02000000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(128, getAutopilot()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(129, id_); + } + if (((bitField0_ & 0x04000000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(131, getNodePoolDefaults()); + } + if (((bitField0_ & 0x08000000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(132, getLoggingConfig()); + } + if (((bitField0_ & 0x10000000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(133, getMonitoringConfig()); + } + if (((bitField0_ & 0x20000000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(136, getNodePoolAutoConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(139, etag_); + } + if (((bitField0_ & 0x40000000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(140, getFleet()); + } + if (((bitField1_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(143, getEnableK8SBetaApis()); + } + if (((bitField0_ & 0x80000000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(145, getSecurityPostureConfig()); + } + if (((bitField1_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(149, getEnterpriseConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.Cluster)) { + return super.equals(obj); + } + com.google.container.v1.Cluster other = (com.google.container.v1.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 (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 (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 (hasDatabaseEncryption() != other.hasDatabaseEncryption()) return false; + if (hasDatabaseEncryption()) { + if (!getDatabaseEncryption() + .equals(other.getDatabaseEncryption())) 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 (hasMeshCertificates() != other.hasMeshCertificates()) return false; + if (hasMeshCertificates()) { + if (!getMeshCertificates() + .equals(other.getMeshCertificates())) return false; + } + if (hasCostManagementConfig() != other.hasCostManagementConfig()) return false; + if (hasCostManagementConfig()) { + if (!getCostManagementConfig() + .equals(other.getCostManagementConfig())) 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 (hasIdentityServiceConfig() != other.hasIdentityServiceConfig()) return false; + if (hasIdentityServiceConfig()) { + if (!getIdentityServiceConfig() + .equals(other.getIdentityServiceConfig())) 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 (!getConditionsList() + .equals(other.getConditionsList())) return false; + if (hasAutopilot() != other.hasAutopilot()) return false; + if (hasAutopilot()) { + if (!getAutopilot() + .equals(other.getAutopilot())) return false; + } + if (!getId() + .equals(other.getId())) return false; + if (hasNodePoolDefaults() != other.hasNodePoolDefaults()) return false; + if (hasNodePoolDefaults()) { + if (!getNodePoolDefaults() + .equals(other.getNodePoolDefaults())) return false; + } + if (hasLoggingConfig() != other.hasLoggingConfig()) return false; + if (hasLoggingConfig()) { + if (!getLoggingConfig() + .equals(other.getLoggingConfig())) return false; + } + if (hasMonitoringConfig() != other.hasMonitoringConfig()) return false; + if (hasMonitoringConfig()) { + if (!getMonitoringConfig() + .equals(other.getMonitoringConfig())) return false; + } + if (hasNodePoolAutoConfig() != other.hasNodePoolAutoConfig()) return false; + if (hasNodePoolAutoConfig()) { + if (!getNodePoolAutoConfig() + .equals(other.getNodePoolAutoConfig())) return false; + } + if (!getEtag() + .equals(other.getEtag())) return false; + if (hasFleet() != other.hasFleet()) return false; + if (hasFleet()) { + if (!getFleet() + .equals(other.getFleet())) return false; + } + if (hasSecurityPostureConfig() != other.hasSecurityPostureConfig()) return false; + if (hasSecurityPostureConfig()) { + if (!getSecurityPostureConfig() + .equals(other.getSecurityPostureConfig())) return false; + } + if (hasEnableK8SBetaApis() != other.hasEnableK8SBetaApis()) return false; + if (hasEnableK8SBetaApis()) { + if (!getEnableK8SBetaApis() + .equals(other.getEnableK8SBetaApis())) return false; + } + if (hasEnterpriseConfig() != other.hasEnterpriseConfig()) return false; + if (hasEnterpriseConfig()) { + if (!getEnterpriseConfig() + .equals(other.getEnterpriseConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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 (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(); + } + 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 (hasDatabaseEncryption()) { + hash = (37 * hash) + DATABASE_ENCRYPTION_FIELD_NUMBER; + hash = (53 * hash) + getDatabaseEncryption().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 (hasMeshCertificates()) { + hash = (37 * hash) + MESH_CERTIFICATES_FIELD_NUMBER; + hash = (53 * hash) + getMeshCertificates().hashCode(); + } + if (hasCostManagementConfig()) { + hash = (37 * hash) + COST_MANAGEMENT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getCostManagementConfig().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(); + } + if (hasIdentityServiceConfig()) { + hash = (37 * hash) + IDENTITY_SERVICE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getIdentityServiceConfig().hashCode(); + } + hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; + hash = (53 * hash) + getSelfLink().hashCode(); + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (37 * hash) + ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getEndpoint().hashCode(); + hash = (37 * hash) + INITIAL_CLUSTER_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getInitialClusterVersion().hashCode(); + hash = (37 * hash) + CURRENT_MASTER_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getCurrentMasterVersion().hashCode(); + hash = (37 * hash) + CURRENT_NODE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getCurrentNodeVersion().hashCode(); + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getStatusMessage().hashCode(); + hash = (37 * hash) + NODE_IPV4_CIDR_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getNodeIpv4CidrSize(); + hash = (37 * hash) + SERVICES_IPV4_CIDR_FIELD_NUMBER; + hash = (53 * hash) + getServicesIpv4Cidr().hashCode(); + if (getInstanceGroupUrlsCount() > 0) { + hash = (37 * hash) + INSTANCE_GROUP_URLS_FIELD_NUMBER; + hash = (53 * hash) + getInstanceGroupUrlsList().hashCode(); + } + hash = (37 * hash) + CURRENT_NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getCurrentNodeCount(); + hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExpireTime().hashCode(); + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + hash = (37 * hash) + ENABLE_TPU_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableTpu()); + hash = (37 * hash) + TPU_IPV4_CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getTpuIpv4CidrBlock().hashCode(); + if (getConditionsCount() > 0) { + hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + getConditionsList().hashCode(); + } + if (hasAutopilot()) { + hash = (37 * hash) + AUTOPILOT_FIELD_NUMBER; + hash = (53 * hash) + getAutopilot().hashCode(); + } + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + if (hasNodePoolDefaults()) { + hash = (37 * hash) + NODE_POOL_DEFAULTS_FIELD_NUMBER; + hash = (53 * hash) + getNodePoolDefaults().hashCode(); + } + if (hasLoggingConfig()) { + hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getLoggingConfig().hashCode(); + } + if (hasMonitoringConfig()) { + hash = (37 * hash) + MONITORING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMonitoringConfig().hashCode(); + } + if (hasNodePoolAutoConfig()) { + hash = (37 * hash) + NODE_POOL_AUTO_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNodePoolAutoConfig().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + if (hasFleet()) { + hash = (37 * hash) + FLEET_FIELD_NUMBER; + hash = (53 * hash) + getFleet().hashCode(); + } + if (hasSecurityPostureConfig()) { + hash = (37 * hash) + SECURITY_POSTURE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSecurityPostureConfig().hashCode(); + } + if (hasEnableK8SBetaApis()) { + hash = (37 * hash) + ENABLE_K8S_BETA_APIS_FIELD_NUMBER; + hash = (53 * hash) + getEnableK8SBetaApis().hashCode(); + } + if (hasEnterpriseConfig()) { + hash = (37 * hash) + ENTERPRISE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getEnterpriseConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.Cluster parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.Cluster parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.Cluster parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.Cluster parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.Cluster parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.Cluster parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.Cluster parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.Cluster} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.Cluster) + com.google.container.v1.ClusterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_Cluster_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 15: + return internalGetResourceLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + 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.v1.ClusterServiceProto.internal_static_google_container_v1_Cluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.Cluster.class, com.google.container.v1.Cluster.Builder.class); + } + + // Construct using com.google.container.v1.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) { + getNodeConfigFieldBuilder(); + getMasterAuthFieldBuilder(); + getAddonsConfigFieldBuilder(); + getNodePoolsFieldBuilder(); + getLegacyAbacFieldBuilder(); + getNetworkPolicyFieldBuilder(); + getIpAllocationPolicyFieldBuilder(); + getMasterAuthorizedNetworksConfigFieldBuilder(); + getMaintenancePolicyFieldBuilder(); + getBinaryAuthorizationFieldBuilder(); + getAutoscalingFieldBuilder(); + getNetworkConfigFieldBuilder(); + getDefaultMaxPodsConstraintFieldBuilder(); + getResourceUsageExportConfigFieldBuilder(); + getAuthenticatorGroupsConfigFieldBuilder(); + getPrivateClusterConfigFieldBuilder(); + getDatabaseEncryptionFieldBuilder(); + getVerticalPodAutoscalingFieldBuilder(); + getShieldedNodesFieldBuilder(); + getReleaseChannelFieldBuilder(); + getWorkloadIdentityConfigFieldBuilder(); + getMeshCertificatesFieldBuilder(); + getCostManagementConfigFieldBuilder(); + getNotificationConfigFieldBuilder(); + getConfidentialNodesFieldBuilder(); + getIdentityServiceConfigFieldBuilder(); + getConditionsFieldBuilder(); + getAutopilotFieldBuilder(); + getNodePoolDefaultsFieldBuilder(); + getLoggingConfigFieldBuilder(); + getMonitoringConfigFieldBuilder(); + getNodePoolAutoConfigFieldBuilder(); + getFleetFieldBuilder(); + getSecurityPostureConfigFieldBuilder(); + getEnableK8SBetaApisFieldBuilder(); + getEnterpriseConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bitField1_ = 0; + bitField2_ = 0; + name_ = ""; + description_ = ""; + initialNodeCount_ = 0; + nodeConfig_ = null; + if (nodeConfigBuilder_ != null) { + nodeConfigBuilder_.dispose(); + nodeConfigBuilder_ = null; + } + masterAuth_ = null; + if (masterAuthBuilder_ != null) { + masterAuthBuilder_.dispose(); + masterAuthBuilder_ = null; + } + loggingService_ = ""; + monitoringService_ = ""; + network_ = ""; + clusterIpv4Cidr_ = ""; + addonsConfig_ = null; + if (addonsConfigBuilder_ != null) { + addonsConfigBuilder_.dispose(); + addonsConfigBuilder_ = null; + } + subnetwork_ = ""; + if (nodePoolsBuilder_ == null) { + nodePools_ = java.util.Collections.emptyList(); + } else { + nodePools_ = null; + nodePoolsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000800); + locations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + enableKubernetesAlpha_ = false; + internalGetMutableResourceLabels().clear(); + labelFingerprint_ = ""; + legacyAbac_ = null; + if (legacyAbacBuilder_ != null) { + legacyAbacBuilder_.dispose(); + legacyAbacBuilder_ = null; + } + networkPolicy_ = null; + if (networkPolicyBuilder_ != null) { + networkPolicyBuilder_.dispose(); + networkPolicyBuilder_ = null; + } + ipAllocationPolicy_ = null; + if (ipAllocationPolicyBuilder_ != null) { + ipAllocationPolicyBuilder_.dispose(); + ipAllocationPolicyBuilder_ = null; + } + masterAuthorizedNetworksConfig_ = null; + if (masterAuthorizedNetworksConfigBuilder_ != null) { + masterAuthorizedNetworksConfigBuilder_.dispose(); + masterAuthorizedNetworksConfigBuilder_ = null; + } + maintenancePolicy_ = null; + if (maintenancePolicyBuilder_ != null) { + maintenancePolicyBuilder_.dispose(); + maintenancePolicyBuilder_ = null; + } + binaryAuthorization_ = null; + if (binaryAuthorizationBuilder_ != null) { + binaryAuthorizationBuilder_.dispose(); + binaryAuthorizationBuilder_ = null; + } + autoscaling_ = null; + if (autoscalingBuilder_ != null) { + autoscalingBuilder_.dispose(); + autoscalingBuilder_ = null; + } + networkConfig_ = null; + if (networkConfigBuilder_ != null) { + networkConfigBuilder_.dispose(); + networkConfigBuilder_ = null; + } + defaultMaxPodsConstraint_ = null; + if (defaultMaxPodsConstraintBuilder_ != null) { + defaultMaxPodsConstraintBuilder_.dispose(); + defaultMaxPodsConstraintBuilder_ = null; + } + resourceUsageExportConfig_ = null; + if (resourceUsageExportConfigBuilder_ != null) { + resourceUsageExportConfigBuilder_.dispose(); + resourceUsageExportConfigBuilder_ = null; + } + authenticatorGroupsConfig_ = null; + if (authenticatorGroupsConfigBuilder_ != null) { + authenticatorGroupsConfigBuilder_.dispose(); + authenticatorGroupsConfigBuilder_ = null; + } + privateClusterConfig_ = null; + if (privateClusterConfigBuilder_ != null) { + privateClusterConfigBuilder_.dispose(); + privateClusterConfigBuilder_ = null; + } + databaseEncryption_ = null; + if (databaseEncryptionBuilder_ != null) { + databaseEncryptionBuilder_.dispose(); + databaseEncryptionBuilder_ = null; + } + verticalPodAutoscaling_ = null; + if (verticalPodAutoscalingBuilder_ != null) { + verticalPodAutoscalingBuilder_.dispose(); + verticalPodAutoscalingBuilder_ = null; + } + shieldedNodes_ = null; + if (shieldedNodesBuilder_ != null) { + shieldedNodesBuilder_.dispose(); + shieldedNodesBuilder_ = null; + } + releaseChannel_ = null; + if (releaseChannelBuilder_ != null) { + releaseChannelBuilder_.dispose(); + releaseChannelBuilder_ = null; + } + workloadIdentityConfig_ = null; + if (workloadIdentityConfigBuilder_ != null) { + workloadIdentityConfigBuilder_.dispose(); + workloadIdentityConfigBuilder_ = null; + } + meshCertificates_ = null; + if (meshCertificatesBuilder_ != null) { + meshCertificatesBuilder_.dispose(); + meshCertificatesBuilder_ = null; + } + costManagementConfig_ = null; + if (costManagementConfigBuilder_ != null) { + costManagementConfigBuilder_.dispose(); + costManagementConfigBuilder_ = null; + } + notificationConfig_ = null; + if (notificationConfigBuilder_ != null) { + notificationConfigBuilder_.dispose(); + notificationConfigBuilder_ = null; + } + confidentialNodes_ = null; + if (confidentialNodesBuilder_ != null) { + confidentialNodesBuilder_.dispose(); + confidentialNodesBuilder_ = null; + } + identityServiceConfig_ = null; + if (identityServiceConfigBuilder_ != null) { + identityServiceConfigBuilder_.dispose(); + identityServiceConfigBuilder_ = null; + } + selfLink_ = ""; + zone_ = ""; + endpoint_ = ""; + initialClusterVersion_ = ""; + currentMasterVersion_ = ""; + currentNodeVersion_ = ""; + createTime_ = ""; + status_ = 0; + statusMessage_ = ""; + nodeIpv4CidrSize_ = 0; + servicesIpv4Cidr_ = ""; + instanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + currentNodeCount_ = 0; + expireTime_ = ""; + location_ = ""; + enableTpu_ = false; + tpuIpv4CidrBlock_ = ""; + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + } else { + conditions_ = null; + conditionsBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00800000); + autopilot_ = null; + if (autopilotBuilder_ != null) { + autopilotBuilder_.dispose(); + autopilotBuilder_ = null; + } + id_ = ""; + nodePoolDefaults_ = null; + if (nodePoolDefaultsBuilder_ != null) { + nodePoolDefaultsBuilder_.dispose(); + nodePoolDefaultsBuilder_ = null; + } + loggingConfig_ = null; + if (loggingConfigBuilder_ != null) { + loggingConfigBuilder_.dispose(); + loggingConfigBuilder_ = null; + } + monitoringConfig_ = null; + if (monitoringConfigBuilder_ != null) { + monitoringConfigBuilder_.dispose(); + monitoringConfigBuilder_ = null; + } + nodePoolAutoConfig_ = null; + if (nodePoolAutoConfigBuilder_ != null) { + nodePoolAutoConfigBuilder_.dispose(); + nodePoolAutoConfigBuilder_ = null; + } + etag_ = ""; + fleet_ = null; + if (fleetBuilder_ != null) { + fleetBuilder_.dispose(); + fleetBuilder_ = null; + } + securityPostureConfig_ = null; + if (securityPostureConfigBuilder_ != null) { + securityPostureConfigBuilder_.dispose(); + securityPostureConfigBuilder_ = null; + } + enableK8SBetaApis_ = null; + if (enableK8SBetaApisBuilder_ != null) { + enableK8SBetaApisBuilder_.dispose(); + enableK8SBetaApisBuilder_ = null; + } + enterpriseConfig_ = null; + if (enterpriseConfigBuilder_ != null) { + enterpriseConfigBuilder_.dispose(); + enterpriseConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_Cluster_descriptor; + } + + @java.lang.Override + public com.google.container.v1.Cluster getDefaultInstanceForType() { + return com.google.container.v1.Cluster.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.Cluster build() { + com.google.container.v1.Cluster result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.Cluster buildPartial() { + com.google.container.v1.Cluster result = new com.google.container.v1.Cluster(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + if (bitField1_ != 0) { buildPartial1(result); } + if (bitField2_ != 0) { buildPartial2(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1.Cluster result) { + if (nodePoolsBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0)) { + nodePools_ = java.util.Collections.unmodifiableList(nodePools_); + bitField0_ = (bitField0_ & ~0x00000800); + } + result.nodePools_ = nodePools_; + } else { + result.nodePools_ = nodePoolsBuilder_.build(); + } + if (conditionsBuilder_ == null) { + if (((bitField1_ & 0x00800000) != 0)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + bitField1_ = (bitField1_ & ~0x00800000); + } + result.conditions_ = conditions_; + } else { + result.conditions_ = conditionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1.Cluster result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.initialNodeCount_ = initialNodeCount_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.nodeConfig_ = nodeConfigBuilder_ == null + ? nodeConfig_ + : nodeConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.masterAuth_ = masterAuthBuilder_ == null + ? masterAuth_ + : masterAuthBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.loggingService_ = loggingService_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.monitoringService_ = monitoringService_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.network_ = network_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.clusterIpv4Cidr_ = clusterIpv4Cidr_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.addonsConfig_ = addonsConfigBuilder_ == null + ? addonsConfig_ + : addonsConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.subnetwork_ = subnetwork_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + locations_.makeImmutable(); + result.locations_ = locations_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.enableKubernetesAlpha_ = enableKubernetesAlpha_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.resourceLabels_ = internalGetResourceLabels(); + result.resourceLabels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.labelFingerprint_ = labelFingerprint_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.legacyAbac_ = legacyAbacBuilder_ == null + ? legacyAbac_ + : legacyAbacBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.networkPolicy_ = networkPolicyBuilder_ == null + ? networkPolicy_ + : networkPolicyBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.ipAllocationPolicy_ = ipAllocationPolicyBuilder_ == null + ? ipAllocationPolicy_ + : ipAllocationPolicyBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.masterAuthorizedNetworksConfig_ = masterAuthorizedNetworksConfigBuilder_ == null + ? masterAuthorizedNetworksConfig_ + : masterAuthorizedNetworksConfigBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.maintenancePolicy_ = maintenancePolicyBuilder_ == null + ? maintenancePolicy_ + : maintenancePolicyBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.binaryAuthorization_ = binaryAuthorizationBuilder_ == null + ? binaryAuthorization_ + : binaryAuthorizationBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.autoscaling_ = autoscalingBuilder_ == null + ? autoscaling_ + : autoscalingBuilder_.build(); + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.networkConfig_ = networkConfigBuilder_ == null + ? networkConfig_ + : networkConfigBuilder_.build(); + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x01000000) != 0)) { + result.defaultMaxPodsConstraint_ = defaultMaxPodsConstraintBuilder_ == null + ? defaultMaxPodsConstraint_ + : defaultMaxPodsConstraintBuilder_.build(); + to_bitField0_ |= 0x00000800; + } + if (((from_bitField0_ & 0x02000000) != 0)) { + result.resourceUsageExportConfig_ = resourceUsageExportConfigBuilder_ == null + ? resourceUsageExportConfig_ + : resourceUsageExportConfigBuilder_.build(); + to_bitField0_ |= 0x00001000; + } + if (((from_bitField0_ & 0x04000000) != 0)) { + result.authenticatorGroupsConfig_ = authenticatorGroupsConfigBuilder_ == null + ? authenticatorGroupsConfig_ + : authenticatorGroupsConfigBuilder_.build(); + to_bitField0_ |= 0x00002000; + } + if (((from_bitField0_ & 0x08000000) != 0)) { + result.privateClusterConfig_ = privateClusterConfigBuilder_ == null + ? privateClusterConfig_ + : privateClusterConfigBuilder_.build(); + to_bitField0_ |= 0x00004000; + } + if (((from_bitField0_ & 0x10000000) != 0)) { + result.databaseEncryption_ = databaseEncryptionBuilder_ == null + ? databaseEncryption_ + : databaseEncryptionBuilder_.build(); + to_bitField0_ |= 0x00008000; + } + if (((from_bitField0_ & 0x20000000) != 0)) { + result.verticalPodAutoscaling_ = verticalPodAutoscalingBuilder_ == null + ? verticalPodAutoscaling_ + : verticalPodAutoscalingBuilder_.build(); + to_bitField0_ |= 0x00010000; + } + if (((from_bitField0_ & 0x40000000) != 0)) { + result.shieldedNodes_ = shieldedNodesBuilder_ == null + ? shieldedNodes_ + : shieldedNodesBuilder_.build(); + to_bitField0_ |= 0x00020000; + } + if (((from_bitField0_ & 0x80000000) != 0)) { + result.releaseChannel_ = releaseChannelBuilder_ == null + ? releaseChannel_ + : releaseChannelBuilder_.build(); + to_bitField0_ |= 0x00040000; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartial1(com.google.container.v1.Cluster result) { + int from_bitField1_ = bitField1_; + int to_bitField0_ = 0; + if (((from_bitField1_ & 0x00000001) != 0)) { + result.workloadIdentityConfig_ = workloadIdentityConfigBuilder_ == null + ? workloadIdentityConfig_ + : workloadIdentityConfigBuilder_.build(); + to_bitField0_ |= 0x00080000; + } + if (((from_bitField1_ & 0x00000002) != 0)) { + result.meshCertificates_ = meshCertificatesBuilder_ == null + ? meshCertificates_ + : meshCertificatesBuilder_.build(); + to_bitField0_ |= 0x00100000; + } + if (((from_bitField1_ & 0x00000004) != 0)) { + result.costManagementConfig_ = costManagementConfigBuilder_ == null + ? costManagementConfig_ + : costManagementConfigBuilder_.build(); + to_bitField0_ |= 0x00200000; + } + if (((from_bitField1_ & 0x00000008) != 0)) { + result.notificationConfig_ = notificationConfigBuilder_ == null + ? notificationConfig_ + : notificationConfigBuilder_.build(); + to_bitField0_ |= 0x00400000; + } + if (((from_bitField1_ & 0x00000010) != 0)) { + result.confidentialNodes_ = confidentialNodesBuilder_ == null + ? confidentialNodes_ + : confidentialNodesBuilder_.build(); + to_bitField0_ |= 0x00800000; + } + if (((from_bitField1_ & 0x00000020) != 0)) { + result.identityServiceConfig_ = identityServiceConfigBuilder_ == null + ? identityServiceConfig_ + : identityServiceConfigBuilder_.build(); + to_bitField0_ |= 0x01000000; + } + if (((from_bitField1_ & 0x00000040) != 0)) { + result.selfLink_ = selfLink_; + } + if (((from_bitField1_ & 0x00000080) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField1_ & 0x00000100) != 0)) { + result.endpoint_ = endpoint_; + } + if (((from_bitField1_ & 0x00000200) != 0)) { + result.initialClusterVersion_ = initialClusterVersion_; + } + if (((from_bitField1_ & 0x00000400) != 0)) { + result.currentMasterVersion_ = currentMasterVersion_; + } + if (((from_bitField1_ & 0x00000800) != 0)) { + result.currentNodeVersion_ = currentNodeVersion_; + } + if (((from_bitField1_ & 0x00001000) != 0)) { + result.createTime_ = createTime_; + } + if (((from_bitField1_ & 0x00002000) != 0)) { + result.status_ = status_; + } + if (((from_bitField1_ & 0x00004000) != 0)) { + result.statusMessage_ = statusMessage_; + } + if (((from_bitField1_ & 0x00008000) != 0)) { + result.nodeIpv4CidrSize_ = nodeIpv4CidrSize_; + } + if (((from_bitField1_ & 0x00010000) != 0)) { + result.servicesIpv4Cidr_ = servicesIpv4Cidr_; + } + if (((from_bitField1_ & 0x00020000) != 0)) { + instanceGroupUrls_.makeImmutable(); + result.instanceGroupUrls_ = instanceGroupUrls_; + } + if (((from_bitField1_ & 0x00040000) != 0)) { + result.currentNodeCount_ = currentNodeCount_; + } + if (((from_bitField1_ & 0x00080000) != 0)) { + result.expireTime_ = expireTime_; + } + if (((from_bitField1_ & 0x00100000) != 0)) { + result.location_ = location_; + } + if (((from_bitField1_ & 0x00200000) != 0)) { + result.enableTpu_ = enableTpu_; + } + if (((from_bitField1_ & 0x00400000) != 0)) { + result.tpuIpv4CidrBlock_ = tpuIpv4CidrBlock_; + } + if (((from_bitField1_ & 0x01000000) != 0)) { + result.autopilot_ = autopilotBuilder_ == null + ? autopilot_ + : autopilotBuilder_.build(); + to_bitField0_ |= 0x02000000; + } + if (((from_bitField1_ & 0x02000000) != 0)) { + result.id_ = id_; + } + if (((from_bitField1_ & 0x04000000) != 0)) { + result.nodePoolDefaults_ = nodePoolDefaultsBuilder_ == null + ? nodePoolDefaults_ + : nodePoolDefaultsBuilder_.build(); + to_bitField0_ |= 0x04000000; + } + if (((from_bitField1_ & 0x08000000) != 0)) { + result.loggingConfig_ = loggingConfigBuilder_ == null + ? loggingConfig_ + : loggingConfigBuilder_.build(); + to_bitField0_ |= 0x08000000; + } + if (((from_bitField1_ & 0x10000000) != 0)) { + result.monitoringConfig_ = monitoringConfigBuilder_ == null + ? monitoringConfig_ + : monitoringConfigBuilder_.build(); + to_bitField0_ |= 0x10000000; + } + if (((from_bitField1_ & 0x20000000) != 0)) { + result.nodePoolAutoConfig_ = nodePoolAutoConfigBuilder_ == null + ? nodePoolAutoConfig_ + : nodePoolAutoConfigBuilder_.build(); + to_bitField0_ |= 0x20000000; + } + if (((from_bitField1_ & 0x40000000) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField1_ & 0x80000000) != 0)) { + result.fleet_ = fleetBuilder_ == null + ? fleet_ + : fleetBuilder_.build(); + to_bitField0_ |= 0x40000000; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartial2(com.google.container.v1.Cluster result) { + int from_bitField2_ = bitField2_; + int to_bitField0_ = 0; + if (((from_bitField2_ & 0x00000001) != 0)) { + result.securityPostureConfig_ = securityPostureConfigBuilder_ == null + ? securityPostureConfig_ + : securityPostureConfigBuilder_.build(); + to_bitField0_ |= 0x80000000; + } + int to_bitField1_ = 0; + if (((from_bitField2_ & 0x00000002) != 0)) { + result.enableK8SBetaApis_ = enableK8SBetaApisBuilder_ == null + ? enableK8SBetaApis_ + : enableK8SBetaApisBuilder_.build(); + to_bitField1_ |= 0x00000001; + } + if (((from_bitField2_ & 0x00000004) != 0)) { + result.enterpriseConfig_ = enterpriseConfigBuilder_ == null + ? enterpriseConfig_ + : enterpriseConfigBuilder_.build(); + to_bitField1_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + result.bitField1_ |= to_bitField1_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.Cluster) { + return mergeFrom((com.google.container.v1.Cluster)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.Cluster other) { + if (other == com.google.container.v1.Cluster.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + 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_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getMonitoringService().isEmpty()) { + monitoringService_ = other.monitoringService_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getClusterIpv4Cidr().isEmpty()) { + clusterIpv4Cidr_ = other.clusterIpv4Cidr_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.hasAddonsConfig()) { + mergeAddonsConfig(other.getAddonsConfig()); + } + if (!other.getSubnetwork().isEmpty()) { + subnetwork_ = other.subnetwork_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (nodePoolsBuilder_ == null) { + if (!other.nodePools_.isEmpty()) { + if (nodePools_.isEmpty()) { + nodePools_ = other.nodePools_; + bitField0_ = (bitField0_ & ~0x00000800); + } else { + ensureNodePoolsIsMutable(); + nodePools_.addAll(other.nodePools_); + } + onChanged(); + } + } else { + if (!other.nodePools_.isEmpty()) { + if (nodePoolsBuilder_.isEmpty()) { + nodePoolsBuilder_.dispose(); + nodePoolsBuilder_ = null; + nodePools_ = other.nodePools_; + bitField0_ = (bitField0_ & ~0x00000800); + nodePoolsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNodePoolsFieldBuilder() : null; + } else { + nodePoolsBuilder_.addAllMessages(other.nodePools_); + } + } + } + if (!other.locations_.isEmpty()) { + if (locations_.isEmpty()) { + locations_ = other.locations_; + bitField0_ |= 0x00001000; + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } + if (other.getEnableKubernetesAlpha() != false) { + setEnableKubernetesAlpha(other.getEnableKubernetesAlpha()); + } + internalGetMutableResourceLabels().mergeFrom( + other.internalGetResourceLabels()); + bitField0_ |= 0x00004000; + if (!other.getLabelFingerprint().isEmpty()) { + labelFingerprint_ = other.labelFingerprint_; + bitField0_ |= 0x00008000; + 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.hasAutoscaling()) { + mergeAutoscaling(other.getAutoscaling()); + } + if (other.hasNetworkConfig()) { + mergeNetworkConfig(other.getNetworkConfig()); + } + 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.hasDatabaseEncryption()) { + mergeDatabaseEncryption(other.getDatabaseEncryption()); + } + 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.hasMeshCertificates()) { + mergeMeshCertificates(other.getMeshCertificates()); + } + if (other.hasCostManagementConfig()) { + mergeCostManagementConfig(other.getCostManagementConfig()); + } + if (other.hasNotificationConfig()) { + mergeNotificationConfig(other.getNotificationConfig()); + } + if (other.hasConfidentialNodes()) { + mergeConfidentialNodes(other.getConfidentialNodes()); + } + if (other.hasIdentityServiceConfig()) { + mergeIdentityServiceConfig(other.getIdentityServiceConfig()); + } + if (!other.getSelfLink().isEmpty()) { + selfLink_ = other.selfLink_; + bitField1_ |= 0x00000040; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField1_ |= 0x00000080; + onChanged(); + } + if (!other.getEndpoint().isEmpty()) { + endpoint_ = other.endpoint_; + bitField1_ |= 0x00000100; + onChanged(); + } + if (!other.getInitialClusterVersion().isEmpty()) { + initialClusterVersion_ = other.initialClusterVersion_; + bitField1_ |= 0x00000200; + onChanged(); + } + if (!other.getCurrentMasterVersion().isEmpty()) { + currentMasterVersion_ = other.currentMasterVersion_; + bitField1_ |= 0x00000400; + onChanged(); + } + if (!other.getCurrentNodeVersion().isEmpty()) { + currentNodeVersion_ = other.currentNodeVersion_; + bitField1_ |= 0x00000800; + onChanged(); + } + if (!other.getCreateTime().isEmpty()) { + createTime_ = other.createTime_; + bitField1_ |= 0x00001000; + onChanged(); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + bitField1_ |= 0x00004000; + onChanged(); + } + if (other.getNodeIpv4CidrSize() != 0) { + setNodeIpv4CidrSize(other.getNodeIpv4CidrSize()); + } + if (!other.getServicesIpv4Cidr().isEmpty()) { + servicesIpv4Cidr_ = other.servicesIpv4Cidr_; + bitField1_ |= 0x00010000; + onChanged(); + } + if (!other.instanceGroupUrls_.isEmpty()) { + if (instanceGroupUrls_.isEmpty()) { + instanceGroupUrls_ = other.instanceGroupUrls_; + bitField1_ |= 0x00020000; + } else { + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.addAll(other.instanceGroupUrls_); + } + onChanged(); + } + if (other.getCurrentNodeCount() != 0) { + setCurrentNodeCount(other.getCurrentNodeCount()); + } + if (!other.getExpireTime().isEmpty()) { + expireTime_ = other.expireTime_; + bitField1_ |= 0x00080000; + onChanged(); + } + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + bitField1_ |= 0x00100000; + onChanged(); + } + if (other.getEnableTpu() != false) { + setEnableTpu(other.getEnableTpu()); + } + if (!other.getTpuIpv4CidrBlock().isEmpty()) { + tpuIpv4CidrBlock_ = other.tpuIpv4CidrBlock_; + bitField1_ |= 0x00400000; + onChanged(); + } + if (conditionsBuilder_ == null) { + if (!other.conditions_.isEmpty()) { + if (conditions_.isEmpty()) { + conditions_ = other.conditions_; + bitField1_ = (bitField1_ & ~0x00800000); + } else { + ensureConditionsIsMutable(); + conditions_.addAll(other.conditions_); + } + onChanged(); + } + } else { + if (!other.conditions_.isEmpty()) { + if (conditionsBuilder_.isEmpty()) { + conditionsBuilder_.dispose(); + conditionsBuilder_ = null; + conditions_ = other.conditions_; + bitField1_ = (bitField1_ & ~0x00800000); + conditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConditionsFieldBuilder() : null; + } else { + conditionsBuilder_.addAllMessages(other.conditions_); + } + } + } + if (other.hasAutopilot()) { + mergeAutopilot(other.getAutopilot()); + } + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField1_ |= 0x02000000; + onChanged(); + } + if (other.hasNodePoolDefaults()) { + mergeNodePoolDefaults(other.getNodePoolDefaults()); + } + if (other.hasLoggingConfig()) { + mergeLoggingConfig(other.getLoggingConfig()); + } + if (other.hasMonitoringConfig()) { + mergeMonitoringConfig(other.getMonitoringConfig()); + } + if (other.hasNodePoolAutoConfig()) { + mergeNodePoolAutoConfig(other.getNodePoolAutoConfig()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField1_ |= 0x40000000; + onChanged(); + } + if (other.hasFleet()) { + mergeFleet(other.getFleet()); + } + if (other.hasSecurityPostureConfig()) { + mergeSecurityPostureConfig(other.getSecurityPostureConfig()); + } + if (other.hasEnableK8SBetaApis()) { + mergeEnableK8SBetaApis(other.getEnableK8SBetaApis()); + } + if (other.hasEnterpriseConfig()) { + mergeEnterpriseConfig(other.getEnterpriseConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + initialNodeCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + input.readMessage( + getNodeConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getMasterAuthFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + loggingService_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + monitoringService_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + network_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: { + clusterIpv4Cidr_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: { + input.readMessage( + getAddonsConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: { + subnetwork_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: { + com.google.container.v1.NodePool m = + input.readMessage( + com.google.container.v1.NodePool.parser(), + extensionRegistry); + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + nodePools_.add(m); + } else { + nodePoolsBuilder_.addMessage(m); + } + break; + } // case 98 + case 106: { + java.lang.String s = input.readStringRequireUtf8(); + ensureLocationsIsMutable(); + locations_.add(s); + break; + } // case 106 + case 112: { + enableKubernetesAlpha_ = input.readBool(); + bitField0_ |= 0x00002000; + break; + } // case 112 + case 122: { + com.google.protobuf.MapEntry + resourceLabels__ = input.readMessage( + ResourceLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableResourceLabels().getMutableMap().put( + resourceLabels__.getKey(), resourceLabels__.getValue()); + bitField0_ |= 0x00004000; + break; + } // case 122 + case 130: { + labelFingerprint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00008000; + break; + } // case 130 + case 146: { + input.readMessage( + getLegacyAbacFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 146 + case 154: { + input.readMessage( + getNetworkPolicyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 154 + case 162: { + input.readMessage( + getIpAllocationPolicyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00040000; + break; + } // case 162 + case 178: { + input.readMessage( + getMasterAuthorizedNetworksConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00080000; + break; + } // case 178 + case 186: { + input.readMessage( + getMaintenancePolicyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00100000; + break; + } // case 186 + case 194: { + input.readMessage( + getBinaryAuthorizationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00200000; + break; + } // case 194 + case 210: { + input.readMessage( + getAutoscalingFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00400000; + break; + } // case 210 + case 218: { + input.readMessage( + getNetworkConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00800000; + break; + } // case 218 + case 242: { + input.readMessage( + getDefaultMaxPodsConstraintFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x01000000; + break; + } // case 242 + case 266: { + input.readMessage( + getResourceUsageExportConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x02000000; + break; + } // case 266 + case 274: { + input.readMessage( + getAuthenticatorGroupsConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x04000000; + break; + } // case 274 + case 298: { + input.readMessage( + getPrivateClusterConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x08000000; + break; + } // case 298 + case 306: { + input.readMessage( + getDatabaseEncryptionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x10000000; + break; + } // case 306 + case 314: { + input.readMessage( + getVerticalPodAutoscalingFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x20000000; + break; + } // case 314 + case 322: { + input.readMessage( + getShieldedNodesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x40000000; + break; + } // case 322 + case 330: { + input.readMessage( + getReleaseChannelFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x80000000; + break; + } // case 330 + case 346: { + input.readMessage( + getWorkloadIdentityConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000001; + break; + } // case 346 + case 362: { + input.readMessage( + getCostManagementConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000004; + break; + } // case 362 + case 394: { + input.readMessage( + getNotificationConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000008; + break; + } // case 394 + case 402: { + input.readMessage( + getConfidentialNodesFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000010; + break; + } // case 402 + case 434: { + input.readMessage( + getIdentityServiceConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000020; + break; + } // case 434 + case 538: { + input.readMessage( + getMeshCertificatesFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000002; + break; + } // case 538 + case 802: { + selfLink_ = input.readStringRequireUtf8(); + bitField1_ |= 0x00000040; + break; + } // case 802 + case 810: { + zone_ = input.readStringRequireUtf8(); + bitField1_ |= 0x00000080; + break; + } // case 810 + case 818: { + endpoint_ = input.readStringRequireUtf8(); + bitField1_ |= 0x00000100; + break; + } // case 818 + case 826: { + initialClusterVersion_ = input.readStringRequireUtf8(); + bitField1_ |= 0x00000200; + break; + } // case 826 + case 834: { + currentMasterVersion_ = input.readStringRequireUtf8(); + bitField1_ |= 0x00000400; + break; + } // case 834 + case 842: { + currentNodeVersion_ = input.readStringRequireUtf8(); + bitField1_ |= 0x00000800; + break; + } // case 842 + case 850: { + createTime_ = input.readStringRequireUtf8(); + bitField1_ |= 0x00001000; + break; + } // case 850 + case 856: { + status_ = input.readEnum(); + bitField1_ |= 0x00002000; + break; + } // case 856 + case 866: { + statusMessage_ = input.readStringRequireUtf8(); + bitField1_ |= 0x00004000; + break; + } // case 866 + case 872: { + nodeIpv4CidrSize_ = input.readInt32(); + bitField1_ |= 0x00008000; + break; + } // case 872 + case 882: { + servicesIpv4Cidr_ = input.readStringRequireUtf8(); + bitField1_ |= 0x00010000; + break; + } // case 882 + case 890: { + java.lang.String s = input.readStringRequireUtf8(); + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.add(s); + break; + } // case 890 + case 896: { + currentNodeCount_ = input.readInt32(); + bitField1_ |= 0x00040000; + break; + } // case 896 + case 906: { + expireTime_ = input.readStringRequireUtf8(); + bitField1_ |= 0x00080000; + break; + } // case 906 + case 914: { + location_ = input.readStringRequireUtf8(); + bitField1_ |= 0x00100000; + break; + } // case 914 + case 920: { + enableTpu_ = input.readBool(); + bitField1_ |= 0x00200000; + break; + } // case 920 + case 930: { + tpuIpv4CidrBlock_ = input.readStringRequireUtf8(); + bitField1_ |= 0x00400000; + break; + } // case 930 + case 946: { + com.google.container.v1.StatusCondition m = + input.readMessage( + com.google.container.v1.StatusCondition.parser(), + extensionRegistry); + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(m); + } else { + conditionsBuilder_.addMessage(m); + } + break; + } // case 946 + case 1026: { + input.readMessage( + getAutopilotFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x01000000; + break; + } // case 1026 + case 1034: { + id_ = input.readStringRequireUtf8(); + bitField1_ |= 0x02000000; + break; + } // case 1034 + case 1050: { + input.readMessage( + getNodePoolDefaultsFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x04000000; + break; + } // case 1050 + case 1058: { + input.readMessage( + getLoggingConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x08000000; + break; + } // case 1058 + case 1066: { + input.readMessage( + getMonitoringConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x10000000; + break; + } // case 1066 + case 1090: { + input.readMessage( + getNodePoolAutoConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x20000000; + break; + } // case 1090 + case 1114: { + etag_ = input.readStringRequireUtf8(); + bitField1_ |= 0x40000000; + break; + } // case 1114 + case 1122: { + input.readMessage( + getFleetFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x80000000; + break; + } // case 1122 + case 1146: { + input.readMessage( + getEnableK8SBetaApisFieldBuilder().getBuilder(), + extensionRegistry); + bitField2_ |= 0x00000002; + break; + } // case 1146 + case 1162: { + input.readMessage( + getSecurityPostureConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField2_ |= 0x00000001; + break; + } // case 1162 + case 1194: { + input.readMessage( + getEnterpriseConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField2_ |= 0x00000004; + break; + } // case 1194 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + private int bitField1_; + private int bitField2_; + + 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; + bitField0_ |= 0x00000001; + 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(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * An optional description of this cluster.
+     * 
+ * + * string description = 2; + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. + * See google/container/v1/cluster_service.proto;l=1679 + * @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]; + * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. + * See google/container/v1/cluster_service.proto;l=1679 + * @param value The initialNodeCount to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setInitialNodeCount(int value) { + + initialNodeCount_ = value; + bitField0_ |= 0x00000004; + 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]; + * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. + * See google/container/v1/cluster_service.proto;l=1679 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearInitialNodeCount() { + bitField0_ = (bitField0_ & ~0x00000004); + initialNodeCount_ = 0; + onChanged(); + return this; + } + + private com.google.container.v1.NodeConfig nodeConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeConfig, com.google.container.v1.NodeConfig.Builder, com.google.container.v1.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.v1.NodeConfig node_config = 4 [deprecated = true]; + * @deprecated google.container.v1.Cluster.node_config is deprecated. + * See google/container/v1/cluster_service.proto;l=1692 + * @return Whether the nodeConfig field is set. + */ + @java.lang.Deprecated public boolean hasNodeConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * 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.v1.NodeConfig node_config = 4 [deprecated = true]; + * @deprecated google.container.v1.Cluster.node_config is deprecated. + * See google/container/v1/cluster_service.proto;l=1692 + * @return The nodeConfig. + */ + @java.lang.Deprecated public com.google.container.v1.NodeConfig getNodeConfig() { + if (nodeConfigBuilder_ == null) { + return nodeConfig_ == null ? com.google.container.v1.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.v1.NodeConfig node_config = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setNodeConfig(com.google.container.v1.NodeConfig value) { + if (nodeConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodeConfig_ = value; + } else { + nodeConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + 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.v1.NodeConfig node_config = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setNodeConfig( + com.google.container.v1.NodeConfig.Builder builderForValue) { + if (nodeConfigBuilder_ == null) { + nodeConfig_ = builderForValue.build(); + } else { + nodeConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + 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.v1.NodeConfig node_config = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder mergeNodeConfig(com.google.container.v1.NodeConfig value) { + if (nodeConfigBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + nodeConfig_ != null && + nodeConfig_ != com.google.container.v1.NodeConfig.getDefaultInstance()) { + getNodeConfigBuilder().mergeFrom(value); + } else { + nodeConfig_ = value; + } + } else { + nodeConfigBuilder_.mergeFrom(value); + } + if (nodeConfig_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + 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.v1.NodeConfig node_config = 4 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearNodeConfig() { + bitField0_ = (bitField0_ & ~0x00000008); + nodeConfig_ = null; + if (nodeConfigBuilder_ != null) { + nodeConfigBuilder_.dispose(); + nodeConfigBuilder_ = null; + } + onChanged(); + 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.v1.NodeConfig node_config = 4 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.container.v1.NodeConfig.Builder getNodeConfigBuilder() { + bitField0_ |= 0x00000008; + 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.v1.NodeConfig node_config = 4 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.container.v1.NodeConfigOrBuilder getNodeConfigOrBuilder() { + if (nodeConfigBuilder_ != null) { + return nodeConfigBuilder_.getMessageOrBuilder(); + } else { + return nodeConfig_ == null ? + com.google.container.v1.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.v1.NodeConfig node_config = 4 [deprecated = true]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeConfig, com.google.container.v1.NodeConfig.Builder, com.google.container.v1.NodeConfigOrBuilder> + getNodeConfigFieldBuilder() { + if (nodeConfigBuilder_ == null) { + nodeConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeConfig, com.google.container.v1.NodeConfig.Builder, com.google.container.v1.NodeConfigOrBuilder>( + getNodeConfig(), + getParentForChildren(), + isClean()); + nodeConfig_ = null; + } + return nodeConfigBuilder_; + } + + private com.google.container.v1.MasterAuth masterAuth_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MasterAuth, com.google.container.v1.MasterAuth.Builder, com.google.container.v1.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.v1.MasterAuth master_auth = 5; + * @return Whether the masterAuth field is set. + */ + public boolean hasMasterAuth() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+     * 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.v1.MasterAuth master_auth = 5; + * @return The masterAuth. + */ + public com.google.container.v1.MasterAuth getMasterAuth() { + if (masterAuthBuilder_ == null) { + return masterAuth_ == null ? com.google.container.v1.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.v1.MasterAuth master_auth = 5; + */ + public Builder setMasterAuth(com.google.container.v1.MasterAuth value) { + if (masterAuthBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + masterAuth_ = value; + } else { + masterAuthBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + 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.v1.MasterAuth master_auth = 5; + */ + public Builder setMasterAuth( + com.google.container.v1.MasterAuth.Builder builderForValue) { + if (masterAuthBuilder_ == null) { + masterAuth_ = builderForValue.build(); + } else { + masterAuthBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + 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.v1.MasterAuth master_auth = 5; + */ + public Builder mergeMasterAuth(com.google.container.v1.MasterAuth value) { + if (masterAuthBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + masterAuth_ != null && + masterAuth_ != com.google.container.v1.MasterAuth.getDefaultInstance()) { + getMasterAuthBuilder().mergeFrom(value); + } else { + masterAuth_ = value; + } + } else { + masterAuthBuilder_.mergeFrom(value); + } + if (masterAuth_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + 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.v1.MasterAuth master_auth = 5; + */ + public Builder clearMasterAuth() { + bitField0_ = (bitField0_ & ~0x00000010); + masterAuth_ = null; + if (masterAuthBuilder_ != null) { + masterAuthBuilder_.dispose(); + masterAuthBuilder_ = null; + } + onChanged(); + 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.v1.MasterAuth master_auth = 5; + */ + public com.google.container.v1.MasterAuth.Builder getMasterAuthBuilder() { + bitField0_ |= 0x00000010; + 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.v1.MasterAuth master_auth = 5; + */ + public com.google.container.v1.MasterAuthOrBuilder getMasterAuthOrBuilder() { + if (masterAuthBuilder_ != null) { + return masterAuthBuilder_.getMessageOrBuilder(); + } else { + return masterAuth_ == null ? + com.google.container.v1.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.v1.MasterAuth master_auth = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MasterAuth, com.google.container.v1.MasterAuth.Builder, com.google.container.v1.MasterAuthOrBuilder> + getMasterAuthFieldBuilder() { + if (masterAuthBuilder_ == null) { + masterAuthBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MasterAuth, com.google.container.v1.MasterAuth.Builder, com.google.container.v1.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; + bitField0_ |= 0x00000020; + 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(); + bitField0_ = (bitField0_ & ~0x00000020); + 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; + bitField0_ |= 0x00000020; + 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; + bitField0_ |= 0x00000040; + 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(); + bitField0_ = (bitField0_ & ~0x00000040); + 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; + bitField0_ |= 0x00000040; + 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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; + bitField0_ |= 0x00000080; + 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.
+     * 
+ * + * string network = 8; + * @return This builder for chaining. + */ + public Builder clearNetwork() { + network_ = getDefaultInstance().getNetwork(); + bitField0_ = (bitField0_ & ~0x00000080); + 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.
+     * 
+ * + * 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; + bitField0_ |= 0x00000080; + 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; + bitField0_ |= 0x00000100; + 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(); + bitField0_ = (bitField0_ & ~0x00000100); + 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; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private com.google.container.v1.AddonsConfig addonsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AddonsConfig, com.google.container.v1.AddonsConfig.Builder, com.google.container.v1.AddonsConfigOrBuilder> addonsConfigBuilder_; + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1.AddonsConfig addons_config = 10; + * @return Whether the addonsConfig field is set. + */ + public boolean hasAddonsConfig() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1.AddonsConfig addons_config = 10; + * @return The addonsConfig. + */ + public com.google.container.v1.AddonsConfig getAddonsConfig() { + if (addonsConfigBuilder_ == null) { + return addonsConfig_ == null ? com.google.container.v1.AddonsConfig.getDefaultInstance() : addonsConfig_; + } else { + return addonsConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1.AddonsConfig addons_config = 10; + */ + public Builder setAddonsConfig(com.google.container.v1.AddonsConfig value) { + if (addonsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + addonsConfig_ = value; + } else { + addonsConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1.AddonsConfig addons_config = 10; + */ + public Builder setAddonsConfig( + com.google.container.v1.AddonsConfig.Builder builderForValue) { + if (addonsConfigBuilder_ == null) { + addonsConfig_ = builderForValue.build(); + } else { + addonsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1.AddonsConfig addons_config = 10; + */ + public Builder mergeAddonsConfig(com.google.container.v1.AddonsConfig value) { + if (addonsConfigBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) && + addonsConfig_ != null && + addonsConfig_ != com.google.container.v1.AddonsConfig.getDefaultInstance()) { + getAddonsConfigBuilder().mergeFrom(value); + } else { + addonsConfig_ = value; + } + } else { + addonsConfigBuilder_.mergeFrom(value); + } + if (addonsConfig_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1.AddonsConfig addons_config = 10; + */ + public Builder clearAddonsConfig() { + bitField0_ = (bitField0_ & ~0x00000200); + addonsConfig_ = null; + if (addonsConfigBuilder_ != null) { + addonsConfigBuilder_.dispose(); + addonsConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1.AddonsConfig addons_config = 10; + */ + public com.google.container.v1.AddonsConfig.Builder getAddonsConfigBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getAddonsConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1.AddonsConfig addons_config = 10; + */ + public com.google.container.v1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() { + if (addonsConfigBuilder_ != null) { + return addonsConfigBuilder_.getMessageOrBuilder(); + } else { + return addonsConfig_ == null ? + com.google.container.v1.AddonsConfig.getDefaultInstance() : addonsConfig_; + } + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1.AddonsConfig addons_config = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AddonsConfig, com.google.container.v1.AddonsConfig.Builder, com.google.container.v1.AddonsConfigOrBuilder> + getAddonsConfigFieldBuilder() { + if (addonsConfigBuilder_ == null) { + addonsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AddonsConfig, com.google.container.v1.AddonsConfig.Builder, com.google.container.v1.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.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+     * The name of the Google Compute Engine
+     * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
+     * the cluster is connected.
+     * 
+ * + * string subnetwork = 11; + * @return This builder for chaining. + */ + public Builder clearSubnetwork() { + subnetwork_ = getDefaultInstance().getSubnetwork(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + *
+     * The name of the Google Compute Engine
+     * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
+     * the cluster is connected.
+     * 
+ * + * 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; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private java.util.List nodePools_ = + java.util.Collections.emptyList(); + private void ensureNodePoolsIsMutable() { + if (!((bitField0_ & 0x00000800) != 0)) { + nodePools_ = new java.util.ArrayList(nodePools_); + bitField0_ |= 0x00000800; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.NodePool, com.google.container.v1.NodePool.Builder, com.google.container.v1.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.v1.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.v1.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.v1.NodePool node_pools = 12; + */ + public com.google.container.v1.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.v1.NodePool node_pools = 12; + */ + public Builder setNodePools( + int index, com.google.container.v1.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.v1.NodePool node_pools = 12; + */ + public Builder setNodePools( + int index, com.google.container.v1.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.v1.NodePool node_pools = 12; + */ + public Builder addNodePools(com.google.container.v1.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.v1.NodePool node_pools = 12; + */ + public Builder addNodePools( + int index, com.google.container.v1.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.v1.NodePool node_pools = 12; + */ + public Builder addNodePools( + com.google.container.v1.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.v1.NodePool node_pools = 12; + */ + public Builder addNodePools( + int index, com.google.container.v1.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.v1.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.v1.NodePool node_pools = 12; + */ + public Builder clearNodePools() { + if (nodePoolsBuilder_ == null) { + nodePools_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + } else { + nodePoolsBuilder_.clear(); + } + return this; + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1.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.v1.NodePool node_pools = 12; + */ + public com.google.container.v1.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.v1.NodePool node_pools = 12; + */ + public com.google.container.v1.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.v1.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.v1.NodePool node_pools = 12; + */ + public com.google.container.v1.NodePool.Builder addNodePoolsBuilder() { + return getNodePoolsFieldBuilder().addBuilder( + com.google.container.v1.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.v1.NodePool node_pools = 12; + */ + public com.google.container.v1.NodePool.Builder addNodePoolsBuilder( + int index) { + return getNodePoolsFieldBuilder().addBuilder( + index, com.google.container.v1.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.v1.NodePool node_pools = 12; + */ + public java.util.List + getNodePoolsBuilderList() { + return getNodePoolsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.NodePool, com.google.container.v1.NodePool.Builder, com.google.container.v1.NodePoolOrBuilder> + getNodePoolsFieldBuilder() { + if (nodePoolsBuilder_ == null) { + nodePoolsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.NodePool, com.google.container.v1.NodePool.Builder, com.google.container.v1.NodePoolOrBuilder>( + nodePools_, + ((bitField0_ & 0x00000800) != 0), + getParentForChildren(), + isClean()); + nodePools_ = null; + } + return nodePoolsBuilder_; + } + + private com.google.protobuf.LazyStringArrayList locations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureLocationsIsMutable() { + if (!locations_.isModifiable()) { + locations_ = new com.google.protobuf.LazyStringArrayList(locations_); + } + bitField0_ |= 0x00001000; + } + /** + *
+     * 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() { + locations_.makeImmutable(); + 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); + } + /** + *
+     * 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); + bitField0_ |= 0x00001000; + 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); + bitField0_ |= 0x00001000; + 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_); + bitField0_ |= 0x00001000; + 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.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000);; + 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); + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + private boolean enableKubernetesAlpha_ ; + /** + *
+     * Kubernetes alpha features are enabled on this cluster. This includes alpha
+     * API groups (e.g. v1alpha1) and features that may not be production ready in
+     * the kubernetes version of the master and nodes.
+     * The cluster has no SLA for uptime and master/node upgrades are disabled.
+     * Alpha enabled clusters are automatically deleted thirty days after
+     * creation.
+     * 
+ * + * bool enable_kubernetes_alpha = 14; + * @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. v1alpha1) and features that may not be production ready in
+     * the kubernetes version of the master and nodes.
+     * The cluster has no SLA for uptime and master/node upgrades are disabled.
+     * Alpha enabled clusters are automatically deleted thirty days after
+     * creation.
+     * 
+ * + * bool enable_kubernetes_alpha = 14; + * @param value The enableKubernetesAlpha to set. + * @return This builder for chaining. + */ + public Builder setEnableKubernetesAlpha(boolean value) { + + enableKubernetesAlpha_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + *
+     * Kubernetes alpha features are enabled on this cluster. This includes alpha
+     * API groups (e.g. v1alpha1) and features that may not be production ready in
+     * the kubernetes version of the master and nodes.
+     * The cluster has no SLA for uptime and master/node upgrades are disabled.
+     * Alpha enabled clusters are automatically deleted thirty days after
+     * creation.
+     * 
+ * + * bool enable_kubernetes_alpha = 14; + * @return This builder for chaining. + */ + public Builder clearEnableKubernetesAlpha() { + bitField0_ = (bitField0_ & ~0x00002000); + enableKubernetesAlpha_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> resourceLabels_; + private com.google.protobuf.MapField + internalGetResourceLabels() { + if (resourceLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + return resourceLabels_; + } + private com.google.protobuf.MapField + internalGetMutableResourceLabels() { + if (resourceLabels_ == null) { + resourceLabels_ = com.google.protobuf.MapField.newMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + if (!resourceLabels_.isMutable()) { + resourceLabels_ = resourceLabels_.copy(); + } + bitField0_ |= 0x00004000; + onChanged(); + 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 NullPointerException("map key"); } + 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 /* nullable */ +java.lang.String getResourceLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + 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 NullPointerException("map key"); } + java.util.Map map = + internalGetResourceLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearResourceLabels() { + bitField0_ = (bitField0_ & ~0x00004000); + 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 NullPointerException("map key"); } + internalGetMutableResourceLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableResourceLabels() { + bitField0_ |= 0x00004000; + 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 NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableResourceLabels().getMutableMap() + .put(key, value); + bitField0_ |= 0x00004000; + 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); + bitField0_ |= 0x00004000; + 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; + bitField0_ |= 0x00008000; + 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(); + bitField0_ = (bitField0_ & ~0x00008000); + 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; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + private com.google.container.v1.LegacyAbac legacyAbac_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LegacyAbac, com.google.container.v1.LegacyAbac.Builder, com.google.container.v1.LegacyAbacOrBuilder> legacyAbacBuilder_; + /** + *
+     * Configuration for the legacy ABAC authorization mode.
+     * 
+ * + * .google.container.v1.LegacyAbac legacy_abac = 18; + * @return Whether the legacyAbac field is set. + */ + public boolean hasLegacyAbac() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + *
+     * Configuration for the legacy ABAC authorization mode.
+     * 
+ * + * .google.container.v1.LegacyAbac legacy_abac = 18; + * @return The legacyAbac. + */ + public com.google.container.v1.LegacyAbac getLegacyAbac() { + if (legacyAbacBuilder_ == null) { + return legacyAbac_ == null ? com.google.container.v1.LegacyAbac.getDefaultInstance() : legacyAbac_; + } else { + return legacyAbacBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for the legacy ABAC authorization mode.
+     * 
+ * + * .google.container.v1.LegacyAbac legacy_abac = 18; + */ + public Builder setLegacyAbac(com.google.container.v1.LegacyAbac value) { + if (legacyAbacBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + legacyAbac_ = value; + } else { + legacyAbacBuilder_.setMessage(value); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + *
+     * Configuration for the legacy ABAC authorization mode.
+     * 
+ * + * .google.container.v1.LegacyAbac legacy_abac = 18; + */ + public Builder setLegacyAbac( + com.google.container.v1.LegacyAbac.Builder builderForValue) { + if (legacyAbacBuilder_ == null) { + legacyAbac_ = builderForValue.build(); + } else { + legacyAbacBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + *
+     * Configuration for the legacy ABAC authorization mode.
+     * 
+ * + * .google.container.v1.LegacyAbac legacy_abac = 18; + */ + public Builder mergeLegacyAbac(com.google.container.v1.LegacyAbac value) { + if (legacyAbacBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0) && + legacyAbac_ != null && + legacyAbac_ != com.google.container.v1.LegacyAbac.getDefaultInstance()) { + getLegacyAbacBuilder().mergeFrom(value); + } else { + legacyAbac_ = value; + } + } else { + legacyAbacBuilder_.mergeFrom(value); + } + if (legacyAbac_ != null) { + bitField0_ |= 0x00010000; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for the legacy ABAC authorization mode.
+     * 
+ * + * .google.container.v1.LegacyAbac legacy_abac = 18; + */ + public Builder clearLegacyAbac() { + bitField0_ = (bitField0_ & ~0x00010000); + legacyAbac_ = null; + if (legacyAbacBuilder_ != null) { + legacyAbacBuilder_.dispose(); + legacyAbacBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for the legacy ABAC authorization mode.
+     * 
+ * + * .google.container.v1.LegacyAbac legacy_abac = 18; + */ + public com.google.container.v1.LegacyAbac.Builder getLegacyAbacBuilder() { + bitField0_ |= 0x00010000; + onChanged(); + return getLegacyAbacFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for the legacy ABAC authorization mode.
+     * 
+ * + * .google.container.v1.LegacyAbac legacy_abac = 18; + */ + public com.google.container.v1.LegacyAbacOrBuilder getLegacyAbacOrBuilder() { + if (legacyAbacBuilder_ != null) { + return legacyAbacBuilder_.getMessageOrBuilder(); + } else { + return legacyAbac_ == null ? + com.google.container.v1.LegacyAbac.getDefaultInstance() : legacyAbac_; + } + } + /** + *
+     * Configuration for the legacy ABAC authorization mode.
+     * 
+ * + * .google.container.v1.LegacyAbac legacy_abac = 18; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LegacyAbac, com.google.container.v1.LegacyAbac.Builder, com.google.container.v1.LegacyAbacOrBuilder> + getLegacyAbacFieldBuilder() { + if (legacyAbacBuilder_ == null) { + legacyAbacBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LegacyAbac, com.google.container.v1.LegacyAbac.Builder, com.google.container.v1.LegacyAbacOrBuilder>( + getLegacyAbac(), + getParentForChildren(), + isClean()); + legacyAbac_ = null; + } + return legacyAbacBuilder_; + } + + private com.google.container.v1.NetworkPolicy networkPolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkPolicy, com.google.container.v1.NetworkPolicy.Builder, com.google.container.v1.NetworkPolicyOrBuilder> networkPolicyBuilder_; + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1.NetworkPolicy network_policy = 19; + * @return Whether the networkPolicy field is set. + */ + public boolean hasNetworkPolicy() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1.NetworkPolicy network_policy = 19; + * @return The networkPolicy. + */ + public com.google.container.v1.NetworkPolicy getNetworkPolicy() { + if (networkPolicyBuilder_ == null) { + return networkPolicy_ == null ? com.google.container.v1.NetworkPolicy.getDefaultInstance() : networkPolicy_; + } else { + return networkPolicyBuilder_.getMessage(); + } + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1.NetworkPolicy network_policy = 19; + */ + public Builder setNetworkPolicy(com.google.container.v1.NetworkPolicy value) { + if (networkPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkPolicy_ = value; + } else { + networkPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1.NetworkPolicy network_policy = 19; + */ + public Builder setNetworkPolicy( + com.google.container.v1.NetworkPolicy.Builder builderForValue) { + if (networkPolicyBuilder_ == null) { + networkPolicy_ = builderForValue.build(); + } else { + networkPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1.NetworkPolicy network_policy = 19; + */ + public Builder mergeNetworkPolicy(com.google.container.v1.NetworkPolicy value) { + if (networkPolicyBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) && + networkPolicy_ != null && + networkPolicy_ != com.google.container.v1.NetworkPolicy.getDefaultInstance()) { + getNetworkPolicyBuilder().mergeFrom(value); + } else { + networkPolicy_ = value; + } + } else { + networkPolicyBuilder_.mergeFrom(value); + } + if (networkPolicy_ != null) { + bitField0_ |= 0x00020000; + onChanged(); + } + return this; + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1.NetworkPolicy network_policy = 19; + */ + public Builder clearNetworkPolicy() { + bitField0_ = (bitField0_ & ~0x00020000); + networkPolicy_ = null; + if (networkPolicyBuilder_ != null) { + networkPolicyBuilder_.dispose(); + networkPolicyBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1.NetworkPolicy network_policy = 19; + */ + public com.google.container.v1.NetworkPolicy.Builder getNetworkPolicyBuilder() { + bitField0_ |= 0x00020000; + onChanged(); + return getNetworkPolicyFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1.NetworkPolicy network_policy = 19; + */ + public com.google.container.v1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder() { + if (networkPolicyBuilder_ != null) { + return networkPolicyBuilder_.getMessageOrBuilder(); + } else { + return networkPolicy_ == null ? + com.google.container.v1.NetworkPolicy.getDefaultInstance() : networkPolicy_; + } + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1.NetworkPolicy network_policy = 19; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkPolicy, com.google.container.v1.NetworkPolicy.Builder, com.google.container.v1.NetworkPolicyOrBuilder> + getNetworkPolicyFieldBuilder() { + if (networkPolicyBuilder_ == null) { + networkPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkPolicy, com.google.container.v1.NetworkPolicy.Builder, com.google.container.v1.NetworkPolicyOrBuilder>( + getNetworkPolicy(), + getParentForChildren(), + isClean()); + networkPolicy_ = null; + } + return networkPolicyBuilder_; + } + + private com.google.container.v1.IPAllocationPolicy ipAllocationPolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.IPAllocationPolicy, com.google.container.v1.IPAllocationPolicy.Builder, com.google.container.v1.IPAllocationPolicyOrBuilder> ipAllocationPolicyBuilder_; + /** + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; + * @return Whether the ipAllocationPolicy field is set. + */ + public boolean hasIpAllocationPolicy() { + return ((bitField0_ & 0x00040000) != 0); + } + /** + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; + * @return The ipAllocationPolicy. + */ + public com.google.container.v1.IPAllocationPolicy getIpAllocationPolicy() { + if (ipAllocationPolicyBuilder_ == null) { + return ipAllocationPolicy_ == null ? com.google.container.v1.IPAllocationPolicy.getDefaultInstance() : ipAllocationPolicy_; + } else { + return ipAllocationPolicyBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public Builder setIpAllocationPolicy(com.google.container.v1.IPAllocationPolicy value) { + if (ipAllocationPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ipAllocationPolicy_ = value; + } else { + ipAllocationPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public Builder setIpAllocationPolicy( + com.google.container.v1.IPAllocationPolicy.Builder builderForValue) { + if (ipAllocationPolicyBuilder_ == null) { + ipAllocationPolicy_ = builderForValue.build(); + } else { + ipAllocationPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public Builder mergeIpAllocationPolicy(com.google.container.v1.IPAllocationPolicy value) { + if (ipAllocationPolicyBuilder_ == null) { + if (((bitField0_ & 0x00040000) != 0) && + ipAllocationPolicy_ != null && + ipAllocationPolicy_ != com.google.container.v1.IPAllocationPolicy.getDefaultInstance()) { + getIpAllocationPolicyBuilder().mergeFrom(value); + } else { + ipAllocationPolicy_ = value; + } + } else { + ipAllocationPolicyBuilder_.mergeFrom(value); + } + if (ipAllocationPolicy_ != null) { + bitField0_ |= 0x00040000; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public Builder clearIpAllocationPolicy() { + bitField0_ = (bitField0_ & ~0x00040000); + ipAllocationPolicy_ = null; + if (ipAllocationPolicyBuilder_ != null) { + ipAllocationPolicyBuilder_.dispose(); + ipAllocationPolicyBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public com.google.container.v1.IPAllocationPolicy.Builder getIpAllocationPolicyBuilder() { + bitField0_ |= 0x00040000; + onChanged(); + return getIpAllocationPolicyFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public com.google.container.v1.IPAllocationPolicyOrBuilder getIpAllocationPolicyOrBuilder() { + if (ipAllocationPolicyBuilder_ != null) { + return ipAllocationPolicyBuilder_.getMessageOrBuilder(); + } else { + return ipAllocationPolicy_ == null ? + com.google.container.v1.IPAllocationPolicy.getDefaultInstance() : ipAllocationPolicy_; + } + } + /** + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.IPAllocationPolicy, com.google.container.v1.IPAllocationPolicy.Builder, com.google.container.v1.IPAllocationPolicyOrBuilder> + getIpAllocationPolicyFieldBuilder() { + if (ipAllocationPolicyBuilder_ == null) { + ipAllocationPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.IPAllocationPolicy, com.google.container.v1.IPAllocationPolicy.Builder, com.google.container.v1.IPAllocationPolicyOrBuilder>( + getIpAllocationPolicy(), + getParentForChildren(), + isClean()); + ipAllocationPolicy_ = null; + } + return ipAllocationPolicyBuilder_; + } + + private com.google.container.v1.MasterAuthorizedNetworksConfig masterAuthorizedNetworksConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MasterAuthorizedNetworksConfig, com.google.container.v1.MasterAuthorizedNetworksConfig.Builder, com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder> masterAuthorizedNetworksConfigBuilder_; + /** + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * @return Whether the masterAuthorizedNetworksConfig field is set. + */ + public boolean hasMasterAuthorizedNetworksConfig() { + return ((bitField0_ & 0x00080000) != 0); + } + /** + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * @return The masterAuthorizedNetworksConfig. + */ + public com.google.container.v1.MasterAuthorizedNetworksConfig getMasterAuthorizedNetworksConfig() { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + return masterAuthorizedNetworksConfig_ == null ? com.google.container.v1.MasterAuthorizedNetworksConfig.getDefaultInstance() : masterAuthorizedNetworksConfig_; + } else { + return masterAuthorizedNetworksConfigBuilder_.getMessage(); + } + } + /** + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + public Builder setMasterAuthorizedNetworksConfig(com.google.container.v1.MasterAuthorizedNetworksConfig value) { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + masterAuthorizedNetworksConfig_ = value; + } else { + masterAuthorizedNetworksConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + public Builder setMasterAuthorizedNetworksConfig( + com.google.container.v1.MasterAuthorizedNetworksConfig.Builder builderForValue) { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + masterAuthorizedNetworksConfig_ = builderForValue.build(); + } else { + masterAuthorizedNetworksConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + public Builder mergeMasterAuthorizedNetworksConfig(com.google.container.v1.MasterAuthorizedNetworksConfig value) { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + if (((bitField0_ & 0x00080000) != 0) && + masterAuthorizedNetworksConfig_ != null && + masterAuthorizedNetworksConfig_ != com.google.container.v1.MasterAuthorizedNetworksConfig.getDefaultInstance()) { + getMasterAuthorizedNetworksConfigBuilder().mergeFrom(value); + } else { + masterAuthorizedNetworksConfig_ = value; + } + } else { + masterAuthorizedNetworksConfigBuilder_.mergeFrom(value); + } + if (masterAuthorizedNetworksConfig_ != null) { + bitField0_ |= 0x00080000; + onChanged(); + } + return this; + } + /** + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + public Builder clearMasterAuthorizedNetworksConfig() { + bitField0_ = (bitField0_ & ~0x00080000); + masterAuthorizedNetworksConfig_ = null; + if (masterAuthorizedNetworksConfigBuilder_ != null) { + masterAuthorizedNetworksConfigBuilder_.dispose(); + masterAuthorizedNetworksConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + public com.google.container.v1.MasterAuthorizedNetworksConfig.Builder getMasterAuthorizedNetworksConfigBuilder() { + bitField0_ |= 0x00080000; + onChanged(); + return getMasterAuthorizedNetworksConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + public com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder getMasterAuthorizedNetworksConfigOrBuilder() { + if (masterAuthorizedNetworksConfigBuilder_ != null) { + return masterAuthorizedNetworksConfigBuilder_.getMessageOrBuilder(); + } else { + return masterAuthorizedNetworksConfig_ == null ? + com.google.container.v1.MasterAuthorizedNetworksConfig.getDefaultInstance() : masterAuthorizedNetworksConfig_; + } + } + /** + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MasterAuthorizedNetworksConfig, com.google.container.v1.MasterAuthorizedNetworksConfig.Builder, com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder> + getMasterAuthorizedNetworksConfigFieldBuilder() { + if (masterAuthorizedNetworksConfigBuilder_ == null) { + masterAuthorizedNetworksConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MasterAuthorizedNetworksConfig, com.google.container.v1.MasterAuthorizedNetworksConfig.Builder, com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder>( + getMasterAuthorizedNetworksConfig(), + getParentForChildren(), + isClean()); + masterAuthorizedNetworksConfig_ = null; + } + return masterAuthorizedNetworksConfigBuilder_; + } + + private com.google.container.v1.MaintenancePolicy maintenancePolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MaintenancePolicy, com.google.container.v1.MaintenancePolicy.Builder, com.google.container.v1.MaintenancePolicyOrBuilder> maintenancePolicyBuilder_; + /** + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1.MaintenancePolicy maintenance_policy = 23; + * @return Whether the maintenancePolicy field is set. + */ + public boolean hasMaintenancePolicy() { + return ((bitField0_ & 0x00100000) != 0); + } + /** + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1.MaintenancePolicy maintenance_policy = 23; + * @return The maintenancePolicy. + */ + public com.google.container.v1.MaintenancePolicy getMaintenancePolicy() { + if (maintenancePolicyBuilder_ == null) { + return maintenancePolicy_ == null ? com.google.container.v1.MaintenancePolicy.getDefaultInstance() : maintenancePolicy_; + } else { + return maintenancePolicyBuilder_.getMessage(); + } + } + /** + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1.MaintenancePolicy maintenance_policy = 23; + */ + public Builder setMaintenancePolicy(com.google.container.v1.MaintenancePolicy value) { + if (maintenancePolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maintenancePolicy_ = value; + } else { + maintenancePolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1.MaintenancePolicy maintenance_policy = 23; + */ + public Builder setMaintenancePolicy( + com.google.container.v1.MaintenancePolicy.Builder builderForValue) { + if (maintenancePolicyBuilder_ == null) { + maintenancePolicy_ = builderForValue.build(); + } else { + maintenancePolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1.MaintenancePolicy maintenance_policy = 23; + */ + public Builder mergeMaintenancePolicy(com.google.container.v1.MaintenancePolicy value) { + if (maintenancePolicyBuilder_ == null) { + if (((bitField0_ & 0x00100000) != 0) && + maintenancePolicy_ != null && + maintenancePolicy_ != com.google.container.v1.MaintenancePolicy.getDefaultInstance()) { + getMaintenancePolicyBuilder().mergeFrom(value); + } else { + maintenancePolicy_ = value; + } + } else { + maintenancePolicyBuilder_.mergeFrom(value); + } + if (maintenancePolicy_ != null) { + bitField0_ |= 0x00100000; + onChanged(); + } + return this; + } + /** + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1.MaintenancePolicy maintenance_policy = 23; + */ + public Builder clearMaintenancePolicy() { + bitField0_ = (bitField0_ & ~0x00100000); + maintenancePolicy_ = null; + if (maintenancePolicyBuilder_ != null) { + maintenancePolicyBuilder_.dispose(); + maintenancePolicyBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1.MaintenancePolicy maintenance_policy = 23; + */ + public com.google.container.v1.MaintenancePolicy.Builder getMaintenancePolicyBuilder() { + bitField0_ |= 0x00100000; + onChanged(); + return getMaintenancePolicyFieldBuilder().getBuilder(); + } + /** + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1.MaintenancePolicy maintenance_policy = 23; + */ + public com.google.container.v1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { + if (maintenancePolicyBuilder_ != null) { + return maintenancePolicyBuilder_.getMessageOrBuilder(); + } else { + return maintenancePolicy_ == null ? + com.google.container.v1.MaintenancePolicy.getDefaultInstance() : maintenancePolicy_; + } + } + /** + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1.MaintenancePolicy maintenance_policy = 23; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MaintenancePolicy, com.google.container.v1.MaintenancePolicy.Builder, com.google.container.v1.MaintenancePolicyOrBuilder> + getMaintenancePolicyFieldBuilder() { + if (maintenancePolicyBuilder_ == null) { + maintenancePolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MaintenancePolicy, com.google.container.v1.MaintenancePolicy.Builder, com.google.container.v1.MaintenancePolicyOrBuilder>( + getMaintenancePolicy(), + getParentForChildren(), + isClean()); + maintenancePolicy_ = null; + } + return maintenancePolicyBuilder_; + } + + private com.google.container.v1.BinaryAuthorization binaryAuthorization_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.BinaryAuthorization, com.google.container.v1.BinaryAuthorization.Builder, com.google.container.v1.BinaryAuthorizationOrBuilder> binaryAuthorizationBuilder_; + /** + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1.BinaryAuthorization binary_authorization = 24; + * @return Whether the binaryAuthorization field is set. + */ + public boolean hasBinaryAuthorization() { + return ((bitField0_ & 0x00200000) != 0); + } + /** + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1.BinaryAuthorization binary_authorization = 24; + * @return The binaryAuthorization. + */ + public com.google.container.v1.BinaryAuthorization getBinaryAuthorization() { + if (binaryAuthorizationBuilder_ == null) { + return binaryAuthorization_ == null ? com.google.container.v1.BinaryAuthorization.getDefaultInstance() : binaryAuthorization_; + } else { + return binaryAuthorizationBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1.BinaryAuthorization binary_authorization = 24; + */ + public Builder setBinaryAuthorization(com.google.container.v1.BinaryAuthorization value) { + if (binaryAuthorizationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + binaryAuthorization_ = value; + } else { + binaryAuthorizationBuilder_.setMessage(value); + } + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + /** + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1.BinaryAuthorization binary_authorization = 24; + */ + public Builder setBinaryAuthorization( + com.google.container.v1.BinaryAuthorization.Builder builderForValue) { + if (binaryAuthorizationBuilder_ == null) { + binaryAuthorization_ = builderForValue.build(); + } else { + binaryAuthorizationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + /** + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1.BinaryAuthorization binary_authorization = 24; + */ + public Builder mergeBinaryAuthorization(com.google.container.v1.BinaryAuthorization value) { + if (binaryAuthorizationBuilder_ == null) { + if (((bitField0_ & 0x00200000) != 0) && + binaryAuthorization_ != null && + binaryAuthorization_ != com.google.container.v1.BinaryAuthorization.getDefaultInstance()) { + getBinaryAuthorizationBuilder().mergeFrom(value); + } else { + binaryAuthorization_ = value; + } + } else { + binaryAuthorizationBuilder_.mergeFrom(value); + } + if (binaryAuthorization_ != null) { + bitField0_ |= 0x00200000; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1.BinaryAuthorization binary_authorization = 24; + */ + public Builder clearBinaryAuthorization() { + bitField0_ = (bitField0_ & ~0x00200000); + binaryAuthorization_ = null; + if (binaryAuthorizationBuilder_ != null) { + binaryAuthorizationBuilder_.dispose(); + binaryAuthorizationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1.BinaryAuthorization binary_authorization = 24; + */ + public com.google.container.v1.BinaryAuthorization.Builder getBinaryAuthorizationBuilder() { + bitField0_ |= 0x00200000; + onChanged(); + return getBinaryAuthorizationFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1.BinaryAuthorization binary_authorization = 24; + */ + public com.google.container.v1.BinaryAuthorizationOrBuilder getBinaryAuthorizationOrBuilder() { + if (binaryAuthorizationBuilder_ != null) { + return binaryAuthorizationBuilder_.getMessageOrBuilder(); + } else { + return binaryAuthorization_ == null ? + com.google.container.v1.BinaryAuthorization.getDefaultInstance() : binaryAuthorization_; + } + } + /** + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1.BinaryAuthorization binary_authorization = 24; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.BinaryAuthorization, com.google.container.v1.BinaryAuthorization.Builder, com.google.container.v1.BinaryAuthorizationOrBuilder> + getBinaryAuthorizationFieldBuilder() { + if (binaryAuthorizationBuilder_ == null) { + binaryAuthorizationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.BinaryAuthorization, com.google.container.v1.BinaryAuthorization.Builder, com.google.container.v1.BinaryAuthorizationOrBuilder>( + getBinaryAuthorization(), + getParentForChildren(), + isClean()); + binaryAuthorization_ = null; + } + return binaryAuthorizationBuilder_; + } + + private com.google.container.v1.ClusterAutoscaling autoscaling_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ClusterAutoscaling, com.google.container.v1.ClusterAutoscaling.Builder, com.google.container.v1.ClusterAutoscalingOrBuilder> autoscalingBuilder_; + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1.ClusterAutoscaling autoscaling = 26; + * @return Whether the autoscaling field is set. + */ + public boolean hasAutoscaling() { + return ((bitField0_ & 0x00400000) != 0); + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1.ClusterAutoscaling autoscaling = 26; + * @return The autoscaling. + */ + public com.google.container.v1.ClusterAutoscaling getAutoscaling() { + if (autoscalingBuilder_ == null) { + return autoscaling_ == null ? com.google.container.v1.ClusterAutoscaling.getDefaultInstance() : autoscaling_; + } else { + return autoscalingBuilder_.getMessage(); + } + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1.ClusterAutoscaling autoscaling = 26; + */ + public Builder setAutoscaling(com.google.container.v1.ClusterAutoscaling value) { + if (autoscalingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autoscaling_ = value; + } else { + autoscalingBuilder_.setMessage(value); + } + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1.ClusterAutoscaling autoscaling = 26; + */ + public Builder setAutoscaling( + com.google.container.v1.ClusterAutoscaling.Builder builderForValue) { + if (autoscalingBuilder_ == null) { + autoscaling_ = builderForValue.build(); + } else { + autoscalingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1.ClusterAutoscaling autoscaling = 26; + */ + public Builder mergeAutoscaling(com.google.container.v1.ClusterAutoscaling value) { + if (autoscalingBuilder_ == null) { + if (((bitField0_ & 0x00400000) != 0) && + autoscaling_ != null && + autoscaling_ != com.google.container.v1.ClusterAutoscaling.getDefaultInstance()) { + getAutoscalingBuilder().mergeFrom(value); + } else { + autoscaling_ = value; + } + } else { + autoscalingBuilder_.mergeFrom(value); + } + if (autoscaling_ != null) { + bitField0_ |= 0x00400000; + onChanged(); + } + return this; + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1.ClusterAutoscaling autoscaling = 26; + */ + public Builder clearAutoscaling() { + bitField0_ = (bitField0_ & ~0x00400000); + autoscaling_ = null; + if (autoscalingBuilder_ != null) { + autoscalingBuilder_.dispose(); + autoscalingBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1.ClusterAutoscaling autoscaling = 26; + */ + public com.google.container.v1.ClusterAutoscaling.Builder getAutoscalingBuilder() { + bitField0_ |= 0x00400000; + onChanged(); + return getAutoscalingFieldBuilder().getBuilder(); + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1.ClusterAutoscaling autoscaling = 26; + */ + public com.google.container.v1.ClusterAutoscalingOrBuilder getAutoscalingOrBuilder() { + if (autoscalingBuilder_ != null) { + return autoscalingBuilder_.getMessageOrBuilder(); + } else { + return autoscaling_ == null ? + com.google.container.v1.ClusterAutoscaling.getDefaultInstance() : autoscaling_; + } + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1.ClusterAutoscaling autoscaling = 26; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ClusterAutoscaling, com.google.container.v1.ClusterAutoscaling.Builder, com.google.container.v1.ClusterAutoscalingOrBuilder> + getAutoscalingFieldBuilder() { + if (autoscalingBuilder_ == null) { + autoscalingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ClusterAutoscaling, com.google.container.v1.ClusterAutoscaling.Builder, com.google.container.v1.ClusterAutoscalingOrBuilder>( + getAutoscaling(), + getParentForChildren(), + isClean()); + autoscaling_ = null; + } + return autoscalingBuilder_; + } + + private com.google.container.v1.NetworkConfig networkConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkConfig, com.google.container.v1.NetworkConfig.Builder, com.google.container.v1.NetworkConfigOrBuilder> networkConfigBuilder_; + /** + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1.NetworkConfig network_config = 27; + * @return Whether the networkConfig field is set. + */ + public boolean hasNetworkConfig() { + return ((bitField0_ & 0x00800000) != 0); + } + /** + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1.NetworkConfig network_config = 27; + * @return The networkConfig. + */ + public com.google.container.v1.NetworkConfig getNetworkConfig() { + if (networkConfigBuilder_ == null) { + return networkConfig_ == null ? com.google.container.v1.NetworkConfig.getDefaultInstance() : networkConfig_; + } else { + return networkConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1.NetworkConfig network_config = 27; + */ + public Builder setNetworkConfig(com.google.container.v1.NetworkConfig value) { + if (networkConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkConfig_ = value; + } else { + networkConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + /** + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1.NetworkConfig network_config = 27; + */ + public Builder setNetworkConfig( + com.google.container.v1.NetworkConfig.Builder builderForValue) { + if (networkConfigBuilder_ == null) { + networkConfig_ = builderForValue.build(); + } else { + networkConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + /** + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1.NetworkConfig network_config = 27; + */ + public Builder mergeNetworkConfig(com.google.container.v1.NetworkConfig value) { + if (networkConfigBuilder_ == null) { + if (((bitField0_ & 0x00800000) != 0) && + networkConfig_ != null && + networkConfig_ != com.google.container.v1.NetworkConfig.getDefaultInstance()) { + getNetworkConfigBuilder().mergeFrom(value); + } else { + networkConfig_ = value; + } + } else { + networkConfigBuilder_.mergeFrom(value); + } + if (networkConfig_ != null) { + bitField0_ |= 0x00800000; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1.NetworkConfig network_config = 27; + */ + public Builder clearNetworkConfig() { + bitField0_ = (bitField0_ & ~0x00800000); + networkConfig_ = null; + if (networkConfigBuilder_ != null) { + networkConfigBuilder_.dispose(); + networkConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1.NetworkConfig network_config = 27; + */ + public com.google.container.v1.NetworkConfig.Builder getNetworkConfigBuilder() { + bitField0_ |= 0x00800000; + onChanged(); + return getNetworkConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1.NetworkConfig network_config = 27; + */ + public com.google.container.v1.NetworkConfigOrBuilder getNetworkConfigOrBuilder() { + if (networkConfigBuilder_ != null) { + return networkConfigBuilder_.getMessageOrBuilder(); + } else { + return networkConfig_ == null ? + com.google.container.v1.NetworkConfig.getDefaultInstance() : networkConfig_; + } + } + /** + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1.NetworkConfig network_config = 27; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkConfig, com.google.container.v1.NetworkConfig.Builder, com.google.container.v1.NetworkConfigOrBuilder> + getNetworkConfigFieldBuilder() { + if (networkConfigBuilder_ == null) { + networkConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkConfig, com.google.container.v1.NetworkConfig.Builder, com.google.container.v1.NetworkConfigOrBuilder>( + getNetworkConfig(), + getParentForChildren(), + isClean()); + networkConfig_ = null; + } + return networkConfigBuilder_; + } + + private com.google.container.v1.MaxPodsConstraint defaultMaxPodsConstraint_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MaxPodsConstraint, com.google.container.v1.MaxPodsConstraint.Builder, com.google.container.v1.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.v1.MaxPodsConstraint default_max_pods_constraint = 30; + * @return Whether the defaultMaxPodsConstraint field is set. + */ + public boolean hasDefaultMaxPodsConstraint() { + return ((bitField0_ & 0x01000000) != 0); + } + /** + *
+     * 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.v1.MaxPodsConstraint default_max_pods_constraint = 30; + * @return The defaultMaxPodsConstraint. + */ + public com.google.container.v1.MaxPodsConstraint getDefaultMaxPodsConstraint() { + if (defaultMaxPodsConstraintBuilder_ == null) { + return defaultMaxPodsConstraint_ == null ? com.google.container.v1.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.v1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + public Builder setDefaultMaxPodsConstraint(com.google.container.v1.MaxPodsConstraint value) { + if (defaultMaxPodsConstraintBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultMaxPodsConstraint_ = value; + } else { + defaultMaxPodsConstraintBuilder_.setMessage(value); + } + bitField0_ |= 0x01000000; + onChanged(); + 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.v1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + public Builder setDefaultMaxPodsConstraint( + com.google.container.v1.MaxPodsConstraint.Builder builderForValue) { + if (defaultMaxPodsConstraintBuilder_ == null) { + defaultMaxPodsConstraint_ = builderForValue.build(); + } else { + defaultMaxPodsConstraintBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x01000000; + onChanged(); + 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.v1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + public Builder mergeDefaultMaxPodsConstraint(com.google.container.v1.MaxPodsConstraint value) { + if (defaultMaxPodsConstraintBuilder_ == null) { + if (((bitField0_ & 0x01000000) != 0) && + defaultMaxPodsConstraint_ != null && + defaultMaxPodsConstraint_ != com.google.container.v1.MaxPodsConstraint.getDefaultInstance()) { + getDefaultMaxPodsConstraintBuilder().mergeFrom(value); + } else { + defaultMaxPodsConstraint_ = value; + } + } else { + defaultMaxPodsConstraintBuilder_.mergeFrom(value); + } + if (defaultMaxPodsConstraint_ != null) { + bitField0_ |= 0x01000000; + onChanged(); + } + 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.v1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + public Builder clearDefaultMaxPodsConstraint() { + bitField0_ = (bitField0_ & ~0x01000000); + defaultMaxPodsConstraint_ = null; + if (defaultMaxPodsConstraintBuilder_ != null) { + defaultMaxPodsConstraintBuilder_.dispose(); + defaultMaxPodsConstraintBuilder_ = null; + } + onChanged(); + 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.v1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + public com.google.container.v1.MaxPodsConstraint.Builder getDefaultMaxPodsConstraintBuilder() { + bitField0_ |= 0x01000000; + 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.v1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + public com.google.container.v1.MaxPodsConstraintOrBuilder getDefaultMaxPodsConstraintOrBuilder() { + if (defaultMaxPodsConstraintBuilder_ != null) { + return defaultMaxPodsConstraintBuilder_.getMessageOrBuilder(); + } else { + return defaultMaxPodsConstraint_ == null ? + com.google.container.v1.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.v1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MaxPodsConstraint, com.google.container.v1.MaxPodsConstraint.Builder, com.google.container.v1.MaxPodsConstraintOrBuilder> + getDefaultMaxPodsConstraintFieldBuilder() { + if (defaultMaxPodsConstraintBuilder_ == null) { + defaultMaxPodsConstraintBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MaxPodsConstraint, com.google.container.v1.MaxPodsConstraint.Builder, com.google.container.v1.MaxPodsConstraintOrBuilder>( + getDefaultMaxPodsConstraint(), + getParentForChildren(), + isClean()); + defaultMaxPodsConstraint_ = null; + } + return defaultMaxPodsConstraintBuilder_; + } + + private com.google.container.v1.ResourceUsageExportConfig resourceUsageExportConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ResourceUsageExportConfig, com.google.container.v1.ResourceUsageExportConfig.Builder, com.google.container.v1.ResourceUsageExportConfigOrBuilder> resourceUsageExportConfigBuilder_; + /** + *
+     * Configuration for exporting resource usages. Resource usage export is
+     * disabled when this config is unspecified.
+     * 
+ * + * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; + * @return Whether the resourceUsageExportConfig field is set. + */ + public boolean hasResourceUsageExportConfig() { + return ((bitField0_ & 0x02000000) != 0); + } + /** + *
+     * Configuration for exporting resource usages. Resource usage export is
+     * disabled when this config is unspecified.
+     * 
+ * + * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; + * @return The resourceUsageExportConfig. + */ + public com.google.container.v1.ResourceUsageExportConfig getResourceUsageExportConfig() { + if (resourceUsageExportConfigBuilder_ == null) { + return resourceUsageExportConfig_ == null ? com.google.container.v1.ResourceUsageExportConfig.getDefaultInstance() : resourceUsageExportConfig_; + } else { + return resourceUsageExportConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for exporting resource usages. Resource usage export is
+     * disabled when this config is unspecified.
+     * 
+ * + * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; + */ + public Builder setResourceUsageExportConfig(com.google.container.v1.ResourceUsageExportConfig value) { + if (resourceUsageExportConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resourceUsageExportConfig_ = value; + } else { + resourceUsageExportConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + /** + *
+     * Configuration for exporting resource usages. Resource usage export is
+     * disabled when this config is unspecified.
+     * 
+ * + * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; + */ + public Builder setResourceUsageExportConfig( + com.google.container.v1.ResourceUsageExportConfig.Builder builderForValue) { + if (resourceUsageExportConfigBuilder_ == null) { + resourceUsageExportConfig_ = builderForValue.build(); + } else { + resourceUsageExportConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + /** + *
+     * Configuration for exporting resource usages. Resource usage export is
+     * disabled when this config is unspecified.
+     * 
+ * + * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; + */ + public Builder mergeResourceUsageExportConfig(com.google.container.v1.ResourceUsageExportConfig value) { + if (resourceUsageExportConfigBuilder_ == null) { + if (((bitField0_ & 0x02000000) != 0) && + resourceUsageExportConfig_ != null && + resourceUsageExportConfig_ != com.google.container.v1.ResourceUsageExportConfig.getDefaultInstance()) { + getResourceUsageExportConfigBuilder().mergeFrom(value); + } else { + resourceUsageExportConfig_ = value; + } + } else { + resourceUsageExportConfigBuilder_.mergeFrom(value); + } + if (resourceUsageExportConfig_ != null) { + bitField0_ |= 0x02000000; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for exporting resource usages. Resource usage export is
+     * disabled when this config is unspecified.
+     * 
+ * + * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; + */ + public Builder clearResourceUsageExportConfig() { + bitField0_ = (bitField0_ & ~0x02000000); + resourceUsageExportConfig_ = null; + if (resourceUsageExportConfigBuilder_ != null) { + resourceUsageExportConfigBuilder_.dispose(); + resourceUsageExportConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for exporting resource usages. Resource usage export is
+     * disabled when this config is unspecified.
+     * 
+ * + * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; + */ + public com.google.container.v1.ResourceUsageExportConfig.Builder getResourceUsageExportConfigBuilder() { + bitField0_ |= 0x02000000; + onChanged(); + return getResourceUsageExportConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for exporting resource usages. Resource usage export is
+     * disabled when this config is unspecified.
+     * 
+ * + * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; + */ + public com.google.container.v1.ResourceUsageExportConfigOrBuilder getResourceUsageExportConfigOrBuilder() { + if (resourceUsageExportConfigBuilder_ != null) { + return resourceUsageExportConfigBuilder_.getMessageOrBuilder(); + } else { + return resourceUsageExportConfig_ == null ? + com.google.container.v1.ResourceUsageExportConfig.getDefaultInstance() : resourceUsageExportConfig_; + } + } + /** + *
+     * Configuration for exporting resource usages. Resource usage export is
+     * disabled when this config is unspecified.
+     * 
+ * + * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ResourceUsageExportConfig, com.google.container.v1.ResourceUsageExportConfig.Builder, com.google.container.v1.ResourceUsageExportConfigOrBuilder> + getResourceUsageExportConfigFieldBuilder() { + if (resourceUsageExportConfigBuilder_ == null) { + resourceUsageExportConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ResourceUsageExportConfig, com.google.container.v1.ResourceUsageExportConfig.Builder, com.google.container.v1.ResourceUsageExportConfigOrBuilder>( + getResourceUsageExportConfig(), + getParentForChildren(), + isClean()); + resourceUsageExportConfig_ = null; + } + return resourceUsageExportConfigBuilder_; + } + + private com.google.container.v1.AuthenticatorGroupsConfig authenticatorGroupsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AuthenticatorGroupsConfig, com.google.container.v1.AuthenticatorGroupsConfig.Builder, com.google.container.v1.AuthenticatorGroupsConfigOrBuilder> authenticatorGroupsConfigBuilder_; + /** + *
+     * Configuration controlling RBAC group membership information.
+     * 
+ * + * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * @return Whether the authenticatorGroupsConfig field is set. + */ + public boolean hasAuthenticatorGroupsConfig() { + return ((bitField0_ & 0x04000000) != 0); + } + /** + *
+     * Configuration controlling RBAC group membership information.
+     * 
+ * + * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * @return The authenticatorGroupsConfig. + */ + public com.google.container.v1.AuthenticatorGroupsConfig getAuthenticatorGroupsConfig() { + if (authenticatorGroupsConfigBuilder_ == null) { + return authenticatorGroupsConfig_ == null ? com.google.container.v1.AuthenticatorGroupsConfig.getDefaultInstance() : authenticatorGroupsConfig_; + } else { + return authenticatorGroupsConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configuration controlling RBAC group membership information.
+     * 
+ * + * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + */ + public Builder setAuthenticatorGroupsConfig(com.google.container.v1.AuthenticatorGroupsConfig value) { + if (authenticatorGroupsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authenticatorGroupsConfig_ = value; + } else { + authenticatorGroupsConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x04000000; + onChanged(); + return this; + } + /** + *
+     * Configuration controlling RBAC group membership information.
+     * 
+ * + * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + */ + public Builder setAuthenticatorGroupsConfig( + com.google.container.v1.AuthenticatorGroupsConfig.Builder builderForValue) { + if (authenticatorGroupsConfigBuilder_ == null) { + authenticatorGroupsConfig_ = builderForValue.build(); + } else { + authenticatorGroupsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x04000000; + onChanged(); + return this; + } + /** + *
+     * Configuration controlling RBAC group membership information.
+     * 
+ * + * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + */ + public Builder mergeAuthenticatorGroupsConfig(com.google.container.v1.AuthenticatorGroupsConfig value) { + if (authenticatorGroupsConfigBuilder_ == null) { + if (((bitField0_ & 0x04000000) != 0) && + authenticatorGroupsConfig_ != null && + authenticatorGroupsConfig_ != com.google.container.v1.AuthenticatorGroupsConfig.getDefaultInstance()) { + getAuthenticatorGroupsConfigBuilder().mergeFrom(value); + } else { + authenticatorGroupsConfig_ = value; + } + } else { + authenticatorGroupsConfigBuilder_.mergeFrom(value); + } + if (authenticatorGroupsConfig_ != null) { + bitField0_ |= 0x04000000; + onChanged(); + } + return this; + } + /** + *
+     * Configuration controlling RBAC group membership information.
+     * 
+ * + * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + */ + public Builder clearAuthenticatorGroupsConfig() { + bitField0_ = (bitField0_ & ~0x04000000); + authenticatorGroupsConfig_ = null; + if (authenticatorGroupsConfigBuilder_ != null) { + authenticatorGroupsConfigBuilder_.dispose(); + authenticatorGroupsConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration controlling RBAC group membership information.
+     * 
+ * + * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + */ + public com.google.container.v1.AuthenticatorGroupsConfig.Builder getAuthenticatorGroupsConfigBuilder() { + bitField0_ |= 0x04000000; + onChanged(); + return getAuthenticatorGroupsConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration controlling RBAC group membership information.
+     * 
+ * + * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + */ + public com.google.container.v1.AuthenticatorGroupsConfigOrBuilder getAuthenticatorGroupsConfigOrBuilder() { + if (authenticatorGroupsConfigBuilder_ != null) { + return authenticatorGroupsConfigBuilder_.getMessageOrBuilder(); + } else { + return authenticatorGroupsConfig_ == null ? + com.google.container.v1.AuthenticatorGroupsConfig.getDefaultInstance() : authenticatorGroupsConfig_; + } + } + /** + *
+     * Configuration controlling RBAC group membership information.
+     * 
+ * + * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AuthenticatorGroupsConfig, com.google.container.v1.AuthenticatorGroupsConfig.Builder, com.google.container.v1.AuthenticatorGroupsConfigOrBuilder> + getAuthenticatorGroupsConfigFieldBuilder() { + if (authenticatorGroupsConfigBuilder_ == null) { + authenticatorGroupsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AuthenticatorGroupsConfig, com.google.container.v1.AuthenticatorGroupsConfig.Builder, com.google.container.v1.AuthenticatorGroupsConfigOrBuilder>( + getAuthenticatorGroupsConfig(), + getParentForChildren(), + isClean()); + authenticatorGroupsConfig_ = null; + } + return authenticatorGroupsConfigBuilder_; + } + + private com.google.container.v1.PrivateClusterConfig privateClusterConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.PrivateClusterConfig, com.google.container.v1.PrivateClusterConfig.Builder, com.google.container.v1.PrivateClusterConfigOrBuilder> privateClusterConfigBuilder_; + /** + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; + * @return Whether the privateClusterConfig field is set. + */ + public boolean hasPrivateClusterConfig() { + return ((bitField0_ & 0x08000000) != 0); + } + /** + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; + * @return The privateClusterConfig. + */ + public com.google.container.v1.PrivateClusterConfig getPrivateClusterConfig() { + if (privateClusterConfigBuilder_ == null) { + return privateClusterConfig_ == null ? com.google.container.v1.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; + } else { + return privateClusterConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; + */ + public Builder setPrivateClusterConfig(com.google.container.v1.PrivateClusterConfig value) { + if (privateClusterConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + privateClusterConfig_ = value; + } else { + privateClusterConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + /** + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; + */ + public Builder setPrivateClusterConfig( + com.google.container.v1.PrivateClusterConfig.Builder builderForValue) { + if (privateClusterConfigBuilder_ == null) { + privateClusterConfig_ = builderForValue.build(); + } else { + privateClusterConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + /** + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; + */ + public Builder mergePrivateClusterConfig(com.google.container.v1.PrivateClusterConfig value) { + if (privateClusterConfigBuilder_ == null) { + if (((bitField0_ & 0x08000000) != 0) && + privateClusterConfig_ != null && + privateClusterConfig_ != com.google.container.v1.PrivateClusterConfig.getDefaultInstance()) { + getPrivateClusterConfigBuilder().mergeFrom(value); + } else { + privateClusterConfig_ = value; + } + } else { + privateClusterConfigBuilder_.mergeFrom(value); + } + if (privateClusterConfig_ != null) { + bitField0_ |= 0x08000000; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; + */ + public Builder clearPrivateClusterConfig() { + bitField0_ = (bitField0_ & ~0x08000000); + privateClusterConfig_ = null; + if (privateClusterConfigBuilder_ != null) { + privateClusterConfigBuilder_.dispose(); + privateClusterConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; + */ + public com.google.container.v1.PrivateClusterConfig.Builder getPrivateClusterConfigBuilder() { + bitField0_ |= 0x08000000; + onChanged(); + return getPrivateClusterConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; + */ + public com.google.container.v1.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder() { + if (privateClusterConfigBuilder_ != null) { + return privateClusterConfigBuilder_.getMessageOrBuilder(); + } else { + return privateClusterConfig_ == null ? + com.google.container.v1.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; + } + } + /** + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.PrivateClusterConfig, com.google.container.v1.PrivateClusterConfig.Builder, com.google.container.v1.PrivateClusterConfigOrBuilder> + getPrivateClusterConfigFieldBuilder() { + if (privateClusterConfigBuilder_ == null) { + privateClusterConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.PrivateClusterConfig, com.google.container.v1.PrivateClusterConfig.Builder, com.google.container.v1.PrivateClusterConfigOrBuilder>( + getPrivateClusterConfig(), + getParentForChildren(), + isClean()); + privateClusterConfig_ = null; + } + return privateClusterConfigBuilder_; + } + + private com.google.container.v1.DatabaseEncryption databaseEncryption_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DatabaseEncryption, com.google.container.v1.DatabaseEncryption.Builder, com.google.container.v1.DatabaseEncryptionOrBuilder> databaseEncryptionBuilder_; + /** + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1.DatabaseEncryption database_encryption = 38; + * @return Whether the databaseEncryption field is set. + */ + public boolean hasDatabaseEncryption() { + return ((bitField0_ & 0x10000000) != 0); + } + /** + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1.DatabaseEncryption database_encryption = 38; + * @return The databaseEncryption. + */ + public com.google.container.v1.DatabaseEncryption getDatabaseEncryption() { + if (databaseEncryptionBuilder_ == null) { + return databaseEncryption_ == null ? com.google.container.v1.DatabaseEncryption.getDefaultInstance() : databaseEncryption_; + } else { + return databaseEncryptionBuilder_.getMessage(); + } + } + /** + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1.DatabaseEncryption database_encryption = 38; + */ + public Builder setDatabaseEncryption(com.google.container.v1.DatabaseEncryption value) { + if (databaseEncryptionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + databaseEncryption_ = value; + } else { + databaseEncryptionBuilder_.setMessage(value); + } + bitField0_ |= 0x10000000; + onChanged(); + return this; + } + /** + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1.DatabaseEncryption database_encryption = 38; + */ + public Builder setDatabaseEncryption( + com.google.container.v1.DatabaseEncryption.Builder builderForValue) { + if (databaseEncryptionBuilder_ == null) { + databaseEncryption_ = builderForValue.build(); + } else { + databaseEncryptionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x10000000; + onChanged(); + return this; + } + /** + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1.DatabaseEncryption database_encryption = 38; + */ + public Builder mergeDatabaseEncryption(com.google.container.v1.DatabaseEncryption value) { + if (databaseEncryptionBuilder_ == null) { + if (((bitField0_ & 0x10000000) != 0) && + databaseEncryption_ != null && + databaseEncryption_ != com.google.container.v1.DatabaseEncryption.getDefaultInstance()) { + getDatabaseEncryptionBuilder().mergeFrom(value); + } else { + databaseEncryption_ = value; + } + } else { + databaseEncryptionBuilder_.mergeFrom(value); + } + if (databaseEncryption_ != null) { + bitField0_ |= 0x10000000; + onChanged(); + } + return this; + } + /** + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1.DatabaseEncryption database_encryption = 38; + */ + public Builder clearDatabaseEncryption() { + bitField0_ = (bitField0_ & ~0x10000000); + databaseEncryption_ = null; + if (databaseEncryptionBuilder_ != null) { + databaseEncryptionBuilder_.dispose(); + databaseEncryptionBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1.DatabaseEncryption database_encryption = 38; + */ + public com.google.container.v1.DatabaseEncryption.Builder getDatabaseEncryptionBuilder() { + bitField0_ |= 0x10000000; + onChanged(); + return getDatabaseEncryptionFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1.DatabaseEncryption database_encryption = 38; + */ + public com.google.container.v1.DatabaseEncryptionOrBuilder getDatabaseEncryptionOrBuilder() { + if (databaseEncryptionBuilder_ != null) { + return databaseEncryptionBuilder_.getMessageOrBuilder(); + } else { + return databaseEncryption_ == null ? + com.google.container.v1.DatabaseEncryption.getDefaultInstance() : databaseEncryption_; + } + } + /** + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1.DatabaseEncryption database_encryption = 38; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DatabaseEncryption, com.google.container.v1.DatabaseEncryption.Builder, com.google.container.v1.DatabaseEncryptionOrBuilder> + getDatabaseEncryptionFieldBuilder() { + if (databaseEncryptionBuilder_ == null) { + databaseEncryptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DatabaseEncryption, com.google.container.v1.DatabaseEncryption.Builder, com.google.container.v1.DatabaseEncryptionOrBuilder>( + getDatabaseEncryption(), + getParentForChildren(), + isClean()); + databaseEncryption_ = null; + } + return databaseEncryptionBuilder_; + } + + private com.google.container.v1.VerticalPodAutoscaling verticalPodAutoscaling_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.VerticalPodAutoscaling, com.google.container.v1.VerticalPodAutoscaling.Builder, com.google.container.v1.VerticalPodAutoscalingOrBuilder> verticalPodAutoscalingBuilder_; + /** + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + * @return Whether the verticalPodAutoscaling field is set. + */ + public boolean hasVerticalPodAutoscaling() { + return ((bitField0_ & 0x20000000) != 0); + } + /** + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + * @return The verticalPodAutoscaling. + */ + public com.google.container.v1.VerticalPodAutoscaling getVerticalPodAutoscaling() { + if (verticalPodAutoscalingBuilder_ == null) { + return verticalPodAutoscaling_ == null ? com.google.container.v1.VerticalPodAutoscaling.getDefaultInstance() : verticalPodAutoscaling_; + } else { + return verticalPodAutoscalingBuilder_.getMessage(); + } + } + /** + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + */ + public Builder setVerticalPodAutoscaling(com.google.container.v1.VerticalPodAutoscaling value) { + if (verticalPodAutoscalingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + verticalPodAutoscaling_ = value; + } else { + verticalPodAutoscalingBuilder_.setMessage(value); + } + bitField0_ |= 0x20000000; + onChanged(); + return this; + } + /** + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + */ + public Builder setVerticalPodAutoscaling( + com.google.container.v1.VerticalPodAutoscaling.Builder builderForValue) { + if (verticalPodAutoscalingBuilder_ == null) { + verticalPodAutoscaling_ = builderForValue.build(); + } else { + verticalPodAutoscalingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x20000000; + onChanged(); + return this; + } + /** + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + */ + public Builder mergeVerticalPodAutoscaling(com.google.container.v1.VerticalPodAutoscaling value) { + if (verticalPodAutoscalingBuilder_ == null) { + if (((bitField0_ & 0x20000000) != 0) && + verticalPodAutoscaling_ != null && + verticalPodAutoscaling_ != com.google.container.v1.VerticalPodAutoscaling.getDefaultInstance()) { + getVerticalPodAutoscalingBuilder().mergeFrom(value); + } else { + verticalPodAutoscaling_ = value; + } + } else { + verticalPodAutoscalingBuilder_.mergeFrom(value); + } + if (verticalPodAutoscaling_ != null) { + bitField0_ |= 0x20000000; + onChanged(); + } + return this; + } + /** + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + */ + public Builder clearVerticalPodAutoscaling() { + bitField0_ = (bitField0_ & ~0x20000000); + verticalPodAutoscaling_ = null; + if (verticalPodAutoscalingBuilder_ != null) { + verticalPodAutoscalingBuilder_.dispose(); + verticalPodAutoscalingBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + */ + public com.google.container.v1.VerticalPodAutoscaling.Builder getVerticalPodAutoscalingBuilder() { + bitField0_ |= 0x20000000; + onChanged(); + return getVerticalPodAutoscalingFieldBuilder().getBuilder(); + } + /** + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + */ + public com.google.container.v1.VerticalPodAutoscalingOrBuilder getVerticalPodAutoscalingOrBuilder() { + if (verticalPodAutoscalingBuilder_ != null) { + return verticalPodAutoscalingBuilder_.getMessageOrBuilder(); + } else { + return verticalPodAutoscaling_ == null ? + com.google.container.v1.VerticalPodAutoscaling.getDefaultInstance() : verticalPodAutoscaling_; + } + } + /** + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.VerticalPodAutoscaling, com.google.container.v1.VerticalPodAutoscaling.Builder, com.google.container.v1.VerticalPodAutoscalingOrBuilder> + getVerticalPodAutoscalingFieldBuilder() { + if (verticalPodAutoscalingBuilder_ == null) { + verticalPodAutoscalingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.VerticalPodAutoscaling, com.google.container.v1.VerticalPodAutoscaling.Builder, com.google.container.v1.VerticalPodAutoscalingOrBuilder>( + getVerticalPodAutoscaling(), + getParentForChildren(), + isClean()); + verticalPodAutoscaling_ = null; + } + return verticalPodAutoscalingBuilder_; + } + + private com.google.container.v1.ShieldedNodes shieldedNodes_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ShieldedNodes, com.google.container.v1.ShieldedNodes.Builder, com.google.container.v1.ShieldedNodesOrBuilder> shieldedNodesBuilder_; + /** + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + * @return Whether the shieldedNodes field is set. + */ + public boolean hasShieldedNodes() { + return ((bitField0_ & 0x40000000) != 0); + } + /** + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + * @return The shieldedNodes. + */ + public com.google.container.v1.ShieldedNodes getShieldedNodes() { + if (shieldedNodesBuilder_ == null) { + return shieldedNodes_ == null ? com.google.container.v1.ShieldedNodes.getDefaultInstance() : shieldedNodes_; + } else { + return shieldedNodesBuilder_.getMessage(); + } + } + /** + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + */ + public Builder setShieldedNodes(com.google.container.v1.ShieldedNodes value) { + if (shieldedNodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + shieldedNodes_ = value; + } else { + shieldedNodesBuilder_.setMessage(value); + } + bitField0_ |= 0x40000000; + onChanged(); + return this; + } + /** + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + */ + public Builder setShieldedNodes( + com.google.container.v1.ShieldedNodes.Builder builderForValue) { + if (shieldedNodesBuilder_ == null) { + shieldedNodes_ = builderForValue.build(); + } else { + shieldedNodesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x40000000; + onChanged(); + return this; + } + /** + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + */ + public Builder mergeShieldedNodes(com.google.container.v1.ShieldedNodes value) { + if (shieldedNodesBuilder_ == null) { + if (((bitField0_ & 0x40000000) != 0) && + shieldedNodes_ != null && + shieldedNodes_ != com.google.container.v1.ShieldedNodes.getDefaultInstance()) { + getShieldedNodesBuilder().mergeFrom(value); + } else { + shieldedNodes_ = value; + } + } else { + shieldedNodesBuilder_.mergeFrom(value); + } + if (shieldedNodes_ != null) { + bitField0_ |= 0x40000000; + onChanged(); + } + return this; + } + /** + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + */ + public Builder clearShieldedNodes() { + bitField0_ = (bitField0_ & ~0x40000000); + shieldedNodes_ = null; + if (shieldedNodesBuilder_ != null) { + shieldedNodesBuilder_.dispose(); + shieldedNodesBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + */ + public com.google.container.v1.ShieldedNodes.Builder getShieldedNodesBuilder() { + bitField0_ |= 0x40000000; + onChanged(); + return getShieldedNodesFieldBuilder().getBuilder(); + } + /** + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + */ + public com.google.container.v1.ShieldedNodesOrBuilder getShieldedNodesOrBuilder() { + if (shieldedNodesBuilder_ != null) { + return shieldedNodesBuilder_.getMessageOrBuilder(); + } else { + return shieldedNodes_ == null ? + com.google.container.v1.ShieldedNodes.getDefaultInstance() : shieldedNodes_; + } + } + /** + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ShieldedNodes, com.google.container.v1.ShieldedNodes.Builder, com.google.container.v1.ShieldedNodesOrBuilder> + getShieldedNodesFieldBuilder() { + if (shieldedNodesBuilder_ == null) { + shieldedNodesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ShieldedNodes, com.google.container.v1.ShieldedNodes.Builder, com.google.container.v1.ShieldedNodesOrBuilder>( + getShieldedNodes(), + getParentForChildren(), + isClean()); + shieldedNodes_ = null; + } + return shieldedNodesBuilder_; + } + + private com.google.container.v1.ReleaseChannel releaseChannel_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ReleaseChannel, com.google.container.v1.ReleaseChannel.Builder, com.google.container.v1.ReleaseChannelOrBuilder> releaseChannelBuilder_; + /** + *
+     * Release channel configuration. If left unspecified on cluster creation and
+     * a version is specified, the cluster is enrolled in the most mature release
+     * channel where the version is available (first checking STABLE, then
+     * REGULAR, and finally RAPID). Otherwise, if no release channel
+     * configuration and no version is specified, the cluster is enrolled in the
+     * REGULAR channel with its default version.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + * @return Whether the releaseChannel field is set. + */ + public boolean hasReleaseChannel() { + return ((bitField0_ & 0x80000000) != 0); + } + /** + *
+     * Release channel configuration. If left unspecified on cluster creation and
+     * a version is specified, the cluster is enrolled in the most mature release
+     * channel where the version is available (first checking STABLE, then
+     * REGULAR, and finally RAPID). Otherwise, if no release channel
+     * configuration and no version is specified, the cluster is enrolled in the
+     * REGULAR channel with its default version.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + * @return The releaseChannel. + */ + public com.google.container.v1.ReleaseChannel getReleaseChannel() { + if (releaseChannelBuilder_ == null) { + return releaseChannel_ == null ? com.google.container.v1.ReleaseChannel.getDefaultInstance() : releaseChannel_; + } else { + return releaseChannelBuilder_.getMessage(); + } + } + /** + *
+     * Release channel configuration. If left unspecified on cluster creation and
+     * a version is specified, the cluster is enrolled in the most mature release
+     * channel where the version is available (first checking STABLE, then
+     * REGULAR, and finally RAPID). Otherwise, if no release channel
+     * configuration and no version is specified, the cluster is enrolled in the
+     * REGULAR channel with its default version.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + */ + public Builder setReleaseChannel(com.google.container.v1.ReleaseChannel value) { + if (releaseChannelBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + releaseChannel_ = value; + } else { + releaseChannelBuilder_.setMessage(value); + } + bitField0_ |= 0x80000000; + onChanged(); + return this; + } + /** + *
+     * Release channel configuration. If left unspecified on cluster creation and
+     * a version is specified, the cluster is enrolled in the most mature release
+     * channel where the version is available (first checking STABLE, then
+     * REGULAR, and finally RAPID). Otherwise, if no release channel
+     * configuration and no version is specified, the cluster is enrolled in the
+     * REGULAR channel with its default version.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + */ + public Builder setReleaseChannel( + com.google.container.v1.ReleaseChannel.Builder builderForValue) { + if (releaseChannelBuilder_ == null) { + releaseChannel_ = builderForValue.build(); + } else { + releaseChannelBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x80000000; + onChanged(); + return this; + } + /** + *
+     * Release channel configuration. If left unspecified on cluster creation and
+     * a version is specified, the cluster is enrolled in the most mature release
+     * channel where the version is available (first checking STABLE, then
+     * REGULAR, and finally RAPID). Otherwise, if no release channel
+     * configuration and no version is specified, the cluster is enrolled in the
+     * REGULAR channel with its default version.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + */ + public Builder mergeReleaseChannel(com.google.container.v1.ReleaseChannel value) { + if (releaseChannelBuilder_ == null) { + if (((bitField0_ & 0x80000000) != 0) && + releaseChannel_ != null && + releaseChannel_ != com.google.container.v1.ReleaseChannel.getDefaultInstance()) { + getReleaseChannelBuilder().mergeFrom(value); + } else { + releaseChannel_ = value; + } + } else { + releaseChannelBuilder_.mergeFrom(value); + } + if (releaseChannel_ != null) { + bitField0_ |= 0x80000000; + onChanged(); + } + return this; + } + /** + *
+     * Release channel configuration. If left unspecified on cluster creation and
+     * a version is specified, the cluster is enrolled in the most mature release
+     * channel where the version is available (first checking STABLE, then
+     * REGULAR, and finally RAPID). Otherwise, if no release channel
+     * configuration and no version is specified, the cluster is enrolled in the
+     * REGULAR channel with its default version.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + */ + public Builder clearReleaseChannel() { + bitField0_ = (bitField0_ & ~0x80000000); + releaseChannel_ = null; + if (releaseChannelBuilder_ != null) { + releaseChannelBuilder_.dispose(); + releaseChannelBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Release channel configuration. If left unspecified on cluster creation and
+     * a version is specified, the cluster is enrolled in the most mature release
+     * channel where the version is available (first checking STABLE, then
+     * REGULAR, and finally RAPID). Otherwise, if no release channel
+     * configuration and no version is specified, the cluster is enrolled in the
+     * REGULAR channel with its default version.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + */ + public com.google.container.v1.ReleaseChannel.Builder getReleaseChannelBuilder() { + bitField0_ |= 0x80000000; + onChanged(); + return getReleaseChannelFieldBuilder().getBuilder(); + } + /** + *
+     * Release channel configuration. If left unspecified on cluster creation and
+     * a version is specified, the cluster is enrolled in the most mature release
+     * channel where the version is available (first checking STABLE, then
+     * REGULAR, and finally RAPID). Otherwise, if no release channel
+     * configuration and no version is specified, the cluster is enrolled in the
+     * REGULAR channel with its default version.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + */ + public com.google.container.v1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder() { + if (releaseChannelBuilder_ != null) { + return releaseChannelBuilder_.getMessageOrBuilder(); + } else { + return releaseChannel_ == null ? + com.google.container.v1.ReleaseChannel.getDefaultInstance() : releaseChannel_; + } + } + /** + *
+     * Release channel configuration. If left unspecified on cluster creation and
+     * a version is specified, the cluster is enrolled in the most mature release
+     * channel where the version is available (first checking STABLE, then
+     * REGULAR, and finally RAPID). Otherwise, if no release channel
+     * configuration and no version is specified, the cluster is enrolled in the
+     * REGULAR channel with its default version.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ReleaseChannel, com.google.container.v1.ReleaseChannel.Builder, com.google.container.v1.ReleaseChannelOrBuilder> + getReleaseChannelFieldBuilder() { + if (releaseChannelBuilder_ == null) { + releaseChannelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ReleaseChannel, com.google.container.v1.ReleaseChannel.Builder, com.google.container.v1.ReleaseChannelOrBuilder>( + getReleaseChannel(), + getParentForChildren(), + isClean()); + releaseChannel_ = null; + } + return releaseChannelBuilder_; + } + + private com.google.container.v1.WorkloadIdentityConfig workloadIdentityConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WorkloadIdentityConfig, com.google.container.v1.WorkloadIdentityConfig.Builder, com.google.container.v1.WorkloadIdentityConfigOrBuilder> workloadIdentityConfigBuilder_; + /** + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + * @return Whether the workloadIdentityConfig field is set. + */ + public boolean hasWorkloadIdentityConfig() { + return ((bitField1_ & 0x00000001) != 0); + } + /** + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + * @return The workloadIdentityConfig. + */ + public com.google.container.v1.WorkloadIdentityConfig getWorkloadIdentityConfig() { + if (workloadIdentityConfigBuilder_ == null) { + return workloadIdentityConfig_ == null ? com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance() : workloadIdentityConfig_; + } else { + return workloadIdentityConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + */ + public Builder setWorkloadIdentityConfig(com.google.container.v1.WorkloadIdentityConfig value) { + if (workloadIdentityConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workloadIdentityConfig_ = value; + } else { + workloadIdentityConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + */ + public Builder setWorkloadIdentityConfig( + com.google.container.v1.WorkloadIdentityConfig.Builder builderForValue) { + if (workloadIdentityConfigBuilder_ == null) { + workloadIdentityConfig_ = builderForValue.build(); + } else { + workloadIdentityConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + */ + public Builder mergeWorkloadIdentityConfig(com.google.container.v1.WorkloadIdentityConfig value) { + if (workloadIdentityConfigBuilder_ == null) { + if (((bitField1_ & 0x00000001) != 0) && + workloadIdentityConfig_ != null && + workloadIdentityConfig_ != com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance()) { + getWorkloadIdentityConfigBuilder().mergeFrom(value); + } else { + workloadIdentityConfig_ = value; + } + } else { + workloadIdentityConfigBuilder_.mergeFrom(value); + } + if (workloadIdentityConfig_ != null) { + bitField1_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + */ + public Builder clearWorkloadIdentityConfig() { + bitField1_ = (bitField1_ & ~0x00000001); + workloadIdentityConfig_ = null; + if (workloadIdentityConfigBuilder_ != null) { + workloadIdentityConfigBuilder_.dispose(); + workloadIdentityConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + */ + public com.google.container.v1.WorkloadIdentityConfig.Builder getWorkloadIdentityConfigBuilder() { + bitField1_ |= 0x00000001; + onChanged(); + return getWorkloadIdentityConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + */ + public com.google.container.v1.WorkloadIdentityConfigOrBuilder getWorkloadIdentityConfigOrBuilder() { + if (workloadIdentityConfigBuilder_ != null) { + return workloadIdentityConfigBuilder_.getMessageOrBuilder(); + } else { + return workloadIdentityConfig_ == null ? + com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance() : workloadIdentityConfig_; + } + } + /** + *
+     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+     * policies.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WorkloadIdentityConfig, com.google.container.v1.WorkloadIdentityConfig.Builder, com.google.container.v1.WorkloadIdentityConfigOrBuilder> + getWorkloadIdentityConfigFieldBuilder() { + if (workloadIdentityConfigBuilder_ == null) { + workloadIdentityConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WorkloadIdentityConfig, com.google.container.v1.WorkloadIdentityConfig.Builder, com.google.container.v1.WorkloadIdentityConfigOrBuilder>( + getWorkloadIdentityConfig(), + getParentForChildren(), + isClean()); + workloadIdentityConfig_ = null; + } + return workloadIdentityConfigBuilder_; + } + + private com.google.container.v1.MeshCertificates meshCertificates_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MeshCertificates, com.google.container.v1.MeshCertificates.Builder, com.google.container.v1.MeshCertificatesOrBuilder> meshCertificatesBuilder_; + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1.MeshCertificates mesh_certificates = 67; + * @return Whether the meshCertificates field is set. + */ + public boolean hasMeshCertificates() { + return ((bitField1_ & 0x00000002) != 0); + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1.MeshCertificates mesh_certificates = 67; + * @return The meshCertificates. + */ + public com.google.container.v1.MeshCertificates getMeshCertificates() { + if (meshCertificatesBuilder_ == null) { + return meshCertificates_ == null ? com.google.container.v1.MeshCertificates.getDefaultInstance() : meshCertificates_; + } else { + return meshCertificatesBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1.MeshCertificates mesh_certificates = 67; + */ + public Builder setMeshCertificates(com.google.container.v1.MeshCertificates value) { + if (meshCertificatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + meshCertificates_ = value; + } else { + meshCertificatesBuilder_.setMessage(value); + } + bitField1_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1.MeshCertificates mesh_certificates = 67; + */ + public Builder setMeshCertificates( + com.google.container.v1.MeshCertificates.Builder builderForValue) { + if (meshCertificatesBuilder_ == null) { + meshCertificates_ = builderForValue.build(); + } else { + meshCertificatesBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1.MeshCertificates mesh_certificates = 67; + */ + public Builder mergeMeshCertificates(com.google.container.v1.MeshCertificates value) { + if (meshCertificatesBuilder_ == null) { + if (((bitField1_ & 0x00000002) != 0) && + meshCertificates_ != null && + meshCertificates_ != com.google.container.v1.MeshCertificates.getDefaultInstance()) { + getMeshCertificatesBuilder().mergeFrom(value); + } else { + meshCertificates_ = value; + } + } else { + meshCertificatesBuilder_.mergeFrom(value); + } + if (meshCertificates_ != null) { + bitField1_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1.MeshCertificates mesh_certificates = 67; + */ + public Builder clearMeshCertificates() { + bitField1_ = (bitField1_ & ~0x00000002); + meshCertificates_ = null; + if (meshCertificatesBuilder_ != null) { + meshCertificatesBuilder_.dispose(); + meshCertificatesBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1.MeshCertificates mesh_certificates = 67; + */ + public com.google.container.v1.MeshCertificates.Builder getMeshCertificatesBuilder() { + bitField1_ |= 0x00000002; + onChanged(); + return getMeshCertificatesFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1.MeshCertificates mesh_certificates = 67; + */ + public com.google.container.v1.MeshCertificatesOrBuilder getMeshCertificatesOrBuilder() { + if (meshCertificatesBuilder_ != null) { + return meshCertificatesBuilder_.getMessageOrBuilder(); + } else { + return meshCertificates_ == null ? + com.google.container.v1.MeshCertificates.getDefaultInstance() : meshCertificates_; + } + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1.MeshCertificates mesh_certificates = 67; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MeshCertificates, com.google.container.v1.MeshCertificates.Builder, com.google.container.v1.MeshCertificatesOrBuilder> + getMeshCertificatesFieldBuilder() { + if (meshCertificatesBuilder_ == null) { + meshCertificatesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MeshCertificates, com.google.container.v1.MeshCertificates.Builder, com.google.container.v1.MeshCertificatesOrBuilder>( + getMeshCertificates(), + getParentForChildren(), + isClean()); + meshCertificates_ = null; + } + return meshCertificatesBuilder_; + } + + private com.google.container.v1.CostManagementConfig costManagementConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.CostManagementConfig, com.google.container.v1.CostManagementConfig.Builder, com.google.container.v1.CostManagementConfigOrBuilder> costManagementConfigBuilder_; + /** + *
+     * Configuration for the fine-grained cost management feature.
+     * 
+ * + * .google.container.v1.CostManagementConfig cost_management_config = 45; + * @return Whether the costManagementConfig field is set. + */ + public boolean hasCostManagementConfig() { + return ((bitField1_ & 0x00000004) != 0); + } + /** + *
+     * Configuration for the fine-grained cost management feature.
+     * 
+ * + * .google.container.v1.CostManagementConfig cost_management_config = 45; + * @return The costManagementConfig. + */ + public com.google.container.v1.CostManagementConfig getCostManagementConfig() { + if (costManagementConfigBuilder_ == null) { + return costManagementConfig_ == null ? com.google.container.v1.CostManagementConfig.getDefaultInstance() : costManagementConfig_; + } else { + return costManagementConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for the fine-grained cost management feature.
+     * 
+ * + * .google.container.v1.CostManagementConfig cost_management_config = 45; + */ + public Builder setCostManagementConfig(com.google.container.v1.CostManagementConfig value) { + if (costManagementConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + costManagementConfig_ = value; + } else { + costManagementConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Configuration for the fine-grained cost management feature.
+     * 
+ * + * .google.container.v1.CostManagementConfig cost_management_config = 45; + */ + public Builder setCostManagementConfig( + com.google.container.v1.CostManagementConfig.Builder builderForValue) { + if (costManagementConfigBuilder_ == null) { + costManagementConfig_ = builderForValue.build(); + } else { + costManagementConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Configuration for the fine-grained cost management feature.
+     * 
+ * + * .google.container.v1.CostManagementConfig cost_management_config = 45; + */ + public Builder mergeCostManagementConfig(com.google.container.v1.CostManagementConfig value) { + if (costManagementConfigBuilder_ == null) { + if (((bitField1_ & 0x00000004) != 0) && + costManagementConfig_ != null && + costManagementConfig_ != com.google.container.v1.CostManagementConfig.getDefaultInstance()) { + getCostManagementConfigBuilder().mergeFrom(value); + } else { + costManagementConfig_ = value; + } + } else { + costManagementConfigBuilder_.mergeFrom(value); + } + if (costManagementConfig_ != null) { + bitField1_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for the fine-grained cost management feature.
+     * 
+ * + * .google.container.v1.CostManagementConfig cost_management_config = 45; + */ + public Builder clearCostManagementConfig() { + bitField1_ = (bitField1_ & ~0x00000004); + costManagementConfig_ = null; + if (costManagementConfigBuilder_ != null) { + costManagementConfigBuilder_.dispose(); + costManagementConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for the fine-grained cost management feature.
+     * 
+ * + * .google.container.v1.CostManagementConfig cost_management_config = 45; + */ + public com.google.container.v1.CostManagementConfig.Builder getCostManagementConfigBuilder() { + bitField1_ |= 0x00000004; + onChanged(); + return getCostManagementConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for the fine-grained cost management feature.
+     * 
+ * + * .google.container.v1.CostManagementConfig cost_management_config = 45; + */ + public com.google.container.v1.CostManagementConfigOrBuilder getCostManagementConfigOrBuilder() { + if (costManagementConfigBuilder_ != null) { + return costManagementConfigBuilder_.getMessageOrBuilder(); + } else { + return costManagementConfig_ == null ? + com.google.container.v1.CostManagementConfig.getDefaultInstance() : costManagementConfig_; + } + } + /** + *
+     * Configuration for the fine-grained cost management feature.
+     * 
+ * + * .google.container.v1.CostManagementConfig cost_management_config = 45; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.CostManagementConfig, com.google.container.v1.CostManagementConfig.Builder, com.google.container.v1.CostManagementConfigOrBuilder> + getCostManagementConfigFieldBuilder() { + if (costManagementConfigBuilder_ == null) { + costManagementConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.CostManagementConfig, com.google.container.v1.CostManagementConfig.Builder, com.google.container.v1.CostManagementConfigOrBuilder>( + getCostManagementConfig(), + getParentForChildren(), + isClean()); + costManagementConfig_ = null; + } + return costManagementConfigBuilder_; + } + + private com.google.container.v1.NotificationConfig notificationConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NotificationConfig, com.google.container.v1.NotificationConfig.Builder, com.google.container.v1.NotificationConfigOrBuilder> notificationConfigBuilder_; + /** + *
+     * Notification configuration of the cluster.
+     * 
+ * + * .google.container.v1.NotificationConfig notification_config = 49; + * @return Whether the notificationConfig field is set. + */ + public boolean hasNotificationConfig() { + return ((bitField1_ & 0x00000008) != 0); + } + /** + *
+     * Notification configuration of the cluster.
+     * 
+ * + * .google.container.v1.NotificationConfig notification_config = 49; + * @return The notificationConfig. + */ + public com.google.container.v1.NotificationConfig getNotificationConfig() { + if (notificationConfigBuilder_ == null) { + return notificationConfig_ == null ? com.google.container.v1.NotificationConfig.getDefaultInstance() : notificationConfig_; + } else { + return notificationConfigBuilder_.getMessage(); + } + } + /** + *
+     * Notification configuration of the cluster.
+     * 
+ * + * .google.container.v1.NotificationConfig notification_config = 49; + */ + public Builder setNotificationConfig(com.google.container.v1.NotificationConfig value) { + if (notificationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + notificationConfig_ = value; + } else { + notificationConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Notification configuration of the cluster.
+     * 
+ * + * .google.container.v1.NotificationConfig notification_config = 49; + */ + public Builder setNotificationConfig( + com.google.container.v1.NotificationConfig.Builder builderForValue) { + if (notificationConfigBuilder_ == null) { + notificationConfig_ = builderForValue.build(); + } else { + notificationConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Notification configuration of the cluster.
+     * 
+ * + * .google.container.v1.NotificationConfig notification_config = 49; + */ + public Builder mergeNotificationConfig(com.google.container.v1.NotificationConfig value) { + if (notificationConfigBuilder_ == null) { + if (((bitField1_ & 0x00000008) != 0) && + notificationConfig_ != null && + notificationConfig_ != com.google.container.v1.NotificationConfig.getDefaultInstance()) { + getNotificationConfigBuilder().mergeFrom(value); + } else { + notificationConfig_ = value; + } + } else { + notificationConfigBuilder_.mergeFrom(value); + } + if (notificationConfig_ != null) { + bitField1_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + *
+     * Notification configuration of the cluster.
+     * 
+ * + * .google.container.v1.NotificationConfig notification_config = 49; + */ + public Builder clearNotificationConfig() { + bitField1_ = (bitField1_ & ~0x00000008); + notificationConfig_ = null; + if (notificationConfigBuilder_ != null) { + notificationConfigBuilder_.dispose(); + notificationConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Notification configuration of the cluster.
+     * 
+ * + * .google.container.v1.NotificationConfig notification_config = 49; + */ + public com.google.container.v1.NotificationConfig.Builder getNotificationConfigBuilder() { + bitField1_ |= 0x00000008; + onChanged(); + return getNotificationConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Notification configuration of the cluster.
+     * 
+ * + * .google.container.v1.NotificationConfig notification_config = 49; + */ + public com.google.container.v1.NotificationConfigOrBuilder getNotificationConfigOrBuilder() { + if (notificationConfigBuilder_ != null) { + return notificationConfigBuilder_.getMessageOrBuilder(); + } else { + return notificationConfig_ == null ? + com.google.container.v1.NotificationConfig.getDefaultInstance() : notificationConfig_; + } + } + /** + *
+     * Notification configuration of the cluster.
+     * 
+ * + * .google.container.v1.NotificationConfig notification_config = 49; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NotificationConfig, com.google.container.v1.NotificationConfig.Builder, com.google.container.v1.NotificationConfigOrBuilder> + getNotificationConfigFieldBuilder() { + if (notificationConfigBuilder_ == null) { + notificationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NotificationConfig, com.google.container.v1.NotificationConfig.Builder, com.google.container.v1.NotificationConfigOrBuilder>( + getNotificationConfig(), + getParentForChildren(), + isClean()); + notificationConfig_ = null; + } + return notificationConfigBuilder_; + } + + private com.google.container.v1.ConfidentialNodes confidentialNodes_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ConfidentialNodes, com.google.container.v1.ConfidentialNodes.Builder, com.google.container.v1.ConfidentialNodesOrBuilder> confidentialNodesBuilder_; + /** + *
+     * Configuration of Confidential Nodes.
+     * All the nodes in the cluster will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 50; + * @return Whether the confidentialNodes field is set. + */ + public boolean hasConfidentialNodes() { + return ((bitField1_ & 0x00000010) != 0); + } + /** + *
+     * Configuration of Confidential Nodes.
+     * All the nodes in the cluster will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 50; + * @return The confidentialNodes. + */ + public com.google.container.v1.ConfidentialNodes getConfidentialNodes() { + if (confidentialNodesBuilder_ == null) { + return confidentialNodes_ == null ? com.google.container.v1.ConfidentialNodes.getDefaultInstance() : confidentialNodes_; + } else { + return confidentialNodesBuilder_.getMessage(); + } + } + /** + *
+     * Configuration of Confidential Nodes.
+     * All the nodes in the cluster will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 50; + */ + public Builder setConfidentialNodes(com.google.container.v1.ConfidentialNodes value) { + if (confidentialNodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + confidentialNodes_ = value; + } else { + confidentialNodesBuilder_.setMessage(value); + } + bitField1_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Configuration of Confidential Nodes.
+     * All the nodes in the cluster will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 50; + */ + public Builder setConfidentialNodes( + com.google.container.v1.ConfidentialNodes.Builder builderForValue) { + if (confidentialNodesBuilder_ == null) { + confidentialNodes_ = builderForValue.build(); + } else { + confidentialNodesBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Configuration of Confidential Nodes.
+     * All the nodes in the cluster will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 50; + */ + public Builder mergeConfidentialNodes(com.google.container.v1.ConfidentialNodes value) { + if (confidentialNodesBuilder_ == null) { + if (((bitField1_ & 0x00000010) != 0) && + confidentialNodes_ != null && + confidentialNodes_ != com.google.container.v1.ConfidentialNodes.getDefaultInstance()) { + getConfidentialNodesBuilder().mergeFrom(value); + } else { + confidentialNodes_ = value; + } + } else { + confidentialNodesBuilder_.mergeFrom(value); + } + if (confidentialNodes_ != null) { + bitField1_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + *
+     * Configuration of Confidential Nodes.
+     * All the nodes in the cluster will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 50; + */ + public Builder clearConfidentialNodes() { + bitField1_ = (bitField1_ & ~0x00000010); + confidentialNodes_ = null; + if (confidentialNodesBuilder_ != null) { + confidentialNodesBuilder_.dispose(); + confidentialNodesBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration of Confidential Nodes.
+     * All the nodes in the cluster will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 50; + */ + public com.google.container.v1.ConfidentialNodes.Builder getConfidentialNodesBuilder() { + bitField1_ |= 0x00000010; + onChanged(); + return getConfidentialNodesFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration of Confidential Nodes.
+     * All the nodes in the cluster will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 50; + */ + public com.google.container.v1.ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder() { + if (confidentialNodesBuilder_ != null) { + return confidentialNodesBuilder_.getMessageOrBuilder(); + } else { + return confidentialNodes_ == null ? + com.google.container.v1.ConfidentialNodes.getDefaultInstance() : confidentialNodes_; + } + } + /** + *
+     * Configuration of Confidential Nodes.
+     * All the nodes in the cluster will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 50; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ConfidentialNodes, com.google.container.v1.ConfidentialNodes.Builder, com.google.container.v1.ConfidentialNodesOrBuilder> + getConfidentialNodesFieldBuilder() { + if (confidentialNodesBuilder_ == null) { + confidentialNodesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ConfidentialNodes, com.google.container.v1.ConfidentialNodes.Builder, com.google.container.v1.ConfidentialNodesOrBuilder>( + getConfidentialNodes(), + getParentForChildren(), + isClean()); + confidentialNodes_ = null; + } + return confidentialNodesBuilder_; + } + + private com.google.container.v1.IdentityServiceConfig identityServiceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.IdentityServiceConfig, com.google.container.v1.IdentityServiceConfig.Builder, com.google.container.v1.IdentityServiceConfigOrBuilder> identityServiceConfigBuilder_; + /** + *
+     * Configuration for Identity Service component.
+     * 
+ * + * .google.container.v1.IdentityServiceConfig identity_service_config = 54; + * @return Whether the identityServiceConfig field is set. + */ + public boolean hasIdentityServiceConfig() { + return ((bitField1_ & 0x00000020) != 0); + } + /** + *
+     * Configuration for Identity Service component.
+     * 
+ * + * .google.container.v1.IdentityServiceConfig identity_service_config = 54; + * @return The identityServiceConfig. + */ + public com.google.container.v1.IdentityServiceConfig getIdentityServiceConfig() { + if (identityServiceConfigBuilder_ == null) { + return identityServiceConfig_ == null ? com.google.container.v1.IdentityServiceConfig.getDefaultInstance() : identityServiceConfig_; + } else { + return identityServiceConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for Identity Service component.
+     * 
+ * + * .google.container.v1.IdentityServiceConfig identity_service_config = 54; + */ + public Builder setIdentityServiceConfig(com.google.container.v1.IdentityServiceConfig value) { + if (identityServiceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + identityServiceConfig_ = value; + } else { + identityServiceConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Configuration for Identity Service component.
+     * 
+ * + * .google.container.v1.IdentityServiceConfig identity_service_config = 54; + */ + public Builder setIdentityServiceConfig( + com.google.container.v1.IdentityServiceConfig.Builder builderForValue) { + if (identityServiceConfigBuilder_ == null) { + identityServiceConfig_ = builderForValue.build(); + } else { + identityServiceConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Configuration for Identity Service component.
+     * 
+ * + * .google.container.v1.IdentityServiceConfig identity_service_config = 54; + */ + public Builder mergeIdentityServiceConfig(com.google.container.v1.IdentityServiceConfig value) { + if (identityServiceConfigBuilder_ == null) { + if (((bitField1_ & 0x00000020) != 0) && + identityServiceConfig_ != null && + identityServiceConfig_ != com.google.container.v1.IdentityServiceConfig.getDefaultInstance()) { + getIdentityServiceConfigBuilder().mergeFrom(value); + } else { + identityServiceConfig_ = value; + } + } else { + identityServiceConfigBuilder_.mergeFrom(value); + } + if (identityServiceConfig_ != null) { + bitField1_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for Identity Service component.
+     * 
+ * + * .google.container.v1.IdentityServiceConfig identity_service_config = 54; + */ + public Builder clearIdentityServiceConfig() { + bitField1_ = (bitField1_ & ~0x00000020); + identityServiceConfig_ = null; + if (identityServiceConfigBuilder_ != null) { + identityServiceConfigBuilder_.dispose(); + identityServiceConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for Identity Service component.
+     * 
+ * + * .google.container.v1.IdentityServiceConfig identity_service_config = 54; + */ + public com.google.container.v1.IdentityServiceConfig.Builder getIdentityServiceConfigBuilder() { + bitField1_ |= 0x00000020; + onChanged(); + return getIdentityServiceConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for Identity Service component.
+     * 
+ * + * .google.container.v1.IdentityServiceConfig identity_service_config = 54; + */ + public com.google.container.v1.IdentityServiceConfigOrBuilder getIdentityServiceConfigOrBuilder() { + if (identityServiceConfigBuilder_ != null) { + return identityServiceConfigBuilder_.getMessageOrBuilder(); + } else { + return identityServiceConfig_ == null ? + com.google.container.v1.IdentityServiceConfig.getDefaultInstance() : identityServiceConfig_; + } + } + /** + *
+     * Configuration for Identity Service component.
+     * 
+ * + * .google.container.v1.IdentityServiceConfig identity_service_config = 54; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.IdentityServiceConfig, com.google.container.v1.IdentityServiceConfig.Builder, com.google.container.v1.IdentityServiceConfigOrBuilder> + getIdentityServiceConfigFieldBuilder() { + if (identityServiceConfigBuilder_ == null) { + identityServiceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.IdentityServiceConfig, com.google.container.v1.IdentityServiceConfig.Builder, com.google.container.v1.IdentityServiceConfigOrBuilder>( + getIdentityServiceConfig(), + getParentForChildren(), + isClean()); + identityServiceConfig_ = null; + } + return identityServiceConfigBuilder_; + } + + 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; + bitField1_ |= 0x00000040; + 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(); + bitField1_ = (bitField1_ & ~0x00000040); + 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; + bitField1_ |= 0x00000040; + 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]; + * @deprecated google.container.v1.Cluster.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=1863 + * @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]; + * @deprecated google.container.v1.Cluster.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=1863 + * @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]; + * @deprecated google.container.v1.Cluster.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=1863 + * @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; + bitField1_ |= 0x00000080; + 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]; + * @deprecated google.container.v1.Cluster.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=1863 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField1_ = (bitField1_ & ~0x00000080); + 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]; + * @deprecated google.container.v1.Cluster.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=1863 + * @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; + bitField1_ |= 0x00000080; + 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; + bitField1_ |= 0x00000100; + 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(); + bitField1_ = (bitField1_ & ~0x00000100); + 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; + bitField1_ |= 0x00000100; + 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; + bitField1_ |= 0x00000200; + 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(); + bitField1_ = (bitField1_ & ~0x00000200); + 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; + bitField1_ |= 0x00000200; + 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; + bitField1_ |= 0x00000400; + 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(); + bitField1_ = (bitField1_ & ~0x00000400); + 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; + bitField1_ |= 0x00000400; + onChanged(); + return this; + } + + private java.lang.Object currentNodeVersion_ = ""; + /** + *
+     * [Output only] Deprecated, use
+     * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
+     * instead. The current version of the node software components. If they are
+     * currently at multiple versions because they're in the process of being
+     * upgraded, this reflects the minimum version of all nodes.
+     * 
+ * + * string current_node_version = 105 [deprecated = true]; + * @deprecated google.container.v1.Cluster.current_node_version is deprecated. + * See google/container/v1/cluster_service.proto;l=1896 + * @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
+     * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
+     * instead. The current version of the node software components. If they are
+     * currently at multiple versions because they're in the process of being
+     * upgraded, this reflects the minimum version of all nodes.
+     * 
+ * + * string current_node_version = 105 [deprecated = true]; + * @deprecated google.container.v1.Cluster.current_node_version is deprecated. + * See google/container/v1/cluster_service.proto;l=1896 + * @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
+     * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
+     * instead. The current version of the node software components. If they are
+     * currently at multiple versions because they're in the process of being
+     * upgraded, this reflects the minimum version of all nodes.
+     * 
+ * + * string current_node_version = 105 [deprecated = true]; + * @deprecated google.container.v1.Cluster.current_node_version is deprecated. + * See google/container/v1/cluster_service.proto;l=1896 + * @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; + bitField1_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * [Output only] Deprecated, use
+     * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
+     * instead. The current version of the node software components. If they are
+     * currently at multiple versions because they're in the process of being
+     * upgraded, this reflects the minimum version of all nodes.
+     * 
+ * + * string current_node_version = 105 [deprecated = true]; + * @deprecated google.container.v1.Cluster.current_node_version is deprecated. + * See google/container/v1/cluster_service.proto;l=1896 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearCurrentNodeVersion() { + currentNodeVersion_ = getDefaultInstance().getCurrentNodeVersion(); + bitField1_ = (bitField1_ & ~0x00000800); + onChanged(); + return this; + } + /** + *
+     * [Output only] Deprecated, use
+     * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
+     * instead. The current version of the node software components. If they are
+     * currently at multiple versions because they're in the process of being
+     * upgraded, this reflects the minimum version of all nodes.
+     * 
+ * + * string current_node_version = 105 [deprecated = true]; + * @deprecated google.container.v1.Cluster.current_node_version is deprecated. + * See google/container/v1/cluster_service.proto;l=1896 + * @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; + bitField1_ |= 0x00000800; + 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; + bitField1_ |= 0x00001000; + 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(); + bitField1_ = (bitField1_ & ~0x00001000); + 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; + bitField1_ |= 0x00001000; + onChanged(); + return this; + } + + private int status_ = 0; + /** + *
+     * [Output only] The current status of this cluster.
+     * 
+ * + * .google.container.v1.Cluster.Status status = 107; + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + *
+     * [Output only] The current status of this cluster.
+     * 
+ * + * .google.container.v1.Cluster.Status status = 107; + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField1_ |= 0x00002000; + onChanged(); + return this; + } + /** + *
+     * [Output only] The current status of this cluster.
+     * 
+ * + * .google.container.v1.Cluster.Status status = 107; + * @return The status. + */ + @java.lang.Override + public com.google.container.v1.Cluster.Status getStatus() { + com.google.container.v1.Cluster.Status result = com.google.container.v1.Cluster.Status.forNumber(status_); + return result == null ? com.google.container.v1.Cluster.Status.UNRECOGNIZED : result; + } + /** + *
+     * [Output only] The current status of this cluster.
+     * 
+ * + * .google.container.v1.Cluster.Status status = 107; + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(com.google.container.v1.Cluster.Status value) { + if (value == null) { + throw new NullPointerException(); + } + bitField1_ |= 0x00002000; + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * [Output only] The current status of this cluster.
+     * 
+ * + * .google.container.v1.Cluster.Status status = 107; + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField1_ = (bitField1_ & ~0x00002000); + 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]; + * @deprecated google.container.v1.Cluster.status_message is deprecated. + * See google/container/v1/cluster_service.proto;l=1908 + * @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]; + * @deprecated google.container.v1.Cluster.status_message is deprecated. + * See google/container/v1/cluster_service.proto;l=1908 + * @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]; + * @deprecated google.container.v1.Cluster.status_message is deprecated. + * See google/container/v1/cluster_service.proto;l=1908 + * @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; + bitField1_ |= 0x00004000; + 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]; + * @deprecated google.container.v1.Cluster.status_message is deprecated. + * See google/container/v1/cluster_service.proto;l=1908 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearStatusMessage() { + statusMessage_ = getDefaultInstance().getStatusMessage(); + bitField1_ = (bitField1_ & ~0x00004000); + 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]; + * @deprecated google.container.v1.Cluster.status_message is deprecated. + * See google/container/v1/cluster_service.proto;l=1908 + * @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; + bitField1_ |= 0x00004000; + 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; + bitField1_ |= 0x00008000; + 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() { + bitField1_ = (bitField1_ & ~0x00008000); + 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; + bitField1_ |= 0x00010000; + 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(); + bitField1_ = (bitField1_ & ~0x00010000); + 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; + bitField1_ |= 0x00010000; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList instanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureInstanceGroupUrlsIsMutable() { + if (!instanceGroupUrls_.isModifiable()) { + instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(instanceGroupUrls_); + } + bitField1_ |= 0x00020000; + } + /** + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. + * See google/container/v1/cluster_service.proto;l=1924 + * @return A list containing the instanceGroupUrls. + */ + @java.lang.Deprecated public com.google.protobuf.ProtocolStringList + getInstanceGroupUrlsList() { + instanceGroupUrls_.makeImmutable(); + return instanceGroupUrls_; + } + /** + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. + * See google/container/v1/cluster_service.proto;l=1924 + * @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]; + * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. + * See google/container/v1/cluster_service.proto;l=1924 + * @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]; + * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. + * See google/container/v1/cluster_service.proto;l=1924 + * @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]; + * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. + * See google/container/v1/cluster_service.proto;l=1924 + * @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); + bitField1_ |= 0x00020000; + onChanged(); + return this; + } + /** + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. + * See google/container/v1/cluster_service.proto;l=1924 + * @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); + bitField1_ |= 0x00020000; + onChanged(); + return this; + } + /** + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. + * See google/container/v1/cluster_service.proto;l=1924 + * @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_); + bitField1_ |= 0x00020000; + onChanged(); + return this; + } + /** + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. + * See google/container/v1/cluster_service.proto;l=1924 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearInstanceGroupUrls() { + instanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField1_ = (bitField1_ & ~0x00020000);; + onChanged(); + return this; + } + /** + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. + * See google/container/v1/cluster_service.proto;l=1924 + * @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); + bitField1_ |= 0x00020000; + 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]; + * @deprecated google.container.v1.Cluster.current_node_count is deprecated. + * See google/container/v1/cluster_service.proto;l=1928 + * @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]; + * @deprecated google.container.v1.Cluster.current_node_count is deprecated. + * See google/container/v1/cluster_service.proto;l=1928 + * @param value The currentNodeCount to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setCurrentNodeCount(int value) { + + currentNodeCount_ = value; + bitField1_ |= 0x00040000; + 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]; + * @deprecated google.container.v1.Cluster.current_node_count is deprecated. + * See google/container/v1/cluster_service.proto;l=1928 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearCurrentNodeCount() { + bitField1_ = (bitField1_ & ~0x00040000); + 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; + bitField1_ |= 0x00080000; + 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(); + bitField1_ = (bitField1_ & ~0x00080000); + 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; + bitField1_ |= 0x00080000; + 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; + bitField1_ |= 0x00100000; + 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(); + bitField1_ = (bitField1_ & ~0x00100000); + 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; + bitField1_ |= 0x00100000; + onChanged(); + return this; + } + + private boolean enableTpu_ ; + /** + *
+     * Enable the ability to use Cloud TPUs in this cluster.
+     * 
+ * + * bool enable_tpu = 115; + * @return The enableTpu. + */ + @java.lang.Override + public boolean getEnableTpu() { + return enableTpu_; + } + /** + *
+     * Enable the ability to use Cloud TPUs in this cluster.
+     * 
+ * + * bool enable_tpu = 115; + * @param value The enableTpu to set. + * @return This builder for chaining. + */ + public Builder setEnableTpu(boolean value) { + + enableTpu_ = value; + bitField1_ |= 0x00200000; + onChanged(); + return this; + } + /** + *
+     * Enable the ability to use Cloud TPUs in this cluster.
+     * 
+ * + * bool enable_tpu = 115; + * @return This builder for chaining. + */ + public Builder clearEnableTpu() { + bitField1_ = (bitField1_ & ~0x00200000); + 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; + bitField1_ |= 0x00400000; + 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(); + bitField1_ = (bitField1_ & ~0x00400000); + 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; + bitField1_ |= 0x00400000; + onChanged(); + return this; + } + + private java.util.List conditions_ = + java.util.Collections.emptyList(); + private void ensureConditionsIsMutable() { + if (!((bitField1_ & 0x00800000) != 0)) { + conditions_ = new java.util.ArrayList(conditions_); + bitField1_ |= 0x00800000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.StatusCondition, com.google.container.v1.StatusCondition.Builder, com.google.container.v1.StatusConditionOrBuilder> conditionsBuilder_; + + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public java.util.List getConditionsList() { + if (conditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conditions_); + } else { + return conditionsBuilder_.getMessageList(); + } + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public int getConditionsCount() { + if (conditionsBuilder_ == null) { + return conditions_.size(); + } else { + return conditionsBuilder_.getCount(); + } + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public com.google.container.v1.StatusCondition getConditions(int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); + } else { + return conditionsBuilder_.getMessage(index); + } + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public Builder setConditions( + int index, com.google.container.v1.StatusCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.set(index, value); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public Builder setConditions( + int index, com.google.container.v1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.set(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public Builder addConditions(com.google.container.v1.StatusCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(value); + onChanged(); + } else { + conditionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public Builder addConditions( + int index, com.google.container.v1.StatusCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(index, value); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public Builder addConditions( + com.google.container.v1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public Builder addConditions( + int index, com.google.container.v1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public Builder addAllConditions( + java.lang.Iterable values) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, conditions_); + onChanged(); + } else { + conditionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public Builder clearConditions() { + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField1_ = (bitField1_ & ~0x00800000); + onChanged(); + } else { + conditionsBuilder_.clear(); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public Builder removeConditions(int index) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.remove(index); + onChanged(); + } else { + conditionsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public com.google.container.v1.StatusCondition.Builder getConditionsBuilder( + int index) { + return getConditionsFieldBuilder().getBuilder(index); + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public com.google.container.v1.StatusConditionOrBuilder getConditionsOrBuilder( + int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); } else { + return conditionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public java.util.List + getConditionsOrBuilderList() { + if (conditionsBuilder_ != null) { + return conditionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conditions_); + } + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public com.google.container.v1.StatusCondition.Builder addConditionsBuilder() { + return getConditionsFieldBuilder().addBuilder( + com.google.container.v1.StatusCondition.getDefaultInstance()); + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public com.google.container.v1.StatusCondition.Builder addConditionsBuilder( + int index) { + return getConditionsFieldBuilder().addBuilder( + index, com.google.container.v1.StatusCondition.getDefaultInstance()); + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public java.util.List + getConditionsBuilderList() { + return getConditionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.StatusCondition, com.google.container.v1.StatusCondition.Builder, com.google.container.v1.StatusConditionOrBuilder> + getConditionsFieldBuilder() { + if (conditionsBuilder_ == null) { + conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.StatusCondition, com.google.container.v1.StatusCondition.Builder, com.google.container.v1.StatusConditionOrBuilder>( + conditions_, + ((bitField1_ & 0x00800000) != 0), + getParentForChildren(), + isClean()); + conditions_ = null; + } + return conditionsBuilder_; + } + + private com.google.container.v1.Autopilot autopilot_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.Autopilot, com.google.container.v1.Autopilot.Builder, com.google.container.v1.AutopilotOrBuilder> autopilotBuilder_; + /** + *
+     * Autopilot configuration for the cluster.
+     * 
+ * + * .google.container.v1.Autopilot autopilot = 128; + * @return Whether the autopilot field is set. + */ + public boolean hasAutopilot() { + return ((bitField1_ & 0x01000000) != 0); + } + /** + *
+     * Autopilot configuration for the cluster.
+     * 
+ * + * .google.container.v1.Autopilot autopilot = 128; + * @return The autopilot. + */ + public com.google.container.v1.Autopilot getAutopilot() { + if (autopilotBuilder_ == null) { + return autopilot_ == null ? com.google.container.v1.Autopilot.getDefaultInstance() : autopilot_; + } else { + return autopilotBuilder_.getMessage(); + } + } + /** + *
+     * Autopilot configuration for the cluster.
+     * 
+ * + * .google.container.v1.Autopilot autopilot = 128; + */ + public Builder setAutopilot(com.google.container.v1.Autopilot value) { + if (autopilotBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autopilot_ = value; + } else { + autopilotBuilder_.setMessage(value); + } + bitField1_ |= 0x01000000; + onChanged(); + return this; + } + /** + *
+     * Autopilot configuration for the cluster.
+     * 
+ * + * .google.container.v1.Autopilot autopilot = 128; + */ + public Builder setAutopilot( + com.google.container.v1.Autopilot.Builder builderForValue) { + if (autopilotBuilder_ == null) { + autopilot_ = builderForValue.build(); + } else { + autopilotBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x01000000; + onChanged(); + return this; + } + /** + *
+     * Autopilot configuration for the cluster.
+     * 
+ * + * .google.container.v1.Autopilot autopilot = 128; + */ + public Builder mergeAutopilot(com.google.container.v1.Autopilot value) { + if (autopilotBuilder_ == null) { + if (((bitField1_ & 0x01000000) != 0) && + autopilot_ != null && + autopilot_ != com.google.container.v1.Autopilot.getDefaultInstance()) { + getAutopilotBuilder().mergeFrom(value); + } else { + autopilot_ = value; + } + } else { + autopilotBuilder_.mergeFrom(value); + } + if (autopilot_ != null) { + bitField1_ |= 0x01000000; + onChanged(); + } + return this; + } + /** + *
+     * Autopilot configuration for the cluster.
+     * 
+ * + * .google.container.v1.Autopilot autopilot = 128; + */ + public Builder clearAutopilot() { + bitField1_ = (bitField1_ & ~0x01000000); + autopilot_ = null; + if (autopilotBuilder_ != null) { + autopilotBuilder_.dispose(); + autopilotBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Autopilot configuration for the cluster.
+     * 
+ * + * .google.container.v1.Autopilot autopilot = 128; + */ + public com.google.container.v1.Autopilot.Builder getAutopilotBuilder() { + bitField1_ |= 0x01000000; + onChanged(); + return getAutopilotFieldBuilder().getBuilder(); + } + /** + *
+     * Autopilot configuration for the cluster.
+     * 
+ * + * .google.container.v1.Autopilot autopilot = 128; + */ + public com.google.container.v1.AutopilotOrBuilder getAutopilotOrBuilder() { + if (autopilotBuilder_ != null) { + return autopilotBuilder_.getMessageOrBuilder(); + } else { + return autopilot_ == null ? + com.google.container.v1.Autopilot.getDefaultInstance() : autopilot_; + } + } + /** + *
+     * Autopilot configuration for the cluster.
+     * 
+ * + * .google.container.v1.Autopilot autopilot = 128; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.Autopilot, com.google.container.v1.Autopilot.Builder, com.google.container.v1.AutopilotOrBuilder> + getAutopilotFieldBuilder() { + if (autopilotBuilder_ == null) { + autopilotBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.Autopilot, com.google.container.v1.Autopilot.Builder, com.google.container.v1.AutopilotOrBuilder>( + getAutopilot(), + getParentForChildren(), + isClean()); + autopilot_ = null; + } + return autopilotBuilder_; + } + + private java.lang.Object id_ = ""; + /** + *
+     * Output only. Unique id for the cluster.
+     * 
+ * + * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. Unique id for the cluster.
+     * 
+ * + * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. Unique id for the cluster.
+     * 
+ * + * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField1_ |= 0x02000000; + onChanged(); + return this; + } + /** + *
+     * Output only. Unique id for the cluster.
+     * 
+ * + * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField1_ = (bitField1_ & ~0x02000000); + onChanged(); + return this; + } + /** + *
+     * Output only. Unique id for the cluster.
+     * 
+ * + * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField1_ |= 0x02000000; + onChanged(); + return this; + } + + private com.google.container.v1.NodePoolDefaults nodePoolDefaults_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePoolDefaults, com.google.container.v1.NodePoolDefaults.Builder, com.google.container.v1.NodePoolDefaultsOrBuilder> nodePoolDefaultsBuilder_; + /** + *
+     * Default NodePool settings for the entire cluster. These settings are
+     * overridden if specified on the specific NodePool object.
+     * 
+ * + * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; + * @return Whether the nodePoolDefaults field is set. + */ + public boolean hasNodePoolDefaults() { + return ((bitField1_ & 0x04000000) != 0); + } + /** + *
+     * Default NodePool settings for the entire cluster. These settings are
+     * overridden if specified on the specific NodePool object.
+     * 
+ * + * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; + * @return The nodePoolDefaults. + */ + public com.google.container.v1.NodePoolDefaults getNodePoolDefaults() { + if (nodePoolDefaultsBuilder_ == null) { + return nodePoolDefaults_ == null ? com.google.container.v1.NodePoolDefaults.getDefaultInstance() : nodePoolDefaults_; + } else { + return nodePoolDefaultsBuilder_.getMessage(); + } + } + /** + *
+     * Default NodePool settings for the entire cluster. These settings are
+     * overridden if specified on the specific NodePool object.
+     * 
+ * + * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; + */ + public Builder setNodePoolDefaults(com.google.container.v1.NodePoolDefaults value) { + if (nodePoolDefaultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodePoolDefaults_ = value; + } else { + nodePoolDefaultsBuilder_.setMessage(value); + } + bitField1_ |= 0x04000000; + onChanged(); + return this; + } + /** + *
+     * Default NodePool settings for the entire cluster. These settings are
+     * overridden if specified on the specific NodePool object.
+     * 
+ * + * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; + */ + public Builder setNodePoolDefaults( + com.google.container.v1.NodePoolDefaults.Builder builderForValue) { + if (nodePoolDefaultsBuilder_ == null) { + nodePoolDefaults_ = builderForValue.build(); + } else { + nodePoolDefaultsBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x04000000; + onChanged(); + return this; + } + /** + *
+     * Default NodePool settings for the entire cluster. These settings are
+     * overridden if specified on the specific NodePool object.
+     * 
+ * + * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; + */ + public Builder mergeNodePoolDefaults(com.google.container.v1.NodePoolDefaults value) { + if (nodePoolDefaultsBuilder_ == null) { + if (((bitField1_ & 0x04000000) != 0) && + nodePoolDefaults_ != null && + nodePoolDefaults_ != com.google.container.v1.NodePoolDefaults.getDefaultInstance()) { + getNodePoolDefaultsBuilder().mergeFrom(value); + } else { + nodePoolDefaults_ = value; + } + } else { + nodePoolDefaultsBuilder_.mergeFrom(value); + } + if (nodePoolDefaults_ != null) { + bitField1_ |= 0x04000000; + onChanged(); + } + return this; + } + /** + *
+     * Default NodePool settings for the entire cluster. These settings are
+     * overridden if specified on the specific NodePool object.
+     * 
+ * + * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; + */ + public Builder clearNodePoolDefaults() { + bitField1_ = (bitField1_ & ~0x04000000); + nodePoolDefaults_ = null; + if (nodePoolDefaultsBuilder_ != null) { + nodePoolDefaultsBuilder_.dispose(); + nodePoolDefaultsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Default NodePool settings for the entire cluster. These settings are
+     * overridden if specified on the specific NodePool object.
+     * 
+ * + * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; + */ + public com.google.container.v1.NodePoolDefaults.Builder getNodePoolDefaultsBuilder() { + bitField1_ |= 0x04000000; + onChanged(); + return getNodePoolDefaultsFieldBuilder().getBuilder(); + } + /** + *
+     * Default NodePool settings for the entire cluster. These settings are
+     * overridden if specified on the specific NodePool object.
+     * 
+ * + * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; + */ + public com.google.container.v1.NodePoolDefaultsOrBuilder getNodePoolDefaultsOrBuilder() { + if (nodePoolDefaultsBuilder_ != null) { + return nodePoolDefaultsBuilder_.getMessageOrBuilder(); + } else { + return nodePoolDefaults_ == null ? + com.google.container.v1.NodePoolDefaults.getDefaultInstance() : nodePoolDefaults_; + } + } + /** + *
+     * Default NodePool settings for the entire cluster. These settings are
+     * overridden if specified on the specific NodePool object.
+     * 
+ * + * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePoolDefaults, com.google.container.v1.NodePoolDefaults.Builder, com.google.container.v1.NodePoolDefaultsOrBuilder> + getNodePoolDefaultsFieldBuilder() { + if (nodePoolDefaultsBuilder_ == null) { + nodePoolDefaultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePoolDefaults, com.google.container.v1.NodePoolDefaults.Builder, com.google.container.v1.NodePoolDefaultsOrBuilder>( + getNodePoolDefaults(), + getParentForChildren(), + isClean()); + nodePoolDefaults_ = null; + } + return nodePoolDefaultsBuilder_; + } + + private com.google.container.v1.LoggingConfig loggingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LoggingConfig, com.google.container.v1.LoggingConfig.Builder, com.google.container.v1.LoggingConfigOrBuilder> loggingConfigBuilder_; + /** + *
+     * Logging configuration for the cluster.
+     * 
+ * + * .google.container.v1.LoggingConfig logging_config = 132; + * @return Whether the loggingConfig field is set. + */ + public boolean hasLoggingConfig() { + return ((bitField1_ & 0x08000000) != 0); + } + /** + *
+     * Logging configuration for the cluster.
+     * 
+ * + * .google.container.v1.LoggingConfig logging_config = 132; + * @return The loggingConfig. + */ + public com.google.container.v1.LoggingConfig getLoggingConfig() { + if (loggingConfigBuilder_ == null) { + return loggingConfig_ == null ? com.google.container.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; + } else { + return loggingConfigBuilder_.getMessage(); + } + } + /** + *
+     * Logging configuration for the cluster.
+     * 
+ * + * .google.container.v1.LoggingConfig logging_config = 132; + */ + public Builder setLoggingConfig(com.google.container.v1.LoggingConfig value) { + if (loggingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + loggingConfig_ = value; + } else { + loggingConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x08000000; + onChanged(); + return this; + } + /** + *
+     * Logging configuration for the cluster.
+     * 
+ * + * .google.container.v1.LoggingConfig logging_config = 132; + */ + public Builder setLoggingConfig( + com.google.container.v1.LoggingConfig.Builder builderForValue) { + if (loggingConfigBuilder_ == null) { + loggingConfig_ = builderForValue.build(); + } else { + loggingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x08000000; + onChanged(); + return this; + } + /** + *
+     * Logging configuration for the cluster.
+     * 
+ * + * .google.container.v1.LoggingConfig logging_config = 132; + */ + public Builder mergeLoggingConfig(com.google.container.v1.LoggingConfig value) { + if (loggingConfigBuilder_ == null) { + if (((bitField1_ & 0x08000000) != 0) && + loggingConfig_ != null && + loggingConfig_ != com.google.container.v1.LoggingConfig.getDefaultInstance()) { + getLoggingConfigBuilder().mergeFrom(value); + } else { + loggingConfig_ = value; + } + } else { + loggingConfigBuilder_.mergeFrom(value); + } + if (loggingConfig_ != null) { + bitField1_ |= 0x08000000; + onChanged(); + } + return this; + } + /** + *
+     * Logging configuration for the cluster.
+     * 
+ * + * .google.container.v1.LoggingConfig logging_config = 132; + */ + public Builder clearLoggingConfig() { + bitField1_ = (bitField1_ & ~0x08000000); + loggingConfig_ = null; + if (loggingConfigBuilder_ != null) { + loggingConfigBuilder_.dispose(); + loggingConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Logging configuration for the cluster.
+     * 
+ * + * .google.container.v1.LoggingConfig logging_config = 132; + */ + public com.google.container.v1.LoggingConfig.Builder getLoggingConfigBuilder() { + bitField1_ |= 0x08000000; + onChanged(); + return getLoggingConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Logging configuration for the cluster.
+     * 
+ * + * .google.container.v1.LoggingConfig logging_config = 132; + */ + public com.google.container.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { + if (loggingConfigBuilder_ != null) { + return loggingConfigBuilder_.getMessageOrBuilder(); + } else { + return loggingConfig_ == null ? + com.google.container.v1.LoggingConfig.getDefaultInstance() : loggingConfig_; + } + } + /** + *
+     * Logging configuration for the cluster.
+     * 
+ * + * .google.container.v1.LoggingConfig logging_config = 132; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LoggingConfig, com.google.container.v1.LoggingConfig.Builder, com.google.container.v1.LoggingConfigOrBuilder> + getLoggingConfigFieldBuilder() { + if (loggingConfigBuilder_ == null) { + loggingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LoggingConfig, com.google.container.v1.LoggingConfig.Builder, com.google.container.v1.LoggingConfigOrBuilder>( + getLoggingConfig(), + getParentForChildren(), + isClean()); + loggingConfig_ = null; + } + return loggingConfigBuilder_; + } + + private com.google.container.v1.MonitoringConfig monitoringConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MonitoringConfig, com.google.container.v1.MonitoringConfig.Builder, com.google.container.v1.MonitoringConfigOrBuilder> monitoringConfigBuilder_; + /** + *
+     * Monitoring configuration for the cluster.
+     * 
+ * + * .google.container.v1.MonitoringConfig monitoring_config = 133; + * @return Whether the monitoringConfig field is set. + */ + public boolean hasMonitoringConfig() { + return ((bitField1_ & 0x10000000) != 0); + } + /** + *
+     * Monitoring configuration for the cluster.
+     * 
+ * + * .google.container.v1.MonitoringConfig monitoring_config = 133; + * @return The monitoringConfig. + */ + public com.google.container.v1.MonitoringConfig getMonitoringConfig() { + if (monitoringConfigBuilder_ == null) { + return monitoringConfig_ == null ? com.google.container.v1.MonitoringConfig.getDefaultInstance() : monitoringConfig_; + } else { + return monitoringConfigBuilder_.getMessage(); + } + } + /** + *
+     * Monitoring configuration for the cluster.
+     * 
+ * + * .google.container.v1.MonitoringConfig monitoring_config = 133; + */ + public Builder setMonitoringConfig(com.google.container.v1.MonitoringConfig value) { + if (monitoringConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + monitoringConfig_ = value; + } else { + monitoringConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x10000000; + onChanged(); + return this; + } + /** + *
+     * Monitoring configuration for the cluster.
+     * 
+ * + * .google.container.v1.MonitoringConfig monitoring_config = 133; + */ + public Builder setMonitoringConfig( + com.google.container.v1.MonitoringConfig.Builder builderForValue) { + if (monitoringConfigBuilder_ == null) { + monitoringConfig_ = builderForValue.build(); + } else { + monitoringConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x10000000; + onChanged(); + return this; + } + /** + *
+     * Monitoring configuration for the cluster.
+     * 
+ * + * .google.container.v1.MonitoringConfig monitoring_config = 133; + */ + public Builder mergeMonitoringConfig(com.google.container.v1.MonitoringConfig value) { + if (monitoringConfigBuilder_ == null) { + if (((bitField1_ & 0x10000000) != 0) && + monitoringConfig_ != null && + monitoringConfig_ != com.google.container.v1.MonitoringConfig.getDefaultInstance()) { + getMonitoringConfigBuilder().mergeFrom(value); + } else { + monitoringConfig_ = value; + } + } else { + monitoringConfigBuilder_.mergeFrom(value); + } + if (monitoringConfig_ != null) { + bitField1_ |= 0x10000000; + onChanged(); + } + return this; + } + /** + *
+     * Monitoring configuration for the cluster.
+     * 
+ * + * .google.container.v1.MonitoringConfig monitoring_config = 133; + */ + public Builder clearMonitoringConfig() { + bitField1_ = (bitField1_ & ~0x10000000); + monitoringConfig_ = null; + if (monitoringConfigBuilder_ != null) { + monitoringConfigBuilder_.dispose(); + monitoringConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Monitoring configuration for the cluster.
+     * 
+ * + * .google.container.v1.MonitoringConfig monitoring_config = 133; + */ + public com.google.container.v1.MonitoringConfig.Builder getMonitoringConfigBuilder() { + bitField1_ |= 0x10000000; + onChanged(); + return getMonitoringConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Monitoring configuration for the cluster.
+     * 
+ * + * .google.container.v1.MonitoringConfig monitoring_config = 133; + */ + public com.google.container.v1.MonitoringConfigOrBuilder getMonitoringConfigOrBuilder() { + if (monitoringConfigBuilder_ != null) { + return monitoringConfigBuilder_.getMessageOrBuilder(); + } else { + return monitoringConfig_ == null ? + com.google.container.v1.MonitoringConfig.getDefaultInstance() : monitoringConfig_; + } + } + /** + *
+     * Monitoring configuration for the cluster.
+     * 
+ * + * .google.container.v1.MonitoringConfig monitoring_config = 133; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MonitoringConfig, com.google.container.v1.MonitoringConfig.Builder, com.google.container.v1.MonitoringConfigOrBuilder> + getMonitoringConfigFieldBuilder() { + if (monitoringConfigBuilder_ == null) { + monitoringConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MonitoringConfig, com.google.container.v1.MonitoringConfig.Builder, com.google.container.v1.MonitoringConfigOrBuilder>( + getMonitoringConfig(), + getParentForChildren(), + isClean()); + monitoringConfig_ = null; + } + return monitoringConfigBuilder_; + } + + private com.google.container.v1.NodePoolAutoConfig nodePoolAutoConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePoolAutoConfig, com.google.container.v1.NodePoolAutoConfig.Builder, com.google.container.v1.NodePoolAutoConfigOrBuilder> nodePoolAutoConfigBuilder_; + /** + *
+     * Node pool configs that apply to all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; + * @return Whether the nodePoolAutoConfig field is set. + */ + public boolean hasNodePoolAutoConfig() { + return ((bitField1_ & 0x20000000) != 0); + } + /** + *
+     * Node pool configs that apply to all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; + * @return The nodePoolAutoConfig. + */ + public com.google.container.v1.NodePoolAutoConfig getNodePoolAutoConfig() { + if (nodePoolAutoConfigBuilder_ == null) { + return nodePoolAutoConfig_ == null ? com.google.container.v1.NodePoolAutoConfig.getDefaultInstance() : nodePoolAutoConfig_; + } else { + return nodePoolAutoConfigBuilder_.getMessage(); + } + } + /** + *
+     * Node pool configs that apply to all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; + */ + public Builder setNodePoolAutoConfig(com.google.container.v1.NodePoolAutoConfig value) { + if (nodePoolAutoConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodePoolAutoConfig_ = value; + } else { + nodePoolAutoConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x20000000; + onChanged(); + return this; + } + /** + *
+     * Node pool configs that apply to all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; + */ + public Builder setNodePoolAutoConfig( + com.google.container.v1.NodePoolAutoConfig.Builder builderForValue) { + if (nodePoolAutoConfigBuilder_ == null) { + nodePoolAutoConfig_ = builderForValue.build(); + } else { + nodePoolAutoConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x20000000; + onChanged(); + return this; + } + /** + *
+     * Node pool configs that apply to all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; + */ + public Builder mergeNodePoolAutoConfig(com.google.container.v1.NodePoolAutoConfig value) { + if (nodePoolAutoConfigBuilder_ == null) { + if (((bitField1_ & 0x20000000) != 0) && + nodePoolAutoConfig_ != null && + nodePoolAutoConfig_ != com.google.container.v1.NodePoolAutoConfig.getDefaultInstance()) { + getNodePoolAutoConfigBuilder().mergeFrom(value); + } else { + nodePoolAutoConfig_ = value; + } + } else { + nodePoolAutoConfigBuilder_.mergeFrom(value); + } + if (nodePoolAutoConfig_ != null) { + bitField1_ |= 0x20000000; + onChanged(); + } + return this; + } + /** + *
+     * Node pool configs that apply to all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; + */ + public Builder clearNodePoolAutoConfig() { + bitField1_ = (bitField1_ & ~0x20000000); + nodePoolAutoConfig_ = null; + if (nodePoolAutoConfigBuilder_ != null) { + nodePoolAutoConfigBuilder_.dispose(); + nodePoolAutoConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Node pool configs that apply to all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; + */ + public com.google.container.v1.NodePoolAutoConfig.Builder getNodePoolAutoConfigBuilder() { + bitField1_ |= 0x20000000; + onChanged(); + return getNodePoolAutoConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Node pool configs that apply to all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; + */ + public com.google.container.v1.NodePoolAutoConfigOrBuilder getNodePoolAutoConfigOrBuilder() { + if (nodePoolAutoConfigBuilder_ != null) { + return nodePoolAutoConfigBuilder_.getMessageOrBuilder(); + } else { + return nodePoolAutoConfig_ == null ? + com.google.container.v1.NodePoolAutoConfig.getDefaultInstance() : nodePoolAutoConfig_; + } + } + /** + *
+     * Node pool configs that apply to all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePoolAutoConfig, com.google.container.v1.NodePoolAutoConfig.Builder, com.google.container.v1.NodePoolAutoConfigOrBuilder> + getNodePoolAutoConfigFieldBuilder() { + if (nodePoolAutoConfigBuilder_ == null) { + nodePoolAutoConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePoolAutoConfig, com.google.container.v1.NodePoolAutoConfig.Builder, com.google.container.v1.NodePoolAutoConfigOrBuilder>( + getNodePoolAutoConfig(), + getParentForChildren(), + isClean()); + nodePoolAutoConfig_ = null; + } + return nodePoolAutoConfigBuilder_; + } + + private java.lang.Object etag_ = ""; + /** + *
+     * This checksum is computed by the server based on the value of cluster
+     * fields, and may be sent on update requests to ensure the client has an
+     * up-to-date value before proceeding.
+     * 
+ * + * string etag = 139; + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * This checksum is computed by the server based on the value of cluster
+     * fields, and may be sent on update requests to ensure the client has an
+     * up-to-date value before proceeding.
+     * 
+ * + * string etag = 139; + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString + getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * This checksum is computed by the server based on the value of cluster
+     * fields, and may be sent on update requests to ensure the client has an
+     * up-to-date value before proceeding.
+     * 
+ * + * string etag = 139; + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + etag_ = value; + bitField1_ |= 0x40000000; + onChanged(); + return this; + } + /** + *
+     * This checksum is computed by the server based on the value of cluster
+     * fields, and may be sent on update requests to ensure the client has an
+     * up-to-date value before proceeding.
+     * 
+ * + * string etag = 139; + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField1_ = (bitField1_ & ~0x40000000); + onChanged(); + return this; + } + /** + *
+     * This checksum is computed by the server based on the value of cluster
+     * fields, and may be sent on update requests to ensure the client has an
+     * up-to-date value before proceeding.
+     * 
+ * + * string etag = 139; + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + etag_ = value; + bitField1_ |= 0x40000000; + onChanged(); + return this; + } + + private com.google.container.v1.Fleet fleet_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.Fleet, com.google.container.v1.Fleet.Builder, com.google.container.v1.FleetOrBuilder> fleetBuilder_; + /** + *
+     * Fleet information for the cluster.
+     * 
+ * + * .google.container.v1.Fleet fleet = 140; + * @return Whether the fleet field is set. + */ + public boolean hasFleet() { + return ((bitField1_ & 0x80000000) != 0); + } + /** + *
+     * Fleet information for the cluster.
+     * 
+ * + * .google.container.v1.Fleet fleet = 140; + * @return The fleet. + */ + public com.google.container.v1.Fleet getFleet() { + if (fleetBuilder_ == null) { + return fleet_ == null ? com.google.container.v1.Fleet.getDefaultInstance() : fleet_; + } else { + return fleetBuilder_.getMessage(); + } + } + /** + *
+     * Fleet information for the cluster.
+     * 
+ * + * .google.container.v1.Fleet fleet = 140; + */ + public Builder setFleet(com.google.container.v1.Fleet value) { + if (fleetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fleet_ = value; + } else { + fleetBuilder_.setMessage(value); + } + bitField1_ |= 0x80000000; + onChanged(); + return this; + } + /** + *
+     * Fleet information for the cluster.
+     * 
+ * + * .google.container.v1.Fleet fleet = 140; + */ + public Builder setFleet( + com.google.container.v1.Fleet.Builder builderForValue) { + if (fleetBuilder_ == null) { + fleet_ = builderForValue.build(); + } else { + fleetBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x80000000; + onChanged(); + return this; + } + /** + *
+     * Fleet information for the cluster.
+     * 
+ * + * .google.container.v1.Fleet fleet = 140; + */ + public Builder mergeFleet(com.google.container.v1.Fleet value) { + if (fleetBuilder_ == null) { + if (((bitField1_ & 0x80000000) != 0) && + fleet_ != null && + fleet_ != com.google.container.v1.Fleet.getDefaultInstance()) { + getFleetBuilder().mergeFrom(value); + } else { + fleet_ = value; + } + } else { + fleetBuilder_.mergeFrom(value); + } + if (fleet_ != null) { + bitField1_ |= 0x80000000; + onChanged(); + } + return this; + } + /** + *
+     * Fleet information for the cluster.
+     * 
+ * + * .google.container.v1.Fleet fleet = 140; + */ + public Builder clearFleet() { + bitField1_ = (bitField1_ & ~0x80000000); + fleet_ = null; + if (fleetBuilder_ != null) { + fleetBuilder_.dispose(); + fleetBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Fleet information for the cluster.
+     * 
+ * + * .google.container.v1.Fleet fleet = 140; + */ + public com.google.container.v1.Fleet.Builder getFleetBuilder() { + bitField1_ |= 0x80000000; + onChanged(); + return getFleetFieldBuilder().getBuilder(); + } + /** + *
+     * Fleet information for the cluster.
+     * 
+ * + * .google.container.v1.Fleet fleet = 140; + */ + public com.google.container.v1.FleetOrBuilder getFleetOrBuilder() { + if (fleetBuilder_ != null) { + return fleetBuilder_.getMessageOrBuilder(); + } else { + return fleet_ == null ? + com.google.container.v1.Fleet.getDefaultInstance() : fleet_; + } + } + /** + *
+     * Fleet information for the cluster.
+     * 
+ * + * .google.container.v1.Fleet fleet = 140; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.Fleet, com.google.container.v1.Fleet.Builder, com.google.container.v1.FleetOrBuilder> + getFleetFieldBuilder() { + if (fleetBuilder_ == null) { + fleetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.Fleet, com.google.container.v1.Fleet.Builder, com.google.container.v1.FleetOrBuilder>( + getFleet(), + getParentForChildren(), + isClean()); + fleet_ = null; + } + return fleetBuilder_; + } + + private com.google.container.v1.SecurityPostureConfig securityPostureConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.SecurityPostureConfig, com.google.container.v1.SecurityPostureConfig.Builder, com.google.container.v1.SecurityPostureConfigOrBuilder> securityPostureConfigBuilder_; + /** + *
+     * Enable/Disable Security Posture API features for the cluster.
+     * 
+ * + * .google.container.v1.SecurityPostureConfig security_posture_config = 145; + * @return Whether the securityPostureConfig field is set. + */ + public boolean hasSecurityPostureConfig() { + return ((bitField2_ & 0x00000001) != 0); + } + /** + *
+     * Enable/Disable Security Posture API features for the cluster.
+     * 
+ * + * .google.container.v1.SecurityPostureConfig security_posture_config = 145; + * @return The securityPostureConfig. + */ + public com.google.container.v1.SecurityPostureConfig getSecurityPostureConfig() { + if (securityPostureConfigBuilder_ == null) { + return securityPostureConfig_ == null ? com.google.container.v1.SecurityPostureConfig.getDefaultInstance() : securityPostureConfig_; + } else { + return securityPostureConfigBuilder_.getMessage(); + } + } + /** + *
+     * Enable/Disable Security Posture API features for the cluster.
+     * 
+ * + * .google.container.v1.SecurityPostureConfig security_posture_config = 145; + */ + public Builder setSecurityPostureConfig(com.google.container.v1.SecurityPostureConfig value) { + if (securityPostureConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + securityPostureConfig_ = value; + } else { + securityPostureConfigBuilder_.setMessage(value); + } + bitField2_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Enable/Disable Security Posture API features for the cluster.
+     * 
+ * + * .google.container.v1.SecurityPostureConfig security_posture_config = 145; + */ + public Builder setSecurityPostureConfig( + com.google.container.v1.SecurityPostureConfig.Builder builderForValue) { + if (securityPostureConfigBuilder_ == null) { + securityPostureConfig_ = builderForValue.build(); + } else { + securityPostureConfigBuilder_.setMessage(builderForValue.build()); + } + bitField2_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Enable/Disable Security Posture API features for the cluster.
+     * 
+ * + * .google.container.v1.SecurityPostureConfig security_posture_config = 145; + */ + public Builder mergeSecurityPostureConfig(com.google.container.v1.SecurityPostureConfig value) { + if (securityPostureConfigBuilder_ == null) { + if (((bitField2_ & 0x00000001) != 0) && + securityPostureConfig_ != null && + securityPostureConfig_ != com.google.container.v1.SecurityPostureConfig.getDefaultInstance()) { + getSecurityPostureConfigBuilder().mergeFrom(value); + } else { + securityPostureConfig_ = value; + } + } else { + securityPostureConfigBuilder_.mergeFrom(value); + } + if (securityPostureConfig_ != null) { + bitField2_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+     * Enable/Disable Security Posture API features for the cluster.
+     * 
+ * + * .google.container.v1.SecurityPostureConfig security_posture_config = 145; + */ + public Builder clearSecurityPostureConfig() { + bitField2_ = (bitField2_ & ~0x00000001); + securityPostureConfig_ = null; + if (securityPostureConfigBuilder_ != null) { + securityPostureConfigBuilder_.dispose(); + securityPostureConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Enable/Disable Security Posture API features for the cluster.
+     * 
+ * + * .google.container.v1.SecurityPostureConfig security_posture_config = 145; + */ + public com.google.container.v1.SecurityPostureConfig.Builder getSecurityPostureConfigBuilder() { + bitField2_ |= 0x00000001; + onChanged(); + return getSecurityPostureConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Enable/Disable Security Posture API features for the cluster.
+     * 
+ * + * .google.container.v1.SecurityPostureConfig security_posture_config = 145; + */ + public com.google.container.v1.SecurityPostureConfigOrBuilder getSecurityPostureConfigOrBuilder() { + if (securityPostureConfigBuilder_ != null) { + return securityPostureConfigBuilder_.getMessageOrBuilder(); + } else { + return securityPostureConfig_ == null ? + com.google.container.v1.SecurityPostureConfig.getDefaultInstance() : securityPostureConfig_; + } + } + /** + *
+     * Enable/Disable Security Posture API features for the cluster.
+     * 
+ * + * .google.container.v1.SecurityPostureConfig security_posture_config = 145; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.SecurityPostureConfig, com.google.container.v1.SecurityPostureConfig.Builder, com.google.container.v1.SecurityPostureConfigOrBuilder> + getSecurityPostureConfigFieldBuilder() { + if (securityPostureConfigBuilder_ == null) { + securityPostureConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.SecurityPostureConfig, com.google.container.v1.SecurityPostureConfig.Builder, com.google.container.v1.SecurityPostureConfigOrBuilder>( + getSecurityPostureConfig(), + getParentForChildren(), + isClean()); + securityPostureConfig_ = null; + } + return securityPostureConfigBuilder_; + } + + private com.google.container.v1.K8sBetaAPIConfig enableK8SBetaApis_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.K8sBetaAPIConfig, com.google.container.v1.K8sBetaAPIConfig.Builder, com.google.container.v1.K8sBetaAPIConfigOrBuilder> enableK8SBetaApisBuilder_; + /** + *
+     * Beta APIs Config
+     * 
+ * + * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; + * @return Whether the enableK8sBetaApis field is set. + */ + public boolean hasEnableK8SBetaApis() { + return ((bitField2_ & 0x00000002) != 0); + } + /** + *
+     * Beta APIs Config
+     * 
+ * + * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; + * @return The enableK8sBetaApis. + */ + public com.google.container.v1.K8sBetaAPIConfig getEnableK8SBetaApis() { + if (enableK8SBetaApisBuilder_ == null) { + return enableK8SBetaApis_ == null ? com.google.container.v1.K8sBetaAPIConfig.getDefaultInstance() : enableK8SBetaApis_; + } else { + return enableK8SBetaApisBuilder_.getMessage(); + } + } + /** + *
+     * Beta APIs Config
+     * 
+ * + * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; + */ + public Builder setEnableK8SBetaApis(com.google.container.v1.K8sBetaAPIConfig value) { + if (enableK8SBetaApisBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + enableK8SBetaApis_ = value; + } else { + enableK8SBetaApisBuilder_.setMessage(value); + } + bitField2_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Beta APIs Config
+     * 
+ * + * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; + */ + public Builder setEnableK8SBetaApis( + com.google.container.v1.K8sBetaAPIConfig.Builder builderForValue) { + if (enableK8SBetaApisBuilder_ == null) { + enableK8SBetaApis_ = builderForValue.build(); + } else { + enableK8SBetaApisBuilder_.setMessage(builderForValue.build()); + } + bitField2_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Beta APIs Config
+     * 
+ * + * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; + */ + public Builder mergeEnableK8SBetaApis(com.google.container.v1.K8sBetaAPIConfig value) { + if (enableK8SBetaApisBuilder_ == null) { + if (((bitField2_ & 0x00000002) != 0) && + enableK8SBetaApis_ != null && + enableK8SBetaApis_ != com.google.container.v1.K8sBetaAPIConfig.getDefaultInstance()) { + getEnableK8SBetaApisBuilder().mergeFrom(value); + } else { + enableK8SBetaApis_ = value; + } + } else { + enableK8SBetaApisBuilder_.mergeFrom(value); + } + if (enableK8SBetaApis_ != null) { + bitField2_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + *
+     * Beta APIs Config
+     * 
+ * + * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; + */ + public Builder clearEnableK8SBetaApis() { + bitField2_ = (bitField2_ & ~0x00000002); + enableK8SBetaApis_ = null; + if (enableK8SBetaApisBuilder_ != null) { + enableK8SBetaApisBuilder_.dispose(); + enableK8SBetaApisBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Beta APIs Config
+     * 
+ * + * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; + */ + public com.google.container.v1.K8sBetaAPIConfig.Builder getEnableK8SBetaApisBuilder() { + bitField2_ |= 0x00000002; + onChanged(); + return getEnableK8SBetaApisFieldBuilder().getBuilder(); + } + /** + *
+     * Beta APIs Config
+     * 
+ * + * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; + */ + public com.google.container.v1.K8sBetaAPIConfigOrBuilder getEnableK8SBetaApisOrBuilder() { + if (enableK8SBetaApisBuilder_ != null) { + return enableK8SBetaApisBuilder_.getMessageOrBuilder(); + } else { + return enableK8SBetaApis_ == null ? + com.google.container.v1.K8sBetaAPIConfig.getDefaultInstance() : enableK8SBetaApis_; + } + } + /** + *
+     * Beta APIs Config
+     * 
+ * + * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.K8sBetaAPIConfig, com.google.container.v1.K8sBetaAPIConfig.Builder, com.google.container.v1.K8sBetaAPIConfigOrBuilder> + getEnableK8SBetaApisFieldBuilder() { + if (enableK8SBetaApisBuilder_ == null) { + enableK8SBetaApisBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.K8sBetaAPIConfig, com.google.container.v1.K8sBetaAPIConfig.Builder, com.google.container.v1.K8sBetaAPIConfigOrBuilder>( + getEnableK8SBetaApis(), + getParentForChildren(), + isClean()); + enableK8SBetaApis_ = null; + } + return enableK8SBetaApisBuilder_; + } + + private com.google.container.v1.EnterpriseConfig enterpriseConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.EnterpriseConfig, com.google.container.v1.EnterpriseConfig.Builder, com.google.container.v1.EnterpriseConfigOrBuilder> enterpriseConfigBuilder_; + /** + *
+     * GKE Enterprise Configuration.
+     * 
+ * + * .google.container.v1.EnterpriseConfig enterprise_config = 149; + * @return Whether the enterpriseConfig field is set. + */ + public boolean hasEnterpriseConfig() { + return ((bitField2_ & 0x00000004) != 0); + } + /** + *
+     * GKE Enterprise Configuration.
+     * 
+ * + * .google.container.v1.EnterpriseConfig enterprise_config = 149; + * @return The enterpriseConfig. + */ + public com.google.container.v1.EnterpriseConfig getEnterpriseConfig() { + if (enterpriseConfigBuilder_ == null) { + return enterpriseConfig_ == null ? com.google.container.v1.EnterpriseConfig.getDefaultInstance() : enterpriseConfig_; + } else { + return enterpriseConfigBuilder_.getMessage(); + } + } + /** + *
+     * GKE Enterprise Configuration.
+     * 
+ * + * .google.container.v1.EnterpriseConfig enterprise_config = 149; + */ + public Builder setEnterpriseConfig(com.google.container.v1.EnterpriseConfig value) { + if (enterpriseConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + enterpriseConfig_ = value; + } else { + enterpriseConfigBuilder_.setMessage(value); + } + bitField2_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * GKE Enterprise Configuration.
+     * 
+ * + * .google.container.v1.EnterpriseConfig enterprise_config = 149; + */ + public Builder setEnterpriseConfig( + com.google.container.v1.EnterpriseConfig.Builder builderForValue) { + if (enterpriseConfigBuilder_ == null) { + enterpriseConfig_ = builderForValue.build(); + } else { + enterpriseConfigBuilder_.setMessage(builderForValue.build()); + } + bitField2_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * GKE Enterprise Configuration.
+     * 
+ * + * .google.container.v1.EnterpriseConfig enterprise_config = 149; + */ + public Builder mergeEnterpriseConfig(com.google.container.v1.EnterpriseConfig value) { + if (enterpriseConfigBuilder_ == null) { + if (((bitField2_ & 0x00000004) != 0) && + enterpriseConfig_ != null && + enterpriseConfig_ != com.google.container.v1.EnterpriseConfig.getDefaultInstance()) { + getEnterpriseConfigBuilder().mergeFrom(value); + } else { + enterpriseConfig_ = value; + } + } else { + enterpriseConfigBuilder_.mergeFrom(value); + } + if (enterpriseConfig_ != null) { + bitField2_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+     * GKE Enterprise Configuration.
+     * 
+ * + * .google.container.v1.EnterpriseConfig enterprise_config = 149; + */ + public Builder clearEnterpriseConfig() { + bitField2_ = (bitField2_ & ~0x00000004); + enterpriseConfig_ = null; + if (enterpriseConfigBuilder_ != null) { + enterpriseConfigBuilder_.dispose(); + enterpriseConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * GKE Enterprise Configuration.
+     * 
+ * + * .google.container.v1.EnterpriseConfig enterprise_config = 149; + */ + public com.google.container.v1.EnterpriseConfig.Builder getEnterpriseConfigBuilder() { + bitField2_ |= 0x00000004; + onChanged(); + return getEnterpriseConfigFieldBuilder().getBuilder(); + } + /** + *
+     * GKE Enterprise Configuration.
+     * 
+ * + * .google.container.v1.EnterpriseConfig enterprise_config = 149; + */ + public com.google.container.v1.EnterpriseConfigOrBuilder getEnterpriseConfigOrBuilder() { + if (enterpriseConfigBuilder_ != null) { + return enterpriseConfigBuilder_.getMessageOrBuilder(); + } else { + return enterpriseConfig_ == null ? + com.google.container.v1.EnterpriseConfig.getDefaultInstance() : enterpriseConfig_; + } + } + /** + *
+     * GKE Enterprise Configuration.
+     * 
+ * + * .google.container.v1.EnterpriseConfig enterprise_config = 149; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.EnterpriseConfig, com.google.container.v1.EnterpriseConfig.Builder, com.google.container.v1.EnterpriseConfigOrBuilder> + getEnterpriseConfigFieldBuilder() { + if (enterpriseConfigBuilder_ == null) { + enterpriseConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.EnterpriseConfig, com.google.container.v1.EnterpriseConfig.Builder, com.google.container.v1.EnterpriseConfigOrBuilder>( + getEnterpriseConfig(), + getParentForChildren(), + isClean()); + enterpriseConfig_ = null; + } + return enterpriseConfigBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.Cluster) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.Cluster) + private static final com.google.container.v1.Cluster DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.Cluster(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.Cluster getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterAutoscaling.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterAutoscaling.java new file mode 100644 index 000000000000..cdcfaeb7bc28 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterAutoscaling.java @@ -0,0 +1,1760 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * 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.v1.ClusterAutoscaling} + */ +public final class ClusterAutoscaling extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClusterAutoscaling(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ClusterAutoscaling_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ClusterAutoscaling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ClusterAutoscaling.class, com.google.container.v1.ClusterAutoscaling.Builder.class); + } + + /** + *
+   * Defines possible options for autoscaling_profile field.
+   * 
+ * + * Protobuf enum {@code google.container.v1.ClusterAutoscaling.AutoscalingProfile} + */ + public enum AutoscalingProfile + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * No change to autoscaling configuration.
+     * 
+ * + * PROFILE_UNSPECIFIED = 0; + */ + PROFILE_UNSPECIFIED(0), + /** + *
+     * Prioritize optimizing utilization of resources.
+     * 
+ * + * OPTIMIZE_UTILIZATION = 1; + */ + OPTIMIZE_UTILIZATION(1), + /** + *
+     * Use default (balanced) autoscaling configuration.
+     * 
+ * + * BALANCED = 2; + */ + BALANCED(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * No change to autoscaling configuration.
+     * 
+ * + * PROFILE_UNSPECIFIED = 0; + */ + public static final int PROFILE_UNSPECIFIED_VALUE = 0; + /** + *
+     * Prioritize optimizing utilization of resources.
+     * 
+ * + * OPTIMIZE_UTILIZATION = 1; + */ + public static final int OPTIMIZE_UTILIZATION_VALUE = 1; + /** + *
+     * Use default (balanced) autoscaling configuration.
+     * 
+ * + * BALANCED = 2; + */ + public static final int BALANCED_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AutoscalingProfile valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static AutoscalingProfile forNumber(int value) { + switch (value) { + case 0: return PROFILE_UNSPECIFIED; + case 1: return OPTIMIZE_UTILIZATION; + case 2: return BALANCED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + AutoscalingProfile> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AutoscalingProfile findValueByNumber(int number) { + return AutoscalingProfile.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.ClusterAutoscaling.getDescriptor().getEnumTypes().get(0); + } + + private static final AutoscalingProfile[] VALUES = values(); + + public static AutoscalingProfile valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private AutoscalingProfile(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.ClusterAutoscaling.AutoscalingProfile) + } + + private int bitField0_; + public static final int ENABLE_NODE_AUTOPROVISIONING_FIELD_NUMBER = 1; + private boolean enableNodeAutoprovisioning_ = false; + /** + *
+   * 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; + @SuppressWarnings("serial") + private java.util.List resourceLimits_; + /** + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1.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.v1.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.v1.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.v1.ResourceLimit resource_limits = 2; + */ + @java.lang.Override + public com.google.container.v1.ResourceLimit getResourceLimits(int index) { + return resourceLimits_.get(index); + } + /** + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1.ResourceLimit resource_limits = 2; + */ + @java.lang.Override + public com.google.container.v1.ResourceLimitOrBuilder getResourceLimitsOrBuilder( + int index) { + return resourceLimits_.get(index); + } + + public static final int AUTOSCALING_PROFILE_FIELD_NUMBER = 3; + private int autoscalingProfile_ = 0; + /** + *
+   * Defines autoscaling behaviour.
+   * 
+ * + * .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * @return The enum numeric value on the wire for autoscalingProfile. + */ + @java.lang.Override public int getAutoscalingProfileValue() { + return autoscalingProfile_; + } + /** + *
+   * Defines autoscaling behaviour.
+   * 
+ * + * .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * @return The autoscalingProfile. + */ + @java.lang.Override public com.google.container.v1.ClusterAutoscaling.AutoscalingProfile getAutoscalingProfile() { + com.google.container.v1.ClusterAutoscaling.AutoscalingProfile result = com.google.container.v1.ClusterAutoscaling.AutoscalingProfile.forNumber(autoscalingProfile_); + return result == null ? com.google.container.v1.ClusterAutoscaling.AutoscalingProfile.UNRECOGNIZED : result; + } + + public static final int AUTOPROVISIONING_NODE_POOL_DEFAULTS_FIELD_NUMBER = 4; + private com.google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioningNodePoolDefaults_; + /** + *
+   * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+   * created by NAP.
+   * 
+ * + * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * @return Whether the autoprovisioningNodePoolDefaults field is set. + */ + @java.lang.Override + public boolean hasAutoprovisioningNodePoolDefaults() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+   * created by NAP.
+   * 
+ * + * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * @return The autoprovisioningNodePoolDefaults. + */ + @java.lang.Override + public com.google.container.v1.AutoprovisioningNodePoolDefaults getAutoprovisioningNodePoolDefaults() { + return autoprovisioningNodePoolDefaults_ == null ? com.google.container.v1.AutoprovisioningNodePoolDefaults.getDefaultInstance() : autoprovisioningNodePoolDefaults_; + } + /** + *
+   * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+   * created by NAP.
+   * 
+ * + * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + */ + @java.lang.Override + public com.google.container.v1.AutoprovisioningNodePoolDefaultsOrBuilder getAutoprovisioningNodePoolDefaultsOrBuilder() { + return autoprovisioningNodePoolDefaults_ == null ? com.google.container.v1.AutoprovisioningNodePoolDefaults.getDefaultInstance() : autoprovisioningNodePoolDefaults_; + } + + public static final int AUTOPROVISIONING_LOCATIONS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList autoprovisioningLocations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * 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.v1.ClusterAutoscaling.AutoscalingProfile.PROFILE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, autoscalingProfile_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getAutoprovisioningNodePoolDefaults()); + } + for (int i = 0; i < autoprovisioningLocations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, autoprovisioningLocations_.getRaw(i)); + } + getUnknownFields().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.v1.ClusterAutoscaling.AutoscalingProfile.PROFILE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, autoscalingProfile_); + } + if (((bitField0_ & 0x00000001) != 0)) { + 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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.ClusterAutoscaling)) { + return super.equals(obj); + } + com.google.container.v1.ClusterAutoscaling other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ClusterAutoscaling parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.ClusterAutoscaling parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.ClusterAutoscaling parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ClusterAutoscaling parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ClusterAutoscaling parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.ClusterAutoscaling parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.ClusterAutoscaling parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.ClusterAutoscaling} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ClusterAutoscaling) + com.google.container.v1.ClusterAutoscalingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ClusterAutoscaling_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ClusterAutoscaling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ClusterAutoscaling.class, com.google.container.v1.ClusterAutoscaling.Builder.class); + } + + // Construct using com.google.container.v1.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(); + getAutoprovisioningNodePoolDefaultsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enableNodeAutoprovisioning_ = false; + if (resourceLimitsBuilder_ == null) { + resourceLimits_ = java.util.Collections.emptyList(); + } else { + resourceLimits_ = null; + resourceLimitsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + autoscalingProfile_ = 0; + autoprovisioningNodePoolDefaults_ = null; + if (autoprovisioningNodePoolDefaultsBuilder_ != null) { + autoprovisioningNodePoolDefaultsBuilder_.dispose(); + autoprovisioningNodePoolDefaultsBuilder_ = null; + } + autoprovisioningLocations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ClusterAutoscaling_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ClusterAutoscaling getDefaultInstanceForType() { + return com.google.container.v1.ClusterAutoscaling.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ClusterAutoscaling build() { + com.google.container.v1.ClusterAutoscaling result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ClusterAutoscaling buildPartial() { + com.google.container.v1.ClusterAutoscaling result = new com.google.container.v1.ClusterAutoscaling(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1.ClusterAutoscaling result) { + if (resourceLimitsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + resourceLimits_ = java.util.Collections.unmodifiableList(resourceLimits_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.resourceLimits_ = resourceLimits_; + } else { + result.resourceLimits_ = resourceLimitsBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1.ClusterAutoscaling result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enableNodeAutoprovisioning_ = enableNodeAutoprovisioning_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.autoscalingProfile_ = autoscalingProfile_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.autoprovisioningNodePoolDefaults_ = autoprovisioningNodePoolDefaultsBuilder_ == null + ? autoprovisioningNodePoolDefaults_ + : autoprovisioningNodePoolDefaultsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + autoprovisioningLocations_.makeImmutable(); + result.autoprovisioningLocations_ = autoprovisioningLocations_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ClusterAutoscaling) { + return mergeFrom((com.google.container.v1.ClusterAutoscaling)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ClusterAutoscaling other) { + if (other == com.google.container.v1.ClusterAutoscaling.getDefaultInstance()) return this; + if (other.getEnableNodeAutoprovisioning() != false) { + setEnableNodeAutoprovisioning(other.getEnableNodeAutoprovisioning()); + } + if (resourceLimitsBuilder_ == null) { + if (!other.resourceLimits_.isEmpty()) { + if (resourceLimits_.isEmpty()) { + resourceLimits_ = other.resourceLimits_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureResourceLimitsIsMutable(); + resourceLimits_.addAll(other.resourceLimits_); + } + onChanged(); + } + } else { + if (!other.resourceLimits_.isEmpty()) { + if (resourceLimitsBuilder_.isEmpty()) { + resourceLimitsBuilder_.dispose(); + resourceLimitsBuilder_ = null; + resourceLimits_ = other.resourceLimits_; + bitField0_ = (bitField0_ & ~0x00000002); + resourceLimitsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResourceLimitsFieldBuilder() : null; + } else { + resourceLimitsBuilder_.addAllMessages(other.resourceLimits_); + } + } + } + if (other.autoscalingProfile_ != 0) { + setAutoscalingProfileValue(other.getAutoscalingProfileValue()); + } + if (other.hasAutoprovisioningNodePoolDefaults()) { + mergeAutoprovisioningNodePoolDefaults(other.getAutoprovisioningNodePoolDefaults()); + } + if (!other.autoprovisioningLocations_.isEmpty()) { + if (autoprovisioningLocations_.isEmpty()) { + autoprovisioningLocations_ = other.autoprovisioningLocations_; + bitField0_ |= 0x00000010; + } else { + ensureAutoprovisioningLocationsIsMutable(); + autoprovisioningLocations_.addAll(other.autoprovisioningLocations_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enableNodeAutoprovisioning_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + com.google.container.v1.ResourceLimit m = + input.readMessage( + com.google.container.v1.ResourceLimit.parser(), + extensionRegistry); + if (resourceLimitsBuilder_ == null) { + ensureResourceLimitsIsMutable(); + resourceLimits_.add(m); + } else { + resourceLimitsBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: { + autoscalingProfile_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + input.readMessage( + getAutoprovisioningNodePoolDefaultsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + ensureAutoprovisioningLocationsIsMutable(); + autoprovisioningLocations_.add(s); + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Enables automatic node pool creation and deletion.
+     * 
+ * + * bool enable_node_autoprovisioning = 1; + * @return This builder for chaining. + */ + public Builder clearEnableNodeAutoprovisioning() { + bitField0_ = (bitField0_ & ~0x00000001); + enableNodeAutoprovisioning_ = false; + onChanged(); + return this; + } + + private java.util.List resourceLimits_ = + java.util.Collections.emptyList(); + private void ensureResourceLimitsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + resourceLimits_ = new java.util.ArrayList(resourceLimits_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.ResourceLimit, com.google.container.v1.ResourceLimit.Builder, com.google.container.v1.ResourceLimitOrBuilder> resourceLimitsBuilder_; + + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1.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.v1.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.v1.ResourceLimit resource_limits = 2; + */ + public com.google.container.v1.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.v1.ResourceLimit resource_limits = 2; + */ + public Builder setResourceLimits( + int index, com.google.container.v1.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.v1.ResourceLimit resource_limits = 2; + */ + public Builder setResourceLimits( + int index, com.google.container.v1.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.v1.ResourceLimit resource_limits = 2; + */ + public Builder addResourceLimits(com.google.container.v1.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.v1.ResourceLimit resource_limits = 2; + */ + public Builder addResourceLimits( + int index, com.google.container.v1.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.v1.ResourceLimit resource_limits = 2; + */ + public Builder addResourceLimits( + com.google.container.v1.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.v1.ResourceLimit resource_limits = 2; + */ + public Builder addResourceLimits( + int index, com.google.container.v1.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.v1.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.v1.ResourceLimit resource_limits = 2; + */ + public Builder clearResourceLimits() { + if (resourceLimitsBuilder_ == null) { + resourceLimits_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + resourceLimitsBuilder_.clear(); + } + return this; + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1.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.v1.ResourceLimit resource_limits = 2; + */ + public com.google.container.v1.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.v1.ResourceLimit resource_limits = 2; + */ + public com.google.container.v1.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.v1.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.v1.ResourceLimit resource_limits = 2; + */ + public com.google.container.v1.ResourceLimit.Builder addResourceLimitsBuilder() { + return getResourceLimitsFieldBuilder().addBuilder( + com.google.container.v1.ResourceLimit.getDefaultInstance()); + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1.ResourceLimit resource_limits = 2; + */ + public com.google.container.v1.ResourceLimit.Builder addResourceLimitsBuilder( + int index) { + return getResourceLimitsFieldBuilder().addBuilder( + index, com.google.container.v1.ResourceLimit.getDefaultInstance()); + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1.ResourceLimit resource_limits = 2; + */ + public java.util.List + getResourceLimitsBuilderList() { + return getResourceLimitsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.ResourceLimit, com.google.container.v1.ResourceLimit.Builder, com.google.container.v1.ResourceLimitOrBuilder> + getResourceLimitsFieldBuilder() { + if (resourceLimitsBuilder_ == null) { + resourceLimitsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.ResourceLimit, com.google.container.v1.ResourceLimit.Builder, com.google.container.v1.ResourceLimitOrBuilder>( + resourceLimits_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + resourceLimits_ = null; + } + return resourceLimitsBuilder_; + } + + private int autoscalingProfile_ = 0; + /** + *
+     * Defines autoscaling behaviour.
+     * 
+ * + * .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * @return The enum numeric value on the wire for autoscalingProfile. + */ + @java.lang.Override public int getAutoscalingProfileValue() { + return autoscalingProfile_; + } + /** + *
+     * Defines autoscaling behaviour.
+     * 
+ * + * .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * @param value The enum numeric value on the wire for autoscalingProfile to set. + * @return This builder for chaining. + */ + public Builder setAutoscalingProfileValue(int value) { + autoscalingProfile_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Defines autoscaling behaviour.
+     * 
+ * + * .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * @return The autoscalingProfile. + */ + @java.lang.Override + public com.google.container.v1.ClusterAutoscaling.AutoscalingProfile getAutoscalingProfile() { + com.google.container.v1.ClusterAutoscaling.AutoscalingProfile result = com.google.container.v1.ClusterAutoscaling.AutoscalingProfile.forNumber(autoscalingProfile_); + return result == null ? com.google.container.v1.ClusterAutoscaling.AutoscalingProfile.UNRECOGNIZED : result; + } + /** + *
+     * Defines autoscaling behaviour.
+     * 
+ * + * .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * @param value The autoscalingProfile to set. + * @return This builder for chaining. + */ + public Builder setAutoscalingProfile(com.google.container.v1.ClusterAutoscaling.AutoscalingProfile value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + autoscalingProfile_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Defines autoscaling behaviour.
+     * 
+ * + * .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * @return This builder for chaining. + */ + public Builder clearAutoscalingProfile() { + bitField0_ = (bitField0_ & ~0x00000004); + autoscalingProfile_ = 0; + onChanged(); + return this; + } + + private com.google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioningNodePoolDefaults_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AutoprovisioningNodePoolDefaults, com.google.container.v1.AutoprovisioningNodePoolDefaults.Builder, com.google.container.v1.AutoprovisioningNodePoolDefaultsOrBuilder> autoprovisioningNodePoolDefaultsBuilder_; + /** + *
+     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+     * created by NAP.
+     * 
+ * + * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * @return Whether the autoprovisioningNodePoolDefaults field is set. + */ + public boolean hasAutoprovisioningNodePoolDefaults() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+     * created by NAP.
+     * 
+ * + * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * @return The autoprovisioningNodePoolDefaults. + */ + public com.google.container.v1.AutoprovisioningNodePoolDefaults getAutoprovisioningNodePoolDefaults() { + if (autoprovisioningNodePoolDefaultsBuilder_ == null) { + return autoprovisioningNodePoolDefaults_ == null ? com.google.container.v1.AutoprovisioningNodePoolDefaults.getDefaultInstance() : autoprovisioningNodePoolDefaults_; + } else { + return autoprovisioningNodePoolDefaultsBuilder_.getMessage(); + } + } + /** + *
+     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+     * created by NAP.
+     * 
+ * + * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + */ + public Builder setAutoprovisioningNodePoolDefaults(com.google.container.v1.AutoprovisioningNodePoolDefaults value) { + if (autoprovisioningNodePoolDefaultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autoprovisioningNodePoolDefaults_ = value; + } else { + autoprovisioningNodePoolDefaultsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+     * created by NAP.
+     * 
+ * + * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + */ + public Builder setAutoprovisioningNodePoolDefaults( + com.google.container.v1.AutoprovisioningNodePoolDefaults.Builder builderForValue) { + if (autoprovisioningNodePoolDefaultsBuilder_ == null) { + autoprovisioningNodePoolDefaults_ = builderForValue.build(); + } else { + autoprovisioningNodePoolDefaultsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+     * created by NAP.
+     * 
+ * + * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + */ + public Builder mergeAutoprovisioningNodePoolDefaults(com.google.container.v1.AutoprovisioningNodePoolDefaults value) { + if (autoprovisioningNodePoolDefaultsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + autoprovisioningNodePoolDefaults_ != null && + autoprovisioningNodePoolDefaults_ != com.google.container.v1.AutoprovisioningNodePoolDefaults.getDefaultInstance()) { + getAutoprovisioningNodePoolDefaultsBuilder().mergeFrom(value); + } else { + autoprovisioningNodePoolDefaults_ = value; + } + } else { + autoprovisioningNodePoolDefaultsBuilder_.mergeFrom(value); + } + if (autoprovisioningNodePoolDefaults_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + *
+     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+     * created by NAP.
+     * 
+ * + * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + */ + public Builder clearAutoprovisioningNodePoolDefaults() { + bitField0_ = (bitField0_ & ~0x00000008); + autoprovisioningNodePoolDefaults_ = null; + if (autoprovisioningNodePoolDefaultsBuilder_ != null) { + autoprovisioningNodePoolDefaultsBuilder_.dispose(); + autoprovisioningNodePoolDefaultsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+     * created by NAP.
+     * 
+ * + * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + */ + public com.google.container.v1.AutoprovisioningNodePoolDefaults.Builder getAutoprovisioningNodePoolDefaultsBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getAutoprovisioningNodePoolDefaultsFieldBuilder().getBuilder(); + } + /** + *
+     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+     * created by NAP.
+     * 
+ * + * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + */ + public com.google.container.v1.AutoprovisioningNodePoolDefaultsOrBuilder getAutoprovisioningNodePoolDefaultsOrBuilder() { + if (autoprovisioningNodePoolDefaultsBuilder_ != null) { + return autoprovisioningNodePoolDefaultsBuilder_.getMessageOrBuilder(); + } else { + return autoprovisioningNodePoolDefaults_ == null ? + com.google.container.v1.AutoprovisioningNodePoolDefaults.getDefaultInstance() : autoprovisioningNodePoolDefaults_; + } + } + /** + *
+     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+     * created by NAP.
+     * 
+ * + * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AutoprovisioningNodePoolDefaults, com.google.container.v1.AutoprovisioningNodePoolDefaults.Builder, com.google.container.v1.AutoprovisioningNodePoolDefaultsOrBuilder> + getAutoprovisioningNodePoolDefaultsFieldBuilder() { + if (autoprovisioningNodePoolDefaultsBuilder_ == null) { + autoprovisioningNodePoolDefaultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AutoprovisioningNodePoolDefaults, com.google.container.v1.AutoprovisioningNodePoolDefaults.Builder, com.google.container.v1.AutoprovisioningNodePoolDefaultsOrBuilder>( + getAutoprovisioningNodePoolDefaults(), + getParentForChildren(), + isClean()); + autoprovisioningNodePoolDefaults_ = null; + } + return autoprovisioningNodePoolDefaultsBuilder_; + } + + private com.google.protobuf.LazyStringArrayList autoprovisioningLocations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureAutoprovisioningLocationsIsMutable() { + if (!autoprovisioningLocations_.isModifiable()) { + autoprovisioningLocations_ = new com.google.protobuf.LazyStringArrayList(autoprovisioningLocations_); + } + bitField0_ |= 0x00000010; + } + /** + *
+     * 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() { + autoprovisioningLocations_.makeImmutable(); + 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); + } + /** + *
+     * 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); + bitField0_ |= 0x00000010; + 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); + bitField0_ |= 0x00000010; + 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_); + bitField0_ |= 0x00000010; + 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.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010);; + 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); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.ClusterAutoscaling) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ClusterAutoscaling) + private static final com.google.container.v1.ClusterAutoscaling DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.ClusterAutoscaling(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.ClusterAutoscaling getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterAutoscalingOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterAutoscalingOrBuilder.java new file mode 100644 index 000000000000..6997cefaea5b --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterAutoscalingOrBuilder.java @@ -0,0 +1,167 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface ClusterAutoscalingOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.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.v1.ResourceLimit resource_limits = 2; + */ + java.util.List + getResourceLimitsList(); + /** + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1.ResourceLimit resource_limits = 2; + */ + com.google.container.v1.ResourceLimit getResourceLimits(int index); + /** + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1.ResourceLimit resource_limits = 2; + */ + int getResourceLimitsCount(); + /** + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1.ResourceLimit resource_limits = 2; + */ + java.util.List + getResourceLimitsOrBuilderList(); + /** + *
+   * Contains global constraints regarding minimum and maximum
+   * amount of resources in the cluster.
+   * 
+ * + * repeated .google.container.v1.ResourceLimit resource_limits = 2; + */ + com.google.container.v1.ResourceLimitOrBuilder getResourceLimitsOrBuilder( + int index); + + /** + *
+   * Defines autoscaling behaviour.
+   * 
+ * + * .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * @return The enum numeric value on the wire for autoscalingProfile. + */ + int getAutoscalingProfileValue(); + /** + *
+   * Defines autoscaling behaviour.
+   * 
+ * + * .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; + * @return The autoscalingProfile. + */ + com.google.container.v1.ClusterAutoscaling.AutoscalingProfile getAutoscalingProfile(); + + /** + *
+   * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+   * created by NAP.
+   * 
+ * + * .google.container.v1.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.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + * @return The autoprovisioningNodePoolDefaults. + */ + com.google.container.v1.AutoprovisioningNodePoolDefaults getAutoprovisioningNodePoolDefaults(); + /** + *
+   * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+   * created by NAP.
+   * 
+ * + * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + */ + com.google.container.v1.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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java new file mode 100644 index 000000000000..4d208a6c33a9 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java @@ -0,0 +1,1989 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface ClusterOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.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]; + * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. + * See google/container/v1/cluster_service.proto;l=1679 + * @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.v1.NodeConfig node_config = 4 [deprecated = true]; + * @deprecated google.container.v1.Cluster.node_config is deprecated. + * See google/container/v1/cluster_service.proto;l=1692 + * @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.v1.NodeConfig node_config = 4 [deprecated = true]; + * @deprecated google.container.v1.Cluster.node_config is deprecated. + * See google/container/v1/cluster_service.proto;l=1692 + * @return The nodeConfig. + */ + @java.lang.Deprecated com.google.container.v1.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.v1.NodeConfig node_config = 4 [deprecated = true]; + */ + @java.lang.Deprecated com.google.container.v1.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.v1.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.v1.MasterAuth master_auth = 5; + * @return The masterAuth. + */ + com.google.container.v1.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.v1.MasterAuth master_auth = 5; + */ + com.google.container.v1.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.
+   * 
+ * + * 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.
+   * 
+ * + * 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.v1.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.v1.AddonsConfig addons_config = 10; + * @return The addonsConfig. + */ + com.google.container.v1.AddonsConfig getAddonsConfig(); + /** + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1.AddonsConfig addons_config = 10; + */ + com.google.container.v1.AddonsConfigOrBuilder getAddonsConfigOrBuilder(); + + /** + *
+   * The name of the Google Compute Engine
+   * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
+   * the cluster is connected.
+   * 
+ * + * 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.
+   * 
+ * + * 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.v1.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.v1.NodePool node_pools = 12; + */ + com.google.container.v1.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.v1.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.v1.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.v1.NodePool node_pools = 12; + */ + com.google.container.v1.NodePoolOrBuilder getNodePoolsOrBuilder( + int index); + + /** + *
+   * The list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster's nodes should be located.
+   *
+   * 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. v1alpha1) and features that may not be production ready in
+   * the kubernetes version of the master and nodes.
+   * The cluster has no SLA for uptime and master/node upgrades are disabled.
+   * Alpha enabled clusters are automatically deleted thirty days after
+   * creation.
+   * 
+ * + * bool enable_kubernetes_alpha = 14; + * @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; + */ + /* nullable */ +java.lang.String getResourceLabelsOrDefault( + java.lang.String key, + /* nullable */ +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.v1.LegacyAbac legacy_abac = 18; + * @return Whether the legacyAbac field is set. + */ + boolean hasLegacyAbac(); + /** + *
+   * Configuration for the legacy ABAC authorization mode.
+   * 
+ * + * .google.container.v1.LegacyAbac legacy_abac = 18; + * @return The legacyAbac. + */ + com.google.container.v1.LegacyAbac getLegacyAbac(); + /** + *
+   * Configuration for the legacy ABAC authorization mode.
+   * 
+ * + * .google.container.v1.LegacyAbac legacy_abac = 18; + */ + com.google.container.v1.LegacyAbacOrBuilder getLegacyAbacOrBuilder(); + + /** + *
+   * Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1.NetworkPolicy network_policy = 19; + * @return Whether the networkPolicy field is set. + */ + boolean hasNetworkPolicy(); + /** + *
+   * Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1.NetworkPolicy network_policy = 19; + * @return The networkPolicy. + */ + com.google.container.v1.NetworkPolicy getNetworkPolicy(); + /** + *
+   * Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1.NetworkPolicy network_policy = 19; + */ + com.google.container.v1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder(); + + /** + *
+   * Configuration for cluster IP allocation.
+   * 
+ * + * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; + * @return Whether the ipAllocationPolicy field is set. + */ + boolean hasIpAllocationPolicy(); + /** + *
+   * Configuration for cluster IP allocation.
+   * 
+ * + * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; + * @return The ipAllocationPolicy. + */ + com.google.container.v1.IPAllocationPolicy getIpAllocationPolicy(); + /** + *
+   * Configuration for cluster IP allocation.
+   * 
+ * + * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; + */ + com.google.container.v1.IPAllocationPolicyOrBuilder getIpAllocationPolicyOrBuilder(); + + /** + *
+   * The configuration options for master authorized networks feature.
+   * 
+ * + * .google.container.v1.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.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + * @return The masterAuthorizedNetworksConfig. + */ + com.google.container.v1.MasterAuthorizedNetworksConfig getMasterAuthorizedNetworksConfig(); + /** + *
+   * The configuration options for master authorized networks feature.
+   * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder getMasterAuthorizedNetworksConfigOrBuilder(); + + /** + *
+   * Configure the maintenance policy for this cluster.
+   * 
+ * + * .google.container.v1.MaintenancePolicy maintenance_policy = 23; + * @return Whether the maintenancePolicy field is set. + */ + boolean hasMaintenancePolicy(); + /** + *
+   * Configure the maintenance policy for this cluster.
+   * 
+ * + * .google.container.v1.MaintenancePolicy maintenance_policy = 23; + * @return The maintenancePolicy. + */ + com.google.container.v1.MaintenancePolicy getMaintenancePolicy(); + /** + *
+   * Configure the maintenance policy for this cluster.
+   * 
+ * + * .google.container.v1.MaintenancePolicy maintenance_policy = 23; + */ + com.google.container.v1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder(); + + /** + *
+   * Configuration for Binary Authorization.
+   * 
+ * + * .google.container.v1.BinaryAuthorization binary_authorization = 24; + * @return Whether the binaryAuthorization field is set. + */ + boolean hasBinaryAuthorization(); + /** + *
+   * Configuration for Binary Authorization.
+   * 
+ * + * .google.container.v1.BinaryAuthorization binary_authorization = 24; + * @return The binaryAuthorization. + */ + com.google.container.v1.BinaryAuthorization getBinaryAuthorization(); + /** + *
+   * Configuration for Binary Authorization.
+   * 
+ * + * .google.container.v1.BinaryAuthorization binary_authorization = 24; + */ + com.google.container.v1.BinaryAuthorizationOrBuilder getBinaryAuthorizationOrBuilder(); + + /** + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1.ClusterAutoscaling autoscaling = 26; + * @return Whether the autoscaling field is set. + */ + boolean hasAutoscaling(); + /** + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1.ClusterAutoscaling autoscaling = 26; + * @return The autoscaling. + */ + com.google.container.v1.ClusterAutoscaling getAutoscaling(); + /** + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1.ClusterAutoscaling autoscaling = 26; + */ + com.google.container.v1.ClusterAutoscalingOrBuilder getAutoscalingOrBuilder(); + + /** + *
+   * Configuration for cluster networking.
+   * 
+ * + * .google.container.v1.NetworkConfig network_config = 27; + * @return Whether the networkConfig field is set. + */ + boolean hasNetworkConfig(); + /** + *
+   * Configuration for cluster networking.
+   * 
+ * + * .google.container.v1.NetworkConfig network_config = 27; + * @return The networkConfig. + */ + com.google.container.v1.NetworkConfig getNetworkConfig(); + /** + *
+   * Configuration for cluster networking.
+   * 
+ * + * .google.container.v1.NetworkConfig network_config = 27; + */ + com.google.container.v1.NetworkConfigOrBuilder getNetworkConfigOrBuilder(); + + /** + *
+   * 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.v1.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.v1.MaxPodsConstraint default_max_pods_constraint = 30; + * @return The defaultMaxPodsConstraint. + */ + com.google.container.v1.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.v1.MaxPodsConstraint default_max_pods_constraint = 30; + */ + com.google.container.v1.MaxPodsConstraintOrBuilder getDefaultMaxPodsConstraintOrBuilder(); + + /** + *
+   * Configuration for exporting resource usages. Resource usage export is
+   * disabled when this config is unspecified.
+   * 
+ * + * .google.container.v1.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 is unspecified.
+   * 
+ * + * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; + * @return The resourceUsageExportConfig. + */ + com.google.container.v1.ResourceUsageExportConfig getResourceUsageExportConfig(); + /** + *
+   * Configuration for exporting resource usages. Resource usage export is
+   * disabled when this config is unspecified.
+   * 
+ * + * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; + */ + com.google.container.v1.ResourceUsageExportConfigOrBuilder getResourceUsageExportConfigOrBuilder(); + + /** + *
+   * Configuration controlling RBAC group membership information.
+   * 
+ * + * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * @return Whether the authenticatorGroupsConfig field is set. + */ + boolean hasAuthenticatorGroupsConfig(); + /** + *
+   * Configuration controlling RBAC group membership information.
+   * 
+ * + * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * @return The authenticatorGroupsConfig. + */ + com.google.container.v1.AuthenticatorGroupsConfig getAuthenticatorGroupsConfig(); + /** + *
+   * Configuration controlling RBAC group membership information.
+   * 
+ * + * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + */ + com.google.container.v1.AuthenticatorGroupsConfigOrBuilder getAuthenticatorGroupsConfigOrBuilder(); + + /** + *
+   * Configuration for private cluster.
+   * 
+ * + * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; + * @return Whether the privateClusterConfig field is set. + */ + boolean hasPrivateClusterConfig(); + /** + *
+   * Configuration for private cluster.
+   * 
+ * + * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; + * @return The privateClusterConfig. + */ + com.google.container.v1.PrivateClusterConfig getPrivateClusterConfig(); + /** + *
+   * Configuration for private cluster.
+   * 
+ * + * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; + */ + com.google.container.v1.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder(); + + /** + *
+   * Configuration of etcd encryption.
+   * 
+ * + * .google.container.v1.DatabaseEncryption database_encryption = 38; + * @return Whether the databaseEncryption field is set. + */ + boolean hasDatabaseEncryption(); + /** + *
+   * Configuration of etcd encryption.
+   * 
+ * + * .google.container.v1.DatabaseEncryption database_encryption = 38; + * @return The databaseEncryption. + */ + com.google.container.v1.DatabaseEncryption getDatabaseEncryption(); + /** + *
+   * Configuration of etcd encryption.
+   * 
+ * + * .google.container.v1.DatabaseEncryption database_encryption = 38; + */ + com.google.container.v1.DatabaseEncryptionOrBuilder getDatabaseEncryptionOrBuilder(); + + /** + *
+   * Cluster-level Vertical Pod Autoscaling configuration.
+   * 
+ * + * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + * @return Whether the verticalPodAutoscaling field is set. + */ + boolean hasVerticalPodAutoscaling(); + /** + *
+   * Cluster-level Vertical Pod Autoscaling configuration.
+   * 
+ * + * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + * @return The verticalPodAutoscaling. + */ + com.google.container.v1.VerticalPodAutoscaling getVerticalPodAutoscaling(); + /** + *
+   * Cluster-level Vertical Pod Autoscaling configuration.
+   * 
+ * + * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + */ + com.google.container.v1.VerticalPodAutoscalingOrBuilder getVerticalPodAutoscalingOrBuilder(); + + /** + *
+   * Shielded Nodes configuration.
+   * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + * @return Whether the shieldedNodes field is set. + */ + boolean hasShieldedNodes(); + /** + *
+   * Shielded Nodes configuration.
+   * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + * @return The shieldedNodes. + */ + com.google.container.v1.ShieldedNodes getShieldedNodes(); + /** + *
+   * Shielded Nodes configuration.
+   * 
+ * + * .google.container.v1.ShieldedNodes shielded_nodes = 40; + */ + com.google.container.v1.ShieldedNodesOrBuilder getShieldedNodesOrBuilder(); + + /** + *
+   * Release channel configuration. If left unspecified on cluster creation and
+   * a version is specified, the cluster is enrolled in the most mature release
+   * channel where the version is available (first checking STABLE, then
+   * REGULAR, and finally RAPID). Otherwise, if no release channel
+   * configuration and no version is specified, the cluster is enrolled in the
+   * REGULAR channel with its default version.
+   * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + * @return Whether the releaseChannel field is set. + */ + boolean hasReleaseChannel(); + /** + *
+   * Release channel configuration. If left unspecified on cluster creation and
+   * a version is specified, the cluster is enrolled in the most mature release
+   * channel where the version is available (first checking STABLE, then
+   * REGULAR, and finally RAPID). Otherwise, if no release channel
+   * configuration and no version is specified, the cluster is enrolled in the
+   * REGULAR channel with its default version.
+   * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + * @return The releaseChannel. + */ + com.google.container.v1.ReleaseChannel getReleaseChannel(); + /** + *
+   * Release channel configuration. If left unspecified on cluster creation and
+   * a version is specified, the cluster is enrolled in the most mature release
+   * channel where the version is available (first checking STABLE, then
+   * REGULAR, and finally RAPID). Otherwise, if no release channel
+   * configuration and no version is specified, the cluster is enrolled in the
+   * REGULAR channel with its default version.
+   * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 41; + */ + com.google.container.v1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder(); + + /** + *
+   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+   * policies.
+   * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + * @return Whether the workloadIdentityConfig field is set. + */ + boolean hasWorkloadIdentityConfig(); + /** + *
+   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+   * policies.
+   * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + * @return The workloadIdentityConfig. + */ + com.google.container.v1.WorkloadIdentityConfig getWorkloadIdentityConfig(); + /** + *
+   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+   * policies.
+   * 
+ * + * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; + */ + com.google.container.v1.WorkloadIdentityConfigOrBuilder getWorkloadIdentityConfigOrBuilder(); + + /** + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1.MeshCertificates mesh_certificates = 67; + * @return Whether the meshCertificates field is set. + */ + boolean hasMeshCertificates(); + /** + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1.MeshCertificates mesh_certificates = 67; + * @return The meshCertificates. + */ + com.google.container.v1.MeshCertificates getMeshCertificates(); + /** + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1.MeshCertificates mesh_certificates = 67; + */ + com.google.container.v1.MeshCertificatesOrBuilder getMeshCertificatesOrBuilder(); + + /** + *
+   * Configuration for the fine-grained cost management feature.
+   * 
+ * + * .google.container.v1.CostManagementConfig cost_management_config = 45; + * @return Whether the costManagementConfig field is set. + */ + boolean hasCostManagementConfig(); + /** + *
+   * Configuration for the fine-grained cost management feature.
+   * 
+ * + * .google.container.v1.CostManagementConfig cost_management_config = 45; + * @return The costManagementConfig. + */ + com.google.container.v1.CostManagementConfig getCostManagementConfig(); + /** + *
+   * Configuration for the fine-grained cost management feature.
+   * 
+ * + * .google.container.v1.CostManagementConfig cost_management_config = 45; + */ + com.google.container.v1.CostManagementConfigOrBuilder getCostManagementConfigOrBuilder(); + + /** + *
+   * Notification configuration of the cluster.
+   * 
+ * + * .google.container.v1.NotificationConfig notification_config = 49; + * @return Whether the notificationConfig field is set. + */ + boolean hasNotificationConfig(); + /** + *
+   * Notification configuration of the cluster.
+   * 
+ * + * .google.container.v1.NotificationConfig notification_config = 49; + * @return The notificationConfig. + */ + com.google.container.v1.NotificationConfig getNotificationConfig(); + /** + *
+   * Notification configuration of the cluster.
+   * 
+ * + * .google.container.v1.NotificationConfig notification_config = 49; + */ + com.google.container.v1.NotificationConfigOrBuilder getNotificationConfigOrBuilder(); + + /** + *
+   * Configuration of Confidential Nodes.
+   * All the nodes in the cluster will be Confidential VM once enabled.
+   * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 50; + * @return Whether the confidentialNodes field is set. + */ + boolean hasConfidentialNodes(); + /** + *
+   * Configuration of Confidential Nodes.
+   * All the nodes in the cluster will be Confidential VM once enabled.
+   * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 50; + * @return The confidentialNodes. + */ + com.google.container.v1.ConfidentialNodes getConfidentialNodes(); + /** + *
+   * Configuration of Confidential Nodes.
+   * All the nodes in the cluster will be Confidential VM once enabled.
+   * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 50; + */ + com.google.container.v1.ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder(); + + /** + *
+   * Configuration for Identity Service component.
+   * 
+ * + * .google.container.v1.IdentityServiceConfig identity_service_config = 54; + * @return Whether the identityServiceConfig field is set. + */ + boolean hasIdentityServiceConfig(); + /** + *
+   * Configuration for Identity Service component.
+   * 
+ * + * .google.container.v1.IdentityServiceConfig identity_service_config = 54; + * @return The identityServiceConfig. + */ + com.google.container.v1.IdentityServiceConfig getIdentityServiceConfig(); + /** + *
+   * Configuration for Identity Service component.
+   * 
+ * + * .google.container.v1.IdentityServiceConfig identity_service_config = 54; + */ + com.google.container.v1.IdentityServiceConfigOrBuilder getIdentityServiceConfigOrBuilder(); + + /** + *
+   * [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]; + * @deprecated google.container.v1.Cluster.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=1863 + * @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]; + * @deprecated google.container.v1.Cluster.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=1863 + * @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
+   * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
+   * instead. The current version of the node software components. If they are
+   * currently at multiple versions because they're in the process of being
+   * upgraded, this reflects the minimum version of all nodes.
+   * 
+ * + * string current_node_version = 105 [deprecated = true]; + * @deprecated google.container.v1.Cluster.current_node_version is deprecated. + * See google/container/v1/cluster_service.proto;l=1896 + * @return The currentNodeVersion. + */ + @java.lang.Deprecated java.lang.String getCurrentNodeVersion(); + /** + *
+   * [Output only] Deprecated, use
+   * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
+   * instead. The current version of the node software components. If they are
+   * currently at multiple versions because they're in the process of being
+   * upgraded, this reflects the minimum version of all nodes.
+   * 
+ * + * string current_node_version = 105 [deprecated = true]; + * @deprecated google.container.v1.Cluster.current_node_version is deprecated. + * See google/container/v1/cluster_service.proto;l=1896 + * @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.v1.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.v1.Cluster.Status status = 107; + * @return The status. + */ + com.google.container.v1.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]; + * @deprecated google.container.v1.Cluster.status_message is deprecated. + * See google/container/v1/cluster_service.proto;l=1908 + * @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]; + * @deprecated google.container.v1.Cluster.status_message is deprecated. + * See google/container/v1/cluster_service.proto;l=1908 + * @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]; + * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. + * See google/container/v1/cluster_service.proto;l=1924 + * @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]; + * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. + * See google/container/v1/cluster_service.proto;l=1924 + * @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]; + * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. + * See google/container/v1/cluster_service.proto;l=1924 + * @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]; + * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. + * See google/container/v1/cluster_service.proto;l=1924 + * @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]; + * @deprecated google.container.v1.Cluster.current_node_count is deprecated. + * See google/container/v1/cluster_service.proto;l=1928 + * @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.
+   * 
+ * + * 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(); + + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + java.util.List + getConditionsList(); + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + com.google.container.v1.StatusCondition getConditions(int index); + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + int getConditionsCount(); + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + java.util.List + getConditionsOrBuilderList(); + /** + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + com.google.container.v1.StatusConditionOrBuilder getConditionsOrBuilder( + int index); + + /** + *
+   * Autopilot configuration for the cluster.
+   * 
+ * + * .google.container.v1.Autopilot autopilot = 128; + * @return Whether the autopilot field is set. + */ + boolean hasAutopilot(); + /** + *
+   * Autopilot configuration for the cluster.
+   * 
+ * + * .google.container.v1.Autopilot autopilot = 128; + * @return The autopilot. + */ + com.google.container.v1.Autopilot getAutopilot(); + /** + *
+   * Autopilot configuration for the cluster.
+   * 
+ * + * .google.container.v1.Autopilot autopilot = 128; + */ + com.google.container.v1.AutopilotOrBuilder getAutopilotOrBuilder(); + + /** + *
+   * Output only. Unique id for the cluster.
+   * 
+ * + * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The id. + */ + java.lang.String getId(); + /** + *
+   * Output only. Unique id for the cluster.
+   * 
+ * + * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + *
+   * Default NodePool settings for the entire cluster. These settings are
+   * overridden if specified on the specific NodePool object.
+   * 
+ * + * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; + * @return Whether the nodePoolDefaults field is set. + */ + boolean hasNodePoolDefaults(); + /** + *
+   * Default NodePool settings for the entire cluster. These settings are
+   * overridden if specified on the specific NodePool object.
+   * 
+ * + * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; + * @return The nodePoolDefaults. + */ + com.google.container.v1.NodePoolDefaults getNodePoolDefaults(); + /** + *
+   * Default NodePool settings for the entire cluster. These settings are
+   * overridden if specified on the specific NodePool object.
+   * 
+ * + * optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; + */ + com.google.container.v1.NodePoolDefaultsOrBuilder getNodePoolDefaultsOrBuilder(); + + /** + *
+   * Logging configuration for the cluster.
+   * 
+ * + * .google.container.v1.LoggingConfig logging_config = 132; + * @return Whether the loggingConfig field is set. + */ + boolean hasLoggingConfig(); + /** + *
+   * Logging configuration for the cluster.
+   * 
+ * + * .google.container.v1.LoggingConfig logging_config = 132; + * @return The loggingConfig. + */ + com.google.container.v1.LoggingConfig getLoggingConfig(); + /** + *
+   * Logging configuration for the cluster.
+   * 
+ * + * .google.container.v1.LoggingConfig logging_config = 132; + */ + com.google.container.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder(); + + /** + *
+   * Monitoring configuration for the cluster.
+   * 
+ * + * .google.container.v1.MonitoringConfig monitoring_config = 133; + * @return Whether the monitoringConfig field is set. + */ + boolean hasMonitoringConfig(); + /** + *
+   * Monitoring configuration for the cluster.
+   * 
+ * + * .google.container.v1.MonitoringConfig monitoring_config = 133; + * @return The monitoringConfig. + */ + com.google.container.v1.MonitoringConfig getMonitoringConfig(); + /** + *
+   * Monitoring configuration for the cluster.
+   * 
+ * + * .google.container.v1.MonitoringConfig monitoring_config = 133; + */ + com.google.container.v1.MonitoringConfigOrBuilder getMonitoringConfigOrBuilder(); + + /** + *
+   * Node pool configs that apply to all auto-provisioned node pools
+   * in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; + * @return Whether the nodePoolAutoConfig field is set. + */ + boolean hasNodePoolAutoConfig(); + /** + *
+   * Node pool configs that apply to all auto-provisioned node pools
+   * in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; + * @return The nodePoolAutoConfig. + */ + com.google.container.v1.NodePoolAutoConfig getNodePoolAutoConfig(); + /** + *
+   * Node pool configs that apply to all auto-provisioned node pools
+   * in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; + */ + com.google.container.v1.NodePoolAutoConfigOrBuilder getNodePoolAutoConfigOrBuilder(); + + /** + *
+   * This checksum is computed by the server based on the value of cluster
+   * fields, and may be sent on update requests to ensure the client has an
+   * up-to-date value before proceeding.
+   * 
+ * + * string etag = 139; + * @return The etag. + */ + java.lang.String getEtag(); + /** + *
+   * This checksum is computed by the server based on the value of cluster
+   * fields, and may be sent on update requests to ensure the client has an
+   * up-to-date value before proceeding.
+   * 
+ * + * string etag = 139; + * @return The bytes for etag. + */ + com.google.protobuf.ByteString + getEtagBytes(); + + /** + *
+   * Fleet information for the cluster.
+   * 
+ * + * .google.container.v1.Fleet fleet = 140; + * @return Whether the fleet field is set. + */ + boolean hasFleet(); + /** + *
+   * Fleet information for the cluster.
+   * 
+ * + * .google.container.v1.Fleet fleet = 140; + * @return The fleet. + */ + com.google.container.v1.Fleet getFleet(); + /** + *
+   * Fleet information for the cluster.
+   * 
+ * + * .google.container.v1.Fleet fleet = 140; + */ + com.google.container.v1.FleetOrBuilder getFleetOrBuilder(); + + /** + *
+   * Enable/Disable Security Posture API features for the cluster.
+   * 
+ * + * .google.container.v1.SecurityPostureConfig security_posture_config = 145; + * @return Whether the securityPostureConfig field is set. + */ + boolean hasSecurityPostureConfig(); + /** + *
+   * Enable/Disable Security Posture API features for the cluster.
+   * 
+ * + * .google.container.v1.SecurityPostureConfig security_posture_config = 145; + * @return The securityPostureConfig. + */ + com.google.container.v1.SecurityPostureConfig getSecurityPostureConfig(); + /** + *
+   * Enable/Disable Security Posture API features for the cluster.
+   * 
+ * + * .google.container.v1.SecurityPostureConfig security_posture_config = 145; + */ + com.google.container.v1.SecurityPostureConfigOrBuilder getSecurityPostureConfigOrBuilder(); + + /** + *
+   * Beta APIs Config
+   * 
+ * + * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; + * @return Whether the enableK8sBetaApis field is set. + */ + boolean hasEnableK8SBetaApis(); + /** + *
+   * Beta APIs Config
+   * 
+ * + * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; + * @return The enableK8sBetaApis. + */ + com.google.container.v1.K8sBetaAPIConfig getEnableK8SBetaApis(); + /** + *
+   * Beta APIs Config
+   * 
+ * + * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; + */ + com.google.container.v1.K8sBetaAPIConfigOrBuilder getEnableK8SBetaApisOrBuilder(); + + /** + *
+   * GKE Enterprise Configuration.
+   * 
+ * + * .google.container.v1.EnterpriseConfig enterprise_config = 149; + * @return Whether the enterpriseConfig field is set. + */ + boolean hasEnterpriseConfig(); + /** + *
+   * GKE Enterprise Configuration.
+   * 
+ * + * .google.container.v1.EnterpriseConfig enterprise_config = 149; + * @return The enterpriseConfig. + */ + com.google.container.v1.EnterpriseConfig getEnterpriseConfig(); + /** + *
+   * GKE Enterprise Configuration.
+   * 
+ * + * .google.container.v1.EnterpriseConfig enterprise_config = 149; + */ + com.google.container.v1.EnterpriseConfigOrBuilder getEnterpriseConfigOrBuilder(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java new file mode 100644 index 000000000000..170552f12c00 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java @@ -0,0 +1,3356 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +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_v1_LinuxNodeConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_LinuxNodeConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_LinuxNodeConfig_SysctlsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_LinuxNodeConfig_SysctlsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_WindowsNodeConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_WindowsNodeConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NodeKubeletConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NodeKubeletConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NodeConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NodeConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NodeConfig_MetadataEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NodeConfig_MetadataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NodeConfig_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NodeConfig_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NodeConfig_ResourceLabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NodeConfig_ResourceLabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_AdvancedMachineFeatures_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_AdvancedMachineFeatures_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NodeNetworkConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NodeNetworkConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NodeNetworkConfig_NetworkPerformanceConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NodeNetworkConfig_NetworkPerformanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_AdditionalNodeNetworkConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_AdditionalNodeNetworkConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_AdditionalPodNetworkConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_AdditionalPodNetworkConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ShieldedInstanceConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ShieldedInstanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_SandboxConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_SandboxConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_GcfsConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_GcfsConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ReservationAffinity_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ReservationAffinity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_SoleTenantConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_SoleTenantConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_SoleTenantConfig_NodeAffinity_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_SoleTenantConfig_NodeAffinity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NodeTaint_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NodeTaint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NodeTaints_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NodeTaints_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NodeLabels_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NodeLabels_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NodeLabels_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NodeLabels_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ResourceLabels_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ResourceLabels_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ResourceLabels_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ResourceLabels_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NetworkTags_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NetworkTags_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_MasterAuth_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_MasterAuth_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ClientCertificateConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ClientCertificateConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_AddonsConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_AddonsConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_HttpLoadBalancing_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_HttpLoadBalancing_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_HorizontalPodAutoscaling_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_HorizontalPodAutoscaling_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_KubernetesDashboard_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_KubernetesDashboard_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NetworkPolicyConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NetworkPolicyConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_DnsCacheConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_DnsCacheConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_PrivateClusterMasterGlobalAccessConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_PrivateClusterMasterGlobalAccessConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_PrivateClusterConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_PrivateClusterConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_AuthenticatorGroupsConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_AuthenticatorGroupsConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_CloudRunConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_CloudRunConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ConfigConnectorConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ConfigConnectorConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_GcePersistentDiskCsiDriverConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_GcePersistentDiskCsiDriverConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_GcpFilestoreCsiDriverConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_GcpFilestoreCsiDriverConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_GcsFuseCsiDriverConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_GcsFuseCsiDriverConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_GkeBackupAgentConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_GkeBackupAgentConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_StatefulHAConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_StatefulHAConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_MasterAuthorizedNetworksConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_MasterAuthorizedNetworksConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_MasterAuthorizedNetworksConfig_CidrBlock_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_LegacyAbac_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_LegacyAbac_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NetworkPolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NetworkPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_BinaryAuthorization_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_BinaryAuthorization_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_PodCIDROverprovisionConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_PodCIDROverprovisionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_IPAllocationPolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_IPAllocationPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_Cluster_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_Cluster_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_Cluster_ResourceLabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_Cluster_ResourceLabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_K8sBetaAPIConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_K8sBetaAPIConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_SecurityPostureConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_SecurityPostureConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NodePoolAutoConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NodePoolAutoConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NodePoolDefaults_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NodePoolDefaults_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NodeConfigDefaults_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NodeConfigDefaults_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ClusterUpdate_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ClusterUpdate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_AdditionalPodRangesConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_AdditionalPodRangesConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_RangeInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_RangeInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_Operation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_Operation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_OperationProgress_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_OperationProgress_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_OperationProgress_Metric_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_OperationProgress_Metric_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_CreateClusterRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_CreateClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_GetClusterRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_GetClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_UpdateClusterRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_UpdateClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_UpdateNodePoolRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_UpdateNodePoolRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_SetNodePoolAutoscalingRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_SetNodePoolAutoscalingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_SetLoggingServiceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_SetLoggingServiceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_SetMonitoringServiceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_SetMonitoringServiceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_SetAddonsConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_SetAddonsConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_SetLocationsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_SetLocationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_UpdateMasterRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_UpdateMasterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_SetMasterAuthRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_SetMasterAuthRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_DeleteClusterRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_DeleteClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ListClustersRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ListClustersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ListClustersResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ListClustersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_GetOperationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_GetOperationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ListOperationsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ListOperationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_CancelOperationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_CancelOperationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ListOperationsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ListOperationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_GetServerConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_GetServerConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ServerConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ServerConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ServerConfig_ReleaseChannelConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ServerConfig_ReleaseChannelConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_CreateNodePoolRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_CreateNodePoolRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_DeleteNodePoolRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_DeleteNodePoolRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ListNodePoolsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ListNodePoolsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_GetNodePoolRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_GetNodePoolRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_BlueGreenSettings_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_BlueGreenSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_BlueGreenSettings_StandardRolloutPolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_BlueGreenSettings_StandardRolloutPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NodePool_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NodePool_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NodePool_UpgradeSettings_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NodePool_UpgradeSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NodePool_UpdateInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NodePool_UpdateInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NodePool_UpdateInfo_BlueGreenInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NodePool_UpdateInfo_BlueGreenInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NodePool_PlacementPolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NodePool_PlacementPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NodePool_QueuedProvisioning_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NodePool_QueuedProvisioning_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NodeManagement_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NodeManagement_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_BestEffortProvisioning_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_BestEffortProvisioning_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_AutoUpgradeOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_AutoUpgradeOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_MaintenancePolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_MaintenancePolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_MaintenanceWindow_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_MaintenanceWindow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_MaintenanceWindow_MaintenanceExclusionsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_MaintenanceWindow_MaintenanceExclusionsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_TimeWindow_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_TimeWindow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_MaintenanceExclusionOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_MaintenanceExclusionOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_RecurringTimeWindow_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_RecurringTimeWindow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_DailyMaintenanceWindow_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_DailyMaintenanceWindow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_SetNodePoolManagementRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_SetNodePoolManagementRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_SetNodePoolSizeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_SetNodePoolSizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_CompleteNodePoolUpgradeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_CompleteNodePoolUpgradeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_RollbackNodePoolUpgradeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_RollbackNodePoolUpgradeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ListNodePoolsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ListNodePoolsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ClusterAutoscaling_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ClusterAutoscaling_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_AutoprovisioningNodePoolDefaults_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_AutoprovisioningNodePoolDefaults_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ResourceLimit_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ResourceLimit_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NodePoolAutoscaling_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NodePoolAutoscaling_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_SetLabelsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_SetLabelsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_SetLabelsRequest_ResourceLabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_SetLabelsRequest_ResourceLabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_SetLegacyAbacRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_SetLegacyAbacRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_StartIPRotationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_StartIPRotationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_CompleteIPRotationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_CompleteIPRotationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_AcceleratorConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_AcceleratorConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_GPUSharingConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_GPUSharingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_GPUDriverInstallationConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_GPUDriverInstallationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_WorkloadMetadataConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_WorkloadMetadataConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_SetNetworkPolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_SetNetworkPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_SetMaintenancePolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_SetMaintenancePolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_StatusCondition_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_StatusCondition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NetworkConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NetworkConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NetworkConfig_ClusterNetworkPerformanceConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NetworkConfig_ClusterNetworkPerformanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_GatewayAPIConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_GatewayAPIConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ServiceExternalIPsConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ServiceExternalIPsConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_GetOpenIDConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_GetOpenIDConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_GetOpenIDConfigResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_GetOpenIDConfigResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_GetJSONWebKeysRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_GetJSONWebKeysRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_Jwk_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_Jwk_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_GetJSONWebKeysResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_GetJSONWebKeysResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_CheckAutopilotCompatibilityRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_CheckAutopilotCompatibilityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_AutopilotCompatibilityIssue_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_AutopilotCompatibilityIssue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_CheckAutopilotCompatibilityResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_CheckAutopilotCompatibilityResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ReleaseChannel_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ReleaseChannel_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_CostManagementConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_CostManagementConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_IntraNodeVisibilityConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_IntraNodeVisibilityConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ILBSubsettingConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ILBSubsettingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_DNSConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_DNSConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_MaxPodsConstraint_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_MaxPodsConstraint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_WorkloadIdentityConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_WorkloadIdentityConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_IdentityServiceConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_IdentityServiceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_MeshCertificates_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_MeshCertificates_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_DatabaseEncryption_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_DatabaseEncryption_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ListUsableSubnetworksRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ListUsableSubnetworksRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ListUsableSubnetworksResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ListUsableSubnetworksResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_UsableSubnetworkSecondaryRange_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_UsableSubnetworkSecondaryRange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_UsableSubnetwork_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_UsableSubnetwork_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ResourceUsageExportConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ResourceUsageExportConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ResourceUsageExportConfig_BigQueryDestination_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ResourceUsageExportConfig_BigQueryDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ResourceUsageExportConfig_ConsumptionMeteringConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ResourceUsageExportConfig_ConsumptionMeteringConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_VerticalPodAutoscaling_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_VerticalPodAutoscaling_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_DefaultSnatStatus_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_DefaultSnatStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ShieldedNodes_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ShieldedNodes_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_VirtualNIC_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_VirtualNIC_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_FastSocket_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_FastSocket_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NotificationConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NotificationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NotificationConfig_PubSub_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NotificationConfig_PubSub_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NotificationConfig_Filter_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NotificationConfig_Filter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ConfidentialNodes_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ConfidentialNodes_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_UpgradeEvent_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_UpgradeEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_UpgradeAvailableEvent_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_UpgradeAvailableEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_SecurityBulletinEvent_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_SecurityBulletinEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_Autopilot_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_Autopilot_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_WorkloadPolicyConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_WorkloadPolicyConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_LoggingConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_LoggingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_LoggingComponentConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_LoggingComponentConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_MonitoringConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_MonitoringConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_AdvancedDatapathObservabilityConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_AdvancedDatapathObservabilityConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_NodePoolLoggingConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_NodePoolLoggingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_LoggingVariantConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_LoggingVariantConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_MonitoringComponentConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_MonitoringComponentConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ManagedPrometheusConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ManagedPrometheusConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_Fleet_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_Fleet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_LocalNvmeSsdBlockConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_LocalNvmeSsdBlockConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_EphemeralStorageLocalSsdConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_EphemeralStorageLocalSsdConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ResourceManagerTags_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ResourceManagerTags_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ResourceManagerTags_TagsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ResourceManagerTags_TagsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_EnterpriseConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_EnterpriseConfig_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/v1/cluster_service.pr" + + "oto\022\023google.container.v1\032\034google/api/ann" + + "otations.proto\032\027google/api/client.proto\032" + + "\037google/api/field_behavior.proto\032\031google" + + "/api/resource.proto\032\036google/protobuf/dur" + + "ation.proto\032\033google/protobuf/empty.proto" + + "\032\037google/protobuf/timestamp.proto\032\036googl" + + "e/protobuf/wrappers.proto\032\025google/rpc/co" + + "de.proto\032\027google/rpc/status.proto\"\236\002\n\017Li" + + "nuxNodeConfig\022B\n\007sysctls\030\001 \003(\01321.google." + + "container.v1.LinuxNodeConfig.SysctlsEntr" + + "y\022D\n\013cgroup_mode\030\002 \001(\0162/.google.containe" + + "r.v1.LinuxNodeConfig.CgroupMode\032.\n\014Sysct" + + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" + + "Q\n\nCgroupMode\022\033\n\027CGROUP_MODE_UNSPECIFIED" + + "\020\000\022\022\n\016CGROUP_MODE_V1\020\001\022\022\n\016CGROUP_MODE_V2" + + "\020\002\"\264\001\n\021WindowsNodeConfig\022D\n\nos_version\030\001" + + " \001(\01620.google.container.v1.WindowsNodeCo" + + "nfig.OSVersion\"Y\n\tOSVersion\022\032\n\026OS_VERSIO" + + "N_UNSPECIFIED\020\000\022\027\n\023OS_VERSION_LTSC2019\020\001" + + "\022\027\n\023OS_VERSION_LTSC2022\020\002\"\370\001\n\021NodeKubele" + + "tConfig\022\032\n\022cpu_manager_policy\030\001 \001(\t\0221\n\rc" + + "pu_cfs_quota\030\002 \001(\0132\032.google.protobuf.Boo" + + "lValue\022\034\n\024cpu_cfs_quota_period\030\003 \001(\t\022\026\n\016" + + "pod_pids_limit\030\004 \001(\003\0223\n&insecure_kubelet" + + "_readonly_port_enabled\030\007 \001(\010H\000\210\001\001B)\n\'_in" + + "secure_kubelet_readonly_port_enabled\"\244\017\n" + + "\nNodeConfig\022\024\n\014machine_type\030\001 \001(\t\022\024\n\014dis" + + "k_size_gb\030\002 \001(\005\022\024\n\014oauth_scopes\030\003 \003(\t\022\027\n" + + "\017service_account\030\t \001(\t\022?\n\010metadata\030\004 \003(\013" + + "2-.google.container.v1.NodeConfig.Metada" + + "taEntry\022\022\n\nimage_type\030\005 \001(\t\022;\n\006labels\030\006 " + + "\003(\0132+.google.container.v1.NodeConfig.Lab" + + "elsEntry\022\027\n\017local_ssd_count\030\007 \001(\005\022\014\n\004tag" + + "s\030\010 \003(\t\022\023\n\013preemptible\030\n \001(\010\022<\n\014accelera" + + "tors\030\013 \003(\0132&.google.container.v1.Acceler" + + "atorConfig\022\021\n\tdisk_type\030\014 \001(\t\022\030\n\020min_cpu" + + "_platform\030\r \001(\t\022M\n\030workload_metadata_con" + + "fig\030\016 \001(\0132+.google.container.v1.Workload" + + "MetadataConfig\022.\n\006taints\030\017 \003(\0132\036.google." + + "container.v1.NodeTaint\022:\n\016sandbox_config" + + "\030\021 \001(\0132\".google.container.v1.SandboxConf" + + "ig\022\022\n\nnode_group\030\022 \001(\t\022F\n\024reservation_af" + + "finity\030\023 \001(\0132(.google.container.v1.Reser" + + "vationAffinity\022M\n\030shielded_instance_conf" + + "ig\030\024 \001(\0132+.google.container.v1.ShieldedI" + + "nstanceConfig\022?\n\021linux_node_config\030\025 \001(\013" + + "2$.google.container.v1.LinuxNodeConfig\022>" + + "\n\016kubelet_config\030\026 \001(\0132&.google.containe" + + "r.v1.NodeKubeletConfig\022\031\n\021boot_disk_kms_" + + "key\030\027 \001(\t\0224\n\013gcfs_config\030\031 \001(\0132\037.google." + + "container.v1.GcfsConfig\022O\n\031advanced_mach" + + "ine_features\030\032 \001(\0132,.google.container.v1" + + ".AdvancedMachineFeatures\022.\n\005gvnic\030\035 \001(\0132" + + "\037.google.container.v1.VirtualNIC\022\014\n\004spot" + + "\030 \001(\010\022B\n\022confidential_nodes\030# \001(\0132&.goo" + + "gle.container.v1.ConfidentialNodes\0229\n\013fa" + + "st_socket\030$ \001(\0132\037.google.container.v1.Fa" + + "stSocketH\000\210\001\001\022L\n\017resource_labels\030% \003(\01323" + + ".google.container.v1.NodeConfig.Resource" + + "LabelsEntry\022B\n\016logging_config\030& \001(\0132*.go" + + "ogle.container.v1.NodePoolLoggingConfig\022" + + "C\n\023windows_node_config\030\' \001(\0132&.google.co" + + "ntainer.v1.WindowsNodeConfig\022Q\n\033local_nv" + + "me_ssd_block_config\030( \001(\0132,.google.conta" + + "iner.v1.LocalNvmeSsdBlockConfig\022_\n\"ephem" + + "eral_storage_local_ssd_config\030) \001(\01323.go" + + "ogle.container.v1.EphemeralStorageLocalS" + + "sdConfig\022A\n\022sole_tenant_config\030* \001(\0132%.g" + + "oogle.container.v1.SoleTenantConfig\022G\n\025r" + + "esource_manager_tags\030- \001(\0132(.google.cont" + + "ainer.v1.ResourceManagerTags\032/\n\rMetadata" + + "Entry\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\0325\n\023ResourceLabelsEntry\022\013\n\003key\030\001 \001(\t" + + "\022\r\n\005value\030\002 \001(\t:\0028\001B\016\n\014_fast_socket\"M\n\027A" + + "dvancedMachineFeatures\022\035\n\020threads_per_co" + + "re\030\001 \001(\003H\000\210\001\001B\023\n\021_threads_per_core\"\263\006\n\021N" + + "odeNetworkConfig\022\035\n\020create_pod_range\030\004 \001" + + "(\010B\003\340A\004\022\021\n\tpod_range\030\005 \001(\t\022\033\n\023pod_ipv4_c" + + "idr_block\030\006 \001(\t\022!\n\024enable_private_nodes\030" + + "\t \001(\010H\000\210\001\001\022h\n\032network_performance_config" + + "\030\013 \001(\0132?.google.container.v1.NodeNetwork" + + "Config.NetworkPerformanceConfigH\001\210\001\001\022V\n\035" + + "pod_cidr_overprovision_config\030\r \001(\0132/.go" + + "ogle.container.v1.PodCIDROverprovisionCo" + + "nfig\022Y\n\037additional_node_network_configs\030" + + "\016 \003(\01320.google.container.v1.AdditionalNo" + + "deNetworkConfig\022W\n\036additional_pod_networ" + + "k_configs\030\017 \003(\0132/.google.container.v1.Ad" + + "ditionalPodNetworkConfig\022\'\n\032pod_ipv4_ran" + + "ge_utilization\030\020 \001(\001B\003\340A\003\032\324\001\n\030NetworkPer" + + "formanceConfig\022n\n\033total_egress_bandwidth" + + "_tier\030\001 \001(\0162D.google.container.v1.NodeNe" + + "tworkConfig.NetworkPerformanceConfig.Tie" + + "rH\000\210\001\001\"(\n\004Tier\022\024\n\020TIER_UNSPECIFIED\020\000\022\n\n\006" + + "TIER_1\020\001B\036\n\034_total_egress_bandwidth_tier" + + "B\027\n\025_enable_private_nodesB\035\n\033_network_pe" + + "rformance_config\"B\n\033AdditionalNodeNetwor" + + "kConfig\022\017\n\007network\030\001 \001(\t\022\022\n\nsubnetwork\030\002" + + " \001(\t\"\253\001\n\032AdditionalPodNetworkConfig\022\022\n\ns" + + "ubnetwork\030\001 \001(\t\022\033\n\023secondary_pod_range\030\002" + + " \001(\t\022F\n\021max_pods_per_node\030\003 \001(\0132&.google" + + ".container.v1.MaxPodsConstraintH\000\210\001\001B\024\n\022" + + "_max_pods_per_node\"Y\n\026ShieldedInstanceCo" + + "nfig\022\032\n\022enable_secure_boot\030\001 \001(\010\022#\n\033enab" + + "le_integrity_monitoring\030\002 \001(\010\"k\n\rSandbox" + + "Config\0225\n\004type\030\002 \001(\0162\'.google.container." + + "v1.SandboxConfig.Type\"#\n\004Type\022\017\n\013UNSPECI" + + "FIED\020\000\022\n\n\006GVISOR\020\001\"\035\n\nGcfsConfig\022\017\n\007enab" + + "led\030\001 \001(\010\"\337\001\n\023ReservationAffinity\022O\n\030con" + + "sume_reservation_type\030\001 \001(\0162-.google.con" + + "tainer.v1.ReservationAffinity.Type\022\013\n\003ke" + + "y\030\002 \001(\t\022\016\n\006values\030\003 \003(\t\"Z\n\004Type\022\017\n\013UNSPE" + + "CIFIED\020\000\022\022\n\016NO_RESERVATION\020\001\022\023\n\017ANY_RESE" + + "RVATION\020\002\022\030\n\024SPECIFIC_RESERVATION\020\003\"\226\002\n\020" + + "SoleTenantConfig\022K\n\017node_affinities\030\001 \003(" + + "\01322.google.container.v1.SoleTenantConfig" + + ".NodeAffinity\032\264\001\n\014NodeAffinity\022\013\n\003key\030\001 " + + "\001(\t\022M\n\010operator\030\002 \001(\0162;.google.container" + + ".v1.SoleTenantConfig.NodeAffinity.Operat" + + "or\022\016\n\006values\030\003 \003(\t\"8\n\010Operator\022\030\n\024OPERAT" + + "OR_UNSPECIFIED\020\000\022\006\n\002IN\020\001\022\n\n\006NOT_IN\020\002\"\271\001\n" + + "\tNodeTaint\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\0225" + + "\n\006effect\030\003 \001(\0162%.google.container.v1.Nod" + + "eTaint.Effect\"Y\n\006Effect\022\026\n\022EFFECT_UNSPEC" + + "IFIED\020\000\022\017\n\013NO_SCHEDULE\020\001\022\026\n\022PREFER_NO_SC" + + "HEDULE\020\002\022\016\n\nNO_EXECUTE\020\003\"<\n\nNodeTaints\022." + + "\n\006taints\030\001 \003(\0132\036.google.container.v1.Nod" + + "eTaint\"x\n\nNodeLabels\022;\n\006labels\030\001 \003(\0132+.g" + + "oogle.container.v1.NodeLabels.LabelsEntr" + + "y\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + + " \001(\t:\0028\001\"\200\001\n\016ResourceLabels\022?\n\006labels\030\001 " + + "\003(\0132/.google.container.v1.ResourceLabels" + + ".LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t" + + "\022\r\n\005value\030\002 \001(\t:\0028\001\"\033\n\013NetworkTags\022\014\n\004ta" + + "gs\030\001 \003(\t\"\331\001\n\nMasterAuth\022\024\n\010username\030\001 \001(" + + "\tB\002\030\001\022\024\n\010password\030\002 \001(\tB\002\030\001\022O\n\031client_ce" + + "rtificate_config\030\003 \001(\0132,.google.containe" + + "r.v1.ClientCertificateConfig\022\036\n\026cluster_" + + "ca_certificate\030d \001(\t\022\032\n\022client_certifica" + + "te\030e \001(\t\022\022\n\nclient_key\030f \001(\t\";\n\027ClientCe" + + "rtificateConfig\022 \n\030issue_client_certific" + + "ate\030\001 \001(\010\"\254\007\n\014AddonsConfig\022C\n\023http_load_" + + "balancing\030\001 \001(\0132&.google.container.v1.Ht" + + "tpLoadBalancing\022Q\n\032horizontal_pod_autosc" + + "aling\030\002 \001(\0132-.google.container.v1.Horizo" + + "ntalPodAutoscaling\022J\n\024kubernetes_dashboa" + + "rd\030\003 \001(\0132(.google.container.v1.Kubernete" + + "sDashboardB\002\030\001\022G\n\025network_policy_config\030" + + "\004 \001(\0132(.google.container.v1.NetworkPolic" + + "yConfig\022=\n\020cloud_run_config\030\007 \001(\0132#.goog" + + "le.container.v1.CloudRunConfig\022=\n\020dns_ca" + + "che_config\030\010 \001(\0132#.google.container.v1.D" + + "nsCacheConfig\022K\n\027config_connector_config" + + "\030\n \001(\0132*.google.container.v1.ConfigConne" + + "ctorConfig\022d\n%gce_persistent_disk_csi_dr" + + "iver_config\030\013 \001(\01325.google.container.v1." + + "GcePersistentDiskCsiDriverConfig\022Y\n\037gcp_" + + "filestore_csi_driver_config\030\016 \001(\01320.goog" + + "le.container.v1.GcpFilestoreCsiDriverCon" + + "fig\022J\n\027gke_backup_agent_config\030\020 \001(\0132).g" + + "oogle.container.v1.GkeBackupAgentConfig\022" + + "O\n\032gcs_fuse_csi_driver_config\030\021 \001(\0132+.go" + + "ogle.container.v1.GcsFuseCsiDriverConfig" + + "\022F\n\022stateful_ha_config\030\022 \001(\0132%.google.co" + + "ntainer.v1.StatefulHAConfigB\003\340A\001\"%\n\021Http" + + "LoadBalancing\022\020\n\010disabled\030\001 \001(\010\",\n\030Horiz" + + "ontalPodAutoscaling\022\020\n\010disabled\030\001 \001(\010\"\'\n" + + "\023KubernetesDashboard\022\020\n\010disabled\030\001 \001(\010\"\'" + + "\n\023NetworkPolicyConfig\022\020\n\010disabled\030\001 \001(\010\"" + + "!\n\016DnsCacheConfig\022\017\n\007enabled\030\001 \001(\010\"9\n&Pr" + + "ivateClusterMasterGlobalAccessConfig\022\017\n\007" + + "enabled\030\001 \001(\010\"\305\002\n\024PrivateClusterConfig\022\034" + + "\n\024enable_private_nodes\030\001 \001(\010\022\037\n\027enable_p" + + "rivate_endpoint\030\002 \001(\010\022\036\n\026master_ipv4_cid" + + "r_block\030\003 \001(\t\022\030\n\020private_endpoint\030\004 \001(\t\022" + + "\027\n\017public_endpoint\030\005 \001(\t\022\024\n\014peering_name" + + "\030\007 \001(\t\022`\n\033master_global_access_config\030\010 " + + "\001(\0132;.google.container.v1.PrivateCluster" + + "MasterGlobalAccessConfig\022#\n\033private_endp" + + "oint_subnetwork\030\n \001(\t\"D\n\031AuthenticatorGr" + + "oupsConfig\022\017\n\007enabled\030\001 \001(\010\022\026\n\016security_" + + "group\030\002 \001(\t\"\356\001\n\016CloudRunConfig\022\020\n\010disabl" + + "ed\030\001 \001(\010\022P\n\022load_balancer_type\030\003 \001(\01624.g" + + "oogle.container.v1.CloudRunConfig.LoadBa" + + "lancerType\"x\n\020LoadBalancerType\022\"\n\036LOAD_B" + + "ALANCER_TYPE_UNSPECIFIED\020\000\022\037\n\033LOAD_BALAN" + + "CER_TYPE_EXTERNAL\020\001\022\037\n\033LOAD_BALANCER_TYP" + + "E_INTERNAL\020\002\"(\n\025ConfigConnectorConfig\022\017\n" + + "\007enabled\030\001 \001(\010\"3\n GcePersistentDiskCsiDr" + + "iverConfig\022\017\n\007enabled\030\001 \001(\010\".\n\033GcpFilest" + + "oreCsiDriverConfig\022\017\n\007enabled\030\001 \001(\010\")\n\026G" + + "csFuseCsiDriverConfig\022\017\n\007enabled\030\001 \001(\010\"\'" + + "\n\024GkeBackupAgentConfig\022\017\n\007enabled\030\001 \001(\010\"" + + "#\n\020StatefulHAConfig\022\017\n\007enabled\030\001 \001(\010\"\216\002\n" + + "\036MasterAuthorizedNetworksConfig\022\017\n\007enabl" + + "ed\030\001 \001(\010\022R\n\013cidr_blocks\030\002 \003(\0132=.google.c" + + "ontainer.v1.MasterAuthorizedNetworksConf" + + "ig.CidrBlock\022,\n\037gcp_public_cidrs_access_" + + "enabled\030\003 \001(\010H\000\210\001\001\0325\n\tCidrBlock\022\024\n\014displ" + + "ay_name\030\001 \001(\t\022\022\n\ncidr_block\030\002 \001(\tB\"\n _gc" + + "p_public_cidrs_access_enabled\"\035\n\nLegacyA" + + "bac\022\017\n\007enabled\030\001 \001(\010\"\221\001\n\rNetworkPolicy\022=" + + "\n\010provider\030\001 \001(\0162+.google.container.v1.N" + + "etworkPolicy.Provider\022\017\n\007enabled\030\002 \001(\010\"0" + + "\n\010Provider\022\030\n\024PROVIDER_UNSPECIFIED\020\000\022\n\n\006" + + "CALICO\020\001\"\343\001\n\023BinaryAuthorization\022\023\n\007enab" + + "led\030\001 \001(\010B\002\030\001\022P\n\017evaluation_mode\030\002 \001(\01627" + + ".google.container.v1.BinaryAuthorization" + + ".EvaluationMode\"e\n\016EvaluationMode\022\037\n\033EVA" + + "LUATION_MODE_UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001" + + "\022$\n PROJECT_SINGLETON_POLICY_ENFORCE\020\002\"-" + + "\n\032PodCIDROverprovisionConfig\022\017\n\007disable\030" + + "\001 \001(\010\"\275\006\n\022IPAllocationPolicy\022\026\n\016use_ip_a" + + "liases\030\001 \001(\010\022\031\n\021create_subnetwork\030\002 \001(\010\022" + + "\027\n\017subnetwork_name\030\003 \001(\t\022\035\n\021cluster_ipv4" + + "_cidr\030\004 \001(\tB\002\030\001\022\032\n\016node_ipv4_cidr\030\005 \001(\tB" + + "\002\030\001\022\036\n\022services_ipv4_cidr\030\006 \001(\tB\002\030\001\022$\n\034c" + + "luster_secondary_range_name\030\007 \001(\t\022%\n\035ser" + + "vices_secondary_range_name\030\010 \001(\t\022\037\n\027clus" + + "ter_ipv4_cidr_block\030\t \001(\t\022\034\n\024node_ipv4_c" + + "idr_block\030\n \001(\t\022 \n\030services_ipv4_cidr_bl" + + "ock\030\013 \001(\t\022\033\n\023tpu_ipv4_cidr_block\030\r \001(\t\022\022" + + "\n\nuse_routes\030\017 \001(\010\0222\n\nstack_type\030\020 \001(\0162\036" + + ".google.container.v1.StackType\022=\n\020ipv6_a" + + "ccess_type\030\021 \001(\0162#.google.container.v1.I" + + "Pv6AccessType\022V\n\035pod_cidr_overprovision_" + + "config\030\025 \001(\0132/.google.container.v1.PodCI" + + "DROverprovisionConfig\022#\n\026subnet_ipv6_cid" + + "r_block\030\026 \001(\tB\003\340A\003\022%\n\030services_ipv6_cidr" + + "_block\030\027 \001(\tB\003\340A\003\022Y\n\034additional_pod_rang" + + "es_config\030\030 \001(\0132..google.container.v1.Ad" + + "ditionalPodRangesConfigB\003\340A\003\022/\n\"default_" + + "pod_ipv4_range_utilization\030\031 \001(\001B\003\340A\003\"\231\033" + + "\n\007Cluster\022\014\n\004name\030\001 \001(\t\022\023\n\013description\030\002" + + " \001(\t\022\036\n\022initial_node_count\030\003 \001(\005B\002\030\001\0228\n\013" + + "node_config\030\004 \001(\0132\037.google.container.v1." + + "NodeConfigB\002\030\001\0224\n\013master_auth\030\005 \001(\0132\037.go" + + "ogle.container.v1.MasterAuth\022\027\n\017logging_" + + "service\030\006 \001(\t\022\032\n\022monitoring_service\030\007 \001(" + + "\t\022\017\n\007network\030\010 \001(\t\022\031\n\021cluster_ipv4_cidr\030" + + "\t \001(\t\0228\n\raddons_config\030\n \001(\0132!.google.co" + + "ntainer.v1.AddonsConfig\022\022\n\nsubnetwork\030\013 " + + "\001(\t\0221\n\nnode_pools\030\014 \003(\0132\035.google.contain" + + "er.v1.NodePool\022\021\n\tlocations\030\r \003(\t\022\037\n\027ena" + + "ble_kubernetes_alpha\030\016 \001(\010\022I\n\017resource_l" + + "abels\030\017 \003(\01320.google.container.v1.Cluste" + + "r.ResourceLabelsEntry\022\031\n\021label_fingerpri" + + "nt\030\020 \001(\t\0224\n\013legacy_abac\030\022 \001(\0132\037.google.c" + + "ontainer.v1.LegacyAbac\022:\n\016network_policy" + + "\030\023 \001(\0132\".google.container.v1.NetworkPoli" + + "cy\022E\n\024ip_allocation_policy\030\024 \001(\0132\'.googl" + + "e.container.v1.IPAllocationPolicy\022^\n!mas" + + "ter_authorized_networks_config\030\026 \001(\01323.g" + + "oogle.container.v1.MasterAuthorizedNetwo" + + "rksConfig\022B\n\022maintenance_policy\030\027 \001(\0132&." + + "google.container.v1.MaintenancePolicy\022F\n" + + "\024binary_authorization\030\030 \001(\0132(.google.con" + + "tainer.v1.BinaryAuthorization\022<\n\013autosca" + + "ling\030\032 \001(\0132\'.google.container.v1.Cluster" + + "Autoscaling\022:\n\016network_config\030\033 \001(\0132\".go" + + "ogle.container.v1.NetworkConfig\022K\n\033defau" + + "lt_max_pods_constraint\030\036 \001(\0132&.google.co" + + "ntainer.v1.MaxPodsConstraint\022T\n\034resource" + + "_usage_export_config\030! \001(\0132..google.cont" + + "ainer.v1.ResourceUsageExportConfig\022S\n\033au" + + "thenticator_groups_config\030\" \001(\0132..google" + + ".container.v1.AuthenticatorGroupsConfig\022" + + "I\n\026private_cluster_config\030% \001(\0132).google" + + ".container.v1.PrivateClusterConfig\022D\n\023da" + + "tabase_encryption\030& \001(\0132\'.google.contain" + + "er.v1.DatabaseEncryption\022M\n\030vertical_pod" + + "_autoscaling\030\' \001(\0132+.google.container.v1" + + ".VerticalPodAutoscaling\022:\n\016shielded_node" + + "s\030( \001(\0132\".google.container.v1.ShieldedNo" + + "des\022<\n\017release_channel\030) \001(\0132#.google.co" + + "ntainer.v1.ReleaseChannel\022M\n\030workload_id" + + "entity_config\030+ \001(\0132+.google.container.v" + + "1.WorkloadIdentityConfig\022@\n\021mesh_certifi" + + "cates\030C \001(\0132%.google.container.v1.MeshCe" + + "rtificates\022I\n\026cost_management_config\030- \001" + + "(\0132).google.container.v1.CostManagementC" + + "onfig\022D\n\023notification_config\0301 \001(\0132\'.goo" + + "gle.container.v1.NotificationConfig\022B\n\022c" + + "onfidential_nodes\0302 \001(\0132&.google.contain" + + "er.v1.ConfidentialNodes\022K\n\027identity_serv" + + "ice_config\0306 \001(\0132*.google.container.v1.I" + + "dentityServiceConfig\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\027i" + + "nitial_cluster_version\030g \001(\t\022\036\n\026current_" + + "master_version\030h \001(\t\022 \n\024current_node_ver" + + "sion\030i \001(\tB\002\030\001\022\023\n\013create_time\030j \001(\t\0223\n\006s" + + "tatus\030k \001(\0162#.google.container.v1.Cluste" + + "r.Status\022\032\n\016status_message\030l \001(\tB\002\030\001\022\033\n\023" + + "node_ipv4_cidr_size\030m \001(\005\022\032\n\022services_ip" + + "v4_cidr\030n \001(\t\022\037\n\023instance_group_urls\030o \003" + + "(\tB\002\030\001\022\036\n\022current_node_count\030p \001(\005B\002\030\001\022\023" + + "\n\013expire_time\030q \001(\t\022\020\n\010location\030r \001(\t\022\022\n" + + "\nenable_tpu\030s \001(\010\022\033\n\023tpu_ipv4_cidr_block" + + "\030t \001(\t\0228\n\nconditions\030v \003(\0132$.google.cont" + + "ainer.v1.StatusCondition\0222\n\tautopilot\030\200\001" + + " \001(\0132\036.google.container.v1.Autopilot\022\020\n\002" + + "id\030\201\001 \001(\tB\003\340A\003\022G\n\022node_pool_defaults\030\203\001 " + + "\001(\0132%.google.container.v1.NodePoolDefaul" + + "tsH\000\210\001\001\022;\n\016logging_config\030\204\001 \001(\0132\".googl" + + "e.container.v1.LoggingConfig\022A\n\021monitori" + + "ng_config\030\205\001 \001(\0132%.google.container.v1.M" + + "onitoringConfig\022G\n\025node_pool_auto_config" + + "\030\210\001 \001(\0132\'.google.container.v1.NodePoolAu" + + "toConfig\022\r\n\004etag\030\213\001 \001(\t\022*\n\005fleet\030\214\001 \001(\0132" + + "\032.google.container.v1.Fleet\022L\n\027security_" + + "posture_config\030\221\001 \001(\0132*.google.container" + + ".v1.SecurityPostureConfig\022D\n\024enable_k8s_" + + "beta_apis\030\217\001 \001(\0132%.google.container.v1.K" + + "8sBetaAPIConfig\022A\n\021enterprise_config\030\225\001 " + + "\001(\0132%.google.container.v1.EnterpriseConf" + + "ig\0325\n\023ResourceLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001\"w\n\006Status\022\026\n\022STATUS_UN" + + "SPECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007RUNNING" + + "\020\002\022\017\n\013RECONCILING\020\003\022\014\n\010STOPPING\020\004\022\t\n\005ERR" + + "OR\020\005\022\014\n\010DEGRADED\020\006B\025\n\023_node_pool_default" + + "s\"(\n\020K8sBetaAPIConfig\022\024\n\014enabled_apis\030\001 " + + "\003(\t\"\236\003\n\025SecurityPostureConfig\022B\n\004mode\030\001 " + + "\001(\0162/.google.container.v1.SecurityPostur" + + "eConfig.ModeH\000\210\001\001\022]\n\022vulnerability_mode\030" + + "\002 \001(\0162<.google.container.v1.SecurityPost" + + "ureConfig.VulnerabilityModeH\001\210\001\001\"5\n\004Mode" + + "\022\024\n\020MODE_UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\t\n\005" + + "BASIC\020\002\"\212\001\n\021VulnerabilityMode\022\"\n\036VULNERA" + + "BILITY_MODE_UNSPECIFIED\020\000\022\032\n\026VULNERABILI" + + "TY_DISABLED\020\001\022\027\n\023VULNERABILITY_BASIC\020\002\022\034" + + "\n\030VULNERABILITY_ENTERPRISE\020\003B\007\n\005_modeB\025\n" + + "\023_vulnerability_mode\"\225\001\n\022NodePoolAutoCon" + + "fig\0226\n\014network_tags\030\001 \001(\0132 .google.conta" + + "iner.v1.NetworkTags\022G\n\025resource_manager_" + + "tags\030\002 \001(\0132(.google.container.v1.Resourc" + + "eManagerTags\"Y\n\020NodePoolDefaults\022E\n\024node" + + "_config_defaults\030\001 \001(\0132\'.google.containe" + + "r.v1.NodeConfigDefaults\"\216\001\n\022NodeConfigDe" + + "faults\0224\n\013gcfs_config\030\001 \001(\0132\037.google.con" + + "tainer.v1.GcfsConfig\022B\n\016logging_config\030\003" + + " \001(\0132*.google.container.v1.NodePoolLoggi" + + "ngConfig\"\320\035\n\rClusterUpdate\022\034\n\024desired_no" + + "de_version\030\004 \001(\t\022\"\n\032desired_monitoring_s" + + "ervice\030\005 \001(\t\022@\n\025desired_addons_config\030\006 " + + "\001(\0132!.google.container.v1.AddonsConfig\022\034" + + "\n\024desired_node_pool_id\030\007 \001(\t\022\032\n\022desired_" + + "image_type\030\010 \001(\t\022L\n\033desired_database_enc" + + "ryption\030. \001(\0132\'.google.container.v1.Data" + + "baseEncryption\022U\n desired_workload_ident" + + "ity_config\030/ \001(\0132+.google.container.v1.W" + + "orkloadIdentityConfig\022H\n\031desired_mesh_ce" + + "rtificates\030C \001(\0132%.google.container.v1.M" + + "eshCertificates\022B\n\026desired_shielded_node" + + "s\0300 \001(\0132\".google.container.v1.ShieldedNo" + + "des\022Q\n\036desired_cost_management_config\0301 " + + "\001(\0132).google.container.v1.CostManagement" + + "Config\022:\n\022desired_dns_config\0305 \001(\0132\036.goo" + + "gle.container.v1.DNSConfig\022O\n\035desired_no" + + "de_pool_autoscaling\030\t \001(\0132(.google.conta" + + "iner.v1.NodePoolAutoscaling\022\031\n\021desired_l" + + "ocations\030\n \003(\t\022f\n)desired_master_authori" + + "zed_networks_config\030\014 \001(\01323.google.conta" + + "iner.v1.MasterAuthorizedNetworksConfig\022L" + + "\n\033desired_cluster_autoscaling\030\017 \001(\0132\'.go" + + "ogle.container.v1.ClusterAutoscaling\022N\n\034" + + "desired_binary_authorization\030\020 \001(\0132(.goo" + + "gle.container.v1.BinaryAuthorization\022\037\n\027" + + "desired_logging_service\030\023 \001(\t\022\\\n$desired" + + "_resource_usage_export_config\030\025 \001(\0132..go" + + "ogle.container.v1.ResourceUsageExportCon" + + "fig\022U\n desired_vertical_pod_autoscaling\030" + + "\026 \001(\0132+.google.container.v1.VerticalPodA" + + "utoscaling\022Q\n\036desired_private_cluster_co" + + "nfig\030\031 \001(\0132).google.container.v1.Private" + + "ClusterConfig\022\\\n$desired_intra_node_visi" + + "bility_config\030\032 \001(\0132..google.container.v" + + "1.IntraNodeVisibilityConfig\022K\n\033desired_d" + + "efault_snat_status\030\034 \001(\0132&.google.contai" + + "ner.v1.DefaultSnatStatus\022D\n\027desired_rele" + + "ase_channel\030\037 \001(\0132#.google.container.v1." + + "ReleaseChannel\022Q\n\037desired_l4ilb_subsetti" + + "ng_config\030\' \001(\0132(.google.container.v1.IL" + + "BSubsettingConfig\022H\n\031desired_datapath_pr" + + "ovider\0302 \001(\0162%.google.container.v1.Datap" + + "athProvider\022X\n\"desired_private_ipv6_goog" + + "le_access\0303 \001(\0162,.google.container.v1.Pr" + + "ivateIPv6GoogleAccess\022L\n\033desired_notific" + + "ation_config\0307 \001(\0132\'.google.container.v1" + + ".NotificationConfig\022[\n#desired_authentic" + + "ator_groups_config\030? \001(\0132..google.contai" + + "ner.v1.AuthenticatorGroupsConfig\022B\n\026desi" + + "red_logging_config\030@ \001(\0132\".google.contai" + + "ner.v1.LoggingConfig\022H\n\031desired_monitori" + + "ng_config\030A \001(\0132%.google.container.v1.Mo" + + "nitoringConfig\022S\n\037desired_identity_servi" + + "ce_config\030B \001(\0132*.google.container.v1.Id" + + "entityServiceConfig\022Z\n#desired_service_e" + + "xternal_ips_config\030< \001(\0132-.google.contai", + "ner.v1.ServiceExternalIPsConfig\022,\n\037desir" + + "ed_enable_private_endpoint\030G \001(\010H\000\210\001\001\022\036\n" + + "\026desired_master_version\030d \001(\t\022<\n\023desired" + + "_gcfs_config\030m \001(\0132\037.google.container.v1" + + ".GcfsConfig\022T\n*desired_node_pool_auto_co" + + "nfig_network_tags\030n \001(\0132 .google.contain" + + "er.v1.NetworkTags\022I\n\032desired_gateway_api" + + "_config\030r \001(\0132%.google.container.v1.Gate" + + "wayAPIConfig\022\014\n\004etag\030s \001(\t\022T\n desired_no" + + "de_pool_logging_config\030t \001(\0132*.google.co" + + "ntainer.v1.NodePoolLoggingConfig\0221\n\rdesi" + + "red_fleet\030u \001(\0132\032.google.container.v1.Fl" + + "eet\022:\n\022desired_stack_type\030w \001(\0162\036.google" + + ".container.v1.StackType\022T\n\034additional_po" + + "d_ranges_config\030x \001(\0132..google.container" + + ".v1.AdditionalPodRangesConfig\022\\\n$removed" + + "_additional_pod_ranges_config\030y \001(\0132..go" + + "ogle.container.v1.AdditionalPodRangesCon" + + "fig\022C\n\024enable_k8s_beta_apis\030z \001(\0132%.goog" + + "le.container.v1.K8sBetaAPIConfig\022S\n\037desi" + + "red_security_posture_config\030| \001(\0132*.goog" + + "le.container.v1.SecurityPostureConfig\022n\n" + + "\"desired_network_performance_config\030} \001(" + + "\0132B.google.container.v1.NetworkConfig.Cl" + + "usterNetworkPerformanceConfig\022/\n\"desired" + + "_enable_fqdn_network_policy\030~ \001(\010H\001\210\001\001\022\\" + + "\n(desired_autopilot_workload_policy_conf" + + "ig\030\200\001 \001(\0132).google.container.v1.Workload" + + "PolicyConfig\022E\n\025desired_k8s_beta_apis\030\203\001" + + " \001(\0132%.google.container.v1.K8sBetaAPICon" + + "fig\022f\n3desired_node_pool_auto_config_res" + + "ource_manager_tags\030\210\001 \001(\0132(.google.conta" + + "iner.v1.ResourceManagerTags\022b\n$desired_i" + + "n_transit_encryption_config\030\211\001 \001(\0162..goo" + + "gle.container.v1.InTransitEncryptionConf" + + "igH\002\210\001\001B\"\n _desired_enable_private_endpo" + + "intB%\n#_desired_enable_fqdn_network_poli" + + "cyB\'\n%_desired_in_transit_encryption_con" + + "fig\"q\n\031AdditionalPodRangesConfig\022\027\n\017pod_" + + "range_names\030\001 \003(\t\022;\n\016pod_range_info\030\002 \003(" + + "\0132\036.google.container.v1.RangeInfoB\003\340A\003\">" + + "\n\tRangeInfo\022\027\n\nrange_name\030\001 \001(\tB\003\340A\003\022\030\n\013" + + "utilization\030\002 \001(\001B\003\340A\003\"\264\010\n\tOperation\022\014\n\004" + + "name\030\001 \001(\t\022\020\n\004zone\030\002 \001(\tB\002\030\001\022;\n\016operatio" + + "n_type\030\003 \001(\0162#.google.container.v1.Opera" + + "tion.Type\0225\n\006status\030\004 \001(\0162%.google.conta" + + "iner.v1.Operation.Status\022\016\n\006detail\030\010 \001(\t" + + "\022\035\n\016status_message\030\005 \001(\tB\005\030\001\340A\003\022\021\n\tself_" + + "link\030\006 \001(\t\022\023\n\013target_link\030\007 \001(\t\022\020\n\010locat" + + "ion\030\t \001(\t\022\022\n\nstart_time\030\n \001(\t\022\020\n\010end_tim" + + "e\030\013 \001(\t\022=\n\010progress\030\014 \001(\0132&.google.conta" + + "iner.v1.OperationProgressB\003\340A\003\022D\n\022cluste" + + "r_conditions\030\r \003(\0132$.google.container.v1" + + ".StatusConditionB\002\030\001\022E\n\023nodepool_conditi" + + "ons\030\016 \003(\0132$.google.container.v1.StatusCo" + + "nditionB\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\007PENDING\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003\022\014\n\010" + + "ABORTING\020\004\"\300\003\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020" + + "\000\022\022\n\016CREATE_CLUSTER\020\001\022\022\n\016DELETE_CLUSTER\020" + + "\002\022\022\n\016UPGRADE_MASTER\020\003\022\021\n\rUPGRADE_NODES\020\004" + + "\022\022\n\016REPAIR_CLUSTER\020\005\022\022\n\016UPDATE_CLUSTER\020\006" + + "\022\024\n\020CREATE_NODE_POOL\020\007\022\024\n\020DELETE_NODE_PO" + + "OL\020\010\022\034\n\030SET_NODE_POOL_MANAGEMENT\020\t\022\025\n\021AU" + + "TO_REPAIR_NODES\020\n\022\032\n\022AUTO_UPGRADE_NODES\020" + + "\013\032\002\010\001\022\022\n\nSET_LABELS\020\014\032\002\010\001\022\027\n\017SET_MASTER_" + + "AUTH\020\r\032\002\010\001\022\026\n\022SET_NODE_POOL_SIZE\020\016\022\032\n\022SE" + + "T_NETWORK_POLICY\020\017\032\002\010\001\022\036\n\026SET_MAINTENANC" + + "E_POLICY\020\020\032\002\010\001\022\022\n\016RESIZE_CLUSTER\020\022\022\031\n\025FL" + + "EET_FEATURE_UPGRADE\020\023\"\273\002\n\021OperationProgr" + + "ess\022\014\n\004name\030\001 \001(\t\0225\n\006status\030\002 \001(\0162%.goog" + + "le.container.v1.Operation.Status\022>\n\007metr" + + "ics\030\003 \003(\0132-.google.container.v1.Operatio" + + "nProgress.Metric\0226\n\006stages\030\004 \003(\0132&.googl" + + "e.container.v1.OperationProgress\032i\n\006Metr" + + "ic\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023\n\tint_value\030\002 \001(\003" + + "H\000\022\026\n\014double_value\030\003 \001(\001H\000\022\026\n\014string_val" + + "ue\030\004 \001(\tH\000B\007\n\005value\"\204\001\n\024CreateClusterReq" + + "uest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001" + + "(\tB\002\030\001\0222\n\007cluster\030\003 \001(\0132\034.google.contain" + + "er.v1.ClusterB\003\340A\002\022\016\n\006parent\030\005 \001(\t\"c\n\021Ge" + + "tClusterRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022" + + "\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030" + + "\001\022\014\n\004name\030\005 \001(\t\"\237\001\n\024UpdateClusterRequest" + + "\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002" + + "\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\0227\n\006update\030\004 \001" + + "(\0132\".google.container.v1.ClusterUpdateB\003" + + "\340A\002\022\014\n\004name\030\005 \001(\t\"\204\n\n\025UpdateNodePoolRequ" + + "est\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(" + + "\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\030\n\014node_po" + + "ol_id\030\004 \001(\tB\002\030\001\022\031\n\014node_version\030\005 \001(\tB\003\340" + + "A\002\022\027\n\nimage_type\030\006 \001(\tB\003\340A\002\022\014\n\004name\030\010 \001(" + + "\t\022\021\n\tlocations\030\r \003(\t\022M\n\030workload_metadat" + + "a_config\030\016 \001(\0132+.google.container.v1.Wor" + + "kloadMetadataConfig\022G\n\020upgrade_settings\030" + + "\017 \001(\0132-.google.container.v1.NodePool.Upg" + + "radeSettings\022.\n\004tags\030\020 \001(\0132 .google.cont" + + "ainer.v1.NetworkTags\022/\n\006taints\030\021 \001(\0132\037.g" + + "oogle.container.v1.NodeTaints\022/\n\006labels\030" + + "\022 \001(\0132\037.google.container.v1.NodeLabels\022?" + + "\n\021linux_node_config\030\023 \001(\0132$.google.conta" + + "iner.v1.LinuxNodeConfig\022>\n\016kubelet_confi" + + "g\030\024 \001(\0132&.google.container.v1.NodeKubele" + + "tConfig\022C\n\023node_network_config\030\025 \001(\0132&.g" + + "oogle.container.v1.NodeNetworkConfig\0224\n\013" + + "gcfs_config\030\026 \001(\0132\037.google.container.v1." + + "GcfsConfig\022B\n\022confidential_nodes\030\027 \001(\0132&" + + ".google.container.v1.ConfidentialNodes\022." + + "\n\005gvnic\030\035 \001(\0132\037.google.container.v1.Virt" + + "ualNIC\022\014\n\004etag\030\036 \001(\t\0224\n\013fast_socket\030\037 \001(" + + "\0132\037.google.container.v1.FastSocket\022B\n\016lo" + + "gging_config\030 \001(\0132*.google.container.v1" + + ".NodePoolLoggingConfig\022<\n\017resource_label" + + "s\030! \001(\0132#.google.container.v1.ResourceLa" + + "bels\022C\n\023windows_node_config\030\" \001(\0132&.goog" + + "le.container.v1.WindowsNodeConfig\022\031\n\014mac" + + "hine_type\030$ \001(\tB\003\340A\001\022\026\n\tdisk_type\030% \001(\tB" + + "\003\340A\001\022\031\n\014disk_size_gb\030& \001(\003B\003\340A\001\022G\n\025resou" + + "rce_manager_tags\030\' \001(\0132(.google.containe" + + "r.v1.ResourceManagerTags\"\315\001\n\035SetNodePool" + + "AutoscalingRequest\022\026\n\nproject_id\030\001 \001(\tB\002" + + "\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\t" + + "B\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022B\n\013autosc" + + "aling\030\005 \001(\0132(.google.container.v1.NodePo" + + "olAutoscalingB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\210\001\n\030Set" + + "LoggingServiceRequest\022\026\n\nproject_id\030\001 \001(" + + "\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 " + + "\001(\tB\002\030\001\022\034\n\017logging_service\030\004 \001(\tB\003\340A\002\022\014\n" + + "\004name\030\005 \001(\t\"\216\001\n\033SetMonitoringServiceRequ" + + "est\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(" + + "\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\037\n\022monitor" + + "ing_service\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\247\001\n" + + "\026SetAddonsConfigRequest\022\026\n\nproject_id\030\001 " + + "\001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030" + + "\003 \001(\tB\002\030\001\022=\n\raddons_config\030\004 \001(\0132!.googl" + + "e.container.v1.AddonsConfigB\003\340A\002\022\014\n\004name" + + "\030\006 \001(\t\"}\n\023SetLocationsRequest\022\026\n\nproject" + + "_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\nclust" + + "er_id\030\003 \001(\tB\002\030\001\022\026\n\tlocations\030\004 \003(\tB\003\340A\002\022" + + "\014\n\004name\030\006 \001(\t\"\202\001\n\023UpdateMasterRequest\022\026\n" + + "\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022" + + "\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\033\n\016master_versio" + + "n\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\007 \001(\t\"\265\002\n\024SetMaster" + + "AuthRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004z" + + "one\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022E\n" + + "\006action\030\004 \001(\01620.google.container.v1.SetM" + + "asterAuthRequest.ActionB\003\340A\002\0224\n\006update\030\005" + + " \001(\0132\037.google.container.v1.MasterAuthB\003\340" + + "A\002\022\014\n\004name\030\007 \001(\t\"P\n\006Action\022\013\n\007UNKNOWN\020\000\022" + + "\020\n\014SET_PASSWORD\020\001\022\025\n\021GENERATE_PASSWORD\020\002" + + "\022\020\n\014SET_USERNAME\020\003\"f\n\024DeleteClusterReque" + + "st\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\t" + + "B\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\004 \001" + + "(\t\"O\n\023ListClustersRequest\022\026\n\nproject_id\030" + + "\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\016\n\006parent\030\004 " + + "\001(\t\"]\n\024ListClustersResponse\022.\n\010clusters\030" + + "\001 \003(\0132\034.google.container.v1.Cluster\022\025\n\rm" + + "issing_zones\030\002 \003(\t\"g\n\023GetOperationReques" + + "t\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB" + + "\002\030\001\022\030\n\014operation_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\005 " + + "\001(\t\"Q\n\025ListOperationsRequest\022\026\n\nproject_" + + "id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\016\n\006parent" + + "\030\004 \001(\t\"j\n\026CancelOperationRequest\022\026\n\nproj" + + "ect_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\030\n\014op" + + "eration_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\004 \001(\t\"c\n\026Li" + + "stOperationsResponse\0222\n\noperations\030\001 \003(\013" + + "2\036.google.container.v1.Operation\022\025\n\rmiss" + + "ing_zones\030\002 \003(\t\"P\n\026GetServerConfigReques" + + "t\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB" + + "\002\030\001\022\014\n\004name\030\004 \001(\t\"\364\002\n\014ServerConfig\022\037\n\027de" + + "fault_cluster_version\030\001 \001(\t\022\033\n\023valid_nod" + + "e_versions\030\003 \003(\t\022\032\n\022default_image_type\030\004" + + " \001(\t\022\031\n\021valid_image_types\030\005 \003(\t\022\035\n\025valid" + + "_master_versions\030\006 \003(\t\022H\n\010channels\030\t \003(\013" + + "26.google.container.v1.ServerConfig.Rele" + + "aseChannelConfig\032\205\001\n\024ReleaseChannelConfi" + + "g\022<\n\007channel\030\001 \001(\0162+.google.container.v1" + + ".ReleaseChannel.Channel\022\027\n\017default_versi" + + "on\030\002 \001(\t\022\026\n\016valid_versions\030\004 \003(\t\"\240\001\n\025Cre" + + "ateNodePoolRequest\022\026\n\nproject_id\030\001 \001(\tB\002" + + "\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\t" + + "B\002\030\001\0225\n\tnode_pool\030\004 \001(\0132\035.google.contain" + + "er.v1.NodePoolB\003\340A\002\022\016\n\006parent\030\006 \001(\t\"\201\001\n\025" + + "DeleteNodePoolRequest\022\026\n\nproject_id\030\001 \001(" + + "\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 " + + "\001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022\014\n\004nam" + + "e\030\006 \001(\t\"h\n\024ListNodePoolsRequest\022\026\n\nproje" + + "ct_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\nclu" + + "ster_id\030\003 \001(\tB\002\030\001\022\016\n\006parent\030\005 \001(\t\"~\n\022Get" + + "NodePoolRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022" + + "\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030" + + "\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022\014\n\004name\030\006 \001(" + + "\t\"\237\003\n\021BlueGreenSettings\022_\n\027standard_roll" + + "out_policy\030\001 \001(\0132<.google.container.v1.B" + + "lueGreenSettings.StandardRolloutPolicyH\000" + + "\022?\n\027node_pool_soak_duration\030\002 \001(\0132\031.goog" + + "le.protobuf.DurationH\001\210\001\001\032\271\001\n\025StandardRo" + + "lloutPolicy\022\032\n\020batch_percentage\030\001 \001(\002H\000\022" + + "\032\n\020batch_node_count\030\002 \001(\005H\000\022;\n\023batch_soa" + + "k_duration\030\003 \001(\0132\031.google.protobuf.Durat" + + "ionH\001\210\001\001B\023\n\021update_batch_sizeB\026\n\024_batch_" + + "soak_durationB\020\n\016rollout_policyB\032\n\030_node" + + "_pool_soak_duration\"\272\020\n\010NodePool\022\014\n\004name" + + "\030\001 \001(\t\022/\n\006config\030\002 \001(\0132\037.google.containe" + + "r.v1.NodeConfig\022\032\n\022initial_node_count\030\003 " + + "\001(\005\022\021\n\tlocations\030\r \003(\t\022>\n\016network_config" + + "\030\016 \001(\0132&.google.container.v1.NodeNetwork" + + "Config\022\021\n\tself_link\030d \001(\t\022\017\n\007version\030e \001" + + "(\t\022\033\n\023instance_group_urls\030f \003(\t\0224\n\006statu" + + "s\030g \001(\0162$.google.container.v1.NodePool.S" + + "tatus\022\032\n\016status_message\030h \001(\tB\002\030\001\022=\n\013aut" + + "oscaling\030\004 \001(\0132(.google.container.v1.Nod" + + "ePoolAutoscaling\0227\n\nmanagement\030\005 \001(\0132#.g" + + "oogle.container.v1.NodeManagement\022C\n\023max" + + "_pods_constraint\030\006 \001(\0132&.google.containe" + + "r.v1.MaxPodsConstraint\0228\n\nconditions\030i \003" + + "(\0132$.google.container.v1.StatusCondition" + + "\022\032\n\022pod_ipv4_cidr_size\030\007 \001(\005\022G\n\020upgrade_" + + "settings\030k \001(\0132-.google.container.v1.Nod" + + "ePool.UpgradeSettings\022G\n\020placement_polic" + + "y\030l \001(\0132-.google.container.v1.NodePool.P" + + "lacementPolicy\022B\n\013update_info\030m \001(\0132(.go" + + "ogle.container.v1.NodePool.UpdateInfoB\003\340" + + "A\003\022\014\n\004etag\030n \001(\t\022M\n\023queued_provisioning\030" + + "p \001(\01320.google.container.v1.NodePool.Que" + + "uedProvisioning\022M\n\030best_effort_provision" + + "ing\030q \001(\0132+.google.container.v1.BestEffo" + + "rtProvisioning\032\360\001\n\017UpgradeSettings\022\021\n\tma" + + "x_surge\030\001 \001(\005\022\027\n\017max_unavailable\030\002 \001(\005\022B" + + "\n\010strategy\030\003 \001(\0162+.google.container.v1.N" + + "odePoolUpdateStrategyH\000\210\001\001\022H\n\023blue_green" + + "_settings\030\004 \001(\0132&.google.container.v1.Bl" + + "ueGreenSettingsH\001\210\001\001B\013\n\t_strategyB\026\n\024_bl" + + "ue_green_settings\032\210\004\n\nUpdateInfo\022O\n\017blue" + + "_green_info\030\001 \001(\01326.google.container.v1." + + "NodePool.UpdateInfo.BlueGreenInfo\032\250\003\n\rBl" + + "ueGreenInfo\022K\n\005phase\030\001 \001(\0162<.google.cont" + + "ainer.v1.NodePool.UpdateInfo.BlueGreenIn" + + "fo.Phase\022 \n\030blue_instance_group_urls\030\002 \003" + + "(\t\022!\n\031green_instance_group_urls\030\003 \003(\t\022%\n" + + "\035blue_pool_deletion_start_time\030\004 \001(\t\022\032\n\022" + + "green_pool_version\030\005 \001(\t\"\301\001\n\005Phase\022\025\n\021PH" + + "ASE_UNSPECIFIED\020\000\022\022\n\016UPDATE_STARTED\020\001\022\027\n" + + "\023CREATING_GREEN_POOL\020\002\022\027\n\023CORDONING_BLUE" + + "_POOL\020\003\022\026\n\022DRAINING_BLUE_POOL\020\004\022\025\n\021NODE_" + + "POOL_SOAKING\020\005\022\026\n\022DELETING_BLUE_POOL\020\006\022\024" + + "\n\020ROLLBACK_STARTED\020\007\032\256\001\n\017PlacementPolicy" + + "\022@\n\004type\030\001 \001(\01622.google.container.v1.Nod" + + "ePool.PlacementPolicy.Type\022\031\n\014tpu_topolo" + + "gy\030\002 \001(\tB\003\340A\001\022\023\n\013policy_name\030\003 \001(\t\")\n\004Ty" + + "pe\022\024\n\020TYPE_UNSPECIFIED\020\000\022\013\n\007COMPACT\020\001\032%\n" + + "\022QueuedProvisioning\022\017\n\007enabled\030\001 \001(\010\"\201\001\n" + + "\006Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014PROVI" + + "SIONING\020\001\022\013\n\007RUNNING\020\002\022\026\n\022RUNNING_WITH_E" + + "RROR\020\003\022\017\n\013RECONCILING\020\004\022\014\n\010STOPPING\020\005\022\t\n" + + "\005ERROR\020\006\"}\n\016NodeManagement\022\024\n\014auto_upgra" + + "de\030\001 \001(\010\022\023\n\013auto_repair\030\002 \001(\010\022@\n\017upgrade" + + "_options\030\n \001(\0132\'.google.container.v1.Aut" + + "oUpgradeOptions\"F\n\026BestEffortProvisionin" + + "g\022\017\n\007enabled\030\001 \001(\010\022\033\n\023min_provision_node" + + "s\030\002 \001(\005\"J\n\022AutoUpgradeOptions\022\037\n\027auto_up" + + "grade_start_time\030\001 \001(\t\022\023\n\013description\030\002 " + + "\001(\t\"e\n\021MaintenancePolicy\0226\n\006window\030\001 \001(\013" + + "2&.google.container.v1.MaintenanceWindow" + + "\022\030\n\020resource_version\030\003 \001(\t\"\366\002\n\021Maintenan" + + "ceWindow\022O\n\030daily_maintenance_window\030\002 \001" + + "(\0132+.google.container.v1.DailyMaintenanc" + + "eWindowH\000\022D\n\020recurring_window\030\003 \001(\0132(.go" + + "ogle.container.v1.RecurringTimeWindowH\000\022" + + "a\n\026maintenance_exclusions\030\004 \003(\0132A.google" + + ".container.v1.MaintenanceWindow.Maintena" + + "nceExclusionsEntry\032]\n\032MaintenanceExclusi" + + "onsEntry\022\013\n\003key\030\001 \001(\t\022.\n\005value\030\002 \001(\0132\037.g" + + "oogle.container.v1.TimeWindow:\0028\001B\010\n\006pol" + + "icy\"\320\001\n\nTimeWindow\022Y\n\035maintenance_exclus" + + "ion_options\030\003 \001(\01320.google.container.v1." + + "MaintenanceExclusionOptionsH\000\022.\n\nstart_t" + + "ime\030\001 \001(\0132\032.google.protobuf.Timestamp\022,\n" + + "\010end_time\030\002 \001(\0132\032.google.protobuf.Timest" + + "ampB\t\n\007options\"\264\001\n\033MaintenanceExclusionO" + + "ptions\022E\n\005scope\030\001 \001(\01626.google.container" + + ".v1.MaintenanceExclusionOptions.Scope\"N\n" + + "\005Scope\022\017\n\013NO_UPGRADES\020\000\022\025\n\021NO_MINOR_UPGR" + + "ADES\020\001\022\035\n\031NO_MINOR_OR_NODE_UPGRADES\020\002\"Z\n" + + "\023RecurringTimeWindow\022/\n\006window\030\001 \001(\0132\037.g" + + "oogle.container.v1.TimeWindow\022\022\n\nrecurre" + + "nce\030\002 \001(\t\">\n\026DailyMaintenanceWindow\022\022\n\ns" + + "tart_time\030\002 \001(\t\022\020\n\010duration\030\003 \001(\t\"\306\001\n\034Se" + + "tNodePoolManagementRequest\022\026\n\nproject_id" + + "\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_" + + "id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022<" + + "\n\nmanagement\030\005 \001(\0132#.google.container.v1" + + ".NodeManagementB\003\340A\002\022\014\n\004name\030\007 \001(\t\"\233\001\n\026S" + + "etNodePoolSizeRequest\022\026\n\nproject_id\030\001 \001(" + + "\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 " + + "\001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022\027\n\nnod" + + "e_count\030\005 \001(\005B\003\340A\002\022\014\n\004name\030\007 \001(\t\".\n\036Comp" + + "leteNodePoolUpgradeRequest\022\014\n\004name\030\001 \001(\t" + + "\"\237\001\n\036RollbackNodePoolUpgradeRequest\022\026\n\np" + + "roject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n" + + "\ncluster_id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 " + + "\001(\tB\002\030\001\022\014\n\004name\030\006 \001(\t\022\023\n\013respect_pdb\030\007 \001" + + "(\010\"J\n\025ListNodePoolsResponse\0221\n\nnode_pool" + + "s\030\001 \003(\0132\035.google.container.v1.NodePool\"\257" + + "\003\n\022ClusterAutoscaling\022$\n\034enable_node_aut" + + "oprovisioning\030\001 \001(\010\022;\n\017resource_limits\030\002" + + " \003(\0132\".google.container.v1.ResourceLimit" + + "\022W\n\023autoscaling_profile\030\003 \001(\0162:.google.c" + + "ontainer.v1.ClusterAutoscaling.Autoscali" + + "ngProfile\022b\n#autoprovisioning_node_pool_" + + "defaults\030\004 \001(\01325.google.container.v1.Aut" + + "oprovisioningNodePoolDefaults\022\"\n\032autopro" + + "visioning_locations\030\005 \003(\t\"U\n\022Autoscaling" + + "Profile\022\027\n\023PROFILE_UNSPECIFIED\020\000\022\030\n\024OPTI" + + "MIZE_UTILIZATION\020\001\022\014\n\010BALANCED\020\002\"\370\003\n Aut" + + "oprovisioningNodePoolDefaults\022\024\n\014oauth_s" + + "copes\030\001 \003(\t\022\027\n\017service_account\030\002 \001(\t\022G\n\020" + + "upgrade_settings\030\003 \001(\0132-.google.containe" + + "r.v1.NodePool.UpgradeSettings\0227\n\nmanagem" + + "ent\030\004 \001(\0132#.google.container.v1.NodeMana" + + "gement\022\034\n\020min_cpu_platform\030\005 \001(\tB\002\030\001\022\024\n\014" + + "disk_size_gb\030\006 \001(\005\022\021\n\tdisk_type\030\007 \001(\t\022M\n" + + "\030shielded_instance_config\030\010 \001(\0132+.google" + + ".container.v1.ShieldedInstanceConfig\022\031\n\021" + + "boot_disk_kms_key\030\t \001(\t\022\022\n\nimage_type\030\n " + + "\001(\t\0223\n&insecure_kubelet_readonly_port_en" + + "abled\030\r \001(\010H\000\210\001\001B)\n\'_insecure_kubelet_re" + + "adonly_port_enabled\"H\n\rResourceLimit\022\025\n\r" + + "resource_type\030\001 \001(\t\022\017\n\007minimum\030\002 \001(\003\022\017\n\007" + + "maximum\030\003 \001(\003\"\307\002\n\023NodePoolAutoscaling\022\017\n" + + "\007enabled\030\001 \001(\010\022\026\n\016min_node_count\030\002 \001(\005\022\026" + + "\n\016max_node_count\030\003 \001(\005\022\027\n\017autoprovisione" + + "d\030\004 \001(\010\022P\n\017location_policy\030\005 \001(\01627.googl" + + "e.container.v1.NodePoolAutoscaling.Locat" + + "ionPolicy\022\034\n\024total_min_node_count\030\006 \001(\005\022" + + "\034\n\024total_max_node_count\030\007 \001(\005\"H\n\016Locatio" + + "nPolicy\022\037\n\033LOCATION_POLICY_UNSPECIFIED\020\000" + + "\022\014\n\010BALANCED\020\001\022\007\n\003ANY\020\002\"\222\002\n\020SetLabelsReq" + + "uest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001" + + "(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022W\n\017resour" + + "ce_labels\030\004 \003(\01329.google.container.v1.Se" + + "tLabelsRequest.ResourceLabelsEntryB\003\340A\002\022" + + "\036\n\021label_fingerprint\030\005 \001(\tB\003\340A\002\022\014\n\004name\030" + + "\007 \001(\t\0325\n\023ResourceLabelsEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"|\n\024SetLegacyAbacReq" + + "uest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001" + + "(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\024\n\007enable" + + "d\030\004 \001(\010B\003\340A\002\022\014\n\004name\030\006 \001(\t\"\204\001\n\026StartIPRo" + + "tationRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n" + + "\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022" + + "\014\n\004name\030\006 \001(\t\022\032\n\022rotate_credentials\030\007 \001(" + + "\010\"k\n\031CompleteIPRotationRequest\022\026\n\nprojec" + + "t_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\nclus" + + "ter_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\007 \001(\t\"\305\002\n\021Accel" + + "eratorConfig\022\031\n\021accelerator_count\030\001 \001(\003\022" + + "\030\n\020accelerator_type\030\002 \001(\t\022\032\n\022gpu_partiti" + + "on_size\030\003 \001(\t\022F\n\022gpu_sharing_config\030\005 \001(" + + "\0132%.google.container.v1.GPUSharingConfig" + + "H\000\210\001\001\022]\n\036gpu_driver_installation_config\030" + + "\006 \001(\01320.google.container.v1.GPUDriverIns" + + "tallationConfigH\001\210\001\001B\025\n\023_gpu_sharing_con" + + "figB!\n\037_gpu_driver_installation_config\"\372" + + "\001\n\020GPUSharingConfig\022\"\n\032max_shared_client" + + "s_per_gpu\030\001 \001(\003\022[\n\024gpu_sharing_strategy\030" + + "\002 \001(\01628.google.container.v1.GPUSharingCo" + + "nfig.GPUSharingStrategyH\000\210\001\001\"L\n\022GPUShari" + + "ngStrategy\022$\n GPU_SHARING_STRATEGY_UNSPE" + + "CIFIED\020\000\022\020\n\014TIME_SHARING\020\001B\027\n\025_gpu_shari" + + "ng_strategy\"\204\002\n\033GPUDriverInstallationCon" + + "fig\022b\n\022gpu_driver_version\030\001 \001(\0162A.google" + + ".container.v1.GPUDriverInstallationConfi" + + "g.GPUDriverVersionH\000\210\001\001\"j\n\020GPUDriverVers" + + "ion\022\"\n\036GPU_DRIVER_VERSION_UNSPECIFIED\020\000\022" + + "\031\n\025INSTALLATION_DISABLED\020\001\022\013\n\007DEFAULT\020\002\022" + + "\n\n\006LATEST\020\003B\025\n\023_gpu_driver_version\"\232\001\n\026W" + + "orkloadMetadataConfig\022>\n\004mode\030\002 \001(\01620.go" + + "ogle.container.v1.WorkloadMetadataConfig" + + ".Mode\"@\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\020\n\014G" + + "CE_METADATA\020\001\022\020\n\014GKE_METADATA\020\002\"\252\001\n\027SetN" + + "etworkPolicyRequest\022\026\n\nproject_id\030\001 \001(\tB" + + "\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(" + + "\tB\002\030\001\022?\n\016network_policy\030\004 \001(\0132\".google.c" + + "ontainer.v1.NetworkPolicyB\003\340A\002\022\014\n\004name\030\006" + + " \001(\t\"\271\001\n\033SetMaintenancePolicyRequest\022\027\n\n" + + "project_id\030\001 \001(\tB\003\340A\002\022\021\n\004zone\030\002 \001(\tB\003\340A\002" + + "\022\027\n\ncluster_id\030\003 \001(\tB\003\340A\002\022G\n\022maintenance" + + "_policy\030\004 \001(\0132&.google.container.v1.Main" + + "tenancePolicyB\003\340A\002\022\014\n\004name\030\005 \001(\t\"\251\002\n\017Sta" + + "tusCondition\022;\n\004code\030\001 \001(\0162).google.cont" + + "ainer.v1.StatusCondition.CodeB\002\030\001\022\017\n\007mes" + + "sage\030\002 \001(\t\022(\n\016canonical_code\030\003 \001(\0162\020.goo" + + "gle.rpc.Code\"\235\001\n\004Code\022\013\n\007UNKNOWN\020\000\022\020\n\014GC" + + "E_STOCKOUT\020\001\022\037\n\033GKE_SERVICE_ACCOUNT_DELE" + + "TED\020\002\022\026\n\022GCE_QUOTA_EXCEEDED\020\003\022\023\n\017SET_BY_" + + "OPERATOR\020\004\022\027\n\023CLOUD_KMS_KEY_ERROR\020\007\022\017\n\013C" + + "A_EXPIRING\020\t\"\315\010\n\rNetworkConfig\022\017\n\007networ" + + "k\030\001 \001(\t\022\022\n\nsubnetwork\030\002 \001(\t\022$\n\034enable_in" + + "tra_node_visibility\030\005 \001(\010\022C\n\023default_sna" + + "t_status\030\007 \001(\0132&.google.container.v1.Def" + + "aultSnatStatus\022\037\n\027enable_l4ilb_subsettin", + "g\030\n \001(\010\022@\n\021datapath_provider\030\013 \001(\0162%.goo" + + "gle.container.v1.DatapathProvider\022P\n\032pri" + + "vate_ipv6_google_access\030\014 \001(\0162,.google.c" + + "ontainer.v1.PrivateIPv6GoogleAccess\0222\n\nd" + + "ns_config\030\r \001(\0132\036.google.container.v1.DN" + + "SConfig\022R\n\033service_external_ips_config\030\017" + + " \001(\0132-.google.container.v1.ServiceExtern" + + "alIPsConfig\022A\n\022gateway_api_config\030\020 \001(\0132" + + "%.google.container.v1.GatewayAPIConfig\022\037" + + "\n\027enable_multi_networking\030\021 \001(\010\022f\n\032netwo" + + "rk_performance_config\030\022 \001(\0132B.google.con" + + "tainer.v1.NetworkConfig.ClusterNetworkPe" + + "rformanceConfig\022\'\n\032enable_fqdn_network_p" + + "olicy\030\023 \001(\010H\000\210\001\001\022Y\n\034in_transit_encryptio" + + "n_config\030\024 \001(\0162..google.container.v1.InT" + + "ransitEncryptionConfigH\001\210\001\001\032\336\001\n\037ClusterN" + + "etworkPerformanceConfig\022q\n\033total_egress_" + + "bandwidth_tier\030\001 \001(\0162G.google.container." + + "v1.NetworkConfig.ClusterNetworkPerforman" + + "ceConfig.TierH\000\210\001\001\"(\n\004Tier\022\024\n\020TIER_UNSPE" + + "CIFIED\020\000\022\n\n\006TIER_1\020\001B\036\n\034_total_egress_ba" + + "ndwidth_tierB\035\n\033_enable_fqdn_network_pol" + + "icyB\037\n\035_in_transit_encryption_config\"\274\001\n" + + "\020GatewayAPIConfig\022>\n\007channel\030\001 \001(\0162-.goo" + + "gle.container.v1.GatewayAPIConfig.Channe" + + "l\"h\n\007Channel\022\027\n\023CHANNEL_UNSPECIFIED\020\000\022\024\n" + + "\020CHANNEL_DISABLED\020\001\022\030\n\024CHANNEL_EXPERIMEN" + + "TAL\020\003\022\024\n\020CHANNEL_STANDARD\020\004\"+\n\030ServiceEx" + + "ternalIPsConfig\022\017\n\007enabled\030\001 \001(\010\"(\n\026GetO" + + "penIDConfigRequest\022\016\n\006parent\030\001 \001(\t\"\334\001\n\027G" + + "etOpenIDConfigResponse\022\016\n\006issuer\030\001 \001(\t\022\020" + + "\n\010jwks_uri\030\002 \001(\t\022 \n\030response_types_suppo" + + "rted\030\003 \003(\t\022\037\n\027subject_types_supported\030\004 " + + "\003(\t\022-\n%id_token_signing_alg_values_suppo" + + "rted\030\005 \003(\t\022\030\n\020claims_supported\030\006 \003(\t\022\023\n\013" + + "grant_types\030\007 \003(\t\"\'\n\025GetJSONWebKeysReque" + + "st\022\016\n\006parent\030\001 \001(\t\"r\n\003Jwk\022\013\n\003kty\030\001 \001(\t\022\013" + + "\n\003alg\030\002 \001(\t\022\013\n\003use\030\003 \001(\t\022\013\n\003kid\030\004 \001(\t\022\t\n" + + "\001n\030\005 \001(\t\022\t\n\001e\030\006 \001(\t\022\t\n\001x\030\007 \001(\t\022\t\n\001y\030\010 \001(" + + "\t\022\013\n\003crv\030\t \001(\t\"@\n\026GetJSONWebKeysResponse" + + "\022&\n\004keys\030\001 \003(\0132\030.google.container.v1.Jwk" + + "\"2\n\"CheckAutopilotCompatibilityRequest\022\014" + + "\n\004name\030\001 \001(\t\"\374\002\n\033AutopilotCompatibilityI" + + "ssue\0224\n\020last_observation\030\001 \001(\0132\032.google." + + "protobuf.Timestamp\022\027\n\017constraint_type\030\002 " + + "\001(\t\022X\n\024incompatibility_type\030\003 \001(\0162:.goog" + + "le.container.v1.AutopilotCompatibilityIs" + + "sue.IssueType\022\020\n\010subjects\030\004 \003(\t\022\031\n\021docum" + + "entation_url\030\005 \001(\t\022\023\n\013description\030\006 \001(\t\"" + + "r\n\tIssueType\022\017\n\013UNSPECIFIED\020\000\022\023\n\017INCOMPA" + + "TIBILITY\020\001\022\036\n\032ADDITIONAL_CONFIG_REQUIRED" + + "\020\002\022\037\n\033PASSED_WITH_OPTIONAL_CONFIG\020\003\"x\n#C" + + "heckAutopilotCompatibilityResponse\022@\n\006is" + + "sues\030\001 \003(\01320.google.container.v1.Autopil" + + "otCompatibilityIssue\022\017\n\007summary\030\002 \001(\t\"\216\001" + + "\n\016ReleaseChannel\022<\n\007channel\030\001 \001(\0162+.goog" + + "le.container.v1.ReleaseChannel.Channel\">" + + "\n\007Channel\022\017\n\013UNSPECIFIED\020\000\022\t\n\005RAPID\020\001\022\013\n" + + "\007REGULAR\020\002\022\n\n\006STABLE\020\003\"\'\n\024CostManagement" + + "Config\022\017\n\007enabled\030\001 \001(\010\",\n\031IntraNodeVisi" + + "bilityConfig\022\017\n\007enabled\030\001 \001(\010\"&\n\023ILBSubs" + + "ettingConfig\022\017\n\007enabled\030\001 \001(\010\"\313\002\n\tDNSCon" + + "fig\022<\n\013cluster_dns\030\001 \001(\0162\'.google.contai" + + "ner.v1.DNSConfig.Provider\022B\n\021cluster_dns" + + "_scope\030\002 \001(\0162\'.google.container.v1.DNSCo" + + "nfig.DNSScope\022\032\n\022cluster_dns_domain\030\003 \001(" + + "\t\"W\n\010Provider\022\030\n\024PROVIDER_UNSPECIFIED\020\000\022" + + "\024\n\020PLATFORM_DEFAULT\020\001\022\r\n\tCLOUD_DNS\020\002\022\014\n\010" + + "KUBE_DNS\020\003\"G\n\010DNSScope\022\031\n\025DNS_SCOPE_UNSP" + + "ECIFIED\020\000\022\021\n\rCLUSTER_SCOPE\020\001\022\r\n\tVPC_SCOP" + + "E\020\002\".\n\021MaxPodsConstraint\022\031\n\021max_pods_per" + + "_node\030\001 \001(\003\"/\n\026WorkloadIdentityConfig\022\025\n" + + "\rworkload_pool\030\002 \001(\t\"(\n\025IdentityServiceC" + + "onfig\022\017\n\007enabled\030\001 \001(\010\"K\n\020MeshCertificat" + + "es\0227\n\023enable_certificates\030\001 \001(\0132\032.google" + + ".protobuf.BoolValue\"\230\001\n\022DatabaseEncrypti" + + "on\022\020\n\010key_name\030\001 \001(\t\022<\n\005state\030\002 \001(\0162-.go" + + "ogle.container.v1.DatabaseEncryption.Sta" + + "te\"2\n\005State\022\013\n\007UNKNOWN\020\000\022\r\n\tENCRYPTED\020\001\022" + + "\r\n\tDECRYPTED\020\002\"e\n\034ListUsableSubnetworksR" + + "equest\022\016\n\006parent\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\021" + + "\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"t\n" + + "\035ListUsableSubnetworksResponse\022:\n\013subnet" + + "works\030\001 \003(\0132%.google.container.v1.Usable" + + "Subnetwork\022\027\n\017next_page_token\030\002 \001(\t\"\200\002\n\036" + + "UsableSubnetworkSecondaryRange\022\022\n\nrange_" + + "name\030\001 \001(\t\022\025\n\rip_cidr_range\030\002 \001(\t\022J\n\006sta" + + "tus\030\003 \001(\0162:.google.container.v1.UsableSu" + + "bnetworkSecondaryRange.Status\"g\n\006Status\022" + + "\013\n\007UNKNOWN\020\000\022\n\n\006UNUSED\020\001\022\022\n\016IN_USE_SERVI" + + "CE\020\002\022\030\n\024IN_USE_SHAREABLE_POD\020\003\022\026\n\022IN_USE" + + "_MANAGED_POD\020\004\"\270\001\n\020UsableSubnetwork\022\022\n\ns" + + "ubnetwork\030\001 \001(\t\022\017\n\007network\030\002 \001(\t\022\025\n\rip_c" + + "idr_range\030\003 \001(\t\022P\n\023secondary_ip_ranges\030\004" + + " \003(\01323.google.container.v1.UsableSubnetw" + + "orkSecondaryRange\022\026\n\016status_message\030\005 \001(" + + "\t\"\355\002\n\031ResourceUsageExportConfig\022`\n\024bigqu" + + "ery_destination\030\001 \001(\0132B.google.container" + + ".v1.ResourceUsageExportConfig.BigQueryDe" + + "stination\022&\n\036enable_network_egress_meter" + + "ing\030\002 \001(\010\022m\n\033consumption_metering_config" + + "\030\003 \001(\0132H.google.container.v1.ResourceUsa" + + "geExportConfig.ConsumptionMeteringConfig" + + "\032)\n\023BigQueryDestination\022\022\n\ndataset_id\030\001 " + + "\001(\t\032,\n\031ConsumptionMeteringConfig\022\017\n\007enab" + + "led\030\001 \001(\010\")\n\026VerticalPodAutoscaling\022\017\n\007e" + + "nabled\030\001 \001(\010\"%\n\021DefaultSnatStatus\022\020\n\010dis" + + "abled\030\001 \001(\010\" \n\rShieldedNodes\022\017\n\007enabled\030" + + "\001 \001(\010\"\035\n\nVirtualNIC\022\017\n\007enabled\030\001 \001(\010\"\035\n\n" + + "FastSocket\022\017\n\007enabled\030\001 \001(\010\"\250\003\n\022Notifica" + + "tionConfig\022>\n\006pubsub\030\001 \001(\0132..google.cont" + + "ainer.v1.NotificationConfig.PubSub\032\212\001\n\006P" + + "ubSub\022\017\n\007enabled\030\001 \001(\010\022/\n\005topic\030\002 \001(\tB \372" + + "A\035\n\033pubsub.googleapis.com/Topic\022>\n\006filte" + + "r\030\003 \001(\0132..google.container.v1.Notificati" + + "onConfig.Filter\032O\n\006Filter\022E\n\nevent_type\030" + + "\001 \003(\01621.google.container.v1.Notification" + + "Config.EventType\"t\n\tEventType\022\032\n\026EVENT_T" + + "YPE_UNSPECIFIED\020\000\022\033\n\027UPGRADE_AVAILABLE_E" + + "VENT\020\001\022\021\n\rUPGRADE_EVENT\020\002\022\033\n\027SECURITY_BU" + + "LLETIN_EVENT\020\003\"$\n\021ConfidentialNodes\022\017\n\007e" + + "nabled\030\001 \001(\010\"\337\001\n\014UpgradeEvent\022?\n\rresourc" + + "e_type\030\001 \001(\0162(.google.container.v1.Upgra" + + "deResourceType\022\021\n\toperation\030\002 \001(\t\0228\n\024ope" + + "ration_start_time\030\003 \001(\0132\032.google.protobu" + + "f.Timestamp\022\027\n\017current_version\030\004 \001(\t\022\026\n\016" + + "target_version\030\005 \001(\t\022\020\n\010resource\030\006 \001(\t\"\271" + + "\001\n\025UpgradeAvailableEvent\022\017\n\007version\030\001 \001(" + + "\t\022?\n\rresource_type\030\002 \001(\0162(.google.contai" + + "ner.v1.UpgradeResourceType\022<\n\017release_ch" + + "annel\030\003 \001(\0132#.google.container.v1.Releas" + + "eChannel\022\020\n\010resource\030\004 \001(\t\"\236\002\n\025SecurityB" + + "ulletinEvent\022\036\n\026resource_type_affected\030\001" + + " \001(\t\022\023\n\013bulletin_id\030\002 \001(\t\022\017\n\007cve_ids\030\003 \003" + + "(\t\022\020\n\010severity\030\004 \001(\t\022\024\n\014bulletin_uri\030\005 \001" + + "(\t\022\031\n\021brief_description\030\006 \001(\t\022!\n\031affecte" + + "d_supported_minors\030\007 \003(\t\022\030\n\020patched_vers" + + "ions\030\010 \003(\t\022 \n\030suggested_upgrade_target\030\t" + + " \001(\t\022\035\n\025manual_steps_required\030\n \001(\010\"g\n\tA" + + "utopilot\022\017\n\007enabled\030\001 \001(\010\022I\n\026workload_po" + + "licy_config\030\002 \001(\0132).google.container.v1." + + "WorkloadPolicyConfig\"H\n\024WorkloadPolicyCo" + + "nfig\022\034\n\017allow_net_admin\030\001 \001(\010H\000\210\001\001B\022\n\020_a" + + "llow_net_admin\"V\n\rLoggingConfig\022E\n\020compo" + + "nent_config\030\001 \001(\0132+.google.container.v1." + + "LoggingComponentConfig\"\357\001\n\026LoggingCompon" + + "entConfig\022P\n\021enable_components\030\001 \003(\01625.g" + + "oogle.container.v1.LoggingComponentConfi" + + "g.Component\"\202\001\n\tComponent\022\031\n\025COMPONENT_U" + + "NSPECIFIED\020\000\022\025\n\021SYSTEM_COMPONENTS\020\001\022\r\n\tW" + + "ORKLOADS\020\002\022\r\n\tAPISERVER\020\003\022\r\n\tSCHEDULER\020\004" + + "\022\026\n\022CONTROLLER_MANAGER\020\005\"\227\002\n\020MonitoringC" + + "onfig\022H\n\020component_config\030\001 \001(\0132..google" + + ".container.v1.MonitoringComponentConfig\022" + + "O\n\031managed_prometheus_config\030\002 \001(\0132,.goo" + + "gle.container.v1.ManagedPrometheusConfig" + + "\022h\n&advanced_datapath_observability_conf" + + "ig\030\003 \001(\01328.google.container.v1.AdvancedD" + + "atapathObservabilityConfig\"\236\002\n#AdvancedD" + + "atapathObservabilityConfig\022\026\n\016enable_met" + + "rics\030\001 \001(\010\022V\n\nrelay_mode\030\002 \001(\0162B.google." + + "container.v1.AdvancedDatapathObservabili" + + "tyConfig.RelayMode\022\031\n\014enable_relay\030\003 \001(\010" + + "H\000\210\001\001\"[\n\tRelayMode\022\032\n\026RELAY_MODE_UNSPECI" + + "FIED\020\000\022\014\n\010DISABLED\020\001\022\023\n\017INTERNAL_VPC_LB\020" + + "\003\022\017\n\013EXTERNAL_LB\020\004B\017\n\r_enable_relay\"Z\n\025N" + + "odePoolLoggingConfig\022A\n\016variant_config\030\001" + + " \001(\0132).google.container.v1.LoggingVarian" + + "tConfig\"\237\001\n\024LoggingVariantConfig\022B\n\007vari" + + "ant\030\001 \001(\01621.google.container.v1.LoggingV" + + "ariantConfig.Variant\"C\n\007Variant\022\027\n\023VARIA" + + "NT_UNSPECIFIED\020\000\022\013\n\007DEFAULT\020\001\022\022\n\016MAX_THR" + + "OUGHPUT\020\002\"\265\002\n\031MonitoringComponentConfig\022" + + "S\n\021enable_components\030\001 \003(\01628.google.cont" + + "ainer.v1.MonitoringComponentConfig.Compo" + + "nent\"\302\001\n\tComponent\022\031\n\025COMPONENT_UNSPECIF" + + "IED\020\000\022\025\n\021SYSTEM_COMPONENTS\020\001\022\r\n\tAPISERVE" + + "R\020\003\022\r\n\tSCHEDULER\020\004\022\026\n\022CONTROLLER_MANAGER" + + "\020\005\022\013\n\007STORAGE\020\007\022\007\n\003HPA\020\010\022\007\n\003POD\020\t\022\r\n\tDAE" + + "MONSET\020\n\022\016\n\nDEPLOYMENT\020\013\022\017\n\013STATEFULSET\020" + + "\014\"*\n\027ManagedPrometheusConfig\022\017\n\007enabled\030" + + "\001 \001(\010\"D\n\005Fleet\022\017\n\007project\030\001 \001(\t\022\022\n\nmembe" + + "rship\030\002 \001(\t\022\026\n\016pre_registered\030\003 \001(\010\"2\n\027L" + + "ocalNvmeSsdBlockConfig\022\027\n\017local_ssd_coun" + + "t\030\001 \001(\005\"9\n\036EphemeralStorageLocalSsdConfi" + + "g\022\027\n\017local_ssd_count\030\001 \001(\005\"\204\001\n\023ResourceM" + + "anagerTags\022@\n\004tags\030\001 \003(\01322.google.contai" + + "ner.v1.ResourceManagerTags.TagsEntry\032+\n\t" + + "TagsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\"\253\001\n\020EnterpriseConfig\022L\n\014cluster_tier\030\001" + + " \001(\01621.google.container.v1.EnterpriseCon" + + "fig.ClusterTierB\003\340A\003\"I\n\013ClusterTier\022\034\n\030C" + + "LUSTER_TIER_UNSPECIFIED\020\000\022\014\n\010STANDARD\020\001\022" + + "\016\n\nENTERPRISE\020\002*\306\001\n\027PrivateIPv6GoogleAcc" + + "ess\022*\n&PRIVATE_IPV6_GOOGLE_ACCESS_UNSPEC" + + "IFIED\020\000\022\'\n#PRIVATE_IPV6_GOOGLE_ACCESS_DI" + + "SABLED\020\001\022(\n$PRIVATE_IPV6_GOOGLE_ACCESS_T" + + "O_GOOGLE\020\002\022,\n(PRIVATE_IPV6_GOOGLE_ACCESS" + + "_BIDIRECTIONAL\020\003*W\n\023UpgradeResourceType\022" + + "%\n!UPGRADE_RESOURCE_TYPE_UNSPECIFIED\020\000\022\n" + + "\n\006MASTER\020\001\022\r\n\tNODE_POOL\020\002*a\n\020DatapathPro" + + "vider\022!\n\035DATAPATH_PROVIDER_UNSPECIFIED\020\000" + + "\022\023\n\017LEGACY_DATAPATH\020\001\022\025\n\021ADVANCED_DATAPA" + + "TH\020\002*^\n\026NodePoolUpdateStrategy\022)\n%NODE_P" + + "OOL_UPDATE_STRATEGY_UNSPECIFIED\020\000\022\016\n\nBLU" + + "E_GREEN\020\002\022\t\n\005SURGE\020\003*@\n\tStackType\022\032\n\026STA" + + "CK_TYPE_UNSPECIFIED\020\000\022\010\n\004IPV4\020\001\022\r\n\tIPV4_" + + "IPV6\020\002*N\n\016IPv6AccessType\022 \n\034IPV6_ACCESS_" + + "TYPE_UNSPECIFIED\020\000\022\014\n\010INTERNAL\020\001\022\014\n\010EXTE" + + "RNAL\020\002*\237\001\n\031InTransitEncryptionConfig\022,\n(" + + "IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED" + + "\020\000\022\"\n\036IN_TRANSIT_ENCRYPTION_DISABLED\020\001\0220" + + "\n,IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANS" + + "PARENT\020\0022\250I\n\016ClusterManager\022\350\001\n\014ListClus" + + "ters\022(.google.container.v1.ListClustersR" + + "equest\032).google.container.v1.ListCluster" + + "sResponse\"\202\001\332A\017project_id,zone\332A\006parent\202" + + "\323\344\223\002a\022,/v1/{parent=projects/*/locations/" + + "*}/clustersZ1\022//v1/projects/{project_id}" + + "/zones/{zone}/clusters\022\355\001\n\nGetCluster\022&." + + "google.container.v1.GetClusterRequest\032\034." + + "google.container.v1.Cluster\"\230\001\332A\032project" + + "_id,zone,cluster_id\332A\004name\202\323\344\223\002n\022,/v1/{n" + + "ame=projects/*/locations/*/clusters/*}Z>" + + "\022*/v1/{name=" + + "projects/*/locations/*/clusters/*}:setRe" + + "sourceLabels:\001*ZP\"K/v1/projects/{project" + + "_id}/zones/{zone}/clusters/{cluster_id}/" + + "resourceLabels:\001*\022\245\002\n\rSetLegacyAbac\022).go" + + "ogle.container.v1.SetLegacyAbacRequest\032\036" + + ".google.container.v1.Operation\"\310\001\332A\"proj" + + "ect_id,zone,cluster_id,enabled\332A\014name,en" + + "abled\202\323\344\223\002\215\001\":/v1/{name=projects/*/locat" + + "ions/*/clusters/*}:setLegacyAbac:\001*ZL\"G/" + + "v1/projects/{project_id}/zones/{zone}/cl" + + "usters/{cluster_id}/legacyAbac:\001*\022\240\002\n\017St" + + "artIPRotation\022+.google.container.v1.Star" + + "tIPRotationRequest\032\036.google.container.v1" + + ".Operation\"\277\001\332A\032project_id,zone,cluster_", + "id\332A\004name\202\323\344\223\002\224\001\" + * 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.v1.ClusterUpdate} + */ +public final class ClusterUpdate extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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.emptyList(); + desiredLoggingService_ = ""; + desiredDatapathProvider_ = 0; + desiredPrivateIpv6GoogleAccess_ = 0; + desiredMasterVersion_ = ""; + etag_ = ""; + desiredStackType_ = 0; + desiredInTransitEncryptionConfig_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClusterUpdate(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ClusterUpdate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ClusterUpdate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ClusterUpdate.class, com.google.container.v1.ClusterUpdate.Builder.class); + } + + private int bitField0_; + private int bitField1_; + public static final int DESIRED_NODE_VERSION_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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.v1.AddonsConfig desiredAddonsConfig_; + /** + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1.AddonsConfig desired_addons_config = 6; + * @return Whether the desiredAddonsConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredAddonsConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1.AddonsConfig desired_addons_config = 6; + * @return The desiredAddonsConfig. + */ + @java.lang.Override + public com.google.container.v1.AddonsConfig getDesiredAddonsConfig() { + return desiredAddonsConfig_ == null ? com.google.container.v1.AddonsConfig.getDefaultInstance() : desiredAddonsConfig_; + } + /** + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1.AddonsConfig desired_addons_config = 6; + */ + @java.lang.Override + public com.google.container.v1.AddonsConfigOrBuilder getDesiredAddonsConfigOrBuilder() { + return desiredAddonsConfig_ == null ? com.google.container.v1.AddonsConfig.getDefaultInstance() : desiredAddonsConfig_; + } + + public static final int DESIRED_NODE_POOL_ID_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private volatile java.lang.Object desiredNodePoolId_ = ""; + /** + *
+   * The node pool to be upgraded. This field is mandatory if
+   * "desired_node_version", "desired_image_family" or
+   * "desired_node_pool_autoscaling" is specified and there is more than one
+   * node pool on the cluster.
+   * 
+ * + * string desired_node_pool_id = 7; + * @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" or
+   * "desired_node_pool_autoscaling" 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; + @SuppressWarnings("serial") + 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_DATABASE_ENCRYPTION_FIELD_NUMBER = 46; + private com.google.container.v1.DatabaseEncryption desiredDatabaseEncryption_; + /** + *
+   * Configuration of etcd encryption.
+   * 
+ * + * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; + * @return Whether the desiredDatabaseEncryption field is set. + */ + @java.lang.Override + public boolean hasDesiredDatabaseEncryption() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * Configuration of etcd encryption.
+   * 
+ * + * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; + * @return The desiredDatabaseEncryption. + */ + @java.lang.Override + public com.google.container.v1.DatabaseEncryption getDesiredDatabaseEncryption() { + return desiredDatabaseEncryption_ == null ? com.google.container.v1.DatabaseEncryption.getDefaultInstance() : desiredDatabaseEncryption_; + } + /** + *
+   * Configuration of etcd encryption.
+   * 
+ * + * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; + */ + @java.lang.Override + public com.google.container.v1.DatabaseEncryptionOrBuilder getDesiredDatabaseEncryptionOrBuilder() { + return desiredDatabaseEncryption_ == null ? com.google.container.v1.DatabaseEncryption.getDefaultInstance() : desiredDatabaseEncryption_; + } + + public static final int DESIRED_WORKLOAD_IDENTITY_CONFIG_FIELD_NUMBER = 47; + private com.google.container.v1.WorkloadIdentityConfig desiredWorkloadIdentityConfig_; + /** + *
+   * Configuration for Workload Identity.
+   * 
+ * + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * @return Whether the desiredWorkloadIdentityConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredWorkloadIdentityConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+   * Configuration for Workload Identity.
+   * 
+ * + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * @return The desiredWorkloadIdentityConfig. + */ + @java.lang.Override + public com.google.container.v1.WorkloadIdentityConfig getDesiredWorkloadIdentityConfig() { + return desiredWorkloadIdentityConfig_ == null ? com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance() : desiredWorkloadIdentityConfig_; + } + /** + *
+   * Configuration for Workload Identity.
+   * 
+ * + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + */ + @java.lang.Override + public com.google.container.v1.WorkloadIdentityConfigOrBuilder getDesiredWorkloadIdentityConfigOrBuilder() { + return desiredWorkloadIdentityConfig_ == null ? com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance() : desiredWorkloadIdentityConfig_; + } + + public static final int DESIRED_MESH_CERTIFICATES_FIELD_NUMBER = 67; + private com.google.container.v1.MeshCertificates desiredMeshCertificates_; + /** + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + * @return Whether the desiredMeshCertificates field is set. + */ + @java.lang.Override + public boolean hasDesiredMeshCertificates() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + * @return The desiredMeshCertificates. + */ + @java.lang.Override + public com.google.container.v1.MeshCertificates getDesiredMeshCertificates() { + return desiredMeshCertificates_ == null ? com.google.container.v1.MeshCertificates.getDefaultInstance() : desiredMeshCertificates_; + } + /** + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + */ + @java.lang.Override + public com.google.container.v1.MeshCertificatesOrBuilder getDesiredMeshCertificatesOrBuilder() { + return desiredMeshCertificates_ == null ? com.google.container.v1.MeshCertificates.getDefaultInstance() : desiredMeshCertificates_; + } + + public static final int DESIRED_SHIELDED_NODES_FIELD_NUMBER = 48; + private com.google.container.v1.ShieldedNodes desiredShieldedNodes_; + /** + *
+   * Configuration for Shielded Nodes.
+   * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + * @return Whether the desiredShieldedNodes field is set. + */ + @java.lang.Override + public boolean hasDesiredShieldedNodes() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+   * Configuration for Shielded Nodes.
+   * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + * @return The desiredShieldedNodes. + */ + @java.lang.Override + public com.google.container.v1.ShieldedNodes getDesiredShieldedNodes() { + return desiredShieldedNodes_ == null ? com.google.container.v1.ShieldedNodes.getDefaultInstance() : desiredShieldedNodes_; + } + /** + *
+   * Configuration for Shielded Nodes.
+   * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + */ + @java.lang.Override + public com.google.container.v1.ShieldedNodesOrBuilder getDesiredShieldedNodesOrBuilder() { + return desiredShieldedNodes_ == null ? com.google.container.v1.ShieldedNodes.getDefaultInstance() : desiredShieldedNodes_; + } + + public static final int DESIRED_COST_MANAGEMENT_CONFIG_FIELD_NUMBER = 49; + private com.google.container.v1.CostManagementConfig desiredCostManagementConfig_; + /** + *
+   * The desired configuration for the fine-grained cost management feature.
+   * 
+ * + * .google.container.v1.CostManagementConfig desired_cost_management_config = 49; + * @return Whether the desiredCostManagementConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredCostManagementConfig() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+   * The desired configuration for the fine-grained cost management feature.
+   * 
+ * + * .google.container.v1.CostManagementConfig desired_cost_management_config = 49; + * @return The desiredCostManagementConfig. + */ + @java.lang.Override + public com.google.container.v1.CostManagementConfig getDesiredCostManagementConfig() { + return desiredCostManagementConfig_ == null ? com.google.container.v1.CostManagementConfig.getDefaultInstance() : desiredCostManagementConfig_; + } + /** + *
+   * The desired configuration for the fine-grained cost management feature.
+   * 
+ * + * .google.container.v1.CostManagementConfig desired_cost_management_config = 49; + */ + @java.lang.Override + public com.google.container.v1.CostManagementConfigOrBuilder getDesiredCostManagementConfigOrBuilder() { + return desiredCostManagementConfig_ == null ? com.google.container.v1.CostManagementConfig.getDefaultInstance() : desiredCostManagementConfig_; + } + + public static final int DESIRED_DNS_CONFIG_FIELD_NUMBER = 53; + private com.google.container.v1.DNSConfig desiredDnsConfig_; + /** + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + * @return Whether the desiredDnsConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredDnsConfig() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + * @return The desiredDnsConfig. + */ + @java.lang.Override + public com.google.container.v1.DNSConfig getDesiredDnsConfig() { + return desiredDnsConfig_ == null ? com.google.container.v1.DNSConfig.getDefaultInstance() : desiredDnsConfig_; + } + /** + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + */ + @java.lang.Override + public com.google.container.v1.DNSConfigOrBuilder getDesiredDnsConfigOrBuilder() { + return desiredDnsConfig_ == null ? com.google.container.v1.DNSConfig.getDefaultInstance() : desiredDnsConfig_; + } + + public static final int DESIRED_NODE_POOL_AUTOSCALING_FIELD_NUMBER = 9; + private com.google.container.v1.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.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + * @return Whether the desiredNodePoolAutoscaling field is set. + */ + @java.lang.Override + public boolean hasDesiredNodePoolAutoscaling() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+   * Autoscaler configuration for the node pool specified in
+   * desired_node_pool_id. If there is only one pool in the
+   * cluster and desired_node_pool_id is not provided then
+   * the change applies to that single node pool.
+   * 
+ * + * .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + * @return The desiredNodePoolAutoscaling. + */ + @java.lang.Override + public com.google.container.v1.NodePoolAutoscaling getDesiredNodePoolAutoscaling() { + return desiredNodePoolAutoscaling_ == null ? com.google.container.v1.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.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + @java.lang.Override + public com.google.container.v1.NodePoolAutoscalingOrBuilder getDesiredNodePoolAutoscalingOrBuilder() { + return desiredNodePoolAutoscaling_ == null ? com.google.container.v1.NodePoolAutoscaling.getDefaultInstance() : desiredNodePoolAutoscaling_; + } + + public static final int DESIRED_LOCATIONS_FIELD_NUMBER = 10; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList desiredLocations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * 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.v1.MasterAuthorizedNetworksConfig desiredMasterAuthorizedNetworksConfig_; + /** + *
+   * The desired configuration options for master authorized networks feature.
+   * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * @return Whether the desiredMasterAuthorizedNetworksConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredMasterAuthorizedNetworksConfig() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + *
+   * The desired configuration options for master authorized networks feature.
+   * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * @return The desiredMasterAuthorizedNetworksConfig. + */ + @java.lang.Override + public com.google.container.v1.MasterAuthorizedNetworksConfig getDesiredMasterAuthorizedNetworksConfig() { + return desiredMasterAuthorizedNetworksConfig_ == null ? com.google.container.v1.MasterAuthorizedNetworksConfig.getDefaultInstance() : desiredMasterAuthorizedNetworksConfig_; + } + /** + *
+   * The desired configuration options for master authorized networks feature.
+   * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + @java.lang.Override + public com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder getDesiredMasterAuthorizedNetworksConfigOrBuilder() { + return desiredMasterAuthorizedNetworksConfig_ == null ? com.google.container.v1.MasterAuthorizedNetworksConfig.getDefaultInstance() : desiredMasterAuthorizedNetworksConfig_; + } + + public static final int DESIRED_CLUSTER_AUTOSCALING_FIELD_NUMBER = 15; + private com.google.container.v1.ClusterAutoscaling desiredClusterAutoscaling_; + /** + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; + * @return Whether the desiredClusterAutoscaling field is set. + */ + @java.lang.Override + public boolean hasDesiredClusterAutoscaling() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; + * @return The desiredClusterAutoscaling. + */ + @java.lang.Override + public com.google.container.v1.ClusterAutoscaling getDesiredClusterAutoscaling() { + return desiredClusterAutoscaling_ == null ? com.google.container.v1.ClusterAutoscaling.getDefaultInstance() : desiredClusterAutoscaling_; + } + /** + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + @java.lang.Override + public com.google.container.v1.ClusterAutoscalingOrBuilder getDesiredClusterAutoscalingOrBuilder() { + return desiredClusterAutoscaling_ == null ? com.google.container.v1.ClusterAutoscaling.getDefaultInstance() : desiredClusterAutoscaling_; + } + + public static final int DESIRED_BINARY_AUTHORIZATION_FIELD_NUMBER = 16; + private com.google.container.v1.BinaryAuthorization desiredBinaryAuthorization_; + /** + *
+   * The desired configuration options for the Binary Authorization feature.
+   * 
+ * + * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; + * @return Whether the desiredBinaryAuthorization field is set. + */ + @java.lang.Override + public boolean hasDesiredBinaryAuthorization() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + *
+   * The desired configuration options for the Binary Authorization feature.
+   * 
+ * + * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; + * @return The desiredBinaryAuthorization. + */ + @java.lang.Override + public com.google.container.v1.BinaryAuthorization getDesiredBinaryAuthorization() { + return desiredBinaryAuthorization_ == null ? com.google.container.v1.BinaryAuthorization.getDefaultInstance() : desiredBinaryAuthorization_; + } + /** + *
+   * The desired configuration options for the Binary Authorization feature.
+   * 
+ * + * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; + */ + @java.lang.Override + public com.google.container.v1.BinaryAuthorizationOrBuilder getDesiredBinaryAuthorizationOrBuilder() { + return desiredBinaryAuthorization_ == null ? com.google.container.v1.BinaryAuthorization.getDefaultInstance() : desiredBinaryAuthorization_; + } + + public static final int DESIRED_LOGGING_SERVICE_FIELD_NUMBER = 19; + @SuppressWarnings("serial") + 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.v1.ResourceUsageExportConfig desiredResourceUsageExportConfig_; + /** + *
+   * The desired configuration for exporting resource usage.
+   * 
+ * + * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * @return Whether the desiredResourceUsageExportConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredResourceUsageExportConfig() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + *
+   * The desired configuration for exporting resource usage.
+   * 
+ * + * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * @return The desiredResourceUsageExportConfig. + */ + @java.lang.Override + public com.google.container.v1.ResourceUsageExportConfig getDesiredResourceUsageExportConfig() { + return desiredResourceUsageExportConfig_ == null ? com.google.container.v1.ResourceUsageExportConfig.getDefaultInstance() : desiredResourceUsageExportConfig_; + } + /** + *
+   * The desired configuration for exporting resource usage.
+   * 
+ * + * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + */ + @java.lang.Override + public com.google.container.v1.ResourceUsageExportConfigOrBuilder getDesiredResourceUsageExportConfigOrBuilder() { + return desiredResourceUsageExportConfig_ == null ? com.google.container.v1.ResourceUsageExportConfig.getDefaultInstance() : desiredResourceUsageExportConfig_; + } + + public static final int DESIRED_VERTICAL_POD_AUTOSCALING_FIELD_NUMBER = 22; + private com.google.container.v1.VerticalPodAutoscaling desiredVerticalPodAutoscaling_; + /** + *
+   * Cluster-level Vertical Pod Autoscaling configuration.
+   * 
+ * + * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * @return Whether the desiredVerticalPodAutoscaling field is set. + */ + @java.lang.Override + public boolean hasDesiredVerticalPodAutoscaling() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + *
+   * Cluster-level Vertical Pod Autoscaling configuration.
+   * 
+ * + * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * @return The desiredVerticalPodAutoscaling. + */ + @java.lang.Override + public com.google.container.v1.VerticalPodAutoscaling getDesiredVerticalPodAutoscaling() { + return desiredVerticalPodAutoscaling_ == null ? com.google.container.v1.VerticalPodAutoscaling.getDefaultInstance() : desiredVerticalPodAutoscaling_; + } + /** + *
+   * Cluster-level Vertical Pod Autoscaling configuration.
+   * 
+ * + * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + */ + @java.lang.Override + public com.google.container.v1.VerticalPodAutoscalingOrBuilder getDesiredVerticalPodAutoscalingOrBuilder() { + return desiredVerticalPodAutoscaling_ == null ? com.google.container.v1.VerticalPodAutoscaling.getDefaultInstance() : desiredVerticalPodAutoscaling_; + } + + public static final int DESIRED_PRIVATE_CLUSTER_CONFIG_FIELD_NUMBER = 25; + private com.google.container.v1.PrivateClusterConfig desiredPrivateClusterConfig_; + /** + *
+   * The desired private cluster configuration.
+   * 
+ * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + * @return Whether the desiredPrivateClusterConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredPrivateClusterConfig() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + *
+   * The desired private cluster configuration.
+   * 
+ * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + * @return The desiredPrivateClusterConfig. + */ + @java.lang.Override + public com.google.container.v1.PrivateClusterConfig getDesiredPrivateClusterConfig() { + return desiredPrivateClusterConfig_ == null ? com.google.container.v1.PrivateClusterConfig.getDefaultInstance() : desiredPrivateClusterConfig_; + } + /** + *
+   * The desired private cluster configuration.
+   * 
+ * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + */ + @java.lang.Override + public com.google.container.v1.PrivateClusterConfigOrBuilder getDesiredPrivateClusterConfigOrBuilder() { + return desiredPrivateClusterConfig_ == null ? com.google.container.v1.PrivateClusterConfig.getDefaultInstance() : desiredPrivateClusterConfig_; + } + + public static final int DESIRED_INTRA_NODE_VISIBILITY_CONFIG_FIELD_NUMBER = 26; + private com.google.container.v1.IntraNodeVisibilityConfig desiredIntraNodeVisibilityConfig_; + /** + *
+   * The desired config of Intra-node visibility.
+   * 
+ * + * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * @return Whether the desiredIntraNodeVisibilityConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredIntraNodeVisibilityConfig() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + *
+   * The desired config of Intra-node visibility.
+   * 
+ * + * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * @return The desiredIntraNodeVisibilityConfig. + */ + @java.lang.Override + public com.google.container.v1.IntraNodeVisibilityConfig getDesiredIntraNodeVisibilityConfig() { + return desiredIntraNodeVisibilityConfig_ == null ? com.google.container.v1.IntraNodeVisibilityConfig.getDefaultInstance() : desiredIntraNodeVisibilityConfig_; + } + /** + *
+   * The desired config of Intra-node visibility.
+   * 
+ * + * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + */ + @java.lang.Override + public com.google.container.v1.IntraNodeVisibilityConfigOrBuilder getDesiredIntraNodeVisibilityConfigOrBuilder() { + return desiredIntraNodeVisibilityConfig_ == null ? com.google.container.v1.IntraNodeVisibilityConfig.getDefaultInstance() : desiredIntraNodeVisibilityConfig_; + } + + public static final int DESIRED_DEFAULT_SNAT_STATUS_FIELD_NUMBER = 28; + private com.google.container.v1.DefaultSnatStatus desiredDefaultSnatStatus_; + /** + *
+   * The desired status of whether to disable default sNAT for this cluster.
+   * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + * @return Whether the desiredDefaultSnatStatus field is set. + */ + @java.lang.Override + public boolean hasDesiredDefaultSnatStatus() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + *
+   * The desired status of whether to disable default sNAT for this cluster.
+   * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + * @return The desiredDefaultSnatStatus. + */ + @java.lang.Override + public com.google.container.v1.DefaultSnatStatus getDesiredDefaultSnatStatus() { + return desiredDefaultSnatStatus_ == null ? com.google.container.v1.DefaultSnatStatus.getDefaultInstance() : desiredDefaultSnatStatus_; + } + /** + *
+   * The desired status of whether to disable default sNAT for this cluster.
+   * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + */ + @java.lang.Override + public com.google.container.v1.DefaultSnatStatusOrBuilder getDesiredDefaultSnatStatusOrBuilder() { + return desiredDefaultSnatStatus_ == null ? com.google.container.v1.DefaultSnatStatus.getDefaultInstance() : desiredDefaultSnatStatus_; + } + + public static final int DESIRED_RELEASE_CHANNEL_FIELD_NUMBER = 31; + private com.google.container.v1.ReleaseChannel desiredReleaseChannel_; + /** + *
+   * The desired release channel configuration.
+   * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + * @return Whether the desiredReleaseChannel field is set. + */ + @java.lang.Override + public boolean hasDesiredReleaseChannel() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + *
+   * The desired release channel configuration.
+   * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + * @return The desiredReleaseChannel. + */ + @java.lang.Override + public com.google.container.v1.ReleaseChannel getDesiredReleaseChannel() { + return desiredReleaseChannel_ == null ? com.google.container.v1.ReleaseChannel.getDefaultInstance() : desiredReleaseChannel_; + } + /** + *
+   * The desired release channel configuration.
+   * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + */ + @java.lang.Override + public com.google.container.v1.ReleaseChannelOrBuilder getDesiredReleaseChannelOrBuilder() { + return desiredReleaseChannel_ == null ? com.google.container.v1.ReleaseChannel.getDefaultInstance() : desiredReleaseChannel_; + } + + public static final int DESIRED_L4ILB_SUBSETTING_CONFIG_FIELD_NUMBER = 39; + private com.google.container.v1.ILBSubsettingConfig desiredL4IlbSubsettingConfig_; + /** + *
+   * The desired L4 Internal Load Balancer Subsetting configuration.
+   * 
+ * + * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + * @return Whether the desiredL4ilbSubsettingConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredL4IlbSubsettingConfig() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + *
+   * The desired L4 Internal Load Balancer Subsetting configuration.
+   * 
+ * + * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + * @return The desiredL4ilbSubsettingConfig. + */ + @java.lang.Override + public com.google.container.v1.ILBSubsettingConfig getDesiredL4IlbSubsettingConfig() { + return desiredL4IlbSubsettingConfig_ == null ? com.google.container.v1.ILBSubsettingConfig.getDefaultInstance() : desiredL4IlbSubsettingConfig_; + } + /** + *
+   * The desired L4 Internal Load Balancer Subsetting configuration.
+   * 
+ * + * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + */ + @java.lang.Override + public com.google.container.v1.ILBSubsettingConfigOrBuilder getDesiredL4IlbSubsettingConfigOrBuilder() { + return desiredL4IlbSubsettingConfig_ == null ? com.google.container.v1.ILBSubsettingConfig.getDefaultInstance() : desiredL4IlbSubsettingConfig_; + } + + public static final int DESIRED_DATAPATH_PROVIDER_FIELD_NUMBER = 50; + private int desiredDatapathProvider_ = 0; + /** + *
+   * The desired datapath provider for the cluster.
+   * 
+ * + * .google.container.v1.DatapathProvider desired_datapath_provider = 50; + * @return The enum numeric value on the wire for desiredDatapathProvider. + */ + @java.lang.Override public int getDesiredDatapathProviderValue() { + return desiredDatapathProvider_; + } + /** + *
+   * The desired datapath provider for the cluster.
+   * 
+ * + * .google.container.v1.DatapathProvider desired_datapath_provider = 50; + * @return The desiredDatapathProvider. + */ + @java.lang.Override public com.google.container.v1.DatapathProvider getDesiredDatapathProvider() { + com.google.container.v1.DatapathProvider result = com.google.container.v1.DatapathProvider.forNumber(desiredDatapathProvider_); + return result == null ? com.google.container.v1.DatapathProvider.UNRECOGNIZED : result; + } + + public static final int DESIRED_PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER = 51; + private int desiredPrivateIpv6GoogleAccess_ = 0; + /** + *
+   * The desired state of IPv6 connectivity to Google Services.
+   * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + * @return The enum numeric value on the wire for desiredPrivateIpv6GoogleAccess. + */ + @java.lang.Override public int getDesiredPrivateIpv6GoogleAccessValue() { + return desiredPrivateIpv6GoogleAccess_; + } + /** + *
+   * The desired state of IPv6 connectivity to Google Services.
+   * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + * @return The desiredPrivateIpv6GoogleAccess. + */ + @java.lang.Override public com.google.container.v1.PrivateIPv6GoogleAccess getDesiredPrivateIpv6GoogleAccess() { + com.google.container.v1.PrivateIPv6GoogleAccess result = com.google.container.v1.PrivateIPv6GoogleAccess.forNumber(desiredPrivateIpv6GoogleAccess_); + return result == null ? com.google.container.v1.PrivateIPv6GoogleAccess.UNRECOGNIZED : result; + } + + public static final int DESIRED_NOTIFICATION_CONFIG_FIELD_NUMBER = 55; + private com.google.container.v1.NotificationConfig desiredNotificationConfig_; + /** + *
+   * The desired notification configuration.
+   * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + * @return Whether the desiredNotificationConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredNotificationConfig() { + return ((bitField0_ & 0x00040000) != 0); + } + /** + *
+   * The desired notification configuration.
+   * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + * @return The desiredNotificationConfig. + */ + @java.lang.Override + public com.google.container.v1.NotificationConfig getDesiredNotificationConfig() { + return desiredNotificationConfig_ == null ? com.google.container.v1.NotificationConfig.getDefaultInstance() : desiredNotificationConfig_; + } + /** + *
+   * The desired notification configuration.
+   * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + */ + @java.lang.Override + public com.google.container.v1.NotificationConfigOrBuilder getDesiredNotificationConfigOrBuilder() { + return desiredNotificationConfig_ == null ? com.google.container.v1.NotificationConfig.getDefaultInstance() : desiredNotificationConfig_; + } + + public static final int DESIRED_AUTHENTICATOR_GROUPS_CONFIG_FIELD_NUMBER = 63; + private com.google.container.v1.AuthenticatorGroupsConfig desiredAuthenticatorGroupsConfig_; + /** + *
+   * The desired authenticator groups config for the cluster.
+   * 
+ * + * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * @return Whether the desiredAuthenticatorGroupsConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredAuthenticatorGroupsConfig() { + return ((bitField0_ & 0x00080000) != 0); + } + /** + *
+   * The desired authenticator groups config for the cluster.
+   * 
+ * + * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * @return The desiredAuthenticatorGroupsConfig. + */ + @java.lang.Override + public com.google.container.v1.AuthenticatorGroupsConfig getDesiredAuthenticatorGroupsConfig() { + return desiredAuthenticatorGroupsConfig_ == null ? com.google.container.v1.AuthenticatorGroupsConfig.getDefaultInstance() : desiredAuthenticatorGroupsConfig_; + } + /** + *
+   * The desired authenticator groups config for the cluster.
+   * 
+ * + * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + */ + @java.lang.Override + public com.google.container.v1.AuthenticatorGroupsConfigOrBuilder getDesiredAuthenticatorGroupsConfigOrBuilder() { + return desiredAuthenticatorGroupsConfig_ == null ? com.google.container.v1.AuthenticatorGroupsConfig.getDefaultInstance() : desiredAuthenticatorGroupsConfig_; + } + + public static final int DESIRED_LOGGING_CONFIG_FIELD_NUMBER = 64; + private com.google.container.v1.LoggingConfig desiredLoggingConfig_; + /** + *
+   * The desired logging configuration.
+   * 
+ * + * .google.container.v1.LoggingConfig desired_logging_config = 64; + * @return Whether the desiredLoggingConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredLoggingConfig() { + return ((bitField0_ & 0x00100000) != 0); + } + /** + *
+   * The desired logging configuration.
+   * 
+ * + * .google.container.v1.LoggingConfig desired_logging_config = 64; + * @return The desiredLoggingConfig. + */ + @java.lang.Override + public com.google.container.v1.LoggingConfig getDesiredLoggingConfig() { + return desiredLoggingConfig_ == null ? com.google.container.v1.LoggingConfig.getDefaultInstance() : desiredLoggingConfig_; + } + /** + *
+   * The desired logging configuration.
+   * 
+ * + * .google.container.v1.LoggingConfig desired_logging_config = 64; + */ + @java.lang.Override + public com.google.container.v1.LoggingConfigOrBuilder getDesiredLoggingConfigOrBuilder() { + return desiredLoggingConfig_ == null ? com.google.container.v1.LoggingConfig.getDefaultInstance() : desiredLoggingConfig_; + } + + public static final int DESIRED_MONITORING_CONFIG_FIELD_NUMBER = 65; + private com.google.container.v1.MonitoringConfig desiredMonitoringConfig_; + /** + *
+   * The desired monitoring configuration.
+   * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + * @return Whether the desiredMonitoringConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredMonitoringConfig() { + return ((bitField0_ & 0x00200000) != 0); + } + /** + *
+   * The desired monitoring configuration.
+   * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + * @return The desiredMonitoringConfig. + */ + @java.lang.Override + public com.google.container.v1.MonitoringConfig getDesiredMonitoringConfig() { + return desiredMonitoringConfig_ == null ? com.google.container.v1.MonitoringConfig.getDefaultInstance() : desiredMonitoringConfig_; + } + /** + *
+   * The desired monitoring configuration.
+   * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + */ + @java.lang.Override + public com.google.container.v1.MonitoringConfigOrBuilder getDesiredMonitoringConfigOrBuilder() { + return desiredMonitoringConfig_ == null ? com.google.container.v1.MonitoringConfig.getDefaultInstance() : desiredMonitoringConfig_; + } + + public static final int DESIRED_IDENTITY_SERVICE_CONFIG_FIELD_NUMBER = 66; + private com.google.container.v1.IdentityServiceConfig desiredIdentityServiceConfig_; + /** + *
+   * The desired Identity Service component configuration.
+   * 
+ * + * .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; + * @return Whether the desiredIdentityServiceConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredIdentityServiceConfig() { + return ((bitField0_ & 0x00400000) != 0); + } + /** + *
+   * The desired Identity Service component configuration.
+   * 
+ * + * .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; + * @return The desiredIdentityServiceConfig. + */ + @java.lang.Override + public com.google.container.v1.IdentityServiceConfig getDesiredIdentityServiceConfig() { + return desiredIdentityServiceConfig_ == null ? com.google.container.v1.IdentityServiceConfig.getDefaultInstance() : desiredIdentityServiceConfig_; + } + /** + *
+   * The desired Identity Service component configuration.
+   * 
+ * + * .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; + */ + @java.lang.Override + public com.google.container.v1.IdentityServiceConfigOrBuilder getDesiredIdentityServiceConfigOrBuilder() { + return desiredIdentityServiceConfig_ == null ? com.google.container.v1.IdentityServiceConfig.getDefaultInstance() : desiredIdentityServiceConfig_; + } + + public static final int DESIRED_SERVICE_EXTERNAL_IPS_CONFIG_FIELD_NUMBER = 60; + private com.google.container.v1.ServiceExternalIPsConfig desiredServiceExternalIpsConfig_; + /** + *
+   * ServiceExternalIPsConfig specifies the config for the use of Services with
+   * ExternalIPs field.
+   * 
+ * + * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + * @return Whether the desiredServiceExternalIpsConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredServiceExternalIpsConfig() { + return ((bitField0_ & 0x00800000) != 0); + } + /** + *
+   * ServiceExternalIPsConfig specifies the config for the use of Services with
+   * ExternalIPs field.
+   * 
+ * + * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + * @return The desiredServiceExternalIpsConfig. + */ + @java.lang.Override + public com.google.container.v1.ServiceExternalIPsConfig getDesiredServiceExternalIpsConfig() { + return desiredServiceExternalIpsConfig_ == null ? com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance() : desiredServiceExternalIpsConfig_; + } + /** + *
+   * ServiceExternalIPsConfig specifies the config for the use of Services with
+   * ExternalIPs field.
+   * 
+ * + * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + */ + @java.lang.Override + public com.google.container.v1.ServiceExternalIPsConfigOrBuilder getDesiredServiceExternalIpsConfigOrBuilder() { + return desiredServiceExternalIpsConfig_ == null ? com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance() : desiredServiceExternalIpsConfig_; + } + + public static final int DESIRED_ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER = 71; + private boolean desiredEnablePrivateEndpoint_ = false; + /** + *
+   * Enable/Disable private endpoint for the cluster's master.
+   * 
+ * + * optional bool desired_enable_private_endpoint = 71; + * @return Whether the desiredEnablePrivateEndpoint field is set. + */ + @java.lang.Override + public boolean hasDesiredEnablePrivateEndpoint() { + return ((bitField0_ & 0x01000000) != 0); + } + /** + *
+   * Enable/Disable private endpoint for the cluster's master.
+   * 
+ * + * optional bool desired_enable_private_endpoint = 71; + * @return The desiredEnablePrivateEndpoint. + */ + @java.lang.Override + public boolean getDesiredEnablePrivateEndpoint() { + return desiredEnablePrivateEndpoint_; + } + + public static final int DESIRED_MASTER_VERSION_FIELD_NUMBER = 100; + @SuppressWarnings("serial") + private volatile java.lang.Object desiredMasterVersion_ = ""; + /** + *
+   * The Kubernetes version to change the master to.
+   *
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   *
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
+   * 
+ * + * string desired_master_version = 100; + * @return The desiredMasterVersion. + */ + @java.lang.Override + public java.lang.String getDesiredMasterVersion() { + java.lang.Object ref = desiredMasterVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + desiredMasterVersion_ = s; + return s; + } + } + /** + *
+   * The Kubernetes version to change the master to.
+   *
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   *
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
+   * 
+ * + * string desired_master_version = 100; + * @return The 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_GCFS_CONFIG_FIELD_NUMBER = 109; + private com.google.container.v1.GcfsConfig desiredGcfsConfig_; + /** + *
+   * The desired GCFS config for the cluster
+   * 
+ * + * .google.container.v1.GcfsConfig desired_gcfs_config = 109; + * @return Whether the desiredGcfsConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredGcfsConfig() { + return ((bitField0_ & 0x02000000) != 0); + } + /** + *
+   * The desired GCFS config for the cluster
+   * 
+ * + * .google.container.v1.GcfsConfig desired_gcfs_config = 109; + * @return The desiredGcfsConfig. + */ + @java.lang.Override + public com.google.container.v1.GcfsConfig getDesiredGcfsConfig() { + return desiredGcfsConfig_ == null ? com.google.container.v1.GcfsConfig.getDefaultInstance() : desiredGcfsConfig_; + } + /** + *
+   * The desired GCFS config for the cluster
+   * 
+ * + * .google.container.v1.GcfsConfig desired_gcfs_config = 109; + */ + @java.lang.Override + public com.google.container.v1.GcfsConfigOrBuilder getDesiredGcfsConfigOrBuilder() { + return desiredGcfsConfig_ == null ? com.google.container.v1.GcfsConfig.getDefaultInstance() : desiredGcfsConfig_; + } + + public static final int DESIRED_NODE_POOL_AUTO_CONFIG_NETWORK_TAGS_FIELD_NUMBER = 110; + private com.google.container.v1.NetworkTags desiredNodePoolAutoConfigNetworkTags_; + /** + *
+   * The desired network tags that apply to all auto-provisioned node pools
+   * in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; + * @return Whether the desiredNodePoolAutoConfigNetworkTags field is set. + */ + @java.lang.Override + public boolean hasDesiredNodePoolAutoConfigNetworkTags() { + return ((bitField0_ & 0x04000000) != 0); + } + /** + *
+   * The desired network tags that apply to all auto-provisioned node pools
+   * in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; + * @return The desiredNodePoolAutoConfigNetworkTags. + */ + @java.lang.Override + public com.google.container.v1.NetworkTags getDesiredNodePoolAutoConfigNetworkTags() { + return desiredNodePoolAutoConfigNetworkTags_ == null ? com.google.container.v1.NetworkTags.getDefaultInstance() : desiredNodePoolAutoConfigNetworkTags_; + } + /** + *
+   * The desired network tags that apply to all auto-provisioned node pools
+   * in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; + */ + @java.lang.Override + public com.google.container.v1.NetworkTagsOrBuilder getDesiredNodePoolAutoConfigNetworkTagsOrBuilder() { + return desiredNodePoolAutoConfigNetworkTags_ == null ? com.google.container.v1.NetworkTags.getDefaultInstance() : desiredNodePoolAutoConfigNetworkTags_; + } + + public static final int DESIRED_GATEWAY_API_CONFIG_FIELD_NUMBER = 114; + private com.google.container.v1.GatewayAPIConfig desiredGatewayApiConfig_; + /** + *
+   * The desired config of Gateway API on this cluster.
+   * 
+ * + * .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; + * @return Whether the desiredGatewayApiConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredGatewayApiConfig() { + return ((bitField0_ & 0x08000000) != 0); + } + /** + *
+   * The desired config of Gateway API on this cluster.
+   * 
+ * + * .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; + * @return The desiredGatewayApiConfig. + */ + @java.lang.Override + public com.google.container.v1.GatewayAPIConfig getDesiredGatewayApiConfig() { + return desiredGatewayApiConfig_ == null ? com.google.container.v1.GatewayAPIConfig.getDefaultInstance() : desiredGatewayApiConfig_; + } + /** + *
+   * The desired config of Gateway API on this cluster.
+   * 
+ * + * .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; + */ + @java.lang.Override + public com.google.container.v1.GatewayAPIConfigOrBuilder getDesiredGatewayApiConfigOrBuilder() { + return desiredGatewayApiConfig_ == null ? com.google.container.v1.GatewayAPIConfig.getDefaultInstance() : desiredGatewayApiConfig_; + } + + public static final int ETAG_FIELD_NUMBER = 115; + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + /** + *
+   * The current etag of the cluster.
+   * If an etag is provided and does not match the current etag of the cluster,
+   * update will be blocked and an ABORTED error will be returned.
+   * 
+ * + * string etag = 115; + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + /** + *
+   * The current etag of the cluster.
+   * If an etag is provided and does not match the current etag of the cluster,
+   * update will be blocked and an ABORTED error will be returned.
+   * 
+ * + * string etag = 115; + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESIRED_NODE_POOL_LOGGING_CONFIG_FIELD_NUMBER = 116; + private com.google.container.v1.NodePoolLoggingConfig desiredNodePoolLoggingConfig_; + /** + *
+   * The desired node pool logging configuration defaults for the cluster.
+   * 
+ * + * .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; + * @return Whether the desiredNodePoolLoggingConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredNodePoolLoggingConfig() { + return ((bitField0_ & 0x10000000) != 0); + } + /** + *
+   * The desired node pool logging configuration defaults for the cluster.
+   * 
+ * + * .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; + * @return The desiredNodePoolLoggingConfig. + */ + @java.lang.Override + public com.google.container.v1.NodePoolLoggingConfig getDesiredNodePoolLoggingConfig() { + return desiredNodePoolLoggingConfig_ == null ? com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance() : desiredNodePoolLoggingConfig_; + } + /** + *
+   * The desired node pool logging configuration defaults for the cluster.
+   * 
+ * + * .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; + */ + @java.lang.Override + public com.google.container.v1.NodePoolLoggingConfigOrBuilder getDesiredNodePoolLoggingConfigOrBuilder() { + return desiredNodePoolLoggingConfig_ == null ? com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance() : desiredNodePoolLoggingConfig_; + } + + public static final int DESIRED_FLEET_FIELD_NUMBER = 117; + private com.google.container.v1.Fleet desiredFleet_; + /** + *
+   * The desired fleet configuration for the cluster.
+   * 
+ * + * .google.container.v1.Fleet desired_fleet = 117; + * @return Whether the desiredFleet field is set. + */ + @java.lang.Override + public boolean hasDesiredFleet() { + return ((bitField0_ & 0x20000000) != 0); + } + /** + *
+   * The desired fleet configuration for the cluster.
+   * 
+ * + * .google.container.v1.Fleet desired_fleet = 117; + * @return The desiredFleet. + */ + @java.lang.Override + public com.google.container.v1.Fleet getDesiredFleet() { + return desiredFleet_ == null ? com.google.container.v1.Fleet.getDefaultInstance() : desiredFleet_; + } + /** + *
+   * The desired fleet configuration for the cluster.
+   * 
+ * + * .google.container.v1.Fleet desired_fleet = 117; + */ + @java.lang.Override + public com.google.container.v1.FleetOrBuilder getDesiredFleetOrBuilder() { + return desiredFleet_ == null ? com.google.container.v1.Fleet.getDefaultInstance() : desiredFleet_; + } + + public static final int DESIRED_STACK_TYPE_FIELD_NUMBER = 119; + private int desiredStackType_ = 0; + /** + *
+   * The desired stack type of the cluster.
+   * If a stack type is provided and does not match the current stack type of
+   * the cluster, update will attempt to change the stack type to the new type.
+   * 
+ * + * .google.container.v1.StackType desired_stack_type = 119; + * @return The enum numeric value on the wire for desiredStackType. + */ + @java.lang.Override public int getDesiredStackTypeValue() { + return desiredStackType_; + } + /** + *
+   * The desired stack type of the cluster.
+   * If a stack type is provided and does not match the current stack type of
+   * the cluster, update will attempt to change the stack type to the new type.
+   * 
+ * + * .google.container.v1.StackType desired_stack_type = 119; + * @return The desiredStackType. + */ + @java.lang.Override public com.google.container.v1.StackType getDesiredStackType() { + com.google.container.v1.StackType result = com.google.container.v1.StackType.forNumber(desiredStackType_); + return result == null ? com.google.container.v1.StackType.UNRECOGNIZED : result; + } + + public static final int ADDITIONAL_POD_RANGES_CONFIG_FIELD_NUMBER = 120; + private com.google.container.v1.AdditionalPodRangesConfig additionalPodRangesConfig_; + /** + *
+   * The additional pod ranges to be added to the cluster. These pod ranges
+   * can be used by node pools to allocate pod IPs.
+   * 
+ * + * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; + * @return Whether the additionalPodRangesConfig field is set. + */ + @java.lang.Override + public boolean hasAdditionalPodRangesConfig() { + return ((bitField0_ & 0x40000000) != 0); + } + /** + *
+   * The additional pod ranges to be added to the cluster. These pod ranges
+   * can be used by node pools to allocate pod IPs.
+   * 
+ * + * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; + * @return The additionalPodRangesConfig. + */ + @java.lang.Override + public com.google.container.v1.AdditionalPodRangesConfig getAdditionalPodRangesConfig() { + return additionalPodRangesConfig_ == null ? com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance() : additionalPodRangesConfig_; + } + /** + *
+   * The additional pod ranges to be added to the cluster. These pod ranges
+   * can be used by node pools to allocate pod IPs.
+   * 
+ * + * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; + */ + @java.lang.Override + public com.google.container.v1.AdditionalPodRangesConfigOrBuilder getAdditionalPodRangesConfigOrBuilder() { + return additionalPodRangesConfig_ == null ? com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance() : additionalPodRangesConfig_; + } + + public static final int REMOVED_ADDITIONAL_POD_RANGES_CONFIG_FIELD_NUMBER = 121; + private com.google.container.v1.AdditionalPodRangesConfig removedAdditionalPodRangesConfig_; + /** + *
+   * The additional pod ranges that are to be removed from the cluster.
+   * The pod ranges specified here must have been specified earlier in the
+   * 'additional_pod_ranges_config' argument.
+   * 
+ * + * .google.container.v1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; + * @return Whether the removedAdditionalPodRangesConfig field is set. + */ + @java.lang.Override + public boolean hasRemovedAdditionalPodRangesConfig() { + return ((bitField0_ & 0x80000000) != 0); + } + /** + *
+   * The additional pod ranges that are to be removed from the cluster.
+   * The pod ranges specified here must have been specified earlier in the
+   * 'additional_pod_ranges_config' argument.
+   * 
+ * + * .google.container.v1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; + * @return The removedAdditionalPodRangesConfig. + */ + @java.lang.Override + public com.google.container.v1.AdditionalPodRangesConfig getRemovedAdditionalPodRangesConfig() { + return removedAdditionalPodRangesConfig_ == null ? com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance() : removedAdditionalPodRangesConfig_; + } + /** + *
+   * The additional pod ranges that are to be removed from the cluster.
+   * The pod ranges specified here must have been specified earlier in the
+   * 'additional_pod_ranges_config' argument.
+   * 
+ * + * .google.container.v1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; + */ + @java.lang.Override + public com.google.container.v1.AdditionalPodRangesConfigOrBuilder getRemovedAdditionalPodRangesConfigOrBuilder() { + return removedAdditionalPodRangesConfig_ == null ? com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance() : removedAdditionalPodRangesConfig_; + } + + public static final int ENABLE_K8S_BETA_APIS_FIELD_NUMBER = 122; + private com.google.container.v1.K8sBetaAPIConfig enableK8SBetaApis_; + /** + *
+   * Kubernetes open source beta apis enabled on the cluster. Only beta apis
+   * 
+ * + * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; + * @return Whether the enableK8sBetaApis field is set. + */ + @java.lang.Override + public boolean hasEnableK8SBetaApis() { + return ((bitField1_ & 0x00000001) != 0); + } + /** + *
+   * Kubernetes open source beta apis enabled on the cluster. Only beta apis
+   * 
+ * + * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; + * @return The enableK8sBetaApis. + */ + @java.lang.Override + public com.google.container.v1.K8sBetaAPIConfig getEnableK8SBetaApis() { + return enableK8SBetaApis_ == null ? com.google.container.v1.K8sBetaAPIConfig.getDefaultInstance() : enableK8SBetaApis_; + } + /** + *
+   * Kubernetes open source beta apis enabled on the cluster. Only beta apis
+   * 
+ * + * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; + */ + @java.lang.Override + public com.google.container.v1.K8sBetaAPIConfigOrBuilder getEnableK8SBetaApisOrBuilder() { + return enableK8SBetaApis_ == null ? com.google.container.v1.K8sBetaAPIConfig.getDefaultInstance() : enableK8SBetaApis_; + } + + public static final int DESIRED_SECURITY_POSTURE_CONFIG_FIELD_NUMBER = 124; + private com.google.container.v1.SecurityPostureConfig desiredSecurityPostureConfig_; + /** + *
+   * Enable/Disable Security Posture API features for the cluster.
+   * 
+ * + * .google.container.v1.SecurityPostureConfig desired_security_posture_config = 124; + * @return Whether the desiredSecurityPostureConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredSecurityPostureConfig() { + return ((bitField1_ & 0x00000002) != 0); + } + /** + *
+   * Enable/Disable Security Posture API features for the cluster.
+   * 
+ * + * .google.container.v1.SecurityPostureConfig desired_security_posture_config = 124; + * @return The desiredSecurityPostureConfig. + */ + @java.lang.Override + public com.google.container.v1.SecurityPostureConfig getDesiredSecurityPostureConfig() { + return desiredSecurityPostureConfig_ == null ? com.google.container.v1.SecurityPostureConfig.getDefaultInstance() : desiredSecurityPostureConfig_; + } + /** + *
+   * Enable/Disable Security Posture API features for the cluster.
+   * 
+ * + * .google.container.v1.SecurityPostureConfig desired_security_posture_config = 124; + */ + @java.lang.Override + public com.google.container.v1.SecurityPostureConfigOrBuilder getDesiredSecurityPostureConfigOrBuilder() { + return desiredSecurityPostureConfig_ == null ? com.google.container.v1.SecurityPostureConfig.getDefaultInstance() : desiredSecurityPostureConfig_; + } + + public static final int DESIRED_NETWORK_PERFORMANCE_CONFIG_FIELD_NUMBER = 125; + private com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desiredNetworkPerformanceConfig_; + /** + *
+   * The desired network performance config.
+   * 
+ * + * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; + * @return Whether the desiredNetworkPerformanceConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredNetworkPerformanceConfig() { + return ((bitField1_ & 0x00000004) != 0); + } + /** + *
+   * The desired network performance config.
+   * 
+ * + * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; + * @return The desiredNetworkPerformanceConfig. + */ + @java.lang.Override + public com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig getDesiredNetworkPerformanceConfig() { + return desiredNetworkPerformanceConfig_ == null ? com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.getDefaultInstance() : desiredNetworkPerformanceConfig_; + } + /** + *
+   * The desired network performance config.
+   * 
+ * + * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; + */ + @java.lang.Override + public com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder getDesiredNetworkPerformanceConfigOrBuilder() { + return desiredNetworkPerformanceConfig_ == null ? com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.getDefaultInstance() : desiredNetworkPerformanceConfig_; + } + + public static final int DESIRED_ENABLE_FQDN_NETWORK_POLICY_FIELD_NUMBER = 126; + private boolean desiredEnableFqdnNetworkPolicy_ = false; + /** + *
+   * Enable/Disable FQDN Network Policy for the cluster.
+   * 
+ * + * optional bool desired_enable_fqdn_network_policy = 126; + * @return Whether the desiredEnableFqdnNetworkPolicy field is set. + */ + @java.lang.Override + public boolean hasDesiredEnableFqdnNetworkPolicy() { + return ((bitField1_ & 0x00000008) != 0); + } + /** + *
+   * Enable/Disable FQDN Network Policy for the cluster.
+   * 
+ * + * optional bool desired_enable_fqdn_network_policy = 126; + * @return The desiredEnableFqdnNetworkPolicy. + */ + @java.lang.Override + public boolean getDesiredEnableFqdnNetworkPolicy() { + return desiredEnableFqdnNetworkPolicy_; + } + + public static final int DESIRED_AUTOPILOT_WORKLOAD_POLICY_CONFIG_FIELD_NUMBER = 128; + private com.google.container.v1.WorkloadPolicyConfig desiredAutopilotWorkloadPolicyConfig_; + /** + *
+   * The desired workload policy configuration for the autopilot cluster.
+   * 
+ * + * .google.container.v1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; + * @return Whether the desiredAutopilotWorkloadPolicyConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredAutopilotWorkloadPolicyConfig() { + return ((bitField1_ & 0x00000010) != 0); + } + /** + *
+   * The desired workload policy configuration for the autopilot cluster.
+   * 
+ * + * .google.container.v1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; + * @return The desiredAutopilotWorkloadPolicyConfig. + */ + @java.lang.Override + public com.google.container.v1.WorkloadPolicyConfig getDesiredAutopilotWorkloadPolicyConfig() { + return desiredAutopilotWorkloadPolicyConfig_ == null ? com.google.container.v1.WorkloadPolicyConfig.getDefaultInstance() : desiredAutopilotWorkloadPolicyConfig_; + } + /** + *
+   * The desired workload policy configuration for the autopilot cluster.
+   * 
+ * + * .google.container.v1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; + */ + @java.lang.Override + public com.google.container.v1.WorkloadPolicyConfigOrBuilder getDesiredAutopilotWorkloadPolicyConfigOrBuilder() { + return desiredAutopilotWorkloadPolicyConfig_ == null ? com.google.container.v1.WorkloadPolicyConfig.getDefaultInstance() : desiredAutopilotWorkloadPolicyConfig_; + } + + public static final int DESIRED_K8S_BETA_APIS_FIELD_NUMBER = 131; + private com.google.container.v1.K8sBetaAPIConfig desiredK8SBetaApis_; + /** + *
+   * Desired Beta APIs to be enabled for cluster.
+   * 
+ * + * .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; + * @return Whether the desiredK8sBetaApis field is set. + */ + @java.lang.Override + public boolean hasDesiredK8SBetaApis() { + return ((bitField1_ & 0x00000020) != 0); + } + /** + *
+   * Desired Beta APIs to be enabled for cluster.
+   * 
+ * + * .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; + * @return The desiredK8sBetaApis. + */ + @java.lang.Override + public com.google.container.v1.K8sBetaAPIConfig getDesiredK8SBetaApis() { + return desiredK8SBetaApis_ == null ? com.google.container.v1.K8sBetaAPIConfig.getDefaultInstance() : desiredK8SBetaApis_; + } + /** + *
+   * Desired Beta APIs to be enabled for cluster.
+   * 
+ * + * .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; + */ + @java.lang.Override + public com.google.container.v1.K8sBetaAPIConfigOrBuilder getDesiredK8SBetaApisOrBuilder() { + return desiredK8SBetaApis_ == null ? com.google.container.v1.K8sBetaAPIConfig.getDefaultInstance() : desiredK8SBetaApis_; + } + + public static final int DESIRED_NODE_POOL_AUTO_CONFIG_RESOURCE_MANAGER_TAGS_FIELD_NUMBER = 136; + private com.google.container.v1.ResourceManagerTags desiredNodePoolAutoConfigResourceManagerTags_; + /** + *
+   * The desired resource manager tags that apply to all auto-provisioned node
+   * pools in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; + * @return Whether the desiredNodePoolAutoConfigResourceManagerTags field is set. + */ + @java.lang.Override + public boolean hasDesiredNodePoolAutoConfigResourceManagerTags() { + return ((bitField1_ & 0x00000040) != 0); + } + /** + *
+   * The desired resource manager tags that apply to all auto-provisioned node
+   * pools in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; + * @return The desiredNodePoolAutoConfigResourceManagerTags. + */ + @java.lang.Override + public com.google.container.v1.ResourceManagerTags getDesiredNodePoolAutoConfigResourceManagerTags() { + return desiredNodePoolAutoConfigResourceManagerTags_ == null ? com.google.container.v1.ResourceManagerTags.getDefaultInstance() : desiredNodePoolAutoConfigResourceManagerTags_; + } + /** + *
+   * The desired resource manager tags that apply to all auto-provisioned node
+   * pools in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; + */ + @java.lang.Override + public com.google.container.v1.ResourceManagerTagsOrBuilder getDesiredNodePoolAutoConfigResourceManagerTagsOrBuilder() { + return desiredNodePoolAutoConfigResourceManagerTags_ == null ? com.google.container.v1.ResourceManagerTags.getDefaultInstance() : desiredNodePoolAutoConfigResourceManagerTags_; + } + + public static final int DESIRED_IN_TRANSIT_ENCRYPTION_CONFIG_FIELD_NUMBER = 137; + private int desiredInTransitEncryptionConfig_ = 0; + /** + *
+   * Specify the details of in-transit encryption.
+   * 
+ * + * optional .google.container.v1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; + * @return Whether the desiredInTransitEncryptionConfig field is set. + */ + @java.lang.Override public boolean hasDesiredInTransitEncryptionConfig() { + return ((bitField1_ & 0x00000080) != 0); + } + /** + *
+   * Specify the details of in-transit encryption.
+   * 
+ * + * optional .google.container.v1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; + * @return The enum numeric value on the wire for desiredInTransitEncryptionConfig. + */ + @java.lang.Override public int getDesiredInTransitEncryptionConfigValue() { + return desiredInTransitEncryptionConfig_; + } + /** + *
+   * Specify the details of in-transit encryption.
+   * 
+ * + * optional .google.container.v1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; + * @return The desiredInTransitEncryptionConfig. + */ + @java.lang.Override public com.google.container.v1.InTransitEncryptionConfig getDesiredInTransitEncryptionConfig() { + com.google.container.v1.InTransitEncryptionConfig result = com.google.container.v1.InTransitEncryptionConfig.forNumber(desiredInTransitEncryptionConfig_); + return result == null ? com.google.container.v1.InTransitEncryptionConfig.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredNodeVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, desiredNodeVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredMonitoringService_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, desiredMonitoringService_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getDesiredAddonsConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredNodePoolId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, desiredNodePoolId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredImageType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, desiredImageType_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(9, getDesiredNodePoolAutoscaling()); + } + for (int i = 0; i < desiredLocations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, desiredLocations_.getRaw(i)); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(12, getDesiredMasterAuthorizedNetworksConfig()); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeMessage(15, getDesiredClusterAutoscaling()); + } + if (((bitField0_ & 0x00000400) != 0)) { + output.writeMessage(16, getDesiredBinaryAuthorization()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredLoggingService_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 19, desiredLoggingService_); + } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeMessage(21, getDesiredResourceUsageExportConfig()); + } + if (((bitField0_ & 0x00001000) != 0)) { + output.writeMessage(22, getDesiredVerticalPodAutoscaling()); + } + if (((bitField0_ & 0x00002000) != 0)) { + output.writeMessage(25, getDesiredPrivateClusterConfig()); + } + if (((bitField0_ & 0x00004000) != 0)) { + output.writeMessage(26, getDesiredIntraNodeVisibilityConfig()); + } + if (((bitField0_ & 0x00008000) != 0)) { + output.writeMessage(28, getDesiredDefaultSnatStatus()); + } + if (((bitField0_ & 0x00010000) != 0)) { + output.writeMessage(31, getDesiredReleaseChannel()); + } + if (((bitField0_ & 0x00020000) != 0)) { + output.writeMessage(39, getDesiredL4IlbSubsettingConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(46, getDesiredDatabaseEncryption()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(47, getDesiredWorkloadIdentityConfig()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(48, getDesiredShieldedNodes()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(49, getDesiredCostManagementConfig()); + } + if (desiredDatapathProvider_ != com.google.container.v1.DatapathProvider.DATAPATH_PROVIDER_UNSPECIFIED.getNumber()) { + output.writeEnum(50, desiredDatapathProvider_); + } + if (desiredPrivateIpv6GoogleAccess_ != com.google.container.v1.PrivateIPv6GoogleAccess.PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED.getNumber()) { + output.writeEnum(51, desiredPrivateIpv6GoogleAccess_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(53, getDesiredDnsConfig()); + } + if (((bitField0_ & 0x00040000) != 0)) { + output.writeMessage(55, getDesiredNotificationConfig()); + } + if (((bitField0_ & 0x00800000) != 0)) { + output.writeMessage(60, getDesiredServiceExternalIpsConfig()); + } + if (((bitField0_ & 0x00080000) != 0)) { + output.writeMessage(63, getDesiredAuthenticatorGroupsConfig()); + } + if (((bitField0_ & 0x00100000) != 0)) { + output.writeMessage(64, getDesiredLoggingConfig()); + } + if (((bitField0_ & 0x00200000) != 0)) { + output.writeMessage(65, getDesiredMonitoringConfig()); + } + if (((bitField0_ & 0x00400000) != 0)) { + output.writeMessage(66, getDesiredIdentityServiceConfig()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(67, getDesiredMeshCertificates()); + } + if (((bitField0_ & 0x01000000) != 0)) { + output.writeBool(71, desiredEnablePrivateEndpoint_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredMasterVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 100, desiredMasterVersion_); + } + if (((bitField0_ & 0x02000000) != 0)) { + output.writeMessage(109, getDesiredGcfsConfig()); + } + if (((bitField0_ & 0x04000000) != 0)) { + output.writeMessage(110, getDesiredNodePoolAutoConfigNetworkTags()); + } + if (((bitField0_ & 0x08000000) != 0)) { + output.writeMessage(114, getDesiredGatewayApiConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 115, etag_); + } + if (((bitField0_ & 0x10000000) != 0)) { + output.writeMessage(116, getDesiredNodePoolLoggingConfig()); + } + if (((bitField0_ & 0x20000000) != 0)) { + output.writeMessage(117, getDesiredFleet()); + } + if (desiredStackType_ != com.google.container.v1.StackType.STACK_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(119, desiredStackType_); + } + if (((bitField0_ & 0x40000000) != 0)) { + output.writeMessage(120, getAdditionalPodRangesConfig()); + } + if (((bitField0_ & 0x80000000) != 0)) { + output.writeMessage(121, getRemovedAdditionalPodRangesConfig()); + } + if (((bitField1_ & 0x00000001) != 0)) { + output.writeMessage(122, getEnableK8SBetaApis()); + } + if (((bitField1_ & 0x00000002) != 0)) { + output.writeMessage(124, getDesiredSecurityPostureConfig()); + } + if (((bitField1_ & 0x00000004) != 0)) { + output.writeMessage(125, getDesiredNetworkPerformanceConfig()); + } + if (((bitField1_ & 0x00000008) != 0)) { + output.writeBool(126, desiredEnableFqdnNetworkPolicy_); + } + if (((bitField1_ & 0x00000010) != 0)) { + output.writeMessage(128, getDesiredAutopilotWorkloadPolicyConfig()); + } + if (((bitField1_ & 0x00000020) != 0)) { + output.writeMessage(131, getDesiredK8SBetaApis()); + } + if (((bitField1_ & 0x00000040) != 0)) { + output.writeMessage(136, getDesiredNodePoolAutoConfigResourceManagerTags()); + } + if (((bitField1_ & 0x00000080) != 0)) { + output.writeEnum(137, desiredInTransitEncryptionConfig_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredNodeVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, desiredNodeVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredMonitoringService_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, desiredMonitoringService_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getDesiredAddonsConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredNodePoolId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, desiredNodePoolId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredImageType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, desiredImageType_); + } + if (((bitField0_ & 0x00000080) != 0)) { + 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 (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getDesiredMasterAuthorizedNetworksConfig()); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, getDesiredClusterAutoscaling()); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getDesiredBinaryAuthorization()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredLoggingService_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, desiredLoggingService_); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, getDesiredResourceUsageExportConfig()); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(22, getDesiredVerticalPodAutoscaling()); + } + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(25, getDesiredPrivateClusterConfig()); + } + if (((bitField0_ & 0x00004000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(26, getDesiredIntraNodeVisibilityConfig()); + } + if (((bitField0_ & 0x00008000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(28, getDesiredDefaultSnatStatus()); + } + if (((bitField0_ & 0x00010000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(31, getDesiredReleaseChannel()); + } + if (((bitField0_ & 0x00020000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(39, getDesiredL4IlbSubsettingConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(46, getDesiredDatabaseEncryption()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(47, getDesiredWorkloadIdentityConfig()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(48, getDesiredShieldedNodes()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(49, getDesiredCostManagementConfig()); + } + if (desiredDatapathProvider_ != com.google.container.v1.DatapathProvider.DATAPATH_PROVIDER_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(50, desiredDatapathProvider_); + } + if (desiredPrivateIpv6GoogleAccess_ != com.google.container.v1.PrivateIPv6GoogleAccess.PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(51, desiredPrivateIpv6GoogleAccess_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(53, getDesiredDnsConfig()); + } + if (((bitField0_ & 0x00040000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(55, getDesiredNotificationConfig()); + } + if (((bitField0_ & 0x00800000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(60, getDesiredServiceExternalIpsConfig()); + } + if (((bitField0_ & 0x00080000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(63, getDesiredAuthenticatorGroupsConfig()); + } + if (((bitField0_ & 0x00100000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(64, getDesiredLoggingConfig()); + } + if (((bitField0_ & 0x00200000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(65, getDesiredMonitoringConfig()); + } + if (((bitField0_ & 0x00400000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(66, getDesiredIdentityServiceConfig()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(67, getDesiredMeshCertificates()); + } + if (((bitField0_ & 0x01000000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(71, desiredEnablePrivateEndpoint_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredMasterVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, desiredMasterVersion_); + } + if (((bitField0_ & 0x02000000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(109, getDesiredGcfsConfig()); + } + if (((bitField0_ & 0x04000000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(110, getDesiredNodePoolAutoConfigNetworkTags()); + } + if (((bitField0_ & 0x08000000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(114, getDesiredGatewayApiConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(115, etag_); + } + if (((bitField0_ & 0x10000000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(116, getDesiredNodePoolLoggingConfig()); + } + if (((bitField0_ & 0x20000000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(117, getDesiredFleet()); + } + if (desiredStackType_ != com.google.container.v1.StackType.STACK_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(119, desiredStackType_); + } + if (((bitField0_ & 0x40000000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(120, getAdditionalPodRangesConfig()); + } + if (((bitField0_ & 0x80000000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(121, getRemovedAdditionalPodRangesConfig()); + } + if (((bitField1_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(122, getEnableK8SBetaApis()); + } + if (((bitField1_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(124, getDesiredSecurityPostureConfig()); + } + if (((bitField1_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(125, getDesiredNetworkPerformanceConfig()); + } + if (((bitField1_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(126, desiredEnableFqdnNetworkPolicy_); + } + if (((bitField1_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(128, getDesiredAutopilotWorkloadPolicyConfig()); + } + if (((bitField1_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(131, getDesiredK8SBetaApis()); + } + if (((bitField1_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(136, getDesiredNodePoolAutoConfigResourceManagerTags()); + } + if (((bitField1_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(137, desiredInTransitEncryptionConfig_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.ClusterUpdate)) { + return super.equals(obj); + } + com.google.container.v1.ClusterUpdate other = (com.google.container.v1.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 (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 (hasDesiredMeshCertificates() != other.hasDesiredMeshCertificates()) return false; + if (hasDesiredMeshCertificates()) { + if (!getDesiredMeshCertificates() + .equals(other.getDesiredMeshCertificates())) return false; + } + if (hasDesiredShieldedNodes() != other.hasDesiredShieldedNodes()) return false; + if (hasDesiredShieldedNodes()) { + if (!getDesiredShieldedNodes() + .equals(other.getDesiredShieldedNodes())) return false; + } + if (hasDesiredCostManagementConfig() != other.hasDesiredCostManagementConfig()) return false; + if (hasDesiredCostManagementConfig()) { + if (!getDesiredCostManagementConfig() + .equals(other.getDesiredCostManagementConfig())) return false; + } + if (hasDesiredDnsConfig() != other.hasDesiredDnsConfig()) return false; + if (hasDesiredDnsConfig()) { + if (!getDesiredDnsConfig() + .equals(other.getDesiredDnsConfig())) return false; + } + if (hasDesiredNodePoolAutoscaling() != other.hasDesiredNodePoolAutoscaling()) return false; + if (hasDesiredNodePoolAutoscaling()) { + if (!getDesiredNodePoolAutoscaling() + .equals(other.getDesiredNodePoolAutoscaling())) 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 (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 (hasDesiredReleaseChannel() != other.hasDesiredReleaseChannel()) return false; + if (hasDesiredReleaseChannel()) { + if (!getDesiredReleaseChannel() + .equals(other.getDesiredReleaseChannel())) return false; + } + if (hasDesiredL4IlbSubsettingConfig() != other.hasDesiredL4IlbSubsettingConfig()) return false; + if (hasDesiredL4IlbSubsettingConfig()) { + if (!getDesiredL4IlbSubsettingConfig() + .equals(other.getDesiredL4IlbSubsettingConfig())) return false; + } + if (desiredDatapathProvider_ != other.desiredDatapathProvider_) return false; + if (desiredPrivateIpv6GoogleAccess_ != other.desiredPrivateIpv6GoogleAccess_) return false; + if (hasDesiredNotificationConfig() != other.hasDesiredNotificationConfig()) return false; + if (hasDesiredNotificationConfig()) { + if (!getDesiredNotificationConfig() + .equals(other.getDesiredNotificationConfig())) return false; + } + if (hasDesiredAuthenticatorGroupsConfig() != other.hasDesiredAuthenticatorGroupsConfig()) return false; + if (hasDesiredAuthenticatorGroupsConfig()) { + if (!getDesiredAuthenticatorGroupsConfig() + .equals(other.getDesiredAuthenticatorGroupsConfig())) return false; + } + if (hasDesiredLoggingConfig() != other.hasDesiredLoggingConfig()) return false; + if (hasDesiredLoggingConfig()) { + if (!getDesiredLoggingConfig() + .equals(other.getDesiredLoggingConfig())) return false; + } + if (hasDesiredMonitoringConfig() != other.hasDesiredMonitoringConfig()) return false; + if (hasDesiredMonitoringConfig()) { + if (!getDesiredMonitoringConfig() + .equals(other.getDesiredMonitoringConfig())) return false; + } + if (hasDesiredIdentityServiceConfig() != other.hasDesiredIdentityServiceConfig()) return false; + if (hasDesiredIdentityServiceConfig()) { + if (!getDesiredIdentityServiceConfig() + .equals(other.getDesiredIdentityServiceConfig())) return false; + } + if (hasDesiredServiceExternalIpsConfig() != other.hasDesiredServiceExternalIpsConfig()) return false; + if (hasDesiredServiceExternalIpsConfig()) { + if (!getDesiredServiceExternalIpsConfig() + .equals(other.getDesiredServiceExternalIpsConfig())) return false; + } + if (hasDesiredEnablePrivateEndpoint() != other.hasDesiredEnablePrivateEndpoint()) return false; + if (hasDesiredEnablePrivateEndpoint()) { + if (getDesiredEnablePrivateEndpoint() + != other.getDesiredEnablePrivateEndpoint()) return false; + } + if (!getDesiredMasterVersion() + .equals(other.getDesiredMasterVersion())) return false; + if (hasDesiredGcfsConfig() != other.hasDesiredGcfsConfig()) return false; + if (hasDesiredGcfsConfig()) { + if (!getDesiredGcfsConfig() + .equals(other.getDesiredGcfsConfig())) return false; + } + if (hasDesiredNodePoolAutoConfigNetworkTags() != other.hasDesiredNodePoolAutoConfigNetworkTags()) return false; + if (hasDesiredNodePoolAutoConfigNetworkTags()) { + if (!getDesiredNodePoolAutoConfigNetworkTags() + .equals(other.getDesiredNodePoolAutoConfigNetworkTags())) return false; + } + if (hasDesiredGatewayApiConfig() != other.hasDesiredGatewayApiConfig()) return false; + if (hasDesiredGatewayApiConfig()) { + if (!getDesiredGatewayApiConfig() + .equals(other.getDesiredGatewayApiConfig())) return false; + } + if (!getEtag() + .equals(other.getEtag())) return false; + if (hasDesiredNodePoolLoggingConfig() != other.hasDesiredNodePoolLoggingConfig()) return false; + if (hasDesiredNodePoolLoggingConfig()) { + if (!getDesiredNodePoolLoggingConfig() + .equals(other.getDesiredNodePoolLoggingConfig())) return false; + } + if (hasDesiredFleet() != other.hasDesiredFleet()) return false; + if (hasDesiredFleet()) { + if (!getDesiredFleet() + .equals(other.getDesiredFleet())) return false; + } + if (desiredStackType_ != other.desiredStackType_) return false; + if (hasAdditionalPodRangesConfig() != other.hasAdditionalPodRangesConfig()) return false; + if (hasAdditionalPodRangesConfig()) { + if (!getAdditionalPodRangesConfig() + .equals(other.getAdditionalPodRangesConfig())) return false; + } + if (hasRemovedAdditionalPodRangesConfig() != other.hasRemovedAdditionalPodRangesConfig()) return false; + if (hasRemovedAdditionalPodRangesConfig()) { + if (!getRemovedAdditionalPodRangesConfig() + .equals(other.getRemovedAdditionalPodRangesConfig())) return false; + } + if (hasEnableK8SBetaApis() != other.hasEnableK8SBetaApis()) return false; + if (hasEnableK8SBetaApis()) { + if (!getEnableK8SBetaApis() + .equals(other.getEnableK8SBetaApis())) return false; + } + if (hasDesiredSecurityPostureConfig() != other.hasDesiredSecurityPostureConfig()) return false; + if (hasDesiredSecurityPostureConfig()) { + if (!getDesiredSecurityPostureConfig() + .equals(other.getDesiredSecurityPostureConfig())) return false; + } + if (hasDesiredNetworkPerformanceConfig() != other.hasDesiredNetworkPerformanceConfig()) return false; + if (hasDesiredNetworkPerformanceConfig()) { + if (!getDesiredNetworkPerformanceConfig() + .equals(other.getDesiredNetworkPerformanceConfig())) return false; + } + if (hasDesiredEnableFqdnNetworkPolicy() != other.hasDesiredEnableFqdnNetworkPolicy()) return false; + if (hasDesiredEnableFqdnNetworkPolicy()) { + if (getDesiredEnableFqdnNetworkPolicy() + != other.getDesiredEnableFqdnNetworkPolicy()) return false; + } + if (hasDesiredAutopilotWorkloadPolicyConfig() != other.hasDesiredAutopilotWorkloadPolicyConfig()) return false; + if (hasDesiredAutopilotWorkloadPolicyConfig()) { + if (!getDesiredAutopilotWorkloadPolicyConfig() + .equals(other.getDesiredAutopilotWorkloadPolicyConfig())) return false; + } + if (hasDesiredK8SBetaApis() != other.hasDesiredK8SBetaApis()) return false; + if (hasDesiredK8SBetaApis()) { + if (!getDesiredK8SBetaApis() + .equals(other.getDesiredK8SBetaApis())) return false; + } + if (hasDesiredNodePoolAutoConfigResourceManagerTags() != other.hasDesiredNodePoolAutoConfigResourceManagerTags()) return false; + if (hasDesiredNodePoolAutoConfigResourceManagerTags()) { + if (!getDesiredNodePoolAutoConfigResourceManagerTags() + .equals(other.getDesiredNodePoolAutoConfigResourceManagerTags())) return false; + } + if (hasDesiredInTransitEncryptionConfig() != other.hasDesiredInTransitEncryptionConfig()) return false; + if (hasDesiredInTransitEncryptionConfig()) { + if (desiredInTransitEncryptionConfig_ != other.desiredInTransitEncryptionConfig_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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 (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 (hasDesiredMeshCertificates()) { + hash = (37 * hash) + DESIRED_MESH_CERTIFICATES_FIELD_NUMBER; + hash = (53 * hash) + getDesiredMeshCertificates().hashCode(); + } + if (hasDesiredShieldedNodes()) { + hash = (37 * hash) + DESIRED_SHIELDED_NODES_FIELD_NUMBER; + hash = (53 * hash) + getDesiredShieldedNodes().hashCode(); + } + if (hasDesiredCostManagementConfig()) { + hash = (37 * hash) + DESIRED_COST_MANAGEMENT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredCostManagementConfig().hashCode(); + } + if (hasDesiredDnsConfig()) { + hash = (37 * hash) + DESIRED_DNS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredDnsConfig().hashCode(); + } + if (hasDesiredNodePoolAutoscaling()) { + hash = (37 * hash) + DESIRED_NODE_POOL_AUTOSCALING_FIELD_NUMBER; + hash = (53 * hash) + getDesiredNodePoolAutoscaling().hashCode(); + } + 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 (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 (hasDesiredReleaseChannel()) { + hash = (37 * hash) + DESIRED_RELEASE_CHANNEL_FIELD_NUMBER; + hash = (53 * hash) + getDesiredReleaseChannel().hashCode(); + } + if (hasDesiredL4IlbSubsettingConfig()) { + hash = (37 * hash) + DESIRED_L4ILB_SUBSETTING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredL4IlbSubsettingConfig().hashCode(); + } + hash = (37 * hash) + DESIRED_DATAPATH_PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + desiredDatapathProvider_; + hash = (37 * hash) + DESIRED_PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER; + hash = (53 * hash) + desiredPrivateIpv6GoogleAccess_; + if (hasDesiredNotificationConfig()) { + hash = (37 * hash) + DESIRED_NOTIFICATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredNotificationConfig().hashCode(); + } + if (hasDesiredAuthenticatorGroupsConfig()) { + hash = (37 * hash) + DESIRED_AUTHENTICATOR_GROUPS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredAuthenticatorGroupsConfig().hashCode(); + } + if (hasDesiredLoggingConfig()) { + hash = (37 * hash) + DESIRED_LOGGING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredLoggingConfig().hashCode(); + } + if (hasDesiredMonitoringConfig()) { + hash = (37 * hash) + DESIRED_MONITORING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredMonitoringConfig().hashCode(); + } + if (hasDesiredIdentityServiceConfig()) { + hash = (37 * hash) + DESIRED_IDENTITY_SERVICE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredIdentityServiceConfig().hashCode(); + } + if (hasDesiredServiceExternalIpsConfig()) { + hash = (37 * hash) + DESIRED_SERVICE_EXTERNAL_IPS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredServiceExternalIpsConfig().hashCode(); + } + if (hasDesiredEnablePrivateEndpoint()) { + hash = (37 * hash) + DESIRED_ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDesiredEnablePrivateEndpoint()); + } + hash = (37 * hash) + DESIRED_MASTER_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getDesiredMasterVersion().hashCode(); + if (hasDesiredGcfsConfig()) { + hash = (37 * hash) + DESIRED_GCFS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredGcfsConfig().hashCode(); + } + if (hasDesiredNodePoolAutoConfigNetworkTags()) { + hash = (37 * hash) + DESIRED_NODE_POOL_AUTO_CONFIG_NETWORK_TAGS_FIELD_NUMBER; + hash = (53 * hash) + getDesiredNodePoolAutoConfigNetworkTags().hashCode(); + } + if (hasDesiredGatewayApiConfig()) { + hash = (37 * hash) + DESIRED_GATEWAY_API_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredGatewayApiConfig().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + if (hasDesiredNodePoolLoggingConfig()) { + hash = (37 * hash) + DESIRED_NODE_POOL_LOGGING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredNodePoolLoggingConfig().hashCode(); + } + if (hasDesiredFleet()) { + hash = (37 * hash) + DESIRED_FLEET_FIELD_NUMBER; + hash = (53 * hash) + getDesiredFleet().hashCode(); + } + hash = (37 * hash) + DESIRED_STACK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + desiredStackType_; + if (hasAdditionalPodRangesConfig()) { + hash = (37 * hash) + ADDITIONAL_POD_RANGES_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalPodRangesConfig().hashCode(); + } + if (hasRemovedAdditionalPodRangesConfig()) { + hash = (37 * hash) + REMOVED_ADDITIONAL_POD_RANGES_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRemovedAdditionalPodRangesConfig().hashCode(); + } + if (hasEnableK8SBetaApis()) { + hash = (37 * hash) + ENABLE_K8S_BETA_APIS_FIELD_NUMBER; + hash = (53 * hash) + getEnableK8SBetaApis().hashCode(); + } + if (hasDesiredSecurityPostureConfig()) { + hash = (37 * hash) + DESIRED_SECURITY_POSTURE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredSecurityPostureConfig().hashCode(); + } + if (hasDesiredNetworkPerformanceConfig()) { + hash = (37 * hash) + DESIRED_NETWORK_PERFORMANCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredNetworkPerformanceConfig().hashCode(); + } + if (hasDesiredEnableFqdnNetworkPolicy()) { + hash = (37 * hash) + DESIRED_ENABLE_FQDN_NETWORK_POLICY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDesiredEnableFqdnNetworkPolicy()); + } + if (hasDesiredAutopilotWorkloadPolicyConfig()) { + hash = (37 * hash) + DESIRED_AUTOPILOT_WORKLOAD_POLICY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredAutopilotWorkloadPolicyConfig().hashCode(); + } + if (hasDesiredK8SBetaApis()) { + hash = (37 * hash) + DESIRED_K8S_BETA_APIS_FIELD_NUMBER; + hash = (53 * hash) + getDesiredK8SBetaApis().hashCode(); + } + if (hasDesiredNodePoolAutoConfigResourceManagerTags()) { + hash = (37 * hash) + DESIRED_NODE_POOL_AUTO_CONFIG_RESOURCE_MANAGER_TAGS_FIELD_NUMBER; + hash = (53 * hash) + getDesiredNodePoolAutoConfigResourceManagerTags().hashCode(); + } + if (hasDesiredInTransitEncryptionConfig()) { + hash = (37 * hash) + DESIRED_IN_TRANSIT_ENCRYPTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + desiredInTransitEncryptionConfig_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ClusterUpdate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.ClusterUpdate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.ClusterUpdate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ClusterUpdate parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ClusterUpdate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.ClusterUpdate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.ClusterUpdate parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.ClusterUpdate} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ClusterUpdate) + com.google.container.v1.ClusterUpdateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ClusterUpdate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ClusterUpdate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ClusterUpdate.class, com.google.container.v1.ClusterUpdate.Builder.class); + } + + // Construct using com.google.container.v1.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) { + getDesiredAddonsConfigFieldBuilder(); + getDesiredDatabaseEncryptionFieldBuilder(); + getDesiredWorkloadIdentityConfigFieldBuilder(); + getDesiredMeshCertificatesFieldBuilder(); + getDesiredShieldedNodesFieldBuilder(); + getDesiredCostManagementConfigFieldBuilder(); + getDesiredDnsConfigFieldBuilder(); + getDesiredNodePoolAutoscalingFieldBuilder(); + getDesiredMasterAuthorizedNetworksConfigFieldBuilder(); + getDesiredClusterAutoscalingFieldBuilder(); + getDesiredBinaryAuthorizationFieldBuilder(); + getDesiredResourceUsageExportConfigFieldBuilder(); + getDesiredVerticalPodAutoscalingFieldBuilder(); + getDesiredPrivateClusterConfigFieldBuilder(); + getDesiredIntraNodeVisibilityConfigFieldBuilder(); + getDesiredDefaultSnatStatusFieldBuilder(); + getDesiredReleaseChannelFieldBuilder(); + getDesiredL4IlbSubsettingConfigFieldBuilder(); + getDesiredNotificationConfigFieldBuilder(); + getDesiredAuthenticatorGroupsConfigFieldBuilder(); + getDesiredLoggingConfigFieldBuilder(); + getDesiredMonitoringConfigFieldBuilder(); + getDesiredIdentityServiceConfigFieldBuilder(); + getDesiredServiceExternalIpsConfigFieldBuilder(); + getDesiredGcfsConfigFieldBuilder(); + getDesiredNodePoolAutoConfigNetworkTagsFieldBuilder(); + getDesiredGatewayApiConfigFieldBuilder(); + getDesiredNodePoolLoggingConfigFieldBuilder(); + getDesiredFleetFieldBuilder(); + getAdditionalPodRangesConfigFieldBuilder(); + getRemovedAdditionalPodRangesConfigFieldBuilder(); + getEnableK8SBetaApisFieldBuilder(); + getDesiredSecurityPostureConfigFieldBuilder(); + getDesiredNetworkPerformanceConfigFieldBuilder(); + getDesiredAutopilotWorkloadPolicyConfigFieldBuilder(); + getDesiredK8SBetaApisFieldBuilder(); + getDesiredNodePoolAutoConfigResourceManagerTagsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bitField1_ = 0; + desiredNodeVersion_ = ""; + desiredMonitoringService_ = ""; + desiredAddonsConfig_ = null; + if (desiredAddonsConfigBuilder_ != null) { + desiredAddonsConfigBuilder_.dispose(); + desiredAddonsConfigBuilder_ = null; + } + desiredNodePoolId_ = ""; + desiredImageType_ = ""; + desiredDatabaseEncryption_ = null; + if (desiredDatabaseEncryptionBuilder_ != null) { + desiredDatabaseEncryptionBuilder_.dispose(); + desiredDatabaseEncryptionBuilder_ = null; + } + desiredWorkloadIdentityConfig_ = null; + if (desiredWorkloadIdentityConfigBuilder_ != null) { + desiredWorkloadIdentityConfigBuilder_.dispose(); + desiredWorkloadIdentityConfigBuilder_ = null; + } + desiredMeshCertificates_ = null; + if (desiredMeshCertificatesBuilder_ != null) { + desiredMeshCertificatesBuilder_.dispose(); + desiredMeshCertificatesBuilder_ = null; + } + desiredShieldedNodes_ = null; + if (desiredShieldedNodesBuilder_ != null) { + desiredShieldedNodesBuilder_.dispose(); + desiredShieldedNodesBuilder_ = null; + } + desiredCostManagementConfig_ = null; + if (desiredCostManagementConfigBuilder_ != null) { + desiredCostManagementConfigBuilder_.dispose(); + desiredCostManagementConfigBuilder_ = null; + } + desiredDnsConfig_ = null; + if (desiredDnsConfigBuilder_ != null) { + desiredDnsConfigBuilder_.dispose(); + desiredDnsConfigBuilder_ = null; + } + desiredNodePoolAutoscaling_ = null; + if (desiredNodePoolAutoscalingBuilder_ != null) { + desiredNodePoolAutoscalingBuilder_.dispose(); + desiredNodePoolAutoscalingBuilder_ = null; + } + desiredLocations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + desiredMasterAuthorizedNetworksConfig_ = null; + if (desiredMasterAuthorizedNetworksConfigBuilder_ != null) { + desiredMasterAuthorizedNetworksConfigBuilder_.dispose(); + desiredMasterAuthorizedNetworksConfigBuilder_ = null; + } + desiredClusterAutoscaling_ = null; + if (desiredClusterAutoscalingBuilder_ != null) { + desiredClusterAutoscalingBuilder_.dispose(); + desiredClusterAutoscalingBuilder_ = null; + } + desiredBinaryAuthorization_ = null; + if (desiredBinaryAuthorizationBuilder_ != null) { + desiredBinaryAuthorizationBuilder_.dispose(); + desiredBinaryAuthorizationBuilder_ = null; + } + desiredLoggingService_ = ""; + desiredResourceUsageExportConfig_ = null; + if (desiredResourceUsageExportConfigBuilder_ != null) { + desiredResourceUsageExportConfigBuilder_.dispose(); + desiredResourceUsageExportConfigBuilder_ = null; + } + desiredVerticalPodAutoscaling_ = null; + if (desiredVerticalPodAutoscalingBuilder_ != null) { + desiredVerticalPodAutoscalingBuilder_.dispose(); + desiredVerticalPodAutoscalingBuilder_ = null; + } + desiredPrivateClusterConfig_ = null; + if (desiredPrivateClusterConfigBuilder_ != null) { + desiredPrivateClusterConfigBuilder_.dispose(); + desiredPrivateClusterConfigBuilder_ = null; + } + desiredIntraNodeVisibilityConfig_ = null; + if (desiredIntraNodeVisibilityConfigBuilder_ != null) { + desiredIntraNodeVisibilityConfigBuilder_.dispose(); + desiredIntraNodeVisibilityConfigBuilder_ = null; + } + desiredDefaultSnatStatus_ = null; + if (desiredDefaultSnatStatusBuilder_ != null) { + desiredDefaultSnatStatusBuilder_.dispose(); + desiredDefaultSnatStatusBuilder_ = null; + } + desiredReleaseChannel_ = null; + if (desiredReleaseChannelBuilder_ != null) { + desiredReleaseChannelBuilder_.dispose(); + desiredReleaseChannelBuilder_ = null; + } + desiredL4IlbSubsettingConfig_ = null; + if (desiredL4IlbSubsettingConfigBuilder_ != null) { + desiredL4IlbSubsettingConfigBuilder_.dispose(); + desiredL4IlbSubsettingConfigBuilder_ = null; + } + desiredDatapathProvider_ = 0; + desiredPrivateIpv6GoogleAccess_ = 0; + desiredNotificationConfig_ = null; + if (desiredNotificationConfigBuilder_ != null) { + desiredNotificationConfigBuilder_.dispose(); + desiredNotificationConfigBuilder_ = null; + } + desiredAuthenticatorGroupsConfig_ = null; + if (desiredAuthenticatorGroupsConfigBuilder_ != null) { + desiredAuthenticatorGroupsConfigBuilder_.dispose(); + desiredAuthenticatorGroupsConfigBuilder_ = null; + } + desiredLoggingConfig_ = null; + if (desiredLoggingConfigBuilder_ != null) { + desiredLoggingConfigBuilder_.dispose(); + desiredLoggingConfigBuilder_ = null; + } + desiredMonitoringConfig_ = null; + if (desiredMonitoringConfigBuilder_ != null) { + desiredMonitoringConfigBuilder_.dispose(); + desiredMonitoringConfigBuilder_ = null; + } + desiredIdentityServiceConfig_ = null; + if (desiredIdentityServiceConfigBuilder_ != null) { + desiredIdentityServiceConfigBuilder_.dispose(); + desiredIdentityServiceConfigBuilder_ = null; + } + desiredServiceExternalIpsConfig_ = null; + if (desiredServiceExternalIpsConfigBuilder_ != null) { + desiredServiceExternalIpsConfigBuilder_.dispose(); + desiredServiceExternalIpsConfigBuilder_ = null; + } + desiredEnablePrivateEndpoint_ = false; + desiredMasterVersion_ = ""; + desiredGcfsConfig_ = null; + if (desiredGcfsConfigBuilder_ != null) { + desiredGcfsConfigBuilder_.dispose(); + desiredGcfsConfigBuilder_ = null; + } + desiredNodePoolAutoConfigNetworkTags_ = null; + if (desiredNodePoolAutoConfigNetworkTagsBuilder_ != null) { + desiredNodePoolAutoConfigNetworkTagsBuilder_.dispose(); + desiredNodePoolAutoConfigNetworkTagsBuilder_ = null; + } + desiredGatewayApiConfig_ = null; + if (desiredGatewayApiConfigBuilder_ != null) { + desiredGatewayApiConfigBuilder_.dispose(); + desiredGatewayApiConfigBuilder_ = null; + } + etag_ = ""; + desiredNodePoolLoggingConfig_ = null; + if (desiredNodePoolLoggingConfigBuilder_ != null) { + desiredNodePoolLoggingConfigBuilder_.dispose(); + desiredNodePoolLoggingConfigBuilder_ = null; + } + desiredFleet_ = null; + if (desiredFleetBuilder_ != null) { + desiredFleetBuilder_.dispose(); + desiredFleetBuilder_ = null; + } + desiredStackType_ = 0; + additionalPodRangesConfig_ = null; + if (additionalPodRangesConfigBuilder_ != null) { + additionalPodRangesConfigBuilder_.dispose(); + additionalPodRangesConfigBuilder_ = null; + } + removedAdditionalPodRangesConfig_ = null; + if (removedAdditionalPodRangesConfigBuilder_ != null) { + removedAdditionalPodRangesConfigBuilder_.dispose(); + removedAdditionalPodRangesConfigBuilder_ = null; + } + enableK8SBetaApis_ = null; + if (enableK8SBetaApisBuilder_ != null) { + enableK8SBetaApisBuilder_.dispose(); + enableK8SBetaApisBuilder_ = null; + } + desiredSecurityPostureConfig_ = null; + if (desiredSecurityPostureConfigBuilder_ != null) { + desiredSecurityPostureConfigBuilder_.dispose(); + desiredSecurityPostureConfigBuilder_ = null; + } + desiredNetworkPerformanceConfig_ = null; + if (desiredNetworkPerformanceConfigBuilder_ != null) { + desiredNetworkPerformanceConfigBuilder_.dispose(); + desiredNetworkPerformanceConfigBuilder_ = null; + } + desiredEnableFqdnNetworkPolicy_ = false; + desiredAutopilotWorkloadPolicyConfig_ = null; + if (desiredAutopilotWorkloadPolicyConfigBuilder_ != null) { + desiredAutopilotWorkloadPolicyConfigBuilder_.dispose(); + desiredAutopilotWorkloadPolicyConfigBuilder_ = null; + } + desiredK8SBetaApis_ = null; + if (desiredK8SBetaApisBuilder_ != null) { + desiredK8SBetaApisBuilder_.dispose(); + desiredK8SBetaApisBuilder_ = null; + } + desiredNodePoolAutoConfigResourceManagerTags_ = null; + if (desiredNodePoolAutoConfigResourceManagerTagsBuilder_ != null) { + desiredNodePoolAutoConfigResourceManagerTagsBuilder_.dispose(); + desiredNodePoolAutoConfigResourceManagerTagsBuilder_ = null; + } + desiredInTransitEncryptionConfig_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ClusterUpdate_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ClusterUpdate getDefaultInstanceForType() { + return com.google.container.v1.ClusterUpdate.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ClusterUpdate build() { + com.google.container.v1.ClusterUpdate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ClusterUpdate buildPartial() { + com.google.container.v1.ClusterUpdate result = new com.google.container.v1.ClusterUpdate(this); + if (bitField0_ != 0) { buildPartial0(result); } + if (bitField1_ != 0) { buildPartial1(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.ClusterUpdate result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.desiredNodeVersion_ = desiredNodeVersion_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.desiredMonitoringService_ = desiredMonitoringService_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.desiredAddonsConfig_ = desiredAddonsConfigBuilder_ == null + ? desiredAddonsConfig_ + : desiredAddonsConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.desiredNodePoolId_ = desiredNodePoolId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.desiredImageType_ = desiredImageType_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.desiredDatabaseEncryption_ = desiredDatabaseEncryptionBuilder_ == null + ? desiredDatabaseEncryption_ + : desiredDatabaseEncryptionBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.desiredWorkloadIdentityConfig_ = desiredWorkloadIdentityConfigBuilder_ == null + ? desiredWorkloadIdentityConfig_ + : desiredWorkloadIdentityConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.desiredMeshCertificates_ = desiredMeshCertificatesBuilder_ == null + ? desiredMeshCertificates_ + : desiredMeshCertificatesBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.desiredShieldedNodes_ = desiredShieldedNodesBuilder_ == null + ? desiredShieldedNodes_ + : desiredShieldedNodesBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.desiredCostManagementConfig_ = desiredCostManagementConfigBuilder_ == null + ? desiredCostManagementConfig_ + : desiredCostManagementConfigBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.desiredDnsConfig_ = desiredDnsConfigBuilder_ == null + ? desiredDnsConfig_ + : desiredDnsConfigBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.desiredNodePoolAutoscaling_ = desiredNodePoolAutoscalingBuilder_ == null + ? desiredNodePoolAutoscaling_ + : desiredNodePoolAutoscalingBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + desiredLocations_.makeImmutable(); + result.desiredLocations_ = desiredLocations_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.desiredMasterAuthorizedNetworksConfig_ = desiredMasterAuthorizedNetworksConfigBuilder_ == null + ? desiredMasterAuthorizedNetworksConfig_ + : desiredMasterAuthorizedNetworksConfigBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.desiredClusterAutoscaling_ = desiredClusterAutoscalingBuilder_ == null + ? desiredClusterAutoscaling_ + : desiredClusterAutoscalingBuilder_.build(); + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.desiredBinaryAuthorization_ = desiredBinaryAuthorizationBuilder_ == null + ? desiredBinaryAuthorization_ + : desiredBinaryAuthorizationBuilder_.build(); + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.desiredLoggingService_ = desiredLoggingService_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.desiredResourceUsageExportConfig_ = desiredResourceUsageExportConfigBuilder_ == null + ? desiredResourceUsageExportConfig_ + : desiredResourceUsageExportConfigBuilder_.build(); + to_bitField0_ |= 0x00000800; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.desiredVerticalPodAutoscaling_ = desiredVerticalPodAutoscalingBuilder_ == null + ? desiredVerticalPodAutoscaling_ + : desiredVerticalPodAutoscalingBuilder_.build(); + to_bitField0_ |= 0x00001000; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.desiredPrivateClusterConfig_ = desiredPrivateClusterConfigBuilder_ == null + ? desiredPrivateClusterConfig_ + : desiredPrivateClusterConfigBuilder_.build(); + to_bitField0_ |= 0x00002000; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.desiredIntraNodeVisibilityConfig_ = desiredIntraNodeVisibilityConfigBuilder_ == null + ? desiredIntraNodeVisibilityConfig_ + : desiredIntraNodeVisibilityConfigBuilder_.build(); + to_bitField0_ |= 0x00004000; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.desiredDefaultSnatStatus_ = desiredDefaultSnatStatusBuilder_ == null + ? desiredDefaultSnatStatus_ + : desiredDefaultSnatStatusBuilder_.build(); + to_bitField0_ |= 0x00008000; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.desiredReleaseChannel_ = desiredReleaseChannelBuilder_ == null + ? desiredReleaseChannel_ + : desiredReleaseChannelBuilder_.build(); + to_bitField0_ |= 0x00010000; + } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.desiredL4IlbSubsettingConfig_ = desiredL4IlbSubsettingConfigBuilder_ == null + ? desiredL4IlbSubsettingConfig_ + : desiredL4IlbSubsettingConfigBuilder_.build(); + to_bitField0_ |= 0x00020000; + } + if (((from_bitField0_ & 0x01000000) != 0)) { + result.desiredDatapathProvider_ = desiredDatapathProvider_; + } + if (((from_bitField0_ & 0x02000000) != 0)) { + result.desiredPrivateIpv6GoogleAccess_ = desiredPrivateIpv6GoogleAccess_; + } + if (((from_bitField0_ & 0x04000000) != 0)) { + result.desiredNotificationConfig_ = desiredNotificationConfigBuilder_ == null + ? desiredNotificationConfig_ + : desiredNotificationConfigBuilder_.build(); + to_bitField0_ |= 0x00040000; + } + if (((from_bitField0_ & 0x08000000) != 0)) { + result.desiredAuthenticatorGroupsConfig_ = desiredAuthenticatorGroupsConfigBuilder_ == null + ? desiredAuthenticatorGroupsConfig_ + : desiredAuthenticatorGroupsConfigBuilder_.build(); + to_bitField0_ |= 0x00080000; + } + if (((from_bitField0_ & 0x10000000) != 0)) { + result.desiredLoggingConfig_ = desiredLoggingConfigBuilder_ == null + ? desiredLoggingConfig_ + : desiredLoggingConfigBuilder_.build(); + to_bitField0_ |= 0x00100000; + } + if (((from_bitField0_ & 0x20000000) != 0)) { + result.desiredMonitoringConfig_ = desiredMonitoringConfigBuilder_ == null + ? desiredMonitoringConfig_ + : desiredMonitoringConfigBuilder_.build(); + to_bitField0_ |= 0x00200000; + } + if (((from_bitField0_ & 0x40000000) != 0)) { + result.desiredIdentityServiceConfig_ = desiredIdentityServiceConfigBuilder_ == null + ? desiredIdentityServiceConfig_ + : desiredIdentityServiceConfigBuilder_.build(); + to_bitField0_ |= 0x00400000; + } + if (((from_bitField0_ & 0x80000000) != 0)) { + result.desiredServiceExternalIpsConfig_ = desiredServiceExternalIpsConfigBuilder_ == null + ? desiredServiceExternalIpsConfig_ + : desiredServiceExternalIpsConfigBuilder_.build(); + to_bitField0_ |= 0x00800000; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartial1(com.google.container.v1.ClusterUpdate result) { + int from_bitField1_ = bitField1_; + int to_bitField0_ = 0; + if (((from_bitField1_ & 0x00000001) != 0)) { + result.desiredEnablePrivateEndpoint_ = desiredEnablePrivateEndpoint_; + to_bitField0_ |= 0x01000000; + } + if (((from_bitField1_ & 0x00000002) != 0)) { + result.desiredMasterVersion_ = desiredMasterVersion_; + } + if (((from_bitField1_ & 0x00000004) != 0)) { + result.desiredGcfsConfig_ = desiredGcfsConfigBuilder_ == null + ? desiredGcfsConfig_ + : desiredGcfsConfigBuilder_.build(); + to_bitField0_ |= 0x02000000; + } + if (((from_bitField1_ & 0x00000008) != 0)) { + result.desiredNodePoolAutoConfigNetworkTags_ = desiredNodePoolAutoConfigNetworkTagsBuilder_ == null + ? desiredNodePoolAutoConfigNetworkTags_ + : desiredNodePoolAutoConfigNetworkTagsBuilder_.build(); + to_bitField0_ |= 0x04000000; + } + if (((from_bitField1_ & 0x00000010) != 0)) { + result.desiredGatewayApiConfig_ = desiredGatewayApiConfigBuilder_ == null + ? desiredGatewayApiConfig_ + : desiredGatewayApiConfigBuilder_.build(); + to_bitField0_ |= 0x08000000; + } + if (((from_bitField1_ & 0x00000020) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField1_ & 0x00000040) != 0)) { + result.desiredNodePoolLoggingConfig_ = desiredNodePoolLoggingConfigBuilder_ == null + ? desiredNodePoolLoggingConfig_ + : desiredNodePoolLoggingConfigBuilder_.build(); + to_bitField0_ |= 0x10000000; + } + if (((from_bitField1_ & 0x00000080) != 0)) { + result.desiredFleet_ = desiredFleetBuilder_ == null + ? desiredFleet_ + : desiredFleetBuilder_.build(); + to_bitField0_ |= 0x20000000; + } + if (((from_bitField1_ & 0x00000100) != 0)) { + result.desiredStackType_ = desiredStackType_; + } + if (((from_bitField1_ & 0x00000200) != 0)) { + result.additionalPodRangesConfig_ = additionalPodRangesConfigBuilder_ == null + ? additionalPodRangesConfig_ + : additionalPodRangesConfigBuilder_.build(); + to_bitField0_ |= 0x40000000; + } + if (((from_bitField1_ & 0x00000400) != 0)) { + result.removedAdditionalPodRangesConfig_ = removedAdditionalPodRangesConfigBuilder_ == null + ? removedAdditionalPodRangesConfig_ + : removedAdditionalPodRangesConfigBuilder_.build(); + to_bitField0_ |= 0x80000000; + } + int to_bitField1_ = 0; + if (((from_bitField1_ & 0x00000800) != 0)) { + result.enableK8SBetaApis_ = enableK8SBetaApisBuilder_ == null + ? enableK8SBetaApis_ + : enableK8SBetaApisBuilder_.build(); + to_bitField1_ |= 0x00000001; + } + if (((from_bitField1_ & 0x00001000) != 0)) { + result.desiredSecurityPostureConfig_ = desiredSecurityPostureConfigBuilder_ == null + ? desiredSecurityPostureConfig_ + : desiredSecurityPostureConfigBuilder_.build(); + to_bitField1_ |= 0x00000002; + } + if (((from_bitField1_ & 0x00002000) != 0)) { + result.desiredNetworkPerformanceConfig_ = desiredNetworkPerformanceConfigBuilder_ == null + ? desiredNetworkPerformanceConfig_ + : desiredNetworkPerformanceConfigBuilder_.build(); + to_bitField1_ |= 0x00000004; + } + if (((from_bitField1_ & 0x00004000) != 0)) { + result.desiredEnableFqdnNetworkPolicy_ = desiredEnableFqdnNetworkPolicy_; + to_bitField1_ |= 0x00000008; + } + if (((from_bitField1_ & 0x00008000) != 0)) { + result.desiredAutopilotWorkloadPolicyConfig_ = desiredAutopilotWorkloadPolicyConfigBuilder_ == null + ? desiredAutopilotWorkloadPolicyConfig_ + : desiredAutopilotWorkloadPolicyConfigBuilder_.build(); + to_bitField1_ |= 0x00000010; + } + if (((from_bitField1_ & 0x00010000) != 0)) { + result.desiredK8SBetaApis_ = desiredK8SBetaApisBuilder_ == null + ? desiredK8SBetaApis_ + : desiredK8SBetaApisBuilder_.build(); + to_bitField1_ |= 0x00000020; + } + if (((from_bitField1_ & 0x00020000) != 0)) { + result.desiredNodePoolAutoConfigResourceManagerTags_ = desiredNodePoolAutoConfigResourceManagerTagsBuilder_ == null + ? desiredNodePoolAutoConfigResourceManagerTags_ + : desiredNodePoolAutoConfigResourceManagerTagsBuilder_.build(); + to_bitField1_ |= 0x00000040; + } + if (((from_bitField1_ & 0x00040000) != 0)) { + result.desiredInTransitEncryptionConfig_ = desiredInTransitEncryptionConfig_; + to_bitField1_ |= 0x00000080; + } + result.bitField0_ |= to_bitField0_; + result.bitField1_ |= to_bitField1_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ClusterUpdate) { + return mergeFrom((com.google.container.v1.ClusterUpdate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ClusterUpdate other) { + if (other == com.google.container.v1.ClusterUpdate.getDefaultInstance()) return this; + if (!other.getDesiredNodeVersion().isEmpty()) { + desiredNodeVersion_ = other.desiredNodeVersion_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDesiredMonitoringService().isEmpty()) { + desiredMonitoringService_ = other.desiredMonitoringService_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasDesiredAddonsConfig()) { + mergeDesiredAddonsConfig(other.getDesiredAddonsConfig()); + } + if (!other.getDesiredNodePoolId().isEmpty()) { + desiredNodePoolId_ = other.desiredNodePoolId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getDesiredImageType().isEmpty()) { + desiredImageType_ = other.desiredImageType_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasDesiredDatabaseEncryption()) { + mergeDesiredDatabaseEncryption(other.getDesiredDatabaseEncryption()); + } + if (other.hasDesiredWorkloadIdentityConfig()) { + mergeDesiredWorkloadIdentityConfig(other.getDesiredWorkloadIdentityConfig()); + } + if (other.hasDesiredMeshCertificates()) { + mergeDesiredMeshCertificates(other.getDesiredMeshCertificates()); + } + if (other.hasDesiredShieldedNodes()) { + mergeDesiredShieldedNodes(other.getDesiredShieldedNodes()); + } + if (other.hasDesiredCostManagementConfig()) { + mergeDesiredCostManagementConfig(other.getDesiredCostManagementConfig()); + } + if (other.hasDesiredDnsConfig()) { + mergeDesiredDnsConfig(other.getDesiredDnsConfig()); + } + if (other.hasDesiredNodePoolAutoscaling()) { + mergeDesiredNodePoolAutoscaling(other.getDesiredNodePoolAutoscaling()); + } + if (!other.desiredLocations_.isEmpty()) { + if (desiredLocations_.isEmpty()) { + desiredLocations_ = other.desiredLocations_; + bitField0_ |= 0x00001000; + } else { + ensureDesiredLocationsIsMutable(); + desiredLocations_.addAll(other.desiredLocations_); + } + onChanged(); + } + if (other.hasDesiredMasterAuthorizedNetworksConfig()) { + mergeDesiredMasterAuthorizedNetworksConfig(other.getDesiredMasterAuthorizedNetworksConfig()); + } + if (other.hasDesiredClusterAutoscaling()) { + mergeDesiredClusterAutoscaling(other.getDesiredClusterAutoscaling()); + } + if (other.hasDesiredBinaryAuthorization()) { + mergeDesiredBinaryAuthorization(other.getDesiredBinaryAuthorization()); + } + if (!other.getDesiredLoggingService().isEmpty()) { + desiredLoggingService_ = other.desiredLoggingService_; + bitField0_ |= 0x00010000; + 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.hasDesiredReleaseChannel()) { + mergeDesiredReleaseChannel(other.getDesiredReleaseChannel()); + } + if (other.hasDesiredL4IlbSubsettingConfig()) { + mergeDesiredL4IlbSubsettingConfig(other.getDesiredL4IlbSubsettingConfig()); + } + if (other.desiredDatapathProvider_ != 0) { + setDesiredDatapathProviderValue(other.getDesiredDatapathProviderValue()); + } + if (other.desiredPrivateIpv6GoogleAccess_ != 0) { + setDesiredPrivateIpv6GoogleAccessValue(other.getDesiredPrivateIpv6GoogleAccessValue()); + } + if (other.hasDesiredNotificationConfig()) { + mergeDesiredNotificationConfig(other.getDesiredNotificationConfig()); + } + if (other.hasDesiredAuthenticatorGroupsConfig()) { + mergeDesiredAuthenticatorGroupsConfig(other.getDesiredAuthenticatorGroupsConfig()); + } + if (other.hasDesiredLoggingConfig()) { + mergeDesiredLoggingConfig(other.getDesiredLoggingConfig()); + } + if (other.hasDesiredMonitoringConfig()) { + mergeDesiredMonitoringConfig(other.getDesiredMonitoringConfig()); + } + if (other.hasDesiredIdentityServiceConfig()) { + mergeDesiredIdentityServiceConfig(other.getDesiredIdentityServiceConfig()); + } + if (other.hasDesiredServiceExternalIpsConfig()) { + mergeDesiredServiceExternalIpsConfig(other.getDesiredServiceExternalIpsConfig()); + } + if (other.hasDesiredEnablePrivateEndpoint()) { + setDesiredEnablePrivateEndpoint(other.getDesiredEnablePrivateEndpoint()); + } + if (!other.getDesiredMasterVersion().isEmpty()) { + desiredMasterVersion_ = other.desiredMasterVersion_; + bitField1_ |= 0x00000002; + onChanged(); + } + if (other.hasDesiredGcfsConfig()) { + mergeDesiredGcfsConfig(other.getDesiredGcfsConfig()); + } + if (other.hasDesiredNodePoolAutoConfigNetworkTags()) { + mergeDesiredNodePoolAutoConfigNetworkTags(other.getDesiredNodePoolAutoConfigNetworkTags()); + } + if (other.hasDesiredGatewayApiConfig()) { + mergeDesiredGatewayApiConfig(other.getDesiredGatewayApiConfig()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField1_ |= 0x00000020; + onChanged(); + } + if (other.hasDesiredNodePoolLoggingConfig()) { + mergeDesiredNodePoolLoggingConfig(other.getDesiredNodePoolLoggingConfig()); + } + if (other.hasDesiredFleet()) { + mergeDesiredFleet(other.getDesiredFleet()); + } + if (other.desiredStackType_ != 0) { + setDesiredStackTypeValue(other.getDesiredStackTypeValue()); + } + if (other.hasAdditionalPodRangesConfig()) { + mergeAdditionalPodRangesConfig(other.getAdditionalPodRangesConfig()); + } + if (other.hasRemovedAdditionalPodRangesConfig()) { + mergeRemovedAdditionalPodRangesConfig(other.getRemovedAdditionalPodRangesConfig()); + } + if (other.hasEnableK8SBetaApis()) { + mergeEnableK8SBetaApis(other.getEnableK8SBetaApis()); + } + if (other.hasDesiredSecurityPostureConfig()) { + mergeDesiredSecurityPostureConfig(other.getDesiredSecurityPostureConfig()); + } + if (other.hasDesiredNetworkPerformanceConfig()) { + mergeDesiredNetworkPerformanceConfig(other.getDesiredNetworkPerformanceConfig()); + } + if (other.hasDesiredEnableFqdnNetworkPolicy()) { + setDesiredEnableFqdnNetworkPolicy(other.getDesiredEnableFqdnNetworkPolicy()); + } + if (other.hasDesiredAutopilotWorkloadPolicyConfig()) { + mergeDesiredAutopilotWorkloadPolicyConfig(other.getDesiredAutopilotWorkloadPolicyConfig()); + } + if (other.hasDesiredK8SBetaApis()) { + mergeDesiredK8SBetaApis(other.getDesiredK8SBetaApis()); + } + if (other.hasDesiredNodePoolAutoConfigResourceManagerTags()) { + mergeDesiredNodePoolAutoConfigResourceManagerTags(other.getDesiredNodePoolAutoConfigResourceManagerTags()); + } + if (other.hasDesiredInTransitEncryptionConfig()) { + setDesiredInTransitEncryptionConfig(other.getDesiredInTransitEncryptionConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 34: { + desiredNodeVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 34 + case 42: { + desiredMonitoringService_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 42 + case 50: { + input.readMessage( + getDesiredAddonsConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 50 + case 58: { + desiredNodePoolId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 58 + case 66: { + desiredImageType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 66 + case 74: { + input.readMessage( + getDesiredNodePoolAutoscalingFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 74 + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + ensureDesiredLocationsIsMutable(); + desiredLocations_.add(s); + break; + } // case 82 + case 98: { + input.readMessage( + getDesiredMasterAuthorizedNetworksConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 98 + case 122: { + input.readMessage( + getDesiredClusterAutoscalingFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 122 + case 130: { + input.readMessage( + getDesiredBinaryAuthorizationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 130 + case 154: { + desiredLoggingService_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00010000; + break; + } // case 154 + case 170: { + input.readMessage( + getDesiredResourceUsageExportConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 170 + case 178: { + input.readMessage( + getDesiredVerticalPodAutoscalingFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00040000; + break; + } // case 178 + case 202: { + input.readMessage( + getDesiredPrivateClusterConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00080000; + break; + } // case 202 + case 210: { + input.readMessage( + getDesiredIntraNodeVisibilityConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00100000; + break; + } // case 210 + case 226: { + input.readMessage( + getDesiredDefaultSnatStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00200000; + break; + } // case 226 + case 250: { + input.readMessage( + getDesiredReleaseChannelFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00400000; + break; + } // case 250 + case 314: { + input.readMessage( + getDesiredL4IlbSubsettingConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00800000; + break; + } // case 314 + case 370: { + input.readMessage( + getDesiredDatabaseEncryptionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 370 + case 378: { + input.readMessage( + getDesiredWorkloadIdentityConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 378 + case 386: { + input.readMessage( + getDesiredShieldedNodesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 386 + case 394: { + input.readMessage( + getDesiredCostManagementConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 394 + case 400: { + desiredDatapathProvider_ = input.readEnum(); + bitField0_ |= 0x01000000; + break; + } // case 400 + case 408: { + desiredPrivateIpv6GoogleAccess_ = input.readEnum(); + bitField0_ |= 0x02000000; + break; + } // case 408 + case 426: { + input.readMessage( + getDesiredDnsConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 426 + case 442: { + input.readMessage( + getDesiredNotificationConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x04000000; + break; + } // case 442 + case 482: { + input.readMessage( + getDesiredServiceExternalIpsConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x80000000; + break; + } // case 482 + case 506: { + input.readMessage( + getDesiredAuthenticatorGroupsConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x08000000; + break; + } // case 506 + case 514: { + input.readMessage( + getDesiredLoggingConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x10000000; + break; + } // case 514 + case 522: { + input.readMessage( + getDesiredMonitoringConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x20000000; + break; + } // case 522 + case 530: { + input.readMessage( + getDesiredIdentityServiceConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x40000000; + break; + } // case 530 + case 538: { + input.readMessage( + getDesiredMeshCertificatesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 538 + case 568: { + desiredEnablePrivateEndpoint_ = input.readBool(); + bitField1_ |= 0x00000001; + break; + } // case 568 + case 802: { + desiredMasterVersion_ = input.readStringRequireUtf8(); + bitField1_ |= 0x00000002; + break; + } // case 802 + case 874: { + input.readMessage( + getDesiredGcfsConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000004; + break; + } // case 874 + case 882: { + input.readMessage( + getDesiredNodePoolAutoConfigNetworkTagsFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000008; + break; + } // case 882 + case 914: { + input.readMessage( + getDesiredGatewayApiConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000010; + break; + } // case 914 + case 922: { + etag_ = input.readStringRequireUtf8(); + bitField1_ |= 0x00000020; + break; + } // case 922 + case 930: { + input.readMessage( + getDesiredNodePoolLoggingConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000040; + break; + } // case 930 + case 938: { + input.readMessage( + getDesiredFleetFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000080; + break; + } // case 938 + case 952: { + desiredStackType_ = input.readEnum(); + bitField1_ |= 0x00000100; + break; + } // case 952 + case 962: { + input.readMessage( + getAdditionalPodRangesConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000200; + break; + } // case 962 + case 970: { + input.readMessage( + getRemovedAdditionalPodRangesConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000400; + break; + } // case 970 + case 978: { + input.readMessage( + getEnableK8SBetaApisFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000800; + break; + } // case 978 + case 994: { + input.readMessage( + getDesiredSecurityPostureConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00001000; + break; + } // case 994 + case 1002: { + input.readMessage( + getDesiredNetworkPerformanceConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00002000; + break; + } // case 1002 + case 1008: { + desiredEnableFqdnNetworkPolicy_ = input.readBool(); + bitField1_ |= 0x00004000; + break; + } // case 1008 + case 1026: { + input.readMessage( + getDesiredAutopilotWorkloadPolicyConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00008000; + break; + } // case 1026 + case 1050: { + input.readMessage( + getDesiredK8SBetaApisFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00010000; + break; + } // case 1050 + case 1090: { + input.readMessage( + getDesiredNodePoolAutoConfigResourceManagerTagsFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00020000; + break; + } // case 1090 + case 1096: { + desiredInTransitEncryptionConfig_ = input.readEnum(); + bitField1_ |= 0x00040000; + break; + } // case 1096 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + private int bitField1_; + + 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; + bitField0_ |= 0x00000001; + 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(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + 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; + bitField0_ |= 0x00000002; + 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(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.container.v1.AddonsConfig desiredAddonsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AddonsConfig, com.google.container.v1.AddonsConfig.Builder, com.google.container.v1.AddonsConfigOrBuilder> desiredAddonsConfigBuilder_; + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1.AddonsConfig desired_addons_config = 6; + * @return Whether the desiredAddonsConfig field is set. + */ + public boolean hasDesiredAddonsConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1.AddonsConfig desired_addons_config = 6; + * @return The desiredAddonsConfig. + */ + public com.google.container.v1.AddonsConfig getDesiredAddonsConfig() { + if (desiredAddonsConfigBuilder_ == null) { + return desiredAddonsConfig_ == null ? com.google.container.v1.AddonsConfig.getDefaultInstance() : desiredAddonsConfig_; + } else { + return desiredAddonsConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1.AddonsConfig desired_addons_config = 6; + */ + public Builder setDesiredAddonsConfig(com.google.container.v1.AddonsConfig value) { + if (desiredAddonsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredAddonsConfig_ = value; + } else { + desiredAddonsConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1.AddonsConfig desired_addons_config = 6; + */ + public Builder setDesiredAddonsConfig( + com.google.container.v1.AddonsConfig.Builder builderForValue) { + if (desiredAddonsConfigBuilder_ == null) { + desiredAddonsConfig_ = builderForValue.build(); + } else { + desiredAddonsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1.AddonsConfig desired_addons_config = 6; + */ + public Builder mergeDesiredAddonsConfig(com.google.container.v1.AddonsConfig value) { + if (desiredAddonsConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + desiredAddonsConfig_ != null && + desiredAddonsConfig_ != com.google.container.v1.AddonsConfig.getDefaultInstance()) { + getDesiredAddonsConfigBuilder().mergeFrom(value); + } else { + desiredAddonsConfig_ = value; + } + } else { + desiredAddonsConfigBuilder_.mergeFrom(value); + } + if (desiredAddonsConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1.AddonsConfig desired_addons_config = 6; + */ + public Builder clearDesiredAddonsConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + desiredAddonsConfig_ = null; + if (desiredAddonsConfigBuilder_ != null) { + desiredAddonsConfigBuilder_.dispose(); + desiredAddonsConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1.AddonsConfig desired_addons_config = 6; + */ + public com.google.container.v1.AddonsConfig.Builder getDesiredAddonsConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getDesiredAddonsConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1.AddonsConfig desired_addons_config = 6; + */ + public com.google.container.v1.AddonsConfigOrBuilder getDesiredAddonsConfigOrBuilder() { + if (desiredAddonsConfigBuilder_ != null) { + return desiredAddonsConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredAddonsConfig_ == null ? + com.google.container.v1.AddonsConfig.getDefaultInstance() : desiredAddonsConfig_; + } + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1.AddonsConfig desired_addons_config = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AddonsConfig, com.google.container.v1.AddonsConfig.Builder, com.google.container.v1.AddonsConfigOrBuilder> + getDesiredAddonsConfigFieldBuilder() { + if (desiredAddonsConfigBuilder_ == null) { + desiredAddonsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AddonsConfig, com.google.container.v1.AddonsConfig.Builder, com.google.container.v1.AddonsConfigOrBuilder>( + getDesiredAddonsConfig(), + getParentForChildren(), + isClean()); + desiredAddonsConfig_ = null; + } + return desiredAddonsConfigBuilder_; + } + + private java.lang.Object desiredNodePoolId_ = ""; + /** + *
+     * The node pool to be upgraded. This field is mandatory if
+     * "desired_node_version", "desired_image_family" or
+     * "desired_node_pool_autoscaling" is specified and there is more than one
+     * node pool on the cluster.
+     * 
+ * + * string desired_node_pool_id = 7; + * @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" or
+     * "desired_node_pool_autoscaling" 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" or
+     * "desired_node_pool_autoscaling" 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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The node pool to be upgraded. This field is mandatory if
+     * "desired_node_version", "desired_image_family" or
+     * "desired_node_pool_autoscaling" is specified and there is more than one
+     * node pool on the cluster.
+     * 
+ * + * string desired_node_pool_id = 7; + * @return This builder for chaining. + */ + public Builder clearDesiredNodePoolId() { + desiredNodePoolId_ = getDefaultInstance().getDesiredNodePoolId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * The node pool to be upgraded. This field is mandatory if
+     * "desired_node_version", "desired_image_family" or
+     * "desired_node_pool_autoscaling" is specified and there is more than one
+     * node pool on the cluster.
+     * 
+ * + * string desired_node_pool_id = 7; + * @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; + bitField0_ |= 0x00000008; + 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; + bitField0_ |= 0x00000010; + 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(); + bitField0_ = (bitField0_ & ~0x00000010); + 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; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.container.v1.DatabaseEncryption desiredDatabaseEncryption_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DatabaseEncryption, com.google.container.v1.DatabaseEncryption.Builder, com.google.container.v1.DatabaseEncryptionOrBuilder> desiredDatabaseEncryptionBuilder_; + /** + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; + * @return Whether the desiredDatabaseEncryption field is set. + */ + public boolean hasDesiredDatabaseEncryption() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; + * @return The desiredDatabaseEncryption. + */ + public com.google.container.v1.DatabaseEncryption getDesiredDatabaseEncryption() { + if (desiredDatabaseEncryptionBuilder_ == null) { + return desiredDatabaseEncryption_ == null ? com.google.container.v1.DatabaseEncryption.getDefaultInstance() : desiredDatabaseEncryption_; + } else { + return desiredDatabaseEncryptionBuilder_.getMessage(); + } + } + /** + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; + */ + public Builder setDesiredDatabaseEncryption(com.google.container.v1.DatabaseEncryption value) { + if (desiredDatabaseEncryptionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredDatabaseEncryption_ = value; + } else { + desiredDatabaseEncryptionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; + */ + public Builder setDesiredDatabaseEncryption( + com.google.container.v1.DatabaseEncryption.Builder builderForValue) { + if (desiredDatabaseEncryptionBuilder_ == null) { + desiredDatabaseEncryption_ = builderForValue.build(); + } else { + desiredDatabaseEncryptionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; + */ + public Builder mergeDesiredDatabaseEncryption(com.google.container.v1.DatabaseEncryption value) { + if (desiredDatabaseEncryptionBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && + desiredDatabaseEncryption_ != null && + desiredDatabaseEncryption_ != com.google.container.v1.DatabaseEncryption.getDefaultInstance()) { + getDesiredDatabaseEncryptionBuilder().mergeFrom(value); + } else { + desiredDatabaseEncryption_ = value; + } + } else { + desiredDatabaseEncryptionBuilder_.mergeFrom(value); + } + if (desiredDatabaseEncryption_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; + */ + public Builder clearDesiredDatabaseEncryption() { + bitField0_ = (bitField0_ & ~0x00000020); + desiredDatabaseEncryption_ = null; + if (desiredDatabaseEncryptionBuilder_ != null) { + desiredDatabaseEncryptionBuilder_.dispose(); + desiredDatabaseEncryptionBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; + */ + public com.google.container.v1.DatabaseEncryption.Builder getDesiredDatabaseEncryptionBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getDesiredDatabaseEncryptionFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; + */ + public com.google.container.v1.DatabaseEncryptionOrBuilder getDesiredDatabaseEncryptionOrBuilder() { + if (desiredDatabaseEncryptionBuilder_ != null) { + return desiredDatabaseEncryptionBuilder_.getMessageOrBuilder(); + } else { + return desiredDatabaseEncryption_ == null ? + com.google.container.v1.DatabaseEncryption.getDefaultInstance() : desiredDatabaseEncryption_; + } + } + /** + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DatabaseEncryption, com.google.container.v1.DatabaseEncryption.Builder, com.google.container.v1.DatabaseEncryptionOrBuilder> + getDesiredDatabaseEncryptionFieldBuilder() { + if (desiredDatabaseEncryptionBuilder_ == null) { + desiredDatabaseEncryptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DatabaseEncryption, com.google.container.v1.DatabaseEncryption.Builder, com.google.container.v1.DatabaseEncryptionOrBuilder>( + getDesiredDatabaseEncryption(), + getParentForChildren(), + isClean()); + desiredDatabaseEncryption_ = null; + } + return desiredDatabaseEncryptionBuilder_; + } + + private com.google.container.v1.WorkloadIdentityConfig desiredWorkloadIdentityConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WorkloadIdentityConfig, com.google.container.v1.WorkloadIdentityConfig.Builder, com.google.container.v1.WorkloadIdentityConfigOrBuilder> desiredWorkloadIdentityConfigBuilder_; + /** + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * @return Whether the desiredWorkloadIdentityConfig field is set. + */ + public boolean hasDesiredWorkloadIdentityConfig() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * @return The desiredWorkloadIdentityConfig. + */ + public com.google.container.v1.WorkloadIdentityConfig getDesiredWorkloadIdentityConfig() { + if (desiredWorkloadIdentityConfigBuilder_ == null) { + return desiredWorkloadIdentityConfig_ == null ? com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance() : desiredWorkloadIdentityConfig_; + } else { + return desiredWorkloadIdentityConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + */ + public Builder setDesiredWorkloadIdentityConfig(com.google.container.v1.WorkloadIdentityConfig value) { + if (desiredWorkloadIdentityConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredWorkloadIdentityConfig_ = value; + } else { + desiredWorkloadIdentityConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + */ + public Builder setDesiredWorkloadIdentityConfig( + com.google.container.v1.WorkloadIdentityConfig.Builder builderForValue) { + if (desiredWorkloadIdentityConfigBuilder_ == null) { + desiredWorkloadIdentityConfig_ = builderForValue.build(); + } else { + desiredWorkloadIdentityConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + */ + public Builder mergeDesiredWorkloadIdentityConfig(com.google.container.v1.WorkloadIdentityConfig value) { + if (desiredWorkloadIdentityConfigBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) && + desiredWorkloadIdentityConfig_ != null && + desiredWorkloadIdentityConfig_ != com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance()) { + getDesiredWorkloadIdentityConfigBuilder().mergeFrom(value); + } else { + desiredWorkloadIdentityConfig_ = value; + } + } else { + desiredWorkloadIdentityConfigBuilder_.mergeFrom(value); + } + if (desiredWorkloadIdentityConfig_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + */ + public Builder clearDesiredWorkloadIdentityConfig() { + bitField0_ = (bitField0_ & ~0x00000040); + desiredWorkloadIdentityConfig_ = null; + if (desiredWorkloadIdentityConfigBuilder_ != null) { + desiredWorkloadIdentityConfigBuilder_.dispose(); + desiredWorkloadIdentityConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + */ + public com.google.container.v1.WorkloadIdentityConfig.Builder getDesiredWorkloadIdentityConfigBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getDesiredWorkloadIdentityConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + */ + public com.google.container.v1.WorkloadIdentityConfigOrBuilder getDesiredWorkloadIdentityConfigOrBuilder() { + if (desiredWorkloadIdentityConfigBuilder_ != null) { + return desiredWorkloadIdentityConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredWorkloadIdentityConfig_ == null ? + com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance() : desiredWorkloadIdentityConfig_; + } + } + /** + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WorkloadIdentityConfig, com.google.container.v1.WorkloadIdentityConfig.Builder, com.google.container.v1.WorkloadIdentityConfigOrBuilder> + getDesiredWorkloadIdentityConfigFieldBuilder() { + if (desiredWorkloadIdentityConfigBuilder_ == null) { + desiredWorkloadIdentityConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WorkloadIdentityConfig, com.google.container.v1.WorkloadIdentityConfig.Builder, com.google.container.v1.WorkloadIdentityConfigOrBuilder>( + getDesiredWorkloadIdentityConfig(), + getParentForChildren(), + isClean()); + desiredWorkloadIdentityConfig_ = null; + } + return desiredWorkloadIdentityConfigBuilder_; + } + + private com.google.container.v1.MeshCertificates desiredMeshCertificates_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MeshCertificates, com.google.container.v1.MeshCertificates.Builder, com.google.container.v1.MeshCertificatesOrBuilder> desiredMeshCertificatesBuilder_; + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + * @return Whether the desiredMeshCertificates field is set. + */ + public boolean hasDesiredMeshCertificates() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + * @return The desiredMeshCertificates. + */ + public com.google.container.v1.MeshCertificates getDesiredMeshCertificates() { + if (desiredMeshCertificatesBuilder_ == null) { + return desiredMeshCertificates_ == null ? com.google.container.v1.MeshCertificates.getDefaultInstance() : desiredMeshCertificates_; + } else { + return desiredMeshCertificatesBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + */ + public Builder setDesiredMeshCertificates(com.google.container.v1.MeshCertificates value) { + if (desiredMeshCertificatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredMeshCertificates_ = value; + } else { + desiredMeshCertificatesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + */ + public Builder setDesiredMeshCertificates( + com.google.container.v1.MeshCertificates.Builder builderForValue) { + if (desiredMeshCertificatesBuilder_ == null) { + desiredMeshCertificates_ = builderForValue.build(); + } else { + desiredMeshCertificatesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + */ + public Builder mergeDesiredMeshCertificates(com.google.container.v1.MeshCertificates value) { + if (desiredMeshCertificatesBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) && + desiredMeshCertificates_ != null && + desiredMeshCertificates_ != com.google.container.v1.MeshCertificates.getDefaultInstance()) { + getDesiredMeshCertificatesBuilder().mergeFrom(value); + } else { + desiredMeshCertificates_ = value; + } + } else { + desiredMeshCertificatesBuilder_.mergeFrom(value); + } + if (desiredMeshCertificates_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + */ + public Builder clearDesiredMeshCertificates() { + bitField0_ = (bitField0_ & ~0x00000080); + desiredMeshCertificates_ = null; + if (desiredMeshCertificatesBuilder_ != null) { + desiredMeshCertificatesBuilder_.dispose(); + desiredMeshCertificatesBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + */ + public com.google.container.v1.MeshCertificates.Builder getDesiredMeshCertificatesBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getDesiredMeshCertificatesFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + */ + public com.google.container.v1.MeshCertificatesOrBuilder getDesiredMeshCertificatesOrBuilder() { + if (desiredMeshCertificatesBuilder_ != null) { + return desiredMeshCertificatesBuilder_.getMessageOrBuilder(); + } else { + return desiredMeshCertificates_ == null ? + com.google.container.v1.MeshCertificates.getDefaultInstance() : desiredMeshCertificates_; + } + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MeshCertificates, com.google.container.v1.MeshCertificates.Builder, com.google.container.v1.MeshCertificatesOrBuilder> + getDesiredMeshCertificatesFieldBuilder() { + if (desiredMeshCertificatesBuilder_ == null) { + desiredMeshCertificatesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MeshCertificates, com.google.container.v1.MeshCertificates.Builder, com.google.container.v1.MeshCertificatesOrBuilder>( + getDesiredMeshCertificates(), + getParentForChildren(), + isClean()); + desiredMeshCertificates_ = null; + } + return desiredMeshCertificatesBuilder_; + } + + private com.google.container.v1.ShieldedNodes desiredShieldedNodes_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ShieldedNodes, com.google.container.v1.ShieldedNodes.Builder, com.google.container.v1.ShieldedNodesOrBuilder> desiredShieldedNodesBuilder_; + /** + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + * @return Whether the desiredShieldedNodes field is set. + */ + public boolean hasDesiredShieldedNodes() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + * @return The desiredShieldedNodes. + */ + public com.google.container.v1.ShieldedNodes getDesiredShieldedNodes() { + if (desiredShieldedNodesBuilder_ == null) { + return desiredShieldedNodes_ == null ? com.google.container.v1.ShieldedNodes.getDefaultInstance() : desiredShieldedNodes_; + } else { + return desiredShieldedNodesBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + */ + public Builder setDesiredShieldedNodes(com.google.container.v1.ShieldedNodes value) { + if (desiredShieldedNodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredShieldedNodes_ = value; + } else { + desiredShieldedNodesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + */ + public Builder setDesiredShieldedNodes( + com.google.container.v1.ShieldedNodes.Builder builderForValue) { + if (desiredShieldedNodesBuilder_ == null) { + desiredShieldedNodes_ = builderForValue.build(); + } else { + desiredShieldedNodesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + */ + public Builder mergeDesiredShieldedNodes(com.google.container.v1.ShieldedNodes value) { + if (desiredShieldedNodesBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) && + desiredShieldedNodes_ != null && + desiredShieldedNodes_ != com.google.container.v1.ShieldedNodes.getDefaultInstance()) { + getDesiredShieldedNodesBuilder().mergeFrom(value); + } else { + desiredShieldedNodes_ = value; + } + } else { + desiredShieldedNodesBuilder_.mergeFrom(value); + } + if (desiredShieldedNodes_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + */ + public Builder clearDesiredShieldedNodes() { + bitField0_ = (bitField0_ & ~0x00000100); + desiredShieldedNodes_ = null; + if (desiredShieldedNodesBuilder_ != null) { + desiredShieldedNodesBuilder_.dispose(); + desiredShieldedNodesBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + */ + public com.google.container.v1.ShieldedNodes.Builder getDesiredShieldedNodesBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getDesiredShieldedNodesFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + */ + public com.google.container.v1.ShieldedNodesOrBuilder getDesiredShieldedNodesOrBuilder() { + if (desiredShieldedNodesBuilder_ != null) { + return desiredShieldedNodesBuilder_.getMessageOrBuilder(); + } else { + return desiredShieldedNodes_ == null ? + com.google.container.v1.ShieldedNodes.getDefaultInstance() : desiredShieldedNodes_; + } + } + /** + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ShieldedNodes, com.google.container.v1.ShieldedNodes.Builder, com.google.container.v1.ShieldedNodesOrBuilder> + getDesiredShieldedNodesFieldBuilder() { + if (desiredShieldedNodesBuilder_ == null) { + desiredShieldedNodesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ShieldedNodes, com.google.container.v1.ShieldedNodes.Builder, com.google.container.v1.ShieldedNodesOrBuilder>( + getDesiredShieldedNodes(), + getParentForChildren(), + isClean()); + desiredShieldedNodes_ = null; + } + return desiredShieldedNodesBuilder_; + } + + private com.google.container.v1.CostManagementConfig desiredCostManagementConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.CostManagementConfig, com.google.container.v1.CostManagementConfig.Builder, com.google.container.v1.CostManagementConfigOrBuilder> desiredCostManagementConfigBuilder_; + /** + *
+     * The desired configuration for the fine-grained cost management feature.
+     * 
+ * + * .google.container.v1.CostManagementConfig desired_cost_management_config = 49; + * @return Whether the desiredCostManagementConfig field is set. + */ + public boolean hasDesiredCostManagementConfig() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + *
+     * The desired configuration for the fine-grained cost management feature.
+     * 
+ * + * .google.container.v1.CostManagementConfig desired_cost_management_config = 49; + * @return The desiredCostManagementConfig. + */ + public com.google.container.v1.CostManagementConfig getDesiredCostManagementConfig() { + if (desiredCostManagementConfigBuilder_ == null) { + return desiredCostManagementConfig_ == null ? com.google.container.v1.CostManagementConfig.getDefaultInstance() : desiredCostManagementConfig_; + } else { + return desiredCostManagementConfigBuilder_.getMessage(); + } + } + /** + *
+     * The desired configuration for the fine-grained cost management feature.
+     * 
+ * + * .google.container.v1.CostManagementConfig desired_cost_management_config = 49; + */ + public Builder setDesiredCostManagementConfig(com.google.container.v1.CostManagementConfig value) { + if (desiredCostManagementConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredCostManagementConfig_ = value; + } else { + desiredCostManagementConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * The desired configuration for the fine-grained cost management feature.
+     * 
+ * + * .google.container.v1.CostManagementConfig desired_cost_management_config = 49; + */ + public Builder setDesiredCostManagementConfig( + com.google.container.v1.CostManagementConfig.Builder builderForValue) { + if (desiredCostManagementConfigBuilder_ == null) { + desiredCostManagementConfig_ = builderForValue.build(); + } else { + desiredCostManagementConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * The desired configuration for the fine-grained cost management feature.
+     * 
+ * + * .google.container.v1.CostManagementConfig desired_cost_management_config = 49; + */ + public Builder mergeDesiredCostManagementConfig(com.google.container.v1.CostManagementConfig value) { + if (desiredCostManagementConfigBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) && + desiredCostManagementConfig_ != null && + desiredCostManagementConfig_ != com.google.container.v1.CostManagementConfig.getDefaultInstance()) { + getDesiredCostManagementConfigBuilder().mergeFrom(value); + } else { + desiredCostManagementConfig_ = value; + } + } else { + desiredCostManagementConfigBuilder_.mergeFrom(value); + } + if (desiredCostManagementConfig_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + /** + *
+     * The desired configuration for the fine-grained cost management feature.
+     * 
+ * + * .google.container.v1.CostManagementConfig desired_cost_management_config = 49; + */ + public Builder clearDesiredCostManagementConfig() { + bitField0_ = (bitField0_ & ~0x00000200); + desiredCostManagementConfig_ = null; + if (desiredCostManagementConfigBuilder_ != null) { + desiredCostManagementConfigBuilder_.dispose(); + desiredCostManagementConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired configuration for the fine-grained cost management feature.
+     * 
+ * + * .google.container.v1.CostManagementConfig desired_cost_management_config = 49; + */ + public com.google.container.v1.CostManagementConfig.Builder getDesiredCostManagementConfigBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getDesiredCostManagementConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The desired configuration for the fine-grained cost management feature.
+     * 
+ * + * .google.container.v1.CostManagementConfig desired_cost_management_config = 49; + */ + public com.google.container.v1.CostManagementConfigOrBuilder getDesiredCostManagementConfigOrBuilder() { + if (desiredCostManagementConfigBuilder_ != null) { + return desiredCostManagementConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredCostManagementConfig_ == null ? + com.google.container.v1.CostManagementConfig.getDefaultInstance() : desiredCostManagementConfig_; + } + } + /** + *
+     * The desired configuration for the fine-grained cost management feature.
+     * 
+ * + * .google.container.v1.CostManagementConfig desired_cost_management_config = 49; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.CostManagementConfig, com.google.container.v1.CostManagementConfig.Builder, com.google.container.v1.CostManagementConfigOrBuilder> + getDesiredCostManagementConfigFieldBuilder() { + if (desiredCostManagementConfigBuilder_ == null) { + desiredCostManagementConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.CostManagementConfig, com.google.container.v1.CostManagementConfig.Builder, com.google.container.v1.CostManagementConfigOrBuilder>( + getDesiredCostManagementConfig(), + getParentForChildren(), + isClean()); + desiredCostManagementConfig_ = null; + } + return desiredCostManagementConfigBuilder_; + } + + private com.google.container.v1.DNSConfig desiredDnsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DNSConfig, com.google.container.v1.DNSConfig.Builder, com.google.container.v1.DNSConfigOrBuilder> desiredDnsConfigBuilder_; + /** + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + * @return Whether the desiredDnsConfig field is set. + */ + public boolean hasDesiredDnsConfig() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + * @return The desiredDnsConfig. + */ + public com.google.container.v1.DNSConfig getDesiredDnsConfig() { + if (desiredDnsConfigBuilder_ == null) { + return desiredDnsConfig_ == null ? com.google.container.v1.DNSConfig.getDefaultInstance() : desiredDnsConfig_; + } else { + return desiredDnsConfigBuilder_.getMessage(); + } + } + /** + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + */ + public Builder setDesiredDnsConfig(com.google.container.v1.DNSConfig value) { + if (desiredDnsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredDnsConfig_ = value; + } else { + desiredDnsConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + */ + public Builder setDesiredDnsConfig( + com.google.container.v1.DNSConfig.Builder builderForValue) { + if (desiredDnsConfigBuilder_ == null) { + desiredDnsConfig_ = builderForValue.build(); + } else { + desiredDnsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + */ + public Builder mergeDesiredDnsConfig(com.google.container.v1.DNSConfig value) { + if (desiredDnsConfigBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) && + desiredDnsConfig_ != null && + desiredDnsConfig_ != com.google.container.v1.DNSConfig.getDefaultInstance()) { + getDesiredDnsConfigBuilder().mergeFrom(value); + } else { + desiredDnsConfig_ = value; + } + } else { + desiredDnsConfigBuilder_.mergeFrom(value); + } + if (desiredDnsConfig_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + /** + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + */ + public Builder clearDesiredDnsConfig() { + bitField0_ = (bitField0_ & ~0x00000400); + desiredDnsConfig_ = null; + if (desiredDnsConfigBuilder_ != null) { + desiredDnsConfigBuilder_.dispose(); + desiredDnsConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + */ + public com.google.container.v1.DNSConfig.Builder getDesiredDnsConfigBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getDesiredDnsConfigFieldBuilder().getBuilder(); + } + /** + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + */ + public com.google.container.v1.DNSConfigOrBuilder getDesiredDnsConfigOrBuilder() { + if (desiredDnsConfigBuilder_ != null) { + return desiredDnsConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredDnsConfig_ == null ? + com.google.container.v1.DNSConfig.getDefaultInstance() : desiredDnsConfig_; + } + } + /** + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DNSConfig, com.google.container.v1.DNSConfig.Builder, com.google.container.v1.DNSConfigOrBuilder> + getDesiredDnsConfigFieldBuilder() { + if (desiredDnsConfigBuilder_ == null) { + desiredDnsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DNSConfig, com.google.container.v1.DNSConfig.Builder, com.google.container.v1.DNSConfigOrBuilder>( + getDesiredDnsConfig(), + getParentForChildren(), + isClean()); + desiredDnsConfig_ = null; + } + return desiredDnsConfigBuilder_; + } + + private com.google.container.v1.NodePoolAutoscaling desiredNodePoolAutoscaling_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePoolAutoscaling, com.google.container.v1.NodePoolAutoscaling.Builder, com.google.container.v1.NodePoolAutoscalingOrBuilder> desiredNodePoolAutoscalingBuilder_; + /** + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + * @return Whether the desiredNodePoolAutoscaling field is set. + */ + public boolean hasDesiredNodePoolAutoscaling() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + *
+     * Autoscaler configuration for the node pool specified in
+     * desired_node_pool_id. If there is only one pool in the
+     * cluster and desired_node_pool_id is not provided then
+     * the change applies to that single node pool.
+     * 
+ * + * .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + * @return The desiredNodePoolAutoscaling. + */ + public com.google.container.v1.NodePoolAutoscaling getDesiredNodePoolAutoscaling() { + if (desiredNodePoolAutoscalingBuilder_ == null) { + return desiredNodePoolAutoscaling_ == null ? com.google.container.v1.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.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public Builder setDesiredNodePoolAutoscaling(com.google.container.v1.NodePoolAutoscaling value) { + if (desiredNodePoolAutoscalingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredNodePoolAutoscaling_ = value; + } else { + desiredNodePoolAutoscalingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + 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.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public Builder setDesiredNodePoolAutoscaling( + com.google.container.v1.NodePoolAutoscaling.Builder builderForValue) { + if (desiredNodePoolAutoscalingBuilder_ == null) { + desiredNodePoolAutoscaling_ = builderForValue.build(); + } else { + desiredNodePoolAutoscalingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + 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.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public Builder mergeDesiredNodePoolAutoscaling(com.google.container.v1.NodePoolAutoscaling value) { + if (desiredNodePoolAutoscalingBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) && + desiredNodePoolAutoscaling_ != null && + desiredNodePoolAutoscaling_ != com.google.container.v1.NodePoolAutoscaling.getDefaultInstance()) { + getDesiredNodePoolAutoscalingBuilder().mergeFrom(value); + } else { + desiredNodePoolAutoscaling_ = value; + } + } else { + desiredNodePoolAutoscalingBuilder_.mergeFrom(value); + } + if (desiredNodePoolAutoscaling_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + 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.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public Builder clearDesiredNodePoolAutoscaling() { + bitField0_ = (bitField0_ & ~0x00000800); + desiredNodePoolAutoscaling_ = null; + if (desiredNodePoolAutoscalingBuilder_ != null) { + desiredNodePoolAutoscalingBuilder_.dispose(); + desiredNodePoolAutoscalingBuilder_ = null; + } + onChanged(); + 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.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public com.google.container.v1.NodePoolAutoscaling.Builder getDesiredNodePoolAutoscalingBuilder() { + bitField0_ |= 0x00000800; + 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.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + public com.google.container.v1.NodePoolAutoscalingOrBuilder getDesiredNodePoolAutoscalingOrBuilder() { + if (desiredNodePoolAutoscalingBuilder_ != null) { + return desiredNodePoolAutoscalingBuilder_.getMessageOrBuilder(); + } else { + return desiredNodePoolAutoscaling_ == null ? + com.google.container.v1.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.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePoolAutoscaling, com.google.container.v1.NodePoolAutoscaling.Builder, com.google.container.v1.NodePoolAutoscalingOrBuilder> + getDesiredNodePoolAutoscalingFieldBuilder() { + if (desiredNodePoolAutoscalingBuilder_ == null) { + desiredNodePoolAutoscalingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePoolAutoscaling, com.google.container.v1.NodePoolAutoscaling.Builder, com.google.container.v1.NodePoolAutoscalingOrBuilder>( + getDesiredNodePoolAutoscaling(), + getParentForChildren(), + isClean()); + desiredNodePoolAutoscaling_ = null; + } + return desiredNodePoolAutoscalingBuilder_; + } + + private com.google.protobuf.LazyStringArrayList desiredLocations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureDesiredLocationsIsMutable() { + if (!desiredLocations_.isModifiable()) { + desiredLocations_ = new com.google.protobuf.LazyStringArrayList(desiredLocations_); + } + bitField0_ |= 0x00001000; + } + /** + *
+     * 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() { + desiredLocations_.makeImmutable(); + 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); + } + /** + *
+     * 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); + bitField0_ |= 0x00001000; + 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); + bitField0_ |= 0x00001000; + 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_); + bitField0_ |= 0x00001000; + 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.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000);; + 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); + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + private com.google.container.v1.MasterAuthorizedNetworksConfig desiredMasterAuthorizedNetworksConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MasterAuthorizedNetworksConfig, com.google.container.v1.MasterAuthorizedNetworksConfig.Builder, com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder> desiredMasterAuthorizedNetworksConfigBuilder_; + /** + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * @return Whether the desiredMasterAuthorizedNetworksConfig field is set. + */ + public boolean hasDesiredMasterAuthorizedNetworksConfig() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * @return The desiredMasterAuthorizedNetworksConfig. + */ + public com.google.container.v1.MasterAuthorizedNetworksConfig getDesiredMasterAuthorizedNetworksConfig() { + if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { + return desiredMasterAuthorizedNetworksConfig_ == null ? com.google.container.v1.MasterAuthorizedNetworksConfig.getDefaultInstance() : desiredMasterAuthorizedNetworksConfig_; + } else { + return desiredMasterAuthorizedNetworksConfigBuilder_.getMessage(); + } + } + /** + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + public Builder setDesiredMasterAuthorizedNetworksConfig(com.google.container.v1.MasterAuthorizedNetworksConfig value) { + if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredMasterAuthorizedNetworksConfig_ = value; + } else { + desiredMasterAuthorizedNetworksConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + public Builder setDesiredMasterAuthorizedNetworksConfig( + com.google.container.v1.MasterAuthorizedNetworksConfig.Builder builderForValue) { + if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { + desiredMasterAuthorizedNetworksConfig_ = builderForValue.build(); + } else { + desiredMasterAuthorizedNetworksConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + public Builder mergeDesiredMasterAuthorizedNetworksConfig(com.google.container.v1.MasterAuthorizedNetworksConfig value) { + if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) && + desiredMasterAuthorizedNetworksConfig_ != null && + desiredMasterAuthorizedNetworksConfig_ != com.google.container.v1.MasterAuthorizedNetworksConfig.getDefaultInstance()) { + getDesiredMasterAuthorizedNetworksConfigBuilder().mergeFrom(value); + } else { + desiredMasterAuthorizedNetworksConfig_ = value; + } + } else { + desiredMasterAuthorizedNetworksConfigBuilder_.mergeFrom(value); + } + if (desiredMasterAuthorizedNetworksConfig_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } + return this; + } + /** + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + public Builder clearDesiredMasterAuthorizedNetworksConfig() { + bitField0_ = (bitField0_ & ~0x00002000); + desiredMasterAuthorizedNetworksConfig_ = null; + if (desiredMasterAuthorizedNetworksConfigBuilder_ != null) { + desiredMasterAuthorizedNetworksConfigBuilder_.dispose(); + desiredMasterAuthorizedNetworksConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + public com.google.container.v1.MasterAuthorizedNetworksConfig.Builder getDesiredMasterAuthorizedNetworksConfigBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return getDesiredMasterAuthorizedNetworksConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + public com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder getDesiredMasterAuthorizedNetworksConfigOrBuilder() { + if (desiredMasterAuthorizedNetworksConfigBuilder_ != null) { + return desiredMasterAuthorizedNetworksConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredMasterAuthorizedNetworksConfig_ == null ? + com.google.container.v1.MasterAuthorizedNetworksConfig.getDefaultInstance() : desiredMasterAuthorizedNetworksConfig_; + } + } + /** + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MasterAuthorizedNetworksConfig, com.google.container.v1.MasterAuthorizedNetworksConfig.Builder, com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder> + getDesiredMasterAuthorizedNetworksConfigFieldBuilder() { + if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { + desiredMasterAuthorizedNetworksConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MasterAuthorizedNetworksConfig, com.google.container.v1.MasterAuthorizedNetworksConfig.Builder, com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder>( + getDesiredMasterAuthorizedNetworksConfig(), + getParentForChildren(), + isClean()); + desiredMasterAuthorizedNetworksConfig_ = null; + } + return desiredMasterAuthorizedNetworksConfigBuilder_; + } + + private com.google.container.v1.ClusterAutoscaling desiredClusterAutoscaling_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ClusterAutoscaling, com.google.container.v1.ClusterAutoscaling.Builder, com.google.container.v1.ClusterAutoscalingOrBuilder> desiredClusterAutoscalingBuilder_; + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; + * @return Whether the desiredClusterAutoscaling field is set. + */ + public boolean hasDesiredClusterAutoscaling() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; + * @return The desiredClusterAutoscaling. + */ + public com.google.container.v1.ClusterAutoscaling getDesiredClusterAutoscaling() { + if (desiredClusterAutoscalingBuilder_ == null) { + return desiredClusterAutoscaling_ == null ? com.google.container.v1.ClusterAutoscaling.getDefaultInstance() : desiredClusterAutoscaling_; + } else { + return desiredClusterAutoscalingBuilder_.getMessage(); + } + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public Builder setDesiredClusterAutoscaling(com.google.container.v1.ClusterAutoscaling value) { + if (desiredClusterAutoscalingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredClusterAutoscaling_ = value; + } else { + desiredClusterAutoscalingBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public Builder setDesiredClusterAutoscaling( + com.google.container.v1.ClusterAutoscaling.Builder builderForValue) { + if (desiredClusterAutoscalingBuilder_ == null) { + desiredClusterAutoscaling_ = builderForValue.build(); + } else { + desiredClusterAutoscalingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public Builder mergeDesiredClusterAutoscaling(com.google.container.v1.ClusterAutoscaling value) { + if (desiredClusterAutoscalingBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) && + desiredClusterAutoscaling_ != null && + desiredClusterAutoscaling_ != com.google.container.v1.ClusterAutoscaling.getDefaultInstance()) { + getDesiredClusterAutoscalingBuilder().mergeFrom(value); + } else { + desiredClusterAutoscaling_ = value; + } + } else { + desiredClusterAutoscalingBuilder_.mergeFrom(value); + } + if (desiredClusterAutoscaling_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } + return this; + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public Builder clearDesiredClusterAutoscaling() { + bitField0_ = (bitField0_ & ~0x00004000); + desiredClusterAutoscaling_ = null; + if (desiredClusterAutoscalingBuilder_ != null) { + desiredClusterAutoscalingBuilder_.dispose(); + desiredClusterAutoscalingBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public com.google.container.v1.ClusterAutoscaling.Builder getDesiredClusterAutoscalingBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return getDesiredClusterAutoscalingFieldBuilder().getBuilder(); + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public com.google.container.v1.ClusterAutoscalingOrBuilder getDesiredClusterAutoscalingOrBuilder() { + if (desiredClusterAutoscalingBuilder_ != null) { + return desiredClusterAutoscalingBuilder_.getMessageOrBuilder(); + } else { + return desiredClusterAutoscaling_ == null ? + com.google.container.v1.ClusterAutoscaling.getDefaultInstance() : desiredClusterAutoscaling_; + } + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ClusterAutoscaling, com.google.container.v1.ClusterAutoscaling.Builder, com.google.container.v1.ClusterAutoscalingOrBuilder> + getDesiredClusterAutoscalingFieldBuilder() { + if (desiredClusterAutoscalingBuilder_ == null) { + desiredClusterAutoscalingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ClusterAutoscaling, com.google.container.v1.ClusterAutoscaling.Builder, com.google.container.v1.ClusterAutoscalingOrBuilder>( + getDesiredClusterAutoscaling(), + getParentForChildren(), + isClean()); + desiredClusterAutoscaling_ = null; + } + return desiredClusterAutoscalingBuilder_; + } + + private com.google.container.v1.BinaryAuthorization desiredBinaryAuthorization_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.BinaryAuthorization, com.google.container.v1.BinaryAuthorization.Builder, com.google.container.v1.BinaryAuthorizationOrBuilder> desiredBinaryAuthorizationBuilder_; + /** + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; + * @return Whether the desiredBinaryAuthorization field is set. + */ + public boolean hasDesiredBinaryAuthorization() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; + * @return The desiredBinaryAuthorization. + */ + public com.google.container.v1.BinaryAuthorization getDesiredBinaryAuthorization() { + if (desiredBinaryAuthorizationBuilder_ == null) { + return desiredBinaryAuthorization_ == null ? com.google.container.v1.BinaryAuthorization.getDefaultInstance() : desiredBinaryAuthorization_; + } else { + return desiredBinaryAuthorizationBuilder_.getMessage(); + } + } + /** + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; + */ + public Builder setDesiredBinaryAuthorization(com.google.container.v1.BinaryAuthorization value) { + if (desiredBinaryAuthorizationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredBinaryAuthorization_ = value; + } else { + desiredBinaryAuthorizationBuilder_.setMessage(value); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; + */ + public Builder setDesiredBinaryAuthorization( + com.google.container.v1.BinaryAuthorization.Builder builderForValue) { + if (desiredBinaryAuthorizationBuilder_ == null) { + desiredBinaryAuthorization_ = builderForValue.build(); + } else { + desiredBinaryAuthorizationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; + */ + public Builder mergeDesiredBinaryAuthorization(com.google.container.v1.BinaryAuthorization value) { + if (desiredBinaryAuthorizationBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) && + desiredBinaryAuthorization_ != null && + desiredBinaryAuthorization_ != com.google.container.v1.BinaryAuthorization.getDefaultInstance()) { + getDesiredBinaryAuthorizationBuilder().mergeFrom(value); + } else { + desiredBinaryAuthorization_ = value; + } + } else { + desiredBinaryAuthorizationBuilder_.mergeFrom(value); + } + if (desiredBinaryAuthorization_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } + return this; + } + /** + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; + */ + public Builder clearDesiredBinaryAuthorization() { + bitField0_ = (bitField0_ & ~0x00008000); + desiredBinaryAuthorization_ = null; + if (desiredBinaryAuthorizationBuilder_ != null) { + desiredBinaryAuthorizationBuilder_.dispose(); + desiredBinaryAuthorizationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; + */ + public com.google.container.v1.BinaryAuthorization.Builder getDesiredBinaryAuthorizationBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return getDesiredBinaryAuthorizationFieldBuilder().getBuilder(); + } + /** + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; + */ + public com.google.container.v1.BinaryAuthorizationOrBuilder getDesiredBinaryAuthorizationOrBuilder() { + if (desiredBinaryAuthorizationBuilder_ != null) { + return desiredBinaryAuthorizationBuilder_.getMessageOrBuilder(); + } else { + return desiredBinaryAuthorization_ == null ? + com.google.container.v1.BinaryAuthorization.getDefaultInstance() : desiredBinaryAuthorization_; + } + } + /** + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.BinaryAuthorization, com.google.container.v1.BinaryAuthorization.Builder, com.google.container.v1.BinaryAuthorizationOrBuilder> + getDesiredBinaryAuthorizationFieldBuilder() { + if (desiredBinaryAuthorizationBuilder_ == null) { + desiredBinaryAuthorizationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.BinaryAuthorization, com.google.container.v1.BinaryAuthorization.Builder, com.google.container.v1.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; + bitField0_ |= 0x00010000; + 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(); + bitField0_ = (bitField0_ & ~0x00010000); + 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; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + private com.google.container.v1.ResourceUsageExportConfig desiredResourceUsageExportConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ResourceUsageExportConfig, com.google.container.v1.ResourceUsageExportConfig.Builder, com.google.container.v1.ResourceUsageExportConfigOrBuilder> desiredResourceUsageExportConfigBuilder_; + /** + *
+     * The desired configuration for exporting resource usage.
+     * 
+ * + * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * @return Whether the desiredResourceUsageExportConfig field is set. + */ + public boolean hasDesiredResourceUsageExportConfig() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + *
+     * The desired configuration for exporting resource usage.
+     * 
+ * + * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * @return The desiredResourceUsageExportConfig. + */ + public com.google.container.v1.ResourceUsageExportConfig getDesiredResourceUsageExportConfig() { + if (desiredResourceUsageExportConfigBuilder_ == null) { + return desiredResourceUsageExportConfig_ == null ? com.google.container.v1.ResourceUsageExportConfig.getDefaultInstance() : desiredResourceUsageExportConfig_; + } else { + return desiredResourceUsageExportConfigBuilder_.getMessage(); + } + } + /** + *
+     * The desired configuration for exporting resource usage.
+     * 
+ * + * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + */ + public Builder setDesiredResourceUsageExportConfig(com.google.container.v1.ResourceUsageExportConfig value) { + if (desiredResourceUsageExportConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredResourceUsageExportConfig_ = value; + } else { + desiredResourceUsageExportConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + *
+     * The desired configuration for exporting resource usage.
+     * 
+ * + * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + */ + public Builder setDesiredResourceUsageExportConfig( + com.google.container.v1.ResourceUsageExportConfig.Builder builderForValue) { + if (desiredResourceUsageExportConfigBuilder_ == null) { + desiredResourceUsageExportConfig_ = builderForValue.build(); + } else { + desiredResourceUsageExportConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + *
+     * The desired configuration for exporting resource usage.
+     * 
+ * + * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + */ + public Builder mergeDesiredResourceUsageExportConfig(com.google.container.v1.ResourceUsageExportConfig value) { + if (desiredResourceUsageExportConfigBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) && + desiredResourceUsageExportConfig_ != null && + desiredResourceUsageExportConfig_ != com.google.container.v1.ResourceUsageExportConfig.getDefaultInstance()) { + getDesiredResourceUsageExportConfigBuilder().mergeFrom(value); + } else { + desiredResourceUsageExportConfig_ = value; + } + } else { + desiredResourceUsageExportConfigBuilder_.mergeFrom(value); + } + if (desiredResourceUsageExportConfig_ != null) { + bitField0_ |= 0x00020000; + onChanged(); + } + return this; + } + /** + *
+     * The desired configuration for exporting resource usage.
+     * 
+ * + * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + */ + public Builder clearDesiredResourceUsageExportConfig() { + bitField0_ = (bitField0_ & ~0x00020000); + desiredResourceUsageExportConfig_ = null; + if (desiredResourceUsageExportConfigBuilder_ != null) { + desiredResourceUsageExportConfigBuilder_.dispose(); + desiredResourceUsageExportConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired configuration for exporting resource usage.
+     * 
+ * + * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + */ + public com.google.container.v1.ResourceUsageExportConfig.Builder getDesiredResourceUsageExportConfigBuilder() { + bitField0_ |= 0x00020000; + onChanged(); + return getDesiredResourceUsageExportConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The desired configuration for exporting resource usage.
+     * 
+ * + * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + */ + public com.google.container.v1.ResourceUsageExportConfigOrBuilder getDesiredResourceUsageExportConfigOrBuilder() { + if (desiredResourceUsageExportConfigBuilder_ != null) { + return desiredResourceUsageExportConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredResourceUsageExportConfig_ == null ? + com.google.container.v1.ResourceUsageExportConfig.getDefaultInstance() : desiredResourceUsageExportConfig_; + } + } + /** + *
+     * The desired configuration for exporting resource usage.
+     * 
+ * + * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ResourceUsageExportConfig, com.google.container.v1.ResourceUsageExportConfig.Builder, com.google.container.v1.ResourceUsageExportConfigOrBuilder> + getDesiredResourceUsageExportConfigFieldBuilder() { + if (desiredResourceUsageExportConfigBuilder_ == null) { + desiredResourceUsageExportConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ResourceUsageExportConfig, com.google.container.v1.ResourceUsageExportConfig.Builder, com.google.container.v1.ResourceUsageExportConfigOrBuilder>( + getDesiredResourceUsageExportConfig(), + getParentForChildren(), + isClean()); + desiredResourceUsageExportConfig_ = null; + } + return desiredResourceUsageExportConfigBuilder_; + } + + private com.google.container.v1.VerticalPodAutoscaling desiredVerticalPodAutoscaling_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.VerticalPodAutoscaling, com.google.container.v1.VerticalPodAutoscaling.Builder, com.google.container.v1.VerticalPodAutoscalingOrBuilder> desiredVerticalPodAutoscalingBuilder_; + /** + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * @return Whether the desiredVerticalPodAutoscaling field is set. + */ + public boolean hasDesiredVerticalPodAutoscaling() { + return ((bitField0_ & 0x00040000) != 0); + } + /** + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * @return The desiredVerticalPodAutoscaling. + */ + public com.google.container.v1.VerticalPodAutoscaling getDesiredVerticalPodAutoscaling() { + if (desiredVerticalPodAutoscalingBuilder_ == null) { + return desiredVerticalPodAutoscaling_ == null ? com.google.container.v1.VerticalPodAutoscaling.getDefaultInstance() : desiredVerticalPodAutoscaling_; + } else { + return desiredVerticalPodAutoscalingBuilder_.getMessage(); + } + } + /** + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + */ + public Builder setDesiredVerticalPodAutoscaling(com.google.container.v1.VerticalPodAutoscaling value) { + if (desiredVerticalPodAutoscalingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredVerticalPodAutoscaling_ = value; + } else { + desiredVerticalPodAutoscalingBuilder_.setMessage(value); + } + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + */ + public Builder setDesiredVerticalPodAutoscaling( + com.google.container.v1.VerticalPodAutoscaling.Builder builderForValue) { + if (desiredVerticalPodAutoscalingBuilder_ == null) { + desiredVerticalPodAutoscaling_ = builderForValue.build(); + } else { + desiredVerticalPodAutoscalingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + */ + public Builder mergeDesiredVerticalPodAutoscaling(com.google.container.v1.VerticalPodAutoscaling value) { + if (desiredVerticalPodAutoscalingBuilder_ == null) { + if (((bitField0_ & 0x00040000) != 0) && + desiredVerticalPodAutoscaling_ != null && + desiredVerticalPodAutoscaling_ != com.google.container.v1.VerticalPodAutoscaling.getDefaultInstance()) { + getDesiredVerticalPodAutoscalingBuilder().mergeFrom(value); + } else { + desiredVerticalPodAutoscaling_ = value; + } + } else { + desiredVerticalPodAutoscalingBuilder_.mergeFrom(value); + } + if (desiredVerticalPodAutoscaling_ != null) { + bitField0_ |= 0x00040000; + onChanged(); + } + return this; + } + /** + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + */ + public Builder clearDesiredVerticalPodAutoscaling() { + bitField0_ = (bitField0_ & ~0x00040000); + desiredVerticalPodAutoscaling_ = null; + if (desiredVerticalPodAutoscalingBuilder_ != null) { + desiredVerticalPodAutoscalingBuilder_.dispose(); + desiredVerticalPodAutoscalingBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + */ + public com.google.container.v1.VerticalPodAutoscaling.Builder getDesiredVerticalPodAutoscalingBuilder() { + bitField0_ |= 0x00040000; + onChanged(); + return getDesiredVerticalPodAutoscalingFieldBuilder().getBuilder(); + } + /** + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + */ + public com.google.container.v1.VerticalPodAutoscalingOrBuilder getDesiredVerticalPodAutoscalingOrBuilder() { + if (desiredVerticalPodAutoscalingBuilder_ != null) { + return desiredVerticalPodAutoscalingBuilder_.getMessageOrBuilder(); + } else { + return desiredVerticalPodAutoscaling_ == null ? + com.google.container.v1.VerticalPodAutoscaling.getDefaultInstance() : desiredVerticalPodAutoscaling_; + } + } + /** + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.VerticalPodAutoscaling, com.google.container.v1.VerticalPodAutoscaling.Builder, com.google.container.v1.VerticalPodAutoscalingOrBuilder> + getDesiredVerticalPodAutoscalingFieldBuilder() { + if (desiredVerticalPodAutoscalingBuilder_ == null) { + desiredVerticalPodAutoscalingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.VerticalPodAutoscaling, com.google.container.v1.VerticalPodAutoscaling.Builder, com.google.container.v1.VerticalPodAutoscalingOrBuilder>( + getDesiredVerticalPodAutoscaling(), + getParentForChildren(), + isClean()); + desiredVerticalPodAutoscaling_ = null; + } + return desiredVerticalPodAutoscalingBuilder_; + } + + private com.google.container.v1.PrivateClusterConfig desiredPrivateClusterConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.PrivateClusterConfig, com.google.container.v1.PrivateClusterConfig.Builder, com.google.container.v1.PrivateClusterConfigOrBuilder> desiredPrivateClusterConfigBuilder_; + /** + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + * @return Whether the desiredPrivateClusterConfig field is set. + */ + public boolean hasDesiredPrivateClusterConfig() { + return ((bitField0_ & 0x00080000) != 0); + } + /** + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + * @return The desiredPrivateClusterConfig. + */ + public com.google.container.v1.PrivateClusterConfig getDesiredPrivateClusterConfig() { + if (desiredPrivateClusterConfigBuilder_ == null) { + return desiredPrivateClusterConfig_ == null ? com.google.container.v1.PrivateClusterConfig.getDefaultInstance() : desiredPrivateClusterConfig_; + } else { + return desiredPrivateClusterConfigBuilder_.getMessage(); + } + } + /** + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + */ + public Builder setDesiredPrivateClusterConfig(com.google.container.v1.PrivateClusterConfig value) { + if (desiredPrivateClusterConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredPrivateClusterConfig_ = value; + } else { + desiredPrivateClusterConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + */ + public Builder setDesiredPrivateClusterConfig( + com.google.container.v1.PrivateClusterConfig.Builder builderForValue) { + if (desiredPrivateClusterConfigBuilder_ == null) { + desiredPrivateClusterConfig_ = builderForValue.build(); + } else { + desiredPrivateClusterConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + */ + public Builder mergeDesiredPrivateClusterConfig(com.google.container.v1.PrivateClusterConfig value) { + if (desiredPrivateClusterConfigBuilder_ == null) { + if (((bitField0_ & 0x00080000) != 0) && + desiredPrivateClusterConfig_ != null && + desiredPrivateClusterConfig_ != com.google.container.v1.PrivateClusterConfig.getDefaultInstance()) { + getDesiredPrivateClusterConfigBuilder().mergeFrom(value); + } else { + desiredPrivateClusterConfig_ = value; + } + } else { + desiredPrivateClusterConfigBuilder_.mergeFrom(value); + } + if (desiredPrivateClusterConfig_ != null) { + bitField0_ |= 0x00080000; + onChanged(); + } + return this; + } + /** + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + */ + public Builder clearDesiredPrivateClusterConfig() { + bitField0_ = (bitField0_ & ~0x00080000); + desiredPrivateClusterConfig_ = null; + if (desiredPrivateClusterConfigBuilder_ != null) { + desiredPrivateClusterConfigBuilder_.dispose(); + desiredPrivateClusterConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + */ + public com.google.container.v1.PrivateClusterConfig.Builder getDesiredPrivateClusterConfigBuilder() { + bitField0_ |= 0x00080000; + onChanged(); + return getDesiredPrivateClusterConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + */ + public com.google.container.v1.PrivateClusterConfigOrBuilder getDesiredPrivateClusterConfigOrBuilder() { + if (desiredPrivateClusterConfigBuilder_ != null) { + return desiredPrivateClusterConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredPrivateClusterConfig_ == null ? + com.google.container.v1.PrivateClusterConfig.getDefaultInstance() : desiredPrivateClusterConfig_; + } + } + /** + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.PrivateClusterConfig, com.google.container.v1.PrivateClusterConfig.Builder, com.google.container.v1.PrivateClusterConfigOrBuilder> + getDesiredPrivateClusterConfigFieldBuilder() { + if (desiredPrivateClusterConfigBuilder_ == null) { + desiredPrivateClusterConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.PrivateClusterConfig, com.google.container.v1.PrivateClusterConfig.Builder, com.google.container.v1.PrivateClusterConfigOrBuilder>( + getDesiredPrivateClusterConfig(), + getParentForChildren(), + isClean()); + desiredPrivateClusterConfig_ = null; + } + return desiredPrivateClusterConfigBuilder_; + } + + private com.google.container.v1.IntraNodeVisibilityConfig desiredIntraNodeVisibilityConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.IntraNodeVisibilityConfig, com.google.container.v1.IntraNodeVisibilityConfig.Builder, com.google.container.v1.IntraNodeVisibilityConfigOrBuilder> desiredIntraNodeVisibilityConfigBuilder_; + /** + *
+     * The desired config of Intra-node visibility.
+     * 
+ * + * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * @return Whether the desiredIntraNodeVisibilityConfig field is set. + */ + public boolean hasDesiredIntraNodeVisibilityConfig() { + return ((bitField0_ & 0x00100000) != 0); + } + /** + *
+     * The desired config of Intra-node visibility.
+     * 
+ * + * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * @return The desiredIntraNodeVisibilityConfig. + */ + public com.google.container.v1.IntraNodeVisibilityConfig getDesiredIntraNodeVisibilityConfig() { + if (desiredIntraNodeVisibilityConfigBuilder_ == null) { + return desiredIntraNodeVisibilityConfig_ == null ? com.google.container.v1.IntraNodeVisibilityConfig.getDefaultInstance() : desiredIntraNodeVisibilityConfig_; + } else { + return desiredIntraNodeVisibilityConfigBuilder_.getMessage(); + } + } + /** + *
+     * The desired config of Intra-node visibility.
+     * 
+ * + * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + */ + public Builder setDesiredIntraNodeVisibilityConfig(com.google.container.v1.IntraNodeVisibilityConfig value) { + if (desiredIntraNodeVisibilityConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredIntraNodeVisibilityConfig_ = value; + } else { + desiredIntraNodeVisibilityConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + *
+     * The desired config of Intra-node visibility.
+     * 
+ * + * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + */ + public Builder setDesiredIntraNodeVisibilityConfig( + com.google.container.v1.IntraNodeVisibilityConfig.Builder builderForValue) { + if (desiredIntraNodeVisibilityConfigBuilder_ == null) { + desiredIntraNodeVisibilityConfig_ = builderForValue.build(); + } else { + desiredIntraNodeVisibilityConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + *
+     * The desired config of Intra-node visibility.
+     * 
+ * + * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + */ + public Builder mergeDesiredIntraNodeVisibilityConfig(com.google.container.v1.IntraNodeVisibilityConfig value) { + if (desiredIntraNodeVisibilityConfigBuilder_ == null) { + if (((bitField0_ & 0x00100000) != 0) && + desiredIntraNodeVisibilityConfig_ != null && + desiredIntraNodeVisibilityConfig_ != com.google.container.v1.IntraNodeVisibilityConfig.getDefaultInstance()) { + getDesiredIntraNodeVisibilityConfigBuilder().mergeFrom(value); + } else { + desiredIntraNodeVisibilityConfig_ = value; + } + } else { + desiredIntraNodeVisibilityConfigBuilder_.mergeFrom(value); + } + if (desiredIntraNodeVisibilityConfig_ != null) { + bitField0_ |= 0x00100000; + onChanged(); + } + return this; + } + /** + *
+     * The desired config of Intra-node visibility.
+     * 
+ * + * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + */ + public Builder clearDesiredIntraNodeVisibilityConfig() { + bitField0_ = (bitField0_ & ~0x00100000); + desiredIntraNodeVisibilityConfig_ = null; + if (desiredIntraNodeVisibilityConfigBuilder_ != null) { + desiredIntraNodeVisibilityConfigBuilder_.dispose(); + desiredIntraNodeVisibilityConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired config of Intra-node visibility.
+     * 
+ * + * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + */ + public com.google.container.v1.IntraNodeVisibilityConfig.Builder getDesiredIntraNodeVisibilityConfigBuilder() { + bitField0_ |= 0x00100000; + onChanged(); + return getDesiredIntraNodeVisibilityConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The desired config of Intra-node visibility.
+     * 
+ * + * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + */ + public com.google.container.v1.IntraNodeVisibilityConfigOrBuilder getDesiredIntraNodeVisibilityConfigOrBuilder() { + if (desiredIntraNodeVisibilityConfigBuilder_ != null) { + return desiredIntraNodeVisibilityConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredIntraNodeVisibilityConfig_ == null ? + com.google.container.v1.IntraNodeVisibilityConfig.getDefaultInstance() : desiredIntraNodeVisibilityConfig_; + } + } + /** + *
+     * The desired config of Intra-node visibility.
+     * 
+ * + * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.IntraNodeVisibilityConfig, com.google.container.v1.IntraNodeVisibilityConfig.Builder, com.google.container.v1.IntraNodeVisibilityConfigOrBuilder> + getDesiredIntraNodeVisibilityConfigFieldBuilder() { + if (desiredIntraNodeVisibilityConfigBuilder_ == null) { + desiredIntraNodeVisibilityConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.IntraNodeVisibilityConfig, com.google.container.v1.IntraNodeVisibilityConfig.Builder, com.google.container.v1.IntraNodeVisibilityConfigOrBuilder>( + getDesiredIntraNodeVisibilityConfig(), + getParentForChildren(), + isClean()); + desiredIntraNodeVisibilityConfig_ = null; + } + return desiredIntraNodeVisibilityConfigBuilder_; + } + + private com.google.container.v1.DefaultSnatStatus desiredDefaultSnatStatus_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DefaultSnatStatus, com.google.container.v1.DefaultSnatStatus.Builder, com.google.container.v1.DefaultSnatStatusOrBuilder> desiredDefaultSnatStatusBuilder_; + /** + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + * @return Whether the desiredDefaultSnatStatus field is set. + */ + public boolean hasDesiredDefaultSnatStatus() { + return ((bitField0_ & 0x00200000) != 0); + } + /** + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + * @return The desiredDefaultSnatStatus. + */ + public com.google.container.v1.DefaultSnatStatus getDesiredDefaultSnatStatus() { + if (desiredDefaultSnatStatusBuilder_ == null) { + return desiredDefaultSnatStatus_ == null ? com.google.container.v1.DefaultSnatStatus.getDefaultInstance() : desiredDefaultSnatStatus_; + } else { + return desiredDefaultSnatStatusBuilder_.getMessage(); + } + } + /** + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + */ + public Builder setDesiredDefaultSnatStatus(com.google.container.v1.DefaultSnatStatus value) { + if (desiredDefaultSnatStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredDefaultSnatStatus_ = value; + } else { + desiredDefaultSnatStatusBuilder_.setMessage(value); + } + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + /** + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + */ + public Builder setDesiredDefaultSnatStatus( + com.google.container.v1.DefaultSnatStatus.Builder builderForValue) { + if (desiredDefaultSnatStatusBuilder_ == null) { + desiredDefaultSnatStatus_ = builderForValue.build(); + } else { + desiredDefaultSnatStatusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + /** + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + */ + public Builder mergeDesiredDefaultSnatStatus(com.google.container.v1.DefaultSnatStatus value) { + if (desiredDefaultSnatStatusBuilder_ == null) { + if (((bitField0_ & 0x00200000) != 0) && + desiredDefaultSnatStatus_ != null && + desiredDefaultSnatStatus_ != com.google.container.v1.DefaultSnatStatus.getDefaultInstance()) { + getDesiredDefaultSnatStatusBuilder().mergeFrom(value); + } else { + desiredDefaultSnatStatus_ = value; + } + } else { + desiredDefaultSnatStatusBuilder_.mergeFrom(value); + } + if (desiredDefaultSnatStatus_ != null) { + bitField0_ |= 0x00200000; + onChanged(); + } + return this; + } + /** + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + */ + public Builder clearDesiredDefaultSnatStatus() { + bitField0_ = (bitField0_ & ~0x00200000); + desiredDefaultSnatStatus_ = null; + if (desiredDefaultSnatStatusBuilder_ != null) { + desiredDefaultSnatStatusBuilder_.dispose(); + desiredDefaultSnatStatusBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + */ + public com.google.container.v1.DefaultSnatStatus.Builder getDesiredDefaultSnatStatusBuilder() { + bitField0_ |= 0x00200000; + onChanged(); + return getDesiredDefaultSnatStatusFieldBuilder().getBuilder(); + } + /** + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + */ + public com.google.container.v1.DefaultSnatStatusOrBuilder getDesiredDefaultSnatStatusOrBuilder() { + if (desiredDefaultSnatStatusBuilder_ != null) { + return desiredDefaultSnatStatusBuilder_.getMessageOrBuilder(); + } else { + return desiredDefaultSnatStatus_ == null ? + com.google.container.v1.DefaultSnatStatus.getDefaultInstance() : desiredDefaultSnatStatus_; + } + } + /** + *
+     * The desired status of whether to disable default sNAT for this cluster.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DefaultSnatStatus, com.google.container.v1.DefaultSnatStatus.Builder, com.google.container.v1.DefaultSnatStatusOrBuilder> + getDesiredDefaultSnatStatusFieldBuilder() { + if (desiredDefaultSnatStatusBuilder_ == null) { + desiredDefaultSnatStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DefaultSnatStatus, com.google.container.v1.DefaultSnatStatus.Builder, com.google.container.v1.DefaultSnatStatusOrBuilder>( + getDesiredDefaultSnatStatus(), + getParentForChildren(), + isClean()); + desiredDefaultSnatStatus_ = null; + } + return desiredDefaultSnatStatusBuilder_; + } + + private com.google.container.v1.ReleaseChannel desiredReleaseChannel_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ReleaseChannel, com.google.container.v1.ReleaseChannel.Builder, com.google.container.v1.ReleaseChannelOrBuilder> desiredReleaseChannelBuilder_; + /** + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + * @return Whether the desiredReleaseChannel field is set. + */ + public boolean hasDesiredReleaseChannel() { + return ((bitField0_ & 0x00400000) != 0); + } + /** + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + * @return The desiredReleaseChannel. + */ + public com.google.container.v1.ReleaseChannel getDesiredReleaseChannel() { + if (desiredReleaseChannelBuilder_ == null) { + return desiredReleaseChannel_ == null ? com.google.container.v1.ReleaseChannel.getDefaultInstance() : desiredReleaseChannel_; + } else { + return desiredReleaseChannelBuilder_.getMessage(); + } + } + /** + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + */ + public Builder setDesiredReleaseChannel(com.google.container.v1.ReleaseChannel value) { + if (desiredReleaseChannelBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredReleaseChannel_ = value; + } else { + desiredReleaseChannelBuilder_.setMessage(value); + } + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + /** + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + */ + public Builder setDesiredReleaseChannel( + com.google.container.v1.ReleaseChannel.Builder builderForValue) { + if (desiredReleaseChannelBuilder_ == null) { + desiredReleaseChannel_ = builderForValue.build(); + } else { + desiredReleaseChannelBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + /** + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + */ + public Builder mergeDesiredReleaseChannel(com.google.container.v1.ReleaseChannel value) { + if (desiredReleaseChannelBuilder_ == null) { + if (((bitField0_ & 0x00400000) != 0) && + desiredReleaseChannel_ != null && + desiredReleaseChannel_ != com.google.container.v1.ReleaseChannel.getDefaultInstance()) { + getDesiredReleaseChannelBuilder().mergeFrom(value); + } else { + desiredReleaseChannel_ = value; + } + } else { + desiredReleaseChannelBuilder_.mergeFrom(value); + } + if (desiredReleaseChannel_ != null) { + bitField0_ |= 0x00400000; + onChanged(); + } + return this; + } + /** + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + */ + public Builder clearDesiredReleaseChannel() { + bitField0_ = (bitField0_ & ~0x00400000); + desiredReleaseChannel_ = null; + if (desiredReleaseChannelBuilder_ != null) { + desiredReleaseChannelBuilder_.dispose(); + desiredReleaseChannelBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + */ + public com.google.container.v1.ReleaseChannel.Builder getDesiredReleaseChannelBuilder() { + bitField0_ |= 0x00400000; + onChanged(); + return getDesiredReleaseChannelFieldBuilder().getBuilder(); + } + /** + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + */ + public com.google.container.v1.ReleaseChannelOrBuilder getDesiredReleaseChannelOrBuilder() { + if (desiredReleaseChannelBuilder_ != null) { + return desiredReleaseChannelBuilder_.getMessageOrBuilder(); + } else { + return desiredReleaseChannel_ == null ? + com.google.container.v1.ReleaseChannel.getDefaultInstance() : desiredReleaseChannel_; + } + } + /** + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ReleaseChannel, com.google.container.v1.ReleaseChannel.Builder, com.google.container.v1.ReleaseChannelOrBuilder> + getDesiredReleaseChannelFieldBuilder() { + if (desiredReleaseChannelBuilder_ == null) { + desiredReleaseChannelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ReleaseChannel, com.google.container.v1.ReleaseChannel.Builder, com.google.container.v1.ReleaseChannelOrBuilder>( + getDesiredReleaseChannel(), + getParentForChildren(), + isClean()); + desiredReleaseChannel_ = null; + } + return desiredReleaseChannelBuilder_; + } + + private com.google.container.v1.ILBSubsettingConfig desiredL4IlbSubsettingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ILBSubsettingConfig, com.google.container.v1.ILBSubsettingConfig.Builder, com.google.container.v1.ILBSubsettingConfigOrBuilder> desiredL4IlbSubsettingConfigBuilder_; + /** + *
+     * The desired L4 Internal Load Balancer Subsetting configuration.
+     * 
+ * + * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + * @return Whether the desiredL4ilbSubsettingConfig field is set. + */ + public boolean hasDesiredL4IlbSubsettingConfig() { + return ((bitField0_ & 0x00800000) != 0); + } + /** + *
+     * The desired L4 Internal Load Balancer Subsetting configuration.
+     * 
+ * + * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + * @return The desiredL4ilbSubsettingConfig. + */ + public com.google.container.v1.ILBSubsettingConfig getDesiredL4IlbSubsettingConfig() { + if (desiredL4IlbSubsettingConfigBuilder_ == null) { + return desiredL4IlbSubsettingConfig_ == null ? com.google.container.v1.ILBSubsettingConfig.getDefaultInstance() : desiredL4IlbSubsettingConfig_; + } else { + return desiredL4IlbSubsettingConfigBuilder_.getMessage(); + } + } + /** + *
+     * The desired L4 Internal Load Balancer Subsetting configuration.
+     * 
+ * + * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + */ + public Builder setDesiredL4IlbSubsettingConfig(com.google.container.v1.ILBSubsettingConfig value) { + if (desiredL4IlbSubsettingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredL4IlbSubsettingConfig_ = value; + } else { + desiredL4IlbSubsettingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + /** + *
+     * The desired L4 Internal Load Balancer Subsetting configuration.
+     * 
+ * + * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + */ + public Builder setDesiredL4IlbSubsettingConfig( + com.google.container.v1.ILBSubsettingConfig.Builder builderForValue) { + if (desiredL4IlbSubsettingConfigBuilder_ == null) { + desiredL4IlbSubsettingConfig_ = builderForValue.build(); + } else { + desiredL4IlbSubsettingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + /** + *
+     * The desired L4 Internal Load Balancer Subsetting configuration.
+     * 
+ * + * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + */ + public Builder mergeDesiredL4IlbSubsettingConfig(com.google.container.v1.ILBSubsettingConfig value) { + if (desiredL4IlbSubsettingConfigBuilder_ == null) { + if (((bitField0_ & 0x00800000) != 0) && + desiredL4IlbSubsettingConfig_ != null && + desiredL4IlbSubsettingConfig_ != com.google.container.v1.ILBSubsettingConfig.getDefaultInstance()) { + getDesiredL4IlbSubsettingConfigBuilder().mergeFrom(value); + } else { + desiredL4IlbSubsettingConfig_ = value; + } + } else { + desiredL4IlbSubsettingConfigBuilder_.mergeFrom(value); + } + if (desiredL4IlbSubsettingConfig_ != null) { + bitField0_ |= 0x00800000; + onChanged(); + } + return this; + } + /** + *
+     * The desired L4 Internal Load Balancer Subsetting configuration.
+     * 
+ * + * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + */ + public Builder clearDesiredL4IlbSubsettingConfig() { + bitField0_ = (bitField0_ & ~0x00800000); + desiredL4IlbSubsettingConfig_ = null; + if (desiredL4IlbSubsettingConfigBuilder_ != null) { + desiredL4IlbSubsettingConfigBuilder_.dispose(); + desiredL4IlbSubsettingConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired L4 Internal Load Balancer Subsetting configuration.
+     * 
+ * + * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + */ + public com.google.container.v1.ILBSubsettingConfig.Builder getDesiredL4IlbSubsettingConfigBuilder() { + bitField0_ |= 0x00800000; + onChanged(); + return getDesiredL4IlbSubsettingConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The desired L4 Internal Load Balancer Subsetting configuration.
+     * 
+ * + * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + */ + public com.google.container.v1.ILBSubsettingConfigOrBuilder getDesiredL4IlbSubsettingConfigOrBuilder() { + if (desiredL4IlbSubsettingConfigBuilder_ != null) { + return desiredL4IlbSubsettingConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredL4IlbSubsettingConfig_ == null ? + com.google.container.v1.ILBSubsettingConfig.getDefaultInstance() : desiredL4IlbSubsettingConfig_; + } + } + /** + *
+     * The desired L4 Internal Load Balancer Subsetting configuration.
+     * 
+ * + * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ILBSubsettingConfig, com.google.container.v1.ILBSubsettingConfig.Builder, com.google.container.v1.ILBSubsettingConfigOrBuilder> + getDesiredL4IlbSubsettingConfigFieldBuilder() { + if (desiredL4IlbSubsettingConfigBuilder_ == null) { + desiredL4IlbSubsettingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ILBSubsettingConfig, com.google.container.v1.ILBSubsettingConfig.Builder, com.google.container.v1.ILBSubsettingConfigOrBuilder>( + getDesiredL4IlbSubsettingConfig(), + getParentForChildren(), + isClean()); + desiredL4IlbSubsettingConfig_ = null; + } + return desiredL4IlbSubsettingConfigBuilder_; + } + + private int desiredDatapathProvider_ = 0; + /** + *
+     * The desired datapath provider for the cluster.
+     * 
+ * + * .google.container.v1.DatapathProvider desired_datapath_provider = 50; + * @return The enum numeric value on the wire for desiredDatapathProvider. + */ + @java.lang.Override public int getDesiredDatapathProviderValue() { + return desiredDatapathProvider_; + } + /** + *
+     * The desired datapath provider for the cluster.
+     * 
+ * + * .google.container.v1.DatapathProvider desired_datapath_provider = 50; + * @param value The enum numeric value on the wire for desiredDatapathProvider to set. + * @return This builder for chaining. + */ + public Builder setDesiredDatapathProviderValue(int value) { + desiredDatapathProvider_ = value; + bitField0_ |= 0x01000000; + onChanged(); + return this; + } + /** + *
+     * The desired datapath provider for the cluster.
+     * 
+ * + * .google.container.v1.DatapathProvider desired_datapath_provider = 50; + * @return The desiredDatapathProvider. + */ + @java.lang.Override + public com.google.container.v1.DatapathProvider getDesiredDatapathProvider() { + com.google.container.v1.DatapathProvider result = com.google.container.v1.DatapathProvider.forNumber(desiredDatapathProvider_); + return result == null ? com.google.container.v1.DatapathProvider.UNRECOGNIZED : result; + } + /** + *
+     * The desired datapath provider for the cluster.
+     * 
+ * + * .google.container.v1.DatapathProvider desired_datapath_provider = 50; + * @param value The desiredDatapathProvider to set. + * @return This builder for chaining. + */ + public Builder setDesiredDatapathProvider(com.google.container.v1.DatapathProvider value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x01000000; + desiredDatapathProvider_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The desired datapath provider for the cluster.
+     * 
+ * + * .google.container.v1.DatapathProvider desired_datapath_provider = 50; + * @return This builder for chaining. + */ + public Builder clearDesiredDatapathProvider() { + bitField0_ = (bitField0_ & ~0x01000000); + desiredDatapathProvider_ = 0; + onChanged(); + return this; + } + + private int desiredPrivateIpv6GoogleAccess_ = 0; + /** + *
+     * The desired state of IPv6 connectivity to Google Services.
+     * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + * @return The enum numeric value on the wire for desiredPrivateIpv6GoogleAccess. + */ + @java.lang.Override public int getDesiredPrivateIpv6GoogleAccessValue() { + return desiredPrivateIpv6GoogleAccess_; + } + /** + *
+     * The desired state of IPv6 connectivity to Google Services.
+     * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + * @param value The enum numeric value on the wire for desiredPrivateIpv6GoogleAccess to set. + * @return This builder for chaining. + */ + public Builder setDesiredPrivateIpv6GoogleAccessValue(int value) { + desiredPrivateIpv6GoogleAccess_ = value; + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + /** + *
+     * The desired state of IPv6 connectivity to Google Services.
+     * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + * @return The desiredPrivateIpv6GoogleAccess. + */ + @java.lang.Override + public com.google.container.v1.PrivateIPv6GoogleAccess getDesiredPrivateIpv6GoogleAccess() { + com.google.container.v1.PrivateIPv6GoogleAccess result = com.google.container.v1.PrivateIPv6GoogleAccess.forNumber(desiredPrivateIpv6GoogleAccess_); + return result == null ? com.google.container.v1.PrivateIPv6GoogleAccess.UNRECOGNIZED : result; + } + /** + *
+     * The desired state of IPv6 connectivity to Google Services.
+     * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + * @param value The desiredPrivateIpv6GoogleAccess to set. + * @return This builder for chaining. + */ + public Builder setDesiredPrivateIpv6GoogleAccess(com.google.container.v1.PrivateIPv6GoogleAccess value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x02000000; + desiredPrivateIpv6GoogleAccess_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The desired state of IPv6 connectivity to Google Services.
+     * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + * @return This builder for chaining. + */ + public Builder clearDesiredPrivateIpv6GoogleAccess() { + bitField0_ = (bitField0_ & ~0x02000000); + desiredPrivateIpv6GoogleAccess_ = 0; + onChanged(); + return this; + } + + private com.google.container.v1.NotificationConfig desiredNotificationConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NotificationConfig, com.google.container.v1.NotificationConfig.Builder, com.google.container.v1.NotificationConfigOrBuilder> desiredNotificationConfigBuilder_; + /** + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + * @return Whether the desiredNotificationConfig field is set. + */ + public boolean hasDesiredNotificationConfig() { + return ((bitField0_ & 0x04000000) != 0); + } + /** + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + * @return The desiredNotificationConfig. + */ + public com.google.container.v1.NotificationConfig getDesiredNotificationConfig() { + if (desiredNotificationConfigBuilder_ == null) { + return desiredNotificationConfig_ == null ? com.google.container.v1.NotificationConfig.getDefaultInstance() : desiredNotificationConfig_; + } else { + return desiredNotificationConfigBuilder_.getMessage(); + } + } + /** + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + */ + public Builder setDesiredNotificationConfig(com.google.container.v1.NotificationConfig value) { + if (desiredNotificationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredNotificationConfig_ = value; + } else { + desiredNotificationConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x04000000; + onChanged(); + return this; + } + /** + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + */ + public Builder setDesiredNotificationConfig( + com.google.container.v1.NotificationConfig.Builder builderForValue) { + if (desiredNotificationConfigBuilder_ == null) { + desiredNotificationConfig_ = builderForValue.build(); + } else { + desiredNotificationConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x04000000; + onChanged(); + return this; + } + /** + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + */ + public Builder mergeDesiredNotificationConfig(com.google.container.v1.NotificationConfig value) { + if (desiredNotificationConfigBuilder_ == null) { + if (((bitField0_ & 0x04000000) != 0) && + desiredNotificationConfig_ != null && + desiredNotificationConfig_ != com.google.container.v1.NotificationConfig.getDefaultInstance()) { + getDesiredNotificationConfigBuilder().mergeFrom(value); + } else { + desiredNotificationConfig_ = value; + } + } else { + desiredNotificationConfigBuilder_.mergeFrom(value); + } + if (desiredNotificationConfig_ != null) { + bitField0_ |= 0x04000000; + onChanged(); + } + return this; + } + /** + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + */ + public Builder clearDesiredNotificationConfig() { + bitField0_ = (bitField0_ & ~0x04000000); + desiredNotificationConfig_ = null; + if (desiredNotificationConfigBuilder_ != null) { + desiredNotificationConfigBuilder_.dispose(); + desiredNotificationConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + */ + public com.google.container.v1.NotificationConfig.Builder getDesiredNotificationConfigBuilder() { + bitField0_ |= 0x04000000; + onChanged(); + return getDesiredNotificationConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + */ + public com.google.container.v1.NotificationConfigOrBuilder getDesiredNotificationConfigOrBuilder() { + if (desiredNotificationConfigBuilder_ != null) { + return desiredNotificationConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredNotificationConfig_ == null ? + com.google.container.v1.NotificationConfig.getDefaultInstance() : desiredNotificationConfig_; + } + } + /** + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NotificationConfig, com.google.container.v1.NotificationConfig.Builder, com.google.container.v1.NotificationConfigOrBuilder> + getDesiredNotificationConfigFieldBuilder() { + if (desiredNotificationConfigBuilder_ == null) { + desiredNotificationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NotificationConfig, com.google.container.v1.NotificationConfig.Builder, com.google.container.v1.NotificationConfigOrBuilder>( + getDesiredNotificationConfig(), + getParentForChildren(), + isClean()); + desiredNotificationConfig_ = null; + } + return desiredNotificationConfigBuilder_; + } + + private com.google.container.v1.AuthenticatorGroupsConfig desiredAuthenticatorGroupsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AuthenticatorGroupsConfig, com.google.container.v1.AuthenticatorGroupsConfig.Builder, com.google.container.v1.AuthenticatorGroupsConfigOrBuilder> desiredAuthenticatorGroupsConfigBuilder_; + /** + *
+     * The desired authenticator groups config for the cluster.
+     * 
+ * + * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * @return Whether the desiredAuthenticatorGroupsConfig field is set. + */ + public boolean hasDesiredAuthenticatorGroupsConfig() { + return ((bitField0_ & 0x08000000) != 0); + } + /** + *
+     * The desired authenticator groups config for the cluster.
+     * 
+ * + * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * @return The desiredAuthenticatorGroupsConfig. + */ + public com.google.container.v1.AuthenticatorGroupsConfig getDesiredAuthenticatorGroupsConfig() { + if (desiredAuthenticatorGroupsConfigBuilder_ == null) { + return desiredAuthenticatorGroupsConfig_ == null ? com.google.container.v1.AuthenticatorGroupsConfig.getDefaultInstance() : desiredAuthenticatorGroupsConfig_; + } else { + return desiredAuthenticatorGroupsConfigBuilder_.getMessage(); + } + } + /** + *
+     * The desired authenticator groups config for the cluster.
+     * 
+ * + * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + */ + public Builder setDesiredAuthenticatorGroupsConfig(com.google.container.v1.AuthenticatorGroupsConfig value) { + if (desiredAuthenticatorGroupsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredAuthenticatorGroupsConfig_ = value; + } else { + desiredAuthenticatorGroupsConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + /** + *
+     * The desired authenticator groups config for the cluster.
+     * 
+ * + * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + */ + public Builder setDesiredAuthenticatorGroupsConfig( + com.google.container.v1.AuthenticatorGroupsConfig.Builder builderForValue) { + if (desiredAuthenticatorGroupsConfigBuilder_ == null) { + desiredAuthenticatorGroupsConfig_ = builderForValue.build(); + } else { + desiredAuthenticatorGroupsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + /** + *
+     * The desired authenticator groups config for the cluster.
+     * 
+ * + * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + */ + public Builder mergeDesiredAuthenticatorGroupsConfig(com.google.container.v1.AuthenticatorGroupsConfig value) { + if (desiredAuthenticatorGroupsConfigBuilder_ == null) { + if (((bitField0_ & 0x08000000) != 0) && + desiredAuthenticatorGroupsConfig_ != null && + desiredAuthenticatorGroupsConfig_ != com.google.container.v1.AuthenticatorGroupsConfig.getDefaultInstance()) { + getDesiredAuthenticatorGroupsConfigBuilder().mergeFrom(value); + } else { + desiredAuthenticatorGroupsConfig_ = value; + } + } else { + desiredAuthenticatorGroupsConfigBuilder_.mergeFrom(value); + } + if (desiredAuthenticatorGroupsConfig_ != null) { + bitField0_ |= 0x08000000; + onChanged(); + } + return this; + } + /** + *
+     * The desired authenticator groups config for the cluster.
+     * 
+ * + * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + */ + public Builder clearDesiredAuthenticatorGroupsConfig() { + bitField0_ = (bitField0_ & ~0x08000000); + desiredAuthenticatorGroupsConfig_ = null; + if (desiredAuthenticatorGroupsConfigBuilder_ != null) { + desiredAuthenticatorGroupsConfigBuilder_.dispose(); + desiredAuthenticatorGroupsConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired authenticator groups config for the cluster.
+     * 
+ * + * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + */ + public com.google.container.v1.AuthenticatorGroupsConfig.Builder getDesiredAuthenticatorGroupsConfigBuilder() { + bitField0_ |= 0x08000000; + onChanged(); + return getDesiredAuthenticatorGroupsConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The desired authenticator groups config for the cluster.
+     * 
+ * + * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + */ + public com.google.container.v1.AuthenticatorGroupsConfigOrBuilder getDesiredAuthenticatorGroupsConfigOrBuilder() { + if (desiredAuthenticatorGroupsConfigBuilder_ != null) { + return desiredAuthenticatorGroupsConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredAuthenticatorGroupsConfig_ == null ? + com.google.container.v1.AuthenticatorGroupsConfig.getDefaultInstance() : desiredAuthenticatorGroupsConfig_; + } + } + /** + *
+     * The desired authenticator groups config for the cluster.
+     * 
+ * + * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AuthenticatorGroupsConfig, com.google.container.v1.AuthenticatorGroupsConfig.Builder, com.google.container.v1.AuthenticatorGroupsConfigOrBuilder> + getDesiredAuthenticatorGroupsConfigFieldBuilder() { + if (desiredAuthenticatorGroupsConfigBuilder_ == null) { + desiredAuthenticatorGroupsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AuthenticatorGroupsConfig, com.google.container.v1.AuthenticatorGroupsConfig.Builder, com.google.container.v1.AuthenticatorGroupsConfigOrBuilder>( + getDesiredAuthenticatorGroupsConfig(), + getParentForChildren(), + isClean()); + desiredAuthenticatorGroupsConfig_ = null; + } + return desiredAuthenticatorGroupsConfigBuilder_; + } + + private com.google.container.v1.LoggingConfig desiredLoggingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LoggingConfig, com.google.container.v1.LoggingConfig.Builder, com.google.container.v1.LoggingConfigOrBuilder> desiredLoggingConfigBuilder_; + /** + *
+     * The desired logging configuration.
+     * 
+ * + * .google.container.v1.LoggingConfig desired_logging_config = 64; + * @return Whether the desiredLoggingConfig field is set. + */ + public boolean hasDesiredLoggingConfig() { + return ((bitField0_ & 0x10000000) != 0); + } + /** + *
+     * The desired logging configuration.
+     * 
+ * + * .google.container.v1.LoggingConfig desired_logging_config = 64; + * @return The desiredLoggingConfig. + */ + public com.google.container.v1.LoggingConfig getDesiredLoggingConfig() { + if (desiredLoggingConfigBuilder_ == null) { + return desiredLoggingConfig_ == null ? com.google.container.v1.LoggingConfig.getDefaultInstance() : desiredLoggingConfig_; + } else { + return desiredLoggingConfigBuilder_.getMessage(); + } + } + /** + *
+     * The desired logging configuration.
+     * 
+ * + * .google.container.v1.LoggingConfig desired_logging_config = 64; + */ + public Builder setDesiredLoggingConfig(com.google.container.v1.LoggingConfig value) { + if (desiredLoggingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredLoggingConfig_ = value; + } else { + desiredLoggingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x10000000; + onChanged(); + return this; + } + /** + *
+     * The desired logging configuration.
+     * 
+ * + * .google.container.v1.LoggingConfig desired_logging_config = 64; + */ + public Builder setDesiredLoggingConfig( + com.google.container.v1.LoggingConfig.Builder builderForValue) { + if (desiredLoggingConfigBuilder_ == null) { + desiredLoggingConfig_ = builderForValue.build(); + } else { + desiredLoggingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x10000000; + onChanged(); + return this; + } + /** + *
+     * The desired logging configuration.
+     * 
+ * + * .google.container.v1.LoggingConfig desired_logging_config = 64; + */ + public Builder mergeDesiredLoggingConfig(com.google.container.v1.LoggingConfig value) { + if (desiredLoggingConfigBuilder_ == null) { + if (((bitField0_ & 0x10000000) != 0) && + desiredLoggingConfig_ != null && + desiredLoggingConfig_ != com.google.container.v1.LoggingConfig.getDefaultInstance()) { + getDesiredLoggingConfigBuilder().mergeFrom(value); + } else { + desiredLoggingConfig_ = value; + } + } else { + desiredLoggingConfigBuilder_.mergeFrom(value); + } + if (desiredLoggingConfig_ != null) { + bitField0_ |= 0x10000000; + onChanged(); + } + return this; + } + /** + *
+     * The desired logging configuration.
+     * 
+ * + * .google.container.v1.LoggingConfig desired_logging_config = 64; + */ + public Builder clearDesiredLoggingConfig() { + bitField0_ = (bitField0_ & ~0x10000000); + desiredLoggingConfig_ = null; + if (desiredLoggingConfigBuilder_ != null) { + desiredLoggingConfigBuilder_.dispose(); + desiredLoggingConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired logging configuration.
+     * 
+ * + * .google.container.v1.LoggingConfig desired_logging_config = 64; + */ + public com.google.container.v1.LoggingConfig.Builder getDesiredLoggingConfigBuilder() { + bitField0_ |= 0x10000000; + onChanged(); + return getDesiredLoggingConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The desired logging configuration.
+     * 
+ * + * .google.container.v1.LoggingConfig desired_logging_config = 64; + */ + public com.google.container.v1.LoggingConfigOrBuilder getDesiredLoggingConfigOrBuilder() { + if (desiredLoggingConfigBuilder_ != null) { + return desiredLoggingConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredLoggingConfig_ == null ? + com.google.container.v1.LoggingConfig.getDefaultInstance() : desiredLoggingConfig_; + } + } + /** + *
+     * The desired logging configuration.
+     * 
+ * + * .google.container.v1.LoggingConfig desired_logging_config = 64; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LoggingConfig, com.google.container.v1.LoggingConfig.Builder, com.google.container.v1.LoggingConfigOrBuilder> + getDesiredLoggingConfigFieldBuilder() { + if (desiredLoggingConfigBuilder_ == null) { + desiredLoggingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LoggingConfig, com.google.container.v1.LoggingConfig.Builder, com.google.container.v1.LoggingConfigOrBuilder>( + getDesiredLoggingConfig(), + getParentForChildren(), + isClean()); + desiredLoggingConfig_ = null; + } + return desiredLoggingConfigBuilder_; + } + + private com.google.container.v1.MonitoringConfig desiredMonitoringConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MonitoringConfig, com.google.container.v1.MonitoringConfig.Builder, com.google.container.v1.MonitoringConfigOrBuilder> desiredMonitoringConfigBuilder_; + /** + *
+     * The desired monitoring configuration.
+     * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + * @return Whether the desiredMonitoringConfig field is set. + */ + public boolean hasDesiredMonitoringConfig() { + return ((bitField0_ & 0x20000000) != 0); + } + /** + *
+     * The desired monitoring configuration.
+     * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + * @return The desiredMonitoringConfig. + */ + public com.google.container.v1.MonitoringConfig getDesiredMonitoringConfig() { + if (desiredMonitoringConfigBuilder_ == null) { + return desiredMonitoringConfig_ == null ? com.google.container.v1.MonitoringConfig.getDefaultInstance() : desiredMonitoringConfig_; + } else { + return desiredMonitoringConfigBuilder_.getMessage(); + } + } + /** + *
+     * The desired monitoring configuration.
+     * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + */ + public Builder setDesiredMonitoringConfig(com.google.container.v1.MonitoringConfig value) { + if (desiredMonitoringConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredMonitoringConfig_ = value; + } else { + desiredMonitoringConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x20000000; + onChanged(); + return this; + } + /** + *
+     * The desired monitoring configuration.
+     * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + */ + public Builder setDesiredMonitoringConfig( + com.google.container.v1.MonitoringConfig.Builder builderForValue) { + if (desiredMonitoringConfigBuilder_ == null) { + desiredMonitoringConfig_ = builderForValue.build(); + } else { + desiredMonitoringConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x20000000; + onChanged(); + return this; + } + /** + *
+     * The desired monitoring configuration.
+     * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + */ + public Builder mergeDesiredMonitoringConfig(com.google.container.v1.MonitoringConfig value) { + if (desiredMonitoringConfigBuilder_ == null) { + if (((bitField0_ & 0x20000000) != 0) && + desiredMonitoringConfig_ != null && + desiredMonitoringConfig_ != com.google.container.v1.MonitoringConfig.getDefaultInstance()) { + getDesiredMonitoringConfigBuilder().mergeFrom(value); + } else { + desiredMonitoringConfig_ = value; + } + } else { + desiredMonitoringConfigBuilder_.mergeFrom(value); + } + if (desiredMonitoringConfig_ != null) { + bitField0_ |= 0x20000000; + onChanged(); + } + return this; + } + /** + *
+     * The desired monitoring configuration.
+     * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + */ + public Builder clearDesiredMonitoringConfig() { + bitField0_ = (bitField0_ & ~0x20000000); + desiredMonitoringConfig_ = null; + if (desiredMonitoringConfigBuilder_ != null) { + desiredMonitoringConfigBuilder_.dispose(); + desiredMonitoringConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired monitoring configuration.
+     * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + */ + public com.google.container.v1.MonitoringConfig.Builder getDesiredMonitoringConfigBuilder() { + bitField0_ |= 0x20000000; + onChanged(); + return getDesiredMonitoringConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The desired monitoring configuration.
+     * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + */ + public com.google.container.v1.MonitoringConfigOrBuilder getDesiredMonitoringConfigOrBuilder() { + if (desiredMonitoringConfigBuilder_ != null) { + return desiredMonitoringConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredMonitoringConfig_ == null ? + com.google.container.v1.MonitoringConfig.getDefaultInstance() : desiredMonitoringConfig_; + } + } + /** + *
+     * The desired monitoring configuration.
+     * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MonitoringConfig, com.google.container.v1.MonitoringConfig.Builder, com.google.container.v1.MonitoringConfigOrBuilder> + getDesiredMonitoringConfigFieldBuilder() { + if (desiredMonitoringConfigBuilder_ == null) { + desiredMonitoringConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MonitoringConfig, com.google.container.v1.MonitoringConfig.Builder, com.google.container.v1.MonitoringConfigOrBuilder>( + getDesiredMonitoringConfig(), + getParentForChildren(), + isClean()); + desiredMonitoringConfig_ = null; + } + return desiredMonitoringConfigBuilder_; + } + + private com.google.container.v1.IdentityServiceConfig desiredIdentityServiceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.IdentityServiceConfig, com.google.container.v1.IdentityServiceConfig.Builder, com.google.container.v1.IdentityServiceConfigOrBuilder> desiredIdentityServiceConfigBuilder_; + /** + *
+     * The desired Identity Service component configuration.
+     * 
+ * + * .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; + * @return Whether the desiredIdentityServiceConfig field is set. + */ + public boolean hasDesiredIdentityServiceConfig() { + return ((bitField0_ & 0x40000000) != 0); + } + /** + *
+     * The desired Identity Service component configuration.
+     * 
+ * + * .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; + * @return The desiredIdentityServiceConfig. + */ + public com.google.container.v1.IdentityServiceConfig getDesiredIdentityServiceConfig() { + if (desiredIdentityServiceConfigBuilder_ == null) { + return desiredIdentityServiceConfig_ == null ? com.google.container.v1.IdentityServiceConfig.getDefaultInstance() : desiredIdentityServiceConfig_; + } else { + return desiredIdentityServiceConfigBuilder_.getMessage(); + } + } + /** + *
+     * The desired Identity Service component configuration.
+     * 
+ * + * .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; + */ + public Builder setDesiredIdentityServiceConfig(com.google.container.v1.IdentityServiceConfig value) { + if (desiredIdentityServiceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredIdentityServiceConfig_ = value; + } else { + desiredIdentityServiceConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x40000000; + onChanged(); + return this; + } + /** + *
+     * The desired Identity Service component configuration.
+     * 
+ * + * .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; + */ + public Builder setDesiredIdentityServiceConfig( + com.google.container.v1.IdentityServiceConfig.Builder builderForValue) { + if (desiredIdentityServiceConfigBuilder_ == null) { + desiredIdentityServiceConfig_ = builderForValue.build(); + } else { + desiredIdentityServiceConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x40000000; + onChanged(); + return this; + } + /** + *
+     * The desired Identity Service component configuration.
+     * 
+ * + * .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; + */ + public Builder mergeDesiredIdentityServiceConfig(com.google.container.v1.IdentityServiceConfig value) { + if (desiredIdentityServiceConfigBuilder_ == null) { + if (((bitField0_ & 0x40000000) != 0) && + desiredIdentityServiceConfig_ != null && + desiredIdentityServiceConfig_ != com.google.container.v1.IdentityServiceConfig.getDefaultInstance()) { + getDesiredIdentityServiceConfigBuilder().mergeFrom(value); + } else { + desiredIdentityServiceConfig_ = value; + } + } else { + desiredIdentityServiceConfigBuilder_.mergeFrom(value); + } + if (desiredIdentityServiceConfig_ != null) { + bitField0_ |= 0x40000000; + onChanged(); + } + return this; + } + /** + *
+     * The desired Identity Service component configuration.
+     * 
+ * + * .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; + */ + public Builder clearDesiredIdentityServiceConfig() { + bitField0_ = (bitField0_ & ~0x40000000); + desiredIdentityServiceConfig_ = null; + if (desiredIdentityServiceConfigBuilder_ != null) { + desiredIdentityServiceConfigBuilder_.dispose(); + desiredIdentityServiceConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired Identity Service component configuration.
+     * 
+ * + * .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; + */ + public com.google.container.v1.IdentityServiceConfig.Builder getDesiredIdentityServiceConfigBuilder() { + bitField0_ |= 0x40000000; + onChanged(); + return getDesiredIdentityServiceConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The desired Identity Service component configuration.
+     * 
+ * + * .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; + */ + public com.google.container.v1.IdentityServiceConfigOrBuilder getDesiredIdentityServiceConfigOrBuilder() { + if (desiredIdentityServiceConfigBuilder_ != null) { + return desiredIdentityServiceConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredIdentityServiceConfig_ == null ? + com.google.container.v1.IdentityServiceConfig.getDefaultInstance() : desiredIdentityServiceConfig_; + } + } + /** + *
+     * The desired Identity Service component configuration.
+     * 
+ * + * .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.IdentityServiceConfig, com.google.container.v1.IdentityServiceConfig.Builder, com.google.container.v1.IdentityServiceConfigOrBuilder> + getDesiredIdentityServiceConfigFieldBuilder() { + if (desiredIdentityServiceConfigBuilder_ == null) { + desiredIdentityServiceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.IdentityServiceConfig, com.google.container.v1.IdentityServiceConfig.Builder, com.google.container.v1.IdentityServiceConfigOrBuilder>( + getDesiredIdentityServiceConfig(), + getParentForChildren(), + isClean()); + desiredIdentityServiceConfig_ = null; + } + return desiredIdentityServiceConfigBuilder_; + } + + private com.google.container.v1.ServiceExternalIPsConfig desiredServiceExternalIpsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ServiceExternalIPsConfig, com.google.container.v1.ServiceExternalIPsConfig.Builder, com.google.container.v1.ServiceExternalIPsConfigOrBuilder> desiredServiceExternalIpsConfigBuilder_; + /** + *
+     * ServiceExternalIPsConfig specifies the config for the use of Services with
+     * ExternalIPs field.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + * @return Whether the desiredServiceExternalIpsConfig field is set. + */ + public boolean hasDesiredServiceExternalIpsConfig() { + return ((bitField0_ & 0x80000000) != 0); + } + /** + *
+     * ServiceExternalIPsConfig specifies the config for the use of Services with
+     * ExternalIPs field.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + * @return The desiredServiceExternalIpsConfig. + */ + public com.google.container.v1.ServiceExternalIPsConfig getDesiredServiceExternalIpsConfig() { + if (desiredServiceExternalIpsConfigBuilder_ == null) { + return desiredServiceExternalIpsConfig_ == null ? com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance() : desiredServiceExternalIpsConfig_; + } else { + return desiredServiceExternalIpsConfigBuilder_.getMessage(); + } + } + /** + *
+     * ServiceExternalIPsConfig specifies the config for the use of Services with
+     * ExternalIPs field.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + */ + public Builder setDesiredServiceExternalIpsConfig(com.google.container.v1.ServiceExternalIPsConfig value) { + if (desiredServiceExternalIpsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredServiceExternalIpsConfig_ = value; + } else { + desiredServiceExternalIpsConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x80000000; + onChanged(); + return this; + } + /** + *
+     * ServiceExternalIPsConfig specifies the config for the use of Services with
+     * ExternalIPs field.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + */ + public Builder setDesiredServiceExternalIpsConfig( + com.google.container.v1.ServiceExternalIPsConfig.Builder builderForValue) { + if (desiredServiceExternalIpsConfigBuilder_ == null) { + desiredServiceExternalIpsConfig_ = builderForValue.build(); + } else { + desiredServiceExternalIpsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x80000000; + onChanged(); + return this; + } + /** + *
+     * ServiceExternalIPsConfig specifies the config for the use of Services with
+     * ExternalIPs field.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + */ + public Builder mergeDesiredServiceExternalIpsConfig(com.google.container.v1.ServiceExternalIPsConfig value) { + if (desiredServiceExternalIpsConfigBuilder_ == null) { + if (((bitField0_ & 0x80000000) != 0) && + desiredServiceExternalIpsConfig_ != null && + desiredServiceExternalIpsConfig_ != com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance()) { + getDesiredServiceExternalIpsConfigBuilder().mergeFrom(value); + } else { + desiredServiceExternalIpsConfig_ = value; + } + } else { + desiredServiceExternalIpsConfigBuilder_.mergeFrom(value); + } + if (desiredServiceExternalIpsConfig_ != null) { + bitField0_ |= 0x80000000; + onChanged(); + } + return this; + } + /** + *
+     * ServiceExternalIPsConfig specifies the config for the use of Services with
+     * ExternalIPs field.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + */ + public Builder clearDesiredServiceExternalIpsConfig() { + bitField0_ = (bitField0_ & ~0x80000000); + desiredServiceExternalIpsConfig_ = null; + if (desiredServiceExternalIpsConfigBuilder_ != null) { + desiredServiceExternalIpsConfigBuilder_.dispose(); + desiredServiceExternalIpsConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * ServiceExternalIPsConfig specifies the config for the use of Services with
+     * ExternalIPs field.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + */ + public com.google.container.v1.ServiceExternalIPsConfig.Builder getDesiredServiceExternalIpsConfigBuilder() { + bitField0_ |= 0x80000000; + onChanged(); + return getDesiredServiceExternalIpsConfigFieldBuilder().getBuilder(); + } + /** + *
+     * ServiceExternalIPsConfig specifies the config for the use of Services with
+     * ExternalIPs field.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + */ + public com.google.container.v1.ServiceExternalIPsConfigOrBuilder getDesiredServiceExternalIpsConfigOrBuilder() { + if (desiredServiceExternalIpsConfigBuilder_ != null) { + return desiredServiceExternalIpsConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredServiceExternalIpsConfig_ == null ? + com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance() : desiredServiceExternalIpsConfig_; + } + } + /** + *
+     * ServiceExternalIPsConfig specifies the config for the use of Services with
+     * ExternalIPs field.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ServiceExternalIPsConfig, com.google.container.v1.ServiceExternalIPsConfig.Builder, com.google.container.v1.ServiceExternalIPsConfigOrBuilder> + getDesiredServiceExternalIpsConfigFieldBuilder() { + if (desiredServiceExternalIpsConfigBuilder_ == null) { + desiredServiceExternalIpsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ServiceExternalIPsConfig, com.google.container.v1.ServiceExternalIPsConfig.Builder, com.google.container.v1.ServiceExternalIPsConfigOrBuilder>( + getDesiredServiceExternalIpsConfig(), + getParentForChildren(), + isClean()); + desiredServiceExternalIpsConfig_ = null; + } + return desiredServiceExternalIpsConfigBuilder_; + } + + private boolean desiredEnablePrivateEndpoint_ ; + /** + *
+     * Enable/Disable private endpoint for the cluster's master.
+     * 
+ * + * optional bool desired_enable_private_endpoint = 71; + * @return Whether the desiredEnablePrivateEndpoint field is set. + */ + @java.lang.Override + public boolean hasDesiredEnablePrivateEndpoint() { + return ((bitField1_ & 0x00000001) != 0); + } + /** + *
+     * Enable/Disable private endpoint for the cluster's master.
+     * 
+ * + * optional bool desired_enable_private_endpoint = 71; + * @return The desiredEnablePrivateEndpoint. + */ + @java.lang.Override + public boolean getDesiredEnablePrivateEndpoint() { + return desiredEnablePrivateEndpoint_; + } + /** + *
+     * Enable/Disable private endpoint for the cluster's master.
+     * 
+ * + * optional bool desired_enable_private_endpoint = 71; + * @param value The desiredEnablePrivateEndpoint to set. + * @return This builder for chaining. + */ + public Builder setDesiredEnablePrivateEndpoint(boolean value) { + + desiredEnablePrivateEndpoint_ = value; + bitField1_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Enable/Disable private endpoint for the cluster's master.
+     * 
+ * + * optional bool desired_enable_private_endpoint = 71; + * @return This builder for chaining. + */ + public Builder clearDesiredEnablePrivateEndpoint() { + bitField1_ = (bitField1_ & ~0x00000001); + desiredEnablePrivateEndpoint_ = false; + onChanged(); + return this; + } + + private java.lang.Object desiredMasterVersion_ = ""; + /** + *
+     * The Kubernetes version to change the master to.
+     *
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     *
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string desired_master_version = 100; + * @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.
+     *
+     * 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.
+     *
+     * 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; + bitField1_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The Kubernetes version to change the master to.
+     *
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     *
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string desired_master_version = 100; + * @return This builder for chaining. + */ + public Builder clearDesiredMasterVersion() { + desiredMasterVersion_ = getDefaultInstance().getDesiredMasterVersion(); + bitField1_ = (bitField1_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * The Kubernetes version to change the master to.
+     *
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     *
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "-": picks the default Kubernetes version
+     * 
+ * + * string desired_master_version = 100; + * @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; + bitField1_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.container.v1.GcfsConfig desiredGcfsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcfsConfig, com.google.container.v1.GcfsConfig.Builder, com.google.container.v1.GcfsConfigOrBuilder> desiredGcfsConfigBuilder_; + /** + *
+     * The desired GCFS config for the cluster
+     * 
+ * + * .google.container.v1.GcfsConfig desired_gcfs_config = 109; + * @return Whether the desiredGcfsConfig field is set. + */ + public boolean hasDesiredGcfsConfig() { + return ((bitField1_ & 0x00000004) != 0); + } + /** + *
+     * The desired GCFS config for the cluster
+     * 
+ * + * .google.container.v1.GcfsConfig desired_gcfs_config = 109; + * @return The desiredGcfsConfig. + */ + public com.google.container.v1.GcfsConfig getDesiredGcfsConfig() { + if (desiredGcfsConfigBuilder_ == null) { + return desiredGcfsConfig_ == null ? com.google.container.v1.GcfsConfig.getDefaultInstance() : desiredGcfsConfig_; + } else { + return desiredGcfsConfigBuilder_.getMessage(); + } + } + /** + *
+     * The desired GCFS config for the cluster
+     * 
+ * + * .google.container.v1.GcfsConfig desired_gcfs_config = 109; + */ + public Builder setDesiredGcfsConfig(com.google.container.v1.GcfsConfig value) { + if (desiredGcfsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredGcfsConfig_ = value; + } else { + desiredGcfsConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The desired GCFS config for the cluster
+     * 
+ * + * .google.container.v1.GcfsConfig desired_gcfs_config = 109; + */ + public Builder setDesiredGcfsConfig( + com.google.container.v1.GcfsConfig.Builder builderForValue) { + if (desiredGcfsConfigBuilder_ == null) { + desiredGcfsConfig_ = builderForValue.build(); + } else { + desiredGcfsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The desired GCFS config for the cluster
+     * 
+ * + * .google.container.v1.GcfsConfig desired_gcfs_config = 109; + */ + public Builder mergeDesiredGcfsConfig(com.google.container.v1.GcfsConfig value) { + if (desiredGcfsConfigBuilder_ == null) { + if (((bitField1_ & 0x00000004) != 0) && + desiredGcfsConfig_ != null && + desiredGcfsConfig_ != com.google.container.v1.GcfsConfig.getDefaultInstance()) { + getDesiredGcfsConfigBuilder().mergeFrom(value); + } else { + desiredGcfsConfig_ = value; + } + } else { + desiredGcfsConfigBuilder_.mergeFrom(value); + } + if (desiredGcfsConfig_ != null) { + bitField1_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+     * The desired GCFS config for the cluster
+     * 
+ * + * .google.container.v1.GcfsConfig desired_gcfs_config = 109; + */ + public Builder clearDesiredGcfsConfig() { + bitField1_ = (bitField1_ & ~0x00000004); + desiredGcfsConfig_ = null; + if (desiredGcfsConfigBuilder_ != null) { + desiredGcfsConfigBuilder_.dispose(); + desiredGcfsConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired GCFS config for the cluster
+     * 
+ * + * .google.container.v1.GcfsConfig desired_gcfs_config = 109; + */ + public com.google.container.v1.GcfsConfig.Builder getDesiredGcfsConfigBuilder() { + bitField1_ |= 0x00000004; + onChanged(); + return getDesiredGcfsConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The desired GCFS config for the cluster
+     * 
+ * + * .google.container.v1.GcfsConfig desired_gcfs_config = 109; + */ + public com.google.container.v1.GcfsConfigOrBuilder getDesiredGcfsConfigOrBuilder() { + if (desiredGcfsConfigBuilder_ != null) { + return desiredGcfsConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredGcfsConfig_ == null ? + com.google.container.v1.GcfsConfig.getDefaultInstance() : desiredGcfsConfig_; + } + } + /** + *
+     * The desired GCFS config for the cluster
+     * 
+ * + * .google.container.v1.GcfsConfig desired_gcfs_config = 109; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcfsConfig, com.google.container.v1.GcfsConfig.Builder, com.google.container.v1.GcfsConfigOrBuilder> + getDesiredGcfsConfigFieldBuilder() { + if (desiredGcfsConfigBuilder_ == null) { + desiredGcfsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcfsConfig, com.google.container.v1.GcfsConfig.Builder, com.google.container.v1.GcfsConfigOrBuilder>( + getDesiredGcfsConfig(), + getParentForChildren(), + isClean()); + desiredGcfsConfig_ = null; + } + return desiredGcfsConfigBuilder_; + } + + private com.google.container.v1.NetworkTags desiredNodePoolAutoConfigNetworkTags_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkTags, com.google.container.v1.NetworkTags.Builder, com.google.container.v1.NetworkTagsOrBuilder> desiredNodePoolAutoConfigNetworkTagsBuilder_; + /** + *
+     * The desired network tags that apply to all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; + * @return Whether the desiredNodePoolAutoConfigNetworkTags field is set. + */ + public boolean hasDesiredNodePoolAutoConfigNetworkTags() { + return ((bitField1_ & 0x00000008) != 0); + } + /** + *
+     * The desired network tags that apply to all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; + * @return The desiredNodePoolAutoConfigNetworkTags. + */ + public com.google.container.v1.NetworkTags getDesiredNodePoolAutoConfigNetworkTags() { + if (desiredNodePoolAutoConfigNetworkTagsBuilder_ == null) { + return desiredNodePoolAutoConfigNetworkTags_ == null ? com.google.container.v1.NetworkTags.getDefaultInstance() : desiredNodePoolAutoConfigNetworkTags_; + } else { + return desiredNodePoolAutoConfigNetworkTagsBuilder_.getMessage(); + } + } + /** + *
+     * The desired network tags that apply to all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; + */ + public Builder setDesiredNodePoolAutoConfigNetworkTags(com.google.container.v1.NetworkTags value) { + if (desiredNodePoolAutoConfigNetworkTagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredNodePoolAutoConfigNetworkTags_ = value; + } else { + desiredNodePoolAutoConfigNetworkTagsBuilder_.setMessage(value); + } + bitField1_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The desired network tags that apply to all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; + */ + public Builder setDesiredNodePoolAutoConfigNetworkTags( + com.google.container.v1.NetworkTags.Builder builderForValue) { + if (desiredNodePoolAutoConfigNetworkTagsBuilder_ == null) { + desiredNodePoolAutoConfigNetworkTags_ = builderForValue.build(); + } else { + desiredNodePoolAutoConfigNetworkTagsBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The desired network tags that apply to all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; + */ + public Builder mergeDesiredNodePoolAutoConfigNetworkTags(com.google.container.v1.NetworkTags value) { + if (desiredNodePoolAutoConfigNetworkTagsBuilder_ == null) { + if (((bitField1_ & 0x00000008) != 0) && + desiredNodePoolAutoConfigNetworkTags_ != null && + desiredNodePoolAutoConfigNetworkTags_ != com.google.container.v1.NetworkTags.getDefaultInstance()) { + getDesiredNodePoolAutoConfigNetworkTagsBuilder().mergeFrom(value); + } else { + desiredNodePoolAutoConfigNetworkTags_ = value; + } + } else { + desiredNodePoolAutoConfigNetworkTagsBuilder_.mergeFrom(value); + } + if (desiredNodePoolAutoConfigNetworkTags_ != null) { + bitField1_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + *
+     * The desired network tags that apply to all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; + */ + public Builder clearDesiredNodePoolAutoConfigNetworkTags() { + bitField1_ = (bitField1_ & ~0x00000008); + desiredNodePoolAutoConfigNetworkTags_ = null; + if (desiredNodePoolAutoConfigNetworkTagsBuilder_ != null) { + desiredNodePoolAutoConfigNetworkTagsBuilder_.dispose(); + desiredNodePoolAutoConfigNetworkTagsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired network tags that apply to all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; + */ + public com.google.container.v1.NetworkTags.Builder getDesiredNodePoolAutoConfigNetworkTagsBuilder() { + bitField1_ |= 0x00000008; + onChanged(); + return getDesiredNodePoolAutoConfigNetworkTagsFieldBuilder().getBuilder(); + } + /** + *
+     * The desired network tags that apply to all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; + */ + public com.google.container.v1.NetworkTagsOrBuilder getDesiredNodePoolAutoConfigNetworkTagsOrBuilder() { + if (desiredNodePoolAutoConfigNetworkTagsBuilder_ != null) { + return desiredNodePoolAutoConfigNetworkTagsBuilder_.getMessageOrBuilder(); + } else { + return desiredNodePoolAutoConfigNetworkTags_ == null ? + com.google.container.v1.NetworkTags.getDefaultInstance() : desiredNodePoolAutoConfigNetworkTags_; + } + } + /** + *
+     * The desired network tags that apply to all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkTags, com.google.container.v1.NetworkTags.Builder, com.google.container.v1.NetworkTagsOrBuilder> + getDesiredNodePoolAutoConfigNetworkTagsFieldBuilder() { + if (desiredNodePoolAutoConfigNetworkTagsBuilder_ == null) { + desiredNodePoolAutoConfigNetworkTagsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkTags, com.google.container.v1.NetworkTags.Builder, com.google.container.v1.NetworkTagsOrBuilder>( + getDesiredNodePoolAutoConfigNetworkTags(), + getParentForChildren(), + isClean()); + desiredNodePoolAutoConfigNetworkTags_ = null; + } + return desiredNodePoolAutoConfigNetworkTagsBuilder_; + } + + private com.google.container.v1.GatewayAPIConfig desiredGatewayApiConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GatewayAPIConfig, com.google.container.v1.GatewayAPIConfig.Builder, com.google.container.v1.GatewayAPIConfigOrBuilder> desiredGatewayApiConfigBuilder_; + /** + *
+     * The desired config of Gateway API on this cluster.
+     * 
+ * + * .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; + * @return Whether the desiredGatewayApiConfig field is set. + */ + public boolean hasDesiredGatewayApiConfig() { + return ((bitField1_ & 0x00000010) != 0); + } + /** + *
+     * The desired config of Gateway API on this cluster.
+     * 
+ * + * .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; + * @return The desiredGatewayApiConfig. + */ + public com.google.container.v1.GatewayAPIConfig getDesiredGatewayApiConfig() { + if (desiredGatewayApiConfigBuilder_ == null) { + return desiredGatewayApiConfig_ == null ? com.google.container.v1.GatewayAPIConfig.getDefaultInstance() : desiredGatewayApiConfig_; + } else { + return desiredGatewayApiConfigBuilder_.getMessage(); + } + } + /** + *
+     * The desired config of Gateway API on this cluster.
+     * 
+ * + * .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; + */ + public Builder setDesiredGatewayApiConfig(com.google.container.v1.GatewayAPIConfig value) { + if (desiredGatewayApiConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredGatewayApiConfig_ = value; + } else { + desiredGatewayApiConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * The desired config of Gateway API on this cluster.
+     * 
+ * + * .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; + */ + public Builder setDesiredGatewayApiConfig( + com.google.container.v1.GatewayAPIConfig.Builder builderForValue) { + if (desiredGatewayApiConfigBuilder_ == null) { + desiredGatewayApiConfig_ = builderForValue.build(); + } else { + desiredGatewayApiConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * The desired config of Gateway API on this cluster.
+     * 
+ * + * .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; + */ + public Builder mergeDesiredGatewayApiConfig(com.google.container.v1.GatewayAPIConfig value) { + if (desiredGatewayApiConfigBuilder_ == null) { + if (((bitField1_ & 0x00000010) != 0) && + desiredGatewayApiConfig_ != null && + desiredGatewayApiConfig_ != com.google.container.v1.GatewayAPIConfig.getDefaultInstance()) { + getDesiredGatewayApiConfigBuilder().mergeFrom(value); + } else { + desiredGatewayApiConfig_ = value; + } + } else { + desiredGatewayApiConfigBuilder_.mergeFrom(value); + } + if (desiredGatewayApiConfig_ != null) { + bitField1_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + *
+     * The desired config of Gateway API on this cluster.
+     * 
+ * + * .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; + */ + public Builder clearDesiredGatewayApiConfig() { + bitField1_ = (bitField1_ & ~0x00000010); + desiredGatewayApiConfig_ = null; + if (desiredGatewayApiConfigBuilder_ != null) { + desiredGatewayApiConfigBuilder_.dispose(); + desiredGatewayApiConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired config of Gateway API on this cluster.
+     * 
+ * + * .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; + */ + public com.google.container.v1.GatewayAPIConfig.Builder getDesiredGatewayApiConfigBuilder() { + bitField1_ |= 0x00000010; + onChanged(); + return getDesiredGatewayApiConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The desired config of Gateway API on this cluster.
+     * 
+ * + * .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; + */ + public com.google.container.v1.GatewayAPIConfigOrBuilder getDesiredGatewayApiConfigOrBuilder() { + if (desiredGatewayApiConfigBuilder_ != null) { + return desiredGatewayApiConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredGatewayApiConfig_ == null ? + com.google.container.v1.GatewayAPIConfig.getDefaultInstance() : desiredGatewayApiConfig_; + } + } + /** + *
+     * The desired config of Gateway API on this cluster.
+     * 
+ * + * .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GatewayAPIConfig, com.google.container.v1.GatewayAPIConfig.Builder, com.google.container.v1.GatewayAPIConfigOrBuilder> + getDesiredGatewayApiConfigFieldBuilder() { + if (desiredGatewayApiConfigBuilder_ == null) { + desiredGatewayApiConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GatewayAPIConfig, com.google.container.v1.GatewayAPIConfig.Builder, com.google.container.v1.GatewayAPIConfigOrBuilder>( + getDesiredGatewayApiConfig(), + getParentForChildren(), + isClean()); + desiredGatewayApiConfig_ = null; + } + return desiredGatewayApiConfigBuilder_; + } + + private java.lang.Object etag_ = ""; + /** + *
+     * The current etag of the cluster.
+     * If an etag is provided and does not match the current etag of the cluster,
+     * update will be blocked and an ABORTED error will be returned.
+     * 
+ * + * string etag = 115; + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The current etag of the cluster.
+     * If an etag is provided and does not match the current etag of the cluster,
+     * update will be blocked and an ABORTED error will be returned.
+     * 
+ * + * string etag = 115; + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString + getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The current etag of the cluster.
+     * If an etag is provided and does not match the current etag of the cluster,
+     * update will be blocked and an ABORTED error will be returned.
+     * 
+ * + * string etag = 115; + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + etag_ = value; + bitField1_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * The current etag of the cluster.
+     * If an etag is provided and does not match the current etag of the cluster,
+     * update will be blocked and an ABORTED error will be returned.
+     * 
+ * + * string etag = 115; + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField1_ = (bitField1_ & ~0x00000020); + onChanged(); + return this; + } + /** + *
+     * The current etag of the cluster.
+     * If an etag is provided and does not match the current etag of the cluster,
+     * update will be blocked and an ABORTED error will be returned.
+     * 
+ * + * string etag = 115; + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + etag_ = value; + bitField1_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.container.v1.NodePoolLoggingConfig desiredNodePoolLoggingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePoolLoggingConfig, com.google.container.v1.NodePoolLoggingConfig.Builder, com.google.container.v1.NodePoolLoggingConfigOrBuilder> desiredNodePoolLoggingConfigBuilder_; + /** + *
+     * The desired node pool logging configuration defaults for the cluster.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; + * @return Whether the desiredNodePoolLoggingConfig field is set. + */ + public boolean hasDesiredNodePoolLoggingConfig() { + return ((bitField1_ & 0x00000040) != 0); + } + /** + *
+     * The desired node pool logging configuration defaults for the cluster.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; + * @return The desiredNodePoolLoggingConfig. + */ + public com.google.container.v1.NodePoolLoggingConfig getDesiredNodePoolLoggingConfig() { + if (desiredNodePoolLoggingConfigBuilder_ == null) { + return desiredNodePoolLoggingConfig_ == null ? com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance() : desiredNodePoolLoggingConfig_; + } else { + return desiredNodePoolLoggingConfigBuilder_.getMessage(); + } + } + /** + *
+     * The desired node pool logging configuration defaults for the cluster.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; + */ + public Builder setDesiredNodePoolLoggingConfig(com.google.container.v1.NodePoolLoggingConfig value) { + if (desiredNodePoolLoggingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredNodePoolLoggingConfig_ = value; + } else { + desiredNodePoolLoggingConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * The desired node pool logging configuration defaults for the cluster.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; + */ + public Builder setDesiredNodePoolLoggingConfig( + com.google.container.v1.NodePoolLoggingConfig.Builder builderForValue) { + if (desiredNodePoolLoggingConfigBuilder_ == null) { + desiredNodePoolLoggingConfig_ = builderForValue.build(); + } else { + desiredNodePoolLoggingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * The desired node pool logging configuration defaults for the cluster.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; + */ + public Builder mergeDesiredNodePoolLoggingConfig(com.google.container.v1.NodePoolLoggingConfig value) { + if (desiredNodePoolLoggingConfigBuilder_ == null) { + if (((bitField1_ & 0x00000040) != 0) && + desiredNodePoolLoggingConfig_ != null && + desiredNodePoolLoggingConfig_ != com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance()) { + getDesiredNodePoolLoggingConfigBuilder().mergeFrom(value); + } else { + desiredNodePoolLoggingConfig_ = value; + } + } else { + desiredNodePoolLoggingConfigBuilder_.mergeFrom(value); + } + if (desiredNodePoolLoggingConfig_ != null) { + bitField1_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + *
+     * The desired node pool logging configuration defaults for the cluster.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; + */ + public Builder clearDesiredNodePoolLoggingConfig() { + bitField1_ = (bitField1_ & ~0x00000040); + desiredNodePoolLoggingConfig_ = null; + if (desiredNodePoolLoggingConfigBuilder_ != null) { + desiredNodePoolLoggingConfigBuilder_.dispose(); + desiredNodePoolLoggingConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired node pool logging configuration defaults for the cluster.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; + */ + public com.google.container.v1.NodePoolLoggingConfig.Builder getDesiredNodePoolLoggingConfigBuilder() { + bitField1_ |= 0x00000040; + onChanged(); + return getDesiredNodePoolLoggingConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The desired node pool logging configuration defaults for the cluster.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; + */ + public com.google.container.v1.NodePoolLoggingConfigOrBuilder getDesiredNodePoolLoggingConfigOrBuilder() { + if (desiredNodePoolLoggingConfigBuilder_ != null) { + return desiredNodePoolLoggingConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredNodePoolLoggingConfig_ == null ? + com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance() : desiredNodePoolLoggingConfig_; + } + } + /** + *
+     * The desired node pool logging configuration defaults for the cluster.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePoolLoggingConfig, com.google.container.v1.NodePoolLoggingConfig.Builder, com.google.container.v1.NodePoolLoggingConfigOrBuilder> + getDesiredNodePoolLoggingConfigFieldBuilder() { + if (desiredNodePoolLoggingConfigBuilder_ == null) { + desiredNodePoolLoggingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePoolLoggingConfig, com.google.container.v1.NodePoolLoggingConfig.Builder, com.google.container.v1.NodePoolLoggingConfigOrBuilder>( + getDesiredNodePoolLoggingConfig(), + getParentForChildren(), + isClean()); + desiredNodePoolLoggingConfig_ = null; + } + return desiredNodePoolLoggingConfigBuilder_; + } + + private com.google.container.v1.Fleet desiredFleet_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.Fleet, com.google.container.v1.Fleet.Builder, com.google.container.v1.FleetOrBuilder> desiredFleetBuilder_; + /** + *
+     * The desired fleet configuration for the cluster.
+     * 
+ * + * .google.container.v1.Fleet desired_fleet = 117; + * @return Whether the desiredFleet field is set. + */ + public boolean hasDesiredFleet() { + return ((bitField1_ & 0x00000080) != 0); + } + /** + *
+     * The desired fleet configuration for the cluster.
+     * 
+ * + * .google.container.v1.Fleet desired_fleet = 117; + * @return The desiredFleet. + */ + public com.google.container.v1.Fleet getDesiredFleet() { + if (desiredFleetBuilder_ == null) { + return desiredFleet_ == null ? com.google.container.v1.Fleet.getDefaultInstance() : desiredFleet_; + } else { + return desiredFleetBuilder_.getMessage(); + } + } + /** + *
+     * The desired fleet configuration for the cluster.
+     * 
+ * + * .google.container.v1.Fleet desired_fleet = 117; + */ + public Builder setDesiredFleet(com.google.container.v1.Fleet value) { + if (desiredFleetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredFleet_ = value; + } else { + desiredFleetBuilder_.setMessage(value); + } + bitField1_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * The desired fleet configuration for the cluster.
+     * 
+ * + * .google.container.v1.Fleet desired_fleet = 117; + */ + public Builder setDesiredFleet( + com.google.container.v1.Fleet.Builder builderForValue) { + if (desiredFleetBuilder_ == null) { + desiredFleet_ = builderForValue.build(); + } else { + desiredFleetBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * The desired fleet configuration for the cluster.
+     * 
+ * + * .google.container.v1.Fleet desired_fleet = 117; + */ + public Builder mergeDesiredFleet(com.google.container.v1.Fleet value) { + if (desiredFleetBuilder_ == null) { + if (((bitField1_ & 0x00000080) != 0) && + desiredFleet_ != null && + desiredFleet_ != com.google.container.v1.Fleet.getDefaultInstance()) { + getDesiredFleetBuilder().mergeFrom(value); + } else { + desiredFleet_ = value; + } + } else { + desiredFleetBuilder_.mergeFrom(value); + } + if (desiredFleet_ != null) { + bitField1_ |= 0x00000080; + onChanged(); + } + return this; + } + /** + *
+     * The desired fleet configuration for the cluster.
+     * 
+ * + * .google.container.v1.Fleet desired_fleet = 117; + */ + public Builder clearDesiredFleet() { + bitField1_ = (bitField1_ & ~0x00000080); + desiredFleet_ = null; + if (desiredFleetBuilder_ != null) { + desiredFleetBuilder_.dispose(); + desiredFleetBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired fleet configuration for the cluster.
+     * 
+ * + * .google.container.v1.Fleet desired_fleet = 117; + */ + public com.google.container.v1.Fleet.Builder getDesiredFleetBuilder() { + bitField1_ |= 0x00000080; + onChanged(); + return getDesiredFleetFieldBuilder().getBuilder(); + } + /** + *
+     * The desired fleet configuration for the cluster.
+     * 
+ * + * .google.container.v1.Fleet desired_fleet = 117; + */ + public com.google.container.v1.FleetOrBuilder getDesiredFleetOrBuilder() { + if (desiredFleetBuilder_ != null) { + return desiredFleetBuilder_.getMessageOrBuilder(); + } else { + return desiredFleet_ == null ? + com.google.container.v1.Fleet.getDefaultInstance() : desiredFleet_; + } + } + /** + *
+     * The desired fleet configuration for the cluster.
+     * 
+ * + * .google.container.v1.Fleet desired_fleet = 117; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.Fleet, com.google.container.v1.Fleet.Builder, com.google.container.v1.FleetOrBuilder> + getDesiredFleetFieldBuilder() { + if (desiredFleetBuilder_ == null) { + desiredFleetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.Fleet, com.google.container.v1.Fleet.Builder, com.google.container.v1.FleetOrBuilder>( + getDesiredFleet(), + getParentForChildren(), + isClean()); + desiredFleet_ = null; + } + return desiredFleetBuilder_; + } + + private int desiredStackType_ = 0; + /** + *
+     * The desired stack type of the cluster.
+     * If a stack type is provided and does not match the current stack type of
+     * the cluster, update will attempt to change the stack type to the new type.
+     * 
+ * + * .google.container.v1.StackType desired_stack_type = 119; + * @return The enum numeric value on the wire for desiredStackType. + */ + @java.lang.Override public int getDesiredStackTypeValue() { + return desiredStackType_; + } + /** + *
+     * The desired stack type of the cluster.
+     * If a stack type is provided and does not match the current stack type of
+     * the cluster, update will attempt to change the stack type to the new type.
+     * 
+ * + * .google.container.v1.StackType desired_stack_type = 119; + * @param value The enum numeric value on the wire for desiredStackType to set. + * @return This builder for chaining. + */ + public Builder setDesiredStackTypeValue(int value) { + desiredStackType_ = value; + bitField1_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * The desired stack type of the cluster.
+     * If a stack type is provided and does not match the current stack type of
+     * the cluster, update will attempt to change the stack type to the new type.
+     * 
+ * + * .google.container.v1.StackType desired_stack_type = 119; + * @return The desiredStackType. + */ + @java.lang.Override + public com.google.container.v1.StackType getDesiredStackType() { + com.google.container.v1.StackType result = com.google.container.v1.StackType.forNumber(desiredStackType_); + return result == null ? com.google.container.v1.StackType.UNRECOGNIZED : result; + } + /** + *
+     * The desired stack type of the cluster.
+     * If a stack type is provided and does not match the current stack type of
+     * the cluster, update will attempt to change the stack type to the new type.
+     * 
+ * + * .google.container.v1.StackType desired_stack_type = 119; + * @param value The desiredStackType to set. + * @return This builder for chaining. + */ + public Builder setDesiredStackType(com.google.container.v1.StackType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField1_ |= 0x00000100; + desiredStackType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The desired stack type of the cluster.
+     * If a stack type is provided and does not match the current stack type of
+     * the cluster, update will attempt to change the stack type to the new type.
+     * 
+ * + * .google.container.v1.StackType desired_stack_type = 119; + * @return This builder for chaining. + */ + public Builder clearDesiredStackType() { + bitField1_ = (bitField1_ & ~0x00000100); + desiredStackType_ = 0; + onChanged(); + return this; + } + + private com.google.container.v1.AdditionalPodRangesConfig additionalPodRangesConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AdditionalPodRangesConfig, com.google.container.v1.AdditionalPodRangesConfig.Builder, com.google.container.v1.AdditionalPodRangesConfigOrBuilder> additionalPodRangesConfigBuilder_; + /** + *
+     * The additional pod ranges to be added to the cluster. These pod ranges
+     * can be used by node pools to allocate pod IPs.
+     * 
+ * + * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; + * @return Whether the additionalPodRangesConfig field is set. + */ + public boolean hasAdditionalPodRangesConfig() { + return ((bitField1_ & 0x00000200) != 0); + } + /** + *
+     * The additional pod ranges to be added to the cluster. These pod ranges
+     * can be used by node pools to allocate pod IPs.
+     * 
+ * + * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; + * @return The additionalPodRangesConfig. + */ + public com.google.container.v1.AdditionalPodRangesConfig getAdditionalPodRangesConfig() { + if (additionalPodRangesConfigBuilder_ == null) { + return additionalPodRangesConfig_ == null ? com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance() : additionalPodRangesConfig_; + } else { + return additionalPodRangesConfigBuilder_.getMessage(); + } + } + /** + *
+     * The additional pod ranges to be added to the cluster. These pod ranges
+     * can be used by node pools to allocate pod IPs.
+     * 
+ * + * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; + */ + public Builder setAdditionalPodRangesConfig(com.google.container.v1.AdditionalPodRangesConfig value) { + if (additionalPodRangesConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + additionalPodRangesConfig_ = value; + } else { + additionalPodRangesConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * The additional pod ranges to be added to the cluster. These pod ranges
+     * can be used by node pools to allocate pod IPs.
+     * 
+ * + * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; + */ + public Builder setAdditionalPodRangesConfig( + com.google.container.v1.AdditionalPodRangesConfig.Builder builderForValue) { + if (additionalPodRangesConfigBuilder_ == null) { + additionalPodRangesConfig_ = builderForValue.build(); + } else { + additionalPodRangesConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * The additional pod ranges to be added to the cluster. These pod ranges
+     * can be used by node pools to allocate pod IPs.
+     * 
+ * + * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; + */ + public Builder mergeAdditionalPodRangesConfig(com.google.container.v1.AdditionalPodRangesConfig value) { + if (additionalPodRangesConfigBuilder_ == null) { + if (((bitField1_ & 0x00000200) != 0) && + additionalPodRangesConfig_ != null && + additionalPodRangesConfig_ != com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance()) { + getAdditionalPodRangesConfigBuilder().mergeFrom(value); + } else { + additionalPodRangesConfig_ = value; + } + } else { + additionalPodRangesConfigBuilder_.mergeFrom(value); + } + if (additionalPodRangesConfig_ != null) { + bitField1_ |= 0x00000200; + onChanged(); + } + return this; + } + /** + *
+     * The additional pod ranges to be added to the cluster. These pod ranges
+     * can be used by node pools to allocate pod IPs.
+     * 
+ * + * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; + */ + public Builder clearAdditionalPodRangesConfig() { + bitField1_ = (bitField1_ & ~0x00000200); + additionalPodRangesConfig_ = null; + if (additionalPodRangesConfigBuilder_ != null) { + additionalPodRangesConfigBuilder_.dispose(); + additionalPodRangesConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The additional pod ranges to be added to the cluster. These pod ranges
+     * can be used by node pools to allocate pod IPs.
+     * 
+ * + * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; + */ + public com.google.container.v1.AdditionalPodRangesConfig.Builder getAdditionalPodRangesConfigBuilder() { + bitField1_ |= 0x00000200; + onChanged(); + return getAdditionalPodRangesConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The additional pod ranges to be added to the cluster. These pod ranges
+     * can be used by node pools to allocate pod IPs.
+     * 
+ * + * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; + */ + public com.google.container.v1.AdditionalPodRangesConfigOrBuilder getAdditionalPodRangesConfigOrBuilder() { + if (additionalPodRangesConfigBuilder_ != null) { + return additionalPodRangesConfigBuilder_.getMessageOrBuilder(); + } else { + return additionalPodRangesConfig_ == null ? + com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance() : additionalPodRangesConfig_; + } + } + /** + *
+     * The additional pod ranges to be added to the cluster. These pod ranges
+     * can be used by node pools to allocate pod IPs.
+     * 
+ * + * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AdditionalPodRangesConfig, com.google.container.v1.AdditionalPodRangesConfig.Builder, com.google.container.v1.AdditionalPodRangesConfigOrBuilder> + getAdditionalPodRangesConfigFieldBuilder() { + if (additionalPodRangesConfigBuilder_ == null) { + additionalPodRangesConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AdditionalPodRangesConfig, com.google.container.v1.AdditionalPodRangesConfig.Builder, com.google.container.v1.AdditionalPodRangesConfigOrBuilder>( + getAdditionalPodRangesConfig(), + getParentForChildren(), + isClean()); + additionalPodRangesConfig_ = null; + } + return additionalPodRangesConfigBuilder_; + } + + private com.google.container.v1.AdditionalPodRangesConfig removedAdditionalPodRangesConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AdditionalPodRangesConfig, com.google.container.v1.AdditionalPodRangesConfig.Builder, com.google.container.v1.AdditionalPodRangesConfigOrBuilder> removedAdditionalPodRangesConfigBuilder_; + /** + *
+     * The additional pod ranges that are to be removed from the cluster.
+     * The pod ranges specified here must have been specified earlier in the
+     * 'additional_pod_ranges_config' argument.
+     * 
+ * + * .google.container.v1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; + * @return Whether the removedAdditionalPodRangesConfig field is set. + */ + public boolean hasRemovedAdditionalPodRangesConfig() { + return ((bitField1_ & 0x00000400) != 0); + } + /** + *
+     * The additional pod ranges that are to be removed from the cluster.
+     * The pod ranges specified here must have been specified earlier in the
+     * 'additional_pod_ranges_config' argument.
+     * 
+ * + * .google.container.v1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; + * @return The removedAdditionalPodRangesConfig. + */ + public com.google.container.v1.AdditionalPodRangesConfig getRemovedAdditionalPodRangesConfig() { + if (removedAdditionalPodRangesConfigBuilder_ == null) { + return removedAdditionalPodRangesConfig_ == null ? com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance() : removedAdditionalPodRangesConfig_; + } else { + return removedAdditionalPodRangesConfigBuilder_.getMessage(); + } + } + /** + *
+     * The additional pod ranges that are to be removed from the cluster.
+     * The pod ranges specified here must have been specified earlier in the
+     * 'additional_pod_ranges_config' argument.
+     * 
+ * + * .google.container.v1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; + */ + public Builder setRemovedAdditionalPodRangesConfig(com.google.container.v1.AdditionalPodRangesConfig value) { + if (removedAdditionalPodRangesConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + removedAdditionalPodRangesConfig_ = value; + } else { + removedAdditionalPodRangesConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+     * The additional pod ranges that are to be removed from the cluster.
+     * The pod ranges specified here must have been specified earlier in the
+     * 'additional_pod_ranges_config' argument.
+     * 
+ * + * .google.container.v1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; + */ + public Builder setRemovedAdditionalPodRangesConfig( + com.google.container.v1.AdditionalPodRangesConfig.Builder builderForValue) { + if (removedAdditionalPodRangesConfigBuilder_ == null) { + removedAdditionalPodRangesConfig_ = builderForValue.build(); + } else { + removedAdditionalPodRangesConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+     * The additional pod ranges that are to be removed from the cluster.
+     * The pod ranges specified here must have been specified earlier in the
+     * 'additional_pod_ranges_config' argument.
+     * 
+ * + * .google.container.v1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; + */ + public Builder mergeRemovedAdditionalPodRangesConfig(com.google.container.v1.AdditionalPodRangesConfig value) { + if (removedAdditionalPodRangesConfigBuilder_ == null) { + if (((bitField1_ & 0x00000400) != 0) && + removedAdditionalPodRangesConfig_ != null && + removedAdditionalPodRangesConfig_ != com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance()) { + getRemovedAdditionalPodRangesConfigBuilder().mergeFrom(value); + } else { + removedAdditionalPodRangesConfig_ = value; + } + } else { + removedAdditionalPodRangesConfigBuilder_.mergeFrom(value); + } + if (removedAdditionalPodRangesConfig_ != null) { + bitField1_ |= 0x00000400; + onChanged(); + } + return this; + } + /** + *
+     * The additional pod ranges that are to be removed from the cluster.
+     * The pod ranges specified here must have been specified earlier in the
+     * 'additional_pod_ranges_config' argument.
+     * 
+ * + * .google.container.v1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; + */ + public Builder clearRemovedAdditionalPodRangesConfig() { + bitField1_ = (bitField1_ & ~0x00000400); + removedAdditionalPodRangesConfig_ = null; + if (removedAdditionalPodRangesConfigBuilder_ != null) { + removedAdditionalPodRangesConfigBuilder_.dispose(); + removedAdditionalPodRangesConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The additional pod ranges that are to be removed from the cluster.
+     * The pod ranges specified here must have been specified earlier in the
+     * 'additional_pod_ranges_config' argument.
+     * 
+ * + * .google.container.v1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; + */ + public com.google.container.v1.AdditionalPodRangesConfig.Builder getRemovedAdditionalPodRangesConfigBuilder() { + bitField1_ |= 0x00000400; + onChanged(); + return getRemovedAdditionalPodRangesConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The additional pod ranges that are to be removed from the cluster.
+     * The pod ranges specified here must have been specified earlier in the
+     * 'additional_pod_ranges_config' argument.
+     * 
+ * + * .google.container.v1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; + */ + public com.google.container.v1.AdditionalPodRangesConfigOrBuilder getRemovedAdditionalPodRangesConfigOrBuilder() { + if (removedAdditionalPodRangesConfigBuilder_ != null) { + return removedAdditionalPodRangesConfigBuilder_.getMessageOrBuilder(); + } else { + return removedAdditionalPodRangesConfig_ == null ? + com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance() : removedAdditionalPodRangesConfig_; + } + } + /** + *
+     * The additional pod ranges that are to be removed from the cluster.
+     * The pod ranges specified here must have been specified earlier in the
+     * 'additional_pod_ranges_config' argument.
+     * 
+ * + * .google.container.v1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AdditionalPodRangesConfig, com.google.container.v1.AdditionalPodRangesConfig.Builder, com.google.container.v1.AdditionalPodRangesConfigOrBuilder> + getRemovedAdditionalPodRangesConfigFieldBuilder() { + if (removedAdditionalPodRangesConfigBuilder_ == null) { + removedAdditionalPodRangesConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AdditionalPodRangesConfig, com.google.container.v1.AdditionalPodRangesConfig.Builder, com.google.container.v1.AdditionalPodRangesConfigOrBuilder>( + getRemovedAdditionalPodRangesConfig(), + getParentForChildren(), + isClean()); + removedAdditionalPodRangesConfig_ = null; + } + return removedAdditionalPodRangesConfigBuilder_; + } + + private com.google.container.v1.K8sBetaAPIConfig enableK8SBetaApis_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.K8sBetaAPIConfig, com.google.container.v1.K8sBetaAPIConfig.Builder, com.google.container.v1.K8sBetaAPIConfigOrBuilder> enableK8SBetaApisBuilder_; + /** + *
+     * Kubernetes open source beta apis enabled on the cluster. Only beta apis
+     * 
+ * + * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; + * @return Whether the enableK8sBetaApis field is set. + */ + public boolean hasEnableK8SBetaApis() { + return ((bitField1_ & 0x00000800) != 0); + } + /** + *
+     * Kubernetes open source beta apis enabled on the cluster. Only beta apis
+     * 
+ * + * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; + * @return The enableK8sBetaApis. + */ + public com.google.container.v1.K8sBetaAPIConfig getEnableK8SBetaApis() { + if (enableK8SBetaApisBuilder_ == null) { + return enableK8SBetaApis_ == null ? com.google.container.v1.K8sBetaAPIConfig.getDefaultInstance() : enableK8SBetaApis_; + } else { + return enableK8SBetaApisBuilder_.getMessage(); + } + } + /** + *
+     * Kubernetes open source beta apis enabled on the cluster. Only beta apis
+     * 
+ * + * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; + */ + public Builder setEnableK8SBetaApis(com.google.container.v1.K8sBetaAPIConfig value) { + if (enableK8SBetaApisBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + enableK8SBetaApis_ = value; + } else { + enableK8SBetaApisBuilder_.setMessage(value); + } + bitField1_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * Kubernetes open source beta apis enabled on the cluster. Only beta apis
+     * 
+ * + * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; + */ + public Builder setEnableK8SBetaApis( + com.google.container.v1.K8sBetaAPIConfig.Builder builderForValue) { + if (enableK8SBetaApisBuilder_ == null) { + enableK8SBetaApis_ = builderForValue.build(); + } else { + enableK8SBetaApisBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * Kubernetes open source beta apis enabled on the cluster. Only beta apis
+     * 
+ * + * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; + */ + public Builder mergeEnableK8SBetaApis(com.google.container.v1.K8sBetaAPIConfig value) { + if (enableK8SBetaApisBuilder_ == null) { + if (((bitField1_ & 0x00000800) != 0) && + enableK8SBetaApis_ != null && + enableK8SBetaApis_ != com.google.container.v1.K8sBetaAPIConfig.getDefaultInstance()) { + getEnableK8SBetaApisBuilder().mergeFrom(value); + } else { + enableK8SBetaApis_ = value; + } + } else { + enableK8SBetaApisBuilder_.mergeFrom(value); + } + if (enableK8SBetaApis_ != null) { + bitField1_ |= 0x00000800; + onChanged(); + } + return this; + } + /** + *
+     * Kubernetes open source beta apis enabled on the cluster. Only beta apis
+     * 
+ * + * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; + */ + public Builder clearEnableK8SBetaApis() { + bitField1_ = (bitField1_ & ~0x00000800); + enableK8SBetaApis_ = null; + if (enableK8SBetaApisBuilder_ != null) { + enableK8SBetaApisBuilder_.dispose(); + enableK8SBetaApisBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Kubernetes open source beta apis enabled on the cluster. Only beta apis
+     * 
+ * + * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; + */ + public com.google.container.v1.K8sBetaAPIConfig.Builder getEnableK8SBetaApisBuilder() { + bitField1_ |= 0x00000800; + onChanged(); + return getEnableK8SBetaApisFieldBuilder().getBuilder(); + } + /** + *
+     * Kubernetes open source beta apis enabled on the cluster. Only beta apis
+     * 
+ * + * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; + */ + public com.google.container.v1.K8sBetaAPIConfigOrBuilder getEnableK8SBetaApisOrBuilder() { + if (enableK8SBetaApisBuilder_ != null) { + return enableK8SBetaApisBuilder_.getMessageOrBuilder(); + } else { + return enableK8SBetaApis_ == null ? + com.google.container.v1.K8sBetaAPIConfig.getDefaultInstance() : enableK8SBetaApis_; + } + } + /** + *
+     * Kubernetes open source beta apis enabled on the cluster. Only beta apis
+     * 
+ * + * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.K8sBetaAPIConfig, com.google.container.v1.K8sBetaAPIConfig.Builder, com.google.container.v1.K8sBetaAPIConfigOrBuilder> + getEnableK8SBetaApisFieldBuilder() { + if (enableK8SBetaApisBuilder_ == null) { + enableK8SBetaApisBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.K8sBetaAPIConfig, com.google.container.v1.K8sBetaAPIConfig.Builder, com.google.container.v1.K8sBetaAPIConfigOrBuilder>( + getEnableK8SBetaApis(), + getParentForChildren(), + isClean()); + enableK8SBetaApis_ = null; + } + return enableK8SBetaApisBuilder_; + } + + private com.google.container.v1.SecurityPostureConfig desiredSecurityPostureConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.SecurityPostureConfig, com.google.container.v1.SecurityPostureConfig.Builder, com.google.container.v1.SecurityPostureConfigOrBuilder> desiredSecurityPostureConfigBuilder_; + /** + *
+     * Enable/Disable Security Posture API features for the cluster.
+     * 
+ * + * .google.container.v1.SecurityPostureConfig desired_security_posture_config = 124; + * @return Whether the desiredSecurityPostureConfig field is set. + */ + public boolean hasDesiredSecurityPostureConfig() { + return ((bitField1_ & 0x00001000) != 0); + } + /** + *
+     * Enable/Disable Security Posture API features for the cluster.
+     * 
+ * + * .google.container.v1.SecurityPostureConfig desired_security_posture_config = 124; + * @return The desiredSecurityPostureConfig. + */ + public com.google.container.v1.SecurityPostureConfig getDesiredSecurityPostureConfig() { + if (desiredSecurityPostureConfigBuilder_ == null) { + return desiredSecurityPostureConfig_ == null ? com.google.container.v1.SecurityPostureConfig.getDefaultInstance() : desiredSecurityPostureConfig_; + } else { + return desiredSecurityPostureConfigBuilder_.getMessage(); + } + } + /** + *
+     * Enable/Disable Security Posture API features for the cluster.
+     * 
+ * + * .google.container.v1.SecurityPostureConfig desired_security_posture_config = 124; + */ + public Builder setDesiredSecurityPostureConfig(com.google.container.v1.SecurityPostureConfig value) { + if (desiredSecurityPostureConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredSecurityPostureConfig_ = value; + } else { + desiredSecurityPostureConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00001000; + onChanged(); + return this; + } + /** + *
+     * Enable/Disable Security Posture API features for the cluster.
+     * 
+ * + * .google.container.v1.SecurityPostureConfig desired_security_posture_config = 124; + */ + public Builder setDesiredSecurityPostureConfig( + com.google.container.v1.SecurityPostureConfig.Builder builderForValue) { + if (desiredSecurityPostureConfigBuilder_ == null) { + desiredSecurityPostureConfig_ = builderForValue.build(); + } else { + desiredSecurityPostureConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00001000; + onChanged(); + return this; + } + /** + *
+     * Enable/Disable Security Posture API features for the cluster.
+     * 
+ * + * .google.container.v1.SecurityPostureConfig desired_security_posture_config = 124; + */ + public Builder mergeDesiredSecurityPostureConfig(com.google.container.v1.SecurityPostureConfig value) { + if (desiredSecurityPostureConfigBuilder_ == null) { + if (((bitField1_ & 0x00001000) != 0) && + desiredSecurityPostureConfig_ != null && + desiredSecurityPostureConfig_ != com.google.container.v1.SecurityPostureConfig.getDefaultInstance()) { + getDesiredSecurityPostureConfigBuilder().mergeFrom(value); + } else { + desiredSecurityPostureConfig_ = value; + } + } else { + desiredSecurityPostureConfigBuilder_.mergeFrom(value); + } + if (desiredSecurityPostureConfig_ != null) { + bitField1_ |= 0x00001000; + onChanged(); + } + return this; + } + /** + *
+     * Enable/Disable Security Posture API features for the cluster.
+     * 
+ * + * .google.container.v1.SecurityPostureConfig desired_security_posture_config = 124; + */ + public Builder clearDesiredSecurityPostureConfig() { + bitField1_ = (bitField1_ & ~0x00001000); + desiredSecurityPostureConfig_ = null; + if (desiredSecurityPostureConfigBuilder_ != null) { + desiredSecurityPostureConfigBuilder_.dispose(); + desiredSecurityPostureConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Enable/Disable Security Posture API features for the cluster.
+     * 
+ * + * .google.container.v1.SecurityPostureConfig desired_security_posture_config = 124; + */ + public com.google.container.v1.SecurityPostureConfig.Builder getDesiredSecurityPostureConfigBuilder() { + bitField1_ |= 0x00001000; + onChanged(); + return getDesiredSecurityPostureConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Enable/Disable Security Posture API features for the cluster.
+     * 
+ * + * .google.container.v1.SecurityPostureConfig desired_security_posture_config = 124; + */ + public com.google.container.v1.SecurityPostureConfigOrBuilder getDesiredSecurityPostureConfigOrBuilder() { + if (desiredSecurityPostureConfigBuilder_ != null) { + return desiredSecurityPostureConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredSecurityPostureConfig_ == null ? + com.google.container.v1.SecurityPostureConfig.getDefaultInstance() : desiredSecurityPostureConfig_; + } + } + /** + *
+     * Enable/Disable Security Posture API features for the cluster.
+     * 
+ * + * .google.container.v1.SecurityPostureConfig desired_security_posture_config = 124; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.SecurityPostureConfig, com.google.container.v1.SecurityPostureConfig.Builder, com.google.container.v1.SecurityPostureConfigOrBuilder> + getDesiredSecurityPostureConfigFieldBuilder() { + if (desiredSecurityPostureConfigBuilder_ == null) { + desiredSecurityPostureConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.SecurityPostureConfig, com.google.container.v1.SecurityPostureConfig.Builder, com.google.container.v1.SecurityPostureConfigOrBuilder>( + getDesiredSecurityPostureConfig(), + getParentForChildren(), + isClean()); + desiredSecurityPostureConfig_ = null; + } + return desiredSecurityPostureConfigBuilder_; + } + + private com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desiredNetworkPerformanceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig, com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder, com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder> desiredNetworkPerformanceConfigBuilder_; + /** + *
+     * The desired network performance config.
+     * 
+ * + * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; + * @return Whether the desiredNetworkPerformanceConfig field is set. + */ + public boolean hasDesiredNetworkPerformanceConfig() { + return ((bitField1_ & 0x00002000) != 0); + } + /** + *
+     * The desired network performance config.
+     * 
+ * + * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; + * @return The desiredNetworkPerformanceConfig. + */ + public com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig getDesiredNetworkPerformanceConfig() { + if (desiredNetworkPerformanceConfigBuilder_ == null) { + return desiredNetworkPerformanceConfig_ == null ? com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.getDefaultInstance() : desiredNetworkPerformanceConfig_; + } else { + return desiredNetworkPerformanceConfigBuilder_.getMessage(); + } + } + /** + *
+     * The desired network performance config.
+     * 
+ * + * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; + */ + public Builder setDesiredNetworkPerformanceConfig(com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig value) { + if (desiredNetworkPerformanceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredNetworkPerformanceConfig_ = value; + } else { + desiredNetworkPerformanceConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00002000; + onChanged(); + return this; + } + /** + *
+     * The desired network performance config.
+     * 
+ * + * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; + */ + public Builder setDesiredNetworkPerformanceConfig( + com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder builderForValue) { + if (desiredNetworkPerformanceConfigBuilder_ == null) { + desiredNetworkPerformanceConfig_ = builderForValue.build(); + } else { + desiredNetworkPerformanceConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00002000; + onChanged(); + return this; + } + /** + *
+     * The desired network performance config.
+     * 
+ * + * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; + */ + public Builder mergeDesiredNetworkPerformanceConfig(com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig value) { + if (desiredNetworkPerformanceConfigBuilder_ == null) { + if (((bitField1_ & 0x00002000) != 0) && + desiredNetworkPerformanceConfig_ != null && + desiredNetworkPerformanceConfig_ != com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.getDefaultInstance()) { + getDesiredNetworkPerformanceConfigBuilder().mergeFrom(value); + } else { + desiredNetworkPerformanceConfig_ = value; + } + } else { + desiredNetworkPerformanceConfigBuilder_.mergeFrom(value); + } + if (desiredNetworkPerformanceConfig_ != null) { + bitField1_ |= 0x00002000; + onChanged(); + } + return this; + } + /** + *
+     * The desired network performance config.
+     * 
+ * + * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; + */ + public Builder clearDesiredNetworkPerformanceConfig() { + bitField1_ = (bitField1_ & ~0x00002000); + desiredNetworkPerformanceConfig_ = null; + if (desiredNetworkPerformanceConfigBuilder_ != null) { + desiredNetworkPerformanceConfigBuilder_.dispose(); + desiredNetworkPerformanceConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired network performance config.
+     * 
+ * + * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; + */ + public com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder getDesiredNetworkPerformanceConfigBuilder() { + bitField1_ |= 0x00002000; + onChanged(); + return getDesiredNetworkPerformanceConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The desired network performance config.
+     * 
+ * + * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; + */ + public com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder getDesiredNetworkPerformanceConfigOrBuilder() { + if (desiredNetworkPerformanceConfigBuilder_ != null) { + return desiredNetworkPerformanceConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredNetworkPerformanceConfig_ == null ? + com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.getDefaultInstance() : desiredNetworkPerformanceConfig_; + } + } + /** + *
+     * The desired network performance config.
+     * 
+ * + * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig, com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder, com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder> + getDesiredNetworkPerformanceConfigFieldBuilder() { + if (desiredNetworkPerformanceConfigBuilder_ == null) { + desiredNetworkPerformanceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig, com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder, com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder>( + getDesiredNetworkPerformanceConfig(), + getParentForChildren(), + isClean()); + desiredNetworkPerformanceConfig_ = null; + } + return desiredNetworkPerformanceConfigBuilder_; + } + + private boolean desiredEnableFqdnNetworkPolicy_ ; + /** + *
+     * Enable/Disable FQDN Network Policy for the cluster.
+     * 
+ * + * optional bool desired_enable_fqdn_network_policy = 126; + * @return Whether the desiredEnableFqdnNetworkPolicy field is set. + */ + @java.lang.Override + public boolean hasDesiredEnableFqdnNetworkPolicy() { + return ((bitField1_ & 0x00004000) != 0); + } + /** + *
+     * Enable/Disable FQDN Network Policy for the cluster.
+     * 
+ * + * optional bool desired_enable_fqdn_network_policy = 126; + * @return The desiredEnableFqdnNetworkPolicy. + */ + @java.lang.Override + public boolean getDesiredEnableFqdnNetworkPolicy() { + return desiredEnableFqdnNetworkPolicy_; + } + /** + *
+     * Enable/Disable FQDN Network Policy for the cluster.
+     * 
+ * + * optional bool desired_enable_fqdn_network_policy = 126; + * @param value The desiredEnableFqdnNetworkPolicy to set. + * @return This builder for chaining. + */ + public Builder setDesiredEnableFqdnNetworkPolicy(boolean value) { + + desiredEnableFqdnNetworkPolicy_ = value; + bitField1_ |= 0x00004000; + onChanged(); + return this; + } + /** + *
+     * Enable/Disable FQDN Network Policy for the cluster.
+     * 
+ * + * optional bool desired_enable_fqdn_network_policy = 126; + * @return This builder for chaining. + */ + public Builder clearDesiredEnableFqdnNetworkPolicy() { + bitField1_ = (bitField1_ & ~0x00004000); + desiredEnableFqdnNetworkPolicy_ = false; + onChanged(); + return this; + } + + private com.google.container.v1.WorkloadPolicyConfig desiredAutopilotWorkloadPolicyConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WorkloadPolicyConfig, com.google.container.v1.WorkloadPolicyConfig.Builder, com.google.container.v1.WorkloadPolicyConfigOrBuilder> desiredAutopilotWorkloadPolicyConfigBuilder_; + /** + *
+     * The desired workload policy configuration for the autopilot cluster.
+     * 
+ * + * .google.container.v1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; + * @return Whether the desiredAutopilotWorkloadPolicyConfig field is set. + */ + public boolean hasDesiredAutopilotWorkloadPolicyConfig() { + return ((bitField1_ & 0x00008000) != 0); + } + /** + *
+     * The desired workload policy configuration for the autopilot cluster.
+     * 
+ * + * .google.container.v1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; + * @return The desiredAutopilotWorkloadPolicyConfig. + */ + public com.google.container.v1.WorkloadPolicyConfig getDesiredAutopilotWorkloadPolicyConfig() { + if (desiredAutopilotWorkloadPolicyConfigBuilder_ == null) { + return desiredAutopilotWorkloadPolicyConfig_ == null ? com.google.container.v1.WorkloadPolicyConfig.getDefaultInstance() : desiredAutopilotWorkloadPolicyConfig_; + } else { + return desiredAutopilotWorkloadPolicyConfigBuilder_.getMessage(); + } + } + /** + *
+     * The desired workload policy configuration for the autopilot cluster.
+     * 
+ * + * .google.container.v1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; + */ + public Builder setDesiredAutopilotWorkloadPolicyConfig(com.google.container.v1.WorkloadPolicyConfig value) { + if (desiredAutopilotWorkloadPolicyConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredAutopilotWorkloadPolicyConfig_ = value; + } else { + desiredAutopilotWorkloadPolicyConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00008000; + onChanged(); + return this; + } + /** + *
+     * The desired workload policy configuration for the autopilot cluster.
+     * 
+ * + * .google.container.v1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; + */ + public Builder setDesiredAutopilotWorkloadPolicyConfig( + com.google.container.v1.WorkloadPolicyConfig.Builder builderForValue) { + if (desiredAutopilotWorkloadPolicyConfigBuilder_ == null) { + desiredAutopilotWorkloadPolicyConfig_ = builderForValue.build(); + } else { + desiredAutopilotWorkloadPolicyConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00008000; + onChanged(); + return this; + } + /** + *
+     * The desired workload policy configuration for the autopilot cluster.
+     * 
+ * + * .google.container.v1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; + */ + public Builder mergeDesiredAutopilotWorkloadPolicyConfig(com.google.container.v1.WorkloadPolicyConfig value) { + if (desiredAutopilotWorkloadPolicyConfigBuilder_ == null) { + if (((bitField1_ & 0x00008000) != 0) && + desiredAutopilotWorkloadPolicyConfig_ != null && + desiredAutopilotWorkloadPolicyConfig_ != com.google.container.v1.WorkloadPolicyConfig.getDefaultInstance()) { + getDesiredAutopilotWorkloadPolicyConfigBuilder().mergeFrom(value); + } else { + desiredAutopilotWorkloadPolicyConfig_ = value; + } + } else { + desiredAutopilotWorkloadPolicyConfigBuilder_.mergeFrom(value); + } + if (desiredAutopilotWorkloadPolicyConfig_ != null) { + bitField1_ |= 0x00008000; + onChanged(); + } + return this; + } + /** + *
+     * The desired workload policy configuration for the autopilot cluster.
+     * 
+ * + * .google.container.v1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; + */ + public Builder clearDesiredAutopilotWorkloadPolicyConfig() { + bitField1_ = (bitField1_ & ~0x00008000); + desiredAutopilotWorkloadPolicyConfig_ = null; + if (desiredAutopilotWorkloadPolicyConfigBuilder_ != null) { + desiredAutopilotWorkloadPolicyConfigBuilder_.dispose(); + desiredAutopilotWorkloadPolicyConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired workload policy configuration for the autopilot cluster.
+     * 
+ * + * .google.container.v1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; + */ + public com.google.container.v1.WorkloadPolicyConfig.Builder getDesiredAutopilotWorkloadPolicyConfigBuilder() { + bitField1_ |= 0x00008000; + onChanged(); + return getDesiredAutopilotWorkloadPolicyConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The desired workload policy configuration for the autopilot cluster.
+     * 
+ * + * .google.container.v1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; + */ + public com.google.container.v1.WorkloadPolicyConfigOrBuilder getDesiredAutopilotWorkloadPolicyConfigOrBuilder() { + if (desiredAutopilotWorkloadPolicyConfigBuilder_ != null) { + return desiredAutopilotWorkloadPolicyConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredAutopilotWorkloadPolicyConfig_ == null ? + com.google.container.v1.WorkloadPolicyConfig.getDefaultInstance() : desiredAutopilotWorkloadPolicyConfig_; + } + } + /** + *
+     * The desired workload policy configuration for the autopilot cluster.
+     * 
+ * + * .google.container.v1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WorkloadPolicyConfig, com.google.container.v1.WorkloadPolicyConfig.Builder, com.google.container.v1.WorkloadPolicyConfigOrBuilder> + getDesiredAutopilotWorkloadPolicyConfigFieldBuilder() { + if (desiredAutopilotWorkloadPolicyConfigBuilder_ == null) { + desiredAutopilotWorkloadPolicyConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WorkloadPolicyConfig, com.google.container.v1.WorkloadPolicyConfig.Builder, com.google.container.v1.WorkloadPolicyConfigOrBuilder>( + getDesiredAutopilotWorkloadPolicyConfig(), + getParentForChildren(), + isClean()); + desiredAutopilotWorkloadPolicyConfig_ = null; + } + return desiredAutopilotWorkloadPolicyConfigBuilder_; + } + + private com.google.container.v1.K8sBetaAPIConfig desiredK8SBetaApis_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.K8sBetaAPIConfig, com.google.container.v1.K8sBetaAPIConfig.Builder, com.google.container.v1.K8sBetaAPIConfigOrBuilder> desiredK8SBetaApisBuilder_; + /** + *
+     * Desired Beta APIs to be enabled for cluster.
+     * 
+ * + * .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; + * @return Whether the desiredK8sBetaApis field is set. + */ + public boolean hasDesiredK8SBetaApis() { + return ((bitField1_ & 0x00010000) != 0); + } + /** + *
+     * Desired Beta APIs to be enabled for cluster.
+     * 
+ * + * .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; + * @return The desiredK8sBetaApis. + */ + public com.google.container.v1.K8sBetaAPIConfig getDesiredK8SBetaApis() { + if (desiredK8SBetaApisBuilder_ == null) { + return desiredK8SBetaApis_ == null ? com.google.container.v1.K8sBetaAPIConfig.getDefaultInstance() : desiredK8SBetaApis_; + } else { + return desiredK8SBetaApisBuilder_.getMessage(); + } + } + /** + *
+     * Desired Beta APIs to be enabled for cluster.
+     * 
+ * + * .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; + */ + public Builder setDesiredK8SBetaApis(com.google.container.v1.K8sBetaAPIConfig value) { + if (desiredK8SBetaApisBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredK8SBetaApis_ = value; + } else { + desiredK8SBetaApisBuilder_.setMessage(value); + } + bitField1_ |= 0x00010000; + onChanged(); + return this; + } + /** + *
+     * Desired Beta APIs to be enabled for cluster.
+     * 
+ * + * .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; + */ + public Builder setDesiredK8SBetaApis( + com.google.container.v1.K8sBetaAPIConfig.Builder builderForValue) { + if (desiredK8SBetaApisBuilder_ == null) { + desiredK8SBetaApis_ = builderForValue.build(); + } else { + desiredK8SBetaApisBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00010000; + onChanged(); + return this; + } + /** + *
+     * Desired Beta APIs to be enabled for cluster.
+     * 
+ * + * .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; + */ + public Builder mergeDesiredK8SBetaApis(com.google.container.v1.K8sBetaAPIConfig value) { + if (desiredK8SBetaApisBuilder_ == null) { + if (((bitField1_ & 0x00010000) != 0) && + desiredK8SBetaApis_ != null && + desiredK8SBetaApis_ != com.google.container.v1.K8sBetaAPIConfig.getDefaultInstance()) { + getDesiredK8SBetaApisBuilder().mergeFrom(value); + } else { + desiredK8SBetaApis_ = value; + } + } else { + desiredK8SBetaApisBuilder_.mergeFrom(value); + } + if (desiredK8SBetaApis_ != null) { + bitField1_ |= 0x00010000; + onChanged(); + } + return this; + } + /** + *
+     * Desired Beta APIs to be enabled for cluster.
+     * 
+ * + * .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; + */ + public Builder clearDesiredK8SBetaApis() { + bitField1_ = (bitField1_ & ~0x00010000); + desiredK8SBetaApis_ = null; + if (desiredK8SBetaApisBuilder_ != null) { + desiredK8SBetaApisBuilder_.dispose(); + desiredK8SBetaApisBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Desired Beta APIs to be enabled for cluster.
+     * 
+ * + * .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; + */ + public com.google.container.v1.K8sBetaAPIConfig.Builder getDesiredK8SBetaApisBuilder() { + bitField1_ |= 0x00010000; + onChanged(); + return getDesiredK8SBetaApisFieldBuilder().getBuilder(); + } + /** + *
+     * Desired Beta APIs to be enabled for cluster.
+     * 
+ * + * .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; + */ + public com.google.container.v1.K8sBetaAPIConfigOrBuilder getDesiredK8SBetaApisOrBuilder() { + if (desiredK8SBetaApisBuilder_ != null) { + return desiredK8SBetaApisBuilder_.getMessageOrBuilder(); + } else { + return desiredK8SBetaApis_ == null ? + com.google.container.v1.K8sBetaAPIConfig.getDefaultInstance() : desiredK8SBetaApis_; + } + } + /** + *
+     * Desired Beta APIs to be enabled for cluster.
+     * 
+ * + * .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.K8sBetaAPIConfig, com.google.container.v1.K8sBetaAPIConfig.Builder, com.google.container.v1.K8sBetaAPIConfigOrBuilder> + getDesiredK8SBetaApisFieldBuilder() { + if (desiredK8SBetaApisBuilder_ == null) { + desiredK8SBetaApisBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.K8sBetaAPIConfig, com.google.container.v1.K8sBetaAPIConfig.Builder, com.google.container.v1.K8sBetaAPIConfigOrBuilder>( + getDesiredK8SBetaApis(), + getParentForChildren(), + isClean()); + desiredK8SBetaApis_ = null; + } + return desiredK8SBetaApisBuilder_; + } + + private com.google.container.v1.ResourceManagerTags desiredNodePoolAutoConfigResourceManagerTags_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ResourceManagerTags, com.google.container.v1.ResourceManagerTags.Builder, com.google.container.v1.ResourceManagerTagsOrBuilder> desiredNodePoolAutoConfigResourceManagerTagsBuilder_; + /** + *
+     * The desired resource manager tags that apply to all auto-provisioned node
+     * pools in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; + * @return Whether the desiredNodePoolAutoConfigResourceManagerTags field is set. + */ + public boolean hasDesiredNodePoolAutoConfigResourceManagerTags() { + return ((bitField1_ & 0x00020000) != 0); + } + /** + *
+     * The desired resource manager tags that apply to all auto-provisioned node
+     * pools in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; + * @return The desiredNodePoolAutoConfigResourceManagerTags. + */ + public com.google.container.v1.ResourceManagerTags getDesiredNodePoolAutoConfigResourceManagerTags() { + if (desiredNodePoolAutoConfigResourceManagerTagsBuilder_ == null) { + return desiredNodePoolAutoConfigResourceManagerTags_ == null ? com.google.container.v1.ResourceManagerTags.getDefaultInstance() : desiredNodePoolAutoConfigResourceManagerTags_; + } else { + return desiredNodePoolAutoConfigResourceManagerTagsBuilder_.getMessage(); + } + } + /** + *
+     * The desired resource manager tags that apply to all auto-provisioned node
+     * pools in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; + */ + public Builder setDesiredNodePoolAutoConfigResourceManagerTags(com.google.container.v1.ResourceManagerTags value) { + if (desiredNodePoolAutoConfigResourceManagerTagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredNodePoolAutoConfigResourceManagerTags_ = value; + } else { + desiredNodePoolAutoConfigResourceManagerTagsBuilder_.setMessage(value); + } + bitField1_ |= 0x00020000; + onChanged(); + return this; + } + /** + *
+     * The desired resource manager tags that apply to all auto-provisioned node
+     * pools in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; + */ + public Builder setDesiredNodePoolAutoConfigResourceManagerTags( + com.google.container.v1.ResourceManagerTags.Builder builderForValue) { + if (desiredNodePoolAutoConfigResourceManagerTagsBuilder_ == null) { + desiredNodePoolAutoConfigResourceManagerTags_ = builderForValue.build(); + } else { + desiredNodePoolAutoConfigResourceManagerTagsBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00020000; + onChanged(); + return this; + } + /** + *
+     * The desired resource manager tags that apply to all auto-provisioned node
+     * pools in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; + */ + public Builder mergeDesiredNodePoolAutoConfigResourceManagerTags(com.google.container.v1.ResourceManagerTags value) { + if (desiredNodePoolAutoConfigResourceManagerTagsBuilder_ == null) { + if (((bitField1_ & 0x00020000) != 0) && + desiredNodePoolAutoConfigResourceManagerTags_ != null && + desiredNodePoolAutoConfigResourceManagerTags_ != com.google.container.v1.ResourceManagerTags.getDefaultInstance()) { + getDesiredNodePoolAutoConfigResourceManagerTagsBuilder().mergeFrom(value); + } else { + desiredNodePoolAutoConfigResourceManagerTags_ = value; + } + } else { + desiredNodePoolAutoConfigResourceManagerTagsBuilder_.mergeFrom(value); + } + if (desiredNodePoolAutoConfigResourceManagerTags_ != null) { + bitField1_ |= 0x00020000; + onChanged(); + } + return this; + } + /** + *
+     * The desired resource manager tags that apply to all auto-provisioned node
+     * pools in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; + */ + public Builder clearDesiredNodePoolAutoConfigResourceManagerTags() { + bitField1_ = (bitField1_ & ~0x00020000); + desiredNodePoolAutoConfigResourceManagerTags_ = null; + if (desiredNodePoolAutoConfigResourceManagerTagsBuilder_ != null) { + desiredNodePoolAutoConfigResourceManagerTagsBuilder_.dispose(); + desiredNodePoolAutoConfigResourceManagerTagsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired resource manager tags that apply to all auto-provisioned node
+     * pools in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; + */ + public com.google.container.v1.ResourceManagerTags.Builder getDesiredNodePoolAutoConfigResourceManagerTagsBuilder() { + bitField1_ |= 0x00020000; + onChanged(); + return getDesiredNodePoolAutoConfigResourceManagerTagsFieldBuilder().getBuilder(); + } + /** + *
+     * The desired resource manager tags that apply to all auto-provisioned node
+     * pools in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; + */ + public com.google.container.v1.ResourceManagerTagsOrBuilder getDesiredNodePoolAutoConfigResourceManagerTagsOrBuilder() { + if (desiredNodePoolAutoConfigResourceManagerTagsBuilder_ != null) { + return desiredNodePoolAutoConfigResourceManagerTagsBuilder_.getMessageOrBuilder(); + } else { + return desiredNodePoolAutoConfigResourceManagerTags_ == null ? + com.google.container.v1.ResourceManagerTags.getDefaultInstance() : desiredNodePoolAutoConfigResourceManagerTags_; + } + } + /** + *
+     * The desired resource manager tags that apply to all auto-provisioned node
+     * pools in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ResourceManagerTags, com.google.container.v1.ResourceManagerTags.Builder, com.google.container.v1.ResourceManagerTagsOrBuilder> + getDesiredNodePoolAutoConfigResourceManagerTagsFieldBuilder() { + if (desiredNodePoolAutoConfigResourceManagerTagsBuilder_ == null) { + desiredNodePoolAutoConfigResourceManagerTagsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ResourceManagerTags, com.google.container.v1.ResourceManagerTags.Builder, com.google.container.v1.ResourceManagerTagsOrBuilder>( + getDesiredNodePoolAutoConfigResourceManagerTags(), + getParentForChildren(), + isClean()); + desiredNodePoolAutoConfigResourceManagerTags_ = null; + } + return desiredNodePoolAutoConfigResourceManagerTagsBuilder_; + } + + private int desiredInTransitEncryptionConfig_ = 0; + /** + *
+     * Specify the details of in-transit encryption.
+     * 
+ * + * optional .google.container.v1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; + * @return Whether the desiredInTransitEncryptionConfig field is set. + */ + @java.lang.Override public boolean hasDesiredInTransitEncryptionConfig() { + return ((bitField1_ & 0x00040000) != 0); + } + /** + *
+     * Specify the details of in-transit encryption.
+     * 
+ * + * optional .google.container.v1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; + * @return The enum numeric value on the wire for desiredInTransitEncryptionConfig. + */ + @java.lang.Override public int getDesiredInTransitEncryptionConfigValue() { + return desiredInTransitEncryptionConfig_; + } + /** + *
+     * Specify the details of in-transit encryption.
+     * 
+ * + * optional .google.container.v1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; + * @param value The enum numeric value on the wire for desiredInTransitEncryptionConfig to set. + * @return This builder for chaining. + */ + public Builder setDesiredInTransitEncryptionConfigValue(int value) { + desiredInTransitEncryptionConfig_ = value; + bitField1_ |= 0x00040000; + onChanged(); + return this; + } + /** + *
+     * Specify the details of in-transit encryption.
+     * 
+ * + * optional .google.container.v1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; + * @return The desiredInTransitEncryptionConfig. + */ + @java.lang.Override + public com.google.container.v1.InTransitEncryptionConfig getDesiredInTransitEncryptionConfig() { + com.google.container.v1.InTransitEncryptionConfig result = com.google.container.v1.InTransitEncryptionConfig.forNumber(desiredInTransitEncryptionConfig_); + return result == null ? com.google.container.v1.InTransitEncryptionConfig.UNRECOGNIZED : result; + } + /** + *
+     * Specify the details of in-transit encryption.
+     * 
+ * + * optional .google.container.v1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; + * @param value The desiredInTransitEncryptionConfig to set. + * @return This builder for chaining. + */ + public Builder setDesiredInTransitEncryptionConfig(com.google.container.v1.InTransitEncryptionConfig value) { + if (value == null) { + throw new NullPointerException(); + } + bitField1_ |= 0x00040000; + desiredInTransitEncryptionConfig_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Specify the details of in-transit encryption.
+     * 
+ * + * optional .google.container.v1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; + * @return This builder for chaining. + */ + public Builder clearDesiredInTransitEncryptionConfig() { + bitField1_ = (bitField1_ & ~0x00040000); + desiredInTransitEncryptionConfig_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.ClusterUpdate) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ClusterUpdate) + private static final com.google.container.v1.ClusterUpdate DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.ClusterUpdate(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.ClusterUpdate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java new file mode 100644 index 000000000000..d617b64b167c --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java @@ -0,0 +1,1465 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface ClusterUpdateOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.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.v1.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.v1.AddonsConfig desired_addons_config = 6; + * @return The desiredAddonsConfig. + */ + com.google.container.v1.AddonsConfig getDesiredAddonsConfig(); + /** + *
+   * Configurations for the various addons available to run in the cluster.
+   * 
+ * + * .google.container.v1.AddonsConfig desired_addons_config = 6; + */ + com.google.container.v1.AddonsConfigOrBuilder getDesiredAddonsConfigOrBuilder(); + + /** + *
+   * The node pool to be upgraded. This field is mandatory if
+   * "desired_node_version", "desired_image_family" or
+   * "desired_node_pool_autoscaling" is specified and there is more than one
+   * node pool on the cluster.
+   * 
+ * + * string desired_node_pool_id = 7; + * @return The desiredNodePoolId. + */ + java.lang.String getDesiredNodePoolId(); + /** + *
+   * The node pool to be upgraded. This field is mandatory if
+   * "desired_node_version", "desired_image_family" or
+   * "desired_node_pool_autoscaling" is specified and there is more than one
+   * node pool on the cluster.
+   * 
+ * + * string desired_node_pool_id = 7; + * @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(); + + /** + *
+   * Configuration of etcd encryption.
+   * 
+ * + * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; + * @return Whether the desiredDatabaseEncryption field is set. + */ + boolean hasDesiredDatabaseEncryption(); + /** + *
+   * Configuration of etcd encryption.
+   * 
+ * + * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; + * @return The desiredDatabaseEncryption. + */ + com.google.container.v1.DatabaseEncryption getDesiredDatabaseEncryption(); + /** + *
+   * Configuration of etcd encryption.
+   * 
+ * + * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; + */ + com.google.container.v1.DatabaseEncryptionOrBuilder getDesiredDatabaseEncryptionOrBuilder(); + + /** + *
+   * Configuration for Workload Identity.
+   * 
+ * + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * @return Whether the desiredWorkloadIdentityConfig field is set. + */ + boolean hasDesiredWorkloadIdentityConfig(); + /** + *
+   * Configuration for Workload Identity.
+   * 
+ * + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + * @return The desiredWorkloadIdentityConfig. + */ + com.google.container.v1.WorkloadIdentityConfig getDesiredWorkloadIdentityConfig(); + /** + *
+   * Configuration for Workload Identity.
+   * 
+ * + * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; + */ + com.google.container.v1.WorkloadIdentityConfigOrBuilder getDesiredWorkloadIdentityConfigOrBuilder(); + + /** + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + * @return Whether the desiredMeshCertificates field is set. + */ + boolean hasDesiredMeshCertificates(); + /** + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + * @return The desiredMeshCertificates. + */ + com.google.container.v1.MeshCertificates getDesiredMeshCertificates(); + /** + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1.MeshCertificates desired_mesh_certificates = 67; + */ + com.google.container.v1.MeshCertificatesOrBuilder getDesiredMeshCertificatesOrBuilder(); + + /** + *
+   * Configuration for Shielded Nodes.
+   * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + * @return Whether the desiredShieldedNodes field is set. + */ + boolean hasDesiredShieldedNodes(); + /** + *
+   * Configuration for Shielded Nodes.
+   * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + * @return The desiredShieldedNodes. + */ + com.google.container.v1.ShieldedNodes getDesiredShieldedNodes(); + /** + *
+   * Configuration for Shielded Nodes.
+   * 
+ * + * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; + */ + com.google.container.v1.ShieldedNodesOrBuilder getDesiredShieldedNodesOrBuilder(); + + /** + *
+   * The desired configuration for the fine-grained cost management feature.
+   * 
+ * + * .google.container.v1.CostManagementConfig desired_cost_management_config = 49; + * @return Whether the desiredCostManagementConfig field is set. + */ + boolean hasDesiredCostManagementConfig(); + /** + *
+   * The desired configuration for the fine-grained cost management feature.
+   * 
+ * + * .google.container.v1.CostManagementConfig desired_cost_management_config = 49; + * @return The desiredCostManagementConfig. + */ + com.google.container.v1.CostManagementConfig getDesiredCostManagementConfig(); + /** + *
+   * The desired configuration for the fine-grained cost management feature.
+   * 
+ * + * .google.container.v1.CostManagementConfig desired_cost_management_config = 49; + */ + com.google.container.v1.CostManagementConfigOrBuilder getDesiredCostManagementConfigOrBuilder(); + + /** + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + * @return Whether the desiredDnsConfig field is set. + */ + boolean hasDesiredDnsConfig(); + /** + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + * @return The desiredDnsConfig. + */ + com.google.container.v1.DNSConfig getDesiredDnsConfig(); + /** + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1.DNSConfig desired_dns_config = 53; + */ + com.google.container.v1.DNSConfigOrBuilder getDesiredDnsConfigOrBuilder(); + + /** + *
+   * Autoscaler configuration for the node pool specified in
+   * desired_node_pool_id. If there is only one pool in the
+   * cluster and desired_node_pool_id is not provided then
+   * the change applies to that single node pool.
+   * 
+ * + * .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + * @return Whether the desiredNodePoolAutoscaling field is set. + */ + 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.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + * @return The desiredNodePoolAutoscaling. + */ + com.google.container.v1.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.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + */ + com.google.container.v1.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.v1.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.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + * @return The desiredMasterAuthorizedNetworksConfig. + */ + com.google.container.v1.MasterAuthorizedNetworksConfig getDesiredMasterAuthorizedNetworksConfig(); + /** + *
+   * The desired configuration options for master authorized networks feature.
+   * 
+ * + * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder getDesiredMasterAuthorizedNetworksConfigOrBuilder(); + + /** + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; + * @return Whether the desiredClusterAutoscaling field is set. + */ + boolean hasDesiredClusterAutoscaling(); + /** + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; + * @return The desiredClusterAutoscaling. + */ + com.google.container.v1.ClusterAutoscaling getDesiredClusterAutoscaling(); + /** + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + com.google.container.v1.ClusterAutoscalingOrBuilder getDesiredClusterAutoscalingOrBuilder(); + + /** + *
+   * The desired configuration options for the Binary Authorization feature.
+   * 
+ * + * .google.container.v1.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.v1.BinaryAuthorization desired_binary_authorization = 16; + * @return The desiredBinaryAuthorization. + */ + com.google.container.v1.BinaryAuthorization getDesiredBinaryAuthorization(); + /** + *
+   * The desired configuration options for the Binary Authorization feature.
+   * 
+ * + * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; + */ + com.google.container.v1.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.v1.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.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + * @return The desiredResourceUsageExportConfig. + */ + com.google.container.v1.ResourceUsageExportConfig getDesiredResourceUsageExportConfig(); + /** + *
+   * The desired configuration for exporting resource usage.
+   * 
+ * + * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + */ + com.google.container.v1.ResourceUsageExportConfigOrBuilder getDesiredResourceUsageExportConfigOrBuilder(); + + /** + *
+   * Cluster-level Vertical Pod Autoscaling configuration.
+   * 
+ * + * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * @return Whether the desiredVerticalPodAutoscaling field is set. + */ + boolean hasDesiredVerticalPodAutoscaling(); + /** + *
+   * Cluster-level Vertical Pod Autoscaling configuration.
+   * 
+ * + * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + * @return The desiredVerticalPodAutoscaling. + */ + com.google.container.v1.VerticalPodAutoscaling getDesiredVerticalPodAutoscaling(); + /** + *
+   * Cluster-level Vertical Pod Autoscaling configuration.
+   * 
+ * + * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + */ + com.google.container.v1.VerticalPodAutoscalingOrBuilder getDesiredVerticalPodAutoscalingOrBuilder(); + + /** + *
+   * The desired private cluster configuration.
+   * 
+ * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + * @return Whether the desiredPrivateClusterConfig field is set. + */ + boolean hasDesiredPrivateClusterConfig(); + /** + *
+   * The desired private cluster configuration.
+   * 
+ * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + * @return The desiredPrivateClusterConfig. + */ + com.google.container.v1.PrivateClusterConfig getDesiredPrivateClusterConfig(); + /** + *
+   * The desired private cluster configuration.
+   * 
+ * + * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; + */ + com.google.container.v1.PrivateClusterConfigOrBuilder getDesiredPrivateClusterConfigOrBuilder(); + + /** + *
+   * The desired config of Intra-node visibility.
+   * 
+ * + * .google.container.v1.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.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + * @return The desiredIntraNodeVisibilityConfig. + */ + com.google.container.v1.IntraNodeVisibilityConfig getDesiredIntraNodeVisibilityConfig(); + /** + *
+   * The desired config of Intra-node visibility.
+   * 
+ * + * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + */ + com.google.container.v1.IntraNodeVisibilityConfigOrBuilder getDesiredIntraNodeVisibilityConfigOrBuilder(); + + /** + *
+   * The desired status of whether to disable default sNAT for this cluster.
+   * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + * @return Whether the desiredDefaultSnatStatus field is set. + */ + boolean hasDesiredDefaultSnatStatus(); + /** + *
+   * The desired status of whether to disable default sNAT for this cluster.
+   * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + * @return The desiredDefaultSnatStatus. + */ + com.google.container.v1.DefaultSnatStatus getDesiredDefaultSnatStatus(); + /** + *
+   * The desired status of whether to disable default sNAT for this cluster.
+   * 
+ * + * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; + */ + com.google.container.v1.DefaultSnatStatusOrBuilder getDesiredDefaultSnatStatusOrBuilder(); + + /** + *
+   * The desired release channel configuration.
+   * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + * @return Whether the desiredReleaseChannel field is set. + */ + boolean hasDesiredReleaseChannel(); + /** + *
+   * The desired release channel configuration.
+   * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + * @return The desiredReleaseChannel. + */ + com.google.container.v1.ReleaseChannel getDesiredReleaseChannel(); + /** + *
+   * The desired release channel configuration.
+   * 
+ * + * .google.container.v1.ReleaseChannel desired_release_channel = 31; + */ + com.google.container.v1.ReleaseChannelOrBuilder getDesiredReleaseChannelOrBuilder(); + + /** + *
+   * The desired L4 Internal Load Balancer Subsetting configuration.
+   * 
+ * + * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + * @return Whether the desiredL4ilbSubsettingConfig field is set. + */ + boolean hasDesiredL4IlbSubsettingConfig(); + /** + *
+   * The desired L4 Internal Load Balancer Subsetting configuration.
+   * 
+ * + * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + * @return The desiredL4ilbSubsettingConfig. + */ + com.google.container.v1.ILBSubsettingConfig getDesiredL4IlbSubsettingConfig(); + /** + *
+   * The desired L4 Internal Load Balancer Subsetting configuration.
+   * 
+ * + * .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + */ + com.google.container.v1.ILBSubsettingConfigOrBuilder getDesiredL4IlbSubsettingConfigOrBuilder(); + + /** + *
+   * The desired datapath provider for the cluster.
+   * 
+ * + * .google.container.v1.DatapathProvider desired_datapath_provider = 50; + * @return The enum numeric value on the wire for desiredDatapathProvider. + */ + int getDesiredDatapathProviderValue(); + /** + *
+   * The desired datapath provider for the cluster.
+   * 
+ * + * .google.container.v1.DatapathProvider desired_datapath_provider = 50; + * @return The desiredDatapathProvider. + */ + com.google.container.v1.DatapathProvider getDesiredDatapathProvider(); + + /** + *
+   * The desired state of IPv6 connectivity to Google Services.
+   * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + * @return The enum numeric value on the wire for desiredPrivateIpv6GoogleAccess. + */ + int getDesiredPrivateIpv6GoogleAccessValue(); + /** + *
+   * The desired state of IPv6 connectivity to Google Services.
+   * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + * @return The desiredPrivateIpv6GoogleAccess. + */ + com.google.container.v1.PrivateIPv6GoogleAccess getDesiredPrivateIpv6GoogleAccess(); + + /** + *
+   * The desired notification configuration.
+   * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + * @return Whether the desiredNotificationConfig field is set. + */ + boolean hasDesiredNotificationConfig(); + /** + *
+   * The desired notification configuration.
+   * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + * @return The desiredNotificationConfig. + */ + com.google.container.v1.NotificationConfig getDesiredNotificationConfig(); + /** + *
+   * The desired notification configuration.
+   * 
+ * + * .google.container.v1.NotificationConfig desired_notification_config = 55; + */ + com.google.container.v1.NotificationConfigOrBuilder getDesiredNotificationConfigOrBuilder(); + + /** + *
+   * The desired authenticator groups config for the cluster.
+   * 
+ * + * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * @return Whether the desiredAuthenticatorGroupsConfig field is set. + */ + boolean hasDesiredAuthenticatorGroupsConfig(); + /** + *
+   * The desired authenticator groups config for the cluster.
+   * 
+ * + * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * @return The desiredAuthenticatorGroupsConfig. + */ + com.google.container.v1.AuthenticatorGroupsConfig getDesiredAuthenticatorGroupsConfig(); + /** + *
+   * The desired authenticator groups config for the cluster.
+   * 
+ * + * .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + */ + com.google.container.v1.AuthenticatorGroupsConfigOrBuilder getDesiredAuthenticatorGroupsConfigOrBuilder(); + + /** + *
+   * The desired logging configuration.
+   * 
+ * + * .google.container.v1.LoggingConfig desired_logging_config = 64; + * @return Whether the desiredLoggingConfig field is set. + */ + boolean hasDesiredLoggingConfig(); + /** + *
+   * The desired logging configuration.
+   * 
+ * + * .google.container.v1.LoggingConfig desired_logging_config = 64; + * @return The desiredLoggingConfig. + */ + com.google.container.v1.LoggingConfig getDesiredLoggingConfig(); + /** + *
+   * The desired logging configuration.
+   * 
+ * + * .google.container.v1.LoggingConfig desired_logging_config = 64; + */ + com.google.container.v1.LoggingConfigOrBuilder getDesiredLoggingConfigOrBuilder(); + + /** + *
+   * The desired monitoring configuration.
+   * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + * @return Whether the desiredMonitoringConfig field is set. + */ + boolean hasDesiredMonitoringConfig(); + /** + *
+   * The desired monitoring configuration.
+   * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + * @return The desiredMonitoringConfig. + */ + com.google.container.v1.MonitoringConfig getDesiredMonitoringConfig(); + /** + *
+   * The desired monitoring configuration.
+   * 
+ * + * .google.container.v1.MonitoringConfig desired_monitoring_config = 65; + */ + com.google.container.v1.MonitoringConfigOrBuilder getDesiredMonitoringConfigOrBuilder(); + + /** + *
+   * The desired Identity Service component configuration.
+   * 
+ * + * .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; + * @return Whether the desiredIdentityServiceConfig field is set. + */ + boolean hasDesiredIdentityServiceConfig(); + /** + *
+   * The desired Identity Service component configuration.
+   * 
+ * + * .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; + * @return The desiredIdentityServiceConfig. + */ + com.google.container.v1.IdentityServiceConfig getDesiredIdentityServiceConfig(); + /** + *
+   * The desired Identity Service component configuration.
+   * 
+ * + * .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; + */ + com.google.container.v1.IdentityServiceConfigOrBuilder getDesiredIdentityServiceConfigOrBuilder(); + + /** + *
+   * ServiceExternalIPsConfig specifies the config for the use of Services with
+   * ExternalIPs field.
+   * 
+ * + * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + * @return Whether the desiredServiceExternalIpsConfig field is set. + */ + boolean hasDesiredServiceExternalIpsConfig(); + /** + *
+   * ServiceExternalIPsConfig specifies the config for the use of Services with
+   * ExternalIPs field.
+   * 
+ * + * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + * @return The desiredServiceExternalIpsConfig. + */ + com.google.container.v1.ServiceExternalIPsConfig getDesiredServiceExternalIpsConfig(); + /** + *
+   * ServiceExternalIPsConfig specifies the config for the use of Services with
+   * ExternalIPs field.
+   * 
+ * + * .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + */ + com.google.container.v1.ServiceExternalIPsConfigOrBuilder getDesiredServiceExternalIpsConfigOrBuilder(); + + /** + *
+   * Enable/Disable private endpoint for the cluster's master.
+   * 
+ * + * optional bool desired_enable_private_endpoint = 71; + * @return Whether the desiredEnablePrivateEndpoint field is set. + */ + boolean hasDesiredEnablePrivateEndpoint(); + /** + *
+   * Enable/Disable private endpoint for the cluster's master.
+   * 
+ * + * optional bool desired_enable_private_endpoint = 71; + * @return The desiredEnablePrivateEndpoint. + */ + boolean getDesiredEnablePrivateEndpoint(); + + /** + *
+   * The Kubernetes version to change the master to.
+   *
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   *
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
+   * 
+ * + * string desired_master_version = 100; + * @return The desiredMasterVersion. + */ + java.lang.String getDesiredMasterVersion(); + /** + *
+   * The Kubernetes version to change the master to.
+   *
+   * Users may specify either explicit versions offered by
+   * Kubernetes Engine or version aliases, which have the following behavior:
+   *
+   * - "latest": picks the highest valid Kubernetes version
+   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+   * - "-": picks the default Kubernetes version
+   * 
+ * + * string desired_master_version = 100; + * @return The bytes for desiredMasterVersion. + */ + com.google.protobuf.ByteString + getDesiredMasterVersionBytes(); + + /** + *
+   * The desired GCFS config for the cluster
+   * 
+ * + * .google.container.v1.GcfsConfig desired_gcfs_config = 109; + * @return Whether the desiredGcfsConfig field is set. + */ + boolean hasDesiredGcfsConfig(); + /** + *
+   * The desired GCFS config for the cluster
+   * 
+ * + * .google.container.v1.GcfsConfig desired_gcfs_config = 109; + * @return The desiredGcfsConfig. + */ + com.google.container.v1.GcfsConfig getDesiredGcfsConfig(); + /** + *
+   * The desired GCFS config for the cluster
+   * 
+ * + * .google.container.v1.GcfsConfig desired_gcfs_config = 109; + */ + com.google.container.v1.GcfsConfigOrBuilder getDesiredGcfsConfigOrBuilder(); + + /** + *
+   * The desired network tags that apply to all auto-provisioned node pools
+   * in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; + * @return Whether the desiredNodePoolAutoConfigNetworkTags field is set. + */ + boolean hasDesiredNodePoolAutoConfigNetworkTags(); + /** + *
+   * The desired network tags that apply to all auto-provisioned node pools
+   * in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; + * @return The desiredNodePoolAutoConfigNetworkTags. + */ + com.google.container.v1.NetworkTags getDesiredNodePoolAutoConfigNetworkTags(); + /** + *
+   * The desired network tags that apply to all auto-provisioned node pools
+   * in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; + */ + com.google.container.v1.NetworkTagsOrBuilder getDesiredNodePoolAutoConfigNetworkTagsOrBuilder(); + + /** + *
+   * The desired config of Gateway API on this cluster.
+   * 
+ * + * .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; + * @return Whether the desiredGatewayApiConfig field is set. + */ + boolean hasDesiredGatewayApiConfig(); + /** + *
+   * The desired config of Gateway API on this cluster.
+   * 
+ * + * .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; + * @return The desiredGatewayApiConfig. + */ + com.google.container.v1.GatewayAPIConfig getDesiredGatewayApiConfig(); + /** + *
+   * The desired config of Gateway API on this cluster.
+   * 
+ * + * .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; + */ + com.google.container.v1.GatewayAPIConfigOrBuilder getDesiredGatewayApiConfigOrBuilder(); + + /** + *
+   * The current etag of the cluster.
+   * If an etag is provided and does not match the current etag of the cluster,
+   * update will be blocked and an ABORTED error will be returned.
+   * 
+ * + * string etag = 115; + * @return The etag. + */ + java.lang.String getEtag(); + /** + *
+   * The current etag of the cluster.
+   * If an etag is provided and does not match the current etag of the cluster,
+   * update will be blocked and an ABORTED error will be returned.
+   * 
+ * + * string etag = 115; + * @return The bytes for etag. + */ + com.google.protobuf.ByteString + getEtagBytes(); + + /** + *
+   * The desired node pool logging configuration defaults for the cluster.
+   * 
+ * + * .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; + * @return Whether the desiredNodePoolLoggingConfig field is set. + */ + boolean hasDesiredNodePoolLoggingConfig(); + /** + *
+   * The desired node pool logging configuration defaults for the cluster.
+   * 
+ * + * .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; + * @return The desiredNodePoolLoggingConfig. + */ + com.google.container.v1.NodePoolLoggingConfig getDesiredNodePoolLoggingConfig(); + /** + *
+   * The desired node pool logging configuration defaults for the cluster.
+   * 
+ * + * .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; + */ + com.google.container.v1.NodePoolLoggingConfigOrBuilder getDesiredNodePoolLoggingConfigOrBuilder(); + + /** + *
+   * The desired fleet configuration for the cluster.
+   * 
+ * + * .google.container.v1.Fleet desired_fleet = 117; + * @return Whether the desiredFleet field is set. + */ + boolean hasDesiredFleet(); + /** + *
+   * The desired fleet configuration for the cluster.
+   * 
+ * + * .google.container.v1.Fleet desired_fleet = 117; + * @return The desiredFleet. + */ + com.google.container.v1.Fleet getDesiredFleet(); + /** + *
+   * The desired fleet configuration for the cluster.
+   * 
+ * + * .google.container.v1.Fleet desired_fleet = 117; + */ + com.google.container.v1.FleetOrBuilder getDesiredFleetOrBuilder(); + + /** + *
+   * The desired stack type of the cluster.
+   * If a stack type is provided and does not match the current stack type of
+   * the cluster, update will attempt to change the stack type to the new type.
+   * 
+ * + * .google.container.v1.StackType desired_stack_type = 119; + * @return The enum numeric value on the wire for desiredStackType. + */ + int getDesiredStackTypeValue(); + /** + *
+   * The desired stack type of the cluster.
+   * If a stack type is provided and does not match the current stack type of
+   * the cluster, update will attempt to change the stack type to the new type.
+   * 
+ * + * .google.container.v1.StackType desired_stack_type = 119; + * @return The desiredStackType. + */ + com.google.container.v1.StackType getDesiredStackType(); + + /** + *
+   * The additional pod ranges to be added to the cluster. These pod ranges
+   * can be used by node pools to allocate pod IPs.
+   * 
+ * + * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; + * @return Whether the additionalPodRangesConfig field is set. + */ + boolean hasAdditionalPodRangesConfig(); + /** + *
+   * The additional pod ranges to be added to the cluster. These pod ranges
+   * can be used by node pools to allocate pod IPs.
+   * 
+ * + * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; + * @return The additionalPodRangesConfig. + */ + com.google.container.v1.AdditionalPodRangesConfig getAdditionalPodRangesConfig(); + /** + *
+   * The additional pod ranges to be added to the cluster. These pod ranges
+   * can be used by node pools to allocate pod IPs.
+   * 
+ * + * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; + */ + com.google.container.v1.AdditionalPodRangesConfigOrBuilder getAdditionalPodRangesConfigOrBuilder(); + + /** + *
+   * The additional pod ranges that are to be removed from the cluster.
+   * The pod ranges specified here must have been specified earlier in the
+   * 'additional_pod_ranges_config' argument.
+   * 
+ * + * .google.container.v1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; + * @return Whether the removedAdditionalPodRangesConfig field is set. + */ + boolean hasRemovedAdditionalPodRangesConfig(); + /** + *
+   * The additional pod ranges that are to be removed from the cluster.
+   * The pod ranges specified here must have been specified earlier in the
+   * 'additional_pod_ranges_config' argument.
+   * 
+ * + * .google.container.v1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; + * @return The removedAdditionalPodRangesConfig. + */ + com.google.container.v1.AdditionalPodRangesConfig getRemovedAdditionalPodRangesConfig(); + /** + *
+   * The additional pod ranges that are to be removed from the cluster.
+   * The pod ranges specified here must have been specified earlier in the
+   * 'additional_pod_ranges_config' argument.
+   * 
+ * + * .google.container.v1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; + */ + com.google.container.v1.AdditionalPodRangesConfigOrBuilder getRemovedAdditionalPodRangesConfigOrBuilder(); + + /** + *
+   * Kubernetes open source beta apis enabled on the cluster. Only beta apis
+   * 
+ * + * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; + * @return Whether the enableK8sBetaApis field is set. + */ + boolean hasEnableK8SBetaApis(); + /** + *
+   * Kubernetes open source beta apis enabled on the cluster. Only beta apis
+   * 
+ * + * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; + * @return The enableK8sBetaApis. + */ + com.google.container.v1.K8sBetaAPIConfig getEnableK8SBetaApis(); + /** + *
+   * Kubernetes open source beta apis enabled on the cluster. Only beta apis
+   * 
+ * + * .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; + */ + com.google.container.v1.K8sBetaAPIConfigOrBuilder getEnableK8SBetaApisOrBuilder(); + + /** + *
+   * Enable/Disable Security Posture API features for the cluster.
+   * 
+ * + * .google.container.v1.SecurityPostureConfig desired_security_posture_config = 124; + * @return Whether the desiredSecurityPostureConfig field is set. + */ + boolean hasDesiredSecurityPostureConfig(); + /** + *
+   * Enable/Disable Security Posture API features for the cluster.
+   * 
+ * + * .google.container.v1.SecurityPostureConfig desired_security_posture_config = 124; + * @return The desiredSecurityPostureConfig. + */ + com.google.container.v1.SecurityPostureConfig getDesiredSecurityPostureConfig(); + /** + *
+   * Enable/Disable Security Posture API features for the cluster.
+   * 
+ * + * .google.container.v1.SecurityPostureConfig desired_security_posture_config = 124; + */ + com.google.container.v1.SecurityPostureConfigOrBuilder getDesiredSecurityPostureConfigOrBuilder(); + + /** + *
+   * The desired network performance config.
+   * 
+ * + * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; + * @return Whether the desiredNetworkPerformanceConfig field is set. + */ + boolean hasDesiredNetworkPerformanceConfig(); + /** + *
+   * The desired network performance config.
+   * 
+ * + * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; + * @return The desiredNetworkPerformanceConfig. + */ + com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig getDesiredNetworkPerformanceConfig(); + /** + *
+   * The desired network performance config.
+   * 
+ * + * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; + */ + com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder getDesiredNetworkPerformanceConfigOrBuilder(); + + /** + *
+   * Enable/Disable FQDN Network Policy for the cluster.
+   * 
+ * + * optional bool desired_enable_fqdn_network_policy = 126; + * @return Whether the desiredEnableFqdnNetworkPolicy field is set. + */ + boolean hasDesiredEnableFqdnNetworkPolicy(); + /** + *
+   * Enable/Disable FQDN Network Policy for the cluster.
+   * 
+ * + * optional bool desired_enable_fqdn_network_policy = 126; + * @return The desiredEnableFqdnNetworkPolicy. + */ + boolean getDesiredEnableFqdnNetworkPolicy(); + + /** + *
+   * The desired workload policy configuration for the autopilot cluster.
+   * 
+ * + * .google.container.v1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; + * @return Whether the desiredAutopilotWorkloadPolicyConfig field is set. + */ + boolean hasDesiredAutopilotWorkloadPolicyConfig(); + /** + *
+   * The desired workload policy configuration for the autopilot cluster.
+   * 
+ * + * .google.container.v1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; + * @return The desiredAutopilotWorkloadPolicyConfig. + */ + com.google.container.v1.WorkloadPolicyConfig getDesiredAutopilotWorkloadPolicyConfig(); + /** + *
+   * The desired workload policy configuration for the autopilot cluster.
+   * 
+ * + * .google.container.v1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; + */ + com.google.container.v1.WorkloadPolicyConfigOrBuilder getDesiredAutopilotWorkloadPolicyConfigOrBuilder(); + + /** + *
+   * Desired Beta APIs to be enabled for cluster.
+   * 
+ * + * .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; + * @return Whether the desiredK8sBetaApis field is set. + */ + boolean hasDesiredK8SBetaApis(); + /** + *
+   * Desired Beta APIs to be enabled for cluster.
+   * 
+ * + * .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; + * @return The desiredK8sBetaApis. + */ + com.google.container.v1.K8sBetaAPIConfig getDesiredK8SBetaApis(); + /** + *
+   * Desired Beta APIs to be enabled for cluster.
+   * 
+ * + * .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; + */ + com.google.container.v1.K8sBetaAPIConfigOrBuilder getDesiredK8SBetaApisOrBuilder(); + + /** + *
+   * The desired resource manager tags that apply to all auto-provisioned node
+   * pools in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; + * @return Whether the desiredNodePoolAutoConfigResourceManagerTags field is set. + */ + boolean hasDesiredNodePoolAutoConfigResourceManagerTags(); + /** + *
+   * The desired resource manager tags that apply to all auto-provisioned node
+   * pools in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; + * @return The desiredNodePoolAutoConfigResourceManagerTags. + */ + com.google.container.v1.ResourceManagerTags getDesiredNodePoolAutoConfigResourceManagerTags(); + /** + *
+   * The desired resource manager tags that apply to all auto-provisioned node
+   * pools in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; + */ + com.google.container.v1.ResourceManagerTagsOrBuilder getDesiredNodePoolAutoConfigResourceManagerTagsOrBuilder(); + + /** + *
+   * Specify the details of in-transit encryption.
+   * 
+ * + * optional .google.container.v1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; + * @return Whether the desiredInTransitEncryptionConfig field is set. + */ + boolean hasDesiredInTransitEncryptionConfig(); + /** + *
+   * Specify the details of in-transit encryption.
+   * 
+ * + * optional .google.container.v1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; + * @return The enum numeric value on the wire for desiredInTransitEncryptionConfig. + */ + int getDesiredInTransitEncryptionConfigValue(); + /** + *
+   * Specify the details of in-transit encryption.
+   * 
+ * + * optional .google.container.v1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; + * @return The desiredInTransitEncryptionConfig. + */ + com.google.container.v1.InTransitEncryptionConfig getDesiredInTransitEncryptionConfig(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.java new file mode 100644 index 000000000000..e2702c12d7f8 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.java @@ -0,0 +1,1161 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * CompleteIPRotationRequest moves the cluster master back into single-IP mode.
+ * 
+ * + * Protobuf type {@code google.container.v1.CompleteIPRotationRequest} + */ +public final class CompleteIPRotationRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CompleteIPRotationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CompleteIPRotationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.CompleteIPRotationRequest.class, com.google.container.v1.CompleteIPRotationRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4120 + * @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; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4120 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4126 + * @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; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4126 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object clusterId_ = ""; + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4130 + * @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; + } + } + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4130 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * The name (project, location, cluster name) 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 name) 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.CompleteIPRotationRequest)) { + return super.equals(obj); + } + com.google.container.v1.CompleteIPRotationRequest other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.CompleteIPRotationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.CompleteIPRotationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.CompleteIPRotationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.CompleteIPRotationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.CompleteIPRotationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.CompleteIPRotationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.CompleteIPRotationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.CompleteIPRotationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.CompleteIPRotationRequest) + com.google.container.v1.CompleteIPRotationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CompleteIPRotationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CompleteIPRotationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.CompleteIPRotationRequest.class, com.google.container.v1.CompleteIPRotationRequest.Builder.class); + } + + // Construct using com.google.container.v1.CompleteIPRotationRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CompleteIPRotationRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1.CompleteIPRotationRequest getDefaultInstanceForType() { + return com.google.container.v1.CompleteIPRotationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.CompleteIPRotationRequest build() { + com.google.container.v1.CompleteIPRotationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.CompleteIPRotationRequest buildPartial() { + com.google.container.v1.CompleteIPRotationRequest result = new com.google.container.v1.CompleteIPRotationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.CompleteIPRotationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.CompleteIPRotationRequest) { + return mergeFrom((com.google.container.v1.CompleteIPRotationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.CompleteIPRotationRequest other) { + if (other == com.google.container.v1.CompleteIPRotationRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 58: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4120 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4120 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4120 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4120 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4120 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4126 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4126 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4126 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4126 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4126 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4130 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4130 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4130 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4130 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4130 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster name) 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 name) 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 name) 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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster name) 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(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster name) 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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.CompleteIPRotationRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.CompleteIPRotationRequest) + private static final com.google.container.v1.CompleteIPRotationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.CompleteIPRotationRequest(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.CompleteIPRotationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java new file mode 100644 index 000000000000..ad029171bc5a --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java @@ -0,0 +1,116 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface CompleteIPRotationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.CompleteIPRotationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4120 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4120 + * @return The bytes for projectId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4126 + * @return The zone. + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4126 + * @return The bytes for zone. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4130 + * @return The clusterId. + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4130 + * @return The bytes for clusterId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * The name (project, location, cluster name) 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 name) 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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteNodePoolUpgradeRequest.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteNodePoolUpgradeRequest.java new file mode 100644 index 000000000000..5ee0e1ba8e51 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteNodePoolUpgradeRequest.java @@ -0,0 +1,594 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * CompleteNodePoolUpgradeRequest sets the name of target node pool to complete
+ * upgrade.
+ * 
+ * + * Protobuf type {@code google.container.v1.CompleteNodePoolUpgradeRequest} + */ +public final class CompleteNodePoolUpgradeRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.CompleteNodePoolUpgradeRequest) + CompleteNodePoolUpgradeRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CompleteNodePoolUpgradeRequest.newBuilder() to construct. + private CompleteNodePoolUpgradeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CompleteNodePoolUpgradeRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CompleteNodePoolUpgradeRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CompleteNodePoolUpgradeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CompleteNodePoolUpgradeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.CompleteNodePoolUpgradeRequest.class, com.google.container.v1.CompleteNodePoolUpgradeRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * complete upgrade.
+   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * 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 (project, location, cluster, node pool id) of the node pool to
+   * complete upgrade.
+   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.CompleteNodePoolUpgradeRequest)) { + return super.equals(obj); + } + com.google.container.v1.CompleteNodePoolUpgradeRequest other = (com.google.container.v1.CompleteNodePoolUpgradeRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.CompleteNodePoolUpgradeRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.CompleteNodePoolUpgradeRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.CompleteNodePoolUpgradeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.CompleteNodePoolUpgradeRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.CompleteNodePoolUpgradeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.CompleteNodePoolUpgradeRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.CompleteNodePoolUpgradeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.CompleteNodePoolUpgradeRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.CompleteNodePoolUpgradeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.CompleteNodePoolUpgradeRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.CompleteNodePoolUpgradeRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.CompleteNodePoolUpgradeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.CompleteNodePoolUpgradeRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * CompleteNodePoolUpgradeRequest sets the name of target node pool to complete
+   * upgrade.
+   * 
+ * + * Protobuf type {@code google.container.v1.CompleteNodePoolUpgradeRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.CompleteNodePoolUpgradeRequest) + com.google.container.v1.CompleteNodePoolUpgradeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CompleteNodePoolUpgradeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CompleteNodePoolUpgradeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.CompleteNodePoolUpgradeRequest.class, com.google.container.v1.CompleteNodePoolUpgradeRequest.Builder.class); + } + + // Construct using com.google.container.v1.CompleteNodePoolUpgradeRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CompleteNodePoolUpgradeRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1.CompleteNodePoolUpgradeRequest getDefaultInstanceForType() { + return com.google.container.v1.CompleteNodePoolUpgradeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.CompleteNodePoolUpgradeRequest build() { + com.google.container.v1.CompleteNodePoolUpgradeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.CompleteNodePoolUpgradeRequest buildPartial() { + com.google.container.v1.CompleteNodePoolUpgradeRequest result = new com.google.container.v1.CompleteNodePoolUpgradeRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.CompleteNodePoolUpgradeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.CompleteNodePoolUpgradeRequest) { + return mergeFrom((com.google.container.v1.CompleteNodePoolUpgradeRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.CompleteNodePoolUpgradeRequest other) { + if (other == com.google.container.v1.CompleteNodePoolUpgradeRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * complete upgrade.
+     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * 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 (project, location, cluster, node pool id) of the node pool to
+     * complete upgrade.
+     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * 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 (project, location, cluster, node pool id) of the node pool to
+     * complete upgrade.
+     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * complete upgrade.
+     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * complete upgrade.
+     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.CompleteNodePoolUpgradeRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.CompleteNodePoolUpgradeRequest) + private static final com.google.container.v1.CompleteNodePoolUpgradeRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.CompleteNodePoolUpgradeRequest(); + } + + public static com.google.container.v1.CompleteNodePoolUpgradeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompleteNodePoolUpgradeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.CompleteNodePoolUpgradeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteNodePoolUpgradeRequestOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteNodePoolUpgradeRequestOrBuilder.java new file mode 100644 index 000000000000..556c96bb3e94 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteNodePoolUpgradeRequestOrBuilder.java @@ -0,0 +1,34 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface CompleteNodePoolUpgradeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.CompleteNodePoolUpgradeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * complete upgrade.
+   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * complete upgrade.
+   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfidentialNodes.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfidentialNodes.java new file mode 100644 index 000000000000..0acf083be9be --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfidentialNodes.java @@ -0,0 +1,499 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * ConfidentialNodes is configuration for the confidential nodes feature, which
+ * makes nodes run on confidential VMs.
+ * 
+ * + * Protobuf type {@code google.container.v1.ConfidentialNodes} + */ +public final class ConfidentialNodes extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.ConfidentialNodes) + ConfidentialNodesOrBuilder { +private static final long serialVersionUID = 0L; + // Use ConfidentialNodes.newBuilder() to construct. + private ConfidentialNodes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ConfidentialNodes() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ConfidentialNodes(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ConfidentialNodes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ConfidentialNodes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ConfidentialNodes.class, com.google.container.v1.ConfidentialNodes.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * Whether Confidential Nodes feature is enabled.
+   * 
+ * + * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.ConfidentialNodes)) { + return super.equals(obj); + } + com.google.container.v1.ConfidentialNodes other = (com.google.container.v1.ConfidentialNodes) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ConfidentialNodes parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ConfidentialNodes parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ConfidentialNodes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ConfidentialNodes parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ConfidentialNodes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ConfidentialNodes parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ConfidentialNodes parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.ConfidentialNodes parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.ConfidentialNodes parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.ConfidentialNodes parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.ConfidentialNodes parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.ConfidentialNodes parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.ConfidentialNodes prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ConfidentialNodes is configuration for the confidential nodes feature, which
+   * makes nodes run on confidential VMs.
+   * 
+ * + * Protobuf type {@code google.container.v1.ConfidentialNodes} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ConfidentialNodes) + com.google.container.v1.ConfidentialNodesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ConfidentialNodes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ConfidentialNodes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ConfidentialNodes.class, com.google.container.v1.ConfidentialNodes.Builder.class); + } + + // Construct using com.google.container.v1.ConfidentialNodes.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ConfidentialNodes_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ConfidentialNodes getDefaultInstanceForType() { + return com.google.container.v1.ConfidentialNodes.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ConfidentialNodes build() { + com.google.container.v1.ConfidentialNodes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ConfidentialNodes buildPartial() { + com.google.container.v1.ConfidentialNodes result = new com.google.container.v1.ConfidentialNodes(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.ConfidentialNodes result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ConfidentialNodes) { + return mergeFrom((com.google.container.v1.ConfidentialNodes)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ConfidentialNodes other) { + if (other == com.google.container.v1.ConfidentialNodes.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enabled_ ; + /** + *
+     * Whether Confidential Nodes feature is enabled.
+     * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Whether Confidential Nodes feature is enabled.
+     * 
+ * + * bool enabled = 1; + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether Confidential Nodes feature is enabled.
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.ConfidentialNodes) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ConfidentialNodes) + private static final com.google.container.v1.ConfidentialNodes DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.ConfidentialNodes(); + } + + public static com.google.container.v1.ConfidentialNodes getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfidentialNodes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.ConfidentialNodes getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfidentialNodesOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfidentialNodesOrBuilder.java new file mode 100644 index 000000000000..1f7a096c6553 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfidentialNodesOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface ConfidentialNodesOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ConfidentialNodes) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether Confidential Nodes feature is enabled.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfigConnectorConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfigConnectorConfig.java new file mode 100644 index 000000000000..10a8baa28845 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfigConnectorConfig.java @@ -0,0 +1,497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Configuration options for the Config Connector add-on.
+ * 
+ * + * Protobuf type {@code google.container.v1.ConfigConnectorConfig} + */ +public final class ConfigConnectorConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.ConfigConnectorConfig) + ConfigConnectorConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use ConfigConnectorConfig.newBuilder() to construct. + private ConfigConnectorConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ConfigConnectorConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ConfigConnectorConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ConfigConnectorConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ConfigConnectorConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ConfigConnectorConfig.class, com.google.container.v1.ConfigConnectorConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.ConfigConnectorConfig)) { + return super.equals(obj); + } + com.google.container.v1.ConfigConnectorConfig other = (com.google.container.v1.ConfigConnectorConfig) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ConfigConnectorConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ConfigConnectorConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ConfigConnectorConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ConfigConnectorConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ConfigConnectorConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ConfigConnectorConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ConfigConnectorConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.ConfigConnectorConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.ConfigConnectorConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.ConfigConnectorConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.ConfigConnectorConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.ConfigConnectorConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.ConfigConnectorConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration options for the Config Connector add-on.
+   * 
+ * + * Protobuf type {@code google.container.v1.ConfigConnectorConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ConfigConnectorConfig) + com.google.container.v1.ConfigConnectorConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ConfigConnectorConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ConfigConnectorConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ConfigConnectorConfig.class, com.google.container.v1.ConfigConnectorConfig.Builder.class); + } + + // Construct using com.google.container.v1.ConfigConnectorConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ConfigConnectorConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ConfigConnectorConfig getDefaultInstanceForType() { + return com.google.container.v1.ConfigConnectorConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ConfigConnectorConfig build() { + com.google.container.v1.ConfigConnectorConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ConfigConnectorConfig buildPartial() { + com.google.container.v1.ConfigConnectorConfig result = new com.google.container.v1.ConfigConnectorConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.ConfigConnectorConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ConfigConnectorConfig) { + return mergeFrom((com.google.container.v1.ConfigConnectorConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ConfigConnectorConfig other) { + if (other == com.google.container.v1.ConfigConnectorConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether Cloud Connector is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.ConfigConnectorConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ConfigConnectorConfig) + private static final com.google.container.v1.ConfigConnectorConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.ConfigConnectorConfig(); + } + + public static com.google.container.v1.ConfigConnectorConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfigConnectorConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.ConfigConnectorConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfigConnectorConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfigConnectorConfigOrBuilder.java new file mode 100644 index 000000000000..fa3f58b6bd95 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfigConnectorConfigOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface ConfigConnectorConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ConfigConnectorConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether Cloud Connector is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CostManagementConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CostManagementConfig.java new file mode 100644 index 000000000000..c0970c90afbf --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CostManagementConfig.java @@ -0,0 +1,497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Configuration for fine-grained cost management feature.
+ * 
+ * + * Protobuf type {@code google.container.v1.CostManagementConfig} + */ +public final class CostManagementConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.CostManagementConfig) + CostManagementConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use CostManagementConfig.newBuilder() to construct. + private CostManagementConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CostManagementConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CostManagementConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CostManagementConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CostManagementConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.CostManagementConfig.class, com.google.container.v1.CostManagementConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * Whether the feature is enabled 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.CostManagementConfig)) { + return super.equals(obj); + } + com.google.container.v1.CostManagementConfig other = (com.google.container.v1.CostManagementConfig) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.CostManagementConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.CostManagementConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.CostManagementConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.CostManagementConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.CostManagementConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.CostManagementConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.CostManagementConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.CostManagementConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.CostManagementConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.CostManagementConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.CostManagementConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.CostManagementConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.CostManagementConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new 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 fine-grained cost management feature.
+   * 
+ * + * Protobuf type {@code google.container.v1.CostManagementConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.CostManagementConfig) + com.google.container.v1.CostManagementConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CostManagementConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CostManagementConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.CostManagementConfig.class, com.google.container.v1.CostManagementConfig.Builder.class); + } + + // Construct using com.google.container.v1.CostManagementConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CostManagementConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.CostManagementConfig getDefaultInstanceForType() { + return com.google.container.v1.CostManagementConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.CostManagementConfig build() { + com.google.container.v1.CostManagementConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.CostManagementConfig buildPartial() { + com.google.container.v1.CostManagementConfig result = new com.google.container.v1.CostManagementConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.CostManagementConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.CostManagementConfig) { + return mergeFrom((com.google.container.v1.CostManagementConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.CostManagementConfig other) { + if (other == com.google.container.v1.CostManagementConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enabled_ ; + /** + *
+     * Whether the feature is enabled or not.
+     * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Whether the feature 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether the feature is enabled or not.
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.CostManagementConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.CostManagementConfig) + private static final com.google.container.v1.CostManagementConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.CostManagementConfig(); + } + + public static com.google.container.v1.CostManagementConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CostManagementConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.CostManagementConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CostManagementConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CostManagementConfigOrBuilder.java new file mode 100644 index 000000000000..418fa57fc882 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CostManagementConfigOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface CostManagementConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.CostManagementConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether the feature is enabled or not.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java new file mode 100644 index 000000000000..3c6be64a2d3c --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java @@ -0,0 +1,1229 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * CreateClusterRequest creates a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1.CreateClusterRequest} + */ +public final class CreateClusterRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CreateClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CreateClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.CreateClusterRequest.class, com.google.container.v1.CreateClusterRequest.Builder.class); + } + + private int bitField0_; + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2570 + * @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; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2570 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + /** + *
+   * Deprecated. The name of the Google Compute 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]; + * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2576 + * @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; + } + } + /** + *
+   * Deprecated. The name of the Google Compute 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]; + * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2576 + * @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.v1.Cluster cluster_; + /** + *
+   * Required. A [cluster
+   * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
+   * 
+ * + * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the cluster field is set. + */ + @java.lang.Override + public boolean hasCluster() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Required. A [cluster
+   * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
+   * 
+ * + * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The cluster. + */ + @java.lang.Override + public com.google.container.v1.Cluster getCluster() { + return cluster_ == null ? com.google.container.v1.Cluster.getDefaultInstance() : cluster_; + } + /** + *
+   * Required. A [cluster
+   * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
+   * 
+ * + * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.container.v1.ClusterOrBuilder getClusterOrBuilder() { + return cluster_ == null ? com.google.container.v1.Cluster.getDefaultInstance() : cluster_; + } + + public static final int PARENT_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCluster()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parent_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCluster()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.CreateClusterRequest)) { + return super.equals(obj); + } + com.google.container.v1.CreateClusterRequest other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.CreateClusterRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.CreateClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.CreateClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.CreateClusterRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.CreateClusterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.CreateClusterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.CreateClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.CreateClusterRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.CreateClusterRequest) + com.google.container.v1.CreateClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CreateClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CreateClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.CreateClusterRequest.class, com.google.container.v1.CreateClusterRequest.Builder.class); + } + + // Construct using com.google.container.v1.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) { + getClusterFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + cluster_ = null; + if (clusterBuilder_ != null) { + clusterBuilder_.dispose(); + clusterBuilder_ = null; + } + parent_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CreateClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1.CreateClusterRequest getDefaultInstanceForType() { + return com.google.container.v1.CreateClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.CreateClusterRequest build() { + com.google.container.v1.CreateClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.CreateClusterRequest buildPartial() { + com.google.container.v1.CreateClusterRequest result = new com.google.container.v1.CreateClusterRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.CreateClusterRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.cluster_ = clusterBuilder_ == null + ? cluster_ + : clusterBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.parent_ = parent_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.CreateClusterRequest) { + return mergeFrom((com.google.container.v1.CreateClusterRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.CreateClusterRequest other) { + if (other == com.google.container.v1.CreateClusterRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCluster()) { + mergeCluster(other.getCluster()); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getClusterFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 42: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2570 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2570 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2570 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2570 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2570 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute 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]; + * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2576 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute 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]; + * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2576 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute 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]; + * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2576 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute 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]; + * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2576 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute 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]; + * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2576 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.container.v1.Cluster cluster_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.Cluster, com.google.container.v1.Cluster.Builder, com.google.container.v1.ClusterOrBuilder> clusterBuilder_; + /** + *
+     * Required. A [cluster
+     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
+     * 
+ * + * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the cluster field is set. + */ + public boolean hasCluster() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * Required. A [cluster
+     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
+     * 
+ * + * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The cluster. + */ + public com.google.container.v1.Cluster getCluster() { + if (clusterBuilder_ == null) { + return cluster_ == null ? com.google.container.v1.Cluster.getDefaultInstance() : cluster_; + } else { + return clusterBuilder_.getMessage(); + } + } + /** + *
+     * Required. A [cluster
+     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
+     * 
+ * + * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setCluster(com.google.container.v1.Cluster value) { + if (clusterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cluster_ = value; + } else { + clusterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Required. A [cluster
+     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
+     * 
+ * + * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setCluster( + com.google.container.v1.Cluster.Builder builderForValue) { + if (clusterBuilder_ == null) { + cluster_ = builderForValue.build(); + } else { + clusterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Required. A [cluster
+     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
+     * 
+ * + * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeCluster(com.google.container.v1.Cluster value) { + if (clusterBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + cluster_ != null && + cluster_ != com.google.container.v1.Cluster.getDefaultInstance()) { + getClusterBuilder().mergeFrom(value); + } else { + cluster_ = value; + } + } else { + clusterBuilder_.mergeFrom(value); + } + if (cluster_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+     * Required. A [cluster
+     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
+     * 
+ * + * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearCluster() { + bitField0_ = (bitField0_ & ~0x00000004); + cluster_ = null; + if (clusterBuilder_ != null) { + clusterBuilder_.dispose(); + clusterBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Required. A [cluster
+     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
+     * 
+ * + * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.container.v1.Cluster.Builder getClusterBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getClusterFieldBuilder().getBuilder(); + } + /** + *
+     * Required. A [cluster
+     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
+     * 
+ * + * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.container.v1.ClusterOrBuilder getClusterOrBuilder() { + if (clusterBuilder_ != null) { + return clusterBuilder_.getMessageOrBuilder(); + } else { + return cluster_ == null ? + com.google.container.v1.Cluster.getDefaultInstance() : cluster_; + } + } + /** + *
+     * Required. A [cluster
+     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
+     * 
+ * + * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.Cluster, com.google.container.v1.Cluster.Builder, com.google.container.v1.ClusterOrBuilder> + getClusterFieldBuilder() { + if (clusterBuilder_ == null) { + clusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.Cluster, com.google.container.v1.Cluster.Builder, com.google.container.v1.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; + bitField0_ |= 0x00000008; + 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(); + bitField0_ = (bitField0_ & ~0x00000008); + 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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.CreateClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.CreateClusterRequest) + private static final com.google.container.v1.CreateClusterRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.CreateClusterRequest(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.CreateClusterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java new file mode 100644 index 000000000000..cb5dbf0420fa --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java @@ -0,0 +1,120 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface CreateClusterRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.CreateClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2570 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2570 + * @return The bytes for projectId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the parent
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2576 + * @return The zone. + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the parent
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2576 + * @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/v1/projects.locations.clusters)
+   * 
+ * + * .google.container.v1.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/v1/projects.locations.clusters)
+   * 
+ * + * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The cluster. + */ + com.google.container.v1.Cluster getCluster(); + /** + *
+   * Required. A [cluster
+   * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
+   * 
+ * + * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.container.v1.ClusterOrBuilder getClusterOrBuilder(); + + /** + *
+   * The parent (project and location) where the cluster will be created.
+   * Specified in the format `projects/*/locations/*`.
+   * 
+ * + * string parent = 5; + * @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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java new file mode 100644 index 000000000000..71808e029040 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java @@ -0,0 +1,1409 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * CreateNodePoolRequest creates a node pool for a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1.CreateNodePoolRequest} + */ +public final class CreateNodePoolRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CreateNodePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CreateNodePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.CreateNodePoolRequest.class, com.google.container.v1.CreateNodePoolRequest.Builder.class); + } + + private int bitField0_; + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3185 + * @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; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3185 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + /** + *
+   * Deprecated. The name of the Google Compute 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]; + * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3191 + * @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; + } + } + /** + *
+   * Deprecated. The name of the Google Compute 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]; + * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3191 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object clusterId_ = ""; + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3195 + * @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; + } + } + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3195 + * @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.v1.NodePool nodePool_; + /** + *
+   * Required. The node pool to create.
+   * 
+ * + * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the nodePool field is set. + */ + @java.lang.Override + public boolean hasNodePool() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Required. The node pool to create.
+   * 
+ * + * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return The nodePool. + */ + @java.lang.Override + public com.google.container.v1.NodePool getNodePool() { + return nodePool_ == null ? com.google.container.v1.NodePool.getDefaultInstance() : nodePool_; + } + /** + *
+   * Required. The node pool to create.
+   * 
+ * + * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.container.v1.NodePoolOrBuilder getNodePoolOrBuilder() { + return nodePool_ == null ? com.google.container.v1.NodePool.getDefaultInstance() : nodePool_; + } + + public static final int PARENT_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + *
+   * The parent (project, location, cluster name) 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 name) 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getNodePool()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, parent_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getNodePool()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, parent_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.CreateNodePoolRequest)) { + return super.equals(obj); + } + com.google.container.v1.CreateNodePoolRequest other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.CreateNodePoolRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.CreateNodePoolRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.CreateNodePoolRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.CreateNodePoolRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.CreateNodePoolRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.CreateNodePoolRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.CreateNodePoolRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.CreateNodePoolRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.CreateNodePoolRequest) + com.google.container.v1.CreateNodePoolRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CreateNodePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CreateNodePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.CreateNodePoolRequest.class, com.google.container.v1.CreateNodePoolRequest.Builder.class); + } + + // Construct using com.google.container.v1.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) { + getNodePoolFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePool_ = null; + if (nodePoolBuilder_ != null) { + nodePoolBuilder_.dispose(); + nodePoolBuilder_ = null; + } + parent_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_CreateNodePoolRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1.CreateNodePoolRequest getDefaultInstanceForType() { + return com.google.container.v1.CreateNodePoolRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.CreateNodePoolRequest build() { + com.google.container.v1.CreateNodePoolRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.CreateNodePoolRequest buildPartial() { + com.google.container.v1.CreateNodePoolRequest result = new com.google.container.v1.CreateNodePoolRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.CreateNodePoolRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.nodePool_ = nodePoolBuilder_ == null + ? nodePool_ + : nodePoolBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.parent_ = parent_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.CreateNodePoolRequest) { + return mergeFrom((com.google.container.v1.CreateNodePoolRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.CreateNodePoolRequest other) { + if (other == com.google.container.v1.CreateNodePoolRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasNodePool()) { + mergeNodePool(other.getNodePool()); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getNodePoolFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 50: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3185 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3185 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3185 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3185 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3185 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute 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]; + * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3191 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute 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]; + * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3191 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute 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]; + * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3191 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute 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]; + * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3191 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute 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]; + * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3191 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3195 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3195 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3195 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3195 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3195 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.container.v1.NodePool nodePool_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool, com.google.container.v1.NodePool.Builder, com.google.container.v1.NodePoolOrBuilder> nodePoolBuilder_; + /** + *
+     * Required. The node pool to create.
+     * 
+ * + * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the nodePool field is set. + */ + public boolean hasNodePool() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * Required. The node pool to create.
+     * 
+ * + * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return The nodePool. + */ + public com.google.container.v1.NodePool getNodePool() { + if (nodePoolBuilder_ == null) { + return nodePool_ == null ? com.google.container.v1.NodePool.getDefaultInstance() : nodePool_; + } else { + return nodePoolBuilder_.getMessage(); + } + } + /** + *
+     * Required. The node pool to create.
+     * 
+ * + * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setNodePool(com.google.container.v1.NodePool value) { + if (nodePoolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodePool_ = value; + } else { + nodePoolBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Required. The node pool to create.
+     * 
+ * + * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setNodePool( + com.google.container.v1.NodePool.Builder builderForValue) { + if (nodePoolBuilder_ == null) { + nodePool_ = builderForValue.build(); + } else { + nodePoolBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Required. The node pool to create.
+     * 
+ * + * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeNodePool(com.google.container.v1.NodePool value) { + if (nodePoolBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + nodePool_ != null && + nodePool_ != com.google.container.v1.NodePool.getDefaultInstance()) { + getNodePoolBuilder().mergeFrom(value); + } else { + nodePool_ = value; + } + } else { + nodePoolBuilder_.mergeFrom(value); + } + if (nodePool_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + *
+     * Required. The node pool to create.
+     * 
+ * + * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearNodePool() { + bitField0_ = (bitField0_ & ~0x00000008); + nodePool_ = null; + if (nodePoolBuilder_ != null) { + nodePoolBuilder_.dispose(); + nodePoolBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Required. The node pool to create.
+     * 
+ * + * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.container.v1.NodePool.Builder getNodePoolBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getNodePoolFieldBuilder().getBuilder(); + } + /** + *
+     * Required. The node pool to create.
+     * 
+ * + * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.container.v1.NodePoolOrBuilder getNodePoolOrBuilder() { + if (nodePoolBuilder_ != null) { + return nodePoolBuilder_.getMessageOrBuilder(); + } else { + return nodePool_ == null ? + com.google.container.v1.NodePool.getDefaultInstance() : nodePool_; + } + } + /** + *
+     * Required. The node pool to create.
+     * 
+ * + * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool, com.google.container.v1.NodePool.Builder, com.google.container.v1.NodePoolOrBuilder> + getNodePoolFieldBuilder() { + if (nodePoolBuilder_ == null) { + nodePoolBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool, com.google.container.v1.NodePool.Builder, com.google.container.v1.NodePoolOrBuilder>( + getNodePool(), + getParentForChildren(), + isClean()); + nodePool_ = null; + } + return nodePoolBuilder_; + } + + private java.lang.Object parent_ = ""; + /** + *
+     * The parent (project, location, cluster name) 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 name) 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 name) 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; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * The parent (project, location, cluster name) 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(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+     * The parent (project, location, cluster name) 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; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.CreateNodePoolRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.CreateNodePoolRequest) + private static final com.google.container.v1.CreateNodePoolRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.CreateNodePoolRequest(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.CreateNodePoolRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java new file mode 100644 index 000000000000..89911401f0a2 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java @@ -0,0 +1,145 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface CreateNodePoolRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.CreateNodePoolRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3185 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3185 + * @return The bytes for projectId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the parent
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3191 + * @return The zone. + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the parent
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3191 + * @return The bytes for zone. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3195 + * @return The clusterId. + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3195 + * @return The bytes for clusterId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * Required. The node pool to create.
+   * 
+ * + * .google.container.v1.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.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return The nodePool. + */ + com.google.container.v1.NodePool getNodePool(); + /** + *
+   * Required. The node pool to create.
+   * 
+ * + * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.container.v1.NodePoolOrBuilder getNodePoolOrBuilder(); + + /** + *
+   * The parent (project, location, cluster name) 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 name) 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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DNSConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DNSConfig.java new file mode 100644 index 000000000000..30a5f2f82a22 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DNSConfig.java @@ -0,0 +1,1129 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * DNSConfig contains the desired set of options for configuring clusterDNS.
+ * 
+ * + * Protobuf type {@code google.container.v1.DNSConfig} + */ +public final class DNSConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.DNSConfig) + DNSConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use DNSConfig.newBuilder() to construct. + private DNSConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DNSConfig() { + clusterDns_ = 0; + clusterDnsScope_ = 0; + clusterDnsDomain_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DNSConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DNSConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DNSConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.DNSConfig.class, com.google.container.v1.DNSConfig.Builder.class); + } + + /** + *
+   * Provider lists the various in-cluster DNS providers.
+   * 
+ * + * Protobuf enum {@code google.container.v1.DNSConfig.Provider} + */ + public enum Provider + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Default value
+     * 
+ * + * PROVIDER_UNSPECIFIED = 0; + */ + PROVIDER_UNSPECIFIED(0), + /** + *
+     * Use GKE default DNS provider(kube-dns) for DNS resolution.
+     * 
+ * + * PLATFORM_DEFAULT = 1; + */ + PLATFORM_DEFAULT(1), + /** + *
+     * Use CloudDNS for DNS resolution.
+     * 
+ * + * CLOUD_DNS = 2; + */ + CLOUD_DNS(2), + /** + *
+     * Use KubeDNS for DNS resolution.
+     * 
+ * + * KUBE_DNS = 3; + */ + KUBE_DNS(3), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Default value
+     * 
+ * + * PROVIDER_UNSPECIFIED = 0; + */ + public static final int PROVIDER_UNSPECIFIED_VALUE = 0; + /** + *
+     * Use GKE default DNS provider(kube-dns) for DNS resolution.
+     * 
+ * + * PLATFORM_DEFAULT = 1; + */ + public static final int PLATFORM_DEFAULT_VALUE = 1; + /** + *
+     * Use CloudDNS for DNS resolution.
+     * 
+ * + * CLOUD_DNS = 2; + */ + public static final int CLOUD_DNS_VALUE = 2; + /** + *
+     * Use KubeDNS for DNS resolution.
+     * 
+ * + * KUBE_DNS = 3; + */ + public static final int KUBE_DNS_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 Provider valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Provider forNumber(int value) { + switch (value) { + case 0: return PROVIDER_UNSPECIFIED; + case 1: return PLATFORM_DEFAULT; + case 2: return CLOUD_DNS; + case 3: return KUBE_DNS; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Provider> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Provider findValueByNumber(int number) { + return Provider.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.DNSConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final Provider[] VALUES = values(); + + public static Provider valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Provider(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.DNSConfig.Provider) + } + + /** + *
+   * DNSScope lists the various scopes of access to cluster DNS records.
+   * 
+ * + * Protobuf enum {@code google.container.v1.DNSConfig.DNSScope} + */ + public enum DNSScope + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Default value, will be inferred as cluster scope.
+     * 
+ * + * DNS_SCOPE_UNSPECIFIED = 0; + */ + DNS_SCOPE_UNSPECIFIED(0), + /** + *
+     * DNS records are accessible from within the cluster.
+     * 
+ * + * CLUSTER_SCOPE = 1; + */ + CLUSTER_SCOPE(1), + /** + *
+     * DNS records are accessible from within the VPC.
+     * 
+ * + * VPC_SCOPE = 2; + */ + VPC_SCOPE(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Default value, will be inferred as cluster scope.
+     * 
+ * + * DNS_SCOPE_UNSPECIFIED = 0; + */ + public static final int DNS_SCOPE_UNSPECIFIED_VALUE = 0; + /** + *
+     * DNS records are accessible from within the cluster.
+     * 
+ * + * CLUSTER_SCOPE = 1; + */ + public static final int CLUSTER_SCOPE_VALUE = 1; + /** + *
+     * DNS records are accessible from within the VPC.
+     * 
+ * + * VPC_SCOPE = 2; + */ + public static final int VPC_SCOPE_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DNSScope valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DNSScope forNumber(int value) { + switch (value) { + case 0: return DNS_SCOPE_UNSPECIFIED; + case 1: return CLUSTER_SCOPE; + case 2: return VPC_SCOPE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + DNSScope> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DNSScope findValueByNumber(int number) { + return DNSScope.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.DNSConfig.getDescriptor().getEnumTypes().get(1); + } + + private static final DNSScope[] VALUES = values(); + + public static DNSScope valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DNSScope(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.DNSConfig.DNSScope) + } + + public static final int CLUSTER_DNS_FIELD_NUMBER = 1; + private int clusterDns_ = 0; + /** + *
+   * cluster_dns indicates which in-cluster DNS provider should be used.
+   * 
+ * + * .google.container.v1.DNSConfig.Provider cluster_dns = 1; + * @return The enum numeric value on the wire for clusterDns. + */ + @java.lang.Override public int getClusterDnsValue() { + return clusterDns_; + } + /** + *
+   * cluster_dns indicates which in-cluster DNS provider should be used.
+   * 
+ * + * .google.container.v1.DNSConfig.Provider cluster_dns = 1; + * @return The clusterDns. + */ + @java.lang.Override public com.google.container.v1.DNSConfig.Provider getClusterDns() { + com.google.container.v1.DNSConfig.Provider result = com.google.container.v1.DNSConfig.Provider.forNumber(clusterDns_); + return result == null ? com.google.container.v1.DNSConfig.Provider.UNRECOGNIZED : result; + } + + public static final int CLUSTER_DNS_SCOPE_FIELD_NUMBER = 2; + private int clusterDnsScope_ = 0; + /** + *
+   * cluster_dns_scope indicates the scope of access to cluster DNS records.
+   * 
+ * + * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; + * @return The enum numeric value on the wire for clusterDnsScope. + */ + @java.lang.Override public int getClusterDnsScopeValue() { + return clusterDnsScope_; + } + /** + *
+   * cluster_dns_scope indicates the scope of access to cluster DNS records.
+   * 
+ * + * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; + * @return The clusterDnsScope. + */ + @java.lang.Override public com.google.container.v1.DNSConfig.DNSScope getClusterDnsScope() { + com.google.container.v1.DNSConfig.DNSScope result = com.google.container.v1.DNSConfig.DNSScope.forNumber(clusterDnsScope_); + return result == null ? com.google.container.v1.DNSConfig.DNSScope.UNRECOGNIZED : result; + } + + public static final int CLUSTER_DNS_DOMAIN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object clusterDnsDomain_ = ""; + /** + *
+   * cluster_dns_domain is the suffix used for all cluster service records.
+   * 
+ * + * string cluster_dns_domain = 3; + * @return The clusterDnsDomain. + */ + @java.lang.Override + public java.lang.String getClusterDnsDomain() { + java.lang.Object ref = clusterDnsDomain_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterDnsDomain_ = s; + return s; + } + } + /** + *
+   * cluster_dns_domain is the suffix used for all cluster service records.
+   * 
+ * + * string cluster_dns_domain = 3; + * @return The bytes for clusterDnsDomain. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getClusterDnsDomainBytes() { + java.lang.Object ref = clusterDnsDomain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterDnsDomain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (clusterDns_ != com.google.container.v1.DNSConfig.Provider.PROVIDER_UNSPECIFIED.getNumber()) { + output.writeEnum(1, clusterDns_); + } + if (clusterDnsScope_ != com.google.container.v1.DNSConfig.DNSScope.DNS_SCOPE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, clusterDnsScope_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterDnsDomain_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterDnsDomain_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (clusterDns_ != com.google.container.v1.DNSConfig.Provider.PROVIDER_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, clusterDns_); + } + if (clusterDnsScope_ != com.google.container.v1.DNSConfig.DNSScope.DNS_SCOPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, clusterDnsScope_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterDnsDomain_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterDnsDomain_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.DNSConfig)) { + return super.equals(obj); + } + com.google.container.v1.DNSConfig other = (com.google.container.v1.DNSConfig) obj; + + if (clusterDns_ != other.clusterDns_) return false; + if (clusterDnsScope_ != other.clusterDnsScope_) return false; + if (!getClusterDnsDomain() + .equals(other.getClusterDnsDomain())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CLUSTER_DNS_FIELD_NUMBER; + hash = (53 * hash) + clusterDns_; + hash = (37 * hash) + CLUSTER_DNS_SCOPE_FIELD_NUMBER; + hash = (53 * hash) + clusterDnsScope_; + hash = (37 * hash) + CLUSTER_DNS_DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getClusterDnsDomain().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.DNSConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.DNSConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.DNSConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.DNSConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.DNSConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.DNSConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.DNSConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.DNSConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.DNSConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.DNSConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.DNSConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.DNSConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.DNSConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * DNSConfig contains the desired set of options for configuring clusterDNS.
+   * 
+ * + * Protobuf type {@code google.container.v1.DNSConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.DNSConfig) + com.google.container.v1.DNSConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DNSConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DNSConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.DNSConfig.class, com.google.container.v1.DNSConfig.Builder.class); + } + + // Construct using com.google.container.v1.DNSConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + clusterDns_ = 0; + clusterDnsScope_ = 0; + clusterDnsDomain_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DNSConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.DNSConfig getDefaultInstanceForType() { + return com.google.container.v1.DNSConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.DNSConfig build() { + com.google.container.v1.DNSConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.DNSConfig buildPartial() { + com.google.container.v1.DNSConfig result = new com.google.container.v1.DNSConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.DNSConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.clusterDns_ = clusterDns_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.clusterDnsScope_ = clusterDnsScope_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterDnsDomain_ = clusterDnsDomain_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.DNSConfig) { + return mergeFrom((com.google.container.v1.DNSConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.DNSConfig other) { + if (other == com.google.container.v1.DNSConfig.getDefaultInstance()) return this; + if (other.clusterDns_ != 0) { + setClusterDnsValue(other.getClusterDnsValue()); + } + if (other.clusterDnsScope_ != 0) { + setClusterDnsScopeValue(other.getClusterDnsScopeValue()); + } + if (!other.getClusterDnsDomain().isEmpty()) { + clusterDnsDomain_ = other.clusterDnsDomain_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + clusterDns_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + clusterDnsScope_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + clusterDnsDomain_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int clusterDns_ = 0; + /** + *
+     * cluster_dns indicates which in-cluster DNS provider should be used.
+     * 
+ * + * .google.container.v1.DNSConfig.Provider cluster_dns = 1; + * @return The enum numeric value on the wire for clusterDns. + */ + @java.lang.Override public int getClusterDnsValue() { + return clusterDns_; + } + /** + *
+     * cluster_dns indicates which in-cluster DNS provider should be used.
+     * 
+ * + * .google.container.v1.DNSConfig.Provider cluster_dns = 1; + * @param value The enum numeric value on the wire for clusterDns to set. + * @return This builder for chaining. + */ + public Builder setClusterDnsValue(int value) { + clusterDns_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * cluster_dns indicates which in-cluster DNS provider should be used.
+     * 
+ * + * .google.container.v1.DNSConfig.Provider cluster_dns = 1; + * @return The clusterDns. + */ + @java.lang.Override + public com.google.container.v1.DNSConfig.Provider getClusterDns() { + com.google.container.v1.DNSConfig.Provider result = com.google.container.v1.DNSConfig.Provider.forNumber(clusterDns_); + return result == null ? com.google.container.v1.DNSConfig.Provider.UNRECOGNIZED : result; + } + /** + *
+     * cluster_dns indicates which in-cluster DNS provider should be used.
+     * 
+ * + * .google.container.v1.DNSConfig.Provider cluster_dns = 1; + * @param value The clusterDns to set. + * @return This builder for chaining. + */ + public Builder setClusterDns(com.google.container.v1.DNSConfig.Provider value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + clusterDns_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * cluster_dns indicates which in-cluster DNS provider should be used.
+     * 
+ * + * .google.container.v1.DNSConfig.Provider cluster_dns = 1; + * @return This builder for chaining. + */ + public Builder clearClusterDns() { + bitField0_ = (bitField0_ & ~0x00000001); + clusterDns_ = 0; + onChanged(); + return this; + } + + private int clusterDnsScope_ = 0; + /** + *
+     * cluster_dns_scope indicates the scope of access to cluster DNS records.
+     * 
+ * + * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; + * @return The enum numeric value on the wire for clusterDnsScope. + */ + @java.lang.Override public int getClusterDnsScopeValue() { + return clusterDnsScope_; + } + /** + *
+     * cluster_dns_scope indicates the scope of access to cluster DNS records.
+     * 
+ * + * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; + * @param value The enum numeric value on the wire for clusterDnsScope to set. + * @return This builder for chaining. + */ + public Builder setClusterDnsScopeValue(int value) { + clusterDnsScope_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * cluster_dns_scope indicates the scope of access to cluster DNS records.
+     * 
+ * + * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; + * @return The clusterDnsScope. + */ + @java.lang.Override + public com.google.container.v1.DNSConfig.DNSScope getClusterDnsScope() { + com.google.container.v1.DNSConfig.DNSScope result = com.google.container.v1.DNSConfig.DNSScope.forNumber(clusterDnsScope_); + return result == null ? com.google.container.v1.DNSConfig.DNSScope.UNRECOGNIZED : result; + } + /** + *
+     * cluster_dns_scope indicates the scope of access to cluster DNS records.
+     * 
+ * + * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; + * @param value The clusterDnsScope to set. + * @return This builder for chaining. + */ + public Builder setClusterDnsScope(com.google.container.v1.DNSConfig.DNSScope value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + clusterDnsScope_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * cluster_dns_scope indicates the scope of access to cluster DNS records.
+     * 
+ * + * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; + * @return This builder for chaining. + */ + public Builder clearClusterDnsScope() { + bitField0_ = (bitField0_ & ~0x00000002); + clusterDnsScope_ = 0; + onChanged(); + return this; + } + + private java.lang.Object clusterDnsDomain_ = ""; + /** + *
+     * cluster_dns_domain is the suffix used for all cluster service records.
+     * 
+ * + * string cluster_dns_domain = 3; + * @return The clusterDnsDomain. + */ + public java.lang.String getClusterDnsDomain() { + java.lang.Object ref = clusterDnsDomain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterDnsDomain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * cluster_dns_domain is the suffix used for all cluster service records.
+     * 
+ * + * string cluster_dns_domain = 3; + * @return The bytes for clusterDnsDomain. + */ + public com.google.protobuf.ByteString + getClusterDnsDomainBytes() { + java.lang.Object ref = clusterDnsDomain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterDnsDomain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * cluster_dns_domain is the suffix used for all cluster service records.
+     * 
+ * + * string cluster_dns_domain = 3; + * @param value The clusterDnsDomain to set. + * @return This builder for chaining. + */ + public Builder setClusterDnsDomain( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + clusterDnsDomain_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * cluster_dns_domain is the suffix used for all cluster service records.
+     * 
+ * + * string cluster_dns_domain = 3; + * @return This builder for chaining. + */ + public Builder clearClusterDnsDomain() { + clusterDnsDomain_ = getDefaultInstance().getClusterDnsDomain(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * cluster_dns_domain is the suffix used for all cluster service records.
+     * 
+ * + * string cluster_dns_domain = 3; + * @param value The bytes for clusterDnsDomain to set. + * @return This builder for chaining. + */ + public Builder setClusterDnsDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + clusterDnsDomain_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.DNSConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.DNSConfig) + private static final com.google.container.v1.DNSConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.DNSConfig(); + } + + public static com.google.container.v1.DNSConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DNSConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.DNSConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DNSConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DNSConfigOrBuilder.java new file mode 100644 index 000000000000..5b56dfcd8c5b --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DNSConfigOrBuilder.java @@ -0,0 +1,68 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface DNSConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.DNSConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * cluster_dns indicates which in-cluster DNS provider should be used.
+   * 
+ * + * .google.container.v1.DNSConfig.Provider cluster_dns = 1; + * @return The enum numeric value on the wire for clusterDns. + */ + int getClusterDnsValue(); + /** + *
+   * cluster_dns indicates which in-cluster DNS provider should be used.
+   * 
+ * + * .google.container.v1.DNSConfig.Provider cluster_dns = 1; + * @return The clusterDns. + */ + com.google.container.v1.DNSConfig.Provider getClusterDns(); + + /** + *
+   * cluster_dns_scope indicates the scope of access to cluster DNS records.
+   * 
+ * + * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; + * @return The enum numeric value on the wire for clusterDnsScope. + */ + int getClusterDnsScopeValue(); + /** + *
+   * cluster_dns_scope indicates the scope of access to cluster DNS records.
+   * 
+ * + * .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; + * @return The clusterDnsScope. + */ + com.google.container.v1.DNSConfig.DNSScope getClusterDnsScope(); + + /** + *
+   * cluster_dns_domain is the suffix used for all cluster service records.
+   * 
+ * + * string cluster_dns_domain = 3; + * @return The clusterDnsDomain. + */ + java.lang.String getClusterDnsDomain(); + /** + *
+   * cluster_dns_domain is the suffix used for all cluster service records.
+   * 
+ * + * string cluster_dns_domain = 3; + * @return The bytes for clusterDnsDomain. + */ + com.google.protobuf.ByteString + getClusterDnsDomainBytes(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindow.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindow.java new file mode 100644 index 000000000000..ba6881390c9e --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindow.java @@ -0,0 +1,777 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Time window specified for daily maintenance operations.
+ * 
+ * + * Protobuf type {@code google.container.v1.DailyMaintenanceWindow} + */ +public final class DailyMaintenanceWindow extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DailyMaintenanceWindow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DailyMaintenanceWindow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.DailyMaintenanceWindow.class, com.google.container.v1.DailyMaintenanceWindow.Builder.class); + } + + public static final int START_TIME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object startTime_ = ""; + /** + *
+   * Time within the maintenance window to start the maintenance operations.
+   * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
+   * 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.
+   * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
+   * 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; + @SuppressWarnings("serial") + private volatile java.lang.Object duration_ = ""; + /** + *
+   * [Output only] Duration of the time window, automatically chosen to be
+   * smallest possible in the given scenario.
+   * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
+   * format "PTnHnMnS".
+   * 
+ * + * 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.
+   * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
+   * format "PTnHnMnS".
+   * 
+ * + * 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startTime_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, startTime_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(duration_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, duration_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startTime_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, startTime_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(duration_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, duration_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.DailyMaintenanceWindow)) { + return super.equals(obj); + } + com.google.container.v1.DailyMaintenanceWindow other = (com.google.container.v1.DailyMaintenanceWindow) obj; + + if (!getStartTime() + .equals(other.getStartTime())) return false; + if (!getDuration() + .equals(other.getDuration())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.DailyMaintenanceWindow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.DailyMaintenanceWindow parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.DailyMaintenanceWindow parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.DailyMaintenanceWindow parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.DailyMaintenanceWindow parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.DailyMaintenanceWindow parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.DailyMaintenanceWindow parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.DailyMaintenanceWindow} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.DailyMaintenanceWindow) + com.google.container.v1.DailyMaintenanceWindowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DailyMaintenanceWindow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DailyMaintenanceWindow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.DailyMaintenanceWindow.class, com.google.container.v1.DailyMaintenanceWindow.Builder.class); + } + + // Construct using com.google.container.v1.DailyMaintenanceWindow.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + startTime_ = ""; + duration_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DailyMaintenanceWindow_descriptor; + } + + @java.lang.Override + public com.google.container.v1.DailyMaintenanceWindow getDefaultInstanceForType() { + return com.google.container.v1.DailyMaintenanceWindow.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.DailyMaintenanceWindow build() { + com.google.container.v1.DailyMaintenanceWindow result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.DailyMaintenanceWindow buildPartial() { + com.google.container.v1.DailyMaintenanceWindow result = new com.google.container.v1.DailyMaintenanceWindow(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.DailyMaintenanceWindow result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.startTime_ = startTime_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.duration_ = duration_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.DailyMaintenanceWindow) { + return mergeFrom((com.google.container.v1.DailyMaintenanceWindow)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.DailyMaintenanceWindow other) { + if (other == com.google.container.v1.DailyMaintenanceWindow.getDefaultInstance()) return this; + if (!other.getStartTime().isEmpty()) { + startTime_ = other.startTime_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDuration().isEmpty()) { + duration_ = other.duration_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: { + startTime_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 26: { + duration_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object startTime_ = ""; + /** + *
+     * Time within the maintenance window to start the maintenance operations.
+     * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
+     * 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.
+     * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
+     * 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.
+     * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
+     * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Time within the maintenance window to start the maintenance operations.
+     * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
+     * 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(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Time within the maintenance window to start the maintenance operations.
+     * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
+     * 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; + bitField0_ |= 0x00000001; + 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.
+     * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
+     * format "PTnHnMnS".
+     * 
+ * + * 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.
+     * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
+     * format "PTnHnMnS".
+     * 
+ * + * 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.
+     * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
+     * format "PTnHnMnS".
+     * 
+ * + * 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * [Output only] Duration of the time window, automatically chosen to be
+     * smallest possible in the given scenario.
+     * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
+     * format "PTnHnMnS".
+     * 
+ * + * string duration = 3; + * @return This builder for chaining. + */ + public Builder clearDuration() { + duration_ = getDefaultInstance().getDuration(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * [Output only] Duration of the time window, automatically chosen to be
+     * smallest possible in the given scenario.
+     * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
+     * format "PTnHnMnS".
+     * 
+ * + * 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.DailyMaintenanceWindow) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.DailyMaintenanceWindow) + private static final com.google.container.v1.DailyMaintenanceWindow DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.DailyMaintenanceWindow(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.DailyMaintenanceWindow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindowOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindowOrBuilder.java new file mode 100644 index 000000000000..332a2d04f8af --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindowOrBuilder.java @@ -0,0 +1,60 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface DailyMaintenanceWindowOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.DailyMaintenanceWindow) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Time within the maintenance window to start the maintenance operations.
+   * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
+   * 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.
+   * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
+   * 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.
+   * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
+   * format "PTnHnMnS".
+   * 
+ * + * 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.
+   * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
+   * format "PTnHnMnS".
+   * 
+ * + * string duration = 3; + * @return The bytes for duration. + */ + com.google.protobuf.ByteString + getDurationBytes(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatabaseEncryption.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatabaseEncryption.java new file mode 100644 index 000000000000..8dff85d0c4fd --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatabaseEncryption.java @@ -0,0 +1,854 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Configuration of etcd encryption.
+ * 
+ * + * Protobuf type {@code google.container.v1.DatabaseEncryption} + */ +public final class DatabaseEncryption extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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() { + keyName_ = ""; + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DatabaseEncryption(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DatabaseEncryption_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DatabaseEncryption_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.DatabaseEncryption.class, com.google.container.v1.DatabaseEncryption.Builder.class); + } + + /** + *
+   * State of etcd encryption.
+   * 
+ * + * Protobuf enum {@code google.container.v1.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< + State> 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.v1.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.v1.DatabaseEncryption.State) + } + + public static final int KEY_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + 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; + } + } + + public static final int STATE_FIELD_NUMBER = 2; + private int state_ = 0; + /** + *
+   * The desired state of etcd encryption.
+   * 
+ * + * .google.container.v1.DatabaseEncryption.State state = 2; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + *
+   * The desired state of etcd encryption.
+   * 
+ * + * .google.container.v1.DatabaseEncryption.State state = 2; + * @return The state. + */ + @java.lang.Override public com.google.container.v1.DatabaseEncryption.State getState() { + com.google.container.v1.DatabaseEncryption.State result = com.google.container.v1.DatabaseEncryption.State.forNumber(state_); + return result == null ? com.google.container.v1.DatabaseEncryption.State.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyName_); + } + if (state_ != com.google.container.v1.DatabaseEncryption.State.UNKNOWN.getNumber()) { + output.writeEnum(2, state_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, keyName_); + } + if (state_ != com.google.container.v1.DatabaseEncryption.State.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.DatabaseEncryption)) { + return super.equals(obj); + } + com.google.container.v1.DatabaseEncryption other = (com.google.container.v1.DatabaseEncryption) obj; + + if (!getKeyName() + .equals(other.getKeyName())) return false; + if (state_ != other.state_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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_NAME_FIELD_NUMBER; + hash = (53 * hash) + getKeyName().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.DatabaseEncryption parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.DatabaseEncryption parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.DatabaseEncryption parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.DatabaseEncryption parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.DatabaseEncryption parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.DatabaseEncryption parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.DatabaseEncryption parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.DatabaseEncryption} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.DatabaseEncryption) + com.google.container.v1.DatabaseEncryptionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DatabaseEncryption_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DatabaseEncryption_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.DatabaseEncryption.class, com.google.container.v1.DatabaseEncryption.Builder.class); + } + + // Construct using com.google.container.v1.DatabaseEncryption.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + keyName_ = ""; + state_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DatabaseEncryption_descriptor; + } + + @java.lang.Override + public com.google.container.v1.DatabaseEncryption getDefaultInstanceForType() { + return com.google.container.v1.DatabaseEncryption.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.DatabaseEncryption build() { + com.google.container.v1.DatabaseEncryption result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.DatabaseEncryption buildPartial() { + com.google.container.v1.DatabaseEncryption result = new com.google.container.v1.DatabaseEncryption(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.DatabaseEncryption result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.keyName_ = keyName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.state_ = state_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.DatabaseEncryption) { + return mergeFrom((com.google.container.v1.DatabaseEncryption)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.DatabaseEncryption other) { + if (other == com.google.container.v1.DatabaseEncryption.getDefaultInstance()) return this; + if (!other.getKeyName().isEmpty()) { + keyName_ = other.keyName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + keyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + state_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int state_ = 0; + /** + *
+     * The desired state of etcd encryption.
+     * 
+ * + * .google.container.v1.DatabaseEncryption.State state = 2; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + *
+     * The desired state of etcd encryption.
+     * 
+ * + * .google.container.v1.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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The desired state of etcd encryption.
+     * 
+ * + * .google.container.v1.DatabaseEncryption.State state = 2; + * @return The state. + */ + @java.lang.Override + public com.google.container.v1.DatabaseEncryption.State getState() { + com.google.container.v1.DatabaseEncryption.State result = com.google.container.v1.DatabaseEncryption.State.forNumber(state_); + return result == null ? com.google.container.v1.DatabaseEncryption.State.UNRECOGNIZED : result; + } + /** + *
+     * The desired state of etcd encryption.
+     * 
+ * + * .google.container.v1.DatabaseEncryption.State state = 2; + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.container.v1.DatabaseEncryption.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The desired state of etcd encryption.
+     * 
+ * + * .google.container.v1.DatabaseEncryption.State state = 2; + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000002); + state_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.DatabaseEncryption) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.DatabaseEncryption) + private static final com.google.container.v1.DatabaseEncryption DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.DatabaseEncryption(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.DatabaseEncryption getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatabaseEncryptionOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatabaseEncryptionOrBuilder.java new file mode 100644 index 000000000000..f060a7d01a87 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatabaseEncryptionOrBuilder.java @@ -0,0 +1,51 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface DatabaseEncryptionOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.DatabaseEncryption) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * 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(); + + /** + *
+   * The desired state of etcd encryption.
+   * 
+ * + * .google.container.v1.DatabaseEncryption.State state = 2; + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + *
+   * The desired state of etcd encryption.
+   * 
+ * + * .google.container.v1.DatabaseEncryption.State state = 2; + * @return The state. + */ + com.google.container.v1.DatabaseEncryption.State getState(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatapathProvider.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatapathProvider.java new file mode 100644 index 000000000000..0742d60677d0 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatapathProvider.java @@ -0,0 +1,158 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * The datapath provider selects the implementation of the Kubernetes networking
+ * model for service resolution and network policy enforcement.
+ * 
+ * + * Protobuf enum {@code google.container.v1.DatapathProvider} + */ +public enum DatapathProvider + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+   * Default value.
+   * 
+ * + * DATAPATH_PROVIDER_UNSPECIFIED = 0; + */ + DATAPATH_PROVIDER_UNSPECIFIED(0), + /** + *
+   * Use the IPTables implementation based on kube-proxy.
+   * 
+ * + * LEGACY_DATAPATH = 1; + */ + LEGACY_DATAPATH(1), + /** + *
+   * Use the eBPF based GKE Dataplane V2 with additional features. See the [GKE
+   * Dataplane V2
+   * documentation](https://cloud.google.com/kubernetes-engine/docs/how-to/dataplane-v2)
+   * for more.
+   * 
+ * + * ADVANCED_DATAPATH = 2; + */ + ADVANCED_DATAPATH(2), + UNRECOGNIZED(-1), + ; + + /** + *
+   * Default value.
+   * 
+ * + * DATAPATH_PROVIDER_UNSPECIFIED = 0; + */ + public static final int DATAPATH_PROVIDER_UNSPECIFIED_VALUE = 0; + /** + *
+   * Use the IPTables implementation based on kube-proxy.
+   * 
+ * + * LEGACY_DATAPATH = 1; + */ + public static final int LEGACY_DATAPATH_VALUE = 1; + /** + *
+   * Use the eBPF based GKE Dataplane V2 with additional features. See the [GKE
+   * Dataplane V2
+   * documentation](https://cloud.google.com/kubernetes-engine/docs/how-to/dataplane-v2)
+   * for more.
+   * 
+ * + * ADVANCED_DATAPATH = 2; + */ + public static final int ADVANCED_DATAPATH_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DatapathProvider valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DatapathProvider forNumber(int value) { + switch (value) { + case 0: return DATAPATH_PROVIDER_UNSPECIFIED; + case 1: return LEGACY_DATAPATH; + case 2: return ADVANCED_DATAPATH; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + DatapathProvider> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DatapathProvider findValueByNumber(int number) { + return DatapathProvider.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.getDescriptor().getEnumTypes().get(2); + } + + private static final DatapathProvider[] VALUES = values(); + + public static DatapathProvider valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DatapathProvider(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.DatapathProvider) +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DefaultSnatStatus.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DefaultSnatStatus.java new file mode 100644 index 000000000000..d594e3ff91ed --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DefaultSnatStatus.java @@ -0,0 +1,499 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * DefaultSnatStatus contains the desired state of whether default sNAT should
+ * be disabled on the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1.DefaultSnatStatus} + */ +public final class DefaultSnatStatus extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.DefaultSnatStatus) + DefaultSnatStatusOrBuilder { +private static final long serialVersionUID = 0L; + // Use DefaultSnatStatus.newBuilder() to construct. + private DefaultSnatStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DefaultSnatStatus() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DefaultSnatStatus(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DefaultSnatStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DefaultSnatStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.DefaultSnatStatus.class, com.google.container.v1.DefaultSnatStatus.Builder.class); + } + + public static final int DISABLED_FIELD_NUMBER = 1; + private boolean disabled_ = false; + /** + *
+   * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.DefaultSnatStatus)) { + return super.equals(obj); + } + com.google.container.v1.DefaultSnatStatus other = (com.google.container.v1.DefaultSnatStatus) obj; + + if (getDisabled() + != other.getDisabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.DefaultSnatStatus parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.DefaultSnatStatus parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.DefaultSnatStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.DefaultSnatStatus parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.DefaultSnatStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.DefaultSnatStatus parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.DefaultSnatStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.DefaultSnatStatus parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.DefaultSnatStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.DefaultSnatStatus parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.DefaultSnatStatus parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.DefaultSnatStatus parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.DefaultSnatStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * DefaultSnatStatus contains the desired state of whether default sNAT should
+   * be disabled on the cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1.DefaultSnatStatus} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.DefaultSnatStatus) + com.google.container.v1.DefaultSnatStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DefaultSnatStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DefaultSnatStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.DefaultSnatStatus.class, com.google.container.v1.DefaultSnatStatus.Builder.class); + } + + // Construct using com.google.container.v1.DefaultSnatStatus.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + disabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DefaultSnatStatus_descriptor; + } + + @java.lang.Override + public com.google.container.v1.DefaultSnatStatus getDefaultInstanceForType() { + return com.google.container.v1.DefaultSnatStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.DefaultSnatStatus build() { + com.google.container.v1.DefaultSnatStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.DefaultSnatStatus buildPartial() { + com.google.container.v1.DefaultSnatStatus result = new com.google.container.v1.DefaultSnatStatus(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.DefaultSnatStatus result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.disabled_ = disabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.DefaultSnatStatus) { + return mergeFrom((com.google.container.v1.DefaultSnatStatus)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.DefaultSnatStatus other) { + if (other == com.google.container.v1.DefaultSnatStatus.getDefaultInstance()) return this; + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + disabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Disables cluster default sNAT rules.
+     * 
+ * + * bool disabled = 1; + * @return This builder for chaining. + */ + public Builder clearDisabled() { + bitField0_ = (bitField0_ & ~0x00000001); + disabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.DefaultSnatStatus) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.DefaultSnatStatus) + private static final com.google.container.v1.DefaultSnatStatus DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.DefaultSnatStatus(); + } + + public static com.google.container.v1.DefaultSnatStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DefaultSnatStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.DefaultSnatStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DefaultSnatStatusOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DefaultSnatStatusOrBuilder.java new file mode 100644 index 000000000000..21a90c87b0b3 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DefaultSnatStatusOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface DefaultSnatStatusOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.DefaultSnatStatus) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Disables cluster default sNAT rules.
+   * 
+ * + * bool disabled = 1; + * @return The disabled. + */ + boolean getDisabled(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java new file mode 100644 index 000000000000..7e214b62c28b --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java @@ -0,0 +1,1161 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * DeleteClusterRequest deletes a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1.DeleteClusterRequest} + */ +public final class DeleteClusterRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DeleteClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DeleteClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.DeleteClusterRequest.class, com.google.container.v1.DeleteClusterRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3009 + * @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; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3009 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3015 + * @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; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3015 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object clusterId_ = ""; + /** + *
+   * Deprecated. The name of the cluster to delete.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3019 + * @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; + } + } + /** + *
+   * 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]; + * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3019 + * @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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.DeleteClusterRequest)) { + return super.equals(obj); + } + com.google.container.v1.DeleteClusterRequest other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.DeleteClusterRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.DeleteClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.DeleteClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.DeleteClusterRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.DeleteClusterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.DeleteClusterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.DeleteClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.DeleteClusterRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.DeleteClusterRequest) + com.google.container.v1.DeleteClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DeleteClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DeleteClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.DeleteClusterRequest.class, com.google.container.v1.DeleteClusterRequest.Builder.class); + } + + // Construct using com.google.container.v1.DeleteClusterRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DeleteClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1.DeleteClusterRequest getDefaultInstanceForType() { + return com.google.container.v1.DeleteClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.DeleteClusterRequest build() { + com.google.container.v1.DeleteClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.DeleteClusterRequest buildPartial() { + com.google.container.v1.DeleteClusterRequest result = new com.google.container.v1.DeleteClusterRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.DeleteClusterRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.DeleteClusterRequest) { + return mergeFrom((com.google.container.v1.DeleteClusterRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.DeleteClusterRequest other) { + if (other == com.google.container.v1.DeleteClusterRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3009 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3009 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3009 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3009 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3009 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3015 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3015 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3015 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3015 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3015 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to delete.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3019 + * @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; + } + } + /** + *
+     * 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]; + * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3019 + * @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; + } + } + /** + *
+     * 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]; + * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3019 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to delete.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3019 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to delete.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3019 + * @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; + bitField0_ |= 0x00000004; + 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; + bitField0_ |= 0x00000008; + 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(); + bitField0_ = (bitField0_ & ~0x00000008); + 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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.DeleteClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.DeleteClusterRequest) + private static final com.google.container.v1.DeleteClusterRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.DeleteClusterRequest(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.DeleteClusterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java new file mode 100644 index 000000000000..9861c12923b9 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java @@ -0,0 +1,116 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface DeleteClusterRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.DeleteClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3009 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3009 + * @return The bytes for projectId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3015 + * @return The zone. + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3015 + * @return The bytes for zone. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to delete.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3019 + * @return The clusterId. + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to delete.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3019 + * @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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java new file mode 100644 index 000000000000..26faf23efedc --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java @@ -0,0 +1,1353 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * DeleteNodePoolRequest deletes a node pool for a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1.DeleteNodePoolRequest} + */ +public final class DeleteNodePoolRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DeleteNodePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DeleteNodePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.DeleteNodePoolRequest.class, com.google.container.v1.DeleteNodePoolRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3211 + * @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; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3211 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3217 + * @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; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3217 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object clusterId_ = ""; + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3221 + * @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; + } + } + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3221 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object nodePoolId_ = ""; + /** + *
+   * Deprecated. The name of the node pool to delete.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3225 + * @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; + } + } + /** + *
+   * 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]; + * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3225 + * @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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.DeleteNodePoolRequest)) { + return super.equals(obj); + } + com.google.container.v1.DeleteNodePoolRequest other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.DeleteNodePoolRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.DeleteNodePoolRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.DeleteNodePoolRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.DeleteNodePoolRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.DeleteNodePoolRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.DeleteNodePoolRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.DeleteNodePoolRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.DeleteNodePoolRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.DeleteNodePoolRequest) + com.google.container.v1.DeleteNodePoolRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DeleteNodePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DeleteNodePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.DeleteNodePoolRequest.class, com.google.container.v1.DeleteNodePoolRequest.Builder.class); + } + + // Construct using com.google.container.v1.DeleteNodePoolRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePoolId_ = ""; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DeleteNodePoolRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1.DeleteNodePoolRequest getDefaultInstanceForType() { + return com.google.container.v1.DeleteNodePoolRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.DeleteNodePoolRequest build() { + com.google.container.v1.DeleteNodePoolRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.DeleteNodePoolRequest buildPartial() { + com.google.container.v1.DeleteNodePoolRequest result = new com.google.container.v1.DeleteNodePoolRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.DeleteNodePoolRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.nodePoolId_ = nodePoolId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.DeleteNodePoolRequest) { + return mergeFrom((com.google.container.v1.DeleteNodePoolRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.DeleteNodePoolRequest other) { + if (other == com.google.container.v1.DeleteNodePoolRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + nodePoolId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 50: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3211 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3211 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3211 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3211 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3211 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3217 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3217 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3217 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3217 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3217 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3221 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3221 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3221 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3221 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3221 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + *
+     * Deprecated. The name of the node pool to delete.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3225 + * @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; + } + } + /** + *
+     * 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]; + * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3225 + * @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; + } + } + /** + *
+     * 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]; + * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3225 + * @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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool to delete.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3225 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearNodePoolId() { + nodePoolId_ = getDefaultInstance().getNodePoolId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool to delete.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3225 + * @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; + bitField0_ |= 0x00000008; + 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; + bitField0_ |= 0x00000010; + 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(); + bitField0_ = (bitField0_ & ~0x00000010); + 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; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.DeleteNodePoolRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.DeleteNodePoolRequest) + private static final com.google.container.v1.DeleteNodePoolRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.DeleteNodePoolRequest(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.DeleteNodePoolRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java new file mode 100644 index 000000000000..83648bc62853 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java @@ -0,0 +1,144 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface DeleteNodePoolRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.DeleteNodePoolRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3211 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3211 + * @return The bytes for projectId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3217 + * @return The zone. + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3217 + * @return The bytes for zone. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3221 + * @return The clusterId. + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3221 + * @return The bytes for clusterId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * Deprecated. The name of the node pool to delete.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3225 + * @return The nodePoolId. + */ + @java.lang.Deprecated java.lang.String getNodePoolId(); + /** + *
+   * Deprecated. The name of the node pool to delete.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3225 + * @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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DnsCacheConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DnsCacheConfig.java new file mode 100644 index 000000000000..7fd45d99cb04 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DnsCacheConfig.java @@ -0,0 +1,497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Configuration for NodeLocal DNSCache
+ * 
+ * + * Protobuf type {@code google.container.v1.DnsCacheConfig} + */ +public final class DnsCacheConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.DnsCacheConfig) + DnsCacheConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use DnsCacheConfig.newBuilder() to construct. + private DnsCacheConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DnsCacheConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DnsCacheConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DnsCacheConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DnsCacheConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.DnsCacheConfig.class, com.google.container.v1.DnsCacheConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.DnsCacheConfig)) { + return super.equals(obj); + } + com.google.container.v1.DnsCacheConfig other = (com.google.container.v1.DnsCacheConfig) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.DnsCacheConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.DnsCacheConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.DnsCacheConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.DnsCacheConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.DnsCacheConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.DnsCacheConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.DnsCacheConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.DnsCacheConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.DnsCacheConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.DnsCacheConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.DnsCacheConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.DnsCacheConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.DnsCacheConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration for NodeLocal DNSCache
+   * 
+ * + * Protobuf type {@code google.container.v1.DnsCacheConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.DnsCacheConfig) + com.google.container.v1.DnsCacheConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DnsCacheConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DnsCacheConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.DnsCacheConfig.class, com.google.container.v1.DnsCacheConfig.Builder.class); + } + + // Construct using com.google.container.v1.DnsCacheConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_DnsCacheConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.DnsCacheConfig getDefaultInstanceForType() { + return com.google.container.v1.DnsCacheConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.DnsCacheConfig build() { + com.google.container.v1.DnsCacheConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.DnsCacheConfig buildPartial() { + com.google.container.v1.DnsCacheConfig result = new com.google.container.v1.DnsCacheConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.DnsCacheConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.DnsCacheConfig) { + return mergeFrom((com.google.container.v1.DnsCacheConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.DnsCacheConfig other) { + if (other == com.google.container.v1.DnsCacheConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether NodeLocal DNSCache is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.DnsCacheConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.DnsCacheConfig) + private static final com.google.container.v1.DnsCacheConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.DnsCacheConfig(); + } + + public static com.google.container.v1.DnsCacheConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DnsCacheConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.DnsCacheConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DnsCacheConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DnsCacheConfigOrBuilder.java new file mode 100644 index 000000000000..c6601fdbb2a4 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DnsCacheConfigOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface DnsCacheConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.DnsCacheConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether NodeLocal DNSCache is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EnterpriseConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EnterpriseConfig.java new file mode 100644 index 000000000000..b291db92e00d --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EnterpriseConfig.java @@ -0,0 +1,688 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * EnterpriseConfig is the cluster enterprise configuration.
+ * 
+ * + * Protobuf type {@code google.container.v1.EnterpriseConfig} + */ +public final class EnterpriseConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.EnterpriseConfig) + EnterpriseConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use EnterpriseConfig.newBuilder() to construct. + private EnterpriseConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EnterpriseConfig() { + clusterTier_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new EnterpriseConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_EnterpriseConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_EnterpriseConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.EnterpriseConfig.class, com.google.container.v1.EnterpriseConfig.Builder.class); + } + + /** + *
+   * Premium tiers for GKE Cluster.
+   * 
+ * + * Protobuf enum {@code google.container.v1.EnterpriseConfig.ClusterTier} + */ + public enum ClusterTier + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * CLUSTER_TIER_UNSPECIFIED is when cluster_tier is not set.
+     * 
+ * + * CLUSTER_TIER_UNSPECIFIED = 0; + */ + CLUSTER_TIER_UNSPECIFIED(0), + /** + *
+     * STANDARD indicates a standard GKE cluster.
+     * 
+ * + * STANDARD = 1; + */ + STANDARD(1), + /** + *
+     * ENTERPRISE indicates a GKE Enterprise cluster.
+     * 
+ * + * ENTERPRISE = 2; + */ + ENTERPRISE(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * CLUSTER_TIER_UNSPECIFIED is when cluster_tier is not set.
+     * 
+ * + * CLUSTER_TIER_UNSPECIFIED = 0; + */ + public static final int CLUSTER_TIER_UNSPECIFIED_VALUE = 0; + /** + *
+     * STANDARD indicates a standard GKE cluster.
+     * 
+ * + * STANDARD = 1; + */ + public static final int STANDARD_VALUE = 1; + /** + *
+     * ENTERPRISE indicates a GKE Enterprise cluster.
+     * 
+ * + * ENTERPRISE = 2; + */ + public static final int ENTERPRISE_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 ClusterTier 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 ClusterTier forNumber(int value) { + switch (value) { + case 0: return CLUSTER_TIER_UNSPECIFIED; + case 1: return STANDARD; + case 2: return ENTERPRISE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ClusterTier> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ClusterTier findValueByNumber(int number) { + return ClusterTier.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.EnterpriseConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final ClusterTier[] VALUES = values(); + + public static ClusterTier 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 ClusterTier(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.EnterpriseConfig.ClusterTier) + } + + public static final int CLUSTER_TIER_FIELD_NUMBER = 1; + private int clusterTier_ = 0; + /** + *
+   * Output only. [Output only] cluster_tier specifies the premium tier of the
+   * cluster.
+   * 
+ * + * .google.container.v1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The enum numeric value on the wire for clusterTier. + */ + @java.lang.Override public int getClusterTierValue() { + return clusterTier_; + } + /** + *
+   * Output only. [Output only] cluster_tier specifies the premium tier of the
+   * cluster.
+   * 
+ * + * .google.container.v1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The clusterTier. + */ + @java.lang.Override public com.google.container.v1.EnterpriseConfig.ClusterTier getClusterTier() { + com.google.container.v1.EnterpriseConfig.ClusterTier result = com.google.container.v1.EnterpriseConfig.ClusterTier.forNumber(clusterTier_); + return result == null ? com.google.container.v1.EnterpriseConfig.ClusterTier.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 (clusterTier_ != com.google.container.v1.EnterpriseConfig.ClusterTier.CLUSTER_TIER_UNSPECIFIED.getNumber()) { + output.writeEnum(1, clusterTier_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (clusterTier_ != com.google.container.v1.EnterpriseConfig.ClusterTier.CLUSTER_TIER_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, clusterTier_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.EnterpriseConfig)) { + return super.equals(obj); + } + com.google.container.v1.EnterpriseConfig other = (com.google.container.v1.EnterpriseConfig) obj; + + if (clusterTier_ != other.clusterTier_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CLUSTER_TIER_FIELD_NUMBER; + hash = (53 * hash) + clusterTier_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.EnterpriseConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.EnterpriseConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.EnterpriseConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.EnterpriseConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.EnterpriseConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.EnterpriseConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.EnterpriseConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.EnterpriseConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.EnterpriseConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.EnterpriseConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.EnterpriseConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.EnterpriseConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.EnterpriseConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * EnterpriseConfig is the cluster enterprise configuration.
+   * 
+ * + * Protobuf type {@code google.container.v1.EnterpriseConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.EnterpriseConfig) + com.google.container.v1.EnterpriseConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_EnterpriseConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_EnterpriseConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.EnterpriseConfig.class, com.google.container.v1.EnterpriseConfig.Builder.class); + } + + // Construct using com.google.container.v1.EnterpriseConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + clusterTier_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_EnterpriseConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.EnterpriseConfig getDefaultInstanceForType() { + return com.google.container.v1.EnterpriseConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.EnterpriseConfig build() { + com.google.container.v1.EnterpriseConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.EnterpriseConfig buildPartial() { + com.google.container.v1.EnterpriseConfig result = new com.google.container.v1.EnterpriseConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.EnterpriseConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.clusterTier_ = clusterTier_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.EnterpriseConfig) { + return mergeFrom((com.google.container.v1.EnterpriseConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.EnterpriseConfig other) { + if (other == com.google.container.v1.EnterpriseConfig.getDefaultInstance()) return this; + if (other.clusterTier_ != 0) { + setClusterTierValue(other.getClusterTierValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + clusterTier_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int clusterTier_ = 0; + /** + *
+     * Output only. [Output only] cluster_tier specifies the premium tier of the
+     * cluster.
+     * 
+ * + * .google.container.v1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The enum numeric value on the wire for clusterTier. + */ + @java.lang.Override public int getClusterTierValue() { + return clusterTier_; + } + /** + *
+     * Output only. [Output only] cluster_tier specifies the premium tier of the
+     * cluster.
+     * 
+ * + * .google.container.v1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The enum numeric value on the wire for clusterTier to set. + * @return This builder for chaining. + */ + public Builder setClusterTierValue(int value) { + clusterTier_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Output only. [Output only] cluster_tier specifies the premium tier of the
+     * cluster.
+     * 
+ * + * .google.container.v1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The clusterTier. + */ + @java.lang.Override + public com.google.container.v1.EnterpriseConfig.ClusterTier getClusterTier() { + com.google.container.v1.EnterpriseConfig.ClusterTier result = com.google.container.v1.EnterpriseConfig.ClusterTier.forNumber(clusterTier_); + return result == null ? com.google.container.v1.EnterpriseConfig.ClusterTier.UNRECOGNIZED : result; + } + /** + *
+     * Output only. [Output only] cluster_tier specifies the premium tier of the
+     * cluster.
+     * 
+ * + * .google.container.v1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The clusterTier to set. + * @return This builder for chaining. + */ + public Builder setClusterTier(com.google.container.v1.EnterpriseConfig.ClusterTier value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + clusterTier_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Output only. [Output only] cluster_tier specifies the premium tier of the
+     * cluster.
+     * 
+ * + * .google.container.v1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearClusterTier() { + bitField0_ = (bitField0_ & ~0x00000001); + clusterTier_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.EnterpriseConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.EnterpriseConfig) + private static final com.google.container.v1.EnterpriseConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.EnterpriseConfig(); + } + + public static com.google.container.v1.EnterpriseConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EnterpriseConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.EnterpriseConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EnterpriseConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EnterpriseConfigOrBuilder.java new file mode 100644 index 000000000000..51fe3bf122e1 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EnterpriseConfigOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface EnterpriseConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.EnterpriseConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Output only. [Output only] cluster_tier specifies the premium tier of the
+   * cluster.
+   * 
+ * + * .google.container.v1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The enum numeric value on the wire for clusterTier. + */ + int getClusterTierValue(); + /** + *
+   * Output only. [Output only] cluster_tier specifies the premium tier of the
+   * cluster.
+   * 
+ * + * .google.container.v1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The clusterTier. + */ + com.google.container.v1.EnterpriseConfig.ClusterTier getClusterTier(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EphemeralStorageLocalSsdConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EphemeralStorageLocalSsdConfig.java new file mode 100644 index 000000000000..1a6db3cf4cbd --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EphemeralStorageLocalSsdConfig.java @@ -0,0 +1,566 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * EphemeralStorageLocalSsdConfig contains configuration for the node ephemeral
+ * storage using Local SSDs.
+ * 
+ * + * Protobuf type {@code google.container.v1.EphemeralStorageLocalSsdConfig} + */ +public final class EphemeralStorageLocalSsdConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.EphemeralStorageLocalSsdConfig) + EphemeralStorageLocalSsdConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use EphemeralStorageLocalSsdConfig.newBuilder() to construct. + private EphemeralStorageLocalSsdConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EphemeralStorageLocalSsdConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new EphemeralStorageLocalSsdConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_EphemeralStorageLocalSsdConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_EphemeralStorageLocalSsdConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.EphemeralStorageLocalSsdConfig.class, com.google.container.v1.EphemeralStorageLocalSsdConfig.Builder.class); + } + + public static final int LOCAL_SSD_COUNT_FIELD_NUMBER = 1; + private int localSsdCount_ = 0; + /** + *
+   * Number of local SSDs to use to back ephemeral storage. Uses NVMe
+   * interfaces.
+   *
+   * A zero (or unset) value has different meanings depending on machine type
+   * being used:
+   * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
+   * zero (or unset) means to disable using local SSDs as ephemeral storage. The
+   * limit for this value is dependent upon the maximum number of disk
+   * available on a machine per zone. See:
+   * https://cloud.google.com/compute/docs/disks/local-ssd
+   * for more information.
+   * 2. For Gen3 machines which dictate a specific number of local ssds, zero
+   * (or unset) means to use the default number of local ssds that goes with
+   * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
+   * ssds would be provisioned. For c3-standard-8 (which doesn't support local
+   * ssds), 0 will be provisioned. See
+   * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
+   * for more info.
+   * 
+ * + * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.EphemeralStorageLocalSsdConfig)) { + return super.equals(obj); + } + com.google.container.v1.EphemeralStorageLocalSsdConfig other = (com.google.container.v1.EphemeralStorageLocalSsdConfig) obj; + + if (getLocalSsdCount() + != other.getLocalSsdCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.EphemeralStorageLocalSsdConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.EphemeralStorageLocalSsdConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.EphemeralStorageLocalSsdConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.EphemeralStorageLocalSsdConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.EphemeralStorageLocalSsdConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.EphemeralStorageLocalSsdConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.EphemeralStorageLocalSsdConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.EphemeralStorageLocalSsdConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.EphemeralStorageLocalSsdConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.EphemeralStorageLocalSsdConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.EphemeralStorageLocalSsdConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.EphemeralStorageLocalSsdConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.EphemeralStorageLocalSsdConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * EphemeralStorageLocalSsdConfig contains configuration for the node ephemeral
+   * storage using Local SSDs.
+   * 
+ * + * Protobuf type {@code google.container.v1.EphemeralStorageLocalSsdConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.EphemeralStorageLocalSsdConfig) + com.google.container.v1.EphemeralStorageLocalSsdConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_EphemeralStorageLocalSsdConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_EphemeralStorageLocalSsdConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.EphemeralStorageLocalSsdConfig.class, com.google.container.v1.EphemeralStorageLocalSsdConfig.Builder.class); + } + + // Construct using com.google.container.v1.EphemeralStorageLocalSsdConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + localSsdCount_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_EphemeralStorageLocalSsdConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.EphemeralStorageLocalSsdConfig getDefaultInstanceForType() { + return com.google.container.v1.EphemeralStorageLocalSsdConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.EphemeralStorageLocalSsdConfig build() { + com.google.container.v1.EphemeralStorageLocalSsdConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.EphemeralStorageLocalSsdConfig buildPartial() { + com.google.container.v1.EphemeralStorageLocalSsdConfig result = new com.google.container.v1.EphemeralStorageLocalSsdConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.EphemeralStorageLocalSsdConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.localSsdCount_ = localSsdCount_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.EphemeralStorageLocalSsdConfig) { + return mergeFrom((com.google.container.v1.EphemeralStorageLocalSsdConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.EphemeralStorageLocalSsdConfig other) { + if (other == com.google.container.v1.EphemeralStorageLocalSsdConfig.getDefaultInstance()) return this; + if (other.getLocalSsdCount() != 0) { + setLocalSsdCount(other.getLocalSsdCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + localSsdCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int localSsdCount_ ; + /** + *
+     * Number of local SSDs to use to back ephemeral storage. Uses NVMe
+     * interfaces.
+     *
+     * A zero (or unset) value has different meanings depending on machine type
+     * being used:
+     * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
+     * zero (or unset) means to disable using local SSDs as ephemeral storage. The
+     * limit for this value is dependent upon the maximum number of disk
+     * available on a machine per zone. See:
+     * https://cloud.google.com/compute/docs/disks/local-ssd
+     * for more information.
+     * 2. For Gen3 machines which dictate a specific number of local ssds, zero
+     * (or unset) means to use the default number of local ssds that goes with
+     * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
+     * ssds would be provisioned. For c3-standard-8 (which doesn't support local
+     * ssds), 0 will be provisioned. See
+     * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
+     * for more info.
+     * 
+ * + * 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.
+     *
+     * A zero (or unset) value has different meanings depending on machine type
+     * being used:
+     * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
+     * zero (or unset) means to disable using local SSDs as ephemeral storage. The
+     * limit for this value is dependent upon the maximum number of disk
+     * available on a machine per zone. See:
+     * https://cloud.google.com/compute/docs/disks/local-ssd
+     * for more information.
+     * 2. For Gen3 machines which dictate a specific number of local ssds, zero
+     * (or unset) means to use the default number of local ssds that goes with
+     * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
+     * ssds would be provisioned. For c3-standard-8 (which doesn't support local
+     * ssds), 0 will be provisioned. See
+     * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
+     * for more info.
+     * 
+ * + * int32 local_ssd_count = 1; + * @param value The localSsdCount to set. + * @return This builder for chaining. + */ + public Builder setLocalSsdCount(int value) { + + localSsdCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Number of local SSDs to use to back ephemeral storage. Uses NVMe
+     * interfaces.
+     *
+     * A zero (or unset) value has different meanings depending on machine type
+     * being used:
+     * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
+     * zero (or unset) means to disable using local SSDs as ephemeral storage. The
+     * limit for this value is dependent upon the maximum number of disk
+     * available on a machine per zone. See:
+     * https://cloud.google.com/compute/docs/disks/local-ssd
+     * for more information.
+     * 2. For Gen3 machines which dictate a specific number of local ssds, zero
+     * (or unset) means to use the default number of local ssds that goes with
+     * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
+     * ssds would be provisioned. For c3-standard-8 (which doesn't support local
+     * ssds), 0 will be provisioned. See
+     * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
+     * for more info.
+     * 
+ * + * int32 local_ssd_count = 1; + * @return This builder for chaining. + */ + public Builder clearLocalSsdCount() { + bitField0_ = (bitField0_ & ~0x00000001); + 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.v1.EphemeralStorageLocalSsdConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.EphemeralStorageLocalSsdConfig) + private static final com.google.container.v1.EphemeralStorageLocalSsdConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.EphemeralStorageLocalSsdConfig(); + } + + public static com.google.container.v1.EphemeralStorageLocalSsdConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EphemeralStorageLocalSsdConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.EphemeralStorageLocalSsdConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EphemeralStorageLocalSsdConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EphemeralStorageLocalSsdConfigOrBuilder.java new file mode 100644 index 000000000000..707c4f532017 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/EphemeralStorageLocalSsdConfigOrBuilder.java @@ -0,0 +1,37 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface EphemeralStorageLocalSsdConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.EphemeralStorageLocalSsdConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Number of local SSDs to use to back ephemeral storage. Uses NVMe
+   * interfaces.
+   *
+   * A zero (or unset) value has different meanings depending on machine type
+   * being used:
+   * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
+   * zero (or unset) means to disable using local SSDs as ephemeral storage. The
+   * limit for this value is dependent upon the maximum number of disk
+   * available on a machine per zone. See:
+   * https://cloud.google.com/compute/docs/disks/local-ssd
+   * for more information.
+   * 2. For Gen3 machines which dictate a specific number of local ssds, zero
+   * (or unset) means to use the default number of local ssds that goes with
+   * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
+   * ssds would be provisioned. For c3-standard-8 (which doesn't support local
+   * ssds), 0 will be provisioned. See
+   * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
+   * for more info.
+   * 
+ * + * int32 local_ssd_count = 1; + * @return The localSsdCount. + */ + int getLocalSsdCount(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/FastSocket.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/FastSocket.java new file mode 100644 index 000000000000..409f6e6d5c6e --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/FastSocket.java @@ -0,0 +1,497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Configuration of Fast Socket feature.
+ * 
+ * + * Protobuf type {@code google.container.v1.FastSocket} + */ +public final class FastSocket extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.FastSocket) + FastSocketOrBuilder { +private static final long serialVersionUID = 0L; + // Use FastSocket.newBuilder() to construct. + private FastSocket(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FastSocket() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FastSocket(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_FastSocket_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_FastSocket_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.FastSocket.class, com.google.container.v1.FastSocket.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * Whether Fast Socket features are enabled in the node pool.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.FastSocket)) { + return super.equals(obj); + } + com.google.container.v1.FastSocket other = (com.google.container.v1.FastSocket) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.FastSocket parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.FastSocket parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.FastSocket parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.FastSocket parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.FastSocket parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.FastSocket parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.FastSocket parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.FastSocket parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.FastSocket parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.FastSocket parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.FastSocket parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.FastSocket parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.FastSocket prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new 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 Fast Socket feature.
+   * 
+ * + * Protobuf type {@code google.container.v1.FastSocket} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.FastSocket) + com.google.container.v1.FastSocketOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_FastSocket_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_FastSocket_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.FastSocket.class, com.google.container.v1.FastSocket.Builder.class); + } + + // Construct using com.google.container.v1.FastSocket.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_FastSocket_descriptor; + } + + @java.lang.Override + public com.google.container.v1.FastSocket getDefaultInstanceForType() { + return com.google.container.v1.FastSocket.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.FastSocket build() { + com.google.container.v1.FastSocket result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.FastSocket buildPartial() { + com.google.container.v1.FastSocket result = new com.google.container.v1.FastSocket(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.FastSocket result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.FastSocket) { + return mergeFrom((com.google.container.v1.FastSocket)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.FastSocket other) { + if (other == com.google.container.v1.FastSocket.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enabled_ ; + /** + *
+     * Whether Fast Socket features are enabled in the node pool.
+     * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Whether Fast Socket features are enabled in the node pool.
+     * 
+ * + * bool enabled = 1; + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether Fast Socket features are enabled in the node pool.
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.FastSocket) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.FastSocket) + private static final com.google.container.v1.FastSocket DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.FastSocket(); + } + + public static com.google.container.v1.FastSocket getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FastSocket parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.FastSocket getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/FastSocketOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/FastSocketOrBuilder.java new file mode 100644 index 000000000000..a2c78d5da04b --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/FastSocketOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface FastSocketOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.FastSocket) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether Fast Socket features are enabled in the node pool.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Fleet.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Fleet.java new file mode 100644 index 000000000000..ca1dea19b1e6 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Fleet.java @@ -0,0 +1,857 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Fleet is the fleet configuration for the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1.Fleet} + */ +public final class Fleet extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.Fleet) + FleetOrBuilder { +private static final long serialVersionUID = 0L; + // Use Fleet.newBuilder() to construct. + private Fleet(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Fleet() { + project_ = ""; + membership_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Fleet(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_Fleet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_Fleet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.Fleet.class, com.google.container.v1.Fleet.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + /** + *
+   * The Fleet host project(project ID or project number) where this cluster
+   * will be registered to. This field cannot be changed after the cluster has
+   * been registered.
+   * 
+ * + * string project = 1; + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } + } + /** + *
+   * The Fleet host project(project ID or project number) where this cluster
+   * will be registered to. This field cannot be changed after the cluster has
+   * been registered.
+   * 
+ * + * string project = 1; + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MEMBERSHIP_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object membership_ = ""; + /** + *
+   * [Output only] The full resource name of the registered fleet membership of
+   * the cluster, in the format
+   * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
+   * 
+ * + * string membership = 2; + * @return The membership. + */ + @java.lang.Override + public java.lang.String getMembership() { + java.lang.Object ref = membership_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + membership_ = s; + return s; + } + } + /** + *
+   * [Output only] The full resource name of the registered fleet membership of
+   * the cluster, in the format
+   * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
+   * 
+ * + * string membership = 2; + * @return The bytes for membership. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMembershipBytes() { + java.lang.Object ref = membership_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + membership_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRE_REGISTERED_FIELD_NUMBER = 3; + private boolean preRegistered_ = false; + /** + *
+   * [Output only] Whether the cluster has been registered through the fleet
+   * API.
+   * 
+ * + * bool pre_registered = 3; + * @return The preRegistered. + */ + @java.lang.Override + public boolean getPreRegistered() { + return preRegistered_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(membership_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, membership_); + } + if (preRegistered_ != false) { + output.writeBool(3, preRegistered_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(membership_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, membership_); + } + if (preRegistered_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, preRegistered_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.Fleet)) { + return super.equals(obj); + } + com.google.container.v1.Fleet other = (com.google.container.v1.Fleet) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (!getMembership() + .equals(other.getMembership())) return false; + if (getPreRegistered() + != other.getPreRegistered()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + MEMBERSHIP_FIELD_NUMBER; + hash = (53 * hash) + getMembership().hashCode(); + hash = (37 * hash) + PRE_REGISTERED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPreRegistered()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.Fleet parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.Fleet parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.Fleet parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.Fleet parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.Fleet parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.Fleet parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.Fleet parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.Fleet parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.Fleet parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.Fleet parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.Fleet parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.Fleet parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.Fleet prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Fleet is the fleet configuration for the cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1.Fleet} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.Fleet) + com.google.container.v1.FleetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_Fleet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_Fleet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.Fleet.class, com.google.container.v1.Fleet.Builder.class); + } + + // Construct using com.google.container.v1.Fleet.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + project_ = ""; + membership_ = ""; + preRegistered_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_Fleet_descriptor; + } + + @java.lang.Override + public com.google.container.v1.Fleet getDefaultInstanceForType() { + return com.google.container.v1.Fleet.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.Fleet build() { + com.google.container.v1.Fleet result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.Fleet buildPartial() { + com.google.container.v1.Fleet result = new com.google.container.v1.Fleet(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.Fleet result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.membership_ = membership_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.preRegistered_ = preRegistered_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.Fleet) { + return mergeFrom((com.google.container.v1.Fleet)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.Fleet other) { + if (other == com.google.container.v1.Fleet.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getMembership().isEmpty()) { + membership_ = other.membership_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPreRegistered() != false) { + setPreRegistered(other.getPreRegistered()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + membership_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + preRegistered_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object project_ = ""; + /** + *
+     * The Fleet host project(project ID or project number) where this cluster
+     * will be registered to. This field cannot be changed after the cluster has
+     * been registered.
+     * 
+ * + * string project = 1; + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The Fleet host project(project ID or project number) where this cluster
+     * will be registered to. This field cannot be changed after the cluster has
+     * been registered.
+     * 
+ * + * string project = 1; + * @return The bytes for project. + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The Fleet host project(project ID or project number) where this cluster
+     * will be registered to. This field cannot be changed after the cluster has
+     * been registered.
+     * 
+ * + * string project = 1; + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The Fleet host project(project ID or project number) where this cluster
+     * will be registered to. This field cannot be changed after the cluster has
+     * been registered.
+     * 
+ * + * string project = 1; + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * The Fleet host project(project ID or project number) where this cluster
+     * will be registered to. This field cannot be changed after the cluster has
+     * been registered.
+     * 
+ * + * string project = 1; + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object membership_ = ""; + /** + *
+     * [Output only] The full resource name of the registered fleet membership of
+     * the cluster, in the format
+     * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
+     * 
+ * + * string membership = 2; + * @return The membership. + */ + public java.lang.String getMembership() { + java.lang.Object ref = membership_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + membership_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] The full resource name of the registered fleet membership of
+     * the cluster, in the format
+     * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
+     * 
+ * + * string membership = 2; + * @return The bytes for membership. + */ + public com.google.protobuf.ByteString + getMembershipBytes() { + java.lang.Object ref = membership_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + membership_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] The full resource name of the registered fleet membership of
+     * the cluster, in the format
+     * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
+     * 
+ * + * string membership = 2; + * @param value The membership to set. + * @return This builder for chaining. + */ + public Builder setMembership( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + membership_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * [Output only] The full resource name of the registered fleet membership of
+     * the cluster, in the format
+     * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
+     * 
+ * + * string membership = 2; + * @return This builder for chaining. + */ + public Builder clearMembership() { + membership_ = getDefaultInstance().getMembership(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * [Output only] The full resource name of the registered fleet membership of
+     * the cluster, in the format
+     * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
+     * 
+ * + * string membership = 2; + * @param value The bytes for membership to set. + * @return This builder for chaining. + */ + public Builder setMembershipBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + membership_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean preRegistered_ ; + /** + *
+     * [Output only] Whether the cluster has been registered through the fleet
+     * API.
+     * 
+ * + * bool pre_registered = 3; + * @return The preRegistered. + */ + @java.lang.Override + public boolean getPreRegistered() { + return preRegistered_; + } + /** + *
+     * [Output only] Whether the cluster has been registered through the fleet
+     * API.
+     * 
+ * + * bool pre_registered = 3; + * @param value The preRegistered to set. + * @return This builder for chaining. + */ + public Builder setPreRegistered(boolean value) { + + preRegistered_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * [Output only] Whether the cluster has been registered through the fleet
+     * API.
+     * 
+ * + * bool pre_registered = 3; + * @return This builder for chaining. + */ + public Builder clearPreRegistered() { + bitField0_ = (bitField0_ & ~0x00000004); + preRegistered_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.Fleet) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.Fleet) + private static final com.google.container.v1.Fleet DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.Fleet(); + } + + public static com.google.container.v1.Fleet getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Fleet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.Fleet getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/FleetOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/FleetOrBuilder.java new file mode 100644 index 000000000000..06480c5fa1c2 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/FleetOrBuilder.java @@ -0,0 +1,69 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface FleetOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.Fleet) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The Fleet host project(project ID or project number) where this cluster
+   * will be registered to. This field cannot be changed after the cluster has
+   * been registered.
+   * 
+ * + * string project = 1; + * @return The project. + */ + java.lang.String getProject(); + /** + *
+   * The Fleet host project(project ID or project number) where this cluster
+   * will be registered to. This field cannot be changed after the cluster has
+   * been registered.
+   * 
+ * + * string project = 1; + * @return The bytes for project. + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+   * [Output only] The full resource name of the registered fleet membership of
+   * the cluster, in the format
+   * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
+   * 
+ * + * string membership = 2; + * @return The membership. + */ + java.lang.String getMembership(); + /** + *
+   * [Output only] The full resource name of the registered fleet membership of
+   * the cluster, in the format
+   * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
+   * 
+ * + * string membership = 2; + * @return The bytes for membership. + */ + com.google.protobuf.ByteString + getMembershipBytes(); + + /** + *
+   * [Output only] Whether the cluster has been registered through the fleet
+   * API.
+   * 
+ * + * bool pre_registered = 3; + * @return The preRegistered. + */ + boolean getPreRegistered(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GPUDriverInstallationConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GPUDriverInstallationConfig.java new file mode 100644 index 000000000000..98a94e46d684 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GPUDriverInstallationConfig.java @@ -0,0 +1,731 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * GPUDriverInstallationConfig specifies the version of GPU driver to be auto
+ * installed.
+ * 
+ * + * Protobuf type {@code google.container.v1.GPUDriverInstallationConfig} + */ +public final class GPUDriverInstallationConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.GPUDriverInstallationConfig) + GPUDriverInstallationConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use GPUDriverInstallationConfig.newBuilder() to construct. + private GPUDriverInstallationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GPUDriverInstallationConfig() { + gpuDriverVersion_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GPUDriverInstallationConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GPUDriverInstallationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GPUDriverInstallationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GPUDriverInstallationConfig.class, com.google.container.v1.GPUDriverInstallationConfig.Builder.class); + } + + /** + *
+   * The GPU driver version to install.
+   * 
+ * + * Protobuf enum {@code google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion} + */ + public enum GPUDriverVersion + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Default value is to not install any GPU driver.
+     * 
+ * + * GPU_DRIVER_VERSION_UNSPECIFIED = 0; + */ + GPU_DRIVER_VERSION_UNSPECIFIED(0), + /** + *
+     * Disable GPU driver auto installation and needs manual installation
+     * 
+ * + * INSTALLATION_DISABLED = 1; + */ + INSTALLATION_DISABLED(1), + /** + *
+     * "Default" GPU driver in COS and Ubuntu.
+     * 
+ * + * DEFAULT = 2; + */ + DEFAULT(2), + /** + *
+     * "Latest" GPU driver in COS.
+     * 
+ * + * LATEST = 3; + */ + LATEST(3), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Default value is to not install any GPU driver.
+     * 
+ * + * GPU_DRIVER_VERSION_UNSPECIFIED = 0; + */ + public static final int GPU_DRIVER_VERSION_UNSPECIFIED_VALUE = 0; + /** + *
+     * Disable GPU driver auto installation and needs manual installation
+     * 
+ * + * INSTALLATION_DISABLED = 1; + */ + public static final int INSTALLATION_DISABLED_VALUE = 1; + /** + *
+     * "Default" GPU driver in COS and Ubuntu.
+     * 
+ * + * DEFAULT = 2; + */ + public static final int DEFAULT_VALUE = 2; + /** + *
+     * "Latest" GPU driver in COS.
+     * 
+ * + * LATEST = 3; + */ + public static final int LATEST_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 GPUDriverVersion 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 GPUDriverVersion forNumber(int value) { + switch (value) { + case 0: return GPU_DRIVER_VERSION_UNSPECIFIED; + case 1: return INSTALLATION_DISABLED; + case 2: return DEFAULT; + case 3: return LATEST; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + GPUDriverVersion> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public GPUDriverVersion findValueByNumber(int number) { + return GPUDriverVersion.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.GPUDriverInstallationConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final GPUDriverVersion[] VALUES = values(); + + public static GPUDriverVersion 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 GPUDriverVersion(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion) + } + + private int bitField0_; + public static final int GPU_DRIVER_VERSION_FIELD_NUMBER = 1; + private int gpuDriverVersion_ = 0; + /** + *
+   * Mode for how the GPU driver is installed.
+   * 
+ * + * optional .google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; + * @return Whether the gpuDriverVersion field is set. + */ + @java.lang.Override public boolean hasGpuDriverVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Mode for how the GPU driver is installed.
+   * 
+ * + * optional .google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; + * @return The enum numeric value on the wire for gpuDriverVersion. + */ + @java.lang.Override public int getGpuDriverVersionValue() { + return gpuDriverVersion_; + } + /** + *
+   * Mode for how the GPU driver is installed.
+   * 
+ * + * optional .google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; + * @return The gpuDriverVersion. + */ + @java.lang.Override public com.google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion getGpuDriverVersion() { + com.google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion result = com.google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion.forNumber(gpuDriverVersion_); + return result == null ? com.google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion.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 (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, gpuDriverVersion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, gpuDriverVersion_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.GPUDriverInstallationConfig)) { + return super.equals(obj); + } + com.google.container.v1.GPUDriverInstallationConfig other = (com.google.container.v1.GPUDriverInstallationConfig) obj; + + if (hasGpuDriverVersion() != other.hasGpuDriverVersion()) return false; + if (hasGpuDriverVersion()) { + if (gpuDriverVersion_ != other.gpuDriverVersion_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasGpuDriverVersion()) { + hash = (37 * hash) + GPU_DRIVER_VERSION_FIELD_NUMBER; + hash = (53 * hash) + gpuDriverVersion_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.GPUDriverInstallationConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.GPUDriverInstallationConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.GPUDriverInstallationConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.GPUDriverInstallationConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.GPUDriverInstallationConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.GPUDriverInstallationConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.GPUDriverInstallationConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.GPUDriverInstallationConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.GPUDriverInstallationConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.GPUDriverInstallationConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.GPUDriverInstallationConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.GPUDriverInstallationConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.GPUDriverInstallationConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * GPUDriverInstallationConfig specifies the version of GPU driver to be auto
+   * installed.
+   * 
+ * + * Protobuf type {@code google.container.v1.GPUDriverInstallationConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.GPUDriverInstallationConfig) + com.google.container.v1.GPUDriverInstallationConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GPUDriverInstallationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GPUDriverInstallationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GPUDriverInstallationConfig.class, com.google.container.v1.GPUDriverInstallationConfig.Builder.class); + } + + // Construct using com.google.container.v1.GPUDriverInstallationConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + gpuDriverVersion_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GPUDriverInstallationConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.GPUDriverInstallationConfig getDefaultInstanceForType() { + return com.google.container.v1.GPUDriverInstallationConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.GPUDriverInstallationConfig build() { + com.google.container.v1.GPUDriverInstallationConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.GPUDriverInstallationConfig buildPartial() { + com.google.container.v1.GPUDriverInstallationConfig result = new com.google.container.v1.GPUDriverInstallationConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.GPUDriverInstallationConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.gpuDriverVersion_ = gpuDriverVersion_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.GPUDriverInstallationConfig) { + return mergeFrom((com.google.container.v1.GPUDriverInstallationConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.GPUDriverInstallationConfig other) { + if (other == com.google.container.v1.GPUDriverInstallationConfig.getDefaultInstance()) return this; + if (other.hasGpuDriverVersion()) { + setGpuDriverVersion(other.getGpuDriverVersion()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + gpuDriverVersion_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int gpuDriverVersion_ = 0; + /** + *
+     * Mode for how the GPU driver is installed.
+     * 
+ * + * optional .google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; + * @return Whether the gpuDriverVersion field is set. + */ + @java.lang.Override public boolean hasGpuDriverVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Mode for how the GPU driver is installed.
+     * 
+ * + * optional .google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; + * @return The enum numeric value on the wire for gpuDriverVersion. + */ + @java.lang.Override public int getGpuDriverVersionValue() { + return gpuDriverVersion_; + } + /** + *
+     * Mode for how the GPU driver is installed.
+     * 
+ * + * optional .google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; + * @param value The enum numeric value on the wire for gpuDriverVersion to set. + * @return This builder for chaining. + */ + public Builder setGpuDriverVersionValue(int value) { + gpuDriverVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Mode for how the GPU driver is installed.
+     * 
+ * + * optional .google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; + * @return The gpuDriverVersion. + */ + @java.lang.Override + public com.google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion getGpuDriverVersion() { + com.google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion result = com.google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion.forNumber(gpuDriverVersion_); + return result == null ? com.google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion.UNRECOGNIZED : result; + } + /** + *
+     * Mode for how the GPU driver is installed.
+     * 
+ * + * optional .google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; + * @param value The gpuDriverVersion to set. + * @return This builder for chaining. + */ + public Builder setGpuDriverVersion(com.google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + gpuDriverVersion_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Mode for how the GPU driver is installed.
+     * 
+ * + * optional .google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; + * @return This builder for chaining. + */ + public Builder clearGpuDriverVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + gpuDriverVersion_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.GPUDriverInstallationConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.GPUDriverInstallationConfig) + private static final com.google.container.v1.GPUDriverInstallationConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.GPUDriverInstallationConfig(); + } + + public static com.google.container.v1.GPUDriverInstallationConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GPUDriverInstallationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.GPUDriverInstallationConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GPUDriverInstallationConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GPUDriverInstallationConfigOrBuilder.java new file mode 100644 index 000000000000..c97a1bee25ae --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GPUDriverInstallationConfigOrBuilder.java @@ -0,0 +1,38 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface GPUDriverInstallationConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.GPUDriverInstallationConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Mode for how the GPU driver is installed.
+   * 
+ * + * optional .google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; + * @return Whether the gpuDriverVersion field is set. + */ + boolean hasGpuDriverVersion(); + /** + *
+   * Mode for how the GPU driver is installed.
+   * 
+ * + * optional .google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; + * @return The enum numeric value on the wire for gpuDriverVersion. + */ + int getGpuDriverVersionValue(); + /** + *
+   * Mode for how the GPU driver is installed.
+   * 
+ * + * optional .google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; + * @return The gpuDriverVersion. + */ + com.google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion getGpuDriverVersion(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GPUSharingConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GPUSharingConfig.java new file mode 100644 index 000000000000..6759a92e35f4 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GPUSharingConfig.java @@ -0,0 +1,780 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * GPUSharingConfig represents the GPU sharing configuration for Hardware
+ * Accelerators.
+ * 
+ * + * Protobuf type {@code google.container.v1.GPUSharingConfig} + */ +public final class GPUSharingConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.GPUSharingConfig) + GPUSharingConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use GPUSharingConfig.newBuilder() to construct. + private GPUSharingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GPUSharingConfig() { + gpuSharingStrategy_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GPUSharingConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GPUSharingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GPUSharingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GPUSharingConfig.class, com.google.container.v1.GPUSharingConfig.Builder.class); + } + + /** + *
+   * The type of GPU sharing strategy currently provided.
+   * 
+ * + * Protobuf enum {@code google.container.v1.GPUSharingConfig.GPUSharingStrategy} + */ + public enum GPUSharingStrategy + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Default value.
+     * 
+ * + * GPU_SHARING_STRATEGY_UNSPECIFIED = 0; + */ + GPU_SHARING_STRATEGY_UNSPECIFIED(0), + /** + *
+     * GPUs are time-shared between containers.
+     * 
+ * + * TIME_SHARING = 1; + */ + TIME_SHARING(1), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Default value.
+     * 
+ * + * GPU_SHARING_STRATEGY_UNSPECIFIED = 0; + */ + public static final int GPU_SHARING_STRATEGY_UNSPECIFIED_VALUE = 0; + /** + *
+     * GPUs are time-shared between containers.
+     * 
+ * + * TIME_SHARING = 1; + */ + public static final int TIME_SHARING_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 GPUSharingStrategy 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 GPUSharingStrategy forNumber(int value) { + switch (value) { + case 0: return GPU_SHARING_STRATEGY_UNSPECIFIED; + case 1: return TIME_SHARING; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + GPUSharingStrategy> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public GPUSharingStrategy findValueByNumber(int number) { + return GPUSharingStrategy.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.GPUSharingConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final GPUSharingStrategy[] VALUES = values(); + + public static GPUSharingStrategy 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 GPUSharingStrategy(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.GPUSharingConfig.GPUSharingStrategy) + } + + private int bitField0_; + public static final int MAX_SHARED_CLIENTS_PER_GPU_FIELD_NUMBER = 1; + private long maxSharedClientsPerGpu_ = 0L; + /** + *
+   * The max number of containers that can share a physical GPU.
+   * 
+ * + * int64 max_shared_clients_per_gpu = 1; + * @return The maxSharedClientsPerGpu. + */ + @java.lang.Override + public long getMaxSharedClientsPerGpu() { + return maxSharedClientsPerGpu_; + } + + public static final int GPU_SHARING_STRATEGY_FIELD_NUMBER = 2; + private int gpuSharingStrategy_ = 0; + /** + *
+   * The type of GPU sharing strategy to enable on the GPU node.
+   * 
+ * + * optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; + * @return Whether the gpuSharingStrategy field is set. + */ + @java.lang.Override public boolean hasGpuSharingStrategy() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * The type of GPU sharing strategy to enable on the GPU node.
+   * 
+ * + * optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; + * @return The enum numeric value on the wire for gpuSharingStrategy. + */ + @java.lang.Override public int getGpuSharingStrategyValue() { + return gpuSharingStrategy_; + } + /** + *
+   * The type of GPU sharing strategy to enable on the GPU node.
+   * 
+ * + * optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; + * @return The gpuSharingStrategy. + */ + @java.lang.Override public com.google.container.v1.GPUSharingConfig.GPUSharingStrategy getGpuSharingStrategy() { + com.google.container.v1.GPUSharingConfig.GPUSharingStrategy result = com.google.container.v1.GPUSharingConfig.GPUSharingStrategy.forNumber(gpuSharingStrategy_); + return result == null ? com.google.container.v1.GPUSharingConfig.GPUSharingStrategy.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 (maxSharedClientsPerGpu_ != 0L) { + output.writeInt64(1, maxSharedClientsPerGpu_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(2, gpuSharingStrategy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (maxSharedClientsPerGpu_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, maxSharedClientsPerGpu_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, gpuSharingStrategy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.GPUSharingConfig)) { + return super.equals(obj); + } + com.google.container.v1.GPUSharingConfig other = (com.google.container.v1.GPUSharingConfig) obj; + + if (getMaxSharedClientsPerGpu() + != other.getMaxSharedClientsPerGpu()) return false; + if (hasGpuSharingStrategy() != other.hasGpuSharingStrategy()) return false; + if (hasGpuSharingStrategy()) { + if (gpuSharingStrategy_ != other.gpuSharingStrategy_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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_SHARED_CLIENTS_PER_GPU_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxSharedClientsPerGpu()); + if (hasGpuSharingStrategy()) { + hash = (37 * hash) + GPU_SHARING_STRATEGY_FIELD_NUMBER; + hash = (53 * hash) + gpuSharingStrategy_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.GPUSharingConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.GPUSharingConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.GPUSharingConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.GPUSharingConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.GPUSharingConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.GPUSharingConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.GPUSharingConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.GPUSharingConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.GPUSharingConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.GPUSharingConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.GPUSharingConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.GPUSharingConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.GPUSharingConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * GPUSharingConfig represents the GPU sharing configuration for Hardware
+   * Accelerators.
+   * 
+ * + * Protobuf type {@code google.container.v1.GPUSharingConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.GPUSharingConfig) + com.google.container.v1.GPUSharingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GPUSharingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GPUSharingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GPUSharingConfig.class, com.google.container.v1.GPUSharingConfig.Builder.class); + } + + // Construct using com.google.container.v1.GPUSharingConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + maxSharedClientsPerGpu_ = 0L; + gpuSharingStrategy_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GPUSharingConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.GPUSharingConfig getDefaultInstanceForType() { + return com.google.container.v1.GPUSharingConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.GPUSharingConfig build() { + com.google.container.v1.GPUSharingConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.GPUSharingConfig buildPartial() { + com.google.container.v1.GPUSharingConfig result = new com.google.container.v1.GPUSharingConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.GPUSharingConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.maxSharedClientsPerGpu_ = maxSharedClientsPerGpu_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.gpuSharingStrategy_ = gpuSharingStrategy_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.GPUSharingConfig) { + return mergeFrom((com.google.container.v1.GPUSharingConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.GPUSharingConfig other) { + if (other == com.google.container.v1.GPUSharingConfig.getDefaultInstance()) return this; + if (other.getMaxSharedClientsPerGpu() != 0L) { + setMaxSharedClientsPerGpu(other.getMaxSharedClientsPerGpu()); + } + if (other.hasGpuSharingStrategy()) { + setGpuSharingStrategy(other.getGpuSharingStrategy()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + maxSharedClientsPerGpu_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + gpuSharingStrategy_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private long maxSharedClientsPerGpu_ ; + /** + *
+     * The max number of containers that can share a physical GPU.
+     * 
+ * + * int64 max_shared_clients_per_gpu = 1; + * @return The maxSharedClientsPerGpu. + */ + @java.lang.Override + public long getMaxSharedClientsPerGpu() { + return maxSharedClientsPerGpu_; + } + /** + *
+     * The max number of containers that can share a physical GPU.
+     * 
+ * + * int64 max_shared_clients_per_gpu = 1; + * @param value The maxSharedClientsPerGpu to set. + * @return This builder for chaining. + */ + public Builder setMaxSharedClientsPerGpu(long value) { + + maxSharedClientsPerGpu_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The max number of containers that can share a physical GPU.
+     * 
+ * + * int64 max_shared_clients_per_gpu = 1; + * @return This builder for chaining. + */ + public Builder clearMaxSharedClientsPerGpu() { + bitField0_ = (bitField0_ & ~0x00000001); + maxSharedClientsPerGpu_ = 0L; + onChanged(); + return this; + } + + private int gpuSharingStrategy_ = 0; + /** + *
+     * The type of GPU sharing strategy to enable on the GPU node.
+     * 
+ * + * optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; + * @return Whether the gpuSharingStrategy field is set. + */ + @java.lang.Override public boolean hasGpuSharingStrategy() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * The type of GPU sharing strategy to enable on the GPU node.
+     * 
+ * + * optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; + * @return The enum numeric value on the wire for gpuSharingStrategy. + */ + @java.lang.Override public int getGpuSharingStrategyValue() { + return gpuSharingStrategy_; + } + /** + *
+     * The type of GPU sharing strategy to enable on the GPU node.
+     * 
+ * + * optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; + * @param value The enum numeric value on the wire for gpuSharingStrategy to set. + * @return This builder for chaining. + */ + public Builder setGpuSharingStrategyValue(int value) { + gpuSharingStrategy_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The type of GPU sharing strategy to enable on the GPU node.
+     * 
+ * + * optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; + * @return The gpuSharingStrategy. + */ + @java.lang.Override + public com.google.container.v1.GPUSharingConfig.GPUSharingStrategy getGpuSharingStrategy() { + com.google.container.v1.GPUSharingConfig.GPUSharingStrategy result = com.google.container.v1.GPUSharingConfig.GPUSharingStrategy.forNumber(gpuSharingStrategy_); + return result == null ? com.google.container.v1.GPUSharingConfig.GPUSharingStrategy.UNRECOGNIZED : result; + } + /** + *
+     * The type of GPU sharing strategy to enable on the GPU node.
+     * 
+ * + * optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; + * @param value The gpuSharingStrategy to set. + * @return This builder for chaining. + */ + public Builder setGpuSharingStrategy(com.google.container.v1.GPUSharingConfig.GPUSharingStrategy value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + gpuSharingStrategy_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The type of GPU sharing strategy to enable on the GPU node.
+     * 
+ * + * optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; + * @return This builder for chaining. + */ + public Builder clearGpuSharingStrategy() { + bitField0_ = (bitField0_ & ~0x00000002); + gpuSharingStrategy_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.GPUSharingConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.GPUSharingConfig) + private static final com.google.container.v1.GPUSharingConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.GPUSharingConfig(); + } + + public static com.google.container.v1.GPUSharingConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GPUSharingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.GPUSharingConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GPUSharingConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GPUSharingConfigOrBuilder.java new file mode 100644 index 000000000000..db5ed32f48d4 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GPUSharingConfigOrBuilder.java @@ -0,0 +1,48 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface GPUSharingConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.GPUSharingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The max number of containers that can share a physical GPU.
+   * 
+ * + * int64 max_shared_clients_per_gpu = 1; + * @return The maxSharedClientsPerGpu. + */ + long getMaxSharedClientsPerGpu(); + + /** + *
+   * The type of GPU sharing strategy to enable on the GPU node.
+   * 
+ * + * optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; + * @return Whether the gpuSharingStrategy field is set. + */ + boolean hasGpuSharingStrategy(); + /** + *
+   * The type of GPU sharing strategy to enable on the GPU node.
+   * 
+ * + * optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; + * @return The enum numeric value on the wire for gpuSharingStrategy. + */ + int getGpuSharingStrategyValue(); + /** + *
+   * The type of GPU sharing strategy to enable on the GPU node.
+   * 
+ * + * optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; + * @return The gpuSharingStrategy. + */ + com.google.container.v1.GPUSharingConfig.GPUSharingStrategy getGpuSharingStrategy(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GatewayAPIConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GatewayAPIConfig.java new file mode 100644 index 000000000000..5d4d39b7da5f --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GatewayAPIConfig.java @@ -0,0 +1,699 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * GatewayAPIConfig contains the desired config of Gateway API on this cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1.GatewayAPIConfig} + */ +public final class GatewayAPIConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.GatewayAPIConfig) + GatewayAPIConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use GatewayAPIConfig.newBuilder() to construct. + private GatewayAPIConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GatewayAPIConfig() { + channel_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GatewayAPIConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GatewayAPIConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GatewayAPIConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GatewayAPIConfig.class, com.google.container.v1.GatewayAPIConfig.Builder.class); + } + + /** + *
+   * Channel describes if/how Gateway API should be installed and implemented in
+   * a cluster.
+   * 
+ * + * Protobuf enum {@code google.container.v1.GatewayAPIConfig.Channel} + */ + public enum Channel + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Default value.
+     * 
+ * + * CHANNEL_UNSPECIFIED = 0; + */ + CHANNEL_UNSPECIFIED(0), + /** + *
+     * Gateway API support is disabled
+     * 
+ * + * CHANNEL_DISABLED = 1; + */ + CHANNEL_DISABLED(1), + /** + *
+     * Gateway API support is enabled, experimental CRDs are installed
+     * 
+ * + * CHANNEL_EXPERIMENTAL = 3; + */ + CHANNEL_EXPERIMENTAL(3), + /** + *
+     * Gateway API support is enabled, standard CRDs are installed
+     * 
+ * + * CHANNEL_STANDARD = 4; + */ + CHANNEL_STANDARD(4), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Default value.
+     * 
+ * + * CHANNEL_UNSPECIFIED = 0; + */ + public static final int CHANNEL_UNSPECIFIED_VALUE = 0; + /** + *
+     * Gateway API support is disabled
+     * 
+ * + * CHANNEL_DISABLED = 1; + */ + public static final int CHANNEL_DISABLED_VALUE = 1; + /** + *
+     * Gateway API support is enabled, experimental CRDs are installed
+     * 
+ * + * CHANNEL_EXPERIMENTAL = 3; + */ + public static final int CHANNEL_EXPERIMENTAL_VALUE = 3; + /** + *
+     * Gateway API support is enabled, standard CRDs are installed
+     * 
+ * + * CHANNEL_STANDARD = 4; + */ + public static final int CHANNEL_STANDARD_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 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 CHANNEL_UNSPECIFIED; + case 1: return CHANNEL_DISABLED; + case 3: return CHANNEL_EXPERIMENTAL; + case 4: return CHANNEL_STANDARD; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Channel> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Channel findValueByNumber(int number) { + return Channel.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.GatewayAPIConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final Channel[] VALUES = values(); + + public static Channel valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Channel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.GatewayAPIConfig.Channel) + } + + public static final int CHANNEL_FIELD_NUMBER = 1; + private int channel_ = 0; + /** + *
+   * The Gateway API release channel to use for Gateway API.
+   * 
+ * + * .google.container.v1.GatewayAPIConfig.Channel channel = 1; + * @return The enum numeric value on the wire for channel. + */ + @java.lang.Override public int getChannelValue() { + return channel_; + } + /** + *
+   * The Gateway API release channel to use for Gateway API.
+   * 
+ * + * .google.container.v1.GatewayAPIConfig.Channel channel = 1; + * @return The channel. + */ + @java.lang.Override public com.google.container.v1.GatewayAPIConfig.Channel getChannel() { + com.google.container.v1.GatewayAPIConfig.Channel result = com.google.container.v1.GatewayAPIConfig.Channel.forNumber(channel_); + return result == null ? com.google.container.v1.GatewayAPIConfig.Channel.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (channel_ != com.google.container.v1.GatewayAPIConfig.Channel.CHANNEL_UNSPECIFIED.getNumber()) { + output.writeEnum(1, channel_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (channel_ != com.google.container.v1.GatewayAPIConfig.Channel.CHANNEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, channel_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.GatewayAPIConfig)) { + return super.equals(obj); + } + com.google.container.v1.GatewayAPIConfig other = (com.google.container.v1.GatewayAPIConfig) obj; + + if (channel_ != other.channel_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.GatewayAPIConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.GatewayAPIConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.GatewayAPIConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.GatewayAPIConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.GatewayAPIConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.GatewayAPIConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.GatewayAPIConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.GatewayAPIConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.GatewayAPIConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.GatewayAPIConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.GatewayAPIConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.GatewayAPIConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.GatewayAPIConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * GatewayAPIConfig contains the desired config of Gateway API on this cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1.GatewayAPIConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.GatewayAPIConfig) + com.google.container.v1.GatewayAPIConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GatewayAPIConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GatewayAPIConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GatewayAPIConfig.class, com.google.container.v1.GatewayAPIConfig.Builder.class); + } + + // Construct using com.google.container.v1.GatewayAPIConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + channel_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GatewayAPIConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.GatewayAPIConfig getDefaultInstanceForType() { + return com.google.container.v1.GatewayAPIConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.GatewayAPIConfig build() { + com.google.container.v1.GatewayAPIConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.GatewayAPIConfig buildPartial() { + com.google.container.v1.GatewayAPIConfig result = new com.google.container.v1.GatewayAPIConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.GatewayAPIConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.channel_ = channel_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.GatewayAPIConfig) { + return mergeFrom((com.google.container.v1.GatewayAPIConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.GatewayAPIConfig other) { + if (other == com.google.container.v1.GatewayAPIConfig.getDefaultInstance()) return this; + if (other.channel_ != 0) { + setChannelValue(other.getChannelValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + channel_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int channel_ = 0; + /** + *
+     * The Gateway API release channel to use for Gateway API.
+     * 
+ * + * .google.container.v1.GatewayAPIConfig.Channel channel = 1; + * @return The enum numeric value on the wire for channel. + */ + @java.lang.Override public int getChannelValue() { + return channel_; + } + /** + *
+     * The Gateway API release channel to use for Gateway API.
+     * 
+ * + * .google.container.v1.GatewayAPIConfig.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The Gateway API release channel to use for Gateway API.
+     * 
+ * + * .google.container.v1.GatewayAPIConfig.Channel channel = 1; + * @return The channel. + */ + @java.lang.Override + public com.google.container.v1.GatewayAPIConfig.Channel getChannel() { + com.google.container.v1.GatewayAPIConfig.Channel result = com.google.container.v1.GatewayAPIConfig.Channel.forNumber(channel_); + return result == null ? com.google.container.v1.GatewayAPIConfig.Channel.UNRECOGNIZED : result; + } + /** + *
+     * The Gateway API release channel to use for Gateway API.
+     * 
+ * + * .google.container.v1.GatewayAPIConfig.Channel channel = 1; + * @param value The channel to set. + * @return This builder for chaining. + */ + public Builder setChannel(com.google.container.v1.GatewayAPIConfig.Channel value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + channel_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The Gateway API release channel to use for Gateway API.
+     * 
+ * + * .google.container.v1.GatewayAPIConfig.Channel channel = 1; + * @return This builder for chaining. + */ + public Builder clearChannel() { + bitField0_ = (bitField0_ & ~0x00000001); + channel_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.GatewayAPIConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.GatewayAPIConfig) + private static final com.google.container.v1.GatewayAPIConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.GatewayAPIConfig(); + } + + public static com.google.container.v1.GatewayAPIConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GatewayAPIConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.GatewayAPIConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GatewayAPIConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GatewayAPIConfigOrBuilder.java new file mode 100644 index 000000000000..230ca4cf70ea --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GatewayAPIConfigOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface GatewayAPIConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.GatewayAPIConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The Gateway API release channel to use for Gateway API.
+   * 
+ * + * .google.container.v1.GatewayAPIConfig.Channel channel = 1; + * @return The enum numeric value on the wire for channel. + */ + int getChannelValue(); + /** + *
+   * The Gateway API release channel to use for Gateway API.
+   * 
+ * + * .google.container.v1.GatewayAPIConfig.Channel channel = 1; + * @return The channel. + */ + com.google.container.v1.GatewayAPIConfig.Channel getChannel(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcePersistentDiskCsiDriverConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcePersistentDiskCsiDriverConfig.java new file mode 100644 index 000000000000..79d0f5e83832 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcePersistentDiskCsiDriverConfig.java @@ -0,0 +1,497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Configuration for the Compute Engine PD CSI driver.
+ * 
+ * + * Protobuf type {@code google.container.v1.GcePersistentDiskCsiDriverConfig} + */ +public final class GcePersistentDiskCsiDriverConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.GcePersistentDiskCsiDriverConfig) + GcePersistentDiskCsiDriverConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use GcePersistentDiskCsiDriverConfig.newBuilder() to construct. + private GcePersistentDiskCsiDriverConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GcePersistentDiskCsiDriverConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GcePersistentDiskCsiDriverConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GcePersistentDiskCsiDriverConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GcePersistentDiskCsiDriverConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GcePersistentDiskCsiDriverConfig.class, com.google.container.v1.GcePersistentDiskCsiDriverConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.GcePersistentDiskCsiDriverConfig)) { + return super.equals(obj); + } + com.google.container.v1.GcePersistentDiskCsiDriverConfig other = (com.google.container.v1.GcePersistentDiskCsiDriverConfig) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.GcePersistentDiskCsiDriverConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.GcePersistentDiskCsiDriverConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.GcePersistentDiskCsiDriverConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.GcePersistentDiskCsiDriverConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.GcePersistentDiskCsiDriverConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.GcePersistentDiskCsiDriverConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.GcePersistentDiskCsiDriverConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.GcePersistentDiskCsiDriverConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.GcePersistentDiskCsiDriverConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.GcePersistentDiskCsiDriverConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.GcePersistentDiskCsiDriverConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.GcePersistentDiskCsiDriverConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.GcePersistentDiskCsiDriverConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration for the Compute Engine PD CSI driver.
+   * 
+ * + * Protobuf type {@code google.container.v1.GcePersistentDiskCsiDriverConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.GcePersistentDiskCsiDriverConfig) + com.google.container.v1.GcePersistentDiskCsiDriverConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GcePersistentDiskCsiDriverConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GcePersistentDiskCsiDriverConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GcePersistentDiskCsiDriverConfig.class, com.google.container.v1.GcePersistentDiskCsiDriverConfig.Builder.class); + } + + // Construct using com.google.container.v1.GcePersistentDiskCsiDriverConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GcePersistentDiskCsiDriverConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.GcePersistentDiskCsiDriverConfig getDefaultInstanceForType() { + return com.google.container.v1.GcePersistentDiskCsiDriverConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.GcePersistentDiskCsiDriverConfig build() { + com.google.container.v1.GcePersistentDiskCsiDriverConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.GcePersistentDiskCsiDriverConfig buildPartial() { + com.google.container.v1.GcePersistentDiskCsiDriverConfig result = new com.google.container.v1.GcePersistentDiskCsiDriverConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.GcePersistentDiskCsiDriverConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.GcePersistentDiskCsiDriverConfig) { + return mergeFrom((com.google.container.v1.GcePersistentDiskCsiDriverConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.GcePersistentDiskCsiDriverConfig other) { + if (other == com.google.container.v1.GcePersistentDiskCsiDriverConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.GcePersistentDiskCsiDriverConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.GcePersistentDiskCsiDriverConfig) + private static final com.google.container.v1.GcePersistentDiskCsiDriverConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.GcePersistentDiskCsiDriverConfig(); + } + + public static com.google.container.v1.GcePersistentDiskCsiDriverConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcePersistentDiskCsiDriverConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.GcePersistentDiskCsiDriverConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcePersistentDiskCsiDriverConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcePersistentDiskCsiDriverConfigOrBuilder.java new file mode 100644 index 000000000000..bb7636ad2b83 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcePersistentDiskCsiDriverConfigOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface GcePersistentDiskCsiDriverConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.GcePersistentDiskCsiDriverConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether the Compute Engine PD CSI driver is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcfsConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcfsConfig.java new file mode 100644 index 000000000000..c1b1acddd185 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcfsConfig.java @@ -0,0 +1,499 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * GcfsConfig contains configurations of Google Container File System
+ * (image streaming).
+ * 
+ * + * Protobuf type {@code google.container.v1.GcfsConfig} + */ +public final class GcfsConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.GcfsConfig) + GcfsConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use GcfsConfig.newBuilder() to construct. + private GcfsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GcfsConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GcfsConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GcfsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GcfsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GcfsConfig.class, com.google.container.v1.GcfsConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * Whether to use GCFS.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.GcfsConfig)) { + return super.equals(obj); + } + com.google.container.v1.GcfsConfig other = (com.google.container.v1.GcfsConfig) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.GcfsConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.GcfsConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.GcfsConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.GcfsConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.GcfsConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.GcfsConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.GcfsConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.GcfsConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.GcfsConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.GcfsConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.GcfsConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.GcfsConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.GcfsConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * GcfsConfig contains configurations of Google Container File System
+   * (image streaming).
+   * 
+ * + * Protobuf type {@code google.container.v1.GcfsConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.GcfsConfig) + com.google.container.v1.GcfsConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GcfsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GcfsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GcfsConfig.class, com.google.container.v1.GcfsConfig.Builder.class); + } + + // Construct using com.google.container.v1.GcfsConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GcfsConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.GcfsConfig getDefaultInstanceForType() { + return com.google.container.v1.GcfsConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.GcfsConfig build() { + com.google.container.v1.GcfsConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.GcfsConfig buildPartial() { + com.google.container.v1.GcfsConfig result = new com.google.container.v1.GcfsConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.GcfsConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.GcfsConfig) { + return mergeFrom((com.google.container.v1.GcfsConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.GcfsConfig other) { + if (other == com.google.container.v1.GcfsConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enabled_ ; + /** + *
+     * Whether to use GCFS.
+     * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Whether to use GCFS.
+     * 
+ * + * bool enabled = 1; + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether to use GCFS.
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.GcfsConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.GcfsConfig) + private static final com.google.container.v1.GcfsConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.GcfsConfig(); + } + + public static com.google.container.v1.GcfsConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcfsConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.GcfsConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcfsConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcfsConfigOrBuilder.java new file mode 100644 index 000000000000..070eab707e48 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcfsConfigOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface GcfsConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.GcfsConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether to use GCFS.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcpFilestoreCsiDriverConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcpFilestoreCsiDriverConfig.java new file mode 100644 index 000000000000..e321f079ab52 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcpFilestoreCsiDriverConfig.java @@ -0,0 +1,497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Configuration for the GCP Filestore CSI driver.
+ * 
+ * + * Protobuf type {@code google.container.v1.GcpFilestoreCsiDriverConfig} + */ +public final class GcpFilestoreCsiDriverConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.GcpFilestoreCsiDriverConfig) + GcpFilestoreCsiDriverConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use GcpFilestoreCsiDriverConfig.newBuilder() to construct. + private GcpFilestoreCsiDriverConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GcpFilestoreCsiDriverConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GcpFilestoreCsiDriverConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GcpFilestoreCsiDriverConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GcpFilestoreCsiDriverConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GcpFilestoreCsiDriverConfig.class, com.google.container.v1.GcpFilestoreCsiDriverConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * Whether the GCP Filestore CSI driver is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.GcpFilestoreCsiDriverConfig)) { + return super.equals(obj); + } + com.google.container.v1.GcpFilestoreCsiDriverConfig other = (com.google.container.v1.GcpFilestoreCsiDriverConfig) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.GcpFilestoreCsiDriverConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.GcpFilestoreCsiDriverConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.GcpFilestoreCsiDriverConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.GcpFilestoreCsiDriverConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.GcpFilestoreCsiDriverConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.GcpFilestoreCsiDriverConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.GcpFilestoreCsiDriverConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.GcpFilestoreCsiDriverConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.GcpFilestoreCsiDriverConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.GcpFilestoreCsiDriverConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.GcpFilestoreCsiDriverConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.GcpFilestoreCsiDriverConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.GcpFilestoreCsiDriverConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration for the GCP Filestore CSI driver.
+   * 
+ * + * Protobuf type {@code google.container.v1.GcpFilestoreCsiDriverConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.GcpFilestoreCsiDriverConfig) + com.google.container.v1.GcpFilestoreCsiDriverConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GcpFilestoreCsiDriverConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GcpFilestoreCsiDriverConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GcpFilestoreCsiDriverConfig.class, com.google.container.v1.GcpFilestoreCsiDriverConfig.Builder.class); + } + + // Construct using com.google.container.v1.GcpFilestoreCsiDriverConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GcpFilestoreCsiDriverConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.GcpFilestoreCsiDriverConfig getDefaultInstanceForType() { + return com.google.container.v1.GcpFilestoreCsiDriverConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.GcpFilestoreCsiDriverConfig build() { + com.google.container.v1.GcpFilestoreCsiDriverConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.GcpFilestoreCsiDriverConfig buildPartial() { + com.google.container.v1.GcpFilestoreCsiDriverConfig result = new com.google.container.v1.GcpFilestoreCsiDriverConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.GcpFilestoreCsiDriverConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.GcpFilestoreCsiDriverConfig) { + return mergeFrom((com.google.container.v1.GcpFilestoreCsiDriverConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.GcpFilestoreCsiDriverConfig other) { + if (other == com.google.container.v1.GcpFilestoreCsiDriverConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enabled_ ; + /** + *
+     * Whether the GCP Filestore CSI driver is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Whether the GCP Filestore CSI driver is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether the GCP Filestore CSI driver is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.GcpFilestoreCsiDriverConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.GcpFilestoreCsiDriverConfig) + private static final com.google.container.v1.GcpFilestoreCsiDriverConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.GcpFilestoreCsiDriverConfig(); + } + + public static com.google.container.v1.GcpFilestoreCsiDriverConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcpFilestoreCsiDriverConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.GcpFilestoreCsiDriverConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcpFilestoreCsiDriverConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcpFilestoreCsiDriverConfigOrBuilder.java new file mode 100644 index 000000000000..cd9f8c51f0ee --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcpFilestoreCsiDriverConfigOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface GcpFilestoreCsiDriverConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.GcpFilestoreCsiDriverConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether the GCP Filestore CSI driver is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcsFuseCsiDriverConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcsFuseCsiDriverConfig.java new file mode 100644 index 000000000000..72e052302168 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcsFuseCsiDriverConfig.java @@ -0,0 +1,497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Configuration for the Cloud Storage Fuse CSI driver.
+ * 
+ * + * Protobuf type {@code google.container.v1.GcsFuseCsiDriverConfig} + */ +public final class GcsFuseCsiDriverConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.GcsFuseCsiDriverConfig) + GcsFuseCsiDriverConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use GcsFuseCsiDriverConfig.newBuilder() to construct. + private GcsFuseCsiDriverConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GcsFuseCsiDriverConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GcsFuseCsiDriverConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GcsFuseCsiDriverConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GcsFuseCsiDriverConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GcsFuseCsiDriverConfig.class, com.google.container.v1.GcsFuseCsiDriverConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * Whether the Cloud Storage Fuse 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.GcsFuseCsiDriverConfig)) { + return super.equals(obj); + } + com.google.container.v1.GcsFuseCsiDriverConfig other = (com.google.container.v1.GcsFuseCsiDriverConfig) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.GcsFuseCsiDriverConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.GcsFuseCsiDriverConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.GcsFuseCsiDriverConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.GcsFuseCsiDriverConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.GcsFuseCsiDriverConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.GcsFuseCsiDriverConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.GcsFuseCsiDriverConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.GcsFuseCsiDriverConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.GcsFuseCsiDriverConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.GcsFuseCsiDriverConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.GcsFuseCsiDriverConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.GcsFuseCsiDriverConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.GcsFuseCsiDriverConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new 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 Cloud Storage Fuse CSI driver.
+   * 
+ * + * Protobuf type {@code google.container.v1.GcsFuseCsiDriverConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.GcsFuseCsiDriverConfig) + com.google.container.v1.GcsFuseCsiDriverConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GcsFuseCsiDriverConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GcsFuseCsiDriverConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GcsFuseCsiDriverConfig.class, com.google.container.v1.GcsFuseCsiDriverConfig.Builder.class); + } + + // Construct using com.google.container.v1.GcsFuseCsiDriverConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GcsFuseCsiDriverConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.GcsFuseCsiDriverConfig getDefaultInstanceForType() { + return com.google.container.v1.GcsFuseCsiDriverConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.GcsFuseCsiDriverConfig build() { + com.google.container.v1.GcsFuseCsiDriverConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.GcsFuseCsiDriverConfig buildPartial() { + com.google.container.v1.GcsFuseCsiDriverConfig result = new com.google.container.v1.GcsFuseCsiDriverConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.GcsFuseCsiDriverConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.GcsFuseCsiDriverConfig) { + return mergeFrom((com.google.container.v1.GcsFuseCsiDriverConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.GcsFuseCsiDriverConfig other) { + if (other == com.google.container.v1.GcsFuseCsiDriverConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enabled_ ; + /** + *
+     * Whether the Cloud Storage Fuse CSI driver is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Whether the Cloud Storage Fuse 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether the Cloud Storage Fuse CSI driver is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.GcsFuseCsiDriverConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.GcsFuseCsiDriverConfig) + private static final com.google.container.v1.GcsFuseCsiDriverConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.GcsFuseCsiDriverConfig(); + } + + public static com.google.container.v1.GcsFuseCsiDriverConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsFuseCsiDriverConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.GcsFuseCsiDriverConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcsFuseCsiDriverConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcsFuseCsiDriverConfigOrBuilder.java new file mode 100644 index 000000000000..882d46672601 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GcsFuseCsiDriverConfigOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface GcsFuseCsiDriverConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.GcsFuseCsiDriverConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether the Cloud Storage Fuse CSI driver is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java new file mode 100644 index 000000000000..6b26bd905b10 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java @@ -0,0 +1,1161 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * GetClusterRequest gets the settings of a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1.GetClusterRequest} + */ +public final class GetClusterRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GetClusterRequest.class, com.google.container.v1.GetClusterRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2592 + * @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; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2592 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2598 + * @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; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2598 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object clusterId_ = ""; + /** + *
+   * Deprecated. The name of the cluster to retrieve.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2602 + * @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; + } + } + /** + *
+   * 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]; + * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2602 + * @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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.GetClusterRequest)) { + return super.equals(obj); + } + com.google.container.v1.GetClusterRequest other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.GetClusterRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.GetClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.GetClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.GetClusterRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.GetClusterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.GetClusterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.GetClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.GetClusterRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.GetClusterRequest) + com.google.container.v1.GetClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GetClusterRequest.class, com.google.container.v1.GetClusterRequest.Builder.class); + } + + // Construct using com.google.container.v1.GetClusterRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1.GetClusterRequest getDefaultInstanceForType() { + return com.google.container.v1.GetClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.GetClusterRequest build() { + com.google.container.v1.GetClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.GetClusterRequest buildPartial() { + com.google.container.v1.GetClusterRequest result = new com.google.container.v1.GetClusterRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.GetClusterRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.GetClusterRequest) { + return mergeFrom((com.google.container.v1.GetClusterRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.GetClusterRequest other) { + if (other == com.google.container.v1.GetClusterRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 42: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2592 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2592 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2592 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2592 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2592 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2598 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2598 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2598 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2598 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2598 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to retrieve.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2602 + * @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; + } + } + /** + *
+     * 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]; + * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2602 + * @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; + } + } + /** + *
+     * 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]; + * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2602 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to retrieve.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2602 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to retrieve.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2602 + * @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; + bitField0_ |= 0x00000004; + 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; + bitField0_ |= 0x00000008; + 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(); + bitField0_ = (bitField0_ & ~0x00000008); + 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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.GetClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.GetClusterRequest) + private static final com.google.container.v1.GetClusterRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.GetClusterRequest(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.GetClusterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java new file mode 100644 index 000000000000..129f6e706039 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java @@ -0,0 +1,116 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface GetClusterRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.GetClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2592 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2592 + * @return The bytes for projectId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2598 + * @return The zone. + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2598 + * @return The bytes for zone. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to retrieve.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2602 + * @return The clusterId. + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to retrieve.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2602 + * @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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysRequest.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysRequest.java new file mode 100644 index 000000000000..e42ac80559a7 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysRequest.java @@ -0,0 +1,591 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * GetJSONWebKeysRequest gets the public component of the keys used by the
+ * cluster to sign token requests. This will be the jwks_uri for the discover
+ * document returned by getOpenIDConfig. See the OpenID Connect
+ * Discovery 1.0 specification for details.
+ * 
+ * + * Protobuf type {@code google.container.v1.GetJSONWebKeysRequest} + */ +public final class GetJSONWebKeysRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.GetJSONWebKeysRequest) + GetJSONWebKeysRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetJSONWebKeysRequest.newBuilder() to construct. + private GetJSONWebKeysRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetJSONWebKeysRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetJSONWebKeysRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetJSONWebKeysRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetJSONWebKeysRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GetJSONWebKeysRequest.class, com.google.container.v1.GetJSONWebKeysRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + *
+   * The cluster (project, location, cluster name) 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 name) 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.GetJSONWebKeysRequest)) { + return super.equals(obj); + } + com.google.container.v1.GetJSONWebKeysRequest other = (com.google.container.v1.GetJSONWebKeysRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.GetJSONWebKeysRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.GetJSONWebKeysRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.GetJSONWebKeysRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.GetJSONWebKeysRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.GetJSONWebKeysRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.GetJSONWebKeysRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.GetJSONWebKeysRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.GetJSONWebKeysRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.GetJSONWebKeysRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.GetJSONWebKeysRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.GetJSONWebKeysRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.GetJSONWebKeysRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.GetJSONWebKeysRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * GetJSONWebKeysRequest gets the public component of the keys used by the
+   * cluster to sign token requests. This will be the jwks_uri for the discover
+   * document returned by getOpenIDConfig. See the OpenID Connect
+   * Discovery 1.0 specification for details.
+   * 
+ * + * Protobuf type {@code google.container.v1.GetJSONWebKeysRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.GetJSONWebKeysRequest) + com.google.container.v1.GetJSONWebKeysRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetJSONWebKeysRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetJSONWebKeysRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GetJSONWebKeysRequest.class, com.google.container.v1.GetJSONWebKeysRequest.Builder.class); + } + + // Construct using com.google.container.v1.GetJSONWebKeysRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetJSONWebKeysRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1.GetJSONWebKeysRequest getDefaultInstanceForType() { + return com.google.container.v1.GetJSONWebKeysRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.GetJSONWebKeysRequest build() { + com.google.container.v1.GetJSONWebKeysRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.GetJSONWebKeysRequest buildPartial() { + com.google.container.v1.GetJSONWebKeysRequest result = new com.google.container.v1.GetJSONWebKeysRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.GetJSONWebKeysRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.GetJSONWebKeysRequest) { + return mergeFrom((com.google.container.v1.GetJSONWebKeysRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.GetJSONWebKeysRequest other) { + if (other == com.google.container.v1.GetJSONWebKeysRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + *
+     * The cluster (project, location, cluster name) 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 name) 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 name) 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The cluster (project, location, cluster name) 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(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * The cluster (project, location, cluster name) 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.GetJSONWebKeysRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.GetJSONWebKeysRequest) + private static final com.google.container.v1.GetJSONWebKeysRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.GetJSONWebKeysRequest(); + } + + public static com.google.container.v1.GetJSONWebKeysRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetJSONWebKeysRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.GetJSONWebKeysRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysRequestOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysRequestOrBuilder.java new file mode 100644 index 000000000000..28f973a20926 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysRequestOrBuilder.java @@ -0,0 +1,32 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface GetJSONWebKeysRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.GetJSONWebKeysRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The cluster (project, location, cluster name) 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 name) 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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysResponse.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysResponse.java new file mode 100644 index 000000000000..da56c4315774 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysResponse.java @@ -0,0 +1,883 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * GetJSONWebKeysResponse is a valid JSON Web Key Set as specififed in rfc 7517
+ * 
+ * + * Protobuf type {@code google.container.v1.GetJSONWebKeysResponse} + */ +public final class GetJSONWebKeysResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.GetJSONWebKeysResponse) + GetJSONWebKeysResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetJSONWebKeysResponse.newBuilder() to construct. + private GetJSONWebKeysResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetJSONWebKeysResponse() { + keys_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetJSONWebKeysResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetJSONWebKeysResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetJSONWebKeysResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GetJSONWebKeysResponse.class, com.google.container.v1.GetJSONWebKeysResponse.Builder.class); + } + + public static final int KEYS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List keys_; + /** + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + @java.lang.Override + public java.util.List getKeysList() { + return keys_; + } + /** + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + @java.lang.Override + public java.util.List + getKeysOrBuilderList() { + return keys_; + } + /** + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + @java.lang.Override + public int getKeysCount() { + return keys_.size(); + } + /** + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + @java.lang.Override + public com.google.container.v1.Jwk getKeys(int index) { + return keys_.get(index); + } + /** + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + @java.lang.Override + public com.google.container.v1.JwkOrBuilder getKeysOrBuilder( + int index) { + return keys_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < keys_.size(); i++) { + output.writeMessage(1, keys_.get(i)); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.GetJSONWebKeysResponse)) { + return super.equals(obj); + } + com.google.container.v1.GetJSONWebKeysResponse other = (com.google.container.v1.GetJSONWebKeysResponse) obj; + + if (!getKeysList() + .equals(other.getKeysList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.GetJSONWebKeysResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.GetJSONWebKeysResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.GetJSONWebKeysResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.GetJSONWebKeysResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.GetJSONWebKeysResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.GetJSONWebKeysResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.GetJSONWebKeysResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.GetJSONWebKeysResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.GetJSONWebKeysResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.GetJSONWebKeysResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.GetJSONWebKeysResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.GetJSONWebKeysResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.GetJSONWebKeysResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * GetJSONWebKeysResponse is a valid JSON Web Key Set as specififed in rfc 7517
+   * 
+ * + * Protobuf type {@code google.container.v1.GetJSONWebKeysResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.GetJSONWebKeysResponse) + com.google.container.v1.GetJSONWebKeysResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetJSONWebKeysResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetJSONWebKeysResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GetJSONWebKeysResponse.class, com.google.container.v1.GetJSONWebKeysResponse.Builder.class); + } + + // Construct using com.google.container.v1.GetJSONWebKeysResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (keysBuilder_ == null) { + keys_ = java.util.Collections.emptyList(); + } else { + keys_ = null; + keysBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetJSONWebKeysResponse_descriptor; + } + + @java.lang.Override + public com.google.container.v1.GetJSONWebKeysResponse getDefaultInstanceForType() { + return com.google.container.v1.GetJSONWebKeysResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.GetJSONWebKeysResponse build() { + com.google.container.v1.GetJSONWebKeysResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.GetJSONWebKeysResponse buildPartial() { + com.google.container.v1.GetJSONWebKeysResponse result = new com.google.container.v1.GetJSONWebKeysResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1.GetJSONWebKeysResponse result) { + if (keysBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + keys_ = java.util.Collections.unmodifiableList(keys_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.keys_ = keys_; + } else { + result.keys_ = keysBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1.GetJSONWebKeysResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.GetJSONWebKeysResponse) { + return mergeFrom((com.google.container.v1.GetJSONWebKeysResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.GetJSONWebKeysResponse other) { + if (other == com.google.container.v1.GetJSONWebKeysResponse.getDefaultInstance()) return this; + if (keysBuilder_ == null) { + if (!other.keys_.isEmpty()) { + if (keys_.isEmpty()) { + keys_ = other.keys_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureKeysIsMutable(); + keys_.addAll(other.keys_); + } + onChanged(); + } + } else { + if (!other.keys_.isEmpty()) { + if (keysBuilder_.isEmpty()) { + keysBuilder_.dispose(); + keysBuilder_ = null; + keys_ = other.keys_; + bitField0_ = (bitField0_ & ~0x00000001); + keysBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getKeysFieldBuilder() : null; + } else { + keysBuilder_.addAllMessages(other.keys_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.container.v1.Jwk m = + input.readMessage( + com.google.container.v1.Jwk.parser(), + extensionRegistry); + if (keysBuilder_ == null) { + ensureKeysIsMutable(); + keys_.add(m); + } else { + keysBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List keys_ = + java.util.Collections.emptyList(); + private void ensureKeysIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + keys_ = new java.util.ArrayList(keys_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.Jwk, com.google.container.v1.Jwk.Builder, com.google.container.v1.JwkOrBuilder> keysBuilder_; + + /** + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + public java.util.List getKeysList() { + if (keysBuilder_ == null) { + return java.util.Collections.unmodifiableList(keys_); + } else { + return keysBuilder_.getMessageList(); + } + } + /** + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + public int getKeysCount() { + if (keysBuilder_ == null) { + return keys_.size(); + } else { + return keysBuilder_.getCount(); + } + } + /** + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + public com.google.container.v1.Jwk getKeys(int index) { + if (keysBuilder_ == null) { + return keys_.get(index); + } else { + return keysBuilder_.getMessage(index); + } + } + /** + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + public Builder setKeys( + int index, com.google.container.v1.Jwk value) { + if (keysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeysIsMutable(); + keys_.set(index, value); + onChanged(); + } else { + keysBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + public Builder setKeys( + int index, com.google.container.v1.Jwk.Builder builderForValue) { + if (keysBuilder_ == null) { + ensureKeysIsMutable(); + keys_.set(index, builderForValue.build()); + onChanged(); + } else { + keysBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + public Builder addKeys(com.google.container.v1.Jwk value) { + if (keysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeysIsMutable(); + keys_.add(value); + onChanged(); + } else { + keysBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + public Builder addKeys( + int index, com.google.container.v1.Jwk value) { + if (keysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeysIsMutable(); + keys_.add(index, value); + onChanged(); + } else { + keysBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + public Builder addKeys( + com.google.container.v1.Jwk.Builder builderForValue) { + if (keysBuilder_ == null) { + ensureKeysIsMutable(); + keys_.add(builderForValue.build()); + onChanged(); + } else { + keysBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + public Builder addKeys( + int index, com.google.container.v1.Jwk.Builder builderForValue) { + if (keysBuilder_ == null) { + ensureKeysIsMutable(); + keys_.add(index, builderForValue.build()); + onChanged(); + } else { + keysBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + public Builder addAllKeys( + java.lang.Iterable values) { + if (keysBuilder_ == null) { + ensureKeysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, keys_); + onChanged(); + } else { + keysBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + public Builder clearKeys() { + if (keysBuilder_ == null) { + keys_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + keysBuilder_.clear(); + } + return this; + } + /** + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + public Builder removeKeys(int index) { + if (keysBuilder_ == null) { + ensureKeysIsMutable(); + keys_.remove(index); + onChanged(); + } else { + keysBuilder_.remove(index); + } + return this; + } + /** + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + public com.google.container.v1.Jwk.Builder getKeysBuilder( + int index) { + return getKeysFieldBuilder().getBuilder(index); + } + /** + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + public com.google.container.v1.JwkOrBuilder getKeysOrBuilder( + int index) { + if (keysBuilder_ == null) { + return keys_.get(index); } else { + return keysBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + public java.util.List + getKeysOrBuilderList() { + if (keysBuilder_ != null) { + return keysBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(keys_); + } + } + /** + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + public com.google.container.v1.Jwk.Builder addKeysBuilder() { + return getKeysFieldBuilder().addBuilder( + com.google.container.v1.Jwk.getDefaultInstance()); + } + /** + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + public com.google.container.v1.Jwk.Builder addKeysBuilder( + int index) { + return getKeysFieldBuilder().addBuilder( + index, com.google.container.v1.Jwk.getDefaultInstance()); + } + /** + *
+     * The public component of the keys used by the cluster to sign token
+     * requests.
+     * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + public java.util.List + getKeysBuilderList() { + return getKeysFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.Jwk, com.google.container.v1.Jwk.Builder, com.google.container.v1.JwkOrBuilder> + getKeysFieldBuilder() { + if (keysBuilder_ == null) { + keysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.Jwk, com.google.container.v1.Jwk.Builder, com.google.container.v1.JwkOrBuilder>( + keys_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + keys_ = null; + } + return keysBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.GetJSONWebKeysResponse) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.GetJSONWebKeysResponse) + private static final com.google.container.v1.GetJSONWebKeysResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.GetJSONWebKeysResponse(); + } + + public static com.google.container.v1.GetJSONWebKeysResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetJSONWebKeysResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.GetJSONWebKeysResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysResponseOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysResponseOrBuilder.java new file mode 100644 index 000000000000..abe24e8384b4 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysResponseOrBuilder.java @@ -0,0 +1,59 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface GetJSONWebKeysResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.GetJSONWebKeysResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + java.util.List + getKeysList(); + /** + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + com.google.container.v1.Jwk getKeys(int index); + /** + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + int getKeysCount(); + /** + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + java.util.List + getKeysOrBuilderList(); + /** + *
+   * The public component of the keys used by the cluster to sign token
+   * requests.
+   * 
+ * + * repeated .google.container.v1.Jwk keys = 1; + */ + com.google.container.v1.JwkOrBuilder getKeysOrBuilder( + int index); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java new file mode 100644 index 000000000000..bfe242fbd01c --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java @@ -0,0 +1,1353 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * GetNodePoolRequest retrieves a node pool for a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1.GetNodePoolRequest} + */ +public final class GetNodePoolRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetNodePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetNodePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GetNodePoolRequest.class, com.google.container.v1.GetNodePoolRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3260 + * @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; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3260 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3266 + * @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; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3266 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object clusterId_ = ""; + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3270 + * @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; + } + } + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3270 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object nodePoolId_ = ""; + /** + *
+   * Deprecated. The name of the node pool.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3274 + * @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; + } + } + /** + *
+   * 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]; + * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3274 + * @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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.GetNodePoolRequest)) { + return super.equals(obj); + } + com.google.container.v1.GetNodePoolRequest other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.GetNodePoolRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.GetNodePoolRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.GetNodePoolRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.GetNodePoolRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.GetNodePoolRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.GetNodePoolRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.GetNodePoolRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.GetNodePoolRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.GetNodePoolRequest) + com.google.container.v1.GetNodePoolRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetNodePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetNodePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GetNodePoolRequest.class, com.google.container.v1.GetNodePoolRequest.Builder.class); + } + + // Construct using com.google.container.v1.GetNodePoolRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePoolId_ = ""; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetNodePoolRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1.GetNodePoolRequest getDefaultInstanceForType() { + return com.google.container.v1.GetNodePoolRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.GetNodePoolRequest build() { + com.google.container.v1.GetNodePoolRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.GetNodePoolRequest buildPartial() { + com.google.container.v1.GetNodePoolRequest result = new com.google.container.v1.GetNodePoolRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.GetNodePoolRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.nodePoolId_ = nodePoolId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.GetNodePoolRequest) { + return mergeFrom((com.google.container.v1.GetNodePoolRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.GetNodePoolRequest other) { + if (other == com.google.container.v1.GetNodePoolRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + nodePoolId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 50: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3260 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3260 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3260 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3260 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3260 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3266 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3266 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3266 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3266 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3266 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3270 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3270 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3270 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3270 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3270 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + *
+     * Deprecated. The name of the node pool.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3274 + * @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; + } + } + /** + *
+     * 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]; + * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3274 + * @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; + } + } + /** + *
+     * 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]; + * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3274 + * @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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3274 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearNodePoolId() { + nodePoolId_ = getDefaultInstance().getNodePoolId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3274 + * @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; + bitField0_ |= 0x00000008; + 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; + bitField0_ |= 0x00000010; + 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(); + bitField0_ = (bitField0_ & ~0x00000010); + 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; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.GetNodePoolRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.GetNodePoolRequest) + private static final com.google.container.v1.GetNodePoolRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.GetNodePoolRequest(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.GetNodePoolRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java new file mode 100644 index 000000000000..53981450143f --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java @@ -0,0 +1,144 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface GetNodePoolRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.GetNodePoolRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3260 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3260 + * @return The bytes for projectId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3266 + * @return The zone. + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3266 + * @return The bytes for zone. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3270 + * @return The clusterId. + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3270 + * @return The bytes for clusterId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * Deprecated. The name of the node pool.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3274 + * @return The nodePoolId. + */ + @java.lang.Deprecated java.lang.String getNodePoolId(); + /** + *
+   * Deprecated. The name of the node pool.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3274 + * @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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigRequest.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigRequest.java new file mode 100644 index 000000000000..3a0aeaf0aee2 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigRequest.java @@ -0,0 +1,587 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * GetOpenIDConfigRequest gets the OIDC discovery document for the
+ * cluster. See the OpenID Connect Discovery 1.0 specification for details.
+ * 
+ * + * Protobuf type {@code google.container.v1.GetOpenIDConfigRequest} + */ +public final class GetOpenIDConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.GetOpenIDConfigRequest) + GetOpenIDConfigRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetOpenIDConfigRequest.newBuilder() to construct. + private GetOpenIDConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetOpenIDConfigRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetOpenIDConfigRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetOpenIDConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetOpenIDConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GetOpenIDConfigRequest.class, com.google.container.v1.GetOpenIDConfigRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + *
+   * The cluster (project, location, cluster name) 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 name) 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.GetOpenIDConfigRequest)) { + return super.equals(obj); + } + com.google.container.v1.GetOpenIDConfigRequest other = (com.google.container.v1.GetOpenIDConfigRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.GetOpenIDConfigRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.GetOpenIDConfigRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.GetOpenIDConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.GetOpenIDConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.GetOpenIDConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.GetOpenIDConfigRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.GetOpenIDConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.GetOpenIDConfigRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.GetOpenIDConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.GetOpenIDConfigRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.GetOpenIDConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.GetOpenIDConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.GetOpenIDConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * GetOpenIDConfigRequest gets the OIDC discovery document for the
+   * cluster. See the OpenID Connect Discovery 1.0 specification for details.
+   * 
+ * + * Protobuf type {@code google.container.v1.GetOpenIDConfigRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.GetOpenIDConfigRequest) + com.google.container.v1.GetOpenIDConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetOpenIDConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetOpenIDConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GetOpenIDConfigRequest.class, com.google.container.v1.GetOpenIDConfigRequest.Builder.class); + } + + // Construct using com.google.container.v1.GetOpenIDConfigRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetOpenIDConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1.GetOpenIDConfigRequest getDefaultInstanceForType() { + return com.google.container.v1.GetOpenIDConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.GetOpenIDConfigRequest build() { + com.google.container.v1.GetOpenIDConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.GetOpenIDConfigRequest buildPartial() { + com.google.container.v1.GetOpenIDConfigRequest result = new com.google.container.v1.GetOpenIDConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.GetOpenIDConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.GetOpenIDConfigRequest) { + return mergeFrom((com.google.container.v1.GetOpenIDConfigRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.GetOpenIDConfigRequest other) { + if (other == com.google.container.v1.GetOpenIDConfigRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + *
+     * The cluster (project, location, cluster name) 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 name) 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 name) 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The cluster (project, location, cluster name) 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(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * The cluster (project, location, cluster name) 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.GetOpenIDConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.GetOpenIDConfigRequest) + private static final com.google.container.v1.GetOpenIDConfigRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.GetOpenIDConfigRequest(); + } + + public static com.google.container.v1.GetOpenIDConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOpenIDConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.GetOpenIDConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigRequestOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigRequestOrBuilder.java new file mode 100644 index 000000000000..858e0a457394 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigRequestOrBuilder.java @@ -0,0 +1,32 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface GetOpenIDConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.GetOpenIDConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The cluster (project, location, cluster name) 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 name) 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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigResponse.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigResponse.java new file mode 100644 index 000000000000..5cba1a6d87be --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigResponse.java @@ -0,0 +1,1949 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * GetOpenIDConfigResponse is an OIDC discovery document for the cluster.
+ * See the OpenID Connect Discovery 1.0 specification for details.
+ * 
+ * + * Protobuf type {@code google.container.v1.GetOpenIDConfigResponse} + */ +public final class GetOpenIDConfigResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.GetOpenIDConfigResponse) + GetOpenIDConfigResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetOpenIDConfigResponse.newBuilder() to construct. + private GetOpenIDConfigResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetOpenIDConfigResponse() { + issuer_ = ""; + jwksUri_ = ""; + responseTypesSupported_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + subjectTypesSupported_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + idTokenSigningAlgValuesSupported_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + claimsSupported_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + grantTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetOpenIDConfigResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetOpenIDConfigResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetOpenIDConfigResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GetOpenIDConfigResponse.class, com.google.container.v1.GetOpenIDConfigResponse.Builder.class); + } + + public static final int ISSUER_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList responseTypesSupported_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * 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; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList subjectTypesSupported_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * 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; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList idTokenSigningAlgValuesSupported_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * 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; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList claimsSupported_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * 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; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList grantTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(issuer_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, issuer_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jwksUri_)) { + 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)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(issuer_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, issuer_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jwksUri_)) { + 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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.GetOpenIDConfigResponse)) { + return super.equals(obj); + } + com.google.container.v1.GetOpenIDConfigResponse other = (com.google.container.v1.GetOpenIDConfigResponse) obj; + + if (!getIssuer() + .equals(other.getIssuer())) return false; + if (!getJwksUri() + .equals(other.getJwksUri())) return false; + if (!getResponseTypesSupportedList() + .equals(other.getResponseTypesSupportedList())) return false; + if (!getSubjectTypesSupportedList() + .equals(other.getSubjectTypesSupportedList())) return false; + if (!getIdTokenSigningAlgValuesSupportedList() + .equals(other.getIdTokenSigningAlgValuesSupportedList())) return false; + if (!getClaimsSupportedList() + .equals(other.getClaimsSupportedList())) return false; + if (!getGrantTypesList() + .equals(other.getGrantTypesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.GetOpenIDConfigResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.GetOpenIDConfigResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.GetOpenIDConfigResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.GetOpenIDConfigResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.GetOpenIDConfigResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.GetOpenIDConfigResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.GetOpenIDConfigResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.GetOpenIDConfigResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.GetOpenIDConfigResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.GetOpenIDConfigResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.GetOpenIDConfigResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.GetOpenIDConfigResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.GetOpenIDConfigResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * GetOpenIDConfigResponse is an OIDC discovery document for the cluster.
+   * See the OpenID Connect Discovery 1.0 specification for details.
+   * 
+ * + * Protobuf type {@code google.container.v1.GetOpenIDConfigResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.GetOpenIDConfigResponse) + com.google.container.v1.GetOpenIDConfigResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetOpenIDConfigResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetOpenIDConfigResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GetOpenIDConfigResponse.class, com.google.container.v1.GetOpenIDConfigResponse.Builder.class); + } + + // Construct using com.google.container.v1.GetOpenIDConfigResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + issuer_ = ""; + jwksUri_ = ""; + responseTypesSupported_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + subjectTypesSupported_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + idTokenSigningAlgValuesSupported_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + claimsSupported_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + grantTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetOpenIDConfigResponse_descriptor; + } + + @java.lang.Override + public com.google.container.v1.GetOpenIDConfigResponse getDefaultInstanceForType() { + return com.google.container.v1.GetOpenIDConfigResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.GetOpenIDConfigResponse build() { + com.google.container.v1.GetOpenIDConfigResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.GetOpenIDConfigResponse buildPartial() { + com.google.container.v1.GetOpenIDConfigResponse result = new com.google.container.v1.GetOpenIDConfigResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.GetOpenIDConfigResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.issuer_ = issuer_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.jwksUri_ = jwksUri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + responseTypesSupported_.makeImmutable(); + result.responseTypesSupported_ = responseTypesSupported_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + subjectTypesSupported_.makeImmutable(); + result.subjectTypesSupported_ = subjectTypesSupported_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + idTokenSigningAlgValuesSupported_.makeImmutable(); + result.idTokenSigningAlgValuesSupported_ = idTokenSigningAlgValuesSupported_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + claimsSupported_.makeImmutable(); + result.claimsSupported_ = claimsSupported_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + grantTypes_.makeImmutable(); + result.grantTypes_ = grantTypes_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.GetOpenIDConfigResponse) { + return mergeFrom((com.google.container.v1.GetOpenIDConfigResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.GetOpenIDConfigResponse other) { + if (other == com.google.container.v1.GetOpenIDConfigResponse.getDefaultInstance()) return this; + if (!other.getIssuer().isEmpty()) { + issuer_ = other.issuer_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getJwksUri().isEmpty()) { + jwksUri_ = other.jwksUri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.responseTypesSupported_.isEmpty()) { + if (responseTypesSupported_.isEmpty()) { + responseTypesSupported_ = other.responseTypesSupported_; + bitField0_ |= 0x00000004; + } else { + ensureResponseTypesSupportedIsMutable(); + responseTypesSupported_.addAll(other.responseTypesSupported_); + } + onChanged(); + } + if (!other.subjectTypesSupported_.isEmpty()) { + if (subjectTypesSupported_.isEmpty()) { + subjectTypesSupported_ = other.subjectTypesSupported_; + bitField0_ |= 0x00000008; + } else { + ensureSubjectTypesSupportedIsMutable(); + subjectTypesSupported_.addAll(other.subjectTypesSupported_); + } + onChanged(); + } + if (!other.idTokenSigningAlgValuesSupported_.isEmpty()) { + if (idTokenSigningAlgValuesSupported_.isEmpty()) { + idTokenSigningAlgValuesSupported_ = other.idTokenSigningAlgValuesSupported_; + bitField0_ |= 0x00000010; + } else { + ensureIdTokenSigningAlgValuesSupportedIsMutable(); + idTokenSigningAlgValuesSupported_.addAll(other.idTokenSigningAlgValuesSupported_); + } + onChanged(); + } + if (!other.claimsSupported_.isEmpty()) { + if (claimsSupported_.isEmpty()) { + claimsSupported_ = other.claimsSupported_; + bitField0_ |= 0x00000020; + } else { + ensureClaimsSupportedIsMutable(); + claimsSupported_.addAll(other.claimsSupported_); + } + onChanged(); + } + if (!other.grantTypes_.isEmpty()) { + if (grantTypes_.isEmpty()) { + grantTypes_ = other.grantTypes_; + bitField0_ |= 0x00000040; + } else { + ensureGrantTypesIsMutable(); + grantTypes_.addAll(other.grantTypes_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + issuer_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + jwksUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureResponseTypesSupportedIsMutable(); + responseTypesSupported_.add(s); + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureSubjectTypesSupportedIsMutable(); + subjectTypesSupported_.add(s); + break; + } // case 34 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + ensureIdTokenSigningAlgValuesSupportedIsMutable(); + idTokenSigningAlgValuesSupported_.add(s); + break; + } // case 42 + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + ensureClaimsSupportedIsMutable(); + claimsSupported_.add(s); + break; + } // case 50 + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + ensureGrantTypesIsMutable(); + grantTypes_.add(s); + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * OIDC Issuer.
+     * 
+ * + * string issuer = 1; + * @return This builder for chaining. + */ + public Builder clearIssuer() { + issuer_ = getDefaultInstance().getIssuer(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * JSON Web Key uri.
+     * 
+ * + * string jwks_uri = 2; + * @return This builder for chaining. + */ + public Builder clearJwksUri() { + jwksUri_ = getDefaultInstance().getJwksUri(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList responseTypesSupported_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureResponseTypesSupportedIsMutable() { + if (!responseTypesSupported_.isModifiable()) { + responseTypesSupported_ = new com.google.protobuf.LazyStringArrayList(responseTypesSupported_); + } + bitField0_ |= 0x00000004; + } + /** + *
+     * Supported response types.
+     * 
+ * + * repeated string response_types_supported = 3; + * @return A list containing the responseTypesSupported. + */ + public com.google.protobuf.ProtocolStringList + getResponseTypesSupportedList() { + responseTypesSupported_.makeImmutable(); + 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); + } + /** + *
+     * 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); + bitField0_ |= 0x00000004; + 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); + bitField0_ |= 0x00000004; + 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_); + bitField0_ |= 0x00000004; + 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.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; + 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); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList subjectTypesSupported_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureSubjectTypesSupportedIsMutable() { + if (!subjectTypesSupported_.isModifiable()) { + subjectTypesSupported_ = new com.google.protobuf.LazyStringArrayList(subjectTypesSupported_); + } + bitField0_ |= 0x00000008; + } + /** + *
+     * Supported subject types.
+     * 
+ * + * repeated string subject_types_supported = 4; + * @return A list containing the subjectTypesSupported. + */ + public com.google.protobuf.ProtocolStringList + getSubjectTypesSupportedList() { + subjectTypesSupported_.makeImmutable(); + 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); + } + /** + *
+     * 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); + bitField0_ |= 0x00000008; + 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); + bitField0_ |= 0x00000008; + 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_); + bitField0_ |= 0x00000008; + 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.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; + 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); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList idTokenSigningAlgValuesSupported_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureIdTokenSigningAlgValuesSupportedIsMutable() { + if (!idTokenSigningAlgValuesSupported_.isModifiable()) { + idTokenSigningAlgValuesSupported_ = new com.google.protobuf.LazyStringArrayList(idTokenSigningAlgValuesSupported_); + } + bitField0_ |= 0x00000010; + } + /** + *
+     * 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() { + idTokenSigningAlgValuesSupported_.makeImmutable(); + 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); + } + /** + *
+     * 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); + bitField0_ |= 0x00000010; + 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); + bitField0_ |= 0x00000010; + 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_); + bitField0_ |= 0x00000010; + 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.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010);; + 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); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList claimsSupported_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureClaimsSupportedIsMutable() { + if (!claimsSupported_.isModifiable()) { + claimsSupported_ = new com.google.protobuf.LazyStringArrayList(claimsSupported_); + } + bitField0_ |= 0x00000020; + } + /** + *
+     * Supported claims.
+     * 
+ * + * repeated string claims_supported = 6; + * @return A list containing the claimsSupported. + */ + public com.google.protobuf.ProtocolStringList + getClaimsSupportedList() { + claimsSupported_.makeImmutable(); + 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); + } + /** + *
+     * 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); + bitField0_ |= 0x00000020; + 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); + bitField0_ |= 0x00000020; + 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_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Supported claims.
+     * 
+ * + * repeated string claims_supported = 6; + * @return This builder for chaining. + */ + public Builder clearClaimsSupported() { + claimsSupported_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020);; + 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); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList grantTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureGrantTypesIsMutable() { + if (!grantTypes_.isModifiable()) { + grantTypes_ = new com.google.protobuf.LazyStringArrayList(grantTypes_); + } + bitField0_ |= 0x00000040; + } + /** + *
+     * Supported grant types.
+     * 
+ * + * repeated string grant_types = 7; + * @return A list containing the grantTypes. + */ + public com.google.protobuf.ProtocolStringList + getGrantTypesList() { + grantTypes_.makeImmutable(); + 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); + } + /** + *
+     * 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); + bitField0_ |= 0x00000040; + 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); + bitField0_ |= 0x00000040; + 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_); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * Supported grant types.
+     * 
+ * + * repeated string grant_types = 7; + * @return This builder for chaining. + */ + public Builder clearGrantTypes() { + grantTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040);; + 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); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.GetOpenIDConfigResponse) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.GetOpenIDConfigResponse) + private static final com.google.container.v1.GetOpenIDConfigResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.GetOpenIDConfigResponse(); + } + + public static com.google.container.v1.GetOpenIDConfigResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOpenIDConfigResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.GetOpenIDConfigResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigResponseOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigResponseOrBuilder.java new file mode 100644 index 000000000000..b2528f60ef8e --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigResponseOrBuilder.java @@ -0,0 +1,255 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface GetOpenIDConfigResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.GetOpenIDConfigResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * OIDC Issuer.
+   * 
+ * + * string issuer = 1; + * @return The issuer. + */ + java.lang.String getIssuer(); + /** + *
+   * OIDC Issuer.
+   * 
+ * + * string issuer = 1; + * @return The bytes for issuer. + */ + com.google.protobuf.ByteString + getIssuerBytes(); + + /** + *
+   * JSON Web Key uri.
+   * 
+ * + * string jwks_uri = 2; + * @return The jwksUri. + */ + java.lang.String getJwksUri(); + /** + *
+   * JSON Web Key uri.
+   * 
+ * + * string jwks_uri = 2; + * @return The bytes for jwksUri. + */ + com.google.protobuf.ByteString + getJwksUriBytes(); + + /** + *
+   * Supported response types.
+   * 
+ * + * repeated string response_types_supported = 3; + * @return A list containing the responseTypesSupported. + */ + java.util.List + getResponseTypesSupportedList(); + /** + *
+   * Supported response types.
+   * 
+ * + * repeated string response_types_supported = 3; + * @return The count of responseTypesSupported. + */ + int getResponseTypesSupportedCount(); + /** + *
+   * Supported response types.
+   * 
+ * + * repeated string response_types_supported = 3; + * @param index The index of the element to return. + * @return The responseTypesSupported at the given index. + */ + java.lang.String getResponseTypesSupported(int index); + /** + *
+   * Supported response types.
+   * 
+ * + * repeated string response_types_supported = 3; + * @param index The index of the value to return. + * @return The bytes of the responseTypesSupported at the given index. + */ + com.google.protobuf.ByteString + getResponseTypesSupportedBytes(int index); + + /** + *
+   * Supported subject types.
+   * 
+ * + * repeated string subject_types_supported = 4; + * @return A list containing the subjectTypesSupported. + */ + java.util.List + getSubjectTypesSupportedList(); + /** + *
+   * Supported subject types.
+   * 
+ * + * repeated string subject_types_supported = 4; + * @return The count of subjectTypesSupported. + */ + int getSubjectTypesSupportedCount(); + /** + *
+   * Supported subject types.
+   * 
+ * + * repeated string subject_types_supported = 4; + * @param index The index of the element to return. + * @return The subjectTypesSupported at the given index. + */ + java.lang.String getSubjectTypesSupported(int index); + /** + *
+   * Supported subject types.
+   * 
+ * + * repeated string subject_types_supported = 4; + * @param index The index of the value to return. + * @return The bytes of the subjectTypesSupported at the given index. + */ + com.google.protobuf.ByteString + getSubjectTypesSupportedBytes(int index); + + /** + *
+   * supported ID Token signing Algorithms.
+   * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * @return A list containing the idTokenSigningAlgValuesSupported. + */ + java.util.List + getIdTokenSigningAlgValuesSupportedList(); + /** + *
+   * supported ID Token signing Algorithms.
+   * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * @return The count of idTokenSigningAlgValuesSupported. + */ + int getIdTokenSigningAlgValuesSupportedCount(); + /** + *
+   * supported ID Token signing Algorithms.
+   * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * @param index The index of the element to return. + * @return The idTokenSigningAlgValuesSupported at the given index. + */ + java.lang.String getIdTokenSigningAlgValuesSupported(int index); + /** + *
+   * supported ID Token signing Algorithms.
+   * 
+ * + * repeated string id_token_signing_alg_values_supported = 5; + * @param index The index of the value to return. + * @return The bytes of the idTokenSigningAlgValuesSupported at the given index. + */ + com.google.protobuf.ByteString + getIdTokenSigningAlgValuesSupportedBytes(int index); + + /** + *
+   * Supported claims.
+   * 
+ * + * repeated string claims_supported = 6; + * @return A list containing the claimsSupported. + */ + java.util.List + getClaimsSupportedList(); + /** + *
+   * Supported claims.
+   * 
+ * + * repeated string claims_supported = 6; + * @return The count of claimsSupported. + */ + int getClaimsSupportedCount(); + /** + *
+   * Supported claims.
+   * 
+ * + * repeated string claims_supported = 6; + * @param index The index of the element to return. + * @return The claimsSupported at the given index. + */ + java.lang.String getClaimsSupported(int index); + /** + *
+   * Supported claims.
+   * 
+ * + * repeated string claims_supported = 6; + * @param index The index of the value to return. + * @return The bytes of the claimsSupported at the given index. + */ + com.google.protobuf.ByteString + getClaimsSupportedBytes(int index); + + /** + *
+   * Supported grant types.
+   * 
+ * + * repeated string grant_types = 7; + * @return A list containing the grantTypes. + */ + java.util.List + getGrantTypesList(); + /** + *
+   * Supported grant types.
+   * 
+ * + * repeated string grant_types = 7; + * @return The count of grantTypes. + */ + int getGrantTypesCount(); + /** + *
+   * Supported grant types.
+   * 
+ * + * repeated string grant_types = 7; + * @param index The index of the element to return. + * @return The grantTypes at the given index. + */ + java.lang.String getGrantTypes(int index); + /** + *
+   * Supported grant types.
+   * 
+ * + * repeated string grant_types = 7; + * @param index The index of the value to return. + * @return The bytes of the grantTypes at the given index. + */ + com.google.protobuf.ByteString + getGrantTypesBytes(int index); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java new file mode 100644 index 000000000000..8770c9e278bb --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java @@ -0,0 +1,1161 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * GetOperationRequest gets a single operation.
+ * 
+ * + * Protobuf type {@code google.container.v1.GetOperationRequest} + */ +public final class GetOperationRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetOperationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetOperationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GetOperationRequest.class, com.google.container.v1.GetOperationRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3061 + * @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; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3061 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3067 + * @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; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3067 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object operationId_ = ""; + /** + *
+   * Deprecated. The server-assigned `name` of the operation.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string operation_id = 3 [deprecated = true]; + * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3071 + * @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; + } + } + /** + *
+   * 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]; + * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3071 + * @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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, operationId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, operationId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.GetOperationRequest)) { + return super.equals(obj); + } + com.google.container.v1.GetOperationRequest other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.GetOperationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.GetOperationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.GetOperationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.GetOperationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.GetOperationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.GetOperationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.GetOperationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.GetOperationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.GetOperationRequest) + com.google.container.v1.GetOperationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetOperationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetOperationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GetOperationRequest.class, com.google.container.v1.GetOperationRequest.Builder.class); + } + + // Construct using com.google.container.v1.GetOperationRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + operationId_ = ""; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetOperationRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1.GetOperationRequest getDefaultInstanceForType() { + return com.google.container.v1.GetOperationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.GetOperationRequest build() { + com.google.container.v1.GetOperationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.GetOperationRequest buildPartial() { + com.google.container.v1.GetOperationRequest result = new com.google.container.v1.GetOperationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.GetOperationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.operationId_ = operationId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.GetOperationRequest) { + return mergeFrom((com.google.container.v1.GetOperationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.GetOperationRequest other) { + if (other == com.google.container.v1.GetOperationRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getOperationId().isEmpty()) { + operationId_ = other.operationId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + operationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 42: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3061 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3061 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3061 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3061 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3061 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3067 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3067 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3067 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3067 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3067 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object operationId_ = ""; + /** + *
+     * Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string operation_id = 3 [deprecated = true]; + * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3071 + * @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; + } + } + /** + *
+     * 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]; + * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3071 + * @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; + } + } + /** + *
+     * 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]; + * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3071 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string operation_id = 3 [deprecated = true]; + * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3071 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearOperationId() { + operationId_ = getDefaultInstance().getOperationId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The server-assigned `name` of the operation.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string operation_id = 3 [deprecated = true]; + * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3071 + * @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; + bitField0_ |= 0x00000004; + 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; + bitField0_ |= 0x00000008; + 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(); + bitField0_ = (bitField0_ & ~0x00000008); + 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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.GetOperationRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.GetOperationRequest) + private static final com.google.container.v1.GetOperationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.GetOperationRequest(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.GetOperationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java new file mode 100644 index 000000000000..2b0d99f67ebb --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java @@ -0,0 +1,116 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface GetOperationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.GetOperationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3061 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3061 + * @return The bytes for projectId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3067 + * @return The zone. + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3067 + * @return The bytes for zone. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The server-assigned `name` of the operation.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string operation_id = 3 [deprecated = true]; + * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3071 + * @return The operationId. + */ + @java.lang.Deprecated java.lang.String getOperationId(); + /** + *
+   * Deprecated. The server-assigned `name` of the operation.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string operation_id = 3 [deprecated = true]; + * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3071 + * @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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java new file mode 100644 index 000000000000..ec2009ef0b1d --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java @@ -0,0 +1,976 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Gets the current Kubernetes Engine service configuration.
+ * 
+ * + * Protobuf type {@code google.container.v1.GetServerConfigRequest} + */ +public final class GetServerConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetServerConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetServerConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GetServerConfigRequest.class, com.google.container.v1.GetServerConfigRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3134 + * @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; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3134 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + /** + *
+   * 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]; + * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3140 + * @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; + } + } + /** + *
+   * 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]; + * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3140 + * @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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.GetServerConfigRequest)) { + return super.equals(obj); + } + com.google.container.v1.GetServerConfigRequest other = (com.google.container.v1.GetServerConfigRequest) obj; + + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getZone() + .equals(other.getZone())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.GetServerConfigRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.GetServerConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.GetServerConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.GetServerConfigRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.GetServerConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.GetServerConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.GetServerConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.GetServerConfigRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.GetServerConfigRequest) + com.google.container.v1.GetServerConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetServerConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetServerConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GetServerConfigRequest.class, com.google.container.v1.GetServerConfigRequest.Builder.class); + } + + // Construct using com.google.container.v1.GetServerConfigRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GetServerConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1.GetServerConfigRequest getDefaultInstanceForType() { + return com.google.container.v1.GetServerConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.GetServerConfigRequest build() { + com.google.container.v1.GetServerConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.GetServerConfigRequest buildPartial() { + com.google.container.v1.GetServerConfigRequest result = new com.google.container.v1.GetServerConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.GetServerConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.GetServerConfigRequest) { + return mergeFrom((com.google.container.v1.GetServerConfigRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.GetServerConfigRequest other) { + if (other == com.google.container.v1.GetServerConfigRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3134 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3134 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3134 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3134 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3134 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * 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]; + * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3140 + * @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; + } + } + /** + *
+     * 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]; + * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3140 + * @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; + } + } + /** + *
+     * 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]; + * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3140 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * 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]; + * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3140 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * 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]; + * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3140 + * @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; + bitField0_ |= 0x00000002; + 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; + bitField0_ |= 0x00000004; + 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(); + bitField0_ = (bitField0_ & ~0x00000004); + 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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.GetServerConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.GetServerConfigRequest) + private static final com.google.container.v1.GetServerConfigRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.GetServerConfigRequest(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.GetServerConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java new file mode 100644 index 000000000000..2de9e3286dd2 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java @@ -0,0 +1,90 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface GetServerConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.GetServerConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3134 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3134 + * @return The bytes for projectId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) to return
+   * operations for. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3140 + * @return The zone. + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) to return
+   * operations for. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3140 + * @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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GkeBackupAgentConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GkeBackupAgentConfig.java new file mode 100644 index 000000000000..647fb28166bb --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GkeBackupAgentConfig.java @@ -0,0 +1,497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Configuration for the Backup for GKE Agent.
+ * 
+ * + * Protobuf type {@code google.container.v1.GkeBackupAgentConfig} + */ +public final class GkeBackupAgentConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.GkeBackupAgentConfig) + GkeBackupAgentConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use GkeBackupAgentConfig.newBuilder() to construct. + private GkeBackupAgentConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GkeBackupAgentConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GkeBackupAgentConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GkeBackupAgentConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GkeBackupAgentConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GkeBackupAgentConfig.class, com.google.container.v1.GkeBackupAgentConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * Whether the Backup for GKE agent is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.GkeBackupAgentConfig)) { + return super.equals(obj); + } + com.google.container.v1.GkeBackupAgentConfig other = (com.google.container.v1.GkeBackupAgentConfig) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.GkeBackupAgentConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.GkeBackupAgentConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.GkeBackupAgentConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.GkeBackupAgentConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.GkeBackupAgentConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.GkeBackupAgentConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.GkeBackupAgentConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.GkeBackupAgentConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.GkeBackupAgentConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.GkeBackupAgentConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.GkeBackupAgentConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.GkeBackupAgentConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.GkeBackupAgentConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration for the Backup for GKE Agent.
+   * 
+ * + * Protobuf type {@code google.container.v1.GkeBackupAgentConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.GkeBackupAgentConfig) + com.google.container.v1.GkeBackupAgentConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GkeBackupAgentConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GkeBackupAgentConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.GkeBackupAgentConfig.class, com.google.container.v1.GkeBackupAgentConfig.Builder.class); + } + + // Construct using com.google.container.v1.GkeBackupAgentConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_GkeBackupAgentConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.GkeBackupAgentConfig getDefaultInstanceForType() { + return com.google.container.v1.GkeBackupAgentConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.GkeBackupAgentConfig build() { + com.google.container.v1.GkeBackupAgentConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.GkeBackupAgentConfig buildPartial() { + com.google.container.v1.GkeBackupAgentConfig result = new com.google.container.v1.GkeBackupAgentConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.GkeBackupAgentConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.GkeBackupAgentConfig) { + return mergeFrom((com.google.container.v1.GkeBackupAgentConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.GkeBackupAgentConfig other) { + if (other == com.google.container.v1.GkeBackupAgentConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enabled_ ; + /** + *
+     * Whether the Backup for GKE agent is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Whether the Backup for GKE agent is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether the Backup for GKE agent is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.GkeBackupAgentConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.GkeBackupAgentConfig) + private static final com.google.container.v1.GkeBackupAgentConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.GkeBackupAgentConfig(); + } + + public static com.google.container.v1.GkeBackupAgentConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GkeBackupAgentConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.GkeBackupAgentConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GkeBackupAgentConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GkeBackupAgentConfigOrBuilder.java new file mode 100644 index 000000000000..a28847816ec3 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GkeBackupAgentConfigOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface GkeBackupAgentConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.GkeBackupAgentConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether the Backup for GKE agent is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HorizontalPodAutoscaling.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HorizontalPodAutoscaling.java new file mode 100644 index 000000000000..b652db61db61 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HorizontalPodAutoscaling.java @@ -0,0 +1,509 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * 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.v1.HorizontalPodAutoscaling} + */ +public final class HorizontalPodAutoscaling extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_HorizontalPodAutoscaling_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_HorizontalPodAutoscaling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.HorizontalPodAutoscaling.class, com.google.container.v1.HorizontalPodAutoscaling.Builder.class); + } + + public static final int DISABLED_FIELD_NUMBER = 1; + private boolean disabled_ = false; + /** + *
+   * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.HorizontalPodAutoscaling)) { + return super.equals(obj); + } + com.google.container.v1.HorizontalPodAutoscaling other = (com.google.container.v1.HorizontalPodAutoscaling) obj; + + if (getDisabled() + != other.getDisabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.HorizontalPodAutoscaling parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.HorizontalPodAutoscaling parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.HorizontalPodAutoscaling parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.HorizontalPodAutoscaling parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.HorizontalPodAutoscaling parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.HorizontalPodAutoscaling parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.HorizontalPodAutoscaling parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.HorizontalPodAutoscaling} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.HorizontalPodAutoscaling) + com.google.container.v1.HorizontalPodAutoscalingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_HorizontalPodAutoscaling_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_HorizontalPodAutoscaling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.HorizontalPodAutoscaling.class, com.google.container.v1.HorizontalPodAutoscaling.Builder.class); + } + + // Construct using com.google.container.v1.HorizontalPodAutoscaling.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + disabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_HorizontalPodAutoscaling_descriptor; + } + + @java.lang.Override + public com.google.container.v1.HorizontalPodAutoscaling getDefaultInstanceForType() { + return com.google.container.v1.HorizontalPodAutoscaling.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.HorizontalPodAutoscaling build() { + com.google.container.v1.HorizontalPodAutoscaling result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.HorizontalPodAutoscaling buildPartial() { + com.google.container.v1.HorizontalPodAutoscaling result = new com.google.container.v1.HorizontalPodAutoscaling(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.HorizontalPodAutoscaling result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.disabled_ = disabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.HorizontalPodAutoscaling) { + return mergeFrom((com.google.container.v1.HorizontalPodAutoscaling)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.HorizontalPodAutoscaling other) { + if (other == com.google.container.v1.HorizontalPodAutoscaling.getDefaultInstance()) return this; + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + disabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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() { + bitField0_ = (bitField0_ & ~0x00000001); + disabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.HorizontalPodAutoscaling) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.HorizontalPodAutoscaling) + private static final com.google.container.v1.HorizontalPodAutoscaling DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.HorizontalPodAutoscaling(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.HorizontalPodAutoscaling getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HorizontalPodAutoscalingOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HorizontalPodAutoscalingOrBuilder.java new file mode 100644 index 000000000000..ac38e27ea7e1 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HorizontalPodAutoscalingOrBuilder.java @@ -0,0 +1,22 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface HorizontalPodAutoscalingOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HttpLoadBalancing.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HttpLoadBalancing.java new file mode 100644 index 000000000000..8c764733c500 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HttpLoadBalancing.java @@ -0,0 +1,507 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * 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.v1.HttpLoadBalancing} + */ +public final class HttpLoadBalancing extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_HttpLoadBalancing_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_HttpLoadBalancing_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.HttpLoadBalancing.class, com.google.container.v1.HttpLoadBalancing.Builder.class); + } + + public static final int DISABLED_FIELD_NUMBER = 1; + private boolean disabled_ = false; + /** + *
+   * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.HttpLoadBalancing)) { + return super.equals(obj); + } + com.google.container.v1.HttpLoadBalancing other = (com.google.container.v1.HttpLoadBalancing) obj; + + if (getDisabled() + != other.getDisabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.HttpLoadBalancing parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.HttpLoadBalancing parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.HttpLoadBalancing parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.HttpLoadBalancing parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.HttpLoadBalancing parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.HttpLoadBalancing parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.HttpLoadBalancing parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.HttpLoadBalancing} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.HttpLoadBalancing) + com.google.container.v1.HttpLoadBalancingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_HttpLoadBalancing_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_HttpLoadBalancing_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.HttpLoadBalancing.class, com.google.container.v1.HttpLoadBalancing.Builder.class); + } + + // Construct using com.google.container.v1.HttpLoadBalancing.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + disabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_HttpLoadBalancing_descriptor; + } + + @java.lang.Override + public com.google.container.v1.HttpLoadBalancing getDefaultInstanceForType() { + return com.google.container.v1.HttpLoadBalancing.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.HttpLoadBalancing build() { + com.google.container.v1.HttpLoadBalancing result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.HttpLoadBalancing buildPartial() { + com.google.container.v1.HttpLoadBalancing result = new com.google.container.v1.HttpLoadBalancing(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.HttpLoadBalancing result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.disabled_ = disabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.HttpLoadBalancing) { + return mergeFrom((com.google.container.v1.HttpLoadBalancing)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.HttpLoadBalancing other) { + if (other == com.google.container.v1.HttpLoadBalancing.getDefaultInstance()) return this; + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + disabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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() { + bitField0_ = (bitField0_ & ~0x00000001); + disabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.HttpLoadBalancing) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.HttpLoadBalancing) + private static final com.google.container.v1.HttpLoadBalancing DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.HttpLoadBalancing(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.HttpLoadBalancing getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HttpLoadBalancingOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HttpLoadBalancingOrBuilder.java new file mode 100644 index 000000000000..4a8ce5175be4 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HttpLoadBalancingOrBuilder.java @@ -0,0 +1,22 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface HttpLoadBalancingOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ILBSubsettingConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ILBSubsettingConfig.java new file mode 100644 index 000000000000..2d142c15676a --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ILBSubsettingConfig.java @@ -0,0 +1,499 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * ILBSubsettingConfig contains the desired config of L4 Internal LoadBalancer
+ * subsetting on this cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1.ILBSubsettingConfig} + */ +public final class ILBSubsettingConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.ILBSubsettingConfig) + ILBSubsettingConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use ILBSubsettingConfig.newBuilder() to construct. + private ILBSubsettingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ILBSubsettingConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ILBSubsettingConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ILBSubsettingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ILBSubsettingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ILBSubsettingConfig.class, com.google.container.v1.ILBSubsettingConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * Enables l4 ILB subsetting for this cluster.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.ILBSubsettingConfig)) { + return super.equals(obj); + } + com.google.container.v1.ILBSubsettingConfig other = (com.google.container.v1.ILBSubsettingConfig) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ILBSubsettingConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ILBSubsettingConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ILBSubsettingConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ILBSubsettingConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ILBSubsettingConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ILBSubsettingConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ILBSubsettingConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.ILBSubsettingConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.ILBSubsettingConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.ILBSubsettingConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.ILBSubsettingConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.ILBSubsettingConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.ILBSubsettingConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ILBSubsettingConfig contains the desired config of L4 Internal LoadBalancer
+   * subsetting on this cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1.ILBSubsettingConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ILBSubsettingConfig) + com.google.container.v1.ILBSubsettingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ILBSubsettingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ILBSubsettingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ILBSubsettingConfig.class, com.google.container.v1.ILBSubsettingConfig.Builder.class); + } + + // Construct using com.google.container.v1.ILBSubsettingConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ILBSubsettingConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ILBSubsettingConfig getDefaultInstanceForType() { + return com.google.container.v1.ILBSubsettingConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ILBSubsettingConfig build() { + com.google.container.v1.ILBSubsettingConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ILBSubsettingConfig buildPartial() { + com.google.container.v1.ILBSubsettingConfig result = new com.google.container.v1.ILBSubsettingConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.ILBSubsettingConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ILBSubsettingConfig) { + return mergeFrom((com.google.container.v1.ILBSubsettingConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ILBSubsettingConfig other) { + if (other == com.google.container.v1.ILBSubsettingConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enabled_ ; + /** + *
+     * Enables l4 ILB subsetting for this cluster.
+     * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Enables l4 ILB subsetting for this cluster.
+     * 
+ * + * bool enabled = 1; + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Enables l4 ILB subsetting for this cluster.
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.ILBSubsettingConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ILBSubsettingConfig) + private static final com.google.container.v1.ILBSubsettingConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.ILBSubsettingConfig(); + } + + public static com.google.container.v1.ILBSubsettingConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ILBSubsettingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.ILBSubsettingConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ILBSubsettingConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ILBSubsettingConfigOrBuilder.java new file mode 100644 index 000000000000..34851d4f734c --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ILBSubsettingConfigOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface ILBSubsettingConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ILBSubsettingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Enables l4 ILB subsetting for this cluster.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java new file mode 100644 index 000000000000..f2cb8bc26aa5 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java @@ -0,0 +1,4173 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Configuration for controlling how IPs are allocated in the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1.IPAllocationPolicy} + */ +public final class IPAllocationPolicy extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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_ = ""; + stackType_ = 0; + ipv6AccessType_ = 0; + subnetIpv6CidrBlock_ = ""; + servicesIpv6CidrBlock_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new IPAllocationPolicy(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_IPAllocationPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_IPAllocationPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.IPAllocationPolicy.class, com.google.container.v1.IPAllocationPolicy.Builder.class); + } + + private int bitField0_; + public static final int USE_IP_ALIASES_FIELD_NUMBER = 1; + private boolean useIpAliases_ = false; + /** + *
+   * 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_ = false; + /** + *
+   * 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + private volatile java.lang.Object clusterIpv4Cidr_ = ""; + /** + *
+   * This field is deprecated, use cluster_ipv4_cidr_block.
+   * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. + * See google/container/v1/cluster_service.proto;l=1484 + * @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]; + * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. + * See google/container/v1/cluster_service.proto;l=1484 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object nodeIpv4Cidr_ = ""; + /** + *
+   * This field is deprecated, use node_ipv4_cidr_block.
+   * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. + * See google/container/v1/cluster_service.proto;l=1487 + * @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]; + * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. + * See google/container/v1/cluster_service.proto;l=1487 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object servicesIpv4Cidr_ = ""; + /** + *
+   * This field is deprecated, use services_ipv4_cidr_block.
+   * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. + * See google/container/v1/cluster_service.proto;l=1490 + * @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]; + * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. + * See google/container/v1/cluster_service.proto;l=1490 + * @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; + @SuppressWarnings("serial") + 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 is true 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 is true 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; + @SuppressWarnings("serial") + private volatile java.lang.Object servicesSecondaryRangeName_ = ""; + /** + *
+   * The name of the secondary range to be used as for the services
+   * CIDR block.  The secondary range will be used for service
+   * ClusterIPs. This must be an existing secondary range associated
+   * with the cluster subnetwork.
+   *
+   * This field is only applicable with use_ip_aliases is true and
+   * create_subnetwork is false.
+   * 
+ * + * string services_secondary_range_name = 8; + * @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 is true 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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 TPU_IPV4_CIDR_BLOCK_FIELD_NUMBER = 13; + @SuppressWarnings("serial") + private volatile java.lang.Object tpuIpv4CidrBlock_ = ""; + /** + *
+   * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
+   * range will be automatically chosen with the default size.
+   *
+   * This field is only applicable when `use_ip_aliases` is true.
+   *
+   * If unspecified, the range will use the default size.
+   *
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   *
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string tpu_ipv4_cidr_block = 13; + * @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.
+   * 
+ * + * 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_ = false; + /** + *
+   * 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_; + } + + public static final int STACK_TYPE_FIELD_NUMBER = 16; + private int stackType_ = 0; + /** + *
+   * The IP stack type of the cluster
+   * 
+ * + * .google.container.v1.StackType stack_type = 16; + * @return The enum numeric value on the wire for stackType. + */ + @java.lang.Override public int getStackTypeValue() { + return stackType_; + } + /** + *
+   * The IP stack type of the cluster
+   * 
+ * + * .google.container.v1.StackType stack_type = 16; + * @return The stackType. + */ + @java.lang.Override public com.google.container.v1.StackType getStackType() { + com.google.container.v1.StackType result = com.google.container.v1.StackType.forNumber(stackType_); + return result == null ? com.google.container.v1.StackType.UNRECOGNIZED : result; + } + + public static final int IPV6_ACCESS_TYPE_FIELD_NUMBER = 17; + private int ipv6AccessType_ = 0; + /** + *
+   * The ipv6 access type (internal or external) when create_subnetwork is true
+   * 
+ * + * .google.container.v1.IPv6AccessType ipv6_access_type = 17; + * @return The enum numeric value on the wire for ipv6AccessType. + */ + @java.lang.Override public int getIpv6AccessTypeValue() { + return ipv6AccessType_; + } + /** + *
+   * The ipv6 access type (internal or external) when create_subnetwork is true
+   * 
+ * + * .google.container.v1.IPv6AccessType ipv6_access_type = 17; + * @return The ipv6AccessType. + */ + @java.lang.Override public com.google.container.v1.IPv6AccessType getIpv6AccessType() { + com.google.container.v1.IPv6AccessType result = com.google.container.v1.IPv6AccessType.forNumber(ipv6AccessType_); + return result == null ? com.google.container.v1.IPv6AccessType.UNRECOGNIZED : result; + } + + public static final int POD_CIDR_OVERPROVISION_CONFIG_FIELD_NUMBER = 21; + private com.google.container.v1.PodCIDROverprovisionConfig podCidrOverprovisionConfig_; + /** + *
+   * [PRIVATE FIELD]
+   * Pod CIDR size overprovisioning config for the cluster.
+   *
+   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+   * of max_pods_per_node is doubled and then rounded off to next power of 2 to
+   * get the size of pod CIDR block per node.
+   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+   *
+   * This config can disable the doubling of IPs (we still round off to next
+   * power of 2)
+   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+   * overprovisioning is disabled.
+   * 
+ * + * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; + * @return Whether the podCidrOverprovisionConfig field is set. + */ + @java.lang.Override + public boolean hasPodCidrOverprovisionConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * [PRIVATE FIELD]
+   * Pod CIDR size overprovisioning config for the cluster.
+   *
+   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+   * of max_pods_per_node is doubled and then rounded off to next power of 2 to
+   * get the size of pod CIDR block per node.
+   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+   *
+   * This config can disable the doubling of IPs (we still round off to next
+   * power of 2)
+   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+   * overprovisioning is disabled.
+   * 
+ * + * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; + * @return The podCidrOverprovisionConfig. + */ + @java.lang.Override + public com.google.container.v1.PodCIDROverprovisionConfig getPodCidrOverprovisionConfig() { + return podCidrOverprovisionConfig_ == null ? com.google.container.v1.PodCIDROverprovisionConfig.getDefaultInstance() : podCidrOverprovisionConfig_; + } + /** + *
+   * [PRIVATE FIELD]
+   * Pod CIDR size overprovisioning config for the cluster.
+   *
+   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+   * of max_pods_per_node is doubled and then rounded off to next power of 2 to
+   * get the size of pod CIDR block per node.
+   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+   *
+   * This config can disable the doubling of IPs (we still round off to next
+   * power of 2)
+   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+   * overprovisioning is disabled.
+   * 
+ * + * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; + */ + @java.lang.Override + public com.google.container.v1.PodCIDROverprovisionConfigOrBuilder getPodCidrOverprovisionConfigOrBuilder() { + return podCidrOverprovisionConfig_ == null ? com.google.container.v1.PodCIDROverprovisionConfig.getDefaultInstance() : podCidrOverprovisionConfig_; + } + + public static final int SUBNET_IPV6_CIDR_BLOCK_FIELD_NUMBER = 22; + @SuppressWarnings("serial") + private volatile java.lang.Object subnetIpv6CidrBlock_ = ""; + /** + *
+   * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
+   * pods.
+   * 
+ * + * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The subnetIpv6CidrBlock. + */ + @java.lang.Override + public java.lang.String getSubnetIpv6CidrBlock() { + java.lang.Object ref = subnetIpv6CidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetIpv6CidrBlock_ = s; + return s; + } + } + /** + *
+   * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
+   * pods.
+   * 
+ * + * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for subnetIpv6CidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSubnetIpv6CidrBlockBytes() { + java.lang.Object ref = subnetIpv6CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subnetIpv6CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICES_IPV6_CIDR_BLOCK_FIELD_NUMBER = 23; + @SuppressWarnings("serial") + private volatile java.lang.Object servicesIpv6CidrBlock_ = ""; + /** + *
+   * Output only. [Output only] The services IPv6 CIDR block for the cluster.
+   * 
+ * + * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The servicesIpv6CidrBlock. + */ + @java.lang.Override + public java.lang.String getServicesIpv6CidrBlock() { + java.lang.Object ref = servicesIpv6CidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesIpv6CidrBlock_ = s; + return s; + } + } + /** + *
+   * Output only. [Output only] The services IPv6 CIDR block for the cluster.
+   * 
+ * + * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for servicesIpv6CidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getServicesIpv6CidrBlockBytes() { + java.lang.Object ref = servicesIpv6CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + servicesIpv6CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADDITIONAL_POD_RANGES_CONFIG_FIELD_NUMBER = 24; + private com.google.container.v1.AdditionalPodRangesConfig additionalPodRangesConfig_; + /** + *
+   * Output only. [Output only] The additional pod ranges that are added to the
+   * cluster. These pod ranges can be used by new node pools to allocate pod IPs
+   * automatically. Once the range is removed it will not show up in
+   * IPAllocationPolicy.
+   * 
+ * + * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the additionalPodRangesConfig field is set. + */ + @java.lang.Override + public boolean hasAdditionalPodRangesConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * Output only. [Output only] The additional pod ranges that are added to the
+   * cluster. These pod ranges can be used by new node pools to allocate pod IPs
+   * automatically. Once the range is removed it will not show up in
+   * IPAllocationPolicy.
+   * 
+ * + * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The additionalPodRangesConfig. + */ + @java.lang.Override + public com.google.container.v1.AdditionalPodRangesConfig getAdditionalPodRangesConfig() { + return additionalPodRangesConfig_ == null ? com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance() : additionalPodRangesConfig_; + } + /** + *
+   * Output only. [Output only] The additional pod ranges that are added to the
+   * cluster. These pod ranges can be used by new node pools to allocate pod IPs
+   * automatically. Once the range is removed it will not show up in
+   * IPAllocationPolicy.
+   * 
+ * + * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.container.v1.AdditionalPodRangesConfigOrBuilder getAdditionalPodRangesConfigOrBuilder() { + return additionalPodRangesConfig_ == null ? com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance() : additionalPodRangesConfig_; + } + + public static final int DEFAULT_POD_IPV4_RANGE_UTILIZATION_FIELD_NUMBER = 25; + private double defaultPodIpv4RangeUtilization_ = 0D; + /** + *
+   * Output only. [Output only] The utilization of the cluster default IPv4
+   * range for the pod. The ratio is Usage/[Total number of IPs in the secondary
+   * range], Usage=numNodes*numZones*podIPsPerNode.
+   * 
+ * + * double default_pod_ipv4_range_utilization = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The defaultPodIpv4RangeUtilization. + */ + @java.lang.Override + public double getDefaultPodIpv4RangeUtilization() { + return defaultPodIpv4RangeUtilization_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetworkName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, subnetworkName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterIpv4Cidr_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, clusterIpv4Cidr_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeIpv4Cidr_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, nodeIpv4Cidr_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesIpv4Cidr_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, servicesIpv4Cidr_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterSecondaryRangeName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, clusterSecondaryRangeName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesSecondaryRangeName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, servicesSecondaryRangeName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterIpv4CidrBlock_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, clusterIpv4CidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeIpv4CidrBlock_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, nodeIpv4CidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesIpv4CidrBlock_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, servicesIpv4CidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tpuIpv4CidrBlock_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, tpuIpv4CidrBlock_); + } + if (useRoutes_ != false) { + output.writeBool(15, useRoutes_); + } + if (stackType_ != com.google.container.v1.StackType.STACK_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(16, stackType_); + } + if (ipv6AccessType_ != com.google.container.v1.IPv6AccessType.IPV6_ACCESS_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(17, ipv6AccessType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(21, getPodCidrOverprovisionConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetIpv6CidrBlock_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 22, subnetIpv6CidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesIpv6CidrBlock_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 23, servicesIpv6CidrBlock_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(24, getAdditionalPodRangesConfig()); + } + if (java.lang.Double.doubleToRawLongBits(defaultPodIpv4RangeUtilization_) != 0) { + output.writeDouble(25, defaultPodIpv4RangeUtilization_); + } + getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetworkName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, subnetworkName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterIpv4Cidr_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, clusterIpv4Cidr_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeIpv4Cidr_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, nodeIpv4Cidr_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesIpv4Cidr_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, servicesIpv4Cidr_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterSecondaryRangeName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, clusterSecondaryRangeName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesSecondaryRangeName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, servicesSecondaryRangeName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterIpv4CidrBlock_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, clusterIpv4CidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeIpv4CidrBlock_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, nodeIpv4CidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesIpv4CidrBlock_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, servicesIpv4CidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tpuIpv4CidrBlock_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, tpuIpv4CidrBlock_); + } + if (useRoutes_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(15, useRoutes_); + } + if (stackType_ != com.google.container.v1.StackType.STACK_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(16, stackType_); + } + if (ipv6AccessType_ != com.google.container.v1.IPv6AccessType.IPV6_ACCESS_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(17, ipv6AccessType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, getPodCidrOverprovisionConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetIpv6CidrBlock_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, subnetIpv6CidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesIpv6CidrBlock_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, servicesIpv6CidrBlock_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(24, getAdditionalPodRangesConfig()); + } + if (java.lang.Double.doubleToRawLongBits(defaultPodIpv4RangeUtilization_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(25, defaultPodIpv4RangeUtilization_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.IPAllocationPolicy)) { + return super.equals(obj); + } + com.google.container.v1.IPAllocationPolicy other = (com.google.container.v1.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 (!getTpuIpv4CidrBlock() + .equals(other.getTpuIpv4CidrBlock())) return false; + if (getUseRoutes() + != other.getUseRoutes()) return false; + if (stackType_ != other.stackType_) return false; + if (ipv6AccessType_ != other.ipv6AccessType_) return false; + if (hasPodCidrOverprovisionConfig() != other.hasPodCidrOverprovisionConfig()) return false; + if (hasPodCidrOverprovisionConfig()) { + if (!getPodCidrOverprovisionConfig() + .equals(other.getPodCidrOverprovisionConfig())) return false; + } + if (!getSubnetIpv6CidrBlock() + .equals(other.getSubnetIpv6CidrBlock())) return false; + if (!getServicesIpv6CidrBlock() + .equals(other.getServicesIpv6CidrBlock())) return false; + if (hasAdditionalPodRangesConfig() != other.hasAdditionalPodRangesConfig()) return false; + if (hasAdditionalPodRangesConfig()) { + if (!getAdditionalPodRangesConfig() + .equals(other.getAdditionalPodRangesConfig())) return false; + } + if (java.lang.Double.doubleToLongBits(getDefaultPodIpv4RangeUtilization()) + != java.lang.Double.doubleToLongBits( + other.getDefaultPodIpv4RangeUtilization())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + 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 = (37 * hash) + STACK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + stackType_; + hash = (37 * hash) + IPV6_ACCESS_TYPE_FIELD_NUMBER; + hash = (53 * hash) + ipv6AccessType_; + if (hasPodCidrOverprovisionConfig()) { + hash = (37 * hash) + POD_CIDR_OVERPROVISION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPodCidrOverprovisionConfig().hashCode(); + } + hash = (37 * hash) + SUBNET_IPV6_CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getSubnetIpv6CidrBlock().hashCode(); + hash = (37 * hash) + SERVICES_IPV6_CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getServicesIpv6CidrBlock().hashCode(); + if (hasAdditionalPodRangesConfig()) { + hash = (37 * hash) + ADDITIONAL_POD_RANGES_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalPodRangesConfig().hashCode(); + } + hash = (37 * hash) + DEFAULT_POD_IPV4_RANGE_UTILIZATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDefaultPodIpv4RangeUtilization())); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.IPAllocationPolicy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.IPAllocationPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.IPAllocationPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.IPAllocationPolicy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.IPAllocationPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.IPAllocationPolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.IPAllocationPolicy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.IPAllocationPolicy} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.IPAllocationPolicy) + com.google.container.v1.IPAllocationPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_IPAllocationPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_IPAllocationPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.IPAllocationPolicy.class, com.google.container.v1.IPAllocationPolicy.Builder.class); + } + + // Construct using com.google.container.v1.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) { + getPodCidrOverprovisionConfigFieldBuilder(); + getAdditionalPodRangesConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + useIpAliases_ = false; + createSubnetwork_ = false; + subnetworkName_ = ""; + clusterIpv4Cidr_ = ""; + nodeIpv4Cidr_ = ""; + servicesIpv4Cidr_ = ""; + clusterSecondaryRangeName_ = ""; + servicesSecondaryRangeName_ = ""; + clusterIpv4CidrBlock_ = ""; + nodeIpv4CidrBlock_ = ""; + servicesIpv4CidrBlock_ = ""; + tpuIpv4CidrBlock_ = ""; + useRoutes_ = false; + stackType_ = 0; + ipv6AccessType_ = 0; + podCidrOverprovisionConfig_ = null; + if (podCidrOverprovisionConfigBuilder_ != null) { + podCidrOverprovisionConfigBuilder_.dispose(); + podCidrOverprovisionConfigBuilder_ = null; + } + subnetIpv6CidrBlock_ = ""; + servicesIpv6CidrBlock_ = ""; + additionalPodRangesConfig_ = null; + if (additionalPodRangesConfigBuilder_ != null) { + additionalPodRangesConfigBuilder_.dispose(); + additionalPodRangesConfigBuilder_ = null; + } + defaultPodIpv4RangeUtilization_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_IPAllocationPolicy_descriptor; + } + + @java.lang.Override + public com.google.container.v1.IPAllocationPolicy getDefaultInstanceForType() { + return com.google.container.v1.IPAllocationPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.IPAllocationPolicy build() { + com.google.container.v1.IPAllocationPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.IPAllocationPolicy buildPartial() { + com.google.container.v1.IPAllocationPolicy result = new com.google.container.v1.IPAllocationPolicy(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.IPAllocationPolicy result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.useIpAliases_ = useIpAliases_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createSubnetwork_ = createSubnetwork_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.subnetworkName_ = subnetworkName_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.clusterIpv4Cidr_ = clusterIpv4Cidr_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.nodeIpv4Cidr_ = nodeIpv4Cidr_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.servicesIpv4Cidr_ = servicesIpv4Cidr_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.clusterSecondaryRangeName_ = clusterSecondaryRangeName_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.servicesSecondaryRangeName_ = servicesSecondaryRangeName_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.clusterIpv4CidrBlock_ = clusterIpv4CidrBlock_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.nodeIpv4CidrBlock_ = nodeIpv4CidrBlock_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.servicesIpv4CidrBlock_ = servicesIpv4CidrBlock_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.tpuIpv4CidrBlock_ = tpuIpv4CidrBlock_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.useRoutes_ = useRoutes_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.stackType_ = stackType_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.ipv6AccessType_ = ipv6AccessType_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00008000) != 0)) { + result.podCidrOverprovisionConfig_ = podCidrOverprovisionConfigBuilder_ == null + ? podCidrOverprovisionConfig_ + : podCidrOverprovisionConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.subnetIpv6CidrBlock_ = subnetIpv6CidrBlock_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.servicesIpv6CidrBlock_ = servicesIpv6CidrBlock_; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.additionalPodRangesConfig_ = additionalPodRangesConfigBuilder_ == null + ? additionalPodRangesConfig_ + : additionalPodRangesConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.defaultPodIpv4RangeUtilization_ = defaultPodIpv4RangeUtilization_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.IPAllocationPolicy) { + return mergeFrom((com.google.container.v1.IPAllocationPolicy)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.IPAllocationPolicy other) { + if (other == com.google.container.v1.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_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getClusterIpv4Cidr().isEmpty()) { + clusterIpv4Cidr_ = other.clusterIpv4Cidr_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getNodeIpv4Cidr().isEmpty()) { + nodeIpv4Cidr_ = other.nodeIpv4Cidr_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getServicesIpv4Cidr().isEmpty()) { + servicesIpv4Cidr_ = other.servicesIpv4Cidr_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getClusterSecondaryRangeName().isEmpty()) { + clusterSecondaryRangeName_ = other.clusterSecondaryRangeName_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getServicesSecondaryRangeName().isEmpty()) { + servicesSecondaryRangeName_ = other.servicesSecondaryRangeName_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getClusterIpv4CidrBlock().isEmpty()) { + clusterIpv4CidrBlock_ = other.clusterIpv4CidrBlock_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.getNodeIpv4CidrBlock().isEmpty()) { + nodeIpv4CidrBlock_ = other.nodeIpv4CidrBlock_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (!other.getServicesIpv4CidrBlock().isEmpty()) { + servicesIpv4CidrBlock_ = other.servicesIpv4CidrBlock_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (!other.getTpuIpv4CidrBlock().isEmpty()) { + tpuIpv4CidrBlock_ = other.tpuIpv4CidrBlock_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (other.getUseRoutes() != false) { + setUseRoutes(other.getUseRoutes()); + } + if (other.stackType_ != 0) { + setStackTypeValue(other.getStackTypeValue()); + } + if (other.ipv6AccessType_ != 0) { + setIpv6AccessTypeValue(other.getIpv6AccessTypeValue()); + } + if (other.hasPodCidrOverprovisionConfig()) { + mergePodCidrOverprovisionConfig(other.getPodCidrOverprovisionConfig()); + } + if (!other.getSubnetIpv6CidrBlock().isEmpty()) { + subnetIpv6CidrBlock_ = other.subnetIpv6CidrBlock_; + bitField0_ |= 0x00010000; + onChanged(); + } + if (!other.getServicesIpv6CidrBlock().isEmpty()) { + servicesIpv6CidrBlock_ = other.servicesIpv6CidrBlock_; + bitField0_ |= 0x00020000; + onChanged(); + } + if (other.hasAdditionalPodRangesConfig()) { + mergeAdditionalPodRangesConfig(other.getAdditionalPodRangesConfig()); + } + if (other.getDefaultPodIpv4RangeUtilization() != 0D) { + setDefaultPodIpv4RangeUtilization(other.getDefaultPodIpv4RangeUtilization()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + useIpAliases_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + createSubnetwork_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + subnetworkName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + clusterIpv4Cidr_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + nodeIpv4Cidr_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + servicesIpv4Cidr_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + clusterSecondaryRangeName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + servicesSecondaryRangeName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: { + clusterIpv4CidrBlock_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: { + nodeIpv4CidrBlock_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: { + servicesIpv4CidrBlock_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 106: { + tpuIpv4CidrBlock_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 106 + case 120: { + useRoutes_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 120 + case 128: { + stackType_ = input.readEnum(); + bitField0_ |= 0x00002000; + break; + } // case 128 + case 136: { + ipv6AccessType_ = input.readEnum(); + bitField0_ |= 0x00004000; + break; + } // case 136 + case 170: { + input.readMessage( + getPodCidrOverprovisionConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 170 + case 178: { + subnetIpv6CidrBlock_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00010000; + break; + } // case 178 + case 186: { + servicesIpv6CidrBlock_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00020000; + break; + } // case 186 + case 194: { + input.readMessage( + getAdditionalPodRangesConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00040000; + break; + } // case 194 + case 201: { + defaultPodIpv4RangeUtilization_ = input.readDouble(); + bitField0_ |= 0x00080000; + break; + } // case 201 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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() { + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000002; + 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() { + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000004; + 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(); + bitField0_ = (bitField0_ & ~0x00000004); + 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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object clusterIpv4Cidr_ = ""; + /** + *
+     * This field is deprecated, use cluster_ipv4_cidr_block.
+     * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. + * See google/container/v1/cluster_service.proto;l=1484 + * @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]; + * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. + * See google/container/v1/cluster_service.proto;l=1484 + * @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]; + * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. + * See google/container/v1/cluster_service.proto;l=1484 + * @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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * This field is deprecated, use cluster_ipv4_cidr_block.
+     * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. + * See google/container/v1/cluster_service.proto;l=1484 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterIpv4Cidr() { + clusterIpv4Cidr_ = getDefaultInstance().getClusterIpv4Cidr(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * This field is deprecated, use cluster_ipv4_cidr_block.
+     * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. + * See google/container/v1/cluster_service.proto;l=1484 + * @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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object nodeIpv4Cidr_ = ""; + /** + *
+     * This field is deprecated, use node_ipv4_cidr_block.
+     * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. + * See google/container/v1/cluster_service.proto;l=1487 + * @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]; + * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. + * See google/container/v1/cluster_service.proto;l=1487 + * @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]; + * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. + * See google/container/v1/cluster_service.proto;l=1487 + * @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; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * This field is deprecated, use node_ipv4_cidr_block.
+     * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. + * See google/container/v1/cluster_service.proto;l=1487 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearNodeIpv4Cidr() { + nodeIpv4Cidr_ = getDefaultInstance().getNodeIpv4Cidr(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+     * This field is deprecated, use node_ipv4_cidr_block.
+     * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. + * See google/container/v1/cluster_service.proto;l=1487 + * @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; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object servicesIpv4Cidr_ = ""; + /** + *
+     * This field is deprecated, use services_ipv4_cidr_block.
+     * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. + * See google/container/v1/cluster_service.proto;l=1490 + * @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]; + * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. + * See google/container/v1/cluster_service.proto;l=1490 + * @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]; + * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. + * See google/container/v1/cluster_service.proto;l=1490 + * @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; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * This field is deprecated, use services_ipv4_cidr_block.
+     * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. + * See google/container/v1/cluster_service.proto;l=1490 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearServicesIpv4Cidr() { + servicesIpv4Cidr_ = getDefaultInstance().getServicesIpv4Cidr(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + *
+     * This field is deprecated, use services_ipv4_cidr_block.
+     * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. + * See google/container/v1/cluster_service.proto;l=1490 + * @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; + bitField0_ |= 0x00000020; + 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 is true 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 is true 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 is true 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; + bitField0_ |= 0x00000040; + 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 is true and
+     * create_subnetwork is false.
+     * 
+ * + * string cluster_secondary_range_name = 7; + * @return This builder for chaining. + */ + public Builder clearClusterSecondaryRangeName() { + clusterSecondaryRangeName_ = getDefaultInstance().getClusterSecondaryRangeName(); + bitField0_ = (bitField0_ & ~0x00000040); + 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 is true 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; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object servicesSecondaryRangeName_ = ""; + /** + *
+     * The name of the secondary range to be used as for the services
+     * CIDR block.  The secondary range will be used for service
+     * ClusterIPs. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     *
+     * This field is only applicable with use_ip_aliases is true and
+     * create_subnetwork is false.
+     * 
+ * + * string services_secondary_range_name = 8; + * @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 is true 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 is true 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; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * The name of the secondary range to be used as for the services
+     * CIDR block.  The secondary range will be used for service
+     * ClusterIPs. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     *
+     * This field is only applicable with use_ip_aliases is true and
+     * create_subnetwork is false.
+     * 
+ * + * string services_secondary_range_name = 8; + * @return This builder for chaining. + */ + public Builder clearServicesSecondaryRangeName() { + servicesSecondaryRangeName_ = getDefaultInstance().getServicesSecondaryRangeName(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + *
+     * The name of the secondary range to be used as for the services
+     * CIDR block.  The secondary range will be used for service
+     * ClusterIPs. This must be an existing secondary range associated
+     * with the cluster subnetwork.
+     *
+     * This field is only applicable with use_ip_aliases is true and
+     * create_subnetwork is false.
+     * 
+ * + * string services_secondary_range_name = 8; + * @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; + bitField0_ |= 0x00000080; + 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; + bitField0_ |= 0x00000100; + 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(); + bitField0_ = (bitField0_ & ~0x00000100); + 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; + bitField0_ |= 0x00000100; + 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; + bitField0_ |= 0x00000200; + 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(); + bitField0_ = (bitField0_ & ~0x00000200); + 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; + bitField0_ |= 0x00000200; + 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; + bitField0_ |= 0x00000400; + 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(); + bitField0_ = (bitField0_ & ~0x00000400); + 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; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private java.lang.Object tpuIpv4CidrBlock_ = ""; + /** + *
+     * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
+     * range will be automatically chosen with the default size.
+     *
+     * This field is only applicable when `use_ip_aliases` is true.
+     *
+     * If unspecified, the range will use the default size.
+     *
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     *
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string tpu_ipv4_cidr_block = 13; + * @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.
+     * 
+ * + * 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.
+     * 
+ * + * 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; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
+     * range will be automatically chosen with the default size.
+     *
+     * This field is only applicable when `use_ip_aliases` is true.
+     *
+     * If unspecified, the range will use the default size.
+     *
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     *
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string tpu_ipv4_cidr_block = 13; + * @return This builder for chaining. + */ + public Builder clearTpuIpv4CidrBlock() { + tpuIpv4CidrBlock_ = getDefaultInstance().getTpuIpv4CidrBlock(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + /** + *
+     * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
+     * range will be automatically chosen with the default size.
+     *
+     * This field is only applicable when `use_ip_aliases` is true.
+     *
+     * If unspecified, the range will use the default size.
+     *
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     *
+     * Set to a
+     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+     * to use.
+     * 
+ * + * string tpu_ipv4_cidr_block = 13; + * @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; + bitField0_ |= 0x00000800; + 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; + bitField0_ |= 0x00001000; + 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() { + bitField0_ = (bitField0_ & ~0x00001000); + useRoutes_ = false; + onChanged(); + return this; + } + + private int stackType_ = 0; + /** + *
+     * The IP stack type of the cluster
+     * 
+ * + * .google.container.v1.StackType stack_type = 16; + * @return The enum numeric value on the wire for stackType. + */ + @java.lang.Override public int getStackTypeValue() { + return stackType_; + } + /** + *
+     * The IP stack type of the cluster
+     * 
+ * + * .google.container.v1.StackType stack_type = 16; + * @param value The enum numeric value on the wire for stackType to set. + * @return This builder for chaining. + */ + public Builder setStackTypeValue(int value) { + stackType_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + *
+     * The IP stack type of the cluster
+     * 
+ * + * .google.container.v1.StackType stack_type = 16; + * @return The stackType. + */ + @java.lang.Override + public com.google.container.v1.StackType getStackType() { + com.google.container.v1.StackType result = com.google.container.v1.StackType.forNumber(stackType_); + return result == null ? com.google.container.v1.StackType.UNRECOGNIZED : result; + } + /** + *
+     * The IP stack type of the cluster
+     * 
+ * + * .google.container.v1.StackType stack_type = 16; + * @param value The stackType to set. + * @return This builder for chaining. + */ + public Builder setStackType(com.google.container.v1.StackType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00002000; + stackType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The IP stack type of the cluster
+     * 
+ * + * .google.container.v1.StackType stack_type = 16; + * @return This builder for chaining. + */ + public Builder clearStackType() { + bitField0_ = (bitField0_ & ~0x00002000); + stackType_ = 0; + onChanged(); + return this; + } + + private int ipv6AccessType_ = 0; + /** + *
+     * The ipv6 access type (internal or external) when create_subnetwork is true
+     * 
+ * + * .google.container.v1.IPv6AccessType ipv6_access_type = 17; + * @return The enum numeric value on the wire for ipv6AccessType. + */ + @java.lang.Override public int getIpv6AccessTypeValue() { + return ipv6AccessType_; + } + /** + *
+     * The ipv6 access type (internal or external) when create_subnetwork is true
+     * 
+ * + * .google.container.v1.IPv6AccessType ipv6_access_type = 17; + * @param value The enum numeric value on the wire for ipv6AccessType to set. + * @return This builder for chaining. + */ + public Builder setIpv6AccessTypeValue(int value) { + ipv6AccessType_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + *
+     * The ipv6 access type (internal or external) when create_subnetwork is true
+     * 
+ * + * .google.container.v1.IPv6AccessType ipv6_access_type = 17; + * @return The ipv6AccessType. + */ + @java.lang.Override + public com.google.container.v1.IPv6AccessType getIpv6AccessType() { + com.google.container.v1.IPv6AccessType result = com.google.container.v1.IPv6AccessType.forNumber(ipv6AccessType_); + return result == null ? com.google.container.v1.IPv6AccessType.UNRECOGNIZED : result; + } + /** + *
+     * The ipv6 access type (internal or external) when create_subnetwork is true
+     * 
+ * + * .google.container.v1.IPv6AccessType ipv6_access_type = 17; + * @param value The ipv6AccessType to set. + * @return This builder for chaining. + */ + public Builder setIpv6AccessType(com.google.container.v1.IPv6AccessType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00004000; + ipv6AccessType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The ipv6 access type (internal or external) when create_subnetwork is true
+     * 
+ * + * .google.container.v1.IPv6AccessType ipv6_access_type = 17; + * @return This builder for chaining. + */ + public Builder clearIpv6AccessType() { + bitField0_ = (bitField0_ & ~0x00004000); + ipv6AccessType_ = 0; + onChanged(); + return this; + } + + private com.google.container.v1.PodCIDROverprovisionConfig podCidrOverprovisionConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.PodCIDROverprovisionConfig, com.google.container.v1.PodCIDROverprovisionConfig.Builder, com.google.container.v1.PodCIDROverprovisionConfigOrBuilder> podCidrOverprovisionConfigBuilder_; + /** + *
+     * [PRIVATE FIELD]
+     * Pod CIDR size overprovisioning config for the cluster.
+     *
+     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+     * of max_pods_per_node is doubled and then rounded off to next power of 2 to
+     * get the size of pod CIDR block per node.
+     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+     *
+     * This config can disable the doubling of IPs (we still round off to next
+     * power of 2)
+     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+     * overprovisioning is disabled.
+     * 
+ * + * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; + * @return Whether the podCidrOverprovisionConfig field is set. + */ + public boolean hasPodCidrOverprovisionConfig() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + *
+     * [PRIVATE FIELD]
+     * Pod CIDR size overprovisioning config for the cluster.
+     *
+     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+     * of max_pods_per_node is doubled and then rounded off to next power of 2 to
+     * get the size of pod CIDR block per node.
+     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+     *
+     * This config can disable the doubling of IPs (we still round off to next
+     * power of 2)
+     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+     * overprovisioning is disabled.
+     * 
+ * + * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; + * @return The podCidrOverprovisionConfig. + */ + public com.google.container.v1.PodCIDROverprovisionConfig getPodCidrOverprovisionConfig() { + if (podCidrOverprovisionConfigBuilder_ == null) { + return podCidrOverprovisionConfig_ == null ? com.google.container.v1.PodCIDROverprovisionConfig.getDefaultInstance() : podCidrOverprovisionConfig_; + } else { + return podCidrOverprovisionConfigBuilder_.getMessage(); + } + } + /** + *
+     * [PRIVATE FIELD]
+     * Pod CIDR size overprovisioning config for the cluster.
+     *
+     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+     * of max_pods_per_node is doubled and then rounded off to next power of 2 to
+     * get the size of pod CIDR block per node.
+     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+     *
+     * This config can disable the doubling of IPs (we still round off to next
+     * power of 2)
+     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+     * overprovisioning is disabled.
+     * 
+ * + * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; + */ + public Builder setPodCidrOverprovisionConfig(com.google.container.v1.PodCIDROverprovisionConfig value) { + if (podCidrOverprovisionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + podCidrOverprovisionConfig_ = value; + } else { + podCidrOverprovisionConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + *
+     * [PRIVATE FIELD]
+     * Pod CIDR size overprovisioning config for the cluster.
+     *
+     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+     * of max_pods_per_node is doubled and then rounded off to next power of 2 to
+     * get the size of pod CIDR block per node.
+     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+     *
+     * This config can disable the doubling of IPs (we still round off to next
+     * power of 2)
+     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+     * overprovisioning is disabled.
+     * 
+ * + * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; + */ + public Builder setPodCidrOverprovisionConfig( + com.google.container.v1.PodCIDROverprovisionConfig.Builder builderForValue) { + if (podCidrOverprovisionConfigBuilder_ == null) { + podCidrOverprovisionConfig_ = builderForValue.build(); + } else { + podCidrOverprovisionConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + *
+     * [PRIVATE FIELD]
+     * Pod CIDR size overprovisioning config for the cluster.
+     *
+     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+     * of max_pods_per_node is doubled and then rounded off to next power of 2 to
+     * get the size of pod CIDR block per node.
+     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+     *
+     * This config can disable the doubling of IPs (we still round off to next
+     * power of 2)
+     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+     * overprovisioning is disabled.
+     * 
+ * + * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; + */ + public Builder mergePodCidrOverprovisionConfig(com.google.container.v1.PodCIDROverprovisionConfig value) { + if (podCidrOverprovisionConfigBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) && + podCidrOverprovisionConfig_ != null && + podCidrOverprovisionConfig_ != com.google.container.v1.PodCIDROverprovisionConfig.getDefaultInstance()) { + getPodCidrOverprovisionConfigBuilder().mergeFrom(value); + } else { + podCidrOverprovisionConfig_ = value; + } + } else { + podCidrOverprovisionConfigBuilder_.mergeFrom(value); + } + if (podCidrOverprovisionConfig_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } + return this; + } + /** + *
+     * [PRIVATE FIELD]
+     * Pod CIDR size overprovisioning config for the cluster.
+     *
+     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+     * of max_pods_per_node is doubled and then rounded off to next power of 2 to
+     * get the size of pod CIDR block per node.
+     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+     *
+     * This config can disable the doubling of IPs (we still round off to next
+     * power of 2)
+     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+     * overprovisioning is disabled.
+     * 
+ * + * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; + */ + public Builder clearPodCidrOverprovisionConfig() { + bitField0_ = (bitField0_ & ~0x00008000); + podCidrOverprovisionConfig_ = null; + if (podCidrOverprovisionConfigBuilder_ != null) { + podCidrOverprovisionConfigBuilder_.dispose(); + podCidrOverprovisionConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * [PRIVATE FIELD]
+     * Pod CIDR size overprovisioning config for the cluster.
+     *
+     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+     * of max_pods_per_node is doubled and then rounded off to next power of 2 to
+     * get the size of pod CIDR block per node.
+     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+     *
+     * This config can disable the doubling of IPs (we still round off to next
+     * power of 2)
+     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+     * overprovisioning is disabled.
+     * 
+ * + * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; + */ + public com.google.container.v1.PodCIDROverprovisionConfig.Builder getPodCidrOverprovisionConfigBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return getPodCidrOverprovisionConfigFieldBuilder().getBuilder(); + } + /** + *
+     * [PRIVATE FIELD]
+     * Pod CIDR size overprovisioning config for the cluster.
+     *
+     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+     * of max_pods_per_node is doubled and then rounded off to next power of 2 to
+     * get the size of pod CIDR block per node.
+     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+     *
+     * This config can disable the doubling of IPs (we still round off to next
+     * power of 2)
+     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+     * overprovisioning is disabled.
+     * 
+ * + * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; + */ + public com.google.container.v1.PodCIDROverprovisionConfigOrBuilder getPodCidrOverprovisionConfigOrBuilder() { + if (podCidrOverprovisionConfigBuilder_ != null) { + return podCidrOverprovisionConfigBuilder_.getMessageOrBuilder(); + } else { + return podCidrOverprovisionConfig_ == null ? + com.google.container.v1.PodCIDROverprovisionConfig.getDefaultInstance() : podCidrOverprovisionConfig_; + } + } + /** + *
+     * [PRIVATE FIELD]
+     * Pod CIDR size overprovisioning config for the cluster.
+     *
+     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+     * of max_pods_per_node is doubled and then rounded off to next power of 2 to
+     * get the size of pod CIDR block per node.
+     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+     *
+     * This config can disable the doubling of IPs (we still round off to next
+     * power of 2)
+     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+     * overprovisioning is disabled.
+     * 
+ * + * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.PodCIDROverprovisionConfig, com.google.container.v1.PodCIDROverprovisionConfig.Builder, com.google.container.v1.PodCIDROverprovisionConfigOrBuilder> + getPodCidrOverprovisionConfigFieldBuilder() { + if (podCidrOverprovisionConfigBuilder_ == null) { + podCidrOverprovisionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.PodCIDROverprovisionConfig, com.google.container.v1.PodCIDROverprovisionConfig.Builder, com.google.container.v1.PodCIDROverprovisionConfigOrBuilder>( + getPodCidrOverprovisionConfig(), + getParentForChildren(), + isClean()); + podCidrOverprovisionConfig_ = null; + } + return podCidrOverprovisionConfigBuilder_; + } + + private java.lang.Object subnetIpv6CidrBlock_ = ""; + /** + *
+     * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
+     * pods.
+     * 
+ * + * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The subnetIpv6CidrBlock. + */ + public java.lang.String getSubnetIpv6CidrBlock() { + java.lang.Object ref = subnetIpv6CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetIpv6CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
+     * pods.
+     * 
+ * + * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for subnetIpv6CidrBlock. + */ + public com.google.protobuf.ByteString + getSubnetIpv6CidrBlockBytes() { + java.lang.Object ref = subnetIpv6CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subnetIpv6CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
+     * pods.
+     * 
+ * + * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The subnetIpv6CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setSubnetIpv6CidrBlock( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + subnetIpv6CidrBlock_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + *
+     * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
+     * pods.
+     * 
+ * + * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearSubnetIpv6CidrBlock() { + subnetIpv6CidrBlock_ = getDefaultInstance().getSubnetIpv6CidrBlock(); + bitField0_ = (bitField0_ & ~0x00010000); + onChanged(); + return this; + } + /** + *
+     * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
+     * pods.
+     * 
+ * + * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes for subnetIpv6CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setSubnetIpv6CidrBlockBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + subnetIpv6CidrBlock_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + private java.lang.Object servicesIpv6CidrBlock_ = ""; + /** + *
+     * Output only. [Output only] The services IPv6 CIDR block for the cluster.
+     * 
+ * + * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The servicesIpv6CidrBlock. + */ + public java.lang.String getServicesIpv6CidrBlock() { + java.lang.Object ref = servicesIpv6CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesIpv6CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. [Output only] The services IPv6 CIDR block for the cluster.
+     * 
+ * + * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for servicesIpv6CidrBlock. + */ + public com.google.protobuf.ByteString + getServicesIpv6CidrBlockBytes() { + java.lang.Object ref = servicesIpv6CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + servicesIpv6CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. [Output only] The services IPv6 CIDR block for the cluster.
+     * 
+ * + * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The servicesIpv6CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setServicesIpv6CidrBlock( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + servicesIpv6CidrBlock_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + *
+     * Output only. [Output only] The services IPv6 CIDR block for the cluster.
+     * 
+ * + * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearServicesIpv6CidrBlock() { + servicesIpv6CidrBlock_ = getDefaultInstance().getServicesIpv6CidrBlock(); + bitField0_ = (bitField0_ & ~0x00020000); + onChanged(); + return this; + } + /** + *
+     * Output only. [Output only] The services IPv6 CIDR block for the cluster.
+     * 
+ * + * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes for servicesIpv6CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setServicesIpv6CidrBlockBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + servicesIpv6CidrBlock_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + private com.google.container.v1.AdditionalPodRangesConfig additionalPodRangesConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AdditionalPodRangesConfig, com.google.container.v1.AdditionalPodRangesConfig.Builder, com.google.container.v1.AdditionalPodRangesConfigOrBuilder> additionalPodRangesConfigBuilder_; + /** + *
+     * Output only. [Output only] The additional pod ranges that are added to the
+     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
+     * automatically. Once the range is removed it will not show up in
+     * IPAllocationPolicy.
+     * 
+ * + * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the additionalPodRangesConfig field is set. + */ + public boolean hasAdditionalPodRangesConfig() { + return ((bitField0_ & 0x00040000) != 0); + } + /** + *
+     * Output only. [Output only] The additional pod ranges that are added to the
+     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
+     * automatically. Once the range is removed it will not show up in
+     * IPAllocationPolicy.
+     * 
+ * + * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The additionalPodRangesConfig. + */ + public com.google.container.v1.AdditionalPodRangesConfig getAdditionalPodRangesConfig() { + if (additionalPodRangesConfigBuilder_ == null) { + return additionalPodRangesConfig_ == null ? com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance() : additionalPodRangesConfig_; + } else { + return additionalPodRangesConfigBuilder_.getMessage(); + } + } + /** + *
+     * Output only. [Output only] The additional pod ranges that are added to the
+     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
+     * automatically. Once the range is removed it will not show up in
+     * IPAllocationPolicy.
+     * 
+ * + * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setAdditionalPodRangesConfig(com.google.container.v1.AdditionalPodRangesConfig value) { + if (additionalPodRangesConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + additionalPodRangesConfig_ = value; + } else { + additionalPodRangesConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + *
+     * Output only. [Output only] The additional pod ranges that are added to the
+     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
+     * automatically. Once the range is removed it will not show up in
+     * IPAllocationPolicy.
+     * 
+ * + * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setAdditionalPodRangesConfig( + com.google.container.v1.AdditionalPodRangesConfig.Builder builderForValue) { + if (additionalPodRangesConfigBuilder_ == null) { + additionalPodRangesConfig_ = builderForValue.build(); + } else { + additionalPodRangesConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + *
+     * Output only. [Output only] The additional pod ranges that are added to the
+     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
+     * automatically. Once the range is removed it will not show up in
+     * IPAllocationPolicy.
+     * 
+ * + * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeAdditionalPodRangesConfig(com.google.container.v1.AdditionalPodRangesConfig value) { + if (additionalPodRangesConfigBuilder_ == null) { + if (((bitField0_ & 0x00040000) != 0) && + additionalPodRangesConfig_ != null && + additionalPodRangesConfig_ != com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance()) { + getAdditionalPodRangesConfigBuilder().mergeFrom(value); + } else { + additionalPodRangesConfig_ = value; + } + } else { + additionalPodRangesConfigBuilder_.mergeFrom(value); + } + if (additionalPodRangesConfig_ != null) { + bitField0_ |= 0x00040000; + onChanged(); + } + return this; + } + /** + *
+     * Output only. [Output only] The additional pod ranges that are added to the
+     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
+     * automatically. Once the range is removed it will not show up in
+     * IPAllocationPolicy.
+     * 
+ * + * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearAdditionalPodRangesConfig() { + bitField0_ = (bitField0_ & ~0x00040000); + additionalPodRangesConfig_ = null; + if (additionalPodRangesConfigBuilder_ != null) { + additionalPodRangesConfigBuilder_.dispose(); + additionalPodRangesConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Output only. [Output only] The additional pod ranges that are added to the
+     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
+     * automatically. Once the range is removed it will not show up in
+     * IPAllocationPolicy.
+     * 
+ * + * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.container.v1.AdditionalPodRangesConfig.Builder getAdditionalPodRangesConfigBuilder() { + bitField0_ |= 0x00040000; + onChanged(); + return getAdditionalPodRangesConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. [Output only] The additional pod ranges that are added to the
+     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
+     * automatically. Once the range is removed it will not show up in
+     * IPAllocationPolicy.
+     * 
+ * + * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.container.v1.AdditionalPodRangesConfigOrBuilder getAdditionalPodRangesConfigOrBuilder() { + if (additionalPodRangesConfigBuilder_ != null) { + return additionalPodRangesConfigBuilder_.getMessageOrBuilder(); + } else { + return additionalPodRangesConfig_ == null ? + com.google.container.v1.AdditionalPodRangesConfig.getDefaultInstance() : additionalPodRangesConfig_; + } + } + /** + *
+     * Output only. [Output only] The additional pod ranges that are added to the
+     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
+     * automatically. Once the range is removed it will not show up in
+     * IPAllocationPolicy.
+     * 
+ * + * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AdditionalPodRangesConfig, com.google.container.v1.AdditionalPodRangesConfig.Builder, com.google.container.v1.AdditionalPodRangesConfigOrBuilder> + getAdditionalPodRangesConfigFieldBuilder() { + if (additionalPodRangesConfigBuilder_ == null) { + additionalPodRangesConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AdditionalPodRangesConfig, com.google.container.v1.AdditionalPodRangesConfig.Builder, com.google.container.v1.AdditionalPodRangesConfigOrBuilder>( + getAdditionalPodRangesConfig(), + getParentForChildren(), + isClean()); + additionalPodRangesConfig_ = null; + } + return additionalPodRangesConfigBuilder_; + } + + private double defaultPodIpv4RangeUtilization_ ; + /** + *
+     * Output only. [Output only] The utilization of the cluster default IPv4
+     * range for the pod. The ratio is Usage/[Total number of IPs in the secondary
+     * range], Usage=numNodes*numZones*podIPsPerNode.
+     * 
+ * + * double default_pod_ipv4_range_utilization = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The defaultPodIpv4RangeUtilization. + */ + @java.lang.Override + public double getDefaultPodIpv4RangeUtilization() { + return defaultPodIpv4RangeUtilization_; + } + /** + *
+     * Output only. [Output only] The utilization of the cluster default IPv4
+     * range for the pod. The ratio is Usage/[Total number of IPs in the secondary
+     * range], Usage=numNodes*numZones*podIPsPerNode.
+     * 
+ * + * double default_pod_ipv4_range_utilization = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The defaultPodIpv4RangeUtilization to set. + * @return This builder for chaining. + */ + public Builder setDefaultPodIpv4RangeUtilization(double value) { + + defaultPodIpv4RangeUtilization_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + *
+     * Output only. [Output only] The utilization of the cluster default IPv4
+     * range for the pod. The ratio is Usage/[Total number of IPs in the secondary
+     * range], Usage=numNodes*numZones*podIPsPerNode.
+     * 
+ * + * double default_pod_ipv4_range_utilization = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearDefaultPodIpv4RangeUtilization() { + bitField0_ = (bitField0_ & ~0x00080000); + defaultPodIpv4RangeUtilization_ = 0D; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.IPAllocationPolicy) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.IPAllocationPolicy) + private static final com.google.container.v1.IPAllocationPolicy DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.IPAllocationPolicy(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.IPAllocationPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java new file mode 100644 index 000000000000..1422a07b98ec --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java @@ -0,0 +1,586 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface IPAllocationPolicyOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.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]; + * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. + * See google/container/v1/cluster_service.proto;l=1484 + * @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]; + * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. + * See google/container/v1/cluster_service.proto;l=1484 + * @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]; + * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. + * See google/container/v1/cluster_service.proto;l=1487 + * @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]; + * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. + * See google/container/v1/cluster_service.proto;l=1487 + * @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]; + * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. + * See google/container/v1/cluster_service.proto;l=1490 + * @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]; + * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. + * See google/container/v1/cluster_service.proto;l=1490 + * @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 is true 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 is true 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 is true 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 is true 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(); + + /** + *
+   * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
+   * range will be automatically chosen with the default size.
+   *
+   * This field is only applicable when `use_ip_aliases` is true.
+   *
+   * If unspecified, the range will use the default size.
+   *
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   *
+   * Set to a
+   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
+   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
+   * to use.
+   * 
+ * + * string tpu_ipv4_cidr_block = 13; + * @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.
+   * 
+ * + * 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(); + + /** + *
+   * The IP stack type of the cluster
+   * 
+ * + * .google.container.v1.StackType stack_type = 16; + * @return The enum numeric value on the wire for stackType. + */ + int getStackTypeValue(); + /** + *
+   * The IP stack type of the cluster
+   * 
+ * + * .google.container.v1.StackType stack_type = 16; + * @return The stackType. + */ + com.google.container.v1.StackType getStackType(); + + /** + *
+   * The ipv6 access type (internal or external) when create_subnetwork is true
+   * 
+ * + * .google.container.v1.IPv6AccessType ipv6_access_type = 17; + * @return The enum numeric value on the wire for ipv6AccessType. + */ + int getIpv6AccessTypeValue(); + /** + *
+   * The ipv6 access type (internal or external) when create_subnetwork is true
+   * 
+ * + * .google.container.v1.IPv6AccessType ipv6_access_type = 17; + * @return The ipv6AccessType. + */ + com.google.container.v1.IPv6AccessType getIpv6AccessType(); + + /** + *
+   * [PRIVATE FIELD]
+   * Pod CIDR size overprovisioning config for the cluster.
+   *
+   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+   * of max_pods_per_node is doubled and then rounded off to next power of 2 to
+   * get the size of pod CIDR block per node.
+   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+   *
+   * This config can disable the doubling of IPs (we still round off to next
+   * power of 2)
+   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+   * overprovisioning is disabled.
+   * 
+ * + * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; + * @return Whether the podCidrOverprovisionConfig field is set. + */ + boolean hasPodCidrOverprovisionConfig(); + /** + *
+   * [PRIVATE FIELD]
+   * Pod CIDR size overprovisioning config for the cluster.
+   *
+   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+   * of max_pods_per_node is doubled and then rounded off to next power of 2 to
+   * get the size of pod CIDR block per node.
+   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+   *
+   * This config can disable the doubling of IPs (we still round off to next
+   * power of 2)
+   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+   * overprovisioning is disabled.
+   * 
+ * + * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; + * @return The podCidrOverprovisionConfig. + */ + com.google.container.v1.PodCIDROverprovisionConfig getPodCidrOverprovisionConfig(); + /** + *
+   * [PRIVATE FIELD]
+   * Pod CIDR size overprovisioning config for the cluster.
+   *
+   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+   * of max_pods_per_node is doubled and then rounded off to next power of 2 to
+   * get the size of pod CIDR block per node.
+   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+   *
+   * This config can disable the doubling of IPs (we still round off to next
+   * power of 2)
+   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+   * overprovisioning is disabled.
+   * 
+ * + * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; + */ + com.google.container.v1.PodCIDROverprovisionConfigOrBuilder getPodCidrOverprovisionConfigOrBuilder(); + + /** + *
+   * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
+   * pods.
+   * 
+ * + * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The subnetIpv6CidrBlock. + */ + java.lang.String getSubnetIpv6CidrBlock(); + /** + *
+   * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
+   * pods.
+   * 
+ * + * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for subnetIpv6CidrBlock. + */ + com.google.protobuf.ByteString + getSubnetIpv6CidrBlockBytes(); + + /** + *
+   * Output only. [Output only] The services IPv6 CIDR block for the cluster.
+   * 
+ * + * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The servicesIpv6CidrBlock. + */ + java.lang.String getServicesIpv6CidrBlock(); + /** + *
+   * Output only. [Output only] The services IPv6 CIDR block for the cluster.
+   * 
+ * + * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for servicesIpv6CidrBlock. + */ + com.google.protobuf.ByteString + getServicesIpv6CidrBlockBytes(); + + /** + *
+   * Output only. [Output only] The additional pod ranges that are added to the
+   * cluster. These pod ranges can be used by new node pools to allocate pod IPs
+   * automatically. Once the range is removed it will not show up in
+   * IPAllocationPolicy.
+   * 
+ * + * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the additionalPodRangesConfig field is set. + */ + boolean hasAdditionalPodRangesConfig(); + /** + *
+   * Output only. [Output only] The additional pod ranges that are added to the
+   * cluster. These pod ranges can be used by new node pools to allocate pod IPs
+   * automatically. Once the range is removed it will not show up in
+   * IPAllocationPolicy.
+   * 
+ * + * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The additionalPodRangesConfig. + */ + com.google.container.v1.AdditionalPodRangesConfig getAdditionalPodRangesConfig(); + /** + *
+   * Output only. [Output only] The additional pod ranges that are added to the
+   * cluster. These pod ranges can be used by new node pools to allocate pod IPs
+   * automatically. Once the range is removed it will not show up in
+   * IPAllocationPolicy.
+   * 
+ * + * .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.container.v1.AdditionalPodRangesConfigOrBuilder getAdditionalPodRangesConfigOrBuilder(); + + /** + *
+   * Output only. [Output only] The utilization of the cluster default IPv4
+   * range for the pod. The ratio is Usage/[Total number of IPs in the secondary
+   * range], Usage=numNodes*numZones*podIPsPerNode.
+   * 
+ * + * double default_pod_ipv4_range_utilization = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The defaultPodIpv4RangeUtilization. + */ + double getDefaultPodIpv4RangeUtilization(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPv6AccessType.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPv6AccessType.java new file mode 100644 index 000000000000..9fdc0bef744d --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPv6AccessType.java @@ -0,0 +1,151 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Possible values for IPv6 access type
+ * 
+ * + * Protobuf enum {@code google.container.v1.IPv6AccessType} + */ +public enum IPv6AccessType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+   * Default value, will be defaulted as type external.
+   * 
+ * + * IPV6_ACCESS_TYPE_UNSPECIFIED = 0; + */ + IPV6_ACCESS_TYPE_UNSPECIFIED(0), + /** + *
+   * Access type internal (all v6 addresses are internal IPs)
+   * 
+ * + * INTERNAL = 1; + */ + INTERNAL(1), + /** + *
+   * Access type external (all v6 addresses are external IPs)
+   * 
+ * + * EXTERNAL = 2; + */ + EXTERNAL(2), + UNRECOGNIZED(-1), + ; + + /** + *
+   * Default value, will be defaulted as type external.
+   * 
+ * + * IPV6_ACCESS_TYPE_UNSPECIFIED = 0; + */ + public static final int IPV6_ACCESS_TYPE_UNSPECIFIED_VALUE = 0; + /** + *
+   * Access type internal (all v6 addresses are internal IPs)
+   * 
+ * + * INTERNAL = 1; + */ + public static final int INTERNAL_VALUE = 1; + /** + *
+   * Access type external (all v6 addresses are external IPs)
+   * 
+ * + * EXTERNAL = 2; + */ + public static final int EXTERNAL_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 IPv6AccessType 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 IPv6AccessType forNumber(int value) { + switch (value) { + case 0: return IPV6_ACCESS_TYPE_UNSPECIFIED; + case 1: return INTERNAL; + case 2: return EXTERNAL; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + IPv6AccessType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public IPv6AccessType findValueByNumber(int number) { + return IPv6AccessType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.getDescriptor().getEnumTypes().get(5); + } + + private static final IPv6AccessType[] VALUES = values(); + + public static IPv6AccessType 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 IPv6AccessType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.IPv6AccessType) +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IdentityServiceConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IdentityServiceConfig.java new file mode 100644 index 000000000000..bb28fe2a8aab --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IdentityServiceConfig.java @@ -0,0 +1,499 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * IdentityServiceConfig is configuration for Identity Service which allows
+ * customers to use external identity providers with the K8S API
+ * 
+ * + * Protobuf type {@code google.container.v1.IdentityServiceConfig} + */ +public final class IdentityServiceConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.IdentityServiceConfig) + IdentityServiceConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use IdentityServiceConfig.newBuilder() to construct. + private IdentityServiceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private IdentityServiceConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new IdentityServiceConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_IdentityServiceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_IdentityServiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.IdentityServiceConfig.class, com.google.container.v1.IdentityServiceConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * Whether to enable the Identity Service component
+   * 
+ * + * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.IdentityServiceConfig)) { + return super.equals(obj); + } + com.google.container.v1.IdentityServiceConfig other = (com.google.container.v1.IdentityServiceConfig) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.IdentityServiceConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.IdentityServiceConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.IdentityServiceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.IdentityServiceConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.IdentityServiceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.IdentityServiceConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.IdentityServiceConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.IdentityServiceConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.IdentityServiceConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.IdentityServiceConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.IdentityServiceConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.IdentityServiceConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.IdentityServiceConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * IdentityServiceConfig is configuration for Identity Service which allows
+   * customers to use external identity providers with the K8S API
+   * 
+ * + * Protobuf type {@code google.container.v1.IdentityServiceConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.IdentityServiceConfig) + com.google.container.v1.IdentityServiceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_IdentityServiceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_IdentityServiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.IdentityServiceConfig.class, com.google.container.v1.IdentityServiceConfig.Builder.class); + } + + // Construct using com.google.container.v1.IdentityServiceConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_IdentityServiceConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.IdentityServiceConfig getDefaultInstanceForType() { + return com.google.container.v1.IdentityServiceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.IdentityServiceConfig build() { + com.google.container.v1.IdentityServiceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.IdentityServiceConfig buildPartial() { + com.google.container.v1.IdentityServiceConfig result = new com.google.container.v1.IdentityServiceConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.IdentityServiceConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.IdentityServiceConfig) { + return mergeFrom((com.google.container.v1.IdentityServiceConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.IdentityServiceConfig other) { + if (other == com.google.container.v1.IdentityServiceConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enabled_ ; + /** + *
+     * Whether to enable the Identity Service component
+     * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Whether to enable the Identity Service component
+     * 
+ * + * bool enabled = 1; + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether to enable the Identity Service component
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.IdentityServiceConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.IdentityServiceConfig) + private static final com.google.container.v1.IdentityServiceConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.IdentityServiceConfig(); + } + + public static com.google.container.v1.IdentityServiceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IdentityServiceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.IdentityServiceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IdentityServiceConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IdentityServiceConfigOrBuilder.java new file mode 100644 index 000000000000..e89fd7aa4b8b --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IdentityServiceConfigOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface IdentityServiceConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.IdentityServiceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether to enable the Identity Service component
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/InTransitEncryptionConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/InTransitEncryptionConfig.java new file mode 100644 index 000000000000..ff30ef7004a2 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/InTransitEncryptionConfig.java @@ -0,0 +1,153 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Options for in-transit encryption.
+ * 
+ * + * Protobuf enum {@code google.container.v1.InTransitEncryptionConfig} + */ +public enum InTransitEncryptionConfig + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+   * Unspecified, will be inferred as default -
+   * IN_TRANSIT_ENCRYPTION_UNSPECIFIED.
+   * 
+ * + * IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED = 0; + */ + IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED(0), + /** + *
+   * In-transit encryption is disabled.
+   * 
+ * + * IN_TRANSIT_ENCRYPTION_DISABLED = 1; + */ + IN_TRANSIT_ENCRYPTION_DISABLED(1), + /** + *
+   * Data in-transit is encrypted using inter-node transparent encryption.
+   * 
+ * + * IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT = 2; + */ + IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT(2), + UNRECOGNIZED(-1), + ; + + /** + *
+   * Unspecified, will be inferred as default -
+   * IN_TRANSIT_ENCRYPTION_UNSPECIFIED.
+   * 
+ * + * IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED = 0; + */ + public static final int IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED_VALUE = 0; + /** + *
+   * In-transit encryption is disabled.
+   * 
+ * + * IN_TRANSIT_ENCRYPTION_DISABLED = 1; + */ + public static final int IN_TRANSIT_ENCRYPTION_DISABLED_VALUE = 1; + /** + *
+   * Data in-transit is encrypted using inter-node transparent encryption.
+   * 
+ * + * IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT = 2; + */ + public static final int IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT_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 InTransitEncryptionConfig 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 InTransitEncryptionConfig forNumber(int value) { + switch (value) { + case 0: return IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED; + case 1: return IN_TRANSIT_ENCRYPTION_DISABLED; + case 2: return IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + InTransitEncryptionConfig> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public InTransitEncryptionConfig findValueByNumber(int number) { + return InTransitEncryptionConfig.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.getDescriptor().getEnumTypes().get(6); + } + + private static final InTransitEncryptionConfig[] VALUES = values(); + + public static InTransitEncryptionConfig 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 InTransitEncryptionConfig(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.InTransitEncryptionConfig) +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IntraNodeVisibilityConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IntraNodeVisibilityConfig.java new file mode 100644 index 000000000000..160c8875dcc4 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IntraNodeVisibilityConfig.java @@ -0,0 +1,499 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * IntraNodeVisibilityConfig contains the desired config of the intra-node
+ * visibility on this cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1.IntraNodeVisibilityConfig} + */ +public final class IntraNodeVisibilityConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_IntraNodeVisibilityConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_IntraNodeVisibilityConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.IntraNodeVisibilityConfig.class, com.google.container.v1.IntraNodeVisibilityConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.IntraNodeVisibilityConfig)) { + return super.equals(obj); + } + com.google.container.v1.IntraNodeVisibilityConfig other = (com.google.container.v1.IntraNodeVisibilityConfig) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.IntraNodeVisibilityConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.IntraNodeVisibilityConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.IntraNodeVisibilityConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.IntraNodeVisibilityConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.IntraNodeVisibilityConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.IntraNodeVisibilityConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.IntraNodeVisibilityConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.IntraNodeVisibilityConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.IntraNodeVisibilityConfig) + com.google.container.v1.IntraNodeVisibilityConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_IntraNodeVisibilityConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_IntraNodeVisibilityConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.IntraNodeVisibilityConfig.class, com.google.container.v1.IntraNodeVisibilityConfig.Builder.class); + } + + // Construct using com.google.container.v1.IntraNodeVisibilityConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_IntraNodeVisibilityConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.IntraNodeVisibilityConfig getDefaultInstanceForType() { + return com.google.container.v1.IntraNodeVisibilityConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.IntraNodeVisibilityConfig build() { + com.google.container.v1.IntraNodeVisibilityConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.IntraNodeVisibilityConfig buildPartial() { + com.google.container.v1.IntraNodeVisibilityConfig result = new com.google.container.v1.IntraNodeVisibilityConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.IntraNodeVisibilityConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.IntraNodeVisibilityConfig) { + return mergeFrom((com.google.container.v1.IntraNodeVisibilityConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.IntraNodeVisibilityConfig other) { + if (other == com.google.container.v1.IntraNodeVisibilityConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Enables intra node visibility for this cluster.
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.IntraNodeVisibilityConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.IntraNodeVisibilityConfig) + private static final com.google.container.v1.IntraNodeVisibilityConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.IntraNodeVisibilityConfig(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.IntraNodeVisibilityConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IntraNodeVisibilityConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IntraNodeVisibilityConfigOrBuilder.java new file mode 100644 index 000000000000..77a7f10a25cf --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IntraNodeVisibilityConfigOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface IntraNodeVisibilityConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.IntraNodeVisibilityConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Enables intra node visibility for this cluster.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Jwk.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Jwk.java new file mode 100644 index 000000000000..9b1b2460c2bf --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Jwk.java @@ -0,0 +1,1890 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Jwk is a JSON Web Key as specified in RFC 7517
+ * 
+ * + * Protobuf type {@code google.container.v1.Jwk} + */ +public final class Jwk extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.Jwk) + JwkOrBuilder { +private static final long serialVersionUID = 0L; + // Use Jwk.newBuilder() to construct. + private Jwk(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Jwk() { + kty_ = ""; + alg_ = ""; + use_ = ""; + kid_ = ""; + n_ = ""; + e_ = ""; + x_ = ""; + y_ = ""; + crv_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Jwk(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_Jwk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_Jwk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.Jwk.class, com.google.container.v1.Jwk.Builder.class); + } + + public static final int KTY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kty_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kty_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alg_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, alg_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(use_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, use_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, kid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(n_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, n_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(e_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, e_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(x_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, x_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(y_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, y_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crv_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, crv_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kty_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kty_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alg_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, alg_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(use_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, use_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, kid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(n_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, n_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(e_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, e_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(x_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, x_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(y_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, y_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crv_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, crv_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.Jwk)) { + return super.equals(obj); + } + com.google.container.v1.Jwk other = (com.google.container.v1.Jwk) obj; + + if (!getKty() + .equals(other.getKty())) return false; + if (!getAlg() + .equals(other.getAlg())) return false; + if (!getUse() + .equals(other.getUse())) return false; + if (!getKid() + .equals(other.getKid())) return false; + if (!getN() + .equals(other.getN())) return false; + if (!getE() + .equals(other.getE())) return false; + if (!getX() + .equals(other.getX())) return false; + if (!getY() + .equals(other.getY())) return false; + if (!getCrv() + .equals(other.getCrv())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.Jwk parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.Jwk parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.Jwk parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.Jwk parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.Jwk parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.Jwk parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.Jwk parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.Jwk parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.Jwk parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.Jwk parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.Jwk parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.Jwk parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.Jwk prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Jwk is a JSON Web Key as specified in RFC 7517
+   * 
+ * + * Protobuf type {@code google.container.v1.Jwk} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.Jwk) + com.google.container.v1.JwkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_Jwk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_Jwk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.Jwk.class, com.google.container.v1.Jwk.Builder.class); + } + + // Construct using com.google.container.v1.Jwk.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + kty_ = ""; + alg_ = ""; + use_ = ""; + kid_ = ""; + n_ = ""; + e_ = ""; + x_ = ""; + y_ = ""; + crv_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_Jwk_descriptor; + } + + @java.lang.Override + public com.google.container.v1.Jwk getDefaultInstanceForType() { + return com.google.container.v1.Jwk.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.Jwk build() { + com.google.container.v1.Jwk result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.Jwk buildPartial() { + com.google.container.v1.Jwk result = new com.google.container.v1.Jwk(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.Jwk result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.kty_ = kty_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.alg_ = alg_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.use_ = use_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.kid_ = kid_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.n_ = n_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.e_ = e_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.x_ = x_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.y_ = y_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.crv_ = crv_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.Jwk) { + return mergeFrom((com.google.container.v1.Jwk)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.Jwk other) { + if (other == com.google.container.v1.Jwk.getDefaultInstance()) return this; + if (!other.getKty().isEmpty()) { + kty_ = other.kty_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAlg().isEmpty()) { + alg_ = other.alg_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getUse().isEmpty()) { + use_ = other.use_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getKid().isEmpty()) { + kid_ = other.kid_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getN().isEmpty()) { + n_ = other.n_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getE().isEmpty()) { + e_ = other.e_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getX().isEmpty()) { + x_ = other.x_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getY().isEmpty()) { + y_ = other.y_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getCrv().isEmpty()) { + crv_ = other.crv_; + bitField0_ |= 0x00000100; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + kty_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + alg_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + use_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + kid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + n_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + e_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + x_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + y_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: { + crv_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Key Type.
+     * 
+ * + * string kty = 1; + * @return This builder for chaining. + */ + public Builder clearKty() { + kty_ = getDefaultInstance().getKty(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Algorithm.
+     * 
+ * + * string alg = 2; + * @return This builder for chaining. + */ + public Builder clearAlg() { + alg_ = getDefaultInstance().getAlg(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + 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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Permitted uses for the public keys.
+     * 
+ * + * string use = 3; + * @return This builder for chaining. + */ + public Builder clearUse() { + use_ = getDefaultInstance().getUse(); + bitField0_ = (bitField0_ & ~0x00000004); + 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; + bitField0_ |= 0x00000004; + 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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Key ID.
+     * 
+ * + * string kid = 4; + * @return This builder for chaining. + */ + public Builder clearKid() { + kid_ = getDefaultInstance().getKid(); + bitField0_ = (bitField0_ & ~0x00000008); + 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; + bitField0_ |= 0x00000008; + 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; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Used for RSA keys.
+     * 
+ * + * string n = 5; + * @return This builder for chaining. + */ + public Builder clearN() { + n_ = getDefaultInstance().getN(); + bitField0_ = (bitField0_ & ~0x00000010); + 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; + bitField0_ |= 0x00000010; + 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; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Used for RSA keys.
+     * 
+ * + * string e = 6; + * @return This builder for chaining. + */ + public Builder clearE() { + e_ = getDefaultInstance().getE(); + bitField0_ = (bitField0_ & ~0x00000020); + 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; + bitField0_ |= 0x00000020; + 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; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * Used for ECDSA keys.
+     * 
+ * + * string x = 7; + * @return This builder for chaining. + */ + public Builder clearX() { + x_ = getDefaultInstance().getX(); + bitField0_ = (bitField0_ & ~0x00000040); + 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; + bitField0_ |= 0x00000040; + 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; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * Used for ECDSA keys.
+     * 
+ * + * string y = 8; + * @return This builder for chaining. + */ + public Builder clearY() { + y_ = getDefaultInstance().getY(); + bitField0_ = (bitField0_ & ~0x00000080); + 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; + bitField0_ |= 0x00000080; + 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; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * Used for ECDSA keys.
+     * 
+ * + * string crv = 9; + * @return This builder for chaining. + */ + public Builder clearCrv() { + crv_ = getDefaultInstance().getCrv(); + bitField0_ = (bitField0_ & ~0x00000100); + 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; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.Jwk) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.Jwk) + private static final com.google.container.v1.Jwk DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.Jwk(); + } + + public static com.google.container.v1.Jwk getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Jwk parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.Jwk getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/JwkOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/JwkOrBuilder.java new file mode 100644 index 000000000000..2d2d55622444 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/JwkOrBuilder.java @@ -0,0 +1,190 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface JwkOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.Jwk) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Key Type.
+   * 
+ * + * string kty = 1; + * @return The kty. + */ + java.lang.String getKty(); + /** + *
+   * Key Type.
+   * 
+ * + * string kty = 1; + * @return The bytes for kty. + */ + com.google.protobuf.ByteString + getKtyBytes(); + + /** + *
+   * Algorithm.
+   * 
+ * + * string alg = 2; + * @return The alg. + */ + java.lang.String getAlg(); + /** + *
+   * Algorithm.
+   * 
+ * + * string alg = 2; + * @return The bytes for alg. + */ + com.google.protobuf.ByteString + getAlgBytes(); + + /** + *
+   * Permitted uses for the public keys.
+   * 
+ * + * string use = 3; + * @return The use. + */ + java.lang.String getUse(); + /** + *
+   * Permitted uses for the public keys.
+   * 
+ * + * string use = 3; + * @return The bytes for use. + */ + com.google.protobuf.ByteString + getUseBytes(); + + /** + *
+   * Key ID.
+   * 
+ * + * string kid = 4; + * @return The kid. + */ + java.lang.String getKid(); + /** + *
+   * Key ID.
+   * 
+ * + * string kid = 4; + * @return The bytes for kid. + */ + com.google.protobuf.ByteString + getKidBytes(); + + /** + *
+   * Used for RSA keys.
+   * 
+ * + * string n = 5; + * @return The n. + */ + java.lang.String getN(); + /** + *
+   * Used for RSA keys.
+   * 
+ * + * string n = 5; + * @return The bytes for n. + */ + com.google.protobuf.ByteString + getNBytes(); + + /** + *
+   * Used for RSA keys.
+   * 
+ * + * string e = 6; + * @return The e. + */ + java.lang.String getE(); + /** + *
+   * Used for RSA keys.
+   * 
+ * + * string e = 6; + * @return The bytes for e. + */ + com.google.protobuf.ByteString + getEBytes(); + + /** + *
+   * Used for ECDSA keys.
+   * 
+ * + * string x = 7; + * @return The x. + */ + java.lang.String getX(); + /** + *
+   * Used for ECDSA keys.
+   * 
+ * + * string x = 7; + * @return The bytes for x. + */ + com.google.protobuf.ByteString + getXBytes(); + + /** + *
+   * Used for ECDSA keys.
+   * 
+ * + * string y = 8; + * @return The y. + */ + java.lang.String getY(); + /** + *
+   * Used for ECDSA keys.
+   * 
+ * + * string y = 8; + * @return The bytes for y. + */ + com.google.protobuf.ByteString + getYBytes(); + + /** + *
+   * Used for ECDSA keys.
+   * 
+ * + * string crv = 9; + * @return The crv. + */ + java.lang.String getCrv(); + /** + *
+   * Used for ECDSA keys.
+   * 
+ * + * string crv = 9; + * @return The bytes for crv. + */ + com.google.protobuf.ByteString + getCrvBytes(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/K8sBetaAPIConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/K8sBetaAPIConfig.java new file mode 100644 index 000000000000..76cc67f0cb6a --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/K8sBetaAPIConfig.java @@ -0,0 +1,655 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * K8sBetaAPIConfig , configuration for beta APIs
+ * 
+ * + * Protobuf type {@code google.container.v1.K8sBetaAPIConfig} + */ +public final class K8sBetaAPIConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.K8sBetaAPIConfig) + K8sBetaAPIConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use K8sBetaAPIConfig.newBuilder() to construct. + private K8sBetaAPIConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private K8sBetaAPIConfig() { + enabledApis_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new K8sBetaAPIConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_K8sBetaAPIConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_K8sBetaAPIConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.K8sBetaAPIConfig.class, com.google.container.v1.K8sBetaAPIConfig.Builder.class); + } + + public static final int ENABLED_APIS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList enabledApis_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * Enabled k8s beta APIs.
+   * 
+ * + * repeated string enabled_apis = 1; + * @return A list containing the enabledApis. + */ + public com.google.protobuf.ProtocolStringList + getEnabledApisList() { + return enabledApis_; + } + /** + *
+   * Enabled k8s beta APIs.
+   * 
+ * + * repeated string enabled_apis = 1; + * @return The count of enabledApis. + */ + public int getEnabledApisCount() { + return enabledApis_.size(); + } + /** + *
+   * Enabled k8s beta APIs.
+   * 
+ * + * repeated string enabled_apis = 1; + * @param index The index of the element to return. + * @return The enabledApis at the given index. + */ + public java.lang.String getEnabledApis(int index) { + return enabledApis_.get(index); + } + /** + *
+   * Enabled k8s beta APIs.
+   * 
+ * + * repeated string enabled_apis = 1; + * @param index The index of the value to return. + * @return The bytes of the enabledApis at the given index. + */ + public com.google.protobuf.ByteString + getEnabledApisBytes(int index) { + return enabledApis_.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 < enabledApis_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, enabledApis_.getRaw(i)); + } + getUnknownFields().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 < enabledApis_.size(); i++) { + dataSize += computeStringSizeNoTag(enabledApis_.getRaw(i)); + } + size += dataSize; + size += 1 * getEnabledApisList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.K8sBetaAPIConfig)) { + return super.equals(obj); + } + com.google.container.v1.K8sBetaAPIConfig other = (com.google.container.v1.K8sBetaAPIConfig) obj; + + if (!getEnabledApisList() + .equals(other.getEnabledApisList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEnabledApisCount() > 0) { + hash = (37 * hash) + ENABLED_APIS_FIELD_NUMBER; + hash = (53 * hash) + getEnabledApisList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.K8sBetaAPIConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.K8sBetaAPIConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.K8sBetaAPIConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.K8sBetaAPIConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.K8sBetaAPIConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.K8sBetaAPIConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.K8sBetaAPIConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.K8sBetaAPIConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.K8sBetaAPIConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.K8sBetaAPIConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.K8sBetaAPIConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.K8sBetaAPIConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.K8sBetaAPIConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * K8sBetaAPIConfig , configuration for beta APIs
+   * 
+ * + * Protobuf type {@code google.container.v1.K8sBetaAPIConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.K8sBetaAPIConfig) + com.google.container.v1.K8sBetaAPIConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_K8sBetaAPIConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_K8sBetaAPIConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.K8sBetaAPIConfig.class, com.google.container.v1.K8sBetaAPIConfig.Builder.class); + } + + // Construct using com.google.container.v1.K8sBetaAPIConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabledApis_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_K8sBetaAPIConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.K8sBetaAPIConfig getDefaultInstanceForType() { + return com.google.container.v1.K8sBetaAPIConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.K8sBetaAPIConfig build() { + com.google.container.v1.K8sBetaAPIConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.K8sBetaAPIConfig buildPartial() { + com.google.container.v1.K8sBetaAPIConfig result = new com.google.container.v1.K8sBetaAPIConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.K8sBetaAPIConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + enabledApis_.makeImmutable(); + result.enabledApis_ = enabledApis_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.K8sBetaAPIConfig) { + return mergeFrom((com.google.container.v1.K8sBetaAPIConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.K8sBetaAPIConfig other) { + if (other == com.google.container.v1.K8sBetaAPIConfig.getDefaultInstance()) return this; + if (!other.enabledApis_.isEmpty()) { + if (enabledApis_.isEmpty()) { + enabledApis_ = other.enabledApis_; + bitField0_ |= 0x00000001; + } else { + ensureEnabledApisIsMutable(); + enabledApis_.addAll(other.enabledApis_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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(); + ensureEnabledApisIsMutable(); + enabledApis_.add(s); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList enabledApis_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureEnabledApisIsMutable() { + if (!enabledApis_.isModifiable()) { + enabledApis_ = new com.google.protobuf.LazyStringArrayList(enabledApis_); + } + bitField0_ |= 0x00000001; + } + /** + *
+     * Enabled k8s beta APIs.
+     * 
+ * + * repeated string enabled_apis = 1; + * @return A list containing the enabledApis. + */ + public com.google.protobuf.ProtocolStringList + getEnabledApisList() { + enabledApis_.makeImmutable(); + return enabledApis_; + } + /** + *
+     * Enabled k8s beta APIs.
+     * 
+ * + * repeated string enabled_apis = 1; + * @return The count of enabledApis. + */ + public int getEnabledApisCount() { + return enabledApis_.size(); + } + /** + *
+     * Enabled k8s beta APIs.
+     * 
+ * + * repeated string enabled_apis = 1; + * @param index The index of the element to return. + * @return The enabledApis at the given index. + */ + public java.lang.String getEnabledApis(int index) { + return enabledApis_.get(index); + } + /** + *
+     * Enabled k8s beta APIs.
+     * 
+ * + * repeated string enabled_apis = 1; + * @param index The index of the value to return. + * @return The bytes of the enabledApis at the given index. + */ + public com.google.protobuf.ByteString + getEnabledApisBytes(int index) { + return enabledApis_.getByteString(index); + } + /** + *
+     * Enabled k8s beta APIs.
+     * 
+ * + * repeated string enabled_apis = 1; + * @param index The index to set the value at. + * @param value The enabledApis to set. + * @return This builder for chaining. + */ + public Builder setEnabledApis( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureEnabledApisIsMutable(); + enabledApis_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Enabled k8s beta APIs.
+     * 
+ * + * repeated string enabled_apis = 1; + * @param value The enabledApis to add. + * @return This builder for chaining. + */ + public Builder addEnabledApis( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureEnabledApisIsMutable(); + enabledApis_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Enabled k8s beta APIs.
+     * 
+ * + * repeated string enabled_apis = 1; + * @param values The enabledApis to add. + * @return This builder for chaining. + */ + public Builder addAllEnabledApis( + java.lang.Iterable values) { + ensureEnabledApisIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, enabledApis_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Enabled k8s beta APIs.
+     * 
+ * + * repeated string enabled_apis = 1; + * @return This builder for chaining. + */ + public Builder clearEnabledApis() { + enabledApis_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; + onChanged(); + return this; + } + /** + *
+     * Enabled k8s beta APIs.
+     * 
+ * + * repeated string enabled_apis = 1; + * @param value The bytes of the enabledApis to add. + * @return This builder for chaining. + */ + public Builder addEnabledApisBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureEnabledApisIsMutable(); + enabledApis_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.K8sBetaAPIConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.K8sBetaAPIConfig) + private static final com.google.container.v1.K8sBetaAPIConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.K8sBetaAPIConfig(); + } + + public static com.google.container.v1.K8sBetaAPIConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public K8sBetaAPIConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.K8sBetaAPIConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/K8sBetaAPIConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/K8sBetaAPIConfigOrBuilder.java new file mode 100644 index 000000000000..04b74914bacd --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/K8sBetaAPIConfigOrBuilder.java @@ -0,0 +1,51 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface K8sBetaAPIConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.K8sBetaAPIConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Enabled k8s beta APIs.
+   * 
+ * + * repeated string enabled_apis = 1; + * @return A list containing the enabledApis. + */ + java.util.List + getEnabledApisList(); + /** + *
+   * Enabled k8s beta APIs.
+   * 
+ * + * repeated string enabled_apis = 1; + * @return The count of enabledApis. + */ + int getEnabledApisCount(); + /** + *
+   * Enabled k8s beta APIs.
+   * 
+ * + * repeated string enabled_apis = 1; + * @param index The index of the element to return. + * @return The enabledApis at the given index. + */ + java.lang.String getEnabledApis(int index); + /** + *
+   * Enabled k8s beta APIs.
+   * 
+ * + * repeated string enabled_apis = 1; + * @param index The index of the value to return. + * @return The bytes of the enabledApis at the given index. + */ + com.google.protobuf.ByteString + getEnabledApisBytes(int index); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/KubernetesDashboard.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/KubernetesDashboard.java new file mode 100644 index 000000000000..ba2d87c0e1f7 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/KubernetesDashboard.java @@ -0,0 +1,497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Configuration for the Kubernetes Dashboard.
+ * 
+ * + * Protobuf type {@code google.container.v1.KubernetesDashboard} + */ +public final class KubernetesDashboard extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_KubernetesDashboard_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_KubernetesDashboard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.KubernetesDashboard.class, com.google.container.v1.KubernetesDashboard.Builder.class); + } + + public static final int DISABLED_FIELD_NUMBER = 1; + private boolean disabled_ = false; + /** + *
+   * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.KubernetesDashboard)) { + return super.equals(obj); + } + com.google.container.v1.KubernetesDashboard other = (com.google.container.v1.KubernetesDashboard) obj; + + if (getDisabled() + != other.getDisabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.KubernetesDashboard parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.KubernetesDashboard parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.KubernetesDashboard parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.KubernetesDashboard parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.KubernetesDashboard parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.KubernetesDashboard parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.KubernetesDashboard parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.KubernetesDashboard} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.KubernetesDashboard) + com.google.container.v1.KubernetesDashboardOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_KubernetesDashboard_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_KubernetesDashboard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.KubernetesDashboard.class, com.google.container.v1.KubernetesDashboard.Builder.class); + } + + // Construct using com.google.container.v1.KubernetesDashboard.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + disabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_KubernetesDashboard_descriptor; + } + + @java.lang.Override + public com.google.container.v1.KubernetesDashboard getDefaultInstanceForType() { + return com.google.container.v1.KubernetesDashboard.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.KubernetesDashboard build() { + com.google.container.v1.KubernetesDashboard result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.KubernetesDashboard buildPartial() { + com.google.container.v1.KubernetesDashboard result = new com.google.container.v1.KubernetesDashboard(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.KubernetesDashboard result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.disabled_ = disabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.KubernetesDashboard) { + return mergeFrom((com.google.container.v1.KubernetesDashboard)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.KubernetesDashboard other) { + if (other == com.google.container.v1.KubernetesDashboard.getDefaultInstance()) return this; + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + disabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether the Kubernetes Dashboard is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + * @return This builder for chaining. + */ + public Builder clearDisabled() { + bitField0_ = (bitField0_ & ~0x00000001); + disabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.KubernetesDashboard) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.KubernetesDashboard) + private static final com.google.container.v1.KubernetesDashboard DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.KubernetesDashboard(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.KubernetesDashboard getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/KubernetesDashboardOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/KubernetesDashboardOrBuilder.java new file mode 100644 index 000000000000..0273f94c9adf --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/KubernetesDashboardOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface KubernetesDashboardOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LegacyAbac.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LegacyAbac.java new file mode 100644 index 000000000000..b90824e7a535 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LegacyAbac.java @@ -0,0 +1,511 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Configuration for the legacy Attribute Based Access Control authorization
+ * mode.
+ * 
+ * + * Protobuf type {@code google.container.v1.LegacyAbac} + */ +public final class LegacyAbac extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_LegacyAbac_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_LegacyAbac_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.LegacyAbac.class, com.google.container.v1.LegacyAbac.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.LegacyAbac)) { + return super.equals(obj); + } + com.google.container.v1.LegacyAbac other = (com.google.container.v1.LegacyAbac) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.LegacyAbac parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.LegacyAbac parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.LegacyAbac parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.LegacyAbac parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.LegacyAbac parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.LegacyAbac parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.LegacyAbac parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.LegacyAbac} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.LegacyAbac) + com.google.container.v1.LegacyAbacOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_LegacyAbac_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_LegacyAbac_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.LegacyAbac.class, com.google.container.v1.LegacyAbac.Builder.class); + } + + // Construct using com.google.container.v1.LegacyAbac.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_LegacyAbac_descriptor; + } + + @java.lang.Override + public com.google.container.v1.LegacyAbac getDefaultInstanceForType() { + return com.google.container.v1.LegacyAbac.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.LegacyAbac build() { + com.google.container.v1.LegacyAbac result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.LegacyAbac buildPartial() { + com.google.container.v1.LegacyAbac result = new com.google.container.v1.LegacyAbac(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.LegacyAbac result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.LegacyAbac) { + return mergeFrom((com.google.container.v1.LegacyAbac)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.LegacyAbac other) { + if (other == com.google.container.v1.LegacyAbac.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.LegacyAbac) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.LegacyAbac) + private static final com.google.container.v1.LegacyAbac DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.LegacyAbac(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.LegacyAbac getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LegacyAbacOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LegacyAbacOrBuilder.java new file mode 100644 index 000000000000..a4f45ba8f18c --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LegacyAbacOrBuilder.java @@ -0,0 +1,23 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface LegacyAbacOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LinuxNodeConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LinuxNodeConfig.java new file mode 100644 index 000000000000..29978ac307a7 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LinuxNodeConfig.java @@ -0,0 +1,1175 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Parameters that can be configured on Linux nodes.
+ * 
+ * + * Protobuf type {@code google.container.v1.LinuxNodeConfig} + */ +public final class LinuxNodeConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.LinuxNodeConfig) + LinuxNodeConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use LinuxNodeConfig.newBuilder() to construct. + private LinuxNodeConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LinuxNodeConfig() { + cgroupMode_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LinuxNodeConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_LinuxNodeConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetSysctls(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_LinuxNodeConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.LinuxNodeConfig.class, com.google.container.v1.LinuxNodeConfig.Builder.class); + } + + /** + *
+   * Possible cgroup modes that can be used.
+   * 
+ * + * Protobuf enum {@code google.container.v1.LinuxNodeConfig.CgroupMode} + */ + public enum CgroupMode + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * CGROUP_MODE_UNSPECIFIED is when unspecified cgroup configuration is used.
+     * The default for the GKE node OS image will be used.
+     * 
+ * + * CGROUP_MODE_UNSPECIFIED = 0; + */ + CGROUP_MODE_UNSPECIFIED(0), + /** + *
+     * CGROUP_MODE_V1 specifies to use cgroupv1 for the cgroup configuration on
+     * the node image.
+     * 
+ * + * CGROUP_MODE_V1 = 1; + */ + CGROUP_MODE_V1(1), + /** + *
+     * CGROUP_MODE_V2 specifies to use cgroupv2 for the cgroup configuration on
+     * the node image.
+     * 
+ * + * CGROUP_MODE_V2 = 2; + */ + CGROUP_MODE_V2(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * CGROUP_MODE_UNSPECIFIED is when unspecified cgroup configuration is used.
+     * The default for the GKE node OS image will be used.
+     * 
+ * + * CGROUP_MODE_UNSPECIFIED = 0; + */ + public static final int CGROUP_MODE_UNSPECIFIED_VALUE = 0; + /** + *
+     * CGROUP_MODE_V1 specifies to use cgroupv1 for the cgroup configuration on
+     * the node image.
+     * 
+ * + * CGROUP_MODE_V1 = 1; + */ + public static final int CGROUP_MODE_V1_VALUE = 1; + /** + *
+     * CGROUP_MODE_V2 specifies to use cgroupv2 for the cgroup configuration on
+     * the node image.
+     * 
+ * + * CGROUP_MODE_V2 = 2; + */ + public static final int CGROUP_MODE_V2_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 CgroupMode 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 CgroupMode forNumber(int value) { + switch (value) { + case 0: return CGROUP_MODE_UNSPECIFIED; + case 1: return CGROUP_MODE_V1; + case 2: return CGROUP_MODE_V2; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + CgroupMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CgroupMode findValueByNumber(int number) { + return CgroupMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.LinuxNodeConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final CgroupMode[] VALUES = values(); + + public static CgroupMode 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 CgroupMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.LinuxNodeConfig.CgroupMode) + } + + public static final int SYSCTLS_FIELD_NUMBER = 1; + private static final class SysctlsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_LinuxNodeConfig_SysctlsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> 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.busy_poll
+   * net.core.busy_read
+   * 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 NullPointerException("map key"); } + 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.busy_poll
+   * net.core.busy_read
+   * 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.busy_poll
+   * net.core.busy_read
+   * 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 /* nullable */ +java.lang.String getSysctlsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + 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.busy_poll
+   * net.core.busy_read
+   * 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 NullPointerException("map key"); } + java.util.Map map = + internalGetSysctls().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int CGROUP_MODE_FIELD_NUMBER = 2; + private int cgroupMode_ = 0; + /** + *
+   * cgroup_mode specifies the cgroup mode to be used on the node.
+   * 
+ * + * .google.container.v1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; + * @return The enum numeric value on the wire for cgroupMode. + */ + @java.lang.Override public int getCgroupModeValue() { + return cgroupMode_; + } + /** + *
+   * cgroup_mode specifies the cgroup mode to be used on the node.
+   * 
+ * + * .google.container.v1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; + * @return The cgroupMode. + */ + @java.lang.Override public com.google.container.v1.LinuxNodeConfig.CgroupMode getCgroupMode() { + com.google.container.v1.LinuxNodeConfig.CgroupMode result = com.google.container.v1.LinuxNodeConfig.CgroupMode.forNumber(cgroupMode_); + return result == null ? com.google.container.v1.LinuxNodeConfig.CgroupMode.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 { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetSysctls(), + SysctlsDefaultEntryHolder.defaultEntry, + 1); + if (cgroupMode_ != com.google.container.v1.LinuxNodeConfig.CgroupMode.CGROUP_MODE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, cgroupMode_); + } + getUnknownFields().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__); + } + if (cgroupMode_ != com.google.container.v1.LinuxNodeConfig.CgroupMode.CGROUP_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, cgroupMode_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.LinuxNodeConfig)) { + return super.equals(obj); + } + com.google.container.v1.LinuxNodeConfig other = (com.google.container.v1.LinuxNodeConfig) obj; + + if (!internalGetSysctls().equals( + other.internalGetSysctls())) return false; + if (cgroupMode_ != other.cgroupMode_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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 = (37 * hash) + CGROUP_MODE_FIELD_NUMBER; + hash = (53 * hash) + cgroupMode_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.LinuxNodeConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.LinuxNodeConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.LinuxNodeConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.LinuxNodeConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.LinuxNodeConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.LinuxNodeConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.LinuxNodeConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.LinuxNodeConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.LinuxNodeConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.LinuxNodeConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.LinuxNodeConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.LinuxNodeConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.LinuxNodeConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * Protobuf type {@code google.container.v1.LinuxNodeConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.LinuxNodeConfig) + com.google.container.v1.LinuxNodeConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_LinuxNodeConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetSysctls(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetMutableSysctls(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_LinuxNodeConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.LinuxNodeConfig.class, com.google.container.v1.LinuxNodeConfig.Builder.class); + } + + // Construct using com.google.container.v1.LinuxNodeConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableSysctls().clear(); + cgroupMode_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_LinuxNodeConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.LinuxNodeConfig getDefaultInstanceForType() { + return com.google.container.v1.LinuxNodeConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.LinuxNodeConfig build() { + com.google.container.v1.LinuxNodeConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.LinuxNodeConfig buildPartial() { + com.google.container.v1.LinuxNodeConfig result = new com.google.container.v1.LinuxNodeConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.LinuxNodeConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sysctls_ = internalGetSysctls(); + result.sysctls_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.cgroupMode_ = cgroupMode_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.LinuxNodeConfig) { + return mergeFrom((com.google.container.v1.LinuxNodeConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.LinuxNodeConfig other) { + if (other == com.google.container.v1.LinuxNodeConfig.getDefaultInstance()) return this; + internalGetMutableSysctls().mergeFrom( + other.internalGetSysctls()); + bitField0_ |= 0x00000001; + if (other.cgroupMode_ != 0) { + setCgroupModeValue(other.getCgroupModeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.MapEntry + sysctls__ = input.readMessage( + SysctlsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableSysctls().getMutableMap().put( + sysctls__.getKey(), sysctls__.getValue()); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + cgroupMode_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> 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() { + if (sysctls_ == null) { + sysctls_ = com.google.protobuf.MapField.newMapField( + SysctlsDefaultEntryHolder.defaultEntry); + } + if (!sysctls_.isMutable()) { + sysctls_ = sysctls_.copy(); + } + bitField0_ |= 0x00000001; + onChanged(); + 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.busy_poll
+     * net.core.busy_read
+     * 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 NullPointerException("map key"); } + 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.busy_poll
+     * net.core.busy_read
+     * 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.busy_poll
+     * net.core.busy_read
+     * 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 /* nullable */ +java.lang.String getSysctlsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + 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.busy_poll
+     * net.core.busy_read
+     * 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 NullPointerException("map key"); } + java.util.Map map = + internalGetSysctls().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearSysctls() { + bitField0_ = (bitField0_ & ~0x00000001); + 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.busy_poll
+     * net.core.busy_read
+     * 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 NullPointerException("map key"); } + internalGetMutableSysctls().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableSysctls() { + bitField0_ |= 0x00000001; + 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.busy_poll
+     * net.core.busy_read
+     * 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 NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableSysctls().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000001; + 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.busy_poll
+     * net.core.busy_read
+     * 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); + bitField0_ |= 0x00000001; + return this; + } + + private int cgroupMode_ = 0; + /** + *
+     * cgroup_mode specifies the cgroup mode to be used on the node.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; + * @return The enum numeric value on the wire for cgroupMode. + */ + @java.lang.Override public int getCgroupModeValue() { + return cgroupMode_; + } + /** + *
+     * cgroup_mode specifies the cgroup mode to be used on the node.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; + * @param value The enum numeric value on the wire for cgroupMode to set. + * @return This builder for chaining. + */ + public Builder setCgroupModeValue(int value) { + cgroupMode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * cgroup_mode specifies the cgroup mode to be used on the node.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; + * @return The cgroupMode. + */ + @java.lang.Override + public com.google.container.v1.LinuxNodeConfig.CgroupMode getCgroupMode() { + com.google.container.v1.LinuxNodeConfig.CgroupMode result = com.google.container.v1.LinuxNodeConfig.CgroupMode.forNumber(cgroupMode_); + return result == null ? com.google.container.v1.LinuxNodeConfig.CgroupMode.UNRECOGNIZED : result; + } + /** + *
+     * cgroup_mode specifies the cgroup mode to be used on the node.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; + * @param value The cgroupMode to set. + * @return This builder for chaining. + */ + public Builder setCgroupMode(com.google.container.v1.LinuxNodeConfig.CgroupMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + cgroupMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * cgroup_mode specifies the cgroup mode to be used on the node.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; + * @return This builder for chaining. + */ + public Builder clearCgroupMode() { + bitField0_ = (bitField0_ & ~0x00000002); + cgroupMode_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.LinuxNodeConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.LinuxNodeConfig) + private static final com.google.container.v1.LinuxNodeConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.LinuxNodeConfig(); + } + + public static com.google.container.v1.LinuxNodeConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LinuxNodeConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.LinuxNodeConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LinuxNodeConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LinuxNodeConfigOrBuilder.java new file mode 100644 index 000000000000..02996180fb33 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LinuxNodeConfigOrBuilder.java @@ -0,0 +1,158 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface LinuxNodeConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.LinuxNodeConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The Linux kernel parameters to be applied to the nodes and all pods running
+   * on the nodes.
+   *
+   * The following parameters are supported.
+   *
+   * net.core.busy_poll
+   * net.core.busy_read
+   * 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.busy_poll
+   * net.core.busy_read
+   * 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.busy_poll
+   * net.core.busy_read
+   * 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.busy_poll
+   * net.core.busy_read
+   * 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; + */ + /* nullable */ +java.lang.String getSysctlsOrDefault( + java.lang.String key, + /* nullable */ +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.busy_poll
+   * net.core.busy_read
+   * 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); + + /** + *
+   * cgroup_mode specifies the cgroup mode to be used on the node.
+   * 
+ * + * .google.container.v1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; + * @return The enum numeric value on the wire for cgroupMode. + */ + int getCgroupModeValue(); + /** + *
+   * cgroup_mode specifies the cgroup mode to be used on the node.
+   * 
+ * + * .google.container.v1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; + * @return The cgroupMode. + */ + com.google.container.v1.LinuxNodeConfig.CgroupMode getCgroupMode(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java new file mode 100644 index 000000000000..c24a6b90b46f --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java @@ -0,0 +1,983 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * ListClustersRequest lists clusters.
+ * 
+ * + * Protobuf type {@code google.container.v1.ListClustersRequest} + */ +public final class ListClustersRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ListClustersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ListClustersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ListClustersRequest.class, com.google.container.v1.ListClustersRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3031 + * @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; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3031 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + /** + *
+   * 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]; + * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3037 + * @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; + } + } + /** + *
+   * 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]; + * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3037 + * @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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parent_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parent_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.ListClustersRequest)) { + return super.equals(obj); + } + com.google.container.v1.ListClustersRequest other = (com.google.container.v1.ListClustersRequest) obj; + + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getZone() + .equals(other.getZone())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ListClustersRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.ListClustersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.ListClustersRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ListClustersRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ListClustersRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.ListClustersRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.ListClustersRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.ListClustersRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ListClustersRequest) + com.google.container.v1.ListClustersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ListClustersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ListClustersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ListClustersRequest.class, com.google.container.v1.ListClustersRequest.Builder.class); + } + + // Construct using com.google.container.v1.ListClustersRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + parent_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ListClustersRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ListClustersRequest getDefaultInstanceForType() { + return com.google.container.v1.ListClustersRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ListClustersRequest build() { + com.google.container.v1.ListClustersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ListClustersRequest buildPartial() { + com.google.container.v1.ListClustersRequest result = new com.google.container.v1.ListClustersRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.ListClustersRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.parent_ = parent_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ListClustersRequest) { + return mergeFrom((com.google.container.v1.ListClustersRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ListClustersRequest other) { + if (other == com.google.container.v1.ListClustersRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3031 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3031 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3031 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3031 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3031 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * 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]; + * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3037 + * @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; + } + } + /** + *
+     * 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]; + * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3037 + * @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; + } + } + /** + *
+     * 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]; + * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3037 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * 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]; + * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3037 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * 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]; + * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3037 + * @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; + bitField0_ |= 0x00000002; + 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; + bitField0_ |= 0x00000004; + 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(); + bitField0_ = (bitField0_ & ~0x00000004); + 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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.ListClustersRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ListClustersRequest) + private static final com.google.container.v1.ListClustersRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.ListClustersRequest(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.ListClustersRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java new file mode 100644 index 000000000000..40177b10cd19 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java @@ -0,0 +1,92 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface ListClustersRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ListClustersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3031 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3031 + * @return The bytes for projectId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides, or "-" for all zones. This field has been deprecated and
+   * replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3037 + * @return The zone. + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides, or "-" for all zones. This field has been deprecated and
+   * replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3037 + * @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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersResponse.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersResponse.java new file mode 100644 index 000000000000..73a5d25eb4e9 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersResponse.java @@ -0,0 +1,1137 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * ListClustersResponse is the result of ListClustersRequest.
+ * 
+ * + * Protobuf type {@code google.container.v1.ListClustersResponse} + */ +public final class ListClustersResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListClustersResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ListClustersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ListClustersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ListClustersResponse.class, com.google.container.v1.ListClustersResponse.Builder.class); + } + + public static final int CLUSTERS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List clusters_; + /** + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1.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.v1.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.v1.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.v1.Cluster clusters = 1; + */ + @java.lang.Override + public com.google.container.v1.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.v1.Cluster clusters = 1; + */ + @java.lang.Override + public com.google.container.v1.ClusterOrBuilder getClustersOrBuilder( + int index) { + return clusters_.get(index); + } + + public static final int MISSING_ZONES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList missingZones_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * 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)); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.ListClustersResponse)) { + return super.equals(obj); + } + com.google.container.v1.ListClustersResponse other = (com.google.container.v1.ListClustersResponse) obj; + + if (!getClustersList() + .equals(other.getClustersList())) return false; + if (!getMissingZonesList() + .equals(other.getMissingZonesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ListClustersResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.ListClustersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.ListClustersResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ListClustersResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ListClustersResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.ListClustersResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.ListClustersResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.ListClustersResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ListClustersResponse) + com.google.container.v1.ListClustersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ListClustersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ListClustersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ListClustersResponse.class, com.google.container.v1.ListClustersResponse.Builder.class); + } + + // Construct using com.google.container.v1.ListClustersResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (clustersBuilder_ == null) { + clusters_ = java.util.Collections.emptyList(); + } else { + clusters_ = null; + clustersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + missingZones_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ListClustersResponse_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ListClustersResponse getDefaultInstanceForType() { + return com.google.container.v1.ListClustersResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ListClustersResponse build() { + com.google.container.v1.ListClustersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ListClustersResponse buildPartial() { + com.google.container.v1.ListClustersResponse result = new com.google.container.v1.ListClustersResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1.ListClustersResponse result) { + if (clustersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + clusters_ = java.util.Collections.unmodifiableList(clusters_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.clusters_ = clusters_; + } else { + result.clusters_ = clustersBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1.ListClustersResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + missingZones_.makeImmutable(); + result.missingZones_ = missingZones_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ListClustersResponse) { + return mergeFrom((com.google.container.v1.ListClustersResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ListClustersResponse other) { + if (other == com.google.container.v1.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_ |= 0x00000002; + } else { + ensureMissingZonesIsMutable(); + missingZones_.addAll(other.missingZones_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.container.v1.Cluster m = + input.readMessage( + com.google.container.v1.Cluster.parser(), + extensionRegistry); + if (clustersBuilder_ == null) { + ensureClustersIsMutable(); + clusters_.add(m); + } else { + clustersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureMissingZonesIsMutable(); + missingZones_.add(s); + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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.v1.Cluster, com.google.container.v1.Cluster.Builder, com.google.container.v1.ClusterOrBuilder> clustersBuilder_; + + /** + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1.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.v1.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.v1.Cluster clusters = 1; + */ + public com.google.container.v1.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.v1.Cluster clusters = 1; + */ + public Builder setClusters( + int index, com.google.container.v1.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.v1.Cluster clusters = 1; + */ + public Builder setClusters( + int index, com.google.container.v1.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.v1.Cluster clusters = 1; + */ + public Builder addClusters(com.google.container.v1.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.v1.Cluster clusters = 1; + */ + public Builder addClusters( + int index, com.google.container.v1.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.v1.Cluster clusters = 1; + */ + public Builder addClusters( + com.google.container.v1.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.v1.Cluster clusters = 1; + */ + public Builder addClusters( + int index, com.google.container.v1.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.v1.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.v1.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.v1.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.v1.Cluster clusters = 1; + */ + public com.google.container.v1.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.v1.Cluster clusters = 1; + */ + public com.google.container.v1.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.v1.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.v1.Cluster clusters = 1; + */ + public com.google.container.v1.Cluster.Builder addClustersBuilder() { + return getClustersFieldBuilder().addBuilder( + com.google.container.v1.Cluster.getDefaultInstance()); + } + /** + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1.Cluster clusters = 1; + */ + public com.google.container.v1.Cluster.Builder addClustersBuilder( + int index) { + return getClustersFieldBuilder().addBuilder( + index, com.google.container.v1.Cluster.getDefaultInstance()); + } + /** + *
+     * A list of clusters in the project in the specified zone, or
+     * across all ones.
+     * 
+ * + * repeated .google.container.v1.Cluster clusters = 1; + */ + public java.util.List + getClustersBuilderList() { + return getClustersFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.Cluster, com.google.container.v1.Cluster.Builder, com.google.container.v1.ClusterOrBuilder> + getClustersFieldBuilder() { + if (clustersBuilder_ == null) { + clustersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.Cluster, com.google.container.v1.Cluster.Builder, com.google.container.v1.ClusterOrBuilder>( + clusters_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + clusters_ = null; + } + return clustersBuilder_; + } + + private com.google.protobuf.LazyStringArrayList missingZones_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureMissingZonesIsMutable() { + if (!missingZones_.isModifiable()) { + 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() { + missingZones_.makeImmutable(); + 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); + } + /** + *
+     * 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); + 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 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); + 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 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_); + 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; + * @return This builder for chaining. + */ + public Builder clearMissingZones() { + missingZones_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + 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); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.ListClustersResponse) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ListClustersResponse) + private static final com.google.container.v1.ListClustersResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.ListClustersResponse(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.ListClustersResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersResponseOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersResponseOrBuilder.java new file mode 100644 index 000000000000..cbbe717ca501 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersResponseOrBuilder.java @@ -0,0 +1,104 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface ListClustersResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ListClustersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1.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.v1.Cluster clusters = 1; + */ + com.google.container.v1.Cluster getClusters(int index); + /** + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1.Cluster clusters = 1; + */ + int getClustersCount(); + /** + *
+   * A list of clusters in the project in the specified zone, or
+   * across all ones.
+   * 
+ * + * repeated .google.container.v1.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.v1.Cluster clusters = 1; + */ + com.google.container.v1.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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java new file mode 100644 index 000000000000..5a0598b67ae3 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java @@ -0,0 +1,1161 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * ListNodePoolsRequest lists the node pool(s) for a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1.ListNodePoolsRequest} + */ +public final class ListNodePoolsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ListNodePoolsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ListNodePoolsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ListNodePoolsRequest.class, com.google.container.v1.ListNodePoolsRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3238 + * @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; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3238 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + /** + *
+   * Deprecated. The name of the Google Compute 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]; + * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3244 + * @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; + } + } + /** + *
+   * Deprecated. The name of the Google Compute 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]; + * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3244 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object clusterId_ = ""; + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3248 + * @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; + } + } + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3248 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + *
+   * The parent (project, location, cluster name) 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 name) 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parent_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.ListNodePoolsRequest)) { + return super.equals(obj); + } + com.google.container.v1.ListNodePoolsRequest other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ListNodePoolsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.ListNodePoolsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.ListNodePoolsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ListNodePoolsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ListNodePoolsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.ListNodePoolsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.ListNodePoolsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.ListNodePoolsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ListNodePoolsRequest) + com.google.container.v1.ListNodePoolsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ListNodePoolsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ListNodePoolsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ListNodePoolsRequest.class, com.google.container.v1.ListNodePoolsRequest.Builder.class); + } + + // Construct using com.google.container.v1.ListNodePoolsRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + parent_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ListNodePoolsRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ListNodePoolsRequest getDefaultInstanceForType() { + return com.google.container.v1.ListNodePoolsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ListNodePoolsRequest build() { + com.google.container.v1.ListNodePoolsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ListNodePoolsRequest buildPartial() { + com.google.container.v1.ListNodePoolsRequest result = new com.google.container.v1.ListNodePoolsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.ListNodePoolsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.parent_ = parent_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ListNodePoolsRequest) { + return mergeFrom((com.google.container.v1.ListNodePoolsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ListNodePoolsRequest other) { + if (other == com.google.container.v1.ListNodePoolsRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 42: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3238 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3238 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3238 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3238 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3238 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute 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]; + * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3244 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute 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]; + * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3244 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute 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]; + * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3244 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute 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]; + * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3244 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute 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]; + * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3244 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3248 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3248 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3248 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3248 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3248 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object parent_ = ""; + /** + *
+     * The parent (project, location, cluster name) 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 name) 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 name) 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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The parent (project, location, cluster name) 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(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * The parent (project, location, cluster name) 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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.ListNodePoolsRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ListNodePoolsRequest) + private static final com.google.container.v1.ListNodePoolsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.ListNodePoolsRequest(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.ListNodePoolsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java new file mode 100644 index 000000000000..d60d0917b2c9 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java @@ -0,0 +1,116 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface ListNodePoolsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ListNodePoolsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3238 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3238 + * @return The bytes for projectId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the parent
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3244 + * @return The zone. + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the parent
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3244 + * @return The bytes for zone. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3248 + * @return The clusterId. + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3248 + * @return The bytes for clusterId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * The parent (project, location, cluster name) 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 name) 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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsResponse.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsResponse.java new file mode 100644 index 000000000000..5f3ced9c6f36 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsResponse.java @@ -0,0 +1,860 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * ListNodePoolsResponse is the result of ListNodePoolsRequest.
+ * 
+ * + * Protobuf type {@code google.container.v1.ListNodePoolsResponse} + */ +public final class ListNodePoolsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ListNodePoolsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ListNodePoolsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ListNodePoolsResponse.class, com.google.container.v1.ListNodePoolsResponse.Builder.class); + } + + public static final int NODE_POOLS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List nodePools_; + /** + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1.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.v1.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.v1.NodePool node_pools = 1; + */ + @java.lang.Override + public int getNodePoolsCount() { + return nodePools_.size(); + } + /** + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1.NodePool node_pools = 1; + */ + @java.lang.Override + public com.google.container.v1.NodePool getNodePools(int index) { + return nodePools_.get(index); + } + /** + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1.NodePool node_pools = 1; + */ + @java.lang.Override + public com.google.container.v1.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)); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.ListNodePoolsResponse)) { + return super.equals(obj); + } + com.google.container.v1.ListNodePoolsResponse other = (com.google.container.v1.ListNodePoolsResponse) obj; + + if (!getNodePoolsList() + .equals(other.getNodePoolsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ListNodePoolsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.ListNodePoolsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.ListNodePoolsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ListNodePoolsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ListNodePoolsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.ListNodePoolsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.ListNodePoolsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.ListNodePoolsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ListNodePoolsResponse) + com.google.container.v1.ListNodePoolsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ListNodePoolsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ListNodePoolsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ListNodePoolsResponse.class, com.google.container.v1.ListNodePoolsResponse.Builder.class); + } + + // Construct using com.google.container.v1.ListNodePoolsResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (nodePoolsBuilder_ == null) { + nodePools_ = java.util.Collections.emptyList(); + } else { + nodePools_ = null; + nodePoolsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ListNodePoolsResponse_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ListNodePoolsResponse getDefaultInstanceForType() { + return com.google.container.v1.ListNodePoolsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ListNodePoolsResponse build() { + com.google.container.v1.ListNodePoolsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ListNodePoolsResponse buildPartial() { + com.google.container.v1.ListNodePoolsResponse result = new com.google.container.v1.ListNodePoolsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1.ListNodePoolsResponse result) { + if (nodePoolsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + nodePools_ = java.util.Collections.unmodifiableList(nodePools_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.nodePools_ = nodePools_; + } else { + result.nodePools_ = nodePoolsBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1.ListNodePoolsResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ListNodePoolsResponse) { + return mergeFrom((com.google.container.v1.ListNodePoolsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ListNodePoolsResponse other) { + if (other == com.google.container.v1.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.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.container.v1.NodePool m = + input.readMessage( + com.google.container.v1.NodePool.parser(), + extensionRegistry); + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + nodePools_.add(m); + } else { + nodePoolsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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.v1.NodePool, com.google.container.v1.NodePool.Builder, com.google.container.v1.NodePoolOrBuilder> nodePoolsBuilder_; + + /** + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1.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.v1.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.v1.NodePool node_pools = 1; + */ + public com.google.container.v1.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.v1.NodePool node_pools = 1; + */ + public Builder setNodePools( + int index, com.google.container.v1.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.v1.NodePool node_pools = 1; + */ + public Builder setNodePools( + int index, com.google.container.v1.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.v1.NodePool node_pools = 1; + */ + public Builder addNodePools(com.google.container.v1.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.v1.NodePool node_pools = 1; + */ + public Builder addNodePools( + int index, com.google.container.v1.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.v1.NodePool node_pools = 1; + */ + public Builder addNodePools( + com.google.container.v1.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.v1.NodePool node_pools = 1; + */ + public Builder addNodePools( + int index, com.google.container.v1.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.v1.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.v1.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.v1.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.v1.NodePool node_pools = 1; + */ + public com.google.container.v1.NodePool.Builder getNodePoolsBuilder( + int index) { + return getNodePoolsFieldBuilder().getBuilder(index); + } + /** + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1.NodePool node_pools = 1; + */ + public com.google.container.v1.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.v1.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.v1.NodePool node_pools = 1; + */ + public com.google.container.v1.NodePool.Builder addNodePoolsBuilder() { + return getNodePoolsFieldBuilder().addBuilder( + com.google.container.v1.NodePool.getDefaultInstance()); + } + /** + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1.NodePool node_pools = 1; + */ + public com.google.container.v1.NodePool.Builder addNodePoolsBuilder( + int index) { + return getNodePoolsFieldBuilder().addBuilder( + index, com.google.container.v1.NodePool.getDefaultInstance()); + } + /** + *
+     * A list of node pools for a cluster.
+     * 
+ * + * repeated .google.container.v1.NodePool node_pools = 1; + */ + public java.util.List + getNodePoolsBuilderList() { + return getNodePoolsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.NodePool, com.google.container.v1.NodePool.Builder, com.google.container.v1.NodePoolOrBuilder> + getNodePoolsFieldBuilder() { + if (nodePoolsBuilder_ == null) { + nodePoolsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.NodePool, com.google.container.v1.NodePool.Builder, com.google.container.v1.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.v1.ListNodePoolsResponse) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ListNodePoolsResponse) + private static final com.google.container.v1.ListNodePoolsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.ListNodePoolsResponse(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.ListNodePoolsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsResponseOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsResponseOrBuilder.java new file mode 100644 index 000000000000..bd3185e61f5a --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsResponseOrBuilder.java @@ -0,0 +1,54 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface ListNodePoolsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ListNodePoolsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1.NodePool node_pools = 1; + */ + java.util.List + getNodePoolsList(); + /** + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1.NodePool node_pools = 1; + */ + com.google.container.v1.NodePool getNodePools(int index); + /** + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1.NodePool node_pools = 1; + */ + int getNodePoolsCount(); + /** + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1.NodePool node_pools = 1; + */ + java.util.List + getNodePoolsOrBuilderList(); + /** + *
+   * A list of node pools for a cluster.
+   * 
+ * + * repeated .google.container.v1.NodePool node_pools = 1; + */ + com.google.container.v1.NodePoolOrBuilder getNodePoolsOrBuilder( + int index); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java new file mode 100644 index 000000000000..f1fe9d7a2cc2 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java @@ -0,0 +1,983 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * ListOperationsRequest lists operations.
+ * 
+ * + * Protobuf type {@code google.container.v1.ListOperationsRequest} + */ +public final class ListOperationsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ListOperationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ListOperationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ListOperationsRequest.class, com.google.container.v1.ListOperationsRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3083 + * @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; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3083 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + /** + *
+   * 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]; + * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3089 + * @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; + } + } + /** + *
+   * 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]; + * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3089 + * @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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parent_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parent_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.ListOperationsRequest)) { + return super.equals(obj); + } + com.google.container.v1.ListOperationsRequest other = (com.google.container.v1.ListOperationsRequest) obj; + + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getZone() + .equals(other.getZone())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ListOperationsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.ListOperationsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.ListOperationsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ListOperationsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ListOperationsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.ListOperationsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.ListOperationsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.ListOperationsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ListOperationsRequest) + com.google.container.v1.ListOperationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ListOperationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ListOperationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ListOperationsRequest.class, com.google.container.v1.ListOperationsRequest.Builder.class); + } + + // Construct using com.google.container.v1.ListOperationsRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + parent_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ListOperationsRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ListOperationsRequest getDefaultInstanceForType() { + return com.google.container.v1.ListOperationsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ListOperationsRequest build() { + com.google.container.v1.ListOperationsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ListOperationsRequest buildPartial() { + com.google.container.v1.ListOperationsRequest result = new com.google.container.v1.ListOperationsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.ListOperationsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.parent_ = parent_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ListOperationsRequest) { + return mergeFrom((com.google.container.v1.ListOperationsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ListOperationsRequest other) { + if (other == com.google.container.v1.ListOperationsRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3083 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3083 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3083 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3083 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3083 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * 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]; + * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3089 + * @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; + } + } + /** + *
+     * 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]; + * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3089 + * @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; + } + } + /** + *
+     * 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]; + * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3089 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * 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]; + * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3089 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * 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]; + * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3089 + * @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; + bitField0_ |= 0x00000002; + 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; + bitField0_ |= 0x00000004; + 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(); + bitField0_ = (bitField0_ & ~0x00000004); + 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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.ListOperationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ListOperationsRequest) + private static final com.google.container.v1.ListOperationsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.ListOperationsRequest(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.ListOperationsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java new file mode 100644 index 000000000000..13a23d8ef80d --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java @@ -0,0 +1,92 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface ListOperationsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ListOperationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3083 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3083 + * @return The bytes for projectId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) to return
+   * operations for, or `-` for all zones. This field has been deprecated and
+   * replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3089 + * @return The zone. + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) to return
+   * operations for, or `-` for all zones. This field has been deprecated and
+   * replaced by the parent field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3089 + * @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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsResponse.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsResponse.java new file mode 100644 index 000000000000..72274a8626f4 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsResponse.java @@ -0,0 +1,1114 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * ListOperationsResponse is the result of ListOperationsRequest.
+ * 
+ * + * Protobuf type {@code google.container.v1.ListOperationsResponse} + */ +public final class ListOperationsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListOperationsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ListOperationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ListOperationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ListOperationsResponse.class, com.google.container.v1.ListOperationsResponse.Builder.class); + } + + public static final int OPERATIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List operations_; + /** + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1.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.v1.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.v1.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.v1.Operation operations = 1; + */ + @java.lang.Override + public com.google.container.v1.Operation getOperations(int index) { + return operations_.get(index); + } + /** + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1.Operation operations = 1; + */ + @java.lang.Override + public com.google.container.v1.OperationOrBuilder getOperationsOrBuilder( + int index) { + return operations_.get(index); + } + + public static final int MISSING_ZONES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList missingZones_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * 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)); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.ListOperationsResponse)) { + return super.equals(obj); + } + com.google.container.v1.ListOperationsResponse other = (com.google.container.v1.ListOperationsResponse) obj; + + if (!getOperationsList() + .equals(other.getOperationsList())) return false; + if (!getMissingZonesList() + .equals(other.getMissingZonesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ListOperationsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.ListOperationsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.ListOperationsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ListOperationsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ListOperationsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.ListOperationsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.ListOperationsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.ListOperationsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ListOperationsResponse) + com.google.container.v1.ListOperationsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ListOperationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ListOperationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ListOperationsResponse.class, com.google.container.v1.ListOperationsResponse.Builder.class); + } + + // Construct using com.google.container.v1.ListOperationsResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (operationsBuilder_ == null) { + operations_ = java.util.Collections.emptyList(); + } else { + operations_ = null; + operationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + missingZones_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ListOperationsResponse_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ListOperationsResponse getDefaultInstanceForType() { + return com.google.container.v1.ListOperationsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ListOperationsResponse build() { + com.google.container.v1.ListOperationsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ListOperationsResponse buildPartial() { + com.google.container.v1.ListOperationsResponse result = new com.google.container.v1.ListOperationsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1.ListOperationsResponse result) { + if (operationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + operations_ = java.util.Collections.unmodifiableList(operations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.operations_ = operations_; + } else { + result.operations_ = operationsBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1.ListOperationsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + missingZones_.makeImmutable(); + result.missingZones_ = missingZones_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ListOperationsResponse) { + return mergeFrom((com.google.container.v1.ListOperationsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ListOperationsResponse other) { + if (other == com.google.container.v1.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_ |= 0x00000002; + } else { + ensureMissingZonesIsMutable(); + missingZones_.addAll(other.missingZones_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.container.v1.Operation m = + input.readMessage( + com.google.container.v1.Operation.parser(), + extensionRegistry); + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + operations_.add(m); + } else { + operationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureMissingZonesIsMutable(); + missingZones_.add(s); + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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.v1.Operation, com.google.container.v1.Operation.Builder, com.google.container.v1.OperationOrBuilder> operationsBuilder_; + + /** + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1.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.v1.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.v1.Operation operations = 1; + */ + public com.google.container.v1.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.v1.Operation operations = 1; + */ + public Builder setOperations( + int index, com.google.container.v1.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.v1.Operation operations = 1; + */ + public Builder setOperations( + int index, com.google.container.v1.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.v1.Operation operations = 1; + */ + public Builder addOperations(com.google.container.v1.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.v1.Operation operations = 1; + */ + public Builder addOperations( + int index, com.google.container.v1.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.v1.Operation operations = 1; + */ + public Builder addOperations( + com.google.container.v1.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.v1.Operation operations = 1; + */ + public Builder addOperations( + int index, com.google.container.v1.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.v1.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.v1.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.v1.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.v1.Operation operations = 1; + */ + public com.google.container.v1.Operation.Builder getOperationsBuilder( + int index) { + return getOperationsFieldBuilder().getBuilder(index); + } + /** + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1.Operation operations = 1; + */ + public com.google.container.v1.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.v1.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.v1.Operation operations = 1; + */ + public com.google.container.v1.Operation.Builder addOperationsBuilder() { + return getOperationsFieldBuilder().addBuilder( + com.google.container.v1.Operation.getDefaultInstance()); + } + /** + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1.Operation operations = 1; + */ + public com.google.container.v1.Operation.Builder addOperationsBuilder( + int index) { + return getOperationsFieldBuilder().addBuilder( + index, com.google.container.v1.Operation.getDefaultInstance()); + } + /** + *
+     * A list of operations in the project in the specified zone.
+     * 
+ * + * repeated .google.container.v1.Operation operations = 1; + */ + public java.util.List + getOperationsBuilderList() { + return getOperationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.Operation, com.google.container.v1.Operation.Builder, com.google.container.v1.OperationOrBuilder> + getOperationsFieldBuilder() { + if (operationsBuilder_ == null) { + operationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.Operation, com.google.container.v1.Operation.Builder, com.google.container.v1.OperationOrBuilder>( + operations_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + operations_ = null; + } + return operationsBuilder_; + } + + private com.google.protobuf.LazyStringArrayList missingZones_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureMissingZonesIsMutable() { + if (!missingZones_.isModifiable()) { + 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() { + missingZones_.makeImmutable(); + 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); + } + /** + *
+     * 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); + 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 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); + 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 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_); + 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; + * @return This builder for chaining. + */ + public Builder clearMissingZones() { + missingZones_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + 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); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.ListOperationsResponse) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ListOperationsResponse) + private static final com.google.container.v1.ListOperationsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.ListOperationsResponse(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.ListOperationsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsResponseOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsResponseOrBuilder.java new file mode 100644 index 000000000000..8c6de5c60367 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsResponseOrBuilder.java @@ -0,0 +1,99 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface ListOperationsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ListOperationsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1.Operation operations = 1; + */ + java.util.List + getOperationsList(); + /** + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1.Operation operations = 1; + */ + com.google.container.v1.Operation getOperations(int index); + /** + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1.Operation operations = 1; + */ + int getOperationsCount(); + /** + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1.Operation operations = 1; + */ + java.util.List + getOperationsOrBuilderList(); + /** + *
+   * A list of operations in the project in the specified zone.
+   * 
+ * + * repeated .google.container.v1.Operation operations = 1; + */ + com.google.container.v1.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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksRequest.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksRequest.java new file mode 100644 index 000000000000..4c7b33ce3ab5 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksRequest.java @@ -0,0 +1,1037 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * ListUsableSubnetworksRequest requests the list of usable subnetworks
+ * available to a user for creating clusters.
+ * 
+ * + * Protobuf type {@code google.container.v1.ListUsableSubnetworksRequest} + */ +public final class ListUsableSubnetworksRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ListUsableSubnetworksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ListUsableSubnetworksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ListUsableSubnetworksRequest.class, com.google.container.v1.ListUsableSubnetworksRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + *
+   * The parent project where subnetworks are usable.
+   * Specified in the format `projects/*`.
+   * 
+ * + * 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 parent project where subnetworks are usable.
+   * Specified in the format `projects/*`.
+   * 
+ * + * 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; + } + } + + public static final int FILTER_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + 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_ = 0; + /** + *
+   * 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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.ListUsableSubnetworksRequest)) { + return super.equals(obj); + } + com.google.container.v1.ListUsableSubnetworksRequest other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ListUsableSubnetworksRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.ListUsableSubnetworksRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.ListUsableSubnetworksRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ListUsableSubnetworksRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ListUsableSubnetworksRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.ListUsableSubnetworksRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.ListUsableSubnetworksRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.ListUsableSubnetworksRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ListUsableSubnetworksRequest) + com.google.container.v1.ListUsableSubnetworksRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ListUsableSubnetworksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ListUsableSubnetworksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ListUsableSubnetworksRequest.class, com.google.container.v1.ListUsableSubnetworksRequest.Builder.class); + } + + // Construct using com.google.container.v1.ListUsableSubnetworksRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + filter_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ListUsableSubnetworksRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ListUsableSubnetworksRequest getDefaultInstanceForType() { + return com.google.container.v1.ListUsableSubnetworksRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ListUsableSubnetworksRequest build() { + com.google.container.v1.ListUsableSubnetworksRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ListUsableSubnetworksRequest buildPartial() { + com.google.container.v1.ListUsableSubnetworksRequest result = new com.google.container.v1.ListUsableSubnetworksRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.ListUsableSubnetworksRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ListUsableSubnetworksRequest) { + return mergeFrom((com.google.container.v1.ListUsableSubnetworksRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ListUsableSubnetworksRequest other) { + if (other == com.google.container.v1.ListUsableSubnetworksRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + *
+     * The parent project where subnetworks are usable.
+     * Specified in the format `projects/*`.
+     * 
+ * + * 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 parent project where subnetworks are usable.
+     * Specified in the format `projects/*`.
+     * 
+ * + * 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 parent project where subnetworks are usable.
+     * Specified in the format `projects/*`.
+     * 
+ * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The parent project where subnetworks are usable.
+     * Specified in the format `projects/*`.
+     * 
+ * + * string parent = 1; + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * The parent project where subnetworks are usable.
+     * Specified in the format `projects/*`.
+     * 
+ * + * 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; + bitField0_ |= 0x00000001; + 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; + bitField0_ |= 0x00000002; + 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(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + 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; + bitField0_ |= 0x00000004; + 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() { + bitField0_ = (bitField0_ & ~0x00000004); + 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; + bitField0_ |= 0x00000008; + 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(); + bitField0_ = (bitField0_ & ~0x00000008); + 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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.ListUsableSubnetworksRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ListUsableSubnetworksRequest) + private static final com.google.container.v1.ListUsableSubnetworksRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.ListUsableSubnetworksRequest(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.ListUsableSubnetworksRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksRequestOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksRequestOrBuilder.java new file mode 100644 index 000000000000..d29376d05613 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksRequestOrBuilder.java @@ -0,0 +1,93 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface ListUsableSubnetworksRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ListUsableSubnetworksRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The parent project where subnetworks are usable.
+   * Specified in the format `projects/*`.
+   * 
+ * + * string parent = 1; + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * The parent project where subnetworks are usable.
+   * Specified in the format `projects/*`.
+   * 
+ * + * string parent = 1; + * @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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksResponse.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksResponse.java new file mode 100644 index 000000000000..c40b74d9fbcd --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksResponse.java @@ -0,0 +1,1047 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * ListUsableSubnetworksResponse is the response of
+ * ListUsableSubnetworksRequest.
+ * 
+ * + * Protobuf type {@code google.container.v1.ListUsableSubnetworksResponse} + */ +public final class ListUsableSubnetworksResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ListUsableSubnetworksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ListUsableSubnetworksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ListUsableSubnetworksResponse.class, com.google.container.v1.ListUsableSubnetworksResponse.Builder.class); + } + + public static final int SUBNETWORKS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List subnetworks_; + /** + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1.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.v1.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.v1.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.v1.UsableSubnetwork subnetworks = 1; + */ + @java.lang.Override + public com.google.container.v1.UsableSubnetwork getSubnetworks(int index) { + return subnetworks_.get(index); + } + /** + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; + */ + @java.lang.Override + public com.google.container.v1.UsableSubnetworkOrBuilder getSubnetworksOrBuilder( + int index) { + return subnetworks_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.ListUsableSubnetworksResponse)) { + return super.equals(obj); + } + com.google.container.v1.ListUsableSubnetworksResponse other = (com.google.container.v1.ListUsableSubnetworksResponse) obj; + + if (!getSubnetworksList() + .equals(other.getSubnetworksList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ListUsableSubnetworksResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.ListUsableSubnetworksResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.ListUsableSubnetworksResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ListUsableSubnetworksResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ListUsableSubnetworksResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.ListUsableSubnetworksResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.ListUsableSubnetworksResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.ListUsableSubnetworksResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ListUsableSubnetworksResponse) + com.google.container.v1.ListUsableSubnetworksResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ListUsableSubnetworksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ListUsableSubnetworksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ListUsableSubnetworksResponse.class, com.google.container.v1.ListUsableSubnetworksResponse.Builder.class); + } + + // Construct using com.google.container.v1.ListUsableSubnetworksResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (subnetworksBuilder_ == null) { + subnetworks_ = java.util.Collections.emptyList(); + } else { + subnetworks_ = null; + subnetworksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ListUsableSubnetworksResponse_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ListUsableSubnetworksResponse getDefaultInstanceForType() { + return com.google.container.v1.ListUsableSubnetworksResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ListUsableSubnetworksResponse build() { + com.google.container.v1.ListUsableSubnetworksResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ListUsableSubnetworksResponse buildPartial() { + com.google.container.v1.ListUsableSubnetworksResponse result = new com.google.container.v1.ListUsableSubnetworksResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1.ListUsableSubnetworksResponse result) { + if (subnetworksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + subnetworks_ = java.util.Collections.unmodifiableList(subnetworks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.subnetworks_ = subnetworks_; + } else { + result.subnetworks_ = subnetworksBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1.ListUsableSubnetworksResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ListUsableSubnetworksResponse) { + return mergeFrom((com.google.container.v1.ListUsableSubnetworksResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ListUsableSubnetworksResponse other) { + if (other == com.google.container.v1.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_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.container.v1.UsableSubnetwork m = + input.readMessage( + com.google.container.v1.UsableSubnetwork.parser(), + extensionRegistry); + if (subnetworksBuilder_ == null) { + ensureSubnetworksIsMutable(); + subnetworks_.add(m); + } else { + subnetworksBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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.v1.UsableSubnetwork, com.google.container.v1.UsableSubnetwork.Builder, com.google.container.v1.UsableSubnetworkOrBuilder> subnetworksBuilder_; + + /** + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1.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.v1.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.v1.UsableSubnetwork subnetworks = 1; + */ + public com.google.container.v1.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.v1.UsableSubnetwork subnetworks = 1; + */ + public Builder setSubnetworks( + int index, com.google.container.v1.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.v1.UsableSubnetwork subnetworks = 1; + */ + public Builder setSubnetworks( + int index, com.google.container.v1.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.v1.UsableSubnetwork subnetworks = 1; + */ + public Builder addSubnetworks(com.google.container.v1.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.v1.UsableSubnetwork subnetworks = 1; + */ + public Builder addSubnetworks( + int index, com.google.container.v1.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.v1.UsableSubnetwork subnetworks = 1; + */ + public Builder addSubnetworks( + com.google.container.v1.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.v1.UsableSubnetwork subnetworks = 1; + */ + public Builder addSubnetworks( + int index, com.google.container.v1.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.v1.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.v1.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.v1.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.v1.UsableSubnetwork subnetworks = 1; + */ + public com.google.container.v1.UsableSubnetwork.Builder getSubnetworksBuilder( + int index) { + return getSubnetworksFieldBuilder().getBuilder(index); + } + /** + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; + */ + public com.google.container.v1.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.v1.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.v1.UsableSubnetwork subnetworks = 1; + */ + public com.google.container.v1.UsableSubnetwork.Builder addSubnetworksBuilder() { + return getSubnetworksFieldBuilder().addBuilder( + com.google.container.v1.UsableSubnetwork.getDefaultInstance()); + } + /** + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; + */ + public com.google.container.v1.UsableSubnetwork.Builder addSubnetworksBuilder( + int index) { + return getSubnetworksFieldBuilder().addBuilder( + index, com.google.container.v1.UsableSubnetwork.getDefaultInstance()); + } + /** + *
+     * A list of usable subnetworks in the specified network project.
+     * 
+ * + * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; + */ + public java.util.List + getSubnetworksBuilderList() { + return getSubnetworksFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.UsableSubnetwork, com.google.container.v1.UsableSubnetwork.Builder, com.google.container.v1.UsableSubnetworkOrBuilder> + getSubnetworksFieldBuilder() { + if (subnetworksBuilder_ == null) { + subnetworksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.UsableSubnetwork, com.google.container.v1.UsableSubnetwork.Builder, com.google.container.v1.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; + bitField0_ |= 0x00000002; + 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(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.ListUsableSubnetworksResponse) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ListUsableSubnetworksResponse) + private static final com.google.container.v1.ListUsableSubnetworksResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.ListUsableSubnetworksResponse(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.ListUsableSubnetworksResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksResponseOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksResponseOrBuilder.java new file mode 100644 index 000000000000..32ba4a85db05 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksResponseOrBuilder.java @@ -0,0 +1,80 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface ListUsableSubnetworksResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ListUsableSubnetworksResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; + */ + java.util.List + getSubnetworksList(); + /** + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; + */ + com.google.container.v1.UsableSubnetwork getSubnetworks(int index); + /** + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; + */ + int getSubnetworksCount(); + /** + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; + */ + java.util.List + getSubnetworksOrBuilderList(); + /** + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; + */ + com.google.container.v1.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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LocalNvmeSsdBlockConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LocalNvmeSsdBlockConfig.java new file mode 100644 index 000000000000..3a33e972459d --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LocalNvmeSsdBlockConfig.java @@ -0,0 +1,558 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * LocalNvmeSsdBlockConfig contains configuration for using raw-block local
+ * NVMe SSDs
+ * 
+ * + * Protobuf type {@code google.container.v1.LocalNvmeSsdBlockConfig} + */ +public final class LocalNvmeSsdBlockConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.LocalNvmeSsdBlockConfig) + LocalNvmeSsdBlockConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use LocalNvmeSsdBlockConfig.newBuilder() to construct. + private LocalNvmeSsdBlockConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LocalNvmeSsdBlockConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LocalNvmeSsdBlockConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_LocalNvmeSsdBlockConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_LocalNvmeSsdBlockConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.LocalNvmeSsdBlockConfig.class, com.google.container.v1.LocalNvmeSsdBlockConfig.Builder.class); + } + + public static final int LOCAL_SSD_COUNT_FIELD_NUMBER = 1; + private int localSsdCount_ = 0; + /** + *
+   * Number of local NVMe SSDs to use.  The limit for this value is dependent
+   * upon the maximum number of disk available on a machine per zone. See:
+   * https://cloud.google.com/compute/docs/disks/local-ssd
+   * for more information.
+   *
+   * A zero (or unset) value has different meanings depending on machine type
+   * being used:
+   * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
+   * zero (or unset) means to disable using local SSDs as ephemeral storage.
+   * 2. For Gen3 machines which dictate a specific number of local ssds, zero
+   * (or unset) means to use the default number of local ssds that goes with
+   * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
+   * ssds would be provisioned. For c3-standard-8 (which doesn't support local
+   * ssds), 0 will be provisioned. See
+   * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
+   * for more info.
+   * 
+ * + * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.LocalNvmeSsdBlockConfig)) { + return super.equals(obj); + } + com.google.container.v1.LocalNvmeSsdBlockConfig other = (com.google.container.v1.LocalNvmeSsdBlockConfig) obj; + + if (getLocalSsdCount() + != other.getLocalSsdCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.LocalNvmeSsdBlockConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.LocalNvmeSsdBlockConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.LocalNvmeSsdBlockConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.LocalNvmeSsdBlockConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.LocalNvmeSsdBlockConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.LocalNvmeSsdBlockConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.LocalNvmeSsdBlockConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.LocalNvmeSsdBlockConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.LocalNvmeSsdBlockConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.LocalNvmeSsdBlockConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.LocalNvmeSsdBlockConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.LocalNvmeSsdBlockConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.LocalNvmeSsdBlockConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * LocalNvmeSsdBlockConfig contains configuration for using raw-block local
+   * NVMe SSDs
+   * 
+ * + * Protobuf type {@code google.container.v1.LocalNvmeSsdBlockConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.LocalNvmeSsdBlockConfig) + com.google.container.v1.LocalNvmeSsdBlockConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_LocalNvmeSsdBlockConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_LocalNvmeSsdBlockConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.LocalNvmeSsdBlockConfig.class, com.google.container.v1.LocalNvmeSsdBlockConfig.Builder.class); + } + + // Construct using com.google.container.v1.LocalNvmeSsdBlockConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + localSsdCount_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_LocalNvmeSsdBlockConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.LocalNvmeSsdBlockConfig getDefaultInstanceForType() { + return com.google.container.v1.LocalNvmeSsdBlockConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.LocalNvmeSsdBlockConfig build() { + com.google.container.v1.LocalNvmeSsdBlockConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.LocalNvmeSsdBlockConfig buildPartial() { + com.google.container.v1.LocalNvmeSsdBlockConfig result = new com.google.container.v1.LocalNvmeSsdBlockConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.LocalNvmeSsdBlockConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.localSsdCount_ = localSsdCount_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.LocalNvmeSsdBlockConfig) { + return mergeFrom((com.google.container.v1.LocalNvmeSsdBlockConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.LocalNvmeSsdBlockConfig other) { + if (other == com.google.container.v1.LocalNvmeSsdBlockConfig.getDefaultInstance()) return this; + if (other.getLocalSsdCount() != 0) { + setLocalSsdCount(other.getLocalSsdCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + localSsdCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int localSsdCount_ ; + /** + *
+     * Number of local NVMe SSDs to use.  The limit for this value is dependent
+     * upon the maximum number of disk available on a machine per zone. See:
+     * https://cloud.google.com/compute/docs/disks/local-ssd
+     * for more information.
+     *
+     * A zero (or unset) value has different meanings depending on machine type
+     * being used:
+     * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
+     * zero (or unset) means to disable using local SSDs as ephemeral storage.
+     * 2. For Gen3 machines which dictate a specific number of local ssds, zero
+     * (or unset) means to use the default number of local ssds that goes with
+     * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
+     * ssds would be provisioned. For c3-standard-8 (which doesn't support local
+     * ssds), 0 will be provisioned. See
+     * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
+     * for more info.
+     * 
+ * + * int32 local_ssd_count = 1; + * @return The localSsdCount. + */ + @java.lang.Override + public int getLocalSsdCount() { + return localSsdCount_; + } + /** + *
+     * Number of local NVMe SSDs to use.  The limit for this value is dependent
+     * upon the maximum number of disk available on a machine per zone. See:
+     * https://cloud.google.com/compute/docs/disks/local-ssd
+     * for more information.
+     *
+     * A zero (or unset) value has different meanings depending on machine type
+     * being used:
+     * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
+     * zero (or unset) means to disable using local SSDs as ephemeral storage.
+     * 2. For Gen3 machines which dictate a specific number of local ssds, zero
+     * (or unset) means to use the default number of local ssds that goes with
+     * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
+     * ssds would be provisioned. For c3-standard-8 (which doesn't support local
+     * ssds), 0 will be provisioned. See
+     * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
+     * for more info.
+     * 
+ * + * int32 local_ssd_count = 1; + * @param value The localSsdCount to set. + * @return This builder for chaining. + */ + public Builder setLocalSsdCount(int value) { + + localSsdCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Number of local NVMe SSDs to use.  The limit for this value is dependent
+     * upon the maximum number of disk available on a machine per zone. See:
+     * https://cloud.google.com/compute/docs/disks/local-ssd
+     * for more information.
+     *
+     * A zero (or unset) value has different meanings depending on machine type
+     * being used:
+     * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
+     * zero (or unset) means to disable using local SSDs as ephemeral storage.
+     * 2. For Gen3 machines which dictate a specific number of local ssds, zero
+     * (or unset) means to use the default number of local ssds that goes with
+     * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
+     * ssds would be provisioned. For c3-standard-8 (which doesn't support local
+     * ssds), 0 will be provisioned. See
+     * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
+     * for more info.
+     * 
+ * + * int32 local_ssd_count = 1; + * @return This builder for chaining. + */ + public Builder clearLocalSsdCount() { + bitField0_ = (bitField0_ & ~0x00000001); + 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.v1.LocalNvmeSsdBlockConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.LocalNvmeSsdBlockConfig) + private static final com.google.container.v1.LocalNvmeSsdBlockConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.LocalNvmeSsdBlockConfig(); + } + + public static com.google.container.v1.LocalNvmeSsdBlockConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocalNvmeSsdBlockConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.LocalNvmeSsdBlockConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LocalNvmeSsdBlockConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LocalNvmeSsdBlockConfigOrBuilder.java new file mode 100644 index 000000000000..4ff281dccf27 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LocalNvmeSsdBlockConfigOrBuilder.java @@ -0,0 +1,35 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface LocalNvmeSsdBlockConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.LocalNvmeSsdBlockConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Number of local NVMe SSDs to use.  The limit for this value is dependent
+   * upon the maximum number of disk available on a machine per zone. See:
+   * https://cloud.google.com/compute/docs/disks/local-ssd
+   * for more information.
+   *
+   * A zero (or unset) value has different meanings depending on machine type
+   * being used:
+   * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
+   * zero (or unset) means to disable using local SSDs as ephemeral storage.
+   * 2. For Gen3 machines which dictate a specific number of local ssds, zero
+   * (or unset) means to use the default number of local ssds that goes with
+   * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
+   * ssds would be provisioned. For c3-standard-8 (which doesn't support local
+   * ssds), 0 will be provisioned. See
+   * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
+   * for more info.
+   * 
+ * + * int32 local_ssd_count = 1; + * @return The localSsdCount. + */ + int getLocalSsdCount(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingComponentConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingComponentConfig.java new file mode 100644 index 000000000000..311cd5dbfa92 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingComponentConfig.java @@ -0,0 +1,940 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * LoggingComponentConfig is cluster logging component configuration.
+ * 
+ * + * Protobuf type {@code google.container.v1.LoggingComponentConfig} + */ +public final class LoggingComponentConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.LoggingComponentConfig) + LoggingComponentConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use LoggingComponentConfig.newBuilder() to construct. + private LoggingComponentConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LoggingComponentConfig() { + enableComponents_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LoggingComponentConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_LoggingComponentConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_LoggingComponentConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.LoggingComponentConfig.class, com.google.container.v1.LoggingComponentConfig.Builder.class); + } + + /** + *
+   * GKE components exposing logs
+   * 
+ * + * Protobuf enum {@code google.container.v1.LoggingComponentConfig.Component} + */ + public enum Component + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Default value. This shouldn't be used.
+     * 
+ * + * COMPONENT_UNSPECIFIED = 0; + */ + COMPONENT_UNSPECIFIED(0), + /** + *
+     * system components
+     * 
+ * + * SYSTEM_COMPONENTS = 1; + */ + SYSTEM_COMPONENTS(1), + /** + *
+     * workloads
+     * 
+ * + * WORKLOADS = 2; + */ + WORKLOADS(2), + /** + *
+     * kube-apiserver
+     * 
+ * + * APISERVER = 3; + */ + APISERVER(3), + /** + *
+     * kube-scheduler
+     * 
+ * + * SCHEDULER = 4; + */ + SCHEDULER(4), + /** + *
+     * kube-controller-manager
+     * 
+ * + * CONTROLLER_MANAGER = 5; + */ + CONTROLLER_MANAGER(5), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Default value. This shouldn't be used.
+     * 
+ * + * COMPONENT_UNSPECIFIED = 0; + */ + public static final int COMPONENT_UNSPECIFIED_VALUE = 0; + /** + *
+     * system components
+     * 
+ * + * SYSTEM_COMPONENTS = 1; + */ + public static final int SYSTEM_COMPONENTS_VALUE = 1; + /** + *
+     * workloads
+     * 
+ * + * WORKLOADS = 2; + */ + public static final int WORKLOADS_VALUE = 2; + /** + *
+     * kube-apiserver
+     * 
+ * + * APISERVER = 3; + */ + public static final int APISERVER_VALUE = 3; + /** + *
+     * kube-scheduler
+     * 
+ * + * SCHEDULER = 4; + */ + public static final int SCHEDULER_VALUE = 4; + /** + *
+     * kube-controller-manager
+     * 
+ * + * CONTROLLER_MANAGER = 5; + */ + public static final int CONTROLLER_MANAGER_VALUE = 5; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Component valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Component forNumber(int value) { + switch (value) { + case 0: return COMPONENT_UNSPECIFIED; + case 1: return SYSTEM_COMPONENTS; + case 2: return WORKLOADS; + case 3: return APISERVER; + case 4: return SCHEDULER; + case 5: return CONTROLLER_MANAGER; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Component> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Component findValueByNumber(int number) { + return Component.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.LoggingComponentConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final Component[] VALUES = values(); + + public static Component valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Component(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.LoggingComponentConfig.Component) + } + + public static final int ENABLE_COMPONENTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List enableComponents_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.container.v1.LoggingComponentConfig.Component> enableComponents_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.container.v1.LoggingComponentConfig.Component>() { + public com.google.container.v1.LoggingComponentConfig.Component convert(java.lang.Integer from) { + com.google.container.v1.LoggingComponentConfig.Component result = com.google.container.v1.LoggingComponentConfig.Component.forNumber(from); + return result == null ? com.google.container.v1.LoggingComponentConfig.Component.UNRECOGNIZED : result; + } + }; + /** + *
+   * Select components to collect logs. An empty set would disable all logging.
+   * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * @return A list containing the enableComponents. + */ + @java.lang.Override + public java.util.List getEnableComponentsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.container.v1.LoggingComponentConfig.Component>(enableComponents_, enableComponents_converter_); + } + /** + *
+   * Select components to collect logs. An empty set would disable all logging.
+   * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * @return The count of enableComponents. + */ + @java.lang.Override + public int getEnableComponentsCount() { + return enableComponents_.size(); + } + /** + *
+   * Select components to collect logs. An empty set would disable all logging.
+   * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * @param index The index of the element to return. + * @return The enableComponents at the given index. + */ + @java.lang.Override + public com.google.container.v1.LoggingComponentConfig.Component getEnableComponents(int index) { + return enableComponents_converter_.convert(enableComponents_.get(index)); + } + /** + *
+   * Select components to collect logs. An empty set would disable all logging.
+   * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * @return A list containing the enum numeric values on the wire for enableComponents. + */ + @java.lang.Override + public java.util.List + getEnableComponentsValueList() { + return enableComponents_; + } + /** + *
+   * Select components to collect logs. An empty set would disable all logging.
+   * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of enableComponents at the given index. + */ + @java.lang.Override + public int getEnableComponentsValue(int index) { + return enableComponents_.get(index); + } + private int enableComponentsMemoizedSerializedSize; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (getEnableComponentsList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(enableComponentsMemoizedSerializedSize); + } + for (int i = 0; i < enableComponents_.size(); i++) { + output.writeEnumNoTag(enableComponents_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < enableComponents_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(enableComponents_.get(i)); + } + size += dataSize; + if (!getEnableComponentsList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }enableComponentsMemoizedSerializedSize = dataSize; + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.LoggingComponentConfig)) { + return super.equals(obj); + } + com.google.container.v1.LoggingComponentConfig other = (com.google.container.v1.LoggingComponentConfig) obj; + + if (!enableComponents_.equals(other.enableComponents_)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEnableComponentsCount() > 0) { + hash = (37 * hash) + ENABLE_COMPONENTS_FIELD_NUMBER; + hash = (53 * hash) + enableComponents_.hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.LoggingComponentConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.LoggingComponentConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.LoggingComponentConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.LoggingComponentConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.LoggingComponentConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.LoggingComponentConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.LoggingComponentConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.LoggingComponentConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.LoggingComponentConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.LoggingComponentConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.LoggingComponentConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.LoggingComponentConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.LoggingComponentConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * LoggingComponentConfig is cluster logging component configuration.
+   * 
+ * + * Protobuf type {@code google.container.v1.LoggingComponentConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.LoggingComponentConfig) + com.google.container.v1.LoggingComponentConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_LoggingComponentConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_LoggingComponentConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.LoggingComponentConfig.class, com.google.container.v1.LoggingComponentConfig.Builder.class); + } + + // Construct using com.google.container.v1.LoggingComponentConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enableComponents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_LoggingComponentConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.LoggingComponentConfig getDefaultInstanceForType() { + return com.google.container.v1.LoggingComponentConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.LoggingComponentConfig build() { + com.google.container.v1.LoggingComponentConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.LoggingComponentConfig buildPartial() { + com.google.container.v1.LoggingComponentConfig result = new com.google.container.v1.LoggingComponentConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1.LoggingComponentConfig result) { + if (((bitField0_ & 0x00000001) != 0)) { + enableComponents_ = java.util.Collections.unmodifiableList(enableComponents_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.enableComponents_ = enableComponents_; + } + + private void buildPartial0(com.google.container.v1.LoggingComponentConfig result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.LoggingComponentConfig) { + return mergeFrom((com.google.container.v1.LoggingComponentConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.LoggingComponentConfig other) { + if (other == com.google.container.v1.LoggingComponentConfig.getDefaultInstance()) return this; + if (!other.enableComponents_.isEmpty()) { + if (enableComponents_.isEmpty()) { + enableComponents_ = other.enableComponents_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEnableComponentsIsMutable(); + enableComponents_.addAll(other.enableComponents_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int tmpRaw = input.readEnum(); + ensureEnableComponentsIsMutable(); + enableComponents_.add(tmpRaw); + break; + } // case 8 + case 10: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureEnableComponentsIsMutable(); + enableComponents_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List enableComponents_ = + java.util.Collections.emptyList(); + private void ensureEnableComponentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + enableComponents_ = new java.util.ArrayList(enableComponents_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * Select components to collect logs. An empty set would disable all logging.
+     * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * @return A list containing the enableComponents. + */ + public java.util.List getEnableComponentsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.container.v1.LoggingComponentConfig.Component>(enableComponents_, enableComponents_converter_); + } + /** + *
+     * Select components to collect logs. An empty set would disable all logging.
+     * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * @return The count of enableComponents. + */ + public int getEnableComponentsCount() { + return enableComponents_.size(); + } + /** + *
+     * Select components to collect logs. An empty set would disable all logging.
+     * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * @param index The index of the element to return. + * @return The enableComponents at the given index. + */ + public com.google.container.v1.LoggingComponentConfig.Component getEnableComponents(int index) { + return enableComponents_converter_.convert(enableComponents_.get(index)); + } + /** + *
+     * Select components to collect logs. An empty set would disable all logging.
+     * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * @param index The index to set the value at. + * @param value The enableComponents to set. + * @return This builder for chaining. + */ + public Builder setEnableComponents( + int index, com.google.container.v1.LoggingComponentConfig.Component value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnableComponentsIsMutable(); + enableComponents_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + *
+     * Select components to collect logs. An empty set would disable all logging.
+     * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * @param value The enableComponents to add. + * @return This builder for chaining. + */ + public Builder addEnableComponents(com.google.container.v1.LoggingComponentConfig.Component value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnableComponentsIsMutable(); + enableComponents_.add(value.getNumber()); + onChanged(); + return this; + } + /** + *
+     * Select components to collect logs. An empty set would disable all logging.
+     * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * @param values The enableComponents to add. + * @return This builder for chaining. + */ + public Builder addAllEnableComponents( + java.lang.Iterable values) { + ensureEnableComponentsIsMutable(); + for (com.google.container.v1.LoggingComponentConfig.Component value : values) { + enableComponents_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + *
+     * Select components to collect logs. An empty set would disable all logging.
+     * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * @return This builder for chaining. + */ + public Builder clearEnableComponents() { + enableComponents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Select components to collect logs. An empty set would disable all logging.
+     * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * @return A list containing the enum numeric values on the wire for enableComponents. + */ + public java.util.List + getEnableComponentsValueList() { + return java.util.Collections.unmodifiableList(enableComponents_); + } + /** + *
+     * Select components to collect logs. An empty set would disable all logging.
+     * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of enableComponents at the given index. + */ + public int getEnableComponentsValue(int index) { + return enableComponents_.get(index); + } + /** + *
+     * Select components to collect logs. An empty set would disable all logging.
+     * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for enableComponents to set. + * @return This builder for chaining. + */ + public Builder setEnableComponentsValue( + int index, int value) { + ensureEnableComponentsIsMutable(); + enableComponents_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * Select components to collect logs. An empty set would disable all logging.
+     * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * @param value The enum numeric value on the wire for enableComponents to add. + * @return This builder for chaining. + */ + public Builder addEnableComponentsValue(int value) { + ensureEnableComponentsIsMutable(); + enableComponents_.add(value); + onChanged(); + return this; + } + /** + *
+     * Select components to collect logs. An empty set would disable all logging.
+     * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * @param values The enum numeric values on the wire for enableComponents to add. + * @return This builder for chaining. + */ + public Builder addAllEnableComponentsValue( + java.lang.Iterable values) { + ensureEnableComponentsIsMutable(); + for (int value : values) { + enableComponents_.add(value); + } + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.LoggingComponentConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.LoggingComponentConfig) + private static final com.google.container.v1.LoggingComponentConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.LoggingComponentConfig(); + } + + public static com.google.container.v1.LoggingComponentConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LoggingComponentConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.LoggingComponentConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingComponentConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingComponentConfigOrBuilder.java new file mode 100644 index 000000000000..d84d0ca042e9 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingComponentConfigOrBuilder.java @@ -0,0 +1,59 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface LoggingComponentConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.LoggingComponentConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Select components to collect logs. An empty set would disable all logging.
+   * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * @return A list containing the enableComponents. + */ + java.util.List getEnableComponentsList(); + /** + *
+   * Select components to collect logs. An empty set would disable all logging.
+   * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * @return The count of enableComponents. + */ + int getEnableComponentsCount(); + /** + *
+   * Select components to collect logs. An empty set would disable all logging.
+   * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * @param index The index of the element to return. + * @return The enableComponents at the given index. + */ + com.google.container.v1.LoggingComponentConfig.Component getEnableComponents(int index); + /** + *
+   * Select components to collect logs. An empty set would disable all logging.
+   * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * @return A list containing the enum numeric values on the wire for enableComponents. + */ + java.util.List + getEnableComponentsValueList(); + /** + *
+   * Select components to collect logs. An empty set would disable all logging.
+   * 
+ * + * repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of enableComponents at the given index. + */ + int getEnableComponentsValue(int index); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingConfig.java new file mode 100644 index 000000000000..c833c322b69f --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingConfig.java @@ -0,0 +1,655 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * LoggingConfig is cluster logging configuration.
+ * 
+ * + * Protobuf type {@code google.container.v1.LoggingConfig} + */ +public final class LoggingConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.LoggingConfig) + LoggingConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use LoggingConfig.newBuilder() to construct. + private LoggingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LoggingConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LoggingConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_LoggingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_LoggingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.LoggingConfig.class, com.google.container.v1.LoggingConfig.Builder.class); + } + + private int bitField0_; + public static final int COMPONENT_CONFIG_FIELD_NUMBER = 1; + private com.google.container.v1.LoggingComponentConfig componentConfig_; + /** + *
+   * Logging components configuration
+   * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + * @return Whether the componentConfig field is set. + */ + @java.lang.Override + public boolean hasComponentConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Logging components configuration
+   * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + * @return The componentConfig. + */ + @java.lang.Override + public com.google.container.v1.LoggingComponentConfig getComponentConfig() { + return componentConfig_ == null ? com.google.container.v1.LoggingComponentConfig.getDefaultInstance() : componentConfig_; + } + /** + *
+   * Logging components configuration
+   * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + */ + @java.lang.Override + public com.google.container.v1.LoggingComponentConfigOrBuilder getComponentConfigOrBuilder() { + return componentConfig_ == null ? com.google.container.v1.LoggingComponentConfig.getDefaultInstance() : componentConfig_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getComponentConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getComponentConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.LoggingConfig)) { + return super.equals(obj); + } + com.google.container.v1.LoggingConfig other = (com.google.container.v1.LoggingConfig) obj; + + if (hasComponentConfig() != other.hasComponentConfig()) return false; + if (hasComponentConfig()) { + if (!getComponentConfig() + .equals(other.getComponentConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasComponentConfig()) { + hash = (37 * hash) + COMPONENT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getComponentConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.LoggingConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.LoggingConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.LoggingConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.LoggingConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.LoggingConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.LoggingConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.LoggingConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.LoggingConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.LoggingConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.LoggingConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.LoggingConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.LoggingConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.LoggingConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * LoggingConfig is cluster logging configuration.
+   * 
+ * + * Protobuf type {@code google.container.v1.LoggingConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.LoggingConfig) + com.google.container.v1.LoggingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_LoggingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_LoggingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.LoggingConfig.class, com.google.container.v1.LoggingConfig.Builder.class); + } + + // Construct using com.google.container.v1.LoggingConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getComponentConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + componentConfig_ = null; + if (componentConfigBuilder_ != null) { + componentConfigBuilder_.dispose(); + componentConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_LoggingConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.LoggingConfig getDefaultInstanceForType() { + return com.google.container.v1.LoggingConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.LoggingConfig build() { + com.google.container.v1.LoggingConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.LoggingConfig buildPartial() { + com.google.container.v1.LoggingConfig result = new com.google.container.v1.LoggingConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.LoggingConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.componentConfig_ = componentConfigBuilder_ == null + ? componentConfig_ + : componentConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.LoggingConfig) { + return mergeFrom((com.google.container.v1.LoggingConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.LoggingConfig other) { + if (other == com.google.container.v1.LoggingConfig.getDefaultInstance()) return this; + if (other.hasComponentConfig()) { + mergeComponentConfig(other.getComponentConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getComponentConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.container.v1.LoggingComponentConfig componentConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LoggingComponentConfig, com.google.container.v1.LoggingComponentConfig.Builder, com.google.container.v1.LoggingComponentConfigOrBuilder> componentConfigBuilder_; + /** + *
+     * Logging components configuration
+     * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + * @return Whether the componentConfig field is set. + */ + public boolean hasComponentConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Logging components configuration
+     * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + * @return The componentConfig. + */ + public com.google.container.v1.LoggingComponentConfig getComponentConfig() { + if (componentConfigBuilder_ == null) { + return componentConfig_ == null ? com.google.container.v1.LoggingComponentConfig.getDefaultInstance() : componentConfig_; + } else { + return componentConfigBuilder_.getMessage(); + } + } + /** + *
+     * Logging components configuration
+     * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + */ + public Builder setComponentConfig(com.google.container.v1.LoggingComponentConfig value) { + if (componentConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + componentConfig_ = value; + } else { + componentConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Logging components configuration
+     * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + */ + public Builder setComponentConfig( + com.google.container.v1.LoggingComponentConfig.Builder builderForValue) { + if (componentConfigBuilder_ == null) { + componentConfig_ = builderForValue.build(); + } else { + componentConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Logging components configuration
+     * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + */ + public Builder mergeComponentConfig(com.google.container.v1.LoggingComponentConfig value) { + if (componentConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + componentConfig_ != null && + componentConfig_ != com.google.container.v1.LoggingComponentConfig.getDefaultInstance()) { + getComponentConfigBuilder().mergeFrom(value); + } else { + componentConfig_ = value; + } + } else { + componentConfigBuilder_.mergeFrom(value); + } + if (componentConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+     * Logging components configuration
+     * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + */ + public Builder clearComponentConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + componentConfig_ = null; + if (componentConfigBuilder_ != null) { + componentConfigBuilder_.dispose(); + componentConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Logging components configuration
+     * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + */ + public com.google.container.v1.LoggingComponentConfig.Builder getComponentConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getComponentConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Logging components configuration
+     * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + */ + public com.google.container.v1.LoggingComponentConfigOrBuilder getComponentConfigOrBuilder() { + if (componentConfigBuilder_ != null) { + return componentConfigBuilder_.getMessageOrBuilder(); + } else { + return componentConfig_ == null ? + com.google.container.v1.LoggingComponentConfig.getDefaultInstance() : componentConfig_; + } + } + /** + *
+     * Logging components configuration
+     * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LoggingComponentConfig, com.google.container.v1.LoggingComponentConfig.Builder, com.google.container.v1.LoggingComponentConfigOrBuilder> + getComponentConfigFieldBuilder() { + if (componentConfigBuilder_ == null) { + componentConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LoggingComponentConfig, com.google.container.v1.LoggingComponentConfig.Builder, com.google.container.v1.LoggingComponentConfigOrBuilder>( + getComponentConfig(), + getParentForChildren(), + isClean()); + componentConfig_ = null; + } + return componentConfigBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.LoggingConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.LoggingConfig) + private static final com.google.container.v1.LoggingConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.LoggingConfig(); + } + + public static com.google.container.v1.LoggingConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LoggingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.LoggingConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingConfigOrBuilder.java new file mode 100644 index 000000000000..d6f4800a152b --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingConfigOrBuilder.java @@ -0,0 +1,37 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface LoggingConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.LoggingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Logging components configuration
+   * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + * @return Whether the componentConfig field is set. + */ + boolean hasComponentConfig(); + /** + *
+   * Logging components configuration
+   * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + * @return The componentConfig. + */ + com.google.container.v1.LoggingComponentConfig getComponentConfig(); + /** + *
+   * Logging components configuration
+   * 
+ * + * .google.container.v1.LoggingComponentConfig component_config = 1; + */ + com.google.container.v1.LoggingComponentConfigOrBuilder getComponentConfigOrBuilder(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingVariantConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingVariantConfig.java new file mode 100644 index 000000000000..9e4250d27b9e --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingVariantConfig.java @@ -0,0 +1,681 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * LoggingVariantConfig specifies the behaviour of the logging component.
+ * 
+ * + * Protobuf type {@code google.container.v1.LoggingVariantConfig} + */ +public final class LoggingVariantConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.LoggingVariantConfig) + LoggingVariantConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use LoggingVariantConfig.newBuilder() to construct. + private LoggingVariantConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LoggingVariantConfig() { + variant_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LoggingVariantConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_LoggingVariantConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_LoggingVariantConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.LoggingVariantConfig.class, com.google.container.v1.LoggingVariantConfig.Builder.class); + } + + /** + *
+   * Logging component variants.
+   * 
+ * + * Protobuf enum {@code google.container.v1.LoggingVariantConfig.Variant} + */ + public enum Variant + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Default value. This shouldn't be used.
+     * 
+ * + * VARIANT_UNSPECIFIED = 0; + */ + VARIANT_UNSPECIFIED(0), + /** + *
+     * default logging variant.
+     * 
+ * + * DEFAULT = 1; + */ + DEFAULT(1), + /** + *
+     * maximum logging throughput variant.
+     * 
+ * + * MAX_THROUGHPUT = 2; + */ + MAX_THROUGHPUT(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Default value. This shouldn't be used.
+     * 
+ * + * VARIANT_UNSPECIFIED = 0; + */ + public static final int VARIANT_UNSPECIFIED_VALUE = 0; + /** + *
+     * default logging variant.
+     * 
+ * + * DEFAULT = 1; + */ + public static final int DEFAULT_VALUE = 1; + /** + *
+     * maximum logging throughput variant.
+     * 
+ * + * MAX_THROUGHPUT = 2; + */ + public static final int MAX_THROUGHPUT_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 Variant 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 Variant forNumber(int value) { + switch (value) { + case 0: return VARIANT_UNSPECIFIED; + case 1: return DEFAULT; + case 2: return MAX_THROUGHPUT; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Variant> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Variant findValueByNumber(int number) { + return Variant.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.LoggingVariantConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final Variant[] VALUES = values(); + + public static Variant 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 Variant(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.LoggingVariantConfig.Variant) + } + + public static final int VARIANT_FIELD_NUMBER = 1; + private int variant_ = 0; + /** + *
+   * Logging variant deployed on nodes.
+   * 
+ * + * .google.container.v1.LoggingVariantConfig.Variant variant = 1; + * @return The enum numeric value on the wire for variant. + */ + @java.lang.Override public int getVariantValue() { + return variant_; + } + /** + *
+   * Logging variant deployed on nodes.
+   * 
+ * + * .google.container.v1.LoggingVariantConfig.Variant variant = 1; + * @return The variant. + */ + @java.lang.Override public com.google.container.v1.LoggingVariantConfig.Variant getVariant() { + com.google.container.v1.LoggingVariantConfig.Variant result = com.google.container.v1.LoggingVariantConfig.Variant.forNumber(variant_); + return result == null ? com.google.container.v1.LoggingVariantConfig.Variant.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 (variant_ != com.google.container.v1.LoggingVariantConfig.Variant.VARIANT_UNSPECIFIED.getNumber()) { + output.writeEnum(1, variant_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (variant_ != com.google.container.v1.LoggingVariantConfig.Variant.VARIANT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, variant_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.LoggingVariantConfig)) { + return super.equals(obj); + } + com.google.container.v1.LoggingVariantConfig other = (com.google.container.v1.LoggingVariantConfig) obj; + + if (variant_ != other.variant_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + VARIANT_FIELD_NUMBER; + hash = (53 * hash) + variant_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.LoggingVariantConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.LoggingVariantConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.LoggingVariantConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.LoggingVariantConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.LoggingVariantConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.LoggingVariantConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.LoggingVariantConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.LoggingVariantConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.LoggingVariantConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.LoggingVariantConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.LoggingVariantConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.LoggingVariantConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.LoggingVariantConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * LoggingVariantConfig specifies the behaviour of the logging component.
+   * 
+ * + * Protobuf type {@code google.container.v1.LoggingVariantConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.LoggingVariantConfig) + com.google.container.v1.LoggingVariantConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_LoggingVariantConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_LoggingVariantConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.LoggingVariantConfig.class, com.google.container.v1.LoggingVariantConfig.Builder.class); + } + + // Construct using com.google.container.v1.LoggingVariantConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + variant_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_LoggingVariantConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.LoggingVariantConfig getDefaultInstanceForType() { + return com.google.container.v1.LoggingVariantConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.LoggingVariantConfig build() { + com.google.container.v1.LoggingVariantConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.LoggingVariantConfig buildPartial() { + com.google.container.v1.LoggingVariantConfig result = new com.google.container.v1.LoggingVariantConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.LoggingVariantConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.variant_ = variant_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.LoggingVariantConfig) { + return mergeFrom((com.google.container.v1.LoggingVariantConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.LoggingVariantConfig other) { + if (other == com.google.container.v1.LoggingVariantConfig.getDefaultInstance()) return this; + if (other.variant_ != 0) { + setVariantValue(other.getVariantValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + variant_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int variant_ = 0; + /** + *
+     * Logging variant deployed on nodes.
+     * 
+ * + * .google.container.v1.LoggingVariantConfig.Variant variant = 1; + * @return The enum numeric value on the wire for variant. + */ + @java.lang.Override public int getVariantValue() { + return variant_; + } + /** + *
+     * Logging variant deployed on nodes.
+     * 
+ * + * .google.container.v1.LoggingVariantConfig.Variant variant = 1; + * @param value The enum numeric value on the wire for variant to set. + * @return This builder for chaining. + */ + public Builder setVariantValue(int value) { + variant_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Logging variant deployed on nodes.
+     * 
+ * + * .google.container.v1.LoggingVariantConfig.Variant variant = 1; + * @return The variant. + */ + @java.lang.Override + public com.google.container.v1.LoggingVariantConfig.Variant getVariant() { + com.google.container.v1.LoggingVariantConfig.Variant result = com.google.container.v1.LoggingVariantConfig.Variant.forNumber(variant_); + return result == null ? com.google.container.v1.LoggingVariantConfig.Variant.UNRECOGNIZED : result; + } + /** + *
+     * Logging variant deployed on nodes.
+     * 
+ * + * .google.container.v1.LoggingVariantConfig.Variant variant = 1; + * @param value The variant to set. + * @return This builder for chaining. + */ + public Builder setVariant(com.google.container.v1.LoggingVariantConfig.Variant value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + variant_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Logging variant deployed on nodes.
+     * 
+ * + * .google.container.v1.LoggingVariantConfig.Variant variant = 1; + * @return This builder for chaining. + */ + public Builder clearVariant() { + bitField0_ = (bitField0_ & ~0x00000001); + variant_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.LoggingVariantConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.LoggingVariantConfig) + private static final com.google.container.v1.LoggingVariantConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.LoggingVariantConfig(); + } + + public static com.google.container.v1.LoggingVariantConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LoggingVariantConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.LoggingVariantConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingVariantConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingVariantConfigOrBuilder.java new file mode 100644 index 000000000000..48ab4f220c63 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LoggingVariantConfigOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface LoggingVariantConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.LoggingVariantConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Logging variant deployed on nodes.
+   * 
+ * + * .google.container.v1.LoggingVariantConfig.Variant variant = 1; + * @return The enum numeric value on the wire for variant. + */ + int getVariantValue(); + /** + *
+   * Logging variant deployed on nodes.
+   * 
+ * + * .google.container.v1.LoggingVariantConfig.Variant variant = 1; + * @return The variant. + */ + com.google.container.v1.LoggingVariantConfig.Variant getVariant(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceExclusionOptions.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceExclusionOptions.java new file mode 100644 index 000000000000..54c1395b92c5 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceExclusionOptions.java @@ -0,0 +1,698 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Represents the Maintenance exclusion option.
+ * 
+ * + * Protobuf type {@code google.container.v1.MaintenanceExclusionOptions} + */ +public final class MaintenanceExclusionOptions extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.MaintenanceExclusionOptions) + MaintenanceExclusionOptionsOrBuilder { +private static final long serialVersionUID = 0L; + // Use MaintenanceExclusionOptions.newBuilder() to construct. + private MaintenanceExclusionOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MaintenanceExclusionOptions() { + scope_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MaintenanceExclusionOptions(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MaintenanceExclusionOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MaintenanceExclusionOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.MaintenanceExclusionOptions.class, com.google.container.v1.MaintenanceExclusionOptions.Builder.class); + } + + /** + *
+   * Scope of exclusion.
+   * 
+ * + * Protobuf enum {@code google.container.v1.MaintenanceExclusionOptions.Scope} + */ + public enum Scope + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * NO_UPGRADES excludes all upgrades, including patch upgrades and minor
+     * upgrades across control planes and nodes. This is the default exclusion
+     * behavior.
+     * 
+ * + * NO_UPGRADES = 0; + */ + NO_UPGRADES(0), + /** + *
+     * NO_MINOR_UPGRADES excludes all minor upgrades for the cluster, only
+     * patches are allowed.
+     * 
+ * + * NO_MINOR_UPGRADES = 1; + */ + NO_MINOR_UPGRADES(1), + /** + *
+     * NO_MINOR_OR_NODE_UPGRADES excludes all minor upgrades for the cluster,
+     * and also exclude all node pool upgrades. Only control
+     * plane patches are allowed.
+     * 
+ * + * NO_MINOR_OR_NODE_UPGRADES = 2; + */ + NO_MINOR_OR_NODE_UPGRADES(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * NO_UPGRADES excludes all upgrades, including patch upgrades and minor
+     * upgrades across control planes and nodes. This is the default exclusion
+     * behavior.
+     * 
+ * + * NO_UPGRADES = 0; + */ + public static final int NO_UPGRADES_VALUE = 0; + /** + *
+     * NO_MINOR_UPGRADES excludes all minor upgrades for the cluster, only
+     * patches are allowed.
+     * 
+ * + * NO_MINOR_UPGRADES = 1; + */ + public static final int NO_MINOR_UPGRADES_VALUE = 1; + /** + *
+     * NO_MINOR_OR_NODE_UPGRADES excludes all minor upgrades for the cluster,
+     * and also exclude all node pool upgrades. Only control
+     * plane patches are allowed.
+     * 
+ * + * NO_MINOR_OR_NODE_UPGRADES = 2; + */ + public static final int NO_MINOR_OR_NODE_UPGRADES_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Scope valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Scope forNumber(int value) { + switch (value) { + case 0: return NO_UPGRADES; + case 1: return NO_MINOR_UPGRADES; + case 2: return NO_MINOR_OR_NODE_UPGRADES; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Scope> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Scope findValueByNumber(int number) { + return Scope.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.MaintenanceExclusionOptions.getDescriptor().getEnumTypes().get(0); + } + + private static final Scope[] VALUES = values(); + + public static Scope valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Scope(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.MaintenanceExclusionOptions.Scope) + } + + public static final int SCOPE_FIELD_NUMBER = 1; + private int scope_ = 0; + /** + *
+   * Scope specifies the upgrade scope which upgrades are blocked by the
+   * exclusion.
+   * 
+ * + * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override public int getScopeValue() { + return scope_; + } + /** + *
+   * Scope specifies the upgrade scope which upgrades are blocked by the
+   * exclusion.
+   * 
+ * + * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; + * @return The scope. + */ + @java.lang.Override public com.google.container.v1.MaintenanceExclusionOptions.Scope getScope() { + com.google.container.v1.MaintenanceExclusionOptions.Scope result = com.google.container.v1.MaintenanceExclusionOptions.Scope.forNumber(scope_); + return result == null ? com.google.container.v1.MaintenanceExclusionOptions.Scope.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (scope_ != com.google.container.v1.MaintenanceExclusionOptions.Scope.NO_UPGRADES.getNumber()) { + output.writeEnum(1, scope_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (scope_ != com.google.container.v1.MaintenanceExclusionOptions.Scope.NO_UPGRADES.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, scope_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.MaintenanceExclusionOptions)) { + return super.equals(obj); + } + com.google.container.v1.MaintenanceExclusionOptions other = (com.google.container.v1.MaintenanceExclusionOptions) obj; + + if (scope_ != other.scope_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + scope_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.MaintenanceExclusionOptions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.MaintenanceExclusionOptions parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.MaintenanceExclusionOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.MaintenanceExclusionOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.MaintenanceExclusionOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.MaintenanceExclusionOptions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.MaintenanceExclusionOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.MaintenanceExclusionOptions parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.MaintenanceExclusionOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.MaintenanceExclusionOptions parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.MaintenanceExclusionOptions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.MaintenanceExclusionOptions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.MaintenanceExclusionOptions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Represents the Maintenance exclusion option.
+   * 
+ * + * Protobuf type {@code google.container.v1.MaintenanceExclusionOptions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.MaintenanceExclusionOptions) + com.google.container.v1.MaintenanceExclusionOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MaintenanceExclusionOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MaintenanceExclusionOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.MaintenanceExclusionOptions.class, com.google.container.v1.MaintenanceExclusionOptions.Builder.class); + } + + // Construct using com.google.container.v1.MaintenanceExclusionOptions.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + scope_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MaintenanceExclusionOptions_descriptor; + } + + @java.lang.Override + public com.google.container.v1.MaintenanceExclusionOptions getDefaultInstanceForType() { + return com.google.container.v1.MaintenanceExclusionOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.MaintenanceExclusionOptions build() { + com.google.container.v1.MaintenanceExclusionOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.MaintenanceExclusionOptions buildPartial() { + com.google.container.v1.MaintenanceExclusionOptions result = new com.google.container.v1.MaintenanceExclusionOptions(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.MaintenanceExclusionOptions result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.scope_ = scope_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.MaintenanceExclusionOptions) { + return mergeFrom((com.google.container.v1.MaintenanceExclusionOptions)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.MaintenanceExclusionOptions other) { + if (other == com.google.container.v1.MaintenanceExclusionOptions.getDefaultInstance()) return this; + if (other.scope_ != 0) { + setScopeValue(other.getScopeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + scope_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int scope_ = 0; + /** + *
+     * Scope specifies the upgrade scope which upgrades are blocked by the
+     * exclusion.
+     * 
+ * + * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override public int getScopeValue() { + return scope_; + } + /** + *
+     * Scope specifies the upgrade scope which upgrades are blocked by the
+     * exclusion.
+     * 
+ * + * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; + * @param value The enum numeric value on the wire for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeValue(int value) { + scope_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Scope specifies the upgrade scope which upgrades are blocked by the
+     * exclusion.
+     * 
+ * + * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; + * @return The scope. + */ + @java.lang.Override + public com.google.container.v1.MaintenanceExclusionOptions.Scope getScope() { + com.google.container.v1.MaintenanceExclusionOptions.Scope result = com.google.container.v1.MaintenanceExclusionOptions.Scope.forNumber(scope_); + return result == null ? com.google.container.v1.MaintenanceExclusionOptions.Scope.UNRECOGNIZED : result; + } + /** + *
+     * Scope specifies the upgrade scope which upgrades are blocked by the
+     * exclusion.
+     * 
+ * + * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope(com.google.container.v1.MaintenanceExclusionOptions.Scope value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + scope_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Scope specifies the upgrade scope which upgrades are blocked by the
+     * exclusion.
+     * 
+ * + * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; + * @return This builder for chaining. + */ + public Builder clearScope() { + bitField0_ = (bitField0_ & ~0x00000001); + scope_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.MaintenanceExclusionOptions) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.MaintenanceExclusionOptions) + private static final com.google.container.v1.MaintenanceExclusionOptions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.MaintenanceExclusionOptions(); + } + + public static com.google.container.v1.MaintenanceExclusionOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MaintenanceExclusionOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.MaintenanceExclusionOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceExclusionOptionsOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceExclusionOptionsOrBuilder.java new file mode 100644 index 000000000000..d0e91ead656a --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceExclusionOptionsOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface MaintenanceExclusionOptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.MaintenanceExclusionOptions) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Scope specifies the upgrade scope which upgrades are blocked by the
+   * exclusion.
+   * 
+ * + * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; + * @return The enum numeric value on the wire for scope. + */ + int getScopeValue(); + /** + *
+   * Scope specifies the upgrade scope which upgrades are blocked by the
+   * exclusion.
+   * 
+ * + * .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; + * @return The scope. + */ + com.google.container.v1.MaintenanceExclusionOptions.Scope getScope(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenancePolicy.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenancePolicy.java new file mode 100644 index 000000000000..e9d62d248d7e --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenancePolicy.java @@ -0,0 +1,847 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * MaintenancePolicy defines the maintenance policy to be used for the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1.MaintenancePolicy} + */ +public final class MaintenancePolicy extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MaintenancePolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MaintenancePolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.MaintenancePolicy.class, com.google.container.v1.MaintenancePolicy.Builder.class); + } + + private int bitField0_; + public static final int WINDOW_FIELD_NUMBER = 1; + private com.google.container.v1.MaintenanceWindow window_; + /** + *
+   * Specifies the maintenance window in which maintenance may be performed.
+   * 
+ * + * .google.container.v1.MaintenanceWindow window = 1; + * @return Whether the window field is set. + */ + @java.lang.Override + public boolean hasWindow() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Specifies the maintenance window in which maintenance may be performed.
+   * 
+ * + * .google.container.v1.MaintenanceWindow window = 1; + * @return The window. + */ + @java.lang.Override + public com.google.container.v1.MaintenanceWindow getWindow() { + return window_ == null ? com.google.container.v1.MaintenanceWindow.getDefaultInstance() : window_; + } + /** + *
+   * Specifies the maintenance window in which maintenance may be performed.
+   * 
+ * + * .google.container.v1.MaintenanceWindow window = 1; + */ + @java.lang.Override + public com.google.container.v1.MaintenanceWindowOrBuilder getWindowOrBuilder() { + return window_ == null ? com.google.container.v1.MaintenanceWindow.getDefaultInstance() : window_; + } + + public static final int RESOURCE_VERSION_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getWindow()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, resourceVersion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWindow()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resourceVersion_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.MaintenancePolicy)) { + return super.equals(obj); + } + com.google.container.v1.MaintenancePolicy other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.MaintenancePolicy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.MaintenancePolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.MaintenancePolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.MaintenancePolicy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.MaintenancePolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.MaintenancePolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.MaintenancePolicy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.MaintenancePolicy} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.MaintenancePolicy) + com.google.container.v1.MaintenancePolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MaintenancePolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MaintenancePolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.MaintenancePolicy.class, com.google.container.v1.MaintenancePolicy.Builder.class); + } + + // Construct using com.google.container.v1.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) { + getWindowFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + window_ = null; + if (windowBuilder_ != null) { + windowBuilder_.dispose(); + windowBuilder_ = null; + } + resourceVersion_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MaintenancePolicy_descriptor; + } + + @java.lang.Override + public com.google.container.v1.MaintenancePolicy getDefaultInstanceForType() { + return com.google.container.v1.MaintenancePolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.MaintenancePolicy build() { + com.google.container.v1.MaintenancePolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.MaintenancePolicy buildPartial() { + com.google.container.v1.MaintenancePolicy result = new com.google.container.v1.MaintenancePolicy(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.MaintenancePolicy result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.window_ = windowBuilder_ == null + ? window_ + : windowBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.resourceVersion_ = resourceVersion_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.MaintenancePolicy) { + return mergeFrom((com.google.container.v1.MaintenancePolicy)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.MaintenancePolicy other) { + if (other == com.google.container.v1.MaintenancePolicy.getDefaultInstance()) return this; + if (other.hasWindow()) { + mergeWindow(other.getWindow()); + } + if (!other.getResourceVersion().isEmpty()) { + resourceVersion_ = other.resourceVersion_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getWindowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: { + resourceVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.container.v1.MaintenanceWindow window_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MaintenanceWindow, com.google.container.v1.MaintenanceWindow.Builder, com.google.container.v1.MaintenanceWindowOrBuilder> windowBuilder_; + /** + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1.MaintenanceWindow window = 1; + * @return Whether the window field is set. + */ + public boolean hasWindow() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1.MaintenanceWindow window = 1; + * @return The window. + */ + public com.google.container.v1.MaintenanceWindow getWindow() { + if (windowBuilder_ == null) { + return window_ == null ? com.google.container.v1.MaintenanceWindow.getDefaultInstance() : window_; + } else { + return windowBuilder_.getMessage(); + } + } + /** + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1.MaintenanceWindow window = 1; + */ + public Builder setWindow(com.google.container.v1.MaintenanceWindow value) { + if (windowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + window_ = value; + } else { + windowBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1.MaintenanceWindow window = 1; + */ + public Builder setWindow( + com.google.container.v1.MaintenanceWindow.Builder builderForValue) { + if (windowBuilder_ == null) { + window_ = builderForValue.build(); + } else { + windowBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1.MaintenanceWindow window = 1; + */ + public Builder mergeWindow(com.google.container.v1.MaintenanceWindow value) { + if (windowBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + window_ != null && + window_ != com.google.container.v1.MaintenanceWindow.getDefaultInstance()) { + getWindowBuilder().mergeFrom(value); + } else { + window_ = value; + } + } else { + windowBuilder_.mergeFrom(value); + } + if (window_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1.MaintenanceWindow window = 1; + */ + public Builder clearWindow() { + bitField0_ = (bitField0_ & ~0x00000001); + window_ = null; + if (windowBuilder_ != null) { + windowBuilder_.dispose(); + windowBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1.MaintenanceWindow window = 1; + */ + public com.google.container.v1.MaintenanceWindow.Builder getWindowBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getWindowFieldBuilder().getBuilder(); + } + /** + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1.MaintenanceWindow window = 1; + */ + public com.google.container.v1.MaintenanceWindowOrBuilder getWindowOrBuilder() { + if (windowBuilder_ != null) { + return windowBuilder_.getMessageOrBuilder(); + } else { + return window_ == null ? + com.google.container.v1.MaintenanceWindow.getDefaultInstance() : window_; + } + } + /** + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1.MaintenanceWindow window = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MaintenanceWindow, com.google.container.v1.MaintenanceWindow.Builder, com.google.container.v1.MaintenanceWindowOrBuilder> + getWindowFieldBuilder() { + if (windowBuilder_ == null) { + windowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MaintenanceWindow, com.google.container.v1.MaintenanceWindow.Builder, com.google.container.v1.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; + bitField0_ |= 0x00000002; + 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(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.MaintenancePolicy) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.MaintenancePolicy) + private static final com.google.container.v1.MaintenancePolicy DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.MaintenancePolicy(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.MaintenancePolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenancePolicyOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenancePolicyOrBuilder.java new file mode 100644 index 000000000000..0807f9d6c23b --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenancePolicyOrBuilder.java @@ -0,0 +1,65 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface MaintenancePolicyOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.MaintenancePolicy) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Specifies the maintenance window in which maintenance may be performed.
+   * 
+ * + * .google.container.v1.MaintenanceWindow window = 1; + * @return Whether the window field is set. + */ + boolean hasWindow(); + /** + *
+   * Specifies the maintenance window in which maintenance may be performed.
+   * 
+ * + * .google.container.v1.MaintenanceWindow window = 1; + * @return The window. + */ + com.google.container.v1.MaintenanceWindow getWindow(); + /** + *
+   * Specifies the maintenance window in which maintenance may be performed.
+   * 
+ * + * .google.container.v1.MaintenanceWindow window = 1; + */ + com.google.container.v1.MaintenanceWindowOrBuilder getWindowOrBuilder(); + + /** + *
+   * A hash identifying the version of this policy, so that updates to fields of
+   * the policy won't accidentally undo intermediate changes (and so that users
+   * of the API unaware of some fields won't accidentally remove other fields).
+   * Make a `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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceWindow.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceWindow.java new file mode 100644 index 000000000000..1f2b6387063b --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceWindow.java @@ -0,0 +1,1391 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * MaintenanceWindow defines the maintenance window to be used for the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1.MaintenanceWindow} + */ +public final class MaintenanceWindow extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MaintenanceWindow_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + 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.v1.ClusterServiceProto.internal_static_google_container_v1_MaintenanceWindow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.MaintenanceWindow.class, com.google.container.v1.MaintenanceWindow.Builder.class); + } + + private int policyCase_ = 0; + @SuppressWarnings("serial") + 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.v1.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.v1.DailyMaintenanceWindow daily_maintenance_window = 2; + * @return The dailyMaintenanceWindow. + */ + @java.lang.Override + public com.google.container.v1.DailyMaintenanceWindow getDailyMaintenanceWindow() { + if (policyCase_ == 2) { + return (com.google.container.v1.DailyMaintenanceWindow) policy_; + } + return com.google.container.v1.DailyMaintenanceWindow.getDefaultInstance(); + } + /** + *
+   * DailyMaintenanceWindow specifies a daily maintenance operation window.
+   * 
+ * + * .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + @java.lang.Override + public com.google.container.v1.DailyMaintenanceWindowOrBuilder getDailyMaintenanceWindowOrBuilder() { + if (policyCase_ == 2) { + return (com.google.container.v1.DailyMaintenanceWindow) policy_; + } + return com.google.container.v1.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.v1.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.v1.RecurringTimeWindow recurring_window = 3; + * @return The recurringWindow. + */ + @java.lang.Override + public com.google.container.v1.RecurringTimeWindow getRecurringWindow() { + if (policyCase_ == 3) { + return (com.google.container.v1.RecurringTimeWindow) policy_; + } + return com.google.container.v1.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.v1.RecurringTimeWindow recurring_window = 3; + */ + @java.lang.Override + public com.google.container.v1.RecurringTimeWindowOrBuilder getRecurringWindowOrBuilder() { + if (policyCase_ == 3) { + return (com.google.container.v1.RecurringTimeWindow) policy_; + } + return com.google.container.v1.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.v1.TimeWindow> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MaintenanceWindow_MaintenanceExclusionsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.container.v1.TimeWindow.getDefaultInstance()); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.container.v1.TimeWindow> 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.v1.TimeWindow> maintenance_exclusions = 4; + */ + @java.lang.Override + public boolean containsMaintenanceExclusions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + 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.v1.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.v1.TimeWindow> maintenance_exclusions = 4; + */ + @java.lang.Override + public /* nullable */ +com.google.container.v1.TimeWindow getMaintenanceExclusionsOrDefault( + java.lang.String key, + /* nullable */ +com.google.container.v1.TimeWindow defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + 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.v1.TimeWindow> maintenance_exclusions = 4; + */ + @java.lang.Override + public com.google.container.v1.TimeWindow getMaintenanceExclusionsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + 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.v1.DailyMaintenanceWindow) policy_); + } + if (policyCase_ == 3) { + output.writeMessage(3, (com.google.container.v1.RecurringTimeWindow) policy_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetMaintenanceExclusions(), + MaintenanceExclusionsDefaultEntryHolder.defaultEntry, + 4); + getUnknownFields().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.v1.DailyMaintenanceWindow) policy_); + } + if (policyCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.container.v1.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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.MaintenanceWindow)) { + return super.equals(obj); + } + com.google.container.v1.MaintenanceWindow other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.MaintenanceWindow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.MaintenanceWindow parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.MaintenanceWindow parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.MaintenanceWindow parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.MaintenanceWindow parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.MaintenanceWindow parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.MaintenanceWindow parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.MaintenanceWindow} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.MaintenanceWindow) + com.google.container.v1.MaintenanceWindowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MaintenanceWindow_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMaintenanceExclusions(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + 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.v1.ClusterServiceProto.internal_static_google_container_v1_MaintenanceWindow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.MaintenanceWindow.class, com.google.container.v1.MaintenanceWindow.Builder.class); + } + + // Construct using com.google.container.v1.MaintenanceWindow.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (dailyMaintenanceWindowBuilder_ != null) { + dailyMaintenanceWindowBuilder_.clear(); + } + if (recurringWindowBuilder_ != null) { + recurringWindowBuilder_.clear(); + } + internalGetMutableMaintenanceExclusions().clear(); + policyCase_ = 0; + policy_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MaintenanceWindow_descriptor; + } + + @java.lang.Override + public com.google.container.v1.MaintenanceWindow getDefaultInstanceForType() { + return com.google.container.v1.MaintenanceWindow.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.MaintenanceWindow build() { + com.google.container.v1.MaintenanceWindow result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.MaintenanceWindow buildPartial() { + com.google.container.v1.MaintenanceWindow result = new com.google.container.v1.MaintenanceWindow(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.MaintenanceWindow result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.maintenanceExclusions_ = internalGetMaintenanceExclusions().build(MaintenanceExclusionsDefaultEntryHolder.defaultEntry); + } + } + + private void buildPartialOneofs(com.google.container.v1.MaintenanceWindow result) { + result.policyCase_ = policyCase_; + result.policy_ = this.policy_; + if (policyCase_ == 2 && + dailyMaintenanceWindowBuilder_ != null) { + result.policy_ = dailyMaintenanceWindowBuilder_.build(); + } + if (policyCase_ == 3 && + recurringWindowBuilder_ != null) { + result.policy_ = recurringWindowBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.MaintenanceWindow) { + return mergeFrom((com.google.container.v1.MaintenanceWindow)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.MaintenanceWindow other) { + if (other == com.google.container.v1.MaintenanceWindow.getDefaultInstance()) return this; + internalGetMutableMaintenanceExclusions().mergeFrom( + other.internalGetMaintenanceExclusions()); + bitField0_ |= 0x00000004; + 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.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: { + input.readMessage( + getDailyMaintenanceWindowFieldBuilder().getBuilder(), + extensionRegistry); + policyCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getRecurringWindowFieldBuilder().getBuilder(), + extensionRegistry); + policyCase_ = 3; + break; + } // case 26 + case 34: { + com.google.protobuf.MapEntry + maintenanceExclusions__ = input.readMessage( + MaintenanceExclusionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableMaintenanceExclusions().ensureBuilderMap().put( + maintenanceExclusions__.getKey(), maintenanceExclusions__.getValue()); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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.v1.DailyMaintenanceWindow, com.google.container.v1.DailyMaintenanceWindow.Builder, com.google.container.v1.DailyMaintenanceWindowOrBuilder> dailyMaintenanceWindowBuilder_; + /** + *
+     * DailyMaintenanceWindow specifies a daily maintenance operation window.
+     * 
+ * + * .google.container.v1.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.v1.DailyMaintenanceWindow daily_maintenance_window = 2; + * @return The dailyMaintenanceWindow. + */ + @java.lang.Override + public com.google.container.v1.DailyMaintenanceWindow getDailyMaintenanceWindow() { + if (dailyMaintenanceWindowBuilder_ == null) { + if (policyCase_ == 2) { + return (com.google.container.v1.DailyMaintenanceWindow) policy_; + } + return com.google.container.v1.DailyMaintenanceWindow.getDefaultInstance(); + } else { + if (policyCase_ == 2) { + return dailyMaintenanceWindowBuilder_.getMessage(); + } + return com.google.container.v1.DailyMaintenanceWindow.getDefaultInstance(); + } + } + /** + *
+     * DailyMaintenanceWindow specifies a daily maintenance operation window.
+     * 
+ * + * .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + public Builder setDailyMaintenanceWindow(com.google.container.v1.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.v1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + public Builder setDailyMaintenanceWindow( + com.google.container.v1.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.v1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + public Builder mergeDailyMaintenanceWindow(com.google.container.v1.DailyMaintenanceWindow value) { + if (dailyMaintenanceWindowBuilder_ == null) { + if (policyCase_ == 2 && + policy_ != com.google.container.v1.DailyMaintenanceWindow.getDefaultInstance()) { + policy_ = com.google.container.v1.DailyMaintenanceWindow.newBuilder((com.google.container.v1.DailyMaintenanceWindow) policy_) + .mergeFrom(value).buildPartial(); + } else { + policy_ = value; + } + onChanged(); + } else { + if (policyCase_ == 2) { + dailyMaintenanceWindowBuilder_.mergeFrom(value); + } else { + dailyMaintenanceWindowBuilder_.setMessage(value); + } + } + policyCase_ = 2; + return this; + } + /** + *
+     * DailyMaintenanceWindow specifies a daily maintenance operation window.
+     * 
+ * + * .google.container.v1.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.v1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + public com.google.container.v1.DailyMaintenanceWindow.Builder getDailyMaintenanceWindowBuilder() { + return getDailyMaintenanceWindowFieldBuilder().getBuilder(); + } + /** + *
+     * DailyMaintenanceWindow specifies a daily maintenance operation window.
+     * 
+ * + * .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + @java.lang.Override + public com.google.container.v1.DailyMaintenanceWindowOrBuilder getDailyMaintenanceWindowOrBuilder() { + if ((policyCase_ == 2) && (dailyMaintenanceWindowBuilder_ != null)) { + return dailyMaintenanceWindowBuilder_.getMessageOrBuilder(); + } else { + if (policyCase_ == 2) { + return (com.google.container.v1.DailyMaintenanceWindow) policy_; + } + return com.google.container.v1.DailyMaintenanceWindow.getDefaultInstance(); + } + } + /** + *
+     * DailyMaintenanceWindow specifies a daily maintenance operation window.
+     * 
+ * + * .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DailyMaintenanceWindow, com.google.container.v1.DailyMaintenanceWindow.Builder, com.google.container.v1.DailyMaintenanceWindowOrBuilder> + getDailyMaintenanceWindowFieldBuilder() { + if (dailyMaintenanceWindowBuilder_ == null) { + if (!(policyCase_ == 2)) { + policy_ = com.google.container.v1.DailyMaintenanceWindow.getDefaultInstance(); + } + dailyMaintenanceWindowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DailyMaintenanceWindow, com.google.container.v1.DailyMaintenanceWindow.Builder, com.google.container.v1.DailyMaintenanceWindowOrBuilder>( + (com.google.container.v1.DailyMaintenanceWindow) policy_, + getParentForChildren(), + isClean()); + policy_ = null; + } + policyCase_ = 2; + onChanged(); + return dailyMaintenanceWindowBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.RecurringTimeWindow, com.google.container.v1.RecurringTimeWindow.Builder, com.google.container.v1.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.v1.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.v1.RecurringTimeWindow recurring_window = 3; + * @return The recurringWindow. + */ + @java.lang.Override + public com.google.container.v1.RecurringTimeWindow getRecurringWindow() { + if (recurringWindowBuilder_ == null) { + if (policyCase_ == 3) { + return (com.google.container.v1.RecurringTimeWindow) policy_; + } + return com.google.container.v1.RecurringTimeWindow.getDefaultInstance(); + } else { + if (policyCase_ == 3) { + return recurringWindowBuilder_.getMessage(); + } + return com.google.container.v1.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.v1.RecurringTimeWindow recurring_window = 3; + */ + public Builder setRecurringWindow(com.google.container.v1.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.v1.RecurringTimeWindow recurring_window = 3; + */ + public Builder setRecurringWindow( + com.google.container.v1.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.v1.RecurringTimeWindow recurring_window = 3; + */ + public Builder mergeRecurringWindow(com.google.container.v1.RecurringTimeWindow value) { + if (recurringWindowBuilder_ == null) { + if (policyCase_ == 3 && + policy_ != com.google.container.v1.RecurringTimeWindow.getDefaultInstance()) { + policy_ = com.google.container.v1.RecurringTimeWindow.newBuilder((com.google.container.v1.RecurringTimeWindow) policy_) + .mergeFrom(value).buildPartial(); + } else { + policy_ = value; + } + onChanged(); + } else { + if (policyCase_ == 3) { + recurringWindowBuilder_.mergeFrom(value); + } 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.v1.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.v1.RecurringTimeWindow recurring_window = 3; + */ + public com.google.container.v1.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.v1.RecurringTimeWindow recurring_window = 3; + */ + @java.lang.Override + public com.google.container.v1.RecurringTimeWindowOrBuilder getRecurringWindowOrBuilder() { + if ((policyCase_ == 3) && (recurringWindowBuilder_ != null)) { + return recurringWindowBuilder_.getMessageOrBuilder(); + } else { + if (policyCase_ == 3) { + return (com.google.container.v1.RecurringTimeWindow) policy_; + } + return com.google.container.v1.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.v1.RecurringTimeWindow recurring_window = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.RecurringTimeWindow, com.google.container.v1.RecurringTimeWindow.Builder, com.google.container.v1.RecurringTimeWindowOrBuilder> + getRecurringWindowFieldBuilder() { + if (recurringWindowBuilder_ == null) { + if (!(policyCase_ == 3)) { + policy_ = com.google.container.v1.RecurringTimeWindow.getDefaultInstance(); + } + recurringWindowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.RecurringTimeWindow, com.google.container.v1.RecurringTimeWindow.Builder, com.google.container.v1.RecurringTimeWindowOrBuilder>( + (com.google.container.v1.RecurringTimeWindow) policy_, + getParentForChildren(), + isClean()); + policy_ = null; + } + policyCase_ = 3; + onChanged(); + return recurringWindowBuilder_; + } + + private static final class MaintenanceExclusionsConverter implements com.google.protobuf.MapFieldBuilder.Converter { + @java.lang.Override + public com.google.container.v1.TimeWindow build(com.google.container.v1.TimeWindowOrBuilder val) { + if (val instanceof com.google.container.v1.TimeWindow) { return (com.google.container.v1.TimeWindow) val; } + return ((com.google.container.v1.TimeWindow.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry defaultEntry() { + return MaintenanceExclusionsDefaultEntryHolder.defaultEntry; + } + }; + private static final MaintenanceExclusionsConverter maintenanceExclusionsConverter = new MaintenanceExclusionsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, com.google.container.v1.TimeWindowOrBuilder, com.google.container.v1.TimeWindow, com.google.container.v1.TimeWindow.Builder> maintenanceExclusions_; + private com.google.protobuf.MapFieldBuilder + internalGetMaintenanceExclusions() { + if (maintenanceExclusions_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(maintenanceExclusionsConverter); + } + return maintenanceExclusions_; + } + private com.google.protobuf.MapFieldBuilder + internalGetMutableMaintenanceExclusions() { + if (maintenanceExclusions_ == null) { + maintenanceExclusions_ = new com.google.protobuf.MapFieldBuilder<>(maintenanceExclusionsConverter); + } + bitField0_ |= 0x00000004; + onChanged(); + return maintenanceExclusions_; + } + public int getMaintenanceExclusionsCount() { + return internalGetMaintenanceExclusions().ensureBuilderMap().size(); + } + /** + *
+     * Exceptions to maintenance window. Non-emergency maintenance should not
+     * occur in these windows.
+     * 
+ * + * map<string, .google.container.v1.TimeWindow> maintenance_exclusions = 4; + */ + @java.lang.Override + public boolean containsMaintenanceExclusions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetMaintenanceExclusions().ensureBuilderMap().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.v1.TimeWindow> maintenance_exclusions = 4; + */ + @java.lang.Override + public java.util.Map getMaintenanceExclusionsMap() { + return internalGetMaintenanceExclusions().getImmutableMap(); + } + /** + *
+     * Exceptions to maintenance window. Non-emergency maintenance should not
+     * occur in these windows.
+     * 
+ * + * map<string, .google.container.v1.TimeWindow> maintenance_exclusions = 4; + */ + @java.lang.Override + public /* nullable */ +com.google.container.v1.TimeWindow getMaintenanceExclusionsOrDefault( + java.lang.String key, + /* nullable */ +com.google.container.v1.TimeWindow defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = internalGetMutableMaintenanceExclusions().ensureBuilderMap(); + return map.containsKey(key) ? maintenanceExclusionsConverter.build(map.get(key)) : defaultValue; + } + /** + *
+     * Exceptions to maintenance window. Non-emergency maintenance should not
+     * occur in these windows.
+     * 
+ * + * map<string, .google.container.v1.TimeWindow> maintenance_exclusions = 4; + */ + @java.lang.Override + public com.google.container.v1.TimeWindow getMaintenanceExclusionsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = internalGetMutableMaintenanceExclusions().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return maintenanceExclusionsConverter.build(map.get(key)); + } + public Builder clearMaintenanceExclusions() { + bitField0_ = (bitField0_ & ~0x00000004); + internalGetMutableMaintenanceExclusions().clear(); + return this; + } + /** + *
+     * Exceptions to maintenance window. Non-emergency maintenance should not
+     * occur in these windows.
+     * 
+ * + * map<string, .google.container.v1.TimeWindow> maintenance_exclusions = 4; + */ + public Builder removeMaintenanceExclusions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableMaintenanceExclusions().ensureBuilderMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableMaintenanceExclusions() { + bitField0_ |= 0x00000004; + return internalGetMutableMaintenanceExclusions().ensureMessageMap(); + } + /** + *
+     * Exceptions to maintenance window. Non-emergency maintenance should not
+     * occur in these windows.
+     * 
+ * + * map<string, .google.container.v1.TimeWindow> maintenance_exclusions = 4; + */ + public Builder putMaintenanceExclusions( + java.lang.String key, + com.google.container.v1.TimeWindow value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableMaintenanceExclusions().ensureBuilderMap() + .put(key, value); + bitField0_ |= 0x00000004; + return this; + } + /** + *
+     * Exceptions to maintenance window. Non-emergency maintenance should not
+     * occur in these windows.
+     * 
+ * + * map<string, .google.container.v1.TimeWindow> maintenance_exclusions = 4; + */ + public Builder putAllMaintenanceExclusions( + java.util.Map values) { + for (java.util.Map.Entry e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableMaintenanceExclusions().ensureBuilderMap() + .putAll(values); + bitField0_ |= 0x00000004; + return this; + } + /** + *
+     * Exceptions to maintenance window. Non-emergency maintenance should not
+     * occur in these windows.
+     * 
+ * + * map<string, .google.container.v1.TimeWindow> maintenance_exclusions = 4; + */ + public com.google.container.v1.TimeWindow.Builder putMaintenanceExclusionsBuilderIfAbsent( + java.lang.String key) { + java.util.Map builderMap = internalGetMutableMaintenanceExclusions().ensureBuilderMap(); + com.google.container.v1.TimeWindowOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.container.v1.TimeWindow.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.container.v1.TimeWindow) { + entry = ((com.google.container.v1.TimeWindow) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.container.v1.TimeWindow.Builder) entry; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.MaintenanceWindow) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.MaintenanceWindow) + private static final com.google.container.v1.MaintenanceWindow DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.MaintenanceWindow(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.MaintenanceWindow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceWindowOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceWindowOrBuilder.java new file mode 100644 index 000000000000..c77c6663f5ae --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceWindowOrBuilder.java @@ -0,0 +1,131 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface MaintenanceWindowOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.MaintenanceWindow) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * DailyMaintenanceWindow specifies a daily maintenance operation window.
+   * 
+ * + * .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; + * @return Whether the dailyMaintenanceWindow field is set. + */ + boolean hasDailyMaintenanceWindow(); + /** + *
+   * DailyMaintenanceWindow specifies a daily maintenance operation window.
+   * 
+ * + * .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; + * @return The dailyMaintenanceWindow. + */ + com.google.container.v1.DailyMaintenanceWindow getDailyMaintenanceWindow(); + /** + *
+   * DailyMaintenanceWindow specifies a daily maintenance operation window.
+   * 
+ * + * .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; + */ + com.google.container.v1.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.v1.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.v1.RecurringTimeWindow recurring_window = 3; + * @return The recurringWindow. + */ + com.google.container.v1.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.v1.RecurringTimeWindow recurring_window = 3; + */ + com.google.container.v1.RecurringTimeWindowOrBuilder getRecurringWindowOrBuilder(); + + /** + *
+   * Exceptions to maintenance window. Non-emergency maintenance should not
+   * occur in these windows.
+   * 
+ * + * map<string, .google.container.v1.TimeWindow> maintenance_exclusions = 4; + */ + int getMaintenanceExclusionsCount(); + /** + *
+   * Exceptions to maintenance window. Non-emergency maintenance should not
+   * occur in these windows.
+   * 
+ * + * map<string, .google.container.v1.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.v1.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.v1.TimeWindow> maintenance_exclusions = 4; + */ + /* nullable */ +com.google.container.v1.TimeWindow getMaintenanceExclusionsOrDefault( + java.lang.String key, + /* nullable */ +com.google.container.v1.TimeWindow defaultValue); + /** + *
+   * Exceptions to maintenance window. Non-emergency maintenance should not
+   * occur in these windows.
+   * 
+ * + * map<string, .google.container.v1.TimeWindow> maintenance_exclusions = 4; + */ + com.google.container.v1.TimeWindow getMaintenanceExclusionsOrThrow( + java.lang.String key); + + com.google.container.v1.MaintenanceWindow.PolicyCase getPolicyCase(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ManagedPrometheusConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ManagedPrometheusConfig.java new file mode 100644 index 000000000000..894e5c0e4081 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ManagedPrometheusConfig.java @@ -0,0 +1,499 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * ManagedPrometheusConfig defines the configuration for
+ * Google Cloud Managed Service for Prometheus.
+ * 
+ * + * Protobuf type {@code google.container.v1.ManagedPrometheusConfig} + */ +public final class ManagedPrometheusConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.ManagedPrometheusConfig) + ManagedPrometheusConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use ManagedPrometheusConfig.newBuilder() to construct. + private ManagedPrometheusConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ManagedPrometheusConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ManagedPrometheusConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ManagedPrometheusConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ManagedPrometheusConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ManagedPrometheusConfig.class, com.google.container.v1.ManagedPrometheusConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * Enable Managed Collection.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.ManagedPrometheusConfig)) { + return super.equals(obj); + } + com.google.container.v1.ManagedPrometheusConfig other = (com.google.container.v1.ManagedPrometheusConfig) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ManagedPrometheusConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ManagedPrometheusConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ManagedPrometheusConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ManagedPrometheusConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ManagedPrometheusConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ManagedPrometheusConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ManagedPrometheusConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.ManagedPrometheusConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.ManagedPrometheusConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.ManagedPrometheusConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.ManagedPrometheusConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.ManagedPrometheusConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.ManagedPrometheusConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ManagedPrometheusConfig defines the configuration for
+   * Google Cloud Managed Service for Prometheus.
+   * 
+ * + * Protobuf type {@code google.container.v1.ManagedPrometheusConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ManagedPrometheusConfig) + com.google.container.v1.ManagedPrometheusConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ManagedPrometheusConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ManagedPrometheusConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ManagedPrometheusConfig.class, com.google.container.v1.ManagedPrometheusConfig.Builder.class); + } + + // Construct using com.google.container.v1.ManagedPrometheusConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ManagedPrometheusConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ManagedPrometheusConfig getDefaultInstanceForType() { + return com.google.container.v1.ManagedPrometheusConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ManagedPrometheusConfig build() { + com.google.container.v1.ManagedPrometheusConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ManagedPrometheusConfig buildPartial() { + com.google.container.v1.ManagedPrometheusConfig result = new com.google.container.v1.ManagedPrometheusConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.ManagedPrometheusConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ManagedPrometheusConfig) { + return mergeFrom((com.google.container.v1.ManagedPrometheusConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ManagedPrometheusConfig other) { + if (other == com.google.container.v1.ManagedPrometheusConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enabled_ ; + /** + *
+     * Enable Managed Collection.
+     * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Enable Managed Collection.
+     * 
+ * + * bool enabled = 1; + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Enable Managed Collection.
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.ManagedPrometheusConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ManagedPrometheusConfig) + private static final com.google.container.v1.ManagedPrometheusConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.ManagedPrometheusConfig(); + } + + public static com.google.container.v1.ManagedPrometheusConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ManagedPrometheusConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.ManagedPrometheusConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ManagedPrometheusConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ManagedPrometheusConfigOrBuilder.java new file mode 100644 index 000000000000..a70f046e7f7f --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ManagedPrometheusConfigOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface ManagedPrometheusConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ManagedPrometheusConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Enable Managed Collection.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java new file mode 100644 index 000000000000..06128099f64f --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java @@ -0,0 +1,1657 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * 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.v1.MasterAuth} + */ +public final class MasterAuth extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MasterAuth_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MasterAuth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.MasterAuth.class, com.google.container.v1.MasterAuth.Builder.class); + } + + private int bitField0_; + public static final int USERNAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1.MasterAuth.username is deprecated. + * See google/container/v1/cluster_service.proto;l=1142 + * @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]; + * @deprecated google.container.v1.MasterAuth.username is deprecated. + * See google/container/v1/cluster_service.proto;l=1142 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1.MasterAuth.password is deprecated. + * See google/container/v1/cluster_service.proto;l=1153 + * @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]; + * @deprecated google.container.v1.MasterAuth.password is deprecated. + * See google/container/v1/cluster_service.proto;l=1153 + * @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.v1.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.v1.ClientCertificateConfig client_certificate_config = 3; + * @return Whether the clientCertificateConfig field is set. + */ + @java.lang.Override + public boolean hasClientCertificateConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Configuration for client certificate authentication on the cluster. For
+   * clusters before v1.12, if no configuration is specified, a client
+   * certificate is issued.
+   * 
+ * + * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; + * @return The clientCertificateConfig. + */ + @java.lang.Override + public com.google.container.v1.ClientCertificateConfig getClientCertificateConfig() { + return clientCertificateConfig_ == null ? com.google.container.v1.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.v1.ClientCertificateConfig client_certificate_config = 3; + */ + @java.lang.Override + public com.google.container.v1.ClientCertificateConfigOrBuilder getClientCertificateConfigOrBuilder() { + return clientCertificateConfig_ == null ? com.google.container.v1.ClientCertificateConfig.getDefaultInstance() : clientCertificateConfig_; + } + + public static final int CLUSTER_CA_CERTIFICATE_FIELD_NUMBER = 100; + @SuppressWarnings("serial") + private volatile java.lang.Object clusterCaCertificate_ = ""; + /** + *
+   * [Output only] Base64-encoded public certificate that is the root of
+   * trust for the cluster.
+   * 
+ * + * string cluster_ca_certificate = 100; + * @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; + } + } + /** + *
+   * [Output only] Base64-encoded public certificate that is the root of
+   * trust for the cluster.
+   * 
+ * + * 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getClientCertificateConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterCaCertificate_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 100, clusterCaCertificate_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientCertificate_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 101, clientCertificate_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 102, clientKey_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, username_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getClientCertificateConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterCaCertificate_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, clusterCaCertificate_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientCertificate_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(101, clientCertificate_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(102, clientKey_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.MasterAuth)) { + return super.equals(obj); + } + com.google.container.v1.MasterAuth other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.MasterAuth parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.MasterAuth parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.MasterAuth parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.MasterAuth parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.MasterAuth parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.MasterAuth parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.MasterAuth parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.MasterAuth} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.MasterAuth) + com.google.container.v1.MasterAuthOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MasterAuth_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MasterAuth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.MasterAuth.class, com.google.container.v1.MasterAuth.Builder.class); + } + + // Construct using com.google.container.v1.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) { + getClientCertificateConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + username_ = ""; + password_ = ""; + clientCertificateConfig_ = null; + if (clientCertificateConfigBuilder_ != null) { + clientCertificateConfigBuilder_.dispose(); + clientCertificateConfigBuilder_ = null; + } + clusterCaCertificate_ = ""; + clientCertificate_ = ""; + clientKey_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MasterAuth_descriptor; + } + + @java.lang.Override + public com.google.container.v1.MasterAuth getDefaultInstanceForType() { + return com.google.container.v1.MasterAuth.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.MasterAuth build() { + com.google.container.v1.MasterAuth result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.MasterAuth buildPartial() { + com.google.container.v1.MasterAuth result = new com.google.container.v1.MasterAuth(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.MasterAuth result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.username_ = username_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.password_ = password_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clientCertificateConfig_ = clientCertificateConfigBuilder_ == null + ? clientCertificateConfig_ + : clientCertificateConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.clusterCaCertificate_ = clusterCaCertificate_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.clientCertificate_ = clientCertificate_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.clientKey_ = clientKey_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.MasterAuth) { + return mergeFrom((com.google.container.v1.MasterAuth)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.MasterAuth other) { + if (other == com.google.container.v1.MasterAuth.getDefaultInstance()) return this; + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPassword().isEmpty()) { + password_ = other.password_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasClientCertificateConfig()) { + mergeClientCertificateConfig(other.getClientCertificateConfig()); + } + if (!other.getClusterCaCertificate().isEmpty()) { + clusterCaCertificate_ = other.clusterCaCertificate_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getClientCertificate().isEmpty()) { + clientCertificate_ = other.clientCertificate_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getClientKey().isEmpty()) { + clientKey_ = other.clientKey_; + bitField0_ |= 0x00000020; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + password_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getClientCertificateConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 802: { + clusterCaCertificate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 802 + case 810: { + clientCertificate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 810 + case 818: { + clientKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 818 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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]; + * @deprecated google.container.v1.MasterAuth.username is deprecated. + * See google/container/v1/cluster_service.proto;l=1142 + * @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]; + * @deprecated google.container.v1.MasterAuth.username is deprecated. + * See google/container/v1/cluster_service.proto;l=1142 + * @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]; + * @deprecated google.container.v1.MasterAuth.username is deprecated. + * See google/container/v1/cluster_service.proto;l=1142 + * @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; + bitField0_ |= 0x00000001; + 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]; + * @deprecated google.container.v1.MasterAuth.username is deprecated. + * See google/container/v1/cluster_service.proto;l=1142 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearUsername() { + username_ = getDefaultInstance().getUsername(); + bitField0_ = (bitField0_ & ~0x00000001); + 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]; + * @deprecated google.container.v1.MasterAuth.username is deprecated. + * See google/container/v1/cluster_service.proto;l=1142 + * @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; + bitField0_ |= 0x00000001; + 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]; + * @deprecated google.container.v1.MasterAuth.password is deprecated. + * See google/container/v1/cluster_service.proto;l=1153 + * @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]; + * @deprecated google.container.v1.MasterAuth.password is deprecated. + * See google/container/v1/cluster_service.proto;l=1153 + * @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]; + * @deprecated google.container.v1.MasterAuth.password is deprecated. + * See google/container/v1/cluster_service.proto;l=1153 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1.MasterAuth.password is deprecated. + * See google/container/v1/cluster_service.proto;l=1153 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearPassword() { + password_ = getDefaultInstance().getPassword(); + bitField0_ = (bitField0_ & ~0x00000002); + 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]; + * @deprecated google.container.v1.MasterAuth.password is deprecated. + * See google/container/v1/cluster_service.proto;l=1153 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.container.v1.ClientCertificateConfig clientCertificateConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ClientCertificateConfig, com.google.container.v1.ClientCertificateConfig.Builder, com.google.container.v1.ClientCertificateConfigOrBuilder> clientCertificateConfigBuilder_; + /** + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; + * @return Whether the clientCertificateConfig field is set. + */ + public boolean hasClientCertificateConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * Configuration for client certificate authentication on the cluster. For
+     * clusters before v1.12, if no configuration is specified, a client
+     * certificate is issued.
+     * 
+ * + * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; + * @return The clientCertificateConfig. + */ + public com.google.container.v1.ClientCertificateConfig getClientCertificateConfig() { + if (clientCertificateConfigBuilder_ == null) { + return clientCertificateConfig_ == null ? com.google.container.v1.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.v1.ClientCertificateConfig client_certificate_config = 3; + */ + public Builder setClientCertificateConfig(com.google.container.v1.ClientCertificateConfig value) { + if (clientCertificateConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + clientCertificateConfig_ = value; + } else { + clientCertificateConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + 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.v1.ClientCertificateConfig client_certificate_config = 3; + */ + public Builder setClientCertificateConfig( + com.google.container.v1.ClientCertificateConfig.Builder builderForValue) { + if (clientCertificateConfigBuilder_ == null) { + clientCertificateConfig_ = builderForValue.build(); + } else { + clientCertificateConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + 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.v1.ClientCertificateConfig client_certificate_config = 3; + */ + public Builder mergeClientCertificateConfig(com.google.container.v1.ClientCertificateConfig value) { + if (clientCertificateConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + clientCertificateConfig_ != null && + clientCertificateConfig_ != com.google.container.v1.ClientCertificateConfig.getDefaultInstance()) { + getClientCertificateConfigBuilder().mergeFrom(value); + } else { + clientCertificateConfig_ = value; + } + } else { + clientCertificateConfigBuilder_.mergeFrom(value); + } + if (clientCertificateConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + 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.v1.ClientCertificateConfig client_certificate_config = 3; + */ + public Builder clearClientCertificateConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + clientCertificateConfig_ = null; + if (clientCertificateConfigBuilder_ != null) { + clientCertificateConfigBuilder_.dispose(); + clientCertificateConfigBuilder_ = null; + } + onChanged(); + 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.v1.ClientCertificateConfig client_certificate_config = 3; + */ + public com.google.container.v1.ClientCertificateConfig.Builder getClientCertificateConfigBuilder() { + bitField0_ |= 0x00000004; + 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.v1.ClientCertificateConfig client_certificate_config = 3; + */ + public com.google.container.v1.ClientCertificateConfigOrBuilder getClientCertificateConfigOrBuilder() { + if (clientCertificateConfigBuilder_ != null) { + return clientCertificateConfigBuilder_.getMessageOrBuilder(); + } else { + return clientCertificateConfig_ == null ? + com.google.container.v1.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.v1.ClientCertificateConfig client_certificate_config = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ClientCertificateConfig, com.google.container.v1.ClientCertificateConfig.Builder, com.google.container.v1.ClientCertificateConfigOrBuilder> + getClientCertificateConfigFieldBuilder() { + if (clientCertificateConfigBuilder_ == null) { + clientCertificateConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ClientCertificateConfig, com.google.container.v1.ClientCertificateConfig.Builder, com.google.container.v1.ClientCertificateConfigOrBuilder>( + getClientCertificateConfig(), + getParentForChildren(), + isClean()); + clientCertificateConfig_ = null; + } + return clientCertificateConfigBuilder_; + } + + private java.lang.Object clusterCaCertificate_ = ""; + /** + *
+     * [Output only] Base64-encoded public certificate that is the root of
+     * trust for the cluster.
+     * 
+ * + * string cluster_ca_certificate = 100; + * @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; + } + } + /** + *
+     * [Output only] Base64-encoded public certificate that is the root of
+     * trust for the cluster.
+     * 
+ * + * 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; + } + } + /** + *
+     * [Output only] Base64-encoded public certificate that is the root of
+     * trust for the cluster.
+     * 
+ * + * 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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * [Output only] Base64-encoded public certificate that is the root of
+     * trust for the cluster.
+     * 
+ * + * string cluster_ca_certificate = 100; + * @return This builder for chaining. + */ + public Builder clearClusterCaCertificate() { + clusterCaCertificate_ = getDefaultInstance().getClusterCaCertificate(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * [Output only] Base64-encoded public certificate that is the root of
+     * trust for the cluster.
+     * 
+ * + * 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; + bitField0_ |= 0x00000008; + 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; + bitField0_ |= 0x00000010; + 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(); + bitField0_ = (bitField0_ & ~0x00000010); + 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; + bitField0_ |= 0x00000010; + 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; + bitField0_ |= 0x00000020; + 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(); + bitField0_ = (bitField0_ & ~0x00000020); + 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; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.MasterAuth) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.MasterAuth) + private static final com.google.container.v1.MasterAuth DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.MasterAuth(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.MasterAuth getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java new file mode 100644 index 000000000000..658b69153c92 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java @@ -0,0 +1,187 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface MasterAuthOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.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]; + * @deprecated google.container.v1.MasterAuth.username is deprecated. + * See google/container/v1/cluster_service.proto;l=1142 + * @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]; + * @deprecated google.container.v1.MasterAuth.username is deprecated. + * See google/container/v1/cluster_service.proto;l=1142 + * @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]; + * @deprecated google.container.v1.MasterAuth.password is deprecated. + * See google/container/v1/cluster_service.proto;l=1153 + * @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]; + * @deprecated google.container.v1.MasterAuth.password is deprecated. + * See google/container/v1/cluster_service.proto;l=1153 + * @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.v1.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.v1.ClientCertificateConfig client_certificate_config = 3; + * @return The clientCertificateConfig. + */ + com.google.container.v1.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.v1.ClientCertificateConfig client_certificate_config = 3; + */ + com.google.container.v1.ClientCertificateConfigOrBuilder getClientCertificateConfigOrBuilder(); + + /** + *
+   * [Output only] Base64-encoded public certificate that is the root of
+   * trust for the cluster.
+   * 
+ * + * string cluster_ca_certificate = 100; + * @return The clusterCaCertificate. + */ + java.lang.String getClusterCaCertificate(); + /** + *
+   * [Output only] Base64-encoded public certificate that is the root of
+   * trust for the cluster.
+   * 
+ * + * 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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfig.java new file mode 100644 index 000000000000..cc545641e4d0 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfig.java @@ -0,0 +1,1868 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * 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.v1.MasterAuthorizedNetworksConfig} + */ +public final class MasterAuthorizedNetworksConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MasterAuthorizedNetworksConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MasterAuthorizedNetworksConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.MasterAuthorizedNetworksConfig.class, com.google.container.v1.MasterAuthorizedNetworksConfig.Builder.class); + } + + public interface CidrBlockOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.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.v1.MasterAuthorizedNetworksConfig.CidrBlock} + */ + public static final class CidrBlock extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MasterAuthorizedNetworksConfig_CidrBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.class, com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.Builder.class); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cidrBlock_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cidrBlock_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cidrBlock_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cidrBlock_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock)) { + return super.equals(obj); + } + com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock other = (com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock) obj; + + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getCidrBlock() + .equals(other.getCidrBlock())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.MasterAuthorizedNetworksConfig.CidrBlock parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.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.v1.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.v1.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.v1.MasterAuthorizedNetworksConfig.CidrBlock} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock) + com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MasterAuthorizedNetworksConfig_CidrBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.class, com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.Builder.class); + } + + // Construct using com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + displayName_ = ""; + cidrBlock_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor; + } + + @java.lang.Override + public com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock getDefaultInstanceForType() { + return com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock build() { + com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock buildPartial() { + com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock result = new com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.cidrBlock_ = cidrBlock_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock) { + return mergeFrom((com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock other) { + if (other == com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.getDefaultInstance()) return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCidrBlock().isEmpty()) { + cidrBlock_ = other.cidrBlock_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + cidrBlock_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + 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; + bitField0_ |= 0x00000002; + 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(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock) + private static final com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * 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; + @SuppressWarnings("serial") + private java.util.List cidrBlocks_; + /** + *
+   * cidr_blocks define up to 50 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + @java.lang.Override + public java.util.List getCidrBlocksList() { + return cidrBlocks_; + } + /** + *
+   * cidr_blocks define up to 50 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + @java.lang.Override + public java.util.List + getCidrBlocksOrBuilderList() { + return cidrBlocks_; + } + /** + *
+   * cidr_blocks define up to 50 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + @java.lang.Override + public int getCidrBlocksCount() { + return cidrBlocks_.size(); + } + /** + *
+   * cidr_blocks define up to 50 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + @java.lang.Override + public com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock getCidrBlocks(int index) { + return cidrBlocks_.get(index); + } + /** + *
+   * cidr_blocks define up to 50 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + @java.lang.Override + public com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder getCidrBlocksOrBuilder( + int index) { + return cidrBlocks_.get(index); + } + + public static final int GCP_PUBLIC_CIDRS_ACCESS_ENABLED_FIELD_NUMBER = 3; + private boolean gcpPublicCidrsAccessEnabled_ = false; + /** + *
+   * Whether master is accessbile via Google Compute Engine Public IP addresses.
+   * 
+ * + * optional bool gcp_public_cidrs_access_enabled = 3; + * @return Whether the gcpPublicCidrsAccessEnabled field is set. + */ + @java.lang.Override + public boolean hasGcpPublicCidrsAccessEnabled() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Whether master is accessbile via Google Compute Engine Public IP addresses.
+   * 
+ * + * optional bool gcp_public_cidrs_access_enabled = 3; + * @return The gcpPublicCidrsAccessEnabled. + */ + @java.lang.Override + public boolean getGcpPublicCidrsAccessEnabled() { + return gcpPublicCidrsAccessEnabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(3, gcpPublicCidrsAccessEnabled_); + } + getUnknownFields().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)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, gcpPublicCidrsAccessEnabled_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.MasterAuthorizedNetworksConfig)) { + return super.equals(obj); + } + com.google.container.v1.MasterAuthorizedNetworksConfig other = (com.google.container.v1.MasterAuthorizedNetworksConfig) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getCidrBlocksList() + .equals(other.getCidrBlocksList())) return false; + if (hasGcpPublicCidrsAccessEnabled() != other.hasGcpPublicCidrsAccessEnabled()) return false; + if (hasGcpPublicCidrsAccessEnabled()) { + if (getGcpPublicCidrsAccessEnabled() + != other.getGcpPublicCidrsAccessEnabled()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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(); + } + if (hasGcpPublicCidrsAccessEnabled()) { + hash = (37 * hash) + GCP_PUBLIC_CIDRS_ACCESS_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getGcpPublicCidrsAccessEnabled()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.MasterAuthorizedNetworksConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.MasterAuthorizedNetworksConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.MasterAuthorizedNetworksConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.MasterAuthorizedNetworksConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.MasterAuthorizedNetworksConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.MasterAuthorizedNetworksConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.MasterAuthorizedNetworksConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.MasterAuthorizedNetworksConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.MasterAuthorizedNetworksConfig) + com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MasterAuthorizedNetworksConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MasterAuthorizedNetworksConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.MasterAuthorizedNetworksConfig.class, com.google.container.v1.MasterAuthorizedNetworksConfig.Builder.class); + } + + // Construct using com.google.container.v1.MasterAuthorizedNetworksConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + if (cidrBlocksBuilder_ == null) { + cidrBlocks_ = java.util.Collections.emptyList(); + } else { + cidrBlocks_ = null; + cidrBlocksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + gcpPublicCidrsAccessEnabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MasterAuthorizedNetworksConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.MasterAuthorizedNetworksConfig getDefaultInstanceForType() { + return com.google.container.v1.MasterAuthorizedNetworksConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.MasterAuthorizedNetworksConfig build() { + com.google.container.v1.MasterAuthorizedNetworksConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.MasterAuthorizedNetworksConfig buildPartial() { + com.google.container.v1.MasterAuthorizedNetworksConfig result = new com.google.container.v1.MasterAuthorizedNetworksConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1.MasterAuthorizedNetworksConfig result) { + if (cidrBlocksBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + cidrBlocks_ = java.util.Collections.unmodifiableList(cidrBlocks_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.cidrBlocks_ = cidrBlocks_; + } else { + result.cidrBlocks_ = cidrBlocksBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1.MasterAuthorizedNetworksConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.gcpPublicCidrsAccessEnabled_ = gcpPublicCidrsAccessEnabled_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.MasterAuthorizedNetworksConfig) { + return mergeFrom((com.google.container.v1.MasterAuthorizedNetworksConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.MasterAuthorizedNetworksConfig other) { + if (other == com.google.container.v1.MasterAuthorizedNetworksConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (cidrBlocksBuilder_ == null) { + if (!other.cidrBlocks_.isEmpty()) { + if (cidrBlocks_.isEmpty()) { + cidrBlocks_ = other.cidrBlocks_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureCidrBlocksIsMutable(); + cidrBlocks_.addAll(other.cidrBlocks_); + } + onChanged(); + } + } else { + if (!other.cidrBlocks_.isEmpty()) { + if (cidrBlocksBuilder_.isEmpty()) { + cidrBlocksBuilder_.dispose(); + cidrBlocksBuilder_ = null; + cidrBlocks_ = other.cidrBlocks_; + bitField0_ = (bitField0_ & ~0x00000002); + cidrBlocksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCidrBlocksFieldBuilder() : null; + } else { + cidrBlocksBuilder_.addAllMessages(other.cidrBlocks_); + } + } + } + if (other.hasGcpPublicCidrsAccessEnabled()) { + setGcpPublicCidrsAccessEnabled(other.getGcpPublicCidrsAccessEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock m = + input.readMessage( + com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.parser(), + extensionRegistry); + if (cidrBlocksBuilder_ == null) { + ensureCidrBlocksIsMutable(); + cidrBlocks_.add(m); + } else { + cidrBlocksBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: { + gcpPublicCidrsAccessEnabled_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether or not master authorized networks is enabled.
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + + private java.util.List cidrBlocks_ = + java.util.Collections.emptyList(); + private void ensureCidrBlocksIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + cidrBlocks_ = new java.util.ArrayList(cidrBlocks_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock, com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.Builder, com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder> cidrBlocksBuilder_; + + /** + *
+     * cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1.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 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public int getCidrBlocksCount() { + if (cidrBlocksBuilder_ == null) { + return cidrBlocks_.size(); + } else { + return cidrBlocksBuilder_.getCount(); + } + } + /** + *
+     * cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock getCidrBlocks(int index) { + if (cidrBlocksBuilder_ == null) { + return cidrBlocks_.get(index); + } else { + return cidrBlocksBuilder_.getMessage(index); + } + } + /** + *
+     * cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public Builder setCidrBlocks( + int index, com.google.container.v1.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 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public Builder setCidrBlocks( + int index, com.google.container.v1.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 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public Builder addCidrBlocks(com.google.container.v1.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 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public Builder addCidrBlocks( + int index, com.google.container.v1.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 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public Builder addCidrBlocks( + com.google.container.v1.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 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public Builder addCidrBlocks( + int index, com.google.container.v1.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 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public Builder addAllCidrBlocks( + java.lang.Iterable values) { + if (cidrBlocksBuilder_ == null) { + ensureCidrBlocksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, cidrBlocks_); + onChanged(); + } else { + cidrBlocksBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public Builder clearCidrBlocks() { + if (cidrBlocksBuilder_ == null) { + cidrBlocks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + cidrBlocksBuilder_.clear(); + } + return this; + } + /** + *
+     * cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1.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 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.Builder getCidrBlocksBuilder( + int index) { + return getCidrBlocksFieldBuilder().getBuilder(index); + } + /** + *
+     * cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder getCidrBlocksOrBuilder( + int index) { + if (cidrBlocksBuilder_ == null) { + return cidrBlocks_.get(index); } else { + return cidrBlocksBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public java.util.List + getCidrBlocksOrBuilderList() { + if (cidrBlocksBuilder_ != null) { + return cidrBlocksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cidrBlocks_); + } + } + /** + *
+     * cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.Builder addCidrBlocksBuilder() { + return getCidrBlocksFieldBuilder().addBuilder( + com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.getDefaultInstance()); + } + /** + *
+     * cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.Builder addCidrBlocksBuilder( + int index) { + return getCidrBlocksFieldBuilder().addBuilder( + index, com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.getDefaultInstance()); + } + /** + *
+     * cidr_blocks define up to 50 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public java.util.List + getCidrBlocksBuilderList() { + return getCidrBlocksFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock, com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.Builder, com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder> + getCidrBlocksFieldBuilder() { + if (cidrBlocksBuilder_ == null) { + cidrBlocksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock, com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.Builder, com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder>( + cidrBlocks_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + cidrBlocks_ = null; + } + return cidrBlocksBuilder_; + } + + private boolean gcpPublicCidrsAccessEnabled_ ; + /** + *
+     * Whether master is accessbile via Google Compute Engine Public IP addresses.
+     * 
+ * + * optional bool gcp_public_cidrs_access_enabled = 3; + * @return Whether the gcpPublicCidrsAccessEnabled field is set. + */ + @java.lang.Override + public boolean hasGcpPublicCidrsAccessEnabled() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * Whether master is accessbile via Google Compute Engine Public IP addresses.
+     * 
+ * + * optional bool gcp_public_cidrs_access_enabled = 3; + * @return The gcpPublicCidrsAccessEnabled. + */ + @java.lang.Override + public boolean getGcpPublicCidrsAccessEnabled() { + return gcpPublicCidrsAccessEnabled_; + } + /** + *
+     * Whether master is accessbile via Google Compute Engine Public IP addresses.
+     * 
+ * + * optional bool gcp_public_cidrs_access_enabled = 3; + * @param value The gcpPublicCidrsAccessEnabled to set. + * @return This builder for chaining. + */ + public Builder setGcpPublicCidrsAccessEnabled(boolean value) { + + gcpPublicCidrsAccessEnabled_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Whether master is accessbile via Google Compute Engine Public IP addresses.
+     * 
+ * + * optional bool gcp_public_cidrs_access_enabled = 3; + * @return This builder for chaining. + */ + public Builder clearGcpPublicCidrsAccessEnabled() { + bitField0_ = (bitField0_ & ~0x00000004); + gcpPublicCidrsAccessEnabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.MasterAuthorizedNetworksConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.MasterAuthorizedNetworksConfig) + private static final com.google.container.v1.MasterAuthorizedNetworksConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.MasterAuthorizedNetworksConfig(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.MasterAuthorizedNetworksConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfigOrBuilder.java new file mode 100644 index 000000000000..42ad0aabf60c --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfigOrBuilder.java @@ -0,0 +1,88 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface MasterAuthorizedNetworksConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.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 50 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + java.util.List + getCidrBlocksList(); + /** + *
+   * cidr_blocks define up to 50 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock getCidrBlocks(int index); + /** + *
+   * cidr_blocks define up to 50 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + int getCidrBlocksCount(); + /** + *
+   * cidr_blocks define up to 50 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + java.util.List + getCidrBlocksOrBuilderList(); + /** + *
+   * cidr_blocks define up to 50 external networks that could access
+   * Kubernetes master through HTTPS.
+   * 
+ * + * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder getCidrBlocksOrBuilder( + int index); + + /** + *
+   * Whether master is accessbile via Google Compute Engine Public IP addresses.
+   * 
+ * + * optional bool gcp_public_cidrs_access_enabled = 3; + * @return Whether the gcpPublicCidrsAccessEnabled field is set. + */ + boolean hasGcpPublicCidrsAccessEnabled(); + /** + *
+   * Whether master is accessbile via Google Compute Engine Public IP addresses.
+   * 
+ * + * optional bool gcp_public_cidrs_access_enabled = 3; + * @return The gcpPublicCidrsAccessEnabled. + */ + boolean getGcpPublicCidrsAccessEnabled(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaxPodsConstraint.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaxPodsConstraint.java new file mode 100644 index 000000000000..060031d6adea --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaxPodsConstraint.java @@ -0,0 +1,497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Constraints applied to pods.
+ * 
+ * + * Protobuf type {@code google.container.v1.MaxPodsConstraint} + */ +public final class MaxPodsConstraint extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MaxPodsConstraint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MaxPodsConstraint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.MaxPodsConstraint.class, com.google.container.v1.MaxPodsConstraint.Builder.class); + } + + public static final int MAX_PODS_PER_NODE_FIELD_NUMBER = 1; + private long maxPodsPerNode_ = 0L; + /** + *
+   * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.MaxPodsConstraint)) { + return super.equals(obj); + } + com.google.container.v1.MaxPodsConstraint other = (com.google.container.v1.MaxPodsConstraint) obj; + + if (getMaxPodsPerNode() + != other.getMaxPodsPerNode()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.MaxPodsConstraint parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.MaxPodsConstraint parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.MaxPodsConstraint parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.MaxPodsConstraint parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.MaxPodsConstraint parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.MaxPodsConstraint parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.MaxPodsConstraint parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.MaxPodsConstraint} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.MaxPodsConstraint) + com.google.container.v1.MaxPodsConstraintOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MaxPodsConstraint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MaxPodsConstraint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.MaxPodsConstraint.class, com.google.container.v1.MaxPodsConstraint.Builder.class); + } + + // Construct using com.google.container.v1.MaxPodsConstraint.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + maxPodsPerNode_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MaxPodsConstraint_descriptor; + } + + @java.lang.Override + public com.google.container.v1.MaxPodsConstraint getDefaultInstanceForType() { + return com.google.container.v1.MaxPodsConstraint.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.MaxPodsConstraint build() { + com.google.container.v1.MaxPodsConstraint result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.MaxPodsConstraint buildPartial() { + com.google.container.v1.MaxPodsConstraint result = new com.google.container.v1.MaxPodsConstraint(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.MaxPodsConstraint result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.maxPodsPerNode_ = maxPodsPerNode_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.MaxPodsConstraint) { + return mergeFrom((com.google.container.v1.MaxPodsConstraint)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.MaxPodsConstraint other) { + if (other == com.google.container.v1.MaxPodsConstraint.getDefaultInstance()) return this; + if (other.getMaxPodsPerNode() != 0L) { + setMaxPodsPerNode(other.getMaxPodsPerNode()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + maxPodsPerNode_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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() { + bitField0_ = (bitField0_ & ~0x00000001); + 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.v1.MaxPodsConstraint) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.MaxPodsConstraint) + private static final com.google.container.v1.MaxPodsConstraint DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.MaxPodsConstraint(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.MaxPodsConstraint getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaxPodsConstraintOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaxPodsConstraintOrBuilder.java new file mode 100644 index 000000000000..c4543d49196f --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaxPodsConstraintOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface MaxPodsConstraintOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MeshCertificates.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MeshCertificates.java new file mode 100644 index 000000000000..16c54dc99826 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MeshCertificates.java @@ -0,0 +1,751 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Configuration for issuance of mTLS keys and certificates to Kubernetes pods.
+ * 
+ * + * Protobuf type {@code google.container.v1.MeshCertificates} + */ +public final class MeshCertificates extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.MeshCertificates) + MeshCertificatesOrBuilder { +private static final long serialVersionUID = 0L; + // Use MeshCertificates.newBuilder() to construct. + private MeshCertificates(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MeshCertificates() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MeshCertificates(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MeshCertificates_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MeshCertificates_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.MeshCertificates.class, com.google.container.v1.MeshCertificates.Builder.class); + } + + private int bitField0_; + public static final int ENABLE_CERTIFICATES_FIELD_NUMBER = 1; + private com.google.protobuf.BoolValue enableCertificates_; + /** + *
+   * enable_certificates controls issuance of workload mTLS certificates.
+   *
+   * If set, the GKE Workload Identity Certificates controller and node agent
+   * will be deployed in the cluster, which can then be configured by creating a
+   * WorkloadCertificateConfig Custom Resource.
+   *
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + * @return Whether the enableCertificates field is set. + */ + @java.lang.Override + public boolean hasEnableCertificates() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * enable_certificates controls issuance of workload mTLS certificates.
+   *
+   * If set, the GKE Workload Identity Certificates controller and node agent
+   * will be deployed in the cluster, which can then be configured by creating a
+   * WorkloadCertificateConfig Custom Resource.
+   *
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + * @return The enableCertificates. + */ + @java.lang.Override + public com.google.protobuf.BoolValue getEnableCertificates() { + return enableCertificates_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableCertificates_; + } + /** + *
+   * enable_certificates controls issuance of workload mTLS certificates.
+   *
+   * If set, the GKE Workload Identity Certificates controller and node agent
+   * will be deployed in the cluster, which can then be configured by creating a
+   * WorkloadCertificateConfig Custom Resource.
+   *
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + @java.lang.Override + public com.google.protobuf.BoolValueOrBuilder getEnableCertificatesOrBuilder() { + return enableCertificates_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableCertificates_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getEnableCertificates()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getEnableCertificates()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.MeshCertificates)) { + return super.equals(obj); + } + com.google.container.v1.MeshCertificates other = (com.google.container.v1.MeshCertificates) obj; + + if (hasEnableCertificates() != other.hasEnableCertificates()) return false; + if (hasEnableCertificates()) { + if (!getEnableCertificates() + .equals(other.getEnableCertificates())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEnableCertificates()) { + hash = (37 * hash) + ENABLE_CERTIFICATES_FIELD_NUMBER; + hash = (53 * hash) + getEnableCertificates().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.MeshCertificates parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.MeshCertificates parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.MeshCertificates parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.MeshCertificates parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.MeshCertificates parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.MeshCertificates parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.MeshCertificates parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.MeshCertificates parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.MeshCertificates parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.MeshCertificates parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.MeshCertificates parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.MeshCertificates parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.MeshCertificates prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes pods.
+   * 
+ * + * Protobuf type {@code google.container.v1.MeshCertificates} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.MeshCertificates) + com.google.container.v1.MeshCertificatesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MeshCertificates_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MeshCertificates_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.MeshCertificates.class, com.google.container.v1.MeshCertificates.Builder.class); + } + + // Construct using com.google.container.v1.MeshCertificates.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getEnableCertificatesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enableCertificates_ = null; + if (enableCertificatesBuilder_ != null) { + enableCertificatesBuilder_.dispose(); + enableCertificatesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MeshCertificates_descriptor; + } + + @java.lang.Override + public com.google.container.v1.MeshCertificates getDefaultInstanceForType() { + return com.google.container.v1.MeshCertificates.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.MeshCertificates build() { + com.google.container.v1.MeshCertificates result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.MeshCertificates buildPartial() { + com.google.container.v1.MeshCertificates result = new com.google.container.v1.MeshCertificates(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.MeshCertificates result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enableCertificates_ = enableCertificatesBuilder_ == null + ? enableCertificates_ + : enableCertificatesBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.MeshCertificates) { + return mergeFrom((com.google.container.v1.MeshCertificates)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.MeshCertificates other) { + if (other == com.google.container.v1.MeshCertificates.getDefaultInstance()) return this; + if (other.hasEnableCertificates()) { + mergeEnableCertificates(other.getEnableCertificates()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getEnableCertificatesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.BoolValue enableCertificates_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> enableCertificatesBuilder_; + /** + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     *
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     *
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + * @return Whether the enableCertificates field is set. + */ + public boolean hasEnableCertificates() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     *
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     *
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + * @return The enableCertificates. + */ + public com.google.protobuf.BoolValue getEnableCertificates() { + if (enableCertificatesBuilder_ == null) { + return enableCertificates_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableCertificates_; + } else { + return enableCertificatesBuilder_.getMessage(); + } + } + /** + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     *
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     *
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public Builder setEnableCertificates(com.google.protobuf.BoolValue value) { + if (enableCertificatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + enableCertificates_ = value; + } else { + enableCertificatesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     *
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     *
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public Builder setEnableCertificates( + com.google.protobuf.BoolValue.Builder builderForValue) { + if (enableCertificatesBuilder_ == null) { + enableCertificates_ = builderForValue.build(); + } else { + enableCertificatesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     *
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     *
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public Builder mergeEnableCertificates(com.google.protobuf.BoolValue value) { + if (enableCertificatesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + enableCertificates_ != null && + enableCertificates_ != com.google.protobuf.BoolValue.getDefaultInstance()) { + getEnableCertificatesBuilder().mergeFrom(value); + } else { + enableCertificates_ = value; + } + } else { + enableCertificatesBuilder_.mergeFrom(value); + } + if (enableCertificates_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     *
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     *
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public Builder clearEnableCertificates() { + bitField0_ = (bitField0_ & ~0x00000001); + enableCertificates_ = null; + if (enableCertificatesBuilder_ != null) { + enableCertificatesBuilder_.dispose(); + enableCertificatesBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     *
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     *
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public com.google.protobuf.BoolValue.Builder getEnableCertificatesBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getEnableCertificatesFieldBuilder().getBuilder(); + } + /** + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     *
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     *
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public com.google.protobuf.BoolValueOrBuilder getEnableCertificatesOrBuilder() { + if (enableCertificatesBuilder_ != null) { + return enableCertificatesBuilder_.getMessageOrBuilder(); + } else { + return enableCertificates_ == null ? + com.google.protobuf.BoolValue.getDefaultInstance() : enableCertificates_; + } + } + /** + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     *
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     *
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> + getEnableCertificatesFieldBuilder() { + if (enableCertificatesBuilder_ == null) { + enableCertificatesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( + getEnableCertificates(), + getParentForChildren(), + isClean()); + enableCertificates_ = null; + } + return enableCertificatesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.MeshCertificates) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.MeshCertificates) + private static final com.google.container.v1.MeshCertificates DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.MeshCertificates(); + } + + public static com.google.container.v1.MeshCertificates getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MeshCertificates parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.MeshCertificates getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MeshCertificatesOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MeshCertificatesOrBuilder.java new file mode 100644 index 000000000000..e4405bd18b0d --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MeshCertificatesOrBuilder.java @@ -0,0 +1,61 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface MeshCertificatesOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.MeshCertificates) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * enable_certificates controls issuance of workload mTLS certificates.
+   *
+   * If set, the GKE Workload Identity Certificates controller and node agent
+   * will be deployed in the cluster, which can then be configured by creating a
+   * WorkloadCertificateConfig Custom Resource.
+   *
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + * @return Whether the enableCertificates field is set. + */ + boolean hasEnableCertificates(); + /** + *
+   * enable_certificates controls issuance of workload mTLS certificates.
+   *
+   * If set, the GKE Workload Identity Certificates controller and node agent
+   * will be deployed in the cluster, which can then be configured by creating a
+   * WorkloadCertificateConfig Custom Resource.
+   *
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + * @return The enableCertificates. + */ + com.google.protobuf.BoolValue getEnableCertificates(); + /** + *
+   * enable_certificates controls issuance of workload mTLS certificates.
+   *
+   * If set, the GKE Workload Identity Certificates controller and node agent
+   * will be deployed in the cluster, which can then be configured by creating a
+   * WorkloadCertificateConfig Custom Resource.
+   *
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + com.google.protobuf.BoolValueOrBuilder getEnableCertificatesOrBuilder(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringComponentConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringComponentConfig.java new file mode 100644 index 000000000000..e43c2323a7f6 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringComponentConfig.java @@ -0,0 +1,1042 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * MonitoringComponentConfig is cluster monitoring component configuration.
+ * 
+ * + * Protobuf type {@code google.container.v1.MonitoringComponentConfig} + */ +public final class MonitoringComponentConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.MonitoringComponentConfig) + MonitoringComponentConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use MonitoringComponentConfig.newBuilder() to construct. + private MonitoringComponentConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MonitoringComponentConfig() { + enableComponents_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MonitoringComponentConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MonitoringComponentConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MonitoringComponentConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.MonitoringComponentConfig.class, com.google.container.v1.MonitoringComponentConfig.Builder.class); + } + + /** + *
+   * GKE components exposing metrics
+   * 
+ * + * Protobuf enum {@code google.container.v1.MonitoringComponentConfig.Component} + */ + public enum Component + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Default value. This shouldn't be used.
+     * 
+ * + * COMPONENT_UNSPECIFIED = 0; + */ + COMPONENT_UNSPECIFIED(0), + /** + *
+     * system components
+     * 
+ * + * SYSTEM_COMPONENTS = 1; + */ + SYSTEM_COMPONENTS(1), + /** + *
+     * kube-apiserver
+     * 
+ * + * APISERVER = 3; + */ + APISERVER(3), + /** + *
+     * kube-scheduler
+     * 
+ * + * SCHEDULER = 4; + */ + SCHEDULER(4), + /** + *
+     * kube-controller-manager
+     * 
+ * + * CONTROLLER_MANAGER = 5; + */ + CONTROLLER_MANAGER(5), + /** + *
+     * Storage
+     * 
+ * + * STORAGE = 7; + */ + STORAGE(7), + /** + *
+     * Horizontal Pod Autoscaling
+     * 
+ * + * HPA = 8; + */ + HPA(8), + /** + *
+     * Pod
+     * 
+ * + * POD = 9; + */ + POD(9), + /** + *
+     * DaemonSet
+     * 
+ * + * DAEMONSET = 10; + */ + DAEMONSET(10), + /** + *
+     * Deployment
+     * 
+ * + * DEPLOYMENT = 11; + */ + DEPLOYMENT(11), + /** + *
+     * Statefulset
+     * 
+ * + * STATEFULSET = 12; + */ + STATEFULSET(12), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Default value. This shouldn't be used.
+     * 
+ * + * COMPONENT_UNSPECIFIED = 0; + */ + public static final int COMPONENT_UNSPECIFIED_VALUE = 0; + /** + *
+     * system components
+     * 
+ * + * SYSTEM_COMPONENTS = 1; + */ + public static final int SYSTEM_COMPONENTS_VALUE = 1; + /** + *
+     * kube-apiserver
+     * 
+ * + * APISERVER = 3; + */ + public static final int APISERVER_VALUE = 3; + /** + *
+     * kube-scheduler
+     * 
+ * + * SCHEDULER = 4; + */ + public static final int SCHEDULER_VALUE = 4; + /** + *
+     * kube-controller-manager
+     * 
+ * + * CONTROLLER_MANAGER = 5; + */ + public static final int CONTROLLER_MANAGER_VALUE = 5; + /** + *
+     * Storage
+     * 
+ * + * STORAGE = 7; + */ + public static final int STORAGE_VALUE = 7; + /** + *
+     * Horizontal Pod Autoscaling
+     * 
+ * + * HPA = 8; + */ + public static final int HPA_VALUE = 8; + /** + *
+     * Pod
+     * 
+ * + * POD = 9; + */ + public static final int POD_VALUE = 9; + /** + *
+     * DaemonSet
+     * 
+ * + * DAEMONSET = 10; + */ + public static final int DAEMONSET_VALUE = 10; + /** + *
+     * Deployment
+     * 
+ * + * DEPLOYMENT = 11; + */ + public static final int DEPLOYMENT_VALUE = 11; + /** + *
+     * Statefulset
+     * 
+ * + * STATEFULSET = 12; + */ + public static final int STATEFULSET_VALUE = 12; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Component valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Component forNumber(int value) { + switch (value) { + case 0: return COMPONENT_UNSPECIFIED; + case 1: return SYSTEM_COMPONENTS; + case 3: return APISERVER; + case 4: return SCHEDULER; + case 5: return CONTROLLER_MANAGER; + case 7: return STORAGE; + case 8: return HPA; + case 9: return POD; + case 10: return DAEMONSET; + case 11: return DEPLOYMENT; + case 12: return STATEFULSET; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Component> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Component findValueByNumber(int number) { + return Component.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.MonitoringComponentConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final Component[] VALUES = values(); + + public static Component valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Component(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.MonitoringComponentConfig.Component) + } + + public static final int ENABLE_COMPONENTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List enableComponents_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.container.v1.MonitoringComponentConfig.Component> enableComponents_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.container.v1.MonitoringComponentConfig.Component>() { + public com.google.container.v1.MonitoringComponentConfig.Component convert(java.lang.Integer from) { + com.google.container.v1.MonitoringComponentConfig.Component result = com.google.container.v1.MonitoringComponentConfig.Component.forNumber(from); + return result == null ? com.google.container.v1.MonitoringComponentConfig.Component.UNRECOGNIZED : result; + } + }; + /** + *
+   * Select components to collect metrics. An empty set would disable all
+   * monitoring.
+   * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * @return A list containing the enableComponents. + */ + @java.lang.Override + public java.util.List getEnableComponentsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.container.v1.MonitoringComponentConfig.Component>(enableComponents_, enableComponents_converter_); + } + /** + *
+   * Select components to collect metrics. An empty set would disable all
+   * monitoring.
+   * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * @return The count of enableComponents. + */ + @java.lang.Override + public int getEnableComponentsCount() { + return enableComponents_.size(); + } + /** + *
+   * Select components to collect metrics. An empty set would disable all
+   * monitoring.
+   * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * @param index The index of the element to return. + * @return The enableComponents at the given index. + */ + @java.lang.Override + public com.google.container.v1.MonitoringComponentConfig.Component getEnableComponents(int index) { + return enableComponents_converter_.convert(enableComponents_.get(index)); + } + /** + *
+   * Select components to collect metrics. An empty set would disable all
+   * monitoring.
+   * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * @return A list containing the enum numeric values on the wire for enableComponents. + */ + @java.lang.Override + public java.util.List + getEnableComponentsValueList() { + return enableComponents_; + } + /** + *
+   * Select components to collect metrics. An empty set would disable all
+   * monitoring.
+   * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of enableComponents at the given index. + */ + @java.lang.Override + public int getEnableComponentsValue(int index) { + return enableComponents_.get(index); + } + private int enableComponentsMemoizedSerializedSize; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (getEnableComponentsList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(enableComponentsMemoizedSerializedSize); + } + for (int i = 0; i < enableComponents_.size(); i++) { + output.writeEnumNoTag(enableComponents_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < enableComponents_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(enableComponents_.get(i)); + } + size += dataSize; + if (!getEnableComponentsList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }enableComponentsMemoizedSerializedSize = dataSize; + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.MonitoringComponentConfig)) { + return super.equals(obj); + } + com.google.container.v1.MonitoringComponentConfig other = (com.google.container.v1.MonitoringComponentConfig) obj; + + if (!enableComponents_.equals(other.enableComponents_)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEnableComponentsCount() > 0) { + hash = (37 * hash) + ENABLE_COMPONENTS_FIELD_NUMBER; + hash = (53 * hash) + enableComponents_.hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.MonitoringComponentConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.MonitoringComponentConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.MonitoringComponentConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.MonitoringComponentConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.MonitoringComponentConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.MonitoringComponentConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.MonitoringComponentConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.MonitoringComponentConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.MonitoringComponentConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.MonitoringComponentConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.MonitoringComponentConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.MonitoringComponentConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.MonitoringComponentConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * MonitoringComponentConfig is cluster monitoring component configuration.
+   * 
+ * + * Protobuf type {@code google.container.v1.MonitoringComponentConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.MonitoringComponentConfig) + com.google.container.v1.MonitoringComponentConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MonitoringComponentConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MonitoringComponentConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.MonitoringComponentConfig.class, com.google.container.v1.MonitoringComponentConfig.Builder.class); + } + + // Construct using com.google.container.v1.MonitoringComponentConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enableComponents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MonitoringComponentConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.MonitoringComponentConfig getDefaultInstanceForType() { + return com.google.container.v1.MonitoringComponentConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.MonitoringComponentConfig build() { + com.google.container.v1.MonitoringComponentConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.MonitoringComponentConfig buildPartial() { + com.google.container.v1.MonitoringComponentConfig result = new com.google.container.v1.MonitoringComponentConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1.MonitoringComponentConfig result) { + if (((bitField0_ & 0x00000001) != 0)) { + enableComponents_ = java.util.Collections.unmodifiableList(enableComponents_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.enableComponents_ = enableComponents_; + } + + private void buildPartial0(com.google.container.v1.MonitoringComponentConfig result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.MonitoringComponentConfig) { + return mergeFrom((com.google.container.v1.MonitoringComponentConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.MonitoringComponentConfig other) { + if (other == com.google.container.v1.MonitoringComponentConfig.getDefaultInstance()) return this; + if (!other.enableComponents_.isEmpty()) { + if (enableComponents_.isEmpty()) { + enableComponents_ = other.enableComponents_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEnableComponentsIsMutable(); + enableComponents_.addAll(other.enableComponents_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int tmpRaw = input.readEnum(); + ensureEnableComponentsIsMutable(); + enableComponents_.add(tmpRaw); + break; + } // case 8 + case 10: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureEnableComponentsIsMutable(); + enableComponents_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List enableComponents_ = + java.util.Collections.emptyList(); + private void ensureEnableComponentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + enableComponents_ = new java.util.ArrayList(enableComponents_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * Select components to collect metrics. An empty set would disable all
+     * monitoring.
+     * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * @return A list containing the enableComponents. + */ + public java.util.List getEnableComponentsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.container.v1.MonitoringComponentConfig.Component>(enableComponents_, enableComponents_converter_); + } + /** + *
+     * Select components to collect metrics. An empty set would disable all
+     * monitoring.
+     * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * @return The count of enableComponents. + */ + public int getEnableComponentsCount() { + return enableComponents_.size(); + } + /** + *
+     * Select components to collect metrics. An empty set would disable all
+     * monitoring.
+     * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * @param index The index of the element to return. + * @return The enableComponents at the given index. + */ + public com.google.container.v1.MonitoringComponentConfig.Component getEnableComponents(int index) { + return enableComponents_converter_.convert(enableComponents_.get(index)); + } + /** + *
+     * Select components to collect metrics. An empty set would disable all
+     * monitoring.
+     * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * @param index The index to set the value at. + * @param value The enableComponents to set. + * @return This builder for chaining. + */ + public Builder setEnableComponents( + int index, com.google.container.v1.MonitoringComponentConfig.Component value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnableComponentsIsMutable(); + enableComponents_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + *
+     * Select components to collect metrics. An empty set would disable all
+     * monitoring.
+     * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * @param value The enableComponents to add. + * @return This builder for chaining. + */ + public Builder addEnableComponents(com.google.container.v1.MonitoringComponentConfig.Component value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnableComponentsIsMutable(); + enableComponents_.add(value.getNumber()); + onChanged(); + return this; + } + /** + *
+     * Select components to collect metrics. An empty set would disable all
+     * monitoring.
+     * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * @param values The enableComponents to add. + * @return This builder for chaining. + */ + public Builder addAllEnableComponents( + java.lang.Iterable values) { + ensureEnableComponentsIsMutable(); + for (com.google.container.v1.MonitoringComponentConfig.Component value : values) { + enableComponents_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + *
+     * Select components to collect metrics. An empty set would disable all
+     * monitoring.
+     * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * @return This builder for chaining. + */ + public Builder clearEnableComponents() { + enableComponents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Select components to collect metrics. An empty set would disable all
+     * monitoring.
+     * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * @return A list containing the enum numeric values on the wire for enableComponents. + */ + public java.util.List + getEnableComponentsValueList() { + return java.util.Collections.unmodifiableList(enableComponents_); + } + /** + *
+     * Select components to collect metrics. An empty set would disable all
+     * monitoring.
+     * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of enableComponents at the given index. + */ + public int getEnableComponentsValue(int index) { + return enableComponents_.get(index); + } + /** + *
+     * Select components to collect metrics. An empty set would disable all
+     * monitoring.
+     * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for enableComponents to set. + * @return This builder for chaining. + */ + public Builder setEnableComponentsValue( + int index, int value) { + ensureEnableComponentsIsMutable(); + enableComponents_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * Select components to collect metrics. An empty set would disable all
+     * monitoring.
+     * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * @param value The enum numeric value on the wire for enableComponents to add. + * @return This builder for chaining. + */ + public Builder addEnableComponentsValue(int value) { + ensureEnableComponentsIsMutable(); + enableComponents_.add(value); + onChanged(); + return this; + } + /** + *
+     * Select components to collect metrics. An empty set would disable all
+     * monitoring.
+     * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * @param values The enum numeric values on the wire for enableComponents to add. + * @return This builder for chaining. + */ + public Builder addAllEnableComponentsValue( + java.lang.Iterable values) { + ensureEnableComponentsIsMutable(); + for (int value : values) { + enableComponents_.add(value); + } + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.MonitoringComponentConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.MonitoringComponentConfig) + private static final com.google.container.v1.MonitoringComponentConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.MonitoringComponentConfig(); + } + + public static com.google.container.v1.MonitoringComponentConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MonitoringComponentConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.MonitoringComponentConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringComponentConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringComponentConfigOrBuilder.java new file mode 100644 index 000000000000..9f99959fb997 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringComponentConfigOrBuilder.java @@ -0,0 +1,64 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface MonitoringComponentConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.MonitoringComponentConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Select components to collect metrics. An empty set would disable all
+   * monitoring.
+   * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * @return A list containing the enableComponents. + */ + java.util.List getEnableComponentsList(); + /** + *
+   * Select components to collect metrics. An empty set would disable all
+   * monitoring.
+   * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * @return The count of enableComponents. + */ + int getEnableComponentsCount(); + /** + *
+   * Select components to collect metrics. An empty set would disable all
+   * monitoring.
+   * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * @param index The index of the element to return. + * @return The enableComponents at the given index. + */ + com.google.container.v1.MonitoringComponentConfig.Component getEnableComponents(int index); + /** + *
+   * Select components to collect metrics. An empty set would disable all
+   * monitoring.
+   * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * @return A list containing the enum numeric values on the wire for enableComponents. + */ + java.util.List + getEnableComponentsValueList(); + /** + *
+   * Select components to collect metrics. An empty set would disable all
+   * monitoring.
+   * 
+ * + * repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of enableComponents at the given index. + */ + int getEnableComponentsValue(int index); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringConfig.java new file mode 100644 index 000000000000..401738f7fb58 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringConfig.java @@ -0,0 +1,1133 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * MonitoringConfig is cluster monitoring configuration.
+ * 
+ * + * Protobuf type {@code google.container.v1.MonitoringConfig} + */ +public final class MonitoringConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.MonitoringConfig) + MonitoringConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use MonitoringConfig.newBuilder() to construct. + private MonitoringConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MonitoringConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MonitoringConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MonitoringConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MonitoringConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.MonitoringConfig.class, com.google.container.v1.MonitoringConfig.Builder.class); + } + + private int bitField0_; + public static final int COMPONENT_CONFIG_FIELD_NUMBER = 1; + private com.google.container.v1.MonitoringComponentConfig componentConfig_; + /** + *
+   * Monitoring components configuration
+   * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + * @return Whether the componentConfig field is set. + */ + @java.lang.Override + public boolean hasComponentConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Monitoring components configuration
+   * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + * @return The componentConfig. + */ + @java.lang.Override + public com.google.container.v1.MonitoringComponentConfig getComponentConfig() { + return componentConfig_ == null ? com.google.container.v1.MonitoringComponentConfig.getDefaultInstance() : componentConfig_; + } + /** + *
+   * Monitoring components configuration
+   * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + */ + @java.lang.Override + public com.google.container.v1.MonitoringComponentConfigOrBuilder getComponentConfigOrBuilder() { + return componentConfig_ == null ? com.google.container.v1.MonitoringComponentConfig.getDefaultInstance() : componentConfig_; + } + + public static final int MANAGED_PROMETHEUS_CONFIG_FIELD_NUMBER = 2; + private com.google.container.v1.ManagedPrometheusConfig managedPrometheusConfig_; + /** + *
+   * Enable Google Cloud Managed Service for Prometheus
+   * in the cluster.
+   * 
+ * + * .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + * @return Whether the managedPrometheusConfig field is set. + */ + @java.lang.Override + public boolean hasManagedPrometheusConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * Enable Google Cloud Managed Service for Prometheus
+   * in the cluster.
+   * 
+ * + * .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + * @return The managedPrometheusConfig. + */ + @java.lang.Override + public com.google.container.v1.ManagedPrometheusConfig getManagedPrometheusConfig() { + return managedPrometheusConfig_ == null ? com.google.container.v1.ManagedPrometheusConfig.getDefaultInstance() : managedPrometheusConfig_; + } + /** + *
+   * Enable Google Cloud Managed Service for Prometheus
+   * in the cluster.
+   * 
+ * + * .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + @java.lang.Override + public com.google.container.v1.ManagedPrometheusConfigOrBuilder getManagedPrometheusConfigOrBuilder() { + return managedPrometheusConfig_ == null ? com.google.container.v1.ManagedPrometheusConfig.getDefaultInstance() : managedPrometheusConfig_; + } + + public static final int ADVANCED_DATAPATH_OBSERVABILITY_CONFIG_FIELD_NUMBER = 3; + private com.google.container.v1.AdvancedDatapathObservabilityConfig advancedDatapathObservabilityConfig_; + /** + *
+   * Configuration of Advanced Datapath Observability features.
+   * 
+ * + * .google.container.v1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; + * @return Whether the advancedDatapathObservabilityConfig field is set. + */ + @java.lang.Override + public boolean hasAdvancedDatapathObservabilityConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+   * Configuration of Advanced Datapath Observability features.
+   * 
+ * + * .google.container.v1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; + * @return The advancedDatapathObservabilityConfig. + */ + @java.lang.Override + public com.google.container.v1.AdvancedDatapathObservabilityConfig getAdvancedDatapathObservabilityConfig() { + return advancedDatapathObservabilityConfig_ == null ? com.google.container.v1.AdvancedDatapathObservabilityConfig.getDefaultInstance() : advancedDatapathObservabilityConfig_; + } + /** + *
+   * Configuration of Advanced Datapath Observability features.
+   * 
+ * + * .google.container.v1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; + */ + @java.lang.Override + public com.google.container.v1.AdvancedDatapathObservabilityConfigOrBuilder getAdvancedDatapathObservabilityConfigOrBuilder() { + return advancedDatapathObservabilityConfig_ == null ? com.google.container.v1.AdvancedDatapathObservabilityConfig.getDefaultInstance() : advancedDatapathObservabilityConfig_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getComponentConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getManagedPrometheusConfig()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getAdvancedDatapathObservabilityConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getComponentConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getManagedPrometheusConfig()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getAdvancedDatapathObservabilityConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.MonitoringConfig)) { + return super.equals(obj); + } + com.google.container.v1.MonitoringConfig other = (com.google.container.v1.MonitoringConfig) obj; + + if (hasComponentConfig() != other.hasComponentConfig()) return false; + if (hasComponentConfig()) { + if (!getComponentConfig() + .equals(other.getComponentConfig())) return false; + } + if (hasManagedPrometheusConfig() != other.hasManagedPrometheusConfig()) return false; + if (hasManagedPrometheusConfig()) { + if (!getManagedPrometheusConfig() + .equals(other.getManagedPrometheusConfig())) return false; + } + if (hasAdvancedDatapathObservabilityConfig() != other.hasAdvancedDatapathObservabilityConfig()) return false; + if (hasAdvancedDatapathObservabilityConfig()) { + if (!getAdvancedDatapathObservabilityConfig() + .equals(other.getAdvancedDatapathObservabilityConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasComponentConfig()) { + hash = (37 * hash) + COMPONENT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getComponentConfig().hashCode(); + } + if (hasManagedPrometheusConfig()) { + hash = (37 * hash) + MANAGED_PROMETHEUS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getManagedPrometheusConfig().hashCode(); + } + if (hasAdvancedDatapathObservabilityConfig()) { + hash = (37 * hash) + ADVANCED_DATAPATH_OBSERVABILITY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAdvancedDatapathObservabilityConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.MonitoringConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.MonitoringConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.MonitoringConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.MonitoringConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.MonitoringConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.MonitoringConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.MonitoringConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.MonitoringConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.MonitoringConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.MonitoringConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.MonitoringConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.MonitoringConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.MonitoringConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * MonitoringConfig is cluster monitoring configuration.
+   * 
+ * + * Protobuf type {@code google.container.v1.MonitoringConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.MonitoringConfig) + com.google.container.v1.MonitoringConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MonitoringConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MonitoringConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.MonitoringConfig.class, com.google.container.v1.MonitoringConfig.Builder.class); + } + + // Construct using com.google.container.v1.MonitoringConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getComponentConfigFieldBuilder(); + getManagedPrometheusConfigFieldBuilder(); + getAdvancedDatapathObservabilityConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + componentConfig_ = null; + if (componentConfigBuilder_ != null) { + componentConfigBuilder_.dispose(); + componentConfigBuilder_ = null; + } + managedPrometheusConfig_ = null; + if (managedPrometheusConfigBuilder_ != null) { + managedPrometheusConfigBuilder_.dispose(); + managedPrometheusConfigBuilder_ = null; + } + advancedDatapathObservabilityConfig_ = null; + if (advancedDatapathObservabilityConfigBuilder_ != null) { + advancedDatapathObservabilityConfigBuilder_.dispose(); + advancedDatapathObservabilityConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_MonitoringConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.MonitoringConfig getDefaultInstanceForType() { + return com.google.container.v1.MonitoringConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.MonitoringConfig build() { + com.google.container.v1.MonitoringConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.MonitoringConfig buildPartial() { + com.google.container.v1.MonitoringConfig result = new com.google.container.v1.MonitoringConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.MonitoringConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.componentConfig_ = componentConfigBuilder_ == null + ? componentConfig_ + : componentConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.managedPrometheusConfig_ = managedPrometheusConfigBuilder_ == null + ? managedPrometheusConfig_ + : managedPrometheusConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.advancedDatapathObservabilityConfig_ = advancedDatapathObservabilityConfigBuilder_ == null + ? advancedDatapathObservabilityConfig_ + : advancedDatapathObservabilityConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.MonitoringConfig) { + return mergeFrom((com.google.container.v1.MonitoringConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.MonitoringConfig other) { + if (other == com.google.container.v1.MonitoringConfig.getDefaultInstance()) return this; + if (other.hasComponentConfig()) { + mergeComponentConfig(other.getComponentConfig()); + } + if (other.hasManagedPrometheusConfig()) { + mergeManagedPrometheusConfig(other.getManagedPrometheusConfig()); + } + if (other.hasAdvancedDatapathObservabilityConfig()) { + mergeAdvancedDatapathObservabilityConfig(other.getAdvancedDatapathObservabilityConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getComponentConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getManagedPrometheusConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getAdvancedDatapathObservabilityConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.container.v1.MonitoringComponentConfig componentConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MonitoringComponentConfig, com.google.container.v1.MonitoringComponentConfig.Builder, com.google.container.v1.MonitoringComponentConfigOrBuilder> componentConfigBuilder_; + /** + *
+     * Monitoring components configuration
+     * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + * @return Whether the componentConfig field is set. + */ + public boolean hasComponentConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Monitoring components configuration
+     * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + * @return The componentConfig. + */ + public com.google.container.v1.MonitoringComponentConfig getComponentConfig() { + if (componentConfigBuilder_ == null) { + return componentConfig_ == null ? com.google.container.v1.MonitoringComponentConfig.getDefaultInstance() : componentConfig_; + } else { + return componentConfigBuilder_.getMessage(); + } + } + /** + *
+     * Monitoring components configuration
+     * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + */ + public Builder setComponentConfig(com.google.container.v1.MonitoringComponentConfig value) { + if (componentConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + componentConfig_ = value; + } else { + componentConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Monitoring components configuration
+     * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + */ + public Builder setComponentConfig( + com.google.container.v1.MonitoringComponentConfig.Builder builderForValue) { + if (componentConfigBuilder_ == null) { + componentConfig_ = builderForValue.build(); + } else { + componentConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Monitoring components configuration
+     * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + */ + public Builder mergeComponentConfig(com.google.container.v1.MonitoringComponentConfig value) { + if (componentConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + componentConfig_ != null && + componentConfig_ != com.google.container.v1.MonitoringComponentConfig.getDefaultInstance()) { + getComponentConfigBuilder().mergeFrom(value); + } else { + componentConfig_ = value; + } + } else { + componentConfigBuilder_.mergeFrom(value); + } + if (componentConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+     * Monitoring components configuration
+     * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + */ + public Builder clearComponentConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + componentConfig_ = null; + if (componentConfigBuilder_ != null) { + componentConfigBuilder_.dispose(); + componentConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Monitoring components configuration
+     * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + */ + public com.google.container.v1.MonitoringComponentConfig.Builder getComponentConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getComponentConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Monitoring components configuration
+     * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + */ + public com.google.container.v1.MonitoringComponentConfigOrBuilder getComponentConfigOrBuilder() { + if (componentConfigBuilder_ != null) { + return componentConfigBuilder_.getMessageOrBuilder(); + } else { + return componentConfig_ == null ? + com.google.container.v1.MonitoringComponentConfig.getDefaultInstance() : componentConfig_; + } + } + /** + *
+     * Monitoring components configuration
+     * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MonitoringComponentConfig, com.google.container.v1.MonitoringComponentConfig.Builder, com.google.container.v1.MonitoringComponentConfigOrBuilder> + getComponentConfigFieldBuilder() { + if (componentConfigBuilder_ == null) { + componentConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MonitoringComponentConfig, com.google.container.v1.MonitoringComponentConfig.Builder, com.google.container.v1.MonitoringComponentConfigOrBuilder>( + getComponentConfig(), + getParentForChildren(), + isClean()); + componentConfig_ = null; + } + return componentConfigBuilder_; + } + + private com.google.container.v1.ManagedPrometheusConfig managedPrometheusConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ManagedPrometheusConfig, com.google.container.v1.ManagedPrometheusConfig.Builder, com.google.container.v1.ManagedPrometheusConfigOrBuilder> managedPrometheusConfigBuilder_; + /** + *
+     * Enable Google Cloud Managed Service for Prometheus
+     * in the cluster.
+     * 
+ * + * .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + * @return Whether the managedPrometheusConfig field is set. + */ + public boolean hasManagedPrometheusConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Enable Google Cloud Managed Service for Prometheus
+     * in the cluster.
+     * 
+ * + * .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + * @return The managedPrometheusConfig. + */ + public com.google.container.v1.ManagedPrometheusConfig getManagedPrometheusConfig() { + if (managedPrometheusConfigBuilder_ == null) { + return managedPrometheusConfig_ == null ? com.google.container.v1.ManagedPrometheusConfig.getDefaultInstance() : managedPrometheusConfig_; + } else { + return managedPrometheusConfigBuilder_.getMessage(); + } + } + /** + *
+     * Enable Google Cloud Managed Service for Prometheus
+     * in the cluster.
+     * 
+ * + * .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + public Builder setManagedPrometheusConfig(com.google.container.v1.ManagedPrometheusConfig value) { + if (managedPrometheusConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + managedPrometheusConfig_ = value; + } else { + managedPrometheusConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Enable Google Cloud Managed Service for Prometheus
+     * in the cluster.
+     * 
+ * + * .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + public Builder setManagedPrometheusConfig( + com.google.container.v1.ManagedPrometheusConfig.Builder builderForValue) { + if (managedPrometheusConfigBuilder_ == null) { + managedPrometheusConfig_ = builderForValue.build(); + } else { + managedPrometheusConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Enable Google Cloud Managed Service for Prometheus
+     * in the cluster.
+     * 
+ * + * .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + public Builder mergeManagedPrometheusConfig(com.google.container.v1.ManagedPrometheusConfig value) { + if (managedPrometheusConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + managedPrometheusConfig_ != null && + managedPrometheusConfig_ != com.google.container.v1.ManagedPrometheusConfig.getDefaultInstance()) { + getManagedPrometheusConfigBuilder().mergeFrom(value); + } else { + managedPrometheusConfig_ = value; + } + } else { + managedPrometheusConfigBuilder_.mergeFrom(value); + } + if (managedPrometheusConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + *
+     * Enable Google Cloud Managed Service for Prometheus
+     * in the cluster.
+     * 
+ * + * .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + public Builder clearManagedPrometheusConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + managedPrometheusConfig_ = null; + if (managedPrometheusConfigBuilder_ != null) { + managedPrometheusConfigBuilder_.dispose(); + managedPrometheusConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Enable Google Cloud Managed Service for Prometheus
+     * in the cluster.
+     * 
+ * + * .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + public com.google.container.v1.ManagedPrometheusConfig.Builder getManagedPrometheusConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getManagedPrometheusConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Enable Google Cloud Managed Service for Prometheus
+     * in the cluster.
+     * 
+ * + * .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + public com.google.container.v1.ManagedPrometheusConfigOrBuilder getManagedPrometheusConfigOrBuilder() { + if (managedPrometheusConfigBuilder_ != null) { + return managedPrometheusConfigBuilder_.getMessageOrBuilder(); + } else { + return managedPrometheusConfig_ == null ? + com.google.container.v1.ManagedPrometheusConfig.getDefaultInstance() : managedPrometheusConfig_; + } + } + /** + *
+     * Enable Google Cloud Managed Service for Prometheus
+     * in the cluster.
+     * 
+ * + * .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ManagedPrometheusConfig, com.google.container.v1.ManagedPrometheusConfig.Builder, com.google.container.v1.ManagedPrometheusConfigOrBuilder> + getManagedPrometheusConfigFieldBuilder() { + if (managedPrometheusConfigBuilder_ == null) { + managedPrometheusConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ManagedPrometheusConfig, com.google.container.v1.ManagedPrometheusConfig.Builder, com.google.container.v1.ManagedPrometheusConfigOrBuilder>( + getManagedPrometheusConfig(), + getParentForChildren(), + isClean()); + managedPrometheusConfig_ = null; + } + return managedPrometheusConfigBuilder_; + } + + private com.google.container.v1.AdvancedDatapathObservabilityConfig advancedDatapathObservabilityConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AdvancedDatapathObservabilityConfig, com.google.container.v1.AdvancedDatapathObservabilityConfig.Builder, com.google.container.v1.AdvancedDatapathObservabilityConfigOrBuilder> advancedDatapathObservabilityConfigBuilder_; + /** + *
+     * Configuration of Advanced Datapath Observability features.
+     * 
+ * + * .google.container.v1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; + * @return Whether the advancedDatapathObservabilityConfig field is set. + */ + public boolean hasAdvancedDatapathObservabilityConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * Configuration of Advanced Datapath Observability features.
+     * 
+ * + * .google.container.v1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; + * @return The advancedDatapathObservabilityConfig. + */ + public com.google.container.v1.AdvancedDatapathObservabilityConfig getAdvancedDatapathObservabilityConfig() { + if (advancedDatapathObservabilityConfigBuilder_ == null) { + return advancedDatapathObservabilityConfig_ == null ? com.google.container.v1.AdvancedDatapathObservabilityConfig.getDefaultInstance() : advancedDatapathObservabilityConfig_; + } else { + return advancedDatapathObservabilityConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configuration of Advanced Datapath Observability features.
+     * 
+ * + * .google.container.v1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; + */ + public Builder setAdvancedDatapathObservabilityConfig(com.google.container.v1.AdvancedDatapathObservabilityConfig value) { + if (advancedDatapathObservabilityConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + advancedDatapathObservabilityConfig_ = value; + } else { + advancedDatapathObservabilityConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Configuration of Advanced Datapath Observability features.
+     * 
+ * + * .google.container.v1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; + */ + public Builder setAdvancedDatapathObservabilityConfig( + com.google.container.v1.AdvancedDatapathObservabilityConfig.Builder builderForValue) { + if (advancedDatapathObservabilityConfigBuilder_ == null) { + advancedDatapathObservabilityConfig_ = builderForValue.build(); + } else { + advancedDatapathObservabilityConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Configuration of Advanced Datapath Observability features.
+     * 
+ * + * .google.container.v1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; + */ + public Builder mergeAdvancedDatapathObservabilityConfig(com.google.container.v1.AdvancedDatapathObservabilityConfig value) { + if (advancedDatapathObservabilityConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + advancedDatapathObservabilityConfig_ != null && + advancedDatapathObservabilityConfig_ != com.google.container.v1.AdvancedDatapathObservabilityConfig.getDefaultInstance()) { + getAdvancedDatapathObservabilityConfigBuilder().mergeFrom(value); + } else { + advancedDatapathObservabilityConfig_ = value; + } + } else { + advancedDatapathObservabilityConfigBuilder_.mergeFrom(value); + } + if (advancedDatapathObservabilityConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+     * Configuration of Advanced Datapath Observability features.
+     * 
+ * + * .google.container.v1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; + */ + public Builder clearAdvancedDatapathObservabilityConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + advancedDatapathObservabilityConfig_ = null; + if (advancedDatapathObservabilityConfigBuilder_ != null) { + advancedDatapathObservabilityConfigBuilder_.dispose(); + advancedDatapathObservabilityConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration of Advanced Datapath Observability features.
+     * 
+ * + * .google.container.v1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; + */ + public com.google.container.v1.AdvancedDatapathObservabilityConfig.Builder getAdvancedDatapathObservabilityConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getAdvancedDatapathObservabilityConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration of Advanced Datapath Observability features.
+     * 
+ * + * .google.container.v1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; + */ + public com.google.container.v1.AdvancedDatapathObservabilityConfigOrBuilder getAdvancedDatapathObservabilityConfigOrBuilder() { + if (advancedDatapathObservabilityConfigBuilder_ != null) { + return advancedDatapathObservabilityConfigBuilder_.getMessageOrBuilder(); + } else { + return advancedDatapathObservabilityConfig_ == null ? + com.google.container.v1.AdvancedDatapathObservabilityConfig.getDefaultInstance() : advancedDatapathObservabilityConfig_; + } + } + /** + *
+     * Configuration of Advanced Datapath Observability features.
+     * 
+ * + * .google.container.v1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AdvancedDatapathObservabilityConfig, com.google.container.v1.AdvancedDatapathObservabilityConfig.Builder, com.google.container.v1.AdvancedDatapathObservabilityConfigOrBuilder> + getAdvancedDatapathObservabilityConfigFieldBuilder() { + if (advancedDatapathObservabilityConfigBuilder_ == null) { + advancedDatapathObservabilityConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AdvancedDatapathObservabilityConfig, com.google.container.v1.AdvancedDatapathObservabilityConfig.Builder, com.google.container.v1.AdvancedDatapathObservabilityConfigOrBuilder>( + getAdvancedDatapathObservabilityConfig(), + getParentForChildren(), + isClean()); + advancedDatapathObservabilityConfig_ = null; + } + return advancedDatapathObservabilityConfigBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.MonitoringConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.MonitoringConfig) + private static final com.google.container.v1.MonitoringConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.MonitoringConfig(); + } + + public static com.google.container.v1.MonitoringConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MonitoringConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.MonitoringConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringConfigOrBuilder.java new file mode 100644 index 000000000000..bbf292a58f75 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringConfigOrBuilder.java @@ -0,0 +1,94 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface MonitoringConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.MonitoringConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Monitoring components configuration
+   * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + * @return Whether the componentConfig field is set. + */ + boolean hasComponentConfig(); + /** + *
+   * Monitoring components configuration
+   * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + * @return The componentConfig. + */ + com.google.container.v1.MonitoringComponentConfig getComponentConfig(); + /** + *
+   * Monitoring components configuration
+   * 
+ * + * .google.container.v1.MonitoringComponentConfig component_config = 1; + */ + com.google.container.v1.MonitoringComponentConfigOrBuilder getComponentConfigOrBuilder(); + + /** + *
+   * Enable Google Cloud Managed Service for Prometheus
+   * in the cluster.
+   * 
+ * + * .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + * @return Whether the managedPrometheusConfig field is set. + */ + boolean hasManagedPrometheusConfig(); + /** + *
+   * Enable Google Cloud Managed Service for Prometheus
+   * in the cluster.
+   * 
+ * + * .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + * @return The managedPrometheusConfig. + */ + com.google.container.v1.ManagedPrometheusConfig getManagedPrometheusConfig(); + /** + *
+   * Enable Google Cloud Managed Service for Prometheus
+   * in the cluster.
+   * 
+ * + * .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + com.google.container.v1.ManagedPrometheusConfigOrBuilder getManagedPrometheusConfigOrBuilder(); + + /** + *
+   * Configuration of Advanced Datapath Observability features.
+   * 
+ * + * .google.container.v1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; + * @return Whether the advancedDatapathObservabilityConfig field is set. + */ + boolean hasAdvancedDatapathObservabilityConfig(); + /** + *
+   * Configuration of Advanced Datapath Observability features.
+   * 
+ * + * .google.container.v1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; + * @return The advancedDatapathObservabilityConfig. + */ + com.google.container.v1.AdvancedDatapathObservabilityConfig getAdvancedDatapathObservabilityConfig(); + /** + *
+   * Configuration of Advanced Datapath Observability features.
+   * 
+ * + * .google.container.v1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; + */ + com.google.container.v1.AdvancedDatapathObservabilityConfigOrBuilder getAdvancedDatapathObservabilityConfigOrBuilder(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java new file mode 100644 index 000000000000..bbcaa96a8f8e --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java @@ -0,0 +1,3519 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * NetworkConfig reports the relative names of network & subnetwork.
+ * 
+ * + * Protobuf type {@code google.container.v1.NetworkConfig} + */ +public final class NetworkConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.NetworkConfig) + NetworkConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use NetworkConfig.newBuilder() to construct. + private NetworkConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NetworkConfig() { + network_ = ""; + subnetwork_ = ""; + datapathProvider_ = 0; + privateIpv6GoogleAccess_ = 0; + inTransitEncryptionConfig_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NetworkConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NetworkConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NetworkConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NetworkConfig.class, com.google.container.v1.NetworkConfig.Builder.class); + } + + public interface ClusterNetworkPerformanceConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Specifies the total network bandwidth tier for NodePools in the cluster.
+     * 
+ * + * optional .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return Whether the totalEgressBandwidthTier field is set. + */ + boolean hasTotalEgressBandwidthTier(); + /** + *
+     * Specifies the total network bandwidth tier for NodePools in the cluster.
+     * 
+ * + * optional .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return The enum numeric value on the wire for totalEgressBandwidthTier. + */ + int getTotalEgressBandwidthTierValue(); + /** + *
+     * Specifies the total network bandwidth tier for NodePools in the cluster.
+     * 
+ * + * optional .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return The totalEgressBandwidthTier. + */ + com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier getTotalEgressBandwidthTier(); + } + /** + *
+   * Configuration of network bandwidth tiers
+   * 
+ * + * Protobuf type {@code google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig} + */ + public static final class ClusterNetworkPerformanceConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig) + ClusterNetworkPerformanceConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClusterNetworkPerformanceConfig.newBuilder() to construct. + private ClusterNetworkPerformanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ClusterNetworkPerformanceConfig() { + totalEgressBandwidthTier_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClusterNetworkPerformanceConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NetworkConfig_ClusterNetworkPerformanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NetworkConfig_ClusterNetworkPerformanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.class, com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder.class); + } + + /** + *
+     * Node network tier
+     * 
+ * + * Protobuf enum {@code google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier} + */ + public enum Tier + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * Default value
+       * 
+ * + * TIER_UNSPECIFIED = 0; + */ + TIER_UNSPECIFIED(0), + /** + *
+       * Higher bandwidth, actual values based on VM size.
+       * 
+ * + * TIER_1 = 1; + */ + TIER_1(1), + UNRECOGNIZED(-1), + ; + + /** + *
+       * Default value
+       * 
+ * + * TIER_UNSPECIFIED = 0; + */ + public static final int TIER_UNSPECIFIED_VALUE = 0; + /** + *
+       * Higher bandwidth, actual values based on VM size.
+       * 
+ * + * TIER_1 = 1; + */ + public static final int TIER_1_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 Tier 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 Tier forNumber(int value) { + switch (value) { + case 0: return TIER_UNSPECIFIED; + case 1: return TIER_1; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Tier> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Tier findValueByNumber(int number) { + return Tier.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final Tier[] VALUES = values(); + + public static Tier 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 Tier(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier) + } + + private int bitField0_; + public static final int TOTAL_EGRESS_BANDWIDTH_TIER_FIELD_NUMBER = 1; + private int totalEgressBandwidthTier_ = 0; + /** + *
+     * Specifies the total network bandwidth tier for NodePools in the cluster.
+     * 
+ * + * optional .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return Whether the totalEgressBandwidthTier field is set. + */ + @java.lang.Override public boolean hasTotalEgressBandwidthTier() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Specifies the total network bandwidth tier for NodePools in the cluster.
+     * 
+ * + * optional .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return The enum numeric value on the wire for totalEgressBandwidthTier. + */ + @java.lang.Override public int getTotalEgressBandwidthTierValue() { + return totalEgressBandwidthTier_; + } + /** + *
+     * Specifies the total network bandwidth tier for NodePools in the cluster.
+     * 
+ * + * optional .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return The totalEgressBandwidthTier. + */ + @java.lang.Override public com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier getTotalEgressBandwidthTier() { + com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier result = com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier.forNumber(totalEgressBandwidthTier_); + return result == null ? com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier.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 (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, totalEgressBandwidthTier_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, totalEgressBandwidthTier_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig)) { + return super.equals(obj); + } + com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig other = (com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig) obj; + + if (hasTotalEgressBandwidthTier() != other.hasTotalEgressBandwidthTier()) return false; + if (hasTotalEgressBandwidthTier()) { + if (totalEgressBandwidthTier_ != other.totalEgressBandwidthTier_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTotalEgressBandwidthTier()) { + hash = (37 * hash) + TOTAL_EGRESS_BANDWIDTH_TIER_FIELD_NUMBER; + hash = (53 * hash) + totalEgressBandwidthTier_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new 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 network bandwidth tiers
+     * 
+ * + * Protobuf type {@code google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig) + com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NetworkConfig_ClusterNetworkPerformanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NetworkConfig_ClusterNetworkPerformanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.class, com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder.class); + } + + // Construct using com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + totalEgressBandwidthTier_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NetworkConfig_ClusterNetworkPerformanceConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig getDefaultInstanceForType() { + return com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig build() { + com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig buildPartial() { + com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig result = new com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.totalEgressBandwidthTier_ = totalEgressBandwidthTier_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig) { + return mergeFrom((com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig other) { + if (other == com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.getDefaultInstance()) return this; + if (other.hasTotalEgressBandwidthTier()) { + setTotalEgressBandwidthTier(other.getTotalEgressBandwidthTier()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + totalEgressBandwidthTier_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int totalEgressBandwidthTier_ = 0; + /** + *
+       * Specifies the total network bandwidth tier for NodePools in the cluster.
+       * 
+ * + * optional .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return Whether the totalEgressBandwidthTier field is set. + */ + @java.lang.Override public boolean hasTotalEgressBandwidthTier() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * Specifies the total network bandwidth tier for NodePools in the cluster.
+       * 
+ * + * optional .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return The enum numeric value on the wire for totalEgressBandwidthTier. + */ + @java.lang.Override public int getTotalEgressBandwidthTierValue() { + return totalEgressBandwidthTier_; + } + /** + *
+       * Specifies the total network bandwidth tier for NodePools in the cluster.
+       * 
+ * + * optional .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @param value The enum numeric value on the wire for totalEgressBandwidthTier to set. + * @return This builder for chaining. + */ + public Builder setTotalEgressBandwidthTierValue(int value) { + totalEgressBandwidthTier_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Specifies the total network bandwidth tier for NodePools in the cluster.
+       * 
+ * + * optional .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return The totalEgressBandwidthTier. + */ + @java.lang.Override + public com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier getTotalEgressBandwidthTier() { + com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier result = com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier.forNumber(totalEgressBandwidthTier_); + return result == null ? com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier.UNRECOGNIZED : result; + } + /** + *
+       * Specifies the total network bandwidth tier for NodePools in the cluster.
+       * 
+ * + * optional .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @param value The totalEgressBandwidthTier to set. + * @return This builder for chaining. + */ + public Builder setTotalEgressBandwidthTier(com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + totalEgressBandwidthTier_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Specifies the total network bandwidth tier for NodePools in the cluster.
+       * 
+ * + * optional .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return This builder for chaining. + */ + public Builder clearTotalEgressBandwidthTier() { + bitField0_ = (bitField0_ & ~0x00000001); + totalEgressBandwidthTier_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig) + private static final com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig(); + } + + public static com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterNetworkPerformanceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int NETWORK_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object network_ = ""; + /** + *
+   * Output only. The relative name of the Google Compute Engine
+   * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+   * to which the cluster is connected. Example:
+   * projects/my-project/global/networks/my-network
+   * 
+ * + * 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.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+   * to which the cluster is connected. Example:
+   * projects/my-project/global/networks/my-network
+   * 
+ * + * string network = 1; + * @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; + @SuppressWarnings("serial") + 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_ = false; + /** + *
+   * 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.v1.DefaultSnatStatus defaultSnatStatus_; + /** + *
+   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+   * will be disabled when default_snat_status is disabled. When disabled is set
+   * to false, default IP masquerade rules will be applied to the nodes to
+   * prevent sNAT on cluster internal traffic.
+   * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + * @return Whether the defaultSnatStatus field is set. + */ + @java.lang.Override + public boolean hasDefaultSnatStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+   * will be disabled when default_snat_status is disabled. When disabled is set
+   * to false, default IP masquerade rules will be applied to the nodes to
+   * prevent sNAT on cluster internal traffic.
+   * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + * @return The defaultSnatStatus. + */ + @java.lang.Override + public com.google.container.v1.DefaultSnatStatus getDefaultSnatStatus() { + return defaultSnatStatus_ == null ? com.google.container.v1.DefaultSnatStatus.getDefaultInstance() : defaultSnatStatus_; + } + /** + *
+   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+   * will be disabled when default_snat_status is disabled. When disabled is set
+   * to false, default IP masquerade rules will be applied to the nodes to
+   * prevent sNAT on cluster internal traffic.
+   * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + */ + @java.lang.Override + public com.google.container.v1.DefaultSnatStatusOrBuilder getDefaultSnatStatusOrBuilder() { + return defaultSnatStatus_ == null ? com.google.container.v1.DefaultSnatStatus.getDefaultInstance() : defaultSnatStatus_; + } + + public static final int ENABLE_L4ILB_SUBSETTING_FIELD_NUMBER = 10; + private boolean enableL4IlbSubsetting_ = false; + /** + *
+   * Whether L4ILB Subsetting is enabled for this cluster.
+   * 
+ * + * bool enable_l4ilb_subsetting = 10; + * @return The enableL4ilbSubsetting. + */ + @java.lang.Override + public boolean getEnableL4IlbSubsetting() { + return enableL4IlbSubsetting_; + } + + public static final int DATAPATH_PROVIDER_FIELD_NUMBER = 11; + private int datapathProvider_ = 0; + /** + *
+   * The desired datapath provider for this cluster. By default, uses the
+   * IPTables-based kube-proxy implementation.
+   * 
+ * + * .google.container.v1.DatapathProvider datapath_provider = 11; + * @return The enum numeric value on the wire for datapathProvider. + */ + @java.lang.Override public int getDatapathProviderValue() { + return datapathProvider_; + } + /** + *
+   * The desired datapath provider for this cluster. By default, uses the
+   * IPTables-based kube-proxy implementation.
+   * 
+ * + * .google.container.v1.DatapathProvider datapath_provider = 11; + * @return The datapathProvider. + */ + @java.lang.Override public com.google.container.v1.DatapathProvider getDatapathProvider() { + com.google.container.v1.DatapathProvider result = com.google.container.v1.DatapathProvider.forNumber(datapathProvider_); + return result == null ? com.google.container.v1.DatapathProvider.UNRECOGNIZED : result; + } + + public static final int PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER = 12; + private int privateIpv6GoogleAccess_ = 0; + /** + *
+   * The desired state of IPv6 connectivity to Google Services.
+   * By default, no private IPv6 access to or from Google Services (all access
+   * will be via IPv4)
+   * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + * @return The enum numeric value on the wire for privateIpv6GoogleAccess. + */ + @java.lang.Override public int getPrivateIpv6GoogleAccessValue() { + return privateIpv6GoogleAccess_; + } + /** + *
+   * The desired state of IPv6 connectivity to Google Services.
+   * By default, no private IPv6 access to or from Google Services (all access
+   * will be via IPv4)
+   * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + * @return The privateIpv6GoogleAccess. + */ + @java.lang.Override public com.google.container.v1.PrivateIPv6GoogleAccess getPrivateIpv6GoogleAccess() { + com.google.container.v1.PrivateIPv6GoogleAccess result = com.google.container.v1.PrivateIPv6GoogleAccess.forNumber(privateIpv6GoogleAccess_); + return result == null ? com.google.container.v1.PrivateIPv6GoogleAccess.UNRECOGNIZED : result; + } + + public static final int DNS_CONFIG_FIELD_NUMBER = 13; + private com.google.container.v1.DNSConfig dnsConfig_; + /** + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + * @return Whether the dnsConfig field is set. + */ + @java.lang.Override + public boolean hasDnsConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + * @return The dnsConfig. + */ + @java.lang.Override + public com.google.container.v1.DNSConfig getDnsConfig() { + return dnsConfig_ == null ? com.google.container.v1.DNSConfig.getDefaultInstance() : dnsConfig_; + } + /** + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + */ + @java.lang.Override + public com.google.container.v1.DNSConfigOrBuilder getDnsConfigOrBuilder() { + return dnsConfig_ == null ? com.google.container.v1.DNSConfig.getDefaultInstance() : dnsConfig_; + } + + public static final int SERVICE_EXTERNAL_IPS_CONFIG_FIELD_NUMBER = 15; + private com.google.container.v1.ServiceExternalIPsConfig serviceExternalIpsConfig_; + /** + *
+   * ServiceExternalIPsConfig specifies if services with externalIPs field are
+   * blocked or not.
+   * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + * @return Whether the serviceExternalIpsConfig field is set. + */ + @java.lang.Override + public boolean hasServiceExternalIpsConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+   * ServiceExternalIPsConfig specifies if services with externalIPs field are
+   * blocked or not.
+   * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + * @return The serviceExternalIpsConfig. + */ + @java.lang.Override + public com.google.container.v1.ServiceExternalIPsConfig getServiceExternalIpsConfig() { + return serviceExternalIpsConfig_ == null ? com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance() : serviceExternalIpsConfig_; + } + /** + *
+   * ServiceExternalIPsConfig specifies if services with externalIPs field are
+   * blocked or not.
+   * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + */ + @java.lang.Override + public com.google.container.v1.ServiceExternalIPsConfigOrBuilder getServiceExternalIpsConfigOrBuilder() { + return serviceExternalIpsConfig_ == null ? com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance() : serviceExternalIpsConfig_; + } + + public static final int GATEWAY_API_CONFIG_FIELD_NUMBER = 16; + private com.google.container.v1.GatewayAPIConfig gatewayApiConfig_; + /** + *
+   * GatewayAPIConfig contains the desired config of Gateway API on this
+   * cluster.
+   * 
+ * + * .google.container.v1.GatewayAPIConfig gateway_api_config = 16; + * @return Whether the gatewayApiConfig field is set. + */ + @java.lang.Override + public boolean hasGatewayApiConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+   * GatewayAPIConfig contains the desired config of Gateway API on this
+   * cluster.
+   * 
+ * + * .google.container.v1.GatewayAPIConfig gateway_api_config = 16; + * @return The gatewayApiConfig. + */ + @java.lang.Override + public com.google.container.v1.GatewayAPIConfig getGatewayApiConfig() { + return gatewayApiConfig_ == null ? com.google.container.v1.GatewayAPIConfig.getDefaultInstance() : gatewayApiConfig_; + } + /** + *
+   * GatewayAPIConfig contains the desired config of Gateway API on this
+   * cluster.
+   * 
+ * + * .google.container.v1.GatewayAPIConfig gateway_api_config = 16; + */ + @java.lang.Override + public com.google.container.v1.GatewayAPIConfigOrBuilder getGatewayApiConfigOrBuilder() { + return gatewayApiConfig_ == null ? com.google.container.v1.GatewayAPIConfig.getDefaultInstance() : gatewayApiConfig_; + } + + public static final int ENABLE_MULTI_NETWORKING_FIELD_NUMBER = 17; + private boolean enableMultiNetworking_ = false; + /** + *
+   * Whether multi-networking is enabled for this cluster.
+   * 
+ * + * bool enable_multi_networking = 17; + * @return The enableMultiNetworking. + */ + @java.lang.Override + public boolean getEnableMultiNetworking() { + return enableMultiNetworking_; + } + + public static final int NETWORK_PERFORMANCE_CONFIG_FIELD_NUMBER = 18; + private com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig networkPerformanceConfig_; + /** + *
+   * Network bandwidth tier configuration.
+   * 
+ * + * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; + * @return Whether the networkPerformanceConfig field is set. + */ + @java.lang.Override + public boolean hasNetworkPerformanceConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+   * Network bandwidth tier configuration.
+   * 
+ * + * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; + * @return The networkPerformanceConfig. + */ + @java.lang.Override + public com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig getNetworkPerformanceConfig() { + return networkPerformanceConfig_ == null ? com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.getDefaultInstance() : networkPerformanceConfig_; + } + /** + *
+   * Network bandwidth tier configuration.
+   * 
+ * + * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; + */ + @java.lang.Override + public com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder getNetworkPerformanceConfigOrBuilder() { + return networkPerformanceConfig_ == null ? com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.getDefaultInstance() : networkPerformanceConfig_; + } + + public static final int ENABLE_FQDN_NETWORK_POLICY_FIELD_NUMBER = 19; + private boolean enableFqdnNetworkPolicy_ = false; + /** + *
+   * Whether FQDN Network Policy is enabled on this cluster.
+   * 
+ * + * optional bool enable_fqdn_network_policy = 19; + * @return Whether the enableFqdnNetworkPolicy field is set. + */ + @java.lang.Override + public boolean hasEnableFqdnNetworkPolicy() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+   * Whether FQDN Network Policy is enabled on this cluster.
+   * 
+ * + * optional bool enable_fqdn_network_policy = 19; + * @return The enableFqdnNetworkPolicy. + */ + @java.lang.Override + public boolean getEnableFqdnNetworkPolicy() { + return enableFqdnNetworkPolicy_; + } + + public static final int IN_TRANSIT_ENCRYPTION_CONFIG_FIELD_NUMBER = 20; + private int inTransitEncryptionConfig_ = 0; + /** + *
+   * Specify the details of in-transit encryption.
+   * 
+ * + * optional .google.container.v1.InTransitEncryptionConfig in_transit_encryption_config = 20; + * @return Whether the inTransitEncryptionConfig field is set. + */ + @java.lang.Override public boolean hasInTransitEncryptionConfig() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+   * Specify the details of in-transit encryption.
+   * 
+ * + * optional .google.container.v1.InTransitEncryptionConfig in_transit_encryption_config = 20; + * @return The enum numeric value on the wire for inTransitEncryptionConfig. + */ + @java.lang.Override public int getInTransitEncryptionConfigValue() { + return inTransitEncryptionConfig_; + } + /** + *
+   * Specify the details of in-transit encryption.
+   * 
+ * + * optional .google.container.v1.InTransitEncryptionConfig in_transit_encryption_config = 20; + * @return The inTransitEncryptionConfig. + */ + @java.lang.Override public com.google.container.v1.InTransitEncryptionConfig getInTransitEncryptionConfig() { + com.google.container.v1.InTransitEncryptionConfig result = com.google.container.v1.InTransitEncryptionConfig.forNumber(inTransitEncryptionConfig_); + return result == null ? com.google.container.v1.InTransitEncryptionConfig.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subnetwork_); + } + if (enableIntraNodeVisibility_ != false) { + output.writeBool(5, enableIntraNodeVisibility_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(7, getDefaultSnatStatus()); + } + if (enableL4IlbSubsetting_ != false) { + output.writeBool(10, enableL4IlbSubsetting_); + } + if (datapathProvider_ != com.google.container.v1.DatapathProvider.DATAPATH_PROVIDER_UNSPECIFIED.getNumber()) { + output.writeEnum(11, datapathProvider_); + } + if (privateIpv6GoogleAccess_ != com.google.container.v1.PrivateIPv6GoogleAccess.PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED.getNumber()) { + output.writeEnum(12, privateIpv6GoogleAccess_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(13, getDnsConfig()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(15, getServiceExternalIpsConfig()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(16, getGatewayApiConfig()); + } + if (enableMultiNetworking_ != false) { + output.writeBool(17, enableMultiNetworking_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(18, getNetworkPerformanceConfig()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeBool(19, enableFqdnNetworkPolicy_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeEnum(20, inTransitEncryptionConfig_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subnetwork_); + } + if (enableIntraNodeVisibility_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, enableIntraNodeVisibility_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getDefaultSnatStatus()); + } + if (enableL4IlbSubsetting_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(10, enableL4IlbSubsetting_); + } + if (datapathProvider_ != com.google.container.v1.DatapathProvider.DATAPATH_PROVIDER_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(11, datapathProvider_); + } + if (privateIpv6GoogleAccess_ != com.google.container.v1.PrivateIPv6GoogleAccess.PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(12, privateIpv6GoogleAccess_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getDnsConfig()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, getServiceExternalIpsConfig()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getGatewayApiConfig()); + } + if (enableMultiNetworking_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(17, enableMultiNetworking_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, getNetworkPerformanceConfig()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(19, enableFqdnNetworkPolicy_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(20, inTransitEncryptionConfig_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.NetworkConfig)) { + return super.equals(obj); + } + com.google.container.v1.NetworkConfig other = (com.google.container.v1.NetworkConfig) obj; + + 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 (getEnableL4IlbSubsetting() + != other.getEnableL4IlbSubsetting()) return false; + if (datapathProvider_ != other.datapathProvider_) return false; + if (privateIpv6GoogleAccess_ != other.privateIpv6GoogleAccess_) return false; + if (hasDnsConfig() != other.hasDnsConfig()) return false; + if (hasDnsConfig()) { + if (!getDnsConfig() + .equals(other.getDnsConfig())) return false; + } + if (hasServiceExternalIpsConfig() != other.hasServiceExternalIpsConfig()) return false; + if (hasServiceExternalIpsConfig()) { + if (!getServiceExternalIpsConfig() + .equals(other.getServiceExternalIpsConfig())) return false; + } + if (hasGatewayApiConfig() != other.hasGatewayApiConfig()) return false; + if (hasGatewayApiConfig()) { + if (!getGatewayApiConfig() + .equals(other.getGatewayApiConfig())) return false; + } + if (getEnableMultiNetworking() + != other.getEnableMultiNetworking()) return false; + if (hasNetworkPerformanceConfig() != other.hasNetworkPerformanceConfig()) return false; + if (hasNetworkPerformanceConfig()) { + if (!getNetworkPerformanceConfig() + .equals(other.getNetworkPerformanceConfig())) return false; + } + if (hasEnableFqdnNetworkPolicy() != other.hasEnableFqdnNetworkPolicy()) return false; + if (hasEnableFqdnNetworkPolicy()) { + if (getEnableFqdnNetworkPolicy() + != other.getEnableFqdnNetworkPolicy()) return false; + } + if (hasInTransitEncryptionConfig() != other.hasInTransitEncryptionConfig()) return false; + if (hasInTransitEncryptionConfig()) { + if (inTransitEncryptionConfig_ != other.inTransitEncryptionConfig_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ENABLE_L4ILB_SUBSETTING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableL4IlbSubsetting()); + hash = (37 * hash) + DATAPATH_PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + datapathProvider_; + hash = (37 * hash) + PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER; + hash = (53 * hash) + privateIpv6GoogleAccess_; + if (hasDnsConfig()) { + hash = (37 * hash) + DNS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDnsConfig().hashCode(); + } + if (hasServiceExternalIpsConfig()) { + hash = (37 * hash) + SERVICE_EXTERNAL_IPS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getServiceExternalIpsConfig().hashCode(); + } + if (hasGatewayApiConfig()) { + hash = (37 * hash) + GATEWAY_API_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGatewayApiConfig().hashCode(); + } + hash = (37 * hash) + ENABLE_MULTI_NETWORKING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableMultiNetworking()); + if (hasNetworkPerformanceConfig()) { + hash = (37 * hash) + NETWORK_PERFORMANCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNetworkPerformanceConfig().hashCode(); + } + if (hasEnableFqdnNetworkPolicy()) { + hash = (37 * hash) + ENABLE_FQDN_NETWORK_POLICY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableFqdnNetworkPolicy()); + } + if (hasInTransitEncryptionConfig()) { + hash = (37 * hash) + IN_TRANSIT_ENCRYPTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + inTransitEncryptionConfig_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.NetworkConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NetworkConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NetworkConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NetworkConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NetworkConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NetworkConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NetworkConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NetworkConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.NetworkConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.NetworkConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.NetworkConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NetworkConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.NetworkConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * NetworkConfig reports the relative names of network & subnetwork.
+   * 
+ * + * Protobuf type {@code google.container.v1.NetworkConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.NetworkConfig) + com.google.container.v1.NetworkConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NetworkConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NetworkConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NetworkConfig.class, com.google.container.v1.NetworkConfig.Builder.class); + } + + // Construct using com.google.container.v1.NetworkConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getDefaultSnatStatusFieldBuilder(); + getDnsConfigFieldBuilder(); + getServiceExternalIpsConfigFieldBuilder(); + getGatewayApiConfigFieldBuilder(); + getNetworkPerformanceConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + network_ = ""; + subnetwork_ = ""; + enableIntraNodeVisibility_ = false; + defaultSnatStatus_ = null; + if (defaultSnatStatusBuilder_ != null) { + defaultSnatStatusBuilder_.dispose(); + defaultSnatStatusBuilder_ = null; + } + enableL4IlbSubsetting_ = false; + datapathProvider_ = 0; + privateIpv6GoogleAccess_ = 0; + dnsConfig_ = null; + if (dnsConfigBuilder_ != null) { + dnsConfigBuilder_.dispose(); + dnsConfigBuilder_ = null; + } + serviceExternalIpsConfig_ = null; + if (serviceExternalIpsConfigBuilder_ != null) { + serviceExternalIpsConfigBuilder_.dispose(); + serviceExternalIpsConfigBuilder_ = null; + } + gatewayApiConfig_ = null; + if (gatewayApiConfigBuilder_ != null) { + gatewayApiConfigBuilder_.dispose(); + gatewayApiConfigBuilder_ = null; + } + enableMultiNetworking_ = false; + networkPerformanceConfig_ = null; + if (networkPerformanceConfigBuilder_ != null) { + networkPerformanceConfigBuilder_.dispose(); + networkPerformanceConfigBuilder_ = null; + } + enableFqdnNetworkPolicy_ = false; + inTransitEncryptionConfig_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NetworkConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NetworkConfig getDefaultInstanceForType() { + return com.google.container.v1.NetworkConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NetworkConfig build() { + com.google.container.v1.NetworkConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NetworkConfig buildPartial() { + com.google.container.v1.NetworkConfig result = new com.google.container.v1.NetworkConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.NetworkConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.network_ = network_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.subnetwork_ = subnetwork_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.enableIntraNodeVisibility_ = enableIntraNodeVisibility_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.defaultSnatStatus_ = defaultSnatStatusBuilder_ == null + ? defaultSnatStatus_ + : defaultSnatStatusBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.enableL4IlbSubsetting_ = enableL4IlbSubsetting_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.datapathProvider_ = datapathProvider_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.privateIpv6GoogleAccess_ = privateIpv6GoogleAccess_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.dnsConfig_ = dnsConfigBuilder_ == null + ? dnsConfig_ + : dnsConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.serviceExternalIpsConfig_ = serviceExternalIpsConfigBuilder_ == null + ? serviceExternalIpsConfig_ + : serviceExternalIpsConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.gatewayApiConfig_ = gatewayApiConfigBuilder_ == null + ? gatewayApiConfig_ + : gatewayApiConfigBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.enableMultiNetworking_ = enableMultiNetworking_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.networkPerformanceConfig_ = networkPerformanceConfigBuilder_ == null + ? networkPerformanceConfig_ + : networkPerformanceConfigBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.enableFqdnNetworkPolicy_ = enableFqdnNetworkPolicy_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.inTransitEncryptionConfig_ = inTransitEncryptionConfig_; + to_bitField0_ |= 0x00000040; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.NetworkConfig) { + return mergeFrom((com.google.container.v1.NetworkConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NetworkConfig other) { + if (other == com.google.container.v1.NetworkConfig.getDefaultInstance()) return this; + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSubnetwork().isEmpty()) { + subnetwork_ = other.subnetwork_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getEnableIntraNodeVisibility() != false) { + setEnableIntraNodeVisibility(other.getEnableIntraNodeVisibility()); + } + if (other.hasDefaultSnatStatus()) { + mergeDefaultSnatStatus(other.getDefaultSnatStatus()); + } + if (other.getEnableL4IlbSubsetting() != false) { + setEnableL4IlbSubsetting(other.getEnableL4IlbSubsetting()); + } + if (other.datapathProvider_ != 0) { + setDatapathProviderValue(other.getDatapathProviderValue()); + } + if (other.privateIpv6GoogleAccess_ != 0) { + setPrivateIpv6GoogleAccessValue(other.getPrivateIpv6GoogleAccessValue()); + } + if (other.hasDnsConfig()) { + mergeDnsConfig(other.getDnsConfig()); + } + if (other.hasServiceExternalIpsConfig()) { + mergeServiceExternalIpsConfig(other.getServiceExternalIpsConfig()); + } + if (other.hasGatewayApiConfig()) { + mergeGatewayApiConfig(other.getGatewayApiConfig()); + } + if (other.getEnableMultiNetworking() != false) { + setEnableMultiNetworking(other.getEnableMultiNetworking()); + } + if (other.hasNetworkPerformanceConfig()) { + mergeNetworkPerformanceConfig(other.getNetworkPerformanceConfig()); + } + if (other.hasEnableFqdnNetworkPolicy()) { + setEnableFqdnNetworkPolicy(other.getEnableFqdnNetworkPolicy()); + } + if (other.hasInTransitEncryptionConfig()) { + setInTransitEncryptionConfig(other.getInTransitEncryptionConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + network_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + subnetwork_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 40: { + enableIntraNodeVisibility_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 40 + case 58: { + input.readMessage( + getDefaultSnatStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 58 + case 80: { + enableL4IlbSubsetting_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 80 + case 88: { + datapathProvider_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 88 + case 96: { + privateIpv6GoogleAccess_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 96 + case 106: { + input.readMessage( + getDnsConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 106 + case 122: { + input.readMessage( + getServiceExternalIpsConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 122 + case 130: { + input.readMessage( + getGatewayApiConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 130 + case 136: { + enableMultiNetworking_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 136 + case 146: { + input.readMessage( + getNetworkPerformanceConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 146 + case 152: { + enableFqdnNetworkPolicy_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 152 + case 160: { + inTransitEncryptionConfig_ = input.readEnum(); + bitField0_ |= 0x00002000; + break; + } // case 160 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object network_ = ""; + /** + *
+     * Output only. The relative name of the Google Compute Engine
+     * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the cluster is connected. Example:
+     * projects/my-project/global/networks/my-network
+     * 
+ * + * 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.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the cluster is connected. Example:
+     * projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 1; + * @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.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the cluster is connected. Example:
+     * projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 1; + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Output only. The relative name of the Google Compute Engine
+     * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the cluster is connected. Example:
+     * projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 1; + * @return This builder for chaining. + */ + public Builder clearNetwork() { + network_ = getDefaultInstance().getNetwork(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Output only. The relative name of the Google Compute Engine
+     * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * to which the cluster is connected. Example:
+     * projects/my-project/global/networks/my-network
+     * 
+ * + * 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; + bitField0_ |= 0x00000001; + 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; + bitField0_ |= 0x00000002; + 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(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + 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; + bitField0_ |= 0x00000004; + 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() { + bitField0_ = (bitField0_ & ~0x00000004); + enableIntraNodeVisibility_ = false; + onChanged(); + return this; + } + + private com.google.container.v1.DefaultSnatStatus defaultSnatStatus_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DefaultSnatStatus, com.google.container.v1.DefaultSnatStatus.Builder, com.google.container.v1.DefaultSnatStatusOrBuilder> defaultSnatStatusBuilder_; + /** + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + * @return Whether the defaultSnatStatus field is set. + */ + public boolean hasDefaultSnatStatus() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + * @return The defaultSnatStatus. + */ + public com.google.container.v1.DefaultSnatStatus getDefaultSnatStatus() { + if (defaultSnatStatusBuilder_ == null) { + return defaultSnatStatus_ == null ? com.google.container.v1.DefaultSnatStatus.getDefaultInstance() : defaultSnatStatus_; + } else { + return defaultSnatStatusBuilder_.getMessage(); + } + } + /** + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + */ + public Builder setDefaultSnatStatus(com.google.container.v1.DefaultSnatStatus value) { + if (defaultSnatStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultSnatStatus_ = value; + } else { + defaultSnatStatusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + */ + public Builder setDefaultSnatStatus( + com.google.container.v1.DefaultSnatStatus.Builder builderForValue) { + if (defaultSnatStatusBuilder_ == null) { + defaultSnatStatus_ = builderForValue.build(); + } else { + defaultSnatStatusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + */ + public Builder mergeDefaultSnatStatus(com.google.container.v1.DefaultSnatStatus value) { + if (defaultSnatStatusBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + defaultSnatStatus_ != null && + defaultSnatStatus_ != com.google.container.v1.DefaultSnatStatus.getDefaultInstance()) { + getDefaultSnatStatusBuilder().mergeFrom(value); + } else { + defaultSnatStatus_ = value; + } + } else { + defaultSnatStatusBuilder_.mergeFrom(value); + } + if (defaultSnatStatus_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + */ + public Builder clearDefaultSnatStatus() { + bitField0_ = (bitField0_ & ~0x00000008); + defaultSnatStatus_ = null; + if (defaultSnatStatusBuilder_ != null) { + defaultSnatStatusBuilder_.dispose(); + defaultSnatStatusBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + */ + public com.google.container.v1.DefaultSnatStatus.Builder getDefaultSnatStatusBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getDefaultSnatStatusFieldBuilder().getBuilder(); + } + /** + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + */ + public com.google.container.v1.DefaultSnatStatusOrBuilder getDefaultSnatStatusOrBuilder() { + if (defaultSnatStatusBuilder_ != null) { + return defaultSnatStatusBuilder_.getMessageOrBuilder(); + } else { + return defaultSnatStatus_ == null ? + com.google.container.v1.DefaultSnatStatus.getDefaultInstance() : defaultSnatStatus_; + } + } + /** + *
+     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+     * will be disabled when default_snat_status is disabled. When disabled is set
+     * to false, default IP masquerade rules will be applied to the nodes to
+     * prevent sNAT on cluster internal traffic.
+     * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DefaultSnatStatus, com.google.container.v1.DefaultSnatStatus.Builder, com.google.container.v1.DefaultSnatStatusOrBuilder> + getDefaultSnatStatusFieldBuilder() { + if (defaultSnatStatusBuilder_ == null) { + defaultSnatStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DefaultSnatStatus, com.google.container.v1.DefaultSnatStatus.Builder, com.google.container.v1.DefaultSnatStatusOrBuilder>( + getDefaultSnatStatus(), + getParentForChildren(), + isClean()); + defaultSnatStatus_ = null; + } + return defaultSnatStatusBuilder_; + } + + private boolean enableL4IlbSubsetting_ ; + /** + *
+     * Whether L4ILB Subsetting is enabled for this cluster.
+     * 
+ * + * bool enable_l4ilb_subsetting = 10; + * @return The enableL4ilbSubsetting. + */ + @java.lang.Override + public boolean getEnableL4IlbSubsetting() { + return enableL4IlbSubsetting_; + } + /** + *
+     * Whether L4ILB Subsetting is enabled for this cluster.
+     * 
+ * + * bool enable_l4ilb_subsetting = 10; + * @param value The enableL4ilbSubsetting to set. + * @return This builder for chaining. + */ + public Builder setEnableL4IlbSubsetting(boolean value) { + + enableL4IlbSubsetting_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Whether L4ILB Subsetting is enabled for this cluster.
+     * 
+ * + * bool enable_l4ilb_subsetting = 10; + * @return This builder for chaining. + */ + public Builder clearEnableL4IlbSubsetting() { + bitField0_ = (bitField0_ & ~0x00000010); + enableL4IlbSubsetting_ = false; + onChanged(); + return this; + } + + private int datapathProvider_ = 0; + /** + *
+     * The desired datapath provider for this cluster. By default, uses the
+     * IPTables-based kube-proxy implementation.
+     * 
+ * + * .google.container.v1.DatapathProvider datapath_provider = 11; + * @return The enum numeric value on the wire for datapathProvider. + */ + @java.lang.Override public int getDatapathProviderValue() { + return datapathProvider_; + } + /** + *
+     * The desired datapath provider for this cluster. By default, uses the
+     * IPTables-based kube-proxy implementation.
+     * 
+ * + * .google.container.v1.DatapathProvider datapath_provider = 11; + * @param value The enum numeric value on the wire for datapathProvider to set. + * @return This builder for chaining. + */ + public Builder setDatapathProviderValue(int value) { + datapathProvider_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * The desired datapath provider for this cluster. By default, uses the
+     * IPTables-based kube-proxy implementation.
+     * 
+ * + * .google.container.v1.DatapathProvider datapath_provider = 11; + * @return The datapathProvider. + */ + @java.lang.Override + public com.google.container.v1.DatapathProvider getDatapathProvider() { + com.google.container.v1.DatapathProvider result = com.google.container.v1.DatapathProvider.forNumber(datapathProvider_); + return result == null ? com.google.container.v1.DatapathProvider.UNRECOGNIZED : result; + } + /** + *
+     * The desired datapath provider for this cluster. By default, uses the
+     * IPTables-based kube-proxy implementation.
+     * 
+ * + * .google.container.v1.DatapathProvider datapath_provider = 11; + * @param value The datapathProvider to set. + * @return This builder for chaining. + */ + public Builder setDatapathProvider(com.google.container.v1.DatapathProvider value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + datapathProvider_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The desired datapath provider for this cluster. By default, uses the
+     * IPTables-based kube-proxy implementation.
+     * 
+ * + * .google.container.v1.DatapathProvider datapath_provider = 11; + * @return This builder for chaining. + */ + public Builder clearDatapathProvider() { + bitField0_ = (bitField0_ & ~0x00000020); + datapathProvider_ = 0; + onChanged(); + return this; + } + + private int privateIpv6GoogleAccess_ = 0; + /** + *
+     * The desired state of IPv6 connectivity to Google Services.
+     * By default, no private IPv6 access to or from Google Services (all access
+     * will be via IPv4)
+     * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + * @return The enum numeric value on the wire for privateIpv6GoogleAccess. + */ + @java.lang.Override public int getPrivateIpv6GoogleAccessValue() { + return privateIpv6GoogleAccess_; + } + /** + *
+     * The desired state of IPv6 connectivity to Google Services.
+     * By default, no private IPv6 access to or from Google Services (all access
+     * will be via IPv4)
+     * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + * @param value The enum numeric value on the wire for privateIpv6GoogleAccess to set. + * @return This builder for chaining. + */ + public Builder setPrivateIpv6GoogleAccessValue(int value) { + privateIpv6GoogleAccess_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * The desired state of IPv6 connectivity to Google Services.
+     * By default, no private IPv6 access to or from Google Services (all access
+     * will be via IPv4)
+     * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + * @return The privateIpv6GoogleAccess. + */ + @java.lang.Override + public com.google.container.v1.PrivateIPv6GoogleAccess getPrivateIpv6GoogleAccess() { + com.google.container.v1.PrivateIPv6GoogleAccess result = com.google.container.v1.PrivateIPv6GoogleAccess.forNumber(privateIpv6GoogleAccess_); + return result == null ? com.google.container.v1.PrivateIPv6GoogleAccess.UNRECOGNIZED : result; + } + /** + *
+     * The desired state of IPv6 connectivity to Google Services.
+     * By default, no private IPv6 access to or from Google Services (all access
+     * will be via IPv4)
+     * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + * @param value The privateIpv6GoogleAccess to set. + * @return This builder for chaining. + */ + public Builder setPrivateIpv6GoogleAccess(com.google.container.v1.PrivateIPv6GoogleAccess value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + privateIpv6GoogleAccess_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The desired state of IPv6 connectivity to Google Services.
+     * By default, no private IPv6 access to or from Google Services (all access
+     * will be via IPv4)
+     * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + * @return This builder for chaining. + */ + public Builder clearPrivateIpv6GoogleAccess() { + bitField0_ = (bitField0_ & ~0x00000040); + privateIpv6GoogleAccess_ = 0; + onChanged(); + return this; + } + + private com.google.container.v1.DNSConfig dnsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DNSConfig, com.google.container.v1.DNSConfig.Builder, com.google.container.v1.DNSConfigOrBuilder> dnsConfigBuilder_; + /** + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + * @return Whether the dnsConfig field is set. + */ + public boolean hasDnsConfig() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + * @return The dnsConfig. + */ + public com.google.container.v1.DNSConfig getDnsConfig() { + if (dnsConfigBuilder_ == null) { + return dnsConfig_ == null ? com.google.container.v1.DNSConfig.getDefaultInstance() : dnsConfig_; + } else { + return dnsConfigBuilder_.getMessage(); + } + } + /** + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + */ + public Builder setDnsConfig(com.google.container.v1.DNSConfig value) { + if (dnsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dnsConfig_ = value; + } else { + dnsConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + */ + public Builder setDnsConfig( + com.google.container.v1.DNSConfig.Builder builderForValue) { + if (dnsConfigBuilder_ == null) { + dnsConfig_ = builderForValue.build(); + } else { + dnsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + */ + public Builder mergeDnsConfig(com.google.container.v1.DNSConfig value) { + if (dnsConfigBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) && + dnsConfig_ != null && + dnsConfig_ != com.google.container.v1.DNSConfig.getDefaultInstance()) { + getDnsConfigBuilder().mergeFrom(value); + } else { + dnsConfig_ = value; + } + } else { + dnsConfigBuilder_.mergeFrom(value); + } + if (dnsConfig_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + /** + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + */ + public Builder clearDnsConfig() { + bitField0_ = (bitField0_ & ~0x00000080); + dnsConfig_ = null; + if (dnsConfigBuilder_ != null) { + dnsConfigBuilder_.dispose(); + dnsConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + */ + public com.google.container.v1.DNSConfig.Builder getDnsConfigBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getDnsConfigFieldBuilder().getBuilder(); + } + /** + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + */ + public com.google.container.v1.DNSConfigOrBuilder getDnsConfigOrBuilder() { + if (dnsConfigBuilder_ != null) { + return dnsConfigBuilder_.getMessageOrBuilder(); + } else { + return dnsConfig_ == null ? + com.google.container.v1.DNSConfig.getDefaultInstance() : dnsConfig_; + } + } + /** + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DNSConfig, com.google.container.v1.DNSConfig.Builder, com.google.container.v1.DNSConfigOrBuilder> + getDnsConfigFieldBuilder() { + if (dnsConfigBuilder_ == null) { + dnsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.DNSConfig, com.google.container.v1.DNSConfig.Builder, com.google.container.v1.DNSConfigOrBuilder>( + getDnsConfig(), + getParentForChildren(), + isClean()); + dnsConfig_ = null; + } + return dnsConfigBuilder_; + } + + private com.google.container.v1.ServiceExternalIPsConfig serviceExternalIpsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ServiceExternalIPsConfig, com.google.container.v1.ServiceExternalIPsConfig.Builder, com.google.container.v1.ServiceExternalIPsConfigOrBuilder> serviceExternalIpsConfigBuilder_; + /** + *
+     * ServiceExternalIPsConfig specifies if services with externalIPs field are
+     * blocked or not.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + * @return Whether the serviceExternalIpsConfig field is set. + */ + public boolean hasServiceExternalIpsConfig() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + *
+     * ServiceExternalIPsConfig specifies if services with externalIPs field are
+     * blocked or not.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + * @return The serviceExternalIpsConfig. + */ + public com.google.container.v1.ServiceExternalIPsConfig getServiceExternalIpsConfig() { + if (serviceExternalIpsConfigBuilder_ == null) { + return serviceExternalIpsConfig_ == null ? com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance() : serviceExternalIpsConfig_; + } else { + return serviceExternalIpsConfigBuilder_.getMessage(); + } + } + /** + *
+     * ServiceExternalIPsConfig specifies if services with externalIPs field are
+     * blocked or not.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + */ + public Builder setServiceExternalIpsConfig(com.google.container.v1.ServiceExternalIPsConfig value) { + if (serviceExternalIpsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serviceExternalIpsConfig_ = value; + } else { + serviceExternalIpsConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * ServiceExternalIPsConfig specifies if services with externalIPs field are
+     * blocked or not.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + */ + public Builder setServiceExternalIpsConfig( + com.google.container.v1.ServiceExternalIPsConfig.Builder builderForValue) { + if (serviceExternalIpsConfigBuilder_ == null) { + serviceExternalIpsConfig_ = builderForValue.build(); + } else { + serviceExternalIpsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * ServiceExternalIPsConfig specifies if services with externalIPs field are
+     * blocked or not.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + */ + public Builder mergeServiceExternalIpsConfig(com.google.container.v1.ServiceExternalIPsConfig value) { + if (serviceExternalIpsConfigBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) && + serviceExternalIpsConfig_ != null && + serviceExternalIpsConfig_ != com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance()) { + getServiceExternalIpsConfigBuilder().mergeFrom(value); + } else { + serviceExternalIpsConfig_ = value; + } + } else { + serviceExternalIpsConfigBuilder_.mergeFrom(value); + } + if (serviceExternalIpsConfig_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + /** + *
+     * ServiceExternalIPsConfig specifies if services with externalIPs field are
+     * blocked or not.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + */ + public Builder clearServiceExternalIpsConfig() { + bitField0_ = (bitField0_ & ~0x00000100); + serviceExternalIpsConfig_ = null; + if (serviceExternalIpsConfigBuilder_ != null) { + serviceExternalIpsConfigBuilder_.dispose(); + serviceExternalIpsConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * ServiceExternalIPsConfig specifies if services with externalIPs field are
+     * blocked or not.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + */ + public com.google.container.v1.ServiceExternalIPsConfig.Builder getServiceExternalIpsConfigBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getServiceExternalIpsConfigFieldBuilder().getBuilder(); + } + /** + *
+     * ServiceExternalIPsConfig specifies if services with externalIPs field are
+     * blocked or not.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + */ + public com.google.container.v1.ServiceExternalIPsConfigOrBuilder getServiceExternalIpsConfigOrBuilder() { + if (serviceExternalIpsConfigBuilder_ != null) { + return serviceExternalIpsConfigBuilder_.getMessageOrBuilder(); + } else { + return serviceExternalIpsConfig_ == null ? + com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance() : serviceExternalIpsConfig_; + } + } + /** + *
+     * ServiceExternalIPsConfig specifies if services with externalIPs field are
+     * blocked or not.
+     * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ServiceExternalIPsConfig, com.google.container.v1.ServiceExternalIPsConfig.Builder, com.google.container.v1.ServiceExternalIPsConfigOrBuilder> + getServiceExternalIpsConfigFieldBuilder() { + if (serviceExternalIpsConfigBuilder_ == null) { + serviceExternalIpsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ServiceExternalIPsConfig, com.google.container.v1.ServiceExternalIPsConfig.Builder, com.google.container.v1.ServiceExternalIPsConfigOrBuilder>( + getServiceExternalIpsConfig(), + getParentForChildren(), + isClean()); + serviceExternalIpsConfig_ = null; + } + return serviceExternalIpsConfigBuilder_; + } + + private com.google.container.v1.GatewayAPIConfig gatewayApiConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GatewayAPIConfig, com.google.container.v1.GatewayAPIConfig.Builder, com.google.container.v1.GatewayAPIConfigOrBuilder> gatewayApiConfigBuilder_; + /** + *
+     * GatewayAPIConfig contains the desired config of Gateway API on this
+     * cluster.
+     * 
+ * + * .google.container.v1.GatewayAPIConfig gateway_api_config = 16; + * @return Whether the gatewayApiConfig field is set. + */ + public boolean hasGatewayApiConfig() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + *
+     * GatewayAPIConfig contains the desired config of Gateway API on this
+     * cluster.
+     * 
+ * + * .google.container.v1.GatewayAPIConfig gateway_api_config = 16; + * @return The gatewayApiConfig. + */ + public com.google.container.v1.GatewayAPIConfig getGatewayApiConfig() { + if (gatewayApiConfigBuilder_ == null) { + return gatewayApiConfig_ == null ? com.google.container.v1.GatewayAPIConfig.getDefaultInstance() : gatewayApiConfig_; + } else { + return gatewayApiConfigBuilder_.getMessage(); + } + } + /** + *
+     * GatewayAPIConfig contains the desired config of Gateway API on this
+     * cluster.
+     * 
+ * + * .google.container.v1.GatewayAPIConfig gateway_api_config = 16; + */ + public Builder setGatewayApiConfig(com.google.container.v1.GatewayAPIConfig value) { + if (gatewayApiConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gatewayApiConfig_ = value; + } else { + gatewayApiConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * GatewayAPIConfig contains the desired config of Gateway API on this
+     * cluster.
+     * 
+ * + * .google.container.v1.GatewayAPIConfig gateway_api_config = 16; + */ + public Builder setGatewayApiConfig( + com.google.container.v1.GatewayAPIConfig.Builder builderForValue) { + if (gatewayApiConfigBuilder_ == null) { + gatewayApiConfig_ = builderForValue.build(); + } else { + gatewayApiConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * GatewayAPIConfig contains the desired config of Gateway API on this
+     * cluster.
+     * 
+ * + * .google.container.v1.GatewayAPIConfig gateway_api_config = 16; + */ + public Builder mergeGatewayApiConfig(com.google.container.v1.GatewayAPIConfig value) { + if (gatewayApiConfigBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) && + gatewayApiConfig_ != null && + gatewayApiConfig_ != com.google.container.v1.GatewayAPIConfig.getDefaultInstance()) { + getGatewayApiConfigBuilder().mergeFrom(value); + } else { + gatewayApiConfig_ = value; + } + } else { + gatewayApiConfigBuilder_.mergeFrom(value); + } + if (gatewayApiConfig_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + /** + *
+     * GatewayAPIConfig contains the desired config of Gateway API on this
+     * cluster.
+     * 
+ * + * .google.container.v1.GatewayAPIConfig gateway_api_config = 16; + */ + public Builder clearGatewayApiConfig() { + bitField0_ = (bitField0_ & ~0x00000200); + gatewayApiConfig_ = null; + if (gatewayApiConfigBuilder_ != null) { + gatewayApiConfigBuilder_.dispose(); + gatewayApiConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * GatewayAPIConfig contains the desired config of Gateway API on this
+     * cluster.
+     * 
+ * + * .google.container.v1.GatewayAPIConfig gateway_api_config = 16; + */ + public com.google.container.v1.GatewayAPIConfig.Builder getGatewayApiConfigBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getGatewayApiConfigFieldBuilder().getBuilder(); + } + /** + *
+     * GatewayAPIConfig contains the desired config of Gateway API on this
+     * cluster.
+     * 
+ * + * .google.container.v1.GatewayAPIConfig gateway_api_config = 16; + */ + public com.google.container.v1.GatewayAPIConfigOrBuilder getGatewayApiConfigOrBuilder() { + if (gatewayApiConfigBuilder_ != null) { + return gatewayApiConfigBuilder_.getMessageOrBuilder(); + } else { + return gatewayApiConfig_ == null ? + com.google.container.v1.GatewayAPIConfig.getDefaultInstance() : gatewayApiConfig_; + } + } + /** + *
+     * GatewayAPIConfig contains the desired config of Gateway API on this
+     * cluster.
+     * 
+ * + * .google.container.v1.GatewayAPIConfig gateway_api_config = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GatewayAPIConfig, com.google.container.v1.GatewayAPIConfig.Builder, com.google.container.v1.GatewayAPIConfigOrBuilder> + getGatewayApiConfigFieldBuilder() { + if (gatewayApiConfigBuilder_ == null) { + gatewayApiConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GatewayAPIConfig, com.google.container.v1.GatewayAPIConfig.Builder, com.google.container.v1.GatewayAPIConfigOrBuilder>( + getGatewayApiConfig(), + getParentForChildren(), + isClean()); + gatewayApiConfig_ = null; + } + return gatewayApiConfigBuilder_; + } + + private boolean enableMultiNetworking_ ; + /** + *
+     * Whether multi-networking is enabled for this cluster.
+     * 
+ * + * bool enable_multi_networking = 17; + * @return The enableMultiNetworking. + */ + @java.lang.Override + public boolean getEnableMultiNetworking() { + return enableMultiNetworking_; + } + /** + *
+     * Whether multi-networking is enabled for this cluster.
+     * 
+ * + * bool enable_multi_networking = 17; + * @param value The enableMultiNetworking to set. + * @return This builder for chaining. + */ + public Builder setEnableMultiNetworking(boolean value) { + + enableMultiNetworking_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+     * Whether multi-networking is enabled for this cluster.
+     * 
+ * + * bool enable_multi_networking = 17; + * @return This builder for chaining. + */ + public Builder clearEnableMultiNetworking() { + bitField0_ = (bitField0_ & ~0x00000400); + enableMultiNetworking_ = false; + onChanged(); + return this; + } + + private com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig networkPerformanceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig, com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder, com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder> networkPerformanceConfigBuilder_; + /** + *
+     * Network bandwidth tier configuration.
+     * 
+ * + * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; + * @return Whether the networkPerformanceConfig field is set. + */ + public boolean hasNetworkPerformanceConfig() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + *
+     * Network bandwidth tier configuration.
+     * 
+ * + * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; + * @return The networkPerformanceConfig. + */ + public com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig getNetworkPerformanceConfig() { + if (networkPerformanceConfigBuilder_ == null) { + return networkPerformanceConfig_ == null ? com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.getDefaultInstance() : networkPerformanceConfig_; + } else { + return networkPerformanceConfigBuilder_.getMessage(); + } + } + /** + *
+     * Network bandwidth tier configuration.
+     * 
+ * + * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; + */ + public Builder setNetworkPerformanceConfig(com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig value) { + if (networkPerformanceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkPerformanceConfig_ = value; + } else { + networkPerformanceConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * Network bandwidth tier configuration.
+     * 
+ * + * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; + */ + public Builder setNetworkPerformanceConfig( + com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder builderForValue) { + if (networkPerformanceConfigBuilder_ == null) { + networkPerformanceConfig_ = builderForValue.build(); + } else { + networkPerformanceConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * Network bandwidth tier configuration.
+     * 
+ * + * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; + */ + public Builder mergeNetworkPerformanceConfig(com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig value) { + if (networkPerformanceConfigBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) && + networkPerformanceConfig_ != null && + networkPerformanceConfig_ != com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.getDefaultInstance()) { + getNetworkPerformanceConfigBuilder().mergeFrom(value); + } else { + networkPerformanceConfig_ = value; + } + } else { + networkPerformanceConfigBuilder_.mergeFrom(value); + } + if (networkPerformanceConfig_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + /** + *
+     * Network bandwidth tier configuration.
+     * 
+ * + * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; + */ + public Builder clearNetworkPerformanceConfig() { + bitField0_ = (bitField0_ & ~0x00000800); + networkPerformanceConfig_ = null; + if (networkPerformanceConfigBuilder_ != null) { + networkPerformanceConfigBuilder_.dispose(); + networkPerformanceConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Network bandwidth tier configuration.
+     * 
+ * + * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; + */ + public com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder getNetworkPerformanceConfigBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return getNetworkPerformanceConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Network bandwidth tier configuration.
+     * 
+ * + * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; + */ + public com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder getNetworkPerformanceConfigOrBuilder() { + if (networkPerformanceConfigBuilder_ != null) { + return networkPerformanceConfigBuilder_.getMessageOrBuilder(); + } else { + return networkPerformanceConfig_ == null ? + com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.getDefaultInstance() : networkPerformanceConfig_; + } + } + /** + *
+     * Network bandwidth tier configuration.
+     * 
+ * + * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig, com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder, com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder> + getNetworkPerformanceConfigFieldBuilder() { + if (networkPerformanceConfigBuilder_ == null) { + networkPerformanceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig, com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder, com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder>( + getNetworkPerformanceConfig(), + getParentForChildren(), + isClean()); + networkPerformanceConfig_ = null; + } + return networkPerformanceConfigBuilder_; + } + + private boolean enableFqdnNetworkPolicy_ ; + /** + *
+     * Whether FQDN Network Policy is enabled on this cluster.
+     * 
+ * + * optional bool enable_fqdn_network_policy = 19; + * @return Whether the enableFqdnNetworkPolicy field is set. + */ + @java.lang.Override + public boolean hasEnableFqdnNetworkPolicy() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + *
+     * Whether FQDN Network Policy is enabled on this cluster.
+     * 
+ * + * optional bool enable_fqdn_network_policy = 19; + * @return The enableFqdnNetworkPolicy. + */ + @java.lang.Override + public boolean getEnableFqdnNetworkPolicy() { + return enableFqdnNetworkPolicy_; + } + /** + *
+     * Whether FQDN Network Policy is enabled on this cluster.
+     * 
+ * + * optional bool enable_fqdn_network_policy = 19; + * @param value The enableFqdnNetworkPolicy to set. + * @return This builder for chaining. + */ + public Builder setEnableFqdnNetworkPolicy(boolean value) { + + enableFqdnNetworkPolicy_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + *
+     * Whether FQDN Network Policy is enabled on this cluster.
+     * 
+ * + * optional bool enable_fqdn_network_policy = 19; + * @return This builder for chaining. + */ + public Builder clearEnableFqdnNetworkPolicy() { + bitField0_ = (bitField0_ & ~0x00001000); + enableFqdnNetworkPolicy_ = false; + onChanged(); + return this; + } + + private int inTransitEncryptionConfig_ = 0; + /** + *
+     * Specify the details of in-transit encryption.
+     * 
+ * + * optional .google.container.v1.InTransitEncryptionConfig in_transit_encryption_config = 20; + * @return Whether the inTransitEncryptionConfig field is set. + */ + @java.lang.Override public boolean hasInTransitEncryptionConfig() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + *
+     * Specify the details of in-transit encryption.
+     * 
+ * + * optional .google.container.v1.InTransitEncryptionConfig in_transit_encryption_config = 20; + * @return The enum numeric value on the wire for inTransitEncryptionConfig. + */ + @java.lang.Override public int getInTransitEncryptionConfigValue() { + return inTransitEncryptionConfig_; + } + /** + *
+     * Specify the details of in-transit encryption.
+     * 
+ * + * optional .google.container.v1.InTransitEncryptionConfig in_transit_encryption_config = 20; + * @param value The enum numeric value on the wire for inTransitEncryptionConfig to set. + * @return This builder for chaining. + */ + public Builder setInTransitEncryptionConfigValue(int value) { + inTransitEncryptionConfig_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + *
+     * Specify the details of in-transit encryption.
+     * 
+ * + * optional .google.container.v1.InTransitEncryptionConfig in_transit_encryption_config = 20; + * @return The inTransitEncryptionConfig. + */ + @java.lang.Override + public com.google.container.v1.InTransitEncryptionConfig getInTransitEncryptionConfig() { + com.google.container.v1.InTransitEncryptionConfig result = com.google.container.v1.InTransitEncryptionConfig.forNumber(inTransitEncryptionConfig_); + return result == null ? com.google.container.v1.InTransitEncryptionConfig.UNRECOGNIZED : result; + } + /** + *
+     * Specify the details of in-transit encryption.
+     * 
+ * + * optional .google.container.v1.InTransitEncryptionConfig in_transit_encryption_config = 20; + * @param value The inTransitEncryptionConfig to set. + * @return This builder for chaining. + */ + public Builder setInTransitEncryptionConfig(com.google.container.v1.InTransitEncryptionConfig value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00002000; + inTransitEncryptionConfig_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Specify the details of in-transit encryption.
+     * 
+ * + * optional .google.container.v1.InTransitEncryptionConfig in_transit_encryption_config = 20; + * @return This builder for chaining. + */ + public Builder clearInTransitEncryptionConfig() { + bitField0_ = (bitField0_ & ~0x00002000); + inTransitEncryptionConfig_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.NetworkConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.NetworkConfig) + private static final com.google.container.v1.NetworkConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.NetworkConfig(); + } + + public static com.google.container.v1.NetworkConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.NetworkConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java new file mode 100644 index 000000000000..7554d663a0f1 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java @@ -0,0 +1,334 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface NetworkConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NetworkConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Output only. The relative name of the Google Compute Engine
+   * [network][google.container.v1.NetworkConfig.network](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.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+   * to which the cluster is connected. Example:
+   * projects/my-project/global/networks/my-network
+   * 
+ * + * string network = 1; + * @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.v1.DefaultSnatStatus default_snat_status = 7; + * @return Whether the defaultSnatStatus field is set. + */ + boolean hasDefaultSnatStatus(); + /** + *
+   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+   * will be disabled when default_snat_status is disabled. When disabled is set
+   * to false, default IP masquerade rules will be applied to the nodes to
+   * prevent sNAT on cluster internal traffic.
+   * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + * @return The defaultSnatStatus. + */ + com.google.container.v1.DefaultSnatStatus getDefaultSnatStatus(); + /** + *
+   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
+   * will be disabled when default_snat_status is disabled. When disabled is set
+   * to false, default IP masquerade rules will be applied to the nodes to
+   * prevent sNAT on cluster internal traffic.
+   * 
+ * + * .google.container.v1.DefaultSnatStatus default_snat_status = 7; + */ + com.google.container.v1.DefaultSnatStatusOrBuilder getDefaultSnatStatusOrBuilder(); + + /** + *
+   * Whether L4ILB Subsetting is enabled for this cluster.
+   * 
+ * + * bool enable_l4ilb_subsetting = 10; + * @return The enableL4ilbSubsetting. + */ + boolean getEnableL4IlbSubsetting(); + + /** + *
+   * The desired datapath provider for this cluster. By default, uses the
+   * IPTables-based kube-proxy implementation.
+   * 
+ * + * .google.container.v1.DatapathProvider datapath_provider = 11; + * @return The enum numeric value on the wire for datapathProvider. + */ + int getDatapathProviderValue(); + /** + *
+   * The desired datapath provider for this cluster. By default, uses the
+   * IPTables-based kube-proxy implementation.
+   * 
+ * + * .google.container.v1.DatapathProvider datapath_provider = 11; + * @return The datapathProvider. + */ + com.google.container.v1.DatapathProvider getDatapathProvider(); + + /** + *
+   * The desired state of IPv6 connectivity to Google Services.
+   * By default, no private IPv6 access to or from Google Services (all access
+   * will be via IPv4)
+   * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + * @return The enum numeric value on the wire for privateIpv6GoogleAccess. + */ + int getPrivateIpv6GoogleAccessValue(); + /** + *
+   * The desired state of IPv6 connectivity to Google Services.
+   * By default, no private IPv6 access to or from Google Services (all access
+   * will be via IPv4)
+   * 
+ * + * .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + * @return The privateIpv6GoogleAccess. + */ + com.google.container.v1.PrivateIPv6GoogleAccess getPrivateIpv6GoogleAccess(); + + /** + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + * @return Whether the dnsConfig field is set. + */ + boolean hasDnsConfig(); + /** + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + * @return The dnsConfig. + */ + com.google.container.v1.DNSConfig getDnsConfig(); + /** + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1.DNSConfig dns_config = 13; + */ + com.google.container.v1.DNSConfigOrBuilder getDnsConfigOrBuilder(); + + /** + *
+   * ServiceExternalIPsConfig specifies if services with externalIPs field are
+   * blocked or not.
+   * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + * @return Whether the serviceExternalIpsConfig field is set. + */ + boolean hasServiceExternalIpsConfig(); + /** + *
+   * ServiceExternalIPsConfig specifies if services with externalIPs field are
+   * blocked or not.
+   * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + * @return The serviceExternalIpsConfig. + */ + com.google.container.v1.ServiceExternalIPsConfig getServiceExternalIpsConfig(); + /** + *
+   * ServiceExternalIPsConfig specifies if services with externalIPs field are
+   * blocked or not.
+   * 
+ * + * .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; + */ + com.google.container.v1.ServiceExternalIPsConfigOrBuilder getServiceExternalIpsConfigOrBuilder(); + + /** + *
+   * GatewayAPIConfig contains the desired config of Gateway API on this
+   * cluster.
+   * 
+ * + * .google.container.v1.GatewayAPIConfig gateway_api_config = 16; + * @return Whether the gatewayApiConfig field is set. + */ + boolean hasGatewayApiConfig(); + /** + *
+   * GatewayAPIConfig contains the desired config of Gateway API on this
+   * cluster.
+   * 
+ * + * .google.container.v1.GatewayAPIConfig gateway_api_config = 16; + * @return The gatewayApiConfig. + */ + com.google.container.v1.GatewayAPIConfig getGatewayApiConfig(); + /** + *
+   * GatewayAPIConfig contains the desired config of Gateway API on this
+   * cluster.
+   * 
+ * + * .google.container.v1.GatewayAPIConfig gateway_api_config = 16; + */ + com.google.container.v1.GatewayAPIConfigOrBuilder getGatewayApiConfigOrBuilder(); + + /** + *
+   * Whether multi-networking is enabled for this cluster.
+   * 
+ * + * bool enable_multi_networking = 17; + * @return The enableMultiNetworking. + */ + boolean getEnableMultiNetworking(); + + /** + *
+   * Network bandwidth tier configuration.
+   * 
+ * + * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; + * @return Whether the networkPerformanceConfig field is set. + */ + boolean hasNetworkPerformanceConfig(); + /** + *
+   * Network bandwidth tier configuration.
+   * 
+ * + * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; + * @return The networkPerformanceConfig. + */ + com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig getNetworkPerformanceConfig(); + /** + *
+   * Network bandwidth tier configuration.
+   * 
+ * + * .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; + */ + com.google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder getNetworkPerformanceConfigOrBuilder(); + + /** + *
+   * Whether FQDN Network Policy is enabled on this cluster.
+   * 
+ * + * optional bool enable_fqdn_network_policy = 19; + * @return Whether the enableFqdnNetworkPolicy field is set. + */ + boolean hasEnableFqdnNetworkPolicy(); + /** + *
+   * Whether FQDN Network Policy is enabled on this cluster.
+   * 
+ * + * optional bool enable_fqdn_network_policy = 19; + * @return The enableFqdnNetworkPolicy. + */ + boolean getEnableFqdnNetworkPolicy(); + + /** + *
+   * Specify the details of in-transit encryption.
+   * 
+ * + * optional .google.container.v1.InTransitEncryptionConfig in_transit_encryption_config = 20; + * @return Whether the inTransitEncryptionConfig field is set. + */ + boolean hasInTransitEncryptionConfig(); + /** + *
+   * Specify the details of in-transit encryption.
+   * 
+ * + * optional .google.container.v1.InTransitEncryptionConfig in_transit_encryption_config = 20; + * @return The enum numeric value on the wire for inTransitEncryptionConfig. + */ + int getInTransitEncryptionConfigValue(); + /** + *
+   * Specify the details of in-transit encryption.
+   * 
+ * + * optional .google.container.v1.InTransitEncryptionConfig in_transit_encryption_config = 20; + * @return The inTransitEncryptionConfig. + */ + com.google.container.v1.InTransitEncryptionConfig getInTransitEncryptionConfig(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicy.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicy.java new file mode 100644 index 000000000000..0323f6437ecb --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicy.java @@ -0,0 +1,749 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Configuration options for the NetworkPolicy feature.
+ * https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
+ * 
+ * + * Protobuf type {@code google.container.v1.NetworkPolicy} + */ +public final class NetworkPolicy extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NetworkPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NetworkPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NetworkPolicy.class, com.google.container.v1.NetworkPolicy.Builder.class); + } + + /** + *
+   * Allowed Network Policy providers.
+   * 
+ * + * Protobuf enum {@code google.container.v1.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< + Provider> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Provider findValueByNumber(int number) { + return Provider.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.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.v1.NetworkPolicy.Provider) + } + + public static final int PROVIDER_FIELD_NUMBER = 1; + private int provider_ = 0; + /** + *
+   * The selected network policy provider.
+   * 
+ * + * .google.container.v1.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.v1.NetworkPolicy.Provider provider = 1; + * @return The provider. + */ + @java.lang.Override public com.google.container.v1.NetworkPolicy.Provider getProvider() { + com.google.container.v1.NetworkPolicy.Provider result = com.google.container.v1.NetworkPolicy.Provider.forNumber(provider_); + return result == null ? com.google.container.v1.NetworkPolicy.Provider.UNRECOGNIZED : result; + } + + public static final int ENABLED_FIELD_NUMBER = 2; + private boolean enabled_ = false; + /** + *
+   * 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.v1.NetworkPolicy.Provider.PROVIDER_UNSPECIFIED.getNumber()) { + output.writeEnum(1, provider_); + } + if (enabled_ != false) { + output.writeBool(2, enabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (provider_ != com.google.container.v1.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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.NetworkPolicy)) { + return super.equals(obj); + } + com.google.container.v1.NetworkPolicy other = (com.google.container.v1.NetworkPolicy) obj; + + if (provider_ != other.provider_) return false; + if (getEnabled() + != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.NetworkPolicy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.NetworkPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.NetworkPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NetworkPolicy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NetworkPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.NetworkPolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.NetworkPolicy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.NetworkPolicy} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.NetworkPolicy) + com.google.container.v1.NetworkPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NetworkPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NetworkPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NetworkPolicy.class, com.google.container.v1.NetworkPolicy.Builder.class); + } + + // Construct using com.google.container.v1.NetworkPolicy.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + provider_ = 0; + enabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NetworkPolicy_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NetworkPolicy getDefaultInstanceForType() { + return com.google.container.v1.NetworkPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NetworkPolicy build() { + com.google.container.v1.NetworkPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NetworkPolicy buildPartial() { + com.google.container.v1.NetworkPolicy result = new com.google.container.v1.NetworkPolicy(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.NetworkPolicy result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.provider_ = provider_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.enabled_ = enabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.NetworkPolicy) { + return mergeFrom((com.google.container.v1.NetworkPolicy)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NetworkPolicy other) { + if (other == com.google.container.v1.NetworkPolicy.getDefaultInstance()) return this; + if (other.provider_ != 0) { + setProviderValue(other.getProviderValue()); + } + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + provider_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int provider_ = 0; + /** + *
+     * The selected network policy provider.
+     * 
+ * + * .google.container.v1.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.v1.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The selected network policy provider.
+     * 
+ * + * .google.container.v1.NetworkPolicy.Provider provider = 1; + * @return The provider. + */ + @java.lang.Override + public com.google.container.v1.NetworkPolicy.Provider getProvider() { + com.google.container.v1.NetworkPolicy.Provider result = com.google.container.v1.NetworkPolicy.Provider.forNumber(provider_); + return result == null ? com.google.container.v1.NetworkPolicy.Provider.UNRECOGNIZED : result; + } + /** + *
+     * The selected network policy provider.
+     * 
+ * + * .google.container.v1.NetworkPolicy.Provider provider = 1; + * @param value The provider to set. + * @return This builder for chaining. + */ + public Builder setProvider(com.google.container.v1.NetworkPolicy.Provider value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + provider_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The selected network policy provider.
+     * 
+ * + * .google.container.v1.NetworkPolicy.Provider provider = 1; + * @return This builder for chaining. + */ + public Builder clearProvider() { + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Whether network policy is enabled on the cluster.
+     * 
+ * + * bool enabled = 2; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000002); + enabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.NetworkPolicy) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.NetworkPolicy) + private static final com.google.container.v1.NetworkPolicy DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.NetworkPolicy(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.NetworkPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyConfig.java new file mode 100644 index 000000000000..c21a7cf52a42 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyConfig.java @@ -0,0 +1,501 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * 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.v1.NetworkPolicyConfig} + */ +public final class NetworkPolicyConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NetworkPolicyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NetworkPolicyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NetworkPolicyConfig.class, com.google.container.v1.NetworkPolicyConfig.Builder.class); + } + + public static final int DISABLED_FIELD_NUMBER = 1; + private boolean disabled_ = false; + /** + *
+   * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.NetworkPolicyConfig)) { + return super.equals(obj); + } + com.google.container.v1.NetworkPolicyConfig other = (com.google.container.v1.NetworkPolicyConfig) obj; + + if (getDisabled() + != other.getDisabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.NetworkPolicyConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.NetworkPolicyConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.NetworkPolicyConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NetworkPolicyConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NetworkPolicyConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.NetworkPolicyConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.NetworkPolicyConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.NetworkPolicyConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.NetworkPolicyConfig) + com.google.container.v1.NetworkPolicyConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NetworkPolicyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NetworkPolicyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NetworkPolicyConfig.class, com.google.container.v1.NetworkPolicyConfig.Builder.class); + } + + // Construct using com.google.container.v1.NetworkPolicyConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + disabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NetworkPolicyConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NetworkPolicyConfig getDefaultInstanceForType() { + return com.google.container.v1.NetworkPolicyConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NetworkPolicyConfig build() { + com.google.container.v1.NetworkPolicyConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NetworkPolicyConfig buildPartial() { + com.google.container.v1.NetworkPolicyConfig result = new com.google.container.v1.NetworkPolicyConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.NetworkPolicyConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.disabled_ = disabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.NetworkPolicyConfig) { + return mergeFrom((com.google.container.v1.NetworkPolicyConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NetworkPolicyConfig other) { + if (other == com.google.container.v1.NetworkPolicyConfig.getDefaultInstance()) return this; + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + disabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether NetworkPolicy is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + * @return This builder for chaining. + */ + public Builder clearDisabled() { + bitField0_ = (bitField0_ & ~0x00000001); + disabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.NetworkPolicyConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.NetworkPolicyConfig) + private static final com.google.container.v1.NetworkPolicyConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.NetworkPolicyConfig(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.NetworkPolicyConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyConfigOrBuilder.java new file mode 100644 index 000000000000..46a6f9e95636 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyConfigOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface NetworkPolicyConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NetworkPolicyConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether NetworkPolicy is enabled for this cluster.
+   * 
+ * + * bool disabled = 1; + * @return The disabled. + */ + boolean getDisabled(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyOrBuilder.java new file mode 100644 index 000000000000..864a81ba52c0 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyOrBuilder.java @@ -0,0 +1,39 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface NetworkPolicyOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NetworkPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The selected network policy provider.
+   * 
+ * + * .google.container.v1.NetworkPolicy.Provider provider = 1; + * @return The enum numeric value on the wire for provider. + */ + int getProviderValue(); + /** + *
+   * The selected network policy provider.
+   * 
+ * + * .google.container.v1.NetworkPolicy.Provider provider = 1; + * @return The provider. + */ + com.google.container.v1.NetworkPolicy.Provider getProvider(); + + /** + *
+   * Whether network policy is enabled on the cluster.
+   * 
+ * + * bool enabled = 2; + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkTags.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkTags.java new file mode 100644 index 000000000000..0bed03de3b55 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkTags.java @@ -0,0 +1,657 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Collection of Compute Engine network tags that can be applied to a node's
+ * underlying VM instance.
+ * 
+ * + * Protobuf type {@code google.container.v1.NetworkTags} + */ +public final class NetworkTags extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.NetworkTags) + NetworkTagsOrBuilder { +private static final long serialVersionUID = 0L; + // Use NetworkTags.newBuilder() to construct. + private NetworkTags(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NetworkTags() { + tags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NetworkTags(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NetworkTags_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NetworkTags_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NetworkTags.class, com.google.container.v1.NetworkTags.Builder.class); + } + + public static final int TAGS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList tags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * List of network tags.
+   * 
+ * + * repeated string tags = 1; + * @return A list containing the tags. + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_; + } + /** + *
+   * List of network tags.
+   * 
+ * + * repeated string tags = 1; + * @return The count of tags. + */ + public int getTagsCount() { + return tags_.size(); + } + /** + *
+   * List of network tags.
+   * 
+ * + * repeated string tags = 1; + * @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); + } + /** + *
+   * List of network tags.
+   * 
+ * + * repeated string tags = 1; + * @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); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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 < tags_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tags_.getRaw(i)); + } + getUnknownFields().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 < tags_.size(); i++) { + dataSize += computeStringSizeNoTag(tags_.getRaw(i)); + } + size += dataSize; + size += 1 * getTagsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.NetworkTags)) { + return super.equals(obj); + } + com.google.container.v1.NetworkTags other = (com.google.container.v1.NetworkTags) obj; + + if (!getTagsList() + .equals(other.getTagsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTagsCount() > 0) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + getTagsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.NetworkTags parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NetworkTags parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NetworkTags parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NetworkTags parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NetworkTags parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NetworkTags parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NetworkTags parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NetworkTags parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.NetworkTags parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.NetworkTags parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.NetworkTags parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NetworkTags parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.NetworkTags prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Collection of Compute Engine network tags that can be applied to a node's
+   * underlying VM instance.
+   * 
+ * + * Protobuf type {@code google.container.v1.NetworkTags} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.NetworkTags) + com.google.container.v1.NetworkTagsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NetworkTags_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NetworkTags_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NetworkTags.class, com.google.container.v1.NetworkTags.Builder.class); + } + + // Construct using com.google.container.v1.NetworkTags.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + tags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NetworkTags_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NetworkTags getDefaultInstanceForType() { + return com.google.container.v1.NetworkTags.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NetworkTags build() { + com.google.container.v1.NetworkTags result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NetworkTags buildPartial() { + com.google.container.v1.NetworkTags result = new com.google.container.v1.NetworkTags(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.NetworkTags result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + tags_.makeImmutable(); + result.tags_ = tags_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.NetworkTags) { + return mergeFrom((com.google.container.v1.NetworkTags)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NetworkTags other) { + if (other == com.google.container.v1.NetworkTags.getDefaultInstance()) return this; + if (!other.tags_.isEmpty()) { + if (tags_.isEmpty()) { + tags_ = other.tags_; + bitField0_ |= 0x00000001; + } else { + ensureTagsIsMutable(); + tags_.addAll(other.tags_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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(); + ensureTagsIsMutable(); + tags_.add(s); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList tags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureTagsIsMutable() { + if (!tags_.isModifiable()) { + tags_ = new com.google.protobuf.LazyStringArrayList(tags_); + } + bitField0_ |= 0x00000001; + } + /** + *
+     * List of network tags.
+     * 
+ * + * repeated string tags = 1; + * @return A list containing the tags. + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + tags_.makeImmutable(); + return tags_; + } + /** + *
+     * List of network tags.
+     * 
+ * + * repeated string tags = 1; + * @return The count of tags. + */ + public int getTagsCount() { + return tags_.size(); + } + /** + *
+     * List of network tags.
+     * 
+ * + * repeated string tags = 1; + * @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); + } + /** + *
+     * List of network tags.
+     * 
+ * + * repeated string tags = 1; + * @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); + } + /** + *
+     * List of network tags.
+     * 
+ * + * repeated string tags = 1; + * @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); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * List of network tags.
+     * 
+ * + * repeated string tags = 1; + * @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); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * List of network tags.
+     * 
+ * + * repeated string tags = 1; + * @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_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * List of network tags.
+     * 
+ * + * repeated string tags = 1; + * @return This builder for chaining. + */ + public Builder clearTags() { + tags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; + onChanged(); + return this; + } + /** + *
+     * List of network tags.
+     * 
+ * + * repeated string tags = 1; + * @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); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.NetworkTags) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.NetworkTags) + private static final com.google.container.v1.NetworkTags DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.NetworkTags(); + } + + public static com.google.container.v1.NetworkTags getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkTags parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.NetworkTags getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkTagsOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkTagsOrBuilder.java new file mode 100644 index 000000000000..d8f98ba2cbfd --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkTagsOrBuilder.java @@ -0,0 +1,51 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface NetworkTagsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NetworkTags) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * List of network tags.
+   * 
+ * + * repeated string tags = 1; + * @return A list containing the tags. + */ + java.util.List + getTagsList(); + /** + *
+   * List of network tags.
+   * 
+ * + * repeated string tags = 1; + * @return The count of tags. + */ + int getTagsCount(); + /** + *
+   * List of network tags.
+   * 
+ * + * repeated string tags = 1; + * @param index The index of the element to return. + * @return The tags at the given index. + */ + java.lang.String getTags(int index); + /** + *
+   * List of network tags.
+   * 
+ * + * repeated string tags = 1; + * @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); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfig.java new file mode 100644 index 000000000000..bca4d0ea7b6f --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfig.java @@ -0,0 +1,9216 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Parameters that describe the nodes in a cluster.
+ *
+ * GKE Autopilot clusters do not
+ * recognize parameters in `NodeConfig`. Use
+ * [AutoprovisioningNodePoolDefaults][google.container.v1.AutoprovisioningNodePoolDefaults]
+ * instead.
+ * 
+ * + * Protobuf type {@code google.container.v1.NodeConfig} + */ +public final class NodeConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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.emptyList(); + serviceAccount_ = ""; + imageType_ = ""; + tags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + accelerators_ = java.util.Collections.emptyList(); + diskType_ = ""; + minCpuPlatform_ = ""; + taints_ = java.util.Collections.emptyList(); + nodeGroup_ = ""; + bootDiskKmsKey_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NodeConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMetadata(); + case 6: + return internalGetLabels(); + case 37: + 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.v1.ClusterServiceProto.internal_static_google_container_v1_NodeConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodeConfig.class, com.google.container.v1.NodeConfig.Builder.class); + } + + private int bitField0_; + public static final int MACHINE_TYPE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + 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_ = 0; + /** + *
+   * 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; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList oauthScopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * 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; + @SuppressWarnings("serial") + 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< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeConfig_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + *
+   * The metadata key/value pairs assigned to instances in the cluster.
+   *
+   * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
+   * in length. These are reflected as part of a URL in the metadata server.
+   * Additionally, to avoid ambiguity, keys must not conflict with any other
+   * metadata keys for the project or be one of the reserved keys:
+   *
+   *  - "cluster-location"
+   *  - "cluster-name"
+   *  - "cluster-uid"
+   *  - "configure-sh"
+   *  - "containerd-configure-sh"
+   *  - "enable-os-login"
+   *  - "gci-ensure-gke-docker"
+   *  - "gci-metrics-enabled"
+   *  - "gci-update-strategy"
+   *  - "instance-template"
+   *  - "kube-env"
+   *  - "startup-script"
+   *  - "user-data"
+   *  - "disable-address-manager"
+   *  - "windows-startup-script-ps1"
+   *  - "common-psm1"
+   *  - "k8s-node-setup-psm1"
+   *  - "install-ssh-psm1"
+   *  - "user-profile-psm1"
+   *
+   * 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 NullPointerException("map key"); } + 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-os-login"
+   *  - "gci-ensure-gke-docker"
+   *  - "gci-metrics-enabled"
+   *  - "gci-update-strategy"
+   *  - "instance-template"
+   *  - "kube-env"
+   *  - "startup-script"
+   *  - "user-data"
+   *  - "disable-address-manager"
+   *  - "windows-startup-script-ps1"
+   *  - "common-psm1"
+   *  - "k8s-node-setup-psm1"
+   *  - "install-ssh-psm1"
+   *  - "user-profile-psm1"
+   *
+   * 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-os-login"
+   *  - "gci-ensure-gke-docker"
+   *  - "gci-metrics-enabled"
+   *  - "gci-update-strategy"
+   *  - "instance-template"
+   *  - "kube-env"
+   *  - "startup-script"
+   *  - "user-data"
+   *  - "disable-address-manager"
+   *  - "windows-startup-script-ps1"
+   *  - "common-psm1"
+   *  - "k8s-node-setup-psm1"
+   *  - "install-ssh-psm1"
+   *  - "user-profile-psm1"
+   *
+   * 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 /* nullable */ +java.lang.String getMetadataOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + 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-os-login"
+   *  - "gci-ensure-gke-docker"
+   *  - "gci-metrics-enabled"
+   *  - "gci-update-strategy"
+   *  - "instance-template"
+   *  - "kube-env"
+   *  - "startup-script"
+   *  - "user-data"
+   *  - "disable-address-manager"
+   *  - "windows-startup-script-ps1"
+   *  - "common-psm1"
+   *  - "k8s-node-setup-psm1"
+   *  - "install-ssh-psm1"
+   *  - "user-profile-psm1"
+   *
+   * 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 NullPointerException("map key"); } + 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; + @SuppressWarnings("serial") + 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. Please see
+   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+   * available image types.
+   * 
+ * + * 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. Please see
+   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+   * available image types.
+   * 
+ * + * 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< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeConfig_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+   * These will added in addition to any default label(s) that
+   * Kubernetes may apply to the node.
+   * In case of conflict in label keys, the applied set may differ depending on
+   * the Kubernetes version -- it's best to assume the behavior is undefined
+   * and conflicts should be avoided.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+   * 
+ * + * map<string, string> labels = 6; + */ + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + 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 /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + 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 NullPointerException("map key"); } + 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_ = 0; + /** + *
+   * 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; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList tags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * 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_ = false; + /** + *
+   * Whether the nodes are created as preemptible VM instances. See:
+   * https://cloud.google.com/compute/docs/instances/preemptible for more
+   * information 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; + @SuppressWarnings("serial") + 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.v1.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.v1.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.v1.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.v1.AcceleratorConfig accelerators = 11; + */ + @java.lang.Override + public com.google.container.v1.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.v1.AcceleratorConfig accelerators = 11; + */ + @java.lang.Override + public com.google.container.v1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder( + int index) { + return accelerators_.get(index); + } + + public static final int DISK_TYPE_FIELD_NUMBER = 12; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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.v1.WorkloadMetadataConfig workloadMetadataConfig_; + /** + *
+   * The workload metadata configuration for this node.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + * @return Whether the workloadMetadataConfig field is set. + */ + @java.lang.Override + public boolean hasWorkloadMetadataConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * The workload metadata configuration for this node.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + * @return The workloadMetadataConfig. + */ + @java.lang.Override + public com.google.container.v1.WorkloadMetadataConfig getWorkloadMetadataConfig() { + return workloadMetadataConfig_ == null ? com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance() : workloadMetadataConfig_; + } + /** + *
+   * The workload metadata configuration for this node.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + @java.lang.Override + public com.google.container.v1.WorkloadMetadataConfigOrBuilder getWorkloadMetadataConfigOrBuilder() { + return workloadMetadataConfig_ == null ? com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance() : workloadMetadataConfig_; + } + + public static final int TAINTS_FIELD_NUMBER = 15; + @SuppressWarnings("serial") + 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.v1.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.v1.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.v1.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.v1.NodeTaint taints = 15; + */ + @java.lang.Override + public com.google.container.v1.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.v1.NodeTaint taints = 15; + */ + @java.lang.Override + public com.google.container.v1.NodeTaintOrBuilder getTaintsOrBuilder( + int index) { + return taints_.get(index); + } + + public static final int SANDBOX_CONFIG_FIELD_NUMBER = 17; + private com.google.container.v1.SandboxConfig sandboxConfig_; + /** + *
+   * Sandbox configuration for this node.
+   * 
+ * + * .google.container.v1.SandboxConfig sandbox_config = 17; + * @return Whether the sandboxConfig field is set. + */ + @java.lang.Override + public boolean hasSandboxConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * Sandbox configuration for this node.
+   * 
+ * + * .google.container.v1.SandboxConfig sandbox_config = 17; + * @return The sandboxConfig. + */ + @java.lang.Override + public com.google.container.v1.SandboxConfig getSandboxConfig() { + return sandboxConfig_ == null ? com.google.container.v1.SandboxConfig.getDefaultInstance() : sandboxConfig_; + } + /** + *
+   * Sandbox configuration for this node.
+   * 
+ * + * .google.container.v1.SandboxConfig sandbox_config = 17; + */ + @java.lang.Override + public com.google.container.v1.SandboxConfigOrBuilder getSandboxConfigOrBuilder() { + return sandboxConfig_ == null ? com.google.container.v1.SandboxConfig.getDefaultInstance() : sandboxConfig_; + } + + public static final int NODE_GROUP_FIELD_NUMBER = 18; + @SuppressWarnings("serial") + private volatile java.lang.Object nodeGroup_ = ""; + /** + *
+   * Setting this field will assign instances of this
+   * pool to run on the specified node group. This is useful for running
+   * workloads on [sole tenant
+   * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
+   * 
+ * + * string node_group = 18; + * @return The nodeGroup. + */ + @java.lang.Override + public java.lang.String getNodeGroup() { + java.lang.Object ref = nodeGroup_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeGroup_ = s; + return s; + } + } + /** + *
+   * Setting this field will assign instances of this
+   * pool to run on the specified node group. This is useful for running
+   * workloads on [sole tenant
+   * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
+   * 
+ * + * string node_group = 18; + * @return The bytes for nodeGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNodeGroupBytes() { + java.lang.Object ref = nodeGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESERVATION_AFFINITY_FIELD_NUMBER = 19; + private com.google.container.v1.ReservationAffinity reservationAffinity_; + /** + *
+   * The optional reservation affinity. Setting this field will apply
+   * the specified [Zonal Compute
+   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+   * to this node pool.
+   * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + * @return Whether the reservationAffinity field is set. + */ + @java.lang.Override + public boolean hasReservationAffinity() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+   * The optional reservation affinity. Setting this field will apply
+   * the specified [Zonal Compute
+   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+   * to this node pool.
+   * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + * @return The reservationAffinity. + */ + @java.lang.Override + public com.google.container.v1.ReservationAffinity getReservationAffinity() { + return reservationAffinity_ == null ? com.google.container.v1.ReservationAffinity.getDefaultInstance() : reservationAffinity_; + } + /** + *
+   * The optional reservation affinity. Setting this field will apply
+   * the specified [Zonal Compute
+   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+   * to this node pool.
+   * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + */ + @java.lang.Override + public com.google.container.v1.ReservationAffinityOrBuilder getReservationAffinityOrBuilder() { + return reservationAffinity_ == null ? com.google.container.v1.ReservationAffinity.getDefaultInstance() : reservationAffinity_; + } + + public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER = 20; + private com.google.container.v1.ShieldedInstanceConfig shieldedInstanceConfig_; + /** + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + * @return Whether the shieldedInstanceConfig field is set. + */ + @java.lang.Override + public boolean hasShieldedInstanceConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + * @return The shieldedInstanceConfig. + */ + @java.lang.Override + public com.google.container.v1.ShieldedInstanceConfig getShieldedInstanceConfig() { + return shieldedInstanceConfig_ == null ? com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + } + /** + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + @java.lang.Override + public com.google.container.v1.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { + return shieldedInstanceConfig_ == null ? com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + } + + public static final int LINUX_NODE_CONFIG_FIELD_NUMBER = 21; + private com.google.container.v1.LinuxNodeConfig linuxNodeConfig_; + /** + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; + * @return Whether the linuxNodeConfig field is set. + */ + @java.lang.Override + public boolean hasLinuxNodeConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; + * @return The linuxNodeConfig. + */ + @java.lang.Override + public com.google.container.v1.LinuxNodeConfig getLinuxNodeConfig() { + return linuxNodeConfig_ == null ? com.google.container.v1.LinuxNodeConfig.getDefaultInstance() : linuxNodeConfig_; + } + /** + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; + */ + @java.lang.Override + public com.google.container.v1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder() { + return linuxNodeConfig_ == null ? com.google.container.v1.LinuxNodeConfig.getDefaultInstance() : linuxNodeConfig_; + } + + public static final int KUBELET_CONFIG_FIELD_NUMBER = 22; + private com.google.container.v1.NodeKubeletConfig kubeletConfig_; + /** + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + * @return Whether the kubeletConfig field is set. + */ + @java.lang.Override + public boolean hasKubeletConfig() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + * @return The kubeletConfig. + */ + @java.lang.Override + public com.google.container.v1.NodeKubeletConfig getKubeletConfig() { + return kubeletConfig_ == null ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() : kubeletConfig_; + } + /** + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + */ + @java.lang.Override + public com.google.container.v1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder() { + return kubeletConfig_ == null ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() : kubeletConfig_; + } + + public static final int BOOT_DISK_KMS_KEY_FIELD_NUMBER = 23; + @SuppressWarnings("serial") + 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 GCFS_CONFIG_FIELD_NUMBER = 25; + private com.google.container.v1.GcfsConfig gcfsConfig_; + /** + *
+   * Google Container File System (image streaming) configs.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + * @return Whether the gcfsConfig field is set. + */ + @java.lang.Override + public boolean hasGcfsConfig() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+   * Google Container File System (image streaming) configs.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + * @return The gcfsConfig. + */ + @java.lang.Override + public com.google.container.v1.GcfsConfig getGcfsConfig() { + return gcfsConfig_ == null ? com.google.container.v1.GcfsConfig.getDefaultInstance() : gcfsConfig_; + } + /** + *
+   * Google Container File System (image streaming) configs.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + */ + @java.lang.Override + public com.google.container.v1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { + return gcfsConfig_ == null ? com.google.container.v1.GcfsConfig.getDefaultInstance() : gcfsConfig_; + } + + public static final int ADVANCED_MACHINE_FEATURES_FIELD_NUMBER = 26; + private com.google.container.v1.AdvancedMachineFeatures advancedMachineFeatures_; + /** + *
+   * Advanced features for the Compute Engine VM.
+   * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + * @return Whether the advancedMachineFeatures field is set. + */ + @java.lang.Override + public boolean hasAdvancedMachineFeatures() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+   * Advanced features for the Compute Engine VM.
+   * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + * @return The advancedMachineFeatures. + */ + @java.lang.Override + public com.google.container.v1.AdvancedMachineFeatures getAdvancedMachineFeatures() { + return advancedMachineFeatures_ == null ? com.google.container.v1.AdvancedMachineFeatures.getDefaultInstance() : advancedMachineFeatures_; + } + /** + *
+   * Advanced features for the Compute Engine VM.
+   * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + */ + @java.lang.Override + public com.google.container.v1.AdvancedMachineFeaturesOrBuilder getAdvancedMachineFeaturesOrBuilder() { + return advancedMachineFeatures_ == null ? com.google.container.v1.AdvancedMachineFeatures.getDefaultInstance() : advancedMachineFeatures_; + } + + public static final int GVNIC_FIELD_NUMBER = 29; + private com.google.container.v1.VirtualNIC gvnic_; + /** + *
+   * Enable or disable gvnic in the node pool.
+   * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + * @return Whether the gvnic field is set. + */ + @java.lang.Override + public boolean hasGvnic() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + *
+   * Enable or disable gvnic in the node pool.
+   * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + * @return The gvnic. + */ + @java.lang.Override + public com.google.container.v1.VirtualNIC getGvnic() { + return gvnic_ == null ? com.google.container.v1.VirtualNIC.getDefaultInstance() : gvnic_; + } + /** + *
+   * Enable or disable gvnic in the node pool.
+   * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + @java.lang.Override + public com.google.container.v1.VirtualNICOrBuilder getGvnicOrBuilder() { + return gvnic_ == null ? com.google.container.v1.VirtualNIC.getDefaultInstance() : gvnic_; + } + + public static final int SPOT_FIELD_NUMBER = 32; + private boolean spot_ = false; + /** + *
+   * Spot flag for enabling Spot VM, which is a rebrand of
+   * the existing preemptible flag.
+   * 
+ * + * bool spot = 32; + * @return The spot. + */ + @java.lang.Override + public boolean getSpot() { + return spot_; + } + + public static final int CONFIDENTIAL_NODES_FIELD_NUMBER = 35; + private com.google.container.v1.ConfidentialNodes confidentialNodes_; + /** + *
+   * Confidential nodes config.
+   * All the nodes in the node pool will be Confidential VM once enabled.
+   * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 35; + * @return Whether the confidentialNodes field is set. + */ + @java.lang.Override + public boolean hasConfidentialNodes() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + *
+   * Confidential nodes config.
+   * All the nodes in the node pool will be Confidential VM once enabled.
+   * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 35; + * @return The confidentialNodes. + */ + @java.lang.Override + public com.google.container.v1.ConfidentialNodes getConfidentialNodes() { + return confidentialNodes_ == null ? com.google.container.v1.ConfidentialNodes.getDefaultInstance() : confidentialNodes_; + } + /** + *
+   * Confidential nodes config.
+   * All the nodes in the node pool will be Confidential VM once enabled.
+   * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 35; + */ + @java.lang.Override + public com.google.container.v1.ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder() { + return confidentialNodes_ == null ? com.google.container.v1.ConfidentialNodes.getDefaultInstance() : confidentialNodes_; + } + + public static final int FAST_SOCKET_FIELD_NUMBER = 36; + private com.google.container.v1.FastSocket fastSocket_; + /** + *
+   * Enable or disable NCCL fast socket for the node pool.
+   * 
+ * + * optional .google.container.v1.FastSocket fast_socket = 36; + * @return Whether the fastSocket field is set. + */ + @java.lang.Override + public boolean hasFastSocket() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + *
+   * Enable or disable NCCL fast socket for the node pool.
+   * 
+ * + * optional .google.container.v1.FastSocket fast_socket = 36; + * @return The fastSocket. + */ + @java.lang.Override + public com.google.container.v1.FastSocket getFastSocket() { + return fastSocket_ == null ? com.google.container.v1.FastSocket.getDefaultInstance() : fastSocket_; + } + /** + *
+   * Enable or disable NCCL fast socket for the node pool.
+   * 
+ * + * optional .google.container.v1.FastSocket fast_socket = 36; + */ + @java.lang.Override + public com.google.container.v1.FastSocketOrBuilder getFastSocketOrBuilder() { + return fastSocket_ == null ? com.google.container.v1.FastSocket.getDefaultInstance() : fastSocket_; + } + + public static final int RESOURCE_LABELS_FIELD_NUMBER = 37; + private static final class ResourceLabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeConfig_ResourceLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> resourceLabels_; + private com.google.protobuf.MapField + internalGetResourceLabels() { + if (resourceLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + return resourceLabels_; + } + public int getResourceLabelsCount() { + return internalGetResourceLabels().getMap().size(); + } + /** + *
+   * The resource labels for the node pool to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 37; + */ + @java.lang.Override + public boolean containsResourceLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + 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 node pool to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 37; + */ + @java.lang.Override + public java.util.Map getResourceLabelsMap() { + return internalGetResourceLabels().getMap(); + } + /** + *
+   * The resource labels for the node pool to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 37; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getResourceLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetResourceLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * The resource labels for the node pool to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 37; + */ + @java.lang.Override + public java.lang.String getResourceLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetResourceLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int LOGGING_CONFIG_FIELD_NUMBER = 38; + private com.google.container.v1.NodePoolLoggingConfig loggingConfig_; + /** + *
+   * Logging configuration.
+   * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 38; + * @return Whether the loggingConfig field is set. + */ + @java.lang.Override + public boolean hasLoggingConfig() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + *
+   * Logging configuration.
+   * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 38; + * @return The loggingConfig. + */ + @java.lang.Override + public com.google.container.v1.NodePoolLoggingConfig getLoggingConfig() { + return loggingConfig_ == null ? com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance() : loggingConfig_; + } + /** + *
+   * Logging configuration.
+   * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 38; + */ + @java.lang.Override + public com.google.container.v1.NodePoolLoggingConfigOrBuilder getLoggingConfigOrBuilder() { + return loggingConfig_ == null ? com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance() : loggingConfig_; + } + + public static final int WINDOWS_NODE_CONFIG_FIELD_NUMBER = 39; + private com.google.container.v1.WindowsNodeConfig windowsNodeConfig_; + /** + *
+   * Parameters that can be configured on Windows nodes.
+   * 
+ * + * .google.container.v1.WindowsNodeConfig windows_node_config = 39; + * @return Whether the windowsNodeConfig field is set. + */ + @java.lang.Override + public boolean hasWindowsNodeConfig() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + *
+   * Parameters that can be configured on Windows nodes.
+   * 
+ * + * .google.container.v1.WindowsNodeConfig windows_node_config = 39; + * @return The windowsNodeConfig. + */ + @java.lang.Override + public com.google.container.v1.WindowsNodeConfig getWindowsNodeConfig() { + return windowsNodeConfig_ == null ? com.google.container.v1.WindowsNodeConfig.getDefaultInstance() : windowsNodeConfig_; + } + /** + *
+   * Parameters that can be configured on Windows nodes.
+   * 
+ * + * .google.container.v1.WindowsNodeConfig windows_node_config = 39; + */ + @java.lang.Override + public com.google.container.v1.WindowsNodeConfigOrBuilder getWindowsNodeConfigOrBuilder() { + return windowsNodeConfig_ == null ? com.google.container.v1.WindowsNodeConfig.getDefaultInstance() : windowsNodeConfig_; + } + + public static final int LOCAL_NVME_SSD_BLOCK_CONFIG_FIELD_NUMBER = 40; + private com.google.container.v1.LocalNvmeSsdBlockConfig localNvmeSsdBlockConfig_; + /** + *
+   * Parameters for using raw-block Local NVMe SSDs.
+   * 
+ * + * .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; + * @return Whether the localNvmeSsdBlockConfig field is set. + */ + @java.lang.Override + public boolean hasLocalNvmeSsdBlockConfig() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + *
+   * Parameters for using raw-block Local NVMe SSDs.
+   * 
+ * + * .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; + * @return The localNvmeSsdBlockConfig. + */ + @java.lang.Override + public com.google.container.v1.LocalNvmeSsdBlockConfig getLocalNvmeSsdBlockConfig() { + return localNvmeSsdBlockConfig_ == null ? com.google.container.v1.LocalNvmeSsdBlockConfig.getDefaultInstance() : localNvmeSsdBlockConfig_; + } + /** + *
+   * Parameters for using raw-block Local NVMe SSDs.
+   * 
+ * + * .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; + */ + @java.lang.Override + public com.google.container.v1.LocalNvmeSsdBlockConfigOrBuilder getLocalNvmeSsdBlockConfigOrBuilder() { + return localNvmeSsdBlockConfig_ == null ? com.google.container.v1.LocalNvmeSsdBlockConfig.getDefaultInstance() : localNvmeSsdBlockConfig_; + } + + public static final int EPHEMERAL_STORAGE_LOCAL_SSD_CONFIG_FIELD_NUMBER = 41; + private com.google.container.v1.EphemeralStorageLocalSsdConfig ephemeralStorageLocalSsdConfig_; + /** + *
+   * Parameters for the node ephemeral storage using Local SSDs.
+   * If unspecified, ephemeral storage is backed by the boot disk.
+   * 
+ * + * .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; + * @return Whether the ephemeralStorageLocalSsdConfig field is set. + */ + @java.lang.Override + public boolean hasEphemeralStorageLocalSsdConfig() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + *
+   * Parameters for the node ephemeral storage using Local SSDs.
+   * If unspecified, ephemeral storage is backed by the boot disk.
+   * 
+ * + * .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; + * @return The ephemeralStorageLocalSsdConfig. + */ + @java.lang.Override + public com.google.container.v1.EphemeralStorageLocalSsdConfig getEphemeralStorageLocalSsdConfig() { + return ephemeralStorageLocalSsdConfig_ == null ? com.google.container.v1.EphemeralStorageLocalSsdConfig.getDefaultInstance() : ephemeralStorageLocalSsdConfig_; + } + /** + *
+   * Parameters for the node ephemeral storage using Local SSDs.
+   * If unspecified, ephemeral storage is backed by the boot disk.
+   * 
+ * + * .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; + */ + @java.lang.Override + public com.google.container.v1.EphemeralStorageLocalSsdConfigOrBuilder getEphemeralStorageLocalSsdConfigOrBuilder() { + return ephemeralStorageLocalSsdConfig_ == null ? com.google.container.v1.EphemeralStorageLocalSsdConfig.getDefaultInstance() : ephemeralStorageLocalSsdConfig_; + } + + public static final int SOLE_TENANT_CONFIG_FIELD_NUMBER = 42; + private com.google.container.v1.SoleTenantConfig soleTenantConfig_; + /** + *
+   * Parameters for node pools to be backed by shared sole tenant node groups.
+   * 
+ * + * .google.container.v1.SoleTenantConfig sole_tenant_config = 42; + * @return Whether the soleTenantConfig field is set. + */ + @java.lang.Override + public boolean hasSoleTenantConfig() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + *
+   * Parameters for node pools to be backed by shared sole tenant node groups.
+   * 
+ * + * .google.container.v1.SoleTenantConfig sole_tenant_config = 42; + * @return The soleTenantConfig. + */ + @java.lang.Override + public com.google.container.v1.SoleTenantConfig getSoleTenantConfig() { + return soleTenantConfig_ == null ? com.google.container.v1.SoleTenantConfig.getDefaultInstance() : soleTenantConfig_; + } + /** + *
+   * Parameters for node pools to be backed by shared sole tenant node groups.
+   * 
+ * + * .google.container.v1.SoleTenantConfig sole_tenant_config = 42; + */ + @java.lang.Override + public com.google.container.v1.SoleTenantConfigOrBuilder getSoleTenantConfigOrBuilder() { + return soleTenantConfig_ == null ? com.google.container.v1.SoleTenantConfig.getDefaultInstance() : soleTenantConfig_; + } + + public static final int RESOURCE_MANAGER_TAGS_FIELD_NUMBER = 45; + private com.google.container.v1.ResourceManagerTags resourceManagerTags_; + /** + *
+   * A map of resource manager tag keys and values to be attached to the nodes.
+   * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 45; + * @return Whether the resourceManagerTags field is set. + */ + @java.lang.Override + public boolean hasResourceManagerTags() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + *
+   * A map of resource manager tag keys and values to be attached to the nodes.
+   * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 45; + * @return The resourceManagerTags. + */ + @java.lang.Override + public com.google.container.v1.ResourceManagerTags getResourceManagerTags() { + return resourceManagerTags_ == null ? com.google.container.v1.ResourceManagerTags.getDefaultInstance() : resourceManagerTags_; + } + /** + *
+   * A map of resource manager tag keys and values to be attached to the nodes.
+   * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 45; + */ + @java.lang.Override + public com.google.container.v1.ResourceManagerTagsOrBuilder getResourceManagerTagsOrBuilder() { + return resourceManagerTags_ == null ? com.google.container.v1.ResourceManagerTags.getDefaultInstance() : resourceManagerTags_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageType_)) { + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, diskType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minCpuPlatform_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, minCpuPlatform_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(14, getWorkloadMetadataConfig()); + } + for (int i = 0; i < taints_.size(); i++) { + output.writeMessage(15, taints_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(17, getSandboxConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeGroup_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 18, nodeGroup_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(19, getReservationAffinity()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(20, getShieldedInstanceConfig()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(21, getLinuxNodeConfig()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(22, getKubeletConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootDiskKmsKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 23, bootDiskKmsKey_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(25, getGcfsConfig()); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(26, getAdvancedMachineFeatures()); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(29, getGvnic()); + } + if (spot_ != false) { + output.writeBool(32, spot_); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeMessage(35, getConfidentialNodes()); + } + if (((bitField0_ & 0x00000400) != 0)) { + output.writeMessage(36, getFastSocket()); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetResourceLabels(), + ResourceLabelsDefaultEntryHolder.defaultEntry, + 37); + if (((bitField0_ & 0x00000800) != 0)) { + output.writeMessage(38, getLoggingConfig()); + } + if (((bitField0_ & 0x00001000) != 0)) { + output.writeMessage(39, getWindowsNodeConfig()); + } + if (((bitField0_ & 0x00002000) != 0)) { + output.writeMessage(40, getLocalNvmeSsdBlockConfig()); + } + if (((bitField0_ & 0x00004000) != 0)) { + output.writeMessage(41, getEphemeralStorageLocalSsdConfig()); + } + if (((bitField0_ & 0x00008000) != 0)) { + output.writeMessage(42, getSoleTenantConfig()); + } + if (((bitField0_ & 0x00010000) != 0)) { + output.writeMessage(45, getResourceManagerTags()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageType_)) { + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, diskType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minCpuPlatform_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, minCpuPlatform_); + } + if (((bitField0_ & 0x00000001) != 0)) { + 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 (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getSandboxConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeGroup_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, nodeGroup_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, getReservationAffinity()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(20, getShieldedInstanceConfig()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, getLinuxNodeConfig()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(22, getKubeletConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootDiskKmsKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, bootDiskKmsKey_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(25, getGcfsConfig()); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(26, getAdvancedMachineFeatures()); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(29, getGvnic()); + } + if (spot_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(32, spot_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(35, getConfidentialNodes()); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(36, getFastSocket()); + } + 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(37, resourceLabels__); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(38, getLoggingConfig()); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(39, getWindowsNodeConfig()); + } + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(40, getLocalNvmeSsdBlockConfig()); + } + if (((bitField0_ & 0x00004000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(41, getEphemeralStorageLocalSsdConfig()); + } + if (((bitField0_ & 0x00008000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(42, getSoleTenantConfig()); + } + if (((bitField0_ & 0x00010000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(45, getResourceManagerTags()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.NodeConfig)) { + return super.equals(obj); + } + com.google.container.v1.NodeConfig other = (com.google.container.v1.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 (!getDiskType() + .equals(other.getDiskType())) return false; + if (!getMinCpuPlatform() + .equals(other.getMinCpuPlatform())) return false; + if (hasWorkloadMetadataConfig() != other.hasWorkloadMetadataConfig()) return false; + if (hasWorkloadMetadataConfig()) { + if (!getWorkloadMetadataConfig() + .equals(other.getWorkloadMetadataConfig())) return false; + } + if (!getTaintsList() + .equals(other.getTaintsList())) return false; + if (hasSandboxConfig() != other.hasSandboxConfig()) return false; + if (hasSandboxConfig()) { + if (!getSandboxConfig() + .equals(other.getSandboxConfig())) return false; + } + if (!getNodeGroup() + .equals(other.getNodeGroup())) return false; + if (hasReservationAffinity() != other.hasReservationAffinity()) return false; + if (hasReservationAffinity()) { + if (!getReservationAffinity() + .equals(other.getReservationAffinity())) return false; + } + if (hasShieldedInstanceConfig() != other.hasShieldedInstanceConfig()) return false; + if (hasShieldedInstanceConfig()) { + if (!getShieldedInstanceConfig() + .equals(other.getShieldedInstanceConfig())) return false; + } + if (hasLinuxNodeConfig() != other.hasLinuxNodeConfig()) return false; + if (hasLinuxNodeConfig()) { + if (!getLinuxNodeConfig() + .equals(other.getLinuxNodeConfig())) return false; + } + if (hasKubeletConfig() != other.hasKubeletConfig()) return false; + if (hasKubeletConfig()) { + if (!getKubeletConfig() + .equals(other.getKubeletConfig())) return false; + } + if (!getBootDiskKmsKey() + .equals(other.getBootDiskKmsKey())) return false; + if (hasGcfsConfig() != other.hasGcfsConfig()) return false; + if (hasGcfsConfig()) { + if (!getGcfsConfig() + .equals(other.getGcfsConfig())) return false; + } + if (hasAdvancedMachineFeatures() != other.hasAdvancedMachineFeatures()) return false; + if (hasAdvancedMachineFeatures()) { + if (!getAdvancedMachineFeatures() + .equals(other.getAdvancedMachineFeatures())) return false; + } + if (hasGvnic() != other.hasGvnic()) return false; + if (hasGvnic()) { + if (!getGvnic() + .equals(other.getGvnic())) return false; + } + if (getSpot() + != other.getSpot()) return false; + if (hasConfidentialNodes() != other.hasConfidentialNodes()) return false; + if (hasConfidentialNodes()) { + if (!getConfidentialNodes() + .equals(other.getConfidentialNodes())) return false; + } + if (hasFastSocket() != other.hasFastSocket()) return false; + if (hasFastSocket()) { + if (!getFastSocket() + .equals(other.getFastSocket())) return false; + } + if (!internalGetResourceLabels().equals( + other.internalGetResourceLabels())) return false; + if (hasLoggingConfig() != other.hasLoggingConfig()) return false; + if (hasLoggingConfig()) { + if (!getLoggingConfig() + .equals(other.getLoggingConfig())) return false; + } + if (hasWindowsNodeConfig() != other.hasWindowsNodeConfig()) return false; + if (hasWindowsNodeConfig()) { + if (!getWindowsNodeConfig() + .equals(other.getWindowsNodeConfig())) return false; + } + if (hasLocalNvmeSsdBlockConfig() != other.hasLocalNvmeSsdBlockConfig()) return false; + if (hasLocalNvmeSsdBlockConfig()) { + if (!getLocalNvmeSsdBlockConfig() + .equals(other.getLocalNvmeSsdBlockConfig())) return false; + } + if (hasEphemeralStorageLocalSsdConfig() != other.hasEphemeralStorageLocalSsdConfig()) return false; + if (hasEphemeralStorageLocalSsdConfig()) { + if (!getEphemeralStorageLocalSsdConfig() + .equals(other.getEphemeralStorageLocalSsdConfig())) return false; + } + if (hasSoleTenantConfig() != other.hasSoleTenantConfig()) return false; + if (hasSoleTenantConfig()) { + if (!getSoleTenantConfig() + .equals(other.getSoleTenantConfig())) return false; + } + if (hasResourceManagerTags() != other.hasResourceManagerTags()) return false; + if (hasResourceManagerTags()) { + if (!getResourceManagerTags() + .equals(other.getResourceManagerTags())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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(); + } + 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(); + } + if (hasSandboxConfig()) { + hash = (37 * hash) + SANDBOX_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSandboxConfig().hashCode(); + } + hash = (37 * hash) + NODE_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getNodeGroup().hashCode(); + if (hasReservationAffinity()) { + hash = (37 * hash) + RESERVATION_AFFINITY_FIELD_NUMBER; + hash = (53 * hash) + getReservationAffinity().hashCode(); + } + if (hasShieldedInstanceConfig()) { + hash = (37 * hash) + SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getShieldedInstanceConfig().hashCode(); + } + if (hasLinuxNodeConfig()) { + hash = (37 * hash) + LINUX_NODE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getLinuxNodeConfig().hashCode(); + } + if (hasKubeletConfig()) { + hash = (37 * hash) + KUBELET_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getKubeletConfig().hashCode(); + } + hash = (37 * hash) + BOOT_DISK_KMS_KEY_FIELD_NUMBER; + hash = (53 * hash) + getBootDiskKmsKey().hashCode(); + if (hasGcfsConfig()) { + hash = (37 * hash) + GCFS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGcfsConfig().hashCode(); + } + if (hasAdvancedMachineFeatures()) { + hash = (37 * hash) + ADVANCED_MACHINE_FEATURES_FIELD_NUMBER; + hash = (53 * hash) + getAdvancedMachineFeatures().hashCode(); + } + if (hasGvnic()) { + hash = (37 * hash) + GVNIC_FIELD_NUMBER; + hash = (53 * hash) + getGvnic().hashCode(); + } + hash = (37 * hash) + SPOT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSpot()); + if (hasConfidentialNodes()) { + hash = (37 * hash) + CONFIDENTIAL_NODES_FIELD_NUMBER; + hash = (53 * hash) + getConfidentialNodes().hashCode(); + } + if (hasFastSocket()) { + hash = (37 * hash) + FAST_SOCKET_FIELD_NUMBER; + hash = (53 * hash) + getFastSocket().hashCode(); + } + if (!internalGetResourceLabels().getMap().isEmpty()) { + hash = (37 * hash) + RESOURCE_LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetResourceLabels().hashCode(); + } + if (hasLoggingConfig()) { + hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getLoggingConfig().hashCode(); + } + if (hasWindowsNodeConfig()) { + hash = (37 * hash) + WINDOWS_NODE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getWindowsNodeConfig().hashCode(); + } + if (hasLocalNvmeSsdBlockConfig()) { + hash = (37 * hash) + LOCAL_NVME_SSD_BLOCK_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getLocalNvmeSsdBlockConfig().hashCode(); + } + if (hasEphemeralStorageLocalSsdConfig()) { + hash = (37 * hash) + EPHEMERAL_STORAGE_LOCAL_SSD_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getEphemeralStorageLocalSsdConfig().hashCode(); + } + if (hasSoleTenantConfig()) { + hash = (37 * hash) + SOLE_TENANT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSoleTenantConfig().hashCode(); + } + if (hasResourceManagerTags()) { + hash = (37 * hash) + RESOURCE_MANAGER_TAGS_FIELD_NUMBER; + hash = (53 * hash) + getResourceManagerTags().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.NodeConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.NodeConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.NodeConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodeConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodeConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.NodeConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.NodeConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.
+   *
+   * GKE Autopilot clusters do not
+   * recognize parameters in `NodeConfig`. Use
+   * [AutoprovisioningNodePoolDefaults][google.container.v1.AutoprovisioningNodePoolDefaults]
+   * instead.
+   * 
+ * + * Protobuf type {@code google.container.v1.NodeConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.NodeConfig) + com.google.container.v1.NodeConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMetadata(); + case 6: + return internalGetLabels(); + case 37: + return internalGetResourceLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableMetadata(); + case 6: + return internalGetMutableLabels(); + case 37: + 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.v1.ClusterServiceProto.internal_static_google_container_v1_NodeConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodeConfig.class, com.google.container.v1.NodeConfig.Builder.class); + } + + // Construct using com.google.container.v1.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(); + getWorkloadMetadataConfigFieldBuilder(); + getTaintsFieldBuilder(); + getSandboxConfigFieldBuilder(); + getReservationAffinityFieldBuilder(); + getShieldedInstanceConfigFieldBuilder(); + getLinuxNodeConfigFieldBuilder(); + getKubeletConfigFieldBuilder(); + getGcfsConfigFieldBuilder(); + getAdvancedMachineFeaturesFieldBuilder(); + getGvnicFieldBuilder(); + getConfidentialNodesFieldBuilder(); + getFastSocketFieldBuilder(); + getLoggingConfigFieldBuilder(); + getWindowsNodeConfigFieldBuilder(); + getLocalNvmeSsdBlockConfigFieldBuilder(); + getEphemeralStorageLocalSsdConfigFieldBuilder(); + getSoleTenantConfigFieldBuilder(); + getResourceManagerTagsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bitField1_ = 0; + machineType_ = ""; + diskSizeGb_ = 0; + oauthScopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + serviceAccount_ = ""; + internalGetMutableMetadata().clear(); + imageType_ = ""; + internalGetMutableLabels().clear(); + localSsdCount_ = 0; + tags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + preemptible_ = false; + if (acceleratorsBuilder_ == null) { + accelerators_ = java.util.Collections.emptyList(); + } else { + accelerators_ = null; + acceleratorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000400); + diskType_ = ""; + minCpuPlatform_ = ""; + workloadMetadataConfig_ = null; + if (workloadMetadataConfigBuilder_ != null) { + workloadMetadataConfigBuilder_.dispose(); + workloadMetadataConfigBuilder_ = null; + } + if (taintsBuilder_ == null) { + taints_ = java.util.Collections.emptyList(); + } else { + taints_ = null; + taintsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00004000); + sandboxConfig_ = null; + if (sandboxConfigBuilder_ != null) { + sandboxConfigBuilder_.dispose(); + sandboxConfigBuilder_ = null; + } + nodeGroup_ = ""; + reservationAffinity_ = null; + if (reservationAffinityBuilder_ != null) { + reservationAffinityBuilder_.dispose(); + reservationAffinityBuilder_ = null; + } + shieldedInstanceConfig_ = null; + if (shieldedInstanceConfigBuilder_ != null) { + shieldedInstanceConfigBuilder_.dispose(); + shieldedInstanceConfigBuilder_ = null; + } + linuxNodeConfig_ = null; + if (linuxNodeConfigBuilder_ != null) { + linuxNodeConfigBuilder_.dispose(); + linuxNodeConfigBuilder_ = null; + } + kubeletConfig_ = null; + if (kubeletConfigBuilder_ != null) { + kubeletConfigBuilder_.dispose(); + kubeletConfigBuilder_ = null; + } + bootDiskKmsKey_ = ""; + gcfsConfig_ = null; + if (gcfsConfigBuilder_ != null) { + gcfsConfigBuilder_.dispose(); + gcfsConfigBuilder_ = null; + } + advancedMachineFeatures_ = null; + if (advancedMachineFeaturesBuilder_ != null) { + advancedMachineFeaturesBuilder_.dispose(); + advancedMachineFeaturesBuilder_ = null; + } + gvnic_ = null; + if (gvnicBuilder_ != null) { + gvnicBuilder_.dispose(); + gvnicBuilder_ = null; + } + spot_ = false; + confidentialNodes_ = null; + if (confidentialNodesBuilder_ != null) { + confidentialNodesBuilder_.dispose(); + confidentialNodesBuilder_ = null; + } + fastSocket_ = null; + if (fastSocketBuilder_ != null) { + fastSocketBuilder_.dispose(); + fastSocketBuilder_ = null; + } + internalGetMutableResourceLabels().clear(); + loggingConfig_ = null; + if (loggingConfigBuilder_ != null) { + loggingConfigBuilder_.dispose(); + loggingConfigBuilder_ = null; + } + windowsNodeConfig_ = null; + if (windowsNodeConfigBuilder_ != null) { + windowsNodeConfigBuilder_.dispose(); + windowsNodeConfigBuilder_ = null; + } + localNvmeSsdBlockConfig_ = null; + if (localNvmeSsdBlockConfigBuilder_ != null) { + localNvmeSsdBlockConfigBuilder_.dispose(); + localNvmeSsdBlockConfigBuilder_ = null; + } + ephemeralStorageLocalSsdConfig_ = null; + if (ephemeralStorageLocalSsdConfigBuilder_ != null) { + ephemeralStorageLocalSsdConfigBuilder_.dispose(); + ephemeralStorageLocalSsdConfigBuilder_ = null; + } + soleTenantConfig_ = null; + if (soleTenantConfigBuilder_ != null) { + soleTenantConfigBuilder_.dispose(); + soleTenantConfigBuilder_ = null; + } + resourceManagerTags_ = null; + if (resourceManagerTagsBuilder_ != null) { + resourceManagerTagsBuilder_.dispose(); + resourceManagerTagsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NodeConfig getDefaultInstanceForType() { + return com.google.container.v1.NodeConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NodeConfig build() { + com.google.container.v1.NodeConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NodeConfig buildPartial() { + com.google.container.v1.NodeConfig result = new com.google.container.v1.NodeConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + if (bitField1_ != 0) { buildPartial1(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1.NodeConfig result) { + if (acceleratorsBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0)) { + accelerators_ = java.util.Collections.unmodifiableList(accelerators_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.accelerators_ = accelerators_; + } else { + result.accelerators_ = acceleratorsBuilder_.build(); + } + if (taintsBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0)) { + taints_ = java.util.Collections.unmodifiableList(taints_); + bitField0_ = (bitField0_ & ~0x00004000); + } + result.taints_ = taints_; + } else { + result.taints_ = taintsBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1.NodeConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.machineType_ = machineType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.diskSizeGb_ = diskSizeGb_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + oauthScopes_.makeImmutable(); + result.oauthScopes_ = oauthScopes_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.serviceAccount_ = serviceAccount_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.metadata_ = internalGetMetadata(); + result.metadata_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.imageType_ = imageType_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.localSsdCount_ = localSsdCount_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + tags_.makeImmutable(); + result.tags_ = tags_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.preemptible_ = preemptible_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.diskType_ = diskType_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.minCpuPlatform_ = minCpuPlatform_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00002000) != 0)) { + result.workloadMetadataConfig_ = workloadMetadataConfigBuilder_ == null + ? workloadMetadataConfig_ + : workloadMetadataConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.sandboxConfig_ = sandboxConfigBuilder_ == null + ? sandboxConfig_ + : sandboxConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.nodeGroup_ = nodeGroup_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.reservationAffinity_ = reservationAffinityBuilder_ == null + ? reservationAffinity_ + : reservationAffinityBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.shieldedInstanceConfig_ = shieldedInstanceConfigBuilder_ == null + ? shieldedInstanceConfig_ + : shieldedInstanceConfigBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.linuxNodeConfig_ = linuxNodeConfigBuilder_ == null + ? linuxNodeConfig_ + : linuxNodeConfigBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.kubeletConfig_ = kubeletConfigBuilder_ == null + ? kubeletConfig_ + : kubeletConfigBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.bootDiskKmsKey_ = bootDiskKmsKey_; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.gcfsConfig_ = gcfsConfigBuilder_ == null + ? gcfsConfig_ + : gcfsConfigBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.advancedMachineFeatures_ = advancedMachineFeaturesBuilder_ == null + ? advancedMachineFeatures_ + : advancedMachineFeaturesBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x01000000) != 0)) { + result.gvnic_ = gvnicBuilder_ == null + ? gvnic_ + : gvnicBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x02000000) != 0)) { + result.spot_ = spot_; + } + if (((from_bitField0_ & 0x04000000) != 0)) { + result.confidentialNodes_ = confidentialNodesBuilder_ == null + ? confidentialNodes_ + : confidentialNodesBuilder_.build(); + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x08000000) != 0)) { + result.fastSocket_ = fastSocketBuilder_ == null + ? fastSocket_ + : fastSocketBuilder_.build(); + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x10000000) != 0)) { + result.resourceLabels_ = internalGetResourceLabels(); + result.resourceLabels_.makeImmutable(); + } + if (((from_bitField0_ & 0x20000000) != 0)) { + result.loggingConfig_ = loggingConfigBuilder_ == null + ? loggingConfig_ + : loggingConfigBuilder_.build(); + to_bitField0_ |= 0x00000800; + } + if (((from_bitField0_ & 0x40000000) != 0)) { + result.windowsNodeConfig_ = windowsNodeConfigBuilder_ == null + ? windowsNodeConfig_ + : windowsNodeConfigBuilder_.build(); + to_bitField0_ |= 0x00001000; + } + if (((from_bitField0_ & 0x80000000) != 0)) { + result.localNvmeSsdBlockConfig_ = localNvmeSsdBlockConfigBuilder_ == null + ? localNvmeSsdBlockConfig_ + : localNvmeSsdBlockConfigBuilder_.build(); + to_bitField0_ |= 0x00002000; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartial1(com.google.container.v1.NodeConfig result) { + int from_bitField1_ = bitField1_; + int to_bitField0_ = 0; + if (((from_bitField1_ & 0x00000001) != 0)) { + result.ephemeralStorageLocalSsdConfig_ = ephemeralStorageLocalSsdConfigBuilder_ == null + ? ephemeralStorageLocalSsdConfig_ + : ephemeralStorageLocalSsdConfigBuilder_.build(); + to_bitField0_ |= 0x00004000; + } + if (((from_bitField1_ & 0x00000002) != 0)) { + result.soleTenantConfig_ = soleTenantConfigBuilder_ == null + ? soleTenantConfig_ + : soleTenantConfigBuilder_.build(); + to_bitField0_ |= 0x00008000; + } + if (((from_bitField1_ & 0x00000004) != 0)) { + result.resourceManagerTags_ = resourceManagerTagsBuilder_ == null + ? resourceManagerTags_ + : resourceManagerTagsBuilder_.build(); + to_bitField0_ |= 0x00010000; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.NodeConfig) { + return mergeFrom((com.google.container.v1.NodeConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NodeConfig other) { + if (other == com.google.container.v1.NodeConfig.getDefaultInstance()) return this; + if (!other.getMachineType().isEmpty()) { + machineType_ = other.machineType_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getDiskSizeGb() != 0) { + setDiskSizeGb(other.getDiskSizeGb()); + } + if (!other.oauthScopes_.isEmpty()) { + if (oauthScopes_.isEmpty()) { + oauthScopes_ = other.oauthScopes_; + bitField0_ |= 0x00000004; + } else { + ensureOauthScopesIsMutable(); + oauthScopes_.addAll(other.oauthScopes_); + } + onChanged(); + } + if (!other.getServiceAccount().isEmpty()) { + serviceAccount_ = other.serviceAccount_; + bitField0_ |= 0x00000008; + onChanged(); + } + internalGetMutableMetadata().mergeFrom( + other.internalGetMetadata()); + bitField0_ |= 0x00000010; + if (!other.getImageType().isEmpty()) { + imageType_ = other.imageType_; + bitField0_ |= 0x00000020; + onChanged(); + } + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); + bitField0_ |= 0x00000040; + if (other.getLocalSsdCount() != 0) { + setLocalSsdCount(other.getLocalSsdCount()); + } + if (!other.tags_.isEmpty()) { + if (tags_.isEmpty()) { + tags_ = other.tags_; + bitField0_ |= 0x00000100; + } else { + ensureTagsIsMutable(); + tags_.addAll(other.tags_); + } + onChanged(); + } + if (other.getPreemptible() != false) { + setPreemptible(other.getPreemptible()); + } + if (acceleratorsBuilder_ == null) { + if (!other.accelerators_.isEmpty()) { + if (accelerators_.isEmpty()) { + accelerators_ = other.accelerators_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureAcceleratorsIsMutable(); + accelerators_.addAll(other.accelerators_); + } + onChanged(); + } + } else { + if (!other.accelerators_.isEmpty()) { + if (acceleratorsBuilder_.isEmpty()) { + acceleratorsBuilder_.dispose(); + acceleratorsBuilder_ = null; + accelerators_ = other.accelerators_; + bitField0_ = (bitField0_ & ~0x00000400); + acceleratorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAcceleratorsFieldBuilder() : null; + } else { + acceleratorsBuilder_.addAllMessages(other.accelerators_); + } + } + } + if (!other.getDiskType().isEmpty()) { + diskType_ = other.diskType_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (!other.getMinCpuPlatform().isEmpty()) { + minCpuPlatform_ = other.minCpuPlatform_; + bitField0_ |= 0x00001000; + onChanged(); + } + if (other.hasWorkloadMetadataConfig()) { + mergeWorkloadMetadataConfig(other.getWorkloadMetadataConfig()); + } + if (taintsBuilder_ == null) { + if (!other.taints_.isEmpty()) { + if (taints_.isEmpty()) { + taints_ = other.taints_; + bitField0_ = (bitField0_ & ~0x00004000); + } else { + ensureTaintsIsMutable(); + taints_.addAll(other.taints_); + } + onChanged(); + } + } else { + if (!other.taints_.isEmpty()) { + if (taintsBuilder_.isEmpty()) { + taintsBuilder_.dispose(); + taintsBuilder_ = null; + taints_ = other.taints_; + bitField0_ = (bitField0_ & ~0x00004000); + taintsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTaintsFieldBuilder() : null; + } else { + taintsBuilder_.addAllMessages(other.taints_); + } + } + } + if (other.hasSandboxConfig()) { + mergeSandboxConfig(other.getSandboxConfig()); + } + if (!other.getNodeGroup().isEmpty()) { + nodeGroup_ = other.nodeGroup_; + bitField0_ |= 0x00010000; + onChanged(); + } + if (other.hasReservationAffinity()) { + mergeReservationAffinity(other.getReservationAffinity()); + } + if (other.hasShieldedInstanceConfig()) { + mergeShieldedInstanceConfig(other.getShieldedInstanceConfig()); + } + if (other.hasLinuxNodeConfig()) { + mergeLinuxNodeConfig(other.getLinuxNodeConfig()); + } + if (other.hasKubeletConfig()) { + mergeKubeletConfig(other.getKubeletConfig()); + } + if (!other.getBootDiskKmsKey().isEmpty()) { + bootDiskKmsKey_ = other.bootDiskKmsKey_; + bitField0_ |= 0x00200000; + onChanged(); + } + if (other.hasGcfsConfig()) { + mergeGcfsConfig(other.getGcfsConfig()); + } + if (other.hasAdvancedMachineFeatures()) { + mergeAdvancedMachineFeatures(other.getAdvancedMachineFeatures()); + } + if (other.hasGvnic()) { + mergeGvnic(other.getGvnic()); + } + if (other.getSpot() != false) { + setSpot(other.getSpot()); + } + if (other.hasConfidentialNodes()) { + mergeConfidentialNodes(other.getConfidentialNodes()); + } + if (other.hasFastSocket()) { + mergeFastSocket(other.getFastSocket()); + } + internalGetMutableResourceLabels().mergeFrom( + other.internalGetResourceLabels()); + bitField0_ |= 0x10000000; + if (other.hasLoggingConfig()) { + mergeLoggingConfig(other.getLoggingConfig()); + } + if (other.hasWindowsNodeConfig()) { + mergeWindowsNodeConfig(other.getWindowsNodeConfig()); + } + if (other.hasLocalNvmeSsdBlockConfig()) { + mergeLocalNvmeSsdBlockConfig(other.getLocalNvmeSsdBlockConfig()); + } + if (other.hasEphemeralStorageLocalSsdConfig()) { + mergeEphemeralStorageLocalSsdConfig(other.getEphemeralStorageLocalSsdConfig()); + } + if (other.hasSoleTenantConfig()) { + mergeSoleTenantConfig(other.getSoleTenantConfig()); + } + if (other.hasResourceManagerTags()) { + mergeResourceManagerTags(other.getResourceManagerTags()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + machineType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + diskSizeGb_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureOauthScopesIsMutable(); + oauthScopes_.add(s); + break; + } // case 26 + case 34: { + com.google.protobuf.MapEntry + metadata__ = input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableMetadata().getMutableMap().put( + metadata__.getKey(), metadata__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: { + imageType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 50: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 56: { + localSsdCount_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 56 + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + ensureTagsIsMutable(); + tags_.add(s); + break; + } // case 66 + case 74: { + serviceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 74 + case 80: { + preemptible_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 90: { + com.google.container.v1.AcceleratorConfig m = + input.readMessage( + com.google.container.v1.AcceleratorConfig.parser(), + extensionRegistry); + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + accelerators_.add(m); + } else { + acceleratorsBuilder_.addMessage(m); + } + break; + } // case 90 + case 98: { + diskType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 106: { + minCpuPlatform_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 114: { + input.readMessage( + getWorkloadMetadataConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 114 + case 122: { + com.google.container.v1.NodeTaint m = + input.readMessage( + com.google.container.v1.NodeTaint.parser(), + extensionRegistry); + if (taintsBuilder_ == null) { + ensureTaintsIsMutable(); + taints_.add(m); + } else { + taintsBuilder_.addMessage(m); + } + break; + } // case 122 + case 138: { + input.readMessage( + getSandboxConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 138 + case 146: { + nodeGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00010000; + break; + } // case 146 + case 154: { + input.readMessage( + getReservationAffinityFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 154 + case 162: { + input.readMessage( + getShieldedInstanceConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00040000; + break; + } // case 162 + case 170: { + input.readMessage( + getLinuxNodeConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00080000; + break; + } // case 170 + case 178: { + input.readMessage( + getKubeletConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00100000; + break; + } // case 178 + case 186: { + bootDiskKmsKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00200000; + break; + } // case 186 + case 202: { + input.readMessage( + getGcfsConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00400000; + break; + } // case 202 + case 210: { + input.readMessage( + getAdvancedMachineFeaturesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00800000; + break; + } // case 210 + case 234: { + input.readMessage( + getGvnicFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x01000000; + break; + } // case 234 + case 256: { + spot_ = input.readBool(); + bitField0_ |= 0x02000000; + break; + } // case 256 + case 282: { + input.readMessage( + getConfidentialNodesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x04000000; + break; + } // case 282 + case 290: { + input.readMessage( + getFastSocketFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x08000000; + break; + } // case 290 + case 298: { + com.google.protobuf.MapEntry + resourceLabels__ = input.readMessage( + ResourceLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableResourceLabels().getMutableMap().put( + resourceLabels__.getKey(), resourceLabels__.getValue()); + bitField0_ |= 0x10000000; + break; + } // case 298 + case 306: { + input.readMessage( + getLoggingConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x20000000; + break; + } // case 306 + case 314: { + input.readMessage( + getWindowsNodeConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x40000000; + break; + } // case 314 + case 322: { + input.readMessage( + getLocalNvmeSsdBlockConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x80000000; + break; + } // case 322 + case 330: { + input.readMessage( + getEphemeralStorageLocalSsdConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000001; + break; + } // case 330 + case 338: { + input.readMessage( + getSoleTenantConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000002; + break; + } // case 338 + case 362: { + input.readMessage( + getResourceManagerTagsFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000004; + break; + } // case 362 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + private int bitField1_; + + 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; + bitField0_ |= 0x00000001; + 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(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + 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; + bitField0_ |= 0x00000002; + 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() { + bitField0_ = (bitField0_ & ~0x00000002); + diskSizeGb_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList oauthScopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureOauthScopesIsMutable() { + if (!oauthScopes_.isModifiable()) { + oauthScopes_ = new com.google.protobuf.LazyStringArrayList(oauthScopes_); + } + bitField0_ |= 0x00000004; + } + /** + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     *
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     *
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](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() { + oauthScopes_.makeImmutable(); + 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); + } + /** + *
+     * 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); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     *
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     *
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](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); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     *
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     *
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](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_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     *
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     *
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](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.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; + onChanged(); + return this; + } + /** + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     *
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     *
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](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); + bitField0_ |= 0x00000004; + 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; + bitField0_ |= 0x00000008; + 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(); + bitField0_ = (bitField0_ & ~0x00000008); + 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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + private com.google.protobuf.MapField + internalGetMutableMetadata() { + if (metadata_ == null) { + metadata_ = com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + if (!metadata_.isMutable()) { + metadata_ = metadata_.copy(); + } + bitField0_ |= 0x00000010; + onChanged(); + 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-os-login"
+     *  - "gci-ensure-gke-docker"
+     *  - "gci-metrics-enabled"
+     *  - "gci-update-strategy"
+     *  - "instance-template"
+     *  - "kube-env"
+     *  - "startup-script"
+     *  - "user-data"
+     *  - "disable-address-manager"
+     *  - "windows-startup-script-ps1"
+     *  - "common-psm1"
+     *  - "k8s-node-setup-psm1"
+     *  - "install-ssh-psm1"
+     *  - "user-profile-psm1"
+     *
+     * 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 NullPointerException("map key"); } + 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-os-login"
+     *  - "gci-ensure-gke-docker"
+     *  - "gci-metrics-enabled"
+     *  - "gci-update-strategy"
+     *  - "instance-template"
+     *  - "kube-env"
+     *  - "startup-script"
+     *  - "user-data"
+     *  - "disable-address-manager"
+     *  - "windows-startup-script-ps1"
+     *  - "common-psm1"
+     *  - "k8s-node-setup-psm1"
+     *  - "install-ssh-psm1"
+     *  - "user-profile-psm1"
+     *
+     * 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-os-login"
+     *  - "gci-ensure-gke-docker"
+     *  - "gci-metrics-enabled"
+     *  - "gci-update-strategy"
+     *  - "instance-template"
+     *  - "kube-env"
+     *  - "startup-script"
+     *  - "user-data"
+     *  - "disable-address-manager"
+     *  - "windows-startup-script-ps1"
+     *  - "common-psm1"
+     *  - "k8s-node-setup-psm1"
+     *  - "install-ssh-psm1"
+     *  - "user-profile-psm1"
+     *
+     * 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 /* nullable */ +java.lang.String getMetadataOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + 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-os-login"
+     *  - "gci-ensure-gke-docker"
+     *  - "gci-metrics-enabled"
+     *  - "gci-update-strategy"
+     *  - "instance-template"
+     *  - "kube-env"
+     *  - "startup-script"
+     *  - "user-data"
+     *  - "disable-address-manager"
+     *  - "windows-startup-script-ps1"
+     *  - "common-psm1"
+     *  - "k8s-node-setup-psm1"
+     *  - "install-ssh-psm1"
+     *  - "user-profile-psm1"
+     *
+     * 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 NullPointerException("map key"); } + java.util.Map map = + internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000010); + 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-os-login"
+     *  - "gci-ensure-gke-docker"
+     *  - "gci-metrics-enabled"
+     *  - "gci-update-strategy"
+     *  - "instance-template"
+     *  - "kube-env"
+     *  - "startup-script"
+     *  - "user-data"
+     *  - "disable-address-manager"
+     *  - "windows-startup-script-ps1"
+     *  - "common-psm1"
+     *  - "k8s-node-setup-psm1"
+     *  - "install-ssh-psm1"
+     *  - "user-profile-psm1"
+     *
+     * 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 NullPointerException("map key"); } + internalGetMutableMetadata().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableMetadata() { + bitField0_ |= 0x00000010; + 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-os-login"
+     *  - "gci-ensure-gke-docker"
+     *  - "gci-metrics-enabled"
+     *  - "gci-update-strategy"
+     *  - "instance-template"
+     *  - "kube-env"
+     *  - "startup-script"
+     *  - "user-data"
+     *  - "disable-address-manager"
+     *  - "windows-startup-script-ps1"
+     *  - "common-psm1"
+     *  - "k8s-node-setup-psm1"
+     *  - "install-ssh-psm1"
+     *  - "user-profile-psm1"
+     *
+     * 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 NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableMetadata().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000010; + 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-os-login"
+     *  - "gci-ensure-gke-docker"
+     *  - "gci-metrics-enabled"
+     *  - "gci-update-strategy"
+     *  - "instance-template"
+     *  - "kube-env"
+     *  - "startup-script"
+     *  - "user-data"
+     *  - "disable-address-manager"
+     *  - "windows-startup-script-ps1"
+     *  - "common-psm1"
+     *  - "k8s-node-setup-psm1"
+     *  - "install-ssh-psm1"
+     *  - "user-profile-psm1"
+     *
+     * 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); + bitField0_ |= 0x00000010; + 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. Please see
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+     * available image types.
+     * 
+ * + * 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. Please see
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+     * available image types.
+     * 
+ * + * 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. Please see
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+     * available image types.
+     * 
+ * + * 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; + bitField0_ |= 0x00000020; + 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. Please see
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+     * available image types.
+     * 
+ * + * string image_type = 5; + * @return This builder for chaining. + */ + public Builder clearImageType() { + imageType_ = getDefaultInstance().getImageType(); + bitField0_ = (bitField0_ & ~0x00000020); + 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. Please see
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+     * available image types.
+     * 
+ * + * 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; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000040; + onChanged(); + 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 NullPointerException("map key"); } + 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 /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + 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 NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000040); + 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 NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableLabels() { + bitField0_ |= 0x00000040; + 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 NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000040; + 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); + bitField0_ |= 0x00000040; + 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; + bitField0_ |= 0x00000080; + 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() { + bitField0_ = (bitField0_ & ~0x00000080); + localSsdCount_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList tags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureTagsIsMutable() { + if (!tags_.isModifiable()) { + tags_ = new com.google.protobuf.LazyStringArrayList(tags_); + } + bitField0_ |= 0x00000100; + } + /** + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + * @return A list containing the tags. + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + tags_.makeImmutable(); + 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); + } + /** + *
+     * 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); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + * @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); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + * @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_); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + * @return This builder for chaining. + */ + public Builder clearTags() { + tags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100);; + onChanged(); + return this; + } + /** + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + * @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); + bitField0_ |= 0x00000100; + 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
+     * information 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
+     * information 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; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * Whether the nodes are created as preemptible VM instances. See:
+     * https://cloud.google.com/compute/docs/instances/preemptible for more
+     * information about preemptible VM instances.
+     * 
+ * + * bool preemptible = 10; + * @return This builder for chaining. + */ + public Builder clearPreemptible() { + bitField0_ = (bitField0_ & ~0x00000200); + preemptible_ = false; + onChanged(); + return this; + } + + private java.util.List accelerators_ = + java.util.Collections.emptyList(); + private void ensureAcceleratorsIsMutable() { + if (!((bitField0_ & 0x00000400) != 0)) { + accelerators_ = new java.util.ArrayList(accelerators_); + bitField0_ |= 0x00000400; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.AcceleratorConfig, com.google.container.v1.AcceleratorConfig.Builder, com.google.container.v1.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.v1.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.v1.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.v1.AcceleratorConfig accelerators = 11; + */ + public com.google.container.v1.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.v1.AcceleratorConfig accelerators = 11; + */ + public Builder setAccelerators( + int index, com.google.container.v1.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.v1.AcceleratorConfig accelerators = 11; + */ + public Builder setAccelerators( + int index, com.google.container.v1.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.v1.AcceleratorConfig accelerators = 11; + */ + public Builder addAccelerators(com.google.container.v1.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.v1.AcceleratorConfig accelerators = 11; + */ + public Builder addAccelerators( + int index, com.google.container.v1.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.v1.AcceleratorConfig accelerators = 11; + */ + public Builder addAccelerators( + com.google.container.v1.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.v1.AcceleratorConfig accelerators = 11; + */ + public Builder addAccelerators( + int index, com.google.container.v1.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.v1.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.v1.AcceleratorConfig accelerators = 11; + */ + public Builder clearAccelerators() { + if (acceleratorsBuilder_ == null) { + accelerators_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + acceleratorsBuilder_.clear(); + } + return this; + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1.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.v1.AcceleratorConfig accelerators = 11; + */ + public com.google.container.v1.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.v1.AcceleratorConfig accelerators = 11; + */ + public com.google.container.v1.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.v1.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.v1.AcceleratorConfig accelerators = 11; + */ + public com.google.container.v1.AcceleratorConfig.Builder addAcceleratorsBuilder() { + return getAcceleratorsFieldBuilder().addBuilder( + com.google.container.v1.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.v1.AcceleratorConfig accelerators = 11; + */ + public com.google.container.v1.AcceleratorConfig.Builder addAcceleratorsBuilder( + int index) { + return getAcceleratorsFieldBuilder().addBuilder( + index, com.google.container.v1.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.v1.AcceleratorConfig accelerators = 11; + */ + public java.util.List + getAcceleratorsBuilderList() { + return getAcceleratorsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.AcceleratorConfig, com.google.container.v1.AcceleratorConfig.Builder, com.google.container.v1.AcceleratorConfigOrBuilder> + getAcceleratorsFieldBuilder() { + if (acceleratorsBuilder_ == null) { + acceleratorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.AcceleratorConfig, com.google.container.v1.AcceleratorConfig.Builder, com.google.container.v1.AcceleratorConfigOrBuilder>( + accelerators_, + ((bitField0_ & 0x00000400) != 0), + getParentForChildren(), + isClean()); + accelerators_ = null; + } + return acceleratorsBuilder_; + } + + 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; + bitField0_ |= 0x00000800; + 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(); + bitField0_ = (bitField0_ & ~0x00000800); + 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; + bitField0_ |= 0x00000800; + 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; + bitField0_ |= 0x00001000; + 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(); + bitField0_ = (bitField0_ & ~0x00001000); + 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; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + private com.google.container.v1.WorkloadMetadataConfig workloadMetadataConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WorkloadMetadataConfig, com.google.container.v1.WorkloadMetadataConfig.Builder, com.google.container.v1.WorkloadMetadataConfigOrBuilder> workloadMetadataConfigBuilder_; + /** + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + * @return Whether the workloadMetadataConfig field is set. + */ + public boolean hasWorkloadMetadataConfig() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + * @return The workloadMetadataConfig. + */ + public com.google.container.v1.WorkloadMetadataConfig getWorkloadMetadataConfig() { + if (workloadMetadataConfigBuilder_ == null) { + return workloadMetadataConfig_ == null ? com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance() : workloadMetadataConfig_; + } else { + return workloadMetadataConfigBuilder_.getMessage(); + } + } + /** + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder setWorkloadMetadataConfig(com.google.container.v1.WorkloadMetadataConfig value) { + if (workloadMetadataConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workloadMetadataConfig_ = value; + } else { + workloadMetadataConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder setWorkloadMetadataConfig( + com.google.container.v1.WorkloadMetadataConfig.Builder builderForValue) { + if (workloadMetadataConfigBuilder_ == null) { + workloadMetadataConfig_ = builderForValue.build(); + } else { + workloadMetadataConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder mergeWorkloadMetadataConfig(com.google.container.v1.WorkloadMetadataConfig value) { + if (workloadMetadataConfigBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) && + workloadMetadataConfig_ != null && + workloadMetadataConfig_ != com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance()) { + getWorkloadMetadataConfigBuilder().mergeFrom(value); + } else { + workloadMetadataConfig_ = value; + } + } else { + workloadMetadataConfigBuilder_.mergeFrom(value); + } + if (workloadMetadataConfig_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } + return this; + } + /** + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder clearWorkloadMetadataConfig() { + bitField0_ = (bitField0_ & ~0x00002000); + workloadMetadataConfig_ = null; + if (workloadMetadataConfigBuilder_ != null) { + workloadMetadataConfigBuilder_.dispose(); + workloadMetadataConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public com.google.container.v1.WorkloadMetadataConfig.Builder getWorkloadMetadataConfigBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return getWorkloadMetadataConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public com.google.container.v1.WorkloadMetadataConfigOrBuilder getWorkloadMetadataConfigOrBuilder() { + if (workloadMetadataConfigBuilder_ != null) { + return workloadMetadataConfigBuilder_.getMessageOrBuilder(); + } else { + return workloadMetadataConfig_ == null ? + com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance() : workloadMetadataConfig_; + } + } + /** + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WorkloadMetadataConfig, com.google.container.v1.WorkloadMetadataConfig.Builder, com.google.container.v1.WorkloadMetadataConfigOrBuilder> + getWorkloadMetadataConfigFieldBuilder() { + if (workloadMetadataConfigBuilder_ == null) { + workloadMetadataConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WorkloadMetadataConfig, com.google.container.v1.WorkloadMetadataConfig.Builder, com.google.container.v1.WorkloadMetadataConfigOrBuilder>( + getWorkloadMetadataConfig(), + getParentForChildren(), + isClean()); + workloadMetadataConfig_ = null; + } + return workloadMetadataConfigBuilder_; + } + + private java.util.List taints_ = + java.util.Collections.emptyList(); + private void ensureTaintsIsMutable() { + if (!((bitField0_ & 0x00004000) != 0)) { + taints_ = new java.util.ArrayList(taints_); + bitField0_ |= 0x00004000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.NodeTaint, com.google.container.v1.NodeTaint.Builder, com.google.container.v1.NodeTaintOrBuilder> taintsBuilder_; + + /** + *
+     * List of kubernetes taints to be applied to each node.
+     *
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1.NodeTaint taints = 15; + */ + public java.util.List getTaintsList() { + if (taintsBuilder_ == null) { + return java.util.Collections.unmodifiableList(taints_); + } else { + 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.v1.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.v1.NodeTaint taints = 15; + */ + public com.google.container.v1.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.v1.NodeTaint taints = 15; + */ + public Builder setTaints( + int index, com.google.container.v1.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.v1.NodeTaint taints = 15; + */ + public Builder setTaints( + int index, com.google.container.v1.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.v1.NodeTaint taints = 15; + */ + public Builder addTaints(com.google.container.v1.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.v1.NodeTaint taints = 15; + */ + public Builder addTaints( + int index, com.google.container.v1.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.v1.NodeTaint taints = 15; + */ + public Builder addTaints( + com.google.container.v1.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.v1.NodeTaint taints = 15; + */ + public Builder addTaints( + int index, com.google.container.v1.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.v1.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.v1.NodeTaint taints = 15; + */ + public Builder clearTaints() { + if (taintsBuilder_ == null) { + taints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + } else { + taintsBuilder_.clear(); + } + return this; + } + /** + *
+     * List of kubernetes taints to be applied to each node.
+     *
+     * For more information, including usage and the valid values, see:
+     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+     * 
+ * + * repeated .google.container.v1.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.v1.NodeTaint taints = 15; + */ + public com.google.container.v1.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.v1.NodeTaint taints = 15; + */ + public com.google.container.v1.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.v1.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.v1.NodeTaint taints = 15; + */ + public com.google.container.v1.NodeTaint.Builder addTaintsBuilder() { + return getTaintsFieldBuilder().addBuilder( + com.google.container.v1.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.v1.NodeTaint taints = 15; + */ + public com.google.container.v1.NodeTaint.Builder addTaintsBuilder( + int index) { + return getTaintsFieldBuilder().addBuilder( + index, com.google.container.v1.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.v1.NodeTaint taints = 15; + */ + public java.util.List + getTaintsBuilderList() { + return getTaintsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.NodeTaint, com.google.container.v1.NodeTaint.Builder, com.google.container.v1.NodeTaintOrBuilder> + getTaintsFieldBuilder() { + if (taintsBuilder_ == null) { + taintsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.NodeTaint, com.google.container.v1.NodeTaint.Builder, com.google.container.v1.NodeTaintOrBuilder>( + taints_, + ((bitField0_ & 0x00004000) != 0), + getParentForChildren(), + isClean()); + taints_ = null; + } + return taintsBuilder_; + } + + private com.google.container.v1.SandboxConfig sandboxConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.SandboxConfig, com.google.container.v1.SandboxConfig.Builder, com.google.container.v1.SandboxConfigOrBuilder> sandboxConfigBuilder_; + /** + *
+     * Sandbox configuration for this node.
+     * 
+ * + * .google.container.v1.SandboxConfig sandbox_config = 17; + * @return Whether the sandboxConfig field is set. + */ + public boolean hasSandboxConfig() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + *
+     * Sandbox configuration for this node.
+     * 
+ * + * .google.container.v1.SandboxConfig sandbox_config = 17; + * @return The sandboxConfig. + */ + public com.google.container.v1.SandboxConfig getSandboxConfig() { + if (sandboxConfigBuilder_ == null) { + return sandboxConfig_ == null ? com.google.container.v1.SandboxConfig.getDefaultInstance() : sandboxConfig_; + } else { + return sandboxConfigBuilder_.getMessage(); + } + } + /** + *
+     * Sandbox configuration for this node.
+     * 
+ * + * .google.container.v1.SandboxConfig sandbox_config = 17; + */ + public Builder setSandboxConfig(com.google.container.v1.SandboxConfig value) { + if (sandboxConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sandboxConfig_ = value; + } else { + sandboxConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + *
+     * Sandbox configuration for this node.
+     * 
+ * + * .google.container.v1.SandboxConfig sandbox_config = 17; + */ + public Builder setSandboxConfig( + com.google.container.v1.SandboxConfig.Builder builderForValue) { + if (sandboxConfigBuilder_ == null) { + sandboxConfig_ = builderForValue.build(); + } else { + sandboxConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + *
+     * Sandbox configuration for this node.
+     * 
+ * + * .google.container.v1.SandboxConfig sandbox_config = 17; + */ + public Builder mergeSandboxConfig(com.google.container.v1.SandboxConfig value) { + if (sandboxConfigBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) && + sandboxConfig_ != null && + sandboxConfig_ != com.google.container.v1.SandboxConfig.getDefaultInstance()) { + getSandboxConfigBuilder().mergeFrom(value); + } else { + sandboxConfig_ = value; + } + } else { + sandboxConfigBuilder_.mergeFrom(value); + } + if (sandboxConfig_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } + return this; + } + /** + *
+     * Sandbox configuration for this node.
+     * 
+ * + * .google.container.v1.SandboxConfig sandbox_config = 17; + */ + public Builder clearSandboxConfig() { + bitField0_ = (bitField0_ & ~0x00008000); + sandboxConfig_ = null; + if (sandboxConfigBuilder_ != null) { + sandboxConfigBuilder_.dispose(); + sandboxConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Sandbox configuration for this node.
+     * 
+ * + * .google.container.v1.SandboxConfig sandbox_config = 17; + */ + public com.google.container.v1.SandboxConfig.Builder getSandboxConfigBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return getSandboxConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Sandbox configuration for this node.
+     * 
+ * + * .google.container.v1.SandboxConfig sandbox_config = 17; + */ + public com.google.container.v1.SandboxConfigOrBuilder getSandboxConfigOrBuilder() { + if (sandboxConfigBuilder_ != null) { + return sandboxConfigBuilder_.getMessageOrBuilder(); + } else { + return sandboxConfig_ == null ? + com.google.container.v1.SandboxConfig.getDefaultInstance() : sandboxConfig_; + } + } + /** + *
+     * Sandbox configuration for this node.
+     * 
+ * + * .google.container.v1.SandboxConfig sandbox_config = 17; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.SandboxConfig, com.google.container.v1.SandboxConfig.Builder, com.google.container.v1.SandboxConfigOrBuilder> + getSandboxConfigFieldBuilder() { + if (sandboxConfigBuilder_ == null) { + sandboxConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.SandboxConfig, com.google.container.v1.SandboxConfig.Builder, com.google.container.v1.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; + bitField0_ |= 0x00010000; + 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(); + bitField0_ = (bitField0_ & ~0x00010000); + 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; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + private com.google.container.v1.ReservationAffinity reservationAffinity_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ReservationAffinity, com.google.container.v1.ReservationAffinity.Builder, com.google.container.v1.ReservationAffinityOrBuilder> reservationAffinityBuilder_; + /** + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + * @return Whether the reservationAffinity field is set. + */ + public boolean hasReservationAffinity() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + * @return The reservationAffinity. + */ + public com.google.container.v1.ReservationAffinity getReservationAffinity() { + if (reservationAffinityBuilder_ == null) { + return reservationAffinity_ == null ? com.google.container.v1.ReservationAffinity.getDefaultInstance() : reservationAffinity_; + } else { + return reservationAffinityBuilder_.getMessage(); + } + } + /** + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + */ + public Builder setReservationAffinity(com.google.container.v1.ReservationAffinity value) { + if (reservationAffinityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reservationAffinity_ = value; + } else { + reservationAffinityBuilder_.setMessage(value); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + */ + public Builder setReservationAffinity( + com.google.container.v1.ReservationAffinity.Builder builderForValue) { + if (reservationAffinityBuilder_ == null) { + reservationAffinity_ = builderForValue.build(); + } else { + reservationAffinityBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + */ + public Builder mergeReservationAffinity(com.google.container.v1.ReservationAffinity value) { + if (reservationAffinityBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) && + reservationAffinity_ != null && + reservationAffinity_ != com.google.container.v1.ReservationAffinity.getDefaultInstance()) { + getReservationAffinityBuilder().mergeFrom(value); + } else { + reservationAffinity_ = value; + } + } else { + reservationAffinityBuilder_.mergeFrom(value); + } + if (reservationAffinity_ != null) { + bitField0_ |= 0x00020000; + onChanged(); + } + return this; + } + /** + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + */ + public Builder clearReservationAffinity() { + bitField0_ = (bitField0_ & ~0x00020000); + reservationAffinity_ = null; + if (reservationAffinityBuilder_ != null) { + reservationAffinityBuilder_.dispose(); + reservationAffinityBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + */ + public com.google.container.v1.ReservationAffinity.Builder getReservationAffinityBuilder() { + bitField0_ |= 0x00020000; + onChanged(); + return getReservationAffinityFieldBuilder().getBuilder(); + } + /** + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + */ + public com.google.container.v1.ReservationAffinityOrBuilder getReservationAffinityOrBuilder() { + if (reservationAffinityBuilder_ != null) { + return reservationAffinityBuilder_.getMessageOrBuilder(); + } else { + return reservationAffinity_ == null ? + com.google.container.v1.ReservationAffinity.getDefaultInstance() : reservationAffinity_; + } + } + /** + *
+     * The optional reservation affinity. Setting this field will apply
+     * the specified [Zonal Compute
+     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+     * to this node pool.
+     * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ReservationAffinity, com.google.container.v1.ReservationAffinity.Builder, com.google.container.v1.ReservationAffinityOrBuilder> + getReservationAffinityFieldBuilder() { + if (reservationAffinityBuilder_ == null) { + reservationAffinityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ReservationAffinity, com.google.container.v1.ReservationAffinity.Builder, com.google.container.v1.ReservationAffinityOrBuilder>( + getReservationAffinity(), + getParentForChildren(), + isClean()); + reservationAffinity_ = null; + } + return reservationAffinityBuilder_; + } + + private com.google.container.v1.ShieldedInstanceConfig shieldedInstanceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ShieldedInstanceConfig, com.google.container.v1.ShieldedInstanceConfig.Builder, com.google.container.v1.ShieldedInstanceConfigOrBuilder> shieldedInstanceConfigBuilder_; + /** + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + * @return Whether the shieldedInstanceConfig field is set. + */ + public boolean hasShieldedInstanceConfig() { + return ((bitField0_ & 0x00040000) != 0); + } + /** + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + * @return The shieldedInstanceConfig. + */ + public com.google.container.v1.ShieldedInstanceConfig getShieldedInstanceConfig() { + if (shieldedInstanceConfigBuilder_ == null) { + return shieldedInstanceConfig_ == null ? com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + } else { + return shieldedInstanceConfigBuilder_.getMessage(); + } + } + /** + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + public Builder setShieldedInstanceConfig(com.google.container.v1.ShieldedInstanceConfig value) { + if (shieldedInstanceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + shieldedInstanceConfig_ = value; + } else { + shieldedInstanceConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + public Builder setShieldedInstanceConfig( + com.google.container.v1.ShieldedInstanceConfig.Builder builderForValue) { + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfig_ = builderForValue.build(); + } else { + shieldedInstanceConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + public Builder mergeShieldedInstanceConfig(com.google.container.v1.ShieldedInstanceConfig value) { + if (shieldedInstanceConfigBuilder_ == null) { + if (((bitField0_ & 0x00040000) != 0) && + shieldedInstanceConfig_ != null && + shieldedInstanceConfig_ != com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance()) { + getShieldedInstanceConfigBuilder().mergeFrom(value); + } else { + shieldedInstanceConfig_ = value; + } + } else { + shieldedInstanceConfigBuilder_.mergeFrom(value); + } + if (shieldedInstanceConfig_ != null) { + bitField0_ |= 0x00040000; + onChanged(); + } + return this; + } + /** + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + public Builder clearShieldedInstanceConfig() { + bitField0_ = (bitField0_ & ~0x00040000); + shieldedInstanceConfig_ = null; + if (shieldedInstanceConfigBuilder_ != null) { + shieldedInstanceConfigBuilder_.dispose(); + shieldedInstanceConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + public com.google.container.v1.ShieldedInstanceConfig.Builder getShieldedInstanceConfigBuilder() { + bitField0_ |= 0x00040000; + onChanged(); + return getShieldedInstanceConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + public com.google.container.v1.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { + if (shieldedInstanceConfigBuilder_ != null) { + return shieldedInstanceConfigBuilder_.getMessageOrBuilder(); + } else { + return shieldedInstanceConfig_ == null ? + com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + } + } + /** + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ShieldedInstanceConfig, com.google.container.v1.ShieldedInstanceConfig.Builder, com.google.container.v1.ShieldedInstanceConfigOrBuilder> + getShieldedInstanceConfigFieldBuilder() { + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ShieldedInstanceConfig, com.google.container.v1.ShieldedInstanceConfig.Builder, com.google.container.v1.ShieldedInstanceConfigOrBuilder>( + getShieldedInstanceConfig(), + getParentForChildren(), + isClean()); + shieldedInstanceConfig_ = null; + } + return shieldedInstanceConfigBuilder_; + } + + private com.google.container.v1.LinuxNodeConfig linuxNodeConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LinuxNodeConfig, com.google.container.v1.LinuxNodeConfig.Builder, com.google.container.v1.LinuxNodeConfigOrBuilder> linuxNodeConfigBuilder_; + /** + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; + * @return Whether the linuxNodeConfig field is set. + */ + public boolean hasLinuxNodeConfig() { + return ((bitField0_ & 0x00080000) != 0); + } + /** + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; + * @return The linuxNodeConfig. + */ + public com.google.container.v1.LinuxNodeConfig getLinuxNodeConfig() { + if (linuxNodeConfigBuilder_ == null) { + return linuxNodeConfig_ == null ? com.google.container.v1.LinuxNodeConfig.getDefaultInstance() : linuxNodeConfig_; + } else { + return linuxNodeConfigBuilder_.getMessage(); + } + } + /** + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; + */ + public Builder setLinuxNodeConfig(com.google.container.v1.LinuxNodeConfig value) { + if (linuxNodeConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + linuxNodeConfig_ = value; + } else { + linuxNodeConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; + */ + public Builder setLinuxNodeConfig( + com.google.container.v1.LinuxNodeConfig.Builder builderForValue) { + if (linuxNodeConfigBuilder_ == null) { + linuxNodeConfig_ = builderForValue.build(); + } else { + linuxNodeConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; + */ + public Builder mergeLinuxNodeConfig(com.google.container.v1.LinuxNodeConfig value) { + if (linuxNodeConfigBuilder_ == null) { + if (((bitField0_ & 0x00080000) != 0) && + linuxNodeConfig_ != null && + linuxNodeConfig_ != com.google.container.v1.LinuxNodeConfig.getDefaultInstance()) { + getLinuxNodeConfigBuilder().mergeFrom(value); + } else { + linuxNodeConfig_ = value; + } + } else { + linuxNodeConfigBuilder_.mergeFrom(value); + } + if (linuxNodeConfig_ != null) { + bitField0_ |= 0x00080000; + onChanged(); + } + return this; + } + /** + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; + */ + public Builder clearLinuxNodeConfig() { + bitField0_ = (bitField0_ & ~0x00080000); + linuxNodeConfig_ = null; + if (linuxNodeConfigBuilder_ != null) { + linuxNodeConfigBuilder_.dispose(); + linuxNodeConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; + */ + public com.google.container.v1.LinuxNodeConfig.Builder getLinuxNodeConfigBuilder() { + bitField0_ |= 0x00080000; + onChanged(); + return getLinuxNodeConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; + */ + public com.google.container.v1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder() { + if (linuxNodeConfigBuilder_ != null) { + return linuxNodeConfigBuilder_.getMessageOrBuilder(); + } else { + return linuxNodeConfig_ == null ? + com.google.container.v1.LinuxNodeConfig.getDefaultInstance() : linuxNodeConfig_; + } + } + /** + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LinuxNodeConfig, com.google.container.v1.LinuxNodeConfig.Builder, com.google.container.v1.LinuxNodeConfigOrBuilder> + getLinuxNodeConfigFieldBuilder() { + if (linuxNodeConfigBuilder_ == null) { + linuxNodeConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LinuxNodeConfig, com.google.container.v1.LinuxNodeConfig.Builder, com.google.container.v1.LinuxNodeConfigOrBuilder>( + getLinuxNodeConfig(), + getParentForChildren(), + isClean()); + linuxNodeConfig_ = null; + } + return linuxNodeConfigBuilder_; + } + + private com.google.container.v1.NodeKubeletConfig kubeletConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeKubeletConfig, com.google.container.v1.NodeKubeletConfig.Builder, com.google.container.v1.NodeKubeletConfigOrBuilder> kubeletConfigBuilder_; + /** + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + * @return Whether the kubeletConfig field is set. + */ + public boolean hasKubeletConfig() { + return ((bitField0_ & 0x00100000) != 0); + } + /** + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + * @return The kubeletConfig. + */ + public com.google.container.v1.NodeKubeletConfig getKubeletConfig() { + if (kubeletConfigBuilder_ == null) { + return kubeletConfig_ == null ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() : kubeletConfig_; + } else { + return kubeletConfigBuilder_.getMessage(); + } + } + /** + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + */ + public Builder setKubeletConfig(com.google.container.v1.NodeKubeletConfig value) { + if (kubeletConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kubeletConfig_ = value; + } else { + kubeletConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + */ + public Builder setKubeletConfig( + com.google.container.v1.NodeKubeletConfig.Builder builderForValue) { + if (kubeletConfigBuilder_ == null) { + kubeletConfig_ = builderForValue.build(); + } else { + kubeletConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + */ + public Builder mergeKubeletConfig(com.google.container.v1.NodeKubeletConfig value) { + if (kubeletConfigBuilder_ == null) { + if (((bitField0_ & 0x00100000) != 0) && + kubeletConfig_ != null && + kubeletConfig_ != com.google.container.v1.NodeKubeletConfig.getDefaultInstance()) { + getKubeletConfigBuilder().mergeFrom(value); + } else { + kubeletConfig_ = value; + } + } else { + kubeletConfigBuilder_.mergeFrom(value); + } + if (kubeletConfig_ != null) { + bitField0_ |= 0x00100000; + onChanged(); + } + return this; + } + /** + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + */ + public Builder clearKubeletConfig() { + bitField0_ = (bitField0_ & ~0x00100000); + kubeletConfig_ = null; + if (kubeletConfigBuilder_ != null) { + kubeletConfigBuilder_.dispose(); + kubeletConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + */ + public com.google.container.v1.NodeKubeletConfig.Builder getKubeletConfigBuilder() { + bitField0_ |= 0x00100000; + onChanged(); + return getKubeletConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + */ + public com.google.container.v1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder() { + if (kubeletConfigBuilder_ != null) { + return kubeletConfigBuilder_.getMessageOrBuilder(); + } else { + return kubeletConfig_ == null ? + com.google.container.v1.NodeKubeletConfig.getDefaultInstance() : kubeletConfig_; + } + } + /** + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeKubeletConfig, com.google.container.v1.NodeKubeletConfig.Builder, com.google.container.v1.NodeKubeletConfigOrBuilder> + getKubeletConfigFieldBuilder() { + if (kubeletConfigBuilder_ == null) { + kubeletConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeKubeletConfig, com.google.container.v1.NodeKubeletConfig.Builder, com.google.container.v1.NodeKubeletConfigOrBuilder>( + getKubeletConfig(), + getParentForChildren(), + isClean()); + kubeletConfig_ = null; + } + return kubeletConfigBuilder_; + } + + private java.lang.Object bootDiskKmsKey_ = ""; + /** + *
+     *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
+     * 
+ * + * string boot_disk_kms_key = 23; + * @return The bootDiskKmsKey. + */ + public java.lang.String getBootDiskKmsKey() { + java.lang.Object ref = bootDiskKmsKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bootDiskKmsKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     *
+     * The Customer Managed Encryption Key used to encrypt the boot disk attached
+     * to each node in the node pool. This should be of the form
+     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
+     * For more information about protecting resources with Cloud KMS Keys please
+     * see:
+     * 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; + bitField0_ |= 0x00200000; + 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(); + bitField0_ = (bitField0_ & ~0x00200000); + 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; + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + + private com.google.container.v1.GcfsConfig gcfsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcfsConfig, com.google.container.v1.GcfsConfig.Builder, com.google.container.v1.GcfsConfigOrBuilder> gcfsConfigBuilder_; + /** + *
+     * Google Container File System (image streaming) configs.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + * @return Whether the gcfsConfig field is set. + */ + public boolean hasGcfsConfig() { + return ((bitField0_ & 0x00400000) != 0); + } + /** + *
+     * Google Container File System (image streaming) configs.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + * @return The gcfsConfig. + */ + public com.google.container.v1.GcfsConfig getGcfsConfig() { + if (gcfsConfigBuilder_ == null) { + return gcfsConfig_ == null ? com.google.container.v1.GcfsConfig.getDefaultInstance() : gcfsConfig_; + } else { + return gcfsConfigBuilder_.getMessage(); + } + } + /** + *
+     * Google Container File System (image streaming) configs.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + */ + public Builder setGcfsConfig(com.google.container.v1.GcfsConfig value) { + if (gcfsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gcfsConfig_ = value; + } else { + gcfsConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + /** + *
+     * Google Container File System (image streaming) configs.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + */ + public Builder setGcfsConfig( + com.google.container.v1.GcfsConfig.Builder builderForValue) { + if (gcfsConfigBuilder_ == null) { + gcfsConfig_ = builderForValue.build(); + } else { + gcfsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + /** + *
+     * Google Container File System (image streaming) configs.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + */ + public Builder mergeGcfsConfig(com.google.container.v1.GcfsConfig value) { + if (gcfsConfigBuilder_ == null) { + if (((bitField0_ & 0x00400000) != 0) && + gcfsConfig_ != null && + gcfsConfig_ != com.google.container.v1.GcfsConfig.getDefaultInstance()) { + getGcfsConfigBuilder().mergeFrom(value); + } else { + gcfsConfig_ = value; + } + } else { + gcfsConfigBuilder_.mergeFrom(value); + } + if (gcfsConfig_ != null) { + bitField0_ |= 0x00400000; + onChanged(); + } + return this; + } + /** + *
+     * Google Container File System (image streaming) configs.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + */ + public Builder clearGcfsConfig() { + bitField0_ = (bitField0_ & ~0x00400000); + gcfsConfig_ = null; + if (gcfsConfigBuilder_ != null) { + gcfsConfigBuilder_.dispose(); + gcfsConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Google Container File System (image streaming) configs.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + */ + public com.google.container.v1.GcfsConfig.Builder getGcfsConfigBuilder() { + bitField0_ |= 0x00400000; + onChanged(); + return getGcfsConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Google Container File System (image streaming) configs.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + */ + public com.google.container.v1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { + if (gcfsConfigBuilder_ != null) { + return gcfsConfigBuilder_.getMessageOrBuilder(); + } else { + return gcfsConfig_ == null ? + com.google.container.v1.GcfsConfig.getDefaultInstance() : gcfsConfig_; + } + } + /** + *
+     * Google Container File System (image streaming) configs.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcfsConfig, com.google.container.v1.GcfsConfig.Builder, com.google.container.v1.GcfsConfigOrBuilder> + getGcfsConfigFieldBuilder() { + if (gcfsConfigBuilder_ == null) { + gcfsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcfsConfig, com.google.container.v1.GcfsConfig.Builder, com.google.container.v1.GcfsConfigOrBuilder>( + getGcfsConfig(), + getParentForChildren(), + isClean()); + gcfsConfig_ = null; + } + return gcfsConfigBuilder_; + } + + private com.google.container.v1.AdvancedMachineFeatures advancedMachineFeatures_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AdvancedMachineFeatures, com.google.container.v1.AdvancedMachineFeatures.Builder, com.google.container.v1.AdvancedMachineFeaturesOrBuilder> advancedMachineFeaturesBuilder_; + /** + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + * @return Whether the advancedMachineFeatures field is set. + */ + public boolean hasAdvancedMachineFeatures() { + return ((bitField0_ & 0x00800000) != 0); + } + /** + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + * @return The advancedMachineFeatures. + */ + public com.google.container.v1.AdvancedMachineFeatures getAdvancedMachineFeatures() { + if (advancedMachineFeaturesBuilder_ == null) { + return advancedMachineFeatures_ == null ? com.google.container.v1.AdvancedMachineFeatures.getDefaultInstance() : advancedMachineFeatures_; + } else { + return advancedMachineFeaturesBuilder_.getMessage(); + } + } + /** + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + */ + public Builder setAdvancedMachineFeatures(com.google.container.v1.AdvancedMachineFeatures value) { + if (advancedMachineFeaturesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + advancedMachineFeatures_ = value; + } else { + advancedMachineFeaturesBuilder_.setMessage(value); + } + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + /** + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + */ + public Builder setAdvancedMachineFeatures( + com.google.container.v1.AdvancedMachineFeatures.Builder builderForValue) { + if (advancedMachineFeaturesBuilder_ == null) { + advancedMachineFeatures_ = builderForValue.build(); + } else { + advancedMachineFeaturesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + /** + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + */ + public Builder mergeAdvancedMachineFeatures(com.google.container.v1.AdvancedMachineFeatures value) { + if (advancedMachineFeaturesBuilder_ == null) { + if (((bitField0_ & 0x00800000) != 0) && + advancedMachineFeatures_ != null && + advancedMachineFeatures_ != com.google.container.v1.AdvancedMachineFeatures.getDefaultInstance()) { + getAdvancedMachineFeaturesBuilder().mergeFrom(value); + } else { + advancedMachineFeatures_ = value; + } + } else { + advancedMachineFeaturesBuilder_.mergeFrom(value); + } + if (advancedMachineFeatures_ != null) { + bitField0_ |= 0x00800000; + onChanged(); + } + return this; + } + /** + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + */ + public Builder clearAdvancedMachineFeatures() { + bitField0_ = (bitField0_ & ~0x00800000); + advancedMachineFeatures_ = null; + if (advancedMachineFeaturesBuilder_ != null) { + advancedMachineFeaturesBuilder_.dispose(); + advancedMachineFeaturesBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + */ + public com.google.container.v1.AdvancedMachineFeatures.Builder getAdvancedMachineFeaturesBuilder() { + bitField0_ |= 0x00800000; + onChanged(); + return getAdvancedMachineFeaturesFieldBuilder().getBuilder(); + } + /** + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + */ + public com.google.container.v1.AdvancedMachineFeaturesOrBuilder getAdvancedMachineFeaturesOrBuilder() { + if (advancedMachineFeaturesBuilder_ != null) { + return advancedMachineFeaturesBuilder_.getMessageOrBuilder(); + } else { + return advancedMachineFeatures_ == null ? + com.google.container.v1.AdvancedMachineFeatures.getDefaultInstance() : advancedMachineFeatures_; + } + } + /** + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AdvancedMachineFeatures, com.google.container.v1.AdvancedMachineFeatures.Builder, com.google.container.v1.AdvancedMachineFeaturesOrBuilder> + getAdvancedMachineFeaturesFieldBuilder() { + if (advancedMachineFeaturesBuilder_ == null) { + advancedMachineFeaturesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AdvancedMachineFeatures, com.google.container.v1.AdvancedMachineFeatures.Builder, com.google.container.v1.AdvancedMachineFeaturesOrBuilder>( + getAdvancedMachineFeatures(), + getParentForChildren(), + isClean()); + advancedMachineFeatures_ = null; + } + return advancedMachineFeaturesBuilder_; + } + + private com.google.container.v1.VirtualNIC gvnic_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.VirtualNIC, com.google.container.v1.VirtualNIC.Builder, com.google.container.v1.VirtualNICOrBuilder> gvnicBuilder_; + /** + *
+     * Enable or disable gvnic in the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + * @return Whether the gvnic field is set. + */ + public boolean hasGvnic() { + return ((bitField0_ & 0x01000000) != 0); + } + /** + *
+     * Enable or disable gvnic in the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + * @return The gvnic. + */ + public com.google.container.v1.VirtualNIC getGvnic() { + if (gvnicBuilder_ == null) { + return gvnic_ == null ? com.google.container.v1.VirtualNIC.getDefaultInstance() : gvnic_; + } else { + return gvnicBuilder_.getMessage(); + } + } + /** + *
+     * Enable or disable gvnic in the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + public Builder setGvnic(com.google.container.v1.VirtualNIC value) { + if (gvnicBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gvnic_ = value; + } else { + gvnicBuilder_.setMessage(value); + } + bitField0_ |= 0x01000000; + onChanged(); + return this; + } + /** + *
+     * Enable or disable gvnic in the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + public Builder setGvnic( + com.google.container.v1.VirtualNIC.Builder builderForValue) { + if (gvnicBuilder_ == null) { + gvnic_ = builderForValue.build(); + } else { + gvnicBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x01000000; + onChanged(); + return this; + } + /** + *
+     * Enable or disable gvnic in the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + public Builder mergeGvnic(com.google.container.v1.VirtualNIC value) { + if (gvnicBuilder_ == null) { + if (((bitField0_ & 0x01000000) != 0) && + gvnic_ != null && + gvnic_ != com.google.container.v1.VirtualNIC.getDefaultInstance()) { + getGvnicBuilder().mergeFrom(value); + } else { + gvnic_ = value; + } + } else { + gvnicBuilder_.mergeFrom(value); + } + if (gvnic_ != null) { + bitField0_ |= 0x01000000; + onChanged(); + } + return this; + } + /** + *
+     * Enable or disable gvnic in the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + public Builder clearGvnic() { + bitField0_ = (bitField0_ & ~0x01000000); + gvnic_ = null; + if (gvnicBuilder_ != null) { + gvnicBuilder_.dispose(); + gvnicBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Enable or disable gvnic in the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + public com.google.container.v1.VirtualNIC.Builder getGvnicBuilder() { + bitField0_ |= 0x01000000; + onChanged(); + return getGvnicFieldBuilder().getBuilder(); + } + /** + *
+     * Enable or disable gvnic in the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + public com.google.container.v1.VirtualNICOrBuilder getGvnicOrBuilder() { + if (gvnicBuilder_ != null) { + return gvnicBuilder_.getMessageOrBuilder(); + } else { + return gvnic_ == null ? + com.google.container.v1.VirtualNIC.getDefaultInstance() : gvnic_; + } + } + /** + *
+     * Enable or disable gvnic in the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.VirtualNIC, com.google.container.v1.VirtualNIC.Builder, com.google.container.v1.VirtualNICOrBuilder> + getGvnicFieldBuilder() { + if (gvnicBuilder_ == null) { + gvnicBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.VirtualNIC, com.google.container.v1.VirtualNIC.Builder, com.google.container.v1.VirtualNICOrBuilder>( + getGvnic(), + getParentForChildren(), + isClean()); + gvnic_ = null; + } + return gvnicBuilder_; + } + + private boolean spot_ ; + /** + *
+     * Spot flag for enabling Spot VM, which is a rebrand of
+     * the existing preemptible flag.
+     * 
+ * + * bool spot = 32; + * @return The spot. + */ + @java.lang.Override + public boolean getSpot() { + return spot_; + } + /** + *
+     * Spot flag for enabling Spot VM, which is a rebrand of
+     * the existing preemptible flag.
+     * 
+ * + * bool spot = 32; + * @param value The spot to set. + * @return This builder for chaining. + */ + public Builder setSpot(boolean value) { + + spot_ = value; + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + /** + *
+     * Spot flag for enabling Spot VM, which is a rebrand of
+     * the existing preemptible flag.
+     * 
+ * + * bool spot = 32; + * @return This builder for chaining. + */ + public Builder clearSpot() { + bitField0_ = (bitField0_ & ~0x02000000); + spot_ = false; + onChanged(); + return this; + } + + private com.google.container.v1.ConfidentialNodes confidentialNodes_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ConfidentialNodes, com.google.container.v1.ConfidentialNodes.Builder, com.google.container.v1.ConfidentialNodesOrBuilder> confidentialNodesBuilder_; + /** + *
+     * Confidential nodes config.
+     * All the nodes in the node pool will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 35; + * @return Whether the confidentialNodes field is set. + */ + public boolean hasConfidentialNodes() { + return ((bitField0_ & 0x04000000) != 0); + } + /** + *
+     * Confidential nodes config.
+     * All the nodes in the node pool will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 35; + * @return The confidentialNodes. + */ + public com.google.container.v1.ConfidentialNodes getConfidentialNodes() { + if (confidentialNodesBuilder_ == null) { + return confidentialNodes_ == null ? com.google.container.v1.ConfidentialNodes.getDefaultInstance() : confidentialNodes_; + } else { + return confidentialNodesBuilder_.getMessage(); + } + } + /** + *
+     * Confidential nodes config.
+     * All the nodes in the node pool will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 35; + */ + public Builder setConfidentialNodes(com.google.container.v1.ConfidentialNodes value) { + if (confidentialNodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + confidentialNodes_ = value; + } else { + confidentialNodesBuilder_.setMessage(value); + } + bitField0_ |= 0x04000000; + onChanged(); + return this; + } + /** + *
+     * Confidential nodes config.
+     * All the nodes in the node pool will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 35; + */ + public Builder setConfidentialNodes( + com.google.container.v1.ConfidentialNodes.Builder builderForValue) { + if (confidentialNodesBuilder_ == null) { + confidentialNodes_ = builderForValue.build(); + } else { + confidentialNodesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x04000000; + onChanged(); + return this; + } + /** + *
+     * Confidential nodes config.
+     * All the nodes in the node pool will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 35; + */ + public Builder mergeConfidentialNodes(com.google.container.v1.ConfidentialNodes value) { + if (confidentialNodesBuilder_ == null) { + if (((bitField0_ & 0x04000000) != 0) && + confidentialNodes_ != null && + confidentialNodes_ != com.google.container.v1.ConfidentialNodes.getDefaultInstance()) { + getConfidentialNodesBuilder().mergeFrom(value); + } else { + confidentialNodes_ = value; + } + } else { + confidentialNodesBuilder_.mergeFrom(value); + } + if (confidentialNodes_ != null) { + bitField0_ |= 0x04000000; + onChanged(); + } + return this; + } + /** + *
+     * Confidential nodes config.
+     * All the nodes in the node pool will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 35; + */ + public Builder clearConfidentialNodes() { + bitField0_ = (bitField0_ & ~0x04000000); + confidentialNodes_ = null; + if (confidentialNodesBuilder_ != null) { + confidentialNodesBuilder_.dispose(); + confidentialNodesBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Confidential nodes config.
+     * All the nodes in the node pool will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 35; + */ + public com.google.container.v1.ConfidentialNodes.Builder getConfidentialNodesBuilder() { + bitField0_ |= 0x04000000; + onChanged(); + return getConfidentialNodesFieldBuilder().getBuilder(); + } + /** + *
+     * Confidential nodes config.
+     * All the nodes in the node pool will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 35; + */ + public com.google.container.v1.ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder() { + if (confidentialNodesBuilder_ != null) { + return confidentialNodesBuilder_.getMessageOrBuilder(); + } else { + return confidentialNodes_ == null ? + com.google.container.v1.ConfidentialNodes.getDefaultInstance() : confidentialNodes_; + } + } + /** + *
+     * Confidential nodes config.
+     * All the nodes in the node pool will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 35; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ConfidentialNodes, com.google.container.v1.ConfidentialNodes.Builder, com.google.container.v1.ConfidentialNodesOrBuilder> + getConfidentialNodesFieldBuilder() { + if (confidentialNodesBuilder_ == null) { + confidentialNodesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ConfidentialNodes, com.google.container.v1.ConfidentialNodes.Builder, com.google.container.v1.ConfidentialNodesOrBuilder>( + getConfidentialNodes(), + getParentForChildren(), + isClean()); + confidentialNodes_ = null; + } + return confidentialNodesBuilder_; + } + + private com.google.container.v1.FastSocket fastSocket_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.FastSocket, com.google.container.v1.FastSocket.Builder, com.google.container.v1.FastSocketOrBuilder> fastSocketBuilder_; + /** + *
+     * Enable or disable NCCL fast socket for the node pool.
+     * 
+ * + * optional .google.container.v1.FastSocket fast_socket = 36; + * @return Whether the fastSocket field is set. + */ + public boolean hasFastSocket() { + return ((bitField0_ & 0x08000000) != 0); + } + /** + *
+     * Enable or disable NCCL fast socket for the node pool.
+     * 
+ * + * optional .google.container.v1.FastSocket fast_socket = 36; + * @return The fastSocket. + */ + public com.google.container.v1.FastSocket getFastSocket() { + if (fastSocketBuilder_ == null) { + return fastSocket_ == null ? com.google.container.v1.FastSocket.getDefaultInstance() : fastSocket_; + } else { + return fastSocketBuilder_.getMessage(); + } + } + /** + *
+     * Enable or disable NCCL fast socket for the node pool.
+     * 
+ * + * optional .google.container.v1.FastSocket fast_socket = 36; + */ + public Builder setFastSocket(com.google.container.v1.FastSocket value) { + if (fastSocketBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fastSocket_ = value; + } else { + fastSocketBuilder_.setMessage(value); + } + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + /** + *
+     * Enable or disable NCCL fast socket for the node pool.
+     * 
+ * + * optional .google.container.v1.FastSocket fast_socket = 36; + */ + public Builder setFastSocket( + com.google.container.v1.FastSocket.Builder builderForValue) { + if (fastSocketBuilder_ == null) { + fastSocket_ = builderForValue.build(); + } else { + fastSocketBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + /** + *
+     * Enable or disable NCCL fast socket for the node pool.
+     * 
+ * + * optional .google.container.v1.FastSocket fast_socket = 36; + */ + public Builder mergeFastSocket(com.google.container.v1.FastSocket value) { + if (fastSocketBuilder_ == null) { + if (((bitField0_ & 0x08000000) != 0) && + fastSocket_ != null && + fastSocket_ != com.google.container.v1.FastSocket.getDefaultInstance()) { + getFastSocketBuilder().mergeFrom(value); + } else { + fastSocket_ = value; + } + } else { + fastSocketBuilder_.mergeFrom(value); + } + if (fastSocket_ != null) { + bitField0_ |= 0x08000000; + onChanged(); + } + return this; + } + /** + *
+     * Enable or disable NCCL fast socket for the node pool.
+     * 
+ * + * optional .google.container.v1.FastSocket fast_socket = 36; + */ + public Builder clearFastSocket() { + bitField0_ = (bitField0_ & ~0x08000000); + fastSocket_ = null; + if (fastSocketBuilder_ != null) { + fastSocketBuilder_.dispose(); + fastSocketBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Enable or disable NCCL fast socket for the node pool.
+     * 
+ * + * optional .google.container.v1.FastSocket fast_socket = 36; + */ + public com.google.container.v1.FastSocket.Builder getFastSocketBuilder() { + bitField0_ |= 0x08000000; + onChanged(); + return getFastSocketFieldBuilder().getBuilder(); + } + /** + *
+     * Enable or disable NCCL fast socket for the node pool.
+     * 
+ * + * optional .google.container.v1.FastSocket fast_socket = 36; + */ + public com.google.container.v1.FastSocketOrBuilder getFastSocketOrBuilder() { + if (fastSocketBuilder_ != null) { + return fastSocketBuilder_.getMessageOrBuilder(); + } else { + return fastSocket_ == null ? + com.google.container.v1.FastSocket.getDefaultInstance() : fastSocket_; + } + } + /** + *
+     * Enable or disable NCCL fast socket for the node pool.
+     * 
+ * + * optional .google.container.v1.FastSocket fast_socket = 36; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.FastSocket, com.google.container.v1.FastSocket.Builder, com.google.container.v1.FastSocketOrBuilder> + getFastSocketFieldBuilder() { + if (fastSocketBuilder_ == null) { + fastSocketBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.FastSocket, com.google.container.v1.FastSocket.Builder, com.google.container.v1.FastSocketOrBuilder>( + getFastSocket(), + getParentForChildren(), + isClean()); + fastSocket_ = null; + } + return fastSocketBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> resourceLabels_; + private com.google.protobuf.MapField + internalGetResourceLabels() { + if (resourceLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + return resourceLabels_; + } + private com.google.protobuf.MapField + internalGetMutableResourceLabels() { + if (resourceLabels_ == null) { + resourceLabels_ = com.google.protobuf.MapField.newMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + if (!resourceLabels_.isMutable()) { + resourceLabels_ = resourceLabels_.copy(); + } + bitField0_ |= 0x10000000; + onChanged(); + return resourceLabels_; + } + public int getResourceLabelsCount() { + return internalGetResourceLabels().getMap().size(); + } + /** + *
+     * The resource labels for the node pool to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * map<string, string> resource_labels = 37; + */ + @java.lang.Override + public boolean containsResourceLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + 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 node pool to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * map<string, string> resource_labels = 37; + */ + @java.lang.Override + public java.util.Map getResourceLabelsMap() { + return internalGetResourceLabels().getMap(); + } + /** + *
+     * The resource labels for the node pool to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * map<string, string> resource_labels = 37; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getResourceLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetResourceLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * The resource labels for the node pool to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * map<string, string> resource_labels = 37; + */ + @java.lang.Override + public java.lang.String getResourceLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetResourceLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearResourceLabels() { + bitField0_ = (bitField0_ & ~0x10000000); + internalGetMutableResourceLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+     * The resource labels for the node pool to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * map<string, string> resource_labels = 37; + */ + public Builder removeResourceLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableResourceLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableResourceLabels() { + bitField0_ |= 0x10000000; + return internalGetMutableResourceLabels().getMutableMap(); + } + /** + *
+     * The resource labels for the node pool to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * map<string, string> resource_labels = 37; + */ + public Builder putResourceLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableResourceLabels().getMutableMap() + .put(key, value); + bitField0_ |= 0x10000000; + return this; + } + /** + *
+     * The resource labels for the node pool to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * map<string, string> resource_labels = 37; + */ + public Builder putAllResourceLabels( + java.util.Map values) { + internalGetMutableResourceLabels().getMutableMap() + .putAll(values); + bitField0_ |= 0x10000000; + return this; + } + + private com.google.container.v1.NodePoolLoggingConfig loggingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePoolLoggingConfig, com.google.container.v1.NodePoolLoggingConfig.Builder, com.google.container.v1.NodePoolLoggingConfigOrBuilder> loggingConfigBuilder_; + /** + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 38; + * @return Whether the loggingConfig field is set. + */ + public boolean hasLoggingConfig() { + return ((bitField0_ & 0x20000000) != 0); + } + /** + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 38; + * @return The loggingConfig. + */ + public com.google.container.v1.NodePoolLoggingConfig getLoggingConfig() { + if (loggingConfigBuilder_ == null) { + return loggingConfig_ == null ? com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance() : loggingConfig_; + } else { + return loggingConfigBuilder_.getMessage(); + } + } + /** + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 38; + */ + public Builder setLoggingConfig(com.google.container.v1.NodePoolLoggingConfig value) { + if (loggingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + loggingConfig_ = value; + } else { + loggingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x20000000; + onChanged(); + return this; + } + /** + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 38; + */ + public Builder setLoggingConfig( + com.google.container.v1.NodePoolLoggingConfig.Builder builderForValue) { + if (loggingConfigBuilder_ == null) { + loggingConfig_ = builderForValue.build(); + } else { + loggingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x20000000; + onChanged(); + return this; + } + /** + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 38; + */ + public Builder mergeLoggingConfig(com.google.container.v1.NodePoolLoggingConfig value) { + if (loggingConfigBuilder_ == null) { + if (((bitField0_ & 0x20000000) != 0) && + loggingConfig_ != null && + loggingConfig_ != com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance()) { + getLoggingConfigBuilder().mergeFrom(value); + } else { + loggingConfig_ = value; + } + } else { + loggingConfigBuilder_.mergeFrom(value); + } + if (loggingConfig_ != null) { + bitField0_ |= 0x20000000; + onChanged(); + } + return this; + } + /** + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 38; + */ + public Builder clearLoggingConfig() { + bitField0_ = (bitField0_ & ~0x20000000); + loggingConfig_ = null; + if (loggingConfigBuilder_ != null) { + loggingConfigBuilder_.dispose(); + loggingConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 38; + */ + public com.google.container.v1.NodePoolLoggingConfig.Builder getLoggingConfigBuilder() { + bitField0_ |= 0x20000000; + onChanged(); + return getLoggingConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 38; + */ + public com.google.container.v1.NodePoolLoggingConfigOrBuilder getLoggingConfigOrBuilder() { + if (loggingConfigBuilder_ != null) { + return loggingConfigBuilder_.getMessageOrBuilder(); + } else { + return loggingConfig_ == null ? + com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance() : loggingConfig_; + } + } + /** + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 38; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePoolLoggingConfig, com.google.container.v1.NodePoolLoggingConfig.Builder, com.google.container.v1.NodePoolLoggingConfigOrBuilder> + getLoggingConfigFieldBuilder() { + if (loggingConfigBuilder_ == null) { + loggingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePoolLoggingConfig, com.google.container.v1.NodePoolLoggingConfig.Builder, com.google.container.v1.NodePoolLoggingConfigOrBuilder>( + getLoggingConfig(), + getParentForChildren(), + isClean()); + loggingConfig_ = null; + } + return loggingConfigBuilder_; + } + + private com.google.container.v1.WindowsNodeConfig windowsNodeConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WindowsNodeConfig, com.google.container.v1.WindowsNodeConfig.Builder, com.google.container.v1.WindowsNodeConfigOrBuilder> windowsNodeConfigBuilder_; + /** + *
+     * Parameters that can be configured on Windows nodes.
+     * 
+ * + * .google.container.v1.WindowsNodeConfig windows_node_config = 39; + * @return Whether the windowsNodeConfig field is set. + */ + public boolean hasWindowsNodeConfig() { + return ((bitField0_ & 0x40000000) != 0); + } + /** + *
+     * Parameters that can be configured on Windows nodes.
+     * 
+ * + * .google.container.v1.WindowsNodeConfig windows_node_config = 39; + * @return The windowsNodeConfig. + */ + public com.google.container.v1.WindowsNodeConfig getWindowsNodeConfig() { + if (windowsNodeConfigBuilder_ == null) { + return windowsNodeConfig_ == null ? com.google.container.v1.WindowsNodeConfig.getDefaultInstance() : windowsNodeConfig_; + } else { + return windowsNodeConfigBuilder_.getMessage(); + } + } + /** + *
+     * Parameters that can be configured on Windows nodes.
+     * 
+ * + * .google.container.v1.WindowsNodeConfig windows_node_config = 39; + */ + public Builder setWindowsNodeConfig(com.google.container.v1.WindowsNodeConfig value) { + if (windowsNodeConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + windowsNodeConfig_ = value; + } else { + windowsNodeConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x40000000; + onChanged(); + return this; + } + /** + *
+     * Parameters that can be configured on Windows nodes.
+     * 
+ * + * .google.container.v1.WindowsNodeConfig windows_node_config = 39; + */ + public Builder setWindowsNodeConfig( + com.google.container.v1.WindowsNodeConfig.Builder builderForValue) { + if (windowsNodeConfigBuilder_ == null) { + windowsNodeConfig_ = builderForValue.build(); + } else { + windowsNodeConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x40000000; + onChanged(); + return this; + } + /** + *
+     * Parameters that can be configured on Windows nodes.
+     * 
+ * + * .google.container.v1.WindowsNodeConfig windows_node_config = 39; + */ + public Builder mergeWindowsNodeConfig(com.google.container.v1.WindowsNodeConfig value) { + if (windowsNodeConfigBuilder_ == null) { + if (((bitField0_ & 0x40000000) != 0) && + windowsNodeConfig_ != null && + windowsNodeConfig_ != com.google.container.v1.WindowsNodeConfig.getDefaultInstance()) { + getWindowsNodeConfigBuilder().mergeFrom(value); + } else { + windowsNodeConfig_ = value; + } + } else { + windowsNodeConfigBuilder_.mergeFrom(value); + } + if (windowsNodeConfig_ != null) { + bitField0_ |= 0x40000000; + onChanged(); + } + return this; + } + /** + *
+     * Parameters that can be configured on Windows nodes.
+     * 
+ * + * .google.container.v1.WindowsNodeConfig windows_node_config = 39; + */ + public Builder clearWindowsNodeConfig() { + bitField0_ = (bitField0_ & ~0x40000000); + windowsNodeConfig_ = null; + if (windowsNodeConfigBuilder_ != null) { + windowsNodeConfigBuilder_.dispose(); + windowsNodeConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Parameters that can be configured on Windows nodes.
+     * 
+ * + * .google.container.v1.WindowsNodeConfig windows_node_config = 39; + */ + public com.google.container.v1.WindowsNodeConfig.Builder getWindowsNodeConfigBuilder() { + bitField0_ |= 0x40000000; + onChanged(); + return getWindowsNodeConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Parameters that can be configured on Windows nodes.
+     * 
+ * + * .google.container.v1.WindowsNodeConfig windows_node_config = 39; + */ + public com.google.container.v1.WindowsNodeConfigOrBuilder getWindowsNodeConfigOrBuilder() { + if (windowsNodeConfigBuilder_ != null) { + return windowsNodeConfigBuilder_.getMessageOrBuilder(); + } else { + return windowsNodeConfig_ == null ? + com.google.container.v1.WindowsNodeConfig.getDefaultInstance() : windowsNodeConfig_; + } + } + /** + *
+     * Parameters that can be configured on Windows nodes.
+     * 
+ * + * .google.container.v1.WindowsNodeConfig windows_node_config = 39; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WindowsNodeConfig, com.google.container.v1.WindowsNodeConfig.Builder, com.google.container.v1.WindowsNodeConfigOrBuilder> + getWindowsNodeConfigFieldBuilder() { + if (windowsNodeConfigBuilder_ == null) { + windowsNodeConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WindowsNodeConfig, com.google.container.v1.WindowsNodeConfig.Builder, com.google.container.v1.WindowsNodeConfigOrBuilder>( + getWindowsNodeConfig(), + getParentForChildren(), + isClean()); + windowsNodeConfig_ = null; + } + return windowsNodeConfigBuilder_; + } + + private com.google.container.v1.LocalNvmeSsdBlockConfig localNvmeSsdBlockConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LocalNvmeSsdBlockConfig, com.google.container.v1.LocalNvmeSsdBlockConfig.Builder, com.google.container.v1.LocalNvmeSsdBlockConfigOrBuilder> localNvmeSsdBlockConfigBuilder_; + /** + *
+     * Parameters for using raw-block Local NVMe SSDs.
+     * 
+ * + * .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; + * @return Whether the localNvmeSsdBlockConfig field is set. + */ + public boolean hasLocalNvmeSsdBlockConfig() { + return ((bitField0_ & 0x80000000) != 0); + } + /** + *
+     * Parameters for using raw-block Local NVMe SSDs.
+     * 
+ * + * .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; + * @return The localNvmeSsdBlockConfig. + */ + public com.google.container.v1.LocalNvmeSsdBlockConfig getLocalNvmeSsdBlockConfig() { + if (localNvmeSsdBlockConfigBuilder_ == null) { + return localNvmeSsdBlockConfig_ == null ? com.google.container.v1.LocalNvmeSsdBlockConfig.getDefaultInstance() : localNvmeSsdBlockConfig_; + } else { + return localNvmeSsdBlockConfigBuilder_.getMessage(); + } + } + /** + *
+     * Parameters for using raw-block Local NVMe SSDs.
+     * 
+ * + * .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; + */ + public Builder setLocalNvmeSsdBlockConfig(com.google.container.v1.LocalNvmeSsdBlockConfig value) { + if (localNvmeSsdBlockConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + localNvmeSsdBlockConfig_ = value; + } else { + localNvmeSsdBlockConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x80000000; + onChanged(); + return this; + } + /** + *
+     * Parameters for using raw-block Local NVMe SSDs.
+     * 
+ * + * .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; + */ + public Builder setLocalNvmeSsdBlockConfig( + com.google.container.v1.LocalNvmeSsdBlockConfig.Builder builderForValue) { + if (localNvmeSsdBlockConfigBuilder_ == null) { + localNvmeSsdBlockConfig_ = builderForValue.build(); + } else { + localNvmeSsdBlockConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x80000000; + onChanged(); + return this; + } + /** + *
+     * Parameters for using raw-block Local NVMe SSDs.
+     * 
+ * + * .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; + */ + public Builder mergeLocalNvmeSsdBlockConfig(com.google.container.v1.LocalNvmeSsdBlockConfig value) { + if (localNvmeSsdBlockConfigBuilder_ == null) { + if (((bitField0_ & 0x80000000) != 0) && + localNvmeSsdBlockConfig_ != null && + localNvmeSsdBlockConfig_ != com.google.container.v1.LocalNvmeSsdBlockConfig.getDefaultInstance()) { + getLocalNvmeSsdBlockConfigBuilder().mergeFrom(value); + } else { + localNvmeSsdBlockConfig_ = value; + } + } else { + localNvmeSsdBlockConfigBuilder_.mergeFrom(value); + } + if (localNvmeSsdBlockConfig_ != null) { + bitField0_ |= 0x80000000; + onChanged(); + } + return this; + } + /** + *
+     * Parameters for using raw-block Local NVMe SSDs.
+     * 
+ * + * .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; + */ + public Builder clearLocalNvmeSsdBlockConfig() { + bitField0_ = (bitField0_ & ~0x80000000); + localNvmeSsdBlockConfig_ = null; + if (localNvmeSsdBlockConfigBuilder_ != null) { + localNvmeSsdBlockConfigBuilder_.dispose(); + localNvmeSsdBlockConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Parameters for using raw-block Local NVMe SSDs.
+     * 
+ * + * .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; + */ + public com.google.container.v1.LocalNvmeSsdBlockConfig.Builder getLocalNvmeSsdBlockConfigBuilder() { + bitField0_ |= 0x80000000; + onChanged(); + return getLocalNvmeSsdBlockConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Parameters for using raw-block Local NVMe SSDs.
+     * 
+ * + * .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; + */ + public com.google.container.v1.LocalNvmeSsdBlockConfigOrBuilder getLocalNvmeSsdBlockConfigOrBuilder() { + if (localNvmeSsdBlockConfigBuilder_ != null) { + return localNvmeSsdBlockConfigBuilder_.getMessageOrBuilder(); + } else { + return localNvmeSsdBlockConfig_ == null ? + com.google.container.v1.LocalNvmeSsdBlockConfig.getDefaultInstance() : localNvmeSsdBlockConfig_; + } + } + /** + *
+     * Parameters for using raw-block Local NVMe SSDs.
+     * 
+ * + * .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LocalNvmeSsdBlockConfig, com.google.container.v1.LocalNvmeSsdBlockConfig.Builder, com.google.container.v1.LocalNvmeSsdBlockConfigOrBuilder> + getLocalNvmeSsdBlockConfigFieldBuilder() { + if (localNvmeSsdBlockConfigBuilder_ == null) { + localNvmeSsdBlockConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LocalNvmeSsdBlockConfig, com.google.container.v1.LocalNvmeSsdBlockConfig.Builder, com.google.container.v1.LocalNvmeSsdBlockConfigOrBuilder>( + getLocalNvmeSsdBlockConfig(), + getParentForChildren(), + isClean()); + localNvmeSsdBlockConfig_ = null; + } + return localNvmeSsdBlockConfigBuilder_; + } + + private com.google.container.v1.EphemeralStorageLocalSsdConfig ephemeralStorageLocalSsdConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.EphemeralStorageLocalSsdConfig, com.google.container.v1.EphemeralStorageLocalSsdConfig.Builder, com.google.container.v1.EphemeralStorageLocalSsdConfigOrBuilder> ephemeralStorageLocalSsdConfigBuilder_; + /** + *
+     * Parameters for the node ephemeral storage using Local SSDs.
+     * If unspecified, ephemeral storage is backed by the boot disk.
+     * 
+ * + * .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; + * @return Whether the ephemeralStorageLocalSsdConfig field is set. + */ + public boolean hasEphemeralStorageLocalSsdConfig() { + return ((bitField1_ & 0x00000001) != 0); + } + /** + *
+     * Parameters for the node ephemeral storage using Local SSDs.
+     * If unspecified, ephemeral storage is backed by the boot disk.
+     * 
+ * + * .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; + * @return The ephemeralStorageLocalSsdConfig. + */ + public com.google.container.v1.EphemeralStorageLocalSsdConfig getEphemeralStorageLocalSsdConfig() { + if (ephemeralStorageLocalSsdConfigBuilder_ == null) { + return ephemeralStorageLocalSsdConfig_ == null ? com.google.container.v1.EphemeralStorageLocalSsdConfig.getDefaultInstance() : ephemeralStorageLocalSsdConfig_; + } else { + return ephemeralStorageLocalSsdConfigBuilder_.getMessage(); + } + } + /** + *
+     * Parameters for the node ephemeral storage using Local SSDs.
+     * If unspecified, ephemeral storage is backed by the boot disk.
+     * 
+ * + * .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; + */ + public Builder setEphemeralStorageLocalSsdConfig(com.google.container.v1.EphemeralStorageLocalSsdConfig value) { + if (ephemeralStorageLocalSsdConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ephemeralStorageLocalSsdConfig_ = value; + } else { + ephemeralStorageLocalSsdConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Parameters for the node ephemeral storage using Local SSDs.
+     * If unspecified, ephemeral storage is backed by the boot disk.
+     * 
+ * + * .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; + */ + public Builder setEphemeralStorageLocalSsdConfig( + com.google.container.v1.EphemeralStorageLocalSsdConfig.Builder builderForValue) { + if (ephemeralStorageLocalSsdConfigBuilder_ == null) { + ephemeralStorageLocalSsdConfig_ = builderForValue.build(); + } else { + ephemeralStorageLocalSsdConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Parameters for the node ephemeral storage using Local SSDs.
+     * If unspecified, ephemeral storage is backed by the boot disk.
+     * 
+ * + * .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; + */ + public Builder mergeEphemeralStorageLocalSsdConfig(com.google.container.v1.EphemeralStorageLocalSsdConfig value) { + if (ephemeralStorageLocalSsdConfigBuilder_ == null) { + if (((bitField1_ & 0x00000001) != 0) && + ephemeralStorageLocalSsdConfig_ != null && + ephemeralStorageLocalSsdConfig_ != com.google.container.v1.EphemeralStorageLocalSsdConfig.getDefaultInstance()) { + getEphemeralStorageLocalSsdConfigBuilder().mergeFrom(value); + } else { + ephemeralStorageLocalSsdConfig_ = value; + } + } else { + ephemeralStorageLocalSsdConfigBuilder_.mergeFrom(value); + } + if (ephemeralStorageLocalSsdConfig_ != null) { + bitField1_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+     * Parameters for the node ephemeral storage using Local SSDs.
+     * If unspecified, ephemeral storage is backed by the boot disk.
+     * 
+ * + * .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; + */ + public Builder clearEphemeralStorageLocalSsdConfig() { + bitField1_ = (bitField1_ & ~0x00000001); + ephemeralStorageLocalSsdConfig_ = null; + if (ephemeralStorageLocalSsdConfigBuilder_ != null) { + ephemeralStorageLocalSsdConfigBuilder_.dispose(); + ephemeralStorageLocalSsdConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Parameters for the node ephemeral storage using Local SSDs.
+     * If unspecified, ephemeral storage is backed by the boot disk.
+     * 
+ * + * .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; + */ + public com.google.container.v1.EphemeralStorageLocalSsdConfig.Builder getEphemeralStorageLocalSsdConfigBuilder() { + bitField1_ |= 0x00000001; + onChanged(); + return getEphemeralStorageLocalSsdConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Parameters for the node ephemeral storage using Local SSDs.
+     * If unspecified, ephemeral storage is backed by the boot disk.
+     * 
+ * + * .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; + */ + public com.google.container.v1.EphemeralStorageLocalSsdConfigOrBuilder getEphemeralStorageLocalSsdConfigOrBuilder() { + if (ephemeralStorageLocalSsdConfigBuilder_ != null) { + return ephemeralStorageLocalSsdConfigBuilder_.getMessageOrBuilder(); + } else { + return ephemeralStorageLocalSsdConfig_ == null ? + com.google.container.v1.EphemeralStorageLocalSsdConfig.getDefaultInstance() : ephemeralStorageLocalSsdConfig_; + } + } + /** + *
+     * Parameters for the node ephemeral storage using Local SSDs.
+     * If unspecified, ephemeral storage is backed by the boot disk.
+     * 
+ * + * .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.EphemeralStorageLocalSsdConfig, com.google.container.v1.EphemeralStorageLocalSsdConfig.Builder, com.google.container.v1.EphemeralStorageLocalSsdConfigOrBuilder> + getEphemeralStorageLocalSsdConfigFieldBuilder() { + if (ephemeralStorageLocalSsdConfigBuilder_ == null) { + ephemeralStorageLocalSsdConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.EphemeralStorageLocalSsdConfig, com.google.container.v1.EphemeralStorageLocalSsdConfig.Builder, com.google.container.v1.EphemeralStorageLocalSsdConfigOrBuilder>( + getEphemeralStorageLocalSsdConfig(), + getParentForChildren(), + isClean()); + ephemeralStorageLocalSsdConfig_ = null; + } + return ephemeralStorageLocalSsdConfigBuilder_; + } + + private com.google.container.v1.SoleTenantConfig soleTenantConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.SoleTenantConfig, com.google.container.v1.SoleTenantConfig.Builder, com.google.container.v1.SoleTenantConfigOrBuilder> soleTenantConfigBuilder_; + /** + *
+     * Parameters for node pools to be backed by shared sole tenant node groups.
+     * 
+ * + * .google.container.v1.SoleTenantConfig sole_tenant_config = 42; + * @return Whether the soleTenantConfig field is set. + */ + public boolean hasSoleTenantConfig() { + return ((bitField1_ & 0x00000002) != 0); + } + /** + *
+     * Parameters for node pools to be backed by shared sole tenant node groups.
+     * 
+ * + * .google.container.v1.SoleTenantConfig sole_tenant_config = 42; + * @return The soleTenantConfig. + */ + public com.google.container.v1.SoleTenantConfig getSoleTenantConfig() { + if (soleTenantConfigBuilder_ == null) { + return soleTenantConfig_ == null ? com.google.container.v1.SoleTenantConfig.getDefaultInstance() : soleTenantConfig_; + } else { + return soleTenantConfigBuilder_.getMessage(); + } + } + /** + *
+     * Parameters for node pools to be backed by shared sole tenant node groups.
+     * 
+ * + * .google.container.v1.SoleTenantConfig sole_tenant_config = 42; + */ + public Builder setSoleTenantConfig(com.google.container.v1.SoleTenantConfig value) { + if (soleTenantConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + soleTenantConfig_ = value; + } else { + soleTenantConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Parameters for node pools to be backed by shared sole tenant node groups.
+     * 
+ * + * .google.container.v1.SoleTenantConfig sole_tenant_config = 42; + */ + public Builder setSoleTenantConfig( + com.google.container.v1.SoleTenantConfig.Builder builderForValue) { + if (soleTenantConfigBuilder_ == null) { + soleTenantConfig_ = builderForValue.build(); + } else { + soleTenantConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Parameters for node pools to be backed by shared sole tenant node groups.
+     * 
+ * + * .google.container.v1.SoleTenantConfig sole_tenant_config = 42; + */ + public Builder mergeSoleTenantConfig(com.google.container.v1.SoleTenantConfig value) { + if (soleTenantConfigBuilder_ == null) { + if (((bitField1_ & 0x00000002) != 0) && + soleTenantConfig_ != null && + soleTenantConfig_ != com.google.container.v1.SoleTenantConfig.getDefaultInstance()) { + getSoleTenantConfigBuilder().mergeFrom(value); + } else { + soleTenantConfig_ = value; + } + } else { + soleTenantConfigBuilder_.mergeFrom(value); + } + if (soleTenantConfig_ != null) { + bitField1_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + *
+     * Parameters for node pools to be backed by shared sole tenant node groups.
+     * 
+ * + * .google.container.v1.SoleTenantConfig sole_tenant_config = 42; + */ + public Builder clearSoleTenantConfig() { + bitField1_ = (bitField1_ & ~0x00000002); + soleTenantConfig_ = null; + if (soleTenantConfigBuilder_ != null) { + soleTenantConfigBuilder_.dispose(); + soleTenantConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Parameters for node pools to be backed by shared sole tenant node groups.
+     * 
+ * + * .google.container.v1.SoleTenantConfig sole_tenant_config = 42; + */ + public com.google.container.v1.SoleTenantConfig.Builder getSoleTenantConfigBuilder() { + bitField1_ |= 0x00000002; + onChanged(); + return getSoleTenantConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Parameters for node pools to be backed by shared sole tenant node groups.
+     * 
+ * + * .google.container.v1.SoleTenantConfig sole_tenant_config = 42; + */ + public com.google.container.v1.SoleTenantConfigOrBuilder getSoleTenantConfigOrBuilder() { + if (soleTenantConfigBuilder_ != null) { + return soleTenantConfigBuilder_.getMessageOrBuilder(); + } else { + return soleTenantConfig_ == null ? + com.google.container.v1.SoleTenantConfig.getDefaultInstance() : soleTenantConfig_; + } + } + /** + *
+     * Parameters for node pools to be backed by shared sole tenant node groups.
+     * 
+ * + * .google.container.v1.SoleTenantConfig sole_tenant_config = 42; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.SoleTenantConfig, com.google.container.v1.SoleTenantConfig.Builder, com.google.container.v1.SoleTenantConfigOrBuilder> + getSoleTenantConfigFieldBuilder() { + if (soleTenantConfigBuilder_ == null) { + soleTenantConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.SoleTenantConfig, com.google.container.v1.SoleTenantConfig.Builder, com.google.container.v1.SoleTenantConfigOrBuilder>( + getSoleTenantConfig(), + getParentForChildren(), + isClean()); + soleTenantConfig_ = null; + } + return soleTenantConfigBuilder_; + } + + private com.google.container.v1.ResourceManagerTags resourceManagerTags_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ResourceManagerTags, com.google.container.v1.ResourceManagerTags.Builder, com.google.container.v1.ResourceManagerTagsOrBuilder> resourceManagerTagsBuilder_; + /** + *
+     * A map of resource manager tag keys and values to be attached to the nodes.
+     * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 45; + * @return Whether the resourceManagerTags field is set. + */ + public boolean hasResourceManagerTags() { + return ((bitField1_ & 0x00000004) != 0); + } + /** + *
+     * A map of resource manager tag keys and values to be attached to the nodes.
+     * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 45; + * @return The resourceManagerTags. + */ + public com.google.container.v1.ResourceManagerTags getResourceManagerTags() { + if (resourceManagerTagsBuilder_ == null) { + return resourceManagerTags_ == null ? com.google.container.v1.ResourceManagerTags.getDefaultInstance() : resourceManagerTags_; + } else { + return resourceManagerTagsBuilder_.getMessage(); + } + } + /** + *
+     * A map of resource manager tag keys and values to be attached to the nodes.
+     * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 45; + */ + public Builder setResourceManagerTags(com.google.container.v1.ResourceManagerTags value) { + if (resourceManagerTagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resourceManagerTags_ = value; + } else { + resourceManagerTagsBuilder_.setMessage(value); + } + bitField1_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * A map of resource manager tag keys and values to be attached to the nodes.
+     * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 45; + */ + public Builder setResourceManagerTags( + com.google.container.v1.ResourceManagerTags.Builder builderForValue) { + if (resourceManagerTagsBuilder_ == null) { + resourceManagerTags_ = builderForValue.build(); + } else { + resourceManagerTagsBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * A map of resource manager tag keys and values to be attached to the nodes.
+     * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 45; + */ + public Builder mergeResourceManagerTags(com.google.container.v1.ResourceManagerTags value) { + if (resourceManagerTagsBuilder_ == null) { + if (((bitField1_ & 0x00000004) != 0) && + resourceManagerTags_ != null && + resourceManagerTags_ != com.google.container.v1.ResourceManagerTags.getDefaultInstance()) { + getResourceManagerTagsBuilder().mergeFrom(value); + } else { + resourceManagerTags_ = value; + } + } else { + resourceManagerTagsBuilder_.mergeFrom(value); + } + if (resourceManagerTags_ != null) { + bitField1_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+     * A map of resource manager tag keys and values to be attached to the nodes.
+     * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 45; + */ + public Builder clearResourceManagerTags() { + bitField1_ = (bitField1_ & ~0x00000004); + resourceManagerTags_ = null; + if (resourceManagerTagsBuilder_ != null) { + resourceManagerTagsBuilder_.dispose(); + resourceManagerTagsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * A map of resource manager tag keys and values to be attached to the nodes.
+     * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 45; + */ + public com.google.container.v1.ResourceManagerTags.Builder getResourceManagerTagsBuilder() { + bitField1_ |= 0x00000004; + onChanged(); + return getResourceManagerTagsFieldBuilder().getBuilder(); + } + /** + *
+     * A map of resource manager tag keys and values to be attached to the nodes.
+     * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 45; + */ + public com.google.container.v1.ResourceManagerTagsOrBuilder getResourceManagerTagsOrBuilder() { + if (resourceManagerTagsBuilder_ != null) { + return resourceManagerTagsBuilder_.getMessageOrBuilder(); + } else { + return resourceManagerTags_ == null ? + com.google.container.v1.ResourceManagerTags.getDefaultInstance() : resourceManagerTags_; + } + } + /** + *
+     * A map of resource manager tag keys and values to be attached to the nodes.
+     * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 45; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ResourceManagerTags, com.google.container.v1.ResourceManagerTags.Builder, com.google.container.v1.ResourceManagerTagsOrBuilder> + getResourceManagerTagsFieldBuilder() { + if (resourceManagerTagsBuilder_ == null) { + resourceManagerTagsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ResourceManagerTags, com.google.container.v1.ResourceManagerTags.Builder, com.google.container.v1.ResourceManagerTagsOrBuilder>( + getResourceManagerTags(), + getParentForChildren(), + isClean()); + resourceManagerTags_ = null; + } + return resourceManagerTagsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.NodeConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.NodeConfig) + private static final com.google.container.v1.NodeConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.NodeConfig(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.NodeConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigDefaults.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigDefaults.java new file mode 100644 index 000000000000..7daae23527df --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigDefaults.java @@ -0,0 +1,888 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Subset of NodeConfig message that has defaults.
+ * 
+ * + * Protobuf type {@code google.container.v1.NodeConfigDefaults} + */ +public final class NodeConfigDefaults extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.NodeConfigDefaults) + NodeConfigDefaultsOrBuilder { +private static final long serialVersionUID = 0L; + // Use NodeConfigDefaults.newBuilder() to construct. + private NodeConfigDefaults(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeConfigDefaults() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NodeConfigDefaults(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeConfigDefaults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeConfigDefaults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodeConfigDefaults.class, com.google.container.v1.NodeConfigDefaults.Builder.class); + } + + private int bitField0_; + public static final int GCFS_CONFIG_FIELD_NUMBER = 1; + private com.google.container.v1.GcfsConfig gcfsConfig_; + /** + *
+   * GCFS (Google Container File System, also known as Riptide) options.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 1; + * @return Whether the gcfsConfig field is set. + */ + @java.lang.Override + public boolean hasGcfsConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * GCFS (Google Container File System, also known as Riptide) options.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 1; + * @return The gcfsConfig. + */ + @java.lang.Override + public com.google.container.v1.GcfsConfig getGcfsConfig() { + return gcfsConfig_ == null ? com.google.container.v1.GcfsConfig.getDefaultInstance() : gcfsConfig_; + } + /** + *
+   * GCFS (Google Container File System, also known as Riptide) options.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 1; + */ + @java.lang.Override + public com.google.container.v1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { + return gcfsConfig_ == null ? com.google.container.v1.GcfsConfig.getDefaultInstance() : gcfsConfig_; + } + + public static final int LOGGING_CONFIG_FIELD_NUMBER = 3; + private com.google.container.v1.NodePoolLoggingConfig loggingConfig_; + /** + *
+   * Logging configuration for node pools.
+   * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 3; + * @return Whether the loggingConfig field is set. + */ + @java.lang.Override + public boolean hasLoggingConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * Logging configuration for node pools.
+   * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 3; + * @return The loggingConfig. + */ + @java.lang.Override + public com.google.container.v1.NodePoolLoggingConfig getLoggingConfig() { + return loggingConfig_ == null ? com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance() : loggingConfig_; + } + /** + *
+   * Logging configuration for node pools.
+   * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 3; + */ + @java.lang.Override + public com.google.container.v1.NodePoolLoggingConfigOrBuilder getLoggingConfigOrBuilder() { + return loggingConfig_ == null ? com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance() : loggingConfig_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getGcfsConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getLoggingConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getGcfsConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getLoggingConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.NodeConfigDefaults)) { + return super.equals(obj); + } + com.google.container.v1.NodeConfigDefaults other = (com.google.container.v1.NodeConfigDefaults) obj; + + if (hasGcfsConfig() != other.hasGcfsConfig()) return false; + if (hasGcfsConfig()) { + if (!getGcfsConfig() + .equals(other.getGcfsConfig())) return false; + } + if (hasLoggingConfig() != other.hasLoggingConfig()) return false; + if (hasLoggingConfig()) { + if (!getLoggingConfig() + .equals(other.getLoggingConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasGcfsConfig()) { + hash = (37 * hash) + GCFS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGcfsConfig().hashCode(); + } + if (hasLoggingConfig()) { + hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getLoggingConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.NodeConfigDefaults parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodeConfigDefaults parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodeConfigDefaults parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodeConfigDefaults parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodeConfigDefaults parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodeConfigDefaults parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodeConfigDefaults parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NodeConfigDefaults parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.NodeConfigDefaults parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.NodeConfigDefaults parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.NodeConfigDefaults parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NodeConfigDefaults parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.NodeConfigDefaults prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Subset of NodeConfig message that has defaults.
+   * 
+ * + * Protobuf type {@code google.container.v1.NodeConfigDefaults} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.NodeConfigDefaults) + com.google.container.v1.NodeConfigDefaultsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeConfigDefaults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeConfigDefaults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodeConfigDefaults.class, com.google.container.v1.NodeConfigDefaults.Builder.class); + } + + // Construct using com.google.container.v1.NodeConfigDefaults.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getGcfsConfigFieldBuilder(); + getLoggingConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + gcfsConfig_ = null; + if (gcfsConfigBuilder_ != null) { + gcfsConfigBuilder_.dispose(); + gcfsConfigBuilder_ = null; + } + loggingConfig_ = null; + if (loggingConfigBuilder_ != null) { + loggingConfigBuilder_.dispose(); + loggingConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeConfigDefaults_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NodeConfigDefaults getDefaultInstanceForType() { + return com.google.container.v1.NodeConfigDefaults.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NodeConfigDefaults build() { + com.google.container.v1.NodeConfigDefaults result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NodeConfigDefaults buildPartial() { + com.google.container.v1.NodeConfigDefaults result = new com.google.container.v1.NodeConfigDefaults(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.NodeConfigDefaults result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.gcfsConfig_ = gcfsConfigBuilder_ == null + ? gcfsConfig_ + : gcfsConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.loggingConfig_ = loggingConfigBuilder_ == null + ? loggingConfig_ + : loggingConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.NodeConfigDefaults) { + return mergeFrom((com.google.container.v1.NodeConfigDefaults)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NodeConfigDefaults other) { + if (other == com.google.container.v1.NodeConfigDefaults.getDefaultInstance()) return this; + if (other.hasGcfsConfig()) { + mergeGcfsConfig(other.getGcfsConfig()); + } + if (other.hasLoggingConfig()) { + mergeLoggingConfig(other.getLoggingConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getGcfsConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: { + input.readMessage( + getLoggingConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.container.v1.GcfsConfig gcfsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcfsConfig, com.google.container.v1.GcfsConfig.Builder, com.google.container.v1.GcfsConfigOrBuilder> gcfsConfigBuilder_; + /** + *
+     * GCFS (Google Container File System, also known as Riptide) options.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 1; + * @return Whether the gcfsConfig field is set. + */ + public boolean hasGcfsConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * GCFS (Google Container File System, also known as Riptide) options.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 1; + * @return The gcfsConfig. + */ + public com.google.container.v1.GcfsConfig getGcfsConfig() { + if (gcfsConfigBuilder_ == null) { + return gcfsConfig_ == null ? com.google.container.v1.GcfsConfig.getDefaultInstance() : gcfsConfig_; + } else { + return gcfsConfigBuilder_.getMessage(); + } + } + /** + *
+     * GCFS (Google Container File System, also known as Riptide) options.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 1; + */ + public Builder setGcfsConfig(com.google.container.v1.GcfsConfig value) { + if (gcfsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gcfsConfig_ = value; + } else { + gcfsConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * GCFS (Google Container File System, also known as Riptide) options.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 1; + */ + public Builder setGcfsConfig( + com.google.container.v1.GcfsConfig.Builder builderForValue) { + if (gcfsConfigBuilder_ == null) { + gcfsConfig_ = builderForValue.build(); + } else { + gcfsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * GCFS (Google Container File System, also known as Riptide) options.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 1; + */ + public Builder mergeGcfsConfig(com.google.container.v1.GcfsConfig value) { + if (gcfsConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + gcfsConfig_ != null && + gcfsConfig_ != com.google.container.v1.GcfsConfig.getDefaultInstance()) { + getGcfsConfigBuilder().mergeFrom(value); + } else { + gcfsConfig_ = value; + } + } else { + gcfsConfigBuilder_.mergeFrom(value); + } + if (gcfsConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+     * GCFS (Google Container File System, also known as Riptide) options.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 1; + */ + public Builder clearGcfsConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + gcfsConfig_ = null; + if (gcfsConfigBuilder_ != null) { + gcfsConfigBuilder_.dispose(); + gcfsConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * GCFS (Google Container File System, also known as Riptide) options.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 1; + */ + public com.google.container.v1.GcfsConfig.Builder getGcfsConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getGcfsConfigFieldBuilder().getBuilder(); + } + /** + *
+     * GCFS (Google Container File System, also known as Riptide) options.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 1; + */ + public com.google.container.v1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { + if (gcfsConfigBuilder_ != null) { + return gcfsConfigBuilder_.getMessageOrBuilder(); + } else { + return gcfsConfig_ == null ? + com.google.container.v1.GcfsConfig.getDefaultInstance() : gcfsConfig_; + } + } + /** + *
+     * GCFS (Google Container File System, also known as Riptide) options.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcfsConfig, com.google.container.v1.GcfsConfig.Builder, com.google.container.v1.GcfsConfigOrBuilder> + getGcfsConfigFieldBuilder() { + if (gcfsConfigBuilder_ == null) { + gcfsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcfsConfig, com.google.container.v1.GcfsConfig.Builder, com.google.container.v1.GcfsConfigOrBuilder>( + getGcfsConfig(), + getParentForChildren(), + isClean()); + gcfsConfig_ = null; + } + return gcfsConfigBuilder_; + } + + private com.google.container.v1.NodePoolLoggingConfig loggingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePoolLoggingConfig, com.google.container.v1.NodePoolLoggingConfig.Builder, com.google.container.v1.NodePoolLoggingConfigOrBuilder> loggingConfigBuilder_; + /** + *
+     * Logging configuration for node pools.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 3; + * @return Whether the loggingConfig field is set. + */ + public boolean hasLoggingConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Logging configuration for node pools.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 3; + * @return The loggingConfig. + */ + public com.google.container.v1.NodePoolLoggingConfig getLoggingConfig() { + if (loggingConfigBuilder_ == null) { + return loggingConfig_ == null ? com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance() : loggingConfig_; + } else { + return loggingConfigBuilder_.getMessage(); + } + } + /** + *
+     * Logging configuration for node pools.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 3; + */ + public Builder setLoggingConfig(com.google.container.v1.NodePoolLoggingConfig value) { + if (loggingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + loggingConfig_ = value; + } else { + loggingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Logging configuration for node pools.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 3; + */ + public Builder setLoggingConfig( + com.google.container.v1.NodePoolLoggingConfig.Builder builderForValue) { + if (loggingConfigBuilder_ == null) { + loggingConfig_ = builderForValue.build(); + } else { + loggingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Logging configuration for node pools.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 3; + */ + public Builder mergeLoggingConfig(com.google.container.v1.NodePoolLoggingConfig value) { + if (loggingConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + loggingConfig_ != null && + loggingConfig_ != com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance()) { + getLoggingConfigBuilder().mergeFrom(value); + } else { + loggingConfig_ = value; + } + } else { + loggingConfigBuilder_.mergeFrom(value); + } + if (loggingConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + *
+     * Logging configuration for node pools.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 3; + */ + public Builder clearLoggingConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + loggingConfig_ = null; + if (loggingConfigBuilder_ != null) { + loggingConfigBuilder_.dispose(); + loggingConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Logging configuration for node pools.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 3; + */ + public com.google.container.v1.NodePoolLoggingConfig.Builder getLoggingConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getLoggingConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Logging configuration for node pools.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 3; + */ + public com.google.container.v1.NodePoolLoggingConfigOrBuilder getLoggingConfigOrBuilder() { + if (loggingConfigBuilder_ != null) { + return loggingConfigBuilder_.getMessageOrBuilder(); + } else { + return loggingConfig_ == null ? + com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance() : loggingConfig_; + } + } + /** + *
+     * Logging configuration for node pools.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePoolLoggingConfig, com.google.container.v1.NodePoolLoggingConfig.Builder, com.google.container.v1.NodePoolLoggingConfigOrBuilder> + getLoggingConfigFieldBuilder() { + if (loggingConfigBuilder_ == null) { + loggingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePoolLoggingConfig, com.google.container.v1.NodePoolLoggingConfig.Builder, com.google.container.v1.NodePoolLoggingConfigOrBuilder>( + getLoggingConfig(), + getParentForChildren(), + isClean()); + loggingConfig_ = null; + } + return loggingConfigBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.NodeConfigDefaults) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.NodeConfigDefaults) + private static final com.google.container.v1.NodeConfigDefaults DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.NodeConfigDefaults(); + } + + public static com.google.container.v1.NodeConfigDefaults getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeConfigDefaults parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.NodeConfigDefaults getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigDefaultsOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigDefaultsOrBuilder.java new file mode 100644 index 000000000000..6e65fd68ebdc --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigDefaultsOrBuilder.java @@ -0,0 +1,64 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface NodeConfigDefaultsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NodeConfigDefaults) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * GCFS (Google Container File System, also known as Riptide) options.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 1; + * @return Whether the gcfsConfig field is set. + */ + boolean hasGcfsConfig(); + /** + *
+   * GCFS (Google Container File System, also known as Riptide) options.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 1; + * @return The gcfsConfig. + */ + com.google.container.v1.GcfsConfig getGcfsConfig(); + /** + *
+   * GCFS (Google Container File System, also known as Riptide) options.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 1; + */ + com.google.container.v1.GcfsConfigOrBuilder getGcfsConfigOrBuilder(); + + /** + *
+   * Logging configuration for node pools.
+   * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 3; + * @return Whether the loggingConfig field is set. + */ + boolean hasLoggingConfig(); + /** + *
+   * Logging configuration for node pools.
+   * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 3; + * @return The loggingConfig. + */ + com.google.container.v1.NodePoolLoggingConfig getLoggingConfig(); + /** + *
+   * Logging configuration for node pools.
+   * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 3; + */ + com.google.container.v1.NodePoolLoggingConfigOrBuilder getLoggingConfigOrBuilder(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigOrBuilder.java new file mode 100644 index 000000000000..199ca779be65 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigOrBuilder.java @@ -0,0 +1,1347 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface NodeConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.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-os-login"
+   *  - "gci-ensure-gke-docker"
+   *  - "gci-metrics-enabled"
+   *  - "gci-update-strategy"
+   *  - "instance-template"
+   *  - "kube-env"
+   *  - "startup-script"
+   *  - "user-data"
+   *  - "disable-address-manager"
+   *  - "windows-startup-script-ps1"
+   *  - "common-psm1"
+   *  - "k8s-node-setup-psm1"
+   *  - "install-ssh-psm1"
+   *  - "user-profile-psm1"
+   *
+   * 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-os-login"
+   *  - "gci-ensure-gke-docker"
+   *  - "gci-metrics-enabled"
+   *  - "gci-update-strategy"
+   *  - "instance-template"
+   *  - "kube-env"
+   *  - "startup-script"
+   *  - "user-data"
+   *  - "disable-address-manager"
+   *  - "windows-startup-script-ps1"
+   *  - "common-psm1"
+   *  - "k8s-node-setup-psm1"
+   *  - "install-ssh-psm1"
+   *  - "user-profile-psm1"
+   *
+   * 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-os-login"
+   *  - "gci-ensure-gke-docker"
+   *  - "gci-metrics-enabled"
+   *  - "gci-update-strategy"
+   *  - "instance-template"
+   *  - "kube-env"
+   *  - "startup-script"
+   *  - "user-data"
+   *  - "disable-address-manager"
+   *  - "windows-startup-script-ps1"
+   *  - "common-psm1"
+   *  - "k8s-node-setup-psm1"
+   *  - "install-ssh-psm1"
+   *  - "user-profile-psm1"
+   *
+   * 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-os-login"
+   *  - "gci-ensure-gke-docker"
+   *  - "gci-metrics-enabled"
+   *  - "gci-update-strategy"
+   *  - "instance-template"
+   *  - "kube-env"
+   *  - "startup-script"
+   *  - "user-data"
+   *  - "disable-address-manager"
+   *  - "windows-startup-script-ps1"
+   *  - "common-psm1"
+   *  - "k8s-node-setup-psm1"
+   *  - "install-ssh-psm1"
+   *  - "user-profile-psm1"
+   *
+   * 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; + */ + /* nullable */ +java.lang.String getMetadataOrDefault( + java.lang.String key, + /* nullable */ +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-os-login"
+   *  - "gci-ensure-gke-docker"
+   *  - "gci-metrics-enabled"
+   *  - "gci-update-strategy"
+   *  - "instance-template"
+   *  - "kube-env"
+   *  - "startup-script"
+   *  - "user-data"
+   *  - "disable-address-manager"
+   *  - "windows-startup-script-ps1"
+   *  - "common-psm1"
+   *  - "k8s-node-setup-psm1"
+   *  - "install-ssh-psm1"
+   *  - "user-profile-psm1"
+   *
+   * 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. Please see
+   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+   * available image types.
+   * 
+ * + * 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. Please see
+   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+   * available image types.
+   * 
+ * + * 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; + */ + /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +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
+   * information 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.v1.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.v1.AcceleratorConfig accelerators = 11; + */ + com.google.container.v1.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.v1.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.v1.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.v1.AcceleratorConfig accelerators = 11; + */ + com.google.container.v1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder( + int index); + + /** + *
+   * 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.v1.WorkloadMetadataConfig workload_metadata_config = 14; + * @return Whether the workloadMetadataConfig field is set. + */ + boolean hasWorkloadMetadataConfig(); + /** + *
+   * The workload metadata configuration for this node.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + * @return The workloadMetadataConfig. + */ + com.google.container.v1.WorkloadMetadataConfig getWorkloadMetadataConfig(); + /** + *
+   * The workload metadata configuration for this node.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + com.google.container.v1.WorkloadMetadataConfigOrBuilder getWorkloadMetadataConfigOrBuilder(); + + /** + *
+   * List of kubernetes taints to be applied to each node.
+   *
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * repeated .google.container.v1.NodeTaint taints = 15; + */ + 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.v1.NodeTaint taints = 15; + */ + com.google.container.v1.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.v1.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.v1.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.v1.NodeTaint taints = 15; + */ + com.google.container.v1.NodeTaintOrBuilder getTaintsOrBuilder( + int index); + + /** + *
+   * Sandbox configuration for this node.
+   * 
+ * + * .google.container.v1.SandboxConfig sandbox_config = 17; + * @return Whether the sandboxConfig field is set. + */ + boolean hasSandboxConfig(); + /** + *
+   * Sandbox configuration for this node.
+   * 
+ * + * .google.container.v1.SandboxConfig sandbox_config = 17; + * @return The sandboxConfig. + */ + com.google.container.v1.SandboxConfig getSandboxConfig(); + /** + *
+   * Sandbox configuration for this node.
+   * 
+ * + * .google.container.v1.SandboxConfig sandbox_config = 17; + */ + com.google.container.v1.SandboxConfigOrBuilder getSandboxConfigOrBuilder(); + + /** + *
+   * Setting this field will assign instances of this
+   * pool to run on the specified node group. This is useful for running
+   * workloads on [sole tenant
+   * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
+   * 
+ * + * string node_group = 18; + * @return The nodeGroup. + */ + java.lang.String getNodeGroup(); + /** + *
+   * Setting this field will assign instances of this
+   * pool to run on the specified node group. This is useful for running
+   * workloads on [sole tenant
+   * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
+   * 
+ * + * string node_group = 18; + * @return The bytes for nodeGroup. + */ + com.google.protobuf.ByteString + getNodeGroupBytes(); + + /** + *
+   * The optional reservation affinity. Setting this field will apply
+   * the specified [Zonal Compute
+   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+   * to this node pool.
+   * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + * @return Whether the reservationAffinity field is set. + */ + boolean hasReservationAffinity(); + /** + *
+   * The optional reservation affinity. Setting this field will apply
+   * the specified [Zonal Compute
+   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+   * to this node pool.
+   * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + * @return The reservationAffinity. + */ + com.google.container.v1.ReservationAffinity getReservationAffinity(); + /** + *
+   * The optional reservation affinity. Setting this field will apply
+   * the specified [Zonal Compute
+   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+   * to this node pool.
+   * 
+ * + * .google.container.v1.ReservationAffinity reservation_affinity = 19; + */ + com.google.container.v1.ReservationAffinityOrBuilder getReservationAffinityOrBuilder(); + + /** + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + * @return Whether the shieldedInstanceConfig field is set. + */ + boolean hasShieldedInstanceConfig(); + /** + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + * @return The shieldedInstanceConfig. + */ + com.google.container.v1.ShieldedInstanceConfig getShieldedInstanceConfig(); + /** + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + com.google.container.v1.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder(); + + /** + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; + * @return Whether the linuxNodeConfig field is set. + */ + boolean hasLinuxNodeConfig(); + /** + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; + * @return The linuxNodeConfig. + */ + com.google.container.v1.LinuxNodeConfig getLinuxNodeConfig(); + /** + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 21; + */ + com.google.container.v1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder(); + + /** + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + * @return Whether the kubeletConfig field is set. + */ + boolean hasKubeletConfig(); + /** + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + * @return The kubeletConfig. + */ + com.google.container.v1.NodeKubeletConfig getKubeletConfig(); + /** + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 22; + */ + com.google.container.v1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder(); + + /** + *
+   *
+   * 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(); + + /** + *
+   * Google Container File System (image streaming) configs.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + * @return Whether the gcfsConfig field is set. + */ + boolean hasGcfsConfig(); + /** + *
+   * Google Container File System (image streaming) configs.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + * @return The gcfsConfig. + */ + com.google.container.v1.GcfsConfig getGcfsConfig(); + /** + *
+   * Google Container File System (image streaming) configs.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 25; + */ + com.google.container.v1.GcfsConfigOrBuilder getGcfsConfigOrBuilder(); + + /** + *
+   * Advanced features for the Compute Engine VM.
+   * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + * @return Whether the advancedMachineFeatures field is set. + */ + boolean hasAdvancedMachineFeatures(); + /** + *
+   * Advanced features for the Compute Engine VM.
+   * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + * @return The advancedMachineFeatures. + */ + com.google.container.v1.AdvancedMachineFeatures getAdvancedMachineFeatures(); + /** + *
+   * Advanced features for the Compute Engine VM.
+   * 
+ * + * .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; + */ + com.google.container.v1.AdvancedMachineFeaturesOrBuilder getAdvancedMachineFeaturesOrBuilder(); + + /** + *
+   * Enable or disable gvnic in the node pool.
+   * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + * @return Whether the gvnic field is set. + */ + boolean hasGvnic(); + /** + *
+   * Enable or disable gvnic in the node pool.
+   * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + * @return The gvnic. + */ + com.google.container.v1.VirtualNIC getGvnic(); + /** + *
+   * Enable or disable gvnic in the node pool.
+   * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + com.google.container.v1.VirtualNICOrBuilder getGvnicOrBuilder(); + + /** + *
+   * Spot flag for enabling Spot VM, which is a rebrand of
+   * the existing preemptible flag.
+   * 
+ * + * bool spot = 32; + * @return The spot. + */ + boolean getSpot(); + + /** + *
+   * Confidential nodes config.
+   * All the nodes in the node pool will be Confidential VM once enabled.
+   * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 35; + * @return Whether the confidentialNodes field is set. + */ + boolean hasConfidentialNodes(); + /** + *
+   * Confidential nodes config.
+   * All the nodes in the node pool will be Confidential VM once enabled.
+   * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 35; + * @return The confidentialNodes. + */ + com.google.container.v1.ConfidentialNodes getConfidentialNodes(); + /** + *
+   * Confidential nodes config.
+   * All the nodes in the node pool will be Confidential VM once enabled.
+   * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 35; + */ + com.google.container.v1.ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder(); + + /** + *
+   * Enable or disable NCCL fast socket for the node pool.
+   * 
+ * + * optional .google.container.v1.FastSocket fast_socket = 36; + * @return Whether the fastSocket field is set. + */ + boolean hasFastSocket(); + /** + *
+   * Enable or disable NCCL fast socket for the node pool.
+   * 
+ * + * optional .google.container.v1.FastSocket fast_socket = 36; + * @return The fastSocket. + */ + com.google.container.v1.FastSocket getFastSocket(); + /** + *
+   * Enable or disable NCCL fast socket for the node pool.
+   * 
+ * + * optional .google.container.v1.FastSocket fast_socket = 36; + */ + com.google.container.v1.FastSocketOrBuilder getFastSocketOrBuilder(); + + /** + *
+   * The resource labels for the node pool to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 37; + */ + int getResourceLabelsCount(); + /** + *
+   * The resource labels for the node pool to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 37; + */ + boolean containsResourceLabels( + java.lang.String key); + /** + * Use {@link #getResourceLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getResourceLabels(); + /** + *
+   * The resource labels for the node pool to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 37; + */ + java.util.Map + getResourceLabelsMap(); + /** + *
+   * The resource labels for the node pool to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 37; + */ + /* nullable */ +java.lang.String getResourceLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+   * The resource labels for the node pool to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 37; + */ + java.lang.String getResourceLabelsOrThrow( + java.lang.String key); + + /** + *
+   * Logging configuration.
+   * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 38; + * @return Whether the loggingConfig field is set. + */ + boolean hasLoggingConfig(); + /** + *
+   * Logging configuration.
+   * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 38; + * @return The loggingConfig. + */ + com.google.container.v1.NodePoolLoggingConfig getLoggingConfig(); + /** + *
+   * Logging configuration.
+   * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 38; + */ + com.google.container.v1.NodePoolLoggingConfigOrBuilder getLoggingConfigOrBuilder(); + + /** + *
+   * Parameters that can be configured on Windows nodes.
+   * 
+ * + * .google.container.v1.WindowsNodeConfig windows_node_config = 39; + * @return Whether the windowsNodeConfig field is set. + */ + boolean hasWindowsNodeConfig(); + /** + *
+   * Parameters that can be configured on Windows nodes.
+   * 
+ * + * .google.container.v1.WindowsNodeConfig windows_node_config = 39; + * @return The windowsNodeConfig. + */ + com.google.container.v1.WindowsNodeConfig getWindowsNodeConfig(); + /** + *
+   * Parameters that can be configured on Windows nodes.
+   * 
+ * + * .google.container.v1.WindowsNodeConfig windows_node_config = 39; + */ + com.google.container.v1.WindowsNodeConfigOrBuilder getWindowsNodeConfigOrBuilder(); + + /** + *
+   * Parameters for using raw-block Local NVMe SSDs.
+   * 
+ * + * .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; + * @return Whether the localNvmeSsdBlockConfig field is set. + */ + boolean hasLocalNvmeSsdBlockConfig(); + /** + *
+   * Parameters for using raw-block Local NVMe SSDs.
+   * 
+ * + * .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; + * @return The localNvmeSsdBlockConfig. + */ + com.google.container.v1.LocalNvmeSsdBlockConfig getLocalNvmeSsdBlockConfig(); + /** + *
+   * Parameters for using raw-block Local NVMe SSDs.
+   * 
+ * + * .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; + */ + com.google.container.v1.LocalNvmeSsdBlockConfigOrBuilder getLocalNvmeSsdBlockConfigOrBuilder(); + + /** + *
+   * Parameters for the node ephemeral storage using Local SSDs.
+   * If unspecified, ephemeral storage is backed by the boot disk.
+   * 
+ * + * .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; + * @return Whether the ephemeralStorageLocalSsdConfig field is set. + */ + boolean hasEphemeralStorageLocalSsdConfig(); + /** + *
+   * Parameters for the node ephemeral storage using Local SSDs.
+   * If unspecified, ephemeral storage is backed by the boot disk.
+   * 
+ * + * .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; + * @return The ephemeralStorageLocalSsdConfig. + */ + com.google.container.v1.EphemeralStorageLocalSsdConfig getEphemeralStorageLocalSsdConfig(); + /** + *
+   * Parameters for the node ephemeral storage using Local SSDs.
+   * If unspecified, ephemeral storage is backed by the boot disk.
+   * 
+ * + * .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; + */ + com.google.container.v1.EphemeralStorageLocalSsdConfigOrBuilder getEphemeralStorageLocalSsdConfigOrBuilder(); + + /** + *
+   * Parameters for node pools to be backed by shared sole tenant node groups.
+   * 
+ * + * .google.container.v1.SoleTenantConfig sole_tenant_config = 42; + * @return Whether the soleTenantConfig field is set. + */ + boolean hasSoleTenantConfig(); + /** + *
+   * Parameters for node pools to be backed by shared sole tenant node groups.
+   * 
+ * + * .google.container.v1.SoleTenantConfig sole_tenant_config = 42; + * @return The soleTenantConfig. + */ + com.google.container.v1.SoleTenantConfig getSoleTenantConfig(); + /** + *
+   * Parameters for node pools to be backed by shared sole tenant node groups.
+   * 
+ * + * .google.container.v1.SoleTenantConfig sole_tenant_config = 42; + */ + com.google.container.v1.SoleTenantConfigOrBuilder getSoleTenantConfigOrBuilder(); + + /** + *
+   * A map of resource manager tag keys and values to be attached to the nodes.
+   * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 45; + * @return Whether the resourceManagerTags field is set. + */ + boolean hasResourceManagerTags(); + /** + *
+   * A map of resource manager tag keys and values to be attached to the nodes.
+   * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 45; + * @return The resourceManagerTags. + */ + com.google.container.v1.ResourceManagerTags getResourceManagerTags(); + /** + *
+   * A map of resource manager tag keys and values to be attached to the nodes.
+   * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 45; + */ + com.google.container.v1.ResourceManagerTagsOrBuilder getResourceManagerTagsOrBuilder(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeKubeletConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeKubeletConfig.java new file mode 100644 index 000000000000..e1fc911ecfa6 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeKubeletConfig.java @@ -0,0 +1,1406 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Node kubelet configs.
+ * 
+ * + * Protobuf type {@code google.container.v1.NodeKubeletConfig} + */ +public final class NodeKubeletConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.NodeKubeletConfig) + NodeKubeletConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use NodeKubeletConfig.newBuilder() to construct. + private NodeKubeletConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeKubeletConfig() { + cpuManagerPolicy_ = ""; + cpuCfsQuotaPeriod_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NodeKubeletConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeKubeletConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeKubeletConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodeKubeletConfig.class, com.google.container.v1.NodeKubeletConfig.Builder.class); + } + + private int bitField0_; + public static final int CPU_MANAGER_POLICY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + 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 ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * 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 cpuCfsQuota_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : cpuCfsQuota_; + } + + public static final int CPU_CFS_QUOTA_PERIOD_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + 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; + } + } + + public static final int POD_PIDS_LIMIT_FIELD_NUMBER = 4; + private long podPidsLimit_ = 0L; + /** + *
+   * Set the Pod PID limits. See
+   * https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits
+   *
+   * Controls the maximum number of processes allowed to run in a pod. The value
+   * must be greater than or equal to 1024 and less than 4194304.
+   * 
+ * + * int64 pod_pids_limit = 4; + * @return The podPidsLimit. + */ + @java.lang.Override + public long getPodPidsLimit() { + return podPidsLimit_; + } + + public static final int INSECURE_KUBELET_READONLY_PORT_ENABLED_FIELD_NUMBER = 7; + private boolean insecureKubeletReadonlyPortEnabled_ = false; + /** + *
+   * Enable or disable Kubelet read only port.
+   * 
+ * + * optional bool insecure_kubelet_readonly_port_enabled = 7; + * @return Whether the insecureKubeletReadonlyPortEnabled field is set. + */ + @java.lang.Override + public boolean hasInsecureKubeletReadonlyPortEnabled() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * Enable or disable Kubelet read only port.
+   * 
+ * + * optional bool insecure_kubelet_readonly_port_enabled = 7; + * @return The insecureKubeletReadonlyPortEnabled. + */ + @java.lang.Override + public boolean getInsecureKubeletReadonlyPortEnabled() { + return insecureKubeletReadonlyPortEnabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpuManagerPolicy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cpuManagerPolicy_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCpuCfsQuota()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpuCfsQuotaPeriod_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cpuCfsQuotaPeriod_); + } + if (podPidsLimit_ != 0L) { + output.writeInt64(4, podPidsLimit_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(7, insecureKubeletReadonlyPortEnabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpuManagerPolicy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cpuManagerPolicy_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCpuCfsQuota()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpuCfsQuotaPeriod_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, cpuCfsQuotaPeriod_); + } + if (podPidsLimit_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, podPidsLimit_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, insecureKubeletReadonlyPortEnabled_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.NodeKubeletConfig)) { + return super.equals(obj); + } + com.google.container.v1.NodeKubeletConfig other = (com.google.container.v1.NodeKubeletConfig) obj; + + if (!getCpuManagerPolicy() + .equals(other.getCpuManagerPolicy())) return false; + if (hasCpuCfsQuota() != other.hasCpuCfsQuota()) return false; + if (hasCpuCfsQuota()) { + if (!getCpuCfsQuota() + .equals(other.getCpuCfsQuota())) return false; + } + if (!getCpuCfsQuotaPeriod() + .equals(other.getCpuCfsQuotaPeriod())) return false; + if (getPodPidsLimit() + != other.getPodPidsLimit()) return false; + if (hasInsecureKubeletReadonlyPortEnabled() != other.hasInsecureKubeletReadonlyPortEnabled()) return false; + if (hasInsecureKubeletReadonlyPortEnabled()) { + if (getInsecureKubeletReadonlyPortEnabled() + != other.getInsecureKubeletReadonlyPortEnabled()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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 = (37 * hash) + POD_PIDS_LIMIT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPodPidsLimit()); + if (hasInsecureKubeletReadonlyPortEnabled()) { + hash = (37 * hash) + INSECURE_KUBELET_READONLY_PORT_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInsecureKubeletReadonlyPortEnabled()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.NodeKubeletConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodeKubeletConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodeKubeletConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodeKubeletConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodeKubeletConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodeKubeletConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodeKubeletConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NodeKubeletConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.NodeKubeletConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.NodeKubeletConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.NodeKubeletConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NodeKubeletConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.NodeKubeletConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Node kubelet configs.
+   * 
+ * + * Protobuf type {@code google.container.v1.NodeKubeletConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.NodeKubeletConfig) + com.google.container.v1.NodeKubeletConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeKubeletConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeKubeletConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodeKubeletConfig.class, com.google.container.v1.NodeKubeletConfig.Builder.class); + } + + // Construct using com.google.container.v1.NodeKubeletConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getCpuCfsQuotaFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + cpuManagerPolicy_ = ""; + cpuCfsQuota_ = null; + if (cpuCfsQuotaBuilder_ != null) { + cpuCfsQuotaBuilder_.dispose(); + cpuCfsQuotaBuilder_ = null; + } + cpuCfsQuotaPeriod_ = ""; + podPidsLimit_ = 0L; + insecureKubeletReadonlyPortEnabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeKubeletConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NodeKubeletConfig getDefaultInstanceForType() { + return com.google.container.v1.NodeKubeletConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NodeKubeletConfig build() { + com.google.container.v1.NodeKubeletConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NodeKubeletConfig buildPartial() { + com.google.container.v1.NodeKubeletConfig result = new com.google.container.v1.NodeKubeletConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.NodeKubeletConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.cpuManagerPolicy_ = cpuManagerPolicy_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.cpuCfsQuota_ = cpuCfsQuotaBuilder_ == null + ? cpuCfsQuota_ + : cpuCfsQuotaBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.cpuCfsQuotaPeriod_ = cpuCfsQuotaPeriod_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.podPidsLimit_ = podPidsLimit_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.insecureKubeletReadonlyPortEnabled_ = insecureKubeletReadonlyPortEnabled_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.NodeKubeletConfig) { + return mergeFrom((com.google.container.v1.NodeKubeletConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NodeKubeletConfig other) { + if (other == com.google.container.v1.NodeKubeletConfig.getDefaultInstance()) return this; + if (!other.getCpuManagerPolicy().isEmpty()) { + cpuManagerPolicy_ = other.cpuManagerPolicy_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCpuCfsQuota()) { + mergeCpuCfsQuota(other.getCpuCfsQuota()); + } + if (!other.getCpuCfsQuotaPeriod().isEmpty()) { + cpuCfsQuotaPeriod_ = other.cpuCfsQuotaPeriod_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getPodPidsLimit() != 0L) { + setPodPidsLimit(other.getPodPidsLimit()); + } + if (other.hasInsecureKubeletReadonlyPortEnabled()) { + setInsecureKubeletReadonlyPortEnabled(other.getInsecureKubeletReadonlyPortEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + cpuManagerPolicy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getCpuCfsQuotaFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + cpuCfsQuotaPeriod_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + podPidsLimit_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 56: { + insecureKubeletReadonlyPortEnabled_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 56 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + 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 ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * 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; + } else { + cpuCfsQuotaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + 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(); + } else { + cpuCfsQuotaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + 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 (((bitField0_ & 0x00000002) != 0) && + cpuCfsQuota_ != null && + cpuCfsQuota_ != com.google.protobuf.BoolValue.getDefaultInstance()) { + getCpuCfsQuotaBuilder().mergeFrom(value); + } else { + cpuCfsQuota_ = value; + } + } else { + cpuCfsQuotaBuilder_.mergeFrom(value); + } + if (cpuCfsQuota_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + 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() { + bitField0_ = (bitField0_ & ~0x00000002); + cpuCfsQuota_ = null; + if (cpuCfsQuotaBuilder_ != null) { + cpuCfsQuotaBuilder_.dispose(); + cpuCfsQuotaBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000002; + 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; + bitField0_ |= 0x00000004; + 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(); + bitField0_ = (bitField0_ & ~0x00000004); + 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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private long podPidsLimit_ ; + /** + *
+     * Set the Pod PID limits. See
+     * https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits
+     *
+     * Controls the maximum number of processes allowed to run in a pod. The value
+     * must be greater than or equal to 1024 and less than 4194304.
+     * 
+ * + * int64 pod_pids_limit = 4; + * @return The podPidsLimit. + */ + @java.lang.Override + public long getPodPidsLimit() { + return podPidsLimit_; + } + /** + *
+     * Set the Pod PID limits. See
+     * https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits
+     *
+     * Controls the maximum number of processes allowed to run in a pod. The value
+     * must be greater than or equal to 1024 and less than 4194304.
+     * 
+ * + * int64 pod_pids_limit = 4; + * @param value The podPidsLimit to set. + * @return This builder for chaining. + */ + public Builder setPodPidsLimit(long value) { + + podPidsLimit_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Set the Pod PID limits. See
+     * https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits
+     *
+     * Controls the maximum number of processes allowed to run in a pod. The value
+     * must be greater than or equal to 1024 and less than 4194304.
+     * 
+ * + * int64 pod_pids_limit = 4; + * @return This builder for chaining. + */ + public Builder clearPodPidsLimit() { + bitField0_ = (bitField0_ & ~0x00000008); + podPidsLimit_ = 0L; + onChanged(); + return this; + } + + private boolean insecureKubeletReadonlyPortEnabled_ ; + /** + *
+     * Enable or disable Kubelet read only port.
+     * 
+ * + * optional bool insecure_kubelet_readonly_port_enabled = 7; + * @return Whether the insecureKubeletReadonlyPortEnabled field is set. + */ + @java.lang.Override + public boolean hasInsecureKubeletReadonlyPortEnabled() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+     * Enable or disable Kubelet read only port.
+     * 
+ * + * optional bool insecure_kubelet_readonly_port_enabled = 7; + * @return The insecureKubeletReadonlyPortEnabled. + */ + @java.lang.Override + public boolean getInsecureKubeletReadonlyPortEnabled() { + return insecureKubeletReadonlyPortEnabled_; + } + /** + *
+     * Enable or disable Kubelet read only port.
+     * 
+ * + * optional bool insecure_kubelet_readonly_port_enabled = 7; + * @param value The insecureKubeletReadonlyPortEnabled to set. + * @return This builder for chaining. + */ + public Builder setInsecureKubeletReadonlyPortEnabled(boolean value) { + + insecureKubeletReadonlyPortEnabled_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Enable or disable Kubelet read only port.
+     * 
+ * + * optional bool insecure_kubelet_readonly_port_enabled = 7; + * @return This builder for chaining. + */ + public Builder clearInsecureKubeletReadonlyPortEnabled() { + bitField0_ = (bitField0_ & ~0x00000010); + insecureKubeletReadonlyPortEnabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.NodeKubeletConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.NodeKubeletConfig) + private static final com.google.container.v1.NodeKubeletConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.NodeKubeletConfig(); + } + + public static com.google.container.v1.NodeKubeletConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeKubeletConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.NodeKubeletConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeKubeletConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeKubeletConfigOrBuilder.java new file mode 100644 index 000000000000..2a3ac4df61dc --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeKubeletConfigOrBuilder.java @@ -0,0 +1,166 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface NodeKubeletConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NodeKubeletConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Control the CPU management policy on the node.
+   * See
+   * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
+   *
+   * The following values are allowed.
+   * * "none": the default, which represents the existing scheduling behavior.
+   * * "static": allows pods with certain resource characteristics to be granted
+   * increased CPU affinity and exclusivity on the node.
+   * The default value is 'none' if unspecified.
+   * 
+ * + * string cpu_manager_policy = 1; + * @return The cpuManagerPolicy. + */ + java.lang.String getCpuManagerPolicy(); + /** + *
+   * Control the CPU management policy on the node.
+   * See
+   * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
+   *
+   * The following values are allowed.
+   * * "none": the default, which represents the existing scheduling behavior.
+   * * "static": allows pods with certain resource characteristics to be granted
+   * increased CPU affinity and exclusivity on the node.
+   * The default value is 'none' if unspecified.
+   * 
+ * + * string cpu_manager_policy = 1; + * @return The bytes for cpuManagerPolicy. + */ + com.google.protobuf.ByteString + getCpuManagerPolicyBytes(); + + /** + *
+   * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+   *
+   * This option is enabled by default which makes kubelet use CFS quota
+   * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+   * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+   * all.
+   *
+   * Disable this option to mitigate CPU throttling problems while still having
+   * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+   *
+   * The default value is 'true' if unspecified.
+   * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + * @return Whether the cpuCfsQuota field is set. + */ + boolean hasCpuCfsQuota(); + /** + *
+   * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+   *
+   * This option is enabled by default which makes kubelet use CFS quota
+   * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+   * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+   * all.
+   *
+   * Disable this option to mitigate CPU throttling problems while still having
+   * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+   *
+   * The default value is 'true' if unspecified.
+   * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + * @return The cpuCfsQuota. + */ + com.google.protobuf.BoolValue getCpuCfsQuota(); + /** + *
+   * Enable CPU CFS quota enforcement for containers that specify CPU limits.
+   *
+   * This option is enabled by default which makes kubelet use CFS quota
+   * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
+   * enforce container CPU limits. Otherwise, CPU limits will not be enforced at
+   * all.
+   *
+   * Disable this option to mitigate CPU throttling problems while still having
+   * your pods to be in Guaranteed QoS class by specifying the CPU limits.
+   *
+   * The default value is 'true' if unspecified.
+   * 
+ * + * .google.protobuf.BoolValue cpu_cfs_quota = 2; + */ + com.google.protobuf.BoolValueOrBuilder getCpuCfsQuotaOrBuilder(); + + /** + *
+   * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
+   *
+   * The string must be a sequence of decimal numbers, each with optional
+   * fraction and a unit suffix, such as "300ms".
+   * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
+   * The value must be a positive duration.
+   * 
+ * + * string cpu_cfs_quota_period = 3; + * @return The cpuCfsQuotaPeriod. + */ + java.lang.String getCpuCfsQuotaPeriod(); + /** + *
+   * Set the CPU CFS quota period value 'cpu.cfs_period_us'.
+   *
+   * The string must be a sequence of decimal numbers, each with optional
+   * fraction and a unit suffix, such as "300ms".
+   * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
+   * The value must be a positive duration.
+   * 
+ * + * string cpu_cfs_quota_period = 3; + * @return The bytes for cpuCfsQuotaPeriod. + */ + com.google.protobuf.ByteString + getCpuCfsQuotaPeriodBytes(); + + /** + *
+   * Set the Pod PID limits. See
+   * https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits
+   *
+   * Controls the maximum number of processes allowed to run in a pod. The value
+   * must be greater than or equal to 1024 and less than 4194304.
+   * 
+ * + * int64 pod_pids_limit = 4; + * @return The podPidsLimit. + */ + long getPodPidsLimit(); + + /** + *
+   * Enable or disable Kubelet read only port.
+   * 
+ * + * optional bool insecure_kubelet_readonly_port_enabled = 7; + * @return Whether the insecureKubeletReadonlyPortEnabled field is set. + */ + boolean hasInsecureKubeletReadonlyPortEnabled(); + /** + *
+   * Enable or disable Kubelet read only port.
+   * 
+ * + * optional bool insecure_kubelet_readonly_port_enabled = 7; + * @return The insecureKubeletReadonlyPortEnabled. + */ + boolean getInsecureKubeletReadonlyPortEnabled(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeLabels.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeLabels.java new file mode 100644 index 000000000000..fcc4ef92accf --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeLabels.java @@ -0,0 +1,739 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Collection of node-level [Kubernetes
+ * labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels).
+ * 
+ * + * Protobuf type {@code google.container.v1.NodeLabels} + */ +public final class NodeLabels extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.NodeLabels) + NodeLabelsOrBuilder { +private static final long serialVersionUID = 0L; + // Use NodeLabels.newBuilder() to construct. + private NodeLabels(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeLabels() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NodeLabels(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeLabels_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + 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.v1.ClusterServiceProto.internal_static_google_container_v1_NodeLabels_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodeLabels.class, com.google.container.v1.NodeLabels.Builder.class); + } + + public static final int LABELS_FIELD_NUMBER = 1; + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeLabels_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+   * Map of node label keys and node label values.
+   * 
+ * + * map<string, string> labels = 1; + */ + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+   * Map of node label keys and node label values.
+   * 
+ * + * map<string, string> labels = 1; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+   * Map of node label keys and node label values.
+   * 
+ * + * map<string, string> labels = 1; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * Map of node label keys and node label values.
+   * 
+ * + * map<string, string> labels = 1; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().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, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 1); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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(1, labels__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.NodeLabels)) { + return super.equals(obj); + } + com.google.container.v1.NodeLabels other = (com.google.container.v1.NodeLabels) obj; + + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.NodeLabels parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodeLabels parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodeLabels parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodeLabels parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodeLabels parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodeLabels parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodeLabels parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NodeLabels parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.NodeLabels parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.NodeLabels parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.NodeLabels parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NodeLabels parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.NodeLabels prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Collection of node-level [Kubernetes
+   * labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels).
+   * 
+ * + * Protobuf type {@code google.container.v1.NodeLabels} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.NodeLabels) + com.google.container.v1.NodeLabelsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeLabels_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 1: + 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.v1.ClusterServiceProto.internal_static_google_container_v1_NodeLabels_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodeLabels.class, com.google.container.v1.NodeLabels.Builder.class); + } + + // Construct using com.google.container.v1.NodeLabels.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableLabels().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeLabels_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NodeLabels getDefaultInstanceForType() { + return com.google.container.v1.NodeLabels.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NodeLabels build() { + com.google.container.v1.NodeLabels result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NodeLabels buildPartial() { + com.google.container.v1.NodeLabels result = new com.google.container.v1.NodeLabels(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.NodeLabels result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.NodeLabels) { + return mergeFrom((com.google.container.v1.NodeLabels)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NodeLabels other) { + if (other == com.google.container.v1.NodeLabels.getDefaultInstance()) return this; + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); + bitField0_ |= 0x00000001; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000001; + onChanged(); + return labels_; + } + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+     * Map of node label keys and node label values.
+     * 
+ * + * map<string, string> labels = 1; + */ + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+     * Map of node label keys and node label values.
+     * 
+ * + * map<string, string> labels = 1; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+     * Map of node label keys and node label values.
+     * 
+ * + * map<string, string> labels = 1; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Map of node label keys and node label values.
+     * 
+ * + * map<string, string> labels = 1; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Map of node label keys and node label values.
+     * 
+ * + * map<string, string> labels = 1; + */ + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableLabels() { + bitField0_ |= 0x00000001; + return internalGetMutableLabels().getMutableMap(); + } + /** + *
+     * Map of node label keys and node label values.
+     * 
+ * + * map<string, string> labels = 1; + */ + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000001; + return this; + } + /** + *
+     * Map of node label keys and node label values.
+     * 
+ * + * map<string, string> labels = 1; + */ + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000001; + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.NodeLabels) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.NodeLabels) + private static final com.google.container.v1.NodeLabels DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.NodeLabels(); + } + + public static com.google.container.v1.NodeLabels getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeLabels parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.NodeLabels getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeLabelsOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeLabelsOrBuilder.java new file mode 100644 index 000000000000..1b451dcf8fc0 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeLabelsOrBuilder.java @@ -0,0 +1,64 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface NodeLabelsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NodeLabels) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Map of node label keys and node label values.
+   * 
+ * + * map<string, string> labels = 1; + */ + int getLabelsCount(); + /** + *
+   * Map of node label keys and node label values.
+   * 
+ * + * map<string, string> labels = 1; + */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getLabels(); + /** + *
+   * Map of node label keys and node label values.
+   * 
+ * + * map<string, string> labels = 1; + */ + java.util.Map + getLabelsMap(); + /** + *
+   * Map of node label keys and node label values.
+   * 
+ * + * map<string, string> labels = 1; + */ + /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+   * Map of node label keys and node label values.
+   * 
+ * + * map<string, string> labels = 1; + */ + java.lang.String getLabelsOrThrow( + java.lang.String key); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeManagement.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeManagement.java new file mode 100644 index 000000000000..d1e21f0b98ad --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeManagement.java @@ -0,0 +1,843 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * NodeManagement defines the set of node management services turned on for the
+ * node pool.
+ * 
+ * + * Protobuf type {@code google.container.v1.NodeManagement} + */ +public final class NodeManagement extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeManagement_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeManagement_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodeManagement.class, com.google.container.v1.NodeManagement.Builder.class); + } + + private int bitField0_; + public static final int AUTO_UPGRADE_FIELD_NUMBER = 1; + private boolean autoUpgrade_ = false; + /** + *
+   * A flag that specifies whether node auto-upgrade is enabled for the node
+   * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
+   * up to date with the latest release version of Kubernetes.
+   * 
+ * + * 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_ = false; + /** + *
+   * A flag that specifies whether the node auto-repair is enabled for the node
+   * pool. If enabled, the nodes in this node pool will be monitored and, if
+   * they fail health checks too many times, an automatic repair action will be
+   * triggered.
+   * 
+ * + * 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.v1.AutoUpgradeOptions upgradeOptions_; + /** + *
+   * Specifies the Auto Upgrade knobs for the node pool.
+   * 
+ * + * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; + * @return Whether the upgradeOptions field is set. + */ + @java.lang.Override + public boolean hasUpgradeOptions() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Specifies the Auto Upgrade knobs for the node pool.
+   * 
+ * + * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; + * @return The upgradeOptions. + */ + @java.lang.Override + public com.google.container.v1.AutoUpgradeOptions getUpgradeOptions() { + return upgradeOptions_ == null ? com.google.container.v1.AutoUpgradeOptions.getDefaultInstance() : upgradeOptions_; + } + /** + *
+   * Specifies the Auto Upgrade knobs for the node pool.
+   * 
+ * + * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; + */ + @java.lang.Override + public com.google.container.v1.AutoUpgradeOptionsOrBuilder getUpgradeOptionsOrBuilder() { + return upgradeOptions_ == null ? com.google.container.v1.AutoUpgradeOptions.getDefaultInstance() : upgradeOptions_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(10, getUpgradeOptions()); + } + getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getUpgradeOptions()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.NodeManagement)) { + return super.equals(obj); + } + com.google.container.v1.NodeManagement other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.NodeManagement parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.NodeManagement parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.NodeManagement parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodeManagement parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodeManagement parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.NodeManagement parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.NodeManagement parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.NodeManagement} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.NodeManagement) + com.google.container.v1.NodeManagementOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeManagement_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeManagement_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodeManagement.class, com.google.container.v1.NodeManagement.Builder.class); + } + + // Construct using com.google.container.v1.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) { + getUpgradeOptionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + autoUpgrade_ = false; + autoRepair_ = false; + upgradeOptions_ = null; + if (upgradeOptionsBuilder_ != null) { + upgradeOptionsBuilder_.dispose(); + upgradeOptionsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeManagement_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NodeManagement getDefaultInstanceForType() { + return com.google.container.v1.NodeManagement.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NodeManagement build() { + com.google.container.v1.NodeManagement result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NodeManagement buildPartial() { + com.google.container.v1.NodeManagement result = new com.google.container.v1.NodeManagement(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.NodeManagement result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.autoUpgrade_ = autoUpgrade_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.autoRepair_ = autoRepair_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.upgradeOptions_ = upgradeOptionsBuilder_ == null + ? upgradeOptions_ + : upgradeOptionsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.NodeManagement) { + return mergeFrom((com.google.container.v1.NodeManagement)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NodeManagement other) { + if (other == com.google.container.v1.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.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + autoUpgrade_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + autoRepair_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 82: { + input.readMessage( + getUpgradeOptionsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean autoUpgrade_ ; + /** + *
+     * A flag that specifies whether node auto-upgrade is enabled for the node
+     * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
+     * up to date with the latest release version of Kubernetes.
+     * 
+ * + * bool auto_upgrade = 1; + * @return The autoUpgrade. + */ + @java.lang.Override + public boolean getAutoUpgrade() { + return autoUpgrade_; + } + /** + *
+     * A flag that specifies whether node auto-upgrade is enabled for the node
+     * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
+     * up to date with the latest release version of Kubernetes.
+     * 
+ * + * bool auto_upgrade = 1; + * @param value The autoUpgrade to set. + * @return This builder for chaining. + */ + public Builder setAutoUpgrade(boolean value) { + + autoUpgrade_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * A flag that specifies whether node auto-upgrade is enabled for the node
+     * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
+     * up to date with the latest release version of Kubernetes.
+     * 
+ * + * bool auto_upgrade = 1; + * @return This builder for chaining. + */ + public Builder clearAutoUpgrade() { + bitField0_ = (bitField0_ & ~0x00000001); + autoUpgrade_ = false; + onChanged(); + return this; + } + + private boolean autoRepair_ ; + /** + *
+     * A flag that specifies whether the node auto-repair is enabled for the node
+     * pool. If enabled, the nodes in this node pool will be monitored and, if
+     * they fail health checks too many times, an automatic repair action will be
+     * triggered.
+     * 
+ * + * bool auto_repair = 2; + * @return The autoRepair. + */ + @java.lang.Override + public boolean getAutoRepair() { + return autoRepair_; + } + /** + *
+     * A flag that specifies whether the node auto-repair is enabled for the node
+     * pool. If enabled, the nodes in this node pool will be monitored and, if
+     * they fail health checks too many times, an automatic repair action will be
+     * triggered.
+     * 
+ * + * bool auto_repair = 2; + * @param value The autoRepair to set. + * @return This builder for chaining. + */ + public Builder setAutoRepair(boolean value) { + + autoRepair_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * A flag that specifies whether the node auto-repair is enabled for the node
+     * pool. If enabled, the nodes in this node pool will be monitored and, if
+     * they fail health checks too many times, an automatic repair action will be
+     * triggered.
+     * 
+ * + * bool auto_repair = 2; + * @return This builder for chaining. + */ + public Builder clearAutoRepair() { + bitField0_ = (bitField0_ & ~0x00000002); + autoRepair_ = false; + onChanged(); + return this; + } + + private com.google.container.v1.AutoUpgradeOptions upgradeOptions_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AutoUpgradeOptions, com.google.container.v1.AutoUpgradeOptions.Builder, com.google.container.v1.AutoUpgradeOptionsOrBuilder> upgradeOptionsBuilder_; + /** + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; + * @return Whether the upgradeOptions field is set. + */ + public boolean hasUpgradeOptions() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; + * @return The upgradeOptions. + */ + public com.google.container.v1.AutoUpgradeOptions getUpgradeOptions() { + if (upgradeOptionsBuilder_ == null) { + return upgradeOptions_ == null ? com.google.container.v1.AutoUpgradeOptions.getDefaultInstance() : upgradeOptions_; + } else { + return upgradeOptionsBuilder_.getMessage(); + } + } + /** + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; + */ + public Builder setUpgradeOptions(com.google.container.v1.AutoUpgradeOptions value) { + if (upgradeOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + upgradeOptions_ = value; + } else { + upgradeOptionsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; + */ + public Builder setUpgradeOptions( + com.google.container.v1.AutoUpgradeOptions.Builder builderForValue) { + if (upgradeOptionsBuilder_ == null) { + upgradeOptions_ = builderForValue.build(); + } else { + upgradeOptionsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; + */ + public Builder mergeUpgradeOptions(com.google.container.v1.AutoUpgradeOptions value) { + if (upgradeOptionsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + upgradeOptions_ != null && + upgradeOptions_ != com.google.container.v1.AutoUpgradeOptions.getDefaultInstance()) { + getUpgradeOptionsBuilder().mergeFrom(value); + } else { + upgradeOptions_ = value; + } + } else { + upgradeOptionsBuilder_.mergeFrom(value); + } + if (upgradeOptions_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; + */ + public Builder clearUpgradeOptions() { + bitField0_ = (bitField0_ & ~0x00000004); + upgradeOptions_ = null; + if (upgradeOptionsBuilder_ != null) { + upgradeOptionsBuilder_.dispose(); + upgradeOptionsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; + */ + public com.google.container.v1.AutoUpgradeOptions.Builder getUpgradeOptionsBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getUpgradeOptionsFieldBuilder().getBuilder(); + } + /** + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; + */ + public com.google.container.v1.AutoUpgradeOptionsOrBuilder getUpgradeOptionsOrBuilder() { + if (upgradeOptionsBuilder_ != null) { + return upgradeOptionsBuilder_.getMessageOrBuilder(); + } else { + return upgradeOptions_ == null ? + com.google.container.v1.AutoUpgradeOptions.getDefaultInstance() : upgradeOptions_; + } + } + /** + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AutoUpgradeOptions, com.google.container.v1.AutoUpgradeOptions.Builder, com.google.container.v1.AutoUpgradeOptionsOrBuilder> + getUpgradeOptionsFieldBuilder() { + if (upgradeOptionsBuilder_ == null) { + upgradeOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AutoUpgradeOptions, com.google.container.v1.AutoUpgradeOptions.Builder, com.google.container.v1.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.v1.NodeManagement) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.NodeManagement) + private static final com.google.container.v1.NodeManagement DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.NodeManagement(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.NodeManagement getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeManagementOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeManagementOrBuilder.java new file mode 100644 index 000000000000..b1184cd15fd3 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeManagementOrBuilder.java @@ -0,0 +1,62 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface NodeManagementOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NodeManagement) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * A flag that specifies whether node auto-upgrade is enabled for the node
+   * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
+   * up to date with the latest release version of Kubernetes.
+   * 
+ * + * bool auto_upgrade = 1; + * @return The autoUpgrade. + */ + boolean getAutoUpgrade(); + + /** + *
+   * A flag that specifies whether the node auto-repair is enabled for the node
+   * pool. If enabled, the nodes in this node pool will be monitored and, if
+   * they fail health checks too many times, an automatic repair action will be
+   * triggered.
+   * 
+ * + * bool auto_repair = 2; + * @return The autoRepair. + */ + boolean getAutoRepair(); + + /** + *
+   * Specifies the Auto Upgrade knobs for the node pool.
+   * 
+ * + * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; + * @return Whether the upgradeOptions field is set. + */ + boolean hasUpgradeOptions(); + /** + *
+   * Specifies the Auto Upgrade knobs for the node pool.
+   * 
+ * + * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; + * @return The upgradeOptions. + */ + com.google.container.v1.AutoUpgradeOptions getUpgradeOptions(); + /** + *
+   * Specifies the Auto Upgrade knobs for the node pool.
+   * 
+ * + * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; + */ + com.google.container.v1.AutoUpgradeOptionsOrBuilder getUpgradeOptionsOrBuilder(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfig.java new file mode 100644 index 000000000000..11ce8a2ef528 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfig.java @@ -0,0 +1,3499 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Parameters for node pool-level network config.
+ * 
+ * + * Protobuf type {@code google.container.v1.NodeNetworkConfig} + */ +public final class NodeNetworkConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.NodeNetworkConfig) + NodeNetworkConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use NodeNetworkConfig.newBuilder() to construct. + private NodeNetworkConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeNetworkConfig() { + podRange_ = ""; + podIpv4CidrBlock_ = ""; + additionalNodeNetworkConfigs_ = java.util.Collections.emptyList(); + additionalPodNetworkConfigs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NodeNetworkConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeNetworkConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeNetworkConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodeNetworkConfig.class, com.google.container.v1.NodeNetworkConfig.Builder.class); + } + + public interface NetworkPerformanceConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Specifies the total network bandwidth tier for the NodePool.
+     * 
+ * + * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return Whether the totalEgressBandwidthTier field is set. + */ + boolean hasTotalEgressBandwidthTier(); + /** + *
+     * Specifies the total network bandwidth tier for the NodePool.
+     * 
+ * + * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return The enum numeric value on the wire for totalEgressBandwidthTier. + */ + int getTotalEgressBandwidthTierValue(); + /** + *
+     * Specifies the total network bandwidth tier for the NodePool.
+     * 
+ * + * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return The totalEgressBandwidthTier. + */ + com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier getTotalEgressBandwidthTier(); + } + /** + *
+   * Configuration of all network bandwidth tiers
+   * 
+ * + * Protobuf type {@code google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig} + */ + public static final class NetworkPerformanceConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig) + NetworkPerformanceConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use NetworkPerformanceConfig.newBuilder() to construct. + private NetworkPerformanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NetworkPerformanceConfig() { + totalEgressBandwidthTier_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NetworkPerformanceConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeNetworkConfig_NetworkPerformanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeNetworkConfig_NetworkPerformanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.class, com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Builder.class); + } + + /** + *
+     * Node network tier
+     * 
+ * + * Protobuf enum {@code google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier} + */ + public enum Tier + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * Default value
+       * 
+ * + * TIER_UNSPECIFIED = 0; + */ + TIER_UNSPECIFIED(0), + /** + *
+       * Higher bandwidth, actual values based on VM size.
+       * 
+ * + * TIER_1 = 1; + */ + TIER_1(1), + UNRECOGNIZED(-1), + ; + + /** + *
+       * Default value
+       * 
+ * + * TIER_UNSPECIFIED = 0; + */ + public static final int TIER_UNSPECIFIED_VALUE = 0; + /** + *
+       * Higher bandwidth, actual values based on VM size.
+       * 
+ * + * TIER_1 = 1; + */ + public static final int TIER_1_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 Tier 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 Tier forNumber(int value) { + switch (value) { + case 0: return TIER_UNSPECIFIED; + case 1: return TIER_1; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Tier> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Tier findValueByNumber(int number) { + return Tier.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final Tier[] VALUES = values(); + + public static Tier 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 Tier(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier) + } + + private int bitField0_; + public static final int TOTAL_EGRESS_BANDWIDTH_TIER_FIELD_NUMBER = 1; + private int totalEgressBandwidthTier_ = 0; + /** + *
+     * Specifies the total network bandwidth tier for the NodePool.
+     * 
+ * + * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return Whether the totalEgressBandwidthTier field is set. + */ + @java.lang.Override public boolean hasTotalEgressBandwidthTier() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Specifies the total network bandwidth tier for the NodePool.
+     * 
+ * + * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return The enum numeric value on the wire for totalEgressBandwidthTier. + */ + @java.lang.Override public int getTotalEgressBandwidthTierValue() { + return totalEgressBandwidthTier_; + } + /** + *
+     * Specifies the total network bandwidth tier for the NodePool.
+     * 
+ * + * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return The totalEgressBandwidthTier. + */ + @java.lang.Override public com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier getTotalEgressBandwidthTier() { + com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier result = com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier.forNumber(totalEgressBandwidthTier_); + return result == null ? com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier.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 (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, totalEgressBandwidthTier_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, totalEgressBandwidthTier_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig)) { + return super.equals(obj); + } + com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig other = (com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig) obj; + + if (hasTotalEgressBandwidthTier() != other.hasTotalEgressBandwidthTier()) return false; + if (hasTotalEgressBandwidthTier()) { + if (totalEgressBandwidthTier_ != other.totalEgressBandwidthTier_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTotalEgressBandwidthTier()) { + hash = (37 * hash) + TOTAL_EGRESS_BANDWIDTH_TIER_FIELD_NUMBER; + hash = (53 * hash) + totalEgressBandwidthTier_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new 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 all network bandwidth tiers
+     * 
+ * + * Protobuf type {@code google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig) + com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeNetworkConfig_NetworkPerformanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeNetworkConfig_NetworkPerformanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.class, com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Builder.class); + } + + // Construct using com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + totalEgressBandwidthTier_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeNetworkConfig_NetworkPerformanceConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig getDefaultInstanceForType() { + return com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig build() { + com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig buildPartial() { + com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig result = new com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.totalEgressBandwidthTier_ = totalEgressBandwidthTier_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig) { + return mergeFrom((com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig other) { + if (other == com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.getDefaultInstance()) return this; + if (other.hasTotalEgressBandwidthTier()) { + setTotalEgressBandwidthTier(other.getTotalEgressBandwidthTier()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + totalEgressBandwidthTier_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int totalEgressBandwidthTier_ = 0; + /** + *
+       * Specifies the total network bandwidth tier for the NodePool.
+       * 
+ * + * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return Whether the totalEgressBandwidthTier field is set. + */ + @java.lang.Override public boolean hasTotalEgressBandwidthTier() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * Specifies the total network bandwidth tier for the NodePool.
+       * 
+ * + * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return The enum numeric value on the wire for totalEgressBandwidthTier. + */ + @java.lang.Override public int getTotalEgressBandwidthTierValue() { + return totalEgressBandwidthTier_; + } + /** + *
+       * Specifies the total network bandwidth tier for the NodePool.
+       * 
+ * + * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @param value The enum numeric value on the wire for totalEgressBandwidthTier to set. + * @return This builder for chaining. + */ + public Builder setTotalEgressBandwidthTierValue(int value) { + totalEgressBandwidthTier_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Specifies the total network bandwidth tier for the NodePool.
+       * 
+ * + * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return The totalEgressBandwidthTier. + */ + @java.lang.Override + public com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier getTotalEgressBandwidthTier() { + com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier result = com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier.forNumber(totalEgressBandwidthTier_); + return result == null ? com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier.UNRECOGNIZED : result; + } + /** + *
+       * Specifies the total network bandwidth tier for the NodePool.
+       * 
+ * + * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @param value The totalEgressBandwidthTier to set. + * @return This builder for chaining. + */ + public Builder setTotalEgressBandwidthTier(com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + totalEgressBandwidthTier_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Specifies the total network bandwidth tier for the NodePool.
+       * 
+ * + * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return This builder for chaining. + */ + public Builder clearTotalEgressBandwidthTier() { + bitField0_ = (bitField0_ & ~0x00000001); + totalEgressBandwidthTier_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig) + private static final com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig(); + } + + public static com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkPerformanceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int CREATE_POD_RANGE_FIELD_NUMBER = 4; + private boolean createPodRange_ = false; + /** + *
+   * Input only. Whether to create a new range for pod IPs in this node pool.
+   * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they
+   * are not specified.
+   *
+   * If neither `create_pod_range` or `pod_range` are specified, the
+   * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is
+   * used.
+   *
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   *
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return The createPodRange. + */ + @java.lang.Override + public boolean getCreatePodRange() { + return createPodRange_; + } + + public static final int POD_RANGE_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object podRange_ = ""; + /** + *
+   * The ID of the secondary range for pod IPs.
+   * If `create_pod_range` is true, this ID is used for the new range.
+   * If `create_pod_range` is false, uses an existing secondary range with this
+   * ID.
+   *
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   *
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * string pod_range = 5; + * @return The podRange. + */ + @java.lang.Override + public java.lang.String getPodRange() { + java.lang.Object ref = podRange_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + podRange_ = s; + return s; + } + } + /** + *
+   * The ID of the secondary range for pod IPs.
+   * If `create_pod_range` is true, this ID is used for the new range.
+   * If `create_pod_range` is false, uses an existing secondary range with this
+   * ID.
+   *
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   *
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * string pod_range = 5; + * @return The bytes for podRange. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPodRangeBytes() { + java.lang.Object ref = podRange_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + podRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POD_IPV4_CIDR_BLOCK_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object podIpv4CidrBlock_ = ""; + /** + *
+   * The IP address range for pod IPs in this node pool.
+   *
+   * Only applicable if `create_pod_range` is true.
+   *
+   * Set to blank to have a range chosen with the default size.
+   *
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   *
+   * Set to a
+   * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+   *
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   *
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * string pod_ipv4_cidr_block = 6; + * @return The podIpv4CidrBlock. + */ + @java.lang.Override + public java.lang.String getPodIpv4CidrBlock() { + java.lang.Object ref = podIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + podIpv4CidrBlock_ = s; + return s; + } + } + /** + *
+   * The IP address range for pod IPs in this node pool.
+   *
+   * Only applicable if `create_pod_range` is true.
+   *
+   * Set to blank to have a range chosen with the default size.
+   *
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   *
+   * Set to a
+   * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+   *
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   *
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * string pod_ipv4_cidr_block = 6; + * @return The bytes for podIpv4CidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPodIpv4CidrBlockBytes() { + java.lang.Object ref = podIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + podIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENABLE_PRIVATE_NODES_FIELD_NUMBER = 9; + private boolean enablePrivateNodes_ = false; + /** + *
+   * Whether nodes have internal IP addresses only.
+   * If enable_private_nodes is not specified, then the value is derived from
+   * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
+   * 
+ * + * optional bool enable_private_nodes = 9; + * @return Whether the enablePrivateNodes field is set. + */ + @java.lang.Override + public boolean hasEnablePrivateNodes() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Whether nodes have internal IP addresses only.
+   * If enable_private_nodes is not specified, then the value is derived from
+   * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
+   * 
+ * + * optional bool enable_private_nodes = 9; + * @return The enablePrivateNodes. + */ + @java.lang.Override + public boolean getEnablePrivateNodes() { + return enablePrivateNodes_; + } + + public static final int NETWORK_PERFORMANCE_CONFIG_FIELD_NUMBER = 11; + private com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig networkPerformanceConfig_; + /** + *
+   * Network bandwidth tier configuration.
+   * 
+ * + * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; + * @return Whether the networkPerformanceConfig field is set. + */ + @java.lang.Override + public boolean hasNetworkPerformanceConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * Network bandwidth tier configuration.
+   * 
+ * + * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; + * @return The networkPerformanceConfig. + */ + @java.lang.Override + public com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig getNetworkPerformanceConfig() { + return networkPerformanceConfig_ == null ? com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.getDefaultInstance() : networkPerformanceConfig_; + } + /** + *
+   * Network bandwidth tier configuration.
+   * 
+ * + * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; + */ + @java.lang.Override + public com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfigOrBuilder getNetworkPerformanceConfigOrBuilder() { + return networkPerformanceConfig_ == null ? com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.getDefaultInstance() : networkPerformanceConfig_; + } + + public static final int POD_CIDR_OVERPROVISION_CONFIG_FIELD_NUMBER = 13; + private com.google.container.v1.PodCIDROverprovisionConfig podCidrOverprovisionConfig_; + /** + *
+   * [PRIVATE FIELD]
+   * Pod CIDR size overprovisioning config for the nodepool.
+   *
+   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+   * of max_pods_per_node is rounded off to next power of 2 and we then double
+   * that to get the size of pod CIDR block per node.
+   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+   *
+   * This config can disable the doubling of IPs (we still round off to next
+   * power of 2)
+   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+   * overprovisioning is disabled.
+   * 
+ * + * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; + * @return Whether the podCidrOverprovisionConfig field is set. + */ + @java.lang.Override + public boolean hasPodCidrOverprovisionConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+   * [PRIVATE FIELD]
+   * Pod CIDR size overprovisioning config for the nodepool.
+   *
+   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+   * of max_pods_per_node is rounded off to next power of 2 and we then double
+   * that to get the size of pod CIDR block per node.
+   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+   *
+   * This config can disable the doubling of IPs (we still round off to next
+   * power of 2)
+   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+   * overprovisioning is disabled.
+   * 
+ * + * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; + * @return The podCidrOverprovisionConfig. + */ + @java.lang.Override + public com.google.container.v1.PodCIDROverprovisionConfig getPodCidrOverprovisionConfig() { + return podCidrOverprovisionConfig_ == null ? com.google.container.v1.PodCIDROverprovisionConfig.getDefaultInstance() : podCidrOverprovisionConfig_; + } + /** + *
+   * [PRIVATE FIELD]
+   * Pod CIDR size overprovisioning config for the nodepool.
+   *
+   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+   * of max_pods_per_node is rounded off to next power of 2 and we then double
+   * that to get the size of pod CIDR block per node.
+   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+   *
+   * This config can disable the doubling of IPs (we still round off to next
+   * power of 2)
+   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+   * overprovisioning is disabled.
+   * 
+ * + * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; + */ + @java.lang.Override + public com.google.container.v1.PodCIDROverprovisionConfigOrBuilder getPodCidrOverprovisionConfigOrBuilder() { + return podCidrOverprovisionConfig_ == null ? com.google.container.v1.PodCIDROverprovisionConfig.getDefaultInstance() : podCidrOverprovisionConfig_; + } + + public static final int ADDITIONAL_NODE_NETWORK_CONFIGS_FIELD_NUMBER = 14; + @SuppressWarnings("serial") + private java.util.List additionalNodeNetworkConfigs_; + /** + *
+   * We specify the additional node networks for this node pool using this list.
+   * Each node network corresponds to an additional interface
+   * 
+ * + * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + @java.lang.Override + public java.util.List getAdditionalNodeNetworkConfigsList() { + return additionalNodeNetworkConfigs_; + } + /** + *
+   * We specify the additional node networks for this node pool using this list.
+   * Each node network corresponds to an additional interface
+   * 
+ * + * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + @java.lang.Override + public java.util.List + getAdditionalNodeNetworkConfigsOrBuilderList() { + return additionalNodeNetworkConfigs_; + } + /** + *
+   * We specify the additional node networks for this node pool using this list.
+   * Each node network corresponds to an additional interface
+   * 
+ * + * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + @java.lang.Override + public int getAdditionalNodeNetworkConfigsCount() { + return additionalNodeNetworkConfigs_.size(); + } + /** + *
+   * We specify the additional node networks for this node pool using this list.
+   * Each node network corresponds to an additional interface
+   * 
+ * + * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + @java.lang.Override + public com.google.container.v1.AdditionalNodeNetworkConfig getAdditionalNodeNetworkConfigs(int index) { + return additionalNodeNetworkConfigs_.get(index); + } + /** + *
+   * We specify the additional node networks for this node pool using this list.
+   * Each node network corresponds to an additional interface
+   * 
+ * + * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + @java.lang.Override + public com.google.container.v1.AdditionalNodeNetworkConfigOrBuilder getAdditionalNodeNetworkConfigsOrBuilder( + int index) { + return additionalNodeNetworkConfigs_.get(index); + } + + public static final int ADDITIONAL_POD_NETWORK_CONFIGS_FIELD_NUMBER = 15; + @SuppressWarnings("serial") + private java.util.List additionalPodNetworkConfigs_; + /** + *
+   * We specify the additional pod networks for this node pool using this list.
+   * Each pod network corresponds to an additional alias IP range for the node
+   * 
+ * + * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + @java.lang.Override + public java.util.List getAdditionalPodNetworkConfigsList() { + return additionalPodNetworkConfigs_; + } + /** + *
+   * We specify the additional pod networks for this node pool using this list.
+   * Each pod network corresponds to an additional alias IP range for the node
+   * 
+ * + * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + @java.lang.Override + public java.util.List + getAdditionalPodNetworkConfigsOrBuilderList() { + return additionalPodNetworkConfigs_; + } + /** + *
+   * We specify the additional pod networks for this node pool using this list.
+   * Each pod network corresponds to an additional alias IP range for the node
+   * 
+ * + * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + @java.lang.Override + public int getAdditionalPodNetworkConfigsCount() { + return additionalPodNetworkConfigs_.size(); + } + /** + *
+   * We specify the additional pod networks for this node pool using this list.
+   * Each pod network corresponds to an additional alias IP range for the node
+   * 
+ * + * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + @java.lang.Override + public com.google.container.v1.AdditionalPodNetworkConfig getAdditionalPodNetworkConfigs(int index) { + return additionalPodNetworkConfigs_.get(index); + } + /** + *
+   * We specify the additional pod networks for this node pool using this list.
+   * Each pod network corresponds to an additional alias IP range for the node
+   * 
+ * + * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + @java.lang.Override + public com.google.container.v1.AdditionalPodNetworkConfigOrBuilder getAdditionalPodNetworkConfigsOrBuilder( + int index) { + return additionalPodNetworkConfigs_.get(index); + } + + public static final int POD_IPV4_RANGE_UTILIZATION_FIELD_NUMBER = 16; + private double podIpv4RangeUtilization_ = 0D; + /** + *
+   * Output only. [Output only] The utilization of the IPv4 range for the pod.
+   * The ratio is Usage/[Total number of IPs in the secondary range],
+   * Usage=numNodes*numZones*podIPsPerNode.
+   * 
+ * + * double pod_ipv4_range_utilization = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The podIpv4RangeUtilization. + */ + @java.lang.Override + public double getPodIpv4RangeUtilization() { + return podIpv4RangeUtilization_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (createPodRange_ != false) { + output.writeBool(4, createPodRange_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(podRange_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, podRange_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(podIpv4CidrBlock_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, podIpv4CidrBlock_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(9, enablePrivateNodes_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(11, getNetworkPerformanceConfig()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(13, getPodCidrOverprovisionConfig()); + } + for (int i = 0; i < additionalNodeNetworkConfigs_.size(); i++) { + output.writeMessage(14, additionalNodeNetworkConfigs_.get(i)); + } + for (int i = 0; i < additionalPodNetworkConfigs_.size(); i++) { + output.writeMessage(15, additionalPodNetworkConfigs_.get(i)); + } + if (java.lang.Double.doubleToRawLongBits(podIpv4RangeUtilization_) != 0) { + output.writeDouble(16, podIpv4RangeUtilization_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (createPodRange_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, createPodRange_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(podRange_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, podRange_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(podIpv4CidrBlock_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, podIpv4CidrBlock_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(9, enablePrivateNodes_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getNetworkPerformanceConfig()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getPodCidrOverprovisionConfig()); + } + for (int i = 0; i < additionalNodeNetworkConfigs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, additionalNodeNetworkConfigs_.get(i)); + } + for (int i = 0; i < additionalPodNetworkConfigs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, additionalPodNetworkConfigs_.get(i)); + } + if (java.lang.Double.doubleToRawLongBits(podIpv4RangeUtilization_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(16, podIpv4RangeUtilization_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.NodeNetworkConfig)) { + return super.equals(obj); + } + com.google.container.v1.NodeNetworkConfig other = (com.google.container.v1.NodeNetworkConfig) obj; + + if (getCreatePodRange() + != other.getCreatePodRange()) return false; + if (!getPodRange() + .equals(other.getPodRange())) return false; + if (!getPodIpv4CidrBlock() + .equals(other.getPodIpv4CidrBlock())) return false; + if (hasEnablePrivateNodes() != other.hasEnablePrivateNodes()) return false; + if (hasEnablePrivateNodes()) { + if (getEnablePrivateNodes() + != other.getEnablePrivateNodes()) return false; + } + if (hasNetworkPerformanceConfig() != other.hasNetworkPerformanceConfig()) return false; + if (hasNetworkPerformanceConfig()) { + if (!getNetworkPerformanceConfig() + .equals(other.getNetworkPerformanceConfig())) return false; + } + if (hasPodCidrOverprovisionConfig() != other.hasPodCidrOverprovisionConfig()) return false; + if (hasPodCidrOverprovisionConfig()) { + if (!getPodCidrOverprovisionConfig() + .equals(other.getPodCidrOverprovisionConfig())) return false; + } + if (!getAdditionalNodeNetworkConfigsList() + .equals(other.getAdditionalNodeNetworkConfigsList())) return false; + if (!getAdditionalPodNetworkConfigsList() + .equals(other.getAdditionalPodNetworkConfigsList())) return false; + if (java.lang.Double.doubleToLongBits(getPodIpv4RangeUtilization()) + != java.lang.Double.doubleToLongBits( + other.getPodIpv4RangeUtilization())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CREATE_POD_RANGE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCreatePodRange()); + hash = (37 * hash) + POD_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getPodRange().hashCode(); + hash = (37 * hash) + POD_IPV4_CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getPodIpv4CidrBlock().hashCode(); + if (hasEnablePrivateNodes()) { + hash = (37 * hash) + ENABLE_PRIVATE_NODES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnablePrivateNodes()); + } + if (hasNetworkPerformanceConfig()) { + hash = (37 * hash) + NETWORK_PERFORMANCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNetworkPerformanceConfig().hashCode(); + } + if (hasPodCidrOverprovisionConfig()) { + hash = (37 * hash) + POD_CIDR_OVERPROVISION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPodCidrOverprovisionConfig().hashCode(); + } + if (getAdditionalNodeNetworkConfigsCount() > 0) { + hash = (37 * hash) + ADDITIONAL_NODE_NETWORK_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalNodeNetworkConfigsList().hashCode(); + } + if (getAdditionalPodNetworkConfigsCount() > 0) { + hash = (37 * hash) + ADDITIONAL_POD_NETWORK_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalPodNetworkConfigsList().hashCode(); + } + hash = (37 * hash) + POD_IPV4_RANGE_UTILIZATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getPodIpv4RangeUtilization())); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.NodeNetworkConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodeNetworkConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodeNetworkConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodeNetworkConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodeNetworkConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodeNetworkConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodeNetworkConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NodeNetworkConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.NodeNetworkConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.NodeNetworkConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.NodeNetworkConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NodeNetworkConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.NodeNetworkConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Parameters for node pool-level network config.
+   * 
+ * + * Protobuf type {@code google.container.v1.NodeNetworkConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.NodeNetworkConfig) + com.google.container.v1.NodeNetworkConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeNetworkConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeNetworkConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodeNetworkConfig.class, com.google.container.v1.NodeNetworkConfig.Builder.class); + } + + // Construct using com.google.container.v1.NodeNetworkConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNetworkPerformanceConfigFieldBuilder(); + getPodCidrOverprovisionConfigFieldBuilder(); + getAdditionalNodeNetworkConfigsFieldBuilder(); + getAdditionalPodNetworkConfigsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createPodRange_ = false; + podRange_ = ""; + podIpv4CidrBlock_ = ""; + enablePrivateNodes_ = false; + networkPerformanceConfig_ = null; + if (networkPerformanceConfigBuilder_ != null) { + networkPerformanceConfigBuilder_.dispose(); + networkPerformanceConfigBuilder_ = null; + } + podCidrOverprovisionConfig_ = null; + if (podCidrOverprovisionConfigBuilder_ != null) { + podCidrOverprovisionConfigBuilder_.dispose(); + podCidrOverprovisionConfigBuilder_ = null; + } + if (additionalNodeNetworkConfigsBuilder_ == null) { + additionalNodeNetworkConfigs_ = java.util.Collections.emptyList(); + } else { + additionalNodeNetworkConfigs_ = null; + additionalNodeNetworkConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + if (additionalPodNetworkConfigsBuilder_ == null) { + additionalPodNetworkConfigs_ = java.util.Collections.emptyList(); + } else { + additionalPodNetworkConfigs_ = null; + additionalPodNetworkConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + podIpv4RangeUtilization_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeNetworkConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NodeNetworkConfig getDefaultInstanceForType() { + return com.google.container.v1.NodeNetworkConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NodeNetworkConfig build() { + com.google.container.v1.NodeNetworkConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NodeNetworkConfig buildPartial() { + com.google.container.v1.NodeNetworkConfig result = new com.google.container.v1.NodeNetworkConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1.NodeNetworkConfig result) { + if (additionalNodeNetworkConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + additionalNodeNetworkConfigs_ = java.util.Collections.unmodifiableList(additionalNodeNetworkConfigs_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.additionalNodeNetworkConfigs_ = additionalNodeNetworkConfigs_; + } else { + result.additionalNodeNetworkConfigs_ = additionalNodeNetworkConfigsBuilder_.build(); + } + if (additionalPodNetworkConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + additionalPodNetworkConfigs_ = java.util.Collections.unmodifiableList(additionalPodNetworkConfigs_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.additionalPodNetworkConfigs_ = additionalPodNetworkConfigs_; + } else { + result.additionalPodNetworkConfigs_ = additionalPodNetworkConfigsBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1.NodeNetworkConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createPodRange_ = createPodRange_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.podRange_ = podRange_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.podIpv4CidrBlock_ = podIpv4CidrBlock_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.enablePrivateNodes_ = enablePrivateNodes_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.networkPerformanceConfig_ = networkPerformanceConfigBuilder_ == null + ? networkPerformanceConfig_ + : networkPerformanceConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.podCidrOverprovisionConfig_ = podCidrOverprovisionConfigBuilder_ == null + ? podCidrOverprovisionConfig_ + : podCidrOverprovisionConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.podIpv4RangeUtilization_ = podIpv4RangeUtilization_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.NodeNetworkConfig) { + return mergeFrom((com.google.container.v1.NodeNetworkConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NodeNetworkConfig other) { + if (other == com.google.container.v1.NodeNetworkConfig.getDefaultInstance()) return this; + if (other.getCreatePodRange() != false) { + setCreatePodRange(other.getCreatePodRange()); + } + if (!other.getPodRange().isEmpty()) { + podRange_ = other.podRange_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getPodIpv4CidrBlock().isEmpty()) { + podIpv4CidrBlock_ = other.podIpv4CidrBlock_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasEnablePrivateNodes()) { + setEnablePrivateNodes(other.getEnablePrivateNodes()); + } + if (other.hasNetworkPerformanceConfig()) { + mergeNetworkPerformanceConfig(other.getNetworkPerformanceConfig()); + } + if (other.hasPodCidrOverprovisionConfig()) { + mergePodCidrOverprovisionConfig(other.getPodCidrOverprovisionConfig()); + } + if (additionalNodeNetworkConfigsBuilder_ == null) { + if (!other.additionalNodeNetworkConfigs_.isEmpty()) { + if (additionalNodeNetworkConfigs_.isEmpty()) { + additionalNodeNetworkConfigs_ = other.additionalNodeNetworkConfigs_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureAdditionalNodeNetworkConfigsIsMutable(); + additionalNodeNetworkConfigs_.addAll(other.additionalNodeNetworkConfigs_); + } + onChanged(); + } + } else { + if (!other.additionalNodeNetworkConfigs_.isEmpty()) { + if (additionalNodeNetworkConfigsBuilder_.isEmpty()) { + additionalNodeNetworkConfigsBuilder_.dispose(); + additionalNodeNetworkConfigsBuilder_ = null; + additionalNodeNetworkConfigs_ = other.additionalNodeNetworkConfigs_; + bitField0_ = (bitField0_ & ~0x00000040); + additionalNodeNetworkConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAdditionalNodeNetworkConfigsFieldBuilder() : null; + } else { + additionalNodeNetworkConfigsBuilder_.addAllMessages(other.additionalNodeNetworkConfigs_); + } + } + } + if (additionalPodNetworkConfigsBuilder_ == null) { + if (!other.additionalPodNetworkConfigs_.isEmpty()) { + if (additionalPodNetworkConfigs_.isEmpty()) { + additionalPodNetworkConfigs_ = other.additionalPodNetworkConfigs_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureAdditionalPodNetworkConfigsIsMutable(); + additionalPodNetworkConfigs_.addAll(other.additionalPodNetworkConfigs_); + } + onChanged(); + } + } else { + if (!other.additionalPodNetworkConfigs_.isEmpty()) { + if (additionalPodNetworkConfigsBuilder_.isEmpty()) { + additionalPodNetworkConfigsBuilder_.dispose(); + additionalPodNetworkConfigsBuilder_ = null; + additionalPodNetworkConfigs_ = other.additionalPodNetworkConfigs_; + bitField0_ = (bitField0_ & ~0x00000080); + additionalPodNetworkConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAdditionalPodNetworkConfigsFieldBuilder() : null; + } else { + additionalPodNetworkConfigsBuilder_.addAllMessages(other.additionalPodNetworkConfigs_); + } + } + } + if (other.getPodIpv4RangeUtilization() != 0D) { + setPodIpv4RangeUtilization(other.getPodIpv4RangeUtilization()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 32: { + createPodRange_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 32 + case 42: { + podRange_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 42 + case 50: { + podIpv4CidrBlock_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 50 + case 72: { + enablePrivateNodes_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 72 + case 90: { + input.readMessage( + getNetworkPerformanceConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 90 + case 106: { + input.readMessage( + getPodCidrOverprovisionConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 106 + case 114: { + com.google.container.v1.AdditionalNodeNetworkConfig m = + input.readMessage( + com.google.container.v1.AdditionalNodeNetworkConfig.parser(), + extensionRegistry); + if (additionalNodeNetworkConfigsBuilder_ == null) { + ensureAdditionalNodeNetworkConfigsIsMutable(); + additionalNodeNetworkConfigs_.add(m); + } else { + additionalNodeNetworkConfigsBuilder_.addMessage(m); + } + break; + } // case 114 + case 122: { + com.google.container.v1.AdditionalPodNetworkConfig m = + input.readMessage( + com.google.container.v1.AdditionalPodNetworkConfig.parser(), + extensionRegistry); + if (additionalPodNetworkConfigsBuilder_ == null) { + ensureAdditionalPodNetworkConfigsIsMutable(); + additionalPodNetworkConfigs_.add(m); + } else { + additionalPodNetworkConfigsBuilder_.addMessage(m); + } + break; + } // case 122 + case 129: { + podIpv4RangeUtilization_ = input.readDouble(); + bitField0_ |= 0x00000100; + break; + } // case 129 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean createPodRange_ ; + /** + *
+     * Input only. Whether to create a new range for pod IPs in this node pool.
+     * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they
+     * are not specified.
+     *
+     * If neither `create_pod_range` or `pod_range` are specified, the
+     * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is
+     * used.
+     *
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     *
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return The createPodRange. + */ + @java.lang.Override + public boolean getCreatePodRange() { + return createPodRange_; + } + /** + *
+     * Input only. Whether to create a new range for pod IPs in this node pool.
+     * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they
+     * are not specified.
+     *
+     * If neither `create_pod_range` or `pod_range` are specified, the
+     * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is
+     * used.
+     *
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     *
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param value The createPodRange to set. + * @return This builder for chaining. + */ + public Builder setCreatePodRange(boolean value) { + + createPodRange_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Input only. Whether to create a new range for pod IPs in this node pool.
+     * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they
+     * are not specified.
+     *
+     * If neither `create_pod_range` or `pod_range` are specified, the
+     * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is
+     * used.
+     *
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     *
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearCreatePodRange() { + bitField0_ = (bitField0_ & ~0x00000001); + createPodRange_ = false; + onChanged(); + return this; + } + + private java.lang.Object podRange_ = ""; + /** + *
+     * The ID of the secondary range for pod IPs.
+     * If `create_pod_range` is true, this ID is used for the new range.
+     * If `create_pod_range` is false, uses an existing secondary range with this
+     * ID.
+     *
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     *
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_range = 5; + * @return The podRange. + */ + public java.lang.String getPodRange() { + java.lang.Object ref = podRange_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + podRange_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The ID of the secondary range for pod IPs.
+     * If `create_pod_range` is true, this ID is used for the new range.
+     * If `create_pod_range` is false, uses an existing secondary range with this
+     * ID.
+     *
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     *
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_range = 5; + * @return The bytes for podRange. + */ + public com.google.protobuf.ByteString + getPodRangeBytes() { + java.lang.Object ref = podRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + podRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The ID of the secondary range for pod IPs.
+     * If `create_pod_range` is true, this ID is used for the new range.
+     * If `create_pod_range` is false, uses an existing secondary range with this
+     * ID.
+     *
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     *
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_range = 5; + * @param value The podRange to set. + * @return This builder for chaining. + */ + public Builder setPodRange( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + podRange_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The ID of the secondary range for pod IPs.
+     * If `create_pod_range` is true, this ID is used for the new range.
+     * If `create_pod_range` is false, uses an existing secondary range with this
+     * ID.
+     *
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     *
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_range = 5; + * @return This builder for chaining. + */ + public Builder clearPodRange() { + podRange_ = getDefaultInstance().getPodRange(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * The ID of the secondary range for pod IPs.
+     * If `create_pod_range` is true, this ID is used for the new range.
+     * If `create_pod_range` is false, uses an existing secondary range with this
+     * ID.
+     *
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     *
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_range = 5; + * @param value The bytes for podRange to set. + * @return This builder for chaining. + */ + public Builder setPodRangeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + podRange_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object podIpv4CidrBlock_ = ""; + /** + *
+     * The IP address range for pod IPs in this node pool.
+     *
+     * Only applicable if `create_pod_range` is true.
+     *
+     * Set to blank to have a range chosen with the default size.
+     *
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     *
+     * Set to a
+     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+     *
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     *
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_ipv4_cidr_block = 6; + * @return The podIpv4CidrBlock. + */ + public java.lang.String getPodIpv4CidrBlock() { + java.lang.Object ref = podIpv4CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + podIpv4CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The IP address range for pod IPs in this node pool.
+     *
+     * Only applicable if `create_pod_range` is true.
+     *
+     * Set to blank to have a range chosen with the default size.
+     *
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     *
+     * Set to a
+     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+     *
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     *
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_ipv4_cidr_block = 6; + * @return The bytes for podIpv4CidrBlock. + */ + public com.google.protobuf.ByteString + getPodIpv4CidrBlockBytes() { + java.lang.Object ref = podIpv4CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + podIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The IP address range for pod IPs in this node pool.
+     *
+     * Only applicable if `create_pod_range` is true.
+     *
+     * Set to blank to have a range chosen with the default size.
+     *
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     *
+     * Set to a
+     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+     *
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     *
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_ipv4_cidr_block = 6; + * @param value The podIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setPodIpv4CidrBlock( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + podIpv4CidrBlock_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The IP address range for pod IPs in this node pool.
+     *
+     * Only applicable if `create_pod_range` is true.
+     *
+     * Set to blank to have a range chosen with the default size.
+     *
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     *
+     * Set to a
+     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+     *
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     *
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_ipv4_cidr_block = 6; + * @return This builder for chaining. + */ + public Builder clearPodIpv4CidrBlock() { + podIpv4CidrBlock_ = getDefaultInstance().getPodIpv4CidrBlock(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * The IP address range for pod IPs in this node pool.
+     *
+     * Only applicable if `create_pod_range` is true.
+     *
+     * Set to blank to have a range chosen with the default size.
+     *
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     *
+     * Set to a
+     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+     *
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     *
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_ipv4_cidr_block = 6; + * @param value The bytes for podIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setPodIpv4CidrBlockBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + podIpv4CidrBlock_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private boolean enablePrivateNodes_ ; + /** + *
+     * Whether nodes have internal IP addresses only.
+     * If enable_private_nodes is not specified, then the value is derived from
+     * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
+     * 
+ * + * optional bool enable_private_nodes = 9; + * @return Whether the enablePrivateNodes field is set. + */ + @java.lang.Override + public boolean hasEnablePrivateNodes() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * Whether nodes have internal IP addresses only.
+     * If enable_private_nodes is not specified, then the value is derived from
+     * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
+     * 
+ * + * optional bool enable_private_nodes = 9; + * @return The enablePrivateNodes. + */ + @java.lang.Override + public boolean getEnablePrivateNodes() { + return enablePrivateNodes_; + } + /** + *
+     * Whether nodes have internal IP addresses only.
+     * If enable_private_nodes is not specified, then the value is derived from
+     * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
+     * 
+ * + * optional bool enable_private_nodes = 9; + * @param value The enablePrivateNodes to set. + * @return This builder for chaining. + */ + public Builder setEnablePrivateNodes(boolean value) { + + enablePrivateNodes_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Whether nodes have internal IP addresses only.
+     * If enable_private_nodes is not specified, then the value is derived from
+     * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
+     * 
+ * + * optional bool enable_private_nodes = 9; + * @return This builder for chaining. + */ + public Builder clearEnablePrivateNodes() { + bitField0_ = (bitField0_ & ~0x00000008); + enablePrivateNodes_ = false; + onChanged(); + return this; + } + + private com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig networkPerformanceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig, com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Builder, com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfigOrBuilder> networkPerformanceConfigBuilder_; + /** + *
+     * Network bandwidth tier configuration.
+     * 
+ * + * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; + * @return Whether the networkPerformanceConfig field is set. + */ + public boolean hasNetworkPerformanceConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+     * Network bandwidth tier configuration.
+     * 
+ * + * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; + * @return The networkPerformanceConfig. + */ + public com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig getNetworkPerformanceConfig() { + if (networkPerformanceConfigBuilder_ == null) { + return networkPerformanceConfig_ == null ? com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.getDefaultInstance() : networkPerformanceConfig_; + } else { + return networkPerformanceConfigBuilder_.getMessage(); + } + } + /** + *
+     * Network bandwidth tier configuration.
+     * 
+ * + * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; + */ + public Builder setNetworkPerformanceConfig(com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig value) { + if (networkPerformanceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkPerformanceConfig_ = value; + } else { + networkPerformanceConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Network bandwidth tier configuration.
+     * 
+ * + * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; + */ + public Builder setNetworkPerformanceConfig( + com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Builder builderForValue) { + if (networkPerformanceConfigBuilder_ == null) { + networkPerformanceConfig_ = builderForValue.build(); + } else { + networkPerformanceConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Network bandwidth tier configuration.
+     * 
+ * + * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; + */ + public Builder mergeNetworkPerformanceConfig(com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig value) { + if (networkPerformanceConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + networkPerformanceConfig_ != null && + networkPerformanceConfig_ != com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.getDefaultInstance()) { + getNetworkPerformanceConfigBuilder().mergeFrom(value); + } else { + networkPerformanceConfig_ = value; + } + } else { + networkPerformanceConfigBuilder_.mergeFrom(value); + } + if (networkPerformanceConfig_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + *
+     * Network bandwidth tier configuration.
+     * 
+ * + * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; + */ + public Builder clearNetworkPerformanceConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + networkPerformanceConfig_ = null; + if (networkPerformanceConfigBuilder_ != null) { + networkPerformanceConfigBuilder_.dispose(); + networkPerformanceConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Network bandwidth tier configuration.
+     * 
+ * + * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; + */ + public com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Builder getNetworkPerformanceConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getNetworkPerformanceConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Network bandwidth tier configuration.
+     * 
+ * + * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; + */ + public com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfigOrBuilder getNetworkPerformanceConfigOrBuilder() { + if (networkPerformanceConfigBuilder_ != null) { + return networkPerformanceConfigBuilder_.getMessageOrBuilder(); + } else { + return networkPerformanceConfig_ == null ? + com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.getDefaultInstance() : networkPerformanceConfig_; + } + } + /** + *
+     * Network bandwidth tier configuration.
+     * 
+ * + * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig, com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Builder, com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfigOrBuilder> + getNetworkPerformanceConfigFieldBuilder() { + if (networkPerformanceConfigBuilder_ == null) { + networkPerformanceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig, com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Builder, com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfigOrBuilder>( + getNetworkPerformanceConfig(), + getParentForChildren(), + isClean()); + networkPerformanceConfig_ = null; + } + return networkPerformanceConfigBuilder_; + } + + private com.google.container.v1.PodCIDROverprovisionConfig podCidrOverprovisionConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.PodCIDROverprovisionConfig, com.google.container.v1.PodCIDROverprovisionConfig.Builder, com.google.container.v1.PodCIDROverprovisionConfigOrBuilder> podCidrOverprovisionConfigBuilder_; + /** + *
+     * [PRIVATE FIELD]
+     * Pod CIDR size overprovisioning config for the nodepool.
+     *
+     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+     * of max_pods_per_node is rounded off to next power of 2 and we then double
+     * that to get the size of pod CIDR block per node.
+     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+     *
+     * This config can disable the doubling of IPs (we still round off to next
+     * power of 2)
+     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+     * overprovisioning is disabled.
+     * 
+ * + * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; + * @return Whether the podCidrOverprovisionConfig field is set. + */ + public boolean hasPodCidrOverprovisionConfig() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+     * [PRIVATE FIELD]
+     * Pod CIDR size overprovisioning config for the nodepool.
+     *
+     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+     * of max_pods_per_node is rounded off to next power of 2 and we then double
+     * that to get the size of pod CIDR block per node.
+     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+     *
+     * This config can disable the doubling of IPs (we still round off to next
+     * power of 2)
+     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+     * overprovisioning is disabled.
+     * 
+ * + * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; + * @return The podCidrOverprovisionConfig. + */ + public com.google.container.v1.PodCIDROverprovisionConfig getPodCidrOverprovisionConfig() { + if (podCidrOverprovisionConfigBuilder_ == null) { + return podCidrOverprovisionConfig_ == null ? com.google.container.v1.PodCIDROverprovisionConfig.getDefaultInstance() : podCidrOverprovisionConfig_; + } else { + return podCidrOverprovisionConfigBuilder_.getMessage(); + } + } + /** + *
+     * [PRIVATE FIELD]
+     * Pod CIDR size overprovisioning config for the nodepool.
+     *
+     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+     * of max_pods_per_node is rounded off to next power of 2 and we then double
+     * that to get the size of pod CIDR block per node.
+     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+     *
+     * This config can disable the doubling of IPs (we still round off to next
+     * power of 2)
+     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+     * overprovisioning is disabled.
+     * 
+ * + * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; + */ + public Builder setPodCidrOverprovisionConfig(com.google.container.v1.PodCIDROverprovisionConfig value) { + if (podCidrOverprovisionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + podCidrOverprovisionConfig_ = value; + } else { + podCidrOverprovisionConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * [PRIVATE FIELD]
+     * Pod CIDR size overprovisioning config for the nodepool.
+     *
+     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+     * of max_pods_per_node is rounded off to next power of 2 and we then double
+     * that to get the size of pod CIDR block per node.
+     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+     *
+     * This config can disable the doubling of IPs (we still round off to next
+     * power of 2)
+     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+     * overprovisioning is disabled.
+     * 
+ * + * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; + */ + public Builder setPodCidrOverprovisionConfig( + com.google.container.v1.PodCIDROverprovisionConfig.Builder builderForValue) { + if (podCidrOverprovisionConfigBuilder_ == null) { + podCidrOverprovisionConfig_ = builderForValue.build(); + } else { + podCidrOverprovisionConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * [PRIVATE FIELD]
+     * Pod CIDR size overprovisioning config for the nodepool.
+     *
+     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+     * of max_pods_per_node is rounded off to next power of 2 and we then double
+     * that to get the size of pod CIDR block per node.
+     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+     *
+     * This config can disable the doubling of IPs (we still round off to next
+     * power of 2)
+     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+     * overprovisioning is disabled.
+     * 
+ * + * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; + */ + public Builder mergePodCidrOverprovisionConfig(com.google.container.v1.PodCIDROverprovisionConfig value) { + if (podCidrOverprovisionConfigBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && + podCidrOverprovisionConfig_ != null && + podCidrOverprovisionConfig_ != com.google.container.v1.PodCIDROverprovisionConfig.getDefaultInstance()) { + getPodCidrOverprovisionConfigBuilder().mergeFrom(value); + } else { + podCidrOverprovisionConfig_ = value; + } + } else { + podCidrOverprovisionConfigBuilder_.mergeFrom(value); + } + if (podCidrOverprovisionConfig_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + *
+     * [PRIVATE FIELD]
+     * Pod CIDR size overprovisioning config for the nodepool.
+     *
+     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+     * of max_pods_per_node is rounded off to next power of 2 and we then double
+     * that to get the size of pod CIDR block per node.
+     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+     *
+     * This config can disable the doubling of IPs (we still round off to next
+     * power of 2)
+     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+     * overprovisioning is disabled.
+     * 
+ * + * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; + */ + public Builder clearPodCidrOverprovisionConfig() { + bitField0_ = (bitField0_ & ~0x00000020); + podCidrOverprovisionConfig_ = null; + if (podCidrOverprovisionConfigBuilder_ != null) { + podCidrOverprovisionConfigBuilder_.dispose(); + podCidrOverprovisionConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * [PRIVATE FIELD]
+     * Pod CIDR size overprovisioning config for the nodepool.
+     *
+     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+     * of max_pods_per_node is rounded off to next power of 2 and we then double
+     * that to get the size of pod CIDR block per node.
+     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+     *
+     * This config can disable the doubling of IPs (we still round off to next
+     * power of 2)
+     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+     * overprovisioning is disabled.
+     * 
+ * + * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; + */ + public com.google.container.v1.PodCIDROverprovisionConfig.Builder getPodCidrOverprovisionConfigBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getPodCidrOverprovisionConfigFieldBuilder().getBuilder(); + } + /** + *
+     * [PRIVATE FIELD]
+     * Pod CIDR size overprovisioning config for the nodepool.
+     *
+     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+     * of max_pods_per_node is rounded off to next power of 2 and we then double
+     * that to get the size of pod CIDR block per node.
+     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+     *
+     * This config can disable the doubling of IPs (we still round off to next
+     * power of 2)
+     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+     * overprovisioning is disabled.
+     * 
+ * + * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; + */ + public com.google.container.v1.PodCIDROverprovisionConfigOrBuilder getPodCidrOverprovisionConfigOrBuilder() { + if (podCidrOverprovisionConfigBuilder_ != null) { + return podCidrOverprovisionConfigBuilder_.getMessageOrBuilder(); + } else { + return podCidrOverprovisionConfig_ == null ? + com.google.container.v1.PodCIDROverprovisionConfig.getDefaultInstance() : podCidrOverprovisionConfig_; + } + } + /** + *
+     * [PRIVATE FIELD]
+     * Pod CIDR size overprovisioning config for the nodepool.
+     *
+     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+     * of max_pods_per_node is rounded off to next power of 2 and we then double
+     * that to get the size of pod CIDR block per node.
+     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+     *
+     * This config can disable the doubling of IPs (we still round off to next
+     * power of 2)
+     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+     * overprovisioning is disabled.
+     * 
+ * + * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.PodCIDROverprovisionConfig, com.google.container.v1.PodCIDROverprovisionConfig.Builder, com.google.container.v1.PodCIDROverprovisionConfigOrBuilder> + getPodCidrOverprovisionConfigFieldBuilder() { + if (podCidrOverprovisionConfigBuilder_ == null) { + podCidrOverprovisionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.PodCIDROverprovisionConfig, com.google.container.v1.PodCIDROverprovisionConfig.Builder, com.google.container.v1.PodCIDROverprovisionConfigOrBuilder>( + getPodCidrOverprovisionConfig(), + getParentForChildren(), + isClean()); + podCidrOverprovisionConfig_ = null; + } + return podCidrOverprovisionConfigBuilder_; + } + + private java.util.List additionalNodeNetworkConfigs_ = + java.util.Collections.emptyList(); + private void ensureAdditionalNodeNetworkConfigsIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + additionalNodeNetworkConfigs_ = new java.util.ArrayList(additionalNodeNetworkConfigs_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.AdditionalNodeNetworkConfig, com.google.container.v1.AdditionalNodeNetworkConfig.Builder, com.google.container.v1.AdditionalNodeNetworkConfigOrBuilder> additionalNodeNetworkConfigsBuilder_; + + /** + *
+     * We specify the additional node networks for this node pool using this list.
+     * Each node network corresponds to an additional interface
+     * 
+ * + * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + public java.util.List getAdditionalNodeNetworkConfigsList() { + if (additionalNodeNetworkConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(additionalNodeNetworkConfigs_); + } else { + return additionalNodeNetworkConfigsBuilder_.getMessageList(); + } + } + /** + *
+     * We specify the additional node networks for this node pool using this list.
+     * Each node network corresponds to an additional interface
+     * 
+ * + * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + public int getAdditionalNodeNetworkConfigsCount() { + if (additionalNodeNetworkConfigsBuilder_ == null) { + return additionalNodeNetworkConfigs_.size(); + } else { + return additionalNodeNetworkConfigsBuilder_.getCount(); + } + } + /** + *
+     * We specify the additional node networks for this node pool using this list.
+     * Each node network corresponds to an additional interface
+     * 
+ * + * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + public com.google.container.v1.AdditionalNodeNetworkConfig getAdditionalNodeNetworkConfigs(int index) { + if (additionalNodeNetworkConfigsBuilder_ == null) { + return additionalNodeNetworkConfigs_.get(index); + } else { + return additionalNodeNetworkConfigsBuilder_.getMessage(index); + } + } + /** + *
+     * We specify the additional node networks for this node pool using this list.
+     * Each node network corresponds to an additional interface
+     * 
+ * + * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + public Builder setAdditionalNodeNetworkConfigs( + int index, com.google.container.v1.AdditionalNodeNetworkConfig value) { + if (additionalNodeNetworkConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalNodeNetworkConfigsIsMutable(); + additionalNodeNetworkConfigs_.set(index, value); + onChanged(); + } else { + additionalNodeNetworkConfigsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * We specify the additional node networks for this node pool using this list.
+     * Each node network corresponds to an additional interface
+     * 
+ * + * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + public Builder setAdditionalNodeNetworkConfigs( + int index, com.google.container.v1.AdditionalNodeNetworkConfig.Builder builderForValue) { + if (additionalNodeNetworkConfigsBuilder_ == null) { + ensureAdditionalNodeNetworkConfigsIsMutable(); + additionalNodeNetworkConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + additionalNodeNetworkConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * We specify the additional node networks for this node pool using this list.
+     * Each node network corresponds to an additional interface
+     * 
+ * + * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + public Builder addAdditionalNodeNetworkConfigs(com.google.container.v1.AdditionalNodeNetworkConfig value) { + if (additionalNodeNetworkConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalNodeNetworkConfigsIsMutable(); + additionalNodeNetworkConfigs_.add(value); + onChanged(); + } else { + additionalNodeNetworkConfigsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * We specify the additional node networks for this node pool using this list.
+     * Each node network corresponds to an additional interface
+     * 
+ * + * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + public Builder addAdditionalNodeNetworkConfigs( + int index, com.google.container.v1.AdditionalNodeNetworkConfig value) { + if (additionalNodeNetworkConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalNodeNetworkConfigsIsMutable(); + additionalNodeNetworkConfigs_.add(index, value); + onChanged(); + } else { + additionalNodeNetworkConfigsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * We specify the additional node networks for this node pool using this list.
+     * Each node network corresponds to an additional interface
+     * 
+ * + * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + public Builder addAdditionalNodeNetworkConfigs( + com.google.container.v1.AdditionalNodeNetworkConfig.Builder builderForValue) { + if (additionalNodeNetworkConfigsBuilder_ == null) { + ensureAdditionalNodeNetworkConfigsIsMutable(); + additionalNodeNetworkConfigs_.add(builderForValue.build()); + onChanged(); + } else { + additionalNodeNetworkConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * We specify the additional node networks for this node pool using this list.
+     * Each node network corresponds to an additional interface
+     * 
+ * + * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + public Builder addAdditionalNodeNetworkConfigs( + int index, com.google.container.v1.AdditionalNodeNetworkConfig.Builder builderForValue) { + if (additionalNodeNetworkConfigsBuilder_ == null) { + ensureAdditionalNodeNetworkConfigsIsMutable(); + additionalNodeNetworkConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + additionalNodeNetworkConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * We specify the additional node networks for this node pool using this list.
+     * Each node network corresponds to an additional interface
+     * 
+ * + * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + public Builder addAllAdditionalNodeNetworkConfigs( + java.lang.Iterable values) { + if (additionalNodeNetworkConfigsBuilder_ == null) { + ensureAdditionalNodeNetworkConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, additionalNodeNetworkConfigs_); + onChanged(); + } else { + additionalNodeNetworkConfigsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * We specify the additional node networks for this node pool using this list.
+     * Each node network corresponds to an additional interface
+     * 
+ * + * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + public Builder clearAdditionalNodeNetworkConfigs() { + if (additionalNodeNetworkConfigsBuilder_ == null) { + additionalNodeNetworkConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + additionalNodeNetworkConfigsBuilder_.clear(); + } + return this; + } + /** + *
+     * We specify the additional node networks for this node pool using this list.
+     * Each node network corresponds to an additional interface
+     * 
+ * + * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + public Builder removeAdditionalNodeNetworkConfigs(int index) { + if (additionalNodeNetworkConfigsBuilder_ == null) { + ensureAdditionalNodeNetworkConfigsIsMutable(); + additionalNodeNetworkConfigs_.remove(index); + onChanged(); + } else { + additionalNodeNetworkConfigsBuilder_.remove(index); + } + return this; + } + /** + *
+     * We specify the additional node networks for this node pool using this list.
+     * Each node network corresponds to an additional interface
+     * 
+ * + * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + public com.google.container.v1.AdditionalNodeNetworkConfig.Builder getAdditionalNodeNetworkConfigsBuilder( + int index) { + return getAdditionalNodeNetworkConfigsFieldBuilder().getBuilder(index); + } + /** + *
+     * We specify the additional node networks for this node pool using this list.
+     * Each node network corresponds to an additional interface
+     * 
+ * + * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + public com.google.container.v1.AdditionalNodeNetworkConfigOrBuilder getAdditionalNodeNetworkConfigsOrBuilder( + int index) { + if (additionalNodeNetworkConfigsBuilder_ == null) { + return additionalNodeNetworkConfigs_.get(index); } else { + return additionalNodeNetworkConfigsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * We specify the additional node networks for this node pool using this list.
+     * Each node network corresponds to an additional interface
+     * 
+ * + * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + public java.util.List + getAdditionalNodeNetworkConfigsOrBuilderList() { + if (additionalNodeNetworkConfigsBuilder_ != null) { + return additionalNodeNetworkConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(additionalNodeNetworkConfigs_); + } + } + /** + *
+     * We specify the additional node networks for this node pool using this list.
+     * Each node network corresponds to an additional interface
+     * 
+ * + * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + public com.google.container.v1.AdditionalNodeNetworkConfig.Builder addAdditionalNodeNetworkConfigsBuilder() { + return getAdditionalNodeNetworkConfigsFieldBuilder().addBuilder( + com.google.container.v1.AdditionalNodeNetworkConfig.getDefaultInstance()); + } + /** + *
+     * We specify the additional node networks for this node pool using this list.
+     * Each node network corresponds to an additional interface
+     * 
+ * + * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + public com.google.container.v1.AdditionalNodeNetworkConfig.Builder addAdditionalNodeNetworkConfigsBuilder( + int index) { + return getAdditionalNodeNetworkConfigsFieldBuilder().addBuilder( + index, com.google.container.v1.AdditionalNodeNetworkConfig.getDefaultInstance()); + } + /** + *
+     * We specify the additional node networks for this node pool using this list.
+     * Each node network corresponds to an additional interface
+     * 
+ * + * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + public java.util.List + getAdditionalNodeNetworkConfigsBuilderList() { + return getAdditionalNodeNetworkConfigsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.AdditionalNodeNetworkConfig, com.google.container.v1.AdditionalNodeNetworkConfig.Builder, com.google.container.v1.AdditionalNodeNetworkConfigOrBuilder> + getAdditionalNodeNetworkConfigsFieldBuilder() { + if (additionalNodeNetworkConfigsBuilder_ == null) { + additionalNodeNetworkConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.AdditionalNodeNetworkConfig, com.google.container.v1.AdditionalNodeNetworkConfig.Builder, com.google.container.v1.AdditionalNodeNetworkConfigOrBuilder>( + additionalNodeNetworkConfigs_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + additionalNodeNetworkConfigs_ = null; + } + return additionalNodeNetworkConfigsBuilder_; + } + + private java.util.List additionalPodNetworkConfigs_ = + java.util.Collections.emptyList(); + private void ensureAdditionalPodNetworkConfigsIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + additionalPodNetworkConfigs_ = new java.util.ArrayList(additionalPodNetworkConfigs_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.AdditionalPodNetworkConfig, com.google.container.v1.AdditionalPodNetworkConfig.Builder, com.google.container.v1.AdditionalPodNetworkConfigOrBuilder> additionalPodNetworkConfigsBuilder_; + + /** + *
+     * We specify the additional pod networks for this node pool using this list.
+     * Each pod network corresponds to an additional alias IP range for the node
+     * 
+ * + * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + public java.util.List getAdditionalPodNetworkConfigsList() { + if (additionalPodNetworkConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(additionalPodNetworkConfigs_); + } else { + return additionalPodNetworkConfigsBuilder_.getMessageList(); + } + } + /** + *
+     * We specify the additional pod networks for this node pool using this list.
+     * Each pod network corresponds to an additional alias IP range for the node
+     * 
+ * + * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + public int getAdditionalPodNetworkConfigsCount() { + if (additionalPodNetworkConfigsBuilder_ == null) { + return additionalPodNetworkConfigs_.size(); + } else { + return additionalPodNetworkConfigsBuilder_.getCount(); + } + } + /** + *
+     * We specify the additional pod networks for this node pool using this list.
+     * Each pod network corresponds to an additional alias IP range for the node
+     * 
+ * + * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + public com.google.container.v1.AdditionalPodNetworkConfig getAdditionalPodNetworkConfigs(int index) { + if (additionalPodNetworkConfigsBuilder_ == null) { + return additionalPodNetworkConfigs_.get(index); + } else { + return additionalPodNetworkConfigsBuilder_.getMessage(index); + } + } + /** + *
+     * We specify the additional pod networks for this node pool using this list.
+     * Each pod network corresponds to an additional alias IP range for the node
+     * 
+ * + * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + public Builder setAdditionalPodNetworkConfigs( + int index, com.google.container.v1.AdditionalPodNetworkConfig value) { + if (additionalPodNetworkConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalPodNetworkConfigsIsMutable(); + additionalPodNetworkConfigs_.set(index, value); + onChanged(); + } else { + additionalPodNetworkConfigsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * We specify the additional pod networks for this node pool using this list.
+     * Each pod network corresponds to an additional alias IP range for the node
+     * 
+ * + * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + public Builder setAdditionalPodNetworkConfigs( + int index, com.google.container.v1.AdditionalPodNetworkConfig.Builder builderForValue) { + if (additionalPodNetworkConfigsBuilder_ == null) { + ensureAdditionalPodNetworkConfigsIsMutable(); + additionalPodNetworkConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + additionalPodNetworkConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * We specify the additional pod networks for this node pool using this list.
+     * Each pod network corresponds to an additional alias IP range for the node
+     * 
+ * + * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + public Builder addAdditionalPodNetworkConfigs(com.google.container.v1.AdditionalPodNetworkConfig value) { + if (additionalPodNetworkConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalPodNetworkConfigsIsMutable(); + additionalPodNetworkConfigs_.add(value); + onChanged(); + } else { + additionalPodNetworkConfigsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * We specify the additional pod networks for this node pool using this list.
+     * Each pod network corresponds to an additional alias IP range for the node
+     * 
+ * + * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + public Builder addAdditionalPodNetworkConfigs( + int index, com.google.container.v1.AdditionalPodNetworkConfig value) { + if (additionalPodNetworkConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalPodNetworkConfigsIsMutable(); + additionalPodNetworkConfigs_.add(index, value); + onChanged(); + } else { + additionalPodNetworkConfigsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * We specify the additional pod networks for this node pool using this list.
+     * Each pod network corresponds to an additional alias IP range for the node
+     * 
+ * + * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + public Builder addAdditionalPodNetworkConfigs( + com.google.container.v1.AdditionalPodNetworkConfig.Builder builderForValue) { + if (additionalPodNetworkConfigsBuilder_ == null) { + ensureAdditionalPodNetworkConfigsIsMutable(); + additionalPodNetworkConfigs_.add(builderForValue.build()); + onChanged(); + } else { + additionalPodNetworkConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * We specify the additional pod networks for this node pool using this list.
+     * Each pod network corresponds to an additional alias IP range for the node
+     * 
+ * + * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + public Builder addAdditionalPodNetworkConfigs( + int index, com.google.container.v1.AdditionalPodNetworkConfig.Builder builderForValue) { + if (additionalPodNetworkConfigsBuilder_ == null) { + ensureAdditionalPodNetworkConfigsIsMutable(); + additionalPodNetworkConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + additionalPodNetworkConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * We specify the additional pod networks for this node pool using this list.
+     * Each pod network corresponds to an additional alias IP range for the node
+     * 
+ * + * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + public Builder addAllAdditionalPodNetworkConfigs( + java.lang.Iterable values) { + if (additionalPodNetworkConfigsBuilder_ == null) { + ensureAdditionalPodNetworkConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, additionalPodNetworkConfigs_); + onChanged(); + } else { + additionalPodNetworkConfigsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * We specify the additional pod networks for this node pool using this list.
+     * Each pod network corresponds to an additional alias IP range for the node
+     * 
+ * + * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + public Builder clearAdditionalPodNetworkConfigs() { + if (additionalPodNetworkConfigsBuilder_ == null) { + additionalPodNetworkConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + additionalPodNetworkConfigsBuilder_.clear(); + } + return this; + } + /** + *
+     * We specify the additional pod networks for this node pool using this list.
+     * Each pod network corresponds to an additional alias IP range for the node
+     * 
+ * + * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + public Builder removeAdditionalPodNetworkConfigs(int index) { + if (additionalPodNetworkConfigsBuilder_ == null) { + ensureAdditionalPodNetworkConfigsIsMutable(); + additionalPodNetworkConfigs_.remove(index); + onChanged(); + } else { + additionalPodNetworkConfigsBuilder_.remove(index); + } + return this; + } + /** + *
+     * We specify the additional pod networks for this node pool using this list.
+     * Each pod network corresponds to an additional alias IP range for the node
+     * 
+ * + * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + public com.google.container.v1.AdditionalPodNetworkConfig.Builder getAdditionalPodNetworkConfigsBuilder( + int index) { + return getAdditionalPodNetworkConfigsFieldBuilder().getBuilder(index); + } + /** + *
+     * We specify the additional pod networks for this node pool using this list.
+     * Each pod network corresponds to an additional alias IP range for the node
+     * 
+ * + * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + public com.google.container.v1.AdditionalPodNetworkConfigOrBuilder getAdditionalPodNetworkConfigsOrBuilder( + int index) { + if (additionalPodNetworkConfigsBuilder_ == null) { + return additionalPodNetworkConfigs_.get(index); } else { + return additionalPodNetworkConfigsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * We specify the additional pod networks for this node pool using this list.
+     * Each pod network corresponds to an additional alias IP range for the node
+     * 
+ * + * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + public java.util.List + getAdditionalPodNetworkConfigsOrBuilderList() { + if (additionalPodNetworkConfigsBuilder_ != null) { + return additionalPodNetworkConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(additionalPodNetworkConfigs_); + } + } + /** + *
+     * We specify the additional pod networks for this node pool using this list.
+     * Each pod network corresponds to an additional alias IP range for the node
+     * 
+ * + * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + public com.google.container.v1.AdditionalPodNetworkConfig.Builder addAdditionalPodNetworkConfigsBuilder() { + return getAdditionalPodNetworkConfigsFieldBuilder().addBuilder( + com.google.container.v1.AdditionalPodNetworkConfig.getDefaultInstance()); + } + /** + *
+     * We specify the additional pod networks for this node pool using this list.
+     * Each pod network corresponds to an additional alias IP range for the node
+     * 
+ * + * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + public com.google.container.v1.AdditionalPodNetworkConfig.Builder addAdditionalPodNetworkConfigsBuilder( + int index) { + return getAdditionalPodNetworkConfigsFieldBuilder().addBuilder( + index, com.google.container.v1.AdditionalPodNetworkConfig.getDefaultInstance()); + } + /** + *
+     * We specify the additional pod networks for this node pool using this list.
+     * Each pod network corresponds to an additional alias IP range for the node
+     * 
+ * + * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + public java.util.List + getAdditionalPodNetworkConfigsBuilderList() { + return getAdditionalPodNetworkConfigsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.AdditionalPodNetworkConfig, com.google.container.v1.AdditionalPodNetworkConfig.Builder, com.google.container.v1.AdditionalPodNetworkConfigOrBuilder> + getAdditionalPodNetworkConfigsFieldBuilder() { + if (additionalPodNetworkConfigsBuilder_ == null) { + additionalPodNetworkConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.AdditionalPodNetworkConfig, com.google.container.v1.AdditionalPodNetworkConfig.Builder, com.google.container.v1.AdditionalPodNetworkConfigOrBuilder>( + additionalPodNetworkConfigs_, + ((bitField0_ & 0x00000080) != 0), + getParentForChildren(), + isClean()); + additionalPodNetworkConfigs_ = null; + } + return additionalPodNetworkConfigsBuilder_; + } + + private double podIpv4RangeUtilization_ ; + /** + *
+     * Output only. [Output only] The utilization of the IPv4 range for the pod.
+     * The ratio is Usage/[Total number of IPs in the secondary range],
+     * Usage=numNodes*numZones*podIPsPerNode.
+     * 
+ * + * double pod_ipv4_range_utilization = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The podIpv4RangeUtilization. + */ + @java.lang.Override + public double getPodIpv4RangeUtilization() { + return podIpv4RangeUtilization_; + } + /** + *
+     * Output only. [Output only] The utilization of the IPv4 range for the pod.
+     * The ratio is Usage/[Total number of IPs in the secondary range],
+     * Usage=numNodes*numZones*podIPsPerNode.
+     * 
+ * + * double pod_ipv4_range_utilization = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The podIpv4RangeUtilization to set. + * @return This builder for chaining. + */ + public Builder setPodIpv4RangeUtilization(double value) { + + podIpv4RangeUtilization_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * Output only. [Output only] The utilization of the IPv4 range for the pod.
+     * The ratio is Usage/[Total number of IPs in the secondary range],
+     * Usage=numNodes*numZones*podIPsPerNode.
+     * 
+ * + * double pod_ipv4_range_utilization = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearPodIpv4RangeUtilization() { + bitField0_ = (bitField0_ & ~0x00000100); + podIpv4RangeUtilization_ = 0D; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.NodeNetworkConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.NodeNetworkConfig) + private static final com.google.container.v1.NodeNetworkConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.NodeNetworkConfig(); + } + + public static com.google.container.v1.NodeNetworkConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeNetworkConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.NodeNetworkConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfigOrBuilder.java new file mode 100644 index 000000000000..df1f085f2d96 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeNetworkConfigOrBuilder.java @@ -0,0 +1,334 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface NodeNetworkConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NodeNetworkConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Input only. Whether to create a new range for pod IPs in this node pool.
+   * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they
+   * are not specified.
+   *
+   * If neither `create_pod_range` or `pod_range` are specified, the
+   * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is
+   * used.
+   *
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   *
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return The createPodRange. + */ + boolean getCreatePodRange(); + + /** + *
+   * The ID of the secondary range for pod IPs.
+   * If `create_pod_range` is true, this ID is used for the new range.
+   * If `create_pod_range` is false, uses an existing secondary range with this
+   * ID.
+   *
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   *
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * string pod_range = 5; + * @return The podRange. + */ + java.lang.String getPodRange(); + /** + *
+   * The ID of the secondary range for pod IPs.
+   * If `create_pod_range` is true, this ID is used for the new range.
+   * If `create_pod_range` is false, uses an existing secondary range with this
+   * ID.
+   *
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   *
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * string pod_range = 5; + * @return The bytes for podRange. + */ + com.google.protobuf.ByteString + getPodRangeBytes(); + + /** + *
+   * The IP address range for pod IPs in this node pool.
+   *
+   * Only applicable if `create_pod_range` is true.
+   *
+   * Set to blank to have a range chosen with the default size.
+   *
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   *
+   * Set to a
+   * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+   *
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   *
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * string pod_ipv4_cidr_block = 6; + * @return The podIpv4CidrBlock. + */ + java.lang.String getPodIpv4CidrBlock(); + /** + *
+   * The IP address range for pod IPs in this node pool.
+   *
+   * Only applicable if `create_pod_range` is true.
+   *
+   * Set to blank to have a range chosen with the default size.
+   *
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   *
+   * Set to a
+   * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+   *
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   *
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * string pod_ipv4_cidr_block = 6; + * @return The bytes for podIpv4CidrBlock. + */ + com.google.protobuf.ByteString + getPodIpv4CidrBlockBytes(); + + /** + *
+   * Whether nodes have internal IP addresses only.
+   * If enable_private_nodes is not specified, then the value is derived from
+   * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
+   * 
+ * + * optional bool enable_private_nodes = 9; + * @return Whether the enablePrivateNodes field is set. + */ + boolean hasEnablePrivateNodes(); + /** + *
+   * Whether nodes have internal IP addresses only.
+   * If enable_private_nodes is not specified, then the value is derived from
+   * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
+   * 
+ * + * optional bool enable_private_nodes = 9; + * @return The enablePrivateNodes. + */ + boolean getEnablePrivateNodes(); + + /** + *
+   * Network bandwidth tier configuration.
+   * 
+ * + * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; + * @return Whether the networkPerformanceConfig field is set. + */ + boolean hasNetworkPerformanceConfig(); + /** + *
+   * Network bandwidth tier configuration.
+   * 
+ * + * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; + * @return The networkPerformanceConfig. + */ + com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig getNetworkPerformanceConfig(); + /** + *
+   * Network bandwidth tier configuration.
+   * 
+ * + * optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; + */ + com.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfigOrBuilder getNetworkPerformanceConfigOrBuilder(); + + /** + *
+   * [PRIVATE FIELD]
+   * Pod CIDR size overprovisioning config for the nodepool.
+   *
+   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+   * of max_pods_per_node is rounded off to next power of 2 and we then double
+   * that to get the size of pod CIDR block per node.
+   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+   *
+   * This config can disable the doubling of IPs (we still round off to next
+   * power of 2)
+   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+   * overprovisioning is disabled.
+   * 
+ * + * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; + * @return Whether the podCidrOverprovisionConfig field is set. + */ + boolean hasPodCidrOverprovisionConfig(); + /** + *
+   * [PRIVATE FIELD]
+   * Pod CIDR size overprovisioning config for the nodepool.
+   *
+   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+   * of max_pods_per_node is rounded off to next power of 2 and we then double
+   * that to get the size of pod CIDR block per node.
+   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+   *
+   * This config can disable the doubling of IPs (we still round off to next
+   * power of 2)
+   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+   * overprovisioning is disabled.
+   * 
+ * + * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; + * @return The podCidrOverprovisionConfig. + */ + com.google.container.v1.PodCIDROverprovisionConfig getPodCidrOverprovisionConfig(); + /** + *
+   * [PRIVATE FIELD]
+   * Pod CIDR size overprovisioning config for the nodepool.
+   *
+   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+   * of max_pods_per_node is rounded off to next power of 2 and we then double
+   * that to get the size of pod CIDR block per node.
+   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+   *
+   * This config can disable the doubling of IPs (we still round off to next
+   * power of 2)
+   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+   * overprovisioning is disabled.
+   * 
+ * + * .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; + */ + com.google.container.v1.PodCIDROverprovisionConfigOrBuilder getPodCidrOverprovisionConfigOrBuilder(); + + /** + *
+   * We specify the additional node networks for this node pool using this list.
+   * Each node network corresponds to an additional interface
+   * 
+ * + * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + java.util.List + getAdditionalNodeNetworkConfigsList(); + /** + *
+   * We specify the additional node networks for this node pool using this list.
+   * Each node network corresponds to an additional interface
+   * 
+ * + * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + com.google.container.v1.AdditionalNodeNetworkConfig getAdditionalNodeNetworkConfigs(int index); + /** + *
+   * We specify the additional node networks for this node pool using this list.
+   * Each node network corresponds to an additional interface
+   * 
+ * + * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + int getAdditionalNodeNetworkConfigsCount(); + /** + *
+   * We specify the additional node networks for this node pool using this list.
+   * Each node network corresponds to an additional interface
+   * 
+ * + * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + java.util.List + getAdditionalNodeNetworkConfigsOrBuilderList(); + /** + *
+   * We specify the additional node networks for this node pool using this list.
+   * Each node network corresponds to an additional interface
+   * 
+ * + * repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + com.google.container.v1.AdditionalNodeNetworkConfigOrBuilder getAdditionalNodeNetworkConfigsOrBuilder( + int index); + + /** + *
+   * We specify the additional pod networks for this node pool using this list.
+   * Each pod network corresponds to an additional alias IP range for the node
+   * 
+ * + * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + java.util.List + getAdditionalPodNetworkConfigsList(); + /** + *
+   * We specify the additional pod networks for this node pool using this list.
+   * Each pod network corresponds to an additional alias IP range for the node
+   * 
+ * + * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + com.google.container.v1.AdditionalPodNetworkConfig getAdditionalPodNetworkConfigs(int index); + /** + *
+   * We specify the additional pod networks for this node pool using this list.
+   * Each pod network corresponds to an additional alias IP range for the node
+   * 
+ * + * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + int getAdditionalPodNetworkConfigsCount(); + /** + *
+   * We specify the additional pod networks for this node pool using this list.
+   * Each pod network corresponds to an additional alias IP range for the node
+   * 
+ * + * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + java.util.List + getAdditionalPodNetworkConfigsOrBuilderList(); + /** + *
+   * We specify the additional pod networks for this node pool using this list.
+   * Each pod network corresponds to an additional alias IP range for the node
+   * 
+ * + * repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + com.google.container.v1.AdditionalPodNetworkConfigOrBuilder getAdditionalPodNetworkConfigsOrBuilder( + int index); + + /** + *
+   * Output only. [Output only] The utilization of the IPv4 range for the pod.
+   * The ratio is Usage/[Total number of IPs in the secondary range],
+   * Usage=numNodes*numZones*podIPsPerNode.
+   * 
+ * + * double pod_ipv4_range_utilization = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The podIpv4RangeUtilization. + */ + double getPodIpv4RangeUtilization(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePool.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePool.java new file mode 100644 index 000000000000..ade3dc453f80 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePool.java @@ -0,0 +1,10525 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * 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.v1.NodePool} + */ +public final class NodePool extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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.emptyList(); + selfLink_ = ""; + version_ = ""; + instanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + status_ = 0; + statusMessage_ = ""; + conditions_ = java.util.Collections.emptyList(); + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NodePool(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodePool.class, com.google.container.v1.NodePool.Builder.class); + } + + /** + *
+   * The current status of the node pool instance.
+   * 
+ * + * Protobuf enum {@code google.container.v1.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< + Status> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Status findValueByNumber(int number) { + return Status.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.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.v1.NodePool.Status) + } + + public interface UpgradeSettingsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NodePool.UpgradeSettings) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The maximum number of nodes that can be created beyond the current size
+     * of the node pool during the upgrade process.
+     * 
+ * + * int32 max_surge = 1; + * @return The maxSurge. + */ + int getMaxSurge(); + + /** + *
+     * The maximum number of nodes that can be simultaneously unavailable during
+     * the upgrade process. A node is considered available if its status is
+     * Ready.
+     * 
+ * + * int32 max_unavailable = 2; + * @return The maxUnavailable. + */ + int getMaxUnavailable(); + + /** + *
+     * Update strategy of the node pool.
+     * 
+ * + * optional .google.container.v1.NodePoolUpdateStrategy strategy = 3; + * @return Whether the strategy field is set. + */ + boolean hasStrategy(); + /** + *
+     * Update strategy of the node pool.
+     * 
+ * + * optional .google.container.v1.NodePoolUpdateStrategy strategy = 3; + * @return The enum numeric value on the wire for strategy. + */ + int getStrategyValue(); + /** + *
+     * Update strategy of the node pool.
+     * 
+ * + * optional .google.container.v1.NodePoolUpdateStrategy strategy = 3; + * @return The strategy. + */ + com.google.container.v1.NodePoolUpdateStrategy getStrategy(); + + /** + *
+     * Settings for blue-green upgrade strategy.
+     * 
+ * + * optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; + * @return Whether the blueGreenSettings field is set. + */ + boolean hasBlueGreenSettings(); + /** + *
+     * Settings for blue-green upgrade strategy.
+     * 
+ * + * optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; + * @return The blueGreenSettings. + */ + com.google.container.v1.BlueGreenSettings getBlueGreenSettings(); + /** + *
+     * Settings for blue-green upgrade strategy.
+     * 
+ * + * optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; + */ + com.google.container.v1.BlueGreenSettingsOrBuilder getBlueGreenSettingsOrBuilder(); + } + /** + *
+   * 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.
+   *
+   * These upgrade settings configure the upgrade strategy for the node pool.
+   * Use strategy to switch between the strategies applied to the node pool.
+   *
+   * If the strategy is ROLLING, use max_surge and max_unavailable to control
+   * the level of parallelism and the level of disruption caused by upgrade.
+   * 1. 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.
+   * 2. maxUnavailable controls the number of nodes that can be simultaneously
+   * unavailable.
+   * 3. (maxUnavailable + maxSurge) determines the level of parallelism (how
+   * many nodes are being upgraded at the same time).
+   *
+   * If the strategy is BLUE_GREEN, use blue_green_settings to configure the
+   * blue-green upgrade related settings.
+   * 1. standard_rollout_policy is the default policy. The policy is used to
+   * control the way blue pool gets drained. The draining is executed in the
+   * batch mode. The batch size could be specified as either percentage of the
+   * node pool size or the number of nodes. batch_soak_duration is the soak
+   * time after each batch gets drained.
+   * 2. node_pool_soak_duration is the soak time after all blue nodes are
+   * drained. After this period, the blue pool nodes will be deleted.
+   * 
+ * + * Protobuf type {@code google.container.v1.NodePool.UpgradeSettings} + */ + public static final class UpgradeSettings extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.NodePool.UpgradeSettings) + UpgradeSettingsOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpgradeSettings.newBuilder() to construct. + private UpgradeSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpgradeSettings() { + strategy_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UpgradeSettings(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePool_UpgradeSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePool_UpgradeSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodePool.UpgradeSettings.class, com.google.container.v1.NodePool.UpgradeSettings.Builder.class); + } + + private int bitField0_; + public static final int MAX_SURGE_FIELD_NUMBER = 1; + private int maxSurge_ = 0; + /** + *
+     * 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_ = 0; + /** + *
+     * 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_; + } + + public static final int STRATEGY_FIELD_NUMBER = 3; + private int strategy_ = 0; + /** + *
+     * Update strategy of the node pool.
+     * 
+ * + * optional .google.container.v1.NodePoolUpdateStrategy strategy = 3; + * @return Whether the strategy field is set. + */ + @java.lang.Override public boolean hasStrategy() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Update strategy of the node pool.
+     * 
+ * + * optional .google.container.v1.NodePoolUpdateStrategy strategy = 3; + * @return The enum numeric value on the wire for strategy. + */ + @java.lang.Override public int getStrategyValue() { + return strategy_; + } + /** + *
+     * Update strategy of the node pool.
+     * 
+ * + * optional .google.container.v1.NodePoolUpdateStrategy strategy = 3; + * @return The strategy. + */ + @java.lang.Override public com.google.container.v1.NodePoolUpdateStrategy getStrategy() { + com.google.container.v1.NodePoolUpdateStrategy result = com.google.container.v1.NodePoolUpdateStrategy.forNumber(strategy_); + return result == null ? com.google.container.v1.NodePoolUpdateStrategy.UNRECOGNIZED : result; + } + + public static final int BLUE_GREEN_SETTINGS_FIELD_NUMBER = 4; + private com.google.container.v1.BlueGreenSettings blueGreenSettings_; + /** + *
+     * Settings for blue-green upgrade strategy.
+     * 
+ * + * optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; + * @return Whether the blueGreenSettings field is set. + */ + @java.lang.Override + public boolean hasBlueGreenSettings() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Settings for blue-green upgrade strategy.
+     * 
+ * + * optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; + * @return The blueGreenSettings. + */ + @java.lang.Override + public com.google.container.v1.BlueGreenSettings getBlueGreenSettings() { + return blueGreenSettings_ == null ? com.google.container.v1.BlueGreenSettings.getDefaultInstance() : blueGreenSettings_; + } + /** + *
+     * Settings for blue-green upgrade strategy.
+     * 
+ * + * optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; + */ + @java.lang.Override + public com.google.container.v1.BlueGreenSettingsOrBuilder getBlueGreenSettingsOrBuilder() { + return blueGreenSettings_ == null ? com.google.container.v1.BlueGreenSettings.getDefaultInstance() : blueGreenSettings_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(3, strategy_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getBlueGreenSettings()); + } + getUnknownFields().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_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, strategy_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getBlueGreenSettings()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.NodePool.UpgradeSettings)) { + return super.equals(obj); + } + com.google.container.v1.NodePool.UpgradeSettings other = (com.google.container.v1.NodePool.UpgradeSettings) obj; + + if (getMaxSurge() + != other.getMaxSurge()) return false; + if (getMaxUnavailable() + != other.getMaxUnavailable()) return false; + if (hasStrategy() != other.hasStrategy()) return false; + if (hasStrategy()) { + if (strategy_ != other.strategy_) return false; + } + if (hasBlueGreenSettings() != other.hasBlueGreenSettings()) return false; + if (hasBlueGreenSettings()) { + if (!getBlueGreenSettings() + .equals(other.getBlueGreenSettings())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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(); + if (hasStrategy()) { + hash = (37 * hash) + STRATEGY_FIELD_NUMBER; + hash = (53 * hash) + strategy_; + } + if (hasBlueGreenSettings()) { + hash = (37 * hash) + BLUE_GREEN_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getBlueGreenSettings().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodePool.UpgradeSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodePool.UpgradeSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.NodePool.UpgradeSettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.NodePool.UpgradeSettings parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.NodePool.UpgradeSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * These upgrade settings control the level of parallelism and the level of
+     * disruption caused by an upgrade.
+     *
+     * maxUnavailable controls the number of nodes that can be simultaneously
+     * unavailable.
+     *
+     * maxSurge controls the number of additional nodes that can be added to the
+     * node pool temporarily for the time of the upgrade to increase the number of
+     * available nodes.
+     *
+     * (maxUnavailable + maxSurge) determines the level of parallelism (how many
+     * nodes are being upgraded at the same time).
+     *
+     * Note: upgrades inevitably introduce some disruption since workloads need to
+     * be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
+     * this holds true. (Disruption stays within the limits of
+     * PodDisruptionBudget, if it is configured.)
+     *
+     * Consider a hypothetical node pool with 5 nodes having maxSurge=2,
+     * maxUnavailable=1. This means the upgrade process upgrades 3 nodes
+     * simultaneously. It creates 2 additional (upgraded) nodes, then it brings
+     * down 3 old (not yet upgraded) nodes at the same time. This ensures that
+     * there are always at least 4 nodes available.
+     *
+     * These upgrade settings configure the upgrade strategy for the node pool.
+     * Use strategy to switch between the strategies applied to the node pool.
+     *
+     * If the strategy is ROLLING, use max_surge and max_unavailable to control
+     * the level of parallelism and the level of disruption caused by upgrade.
+     * 1. 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.
+     * 2. maxUnavailable controls the number of nodes that can be simultaneously
+     * unavailable.
+     * 3. (maxUnavailable + maxSurge) determines the level of parallelism (how
+     * many nodes are being upgraded at the same time).
+     *
+     * If the strategy is BLUE_GREEN, use blue_green_settings to configure the
+     * blue-green upgrade related settings.
+     * 1. standard_rollout_policy is the default policy. The policy is used to
+     * control the way blue pool gets drained. The draining is executed in the
+     * batch mode. The batch size could be specified as either percentage of the
+     * node pool size or the number of nodes. batch_soak_duration is the soak
+     * time after each batch gets drained.
+     * 2. node_pool_soak_duration is the soak time after all blue nodes are
+     * drained. After this period, the blue pool nodes will be deleted.
+     * 
+ * + * Protobuf type {@code google.container.v1.NodePool.UpgradeSettings} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.NodePool.UpgradeSettings) + com.google.container.v1.NodePool.UpgradeSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePool_UpgradeSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePool_UpgradeSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodePool.UpgradeSettings.class, com.google.container.v1.NodePool.UpgradeSettings.Builder.class); + } + + // Construct using com.google.container.v1.NodePool.UpgradeSettings.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getBlueGreenSettingsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + maxSurge_ = 0; + maxUnavailable_ = 0; + strategy_ = 0; + blueGreenSettings_ = null; + if (blueGreenSettingsBuilder_ != null) { + blueGreenSettingsBuilder_.dispose(); + blueGreenSettingsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePool_UpgradeSettings_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NodePool.UpgradeSettings getDefaultInstanceForType() { + return com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NodePool.UpgradeSettings build() { + com.google.container.v1.NodePool.UpgradeSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NodePool.UpgradeSettings buildPartial() { + com.google.container.v1.NodePool.UpgradeSettings result = new com.google.container.v1.NodePool.UpgradeSettings(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.NodePool.UpgradeSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.maxSurge_ = maxSurge_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxUnavailable_ = maxUnavailable_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.strategy_ = strategy_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.blueGreenSettings_ = blueGreenSettingsBuilder_ == null + ? blueGreenSettings_ + : blueGreenSettingsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.NodePool.UpgradeSettings) { + return mergeFrom((com.google.container.v1.NodePool.UpgradeSettings)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NodePool.UpgradeSettings other) { + if (other == com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance()) return this; + if (other.getMaxSurge() != 0) { + setMaxSurge(other.getMaxSurge()); + } + if (other.getMaxUnavailable() != 0) { + setMaxUnavailable(other.getMaxUnavailable()); + } + if (other.hasStrategy()) { + setStrategy(other.getStrategy()); + } + if (other.hasBlueGreenSettings()) { + mergeBlueGreenSettings(other.getBlueGreenSettings()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + maxSurge_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + maxUnavailable_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + strategy_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + input.readMessage( + getBlueGreenSettingsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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() { + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000002; + 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() { + bitField0_ = (bitField0_ & ~0x00000002); + maxUnavailable_ = 0; + onChanged(); + return this; + } + + private int strategy_ = 0; + /** + *
+       * Update strategy of the node pool.
+       * 
+ * + * optional .google.container.v1.NodePoolUpdateStrategy strategy = 3; + * @return Whether the strategy field is set. + */ + @java.lang.Override public boolean hasStrategy() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+       * Update strategy of the node pool.
+       * 
+ * + * optional .google.container.v1.NodePoolUpdateStrategy strategy = 3; + * @return The enum numeric value on the wire for strategy. + */ + @java.lang.Override public int getStrategyValue() { + return strategy_; + } + /** + *
+       * Update strategy of the node pool.
+       * 
+ * + * optional .google.container.v1.NodePoolUpdateStrategy strategy = 3; + * @param value The enum numeric value on the wire for strategy to set. + * @return This builder for chaining. + */ + public Builder setStrategyValue(int value) { + strategy_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Update strategy of the node pool.
+       * 
+ * + * optional .google.container.v1.NodePoolUpdateStrategy strategy = 3; + * @return The strategy. + */ + @java.lang.Override + public com.google.container.v1.NodePoolUpdateStrategy getStrategy() { + com.google.container.v1.NodePoolUpdateStrategy result = com.google.container.v1.NodePoolUpdateStrategy.forNumber(strategy_); + return result == null ? com.google.container.v1.NodePoolUpdateStrategy.UNRECOGNIZED : result; + } + /** + *
+       * Update strategy of the node pool.
+       * 
+ * + * optional .google.container.v1.NodePoolUpdateStrategy strategy = 3; + * @param value The strategy to set. + * @return This builder for chaining. + */ + public Builder setStrategy(com.google.container.v1.NodePoolUpdateStrategy value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + strategy_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Update strategy of the node pool.
+       * 
+ * + * optional .google.container.v1.NodePoolUpdateStrategy strategy = 3; + * @return This builder for chaining. + */ + public Builder clearStrategy() { + bitField0_ = (bitField0_ & ~0x00000004); + strategy_ = 0; + onChanged(); + return this; + } + + private com.google.container.v1.BlueGreenSettings blueGreenSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.BlueGreenSettings, com.google.container.v1.BlueGreenSettings.Builder, com.google.container.v1.BlueGreenSettingsOrBuilder> blueGreenSettingsBuilder_; + /** + *
+       * Settings for blue-green upgrade strategy.
+       * 
+ * + * optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; + * @return Whether the blueGreenSettings field is set. + */ + public boolean hasBlueGreenSettings() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+       * Settings for blue-green upgrade strategy.
+       * 
+ * + * optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; + * @return The blueGreenSettings. + */ + public com.google.container.v1.BlueGreenSettings getBlueGreenSettings() { + if (blueGreenSettingsBuilder_ == null) { + return blueGreenSettings_ == null ? com.google.container.v1.BlueGreenSettings.getDefaultInstance() : blueGreenSettings_; + } else { + return blueGreenSettingsBuilder_.getMessage(); + } + } + /** + *
+       * Settings for blue-green upgrade strategy.
+       * 
+ * + * optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; + */ + public Builder setBlueGreenSettings(com.google.container.v1.BlueGreenSettings value) { + if (blueGreenSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + blueGreenSettings_ = value; + } else { + blueGreenSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * Settings for blue-green upgrade strategy.
+       * 
+ * + * optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; + */ + public Builder setBlueGreenSettings( + com.google.container.v1.BlueGreenSettings.Builder builderForValue) { + if (blueGreenSettingsBuilder_ == null) { + blueGreenSettings_ = builderForValue.build(); + } else { + blueGreenSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * Settings for blue-green upgrade strategy.
+       * 
+ * + * optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; + */ + public Builder mergeBlueGreenSettings(com.google.container.v1.BlueGreenSettings value) { + if (blueGreenSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + blueGreenSettings_ != null && + blueGreenSettings_ != com.google.container.v1.BlueGreenSettings.getDefaultInstance()) { + getBlueGreenSettingsBuilder().mergeFrom(value); + } else { + blueGreenSettings_ = value; + } + } else { + blueGreenSettingsBuilder_.mergeFrom(value); + } + if (blueGreenSettings_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + *
+       * Settings for blue-green upgrade strategy.
+       * 
+ * + * optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; + */ + public Builder clearBlueGreenSettings() { + bitField0_ = (bitField0_ & ~0x00000008); + blueGreenSettings_ = null; + if (blueGreenSettingsBuilder_ != null) { + blueGreenSettingsBuilder_.dispose(); + blueGreenSettingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Settings for blue-green upgrade strategy.
+       * 
+ * + * optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; + */ + public com.google.container.v1.BlueGreenSettings.Builder getBlueGreenSettingsBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getBlueGreenSettingsFieldBuilder().getBuilder(); + } + /** + *
+       * Settings for blue-green upgrade strategy.
+       * 
+ * + * optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; + */ + public com.google.container.v1.BlueGreenSettingsOrBuilder getBlueGreenSettingsOrBuilder() { + if (blueGreenSettingsBuilder_ != null) { + return blueGreenSettingsBuilder_.getMessageOrBuilder(); + } else { + return blueGreenSettings_ == null ? + com.google.container.v1.BlueGreenSettings.getDefaultInstance() : blueGreenSettings_; + } + } + /** + *
+       * Settings for blue-green upgrade strategy.
+       * 
+ * + * optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.BlueGreenSettings, com.google.container.v1.BlueGreenSettings.Builder, com.google.container.v1.BlueGreenSettingsOrBuilder> + getBlueGreenSettingsFieldBuilder() { + if (blueGreenSettingsBuilder_ == null) { + blueGreenSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.BlueGreenSettings, com.google.container.v1.BlueGreenSettings.Builder, com.google.container.v1.BlueGreenSettingsOrBuilder>( + getBlueGreenSettings(), + getParentForChildren(), + isClean()); + blueGreenSettings_ = null; + } + return blueGreenSettingsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.NodePool.UpgradeSettings) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.NodePool.UpgradeSettings) + private static final com.google.container.v1.NodePool.UpgradeSettings DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.NodePool.UpgradeSettings(); + } + + public static com.google.container.v1.NodePool.UpgradeSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpgradeSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.NodePool.UpgradeSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpdateInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NodePool.UpdateInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Information of a blue-green upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; + * @return Whether the blueGreenInfo field is set. + */ + boolean hasBlueGreenInfo(); + /** + *
+     * Information of a blue-green upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; + * @return The blueGreenInfo. + */ + com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo getBlueGreenInfo(); + /** + *
+     * Information of a blue-green upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; + */ + com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfoOrBuilder getBlueGreenInfoOrBuilder(); + } + /** + *
+   * UpdateInfo contains resource (instance groups, etc), status and other
+   * intermediate information relevant to a node pool upgrade.
+   * 
+ * + * Protobuf type {@code google.container.v1.NodePool.UpdateInfo} + */ + public static final class UpdateInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.NodePool.UpdateInfo) + UpdateInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateInfo.newBuilder() to construct. + private UpdateInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateInfo() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UpdateInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePool_UpdateInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePool_UpdateInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodePool.UpdateInfo.class, com.google.container.v1.NodePool.UpdateInfo.Builder.class); + } + + public interface BlueGreenInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NodePool.UpdateInfo.BlueGreenInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * Current blue-green upgrade phase.
+       * 
+ * + * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; + * @return The enum numeric value on the wire for phase. + */ + int getPhaseValue(); + /** + *
+       * Current blue-green upgrade phase.
+       * 
+ * + * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; + * @return The phase. + */ + com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase getPhase(); + + /** + *
+       * The resource URLs of the [managed instance groups]
+       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+       * associated with blue pool.
+       * 
+ * + * repeated string blue_instance_group_urls = 2; + * @return A list containing the blueInstanceGroupUrls. + */ + java.util.List + getBlueInstanceGroupUrlsList(); + /** + *
+       * The resource URLs of the [managed instance groups]
+       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+       * associated with blue pool.
+       * 
+ * + * repeated string blue_instance_group_urls = 2; + * @return The count of blueInstanceGroupUrls. + */ + int getBlueInstanceGroupUrlsCount(); + /** + *
+       * The resource URLs of the [managed instance groups]
+       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+       * associated with blue pool.
+       * 
+ * + * repeated string blue_instance_group_urls = 2; + * @param index The index of the element to return. + * @return The blueInstanceGroupUrls at the given index. + */ + java.lang.String getBlueInstanceGroupUrls(int index); + /** + *
+       * The resource URLs of the [managed instance groups]
+       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+       * associated with blue pool.
+       * 
+ * + * repeated string blue_instance_group_urls = 2; + * @param index The index of the value to return. + * @return The bytes of the blueInstanceGroupUrls at the given index. + */ + com.google.protobuf.ByteString + getBlueInstanceGroupUrlsBytes(int index); + + /** + *
+       * The resource URLs of the [managed instance groups]
+       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+       * associated with green pool.
+       * 
+ * + * repeated string green_instance_group_urls = 3; + * @return A list containing the greenInstanceGroupUrls. + */ + java.util.List + getGreenInstanceGroupUrlsList(); + /** + *
+       * The resource URLs of the [managed instance groups]
+       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+       * associated with green pool.
+       * 
+ * + * repeated string green_instance_group_urls = 3; + * @return The count of greenInstanceGroupUrls. + */ + int getGreenInstanceGroupUrlsCount(); + /** + *
+       * The resource URLs of the [managed instance groups]
+       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+       * associated with green pool.
+       * 
+ * + * repeated string green_instance_group_urls = 3; + * @param index The index of the element to return. + * @return The greenInstanceGroupUrls at the given index. + */ + java.lang.String getGreenInstanceGroupUrls(int index); + /** + *
+       * The resource URLs of the [managed instance groups]
+       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+       * associated with green pool.
+       * 
+ * + * repeated string green_instance_group_urls = 3; + * @param index The index of the value to return. + * @return The bytes of the greenInstanceGroupUrls at the given index. + */ + com.google.protobuf.ByteString + getGreenInstanceGroupUrlsBytes(int index); + + /** + *
+       * Time to start deleting blue pool to complete blue-green upgrade,
+       * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+       * 
+ * + * string blue_pool_deletion_start_time = 4; + * @return The bluePoolDeletionStartTime. + */ + java.lang.String getBluePoolDeletionStartTime(); + /** + *
+       * Time to start deleting blue pool to complete blue-green upgrade,
+       * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+       * 
+ * + * string blue_pool_deletion_start_time = 4; + * @return The bytes for bluePoolDeletionStartTime. + */ + com.google.protobuf.ByteString + getBluePoolDeletionStartTimeBytes(); + + /** + *
+       * Version of green pool.
+       * 
+ * + * string green_pool_version = 5; + * @return The greenPoolVersion. + */ + java.lang.String getGreenPoolVersion(); + /** + *
+       * Version of green pool.
+       * 
+ * + * string green_pool_version = 5; + * @return The bytes for greenPoolVersion. + */ + com.google.protobuf.ByteString + getGreenPoolVersionBytes(); + } + /** + *
+     * Information relevant to blue-green upgrade.
+     * 
+ * + * Protobuf type {@code google.container.v1.NodePool.UpdateInfo.BlueGreenInfo} + */ + public static final class BlueGreenInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.NodePool.UpdateInfo.BlueGreenInfo) + BlueGreenInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use BlueGreenInfo.newBuilder() to construct. + private BlueGreenInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BlueGreenInfo() { + phase_ = 0; + blueInstanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + greenInstanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bluePoolDeletionStartTime_ = ""; + greenPoolVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BlueGreenInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePool_UpdateInfo_BlueGreenInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePool_UpdateInfo_BlueGreenInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.class, com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Builder.class); + } + + /** + *
+       * Phase represents the different stages blue-green upgrade is running in.
+       * 
+ * + * Protobuf enum {@code google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase} + */ + public enum Phase + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+         * Unspecified phase.
+         * 
+ * + * PHASE_UNSPECIFIED = 0; + */ + PHASE_UNSPECIFIED(0), + /** + *
+         * blue-green upgrade has been initiated.
+         * 
+ * + * UPDATE_STARTED = 1; + */ + UPDATE_STARTED(1), + /** + *
+         * Start creating green pool nodes.
+         * 
+ * + * CREATING_GREEN_POOL = 2; + */ + CREATING_GREEN_POOL(2), + /** + *
+         * Start cordoning blue pool nodes.
+         * 
+ * + * CORDONING_BLUE_POOL = 3; + */ + CORDONING_BLUE_POOL(3), + /** + *
+         * Start draining blue pool nodes.
+         * 
+ * + * DRAINING_BLUE_POOL = 4; + */ + DRAINING_BLUE_POOL(4), + /** + *
+         * Start soaking time after draining entire blue pool.
+         * 
+ * + * NODE_POOL_SOAKING = 5; + */ + NODE_POOL_SOAKING(5), + /** + *
+         * Start deleting blue nodes.
+         * 
+ * + * DELETING_BLUE_POOL = 6; + */ + DELETING_BLUE_POOL(6), + /** + *
+         * Rollback has been initiated.
+         * 
+ * + * ROLLBACK_STARTED = 7; + */ + ROLLBACK_STARTED(7), + UNRECOGNIZED(-1), + ; + + /** + *
+         * Unspecified phase.
+         * 
+ * + * PHASE_UNSPECIFIED = 0; + */ + public static final int PHASE_UNSPECIFIED_VALUE = 0; + /** + *
+         * blue-green upgrade has been initiated.
+         * 
+ * + * UPDATE_STARTED = 1; + */ + public static final int UPDATE_STARTED_VALUE = 1; + /** + *
+         * Start creating green pool nodes.
+         * 
+ * + * CREATING_GREEN_POOL = 2; + */ + public static final int CREATING_GREEN_POOL_VALUE = 2; + /** + *
+         * Start cordoning blue pool nodes.
+         * 
+ * + * CORDONING_BLUE_POOL = 3; + */ + public static final int CORDONING_BLUE_POOL_VALUE = 3; + /** + *
+         * Start draining blue pool nodes.
+         * 
+ * + * DRAINING_BLUE_POOL = 4; + */ + public static final int DRAINING_BLUE_POOL_VALUE = 4; + /** + *
+         * Start soaking time after draining entire blue pool.
+         * 
+ * + * NODE_POOL_SOAKING = 5; + */ + public static final int NODE_POOL_SOAKING_VALUE = 5; + /** + *
+         * Start deleting blue nodes.
+         * 
+ * + * DELETING_BLUE_POOL = 6; + */ + public static final int DELETING_BLUE_POOL_VALUE = 6; + /** + *
+         * Rollback has been initiated.
+         * 
+ * + * ROLLBACK_STARTED = 7; + */ + public static final int ROLLBACK_STARTED_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 Phase 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 Phase forNumber(int value) { + switch (value) { + case 0: return PHASE_UNSPECIFIED; + case 1: return UPDATE_STARTED; + case 2: return CREATING_GREEN_POOL; + case 3: return CORDONING_BLUE_POOL; + case 4: return DRAINING_BLUE_POOL; + case 5: return NODE_POOL_SOAKING; + case 6: return DELETING_BLUE_POOL; + case 7: return ROLLBACK_STARTED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Phase> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Phase findValueByNumber(int number) { + return Phase.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.getDescriptor().getEnumTypes().get(0); + } + + private static final Phase[] VALUES = values(); + + public static Phase 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 Phase(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase) + } + + public static final int PHASE_FIELD_NUMBER = 1; + private int phase_ = 0; + /** + *
+       * Current blue-green upgrade phase.
+       * 
+ * + * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; + * @return The enum numeric value on the wire for phase. + */ + @java.lang.Override public int getPhaseValue() { + return phase_; + } + /** + *
+       * Current blue-green upgrade phase.
+       * 
+ * + * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; + * @return The phase. + */ + @java.lang.Override public com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase getPhase() { + com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase result = com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase.forNumber(phase_); + return result == null ? com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase.UNRECOGNIZED : result; + } + + public static final int BLUE_INSTANCE_GROUP_URLS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList blueInstanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+       * The resource URLs of the [managed instance groups]
+       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+       * associated with blue pool.
+       * 
+ * + * repeated string blue_instance_group_urls = 2; + * @return A list containing the blueInstanceGroupUrls. + */ + public com.google.protobuf.ProtocolStringList + getBlueInstanceGroupUrlsList() { + return blueInstanceGroupUrls_; + } + /** + *
+       * The resource URLs of the [managed instance groups]
+       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+       * associated with blue pool.
+       * 
+ * + * repeated string blue_instance_group_urls = 2; + * @return The count of blueInstanceGroupUrls. + */ + public int getBlueInstanceGroupUrlsCount() { + return blueInstanceGroupUrls_.size(); + } + /** + *
+       * The resource URLs of the [managed instance groups]
+       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+       * associated with blue pool.
+       * 
+ * + * repeated string blue_instance_group_urls = 2; + * @param index The index of the element to return. + * @return The blueInstanceGroupUrls at the given index. + */ + public java.lang.String getBlueInstanceGroupUrls(int index) { + return blueInstanceGroupUrls_.get(index); + } + /** + *
+       * The resource URLs of the [managed instance groups]
+       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+       * associated with blue pool.
+       * 
+ * + * repeated string blue_instance_group_urls = 2; + * @param index The index of the value to return. + * @return The bytes of the blueInstanceGroupUrls at the given index. + */ + public com.google.protobuf.ByteString + getBlueInstanceGroupUrlsBytes(int index) { + return blueInstanceGroupUrls_.getByteString(index); + } + + public static final int GREEN_INSTANCE_GROUP_URLS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList greenInstanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+       * The resource URLs of the [managed instance groups]
+       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+       * associated with green pool.
+       * 
+ * + * repeated string green_instance_group_urls = 3; + * @return A list containing the greenInstanceGroupUrls. + */ + public com.google.protobuf.ProtocolStringList + getGreenInstanceGroupUrlsList() { + return greenInstanceGroupUrls_; + } + /** + *
+       * The resource URLs of the [managed instance groups]
+       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+       * associated with green pool.
+       * 
+ * + * repeated string green_instance_group_urls = 3; + * @return The count of greenInstanceGroupUrls. + */ + public int getGreenInstanceGroupUrlsCount() { + return greenInstanceGroupUrls_.size(); + } + /** + *
+       * The resource URLs of the [managed instance groups]
+       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+       * associated with green pool.
+       * 
+ * + * repeated string green_instance_group_urls = 3; + * @param index The index of the element to return. + * @return The greenInstanceGroupUrls at the given index. + */ + public java.lang.String getGreenInstanceGroupUrls(int index) { + return greenInstanceGroupUrls_.get(index); + } + /** + *
+       * The resource URLs of the [managed instance groups]
+       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+       * associated with green pool.
+       * 
+ * + * repeated string green_instance_group_urls = 3; + * @param index The index of the value to return. + * @return The bytes of the greenInstanceGroupUrls at the given index. + */ + public com.google.protobuf.ByteString + getGreenInstanceGroupUrlsBytes(int index) { + return greenInstanceGroupUrls_.getByteString(index); + } + + public static final int BLUE_POOL_DELETION_START_TIME_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object bluePoolDeletionStartTime_ = ""; + /** + *
+       * Time to start deleting blue pool to complete blue-green upgrade,
+       * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+       * 
+ * + * string blue_pool_deletion_start_time = 4; + * @return The bluePoolDeletionStartTime. + */ + @java.lang.Override + public java.lang.String getBluePoolDeletionStartTime() { + java.lang.Object ref = bluePoolDeletionStartTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bluePoolDeletionStartTime_ = s; + return s; + } + } + /** + *
+       * Time to start deleting blue pool to complete blue-green upgrade,
+       * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+       * 
+ * + * string blue_pool_deletion_start_time = 4; + * @return The bytes for bluePoolDeletionStartTime. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBluePoolDeletionStartTimeBytes() { + java.lang.Object ref = bluePoolDeletionStartTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bluePoolDeletionStartTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GREEN_POOL_VERSION_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object greenPoolVersion_ = ""; + /** + *
+       * Version of green pool.
+       * 
+ * + * string green_pool_version = 5; + * @return The greenPoolVersion. + */ + @java.lang.Override + public java.lang.String getGreenPoolVersion() { + java.lang.Object ref = greenPoolVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + greenPoolVersion_ = s; + return s; + } + } + /** + *
+       * Version of green pool.
+       * 
+ * + * string green_pool_version = 5; + * @return The bytes for greenPoolVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getGreenPoolVersionBytes() { + java.lang.Object ref = greenPoolVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + greenPoolVersion_ = 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 (phase_ != com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase.PHASE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, phase_); + } + for (int i = 0; i < blueInstanceGroupUrls_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, blueInstanceGroupUrls_.getRaw(i)); + } + for (int i = 0; i < greenInstanceGroupUrls_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, greenInstanceGroupUrls_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bluePoolDeletionStartTime_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, bluePoolDeletionStartTime_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(greenPoolVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, greenPoolVersion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (phase_ != com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase.PHASE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, phase_); + } + { + int dataSize = 0; + for (int i = 0; i < blueInstanceGroupUrls_.size(); i++) { + dataSize += computeStringSizeNoTag(blueInstanceGroupUrls_.getRaw(i)); + } + size += dataSize; + size += 1 * getBlueInstanceGroupUrlsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < greenInstanceGroupUrls_.size(); i++) { + dataSize += computeStringSizeNoTag(greenInstanceGroupUrls_.getRaw(i)); + } + size += dataSize; + size += 1 * getGreenInstanceGroupUrlsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bluePoolDeletionStartTime_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, bluePoolDeletionStartTime_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(greenPoolVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, greenPoolVersion_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo)) { + return super.equals(obj); + } + com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo other = (com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo) obj; + + if (phase_ != other.phase_) return false; + if (!getBlueInstanceGroupUrlsList() + .equals(other.getBlueInstanceGroupUrlsList())) return false; + if (!getGreenInstanceGroupUrlsList() + .equals(other.getGreenInstanceGroupUrlsList())) return false; + if (!getBluePoolDeletionStartTime() + .equals(other.getBluePoolDeletionStartTime())) return false; + if (!getGreenPoolVersion() + .equals(other.getGreenPoolVersion())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + PHASE_FIELD_NUMBER; + hash = (53 * hash) + phase_; + if (getBlueInstanceGroupUrlsCount() > 0) { + hash = (37 * hash) + BLUE_INSTANCE_GROUP_URLS_FIELD_NUMBER; + hash = (53 * hash) + getBlueInstanceGroupUrlsList().hashCode(); + } + if (getGreenInstanceGroupUrlsCount() > 0) { + hash = (37 * hash) + GREEN_INSTANCE_GROUP_URLS_FIELD_NUMBER; + hash = (53 * hash) + getGreenInstanceGroupUrlsList().hashCode(); + } + hash = (37 * hash) + BLUE_POOL_DELETION_START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getBluePoolDeletionStartTime().hashCode(); + hash = (37 * hash) + GREEN_POOL_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getGreenPoolVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new 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 relevant to blue-green upgrade.
+       * 
+ * + * Protobuf type {@code google.container.v1.NodePool.UpdateInfo.BlueGreenInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.NodePool.UpdateInfo.BlueGreenInfo) + com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePool_UpdateInfo_BlueGreenInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePool_UpdateInfo_BlueGreenInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.class, com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Builder.class); + } + + // Construct using com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + phase_ = 0; + blueInstanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + greenInstanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bluePoolDeletionStartTime_ = ""; + greenPoolVersion_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePool_UpdateInfo_BlueGreenInfo_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo getDefaultInstanceForType() { + return com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo build() { + com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo buildPartial() { + com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo result = new com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.phase_ = phase_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + blueInstanceGroupUrls_.makeImmutable(); + result.blueInstanceGroupUrls_ = blueInstanceGroupUrls_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + greenInstanceGroupUrls_.makeImmutable(); + result.greenInstanceGroupUrls_ = greenInstanceGroupUrls_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.bluePoolDeletionStartTime_ = bluePoolDeletionStartTime_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.greenPoolVersion_ = greenPoolVersion_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo) { + return mergeFrom((com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo other) { + if (other == com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.getDefaultInstance()) return this; + if (other.phase_ != 0) { + setPhaseValue(other.getPhaseValue()); + } + if (!other.blueInstanceGroupUrls_.isEmpty()) { + if (blueInstanceGroupUrls_.isEmpty()) { + blueInstanceGroupUrls_ = other.blueInstanceGroupUrls_; + bitField0_ |= 0x00000002; + } else { + ensureBlueInstanceGroupUrlsIsMutable(); + blueInstanceGroupUrls_.addAll(other.blueInstanceGroupUrls_); + } + onChanged(); + } + if (!other.greenInstanceGroupUrls_.isEmpty()) { + if (greenInstanceGroupUrls_.isEmpty()) { + greenInstanceGroupUrls_ = other.greenInstanceGroupUrls_; + bitField0_ |= 0x00000004; + } else { + ensureGreenInstanceGroupUrlsIsMutable(); + greenInstanceGroupUrls_.addAll(other.greenInstanceGroupUrls_); + } + onChanged(); + } + if (!other.getBluePoolDeletionStartTime().isEmpty()) { + bluePoolDeletionStartTime_ = other.bluePoolDeletionStartTime_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getGreenPoolVersion().isEmpty()) { + greenPoolVersion_ = other.greenPoolVersion_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + phase_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureBlueInstanceGroupUrlsIsMutable(); + blueInstanceGroupUrls_.add(s); + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureGreenInstanceGroupUrlsIsMutable(); + greenInstanceGroupUrls_.add(s); + break; + } // case 26 + case 34: { + bluePoolDeletionStartTime_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + greenPoolVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int phase_ = 0; + /** + *
+         * Current blue-green upgrade phase.
+         * 
+ * + * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; + * @return The enum numeric value on the wire for phase. + */ + @java.lang.Override public int getPhaseValue() { + return phase_; + } + /** + *
+         * Current blue-green upgrade phase.
+         * 
+ * + * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; + * @param value The enum numeric value on the wire for phase to set. + * @return This builder for chaining. + */ + public Builder setPhaseValue(int value) { + phase_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * Current blue-green upgrade phase.
+         * 
+ * + * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; + * @return The phase. + */ + @java.lang.Override + public com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase getPhase() { + com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase result = com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase.forNumber(phase_); + return result == null ? com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase.UNRECOGNIZED : result; + } + /** + *
+         * Current blue-green upgrade phase.
+         * 
+ * + * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; + * @param value The phase to set. + * @return This builder for chaining. + */ + public Builder setPhase(com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + phase_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+         * Current blue-green upgrade phase.
+         * 
+ * + * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; + * @return This builder for chaining. + */ + public Builder clearPhase() { + bitField0_ = (bitField0_ & ~0x00000001); + phase_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList blueInstanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureBlueInstanceGroupUrlsIsMutable() { + if (!blueInstanceGroupUrls_.isModifiable()) { + blueInstanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(blueInstanceGroupUrls_); + } + bitField0_ |= 0x00000002; + } + /** + *
+         * The resource URLs of the [managed instance groups]
+         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+         * associated with blue pool.
+         * 
+ * + * repeated string blue_instance_group_urls = 2; + * @return A list containing the blueInstanceGroupUrls. + */ + public com.google.protobuf.ProtocolStringList + getBlueInstanceGroupUrlsList() { + blueInstanceGroupUrls_.makeImmutable(); + return blueInstanceGroupUrls_; + } + /** + *
+         * The resource URLs of the [managed instance groups]
+         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+         * associated with blue pool.
+         * 
+ * + * repeated string blue_instance_group_urls = 2; + * @return The count of blueInstanceGroupUrls. + */ + public int getBlueInstanceGroupUrlsCount() { + return blueInstanceGroupUrls_.size(); + } + /** + *
+         * The resource URLs of the [managed instance groups]
+         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+         * associated with blue pool.
+         * 
+ * + * repeated string blue_instance_group_urls = 2; + * @param index The index of the element to return. + * @return The blueInstanceGroupUrls at the given index. + */ + public java.lang.String getBlueInstanceGroupUrls(int index) { + return blueInstanceGroupUrls_.get(index); + } + /** + *
+         * The resource URLs of the [managed instance groups]
+         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+         * associated with blue pool.
+         * 
+ * + * repeated string blue_instance_group_urls = 2; + * @param index The index of the value to return. + * @return The bytes of the blueInstanceGroupUrls at the given index. + */ + public com.google.protobuf.ByteString + getBlueInstanceGroupUrlsBytes(int index) { + return blueInstanceGroupUrls_.getByteString(index); + } + /** + *
+         * The resource URLs of the [managed instance groups]
+         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+         * associated with blue pool.
+         * 
+ * + * repeated string blue_instance_group_urls = 2; + * @param index The index to set the value at. + * @param value The blueInstanceGroupUrls to set. + * @return This builder for chaining. + */ + public Builder setBlueInstanceGroupUrls( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureBlueInstanceGroupUrlsIsMutable(); + blueInstanceGroupUrls_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+         * The resource URLs of the [managed instance groups]
+         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+         * associated with blue pool.
+         * 
+ * + * repeated string blue_instance_group_urls = 2; + * @param value The blueInstanceGroupUrls to add. + * @return This builder for chaining. + */ + public Builder addBlueInstanceGroupUrls( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureBlueInstanceGroupUrlsIsMutable(); + blueInstanceGroupUrls_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+         * The resource URLs of the [managed instance groups]
+         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+         * associated with blue pool.
+         * 
+ * + * repeated string blue_instance_group_urls = 2; + * @param values The blueInstanceGroupUrls to add. + * @return This builder for chaining. + */ + public Builder addAllBlueInstanceGroupUrls( + java.lang.Iterable values) { + ensureBlueInstanceGroupUrlsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, blueInstanceGroupUrls_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+         * The resource URLs of the [managed instance groups]
+         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+         * associated with blue pool.
+         * 
+ * + * repeated string blue_instance_group_urls = 2; + * @return This builder for chaining. + */ + public Builder clearBlueInstanceGroupUrls() { + blueInstanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; + onChanged(); + return this; + } + /** + *
+         * The resource URLs of the [managed instance groups]
+         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+         * associated with blue pool.
+         * 
+ * + * repeated string blue_instance_group_urls = 2; + * @param value The bytes of the blueInstanceGroupUrls to add. + * @return This builder for chaining. + */ + public Builder addBlueInstanceGroupUrlsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureBlueInstanceGroupUrlsIsMutable(); + blueInstanceGroupUrls_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList greenInstanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureGreenInstanceGroupUrlsIsMutable() { + if (!greenInstanceGroupUrls_.isModifiable()) { + greenInstanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(greenInstanceGroupUrls_); + } + bitField0_ |= 0x00000004; + } + /** + *
+         * The resource URLs of the [managed instance groups]
+         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+         * associated with green pool.
+         * 
+ * + * repeated string green_instance_group_urls = 3; + * @return A list containing the greenInstanceGroupUrls. + */ + public com.google.protobuf.ProtocolStringList + getGreenInstanceGroupUrlsList() { + greenInstanceGroupUrls_.makeImmutable(); + return greenInstanceGroupUrls_; + } + /** + *
+         * The resource URLs of the [managed instance groups]
+         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+         * associated with green pool.
+         * 
+ * + * repeated string green_instance_group_urls = 3; + * @return The count of greenInstanceGroupUrls. + */ + public int getGreenInstanceGroupUrlsCount() { + return greenInstanceGroupUrls_.size(); + } + /** + *
+         * The resource URLs of the [managed instance groups]
+         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+         * associated with green pool.
+         * 
+ * + * repeated string green_instance_group_urls = 3; + * @param index The index of the element to return. + * @return The greenInstanceGroupUrls at the given index. + */ + public java.lang.String getGreenInstanceGroupUrls(int index) { + return greenInstanceGroupUrls_.get(index); + } + /** + *
+         * The resource URLs of the [managed instance groups]
+         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+         * associated with green pool.
+         * 
+ * + * repeated string green_instance_group_urls = 3; + * @param index The index of the value to return. + * @return The bytes of the greenInstanceGroupUrls at the given index. + */ + public com.google.protobuf.ByteString + getGreenInstanceGroupUrlsBytes(int index) { + return greenInstanceGroupUrls_.getByteString(index); + } + /** + *
+         * The resource URLs of the [managed instance groups]
+         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+         * associated with green pool.
+         * 
+ * + * repeated string green_instance_group_urls = 3; + * @param index The index to set the value at. + * @param value The greenInstanceGroupUrls to set. + * @return This builder for chaining. + */ + public Builder setGreenInstanceGroupUrls( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureGreenInstanceGroupUrlsIsMutable(); + greenInstanceGroupUrls_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * The resource URLs of the [managed instance groups]
+         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+         * associated with green pool.
+         * 
+ * + * repeated string green_instance_group_urls = 3; + * @param value The greenInstanceGroupUrls to add. + * @return This builder for chaining. + */ + public Builder addGreenInstanceGroupUrls( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureGreenInstanceGroupUrlsIsMutable(); + greenInstanceGroupUrls_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * The resource URLs of the [managed instance groups]
+         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+         * associated with green pool.
+         * 
+ * + * repeated string green_instance_group_urls = 3; + * @param values The greenInstanceGroupUrls to add. + * @return This builder for chaining. + */ + public Builder addAllGreenInstanceGroupUrls( + java.lang.Iterable values) { + ensureGreenInstanceGroupUrlsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, greenInstanceGroupUrls_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * The resource URLs of the [managed instance groups]
+         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+         * associated with green pool.
+         * 
+ * + * repeated string green_instance_group_urls = 3; + * @return This builder for chaining. + */ + public Builder clearGreenInstanceGroupUrls() { + greenInstanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; + onChanged(); + return this; + } + /** + *
+         * The resource URLs of the [managed instance groups]
+         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+         * associated with green pool.
+         * 
+ * + * repeated string green_instance_group_urls = 3; + * @param value The bytes of the greenInstanceGroupUrls to add. + * @return This builder for chaining. + */ + public Builder addGreenInstanceGroupUrlsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureGreenInstanceGroupUrlsIsMutable(); + greenInstanceGroupUrls_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object bluePoolDeletionStartTime_ = ""; + /** + *
+         * Time to start deleting blue pool to complete blue-green upgrade,
+         * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+         * 
+ * + * string blue_pool_deletion_start_time = 4; + * @return The bluePoolDeletionStartTime. + */ + public java.lang.String getBluePoolDeletionStartTime() { + java.lang.Object ref = bluePoolDeletionStartTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bluePoolDeletionStartTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * Time to start deleting blue pool to complete blue-green upgrade,
+         * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+         * 
+ * + * string blue_pool_deletion_start_time = 4; + * @return The bytes for bluePoolDeletionStartTime. + */ + public com.google.protobuf.ByteString + getBluePoolDeletionStartTimeBytes() { + java.lang.Object ref = bluePoolDeletionStartTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bluePoolDeletionStartTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * Time to start deleting blue pool to complete blue-green upgrade,
+         * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+         * 
+ * + * string blue_pool_deletion_start_time = 4; + * @param value The bluePoolDeletionStartTime to set. + * @return This builder for chaining. + */ + public Builder setBluePoolDeletionStartTime( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + bluePoolDeletionStartTime_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+         * Time to start deleting blue pool to complete blue-green upgrade,
+         * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+         * 
+ * + * string blue_pool_deletion_start_time = 4; + * @return This builder for chaining. + */ + public Builder clearBluePoolDeletionStartTime() { + bluePoolDeletionStartTime_ = getDefaultInstance().getBluePoolDeletionStartTime(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+         * Time to start deleting blue pool to complete blue-green upgrade,
+         * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+         * 
+ * + * string blue_pool_deletion_start_time = 4; + * @param value The bytes for bluePoolDeletionStartTime to set. + * @return This builder for chaining. + */ + public Builder setBluePoolDeletionStartTimeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + bluePoolDeletionStartTime_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object greenPoolVersion_ = ""; + /** + *
+         * Version of green pool.
+         * 
+ * + * string green_pool_version = 5; + * @return The greenPoolVersion. + */ + public java.lang.String getGreenPoolVersion() { + java.lang.Object ref = greenPoolVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + greenPoolVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * Version of green pool.
+         * 
+ * + * string green_pool_version = 5; + * @return The bytes for greenPoolVersion. + */ + public com.google.protobuf.ByteString + getGreenPoolVersionBytes() { + java.lang.Object ref = greenPoolVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + greenPoolVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * Version of green pool.
+         * 
+ * + * string green_pool_version = 5; + * @param value The greenPoolVersion to set. + * @return This builder for chaining. + */ + public Builder setGreenPoolVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + greenPoolVersion_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+         * Version of green pool.
+         * 
+ * + * string green_pool_version = 5; + * @return This builder for chaining. + */ + public Builder clearGreenPoolVersion() { + greenPoolVersion_ = getDefaultInstance().getGreenPoolVersion(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+         * Version of green pool.
+         * 
+ * + * string green_pool_version = 5; + * @param value The bytes for greenPoolVersion to set. + * @return This builder for chaining. + */ + public Builder setGreenPoolVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + greenPoolVersion_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.NodePool.UpdateInfo.BlueGreenInfo) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.NodePool.UpdateInfo.BlueGreenInfo) + private static final com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo(); + } + + public static com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BlueGreenInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int BLUE_GREEN_INFO_FIELD_NUMBER = 1; + private com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blueGreenInfo_; + /** + *
+     * Information of a blue-green upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; + * @return Whether the blueGreenInfo field is set. + */ + @java.lang.Override + public boolean hasBlueGreenInfo() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Information of a blue-green upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; + * @return The blueGreenInfo. + */ + @java.lang.Override + public com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo getBlueGreenInfo() { + return blueGreenInfo_ == null ? com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.getDefaultInstance() : blueGreenInfo_; + } + /** + *
+     * Information of a blue-green upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; + */ + @java.lang.Override + public com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfoOrBuilder getBlueGreenInfoOrBuilder() { + return blueGreenInfo_ == null ? com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.getDefaultInstance() : blueGreenInfo_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getBlueGreenInfo()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBlueGreenInfo()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.NodePool.UpdateInfo)) { + return super.equals(obj); + } + com.google.container.v1.NodePool.UpdateInfo other = (com.google.container.v1.NodePool.UpdateInfo) obj; + + if (hasBlueGreenInfo() != other.hasBlueGreenInfo()) return false; + if (hasBlueGreenInfo()) { + if (!getBlueGreenInfo() + .equals(other.getBlueGreenInfo())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasBlueGreenInfo()) { + hash = (37 * hash) + BLUE_GREEN_INFO_FIELD_NUMBER; + hash = (53 * hash) + getBlueGreenInfo().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.NodePool.UpdateInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodePool.UpdateInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodePool.UpdateInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodePool.UpdateInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodePool.UpdateInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodePool.UpdateInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodePool.UpdateInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NodePool.UpdateInfo parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.NodePool.UpdateInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.NodePool.UpdateInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.NodePool.UpdateInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NodePool.UpdateInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.NodePool.UpdateInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * UpdateInfo contains resource (instance groups, etc), status and other
+     * intermediate information relevant to a node pool upgrade.
+     * 
+ * + * Protobuf type {@code google.container.v1.NodePool.UpdateInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.NodePool.UpdateInfo) + com.google.container.v1.NodePool.UpdateInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePool_UpdateInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePool_UpdateInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodePool.UpdateInfo.class, com.google.container.v1.NodePool.UpdateInfo.Builder.class); + } + + // Construct using com.google.container.v1.NodePool.UpdateInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getBlueGreenInfoFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + blueGreenInfo_ = null; + if (blueGreenInfoBuilder_ != null) { + blueGreenInfoBuilder_.dispose(); + blueGreenInfoBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePool_UpdateInfo_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NodePool.UpdateInfo getDefaultInstanceForType() { + return com.google.container.v1.NodePool.UpdateInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NodePool.UpdateInfo build() { + com.google.container.v1.NodePool.UpdateInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NodePool.UpdateInfo buildPartial() { + com.google.container.v1.NodePool.UpdateInfo result = new com.google.container.v1.NodePool.UpdateInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.NodePool.UpdateInfo result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.blueGreenInfo_ = blueGreenInfoBuilder_ == null + ? blueGreenInfo_ + : blueGreenInfoBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.NodePool.UpdateInfo) { + return mergeFrom((com.google.container.v1.NodePool.UpdateInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NodePool.UpdateInfo other) { + if (other == com.google.container.v1.NodePool.UpdateInfo.getDefaultInstance()) return this; + if (other.hasBlueGreenInfo()) { + mergeBlueGreenInfo(other.getBlueGreenInfo()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getBlueGreenInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blueGreenInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo, com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Builder, com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfoOrBuilder> blueGreenInfoBuilder_; + /** + *
+       * Information of a blue-green upgrade.
+       * 
+ * + * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; + * @return Whether the blueGreenInfo field is set. + */ + public boolean hasBlueGreenInfo() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * Information of a blue-green upgrade.
+       * 
+ * + * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; + * @return The blueGreenInfo. + */ + public com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo getBlueGreenInfo() { + if (blueGreenInfoBuilder_ == null) { + return blueGreenInfo_ == null ? com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.getDefaultInstance() : blueGreenInfo_; + } else { + return blueGreenInfoBuilder_.getMessage(); + } + } + /** + *
+       * Information of a blue-green upgrade.
+       * 
+ * + * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; + */ + public Builder setBlueGreenInfo(com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo value) { + if (blueGreenInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + blueGreenInfo_ = value; + } else { + blueGreenInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Information of a blue-green upgrade.
+       * 
+ * + * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; + */ + public Builder setBlueGreenInfo( + com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Builder builderForValue) { + if (blueGreenInfoBuilder_ == null) { + blueGreenInfo_ = builderForValue.build(); + } else { + blueGreenInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Information of a blue-green upgrade.
+       * 
+ * + * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; + */ + public Builder mergeBlueGreenInfo(com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo value) { + if (blueGreenInfoBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + blueGreenInfo_ != null && + blueGreenInfo_ != com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.getDefaultInstance()) { + getBlueGreenInfoBuilder().mergeFrom(value); + } else { + blueGreenInfo_ = value; + } + } else { + blueGreenInfoBuilder_.mergeFrom(value); + } + if (blueGreenInfo_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+       * Information of a blue-green upgrade.
+       * 
+ * + * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; + */ + public Builder clearBlueGreenInfo() { + bitField0_ = (bitField0_ & ~0x00000001); + blueGreenInfo_ = null; + if (blueGreenInfoBuilder_ != null) { + blueGreenInfoBuilder_.dispose(); + blueGreenInfoBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Information of a blue-green upgrade.
+       * 
+ * + * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; + */ + public com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Builder getBlueGreenInfoBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getBlueGreenInfoFieldBuilder().getBuilder(); + } + /** + *
+       * Information of a blue-green upgrade.
+       * 
+ * + * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; + */ + public com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfoOrBuilder getBlueGreenInfoOrBuilder() { + if (blueGreenInfoBuilder_ != null) { + return blueGreenInfoBuilder_.getMessageOrBuilder(); + } else { + return blueGreenInfo_ == null ? + com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.getDefaultInstance() : blueGreenInfo_; + } + } + /** + *
+       * Information of a blue-green upgrade.
+       * 
+ * + * .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo, com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Builder, com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfoOrBuilder> + getBlueGreenInfoFieldBuilder() { + if (blueGreenInfoBuilder_ == null) { + blueGreenInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo, com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Builder, com.google.container.v1.NodePool.UpdateInfo.BlueGreenInfoOrBuilder>( + getBlueGreenInfo(), + getParentForChildren(), + isClean()); + blueGreenInfo_ = null; + } + return blueGreenInfoBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.NodePool.UpdateInfo) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.NodePool.UpdateInfo) + private static final com.google.container.v1.NodePool.UpdateInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.NodePool.UpdateInfo(); + } + + public static com.google.container.v1.NodePool.UpdateInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.NodePool.UpdateInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PlacementPolicyOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NodePool.PlacementPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The type of placement.
+     * 
+ * + * .google.container.v1.NodePool.PlacementPolicy.Type type = 1; + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + *
+     * The type of placement.
+     * 
+ * + * .google.container.v1.NodePool.PlacementPolicy.Type type = 1; + * @return The type. + */ + com.google.container.v1.NodePool.PlacementPolicy.Type getType(); + + /** + *
+     * Optional. TPU placement topology for pod slice node pool.
+     * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
+     * 
+ * + * string tpu_topology = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The tpuTopology. + */ + java.lang.String getTpuTopology(); + /** + *
+     * Optional. TPU placement topology for pod slice node pool.
+     * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
+     * 
+ * + * string tpu_topology = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for tpuTopology. + */ + com.google.protobuf.ByteString + getTpuTopologyBytes(); + + /** + *
+     * If set, refers to the name of a custom resource policy supplied by the
+     * user. The resource policy must be in the same project and region as the
+     * node pool. If not found, InvalidArgument error is returned.
+     * 
+ * + * string policy_name = 3; + * @return The policyName. + */ + java.lang.String getPolicyName(); + /** + *
+     * If set, refers to the name of a custom resource policy supplied by the
+     * user. The resource policy must be in the same project and region as the
+     * node pool. If not found, InvalidArgument error is returned.
+     * 
+ * + * string policy_name = 3; + * @return The bytes for policyName. + */ + com.google.protobuf.ByteString + getPolicyNameBytes(); + } + /** + *
+   * PlacementPolicy defines the placement policy used by the node pool.
+   * 
+ * + * Protobuf type {@code google.container.v1.NodePool.PlacementPolicy} + */ + public static final class PlacementPolicy extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.NodePool.PlacementPolicy) + PlacementPolicyOrBuilder { + private static final long serialVersionUID = 0L; + // Use PlacementPolicy.newBuilder() to construct. + private PlacementPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PlacementPolicy() { + type_ = 0; + tpuTopology_ = ""; + policyName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PlacementPolicy(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePool_PlacementPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePool_PlacementPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodePool.PlacementPolicy.class, com.google.container.v1.NodePool.PlacementPolicy.Builder.class); + } + + /** + *
+     * Type defines the type of placement policy.
+     * 
+ * + * Protobuf enum {@code google.container.v1.NodePool.PlacementPolicy.Type} + */ + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * TYPE_UNSPECIFIED specifies no requirements on nodes
+       * placement.
+       * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + *
+       * COMPACT specifies node placement in the same availability domain to
+       * ensure low communication latency.
+       * 
+ * + * COMPACT = 1; + */ + COMPACT(1), + UNRECOGNIZED(-1), + ; + + /** + *
+       * TYPE_UNSPECIFIED specifies no requirements on nodes
+       * placement.
+       * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + /** + *
+       * COMPACT specifies node placement in the same availability domain to
+       * ensure low communication latency.
+       * 
+ * + * COMPACT = 1; + */ + public static final int COMPACT_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Type forNumber(int value) { + switch (value) { + case 0: return TYPE_UNSPECIFIED; + case 1: return COMPACT; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.NodePool.PlacementPolicy.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.NodePool.PlacementPolicy.Type) + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_ = 0; + /** + *
+     * The type of placement.
+     * 
+ * + * .google.container.v1.NodePool.PlacementPolicy.Type type = 1; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override public int getTypeValue() { + return type_; + } + /** + *
+     * The type of placement.
+     * 
+ * + * .google.container.v1.NodePool.PlacementPolicy.Type type = 1; + * @return The type. + */ + @java.lang.Override public com.google.container.v1.NodePool.PlacementPolicy.Type getType() { + com.google.container.v1.NodePool.PlacementPolicy.Type result = com.google.container.v1.NodePool.PlacementPolicy.Type.forNumber(type_); + return result == null ? com.google.container.v1.NodePool.PlacementPolicy.Type.UNRECOGNIZED : result; + } + + public static final int TPU_TOPOLOGY_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object tpuTopology_ = ""; + /** + *
+     * Optional. TPU placement topology for pod slice node pool.
+     * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
+     * 
+ * + * string tpu_topology = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The tpuTopology. + */ + @java.lang.Override + public java.lang.String getTpuTopology() { + java.lang.Object ref = tpuTopology_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tpuTopology_ = s; + return s; + } + } + /** + *
+     * Optional. TPU placement topology for pod slice node pool.
+     * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
+     * 
+ * + * string tpu_topology = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for tpuTopology. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTpuTopologyBytes() { + java.lang.Object ref = tpuTopology_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tpuTopology_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POLICY_NAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object policyName_ = ""; + /** + *
+     * If set, refers to the name of a custom resource policy supplied by the
+     * user. The resource policy must be in the same project and region as the
+     * node pool. If not found, InvalidArgument error is returned.
+     * 
+ * + * string policy_name = 3; + * @return The policyName. + */ + @java.lang.Override + public java.lang.String getPolicyName() { + java.lang.Object ref = policyName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + policyName_ = s; + return s; + } + } + /** + *
+     * If set, refers to the name of a custom resource policy supplied by the
+     * user. The resource policy must be in the same project and region as the
+     * node pool. If not found, InvalidArgument error is returned.
+     * 
+ * + * string policy_name = 3; + * @return The bytes for policyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPolicyNameBytes() { + java.lang.Object ref = policyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + policyName_ = 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 (type_ != com.google.container.v1.NodePool.PlacementPolicy.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tpuTopology_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tpuTopology_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, policyName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ != com.google.container.v1.NodePool.PlacementPolicy.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tpuTopology_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tpuTopology_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, policyName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.NodePool.PlacementPolicy)) { + return super.equals(obj); + } + com.google.container.v1.NodePool.PlacementPolicy other = (com.google.container.v1.NodePool.PlacementPolicy) obj; + + if (type_ != other.type_) return false; + if (!getTpuTopology() + .equals(other.getTpuTopology())) return false; + if (!getPolicyName() + .equals(other.getPolicyName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + TPU_TOPOLOGY_FIELD_NUMBER; + hash = (53 * hash) + getTpuTopology().hashCode(); + hash = (37 * hash) + POLICY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPolicyName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.NodePool.PlacementPolicy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodePool.PlacementPolicy parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodePool.PlacementPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodePool.PlacementPolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodePool.PlacementPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodePool.PlacementPolicy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodePool.PlacementPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NodePool.PlacementPolicy parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.NodePool.PlacementPolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.NodePool.PlacementPolicy parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.NodePool.PlacementPolicy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NodePool.PlacementPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.NodePool.PlacementPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * PlacementPolicy defines the placement policy used by the node pool.
+     * 
+ * + * Protobuf type {@code google.container.v1.NodePool.PlacementPolicy} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.NodePool.PlacementPolicy) + com.google.container.v1.NodePool.PlacementPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePool_PlacementPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePool_PlacementPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodePool.PlacementPolicy.class, com.google.container.v1.NodePool.PlacementPolicy.Builder.class); + } + + // Construct using com.google.container.v1.NodePool.PlacementPolicy.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + type_ = 0; + tpuTopology_ = ""; + policyName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePool_PlacementPolicy_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NodePool.PlacementPolicy getDefaultInstanceForType() { + return com.google.container.v1.NodePool.PlacementPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NodePool.PlacementPolicy build() { + com.google.container.v1.NodePool.PlacementPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NodePool.PlacementPolicy buildPartial() { + com.google.container.v1.NodePool.PlacementPolicy result = new com.google.container.v1.NodePool.PlacementPolicy(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.NodePool.PlacementPolicy result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tpuTopology_ = tpuTopology_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.policyName_ = policyName_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.NodePool.PlacementPolicy) { + return mergeFrom((com.google.container.v1.NodePool.PlacementPolicy)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NodePool.PlacementPolicy other) { + if (other == com.google.container.v1.NodePool.PlacementPolicy.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getTpuTopology().isEmpty()) { + tpuTopology_ = other.tpuTopology_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getPolicyName().isEmpty()) { + policyName_ = other.policyName_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + type_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + tpuTopology_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + policyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int type_ = 0; + /** + *
+       * The type of placement.
+       * 
+ * + * .google.container.v1.NodePool.PlacementPolicy.Type type = 1; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override public int getTypeValue() { + return type_; + } + /** + *
+       * The type of placement.
+       * 
+ * + * .google.container.v1.NodePool.PlacementPolicy.Type type = 1; + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * The type of placement.
+       * 
+ * + * .google.container.v1.NodePool.PlacementPolicy.Type type = 1; + * @return The type. + */ + @java.lang.Override + public com.google.container.v1.NodePool.PlacementPolicy.Type getType() { + com.google.container.v1.NodePool.PlacementPolicy.Type result = com.google.container.v1.NodePool.PlacementPolicy.Type.forNumber(type_); + return result == null ? com.google.container.v1.NodePool.PlacementPolicy.Type.UNRECOGNIZED : result; + } + /** + *
+       * The type of placement.
+       * 
+ * + * .google.container.v1.NodePool.PlacementPolicy.Type type = 1; + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.container.v1.NodePool.PlacementPolicy.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * The type of placement.
+       * 
+ * + * .google.container.v1.NodePool.PlacementPolicy.Type type = 1; + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object tpuTopology_ = ""; + /** + *
+       * Optional. TPU placement topology for pod slice node pool.
+       * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
+       * 
+ * + * string tpu_topology = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The tpuTopology. + */ + public java.lang.String getTpuTopology() { + java.lang.Object ref = tpuTopology_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tpuTopology_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Optional. TPU placement topology for pod slice node pool.
+       * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
+       * 
+ * + * string tpu_topology = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for tpuTopology. + */ + public com.google.protobuf.ByteString + getTpuTopologyBytes() { + java.lang.Object ref = tpuTopology_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tpuTopology_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Optional. TPU placement topology for pod slice node pool.
+       * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
+       * 
+ * + * string tpu_topology = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The tpuTopology to set. + * @return This builder for chaining. + */ + public Builder setTpuTopology( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + tpuTopology_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Optional. TPU placement topology for pod slice node pool.
+       * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
+       * 
+ * + * string tpu_topology = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearTpuTopology() { + tpuTopology_ = getDefaultInstance().getTpuTopology(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * Optional. TPU placement topology for pod slice node pool.
+       * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
+       * 
+ * + * string tpu_topology = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes for tpuTopology to set. + * @return This builder for chaining. + */ + public Builder setTpuTopologyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + tpuTopology_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object policyName_ = ""; + /** + *
+       * If set, refers to the name of a custom resource policy supplied by the
+       * user. The resource policy must be in the same project and region as the
+       * node pool. If not found, InvalidArgument error is returned.
+       * 
+ * + * string policy_name = 3; + * @return The policyName. + */ + public java.lang.String getPolicyName() { + java.lang.Object ref = policyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + policyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * If set, refers to the name of a custom resource policy supplied by the
+       * user. The resource policy must be in the same project and region as the
+       * node pool. If not found, InvalidArgument error is returned.
+       * 
+ * + * string policy_name = 3; + * @return The bytes for policyName. + */ + public com.google.protobuf.ByteString + getPolicyNameBytes() { + java.lang.Object ref = policyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + policyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * If set, refers to the name of a custom resource policy supplied by the
+       * user. The resource policy must be in the same project and region as the
+       * node pool. If not found, InvalidArgument error is returned.
+       * 
+ * + * string policy_name = 3; + * @param value The policyName to set. + * @return This builder for chaining. + */ + public Builder setPolicyName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + policyName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * If set, refers to the name of a custom resource policy supplied by the
+       * user. The resource policy must be in the same project and region as the
+       * node pool. If not found, InvalidArgument error is returned.
+       * 
+ * + * string policy_name = 3; + * @return This builder for chaining. + */ + public Builder clearPolicyName() { + policyName_ = getDefaultInstance().getPolicyName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * If set, refers to the name of a custom resource policy supplied by the
+       * user. The resource policy must be in the same project and region as the
+       * node pool. If not found, InvalidArgument error is returned.
+       * 
+ * + * string policy_name = 3; + * @param value The bytes for policyName to set. + * @return This builder for chaining. + */ + public Builder setPolicyNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + policyName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.NodePool.PlacementPolicy) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.NodePool.PlacementPolicy) + private static final com.google.container.v1.NodePool.PlacementPolicy DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.NodePool.PlacementPolicy(); + } + + public static com.google.container.v1.NodePool.PlacementPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PlacementPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.NodePool.PlacementPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface QueuedProvisioningOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NodePool.QueuedProvisioning) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Denotes that this nodepool is QRM specific, meaning nodes can be only
+     * obtained through queuing via the Cluster Autoscaler ProvisioningRequest
+     * API.
+     * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); + } + /** + *
+   * QueuedProvisioning defines the queued provisioning used by the node pool.
+   * 
+ * + * Protobuf type {@code google.container.v1.NodePool.QueuedProvisioning} + */ + public static final class QueuedProvisioning extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.NodePool.QueuedProvisioning) + QueuedProvisioningOrBuilder { + private static final long serialVersionUID = 0L; + // Use QueuedProvisioning.newBuilder() to construct. + private QueuedProvisioning(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private QueuedProvisioning() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new QueuedProvisioning(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePool_QueuedProvisioning_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePool_QueuedProvisioning_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodePool.QueuedProvisioning.class, com.google.container.v1.NodePool.QueuedProvisioning.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+     * Denotes that this nodepool is QRM specific, meaning nodes can be only
+     * obtained through queuing via the Cluster Autoscaler ProvisioningRequest
+     * API.
+     * 
+ * + * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.NodePool.QueuedProvisioning)) { + return super.equals(obj); + } + com.google.container.v1.NodePool.QueuedProvisioning other = (com.google.container.v1.NodePool.QueuedProvisioning) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.NodePool.QueuedProvisioning parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodePool.QueuedProvisioning parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodePool.QueuedProvisioning parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodePool.QueuedProvisioning parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodePool.QueuedProvisioning parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodePool.QueuedProvisioning parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodePool.QueuedProvisioning parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NodePool.QueuedProvisioning parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.NodePool.QueuedProvisioning parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.NodePool.QueuedProvisioning parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.NodePool.QueuedProvisioning parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NodePool.QueuedProvisioning parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.NodePool.QueuedProvisioning prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * QueuedProvisioning defines the queued provisioning used by the node pool.
+     * 
+ * + * Protobuf type {@code google.container.v1.NodePool.QueuedProvisioning} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.NodePool.QueuedProvisioning) + com.google.container.v1.NodePool.QueuedProvisioningOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePool_QueuedProvisioning_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePool_QueuedProvisioning_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodePool.QueuedProvisioning.class, com.google.container.v1.NodePool.QueuedProvisioning.Builder.class); + } + + // Construct using com.google.container.v1.NodePool.QueuedProvisioning.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePool_QueuedProvisioning_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NodePool.QueuedProvisioning getDefaultInstanceForType() { + return com.google.container.v1.NodePool.QueuedProvisioning.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NodePool.QueuedProvisioning build() { + com.google.container.v1.NodePool.QueuedProvisioning result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NodePool.QueuedProvisioning buildPartial() { + com.google.container.v1.NodePool.QueuedProvisioning result = new com.google.container.v1.NodePool.QueuedProvisioning(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.NodePool.QueuedProvisioning result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.NodePool.QueuedProvisioning) { + return mergeFrom((com.google.container.v1.NodePool.QueuedProvisioning)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NodePool.QueuedProvisioning other) { + if (other == com.google.container.v1.NodePool.QueuedProvisioning.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enabled_ ; + /** + *
+       * Denotes that this nodepool is QRM specific, meaning nodes can be only
+       * obtained through queuing via the Cluster Autoscaler ProvisioningRequest
+       * API.
+       * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + *
+       * Denotes that this nodepool is QRM specific, meaning nodes can be only
+       * obtained through queuing via the Cluster Autoscaler ProvisioningRequest
+       * API.
+       * 
+ * + * bool enabled = 1; + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Denotes that this nodepool is QRM specific, meaning nodes can be only
+       * obtained through queuing via the Cluster Autoscaler ProvisioningRequest
+       * API.
+       * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.NodePool.QueuedProvisioning) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.NodePool.QueuedProvisioning) + private static final com.google.container.v1.NodePool.QueuedProvisioning DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.NodePool.QueuedProvisioning(); + } + + public static com.google.container.v1.NodePool.QueuedProvisioning getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueuedProvisioning parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.NodePool.QueuedProvisioning getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + 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.v1.NodeConfig config_; + /** + *
+   * The node configuration of the pool.
+   * 
+ * + * .google.container.v1.NodeConfig config = 2; + * @return Whether the config field is set. + */ + @java.lang.Override + public boolean hasConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * The node configuration of the pool.
+   * 
+ * + * .google.container.v1.NodeConfig config = 2; + * @return The config. + */ + @java.lang.Override + public com.google.container.v1.NodeConfig getConfig() { + return config_ == null ? com.google.container.v1.NodeConfig.getDefaultInstance() : config_; + } + /** + *
+   * The node configuration of the pool.
+   * 
+ * + * .google.container.v1.NodeConfig config = 2; + */ + @java.lang.Override + public com.google.container.v1.NodeConfigOrBuilder getConfigOrBuilder() { + return config_ == null ? com.google.container.v1.NodeConfig.getDefaultInstance() : config_; + } + + public static final int INITIAL_NODE_COUNT_FIELD_NUMBER = 3; + private int initialNodeCount_ = 0; + /** + *
+   * 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; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList locations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * 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 NETWORK_CONFIG_FIELD_NUMBER = 14; + private com.google.container.v1.NodeNetworkConfig networkConfig_; + /** + *
+   * Networking configuration for this NodePool. If specified, it overrides the
+   * cluster-level defaults.
+   * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + * @return Whether the networkConfig field is set. + */ + @java.lang.Override + public boolean hasNetworkConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * Networking configuration for this NodePool. If specified, it overrides the
+   * cluster-level defaults.
+   * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + * @return The networkConfig. + */ + @java.lang.Override + public com.google.container.v1.NodeNetworkConfig getNetworkConfig() { + return networkConfig_ == null ? com.google.container.v1.NodeNetworkConfig.getDefaultInstance() : networkConfig_; + } + /** + *
+   * Networking configuration for this NodePool. If specified, it overrides the
+   * cluster-level defaults.
+   * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + */ + @java.lang.Override + public com.google.container.v1.NodeNetworkConfigOrBuilder getNetworkConfigOrBuilder() { + return networkConfig_ == null ? com.google.container.v1.NodeNetworkConfig.getDefaultInstance() : networkConfig_; + } + + public static final int SELF_LINK_FIELD_NUMBER = 100; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; + /** + *
+   * The version of Kubernetes running on this NodePool's nodes. If unspecified,
+   * it defaults as described
+   * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version).
+   * 
+ * + * 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 Kubernetes running on this NodePool's nodes. If unspecified,
+   * it defaults as described
+   * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version).
+   * 
+ * + * 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; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList instanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * [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.
+   * During the node pool blue-green upgrade operation, the URLs contain both
+   * blue and green resources.
+   * 
+ * + * 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.
+   * During the node pool blue-green upgrade operation, the URLs contain both
+   * blue and green resources.
+   * 
+ * + * 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.
+   * During the node pool blue-green upgrade operation, the URLs contain both
+   * blue and green resources.
+   * 
+ * + * 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.
+   * During the node pool blue-green upgrade operation, the URLs contain both
+   * blue and green resources.
+   * 
+ * + * 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_ = 0; + /** + *
+   * [Output only] The status of the nodes in this pool instance.
+   * 
+ * + * .google.container.v1.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.v1.NodePool.Status status = 103; + * @return The status. + */ + @java.lang.Override public com.google.container.v1.NodePool.Status getStatus() { + com.google.container.v1.NodePool.Status result = com.google.container.v1.NodePool.Status.forNumber(status_); + return result == null ? com.google.container.v1.NodePool.Status.UNRECOGNIZED : result; + } + + public static final int STATUS_MESSAGE_FIELD_NUMBER = 104; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1.NodePool.status_message is deprecated. + * See google/container/v1/cluster_service.proto;l=3552 + * @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]; + * @deprecated google.container.v1.NodePool.status_message is deprecated. + * See google/container/v1/cluster_service.proto;l=3552 + * @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.v1.NodePoolAutoscaling autoscaling_; + /** + *
+   * Autoscaler configuration for this NodePool. Autoscaler is enabled
+   * only if a valid configuration is present.
+   * 
+ * + * .google.container.v1.NodePoolAutoscaling autoscaling = 4; + * @return Whether the autoscaling field is set. + */ + @java.lang.Override + public boolean hasAutoscaling() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+   * Autoscaler configuration for this NodePool. Autoscaler is enabled
+   * only if a valid configuration is present.
+   * 
+ * + * .google.container.v1.NodePoolAutoscaling autoscaling = 4; + * @return The autoscaling. + */ + @java.lang.Override + public com.google.container.v1.NodePoolAutoscaling getAutoscaling() { + return autoscaling_ == null ? com.google.container.v1.NodePoolAutoscaling.getDefaultInstance() : autoscaling_; + } + /** + *
+   * Autoscaler configuration for this NodePool. Autoscaler is enabled
+   * only if a valid configuration is present.
+   * 
+ * + * .google.container.v1.NodePoolAutoscaling autoscaling = 4; + */ + @java.lang.Override + public com.google.container.v1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder() { + return autoscaling_ == null ? com.google.container.v1.NodePoolAutoscaling.getDefaultInstance() : autoscaling_; + } + + public static final int MANAGEMENT_FIELD_NUMBER = 5; + private com.google.container.v1.NodeManagement management_; + /** + *
+   * NodeManagement configuration for this NodePool.
+   * 
+ * + * .google.container.v1.NodeManagement management = 5; + * @return Whether the management field is set. + */ + @java.lang.Override + public boolean hasManagement() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+   * NodeManagement configuration for this NodePool.
+   * 
+ * + * .google.container.v1.NodeManagement management = 5; + * @return The management. + */ + @java.lang.Override + public com.google.container.v1.NodeManagement getManagement() { + return management_ == null ? com.google.container.v1.NodeManagement.getDefaultInstance() : management_; + } + /** + *
+   * NodeManagement configuration for this NodePool.
+   * 
+ * + * .google.container.v1.NodeManagement management = 5; + */ + @java.lang.Override + public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() { + return management_ == null ? com.google.container.v1.NodeManagement.getDefaultInstance() : management_; + } + + public static final int MAX_PODS_CONSTRAINT_FIELD_NUMBER = 6; + private com.google.container.v1.MaxPodsConstraint maxPodsConstraint_; + /** + *
+   * The constraint on the maximum number of pods that can be run
+   * simultaneously on a node in the node pool.
+   * 
+ * + * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; + * @return Whether the maxPodsConstraint field is set. + */ + @java.lang.Override + public boolean hasMaxPodsConstraint() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+   * The constraint on the maximum number of pods that can be run
+   * simultaneously on a node in the node pool.
+   * 
+ * + * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; + * @return The maxPodsConstraint. + */ + @java.lang.Override + public com.google.container.v1.MaxPodsConstraint getMaxPodsConstraint() { + return maxPodsConstraint_ == null ? com.google.container.v1.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.v1.MaxPodsConstraint max_pods_constraint = 6; + */ + @java.lang.Override + public com.google.container.v1.MaxPodsConstraintOrBuilder getMaxPodsConstraintOrBuilder() { + return maxPodsConstraint_ == null ? com.google.container.v1.MaxPodsConstraint.getDefaultInstance() : maxPodsConstraint_; + } + + public static final int CONDITIONS_FIELD_NUMBER = 105; + @SuppressWarnings("serial") + private java.util.List conditions_; + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 105; + */ + @java.lang.Override + public java.util.List getConditionsList() { + return conditions_; + } + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 105; + */ + @java.lang.Override + public java.util.List + getConditionsOrBuilderList() { + return conditions_; + } + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 105; + */ + @java.lang.Override + public int getConditionsCount() { + return conditions_.size(); + } + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 105; + */ + @java.lang.Override + public com.google.container.v1.StatusCondition getConditions(int index) { + return conditions_.get(index); + } + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 105; + */ + @java.lang.Override + public com.google.container.v1.StatusConditionOrBuilder getConditionsOrBuilder( + int index) { + return conditions_.get(index); + } + + public static final int POD_IPV4_CIDR_SIZE_FIELD_NUMBER = 7; + private int podIpv4CidrSize_ = 0; + /** + *
+   * [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.v1.NodePool.UpgradeSettings upgradeSettings_; + /** + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + * @return Whether the upgradeSettings field is set. + */ + @java.lang.Override + public boolean hasUpgradeSettings() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + * @return The upgradeSettings. + */ + @java.lang.Override + public com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings() { + return upgradeSettings_ == null ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() : upgradeSettings_; + } + /** + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + @java.lang.Override + public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { + return upgradeSettings_ == null ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() : upgradeSettings_; + } + + public static final int PLACEMENT_POLICY_FIELD_NUMBER = 108; + private com.google.container.v1.NodePool.PlacementPolicy placementPolicy_; + /** + *
+   * Specifies the node placement policy.
+   * 
+ * + * .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; + * @return Whether the placementPolicy field is set. + */ + @java.lang.Override + public boolean hasPlacementPolicy() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+   * Specifies the node placement policy.
+   * 
+ * + * .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; + * @return The placementPolicy. + */ + @java.lang.Override + public com.google.container.v1.NodePool.PlacementPolicy getPlacementPolicy() { + return placementPolicy_ == null ? com.google.container.v1.NodePool.PlacementPolicy.getDefaultInstance() : placementPolicy_; + } + /** + *
+   * Specifies the node placement policy.
+   * 
+ * + * .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; + */ + @java.lang.Override + public com.google.container.v1.NodePool.PlacementPolicyOrBuilder getPlacementPolicyOrBuilder() { + return placementPolicy_ == null ? com.google.container.v1.NodePool.PlacementPolicy.getDefaultInstance() : placementPolicy_; + } + + public static final int UPDATE_INFO_FIELD_NUMBER = 109; + private com.google.container.v1.NodePool.UpdateInfo updateInfo_; + /** + *
+   * Output only. [Output only] Update info contains relevant information during
+   * a node pool update.
+   * 
+ * + * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updateInfo field is set. + */ + @java.lang.Override + public boolean hasUpdateInfo() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+   * Output only. [Output only] Update info contains relevant information during
+   * a node pool update.
+   * 
+ * + * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updateInfo. + */ + @java.lang.Override + public com.google.container.v1.NodePool.UpdateInfo getUpdateInfo() { + return updateInfo_ == null ? com.google.container.v1.NodePool.UpdateInfo.getDefaultInstance() : updateInfo_; + } + /** + *
+   * Output only. [Output only] Update info contains relevant information during
+   * a node pool update.
+   * 
+ * + * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.container.v1.NodePool.UpdateInfoOrBuilder getUpdateInfoOrBuilder() { + return updateInfo_ == null ? com.google.container.v1.NodePool.UpdateInfo.getDefaultInstance() : updateInfo_; + } + + public static final int ETAG_FIELD_NUMBER = 110; + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + /** + *
+   * This checksum is computed by the server based on the value of node pool
+   * fields, and may be sent on update requests to ensure the client has an
+   * up-to-date value before proceeding.
+   * 
+ * + * string etag = 110; + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + /** + *
+   * This checksum is computed by the server based on the value of node pool
+   * fields, and may be sent on update requests to ensure the client has an
+   * up-to-date value before proceeding.
+   * 
+ * + * string etag = 110; + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUEUED_PROVISIONING_FIELD_NUMBER = 112; + private com.google.container.v1.NodePool.QueuedProvisioning queuedProvisioning_; + /** + *
+   * Specifies the configuration of queued provisioning.
+   * 
+ * + * .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; + * @return Whether the queuedProvisioning field is set. + */ + @java.lang.Override + public boolean hasQueuedProvisioning() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + *
+   * Specifies the configuration of queued provisioning.
+   * 
+ * + * .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; + * @return The queuedProvisioning. + */ + @java.lang.Override + public com.google.container.v1.NodePool.QueuedProvisioning getQueuedProvisioning() { + return queuedProvisioning_ == null ? com.google.container.v1.NodePool.QueuedProvisioning.getDefaultInstance() : queuedProvisioning_; + } + /** + *
+   * Specifies the configuration of queued provisioning.
+   * 
+ * + * .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; + */ + @java.lang.Override + public com.google.container.v1.NodePool.QueuedProvisioningOrBuilder getQueuedProvisioningOrBuilder() { + return queuedProvisioning_ == null ? com.google.container.v1.NodePool.QueuedProvisioning.getDefaultInstance() : queuedProvisioning_; + } + + public static final int BEST_EFFORT_PROVISIONING_FIELD_NUMBER = 113; + private com.google.container.v1.BestEffortProvisioning bestEffortProvisioning_; + /** + *
+   * Enable best effort provisioning for nodes
+   * 
+ * + * .google.container.v1.BestEffortProvisioning best_effort_provisioning = 113; + * @return Whether the bestEffortProvisioning field is set. + */ + @java.lang.Override + public boolean hasBestEffortProvisioning() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + *
+   * Enable best effort provisioning for nodes
+   * 
+ * + * .google.container.v1.BestEffortProvisioning best_effort_provisioning = 113; + * @return The bestEffortProvisioning. + */ + @java.lang.Override + public com.google.container.v1.BestEffortProvisioning getBestEffortProvisioning() { + return bestEffortProvisioning_ == null ? com.google.container.v1.BestEffortProvisioning.getDefaultInstance() : bestEffortProvisioning_; + } + /** + *
+   * Enable best effort provisioning for nodes
+   * 
+ * + * .google.container.v1.BestEffortProvisioning best_effort_provisioning = 113; + */ + @java.lang.Override + public com.google.container.v1.BestEffortProvisioningOrBuilder getBestEffortProvisioningOrBuilder() { + return bestEffortProvisioning_ == null ? com.google.container.v1.BestEffortProvisioning.getDefaultInstance() : bestEffortProvisioning_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getConfig()); + } + if (initialNodeCount_ != 0) { + output.writeInt32(3, initialNodeCount_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getAutoscaling()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(5, getManagement()); + } + if (((bitField0_ & 0x00000010) != 0)) { + 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 (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(14, getNetworkConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 100, selfLink_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + 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.v1.NodePool.Status.STATUS_UNSPECIFIED.getNumber()) { + output.writeEnum(103, status_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 104, statusMessage_); + } + for (int i = 0; i < conditions_.size(); i++) { + output.writeMessage(105, conditions_.get(i)); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(107, getUpgradeSettings()); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(108, getPlacementPolicy()); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(109, getUpdateInfo()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 110, etag_); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(112, getQueuedProvisioning()); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeMessage(113, getBestEffortProvisioning()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getConfig()); + } + if (initialNodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, initialNodeCount_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getAutoscaling()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getManagement()); + } + if (((bitField0_ & 0x00000010) != 0)) { + 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 (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getNetworkConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, selfLink_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + 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.v1.NodePool.Status.STATUS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(103, status_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { + 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 (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(107, getUpgradeSettings()); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(108, getPlacementPolicy()); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(109, getUpdateInfo()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(110, etag_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(112, getQueuedProvisioning()); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(113, getBestEffortProvisioning()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.NodePool)) { + return super.equals(obj); + } + com.google.container.v1.NodePool other = (com.google.container.v1.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 (hasNetworkConfig() != other.hasNetworkConfig()) return false; + if (hasNetworkConfig()) { + if (!getNetworkConfig() + .equals(other.getNetworkConfig())) return false; + } + if (!getSelfLink() + .equals(other.getSelfLink())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; + if (!getInstanceGroupUrlsList() + .equals(other.getInstanceGroupUrlsList())) return false; + 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 (hasPlacementPolicy() != other.hasPlacementPolicy()) return false; + if (hasPlacementPolicy()) { + if (!getPlacementPolicy() + .equals(other.getPlacementPolicy())) return false; + } + if (hasUpdateInfo() != other.hasUpdateInfo()) return false; + if (hasUpdateInfo()) { + if (!getUpdateInfo() + .equals(other.getUpdateInfo())) return false; + } + if (!getEtag() + .equals(other.getEtag())) return false; + if (hasQueuedProvisioning() != other.hasQueuedProvisioning()) return false; + if (hasQueuedProvisioning()) { + if (!getQueuedProvisioning() + .equals(other.getQueuedProvisioning())) return false; + } + if (hasBestEffortProvisioning() != other.hasBestEffortProvisioning()) return false; + if (hasBestEffortProvisioning()) { + if (!getBestEffortProvisioning() + .equals(other.getBestEffortProvisioning())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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(); + } + if (hasNetworkConfig()) { + hash = (37 * hash) + NETWORK_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNetworkConfig().hashCode(); + } + hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; + hash = (53 * hash) + getSelfLink().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + 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(); + } + if (hasPlacementPolicy()) { + hash = (37 * hash) + PLACEMENT_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getPlacementPolicy().hashCode(); + } + if (hasUpdateInfo()) { + hash = (37 * hash) + UPDATE_INFO_FIELD_NUMBER; + hash = (53 * hash) + getUpdateInfo().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + if (hasQueuedProvisioning()) { + hash = (37 * hash) + QUEUED_PROVISIONING_FIELD_NUMBER; + hash = (53 * hash) + getQueuedProvisioning().hashCode(); + } + if (hasBestEffortProvisioning()) { + hash = (37 * hash) + BEST_EFFORT_PROVISIONING_FIELD_NUMBER; + hash = (53 * hash) + getBestEffortProvisioning().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.NodePool parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.NodePool parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.NodePool parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodePool parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodePool parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.NodePool parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.NodePool parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NodePool parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.NodePool prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new 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.v1.NodePool} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.NodePool) + com.google.container.v1.NodePoolOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodePool.class, com.google.container.v1.NodePool.Builder.class); + } + + // Construct using com.google.container.v1.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) { + getConfigFieldBuilder(); + getNetworkConfigFieldBuilder(); + getAutoscalingFieldBuilder(); + getManagementFieldBuilder(); + getMaxPodsConstraintFieldBuilder(); + getConditionsFieldBuilder(); + getUpgradeSettingsFieldBuilder(); + getPlacementPolicyFieldBuilder(); + getUpdateInfoFieldBuilder(); + getQueuedProvisioningFieldBuilder(); + getBestEffortProvisioningFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + config_ = null; + if (configBuilder_ != null) { + configBuilder_.dispose(); + configBuilder_ = null; + } + initialNodeCount_ = 0; + locations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + networkConfig_ = null; + if (networkConfigBuilder_ != null) { + networkConfigBuilder_.dispose(); + networkConfigBuilder_ = null; + } + selfLink_ = ""; + version_ = ""; + instanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + status_ = 0; + statusMessage_ = ""; + autoscaling_ = null; + if (autoscalingBuilder_ != null) { + autoscalingBuilder_.dispose(); + autoscalingBuilder_ = null; + } + management_ = null; + if (managementBuilder_ != null) { + managementBuilder_.dispose(); + managementBuilder_ = null; + } + maxPodsConstraint_ = null; + if (maxPodsConstraintBuilder_ != null) { + maxPodsConstraintBuilder_.dispose(); + maxPodsConstraintBuilder_ = null; + } + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + } else { + conditions_ = null; + conditionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00002000); + podIpv4CidrSize_ = 0; + upgradeSettings_ = null; + if (upgradeSettingsBuilder_ != null) { + upgradeSettingsBuilder_.dispose(); + upgradeSettingsBuilder_ = null; + } + placementPolicy_ = null; + if (placementPolicyBuilder_ != null) { + placementPolicyBuilder_.dispose(); + placementPolicyBuilder_ = null; + } + updateInfo_ = null; + if (updateInfoBuilder_ != null) { + updateInfoBuilder_.dispose(); + updateInfoBuilder_ = null; + } + etag_ = ""; + queuedProvisioning_ = null; + if (queuedProvisioningBuilder_ != null) { + queuedProvisioningBuilder_.dispose(); + queuedProvisioningBuilder_ = null; + } + bestEffortProvisioning_ = null; + if (bestEffortProvisioningBuilder_ != null) { + bestEffortProvisioningBuilder_.dispose(); + bestEffortProvisioningBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePool_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NodePool getDefaultInstanceForType() { + return com.google.container.v1.NodePool.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NodePool build() { + com.google.container.v1.NodePool result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NodePool buildPartial() { + com.google.container.v1.NodePool result = new com.google.container.v1.NodePool(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1.NodePool result) { + if (conditionsBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + bitField0_ = (bitField0_ & ~0x00002000); + } + result.conditions_ = conditions_; + } else { + result.conditions_ = conditionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1.NodePool result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.config_ = configBuilder_ == null + ? config_ + : configBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.initialNodeCount_ = initialNodeCount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + locations_.makeImmutable(); + result.locations_ = locations_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.networkConfig_ = networkConfigBuilder_ == null + ? networkConfig_ + : networkConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.selfLink_ = selfLink_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.version_ = version_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + instanceGroupUrls_.makeImmutable(); + result.instanceGroupUrls_ = instanceGroupUrls_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.status_ = status_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.statusMessage_ = statusMessage_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.autoscaling_ = autoscalingBuilder_ == null + ? autoscaling_ + : autoscalingBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.management_ = managementBuilder_ == null + ? management_ + : managementBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.maxPodsConstraint_ = maxPodsConstraintBuilder_ == null + ? maxPodsConstraint_ + : maxPodsConstraintBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.podIpv4CidrSize_ = podIpv4CidrSize_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.upgradeSettings_ = upgradeSettingsBuilder_ == null + ? upgradeSettings_ + : upgradeSettingsBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.placementPolicy_ = placementPolicyBuilder_ == null + ? placementPolicy_ + : placementPolicyBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.updateInfo_ = updateInfoBuilder_ == null + ? updateInfo_ + : updateInfoBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.queuedProvisioning_ = queuedProvisioningBuilder_ == null + ? queuedProvisioning_ + : queuedProvisioningBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.bestEffortProvisioning_ = bestEffortProvisioningBuilder_ == null + ? bestEffortProvisioning_ + : bestEffortProvisioningBuilder_.build(); + to_bitField0_ |= 0x00000200; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.NodePool) { + return mergeFrom((com.google.container.v1.NodePool)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NodePool other) { + if (other == com.google.container.v1.NodePool.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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_ |= 0x00000008; + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } + if (other.hasNetworkConfig()) { + mergeNetworkConfig(other.getNetworkConfig()); + } + if (!other.getSelfLink().isEmpty()) { + selfLink_ = other.selfLink_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.instanceGroupUrls_.isEmpty()) { + if (instanceGroupUrls_.isEmpty()) { + instanceGroupUrls_ = other.instanceGroupUrls_; + bitField0_ |= 0x00000080; + } else { + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.addAll(other.instanceGroupUrls_); + } + onChanged(); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + bitField0_ |= 0x00000200; + 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_ & ~0x00002000); + } else { + ensureConditionsIsMutable(); + conditions_.addAll(other.conditions_); + } + onChanged(); + } + } else { + if (!other.conditions_.isEmpty()) { + if (conditionsBuilder_.isEmpty()) { + conditionsBuilder_.dispose(); + conditionsBuilder_ = null; + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00002000); + 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()); + } + if (other.hasPlacementPolicy()) { + mergePlacementPolicy(other.getPlacementPolicy()); + } + if (other.hasUpdateInfo()) { + mergeUpdateInfo(other.getUpdateInfo()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00040000; + onChanged(); + } + if (other.hasQueuedProvisioning()) { + mergeQueuedProvisioning(other.getQueuedProvisioning()); + } + if (other.hasBestEffortProvisioning()) { + mergeBestEffortProvisioning(other.getBestEffortProvisioning()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + initialNodeCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + input.readMessage( + getAutoscalingFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 34 + case 42: { + input.readMessage( + getManagementFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 42 + case 50: { + input.readMessage( + getMaxPodsConstraintFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 50 + case 56: { + podIpv4CidrSize_ = input.readInt32(); + bitField0_ |= 0x00004000; + break; + } // case 56 + case 106: { + java.lang.String s = input.readStringRequireUtf8(); + ensureLocationsIsMutable(); + locations_.add(s); + break; + } // case 106 + case 114: { + input.readMessage( + getNetworkConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 114 + case 802: { + selfLink_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 802 + case 810: { + version_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 810 + case 818: { + java.lang.String s = input.readStringRequireUtf8(); + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.add(s); + break; + } // case 818 + case 824: { + status_ = input.readEnum(); + bitField0_ |= 0x00000100; + break; + } // case 824 + case 834: { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 834 + case 842: { + com.google.container.v1.StatusCondition m = + input.readMessage( + com.google.container.v1.StatusCondition.parser(), + extensionRegistry); + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(m); + } else { + conditionsBuilder_.addMessage(m); + } + break; + } // case 842 + case 858: { + input.readMessage( + getUpgradeSettingsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 858 + case 866: { + input.readMessage( + getPlacementPolicyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 866 + case 874: { + input.readMessage( + getUpdateInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 874 + case 882: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00040000; + break; + } // case 882 + case 898: { + input.readMessage( + getQueuedProvisioningFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00080000; + break; + } // case 898 + case 906: { + input.readMessage( + getBestEffortProvisioningFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00100000; + break; + } // case 906 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The name of the node pool.
+     * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.container.v1.NodeConfig config_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeConfig, com.google.container.v1.NodeConfig.Builder, com.google.container.v1.NodeConfigOrBuilder> configBuilder_; + /** + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1.NodeConfig config = 2; + * @return Whether the config field is set. + */ + public boolean hasConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1.NodeConfig config = 2; + * @return The config. + */ + public com.google.container.v1.NodeConfig getConfig() { + if (configBuilder_ == null) { + return config_ == null ? com.google.container.v1.NodeConfig.getDefaultInstance() : config_; + } else { + return configBuilder_.getMessage(); + } + } + /** + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1.NodeConfig config = 2; + */ + public Builder setConfig(com.google.container.v1.NodeConfig value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + config_ = value; + } else { + configBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1.NodeConfig config = 2; + */ + public Builder setConfig( + com.google.container.v1.NodeConfig.Builder builderForValue) { + if (configBuilder_ == null) { + config_ = builderForValue.build(); + } else { + configBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1.NodeConfig config = 2; + */ + public Builder mergeConfig(com.google.container.v1.NodeConfig value) { + if (configBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + config_ != null && + config_ != com.google.container.v1.NodeConfig.getDefaultInstance()) { + getConfigBuilder().mergeFrom(value); + } else { + config_ = value; + } + } else { + configBuilder_.mergeFrom(value); + } + if (config_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1.NodeConfig config = 2; + */ + public Builder clearConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + config_ = null; + if (configBuilder_ != null) { + configBuilder_.dispose(); + configBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1.NodeConfig config = 2; + */ + public com.google.container.v1.NodeConfig.Builder getConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1.NodeConfig config = 2; + */ + public com.google.container.v1.NodeConfigOrBuilder getConfigOrBuilder() { + if (configBuilder_ != null) { + return configBuilder_.getMessageOrBuilder(); + } else { + return config_ == null ? + com.google.container.v1.NodeConfig.getDefaultInstance() : config_; + } + } + /** + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1.NodeConfig config = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeConfig, com.google.container.v1.NodeConfig.Builder, com.google.container.v1.NodeConfigOrBuilder> + getConfigFieldBuilder() { + if (configBuilder_ == null) { + configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeConfig, com.google.container.v1.NodeConfig.Builder, com.google.container.v1.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; + bitField0_ |= 0x00000004; + 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() { + bitField0_ = (bitField0_ & ~0x00000004); + initialNodeCount_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList locations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureLocationsIsMutable() { + if (!locations_.isModifiable()) { + locations_ = new com.google.protobuf.LazyStringArrayList(locations_); + } + bitField0_ |= 0x00000008; + } + /** + *
+     * 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() { + locations_.makeImmutable(); + 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); + } + /** + *
+     * 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); + bitField0_ |= 0x00000008; + 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); + bitField0_ |= 0x00000008; + 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_); + bitField0_ |= 0x00000008; + 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.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; + 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); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.container.v1.NodeNetworkConfig networkConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeNetworkConfig, com.google.container.v1.NodeNetworkConfig.Builder, com.google.container.v1.NodeNetworkConfigOrBuilder> networkConfigBuilder_; + /** + *
+     * Networking configuration for this NodePool. If specified, it overrides the
+     * cluster-level defaults.
+     * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + * @return Whether the networkConfig field is set. + */ + public boolean hasNetworkConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+     * Networking configuration for this NodePool. If specified, it overrides the
+     * cluster-level defaults.
+     * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + * @return The networkConfig. + */ + public com.google.container.v1.NodeNetworkConfig getNetworkConfig() { + if (networkConfigBuilder_ == null) { + return networkConfig_ == null ? com.google.container.v1.NodeNetworkConfig.getDefaultInstance() : networkConfig_; + } else { + return networkConfigBuilder_.getMessage(); + } + } + /** + *
+     * Networking configuration for this NodePool. If specified, it overrides the
+     * cluster-level defaults.
+     * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + */ + public Builder setNetworkConfig(com.google.container.v1.NodeNetworkConfig value) { + if (networkConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkConfig_ = value; + } else { + networkConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Networking configuration for this NodePool. If specified, it overrides the
+     * cluster-level defaults.
+     * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + */ + public Builder setNetworkConfig( + com.google.container.v1.NodeNetworkConfig.Builder builderForValue) { + if (networkConfigBuilder_ == null) { + networkConfig_ = builderForValue.build(); + } else { + networkConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Networking configuration for this NodePool. If specified, it overrides the
+     * cluster-level defaults.
+     * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + */ + public Builder mergeNetworkConfig(com.google.container.v1.NodeNetworkConfig value) { + if (networkConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + networkConfig_ != null && + networkConfig_ != com.google.container.v1.NodeNetworkConfig.getDefaultInstance()) { + getNetworkConfigBuilder().mergeFrom(value); + } else { + networkConfig_ = value; + } + } else { + networkConfigBuilder_.mergeFrom(value); + } + if (networkConfig_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + *
+     * Networking configuration for this NodePool. If specified, it overrides the
+     * cluster-level defaults.
+     * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + */ + public Builder clearNetworkConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + networkConfig_ = null; + if (networkConfigBuilder_ != null) { + networkConfigBuilder_.dispose(); + networkConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Networking configuration for this NodePool. If specified, it overrides the
+     * cluster-level defaults.
+     * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + */ + public com.google.container.v1.NodeNetworkConfig.Builder getNetworkConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getNetworkConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Networking configuration for this NodePool. If specified, it overrides the
+     * cluster-level defaults.
+     * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + */ + public com.google.container.v1.NodeNetworkConfigOrBuilder getNetworkConfigOrBuilder() { + if (networkConfigBuilder_ != null) { + return networkConfigBuilder_.getMessageOrBuilder(); + } else { + return networkConfig_ == null ? + com.google.container.v1.NodeNetworkConfig.getDefaultInstance() : networkConfig_; + } + } + /** + *
+     * Networking configuration for this NodePool. If specified, it overrides the
+     * cluster-level defaults.
+     * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeNetworkConfig, com.google.container.v1.NodeNetworkConfig.Builder, com.google.container.v1.NodeNetworkConfigOrBuilder> + getNetworkConfigFieldBuilder() { + if (networkConfigBuilder_ == null) { + networkConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeNetworkConfig, com.google.container.v1.NodeNetworkConfig.Builder, com.google.container.v1.NodeNetworkConfigOrBuilder>( + getNetworkConfig(), + getParentForChildren(), + isClean()); + networkConfig_ = null; + } + return networkConfigBuilder_; + } + + private java.lang.Object selfLink_ = ""; + /** + *
+     * [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; + bitField0_ |= 0x00000020; + 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(); + bitField0_ = (bitField0_ & ~0x00000020); + 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; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + /** + *
+     * The version of Kubernetes running on this NodePool's nodes. If unspecified,
+     * it defaults as described
+     * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version).
+     * 
+ * + * 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 Kubernetes running on this NodePool's nodes. If unspecified,
+     * it defaults as described
+     * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version).
+     * 
+ * + * 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 Kubernetes running on this NodePool's nodes. If unspecified,
+     * it defaults as described
+     * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version).
+     * 
+ * + * 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; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * The version of Kubernetes running on this NodePool's nodes. If unspecified,
+     * it defaults as described
+     * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version).
+     * 
+ * + * string version = 101; + * @return This builder for chaining. + */ + public Builder clearVersion() { + version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + *
+     * The version of Kubernetes running on this NodePool's nodes. If unspecified,
+     * it defaults as described
+     * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version).
+     * 
+ * + * 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; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList instanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureInstanceGroupUrlsIsMutable() { + if (!instanceGroupUrls_.isModifiable()) { + instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(instanceGroupUrls_); + } + bitField0_ |= 0x00000080; + } + /** + *
+     * [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.
+     * During the node pool blue-green upgrade operation, the URLs contain both
+     * blue and green resources.
+     * 
+ * + * repeated string instance_group_urls = 102; + * @return A list containing the instanceGroupUrls. + */ + public com.google.protobuf.ProtocolStringList + getInstanceGroupUrlsList() { + instanceGroupUrls_.makeImmutable(); + 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.
+     * During the node pool blue-green upgrade operation, the URLs contain both
+     * blue and green resources.
+     * 
+ * + * 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.
+     * During the node pool blue-green upgrade operation, the URLs contain both
+     * blue and green resources.
+     * 
+ * + * 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.
+     * During the node pool blue-green upgrade operation, the URLs contain both
+     * blue and green resources.
+     * 
+ * + * 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.
+     * During the node pool blue-green upgrade operation, the URLs contain both
+     * blue and green resources.
+     * 
+ * + * 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); + bitField0_ |= 0x00000080; + 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.
+     * During the node pool blue-green upgrade operation, the URLs contain both
+     * blue and green resources.
+     * 
+ * + * 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); + bitField0_ |= 0x00000080; + 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.
+     * During the node pool blue-green upgrade operation, the URLs contain both
+     * blue and green resources.
+     * 
+ * + * 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_); + bitField0_ |= 0x00000080; + 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.
+     * During the node pool blue-green upgrade operation, the URLs contain both
+     * blue and green resources.
+     * 
+ * + * repeated string instance_group_urls = 102; + * @return This builder for chaining. + */ + public Builder clearInstanceGroupUrls() { + instanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080);; + 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.
+     * During the node pool blue-green upgrade operation, the URLs contain both
+     * blue and green resources.
+     * 
+ * + * 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); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private int status_ = 0; + /** + *
+     * [Output only] The status of the nodes in this pool instance.
+     * 
+ * + * .google.container.v1.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.v1.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; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * [Output only] The status of the nodes in this pool instance.
+     * 
+ * + * .google.container.v1.NodePool.Status status = 103; + * @return The status. + */ + @java.lang.Override + public com.google.container.v1.NodePool.Status getStatus() { + com.google.container.v1.NodePool.Status result = com.google.container.v1.NodePool.Status.forNumber(status_); + return result == null ? com.google.container.v1.NodePool.Status.UNRECOGNIZED : result; + } + /** + *
+     * [Output only] The status of the nodes in this pool instance.
+     * 
+ * + * .google.container.v1.NodePool.Status status = 103; + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(com.google.container.v1.NodePool.Status value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * [Output only] The status of the nodes in this pool instance.
+     * 
+ * + * .google.container.v1.NodePool.Status status = 103; + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000100); + 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]; + * @deprecated google.container.v1.NodePool.status_message is deprecated. + * See google/container/v1/cluster_service.proto;l=3552 + * @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]; + * @deprecated google.container.v1.NodePool.status_message is deprecated. + * See google/container/v1/cluster_service.proto;l=3552 + * @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]; + * @deprecated google.container.v1.NodePool.status_message is deprecated. + * See google/container/v1/cluster_service.proto;l=3552 + * @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; + bitField0_ |= 0x00000200; + 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]; + * @deprecated google.container.v1.NodePool.status_message is deprecated. + * See google/container/v1/cluster_service.proto;l=3552 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearStatusMessage() { + statusMessage_ = getDefaultInstance().getStatusMessage(); + bitField0_ = (bitField0_ & ~0x00000200); + 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]; + * @deprecated google.container.v1.NodePool.status_message is deprecated. + * See google/container/v1/cluster_service.proto;l=3552 + * @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; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private com.google.container.v1.NodePoolAutoscaling autoscaling_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePoolAutoscaling, com.google.container.v1.NodePoolAutoscaling.Builder, com.google.container.v1.NodePoolAutoscalingOrBuilder> autoscalingBuilder_; + /** + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1.NodePoolAutoscaling autoscaling = 4; + * @return Whether the autoscaling field is set. + */ + public boolean hasAutoscaling() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1.NodePoolAutoscaling autoscaling = 4; + * @return The autoscaling. + */ + public com.google.container.v1.NodePoolAutoscaling getAutoscaling() { + if (autoscalingBuilder_ == null) { + return autoscaling_ == null ? com.google.container.v1.NodePoolAutoscaling.getDefaultInstance() : autoscaling_; + } else { + return autoscalingBuilder_.getMessage(); + } + } + /** + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1.NodePoolAutoscaling autoscaling = 4; + */ + public Builder setAutoscaling(com.google.container.v1.NodePoolAutoscaling value) { + if (autoscalingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autoscaling_ = value; + } else { + autoscalingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1.NodePoolAutoscaling autoscaling = 4; + */ + public Builder setAutoscaling( + com.google.container.v1.NodePoolAutoscaling.Builder builderForValue) { + if (autoscalingBuilder_ == null) { + autoscaling_ = builderForValue.build(); + } else { + autoscalingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1.NodePoolAutoscaling autoscaling = 4; + */ + public Builder mergeAutoscaling(com.google.container.v1.NodePoolAutoscaling value) { + if (autoscalingBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) && + autoscaling_ != null && + autoscaling_ != com.google.container.v1.NodePoolAutoscaling.getDefaultInstance()) { + getAutoscalingBuilder().mergeFrom(value); + } else { + autoscaling_ = value; + } + } else { + autoscalingBuilder_.mergeFrom(value); + } + if (autoscaling_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + /** + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1.NodePoolAutoscaling autoscaling = 4; + */ + public Builder clearAutoscaling() { + bitField0_ = (bitField0_ & ~0x00000400); + autoscaling_ = null; + if (autoscalingBuilder_ != null) { + autoscalingBuilder_.dispose(); + autoscalingBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1.NodePoolAutoscaling autoscaling = 4; + */ + public com.google.container.v1.NodePoolAutoscaling.Builder getAutoscalingBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getAutoscalingFieldBuilder().getBuilder(); + } + /** + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1.NodePoolAutoscaling autoscaling = 4; + */ + public com.google.container.v1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder() { + if (autoscalingBuilder_ != null) { + return autoscalingBuilder_.getMessageOrBuilder(); + } else { + return autoscaling_ == null ? + com.google.container.v1.NodePoolAutoscaling.getDefaultInstance() : autoscaling_; + } + } + /** + *
+     * Autoscaler configuration for this NodePool. Autoscaler is enabled
+     * only if a valid configuration is present.
+     * 
+ * + * .google.container.v1.NodePoolAutoscaling autoscaling = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePoolAutoscaling, com.google.container.v1.NodePoolAutoscaling.Builder, com.google.container.v1.NodePoolAutoscalingOrBuilder> + getAutoscalingFieldBuilder() { + if (autoscalingBuilder_ == null) { + autoscalingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePoolAutoscaling, com.google.container.v1.NodePoolAutoscaling.Builder, com.google.container.v1.NodePoolAutoscalingOrBuilder>( + getAutoscaling(), + getParentForChildren(), + isClean()); + autoscaling_ = null; + } + return autoscalingBuilder_; + } + + private com.google.container.v1.NodeManagement management_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeManagement, com.google.container.v1.NodeManagement.Builder, com.google.container.v1.NodeManagementOrBuilder> managementBuilder_; + /** + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1.NodeManagement management = 5; + * @return Whether the management field is set. + */ + public boolean hasManagement() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1.NodeManagement management = 5; + * @return The management. + */ + public com.google.container.v1.NodeManagement getManagement() { + if (managementBuilder_ == null) { + return management_ == null ? com.google.container.v1.NodeManagement.getDefaultInstance() : management_; + } else { + return managementBuilder_.getMessage(); + } + } + /** + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1.NodeManagement management = 5; + */ + public Builder setManagement(com.google.container.v1.NodeManagement value) { + if (managementBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + management_ = value; + } else { + managementBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1.NodeManagement management = 5; + */ + public Builder setManagement( + com.google.container.v1.NodeManagement.Builder builderForValue) { + if (managementBuilder_ == null) { + management_ = builderForValue.build(); + } else { + managementBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1.NodeManagement management = 5; + */ + public Builder mergeManagement(com.google.container.v1.NodeManagement value) { + if (managementBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) && + management_ != null && + management_ != com.google.container.v1.NodeManagement.getDefaultInstance()) { + getManagementBuilder().mergeFrom(value); + } else { + management_ = value; + } + } else { + managementBuilder_.mergeFrom(value); + } + if (management_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + /** + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1.NodeManagement management = 5; + */ + public Builder clearManagement() { + bitField0_ = (bitField0_ & ~0x00000800); + management_ = null; + if (managementBuilder_ != null) { + managementBuilder_.dispose(); + managementBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1.NodeManagement management = 5; + */ + public com.google.container.v1.NodeManagement.Builder getManagementBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return getManagementFieldBuilder().getBuilder(); + } + /** + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1.NodeManagement management = 5; + */ + public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() { + if (managementBuilder_ != null) { + return managementBuilder_.getMessageOrBuilder(); + } else { + return management_ == null ? + com.google.container.v1.NodeManagement.getDefaultInstance() : management_; + } + } + /** + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1.NodeManagement management = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeManagement, com.google.container.v1.NodeManagement.Builder, com.google.container.v1.NodeManagementOrBuilder> + getManagementFieldBuilder() { + if (managementBuilder_ == null) { + managementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeManagement, com.google.container.v1.NodeManagement.Builder, com.google.container.v1.NodeManagementOrBuilder>( + getManagement(), + getParentForChildren(), + isClean()); + management_ = null; + } + return managementBuilder_; + } + + private com.google.container.v1.MaxPodsConstraint maxPodsConstraint_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MaxPodsConstraint, com.google.container.v1.MaxPodsConstraint.Builder, com.google.container.v1.MaxPodsConstraintOrBuilder> maxPodsConstraintBuilder_; + /** + *
+     * The constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool.
+     * 
+ * + * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; + * @return Whether the maxPodsConstraint field is set. + */ + public boolean hasMaxPodsConstraint() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + *
+     * The constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool.
+     * 
+ * + * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; + * @return The maxPodsConstraint. + */ + public com.google.container.v1.MaxPodsConstraint getMaxPodsConstraint() { + if (maxPodsConstraintBuilder_ == null) { + return maxPodsConstraint_ == null ? com.google.container.v1.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.v1.MaxPodsConstraint max_pods_constraint = 6; + */ + public Builder setMaxPodsConstraint(com.google.container.v1.MaxPodsConstraint value) { + if (maxPodsConstraintBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maxPodsConstraint_ = value; + } else { + maxPodsConstraintBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + *
+     * The constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool.
+     * 
+ * + * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; + */ + public Builder setMaxPodsConstraint( + com.google.container.v1.MaxPodsConstraint.Builder builderForValue) { + if (maxPodsConstraintBuilder_ == null) { + maxPodsConstraint_ = builderForValue.build(); + } else { + maxPodsConstraintBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + *
+     * The constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool.
+     * 
+ * + * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; + */ + public Builder mergeMaxPodsConstraint(com.google.container.v1.MaxPodsConstraint value) { + if (maxPodsConstraintBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) && + maxPodsConstraint_ != null && + maxPodsConstraint_ != com.google.container.v1.MaxPodsConstraint.getDefaultInstance()) { + getMaxPodsConstraintBuilder().mergeFrom(value); + } else { + maxPodsConstraint_ = value; + } + } else { + maxPodsConstraintBuilder_.mergeFrom(value); + } + if (maxPodsConstraint_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; + } + /** + *
+     * The constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool.
+     * 
+ * + * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; + */ + public Builder clearMaxPodsConstraint() { + bitField0_ = (bitField0_ & ~0x00001000); + maxPodsConstraint_ = null; + if (maxPodsConstraintBuilder_ != null) { + maxPodsConstraintBuilder_.dispose(); + maxPodsConstraintBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The constraint on the maximum number of pods that can be run
+     * simultaneously on a node in the node pool.
+     * 
+ * + * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; + */ + public com.google.container.v1.MaxPodsConstraint.Builder getMaxPodsConstraintBuilder() { + bitField0_ |= 0x00001000; + 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.v1.MaxPodsConstraint max_pods_constraint = 6; + */ + public com.google.container.v1.MaxPodsConstraintOrBuilder getMaxPodsConstraintOrBuilder() { + if (maxPodsConstraintBuilder_ != null) { + return maxPodsConstraintBuilder_.getMessageOrBuilder(); + } else { + return maxPodsConstraint_ == null ? + com.google.container.v1.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.v1.MaxPodsConstraint max_pods_constraint = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MaxPodsConstraint, com.google.container.v1.MaxPodsConstraint.Builder, com.google.container.v1.MaxPodsConstraintOrBuilder> + getMaxPodsConstraintFieldBuilder() { + if (maxPodsConstraintBuilder_ == null) { + maxPodsConstraintBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MaxPodsConstraint, com.google.container.v1.MaxPodsConstraint.Builder, com.google.container.v1.MaxPodsConstraintOrBuilder>( + getMaxPodsConstraint(), + getParentForChildren(), + isClean()); + maxPodsConstraint_ = null; + } + return maxPodsConstraintBuilder_; + } + + private java.util.List conditions_ = + java.util.Collections.emptyList(); + private void ensureConditionsIsMutable() { + if (!((bitField0_ & 0x00002000) != 0)) { + conditions_ = new java.util.ArrayList(conditions_); + bitField0_ |= 0x00002000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.StatusCondition, com.google.container.v1.StatusCondition.Builder, com.google.container.v1.StatusConditionOrBuilder> conditionsBuilder_; + + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1.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.v1.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.v1.StatusCondition conditions = 105; + */ + public com.google.container.v1.StatusCondition getConditions(int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); + } else { + return conditionsBuilder_.getMessage(index); + } + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 105; + */ + public Builder setConditions( + int index, com.google.container.v1.StatusCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.set(index, value); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 105; + */ + public Builder setConditions( + int index, com.google.container.v1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.set(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 105; + */ + public Builder addConditions(com.google.container.v1.StatusCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(value); + onChanged(); + } else { + conditionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 105; + */ + public Builder addConditions( + int index, com.google.container.v1.StatusCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(index, value); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 105; + */ + public Builder addConditions( + com.google.container.v1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 105; + */ + public Builder addConditions( + int index, com.google.container.v1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1.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.v1.StatusCondition conditions = 105; + */ + public Builder clearConditions() { + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + } else { + conditionsBuilder_.clear(); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1.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.v1.StatusCondition conditions = 105; + */ + public com.google.container.v1.StatusCondition.Builder getConditionsBuilder( + int index) { + return getConditionsFieldBuilder().getBuilder(index); + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 105; + */ + public com.google.container.v1.StatusConditionOrBuilder getConditionsOrBuilder( + int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); } else { + return conditionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1.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.v1.StatusCondition conditions = 105; + */ + public com.google.container.v1.StatusCondition.Builder addConditionsBuilder() { + return getConditionsFieldBuilder().addBuilder( + com.google.container.v1.StatusCondition.getDefaultInstance()); + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 105; + */ + public com.google.container.v1.StatusCondition.Builder addConditionsBuilder( + int index) { + return getConditionsFieldBuilder().addBuilder( + index, com.google.container.v1.StatusCondition.getDefaultInstance()); + } + /** + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 105; + */ + public java.util.List + getConditionsBuilderList() { + return getConditionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.StatusCondition, com.google.container.v1.StatusCondition.Builder, com.google.container.v1.StatusConditionOrBuilder> + getConditionsFieldBuilder() { + if (conditionsBuilder_ == null) { + conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.StatusCondition, com.google.container.v1.StatusCondition.Builder, com.google.container.v1.StatusConditionOrBuilder>( + conditions_, + ((bitField0_ & 0x00002000) != 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; + bitField0_ |= 0x00004000; + 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() { + bitField0_ = (bitField0_ & ~0x00004000); + podIpv4CidrSize_ = 0; + onChanged(); + return this; + } + + private com.google.container.v1.NodePool.UpgradeSettings upgradeSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool.UpgradeSettings, com.google.container.v1.NodePool.UpgradeSettings.Builder, com.google.container.v1.NodePool.UpgradeSettingsOrBuilder> upgradeSettingsBuilder_; + /** + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + * @return Whether the upgradeSettings field is set. + */ + public boolean hasUpgradeSettings() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + * @return The upgradeSettings. + */ + public com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings() { + if (upgradeSettingsBuilder_ == null) { + return upgradeSettings_ == null ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() : upgradeSettings_; + } else { + return upgradeSettingsBuilder_.getMessage(); + } + } + /** + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + public Builder setUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value) { + if (upgradeSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + upgradeSettings_ = value; + } else { + upgradeSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + public Builder setUpgradeSettings( + com.google.container.v1.NodePool.UpgradeSettings.Builder builderForValue) { + if (upgradeSettingsBuilder_ == null) { + upgradeSettings_ = builderForValue.build(); + } else { + upgradeSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + public Builder mergeUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value) { + if (upgradeSettingsBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) && + upgradeSettings_ != null && + upgradeSettings_ != com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance()) { + getUpgradeSettingsBuilder().mergeFrom(value); + } else { + upgradeSettings_ = value; + } + } else { + upgradeSettingsBuilder_.mergeFrom(value); + } + if (upgradeSettings_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } + return this; + } + /** + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + public Builder clearUpgradeSettings() { + bitField0_ = (bitField0_ & ~0x00008000); + upgradeSettings_ = null; + if (upgradeSettingsBuilder_ != null) { + upgradeSettingsBuilder_.dispose(); + upgradeSettingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + public com.google.container.v1.NodePool.UpgradeSettings.Builder getUpgradeSettingsBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return getUpgradeSettingsFieldBuilder().getBuilder(); + } + /** + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { + if (upgradeSettingsBuilder_ != null) { + return upgradeSettingsBuilder_.getMessageOrBuilder(); + } else { + return upgradeSettings_ == null ? + com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() : upgradeSettings_; + } + } + /** + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool.UpgradeSettings, com.google.container.v1.NodePool.UpgradeSettings.Builder, com.google.container.v1.NodePool.UpgradeSettingsOrBuilder> + getUpgradeSettingsFieldBuilder() { + if (upgradeSettingsBuilder_ == null) { + upgradeSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool.UpgradeSettings, com.google.container.v1.NodePool.UpgradeSettings.Builder, com.google.container.v1.NodePool.UpgradeSettingsOrBuilder>( + getUpgradeSettings(), + getParentForChildren(), + isClean()); + upgradeSettings_ = null; + } + return upgradeSettingsBuilder_; + } + + private com.google.container.v1.NodePool.PlacementPolicy placementPolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool.PlacementPolicy, com.google.container.v1.NodePool.PlacementPolicy.Builder, com.google.container.v1.NodePool.PlacementPolicyOrBuilder> placementPolicyBuilder_; + /** + *
+     * Specifies the node placement policy.
+     * 
+ * + * .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; + * @return Whether the placementPolicy field is set. + */ + public boolean hasPlacementPolicy() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + *
+     * Specifies the node placement policy.
+     * 
+ * + * .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; + * @return The placementPolicy. + */ + public com.google.container.v1.NodePool.PlacementPolicy getPlacementPolicy() { + if (placementPolicyBuilder_ == null) { + return placementPolicy_ == null ? com.google.container.v1.NodePool.PlacementPolicy.getDefaultInstance() : placementPolicy_; + } else { + return placementPolicyBuilder_.getMessage(); + } + } + /** + *
+     * Specifies the node placement policy.
+     * 
+ * + * .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; + */ + public Builder setPlacementPolicy(com.google.container.v1.NodePool.PlacementPolicy value) { + if (placementPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + placementPolicy_ = value; + } else { + placementPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + *
+     * Specifies the node placement policy.
+     * 
+ * + * .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; + */ + public Builder setPlacementPolicy( + com.google.container.v1.NodePool.PlacementPolicy.Builder builderForValue) { + if (placementPolicyBuilder_ == null) { + placementPolicy_ = builderForValue.build(); + } else { + placementPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + *
+     * Specifies the node placement policy.
+     * 
+ * + * .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; + */ + public Builder mergePlacementPolicy(com.google.container.v1.NodePool.PlacementPolicy value) { + if (placementPolicyBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0) && + placementPolicy_ != null && + placementPolicy_ != com.google.container.v1.NodePool.PlacementPolicy.getDefaultInstance()) { + getPlacementPolicyBuilder().mergeFrom(value); + } else { + placementPolicy_ = value; + } + } else { + placementPolicyBuilder_.mergeFrom(value); + } + if (placementPolicy_ != null) { + bitField0_ |= 0x00010000; + onChanged(); + } + return this; + } + /** + *
+     * Specifies the node placement policy.
+     * 
+ * + * .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; + */ + public Builder clearPlacementPolicy() { + bitField0_ = (bitField0_ & ~0x00010000); + placementPolicy_ = null; + if (placementPolicyBuilder_ != null) { + placementPolicyBuilder_.dispose(); + placementPolicyBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Specifies the node placement policy.
+     * 
+ * + * .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; + */ + public com.google.container.v1.NodePool.PlacementPolicy.Builder getPlacementPolicyBuilder() { + bitField0_ |= 0x00010000; + onChanged(); + return getPlacementPolicyFieldBuilder().getBuilder(); + } + /** + *
+     * Specifies the node placement policy.
+     * 
+ * + * .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; + */ + public com.google.container.v1.NodePool.PlacementPolicyOrBuilder getPlacementPolicyOrBuilder() { + if (placementPolicyBuilder_ != null) { + return placementPolicyBuilder_.getMessageOrBuilder(); + } else { + return placementPolicy_ == null ? + com.google.container.v1.NodePool.PlacementPolicy.getDefaultInstance() : placementPolicy_; + } + } + /** + *
+     * Specifies the node placement policy.
+     * 
+ * + * .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool.PlacementPolicy, com.google.container.v1.NodePool.PlacementPolicy.Builder, com.google.container.v1.NodePool.PlacementPolicyOrBuilder> + getPlacementPolicyFieldBuilder() { + if (placementPolicyBuilder_ == null) { + placementPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool.PlacementPolicy, com.google.container.v1.NodePool.PlacementPolicy.Builder, com.google.container.v1.NodePool.PlacementPolicyOrBuilder>( + getPlacementPolicy(), + getParentForChildren(), + isClean()); + placementPolicy_ = null; + } + return placementPolicyBuilder_; + } + + private com.google.container.v1.NodePool.UpdateInfo updateInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool.UpdateInfo, com.google.container.v1.NodePool.UpdateInfo.Builder, com.google.container.v1.NodePool.UpdateInfoOrBuilder> updateInfoBuilder_; + /** + *
+     * Output only. [Output only] Update info contains relevant information during
+     * a node pool update.
+     * 
+ * + * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updateInfo field is set. + */ + public boolean hasUpdateInfo() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + *
+     * Output only. [Output only] Update info contains relevant information during
+     * a node pool update.
+     * 
+ * + * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updateInfo. + */ + public com.google.container.v1.NodePool.UpdateInfo getUpdateInfo() { + if (updateInfoBuilder_ == null) { + return updateInfo_ == null ? com.google.container.v1.NodePool.UpdateInfo.getDefaultInstance() : updateInfo_; + } else { + return updateInfoBuilder_.getMessage(); + } + } + /** + *
+     * Output only. [Output only] Update info contains relevant information during
+     * a node pool update.
+     * 
+ * + * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setUpdateInfo(com.google.container.v1.NodePool.UpdateInfo value) { + if (updateInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateInfo_ = value; + } else { + updateInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + *
+     * Output only. [Output only] Update info contains relevant information during
+     * a node pool update.
+     * 
+ * + * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setUpdateInfo( + com.google.container.v1.NodePool.UpdateInfo.Builder builderForValue) { + if (updateInfoBuilder_ == null) { + updateInfo_ = builderForValue.build(); + } else { + updateInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + *
+     * Output only. [Output only] Update info contains relevant information during
+     * a node pool update.
+     * 
+ * + * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeUpdateInfo(com.google.container.v1.NodePool.UpdateInfo value) { + if (updateInfoBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) && + updateInfo_ != null && + updateInfo_ != com.google.container.v1.NodePool.UpdateInfo.getDefaultInstance()) { + getUpdateInfoBuilder().mergeFrom(value); + } else { + updateInfo_ = value; + } + } else { + updateInfoBuilder_.mergeFrom(value); + } + if (updateInfo_ != null) { + bitField0_ |= 0x00020000; + onChanged(); + } + return this; + } + /** + *
+     * Output only. [Output only] Update info contains relevant information during
+     * a node pool update.
+     * 
+ * + * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearUpdateInfo() { + bitField0_ = (bitField0_ & ~0x00020000); + updateInfo_ = null; + if (updateInfoBuilder_ != null) { + updateInfoBuilder_.dispose(); + updateInfoBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Output only. [Output only] Update info contains relevant information during
+     * a node pool update.
+     * 
+ * + * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.container.v1.NodePool.UpdateInfo.Builder getUpdateInfoBuilder() { + bitField0_ |= 0x00020000; + onChanged(); + return getUpdateInfoFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. [Output only] Update info contains relevant information during
+     * a node pool update.
+     * 
+ * + * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.container.v1.NodePool.UpdateInfoOrBuilder getUpdateInfoOrBuilder() { + if (updateInfoBuilder_ != null) { + return updateInfoBuilder_.getMessageOrBuilder(); + } else { + return updateInfo_ == null ? + com.google.container.v1.NodePool.UpdateInfo.getDefaultInstance() : updateInfo_; + } + } + /** + *
+     * Output only. [Output only] Update info contains relevant information during
+     * a node pool update.
+     * 
+ * + * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool.UpdateInfo, com.google.container.v1.NodePool.UpdateInfo.Builder, com.google.container.v1.NodePool.UpdateInfoOrBuilder> + getUpdateInfoFieldBuilder() { + if (updateInfoBuilder_ == null) { + updateInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool.UpdateInfo, com.google.container.v1.NodePool.UpdateInfo.Builder, com.google.container.v1.NodePool.UpdateInfoOrBuilder>( + getUpdateInfo(), + getParentForChildren(), + isClean()); + updateInfo_ = null; + } + return updateInfoBuilder_; + } + + private java.lang.Object etag_ = ""; + /** + *
+     * This checksum is computed by the server based on the value of node pool
+     * fields, and may be sent on update requests to ensure the client has an
+     * up-to-date value before proceeding.
+     * 
+ * + * string etag = 110; + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * This checksum is computed by the server based on the value of node pool
+     * fields, and may be sent on update requests to ensure the client has an
+     * up-to-date value before proceeding.
+     * 
+ * + * string etag = 110; + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString + getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * This checksum is computed by the server based on the value of node pool
+     * fields, and may be sent on update requests to ensure the client has an
+     * up-to-date value before proceeding.
+     * 
+ * + * string etag = 110; + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + etag_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + *
+     * This checksum is computed by the server based on the value of node pool
+     * fields, and may be sent on update requests to ensure the client has an
+     * up-to-date value before proceeding.
+     * 
+ * + * string etag = 110; + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00040000); + onChanged(); + return this; + } + /** + *
+     * This checksum is computed by the server based on the value of node pool
+     * fields, and may be sent on update requests to ensure the client has an
+     * up-to-date value before proceeding.
+     * 
+ * + * string etag = 110; + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + private com.google.container.v1.NodePool.QueuedProvisioning queuedProvisioning_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool.QueuedProvisioning, com.google.container.v1.NodePool.QueuedProvisioning.Builder, com.google.container.v1.NodePool.QueuedProvisioningOrBuilder> queuedProvisioningBuilder_; + /** + *
+     * Specifies the configuration of queued provisioning.
+     * 
+ * + * .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; + * @return Whether the queuedProvisioning field is set. + */ + public boolean hasQueuedProvisioning() { + return ((bitField0_ & 0x00080000) != 0); + } + /** + *
+     * Specifies the configuration of queued provisioning.
+     * 
+ * + * .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; + * @return The queuedProvisioning. + */ + public com.google.container.v1.NodePool.QueuedProvisioning getQueuedProvisioning() { + if (queuedProvisioningBuilder_ == null) { + return queuedProvisioning_ == null ? com.google.container.v1.NodePool.QueuedProvisioning.getDefaultInstance() : queuedProvisioning_; + } else { + return queuedProvisioningBuilder_.getMessage(); + } + } + /** + *
+     * Specifies the configuration of queued provisioning.
+     * 
+ * + * .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; + */ + public Builder setQueuedProvisioning(com.google.container.v1.NodePool.QueuedProvisioning value) { + if (queuedProvisioningBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + queuedProvisioning_ = value; + } else { + queuedProvisioningBuilder_.setMessage(value); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + *
+     * Specifies the configuration of queued provisioning.
+     * 
+ * + * .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; + */ + public Builder setQueuedProvisioning( + com.google.container.v1.NodePool.QueuedProvisioning.Builder builderForValue) { + if (queuedProvisioningBuilder_ == null) { + queuedProvisioning_ = builderForValue.build(); + } else { + queuedProvisioningBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + *
+     * Specifies the configuration of queued provisioning.
+     * 
+ * + * .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; + */ + public Builder mergeQueuedProvisioning(com.google.container.v1.NodePool.QueuedProvisioning value) { + if (queuedProvisioningBuilder_ == null) { + if (((bitField0_ & 0x00080000) != 0) && + queuedProvisioning_ != null && + queuedProvisioning_ != com.google.container.v1.NodePool.QueuedProvisioning.getDefaultInstance()) { + getQueuedProvisioningBuilder().mergeFrom(value); + } else { + queuedProvisioning_ = value; + } + } else { + queuedProvisioningBuilder_.mergeFrom(value); + } + if (queuedProvisioning_ != null) { + bitField0_ |= 0x00080000; + onChanged(); + } + return this; + } + /** + *
+     * Specifies the configuration of queued provisioning.
+     * 
+ * + * .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; + */ + public Builder clearQueuedProvisioning() { + bitField0_ = (bitField0_ & ~0x00080000); + queuedProvisioning_ = null; + if (queuedProvisioningBuilder_ != null) { + queuedProvisioningBuilder_.dispose(); + queuedProvisioningBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Specifies the configuration of queued provisioning.
+     * 
+ * + * .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; + */ + public com.google.container.v1.NodePool.QueuedProvisioning.Builder getQueuedProvisioningBuilder() { + bitField0_ |= 0x00080000; + onChanged(); + return getQueuedProvisioningFieldBuilder().getBuilder(); + } + /** + *
+     * Specifies the configuration of queued provisioning.
+     * 
+ * + * .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; + */ + public com.google.container.v1.NodePool.QueuedProvisioningOrBuilder getQueuedProvisioningOrBuilder() { + if (queuedProvisioningBuilder_ != null) { + return queuedProvisioningBuilder_.getMessageOrBuilder(); + } else { + return queuedProvisioning_ == null ? + com.google.container.v1.NodePool.QueuedProvisioning.getDefaultInstance() : queuedProvisioning_; + } + } + /** + *
+     * Specifies the configuration of queued provisioning.
+     * 
+ * + * .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool.QueuedProvisioning, com.google.container.v1.NodePool.QueuedProvisioning.Builder, com.google.container.v1.NodePool.QueuedProvisioningOrBuilder> + getQueuedProvisioningFieldBuilder() { + if (queuedProvisioningBuilder_ == null) { + queuedProvisioningBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool.QueuedProvisioning, com.google.container.v1.NodePool.QueuedProvisioning.Builder, com.google.container.v1.NodePool.QueuedProvisioningOrBuilder>( + getQueuedProvisioning(), + getParentForChildren(), + isClean()); + queuedProvisioning_ = null; + } + return queuedProvisioningBuilder_; + } + + private com.google.container.v1.BestEffortProvisioning bestEffortProvisioning_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.BestEffortProvisioning, com.google.container.v1.BestEffortProvisioning.Builder, com.google.container.v1.BestEffortProvisioningOrBuilder> bestEffortProvisioningBuilder_; + /** + *
+     * Enable best effort provisioning for nodes
+     * 
+ * + * .google.container.v1.BestEffortProvisioning best_effort_provisioning = 113; + * @return Whether the bestEffortProvisioning field is set. + */ + public boolean hasBestEffortProvisioning() { + return ((bitField0_ & 0x00100000) != 0); + } + /** + *
+     * Enable best effort provisioning for nodes
+     * 
+ * + * .google.container.v1.BestEffortProvisioning best_effort_provisioning = 113; + * @return The bestEffortProvisioning. + */ + public com.google.container.v1.BestEffortProvisioning getBestEffortProvisioning() { + if (bestEffortProvisioningBuilder_ == null) { + return bestEffortProvisioning_ == null ? com.google.container.v1.BestEffortProvisioning.getDefaultInstance() : bestEffortProvisioning_; + } else { + return bestEffortProvisioningBuilder_.getMessage(); + } + } + /** + *
+     * Enable best effort provisioning for nodes
+     * 
+ * + * .google.container.v1.BestEffortProvisioning best_effort_provisioning = 113; + */ + public Builder setBestEffortProvisioning(com.google.container.v1.BestEffortProvisioning value) { + if (bestEffortProvisioningBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + bestEffortProvisioning_ = value; + } else { + bestEffortProvisioningBuilder_.setMessage(value); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + *
+     * Enable best effort provisioning for nodes
+     * 
+ * + * .google.container.v1.BestEffortProvisioning best_effort_provisioning = 113; + */ + public Builder setBestEffortProvisioning( + com.google.container.v1.BestEffortProvisioning.Builder builderForValue) { + if (bestEffortProvisioningBuilder_ == null) { + bestEffortProvisioning_ = builderForValue.build(); + } else { + bestEffortProvisioningBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + *
+     * Enable best effort provisioning for nodes
+     * 
+ * + * .google.container.v1.BestEffortProvisioning best_effort_provisioning = 113; + */ + public Builder mergeBestEffortProvisioning(com.google.container.v1.BestEffortProvisioning value) { + if (bestEffortProvisioningBuilder_ == null) { + if (((bitField0_ & 0x00100000) != 0) && + bestEffortProvisioning_ != null && + bestEffortProvisioning_ != com.google.container.v1.BestEffortProvisioning.getDefaultInstance()) { + getBestEffortProvisioningBuilder().mergeFrom(value); + } else { + bestEffortProvisioning_ = value; + } + } else { + bestEffortProvisioningBuilder_.mergeFrom(value); + } + if (bestEffortProvisioning_ != null) { + bitField0_ |= 0x00100000; + onChanged(); + } + return this; + } + /** + *
+     * Enable best effort provisioning for nodes
+     * 
+ * + * .google.container.v1.BestEffortProvisioning best_effort_provisioning = 113; + */ + public Builder clearBestEffortProvisioning() { + bitField0_ = (bitField0_ & ~0x00100000); + bestEffortProvisioning_ = null; + if (bestEffortProvisioningBuilder_ != null) { + bestEffortProvisioningBuilder_.dispose(); + bestEffortProvisioningBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Enable best effort provisioning for nodes
+     * 
+ * + * .google.container.v1.BestEffortProvisioning best_effort_provisioning = 113; + */ + public com.google.container.v1.BestEffortProvisioning.Builder getBestEffortProvisioningBuilder() { + bitField0_ |= 0x00100000; + onChanged(); + return getBestEffortProvisioningFieldBuilder().getBuilder(); + } + /** + *
+     * Enable best effort provisioning for nodes
+     * 
+ * + * .google.container.v1.BestEffortProvisioning best_effort_provisioning = 113; + */ + public com.google.container.v1.BestEffortProvisioningOrBuilder getBestEffortProvisioningOrBuilder() { + if (bestEffortProvisioningBuilder_ != null) { + return bestEffortProvisioningBuilder_.getMessageOrBuilder(); + } else { + return bestEffortProvisioning_ == null ? + com.google.container.v1.BestEffortProvisioning.getDefaultInstance() : bestEffortProvisioning_; + } + } + /** + *
+     * Enable best effort provisioning for nodes
+     * 
+ * + * .google.container.v1.BestEffortProvisioning best_effort_provisioning = 113; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.BestEffortProvisioning, com.google.container.v1.BestEffortProvisioning.Builder, com.google.container.v1.BestEffortProvisioningOrBuilder> + getBestEffortProvisioningFieldBuilder() { + if (bestEffortProvisioningBuilder_ == null) { + bestEffortProvisioningBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.BestEffortProvisioning, com.google.container.v1.BestEffortProvisioning.Builder, com.google.container.v1.BestEffortProvisioningOrBuilder>( + getBestEffortProvisioning(), + getParentForChildren(), + isClean()); + bestEffortProvisioning_ = null; + } + return bestEffortProvisioningBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.NodePool) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.NodePool) + private static final com.google.container.v1.NodePool DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.NodePool(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.NodePool getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoConfig.java new file mode 100644 index 000000000000..24e0bc841cd1 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoConfig.java @@ -0,0 +1,938 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Node pool configs that apply to all auto-provisioned node pools
+ * in autopilot clusters and node auto-provisioning enabled clusters.
+ * 
+ * + * Protobuf type {@code google.container.v1.NodePoolAutoConfig} + */ +public final class NodePoolAutoConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.NodePoolAutoConfig) + NodePoolAutoConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use NodePoolAutoConfig.newBuilder() to construct. + private NodePoolAutoConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodePoolAutoConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NodePoolAutoConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePoolAutoConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePoolAutoConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodePoolAutoConfig.class, com.google.container.v1.NodePoolAutoConfig.Builder.class); + } + + private int bitField0_; + public static final int NETWORK_TAGS_FIELD_NUMBER = 1; + private com.google.container.v1.NetworkTags networkTags_; + /** + *
+   * 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 creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * .google.container.v1.NetworkTags network_tags = 1; + * @return Whether the networkTags field is set. + */ + @java.lang.Override + public boolean hasNetworkTags() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * 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 creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * .google.container.v1.NetworkTags network_tags = 1; + * @return The networkTags. + */ + @java.lang.Override + public com.google.container.v1.NetworkTags getNetworkTags() { + return networkTags_ == null ? com.google.container.v1.NetworkTags.getDefaultInstance() : networkTags_; + } + /** + *
+   * 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 creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * .google.container.v1.NetworkTags network_tags = 1; + */ + @java.lang.Override + public com.google.container.v1.NetworkTagsOrBuilder getNetworkTagsOrBuilder() { + return networkTags_ == null ? com.google.container.v1.NetworkTags.getDefaultInstance() : networkTags_; + } + + public static final int RESOURCE_MANAGER_TAGS_FIELD_NUMBER = 2; + private com.google.container.v1.ResourceManagerTags resourceManagerTags_; + /** + *
+   * Resource manager tag keys and values to be attached to the nodes
+   * for managing Compute Engine firewalls using Network Firewall Policies.
+   * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 2; + * @return Whether the resourceManagerTags field is set. + */ + @java.lang.Override + public boolean hasResourceManagerTags() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * Resource manager tag keys and values to be attached to the nodes
+   * for managing Compute Engine firewalls using Network Firewall Policies.
+   * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 2; + * @return The resourceManagerTags. + */ + @java.lang.Override + public com.google.container.v1.ResourceManagerTags getResourceManagerTags() { + return resourceManagerTags_ == null ? com.google.container.v1.ResourceManagerTags.getDefaultInstance() : resourceManagerTags_; + } + /** + *
+   * Resource manager tag keys and values to be attached to the nodes
+   * for managing Compute Engine firewalls using Network Firewall Policies.
+   * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 2; + */ + @java.lang.Override + public com.google.container.v1.ResourceManagerTagsOrBuilder getResourceManagerTagsOrBuilder() { + return resourceManagerTags_ == null ? com.google.container.v1.ResourceManagerTags.getDefaultInstance() : resourceManagerTags_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getNetworkTags()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getResourceManagerTags()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getNetworkTags()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getResourceManagerTags()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.NodePoolAutoConfig)) { + return super.equals(obj); + } + com.google.container.v1.NodePoolAutoConfig other = (com.google.container.v1.NodePoolAutoConfig) obj; + + if (hasNetworkTags() != other.hasNetworkTags()) return false; + if (hasNetworkTags()) { + if (!getNetworkTags() + .equals(other.getNetworkTags())) return false; + } + if (hasResourceManagerTags() != other.hasResourceManagerTags()) return false; + if (hasResourceManagerTags()) { + if (!getResourceManagerTags() + .equals(other.getResourceManagerTags())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasNetworkTags()) { + hash = (37 * hash) + NETWORK_TAGS_FIELD_NUMBER; + hash = (53 * hash) + getNetworkTags().hashCode(); + } + if (hasResourceManagerTags()) { + hash = (37 * hash) + RESOURCE_MANAGER_TAGS_FIELD_NUMBER; + hash = (53 * hash) + getResourceManagerTags().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.NodePoolAutoConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodePoolAutoConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodePoolAutoConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodePoolAutoConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodePoolAutoConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodePoolAutoConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodePoolAutoConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NodePoolAutoConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.NodePoolAutoConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.NodePoolAutoConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.NodePoolAutoConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NodePoolAutoConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.NodePoolAutoConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new 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 pool configs that apply to all auto-provisioned node pools
+   * in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * Protobuf type {@code google.container.v1.NodePoolAutoConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.NodePoolAutoConfig) + com.google.container.v1.NodePoolAutoConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePoolAutoConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePoolAutoConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodePoolAutoConfig.class, com.google.container.v1.NodePoolAutoConfig.Builder.class); + } + + // Construct using com.google.container.v1.NodePoolAutoConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNetworkTagsFieldBuilder(); + getResourceManagerTagsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + networkTags_ = null; + if (networkTagsBuilder_ != null) { + networkTagsBuilder_.dispose(); + networkTagsBuilder_ = null; + } + resourceManagerTags_ = null; + if (resourceManagerTagsBuilder_ != null) { + resourceManagerTagsBuilder_.dispose(); + resourceManagerTagsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePoolAutoConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NodePoolAutoConfig getDefaultInstanceForType() { + return com.google.container.v1.NodePoolAutoConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NodePoolAutoConfig build() { + com.google.container.v1.NodePoolAutoConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NodePoolAutoConfig buildPartial() { + com.google.container.v1.NodePoolAutoConfig result = new com.google.container.v1.NodePoolAutoConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.NodePoolAutoConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.networkTags_ = networkTagsBuilder_ == null + ? networkTags_ + : networkTagsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.resourceManagerTags_ = resourceManagerTagsBuilder_ == null + ? resourceManagerTags_ + : resourceManagerTagsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.NodePoolAutoConfig) { + return mergeFrom((com.google.container.v1.NodePoolAutoConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NodePoolAutoConfig other) { + if (other == com.google.container.v1.NodePoolAutoConfig.getDefaultInstance()) return this; + if (other.hasNetworkTags()) { + mergeNetworkTags(other.getNetworkTags()); + } + if (other.hasResourceManagerTags()) { + mergeResourceManagerTags(other.getResourceManagerTags()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getNetworkTagsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getResourceManagerTagsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.container.v1.NetworkTags networkTags_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkTags, com.google.container.v1.NetworkTags.Builder, com.google.container.v1.NetworkTagsOrBuilder> networkTagsBuilder_; + /** + *
+     * 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 creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * .google.container.v1.NetworkTags network_tags = 1; + * @return Whether the networkTags field is set. + */ + public boolean hasNetworkTags() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * 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 creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * .google.container.v1.NetworkTags network_tags = 1; + * @return The networkTags. + */ + public com.google.container.v1.NetworkTags getNetworkTags() { + if (networkTagsBuilder_ == null) { + return networkTags_ == null ? com.google.container.v1.NetworkTags.getDefaultInstance() : networkTags_; + } else { + return networkTagsBuilder_.getMessage(); + } + } + /** + *
+     * 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 creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * .google.container.v1.NetworkTags network_tags = 1; + */ + public Builder setNetworkTags(com.google.container.v1.NetworkTags value) { + if (networkTagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkTags_ = value; + } else { + networkTagsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + 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 creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * .google.container.v1.NetworkTags network_tags = 1; + */ + public Builder setNetworkTags( + com.google.container.v1.NetworkTags.Builder builderForValue) { + if (networkTagsBuilder_ == null) { + networkTags_ = builderForValue.build(); + } else { + networkTagsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + 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 creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * .google.container.v1.NetworkTags network_tags = 1; + */ + public Builder mergeNetworkTags(com.google.container.v1.NetworkTags value) { + if (networkTagsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + networkTags_ != null && + networkTags_ != com.google.container.v1.NetworkTags.getDefaultInstance()) { + getNetworkTagsBuilder().mergeFrom(value); + } else { + networkTags_ = value; + } + } else { + networkTagsBuilder_.mergeFrom(value); + } + if (networkTags_ != null) { + bitField0_ |= 0x00000001; + 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 creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * .google.container.v1.NetworkTags network_tags = 1; + */ + public Builder clearNetworkTags() { + bitField0_ = (bitField0_ & ~0x00000001); + networkTags_ = null; + if (networkTagsBuilder_ != null) { + networkTagsBuilder_.dispose(); + networkTagsBuilder_ = null; + } + 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 creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * .google.container.v1.NetworkTags network_tags = 1; + */ + public com.google.container.v1.NetworkTags.Builder getNetworkTagsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getNetworkTagsFieldBuilder().getBuilder(); + } + /** + *
+     * 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 creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * .google.container.v1.NetworkTags network_tags = 1; + */ + public com.google.container.v1.NetworkTagsOrBuilder getNetworkTagsOrBuilder() { + if (networkTagsBuilder_ != null) { + return networkTagsBuilder_.getMessageOrBuilder(); + } else { + return networkTags_ == null ? + com.google.container.v1.NetworkTags.getDefaultInstance() : networkTags_; + } + } + /** + *
+     * 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 creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * .google.container.v1.NetworkTags network_tags = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkTags, com.google.container.v1.NetworkTags.Builder, com.google.container.v1.NetworkTagsOrBuilder> + getNetworkTagsFieldBuilder() { + if (networkTagsBuilder_ == null) { + networkTagsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkTags, com.google.container.v1.NetworkTags.Builder, com.google.container.v1.NetworkTagsOrBuilder>( + getNetworkTags(), + getParentForChildren(), + isClean()); + networkTags_ = null; + } + return networkTagsBuilder_; + } + + private com.google.container.v1.ResourceManagerTags resourceManagerTags_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ResourceManagerTags, com.google.container.v1.ResourceManagerTags.Builder, com.google.container.v1.ResourceManagerTagsOrBuilder> resourceManagerTagsBuilder_; + /** + *
+     * Resource manager tag keys and values to be attached to the nodes
+     * for managing Compute Engine firewalls using Network Firewall Policies.
+     * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 2; + * @return Whether the resourceManagerTags field is set. + */ + public boolean hasResourceManagerTags() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Resource manager tag keys and values to be attached to the nodes
+     * for managing Compute Engine firewalls using Network Firewall Policies.
+     * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 2; + * @return The resourceManagerTags. + */ + public com.google.container.v1.ResourceManagerTags getResourceManagerTags() { + if (resourceManagerTagsBuilder_ == null) { + return resourceManagerTags_ == null ? com.google.container.v1.ResourceManagerTags.getDefaultInstance() : resourceManagerTags_; + } else { + return resourceManagerTagsBuilder_.getMessage(); + } + } + /** + *
+     * Resource manager tag keys and values to be attached to the nodes
+     * for managing Compute Engine firewalls using Network Firewall Policies.
+     * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 2; + */ + public Builder setResourceManagerTags(com.google.container.v1.ResourceManagerTags value) { + if (resourceManagerTagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resourceManagerTags_ = value; + } else { + resourceManagerTagsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Resource manager tag keys and values to be attached to the nodes
+     * for managing Compute Engine firewalls using Network Firewall Policies.
+     * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 2; + */ + public Builder setResourceManagerTags( + com.google.container.v1.ResourceManagerTags.Builder builderForValue) { + if (resourceManagerTagsBuilder_ == null) { + resourceManagerTags_ = builderForValue.build(); + } else { + resourceManagerTagsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Resource manager tag keys and values to be attached to the nodes
+     * for managing Compute Engine firewalls using Network Firewall Policies.
+     * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 2; + */ + public Builder mergeResourceManagerTags(com.google.container.v1.ResourceManagerTags value) { + if (resourceManagerTagsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + resourceManagerTags_ != null && + resourceManagerTags_ != com.google.container.v1.ResourceManagerTags.getDefaultInstance()) { + getResourceManagerTagsBuilder().mergeFrom(value); + } else { + resourceManagerTags_ = value; + } + } else { + resourceManagerTagsBuilder_.mergeFrom(value); + } + if (resourceManagerTags_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + *
+     * Resource manager tag keys and values to be attached to the nodes
+     * for managing Compute Engine firewalls using Network Firewall Policies.
+     * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 2; + */ + public Builder clearResourceManagerTags() { + bitField0_ = (bitField0_ & ~0x00000002); + resourceManagerTags_ = null; + if (resourceManagerTagsBuilder_ != null) { + resourceManagerTagsBuilder_.dispose(); + resourceManagerTagsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Resource manager tag keys and values to be attached to the nodes
+     * for managing Compute Engine firewalls using Network Firewall Policies.
+     * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 2; + */ + public com.google.container.v1.ResourceManagerTags.Builder getResourceManagerTagsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getResourceManagerTagsFieldBuilder().getBuilder(); + } + /** + *
+     * Resource manager tag keys and values to be attached to the nodes
+     * for managing Compute Engine firewalls using Network Firewall Policies.
+     * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 2; + */ + public com.google.container.v1.ResourceManagerTagsOrBuilder getResourceManagerTagsOrBuilder() { + if (resourceManagerTagsBuilder_ != null) { + return resourceManagerTagsBuilder_.getMessageOrBuilder(); + } else { + return resourceManagerTags_ == null ? + com.google.container.v1.ResourceManagerTags.getDefaultInstance() : resourceManagerTags_; + } + } + /** + *
+     * Resource manager tag keys and values to be attached to the nodes
+     * for managing Compute Engine firewalls using Network Firewall Policies.
+     * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ResourceManagerTags, com.google.container.v1.ResourceManagerTags.Builder, com.google.container.v1.ResourceManagerTagsOrBuilder> + getResourceManagerTagsFieldBuilder() { + if (resourceManagerTagsBuilder_ == null) { + resourceManagerTagsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ResourceManagerTags, com.google.container.v1.ResourceManagerTags.Builder, com.google.container.v1.ResourceManagerTagsOrBuilder>( + getResourceManagerTags(), + getParentForChildren(), + isClean()); + resourceManagerTags_ = null; + } + return resourceManagerTagsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.NodePoolAutoConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.NodePoolAutoConfig) + private static final com.google.container.v1.NodePoolAutoConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.NodePoolAutoConfig(); + } + + public static com.google.container.v1.NodePoolAutoConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodePoolAutoConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.NodePoolAutoConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoConfigOrBuilder.java new file mode 100644 index 000000000000..0596cecacccc --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoConfigOrBuilder.java @@ -0,0 +1,76 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface NodePoolAutoConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NodePoolAutoConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * 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 creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * .google.container.v1.NetworkTags network_tags = 1; + * @return Whether the networkTags field is set. + */ + boolean hasNetworkTags(); + /** + *
+   * 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 creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * .google.container.v1.NetworkTags network_tags = 1; + * @return The networkTags. + */ + com.google.container.v1.NetworkTags getNetworkTags(); + /** + *
+   * 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 creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * .google.container.v1.NetworkTags network_tags = 1; + */ + com.google.container.v1.NetworkTagsOrBuilder getNetworkTagsOrBuilder(); + + /** + *
+   * Resource manager tag keys and values to be attached to the nodes
+   * for managing Compute Engine firewalls using Network Firewall Policies.
+   * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 2; + * @return Whether the resourceManagerTags field is set. + */ + boolean hasResourceManagerTags(); + /** + *
+   * Resource manager tag keys and values to be attached to the nodes
+   * for managing Compute Engine firewalls using Network Firewall Policies.
+   * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 2; + * @return The resourceManagerTags. + */ + com.google.container.v1.ResourceManagerTags getResourceManagerTags(); + /** + *
+   * Resource manager tag keys and values to be attached to the nodes
+   * for managing Compute Engine firewalls using Network Firewall Policies.
+   * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 2; + */ + com.google.container.v1.ResourceManagerTagsOrBuilder getResourceManagerTagsOrBuilder(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoscaling.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoscaling.java new file mode 100644 index 000000000000..dd5d562949c0 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoscaling.java @@ -0,0 +1,1212 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * 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.v1.NodePoolAutoscaling} + */ +public final class NodePoolAutoscaling extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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() { + locationPolicy_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NodePoolAutoscaling(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePoolAutoscaling_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePoolAutoscaling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodePoolAutoscaling.class, com.google.container.v1.NodePoolAutoscaling.Builder.class); + } + + /** + *
+   * Location policy specifies how zones are picked when scaling up the
+   * nodepool.
+   * 
+ * + * Protobuf enum {@code google.container.v1.NodePoolAutoscaling.LocationPolicy} + */ + public enum LocationPolicy + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not set.
+     * 
+ * + * LOCATION_POLICY_UNSPECIFIED = 0; + */ + LOCATION_POLICY_UNSPECIFIED(0), + /** + *
+     * BALANCED is a best effort policy that aims to balance the sizes of
+     * different zones.
+     * 
+ * + * BALANCED = 1; + */ + BALANCED(1), + /** + *
+     * ANY policy picks zones that have the highest capacity available.
+     * 
+ * + * ANY = 2; + */ + ANY(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not set.
+     * 
+ * + * LOCATION_POLICY_UNSPECIFIED = 0; + */ + public static final int LOCATION_POLICY_UNSPECIFIED_VALUE = 0; + /** + *
+     * BALANCED is a best effort policy that aims to balance the sizes of
+     * different zones.
+     * 
+ * + * BALANCED = 1; + */ + public static final int BALANCED_VALUE = 1; + /** + *
+     * ANY policy picks zones that have the highest capacity available.
+     * 
+ * + * ANY = 2; + */ + public static final int ANY_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 LocationPolicy 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 LocationPolicy forNumber(int value) { + switch (value) { + case 0: return LOCATION_POLICY_UNSPECIFIED; + case 1: return BALANCED; + case 2: return ANY; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + LocationPolicy> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LocationPolicy findValueByNumber(int number) { + return LocationPolicy.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.NodePoolAutoscaling.getDescriptor().getEnumTypes().get(0); + } + + private static final LocationPolicy[] VALUES = values(); + + public static LocationPolicy 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 LocationPolicy(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.NodePoolAutoscaling.LocationPolicy) + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * 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_ = 0; + /** + *
+   * Minimum number of nodes for one location 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_ = 0; + /** + *
+   * Maximum number of nodes for one location in the NodePool. Must be >=
+   * min_node_count. There has to be enough quota to scale up the cluster.
+   * 
+ * + * int32 max_node_count = 3; + * @return The maxNodeCount. + */ + @java.lang.Override + public int getMaxNodeCount() { + return maxNodeCount_; + } + + public static final int AUTOPROVISIONED_FIELD_NUMBER = 4; + private boolean autoprovisioned_ = false; + /** + *
+   * Can this node pool be deleted automatically.
+   * 
+ * + * bool autoprovisioned = 4; + * @return The autoprovisioned. + */ + @java.lang.Override + public boolean getAutoprovisioned() { + return autoprovisioned_; + } + + public static final int LOCATION_POLICY_FIELD_NUMBER = 5; + private int locationPolicy_ = 0; + /** + *
+   * Location policy used when scaling up a nodepool.
+   * 
+ * + * .google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5; + * @return The enum numeric value on the wire for locationPolicy. + */ + @java.lang.Override public int getLocationPolicyValue() { + return locationPolicy_; + } + /** + *
+   * Location policy used when scaling up a nodepool.
+   * 
+ * + * .google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5; + * @return The locationPolicy. + */ + @java.lang.Override public com.google.container.v1.NodePoolAutoscaling.LocationPolicy getLocationPolicy() { + com.google.container.v1.NodePoolAutoscaling.LocationPolicy result = com.google.container.v1.NodePoolAutoscaling.LocationPolicy.forNumber(locationPolicy_); + return result == null ? com.google.container.v1.NodePoolAutoscaling.LocationPolicy.UNRECOGNIZED : result; + } + + public static final int TOTAL_MIN_NODE_COUNT_FIELD_NUMBER = 6; + private int totalMinNodeCount_ = 0; + /** + *
+   * Minimum number of nodes in the node pool. Must be greater than 1 less than
+   * total_max_node_count.
+   * The total_*_node_count fields are mutually exclusive with the *_node_count
+   * fields.
+   * 
+ * + * int32 total_min_node_count = 6; + * @return The totalMinNodeCount. + */ + @java.lang.Override + public int getTotalMinNodeCount() { + return totalMinNodeCount_; + } + + public static final int TOTAL_MAX_NODE_COUNT_FIELD_NUMBER = 7; + private int totalMaxNodeCount_ = 0; + /** + *
+   * Maximum number of nodes in the node pool. Must be greater than
+   * total_min_node_count. There has to be enough quota to scale up the cluster.
+   * The total_*_node_count fields are mutually exclusive with the *_node_count
+   * fields.
+   * 
+ * + * int32 total_max_node_count = 7; + * @return The totalMaxNodeCount. + */ + @java.lang.Override + public int getTotalMaxNodeCount() { + return totalMaxNodeCount_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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_); + } + if (locationPolicy_ != com.google.container.v1.NodePoolAutoscaling.LocationPolicy.LOCATION_POLICY_UNSPECIFIED.getNumber()) { + output.writeEnum(5, locationPolicy_); + } + if (totalMinNodeCount_ != 0) { + output.writeInt32(6, totalMinNodeCount_); + } + if (totalMaxNodeCount_ != 0) { + output.writeInt32(7, totalMaxNodeCount_); + } + getUnknownFields().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_); + } + if (locationPolicy_ != com.google.container.v1.NodePoolAutoscaling.LocationPolicy.LOCATION_POLICY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, locationPolicy_); + } + if (totalMinNodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, totalMinNodeCount_); + } + if (totalMaxNodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, totalMaxNodeCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.NodePoolAutoscaling)) { + return super.equals(obj); + } + com.google.container.v1.NodePoolAutoscaling other = (com.google.container.v1.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 (locationPolicy_ != other.locationPolicy_) return false; + if (getTotalMinNodeCount() + != other.getTotalMinNodeCount()) return false; + if (getTotalMaxNodeCount() + != other.getTotalMaxNodeCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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 = (37 * hash) + LOCATION_POLICY_FIELD_NUMBER; + hash = (53 * hash) + locationPolicy_; + hash = (37 * hash) + TOTAL_MIN_NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getTotalMinNodeCount(); + hash = (37 * hash) + TOTAL_MAX_NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getTotalMaxNodeCount(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.NodePoolAutoscaling parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.NodePoolAutoscaling parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.NodePoolAutoscaling parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodePoolAutoscaling parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodePoolAutoscaling parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.NodePoolAutoscaling parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.NodePoolAutoscaling parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.NodePoolAutoscaling} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.NodePoolAutoscaling) + com.google.container.v1.NodePoolAutoscalingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePoolAutoscaling_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePoolAutoscaling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodePoolAutoscaling.class, com.google.container.v1.NodePoolAutoscaling.Builder.class); + } + + // Construct using com.google.container.v1.NodePoolAutoscaling.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + minNodeCount_ = 0; + maxNodeCount_ = 0; + autoprovisioned_ = false; + locationPolicy_ = 0; + totalMinNodeCount_ = 0; + totalMaxNodeCount_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePoolAutoscaling_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NodePoolAutoscaling getDefaultInstanceForType() { + return com.google.container.v1.NodePoolAutoscaling.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NodePoolAutoscaling build() { + com.google.container.v1.NodePoolAutoscaling result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NodePoolAutoscaling buildPartial() { + com.google.container.v1.NodePoolAutoscaling result = new com.google.container.v1.NodePoolAutoscaling(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.NodePoolAutoscaling result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.minNodeCount_ = minNodeCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.maxNodeCount_ = maxNodeCount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.autoprovisioned_ = autoprovisioned_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.locationPolicy_ = locationPolicy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.totalMinNodeCount_ = totalMinNodeCount_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.totalMaxNodeCount_ = totalMaxNodeCount_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.NodePoolAutoscaling) { + return mergeFrom((com.google.container.v1.NodePoolAutoscaling)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NodePoolAutoscaling other) { + if (other == com.google.container.v1.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()); + } + if (other.locationPolicy_ != 0) { + setLocationPolicyValue(other.getLocationPolicyValue()); + } + if (other.getTotalMinNodeCount() != 0) { + setTotalMinNodeCount(other.getTotalMinNodeCount()); + } + if (other.getTotalMaxNodeCount() != 0) { + setTotalMaxNodeCount(other.getTotalMaxNodeCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + minNodeCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + maxNodeCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + autoprovisioned_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + locationPolicy_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + totalMinNodeCount_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: { + totalMaxNodeCount_ = input.readInt32(); + bitField0_ |= 0x00000040; + break; + } // case 56 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Is autoscaling enabled for this node pool.
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + + private int minNodeCount_ ; + /** + *
+     * Minimum number of nodes for one location 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 for one location 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Minimum number of nodes for one location in the NodePool. Must be >= 1 and
+     * <= max_node_count.
+     * 
+ * + * int32 min_node_count = 2; + * @return This builder for chaining. + */ + public Builder clearMinNodeCount() { + bitField0_ = (bitField0_ & ~0x00000002); + minNodeCount_ = 0; + onChanged(); + return this; + } + + private int maxNodeCount_ ; + /** + *
+     * Maximum number of nodes for one location in the NodePool. Must be >=
+     * min_node_count. There has to be enough quota to scale up the cluster.
+     * 
+ * + * int32 max_node_count = 3; + * @return The maxNodeCount. + */ + @java.lang.Override + public int getMaxNodeCount() { + return maxNodeCount_; + } + /** + *
+     * Maximum number of nodes for one location in the NodePool. Must be >=
+     * min_node_count. There has to be enough quota to scale up the cluster.
+     * 
+ * + * int32 max_node_count = 3; + * @param value The maxNodeCount to set. + * @return This builder for chaining. + */ + public Builder setMaxNodeCount(int value) { + + maxNodeCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Maximum number of nodes for one location in the NodePool. Must be >=
+     * min_node_count. There has to be enough quota to scale up the cluster.
+     * 
+ * + * int32 max_node_count = 3; + * @return This builder for chaining. + */ + public Builder clearMaxNodeCount() { + bitField0_ = (bitField0_ & ~0x00000004); + 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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Can this node pool be deleted automatically.
+     * 
+ * + * bool autoprovisioned = 4; + * @return This builder for chaining. + */ + public Builder clearAutoprovisioned() { + bitField0_ = (bitField0_ & ~0x00000008); + autoprovisioned_ = false; + onChanged(); + return this; + } + + private int locationPolicy_ = 0; + /** + *
+     * Location policy used when scaling up a nodepool.
+     * 
+ * + * .google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5; + * @return The enum numeric value on the wire for locationPolicy. + */ + @java.lang.Override public int getLocationPolicyValue() { + return locationPolicy_; + } + /** + *
+     * Location policy used when scaling up a nodepool.
+     * 
+ * + * .google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5; + * @param value The enum numeric value on the wire for locationPolicy to set. + * @return This builder for chaining. + */ + public Builder setLocationPolicyValue(int value) { + locationPolicy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Location policy used when scaling up a nodepool.
+     * 
+ * + * .google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5; + * @return The locationPolicy. + */ + @java.lang.Override + public com.google.container.v1.NodePoolAutoscaling.LocationPolicy getLocationPolicy() { + com.google.container.v1.NodePoolAutoscaling.LocationPolicy result = com.google.container.v1.NodePoolAutoscaling.LocationPolicy.forNumber(locationPolicy_); + return result == null ? com.google.container.v1.NodePoolAutoscaling.LocationPolicy.UNRECOGNIZED : result; + } + /** + *
+     * Location policy used when scaling up a nodepool.
+     * 
+ * + * .google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5; + * @param value The locationPolicy to set. + * @return This builder for chaining. + */ + public Builder setLocationPolicy(com.google.container.v1.NodePoolAutoscaling.LocationPolicy value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + locationPolicy_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Location policy used when scaling up a nodepool.
+     * 
+ * + * .google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5; + * @return This builder for chaining. + */ + public Builder clearLocationPolicy() { + bitField0_ = (bitField0_ & ~0x00000010); + locationPolicy_ = 0; + onChanged(); + return this; + } + + private int totalMinNodeCount_ ; + /** + *
+     * Minimum number of nodes in the node pool. Must be greater than 1 less than
+     * total_max_node_count.
+     * The total_*_node_count fields are mutually exclusive with the *_node_count
+     * fields.
+     * 
+ * + * int32 total_min_node_count = 6; + * @return The totalMinNodeCount. + */ + @java.lang.Override + public int getTotalMinNodeCount() { + return totalMinNodeCount_; + } + /** + *
+     * Minimum number of nodes in the node pool. Must be greater than 1 less than
+     * total_max_node_count.
+     * The total_*_node_count fields are mutually exclusive with the *_node_count
+     * fields.
+     * 
+ * + * int32 total_min_node_count = 6; + * @param value The totalMinNodeCount to set. + * @return This builder for chaining. + */ + public Builder setTotalMinNodeCount(int value) { + + totalMinNodeCount_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Minimum number of nodes in the node pool. Must be greater than 1 less than
+     * total_max_node_count.
+     * The total_*_node_count fields are mutually exclusive with the *_node_count
+     * fields.
+     * 
+ * + * int32 total_min_node_count = 6; + * @return This builder for chaining. + */ + public Builder clearTotalMinNodeCount() { + bitField0_ = (bitField0_ & ~0x00000020); + totalMinNodeCount_ = 0; + onChanged(); + return this; + } + + private int totalMaxNodeCount_ ; + /** + *
+     * Maximum number of nodes in the node pool. Must be greater than
+     * total_min_node_count. There has to be enough quota to scale up the cluster.
+     * The total_*_node_count fields are mutually exclusive with the *_node_count
+     * fields.
+     * 
+ * + * int32 total_max_node_count = 7; + * @return The totalMaxNodeCount. + */ + @java.lang.Override + public int getTotalMaxNodeCount() { + return totalMaxNodeCount_; + } + /** + *
+     * Maximum number of nodes in the node pool. Must be greater than
+     * total_min_node_count. There has to be enough quota to scale up the cluster.
+     * The total_*_node_count fields are mutually exclusive with the *_node_count
+     * fields.
+     * 
+ * + * int32 total_max_node_count = 7; + * @param value The totalMaxNodeCount to set. + * @return This builder for chaining. + */ + public Builder setTotalMaxNodeCount(int value) { + + totalMaxNodeCount_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * Maximum number of nodes in the node pool. Must be greater than
+     * total_min_node_count. There has to be enough quota to scale up the cluster.
+     * The total_*_node_count fields are mutually exclusive with the *_node_count
+     * fields.
+     * 
+ * + * int32 total_max_node_count = 7; + * @return This builder for chaining. + */ + public Builder clearTotalMaxNodeCount() { + bitField0_ = (bitField0_ & ~0x00000040); + totalMaxNodeCount_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.NodePoolAutoscaling) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.NodePoolAutoscaling) + private static final com.google.container.v1.NodePoolAutoscaling DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.NodePoolAutoscaling(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.NodePoolAutoscaling getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoscalingOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoscalingOrBuilder.java new file mode 100644 index 000000000000..8c7dc1abc015 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoscalingOrBuilder.java @@ -0,0 +1,97 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface NodePoolAutoscalingOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NodePoolAutoscaling) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Is autoscaling enabled for this node pool.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); + + /** + *
+   * Minimum number of nodes for one location in the NodePool. Must be >= 1 and
+   * <= max_node_count.
+   * 
+ * + * int32 min_node_count = 2; + * @return The minNodeCount. + */ + int getMinNodeCount(); + + /** + *
+   * Maximum number of nodes for one location in the NodePool. Must be >=
+   * min_node_count. There has to be enough quota to scale up the cluster.
+   * 
+ * + * int32 max_node_count = 3; + * @return The maxNodeCount. + */ + int getMaxNodeCount(); + + /** + *
+   * Can this node pool be deleted automatically.
+   * 
+ * + * bool autoprovisioned = 4; + * @return The autoprovisioned. + */ + boolean getAutoprovisioned(); + + /** + *
+   * Location policy used when scaling up a nodepool.
+   * 
+ * + * .google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5; + * @return The enum numeric value on the wire for locationPolicy. + */ + int getLocationPolicyValue(); + /** + *
+   * Location policy used when scaling up a nodepool.
+   * 
+ * + * .google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5; + * @return The locationPolicy. + */ + com.google.container.v1.NodePoolAutoscaling.LocationPolicy getLocationPolicy(); + + /** + *
+   * Minimum number of nodes in the node pool. Must be greater than 1 less than
+   * total_max_node_count.
+   * The total_*_node_count fields are mutually exclusive with the *_node_count
+   * fields.
+   * 
+ * + * int32 total_min_node_count = 6; + * @return The totalMinNodeCount. + */ + int getTotalMinNodeCount(); + + /** + *
+   * Maximum number of nodes in the node pool. Must be greater than
+   * total_min_node_count. There has to be enough quota to scale up the cluster.
+   * The total_*_node_count fields are mutually exclusive with the *_node_count
+   * fields.
+   * 
+ * + * int32 total_max_node_count = 7; + * @return The totalMaxNodeCount. + */ + int getTotalMaxNodeCount(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolDefaults.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolDefaults.java new file mode 100644 index 000000000000..77476c851df4 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolDefaults.java @@ -0,0 +1,655 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Subset of Nodepool message that has defaults.
+ * 
+ * + * Protobuf type {@code google.container.v1.NodePoolDefaults} + */ +public final class NodePoolDefaults extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.NodePoolDefaults) + NodePoolDefaultsOrBuilder { +private static final long serialVersionUID = 0L; + // Use NodePoolDefaults.newBuilder() to construct. + private NodePoolDefaults(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodePoolDefaults() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NodePoolDefaults(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePoolDefaults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePoolDefaults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodePoolDefaults.class, com.google.container.v1.NodePoolDefaults.Builder.class); + } + + private int bitField0_; + public static final int NODE_CONFIG_DEFAULTS_FIELD_NUMBER = 1; + private com.google.container.v1.NodeConfigDefaults nodeConfigDefaults_; + /** + *
+   * Subset of NodeConfig message that has defaults.
+   * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + * @return Whether the nodeConfigDefaults field is set. + */ + @java.lang.Override + public boolean hasNodeConfigDefaults() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Subset of NodeConfig message that has defaults.
+   * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + * @return The nodeConfigDefaults. + */ + @java.lang.Override + public com.google.container.v1.NodeConfigDefaults getNodeConfigDefaults() { + return nodeConfigDefaults_ == null ? com.google.container.v1.NodeConfigDefaults.getDefaultInstance() : nodeConfigDefaults_; + } + /** + *
+   * Subset of NodeConfig message that has defaults.
+   * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + */ + @java.lang.Override + public com.google.container.v1.NodeConfigDefaultsOrBuilder getNodeConfigDefaultsOrBuilder() { + return nodeConfigDefaults_ == null ? com.google.container.v1.NodeConfigDefaults.getDefaultInstance() : nodeConfigDefaults_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getNodeConfigDefaults()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getNodeConfigDefaults()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.NodePoolDefaults)) { + return super.equals(obj); + } + com.google.container.v1.NodePoolDefaults other = (com.google.container.v1.NodePoolDefaults) obj; + + if (hasNodeConfigDefaults() != other.hasNodeConfigDefaults()) return false; + if (hasNodeConfigDefaults()) { + if (!getNodeConfigDefaults() + .equals(other.getNodeConfigDefaults())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasNodeConfigDefaults()) { + hash = (37 * hash) + NODE_CONFIG_DEFAULTS_FIELD_NUMBER; + hash = (53 * hash) + getNodeConfigDefaults().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.NodePoolDefaults parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodePoolDefaults parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodePoolDefaults parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodePoolDefaults parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodePoolDefaults parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodePoolDefaults parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodePoolDefaults parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NodePoolDefaults parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.NodePoolDefaults parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.NodePoolDefaults parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.NodePoolDefaults parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NodePoolDefaults parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.NodePoolDefaults prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Subset of Nodepool message that has defaults.
+   * 
+ * + * Protobuf type {@code google.container.v1.NodePoolDefaults} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.NodePoolDefaults) + com.google.container.v1.NodePoolDefaultsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePoolDefaults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePoolDefaults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodePoolDefaults.class, com.google.container.v1.NodePoolDefaults.Builder.class); + } + + // Construct using com.google.container.v1.NodePoolDefaults.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNodeConfigDefaultsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + nodeConfigDefaults_ = null; + if (nodeConfigDefaultsBuilder_ != null) { + nodeConfigDefaultsBuilder_.dispose(); + nodeConfigDefaultsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePoolDefaults_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NodePoolDefaults getDefaultInstanceForType() { + return com.google.container.v1.NodePoolDefaults.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NodePoolDefaults build() { + com.google.container.v1.NodePoolDefaults result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NodePoolDefaults buildPartial() { + com.google.container.v1.NodePoolDefaults result = new com.google.container.v1.NodePoolDefaults(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.NodePoolDefaults result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.nodeConfigDefaults_ = nodeConfigDefaultsBuilder_ == null + ? nodeConfigDefaults_ + : nodeConfigDefaultsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.NodePoolDefaults) { + return mergeFrom((com.google.container.v1.NodePoolDefaults)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NodePoolDefaults other) { + if (other == com.google.container.v1.NodePoolDefaults.getDefaultInstance()) return this; + if (other.hasNodeConfigDefaults()) { + mergeNodeConfigDefaults(other.getNodeConfigDefaults()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getNodeConfigDefaultsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.container.v1.NodeConfigDefaults nodeConfigDefaults_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeConfigDefaults, com.google.container.v1.NodeConfigDefaults.Builder, com.google.container.v1.NodeConfigDefaultsOrBuilder> nodeConfigDefaultsBuilder_; + /** + *
+     * Subset of NodeConfig message that has defaults.
+     * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + * @return Whether the nodeConfigDefaults field is set. + */ + public boolean hasNodeConfigDefaults() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Subset of NodeConfig message that has defaults.
+     * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + * @return The nodeConfigDefaults. + */ + public com.google.container.v1.NodeConfigDefaults getNodeConfigDefaults() { + if (nodeConfigDefaultsBuilder_ == null) { + return nodeConfigDefaults_ == null ? com.google.container.v1.NodeConfigDefaults.getDefaultInstance() : nodeConfigDefaults_; + } else { + return nodeConfigDefaultsBuilder_.getMessage(); + } + } + /** + *
+     * Subset of NodeConfig message that has defaults.
+     * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + */ + public Builder setNodeConfigDefaults(com.google.container.v1.NodeConfigDefaults value) { + if (nodeConfigDefaultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodeConfigDefaults_ = value; + } else { + nodeConfigDefaultsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Subset of NodeConfig message that has defaults.
+     * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + */ + public Builder setNodeConfigDefaults( + com.google.container.v1.NodeConfigDefaults.Builder builderForValue) { + if (nodeConfigDefaultsBuilder_ == null) { + nodeConfigDefaults_ = builderForValue.build(); + } else { + nodeConfigDefaultsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Subset of NodeConfig message that has defaults.
+     * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + */ + public Builder mergeNodeConfigDefaults(com.google.container.v1.NodeConfigDefaults value) { + if (nodeConfigDefaultsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + nodeConfigDefaults_ != null && + nodeConfigDefaults_ != com.google.container.v1.NodeConfigDefaults.getDefaultInstance()) { + getNodeConfigDefaultsBuilder().mergeFrom(value); + } else { + nodeConfigDefaults_ = value; + } + } else { + nodeConfigDefaultsBuilder_.mergeFrom(value); + } + if (nodeConfigDefaults_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+     * Subset of NodeConfig message that has defaults.
+     * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + */ + public Builder clearNodeConfigDefaults() { + bitField0_ = (bitField0_ & ~0x00000001); + nodeConfigDefaults_ = null; + if (nodeConfigDefaultsBuilder_ != null) { + nodeConfigDefaultsBuilder_.dispose(); + nodeConfigDefaultsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Subset of NodeConfig message that has defaults.
+     * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + */ + public com.google.container.v1.NodeConfigDefaults.Builder getNodeConfigDefaultsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getNodeConfigDefaultsFieldBuilder().getBuilder(); + } + /** + *
+     * Subset of NodeConfig message that has defaults.
+     * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + */ + public com.google.container.v1.NodeConfigDefaultsOrBuilder getNodeConfigDefaultsOrBuilder() { + if (nodeConfigDefaultsBuilder_ != null) { + return nodeConfigDefaultsBuilder_.getMessageOrBuilder(); + } else { + return nodeConfigDefaults_ == null ? + com.google.container.v1.NodeConfigDefaults.getDefaultInstance() : nodeConfigDefaults_; + } + } + /** + *
+     * Subset of NodeConfig message that has defaults.
+     * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeConfigDefaults, com.google.container.v1.NodeConfigDefaults.Builder, com.google.container.v1.NodeConfigDefaultsOrBuilder> + getNodeConfigDefaultsFieldBuilder() { + if (nodeConfigDefaultsBuilder_ == null) { + nodeConfigDefaultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeConfigDefaults, com.google.container.v1.NodeConfigDefaults.Builder, com.google.container.v1.NodeConfigDefaultsOrBuilder>( + getNodeConfigDefaults(), + getParentForChildren(), + isClean()); + nodeConfigDefaults_ = null; + } + return nodeConfigDefaultsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.NodePoolDefaults) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.NodePoolDefaults) + private static final com.google.container.v1.NodePoolDefaults DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.NodePoolDefaults(); + } + + public static com.google.container.v1.NodePoolDefaults getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodePoolDefaults parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.NodePoolDefaults getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolDefaultsOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolDefaultsOrBuilder.java new file mode 100644 index 000000000000..716d9d3af2c7 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolDefaultsOrBuilder.java @@ -0,0 +1,37 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface NodePoolDefaultsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NodePoolDefaults) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Subset of NodeConfig message that has defaults.
+   * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + * @return Whether the nodeConfigDefaults field is set. + */ + boolean hasNodeConfigDefaults(); + /** + *
+   * Subset of NodeConfig message that has defaults.
+   * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + * @return The nodeConfigDefaults. + */ + com.google.container.v1.NodeConfigDefaults getNodeConfigDefaults(); + /** + *
+   * Subset of NodeConfig message that has defaults.
+   * 
+ * + * .google.container.v1.NodeConfigDefaults node_config_defaults = 1; + */ + com.google.container.v1.NodeConfigDefaultsOrBuilder getNodeConfigDefaultsOrBuilder(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolLoggingConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolLoggingConfig.java new file mode 100644 index 000000000000..05c601c2046b --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolLoggingConfig.java @@ -0,0 +1,655 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * NodePoolLoggingConfig specifies logging configuration for nodepools.
+ * 
+ * + * Protobuf type {@code google.container.v1.NodePoolLoggingConfig} + */ +public final class NodePoolLoggingConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.NodePoolLoggingConfig) + NodePoolLoggingConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use NodePoolLoggingConfig.newBuilder() to construct. + private NodePoolLoggingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodePoolLoggingConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NodePoolLoggingConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePoolLoggingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePoolLoggingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodePoolLoggingConfig.class, com.google.container.v1.NodePoolLoggingConfig.Builder.class); + } + + private int bitField0_; + public static final int VARIANT_CONFIG_FIELD_NUMBER = 1; + private com.google.container.v1.LoggingVariantConfig variantConfig_; + /** + *
+   * Logging variant configuration.
+   * 
+ * + * .google.container.v1.LoggingVariantConfig variant_config = 1; + * @return Whether the variantConfig field is set. + */ + @java.lang.Override + public boolean hasVariantConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Logging variant configuration.
+   * 
+ * + * .google.container.v1.LoggingVariantConfig variant_config = 1; + * @return The variantConfig. + */ + @java.lang.Override + public com.google.container.v1.LoggingVariantConfig getVariantConfig() { + return variantConfig_ == null ? com.google.container.v1.LoggingVariantConfig.getDefaultInstance() : variantConfig_; + } + /** + *
+   * Logging variant configuration.
+   * 
+ * + * .google.container.v1.LoggingVariantConfig variant_config = 1; + */ + @java.lang.Override + public com.google.container.v1.LoggingVariantConfigOrBuilder getVariantConfigOrBuilder() { + return variantConfig_ == null ? com.google.container.v1.LoggingVariantConfig.getDefaultInstance() : variantConfig_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getVariantConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getVariantConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.NodePoolLoggingConfig)) { + return super.equals(obj); + } + com.google.container.v1.NodePoolLoggingConfig other = (com.google.container.v1.NodePoolLoggingConfig) obj; + + if (hasVariantConfig() != other.hasVariantConfig()) return false; + if (hasVariantConfig()) { + if (!getVariantConfig() + .equals(other.getVariantConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasVariantConfig()) { + hash = (37 * hash) + VARIANT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getVariantConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.NodePoolLoggingConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodePoolLoggingConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodePoolLoggingConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodePoolLoggingConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodePoolLoggingConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodePoolLoggingConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodePoolLoggingConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NodePoolLoggingConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.NodePoolLoggingConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.NodePoolLoggingConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.NodePoolLoggingConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NodePoolLoggingConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.NodePoolLoggingConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * NodePoolLoggingConfig specifies logging configuration for nodepools.
+   * 
+ * + * Protobuf type {@code google.container.v1.NodePoolLoggingConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.NodePoolLoggingConfig) + com.google.container.v1.NodePoolLoggingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePoolLoggingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePoolLoggingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodePoolLoggingConfig.class, com.google.container.v1.NodePoolLoggingConfig.Builder.class); + } + + // Construct using com.google.container.v1.NodePoolLoggingConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getVariantConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + variantConfig_ = null; + if (variantConfigBuilder_ != null) { + variantConfigBuilder_.dispose(); + variantConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodePoolLoggingConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NodePoolLoggingConfig getDefaultInstanceForType() { + return com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NodePoolLoggingConfig build() { + com.google.container.v1.NodePoolLoggingConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NodePoolLoggingConfig buildPartial() { + com.google.container.v1.NodePoolLoggingConfig result = new com.google.container.v1.NodePoolLoggingConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.NodePoolLoggingConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.variantConfig_ = variantConfigBuilder_ == null + ? variantConfig_ + : variantConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.NodePoolLoggingConfig) { + return mergeFrom((com.google.container.v1.NodePoolLoggingConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NodePoolLoggingConfig other) { + if (other == com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance()) return this; + if (other.hasVariantConfig()) { + mergeVariantConfig(other.getVariantConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getVariantConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.container.v1.LoggingVariantConfig variantConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LoggingVariantConfig, com.google.container.v1.LoggingVariantConfig.Builder, com.google.container.v1.LoggingVariantConfigOrBuilder> variantConfigBuilder_; + /** + *
+     * Logging variant configuration.
+     * 
+ * + * .google.container.v1.LoggingVariantConfig variant_config = 1; + * @return Whether the variantConfig field is set. + */ + public boolean hasVariantConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Logging variant configuration.
+     * 
+ * + * .google.container.v1.LoggingVariantConfig variant_config = 1; + * @return The variantConfig. + */ + public com.google.container.v1.LoggingVariantConfig getVariantConfig() { + if (variantConfigBuilder_ == null) { + return variantConfig_ == null ? com.google.container.v1.LoggingVariantConfig.getDefaultInstance() : variantConfig_; + } else { + return variantConfigBuilder_.getMessage(); + } + } + /** + *
+     * Logging variant configuration.
+     * 
+ * + * .google.container.v1.LoggingVariantConfig variant_config = 1; + */ + public Builder setVariantConfig(com.google.container.v1.LoggingVariantConfig value) { + if (variantConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + variantConfig_ = value; + } else { + variantConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Logging variant configuration.
+     * 
+ * + * .google.container.v1.LoggingVariantConfig variant_config = 1; + */ + public Builder setVariantConfig( + com.google.container.v1.LoggingVariantConfig.Builder builderForValue) { + if (variantConfigBuilder_ == null) { + variantConfig_ = builderForValue.build(); + } else { + variantConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Logging variant configuration.
+     * 
+ * + * .google.container.v1.LoggingVariantConfig variant_config = 1; + */ + public Builder mergeVariantConfig(com.google.container.v1.LoggingVariantConfig value) { + if (variantConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + variantConfig_ != null && + variantConfig_ != com.google.container.v1.LoggingVariantConfig.getDefaultInstance()) { + getVariantConfigBuilder().mergeFrom(value); + } else { + variantConfig_ = value; + } + } else { + variantConfigBuilder_.mergeFrom(value); + } + if (variantConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+     * Logging variant configuration.
+     * 
+ * + * .google.container.v1.LoggingVariantConfig variant_config = 1; + */ + public Builder clearVariantConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + variantConfig_ = null; + if (variantConfigBuilder_ != null) { + variantConfigBuilder_.dispose(); + variantConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Logging variant configuration.
+     * 
+ * + * .google.container.v1.LoggingVariantConfig variant_config = 1; + */ + public com.google.container.v1.LoggingVariantConfig.Builder getVariantConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getVariantConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Logging variant configuration.
+     * 
+ * + * .google.container.v1.LoggingVariantConfig variant_config = 1; + */ + public com.google.container.v1.LoggingVariantConfigOrBuilder getVariantConfigOrBuilder() { + if (variantConfigBuilder_ != null) { + return variantConfigBuilder_.getMessageOrBuilder(); + } else { + return variantConfig_ == null ? + com.google.container.v1.LoggingVariantConfig.getDefaultInstance() : variantConfig_; + } + } + /** + *
+     * Logging variant configuration.
+     * 
+ * + * .google.container.v1.LoggingVariantConfig variant_config = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LoggingVariantConfig, com.google.container.v1.LoggingVariantConfig.Builder, com.google.container.v1.LoggingVariantConfigOrBuilder> + getVariantConfigFieldBuilder() { + if (variantConfigBuilder_ == null) { + variantConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LoggingVariantConfig, com.google.container.v1.LoggingVariantConfig.Builder, com.google.container.v1.LoggingVariantConfigOrBuilder>( + getVariantConfig(), + getParentForChildren(), + isClean()); + variantConfig_ = null; + } + return variantConfigBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.NodePoolLoggingConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.NodePoolLoggingConfig) + private static final com.google.container.v1.NodePoolLoggingConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.NodePoolLoggingConfig(); + } + + public static com.google.container.v1.NodePoolLoggingConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodePoolLoggingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.NodePoolLoggingConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolLoggingConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolLoggingConfigOrBuilder.java new file mode 100644 index 000000000000..86514d090e94 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolLoggingConfigOrBuilder.java @@ -0,0 +1,37 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface NodePoolLoggingConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NodePoolLoggingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Logging variant configuration.
+   * 
+ * + * .google.container.v1.LoggingVariantConfig variant_config = 1; + * @return Whether the variantConfig field is set. + */ + boolean hasVariantConfig(); + /** + *
+   * Logging variant configuration.
+   * 
+ * + * .google.container.v1.LoggingVariantConfig variant_config = 1; + * @return The variantConfig. + */ + com.google.container.v1.LoggingVariantConfig getVariantConfig(); + /** + *
+   * Logging variant configuration.
+   * 
+ * + * .google.container.v1.LoggingVariantConfig variant_config = 1; + */ + com.google.container.v1.LoggingVariantConfigOrBuilder getVariantConfigOrBuilder(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolOrBuilder.java new file mode 100644 index 000000000000..9d7ca9a358a9 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolOrBuilder.java @@ -0,0 +1,628 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface NodePoolOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.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.v1.NodeConfig config = 2; + * @return Whether the config field is set. + */ + boolean hasConfig(); + /** + *
+   * The node configuration of the pool.
+   * 
+ * + * .google.container.v1.NodeConfig config = 2; + * @return The config. + */ + com.google.container.v1.NodeConfig getConfig(); + /** + *
+   * The node configuration of the pool.
+   * 
+ * + * .google.container.v1.NodeConfig config = 2; + */ + com.google.container.v1.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); + + /** + *
+   * Networking configuration for this NodePool. If specified, it overrides the
+   * cluster-level defaults.
+   * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + * @return Whether the networkConfig field is set. + */ + boolean hasNetworkConfig(); + /** + *
+   * Networking configuration for this NodePool. If specified, it overrides the
+   * cluster-level defaults.
+   * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + * @return The networkConfig. + */ + com.google.container.v1.NodeNetworkConfig getNetworkConfig(); + /** + *
+   * Networking configuration for this NodePool. If specified, it overrides the
+   * cluster-level defaults.
+   * 
+ * + * .google.container.v1.NodeNetworkConfig network_config = 14; + */ + com.google.container.v1.NodeNetworkConfigOrBuilder getNetworkConfigOrBuilder(); + + /** + *
+   * [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 Kubernetes running on this NodePool's nodes. If unspecified,
+   * it defaults as described
+   * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version).
+   * 
+ * + * string version = 101; + * @return The version. + */ + java.lang.String getVersion(); + /** + *
+   * The version of Kubernetes running on this NodePool's nodes. If unspecified,
+   * it defaults as described
+   * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version).
+   * 
+ * + * 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.
+   * During the node pool blue-green upgrade operation, the URLs contain both
+   * blue and green resources.
+   * 
+ * + * 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.
+   * During the node pool blue-green upgrade operation, the URLs contain both
+   * blue and green resources.
+   * 
+ * + * 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.
+   * During the node pool blue-green upgrade operation, the URLs contain both
+   * blue and green resources.
+   * 
+ * + * 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.
+   * During the node pool blue-green upgrade operation, the URLs contain both
+   * blue and green resources.
+   * 
+ * + * 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.v1.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.v1.NodePool.Status status = 103; + * @return The status. + */ + com.google.container.v1.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]; + * @deprecated google.container.v1.NodePool.status_message is deprecated. + * See google/container/v1/cluster_service.proto;l=3552 + * @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]; + * @deprecated google.container.v1.NodePool.status_message is deprecated. + * See google/container/v1/cluster_service.proto;l=3552 + * @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.v1.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.v1.NodePoolAutoscaling autoscaling = 4; + * @return The autoscaling. + */ + com.google.container.v1.NodePoolAutoscaling getAutoscaling(); + /** + *
+   * Autoscaler configuration for this NodePool. Autoscaler is enabled
+   * only if a valid configuration is present.
+   * 
+ * + * .google.container.v1.NodePoolAutoscaling autoscaling = 4; + */ + com.google.container.v1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder(); + + /** + *
+   * NodeManagement configuration for this NodePool.
+   * 
+ * + * .google.container.v1.NodeManagement management = 5; + * @return Whether the management field is set. + */ + boolean hasManagement(); + /** + *
+   * NodeManagement configuration for this NodePool.
+   * 
+ * + * .google.container.v1.NodeManagement management = 5; + * @return The management. + */ + com.google.container.v1.NodeManagement getManagement(); + /** + *
+   * NodeManagement configuration for this NodePool.
+   * 
+ * + * .google.container.v1.NodeManagement management = 5; + */ + com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder(); + + /** + *
+   * The constraint on the maximum number of pods that can be run
+   * simultaneously on a node in the node pool.
+   * 
+ * + * .google.container.v1.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.v1.MaxPodsConstraint max_pods_constraint = 6; + * @return The maxPodsConstraint. + */ + com.google.container.v1.MaxPodsConstraint getMaxPodsConstraint(); + /** + *
+   * The constraint on the maximum number of pods that can be run
+   * simultaneously on a node in the node pool.
+   * 
+ * + * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; + */ + com.google.container.v1.MaxPodsConstraintOrBuilder getMaxPodsConstraintOrBuilder(); + + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 105; + */ + java.util.List + getConditionsList(); + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 105; + */ + com.google.container.v1.StatusCondition getConditions(int index); + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 105; + */ + int getConditionsCount(); + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 105; + */ + java.util.List + getConditionsOrBuilderList(); + /** + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 105; + */ + com.google.container.v1.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.v1.NodePool.UpgradeSettings upgrade_settings = 107; + * @return Whether the upgradeSettings field is set. + */ + boolean hasUpgradeSettings(); + /** + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + * @return The upgradeSettings. + */ + com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings(); + /** + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder(); + + /** + *
+   * Specifies the node placement policy.
+   * 
+ * + * .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; + * @return Whether the placementPolicy field is set. + */ + boolean hasPlacementPolicy(); + /** + *
+   * Specifies the node placement policy.
+   * 
+ * + * .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; + * @return The placementPolicy. + */ + com.google.container.v1.NodePool.PlacementPolicy getPlacementPolicy(); + /** + *
+   * Specifies the node placement policy.
+   * 
+ * + * .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; + */ + com.google.container.v1.NodePool.PlacementPolicyOrBuilder getPlacementPolicyOrBuilder(); + + /** + *
+   * Output only. [Output only] Update info contains relevant information during
+   * a node pool update.
+   * 
+ * + * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updateInfo field is set. + */ + boolean hasUpdateInfo(); + /** + *
+   * Output only. [Output only] Update info contains relevant information during
+   * a node pool update.
+   * 
+ * + * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updateInfo. + */ + com.google.container.v1.NodePool.UpdateInfo getUpdateInfo(); + /** + *
+   * Output only. [Output only] Update info contains relevant information during
+   * a node pool update.
+   * 
+ * + * .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.container.v1.NodePool.UpdateInfoOrBuilder getUpdateInfoOrBuilder(); + + /** + *
+   * This checksum is computed by the server based on the value of node pool
+   * fields, and may be sent on update requests to ensure the client has an
+   * up-to-date value before proceeding.
+   * 
+ * + * string etag = 110; + * @return The etag. + */ + java.lang.String getEtag(); + /** + *
+   * This checksum is computed by the server based on the value of node pool
+   * fields, and may be sent on update requests to ensure the client has an
+   * up-to-date value before proceeding.
+   * 
+ * + * string etag = 110; + * @return The bytes for etag. + */ + com.google.protobuf.ByteString + getEtagBytes(); + + /** + *
+   * Specifies the configuration of queued provisioning.
+   * 
+ * + * .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; + * @return Whether the queuedProvisioning field is set. + */ + boolean hasQueuedProvisioning(); + /** + *
+   * Specifies the configuration of queued provisioning.
+   * 
+ * + * .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; + * @return The queuedProvisioning. + */ + com.google.container.v1.NodePool.QueuedProvisioning getQueuedProvisioning(); + /** + *
+   * Specifies the configuration of queued provisioning.
+   * 
+ * + * .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; + */ + com.google.container.v1.NodePool.QueuedProvisioningOrBuilder getQueuedProvisioningOrBuilder(); + + /** + *
+   * Enable best effort provisioning for nodes
+   * 
+ * + * .google.container.v1.BestEffortProvisioning best_effort_provisioning = 113; + * @return Whether the bestEffortProvisioning field is set. + */ + boolean hasBestEffortProvisioning(); + /** + *
+   * Enable best effort provisioning for nodes
+   * 
+ * + * .google.container.v1.BestEffortProvisioning best_effort_provisioning = 113; + * @return The bestEffortProvisioning. + */ + com.google.container.v1.BestEffortProvisioning getBestEffortProvisioning(); + /** + *
+   * Enable best effort provisioning for nodes
+   * 
+ * + * .google.container.v1.BestEffortProvisioning best_effort_provisioning = 113; + */ + com.google.container.v1.BestEffortProvisioningOrBuilder getBestEffortProvisioningOrBuilder(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolUpdateStrategy.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolUpdateStrategy.java new file mode 100644 index 000000000000..ccc1673cf9de --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolUpdateStrategy.java @@ -0,0 +1,155 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Strategy used for node pool update.
+ * 
+ * + * Protobuf enum {@code google.container.v1.NodePoolUpdateStrategy} + */ +public enum NodePoolUpdateStrategy + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+   * Default value if unset. GKE internally defaults the update strategy to
+   * SURGE for unspecified strategies.
+   * 
+ * + * NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED = 0; + */ + NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED(0), + /** + *
+   * blue-green upgrade.
+   * 
+ * + * BLUE_GREEN = 2; + */ + BLUE_GREEN(2), + /** + *
+   * SURGE is the traditional way of upgrade a node pool.
+   * max_surge and max_unavailable determines the level of upgrade parallelism.
+   * 
+ * + * SURGE = 3; + */ + SURGE(3), + UNRECOGNIZED(-1), + ; + + /** + *
+   * Default value if unset. GKE internally defaults the update strategy to
+   * SURGE for unspecified strategies.
+   * 
+ * + * NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED = 0; + */ + public static final int NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED_VALUE = 0; + /** + *
+   * blue-green upgrade.
+   * 
+ * + * BLUE_GREEN = 2; + */ + public static final int BLUE_GREEN_VALUE = 2; + /** + *
+   * SURGE is the traditional way of upgrade a node pool.
+   * max_surge and max_unavailable determines the level of upgrade parallelism.
+   * 
+ * + * SURGE = 3; + */ + public static final int SURGE_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 NodePoolUpdateStrategy 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 NodePoolUpdateStrategy forNumber(int value) { + switch (value) { + case 0: return NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED; + case 2: return BLUE_GREEN; + case 3: return SURGE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + NodePoolUpdateStrategy> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public NodePoolUpdateStrategy findValueByNumber(int number) { + return NodePoolUpdateStrategy.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.getDescriptor().getEnumTypes().get(3); + } + + private static final NodePoolUpdateStrategy[] VALUES = values(); + + public static NodePoolUpdateStrategy 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 NodePoolUpdateStrategy(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.NodePoolUpdateStrategy) +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaint.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaint.java new file mode 100644 index 000000000000..ee305c3c98cb --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaint.java @@ -0,0 +1,1036 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Kubernetes taint is composed 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.v1.NodeTaint} + */ +public final class NodeTaint extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeTaint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeTaint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodeTaint.class, com.google.container.v1.NodeTaint.Builder.class); + } + + /** + *
+   * Possible values for Effect in taint.
+   * 
+ * + * Protobuf enum {@code google.container.v1.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< + Effect> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Effect findValueByNumber(int number) { + return Effect.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.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.v1.NodeTaint.Effect) + } + + public static final int KEY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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_ = 0; + /** + *
+   * Effect for taint.
+   * 
+ * + * .google.container.v1.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.v1.NodeTaint.Effect effect = 3; + * @return The effect. + */ + @java.lang.Override public com.google.container.v1.NodeTaint.Effect getEffect() { + com.google.container.v1.NodeTaint.Effect result = com.google.container.v1.NodeTaint.Effect.forNumber(effect_); + return result == null ? com.google.container.v1.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); + } + if (effect_ != com.google.container.v1.NodeTaint.Effect.EFFECT_UNSPECIFIED.getNumber()) { + output.writeEnum(3, effect_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); + } + if (effect_ != com.google.container.v1.NodeTaint.Effect.EFFECT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, effect_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.NodeTaint)) { + return super.equals(obj); + } + com.google.container.v1.NodeTaint other = (com.google.container.v1.NodeTaint) obj; + + if (!getKey() + .equals(other.getKey())) return false; + if (!getValue() + .equals(other.getValue())) return false; + if (effect_ != other.effect_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.NodeTaint parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.NodeTaint parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.NodeTaint parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodeTaint parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodeTaint parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.NodeTaint parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.NodeTaint parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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 composed 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.v1.NodeTaint} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.NodeTaint) + com.google.container.v1.NodeTaintOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeTaint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeTaint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodeTaint.class, com.google.container.v1.NodeTaint.Builder.class); + } + + // Construct using com.google.container.v1.NodeTaint.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + key_ = ""; + value_ = ""; + effect_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeTaint_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NodeTaint getDefaultInstanceForType() { + return com.google.container.v1.NodeTaint.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NodeTaint build() { + com.google.container.v1.NodeTaint result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NodeTaint buildPartial() { + com.google.container.v1.NodeTaint result = new com.google.container.v1.NodeTaint(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.NodeTaint result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.key_ = key_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = value_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.effect_ = effect_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.NodeTaint) { + return mergeFrom((com.google.container.v1.NodeTaint)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NodeTaint other) { + if (other == com.google.container.v1.NodeTaint.getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.effect_ != 0) { + setEffectValue(other.getEffectValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + key_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + effect_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Key for taint.
+     * 
+ * + * string key = 1; + * @return This builder for chaining. + */ + public Builder clearKey() { + key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Value for taint.
+     * 
+ * + * string value = 2; + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int effect_ = 0; + /** + *
+     * Effect for taint.
+     * 
+ * + * .google.container.v1.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.v1.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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Effect for taint.
+     * 
+ * + * .google.container.v1.NodeTaint.Effect effect = 3; + * @return The effect. + */ + @java.lang.Override + public com.google.container.v1.NodeTaint.Effect getEffect() { + com.google.container.v1.NodeTaint.Effect result = com.google.container.v1.NodeTaint.Effect.forNumber(effect_); + return result == null ? com.google.container.v1.NodeTaint.Effect.UNRECOGNIZED : result; + } + /** + *
+     * Effect for taint.
+     * 
+ * + * .google.container.v1.NodeTaint.Effect effect = 3; + * @param value The effect to set. + * @return This builder for chaining. + */ + public Builder setEffect(com.google.container.v1.NodeTaint.Effect value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + effect_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Effect for taint.
+     * 
+ * + * .google.container.v1.NodeTaint.Effect effect = 3; + * @return This builder for chaining. + */ + public Builder clearEffect() { + bitField0_ = (bitField0_ & ~0x00000004); + 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.v1.NodeTaint) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.NodeTaint) + private static final com.google.container.v1.NodeTaint DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.NodeTaint(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.NodeTaint getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaintOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaintOrBuilder.java new file mode 100644 index 000000000000..e7a17b9dcfdc --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaintOrBuilder.java @@ -0,0 +1,69 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface NodeTaintOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.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.v1.NodeTaint.Effect effect = 3; + * @return The enum numeric value on the wire for effect. + */ + int getEffectValue(); + /** + *
+   * Effect for taint.
+   * 
+ * + * .google.container.v1.NodeTaint.Effect effect = 3; + * @return The effect. + */ + com.google.container.v1.NodeTaint.Effect getEffect(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaints.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaints.java new file mode 100644 index 000000000000..3c023fbe63c0 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaints.java @@ -0,0 +1,862 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Collection of Kubernetes [node
+ * taints](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration).
+ * 
+ * + * Protobuf type {@code google.container.v1.NodeTaints} + */ +public final class NodeTaints extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.NodeTaints) + NodeTaintsOrBuilder { +private static final long serialVersionUID = 0L; + // Use NodeTaints.newBuilder() to construct. + private NodeTaints(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeTaints() { + taints_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NodeTaints(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeTaints_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeTaints_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodeTaints.class, com.google.container.v1.NodeTaints.Builder.class); + } + + public static final int TAINTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List taints_; + /** + *
+   * List of node taints.
+   * 
+ * + * repeated .google.container.v1.NodeTaint taints = 1; + */ + @java.lang.Override + public java.util.List getTaintsList() { + return taints_; + } + /** + *
+   * List of node taints.
+   * 
+ * + * repeated .google.container.v1.NodeTaint taints = 1; + */ + @java.lang.Override + public java.util.List + getTaintsOrBuilderList() { + return taints_; + } + /** + *
+   * List of node taints.
+   * 
+ * + * repeated .google.container.v1.NodeTaint taints = 1; + */ + @java.lang.Override + public int getTaintsCount() { + return taints_.size(); + } + /** + *
+   * List of node taints.
+   * 
+ * + * repeated .google.container.v1.NodeTaint taints = 1; + */ + @java.lang.Override + public com.google.container.v1.NodeTaint getTaints(int index) { + return taints_.get(index); + } + /** + *
+   * List of node taints.
+   * 
+ * + * repeated .google.container.v1.NodeTaint taints = 1; + */ + @java.lang.Override + public com.google.container.v1.NodeTaintOrBuilder getTaintsOrBuilder( + int index) { + return taints_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < taints_.size(); i++) { + output.writeMessage(1, taints_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < taints_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, taints_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.NodeTaints)) { + return super.equals(obj); + } + com.google.container.v1.NodeTaints other = (com.google.container.v1.NodeTaints) obj; + + if (!getTaintsList() + .equals(other.getTaintsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTaintsCount() > 0) { + hash = (37 * hash) + TAINTS_FIELD_NUMBER; + hash = (53 * hash) + getTaintsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.NodeTaints parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodeTaints parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodeTaints parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodeTaints parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodeTaints parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NodeTaints parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NodeTaints parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NodeTaints parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.NodeTaints parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.NodeTaints parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.NodeTaints parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NodeTaints parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.NodeTaints prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Collection of Kubernetes [node
+   * taints](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration).
+   * 
+ * + * Protobuf type {@code google.container.v1.NodeTaints} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.NodeTaints) + com.google.container.v1.NodeTaintsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeTaints_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeTaints_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NodeTaints.class, com.google.container.v1.NodeTaints.Builder.class); + } + + // Construct using com.google.container.v1.NodeTaints.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (taintsBuilder_ == null) { + taints_ = java.util.Collections.emptyList(); + } else { + taints_ = null; + taintsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NodeTaints_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NodeTaints getDefaultInstanceForType() { + return com.google.container.v1.NodeTaints.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NodeTaints build() { + com.google.container.v1.NodeTaints result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NodeTaints buildPartial() { + com.google.container.v1.NodeTaints result = new com.google.container.v1.NodeTaints(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1.NodeTaints result) { + if (taintsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + taints_ = java.util.Collections.unmodifiableList(taints_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.taints_ = taints_; + } else { + result.taints_ = taintsBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1.NodeTaints result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.NodeTaints) { + return mergeFrom((com.google.container.v1.NodeTaints)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NodeTaints other) { + if (other == com.google.container.v1.NodeTaints.getDefaultInstance()) return this; + if (taintsBuilder_ == null) { + if (!other.taints_.isEmpty()) { + if (taints_.isEmpty()) { + taints_ = other.taints_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTaintsIsMutable(); + taints_.addAll(other.taints_); + } + onChanged(); + } + } else { + if (!other.taints_.isEmpty()) { + if (taintsBuilder_.isEmpty()) { + taintsBuilder_.dispose(); + taintsBuilder_ = null; + taints_ = other.taints_; + bitField0_ = (bitField0_ & ~0x00000001); + taintsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTaintsFieldBuilder() : null; + } else { + taintsBuilder_.addAllMessages(other.taints_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.container.v1.NodeTaint m = + input.readMessage( + com.google.container.v1.NodeTaint.parser(), + extensionRegistry); + if (taintsBuilder_ == null) { + ensureTaintsIsMutable(); + taints_.add(m); + } else { + taintsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List taints_ = + java.util.Collections.emptyList(); + private void ensureTaintsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + taints_ = new java.util.ArrayList(taints_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.NodeTaint, com.google.container.v1.NodeTaint.Builder, com.google.container.v1.NodeTaintOrBuilder> taintsBuilder_; + + /** + *
+     * List of node taints.
+     * 
+ * + * repeated .google.container.v1.NodeTaint taints = 1; + */ + public java.util.List getTaintsList() { + if (taintsBuilder_ == null) { + return java.util.Collections.unmodifiableList(taints_); + } else { + return taintsBuilder_.getMessageList(); + } + } + /** + *
+     * List of node taints.
+     * 
+ * + * repeated .google.container.v1.NodeTaint taints = 1; + */ + public int getTaintsCount() { + if (taintsBuilder_ == null) { + return taints_.size(); + } else { + return taintsBuilder_.getCount(); + } + } + /** + *
+     * List of node taints.
+     * 
+ * + * repeated .google.container.v1.NodeTaint taints = 1; + */ + public com.google.container.v1.NodeTaint getTaints(int index) { + if (taintsBuilder_ == null) { + return taints_.get(index); + } else { + return taintsBuilder_.getMessage(index); + } + } + /** + *
+     * List of node taints.
+     * 
+ * + * repeated .google.container.v1.NodeTaint taints = 1; + */ + public Builder setTaints( + int index, com.google.container.v1.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 node taints.
+     * 
+ * + * repeated .google.container.v1.NodeTaint taints = 1; + */ + public Builder setTaints( + int index, com.google.container.v1.NodeTaint.Builder builderForValue) { + if (taintsBuilder_ == null) { + ensureTaintsIsMutable(); + taints_.set(index, builderForValue.build()); + onChanged(); + } else { + taintsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of node taints.
+     * 
+ * + * repeated .google.container.v1.NodeTaint taints = 1; + */ + public Builder addTaints(com.google.container.v1.NodeTaint value) { + if (taintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTaintsIsMutable(); + taints_.add(value); + onChanged(); + } else { + taintsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * List of node taints.
+     * 
+ * + * repeated .google.container.v1.NodeTaint taints = 1; + */ + public Builder addTaints( + int index, com.google.container.v1.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 node taints.
+     * 
+ * + * repeated .google.container.v1.NodeTaint taints = 1; + */ + public Builder addTaints( + com.google.container.v1.NodeTaint.Builder builderForValue) { + if (taintsBuilder_ == null) { + ensureTaintsIsMutable(); + taints_.add(builderForValue.build()); + onChanged(); + } else { + taintsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * List of node taints.
+     * 
+ * + * repeated .google.container.v1.NodeTaint taints = 1; + */ + public Builder addTaints( + int index, com.google.container.v1.NodeTaint.Builder builderForValue) { + if (taintsBuilder_ == null) { + ensureTaintsIsMutable(); + taints_.add(index, builderForValue.build()); + onChanged(); + } else { + taintsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of node taints.
+     * 
+ * + * repeated .google.container.v1.NodeTaint taints = 1; + */ + 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 node taints.
+     * 
+ * + * repeated .google.container.v1.NodeTaint taints = 1; + */ + public Builder clearTaints() { + if (taintsBuilder_ == null) { + taints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + taintsBuilder_.clear(); + } + return this; + } + /** + *
+     * List of node taints.
+     * 
+ * + * repeated .google.container.v1.NodeTaint taints = 1; + */ + public Builder removeTaints(int index) { + if (taintsBuilder_ == null) { + ensureTaintsIsMutable(); + taints_.remove(index); + onChanged(); + } else { + taintsBuilder_.remove(index); + } + return this; + } + /** + *
+     * List of node taints.
+     * 
+ * + * repeated .google.container.v1.NodeTaint taints = 1; + */ + public com.google.container.v1.NodeTaint.Builder getTaintsBuilder( + int index) { + return getTaintsFieldBuilder().getBuilder(index); + } + /** + *
+     * List of node taints.
+     * 
+ * + * repeated .google.container.v1.NodeTaint taints = 1; + */ + public com.google.container.v1.NodeTaintOrBuilder getTaintsOrBuilder( + int index) { + if (taintsBuilder_ == null) { + return taints_.get(index); } else { + return taintsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * List of node taints.
+     * 
+ * + * repeated .google.container.v1.NodeTaint taints = 1; + */ + public java.util.List + getTaintsOrBuilderList() { + if (taintsBuilder_ != null) { + return taintsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(taints_); + } + } + /** + *
+     * List of node taints.
+     * 
+ * + * repeated .google.container.v1.NodeTaint taints = 1; + */ + public com.google.container.v1.NodeTaint.Builder addTaintsBuilder() { + return getTaintsFieldBuilder().addBuilder( + com.google.container.v1.NodeTaint.getDefaultInstance()); + } + /** + *
+     * List of node taints.
+     * 
+ * + * repeated .google.container.v1.NodeTaint taints = 1; + */ + public com.google.container.v1.NodeTaint.Builder addTaintsBuilder( + int index) { + return getTaintsFieldBuilder().addBuilder( + index, com.google.container.v1.NodeTaint.getDefaultInstance()); + } + /** + *
+     * List of node taints.
+     * 
+ * + * repeated .google.container.v1.NodeTaint taints = 1; + */ + public java.util.List + getTaintsBuilderList() { + return getTaintsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.NodeTaint, com.google.container.v1.NodeTaint.Builder, com.google.container.v1.NodeTaintOrBuilder> + getTaintsFieldBuilder() { + if (taintsBuilder_ == null) { + taintsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.NodeTaint, com.google.container.v1.NodeTaint.Builder, com.google.container.v1.NodeTaintOrBuilder>( + taints_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + taints_ = null; + } + return taintsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.NodeTaints) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.NodeTaints) + private static final com.google.container.v1.NodeTaints DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.NodeTaints(); + } + + public static com.google.container.v1.NodeTaints getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeTaints parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.NodeTaints getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaintsOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaintsOrBuilder.java new file mode 100644 index 000000000000..6fe5fe648986 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaintsOrBuilder.java @@ -0,0 +1,54 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface NodeTaintsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NodeTaints) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * List of node taints.
+   * 
+ * + * repeated .google.container.v1.NodeTaint taints = 1; + */ + java.util.List + getTaintsList(); + /** + *
+   * List of node taints.
+   * 
+ * + * repeated .google.container.v1.NodeTaint taints = 1; + */ + com.google.container.v1.NodeTaint getTaints(int index); + /** + *
+   * List of node taints.
+   * 
+ * + * repeated .google.container.v1.NodeTaint taints = 1; + */ + int getTaintsCount(); + /** + *
+   * List of node taints.
+   * 
+ * + * repeated .google.container.v1.NodeTaint taints = 1; + */ + java.util.List + getTaintsOrBuilderList(); + /** + *
+   * List of node taints.
+   * 
+ * + * repeated .google.container.v1.NodeTaint taints = 1; + */ + com.google.container.v1.NodeTaintOrBuilder getTaintsOrBuilder( + int index); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NotificationConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NotificationConfig.java new file mode 100644 index 000000000000..e7a843ef6ac4 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NotificationConfig.java @@ -0,0 +1,2611 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * NotificationConfig is the configuration of notifications.
+ * 
+ * + * Protobuf type {@code google.container.v1.NotificationConfig} + */ +public final class NotificationConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.NotificationConfig) + NotificationConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use NotificationConfig.newBuilder() to construct. + private NotificationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NotificationConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NotificationConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NotificationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NotificationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NotificationConfig.class, com.google.container.v1.NotificationConfig.Builder.class); + } + + /** + *
+   * Types of notifications currently supported. Can be used to filter what
+   * notifications are sent.
+   * 
+ * + * Protobuf enum {@code google.container.v1.NotificationConfig.EventType} + */ + public enum EventType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not set, will be ignored.
+     * 
+ * + * EVENT_TYPE_UNSPECIFIED = 0; + */ + EVENT_TYPE_UNSPECIFIED(0), + /** + *
+     * Corresponds with UpgradeAvailableEvent.
+     * 
+ * + * UPGRADE_AVAILABLE_EVENT = 1; + */ + UPGRADE_AVAILABLE_EVENT(1), + /** + *
+     * Corresponds with UpgradeEvent.
+     * 
+ * + * UPGRADE_EVENT = 2; + */ + UPGRADE_EVENT(2), + /** + *
+     * Corresponds with SecurityBulletinEvent.
+     * 
+ * + * SECURITY_BULLETIN_EVENT = 3; + */ + SECURITY_BULLETIN_EVENT(3), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not set, will be ignored.
+     * 
+ * + * EVENT_TYPE_UNSPECIFIED = 0; + */ + public static final int EVENT_TYPE_UNSPECIFIED_VALUE = 0; + /** + *
+     * Corresponds with UpgradeAvailableEvent.
+     * 
+ * + * UPGRADE_AVAILABLE_EVENT = 1; + */ + public static final int UPGRADE_AVAILABLE_EVENT_VALUE = 1; + /** + *
+     * Corresponds with UpgradeEvent.
+     * 
+ * + * UPGRADE_EVENT = 2; + */ + public static final int UPGRADE_EVENT_VALUE = 2; + /** + *
+     * Corresponds with SecurityBulletinEvent.
+     * 
+ * + * SECURITY_BULLETIN_EVENT = 3; + */ + public static final int SECURITY_BULLETIN_EVENT_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EventType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static EventType forNumber(int value) { + switch (value) { + case 0: return EVENT_TYPE_UNSPECIFIED; + case 1: return UPGRADE_AVAILABLE_EVENT; + case 2: return UPGRADE_EVENT; + case 3: return SECURITY_BULLETIN_EVENT; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + EventType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EventType findValueByNumber(int number) { + return EventType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.NotificationConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final EventType[] VALUES = values(); + + public static EventType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private EventType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.NotificationConfig.EventType) + } + + public interface PubSubOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NotificationConfig.PubSub) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Enable notifications for Pub/Sub.
+     * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); + + /** + *
+     * The desired Pub/Sub topic to which notifications will be
+     * sent by GKE. Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 2 [(.google.api.resource_reference) = { ... } + * @return The topic. + */ + java.lang.String getTopic(); + /** + *
+     * The desired Pub/Sub topic to which notifications will be
+     * sent by GKE. Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 2 [(.google.api.resource_reference) = { ... } + * @return The bytes for topic. + */ + com.google.protobuf.ByteString + getTopicBytes(); + + /** + *
+     * Allows filtering to one or more specific event types. If no filter is
+     * specified, or if a filter is specified with no event types, all event
+     * types will be sent
+     * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + * @return Whether the filter field is set. + */ + boolean hasFilter(); + /** + *
+     * Allows filtering to one or more specific event types. If no filter is
+     * specified, or if a filter is specified with no event types, all event
+     * types will be sent
+     * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + * @return The filter. + */ + com.google.container.v1.NotificationConfig.Filter getFilter(); + /** + *
+     * Allows filtering to one or more specific event types. If no filter is
+     * specified, or if a filter is specified with no event types, all event
+     * types will be sent
+     * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + */ + com.google.container.v1.NotificationConfig.FilterOrBuilder getFilterOrBuilder(); + } + /** + *
+   * Pub/Sub specific notification config.
+   * 
+ * + * Protobuf type {@code google.container.v1.NotificationConfig.PubSub} + */ + public static final class PubSub extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.NotificationConfig.PubSub) + PubSubOrBuilder { + private static final long serialVersionUID = 0L; + // Use PubSub.newBuilder() to construct. + private PubSub(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PubSub() { + topic_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PubSub(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NotificationConfig_PubSub_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NotificationConfig_PubSub_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NotificationConfig.PubSub.class, com.google.container.v1.NotificationConfig.PubSub.Builder.class); + } + + private int bitField0_; + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+     * 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; + @SuppressWarnings("serial") + private volatile java.lang.Object topic_ = ""; + /** + *
+     * The desired Pub/Sub topic to which notifications will be
+     * sent by GKE. Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 2 [(.google.api.resource_reference) = { ... } + * @return The topic. + */ + @java.lang.Override + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } + } + /** + *
+     * The desired Pub/Sub topic to which notifications will be
+     * sent by GKE. Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 2 [(.google.api.resource_reference) = { ... } + * @return The bytes for topic. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 3; + private com.google.container.v1.NotificationConfig.Filter filter_; + /** + *
+     * Allows filtering to one or more specific event types. If no filter is
+     * specified, or if a filter is specified with no event types, all event
+     * types will be sent
+     * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + * @return Whether the filter field is set. + */ + @java.lang.Override + public boolean hasFilter() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Allows filtering to one or more specific event types. If no filter is
+     * specified, or if a filter is specified with no event types, all event
+     * types will be sent
+     * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + * @return The filter. + */ + @java.lang.Override + public com.google.container.v1.NotificationConfig.Filter getFilter() { + return filter_ == null ? com.google.container.v1.NotificationConfig.Filter.getDefaultInstance() : filter_; + } + /** + *
+     * Allows filtering to one or more specific event types. If no filter is
+     * specified, or if a filter is specified with no event types, all event
+     * types will be sent
+     * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + */ + @java.lang.Override + public com.google.container.v1.NotificationConfig.FilterOrBuilder getFilterOrBuilder() { + return filter_ == null ? com.google.container.v1.NotificationConfig.Filter.getDefaultInstance() : filter_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, topic_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getFilter()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enabled_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topic_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getFilter()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.NotificationConfig.PubSub)) { + return super.equals(obj); + } + com.google.container.v1.NotificationConfig.PubSub other = (com.google.container.v1.NotificationConfig.PubSub) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getTopic() + .equals(other.getTopic())) return false; + if (hasFilter() != other.hasFilter()) return false; + if (hasFilter()) { + if (!getFilter() + .equals(other.getFilter())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnabled()); + hash = (37 * hash) + TOPIC_FIELD_NUMBER; + hash = (53 * hash) + getTopic().hashCode(); + if (hasFilter()) { + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.NotificationConfig.PubSub parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NotificationConfig.PubSub parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NotificationConfig.PubSub parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NotificationConfig.PubSub parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NotificationConfig.PubSub parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NotificationConfig.PubSub parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NotificationConfig.PubSub parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NotificationConfig.PubSub parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.NotificationConfig.PubSub parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.NotificationConfig.PubSub parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.NotificationConfig.PubSub parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NotificationConfig.PubSub parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.NotificationConfig.PubSub prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Pub/Sub specific notification config.
+     * 
+ * + * Protobuf type {@code google.container.v1.NotificationConfig.PubSub} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.NotificationConfig.PubSub) + com.google.container.v1.NotificationConfig.PubSubOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NotificationConfig_PubSub_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NotificationConfig_PubSub_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NotificationConfig.PubSub.class, com.google.container.v1.NotificationConfig.PubSub.Builder.class); + } + + // Construct using com.google.container.v1.NotificationConfig.PubSub.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getFilterFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + topic_ = ""; + filter_ = null; + if (filterBuilder_ != null) { + filterBuilder_.dispose(); + filterBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NotificationConfig_PubSub_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NotificationConfig.PubSub getDefaultInstanceForType() { + return com.google.container.v1.NotificationConfig.PubSub.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NotificationConfig.PubSub build() { + com.google.container.v1.NotificationConfig.PubSub result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NotificationConfig.PubSub buildPartial() { + com.google.container.v1.NotificationConfig.PubSub result = new com.google.container.v1.NotificationConfig.PubSub(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.NotificationConfig.PubSub result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.topic_ = topic_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.filter_ = filterBuilder_ == null + ? filter_ + : filterBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.NotificationConfig.PubSub) { + return mergeFrom((com.google.container.v1.NotificationConfig.PubSub)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NotificationConfig.PubSub other) { + if (other == com.google.container.v1.NotificationConfig.PubSub.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (!other.getTopic().isEmpty()) { + topic_ = other.topic_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasFilter()) { + mergeFilter(other.getFilter()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + topic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getFilterFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Enable notifications for Pub/Sub.
+       * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000002; + 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(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.container.v1.NotificationConfig.Filter filter_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NotificationConfig.Filter, com.google.container.v1.NotificationConfig.Filter.Builder, com.google.container.v1.NotificationConfig.FilterOrBuilder> filterBuilder_; + /** + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + * @return Whether the filter field is set. + */ + public boolean hasFilter() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + * @return The filter. + */ + public com.google.container.v1.NotificationConfig.Filter getFilter() { + if (filterBuilder_ == null) { + return filter_ == null ? com.google.container.v1.NotificationConfig.Filter.getDefaultInstance() : filter_; + } else { + return filterBuilder_.getMessage(); + } + } + /** + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + */ + public Builder setFilter(com.google.container.v1.NotificationConfig.Filter value) { + if (filterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + } else { + filterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + */ + public Builder setFilter( + com.google.container.v1.NotificationConfig.Filter.Builder builderForValue) { + if (filterBuilder_ == null) { + filter_ = builderForValue.build(); + } else { + filterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + */ + public Builder mergeFilter(com.google.container.v1.NotificationConfig.Filter value) { + if (filterBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + filter_ != null && + filter_ != com.google.container.v1.NotificationConfig.Filter.getDefaultInstance()) { + getFilterBuilder().mergeFrom(value); + } else { + filter_ = value; + } + } else { + filterBuilder_.mergeFrom(value); + } + if (filter_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + */ + public Builder clearFilter() { + bitField0_ = (bitField0_ & ~0x00000004); + filter_ = null; + if (filterBuilder_ != null) { + filterBuilder_.dispose(); + filterBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + */ + public com.google.container.v1.NotificationConfig.Filter.Builder getFilterBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getFilterFieldBuilder().getBuilder(); + } + /** + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + */ + public com.google.container.v1.NotificationConfig.FilterOrBuilder getFilterOrBuilder() { + if (filterBuilder_ != null) { + return filterBuilder_.getMessageOrBuilder(); + } else { + return filter_ == null ? + com.google.container.v1.NotificationConfig.Filter.getDefaultInstance() : filter_; + } + } + /** + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1.NotificationConfig.Filter filter = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NotificationConfig.Filter, com.google.container.v1.NotificationConfig.Filter.Builder, com.google.container.v1.NotificationConfig.FilterOrBuilder> + getFilterFieldBuilder() { + if (filterBuilder_ == null) { + filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NotificationConfig.Filter, com.google.container.v1.NotificationConfig.Filter.Builder, com.google.container.v1.NotificationConfig.FilterOrBuilder>( + getFilter(), + getParentForChildren(), + isClean()); + filter_ = null; + } + return filterBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.NotificationConfig.PubSub) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.NotificationConfig.PubSub) + private static final com.google.container.v1.NotificationConfig.PubSub DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.NotificationConfig.PubSub(); + } + + public static com.google.container.v1.NotificationConfig.PubSub getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PubSub parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.NotificationConfig.PubSub getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface FilterOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NotificationConfig.Filter) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * @return A list containing the eventType. + */ + java.util.List getEventTypeList(); + /** + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * @return The count of eventType. + */ + int getEventTypeCount(); + /** + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * @param index The index of the element to return. + * @return The eventType at the given index. + */ + com.google.container.v1.NotificationConfig.EventType getEventType(int index); + /** + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * @return A list containing the enum numeric values on the wire for eventType. + */ + java.util.List + getEventTypeValueList(); + /** + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of eventType at the given index. + */ + int getEventTypeValue(int index); + } + /** + *
+   * Allows filtering to one or more specific event types. If event types are
+   * present, those and only those event types will be transmitted to the
+   * cluster. Other types will be skipped. If no filter is specified, or no
+   * event types are present, all event types will be sent
+   * 
+ * + * Protobuf type {@code google.container.v1.NotificationConfig.Filter} + */ + public static final class Filter extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.NotificationConfig.Filter) + FilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use Filter.newBuilder() to construct. + private Filter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Filter() { + eventType_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Filter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NotificationConfig_Filter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NotificationConfig_Filter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NotificationConfig.Filter.class, com.google.container.v1.NotificationConfig.Filter.Builder.class); + } + + public static final int EVENT_TYPE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List eventType_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.container.v1.NotificationConfig.EventType> eventType_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.container.v1.NotificationConfig.EventType>() { + public com.google.container.v1.NotificationConfig.EventType convert(java.lang.Integer from) { + com.google.container.v1.NotificationConfig.EventType result = com.google.container.v1.NotificationConfig.EventType.forNumber(from); + return result == null ? com.google.container.v1.NotificationConfig.EventType.UNRECOGNIZED : result; + } + }; + /** + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * @return A list containing the eventType. + */ + @java.lang.Override + public java.util.List getEventTypeList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.container.v1.NotificationConfig.EventType>(eventType_, eventType_converter_); + } + /** + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * @return The count of eventType. + */ + @java.lang.Override + public int getEventTypeCount() { + return eventType_.size(); + } + /** + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * @param index The index of the element to return. + * @return The eventType at the given index. + */ + @java.lang.Override + public com.google.container.v1.NotificationConfig.EventType getEventType(int index) { + return eventType_converter_.convert(eventType_.get(index)); + } + /** + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * @return A list containing the enum numeric values on the wire for eventType. + */ + @java.lang.Override + public java.util.List + getEventTypeValueList() { + return eventType_; + } + /** + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of eventType at the given index. + */ + @java.lang.Override + public int getEventTypeValue(int index) { + return eventType_.get(index); + } + private int eventTypeMemoizedSerializedSize; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (getEventTypeList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(eventTypeMemoizedSerializedSize); + } + for (int i = 0; i < eventType_.size(); i++) { + output.writeEnumNoTag(eventType_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < eventType_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(eventType_.get(i)); + } + size += dataSize; + if (!getEventTypeList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }eventTypeMemoizedSerializedSize = dataSize; + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.NotificationConfig.Filter)) { + return super.equals(obj); + } + com.google.container.v1.NotificationConfig.Filter other = (com.google.container.v1.NotificationConfig.Filter) obj; + + if (!eventType_.equals(other.eventType_)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEventTypeCount() > 0) { + hash = (37 * hash) + EVENT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + eventType_.hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.NotificationConfig.Filter parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NotificationConfig.Filter parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NotificationConfig.Filter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NotificationConfig.Filter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NotificationConfig.Filter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NotificationConfig.Filter parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NotificationConfig.Filter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NotificationConfig.Filter parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.NotificationConfig.Filter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.NotificationConfig.Filter parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.NotificationConfig.Filter parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NotificationConfig.Filter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.NotificationConfig.Filter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Allows filtering to one or more specific event types. If event types are
+     * present, those and only those event types will be transmitted to the
+     * cluster. Other types will be skipped. If no filter is specified, or no
+     * event types are present, all event types will be sent
+     * 
+ * + * Protobuf type {@code google.container.v1.NotificationConfig.Filter} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.NotificationConfig.Filter) + com.google.container.v1.NotificationConfig.FilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NotificationConfig_Filter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NotificationConfig_Filter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NotificationConfig.Filter.class, com.google.container.v1.NotificationConfig.Filter.Builder.class); + } + + // Construct using com.google.container.v1.NotificationConfig.Filter.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + eventType_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NotificationConfig_Filter_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NotificationConfig.Filter getDefaultInstanceForType() { + return com.google.container.v1.NotificationConfig.Filter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NotificationConfig.Filter build() { + com.google.container.v1.NotificationConfig.Filter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NotificationConfig.Filter buildPartial() { + com.google.container.v1.NotificationConfig.Filter result = new com.google.container.v1.NotificationConfig.Filter(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1.NotificationConfig.Filter result) { + if (((bitField0_ & 0x00000001) != 0)) { + eventType_ = java.util.Collections.unmodifiableList(eventType_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.eventType_ = eventType_; + } + + private void buildPartial0(com.google.container.v1.NotificationConfig.Filter result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.NotificationConfig.Filter) { + return mergeFrom((com.google.container.v1.NotificationConfig.Filter)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NotificationConfig.Filter other) { + if (other == com.google.container.v1.NotificationConfig.Filter.getDefaultInstance()) return this; + if (!other.eventType_.isEmpty()) { + if (eventType_.isEmpty()) { + eventType_ = other.eventType_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEventTypeIsMutable(); + eventType_.addAll(other.eventType_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int tmpRaw = input.readEnum(); + ensureEventTypeIsMutable(); + eventType_.add(tmpRaw); + break; + } // case 8 + case 10: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureEventTypeIsMutable(); + eventType_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List eventType_ = + java.util.Collections.emptyList(); + private void ensureEventTypeIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + eventType_ = new java.util.ArrayList(eventType_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * @return A list containing the eventType. + */ + public java.util.List getEventTypeList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.container.v1.NotificationConfig.EventType>(eventType_, eventType_converter_); + } + /** + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * @return The count of eventType. + */ + public int getEventTypeCount() { + return eventType_.size(); + } + /** + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * @param index The index of the element to return. + * @return The eventType at the given index. + */ + public com.google.container.v1.NotificationConfig.EventType getEventType(int index) { + return eventType_converter_.convert(eventType_.get(index)); + } + /** + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * @param index The index to set the value at. + * @param value The eventType to set. + * @return This builder for chaining. + */ + public Builder setEventType( + int index, com.google.container.v1.NotificationConfig.EventType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventTypeIsMutable(); + eventType_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * @param value The eventType to add. + * @return This builder for chaining. + */ + public Builder addEventType(com.google.container.v1.NotificationConfig.EventType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventTypeIsMutable(); + eventType_.add(value.getNumber()); + onChanged(); + return this; + } + /** + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * @param values The eventType to add. + * @return This builder for chaining. + */ + public Builder addAllEventType( + java.lang.Iterable values) { + ensureEventTypeIsMutable(); + for (com.google.container.v1.NotificationConfig.EventType value : values) { + eventType_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * @return This builder for chaining. + */ + public Builder clearEventType() { + eventType_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * @return A list containing the enum numeric values on the wire for eventType. + */ + public java.util.List + getEventTypeValueList() { + return java.util.Collections.unmodifiableList(eventType_); + } + /** + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of eventType at the given index. + */ + public int getEventTypeValue(int index) { + return eventType_.get(index); + } + /** + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for eventType to set. + * @return This builder for chaining. + */ + public Builder setEventTypeValue( + int index, int value) { + ensureEventTypeIsMutable(); + eventType_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * @param value The enum numeric value on the wire for eventType to add. + * @return This builder for chaining. + */ + public Builder addEventTypeValue(int value) { + ensureEventTypeIsMutable(); + eventType_.add(value); + onChanged(); + return this; + } + /** + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1.NotificationConfig.EventType event_type = 1; + * @param values The enum numeric values on the wire for eventType to add. + * @return This builder for chaining. + */ + public Builder addAllEventTypeValue( + java.lang.Iterable values) { + ensureEventTypeIsMutable(); + for (int value : values) { + eventType_.add(value); + } + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.NotificationConfig.Filter) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.NotificationConfig.Filter) + private static final com.google.container.v1.NotificationConfig.Filter DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.NotificationConfig.Filter(); + } + + public static com.google.container.v1.NotificationConfig.Filter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Filter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.NotificationConfig.Filter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int PUBSUB_FIELD_NUMBER = 1; + private com.google.container.v1.NotificationConfig.PubSub pubsub_; + /** + *
+   * Notification config for Pub/Sub.
+   * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + * @return Whether the pubsub field is set. + */ + @java.lang.Override + public boolean hasPubsub() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Notification config for Pub/Sub.
+   * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + * @return The pubsub. + */ + @java.lang.Override + public com.google.container.v1.NotificationConfig.PubSub getPubsub() { + return pubsub_ == null ? com.google.container.v1.NotificationConfig.PubSub.getDefaultInstance() : pubsub_; + } + /** + *
+   * Notification config for Pub/Sub.
+   * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + */ + @java.lang.Override + public com.google.container.v1.NotificationConfig.PubSubOrBuilder getPubsubOrBuilder() { + return pubsub_ == null ? com.google.container.v1.NotificationConfig.PubSub.getDefaultInstance() : pubsub_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPubsub()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPubsub()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.NotificationConfig)) { + return super.equals(obj); + } + com.google.container.v1.NotificationConfig other = (com.google.container.v1.NotificationConfig) obj; + + if (hasPubsub() != other.hasPubsub()) return false; + if (hasPubsub()) { + if (!getPubsub() + .equals(other.getPubsub())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.NotificationConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NotificationConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NotificationConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NotificationConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NotificationConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.NotificationConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.NotificationConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NotificationConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.NotificationConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.NotificationConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.NotificationConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.NotificationConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.NotificationConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * NotificationConfig is the configuration of notifications.
+   * 
+ * + * Protobuf type {@code google.container.v1.NotificationConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.NotificationConfig) + com.google.container.v1.NotificationConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NotificationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NotificationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.NotificationConfig.class, com.google.container.v1.NotificationConfig.Builder.class); + } + + // Construct using com.google.container.v1.NotificationConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getPubsubFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pubsub_ = null; + if (pubsubBuilder_ != null) { + pubsubBuilder_.dispose(); + pubsubBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_NotificationConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.NotificationConfig getDefaultInstanceForType() { + return com.google.container.v1.NotificationConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.NotificationConfig build() { + com.google.container.v1.NotificationConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.NotificationConfig buildPartial() { + com.google.container.v1.NotificationConfig result = new com.google.container.v1.NotificationConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.NotificationConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pubsub_ = pubsubBuilder_ == null + ? pubsub_ + : pubsubBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.NotificationConfig) { + return mergeFrom((com.google.container.v1.NotificationConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.NotificationConfig other) { + if (other == com.google.container.v1.NotificationConfig.getDefaultInstance()) return this; + if (other.hasPubsub()) { + mergePubsub(other.getPubsub()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getPubsubFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.container.v1.NotificationConfig.PubSub pubsub_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NotificationConfig.PubSub, com.google.container.v1.NotificationConfig.PubSub.Builder, com.google.container.v1.NotificationConfig.PubSubOrBuilder> pubsubBuilder_; + /** + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + * @return Whether the pubsub field is set. + */ + public boolean hasPubsub() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + * @return The pubsub. + */ + public com.google.container.v1.NotificationConfig.PubSub getPubsub() { + if (pubsubBuilder_ == null) { + return pubsub_ == null ? com.google.container.v1.NotificationConfig.PubSub.getDefaultInstance() : pubsub_; + } else { + return pubsubBuilder_.getMessage(); + } + } + /** + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + */ + public Builder setPubsub(com.google.container.v1.NotificationConfig.PubSub value) { + if (pubsubBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pubsub_ = value; + } else { + pubsubBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + */ + public Builder setPubsub( + com.google.container.v1.NotificationConfig.PubSub.Builder builderForValue) { + if (pubsubBuilder_ == null) { + pubsub_ = builderForValue.build(); + } else { + pubsubBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + */ + public Builder mergePubsub(com.google.container.v1.NotificationConfig.PubSub value) { + if (pubsubBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + pubsub_ != null && + pubsub_ != com.google.container.v1.NotificationConfig.PubSub.getDefaultInstance()) { + getPubsubBuilder().mergeFrom(value); + } else { + pubsub_ = value; + } + } else { + pubsubBuilder_.mergeFrom(value); + } + if (pubsub_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + */ + public Builder clearPubsub() { + bitField0_ = (bitField0_ & ~0x00000001); + pubsub_ = null; + if (pubsubBuilder_ != null) { + pubsubBuilder_.dispose(); + pubsubBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + */ + public com.google.container.v1.NotificationConfig.PubSub.Builder getPubsubBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPubsubFieldBuilder().getBuilder(); + } + /** + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + */ + public com.google.container.v1.NotificationConfig.PubSubOrBuilder getPubsubOrBuilder() { + if (pubsubBuilder_ != null) { + return pubsubBuilder_.getMessageOrBuilder(); + } else { + return pubsub_ == null ? + com.google.container.v1.NotificationConfig.PubSub.getDefaultInstance() : pubsub_; + } + } + /** + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NotificationConfig.PubSub, com.google.container.v1.NotificationConfig.PubSub.Builder, com.google.container.v1.NotificationConfig.PubSubOrBuilder> + getPubsubFieldBuilder() { + if (pubsubBuilder_ == null) { + pubsubBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NotificationConfig.PubSub, com.google.container.v1.NotificationConfig.PubSub.Builder, com.google.container.v1.NotificationConfig.PubSubOrBuilder>( + getPubsub(), + getParentForChildren(), + isClean()); + pubsub_ = null; + } + return pubsubBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.NotificationConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.NotificationConfig) + private static final com.google.container.v1.NotificationConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.NotificationConfig(); + } + + public static com.google.container.v1.NotificationConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NotificationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.NotificationConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NotificationConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NotificationConfigOrBuilder.java new file mode 100644 index 000000000000..99b4f409e847 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NotificationConfigOrBuilder.java @@ -0,0 +1,37 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface NotificationConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.NotificationConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Notification config for Pub/Sub.
+   * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + * @return Whether the pubsub field is set. + */ + boolean hasPubsub(); + /** + *
+   * Notification config for Pub/Sub.
+   * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + * @return The pubsub. + */ + com.google.container.v1.NotificationConfig.PubSub getPubsub(); + /** + *
+   * Notification config for Pub/Sub.
+   * 
+ * + * .google.container.v1.NotificationConfig.PubSub pubsub = 1; + */ + com.google.container.v1.NotificationConfig.PubSubOrBuilder getPubsubOrBuilder(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java new file mode 100644 index 000000000000..3b3b6e921c0a --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java @@ -0,0 +1,4473 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * 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.v1.Operation} + */ +public final class Operation extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_Operation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_Operation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.Operation.class, com.google.container.v1.Operation.Builder.class); + } + + /** + *
+   * Current status of the operation.
+   * 
+ * + * Protobuf enum {@code google.container.v1.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< + Status> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Status findValueByNumber(int number) { + return Status.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.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.v1.Operation.Status) + } + + /** + *
+   * Operation type categorizes the operation.
+   * 
+ * + * Protobuf enum {@code google.container.v1.Operation.Type} + */ + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not set.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + *
+     * The cluster is being created. The cluster should be assumed to be
+     * unusable until the operation finishes.
+     *
+     * In the event of the operation failing, the cluster will enter the [ERROR
+     * state][Cluster.Status.ERROR] and eventually be deleted.
+     * 
+ * + * CREATE_CLUSTER = 1; + */ + CREATE_CLUSTER(1), + /** + *
+     * The cluster is being deleted. The cluster should be assumed to be
+     * unusable as soon as this operation starts.
+     *
+     * In the event of the operation failing, the cluster will enter the [ERROR
+     * state][Cluster.Status.ERROR] and the deletion will be automatically
+     * retried until completed.
+     * 
+ * + * DELETE_CLUSTER = 2; + */ + DELETE_CLUSTER(2), + /** + *
+     * The [cluster
+     * version][google.container.v1.ClusterUpdate.desired_master_version] is
+     * being updated. Note that this includes "upgrades" to the same version,
+     * which are simply a recreation. This also includes
+     * [auto-upgrades](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-upgrades#upgrading_automatically).
+     * For more details, see [documentation on cluster
+     * upgrades](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-upgrades#cluster_upgrades).
+     * 
+ * + * UPGRADE_MASTER = 3; + */ + UPGRADE_MASTER(3), + /** + *
+     * A node pool is being updated. Despite calling this an "upgrade", this
+     * includes most forms of updates to node pools. This also includes
+     * [auto-upgrades](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-upgrades).
+     *
+     * This operation sets the
+     * [progress][google.container.v1.Operation.progress] field and may be
+     * [canceled][google.container.v1.ClusterManager.CancelOperation].
+     *
+     * The upgrade strategy depends on [node pool
+     * configuration](https://cloud.google.com/kubernetes-engine/docs/concepts/node-pool-upgrade-strategies).
+     * The nodes are generally still usable during this operation.
+     * 
+ * + * UPGRADE_NODES = 4; + */ + UPGRADE_NODES(4), + /** + *
+     * A problem has been detected with the control plane and is being repaired.
+     * This operation type is initiated by GKE. For more details, see
+     * [documentation on
+     * repairs](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions#repairs).
+     * 
+ * + * REPAIR_CLUSTER = 5; + */ + REPAIR_CLUSTER(5), + /** + *
+     * The cluster is being updated. This is a broad category of operations and
+     * includes operations that only change metadata as well as those that must
+     * recreate the entire cluster. If the control plane must be recreated, this
+     * will cause temporary downtime for zonal clusters.
+     *
+     * Some features require recreating the nodes as well. Those will be
+     * recreated as separate operations and the update may not be completely
+     * functional until the node pools recreations finish. Node recreations will
+     * generally follow [maintenance
+     * policies](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions).
+     *
+     * Some GKE-initiated operations use this type. This includes certain types
+     * of auto-upgrades and incident mitigations.
+     * 
+ * + * UPDATE_CLUSTER = 6; + */ + UPDATE_CLUSTER(6), + /** + *
+     * A node pool is being created. The node pool should be assumed to be
+     * unusable until this operation finishes. In the event of an error, the
+     * node pool may be partially created.
+     *
+     * If enabled, [node
+     * autoprovisioning](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-provisioning)
+     * may have automatically initiated such operations.
+     * 
+ * + * CREATE_NODE_POOL = 7; + */ + CREATE_NODE_POOL(7), + /** + *
+     * The node pool is being deleted. The node pool should be assumed to be
+     * unusable as soon as this operation starts.
+     * 
+ * + * DELETE_NODE_POOL = 8; + */ + DELETE_NODE_POOL(8), + /** + *
+     * The node pool's [manamagent][google.container.v1.NodePool.management]
+     * field is being updated. These operations only update metadata and may be
+     * concurrent with most other operations.
+     * 
+ * + * SET_NODE_POOL_MANAGEMENT = 9; + */ + SET_NODE_POOL_MANAGEMENT(9), + /** + *
+     * A problem has been detected with nodes and [they are being
+     * repaired](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-repair).
+     * This operation type is initiated by GKE, typically automatically. This
+     * operation may be concurrent with other operations and there may be
+     * multiple repairs occurring on the same node pool.
+     * 
+ * + * AUTO_REPAIR_NODES = 10; + */ + AUTO_REPAIR_NODES(10), + /** + *
+     * Unused. Automatic node upgrade uses
+     * [UPGRADE_NODES][google.container.v1.Operation.Type.UPGRADE_NODES].
+     * 
+ * + * AUTO_UPGRADE_NODES = 11 [deprecated = true]; + */ + @java.lang.Deprecated + AUTO_UPGRADE_NODES(11), + /** + *
+     * Unused. Updating labels uses
+     * [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER].
+     * 
+ * + * SET_LABELS = 12 [deprecated = true]; + */ + @java.lang.Deprecated + SET_LABELS(12), + /** + *
+     * Unused. Updating master auth uses
+     * [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER].
+     * 
+ * + * SET_MASTER_AUTH = 13 [deprecated = true]; + */ + @java.lang.Deprecated + SET_MASTER_AUTH(13), + /** + *
+     * The node pool is being resized. With the exception of resizing to or from
+     * size zero, the node pool is generally usable during this operation.
+     * 
+ * + * SET_NODE_POOL_SIZE = 14; + */ + SET_NODE_POOL_SIZE(14), + /** + *
+     * Unused. Updating network policy uses
+     * [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER].
+     * 
+ * + * SET_NETWORK_POLICY = 15 [deprecated = true]; + */ + @java.lang.Deprecated + SET_NETWORK_POLICY(15), + /** + *
+     * Unused. Updating maintenance policy uses
+     * [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER].
+     * 
+ * + * SET_MAINTENANCE_POLICY = 16 [deprecated = true]; + */ + @java.lang.Deprecated + SET_MAINTENANCE_POLICY(16), + /** + *
+     * The control plane is being resized. This operation type is initiated by
+     * GKE. These operations are often performed preemptively to ensure that the
+     * control plane has sufficient resources and is not typically an indication
+     * of issues. For more details, see
+     * [documentation on
+     * resizes](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions#repairs).
+     * 
+ * + * RESIZE_CLUSTER = 18; + */ + RESIZE_CLUSTER(18), + /** + *
+     * Fleet features of GKE Enterprise are being upgraded. The cluster should
+     * be assumed to be blocked for other upgrades until the operation finishes.
+     * 
+ * + * FLEET_FEATURE_UPGRADE = 19; + */ + FLEET_FEATURE_UPGRADE(19), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not set.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + /** + *
+     * The cluster is being created. The cluster should be assumed to be
+     * unusable until the operation finishes.
+     *
+     * In the event of the operation failing, the cluster will enter the [ERROR
+     * state][Cluster.Status.ERROR] and eventually be deleted.
+     * 
+ * + * CREATE_CLUSTER = 1; + */ + public static final int CREATE_CLUSTER_VALUE = 1; + /** + *
+     * The cluster is being deleted. The cluster should be assumed to be
+     * unusable as soon as this operation starts.
+     *
+     * In the event of the operation failing, the cluster will enter the [ERROR
+     * state][Cluster.Status.ERROR] and the deletion will be automatically
+     * retried until completed.
+     * 
+ * + * DELETE_CLUSTER = 2; + */ + public static final int DELETE_CLUSTER_VALUE = 2; + /** + *
+     * The [cluster
+     * version][google.container.v1.ClusterUpdate.desired_master_version] is
+     * being updated. Note that this includes "upgrades" to the same version,
+     * which are simply a recreation. This also includes
+     * [auto-upgrades](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-upgrades#upgrading_automatically).
+     * For more details, see [documentation on cluster
+     * upgrades](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-upgrades#cluster_upgrades).
+     * 
+ * + * UPGRADE_MASTER = 3; + */ + public static final int UPGRADE_MASTER_VALUE = 3; + /** + *
+     * A node pool is being updated. Despite calling this an "upgrade", this
+     * includes most forms of updates to node pools. This also includes
+     * [auto-upgrades](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-upgrades).
+     *
+     * This operation sets the
+     * [progress][google.container.v1.Operation.progress] field and may be
+     * [canceled][google.container.v1.ClusterManager.CancelOperation].
+     *
+     * The upgrade strategy depends on [node pool
+     * configuration](https://cloud.google.com/kubernetes-engine/docs/concepts/node-pool-upgrade-strategies).
+     * The nodes are generally still usable during this operation.
+     * 
+ * + * UPGRADE_NODES = 4; + */ + public static final int UPGRADE_NODES_VALUE = 4; + /** + *
+     * A problem has been detected with the control plane and is being repaired.
+     * This operation type is initiated by GKE. For more details, see
+     * [documentation on
+     * repairs](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions#repairs).
+     * 
+ * + * REPAIR_CLUSTER = 5; + */ + public static final int REPAIR_CLUSTER_VALUE = 5; + /** + *
+     * The cluster is being updated. This is a broad category of operations and
+     * includes operations that only change metadata as well as those that must
+     * recreate the entire cluster. If the control plane must be recreated, this
+     * will cause temporary downtime for zonal clusters.
+     *
+     * Some features require recreating the nodes as well. Those will be
+     * recreated as separate operations and the update may not be completely
+     * functional until the node pools recreations finish. Node recreations will
+     * generally follow [maintenance
+     * policies](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions).
+     *
+     * Some GKE-initiated operations use this type. This includes certain types
+     * of auto-upgrades and incident mitigations.
+     * 
+ * + * UPDATE_CLUSTER = 6; + */ + public static final int UPDATE_CLUSTER_VALUE = 6; + /** + *
+     * A node pool is being created. The node pool should be assumed to be
+     * unusable until this operation finishes. In the event of an error, the
+     * node pool may be partially created.
+     *
+     * If enabled, [node
+     * autoprovisioning](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-provisioning)
+     * may have automatically initiated such operations.
+     * 
+ * + * CREATE_NODE_POOL = 7; + */ + public static final int CREATE_NODE_POOL_VALUE = 7; + /** + *
+     * The node pool is being deleted. The node pool should be assumed to be
+     * unusable as soon as this operation starts.
+     * 
+ * + * DELETE_NODE_POOL = 8; + */ + public static final int DELETE_NODE_POOL_VALUE = 8; + /** + *
+     * The node pool's [manamagent][google.container.v1.NodePool.management]
+     * field is being updated. These operations only update metadata and may be
+     * concurrent with most other operations.
+     * 
+ * + * SET_NODE_POOL_MANAGEMENT = 9; + */ + public static final int SET_NODE_POOL_MANAGEMENT_VALUE = 9; + /** + *
+     * A problem has been detected with nodes and [they are being
+     * repaired](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-repair).
+     * This operation type is initiated by GKE, typically automatically. This
+     * operation may be concurrent with other operations and there may be
+     * multiple repairs occurring on the same node pool.
+     * 
+ * + * AUTO_REPAIR_NODES = 10; + */ + public static final int AUTO_REPAIR_NODES_VALUE = 10; + /** + *
+     * Unused. Automatic node upgrade uses
+     * [UPGRADE_NODES][google.container.v1.Operation.Type.UPGRADE_NODES].
+     * 
+ * + * AUTO_UPGRADE_NODES = 11 [deprecated = true]; + */ + @java.lang.Deprecated public static final int AUTO_UPGRADE_NODES_VALUE = 11; + /** + *
+     * Unused. Updating labels uses
+     * [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER].
+     * 
+ * + * SET_LABELS = 12 [deprecated = true]; + */ + @java.lang.Deprecated public static final int SET_LABELS_VALUE = 12; + /** + *
+     * Unused. Updating master auth uses
+     * [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER].
+     * 
+ * + * SET_MASTER_AUTH = 13 [deprecated = true]; + */ + @java.lang.Deprecated public static final int SET_MASTER_AUTH_VALUE = 13; + /** + *
+     * The node pool is being resized. With the exception of resizing to or from
+     * size zero, the node pool is generally usable during this operation.
+     * 
+ * + * SET_NODE_POOL_SIZE = 14; + */ + public static final int SET_NODE_POOL_SIZE_VALUE = 14; + /** + *
+     * Unused. Updating network policy uses
+     * [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER].
+     * 
+ * + * SET_NETWORK_POLICY = 15 [deprecated = true]; + */ + @java.lang.Deprecated public static final int SET_NETWORK_POLICY_VALUE = 15; + /** + *
+     * Unused. Updating maintenance policy uses
+     * [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER].
+     * 
+ * + * SET_MAINTENANCE_POLICY = 16 [deprecated = true]; + */ + @java.lang.Deprecated public static final int SET_MAINTENANCE_POLICY_VALUE = 16; + /** + *
+     * The control plane is being resized. This operation type is initiated by
+     * GKE. These operations are often performed preemptively to ensure that the
+     * control plane has sufficient resources and is not typically an indication
+     * of issues. For more details, see
+     * [documentation on
+     * resizes](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions#repairs).
+     * 
+ * + * RESIZE_CLUSTER = 18; + */ + public static final int RESIZE_CLUSTER_VALUE = 18; + /** + *
+     * Fleet features of GKE Enterprise are being upgraded. The cluster should
+     * be assumed to be blocked for other upgrades until the operation finishes.
+     * 
+ * + * FLEET_FEATURE_UPGRADE = 19; + */ + public static final int FLEET_FEATURE_UPGRADE_VALUE = 19; + + + 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; + case 18: return RESIZE_CLUSTER; + case 19: return FLEET_FEATURE_UPGRADE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.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.v1.Operation.Type) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1.Operation.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2458 + * @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]; + * @deprecated google.container.v1.Operation.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2458 + * @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_ = 0; + /** + *
+   * The operation type.
+   * 
+ * + * .google.container.v1.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.v1.Operation.Type operation_type = 3; + * @return The operationType. + */ + @java.lang.Override public com.google.container.v1.Operation.Type getOperationType() { + com.google.container.v1.Operation.Type result = com.google.container.v1.Operation.Type.forNumber(operationType_); + return result == null ? com.google.container.v1.Operation.Type.UNRECOGNIZED : result; + } + + public static final int STATUS_FIELD_NUMBER = 4; + private int status_ = 0; + /** + *
+   * The current status of the operation.
+   * 
+ * + * .google.container.v1.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.v1.Operation.Status status = 4; + * @return The status. + */ + @java.lang.Override public com.google.container.v1.Operation.Status getStatus() { + com.google.container.v1.Operation.Status result = com.google.container.v1.Operation.Status.forNumber(status_); + return result == null ? com.google.container.v1.Operation.Status.UNRECOGNIZED : result; + } + + public static final int DETAIL_FIELD_NUMBER = 8; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + private volatile java.lang.Object statusMessage_ = ""; + /** + *
+   * Output only. If an error has occurred, a textual description of the error.
+   * Deprecated. Use the field error instead.
+   * 
+ * + * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @deprecated google.container.v1.Operation.status_message is deprecated. + * See google/container/v1/cluster_service.proto;l=2471 + * @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 the field error instead.
+   * 
+ * + * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @deprecated google.container.v1.Operation.status_message is deprecated. + * See google/container/v1/cluster_service.proto;l=2471 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object selfLink_ = ""; + /** + *
+   * Server-defined URI for the operation. Example:
+   * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
+   * 
+ * + * 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 URI for the operation. Example:
+   * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
+   * 
+ * + * 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; + @SuppressWarnings("serial") + private volatile java.lang.Object targetLink_ = ""; + /** + *
+   * Server-defined URI for the target of the operation. The format of this is a
+   * URI to the resource being modified (such as a cluster, node pool, or node).
+   * For node pool repairs, there may be multiple nodes being repaired, but only
+   * one will be the target.
+   *
+   * Examples:
+   *
+   * -
+   * ##
+   * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
+   *
+   * ##
+   * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
+   *
+   * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
+   * 
+ * + * 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 URI for the target of the operation. The format of this is a
+   * URI to the resource being modified (such as a cluster, node pool, or node).
+   * For node pool repairs, there may be multiple nodes being repaired, but only
+   * one will be the target.
+   *
+   * Examples:
+   *
+   * -
+   * ##
+   * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
+   *
+   * ##
+   * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
+   *
+   * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
+   * 
+ * + * 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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.v1.OperationProgress progress_; + /** + *
+   * Output only. [Output only] Progress information for an operation.
+   * 
+ * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the progress field is set. + */ + @java.lang.Override + public boolean hasProgress() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Output only. [Output only] Progress information for an operation.
+   * 
+ * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The progress. + */ + @java.lang.Override + public com.google.container.v1.OperationProgress getProgress() { + return progress_ == null ? com.google.container.v1.OperationProgress.getDefaultInstance() : progress_; + } + /** + *
+   * Output only. [Output only] Progress information for an operation.
+   * 
+ * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.container.v1.OperationProgressOrBuilder getProgressOrBuilder() { + return progress_ == null ? com.google.container.v1.OperationProgress.getDefaultInstance() : progress_; + } + + public static final int CLUSTER_CONDITIONS_FIELD_NUMBER = 13; + @SuppressWarnings("serial") + private java.util.List clusterConditions_; + /** + *
+   * Which conditions caused the current cluster state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * repeated .google.container.v1.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.v1.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.v1.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.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + */ + @java.lang.Override + @java.lang.Deprecated public com.google.container.v1.StatusCondition getClusterConditions(int index) { + return clusterConditions_.get(index); + } + /** + *
+   * Which conditions caused the current cluster state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + */ + @java.lang.Override + @java.lang.Deprecated public com.google.container.v1.StatusConditionOrBuilder getClusterConditionsOrBuilder( + int index) { + return clusterConditions_.get(index); + } + + public static final int NODEPOOL_CONDITIONS_FIELD_NUMBER = 14; + @SuppressWarnings("serial") + private java.util.List nodepoolConditions_; + /** + *
+   * Which conditions caused the current node pool state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * repeated .google.container.v1.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.v1.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.v1.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.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + */ + @java.lang.Override + @java.lang.Deprecated public com.google.container.v1.StatusCondition getNodepoolConditions(int index) { + return nodepoolConditions_.get(index); + } + /** + *
+   * Which conditions caused the current node pool state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + */ + @java.lang.Override + @java.lang.Deprecated public com.google.container.v1.StatusConditionOrBuilder getNodepoolConditionsOrBuilder( + int index) { + return nodepoolConditions_.get(index); + } + + public static final int ERROR_FIELD_NUMBER = 15; + private com.google.rpc.Status error_; + /** + *
+   * The error result of the operation in case of failure.
+   * 
+ * + * .google.rpc.Status error = 15; + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * 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 error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (operationType_ != com.google.container.v1.Operation.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, operationType_); + } + if (status_ != com.google.container.v1.Operation.Status.STATUS_UNSPECIFIED.getNumber()) { + output.writeEnum(4, status_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusMessage_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, selfLink_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetLink_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, targetLink_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, detail_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, location_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startTime_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, startTime_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endTime_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, endTime_); + } + if (((bitField0_ & 0x00000001) != 0)) { + 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 (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(15, getError()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (operationType_ != com.google.container.v1.Operation.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, operationType_); + } + if (status_ != com.google.container.v1.Operation.Status.STATUS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, status_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, selfLink_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetLink_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, targetLink_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, detail_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, location_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startTime_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, startTime_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endTime_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, endTime_); + } + if (((bitField0_ & 0x00000001) != 0)) { + 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 (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, getError()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.Operation)) { + return super.equals(obj); + } + com.google.container.v1.Operation other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.Operation parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.Operation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.Operation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.Operation parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.Operation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.Operation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.Operation parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.Operation} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.Operation) + com.google.container.v1.OperationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_Operation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_Operation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.Operation.class, com.google.container.v1.Operation.Builder.class); + } + + // Construct using com.google.container.v1.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) { + getProgressFieldBuilder(); + getClusterConditionsFieldBuilder(); + getNodepoolConditionsFieldBuilder(); + getErrorFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + zone_ = ""; + operationType_ = 0; + status_ = 0; + detail_ = ""; + statusMessage_ = ""; + selfLink_ = ""; + targetLink_ = ""; + location_ = ""; + startTime_ = ""; + endTime_ = ""; + progress_ = null; + if (progressBuilder_ != null) { + progressBuilder_.dispose(); + progressBuilder_ = null; + } + if (clusterConditionsBuilder_ == null) { + clusterConditions_ = java.util.Collections.emptyList(); + } else { + clusterConditions_ = null; + clusterConditionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00001000); + if (nodepoolConditionsBuilder_ == null) { + nodepoolConditions_ = java.util.Collections.emptyList(); + } else { + nodepoolConditions_ = null; + nodepoolConditionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00002000); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_Operation_descriptor; + } + + @java.lang.Override + public com.google.container.v1.Operation getDefaultInstanceForType() { + return com.google.container.v1.Operation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.Operation build() { + com.google.container.v1.Operation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.Operation buildPartial() { + com.google.container.v1.Operation result = new com.google.container.v1.Operation(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1.Operation result) { + if (clusterConditionsBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0)) { + clusterConditions_ = java.util.Collections.unmodifiableList(clusterConditions_); + bitField0_ = (bitField0_ & ~0x00001000); + } + result.clusterConditions_ = clusterConditions_; + } else { + result.clusterConditions_ = clusterConditionsBuilder_.build(); + } + if (nodepoolConditionsBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0)) { + nodepoolConditions_ = java.util.Collections.unmodifiableList(nodepoolConditions_); + bitField0_ = (bitField0_ & ~0x00002000); + } + result.nodepoolConditions_ = nodepoolConditions_; + } else { + result.nodepoolConditions_ = nodepoolConditionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1.Operation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.operationType_ = operationType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.status_ = status_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.detail_ = detail_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.statusMessage_ = statusMessage_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.selfLink_ = selfLink_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.targetLink_ = targetLink_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.location_ = location_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.startTime_ = startTime_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.endTime_ = endTime_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000800) != 0)) { + result.progress_ = progressBuilder_ == null + ? progress_ + : progressBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.error_ = errorBuilder_ == null + ? error_ + : errorBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.Operation) { + return mergeFrom((com.google.container.v1.Operation)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.Operation other) { + if (other == com.google.container.v1.Operation.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.operationType_ != 0) { + setOperationTypeValue(other.getOperationTypeValue()); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (!other.getDetail().isEmpty()) { + detail_ = other.detail_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getSelfLink().isEmpty()) { + selfLink_ = other.selfLink_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getTargetLink().isEmpty()) { + targetLink_ = other.targetLink_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.getStartTime().isEmpty()) { + startTime_ = other.startTime_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (!other.getEndTime().isEmpty()) { + endTime_ = other.endTime_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (other.hasProgress()) { + mergeProgress(other.getProgress()); + } + if (clusterConditionsBuilder_ == null) { + if (!other.clusterConditions_.isEmpty()) { + if (clusterConditions_.isEmpty()) { + clusterConditions_ = other.clusterConditions_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensureClusterConditionsIsMutable(); + clusterConditions_.addAll(other.clusterConditions_); + } + onChanged(); + } + } else { + if (!other.clusterConditions_.isEmpty()) { + if (clusterConditionsBuilder_.isEmpty()) { + clusterConditionsBuilder_.dispose(); + clusterConditionsBuilder_ = null; + clusterConditions_ = other.clusterConditions_; + bitField0_ = (bitField0_ & ~0x00001000); + clusterConditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getClusterConditionsFieldBuilder() : null; + } else { + clusterConditionsBuilder_.addAllMessages(other.clusterConditions_); + } + } + } + if (nodepoolConditionsBuilder_ == null) { + if (!other.nodepoolConditions_.isEmpty()) { + if (nodepoolConditions_.isEmpty()) { + nodepoolConditions_ = other.nodepoolConditions_; + bitField0_ = (bitField0_ & ~0x00002000); + } else { + ensureNodepoolConditionsIsMutable(); + nodepoolConditions_.addAll(other.nodepoolConditions_); + } + onChanged(); + } + } else { + if (!other.nodepoolConditions_.isEmpty()) { + if (nodepoolConditionsBuilder_.isEmpty()) { + nodepoolConditionsBuilder_.dispose(); + nodepoolConditionsBuilder_ = null; + nodepoolConditions_ = other.nodepoolConditions_; + bitField0_ = (bitField0_ & ~0x00002000); + nodepoolConditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNodepoolConditionsFieldBuilder() : null; + } else { + nodepoolConditionsBuilder_.addAllMessages(other.nodepoolConditions_); + } + } + } + if (other.hasError()) { + mergeError(other.getError()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + operationType_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + status_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 50: { + selfLink_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: { + targetLink_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 66: { + detail_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 66 + case 74: { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: { + startTime_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: { + endTime_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: { + input.readMessage( + getProgressFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 106: { + com.google.container.v1.StatusCondition m = + input.readMessage( + com.google.container.v1.StatusCondition.parser(), + extensionRegistry); + if (clusterConditionsBuilder_ == null) { + ensureClusterConditionsIsMutable(); + clusterConditions_.add(m); + } else { + clusterConditionsBuilder_.addMessage(m); + } + break; + } // case 106 + case 114: { + com.google.container.v1.StatusCondition m = + input.readMessage( + com.google.container.v1.StatusCondition.parser(), + extensionRegistry); + if (nodepoolConditionsBuilder_ == null) { + ensureNodepoolConditionsIsMutable(); + nodepoolConditions_.add(m); + } else { + nodepoolConditionsBuilder_.addMessage(m); + } + break; + } // case 114 + case 122: { + input.readMessage( + getErrorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 122 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The server-assigned ID for the operation.
+     * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + 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]; + * @deprecated google.container.v1.Operation.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2458 + * @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]; + * @deprecated google.container.v1.Operation.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2458 + * @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]; + * @deprecated google.container.v1.Operation.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2458 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1.Operation.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2458 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + 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]; + * @deprecated google.container.v1.Operation.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2458 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int operationType_ = 0; + /** + *
+     * The operation type.
+     * 
+ * + * .google.container.v1.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.v1.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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The operation type.
+     * 
+ * + * .google.container.v1.Operation.Type operation_type = 3; + * @return The operationType. + */ + @java.lang.Override + public com.google.container.v1.Operation.Type getOperationType() { + com.google.container.v1.Operation.Type result = com.google.container.v1.Operation.Type.forNumber(operationType_); + return result == null ? com.google.container.v1.Operation.Type.UNRECOGNIZED : result; + } + /** + *
+     * The operation type.
+     * 
+ * + * .google.container.v1.Operation.Type operation_type = 3; + * @param value The operationType to set. + * @return This builder for chaining. + */ + public Builder setOperationType(com.google.container.v1.Operation.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + operationType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The operation type.
+     * 
+ * + * .google.container.v1.Operation.Type operation_type = 3; + * @return This builder for chaining. + */ + public Builder clearOperationType() { + bitField0_ = (bitField0_ & ~0x00000004); + operationType_ = 0; + onChanged(); + return this; + } + + private int status_ = 0; + /** + *
+     * The current status of the operation.
+     * 
+ * + * .google.container.v1.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.v1.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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The current status of the operation.
+     * 
+ * + * .google.container.v1.Operation.Status status = 4; + * @return The status. + */ + @java.lang.Override + public com.google.container.v1.Operation.Status getStatus() { + com.google.container.v1.Operation.Status result = com.google.container.v1.Operation.Status.forNumber(status_); + return result == null ? com.google.container.v1.Operation.Status.UNRECOGNIZED : result; + } + /** + *
+     * The current status of the operation.
+     * 
+ * + * .google.container.v1.Operation.Status status = 4; + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(com.google.container.v1.Operation.Status value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The current status of the operation.
+     * 
+ * + * .google.container.v1.Operation.Status status = 4; + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000008); + 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; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Detailed operation progress, if available.
+     * 
+ * + * string detail = 8; + * @return This builder for chaining. + */ + public Builder clearDetail() { + detail_ = getDefaultInstance().getDetail(); + bitField0_ = (bitField0_ & ~0x00000010); + 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; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object statusMessage_ = ""; + /** + *
+     * Output only. If an error has occurred, a textual description of the error.
+     * Deprecated. Use the field error instead.
+     * 
+ * + * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @deprecated google.container.v1.Operation.status_message is deprecated. + * See google/container/v1/cluster_service.proto;l=2471 + * @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 the field error instead.
+     * 
+ * + * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @deprecated google.container.v1.Operation.status_message is deprecated. + * See google/container/v1/cluster_service.proto;l=2471 + * @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 the field error instead.
+     * 
+ * + * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @deprecated google.container.v1.Operation.status_message is deprecated. + * See google/container/v1/cluster_service.proto;l=2471 + * @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; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Output only. If an error has occurred, a textual description of the error.
+     * Deprecated. Use the field error instead.
+     * 
+ * + * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @deprecated google.container.v1.Operation.status_message is deprecated. + * See google/container/v1/cluster_service.proto;l=2471 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearStatusMessage() { + statusMessage_ = getDefaultInstance().getStatusMessage(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + *
+     * Output only. If an error has occurred, a textual description of the error.
+     * Deprecated. Use the field error instead.
+     * 
+ * + * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @deprecated google.container.v1.Operation.status_message is deprecated. + * See google/container/v1/cluster_service.proto;l=2471 + * @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; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object selfLink_ = ""; + /** + *
+     * Server-defined URI for the operation. Example:
+     * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
+     * 
+ * + * 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 URI for the operation. Example:
+     * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
+     * 
+ * + * 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 URI for the operation. Example:
+     * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
+     * 
+ * + * 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; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * Server-defined URI for the operation. Example:
+     * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
+     * 
+ * + * string self_link = 6; + * @return This builder for chaining. + */ + public Builder clearSelfLink() { + selfLink_ = getDefaultInstance().getSelfLink(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + *
+     * Server-defined URI for the operation. Example:
+     * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
+     * 
+ * + * 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; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object targetLink_ = ""; + /** + *
+     * Server-defined URI for the target of the operation. The format of this is a
+     * URI to the resource being modified (such as a cluster, node pool, or node).
+     * For node pool repairs, there may be multiple nodes being repaired, but only
+     * one will be the target.
+     *
+     * Examples:
+     *
+     * -
+     * ##
+     * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
+     *
+     * ##
+     * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
+     *
+     * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
+     * 
+ * + * 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 URI for the target of the operation. The format of this is a
+     * URI to the resource being modified (such as a cluster, node pool, or node).
+     * For node pool repairs, there may be multiple nodes being repaired, but only
+     * one will be the target.
+     *
+     * Examples:
+     *
+     * -
+     * ##
+     * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
+     *
+     * ##
+     * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
+     *
+     * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
+     * 
+ * + * 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 URI for the target of the operation. The format of this is a
+     * URI to the resource being modified (such as a cluster, node pool, or node).
+     * For node pool repairs, there may be multiple nodes being repaired, but only
+     * one will be the target.
+     *
+     * Examples:
+     *
+     * -
+     * ##
+     * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
+     *
+     * ##
+     * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
+     *
+     * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
+     * 
+ * + * 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; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * Server-defined URI for the target of the operation. The format of this is a
+     * URI to the resource being modified (such as a cluster, node pool, or node).
+     * For node pool repairs, there may be multiple nodes being repaired, but only
+     * one will be the target.
+     *
+     * Examples:
+     *
+     * -
+     * ##
+     * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
+     *
+     * ##
+     * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
+     *
+     * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
+     * 
+ * + * string target_link = 7; + * @return This builder for chaining. + */ + public Builder clearTargetLink() { + targetLink_ = getDefaultInstance().getTargetLink(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + *
+     * Server-defined URI for the target of the operation. The format of this is a
+     * URI to the resource being modified (such as a cluster, node pool, or node).
+     * For node pool repairs, there may be multiple nodes being repaired, but only
+     * one will be the target.
+     *
+     * Examples:
+     *
+     * -
+     * ##
+     * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
+     *
+     * ##
+     * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
+     *
+     * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
+     * 
+ * + * 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; + bitField0_ |= 0x00000080; + 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; + bitField0_ |= 0x00000100; + 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(); + bitField0_ = (bitField0_ & ~0x00000100); + 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; + bitField0_ |= 0x00000100; + 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; + bitField0_ |= 0x00000200; + 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(); + bitField0_ = (bitField0_ & ~0x00000200); + 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; + bitField0_ |= 0x00000200; + 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; + bitField0_ |= 0x00000400; + 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(); + bitField0_ = (bitField0_ & ~0x00000400); + 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; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private com.google.container.v1.OperationProgress progress_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.OperationProgress, com.google.container.v1.OperationProgress.Builder, com.google.container.v1.OperationProgressOrBuilder> progressBuilder_; + /** + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the progress field is set. + */ + public boolean hasProgress() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The progress. + */ + public com.google.container.v1.OperationProgress getProgress() { + if (progressBuilder_ == null) { + return progress_ == null ? com.google.container.v1.OperationProgress.getDefaultInstance() : progress_; + } else { + return progressBuilder_.getMessage(); + } + } + /** + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setProgress(com.google.container.v1.OperationProgress value) { + if (progressBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + progress_ = value; + } else { + progressBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setProgress( + com.google.container.v1.OperationProgress.Builder builderForValue) { + if (progressBuilder_ == null) { + progress_ = builderForValue.build(); + } else { + progressBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeProgress(com.google.container.v1.OperationProgress value) { + if (progressBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) && + progress_ != null && + progress_ != com.google.container.v1.OperationProgress.getDefaultInstance()) { + getProgressBuilder().mergeFrom(value); + } else { + progress_ = value; + } + } else { + progressBuilder_.mergeFrom(value); + } + if (progress_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + /** + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearProgress() { + bitField0_ = (bitField0_ & ~0x00000800); + progress_ = null; + if (progressBuilder_ != null) { + progressBuilder_.dispose(); + progressBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.container.v1.OperationProgress.Builder getProgressBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return getProgressFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.container.v1.OperationProgressOrBuilder getProgressOrBuilder() { + if (progressBuilder_ != null) { + return progressBuilder_.getMessageOrBuilder(); + } else { + return progress_ == null ? + com.google.container.v1.OperationProgress.getDefaultInstance() : progress_; + } + } + /** + *
+     * Output only. [Output only] Progress information for an operation.
+     * 
+ * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.OperationProgress, com.google.container.v1.OperationProgress.Builder, com.google.container.v1.OperationProgressOrBuilder> + getProgressFieldBuilder() { + if (progressBuilder_ == null) { + progressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.OperationProgress, com.google.container.v1.OperationProgress.Builder, com.google.container.v1.OperationProgressOrBuilder>( + getProgress(), + getParentForChildren(), + isClean()); + progress_ = null; + } + return progressBuilder_; + } + + private java.util.List clusterConditions_ = + java.util.Collections.emptyList(); + private void ensureClusterConditionsIsMutable() { + if (!((bitField0_ & 0x00001000) != 0)) { + clusterConditions_ = new java.util.ArrayList(clusterConditions_); + bitField0_ |= 0x00001000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.StatusCondition, com.google.container.v1.StatusCondition.Builder, com.google.container.v1.StatusConditionOrBuilder> clusterConditionsBuilder_; + + /** + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + */ + @java.lang.Deprecated public java.util.List getClusterConditionsList() { + if (clusterConditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(clusterConditions_); + } else { + return clusterConditionsBuilder_.getMessageList(); + } + } + /** + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * repeated .google.container.v1.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.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.container.v1.StatusCondition getClusterConditions(int index) { + if (clusterConditionsBuilder_ == null) { + return clusterConditions_.get(index); + } else { + return clusterConditionsBuilder_.getMessage(index); + } + } + /** + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterConditions( + int index, com.google.container.v1.StatusCondition value) { + if (clusterConditionsBuilder_ == null) { + if (value == null) { + 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.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setClusterConditions( + int index, com.google.container.v1.StatusCondition.Builder builderForValue) { + if (clusterConditionsBuilder_ == null) { + 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.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + */ + @java.lang.Deprecated public Builder addClusterConditions(com.google.container.v1.StatusCondition value) { + if (clusterConditionsBuilder_ == null) { + if (value == null) { + 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.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + */ + @java.lang.Deprecated public Builder addClusterConditions( + int index, com.google.container.v1.StatusCondition value) { + if (clusterConditionsBuilder_ == null) { + if (value == null) { + 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.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + */ + @java.lang.Deprecated public Builder addClusterConditions( + com.google.container.v1.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.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + */ + @java.lang.Deprecated public Builder addClusterConditions( + int index, com.google.container.v1.StatusCondition.Builder builderForValue) { + if (clusterConditionsBuilder_ == null) { + 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.v1.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.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearClusterConditions() { + if (clusterConditionsBuilder_ == null) { + clusterConditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + } else { + clusterConditionsBuilder_.clear(); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * repeated .google.container.v1.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.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.container.v1.StatusCondition.Builder getClusterConditionsBuilder( + int index) { + return getClusterConditionsFieldBuilder().getBuilder(index); + } + /** + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.container.v1.StatusConditionOrBuilder getClusterConditionsOrBuilder( + int index) { + if (clusterConditionsBuilder_ == null) { + return clusterConditions_.get(index); } else { + return clusterConditionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * repeated .google.container.v1.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.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.container.v1.StatusCondition.Builder addClusterConditionsBuilder() { + return getClusterConditionsFieldBuilder().addBuilder( + com.google.container.v1.StatusCondition.getDefaultInstance()); + } + /** + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.container.v1.StatusCondition.Builder addClusterConditionsBuilder( + int index) { + return getClusterConditionsFieldBuilder().addBuilder( + index, com.google.container.v1.StatusCondition.getDefaultInstance()); + } + /** + *
+     * Which conditions caused the current cluster state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * repeated .google.container.v1.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.v1.StatusCondition, com.google.container.v1.StatusCondition.Builder, com.google.container.v1.StatusConditionOrBuilder> + getClusterConditionsFieldBuilder() { + if (clusterConditionsBuilder_ == null) { + clusterConditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.StatusCondition, com.google.container.v1.StatusCondition.Builder, com.google.container.v1.StatusConditionOrBuilder>( + clusterConditions_, + ((bitField0_ & 0x00001000) != 0), + getParentForChildren(), + isClean()); + clusterConditions_ = null; + } + return clusterConditionsBuilder_; + } + + private java.util.List nodepoolConditions_ = + java.util.Collections.emptyList(); + private void ensureNodepoolConditionsIsMutable() { + if (!((bitField0_ & 0x00002000) != 0)) { + nodepoolConditions_ = new java.util.ArrayList(nodepoolConditions_); + bitField0_ |= 0x00002000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.StatusCondition, com.google.container.v1.StatusCondition.Builder, com.google.container.v1.StatusConditionOrBuilder> nodepoolConditionsBuilder_; + + /** + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + */ + @java.lang.Deprecated public java.util.List getNodepoolConditionsList() { + if (nodepoolConditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodepoolConditions_); + } else { + return nodepoolConditionsBuilder_.getMessageList(); + } + } + /** + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * repeated .google.container.v1.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.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.container.v1.StatusCondition getNodepoolConditions(int index) { + if (nodepoolConditionsBuilder_ == null) { + return nodepoolConditions_.get(index); + } else { + return nodepoolConditionsBuilder_.getMessage(index); + } + } + /** + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setNodepoolConditions( + int index, com.google.container.v1.StatusCondition value) { + if (nodepoolConditionsBuilder_ == null) { + if (value == null) { + 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.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setNodepoolConditions( + int index, com.google.container.v1.StatusCondition.Builder builderForValue) { + if (nodepoolConditionsBuilder_ == null) { + 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.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + */ + @java.lang.Deprecated public Builder addNodepoolConditions(com.google.container.v1.StatusCondition value) { + if (nodepoolConditionsBuilder_ == null) { + if (value == null) { + 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.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + */ + @java.lang.Deprecated public Builder addNodepoolConditions( + int index, com.google.container.v1.StatusCondition value) { + if (nodepoolConditionsBuilder_ == null) { + if (value == null) { + 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.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + */ + @java.lang.Deprecated public Builder addNodepoolConditions( + com.google.container.v1.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.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + */ + @java.lang.Deprecated public Builder addNodepoolConditions( + int index, com.google.container.v1.StatusCondition.Builder builderForValue) { + if (nodepoolConditionsBuilder_ == null) { + 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.v1.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.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearNodepoolConditions() { + if (nodepoolConditionsBuilder_ == null) { + nodepoolConditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + } else { + nodepoolConditionsBuilder_.clear(); + } + return this; + } + /** + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * repeated .google.container.v1.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.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.container.v1.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.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.container.v1.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.v1.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.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.container.v1.StatusCondition.Builder addNodepoolConditionsBuilder() { + return getNodepoolConditionsFieldBuilder().addBuilder( + com.google.container.v1.StatusCondition.getDefaultInstance()); + } + /** + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.container.v1.StatusCondition.Builder addNodepoolConditionsBuilder( + int index) { + return getNodepoolConditionsFieldBuilder().addBuilder( + index, com.google.container.v1.StatusCondition.getDefaultInstance()); + } + /** + *
+     * Which conditions caused the current node pool state.
+     * Deprecated. Use field error instead.
+     * 
+ * + * repeated .google.container.v1.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.v1.StatusCondition, com.google.container.v1.StatusCondition.Builder, com.google.container.v1.StatusConditionOrBuilder> + getNodepoolConditionsFieldBuilder() { + if (nodepoolConditionsBuilder_ == null) { + nodepoolConditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.StatusCondition, com.google.container.v1.StatusCondition.Builder, com.google.container.v1.StatusConditionOrBuilder>( + nodepoolConditions_, + ((bitField0_ & 0x00002000) != 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 ((bitField0_ & 0x00004000) != 0); + } + /** + *
+     * 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; + } else { + errorBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + 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(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + 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 (((bitField0_ & 0x00004000) != 0) && + error_ != null && + error_ != com.google.rpc.Status.getDefaultInstance()) { + getErrorBuilder().mergeFrom(value); + } else { + error_ = value; + } + } else { + errorBuilder_.mergeFrom(value); + } + if (error_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } + return this; + } + /** + *
+     * The error result of the operation in case of failure.
+     * 
+ * + * .google.rpc.Status error = 15; + */ + public Builder clearError() { + bitField0_ = (bitField0_ & ~0x00004000); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The error result of the operation in case of failure.
+     * 
+ * + * .google.rpc.Status error = 15; + */ + public com.google.rpc.Status.Builder getErrorBuilder() { + bitField0_ |= 0x00004000; + 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.v1.Operation) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.Operation) + private static final com.google.container.v1.Operation DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.Operation(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.Operation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java new file mode 100644 index 000000000000..4837a12c4d25 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java @@ -0,0 +1,436 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface OperationOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.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]; + * @deprecated google.container.v1.Operation.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2458 + * @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]; + * @deprecated google.container.v1.Operation.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2458 + * @return The bytes for zone. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * The operation type.
+   * 
+ * + * .google.container.v1.Operation.Type operation_type = 3; + * @return The enum numeric value on the wire for operationType. + */ + int getOperationTypeValue(); + /** + *
+   * The operation type.
+   * 
+ * + * .google.container.v1.Operation.Type operation_type = 3; + * @return The operationType. + */ + com.google.container.v1.Operation.Type getOperationType(); + + /** + *
+   * The current status of the operation.
+   * 
+ * + * .google.container.v1.Operation.Status status = 4; + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + *
+   * The current status of the operation.
+   * 
+ * + * .google.container.v1.Operation.Status status = 4; + * @return The status. + */ + com.google.container.v1.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 the field error instead.
+   * 
+ * + * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @deprecated google.container.v1.Operation.status_message is deprecated. + * See google/container/v1/cluster_service.proto;l=2471 + * @return The statusMessage. + */ + @java.lang.Deprecated java.lang.String getStatusMessage(); + /** + *
+   * Output only. If an error has occurred, a textual description of the error.
+   * Deprecated. Use the field error instead.
+   * 
+ * + * string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @deprecated google.container.v1.Operation.status_message is deprecated. + * See google/container/v1/cluster_service.proto;l=2471 + * @return The bytes for statusMessage. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getStatusMessageBytes(); + + /** + *
+   * Server-defined URI for the operation. Example:
+   * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
+   * 
+ * + * string self_link = 6; + * @return The selfLink. + */ + java.lang.String getSelfLink(); + /** + *
+   * Server-defined URI for the operation. Example:
+   * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
+   * 
+ * + * string self_link = 6; + * @return The bytes for selfLink. + */ + com.google.protobuf.ByteString + getSelfLinkBytes(); + + /** + *
+   * Server-defined URI for the target of the operation. The format of this is a
+   * URI to the resource being modified (such as a cluster, node pool, or node).
+   * For node pool repairs, there may be multiple nodes being repaired, but only
+   * one will be the target.
+   *
+   * Examples:
+   *
+   * -
+   * ##
+   * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
+   *
+   * ##
+   * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
+   *
+   * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
+   * 
+ * + * string target_link = 7; + * @return The targetLink. + */ + java.lang.String getTargetLink(); + /** + *
+   * Server-defined URI for the target of the operation. The format of this is a
+   * URI to the resource being modified (such as a cluster, node pool, or node).
+   * For node pool repairs, there may be multiple nodes being repaired, but only
+   * one will be the target.
+   *
+   * Examples:
+   *
+   * -
+   * ##
+   * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
+   *
+   * ##
+   * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
+   *
+   * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
+   * 
+ * + * 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.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the progress field is set. + */ + boolean hasProgress(); + /** + *
+   * Output only. [Output only] Progress information for an operation.
+   * 
+ * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The progress. + */ + com.google.container.v1.OperationProgress getProgress(); + /** + *
+   * Output only. [Output only] Progress information for an operation.
+   * 
+ * + * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.container.v1.OperationProgressOrBuilder getProgressOrBuilder(); + + /** + *
+   * Which conditions caused the current cluster state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + */ + @java.lang.Deprecated java.util.List + getClusterConditionsList(); + /** + *
+   * Which conditions caused the current cluster state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + */ + @java.lang.Deprecated com.google.container.v1.StatusCondition getClusterConditions(int index); + /** + *
+   * Which conditions caused the current cluster state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + */ + @java.lang.Deprecated int getClusterConditionsCount(); + /** + *
+   * Which conditions caused the current cluster state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + */ + @java.lang.Deprecated java.util.List + getClusterConditionsOrBuilderList(); + /** + *
+   * Which conditions caused the current cluster state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; + */ + @java.lang.Deprecated com.google.container.v1.StatusConditionOrBuilder getClusterConditionsOrBuilder( + int index); + + /** + *
+   * Which conditions caused the current node pool state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + */ + @java.lang.Deprecated java.util.List + getNodepoolConditionsList(); + /** + *
+   * Which conditions caused the current node pool state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + */ + @java.lang.Deprecated com.google.container.v1.StatusCondition getNodepoolConditions(int index); + /** + *
+   * Which conditions caused the current node pool state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + */ + @java.lang.Deprecated int getNodepoolConditionsCount(); + /** + *
+   * Which conditions caused the current node pool state.
+   * Deprecated. Use field error instead.
+   * 
+ * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [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.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; + */ + @java.lang.Deprecated com.google.container.v1.StatusConditionOrBuilder getNodepoolConditionsOrBuilder( + int index); + + /** + *
+   * The error result of the operation in case of failure.
+   * 
+ * + * .google.rpc.Status error = 15; + * @return Whether the error field is set. + */ + boolean hasError(); + /** + *
+   * The error result of the operation in case of failure.
+   * 
+ * + * .google.rpc.Status error = 15; + * @return The error. + */ + com.google.rpc.Status getError(); + /** + *
+   * The error result of the operation in case of failure.
+   * 
+ * + * .google.rpc.Status error = 15; + */ + com.google.rpc.StatusOrBuilder getErrorOrBuilder(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationProgress.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationProgress.java new file mode 100644 index 000000000000..2b542286107a --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationProgress.java @@ -0,0 +1,2899 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Information about operation (or operation stage) progress.
+ * 
+ * + * Protobuf type {@code google.container.v1.OperationProgress} + */ +public final class OperationProgress extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.OperationProgress) + OperationProgressOrBuilder { +private static final long serialVersionUID = 0L; + // Use OperationProgress.newBuilder() to construct. + private OperationProgress(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private OperationProgress() { + name_ = ""; + status_ = 0; + metrics_ = java.util.Collections.emptyList(); + stages_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new OperationProgress(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_OperationProgress_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_OperationProgress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.OperationProgress.class, com.google.container.v1.OperationProgress.Builder.class); + } + + public interface MetricOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.OperationProgress.Metric) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Required. Metric name, e.g., "nodes total", "percent done".
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The name. + */ + java.lang.String getName(); + /** + *
+     * Required. Metric name, e.g., "nodes total", "percent done".
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * For metrics with integer value.
+     * 
+ * + * int64 int_value = 2; + * @return 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(); + + com.google.container.v1.OperationProgress.Metric.ValueCase getValueCase(); + } + /** + *
+   * Progress metric is (string, int|float|string) pair.
+   * 
+ * + * Protobuf type {@code google.container.v1.OperationProgress.Metric} + */ + public static final class Metric extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.OperationProgress.Metric) + MetricOrBuilder { + private static final long serialVersionUID = 0L; + // Use Metric.newBuilder() to construct. + private Metric(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Metric() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Metric(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_OperationProgress_Metric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_OperationProgress_Metric_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.OperationProgress.Metric.class, com.google.container.v1.OperationProgress.Metric.Builder.class); + } + + private int valueCase_ = 0; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + 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_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + 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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.OperationProgress.Metric)) { + return super.equals(obj); + } + com.google.container.v1.OperationProgress.Metric other = (com.google.container.v1.OperationProgress.Metric) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getValueCase().equals(other.getValueCase())) return false; + switch (valueCase_) { + case 2: + if (getIntValue() + != other.getIntValue()) return false; + break; + case 3: + if (java.lang.Double.doubleToLongBits(getDoubleValue()) + != java.lang.Double.doubleToLongBits( + other.getDoubleValue())) return false; + break; + case 4: + if (!getStringValue() + .equals(other.getStringValue())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.OperationProgress.Metric parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.OperationProgress.Metric parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.OperationProgress.Metric parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.OperationProgress.Metric parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.OperationProgress.Metric parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.OperationProgress.Metric parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.OperationProgress.Metric parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.OperationProgress.Metric parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.OperationProgress.Metric parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.OperationProgress.Metric parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.OperationProgress.Metric parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.OperationProgress.Metric parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.OperationProgress.Metric prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Progress metric is (string, int|float|string) pair.
+     * 
+ * + * Protobuf type {@code google.container.v1.OperationProgress.Metric} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.OperationProgress.Metric) + com.google.container.v1.OperationProgress.MetricOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_OperationProgress_Metric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_OperationProgress_Metric_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.OperationProgress.Metric.class, com.google.container.v1.OperationProgress.Metric.Builder.class); + } + + // Construct using com.google.container.v1.OperationProgress.Metric.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + valueCase_ = 0; + value_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_OperationProgress_Metric_descriptor; + } + + @java.lang.Override + public com.google.container.v1.OperationProgress.Metric getDefaultInstanceForType() { + return com.google.container.v1.OperationProgress.Metric.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.OperationProgress.Metric build() { + com.google.container.v1.OperationProgress.Metric result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.OperationProgress.Metric buildPartial() { + com.google.container.v1.OperationProgress.Metric result = new com.google.container.v1.OperationProgress.Metric(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.OperationProgress.Metric result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + private void buildPartialOneofs(com.google.container.v1.OperationProgress.Metric result) { + result.valueCase_ = valueCase_; + result.value_ = this.value_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.OperationProgress.Metric) { + return mergeFrom((com.google.container.v1.OperationProgress.Metric)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.OperationProgress.Metric other) { + if (other == com.google.container.v1.OperationProgress.Metric.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + 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.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + value_ = input.readInt64(); + valueCase_ = 2; + break; + } // case 16 + case 25: { + value_ = input.readDouble(); + valueCase_ = 3; + break; + } // case 25 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + valueCase_ = 4; + value_ = s; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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 int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + 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.v1.OperationProgress.Metric) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.OperationProgress.Metric) + private static final com.google.container.v1.OperationProgress.Metric DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.OperationProgress.Metric(); + } + + public static com.google.container.v1.OperationProgress.Metric getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Metric parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.OperationProgress.Metric getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + 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_ = 0; + /** + *
+   * Status of an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * .google.container.v1.Operation.Status status = 2; + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + *
+   * Status of an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * .google.container.v1.Operation.Status status = 2; + * @return The status. + */ + @java.lang.Override public com.google.container.v1.Operation.Status getStatus() { + com.google.container.v1.Operation.Status result = com.google.container.v1.Operation.Status.forNumber(status_); + return result == null ? com.google.container.v1.Operation.Status.UNRECOGNIZED : result; + } + + public static final int METRICS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private java.util.List metrics_; + /** + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + @java.lang.Override + public java.util.List getMetricsList() { + return metrics_; + } + /** + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + @java.lang.Override + public java.util.List + getMetricsOrBuilderList() { + return metrics_; + } + /** + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + @java.lang.Override + public int getMetricsCount() { + return metrics_.size(); + } + /** + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + @java.lang.Override + public com.google.container.v1.OperationProgress.Metric getMetrics(int index) { + return metrics_.get(index); + } + /** + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + @java.lang.Override + public com.google.container.v1.OperationProgress.MetricOrBuilder getMetricsOrBuilder( + int index) { + return metrics_.get(index); + } + + public static final int STAGES_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private java.util.List stages_; + /** + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + @java.lang.Override + public java.util.List getStagesList() { + return stages_; + } + /** + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + @java.lang.Override + public java.util.List + getStagesOrBuilderList() { + return stages_; + } + /** + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + @java.lang.Override + public int getStagesCount() { + return stages_.size(); + } + /** + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + @java.lang.Override + public com.google.container.v1.OperationProgress getStages(int index) { + return stages_.get(index); + } + /** + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + @java.lang.Override + public com.google.container.v1.OperationProgressOrBuilder getStagesOrBuilder( + int index) { + return stages_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (status_ != com.google.container.v1.Operation.Status.STATUS_UNSPECIFIED.getNumber()) { + output.writeEnum(2, status_); + } + for (int i = 0; i < metrics_.size(); i++) { + output.writeMessage(3, metrics_.get(i)); + } + for (int i = 0; i < stages_.size(); i++) { + output.writeMessage(4, stages_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (status_ != com.google.container.v1.Operation.Status.STATUS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, status_); + } + for (int i = 0; i < metrics_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, metrics_.get(i)); + } + for (int i = 0; i < stages_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, stages_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.OperationProgress)) { + return super.equals(obj); + } + com.google.container.v1.OperationProgress other = (com.google.container.v1.OperationProgress) obj; + + if (!getName() + .equals(other.getName())) return false; + if (status_ != other.status_) return false; + if (!getMetricsList() + .equals(other.getMetricsList())) return false; + if (!getStagesList() + .equals(other.getStagesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.OperationProgress parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.OperationProgress parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.OperationProgress parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.OperationProgress parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.OperationProgress parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.OperationProgress parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.OperationProgress parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.OperationProgress parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.OperationProgress parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.OperationProgress parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.OperationProgress parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.OperationProgress parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.OperationProgress prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Information about operation (or operation stage) progress.
+   * 
+ * + * Protobuf type {@code google.container.v1.OperationProgress} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.OperationProgress) + com.google.container.v1.OperationProgressOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_OperationProgress_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_OperationProgress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.OperationProgress.class, com.google.container.v1.OperationProgress.Builder.class); + } + + // Construct using com.google.container.v1.OperationProgress.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + status_ = 0; + if (metricsBuilder_ == null) { + metrics_ = java.util.Collections.emptyList(); + } else { + metrics_ = null; + metricsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (stagesBuilder_ == null) { + stages_ = java.util.Collections.emptyList(); + } else { + stages_ = null; + stagesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_OperationProgress_descriptor; + } + + @java.lang.Override + public com.google.container.v1.OperationProgress getDefaultInstanceForType() { + return com.google.container.v1.OperationProgress.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.OperationProgress build() { + com.google.container.v1.OperationProgress result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.OperationProgress buildPartial() { + com.google.container.v1.OperationProgress result = new com.google.container.v1.OperationProgress(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1.OperationProgress result) { + if (metricsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + metrics_ = java.util.Collections.unmodifiableList(metrics_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.metrics_ = metrics_; + } else { + result.metrics_ = metricsBuilder_.build(); + } + if (stagesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + stages_ = java.util.Collections.unmodifiableList(stages_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.stages_ = stages_; + } else { + result.stages_ = stagesBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1.OperationProgress result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.status_ = status_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.OperationProgress) { + return mergeFrom((com.google.container.v1.OperationProgress)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.OperationProgress other) { + if (other == com.google.container.v1.OperationProgress.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (metricsBuilder_ == null) { + if (!other.metrics_.isEmpty()) { + if (metrics_.isEmpty()) { + metrics_ = other.metrics_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureMetricsIsMutable(); + metrics_.addAll(other.metrics_); + } + onChanged(); + } + } else { + if (!other.metrics_.isEmpty()) { + if (metricsBuilder_.isEmpty()) { + metricsBuilder_.dispose(); + metricsBuilder_ = null; + metrics_ = other.metrics_; + bitField0_ = (bitField0_ & ~0x00000004); + metricsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMetricsFieldBuilder() : null; + } else { + metricsBuilder_.addAllMessages(other.metrics_); + } + } + } + if (stagesBuilder_ == null) { + if (!other.stages_.isEmpty()) { + if (stages_.isEmpty()) { + stages_ = other.stages_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureStagesIsMutable(); + stages_.addAll(other.stages_); + } + onChanged(); + } + } else { + if (!other.stages_.isEmpty()) { + if (stagesBuilder_.isEmpty()) { + stagesBuilder_.dispose(); + stagesBuilder_ = null; + stages_ = other.stages_; + bitField0_ = (bitField0_ & ~0x00000008); + stagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStagesFieldBuilder() : null; + } else { + stagesBuilder_.addAllMessages(other.stages_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + status_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + com.google.container.v1.OperationProgress.Metric m = + input.readMessage( + com.google.container.v1.OperationProgress.Metric.parser(), + extensionRegistry); + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(m); + } else { + metricsBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: { + com.google.container.v1.OperationProgress m = + input.readMessage( + com.google.container.v1.OperationProgress.parser(), + extensionRegistry); + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + stages_.add(m); + } else { + stagesBuilder_.addMessage(m); + } + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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; + bitField0_ |= 0x00000001; + 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(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int status_ = 0; + /** + *
+     * Status of an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * .google.container.v1.Operation.Status status = 2; + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + *
+     * Status of an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * .google.container.v1.Operation.Status status = 2; + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Status of an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * .google.container.v1.Operation.Status status = 2; + * @return The status. + */ + @java.lang.Override + public com.google.container.v1.Operation.Status getStatus() { + com.google.container.v1.Operation.Status result = com.google.container.v1.Operation.Status.forNumber(status_); + return result == null ? com.google.container.v1.Operation.Status.UNRECOGNIZED : result; + } + /** + *
+     * Status of an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * .google.container.v1.Operation.Status status = 2; + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(com.google.container.v1.Operation.Status value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Status of an operation stage.
+     * Unset for single-stage operations.
+     * 
+ * + * .google.container.v1.Operation.Status status = 2; + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000002); + status_ = 0; + onChanged(); + return this; + } + + private java.util.List metrics_ = + java.util.Collections.emptyList(); + private void ensureMetricsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + metrics_ = new java.util.ArrayList(metrics_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.OperationProgress.Metric, com.google.container.v1.OperationProgress.Metric.Builder, com.google.container.v1.OperationProgress.MetricOrBuilder> metricsBuilder_; + + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + public java.util.List getMetricsList() { + if (metricsBuilder_ == null) { + return java.util.Collections.unmodifiableList(metrics_); + } else { + return metricsBuilder_.getMessageList(); + } + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + public int getMetricsCount() { + if (metricsBuilder_ == null) { + return metrics_.size(); + } else { + return metricsBuilder_.getCount(); + } + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1.OperationProgress.Metric getMetrics(int index) { + if (metricsBuilder_ == null) { + return metrics_.get(index); + } else { + return metricsBuilder_.getMessage(index); + } + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + public Builder setMetrics( + int index, com.google.container.v1.OperationProgress.Metric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.set(index, value); + onChanged(); + } else { + metricsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + public Builder setMetrics( + int index, com.google.container.v1.OperationProgress.Metric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.set(index, builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + public Builder addMetrics(com.google.container.v1.OperationProgress.Metric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.add(value); + onChanged(); + } else { + metricsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + public Builder addMetrics( + int index, com.google.container.v1.OperationProgress.Metric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.add(index, value); + onChanged(); + } else { + metricsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + public Builder addMetrics( + com.google.container.v1.OperationProgress.Metric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + public Builder addMetrics( + int index, com.google.container.v1.OperationProgress.Metric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(index, builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + public Builder addAllMetrics( + java.lang.Iterable values) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, metrics_); + onChanged(); + } else { + metricsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + public Builder clearMetrics() { + if (metricsBuilder_ == null) { + metrics_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + metricsBuilder_.clear(); + } + return this; + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + public Builder removeMetrics(int index) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.remove(index); + onChanged(); + } else { + metricsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1.OperationProgress.Metric.Builder getMetricsBuilder( + int index) { + return getMetricsFieldBuilder().getBuilder(index); + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1.OperationProgress.MetricOrBuilder getMetricsOrBuilder( + int index) { + if (metricsBuilder_ == null) { + return metrics_.get(index); } else { + return metricsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + public java.util.List + getMetricsOrBuilderList() { + if (metricsBuilder_ != null) { + return metricsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(metrics_); + } + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1.OperationProgress.Metric.Builder addMetricsBuilder() { + return getMetricsFieldBuilder().addBuilder( + com.google.container.v1.OperationProgress.Metric.getDefaultInstance()); + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1.OperationProgress.Metric.Builder addMetricsBuilder( + int index) { + return getMetricsFieldBuilder().addBuilder( + index, com.google.container.v1.OperationProgress.Metric.getDefaultInstance()); + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + public java.util.List + getMetricsBuilderList() { + return getMetricsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.OperationProgress.Metric, com.google.container.v1.OperationProgress.Metric.Builder, com.google.container.v1.OperationProgress.MetricOrBuilder> + getMetricsFieldBuilder() { + if (metricsBuilder_ == null) { + metricsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.OperationProgress.Metric, com.google.container.v1.OperationProgress.Metric.Builder, com.google.container.v1.OperationProgress.MetricOrBuilder>( + metrics_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + metrics_ = null; + } + return metricsBuilder_; + } + + private java.util.List stages_ = + java.util.Collections.emptyList(); + private void ensureStagesIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + stages_ = new java.util.ArrayList(stages_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.OperationProgress, com.google.container.v1.OperationProgress.Builder, com.google.container.v1.OperationProgressOrBuilder> stagesBuilder_; + + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + public java.util.List getStagesList() { + if (stagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(stages_); + } else { + return stagesBuilder_.getMessageList(); + } + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + public int getStagesCount() { + if (stagesBuilder_ == null) { + return stages_.size(); + } else { + return stagesBuilder_.getCount(); + } + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + public com.google.container.v1.OperationProgress getStages(int index) { + if (stagesBuilder_ == null) { + return stages_.get(index); + } else { + return stagesBuilder_.getMessage(index); + } + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + public Builder setStages( + int index, com.google.container.v1.OperationProgress value) { + if (stagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStagesIsMutable(); + stages_.set(index, value); + onChanged(); + } else { + stagesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + public Builder setStages( + int index, com.google.container.v1.OperationProgress.Builder builderForValue) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + stages_.set(index, builderForValue.build()); + onChanged(); + } else { + stagesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + public Builder addStages(com.google.container.v1.OperationProgress value) { + if (stagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStagesIsMutable(); + stages_.add(value); + onChanged(); + } else { + stagesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + public Builder addStages( + int index, com.google.container.v1.OperationProgress value) { + if (stagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStagesIsMutable(); + stages_.add(index, value); + onChanged(); + } else { + stagesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + public Builder addStages( + com.google.container.v1.OperationProgress.Builder builderForValue) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + stages_.add(builderForValue.build()); + onChanged(); + } else { + stagesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + public Builder addStages( + int index, com.google.container.v1.OperationProgress.Builder builderForValue) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + stages_.add(index, builderForValue.build()); + onChanged(); + } else { + stagesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + public Builder addAllStages( + java.lang.Iterable values) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, stages_); + onChanged(); + } else { + stagesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + public Builder clearStages() { + if (stagesBuilder_ == null) { + stages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + stagesBuilder_.clear(); + } + return this; + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + public Builder removeStages(int index) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + stages_.remove(index); + onChanged(); + } else { + stagesBuilder_.remove(index); + } + return this; + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + public com.google.container.v1.OperationProgress.Builder getStagesBuilder( + int index) { + return getStagesFieldBuilder().getBuilder(index); + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + public com.google.container.v1.OperationProgressOrBuilder getStagesOrBuilder( + int index) { + if (stagesBuilder_ == null) { + return stages_.get(index); } else { + return stagesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + public java.util.List + getStagesOrBuilderList() { + if (stagesBuilder_ != null) { + return stagesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(stages_); + } + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + public com.google.container.v1.OperationProgress.Builder addStagesBuilder() { + return getStagesFieldBuilder().addBuilder( + com.google.container.v1.OperationProgress.getDefaultInstance()); + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + public com.google.container.v1.OperationProgress.Builder addStagesBuilder( + int index) { + return getStagesFieldBuilder().addBuilder( + index, com.google.container.v1.OperationProgress.getDefaultInstance()); + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + public java.util.List + getStagesBuilderList() { + return getStagesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.OperationProgress, com.google.container.v1.OperationProgress.Builder, com.google.container.v1.OperationProgressOrBuilder> + getStagesFieldBuilder() { + if (stagesBuilder_ == null) { + stagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.OperationProgress, com.google.container.v1.OperationProgress.Builder, com.google.container.v1.OperationProgressOrBuilder>( + stages_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + stages_ = null; + } + return stagesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.OperationProgress) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.OperationProgress) + private static final com.google.container.v1.OperationProgress DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.OperationProgress(); + } + + public static com.google.container.v1.OperationProgress getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationProgress parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.OperationProgress getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationProgressOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationProgressOrBuilder.java new file mode 100644 index 000000000000..824d23ea6cbf --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationProgressOrBuilder.java @@ -0,0 +1,166 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface OperationProgressOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.OperationProgress) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * A non-parameterized string describing an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * A non-parameterized string describing an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Status of an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * .google.container.v1.Operation.Status status = 2; + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + *
+   * Status of an operation stage.
+   * Unset for single-stage operations.
+   * 
+ * + * .google.container.v1.Operation.Status status = 2; + * @return The status. + */ + com.google.container.v1.Operation.Status getStatus(); + + /** + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + java.util.List + getMetricsList(); + /** + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + com.google.container.v1.OperationProgress.Metric getMetrics(int index); + /** + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + int getMetricsCount(); + /** + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + java.util.List + getMetricsOrBuilderList(); + /** + *
+   * Progress metric bundle, for example:
+   *   metrics: [{name: "nodes done",     int_value: 15},
+   *             {name: "nodes total",    int_value: 32}]
+   * or
+   *   metrics: [{name: "progress",       double_value: 0.56},
+   *             {name: "progress scale", double_value: 1.0}]
+   * 
+ * + * repeated .google.container.v1.OperationProgress.Metric metrics = 3; + */ + com.google.container.v1.OperationProgress.MetricOrBuilder getMetricsOrBuilder( + int index); + + /** + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + java.util.List + getStagesList(); + /** + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + com.google.container.v1.OperationProgress getStages(int index); + /** + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + int getStagesCount(); + /** + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + java.util.List + getStagesOrBuilderList(); + /** + *
+   * Substages of an operation or a stage.
+   * 
+ * + * repeated .google.container.v1.OperationProgress stages = 4; + */ + com.google.container.v1.OperationProgressOrBuilder getStagesOrBuilder( + int index); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PodCIDROverprovisionConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PodCIDROverprovisionConfig.java new file mode 100644 index 000000000000..5cf1d740af88 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PodCIDROverprovisionConfig.java @@ -0,0 +1,503 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * [PRIVATE FIELD]
+ * Config for pod CIDR size overprovisioning.
+ * 
+ * + * Protobuf type {@code google.container.v1.PodCIDROverprovisionConfig} + */ +public final class PodCIDROverprovisionConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.PodCIDROverprovisionConfig) + PodCIDROverprovisionConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use PodCIDROverprovisionConfig.newBuilder() to construct. + private PodCIDROverprovisionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PodCIDROverprovisionConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PodCIDROverprovisionConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_PodCIDROverprovisionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_PodCIDROverprovisionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.PodCIDROverprovisionConfig.class, com.google.container.v1.PodCIDROverprovisionConfig.Builder.class); + } + + public static final int DISABLE_FIELD_NUMBER = 1; + private boolean disable_ = false; + /** + *
+   * Whether Pod CIDR overprovisioning is disabled.
+   * Note: Pod CIDR overprovisioning is enabled by default.
+   * 
+ * + * bool disable = 1; + * @return The disable. + */ + @java.lang.Override + public boolean getDisable() { + return disable_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (disable_ != false) { + output.writeBool(1, disable_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (disable_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, disable_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.PodCIDROverprovisionConfig)) { + return super.equals(obj); + } + com.google.container.v1.PodCIDROverprovisionConfig other = (com.google.container.v1.PodCIDROverprovisionConfig) obj; + + if (getDisable() + != other.getDisable()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + DISABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisable()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.PodCIDROverprovisionConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.PodCIDROverprovisionConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.PodCIDROverprovisionConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.PodCIDROverprovisionConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.PodCIDROverprovisionConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.PodCIDROverprovisionConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.PodCIDROverprovisionConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.PodCIDROverprovisionConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.PodCIDROverprovisionConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.PodCIDROverprovisionConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.PodCIDROverprovisionConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.PodCIDROverprovisionConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.PodCIDROverprovisionConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * [PRIVATE FIELD]
+   * Config for pod CIDR size overprovisioning.
+   * 
+ * + * Protobuf type {@code google.container.v1.PodCIDROverprovisionConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.PodCIDROverprovisionConfig) + com.google.container.v1.PodCIDROverprovisionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_PodCIDROverprovisionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_PodCIDROverprovisionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.PodCIDROverprovisionConfig.class, com.google.container.v1.PodCIDROverprovisionConfig.Builder.class); + } + + // Construct using com.google.container.v1.PodCIDROverprovisionConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + disable_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_PodCIDROverprovisionConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.PodCIDROverprovisionConfig getDefaultInstanceForType() { + return com.google.container.v1.PodCIDROverprovisionConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.PodCIDROverprovisionConfig build() { + com.google.container.v1.PodCIDROverprovisionConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.PodCIDROverprovisionConfig buildPartial() { + com.google.container.v1.PodCIDROverprovisionConfig result = new com.google.container.v1.PodCIDROverprovisionConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.PodCIDROverprovisionConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.disable_ = disable_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.PodCIDROverprovisionConfig) { + return mergeFrom((com.google.container.v1.PodCIDROverprovisionConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.PodCIDROverprovisionConfig other) { + if (other == com.google.container.v1.PodCIDROverprovisionConfig.getDefaultInstance()) return this; + if (other.getDisable() != false) { + setDisable(other.getDisable()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + disable_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean disable_ ; + /** + *
+     * Whether Pod CIDR overprovisioning is disabled.
+     * Note: Pod CIDR overprovisioning is enabled by default.
+     * 
+ * + * bool disable = 1; + * @return The disable. + */ + @java.lang.Override + public boolean getDisable() { + return disable_; + } + /** + *
+     * Whether Pod CIDR overprovisioning is disabled.
+     * Note: Pod CIDR overprovisioning is enabled by default.
+     * 
+ * + * bool disable = 1; + * @param value The disable to set. + * @return This builder for chaining. + */ + public Builder setDisable(boolean value) { + + disable_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether Pod CIDR overprovisioning is disabled.
+     * Note: Pod CIDR overprovisioning is enabled by default.
+     * 
+ * + * bool disable = 1; + * @return This builder for chaining. + */ + public Builder clearDisable() { + bitField0_ = (bitField0_ & ~0x00000001); + disable_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.PodCIDROverprovisionConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.PodCIDROverprovisionConfig) + private static final com.google.container.v1.PodCIDROverprovisionConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.PodCIDROverprovisionConfig(); + } + + public static com.google.container.v1.PodCIDROverprovisionConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PodCIDROverprovisionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.PodCIDROverprovisionConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PodCIDROverprovisionConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PodCIDROverprovisionConfigOrBuilder.java new file mode 100644 index 000000000000..4718ba16cee2 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PodCIDROverprovisionConfigOrBuilder.java @@ -0,0 +1,21 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface PodCIDROverprovisionConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.PodCIDROverprovisionConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether Pod CIDR overprovisioning is disabled.
+   * Note: Pod CIDR overprovisioning is enabled by default.
+   * 
+ * + * bool disable = 1; + * @return The disable. + */ + boolean getDisable(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfig.java new file mode 100644 index 000000000000..e2295d7a34ce --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfig.java @@ -0,0 +1,1677 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Configuration options for private clusters.
+ * 
+ * + * Protobuf type {@code google.container.v1.PrivateClusterConfig} + */ +public final class PrivateClusterConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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_ = ""; + privateEndpointSubnetwork_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PrivateClusterConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_PrivateClusterConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_PrivateClusterConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.PrivateClusterConfig.class, com.google.container.v1.PrivateClusterConfig.Builder.class); + } + + private int bitField0_; + public static final int ENABLE_PRIVATE_NODES_FIELD_NUMBER = 1; + private boolean enablePrivateNodes_ = false; + /** + *
+   * 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_ = false; + /** + *
+   * 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + private volatile java.lang.Object peeringName_ = ""; + /** + *
+   * Output only. The peering name in the customer VPC used by this cluster.
+   * 
+ * + * string peering_name = 7; + * @return The peeringName. + */ + @java.lang.Override + public java.lang.String getPeeringName() { + java.lang.Object ref = peeringName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + peeringName_ = s; + return s; + } + } + /** + *
+   * Output only. The peering name in the customer VPC used by this cluster.
+   * 
+ * + * string peering_name = 7; + * @return The bytes for peeringName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPeeringNameBytes() { + java.lang.Object ref = peeringName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + peeringName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MASTER_GLOBAL_ACCESS_CONFIG_FIELD_NUMBER = 8; + private com.google.container.v1.PrivateClusterMasterGlobalAccessConfig masterGlobalAccessConfig_; + /** + *
+   * Controls master global access settings.
+   * 
+ * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * @return Whether the masterGlobalAccessConfig field is set. + */ + @java.lang.Override + public boolean hasMasterGlobalAccessConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Controls master global access settings.
+   * 
+ * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * @return The masterGlobalAccessConfig. + */ + @java.lang.Override + public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig getMasterGlobalAccessConfig() { + return masterGlobalAccessConfig_ == null ? com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance() : masterGlobalAccessConfig_; + } + /** + *
+   * Controls master global access settings.
+   * 
+ * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + */ + @java.lang.Override + public com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder getMasterGlobalAccessConfigOrBuilder() { + return masterGlobalAccessConfig_ == null ? com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance() : masterGlobalAccessConfig_; + } + + public static final int PRIVATE_ENDPOINT_SUBNETWORK_FIELD_NUMBER = 10; + @SuppressWarnings("serial") + private volatile java.lang.Object privateEndpointSubnetwork_ = ""; + /** + *
+   * Subnet to provision the master's private endpoint during cluster creation.
+   * Specified in projects/*/regions/*/subnetworks/* format.
+   * 
+ * + * string private_endpoint_subnetwork = 10; + * @return The privateEndpointSubnetwork. + */ + @java.lang.Override + public java.lang.String getPrivateEndpointSubnetwork() { + java.lang.Object ref = privateEndpointSubnetwork_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateEndpointSubnetwork_ = s; + return s; + } + } + /** + *
+   * Subnet to provision the master's private endpoint during cluster creation.
+   * Specified in projects/*/regions/*/subnetworks/* format.
+   * 
+ * + * string private_endpoint_subnetwork = 10; + * @return The bytes for privateEndpointSubnetwork. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPrivateEndpointSubnetworkBytes() { + java.lang.Object ref = privateEndpointSubnetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + privateEndpointSubnetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (enablePrivateNodes_ != false) { + output.writeBool(1, enablePrivateNodes_); + } + if (enablePrivateEndpoint_ != false) { + output.writeBool(2, enablePrivateEndpoint_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(masterIpv4CidrBlock_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, masterIpv4CidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateEndpoint_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, privateEndpoint_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicEndpoint_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, publicEndpoint_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(peeringName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, peeringName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(8, getMasterGlobalAccessConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateEndpointSubnetwork_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, privateEndpointSubnetwork_); + } + getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(masterIpv4CidrBlock_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, masterIpv4CidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateEndpoint_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, privateEndpoint_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicEndpoint_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, publicEndpoint_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(peeringName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, peeringName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getMasterGlobalAccessConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateEndpointSubnetwork_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, privateEndpointSubnetwork_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.PrivateClusterConfig)) { + return super.equals(obj); + } + com.google.container.v1.PrivateClusterConfig other = (com.google.container.v1.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 (!getPrivateEndpointSubnetwork() + .equals(other.getPrivateEndpointSubnetwork())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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 = (37 * hash) + PRIVATE_ENDPOINT_SUBNETWORK_FIELD_NUMBER; + hash = (53 * hash) + getPrivateEndpointSubnetwork().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.PrivateClusterConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.PrivateClusterConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.PrivateClusterConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.PrivateClusterConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.PrivateClusterConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.PrivateClusterConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.PrivateClusterConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.PrivateClusterConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.PrivateClusterConfig) + com.google.container.v1.PrivateClusterConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_PrivateClusterConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_PrivateClusterConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.PrivateClusterConfig.class, com.google.container.v1.PrivateClusterConfig.Builder.class); + } + + // Construct using com.google.container.v1.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) { + getMasterGlobalAccessConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enablePrivateNodes_ = false; + enablePrivateEndpoint_ = false; + masterIpv4CidrBlock_ = ""; + privateEndpoint_ = ""; + publicEndpoint_ = ""; + peeringName_ = ""; + masterGlobalAccessConfig_ = null; + if (masterGlobalAccessConfigBuilder_ != null) { + masterGlobalAccessConfigBuilder_.dispose(); + masterGlobalAccessConfigBuilder_ = null; + } + privateEndpointSubnetwork_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_PrivateClusterConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.PrivateClusterConfig getDefaultInstanceForType() { + return com.google.container.v1.PrivateClusterConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.PrivateClusterConfig build() { + com.google.container.v1.PrivateClusterConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.PrivateClusterConfig buildPartial() { + com.google.container.v1.PrivateClusterConfig result = new com.google.container.v1.PrivateClusterConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.PrivateClusterConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enablePrivateNodes_ = enablePrivateNodes_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.enablePrivateEndpoint_ = enablePrivateEndpoint_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.masterIpv4CidrBlock_ = masterIpv4CidrBlock_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.privateEndpoint_ = privateEndpoint_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.publicEndpoint_ = publicEndpoint_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.peeringName_ = peeringName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000040) != 0)) { + result.masterGlobalAccessConfig_ = masterGlobalAccessConfigBuilder_ == null + ? masterGlobalAccessConfig_ + : masterGlobalAccessConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.privateEndpointSubnetwork_ = privateEndpointSubnetwork_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.PrivateClusterConfig) { + return mergeFrom((com.google.container.v1.PrivateClusterConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.PrivateClusterConfig other) { + if (other == com.google.container.v1.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_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getPrivateEndpoint().isEmpty()) { + privateEndpoint_ = other.privateEndpoint_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getPublicEndpoint().isEmpty()) { + publicEndpoint_ = other.publicEndpoint_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getPeeringName().isEmpty()) { + peeringName_ = other.peeringName_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasMasterGlobalAccessConfig()) { + mergeMasterGlobalAccessConfig(other.getMasterGlobalAccessConfig()); + } + if (!other.getPrivateEndpointSubnetwork().isEmpty()) { + privateEndpointSubnetwork_ = other.privateEndpointSubnetwork_; + bitField0_ |= 0x00000080; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enablePrivateNodes_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + enablePrivateEndpoint_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + masterIpv4CidrBlock_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + privateEndpoint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + publicEndpoint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 58: { + peeringName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: { + input.readMessage( + getMasterGlobalAccessConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 82: { + privateEndpointSubnetwork_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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() { + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000002; + 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() { + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000004; + 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(); + bitField0_ = (bitField0_ & ~0x00000004); + 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; + bitField0_ |= 0x00000004; + 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; + bitField0_ |= 0x00000008; + 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(); + bitField0_ = (bitField0_ & ~0x00000008); + 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; + bitField0_ |= 0x00000008; + 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; + bitField0_ |= 0x00000010; + 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(); + bitField0_ = (bitField0_ & ~0x00000010); + 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; + bitField0_ |= 0x00000010; + 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; + bitField0_ |= 0x00000020; + 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(); + bitField0_ = (bitField0_ & ~0x00000020); + 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; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.container.v1.PrivateClusterMasterGlobalAccessConfig masterGlobalAccessConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig, com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder, com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder> masterGlobalAccessConfigBuilder_; + /** + *
+     * Controls master global access settings.
+     * 
+ * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * @return Whether the masterGlobalAccessConfig field is set. + */ + public boolean hasMasterGlobalAccessConfig() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+     * Controls master global access settings.
+     * 
+ * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * @return The masterGlobalAccessConfig. + */ + public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig getMasterGlobalAccessConfig() { + if (masterGlobalAccessConfigBuilder_ == null) { + return masterGlobalAccessConfig_ == null ? com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance() : masterGlobalAccessConfig_; + } else { + return masterGlobalAccessConfigBuilder_.getMessage(); + } + } + /** + *
+     * Controls master global access settings.
+     * 
+ * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + */ + public Builder setMasterGlobalAccessConfig(com.google.container.v1.PrivateClusterMasterGlobalAccessConfig value) { + if (masterGlobalAccessConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + masterGlobalAccessConfig_ = value; + } else { + masterGlobalAccessConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * Controls master global access settings.
+     * 
+ * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + */ + public Builder setMasterGlobalAccessConfig( + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder builderForValue) { + if (masterGlobalAccessConfigBuilder_ == null) { + masterGlobalAccessConfig_ = builderForValue.build(); + } else { + masterGlobalAccessConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * Controls master global access settings.
+     * 
+ * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + */ + public Builder mergeMasterGlobalAccessConfig(com.google.container.v1.PrivateClusterMasterGlobalAccessConfig value) { + if (masterGlobalAccessConfigBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) && + masterGlobalAccessConfig_ != null && + masterGlobalAccessConfig_ != com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance()) { + getMasterGlobalAccessConfigBuilder().mergeFrom(value); + } else { + masterGlobalAccessConfig_ = value; + } + } else { + masterGlobalAccessConfigBuilder_.mergeFrom(value); + } + if (masterGlobalAccessConfig_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + *
+     * Controls master global access settings.
+     * 
+ * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + */ + public Builder clearMasterGlobalAccessConfig() { + bitField0_ = (bitField0_ & ~0x00000040); + masterGlobalAccessConfig_ = null; + if (masterGlobalAccessConfigBuilder_ != null) { + masterGlobalAccessConfigBuilder_.dispose(); + masterGlobalAccessConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Controls master global access settings.
+     * 
+ * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + */ + public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder getMasterGlobalAccessConfigBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getMasterGlobalAccessConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Controls master global access settings.
+     * 
+ * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + */ + public com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder getMasterGlobalAccessConfigOrBuilder() { + if (masterGlobalAccessConfigBuilder_ != null) { + return masterGlobalAccessConfigBuilder_.getMessageOrBuilder(); + } else { + return masterGlobalAccessConfig_ == null ? + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance() : masterGlobalAccessConfig_; + } + } + /** + *
+     * Controls master global access settings.
+     * 
+ * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig, com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder, com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder> + getMasterGlobalAccessConfigFieldBuilder() { + if (masterGlobalAccessConfigBuilder_ == null) { + masterGlobalAccessConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig, com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder, com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder>( + getMasterGlobalAccessConfig(), + getParentForChildren(), + isClean()); + masterGlobalAccessConfig_ = null; + } + return masterGlobalAccessConfigBuilder_; + } + + private java.lang.Object privateEndpointSubnetwork_ = ""; + /** + *
+     * Subnet to provision the master's private endpoint during cluster creation.
+     * Specified in projects/*/regions/*/subnetworks/* format.
+     * 
+ * + * string private_endpoint_subnetwork = 10; + * @return The privateEndpointSubnetwork. + */ + public java.lang.String getPrivateEndpointSubnetwork() { + java.lang.Object ref = privateEndpointSubnetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateEndpointSubnetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Subnet to provision the master's private endpoint during cluster creation.
+     * Specified in projects/*/regions/*/subnetworks/* format.
+     * 
+ * + * string private_endpoint_subnetwork = 10; + * @return The bytes for privateEndpointSubnetwork. + */ + public com.google.protobuf.ByteString + getPrivateEndpointSubnetworkBytes() { + java.lang.Object ref = privateEndpointSubnetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + privateEndpointSubnetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Subnet to provision the master's private endpoint during cluster creation.
+     * Specified in projects/*/regions/*/subnetworks/* format.
+     * 
+ * + * string private_endpoint_subnetwork = 10; + * @param value The privateEndpointSubnetwork to set. + * @return This builder for chaining. + */ + public Builder setPrivateEndpointSubnetwork( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + privateEndpointSubnetwork_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * Subnet to provision the master's private endpoint during cluster creation.
+     * Specified in projects/*/regions/*/subnetworks/* format.
+     * 
+ * + * string private_endpoint_subnetwork = 10; + * @return This builder for chaining. + */ + public Builder clearPrivateEndpointSubnetwork() { + privateEndpointSubnetwork_ = getDefaultInstance().getPrivateEndpointSubnetwork(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + *
+     * Subnet to provision the master's private endpoint during cluster creation.
+     * Specified in projects/*/regions/*/subnetworks/* format.
+     * 
+ * + * string private_endpoint_subnetwork = 10; + * @param value The bytes for privateEndpointSubnetwork to set. + * @return This builder for chaining. + */ + public Builder setPrivateEndpointSubnetworkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + privateEndpointSubnetwork_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.PrivateClusterConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.PrivateClusterConfig) + private static final com.google.container.v1.PrivateClusterConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.PrivateClusterConfig(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.PrivateClusterConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfigOrBuilder.java new file mode 100644 index 000000000000..852cb4bf424c --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfigOrBuilder.java @@ -0,0 +1,167 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface PrivateClusterConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.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.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * @return Whether the masterGlobalAccessConfig field is set. + */ + boolean hasMasterGlobalAccessConfig(); + /** + *
+   * Controls master global access settings.
+   * 
+ * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + * @return The masterGlobalAccessConfig. + */ + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig getMasterGlobalAccessConfig(); + /** + *
+   * Controls master global access settings.
+   * 
+ * + * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + */ + com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder getMasterGlobalAccessConfigOrBuilder(); + + /** + *
+   * Subnet to provision the master's private endpoint during cluster creation.
+   * Specified in projects/*/regions/*/subnetworks/* format.
+   * 
+ * + * string private_endpoint_subnetwork = 10; + * @return The privateEndpointSubnetwork. + */ + java.lang.String getPrivateEndpointSubnetwork(); + /** + *
+   * Subnet to provision the master's private endpoint during cluster creation.
+   * Specified in projects/*/regions/*/subnetworks/* format.
+   * 
+ * + * string private_endpoint_subnetwork = 10; + * @return The bytes for privateEndpointSubnetwork. + */ + com.google.protobuf.ByteString + getPrivateEndpointSubnetworkBytes(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterMasterGlobalAccessConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterMasterGlobalAccessConfig.java new file mode 100644 index 000000000000..d43c38d5fb1d --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterMasterGlobalAccessConfig.java @@ -0,0 +1,497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Configuration for controlling master global access settings.
+ * 
+ * + * Protobuf type {@code google.container.v1.PrivateClusterMasterGlobalAccessConfig} + */ +public final class PrivateClusterMasterGlobalAccessConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.PrivateClusterMasterGlobalAccessConfig) + PrivateClusterMasterGlobalAccessConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use PrivateClusterMasterGlobalAccessConfig.newBuilder() to construct. + private PrivateClusterMasterGlobalAccessConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PrivateClusterMasterGlobalAccessConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PrivateClusterMasterGlobalAccessConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_PrivateClusterMasterGlobalAccessConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_PrivateClusterMasterGlobalAccessConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.class, com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.PrivateClusterMasterGlobalAccessConfig)) { + return super.equals(obj); + } + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig other = (com.google.container.v1.PrivateClusterMasterGlobalAccessConfig) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.PrivateClusterMasterGlobalAccessConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration for controlling master global access settings.
+   * 
+ * + * Protobuf type {@code google.container.v1.PrivateClusterMasterGlobalAccessConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.PrivateClusterMasterGlobalAccessConfig) + com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_PrivateClusterMasterGlobalAccessConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_PrivateClusterMasterGlobalAccessConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.class, com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder.class); + } + + // Construct using com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_PrivateClusterMasterGlobalAccessConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig getDefaultInstanceForType() { + return com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig build() { + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig buildPartial() { + com.google.container.v1.PrivateClusterMasterGlobalAccessConfig result = new com.google.container.v1.PrivateClusterMasterGlobalAccessConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.PrivateClusterMasterGlobalAccessConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.PrivateClusterMasterGlobalAccessConfig) { + return mergeFrom((com.google.container.v1.PrivateClusterMasterGlobalAccessConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.PrivateClusterMasterGlobalAccessConfig other) { + if (other == com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whenever master is accessible globally or not.
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.PrivateClusterMasterGlobalAccessConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.PrivateClusterMasterGlobalAccessConfig) + private static final com.google.container.v1.PrivateClusterMasterGlobalAccessConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.PrivateClusterMasterGlobalAccessConfig(); + } + + public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateClusterMasterGlobalAccessConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterMasterGlobalAccessConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterMasterGlobalAccessConfigOrBuilder.java new file mode 100644 index 000000000000..644145ea5272 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterMasterGlobalAccessConfigOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface PrivateClusterMasterGlobalAccessConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.PrivateClusterMasterGlobalAccessConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whenever master is accessible globally or not.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateIPv6GoogleAccess.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateIPv6GoogleAccess.java new file mode 100644 index 000000000000..1daf0ccd8c81 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateIPv6GoogleAccess.java @@ -0,0 +1,169 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * PrivateIPv6GoogleAccess controls whether and how the pods can communicate
+ * with Google Services through gRPC over IPv6.
+ * 
+ * + * Protobuf enum {@code google.container.v1.PrivateIPv6GoogleAccess} + */ +public enum PrivateIPv6GoogleAccess + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+   * Default value. Same as DISABLED
+   * 
+ * + * PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0; + */ + PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED(0), + /** + *
+   * No private access to or from Google Services
+   * 
+ * + * PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED = 1; + */ + PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED(1), + /** + *
+   * Enables private IPv6 access to Google Services from GKE
+   * 
+ * + * PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE = 2; + */ + PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE(2), + /** + *
+   * Enables private IPv6 access to and from Google Services
+   * 
+ * + * PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL = 3; + */ + PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL(3), + UNRECOGNIZED(-1), + ; + + /** + *
+   * Default value. Same as DISABLED
+   * 
+ * + * PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0; + */ + public static final int PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED_VALUE = 0; + /** + *
+   * No private access to or from Google Services
+   * 
+ * + * PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED = 1; + */ + public static final int PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED_VALUE = 1; + /** + *
+   * Enables private IPv6 access to Google Services from GKE
+   * 
+ * + * PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE = 2; + */ + public static final int PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE_VALUE = 2; + /** + *
+   * Enables private IPv6 access to and from Google Services
+   * 
+ * + * PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL = 3; + */ + public static final int PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PrivateIPv6GoogleAccess valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static PrivateIPv6GoogleAccess forNumber(int value) { + switch (value) { + case 0: return PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED; + case 1: return PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED; + case 2: return PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE; + case 3: return PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + PrivateIPv6GoogleAccess> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PrivateIPv6GoogleAccess findValueByNumber(int number) { + return PrivateIPv6GoogleAccess.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.getDescriptor().getEnumTypes().get(0); + } + + private static final PrivateIPv6GoogleAccess[] VALUES = values(); + + public static PrivateIPv6GoogleAccess valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private PrivateIPv6GoogleAccess(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.PrivateIPv6GoogleAccess) +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RangeInfo.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RangeInfo.java new file mode 100644 index 000000000000..e427867d6740 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RangeInfo.java @@ -0,0 +1,662 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * RangeInfo contains the range name and the range utilization by this cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1.RangeInfo} + */ +public final class RangeInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.RangeInfo) + RangeInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use RangeInfo.newBuilder() to construct. + private RangeInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RangeInfo() { + rangeName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RangeInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_RangeInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_RangeInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.RangeInfo.class, com.google.container.v1.RangeInfo.Builder.class); + } + + public static final int RANGE_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object rangeName_ = ""; + /** + *
+   * Output only. [Output only] Name of a range.
+   * 
+ * + * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @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; + } + } + /** + *
+   * Output only. [Output only] Name of a range.
+   * 
+ * + * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @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 UTILIZATION_FIELD_NUMBER = 2; + private double utilization_ = 0D; + /** + *
+   * Output only. [Output only] The utilization of the range.
+   * 
+ * + * double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The utilization. + */ + @java.lang.Override + public double getUtilization() { + return utilization_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rangeName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, rangeName_); + } + if (java.lang.Double.doubleToRawLongBits(utilization_) != 0) { + output.writeDouble(2, utilization_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rangeName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, rangeName_); + } + if (java.lang.Double.doubleToRawLongBits(utilization_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, utilization_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.RangeInfo)) { + return super.equals(obj); + } + com.google.container.v1.RangeInfo other = (com.google.container.v1.RangeInfo) obj; + + if (!getRangeName() + .equals(other.getRangeName())) return false; + if (java.lang.Double.doubleToLongBits(getUtilization()) + != java.lang.Double.doubleToLongBits( + other.getUtilization())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + UTILIZATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getUtilization())); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.RangeInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.RangeInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.RangeInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.RangeInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.RangeInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.RangeInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.RangeInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.RangeInfo parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.RangeInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.RangeInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.RangeInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.RangeInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.RangeInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * RangeInfo contains the range name and the range utilization by this cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1.RangeInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.RangeInfo) + com.google.container.v1.RangeInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_RangeInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_RangeInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.RangeInfo.class, com.google.container.v1.RangeInfo.Builder.class); + } + + // Construct using com.google.container.v1.RangeInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + rangeName_ = ""; + utilization_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_RangeInfo_descriptor; + } + + @java.lang.Override + public com.google.container.v1.RangeInfo getDefaultInstanceForType() { + return com.google.container.v1.RangeInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.RangeInfo build() { + com.google.container.v1.RangeInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.RangeInfo buildPartial() { + com.google.container.v1.RangeInfo result = new com.google.container.v1.RangeInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.RangeInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.rangeName_ = rangeName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.utilization_ = utilization_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.RangeInfo) { + return mergeFrom((com.google.container.v1.RangeInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.RangeInfo other) { + if (other == com.google.container.v1.RangeInfo.getDefaultInstance()) return this; + if (!other.getRangeName().isEmpty()) { + rangeName_ = other.rangeName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getUtilization() != 0D) { + setUtilization(other.getUtilization()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + rangeName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 17: { + utilization_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object rangeName_ = ""; + /** + *
+     * Output only. [Output only] Name of a range.
+     * 
+ * + * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @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; + } + } + /** + *
+     * Output only. [Output only] Name of a range.
+     * 
+ * + * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @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; + } + } + /** + *
+     * Output only. [Output only] Name of a range.
+     * 
+ * + * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Output only. [Output only] Name of a range.
+     * 
+ * + * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearRangeName() { + rangeName_ = getDefaultInstance().getRangeName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Output only. [Output only] Name of a range.
+     * 
+ * + * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private double utilization_ ; + /** + *
+     * Output only. [Output only] The utilization of the range.
+     * 
+ * + * double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The utilization. + */ + @java.lang.Override + public double getUtilization() { + return utilization_; + } + /** + *
+     * Output only. [Output only] The utilization of the range.
+     * 
+ * + * double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The utilization to set. + * @return This builder for chaining. + */ + public Builder setUtilization(double value) { + + utilization_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Output only. [Output only] The utilization of the range.
+     * 
+ * + * double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearUtilization() { + bitField0_ = (bitField0_ & ~0x00000002); + utilization_ = 0D; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.RangeInfo) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.RangeInfo) + private static final com.google.container.v1.RangeInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.RangeInfo(); + } + + public static com.google.container.v1.RangeInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RangeInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.RangeInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RangeInfoOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RangeInfoOrBuilder.java new file mode 100644 index 000000000000..41a5058925c8 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RangeInfoOrBuilder.java @@ -0,0 +1,40 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface RangeInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.RangeInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Output only. [Output only] Name of a range.
+   * 
+ * + * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The rangeName. + */ + java.lang.String getRangeName(); + /** + *
+   * Output only. [Output only] Name of a range.
+   * 
+ * + * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for rangeName. + */ + com.google.protobuf.ByteString + getRangeNameBytes(); + + /** + *
+   * Output only. [Output only] The utilization of the range.
+   * 
+ * + * double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The utilization. + */ + double getUtilization(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindow.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindow.java new file mode 100644 index 000000000000..0b35ccd5c9d8 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindow.java @@ -0,0 +1,1036 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Represents an arbitrary window of time that recurs.
+ * 
+ * + * Protobuf type {@code google.container.v1.RecurringTimeWindow} + */ +public final class RecurringTimeWindow extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_RecurringTimeWindow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_RecurringTimeWindow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.RecurringTimeWindow.class, com.google.container.v1.RecurringTimeWindow.Builder.class); + } + + private int bitField0_; + public static final int WINDOW_FIELD_NUMBER = 1; + private com.google.container.v1.TimeWindow window_; + /** + *
+   * The window of the first recurrence.
+   * 
+ * + * .google.container.v1.TimeWindow window = 1; + * @return Whether the window field is set. + */ + @java.lang.Override + public boolean hasWindow() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * The window of the first recurrence.
+   * 
+ * + * .google.container.v1.TimeWindow window = 1; + * @return The window. + */ + @java.lang.Override + public com.google.container.v1.TimeWindow getWindow() { + return window_ == null ? com.google.container.v1.TimeWindow.getDefaultInstance() : window_; + } + /** + *
+   * The window of the first recurrence.
+   * 
+ * + * .google.container.v1.TimeWindow window = 1; + */ + @java.lang.Override + public com.google.container.v1.TimeWindowOrBuilder getWindowOrBuilder() { + return window_ == null ? com.google.container.v1.TimeWindow.getDefaultInstance() : window_; + } + + public static final int RECURRENCE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getWindow()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recurrence_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, recurrence_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWindow()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recurrence_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, recurrence_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.RecurringTimeWindow)) { + return super.equals(obj); + } + com.google.container.v1.RecurringTimeWindow other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.RecurringTimeWindow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.RecurringTimeWindow parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.RecurringTimeWindow parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.RecurringTimeWindow parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.RecurringTimeWindow parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.RecurringTimeWindow parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.RecurringTimeWindow parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.RecurringTimeWindow} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.RecurringTimeWindow) + com.google.container.v1.RecurringTimeWindowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_RecurringTimeWindow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_RecurringTimeWindow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.RecurringTimeWindow.class, com.google.container.v1.RecurringTimeWindow.Builder.class); + } + + // Construct using com.google.container.v1.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) { + getWindowFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + window_ = null; + if (windowBuilder_ != null) { + windowBuilder_.dispose(); + windowBuilder_ = null; + } + recurrence_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_RecurringTimeWindow_descriptor; + } + + @java.lang.Override + public com.google.container.v1.RecurringTimeWindow getDefaultInstanceForType() { + return com.google.container.v1.RecurringTimeWindow.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.RecurringTimeWindow build() { + com.google.container.v1.RecurringTimeWindow result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.RecurringTimeWindow buildPartial() { + com.google.container.v1.RecurringTimeWindow result = new com.google.container.v1.RecurringTimeWindow(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.RecurringTimeWindow result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.window_ = windowBuilder_ == null + ? window_ + : windowBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.recurrence_ = recurrence_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.RecurringTimeWindow) { + return mergeFrom((com.google.container.v1.RecurringTimeWindow)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.RecurringTimeWindow other) { + if (other == com.google.container.v1.RecurringTimeWindow.getDefaultInstance()) return this; + if (other.hasWindow()) { + mergeWindow(other.getWindow()); + } + if (!other.getRecurrence().isEmpty()) { + recurrence_ = other.recurrence_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getWindowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + recurrence_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.container.v1.TimeWindow window_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.TimeWindow, com.google.container.v1.TimeWindow.Builder, com.google.container.v1.TimeWindowOrBuilder> windowBuilder_; + /** + *
+     * The window of the first recurrence.
+     * 
+ * + * .google.container.v1.TimeWindow window = 1; + * @return Whether the window field is set. + */ + public boolean hasWindow() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * The window of the first recurrence.
+     * 
+ * + * .google.container.v1.TimeWindow window = 1; + * @return The window. + */ + public com.google.container.v1.TimeWindow getWindow() { + if (windowBuilder_ == null) { + return window_ == null ? com.google.container.v1.TimeWindow.getDefaultInstance() : window_; + } else { + return windowBuilder_.getMessage(); + } + } + /** + *
+     * The window of the first recurrence.
+     * 
+ * + * .google.container.v1.TimeWindow window = 1; + */ + public Builder setWindow(com.google.container.v1.TimeWindow value) { + if (windowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + window_ = value; + } else { + windowBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The window of the first recurrence.
+     * 
+ * + * .google.container.v1.TimeWindow window = 1; + */ + public Builder setWindow( + com.google.container.v1.TimeWindow.Builder builderForValue) { + if (windowBuilder_ == null) { + window_ = builderForValue.build(); + } else { + windowBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The window of the first recurrence.
+     * 
+ * + * .google.container.v1.TimeWindow window = 1; + */ + public Builder mergeWindow(com.google.container.v1.TimeWindow value) { + if (windowBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + window_ != null && + window_ != com.google.container.v1.TimeWindow.getDefaultInstance()) { + getWindowBuilder().mergeFrom(value); + } else { + window_ = value; + } + } else { + windowBuilder_.mergeFrom(value); + } + if (window_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+     * The window of the first recurrence.
+     * 
+ * + * .google.container.v1.TimeWindow window = 1; + */ + public Builder clearWindow() { + bitField0_ = (bitField0_ & ~0x00000001); + window_ = null; + if (windowBuilder_ != null) { + windowBuilder_.dispose(); + windowBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The window of the first recurrence.
+     * 
+ * + * .google.container.v1.TimeWindow window = 1; + */ + public com.google.container.v1.TimeWindow.Builder getWindowBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getWindowFieldBuilder().getBuilder(); + } + /** + *
+     * The window of the first recurrence.
+     * 
+ * + * .google.container.v1.TimeWindow window = 1; + */ + public com.google.container.v1.TimeWindowOrBuilder getWindowOrBuilder() { + if (windowBuilder_ != null) { + return windowBuilder_.getMessageOrBuilder(); + } else { + return window_ == null ? + com.google.container.v1.TimeWindow.getDefaultInstance() : window_; + } + } + /** + *
+     * The window of the first recurrence.
+     * 
+ * + * .google.container.v1.TimeWindow window = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.TimeWindow, com.google.container.v1.TimeWindow.Builder, com.google.container.v1.TimeWindowOrBuilder> + getWindowFieldBuilder() { + if (windowBuilder_ == null) { + windowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.TimeWindow, com.google.container.v1.TimeWindow.Builder, com.google.container.v1.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; + bitField0_ |= 0x00000002; + 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(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.RecurringTimeWindow) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.RecurringTimeWindow) + private static final com.google.container.v1.RecurringTimeWindow DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.RecurringTimeWindow(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.RecurringTimeWindow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindowOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindowOrBuilder.java new file mode 100644 index 000000000000..3dafcfb25ebd --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindowOrBuilder.java @@ -0,0 +1,119 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface RecurringTimeWindowOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.RecurringTimeWindow) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The window of the first recurrence.
+   * 
+ * + * .google.container.v1.TimeWindow window = 1; + * @return Whether the window field is set. + */ + boolean hasWindow(); + /** + *
+   * The window of the first recurrence.
+   * 
+ * + * .google.container.v1.TimeWindow window = 1; + * @return The window. + */ + com.google.container.v1.TimeWindow getWindow(); + /** + *
+   * The window of the first recurrence.
+   * 
+ * + * .google.container.v1.TimeWindow window = 1; + */ + com.google.container.v1.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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReleaseChannel.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReleaseChannel.java new file mode 100644 index 000000000000..dbbd7f7ac4fa --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReleaseChannel.java @@ -0,0 +1,724 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * ReleaseChannel indicates which release channel a cluster is
+ * subscribed to. Release channels are arranged in order of risk.
+ *
+ * When a cluster is subscribed to a release channel, Google maintains
+ * both the master version and the node version. Node auto-upgrade
+ * defaults to true and cannot be disabled.
+ * 
+ * + * Protobuf type {@code google.container.v1.ReleaseChannel} + */ +public final class ReleaseChannel extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.ReleaseChannel) + ReleaseChannelOrBuilder { +private static final long serialVersionUID = 0L; + // Use ReleaseChannel.newBuilder() to construct. + private ReleaseChannel(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ReleaseChannel() { + channel_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ReleaseChannel(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ReleaseChannel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ReleaseChannel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ReleaseChannel.class, com.google.container.v1.ReleaseChannel.Builder.class); + } + + /** + *
+   * Possible values for 'channel'.
+   * 
+ * + * Protobuf enum {@code google.container.v1.ReleaseChannel.Channel} + */ + public enum Channel + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * No channel specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + *
+     * RAPID channel is offered on an early access basis for customers who want
+     * to test new releases.
+     *
+     * WARNING: Versions available in the RAPID Channel may be subject to
+     * unresolved issues with no known workaround and are not subject to any
+     * SLAs.
+     * 
+ * + * RAPID = 1; + */ + RAPID(1), + /** + *
+     * Clusters subscribed to REGULAR receive versions that are considered GA
+     * quality. REGULAR is intended for production users who want to take
+     * advantage of new features.
+     * 
+ * + * REGULAR = 2; + */ + REGULAR(2), + /** + *
+     * Clusters subscribed to STABLE receive versions that are known to be
+     * stable and reliable in production.
+     * 
+ * + * STABLE = 3; + */ + STABLE(3), + UNRECOGNIZED(-1), + ; + + /** + *
+     * No channel specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + *
+     * RAPID channel is offered on an early access basis for customers who want
+     * to test new releases.
+     *
+     * WARNING: Versions available in the RAPID Channel may be subject to
+     * unresolved issues with no known workaround and are not subject to any
+     * SLAs.
+     * 
+ * + * RAPID = 1; + */ + public static final int RAPID_VALUE = 1; + /** + *
+     * Clusters subscribed to REGULAR receive versions that are considered GA
+     * quality. REGULAR is intended for production users who want to take
+     * advantage of new features.
+     * 
+ * + * REGULAR = 2; + */ + public static final int REGULAR_VALUE = 2; + /** + *
+     * Clusters subscribed to STABLE receive versions that are known to be
+     * stable and reliable in production.
+     * 
+ * + * STABLE = 3; + */ + public static final int STABLE_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Channel valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Channel forNumber(int value) { + switch (value) { + case 0: return UNSPECIFIED; + case 1: return RAPID; + case 2: return REGULAR; + case 3: return STABLE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Channel> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Channel findValueByNumber(int number) { + return Channel.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.ReleaseChannel.getDescriptor().getEnumTypes().get(0); + } + + private static final Channel[] VALUES = values(); + + public static Channel valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Channel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.ReleaseChannel.Channel) + } + + public static final int CHANNEL_FIELD_NUMBER = 1; + private int channel_ = 0; + /** + *
+   * channel specifies which release channel the cluster is subscribed to.
+   * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * @return The enum numeric value on the wire for channel. + */ + @java.lang.Override public int getChannelValue() { + return channel_; + } + /** + *
+   * channel specifies which release channel the cluster is subscribed to.
+   * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * @return The channel. + */ + @java.lang.Override public com.google.container.v1.ReleaseChannel.Channel getChannel() { + com.google.container.v1.ReleaseChannel.Channel result = com.google.container.v1.ReleaseChannel.Channel.forNumber(channel_); + return result == null ? com.google.container.v1.ReleaseChannel.Channel.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (channel_ != com.google.container.v1.ReleaseChannel.Channel.UNSPECIFIED.getNumber()) { + output.writeEnum(1, channel_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (channel_ != com.google.container.v1.ReleaseChannel.Channel.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, channel_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.ReleaseChannel)) { + return super.equals(obj); + } + com.google.container.v1.ReleaseChannel other = (com.google.container.v1.ReleaseChannel) obj; + + if (channel_ != other.channel_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ReleaseChannel parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ReleaseChannel parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ReleaseChannel parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ReleaseChannel parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ReleaseChannel parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ReleaseChannel parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ReleaseChannel parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.ReleaseChannel parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.ReleaseChannel parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.ReleaseChannel parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.ReleaseChannel parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.ReleaseChannel parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.ReleaseChannel prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ReleaseChannel indicates which release channel a cluster is
+   * subscribed to. Release channels are arranged in order of risk.
+   *
+   * When a cluster is subscribed to a release channel, Google maintains
+   * both the master version and the node version. Node auto-upgrade
+   * defaults to true and cannot be disabled.
+   * 
+ * + * Protobuf type {@code google.container.v1.ReleaseChannel} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ReleaseChannel) + com.google.container.v1.ReleaseChannelOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ReleaseChannel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ReleaseChannel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ReleaseChannel.class, com.google.container.v1.ReleaseChannel.Builder.class); + } + + // Construct using com.google.container.v1.ReleaseChannel.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + channel_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ReleaseChannel_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ReleaseChannel getDefaultInstanceForType() { + return com.google.container.v1.ReleaseChannel.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ReleaseChannel build() { + com.google.container.v1.ReleaseChannel result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ReleaseChannel buildPartial() { + com.google.container.v1.ReleaseChannel result = new com.google.container.v1.ReleaseChannel(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.ReleaseChannel result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.channel_ = channel_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ReleaseChannel) { + return mergeFrom((com.google.container.v1.ReleaseChannel)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ReleaseChannel other) { + if (other == com.google.container.v1.ReleaseChannel.getDefaultInstance()) return this; + if (other.channel_ != 0) { + setChannelValue(other.getChannelValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + channel_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int channel_ = 0; + /** + *
+     * channel specifies which release channel the cluster is subscribed to.
+     * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * @return The enum numeric value on the wire for channel. + */ + @java.lang.Override public int getChannelValue() { + return channel_; + } + /** + *
+     * channel specifies which release channel the cluster is subscribed to.
+     * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * @param value The enum numeric value on the wire for channel to set. + * @return This builder for chaining. + */ + public Builder setChannelValue(int value) { + channel_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * channel specifies which release channel the cluster is subscribed to.
+     * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * @return The channel. + */ + @java.lang.Override + public com.google.container.v1.ReleaseChannel.Channel getChannel() { + com.google.container.v1.ReleaseChannel.Channel result = com.google.container.v1.ReleaseChannel.Channel.forNumber(channel_); + return result == null ? com.google.container.v1.ReleaseChannel.Channel.UNRECOGNIZED : result; + } + /** + *
+     * channel specifies which release channel the cluster is subscribed to.
+     * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * @param value The channel to set. + * @return This builder for chaining. + */ + public Builder setChannel(com.google.container.v1.ReleaseChannel.Channel value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + channel_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * channel specifies which release channel the cluster is subscribed to.
+     * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * @return This builder for chaining. + */ + public Builder clearChannel() { + bitField0_ = (bitField0_ & ~0x00000001); + channel_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.ReleaseChannel) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ReleaseChannel) + private static final com.google.container.v1.ReleaseChannel DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.ReleaseChannel(); + } + + public static com.google.container.v1.ReleaseChannel getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReleaseChannel parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.ReleaseChannel getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReleaseChannelOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReleaseChannelOrBuilder.java new file mode 100644 index 000000000000..ce760d03efd0 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReleaseChannelOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface ReleaseChannelOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ReleaseChannel) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * channel specifies which release channel the cluster is subscribed to.
+   * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * @return The enum numeric value on the wire for channel. + */ + int getChannelValue(); + /** + *
+   * channel specifies which release channel the cluster is subscribed to.
+   * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * @return The channel. + */ + com.google.container.v1.ReleaseChannel.Channel getChannel(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReservationAffinity.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReservationAffinity.java new file mode 100644 index 000000000000..5dd9f0e53ee4 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReservationAffinity.java @@ -0,0 +1,1130 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+ * is the configuration of desired reservation which instances could take
+ * capacity from.
+ * 
+ * + * Protobuf type {@code google.container.v1.ReservationAffinity} + */ +public final class ReservationAffinity extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.ReservationAffinity) + ReservationAffinityOrBuilder { +private static final long serialVersionUID = 0L; + // Use ReservationAffinity.newBuilder() to construct. + private ReservationAffinity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ReservationAffinity() { + consumeReservationType_ = 0; + key_ = ""; + values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ReservationAffinity(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ReservationAffinity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ReservationAffinity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ReservationAffinity.class, com.google.container.v1.ReservationAffinity.Builder.class); + } + + /** + *
+   * Indicates whether to consume capacity from a reservation or not.
+   * 
+ * + * Protobuf enum {@code google.container.v1.ReservationAffinity.Type} + */ + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Default value. This should not be used.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + *
+     * Do not consume from any reserved capacity.
+     * 
+ * + * NO_RESERVATION = 1; + */ + NO_RESERVATION(1), + /** + *
+     * Consume any reservation available.
+     * 
+ * + * ANY_RESERVATION = 2; + */ + ANY_RESERVATION(2), + /** + *
+     * Must consume from a specific reservation. Must specify key value fields
+     * for specifying the reservations.
+     * 
+ * + * SPECIFIC_RESERVATION = 3; + */ + SPECIFIC_RESERVATION(3), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Default value. This should not be used.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + *
+     * Do not consume from any reserved capacity.
+     * 
+ * + * NO_RESERVATION = 1; + */ + public static final int NO_RESERVATION_VALUE = 1; + /** + *
+     * Consume any reservation available.
+     * 
+ * + * ANY_RESERVATION = 2; + */ + public static final int ANY_RESERVATION_VALUE = 2; + /** + *
+     * Must consume from a specific reservation. Must specify key value fields
+     * for specifying the reservations.
+     * 
+ * + * SPECIFIC_RESERVATION = 3; + */ + public static final int SPECIFIC_RESERVATION_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Type forNumber(int value) { + switch (value) { + case 0: return UNSPECIFIED; + case 1: return NO_RESERVATION; + case 2: return ANY_RESERVATION; + case 3: return SPECIFIC_RESERVATION; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.ReservationAffinity.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.ReservationAffinity.Type) + } + + public static final int CONSUME_RESERVATION_TYPE_FIELD_NUMBER = 1; + private int consumeReservationType_ = 0; + /** + *
+   * Corresponds to the type of reservation consumption.
+   * 
+ * + * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; + * @return The enum numeric value on the wire for consumeReservationType. + */ + @java.lang.Override public int getConsumeReservationTypeValue() { + return consumeReservationType_; + } + /** + *
+   * Corresponds to the type of reservation consumption.
+   * 
+ * + * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; + * @return The consumeReservationType. + */ + @java.lang.Override public com.google.container.v1.ReservationAffinity.Type getConsumeReservationType() { + com.google.container.v1.ReservationAffinity.Type result = com.google.container.v1.ReservationAffinity.Type.forNumber(consumeReservationType_); + return result == null ? com.google.container.v1.ReservationAffinity.Type.UNRECOGNIZED : result; + } + + public static final int KEY_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; + /** + *
+   * Corresponds to the label key of a reservation resource. To target a
+   * SPECIFIC_RESERVATION by name, specify
+   * "compute.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
+   * "compute.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; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * Corresponds to the label value(s) of reservation resource(s).
+   * 
+ * + * repeated string values = 3; + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList + getValuesList() { + return values_; + } + /** + *
+   * Corresponds to the label value(s) of reservation resource(s).
+   * 
+ * + * repeated string values = 3; + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + *
+   * Corresponds to the label value(s) of reservation resource(s).
+   * 
+ * + * repeated string values = 3; + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + *
+   * Corresponds to the label value(s) of reservation resource(s).
+   * 
+ * + * repeated string values = 3; + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString + getValuesBytes(int index) { + return values_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (consumeReservationType_ != com.google.container.v1.ReservationAffinity.Type.UNSPECIFIED.getNumber()) { + output.writeEnum(1, consumeReservationType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { + 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)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (consumeReservationType_ != com.google.container.v1.ReservationAffinity.Type.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, consumeReservationType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { + 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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.ReservationAffinity)) { + return super.equals(obj); + } + com.google.container.v1.ReservationAffinity other = (com.google.container.v1.ReservationAffinity) obj; + + if (consumeReservationType_ != other.consumeReservationType_) return false; + if (!getKey() + .equals(other.getKey())) return false; + if (!getValuesList() + .equals(other.getValuesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ReservationAffinity parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ReservationAffinity parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ReservationAffinity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ReservationAffinity parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ReservationAffinity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ReservationAffinity parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ReservationAffinity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.ReservationAffinity parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.ReservationAffinity parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.ReservationAffinity parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.ReservationAffinity parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.ReservationAffinity parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.ReservationAffinity prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
+   * is the configuration of desired reservation which instances could take
+   * capacity from.
+   * 
+ * + * Protobuf type {@code google.container.v1.ReservationAffinity} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ReservationAffinity) + com.google.container.v1.ReservationAffinityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ReservationAffinity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ReservationAffinity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ReservationAffinity.class, com.google.container.v1.ReservationAffinity.Builder.class); + } + + // Construct using com.google.container.v1.ReservationAffinity.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + consumeReservationType_ = 0; + key_ = ""; + values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ReservationAffinity_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ReservationAffinity getDefaultInstanceForType() { + return com.google.container.v1.ReservationAffinity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ReservationAffinity build() { + com.google.container.v1.ReservationAffinity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ReservationAffinity buildPartial() { + com.google.container.v1.ReservationAffinity result = new com.google.container.v1.ReservationAffinity(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.ReservationAffinity result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.consumeReservationType_ = consumeReservationType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.key_ = key_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + values_.makeImmutable(); + result.values_ = values_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ReservationAffinity) { + return mergeFrom((com.google.container.v1.ReservationAffinity)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ReservationAffinity other) { + if (other == com.google.container.v1.ReservationAffinity.getDefaultInstance()) return this; + if (other.consumeReservationType_ != 0) { + setConsumeReservationTypeValue(other.getConsumeReservationTypeValue()); + } + if (!other.getKey().isEmpty()) { + key_ = other.key_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ |= 0x00000004; + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + consumeReservationType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + key_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureValuesIsMutable(); + values_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int consumeReservationType_ = 0; + /** + *
+     * Corresponds to the type of reservation consumption.
+     * 
+ * + * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; + * @return The enum numeric value on the wire for consumeReservationType. + */ + @java.lang.Override public int getConsumeReservationTypeValue() { + return consumeReservationType_; + } + /** + *
+     * Corresponds to the type of reservation consumption.
+     * 
+ * + * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; + * @param value The enum numeric value on the wire for consumeReservationType to set. + * @return This builder for chaining. + */ + public Builder setConsumeReservationTypeValue(int value) { + consumeReservationType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Corresponds to the type of reservation consumption.
+     * 
+ * + * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; + * @return The consumeReservationType. + */ + @java.lang.Override + public com.google.container.v1.ReservationAffinity.Type getConsumeReservationType() { + com.google.container.v1.ReservationAffinity.Type result = com.google.container.v1.ReservationAffinity.Type.forNumber(consumeReservationType_); + return result == null ? com.google.container.v1.ReservationAffinity.Type.UNRECOGNIZED : result; + } + /** + *
+     * Corresponds to the type of reservation consumption.
+     * 
+ * + * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; + * @param value The consumeReservationType to set. + * @return This builder for chaining. + */ + public Builder setConsumeReservationType(com.google.container.v1.ReservationAffinity.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + consumeReservationType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Corresponds to the type of reservation consumption.
+     * 
+ * + * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; + * @return This builder for chaining. + */ + public Builder clearConsumeReservationType() { + bitField0_ = (bitField0_ & ~0x00000001); + 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
+     * "compute.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
+     * "compute.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
+     * "compute.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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Corresponds to the label key of a reservation resource. To target a
+     * SPECIFIC_RESERVATION by name, specify
+     * "compute.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(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Corresponds to the label key of a reservation resource. To target a
+     * SPECIFIC_RESERVATION by name, specify
+     * "compute.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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureValuesIsMutable() { + if (!values_.isModifiable()) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + } + bitField0_ |= 0x00000004; + } + /** + *
+     * 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() { + values_.makeImmutable(); + 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); + } + /** + *
+     * 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); + bitField0_ |= 0x00000004; + 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); + bitField0_ |= 0x00000004; + 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_); + bitField0_ |= 0x00000004; + 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.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; + 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); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.ReservationAffinity) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ReservationAffinity) + private static final com.google.container.v1.ReservationAffinity DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.ReservationAffinity(); + } + + public static com.google.container.v1.ReservationAffinity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReservationAffinity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.ReservationAffinity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReservationAffinityOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReservationAffinityOrBuilder.java new file mode 100644 index 000000000000..d95f4886621c --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReservationAffinityOrBuilder.java @@ -0,0 +1,96 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface ReservationAffinityOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ReservationAffinity) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Corresponds to the type of reservation consumption.
+   * 
+ * + * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; + * @return The enum numeric value on the wire for consumeReservationType. + */ + int getConsumeReservationTypeValue(); + /** + *
+   * Corresponds to the type of reservation consumption.
+   * 
+ * + * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; + * @return The consumeReservationType. + */ + com.google.container.v1.ReservationAffinity.Type getConsumeReservationType(); + + /** + *
+   * Corresponds to the label key of a reservation resource. To target a
+   * SPECIFIC_RESERVATION by name, specify
+   * "compute.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
+   * "compute.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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLabels.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLabels.java new file mode 100644 index 000000000000..a42744b897cb --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLabels.java @@ -0,0 +1,739 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Collection of [GCP
+ * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
+ * 
+ * + * Protobuf type {@code google.container.v1.ResourceLabels} + */ +public final class ResourceLabels extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.ResourceLabels) + ResourceLabelsOrBuilder { +private static final long serialVersionUID = 0L; + // Use ResourceLabels.newBuilder() to construct. + private ResourceLabels(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResourceLabels() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ResourceLabels(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ResourceLabels_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + 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.v1.ClusterServiceProto.internal_static_google_container_v1_ResourceLabels_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ResourceLabels.class, com.google.container.v1.ResourceLabels.Builder.class); + } + + public static final int LABELS_FIELD_NUMBER = 1; + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ResourceLabels_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+   * Map of node label keys and node label values.
+   * 
+ * + * map<string, string> labels = 1; + */ + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+   * Map of node label keys and node label values.
+   * 
+ * + * map<string, string> labels = 1; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+   * Map of node label keys and node label values.
+   * 
+ * + * map<string, string> labels = 1; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * Map of node label keys and node label values.
+   * 
+ * + * map<string, string> labels = 1; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().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, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 1); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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(1, labels__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.ResourceLabels)) { + return super.equals(obj); + } + com.google.container.v1.ResourceLabels other = (com.google.container.v1.ResourceLabels) obj; + + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ResourceLabels parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ResourceLabels parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ResourceLabels parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ResourceLabels parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ResourceLabels parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ResourceLabels parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ResourceLabels parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.ResourceLabels parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.ResourceLabels parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.ResourceLabels parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.ResourceLabels parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.ResourceLabels parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.ResourceLabels prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Collection of [GCP
+   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
+   * 
+ * + * Protobuf type {@code google.container.v1.ResourceLabels} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ResourceLabels) + com.google.container.v1.ResourceLabelsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ResourceLabels_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 1: + 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.v1.ClusterServiceProto.internal_static_google_container_v1_ResourceLabels_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ResourceLabels.class, com.google.container.v1.ResourceLabels.Builder.class); + } + + // Construct using com.google.container.v1.ResourceLabels.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableLabels().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ResourceLabels_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ResourceLabels getDefaultInstanceForType() { + return com.google.container.v1.ResourceLabels.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ResourceLabels build() { + com.google.container.v1.ResourceLabels result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ResourceLabels buildPartial() { + com.google.container.v1.ResourceLabels result = new com.google.container.v1.ResourceLabels(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.ResourceLabels result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ResourceLabels) { + return mergeFrom((com.google.container.v1.ResourceLabels)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ResourceLabels other) { + if (other == com.google.container.v1.ResourceLabels.getDefaultInstance()) return this; + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); + bitField0_ |= 0x00000001; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000001; + onChanged(); + return labels_; + } + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+     * Map of node label keys and node label values.
+     * 
+ * + * map<string, string> labels = 1; + */ + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+     * Map of node label keys and node label values.
+     * 
+ * + * map<string, string> labels = 1; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+     * Map of node label keys and node label values.
+     * 
+ * + * map<string, string> labels = 1; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Map of node label keys and node label values.
+     * 
+ * + * map<string, string> labels = 1; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Map of node label keys and node label values.
+     * 
+ * + * map<string, string> labels = 1; + */ + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableLabels() { + bitField0_ |= 0x00000001; + return internalGetMutableLabels().getMutableMap(); + } + /** + *
+     * Map of node label keys and node label values.
+     * 
+ * + * map<string, string> labels = 1; + */ + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000001; + return this; + } + /** + *
+     * Map of node label keys and node label values.
+     * 
+ * + * map<string, string> labels = 1; + */ + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000001; + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.ResourceLabels) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ResourceLabels) + private static final com.google.container.v1.ResourceLabels DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.ResourceLabels(); + } + + public static com.google.container.v1.ResourceLabels getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceLabels parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.ResourceLabels getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLabelsOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLabelsOrBuilder.java new file mode 100644 index 000000000000..a60efc5500fd --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLabelsOrBuilder.java @@ -0,0 +1,64 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface ResourceLabelsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ResourceLabels) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Map of node label keys and node label values.
+   * 
+ * + * map<string, string> labels = 1; + */ + int getLabelsCount(); + /** + *
+   * Map of node label keys and node label values.
+   * 
+ * + * map<string, string> labels = 1; + */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getLabels(); + /** + *
+   * Map of node label keys and node label values.
+   * 
+ * + * map<string, string> labels = 1; + */ + java.util.Map + getLabelsMap(); + /** + *
+   * Map of node label keys and node label values.
+   * 
+ * + * map<string, string> labels = 1; + */ + /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+   * Map of node label keys and node label values.
+   * 
+ * + * map<string, string> labels = 1; + */ + java.lang.String getLabelsOrThrow( + java.lang.String key); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLimit.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLimit.java new file mode 100644 index 000000000000..5f97c9bed412 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLimit.java @@ -0,0 +1,746 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Contains information about amount of some resource in the cluster.
+ * For memory, value should be in GB.
+ * 
+ * + * Protobuf type {@code google.container.v1.ResourceLimit} + */ +public final class ResourceLimit extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ResourceLimit_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ResourceLimit_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ResourceLimit.class, com.google.container.v1.ResourceLimit.Builder.class); + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + 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_ = 0L; + /** + *
+   * 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_ = 0L; + /** + *
+   * 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceType_); + } + if (minimum_ != 0L) { + output.writeInt64(2, minimum_); + } + if (maximum_ != 0L) { + output.writeInt64(3, maximum_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceType_)) { + 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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.ResourceLimit)) { + return super.equals(obj); + } + com.google.container.v1.ResourceLimit other = (com.google.container.v1.ResourceLimit) obj; + + if (!getResourceType() + .equals(other.getResourceType())) return false; + if (getMinimum() + != other.getMinimum()) return false; + if (getMaximum() + != other.getMaximum()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ResourceLimit parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.ResourceLimit parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.ResourceLimit parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ResourceLimit parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ResourceLimit parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.ResourceLimit parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.ResourceLimit parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.ResourceLimit} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ResourceLimit) + com.google.container.v1.ResourceLimitOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ResourceLimit_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ResourceLimit_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ResourceLimit.class, com.google.container.v1.ResourceLimit.Builder.class); + } + + // Construct using com.google.container.v1.ResourceLimit.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + resourceType_ = ""; + minimum_ = 0L; + maximum_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ResourceLimit_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ResourceLimit getDefaultInstanceForType() { + return com.google.container.v1.ResourceLimit.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ResourceLimit build() { + com.google.container.v1.ResourceLimit result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ResourceLimit buildPartial() { + com.google.container.v1.ResourceLimit result = new com.google.container.v1.ResourceLimit(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.ResourceLimit result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.resourceType_ = resourceType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.minimum_ = minimum_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.maximum_ = maximum_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ResourceLimit) { + return mergeFrom((com.google.container.v1.ResourceLimit)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ResourceLimit other) { + if (other == com.google.container.v1.ResourceLimit.getDefaultInstance()) return this; + if (!other.getResourceType().isEmpty()) { + resourceType_ = other.resourceType_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getMinimum() != 0L) { + setMinimum(other.getMinimum()); + } + if (other.getMaximum() != 0L) { + setMaximum(other.getMaximum()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + resourceType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + minimum_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + maximum_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Minimum amount of the resource in the cluster.
+     * 
+ * + * int64 minimum = 2; + * @return This builder for chaining. + */ + public Builder clearMinimum() { + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Maximum amount of the resource in the cluster.
+     * 
+ * + * int64 maximum = 3; + * @return This builder for chaining. + */ + public Builder clearMaximum() { + bitField0_ = (bitField0_ & ~0x00000004); + 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.v1.ResourceLimit) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ResourceLimit) + private static final com.google.container.v1.ResourceLimit DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.ResourceLimit(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.ResourceLimit getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLimitOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLimitOrBuilder.java new file mode 100644 index 000000000000..1e46fadaf10f --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLimitOrBuilder.java @@ -0,0 +1,50 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface ResourceLimitOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceManagerTags.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceManagerTags.java new file mode 100644 index 000000000000..b38d8f731181 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceManagerTags.java @@ -0,0 +1,780 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * A map of resource manager tag keys and values to be attached to the nodes
+ * for managing Compute Engine firewalls using Network Firewall Policies.
+ * Tags must be according to specifications in
+ * https://cloud.google.com/vpc/docs/tags-firewalls-overview#specifications.
+ * A maximum of 5 tag key-value pairs can be specified.
+ * Existing tags will be replaced with new values.
+ * 
+ * + * Protobuf type {@code google.container.v1.ResourceManagerTags} + */ +public final class ResourceManagerTags extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.ResourceManagerTags) + ResourceManagerTagsOrBuilder { +private static final long serialVersionUID = 0L; + // Use ResourceManagerTags.newBuilder() to construct. + private ResourceManagerTags(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResourceManagerTags() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ResourceManagerTags(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ResourceManagerTags_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetTags(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ResourceManagerTags_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ResourceManagerTags.class, com.google.container.v1.ResourceManagerTags.Builder.class); + } + + public static final int TAGS_FIELD_NUMBER = 1; + private static final class TagsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ResourceManagerTags_TagsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> tags_; + private com.google.protobuf.MapField + internalGetTags() { + if (tags_ == null) { + return com.google.protobuf.MapField.emptyMapField( + TagsDefaultEntryHolder.defaultEntry); + } + return tags_; + } + public int getTagsCount() { + return internalGetTags().getMap().size(); + } + /** + *
+   * TagKeyValue must be in one of the following formats ([KEY]=[VALUE])
+   * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
+   * 2. `{org_id}/{tag_key_name}={tag_value_name}`
+   * 3. `{project_id}/{tag_key_name}={tag_value_name}`
+   * 
+ * + * map<string, string> tags = 1; + */ + @java.lang.Override + public boolean containsTags( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetTags().getMap().containsKey(key); + } + /** + * Use {@link #getTagsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTags() { + return getTagsMap(); + } + /** + *
+   * TagKeyValue must be in one of the following formats ([KEY]=[VALUE])
+   * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
+   * 2. `{org_id}/{tag_key_name}={tag_value_name}`
+   * 3. `{project_id}/{tag_key_name}={tag_value_name}`
+   * 
+ * + * map<string, string> tags = 1; + */ + @java.lang.Override + public java.util.Map getTagsMap() { + return internalGetTags().getMap(); + } + /** + *
+   * TagKeyValue must be in one of the following formats ([KEY]=[VALUE])
+   * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
+   * 2. `{org_id}/{tag_key_name}={tag_value_name}`
+   * 3. `{project_id}/{tag_key_name}={tag_value_name}`
+   * 
+ * + * map<string, string> tags = 1; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * TagKeyValue must be in one of the following formats ([KEY]=[VALUE])
+   * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
+   * 2. `{org_id}/{tag_key_name}={tag_value_name}`
+   * 3. `{project_id}/{tag_key_name}={tag_value_name}`
+   * 
+ * + * map<string, string> tags = 1; + */ + @java.lang.Override + public java.lang.String getTagsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetTags().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, + internalGetTags(), + TagsDefaultEntryHolder.defaultEntry, + 1); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetTags().getMap().entrySet()) { + com.google.protobuf.MapEntry + tags__ = TagsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, tags__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.ResourceManagerTags)) { + return super.equals(obj); + } + com.google.container.v1.ResourceManagerTags other = (com.google.container.v1.ResourceManagerTags) obj; + + if (!internalGetTags().equals( + other.internalGetTags())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetTags().getMap().isEmpty()) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetTags().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ResourceManagerTags parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ResourceManagerTags parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ResourceManagerTags parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ResourceManagerTags parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ResourceManagerTags parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ResourceManagerTags parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ResourceManagerTags parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.ResourceManagerTags parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.ResourceManagerTags parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.ResourceManagerTags parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.ResourceManagerTags parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.ResourceManagerTags parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.ResourceManagerTags prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new 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 map of resource manager tag keys and values to be attached to the nodes
+   * for managing Compute Engine firewalls using Network Firewall Policies.
+   * Tags must be according to specifications in
+   * https://cloud.google.com/vpc/docs/tags-firewalls-overview#specifications.
+   * A maximum of 5 tag key-value pairs can be specified.
+   * Existing tags will be replaced with new values.
+   * 
+ * + * Protobuf type {@code google.container.v1.ResourceManagerTags} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ResourceManagerTags) + com.google.container.v1.ResourceManagerTagsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ResourceManagerTags_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetTags(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetMutableTags(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ResourceManagerTags_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ResourceManagerTags.class, com.google.container.v1.ResourceManagerTags.Builder.class); + } + + // Construct using com.google.container.v1.ResourceManagerTags.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableTags().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ResourceManagerTags_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ResourceManagerTags getDefaultInstanceForType() { + return com.google.container.v1.ResourceManagerTags.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ResourceManagerTags build() { + com.google.container.v1.ResourceManagerTags result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ResourceManagerTags buildPartial() { + com.google.container.v1.ResourceManagerTags result = new com.google.container.v1.ResourceManagerTags(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.ResourceManagerTags result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tags_ = internalGetTags(); + result.tags_.makeImmutable(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ResourceManagerTags) { + return mergeFrom((com.google.container.v1.ResourceManagerTags)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ResourceManagerTags other) { + if (other == com.google.container.v1.ResourceManagerTags.getDefaultInstance()) return this; + internalGetMutableTags().mergeFrom( + other.internalGetTags()); + bitField0_ |= 0x00000001; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.MapEntry + tags__ = input.readMessage( + TagsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableTags().getMutableMap().put( + tags__.getKey(), tags__.getValue()); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> tags_; + private com.google.protobuf.MapField + internalGetTags() { + if (tags_ == null) { + return com.google.protobuf.MapField.emptyMapField( + TagsDefaultEntryHolder.defaultEntry); + } + return tags_; + } + private com.google.protobuf.MapField + internalGetMutableTags() { + if (tags_ == null) { + tags_ = com.google.protobuf.MapField.newMapField( + TagsDefaultEntryHolder.defaultEntry); + } + if (!tags_.isMutable()) { + tags_ = tags_.copy(); + } + bitField0_ |= 0x00000001; + onChanged(); + return tags_; + } + public int getTagsCount() { + return internalGetTags().getMap().size(); + } + /** + *
+     * TagKeyValue must be in one of the following formats ([KEY]=[VALUE])
+     * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
+     * 2. `{org_id}/{tag_key_name}={tag_value_name}`
+     * 3. `{project_id}/{tag_key_name}={tag_value_name}`
+     * 
+ * + * map<string, string> tags = 1; + */ + @java.lang.Override + public boolean containsTags( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetTags().getMap().containsKey(key); + } + /** + * Use {@link #getTagsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTags() { + return getTagsMap(); + } + /** + *
+     * TagKeyValue must be in one of the following formats ([KEY]=[VALUE])
+     * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
+     * 2. `{org_id}/{tag_key_name}={tag_value_name}`
+     * 3. `{project_id}/{tag_key_name}={tag_value_name}`
+     * 
+ * + * map<string, string> tags = 1; + */ + @java.lang.Override + public java.util.Map getTagsMap() { + return internalGetTags().getMap(); + } + /** + *
+     * TagKeyValue must be in one of the following formats ([KEY]=[VALUE])
+     * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
+     * 2. `{org_id}/{tag_key_name}={tag_value_name}`
+     * 3. `{project_id}/{tag_key_name}={tag_value_name}`
+     * 
+ * + * map<string, string> tags = 1; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * TagKeyValue must be in one of the following formats ([KEY]=[VALUE])
+     * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
+     * 2. `{org_id}/{tag_key_name}={tag_value_name}`
+     * 3. `{project_id}/{tag_key_name}={tag_value_name}`
+     * 
+ * + * map<string, string> tags = 1; + */ + @java.lang.Override + public java.lang.String getTagsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearTags() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableTags().getMutableMap() + .clear(); + return this; + } + /** + *
+     * TagKeyValue must be in one of the following formats ([KEY]=[VALUE])
+     * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
+     * 2. `{org_id}/{tag_key_name}={tag_value_name}`
+     * 3. `{project_id}/{tag_key_name}={tag_value_name}`
+     * 
+ * + * map<string, string> tags = 1; + */ + public Builder removeTags( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableTags().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableTags() { + bitField0_ |= 0x00000001; + return internalGetMutableTags().getMutableMap(); + } + /** + *
+     * TagKeyValue must be in one of the following formats ([KEY]=[VALUE])
+     * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
+     * 2. `{org_id}/{tag_key_name}={tag_value_name}`
+     * 3. `{project_id}/{tag_key_name}={tag_value_name}`
+     * 
+ * + * map<string, string> tags = 1; + */ + public Builder putTags( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableTags().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000001; + return this; + } + /** + *
+     * TagKeyValue must be in one of the following formats ([KEY]=[VALUE])
+     * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
+     * 2. `{org_id}/{tag_key_name}={tag_value_name}`
+     * 3. `{project_id}/{tag_key_name}={tag_value_name}`
+     * 
+ * + * map<string, string> tags = 1; + */ + public Builder putAllTags( + java.util.Map values) { + internalGetMutableTags().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000001; + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.ResourceManagerTags) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ResourceManagerTags) + private static final com.google.container.v1.ResourceManagerTags DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.ResourceManagerTags(); + } + + public static com.google.container.v1.ResourceManagerTags getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceManagerTags parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.ResourceManagerTags getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceManagerTagsOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceManagerTagsOrBuilder.java new file mode 100644 index 000000000000..3691cb00bc2a --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceManagerTagsOrBuilder.java @@ -0,0 +1,79 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface ResourceManagerTagsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ResourceManagerTags) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * TagKeyValue must be in one of the following formats ([KEY]=[VALUE])
+   * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
+   * 2. `{org_id}/{tag_key_name}={tag_value_name}`
+   * 3. `{project_id}/{tag_key_name}={tag_value_name}`
+   * 
+ * + * map<string, string> tags = 1; + */ + int getTagsCount(); + /** + *
+   * TagKeyValue must be in one of the following formats ([KEY]=[VALUE])
+   * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
+   * 2. `{org_id}/{tag_key_name}={tag_value_name}`
+   * 3. `{project_id}/{tag_key_name}={tag_value_name}`
+   * 
+ * + * map<string, string> tags = 1; + */ + boolean containsTags( + java.lang.String key); + /** + * Use {@link #getTagsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getTags(); + /** + *
+   * TagKeyValue must be in one of the following formats ([KEY]=[VALUE])
+   * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
+   * 2. `{org_id}/{tag_key_name}={tag_value_name}`
+   * 3. `{project_id}/{tag_key_name}={tag_value_name}`
+   * 
+ * + * map<string, string> tags = 1; + */ + java.util.Map + getTagsMap(); + /** + *
+   * TagKeyValue must be in one of the following formats ([KEY]=[VALUE])
+   * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
+   * 2. `{org_id}/{tag_key_name}={tag_value_name}`
+   * 3. `{project_id}/{tag_key_name}={tag_value_name}`
+   * 
+ * + * map<string, string> tags = 1; + */ + /* nullable */ +java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+   * TagKeyValue must be in one of the following formats ([KEY]=[VALUE])
+   * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
+   * 2. `{org_id}/{tag_key_name}={tag_value_name}`
+   * 3. `{project_id}/{tag_key_name}={tag_value_name}`
+   * 
+ * + * map<string, string> tags = 1; + */ + java.lang.String getTagsOrThrow( + java.lang.String key); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceUsageExportConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceUsageExportConfig.java new file mode 100644 index 000000000000..f11897247ba1 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceUsageExportConfig.java @@ -0,0 +1,2086 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Configuration for exporting cluster resource usages.
+ * 
+ * + * Protobuf type {@code google.container.v1.ResourceUsageExportConfig} + */ +public final class ResourceUsageExportConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ResourceUsageExportConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ResourceUsageExportConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ResourceUsageExportConfig.class, com.google.container.v1.ResourceUsageExportConfig.Builder.class); + } + + public interface BigQueryDestinationOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.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.v1.ResourceUsageExportConfig.BigQueryDestination} + */ + public static final class BigQueryDestination extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ResourceUsageExportConfig_BigQueryDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ResourceUsageExportConfig_BigQueryDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.class, com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.Builder.class); + } + + public static final int DATASET_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, datasetId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, datasetId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination)) { + return super.equals(obj); + } + com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination other = (com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination) obj; + + if (!getDatasetId() + .equals(other.getDatasetId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.ResourceUsageExportConfig.BigQueryDestination parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.ResourceUsageExportConfig.BigQueryDestination parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.ResourceUsageExportConfig.BigQueryDestination parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.ResourceUsageExportConfig.BigQueryDestination parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.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.v1.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.v1.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.v1.ResourceUsageExportConfig.BigQueryDestination} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ResourceUsageExportConfig.BigQueryDestination) + com.google.container.v1.ResourceUsageExportConfig.BigQueryDestinationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ResourceUsageExportConfig_BigQueryDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ResourceUsageExportConfig_BigQueryDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.class, com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.Builder.class); + } + + // Construct using com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + datasetId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ResourceUsageExportConfig_BigQueryDestination_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination getDefaultInstanceForType() { + return com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination build() { + com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination buildPartial() { + com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination result = new com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.datasetId_ = datasetId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination) { + return mergeFrom((com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination other) { + if (other == com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.getDefaultInstance()) return this; + if (!other.getDatasetId().isEmpty()) { + datasetId_ = other.datasetId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + datasetId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * The ID of a BigQuery Dataset.
+       * 
+ * + * string dataset_id = 1; + * @return This builder for chaining. + */ + public Builder clearDatasetId() { + datasetId_ = getDefaultInstance().getDatasetId(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.ResourceUsageExportConfig.BigQueryDestination) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ResourceUsageExportConfig.BigQueryDestination) + private static final com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ConsumptionMeteringConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.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.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig} + */ + public static final class ConsumptionMeteringConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ResourceUsageExportConfig_ConsumptionMeteringConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ResourceUsageExportConfig_ConsumptionMeteringConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.class, com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+     * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig)) { + return super.equals(obj); + } + com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig other = (com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.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.v1.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.v1.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.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig) + com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ResourceUsageExportConfig_ConsumptionMeteringConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ResourceUsageExportConfig_ConsumptionMeteringConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.class, com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder.class); + } + + // Construct using com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ResourceUsageExportConfig_ConsumptionMeteringConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig getDefaultInstanceForType() { + return com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig build() { + com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig buildPartial() { + com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig result = new com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig) { + return mergeFrom((com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig other) { + if (other == com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig) + private static final com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int BIGQUERY_DESTINATION_FIELD_NUMBER = 1; + private com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigqueryDestination_; + /** + *
+   * Configuration to use BigQuery as usage export destination.
+   * 
+ * + * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + * @return Whether the bigqueryDestination field is set. + */ + @java.lang.Override + public boolean hasBigqueryDestination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Configuration to use BigQuery as usage export destination.
+   * 
+ * + * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + * @return The bigqueryDestination. + */ + @java.lang.Override + public com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination getBigqueryDestination() { + return bigqueryDestination_ == null ? com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.getDefaultInstance() : bigqueryDestination_; + } + /** + *
+   * Configuration to use BigQuery as usage export destination.
+   * 
+ * + * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + */ + @java.lang.Override + public com.google.container.v1.ResourceUsageExportConfig.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder() { + return bigqueryDestination_ == null ? com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.getDefaultInstance() : bigqueryDestination_; + } + + public static final int ENABLE_NETWORK_EGRESS_METERING_FIELD_NUMBER = 2; + private boolean enableNetworkEgressMetering_ = false; + /** + *
+   * 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.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumptionMeteringConfig_; + /** + *
+   * Configuration to enable resource consumption metering.
+   * 
+ * + * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + * @return Whether the consumptionMeteringConfig field is set. + */ + @java.lang.Override + public boolean hasConsumptionMeteringConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * Configuration to enable resource consumption metering.
+   * 
+ * + * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + * @return The consumptionMeteringConfig. + */ + @java.lang.Override + public com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig getConsumptionMeteringConfig() { + return consumptionMeteringConfig_ == null ? com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.getDefaultInstance() : consumptionMeteringConfig_; + } + /** + *
+   * Configuration to enable resource consumption metering.
+   * 
+ * + * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + */ + @java.lang.Override + public com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfigOrBuilder getConsumptionMeteringConfigOrBuilder() { + return consumptionMeteringConfig_ == null ? com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.getDefaultInstance() : consumptionMeteringConfig_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getBigqueryDestination()); + } + if (enableNetworkEgressMetering_ != false) { + output.writeBool(2, enableNetworkEgressMetering_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getConsumptionMeteringConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBigqueryDestination()); + } + if (enableNetworkEgressMetering_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, enableNetworkEgressMetering_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getConsumptionMeteringConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.ResourceUsageExportConfig)) { + return super.equals(obj); + } + com.google.container.v1.ResourceUsageExportConfig other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ResourceUsageExportConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.ResourceUsageExportConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.ResourceUsageExportConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ResourceUsageExportConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ResourceUsageExportConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.ResourceUsageExportConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.ResourceUsageExportConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.ResourceUsageExportConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ResourceUsageExportConfig) + com.google.container.v1.ResourceUsageExportConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ResourceUsageExportConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ResourceUsageExportConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ResourceUsageExportConfig.class, com.google.container.v1.ResourceUsageExportConfig.Builder.class); + } + + // Construct using com.google.container.v1.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) { + getBigqueryDestinationFieldBuilder(); + getConsumptionMeteringConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bigqueryDestination_ = null; + if (bigqueryDestinationBuilder_ != null) { + bigqueryDestinationBuilder_.dispose(); + bigqueryDestinationBuilder_ = null; + } + enableNetworkEgressMetering_ = false; + consumptionMeteringConfig_ = null; + if (consumptionMeteringConfigBuilder_ != null) { + consumptionMeteringConfigBuilder_.dispose(); + consumptionMeteringConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ResourceUsageExportConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ResourceUsageExportConfig getDefaultInstanceForType() { + return com.google.container.v1.ResourceUsageExportConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ResourceUsageExportConfig build() { + com.google.container.v1.ResourceUsageExportConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ResourceUsageExportConfig buildPartial() { + com.google.container.v1.ResourceUsageExportConfig result = new com.google.container.v1.ResourceUsageExportConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.ResourceUsageExportConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.bigqueryDestination_ = bigqueryDestinationBuilder_ == null + ? bigqueryDestination_ + : bigqueryDestinationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.enableNetworkEgressMetering_ = enableNetworkEgressMetering_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.consumptionMeteringConfig_ = consumptionMeteringConfigBuilder_ == null + ? consumptionMeteringConfig_ + : consumptionMeteringConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ResourceUsageExportConfig) { + return mergeFrom((com.google.container.v1.ResourceUsageExportConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ResourceUsageExportConfig other) { + if (other == com.google.container.v1.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.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getBigqueryDestinationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + enableNetworkEgressMetering_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + input.readMessage( + getConsumptionMeteringConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigqueryDestination_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination, com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.Builder, com.google.container.v1.ResourceUsageExportConfig.BigQueryDestinationOrBuilder> bigqueryDestinationBuilder_; + /** + *
+     * Configuration to use BigQuery as usage export destination.
+     * 
+ * + * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + * @return Whether the bigqueryDestination field is set. + */ + public boolean hasBigqueryDestination() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Configuration to use BigQuery as usage export destination.
+     * 
+ * + * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + * @return The bigqueryDestination. + */ + public com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination getBigqueryDestination() { + if (bigqueryDestinationBuilder_ == null) { + return bigqueryDestination_ == null ? com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.getDefaultInstance() : bigqueryDestination_; + } else { + return bigqueryDestinationBuilder_.getMessage(); + } + } + /** + *
+     * Configuration to use BigQuery as usage export destination.
+     * 
+ * + * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + */ + public Builder setBigqueryDestination(com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination value) { + if (bigqueryDestinationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + bigqueryDestination_ = value; + } else { + bigqueryDestinationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Configuration to use BigQuery as usage export destination.
+     * 
+ * + * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + */ + public Builder setBigqueryDestination( + com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.Builder builderForValue) { + if (bigqueryDestinationBuilder_ == null) { + bigqueryDestination_ = builderForValue.build(); + } else { + bigqueryDestinationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Configuration to use BigQuery as usage export destination.
+     * 
+ * + * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + */ + public Builder mergeBigqueryDestination(com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination value) { + if (bigqueryDestinationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + bigqueryDestination_ != null && + bigqueryDestination_ != com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.getDefaultInstance()) { + getBigqueryDestinationBuilder().mergeFrom(value); + } else { + bigqueryDestination_ = value; + } + } else { + bigqueryDestinationBuilder_.mergeFrom(value); + } + if (bigqueryDestination_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+     * Configuration to use BigQuery as usage export destination.
+     * 
+ * + * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + */ + public Builder clearBigqueryDestination() { + bitField0_ = (bitField0_ & ~0x00000001); + bigqueryDestination_ = null; + if (bigqueryDestinationBuilder_ != null) { + bigqueryDestinationBuilder_.dispose(); + bigqueryDestinationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration to use BigQuery as usage export destination.
+     * 
+ * + * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + */ + public com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.Builder getBigqueryDestinationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getBigqueryDestinationFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration to use BigQuery as usage export destination.
+     * 
+ * + * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + */ + public com.google.container.v1.ResourceUsageExportConfig.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder() { + if (bigqueryDestinationBuilder_ != null) { + return bigqueryDestinationBuilder_.getMessageOrBuilder(); + } else { + return bigqueryDestination_ == null ? + com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.getDefaultInstance() : bigqueryDestination_; + } + } + /** + *
+     * Configuration to use BigQuery as usage export destination.
+     * 
+ * + * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination, com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.Builder, com.google.container.v1.ResourceUsageExportConfig.BigQueryDestinationOrBuilder> + getBigqueryDestinationFieldBuilder() { + if (bigqueryDestinationBuilder_ == null) { + bigqueryDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination, com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.Builder, com.google.container.v1.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; + bitField0_ |= 0x00000002; + 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() { + bitField0_ = (bitField0_ & ~0x00000002); + enableNetworkEgressMetering_ = false; + onChanged(); + return this; + } + + private com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumptionMeteringConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig, com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder, com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfigOrBuilder> consumptionMeteringConfigBuilder_; + /** + *
+     * Configuration to enable resource consumption metering.
+     * 
+ * + * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + * @return Whether the consumptionMeteringConfig field is set. + */ + public boolean hasConsumptionMeteringConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * Configuration to enable resource consumption metering.
+     * 
+ * + * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + * @return The consumptionMeteringConfig. + */ + public com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig getConsumptionMeteringConfig() { + if (consumptionMeteringConfigBuilder_ == null) { + return consumptionMeteringConfig_ == null ? com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.getDefaultInstance() : consumptionMeteringConfig_; + } else { + return consumptionMeteringConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configuration to enable resource consumption metering.
+     * 
+ * + * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + */ + public Builder setConsumptionMeteringConfig(com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig value) { + if (consumptionMeteringConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + consumptionMeteringConfig_ = value; + } else { + consumptionMeteringConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Configuration to enable resource consumption metering.
+     * 
+ * + * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + */ + public Builder setConsumptionMeteringConfig( + com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder builderForValue) { + if (consumptionMeteringConfigBuilder_ == null) { + consumptionMeteringConfig_ = builderForValue.build(); + } else { + consumptionMeteringConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Configuration to enable resource consumption metering.
+     * 
+ * + * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + */ + public Builder mergeConsumptionMeteringConfig(com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig value) { + if (consumptionMeteringConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + consumptionMeteringConfig_ != null && + consumptionMeteringConfig_ != com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.getDefaultInstance()) { + getConsumptionMeteringConfigBuilder().mergeFrom(value); + } else { + consumptionMeteringConfig_ = value; + } + } else { + consumptionMeteringConfigBuilder_.mergeFrom(value); + } + if (consumptionMeteringConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+     * Configuration to enable resource consumption metering.
+     * 
+ * + * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + */ + public Builder clearConsumptionMeteringConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + consumptionMeteringConfig_ = null; + if (consumptionMeteringConfigBuilder_ != null) { + consumptionMeteringConfigBuilder_.dispose(); + consumptionMeteringConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration to enable resource consumption metering.
+     * 
+ * + * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + */ + public com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder getConsumptionMeteringConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getConsumptionMeteringConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration to enable resource consumption metering.
+     * 
+ * + * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + */ + public com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfigOrBuilder getConsumptionMeteringConfigOrBuilder() { + if (consumptionMeteringConfigBuilder_ != null) { + return consumptionMeteringConfigBuilder_.getMessageOrBuilder(); + } else { + return consumptionMeteringConfig_ == null ? + com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.getDefaultInstance() : consumptionMeteringConfig_; + } + } + /** + *
+     * Configuration to enable resource consumption metering.
+     * 
+ * + * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig, com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder, com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfigOrBuilder> + getConsumptionMeteringConfigFieldBuilder() { + if (consumptionMeteringConfigBuilder_ == null) { + consumptionMeteringConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig, com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder, com.google.container.v1.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.v1.ResourceUsageExportConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ResourceUsageExportConfig) + private static final com.google.container.v1.ResourceUsageExportConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.ResourceUsageExportConfig(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.ResourceUsageExportConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceUsageExportConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceUsageExportConfigOrBuilder.java new file mode 100644 index 000000000000..fa09d6315834 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceUsageExportConfigOrBuilder.java @@ -0,0 +1,75 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface ResourceUsageExportConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ResourceUsageExportConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Configuration to use BigQuery as usage export destination.
+   * 
+ * + * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + * @return Whether the bigqueryDestination field is set. + */ + boolean hasBigqueryDestination(); + /** + *
+   * Configuration to use BigQuery as usage export destination.
+   * 
+ * + * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + * @return The bigqueryDestination. + */ + com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination getBigqueryDestination(); + /** + *
+   * Configuration to use BigQuery as usage export destination.
+   * 
+ * + * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + */ + com.google.container.v1.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.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + * @return Whether the consumptionMeteringConfig field is set. + */ + boolean hasConsumptionMeteringConfig(); + /** + *
+   * Configuration to enable resource consumption metering.
+   * 
+ * + * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + * @return The consumptionMeteringConfig. + */ + com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig getConsumptionMeteringConfig(); + /** + *
+   * Configuration to enable resource consumption metering.
+   * 
+ * + * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + */ + com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfigOrBuilder getConsumptionMeteringConfigOrBuilder(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java new file mode 100644 index 000000000000..4669069c54f3 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java @@ -0,0 +1,1444 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * 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.v1.RollbackNodePoolUpgradeRequest} + */ +public final class RollbackNodePoolUpgradeRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_RollbackNodePoolUpgradeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_RollbackNodePoolUpgradeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.RollbackNodePoolUpgradeRequest.class, com.google.container.v1.RollbackNodePoolUpgradeRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3838 + * @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; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3838 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3844 + * @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; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3844 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object clusterId_ = ""; + /** + *
+   * Deprecated. The name of the cluster to rollback.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3848 + * @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; + } + } + /** + *
+   * Deprecated. The name of the cluster to rollback.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3848 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object nodePoolId_ = ""; + /** + *
+   * Deprecated. The name of the node pool to rollback.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3852 + * @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; + } + } + /** + *
+   * 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]; + * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3852 + * @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; + @SuppressWarnings("serial") + 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; + } + } + + public static final int RESPECT_PDB_FIELD_NUMBER = 7; + private boolean respectPdb_ = false; + /** + *
+   * Option for rollback to ignore the PodDisruptionBudget.
+   * Default value is false.
+   * 
+ * + * bool respect_pdb = 7; + * @return The respectPdb. + */ + @java.lang.Override + public boolean getRespectPdb() { + return respectPdb_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + if (respectPdb_ != false) { + output.writeBool(7, respectPdb_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } + if (respectPdb_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, respectPdb_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.RollbackNodePoolUpgradeRequest)) { + return super.equals(obj); + } + com.google.container.v1.RollbackNodePoolUpgradeRequest other = (com.google.container.v1.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 (getRespectPdb() + != other.getRespectPdb()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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 = (37 * hash) + RESPECT_PDB_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRespectPdb()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.RollbackNodePoolUpgradeRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.RollbackNodePoolUpgradeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.RollbackNodePoolUpgradeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.RollbackNodePoolUpgradeRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.RollbackNodePoolUpgradeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.RollbackNodePoolUpgradeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.RollbackNodePoolUpgradeRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.RollbackNodePoolUpgradeRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.RollbackNodePoolUpgradeRequest) + com.google.container.v1.RollbackNodePoolUpgradeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_RollbackNodePoolUpgradeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_RollbackNodePoolUpgradeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.RollbackNodePoolUpgradeRequest.class, com.google.container.v1.RollbackNodePoolUpgradeRequest.Builder.class); + } + + // Construct using com.google.container.v1.RollbackNodePoolUpgradeRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePoolId_ = ""; + name_ = ""; + respectPdb_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_RollbackNodePoolUpgradeRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1.RollbackNodePoolUpgradeRequest getDefaultInstanceForType() { + return com.google.container.v1.RollbackNodePoolUpgradeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.RollbackNodePoolUpgradeRequest build() { + com.google.container.v1.RollbackNodePoolUpgradeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.RollbackNodePoolUpgradeRequest buildPartial() { + com.google.container.v1.RollbackNodePoolUpgradeRequest result = new com.google.container.v1.RollbackNodePoolUpgradeRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.RollbackNodePoolUpgradeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.nodePoolId_ = nodePoolId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.respectPdb_ = respectPdb_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.RollbackNodePoolUpgradeRequest) { + return mergeFrom((com.google.container.v1.RollbackNodePoolUpgradeRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.RollbackNodePoolUpgradeRequest other) { + if (other == com.google.container.v1.RollbackNodePoolUpgradeRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getRespectPdb() != false) { + setRespectPdb(other.getRespectPdb()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + nodePoolId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 50: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 56: { + respectPdb_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 56 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3838 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3838 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3838 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3838 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3838 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3844 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3844 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3844 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3844 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3844 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to rollback.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3848 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster to rollback.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3848 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster to rollback.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3848 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to rollback.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3848 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to rollback.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3848 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + *
+     * Deprecated. The name of the node pool to rollback.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3852 + * @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; + } + } + /** + *
+     * 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]; + * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3852 + * @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; + } + } + /** + *
+     * 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]; + * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3852 + * @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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool to rollback.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3852 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearNodePoolId() { + nodePoolId_ = getDefaultInstance().getNodePoolId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool to rollback.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3852 + * @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; + bitField0_ |= 0x00000008; + 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; + bitField0_ |= 0x00000010; + 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(); + bitField0_ = (bitField0_ & ~0x00000010); + 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; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private boolean respectPdb_ ; + /** + *
+     * Option for rollback to ignore the PodDisruptionBudget.
+     * Default value is false.
+     * 
+ * + * bool respect_pdb = 7; + * @return The respectPdb. + */ + @java.lang.Override + public boolean getRespectPdb() { + return respectPdb_; + } + /** + *
+     * Option for rollback to ignore the PodDisruptionBudget.
+     * Default value is false.
+     * 
+ * + * bool respect_pdb = 7; + * @param value The respectPdb to set. + * @return This builder for chaining. + */ + public Builder setRespectPdb(boolean value) { + + respectPdb_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Option for rollback to ignore the PodDisruptionBudget.
+     * Default value is false.
+     * 
+ * + * bool respect_pdb = 7; + * @return This builder for chaining. + */ + public Builder clearRespectPdb() { + bitField0_ = (bitField0_ & ~0x00000020); + respectPdb_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.RollbackNodePoolUpgradeRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.RollbackNodePoolUpgradeRequest) + private static final com.google.container.v1.RollbackNodePoolUpgradeRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.RollbackNodePoolUpgradeRequest(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.RollbackNodePoolUpgradeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java new file mode 100644 index 000000000000..b9e2b1c3c5e3 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java @@ -0,0 +1,155 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface RollbackNodePoolUpgradeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.RollbackNodePoolUpgradeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3838 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3838 + * @return The bytes for projectId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3844 + * @return The zone. + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3844 + * @return The bytes for zone. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to rollback.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3848 + * @return The clusterId. + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to rollback.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3848 + * @return The bytes for clusterId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * Deprecated. The name of the node pool to rollback.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3852 + * @return The nodePoolId. + */ + @java.lang.Deprecated java.lang.String getNodePoolId(); + /** + *
+   * Deprecated. The name of the node pool to rollback.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3852 + * @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(); + + /** + *
+   * Option for rollback to ignore the PodDisruptionBudget.
+   * Default value is false.
+   * 
+ * + * bool respect_pdb = 7; + * @return The respectPdb. + */ + boolean getRespectPdb(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SandboxConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SandboxConfig.java new file mode 100644 index 000000000000..3052b89010c3 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SandboxConfig.java @@ -0,0 +1,664 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * SandboxConfig contains configurations of the sandbox to use for the node.
+ * 
+ * + * Protobuf type {@code google.container.v1.SandboxConfig} + */ +public final class SandboxConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.SandboxConfig) + SandboxConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use SandboxConfig.newBuilder() to construct. + private SandboxConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SandboxConfig() { + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SandboxConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SandboxConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SandboxConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SandboxConfig.class, com.google.container.v1.SandboxConfig.Builder.class); + } + + /** + *
+   * Possible types of sandboxes.
+   * 
+ * + * Protobuf enum {@code google.container.v1.SandboxConfig.Type} + */ + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Default value. This should not be used.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + *
+     * Run sandbox using gvisor.
+     * 
+ * + * GVISOR = 1; + */ + GVISOR(1), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Default value. This should not be used.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + *
+     * Run sandbox using gvisor.
+     * 
+ * + * GVISOR = 1; + */ + public static final int GVISOR_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Type forNumber(int value) { + switch (value) { + case 0: return UNSPECIFIED; + case 1: return GVISOR; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.SandboxConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.SandboxConfig.Type) + } + + public static final int TYPE_FIELD_NUMBER = 2; + private int type_ = 0; + /** + *
+   * Type of the sandbox to use for the node.
+   * 
+ * + * .google.container.v1.SandboxConfig.Type type = 2; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override public int getTypeValue() { + return type_; + } + /** + *
+   * Type of the sandbox to use for the node.
+   * 
+ * + * .google.container.v1.SandboxConfig.Type type = 2; + * @return The type. + */ + @java.lang.Override public com.google.container.v1.SandboxConfig.Type getType() { + com.google.container.v1.SandboxConfig.Type result = com.google.container.v1.SandboxConfig.Type.forNumber(type_); + return result == null ? com.google.container.v1.SandboxConfig.Type.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (type_ != com.google.container.v1.SandboxConfig.Type.UNSPECIFIED.getNumber()) { + output.writeEnum(2, type_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ != com.google.container.v1.SandboxConfig.Type.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, type_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.SandboxConfig)) { + return super.equals(obj); + } + com.google.container.v1.SandboxConfig other = (com.google.container.v1.SandboxConfig) obj; + + if (type_ != other.type_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.SandboxConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.SandboxConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.SandboxConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.SandboxConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.SandboxConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.SandboxConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.SandboxConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.SandboxConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.SandboxConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.SandboxConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.SandboxConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.SandboxConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.SandboxConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * SandboxConfig contains configurations of the sandbox to use for the node.
+   * 
+ * + * Protobuf type {@code google.container.v1.SandboxConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.SandboxConfig) + com.google.container.v1.SandboxConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SandboxConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SandboxConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SandboxConfig.class, com.google.container.v1.SandboxConfig.Builder.class); + } + + // Construct using com.google.container.v1.SandboxConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + type_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SandboxConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.SandboxConfig getDefaultInstanceForType() { + return com.google.container.v1.SandboxConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.SandboxConfig build() { + com.google.container.v1.SandboxConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.SandboxConfig buildPartial() { + com.google.container.v1.SandboxConfig result = new com.google.container.v1.SandboxConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.SandboxConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.SandboxConfig) { + return mergeFrom((com.google.container.v1.SandboxConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.SandboxConfig other) { + if (other == com.google.container.v1.SandboxConfig.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 16: { + type_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int type_ = 0; + /** + *
+     * Type of the sandbox to use for the node.
+     * 
+ * + * .google.container.v1.SandboxConfig.Type type = 2; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override public int getTypeValue() { + return type_; + } + /** + *
+     * Type of the sandbox to use for the node.
+     * 
+ * + * .google.container.v1.SandboxConfig.Type type = 2; + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Type of the sandbox to use for the node.
+     * 
+ * + * .google.container.v1.SandboxConfig.Type type = 2; + * @return The type. + */ + @java.lang.Override + public com.google.container.v1.SandboxConfig.Type getType() { + com.google.container.v1.SandboxConfig.Type result = com.google.container.v1.SandboxConfig.Type.forNumber(type_); + return result == null ? com.google.container.v1.SandboxConfig.Type.UNRECOGNIZED : result; + } + /** + *
+     * Type of the sandbox to use for the node.
+     * 
+ * + * .google.container.v1.SandboxConfig.Type type = 2; + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.container.v1.SandboxConfig.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Type of the sandbox to use for the node.
+     * 
+ * + * .google.container.v1.SandboxConfig.Type type = 2; + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.SandboxConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.SandboxConfig) + private static final com.google.container.v1.SandboxConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.SandboxConfig(); + } + + public static com.google.container.v1.SandboxConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SandboxConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.SandboxConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SandboxConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SandboxConfigOrBuilder.java new file mode 100644 index 000000000000..710975c01970 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SandboxConfigOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface SandboxConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.SandboxConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Type of the sandbox to use for the node.
+   * 
+ * + * .google.container.v1.SandboxConfig.Type type = 2; + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + *
+   * Type of the sandbox to use for the node.
+   * 
+ * + * .google.container.v1.SandboxConfig.Type type = 2; + * @return The type. + */ + com.google.container.v1.SandboxConfig.Type getType(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecurityBulletinEvent.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecurityBulletinEvent.java new file mode 100644 index 000000000000..c33214d2816b --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecurityBulletinEvent.java @@ -0,0 +1,2259 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * SecurityBulletinEvent is a notification sent to customers when a security
+ * bulletin has been posted that they are vulnerable to.
+ * 
+ * + * Protobuf type {@code google.container.v1.SecurityBulletinEvent} + */ +public final class SecurityBulletinEvent extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.SecurityBulletinEvent) + SecurityBulletinEventOrBuilder { +private static final long serialVersionUID = 0L; + // Use SecurityBulletinEvent.newBuilder() to construct. + private SecurityBulletinEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SecurityBulletinEvent() { + resourceTypeAffected_ = ""; + bulletinId_ = ""; + cveIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + severity_ = ""; + bulletinUri_ = ""; + briefDescription_ = ""; + affectedSupportedMinors_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + patchedVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + suggestedUpgradeTarget_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SecurityBulletinEvent(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SecurityBulletinEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SecurityBulletinEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SecurityBulletinEvent.class, com.google.container.v1.SecurityBulletinEvent.Builder.class); + } + + public static final int RESOURCE_TYPE_AFFECTED_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object resourceTypeAffected_ = ""; + /** + *
+   * The resource type (node/control plane) that has the vulnerability. Multiple
+   * notifications (1 notification per resource type) will be sent for a
+   * vulnerability that affects > 1 resource type.
+   * 
+ * + * string resource_type_affected = 1; + * @return The resourceTypeAffected. + */ + @java.lang.Override + public java.lang.String getResourceTypeAffected() { + java.lang.Object ref = resourceTypeAffected_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceTypeAffected_ = s; + return s; + } + } + /** + *
+   * The resource type (node/control plane) that has the vulnerability. Multiple
+   * notifications (1 notification per resource type) will be sent for a
+   * vulnerability that affects > 1 resource type.
+   * 
+ * + * string resource_type_affected = 1; + * @return The bytes for resourceTypeAffected. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getResourceTypeAffectedBytes() { + java.lang.Object ref = resourceTypeAffected_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceTypeAffected_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BULLETIN_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object bulletinId_ = ""; + /** + *
+   * The ID of the bulletin corresponding to the vulnerability.
+   * 
+ * + * string bulletin_id = 2; + * @return The bulletinId. + */ + @java.lang.Override + public java.lang.String getBulletinId() { + java.lang.Object ref = bulletinId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bulletinId_ = s; + return s; + } + } + /** + *
+   * The ID of the bulletin corresponding to the vulnerability.
+   * 
+ * + * string bulletin_id = 2; + * @return The bytes for bulletinId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBulletinIdBytes() { + java.lang.Object ref = bulletinId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bulletinId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CVE_IDS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList cveIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * @return A list containing the cveIds. + */ + public com.google.protobuf.ProtocolStringList + getCveIdsList() { + return cveIds_; + } + /** + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * @return The count of cveIds. + */ + public int getCveIdsCount() { + return cveIds_.size(); + } + /** + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * @param index The index of the element to return. + * @return The cveIds at the given index. + */ + public java.lang.String getCveIds(int index) { + return cveIds_.get(index); + } + /** + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * @param index The index of the value to return. + * @return The bytes of the cveIds at the given index. + */ + public com.google.protobuf.ByteString + getCveIdsBytes(int index) { + return cveIds_.getByteString(index); + } + + public static final int SEVERITY_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object severity_ = ""; + /** + *
+   * The severity of this bulletin as it relates to GKE.
+   * 
+ * + * string severity = 4; + * @return The severity. + */ + @java.lang.Override + public java.lang.String getSeverity() { + java.lang.Object ref = severity_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + severity_ = s; + return s; + } + } + /** + *
+   * The severity of this bulletin as it relates to GKE.
+   * 
+ * + * string severity = 4; + * @return The bytes for severity. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSeverityBytes() { + java.lang.Object ref = severity_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + severity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BULLETIN_URI_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object bulletinUri_ = ""; + /** + *
+   * The URI link to the bulletin on the website for more information.
+   * 
+ * + * string bulletin_uri = 5; + * @return The bulletinUri. + */ + @java.lang.Override + public java.lang.String getBulletinUri() { + java.lang.Object ref = bulletinUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bulletinUri_ = s; + return s; + } + } + /** + *
+   * The URI link to the bulletin on the website for more information.
+   * 
+ * + * string bulletin_uri = 5; + * @return The bytes for bulletinUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBulletinUriBytes() { + java.lang.Object ref = bulletinUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bulletinUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BRIEF_DESCRIPTION_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object briefDescription_ = ""; + /** + *
+   * A brief description of the bulletin. See the bulletin pointed to by the
+   * bulletin_uri field for an expanded description.
+   * 
+ * + * string brief_description = 6; + * @return The briefDescription. + */ + @java.lang.Override + public java.lang.String getBriefDescription() { + java.lang.Object ref = briefDescription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + briefDescription_ = s; + return s; + } + } + /** + *
+   * A brief description of the bulletin. See the bulletin pointed to by the
+   * bulletin_uri field for an expanded description.
+   * 
+ * + * string brief_description = 6; + * @return The bytes for briefDescription. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBriefDescriptionBytes() { + java.lang.Object ref = briefDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + briefDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AFFECTED_SUPPORTED_MINORS_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList affectedSupportedMinors_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * @return A list containing the affectedSupportedMinors. + */ + public com.google.protobuf.ProtocolStringList + getAffectedSupportedMinorsList() { + return affectedSupportedMinors_; + } + /** + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * @return The count of affectedSupportedMinors. + */ + public int getAffectedSupportedMinorsCount() { + return affectedSupportedMinors_.size(); + } + /** + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * @param index The index of the element to return. + * @return The affectedSupportedMinors at the given index. + */ + public java.lang.String getAffectedSupportedMinors(int index) { + return affectedSupportedMinors_.get(index); + } + /** + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * @param index The index of the value to return. + * @return The bytes of the affectedSupportedMinors at the given index. + */ + public com.google.protobuf.ByteString + getAffectedSupportedMinorsBytes(int index) { + return affectedSupportedMinors_.getByteString(index); + } + + public static final int PATCHED_VERSIONS_FIELD_NUMBER = 8; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList patchedVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * @return A list containing the patchedVersions. + */ + public com.google.protobuf.ProtocolStringList + getPatchedVersionsList() { + return patchedVersions_; + } + /** + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * @return The count of patchedVersions. + */ + public int getPatchedVersionsCount() { + return patchedVersions_.size(); + } + /** + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * @param index The index of the element to return. + * @return The patchedVersions at the given index. + */ + public java.lang.String getPatchedVersions(int index) { + return patchedVersions_.get(index); + } + /** + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * @param index The index of the value to return. + * @return The bytes of the patchedVersions at the given index. + */ + public com.google.protobuf.ByteString + getPatchedVersionsBytes(int index) { + return patchedVersions_.getByteString(index); + } + + public static final int SUGGESTED_UPGRADE_TARGET_FIELD_NUMBER = 9; + @SuppressWarnings("serial") + private volatile java.lang.Object suggestedUpgradeTarget_ = ""; + /** + *
+   * This represents a version selected from the patched_versions field that
+   * the cluster receiving this notification should most likely want to upgrade
+   * to based on its current version. Note that if this notification is being
+   * received by a given cluster, it means that this version is currently
+   * available as an upgrade target in that cluster's location.
+   * 
+ * + * string suggested_upgrade_target = 9; + * @return The suggestedUpgradeTarget. + */ + @java.lang.Override + public java.lang.String getSuggestedUpgradeTarget() { + java.lang.Object ref = suggestedUpgradeTarget_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + suggestedUpgradeTarget_ = s; + return s; + } + } + /** + *
+   * This represents a version selected from the patched_versions field that
+   * the cluster receiving this notification should most likely want to upgrade
+   * to based on its current version. Note that if this notification is being
+   * received by a given cluster, it means that this version is currently
+   * available as an upgrade target in that cluster's location.
+   * 
+ * + * string suggested_upgrade_target = 9; + * @return The bytes for suggestedUpgradeTarget. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSuggestedUpgradeTargetBytes() { + java.lang.Object ref = suggestedUpgradeTarget_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + suggestedUpgradeTarget_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MANUAL_STEPS_REQUIRED_FIELD_NUMBER = 10; + private boolean manualStepsRequired_ = false; + /** + *
+   * If this field is specified, it means there are manual steps that the user
+   * must take to make their clusters safe.
+   * 
+ * + * bool manual_steps_required = 10; + * @return The manualStepsRequired. + */ + @java.lang.Override + public boolean getManualStepsRequired() { + return manualStepsRequired_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceTypeAffected_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceTypeAffected_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bulletinId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bulletinId_); + } + for (int i = 0; i < cveIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cveIds_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(severity_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, severity_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bulletinUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, bulletinUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(briefDescription_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, briefDescription_); + } + for (int i = 0; i < affectedSupportedMinors_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, affectedSupportedMinors_.getRaw(i)); + } + for (int i = 0; i < patchedVersions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, patchedVersions_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(suggestedUpgradeTarget_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, suggestedUpgradeTarget_); + } + if (manualStepsRequired_ != false) { + output.writeBool(10, manualStepsRequired_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceTypeAffected_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceTypeAffected_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bulletinId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, bulletinId_); + } + { + int dataSize = 0; + for (int i = 0; i < cveIds_.size(); i++) { + dataSize += computeStringSizeNoTag(cveIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getCveIdsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(severity_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, severity_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bulletinUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, bulletinUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(briefDescription_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, briefDescription_); + } + { + int dataSize = 0; + for (int i = 0; i < affectedSupportedMinors_.size(); i++) { + dataSize += computeStringSizeNoTag(affectedSupportedMinors_.getRaw(i)); + } + size += dataSize; + size += 1 * getAffectedSupportedMinorsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < patchedVersions_.size(); i++) { + dataSize += computeStringSizeNoTag(patchedVersions_.getRaw(i)); + } + size += dataSize; + size += 1 * getPatchedVersionsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(suggestedUpgradeTarget_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, suggestedUpgradeTarget_); + } + if (manualStepsRequired_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(10, manualStepsRequired_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.SecurityBulletinEvent)) { + return super.equals(obj); + } + com.google.container.v1.SecurityBulletinEvent other = (com.google.container.v1.SecurityBulletinEvent) obj; + + if (!getResourceTypeAffected() + .equals(other.getResourceTypeAffected())) return false; + if (!getBulletinId() + .equals(other.getBulletinId())) return false; + if (!getCveIdsList() + .equals(other.getCveIdsList())) return false; + if (!getSeverity() + .equals(other.getSeverity())) return false; + if (!getBulletinUri() + .equals(other.getBulletinUri())) return false; + if (!getBriefDescription() + .equals(other.getBriefDescription())) return false; + if (!getAffectedSupportedMinorsList() + .equals(other.getAffectedSupportedMinorsList())) return false; + if (!getPatchedVersionsList() + .equals(other.getPatchedVersionsList())) return false; + if (!getSuggestedUpgradeTarget() + .equals(other.getSuggestedUpgradeTarget())) return false; + if (getManualStepsRequired() + != other.getManualStepsRequired()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_AFFECTED_FIELD_NUMBER; + hash = (53 * hash) + getResourceTypeAffected().hashCode(); + hash = (37 * hash) + BULLETIN_ID_FIELD_NUMBER; + hash = (53 * hash) + getBulletinId().hashCode(); + if (getCveIdsCount() > 0) { + hash = (37 * hash) + CVE_IDS_FIELD_NUMBER; + hash = (53 * hash) + getCveIdsList().hashCode(); + } + hash = (37 * hash) + SEVERITY_FIELD_NUMBER; + hash = (53 * hash) + getSeverity().hashCode(); + hash = (37 * hash) + BULLETIN_URI_FIELD_NUMBER; + hash = (53 * hash) + getBulletinUri().hashCode(); + hash = (37 * hash) + BRIEF_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getBriefDescription().hashCode(); + if (getAffectedSupportedMinorsCount() > 0) { + hash = (37 * hash) + AFFECTED_SUPPORTED_MINORS_FIELD_NUMBER; + hash = (53 * hash) + getAffectedSupportedMinorsList().hashCode(); + } + if (getPatchedVersionsCount() > 0) { + hash = (37 * hash) + PATCHED_VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getPatchedVersionsList().hashCode(); + } + hash = (37 * hash) + SUGGESTED_UPGRADE_TARGET_FIELD_NUMBER; + hash = (53 * hash) + getSuggestedUpgradeTarget().hashCode(); + hash = (37 * hash) + MANUAL_STEPS_REQUIRED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getManualStepsRequired()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.SecurityBulletinEvent parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.SecurityBulletinEvent parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.SecurityBulletinEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.SecurityBulletinEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.SecurityBulletinEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.SecurityBulletinEvent parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.SecurityBulletinEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.SecurityBulletinEvent parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.SecurityBulletinEvent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.SecurityBulletinEvent parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.SecurityBulletinEvent parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.SecurityBulletinEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.SecurityBulletinEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * SecurityBulletinEvent is a notification sent to customers when a security
+   * bulletin has been posted that they are vulnerable to.
+   * 
+ * + * Protobuf type {@code google.container.v1.SecurityBulletinEvent} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.SecurityBulletinEvent) + com.google.container.v1.SecurityBulletinEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SecurityBulletinEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SecurityBulletinEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SecurityBulletinEvent.class, com.google.container.v1.SecurityBulletinEvent.Builder.class); + } + + // Construct using com.google.container.v1.SecurityBulletinEvent.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + resourceTypeAffected_ = ""; + bulletinId_ = ""; + cveIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + severity_ = ""; + bulletinUri_ = ""; + briefDescription_ = ""; + affectedSupportedMinors_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + patchedVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + suggestedUpgradeTarget_ = ""; + manualStepsRequired_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SecurityBulletinEvent_descriptor; + } + + @java.lang.Override + public com.google.container.v1.SecurityBulletinEvent getDefaultInstanceForType() { + return com.google.container.v1.SecurityBulletinEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.SecurityBulletinEvent build() { + com.google.container.v1.SecurityBulletinEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.SecurityBulletinEvent buildPartial() { + com.google.container.v1.SecurityBulletinEvent result = new com.google.container.v1.SecurityBulletinEvent(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.SecurityBulletinEvent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.resourceTypeAffected_ = resourceTypeAffected_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.bulletinId_ = bulletinId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + cveIds_.makeImmutable(); + result.cveIds_ = cveIds_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.severity_ = severity_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.bulletinUri_ = bulletinUri_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.briefDescription_ = briefDescription_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + affectedSupportedMinors_.makeImmutable(); + result.affectedSupportedMinors_ = affectedSupportedMinors_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + patchedVersions_.makeImmutable(); + result.patchedVersions_ = patchedVersions_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.suggestedUpgradeTarget_ = suggestedUpgradeTarget_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.manualStepsRequired_ = manualStepsRequired_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.SecurityBulletinEvent) { + return mergeFrom((com.google.container.v1.SecurityBulletinEvent)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.SecurityBulletinEvent other) { + if (other == com.google.container.v1.SecurityBulletinEvent.getDefaultInstance()) return this; + if (!other.getResourceTypeAffected().isEmpty()) { + resourceTypeAffected_ = other.resourceTypeAffected_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getBulletinId().isEmpty()) { + bulletinId_ = other.bulletinId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.cveIds_.isEmpty()) { + if (cveIds_.isEmpty()) { + cveIds_ = other.cveIds_; + bitField0_ |= 0x00000004; + } else { + ensureCveIdsIsMutable(); + cveIds_.addAll(other.cveIds_); + } + onChanged(); + } + if (!other.getSeverity().isEmpty()) { + severity_ = other.severity_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getBulletinUri().isEmpty()) { + bulletinUri_ = other.bulletinUri_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getBriefDescription().isEmpty()) { + briefDescription_ = other.briefDescription_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.affectedSupportedMinors_.isEmpty()) { + if (affectedSupportedMinors_.isEmpty()) { + affectedSupportedMinors_ = other.affectedSupportedMinors_; + bitField0_ |= 0x00000040; + } else { + ensureAffectedSupportedMinorsIsMutable(); + affectedSupportedMinors_.addAll(other.affectedSupportedMinors_); + } + onChanged(); + } + if (!other.patchedVersions_.isEmpty()) { + if (patchedVersions_.isEmpty()) { + patchedVersions_ = other.patchedVersions_; + bitField0_ |= 0x00000080; + } else { + ensurePatchedVersionsIsMutable(); + patchedVersions_.addAll(other.patchedVersions_); + } + onChanged(); + } + if (!other.getSuggestedUpgradeTarget().isEmpty()) { + suggestedUpgradeTarget_ = other.suggestedUpgradeTarget_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.getManualStepsRequired() != false) { + setManualStepsRequired(other.getManualStepsRequired()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + resourceTypeAffected_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + bulletinId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureCveIdsIsMutable(); + cveIds_.add(s); + break; + } // case 26 + case 34: { + severity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + bulletinUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + briefDescription_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + ensureAffectedSupportedMinorsIsMutable(); + affectedSupportedMinors_.add(s); + break; + } // case 58 + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + ensurePatchedVersionsIsMutable(); + patchedVersions_.add(s); + break; + } // case 66 + case 74: { + suggestedUpgradeTarget_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 80: { + manualStepsRequired_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 80 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object resourceTypeAffected_ = ""; + /** + *
+     * The resource type (node/control plane) that has the vulnerability. Multiple
+     * notifications (1 notification per resource type) will be sent for a
+     * vulnerability that affects > 1 resource type.
+     * 
+ * + * string resource_type_affected = 1; + * @return The resourceTypeAffected. + */ + public java.lang.String getResourceTypeAffected() { + java.lang.Object ref = resourceTypeAffected_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceTypeAffected_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The resource type (node/control plane) that has the vulnerability. Multiple
+     * notifications (1 notification per resource type) will be sent for a
+     * vulnerability that affects > 1 resource type.
+     * 
+ * + * string resource_type_affected = 1; + * @return The bytes for resourceTypeAffected. + */ + public com.google.protobuf.ByteString + getResourceTypeAffectedBytes() { + java.lang.Object ref = resourceTypeAffected_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceTypeAffected_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The resource type (node/control plane) that has the vulnerability. Multiple
+     * notifications (1 notification per resource type) will be sent for a
+     * vulnerability that affects > 1 resource type.
+     * 
+ * + * string resource_type_affected = 1; + * @param value The resourceTypeAffected to set. + * @return This builder for chaining. + */ + public Builder setResourceTypeAffected( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + resourceTypeAffected_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The resource type (node/control plane) that has the vulnerability. Multiple
+     * notifications (1 notification per resource type) will be sent for a
+     * vulnerability that affects > 1 resource type.
+     * 
+ * + * string resource_type_affected = 1; + * @return This builder for chaining. + */ + public Builder clearResourceTypeAffected() { + resourceTypeAffected_ = getDefaultInstance().getResourceTypeAffected(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * The resource type (node/control plane) that has the vulnerability. Multiple
+     * notifications (1 notification per resource type) will be sent for a
+     * vulnerability that affects > 1 resource type.
+     * 
+ * + * string resource_type_affected = 1; + * @param value The bytes for resourceTypeAffected to set. + * @return This builder for chaining. + */ + public Builder setResourceTypeAffectedBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + resourceTypeAffected_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object bulletinId_ = ""; + /** + *
+     * The ID of the bulletin corresponding to the vulnerability.
+     * 
+ * + * string bulletin_id = 2; + * @return The bulletinId. + */ + public java.lang.String getBulletinId() { + java.lang.Object ref = bulletinId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bulletinId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The ID of the bulletin corresponding to the vulnerability.
+     * 
+ * + * string bulletin_id = 2; + * @return The bytes for bulletinId. + */ + public com.google.protobuf.ByteString + getBulletinIdBytes() { + java.lang.Object ref = bulletinId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bulletinId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The ID of the bulletin corresponding to the vulnerability.
+     * 
+ * + * string bulletin_id = 2; + * @param value The bulletinId to set. + * @return This builder for chaining. + */ + public Builder setBulletinId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + bulletinId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The ID of the bulletin corresponding to the vulnerability.
+     * 
+ * + * string bulletin_id = 2; + * @return This builder for chaining. + */ + public Builder clearBulletinId() { + bulletinId_ = getDefaultInstance().getBulletinId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * The ID of the bulletin corresponding to the vulnerability.
+     * 
+ * + * string bulletin_id = 2; + * @param value The bytes for bulletinId to set. + * @return This builder for chaining. + */ + public Builder setBulletinIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + bulletinId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList cveIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureCveIdsIsMutable() { + if (!cveIds_.isModifiable()) { + cveIds_ = new com.google.protobuf.LazyStringArrayList(cveIds_); + } + bitField0_ |= 0x00000004; + } + /** + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * @return A list containing the cveIds. + */ + public com.google.protobuf.ProtocolStringList + getCveIdsList() { + cveIds_.makeImmutable(); + return cveIds_; + } + /** + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * @return The count of cveIds. + */ + public int getCveIdsCount() { + return cveIds_.size(); + } + /** + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * @param index The index of the element to return. + * @return The cveIds at the given index. + */ + public java.lang.String getCveIds(int index) { + return cveIds_.get(index); + } + /** + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * @param index The index of the value to return. + * @return The bytes of the cveIds at the given index. + */ + public com.google.protobuf.ByteString + getCveIdsBytes(int index) { + return cveIds_.getByteString(index); + } + /** + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * @param index The index to set the value at. + * @param value The cveIds to set. + * @return This builder for chaining. + */ + public Builder setCveIds( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureCveIdsIsMutable(); + cveIds_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * @param value The cveIds to add. + * @return This builder for chaining. + */ + public Builder addCveIds( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureCveIdsIsMutable(); + cveIds_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * @param values The cveIds to add. + * @return This builder for chaining. + */ + public Builder addAllCveIds( + java.lang.Iterable values) { + ensureCveIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, cveIds_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * @return This builder for chaining. + */ + public Builder clearCveIds() { + cveIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; + onChanged(); + return this; + } + /** + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * @param value The bytes of the cveIds to add. + * @return This builder for chaining. + */ + public Builder addCveIdsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureCveIdsIsMutable(); + cveIds_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object severity_ = ""; + /** + *
+     * The severity of this bulletin as it relates to GKE.
+     * 
+ * + * string severity = 4; + * @return The severity. + */ + public java.lang.String getSeverity() { + java.lang.Object ref = severity_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + severity_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The severity of this bulletin as it relates to GKE.
+     * 
+ * + * string severity = 4; + * @return The bytes for severity. + */ + public com.google.protobuf.ByteString + getSeverityBytes() { + java.lang.Object ref = severity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + severity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The severity of this bulletin as it relates to GKE.
+     * 
+ * + * string severity = 4; + * @param value The severity to set. + * @return This builder for chaining. + */ + public Builder setSeverity( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + severity_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The severity of this bulletin as it relates to GKE.
+     * 
+ * + * string severity = 4; + * @return This builder for chaining. + */ + public Builder clearSeverity() { + severity_ = getDefaultInstance().getSeverity(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * The severity of this bulletin as it relates to GKE.
+     * 
+ * + * string severity = 4; + * @param value The bytes for severity to set. + * @return This builder for chaining. + */ + public Builder setSeverityBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + severity_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object bulletinUri_ = ""; + /** + *
+     * The URI link to the bulletin on the website for more information.
+     * 
+ * + * string bulletin_uri = 5; + * @return The bulletinUri. + */ + public java.lang.String getBulletinUri() { + java.lang.Object ref = bulletinUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bulletinUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The URI link to the bulletin on the website for more information.
+     * 
+ * + * string bulletin_uri = 5; + * @return The bytes for bulletinUri. + */ + public com.google.protobuf.ByteString + getBulletinUriBytes() { + java.lang.Object ref = bulletinUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bulletinUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The URI link to the bulletin on the website for more information.
+     * 
+ * + * string bulletin_uri = 5; + * @param value The bulletinUri to set. + * @return This builder for chaining. + */ + public Builder setBulletinUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + bulletinUri_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * The URI link to the bulletin on the website for more information.
+     * 
+ * + * string bulletin_uri = 5; + * @return This builder for chaining. + */ + public Builder clearBulletinUri() { + bulletinUri_ = getDefaultInstance().getBulletinUri(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+     * The URI link to the bulletin on the website for more information.
+     * 
+ * + * string bulletin_uri = 5; + * @param value The bytes for bulletinUri to set. + * @return This builder for chaining. + */ + public Builder setBulletinUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + bulletinUri_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object briefDescription_ = ""; + /** + *
+     * A brief description of the bulletin. See the bulletin pointed to by the
+     * bulletin_uri field for an expanded description.
+     * 
+ * + * string brief_description = 6; + * @return The briefDescription. + */ + public java.lang.String getBriefDescription() { + java.lang.Object ref = briefDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + briefDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A brief description of the bulletin. See the bulletin pointed to by the
+     * bulletin_uri field for an expanded description.
+     * 
+ * + * string brief_description = 6; + * @return The bytes for briefDescription. + */ + public com.google.protobuf.ByteString + getBriefDescriptionBytes() { + java.lang.Object ref = briefDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + briefDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A brief description of the bulletin. See the bulletin pointed to by the
+     * bulletin_uri field for an expanded description.
+     * 
+ * + * string brief_description = 6; + * @param value The briefDescription to set. + * @return This builder for chaining. + */ + public Builder setBriefDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + briefDescription_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * A brief description of the bulletin. See the bulletin pointed to by the
+     * bulletin_uri field for an expanded description.
+     * 
+ * + * string brief_description = 6; + * @return This builder for chaining. + */ + public Builder clearBriefDescription() { + briefDescription_ = getDefaultInstance().getBriefDescription(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + *
+     * A brief description of the bulletin. See the bulletin pointed to by the
+     * bulletin_uri field for an expanded description.
+     * 
+ * + * string brief_description = 6; + * @param value The bytes for briefDescription to set. + * @return This builder for chaining. + */ + public Builder setBriefDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + briefDescription_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList affectedSupportedMinors_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureAffectedSupportedMinorsIsMutable() { + if (!affectedSupportedMinors_.isModifiable()) { + affectedSupportedMinors_ = new com.google.protobuf.LazyStringArrayList(affectedSupportedMinors_); + } + bitField0_ |= 0x00000040; + } + /** + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * @return A list containing the affectedSupportedMinors. + */ + public com.google.protobuf.ProtocolStringList + getAffectedSupportedMinorsList() { + affectedSupportedMinors_.makeImmutable(); + return affectedSupportedMinors_; + } + /** + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * @return The count of affectedSupportedMinors. + */ + public int getAffectedSupportedMinorsCount() { + return affectedSupportedMinors_.size(); + } + /** + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * @param index The index of the element to return. + * @return The affectedSupportedMinors at the given index. + */ + public java.lang.String getAffectedSupportedMinors(int index) { + return affectedSupportedMinors_.get(index); + } + /** + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * @param index The index of the value to return. + * @return The bytes of the affectedSupportedMinors at the given index. + */ + public com.google.protobuf.ByteString + getAffectedSupportedMinorsBytes(int index) { + return affectedSupportedMinors_.getByteString(index); + } + /** + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * @param index The index to set the value at. + * @param value The affectedSupportedMinors to set. + * @return This builder for chaining. + */ + public Builder setAffectedSupportedMinors( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureAffectedSupportedMinorsIsMutable(); + affectedSupportedMinors_.set(index, value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * @param value The affectedSupportedMinors to add. + * @return This builder for chaining. + */ + public Builder addAffectedSupportedMinors( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureAffectedSupportedMinorsIsMutable(); + affectedSupportedMinors_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * @param values The affectedSupportedMinors to add. + * @return This builder for chaining. + */ + public Builder addAllAffectedSupportedMinors( + java.lang.Iterable values) { + ensureAffectedSupportedMinorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, affectedSupportedMinors_); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * @return This builder for chaining. + */ + public Builder clearAffectedSupportedMinors() { + affectedSupportedMinors_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040);; + onChanged(); + return this; + } + /** + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * @param value The bytes of the affectedSupportedMinors to add. + * @return This builder for chaining. + */ + public Builder addAffectedSupportedMinorsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureAffectedSupportedMinorsIsMutable(); + affectedSupportedMinors_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList patchedVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensurePatchedVersionsIsMutable() { + if (!patchedVersions_.isModifiable()) { + patchedVersions_ = new com.google.protobuf.LazyStringArrayList(patchedVersions_); + } + bitField0_ |= 0x00000080; + } + /** + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * @return A list containing the patchedVersions. + */ + public com.google.protobuf.ProtocolStringList + getPatchedVersionsList() { + patchedVersions_.makeImmutable(); + return patchedVersions_; + } + /** + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * @return The count of patchedVersions. + */ + public int getPatchedVersionsCount() { + return patchedVersions_.size(); + } + /** + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * @param index The index of the element to return. + * @return The patchedVersions at the given index. + */ + public java.lang.String getPatchedVersions(int index) { + return patchedVersions_.get(index); + } + /** + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * @param index The index of the value to return. + * @return The bytes of the patchedVersions at the given index. + */ + public com.google.protobuf.ByteString + getPatchedVersionsBytes(int index) { + return patchedVersions_.getByteString(index); + } + /** + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * @param index The index to set the value at. + * @param value The patchedVersions to set. + * @return This builder for chaining. + */ + public Builder setPatchedVersions( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensurePatchedVersionsIsMutable(); + patchedVersions_.set(index, value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * @param value The patchedVersions to add. + * @return This builder for chaining. + */ + public Builder addPatchedVersions( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensurePatchedVersionsIsMutable(); + patchedVersions_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * @param values The patchedVersions to add. + * @return This builder for chaining. + */ + public Builder addAllPatchedVersions( + java.lang.Iterable values) { + ensurePatchedVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, patchedVersions_); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * @return This builder for chaining. + */ + public Builder clearPatchedVersions() { + patchedVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080);; + onChanged(); + return this; + } + /** + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * @param value The bytes of the patchedVersions to add. + * @return This builder for chaining. + */ + public Builder addPatchedVersionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensurePatchedVersionsIsMutable(); + patchedVersions_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object suggestedUpgradeTarget_ = ""; + /** + *
+     * This represents a version selected from the patched_versions field that
+     * the cluster receiving this notification should most likely want to upgrade
+     * to based on its current version. Note that if this notification is being
+     * received by a given cluster, it means that this version is currently
+     * available as an upgrade target in that cluster's location.
+     * 
+ * + * string suggested_upgrade_target = 9; + * @return The suggestedUpgradeTarget. + */ + public java.lang.String getSuggestedUpgradeTarget() { + java.lang.Object ref = suggestedUpgradeTarget_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + suggestedUpgradeTarget_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * This represents a version selected from the patched_versions field that
+     * the cluster receiving this notification should most likely want to upgrade
+     * to based on its current version. Note that if this notification is being
+     * received by a given cluster, it means that this version is currently
+     * available as an upgrade target in that cluster's location.
+     * 
+ * + * string suggested_upgrade_target = 9; + * @return The bytes for suggestedUpgradeTarget. + */ + public com.google.protobuf.ByteString + getSuggestedUpgradeTargetBytes() { + java.lang.Object ref = suggestedUpgradeTarget_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + suggestedUpgradeTarget_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * This represents a version selected from the patched_versions field that
+     * the cluster receiving this notification should most likely want to upgrade
+     * to based on its current version. Note that if this notification is being
+     * received by a given cluster, it means that this version is currently
+     * available as an upgrade target in that cluster's location.
+     * 
+ * + * string suggested_upgrade_target = 9; + * @param value The suggestedUpgradeTarget to set. + * @return This builder for chaining. + */ + public Builder setSuggestedUpgradeTarget( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + suggestedUpgradeTarget_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * This represents a version selected from the patched_versions field that
+     * the cluster receiving this notification should most likely want to upgrade
+     * to based on its current version. Note that if this notification is being
+     * received by a given cluster, it means that this version is currently
+     * available as an upgrade target in that cluster's location.
+     * 
+ * + * string suggested_upgrade_target = 9; + * @return This builder for chaining. + */ + public Builder clearSuggestedUpgradeTarget() { + suggestedUpgradeTarget_ = getDefaultInstance().getSuggestedUpgradeTarget(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + *
+     * This represents a version selected from the patched_versions field that
+     * the cluster receiving this notification should most likely want to upgrade
+     * to based on its current version. Note that if this notification is being
+     * received by a given cluster, it means that this version is currently
+     * available as an upgrade target in that cluster's location.
+     * 
+ * + * string suggested_upgrade_target = 9; + * @param value The bytes for suggestedUpgradeTarget to set. + * @return This builder for chaining. + */ + public Builder setSuggestedUpgradeTargetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + suggestedUpgradeTarget_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private boolean manualStepsRequired_ ; + /** + *
+     * If this field is specified, it means there are manual steps that the user
+     * must take to make their clusters safe.
+     * 
+ * + * bool manual_steps_required = 10; + * @return The manualStepsRequired. + */ + @java.lang.Override + public boolean getManualStepsRequired() { + return manualStepsRequired_; + } + /** + *
+     * If this field is specified, it means there are manual steps that the user
+     * must take to make their clusters safe.
+     * 
+ * + * bool manual_steps_required = 10; + * @param value The manualStepsRequired to set. + * @return This builder for chaining. + */ + public Builder setManualStepsRequired(boolean value) { + + manualStepsRequired_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * If this field is specified, it means there are manual steps that the user
+     * must take to make their clusters safe.
+     * 
+ * + * bool manual_steps_required = 10; + * @return This builder for chaining. + */ + public Builder clearManualStepsRequired() { + bitField0_ = (bitField0_ & ~0x00000200); + manualStepsRequired_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.SecurityBulletinEvent) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.SecurityBulletinEvent) + private static final com.google.container.v1.SecurityBulletinEvent DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.SecurityBulletinEvent(); + } + + public static com.google.container.v1.SecurityBulletinEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecurityBulletinEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.SecurityBulletinEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecurityBulletinEventOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecurityBulletinEventOrBuilder.java new file mode 100644 index 000000000000..9ccc1fa510fa --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecurityBulletinEventOrBuilder.java @@ -0,0 +1,278 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface SecurityBulletinEventOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.SecurityBulletinEvent) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The resource type (node/control plane) that has the vulnerability. Multiple
+   * notifications (1 notification per resource type) will be sent for a
+   * vulnerability that affects > 1 resource type.
+   * 
+ * + * string resource_type_affected = 1; + * @return The resourceTypeAffected. + */ + java.lang.String getResourceTypeAffected(); + /** + *
+   * The resource type (node/control plane) that has the vulnerability. Multiple
+   * notifications (1 notification per resource type) will be sent for a
+   * vulnerability that affects > 1 resource type.
+   * 
+ * + * string resource_type_affected = 1; + * @return The bytes for resourceTypeAffected. + */ + com.google.protobuf.ByteString + getResourceTypeAffectedBytes(); + + /** + *
+   * The ID of the bulletin corresponding to the vulnerability.
+   * 
+ * + * string bulletin_id = 2; + * @return The bulletinId. + */ + java.lang.String getBulletinId(); + /** + *
+   * The ID of the bulletin corresponding to the vulnerability.
+   * 
+ * + * string bulletin_id = 2; + * @return The bytes for bulletinId. + */ + com.google.protobuf.ByteString + getBulletinIdBytes(); + + /** + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * @return A list containing the cveIds. + */ + java.util.List + getCveIdsList(); + /** + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * @return The count of cveIds. + */ + int getCveIdsCount(); + /** + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * @param index The index of the element to return. + * @return The cveIds at the given index. + */ + java.lang.String getCveIds(int index); + /** + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * @param index The index of the value to return. + * @return The bytes of the cveIds at the given index. + */ + com.google.protobuf.ByteString + getCveIdsBytes(int index); + + /** + *
+   * The severity of this bulletin as it relates to GKE.
+   * 
+ * + * string severity = 4; + * @return The severity. + */ + java.lang.String getSeverity(); + /** + *
+   * The severity of this bulletin as it relates to GKE.
+   * 
+ * + * string severity = 4; + * @return The bytes for severity. + */ + com.google.protobuf.ByteString + getSeverityBytes(); + + /** + *
+   * The URI link to the bulletin on the website for more information.
+   * 
+ * + * string bulletin_uri = 5; + * @return The bulletinUri. + */ + java.lang.String getBulletinUri(); + /** + *
+   * The URI link to the bulletin on the website for more information.
+   * 
+ * + * string bulletin_uri = 5; + * @return The bytes for bulletinUri. + */ + com.google.protobuf.ByteString + getBulletinUriBytes(); + + /** + *
+   * A brief description of the bulletin. See the bulletin pointed to by the
+   * bulletin_uri field for an expanded description.
+   * 
+ * + * string brief_description = 6; + * @return The briefDescription. + */ + java.lang.String getBriefDescription(); + /** + *
+   * A brief description of the bulletin. See the bulletin pointed to by the
+   * bulletin_uri field for an expanded description.
+   * 
+ * + * string brief_description = 6; + * @return The bytes for briefDescription. + */ + com.google.protobuf.ByteString + getBriefDescriptionBytes(); + + /** + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * @return A list containing the affectedSupportedMinors. + */ + java.util.List + getAffectedSupportedMinorsList(); + /** + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * @return The count of affectedSupportedMinors. + */ + int getAffectedSupportedMinorsCount(); + /** + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * @param index The index of the element to return. + * @return The affectedSupportedMinors at the given index. + */ + java.lang.String getAffectedSupportedMinors(int index); + /** + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * @param index The index of the value to return. + * @return The bytes of the affectedSupportedMinors at the given index. + */ + com.google.protobuf.ByteString + getAffectedSupportedMinorsBytes(int index); + + /** + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * @return A list containing the patchedVersions. + */ + java.util.List + getPatchedVersionsList(); + /** + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * @return The count of patchedVersions. + */ + int getPatchedVersionsCount(); + /** + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * @param index The index of the element to return. + * @return The patchedVersions at the given index. + */ + java.lang.String getPatchedVersions(int index); + /** + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * @param index The index of the value to return. + * @return The bytes of the patchedVersions at the given index. + */ + com.google.protobuf.ByteString + getPatchedVersionsBytes(int index); + + /** + *
+   * This represents a version selected from the patched_versions field that
+   * the cluster receiving this notification should most likely want to upgrade
+   * to based on its current version. Note that if this notification is being
+   * received by a given cluster, it means that this version is currently
+   * available as an upgrade target in that cluster's location.
+   * 
+ * + * string suggested_upgrade_target = 9; + * @return The suggestedUpgradeTarget. + */ + java.lang.String getSuggestedUpgradeTarget(); + /** + *
+   * This represents a version selected from the patched_versions field that
+   * the cluster receiving this notification should most likely want to upgrade
+   * to based on its current version. Note that if this notification is being
+   * received by a given cluster, it means that this version is currently
+   * available as an upgrade target in that cluster's location.
+   * 
+ * + * string suggested_upgrade_target = 9; + * @return The bytes for suggestedUpgradeTarget. + */ + com.google.protobuf.ByteString + getSuggestedUpgradeTargetBytes(); + + /** + *
+   * If this field is specified, it means there are manual steps that the user
+   * must take to make their clusters safe.
+   * 
+ * + * bool manual_steps_required = 10; + * @return The manualStepsRequired. + */ + boolean getManualStepsRequired(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecurityPostureConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecurityPostureConfig.java new file mode 100644 index 000000000000..a8dee88cfcd4 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecurityPostureConfig.java @@ -0,0 +1,1028 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * SecurityPostureConfig defines the flags needed to enable/disable features for
+ * the Security Posture API.
+ * 
+ * + * Protobuf type {@code google.container.v1.SecurityPostureConfig} + */ +public final class SecurityPostureConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.SecurityPostureConfig) + SecurityPostureConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use SecurityPostureConfig.newBuilder() to construct. + private SecurityPostureConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SecurityPostureConfig() { + mode_ = 0; + vulnerabilityMode_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SecurityPostureConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SecurityPostureConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SecurityPostureConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SecurityPostureConfig.class, com.google.container.v1.SecurityPostureConfig.Builder.class); + } + + /** + *
+   * Mode defines enablement mode for GKE Security posture features.
+   * 
+ * + * Protobuf enum {@code google.container.v1.SecurityPostureConfig.Mode} + */ + public enum Mode + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Default value not specified.
+     * 
+ * + * MODE_UNSPECIFIED = 0; + */ + MODE_UNSPECIFIED(0), + /** + *
+     * Disables Security Posture features on the cluster.
+     * 
+ * + * DISABLED = 1; + */ + DISABLED(1), + /** + *
+     * Applies Security Posture features on the cluster.
+     * 
+ * + * BASIC = 2; + */ + BASIC(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Default value not specified.
+     * 
+ * + * MODE_UNSPECIFIED = 0; + */ + public static final int MODE_UNSPECIFIED_VALUE = 0; + /** + *
+     * Disables Security Posture features on the cluster.
+     * 
+ * + * DISABLED = 1; + */ + public static final int DISABLED_VALUE = 1; + /** + *
+     * Applies Security Posture features on the cluster.
+     * 
+ * + * BASIC = 2; + */ + public static final int BASIC_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 DISABLED; + case 2: return BASIC; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Mode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Mode findValueByNumber(int number) { + return Mode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.SecurityPostureConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final Mode[] VALUES = values(); + + public static Mode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Mode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.SecurityPostureConfig.Mode) + } + + /** + *
+   * VulnerabilityMode defines enablement mode for vulnerability scanning.
+   * 
+ * + * Protobuf enum {@code google.container.v1.SecurityPostureConfig.VulnerabilityMode} + */ + public enum VulnerabilityMode + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Default value not specified.
+     * 
+ * + * VULNERABILITY_MODE_UNSPECIFIED = 0; + */ + VULNERABILITY_MODE_UNSPECIFIED(0), + /** + *
+     * Disables vulnerability scanning on the cluster.
+     * 
+ * + * VULNERABILITY_DISABLED = 1; + */ + VULNERABILITY_DISABLED(1), + /** + *
+     * Applies basic vulnerability scanning on the cluster.
+     * 
+ * + * VULNERABILITY_BASIC = 2; + */ + VULNERABILITY_BASIC(2), + /** + *
+     * Applies the Security Posture's vulnerability on cluster Enterprise level
+     * features.
+     * 
+ * + * VULNERABILITY_ENTERPRISE = 3; + */ + VULNERABILITY_ENTERPRISE(3), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Default value not specified.
+     * 
+ * + * VULNERABILITY_MODE_UNSPECIFIED = 0; + */ + public static final int VULNERABILITY_MODE_UNSPECIFIED_VALUE = 0; + /** + *
+     * Disables vulnerability scanning on the cluster.
+     * 
+ * + * VULNERABILITY_DISABLED = 1; + */ + public static final int VULNERABILITY_DISABLED_VALUE = 1; + /** + *
+     * Applies basic vulnerability scanning on the cluster.
+     * 
+ * + * VULNERABILITY_BASIC = 2; + */ + public static final int VULNERABILITY_BASIC_VALUE = 2; + /** + *
+     * Applies the Security Posture's vulnerability on cluster Enterprise level
+     * features.
+     * 
+ * + * VULNERABILITY_ENTERPRISE = 3; + */ + public static final int VULNERABILITY_ENTERPRISE_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 VulnerabilityMode 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 VulnerabilityMode forNumber(int value) { + switch (value) { + case 0: return VULNERABILITY_MODE_UNSPECIFIED; + case 1: return VULNERABILITY_DISABLED; + case 2: return VULNERABILITY_BASIC; + case 3: return VULNERABILITY_ENTERPRISE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + VulnerabilityMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public VulnerabilityMode findValueByNumber(int number) { + return VulnerabilityMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.SecurityPostureConfig.getDescriptor().getEnumTypes().get(1); + } + + private static final VulnerabilityMode[] VALUES = values(); + + public static VulnerabilityMode 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 VulnerabilityMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.SecurityPostureConfig.VulnerabilityMode) + } + + private int bitField0_; + public static final int MODE_FIELD_NUMBER = 1; + private int mode_ = 0; + /** + *
+   * Sets which mode to use for Security Posture features.
+   * 
+ * + * optional .google.container.v1.SecurityPostureConfig.Mode mode = 1; + * @return Whether the mode field is set. + */ + @java.lang.Override public boolean hasMode() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Sets which mode to use for Security Posture features.
+   * 
+ * + * optional .google.container.v1.SecurityPostureConfig.Mode mode = 1; + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override public int getModeValue() { + return mode_; + } + /** + *
+   * Sets which mode to use for Security Posture features.
+   * 
+ * + * optional .google.container.v1.SecurityPostureConfig.Mode mode = 1; + * @return The mode. + */ + @java.lang.Override public com.google.container.v1.SecurityPostureConfig.Mode getMode() { + com.google.container.v1.SecurityPostureConfig.Mode result = com.google.container.v1.SecurityPostureConfig.Mode.forNumber(mode_); + return result == null ? com.google.container.v1.SecurityPostureConfig.Mode.UNRECOGNIZED : result; + } + + public static final int VULNERABILITY_MODE_FIELD_NUMBER = 2; + private int vulnerabilityMode_ = 0; + /** + *
+   * Sets which mode to use for vulnerability scanning.
+   * 
+ * + * optional .google.container.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * @return Whether the vulnerabilityMode field is set. + */ + @java.lang.Override public boolean hasVulnerabilityMode() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * Sets which mode to use for vulnerability scanning.
+   * 
+ * + * optional .google.container.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * @return The enum numeric value on the wire for vulnerabilityMode. + */ + @java.lang.Override public int getVulnerabilityModeValue() { + return vulnerabilityMode_; + } + /** + *
+   * Sets which mode to use for vulnerability scanning.
+   * 
+ * + * optional .google.container.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * @return The vulnerabilityMode. + */ + @java.lang.Override public com.google.container.v1.SecurityPostureConfig.VulnerabilityMode getVulnerabilityMode() { + com.google.container.v1.SecurityPostureConfig.VulnerabilityMode result = com.google.container.v1.SecurityPostureConfig.VulnerabilityMode.forNumber(vulnerabilityMode_); + return result == null ? com.google.container.v1.SecurityPostureConfig.VulnerabilityMode.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 (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, mode_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(2, vulnerabilityMode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, mode_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, vulnerabilityMode_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.SecurityPostureConfig)) { + return super.equals(obj); + } + com.google.container.v1.SecurityPostureConfig other = (com.google.container.v1.SecurityPostureConfig) obj; + + if (hasMode() != other.hasMode()) return false; + if (hasMode()) { + if (mode_ != other.mode_) return false; + } + if (hasVulnerabilityMode() != other.hasVulnerabilityMode()) return false; + if (hasVulnerabilityMode()) { + if (vulnerabilityMode_ != other.vulnerabilityMode_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMode()) { + hash = (37 * hash) + MODE_FIELD_NUMBER; + hash = (53 * hash) + mode_; + } + if (hasVulnerabilityMode()) { + hash = (37 * hash) + VULNERABILITY_MODE_FIELD_NUMBER; + hash = (53 * hash) + vulnerabilityMode_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.SecurityPostureConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.SecurityPostureConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.SecurityPostureConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.SecurityPostureConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.SecurityPostureConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.SecurityPostureConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.SecurityPostureConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.SecurityPostureConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.SecurityPostureConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.SecurityPostureConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.SecurityPostureConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.SecurityPostureConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.SecurityPostureConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * SecurityPostureConfig defines the flags needed to enable/disable features for
+   * the Security Posture API.
+   * 
+ * + * Protobuf type {@code google.container.v1.SecurityPostureConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.SecurityPostureConfig) + com.google.container.v1.SecurityPostureConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SecurityPostureConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SecurityPostureConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SecurityPostureConfig.class, com.google.container.v1.SecurityPostureConfig.Builder.class); + } + + // Construct using com.google.container.v1.SecurityPostureConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + mode_ = 0; + vulnerabilityMode_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SecurityPostureConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.SecurityPostureConfig getDefaultInstanceForType() { + return com.google.container.v1.SecurityPostureConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.SecurityPostureConfig build() { + com.google.container.v1.SecurityPostureConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.SecurityPostureConfig buildPartial() { + com.google.container.v1.SecurityPostureConfig result = new com.google.container.v1.SecurityPostureConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.SecurityPostureConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mode_ = mode_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.vulnerabilityMode_ = vulnerabilityMode_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.SecurityPostureConfig) { + return mergeFrom((com.google.container.v1.SecurityPostureConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.SecurityPostureConfig other) { + if (other == com.google.container.v1.SecurityPostureConfig.getDefaultInstance()) return this; + if (other.hasMode()) { + setMode(other.getMode()); + } + if (other.hasVulnerabilityMode()) { + setVulnerabilityMode(other.getVulnerabilityMode()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + mode_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + vulnerabilityMode_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int mode_ = 0; + /** + *
+     * Sets which mode to use for Security Posture features.
+     * 
+ * + * optional .google.container.v1.SecurityPostureConfig.Mode mode = 1; + * @return Whether the mode field is set. + */ + @java.lang.Override public boolean hasMode() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Sets which mode to use for Security Posture features.
+     * 
+ * + * optional .google.container.v1.SecurityPostureConfig.Mode mode = 1; + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override public int getModeValue() { + return mode_; + } + /** + *
+     * Sets which mode to use for Security Posture features.
+     * 
+ * + * optional .google.container.v1.SecurityPostureConfig.Mode mode = 1; + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Sets which mode to use for Security Posture features.
+     * 
+ * + * optional .google.container.v1.SecurityPostureConfig.Mode mode = 1; + * @return The mode. + */ + @java.lang.Override + public com.google.container.v1.SecurityPostureConfig.Mode getMode() { + com.google.container.v1.SecurityPostureConfig.Mode result = com.google.container.v1.SecurityPostureConfig.Mode.forNumber(mode_); + return result == null ? com.google.container.v1.SecurityPostureConfig.Mode.UNRECOGNIZED : result; + } + /** + *
+     * Sets which mode to use for Security Posture features.
+     * 
+ * + * optional .google.container.v1.SecurityPostureConfig.Mode mode = 1; + * @param value The mode to set. + * @return This builder for chaining. + */ + public Builder setMode(com.google.container.v1.SecurityPostureConfig.Mode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + mode_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Sets which mode to use for Security Posture features.
+     * 
+ * + * optional .google.container.v1.SecurityPostureConfig.Mode mode = 1; + * @return This builder for chaining. + */ + public Builder clearMode() { + bitField0_ = (bitField0_ & ~0x00000001); + mode_ = 0; + onChanged(); + return this; + } + + private int vulnerabilityMode_ = 0; + /** + *
+     * Sets which mode to use for vulnerability scanning.
+     * 
+ * + * optional .google.container.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * @return Whether the vulnerabilityMode field is set. + */ + @java.lang.Override public boolean hasVulnerabilityMode() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Sets which mode to use for vulnerability scanning.
+     * 
+ * + * optional .google.container.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * @return The enum numeric value on the wire for vulnerabilityMode. + */ + @java.lang.Override public int getVulnerabilityModeValue() { + return vulnerabilityMode_; + } + /** + *
+     * Sets which mode to use for vulnerability scanning.
+     * 
+ * + * optional .google.container.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * @param value The enum numeric value on the wire for vulnerabilityMode to set. + * @return This builder for chaining. + */ + public Builder setVulnerabilityModeValue(int value) { + vulnerabilityMode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Sets which mode to use for vulnerability scanning.
+     * 
+ * + * optional .google.container.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * @return The vulnerabilityMode. + */ + @java.lang.Override + public com.google.container.v1.SecurityPostureConfig.VulnerabilityMode getVulnerabilityMode() { + com.google.container.v1.SecurityPostureConfig.VulnerabilityMode result = com.google.container.v1.SecurityPostureConfig.VulnerabilityMode.forNumber(vulnerabilityMode_); + return result == null ? com.google.container.v1.SecurityPostureConfig.VulnerabilityMode.UNRECOGNIZED : result; + } + /** + *
+     * Sets which mode to use for vulnerability scanning.
+     * 
+ * + * optional .google.container.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * @param value The vulnerabilityMode to set. + * @return This builder for chaining. + */ + public Builder setVulnerabilityMode(com.google.container.v1.SecurityPostureConfig.VulnerabilityMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + vulnerabilityMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Sets which mode to use for vulnerability scanning.
+     * 
+ * + * optional .google.container.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * @return This builder for chaining. + */ + public Builder clearVulnerabilityMode() { + bitField0_ = (bitField0_ & ~0x00000002); + vulnerabilityMode_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.SecurityPostureConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.SecurityPostureConfig) + private static final com.google.container.v1.SecurityPostureConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.SecurityPostureConfig(); + } + + public static com.google.container.v1.SecurityPostureConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecurityPostureConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.SecurityPostureConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecurityPostureConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecurityPostureConfigOrBuilder.java new file mode 100644 index 000000000000..64f66ff63284 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecurityPostureConfigOrBuilder.java @@ -0,0 +1,66 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface SecurityPostureConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.SecurityPostureConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Sets which mode to use for Security Posture features.
+   * 
+ * + * optional .google.container.v1.SecurityPostureConfig.Mode mode = 1; + * @return Whether the mode field is set. + */ + boolean hasMode(); + /** + *
+   * Sets which mode to use for Security Posture features.
+   * 
+ * + * optional .google.container.v1.SecurityPostureConfig.Mode mode = 1; + * @return The enum numeric value on the wire for mode. + */ + int getModeValue(); + /** + *
+   * Sets which mode to use for Security Posture features.
+   * 
+ * + * optional .google.container.v1.SecurityPostureConfig.Mode mode = 1; + * @return The mode. + */ + com.google.container.v1.SecurityPostureConfig.Mode getMode(); + + /** + *
+   * Sets which mode to use for vulnerability scanning.
+   * 
+ * + * optional .google.container.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * @return Whether the vulnerabilityMode field is set. + */ + boolean hasVulnerabilityMode(); + /** + *
+   * Sets which mode to use for vulnerability scanning.
+   * 
+ * + * optional .google.container.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * @return The enum numeric value on the wire for vulnerabilityMode. + */ + int getVulnerabilityModeValue(); + /** + *
+   * Sets which mode to use for vulnerability scanning.
+   * 
+ * + * optional .google.container.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * @return The vulnerabilityMode. + */ + com.google.container.v1.SecurityPostureConfig.VulnerabilityMode getVulnerabilityMode(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfig.java new file mode 100644 index 000000000000..61d8920a488d --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfig.java @@ -0,0 +1,2930 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Kubernetes Engine service configuration.
+ * 
+ * + * Protobuf type {@code google.container.v1.ServerConfig} + */ +public final class ServerConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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.emptyList(); + defaultImageType_ = ""; + validImageTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + validMasterVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + channels_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ServerConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ServerConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ServerConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ServerConfig.class, com.google.container.v1.ServerConfig.Builder.class); + } + + public interface ReleaseChannelConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ServerConfig.ReleaseChannelConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The release channel this configuration applies to.
+     * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * @return The enum numeric value on the wire for channel. + */ + int getChannelValue(); + /** + *
+     * The release channel this configuration applies to.
+     * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * @return The channel. + */ + com.google.container.v1.ReleaseChannel.Channel getChannel(); + + /** + *
+     * The default version for newly created clusters on the channel.
+     * 
+ * + * string default_version = 2; + * @return The defaultVersion. + */ + java.lang.String getDefaultVersion(); + /** + *
+     * The default version for newly created clusters on the channel.
+     * 
+ * + * string default_version = 2; + * @return The bytes for defaultVersion. + */ + com.google.protobuf.ByteString + getDefaultVersionBytes(); + + /** + *
+     * List of valid versions for the channel.
+     * 
+ * + * repeated string valid_versions = 4; + * @return A list containing the validVersions. + */ + java.util.List + getValidVersionsList(); + /** + *
+     * List of valid versions for the channel.
+     * 
+ * + * repeated string valid_versions = 4; + * @return The count of validVersions. + */ + int getValidVersionsCount(); + /** + *
+     * List of valid versions for the channel.
+     * 
+ * + * repeated string valid_versions = 4; + * @param index The index of the element to return. + * @return The validVersions at the given index. + */ + java.lang.String getValidVersions(int index); + /** + *
+     * List of valid versions for the channel.
+     * 
+ * + * repeated string valid_versions = 4; + * @param index The index of the value to return. + * @return The bytes of the validVersions at the given index. + */ + com.google.protobuf.ByteString + getValidVersionsBytes(int index); + } + /** + *
+   * ReleaseChannelConfig exposes configuration for a release channel.
+   * 
+ * + * Protobuf type {@code google.container.v1.ServerConfig.ReleaseChannelConfig} + */ + public static final class ReleaseChannelConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.ServerConfig.ReleaseChannelConfig) + ReleaseChannelConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReleaseChannelConfig.newBuilder() to construct. + private ReleaseChannelConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ReleaseChannelConfig() { + channel_ = 0; + defaultVersion_ = ""; + validVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ReleaseChannelConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ServerConfig_ReleaseChannelConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ServerConfig_ReleaseChannelConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ServerConfig.ReleaseChannelConfig.class, com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder.class); + } + + public static final int CHANNEL_FIELD_NUMBER = 1; + private int channel_ = 0; + /** + *
+     * The release channel this configuration applies to.
+     * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * @return The enum numeric value on the wire for channel. + */ + @java.lang.Override public int getChannelValue() { + return channel_; + } + /** + *
+     * The release channel this configuration applies to.
+     * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * @return The channel. + */ + @java.lang.Override public com.google.container.v1.ReleaseChannel.Channel getChannel() { + com.google.container.v1.ReleaseChannel.Channel result = com.google.container.v1.ReleaseChannel.Channel.forNumber(channel_); + return result == null ? com.google.container.v1.ReleaseChannel.Channel.UNRECOGNIZED : result; + } + + public static final int DEFAULT_VERSION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object defaultVersion_ = ""; + /** + *
+     * The default version for newly created clusters on the channel.
+     * 
+ * + * string default_version = 2; + * @return The defaultVersion. + */ + @java.lang.Override + public java.lang.String getDefaultVersion() { + java.lang.Object ref = defaultVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultVersion_ = s; + return s; + } + } + /** + *
+     * The default version for newly created clusters on the channel.
+     * 
+ * + * string default_version = 2; + * @return The bytes for defaultVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDefaultVersionBytes() { + java.lang.Object ref = defaultVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + defaultVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALID_VERSIONS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList validVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+     * List of valid versions for the channel.
+     * 
+ * + * repeated string valid_versions = 4; + * @return A list containing the validVersions. + */ + public com.google.protobuf.ProtocolStringList + getValidVersionsList() { + return validVersions_; + } + /** + *
+     * List of valid versions for the channel.
+     * 
+ * + * repeated string valid_versions = 4; + * @return The count of validVersions. + */ + public int getValidVersionsCount() { + return validVersions_.size(); + } + /** + *
+     * List of valid versions for the channel.
+     * 
+ * + * repeated string valid_versions = 4; + * @param index The index of the element to return. + * @return The validVersions at the given index. + */ + public java.lang.String getValidVersions(int index) { + return validVersions_.get(index); + } + /** + *
+     * List of valid versions for the channel.
+     * 
+ * + * repeated string valid_versions = 4; + * @param index The index of the value to return. + * @return The bytes of the validVersions at the given index. + */ + public com.google.protobuf.ByteString + getValidVersionsBytes(int index) { + return validVersions_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (channel_ != com.google.container.v1.ReleaseChannel.Channel.UNSPECIFIED.getNumber()) { + output.writeEnum(1, channel_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, defaultVersion_); + } + for (int i = 0; i < validVersions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, validVersions_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (channel_ != com.google.container.v1.ReleaseChannel.Channel.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, channel_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, defaultVersion_); + } + { + int dataSize = 0; + for (int i = 0; i < validVersions_.size(); i++) { + dataSize += computeStringSizeNoTag(validVersions_.getRaw(i)); + } + size += dataSize; + size += 1 * getValidVersionsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.ServerConfig.ReleaseChannelConfig)) { + return super.equals(obj); + } + com.google.container.v1.ServerConfig.ReleaseChannelConfig other = (com.google.container.v1.ServerConfig.ReleaseChannelConfig) obj; + + if (channel_ != other.channel_) return false; + if (!getDefaultVersion() + .equals(other.getDefaultVersion())) return false; + if (!getValidVersionsList() + .equals(other.getValidVersionsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CHANNEL_FIELD_NUMBER; + hash = (53 * hash) + channel_; + hash = (37 * hash) + DEFAULT_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getDefaultVersion().hashCode(); + if (getValidVersionsCount() > 0) { + hash = (37 * hash) + VALID_VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getValidVersionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.ServerConfig.ReleaseChannelConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * ReleaseChannelConfig exposes configuration for a release channel.
+     * 
+ * + * Protobuf type {@code google.container.v1.ServerConfig.ReleaseChannelConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ServerConfig.ReleaseChannelConfig) + com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ServerConfig_ReleaseChannelConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ServerConfig_ReleaseChannelConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ServerConfig.ReleaseChannelConfig.class, com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder.class); + } + + // Construct using com.google.container.v1.ServerConfig.ReleaseChannelConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + channel_ = 0; + defaultVersion_ = ""; + validVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ServerConfig_ReleaseChannelConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ServerConfig.ReleaseChannelConfig getDefaultInstanceForType() { + return com.google.container.v1.ServerConfig.ReleaseChannelConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ServerConfig.ReleaseChannelConfig build() { + com.google.container.v1.ServerConfig.ReleaseChannelConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ServerConfig.ReleaseChannelConfig buildPartial() { + com.google.container.v1.ServerConfig.ReleaseChannelConfig result = new com.google.container.v1.ServerConfig.ReleaseChannelConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.ServerConfig.ReleaseChannelConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.channel_ = channel_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.defaultVersion_ = defaultVersion_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + validVersions_.makeImmutable(); + result.validVersions_ = validVersions_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ServerConfig.ReleaseChannelConfig) { + return mergeFrom((com.google.container.v1.ServerConfig.ReleaseChannelConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ServerConfig.ReleaseChannelConfig other) { + if (other == com.google.container.v1.ServerConfig.ReleaseChannelConfig.getDefaultInstance()) return this; + if (other.channel_ != 0) { + setChannelValue(other.getChannelValue()); + } + if (!other.getDefaultVersion().isEmpty()) { + defaultVersion_ = other.defaultVersion_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.validVersions_.isEmpty()) { + if (validVersions_.isEmpty()) { + validVersions_ = other.validVersions_; + bitField0_ |= 0x00000004; + } else { + ensureValidVersionsIsMutable(); + validVersions_.addAll(other.validVersions_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + channel_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + defaultVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureValidVersionsIsMutable(); + validVersions_.add(s); + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int channel_ = 0; + /** + *
+       * The release channel this configuration applies to.
+       * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * @return The enum numeric value on the wire for channel. + */ + @java.lang.Override public int getChannelValue() { + return channel_; + } + /** + *
+       * The release channel this configuration applies to.
+       * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * @param value The enum numeric value on the wire for channel to set. + * @return This builder for chaining. + */ + public Builder setChannelValue(int value) { + channel_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * The release channel this configuration applies to.
+       * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * @return The channel. + */ + @java.lang.Override + public com.google.container.v1.ReleaseChannel.Channel getChannel() { + com.google.container.v1.ReleaseChannel.Channel result = com.google.container.v1.ReleaseChannel.Channel.forNumber(channel_); + return result == null ? com.google.container.v1.ReleaseChannel.Channel.UNRECOGNIZED : result; + } + /** + *
+       * The release channel this configuration applies to.
+       * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * @param value The channel to set. + * @return This builder for chaining. + */ + public Builder setChannel(com.google.container.v1.ReleaseChannel.Channel value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + channel_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * The release channel this configuration applies to.
+       * 
+ * + * .google.container.v1.ReleaseChannel.Channel channel = 1; + * @return This builder for chaining. + */ + public Builder clearChannel() { + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000002; + 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(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList validVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureValidVersionsIsMutable() { + if (!validVersions_.isModifiable()) { + validVersions_ = new com.google.protobuf.LazyStringArrayList(validVersions_); + } + bitField0_ |= 0x00000004; + } + /** + *
+       * List of valid versions for the channel.
+       * 
+ * + * repeated string valid_versions = 4; + * @return A list containing the validVersions. + */ + public com.google.protobuf.ProtocolStringList + getValidVersionsList() { + validVersions_.makeImmutable(); + 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); + } + /** + *
+       * 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); + bitField0_ |= 0x00000004; + 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); + bitField0_ |= 0x00000004; + 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_); + bitField0_ |= 0x00000004; + 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.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; + 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); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.ServerConfig.ReleaseChannelConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ServerConfig.ReleaseChannelConfig) + private static final com.google.container.v1.ServerConfig.ReleaseChannelConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.ServerConfig.ReleaseChannelConfig(); + } + + public static com.google.container.v1.ServerConfig.ReleaseChannelConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReleaseChannelConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.ServerConfig.ReleaseChannelConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int DEFAULT_CLUSTER_VERSION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList validNodeVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList validImageTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * 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; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList validMasterVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * 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; + @SuppressWarnings("serial") + private java.util.List channels_; + /** + *
+   * List of release channel configurations.
+   * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + @java.lang.Override + public java.util.List getChannelsList() { + return channels_; + } + /** + *
+   * List of release channel configurations.
+   * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + @java.lang.Override + public java.util.List + getChannelsOrBuilderList() { + return channels_; + } + /** + *
+   * List of release channel configurations.
+   * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + @java.lang.Override + public int getChannelsCount() { + return channels_.size(); + } + /** + *
+   * List of release channel configurations.
+   * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + @java.lang.Override + public com.google.container.v1.ServerConfig.ReleaseChannelConfig getChannels(int index) { + return channels_.get(index); + } + /** + *
+   * List of release channel configurations.
+   * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + @java.lang.Override + public com.google.container.v1.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultClusterVersion_)) { + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultImageType_)) { + 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)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultClusterVersion_)) { + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultImageType_)) { + 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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.ServerConfig)) { + return super.equals(obj); + } + com.google.container.v1.ServerConfig other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ServerConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.ServerConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.ServerConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ServerConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ServerConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.ServerConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.ServerConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.ServerConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.ServerConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new 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.v1.ServerConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ServerConfig) + com.google.container.v1.ServerConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ServerConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ServerConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ServerConfig.class, com.google.container.v1.ServerConfig.Builder.class); + } + + // Construct using com.google.container.v1.ServerConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + defaultClusterVersion_ = ""; + validNodeVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + defaultImageType_ = ""; + validImageTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + validMasterVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + if (channelsBuilder_ == null) { + channels_ = java.util.Collections.emptyList(); + } else { + channels_ = null; + channelsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ServerConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ServerConfig getDefaultInstanceForType() { + return com.google.container.v1.ServerConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ServerConfig build() { + com.google.container.v1.ServerConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ServerConfig buildPartial() { + com.google.container.v1.ServerConfig result = new com.google.container.v1.ServerConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1.ServerConfig result) { + if (channelsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + channels_ = java.util.Collections.unmodifiableList(channels_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.channels_ = channels_; + } else { + result.channels_ = channelsBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1.ServerConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.defaultClusterVersion_ = defaultClusterVersion_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + validNodeVersions_.makeImmutable(); + result.validNodeVersions_ = validNodeVersions_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.defaultImageType_ = defaultImageType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + validImageTypes_.makeImmutable(); + result.validImageTypes_ = validImageTypes_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + validMasterVersions_.makeImmutable(); + result.validMasterVersions_ = validMasterVersions_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ServerConfig) { + return mergeFrom((com.google.container.v1.ServerConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ServerConfig other) { + if (other == com.google.container.v1.ServerConfig.getDefaultInstance()) return this; + if (!other.getDefaultClusterVersion().isEmpty()) { + defaultClusterVersion_ = other.defaultClusterVersion_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.validNodeVersions_.isEmpty()) { + if (validNodeVersions_.isEmpty()) { + validNodeVersions_ = other.validNodeVersions_; + bitField0_ |= 0x00000002; + } else { + ensureValidNodeVersionsIsMutable(); + validNodeVersions_.addAll(other.validNodeVersions_); + } + onChanged(); + } + if (!other.getDefaultImageType().isEmpty()) { + defaultImageType_ = other.defaultImageType_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.validImageTypes_.isEmpty()) { + if (validImageTypes_.isEmpty()) { + validImageTypes_ = other.validImageTypes_; + bitField0_ |= 0x00000008; + } else { + ensureValidImageTypesIsMutable(); + validImageTypes_.addAll(other.validImageTypes_); + } + onChanged(); + } + if (!other.validMasterVersions_.isEmpty()) { + if (validMasterVersions_.isEmpty()) { + validMasterVersions_ = other.validMasterVersions_; + bitField0_ |= 0x00000010; + } else { + ensureValidMasterVersionsIsMutable(); + validMasterVersions_.addAll(other.validMasterVersions_); + } + onChanged(); + } + if (channelsBuilder_ == null) { + if (!other.channels_.isEmpty()) { + if (channels_.isEmpty()) { + channels_ = other.channels_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureChannelsIsMutable(); + channels_.addAll(other.channels_); + } + onChanged(); + } + } else { + if (!other.channels_.isEmpty()) { + if (channelsBuilder_.isEmpty()) { + channelsBuilder_.dispose(); + channelsBuilder_ = null; + channels_ = other.channels_; + bitField0_ = (bitField0_ & ~0x00000020); + channelsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getChannelsFieldBuilder() : null; + } else { + channelsBuilder_.addAllMessages(other.channels_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + defaultClusterVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureValidNodeVersionsIsMutable(); + validNodeVersions_.add(s); + break; + } // case 26 + case 34: { + defaultImageType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + ensureValidImageTypesIsMutable(); + validImageTypes_.add(s); + break; + } // case 42 + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + ensureValidMasterVersionsIsMutable(); + validMasterVersions_.add(s); + break; + } // case 50 + case 74: { + com.google.container.v1.ServerConfig.ReleaseChannelConfig m = + input.readMessage( + com.google.container.v1.ServerConfig.ReleaseChannelConfig.parser(), + extensionRegistry); + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.add(m); + } else { + channelsBuilder_.addMessage(m); + } + break; + } // case 74 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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; + bitField0_ |= 0x00000001; + 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(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList validNodeVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureValidNodeVersionsIsMutable() { + if (!validNodeVersions_.isModifiable()) { + validNodeVersions_ = new com.google.protobuf.LazyStringArrayList(validNodeVersions_); + } + bitField0_ |= 0x00000002; + } + /** + *
+     * 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() { + validNodeVersions_.makeImmutable(); + 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); + } + /** + *
+     * 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); + bitField0_ |= 0x00000002; + 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); + bitField0_ |= 0x00000002; + 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_); + bitField0_ |= 0x00000002; + 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.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; + 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); + bitField0_ |= 0x00000002; + 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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Default image type.
+     * 
+ * + * string default_image_type = 4; + * @return This builder for chaining. + */ + public Builder clearDefaultImageType() { + defaultImageType_ = getDefaultInstance().getDefaultImageType(); + bitField0_ = (bitField0_ & ~0x00000004); + 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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList validImageTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureValidImageTypesIsMutable() { + if (!validImageTypes_.isModifiable()) { + validImageTypes_ = new com.google.protobuf.LazyStringArrayList(validImageTypes_); + } + bitField0_ |= 0x00000008; + } + /** + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + * @return A list containing the validImageTypes. + */ + public com.google.protobuf.ProtocolStringList + getValidImageTypesList() { + validImageTypes_.makeImmutable(); + 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); + } + /** + *
+     * 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); + bitField0_ |= 0x00000008; + 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); + bitField0_ |= 0x00000008; + 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_); + bitField0_ |= 0x00000008; + 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.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; + 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); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList validMasterVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureValidMasterVersionsIsMutable() { + if (!validMasterVersions_.isModifiable()) { + validMasterVersions_ = new com.google.protobuf.LazyStringArrayList(validMasterVersions_); + } + bitField0_ |= 0x00000010; + } + /** + *
+     * 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() { + validMasterVersions_.makeImmutable(); + 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); + } + /** + *
+     * 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); + bitField0_ |= 0x00000010; + 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); + bitField0_ |= 0x00000010; + 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_); + bitField0_ |= 0x00000010; + 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.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010);; + 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); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.util.List channels_ = + java.util.Collections.emptyList(); + private void ensureChannelsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + channels_ = new java.util.ArrayList(channels_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.ServerConfig.ReleaseChannelConfig, com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder, com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder> channelsBuilder_; + + /** + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public java.util.List getChannelsList() { + if (channelsBuilder_ == null) { + return java.util.Collections.unmodifiableList(channels_); + } else { + return channelsBuilder_.getMessageList(); + } + } + /** + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public int getChannelsCount() { + if (channelsBuilder_ == null) { + return channels_.size(); + } else { + return channelsBuilder_.getCount(); + } + } + /** + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public com.google.container.v1.ServerConfig.ReleaseChannelConfig getChannels(int index) { + if (channelsBuilder_ == null) { + return channels_.get(index); + } else { + return channelsBuilder_.getMessage(index); + } + } + /** + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public Builder setChannels( + int index, com.google.container.v1.ServerConfig.ReleaseChannelConfig value) { + if (channelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChannelsIsMutable(); + channels_.set(index, value); + onChanged(); + } else { + channelsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public Builder setChannels( + int index, com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder builderForValue) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.set(index, builderForValue.build()); + onChanged(); + } else { + channelsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public Builder addChannels(com.google.container.v1.ServerConfig.ReleaseChannelConfig value) { + if (channelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChannelsIsMutable(); + channels_.add(value); + onChanged(); + } else { + channelsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public Builder addChannels( + int index, com.google.container.v1.ServerConfig.ReleaseChannelConfig value) { + if (channelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChannelsIsMutable(); + channels_.add(index, value); + onChanged(); + } else { + channelsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public Builder addChannels( + com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder builderForValue) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.add(builderForValue.build()); + onChanged(); + } else { + channelsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public Builder addChannels( + int index, com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder builderForValue) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.add(index, builderForValue.build()); + onChanged(); + } else { + channelsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public Builder addAllChannels( + java.lang.Iterable values) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, channels_); + onChanged(); + } else { + channelsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public Builder clearChannels() { + if (channelsBuilder_ == null) { + channels_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + channelsBuilder_.clear(); + } + return this; + } + /** + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public Builder removeChannels(int index) { + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.remove(index); + onChanged(); + } else { + channelsBuilder_.remove(index); + } + return this; + } + /** + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder getChannelsBuilder( + int index) { + return getChannelsFieldBuilder().getBuilder(index); + } + /** + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder getChannelsOrBuilder( + int index) { + if (channelsBuilder_ == null) { + return channels_.get(index); } else { + return channelsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public java.util.List + getChannelsOrBuilderList() { + if (channelsBuilder_ != null) { + return channelsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(channels_); + } + } + /** + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder addChannelsBuilder() { + return getChannelsFieldBuilder().addBuilder( + com.google.container.v1.ServerConfig.ReleaseChannelConfig.getDefaultInstance()); + } + /** + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder addChannelsBuilder( + int index) { + return getChannelsFieldBuilder().addBuilder( + index, com.google.container.v1.ServerConfig.ReleaseChannelConfig.getDefaultInstance()); + } + /** + *
+     * List of release channel configurations.
+     * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + public java.util.List + getChannelsBuilderList() { + return getChannelsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.ServerConfig.ReleaseChannelConfig, com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder, com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder> + getChannelsFieldBuilder() { + if (channelsBuilder_ == null) { + channelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.ServerConfig.ReleaseChannelConfig, com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder, com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder>( + channels_, + ((bitField0_ & 0x00000020) != 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.v1.ServerConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ServerConfig) + private static final com.google.container.v1.ServerConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.ServerConfig(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.ServerConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfigOrBuilder.java new file mode 100644 index 000000000000..e955065869bb --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfigOrBuilder.java @@ -0,0 +1,217 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface ServerConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.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.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + java.util.List + getChannelsList(); + /** + *
+   * List of release channel configurations.
+   * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + com.google.container.v1.ServerConfig.ReleaseChannelConfig getChannels(int index); + /** + *
+   * List of release channel configurations.
+   * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + int getChannelsCount(); + /** + *
+   * List of release channel configurations.
+   * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + java.util.List + getChannelsOrBuilderList(); + /** + *
+   * List of release channel configurations.
+   * 
+ * + * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; + */ + com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder getChannelsOrBuilder( + int index); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServiceExternalIPsConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServiceExternalIPsConfig.java new file mode 100644 index 000000000000..ae4e6ddf34c5 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServiceExternalIPsConfig.java @@ -0,0 +1,497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Config to block services with externalIPs field.
+ * 
+ * + * Protobuf type {@code google.container.v1.ServiceExternalIPsConfig} + */ +public final class ServiceExternalIPsConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.ServiceExternalIPsConfig) + ServiceExternalIPsConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use ServiceExternalIPsConfig.newBuilder() to construct. + private ServiceExternalIPsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ServiceExternalIPsConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ServiceExternalIPsConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ServiceExternalIPsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ServiceExternalIPsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ServiceExternalIPsConfig.class, com.google.container.v1.ServiceExternalIPsConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * Whether Services with ExternalIPs field are allowed or not.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.ServiceExternalIPsConfig)) { + return super.equals(obj); + } + com.google.container.v1.ServiceExternalIPsConfig other = (com.google.container.v1.ServiceExternalIPsConfig) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ServiceExternalIPsConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ServiceExternalIPsConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ServiceExternalIPsConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ServiceExternalIPsConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ServiceExternalIPsConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ServiceExternalIPsConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ServiceExternalIPsConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.ServiceExternalIPsConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.ServiceExternalIPsConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.ServiceExternalIPsConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.ServiceExternalIPsConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.ServiceExternalIPsConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.ServiceExternalIPsConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Config to block services with externalIPs field.
+   * 
+ * + * Protobuf type {@code google.container.v1.ServiceExternalIPsConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ServiceExternalIPsConfig) + com.google.container.v1.ServiceExternalIPsConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ServiceExternalIPsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ServiceExternalIPsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ServiceExternalIPsConfig.class, com.google.container.v1.ServiceExternalIPsConfig.Builder.class); + } + + // Construct using com.google.container.v1.ServiceExternalIPsConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ServiceExternalIPsConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ServiceExternalIPsConfig getDefaultInstanceForType() { + return com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ServiceExternalIPsConfig build() { + com.google.container.v1.ServiceExternalIPsConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ServiceExternalIPsConfig buildPartial() { + com.google.container.v1.ServiceExternalIPsConfig result = new com.google.container.v1.ServiceExternalIPsConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.ServiceExternalIPsConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ServiceExternalIPsConfig) { + return mergeFrom((com.google.container.v1.ServiceExternalIPsConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ServiceExternalIPsConfig other) { + if (other == com.google.container.v1.ServiceExternalIPsConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enabled_ ; + /** + *
+     * Whether Services with ExternalIPs field are allowed or not.
+     * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Whether Services with ExternalIPs field are allowed or not.
+     * 
+ * + * bool enabled = 1; + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether Services with ExternalIPs field are allowed or not.
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.ServiceExternalIPsConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ServiceExternalIPsConfig) + private static final com.google.container.v1.ServiceExternalIPsConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.ServiceExternalIPsConfig(); + } + + public static com.google.container.v1.ServiceExternalIPsConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServiceExternalIPsConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.ServiceExternalIPsConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServiceExternalIPsConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServiceExternalIPsConfigOrBuilder.java new file mode 100644 index 000000000000..5ad404bf710c --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServiceExternalIPsConfigOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface ServiceExternalIPsConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ServiceExternalIPsConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether Services with ExternalIPs field are allowed or not.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java new file mode 100644 index 000000000000..bf7fb84e06a1 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java @@ -0,0 +1,1414 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * SetAddonsConfigRequest sets the addons associated with the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1.SetAddonsConfigRequest} + */ +public final class SetAddonsConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetAddonsConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetAddonsConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SetAddonsConfigRequest.class, com.google.container.v1.SetAddonsConfigRequest.Builder.class); + } + + private int bitField0_; + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2872 + * @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; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2872 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2878 + * @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; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2878 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object clusterId_ = ""; + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2882 + * @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; + } + } + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2882 + * @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.v1.AddonsConfig addonsConfig_; + /** + *
+   * Required. The desired configurations for the various addons available to
+   * run in the cluster.
+   * 
+ * + * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the addonsConfig field is set. + */ + @java.lang.Override + public boolean hasAddonsConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Required. The desired configurations for the various addons available to
+   * run in the cluster.
+   * 
+ * + * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return The addonsConfig. + */ + @java.lang.Override + public com.google.container.v1.AddonsConfig getAddonsConfig() { + return addonsConfig_ == null ? com.google.container.v1.AddonsConfig.getDefaultInstance() : addonsConfig_; + } + /** + *
+   * Required. The desired configurations for the various addons available to
+   * run in the cluster.
+   * 
+ * + * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.container.v1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() { + return addonsConfig_ == null ? com.google.container.v1.AddonsConfig.getDefaultInstance() : addonsConfig_; + } + + public static final int NAME_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getAddonsConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getAddonsConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.SetAddonsConfigRequest)) { + return super.equals(obj); + } + com.google.container.v1.SetAddonsConfigRequest other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.SetAddonsConfigRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.SetAddonsConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.SetAddonsConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.SetAddonsConfigRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.SetAddonsConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.SetAddonsConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.SetAddonsConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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; + } + /** + *
+   * SetAddonsConfigRequest sets the addons associated with the cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1.SetAddonsConfigRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.SetAddonsConfigRequest) + com.google.container.v1.SetAddonsConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetAddonsConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetAddonsConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SetAddonsConfigRequest.class, com.google.container.v1.SetAddonsConfigRequest.Builder.class); + } + + // Construct using com.google.container.v1.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) { + getAddonsConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + addonsConfig_ = null; + if (addonsConfigBuilder_ != null) { + addonsConfigBuilder_.dispose(); + addonsConfigBuilder_ = null; + } + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetAddonsConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1.SetAddonsConfigRequest getDefaultInstanceForType() { + return com.google.container.v1.SetAddonsConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.SetAddonsConfigRequest build() { + com.google.container.v1.SetAddonsConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.SetAddonsConfigRequest buildPartial() { + com.google.container.v1.SetAddonsConfigRequest result = new com.google.container.v1.SetAddonsConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.SetAddonsConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.addonsConfig_ = addonsConfigBuilder_ == null + ? addonsConfig_ + : addonsConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.name_ = name_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.SetAddonsConfigRequest) { + return mergeFrom((com.google.container.v1.SetAddonsConfigRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.SetAddonsConfigRequest other) { + if (other == com.google.container.v1.SetAddonsConfigRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasAddonsConfig()) { + mergeAddonsConfig(other.getAddonsConfig()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getAddonsConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 50: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2872 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2872 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2872 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2872 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2872 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2878 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2878 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2878 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2878 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2878 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2882 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2882 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2882 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2882 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2882 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.container.v1.AddonsConfig addonsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AddonsConfig, com.google.container.v1.AddonsConfig.Builder, com.google.container.v1.AddonsConfigOrBuilder> addonsConfigBuilder_; + /** + *
+     * Required. The desired configurations for the various addons available to
+     * run in the cluster.
+     * 
+ * + * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the addonsConfig field is set. + */ + public boolean hasAddonsConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * Required. The desired configurations for the various addons available to
+     * run in the cluster.
+     * 
+ * + * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return The addonsConfig. + */ + public com.google.container.v1.AddonsConfig getAddonsConfig() { + if (addonsConfigBuilder_ == null) { + return addonsConfig_ == null ? com.google.container.v1.AddonsConfig.getDefaultInstance() : addonsConfig_; + } else { + return addonsConfigBuilder_.getMessage(); + } + } + /** + *
+     * Required. The desired configurations for the various addons available to
+     * run in the cluster.
+     * 
+ * + * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setAddonsConfig(com.google.container.v1.AddonsConfig value) { + if (addonsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + addonsConfig_ = value; + } else { + addonsConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Required. The desired configurations for the various addons available to
+     * run in the cluster.
+     * 
+ * + * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setAddonsConfig( + com.google.container.v1.AddonsConfig.Builder builderForValue) { + if (addonsConfigBuilder_ == null) { + addonsConfig_ = builderForValue.build(); + } else { + addonsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Required. The desired configurations for the various addons available to
+     * run in the cluster.
+     * 
+ * + * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeAddonsConfig(com.google.container.v1.AddonsConfig value) { + if (addonsConfigBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + addonsConfig_ != null && + addonsConfig_ != com.google.container.v1.AddonsConfig.getDefaultInstance()) { + getAddonsConfigBuilder().mergeFrom(value); + } else { + addonsConfig_ = value; + } + } else { + addonsConfigBuilder_.mergeFrom(value); + } + if (addonsConfig_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + *
+     * Required. The desired configurations for the various addons available to
+     * run in the cluster.
+     * 
+ * + * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearAddonsConfig() { + bitField0_ = (bitField0_ & ~0x00000008); + addonsConfig_ = null; + if (addonsConfigBuilder_ != null) { + addonsConfigBuilder_.dispose(); + addonsConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Required. The desired configurations for the various addons available to
+     * run in the cluster.
+     * 
+ * + * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.container.v1.AddonsConfig.Builder getAddonsConfigBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getAddonsConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Required. The desired configurations for the various addons available to
+     * run in the cluster.
+     * 
+ * + * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.container.v1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() { + if (addonsConfigBuilder_ != null) { + return addonsConfigBuilder_.getMessageOrBuilder(); + } else { + return addonsConfig_ == null ? + com.google.container.v1.AddonsConfig.getDefaultInstance() : addonsConfig_; + } + } + /** + *
+     * Required. The desired configurations for the various addons available to
+     * run in the cluster.
+     * 
+ * + * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AddonsConfig, com.google.container.v1.AddonsConfig.Builder, com.google.container.v1.AddonsConfigOrBuilder> + getAddonsConfigFieldBuilder() { + if (addonsConfigBuilder_ == null) { + addonsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.AddonsConfig, com.google.container.v1.AddonsConfig.Builder, com.google.container.v1.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; + bitField0_ |= 0x00000010; + 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(); + bitField0_ = (bitField0_ & ~0x00000010); + 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; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.SetAddonsConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.SetAddonsConfigRequest) + private static final com.google.container.v1.SetAddonsConfigRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.SetAddonsConfigRequest(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.SetAddonsConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java new file mode 100644 index 000000000000..5a8e7503603a --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java @@ -0,0 +1,146 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface SetAddonsConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.SetAddonsConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2872 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2872 + * @return The bytes for projectId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2878 + * @return The zone. + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2878 + * @return The bytes for zone. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2882 + * @return The clusterId. + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2882 + * @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.v1.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.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return The addonsConfig. + */ + com.google.container.v1.AddonsConfig getAddonsConfig(); + /** + *
+   * Required. The desired configurations for the various addons available to
+   * run in the cluster.
+   * 
+ * + * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.container.v1.AddonsConfigOrBuilder getAddonsConfigOrBuilder(); + + /** + *
+   * The name (project, location, cluster) of the cluster to set addons.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 6; + * @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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java new file mode 100644 index 000000000000..482bae745dd3 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java @@ -0,0 +1,1687 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * 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.v1.SetLabelsRequest} + */ +public final class SetLabelsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetLabelsRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + 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.v1.ClusterServiceProto.internal_static_google_container_v1_SetLabelsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SetLabelsRequest.class, com.google.container.v1.SetLabelsRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4034 + * @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; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4034 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4040 + * @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; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4040 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object clusterId_ = ""; + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4044 + * @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; + } + } + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4044 + * @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< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetLabelsRequest_ResourceLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> resourceLabels_; + private com.google.protobuf.MapField + internalGetResourceLabels() { + if (resourceLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + return resourceLabels_; + } + public int getResourceLabelsCount() { + return internalGetResourceLabels().getMap().size(); + } + /** + *
+   * 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 NullPointerException("map key"); } + 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 /* nullable */ +java.lang.String getResourceLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + 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 NullPointerException("map key"); } + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * The name (project, location, cluster name) 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 name) 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetResourceLabels(), + ResourceLabelsDefaultEntryHolder.defaultEntry, + 4); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(labelFingerprint_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, labelFingerprint_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(labelFingerprint_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, labelFingerprint_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.SetLabelsRequest)) { + return super.equals(obj); + } + com.google.container.v1.SetLabelsRequest other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.SetLabelsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.SetLabelsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.SetLabelsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.SetLabelsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.SetLabelsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.SetLabelsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.SetLabelsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.SetLabelsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.SetLabelsRequest) + com.google.container.v1.SetLabelsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetLabelsRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetResourceLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + 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.v1.ClusterServiceProto.internal_static_google_container_v1_SetLabelsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SetLabelsRequest.class, com.google.container.v1.SetLabelsRequest.Builder.class); + } + + // Construct using com.google.container.v1.SetLabelsRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + internalGetMutableResourceLabels().clear(); + labelFingerprint_ = ""; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetLabelsRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1.SetLabelsRequest getDefaultInstanceForType() { + return com.google.container.v1.SetLabelsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.SetLabelsRequest build() { + com.google.container.v1.SetLabelsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.SetLabelsRequest buildPartial() { + com.google.container.v1.SetLabelsRequest result = new com.google.container.v1.SetLabelsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.SetLabelsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.resourceLabels_ = internalGetResourceLabels(); + result.resourceLabels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.labelFingerprint_ = labelFingerprint_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.SetLabelsRequest) { + return mergeFrom((com.google.container.v1.SetLabelsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.SetLabelsRequest other) { + if (other == com.google.container.v1.SetLabelsRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + internalGetMutableResourceLabels().mergeFrom( + other.internalGetResourceLabels()); + bitField0_ |= 0x00000008; + if (!other.getLabelFingerprint().isEmpty()) { + labelFingerprint_ = other.labelFingerprint_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000020; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + com.google.protobuf.MapEntry + resourceLabels__ = input.readMessage( + ResourceLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableResourceLabels().getMutableMap().put( + resourceLabels__.getKey(), resourceLabels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + labelFingerprint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 58: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4034 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4034 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4034 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4034 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4034 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4040 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4040 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4040 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4040 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4040 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4044 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4044 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4044 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4044 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4044 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> resourceLabels_; + private com.google.protobuf.MapField + internalGetResourceLabels() { + if (resourceLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + return resourceLabels_; + } + private com.google.protobuf.MapField + internalGetMutableResourceLabels() { + if (resourceLabels_ == null) { + resourceLabels_ = com.google.protobuf.MapField.newMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + if (!resourceLabels_.isMutable()) { + resourceLabels_ = resourceLabels_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + 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 NullPointerException("map key"); } + 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 /* nullable */ +java.lang.String getResourceLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + 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 NullPointerException("map key"); } + java.util.Map map = + internalGetResourceLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearResourceLabels() { + bitField0_ = (bitField0_ & ~0x00000008); + 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 NullPointerException("map key"); } + internalGetMutableResourceLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableResourceLabels() { + bitField0_ |= 0x00000008; + 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 NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableResourceLabels().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000008; + 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); + bitField0_ |= 0x00000008; + 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; + bitField0_ |= 0x00000010; + 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(); + bitField0_ = (bitField0_ & ~0x00000010); + 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; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster name) 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 name) 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 name) 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; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster name) 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(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster name) 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; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.SetLabelsRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.SetLabelsRequest) + private static final com.google.container.v1.SetLabelsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.SetLabelsRequest(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.SetLabelsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java new file mode 100644 index 000000000000..1f61cab38004 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java @@ -0,0 +1,200 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface SetLabelsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.SetLabelsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4034 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4034 + * @return The bytes for projectId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4040 + * @return The zone. + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4040 + * @return The bytes for zone. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4044 + * @return The clusterId. + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4044 + * @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]; + */ + /* nullable */ +java.lang.String getResourceLabelsOrDefault( + java.lang.String key, + /* nullable */ +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 name) 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 name) 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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java new file mode 100644 index 000000000000..b69329f67969 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java @@ -0,0 +1,1246 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for
+ * a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1.SetLegacyAbacRequest} + */ +public final class SetLegacyAbacRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetLegacyAbacRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetLegacyAbacRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SetLegacyAbacRequest.class, com.google.container.v1.SetLegacyAbacRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4069 + * @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; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4069 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4075 + * @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; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4075 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object clusterId_ = ""; + /** + *
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4079 + * @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; + } + } + /** + *
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4079 + * @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_ = false; + /** + *
+   * 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; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * The name (project, location, cluster name) 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 name) 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (enabled_ != false) { + output.writeBool(4, enabled_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, enabled_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.SetLegacyAbacRequest)) { + return super.equals(obj); + } + com.google.container.v1.SetLegacyAbacRequest other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.SetLegacyAbacRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.SetLegacyAbacRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.SetLegacyAbacRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.SetLegacyAbacRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.SetLegacyAbacRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.SetLegacyAbacRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.SetLegacyAbacRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.SetLegacyAbacRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.SetLegacyAbacRequest) + com.google.container.v1.SetLegacyAbacRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetLegacyAbacRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetLegacyAbacRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SetLegacyAbacRequest.class, com.google.container.v1.SetLegacyAbacRequest.Builder.class); + } + + // Construct using com.google.container.v1.SetLegacyAbacRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + enabled_ = false; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetLegacyAbacRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1.SetLegacyAbacRequest getDefaultInstanceForType() { + return com.google.container.v1.SetLegacyAbacRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.SetLegacyAbacRequest build() { + com.google.container.v1.SetLegacyAbacRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.SetLegacyAbacRequest buildPartial() { + com.google.container.v1.SetLegacyAbacRequest result = new com.google.container.v1.SetLegacyAbacRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.SetLegacyAbacRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.enabled_ = enabled_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.SetLegacyAbacRequest) { + return mergeFrom((com.google.container.v1.SetLegacyAbacRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.SetLegacyAbacRequest other) { + if (other == com.google.container.v1.SetLegacyAbacRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 50: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4069 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4069 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4069 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4069 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4069 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4075 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4075 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4075 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4075 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4075 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4079 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4079 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4079 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4079 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4079 + * @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; + bitField0_ |= 0x00000004; + 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; + bitField0_ |= 0x00000008; + 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() { + bitField0_ = (bitField0_ & ~0x00000008); + enabled_ = false; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster name) 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 name) 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 name) 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; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster name) 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(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster name) 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; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.SetLegacyAbacRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.SetLegacyAbacRequest) + private static final com.google.container.v1.SetLegacyAbacRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.SetLegacyAbacRequest(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.SetLegacyAbacRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java new file mode 100644 index 000000000000..3619a63e5a9a --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java @@ -0,0 +1,126 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface SetLegacyAbacRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.SetLegacyAbacRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4069 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4069 + * @return The bytes for projectId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4075 + * @return The zone. + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4075 + * @return The bytes for zone. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4079 + * @return The clusterId. + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4079 + * @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 name) 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 name) 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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java new file mode 100644 index 000000000000..c84ed0add9ce --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java @@ -0,0 +1,1480 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * SetLocationsRequest sets the locations of the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1.SetLocationsRequest} + */ +public final class SetLocationsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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.emptyList(); + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SetLocationsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetLocationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetLocationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SetLocationsRequest.class, com.google.container.v1.SetLocationsRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2898 + * @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; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2898 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2904 + * @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; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2904 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object clusterId_ = ""; + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2908 + * @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; + } + } + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2908 + * @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; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList locations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * 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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.SetLocationsRequest)) { + return super.equals(obj); + } + com.google.container.v1.SetLocationsRequest other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.SetLocationsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.SetLocationsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.SetLocationsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.SetLocationsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.SetLocationsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.SetLocationsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.SetLocationsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.SetLocationsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.SetLocationsRequest) + com.google.container.v1.SetLocationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetLocationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetLocationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SetLocationsRequest.class, com.google.container.v1.SetLocationsRequest.Builder.class); + } + + // Construct using com.google.container.v1.SetLocationsRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + locations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetLocationsRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1.SetLocationsRequest getDefaultInstanceForType() { + return com.google.container.v1.SetLocationsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.SetLocationsRequest build() { + com.google.container.v1.SetLocationsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.SetLocationsRequest buildPartial() { + com.google.container.v1.SetLocationsRequest result = new com.google.container.v1.SetLocationsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.SetLocationsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + locations_.makeImmutable(); + result.locations_ = locations_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.SetLocationsRequest) { + return mergeFrom((com.google.container.v1.SetLocationsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.SetLocationsRequest other) { + if (other == com.google.container.v1.SetLocationsRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.locations_.isEmpty()) { + if (locations_.isEmpty()) { + locations_ = other.locations_; + bitField0_ |= 0x00000008; + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureLocationsIsMutable(); + locations_.add(s); + break; + } // case 34 + case 50: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2898 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2898 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2898 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2898 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2898 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2904 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2904 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2904 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2904 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2904 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2908 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2908 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2908 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2908 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2908 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList locations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureLocationsIsMutable() { + if (!locations_.isModifiable()) { + locations_ = new com.google.protobuf.LazyStringArrayList(locations_); + } + bitField0_ |= 0x00000008; + } + /** + *
+     * 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() { + locations_.makeImmutable(); + 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); + } + /** + *
+     * 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); + bitField0_ |= 0x00000008; + 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); + bitField0_ |= 0x00000008; + 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_); + bitField0_ |= 0x00000008; + 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.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; + 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); + bitField0_ |= 0x00000008; + 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; + bitField0_ |= 0x00000010; + 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(); + bitField0_ = (bitField0_ & ~0x00000010); + 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; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.SetLocationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.SetLocationsRequest) + private static final com.google.container.v1.SetLocationsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.SetLocationsRequest(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.SetLocationsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java new file mode 100644 index 000000000000..a56ee224ce08 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java @@ -0,0 +1,181 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface SetLocationsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.SetLocationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2898 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2898 + * @return The bytes for projectId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2904 + * @return The zone. + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2904 + * @return The bytes for zone. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2908 + * @return The clusterId. + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2908 + * @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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java new file mode 100644 index 000000000000..9cdde09384d6 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java @@ -0,0 +1,1395 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * SetLoggingServiceRequest sets the logging service of a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1.SetLoggingServiceRequest} + */ +public final class SetLoggingServiceRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetLoggingServiceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetLoggingServiceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SetLoggingServiceRequest.class, com.google.container.v1.SetLoggingServiceRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2802 + * @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; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2802 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2808 + * @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; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2808 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object clusterId_ = ""; + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2812 + * @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; + } + } + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2812 + * @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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loggingService_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, loggingService_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loggingService_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, loggingService_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.SetLoggingServiceRequest)) { + return super.equals(obj); + } + com.google.container.v1.SetLoggingServiceRequest other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.SetLoggingServiceRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.SetLoggingServiceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.SetLoggingServiceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.SetLoggingServiceRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.SetLoggingServiceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.SetLoggingServiceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.SetLoggingServiceRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.SetLoggingServiceRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.SetLoggingServiceRequest) + com.google.container.v1.SetLoggingServiceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetLoggingServiceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetLoggingServiceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SetLoggingServiceRequest.class, com.google.container.v1.SetLoggingServiceRequest.Builder.class); + } + + // Construct using com.google.container.v1.SetLoggingServiceRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + loggingService_ = ""; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetLoggingServiceRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1.SetLoggingServiceRequest getDefaultInstanceForType() { + return com.google.container.v1.SetLoggingServiceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.SetLoggingServiceRequest build() { + com.google.container.v1.SetLoggingServiceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.SetLoggingServiceRequest buildPartial() { + com.google.container.v1.SetLoggingServiceRequest result = new com.google.container.v1.SetLoggingServiceRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.SetLoggingServiceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.loggingService_ = loggingService_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.SetLoggingServiceRequest) { + return mergeFrom((com.google.container.v1.SetLoggingServiceRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.SetLoggingServiceRequest other) { + if (other == com.google.container.v1.SetLoggingServiceRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getLoggingService().isEmpty()) { + loggingService_ = other.loggingService_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + loggingService_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2802 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2802 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2802 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2802 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2802 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2808 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2808 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2808 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2808 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2808 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2812 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2812 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2812 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2812 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2812 + * @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; + bitField0_ |= 0x00000004; + 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; + bitField0_ |= 0x00000008; + 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(); + bitField0_ = (bitField0_ & ~0x00000008); + 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; + bitField0_ |= 0x00000008; + 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; + bitField0_ |= 0x00000010; + 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(); + bitField0_ = (bitField0_ & ~0x00000010); + 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; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.SetLoggingServiceRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.SetLoggingServiceRequest) + private static final com.google.container.v1.SetLoggingServiceRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.SetLoggingServiceRequest(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.SetLoggingServiceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java new file mode 100644 index 000000000000..6d1378ac6be7 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java @@ -0,0 +1,156 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface SetLoggingServiceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.SetLoggingServiceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2802 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2802 + * @return The bytes for projectId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2808 + * @return The zone. + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2808 + * @return The bytes for zone. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2812 + * @return The clusterId. + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2812 + * @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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequest.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequest.java new file mode 100644 index 000000000000..0aba6dff2be8 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequest.java @@ -0,0 +1,1358 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * SetMaintenancePolicyRequest sets the maintenance policy for a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1.SetMaintenancePolicyRequest} + */ +public final class SetMaintenancePolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetMaintenancePolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetMaintenancePolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SetMaintenancePolicyRequest.class, com.google.container.v1.SetMaintenancePolicyRequest.Builder.class); + } + + private int bitField0_; + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Required. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * 
+ * + * 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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * 
+ * + * 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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.v1.MaintenancePolicy maintenancePolicy_; + /** + *
+   * Required. The maintenance policy to be set for the cluster. An empty field
+   * clears the existing maintenance policy.
+   * 
+ * + * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the maintenancePolicy field is set. + */ + @java.lang.Override + public boolean hasMaintenancePolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Required. The maintenance policy to be set for the cluster. An empty field
+   * clears the existing maintenance policy.
+   * 
+ * + * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return The maintenancePolicy. + */ + @java.lang.Override + public com.google.container.v1.MaintenancePolicy getMaintenancePolicy() { + return maintenancePolicy_ == null ? com.google.container.v1.MaintenancePolicy.getDefaultInstance() : maintenancePolicy_; + } + /** + *
+   * Required. The maintenance policy to be set for the cluster. An empty field
+   * clears the existing maintenance policy.
+   * 
+ * + * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.container.v1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { + return maintenancePolicy_ == null ? com.google.container.v1.MaintenancePolicy.getDefaultInstance() : maintenancePolicy_; + } + + public static final int NAME_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * The name (project, location, cluster name) 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 name) 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getMaintenancePolicy()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getMaintenancePolicy()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.SetMaintenancePolicyRequest)) { + return super.equals(obj); + } + com.google.container.v1.SetMaintenancePolicyRequest other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.SetMaintenancePolicyRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.SetMaintenancePolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.SetMaintenancePolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.SetMaintenancePolicyRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.SetMaintenancePolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.SetMaintenancePolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.SetMaintenancePolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.SetMaintenancePolicyRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.SetMaintenancePolicyRequest) + com.google.container.v1.SetMaintenancePolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetMaintenancePolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetMaintenancePolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SetMaintenancePolicyRequest.class, com.google.container.v1.SetMaintenancePolicyRequest.Builder.class); + } + + // Construct using com.google.container.v1.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) { + getMaintenancePolicyFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + maintenancePolicy_ = null; + if (maintenancePolicyBuilder_ != null) { + maintenancePolicyBuilder_.dispose(); + maintenancePolicyBuilder_ = null; + } + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetMaintenancePolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1.SetMaintenancePolicyRequest getDefaultInstanceForType() { + return com.google.container.v1.SetMaintenancePolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.SetMaintenancePolicyRequest build() { + com.google.container.v1.SetMaintenancePolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.SetMaintenancePolicyRequest buildPartial() { + com.google.container.v1.SetMaintenancePolicyRequest result = new com.google.container.v1.SetMaintenancePolicyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.SetMaintenancePolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.maintenancePolicy_ = maintenancePolicyBuilder_ == null + ? maintenancePolicy_ + : maintenancePolicyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.name_ = name_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.SetMaintenancePolicyRequest) { + return mergeFrom((com.google.container.v1.SetMaintenancePolicyRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.SetMaintenancePolicyRequest other) { + if (other == com.google.container.v1.SetMaintenancePolicyRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasMaintenancePolicy()) { + mergeMaintenancePolicy(other.getMaintenancePolicy()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getMaintenancePolicyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Required. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * 
+ * + * 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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * 
+ * + * 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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * 
+ * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * 
+ * + * 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; + bitField0_ |= 0x00000001; + 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; + bitField0_ |= 0x00000002; + 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(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + 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; + bitField0_ |= 0x00000004; + 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(); + bitField0_ = (bitField0_ & ~0x00000004); + 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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.container.v1.MaintenancePolicy maintenancePolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MaintenancePolicy, com.google.container.v1.MaintenancePolicy.Builder, com.google.container.v1.MaintenancePolicyOrBuilder> maintenancePolicyBuilder_; + /** + *
+     * Required. The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the maintenancePolicy field is set. + */ + public boolean hasMaintenancePolicy() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * Required. The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return The maintenancePolicy. + */ + public com.google.container.v1.MaintenancePolicy getMaintenancePolicy() { + if (maintenancePolicyBuilder_ == null) { + return maintenancePolicy_ == null ? com.google.container.v1.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.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setMaintenancePolicy(com.google.container.v1.MaintenancePolicy value) { + if (maintenancePolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maintenancePolicy_ = value; + } else { + maintenancePolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Required. The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setMaintenancePolicy( + com.google.container.v1.MaintenancePolicy.Builder builderForValue) { + if (maintenancePolicyBuilder_ == null) { + maintenancePolicy_ = builderForValue.build(); + } else { + maintenancePolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Required. The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeMaintenancePolicy(com.google.container.v1.MaintenancePolicy value) { + if (maintenancePolicyBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + maintenancePolicy_ != null && + maintenancePolicy_ != com.google.container.v1.MaintenancePolicy.getDefaultInstance()) { + getMaintenancePolicyBuilder().mergeFrom(value); + } else { + maintenancePolicy_ = value; + } + } else { + maintenancePolicyBuilder_.mergeFrom(value); + } + if (maintenancePolicy_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + *
+     * Required. The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearMaintenancePolicy() { + bitField0_ = (bitField0_ & ~0x00000008); + maintenancePolicy_ = null; + if (maintenancePolicyBuilder_ != null) { + maintenancePolicyBuilder_.dispose(); + maintenancePolicyBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Required. The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.container.v1.MaintenancePolicy.Builder getMaintenancePolicyBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getMaintenancePolicyFieldBuilder().getBuilder(); + } + /** + *
+     * Required. The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.container.v1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { + if (maintenancePolicyBuilder_ != null) { + return maintenancePolicyBuilder_.getMessageOrBuilder(); + } else { + return maintenancePolicy_ == null ? + com.google.container.v1.MaintenancePolicy.getDefaultInstance() : maintenancePolicy_; + } + } + /** + *
+     * Required. The maintenance policy to be set for the cluster. An empty field
+     * clears the existing maintenance policy.
+     * 
+ * + * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MaintenancePolicy, com.google.container.v1.MaintenancePolicy.Builder, com.google.container.v1.MaintenancePolicyOrBuilder> + getMaintenancePolicyFieldBuilder() { + if (maintenancePolicyBuilder_ == null) { + maintenancePolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MaintenancePolicy, com.google.container.v1.MaintenancePolicy.Builder, com.google.container.v1.MaintenancePolicyOrBuilder>( + getMaintenancePolicy(), + getParentForChildren(), + isClean()); + maintenancePolicy_ = null; + } + return maintenancePolicyBuilder_; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster name) 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 name) 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 name) 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; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster name) 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(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster name) 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; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.SetMaintenancePolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.SetMaintenancePolicyRequest) + private static final com.google.container.v1.SetMaintenancePolicyRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.SetMaintenancePolicyRequest(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.SetMaintenancePolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequestOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequestOrBuilder.java new file mode 100644 index 000000000000..44461d39b123 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequestOrBuilder.java @@ -0,0 +1,130 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface SetMaintenancePolicyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.SetMaintenancePolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * 
+ * + * 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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * 
+ * + * 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.v1.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.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return The maintenancePolicy. + */ + com.google.container.v1.MaintenancePolicy getMaintenancePolicy(); + /** + *
+   * Required. The maintenance policy to be set for the cluster. An empty field
+   * clears the existing maintenance policy.
+   * 
+ * + * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.container.v1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder(); + + /** + *
+   * The name (project, location, cluster name) 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 name) 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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java new file mode 100644 index 000000000000..b41c0e77e0bc --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java @@ -0,0 +1,1692 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * SetMasterAuthRequest updates the admin password of a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1.SetMasterAuthRequest} + */ +public final class SetMasterAuthRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetMasterAuthRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetMasterAuthRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SetMasterAuthRequest.class, com.google.container.v1.SetMasterAuthRequest.Builder.class); + } + + /** + *
+   * Operation type: what type update to perform.
+   * 
+ * + * Protobuf enum {@code google.container.v1.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< + Action> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Action findValueByNumber(int number) { + return Action.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.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.v1.SetMasterAuthRequest.Action) + } + + private int bitField0_; + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2981 + * @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; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2981 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2987 + * @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; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2987 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object clusterId_ = ""; + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2991 + * @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; + } + } + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2991 + * @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_ = 0; + /** + *
+   * Required. The exact form of action to be taken on the master auth.
+   * 
+ * + * .google.container.v1.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.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return The action. + */ + @java.lang.Override public com.google.container.v1.SetMasterAuthRequest.Action getAction() { + com.google.container.v1.SetMasterAuthRequest.Action result = com.google.container.v1.SetMasterAuthRequest.Action.forNumber(action_); + return result == null ? com.google.container.v1.SetMasterAuthRequest.Action.UNRECOGNIZED : result; + } + + public static final int UPDATE_FIELD_NUMBER = 5; + private com.google.container.v1.MasterAuth update_; + /** + *
+   * Required. A description of the update.
+   * 
+ * + * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the update field is set. + */ + @java.lang.Override + public boolean hasUpdate() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Required. A description of the update.
+   * 
+ * + * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return The update. + */ + @java.lang.Override + public com.google.container.v1.MasterAuth getUpdate() { + return update_ == null ? com.google.container.v1.MasterAuth.getDefaultInstance() : update_; + } + /** + *
+   * Required. A description of the update.
+   * 
+ * + * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.container.v1.MasterAuthOrBuilder getUpdateOrBuilder() { + return update_ == null ? com.google.container.v1.MasterAuth.getDefaultInstance() : update_; + } + + public static final int NAME_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (action_ != com.google.container.v1.SetMasterAuthRequest.Action.UNKNOWN.getNumber()) { + output.writeEnum(4, action_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getUpdate()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (action_ != com.google.container.v1.SetMasterAuthRequest.Action.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, action_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getUpdate()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.SetMasterAuthRequest)) { + return super.equals(obj); + } + com.google.container.v1.SetMasterAuthRequest other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.SetMasterAuthRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.SetMasterAuthRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.SetMasterAuthRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.SetMasterAuthRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.SetMasterAuthRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.SetMasterAuthRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.SetMasterAuthRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.SetMasterAuthRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.SetMasterAuthRequest) + com.google.container.v1.SetMasterAuthRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetMasterAuthRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetMasterAuthRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SetMasterAuthRequest.class, com.google.container.v1.SetMasterAuthRequest.Builder.class); + } + + // Construct using com.google.container.v1.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) { + getUpdateFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + action_ = 0; + update_ = null; + if (updateBuilder_ != null) { + updateBuilder_.dispose(); + updateBuilder_ = null; + } + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetMasterAuthRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1.SetMasterAuthRequest getDefaultInstanceForType() { + return com.google.container.v1.SetMasterAuthRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.SetMasterAuthRequest build() { + com.google.container.v1.SetMasterAuthRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.SetMasterAuthRequest buildPartial() { + com.google.container.v1.SetMasterAuthRequest result = new com.google.container.v1.SetMasterAuthRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.SetMasterAuthRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.action_ = action_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.update_ = updateBuilder_ == null + ? update_ + : updateBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.name_ = name_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.SetMasterAuthRequest) { + return mergeFrom((com.google.container.v1.SetMasterAuthRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.SetMasterAuthRequest other) { + if (other == com.google.container.v1.SetMasterAuthRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.action_ != 0) { + setActionValue(other.getActionValue()); + } + if (other.hasUpdate()) { + mergeUpdate(other.getUpdate()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000020; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + action_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + input.readMessage( + getUpdateFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 58: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2981 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2981 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2981 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2981 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2981 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2987 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2987 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2987 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2987 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2987 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2991 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2991 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2991 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2991 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2991 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int action_ = 0; + /** + *
+     * Required. The exact form of action to be taken on the master auth.
+     * 
+ * + * .google.container.v1.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.v1.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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Required. The exact form of action to be taken on the master auth.
+     * 
+ * + * .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return The action. + */ + @java.lang.Override + public com.google.container.v1.SetMasterAuthRequest.Action getAction() { + com.google.container.v1.SetMasterAuthRequest.Action result = com.google.container.v1.SetMasterAuthRequest.Action.forNumber(action_); + return result == null ? com.google.container.v1.SetMasterAuthRequest.Action.UNRECOGNIZED : result; + } + /** + *
+     * Required. The exact form of action to be taken on the master auth.
+     * 
+ * + * .google.container.v1.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.v1.SetMasterAuthRequest.Action value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + action_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Required. The exact form of action to be taken on the master auth.
+     * 
+ * + * .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearAction() { + bitField0_ = (bitField0_ & ~0x00000008); + action_ = 0; + onChanged(); + return this; + } + + private com.google.container.v1.MasterAuth update_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MasterAuth, com.google.container.v1.MasterAuth.Builder, com.google.container.v1.MasterAuthOrBuilder> updateBuilder_; + /** + *
+     * Required. A description of the update.
+     * 
+ * + * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the update field is set. + */ + public boolean hasUpdate() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+     * Required. A description of the update.
+     * 
+ * + * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return The update. + */ + public com.google.container.v1.MasterAuth getUpdate() { + if (updateBuilder_ == null) { + return update_ == null ? com.google.container.v1.MasterAuth.getDefaultInstance() : update_; + } else { + return updateBuilder_.getMessage(); + } + } + /** + *
+     * Required. A description of the update.
+     * 
+ * + * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setUpdate(com.google.container.v1.MasterAuth value) { + if (updateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + update_ = value; + } else { + updateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Required. A description of the update.
+     * 
+ * + * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setUpdate( + com.google.container.v1.MasterAuth.Builder builderForValue) { + if (updateBuilder_ == null) { + update_ = builderForValue.build(); + } else { + updateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Required. A description of the update.
+     * 
+ * + * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeUpdate(com.google.container.v1.MasterAuth value) { + if (updateBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + update_ != null && + update_ != com.google.container.v1.MasterAuth.getDefaultInstance()) { + getUpdateBuilder().mergeFrom(value); + } else { + update_ = value; + } + } else { + updateBuilder_.mergeFrom(value); + } + if (update_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + *
+     * Required. A description of the update.
+     * 
+ * + * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearUpdate() { + bitField0_ = (bitField0_ & ~0x00000010); + update_ = null; + if (updateBuilder_ != null) { + updateBuilder_.dispose(); + updateBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Required. A description of the update.
+     * 
+ * + * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.container.v1.MasterAuth.Builder getUpdateBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getUpdateFieldBuilder().getBuilder(); + } + /** + *
+     * Required. A description of the update.
+     * 
+ * + * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.container.v1.MasterAuthOrBuilder getUpdateOrBuilder() { + if (updateBuilder_ != null) { + return updateBuilder_.getMessageOrBuilder(); + } else { + return update_ == null ? + com.google.container.v1.MasterAuth.getDefaultInstance() : update_; + } + } + /** + *
+     * Required. A description of the update.
+     * 
+ * + * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MasterAuth, com.google.container.v1.MasterAuth.Builder, com.google.container.v1.MasterAuthOrBuilder> + getUpdateFieldBuilder() { + if (updateBuilder_ == null) { + updateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MasterAuth, com.google.container.v1.MasterAuth.Builder, com.google.container.v1.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; + bitField0_ |= 0x00000020; + 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(); + bitField0_ = (bitField0_ & ~0x00000020); + 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; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.SetMasterAuthRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.SetMasterAuthRequest) + private static final com.google.container.v1.SetMasterAuthRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.SetMasterAuthRequest(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.SetMasterAuthRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java new file mode 100644 index 000000000000..dbddba41ed97 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java @@ -0,0 +1,162 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface SetMasterAuthRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.SetMasterAuthRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2981 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2981 + * @return The bytes for projectId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2987 + * @return The zone. + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2987 + * @return The bytes for zone. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2991 + * @return The clusterId. + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2991 + * @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.v1.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.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return The action. + */ + com.google.container.v1.SetMasterAuthRequest.Action getAction(); + + /** + *
+   * Required. A description of the update.
+   * 
+ * + * .google.container.v1.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.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return The update. + */ + com.google.container.v1.MasterAuth getUpdate(); + /** + *
+   * Required. A description of the update.
+   * 
+ * + * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.container.v1.MasterAuthOrBuilder getUpdateOrBuilder(); + + /** + *
+   * The name (project, location, cluster) of the cluster to set auth.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 7; + * @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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java new file mode 100644 index 000000000000..af14d10aeb80 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java @@ -0,0 +1,1395 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * SetMonitoringServiceRequest sets the monitoring service of a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1.SetMonitoringServiceRequest} + */ +public final class SetMonitoringServiceRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetMonitoringServiceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetMonitoringServiceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SetMonitoringServiceRequest.class, com.google.container.v1.SetMonitoringServiceRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2837 + * @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; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2837 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2843 + * @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; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2843 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object clusterId_ = ""; + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2847 + * @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; + } + } + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2847 + * @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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(monitoringService_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, monitoringService_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(monitoringService_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, monitoringService_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.SetMonitoringServiceRequest)) { + return super.equals(obj); + } + com.google.container.v1.SetMonitoringServiceRequest other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.SetMonitoringServiceRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.SetMonitoringServiceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.SetMonitoringServiceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.SetMonitoringServiceRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.SetMonitoringServiceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.SetMonitoringServiceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.SetMonitoringServiceRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.SetMonitoringServiceRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.SetMonitoringServiceRequest) + com.google.container.v1.SetMonitoringServiceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetMonitoringServiceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetMonitoringServiceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SetMonitoringServiceRequest.class, com.google.container.v1.SetMonitoringServiceRequest.Builder.class); + } + + // Construct using com.google.container.v1.SetMonitoringServiceRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + monitoringService_ = ""; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetMonitoringServiceRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1.SetMonitoringServiceRequest getDefaultInstanceForType() { + return com.google.container.v1.SetMonitoringServiceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.SetMonitoringServiceRequest build() { + com.google.container.v1.SetMonitoringServiceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.SetMonitoringServiceRequest buildPartial() { + com.google.container.v1.SetMonitoringServiceRequest result = new com.google.container.v1.SetMonitoringServiceRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.SetMonitoringServiceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.monitoringService_ = monitoringService_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.SetMonitoringServiceRequest) { + return mergeFrom((com.google.container.v1.SetMonitoringServiceRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.SetMonitoringServiceRequest other) { + if (other == com.google.container.v1.SetMonitoringServiceRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getMonitoringService().isEmpty()) { + monitoringService_ = other.monitoringService_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + monitoringService_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 50: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2837 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2837 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2837 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2837 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2837 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2843 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2843 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2843 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2843 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2843 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2847 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2847 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2847 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2847 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2847 + * @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; + bitField0_ |= 0x00000004; + 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; + bitField0_ |= 0x00000008; + 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(); + bitField0_ = (bitField0_ & ~0x00000008); + 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; + bitField0_ |= 0x00000008; + 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; + bitField0_ |= 0x00000010; + 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(); + bitField0_ = (bitField0_ & ~0x00000010); + 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; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.SetMonitoringServiceRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.SetMonitoringServiceRequest) + private static final com.google.container.v1.SetMonitoringServiceRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.SetMonitoringServiceRequest(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.SetMonitoringServiceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java new file mode 100644 index 000000000000..1dd7291ec8c1 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java @@ -0,0 +1,156 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface SetMonitoringServiceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.SetMonitoringServiceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2837 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2837 + * @return The bytes for projectId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2843 + * @return The zone. + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2843 + * @return The bytes for zone. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2847 + * @return The clusterId. + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2847 + * @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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java new file mode 100644 index 000000000000..c648079372cb --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java @@ -0,0 +1,1402 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * SetNetworkPolicyRequest enables/disables network policy for a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1.SetNetworkPolicyRequest} + */ +public final class SetNetworkPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetNetworkPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetNetworkPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SetNetworkPolicyRequest.class, com.google.container.v1.SetNetworkPolicyRequest.Builder.class); + } + + private int bitField0_; + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4229 + * @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; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4229 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4235 + * @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; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4235 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object clusterId_ = ""; + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4239 + * @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; + } + } + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4239 + * @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.v1.NetworkPolicy networkPolicy_; + /** + *
+   * Required. Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the networkPolicy field is set. + */ + @java.lang.Override + public boolean hasNetworkPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Required. Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return The networkPolicy. + */ + @java.lang.Override + public com.google.container.v1.NetworkPolicy getNetworkPolicy() { + return networkPolicy_ == null ? com.google.container.v1.NetworkPolicy.getDefaultInstance() : networkPolicy_; + } + /** + *
+   * Required. Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.container.v1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder() { + return networkPolicy_ == null ? com.google.container.v1.NetworkPolicy.getDefaultInstance() : networkPolicy_; + } + + public static final int NAME_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * The name (project, location, cluster name) 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 name) 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getNetworkPolicy()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getNetworkPolicy()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.SetNetworkPolicyRequest)) { + return super.equals(obj); + } + com.google.container.v1.SetNetworkPolicyRequest other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.SetNetworkPolicyRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.SetNetworkPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.SetNetworkPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.SetNetworkPolicyRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.SetNetworkPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.SetNetworkPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.SetNetworkPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.SetNetworkPolicyRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.SetNetworkPolicyRequest) + com.google.container.v1.SetNetworkPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetNetworkPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetNetworkPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SetNetworkPolicyRequest.class, com.google.container.v1.SetNetworkPolicyRequest.Builder.class); + } + + // Construct using com.google.container.v1.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) { + getNetworkPolicyFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + networkPolicy_ = null; + if (networkPolicyBuilder_ != null) { + networkPolicyBuilder_.dispose(); + networkPolicyBuilder_ = null; + } + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetNetworkPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1.SetNetworkPolicyRequest getDefaultInstanceForType() { + return com.google.container.v1.SetNetworkPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.SetNetworkPolicyRequest build() { + com.google.container.v1.SetNetworkPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.SetNetworkPolicyRequest buildPartial() { + com.google.container.v1.SetNetworkPolicyRequest result = new com.google.container.v1.SetNetworkPolicyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.SetNetworkPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.networkPolicy_ = networkPolicyBuilder_ == null + ? networkPolicy_ + : networkPolicyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.name_ = name_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.SetNetworkPolicyRequest) { + return mergeFrom((com.google.container.v1.SetNetworkPolicyRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.SetNetworkPolicyRequest other) { + if (other == com.google.container.v1.SetNetworkPolicyRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasNetworkPolicy()) { + mergeNetworkPolicy(other.getNetworkPolicy()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getNetworkPolicyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 50: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4229 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4229 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4229 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4229 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4229 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4235 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4235 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4235 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4235 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4235 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4239 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4239 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4239 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4239 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4239 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.container.v1.NetworkPolicy networkPolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkPolicy, com.google.container.v1.NetworkPolicy.Builder, com.google.container.v1.NetworkPolicyOrBuilder> networkPolicyBuilder_; + /** + *
+     * Required. Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the networkPolicy field is set. + */ + public boolean hasNetworkPolicy() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * Required. Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return The networkPolicy. + */ + public com.google.container.v1.NetworkPolicy getNetworkPolicy() { + if (networkPolicyBuilder_ == null) { + return networkPolicy_ == null ? com.google.container.v1.NetworkPolicy.getDefaultInstance() : networkPolicy_; + } else { + return networkPolicyBuilder_.getMessage(); + } + } + /** + *
+     * Required. Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setNetworkPolicy(com.google.container.v1.NetworkPolicy value) { + if (networkPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkPolicy_ = value; + } else { + networkPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Required. Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setNetworkPolicy( + com.google.container.v1.NetworkPolicy.Builder builderForValue) { + if (networkPolicyBuilder_ == null) { + networkPolicy_ = builderForValue.build(); + } else { + networkPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Required. Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeNetworkPolicy(com.google.container.v1.NetworkPolicy value) { + if (networkPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + networkPolicy_ != null && + networkPolicy_ != com.google.container.v1.NetworkPolicy.getDefaultInstance()) { + getNetworkPolicyBuilder().mergeFrom(value); + } else { + networkPolicy_ = value; + } + } else { + networkPolicyBuilder_.mergeFrom(value); + } + if (networkPolicy_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + *
+     * Required. Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearNetworkPolicy() { + bitField0_ = (bitField0_ & ~0x00000008); + networkPolicy_ = null; + if (networkPolicyBuilder_ != null) { + networkPolicyBuilder_.dispose(); + networkPolicyBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Required. Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.container.v1.NetworkPolicy.Builder getNetworkPolicyBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getNetworkPolicyFieldBuilder().getBuilder(); + } + /** + *
+     * Required. Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.container.v1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder() { + if (networkPolicyBuilder_ != null) { + return networkPolicyBuilder_.getMessageOrBuilder(); + } else { + return networkPolicy_ == null ? + com.google.container.v1.NetworkPolicy.getDefaultInstance() : networkPolicy_; + } + } + /** + *
+     * Required. Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkPolicy, com.google.container.v1.NetworkPolicy.Builder, com.google.container.v1.NetworkPolicyOrBuilder> + getNetworkPolicyFieldBuilder() { + if (networkPolicyBuilder_ == null) { + networkPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkPolicy, com.google.container.v1.NetworkPolicy.Builder, com.google.container.v1.NetworkPolicyOrBuilder>( + getNetworkPolicy(), + getParentForChildren(), + isClean()); + networkPolicy_ = null; + } + return networkPolicyBuilder_; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster name) 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 name) 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 name) 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; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster name) 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(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster name) 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; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.SetNetworkPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.SetNetworkPolicyRequest) + private static final com.google.container.v1.SetNetworkPolicyRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.SetNetworkPolicyRequest(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.SetNetworkPolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..eff3fe681e9a --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java @@ -0,0 +1,143 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface SetNetworkPolicyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.SetNetworkPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4229 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4229 + * @return The bytes for projectId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4235 + * @return The zone. + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4235 + * @return The bytes for zone. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4239 + * @return The clusterId. + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4239 + * @return The bytes for clusterId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * Required. Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1.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.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return The networkPolicy. + */ + com.google.container.v1.NetworkPolicy getNetworkPolicy(); + /** + *
+   * Required. Configuration options for the NetworkPolicy feature.
+   * 
+ * + * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.container.v1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder(); + + /** + *
+   * The name (project, location, cluster name) 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 name) 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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java new file mode 100644 index 000000000000..09978d20ab3a --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java @@ -0,0 +1,1594 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool.
+ * 
+ * + * Protobuf type {@code google.container.v1.SetNodePoolAutoscalingRequest} + */ +public final class SetNodePoolAutoscalingRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetNodePoolAutoscalingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetNodePoolAutoscalingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SetNodePoolAutoscalingRequest.class, com.google.container.v1.SetNodePoolAutoscalingRequest.Builder.class); + } + + private int bitField0_; + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2772 + * @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; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2772 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2778 + * @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; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2778 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object clusterId_ = ""; + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2782 + * @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; + } + } + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2782 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object nodePoolId_ = ""; + /** + *
+   * Deprecated. The name of the node pool to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2786 + * @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; + } + } + /** + *
+   * 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]; + * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2786 + * @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.v1.NodePoolAutoscaling autoscaling_; + /** + *
+   * Required. Autoscaling configuration for the node pool.
+   * 
+ * + * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the autoscaling field is set. + */ + @java.lang.Override + public boolean hasAutoscaling() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Required. Autoscaling configuration for the node pool.
+   * 
+ * + * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return The autoscaling. + */ + @java.lang.Override + public com.google.container.v1.NodePoolAutoscaling getAutoscaling() { + return autoscaling_ == null ? com.google.container.v1.NodePoolAutoscaling.getDefaultInstance() : autoscaling_; + } + /** + *
+   * Required. Autoscaling configuration for the node pool.
+   * 
+ * + * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.container.v1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder() { + return autoscaling_ == null ? com.google.container.v1.NodePoolAutoscaling.getDefaultInstance() : autoscaling_; + } + + public static final int NAME_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getAutoscaling()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getAutoscaling()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.SetNodePoolAutoscalingRequest)) { + return super.equals(obj); + } + com.google.container.v1.SetNodePoolAutoscalingRequest other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.SetNodePoolAutoscalingRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.SetNodePoolAutoscalingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.SetNodePoolAutoscalingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.SetNodePoolAutoscalingRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.SetNodePoolAutoscalingRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.SetNodePoolAutoscalingRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.SetNodePoolAutoscalingRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.SetNodePoolAutoscalingRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.SetNodePoolAutoscalingRequest) + com.google.container.v1.SetNodePoolAutoscalingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetNodePoolAutoscalingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetNodePoolAutoscalingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SetNodePoolAutoscalingRequest.class, com.google.container.v1.SetNodePoolAutoscalingRequest.Builder.class); + } + + // Construct using com.google.container.v1.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) { + getAutoscalingFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePoolId_ = ""; + autoscaling_ = null; + if (autoscalingBuilder_ != null) { + autoscalingBuilder_.dispose(); + autoscalingBuilder_ = null; + } + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetNodePoolAutoscalingRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1.SetNodePoolAutoscalingRequest getDefaultInstanceForType() { + return com.google.container.v1.SetNodePoolAutoscalingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.SetNodePoolAutoscalingRequest build() { + com.google.container.v1.SetNodePoolAutoscalingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.SetNodePoolAutoscalingRequest buildPartial() { + com.google.container.v1.SetNodePoolAutoscalingRequest result = new com.google.container.v1.SetNodePoolAutoscalingRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.SetNodePoolAutoscalingRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.nodePoolId_ = nodePoolId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.autoscaling_ = autoscalingBuilder_ == null + ? autoscaling_ + : autoscalingBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.name_ = name_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.SetNodePoolAutoscalingRequest) { + return mergeFrom((com.google.container.v1.SetNodePoolAutoscalingRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.SetNodePoolAutoscalingRequest other) { + if (other == com.google.container.v1.SetNodePoolAutoscalingRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasAutoscaling()) { + mergeAutoscaling(other.getAutoscaling()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000020; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + nodePoolId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getAutoscalingFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2772 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2772 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2772 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2772 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2772 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2778 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2778 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2778 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2778 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2778 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2782 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2782 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2782 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2782 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2782 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + *
+     * Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2786 + * @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; + } + } + /** + *
+     * 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]; + * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2786 + * @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; + } + } + /** + *
+     * 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]; + * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2786 + * @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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2786 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearNodePoolId() { + nodePoolId_ = getDefaultInstance().getNodePoolId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2786 + * @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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.container.v1.NodePoolAutoscaling autoscaling_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePoolAutoscaling, com.google.container.v1.NodePoolAutoscaling.Builder, com.google.container.v1.NodePoolAutoscalingOrBuilder> autoscalingBuilder_; + /** + *
+     * Required. Autoscaling configuration for the node pool.
+     * 
+ * + * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the autoscaling field is set. + */ + public boolean hasAutoscaling() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+     * Required. Autoscaling configuration for the node pool.
+     * 
+ * + * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return The autoscaling. + */ + public com.google.container.v1.NodePoolAutoscaling getAutoscaling() { + if (autoscalingBuilder_ == null) { + return autoscaling_ == null ? com.google.container.v1.NodePoolAutoscaling.getDefaultInstance() : autoscaling_; + } else { + return autoscalingBuilder_.getMessage(); + } + } + /** + *
+     * Required. Autoscaling configuration for the node pool.
+     * 
+ * + * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setAutoscaling(com.google.container.v1.NodePoolAutoscaling value) { + if (autoscalingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autoscaling_ = value; + } else { + autoscalingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Required. Autoscaling configuration for the node pool.
+     * 
+ * + * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setAutoscaling( + com.google.container.v1.NodePoolAutoscaling.Builder builderForValue) { + if (autoscalingBuilder_ == null) { + autoscaling_ = builderForValue.build(); + } else { + autoscalingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Required. Autoscaling configuration for the node pool.
+     * 
+ * + * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeAutoscaling(com.google.container.v1.NodePoolAutoscaling value) { + if (autoscalingBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + autoscaling_ != null && + autoscaling_ != com.google.container.v1.NodePoolAutoscaling.getDefaultInstance()) { + getAutoscalingBuilder().mergeFrom(value); + } else { + autoscaling_ = value; + } + } else { + autoscalingBuilder_.mergeFrom(value); + } + if (autoscaling_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + *
+     * Required. Autoscaling configuration for the node pool.
+     * 
+ * + * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearAutoscaling() { + bitField0_ = (bitField0_ & ~0x00000010); + autoscaling_ = null; + if (autoscalingBuilder_ != null) { + autoscalingBuilder_.dispose(); + autoscalingBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Required. Autoscaling configuration for the node pool.
+     * 
+ * + * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.container.v1.NodePoolAutoscaling.Builder getAutoscalingBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getAutoscalingFieldBuilder().getBuilder(); + } + /** + *
+     * Required. Autoscaling configuration for the node pool.
+     * 
+ * + * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.container.v1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder() { + if (autoscalingBuilder_ != null) { + return autoscalingBuilder_.getMessageOrBuilder(); + } else { + return autoscaling_ == null ? + com.google.container.v1.NodePoolAutoscaling.getDefaultInstance() : autoscaling_; + } + } + /** + *
+     * Required. Autoscaling configuration for the node pool.
+     * 
+ * + * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePoolAutoscaling, com.google.container.v1.NodePoolAutoscaling.Builder, com.google.container.v1.NodePoolAutoscalingOrBuilder> + getAutoscalingFieldBuilder() { + if (autoscalingBuilder_ == null) { + autoscalingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePoolAutoscaling, com.google.container.v1.NodePoolAutoscaling.Builder, com.google.container.v1.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; + bitField0_ |= 0x00000020; + 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(); + bitField0_ = (bitField0_ & ~0x00000020); + 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; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.SetNodePoolAutoscalingRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.SetNodePoolAutoscalingRequest) + private static final com.google.container.v1.SetNodePoolAutoscalingRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.SetNodePoolAutoscalingRequest(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.SetNodePoolAutoscalingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java new file mode 100644 index 000000000000..a3a619d773fe --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java @@ -0,0 +1,171 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface SetNodePoolAutoscalingRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.SetNodePoolAutoscalingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2772 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2772 + * @return The bytes for projectId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2778 + * @return The zone. + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2778 + * @return The bytes for zone. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2782 + * @return The clusterId. + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2782 + * @return The bytes for clusterId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * Deprecated. The name of the node pool to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2786 + * @return The nodePoolId. + */ + @java.lang.Deprecated java.lang.String getNodePoolId(); + /** + *
+   * Deprecated. The name of the node pool to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2786 + * @return The bytes for nodePoolId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getNodePoolIdBytes(); + + /** + *
+   * Required. Autoscaling configuration for the node pool.
+   * 
+ * + * .google.container.v1.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.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return The autoscaling. + */ + com.google.container.v1.NodePoolAutoscaling getAutoscaling(); + /** + *
+   * Required. Autoscaling configuration for the node pool.
+   * 
+ * + * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.container.v1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder(); + + /** + *
+   * The name (project, location, cluster, node pool) of the node pool to set
+   * autoscaler settings. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 6; + * @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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java new file mode 100644 index 000000000000..e97630081d6c --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java @@ -0,0 +1,1596 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * SetNodePoolManagementRequest sets the node management properties of a node
+ * pool.
+ * 
+ * + * Protobuf type {@code google.container.v1.SetNodePoolManagementRequest} + */ +public final class SetNodePoolManagementRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetNodePoolManagementRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetNodePoolManagementRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SetNodePoolManagementRequest.class, com.google.container.v1.SetNodePoolManagementRequest.Builder.class); + } + + private int bitField0_; + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3767 + * @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; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3767 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3773 + * @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; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3773 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object clusterId_ = ""; + /** + *
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3777 + * @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; + } + } + /** + *
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3777 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object nodePoolId_ = ""; + /** + *
+   * Deprecated. The name of the node pool to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3781 + * @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; + } + } + /** + *
+   * 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]; + * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3781 + * @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.v1.NodeManagement management_; + /** + *
+   * Required. NodeManagement configuration for the node pool.
+   * 
+ * + * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the management field is set. + */ + @java.lang.Override + public boolean hasManagement() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Required. NodeManagement configuration for the node pool.
+   * 
+ * + * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return The management. + */ + @java.lang.Override + public com.google.container.v1.NodeManagement getManagement() { + return management_ == null ? com.google.container.v1.NodeManagement.getDefaultInstance() : management_; + } + /** + *
+   * Required. NodeManagement configuration for the node pool.
+   * 
+ * + * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() { + return management_ == null ? com.google.container.v1.NodeManagement.getDefaultInstance() : management_; + } + + public static final int NAME_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getManagement()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getManagement()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.SetNodePoolManagementRequest)) { + return super.equals(obj); + } + com.google.container.v1.SetNodePoolManagementRequest other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.SetNodePoolManagementRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.SetNodePoolManagementRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.SetNodePoolManagementRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.SetNodePoolManagementRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.SetNodePoolManagementRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.SetNodePoolManagementRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.SetNodePoolManagementRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.SetNodePoolManagementRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.SetNodePoolManagementRequest) + com.google.container.v1.SetNodePoolManagementRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetNodePoolManagementRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetNodePoolManagementRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SetNodePoolManagementRequest.class, com.google.container.v1.SetNodePoolManagementRequest.Builder.class); + } + + // Construct using com.google.container.v1.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) { + getManagementFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePoolId_ = ""; + management_ = null; + if (managementBuilder_ != null) { + managementBuilder_.dispose(); + managementBuilder_ = null; + } + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetNodePoolManagementRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1.SetNodePoolManagementRequest getDefaultInstanceForType() { + return com.google.container.v1.SetNodePoolManagementRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.SetNodePoolManagementRequest build() { + com.google.container.v1.SetNodePoolManagementRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.SetNodePoolManagementRequest buildPartial() { + com.google.container.v1.SetNodePoolManagementRequest result = new com.google.container.v1.SetNodePoolManagementRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.SetNodePoolManagementRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.nodePoolId_ = nodePoolId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.management_ = managementBuilder_ == null + ? management_ + : managementBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.name_ = name_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.SetNodePoolManagementRequest) { + return mergeFrom((com.google.container.v1.SetNodePoolManagementRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.SetNodePoolManagementRequest other) { + if (other == com.google.container.v1.SetNodePoolManagementRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasManagement()) { + mergeManagement(other.getManagement()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000020; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + nodePoolId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getManagementFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 58: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3767 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3767 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3767 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3767 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3767 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3773 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3773 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3773 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3773 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3773 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3777 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3777 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3777 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3777 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3777 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + *
+     * Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3781 + * @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; + } + } + /** + *
+     * 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]; + * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3781 + * @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; + } + } + /** + *
+     * 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]; + * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3781 + * @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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3781 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearNodePoolId() { + nodePoolId_ = getDefaultInstance().getNodePoolId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3781 + * @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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.container.v1.NodeManagement management_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeManagement, com.google.container.v1.NodeManagement.Builder, com.google.container.v1.NodeManagementOrBuilder> managementBuilder_; + /** + *
+     * Required. NodeManagement configuration for the node pool.
+     * 
+ * + * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the management field is set. + */ + public boolean hasManagement() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+     * Required. NodeManagement configuration for the node pool.
+     * 
+ * + * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return The management. + */ + public com.google.container.v1.NodeManagement getManagement() { + if (managementBuilder_ == null) { + return management_ == null ? com.google.container.v1.NodeManagement.getDefaultInstance() : management_; + } else { + return managementBuilder_.getMessage(); + } + } + /** + *
+     * Required. NodeManagement configuration for the node pool.
+     * 
+ * + * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setManagement(com.google.container.v1.NodeManagement value) { + if (managementBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + management_ = value; + } else { + managementBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Required. NodeManagement configuration for the node pool.
+     * 
+ * + * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setManagement( + com.google.container.v1.NodeManagement.Builder builderForValue) { + if (managementBuilder_ == null) { + management_ = builderForValue.build(); + } else { + managementBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Required. NodeManagement configuration for the node pool.
+     * 
+ * + * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeManagement(com.google.container.v1.NodeManagement value) { + if (managementBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + management_ != null && + management_ != com.google.container.v1.NodeManagement.getDefaultInstance()) { + getManagementBuilder().mergeFrom(value); + } else { + management_ = value; + } + } else { + managementBuilder_.mergeFrom(value); + } + if (management_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + *
+     * Required. NodeManagement configuration for the node pool.
+     * 
+ * + * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearManagement() { + bitField0_ = (bitField0_ & ~0x00000010); + management_ = null; + if (managementBuilder_ != null) { + managementBuilder_.dispose(); + managementBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Required. NodeManagement configuration for the node pool.
+     * 
+ * + * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.container.v1.NodeManagement.Builder getManagementBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getManagementFieldBuilder().getBuilder(); + } + /** + *
+     * Required. NodeManagement configuration for the node pool.
+     * 
+ * + * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() { + if (managementBuilder_ != null) { + return managementBuilder_.getMessageOrBuilder(); + } else { + return management_ == null ? + com.google.container.v1.NodeManagement.getDefaultInstance() : management_; + } + } + /** + *
+     * Required. NodeManagement configuration for the node pool.
+     * 
+ * + * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeManagement, com.google.container.v1.NodeManagement.Builder, com.google.container.v1.NodeManagementOrBuilder> + getManagementFieldBuilder() { + if (managementBuilder_ == null) { + managementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeManagement, com.google.container.v1.NodeManagement.Builder, com.google.container.v1.NodeManagementOrBuilder>( + getManagement(), + getParentForChildren(), + isClean()); + management_ = null; + } + return managementBuilder_; + } + + private java.lang.Object 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; + bitField0_ |= 0x00000020; + 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(); + bitField0_ = (bitField0_ & ~0x00000020); + 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; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.SetNodePoolManagementRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.SetNodePoolManagementRequest) + private static final com.google.container.v1.SetNodePoolManagementRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.SetNodePoolManagementRequest(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.SetNodePoolManagementRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java new file mode 100644 index 000000000000..48527595fcce --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java @@ -0,0 +1,171 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface SetNodePoolManagementRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.SetNodePoolManagementRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3767 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3767 + * @return The bytes for projectId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3773 + * @return The zone. + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3773 + * @return The bytes for zone. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3777 + * @return The clusterId. + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3777 + * @return The bytes for clusterId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * Deprecated. The name of the node pool to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3781 + * @return The nodePoolId. + */ + @java.lang.Deprecated java.lang.String getNodePoolId(); + /** + *
+   * Deprecated. The name of the node pool to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3781 + * @return The bytes for nodePoolId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getNodePoolIdBytes(); + + /** + *
+   * Required. NodeManagement configuration for the node pool.
+   * 
+ * + * .google.container.v1.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.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return The management. + */ + com.google.container.v1.NodeManagement getManagement(); + /** + *
+   * Required. NodeManagement configuration for the node pool.
+   * 
+ * + * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder(); + + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to set
+   * management properties. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 7; + * @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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java new file mode 100644 index 000000000000..db7f1779fba3 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java @@ -0,0 +1,1435 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * SetNodePoolSizeRequest sets the size of a node pool.
+ * 
+ * + * Protobuf type {@code google.container.v1.SetNodePoolSizeRequest} + */ +public final class SetNodePoolSizeRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetNodePoolSizeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetNodePoolSizeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SetNodePoolSizeRequest.class, com.google.container.v1.SetNodePoolSizeRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3797 + * @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; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3797 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3803 + * @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; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3803 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object clusterId_ = ""; + /** + *
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3807 + * @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; + } + } + /** + *
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3807 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object nodePoolId_ = ""; + /** + *
+   * Deprecated. The name of the node pool to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3811 + * @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; + } + } + /** + *
+   * 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]; + * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3811 + * @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_ = 0; + /** + *
+   * 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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); + } + if (nodeCount_ != 0) { + output.writeInt32(5, nodeCount_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); + } + if (nodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, nodeCount_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.SetNodePoolSizeRequest)) { + return super.equals(obj); + } + com.google.container.v1.SetNodePoolSizeRequest other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.SetNodePoolSizeRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.SetNodePoolSizeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.SetNodePoolSizeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.SetNodePoolSizeRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.SetNodePoolSizeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.SetNodePoolSizeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.SetNodePoolSizeRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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 of a node pool.
+   * 
+ * + * Protobuf type {@code google.container.v1.SetNodePoolSizeRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.SetNodePoolSizeRequest) + com.google.container.v1.SetNodePoolSizeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetNodePoolSizeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetNodePoolSizeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SetNodePoolSizeRequest.class, com.google.container.v1.SetNodePoolSizeRequest.Builder.class); + } + + // Construct using com.google.container.v1.SetNodePoolSizeRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePoolId_ = ""; + nodeCount_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SetNodePoolSizeRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1.SetNodePoolSizeRequest getDefaultInstanceForType() { + return com.google.container.v1.SetNodePoolSizeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.SetNodePoolSizeRequest build() { + com.google.container.v1.SetNodePoolSizeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.SetNodePoolSizeRequest buildPartial() { + com.google.container.v1.SetNodePoolSizeRequest result = new com.google.container.v1.SetNodePoolSizeRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.SetNodePoolSizeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.nodePoolId_ = nodePoolId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.nodeCount_ = nodeCount_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.SetNodePoolSizeRequest) { + return mergeFrom((com.google.container.v1.SetNodePoolSizeRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.SetNodePoolSizeRequest other) { + if (other == com.google.container.v1.SetNodePoolSizeRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.getNodeCount() != 0) { + setNodeCount(other.getNodeCount()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000020; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + nodePoolId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + nodeCount_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 58: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3797 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3797 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3797 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3797 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3797 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3803 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3803 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3803 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3803 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3803 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3807 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3807 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3807 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3807 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3807 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + *
+     * Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3811 + * @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; + } + } + /** + *
+     * 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]; + * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3811 + * @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; + } + } + /** + *
+     * 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]; + * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3811 + * @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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3811 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearNodePoolId() { + nodePoolId_ = getDefaultInstance().getNodePoolId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool to update.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3811 + * @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; + bitField0_ |= 0x00000008; + 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; + bitField0_ |= 0x00000010; + 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() { + bitField0_ = (bitField0_ & ~0x00000010); + 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; + bitField0_ |= 0x00000020; + 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(); + bitField0_ = (bitField0_ & ~0x00000020); + 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; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.SetNodePoolSizeRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.SetNodePoolSizeRequest) + private static final com.google.container.v1.SetNodePoolSizeRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.SetNodePoolSizeRequest(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.SetNodePoolSizeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java new file mode 100644 index 000000000000..d0ac7b8354f2 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java @@ -0,0 +1,154 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface SetNodePoolSizeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.SetNodePoolSizeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3797 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3797 + * @return The bytes for projectId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3803 + * @return The zone. + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=3803 + * @return The bytes for zone. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3807 + * @return The clusterId. + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3807 + * @return The bytes for clusterId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * Deprecated. The name of the node pool to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3811 + * @return The nodePoolId. + */ + @java.lang.Deprecated java.lang.String getNodePoolId(); + /** + *
+   * Deprecated. The name of the node pool to update.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=3811 + * @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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedInstanceConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedInstanceConfig.java new file mode 100644 index 000000000000..23a64321ccd7 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedInstanceConfig.java @@ -0,0 +1,616 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * A set of Shielded Instance options.
+ * 
+ * + * Protobuf type {@code google.container.v1.ShieldedInstanceConfig} + */ +public final class ShieldedInstanceConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ShieldedInstanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ShieldedInstanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ShieldedInstanceConfig.class, com.google.container.v1.ShieldedInstanceConfig.Builder.class); + } + + public static final int ENABLE_SECURE_BOOT_FIELD_NUMBER = 1; + private boolean enableSecureBoot_ = false; + /** + *
+   * 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_ = false; + /** + *
+   * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.ShieldedInstanceConfig)) { + return super.equals(obj); + } + com.google.container.v1.ShieldedInstanceConfig other = (com.google.container.v1.ShieldedInstanceConfig) obj; + + if (getEnableSecureBoot() + != other.getEnableSecureBoot()) return false; + if (getEnableIntegrityMonitoring() + != other.getEnableIntegrityMonitoring()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ShieldedInstanceConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.ShieldedInstanceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.ShieldedInstanceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ShieldedInstanceConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ShieldedInstanceConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.ShieldedInstanceConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.ShieldedInstanceConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.ShieldedInstanceConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ShieldedInstanceConfig) + com.google.container.v1.ShieldedInstanceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ShieldedInstanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ShieldedInstanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ShieldedInstanceConfig.class, com.google.container.v1.ShieldedInstanceConfig.Builder.class); + } + + // Construct using com.google.container.v1.ShieldedInstanceConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enableSecureBoot_ = false; + enableIntegrityMonitoring_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ShieldedInstanceConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ShieldedInstanceConfig getDefaultInstanceForType() { + return com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ShieldedInstanceConfig build() { + com.google.container.v1.ShieldedInstanceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ShieldedInstanceConfig buildPartial() { + com.google.container.v1.ShieldedInstanceConfig result = new com.google.container.v1.ShieldedInstanceConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.ShieldedInstanceConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enableSecureBoot_ = enableSecureBoot_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.enableIntegrityMonitoring_ = enableIntegrityMonitoring_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ShieldedInstanceConfig) { + return mergeFrom((com.google.container.v1.ShieldedInstanceConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ShieldedInstanceConfig other) { + if (other == com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance()) return this; + if (other.getEnableSecureBoot() != false) { + setEnableSecureBoot(other.getEnableSecureBoot()); + } + if (other.getEnableIntegrityMonitoring() != false) { + setEnableIntegrityMonitoring(other.getEnableIntegrityMonitoring()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enableSecureBoot_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + enableIntegrityMonitoring_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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() { + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000002; + 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() { + bitField0_ = (bitField0_ & ~0x00000002); + 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.v1.ShieldedInstanceConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ShieldedInstanceConfig) + private static final com.google.container.v1.ShieldedInstanceConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.ShieldedInstanceConfig(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.ShieldedInstanceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedInstanceConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedInstanceConfigOrBuilder.java new file mode 100644 index 000000000000..aed598f6acc1 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedInstanceConfigOrBuilder.java @@ -0,0 +1,39 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface ShieldedInstanceConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedNodes.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedNodes.java new file mode 100644 index 000000000000..ef800aa6ef6a --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedNodes.java @@ -0,0 +1,497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Configuration of Shielded Nodes feature.
+ * 
+ * + * Protobuf type {@code google.container.v1.ShieldedNodes} + */ +public final class ShieldedNodes extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.ShieldedNodes) + ShieldedNodesOrBuilder { +private static final long serialVersionUID = 0L; + // Use ShieldedNodes.newBuilder() to construct. + private ShieldedNodes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ShieldedNodes() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ShieldedNodes(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ShieldedNodes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ShieldedNodes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ShieldedNodes.class, com.google.container.v1.ShieldedNodes.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.ShieldedNodes)) { + return super.equals(obj); + } + com.google.container.v1.ShieldedNodes other = (com.google.container.v1.ShieldedNodes) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ShieldedNodes parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ShieldedNodes parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ShieldedNodes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ShieldedNodes parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ShieldedNodes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.ShieldedNodes parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.ShieldedNodes parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.ShieldedNodes parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.ShieldedNodes parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.ShieldedNodes parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.ShieldedNodes parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.ShieldedNodes parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.ShieldedNodes prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration of Shielded Nodes feature.
+   * 
+ * + * Protobuf type {@code google.container.v1.ShieldedNodes} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ShieldedNodes) + com.google.container.v1.ShieldedNodesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ShieldedNodes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ShieldedNodes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ShieldedNodes.class, com.google.container.v1.ShieldedNodes.Builder.class); + } + + // Construct using com.google.container.v1.ShieldedNodes.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_ShieldedNodes_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ShieldedNodes getDefaultInstanceForType() { + return com.google.container.v1.ShieldedNodes.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ShieldedNodes build() { + com.google.container.v1.ShieldedNodes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ShieldedNodes buildPartial() { + com.google.container.v1.ShieldedNodes result = new com.google.container.v1.ShieldedNodes(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.ShieldedNodes result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ShieldedNodes) { + return mergeFrom((com.google.container.v1.ShieldedNodes)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ShieldedNodes other) { + if (other == com.google.container.v1.ShieldedNodes.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.ShieldedNodes) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ShieldedNodes) + private static final com.google.container.v1.ShieldedNodes DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.ShieldedNodes(); + } + + public static com.google.container.v1.ShieldedNodes getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ShieldedNodes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.ShieldedNodes getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedNodesOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedNodesOrBuilder.java new file mode 100644 index 000000000000..528a53c35fdb --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedNodesOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface ShieldedNodesOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ShieldedNodes) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether Shielded Nodes features are enabled on all nodes in this cluster.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SoleTenantConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SoleTenantConfig.java new file mode 100644 index 000000000000..f766300f7dbb --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SoleTenantConfig.java @@ -0,0 +1,2031 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * SoleTenantConfig contains the NodeAffinities to specify what shared sole
+ * tenant node groups should back the node pool.
+ * 
+ * + * Protobuf type {@code google.container.v1.SoleTenantConfig} + */ +public final class SoleTenantConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.SoleTenantConfig) + SoleTenantConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use SoleTenantConfig.newBuilder() to construct. + private SoleTenantConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SoleTenantConfig() { + nodeAffinities_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SoleTenantConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SoleTenantConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SoleTenantConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SoleTenantConfig.class, com.google.container.v1.SoleTenantConfig.Builder.class); + } + + public interface NodeAffinityOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.SoleTenantConfig.NodeAffinity) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Key for NodeAffinity.
+     * 
+ * + * string key = 1; + * @return The key. + */ + java.lang.String getKey(); + /** + *
+     * Key for NodeAffinity.
+     * 
+ * + * string key = 1; + * @return The bytes for key. + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + *
+     * Operator for NodeAffinity.
+     * 
+ * + * .google.container.v1.SoleTenantConfig.NodeAffinity.Operator operator = 2; + * @return The enum numeric value on the wire for operator. + */ + int getOperatorValue(); + /** + *
+     * Operator for NodeAffinity.
+     * 
+ * + * .google.container.v1.SoleTenantConfig.NodeAffinity.Operator operator = 2; + * @return The operator. + */ + com.google.container.v1.SoleTenantConfig.NodeAffinity.Operator getOperator(); + + /** + *
+     * Values for NodeAffinity.
+     * 
+ * + * repeated string values = 3; + * @return A list containing the values. + */ + java.util.List + getValuesList(); + /** + *
+     * Values for NodeAffinity.
+     * 
+ * + * repeated string values = 3; + * @return The count of values. + */ + int getValuesCount(); + /** + *
+     * Values for NodeAffinity.
+     * 
+ * + * 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); + /** + *
+     * Values for NodeAffinity.
+     * 
+ * + * 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); + } + /** + *
+   * Specifies the NodeAffinity key, values, and affinity operator according to
+   * [shared sole tenant node group
+   * affinities](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes#node_affinity_and_anti-affinity).
+   * 
+ * + * Protobuf type {@code google.container.v1.SoleTenantConfig.NodeAffinity} + */ + public static final class NodeAffinity extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.SoleTenantConfig.NodeAffinity) + NodeAffinityOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeAffinity.newBuilder() to construct. + private NodeAffinity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeAffinity() { + key_ = ""; + operator_ = 0; + values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NodeAffinity(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SoleTenantConfig_NodeAffinity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SoleTenantConfig_NodeAffinity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SoleTenantConfig.NodeAffinity.class, com.google.container.v1.SoleTenantConfig.NodeAffinity.Builder.class); + } + + /** + *
+     * Operator allows user to specify affinity or anti-affinity for the
+     * given key values.
+     * 
+ * + * Protobuf enum {@code google.container.v1.SoleTenantConfig.NodeAffinity.Operator} + */ + public enum Operator + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * Invalid or unspecified affinity operator.
+       * 
+ * + * OPERATOR_UNSPECIFIED = 0; + */ + OPERATOR_UNSPECIFIED(0), + /** + *
+       * Affinity operator.
+       * 
+ * + * IN = 1; + */ + IN(1), + /** + *
+       * Anti-affinity operator.
+       * 
+ * + * NOT_IN = 2; + */ + NOT_IN(2), + UNRECOGNIZED(-1), + ; + + /** + *
+       * Invalid or unspecified affinity operator.
+       * 
+ * + * OPERATOR_UNSPECIFIED = 0; + */ + public static final int OPERATOR_UNSPECIFIED_VALUE = 0; + /** + *
+       * Affinity operator.
+       * 
+ * + * IN = 1; + */ + public static final int IN_VALUE = 1; + /** + *
+       * Anti-affinity operator.
+       * 
+ * + * NOT_IN = 2; + */ + public static final int NOT_IN_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 Operator 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 Operator forNumber(int value) { + switch (value) { + case 0: return OPERATOR_UNSPECIFIED; + case 1: return IN; + case 2: return NOT_IN; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Operator> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Operator findValueByNumber(int number) { + return Operator.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.SoleTenantConfig.NodeAffinity.getDescriptor().getEnumTypes().get(0); + } + + private static final Operator[] VALUES = values(); + + public static Operator 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 Operator(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.SoleTenantConfig.NodeAffinity.Operator) + } + + public static final int KEY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; + /** + *
+     * Key for NodeAffinity.
+     * 
+ * + * 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 NodeAffinity.
+     * 
+ * + * 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 OPERATOR_FIELD_NUMBER = 2; + private int operator_ = 0; + /** + *
+     * Operator for NodeAffinity.
+     * 
+ * + * .google.container.v1.SoleTenantConfig.NodeAffinity.Operator operator = 2; + * @return The enum numeric value on the wire for operator. + */ + @java.lang.Override public int getOperatorValue() { + return operator_; + } + /** + *
+     * Operator for NodeAffinity.
+     * 
+ * + * .google.container.v1.SoleTenantConfig.NodeAffinity.Operator operator = 2; + * @return The operator. + */ + @java.lang.Override public com.google.container.v1.SoleTenantConfig.NodeAffinity.Operator getOperator() { + com.google.container.v1.SoleTenantConfig.NodeAffinity.Operator result = com.google.container.v1.SoleTenantConfig.NodeAffinity.Operator.forNumber(operator_); + return result == null ? com.google.container.v1.SoleTenantConfig.NodeAffinity.Operator.UNRECOGNIZED : result; + } + + public static final int VALUES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+     * Values for NodeAffinity.
+     * 
+ * + * repeated string values = 3; + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList + getValuesList() { + return values_; + } + /** + *
+     * Values for NodeAffinity.
+     * 
+ * + * repeated string values = 3; + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + *
+     * Values for NodeAffinity.
+     * 
+ * + * 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); + } + /** + *
+     * Values for NodeAffinity.
+     * 
+ * + * 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + if (operator_ != com.google.container.v1.SoleTenantConfig.NodeAffinity.Operator.OPERATOR_UNSPECIFIED.getNumber()) { + output.writeEnum(2, operator_); + } + for (int i = 0; i < values_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, values_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + if (operator_ != com.google.container.v1.SoleTenantConfig.NodeAffinity.Operator.OPERATOR_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, operator_); + } + { + int dataSize = 0; + for (int i = 0; i < values_.size(); i++) { + dataSize += computeStringSizeNoTag(values_.getRaw(i)); + } + size += dataSize; + size += 1 * getValuesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.SoleTenantConfig.NodeAffinity)) { + return super.equals(obj); + } + com.google.container.v1.SoleTenantConfig.NodeAffinity other = (com.google.container.v1.SoleTenantConfig.NodeAffinity) obj; + + if (!getKey() + .equals(other.getKey())) return false; + if (operator_ != other.operator_) return false; + if (!getValuesList() + .equals(other.getValuesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + OPERATOR_FIELD_NUMBER; + hash = (53 * hash) + operator_; + if (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.SoleTenantConfig.NodeAffinity parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.SoleTenantConfig.NodeAffinity parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.SoleTenantConfig.NodeAffinity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.SoleTenantConfig.NodeAffinity parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.SoleTenantConfig.NodeAffinity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.SoleTenantConfig.NodeAffinity parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.SoleTenantConfig.NodeAffinity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.SoleTenantConfig.NodeAffinity parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.SoleTenantConfig.NodeAffinity parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.SoleTenantConfig.NodeAffinity parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.SoleTenantConfig.NodeAffinity parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.SoleTenantConfig.NodeAffinity parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.SoleTenantConfig.NodeAffinity prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Specifies the NodeAffinity key, values, and affinity operator according to
+     * [shared sole tenant node group
+     * affinities](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes#node_affinity_and_anti-affinity).
+     * 
+ * + * Protobuf type {@code google.container.v1.SoleTenantConfig.NodeAffinity} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.SoleTenantConfig.NodeAffinity) + com.google.container.v1.SoleTenantConfig.NodeAffinityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SoleTenantConfig_NodeAffinity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SoleTenantConfig_NodeAffinity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SoleTenantConfig.NodeAffinity.class, com.google.container.v1.SoleTenantConfig.NodeAffinity.Builder.class); + } + + // Construct using com.google.container.v1.SoleTenantConfig.NodeAffinity.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + key_ = ""; + operator_ = 0; + values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SoleTenantConfig_NodeAffinity_descriptor; + } + + @java.lang.Override + public com.google.container.v1.SoleTenantConfig.NodeAffinity getDefaultInstanceForType() { + return com.google.container.v1.SoleTenantConfig.NodeAffinity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.SoleTenantConfig.NodeAffinity build() { + com.google.container.v1.SoleTenantConfig.NodeAffinity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.SoleTenantConfig.NodeAffinity buildPartial() { + com.google.container.v1.SoleTenantConfig.NodeAffinity result = new com.google.container.v1.SoleTenantConfig.NodeAffinity(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.SoleTenantConfig.NodeAffinity result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.key_ = key_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.operator_ = operator_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + values_.makeImmutable(); + result.values_ = values_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.SoleTenantConfig.NodeAffinity) { + return mergeFrom((com.google.container.v1.SoleTenantConfig.NodeAffinity)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.SoleTenantConfig.NodeAffinity other) { + if (other == com.google.container.v1.SoleTenantConfig.NodeAffinity.getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.operator_ != 0) { + setOperatorValue(other.getOperatorValue()); + } + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ |= 0x00000004; + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + key_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + operator_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureValuesIsMutable(); + values_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object key_ = ""; + /** + *
+       * Key for NodeAffinity.
+       * 
+ * + * 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 NodeAffinity.
+       * 
+ * + * 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 NodeAffinity.
+       * 
+ * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Key for NodeAffinity.
+       * 
+ * + * string key = 1; + * @return This builder for chaining. + */ + public Builder clearKey() { + key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * Key for NodeAffinity.
+       * 
+ * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int operator_ = 0; + /** + *
+       * Operator for NodeAffinity.
+       * 
+ * + * .google.container.v1.SoleTenantConfig.NodeAffinity.Operator operator = 2; + * @return The enum numeric value on the wire for operator. + */ + @java.lang.Override public int getOperatorValue() { + return operator_; + } + /** + *
+       * Operator for NodeAffinity.
+       * 
+ * + * .google.container.v1.SoleTenantConfig.NodeAffinity.Operator operator = 2; + * @param value The enum numeric value on the wire for operator to set. + * @return This builder for chaining. + */ + public Builder setOperatorValue(int value) { + operator_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Operator for NodeAffinity.
+       * 
+ * + * .google.container.v1.SoleTenantConfig.NodeAffinity.Operator operator = 2; + * @return The operator. + */ + @java.lang.Override + public com.google.container.v1.SoleTenantConfig.NodeAffinity.Operator getOperator() { + com.google.container.v1.SoleTenantConfig.NodeAffinity.Operator result = com.google.container.v1.SoleTenantConfig.NodeAffinity.Operator.forNumber(operator_); + return result == null ? com.google.container.v1.SoleTenantConfig.NodeAffinity.Operator.UNRECOGNIZED : result; + } + /** + *
+       * Operator for NodeAffinity.
+       * 
+ * + * .google.container.v1.SoleTenantConfig.NodeAffinity.Operator operator = 2; + * @param value The operator to set. + * @return This builder for chaining. + */ + public Builder setOperator(com.google.container.v1.SoleTenantConfig.NodeAffinity.Operator value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + operator_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Operator for NodeAffinity.
+       * 
+ * + * .google.container.v1.SoleTenantConfig.NodeAffinity.Operator operator = 2; + * @return This builder for chaining. + */ + public Builder clearOperator() { + bitField0_ = (bitField0_ & ~0x00000002); + operator_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureValuesIsMutable() { + if (!values_.isModifiable()) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + } + bitField0_ |= 0x00000004; + } + /** + *
+       * Values for NodeAffinity.
+       * 
+ * + * repeated string values = 3; + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList + getValuesList() { + values_.makeImmutable(); + return values_; + } + /** + *
+       * Values for NodeAffinity.
+       * 
+ * + * repeated string values = 3; + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + *
+       * Values for NodeAffinity.
+       * 
+ * + * 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); + } + /** + *
+       * Values for NodeAffinity.
+       * 
+ * + * 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); + } + /** + *
+       * Values for NodeAffinity.
+       * 
+ * + * 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); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Values for NodeAffinity.
+       * 
+ * + * 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); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Values for NodeAffinity.
+       * 
+ * + * 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_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Values for NodeAffinity.
+       * 
+ * + * repeated string values = 3; + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; + onChanged(); + return this; + } + /** + *
+       * Values for NodeAffinity.
+       * 
+ * + * 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); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.SoleTenantConfig.NodeAffinity) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.SoleTenantConfig.NodeAffinity) + private static final com.google.container.v1.SoleTenantConfig.NodeAffinity DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.SoleTenantConfig.NodeAffinity(); + } + + public static com.google.container.v1.SoleTenantConfig.NodeAffinity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeAffinity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.SoleTenantConfig.NodeAffinity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int NODE_AFFINITIES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List nodeAffinities_; + /** + *
+   * NodeAffinities used to match to a shared sole tenant node group.
+   * 
+ * + * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + @java.lang.Override + public java.util.List getNodeAffinitiesList() { + return nodeAffinities_; + } + /** + *
+   * NodeAffinities used to match to a shared sole tenant node group.
+   * 
+ * + * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + @java.lang.Override + public java.util.List + getNodeAffinitiesOrBuilderList() { + return nodeAffinities_; + } + /** + *
+   * NodeAffinities used to match to a shared sole tenant node group.
+   * 
+ * + * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + @java.lang.Override + public int getNodeAffinitiesCount() { + return nodeAffinities_.size(); + } + /** + *
+   * NodeAffinities used to match to a shared sole tenant node group.
+   * 
+ * + * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + @java.lang.Override + public com.google.container.v1.SoleTenantConfig.NodeAffinity getNodeAffinities(int index) { + return nodeAffinities_.get(index); + } + /** + *
+   * NodeAffinities used to match to a shared sole tenant node group.
+   * 
+ * + * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + @java.lang.Override + public com.google.container.v1.SoleTenantConfig.NodeAffinityOrBuilder getNodeAffinitiesOrBuilder( + int index) { + return nodeAffinities_.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 < nodeAffinities_.size(); i++) { + output.writeMessage(1, nodeAffinities_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < nodeAffinities_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, nodeAffinities_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.SoleTenantConfig)) { + return super.equals(obj); + } + com.google.container.v1.SoleTenantConfig other = (com.google.container.v1.SoleTenantConfig) obj; + + if (!getNodeAffinitiesList() + .equals(other.getNodeAffinitiesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getNodeAffinitiesCount() > 0) { + hash = (37 * hash) + NODE_AFFINITIES_FIELD_NUMBER; + hash = (53 * hash) + getNodeAffinitiesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.SoleTenantConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.SoleTenantConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.SoleTenantConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.SoleTenantConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.SoleTenantConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.SoleTenantConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.SoleTenantConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.SoleTenantConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.SoleTenantConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.SoleTenantConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.SoleTenantConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.SoleTenantConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.SoleTenantConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * SoleTenantConfig contains the NodeAffinities to specify what shared sole
+   * tenant node groups should back the node pool.
+   * 
+ * + * Protobuf type {@code google.container.v1.SoleTenantConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.SoleTenantConfig) + com.google.container.v1.SoleTenantConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SoleTenantConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SoleTenantConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SoleTenantConfig.class, com.google.container.v1.SoleTenantConfig.Builder.class); + } + + // Construct using com.google.container.v1.SoleTenantConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (nodeAffinitiesBuilder_ == null) { + nodeAffinities_ = java.util.Collections.emptyList(); + } else { + nodeAffinities_ = null; + nodeAffinitiesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_SoleTenantConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.SoleTenantConfig getDefaultInstanceForType() { + return com.google.container.v1.SoleTenantConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.SoleTenantConfig build() { + com.google.container.v1.SoleTenantConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.SoleTenantConfig buildPartial() { + com.google.container.v1.SoleTenantConfig result = new com.google.container.v1.SoleTenantConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1.SoleTenantConfig result) { + if (nodeAffinitiesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + nodeAffinities_ = java.util.Collections.unmodifiableList(nodeAffinities_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.nodeAffinities_ = nodeAffinities_; + } else { + result.nodeAffinities_ = nodeAffinitiesBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1.SoleTenantConfig result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.SoleTenantConfig) { + return mergeFrom((com.google.container.v1.SoleTenantConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.SoleTenantConfig other) { + if (other == com.google.container.v1.SoleTenantConfig.getDefaultInstance()) return this; + if (nodeAffinitiesBuilder_ == null) { + if (!other.nodeAffinities_.isEmpty()) { + if (nodeAffinities_.isEmpty()) { + nodeAffinities_ = other.nodeAffinities_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNodeAffinitiesIsMutable(); + nodeAffinities_.addAll(other.nodeAffinities_); + } + onChanged(); + } + } else { + if (!other.nodeAffinities_.isEmpty()) { + if (nodeAffinitiesBuilder_.isEmpty()) { + nodeAffinitiesBuilder_.dispose(); + nodeAffinitiesBuilder_ = null; + nodeAffinities_ = other.nodeAffinities_; + bitField0_ = (bitField0_ & ~0x00000001); + nodeAffinitiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNodeAffinitiesFieldBuilder() : null; + } else { + nodeAffinitiesBuilder_.addAllMessages(other.nodeAffinities_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.container.v1.SoleTenantConfig.NodeAffinity m = + input.readMessage( + com.google.container.v1.SoleTenantConfig.NodeAffinity.parser(), + extensionRegistry); + if (nodeAffinitiesBuilder_ == null) { + ensureNodeAffinitiesIsMutable(); + nodeAffinities_.add(m); + } else { + nodeAffinitiesBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List nodeAffinities_ = + java.util.Collections.emptyList(); + private void ensureNodeAffinitiesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + nodeAffinities_ = new java.util.ArrayList(nodeAffinities_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.SoleTenantConfig.NodeAffinity, com.google.container.v1.SoleTenantConfig.NodeAffinity.Builder, com.google.container.v1.SoleTenantConfig.NodeAffinityOrBuilder> nodeAffinitiesBuilder_; + + /** + *
+     * NodeAffinities used to match to a shared sole tenant node group.
+     * 
+ * + * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + public java.util.List getNodeAffinitiesList() { + if (nodeAffinitiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodeAffinities_); + } else { + return nodeAffinitiesBuilder_.getMessageList(); + } + } + /** + *
+     * NodeAffinities used to match to a shared sole tenant node group.
+     * 
+ * + * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + public int getNodeAffinitiesCount() { + if (nodeAffinitiesBuilder_ == null) { + return nodeAffinities_.size(); + } else { + return nodeAffinitiesBuilder_.getCount(); + } + } + /** + *
+     * NodeAffinities used to match to a shared sole tenant node group.
+     * 
+ * + * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + public com.google.container.v1.SoleTenantConfig.NodeAffinity getNodeAffinities(int index) { + if (nodeAffinitiesBuilder_ == null) { + return nodeAffinities_.get(index); + } else { + return nodeAffinitiesBuilder_.getMessage(index); + } + } + /** + *
+     * NodeAffinities used to match to a shared sole tenant node group.
+     * 
+ * + * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + public Builder setNodeAffinities( + int index, com.google.container.v1.SoleTenantConfig.NodeAffinity value) { + if (nodeAffinitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeAffinitiesIsMutable(); + nodeAffinities_.set(index, value); + onChanged(); + } else { + nodeAffinitiesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * NodeAffinities used to match to a shared sole tenant node group.
+     * 
+ * + * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + public Builder setNodeAffinities( + int index, com.google.container.v1.SoleTenantConfig.NodeAffinity.Builder builderForValue) { + if (nodeAffinitiesBuilder_ == null) { + ensureNodeAffinitiesIsMutable(); + nodeAffinities_.set(index, builderForValue.build()); + onChanged(); + } else { + nodeAffinitiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * NodeAffinities used to match to a shared sole tenant node group.
+     * 
+ * + * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + public Builder addNodeAffinities(com.google.container.v1.SoleTenantConfig.NodeAffinity value) { + if (nodeAffinitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeAffinitiesIsMutable(); + nodeAffinities_.add(value); + onChanged(); + } else { + nodeAffinitiesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * NodeAffinities used to match to a shared sole tenant node group.
+     * 
+ * + * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + public Builder addNodeAffinities( + int index, com.google.container.v1.SoleTenantConfig.NodeAffinity value) { + if (nodeAffinitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeAffinitiesIsMutable(); + nodeAffinities_.add(index, value); + onChanged(); + } else { + nodeAffinitiesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * NodeAffinities used to match to a shared sole tenant node group.
+     * 
+ * + * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + public Builder addNodeAffinities( + com.google.container.v1.SoleTenantConfig.NodeAffinity.Builder builderForValue) { + if (nodeAffinitiesBuilder_ == null) { + ensureNodeAffinitiesIsMutable(); + nodeAffinities_.add(builderForValue.build()); + onChanged(); + } else { + nodeAffinitiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * NodeAffinities used to match to a shared sole tenant node group.
+     * 
+ * + * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + public Builder addNodeAffinities( + int index, com.google.container.v1.SoleTenantConfig.NodeAffinity.Builder builderForValue) { + if (nodeAffinitiesBuilder_ == null) { + ensureNodeAffinitiesIsMutable(); + nodeAffinities_.add(index, builderForValue.build()); + onChanged(); + } else { + nodeAffinitiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * NodeAffinities used to match to a shared sole tenant node group.
+     * 
+ * + * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + public Builder addAllNodeAffinities( + java.lang.Iterable values) { + if (nodeAffinitiesBuilder_ == null) { + ensureNodeAffinitiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nodeAffinities_); + onChanged(); + } else { + nodeAffinitiesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * NodeAffinities used to match to a shared sole tenant node group.
+     * 
+ * + * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + public Builder clearNodeAffinities() { + if (nodeAffinitiesBuilder_ == null) { + nodeAffinities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + nodeAffinitiesBuilder_.clear(); + } + return this; + } + /** + *
+     * NodeAffinities used to match to a shared sole tenant node group.
+     * 
+ * + * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + public Builder removeNodeAffinities(int index) { + if (nodeAffinitiesBuilder_ == null) { + ensureNodeAffinitiesIsMutable(); + nodeAffinities_.remove(index); + onChanged(); + } else { + nodeAffinitiesBuilder_.remove(index); + } + return this; + } + /** + *
+     * NodeAffinities used to match to a shared sole tenant node group.
+     * 
+ * + * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + public com.google.container.v1.SoleTenantConfig.NodeAffinity.Builder getNodeAffinitiesBuilder( + int index) { + return getNodeAffinitiesFieldBuilder().getBuilder(index); + } + /** + *
+     * NodeAffinities used to match to a shared sole tenant node group.
+     * 
+ * + * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + public com.google.container.v1.SoleTenantConfig.NodeAffinityOrBuilder getNodeAffinitiesOrBuilder( + int index) { + if (nodeAffinitiesBuilder_ == null) { + return nodeAffinities_.get(index); } else { + return nodeAffinitiesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * NodeAffinities used to match to a shared sole tenant node group.
+     * 
+ * + * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + public java.util.List + getNodeAffinitiesOrBuilderList() { + if (nodeAffinitiesBuilder_ != null) { + return nodeAffinitiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodeAffinities_); + } + } + /** + *
+     * NodeAffinities used to match to a shared sole tenant node group.
+     * 
+ * + * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + public com.google.container.v1.SoleTenantConfig.NodeAffinity.Builder addNodeAffinitiesBuilder() { + return getNodeAffinitiesFieldBuilder().addBuilder( + com.google.container.v1.SoleTenantConfig.NodeAffinity.getDefaultInstance()); + } + /** + *
+     * NodeAffinities used to match to a shared sole tenant node group.
+     * 
+ * + * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + public com.google.container.v1.SoleTenantConfig.NodeAffinity.Builder addNodeAffinitiesBuilder( + int index) { + return getNodeAffinitiesFieldBuilder().addBuilder( + index, com.google.container.v1.SoleTenantConfig.NodeAffinity.getDefaultInstance()); + } + /** + *
+     * NodeAffinities used to match to a shared sole tenant node group.
+     * 
+ * + * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + public java.util.List + getNodeAffinitiesBuilderList() { + return getNodeAffinitiesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.SoleTenantConfig.NodeAffinity, com.google.container.v1.SoleTenantConfig.NodeAffinity.Builder, com.google.container.v1.SoleTenantConfig.NodeAffinityOrBuilder> + getNodeAffinitiesFieldBuilder() { + if (nodeAffinitiesBuilder_ == null) { + nodeAffinitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.SoleTenantConfig.NodeAffinity, com.google.container.v1.SoleTenantConfig.NodeAffinity.Builder, com.google.container.v1.SoleTenantConfig.NodeAffinityOrBuilder>( + nodeAffinities_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + nodeAffinities_ = null; + } + return nodeAffinitiesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.SoleTenantConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.SoleTenantConfig) + private static final com.google.container.v1.SoleTenantConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.SoleTenantConfig(); + } + + public static com.google.container.v1.SoleTenantConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SoleTenantConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.SoleTenantConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SoleTenantConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SoleTenantConfigOrBuilder.java new file mode 100644 index 000000000000..6391f77d1654 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SoleTenantConfigOrBuilder.java @@ -0,0 +1,54 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface SoleTenantConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.SoleTenantConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * NodeAffinities used to match to a shared sole tenant node group.
+   * 
+ * + * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + java.util.List + getNodeAffinitiesList(); + /** + *
+   * NodeAffinities used to match to a shared sole tenant node group.
+   * 
+ * + * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + com.google.container.v1.SoleTenantConfig.NodeAffinity getNodeAffinities(int index); + /** + *
+   * NodeAffinities used to match to a shared sole tenant node group.
+   * 
+ * + * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + int getNodeAffinitiesCount(); + /** + *
+   * NodeAffinities used to match to a shared sole tenant node group.
+   * 
+ * + * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + java.util.List + getNodeAffinitiesOrBuilderList(); + /** + *
+   * NodeAffinities used to match to a shared sole tenant node group.
+   * 
+ * + * repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + com.google.container.v1.SoleTenantConfig.NodeAffinityOrBuilder getNodeAffinitiesOrBuilder( + int index); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StackType.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StackType.java new file mode 100644 index 000000000000..685246a84d08 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StackType.java @@ -0,0 +1,151 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Possible values for IP stack type
+ * 
+ * + * Protobuf enum {@code google.container.v1.StackType} + */ +public enum StackType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+   * Default value, will be defaulted as IPV4 only
+   * 
+ * + * STACK_TYPE_UNSPECIFIED = 0; + */ + STACK_TYPE_UNSPECIFIED(0), + /** + *
+   * Cluster is IPV4 only
+   * 
+ * + * IPV4 = 1; + */ + IPV4(1), + /** + *
+   * Cluster can use both IPv4 and IPv6
+   * 
+ * + * IPV4_IPV6 = 2; + */ + IPV4_IPV6(2), + UNRECOGNIZED(-1), + ; + + /** + *
+   * Default value, will be defaulted as IPV4 only
+   * 
+ * + * STACK_TYPE_UNSPECIFIED = 0; + */ + public static final int STACK_TYPE_UNSPECIFIED_VALUE = 0; + /** + *
+   * Cluster is IPV4 only
+   * 
+ * + * IPV4 = 1; + */ + public static final int IPV4_VALUE = 1; + /** + *
+   * Cluster can use both IPv4 and IPv6
+   * 
+ * + * IPV4_IPV6 = 2; + */ + public static final int IPV4_IPV6_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 StackType 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 StackType forNumber(int value) { + switch (value) { + case 0: return STACK_TYPE_UNSPECIFIED; + case 1: return IPV4; + case 2: return IPV4_IPV6; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + StackType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public StackType findValueByNumber(int number) { + return StackType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.getDescriptor().getEnumTypes().get(4); + } + + private static final StackType[] VALUES = values(); + + public static StackType 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 StackType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.StackType) +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java new file mode 100644 index 000000000000..c1d7f77e05b0 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java @@ -0,0 +1,1246 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * 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.v1.StartIPRotationRequest} + */ +public final class StartIPRotationRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_StartIPRotationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_StartIPRotationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.StartIPRotationRequest.class, com.google.container.v1.StartIPRotationRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4095 + * @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; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4095 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4101 + * @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; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4101 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object clusterId_ = ""; + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4105 + * @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; + } + } + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4105 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * The name (project, location, cluster name) 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 name) 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_ = false; + /** + *
+   * 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + if (rotateCredentials_ != false) { + output.writeBool(7, rotateCredentials_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } + if (rotateCredentials_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, rotateCredentials_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.StartIPRotationRequest)) { + return super.equals(obj); + } + com.google.container.v1.StartIPRotationRequest other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.StartIPRotationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.StartIPRotationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.StartIPRotationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.StartIPRotationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.StartIPRotationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.StartIPRotationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.StartIPRotationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.StartIPRotationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.StartIPRotationRequest) + com.google.container.v1.StartIPRotationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_StartIPRotationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_StartIPRotationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.StartIPRotationRequest.class, com.google.container.v1.StartIPRotationRequest.Builder.class); + } + + // Construct using com.google.container.v1.StartIPRotationRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + name_ = ""; + rotateCredentials_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_StartIPRotationRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1.StartIPRotationRequest getDefaultInstanceForType() { + return com.google.container.v1.StartIPRotationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.StartIPRotationRequest build() { + com.google.container.v1.StartIPRotationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.StartIPRotationRequest buildPartial() { + com.google.container.v1.StartIPRotationRequest result = new com.google.container.v1.StartIPRotationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.StartIPRotationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.rotateCredentials_ = rotateCredentials_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.StartIPRotationRequest) { + return mergeFrom((com.google.container.v1.StartIPRotationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.StartIPRotationRequest other) { + if (other == com.google.container.v1.StartIPRotationRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.getRotateCredentials() != false) { + setRotateCredentials(other.getRotateCredentials()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 50: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 50 + case 56: { + rotateCredentials_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 56 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4095 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4095 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4095 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4095 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4095 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4101 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4101 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4101 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4101 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4101 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4105 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4105 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4105 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4105 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4105 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster name) 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 name) 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 name) 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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster name) 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(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster name) 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; + bitField0_ |= 0x00000008; + 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; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Whether to rotate credentials during IP rotation.
+     * 
+ * + * bool rotate_credentials = 7; + * @return This builder for chaining. + */ + public Builder clearRotateCredentials() { + bitField0_ = (bitField0_ & ~0x00000010); + 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.v1.StartIPRotationRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.StartIPRotationRequest) + private static final com.google.container.v1.StartIPRotationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.StartIPRotationRequest(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.StartIPRotationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java new file mode 100644 index 000000000000..81dab2b0b198 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java @@ -0,0 +1,126 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface StartIPRotationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.StartIPRotationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4095 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4095 + * @return The bytes for projectId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4101 + * @return The zone. + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=4101 + * @return The bytes for zone. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4105 + * @return The clusterId. + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=4105 + * @return The bytes for clusterId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * The name (project, location, cluster name) 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 name) 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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatefulHAConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatefulHAConfig.java new file mode 100644 index 000000000000..4b9b1aa2fbe5 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatefulHAConfig.java @@ -0,0 +1,497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Configuration for the Stateful HA add-on.
+ * 
+ * + * Protobuf type {@code google.container.v1.StatefulHAConfig} + */ +public final class StatefulHAConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.StatefulHAConfig) + StatefulHAConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use StatefulHAConfig.newBuilder() to construct. + private StatefulHAConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StatefulHAConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StatefulHAConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_StatefulHAConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_StatefulHAConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.StatefulHAConfig.class, com.google.container.v1.StatefulHAConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * Whether the Stateful HA add-on 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.StatefulHAConfig)) { + return super.equals(obj); + } + com.google.container.v1.StatefulHAConfig other = (com.google.container.v1.StatefulHAConfig) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.StatefulHAConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.StatefulHAConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.StatefulHAConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.StatefulHAConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.StatefulHAConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.StatefulHAConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.StatefulHAConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.StatefulHAConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.StatefulHAConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.StatefulHAConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.StatefulHAConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.StatefulHAConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.StatefulHAConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new 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 Stateful HA add-on.
+   * 
+ * + * Protobuf type {@code google.container.v1.StatefulHAConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.StatefulHAConfig) + com.google.container.v1.StatefulHAConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_StatefulHAConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_StatefulHAConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.StatefulHAConfig.class, com.google.container.v1.StatefulHAConfig.Builder.class); + } + + // Construct using com.google.container.v1.StatefulHAConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_StatefulHAConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.StatefulHAConfig getDefaultInstanceForType() { + return com.google.container.v1.StatefulHAConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.StatefulHAConfig build() { + com.google.container.v1.StatefulHAConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.StatefulHAConfig buildPartial() { + com.google.container.v1.StatefulHAConfig result = new com.google.container.v1.StatefulHAConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.StatefulHAConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.StatefulHAConfig) { + return mergeFrom((com.google.container.v1.StatefulHAConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.StatefulHAConfig other) { + if (other == com.google.container.v1.StatefulHAConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enabled_ ; + /** + *
+     * Whether the Stateful HA add-on is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Whether the Stateful HA add-on 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether the Stateful HA add-on is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.StatefulHAConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.StatefulHAConfig) + private static final com.google.container.v1.StatefulHAConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.StatefulHAConfig(); + } + + public static com.google.container.v1.StatefulHAConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StatefulHAConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.StatefulHAConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatefulHAConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatefulHAConfigOrBuilder.java new file mode 100644 index 000000000000..36e5a470ba3c --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatefulHAConfigOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface StatefulHAConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.StatefulHAConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether the Stateful HA add-on is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java new file mode 100644 index 000000000000..70cd19f70b1b --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java @@ -0,0 +1,1064 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * StatusCondition describes why a cluster or a node pool has a certain status
+ * (e.g., ERROR or DEGRADED).
+ * 
+ * + * Protobuf type {@code google.container.v1.StatusCondition} + */ +public final class StatusCondition extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_StatusCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_StatusCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.StatusCondition.class, com.google.container.v1.StatusCondition.Builder.class); + } + + /** + *
+   * Code for each condition
+   * 
+ * + * Protobuf enum {@code google.container.v1.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.
+     * 
+ * + * CLOUD_KMS_KEY_ERROR = 7; + */ + CLOUD_KMS_KEY_ERROR(7), + /** + *
+     * Cluster CA is expiring soon.
+     * 
+ * + * CA_EXPIRING = 9; + */ + CA_EXPIRING(9), + 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.
+     * 
+ * + * CLOUD_KMS_KEY_ERROR = 7; + */ + public static final int CLOUD_KMS_KEY_ERROR_VALUE = 7; + /** + *
+     * Cluster CA is expiring soon.
+     * 
+ * + * CA_EXPIRING = 9; + */ + public static final int CA_EXPIRING_VALUE = 9; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + 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; + case 9: return CA_EXPIRING; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Code> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Code findValueByNumber(int number) { + return Code.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.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.v1.StatusCondition.Code) + } + + public static final int CODE_FIELD_NUMBER = 1; + private int code_ = 0; + /** + *
+   * Machine-friendly representation of the condition
+   * Deprecated. Use canonical_code instead.
+   * 
+ * + * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; + * @deprecated google.container.v1.StatusCondition.code is deprecated. + * See google/container/v1/cluster_service.proto;l=4306 + * @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.v1.StatusCondition.Code code = 1 [deprecated = true]; + * @deprecated google.container.v1.StatusCondition.code is deprecated. + * See google/container/v1/cluster_service.proto;l=4306 + * @return The code. + */ + @java.lang.Override @java.lang.Deprecated public com.google.container.v1.StatusCondition.Code getCode() { + com.google.container.v1.StatusCondition.Code result = com.google.container.v1.StatusCondition.Code.forNumber(code_); + return result == null ? com.google.container.v1.StatusCondition.Code.UNRECOGNIZED : result; + } + + public static final int MESSAGE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + 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_ = 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; + * @return The canonicalCode. + */ + @java.lang.Override public com.google.rpc.Code getCanonicalCode() { + com.google.rpc.Code result = com.google.rpc.Code.forNumber(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.v1.StatusCondition.Code.UNKNOWN.getNumber()) { + output.writeEnum(1, code_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); + } + if (canonicalCode_ != com.google.rpc.Code.OK.getNumber()) { + output.writeEnum(3, canonicalCode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (code_ != com.google.container.v1.StatusCondition.Code.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, code_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); + } + if (canonicalCode_ != com.google.rpc.Code.OK.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, canonicalCode_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.StatusCondition)) { + return super.equals(obj); + } + com.google.container.v1.StatusCondition other = (com.google.container.v1.StatusCondition) obj; + + if (code_ != other.code_) return false; + if (!getMessage() + .equals(other.getMessage())) return false; + if (canonicalCode_ != other.canonicalCode_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.StatusCondition parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.StatusCondition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.StatusCondition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.StatusCondition parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.StatusCondition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.StatusCondition parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.StatusCondition parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.StatusCondition} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.StatusCondition) + com.google.container.v1.StatusConditionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_StatusCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_StatusCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.StatusCondition.class, com.google.container.v1.StatusCondition.Builder.class); + } + + // Construct using com.google.container.v1.StatusCondition.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + code_ = 0; + message_ = ""; + canonicalCode_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_StatusCondition_descriptor; + } + + @java.lang.Override + public com.google.container.v1.StatusCondition getDefaultInstanceForType() { + return com.google.container.v1.StatusCondition.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.StatusCondition build() { + com.google.container.v1.StatusCondition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.StatusCondition buildPartial() { + com.google.container.v1.StatusCondition result = new com.google.container.v1.StatusCondition(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.StatusCondition result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.code_ = code_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.message_ = message_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.canonicalCode_ = canonicalCode_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.StatusCondition) { + return mergeFrom((com.google.container.v1.StatusCondition)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.StatusCondition other) { + if (other == com.google.container.v1.StatusCondition.getDefaultInstance()) return this; + if (other.code_ != 0) { + setCodeValue(other.getCodeValue()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.canonicalCode_ != 0) { + setCanonicalCodeValue(other.getCanonicalCodeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + code_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + message_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + canonicalCode_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int code_ = 0; + /** + *
+     * Machine-friendly representation of the condition
+     * Deprecated. Use canonical_code instead.
+     * 
+ * + * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; + * @deprecated google.container.v1.StatusCondition.code is deprecated. + * See google/container/v1/cluster_service.proto;l=4306 + * @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.v1.StatusCondition.Code code = 1 [deprecated = true]; + * @deprecated google.container.v1.StatusCondition.code is deprecated. + * See google/container/v1/cluster_service.proto;l=4306 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Machine-friendly representation of the condition
+     * Deprecated. Use canonical_code instead.
+     * 
+ * + * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; + * @deprecated google.container.v1.StatusCondition.code is deprecated. + * See google/container/v1/cluster_service.proto;l=4306 + * @return The code. + */ + @java.lang.Override + @java.lang.Deprecated public com.google.container.v1.StatusCondition.Code getCode() { + com.google.container.v1.StatusCondition.Code result = com.google.container.v1.StatusCondition.Code.forNumber(code_); + return result == null ? com.google.container.v1.StatusCondition.Code.UNRECOGNIZED : result; + } + /** + *
+     * Machine-friendly representation of the condition
+     * Deprecated. Use canonical_code instead.
+     * 
+ * + * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; + * @deprecated google.container.v1.StatusCondition.code is deprecated. + * See google/container/v1/cluster_service.proto;l=4306 + * @param value The code to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setCode(com.google.container.v1.StatusCondition.Code value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + code_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Machine-friendly representation of the condition
+     * Deprecated. Use canonical_code instead.
+     * 
+ * + * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; + * @deprecated google.container.v1.StatusCondition.code is deprecated. + * See google/container/v1/cluster_service.proto;l=4306 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearCode() { + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Human-friendly representation of the condition
+     * 
+ * + * string message = 2; + * @return This builder for chaining. + */ + public Builder clearMessage() { + message_ = getDefaultInstance().getMessage(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + 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; + bitField0_ |= 0x00000004; + 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() { + com.google.rpc.Code result = com.google.rpc.Code.forNumber(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(); + } + bitField0_ |= 0x00000004; + 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() { + bitField0_ = (bitField0_ & ~0x00000004); + 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.v1.StatusCondition) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.StatusCondition) + private static final com.google.container.v1.StatusCondition DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.StatusCondition(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.StatusCondition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusConditionOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusConditionOrBuilder.java new file mode 100644 index 000000000000..cf4b81fbcd91 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusConditionOrBuilder.java @@ -0,0 +1,74 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface StatusConditionOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.StatusCondition) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Machine-friendly representation of the condition
+   * Deprecated. Use canonical_code instead.
+   * 
+ * + * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; + * @deprecated google.container.v1.StatusCondition.code is deprecated. + * See google/container/v1/cluster_service.proto;l=4306 + * @return The enum numeric value on the wire for code. + */ + @java.lang.Deprecated int getCodeValue(); + /** + *
+   * Machine-friendly representation of the condition
+   * Deprecated. Use canonical_code instead.
+   * 
+ * + * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; + * @deprecated google.container.v1.StatusCondition.code is deprecated. + * See google/container/v1/cluster_service.proto;l=4306 + * @return The code. + */ + @java.lang.Deprecated com.google.container.v1.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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/TimeWindow.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/TimeWindow.java new file mode 100644 index 000000000000..264fe8e3e700 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/TimeWindow.java @@ -0,0 +1,1243 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Represents an arbitrary window of time.
+ * 
+ * + * Protobuf type {@code google.container.v1.TimeWindow} + */ +public final class TimeWindow extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_TimeWindow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_TimeWindow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.TimeWindow.class, com.google.container.v1.TimeWindow.Builder.class); + } + + private int bitField0_; + private int optionsCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object options_; + public enum OptionsCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + MAINTENANCE_EXCLUSION_OPTIONS(3), + OPTIONS_NOT_SET(0); + private final int value; + private OptionsCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OptionsCase valueOf(int value) { + return forNumber(value); + } + + public static OptionsCase forNumber(int value) { + switch (value) { + case 3: return MAINTENANCE_EXCLUSION_OPTIONS; + case 0: return OPTIONS_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OptionsCase + getOptionsCase() { + return OptionsCase.forNumber( + optionsCase_); + } + + public static final int MAINTENANCE_EXCLUSION_OPTIONS_FIELD_NUMBER = 3; + /** + *
+   * MaintenanceExclusionOptions provides maintenance exclusion related
+   * options.
+   * 
+ * + * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * @return Whether the maintenanceExclusionOptions field is set. + */ + @java.lang.Override + public boolean hasMaintenanceExclusionOptions() { + return optionsCase_ == 3; + } + /** + *
+   * MaintenanceExclusionOptions provides maintenance exclusion related
+   * options.
+   * 
+ * + * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * @return The maintenanceExclusionOptions. + */ + @java.lang.Override + public com.google.container.v1.MaintenanceExclusionOptions getMaintenanceExclusionOptions() { + if (optionsCase_ == 3) { + return (com.google.container.v1.MaintenanceExclusionOptions) options_; + } + return com.google.container.v1.MaintenanceExclusionOptions.getDefaultInstance(); + } + /** + *
+   * MaintenanceExclusionOptions provides maintenance exclusion related
+   * options.
+   * 
+ * + * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + */ + @java.lang.Override + public com.google.container.v1.MaintenanceExclusionOptionsOrBuilder getMaintenanceExclusionOptionsOrBuilder() { + if (optionsCase_ == 3) { + return (com.google.container.v1.MaintenanceExclusionOptions) options_; + } + return com.google.container.v1.MaintenanceExclusionOptions.getDefaultInstance(); + } + + public static final int START_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp startTime_; + /** + *
+   * 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 ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * 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 startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + 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 ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * 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 endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getEndTime()); + } + if (optionsCase_ == 3) { + output.writeMessage(3, (com.google.container.v1.MaintenanceExclusionOptions) options_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); + } + if (optionsCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.container.v1.MaintenanceExclusionOptions) options_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.TimeWindow)) { + return super.equals(obj); + } + com.google.container.v1.TimeWindow other = (com.google.container.v1.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 (!getOptionsCase().equals(other.getOptionsCase())) return false; + switch (optionsCase_) { + case 3: + if (!getMaintenanceExclusionOptions() + .equals(other.getMaintenanceExclusionOptions())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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(); + } + switch (optionsCase_) { + case 3: + hash = (37 * hash) + MAINTENANCE_EXCLUSION_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getMaintenanceExclusionOptions().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.TimeWindow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.TimeWindow parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.TimeWindow parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.TimeWindow parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.TimeWindow parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.TimeWindow parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.TimeWindow parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.TimeWindow} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.TimeWindow) + com.google.container.v1.TimeWindowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_TimeWindow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_TimeWindow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.TimeWindow.class, com.google.container.v1.TimeWindow.Builder.class); + } + + // Construct using com.google.container.v1.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) { + getStartTimeFieldBuilder(); + getEndTimeFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (maintenanceExclusionOptionsBuilder_ != null) { + maintenanceExclusionOptionsBuilder_.clear(); + } + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + optionsCase_ = 0; + options_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_TimeWindow_descriptor; + } + + @java.lang.Override + public com.google.container.v1.TimeWindow getDefaultInstanceForType() { + return com.google.container.v1.TimeWindow.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.TimeWindow build() { + com.google.container.v1.TimeWindow result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.TimeWindow buildPartial() { + com.google.container.v1.TimeWindow result = new com.google.container.v1.TimeWindow(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.TimeWindow result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.startTime_ = startTimeBuilder_ == null + ? startTime_ + : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.container.v1.TimeWindow result) { + result.optionsCase_ = optionsCase_; + result.options_ = this.options_; + if (optionsCase_ == 3 && + maintenanceExclusionOptionsBuilder_ != null) { + result.options_ = maintenanceExclusionOptionsBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.TimeWindow) { + return mergeFrom((com.google.container.v1.TimeWindow)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.TimeWindow other) { + if (other == com.google.container.v1.TimeWindow.getDefaultInstance()) return this; + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + switch (other.getOptionsCase()) { + case MAINTENANCE_EXCLUSION_OPTIONS: { + mergeMaintenanceExclusionOptions(other.getMaintenanceExclusionOptions()); + break; + } + case OPTIONS_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: { + input.readMessage( + getMaintenanceExclusionOptionsFieldBuilder().getBuilder(), + extensionRegistry); + optionsCase_ = 3; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int optionsCase_ = 0; + private java.lang.Object options_; + public OptionsCase + getOptionsCase() { + return OptionsCase.forNumber( + optionsCase_); + } + + public Builder clearOptions() { + optionsCase_ = 0; + options_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MaintenanceExclusionOptions, com.google.container.v1.MaintenanceExclusionOptions.Builder, com.google.container.v1.MaintenanceExclusionOptionsOrBuilder> maintenanceExclusionOptionsBuilder_; + /** + *
+     * MaintenanceExclusionOptions provides maintenance exclusion related
+     * options.
+     * 
+ * + * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * @return Whether the maintenanceExclusionOptions field is set. + */ + @java.lang.Override + public boolean hasMaintenanceExclusionOptions() { + return optionsCase_ == 3; + } + /** + *
+     * MaintenanceExclusionOptions provides maintenance exclusion related
+     * options.
+     * 
+ * + * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * @return The maintenanceExclusionOptions. + */ + @java.lang.Override + public com.google.container.v1.MaintenanceExclusionOptions getMaintenanceExclusionOptions() { + if (maintenanceExclusionOptionsBuilder_ == null) { + if (optionsCase_ == 3) { + return (com.google.container.v1.MaintenanceExclusionOptions) options_; + } + return com.google.container.v1.MaintenanceExclusionOptions.getDefaultInstance(); + } else { + if (optionsCase_ == 3) { + return maintenanceExclusionOptionsBuilder_.getMessage(); + } + return com.google.container.v1.MaintenanceExclusionOptions.getDefaultInstance(); + } + } + /** + *
+     * MaintenanceExclusionOptions provides maintenance exclusion related
+     * options.
+     * 
+ * + * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + */ + public Builder setMaintenanceExclusionOptions(com.google.container.v1.MaintenanceExclusionOptions value) { + if (maintenanceExclusionOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + options_ = value; + onChanged(); + } else { + maintenanceExclusionOptionsBuilder_.setMessage(value); + } + optionsCase_ = 3; + return this; + } + /** + *
+     * MaintenanceExclusionOptions provides maintenance exclusion related
+     * options.
+     * 
+ * + * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + */ + public Builder setMaintenanceExclusionOptions( + com.google.container.v1.MaintenanceExclusionOptions.Builder builderForValue) { + if (maintenanceExclusionOptionsBuilder_ == null) { + options_ = builderForValue.build(); + onChanged(); + } else { + maintenanceExclusionOptionsBuilder_.setMessage(builderForValue.build()); + } + optionsCase_ = 3; + return this; + } + /** + *
+     * MaintenanceExclusionOptions provides maintenance exclusion related
+     * options.
+     * 
+ * + * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + */ + public Builder mergeMaintenanceExclusionOptions(com.google.container.v1.MaintenanceExclusionOptions value) { + if (maintenanceExclusionOptionsBuilder_ == null) { + if (optionsCase_ == 3 && + options_ != com.google.container.v1.MaintenanceExclusionOptions.getDefaultInstance()) { + options_ = com.google.container.v1.MaintenanceExclusionOptions.newBuilder((com.google.container.v1.MaintenanceExclusionOptions) options_) + .mergeFrom(value).buildPartial(); + } else { + options_ = value; + } + onChanged(); + } else { + if (optionsCase_ == 3) { + maintenanceExclusionOptionsBuilder_.mergeFrom(value); + } else { + maintenanceExclusionOptionsBuilder_.setMessage(value); + } + } + optionsCase_ = 3; + return this; + } + /** + *
+     * MaintenanceExclusionOptions provides maintenance exclusion related
+     * options.
+     * 
+ * + * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + */ + public Builder clearMaintenanceExclusionOptions() { + if (maintenanceExclusionOptionsBuilder_ == null) { + if (optionsCase_ == 3) { + optionsCase_ = 0; + options_ = null; + onChanged(); + } + } else { + if (optionsCase_ == 3) { + optionsCase_ = 0; + options_ = null; + } + maintenanceExclusionOptionsBuilder_.clear(); + } + return this; + } + /** + *
+     * MaintenanceExclusionOptions provides maintenance exclusion related
+     * options.
+     * 
+ * + * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + */ + public com.google.container.v1.MaintenanceExclusionOptions.Builder getMaintenanceExclusionOptionsBuilder() { + return getMaintenanceExclusionOptionsFieldBuilder().getBuilder(); + } + /** + *
+     * MaintenanceExclusionOptions provides maintenance exclusion related
+     * options.
+     * 
+ * + * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + */ + @java.lang.Override + public com.google.container.v1.MaintenanceExclusionOptionsOrBuilder getMaintenanceExclusionOptionsOrBuilder() { + if ((optionsCase_ == 3) && (maintenanceExclusionOptionsBuilder_ != null)) { + return maintenanceExclusionOptionsBuilder_.getMessageOrBuilder(); + } else { + if (optionsCase_ == 3) { + return (com.google.container.v1.MaintenanceExclusionOptions) options_; + } + return com.google.container.v1.MaintenanceExclusionOptions.getDefaultInstance(); + } + } + /** + *
+     * MaintenanceExclusionOptions provides maintenance exclusion related
+     * options.
+     * 
+ * + * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MaintenanceExclusionOptions, com.google.container.v1.MaintenanceExclusionOptions.Builder, com.google.container.v1.MaintenanceExclusionOptionsOrBuilder> + getMaintenanceExclusionOptionsFieldBuilder() { + if (maintenanceExclusionOptionsBuilder_ == null) { + if (!(optionsCase_ == 3)) { + options_ = com.google.container.v1.MaintenanceExclusionOptions.getDefaultInstance(); + } + maintenanceExclusionOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.MaintenanceExclusionOptions, com.google.container.v1.MaintenanceExclusionOptions.Builder, com.google.container.v1.MaintenanceExclusionOptionsOrBuilder>( + (com.google.container.v1.MaintenanceExclusionOptions) options_, + getParentForChildren(), + isClean()); + options_ = null; + } + optionsCase_ = 3; + onChanged(); + return maintenanceExclusionOptionsBuilder_; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, 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 ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * 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; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + 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(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + 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 (((bitField0_ & 0x00000002) != 0) && + startTime_ != null && + startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + *
+     * The time that the window first starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000002); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The time that the window first starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000002; + 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 ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * 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; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + 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(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + 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 (((bitField0_ & 0x00000004) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + 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() { + bitField0_ = (bitField0_ & ~0x00000004); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000004; + 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.v1.TimeWindow) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.TimeWindow) + private static final com.google.container.v1.TimeWindow DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.TimeWindow(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.TimeWindow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/TimeWindowOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/TimeWindowOrBuilder.java new file mode 100644 index 000000000000..70af6730cca1 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/TimeWindowOrBuilder.java @@ -0,0 +1,99 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface TimeWindowOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.TimeWindow) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * MaintenanceExclusionOptions provides maintenance exclusion related
+   * options.
+   * 
+ * + * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * @return Whether the maintenanceExclusionOptions field is set. + */ + boolean hasMaintenanceExclusionOptions(); + /** + *
+   * MaintenanceExclusionOptions provides maintenance exclusion related
+   * options.
+   * 
+ * + * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * @return The maintenanceExclusionOptions. + */ + com.google.container.v1.MaintenanceExclusionOptions getMaintenanceExclusionOptions(); + /** + *
+   * MaintenanceExclusionOptions provides maintenance exclusion related
+   * options.
+   * 
+ * + * .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + */ + com.google.container.v1.MaintenanceExclusionOptionsOrBuilder getMaintenanceExclusionOptionsOrBuilder(); + + /** + *
+   * 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(); + + com.google.container.v1.TimeWindow.OptionsCase getOptionsCase(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java new file mode 100644 index 000000000000..5c222d8fc6bb --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java @@ -0,0 +1,1402 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * UpdateClusterRequest updates the settings of a cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1.UpdateClusterRequest} + */ +public final class UpdateClusterRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UpdateClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UpdateClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.UpdateClusterRequest.class, com.google.container.v1.UpdateClusterRequest.Builder.class); + } + + private int bitField0_; + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2614 + * @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; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2614 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2620 + * @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; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2620 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object clusterId_ = ""; + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2624 + * @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; + } + } + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2624 + * @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.v1.ClusterUpdate update_; + /** + *
+   * Required. A description of the update.
+   * 
+ * + * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the update field is set. + */ + @java.lang.Override + public boolean hasUpdate() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Required. A description of the update.
+   * 
+ * + * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return The update. + */ + @java.lang.Override + public com.google.container.v1.ClusterUpdate getUpdate() { + return update_ == null ? com.google.container.v1.ClusterUpdate.getDefaultInstance() : update_; + } + /** + *
+   * Required. A description of the update.
+   * 
+ * + * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.container.v1.ClusterUpdateOrBuilder getUpdateOrBuilder() { + return update_ == null ? com.google.container.v1.ClusterUpdate.getDefaultInstance() : update_; + } + + public static final int NAME_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getUpdate()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUpdate()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.UpdateClusterRequest)) { + return super.equals(obj); + } + com.google.container.v1.UpdateClusterRequest other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.UpdateClusterRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.UpdateClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.UpdateClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.UpdateClusterRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.UpdateClusterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.UpdateClusterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.UpdateClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.UpdateClusterRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.UpdateClusterRequest) + com.google.container.v1.UpdateClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UpdateClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UpdateClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.UpdateClusterRequest.class, com.google.container.v1.UpdateClusterRequest.Builder.class); + } + + // Construct using com.google.container.v1.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) { + getUpdateFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + update_ = null; + if (updateBuilder_ != null) { + updateBuilder_.dispose(); + updateBuilder_ = null; + } + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UpdateClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1.UpdateClusterRequest getDefaultInstanceForType() { + return com.google.container.v1.UpdateClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.UpdateClusterRequest build() { + com.google.container.v1.UpdateClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.UpdateClusterRequest buildPartial() { + com.google.container.v1.UpdateClusterRequest result = new com.google.container.v1.UpdateClusterRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.UpdateClusterRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.update_ = updateBuilder_ == null + ? update_ + : updateBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.name_ = name_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.UpdateClusterRequest) { + return mergeFrom((com.google.container.v1.UpdateClusterRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.UpdateClusterRequest other) { + if (other == com.google.container.v1.UpdateClusterRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasUpdate()) { + mergeUpdate(other.getUpdate()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getUpdateFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2614 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2614 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2614 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2614 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2614 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2620 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2620 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2620 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2620 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2620 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2624 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2624 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2624 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2624 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2624 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.container.v1.ClusterUpdate update_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ClusterUpdate, com.google.container.v1.ClusterUpdate.Builder, com.google.container.v1.ClusterUpdateOrBuilder> updateBuilder_; + /** + *
+     * Required. A description of the update.
+     * 
+ * + * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the update field is set. + */ + public boolean hasUpdate() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * Required. A description of the update.
+     * 
+ * + * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return The update. + */ + public com.google.container.v1.ClusterUpdate getUpdate() { + if (updateBuilder_ == null) { + return update_ == null ? com.google.container.v1.ClusterUpdate.getDefaultInstance() : update_; + } else { + return updateBuilder_.getMessage(); + } + } + /** + *
+     * Required. A description of the update.
+     * 
+ * + * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setUpdate(com.google.container.v1.ClusterUpdate value) { + if (updateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + update_ = value; + } else { + updateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Required. A description of the update.
+     * 
+ * + * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setUpdate( + com.google.container.v1.ClusterUpdate.Builder builderForValue) { + if (updateBuilder_ == null) { + update_ = builderForValue.build(); + } else { + updateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Required. A description of the update.
+     * 
+ * + * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeUpdate(com.google.container.v1.ClusterUpdate value) { + if (updateBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + update_ != null && + update_ != com.google.container.v1.ClusterUpdate.getDefaultInstance()) { + getUpdateBuilder().mergeFrom(value); + } else { + update_ = value; + } + } else { + updateBuilder_.mergeFrom(value); + } + if (update_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + *
+     * Required. A description of the update.
+     * 
+ * + * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearUpdate() { + bitField0_ = (bitField0_ & ~0x00000008); + update_ = null; + if (updateBuilder_ != null) { + updateBuilder_.dispose(); + updateBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Required. A description of the update.
+     * 
+ * + * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.container.v1.ClusterUpdate.Builder getUpdateBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getUpdateFieldBuilder().getBuilder(); + } + /** + *
+     * Required. A description of the update.
+     * 
+ * + * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.container.v1.ClusterUpdateOrBuilder getUpdateOrBuilder() { + if (updateBuilder_ != null) { + return updateBuilder_.getMessageOrBuilder(); + } else { + return update_ == null ? + com.google.container.v1.ClusterUpdate.getDefaultInstance() : update_; + } + } + /** + *
+     * Required. A description of the update.
+     * 
+ * + * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ClusterUpdate, com.google.container.v1.ClusterUpdate.Builder, com.google.container.v1.ClusterUpdateOrBuilder> + getUpdateFieldBuilder() { + if (updateBuilder_ == null) { + updateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ClusterUpdate, com.google.container.v1.ClusterUpdate.Builder, com.google.container.v1.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; + bitField0_ |= 0x00000010; + 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(); + bitField0_ = (bitField0_ & ~0x00000010); + 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; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.UpdateClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.UpdateClusterRequest) + private static final com.google.container.v1.UpdateClusterRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.UpdateClusterRequest(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.UpdateClusterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java new file mode 100644 index 000000000000..b1bc4ab0b11c --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java @@ -0,0 +1,143 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface UpdateClusterRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.UpdateClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2614 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2614 + * @return The bytes for projectId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2620 + * @return The zone. + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2620 + * @return The bytes for zone. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2624 + * @return The clusterId. + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2624 + * @return The bytes for clusterId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * Required. A description of the update.
+   * 
+ * + * .google.container.v1.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.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return The update. + */ + com.google.container.v1.ClusterUpdate getUpdate(); + /** + *
+   * Required. A description of the update.
+   * 
+ * + * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.container.v1.ClusterUpdateOrBuilder getUpdateOrBuilder(); + + /** + *
+   * The name (project, location, cluster) of the cluster to update.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 5; + * @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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java new file mode 100644 index 000000000000..8724db3dae8f --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java @@ -0,0 +1,1388 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * UpdateMasterRequest updates the master of the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1.UpdateMasterRequest} + */ +public final class UpdateMasterRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UpdateMasterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UpdateMasterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.UpdateMasterRequest.class, com.google.container.v1.UpdateMasterRequest.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2929 + * @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; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2929 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2935 + * @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; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2935 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object clusterId_ = ""; + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2939 + * @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; + } + } + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2939 + * @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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(masterVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, masterVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(masterVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, masterVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.UpdateMasterRequest)) { + return super.equals(obj); + } + com.google.container.v1.UpdateMasterRequest other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.UpdateMasterRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.UpdateMasterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.UpdateMasterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.UpdateMasterRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.UpdateMasterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.UpdateMasterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.UpdateMasterRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.UpdateMasterRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.UpdateMasterRequest) + com.google.container.v1.UpdateMasterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UpdateMasterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UpdateMasterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.UpdateMasterRequest.class, com.google.container.v1.UpdateMasterRequest.Builder.class); + } + + // Construct using com.google.container.v1.UpdateMasterRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + masterVersion_ = ""; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UpdateMasterRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1.UpdateMasterRequest getDefaultInstanceForType() { + return com.google.container.v1.UpdateMasterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.UpdateMasterRequest build() { + com.google.container.v1.UpdateMasterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.UpdateMasterRequest buildPartial() { + com.google.container.v1.UpdateMasterRequest result = new com.google.container.v1.UpdateMasterRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.UpdateMasterRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.masterVersion_ = masterVersion_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.UpdateMasterRequest) { + return mergeFrom((com.google.container.v1.UpdateMasterRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.UpdateMasterRequest other) { + if (other == com.google.container.v1.UpdateMasterRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getMasterVersion().isEmpty()) { + masterVersion_ = other.masterVersion_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + masterVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 58: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2929 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2929 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2929 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2929 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2929 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2935 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2935 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2935 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2935 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2935 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2939 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2939 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2939 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2939 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2939 + * @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; + bitField0_ |= 0x00000004; + 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; + bitField0_ |= 0x00000008; + 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(); + bitField0_ = (bitField0_ & ~0x00000008); + 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; + bitField0_ |= 0x00000008; + 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; + bitField0_ |= 0x00000010; + 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(); + bitField0_ = (bitField0_ & ~0x00000010); + 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; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.UpdateMasterRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.UpdateMasterRequest) + private static final com.google.container.v1.UpdateMasterRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.UpdateMasterRequest(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.UpdateMasterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java new file mode 100644 index 000000000000..735cf00e7eb5 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java @@ -0,0 +1,154 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface UpdateMasterRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.UpdateMasterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2929 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2929 + * @return The bytes for projectId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2935 + * @return The zone. + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2935 + * @return The bytes for zone. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2939 + * @return The clusterId. + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2939 + * @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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java new file mode 100644 index 000000000000..26d42ca4c70d --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java @@ -0,0 +1,6557 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * UpdateNodePoolRequests update a node pool's image and/or version.
+ * 
+ * + * Protobuf type {@code google.container.v1.UpdateNodePoolRequest} + */ +public final class UpdateNodePoolRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.UpdateNodePoolRequest) + UpdateNodePoolRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use UpdateNodePoolRequest.newBuilder() to construct. + private UpdateNodePoolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateNodePoolRequest() { + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePoolId_ = ""; + nodeVersion_ = ""; + imageType_ = ""; + name_ = ""; + locations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + etag_ = ""; + machineType_ = ""; + diskType_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UpdateNodePoolRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UpdateNodePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UpdateNodePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.UpdateNodePoolRequest.class, com.google.container.v1.UpdateNodePoolRequest.Builder.class); + } + + private int bitField0_; + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2639 + * @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; + } + } + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2639 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2645 + * @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; + } + } + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2645 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object clusterId_ = ""; + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2649 + * @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; + } + } + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2649 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object nodePoolId_ = ""; + /** + *
+   * Deprecated. The name of the node pool to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2653 + * @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; + } + } + /** + *
+   * 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]; + * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2653 + * @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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + private volatile java.lang.Object imageType_ = ""; + /** + *
+   * Required. The desired image type for the node pool. Please see
+   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+   * available image types.
+   * 
+ * + * 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. Please see
+   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+   * available image types.
+   * 
+ * + * 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 NAME_FIELD_NUMBER = 8; + @SuppressWarnings("serial") + 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 LOCATIONS_FIELD_NUMBER = 13; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList locations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * node pool's nodes should be located. Changing the locations for a node pool
+   * will result in nodes being either created or removed from the node pool,
+   * depending on whether locations are being added or removed.
+   * 
+ * + * repeated string locations = 13; + * @return A list containing the locations. + */ + public com.google.protobuf.ProtocolStringList + getLocationsList() { + return locations_; + } + /** + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * node pool's nodes should be located. Changing the locations for a node pool
+   * will result in nodes being either created or removed from the node pool,
+   * depending on whether locations are being added or removed.
+   * 
+ * + * repeated string locations = 13; + * @return The count of locations. + */ + public int getLocationsCount() { + return locations_.size(); + } + /** + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * node pool's nodes should be located. Changing the locations for a node pool
+   * will result in nodes being either created or removed from the node pool,
+   * depending on whether locations are being added or removed.
+   * 
+ * + * repeated string locations = 13; + * @param index The index of the element to return. + * @return The locations at the given index. + */ + public java.lang.String getLocations(int index) { + return locations_.get(index); + } + /** + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * node pool's nodes should be located. Changing the locations for a node pool
+   * will result in nodes being either created or removed from the node pool,
+   * depending on whether locations are being added or removed.
+   * 
+ * + * repeated string locations = 13; + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + public com.google.protobuf.ByteString + getLocationsBytes(int index) { + return locations_.getByteString(index); + } + + public static final int WORKLOAD_METADATA_CONFIG_FIELD_NUMBER = 14; + private com.google.container.v1.WorkloadMetadataConfig workloadMetadataConfig_; + /** + *
+   * The desired workload metadata config for the node pool.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + * @return Whether the workloadMetadataConfig field is set. + */ + @java.lang.Override + public boolean hasWorkloadMetadataConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * The desired workload metadata config for the node pool.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + * @return The workloadMetadataConfig. + */ + @java.lang.Override + public com.google.container.v1.WorkloadMetadataConfig getWorkloadMetadataConfig() { + return workloadMetadataConfig_ == null ? com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance() : workloadMetadataConfig_; + } + /** + *
+   * The desired workload metadata config for the node pool.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + @java.lang.Override + public com.google.container.v1.WorkloadMetadataConfigOrBuilder getWorkloadMetadataConfigOrBuilder() { + return workloadMetadataConfig_ == null ? com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance() : workloadMetadataConfig_; + } + + public static final int UPGRADE_SETTINGS_FIELD_NUMBER = 15; + private com.google.container.v1.NodePool.UpgradeSettings upgradeSettings_; + /** + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + * @return Whether the upgradeSettings field is set. + */ + @java.lang.Override + public boolean hasUpgradeSettings() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + * @return The upgradeSettings. + */ + @java.lang.Override + public com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings() { + return upgradeSettings_ == null ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() : upgradeSettings_; + } + /** + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + @java.lang.Override + public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { + return upgradeSettings_ == null ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() : upgradeSettings_; + } + + public static final int TAGS_FIELD_NUMBER = 16; + private com.google.container.v1.NetworkTags tags_; + /** + *
+   * The desired network tags to be applied to all nodes in the node pool.
+   * If this field is not present, the tags will not be changed. Otherwise,
+   * the existing network tags will be *replaced* with the provided tags.
+   * 
+ * + * .google.container.v1.NetworkTags tags = 16; + * @return Whether the tags field is set. + */ + @java.lang.Override + public boolean hasTags() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+   * The desired network tags to be applied to all nodes in the node pool.
+   * If this field is not present, the tags will not be changed. Otherwise,
+   * the existing network tags will be *replaced* with the provided tags.
+   * 
+ * + * .google.container.v1.NetworkTags tags = 16; + * @return The tags. + */ + @java.lang.Override + public com.google.container.v1.NetworkTags getTags() { + return tags_ == null ? com.google.container.v1.NetworkTags.getDefaultInstance() : tags_; + } + /** + *
+   * The desired network tags to be applied to all nodes in the node pool.
+   * If this field is not present, the tags will not be changed. Otherwise,
+   * the existing network tags will be *replaced* with the provided tags.
+   * 
+ * + * .google.container.v1.NetworkTags tags = 16; + */ + @java.lang.Override + public com.google.container.v1.NetworkTagsOrBuilder getTagsOrBuilder() { + return tags_ == null ? com.google.container.v1.NetworkTags.getDefaultInstance() : tags_; + } + + public static final int TAINTS_FIELD_NUMBER = 17; + private com.google.container.v1.NodeTaints taints_; + /** + *
+   * The desired node taints to be applied to all nodes in the node pool.
+   * If this field is not present, the taints will not be changed. Otherwise,
+   * the existing node taints will be *replaced* with the provided taints.
+   * 
+ * + * .google.container.v1.NodeTaints taints = 17; + * @return Whether the taints field is set. + */ + @java.lang.Override + public boolean hasTaints() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+   * The desired node taints to be applied to all nodes in the node pool.
+   * If this field is not present, the taints will not be changed. Otherwise,
+   * the existing node taints will be *replaced* with the provided taints.
+   * 
+ * + * .google.container.v1.NodeTaints taints = 17; + * @return The taints. + */ + @java.lang.Override + public com.google.container.v1.NodeTaints getTaints() { + return taints_ == null ? com.google.container.v1.NodeTaints.getDefaultInstance() : taints_; + } + /** + *
+   * The desired node taints to be applied to all nodes in the node pool.
+   * If this field is not present, the taints will not be changed. Otherwise,
+   * the existing node taints will be *replaced* with the provided taints.
+   * 
+ * + * .google.container.v1.NodeTaints taints = 17; + */ + @java.lang.Override + public com.google.container.v1.NodeTaintsOrBuilder getTaintsOrBuilder() { + return taints_ == null ? com.google.container.v1.NodeTaints.getDefaultInstance() : taints_; + } + + public static final int LABELS_FIELD_NUMBER = 18; + private com.google.container.v1.NodeLabels labels_; + /** + *
+   * The desired node labels to be applied to all nodes in the node pool.
+   * If this field is not present, the labels will not be changed. Otherwise,
+   * the existing node labels will be *replaced* with the provided labels.
+   * 
+ * + * .google.container.v1.NodeLabels labels = 18; + * @return Whether the labels field is set. + */ + @java.lang.Override + public boolean hasLabels() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+   * The desired node labels to be applied to all nodes in the node pool.
+   * If this field is not present, the labels will not be changed. Otherwise,
+   * the existing node labels will be *replaced* with the provided labels.
+   * 
+ * + * .google.container.v1.NodeLabels labels = 18; + * @return The labels. + */ + @java.lang.Override + public com.google.container.v1.NodeLabels getLabels() { + return labels_ == null ? com.google.container.v1.NodeLabels.getDefaultInstance() : labels_; + } + /** + *
+   * The desired node labels to be applied to all nodes in the node pool.
+   * If this field is not present, the labels will not be changed. Otherwise,
+   * the existing node labels will be *replaced* with the provided labels.
+   * 
+ * + * .google.container.v1.NodeLabels labels = 18; + */ + @java.lang.Override + public com.google.container.v1.NodeLabelsOrBuilder getLabelsOrBuilder() { + return labels_ == null ? com.google.container.v1.NodeLabels.getDefaultInstance() : labels_; + } + + public static final int LINUX_NODE_CONFIG_FIELD_NUMBER = 19; + private com.google.container.v1.LinuxNodeConfig linuxNodeConfig_; + /** + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + * @return Whether the linuxNodeConfig field is set. + */ + @java.lang.Override + public boolean hasLinuxNodeConfig() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + * @return The linuxNodeConfig. + */ + @java.lang.Override + public com.google.container.v1.LinuxNodeConfig getLinuxNodeConfig() { + return linuxNodeConfig_ == null ? com.google.container.v1.LinuxNodeConfig.getDefaultInstance() : linuxNodeConfig_; + } + /** + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + */ + @java.lang.Override + public com.google.container.v1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder() { + return linuxNodeConfig_ == null ? com.google.container.v1.LinuxNodeConfig.getDefaultInstance() : linuxNodeConfig_; + } + + public static final int KUBELET_CONFIG_FIELD_NUMBER = 20; + private com.google.container.v1.NodeKubeletConfig kubeletConfig_; + /** + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + * @return Whether the kubeletConfig field is set. + */ + @java.lang.Override + public boolean hasKubeletConfig() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + * @return The kubeletConfig. + */ + @java.lang.Override + public com.google.container.v1.NodeKubeletConfig getKubeletConfig() { + return kubeletConfig_ == null ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() : kubeletConfig_; + } + /** + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + */ + @java.lang.Override + public com.google.container.v1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder() { + return kubeletConfig_ == null ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() : kubeletConfig_; + } + + public static final int NODE_NETWORK_CONFIG_FIELD_NUMBER = 21; + private com.google.container.v1.NodeNetworkConfig nodeNetworkConfig_; + /** + *
+   * Node network config.
+   * 
+ * + * .google.container.v1.NodeNetworkConfig node_network_config = 21; + * @return Whether the nodeNetworkConfig field is set. + */ + @java.lang.Override + public boolean hasNodeNetworkConfig() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+   * Node network config.
+   * 
+ * + * .google.container.v1.NodeNetworkConfig node_network_config = 21; + * @return The nodeNetworkConfig. + */ + @java.lang.Override + public com.google.container.v1.NodeNetworkConfig getNodeNetworkConfig() { + return nodeNetworkConfig_ == null ? com.google.container.v1.NodeNetworkConfig.getDefaultInstance() : nodeNetworkConfig_; + } + /** + *
+   * Node network config.
+   * 
+ * + * .google.container.v1.NodeNetworkConfig node_network_config = 21; + */ + @java.lang.Override + public com.google.container.v1.NodeNetworkConfigOrBuilder getNodeNetworkConfigOrBuilder() { + return nodeNetworkConfig_ == null ? com.google.container.v1.NodeNetworkConfig.getDefaultInstance() : nodeNetworkConfig_; + } + + public static final int GCFS_CONFIG_FIELD_NUMBER = 22; + private com.google.container.v1.GcfsConfig gcfsConfig_; + /** + *
+   * GCFS config.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + * @return Whether the gcfsConfig field is set. + */ + @java.lang.Override + public boolean hasGcfsConfig() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + *
+   * GCFS config.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + * @return The gcfsConfig. + */ + @java.lang.Override + public com.google.container.v1.GcfsConfig getGcfsConfig() { + return gcfsConfig_ == null ? com.google.container.v1.GcfsConfig.getDefaultInstance() : gcfsConfig_; + } + /** + *
+   * GCFS config.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + */ + @java.lang.Override + public com.google.container.v1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { + return gcfsConfig_ == null ? com.google.container.v1.GcfsConfig.getDefaultInstance() : gcfsConfig_; + } + + public static final int CONFIDENTIAL_NODES_FIELD_NUMBER = 23; + private com.google.container.v1.ConfidentialNodes confidentialNodes_; + /** + *
+   * Confidential nodes config.
+   * All the nodes in the node pool will be Confidential VM once enabled.
+   * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 23; + * @return Whether the confidentialNodes field is set. + */ + @java.lang.Override + public boolean hasConfidentialNodes() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + *
+   * Confidential nodes config.
+   * All the nodes in the node pool will be Confidential VM once enabled.
+   * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 23; + * @return The confidentialNodes. + */ + @java.lang.Override + public com.google.container.v1.ConfidentialNodes getConfidentialNodes() { + return confidentialNodes_ == null ? com.google.container.v1.ConfidentialNodes.getDefaultInstance() : confidentialNodes_; + } + /** + *
+   * Confidential nodes config.
+   * All the nodes in the node pool will be Confidential VM once enabled.
+   * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 23; + */ + @java.lang.Override + public com.google.container.v1.ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder() { + return confidentialNodes_ == null ? com.google.container.v1.ConfidentialNodes.getDefaultInstance() : confidentialNodes_; + } + + public static final int GVNIC_FIELD_NUMBER = 29; + private com.google.container.v1.VirtualNIC gvnic_; + /** + *
+   * Enable or disable gvnic on the node pool.
+   * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + * @return Whether the gvnic field is set. + */ + @java.lang.Override + public boolean hasGvnic() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + *
+   * Enable or disable gvnic on the node pool.
+   * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + * @return The gvnic. + */ + @java.lang.Override + public com.google.container.v1.VirtualNIC getGvnic() { + return gvnic_ == null ? com.google.container.v1.VirtualNIC.getDefaultInstance() : gvnic_; + } + /** + *
+   * Enable or disable gvnic on the node pool.
+   * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + @java.lang.Override + public com.google.container.v1.VirtualNICOrBuilder getGvnicOrBuilder() { + return gvnic_ == null ? com.google.container.v1.VirtualNIC.getDefaultInstance() : gvnic_; + } + + public static final int ETAG_FIELD_NUMBER = 30; + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + /** + *
+   * The current etag of the node pool.
+   * If an etag is provided and does not match the current etag of the node
+   * pool, update will be blocked and an ABORTED error will be returned.
+   * 
+ * + * string etag = 30; + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + /** + *
+   * The current etag of the node pool.
+   * If an etag is provided and does not match the current etag of the node
+   * pool, update will be blocked and an ABORTED error will be returned.
+   * 
+ * + * string etag = 30; + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FAST_SOCKET_FIELD_NUMBER = 31; + private com.google.container.v1.FastSocket fastSocket_; + /** + *
+   * Enable or disable NCCL fast socket for the node pool.
+   * 
+ * + * .google.container.v1.FastSocket fast_socket = 31; + * @return Whether the fastSocket field is set. + */ + @java.lang.Override + public boolean hasFastSocket() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + *
+   * Enable or disable NCCL fast socket for the node pool.
+   * 
+ * + * .google.container.v1.FastSocket fast_socket = 31; + * @return The fastSocket. + */ + @java.lang.Override + public com.google.container.v1.FastSocket getFastSocket() { + return fastSocket_ == null ? com.google.container.v1.FastSocket.getDefaultInstance() : fastSocket_; + } + /** + *
+   * Enable or disable NCCL fast socket for the node pool.
+   * 
+ * + * .google.container.v1.FastSocket fast_socket = 31; + */ + @java.lang.Override + public com.google.container.v1.FastSocketOrBuilder getFastSocketOrBuilder() { + return fastSocket_ == null ? com.google.container.v1.FastSocket.getDefaultInstance() : fastSocket_; + } + + public static final int LOGGING_CONFIG_FIELD_NUMBER = 32; + private com.google.container.v1.NodePoolLoggingConfig loggingConfig_; + /** + *
+   * Logging configuration.
+   * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 32; + * @return Whether the loggingConfig field is set. + */ + @java.lang.Override + public boolean hasLoggingConfig() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + *
+   * Logging configuration.
+   * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 32; + * @return The loggingConfig. + */ + @java.lang.Override + public com.google.container.v1.NodePoolLoggingConfig getLoggingConfig() { + return loggingConfig_ == null ? com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance() : loggingConfig_; + } + /** + *
+   * Logging configuration.
+   * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 32; + */ + @java.lang.Override + public com.google.container.v1.NodePoolLoggingConfigOrBuilder getLoggingConfigOrBuilder() { + return loggingConfig_ == null ? com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance() : loggingConfig_; + } + + public static final int RESOURCE_LABELS_FIELD_NUMBER = 33; + private com.google.container.v1.ResourceLabels resourceLabels_; + /** + *
+   * The resource labels for the node pool to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * .google.container.v1.ResourceLabels resource_labels = 33; + * @return Whether the resourceLabels field is set. + */ + @java.lang.Override + public boolean hasResourceLabels() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + *
+   * The resource labels for the node pool to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * .google.container.v1.ResourceLabels resource_labels = 33; + * @return The resourceLabels. + */ + @java.lang.Override + public com.google.container.v1.ResourceLabels getResourceLabels() { + return resourceLabels_ == null ? com.google.container.v1.ResourceLabels.getDefaultInstance() : resourceLabels_; + } + /** + *
+   * The resource labels for the node pool to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * .google.container.v1.ResourceLabels resource_labels = 33; + */ + @java.lang.Override + public com.google.container.v1.ResourceLabelsOrBuilder getResourceLabelsOrBuilder() { + return resourceLabels_ == null ? com.google.container.v1.ResourceLabels.getDefaultInstance() : resourceLabels_; + } + + public static final int WINDOWS_NODE_CONFIG_FIELD_NUMBER = 34; + private com.google.container.v1.WindowsNodeConfig windowsNodeConfig_; + /** + *
+   * Parameters that can be configured on Windows nodes.
+   * 
+ * + * .google.container.v1.WindowsNodeConfig windows_node_config = 34; + * @return Whether the windowsNodeConfig field is set. + */ + @java.lang.Override + public boolean hasWindowsNodeConfig() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + *
+   * Parameters that can be configured on Windows nodes.
+   * 
+ * + * .google.container.v1.WindowsNodeConfig windows_node_config = 34; + * @return The windowsNodeConfig. + */ + @java.lang.Override + public com.google.container.v1.WindowsNodeConfig getWindowsNodeConfig() { + return windowsNodeConfig_ == null ? com.google.container.v1.WindowsNodeConfig.getDefaultInstance() : windowsNodeConfig_; + } + /** + *
+   * Parameters that can be configured on Windows nodes.
+   * 
+ * + * .google.container.v1.WindowsNodeConfig windows_node_config = 34; + */ + @java.lang.Override + public com.google.container.v1.WindowsNodeConfigOrBuilder getWindowsNodeConfigOrBuilder() { + return windowsNodeConfig_ == null ? com.google.container.v1.WindowsNodeConfig.getDefaultInstance() : windowsNodeConfig_; + } + + public static final int MACHINE_TYPE_FIELD_NUMBER = 36; + @SuppressWarnings("serial") + private volatile java.lang.Object machineType_ = ""; + /** + *
+   * Optional. The desired [Google Compute Engine machine
+   * type](https://cloud.google.com/compute/docs/machine-types) for nodes in the
+   * node pool. Initiates an upgrade operation that migrates the nodes in the
+   * node pool to the specified machine type.
+   * 
+ * + * string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; + * @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; + } + } + /** + *
+   * Optional. The desired [Google Compute Engine machine
+   * type](https://cloud.google.com/compute/docs/machine-types) for nodes in the
+   * node pool. Initiates an upgrade operation that migrates the nodes in the
+   * node pool to the specified machine type.
+   * 
+ * + * string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; + * @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_TYPE_FIELD_NUMBER = 37; + @SuppressWarnings("serial") + private volatile java.lang.Object diskType_ = ""; + /** + *
+   * Optional. The desired disk type (e.g. 'pd-standard', 'pd-ssd' or
+   * 'pd-balanced') for nodes in the node pool.
+   * Initiates an upgrade operation that migrates the nodes in the
+   * node pool to the specified disk type.
+   * 
+ * + * string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; + * @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; + } + } + /** + *
+   * Optional. The desired disk type (e.g. 'pd-standard', 'pd-ssd' or
+   * 'pd-balanced') for nodes in the node pool.
+   * Initiates an upgrade operation that migrates the nodes in the
+   * node pool to the specified disk type.
+   * 
+ * + * string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; + * @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 DISK_SIZE_GB_FIELD_NUMBER = 38; + private long diskSizeGb_ = 0L; + /** + *
+   * Optional. The desired disk size for nodes in the node pool specified in GB.
+   * The smallest allowed disk size is 10GB.
+   * Initiates an upgrade operation that migrates the nodes in the
+   * node pool to the specified disk size.
+   * 
+ * + * int64 disk_size_gb = 38 [(.google.api.field_behavior) = OPTIONAL]; + * @return The diskSizeGb. + */ + @java.lang.Override + public long getDiskSizeGb() { + return diskSizeGb_; + } + + public static final int RESOURCE_MANAGER_TAGS_FIELD_NUMBER = 39; + private com.google.container.v1.ResourceManagerTags resourceManagerTags_; + /** + *
+   * Desired resource manager tag keys and values to be attached to the nodes
+   * for managing Compute Engine firewalls using Network Firewall Policies.
+   * Existing tags will be replaced with new values.
+   * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 39; + * @return Whether the resourceManagerTags field is set. + */ + @java.lang.Override + public boolean hasResourceManagerTags() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + *
+   * Desired resource manager tag keys and values to be attached to the nodes
+   * for managing Compute Engine firewalls using Network Firewall Policies.
+   * Existing tags will be replaced with new values.
+   * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 39; + * @return The resourceManagerTags. + */ + @java.lang.Override + public com.google.container.v1.ResourceManagerTags getResourceManagerTags() { + return resourceManagerTags_ == null ? com.google.container.v1.ResourceManagerTags.getDefaultInstance() : resourceManagerTags_; + } + /** + *
+   * Desired resource manager tag keys and values to be attached to the nodes
+   * for managing Compute Engine firewalls using Network Firewall Policies.
+   * Existing tags will be replaced with new values.
+   * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 39; + */ + @java.lang.Override + public com.google.container.v1.ResourceManagerTagsOrBuilder getResourceManagerTagsOrBuilder() { + return resourceManagerTags_ == null ? com.google.container.v1.ResourceManagerTags.getDefaultInstance() : resourceManagerTags_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, nodeVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, imageType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(14, getWorkloadMetadataConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(15, getUpgradeSettings()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(16, getTags()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(17, getTaints()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(18, getLabels()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(19, getLinuxNodeConfig()); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(20, getKubeletConfig()); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(21, getNodeNetworkConfig()); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(22, getGcfsConfig()); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeMessage(23, getConfidentialNodes()); + } + if (((bitField0_ & 0x00000400) != 0)) { + output.writeMessage(29, getGvnic()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 30, etag_); + } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeMessage(31, getFastSocket()); + } + if (((bitField0_ & 0x00001000) != 0)) { + output.writeMessage(32, getLoggingConfig()); + } + if (((bitField0_ & 0x00002000) != 0)) { + output.writeMessage(33, getResourceLabels()); + } + if (((bitField0_ & 0x00004000) != 0)) { + output.writeMessage(34, getWindowsNodeConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 36, machineType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 37, diskType_); + } + if (diskSizeGb_ != 0L) { + output.writeInt64(38, diskSizeGb_); + } + if (((bitField0_ & 0x00008000) != 0)) { + output.writeMessage(39, getResourceManagerTags()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, nodeVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, imageType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + 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 (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getWorkloadMetadataConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, getUpgradeSettings()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getTags()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getTaints()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, getLabels()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, getLinuxNodeConfig()); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(20, getKubeletConfig()); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, getNodeNetworkConfig()); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(22, getGcfsConfig()); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(23, getConfidentialNodes()); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(29, getGvnic()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(30, etag_); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(31, getFastSocket()); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(32, getLoggingConfig()); + } + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(33, getResourceLabels()); + } + if (((bitField0_ & 0x00004000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(34, getWindowsNodeConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(36, machineType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(37, diskType_); + } + if (diskSizeGb_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(38, diskSizeGb_); + } + if (((bitField0_ & 0x00008000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(39, getResourceManagerTags()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.UpdateNodePoolRequest)) { + return super.equals(obj); + } + com.google.container.v1.UpdateNodePoolRequest other = (com.google.container.v1.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 (!getName() + .equals(other.getName())) return false; + if (!getLocationsList() + .equals(other.getLocationsList())) return false; + if (hasWorkloadMetadataConfig() != other.hasWorkloadMetadataConfig()) return false; + if (hasWorkloadMetadataConfig()) { + if (!getWorkloadMetadataConfig() + .equals(other.getWorkloadMetadataConfig())) return false; + } + if (hasUpgradeSettings() != other.hasUpgradeSettings()) return false; + if (hasUpgradeSettings()) { + if (!getUpgradeSettings() + .equals(other.getUpgradeSettings())) return false; + } + if (hasTags() != other.hasTags()) return false; + if (hasTags()) { + if (!getTags() + .equals(other.getTags())) return false; + } + if (hasTaints() != other.hasTaints()) return false; + if (hasTaints()) { + if (!getTaints() + .equals(other.getTaints())) return false; + } + if (hasLabels() != other.hasLabels()) return false; + if (hasLabels()) { + if (!getLabels() + .equals(other.getLabels())) 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 (hasNodeNetworkConfig() != other.hasNodeNetworkConfig()) return false; + if (hasNodeNetworkConfig()) { + if (!getNodeNetworkConfig() + .equals(other.getNodeNetworkConfig())) return false; + } + if (hasGcfsConfig() != other.hasGcfsConfig()) return false; + if (hasGcfsConfig()) { + if (!getGcfsConfig() + .equals(other.getGcfsConfig())) return false; + } + if (hasConfidentialNodes() != other.hasConfidentialNodes()) return false; + if (hasConfidentialNodes()) { + if (!getConfidentialNodes() + .equals(other.getConfidentialNodes())) return false; + } + if (hasGvnic() != other.hasGvnic()) return false; + if (hasGvnic()) { + if (!getGvnic() + .equals(other.getGvnic())) return false; + } + if (!getEtag() + .equals(other.getEtag())) return false; + if (hasFastSocket() != other.hasFastSocket()) return false; + if (hasFastSocket()) { + if (!getFastSocket() + .equals(other.getFastSocket())) return false; + } + if (hasLoggingConfig() != other.hasLoggingConfig()) return false; + if (hasLoggingConfig()) { + if (!getLoggingConfig() + .equals(other.getLoggingConfig())) return false; + } + if (hasResourceLabels() != other.hasResourceLabels()) return false; + if (hasResourceLabels()) { + if (!getResourceLabels() + .equals(other.getResourceLabels())) return false; + } + if (hasWindowsNodeConfig() != other.hasWindowsNodeConfig()) return false; + if (hasWindowsNodeConfig()) { + if (!getWindowsNodeConfig() + .equals(other.getWindowsNodeConfig())) return false; + } + if (!getMachineType() + .equals(other.getMachineType())) return false; + if (!getDiskType() + .equals(other.getDiskType())) return false; + if (getDiskSizeGb() + != other.getDiskSizeGb()) return false; + if (hasResourceManagerTags() != other.hasResourceManagerTags()) return false; + if (hasResourceManagerTags()) { + if (!getResourceManagerTags() + .equals(other.getResourceManagerTags())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getLocationsCount() > 0) { + hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getLocationsList().hashCode(); + } + if (hasWorkloadMetadataConfig()) { + hash = (37 * hash) + WORKLOAD_METADATA_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getWorkloadMetadataConfig().hashCode(); + } + if (hasUpgradeSettings()) { + hash = (37 * hash) + UPGRADE_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getUpgradeSettings().hashCode(); + } + if (hasTags()) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + getTags().hashCode(); + } + if (hasTaints()) { + hash = (37 * hash) + TAINTS_FIELD_NUMBER; + hash = (53 * hash) + getTaints().hashCode(); + } + if (hasLabels()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + getLabels().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 (hasNodeNetworkConfig()) { + hash = (37 * hash) + NODE_NETWORK_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNodeNetworkConfig().hashCode(); + } + if (hasGcfsConfig()) { + hash = (37 * hash) + GCFS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGcfsConfig().hashCode(); + } + if (hasConfidentialNodes()) { + hash = (37 * hash) + CONFIDENTIAL_NODES_FIELD_NUMBER; + hash = (53 * hash) + getConfidentialNodes().hashCode(); + } + if (hasGvnic()) { + hash = (37 * hash) + GVNIC_FIELD_NUMBER; + hash = (53 * hash) + getGvnic().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + if (hasFastSocket()) { + hash = (37 * hash) + FAST_SOCKET_FIELD_NUMBER; + hash = (53 * hash) + getFastSocket().hashCode(); + } + if (hasLoggingConfig()) { + hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getLoggingConfig().hashCode(); + } + if (hasResourceLabels()) { + hash = (37 * hash) + RESOURCE_LABELS_FIELD_NUMBER; + hash = (53 * hash) + getResourceLabels().hashCode(); + } + if (hasWindowsNodeConfig()) { + hash = (37 * hash) + WINDOWS_NODE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getWindowsNodeConfig().hashCode(); + } + hash = (37 * hash) + MACHINE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMachineType().hashCode(); + hash = (37 * hash) + DISK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getDiskType().hashCode(); + hash = (37 * hash) + DISK_SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDiskSizeGb()); + if (hasResourceManagerTags()) { + hash = (37 * hash) + RESOURCE_MANAGER_TAGS_FIELD_NUMBER; + hash = (53 * hash) + getResourceManagerTags().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.UpdateNodePoolRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.UpdateNodePoolRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.UpdateNodePoolRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.UpdateNodePoolRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.UpdateNodePoolRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.UpdateNodePoolRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.UpdateNodePoolRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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; + } + /** + *
+   * UpdateNodePoolRequests update a node pool's image and/or version.
+   * 
+ * + * Protobuf type {@code google.container.v1.UpdateNodePoolRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.UpdateNodePoolRequest) + com.google.container.v1.UpdateNodePoolRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UpdateNodePoolRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UpdateNodePoolRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.UpdateNodePoolRequest.class, com.google.container.v1.UpdateNodePoolRequest.Builder.class); + } + + // Construct using com.google.container.v1.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) { + getWorkloadMetadataConfigFieldBuilder(); + getUpgradeSettingsFieldBuilder(); + getTagsFieldBuilder(); + getTaintsFieldBuilder(); + getLabelsFieldBuilder(); + getLinuxNodeConfigFieldBuilder(); + getKubeletConfigFieldBuilder(); + getNodeNetworkConfigFieldBuilder(); + getGcfsConfigFieldBuilder(); + getConfidentialNodesFieldBuilder(); + getGvnicFieldBuilder(); + getFastSocketFieldBuilder(); + getLoggingConfigFieldBuilder(); + getResourceLabelsFieldBuilder(); + getWindowsNodeConfigFieldBuilder(); + getResourceManagerTagsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePoolId_ = ""; + nodeVersion_ = ""; + imageType_ = ""; + name_ = ""; + locations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + workloadMetadataConfig_ = null; + if (workloadMetadataConfigBuilder_ != null) { + workloadMetadataConfigBuilder_.dispose(); + workloadMetadataConfigBuilder_ = null; + } + upgradeSettings_ = null; + if (upgradeSettingsBuilder_ != null) { + upgradeSettingsBuilder_.dispose(); + upgradeSettingsBuilder_ = null; + } + tags_ = null; + if (tagsBuilder_ != null) { + tagsBuilder_.dispose(); + tagsBuilder_ = null; + } + taints_ = null; + if (taintsBuilder_ != null) { + taintsBuilder_.dispose(); + taintsBuilder_ = null; + } + labels_ = null; + if (labelsBuilder_ != null) { + labelsBuilder_.dispose(); + labelsBuilder_ = null; + } + linuxNodeConfig_ = null; + if (linuxNodeConfigBuilder_ != null) { + linuxNodeConfigBuilder_.dispose(); + linuxNodeConfigBuilder_ = null; + } + kubeletConfig_ = null; + if (kubeletConfigBuilder_ != null) { + kubeletConfigBuilder_.dispose(); + kubeletConfigBuilder_ = null; + } + nodeNetworkConfig_ = null; + if (nodeNetworkConfigBuilder_ != null) { + nodeNetworkConfigBuilder_.dispose(); + nodeNetworkConfigBuilder_ = null; + } + gcfsConfig_ = null; + if (gcfsConfigBuilder_ != null) { + gcfsConfigBuilder_.dispose(); + gcfsConfigBuilder_ = null; + } + confidentialNodes_ = null; + if (confidentialNodesBuilder_ != null) { + confidentialNodesBuilder_.dispose(); + confidentialNodesBuilder_ = null; + } + gvnic_ = null; + if (gvnicBuilder_ != null) { + gvnicBuilder_.dispose(); + gvnicBuilder_ = null; + } + etag_ = ""; + fastSocket_ = null; + if (fastSocketBuilder_ != null) { + fastSocketBuilder_.dispose(); + fastSocketBuilder_ = null; + } + loggingConfig_ = null; + if (loggingConfigBuilder_ != null) { + loggingConfigBuilder_.dispose(); + loggingConfigBuilder_ = null; + } + resourceLabels_ = null; + if (resourceLabelsBuilder_ != null) { + resourceLabelsBuilder_.dispose(); + resourceLabelsBuilder_ = null; + } + windowsNodeConfig_ = null; + if (windowsNodeConfigBuilder_ != null) { + windowsNodeConfigBuilder_.dispose(); + windowsNodeConfigBuilder_ = null; + } + machineType_ = ""; + diskType_ = ""; + diskSizeGb_ = 0L; + resourceManagerTags_ = null; + if (resourceManagerTagsBuilder_ != null) { + resourceManagerTagsBuilder_.dispose(); + resourceManagerTagsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UpdateNodePoolRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1.UpdateNodePoolRequest getDefaultInstanceForType() { + return com.google.container.v1.UpdateNodePoolRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.UpdateNodePoolRequest build() { + com.google.container.v1.UpdateNodePoolRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.UpdateNodePoolRequest buildPartial() { + com.google.container.v1.UpdateNodePoolRequest result = new com.google.container.v1.UpdateNodePoolRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.UpdateNodePoolRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.nodePoolId_ = nodePoolId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.nodeVersion_ = nodeVersion_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.imageType_ = imageType_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + locations_.makeImmutable(); + result.locations_ = locations_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000100) != 0)) { + result.workloadMetadataConfig_ = workloadMetadataConfigBuilder_ == null + ? workloadMetadataConfig_ + : workloadMetadataConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.upgradeSettings_ = upgradeSettingsBuilder_ == null + ? upgradeSettings_ + : upgradeSettingsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.tags_ = tagsBuilder_ == null + ? tags_ + : tagsBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.taints_ = taintsBuilder_ == null + ? taints_ + : taintsBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.labels_ = labelsBuilder_ == null + ? labels_ + : labelsBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.linuxNodeConfig_ = linuxNodeConfigBuilder_ == null + ? linuxNodeConfig_ + : linuxNodeConfigBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.kubeletConfig_ = kubeletConfigBuilder_ == null + ? kubeletConfig_ + : kubeletConfigBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.nodeNetworkConfig_ = nodeNetworkConfigBuilder_ == null + ? nodeNetworkConfig_ + : nodeNetworkConfigBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.gcfsConfig_ = gcfsConfigBuilder_ == null + ? gcfsConfig_ + : gcfsConfigBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.confidentialNodes_ = confidentialNodesBuilder_ == null + ? confidentialNodes_ + : confidentialNodesBuilder_.build(); + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.gvnic_ = gvnicBuilder_ == null + ? gvnic_ + : gvnicBuilder_.build(); + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.fastSocket_ = fastSocketBuilder_ == null + ? fastSocket_ + : fastSocketBuilder_.build(); + to_bitField0_ |= 0x00000800; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.loggingConfig_ = loggingConfigBuilder_ == null + ? loggingConfig_ + : loggingConfigBuilder_.build(); + to_bitField0_ |= 0x00001000; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.resourceLabels_ = resourceLabelsBuilder_ == null + ? resourceLabels_ + : resourceLabelsBuilder_.build(); + to_bitField0_ |= 0x00002000; + } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.windowsNodeConfig_ = windowsNodeConfigBuilder_ == null + ? windowsNodeConfig_ + : windowsNodeConfigBuilder_.build(); + to_bitField0_ |= 0x00004000; + } + if (((from_bitField0_ & 0x01000000) != 0)) { + result.machineType_ = machineType_; + } + if (((from_bitField0_ & 0x02000000) != 0)) { + result.diskType_ = diskType_; + } + if (((from_bitField0_ & 0x04000000) != 0)) { + result.diskSizeGb_ = diskSizeGb_; + } + if (((from_bitField0_ & 0x08000000) != 0)) { + result.resourceManagerTags_ = resourceManagerTagsBuilder_ == null + ? resourceManagerTags_ + : resourceManagerTagsBuilder_.build(); + to_bitField0_ |= 0x00008000; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.UpdateNodePoolRequest) { + return mergeFrom((com.google.container.v1.UpdateNodePoolRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.UpdateNodePoolRequest other) { + if (other == com.google.container.v1.UpdateNodePoolRequest.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getNodeVersion().isEmpty()) { + nodeVersion_ = other.nodeVersion_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getImageType().isEmpty()) { + imageType_ = other.imageType_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.locations_.isEmpty()) { + if (locations_.isEmpty()) { + locations_ = other.locations_; + bitField0_ |= 0x00000080; + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } + if (other.hasWorkloadMetadataConfig()) { + mergeWorkloadMetadataConfig(other.getWorkloadMetadataConfig()); + } + if (other.hasUpgradeSettings()) { + mergeUpgradeSettings(other.getUpgradeSettings()); + } + if (other.hasTags()) { + mergeTags(other.getTags()); + } + if (other.hasTaints()) { + mergeTaints(other.getTaints()); + } + if (other.hasLabels()) { + mergeLabels(other.getLabels()); + } + if (other.hasLinuxNodeConfig()) { + mergeLinuxNodeConfig(other.getLinuxNodeConfig()); + } + if (other.hasKubeletConfig()) { + mergeKubeletConfig(other.getKubeletConfig()); + } + if (other.hasNodeNetworkConfig()) { + mergeNodeNetworkConfig(other.getNodeNetworkConfig()); + } + if (other.hasGcfsConfig()) { + mergeGcfsConfig(other.getGcfsConfig()); + } + if (other.hasConfidentialNodes()) { + mergeConfidentialNodes(other.getConfidentialNodes()); + } + if (other.hasGvnic()) { + mergeGvnic(other.getGvnic()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00080000; + onChanged(); + } + if (other.hasFastSocket()) { + mergeFastSocket(other.getFastSocket()); + } + if (other.hasLoggingConfig()) { + mergeLoggingConfig(other.getLoggingConfig()); + } + if (other.hasResourceLabels()) { + mergeResourceLabels(other.getResourceLabels()); + } + if (other.hasWindowsNodeConfig()) { + mergeWindowsNodeConfig(other.getWindowsNodeConfig()); + } + if (!other.getMachineType().isEmpty()) { + machineType_ = other.machineType_; + bitField0_ |= 0x01000000; + onChanged(); + } + if (!other.getDiskType().isEmpty()) { + diskType_ = other.diskType_; + bitField0_ |= 0x02000000; + onChanged(); + } + if (other.getDiskSizeGb() != 0L) { + setDiskSizeGb(other.getDiskSizeGb()); + } + if (other.hasResourceManagerTags()) { + mergeResourceManagerTags(other.getResourceManagerTags()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + nodePoolId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + nodeVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + imageType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 66: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 106: { + java.lang.String s = input.readStringRequireUtf8(); + ensureLocationsIsMutable(); + locations_.add(s); + break; + } // case 106 + case 114: { + input.readMessage( + getWorkloadMetadataConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 114 + case 122: { + input.readMessage( + getUpgradeSettingsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 122 + case 130: { + input.readMessage( + getTagsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 130 + case 138: { + input.readMessage( + getTaintsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 138 + case 146: { + input.readMessage( + getLabelsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 146 + case 154: { + input.readMessage( + getLinuxNodeConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 154 + case 162: { + input.readMessage( + getKubeletConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 162 + case 170: { + input.readMessage( + getNodeNetworkConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 170 + case 178: { + input.readMessage( + getGcfsConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 178 + case 186: { + input.readMessage( + getConfidentialNodesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 186 + case 234: { + input.readMessage( + getGvnicFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00040000; + break; + } // case 234 + case 242: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00080000; + break; + } // case 242 + case 250: { + input.readMessage( + getFastSocketFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00100000; + break; + } // case 250 + case 258: { + input.readMessage( + getLoggingConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00200000; + break; + } // case 258 + case 266: { + input.readMessage( + getResourceLabelsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00400000; + break; + } // case 266 + case 274: { + input.readMessage( + getWindowsNodeConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00800000; + break; + } // case 274 + case 290: { + machineType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x01000000; + break; + } // case 290 + case 298: { + diskType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x02000000; + break; + } // case 298 + case 304: { + diskSizeGb_ = input.readInt64(); + bitField0_ |= 0x04000000; + break; + } // case 304 + case 314: { + input.readMessage( + getResourceManagerTagsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x08000000; + break; + } // case 314 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2639 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2639 + * @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; + } + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2639 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2639 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2639 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2645 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2645 + * @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; + } + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2645 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2645 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the Google Compute Engine
+     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+     * cluster resides. This field has been deprecated and replaced by the name
+     * field.
+     * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2645 + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2649 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2649 + * @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; + } + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2649 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2649 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the cluster to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2649 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object nodePoolId_ = ""; + /** + *
+     * Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2653 + * @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; + } + } + /** + *
+     * 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]; + * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2653 + * @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; + } + } + /** + *
+     * 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]; + * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2653 + * @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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2653 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearNodePoolId() { + nodePoolId_ = getDefaultInstance().getNodePoolId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * Deprecated. The name of the node pool to upgrade.
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2653 + * @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; + bitField0_ |= 0x00000008; + 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; + bitField0_ |= 0x00000010; + 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(); + bitField0_ = (bitField0_ & ~0x00000010); + 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; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object imageType_ = ""; + /** + *
+     * Required. The desired image type for the node pool. Please see
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+     * available image types.
+     * 
+ * + * 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. Please see
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+     * available image types.
+     * 
+ * + * 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. Please see
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+     * available image types.
+     * 
+ * + * 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; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Required. The desired image type for the node pool. Please see
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+     * available image types.
+     * 
+ * + * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearImageType() { + imageType_ = getDefaultInstance().getImageType(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + *
+     * Required. The desired image type for the node pool. Please see
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+     * available image types.
+     * 
+ * + * 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; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster, node pool) of the node pool to
+     * update. Specified in the format
+     * `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 8; + * @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; + bitField0_ |= 0x00000040; + 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(); + bitField0_ = (bitField0_ & ~0x00000040); + 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; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList locations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureLocationsIsMutable() { + if (!locations_.isModifiable()) { + locations_ = new com.google.protobuf.LazyStringArrayList(locations_); + } + bitField0_ |= 0x00000080; + } + /** + *
+     * 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() { + locations_.makeImmutable(); + 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); + } + /** + *
+     * 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); + bitField0_ |= 0x00000080; + 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); + bitField0_ |= 0x00000080; + 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_); + bitField0_ |= 0x00000080; + 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.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080);; + 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); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private com.google.container.v1.WorkloadMetadataConfig workloadMetadataConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WorkloadMetadataConfig, com.google.container.v1.WorkloadMetadataConfig.Builder, com.google.container.v1.WorkloadMetadataConfigOrBuilder> workloadMetadataConfigBuilder_; + /** + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + * @return Whether the workloadMetadataConfig field is set. + */ + public boolean hasWorkloadMetadataConfig() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + * @return The workloadMetadataConfig. + */ + public com.google.container.v1.WorkloadMetadataConfig getWorkloadMetadataConfig() { + if (workloadMetadataConfigBuilder_ == null) { + return workloadMetadataConfig_ == null ? com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance() : workloadMetadataConfig_; + } else { + return workloadMetadataConfigBuilder_.getMessage(); + } + } + /** + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder setWorkloadMetadataConfig(com.google.container.v1.WorkloadMetadataConfig value) { + if (workloadMetadataConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workloadMetadataConfig_ = value; + } else { + workloadMetadataConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder setWorkloadMetadataConfig( + com.google.container.v1.WorkloadMetadataConfig.Builder builderForValue) { + if (workloadMetadataConfigBuilder_ == null) { + workloadMetadataConfig_ = builderForValue.build(); + } else { + workloadMetadataConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder mergeWorkloadMetadataConfig(com.google.container.v1.WorkloadMetadataConfig value) { + if (workloadMetadataConfigBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) && + workloadMetadataConfig_ != null && + workloadMetadataConfig_ != com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance()) { + getWorkloadMetadataConfigBuilder().mergeFrom(value); + } else { + workloadMetadataConfig_ = value; + } + } else { + workloadMetadataConfigBuilder_.mergeFrom(value); + } + if (workloadMetadataConfig_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + /** + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder clearWorkloadMetadataConfig() { + bitField0_ = (bitField0_ & ~0x00000100); + workloadMetadataConfig_ = null; + if (workloadMetadataConfigBuilder_ != null) { + workloadMetadataConfigBuilder_.dispose(); + workloadMetadataConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public com.google.container.v1.WorkloadMetadataConfig.Builder getWorkloadMetadataConfigBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getWorkloadMetadataConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public com.google.container.v1.WorkloadMetadataConfigOrBuilder getWorkloadMetadataConfigOrBuilder() { + if (workloadMetadataConfigBuilder_ != null) { + return workloadMetadataConfigBuilder_.getMessageOrBuilder(); + } else { + return workloadMetadataConfig_ == null ? + com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance() : workloadMetadataConfig_; + } + } + /** + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WorkloadMetadataConfig, com.google.container.v1.WorkloadMetadataConfig.Builder, com.google.container.v1.WorkloadMetadataConfigOrBuilder> + getWorkloadMetadataConfigFieldBuilder() { + if (workloadMetadataConfigBuilder_ == null) { + workloadMetadataConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WorkloadMetadataConfig, com.google.container.v1.WorkloadMetadataConfig.Builder, com.google.container.v1.WorkloadMetadataConfigOrBuilder>( + getWorkloadMetadataConfig(), + getParentForChildren(), + isClean()); + workloadMetadataConfig_ = null; + } + return workloadMetadataConfigBuilder_; + } + + private com.google.container.v1.NodePool.UpgradeSettings upgradeSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool.UpgradeSettings, com.google.container.v1.NodePool.UpgradeSettings.Builder, com.google.container.v1.NodePool.UpgradeSettingsOrBuilder> upgradeSettingsBuilder_; + /** + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + * @return Whether the upgradeSettings field is set. + */ + public boolean hasUpgradeSettings() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + * @return The upgradeSettings. + */ + public com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings() { + if (upgradeSettingsBuilder_ == null) { + return upgradeSettings_ == null ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() : upgradeSettings_; + } else { + return upgradeSettingsBuilder_.getMessage(); + } + } + /** + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + public Builder setUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value) { + if (upgradeSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + upgradeSettings_ = value; + } else { + upgradeSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + public Builder setUpgradeSettings( + com.google.container.v1.NodePool.UpgradeSettings.Builder builderForValue) { + if (upgradeSettingsBuilder_ == null) { + upgradeSettings_ = builderForValue.build(); + } else { + upgradeSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + public Builder mergeUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value) { + if (upgradeSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) && + upgradeSettings_ != null && + upgradeSettings_ != com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance()) { + getUpgradeSettingsBuilder().mergeFrom(value); + } else { + upgradeSettings_ = value; + } + } else { + upgradeSettingsBuilder_.mergeFrom(value); + } + if (upgradeSettings_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + /** + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + public Builder clearUpgradeSettings() { + bitField0_ = (bitField0_ & ~0x00000200); + upgradeSettings_ = null; + if (upgradeSettingsBuilder_ != null) { + upgradeSettingsBuilder_.dispose(); + upgradeSettingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + public com.google.container.v1.NodePool.UpgradeSettings.Builder getUpgradeSettingsBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getUpgradeSettingsFieldBuilder().getBuilder(); + } + /** + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { + if (upgradeSettingsBuilder_ != null) { + return upgradeSettingsBuilder_.getMessageOrBuilder(); + } else { + return upgradeSettings_ == null ? + com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() : upgradeSettings_; + } + } + /** + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool.UpgradeSettings, com.google.container.v1.NodePool.UpgradeSettings.Builder, com.google.container.v1.NodePool.UpgradeSettingsOrBuilder> + getUpgradeSettingsFieldBuilder() { + if (upgradeSettingsBuilder_ == null) { + upgradeSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePool.UpgradeSettings, com.google.container.v1.NodePool.UpgradeSettings.Builder, com.google.container.v1.NodePool.UpgradeSettingsOrBuilder>( + getUpgradeSettings(), + getParentForChildren(), + isClean()); + upgradeSettings_ = null; + } + return upgradeSettingsBuilder_; + } + + private com.google.container.v1.NetworkTags tags_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkTags, com.google.container.v1.NetworkTags.Builder, com.google.container.v1.NetworkTagsOrBuilder> tagsBuilder_; + /** + *
+     * The desired network tags to be applied to all nodes in the node pool.
+     * If this field is not present, the tags will not be changed. Otherwise,
+     * the existing network tags will be *replaced* with the provided tags.
+     * 
+ * + * .google.container.v1.NetworkTags tags = 16; + * @return Whether the tags field is set. + */ + public boolean hasTags() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + *
+     * The desired network tags to be applied to all nodes in the node pool.
+     * If this field is not present, the tags will not be changed. Otherwise,
+     * the existing network tags will be *replaced* with the provided tags.
+     * 
+ * + * .google.container.v1.NetworkTags tags = 16; + * @return The tags. + */ + public com.google.container.v1.NetworkTags getTags() { + if (tagsBuilder_ == null) { + return tags_ == null ? com.google.container.v1.NetworkTags.getDefaultInstance() : tags_; + } else { + return tagsBuilder_.getMessage(); + } + } + /** + *
+     * The desired network tags to be applied to all nodes in the node pool.
+     * If this field is not present, the tags will not be changed. Otherwise,
+     * the existing network tags will be *replaced* with the provided tags.
+     * 
+ * + * .google.container.v1.NetworkTags tags = 16; + */ + public Builder setTags(com.google.container.v1.NetworkTags value) { + if (tagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tags_ = value; + } else { + tagsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+     * The desired network tags to be applied to all nodes in the node pool.
+     * If this field is not present, the tags will not be changed. Otherwise,
+     * the existing network tags will be *replaced* with the provided tags.
+     * 
+ * + * .google.container.v1.NetworkTags tags = 16; + */ + public Builder setTags( + com.google.container.v1.NetworkTags.Builder builderForValue) { + if (tagsBuilder_ == null) { + tags_ = builderForValue.build(); + } else { + tagsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+     * The desired network tags to be applied to all nodes in the node pool.
+     * If this field is not present, the tags will not be changed. Otherwise,
+     * the existing network tags will be *replaced* with the provided tags.
+     * 
+ * + * .google.container.v1.NetworkTags tags = 16; + */ + public Builder mergeTags(com.google.container.v1.NetworkTags value) { + if (tagsBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) && + tags_ != null && + tags_ != com.google.container.v1.NetworkTags.getDefaultInstance()) { + getTagsBuilder().mergeFrom(value); + } else { + tags_ = value; + } + } else { + tagsBuilder_.mergeFrom(value); + } + if (tags_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + /** + *
+     * The desired network tags to be applied to all nodes in the node pool.
+     * If this field is not present, the tags will not be changed. Otherwise,
+     * the existing network tags will be *replaced* with the provided tags.
+     * 
+ * + * .google.container.v1.NetworkTags tags = 16; + */ + public Builder clearTags() { + bitField0_ = (bitField0_ & ~0x00000400); + tags_ = null; + if (tagsBuilder_ != null) { + tagsBuilder_.dispose(); + tagsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired network tags to be applied to all nodes in the node pool.
+     * If this field is not present, the tags will not be changed. Otherwise,
+     * the existing network tags will be *replaced* with the provided tags.
+     * 
+ * + * .google.container.v1.NetworkTags tags = 16; + */ + public com.google.container.v1.NetworkTags.Builder getTagsBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getTagsFieldBuilder().getBuilder(); + } + /** + *
+     * The desired network tags to be applied to all nodes in the node pool.
+     * If this field is not present, the tags will not be changed. Otherwise,
+     * the existing network tags will be *replaced* with the provided tags.
+     * 
+ * + * .google.container.v1.NetworkTags tags = 16; + */ + public com.google.container.v1.NetworkTagsOrBuilder getTagsOrBuilder() { + if (tagsBuilder_ != null) { + return tagsBuilder_.getMessageOrBuilder(); + } else { + return tags_ == null ? + com.google.container.v1.NetworkTags.getDefaultInstance() : tags_; + } + } + /** + *
+     * The desired network tags to be applied to all nodes in the node pool.
+     * If this field is not present, the tags will not be changed. Otherwise,
+     * the existing network tags will be *replaced* with the provided tags.
+     * 
+ * + * .google.container.v1.NetworkTags tags = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkTags, com.google.container.v1.NetworkTags.Builder, com.google.container.v1.NetworkTagsOrBuilder> + getTagsFieldBuilder() { + if (tagsBuilder_ == null) { + tagsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NetworkTags, com.google.container.v1.NetworkTags.Builder, com.google.container.v1.NetworkTagsOrBuilder>( + getTags(), + getParentForChildren(), + isClean()); + tags_ = null; + } + return tagsBuilder_; + } + + private com.google.container.v1.NodeTaints taints_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeTaints, com.google.container.v1.NodeTaints.Builder, com.google.container.v1.NodeTaintsOrBuilder> taintsBuilder_; + /** + *
+     * The desired node taints to be applied to all nodes in the node pool.
+     * If this field is not present, the taints will not be changed. Otherwise,
+     * the existing node taints will be *replaced* with the provided taints.
+     * 
+ * + * .google.container.v1.NodeTaints taints = 17; + * @return Whether the taints field is set. + */ + public boolean hasTaints() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + *
+     * The desired node taints to be applied to all nodes in the node pool.
+     * If this field is not present, the taints will not be changed. Otherwise,
+     * the existing node taints will be *replaced* with the provided taints.
+     * 
+ * + * .google.container.v1.NodeTaints taints = 17; + * @return The taints. + */ + public com.google.container.v1.NodeTaints getTaints() { + if (taintsBuilder_ == null) { + return taints_ == null ? com.google.container.v1.NodeTaints.getDefaultInstance() : taints_; + } else { + return taintsBuilder_.getMessage(); + } + } + /** + *
+     * The desired node taints to be applied to all nodes in the node pool.
+     * If this field is not present, the taints will not be changed. Otherwise,
+     * the existing node taints will be *replaced* with the provided taints.
+     * 
+ * + * .google.container.v1.NodeTaints taints = 17; + */ + public Builder setTaints(com.google.container.v1.NodeTaints value) { + if (taintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + taints_ = value; + } else { + taintsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * The desired node taints to be applied to all nodes in the node pool.
+     * If this field is not present, the taints will not be changed. Otherwise,
+     * the existing node taints will be *replaced* with the provided taints.
+     * 
+ * + * .google.container.v1.NodeTaints taints = 17; + */ + public Builder setTaints( + com.google.container.v1.NodeTaints.Builder builderForValue) { + if (taintsBuilder_ == null) { + taints_ = builderForValue.build(); + } else { + taintsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * The desired node taints to be applied to all nodes in the node pool.
+     * If this field is not present, the taints will not be changed. Otherwise,
+     * the existing node taints will be *replaced* with the provided taints.
+     * 
+ * + * .google.container.v1.NodeTaints taints = 17; + */ + public Builder mergeTaints(com.google.container.v1.NodeTaints value) { + if (taintsBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) && + taints_ != null && + taints_ != com.google.container.v1.NodeTaints.getDefaultInstance()) { + getTaintsBuilder().mergeFrom(value); + } else { + taints_ = value; + } + } else { + taintsBuilder_.mergeFrom(value); + } + if (taints_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + /** + *
+     * The desired node taints to be applied to all nodes in the node pool.
+     * If this field is not present, the taints will not be changed. Otherwise,
+     * the existing node taints will be *replaced* with the provided taints.
+     * 
+ * + * .google.container.v1.NodeTaints taints = 17; + */ + public Builder clearTaints() { + bitField0_ = (bitField0_ & ~0x00000800); + taints_ = null; + if (taintsBuilder_ != null) { + taintsBuilder_.dispose(); + taintsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired node taints to be applied to all nodes in the node pool.
+     * If this field is not present, the taints will not be changed. Otherwise,
+     * the existing node taints will be *replaced* with the provided taints.
+     * 
+ * + * .google.container.v1.NodeTaints taints = 17; + */ + public com.google.container.v1.NodeTaints.Builder getTaintsBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return getTaintsFieldBuilder().getBuilder(); + } + /** + *
+     * The desired node taints to be applied to all nodes in the node pool.
+     * If this field is not present, the taints will not be changed. Otherwise,
+     * the existing node taints will be *replaced* with the provided taints.
+     * 
+ * + * .google.container.v1.NodeTaints taints = 17; + */ + public com.google.container.v1.NodeTaintsOrBuilder getTaintsOrBuilder() { + if (taintsBuilder_ != null) { + return taintsBuilder_.getMessageOrBuilder(); + } else { + return taints_ == null ? + com.google.container.v1.NodeTaints.getDefaultInstance() : taints_; + } + } + /** + *
+     * The desired node taints to be applied to all nodes in the node pool.
+     * If this field is not present, the taints will not be changed. Otherwise,
+     * the existing node taints will be *replaced* with the provided taints.
+     * 
+ * + * .google.container.v1.NodeTaints taints = 17; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeTaints, com.google.container.v1.NodeTaints.Builder, com.google.container.v1.NodeTaintsOrBuilder> + getTaintsFieldBuilder() { + if (taintsBuilder_ == null) { + taintsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeTaints, com.google.container.v1.NodeTaints.Builder, com.google.container.v1.NodeTaintsOrBuilder>( + getTaints(), + getParentForChildren(), + isClean()); + taints_ = null; + } + return taintsBuilder_; + } + + private com.google.container.v1.NodeLabels labels_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeLabels, com.google.container.v1.NodeLabels.Builder, com.google.container.v1.NodeLabelsOrBuilder> labelsBuilder_; + /** + *
+     * The desired node labels to be applied to all nodes in the node pool.
+     * If this field is not present, the labels will not be changed. Otherwise,
+     * the existing node labels will be *replaced* with the provided labels.
+     * 
+ * + * .google.container.v1.NodeLabels labels = 18; + * @return Whether the labels field is set. + */ + public boolean hasLabels() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + *
+     * The desired node labels to be applied to all nodes in the node pool.
+     * If this field is not present, the labels will not be changed. Otherwise,
+     * the existing node labels will be *replaced* with the provided labels.
+     * 
+ * + * .google.container.v1.NodeLabels labels = 18; + * @return The labels. + */ + public com.google.container.v1.NodeLabels getLabels() { + if (labelsBuilder_ == null) { + return labels_ == null ? com.google.container.v1.NodeLabels.getDefaultInstance() : labels_; + } else { + return labelsBuilder_.getMessage(); + } + } + /** + *
+     * The desired node labels to be applied to all nodes in the node pool.
+     * If this field is not present, the labels will not be changed. Otherwise,
+     * the existing node labels will be *replaced* with the provided labels.
+     * 
+ * + * .google.container.v1.NodeLabels labels = 18; + */ + public Builder setLabels(com.google.container.v1.NodeLabels value) { + if (labelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + labels_ = value; + } else { + labelsBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + *
+     * The desired node labels to be applied to all nodes in the node pool.
+     * If this field is not present, the labels will not be changed. Otherwise,
+     * the existing node labels will be *replaced* with the provided labels.
+     * 
+ * + * .google.container.v1.NodeLabels labels = 18; + */ + public Builder setLabels( + com.google.container.v1.NodeLabels.Builder builderForValue) { + if (labelsBuilder_ == null) { + labels_ = builderForValue.build(); + } else { + labelsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + *
+     * The desired node labels to be applied to all nodes in the node pool.
+     * If this field is not present, the labels will not be changed. Otherwise,
+     * the existing node labels will be *replaced* with the provided labels.
+     * 
+ * + * .google.container.v1.NodeLabels labels = 18; + */ + public Builder mergeLabels(com.google.container.v1.NodeLabels value) { + if (labelsBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) && + labels_ != null && + labels_ != com.google.container.v1.NodeLabels.getDefaultInstance()) { + getLabelsBuilder().mergeFrom(value); + } else { + labels_ = value; + } + } else { + labelsBuilder_.mergeFrom(value); + } + if (labels_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; + } + /** + *
+     * The desired node labels to be applied to all nodes in the node pool.
+     * If this field is not present, the labels will not be changed. Otherwise,
+     * the existing node labels will be *replaced* with the provided labels.
+     * 
+ * + * .google.container.v1.NodeLabels labels = 18; + */ + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00001000); + labels_ = null; + if (labelsBuilder_ != null) { + labelsBuilder_.dispose(); + labelsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired node labels to be applied to all nodes in the node pool.
+     * If this field is not present, the labels will not be changed. Otherwise,
+     * the existing node labels will be *replaced* with the provided labels.
+     * 
+ * + * .google.container.v1.NodeLabels labels = 18; + */ + public com.google.container.v1.NodeLabels.Builder getLabelsBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return getLabelsFieldBuilder().getBuilder(); + } + /** + *
+     * The desired node labels to be applied to all nodes in the node pool.
+     * If this field is not present, the labels will not be changed. Otherwise,
+     * the existing node labels will be *replaced* with the provided labels.
+     * 
+ * + * .google.container.v1.NodeLabels labels = 18; + */ + public com.google.container.v1.NodeLabelsOrBuilder getLabelsOrBuilder() { + if (labelsBuilder_ != null) { + return labelsBuilder_.getMessageOrBuilder(); + } else { + return labels_ == null ? + com.google.container.v1.NodeLabels.getDefaultInstance() : labels_; + } + } + /** + *
+     * The desired node labels to be applied to all nodes in the node pool.
+     * If this field is not present, the labels will not be changed. Otherwise,
+     * the existing node labels will be *replaced* with the provided labels.
+     * 
+ * + * .google.container.v1.NodeLabels labels = 18; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeLabels, com.google.container.v1.NodeLabels.Builder, com.google.container.v1.NodeLabelsOrBuilder> + getLabelsFieldBuilder() { + if (labelsBuilder_ == null) { + labelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeLabels, com.google.container.v1.NodeLabels.Builder, com.google.container.v1.NodeLabelsOrBuilder>( + getLabels(), + getParentForChildren(), + isClean()); + labels_ = null; + } + return labelsBuilder_; + } + + private com.google.container.v1.LinuxNodeConfig linuxNodeConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LinuxNodeConfig, com.google.container.v1.LinuxNodeConfig.Builder, com.google.container.v1.LinuxNodeConfigOrBuilder> linuxNodeConfigBuilder_; + /** + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + * @return Whether the linuxNodeConfig field is set. + */ + public boolean hasLinuxNodeConfig() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + * @return The linuxNodeConfig. + */ + public com.google.container.v1.LinuxNodeConfig getLinuxNodeConfig() { + if (linuxNodeConfigBuilder_ == null) { + return linuxNodeConfig_ == null ? com.google.container.v1.LinuxNodeConfig.getDefaultInstance() : linuxNodeConfig_; + } else { + return linuxNodeConfigBuilder_.getMessage(); + } + } + /** + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + */ + public Builder setLinuxNodeConfig(com.google.container.v1.LinuxNodeConfig value) { + if (linuxNodeConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + linuxNodeConfig_ = value; + } else { + linuxNodeConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + */ + public Builder setLinuxNodeConfig( + com.google.container.v1.LinuxNodeConfig.Builder builderForValue) { + if (linuxNodeConfigBuilder_ == null) { + linuxNodeConfig_ = builderForValue.build(); + } else { + linuxNodeConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + */ + public Builder mergeLinuxNodeConfig(com.google.container.v1.LinuxNodeConfig value) { + if (linuxNodeConfigBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) && + linuxNodeConfig_ != null && + linuxNodeConfig_ != com.google.container.v1.LinuxNodeConfig.getDefaultInstance()) { + getLinuxNodeConfigBuilder().mergeFrom(value); + } else { + linuxNodeConfig_ = value; + } + } else { + linuxNodeConfigBuilder_.mergeFrom(value); + } + if (linuxNodeConfig_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } + return this; + } + /** + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + */ + public Builder clearLinuxNodeConfig() { + bitField0_ = (bitField0_ & ~0x00002000); + linuxNodeConfig_ = null; + if (linuxNodeConfigBuilder_ != null) { + linuxNodeConfigBuilder_.dispose(); + linuxNodeConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + */ + public com.google.container.v1.LinuxNodeConfig.Builder getLinuxNodeConfigBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return getLinuxNodeConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + */ + public com.google.container.v1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder() { + if (linuxNodeConfigBuilder_ != null) { + return linuxNodeConfigBuilder_.getMessageOrBuilder(); + } else { + return linuxNodeConfig_ == null ? + com.google.container.v1.LinuxNodeConfig.getDefaultInstance() : linuxNodeConfig_; + } + } + /** + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LinuxNodeConfig, com.google.container.v1.LinuxNodeConfig.Builder, com.google.container.v1.LinuxNodeConfigOrBuilder> + getLinuxNodeConfigFieldBuilder() { + if (linuxNodeConfigBuilder_ == null) { + linuxNodeConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LinuxNodeConfig, com.google.container.v1.LinuxNodeConfig.Builder, com.google.container.v1.LinuxNodeConfigOrBuilder>( + getLinuxNodeConfig(), + getParentForChildren(), + isClean()); + linuxNodeConfig_ = null; + } + return linuxNodeConfigBuilder_; + } + + private com.google.container.v1.NodeKubeletConfig kubeletConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeKubeletConfig, com.google.container.v1.NodeKubeletConfig.Builder, com.google.container.v1.NodeKubeletConfigOrBuilder> kubeletConfigBuilder_; + /** + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + * @return Whether the kubeletConfig field is set. + */ + public boolean hasKubeletConfig() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + * @return The kubeletConfig. + */ + public com.google.container.v1.NodeKubeletConfig getKubeletConfig() { + if (kubeletConfigBuilder_ == null) { + return kubeletConfig_ == null ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() : kubeletConfig_; + } else { + return kubeletConfigBuilder_.getMessage(); + } + } + /** + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + */ + public Builder setKubeletConfig(com.google.container.v1.NodeKubeletConfig value) { + if (kubeletConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kubeletConfig_ = value; + } else { + kubeletConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + */ + public Builder setKubeletConfig( + com.google.container.v1.NodeKubeletConfig.Builder builderForValue) { + if (kubeletConfigBuilder_ == null) { + kubeletConfig_ = builderForValue.build(); + } else { + kubeletConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + */ + public Builder mergeKubeletConfig(com.google.container.v1.NodeKubeletConfig value) { + if (kubeletConfigBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) && + kubeletConfig_ != null && + kubeletConfig_ != com.google.container.v1.NodeKubeletConfig.getDefaultInstance()) { + getKubeletConfigBuilder().mergeFrom(value); + } else { + kubeletConfig_ = value; + } + } else { + kubeletConfigBuilder_.mergeFrom(value); + } + if (kubeletConfig_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } + return this; + } + /** + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + */ + public Builder clearKubeletConfig() { + bitField0_ = (bitField0_ & ~0x00004000); + kubeletConfig_ = null; + if (kubeletConfigBuilder_ != null) { + kubeletConfigBuilder_.dispose(); + kubeletConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + */ + public com.google.container.v1.NodeKubeletConfig.Builder getKubeletConfigBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return getKubeletConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + */ + public com.google.container.v1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder() { + if (kubeletConfigBuilder_ != null) { + return kubeletConfigBuilder_.getMessageOrBuilder(); + } else { + return kubeletConfig_ == null ? + com.google.container.v1.NodeKubeletConfig.getDefaultInstance() : kubeletConfig_; + } + } + /** + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeKubeletConfig, com.google.container.v1.NodeKubeletConfig.Builder, com.google.container.v1.NodeKubeletConfigOrBuilder> + getKubeletConfigFieldBuilder() { + if (kubeletConfigBuilder_ == null) { + kubeletConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeKubeletConfig, com.google.container.v1.NodeKubeletConfig.Builder, com.google.container.v1.NodeKubeletConfigOrBuilder>( + getKubeletConfig(), + getParentForChildren(), + isClean()); + kubeletConfig_ = null; + } + return kubeletConfigBuilder_; + } + + private com.google.container.v1.NodeNetworkConfig nodeNetworkConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeNetworkConfig, com.google.container.v1.NodeNetworkConfig.Builder, com.google.container.v1.NodeNetworkConfigOrBuilder> nodeNetworkConfigBuilder_; + /** + *
+     * Node network config.
+     * 
+ * + * .google.container.v1.NodeNetworkConfig node_network_config = 21; + * @return Whether the nodeNetworkConfig field is set. + */ + public boolean hasNodeNetworkConfig() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + *
+     * Node network config.
+     * 
+ * + * .google.container.v1.NodeNetworkConfig node_network_config = 21; + * @return The nodeNetworkConfig. + */ + public com.google.container.v1.NodeNetworkConfig getNodeNetworkConfig() { + if (nodeNetworkConfigBuilder_ == null) { + return nodeNetworkConfig_ == null ? com.google.container.v1.NodeNetworkConfig.getDefaultInstance() : nodeNetworkConfig_; + } else { + return nodeNetworkConfigBuilder_.getMessage(); + } + } + /** + *
+     * Node network config.
+     * 
+ * + * .google.container.v1.NodeNetworkConfig node_network_config = 21; + */ + public Builder setNodeNetworkConfig(com.google.container.v1.NodeNetworkConfig value) { + if (nodeNetworkConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodeNetworkConfig_ = value; + } else { + nodeNetworkConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + *
+     * Node network config.
+     * 
+ * + * .google.container.v1.NodeNetworkConfig node_network_config = 21; + */ + public Builder setNodeNetworkConfig( + com.google.container.v1.NodeNetworkConfig.Builder builderForValue) { + if (nodeNetworkConfigBuilder_ == null) { + nodeNetworkConfig_ = builderForValue.build(); + } else { + nodeNetworkConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + *
+     * Node network config.
+     * 
+ * + * .google.container.v1.NodeNetworkConfig node_network_config = 21; + */ + public Builder mergeNodeNetworkConfig(com.google.container.v1.NodeNetworkConfig value) { + if (nodeNetworkConfigBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) && + nodeNetworkConfig_ != null && + nodeNetworkConfig_ != com.google.container.v1.NodeNetworkConfig.getDefaultInstance()) { + getNodeNetworkConfigBuilder().mergeFrom(value); + } else { + nodeNetworkConfig_ = value; + } + } else { + nodeNetworkConfigBuilder_.mergeFrom(value); + } + if (nodeNetworkConfig_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } + return this; + } + /** + *
+     * Node network config.
+     * 
+ * + * .google.container.v1.NodeNetworkConfig node_network_config = 21; + */ + public Builder clearNodeNetworkConfig() { + bitField0_ = (bitField0_ & ~0x00008000); + nodeNetworkConfig_ = null; + if (nodeNetworkConfigBuilder_ != null) { + nodeNetworkConfigBuilder_.dispose(); + nodeNetworkConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Node network config.
+     * 
+ * + * .google.container.v1.NodeNetworkConfig node_network_config = 21; + */ + public com.google.container.v1.NodeNetworkConfig.Builder getNodeNetworkConfigBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return getNodeNetworkConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Node network config.
+     * 
+ * + * .google.container.v1.NodeNetworkConfig node_network_config = 21; + */ + public com.google.container.v1.NodeNetworkConfigOrBuilder getNodeNetworkConfigOrBuilder() { + if (nodeNetworkConfigBuilder_ != null) { + return nodeNetworkConfigBuilder_.getMessageOrBuilder(); + } else { + return nodeNetworkConfig_ == null ? + com.google.container.v1.NodeNetworkConfig.getDefaultInstance() : nodeNetworkConfig_; + } + } + /** + *
+     * Node network config.
+     * 
+ * + * .google.container.v1.NodeNetworkConfig node_network_config = 21; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeNetworkConfig, com.google.container.v1.NodeNetworkConfig.Builder, com.google.container.v1.NodeNetworkConfigOrBuilder> + getNodeNetworkConfigFieldBuilder() { + if (nodeNetworkConfigBuilder_ == null) { + nodeNetworkConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeNetworkConfig, com.google.container.v1.NodeNetworkConfig.Builder, com.google.container.v1.NodeNetworkConfigOrBuilder>( + getNodeNetworkConfig(), + getParentForChildren(), + isClean()); + nodeNetworkConfig_ = null; + } + return nodeNetworkConfigBuilder_; + } + + private com.google.container.v1.GcfsConfig gcfsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcfsConfig, com.google.container.v1.GcfsConfig.Builder, com.google.container.v1.GcfsConfigOrBuilder> gcfsConfigBuilder_; + /** + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + * @return Whether the gcfsConfig field is set. + */ + public boolean hasGcfsConfig() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + * @return The gcfsConfig. + */ + public com.google.container.v1.GcfsConfig getGcfsConfig() { + if (gcfsConfigBuilder_ == null) { + return gcfsConfig_ == null ? com.google.container.v1.GcfsConfig.getDefaultInstance() : gcfsConfig_; + } else { + return gcfsConfigBuilder_.getMessage(); + } + } + /** + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + */ + public Builder setGcfsConfig(com.google.container.v1.GcfsConfig value) { + if (gcfsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gcfsConfig_ = value; + } else { + gcfsConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + */ + public Builder setGcfsConfig( + com.google.container.v1.GcfsConfig.Builder builderForValue) { + if (gcfsConfigBuilder_ == null) { + gcfsConfig_ = builderForValue.build(); + } else { + gcfsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + */ + public Builder mergeGcfsConfig(com.google.container.v1.GcfsConfig value) { + if (gcfsConfigBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0) && + gcfsConfig_ != null && + gcfsConfig_ != com.google.container.v1.GcfsConfig.getDefaultInstance()) { + getGcfsConfigBuilder().mergeFrom(value); + } else { + gcfsConfig_ = value; + } + } else { + gcfsConfigBuilder_.mergeFrom(value); + } + if (gcfsConfig_ != null) { + bitField0_ |= 0x00010000; + onChanged(); + } + return this; + } + /** + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + */ + public Builder clearGcfsConfig() { + bitField0_ = (bitField0_ & ~0x00010000); + gcfsConfig_ = null; + if (gcfsConfigBuilder_ != null) { + gcfsConfigBuilder_.dispose(); + gcfsConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + */ + public com.google.container.v1.GcfsConfig.Builder getGcfsConfigBuilder() { + bitField0_ |= 0x00010000; + onChanged(); + return getGcfsConfigFieldBuilder().getBuilder(); + } + /** + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + */ + public com.google.container.v1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { + if (gcfsConfigBuilder_ != null) { + return gcfsConfigBuilder_.getMessageOrBuilder(); + } else { + return gcfsConfig_ == null ? + com.google.container.v1.GcfsConfig.getDefaultInstance() : gcfsConfig_; + } + } + /** + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcfsConfig, com.google.container.v1.GcfsConfig.Builder, com.google.container.v1.GcfsConfigOrBuilder> + getGcfsConfigFieldBuilder() { + if (gcfsConfigBuilder_ == null) { + gcfsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.GcfsConfig, com.google.container.v1.GcfsConfig.Builder, com.google.container.v1.GcfsConfigOrBuilder>( + getGcfsConfig(), + getParentForChildren(), + isClean()); + gcfsConfig_ = null; + } + return gcfsConfigBuilder_; + } + + private com.google.container.v1.ConfidentialNodes confidentialNodes_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ConfidentialNodes, com.google.container.v1.ConfidentialNodes.Builder, com.google.container.v1.ConfidentialNodesOrBuilder> confidentialNodesBuilder_; + /** + *
+     * Confidential nodes config.
+     * All the nodes in the node pool will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 23; + * @return Whether the confidentialNodes field is set. + */ + public boolean hasConfidentialNodes() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + *
+     * Confidential nodes config.
+     * All the nodes in the node pool will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 23; + * @return The confidentialNodes. + */ + public com.google.container.v1.ConfidentialNodes getConfidentialNodes() { + if (confidentialNodesBuilder_ == null) { + return confidentialNodes_ == null ? com.google.container.v1.ConfidentialNodes.getDefaultInstance() : confidentialNodes_; + } else { + return confidentialNodesBuilder_.getMessage(); + } + } + /** + *
+     * Confidential nodes config.
+     * All the nodes in the node pool will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 23; + */ + public Builder setConfidentialNodes(com.google.container.v1.ConfidentialNodes value) { + if (confidentialNodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + confidentialNodes_ = value; + } else { + confidentialNodesBuilder_.setMessage(value); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + *
+     * Confidential nodes config.
+     * All the nodes in the node pool will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 23; + */ + public Builder setConfidentialNodes( + com.google.container.v1.ConfidentialNodes.Builder builderForValue) { + if (confidentialNodesBuilder_ == null) { + confidentialNodes_ = builderForValue.build(); + } else { + confidentialNodesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + *
+     * Confidential nodes config.
+     * All the nodes in the node pool will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 23; + */ + public Builder mergeConfidentialNodes(com.google.container.v1.ConfidentialNodes value) { + if (confidentialNodesBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) && + confidentialNodes_ != null && + confidentialNodes_ != com.google.container.v1.ConfidentialNodes.getDefaultInstance()) { + getConfidentialNodesBuilder().mergeFrom(value); + } else { + confidentialNodes_ = value; + } + } else { + confidentialNodesBuilder_.mergeFrom(value); + } + if (confidentialNodes_ != null) { + bitField0_ |= 0x00020000; + onChanged(); + } + return this; + } + /** + *
+     * Confidential nodes config.
+     * All the nodes in the node pool will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 23; + */ + public Builder clearConfidentialNodes() { + bitField0_ = (bitField0_ & ~0x00020000); + confidentialNodes_ = null; + if (confidentialNodesBuilder_ != null) { + confidentialNodesBuilder_.dispose(); + confidentialNodesBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Confidential nodes config.
+     * All the nodes in the node pool will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 23; + */ + public com.google.container.v1.ConfidentialNodes.Builder getConfidentialNodesBuilder() { + bitField0_ |= 0x00020000; + onChanged(); + return getConfidentialNodesFieldBuilder().getBuilder(); + } + /** + *
+     * Confidential nodes config.
+     * All the nodes in the node pool will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 23; + */ + public com.google.container.v1.ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder() { + if (confidentialNodesBuilder_ != null) { + return confidentialNodesBuilder_.getMessageOrBuilder(); + } else { + return confidentialNodes_ == null ? + com.google.container.v1.ConfidentialNodes.getDefaultInstance() : confidentialNodes_; + } + } + /** + *
+     * Confidential nodes config.
+     * All the nodes in the node pool will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 23; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ConfidentialNodes, com.google.container.v1.ConfidentialNodes.Builder, com.google.container.v1.ConfidentialNodesOrBuilder> + getConfidentialNodesFieldBuilder() { + if (confidentialNodesBuilder_ == null) { + confidentialNodesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ConfidentialNodes, com.google.container.v1.ConfidentialNodes.Builder, com.google.container.v1.ConfidentialNodesOrBuilder>( + getConfidentialNodes(), + getParentForChildren(), + isClean()); + confidentialNodes_ = null; + } + return confidentialNodesBuilder_; + } + + private com.google.container.v1.VirtualNIC gvnic_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.VirtualNIC, com.google.container.v1.VirtualNIC.Builder, com.google.container.v1.VirtualNICOrBuilder> gvnicBuilder_; + /** + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + * @return Whether the gvnic field is set. + */ + public boolean hasGvnic() { + return ((bitField0_ & 0x00040000) != 0); + } + /** + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + * @return The gvnic. + */ + public com.google.container.v1.VirtualNIC getGvnic() { + if (gvnicBuilder_ == null) { + return gvnic_ == null ? com.google.container.v1.VirtualNIC.getDefaultInstance() : gvnic_; + } else { + return gvnicBuilder_.getMessage(); + } + } + /** + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + public Builder setGvnic(com.google.container.v1.VirtualNIC value) { + if (gvnicBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gvnic_ = value; + } else { + gvnicBuilder_.setMessage(value); + } + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + public Builder setGvnic( + com.google.container.v1.VirtualNIC.Builder builderForValue) { + if (gvnicBuilder_ == null) { + gvnic_ = builderForValue.build(); + } else { + gvnicBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + public Builder mergeGvnic(com.google.container.v1.VirtualNIC value) { + if (gvnicBuilder_ == null) { + if (((bitField0_ & 0x00040000) != 0) && + gvnic_ != null && + gvnic_ != com.google.container.v1.VirtualNIC.getDefaultInstance()) { + getGvnicBuilder().mergeFrom(value); + } else { + gvnic_ = value; + } + } else { + gvnicBuilder_.mergeFrom(value); + } + if (gvnic_ != null) { + bitField0_ |= 0x00040000; + onChanged(); + } + return this; + } + /** + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + public Builder clearGvnic() { + bitField0_ = (bitField0_ & ~0x00040000); + gvnic_ = null; + if (gvnicBuilder_ != null) { + gvnicBuilder_.dispose(); + gvnicBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + public com.google.container.v1.VirtualNIC.Builder getGvnicBuilder() { + bitField0_ |= 0x00040000; + onChanged(); + return getGvnicFieldBuilder().getBuilder(); + } + /** + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + public com.google.container.v1.VirtualNICOrBuilder getGvnicOrBuilder() { + if (gvnicBuilder_ != null) { + return gvnicBuilder_.getMessageOrBuilder(); + } else { + return gvnic_ == null ? + com.google.container.v1.VirtualNIC.getDefaultInstance() : gvnic_; + } + } + /** + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.VirtualNIC, com.google.container.v1.VirtualNIC.Builder, com.google.container.v1.VirtualNICOrBuilder> + getGvnicFieldBuilder() { + if (gvnicBuilder_ == null) { + gvnicBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.VirtualNIC, com.google.container.v1.VirtualNIC.Builder, com.google.container.v1.VirtualNICOrBuilder>( + getGvnic(), + getParentForChildren(), + isClean()); + gvnic_ = null; + } + return gvnicBuilder_; + } + + private java.lang.Object etag_ = ""; + /** + *
+     * The current etag of the node pool.
+     * If an etag is provided and does not match the current etag of the node
+     * pool, update will be blocked and an ABORTED error will be returned.
+     * 
+ * + * string etag = 30; + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The current etag of the node pool.
+     * If an etag is provided and does not match the current etag of the node
+     * pool, update will be blocked and an ABORTED error will be returned.
+     * 
+ * + * string etag = 30; + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString + getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The current etag of the node pool.
+     * If an etag is provided and does not match the current etag of the node
+     * pool, update will be blocked and an ABORTED error will be returned.
+     * 
+ * + * string etag = 30; + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + etag_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + *
+     * The current etag of the node pool.
+     * If an etag is provided and does not match the current etag of the node
+     * pool, update will be blocked and an ABORTED error will be returned.
+     * 
+ * + * string etag = 30; + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00080000); + onChanged(); + return this; + } + /** + *
+     * The current etag of the node pool.
+     * If an etag is provided and does not match the current etag of the node
+     * pool, update will be blocked and an ABORTED error will be returned.
+     * 
+ * + * string etag = 30; + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + private com.google.container.v1.FastSocket fastSocket_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.FastSocket, com.google.container.v1.FastSocket.Builder, com.google.container.v1.FastSocketOrBuilder> fastSocketBuilder_; + /** + *
+     * Enable or disable NCCL fast socket for the node pool.
+     * 
+ * + * .google.container.v1.FastSocket fast_socket = 31; + * @return Whether the fastSocket field is set. + */ + public boolean hasFastSocket() { + return ((bitField0_ & 0x00100000) != 0); + } + /** + *
+     * Enable or disable NCCL fast socket for the node pool.
+     * 
+ * + * .google.container.v1.FastSocket fast_socket = 31; + * @return The fastSocket. + */ + public com.google.container.v1.FastSocket getFastSocket() { + if (fastSocketBuilder_ == null) { + return fastSocket_ == null ? com.google.container.v1.FastSocket.getDefaultInstance() : fastSocket_; + } else { + return fastSocketBuilder_.getMessage(); + } + } + /** + *
+     * Enable or disable NCCL fast socket for the node pool.
+     * 
+ * + * .google.container.v1.FastSocket fast_socket = 31; + */ + public Builder setFastSocket(com.google.container.v1.FastSocket value) { + if (fastSocketBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fastSocket_ = value; + } else { + fastSocketBuilder_.setMessage(value); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + *
+     * Enable or disable NCCL fast socket for the node pool.
+     * 
+ * + * .google.container.v1.FastSocket fast_socket = 31; + */ + public Builder setFastSocket( + com.google.container.v1.FastSocket.Builder builderForValue) { + if (fastSocketBuilder_ == null) { + fastSocket_ = builderForValue.build(); + } else { + fastSocketBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + *
+     * Enable or disable NCCL fast socket for the node pool.
+     * 
+ * + * .google.container.v1.FastSocket fast_socket = 31; + */ + public Builder mergeFastSocket(com.google.container.v1.FastSocket value) { + if (fastSocketBuilder_ == null) { + if (((bitField0_ & 0x00100000) != 0) && + fastSocket_ != null && + fastSocket_ != com.google.container.v1.FastSocket.getDefaultInstance()) { + getFastSocketBuilder().mergeFrom(value); + } else { + fastSocket_ = value; + } + } else { + fastSocketBuilder_.mergeFrom(value); + } + if (fastSocket_ != null) { + bitField0_ |= 0x00100000; + onChanged(); + } + return this; + } + /** + *
+     * Enable or disable NCCL fast socket for the node pool.
+     * 
+ * + * .google.container.v1.FastSocket fast_socket = 31; + */ + public Builder clearFastSocket() { + bitField0_ = (bitField0_ & ~0x00100000); + fastSocket_ = null; + if (fastSocketBuilder_ != null) { + fastSocketBuilder_.dispose(); + fastSocketBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Enable or disable NCCL fast socket for the node pool.
+     * 
+ * + * .google.container.v1.FastSocket fast_socket = 31; + */ + public com.google.container.v1.FastSocket.Builder getFastSocketBuilder() { + bitField0_ |= 0x00100000; + onChanged(); + return getFastSocketFieldBuilder().getBuilder(); + } + /** + *
+     * Enable or disable NCCL fast socket for the node pool.
+     * 
+ * + * .google.container.v1.FastSocket fast_socket = 31; + */ + public com.google.container.v1.FastSocketOrBuilder getFastSocketOrBuilder() { + if (fastSocketBuilder_ != null) { + return fastSocketBuilder_.getMessageOrBuilder(); + } else { + return fastSocket_ == null ? + com.google.container.v1.FastSocket.getDefaultInstance() : fastSocket_; + } + } + /** + *
+     * Enable or disable NCCL fast socket for the node pool.
+     * 
+ * + * .google.container.v1.FastSocket fast_socket = 31; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.FastSocket, com.google.container.v1.FastSocket.Builder, com.google.container.v1.FastSocketOrBuilder> + getFastSocketFieldBuilder() { + if (fastSocketBuilder_ == null) { + fastSocketBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.FastSocket, com.google.container.v1.FastSocket.Builder, com.google.container.v1.FastSocketOrBuilder>( + getFastSocket(), + getParentForChildren(), + isClean()); + fastSocket_ = null; + } + return fastSocketBuilder_; + } + + private com.google.container.v1.NodePoolLoggingConfig loggingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePoolLoggingConfig, com.google.container.v1.NodePoolLoggingConfig.Builder, com.google.container.v1.NodePoolLoggingConfigOrBuilder> loggingConfigBuilder_; + /** + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 32; + * @return Whether the loggingConfig field is set. + */ + public boolean hasLoggingConfig() { + return ((bitField0_ & 0x00200000) != 0); + } + /** + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 32; + * @return The loggingConfig. + */ + public com.google.container.v1.NodePoolLoggingConfig getLoggingConfig() { + if (loggingConfigBuilder_ == null) { + return loggingConfig_ == null ? com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance() : loggingConfig_; + } else { + return loggingConfigBuilder_.getMessage(); + } + } + /** + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 32; + */ + public Builder setLoggingConfig(com.google.container.v1.NodePoolLoggingConfig value) { + if (loggingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + loggingConfig_ = value; + } else { + loggingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + /** + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 32; + */ + public Builder setLoggingConfig( + com.google.container.v1.NodePoolLoggingConfig.Builder builderForValue) { + if (loggingConfigBuilder_ == null) { + loggingConfig_ = builderForValue.build(); + } else { + loggingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + /** + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 32; + */ + public Builder mergeLoggingConfig(com.google.container.v1.NodePoolLoggingConfig value) { + if (loggingConfigBuilder_ == null) { + if (((bitField0_ & 0x00200000) != 0) && + loggingConfig_ != null && + loggingConfig_ != com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance()) { + getLoggingConfigBuilder().mergeFrom(value); + } else { + loggingConfig_ = value; + } + } else { + loggingConfigBuilder_.mergeFrom(value); + } + if (loggingConfig_ != null) { + bitField0_ |= 0x00200000; + onChanged(); + } + return this; + } + /** + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 32; + */ + public Builder clearLoggingConfig() { + bitField0_ = (bitField0_ & ~0x00200000); + loggingConfig_ = null; + if (loggingConfigBuilder_ != null) { + loggingConfigBuilder_.dispose(); + loggingConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 32; + */ + public com.google.container.v1.NodePoolLoggingConfig.Builder getLoggingConfigBuilder() { + bitField0_ |= 0x00200000; + onChanged(); + return getLoggingConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 32; + */ + public com.google.container.v1.NodePoolLoggingConfigOrBuilder getLoggingConfigOrBuilder() { + if (loggingConfigBuilder_ != null) { + return loggingConfigBuilder_.getMessageOrBuilder(); + } else { + return loggingConfig_ == null ? + com.google.container.v1.NodePoolLoggingConfig.getDefaultInstance() : loggingConfig_; + } + } + /** + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 32; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePoolLoggingConfig, com.google.container.v1.NodePoolLoggingConfig.Builder, com.google.container.v1.NodePoolLoggingConfigOrBuilder> + getLoggingConfigFieldBuilder() { + if (loggingConfigBuilder_ == null) { + loggingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodePoolLoggingConfig, com.google.container.v1.NodePoolLoggingConfig.Builder, com.google.container.v1.NodePoolLoggingConfigOrBuilder>( + getLoggingConfig(), + getParentForChildren(), + isClean()); + loggingConfig_ = null; + } + return loggingConfigBuilder_; + } + + private com.google.container.v1.ResourceLabels resourceLabels_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ResourceLabels, com.google.container.v1.ResourceLabels.Builder, com.google.container.v1.ResourceLabelsOrBuilder> resourceLabelsBuilder_; + /** + *
+     * The resource labels for the node pool to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * .google.container.v1.ResourceLabels resource_labels = 33; + * @return Whether the resourceLabels field is set. + */ + public boolean hasResourceLabels() { + return ((bitField0_ & 0x00400000) != 0); + } + /** + *
+     * The resource labels for the node pool to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * .google.container.v1.ResourceLabels resource_labels = 33; + * @return The resourceLabels. + */ + public com.google.container.v1.ResourceLabels getResourceLabels() { + if (resourceLabelsBuilder_ == null) { + return resourceLabels_ == null ? com.google.container.v1.ResourceLabels.getDefaultInstance() : resourceLabels_; + } else { + return resourceLabelsBuilder_.getMessage(); + } + } + /** + *
+     * The resource labels for the node pool to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * .google.container.v1.ResourceLabels resource_labels = 33; + */ + public Builder setResourceLabels(com.google.container.v1.ResourceLabels value) { + if (resourceLabelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resourceLabels_ = value; + } else { + resourceLabelsBuilder_.setMessage(value); + } + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + /** + *
+     * The resource labels for the node pool to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * .google.container.v1.ResourceLabels resource_labels = 33; + */ + public Builder setResourceLabels( + com.google.container.v1.ResourceLabels.Builder builderForValue) { + if (resourceLabelsBuilder_ == null) { + resourceLabels_ = builderForValue.build(); + } else { + resourceLabelsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + /** + *
+     * The resource labels for the node pool to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * .google.container.v1.ResourceLabels resource_labels = 33; + */ + public Builder mergeResourceLabels(com.google.container.v1.ResourceLabels value) { + if (resourceLabelsBuilder_ == null) { + if (((bitField0_ & 0x00400000) != 0) && + resourceLabels_ != null && + resourceLabels_ != com.google.container.v1.ResourceLabels.getDefaultInstance()) { + getResourceLabelsBuilder().mergeFrom(value); + } else { + resourceLabels_ = value; + } + } else { + resourceLabelsBuilder_.mergeFrom(value); + } + if (resourceLabels_ != null) { + bitField0_ |= 0x00400000; + onChanged(); + } + return this; + } + /** + *
+     * The resource labels for the node pool to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * .google.container.v1.ResourceLabels resource_labels = 33; + */ + public Builder clearResourceLabels() { + bitField0_ = (bitField0_ & ~0x00400000); + resourceLabels_ = null; + if (resourceLabelsBuilder_ != null) { + resourceLabelsBuilder_.dispose(); + resourceLabelsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The resource labels for the node pool to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * .google.container.v1.ResourceLabels resource_labels = 33; + */ + public com.google.container.v1.ResourceLabels.Builder getResourceLabelsBuilder() { + bitField0_ |= 0x00400000; + onChanged(); + return getResourceLabelsFieldBuilder().getBuilder(); + } + /** + *
+     * The resource labels for the node pool to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * .google.container.v1.ResourceLabels resource_labels = 33; + */ + public com.google.container.v1.ResourceLabelsOrBuilder getResourceLabelsOrBuilder() { + if (resourceLabelsBuilder_ != null) { + return resourceLabelsBuilder_.getMessageOrBuilder(); + } else { + return resourceLabels_ == null ? + com.google.container.v1.ResourceLabels.getDefaultInstance() : resourceLabels_; + } + } + /** + *
+     * The resource labels for the node pool to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * .google.container.v1.ResourceLabels resource_labels = 33; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ResourceLabels, com.google.container.v1.ResourceLabels.Builder, com.google.container.v1.ResourceLabelsOrBuilder> + getResourceLabelsFieldBuilder() { + if (resourceLabelsBuilder_ == null) { + resourceLabelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ResourceLabels, com.google.container.v1.ResourceLabels.Builder, com.google.container.v1.ResourceLabelsOrBuilder>( + getResourceLabels(), + getParentForChildren(), + isClean()); + resourceLabels_ = null; + } + return resourceLabelsBuilder_; + } + + private com.google.container.v1.WindowsNodeConfig windowsNodeConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WindowsNodeConfig, com.google.container.v1.WindowsNodeConfig.Builder, com.google.container.v1.WindowsNodeConfigOrBuilder> windowsNodeConfigBuilder_; + /** + *
+     * Parameters that can be configured on Windows nodes.
+     * 
+ * + * .google.container.v1.WindowsNodeConfig windows_node_config = 34; + * @return Whether the windowsNodeConfig field is set. + */ + public boolean hasWindowsNodeConfig() { + return ((bitField0_ & 0x00800000) != 0); + } + /** + *
+     * Parameters that can be configured on Windows nodes.
+     * 
+ * + * .google.container.v1.WindowsNodeConfig windows_node_config = 34; + * @return The windowsNodeConfig. + */ + public com.google.container.v1.WindowsNodeConfig getWindowsNodeConfig() { + if (windowsNodeConfigBuilder_ == null) { + return windowsNodeConfig_ == null ? com.google.container.v1.WindowsNodeConfig.getDefaultInstance() : windowsNodeConfig_; + } else { + return windowsNodeConfigBuilder_.getMessage(); + } + } + /** + *
+     * Parameters that can be configured on Windows nodes.
+     * 
+ * + * .google.container.v1.WindowsNodeConfig windows_node_config = 34; + */ + public Builder setWindowsNodeConfig(com.google.container.v1.WindowsNodeConfig value) { + if (windowsNodeConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + windowsNodeConfig_ = value; + } else { + windowsNodeConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + /** + *
+     * Parameters that can be configured on Windows nodes.
+     * 
+ * + * .google.container.v1.WindowsNodeConfig windows_node_config = 34; + */ + public Builder setWindowsNodeConfig( + com.google.container.v1.WindowsNodeConfig.Builder builderForValue) { + if (windowsNodeConfigBuilder_ == null) { + windowsNodeConfig_ = builderForValue.build(); + } else { + windowsNodeConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + /** + *
+     * Parameters that can be configured on Windows nodes.
+     * 
+ * + * .google.container.v1.WindowsNodeConfig windows_node_config = 34; + */ + public Builder mergeWindowsNodeConfig(com.google.container.v1.WindowsNodeConfig value) { + if (windowsNodeConfigBuilder_ == null) { + if (((bitField0_ & 0x00800000) != 0) && + windowsNodeConfig_ != null && + windowsNodeConfig_ != com.google.container.v1.WindowsNodeConfig.getDefaultInstance()) { + getWindowsNodeConfigBuilder().mergeFrom(value); + } else { + windowsNodeConfig_ = value; + } + } else { + windowsNodeConfigBuilder_.mergeFrom(value); + } + if (windowsNodeConfig_ != null) { + bitField0_ |= 0x00800000; + onChanged(); + } + return this; + } + /** + *
+     * Parameters that can be configured on Windows nodes.
+     * 
+ * + * .google.container.v1.WindowsNodeConfig windows_node_config = 34; + */ + public Builder clearWindowsNodeConfig() { + bitField0_ = (bitField0_ & ~0x00800000); + windowsNodeConfig_ = null; + if (windowsNodeConfigBuilder_ != null) { + windowsNodeConfigBuilder_.dispose(); + windowsNodeConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Parameters that can be configured on Windows nodes.
+     * 
+ * + * .google.container.v1.WindowsNodeConfig windows_node_config = 34; + */ + public com.google.container.v1.WindowsNodeConfig.Builder getWindowsNodeConfigBuilder() { + bitField0_ |= 0x00800000; + onChanged(); + return getWindowsNodeConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Parameters that can be configured on Windows nodes.
+     * 
+ * + * .google.container.v1.WindowsNodeConfig windows_node_config = 34; + */ + public com.google.container.v1.WindowsNodeConfigOrBuilder getWindowsNodeConfigOrBuilder() { + if (windowsNodeConfigBuilder_ != null) { + return windowsNodeConfigBuilder_.getMessageOrBuilder(); + } else { + return windowsNodeConfig_ == null ? + com.google.container.v1.WindowsNodeConfig.getDefaultInstance() : windowsNodeConfig_; + } + } + /** + *
+     * Parameters that can be configured on Windows nodes.
+     * 
+ * + * .google.container.v1.WindowsNodeConfig windows_node_config = 34; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WindowsNodeConfig, com.google.container.v1.WindowsNodeConfig.Builder, com.google.container.v1.WindowsNodeConfigOrBuilder> + getWindowsNodeConfigFieldBuilder() { + if (windowsNodeConfigBuilder_ == null) { + windowsNodeConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.WindowsNodeConfig, com.google.container.v1.WindowsNodeConfig.Builder, com.google.container.v1.WindowsNodeConfigOrBuilder>( + getWindowsNodeConfig(), + getParentForChildren(), + isClean()); + windowsNodeConfig_ = null; + } + return windowsNodeConfigBuilder_; + } + + private java.lang.Object machineType_ = ""; + /** + *
+     * Optional. The desired [Google Compute Engine machine
+     * type](https://cloud.google.com/compute/docs/machine-types) for nodes in the
+     * node pool. Initiates an upgrade operation that migrates the nodes in the
+     * node pool to the specified machine type.
+     * 
+ * + * string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; + * @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; + } + } + /** + *
+     * Optional. The desired [Google Compute Engine machine
+     * type](https://cloud.google.com/compute/docs/machine-types) for nodes in the
+     * node pool. Initiates an upgrade operation that migrates the nodes in the
+     * node pool to the specified machine type.
+     * 
+ * + * string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; + * @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; + } + } + /** + *
+     * Optional. The desired [Google Compute Engine machine
+     * type](https://cloud.google.com/compute/docs/machine-types) for nodes in the
+     * node pool. Initiates an upgrade operation that migrates the nodes in the
+     * node pool to the specified machine type.
+     * 
+ * + * string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; + * @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; + bitField0_ |= 0x01000000; + onChanged(); + return this; + } + /** + *
+     * Optional. The desired [Google Compute Engine machine
+     * type](https://cloud.google.com/compute/docs/machine-types) for nodes in the
+     * node pool. Initiates an upgrade operation that migrates the nodes in the
+     * node pool to the specified machine type.
+     * 
+ * + * string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearMachineType() { + machineType_ = getDefaultInstance().getMachineType(); + bitField0_ = (bitField0_ & ~0x01000000); + onChanged(); + return this; + } + /** + *
+     * Optional. The desired [Google Compute Engine machine
+     * type](https://cloud.google.com/compute/docs/machine-types) for nodes in the
+     * node pool. Initiates an upgrade operation that migrates the nodes in the
+     * node pool to the specified machine type.
+     * 
+ * + * string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; + * @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; + bitField0_ |= 0x01000000; + onChanged(); + return this; + } + + private java.lang.Object diskType_ = ""; + /** + *
+     * Optional. The desired disk type (e.g. 'pd-standard', 'pd-ssd' or
+     * 'pd-balanced') for nodes in the node pool.
+     * Initiates an upgrade operation that migrates the nodes in the
+     * node pool to the specified disk type.
+     * 
+ * + * string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; + * @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; + } + } + /** + *
+     * Optional. The desired disk type (e.g. 'pd-standard', 'pd-ssd' or
+     * 'pd-balanced') for nodes in the node pool.
+     * Initiates an upgrade operation that migrates the nodes in the
+     * node pool to the specified disk type.
+     * 
+ * + * string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; + * @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; + } + } + /** + *
+     * Optional. The desired disk type (e.g. 'pd-standard', 'pd-ssd' or
+     * 'pd-balanced') for nodes in the node pool.
+     * Initiates an upgrade operation that migrates the nodes in the
+     * node pool to the specified disk type.
+     * 
+ * + * string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; + * @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; + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + /** + *
+     * Optional. The desired disk type (e.g. 'pd-standard', 'pd-ssd' or
+     * 'pd-balanced') for nodes in the node pool.
+     * Initiates an upgrade operation that migrates the nodes in the
+     * node pool to the specified disk type.
+     * 
+ * + * string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearDiskType() { + diskType_ = getDefaultInstance().getDiskType(); + bitField0_ = (bitField0_ & ~0x02000000); + onChanged(); + return this; + } + /** + *
+     * Optional. The desired disk type (e.g. 'pd-standard', 'pd-ssd' or
+     * 'pd-balanced') for nodes in the node pool.
+     * Initiates an upgrade operation that migrates the nodes in the
+     * node pool to the specified disk type.
+     * 
+ * + * string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; + * @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; + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + + private long diskSizeGb_ ; + /** + *
+     * Optional. The desired disk size for nodes in the node pool specified in GB.
+     * The smallest allowed disk size is 10GB.
+     * Initiates an upgrade operation that migrates the nodes in the
+     * node pool to the specified disk size.
+     * 
+ * + * int64 disk_size_gb = 38 [(.google.api.field_behavior) = OPTIONAL]; + * @return The diskSizeGb. + */ + @java.lang.Override + public long getDiskSizeGb() { + return diskSizeGb_; + } + /** + *
+     * Optional. The desired disk size for nodes in the node pool specified in GB.
+     * The smallest allowed disk size is 10GB.
+     * Initiates an upgrade operation that migrates the nodes in the
+     * node pool to the specified disk size.
+     * 
+ * + * int64 disk_size_gb = 38 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The diskSizeGb to set. + * @return This builder for chaining. + */ + public Builder setDiskSizeGb(long value) { + + diskSizeGb_ = value; + bitField0_ |= 0x04000000; + onChanged(); + return this; + } + /** + *
+     * Optional. The desired disk size for nodes in the node pool specified in GB.
+     * The smallest allowed disk size is 10GB.
+     * Initiates an upgrade operation that migrates the nodes in the
+     * node pool to the specified disk size.
+     * 
+ * + * int64 disk_size_gb = 38 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearDiskSizeGb() { + bitField0_ = (bitField0_ & ~0x04000000); + diskSizeGb_ = 0L; + onChanged(); + return this; + } + + private com.google.container.v1.ResourceManagerTags resourceManagerTags_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ResourceManagerTags, com.google.container.v1.ResourceManagerTags.Builder, com.google.container.v1.ResourceManagerTagsOrBuilder> resourceManagerTagsBuilder_; + /** + *
+     * Desired resource manager tag keys and values to be attached to the nodes
+     * for managing Compute Engine firewalls using Network Firewall Policies.
+     * Existing tags will be replaced with new values.
+     * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 39; + * @return Whether the resourceManagerTags field is set. + */ + public boolean hasResourceManagerTags() { + return ((bitField0_ & 0x08000000) != 0); + } + /** + *
+     * Desired resource manager tag keys and values to be attached to the nodes
+     * for managing Compute Engine firewalls using Network Firewall Policies.
+     * Existing tags will be replaced with new values.
+     * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 39; + * @return The resourceManagerTags. + */ + public com.google.container.v1.ResourceManagerTags getResourceManagerTags() { + if (resourceManagerTagsBuilder_ == null) { + return resourceManagerTags_ == null ? com.google.container.v1.ResourceManagerTags.getDefaultInstance() : resourceManagerTags_; + } else { + return resourceManagerTagsBuilder_.getMessage(); + } + } + /** + *
+     * Desired resource manager tag keys and values to be attached to the nodes
+     * for managing Compute Engine firewalls using Network Firewall Policies.
+     * Existing tags will be replaced with new values.
+     * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 39; + */ + public Builder setResourceManagerTags(com.google.container.v1.ResourceManagerTags value) { + if (resourceManagerTagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resourceManagerTags_ = value; + } else { + resourceManagerTagsBuilder_.setMessage(value); + } + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + /** + *
+     * Desired resource manager tag keys and values to be attached to the nodes
+     * for managing Compute Engine firewalls using Network Firewall Policies.
+     * Existing tags will be replaced with new values.
+     * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 39; + */ + public Builder setResourceManagerTags( + com.google.container.v1.ResourceManagerTags.Builder builderForValue) { + if (resourceManagerTagsBuilder_ == null) { + resourceManagerTags_ = builderForValue.build(); + } else { + resourceManagerTagsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + /** + *
+     * Desired resource manager tag keys and values to be attached to the nodes
+     * for managing Compute Engine firewalls using Network Firewall Policies.
+     * Existing tags will be replaced with new values.
+     * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 39; + */ + public Builder mergeResourceManagerTags(com.google.container.v1.ResourceManagerTags value) { + if (resourceManagerTagsBuilder_ == null) { + if (((bitField0_ & 0x08000000) != 0) && + resourceManagerTags_ != null && + resourceManagerTags_ != com.google.container.v1.ResourceManagerTags.getDefaultInstance()) { + getResourceManagerTagsBuilder().mergeFrom(value); + } else { + resourceManagerTags_ = value; + } + } else { + resourceManagerTagsBuilder_.mergeFrom(value); + } + if (resourceManagerTags_ != null) { + bitField0_ |= 0x08000000; + onChanged(); + } + return this; + } + /** + *
+     * Desired resource manager tag keys and values to be attached to the nodes
+     * for managing Compute Engine firewalls using Network Firewall Policies.
+     * Existing tags will be replaced with new values.
+     * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 39; + */ + public Builder clearResourceManagerTags() { + bitField0_ = (bitField0_ & ~0x08000000); + resourceManagerTags_ = null; + if (resourceManagerTagsBuilder_ != null) { + resourceManagerTagsBuilder_.dispose(); + resourceManagerTagsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Desired resource manager tag keys and values to be attached to the nodes
+     * for managing Compute Engine firewalls using Network Firewall Policies.
+     * Existing tags will be replaced with new values.
+     * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 39; + */ + public com.google.container.v1.ResourceManagerTags.Builder getResourceManagerTagsBuilder() { + bitField0_ |= 0x08000000; + onChanged(); + return getResourceManagerTagsFieldBuilder().getBuilder(); + } + /** + *
+     * Desired resource manager tag keys and values to be attached to the nodes
+     * for managing Compute Engine firewalls using Network Firewall Policies.
+     * Existing tags will be replaced with new values.
+     * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 39; + */ + public com.google.container.v1.ResourceManagerTagsOrBuilder getResourceManagerTagsOrBuilder() { + if (resourceManagerTagsBuilder_ != null) { + return resourceManagerTagsBuilder_.getMessageOrBuilder(); + } else { + return resourceManagerTags_ == null ? + com.google.container.v1.ResourceManagerTags.getDefaultInstance() : resourceManagerTags_; + } + } + /** + *
+     * Desired resource manager tag keys and values to be attached to the nodes
+     * for managing Compute Engine firewalls using Network Firewall Policies.
+     * Existing tags will be replaced with new values.
+     * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 39; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ResourceManagerTags, com.google.container.v1.ResourceManagerTags.Builder, com.google.container.v1.ResourceManagerTagsOrBuilder> + getResourceManagerTagsFieldBuilder() { + if (resourceManagerTagsBuilder_ == null) { + resourceManagerTagsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ResourceManagerTags, com.google.container.v1.ResourceManagerTags.Builder, com.google.container.v1.ResourceManagerTagsOrBuilder>( + getResourceManagerTags(), + getParentForChildren(), + isClean()); + resourceManagerTags_ = null; + } + return resourceManagerTagsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.UpdateNodePoolRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.UpdateNodePoolRequest) + private static final com.google.container.v1.UpdateNodePoolRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.UpdateNodePoolRequest(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.UpdateNodePoolRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java new file mode 100644 index 000000000000..db0c245add2e --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java @@ -0,0 +1,816 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface UpdateNodePoolRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.UpdateNodePoolRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2639 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true]; + * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2639 + * @return The bytes for projectId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2645 + * @return The zone. + */ + @java.lang.Deprecated java.lang.String getZone(); + /** + *
+   * Deprecated. The name of the Google Compute Engine
+   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
+   * cluster resides. This field has been deprecated and replaced by the name
+   * field.
+   * 
+ * + * string zone = 2 [deprecated = true]; + * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. + * See google/container/v1/cluster_service.proto;l=2645 + * @return The bytes for zone. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2649 + * @return The clusterId. + */ + @java.lang.Deprecated java.lang.String getClusterId(); + /** + *
+   * Deprecated. The name of the cluster to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string cluster_id = 3 [deprecated = true]; + * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2649 + * @return The bytes for clusterId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * Deprecated. The name of the node pool to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2653 + * @return The nodePoolId. + */ + @java.lang.Deprecated java.lang.String getNodePoolId(); + /** + *
+   * Deprecated. The name of the node pool to upgrade.
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string node_pool_id = 4 [deprecated = true]; + * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1/cluster_service.proto;l=2653 + * @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. Please see
+   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+   * available image types.
+   * 
+ * + * 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. Please see
+   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+   * available image types.
+   * 
+ * + * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for imageType. + */ + com.google.protobuf.ByteString + getImageTypeBytes(); + + /** + *
+   * The name (project, location, cluster, node pool) of the node pool to
+   * update. Specified in the format
+   * `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 8; + * @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(); + + /** + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * node pool's nodes should be located. Changing the locations for a node pool
+   * will result in nodes being either created or removed from the node pool,
+   * depending on whether locations are being added or removed.
+   * 
+ * + * repeated string locations = 13; + * @return A list containing the locations. + */ + java.util.List + getLocationsList(); + /** + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * node pool's nodes should be located. Changing the locations for a node pool
+   * will result in nodes being either created or removed from the node pool,
+   * depending on whether locations are being added or removed.
+   * 
+ * + * repeated string locations = 13; + * @return The count of locations. + */ + int getLocationsCount(); + /** + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * node pool's nodes should be located. Changing the locations for a node pool
+   * will result in nodes being either created or removed from the node pool,
+   * depending on whether locations are being added or removed.
+   * 
+ * + * repeated string locations = 13; + * @param index The index of the element to return. + * @return The locations at the given index. + */ + java.lang.String getLocations(int index); + /** + *
+   * The desired list of Google Compute Engine
+   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
+   * node pool's nodes should be located. Changing the locations for a node pool
+   * will result in nodes being either created or removed from the node pool,
+   * depending on whether locations are being added or removed.
+   * 
+ * + * repeated string locations = 13; + * @param index The index of the value to return. + * @return The bytes of the locations at the given index. + */ + com.google.protobuf.ByteString + getLocationsBytes(int index); + + /** + *
+   * The desired workload metadata config for the node pool.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + * @return Whether the workloadMetadataConfig field is set. + */ + boolean hasWorkloadMetadataConfig(); + /** + *
+   * The desired workload metadata config for the node pool.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + * @return The workloadMetadataConfig. + */ + com.google.container.v1.WorkloadMetadataConfig getWorkloadMetadataConfig(); + /** + *
+   * The desired workload metadata config for the node pool.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + com.google.container.v1.WorkloadMetadataConfigOrBuilder getWorkloadMetadataConfigOrBuilder(); + + /** + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + * @return Whether the upgradeSettings field is set. + */ + boolean hasUpgradeSettings(); + /** + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + * @return The upgradeSettings. + */ + com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings(); + /** + *
+   * Upgrade settings control disruption and speed of the upgrade.
+   * 
+ * + * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder(); + + /** + *
+   * The desired network tags to be applied to all nodes in the node pool.
+   * If this field is not present, the tags will not be changed. Otherwise,
+   * the existing network tags will be *replaced* with the provided tags.
+   * 
+ * + * .google.container.v1.NetworkTags tags = 16; + * @return Whether the tags field is set. + */ + boolean hasTags(); + /** + *
+   * The desired network tags to be applied to all nodes in the node pool.
+   * If this field is not present, the tags will not be changed. Otherwise,
+   * the existing network tags will be *replaced* with the provided tags.
+   * 
+ * + * .google.container.v1.NetworkTags tags = 16; + * @return The tags. + */ + com.google.container.v1.NetworkTags getTags(); + /** + *
+   * The desired network tags to be applied to all nodes in the node pool.
+   * If this field is not present, the tags will not be changed. Otherwise,
+   * the existing network tags will be *replaced* with the provided tags.
+   * 
+ * + * .google.container.v1.NetworkTags tags = 16; + */ + com.google.container.v1.NetworkTagsOrBuilder getTagsOrBuilder(); + + /** + *
+   * The desired node taints to be applied to all nodes in the node pool.
+   * If this field is not present, the taints will not be changed. Otherwise,
+   * the existing node taints will be *replaced* with the provided taints.
+   * 
+ * + * .google.container.v1.NodeTaints taints = 17; + * @return Whether the taints field is set. + */ + boolean hasTaints(); + /** + *
+   * The desired node taints to be applied to all nodes in the node pool.
+   * If this field is not present, the taints will not be changed. Otherwise,
+   * the existing node taints will be *replaced* with the provided taints.
+   * 
+ * + * .google.container.v1.NodeTaints taints = 17; + * @return The taints. + */ + com.google.container.v1.NodeTaints getTaints(); + /** + *
+   * The desired node taints to be applied to all nodes in the node pool.
+   * If this field is not present, the taints will not be changed. Otherwise,
+   * the existing node taints will be *replaced* with the provided taints.
+   * 
+ * + * .google.container.v1.NodeTaints taints = 17; + */ + com.google.container.v1.NodeTaintsOrBuilder getTaintsOrBuilder(); + + /** + *
+   * The desired node labels to be applied to all nodes in the node pool.
+   * If this field is not present, the labels will not be changed. Otherwise,
+   * the existing node labels will be *replaced* with the provided labels.
+   * 
+ * + * .google.container.v1.NodeLabels labels = 18; + * @return Whether the labels field is set. + */ + boolean hasLabels(); + /** + *
+   * The desired node labels to be applied to all nodes in the node pool.
+   * If this field is not present, the labels will not be changed. Otherwise,
+   * the existing node labels will be *replaced* with the provided labels.
+   * 
+ * + * .google.container.v1.NodeLabels labels = 18; + * @return The labels. + */ + com.google.container.v1.NodeLabels getLabels(); + /** + *
+   * The desired node labels to be applied to all nodes in the node pool.
+   * If this field is not present, the labels will not be changed. Otherwise,
+   * the existing node labels will be *replaced* with the provided labels.
+   * 
+ * + * .google.container.v1.NodeLabels labels = 18; + */ + com.google.container.v1.NodeLabelsOrBuilder getLabelsOrBuilder(); + + /** + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + * @return Whether the linuxNodeConfig field is set. + */ + boolean hasLinuxNodeConfig(); + /** + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + * @return The linuxNodeConfig. + */ + com.google.container.v1.LinuxNodeConfig getLinuxNodeConfig(); + /** + *
+   * Parameters that can be configured on Linux nodes.
+   * 
+ * + * .google.container.v1.LinuxNodeConfig linux_node_config = 19; + */ + com.google.container.v1.LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder(); + + /** + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + * @return Whether the kubeletConfig field is set. + */ + boolean hasKubeletConfig(); + /** + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + * @return The kubeletConfig. + */ + com.google.container.v1.NodeKubeletConfig getKubeletConfig(); + /** + *
+   * Node kubelet configs.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig kubelet_config = 20; + */ + com.google.container.v1.NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder(); + + /** + *
+   * Node network config.
+   * 
+ * + * .google.container.v1.NodeNetworkConfig node_network_config = 21; + * @return Whether the nodeNetworkConfig field is set. + */ + boolean hasNodeNetworkConfig(); + /** + *
+   * Node network config.
+   * 
+ * + * .google.container.v1.NodeNetworkConfig node_network_config = 21; + * @return The nodeNetworkConfig. + */ + com.google.container.v1.NodeNetworkConfig getNodeNetworkConfig(); + /** + *
+   * Node network config.
+   * 
+ * + * .google.container.v1.NodeNetworkConfig node_network_config = 21; + */ + com.google.container.v1.NodeNetworkConfigOrBuilder getNodeNetworkConfigOrBuilder(); + + /** + *
+   * GCFS config.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + * @return Whether the gcfsConfig field is set. + */ + boolean hasGcfsConfig(); + /** + *
+   * GCFS config.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + * @return The gcfsConfig. + */ + com.google.container.v1.GcfsConfig getGcfsConfig(); + /** + *
+   * GCFS config.
+   * 
+ * + * .google.container.v1.GcfsConfig gcfs_config = 22; + */ + com.google.container.v1.GcfsConfigOrBuilder getGcfsConfigOrBuilder(); + + /** + *
+   * Confidential nodes config.
+   * All the nodes in the node pool will be Confidential VM once enabled.
+   * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 23; + * @return Whether the confidentialNodes field is set. + */ + boolean hasConfidentialNodes(); + /** + *
+   * Confidential nodes config.
+   * All the nodes in the node pool will be Confidential VM once enabled.
+   * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 23; + * @return The confidentialNodes. + */ + com.google.container.v1.ConfidentialNodes getConfidentialNodes(); + /** + *
+   * Confidential nodes config.
+   * All the nodes in the node pool will be Confidential VM once enabled.
+   * 
+ * + * .google.container.v1.ConfidentialNodes confidential_nodes = 23; + */ + com.google.container.v1.ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder(); + + /** + *
+   * Enable or disable gvnic on the node pool.
+   * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + * @return Whether the gvnic field is set. + */ + boolean hasGvnic(); + /** + *
+   * Enable or disable gvnic on the node pool.
+   * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + * @return The gvnic. + */ + com.google.container.v1.VirtualNIC getGvnic(); + /** + *
+   * Enable or disable gvnic on the node pool.
+   * 
+ * + * .google.container.v1.VirtualNIC gvnic = 29; + */ + com.google.container.v1.VirtualNICOrBuilder getGvnicOrBuilder(); + + /** + *
+   * The current etag of the node pool.
+   * If an etag is provided and does not match the current etag of the node
+   * pool, update will be blocked and an ABORTED error will be returned.
+   * 
+ * + * string etag = 30; + * @return The etag. + */ + java.lang.String getEtag(); + /** + *
+   * The current etag of the node pool.
+   * If an etag is provided and does not match the current etag of the node
+   * pool, update will be blocked and an ABORTED error will be returned.
+   * 
+ * + * string etag = 30; + * @return The bytes for etag. + */ + com.google.protobuf.ByteString + getEtagBytes(); + + /** + *
+   * Enable or disable NCCL fast socket for the node pool.
+   * 
+ * + * .google.container.v1.FastSocket fast_socket = 31; + * @return Whether the fastSocket field is set. + */ + boolean hasFastSocket(); + /** + *
+   * Enable or disable NCCL fast socket for the node pool.
+   * 
+ * + * .google.container.v1.FastSocket fast_socket = 31; + * @return The fastSocket. + */ + com.google.container.v1.FastSocket getFastSocket(); + /** + *
+   * Enable or disable NCCL fast socket for the node pool.
+   * 
+ * + * .google.container.v1.FastSocket fast_socket = 31; + */ + com.google.container.v1.FastSocketOrBuilder getFastSocketOrBuilder(); + + /** + *
+   * Logging configuration.
+   * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 32; + * @return Whether the loggingConfig field is set. + */ + boolean hasLoggingConfig(); + /** + *
+   * Logging configuration.
+   * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 32; + * @return The loggingConfig. + */ + com.google.container.v1.NodePoolLoggingConfig getLoggingConfig(); + /** + *
+   * Logging configuration.
+   * 
+ * + * .google.container.v1.NodePoolLoggingConfig logging_config = 32; + */ + com.google.container.v1.NodePoolLoggingConfigOrBuilder getLoggingConfigOrBuilder(); + + /** + *
+   * The resource labels for the node pool to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * .google.container.v1.ResourceLabels resource_labels = 33; + * @return Whether the resourceLabels field is set. + */ + boolean hasResourceLabels(); + /** + *
+   * The resource labels for the node pool to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * .google.container.v1.ResourceLabels resource_labels = 33; + * @return The resourceLabels. + */ + com.google.container.v1.ResourceLabels getResourceLabels(); + /** + *
+   * The resource labels for the node pool to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * .google.container.v1.ResourceLabels resource_labels = 33; + */ + com.google.container.v1.ResourceLabelsOrBuilder getResourceLabelsOrBuilder(); + + /** + *
+   * Parameters that can be configured on Windows nodes.
+   * 
+ * + * .google.container.v1.WindowsNodeConfig windows_node_config = 34; + * @return Whether the windowsNodeConfig field is set. + */ + boolean hasWindowsNodeConfig(); + /** + *
+   * Parameters that can be configured on Windows nodes.
+   * 
+ * + * .google.container.v1.WindowsNodeConfig windows_node_config = 34; + * @return The windowsNodeConfig. + */ + com.google.container.v1.WindowsNodeConfig getWindowsNodeConfig(); + /** + *
+   * Parameters that can be configured on Windows nodes.
+   * 
+ * + * .google.container.v1.WindowsNodeConfig windows_node_config = 34; + */ + com.google.container.v1.WindowsNodeConfigOrBuilder getWindowsNodeConfigOrBuilder(); + + /** + *
+   * Optional. The desired [Google Compute Engine machine
+   * type](https://cloud.google.com/compute/docs/machine-types) for nodes in the
+   * node pool. Initiates an upgrade operation that migrates the nodes in the
+   * node pool to the specified machine type.
+   * 
+ * + * string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; + * @return The machineType. + */ + java.lang.String getMachineType(); + /** + *
+   * Optional. The desired [Google Compute Engine machine
+   * type](https://cloud.google.com/compute/docs/machine-types) for nodes in the
+   * node pool. Initiates an upgrade operation that migrates the nodes in the
+   * node pool to the specified machine type.
+   * 
+ * + * string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for machineType. + */ + com.google.protobuf.ByteString + getMachineTypeBytes(); + + /** + *
+   * Optional. The desired disk type (e.g. 'pd-standard', 'pd-ssd' or
+   * 'pd-balanced') for nodes in the node pool.
+   * Initiates an upgrade operation that migrates the nodes in the
+   * node pool to the specified disk type.
+   * 
+ * + * string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; + * @return The diskType. + */ + java.lang.String getDiskType(); + /** + *
+   * Optional. The desired disk type (e.g. 'pd-standard', 'pd-ssd' or
+   * 'pd-balanced') for nodes in the node pool.
+   * Initiates an upgrade operation that migrates the nodes in the
+   * node pool to the specified disk type.
+   * 
+ * + * string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for diskType. + */ + com.google.protobuf.ByteString + getDiskTypeBytes(); + + /** + *
+   * Optional. The desired disk size for nodes in the node pool specified in GB.
+   * The smallest allowed disk size is 10GB.
+   * Initiates an upgrade operation that migrates the nodes in the
+   * node pool to the specified disk size.
+   * 
+ * + * int64 disk_size_gb = 38 [(.google.api.field_behavior) = OPTIONAL]; + * @return The diskSizeGb. + */ + long getDiskSizeGb(); + + /** + *
+   * Desired resource manager tag keys and values to be attached to the nodes
+   * for managing Compute Engine firewalls using Network Firewall Policies.
+   * Existing tags will be replaced with new values.
+   * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 39; + * @return Whether the resourceManagerTags field is set. + */ + boolean hasResourceManagerTags(); + /** + *
+   * Desired resource manager tag keys and values to be attached to the nodes
+   * for managing Compute Engine firewalls using Network Firewall Policies.
+   * Existing tags will be replaced with new values.
+   * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 39; + * @return The resourceManagerTags. + */ + com.google.container.v1.ResourceManagerTags getResourceManagerTags(); + /** + *
+   * Desired resource manager tag keys and values to be attached to the nodes
+   * for managing Compute Engine firewalls using Network Firewall Policies.
+   * Existing tags will be replaced with new values.
+   * 
+ * + * .google.container.v1.ResourceManagerTags resource_manager_tags = 39; + */ + com.google.container.v1.ResourceManagerTagsOrBuilder getResourceManagerTagsOrBuilder(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeAvailableEvent.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeAvailableEvent.java new file mode 100644 index 000000000000..013752fd550e --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeAvailableEvent.java @@ -0,0 +1,1126 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * UpgradeAvailableEvent is a notification sent to customers when a new
+ * available version is released.
+ * 
+ * + * Protobuf type {@code google.container.v1.UpgradeAvailableEvent} + */ +public final class UpgradeAvailableEvent extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.UpgradeAvailableEvent) + UpgradeAvailableEventOrBuilder { +private static final long serialVersionUID = 0L; + // Use UpgradeAvailableEvent.newBuilder() to construct. + private UpgradeAvailableEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpgradeAvailableEvent() { + version_ = ""; + resourceType_ = 0; + resource_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UpgradeAvailableEvent(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UpgradeAvailableEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UpgradeAvailableEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.UpgradeAvailableEvent.class, com.google.container.v1.UpgradeAvailableEvent.Builder.class); + } + + private int bitField0_; + public static final int VERSION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; + /** + *
+   * The release version available for upgrade.
+   * 
+ * + * string version = 1; + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + *
+   * The release version available for upgrade.
+   * 
+ * + * string version = 1; + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 2; + private int resourceType_ = 0; + /** + *
+   * The resource type of the release version.
+   * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 2; + * @return The enum numeric value on the wire for resourceType. + */ + @java.lang.Override public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+   * The resource type of the release version.
+   * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 2; + * @return The resourceType. + */ + @java.lang.Override public com.google.container.v1.UpgradeResourceType getResourceType() { + com.google.container.v1.UpgradeResourceType result = com.google.container.v1.UpgradeResourceType.forNumber(resourceType_); + return result == null ? com.google.container.v1.UpgradeResourceType.UNRECOGNIZED : result; + } + + public static final int RELEASE_CHANNEL_FIELD_NUMBER = 3; + private com.google.container.v1.ReleaseChannel releaseChannel_; + /** + *
+   * The release channel of the version. If empty, it means a non-channel
+   * release.
+   * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + * @return Whether the releaseChannel field is set. + */ + @java.lang.Override + public boolean hasReleaseChannel() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * The release channel of the version. If empty, it means a non-channel
+   * release.
+   * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + * @return The releaseChannel. + */ + @java.lang.Override + public com.google.container.v1.ReleaseChannel getReleaseChannel() { + return releaseChannel_ == null ? com.google.container.v1.ReleaseChannel.getDefaultInstance() : releaseChannel_; + } + /** + *
+   * The release channel of the version. If empty, it means a non-channel
+   * release.
+   * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + */ + @java.lang.Override + public com.google.container.v1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder() { + return releaseChannel_ == null ? com.google.container.v1.ReleaseChannel.getDefaultInstance() : releaseChannel_; + } + + public static final int RESOURCE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object resource_ = ""; + /** + *
+   * Optional relative path to the resource. For example, the relative path of
+   * the node pool.
+   * 
+ * + * string resource = 4; + * @return The resource. + */ + @java.lang.Override + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } + } + /** + *
+   * Optional relative path to the resource. For example, the relative path of
+   * the node pool.
+   * 
+ * + * string resource = 4; + * @return The bytes for resource. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); + } + if (resourceType_ != com.google.container.v1.UpgradeResourceType.UPGRADE_RESOURCE_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, resourceType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getReleaseChannel()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, resource_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); + } + if (resourceType_ != com.google.container.v1.UpgradeResourceType.UPGRADE_RESOURCE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, resourceType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getReleaseChannel()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, resource_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.UpgradeAvailableEvent)) { + return super.equals(obj); + } + com.google.container.v1.UpgradeAvailableEvent other = (com.google.container.v1.UpgradeAvailableEvent) obj; + + if (!getVersion() + .equals(other.getVersion())) return false; + if (resourceType_ != other.resourceType_) return false; + if (hasReleaseChannel() != other.hasReleaseChannel()) return false; + if (hasReleaseChannel()) { + if (!getReleaseChannel() + .equals(other.getReleaseChannel())) return false; + } + if (!getResource() + .equals(other.getResource())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + if (hasReleaseChannel()) { + hash = (37 * hash) + RELEASE_CHANNEL_FIELD_NUMBER; + hash = (53 * hash) + getReleaseChannel().hashCode(); + } + hash = (37 * hash) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.UpgradeAvailableEvent parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.UpgradeAvailableEvent parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.UpgradeAvailableEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.UpgradeAvailableEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.UpgradeAvailableEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.UpgradeAvailableEvent parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.UpgradeAvailableEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.UpgradeAvailableEvent parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.UpgradeAvailableEvent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.UpgradeAvailableEvent parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.UpgradeAvailableEvent parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.UpgradeAvailableEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.UpgradeAvailableEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * UpgradeAvailableEvent is a notification sent to customers when a new
+   * available version is released.
+   * 
+ * + * Protobuf type {@code google.container.v1.UpgradeAvailableEvent} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.UpgradeAvailableEvent) + com.google.container.v1.UpgradeAvailableEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UpgradeAvailableEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UpgradeAvailableEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.UpgradeAvailableEvent.class, com.google.container.v1.UpgradeAvailableEvent.Builder.class); + } + + // Construct using com.google.container.v1.UpgradeAvailableEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getReleaseChannelFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + version_ = ""; + resourceType_ = 0; + releaseChannel_ = null; + if (releaseChannelBuilder_ != null) { + releaseChannelBuilder_.dispose(); + releaseChannelBuilder_ = null; + } + resource_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UpgradeAvailableEvent_descriptor; + } + + @java.lang.Override + public com.google.container.v1.UpgradeAvailableEvent getDefaultInstanceForType() { + return com.google.container.v1.UpgradeAvailableEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.UpgradeAvailableEvent build() { + com.google.container.v1.UpgradeAvailableEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.UpgradeAvailableEvent buildPartial() { + com.google.container.v1.UpgradeAvailableEvent result = new com.google.container.v1.UpgradeAvailableEvent(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.UpgradeAvailableEvent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.version_ = version_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.resourceType_ = resourceType_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.releaseChannel_ = releaseChannelBuilder_ == null + ? releaseChannel_ + : releaseChannelBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.resource_ = resource_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.UpgradeAvailableEvent) { + return mergeFrom((com.google.container.v1.UpgradeAvailableEvent)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.UpgradeAvailableEvent other) { + if (other == com.google.container.v1.UpgradeAvailableEvent.getDefaultInstance()) return this; + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + if (other.hasReleaseChannel()) { + mergeReleaseChannel(other.getReleaseChannel()); + } + if (!other.getResource().isEmpty()) { + resource_ = other.resource_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + version_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + resourceType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + input.readMessage( + getReleaseChannelFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object version_ = ""; + /** + *
+     * The release version available for upgrade.
+     * 
+ * + * string version = 1; + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The release version available for upgrade.
+     * 
+ * + * string version = 1; + * @return The bytes for version. + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The release version available for upgrade.
+     * 
+ * + * string version = 1; + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + version_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The release version available for upgrade.
+     * 
+ * + * string version = 1; + * @return This builder for chaining. + */ + public Builder clearVersion() { + version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * The release version available for upgrade.
+     * 
+ * + * string version = 1; + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + version_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int resourceType_ = 0; + /** + *
+     * The resource type of the release version.
+     * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 2; + * @return The enum numeric value on the wire for resourceType. + */ + @java.lang.Override public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+     * The resource type of the release version.
+     * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 2; + * @param value The enum numeric value on the wire for resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The resource type of the release version.
+     * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 2; + * @return The resourceType. + */ + @java.lang.Override + public com.google.container.v1.UpgradeResourceType getResourceType() { + com.google.container.v1.UpgradeResourceType result = com.google.container.v1.UpgradeResourceType.forNumber(resourceType_); + return result == null ? com.google.container.v1.UpgradeResourceType.UNRECOGNIZED : result; + } + /** + *
+     * The resource type of the release version.
+     * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 2; + * @param value The resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceType(com.google.container.v1.UpgradeResourceType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The resource type of the release version.
+     * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 2; + * @return This builder for chaining. + */ + public Builder clearResourceType() { + bitField0_ = (bitField0_ & ~0x00000002); + resourceType_ = 0; + onChanged(); + return this; + } + + private com.google.container.v1.ReleaseChannel releaseChannel_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ReleaseChannel, com.google.container.v1.ReleaseChannel.Builder, com.google.container.v1.ReleaseChannelOrBuilder> releaseChannelBuilder_; + /** + *
+     * The release channel of the version. If empty, it means a non-channel
+     * release.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + * @return Whether the releaseChannel field is set. + */ + public boolean hasReleaseChannel() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * The release channel of the version. If empty, it means a non-channel
+     * release.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + * @return The releaseChannel. + */ + public com.google.container.v1.ReleaseChannel getReleaseChannel() { + if (releaseChannelBuilder_ == null) { + return releaseChannel_ == null ? com.google.container.v1.ReleaseChannel.getDefaultInstance() : releaseChannel_; + } else { + return releaseChannelBuilder_.getMessage(); + } + } + /** + *
+     * The release channel of the version. If empty, it means a non-channel
+     * release.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + */ + public Builder setReleaseChannel(com.google.container.v1.ReleaseChannel value) { + if (releaseChannelBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + releaseChannel_ = value; + } else { + releaseChannelBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The release channel of the version. If empty, it means a non-channel
+     * release.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + */ + public Builder setReleaseChannel( + com.google.container.v1.ReleaseChannel.Builder builderForValue) { + if (releaseChannelBuilder_ == null) { + releaseChannel_ = builderForValue.build(); + } else { + releaseChannelBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The release channel of the version. If empty, it means a non-channel
+     * release.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + */ + public Builder mergeReleaseChannel(com.google.container.v1.ReleaseChannel value) { + if (releaseChannelBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + releaseChannel_ != null && + releaseChannel_ != com.google.container.v1.ReleaseChannel.getDefaultInstance()) { + getReleaseChannelBuilder().mergeFrom(value); + } else { + releaseChannel_ = value; + } + } else { + releaseChannelBuilder_.mergeFrom(value); + } + if (releaseChannel_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+     * The release channel of the version. If empty, it means a non-channel
+     * release.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + */ + public Builder clearReleaseChannel() { + bitField0_ = (bitField0_ & ~0x00000004); + releaseChannel_ = null; + if (releaseChannelBuilder_ != null) { + releaseChannelBuilder_.dispose(); + releaseChannelBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The release channel of the version. If empty, it means a non-channel
+     * release.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + */ + public com.google.container.v1.ReleaseChannel.Builder getReleaseChannelBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getReleaseChannelFieldBuilder().getBuilder(); + } + /** + *
+     * The release channel of the version. If empty, it means a non-channel
+     * release.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + */ + public com.google.container.v1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder() { + if (releaseChannelBuilder_ != null) { + return releaseChannelBuilder_.getMessageOrBuilder(); + } else { + return releaseChannel_ == null ? + com.google.container.v1.ReleaseChannel.getDefaultInstance() : releaseChannel_; + } + } + /** + *
+     * The release channel of the version. If empty, it means a non-channel
+     * release.
+     * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ReleaseChannel, com.google.container.v1.ReleaseChannel.Builder, com.google.container.v1.ReleaseChannelOrBuilder> + getReleaseChannelFieldBuilder() { + if (releaseChannelBuilder_ == null) { + releaseChannelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ReleaseChannel, com.google.container.v1.ReleaseChannel.Builder, com.google.container.v1.ReleaseChannelOrBuilder>( + getReleaseChannel(), + getParentForChildren(), + isClean()); + releaseChannel_ = null; + } + return releaseChannelBuilder_; + } + + private java.lang.Object resource_ = ""; + /** + *
+     * Optional relative path to the resource. For example, the relative path of
+     * the node pool.
+     * 
+ * + * string resource = 4; + * @return The resource. + */ + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional relative path to the resource. For example, the relative path of
+     * the node pool.
+     * 
+ * + * string resource = 4; + * @return The bytes for resource. + */ + public com.google.protobuf.ByteString + getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional relative path to the resource. For example, the relative path of
+     * the node pool.
+     * 
+ * + * string resource = 4; + * @param value The resource to set. + * @return This builder for chaining. + */ + public Builder setResource( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + resource_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Optional relative path to the resource. For example, the relative path of
+     * the node pool.
+     * 
+ * + * string resource = 4; + * @return This builder for chaining. + */ + public Builder clearResource() { + resource_ = getDefaultInstance().getResource(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * Optional relative path to the resource. For example, the relative path of
+     * the node pool.
+     * 
+ * + * string resource = 4; + * @param value The bytes for resource to set. + * @return This builder for chaining. + */ + public Builder setResourceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + resource_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.UpgradeAvailableEvent) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.UpgradeAvailableEvent) + private static final com.google.container.v1.UpgradeAvailableEvent DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.UpgradeAvailableEvent(); + } + + public static com.google.container.v1.UpgradeAvailableEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpgradeAvailableEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.UpgradeAvailableEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeAvailableEventOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeAvailableEventOrBuilder.java new file mode 100644 index 000000000000..16ed49283eba --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeAvailableEventOrBuilder.java @@ -0,0 +1,101 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface UpgradeAvailableEventOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.UpgradeAvailableEvent) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The release version available for upgrade.
+   * 
+ * + * string version = 1; + * @return The version. + */ + java.lang.String getVersion(); + /** + *
+   * The release version available for upgrade.
+   * 
+ * + * string version = 1; + * @return The bytes for version. + */ + com.google.protobuf.ByteString + getVersionBytes(); + + /** + *
+   * The resource type of the release version.
+   * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 2; + * @return The enum numeric value on the wire for resourceType. + */ + int getResourceTypeValue(); + /** + *
+   * The resource type of the release version.
+   * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 2; + * @return The resourceType. + */ + com.google.container.v1.UpgradeResourceType getResourceType(); + + /** + *
+   * The release channel of the version. If empty, it means a non-channel
+   * release.
+   * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + * @return Whether the releaseChannel field is set. + */ + boolean hasReleaseChannel(); + /** + *
+   * The release channel of the version. If empty, it means a non-channel
+   * release.
+   * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + * @return The releaseChannel. + */ + com.google.container.v1.ReleaseChannel getReleaseChannel(); + /** + *
+   * The release channel of the version. If empty, it means a non-channel
+   * release.
+   * 
+ * + * .google.container.v1.ReleaseChannel release_channel = 3; + */ + com.google.container.v1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder(); + + /** + *
+   * Optional relative path to the resource. For example, the relative path of
+   * the node pool.
+   * 
+ * + * string resource = 4; + * @return The resource. + */ + java.lang.String getResource(); + /** + *
+   * Optional relative path to the resource. For example, the relative path of
+   * the node pool.
+   * 
+ * + * string resource = 4; + * @return The bytes for resource. + */ + com.google.protobuf.ByteString + getResourceBytes(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeEvent.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeEvent.java new file mode 100644 index 000000000000..9701c6a921ce --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeEvent.java @@ -0,0 +1,1442 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * UpgradeEvent is a notification sent to customers by the cluster server when
+ * a resource is upgrading.
+ * 
+ * + * Protobuf type {@code google.container.v1.UpgradeEvent} + */ +public final class UpgradeEvent extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.UpgradeEvent) + UpgradeEventOrBuilder { +private static final long serialVersionUID = 0L; + // Use UpgradeEvent.newBuilder() to construct. + private UpgradeEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpgradeEvent() { + resourceType_ = 0; + operation_ = ""; + currentVersion_ = ""; + targetVersion_ = ""; + resource_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UpgradeEvent(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UpgradeEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UpgradeEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.UpgradeEvent.class, com.google.container.v1.UpgradeEvent.Builder.class); + } + + private int bitField0_; + public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; + private int resourceType_ = 0; + /** + *
+   * The resource type that is upgrading.
+   * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 1; + * @return The enum numeric value on the wire for resourceType. + */ + @java.lang.Override public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+   * The resource type that is upgrading.
+   * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 1; + * @return The resourceType. + */ + @java.lang.Override public com.google.container.v1.UpgradeResourceType getResourceType() { + com.google.container.v1.UpgradeResourceType result = com.google.container.v1.UpgradeResourceType.forNumber(resourceType_); + return result == null ? com.google.container.v1.UpgradeResourceType.UNRECOGNIZED : result; + } + + public static final int OPERATION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object operation_ = ""; + /** + *
+   * The operation associated with this upgrade.
+   * 
+ * + * string operation = 2; + * @return The operation. + */ + @java.lang.Override + public java.lang.String getOperation() { + java.lang.Object ref = operation_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operation_ = s; + return s; + } + } + /** + *
+   * The operation associated with this upgrade.
+   * 
+ * + * string operation = 2; + * @return The bytes for operation. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOperationBytes() { + java.lang.Object ref = operation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + operation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPERATION_START_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp operationStartTime_; + /** + *
+   * The time when the operation was started.
+   * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + * @return Whether the operationStartTime field is set. + */ + @java.lang.Override + public boolean hasOperationStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * The time when the operation was started.
+   * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + * @return The operationStartTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getOperationStartTime() { + return operationStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : operationStartTime_; + } + /** + *
+   * The time when the operation was started.
+   * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getOperationStartTimeOrBuilder() { + return operationStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : operationStartTime_; + } + + public static final int CURRENT_VERSION_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object currentVersion_ = ""; + /** + *
+   * The current version before the upgrade.
+   * 
+ * + * string current_version = 4; + * @return The currentVersion. + */ + @java.lang.Override + public java.lang.String getCurrentVersion() { + java.lang.Object ref = currentVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentVersion_ = s; + return s; + } + } + /** + *
+   * The current version before the upgrade.
+   * 
+ * + * string current_version = 4; + * @return The bytes for currentVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCurrentVersionBytes() { + java.lang.Object ref = currentVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + currentVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_VERSION_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object targetVersion_ = ""; + /** + *
+   * The target version for the upgrade.
+   * 
+ * + * string target_version = 5; + * @return The targetVersion. + */ + @java.lang.Override + public java.lang.String getTargetVersion() { + java.lang.Object ref = targetVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetVersion_ = s; + return s; + } + } + /** + *
+   * The target version for the upgrade.
+   * 
+ * + * string target_version = 5; + * @return The bytes for targetVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTargetVersionBytes() { + java.lang.Object ref = targetVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + targetVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object resource_ = ""; + /** + *
+   * Optional relative path to the resource. For example in node pool upgrades,
+   * the relative path of the node pool.
+   * 
+ * + * string resource = 6; + * @return The resource. + */ + @java.lang.Override + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } + } + /** + *
+   * Optional relative path to the resource. For example in node pool upgrades,
+   * the relative path of the node pool.
+   * 
+ * + * string resource = 6; + * @return The bytes for resource. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (resourceType_ != com.google.container.v1.UpgradeResourceType.UPGRADE_RESOURCE_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, resourceType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, operation_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getOperationStartTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, currentVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, targetVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, resource_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resourceType_ != com.google.container.v1.UpgradeResourceType.UPGRADE_RESOURCE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, resourceType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, operation_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getOperationStartTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, currentVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, targetVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, resource_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.UpgradeEvent)) { + return super.equals(obj); + } + com.google.container.v1.UpgradeEvent other = (com.google.container.v1.UpgradeEvent) obj; + + if (resourceType_ != other.resourceType_) return false; + if (!getOperation() + .equals(other.getOperation())) return false; + if (hasOperationStartTime() != other.hasOperationStartTime()) return false; + if (hasOperationStartTime()) { + if (!getOperationStartTime() + .equals(other.getOperationStartTime())) return false; + } + if (!getCurrentVersion() + .equals(other.getCurrentVersion())) return false; + if (!getTargetVersion() + .equals(other.getTargetVersion())) return false; + if (!getResource() + .equals(other.getResource())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.UpgradeEvent parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.UpgradeEvent parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.UpgradeEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.UpgradeEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.UpgradeEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.UpgradeEvent parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.UpgradeEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.UpgradeEvent parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.UpgradeEvent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.UpgradeEvent parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.UpgradeEvent parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.UpgradeEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.UpgradeEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * UpgradeEvent is a notification sent to customers by the cluster server when
+   * a resource is upgrading.
+   * 
+ * + * Protobuf type {@code google.container.v1.UpgradeEvent} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.UpgradeEvent) + com.google.container.v1.UpgradeEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UpgradeEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UpgradeEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.UpgradeEvent.class, com.google.container.v1.UpgradeEvent.Builder.class); + } + + // Construct using com.google.container.v1.UpgradeEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getOperationStartTimeFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + resourceType_ = 0; + operation_ = ""; + operationStartTime_ = null; + if (operationStartTimeBuilder_ != null) { + operationStartTimeBuilder_.dispose(); + operationStartTimeBuilder_ = null; + } + currentVersion_ = ""; + targetVersion_ = ""; + resource_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UpgradeEvent_descriptor; + } + + @java.lang.Override + public com.google.container.v1.UpgradeEvent getDefaultInstanceForType() { + return com.google.container.v1.UpgradeEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.UpgradeEvent build() { + com.google.container.v1.UpgradeEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.UpgradeEvent buildPartial() { + com.google.container.v1.UpgradeEvent result = new com.google.container.v1.UpgradeEvent(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.UpgradeEvent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.resourceType_ = resourceType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.operation_ = operation_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.operationStartTime_ = operationStartTimeBuilder_ == null + ? operationStartTime_ + : operationStartTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.currentVersion_ = currentVersion_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.targetVersion_ = targetVersion_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.resource_ = resource_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.UpgradeEvent) { + return mergeFrom((com.google.container.v1.UpgradeEvent)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.UpgradeEvent other) { + if (other == com.google.container.v1.UpgradeEvent.getDefaultInstance()) return this; + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + if (!other.getOperation().isEmpty()) { + operation_ = other.operation_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasOperationStartTime()) { + mergeOperationStartTime(other.getOperationStartTime()); + } + if (!other.getCurrentVersion().isEmpty()) { + currentVersion_ = other.currentVersion_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getTargetVersion().isEmpty()) { + targetVersion_ = other.targetVersion_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getResource().isEmpty()) { + resource_ = other.resource_; + bitField0_ |= 0x00000020; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + resourceType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + operation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getOperationStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + currentVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + targetVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int resourceType_ = 0; + /** + *
+     * The resource type that is upgrading.
+     * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 1; + * @return The enum numeric value on the wire for resourceType. + */ + @java.lang.Override public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+     * The resource type that is upgrading.
+     * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 1; + * @param value The enum numeric value on the wire for resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The resource type that is upgrading.
+     * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 1; + * @return The resourceType. + */ + @java.lang.Override + public com.google.container.v1.UpgradeResourceType getResourceType() { + com.google.container.v1.UpgradeResourceType result = com.google.container.v1.UpgradeResourceType.forNumber(resourceType_); + return result == null ? com.google.container.v1.UpgradeResourceType.UNRECOGNIZED : result; + } + /** + *
+     * The resource type that is upgrading.
+     * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 1; + * @param value The resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceType(com.google.container.v1.UpgradeResourceType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The resource type that is upgrading.
+     * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 1; + * @return This builder for chaining. + */ + public Builder clearResourceType() { + bitField0_ = (bitField0_ & ~0x00000001); + resourceType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object operation_ = ""; + /** + *
+     * The operation associated with this upgrade.
+     * 
+ * + * string operation = 2; + * @return The operation. + */ + public java.lang.String getOperation() { + java.lang.Object ref = operation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The operation associated with this upgrade.
+     * 
+ * + * string operation = 2; + * @return The bytes for operation. + */ + public com.google.protobuf.ByteString + getOperationBytes() { + java.lang.Object ref = operation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + operation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The operation associated with this upgrade.
+     * 
+ * + * string operation = 2; + * @param value The operation to set. + * @return This builder for chaining. + */ + public Builder setOperation( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + operation_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The operation associated with this upgrade.
+     * 
+ * + * string operation = 2; + * @return This builder for chaining. + */ + public Builder clearOperation() { + operation_ = getDefaultInstance().getOperation(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * The operation associated with this upgrade.
+     * 
+ * + * string operation = 2; + * @param value The bytes for operation to set. + * @return This builder for chaining. + */ + public Builder setOperationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + operation_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp operationStartTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> operationStartTimeBuilder_; + /** + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + * @return Whether the operationStartTime field is set. + */ + public boolean hasOperationStartTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + * @return The operationStartTime. + */ + public com.google.protobuf.Timestamp getOperationStartTime() { + if (operationStartTimeBuilder_ == null) { + return operationStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : operationStartTime_; + } else { + return operationStartTimeBuilder_.getMessage(); + } + } + /** + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + public Builder setOperationStartTime(com.google.protobuf.Timestamp value) { + if (operationStartTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + operationStartTime_ = value; + } else { + operationStartTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + public Builder setOperationStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (operationStartTimeBuilder_ == null) { + operationStartTime_ = builderForValue.build(); + } else { + operationStartTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + public Builder mergeOperationStartTime(com.google.protobuf.Timestamp value) { + if (operationStartTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + operationStartTime_ != null && + operationStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getOperationStartTimeBuilder().mergeFrom(value); + } else { + operationStartTime_ = value; + } + } else { + operationStartTimeBuilder_.mergeFrom(value); + } + if (operationStartTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + public Builder clearOperationStartTime() { + bitField0_ = (bitField0_ & ~0x00000004); + operationStartTime_ = null; + if (operationStartTimeBuilder_ != null) { + operationStartTimeBuilder_.dispose(); + operationStartTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + public com.google.protobuf.Timestamp.Builder getOperationStartTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getOperationStartTimeFieldBuilder().getBuilder(); + } + /** + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getOperationStartTimeOrBuilder() { + if (operationStartTimeBuilder_ != null) { + return operationStartTimeBuilder_.getMessageOrBuilder(); + } else { + return operationStartTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : operationStartTime_; + } + } + /** + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getOperationStartTimeFieldBuilder() { + if (operationStartTimeBuilder_ == null) { + operationStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getOperationStartTime(), + getParentForChildren(), + isClean()); + operationStartTime_ = null; + } + return operationStartTimeBuilder_; + } + + private java.lang.Object currentVersion_ = ""; + /** + *
+     * The current version before the upgrade.
+     * 
+ * + * string current_version = 4; + * @return The currentVersion. + */ + public java.lang.String getCurrentVersion() { + java.lang.Object ref = currentVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The current version before the upgrade.
+     * 
+ * + * string current_version = 4; + * @return The bytes for currentVersion. + */ + public com.google.protobuf.ByteString + getCurrentVersionBytes() { + java.lang.Object ref = currentVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + currentVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The current version before the upgrade.
+     * 
+ * + * string current_version = 4; + * @param value The currentVersion to set. + * @return This builder for chaining. + */ + public Builder setCurrentVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + currentVersion_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The current version before the upgrade.
+     * 
+ * + * string current_version = 4; + * @return This builder for chaining. + */ + public Builder clearCurrentVersion() { + currentVersion_ = getDefaultInstance().getCurrentVersion(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * The current version before the upgrade.
+     * 
+ * + * string current_version = 4; + * @param value The bytes for currentVersion to set. + * @return This builder for chaining. + */ + public Builder setCurrentVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + currentVersion_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object targetVersion_ = ""; + /** + *
+     * The target version for the upgrade.
+     * 
+ * + * string target_version = 5; + * @return The targetVersion. + */ + public java.lang.String getTargetVersion() { + java.lang.Object ref = targetVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The target version for the upgrade.
+     * 
+ * + * string target_version = 5; + * @return The bytes for targetVersion. + */ + public com.google.protobuf.ByteString + getTargetVersionBytes() { + java.lang.Object ref = targetVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + targetVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The target version for the upgrade.
+     * 
+ * + * string target_version = 5; + * @param value The targetVersion to set. + * @return This builder for chaining. + */ + public Builder setTargetVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + targetVersion_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * The target version for the upgrade.
+     * 
+ * + * string target_version = 5; + * @return This builder for chaining. + */ + public Builder clearTargetVersion() { + targetVersion_ = getDefaultInstance().getTargetVersion(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+     * The target version for the upgrade.
+     * 
+ * + * string target_version = 5; + * @param value The bytes for targetVersion to set. + * @return This builder for chaining. + */ + public Builder setTargetVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + targetVersion_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object resource_ = ""; + /** + *
+     * Optional relative path to the resource. For example in node pool upgrades,
+     * the relative path of the node pool.
+     * 
+ * + * string resource = 6; + * @return The resource. + */ + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional relative path to the resource. For example in node pool upgrades,
+     * the relative path of the node pool.
+     * 
+ * + * string resource = 6; + * @return The bytes for resource. + */ + public com.google.protobuf.ByteString + getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional relative path to the resource. For example in node pool upgrades,
+     * the relative path of the node pool.
+     * 
+ * + * string resource = 6; + * @param value The resource to set. + * @return This builder for chaining. + */ + public Builder setResource( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + resource_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Optional relative path to the resource. For example in node pool upgrades,
+     * the relative path of the node pool.
+     * 
+ * + * string resource = 6; + * @return This builder for chaining. + */ + public Builder clearResource() { + resource_ = getDefaultInstance().getResource(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + *
+     * Optional relative path to the resource. For example in node pool upgrades,
+     * the relative path of the node pool.
+     * 
+ * + * string resource = 6; + * @param value The bytes for resource to set. + * @return This builder for chaining. + */ + public Builder setResourceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + resource_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.UpgradeEvent) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.UpgradeEvent) + private static final com.google.container.v1.UpgradeEvent DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.UpgradeEvent(); + } + + public static com.google.container.v1.UpgradeEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpgradeEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.UpgradeEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeEventOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeEventOrBuilder.java new file mode 100644 index 000000000000..ebd547223b13 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeEventOrBuilder.java @@ -0,0 +1,138 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface UpgradeEventOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.UpgradeEvent) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The resource type that is upgrading.
+   * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 1; + * @return The enum numeric value on the wire for resourceType. + */ + int getResourceTypeValue(); + /** + *
+   * The resource type that is upgrading.
+   * 
+ * + * .google.container.v1.UpgradeResourceType resource_type = 1; + * @return The resourceType. + */ + com.google.container.v1.UpgradeResourceType getResourceType(); + + /** + *
+   * The operation associated with this upgrade.
+   * 
+ * + * string operation = 2; + * @return The operation. + */ + java.lang.String getOperation(); + /** + *
+   * The operation associated with this upgrade.
+   * 
+ * + * string operation = 2; + * @return The bytes for operation. + */ + com.google.protobuf.ByteString + getOperationBytes(); + + /** + *
+   * The time when the operation was started.
+   * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + * @return Whether the operationStartTime field is set. + */ + boolean hasOperationStartTime(); + /** + *
+   * The time when the operation was started.
+   * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + * @return The operationStartTime. + */ + com.google.protobuf.Timestamp getOperationStartTime(); + /** + *
+   * The time when the operation was started.
+   * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + com.google.protobuf.TimestampOrBuilder getOperationStartTimeOrBuilder(); + + /** + *
+   * The current version before the upgrade.
+   * 
+ * + * string current_version = 4; + * @return The currentVersion. + */ + java.lang.String getCurrentVersion(); + /** + *
+   * The current version before the upgrade.
+   * 
+ * + * string current_version = 4; + * @return The bytes for currentVersion. + */ + com.google.protobuf.ByteString + getCurrentVersionBytes(); + + /** + *
+   * The target version for the upgrade.
+   * 
+ * + * string target_version = 5; + * @return The targetVersion. + */ + java.lang.String getTargetVersion(); + /** + *
+   * The target version for the upgrade.
+   * 
+ * + * string target_version = 5; + * @return The bytes for targetVersion. + */ + com.google.protobuf.ByteString + getTargetVersionBytes(); + + /** + *
+   * Optional relative path to the resource. For example in node pool upgrades,
+   * the relative path of the node pool.
+   * 
+ * + * string resource = 6; + * @return The resource. + */ + java.lang.String getResource(); + /** + *
+   * Optional relative path to the resource. For example in node pool upgrades,
+   * the relative path of the node pool.
+   * 
+ * + * string resource = 6; + * @return The bytes for resource. + */ + com.google.protobuf.ByteString + getResourceBytes(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeResourceType.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeResourceType.java new file mode 100644 index 000000000000..e428f57d06db --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpgradeResourceType.java @@ -0,0 +1,152 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * UpgradeResourceType is the resource type that is upgrading. It is used
+ * in upgrade notifications.
+ * 
+ * + * Protobuf enum {@code google.container.v1.UpgradeResourceType} + */ +public enum UpgradeResourceType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+   * Default value. This shouldn't be used.
+   * 
+ * + * UPGRADE_RESOURCE_TYPE_UNSPECIFIED = 0; + */ + UPGRADE_RESOURCE_TYPE_UNSPECIFIED(0), + /** + *
+   * Master / control plane
+   * 
+ * + * MASTER = 1; + */ + MASTER(1), + /** + *
+   * Node pool
+   * 
+ * + * NODE_POOL = 2; + */ + NODE_POOL(2), + UNRECOGNIZED(-1), + ; + + /** + *
+   * Default value. This shouldn't be used.
+   * 
+ * + * UPGRADE_RESOURCE_TYPE_UNSPECIFIED = 0; + */ + public static final int UPGRADE_RESOURCE_TYPE_UNSPECIFIED_VALUE = 0; + /** + *
+   * Master / control plane
+   * 
+ * + * MASTER = 1; + */ + public static final int MASTER_VALUE = 1; + /** + *
+   * Node pool
+   * 
+ * + * NODE_POOL = 2; + */ + public static final int NODE_POOL_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static UpgradeResourceType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static UpgradeResourceType forNumber(int value) { + switch (value) { + case 0: return UPGRADE_RESOURCE_TYPE_UNSPECIFIED; + case 1: return MASTER; + case 2: return NODE_POOL; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + UpgradeResourceType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public UpgradeResourceType findValueByNumber(int number) { + return UpgradeResourceType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.getDescriptor().getEnumTypes().get(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.v1.UpgradeResourceType) +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetwork.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetwork.java new file mode 100644 index 000000000000..47439bf83803 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetwork.java @@ -0,0 +1,1553 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * UsableSubnetwork resource returns the subnetwork name, its associated network
+ * and the primary CIDR range.
+ * 
+ * + * Protobuf type {@code google.container.v1.UsableSubnetwork} + */ +public final class UsableSubnetwork extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UsableSubnetwork_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UsableSubnetwork_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.UsableSubnetwork.class, com.google.container.v1.UsableSubnetwork.Builder.class); + } + + public static final int SUBNETWORK_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + private java.util.List secondaryIpRanges_; + /** + *
+   * Secondary IP ranges.
+   * 
+ * + * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + @java.lang.Override + public java.util.List getSecondaryIpRangesList() { + return secondaryIpRanges_; + } + /** + *
+   * Secondary IP ranges.
+   * 
+ * + * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + @java.lang.Override + public java.util.List + getSecondaryIpRangesOrBuilderList() { + return secondaryIpRanges_; + } + /** + *
+   * Secondary IP ranges.
+   * 
+ * + * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + @java.lang.Override + public int getSecondaryIpRangesCount() { + return secondaryIpRanges_.size(); + } + /** + *
+   * Secondary IP ranges.
+   * 
+ * + * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + @java.lang.Override + public com.google.container.v1.UsableSubnetworkSecondaryRange getSecondaryIpRanges(int index) { + return secondaryIpRanges_.get(index); + } + /** + *
+   * Secondary IP ranges.
+   * 
+ * + * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + @java.lang.Override + public com.google.container.v1.UsableSubnetworkSecondaryRangeOrBuilder getSecondaryIpRangesOrBuilder( + int index) { + return secondaryIpRanges_.get(index); + } + + public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subnetwork_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipCidrRange_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ipCidrRange_); + } + for (int i = 0; i < secondaryIpRanges_.size(); i++) { + output.writeMessage(4, secondaryIpRanges_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusMessage_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subnetwork_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipCidrRange_)) { + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.UsableSubnetwork)) { + return super.equals(obj); + } + com.google.container.v1.UsableSubnetwork other = (com.google.container.v1.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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.UsableSubnetwork parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.UsableSubnetwork parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.UsableSubnetwork parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.UsableSubnetwork parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.UsableSubnetwork parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.UsableSubnetwork parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.UsableSubnetwork parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.UsableSubnetwork} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.UsableSubnetwork) + com.google.container.v1.UsableSubnetworkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UsableSubnetwork_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UsableSubnetwork_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.UsableSubnetwork.class, com.google.container.v1.UsableSubnetwork.Builder.class); + } + + // Construct using com.google.container.v1.UsableSubnetwork.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + subnetwork_ = ""; + network_ = ""; + ipCidrRange_ = ""; + if (secondaryIpRangesBuilder_ == null) { + secondaryIpRanges_ = java.util.Collections.emptyList(); + } else { + secondaryIpRanges_ = null; + secondaryIpRangesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + statusMessage_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UsableSubnetwork_descriptor; + } + + @java.lang.Override + public com.google.container.v1.UsableSubnetwork getDefaultInstanceForType() { + return com.google.container.v1.UsableSubnetwork.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.UsableSubnetwork build() { + com.google.container.v1.UsableSubnetwork result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.UsableSubnetwork buildPartial() { + com.google.container.v1.UsableSubnetwork result = new com.google.container.v1.UsableSubnetwork(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1.UsableSubnetwork result) { + if (secondaryIpRangesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + secondaryIpRanges_ = java.util.Collections.unmodifiableList(secondaryIpRanges_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.secondaryIpRanges_ = secondaryIpRanges_; + } else { + result.secondaryIpRanges_ = secondaryIpRangesBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1.UsableSubnetwork result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.subnetwork_ = subnetwork_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.network_ = network_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.ipCidrRange_ = ipCidrRange_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.statusMessage_ = statusMessage_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.UsableSubnetwork) { + return mergeFrom((com.google.container.v1.UsableSubnetwork)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.UsableSubnetwork other) { + if (other == com.google.container.v1.UsableSubnetwork.getDefaultInstance()) return this; + if (!other.getSubnetwork().isEmpty()) { + subnetwork_ = other.subnetwork_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getIpCidrRange().isEmpty()) { + ipCidrRange_ = other.ipCidrRange_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (secondaryIpRangesBuilder_ == null) { + if (!other.secondaryIpRanges_.isEmpty()) { + if (secondaryIpRanges_.isEmpty()) { + secondaryIpRanges_ = other.secondaryIpRanges_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.addAll(other.secondaryIpRanges_); + } + onChanged(); + } + } else { + if (!other.secondaryIpRanges_.isEmpty()) { + if (secondaryIpRangesBuilder_.isEmpty()) { + secondaryIpRangesBuilder_.dispose(); + secondaryIpRangesBuilder_ = null; + secondaryIpRanges_ = other.secondaryIpRanges_; + bitField0_ = (bitField0_ & ~0x00000008); + secondaryIpRangesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSecondaryIpRangesFieldBuilder() : null; + } else { + secondaryIpRangesBuilder_.addAllMessages(other.secondaryIpRanges_); + } + } + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + subnetwork_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + network_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + ipCidrRange_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + com.google.container.v1.UsableSubnetworkSecondaryRange m = + input.readMessage( + com.google.container.v1.UsableSubnetworkSecondaryRange.parser(), + extensionRegistry); + if (secondaryIpRangesBuilder_ == null) { + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.add(m); + } else { + secondaryIpRangesBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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; + bitField0_ |= 0x00000001; + 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(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + 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; + bitField0_ |= 0x00000002; + 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(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + 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; + bitField0_ |= 0x00000004; + 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(); + bitField0_ = (bitField0_ & ~0x00000004); + 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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.util.List secondaryIpRanges_ = + java.util.Collections.emptyList(); + private void ensureSecondaryIpRangesIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + secondaryIpRanges_ = new java.util.ArrayList(secondaryIpRanges_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.UsableSubnetworkSecondaryRange, com.google.container.v1.UsableSubnetworkSecondaryRange.Builder, com.google.container.v1.UsableSubnetworkSecondaryRangeOrBuilder> secondaryIpRangesBuilder_; + + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1.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.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public int getSecondaryIpRangesCount() { + if (secondaryIpRangesBuilder_ == null) { + return secondaryIpRanges_.size(); + } else { + return secondaryIpRangesBuilder_.getCount(); + } + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public com.google.container.v1.UsableSubnetworkSecondaryRange getSecondaryIpRanges(int index) { + if (secondaryIpRangesBuilder_ == null) { + return secondaryIpRanges_.get(index); + } else { + return secondaryIpRangesBuilder_.getMessage(index); + } + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public Builder setSecondaryIpRanges( + int index, com.google.container.v1.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.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public Builder setSecondaryIpRanges( + int index, com.google.container.v1.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.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public Builder addSecondaryIpRanges(com.google.container.v1.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.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public Builder addSecondaryIpRanges( + int index, com.google.container.v1.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.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public Builder addSecondaryIpRanges( + com.google.container.v1.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.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public Builder addSecondaryIpRanges( + int index, com.google.container.v1.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.v1.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.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public Builder clearSecondaryIpRanges() { + if (secondaryIpRangesBuilder_ == null) { + secondaryIpRanges_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + secondaryIpRangesBuilder_.clear(); + } + return this; + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1.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.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public com.google.container.v1.UsableSubnetworkSecondaryRange.Builder getSecondaryIpRangesBuilder( + int index) { + return getSecondaryIpRangesFieldBuilder().getBuilder(index); + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public com.google.container.v1.UsableSubnetworkSecondaryRangeOrBuilder getSecondaryIpRangesOrBuilder( + int index) { + if (secondaryIpRangesBuilder_ == null) { + return secondaryIpRanges_.get(index); } else { + return secondaryIpRangesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public java.util.List + getSecondaryIpRangesOrBuilderList() { + if (secondaryIpRangesBuilder_ != null) { + return secondaryIpRangesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(secondaryIpRanges_); + } + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public com.google.container.v1.UsableSubnetworkSecondaryRange.Builder addSecondaryIpRangesBuilder() { + return getSecondaryIpRangesFieldBuilder().addBuilder( + com.google.container.v1.UsableSubnetworkSecondaryRange.getDefaultInstance()); + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public com.google.container.v1.UsableSubnetworkSecondaryRange.Builder addSecondaryIpRangesBuilder( + int index) { + return getSecondaryIpRangesFieldBuilder().addBuilder( + index, com.google.container.v1.UsableSubnetworkSecondaryRange.getDefaultInstance()); + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public java.util.List + getSecondaryIpRangesBuilderList() { + return getSecondaryIpRangesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.UsableSubnetworkSecondaryRange, com.google.container.v1.UsableSubnetworkSecondaryRange.Builder, com.google.container.v1.UsableSubnetworkSecondaryRangeOrBuilder> + getSecondaryIpRangesFieldBuilder() { + if (secondaryIpRangesBuilder_ == null) { + secondaryIpRangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.UsableSubnetworkSecondaryRange, com.google.container.v1.UsableSubnetworkSecondaryRange.Builder, com.google.container.v1.UsableSubnetworkSecondaryRangeOrBuilder>( + secondaryIpRanges_, + ((bitField0_ & 0x00000008) != 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; + bitField0_ |= 0x00000010; + 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(); + bitField0_ = (bitField0_ & ~0x00000010); + 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; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.UsableSubnetwork) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.UsableSubnetwork) + private static final com.google.container.v1.UsableSubnetwork DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.UsableSubnetwork(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.UsableSubnetwork getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkOrBuilder.java new file mode 100644 index 000000000000..79dc85cfb194 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkOrBuilder.java @@ -0,0 +1,144 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface UsableSubnetworkOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.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.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + java.util.List + getSecondaryIpRangesList(); + /** + *
+   * Secondary IP ranges.
+   * 
+ * + * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + com.google.container.v1.UsableSubnetworkSecondaryRange getSecondaryIpRanges(int index); + /** + *
+   * Secondary IP ranges.
+   * 
+ * + * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + int getSecondaryIpRangesCount(); + /** + *
+   * Secondary IP ranges.
+   * 
+ * + * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + java.util.List + getSecondaryIpRangesOrBuilderList(); + /** + *
+   * Secondary IP ranges.
+   * 
+ * + * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + com.google.container.v1.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/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkSecondaryRange.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkSecondaryRange.java new file mode 100644 index 000000000000..6146e541a52f --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkSecondaryRange.java @@ -0,0 +1,1060 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Secondary IP range of a usable subnetwork.
+ * 
+ * + * Protobuf type {@code google.container.v1.UsableSubnetworkSecondaryRange} + */ +public final class UsableSubnetworkSecondaryRange extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UsableSubnetworkSecondaryRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UsableSubnetworkSecondaryRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.UsableSubnetworkSecondaryRange.class, com.google.container.v1.UsableSubnetworkSecondaryRange.Builder.class); + } + + /** + *
+   * Status shows the current usage of a secondary IP range.
+   * 
+ * + * Protobuf enum {@code google.container.v1.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 cluster(s) for
+     * services. User-managed services range can be shared between clusters
+     * within the same subnetwork.
+     * 
+ * + * 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 cluster(s) for
+     * services. User-managed services range can be shared between clusters
+     * within the same subnetwork.
+     * 
+ * + * 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< + Status> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Status findValueByNumber(int number) { + return Status.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.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.v1.UsableSubnetworkSecondaryRange.Status) + } + + public static final int RANGE_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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_ = 0; + /** + *
+   * This field is to determine the status of the secondary range programmably.
+   * 
+ * + * .google.container.v1.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.v1.UsableSubnetworkSecondaryRange.Status status = 3; + * @return The status. + */ + @java.lang.Override public com.google.container.v1.UsableSubnetworkSecondaryRange.Status getStatus() { + com.google.container.v1.UsableSubnetworkSecondaryRange.Status result = com.google.container.v1.UsableSubnetworkSecondaryRange.Status.forNumber(status_); + return result == null ? com.google.container.v1.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rangeName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, rangeName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipCidrRange_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ipCidrRange_); + } + if (status_ != com.google.container.v1.UsableSubnetworkSecondaryRange.Status.UNKNOWN.getNumber()) { + output.writeEnum(3, status_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rangeName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, rangeName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipCidrRange_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ipCidrRange_); + } + if (status_ != com.google.container.v1.UsableSubnetworkSecondaryRange.Status.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, status_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.UsableSubnetworkSecondaryRange)) { + return super.equals(obj); + } + com.google.container.v1.UsableSubnetworkSecondaryRange other = (com.google.container.v1.UsableSubnetworkSecondaryRange) obj; + + if (!getRangeName() + .equals(other.getRangeName())) return false; + if (!getIpCidrRange() + .equals(other.getIpCidrRange())) return false; + if (status_ != other.status_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.UsableSubnetworkSecondaryRange parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.UsableSubnetworkSecondaryRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.UsableSubnetworkSecondaryRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.UsableSubnetworkSecondaryRange parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.UsableSubnetworkSecondaryRange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.UsableSubnetworkSecondaryRange parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.UsableSubnetworkSecondaryRange parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.UsableSubnetworkSecondaryRange} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.UsableSubnetworkSecondaryRange) + com.google.container.v1.UsableSubnetworkSecondaryRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UsableSubnetworkSecondaryRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UsableSubnetworkSecondaryRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.UsableSubnetworkSecondaryRange.class, com.google.container.v1.UsableSubnetworkSecondaryRange.Builder.class); + } + + // Construct using com.google.container.v1.UsableSubnetworkSecondaryRange.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + rangeName_ = ""; + ipCidrRange_ = ""; + status_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_UsableSubnetworkSecondaryRange_descriptor; + } + + @java.lang.Override + public com.google.container.v1.UsableSubnetworkSecondaryRange getDefaultInstanceForType() { + return com.google.container.v1.UsableSubnetworkSecondaryRange.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.UsableSubnetworkSecondaryRange build() { + com.google.container.v1.UsableSubnetworkSecondaryRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.UsableSubnetworkSecondaryRange buildPartial() { + com.google.container.v1.UsableSubnetworkSecondaryRange result = new com.google.container.v1.UsableSubnetworkSecondaryRange(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.UsableSubnetworkSecondaryRange result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.rangeName_ = rangeName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ipCidrRange_ = ipCidrRange_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.status_ = status_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.UsableSubnetworkSecondaryRange) { + return mergeFrom((com.google.container.v1.UsableSubnetworkSecondaryRange)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.UsableSubnetworkSecondaryRange other) { + if (other == com.google.container.v1.UsableSubnetworkSecondaryRange.getDefaultInstance()) return this; + if (!other.getRangeName().isEmpty()) { + rangeName_ = other.rangeName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getIpCidrRange().isEmpty()) { + ipCidrRange_ = other.ipCidrRange_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + rangeName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + ipCidrRange_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + status_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + 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; + bitField0_ |= 0x00000002; + 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(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int status_ = 0; + /** + *
+     * This field is to determine the status of the secondary range programmably.
+     * 
+ * + * .google.container.v1.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.v1.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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * This field is to determine the status of the secondary range programmably.
+     * 
+ * + * .google.container.v1.UsableSubnetworkSecondaryRange.Status status = 3; + * @return The status. + */ + @java.lang.Override + public com.google.container.v1.UsableSubnetworkSecondaryRange.Status getStatus() { + com.google.container.v1.UsableSubnetworkSecondaryRange.Status result = com.google.container.v1.UsableSubnetworkSecondaryRange.Status.forNumber(status_); + return result == null ? com.google.container.v1.UsableSubnetworkSecondaryRange.Status.UNRECOGNIZED : result; + } + /** + *
+     * This field is to determine the status of the secondary range programmably.
+     * 
+ * + * .google.container.v1.UsableSubnetworkSecondaryRange.Status status = 3; + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(com.google.container.v1.UsableSubnetworkSecondaryRange.Status value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * This field is to determine the status of the secondary range programmably.
+     * 
+ * + * .google.container.v1.UsableSubnetworkSecondaryRange.Status status = 3; + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000004); + 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.v1.UsableSubnetworkSecondaryRange) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.UsableSubnetworkSecondaryRange) + private static final com.google.container.v1.UsableSubnetworkSecondaryRange DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.UsableSubnetworkSecondaryRange(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.UsableSubnetworkSecondaryRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkSecondaryRangeOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkSecondaryRangeOrBuilder.java new file mode 100644 index 000000000000..70366bb705ea --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkSecondaryRangeOrBuilder.java @@ -0,0 +1,71 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface UsableSubnetworkSecondaryRangeOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.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.v1.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.v1.UsableSubnetworkSecondaryRange.Status status = 3; + * @return The status. + */ + com.google.container.v1.UsableSubnetworkSecondaryRange.Status getStatus(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VerticalPodAutoscaling.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VerticalPodAutoscaling.java new file mode 100644 index 000000000000..b5aed6ec0209 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VerticalPodAutoscaling.java @@ -0,0 +1,501 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * 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.v1.VerticalPodAutoscaling} + */ +public final class VerticalPodAutoscaling extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.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(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_VerticalPodAutoscaling_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_VerticalPodAutoscaling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.VerticalPodAutoscaling.class, com.google.container.v1.VerticalPodAutoscaling.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.VerticalPodAutoscaling)) { + return super.equals(obj); + } + com.google.container.v1.VerticalPodAutoscaling other = (com.google.container.v1.VerticalPodAutoscaling) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.VerticalPodAutoscaling parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.VerticalPodAutoscaling parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.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.v1.VerticalPodAutoscaling parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.VerticalPodAutoscaling parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.VerticalPodAutoscaling parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.VerticalPodAutoscaling parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.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.v1.VerticalPodAutoscaling parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.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.v1.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.v1.VerticalPodAutoscaling} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.VerticalPodAutoscaling) + com.google.container.v1.VerticalPodAutoscalingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_VerticalPodAutoscaling_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_VerticalPodAutoscaling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.VerticalPodAutoscaling.class, com.google.container.v1.VerticalPodAutoscaling.Builder.class); + } + + // Construct using com.google.container.v1.VerticalPodAutoscaling.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_VerticalPodAutoscaling_descriptor; + } + + @java.lang.Override + public com.google.container.v1.VerticalPodAutoscaling getDefaultInstanceForType() { + return com.google.container.v1.VerticalPodAutoscaling.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.VerticalPodAutoscaling build() { + com.google.container.v1.VerticalPodAutoscaling result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.VerticalPodAutoscaling buildPartial() { + com.google.container.v1.VerticalPodAutoscaling result = new com.google.container.v1.VerticalPodAutoscaling(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.VerticalPodAutoscaling result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.VerticalPodAutoscaling) { + return mergeFrom((com.google.container.v1.VerticalPodAutoscaling)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.VerticalPodAutoscaling other) { + if (other == com.google.container.v1.VerticalPodAutoscaling.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Enables vertical pod autoscaling.
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.VerticalPodAutoscaling) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.VerticalPodAutoscaling) + private static final com.google.container.v1.VerticalPodAutoscaling DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.VerticalPodAutoscaling(); + } + + public static com.google.container.v1.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.VerticalPodAutoscaling getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VerticalPodAutoscalingOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VerticalPodAutoscalingOrBuilder.java new file mode 100644 index 000000000000..fa5fb7af68c5 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VerticalPodAutoscalingOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface VerticalPodAutoscalingOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.VerticalPodAutoscaling) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Enables vertical pod autoscaling.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VirtualNIC.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VirtualNIC.java new file mode 100644 index 000000000000..a18f8f510ee0 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VirtualNIC.java @@ -0,0 +1,497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Configuration of gVNIC feature.
+ * 
+ * + * Protobuf type {@code google.container.v1.VirtualNIC} + */ +public final class VirtualNIC extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.VirtualNIC) + VirtualNICOrBuilder { +private static final long serialVersionUID = 0L; + // Use VirtualNIC.newBuilder() to construct. + private VirtualNIC(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private VirtualNIC() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new VirtualNIC(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_VirtualNIC_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_VirtualNIC_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.VirtualNIC.class, com.google.container.v1.VirtualNIC.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * Whether gVNIC features are enabled in the node pool.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.VirtualNIC)) { + return super.equals(obj); + } + com.google.container.v1.VirtualNIC other = (com.google.container.v1.VirtualNIC) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.VirtualNIC parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.VirtualNIC parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.VirtualNIC parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.VirtualNIC parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.VirtualNIC parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.VirtualNIC parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.VirtualNIC parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.VirtualNIC parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.VirtualNIC parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.VirtualNIC parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.VirtualNIC parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.VirtualNIC parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.VirtualNIC prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration of gVNIC feature.
+   * 
+ * + * Protobuf type {@code google.container.v1.VirtualNIC} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.VirtualNIC) + com.google.container.v1.VirtualNICOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_VirtualNIC_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_VirtualNIC_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.VirtualNIC.class, com.google.container.v1.VirtualNIC.Builder.class); + } + + // Construct using com.google.container.v1.VirtualNIC.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_VirtualNIC_descriptor; + } + + @java.lang.Override + public com.google.container.v1.VirtualNIC getDefaultInstanceForType() { + return com.google.container.v1.VirtualNIC.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.VirtualNIC build() { + com.google.container.v1.VirtualNIC result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.VirtualNIC buildPartial() { + com.google.container.v1.VirtualNIC result = new com.google.container.v1.VirtualNIC(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.VirtualNIC result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.VirtualNIC) { + return mergeFrom((com.google.container.v1.VirtualNIC)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.VirtualNIC other) { + if (other == com.google.container.v1.VirtualNIC.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enabled_ ; + /** + *
+     * Whether gVNIC features are enabled in the node pool.
+     * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Whether gVNIC features are enabled in the node pool.
+     * 
+ * + * bool enabled = 1; + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether gVNIC features are enabled in the node pool.
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.VirtualNIC) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.VirtualNIC) + private static final com.google.container.v1.VirtualNIC DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.VirtualNIC(); + } + + public static com.google.container.v1.VirtualNIC getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VirtualNIC parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.VirtualNIC getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VirtualNICOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VirtualNICOrBuilder.java new file mode 100644 index 000000000000..a825924e8a2b --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VirtualNICOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface VirtualNICOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.VirtualNIC) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether gVNIC features are enabled in the node pool.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WindowsNodeConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WindowsNodeConfig.java new file mode 100644 index 000000000000..45a641a56818 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WindowsNodeConfig.java @@ -0,0 +1,685 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Parameters that can be configured on Windows nodes.
+ * Windows Node Config that define the parameters that will be used to
+ * configure the Windows node pool settings
+ * 
+ * + * Protobuf type {@code google.container.v1.WindowsNodeConfig} + */ +public final class WindowsNodeConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.WindowsNodeConfig) + WindowsNodeConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use WindowsNodeConfig.newBuilder() to construct. + private WindowsNodeConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WindowsNodeConfig() { + osVersion_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new WindowsNodeConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_WindowsNodeConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_WindowsNodeConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.WindowsNodeConfig.class, com.google.container.v1.WindowsNodeConfig.Builder.class); + } + + /** + *
+   * Possible OS version that can be used.
+   * 
+ * + * Protobuf enum {@code google.container.v1.WindowsNodeConfig.OSVersion} + */ + public enum OSVersion + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * When OSVersion is not specified
+     * 
+ * + * OS_VERSION_UNSPECIFIED = 0; + */ + OS_VERSION_UNSPECIFIED(0), + /** + *
+     * LTSC2019 specifies to use LTSC2019 as the Windows Servercore Base Image
+     * 
+ * + * OS_VERSION_LTSC2019 = 1; + */ + OS_VERSION_LTSC2019(1), + /** + *
+     * LTSC2022 specifies to use LTSC2022 as the Windows Servercore Base Image
+     * 
+ * + * OS_VERSION_LTSC2022 = 2; + */ + OS_VERSION_LTSC2022(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * When OSVersion is not specified
+     * 
+ * + * OS_VERSION_UNSPECIFIED = 0; + */ + public static final int OS_VERSION_UNSPECIFIED_VALUE = 0; + /** + *
+     * LTSC2019 specifies to use LTSC2019 as the Windows Servercore Base Image
+     * 
+ * + * OS_VERSION_LTSC2019 = 1; + */ + public static final int OS_VERSION_LTSC2019_VALUE = 1; + /** + *
+     * LTSC2022 specifies to use LTSC2022 as the Windows Servercore Base Image
+     * 
+ * + * OS_VERSION_LTSC2022 = 2; + */ + public static final int OS_VERSION_LTSC2022_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 OSVersion 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 OSVersion forNumber(int value) { + switch (value) { + case 0: return OS_VERSION_UNSPECIFIED; + case 1: return OS_VERSION_LTSC2019; + case 2: return OS_VERSION_LTSC2022; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + OSVersion> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public OSVersion findValueByNumber(int number) { + return OSVersion.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.WindowsNodeConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final OSVersion[] VALUES = values(); + + public static OSVersion 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 OSVersion(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.WindowsNodeConfig.OSVersion) + } + + public static final int OS_VERSION_FIELD_NUMBER = 1; + private int osVersion_ = 0; + /** + *
+   * OSVersion specifies the Windows node config to be used on the node
+   * 
+ * + * .google.container.v1.WindowsNodeConfig.OSVersion os_version = 1; + * @return The enum numeric value on the wire for osVersion. + */ + @java.lang.Override public int getOsVersionValue() { + return osVersion_; + } + /** + *
+   * OSVersion specifies the Windows node config to be used on the node
+   * 
+ * + * .google.container.v1.WindowsNodeConfig.OSVersion os_version = 1; + * @return The osVersion. + */ + @java.lang.Override public com.google.container.v1.WindowsNodeConfig.OSVersion getOsVersion() { + com.google.container.v1.WindowsNodeConfig.OSVersion result = com.google.container.v1.WindowsNodeConfig.OSVersion.forNumber(osVersion_); + return result == null ? com.google.container.v1.WindowsNodeConfig.OSVersion.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 (osVersion_ != com.google.container.v1.WindowsNodeConfig.OSVersion.OS_VERSION_UNSPECIFIED.getNumber()) { + output.writeEnum(1, osVersion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (osVersion_ != com.google.container.v1.WindowsNodeConfig.OSVersion.OS_VERSION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, osVersion_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.WindowsNodeConfig)) { + return super.equals(obj); + } + com.google.container.v1.WindowsNodeConfig other = (com.google.container.v1.WindowsNodeConfig) obj; + + if (osVersion_ != other.osVersion_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + OS_VERSION_FIELD_NUMBER; + hash = (53 * hash) + osVersion_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.WindowsNodeConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.WindowsNodeConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.WindowsNodeConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.WindowsNodeConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.WindowsNodeConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.WindowsNodeConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.WindowsNodeConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.WindowsNodeConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.WindowsNodeConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.WindowsNodeConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.WindowsNodeConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.WindowsNodeConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.WindowsNodeConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new 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 Windows nodes.
+   * Windows Node Config that define the parameters that will be used to
+   * configure the Windows node pool settings
+   * 
+ * + * Protobuf type {@code google.container.v1.WindowsNodeConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.WindowsNodeConfig) + com.google.container.v1.WindowsNodeConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_WindowsNodeConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_WindowsNodeConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.WindowsNodeConfig.class, com.google.container.v1.WindowsNodeConfig.Builder.class); + } + + // Construct using com.google.container.v1.WindowsNodeConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + osVersion_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_WindowsNodeConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.WindowsNodeConfig getDefaultInstanceForType() { + return com.google.container.v1.WindowsNodeConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.WindowsNodeConfig build() { + com.google.container.v1.WindowsNodeConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.WindowsNodeConfig buildPartial() { + com.google.container.v1.WindowsNodeConfig result = new com.google.container.v1.WindowsNodeConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.WindowsNodeConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.osVersion_ = osVersion_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.WindowsNodeConfig) { + return mergeFrom((com.google.container.v1.WindowsNodeConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.WindowsNodeConfig other) { + if (other == com.google.container.v1.WindowsNodeConfig.getDefaultInstance()) return this; + if (other.osVersion_ != 0) { + setOsVersionValue(other.getOsVersionValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + osVersion_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int osVersion_ = 0; + /** + *
+     * OSVersion specifies the Windows node config to be used on the node
+     * 
+ * + * .google.container.v1.WindowsNodeConfig.OSVersion os_version = 1; + * @return The enum numeric value on the wire for osVersion. + */ + @java.lang.Override public int getOsVersionValue() { + return osVersion_; + } + /** + *
+     * OSVersion specifies the Windows node config to be used on the node
+     * 
+ * + * .google.container.v1.WindowsNodeConfig.OSVersion os_version = 1; + * @param value The enum numeric value on the wire for osVersion to set. + * @return This builder for chaining. + */ + public Builder setOsVersionValue(int value) { + osVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * OSVersion specifies the Windows node config to be used on the node
+     * 
+ * + * .google.container.v1.WindowsNodeConfig.OSVersion os_version = 1; + * @return The osVersion. + */ + @java.lang.Override + public com.google.container.v1.WindowsNodeConfig.OSVersion getOsVersion() { + com.google.container.v1.WindowsNodeConfig.OSVersion result = com.google.container.v1.WindowsNodeConfig.OSVersion.forNumber(osVersion_); + return result == null ? com.google.container.v1.WindowsNodeConfig.OSVersion.UNRECOGNIZED : result; + } + /** + *
+     * OSVersion specifies the Windows node config to be used on the node
+     * 
+ * + * .google.container.v1.WindowsNodeConfig.OSVersion os_version = 1; + * @param value The osVersion to set. + * @return This builder for chaining. + */ + public Builder setOsVersion(com.google.container.v1.WindowsNodeConfig.OSVersion value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + osVersion_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * OSVersion specifies the Windows node config to be used on the node
+     * 
+ * + * .google.container.v1.WindowsNodeConfig.OSVersion os_version = 1; + * @return This builder for chaining. + */ + public Builder clearOsVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + osVersion_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.WindowsNodeConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.WindowsNodeConfig) + private static final com.google.container.v1.WindowsNodeConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.WindowsNodeConfig(); + } + + public static com.google.container.v1.WindowsNodeConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WindowsNodeConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.WindowsNodeConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WindowsNodeConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WindowsNodeConfigOrBuilder.java new file mode 100644 index 000000000000..91a9369332fd --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WindowsNodeConfigOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface WindowsNodeConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.WindowsNodeConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * OSVersion specifies the Windows node config to be used on the node
+   * 
+ * + * .google.container.v1.WindowsNodeConfig.OSVersion os_version = 1; + * @return The enum numeric value on the wire for osVersion. + */ + int getOsVersionValue(); + /** + *
+   * OSVersion specifies the Windows node config to be used on the node
+   * 
+ * + * .google.container.v1.WindowsNodeConfig.OSVersion os_version = 1; + * @return The osVersion. + */ + com.google.container.v1.WindowsNodeConfig.OSVersion getOsVersion(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadIdentityConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadIdentityConfig.java new file mode 100644 index 000000000000..2a74d7f06042 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadIdentityConfig.java @@ -0,0 +1,580 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+ * policies.
+ * 
+ * + * Protobuf type {@code google.container.v1.WorkloadIdentityConfig} + */ +public final class WorkloadIdentityConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.WorkloadIdentityConfig) + WorkloadIdentityConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use WorkloadIdentityConfig.newBuilder() to construct. + private WorkloadIdentityConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkloadIdentityConfig() { + workloadPool_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new WorkloadIdentityConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_WorkloadIdentityConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_WorkloadIdentityConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.WorkloadIdentityConfig.class, com.google.container.v1.WorkloadIdentityConfig.Builder.class); + } + + public static final int WORKLOAD_POOL_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object workloadPool_ = ""; + /** + *
+   * The workload pool to attach all Kubernetes service accounts to.
+   * 
+ * + * string workload_pool = 2; + * @return The workloadPool. + */ + @java.lang.Override + public java.lang.String getWorkloadPool() { + java.lang.Object ref = workloadPool_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workloadPool_ = s; + return s; + } + } + /** + *
+   * The workload pool to attach all Kubernetes service accounts to.
+   * 
+ * + * string workload_pool = 2; + * @return The bytes for workloadPool. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkloadPoolBytes() { + java.lang.Object ref = workloadPool_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workloadPool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workloadPool_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, workloadPool_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workloadPool_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, workloadPool_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.WorkloadIdentityConfig)) { + return super.equals(obj); + } + com.google.container.v1.WorkloadIdentityConfig other = (com.google.container.v1.WorkloadIdentityConfig) obj; + + if (!getWorkloadPool() + .equals(other.getWorkloadPool())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WORKLOAD_POOL_FIELD_NUMBER; + hash = (53 * hash) + getWorkloadPool().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.WorkloadIdentityConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.WorkloadIdentityConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.WorkloadIdentityConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.WorkloadIdentityConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.WorkloadIdentityConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.WorkloadIdentityConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.WorkloadIdentityConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.WorkloadIdentityConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.WorkloadIdentityConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.WorkloadIdentityConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.WorkloadIdentityConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.WorkloadIdentityConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.WorkloadIdentityConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
+   * policies.
+   * 
+ * + * Protobuf type {@code google.container.v1.WorkloadIdentityConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.WorkloadIdentityConfig) + com.google.container.v1.WorkloadIdentityConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_WorkloadIdentityConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_WorkloadIdentityConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.WorkloadIdentityConfig.class, com.google.container.v1.WorkloadIdentityConfig.Builder.class); + } + + // Construct using com.google.container.v1.WorkloadIdentityConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workloadPool_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_WorkloadIdentityConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.WorkloadIdentityConfig getDefaultInstanceForType() { + return com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.WorkloadIdentityConfig build() { + com.google.container.v1.WorkloadIdentityConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.WorkloadIdentityConfig buildPartial() { + com.google.container.v1.WorkloadIdentityConfig result = new com.google.container.v1.WorkloadIdentityConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.WorkloadIdentityConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workloadPool_ = workloadPool_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.WorkloadIdentityConfig) { + return mergeFrom((com.google.container.v1.WorkloadIdentityConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.WorkloadIdentityConfig other) { + if (other == com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance()) return this; + if (!other.getWorkloadPool().isEmpty()) { + workloadPool_ = other.workloadPool_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: { + workloadPool_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.WorkloadIdentityConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.WorkloadIdentityConfig) + private static final com.google.container.v1.WorkloadIdentityConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.WorkloadIdentityConfig(); + } + + public static com.google.container.v1.WorkloadIdentityConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkloadIdentityConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.WorkloadIdentityConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadIdentityConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadIdentityConfigOrBuilder.java new file mode 100644 index 000000000000..707fda74e6f6 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadIdentityConfigOrBuilder.java @@ -0,0 +1,30 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface WorkloadIdentityConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.WorkloadIdentityConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The workload pool to attach all Kubernetes service accounts to.
+   * 
+ * + * string workload_pool = 2; + * @return The workloadPool. + */ + java.lang.String getWorkloadPool(); + /** + *
+   * The workload pool to attach all Kubernetes service accounts to.
+   * 
+ * + * string workload_pool = 2; + * @return The bytes for workloadPool. + */ + com.google.protobuf.ByteString + getWorkloadPoolBytes(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadMetadataConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadMetadataConfig.java new file mode 100644 index 000000000000..686758e0c8e7 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadMetadataConfig.java @@ -0,0 +1,699 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * WorkloadMetadataConfig defines the metadata configuration to expose to
+ * workloads on the node pool.
+ * 
+ * + * Protobuf type {@code google.container.v1.WorkloadMetadataConfig} + */ +public final class WorkloadMetadataConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.WorkloadMetadataConfig) + WorkloadMetadataConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use WorkloadMetadataConfig.newBuilder() to construct. + private WorkloadMetadataConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkloadMetadataConfig() { + mode_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new WorkloadMetadataConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_WorkloadMetadataConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_WorkloadMetadataConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.WorkloadMetadataConfig.class, com.google.container.v1.WorkloadMetadataConfig.Builder.class); + } + + /** + *
+   * Mode is the configuration for how to expose metadata to workloads running
+   * on the node.
+   * 
+ * + * Protobuf enum {@code google.container.v1.WorkloadMetadataConfig.Mode} + */ + public enum Mode + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not set.
+     * 
+ * + * MODE_UNSPECIFIED = 0; + */ + MODE_UNSPECIFIED(0), + /** + *
+     * Expose all Compute Engine metadata to pods.
+     * 
+ * + * GCE_METADATA = 1; + */ + GCE_METADATA(1), + /** + *
+     * Run the GKE Metadata Server on this node. The GKE Metadata Server exposes
+     * a metadata API to workloads that is compatible with the V1 Compute
+     * Metadata APIs exposed by the Compute Engine and App Engine Metadata
+     * Servers. This feature can only be enabled if Workload Identity is enabled
+     * at the cluster level.
+     * 
+ * + * GKE_METADATA = 2; + */ + GKE_METADATA(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not set.
+     * 
+ * + * MODE_UNSPECIFIED = 0; + */ + public static final int MODE_UNSPECIFIED_VALUE = 0; + /** + *
+     * Expose all Compute Engine metadata to pods.
+     * 
+ * + * GCE_METADATA = 1; + */ + public static final int GCE_METADATA_VALUE = 1; + /** + *
+     * Run the GKE Metadata Server on this node. The GKE Metadata Server exposes
+     * a metadata API to workloads that is compatible with the V1 Compute
+     * Metadata APIs exposed by the Compute Engine and App Engine Metadata
+     * Servers. This feature can only be enabled if Workload Identity is enabled
+     * at the cluster level.
+     * 
+ * + * GKE_METADATA = 2; + */ + public static final int GKE_METADATA_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Mode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Mode forNumber(int value) { + switch (value) { + case 0: return MODE_UNSPECIFIED; + case 1: return GCE_METADATA; + case 2: return GKE_METADATA; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Mode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Mode findValueByNumber(int number) { + return Mode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1.WorkloadMetadataConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final Mode[] VALUES = values(); + + public static Mode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Mode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.WorkloadMetadataConfig.Mode) + } + + public static final int MODE_FIELD_NUMBER = 2; + private int mode_ = 0; + /** + *
+   * Mode is the configuration for how to expose metadata to workloads running
+   * on the node pool.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override public int getModeValue() { + return mode_; + } + /** + *
+   * Mode is the configuration for how to expose metadata to workloads running
+   * on the node pool.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; + * @return The mode. + */ + @java.lang.Override public com.google.container.v1.WorkloadMetadataConfig.Mode getMode() { + com.google.container.v1.WorkloadMetadataConfig.Mode result = com.google.container.v1.WorkloadMetadataConfig.Mode.forNumber(mode_); + return result == null ? com.google.container.v1.WorkloadMetadataConfig.Mode.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (mode_ != com.google.container.v1.WorkloadMetadataConfig.Mode.MODE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, mode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (mode_ != com.google.container.v1.WorkloadMetadataConfig.Mode.MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, mode_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.WorkloadMetadataConfig)) { + return super.equals(obj); + } + com.google.container.v1.WorkloadMetadataConfig other = (com.google.container.v1.WorkloadMetadataConfig) obj; + + if (mode_ != other.mode_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MODE_FIELD_NUMBER; + hash = (53 * hash) + mode_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.WorkloadMetadataConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.WorkloadMetadataConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.WorkloadMetadataConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.WorkloadMetadataConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.WorkloadMetadataConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.WorkloadMetadataConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.WorkloadMetadataConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.WorkloadMetadataConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.WorkloadMetadataConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.WorkloadMetadataConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.WorkloadMetadataConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.WorkloadMetadataConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.WorkloadMetadataConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * WorkloadMetadataConfig defines the metadata configuration to expose to
+   * workloads on the node pool.
+   * 
+ * + * Protobuf type {@code google.container.v1.WorkloadMetadataConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.WorkloadMetadataConfig) + com.google.container.v1.WorkloadMetadataConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_WorkloadMetadataConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_WorkloadMetadataConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.WorkloadMetadataConfig.class, com.google.container.v1.WorkloadMetadataConfig.Builder.class); + } + + // Construct using com.google.container.v1.WorkloadMetadataConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + mode_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_WorkloadMetadataConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.WorkloadMetadataConfig getDefaultInstanceForType() { + return com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.WorkloadMetadataConfig build() { + com.google.container.v1.WorkloadMetadataConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.WorkloadMetadataConfig buildPartial() { + com.google.container.v1.WorkloadMetadataConfig result = new com.google.container.v1.WorkloadMetadataConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.WorkloadMetadataConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mode_ = mode_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.WorkloadMetadataConfig) { + return mergeFrom((com.google.container.v1.WorkloadMetadataConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.WorkloadMetadataConfig other) { + if (other == com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance()) return this; + if (other.mode_ != 0) { + setModeValue(other.getModeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 16: { + mode_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int mode_ = 0; + /** + *
+     * Mode is the configuration for how to expose metadata to workloads running
+     * on the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override public int getModeValue() { + return mode_; + } + /** + *
+     * Mode is the configuration for how to expose metadata to workloads running
+     * on the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; + * @param value The enum numeric value on the wire for mode to set. + * @return This builder for chaining. + */ + public Builder setModeValue(int value) { + mode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Mode is the configuration for how to expose metadata to workloads running
+     * on the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; + * @return The mode. + */ + @java.lang.Override + public com.google.container.v1.WorkloadMetadataConfig.Mode getMode() { + com.google.container.v1.WorkloadMetadataConfig.Mode result = com.google.container.v1.WorkloadMetadataConfig.Mode.forNumber(mode_); + return result == null ? com.google.container.v1.WorkloadMetadataConfig.Mode.UNRECOGNIZED : result; + } + /** + *
+     * Mode is the configuration for how to expose metadata to workloads running
+     * on the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; + * @param value The mode to set. + * @return This builder for chaining. + */ + public Builder setMode(com.google.container.v1.WorkloadMetadataConfig.Mode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + mode_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Mode is the configuration for how to expose metadata to workloads running
+     * on the node pool.
+     * 
+ * + * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; + * @return This builder for chaining. + */ + public Builder clearMode() { + bitField0_ = (bitField0_ & ~0x00000001); + mode_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.WorkloadMetadataConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.WorkloadMetadataConfig) + private static final com.google.container.v1.WorkloadMetadataConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.WorkloadMetadataConfig(); + } + + public static com.google.container.v1.WorkloadMetadataConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkloadMetadataConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.WorkloadMetadataConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadMetadataConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadMetadataConfigOrBuilder.java new file mode 100644 index 000000000000..4d6e3d5fc8e7 --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadMetadataConfigOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface WorkloadMetadataConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.WorkloadMetadataConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Mode is the configuration for how to expose metadata to workloads running
+   * on the node pool.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; + * @return The enum numeric value on the wire for mode. + */ + int getModeValue(); + /** + *
+   * Mode is the configuration for how to expose metadata to workloads running
+   * on the node pool.
+   * 
+ * + * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; + * @return The mode. + */ + com.google.container.v1.WorkloadMetadataConfig.Mode getMode(); +} diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadPolicyConfig.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadPolicyConfig.java new file mode 100644 index 000000000000..55fdd8d313cd --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadPolicyConfig.java @@ -0,0 +1,532 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + *
+ * WorkloadPolicyConfig is the configuration of workload policy for autopilot
+ * clusters.
+ * 
+ * + * Protobuf type {@code google.container.v1.WorkloadPolicyConfig} + */ +public final class WorkloadPolicyConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1.WorkloadPolicyConfig) + WorkloadPolicyConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use WorkloadPolicyConfig.newBuilder() to construct. + private WorkloadPolicyConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkloadPolicyConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new WorkloadPolicyConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_WorkloadPolicyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_WorkloadPolicyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.WorkloadPolicyConfig.class, com.google.container.v1.WorkloadPolicyConfig.Builder.class); + } + + private int bitField0_; + public static final int ALLOW_NET_ADMIN_FIELD_NUMBER = 1; + private boolean allowNetAdmin_ = false; + /** + *
+   * If true, workloads can use NET_ADMIN capability.
+   * 
+ * + * optional bool allow_net_admin = 1; + * @return Whether the allowNetAdmin field is set. + */ + @java.lang.Override + public boolean hasAllowNetAdmin() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * If true, workloads can use NET_ADMIN capability.
+   * 
+ * + * optional bool allow_net_admin = 1; + * @return The allowNetAdmin. + */ + @java.lang.Override + public boolean getAllowNetAdmin() { + return allowNetAdmin_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(1, allowNetAdmin_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, allowNetAdmin_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.WorkloadPolicyConfig)) { + return super.equals(obj); + } + com.google.container.v1.WorkloadPolicyConfig other = (com.google.container.v1.WorkloadPolicyConfig) obj; + + if (hasAllowNetAdmin() != other.hasAllowNetAdmin()) return false; + if (hasAllowNetAdmin()) { + if (getAllowNetAdmin() + != other.getAllowNetAdmin()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAllowNetAdmin()) { + hash = (37 * hash) + ALLOW_NET_ADMIN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowNetAdmin()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.WorkloadPolicyConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.WorkloadPolicyConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.WorkloadPolicyConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.WorkloadPolicyConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.WorkloadPolicyConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1.WorkloadPolicyConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1.WorkloadPolicyConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.WorkloadPolicyConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.WorkloadPolicyConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.WorkloadPolicyConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1.WorkloadPolicyConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1.WorkloadPolicyConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1.WorkloadPolicyConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * WorkloadPolicyConfig is the configuration of workload policy for autopilot
+   * clusters.
+   * 
+ * + * Protobuf type {@code google.container.v1.WorkloadPolicyConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1.WorkloadPolicyConfig) + com.google.container.v1.WorkloadPolicyConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_WorkloadPolicyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_WorkloadPolicyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.WorkloadPolicyConfig.class, com.google.container.v1.WorkloadPolicyConfig.Builder.class); + } + + // Construct using com.google.container.v1.WorkloadPolicyConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + allowNetAdmin_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto.internal_static_google_container_v1_WorkloadPolicyConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.WorkloadPolicyConfig getDefaultInstanceForType() { + return com.google.container.v1.WorkloadPolicyConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.WorkloadPolicyConfig build() { + com.google.container.v1.WorkloadPolicyConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.WorkloadPolicyConfig buildPartial() { + com.google.container.v1.WorkloadPolicyConfig result = new com.google.container.v1.WorkloadPolicyConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.WorkloadPolicyConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.allowNetAdmin_ = allowNetAdmin_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.WorkloadPolicyConfig) { + return mergeFrom((com.google.container.v1.WorkloadPolicyConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.WorkloadPolicyConfig other) { + if (other == com.google.container.v1.WorkloadPolicyConfig.getDefaultInstance()) return this; + if (other.hasAllowNetAdmin()) { + setAllowNetAdmin(other.getAllowNetAdmin()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + allowNetAdmin_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean allowNetAdmin_ ; + /** + *
+     * If true, workloads can use NET_ADMIN capability.
+     * 
+ * + * optional bool allow_net_admin = 1; + * @return Whether the allowNetAdmin field is set. + */ + @java.lang.Override + public boolean hasAllowNetAdmin() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * If true, workloads can use NET_ADMIN capability.
+     * 
+ * + * optional bool allow_net_admin = 1; + * @return The allowNetAdmin. + */ + @java.lang.Override + public boolean getAllowNetAdmin() { + return allowNetAdmin_; + } + /** + *
+     * If true, workloads can use NET_ADMIN capability.
+     * 
+ * + * optional bool allow_net_admin = 1; + * @param value The allowNetAdmin to set. + * @return This builder for chaining. + */ + public Builder setAllowNetAdmin(boolean value) { + + allowNetAdmin_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * If true, workloads can use NET_ADMIN capability.
+     * 
+ * + * optional bool allow_net_admin = 1; + * @return This builder for chaining. + */ + public Builder clearAllowNetAdmin() { + bitField0_ = (bitField0_ & ~0x00000001); + allowNetAdmin_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1.WorkloadPolicyConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.WorkloadPolicyConfig) + private static final com.google.container.v1.WorkloadPolicyConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1.WorkloadPolicyConfig(); + } + + public static com.google.container.v1.WorkloadPolicyConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkloadPolicyConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.WorkloadPolicyConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadPolicyConfigOrBuilder.java b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadPolicyConfigOrBuilder.java new file mode 100644 index 000000000000..448535ffda0d --- /dev/null +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadPolicyConfigOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface WorkloadPolicyConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1.WorkloadPolicyConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * If true, workloads can use NET_ADMIN capability.
+   * 
+ * + * optional bool allow_net_admin = 1; + * @return Whether the allowNetAdmin field is set. + */ + boolean hasAllowNetAdmin(); + /** + *
+   * If true, workloads can use NET_ADMIN capability.
+   * 
+ * + * optional bool allow_net_admin = 1; + * @return The allowNetAdmin. + */ + boolean getAllowNetAdmin(); +} diff --git a/java-container/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto similarity index 99% rename from java-container/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto rename to owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto index 7c588023b62e..5ce0a64a798a 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto +++ b/owl-bot-staging/java-container/v1/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto @@ -1223,6 +1223,10 @@ message AddonsConfig { // Configuration for the Cloud Storage Fuse CSI driver. GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; + + // Optional. Configuration for the StatefulHA add-on. + StatefulHAConfig stateful_ha_config = 18 + [(google.api.field_behavior) = OPTIONAL]; } // Configuration options for the HTTP (L7) load balancing controller addon, @@ -1365,6 +1369,12 @@ message GkeBackupAgentConfig { bool enabled = 1; } +// Configuration for the Stateful HA add-on. +message StatefulHAConfig { + // Whether the Stateful HA add-on is enabled for this cluster. + bool enabled = 1; +} + // Configuration options for the master authorized networks feature. Enabled // master authorized networks will disallow all external traffic to access // Kubernetes master through HTTPS except traffic from the given CIDR blocks, diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/canceloperation/AsyncCancelOperation.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/canceloperation/AsyncCancelOperation.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/canceloperation/AsyncCancelOperation.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/canceloperation/AsyncCancelOperation.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/canceloperation/SyncCancelOperation.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/canceloperation/SyncCancelOperation.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/canceloperation/SyncCancelOperation.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/canceloperation/SyncCancelOperation.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/canceloperation/SyncCancelOperationString.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/canceloperation/SyncCancelOperationString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/canceloperation/SyncCancelOperationString.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/canceloperation/SyncCancelOperationString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/canceloperation/SyncCancelOperationStringStringString.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/canceloperation/SyncCancelOperationStringStringString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/canceloperation/SyncCancelOperationStringStringString.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/canceloperation/SyncCancelOperationStringStringString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/checkautopilotcompatibility/AsyncCheckAutopilotCompatibility.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/checkautopilotcompatibility/AsyncCheckAutopilotCompatibility.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/checkautopilotcompatibility/AsyncCheckAutopilotCompatibility.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/checkautopilotcompatibility/AsyncCheckAutopilotCompatibility.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/checkautopilotcompatibility/SyncCheckAutopilotCompatibility.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/checkautopilotcompatibility/SyncCheckAutopilotCompatibility.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/checkautopilotcompatibility/SyncCheckAutopilotCompatibility.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/checkautopilotcompatibility/SyncCheckAutopilotCompatibility.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/completeiprotation/AsyncCompleteIPRotation.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/completeiprotation/AsyncCompleteIPRotation.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/completeiprotation/AsyncCompleteIPRotation.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/completeiprotation/AsyncCompleteIPRotation.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/completeiprotation/SyncCompleteIPRotation.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/completeiprotation/SyncCompleteIPRotation.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/completeiprotation/SyncCompleteIPRotation.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/completeiprotation/SyncCompleteIPRotation.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/completeiprotation/SyncCompleteIPRotationString.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/completeiprotation/SyncCompleteIPRotationString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/completeiprotation/SyncCompleteIPRotationString.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/completeiprotation/SyncCompleteIPRotationString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/completeiprotation/SyncCompleteIPRotationStringStringString.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/completeiprotation/SyncCompleteIPRotationStringStringString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/completeiprotation/SyncCompleteIPRotationStringStringString.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/completeiprotation/SyncCompleteIPRotationStringStringString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/completenodepoolupgrade/AsyncCompleteNodePoolUpgrade.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/completenodepoolupgrade/AsyncCompleteNodePoolUpgrade.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/completenodepoolupgrade/AsyncCompleteNodePoolUpgrade.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/completenodepoolupgrade/AsyncCompleteNodePoolUpgrade.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/completenodepoolupgrade/SyncCompleteNodePoolUpgrade.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/completenodepoolupgrade/SyncCompleteNodePoolUpgrade.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/completenodepoolupgrade/SyncCompleteNodePoolUpgrade.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/completenodepoolupgrade/SyncCompleteNodePoolUpgrade.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/create/SyncCreateSetCredentialsProvider.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/create/SyncCreateSetEndpoint.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/createcluster/AsyncCreateCluster.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/createcluster/AsyncCreateCluster.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/createcluster/AsyncCreateCluster.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/createcluster/AsyncCreateCluster.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/createcluster/SyncCreateCluster.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/createcluster/SyncCreateCluster.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/createcluster/SyncCreateCluster.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/createcluster/SyncCreateCluster.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/createcluster/SyncCreateClusterStringCluster.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/createcluster/SyncCreateClusterStringCluster.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/createcluster/SyncCreateClusterStringCluster.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/createcluster/SyncCreateClusterStringCluster.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/createcluster/SyncCreateClusterStringStringCluster.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/createcluster/SyncCreateClusterStringStringCluster.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/createcluster/SyncCreateClusterStringStringCluster.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/createcluster/SyncCreateClusterStringStringCluster.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/createnodepool/AsyncCreateNodePool.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/createnodepool/AsyncCreateNodePool.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/createnodepool/AsyncCreateNodePool.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/createnodepool/AsyncCreateNodePool.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/createnodepool/SyncCreateNodePool.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/createnodepool/SyncCreateNodePool.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/createnodepool/SyncCreateNodePool.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/createnodepool/SyncCreateNodePool.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/createnodepool/SyncCreateNodePoolStringNodepool.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/createnodepool/SyncCreateNodePoolStringNodepool.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/createnodepool/SyncCreateNodePoolStringNodepool.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/createnodepool/SyncCreateNodePoolStringNodepool.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/createnodepool/SyncCreateNodePoolStringStringStringNodepool.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/createnodepool/SyncCreateNodePoolStringStringStringNodepool.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/createnodepool/SyncCreateNodePoolStringStringStringNodepool.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/createnodepool/SyncCreateNodePoolStringStringStringNodepool.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/deletecluster/AsyncDeleteCluster.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/deletecluster/AsyncDeleteCluster.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/deletecluster/AsyncDeleteCluster.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/deletecluster/AsyncDeleteCluster.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/deletecluster/SyncDeleteCluster.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/deletecluster/SyncDeleteCluster.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/deletecluster/SyncDeleteCluster.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/deletecluster/SyncDeleteCluster.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/deletecluster/SyncDeleteClusterString.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/deletecluster/SyncDeleteClusterString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/deletecluster/SyncDeleteClusterString.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/deletecluster/SyncDeleteClusterString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/deletecluster/SyncDeleteClusterStringStringString.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/deletecluster/SyncDeleteClusterStringStringString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/deletecluster/SyncDeleteClusterStringStringString.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/deletecluster/SyncDeleteClusterStringStringString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/deletenodepool/AsyncDeleteNodePool.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/deletenodepool/AsyncDeleteNodePool.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/deletenodepool/AsyncDeleteNodePool.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/deletenodepool/AsyncDeleteNodePool.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/deletenodepool/SyncDeleteNodePool.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/deletenodepool/SyncDeleteNodePool.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/deletenodepool/SyncDeleteNodePool.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/deletenodepool/SyncDeleteNodePool.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/deletenodepool/SyncDeleteNodePoolString.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/deletenodepool/SyncDeleteNodePoolString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/deletenodepool/SyncDeleteNodePoolString.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/deletenodepool/SyncDeleteNodePoolString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/deletenodepool/SyncDeleteNodePoolStringStringStringString.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/deletenodepool/SyncDeleteNodePoolStringStringStringString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/deletenodepool/SyncDeleteNodePoolStringStringStringString.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/deletenodepool/SyncDeleteNodePoolStringStringStringString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getcluster/AsyncGetCluster.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getcluster/AsyncGetCluster.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getcluster/AsyncGetCluster.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getcluster/AsyncGetCluster.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getcluster/SyncGetCluster.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getcluster/SyncGetCluster.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getcluster/SyncGetCluster.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getcluster/SyncGetCluster.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getcluster/SyncGetClusterString.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getcluster/SyncGetClusterString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getcluster/SyncGetClusterString.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getcluster/SyncGetClusterString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getcluster/SyncGetClusterStringStringString.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getcluster/SyncGetClusterStringStringString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getcluster/SyncGetClusterStringStringString.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getcluster/SyncGetClusterStringStringString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getjsonwebkeys/AsyncGetJSONWebKeys.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getjsonwebkeys/AsyncGetJSONWebKeys.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getjsonwebkeys/AsyncGetJSONWebKeys.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getjsonwebkeys/AsyncGetJSONWebKeys.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getjsonwebkeys/SyncGetJSONWebKeys.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getjsonwebkeys/SyncGetJSONWebKeys.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getjsonwebkeys/SyncGetJSONWebKeys.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getjsonwebkeys/SyncGetJSONWebKeys.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getnodepool/AsyncGetNodePool.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getnodepool/AsyncGetNodePool.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getnodepool/AsyncGetNodePool.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getnodepool/AsyncGetNodePool.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getnodepool/SyncGetNodePool.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getnodepool/SyncGetNodePool.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getnodepool/SyncGetNodePool.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getnodepool/SyncGetNodePool.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getnodepool/SyncGetNodePoolString.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getnodepool/SyncGetNodePoolString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getnodepool/SyncGetNodePoolString.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getnodepool/SyncGetNodePoolString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getnodepool/SyncGetNodePoolStringStringStringString.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getnodepool/SyncGetNodePoolStringStringStringString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getnodepool/SyncGetNodePoolStringStringStringString.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getnodepool/SyncGetNodePoolStringStringStringString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getoperation/AsyncGetOperation.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getoperation/AsyncGetOperation.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getoperation/AsyncGetOperation.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getoperation/AsyncGetOperation.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getoperation/SyncGetOperation.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getoperation/SyncGetOperation.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getoperation/SyncGetOperation.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getoperation/SyncGetOperation.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getoperation/SyncGetOperationString.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getoperation/SyncGetOperationString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getoperation/SyncGetOperationString.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getoperation/SyncGetOperationString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getoperation/SyncGetOperationStringStringString.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getoperation/SyncGetOperationStringStringString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getoperation/SyncGetOperationStringStringString.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getoperation/SyncGetOperationStringStringString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getserverconfig/AsyncGetServerConfig.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getserverconfig/AsyncGetServerConfig.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getserverconfig/AsyncGetServerConfig.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getserverconfig/AsyncGetServerConfig.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getserverconfig/SyncGetServerConfig.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getserverconfig/SyncGetServerConfig.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getserverconfig/SyncGetServerConfig.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getserverconfig/SyncGetServerConfig.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getserverconfig/SyncGetServerConfigString.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getserverconfig/SyncGetServerConfigString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getserverconfig/SyncGetServerConfigString.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getserverconfig/SyncGetServerConfigString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getserverconfig/SyncGetServerConfigStringString.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getserverconfig/SyncGetServerConfigStringString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getserverconfig/SyncGetServerConfigStringString.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/getserverconfig/SyncGetServerConfigStringString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listclusters/AsyncListClusters.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listclusters/AsyncListClusters.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listclusters/AsyncListClusters.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listclusters/AsyncListClusters.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listclusters/SyncListClusters.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listclusters/SyncListClusters.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listclusters/SyncListClusters.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listclusters/SyncListClusters.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listclusters/SyncListClustersString.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listclusters/SyncListClustersString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listclusters/SyncListClustersString.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listclusters/SyncListClustersString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listclusters/SyncListClustersStringString.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listclusters/SyncListClustersStringString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listclusters/SyncListClustersStringString.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listclusters/SyncListClustersStringString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listnodepools/AsyncListNodePools.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listnodepools/AsyncListNodePools.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listnodepools/AsyncListNodePools.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listnodepools/AsyncListNodePools.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listnodepools/SyncListNodePools.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listnodepools/SyncListNodePools.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listnodepools/SyncListNodePools.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listnodepools/SyncListNodePools.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listnodepools/SyncListNodePoolsString.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listnodepools/SyncListNodePoolsString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listnodepools/SyncListNodePoolsString.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listnodepools/SyncListNodePoolsString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listnodepools/SyncListNodePoolsStringStringString.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listnodepools/SyncListNodePoolsStringStringString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listnodepools/SyncListNodePoolsStringStringString.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listnodepools/SyncListNodePoolsStringStringString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listoperations/AsyncListOperations.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listoperations/AsyncListOperations.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listoperations/AsyncListOperations.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listoperations/AsyncListOperations.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listoperations/SyncListOperations.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listoperations/SyncListOperations.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listoperations/SyncListOperations.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listoperations/SyncListOperations.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listoperations/SyncListOperationsStringString.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listoperations/SyncListOperationsStringString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listoperations/SyncListOperationsStringString.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listoperations/SyncListOperationsStringString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listusablesubnetworks/AsyncListUsableSubnetworks.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listusablesubnetworks/AsyncListUsableSubnetworks.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listusablesubnetworks/AsyncListUsableSubnetworks.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listusablesubnetworks/AsyncListUsableSubnetworks.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listusablesubnetworks/AsyncListUsableSubnetworksPaged.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listusablesubnetworks/AsyncListUsableSubnetworksPaged.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listusablesubnetworks/AsyncListUsableSubnetworksPaged.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listusablesubnetworks/AsyncListUsableSubnetworksPaged.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listusablesubnetworks/SyncListUsableSubnetworks.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listusablesubnetworks/SyncListUsableSubnetworks.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listusablesubnetworks/SyncListUsableSubnetworks.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listusablesubnetworks/SyncListUsableSubnetworks.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/rollbacknodepoolupgrade/AsyncRollbackNodePoolUpgrade.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/rollbacknodepoolupgrade/AsyncRollbackNodePoolUpgrade.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/rollbacknodepoolupgrade/AsyncRollbackNodePoolUpgrade.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/rollbacknodepoolupgrade/AsyncRollbackNodePoolUpgrade.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/rollbacknodepoolupgrade/SyncRollbackNodePoolUpgrade.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/rollbacknodepoolupgrade/SyncRollbackNodePoolUpgrade.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/rollbacknodepoolupgrade/SyncRollbackNodePoolUpgrade.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/rollbacknodepoolupgrade/SyncRollbackNodePoolUpgrade.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/rollbacknodepoolupgrade/SyncRollbackNodePoolUpgradeString.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/rollbacknodepoolupgrade/SyncRollbackNodePoolUpgradeString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/rollbacknodepoolupgrade/SyncRollbackNodePoolUpgradeString.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/rollbacknodepoolupgrade/SyncRollbackNodePoolUpgradeString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/rollbacknodepoolupgrade/SyncRollbackNodePoolUpgradeStringStringStringString.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/rollbacknodepoolupgrade/SyncRollbackNodePoolUpgradeStringStringStringString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/rollbacknodepoolupgrade/SyncRollbackNodePoolUpgradeStringStringStringString.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/rollbacknodepoolupgrade/SyncRollbackNodePoolUpgradeStringStringStringString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setaddonsconfig/AsyncSetAddonsConfig.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setaddonsconfig/AsyncSetAddonsConfig.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setaddonsconfig/AsyncSetAddonsConfig.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setaddonsconfig/AsyncSetAddonsConfig.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setaddonsconfig/SyncSetAddonsConfig.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setaddonsconfig/SyncSetAddonsConfig.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setaddonsconfig/SyncSetAddonsConfig.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setaddonsconfig/SyncSetAddonsConfig.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setaddonsconfig/SyncSetAddonsConfigStringAddonsconfig.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setaddonsconfig/SyncSetAddonsConfigStringAddonsconfig.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setaddonsconfig/SyncSetAddonsConfigStringAddonsconfig.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setaddonsconfig/SyncSetAddonsConfigStringAddonsconfig.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setaddonsconfig/SyncSetAddonsConfigStringStringStringAddonsconfig.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setaddonsconfig/SyncSetAddonsConfigStringStringStringAddonsconfig.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setaddonsconfig/SyncSetAddonsConfigStringStringStringAddonsconfig.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setaddonsconfig/SyncSetAddonsConfigStringStringStringAddonsconfig.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setlabels/AsyncSetLabels.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setlabels/AsyncSetLabels.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setlabels/AsyncSetLabels.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setlabels/AsyncSetLabels.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setlabels/SyncSetLabels.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setlabels/SyncSetLabels.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setlabels/SyncSetLabels.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setlabels/SyncSetLabels.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setlegacyabac/AsyncSetLegacyAbac.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setlegacyabac/AsyncSetLegacyAbac.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setlegacyabac/AsyncSetLegacyAbac.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setlegacyabac/AsyncSetLegacyAbac.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setlegacyabac/SyncSetLegacyAbac.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setlegacyabac/SyncSetLegacyAbac.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setlegacyabac/SyncSetLegacyAbac.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setlegacyabac/SyncSetLegacyAbac.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setlegacyabac/SyncSetLegacyAbacStringBoolean.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setlegacyabac/SyncSetLegacyAbacStringBoolean.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setlegacyabac/SyncSetLegacyAbacStringBoolean.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setlegacyabac/SyncSetLegacyAbacStringBoolean.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setlegacyabac/SyncSetLegacyAbacStringStringStringBoolean.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setlegacyabac/SyncSetLegacyAbacStringStringStringBoolean.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setlegacyabac/SyncSetLegacyAbacStringStringStringBoolean.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setlegacyabac/SyncSetLegacyAbacStringStringStringBoolean.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setlocations/AsyncSetLocations.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setlocations/AsyncSetLocations.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setlocations/AsyncSetLocations.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setlocations/AsyncSetLocations.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setlocations/SyncSetLocations.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setlocations/SyncSetLocations.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setlocations/SyncSetLocations.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setlocations/SyncSetLocations.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setlocations/SyncSetLocationsStringListstring.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setlocations/SyncSetLocationsStringListstring.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setlocations/SyncSetLocationsStringListstring.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setlocations/SyncSetLocationsStringListstring.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setlocations/SyncSetLocationsStringStringStringListstring.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setlocations/SyncSetLocationsStringStringStringListstring.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setlocations/SyncSetLocationsStringStringStringListstring.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setlocations/SyncSetLocationsStringStringStringListstring.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setloggingservice/AsyncSetLoggingService.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setloggingservice/AsyncSetLoggingService.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setloggingservice/AsyncSetLoggingService.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setloggingservice/AsyncSetLoggingService.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setloggingservice/SyncSetLoggingService.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setloggingservice/SyncSetLoggingService.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setloggingservice/SyncSetLoggingService.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setloggingservice/SyncSetLoggingService.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setloggingservice/SyncSetLoggingServiceStringString.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setloggingservice/SyncSetLoggingServiceStringString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setloggingservice/SyncSetLoggingServiceStringString.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setloggingservice/SyncSetLoggingServiceStringString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setloggingservice/SyncSetLoggingServiceStringStringStringString.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setloggingservice/SyncSetLoggingServiceStringStringStringString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setloggingservice/SyncSetLoggingServiceStringStringStringString.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setloggingservice/SyncSetLoggingServiceStringStringStringString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setmaintenancepolicy/AsyncSetMaintenancePolicy.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setmaintenancepolicy/AsyncSetMaintenancePolicy.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setmaintenancepolicy/AsyncSetMaintenancePolicy.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setmaintenancepolicy/AsyncSetMaintenancePolicy.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setmaintenancepolicy/SyncSetMaintenancePolicy.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setmaintenancepolicy/SyncSetMaintenancePolicy.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setmaintenancepolicy/SyncSetMaintenancePolicy.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setmaintenancepolicy/SyncSetMaintenancePolicy.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setmaintenancepolicy/SyncSetMaintenancePolicyStringMaintenancepolicy.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setmaintenancepolicy/SyncSetMaintenancePolicyStringMaintenancepolicy.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setmaintenancepolicy/SyncSetMaintenancePolicyStringMaintenancepolicy.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setmaintenancepolicy/SyncSetMaintenancePolicyStringMaintenancepolicy.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setmaintenancepolicy/SyncSetMaintenancePolicyStringStringStringMaintenancepolicy.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setmaintenancepolicy/SyncSetMaintenancePolicyStringStringStringMaintenancepolicy.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setmaintenancepolicy/SyncSetMaintenancePolicyStringStringStringMaintenancepolicy.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setmaintenancepolicy/SyncSetMaintenancePolicyStringStringStringMaintenancepolicy.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setmasterauth/AsyncSetMasterAuth.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setmasterauth/AsyncSetMasterAuth.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setmasterauth/AsyncSetMasterAuth.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setmasterauth/AsyncSetMasterAuth.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setmasterauth/SyncSetMasterAuth.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setmasterauth/SyncSetMasterAuth.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setmasterauth/SyncSetMasterAuth.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setmasterauth/SyncSetMasterAuth.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setmonitoringservice/AsyncSetMonitoringService.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setmonitoringservice/AsyncSetMonitoringService.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setmonitoringservice/AsyncSetMonitoringService.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setmonitoringservice/AsyncSetMonitoringService.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setmonitoringservice/SyncSetMonitoringService.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setmonitoringservice/SyncSetMonitoringService.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setmonitoringservice/SyncSetMonitoringService.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setmonitoringservice/SyncSetMonitoringService.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setmonitoringservice/SyncSetMonitoringServiceStringString.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setmonitoringservice/SyncSetMonitoringServiceStringString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setmonitoringservice/SyncSetMonitoringServiceStringString.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setmonitoringservice/SyncSetMonitoringServiceStringString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setmonitoringservice/SyncSetMonitoringServiceStringStringStringString.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setmonitoringservice/SyncSetMonitoringServiceStringStringStringString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setmonitoringservice/SyncSetMonitoringServiceStringStringStringString.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setmonitoringservice/SyncSetMonitoringServiceStringStringStringString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setnetworkpolicy/AsyncSetNetworkPolicy.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setnetworkpolicy/AsyncSetNetworkPolicy.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setnetworkpolicy/AsyncSetNetworkPolicy.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setnetworkpolicy/AsyncSetNetworkPolicy.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setnetworkpolicy/SyncSetNetworkPolicy.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setnetworkpolicy/SyncSetNetworkPolicy.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setnetworkpolicy/SyncSetNetworkPolicy.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setnetworkpolicy/SyncSetNetworkPolicy.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setnetworkpolicy/SyncSetNetworkPolicyStringNetworkpolicy.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setnetworkpolicy/SyncSetNetworkPolicyStringNetworkpolicy.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setnetworkpolicy/SyncSetNetworkPolicyStringNetworkpolicy.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setnetworkpolicy/SyncSetNetworkPolicyStringNetworkpolicy.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setnetworkpolicy/SyncSetNetworkPolicyStringStringStringNetworkpolicy.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setnetworkpolicy/SyncSetNetworkPolicyStringStringStringNetworkpolicy.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setnetworkpolicy/SyncSetNetworkPolicyStringStringStringNetworkpolicy.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setnetworkpolicy/SyncSetNetworkPolicyStringStringStringNetworkpolicy.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setnodepoolautoscaling/AsyncSetNodePoolAutoscaling.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setnodepoolautoscaling/AsyncSetNodePoolAutoscaling.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setnodepoolautoscaling/AsyncSetNodePoolAutoscaling.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setnodepoolautoscaling/AsyncSetNodePoolAutoscaling.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setnodepoolautoscaling/SyncSetNodePoolAutoscaling.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setnodepoolautoscaling/SyncSetNodePoolAutoscaling.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setnodepoolautoscaling/SyncSetNodePoolAutoscaling.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setnodepoolautoscaling/SyncSetNodePoolAutoscaling.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setnodepoolmanagement/AsyncSetNodePoolManagement.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setnodepoolmanagement/AsyncSetNodePoolManagement.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setnodepoolmanagement/AsyncSetNodePoolManagement.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setnodepoolmanagement/AsyncSetNodePoolManagement.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setnodepoolmanagement/SyncSetNodePoolManagement.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setnodepoolmanagement/SyncSetNodePoolManagement.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setnodepoolmanagement/SyncSetNodePoolManagement.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setnodepoolmanagement/SyncSetNodePoolManagement.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setnodepoolsize/AsyncSetNodePoolSize.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setnodepoolsize/AsyncSetNodePoolSize.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setnodepoolsize/AsyncSetNodePoolSize.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setnodepoolsize/AsyncSetNodePoolSize.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setnodepoolsize/SyncSetNodePoolSize.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setnodepoolsize/SyncSetNodePoolSize.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setnodepoolsize/SyncSetNodePoolSize.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/setnodepoolsize/SyncSetNodePoolSize.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/startiprotation/AsyncStartIPRotation.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/startiprotation/AsyncStartIPRotation.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/startiprotation/AsyncStartIPRotation.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/startiprotation/AsyncStartIPRotation.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/startiprotation/SyncStartIPRotation.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/startiprotation/SyncStartIPRotation.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/startiprotation/SyncStartIPRotation.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/startiprotation/SyncStartIPRotation.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/startiprotation/SyncStartIPRotationString.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/startiprotation/SyncStartIPRotationString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/startiprotation/SyncStartIPRotationString.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/startiprotation/SyncStartIPRotationString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/startiprotation/SyncStartIPRotationStringStringString.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/startiprotation/SyncStartIPRotationStringStringString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/startiprotation/SyncStartIPRotationStringStringString.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/startiprotation/SyncStartIPRotationStringStringString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatecluster/AsyncUpdateCluster.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatecluster/AsyncUpdateCluster.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatecluster/AsyncUpdateCluster.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatecluster/AsyncUpdateCluster.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatecluster/SyncUpdateCluster.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatecluster/SyncUpdateCluster.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatecluster/SyncUpdateCluster.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatecluster/SyncUpdateCluster.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatecluster/SyncUpdateClusterStringClusterupdate.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatecluster/SyncUpdateClusterStringClusterupdate.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatecluster/SyncUpdateClusterStringClusterupdate.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatecluster/SyncUpdateClusterStringClusterupdate.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatecluster/SyncUpdateClusterStringStringStringClusterupdate.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatecluster/SyncUpdateClusterStringStringStringClusterupdate.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatecluster/SyncUpdateClusterStringStringStringClusterupdate.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatecluster/SyncUpdateClusterStringStringStringClusterupdate.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatemaster/AsyncUpdateMaster.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatemaster/AsyncUpdateMaster.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatemaster/AsyncUpdateMaster.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatemaster/AsyncUpdateMaster.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatemaster/SyncUpdateMaster.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatemaster/SyncUpdateMaster.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatemaster/SyncUpdateMaster.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatemaster/SyncUpdateMaster.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatemaster/SyncUpdateMasterStringString.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatemaster/SyncUpdateMasterStringString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatemaster/SyncUpdateMasterStringString.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatemaster/SyncUpdateMasterStringString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatemaster/SyncUpdateMasterStringStringStringString.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatemaster/SyncUpdateMasterStringStringStringString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatemaster/SyncUpdateMasterStringStringStringString.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatemaster/SyncUpdateMasterStringStringStringString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatenodepool/AsyncUpdateNodePool.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatenodepool/AsyncUpdateNodePool.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatenodepool/AsyncUpdateNodePool.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatenodepool/AsyncUpdateNodePool.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatenodepool/SyncUpdateNodePool.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatenodepool/SyncUpdateNodePool.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatenodepool/SyncUpdateNodePool.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatenodepool/SyncUpdateNodePool.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanagersettings/listclusters/SyncListClusters.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanagersettings/listclusters/SyncListClusters.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanagersettings/listclusters/SyncListClusters.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/clustermanagersettings/listclusters/SyncListClusters.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/stub/clustermanagerstubsettings/listclusters/SyncListClusters.java b/owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/stub/clustermanagerstubsettings/listclusters/SyncListClusters.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1/stub/clustermanagerstubsettings/listclusters/SyncListClusters.java rename to owl-bot-staging/java-container/v1/samples/snippets/generated/com/google/cloud/container/v1/stub/clustermanagerstubsettings/listclusters/SyncListClusters.java diff --git a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerClient.java b/owl-bot-staging/java-container/v1beta1/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerClient.java similarity index 100% rename from java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerClient.java rename to owl-bot-staging/java-container/v1beta1/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerClient.java diff --git a/owl-bot-staging/java-container/v1beta1/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerSettings.java b/owl-bot-staging/java-container/v1beta1/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerSettings.java new file mode 100644 index 000000000000..7fcea5879f69 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/ClusterManagerSettings.java @@ -0,0 +1,618 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.StubSettings; +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.CheckAutopilotCompatibilityRequest; +import com.google.container.v1beta1.CheckAutopilotCompatibilityResponse; +import com.google.container.v1beta1.Cluster; +import com.google.container.v1beta1.CompleteIPRotationRequest; +import com.google.container.v1beta1.CompleteNodePoolUpgradeRequest; +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
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * 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 getJSONWebKeys. */ + public UnaryCallSettings getJSONWebKeysSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).getJSONWebKeysSettings(); + } + + /** Returns the object with the settings used for calls to listNodePools. */ + public UnaryCallSettings listNodePoolsSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).listNodePoolsSettings(); + } + + /** 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 completeNodePoolUpgrade. */ + public UnaryCallSettings + completeNodePoolUpgradeSettings() { + return ((ClusterManagerStubSettings) getStubSettings()).completeNodePoolUpgradeSettings(); + } + + /** 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 checkAutopilotCompatibility. */ + public UnaryCallSettings + checkAutopilotCompatibilitySettings() { + return ((ClusterManagerStubSettings) getStubSettings()).checkAutopilotCompatibilitySettings(); + } + + /** 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()); + } + + /** + * 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) { + 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 getJSONWebKeys. */ + public UnaryCallSettings.Builder + getJSONWebKeysSettings() { + return getStubSettingsBuilder().getJSONWebKeysSettings(); + } + + /** 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 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 completeNodePoolUpgrade. */ + public UnaryCallSettings.Builder + completeNodePoolUpgradeSettings() { + return getStubSettingsBuilder().completeNodePoolUpgradeSettings(); + } + + /** 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 checkAutopilotCompatibility. */ + public UnaryCallSettings.Builder< + CheckAutopilotCompatibilityRequest, CheckAutopilotCompatibilityResponse> + checkAutopilotCompatibilitySettings() { + return getStubSettingsBuilder().checkAutopilotCompatibilitySettings(); + } + + /** 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/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/gapic_metadata.json b/owl-bot-staging/java-container/v1beta1/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/gapic_metadata.json similarity index 100% rename from java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/gapic_metadata.json rename to owl-bot-staging/java-container/v1beta1/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/gapic_metadata.json diff --git a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/package-info.java b/owl-bot-staging/java-container/v1beta1/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/package-info.java similarity index 100% rename from java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/package-info.java rename to owl-bot-staging/java-container/v1beta1/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/package-info.java diff --git a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/ClusterManagerStub.java b/owl-bot-staging/java-container/v1beta1/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/ClusterManagerStub.java similarity index 100% rename from java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/ClusterManagerStub.java rename to owl-bot-staging/java-container/v1beta1/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/ClusterManagerStub.java diff --git a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/ClusterManagerStubSettings.java b/owl-bot-staging/java-container/v1beta1/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/ClusterManagerStubSettings.java similarity index 100% rename from java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/ClusterManagerStubSettings.java rename to owl-bot-staging/java-container/v1beta1/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/ClusterManagerStubSettings.java diff --git a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/GrpcClusterManagerCallableFactory.java b/owl-bot-staging/java-container/v1beta1/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/GrpcClusterManagerCallableFactory.java similarity index 100% rename from java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/GrpcClusterManagerCallableFactory.java rename to owl-bot-staging/java-container/v1beta1/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/GrpcClusterManagerCallableFactory.java diff --git a/owl-bot-staging/java-container/v1beta1/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/GrpcClusterManagerStub.java b/owl-bot-staging/java-container/v1beta1/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/GrpcClusterManagerStub.java new file mode 100644 index 000000000000..b2157b65143b --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/GrpcClusterManagerStub.java @@ -0,0 +1,1345 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.container.v1beta1.CancelOperationRequest; +import com.google.container.v1beta1.CheckAutopilotCompatibilityRequest; +import com.google.container.v1beta1.CheckAutopilotCompatibilityResponse; +import com.google.container.v1beta1.Cluster; +import com.google.container.v1beta1.CompleteIPRotationRequest; +import com.google.container.v1beta1.CompleteNodePoolUpgradeRequest; +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 + 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 + 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 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 + completeNodePoolUpgradeMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.container.v1beta1.ClusterManager/CompleteNodePoolUpgrade") + .setRequestMarshaller( + ProtoUtils.marshaller(CompleteNodePoolUpgradeRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.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< + CheckAutopilotCompatibilityRequest, CheckAutopilotCompatibilityResponse> + checkAutopilotCompatibilityMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.container.v1beta1.ClusterManager/CheckAutopilotCompatibility") + .setRequestMarshaller( + ProtoUtils.marshaller(CheckAutopilotCompatibilityRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(CheckAutopilotCompatibilityResponse.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 getJSONWebKeysCallable; + private final UnaryCallable listNodePoolsCallable; + private final UnaryCallable getNodePoolCallable; + private final UnaryCallable createNodePoolCallable; + private final UnaryCallable deleteNodePoolCallable; + private final UnaryCallable + completeNodePoolUpgradeCallable; + 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< + CheckAutopilotCompatibilityRequest, CheckAutopilotCompatibilityResponse> + checkAutopilotCompatibilityCallable; + 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( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings getClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getClusterMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings createClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createClusterMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateClusterMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateNodePoolTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateNodePoolMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("node_pool_id", String.valueOf(request.getNodePoolId())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings + setNodePoolAutoscalingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setNodePoolAutoscalingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("node_pool_id", String.valueOf(request.getNodePoolId())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings setLoggingServiceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setLoggingServiceMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings setMonitoringServiceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setMonitoringServiceMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings setAddonsConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setAddonsConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings setLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateMasterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateMasterMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings setMasterAuthTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setMasterAuthMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteClusterMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listOperationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listOperationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings getOperationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getOperationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + builder.add("operation_id", String.valueOf(request.getOperationId())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings cancelOperationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(cancelOperationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + builder.add("operation_id", String.valueOf(request.getOperationId())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings getServerConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getServerConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getJSONWebKeysTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getJSONWebKeysMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings listNodePoolsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listNodePoolsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("parent", String.valueOf(request.getParent())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings getNodePoolTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getNodePoolMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("node_pool_id", String.valueOf(request.getNodePoolId())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings createNodePoolTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createNodePoolMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("parent", String.valueOf(request.getParent())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteNodePoolTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteNodePoolMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("node_pool_id", String.valueOf(request.getNodePoolId())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings + completeNodePoolUpgradeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(completeNodePoolUpgradeMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + rollbackNodePoolUpgradeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(rollbackNodePoolUpgradeMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("node_pool_id", String.valueOf(request.getNodePoolId())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings + setNodePoolManagementTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setNodePoolManagementMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("node_pool_id", String.valueOf(request.getNodePoolId())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings setLabelsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setLabelsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings setLegacyAbacTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setLegacyAbacMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings startIPRotationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(startIPRotationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings completeIPRotationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(completeIPRotationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings setNodePoolSizeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setNodePoolSizeMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("node_pool_id", String.valueOf(request.getNodePoolId())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings setNetworkPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setNetworkPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings setMaintenancePolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setMaintenancePolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listUsableSubnetworksTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listUsableSubnetworksMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + checkAutopilotCompatibilityTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(checkAutopilotCompatibilityMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.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.getJSONWebKeysCallable = + callableFactory.createUnaryCallable( + getJSONWebKeysTransportSettings, settings.getJSONWebKeysSettings(), clientContext); + this.listNodePoolsCallable = + callableFactory.createUnaryCallable( + listNodePoolsTransportSettings, settings.listNodePoolsSettings(), 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.completeNodePoolUpgradeCallable = + callableFactory.createUnaryCallable( + completeNodePoolUpgradeTransportSettings, + settings.completeNodePoolUpgradeSettings(), + 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.checkAutopilotCompatibilityCallable = + callableFactory.createUnaryCallable( + checkAutopilotCompatibilityTransportSettings, + settings.checkAutopilotCompatibilitySettings(), + 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 getJSONWebKeysCallable() { + return getJSONWebKeysCallable; + } + + @Override + public UnaryCallable listNodePoolsCallable() { + return listNodePoolsCallable; + } + + @Override + public UnaryCallable getNodePoolCallable() { + return getNodePoolCallable; + } + + @Override + public UnaryCallable createNodePoolCallable() { + return createNodePoolCallable; + } + + @Override + public UnaryCallable deleteNodePoolCallable() { + return deleteNodePoolCallable; + } + + @Override + public UnaryCallable completeNodePoolUpgradeCallable() { + return completeNodePoolUpgradeCallable; + } + + @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 + checkAutopilotCompatibilityCallable() { + return checkAutopilotCompatibilityCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @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/java-container/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1beta1/reflect-config.json b/owl-bot-staging/java-container/v1beta1/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1beta1/reflect-config.json similarity index 100% rename from java-container/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1beta1/reflect-config.json rename to owl-bot-staging/java-container/v1beta1/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1beta1/reflect-config.json diff --git a/java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/ClusterManagerClientTest.java b/owl-bot-staging/java-container/v1beta1/google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/ClusterManagerClientTest.java similarity index 100% rename from java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/ClusterManagerClientTest.java rename to owl-bot-staging/java-container/v1beta1/google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/ClusterManagerClientTest.java diff --git a/java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/MockClusterManager.java b/owl-bot-staging/java-container/v1beta1/google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/MockClusterManager.java similarity index 100% rename from java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/MockClusterManager.java rename to owl-bot-staging/java-container/v1beta1/google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/MockClusterManager.java diff --git a/java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/MockClusterManagerImpl.java b/owl-bot-staging/java-container/v1beta1/google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/MockClusterManagerImpl.java similarity index 100% rename from java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/MockClusterManagerImpl.java rename to owl-bot-staging/java-container/v1beta1/google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/MockClusterManagerImpl.java diff --git a/owl-bot-staging/java-container/v1beta1/grpc-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterManagerGrpc.java b/owl-bot-staging/java-container/v1beta1/grpc-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterManagerGrpc.java new file mode 100644 index 000000000000..60bf4df90792 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/grpc-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterManagerGrpc.java @@ -0,0 +1,3363 @@ +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") +@io.grpc.stub.annotations.GrpcGenerated +public final class ClusterManagerGrpc { + + private ClusterManagerGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.container.v1beta1.ClusterManager"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor 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 getListClustersMethod() { + io.grpc.MethodDescriptor getListClustersMethod; + if ((getListClustersMethod = ClusterManagerGrpc.getListClustersMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getListClustersMethod = ClusterManagerGrpc.getListClustersMethod) == null) { + ClusterManagerGrpc.getListClustersMethod = getListClustersMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(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 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 getGetClusterMethod() { + io.grpc.MethodDescriptor getGetClusterMethod; + if ((getGetClusterMethod = ClusterManagerGrpc.getGetClusterMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getGetClusterMethod = ClusterManagerGrpc.getGetClusterMethod) == null) { + ClusterManagerGrpc.getGetClusterMethod = getGetClusterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(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 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 getCreateClusterMethod() { + io.grpc.MethodDescriptor getCreateClusterMethod; + if ((getCreateClusterMethod = ClusterManagerGrpc.getCreateClusterMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getCreateClusterMethod = ClusterManagerGrpc.getCreateClusterMethod) == null) { + ClusterManagerGrpc.getCreateClusterMethod = getCreateClusterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(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 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 getUpdateClusterMethod() { + io.grpc.MethodDescriptor getUpdateClusterMethod; + if ((getUpdateClusterMethod = ClusterManagerGrpc.getUpdateClusterMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getUpdateClusterMethod = ClusterManagerGrpc.getUpdateClusterMethod) == null) { + ClusterManagerGrpc.getUpdateClusterMethod = getUpdateClusterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(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 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 getUpdateNodePoolMethod() { + io.grpc.MethodDescriptor getUpdateNodePoolMethod; + if ((getUpdateNodePoolMethod = ClusterManagerGrpc.getUpdateNodePoolMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getUpdateNodePoolMethod = ClusterManagerGrpc.getUpdateNodePoolMethod) == null) { + ClusterManagerGrpc.getUpdateNodePoolMethod = getUpdateNodePoolMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(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 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 getSetNodePoolAutoscalingMethod() { + io.grpc.MethodDescriptor getSetNodePoolAutoscalingMethod; + if ((getSetNodePoolAutoscalingMethod = ClusterManagerGrpc.getSetNodePoolAutoscalingMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetNodePoolAutoscalingMethod = ClusterManagerGrpc.getSetNodePoolAutoscalingMethod) == null) { + ClusterManagerGrpc.getSetNodePoolAutoscalingMethod = getSetNodePoolAutoscalingMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(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 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 getSetLoggingServiceMethod() { + io.grpc.MethodDescriptor getSetLoggingServiceMethod; + if ((getSetLoggingServiceMethod = ClusterManagerGrpc.getSetLoggingServiceMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetLoggingServiceMethod = ClusterManagerGrpc.getSetLoggingServiceMethod) == null) { + ClusterManagerGrpc.getSetLoggingServiceMethod = getSetLoggingServiceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(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 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 getSetMonitoringServiceMethod() { + io.grpc.MethodDescriptor getSetMonitoringServiceMethod; + if ((getSetMonitoringServiceMethod = ClusterManagerGrpc.getSetMonitoringServiceMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetMonitoringServiceMethod = ClusterManagerGrpc.getSetMonitoringServiceMethod) == null) { + ClusterManagerGrpc.getSetMonitoringServiceMethod = getSetMonitoringServiceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(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 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 getSetAddonsConfigMethod() { + io.grpc.MethodDescriptor getSetAddonsConfigMethod; + if ((getSetAddonsConfigMethod = ClusterManagerGrpc.getSetAddonsConfigMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetAddonsConfigMethod = ClusterManagerGrpc.getSetAddonsConfigMethod) == null) { + ClusterManagerGrpc.getSetAddonsConfigMethod = getSetAddonsConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(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 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 getSetLocationsMethod() { + io.grpc.MethodDescriptor getSetLocationsMethod; + if ((getSetLocationsMethod = ClusterManagerGrpc.getSetLocationsMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetLocationsMethod = ClusterManagerGrpc.getSetLocationsMethod) == null) { + ClusterManagerGrpc.getSetLocationsMethod = getSetLocationsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(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 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 getUpdateMasterMethod() { + io.grpc.MethodDescriptor getUpdateMasterMethod; + if ((getUpdateMasterMethod = ClusterManagerGrpc.getUpdateMasterMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getUpdateMasterMethod = ClusterManagerGrpc.getUpdateMasterMethod) == null) { + ClusterManagerGrpc.getUpdateMasterMethod = getUpdateMasterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(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 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 getSetMasterAuthMethod() { + io.grpc.MethodDescriptor getSetMasterAuthMethod; + if ((getSetMasterAuthMethod = ClusterManagerGrpc.getSetMasterAuthMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetMasterAuthMethod = ClusterManagerGrpc.getSetMasterAuthMethod) == null) { + ClusterManagerGrpc.getSetMasterAuthMethod = getSetMasterAuthMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(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 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 getDeleteClusterMethod() { + io.grpc.MethodDescriptor getDeleteClusterMethod; + if ((getDeleteClusterMethod = ClusterManagerGrpc.getDeleteClusterMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getDeleteClusterMethod = ClusterManagerGrpc.getDeleteClusterMethod) == null) { + ClusterManagerGrpc.getDeleteClusterMethod = getDeleteClusterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(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 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 getListOperationsMethod() { + io.grpc.MethodDescriptor getListOperationsMethod; + if ((getListOperationsMethod = ClusterManagerGrpc.getListOperationsMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getListOperationsMethod = ClusterManagerGrpc.getListOperationsMethod) == null) { + ClusterManagerGrpc.getListOperationsMethod = getListOperationsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(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 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 getGetOperationMethod() { + io.grpc.MethodDescriptor getGetOperationMethod; + if ((getGetOperationMethod = ClusterManagerGrpc.getGetOperationMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getGetOperationMethod = ClusterManagerGrpc.getGetOperationMethod) == null) { + ClusterManagerGrpc.getGetOperationMethod = getGetOperationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(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 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 getCancelOperationMethod() { + io.grpc.MethodDescriptor getCancelOperationMethod; + if ((getCancelOperationMethod = ClusterManagerGrpc.getCancelOperationMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getCancelOperationMethod = ClusterManagerGrpc.getCancelOperationMethod) == null) { + ClusterManagerGrpc.getCancelOperationMethod = getCancelOperationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(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 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 getGetServerConfigMethod() { + io.grpc.MethodDescriptor getGetServerConfigMethod; + if ((getGetServerConfigMethod = ClusterManagerGrpc.getGetServerConfigMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getGetServerConfigMethod = ClusterManagerGrpc.getGetServerConfigMethod) == null) { + ClusterManagerGrpc.getGetServerConfigMethod = getGetServerConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(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 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 getGetJSONWebKeysMethod() { + io.grpc.MethodDescriptor 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 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 getListNodePoolsMethod() { + io.grpc.MethodDescriptor getListNodePoolsMethod; + if ((getListNodePoolsMethod = ClusterManagerGrpc.getListNodePoolsMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getListNodePoolsMethod = ClusterManagerGrpc.getListNodePoolsMethod) == null) { + ClusterManagerGrpc.getListNodePoolsMethod = getListNodePoolsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(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 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 getGetNodePoolMethod() { + io.grpc.MethodDescriptor getGetNodePoolMethod; + if ((getGetNodePoolMethod = ClusterManagerGrpc.getGetNodePoolMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getGetNodePoolMethod = ClusterManagerGrpc.getGetNodePoolMethod) == null) { + ClusterManagerGrpc.getGetNodePoolMethod = getGetNodePoolMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(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 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 getCreateNodePoolMethod() { + io.grpc.MethodDescriptor getCreateNodePoolMethod; + if ((getCreateNodePoolMethod = ClusterManagerGrpc.getCreateNodePoolMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getCreateNodePoolMethod = ClusterManagerGrpc.getCreateNodePoolMethod) == null) { + ClusterManagerGrpc.getCreateNodePoolMethod = getCreateNodePoolMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(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 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 getDeleteNodePoolMethod() { + io.grpc.MethodDescriptor getDeleteNodePoolMethod; + if ((getDeleteNodePoolMethod = ClusterManagerGrpc.getDeleteNodePoolMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getDeleteNodePoolMethod = ClusterManagerGrpc.getDeleteNodePoolMethod) == null) { + ClusterManagerGrpc.getDeleteNodePoolMethod = getDeleteNodePoolMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(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 getCompleteNodePoolUpgradeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CompleteNodePoolUpgrade", + requestType = com.google.container.v1beta1.CompleteNodePoolUpgradeRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCompleteNodePoolUpgradeMethod() { + io.grpc.MethodDescriptor getCompleteNodePoolUpgradeMethod; + if ((getCompleteNodePoolUpgradeMethod = ClusterManagerGrpc.getCompleteNodePoolUpgradeMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getCompleteNodePoolUpgradeMethod = ClusterManagerGrpc.getCompleteNodePoolUpgradeMethod) == null) { + ClusterManagerGrpc.getCompleteNodePoolUpgradeMethod = getCompleteNodePoolUpgradeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CompleteNodePoolUpgrade")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.CompleteNodePoolUpgradeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("CompleteNodePoolUpgrade")) + .build(); + } + } + } + return getCompleteNodePoolUpgradeMethod; + } + + private static volatile io.grpc.MethodDescriptor 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 getRollbackNodePoolUpgradeMethod() { + io.grpc.MethodDescriptor getRollbackNodePoolUpgradeMethod; + if ((getRollbackNodePoolUpgradeMethod = ClusterManagerGrpc.getRollbackNodePoolUpgradeMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getRollbackNodePoolUpgradeMethod = ClusterManagerGrpc.getRollbackNodePoolUpgradeMethod) == null) { + ClusterManagerGrpc.getRollbackNodePoolUpgradeMethod = getRollbackNodePoolUpgradeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(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 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 getSetNodePoolManagementMethod() { + io.grpc.MethodDescriptor getSetNodePoolManagementMethod; + if ((getSetNodePoolManagementMethod = ClusterManagerGrpc.getSetNodePoolManagementMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetNodePoolManagementMethod = ClusterManagerGrpc.getSetNodePoolManagementMethod) == null) { + ClusterManagerGrpc.getSetNodePoolManagementMethod = getSetNodePoolManagementMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(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 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 getSetLabelsMethod() { + io.grpc.MethodDescriptor getSetLabelsMethod; + if ((getSetLabelsMethod = ClusterManagerGrpc.getSetLabelsMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetLabelsMethod = ClusterManagerGrpc.getSetLabelsMethod) == null) { + ClusterManagerGrpc.getSetLabelsMethod = getSetLabelsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(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 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 getSetLegacyAbacMethod() { + io.grpc.MethodDescriptor getSetLegacyAbacMethod; + if ((getSetLegacyAbacMethod = ClusterManagerGrpc.getSetLegacyAbacMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetLegacyAbacMethod = ClusterManagerGrpc.getSetLegacyAbacMethod) == null) { + ClusterManagerGrpc.getSetLegacyAbacMethod = getSetLegacyAbacMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(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 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 getStartIPRotationMethod() { + io.grpc.MethodDescriptor getStartIPRotationMethod; + if ((getStartIPRotationMethod = ClusterManagerGrpc.getStartIPRotationMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getStartIPRotationMethod = ClusterManagerGrpc.getStartIPRotationMethod) == null) { + ClusterManagerGrpc.getStartIPRotationMethod = getStartIPRotationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(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 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 getCompleteIPRotationMethod() { + io.grpc.MethodDescriptor getCompleteIPRotationMethod; + if ((getCompleteIPRotationMethod = ClusterManagerGrpc.getCompleteIPRotationMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getCompleteIPRotationMethod = ClusterManagerGrpc.getCompleteIPRotationMethod) == null) { + ClusterManagerGrpc.getCompleteIPRotationMethod = getCompleteIPRotationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(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 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 getSetNodePoolSizeMethod() { + io.grpc.MethodDescriptor getSetNodePoolSizeMethod; + if ((getSetNodePoolSizeMethod = ClusterManagerGrpc.getSetNodePoolSizeMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetNodePoolSizeMethod = ClusterManagerGrpc.getSetNodePoolSizeMethod) == null) { + ClusterManagerGrpc.getSetNodePoolSizeMethod = getSetNodePoolSizeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(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 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 getSetNetworkPolicyMethod() { + io.grpc.MethodDescriptor getSetNetworkPolicyMethod; + if ((getSetNetworkPolicyMethod = ClusterManagerGrpc.getSetNetworkPolicyMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetNetworkPolicyMethod = ClusterManagerGrpc.getSetNetworkPolicyMethod) == null) { + ClusterManagerGrpc.getSetNetworkPolicyMethod = getSetNetworkPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(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 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 getSetMaintenancePolicyMethod() { + io.grpc.MethodDescriptor getSetMaintenancePolicyMethod; + if ((getSetMaintenancePolicyMethod = ClusterManagerGrpc.getSetMaintenancePolicyMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getSetMaintenancePolicyMethod = ClusterManagerGrpc.getSetMaintenancePolicyMethod) == null) { + ClusterManagerGrpc.getSetMaintenancePolicyMethod = getSetMaintenancePolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(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 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 getListUsableSubnetworksMethod() { + io.grpc.MethodDescriptor getListUsableSubnetworksMethod; + if ((getListUsableSubnetworksMethod = ClusterManagerGrpc.getListUsableSubnetworksMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getListUsableSubnetworksMethod = ClusterManagerGrpc.getListUsableSubnetworksMethod) == null) { + ClusterManagerGrpc.getListUsableSubnetworksMethod = getListUsableSubnetworksMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(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 getCheckAutopilotCompatibilityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CheckAutopilotCompatibility", + requestType = com.google.container.v1beta1.CheckAutopilotCompatibilityRequest.class, + responseType = com.google.container.v1beta1.CheckAutopilotCompatibilityResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCheckAutopilotCompatibilityMethod() { + io.grpc.MethodDescriptor getCheckAutopilotCompatibilityMethod; + if ((getCheckAutopilotCompatibilityMethod = ClusterManagerGrpc.getCheckAutopilotCompatibilityMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getCheckAutopilotCompatibilityMethod = ClusterManagerGrpc.getCheckAutopilotCompatibilityMethod) == null) { + ClusterManagerGrpc.getCheckAutopilotCompatibilityMethod = getCheckAutopilotCompatibilityMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CheckAutopilotCompatibility")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.CheckAutopilotCompatibilityRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.container.v1beta1.CheckAutopilotCompatibilityResponse.getDefaultInstance())) + .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("CheckAutopilotCompatibility")) + .build(); + } + } + } + return getCheckAutopilotCompatibilityMethod; + } + + private static volatile io.grpc.MethodDescriptor 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 getListLocationsMethod() { + io.grpc.MethodDescriptor getListLocationsMethod; + if ((getListLocationsMethod = ClusterManagerGrpc.getListLocationsMethod) == null) { + synchronized (ClusterManagerGrpc.class) { + if ((getListLocationsMethod = ClusterManagerGrpc.getListLocationsMethod) == null) { + ClusterManagerGrpc.getListLocationsMethod = getListLocationsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(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 interface AsyncService { + + /** + *
+     * Lists all clusters owned by a project in either the specified zone or all
+     * zones.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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 + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default void listOperations(com.google.container.v1beta1.ListOperationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListOperationsMethod(), responseObserver); + } + + /** + *
+     * Gets the specified operation.
+     * 
+ */ + default void getOperation(com.google.container.v1beta1.GetOperationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetOperationMethod(), responseObserver); + } + + /** + *
+     * Cancels the specified operation.
+     * 
+ */ + default 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.
+     * 
+ */ + default void getServerConfig(com.google.container.v1beta1.GetServerConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetServerConfigMethod(), responseObserver); + } + + /** + *
+     * Gets the public component of the cluster signing keys in
+     * JSON Web Key format.
+     * 
+ */ + default void getJSONWebKeys(com.google.container.v1beta1.GetJSONWebKeysRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetJSONWebKeysMethod(), responseObserver); + } + + /** + *
+     * Lists the node pools for a cluster.
+     * 
+ */ + default void listNodePools(com.google.container.v1beta1.ListNodePoolsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNodePoolsMethod(), responseObserver); + } + + /** + *
+     * Retrieves the requested node pool.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default void deleteNodePool(com.google.container.v1beta1.DeleteNodePoolRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteNodePoolMethod(), responseObserver); + } + + /** + *
+     * CompleteNodePoolUpgrade will signal an on-going node pool upgrade to
+     * complete.
+     * 
+ */ + default void completeNodePoolUpgrade(com.google.container.v1beta1.CompleteNodePoolUpgradeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCompleteNodePoolUpgradeMethod(), responseObserver); + } + + /** + *
+     * Rolls back a previously Aborted or Failed NodePool upgrade.
+     * This makes no changes if the last upgrade successfully completed.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default void setLegacyAbac(com.google.container.v1beta1.SetLegacyAbacRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetLegacyAbacMethod(), responseObserver); + } + + /** + *
+     * Starts master IP rotation.
+     * 
+ */ + default void startIPRotation(com.google.container.v1beta1.StartIPRotationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartIPRotationMethod(), responseObserver); + } + + /** + *
+     * Completes master IP rotation.
+     * 
+ */ + default void completeIPRotation(com.google.container.v1beta1.CompleteIPRotationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCompleteIPRotationMethod(), responseObserver); + } + + /** + *
+     * SetNodePoolSizeRequest sets the size of a node pool. The new size will be
+     * used for all replicas, including future replicas created by modifying
+     * [NodePool.locations][google.container.v1beta1.NodePool.locations].
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default void listUsableSubnetworks(com.google.container.v1beta1.ListUsableSubnetworksRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListUsableSubnetworksMethod(), responseObserver); + } + + /** + *
+     * Checks the cluster compatibility with Autopilot mode, and returns a list of
+     * compatibility issues.
+     * 
+ */ + default void checkAutopilotCompatibility(com.google.container.v1beta1.CheckAutopilotCompatibilityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCheckAutopilotCompatibilityMethod(), responseObserver); + } + + /** + *
+     * Fetches locations that offer Google Kubernetes Engine.
+     * 
+ */ + default void listLocations(com.google.container.v1beta1.ListLocationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListLocationsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service ClusterManager. + *
+   * Google Kubernetes Engine Cluster Manager v1beta1
+   * 
+ */ + public static abstract class ClusterManagerImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return ClusterManagerGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service ClusterManager. + *
+   * 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); + } + + /** + *
+     * Gets the public component of the cluster signing keys in
+     * JSON Web Key format.
+     * 
+ */ + 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); + } + + /** + *
+     * 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); + } + + /** + *
+     * 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); + } + + /** + *
+     * CompleteNodePoolUpgrade will signal an on-going node pool upgrade to
+     * complete.
+     * 
+ */ + public void completeNodePoolUpgrade(com.google.container.v1beta1.CompleteNodePoolUpgradeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCompleteNodePoolUpgradeMethod(), 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); + } + + /** + *
+     * SetNodePoolSizeRequest sets the size of a node pool. The new size will be
+     * used for all replicas, including future replicas created by modifying
+     * [NodePool.locations][google.container.v1beta1.NodePool.locations].
+     * 
+ */ + 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); + } + + /** + *
+     * Checks the cluster compatibility with Autopilot mode, and returns a list of
+     * compatibility issues.
+     * 
+ */ + public void checkAutopilotCompatibility(com.google.container.v1beta1.CheckAutopilotCompatibilityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCheckAutopilotCompatibilityMethod(), 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); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service ClusterManager. + *
+   * 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); + } + + /** + *
+     * Gets the public component of the cluster signing keys in
+     * JSON Web Key format.
+     * 
+ */ + public com.google.container.v1beta1.GetJSONWebKeysResponse getJSONWebKeys(com.google.container.v1beta1.GetJSONWebKeysRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetJSONWebKeysMethod(), 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); + } + + /** + *
+     * 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); + } + + /** + *
+     * CompleteNodePoolUpgrade will signal an on-going node pool upgrade to
+     * complete.
+     * 
+ */ + public com.google.protobuf.Empty completeNodePoolUpgrade(com.google.container.v1beta1.CompleteNodePoolUpgradeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCompleteNodePoolUpgradeMethod(), 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); + } + + /** + *
+     * SetNodePoolSizeRequest sets the size of a node pool. The new size will be
+     * used for all replicas, including future replicas created by modifying
+     * [NodePool.locations][google.container.v1beta1.NodePool.locations].
+     * 
+ */ + 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); + } + + /** + *
+     * Checks the cluster compatibility with Autopilot mode, and returns a list of
+     * compatibility issues.
+     * 
+ */ + public com.google.container.v1beta1.CheckAutopilotCompatibilityResponse checkAutopilotCompatibility(com.google.container.v1beta1.CheckAutopilotCompatibilityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCheckAutopilotCompatibilityMethod(), 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); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service ClusterManager. + *
+   * 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 getServerConfig( + com.google.container.v1beta1.GetServerConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetServerConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets the public component of the cluster signing keys in
+     * JSON Web Key format.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getJSONWebKeys( + com.google.container.v1beta1.GetJSONWebKeysRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetJSONWebKeysMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists the node pools for a cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listNodePools( + com.google.container.v1beta1.ListNodePoolsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNodePoolsMethod(), 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 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 deleteNodePool( + com.google.container.v1beta1.DeleteNodePoolRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteNodePoolMethod(), getCallOptions()), request); + } + + /** + *
+     * CompleteNodePoolUpgrade will signal an on-going node pool upgrade to
+     * complete.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture completeNodePoolUpgrade( + com.google.container.v1beta1.CompleteNodePoolUpgradeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCompleteNodePoolUpgradeMethod(), 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 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 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 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 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 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 completeIPRotation( + com.google.container.v1beta1.CompleteIPRotationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCompleteIPRotationMethod(), getCallOptions()), request); + } + + /** + *
+     * SetNodePoolSizeRequest sets the size of a node pool. The new size will be
+     * used for all replicas, including future replicas created by modifying
+     * [NodePool.locations][google.container.v1beta1.NodePool.locations].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture 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 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 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 listUsableSubnetworks( + com.google.container.v1beta1.ListUsableSubnetworksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListUsableSubnetworksMethod(), getCallOptions()), request); + } + + /** + *
+     * Checks the cluster compatibility with Autopilot mode, and returns a list of
+     * compatibility issues.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture checkAutopilotCompatibility( + com.google.container.v1beta1.CheckAutopilotCompatibilityRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCheckAutopilotCompatibilityMethod(), getCallOptions()), request); + } + + /** + *
+     * Fetches locations that offer Google Kubernetes Engine.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture 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_GET_JSONWEB_KEYS = 17; + private static final int METHODID_LIST_NODE_POOLS = 18; + private static final int METHODID_GET_NODE_POOL = 19; + private static final int METHODID_CREATE_NODE_POOL = 20; + private static final int METHODID_DELETE_NODE_POOL = 21; + private static final int METHODID_COMPLETE_NODE_POOL_UPGRADE = 22; + private static final int METHODID_ROLLBACK_NODE_POOL_UPGRADE = 23; + private static final int METHODID_SET_NODE_POOL_MANAGEMENT = 24; + private static final int METHODID_SET_LABELS = 25; + private static final int METHODID_SET_LEGACY_ABAC = 26; + private static final int METHODID_START_IPROTATION = 27; + private static final int METHODID_COMPLETE_IPROTATION = 28; + private static final int METHODID_SET_NODE_POOL_SIZE = 29; + private static final int METHODID_SET_NETWORK_POLICY = 30; + private static final int METHODID_SET_MAINTENANCE_POLICY = 31; + private static final int METHODID_LIST_USABLE_SUBNETWORKS = 32; + private static final int METHODID_CHECK_AUTOPILOT_COMPATIBILITY = 33; + private static final int METHODID_LIST_LOCATIONS = 34; + + 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService 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_GET_JSONWEB_KEYS: + serviceImpl.getJSONWebKeys((com.google.container.v1beta1.GetJSONWebKeysRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_NODE_POOLS: + serviceImpl.listNodePools((com.google.container.v1beta1.ListNodePoolsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_NODE_POOL: + serviceImpl.getNodePool((com.google.container.v1beta1.GetNodePoolRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_NODE_POOL: + serviceImpl.createNodePool((com.google.container.v1beta1.CreateNodePoolRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_NODE_POOL: + serviceImpl.deleteNodePool((com.google.container.v1beta1.DeleteNodePoolRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_COMPLETE_NODE_POOL_UPGRADE: + serviceImpl.completeNodePoolUpgrade((com.google.container.v1beta1.CompleteNodePoolUpgradeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ROLLBACK_NODE_POOL_UPGRADE: + serviceImpl.rollbackNodePoolUpgrade((com.google.container.v1beta1.RollbackNodePoolUpgradeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_NODE_POOL_MANAGEMENT: + serviceImpl.setNodePoolManagement((com.google.container.v1beta1.SetNodePoolManagementRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_LABELS: + serviceImpl.setLabels((com.google.container.v1beta1.SetLabelsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_LEGACY_ABAC: + serviceImpl.setLegacyAbac((com.google.container.v1beta1.SetLegacyAbacRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_START_IPROTATION: + serviceImpl.startIPRotation((com.google.container.v1beta1.StartIPRotationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_COMPLETE_IPROTATION: + serviceImpl.completeIPRotation((com.google.container.v1beta1.CompleteIPRotationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_NODE_POOL_SIZE: + serviceImpl.setNodePoolSize((com.google.container.v1beta1.SetNodePoolSizeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_NETWORK_POLICY: + serviceImpl.setNetworkPolicy((com.google.container.v1beta1.SetNetworkPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_MAINTENANCE_POLICY: + serviceImpl.setMaintenancePolicy((com.google.container.v1beta1.SetMaintenancePolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_USABLE_SUBNETWORKS: + serviceImpl.listUsableSubnetworks((com.google.container.v1beta1.ListUsableSubnetworksRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CHECK_AUTOPILOT_COMPATIBILITY: + serviceImpl.checkAutopilotCompatibility((com.google.container.v1beta1.CheckAutopilotCompatibilityRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_LOCATIONS: + serviceImpl.listLocations((com.google.container.v1beta1.ListLocationsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + 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>( + service, METHODID_LIST_CLUSTERS))) + .addMethod( + getGetClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.GetClusterRequest, + com.google.container.v1beta1.Cluster>( + service, METHODID_GET_CLUSTER))) + .addMethod( + getCreateClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.CreateClusterRequest, + com.google.container.v1beta1.Operation>( + service, METHODID_CREATE_CLUSTER))) + .addMethod( + getUpdateClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.UpdateClusterRequest, + com.google.container.v1beta1.Operation>( + service, METHODID_UPDATE_CLUSTER))) + .addMethod( + getUpdateNodePoolMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.UpdateNodePoolRequest, + com.google.container.v1beta1.Operation>( + service, METHODID_UPDATE_NODE_POOL))) + .addMethod( + getSetNodePoolAutoscalingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetNodePoolAutoscalingRequest, + com.google.container.v1beta1.Operation>( + service, METHODID_SET_NODE_POOL_AUTOSCALING))) + .addMethod( + getSetLoggingServiceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetLoggingServiceRequest, + com.google.container.v1beta1.Operation>( + service, METHODID_SET_LOGGING_SERVICE))) + .addMethod( + getSetMonitoringServiceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetMonitoringServiceRequest, + com.google.container.v1beta1.Operation>( + service, METHODID_SET_MONITORING_SERVICE))) + .addMethod( + getSetAddonsConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetAddonsConfigRequest, + com.google.container.v1beta1.Operation>( + service, METHODID_SET_ADDONS_CONFIG))) + .addMethod( + getSetLocationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetLocationsRequest, + com.google.container.v1beta1.Operation>( + service, METHODID_SET_LOCATIONS))) + .addMethod( + getUpdateMasterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.UpdateMasterRequest, + com.google.container.v1beta1.Operation>( + service, METHODID_UPDATE_MASTER))) + .addMethod( + getSetMasterAuthMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetMasterAuthRequest, + com.google.container.v1beta1.Operation>( + service, METHODID_SET_MASTER_AUTH))) + .addMethod( + getDeleteClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.DeleteClusterRequest, + com.google.container.v1beta1.Operation>( + service, METHODID_DELETE_CLUSTER))) + .addMethod( + getListOperationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.ListOperationsRequest, + com.google.container.v1beta1.ListOperationsResponse>( + service, METHODID_LIST_OPERATIONS))) + .addMethod( + getGetOperationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.GetOperationRequest, + com.google.container.v1beta1.Operation>( + service, METHODID_GET_OPERATION))) + .addMethod( + getCancelOperationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.CancelOperationRequest, + com.google.protobuf.Empty>( + service, METHODID_CANCEL_OPERATION))) + .addMethod( + getGetServerConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.GetServerConfigRequest, + com.google.container.v1beta1.ServerConfig>( + service, METHODID_GET_SERVER_CONFIG))) + .addMethod( + getGetJSONWebKeysMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.GetJSONWebKeysRequest, + com.google.container.v1beta1.GetJSONWebKeysResponse>( + service, METHODID_GET_JSONWEB_KEYS))) + .addMethod( + getListNodePoolsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.ListNodePoolsRequest, + com.google.container.v1beta1.ListNodePoolsResponse>( + service, METHODID_LIST_NODE_POOLS))) + .addMethod( + getGetNodePoolMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.GetNodePoolRequest, + com.google.container.v1beta1.NodePool>( + service, METHODID_GET_NODE_POOL))) + .addMethod( + getCreateNodePoolMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.CreateNodePoolRequest, + com.google.container.v1beta1.Operation>( + service, METHODID_CREATE_NODE_POOL))) + .addMethod( + getDeleteNodePoolMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.DeleteNodePoolRequest, + com.google.container.v1beta1.Operation>( + service, METHODID_DELETE_NODE_POOL))) + .addMethod( + getCompleteNodePoolUpgradeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.CompleteNodePoolUpgradeRequest, + com.google.protobuf.Empty>( + service, METHODID_COMPLETE_NODE_POOL_UPGRADE))) + .addMethod( + getRollbackNodePoolUpgradeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.RollbackNodePoolUpgradeRequest, + com.google.container.v1beta1.Operation>( + service, METHODID_ROLLBACK_NODE_POOL_UPGRADE))) + .addMethod( + getSetNodePoolManagementMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetNodePoolManagementRequest, + com.google.container.v1beta1.Operation>( + service, METHODID_SET_NODE_POOL_MANAGEMENT))) + .addMethod( + getSetLabelsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetLabelsRequest, + com.google.container.v1beta1.Operation>( + service, METHODID_SET_LABELS))) + .addMethod( + getSetLegacyAbacMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetLegacyAbacRequest, + com.google.container.v1beta1.Operation>( + service, METHODID_SET_LEGACY_ABAC))) + .addMethod( + getStartIPRotationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.StartIPRotationRequest, + com.google.container.v1beta1.Operation>( + service, METHODID_START_IPROTATION))) + .addMethod( + getCompleteIPRotationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.CompleteIPRotationRequest, + com.google.container.v1beta1.Operation>( + service, METHODID_COMPLETE_IPROTATION))) + .addMethod( + getSetNodePoolSizeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetNodePoolSizeRequest, + com.google.container.v1beta1.Operation>( + service, METHODID_SET_NODE_POOL_SIZE))) + .addMethod( + getSetNetworkPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetNetworkPolicyRequest, + com.google.container.v1beta1.Operation>( + service, METHODID_SET_NETWORK_POLICY))) + .addMethod( + getSetMaintenancePolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.SetMaintenancePolicyRequest, + com.google.container.v1beta1.Operation>( + service, METHODID_SET_MAINTENANCE_POLICY))) + .addMethod( + getListUsableSubnetworksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.ListUsableSubnetworksRequest, + com.google.container.v1beta1.ListUsableSubnetworksResponse>( + service, METHODID_LIST_USABLE_SUBNETWORKS))) + .addMethod( + getCheckAutopilotCompatibilityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.CheckAutopilotCompatibilityRequest, + com.google.container.v1beta1.CheckAutopilotCompatibilityResponse>( + service, METHODID_CHECK_AUTOPILOT_COMPATIBILITY))) + .addMethod( + getListLocationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.container.v1beta1.ListLocationsRequest, + com.google.container.v1beta1.ListLocationsResponse>( + service, METHODID_LIST_LOCATIONS))) + .build(); + } + + private static abstract class ClusterManagerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ClusterManagerBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ClusterManager"); + } + } + + private static final class ClusterManagerFileDescriptorSupplier + extends ClusterManagerBaseDescriptorSupplier { + ClusterManagerFileDescriptorSupplier() {} + } + + private static final class ClusterManagerMethodDescriptorSupplier + extends ClusterManagerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + ClusterManagerMethodDescriptorSupplier(java.lang.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(getGetJSONWebKeysMethod()) + .addMethod(getListNodePoolsMethod()) + .addMethod(getGetNodePoolMethod()) + .addMethod(getCreateNodePoolMethod()) + .addMethod(getDeleteNodePoolMethod()) + .addMethod(getCompleteNodePoolUpgradeMethod()) + .addMethod(getRollbackNodePoolUpgradeMethod()) + .addMethod(getSetNodePoolManagementMethod()) + .addMethod(getSetLabelsMethod()) + .addMethod(getSetLegacyAbacMethod()) + .addMethod(getStartIPRotationMethod()) + .addMethod(getCompleteIPRotationMethod()) + .addMethod(getSetNodePoolSizeMethod()) + .addMethod(getSetNetworkPolicyMethod()) + .addMethod(getSetMaintenancePolicyMethod()) + .addMethod(getListUsableSubnetworksMethod()) + .addMethod(getCheckAutopilotCompatibilityMethod()) + .addMethod(getListLocationsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfig.java new file mode 100644 index 000000000000..1373f0b93eda --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfig.java @@ -0,0 +1,1411 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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_ = ""; + gpuPartitionSize_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AcceleratorConfig(); + } + + 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); + } + + private int bitField0_; + public static final int ACCELERATOR_COUNT_FIELD_NUMBER = 1; + private long acceleratorCount_ = 0L; + /** + *
+   * 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; + @SuppressWarnings("serial") + 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; + } + } + + public static final int GPU_PARTITION_SIZE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object gpuPartitionSize_ = ""; + /** + *
+   * Size of partitions to create on the GPU. Valid values are described in the
+   * NVIDIA [mig user
+   * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+   * 
+ * + * string gpu_partition_size = 3; + * @return The gpuPartitionSize. + */ + @java.lang.Override + public java.lang.String getGpuPartitionSize() { + java.lang.Object ref = gpuPartitionSize_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gpuPartitionSize_ = s; + return s; + } + } + /** + *
+   * Size of partitions to create on the GPU. Valid values are described in the
+   * NVIDIA [mig user
+   * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+   * 
+ * + * string gpu_partition_size = 3; + * @return The bytes for gpuPartitionSize. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getGpuPartitionSizeBytes() { + java.lang.Object ref = gpuPartitionSize_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + gpuPartitionSize_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAX_TIME_SHARED_CLIENTS_PER_GPU_FIELD_NUMBER = 4; + private long maxTimeSharedClientsPerGpu_ = 0L; + /** + *
+   * The number of time-shared GPU resources to expose for each physical GPU.
+   * 
+ * + * int64 max_time_shared_clients_per_gpu = 4 [deprecated = true]; + * @deprecated google.container.v1beta1.AcceleratorConfig.max_time_shared_clients_per_gpu is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4648 + * @return The maxTimeSharedClientsPerGpu. + */ + @java.lang.Override + @java.lang.Deprecated public long getMaxTimeSharedClientsPerGpu() { + return maxTimeSharedClientsPerGpu_; + } + + public static final int GPU_SHARING_CONFIG_FIELD_NUMBER = 5; + private com.google.container.v1beta1.GPUSharingConfig gpuSharingConfig_; + /** + *
+   * The configuration for GPU sharing options.
+   * 
+ * + * optional .google.container.v1beta1.GPUSharingConfig gpu_sharing_config = 5; + * @return Whether the gpuSharingConfig field is set. + */ + @java.lang.Override + public boolean hasGpuSharingConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * The configuration for GPU sharing options.
+   * 
+ * + * optional .google.container.v1beta1.GPUSharingConfig gpu_sharing_config = 5; + * @return The gpuSharingConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.GPUSharingConfig getGpuSharingConfig() { + return gpuSharingConfig_ == null ? com.google.container.v1beta1.GPUSharingConfig.getDefaultInstance() : gpuSharingConfig_; + } + /** + *
+   * The configuration for GPU sharing options.
+   * 
+ * + * optional .google.container.v1beta1.GPUSharingConfig gpu_sharing_config = 5; + */ + @java.lang.Override + public com.google.container.v1beta1.GPUSharingConfigOrBuilder getGpuSharingConfigOrBuilder() { + return gpuSharingConfig_ == null ? com.google.container.v1beta1.GPUSharingConfig.getDefaultInstance() : gpuSharingConfig_; + } + + public static final int GPU_DRIVER_INSTALLATION_CONFIG_FIELD_NUMBER = 6; + private com.google.container.v1beta1.GPUDriverInstallationConfig gpuDriverInstallationConfig_; + /** + *
+   * The configuration for auto installation of GPU driver.
+   * 
+ * + * optional .google.container.v1beta1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; + * @return Whether the gpuDriverInstallationConfig field is set. + */ + @java.lang.Override + public boolean hasGpuDriverInstallationConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * The configuration for auto installation of GPU driver.
+   * 
+ * + * optional .google.container.v1beta1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; + * @return The gpuDriverInstallationConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.GPUDriverInstallationConfig getGpuDriverInstallationConfig() { + return gpuDriverInstallationConfig_ == null ? com.google.container.v1beta1.GPUDriverInstallationConfig.getDefaultInstance() : gpuDriverInstallationConfig_; + } + /** + *
+   * The configuration for auto installation of GPU driver.
+   * 
+ * + * optional .google.container.v1beta1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; + */ + @java.lang.Override + public com.google.container.v1beta1.GPUDriverInstallationConfigOrBuilder getGpuDriverInstallationConfigOrBuilder() { + return gpuDriverInstallationConfig_ == null ? com.google.container.v1beta1.GPUDriverInstallationConfig.getDefaultInstance() : gpuDriverInstallationConfig_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(acceleratorType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, acceleratorType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gpuPartitionSize_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, gpuPartitionSize_); + } + if (maxTimeSharedClientsPerGpu_ != 0L) { + output.writeInt64(4, maxTimeSharedClientsPerGpu_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getGpuSharingConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getGpuDriverInstallationConfig()); + } + getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(acceleratorType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, acceleratorType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gpuPartitionSize_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, gpuPartitionSize_); + } + if (maxTimeSharedClientsPerGpu_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, maxTimeSharedClientsPerGpu_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getGpuSharingConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getGpuDriverInstallationConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getGpuPartitionSize() + .equals(other.getGpuPartitionSize())) return false; + if (getMaxTimeSharedClientsPerGpu() + != other.getMaxTimeSharedClientsPerGpu()) return false; + if (hasGpuSharingConfig() != other.hasGpuSharingConfig()) return false; + if (hasGpuSharingConfig()) { + if (!getGpuSharingConfig() + .equals(other.getGpuSharingConfig())) return false; + } + if (hasGpuDriverInstallationConfig() != other.hasGpuDriverInstallationConfig()) return false; + if (hasGpuDriverInstallationConfig()) { + if (!getGpuDriverInstallationConfig() + .equals(other.getGpuDriverInstallationConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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 = (37 * hash) + GPU_PARTITION_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getGpuPartitionSize().hashCode(); + hash = (37 * hash) + MAX_TIME_SHARED_CLIENTS_PER_GPU_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxTimeSharedClientsPerGpu()); + if (hasGpuSharingConfig()) { + hash = (37 * hash) + GPU_SHARING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGpuSharingConfig().hashCode(); + } + if (hasGpuDriverInstallationConfig()) { + hash = (37 * hash) + GPU_DRIVER_INSTALLATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGpuDriverInstallationConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().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) { + getGpuSharingConfigFieldBuilder(); + getGpuDriverInstallationConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + acceleratorCount_ = 0L; + acceleratorType_ = ""; + gpuPartitionSize_ = ""; + maxTimeSharedClientsPerGpu_ = 0L; + gpuSharingConfig_ = null; + if (gpuSharingConfigBuilder_ != null) { + gpuSharingConfigBuilder_.dispose(); + gpuSharingConfigBuilder_ = null; + } + gpuDriverInstallationConfig_ = null; + if (gpuDriverInstallationConfigBuilder_ != null) { + gpuDriverInstallationConfigBuilder_.dispose(); + gpuDriverInstallationConfigBuilder_ = null; + } + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.AcceleratorConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.acceleratorCount_ = acceleratorCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.acceleratorType_ = acceleratorType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.gpuPartitionSize_ = gpuPartitionSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.maxTimeSharedClientsPerGpu_ = maxTimeSharedClientsPerGpu_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.gpuSharingConfig_ = gpuSharingConfigBuilder_ == null + ? gpuSharingConfig_ + : gpuSharingConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.gpuDriverInstallationConfig_ = gpuDriverInstallationConfigBuilder_ == null + ? gpuDriverInstallationConfig_ + : gpuDriverInstallationConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @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_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getGpuPartitionSize().isEmpty()) { + gpuPartitionSize_ = other.gpuPartitionSize_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getMaxTimeSharedClientsPerGpu() != 0L) { + setMaxTimeSharedClientsPerGpu(other.getMaxTimeSharedClientsPerGpu()); + } + if (other.hasGpuSharingConfig()) { + mergeGpuSharingConfig(other.getGpuSharingConfig()); + } + if (other.hasGpuDriverInstallationConfig()) { + mergeGpuDriverInstallationConfig(other.getGpuDriverInstallationConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + acceleratorCount_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + acceleratorType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + gpuPartitionSize_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + maxTimeSharedClientsPerGpu_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + input.readMessage( + getGpuSharingConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getGpuDriverInstallationConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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() { + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000002; + 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(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object gpuPartitionSize_ = ""; + /** + *
+     * Size of partitions to create on the GPU. Valid values are described in the
+     * NVIDIA [mig user
+     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+     * 
+ * + * string gpu_partition_size = 3; + * @return The gpuPartitionSize. + */ + public java.lang.String getGpuPartitionSize() { + java.lang.Object ref = gpuPartitionSize_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gpuPartitionSize_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Size of partitions to create on the GPU. Valid values are described in the
+     * NVIDIA [mig user
+     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+     * 
+ * + * string gpu_partition_size = 3; + * @return The bytes for gpuPartitionSize. + */ + public com.google.protobuf.ByteString + getGpuPartitionSizeBytes() { + java.lang.Object ref = gpuPartitionSize_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + gpuPartitionSize_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Size of partitions to create on the GPU. Valid values are described in the
+     * NVIDIA [mig user
+     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+     * 
+ * + * string gpu_partition_size = 3; + * @param value The gpuPartitionSize to set. + * @return This builder for chaining. + */ + public Builder setGpuPartitionSize( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + gpuPartitionSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Size of partitions to create on the GPU. Valid values are described in the
+     * NVIDIA [mig user
+     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+     * 
+ * + * string gpu_partition_size = 3; + * @return This builder for chaining. + */ + public Builder clearGpuPartitionSize() { + gpuPartitionSize_ = getDefaultInstance().getGpuPartitionSize(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Size of partitions to create on the GPU. Valid values are described in the
+     * NVIDIA [mig user
+     * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+     * 
+ * + * string gpu_partition_size = 3; + * @param value The bytes for gpuPartitionSize to set. + * @return This builder for chaining. + */ + public Builder setGpuPartitionSizeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + gpuPartitionSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private long maxTimeSharedClientsPerGpu_ ; + /** + *
+     * The number of time-shared GPU resources to expose for each physical GPU.
+     * 
+ * + * int64 max_time_shared_clients_per_gpu = 4 [deprecated = true]; + * @deprecated google.container.v1beta1.AcceleratorConfig.max_time_shared_clients_per_gpu is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4648 + * @return The maxTimeSharedClientsPerGpu. + */ + @java.lang.Override + @java.lang.Deprecated public long getMaxTimeSharedClientsPerGpu() { + return maxTimeSharedClientsPerGpu_; + } + /** + *
+     * The number of time-shared GPU resources to expose for each physical GPU.
+     * 
+ * + * int64 max_time_shared_clients_per_gpu = 4 [deprecated = true]; + * @deprecated google.container.v1beta1.AcceleratorConfig.max_time_shared_clients_per_gpu is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4648 + * @param value The maxTimeSharedClientsPerGpu to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setMaxTimeSharedClientsPerGpu(long value) { + + maxTimeSharedClientsPerGpu_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The number of time-shared GPU resources to expose for each physical GPU.
+     * 
+ * + * int64 max_time_shared_clients_per_gpu = 4 [deprecated = true]; + * @deprecated google.container.v1beta1.AcceleratorConfig.max_time_shared_clients_per_gpu is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4648 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearMaxTimeSharedClientsPerGpu() { + bitField0_ = (bitField0_ & ~0x00000008); + maxTimeSharedClientsPerGpu_ = 0L; + onChanged(); + return this; + } + + private com.google.container.v1beta1.GPUSharingConfig gpuSharingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GPUSharingConfig, com.google.container.v1beta1.GPUSharingConfig.Builder, com.google.container.v1beta1.GPUSharingConfigOrBuilder> gpuSharingConfigBuilder_; + /** + *
+     * The configuration for GPU sharing options.
+     * 
+ * + * optional .google.container.v1beta1.GPUSharingConfig gpu_sharing_config = 5; + * @return Whether the gpuSharingConfig field is set. + */ + public boolean hasGpuSharingConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+     * The configuration for GPU sharing options.
+     * 
+ * + * optional .google.container.v1beta1.GPUSharingConfig gpu_sharing_config = 5; + * @return The gpuSharingConfig. + */ + public com.google.container.v1beta1.GPUSharingConfig getGpuSharingConfig() { + if (gpuSharingConfigBuilder_ == null) { + return gpuSharingConfig_ == null ? com.google.container.v1beta1.GPUSharingConfig.getDefaultInstance() : gpuSharingConfig_; + } else { + return gpuSharingConfigBuilder_.getMessage(); + } + } + /** + *
+     * The configuration for GPU sharing options.
+     * 
+ * + * optional .google.container.v1beta1.GPUSharingConfig gpu_sharing_config = 5; + */ + public Builder setGpuSharingConfig(com.google.container.v1beta1.GPUSharingConfig value) { + if (gpuSharingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gpuSharingConfig_ = value; + } else { + gpuSharingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * The configuration for GPU sharing options.
+     * 
+ * + * optional .google.container.v1beta1.GPUSharingConfig gpu_sharing_config = 5; + */ + public Builder setGpuSharingConfig( + com.google.container.v1beta1.GPUSharingConfig.Builder builderForValue) { + if (gpuSharingConfigBuilder_ == null) { + gpuSharingConfig_ = builderForValue.build(); + } else { + gpuSharingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * The configuration for GPU sharing options.
+     * 
+ * + * optional .google.container.v1beta1.GPUSharingConfig gpu_sharing_config = 5; + */ + public Builder mergeGpuSharingConfig(com.google.container.v1beta1.GPUSharingConfig value) { + if (gpuSharingConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + gpuSharingConfig_ != null && + gpuSharingConfig_ != com.google.container.v1beta1.GPUSharingConfig.getDefaultInstance()) { + getGpuSharingConfigBuilder().mergeFrom(value); + } else { + gpuSharingConfig_ = value; + } + } else { + gpuSharingConfigBuilder_.mergeFrom(value); + } + if (gpuSharingConfig_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + *
+     * The configuration for GPU sharing options.
+     * 
+ * + * optional .google.container.v1beta1.GPUSharingConfig gpu_sharing_config = 5; + */ + public Builder clearGpuSharingConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + gpuSharingConfig_ = null; + if (gpuSharingConfigBuilder_ != null) { + gpuSharingConfigBuilder_.dispose(); + gpuSharingConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The configuration for GPU sharing options.
+     * 
+ * + * optional .google.container.v1beta1.GPUSharingConfig gpu_sharing_config = 5; + */ + public com.google.container.v1beta1.GPUSharingConfig.Builder getGpuSharingConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getGpuSharingConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The configuration for GPU sharing options.
+     * 
+ * + * optional .google.container.v1beta1.GPUSharingConfig gpu_sharing_config = 5; + */ + public com.google.container.v1beta1.GPUSharingConfigOrBuilder getGpuSharingConfigOrBuilder() { + if (gpuSharingConfigBuilder_ != null) { + return gpuSharingConfigBuilder_.getMessageOrBuilder(); + } else { + return gpuSharingConfig_ == null ? + com.google.container.v1beta1.GPUSharingConfig.getDefaultInstance() : gpuSharingConfig_; + } + } + /** + *
+     * The configuration for GPU sharing options.
+     * 
+ * + * optional .google.container.v1beta1.GPUSharingConfig gpu_sharing_config = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GPUSharingConfig, com.google.container.v1beta1.GPUSharingConfig.Builder, com.google.container.v1beta1.GPUSharingConfigOrBuilder> + getGpuSharingConfigFieldBuilder() { + if (gpuSharingConfigBuilder_ == null) { + gpuSharingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GPUSharingConfig, com.google.container.v1beta1.GPUSharingConfig.Builder, com.google.container.v1beta1.GPUSharingConfigOrBuilder>( + getGpuSharingConfig(), + getParentForChildren(), + isClean()); + gpuSharingConfig_ = null; + } + return gpuSharingConfigBuilder_; + } + + private com.google.container.v1beta1.GPUDriverInstallationConfig gpuDriverInstallationConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GPUDriverInstallationConfig, com.google.container.v1beta1.GPUDriverInstallationConfig.Builder, com.google.container.v1beta1.GPUDriverInstallationConfigOrBuilder> gpuDriverInstallationConfigBuilder_; + /** + *
+     * The configuration for auto installation of GPU driver.
+     * 
+ * + * optional .google.container.v1beta1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; + * @return Whether the gpuDriverInstallationConfig field is set. + */ + public boolean hasGpuDriverInstallationConfig() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+     * The configuration for auto installation of GPU driver.
+     * 
+ * + * optional .google.container.v1beta1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; + * @return The gpuDriverInstallationConfig. + */ + public com.google.container.v1beta1.GPUDriverInstallationConfig getGpuDriverInstallationConfig() { + if (gpuDriverInstallationConfigBuilder_ == null) { + return gpuDriverInstallationConfig_ == null ? com.google.container.v1beta1.GPUDriverInstallationConfig.getDefaultInstance() : gpuDriverInstallationConfig_; + } else { + return gpuDriverInstallationConfigBuilder_.getMessage(); + } + } + /** + *
+     * The configuration for auto installation of GPU driver.
+     * 
+ * + * optional .google.container.v1beta1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; + */ + public Builder setGpuDriverInstallationConfig(com.google.container.v1beta1.GPUDriverInstallationConfig value) { + if (gpuDriverInstallationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gpuDriverInstallationConfig_ = value; + } else { + gpuDriverInstallationConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * The configuration for auto installation of GPU driver.
+     * 
+ * + * optional .google.container.v1beta1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; + */ + public Builder setGpuDriverInstallationConfig( + com.google.container.v1beta1.GPUDriverInstallationConfig.Builder builderForValue) { + if (gpuDriverInstallationConfigBuilder_ == null) { + gpuDriverInstallationConfig_ = builderForValue.build(); + } else { + gpuDriverInstallationConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * The configuration for auto installation of GPU driver.
+     * 
+ * + * optional .google.container.v1beta1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; + */ + public Builder mergeGpuDriverInstallationConfig(com.google.container.v1beta1.GPUDriverInstallationConfig value) { + if (gpuDriverInstallationConfigBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && + gpuDriverInstallationConfig_ != null && + gpuDriverInstallationConfig_ != com.google.container.v1beta1.GPUDriverInstallationConfig.getDefaultInstance()) { + getGpuDriverInstallationConfigBuilder().mergeFrom(value); + } else { + gpuDriverInstallationConfig_ = value; + } + } else { + gpuDriverInstallationConfigBuilder_.mergeFrom(value); + } + if (gpuDriverInstallationConfig_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + *
+     * The configuration for auto installation of GPU driver.
+     * 
+ * + * optional .google.container.v1beta1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; + */ + public Builder clearGpuDriverInstallationConfig() { + bitField0_ = (bitField0_ & ~0x00000020); + gpuDriverInstallationConfig_ = null; + if (gpuDriverInstallationConfigBuilder_ != null) { + gpuDriverInstallationConfigBuilder_.dispose(); + gpuDriverInstallationConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The configuration for auto installation of GPU driver.
+     * 
+ * + * optional .google.container.v1beta1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; + */ + public com.google.container.v1beta1.GPUDriverInstallationConfig.Builder getGpuDriverInstallationConfigBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getGpuDriverInstallationConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The configuration for auto installation of GPU driver.
+     * 
+ * + * optional .google.container.v1beta1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; + */ + public com.google.container.v1beta1.GPUDriverInstallationConfigOrBuilder getGpuDriverInstallationConfigOrBuilder() { + if (gpuDriverInstallationConfigBuilder_ != null) { + return gpuDriverInstallationConfigBuilder_.getMessageOrBuilder(); + } else { + return gpuDriverInstallationConfig_ == null ? + com.google.container.v1beta1.GPUDriverInstallationConfig.getDefaultInstance() : gpuDriverInstallationConfig_; + } + } + /** + *
+     * The configuration for auto installation of GPU driver.
+     * 
+ * + * optional .google.container.v1beta1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GPUDriverInstallationConfig, com.google.container.v1beta1.GPUDriverInstallationConfig.Builder, com.google.container.v1beta1.GPUDriverInstallationConfigOrBuilder> + getGpuDriverInstallationConfigFieldBuilder() { + if (gpuDriverInstallationConfigBuilder_ == null) { + gpuDriverInstallationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GPUDriverInstallationConfig, com.google.container.v1beta1.GPUDriverInstallationConfig.Builder, com.google.container.v1beta1.GPUDriverInstallationConfigOrBuilder>( + getGpuDriverInstallationConfig(), + getParentForChildren(), + isClean()); + gpuDriverInstallationConfig_ = null; + } + return gpuDriverInstallationConfigBuilder_; + } + @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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfigOrBuilder.java new file mode 100644 index 000000000000..18d5c81b8322 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfigOrBuilder.java @@ -0,0 +1,132 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + + /** + *
+   * Size of partitions to create on the GPU. Valid values are described in the
+   * NVIDIA [mig user
+   * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+   * 
+ * + * string gpu_partition_size = 3; + * @return The gpuPartitionSize. + */ + java.lang.String getGpuPartitionSize(); + /** + *
+   * Size of partitions to create on the GPU. Valid values are described in the
+   * NVIDIA [mig user
+   * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
+   * 
+ * + * string gpu_partition_size = 3; + * @return The bytes for gpuPartitionSize. + */ + com.google.protobuf.ByteString + getGpuPartitionSizeBytes(); + + /** + *
+   * The number of time-shared GPU resources to expose for each physical GPU.
+   * 
+ * + * int64 max_time_shared_clients_per_gpu = 4 [deprecated = true]; + * @deprecated google.container.v1beta1.AcceleratorConfig.max_time_shared_clients_per_gpu is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4648 + * @return The maxTimeSharedClientsPerGpu. + */ + @java.lang.Deprecated long getMaxTimeSharedClientsPerGpu(); + + /** + *
+   * The configuration for GPU sharing options.
+   * 
+ * + * optional .google.container.v1beta1.GPUSharingConfig gpu_sharing_config = 5; + * @return Whether the gpuSharingConfig field is set. + */ + boolean hasGpuSharingConfig(); + /** + *
+   * The configuration for GPU sharing options.
+   * 
+ * + * optional .google.container.v1beta1.GPUSharingConfig gpu_sharing_config = 5; + * @return The gpuSharingConfig. + */ + com.google.container.v1beta1.GPUSharingConfig getGpuSharingConfig(); + /** + *
+   * The configuration for GPU sharing options.
+   * 
+ * + * optional .google.container.v1beta1.GPUSharingConfig gpu_sharing_config = 5; + */ + com.google.container.v1beta1.GPUSharingConfigOrBuilder getGpuSharingConfigOrBuilder(); + + /** + *
+   * The configuration for auto installation of GPU driver.
+   * 
+ * + * optional .google.container.v1beta1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; + * @return Whether the gpuDriverInstallationConfig field is set. + */ + boolean hasGpuDriverInstallationConfig(); + /** + *
+   * The configuration for auto installation of GPU driver.
+   * 
+ * + * optional .google.container.v1beta1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; + * @return The gpuDriverInstallationConfig. + */ + com.google.container.v1beta1.GPUDriverInstallationConfig getGpuDriverInstallationConfig(); + /** + *
+   * The configuration for auto installation of GPU driver.
+   * 
+ * + * optional .google.container.v1beta1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; + */ + com.google.container.v1beta1.GPUDriverInstallationConfigOrBuilder getGpuDriverInstallationConfigOrBuilder(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalNodeNetworkConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalNodeNetworkConfig.java new file mode 100644 index 000000000000..8df7f2e727c0 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalNodeNetworkConfig.java @@ -0,0 +1,744 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * AdditionalNodeNetworkConfig is the configuration for additional node networks
+ * within the NodeNetworkConfig message
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.AdditionalNodeNetworkConfig} + */ +public final class AdditionalNodeNetworkConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.AdditionalNodeNetworkConfig) + AdditionalNodeNetworkConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use AdditionalNodeNetworkConfig.newBuilder() to construct. + private AdditionalNodeNetworkConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AdditionalNodeNetworkConfig() { + network_ = ""; + subnetwork_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AdditionalNodeNetworkConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AdditionalNodeNetworkConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AdditionalNodeNetworkConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.AdditionalNodeNetworkConfig.class, com.google.container.v1beta1.AdditionalNodeNetworkConfig.Builder.class); + } + + public static final int NETWORK_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object network_ = ""; + /** + *
+   * Name of the VPC where the additional interface belongs
+   * 
+ * + * 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; + } + } + /** + *
+   * Name of the VPC where the additional interface belongs
+   * 
+ * + * 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; + @SuppressWarnings("serial") + private volatile java.lang.Object subnetwork_ = ""; + /** + *
+   * Name of the subnetwork where the additional interface belongs
+   * 
+ * + * 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; + } + } + /** + *
+   * Name of the subnetwork where the additional interface belongs
+   * 
+ * + * 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; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subnetwork_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subnetwork_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.AdditionalNodeNetworkConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.AdditionalNodeNetworkConfig other = (com.google.container.v1beta1.AdditionalNodeNetworkConfig) obj; + + if (!getNetwork() + .equals(other.getNetwork())) return false; + if (!getSubnetwork() + .equals(other.getSubnetwork())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.AdditionalNodeNetworkConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.AdditionalNodeNetworkConfig parseFrom( + 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.AdditionalNodeNetworkConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.AdditionalNodeNetworkConfig parseFrom( + com.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.AdditionalNodeNetworkConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.AdditionalNodeNetworkConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.AdditionalNodeNetworkConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.AdditionalNodeNetworkConfig parseFrom( + java.io.InputStream 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.AdditionalNodeNetworkConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.AdditionalNodeNetworkConfig parseDelimitedFrom( + java.io.InputStream 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.AdditionalNodeNetworkConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.AdditionalNodeNetworkConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.AdditionalNodeNetworkConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * AdditionalNodeNetworkConfig is the configuration for additional node networks
+   * within the NodeNetworkConfig message
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.AdditionalNodeNetworkConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.AdditionalNodeNetworkConfig) + com.google.container.v1beta1.AdditionalNodeNetworkConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AdditionalNodeNetworkConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AdditionalNodeNetworkConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.AdditionalNodeNetworkConfig.class, com.google.container.v1beta1.AdditionalNodeNetworkConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.AdditionalNodeNetworkConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + network_ = ""; + subnetwork_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AdditionalNodeNetworkConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.AdditionalNodeNetworkConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.AdditionalNodeNetworkConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.AdditionalNodeNetworkConfig build() { + com.google.container.v1beta1.AdditionalNodeNetworkConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.AdditionalNodeNetworkConfig buildPartial() { + com.google.container.v1beta1.AdditionalNodeNetworkConfig result = new com.google.container.v1beta1.AdditionalNodeNetworkConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.AdditionalNodeNetworkConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.network_ = network_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.subnetwork_ = subnetwork_; + } + } + + @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.AdditionalNodeNetworkConfig) { + return mergeFrom((com.google.container.v1beta1.AdditionalNodeNetworkConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.AdditionalNodeNetworkConfig other) { + if (other == com.google.container.v1beta1.AdditionalNodeNetworkConfig.getDefaultInstance()) return this; + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSubnetwork().isEmpty()) { + subnetwork_ = other.subnetwork_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + network_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + subnetwork_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object network_ = ""; + /** + *
+     * Name of the VPC where the additional interface belongs
+     * 
+ * + * 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; + } + } + /** + *
+     * Name of the VPC where the additional interface belongs
+     * 
+ * + * 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; + } + } + /** + *
+     * Name of the VPC where the additional interface belongs
+     * 
+ * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Name of the VPC where the additional interface belongs
+     * 
+ * + * string network = 1; + * @return This builder for chaining. + */ + public Builder clearNetwork() { + network_ = getDefaultInstance().getNetwork(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Name of the VPC where the additional interface belongs
+     * 
+ * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object subnetwork_ = ""; + /** + *
+     * Name of the subnetwork where the additional interface belongs
+     * 
+ * + * 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; + } + } + /** + *
+     * Name of the subnetwork where the additional interface belongs
+     * 
+ * + * 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; + } + } + /** + *
+     * Name of the subnetwork where the additional interface belongs
+     * 
+ * + * 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Name of the subnetwork where the additional interface belongs
+     * 
+ * + * string subnetwork = 2; + * @return This builder for chaining. + */ + public Builder clearSubnetwork() { + subnetwork_ = getDefaultInstance().getSubnetwork(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Name of the subnetwork where the additional interface belongs
+     * 
+ * + * 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; + bitField0_ |= 0x00000002; + 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.AdditionalNodeNetworkConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.AdditionalNodeNetworkConfig) + private static final com.google.container.v1beta1.AdditionalNodeNetworkConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.AdditionalNodeNetworkConfig(); + } + + public static com.google.container.v1beta1.AdditionalNodeNetworkConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdditionalNodeNetworkConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.AdditionalNodeNetworkConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalNodeNetworkConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalNodeNetworkConfigOrBuilder.java new file mode 100644 index 000000000000..7b32c8e70c04 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalNodeNetworkConfigOrBuilder.java @@ -0,0 +1,50 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface AdditionalNodeNetworkConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.AdditionalNodeNetworkConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Name of the VPC where the additional interface belongs
+   * 
+ * + * string network = 1; + * @return The network. + */ + java.lang.String getNetwork(); + /** + *
+   * Name of the VPC where the additional interface belongs
+   * 
+ * + * string network = 1; + * @return The bytes for network. + */ + com.google.protobuf.ByteString + getNetworkBytes(); + + /** + *
+   * Name of the subnetwork where the additional interface belongs
+   * 
+ * + * string subnetwork = 2; + * @return The subnetwork. + */ + java.lang.String getSubnetwork(); + /** + *
+   * Name of the subnetwork where the additional interface belongs
+   * 
+ * + * string subnetwork = 2; + * @return The bytes for subnetwork. + */ + com.google.protobuf.ByteString + getSubnetworkBytes(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalPodNetworkConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalPodNetworkConfig.java new file mode 100644 index 000000000000..a01d2d993e1f --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalPodNetworkConfig.java @@ -0,0 +1,992 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * AdditionalPodNetworkConfig is the configuration for additional pod networks
+ * within the NodeNetworkConfig message
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.AdditionalPodNetworkConfig} + */ +public final class AdditionalPodNetworkConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.AdditionalPodNetworkConfig) + AdditionalPodNetworkConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use AdditionalPodNetworkConfig.newBuilder() to construct. + private AdditionalPodNetworkConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AdditionalPodNetworkConfig() { + subnetwork_ = ""; + secondaryPodRange_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AdditionalPodNetworkConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AdditionalPodNetworkConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AdditionalPodNetworkConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.AdditionalPodNetworkConfig.class, com.google.container.v1beta1.AdditionalPodNetworkConfig.Builder.class); + } + + private int bitField0_; + public static final int SUBNETWORK_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object subnetwork_ = ""; + /** + *
+   * Name of the subnetwork where the additional pod network belongs
+   * 
+ * + * 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; + } + } + /** + *
+   * Name of the subnetwork where the additional pod network belongs
+   * 
+ * + * 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 SECONDARY_POD_RANGE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object secondaryPodRange_ = ""; + /** + *
+   * The name of the secondary range on the subnet which provides IP address for
+   * this pod range
+   * 
+ * + * string secondary_pod_range = 2; + * @return The secondaryPodRange. + */ + @java.lang.Override + public java.lang.String getSecondaryPodRange() { + java.lang.Object ref = secondaryPodRange_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secondaryPodRange_ = s; + return s; + } + } + /** + *
+   * The name of the secondary range on the subnet which provides IP address for
+   * this pod range
+   * 
+ * + * string secondary_pod_range = 2; + * @return The bytes for secondaryPodRange. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSecondaryPodRangeBytes() { + java.lang.Object ref = secondaryPodRange_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + secondaryPodRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAX_PODS_PER_NODE_FIELD_NUMBER = 3; + private com.google.container.v1beta1.MaxPodsConstraint maxPodsPerNode_; + /** + *
+   * The maximum number of pods per node which use this pod network
+   * 
+ * + * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; + * @return Whether the maxPodsPerNode field is set. + */ + @java.lang.Override + public boolean hasMaxPodsPerNode() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * The maximum number of pods per node which use this pod network
+   * 
+ * + * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; + * @return The maxPodsPerNode. + */ + @java.lang.Override + public com.google.container.v1beta1.MaxPodsConstraint getMaxPodsPerNode() { + return maxPodsPerNode_ == null ? com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance() : maxPodsPerNode_; + } + /** + *
+   * The maximum number of pods per node which use this pod network
+   * 
+ * + * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; + */ + @java.lang.Override + public com.google.container.v1beta1.MaxPodsConstraintOrBuilder getMaxPodsPerNodeOrBuilder() { + return maxPodsPerNode_ == null ? com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance() : 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subnetwork_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secondaryPodRange_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, secondaryPodRange_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getMaxPodsPerNode()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subnetwork_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secondaryPodRange_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, secondaryPodRange_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getMaxPodsPerNode()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.AdditionalPodNetworkConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.AdditionalPodNetworkConfig other = (com.google.container.v1beta1.AdditionalPodNetworkConfig) obj; + + if (!getSubnetwork() + .equals(other.getSubnetwork())) return false; + if (!getSecondaryPodRange() + .equals(other.getSecondaryPodRange())) return false; + if (hasMaxPodsPerNode() != other.hasMaxPodsPerNode()) return false; + if (hasMaxPodsPerNode()) { + if (!getMaxPodsPerNode() + .equals(other.getMaxPodsPerNode())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + SECONDARY_POD_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getSecondaryPodRange().hashCode(); + if (hasMaxPodsPerNode()) { + hash = (37 * hash) + MAX_PODS_PER_NODE_FIELD_NUMBER; + hash = (53 * hash) + getMaxPodsPerNode().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.AdditionalPodNetworkConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.AdditionalPodNetworkConfig parseFrom( + 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.AdditionalPodNetworkConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.AdditionalPodNetworkConfig parseFrom( + com.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.AdditionalPodNetworkConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.AdditionalPodNetworkConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.AdditionalPodNetworkConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.AdditionalPodNetworkConfig parseFrom( + java.io.InputStream 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.AdditionalPodNetworkConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.AdditionalPodNetworkConfig parseDelimitedFrom( + java.io.InputStream 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.AdditionalPodNetworkConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.AdditionalPodNetworkConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.AdditionalPodNetworkConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * AdditionalPodNetworkConfig is the configuration for additional pod networks
+   * within the NodeNetworkConfig message
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.AdditionalPodNetworkConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.AdditionalPodNetworkConfig) + com.google.container.v1beta1.AdditionalPodNetworkConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AdditionalPodNetworkConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AdditionalPodNetworkConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.AdditionalPodNetworkConfig.class, com.google.container.v1beta1.AdditionalPodNetworkConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.AdditionalPodNetworkConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMaxPodsPerNodeFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + subnetwork_ = ""; + secondaryPodRange_ = ""; + maxPodsPerNode_ = null; + if (maxPodsPerNodeBuilder_ != null) { + maxPodsPerNodeBuilder_.dispose(); + maxPodsPerNodeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AdditionalPodNetworkConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.AdditionalPodNetworkConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.AdditionalPodNetworkConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.AdditionalPodNetworkConfig build() { + com.google.container.v1beta1.AdditionalPodNetworkConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.AdditionalPodNetworkConfig buildPartial() { + com.google.container.v1beta1.AdditionalPodNetworkConfig result = new com.google.container.v1beta1.AdditionalPodNetworkConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.AdditionalPodNetworkConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.subnetwork_ = subnetwork_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.secondaryPodRange_ = secondaryPodRange_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.maxPodsPerNode_ = maxPodsPerNodeBuilder_ == null + ? maxPodsPerNode_ + : maxPodsPerNodeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @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.AdditionalPodNetworkConfig) { + return mergeFrom((com.google.container.v1beta1.AdditionalPodNetworkConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.AdditionalPodNetworkConfig other) { + if (other == com.google.container.v1beta1.AdditionalPodNetworkConfig.getDefaultInstance()) return this; + if (!other.getSubnetwork().isEmpty()) { + subnetwork_ = other.subnetwork_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSecondaryPodRange().isEmpty()) { + secondaryPodRange_ = other.secondaryPodRange_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasMaxPodsPerNode()) { + mergeMaxPodsPerNode(other.getMaxPodsPerNode()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + subnetwork_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + secondaryPodRange_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getMaxPodsPerNodeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object subnetwork_ = ""; + /** + *
+     * Name of the subnetwork where the additional pod network belongs
+     * 
+ * + * 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; + } + } + /** + *
+     * Name of the subnetwork where the additional pod network belongs
+     * 
+ * + * 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; + } + } + /** + *
+     * Name of the subnetwork where the additional pod network belongs
+     * 
+ * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Name of the subnetwork where the additional pod network belongs
+     * 
+ * + * string subnetwork = 1; + * @return This builder for chaining. + */ + public Builder clearSubnetwork() { + subnetwork_ = getDefaultInstance().getSubnetwork(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Name of the subnetwork where the additional pod network belongs
+     * 
+ * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object secondaryPodRange_ = ""; + /** + *
+     * The name of the secondary range on the subnet which provides IP address for
+     * this pod range
+     * 
+ * + * string secondary_pod_range = 2; + * @return The secondaryPodRange. + */ + public java.lang.String getSecondaryPodRange() { + java.lang.Object ref = secondaryPodRange_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secondaryPodRange_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the secondary range on the subnet which provides IP address for
+     * this pod range
+     * 
+ * + * string secondary_pod_range = 2; + * @return The bytes for secondaryPodRange. + */ + public com.google.protobuf.ByteString + getSecondaryPodRangeBytes() { + java.lang.Object ref = secondaryPodRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + secondaryPodRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the secondary range on the subnet which provides IP address for
+     * this pod range
+     * 
+ * + * string secondary_pod_range = 2; + * @param value The secondaryPodRange to set. + * @return This builder for chaining. + */ + public Builder setSecondaryPodRange( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + secondaryPodRange_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The name of the secondary range on the subnet which provides IP address for
+     * this pod range
+     * 
+ * + * string secondary_pod_range = 2; + * @return This builder for chaining. + */ + public Builder clearSecondaryPodRange() { + secondaryPodRange_ = getDefaultInstance().getSecondaryPodRange(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * The name of the secondary range on the subnet which provides IP address for
+     * this pod range
+     * 
+ * + * string secondary_pod_range = 2; + * @param value The bytes for secondaryPodRange to set. + * @return This builder for chaining. + */ + public Builder setSecondaryPodRangeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + secondaryPodRange_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.container.v1beta1.MaxPodsConstraint maxPodsPerNode_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaxPodsConstraint, com.google.container.v1beta1.MaxPodsConstraint.Builder, com.google.container.v1beta1.MaxPodsConstraintOrBuilder> maxPodsPerNodeBuilder_; + /** + *
+     * The maximum number of pods per node which use this pod network
+     * 
+ * + * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; + * @return Whether the maxPodsPerNode field is set. + */ + public boolean hasMaxPodsPerNode() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * The maximum number of pods per node which use this pod network
+     * 
+ * + * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; + * @return The maxPodsPerNode. + */ + public com.google.container.v1beta1.MaxPodsConstraint getMaxPodsPerNode() { + if (maxPodsPerNodeBuilder_ == null) { + return maxPodsPerNode_ == null ? com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance() : maxPodsPerNode_; + } else { + return maxPodsPerNodeBuilder_.getMessage(); + } + } + /** + *
+     * The maximum number of pods per node which use this pod network
+     * 
+ * + * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; + */ + public Builder setMaxPodsPerNode(com.google.container.v1beta1.MaxPodsConstraint value) { + if (maxPodsPerNodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maxPodsPerNode_ = value; + } else { + maxPodsPerNodeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The maximum number of pods per node which use this pod network
+     * 
+ * + * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; + */ + public Builder setMaxPodsPerNode( + com.google.container.v1beta1.MaxPodsConstraint.Builder builderForValue) { + if (maxPodsPerNodeBuilder_ == null) { + maxPodsPerNode_ = builderForValue.build(); + } else { + maxPodsPerNodeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The maximum number of pods per node which use this pod network
+     * 
+ * + * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; + */ + public Builder mergeMaxPodsPerNode(com.google.container.v1beta1.MaxPodsConstraint value) { + if (maxPodsPerNodeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + maxPodsPerNode_ != null && + maxPodsPerNode_ != com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance()) { + getMaxPodsPerNodeBuilder().mergeFrom(value); + } else { + maxPodsPerNode_ = value; + } + } else { + maxPodsPerNodeBuilder_.mergeFrom(value); + } + if (maxPodsPerNode_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+     * The maximum number of pods per node which use this pod network
+     * 
+ * + * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; + */ + public Builder clearMaxPodsPerNode() { + bitField0_ = (bitField0_ & ~0x00000004); + maxPodsPerNode_ = null; + if (maxPodsPerNodeBuilder_ != null) { + maxPodsPerNodeBuilder_.dispose(); + maxPodsPerNodeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The maximum number of pods per node which use this pod network
+     * 
+ * + * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; + */ + public com.google.container.v1beta1.MaxPodsConstraint.Builder getMaxPodsPerNodeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getMaxPodsPerNodeFieldBuilder().getBuilder(); + } + /** + *
+     * The maximum number of pods per node which use this pod network
+     * 
+ * + * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; + */ + public com.google.container.v1beta1.MaxPodsConstraintOrBuilder getMaxPodsPerNodeOrBuilder() { + if (maxPodsPerNodeBuilder_ != null) { + return maxPodsPerNodeBuilder_.getMessageOrBuilder(); + } else { + return maxPodsPerNode_ == null ? + com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance() : maxPodsPerNode_; + } + } + /** + *
+     * The maximum number of pods per node which use this pod network
+     * 
+ * + * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaxPodsConstraint, com.google.container.v1beta1.MaxPodsConstraint.Builder, com.google.container.v1beta1.MaxPodsConstraintOrBuilder> + getMaxPodsPerNodeFieldBuilder() { + if (maxPodsPerNodeBuilder_ == null) { + maxPodsPerNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaxPodsConstraint, com.google.container.v1beta1.MaxPodsConstraint.Builder, com.google.container.v1beta1.MaxPodsConstraintOrBuilder>( + getMaxPodsPerNode(), + getParentForChildren(), + isClean()); + maxPodsPerNode_ = null; + } + return maxPodsPerNodeBuilder_; + } + @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.AdditionalPodNetworkConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.AdditionalPodNetworkConfig) + private static final com.google.container.v1beta1.AdditionalPodNetworkConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.AdditionalPodNetworkConfig(); + } + + public static com.google.container.v1beta1.AdditionalPodNetworkConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdditionalPodNetworkConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.AdditionalPodNetworkConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalPodNetworkConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalPodNetworkConfigOrBuilder.java new file mode 100644 index 000000000000..0b8809f2990e --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalPodNetworkConfigOrBuilder.java @@ -0,0 +1,79 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface AdditionalPodNetworkConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.AdditionalPodNetworkConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Name of the subnetwork where the additional pod network belongs
+   * 
+ * + * string subnetwork = 1; + * @return The subnetwork. + */ + java.lang.String getSubnetwork(); + /** + *
+   * Name of the subnetwork where the additional pod network belongs
+   * 
+ * + * string subnetwork = 1; + * @return The bytes for subnetwork. + */ + com.google.protobuf.ByteString + getSubnetworkBytes(); + + /** + *
+   * The name of the secondary range on the subnet which provides IP address for
+   * this pod range
+   * 
+ * + * string secondary_pod_range = 2; + * @return The secondaryPodRange. + */ + java.lang.String getSecondaryPodRange(); + /** + *
+   * The name of the secondary range on the subnet which provides IP address for
+   * this pod range
+   * 
+ * + * string secondary_pod_range = 2; + * @return The bytes for secondaryPodRange. + */ + com.google.protobuf.ByteString + getSecondaryPodRangeBytes(); + + /** + *
+   * The maximum number of pods per node which use this pod network
+   * 
+ * + * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; + * @return Whether the maxPodsPerNode field is set. + */ + boolean hasMaxPodsPerNode(); + /** + *
+   * The maximum number of pods per node which use this pod network
+   * 
+ * + * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; + * @return The maxPodsPerNode. + */ + com.google.container.v1beta1.MaxPodsConstraint getMaxPodsPerNode(); + /** + *
+   * The maximum number of pods per node which use this pod network
+   * 
+ * + * optional .google.container.v1beta1.MaxPodsConstraint max_pods_per_node = 3; + */ + com.google.container.v1beta1.MaxPodsConstraintOrBuilder getMaxPodsPerNodeOrBuilder(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalPodRangesConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalPodRangesConfig.java new file mode 100644 index 000000000000..b9292a3ef33c --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalPodRangesConfig.java @@ -0,0 +1,1103 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * AdditionalPodRangesConfig is the configuration for additional pod secondary
+ * ranges supporting the ClusterUpdate message.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.AdditionalPodRangesConfig} + */ +public final class AdditionalPodRangesConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.AdditionalPodRangesConfig) + AdditionalPodRangesConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use AdditionalPodRangesConfig.newBuilder() to construct. + private AdditionalPodRangesConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AdditionalPodRangesConfig() { + podRangeNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + podRangeInfo_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AdditionalPodRangesConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AdditionalPodRangesConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AdditionalPodRangesConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.AdditionalPodRangesConfig.class, com.google.container.v1beta1.AdditionalPodRangesConfig.Builder.class); + } + + public static final int POD_RANGE_NAMES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList podRangeNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * Name for pod secondary ipv4 range which has the actual range defined ahead.
+   * 
+ * + * repeated string pod_range_names = 1; + * @return A list containing the podRangeNames. + */ + public com.google.protobuf.ProtocolStringList + getPodRangeNamesList() { + return podRangeNames_; + } + /** + *
+   * Name for pod secondary ipv4 range which has the actual range defined ahead.
+   * 
+ * + * repeated string pod_range_names = 1; + * @return The count of podRangeNames. + */ + public int getPodRangeNamesCount() { + return podRangeNames_.size(); + } + /** + *
+   * Name for pod secondary ipv4 range which has the actual range defined ahead.
+   * 
+ * + * repeated string pod_range_names = 1; + * @param index The index of the element to return. + * @return The podRangeNames at the given index. + */ + public java.lang.String getPodRangeNames(int index) { + return podRangeNames_.get(index); + } + /** + *
+   * Name for pod secondary ipv4 range which has the actual range defined ahead.
+   * 
+ * + * repeated string pod_range_names = 1; + * @param index The index of the value to return. + * @return The bytes of the podRangeNames at the given index. + */ + public com.google.protobuf.ByteString + getPodRangeNamesBytes(int index) { + return podRangeNames_.getByteString(index); + } + + public static final int POD_RANGE_INFO_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List podRangeInfo_; + /** + *
+   * Output only. [Output only] Information for additional pod range.
+   * 
+ * + * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public java.util.List getPodRangeInfoList() { + return podRangeInfo_; + } + /** + *
+   * Output only. [Output only] Information for additional pod range.
+   * 
+ * + * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public java.util.List + getPodRangeInfoOrBuilderList() { + return podRangeInfo_; + } + /** + *
+   * Output only. [Output only] Information for additional pod range.
+   * 
+ * + * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public int getPodRangeInfoCount() { + return podRangeInfo_.size(); + } + /** + *
+   * Output only. [Output only] Information for additional pod range.
+   * 
+ * + * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.container.v1beta1.RangeInfo getPodRangeInfo(int index) { + return podRangeInfo_.get(index); + } + /** + *
+   * Output only. [Output only] Information for additional pod range.
+   * 
+ * + * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.container.v1beta1.RangeInfoOrBuilder getPodRangeInfoOrBuilder( + int index) { + return podRangeInfo_.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 < podRangeNames_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, podRangeNames_.getRaw(i)); + } + for (int i = 0; i < podRangeInfo_.size(); i++) { + output.writeMessage(2, podRangeInfo_.get(i)); + } + getUnknownFields().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 < podRangeNames_.size(); i++) { + dataSize += computeStringSizeNoTag(podRangeNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getPodRangeNamesList().size(); + } + for (int i = 0; i < podRangeInfo_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, podRangeInfo_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.AdditionalPodRangesConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.AdditionalPodRangesConfig other = (com.google.container.v1beta1.AdditionalPodRangesConfig) obj; + + if (!getPodRangeNamesList() + .equals(other.getPodRangeNamesList())) return false; + if (!getPodRangeInfoList() + .equals(other.getPodRangeInfoList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getPodRangeNamesCount() > 0) { + hash = (37 * hash) + POD_RANGE_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getPodRangeNamesList().hashCode(); + } + if (getPodRangeInfoCount() > 0) { + hash = (37 * hash) + POD_RANGE_INFO_FIELD_NUMBER; + hash = (53 * hash) + getPodRangeInfoList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.AdditionalPodRangesConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.AdditionalPodRangesConfig parseFrom( + 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.AdditionalPodRangesConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.AdditionalPodRangesConfig parseFrom( + com.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.AdditionalPodRangesConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.AdditionalPodRangesConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.AdditionalPodRangesConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.AdditionalPodRangesConfig parseFrom( + java.io.InputStream 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.AdditionalPodRangesConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.AdditionalPodRangesConfig parseDelimitedFrom( + java.io.InputStream 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.AdditionalPodRangesConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.AdditionalPodRangesConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.AdditionalPodRangesConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * AdditionalPodRangesConfig is the configuration for additional pod secondary
+   * ranges supporting the ClusterUpdate message.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.AdditionalPodRangesConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.AdditionalPodRangesConfig) + com.google.container.v1beta1.AdditionalPodRangesConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AdditionalPodRangesConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AdditionalPodRangesConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.AdditionalPodRangesConfig.class, com.google.container.v1beta1.AdditionalPodRangesConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.AdditionalPodRangesConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + podRangeNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + if (podRangeInfoBuilder_ == null) { + podRangeInfo_ = java.util.Collections.emptyList(); + } else { + podRangeInfo_ = null; + podRangeInfoBuilder_.clear(); + } + 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_AdditionalPodRangesConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.AdditionalPodRangesConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.AdditionalPodRangesConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.AdditionalPodRangesConfig build() { + com.google.container.v1beta1.AdditionalPodRangesConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.AdditionalPodRangesConfig buildPartial() { + com.google.container.v1beta1.AdditionalPodRangesConfig result = new com.google.container.v1beta1.AdditionalPodRangesConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1beta1.AdditionalPodRangesConfig result) { + if (podRangeInfoBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + podRangeInfo_ = java.util.Collections.unmodifiableList(podRangeInfo_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.podRangeInfo_ = podRangeInfo_; + } else { + result.podRangeInfo_ = podRangeInfoBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1beta1.AdditionalPodRangesConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + podRangeNames_.makeImmutable(); + result.podRangeNames_ = podRangeNames_; + } + } + + @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.AdditionalPodRangesConfig) { + return mergeFrom((com.google.container.v1beta1.AdditionalPodRangesConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.AdditionalPodRangesConfig other) { + if (other == com.google.container.v1beta1.AdditionalPodRangesConfig.getDefaultInstance()) return this; + if (!other.podRangeNames_.isEmpty()) { + if (podRangeNames_.isEmpty()) { + podRangeNames_ = other.podRangeNames_; + bitField0_ |= 0x00000001; + } else { + ensurePodRangeNamesIsMutable(); + podRangeNames_.addAll(other.podRangeNames_); + } + onChanged(); + } + if (podRangeInfoBuilder_ == null) { + if (!other.podRangeInfo_.isEmpty()) { + if (podRangeInfo_.isEmpty()) { + podRangeInfo_ = other.podRangeInfo_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensurePodRangeInfoIsMutable(); + podRangeInfo_.addAll(other.podRangeInfo_); + } + onChanged(); + } + } else { + if (!other.podRangeInfo_.isEmpty()) { + if (podRangeInfoBuilder_.isEmpty()) { + podRangeInfoBuilder_.dispose(); + podRangeInfoBuilder_ = null; + podRangeInfo_ = other.podRangeInfo_; + bitField0_ = (bitField0_ & ~0x00000002); + podRangeInfoBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPodRangeInfoFieldBuilder() : null; + } else { + podRangeInfoBuilder_.addAllMessages(other.podRangeInfo_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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(); + ensurePodRangeNamesIsMutable(); + podRangeNames_.add(s); + break; + } // case 10 + case 18: { + com.google.container.v1beta1.RangeInfo m = + input.readMessage( + com.google.container.v1beta1.RangeInfo.parser(), + extensionRegistry); + if (podRangeInfoBuilder_ == null) { + ensurePodRangeInfoIsMutable(); + podRangeInfo_.add(m); + } else { + podRangeInfoBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList podRangeNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensurePodRangeNamesIsMutable() { + if (!podRangeNames_.isModifiable()) { + podRangeNames_ = new com.google.protobuf.LazyStringArrayList(podRangeNames_); + } + bitField0_ |= 0x00000001; + } + /** + *
+     * Name for pod secondary ipv4 range which has the actual range defined ahead.
+     * 
+ * + * repeated string pod_range_names = 1; + * @return A list containing the podRangeNames. + */ + public com.google.protobuf.ProtocolStringList + getPodRangeNamesList() { + podRangeNames_.makeImmutable(); + return podRangeNames_; + } + /** + *
+     * Name for pod secondary ipv4 range which has the actual range defined ahead.
+     * 
+ * + * repeated string pod_range_names = 1; + * @return The count of podRangeNames. + */ + public int getPodRangeNamesCount() { + return podRangeNames_.size(); + } + /** + *
+     * Name for pod secondary ipv4 range which has the actual range defined ahead.
+     * 
+ * + * repeated string pod_range_names = 1; + * @param index The index of the element to return. + * @return The podRangeNames at the given index. + */ + public java.lang.String getPodRangeNames(int index) { + return podRangeNames_.get(index); + } + /** + *
+     * Name for pod secondary ipv4 range which has the actual range defined ahead.
+     * 
+ * + * repeated string pod_range_names = 1; + * @param index The index of the value to return. + * @return The bytes of the podRangeNames at the given index. + */ + public com.google.protobuf.ByteString + getPodRangeNamesBytes(int index) { + return podRangeNames_.getByteString(index); + } + /** + *
+     * Name for pod secondary ipv4 range which has the actual range defined ahead.
+     * 
+ * + * repeated string pod_range_names = 1; + * @param index The index to set the value at. + * @param value The podRangeNames to set. + * @return This builder for chaining. + */ + public Builder setPodRangeNames( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensurePodRangeNamesIsMutable(); + podRangeNames_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Name for pod secondary ipv4 range which has the actual range defined ahead.
+     * 
+ * + * repeated string pod_range_names = 1; + * @param value The podRangeNames to add. + * @return This builder for chaining. + */ + public Builder addPodRangeNames( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensurePodRangeNamesIsMutable(); + podRangeNames_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Name for pod secondary ipv4 range which has the actual range defined ahead.
+     * 
+ * + * repeated string pod_range_names = 1; + * @param values The podRangeNames to add. + * @return This builder for chaining. + */ + public Builder addAllPodRangeNames( + java.lang.Iterable values) { + ensurePodRangeNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, podRangeNames_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Name for pod secondary ipv4 range which has the actual range defined ahead.
+     * 
+ * + * repeated string pod_range_names = 1; + * @return This builder for chaining. + */ + public Builder clearPodRangeNames() { + podRangeNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; + onChanged(); + return this; + } + /** + *
+     * Name for pod secondary ipv4 range which has the actual range defined ahead.
+     * 
+ * + * repeated string pod_range_names = 1; + * @param value The bytes of the podRangeNames to add. + * @return This builder for chaining. + */ + public Builder addPodRangeNamesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensurePodRangeNamesIsMutable(); + podRangeNames_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List podRangeInfo_ = + java.util.Collections.emptyList(); + private void ensurePodRangeInfoIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + podRangeInfo_ = new java.util.ArrayList(podRangeInfo_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.RangeInfo, com.google.container.v1beta1.RangeInfo.Builder, com.google.container.v1beta1.RangeInfoOrBuilder> podRangeInfoBuilder_; + + /** + *
+     * Output only. [Output only] Information for additional pod range.
+     * 
+ * + * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List getPodRangeInfoList() { + if (podRangeInfoBuilder_ == null) { + return java.util.Collections.unmodifiableList(podRangeInfo_); + } else { + return podRangeInfoBuilder_.getMessageList(); + } + } + /** + *
+     * Output only. [Output only] Information for additional pod range.
+     * 
+ * + * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public int getPodRangeInfoCount() { + if (podRangeInfoBuilder_ == null) { + return podRangeInfo_.size(); + } else { + return podRangeInfoBuilder_.getCount(); + } + } + /** + *
+     * Output only. [Output only] Information for additional pod range.
+     * 
+ * + * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.container.v1beta1.RangeInfo getPodRangeInfo(int index) { + if (podRangeInfoBuilder_ == null) { + return podRangeInfo_.get(index); + } else { + return podRangeInfoBuilder_.getMessage(index); + } + } + /** + *
+     * Output only. [Output only] Information for additional pod range.
+     * 
+ * + * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setPodRangeInfo( + int index, com.google.container.v1beta1.RangeInfo value) { + if (podRangeInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePodRangeInfoIsMutable(); + podRangeInfo_.set(index, value); + onChanged(); + } else { + podRangeInfoBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Output only. [Output only] Information for additional pod range.
+     * 
+ * + * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setPodRangeInfo( + int index, com.google.container.v1beta1.RangeInfo.Builder builderForValue) { + if (podRangeInfoBuilder_ == null) { + ensurePodRangeInfoIsMutable(); + podRangeInfo_.set(index, builderForValue.build()); + onChanged(); + } else { + podRangeInfoBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. [Output only] Information for additional pod range.
+     * 
+ * + * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addPodRangeInfo(com.google.container.v1beta1.RangeInfo value) { + if (podRangeInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePodRangeInfoIsMutable(); + podRangeInfo_.add(value); + onChanged(); + } else { + podRangeInfoBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Output only. [Output only] Information for additional pod range.
+     * 
+ * + * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addPodRangeInfo( + int index, com.google.container.v1beta1.RangeInfo value) { + if (podRangeInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePodRangeInfoIsMutable(); + podRangeInfo_.add(index, value); + onChanged(); + } else { + podRangeInfoBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Output only. [Output only] Information for additional pod range.
+     * 
+ * + * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addPodRangeInfo( + com.google.container.v1beta1.RangeInfo.Builder builderForValue) { + if (podRangeInfoBuilder_ == null) { + ensurePodRangeInfoIsMutable(); + podRangeInfo_.add(builderForValue.build()); + onChanged(); + } else { + podRangeInfoBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. [Output only] Information for additional pod range.
+     * 
+ * + * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addPodRangeInfo( + int index, com.google.container.v1beta1.RangeInfo.Builder builderForValue) { + if (podRangeInfoBuilder_ == null) { + ensurePodRangeInfoIsMutable(); + podRangeInfo_.add(index, builderForValue.build()); + onChanged(); + } else { + podRangeInfoBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. [Output only] Information for additional pod range.
+     * 
+ * + * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addAllPodRangeInfo( + java.lang.Iterable values) { + if (podRangeInfoBuilder_ == null) { + ensurePodRangeInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, podRangeInfo_); + onChanged(); + } else { + podRangeInfoBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Output only. [Output only] Information for additional pod range.
+     * 
+ * + * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearPodRangeInfo() { + if (podRangeInfoBuilder_ == null) { + podRangeInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + podRangeInfoBuilder_.clear(); + } + return this; + } + /** + *
+     * Output only. [Output only] Information for additional pod range.
+     * 
+ * + * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder removePodRangeInfo(int index) { + if (podRangeInfoBuilder_ == null) { + ensurePodRangeInfoIsMutable(); + podRangeInfo_.remove(index); + onChanged(); + } else { + podRangeInfoBuilder_.remove(index); + } + return this; + } + /** + *
+     * Output only. [Output only] Information for additional pod range.
+     * 
+ * + * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.container.v1beta1.RangeInfo.Builder getPodRangeInfoBuilder( + int index) { + return getPodRangeInfoFieldBuilder().getBuilder(index); + } + /** + *
+     * Output only. [Output only] Information for additional pod range.
+     * 
+ * + * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.container.v1beta1.RangeInfoOrBuilder getPodRangeInfoOrBuilder( + int index) { + if (podRangeInfoBuilder_ == null) { + return podRangeInfo_.get(index); } else { + return podRangeInfoBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Output only. [Output only] Information for additional pod range.
+     * 
+ * + * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List + getPodRangeInfoOrBuilderList() { + if (podRangeInfoBuilder_ != null) { + return podRangeInfoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(podRangeInfo_); + } + } + /** + *
+     * Output only. [Output only] Information for additional pod range.
+     * 
+ * + * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.container.v1beta1.RangeInfo.Builder addPodRangeInfoBuilder() { + return getPodRangeInfoFieldBuilder().addBuilder( + com.google.container.v1beta1.RangeInfo.getDefaultInstance()); + } + /** + *
+     * Output only. [Output only] Information for additional pod range.
+     * 
+ * + * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.container.v1beta1.RangeInfo.Builder addPodRangeInfoBuilder( + int index) { + return getPodRangeInfoFieldBuilder().addBuilder( + index, com.google.container.v1beta1.RangeInfo.getDefaultInstance()); + } + /** + *
+     * Output only. [Output only] Information for additional pod range.
+     * 
+ * + * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List + getPodRangeInfoBuilderList() { + return getPodRangeInfoFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.RangeInfo, com.google.container.v1beta1.RangeInfo.Builder, com.google.container.v1beta1.RangeInfoOrBuilder> + getPodRangeInfoFieldBuilder() { + if (podRangeInfoBuilder_ == null) { + podRangeInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.RangeInfo, com.google.container.v1beta1.RangeInfo.Builder, com.google.container.v1beta1.RangeInfoOrBuilder>( + podRangeInfo_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + podRangeInfo_ = null; + } + return podRangeInfoBuilder_; + } + @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.AdditionalPodRangesConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.AdditionalPodRangesConfig) + private static final com.google.container.v1beta1.AdditionalPodRangesConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.AdditionalPodRangesConfig(); + } + + public static com.google.container.v1beta1.AdditionalPodRangesConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdditionalPodRangesConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.AdditionalPodRangesConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalPodRangesConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalPodRangesConfigOrBuilder.java new file mode 100644 index 000000000000..a640a473fe14 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdditionalPodRangesConfigOrBuilder.java @@ -0,0 +1,95 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface AdditionalPodRangesConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.AdditionalPodRangesConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Name for pod secondary ipv4 range which has the actual range defined ahead.
+   * 
+ * + * repeated string pod_range_names = 1; + * @return A list containing the podRangeNames. + */ + java.util.List + getPodRangeNamesList(); + /** + *
+   * Name for pod secondary ipv4 range which has the actual range defined ahead.
+   * 
+ * + * repeated string pod_range_names = 1; + * @return The count of podRangeNames. + */ + int getPodRangeNamesCount(); + /** + *
+   * Name for pod secondary ipv4 range which has the actual range defined ahead.
+   * 
+ * + * repeated string pod_range_names = 1; + * @param index The index of the element to return. + * @return The podRangeNames at the given index. + */ + java.lang.String getPodRangeNames(int index); + /** + *
+   * Name for pod secondary ipv4 range which has the actual range defined ahead.
+   * 
+ * + * repeated string pod_range_names = 1; + * @param index The index of the value to return. + * @return The bytes of the podRangeNames at the given index. + */ + com.google.protobuf.ByteString + getPodRangeNamesBytes(int index); + + /** + *
+   * Output only. [Output only] Information for additional pod range.
+   * 
+ * + * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + java.util.List + getPodRangeInfoList(); + /** + *
+   * Output only. [Output only] Information for additional pod range.
+   * 
+ * + * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.container.v1beta1.RangeInfo getPodRangeInfo(int index); + /** + *
+   * Output only. [Output only] Information for additional pod range.
+   * 
+ * + * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + int getPodRangeInfoCount(); + /** + *
+   * Output only. [Output only] Information for additional pod range.
+   * 
+ * + * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + java.util.List + getPodRangeInfoOrBuilderList(); + /** + *
+   * Output only. [Output only] Information for additional pod range.
+   * 
+ * + * repeated .google.container.v1beta1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.container.v1beta1.RangeInfoOrBuilder getPodRangeInfoOrBuilder( + int index); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfig.java new file mode 100644 index 000000000000..e3e15da3b5a9 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfig.java @@ -0,0 +1,3878 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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); + } + + private int bitField0_; + 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 ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * 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 httpLoadBalancing_ == null ? com.google.container.v1beta1.HttpLoadBalancing.getDefaultInstance() : httpLoadBalancing_; + } + + 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 ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * 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 horizontalPodAutoscaling_ == null ? com.google.container.v1beta1.HorizontalPodAutoscaling.getDefaultInstance() : horizontalPodAutoscaling_; + } + + 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]; + * @deprecated google.container.v1beta1.AddonsConfig.kubernetes_dashboard is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1332 + * @return Whether the kubernetesDashboard field is set. + */ + @java.lang.Override + @java.lang.Deprecated public boolean hasKubernetesDashboard() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+   * 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]; + * @deprecated google.container.v1beta1.AddonsConfig.kubernetes_dashboard is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1332 + * @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 kubernetesDashboard_ == null ? com.google.container.v1beta1.KubernetesDashboard.getDefaultInstance() : kubernetesDashboard_; + } + + 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 ((bitField0_ & 0x00000008) != 0); + } + /** + *
+   * 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 networkPolicyConfig_ == null ? com.google.container.v1beta1.NetworkPolicyConfig.getDefaultInstance() : networkPolicyConfig_; + } + + 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 [deprecated = true]; + * @deprecated google.container.v1beta1.AddonsConfig.istio_config is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1341 + * @return Whether the istioConfig field is set. + */ + @java.lang.Override + @java.lang.Deprecated public boolean hasIstioConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+   * Configuration for Istio, an open platform to connect, manage, and secure
+   * microservices.
+   * 
+ * + * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; + * @deprecated google.container.v1beta1.AddonsConfig.istio_config is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1341 + * @return The istioConfig. + */ + @java.lang.Override + @java.lang.Deprecated public com.google.container.v1beta1.IstioConfig getIstioConfig() { + return istioConfig_ == null ? com.google.container.v1beta1.IstioConfig.getDefaultInstance() : istioConfig_; + } + /** + *
+   * Configuration for Istio, an open platform to connect, manage, and secure
+   * microservices.
+   * 
+ * + * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; + */ + @java.lang.Override + @java.lang.Deprecated public com.google.container.v1beta1.IstioConfigOrBuilder getIstioConfigOrBuilder() { + return istioConfig_ == null ? com.google.container.v1beta1.IstioConfig.getDefaultInstance() : istioConfig_; + } + + 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 ((bitField0_ & 0x00000020) != 0); + } + /** + *
+   * 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 cloudRunConfig_ == null ? com.google.container.v1beta1.CloudRunConfig.getDefaultInstance() : cloudRunConfig_; + } + + 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 ((bitField0_ & 0x00000040) != 0); + } + /** + *
+   * 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 dnsCacheConfig_ == null ? com.google.container.v1beta1.DnsCacheConfig.getDefaultInstance() : dnsCacheConfig_; + } + + 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 ((bitField0_ & 0x00000080) != 0); + } + /** + *
+   * 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 configConnectorConfig_ == null ? com.google.container.v1beta1.ConfigConnectorConfig.getDefaultInstance() : configConnectorConfig_; + } + + 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 ((bitField0_ & 0x00000100) != 0); + } + /** + *
+   * 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 gcePersistentDiskCsiDriverConfig_ == null ? com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.getDefaultInstance() : gcePersistentDiskCsiDriverConfig_; + } + + 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 [deprecated = true]; + * @deprecated google.container.v1beta1.AddonsConfig.kalm_config is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1360 + * @return Whether the kalmConfig field is set. + */ + @java.lang.Override + @java.lang.Deprecated public boolean hasKalmConfig() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + *
+   * Configuration for the KALM addon, which manages the lifecycle of k8s
+   * applications.
+   * 
+ * + * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; + * @deprecated google.container.v1beta1.AddonsConfig.kalm_config is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1360 + * @return The kalmConfig. + */ + @java.lang.Override + @java.lang.Deprecated 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 [deprecated = true]; + */ + @java.lang.Override + @java.lang.Deprecated public com.google.container.v1beta1.KalmConfigOrBuilder getKalmConfigOrBuilder() { + return kalmConfig_ == null ? com.google.container.v1beta1.KalmConfig.getDefaultInstance() : kalmConfig_; + } + + public static final int GCP_FILESTORE_CSI_DRIVER_CONFIG_FIELD_NUMBER = 14; + private com.google.container.v1beta1.GcpFilestoreCsiDriverConfig gcpFilestoreCsiDriverConfig_; + /** + *
+   * Configuration for the GCP Filestore CSI driver.
+   * 
+ * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * @return Whether the gcpFilestoreCsiDriverConfig field is set. + */ + @java.lang.Override + public boolean hasGcpFilestoreCsiDriverConfig() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + *
+   * Configuration for the GCP Filestore CSI driver.
+   * 
+ * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * @return The gcpFilestoreCsiDriverConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.GcpFilestoreCsiDriverConfig getGcpFilestoreCsiDriverConfig() { + return gcpFilestoreCsiDriverConfig_ == null ? com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.getDefaultInstance() : gcpFilestoreCsiDriverConfig_; + } + /** + *
+   * Configuration for the GCP Filestore CSI driver.
+   * 
+ * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + */ + @java.lang.Override + public com.google.container.v1beta1.GcpFilestoreCsiDriverConfigOrBuilder getGcpFilestoreCsiDriverConfigOrBuilder() { + return gcpFilestoreCsiDriverConfig_ == null ? com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.getDefaultInstance() : gcpFilestoreCsiDriverConfig_; + } + + public static final int GKE_BACKUP_AGENT_CONFIG_FIELD_NUMBER = 16; + private com.google.container.v1beta1.GkeBackupAgentConfig gkeBackupAgentConfig_; + /** + *
+   * Configuration for the Backup for GKE agent addon.
+   * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + * @return Whether the gkeBackupAgentConfig field is set. + */ + @java.lang.Override + public boolean hasGkeBackupAgentConfig() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + *
+   * Configuration for the Backup for GKE agent addon.
+   * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + * @return The gkeBackupAgentConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.GkeBackupAgentConfig getGkeBackupAgentConfig() { + return gkeBackupAgentConfig_ == null ? com.google.container.v1beta1.GkeBackupAgentConfig.getDefaultInstance() : gkeBackupAgentConfig_; + } + /** + *
+   * Configuration for the Backup for GKE agent addon.
+   * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + */ + @java.lang.Override + public com.google.container.v1beta1.GkeBackupAgentConfigOrBuilder getGkeBackupAgentConfigOrBuilder() { + return gkeBackupAgentConfig_ == null ? com.google.container.v1beta1.GkeBackupAgentConfig.getDefaultInstance() : gkeBackupAgentConfig_; + } + + public static final int GCS_FUSE_CSI_DRIVER_CONFIG_FIELD_NUMBER = 17; + private com.google.container.v1beta1.GcsFuseCsiDriverConfig gcsFuseCsiDriverConfig_; + /** + *
+   * Configuration for the Cloud Storage Fuse CSI driver.
+   * 
+ * + * .google.container.v1beta1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; + * @return Whether the gcsFuseCsiDriverConfig field is set. + */ + @java.lang.Override + public boolean hasGcsFuseCsiDriverConfig() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + *
+   * Configuration for the Cloud Storage Fuse CSI driver.
+   * 
+ * + * .google.container.v1beta1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; + * @return The gcsFuseCsiDriverConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.GcsFuseCsiDriverConfig getGcsFuseCsiDriverConfig() { + return gcsFuseCsiDriverConfig_ == null ? com.google.container.v1beta1.GcsFuseCsiDriverConfig.getDefaultInstance() : gcsFuseCsiDriverConfig_; + } + /** + *
+   * Configuration for the Cloud Storage Fuse CSI driver.
+   * 
+ * + * .google.container.v1beta1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; + */ + @java.lang.Override + public com.google.container.v1beta1.GcsFuseCsiDriverConfigOrBuilder getGcsFuseCsiDriverConfigOrBuilder() { + return gcsFuseCsiDriverConfig_ == null ? com.google.container.v1beta1.GcsFuseCsiDriverConfig.getDefaultInstance() : gcsFuseCsiDriverConfig_; + } + + public static final int STATEFUL_HA_CONFIG_FIELD_NUMBER = 18; + private com.google.container.v1beta1.StatefulHAConfig statefulHaConfig_; + /** + *
+   * Optional. Configuration for the StatefulHA add-on.
+   * 
+ * + * .google.container.v1beta1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the statefulHaConfig field is set. + */ + @java.lang.Override + public boolean hasStatefulHaConfig() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + *
+   * Optional. Configuration for the StatefulHA add-on.
+   * 
+ * + * .google.container.v1beta1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return The statefulHaConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.StatefulHAConfig getStatefulHaConfig() { + return statefulHaConfig_ == null ? com.google.container.v1beta1.StatefulHAConfig.getDefaultInstance() : statefulHaConfig_; + } + /** + *
+   * Optional. Configuration for the StatefulHA add-on.
+   * 
+ * + * .google.container.v1beta1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.container.v1beta1.StatefulHAConfigOrBuilder getStatefulHaConfigOrBuilder() { + return statefulHaConfig_ == null ? com.google.container.v1beta1.StatefulHAConfig.getDefaultInstance() : statefulHaConfig_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getHttpLoadBalancing()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getHorizontalPodAutoscaling()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getKubernetesDashboard()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getNetworkPolicyConfig()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(5, getIstioConfig()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(7, getCloudRunConfig()); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(8, getDnsCacheConfig()); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(10, getConfigConnectorConfig()); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(11, getGcePersistentDiskCsiDriverConfig()); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeMessage(12, getKalmConfig()); + } + if (((bitField0_ & 0x00000400) != 0)) { + output.writeMessage(14, getGcpFilestoreCsiDriverConfig()); + } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeMessage(16, getGkeBackupAgentConfig()); + } + if (((bitField0_ & 0x00001000) != 0)) { + output.writeMessage(17, getGcsFuseCsiDriverConfig()); + } + if (((bitField0_ & 0x00002000) != 0)) { + output.writeMessage(18, getStatefulHaConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHttpLoadBalancing()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getHorizontalPodAutoscaling()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getKubernetesDashboard()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getNetworkPolicyConfig()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getIstioConfig()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getCloudRunConfig()); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getDnsCacheConfig()); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getConfigConnectorConfig()); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getGcePersistentDiskCsiDriverConfig()); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getKalmConfig()); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getGcpFilestoreCsiDriverConfig()); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getGkeBackupAgentConfig()); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getGcsFuseCsiDriverConfig()); + } + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, getStatefulHaConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (hasGcpFilestoreCsiDriverConfig() != other.hasGcpFilestoreCsiDriverConfig()) return false; + if (hasGcpFilestoreCsiDriverConfig()) { + if (!getGcpFilestoreCsiDriverConfig() + .equals(other.getGcpFilestoreCsiDriverConfig())) return false; + } + if (hasGkeBackupAgentConfig() != other.hasGkeBackupAgentConfig()) return false; + if (hasGkeBackupAgentConfig()) { + if (!getGkeBackupAgentConfig() + .equals(other.getGkeBackupAgentConfig())) return false; + } + if (hasGcsFuseCsiDriverConfig() != other.hasGcsFuseCsiDriverConfig()) return false; + if (hasGcsFuseCsiDriverConfig()) { + if (!getGcsFuseCsiDriverConfig() + .equals(other.getGcsFuseCsiDriverConfig())) return false; + } + if (hasStatefulHaConfig() != other.hasStatefulHaConfig()) return false; + if (hasStatefulHaConfig()) { + if (!getStatefulHaConfig() + .equals(other.getStatefulHaConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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(); + } + if (hasGcpFilestoreCsiDriverConfig()) { + hash = (37 * hash) + GCP_FILESTORE_CSI_DRIVER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGcpFilestoreCsiDriverConfig().hashCode(); + } + if (hasGkeBackupAgentConfig()) { + hash = (37 * hash) + GKE_BACKUP_AGENT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGkeBackupAgentConfig().hashCode(); + } + if (hasGcsFuseCsiDriverConfig()) { + hash = (37 * hash) + GCS_FUSE_CSI_DRIVER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGcsFuseCsiDriverConfig().hashCode(); + } + if (hasStatefulHaConfig()) { + hash = (37 * hash) + STATEFUL_HA_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getStatefulHaConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().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) { + getHttpLoadBalancingFieldBuilder(); + getHorizontalPodAutoscalingFieldBuilder(); + getKubernetesDashboardFieldBuilder(); + getNetworkPolicyConfigFieldBuilder(); + getIstioConfigFieldBuilder(); + getCloudRunConfigFieldBuilder(); + getDnsCacheConfigFieldBuilder(); + getConfigConnectorConfigFieldBuilder(); + getGcePersistentDiskCsiDriverConfigFieldBuilder(); + getKalmConfigFieldBuilder(); + getGcpFilestoreCsiDriverConfigFieldBuilder(); + getGkeBackupAgentConfigFieldBuilder(); + getGcsFuseCsiDriverConfigFieldBuilder(); + getStatefulHaConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + httpLoadBalancing_ = null; + if (httpLoadBalancingBuilder_ != null) { + httpLoadBalancingBuilder_.dispose(); + httpLoadBalancingBuilder_ = null; + } + horizontalPodAutoscaling_ = null; + if (horizontalPodAutoscalingBuilder_ != null) { + horizontalPodAutoscalingBuilder_.dispose(); + horizontalPodAutoscalingBuilder_ = null; + } + kubernetesDashboard_ = null; + if (kubernetesDashboardBuilder_ != null) { + kubernetesDashboardBuilder_.dispose(); + kubernetesDashboardBuilder_ = null; + } + networkPolicyConfig_ = null; + if (networkPolicyConfigBuilder_ != null) { + networkPolicyConfigBuilder_.dispose(); + networkPolicyConfigBuilder_ = null; + } + istioConfig_ = null; + if (istioConfigBuilder_ != null) { + istioConfigBuilder_.dispose(); + istioConfigBuilder_ = null; + } + cloudRunConfig_ = null; + if (cloudRunConfigBuilder_ != null) { + cloudRunConfigBuilder_.dispose(); + cloudRunConfigBuilder_ = null; + } + dnsCacheConfig_ = null; + if (dnsCacheConfigBuilder_ != null) { + dnsCacheConfigBuilder_.dispose(); + dnsCacheConfigBuilder_ = null; + } + configConnectorConfig_ = null; + if (configConnectorConfigBuilder_ != null) { + configConnectorConfigBuilder_.dispose(); + configConnectorConfigBuilder_ = null; + } + gcePersistentDiskCsiDriverConfig_ = null; + if (gcePersistentDiskCsiDriverConfigBuilder_ != null) { + gcePersistentDiskCsiDriverConfigBuilder_.dispose(); + gcePersistentDiskCsiDriverConfigBuilder_ = null; + } + kalmConfig_ = null; + if (kalmConfigBuilder_ != null) { + kalmConfigBuilder_.dispose(); + kalmConfigBuilder_ = null; + } + gcpFilestoreCsiDriverConfig_ = null; + if (gcpFilestoreCsiDriverConfigBuilder_ != null) { + gcpFilestoreCsiDriverConfigBuilder_.dispose(); + gcpFilestoreCsiDriverConfigBuilder_ = null; + } + gkeBackupAgentConfig_ = null; + if (gkeBackupAgentConfigBuilder_ != null) { + gkeBackupAgentConfigBuilder_.dispose(); + gkeBackupAgentConfigBuilder_ = null; + } + gcsFuseCsiDriverConfig_ = null; + if (gcsFuseCsiDriverConfigBuilder_ != null) { + gcsFuseCsiDriverConfigBuilder_.dispose(); + gcsFuseCsiDriverConfigBuilder_ = null; + } + statefulHaConfig_ = null; + if (statefulHaConfigBuilder_ != null) { + statefulHaConfigBuilder_.dispose(); + statefulHaConfigBuilder_ = 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 (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.AddonsConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.httpLoadBalancing_ = httpLoadBalancingBuilder_ == null + ? httpLoadBalancing_ + : httpLoadBalancingBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.horizontalPodAutoscaling_ = horizontalPodAutoscalingBuilder_ == null + ? horizontalPodAutoscaling_ + : horizontalPodAutoscalingBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.kubernetesDashboard_ = kubernetesDashboardBuilder_ == null + ? kubernetesDashboard_ + : kubernetesDashboardBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.networkPolicyConfig_ = networkPolicyConfigBuilder_ == null + ? networkPolicyConfig_ + : networkPolicyConfigBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.istioConfig_ = istioConfigBuilder_ == null + ? istioConfig_ + : istioConfigBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.cloudRunConfig_ = cloudRunConfigBuilder_ == null + ? cloudRunConfig_ + : cloudRunConfigBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.dnsCacheConfig_ = dnsCacheConfigBuilder_ == null + ? dnsCacheConfig_ + : dnsCacheConfigBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.configConnectorConfig_ = configConnectorConfigBuilder_ == null + ? configConnectorConfig_ + : configConnectorConfigBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.gcePersistentDiskCsiDriverConfig_ = gcePersistentDiskCsiDriverConfigBuilder_ == null + ? gcePersistentDiskCsiDriverConfig_ + : gcePersistentDiskCsiDriverConfigBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.kalmConfig_ = kalmConfigBuilder_ == null + ? kalmConfig_ + : kalmConfigBuilder_.build(); + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.gcpFilestoreCsiDriverConfig_ = gcpFilestoreCsiDriverConfigBuilder_ == null + ? gcpFilestoreCsiDriverConfig_ + : gcpFilestoreCsiDriverConfigBuilder_.build(); + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.gkeBackupAgentConfig_ = gkeBackupAgentConfigBuilder_ == null + ? gkeBackupAgentConfig_ + : gkeBackupAgentConfigBuilder_.build(); + to_bitField0_ |= 0x00000800; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.gcsFuseCsiDriverConfig_ = gcsFuseCsiDriverConfigBuilder_ == null + ? gcsFuseCsiDriverConfig_ + : gcsFuseCsiDriverConfigBuilder_.build(); + to_bitField0_ |= 0x00001000; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.statefulHaConfig_ = statefulHaConfigBuilder_ == null + ? statefulHaConfig_ + : statefulHaConfigBuilder_.build(); + to_bitField0_ |= 0x00002000; + } + result.bitField0_ |= to_bitField0_; + } + + @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()); + } + if (other.hasGcpFilestoreCsiDriverConfig()) { + mergeGcpFilestoreCsiDriverConfig(other.getGcpFilestoreCsiDriverConfig()); + } + if (other.hasGkeBackupAgentConfig()) { + mergeGkeBackupAgentConfig(other.getGkeBackupAgentConfig()); + } + if (other.hasGcsFuseCsiDriverConfig()) { + mergeGcsFuseCsiDriverConfig(other.getGcsFuseCsiDriverConfig()); + } + if (other.hasStatefulHaConfig()) { + mergeStatefulHaConfig(other.getStatefulHaConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getHttpLoadBalancingFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getHorizontalPodAutoscalingFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getKubernetesDashboardFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getNetworkPolicyConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getIstioConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 58: { + input.readMessage( + getCloudRunConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: { + input.readMessage( + getDnsCacheConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 82: { + input.readMessage( + getConfigConnectorConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 82 + case 90: { + input.readMessage( + getGcePersistentDiskCsiDriverConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 90 + case 98: { + input.readMessage( + getKalmConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 98 + case 114: { + input.readMessage( + getGcpFilestoreCsiDriverConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 114 + case 130: { + input.readMessage( + getGkeBackupAgentConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 130 + case 138: { + input.readMessage( + getGcsFuseCsiDriverConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 138 + case 146: { + input.readMessage( + getStatefulHaConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 146 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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 ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * 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; + } else { + httpLoadBalancingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + 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(); + } else { + httpLoadBalancingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + 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 (((bitField0_ & 0x00000001) != 0) && + httpLoadBalancing_ != null && + httpLoadBalancing_ != com.google.container.v1beta1.HttpLoadBalancing.getDefaultInstance()) { + getHttpLoadBalancingBuilder().mergeFrom(value); + } else { + httpLoadBalancing_ = value; + } + } else { + httpLoadBalancingBuilder_.mergeFrom(value); + } + if (httpLoadBalancing_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + 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() { + bitField0_ = (bitField0_ & ~0x00000001); + httpLoadBalancing_ = null; + if (httpLoadBalancingBuilder_ != null) { + httpLoadBalancingBuilder_.dispose(); + httpLoadBalancingBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000001; + 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 ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * 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; + } else { + horizontalPodAutoscalingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + 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(); + } else { + horizontalPodAutoscalingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + 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 (((bitField0_ & 0x00000002) != 0) && + horizontalPodAutoscaling_ != null && + horizontalPodAutoscaling_ != com.google.container.v1beta1.HorizontalPodAutoscaling.getDefaultInstance()) { + getHorizontalPodAutoscalingBuilder().mergeFrom(value); + } else { + horizontalPodAutoscaling_ = value; + } + } else { + horizontalPodAutoscalingBuilder_.mergeFrom(value); + } + if (horizontalPodAutoscaling_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + 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() { + bitField0_ = (bitField0_ & ~0x00000002); + horizontalPodAutoscaling_ = null; + if (horizontalPodAutoscalingBuilder_ != null) { + horizontalPodAutoscalingBuilder_.dispose(); + horizontalPodAutoscalingBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.AddonsConfig.kubernetes_dashboard is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1332 + * @return Whether the kubernetesDashboard field is set. + */ + @java.lang.Deprecated public boolean hasKubernetesDashboard() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * 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]; + * @deprecated google.container.v1beta1.AddonsConfig.kubernetes_dashboard is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1332 + * @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; + } else { + kubernetesDashboardBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + 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(); + } else { + kubernetesDashboardBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + 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 (((bitField0_ & 0x00000004) != 0) && + kubernetesDashboard_ != null && + kubernetesDashboard_ != com.google.container.v1beta1.KubernetesDashboard.getDefaultInstance()) { + getKubernetesDashboardBuilder().mergeFrom(value); + } else { + kubernetesDashboard_ = value; + } + } else { + kubernetesDashboardBuilder_.mergeFrom(value); + } + if (kubernetesDashboard_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + 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() { + bitField0_ = (bitField0_ & ~0x00000004); + kubernetesDashboard_ = null; + if (kubernetesDashboardBuilder_ != null) { + kubernetesDashboardBuilder_.dispose(); + kubernetesDashboardBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000004; + 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 ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * 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; + } else { + networkPolicyConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + 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(); + } else { + networkPolicyConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + 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 (((bitField0_ & 0x00000008) != 0) && + networkPolicyConfig_ != null && + networkPolicyConfig_ != com.google.container.v1beta1.NetworkPolicyConfig.getDefaultInstance()) { + getNetworkPolicyConfigBuilder().mergeFrom(value); + } else { + networkPolicyConfig_ = value; + } + } else { + networkPolicyConfigBuilder_.mergeFrom(value); + } + if (networkPolicyConfig_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + 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() { + bitField0_ = (bitField0_ & ~0x00000008); + networkPolicyConfig_ = null; + if (networkPolicyConfigBuilder_ != null) { + networkPolicyConfigBuilder_.dispose(); + networkPolicyConfigBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000008; + 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 [deprecated = true]; + * @deprecated google.container.v1beta1.AddonsConfig.istio_config is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1341 + * @return Whether the istioConfig field is set. + */ + @java.lang.Deprecated public boolean hasIstioConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+     * Configuration for Istio, an open platform to connect, manage, and secure
+     * microservices.
+     * 
+ * + * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; + * @deprecated google.container.v1beta1.AddonsConfig.istio_config is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1341 + * @return The istioConfig. + */ + @java.lang.Deprecated 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 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setIstioConfig(com.google.container.v1beta1.IstioConfig value) { + if (istioConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + istioConfig_ = value; + } else { + istioConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Configuration for Istio, an open platform to connect, manage, and secure
+     * microservices.
+     * 
+ * + * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setIstioConfig( + com.google.container.v1beta1.IstioConfig.Builder builderForValue) { + if (istioConfigBuilder_ == null) { + istioConfig_ = builderForValue.build(); + } else { + istioConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Configuration for Istio, an open platform to connect, manage, and secure
+     * microservices.
+     * 
+ * + * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; + */ + @java.lang.Deprecated public Builder mergeIstioConfig(com.google.container.v1beta1.IstioConfig value) { + if (istioConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + istioConfig_ != null && + istioConfig_ != com.google.container.v1beta1.IstioConfig.getDefaultInstance()) { + getIstioConfigBuilder().mergeFrom(value); + } else { + istioConfig_ = value; + } + } else { + istioConfigBuilder_.mergeFrom(value); + } + if (istioConfig_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for Istio, an open platform to connect, manage, and secure
+     * microservices.
+     * 
+ * + * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearIstioConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + istioConfig_ = null; + if (istioConfigBuilder_ != null) { + istioConfigBuilder_.dispose(); + istioConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for Istio, an open platform to connect, manage, and secure
+     * microservices.
+     * 
+ * + * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.container.v1beta1.IstioConfig.Builder getIstioConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getIstioConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for Istio, an open platform to connect, manage, and secure
+     * microservices.
+     * 
+ * + * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.container.v1beta1.IstioConfigOrBuilder getIstioConfigOrBuilder() { + if (istioConfigBuilder_ != null) { + return istioConfigBuilder_.getMessageOrBuilder(); + } 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 [deprecated = true]; + */ + 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 ((bitField0_ & 0x00000020) != 0); + } + /** + *
+     * 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; + } else { + cloudRunConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + 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(); + } else { + cloudRunConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + 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 (((bitField0_ & 0x00000020) != 0) && + cloudRunConfig_ != null && + cloudRunConfig_ != com.google.container.v1beta1.CloudRunConfig.getDefaultInstance()) { + getCloudRunConfigBuilder().mergeFrom(value); + } else { + cloudRunConfig_ = value; + } + } else { + cloudRunConfigBuilder_.mergeFrom(value); + } + if (cloudRunConfig_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + 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() { + bitField0_ = (bitField0_ & ~0x00000020); + cloudRunConfig_ = null; + if (cloudRunConfigBuilder_ != null) { + cloudRunConfigBuilder_.dispose(); + cloudRunConfigBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000020; + 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 ((bitField0_ & 0x00000040) != 0); + } + /** + *
+     * 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; + } else { + dnsCacheConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + 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(); + } else { + dnsCacheConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + 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 (((bitField0_ & 0x00000040) != 0) && + dnsCacheConfig_ != null && + dnsCacheConfig_ != com.google.container.v1beta1.DnsCacheConfig.getDefaultInstance()) { + getDnsCacheConfigBuilder().mergeFrom(value); + } else { + dnsCacheConfig_ = value; + } + } else { + dnsCacheConfigBuilder_.mergeFrom(value); + } + if (dnsCacheConfig_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
+     * 
+ * + * .google.container.v1beta1.DnsCacheConfig dns_cache_config = 8; + */ + public Builder clearDnsCacheConfig() { + bitField0_ = (bitField0_ & ~0x00000040); + dnsCacheConfig_ = null; + if (dnsCacheConfigBuilder_ != null) { + dnsCacheConfigBuilder_.dispose(); + dnsCacheConfigBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000040; + 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 ((bitField0_ & 0x00000080) != 0); + } + /** + *
+     * 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; + } else { + configConnectorConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + 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(); + } else { + configConnectorConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + 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 (((bitField0_ & 0x00000080) != 0) && + configConnectorConfig_ != null && + configConnectorConfig_ != com.google.container.v1beta1.ConfigConnectorConfig.getDefaultInstance()) { + getConfigConnectorConfigBuilder().mergeFrom(value); + } else { + configConnectorConfig_ = value; + } + } else { + configConnectorConfigBuilder_.mergeFrom(value); + } + if (configConnectorConfig_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + 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() { + bitField0_ = (bitField0_ & ~0x00000080); + configConnectorConfig_ = null; + if (configConnectorConfigBuilder_ != null) { + configConnectorConfigBuilder_.dispose(); + configConnectorConfigBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000080; + 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 ((bitField0_ & 0x00000100) != 0); + } + /** + *
+     * 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; + } else { + gcePersistentDiskCsiDriverConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + 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(); + } else { + gcePersistentDiskCsiDriverConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + 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 (((bitField0_ & 0x00000100) != 0) && + gcePersistentDiskCsiDriverConfig_ != null && + gcePersistentDiskCsiDriverConfig_ != com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig.getDefaultInstance()) { + getGcePersistentDiskCsiDriverConfigBuilder().mergeFrom(value); + } else { + gcePersistentDiskCsiDriverConfig_ = value; + } + } else { + gcePersistentDiskCsiDriverConfigBuilder_.mergeFrom(value); + } + if (gcePersistentDiskCsiDriverConfig_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + 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() { + bitField0_ = (bitField0_ & ~0x00000100); + gcePersistentDiskCsiDriverConfig_ = null; + if (gcePersistentDiskCsiDriverConfigBuilder_ != null) { + gcePersistentDiskCsiDriverConfigBuilder_.dispose(); + gcePersistentDiskCsiDriverConfigBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000100; + 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 [deprecated = true]; + * @deprecated google.container.v1beta1.AddonsConfig.kalm_config is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1360 + * @return Whether the kalmConfig field is set. + */ + @java.lang.Deprecated public boolean hasKalmConfig() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + *
+     * Configuration for the KALM addon, which manages the lifecycle of k8s
+     * applications.
+     * 
+ * + * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; + * @deprecated google.container.v1beta1.AddonsConfig.kalm_config is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1360 + * @return The kalmConfig. + */ + @java.lang.Deprecated 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 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setKalmConfig(com.google.container.v1beta1.KalmConfig value) { + if (kalmConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kalmConfig_ = value; + } else { + kalmConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * Configuration for the KALM addon, which manages the lifecycle of k8s
+     * applications.
+     * 
+ * + * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setKalmConfig( + com.google.container.v1beta1.KalmConfig.Builder builderForValue) { + if (kalmConfigBuilder_ == null) { + kalmConfig_ = builderForValue.build(); + } else { + kalmConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * Configuration for the KALM addon, which manages the lifecycle of k8s
+     * applications.
+     * 
+ * + * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; + */ + @java.lang.Deprecated public Builder mergeKalmConfig(com.google.container.v1beta1.KalmConfig value) { + if (kalmConfigBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) && + kalmConfig_ != null && + kalmConfig_ != com.google.container.v1beta1.KalmConfig.getDefaultInstance()) { + getKalmConfigBuilder().mergeFrom(value); + } else { + kalmConfig_ = value; + } + } else { + kalmConfigBuilder_.mergeFrom(value); + } + if (kalmConfig_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for the KALM addon, which manages the lifecycle of k8s
+     * applications.
+     * 
+ * + * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearKalmConfig() { + bitField0_ = (bitField0_ & ~0x00000200); + kalmConfig_ = null; + if (kalmConfigBuilder_ != null) { + kalmConfigBuilder_.dispose(); + kalmConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for the KALM addon, which manages the lifecycle of k8s
+     * applications.
+     * 
+ * + * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.container.v1beta1.KalmConfig.Builder getKalmConfigBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getKalmConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for the KALM addon, which manages the lifecycle of k8s
+     * applications.
+     * 
+ * + * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; + */ + @java.lang.Deprecated 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 [deprecated = true]; + */ + 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_; + } + + private com.google.container.v1beta1.GcpFilestoreCsiDriverConfig gcpFilestoreCsiDriverConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig, com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.Builder, com.google.container.v1beta1.GcpFilestoreCsiDriverConfigOrBuilder> gcpFilestoreCsiDriverConfigBuilder_; + /** + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * @return Whether the gcpFilestoreCsiDriverConfig field is set. + */ + public boolean hasGcpFilestoreCsiDriverConfig() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * @return The gcpFilestoreCsiDriverConfig. + */ + public com.google.container.v1beta1.GcpFilestoreCsiDriverConfig getGcpFilestoreCsiDriverConfig() { + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + return gcpFilestoreCsiDriverConfig_ == null ? com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.getDefaultInstance() : gcpFilestoreCsiDriverConfig_; + } else { + return gcpFilestoreCsiDriverConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + */ + public Builder setGcpFilestoreCsiDriverConfig(com.google.container.v1beta1.GcpFilestoreCsiDriverConfig value) { + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gcpFilestoreCsiDriverConfig_ = value; + } else { + gcpFilestoreCsiDriverConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + */ + public Builder setGcpFilestoreCsiDriverConfig( + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.Builder builderForValue) { + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + gcpFilestoreCsiDriverConfig_ = builderForValue.build(); + } else { + gcpFilestoreCsiDriverConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + */ + public Builder mergeGcpFilestoreCsiDriverConfig(com.google.container.v1beta1.GcpFilestoreCsiDriverConfig value) { + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) && + gcpFilestoreCsiDriverConfig_ != null && + gcpFilestoreCsiDriverConfig_ != com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.getDefaultInstance()) { + getGcpFilestoreCsiDriverConfigBuilder().mergeFrom(value); + } else { + gcpFilestoreCsiDriverConfig_ = value; + } + } else { + gcpFilestoreCsiDriverConfigBuilder_.mergeFrom(value); + } + if (gcpFilestoreCsiDriverConfig_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + */ + public Builder clearGcpFilestoreCsiDriverConfig() { + bitField0_ = (bitField0_ & ~0x00000400); + gcpFilestoreCsiDriverConfig_ = null; + if (gcpFilestoreCsiDriverConfigBuilder_ != null) { + gcpFilestoreCsiDriverConfigBuilder_.dispose(); + gcpFilestoreCsiDriverConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + */ + public com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.Builder getGcpFilestoreCsiDriverConfigBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getGcpFilestoreCsiDriverConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + */ + public com.google.container.v1beta1.GcpFilestoreCsiDriverConfigOrBuilder getGcpFilestoreCsiDriverConfigOrBuilder() { + if (gcpFilestoreCsiDriverConfigBuilder_ != null) { + return gcpFilestoreCsiDriverConfigBuilder_.getMessageOrBuilder(); + } else { + return gcpFilestoreCsiDriverConfig_ == null ? + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.getDefaultInstance() : gcpFilestoreCsiDriverConfig_; + } + } + /** + *
+     * Configuration for the GCP Filestore CSI driver.
+     * 
+ * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig, com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.Builder, com.google.container.v1beta1.GcpFilestoreCsiDriverConfigOrBuilder> + getGcpFilestoreCsiDriverConfigFieldBuilder() { + if (gcpFilestoreCsiDriverConfigBuilder_ == null) { + gcpFilestoreCsiDriverConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig, com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.Builder, com.google.container.v1beta1.GcpFilestoreCsiDriverConfigOrBuilder>( + getGcpFilestoreCsiDriverConfig(), + getParentForChildren(), + isClean()); + gcpFilestoreCsiDriverConfig_ = null; + } + return gcpFilestoreCsiDriverConfigBuilder_; + } + + private com.google.container.v1beta1.GkeBackupAgentConfig gkeBackupAgentConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GkeBackupAgentConfig, com.google.container.v1beta1.GkeBackupAgentConfig.Builder, com.google.container.v1beta1.GkeBackupAgentConfigOrBuilder> gkeBackupAgentConfigBuilder_; + /** + *
+     * Configuration for the Backup for GKE agent addon.
+     * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + * @return Whether the gkeBackupAgentConfig field is set. + */ + public boolean hasGkeBackupAgentConfig() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + *
+     * Configuration for the Backup for GKE agent addon.
+     * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + * @return The gkeBackupAgentConfig. + */ + public com.google.container.v1beta1.GkeBackupAgentConfig getGkeBackupAgentConfig() { + if (gkeBackupAgentConfigBuilder_ == null) { + return gkeBackupAgentConfig_ == null ? com.google.container.v1beta1.GkeBackupAgentConfig.getDefaultInstance() : gkeBackupAgentConfig_; + } else { + return gkeBackupAgentConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for the Backup for GKE agent addon.
+     * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + */ + public Builder setGkeBackupAgentConfig(com.google.container.v1beta1.GkeBackupAgentConfig value) { + if (gkeBackupAgentConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gkeBackupAgentConfig_ = value; + } else { + gkeBackupAgentConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * Configuration for the Backup for GKE agent addon.
+     * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + */ + public Builder setGkeBackupAgentConfig( + com.google.container.v1beta1.GkeBackupAgentConfig.Builder builderForValue) { + if (gkeBackupAgentConfigBuilder_ == null) { + gkeBackupAgentConfig_ = builderForValue.build(); + } else { + gkeBackupAgentConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * Configuration for the Backup for GKE agent addon.
+     * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + */ + public Builder mergeGkeBackupAgentConfig(com.google.container.v1beta1.GkeBackupAgentConfig value) { + if (gkeBackupAgentConfigBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) && + gkeBackupAgentConfig_ != null && + gkeBackupAgentConfig_ != com.google.container.v1beta1.GkeBackupAgentConfig.getDefaultInstance()) { + getGkeBackupAgentConfigBuilder().mergeFrom(value); + } else { + gkeBackupAgentConfig_ = value; + } + } else { + gkeBackupAgentConfigBuilder_.mergeFrom(value); + } + if (gkeBackupAgentConfig_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for the Backup for GKE agent addon.
+     * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + */ + public Builder clearGkeBackupAgentConfig() { + bitField0_ = (bitField0_ & ~0x00000800); + gkeBackupAgentConfig_ = null; + if (gkeBackupAgentConfigBuilder_ != null) { + gkeBackupAgentConfigBuilder_.dispose(); + gkeBackupAgentConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for the Backup for GKE agent addon.
+     * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + */ + public com.google.container.v1beta1.GkeBackupAgentConfig.Builder getGkeBackupAgentConfigBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return getGkeBackupAgentConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for the Backup for GKE agent addon.
+     * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + */ + public com.google.container.v1beta1.GkeBackupAgentConfigOrBuilder getGkeBackupAgentConfigOrBuilder() { + if (gkeBackupAgentConfigBuilder_ != null) { + return gkeBackupAgentConfigBuilder_.getMessageOrBuilder(); + } else { + return gkeBackupAgentConfig_ == null ? + com.google.container.v1beta1.GkeBackupAgentConfig.getDefaultInstance() : gkeBackupAgentConfig_; + } + } + /** + *
+     * Configuration for the Backup for GKE agent addon.
+     * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GkeBackupAgentConfig, com.google.container.v1beta1.GkeBackupAgentConfig.Builder, com.google.container.v1beta1.GkeBackupAgentConfigOrBuilder> + getGkeBackupAgentConfigFieldBuilder() { + if (gkeBackupAgentConfigBuilder_ == null) { + gkeBackupAgentConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GkeBackupAgentConfig, com.google.container.v1beta1.GkeBackupAgentConfig.Builder, com.google.container.v1beta1.GkeBackupAgentConfigOrBuilder>( + getGkeBackupAgentConfig(), + getParentForChildren(), + isClean()); + gkeBackupAgentConfig_ = null; + } + return gkeBackupAgentConfigBuilder_; + } + + private com.google.container.v1beta1.GcsFuseCsiDriverConfig gcsFuseCsiDriverConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcsFuseCsiDriverConfig, com.google.container.v1beta1.GcsFuseCsiDriverConfig.Builder, com.google.container.v1beta1.GcsFuseCsiDriverConfigOrBuilder> gcsFuseCsiDriverConfigBuilder_; + /** + *
+     * Configuration for the Cloud Storage Fuse CSI driver.
+     * 
+ * + * .google.container.v1beta1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; + * @return Whether the gcsFuseCsiDriverConfig field is set. + */ + public boolean hasGcsFuseCsiDriverConfig() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + *
+     * Configuration for the Cloud Storage Fuse CSI driver.
+     * 
+ * + * .google.container.v1beta1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; + * @return The gcsFuseCsiDriverConfig. + */ + public com.google.container.v1beta1.GcsFuseCsiDriverConfig getGcsFuseCsiDriverConfig() { + if (gcsFuseCsiDriverConfigBuilder_ == null) { + return gcsFuseCsiDriverConfig_ == null ? com.google.container.v1beta1.GcsFuseCsiDriverConfig.getDefaultInstance() : gcsFuseCsiDriverConfig_; + } else { + return gcsFuseCsiDriverConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for the Cloud Storage Fuse CSI driver.
+     * 
+ * + * .google.container.v1beta1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; + */ + public Builder setGcsFuseCsiDriverConfig(com.google.container.v1beta1.GcsFuseCsiDriverConfig value) { + if (gcsFuseCsiDriverConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gcsFuseCsiDriverConfig_ = value; + } else { + gcsFuseCsiDriverConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + *
+     * Configuration for the Cloud Storage Fuse CSI driver.
+     * 
+ * + * .google.container.v1beta1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; + */ + public Builder setGcsFuseCsiDriverConfig( + com.google.container.v1beta1.GcsFuseCsiDriverConfig.Builder builderForValue) { + if (gcsFuseCsiDriverConfigBuilder_ == null) { + gcsFuseCsiDriverConfig_ = builderForValue.build(); + } else { + gcsFuseCsiDriverConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + *
+     * Configuration for the Cloud Storage Fuse CSI driver.
+     * 
+ * + * .google.container.v1beta1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; + */ + public Builder mergeGcsFuseCsiDriverConfig(com.google.container.v1beta1.GcsFuseCsiDriverConfig value) { + if (gcsFuseCsiDriverConfigBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) && + gcsFuseCsiDriverConfig_ != null && + gcsFuseCsiDriverConfig_ != com.google.container.v1beta1.GcsFuseCsiDriverConfig.getDefaultInstance()) { + getGcsFuseCsiDriverConfigBuilder().mergeFrom(value); + } else { + gcsFuseCsiDriverConfig_ = value; + } + } else { + gcsFuseCsiDriverConfigBuilder_.mergeFrom(value); + } + if (gcsFuseCsiDriverConfig_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for the Cloud Storage Fuse CSI driver.
+     * 
+ * + * .google.container.v1beta1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; + */ + public Builder clearGcsFuseCsiDriverConfig() { + bitField0_ = (bitField0_ & ~0x00001000); + gcsFuseCsiDriverConfig_ = null; + if (gcsFuseCsiDriverConfigBuilder_ != null) { + gcsFuseCsiDriverConfigBuilder_.dispose(); + gcsFuseCsiDriverConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for the Cloud Storage Fuse CSI driver.
+     * 
+ * + * .google.container.v1beta1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; + */ + public com.google.container.v1beta1.GcsFuseCsiDriverConfig.Builder getGcsFuseCsiDriverConfigBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return getGcsFuseCsiDriverConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for the Cloud Storage Fuse CSI driver.
+     * 
+ * + * .google.container.v1beta1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; + */ + public com.google.container.v1beta1.GcsFuseCsiDriverConfigOrBuilder getGcsFuseCsiDriverConfigOrBuilder() { + if (gcsFuseCsiDriverConfigBuilder_ != null) { + return gcsFuseCsiDriverConfigBuilder_.getMessageOrBuilder(); + } else { + return gcsFuseCsiDriverConfig_ == null ? + com.google.container.v1beta1.GcsFuseCsiDriverConfig.getDefaultInstance() : gcsFuseCsiDriverConfig_; + } + } + /** + *
+     * Configuration for the Cloud Storage Fuse CSI driver.
+     * 
+ * + * .google.container.v1beta1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcsFuseCsiDriverConfig, com.google.container.v1beta1.GcsFuseCsiDriverConfig.Builder, com.google.container.v1beta1.GcsFuseCsiDriverConfigOrBuilder> + getGcsFuseCsiDriverConfigFieldBuilder() { + if (gcsFuseCsiDriverConfigBuilder_ == null) { + gcsFuseCsiDriverConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcsFuseCsiDriverConfig, com.google.container.v1beta1.GcsFuseCsiDriverConfig.Builder, com.google.container.v1beta1.GcsFuseCsiDriverConfigOrBuilder>( + getGcsFuseCsiDriverConfig(), + getParentForChildren(), + isClean()); + gcsFuseCsiDriverConfig_ = null; + } + return gcsFuseCsiDriverConfigBuilder_; + } + + private com.google.container.v1beta1.StatefulHAConfig statefulHaConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.StatefulHAConfig, com.google.container.v1beta1.StatefulHAConfig.Builder, com.google.container.v1beta1.StatefulHAConfigOrBuilder> statefulHaConfigBuilder_; + /** + *
+     * Optional. Configuration for the StatefulHA add-on.
+     * 
+ * + * .google.container.v1beta1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the statefulHaConfig field is set. + */ + public boolean hasStatefulHaConfig() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + *
+     * Optional. Configuration for the StatefulHA add-on.
+     * 
+ * + * .google.container.v1beta1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return The statefulHaConfig. + */ + public com.google.container.v1beta1.StatefulHAConfig getStatefulHaConfig() { + if (statefulHaConfigBuilder_ == null) { + return statefulHaConfig_ == null ? com.google.container.v1beta1.StatefulHAConfig.getDefaultInstance() : statefulHaConfig_; + } else { + return statefulHaConfigBuilder_.getMessage(); + } + } + /** + *
+     * Optional. Configuration for the StatefulHA add-on.
+     * 
+ * + * .google.container.v1beta1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setStatefulHaConfig(com.google.container.v1beta1.StatefulHAConfig value) { + if (statefulHaConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + statefulHaConfig_ = value; + } else { + statefulHaConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + *
+     * Optional. Configuration for the StatefulHA add-on.
+     * 
+ * + * .google.container.v1beta1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setStatefulHaConfig( + com.google.container.v1beta1.StatefulHAConfig.Builder builderForValue) { + if (statefulHaConfigBuilder_ == null) { + statefulHaConfig_ = builderForValue.build(); + } else { + statefulHaConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + *
+     * Optional. Configuration for the StatefulHA add-on.
+     * 
+ * + * .google.container.v1beta1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeStatefulHaConfig(com.google.container.v1beta1.StatefulHAConfig value) { + if (statefulHaConfigBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) && + statefulHaConfig_ != null && + statefulHaConfig_ != com.google.container.v1beta1.StatefulHAConfig.getDefaultInstance()) { + getStatefulHaConfigBuilder().mergeFrom(value); + } else { + statefulHaConfig_ = value; + } + } else { + statefulHaConfigBuilder_.mergeFrom(value); + } + if (statefulHaConfig_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } + return this; + } + /** + *
+     * Optional. Configuration for the StatefulHA add-on.
+     * 
+ * + * .google.container.v1beta1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearStatefulHaConfig() { + bitField0_ = (bitField0_ & ~0x00002000); + statefulHaConfig_ = null; + if (statefulHaConfigBuilder_ != null) { + statefulHaConfigBuilder_.dispose(); + statefulHaConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Optional. Configuration for the StatefulHA add-on.
+     * 
+ * + * .google.container.v1beta1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.container.v1beta1.StatefulHAConfig.Builder getStatefulHaConfigBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return getStatefulHaConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Optional. Configuration for the StatefulHA add-on.
+     * 
+ * + * .google.container.v1beta1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.container.v1beta1.StatefulHAConfigOrBuilder getStatefulHaConfigOrBuilder() { + if (statefulHaConfigBuilder_ != null) { + return statefulHaConfigBuilder_.getMessageOrBuilder(); + } else { + return statefulHaConfig_ == null ? + com.google.container.v1beta1.StatefulHAConfig.getDefaultInstance() : statefulHaConfig_; + } + } + /** + *
+     * Optional. Configuration for the StatefulHA add-on.
+     * 
+ * + * .google.container.v1beta1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.StatefulHAConfig, com.google.container.v1beta1.StatefulHAConfig.Builder, com.google.container.v1beta1.StatefulHAConfigOrBuilder> + getStatefulHaConfigFieldBuilder() { + if (statefulHaConfigBuilder_ == null) { + statefulHaConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.StatefulHAConfig, com.google.container.v1beta1.StatefulHAConfig.Builder, com.google.container.v1beta1.StatefulHAConfigOrBuilder>( + getStatefulHaConfig(), + getParentForChildren(), + isClean()); + statefulHaConfig_ = null; + } + return statefulHaConfigBuilder_; + } + @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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfigOrBuilder.java new file mode 100644 index 000000000000..67ec2d1f860e --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AddonsConfigOrBuilder.java @@ -0,0 +1,442 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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]; + * @deprecated google.container.v1beta1.AddonsConfig.kubernetes_dashboard is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1332 + * @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]; + * @deprecated google.container.v1beta1.AddonsConfig.kubernetes_dashboard is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1332 + * @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 [deprecated = true]; + * @deprecated google.container.v1beta1.AddonsConfig.istio_config is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1341 + * @return Whether the istioConfig field is set. + */ + @java.lang.Deprecated boolean hasIstioConfig(); + /** + *
+   * Configuration for Istio, an open platform to connect, manage, and secure
+   * microservices.
+   * 
+ * + * .google.container.v1beta1.IstioConfig istio_config = 5 [deprecated = true]; + * @deprecated google.container.v1beta1.AddonsConfig.istio_config is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1341 + * @return The istioConfig. + */ + @java.lang.Deprecated 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 [deprecated = true]; + */ + @java.lang.Deprecated 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 [deprecated = true]; + * @deprecated google.container.v1beta1.AddonsConfig.kalm_config is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1360 + * @return Whether the kalmConfig field is set. + */ + @java.lang.Deprecated boolean hasKalmConfig(); + /** + *
+   * Configuration for the KALM addon, which manages the lifecycle of k8s
+   * applications.
+   * 
+ * + * .google.container.v1beta1.KalmConfig kalm_config = 12 [deprecated = true]; + * @deprecated google.container.v1beta1.AddonsConfig.kalm_config is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1360 + * @return The kalmConfig. + */ + @java.lang.Deprecated 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 [deprecated = true]; + */ + @java.lang.Deprecated com.google.container.v1beta1.KalmConfigOrBuilder getKalmConfigOrBuilder(); + + /** + *
+   * Configuration for the GCP Filestore CSI driver.
+   * 
+ * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * @return Whether the gcpFilestoreCsiDriverConfig field is set. + */ + boolean hasGcpFilestoreCsiDriverConfig(); + /** + *
+   * Configuration for the GCP Filestore CSI driver.
+   * 
+ * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + * @return The gcpFilestoreCsiDriverConfig. + */ + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig getGcpFilestoreCsiDriverConfig(); + /** + *
+   * Configuration for the GCP Filestore CSI driver.
+   * 
+ * + * .google.container.v1beta1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + */ + com.google.container.v1beta1.GcpFilestoreCsiDriverConfigOrBuilder getGcpFilestoreCsiDriverConfigOrBuilder(); + + /** + *
+   * Configuration for the Backup for GKE agent addon.
+   * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + * @return Whether the gkeBackupAgentConfig field is set. + */ + boolean hasGkeBackupAgentConfig(); + /** + *
+   * Configuration for the Backup for GKE agent addon.
+   * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + * @return The gkeBackupAgentConfig. + */ + com.google.container.v1beta1.GkeBackupAgentConfig getGkeBackupAgentConfig(); + /** + *
+   * Configuration for the Backup for GKE agent addon.
+   * 
+ * + * .google.container.v1beta1.GkeBackupAgentConfig gke_backup_agent_config = 16; + */ + com.google.container.v1beta1.GkeBackupAgentConfigOrBuilder getGkeBackupAgentConfigOrBuilder(); + + /** + *
+   * Configuration for the Cloud Storage Fuse CSI driver.
+   * 
+ * + * .google.container.v1beta1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; + * @return Whether the gcsFuseCsiDriverConfig field is set. + */ + boolean hasGcsFuseCsiDriverConfig(); + /** + *
+   * Configuration for the Cloud Storage Fuse CSI driver.
+   * 
+ * + * .google.container.v1beta1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; + * @return The gcsFuseCsiDriverConfig. + */ + com.google.container.v1beta1.GcsFuseCsiDriverConfig getGcsFuseCsiDriverConfig(); + /** + *
+   * Configuration for the Cloud Storage Fuse CSI driver.
+   * 
+ * + * .google.container.v1beta1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; + */ + com.google.container.v1beta1.GcsFuseCsiDriverConfigOrBuilder getGcsFuseCsiDriverConfigOrBuilder(); + + /** + *
+   * Optional. Configuration for the StatefulHA add-on.
+   * 
+ * + * .google.container.v1beta1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the statefulHaConfig field is set. + */ + boolean hasStatefulHaConfig(); + /** + *
+   * Optional. Configuration for the StatefulHA add-on.
+   * 
+ * + * .google.container.v1beta1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return The statefulHaConfig. + */ + com.google.container.v1beta1.StatefulHAConfig getStatefulHaConfig(); + /** + *
+   * Optional. Configuration for the StatefulHA add-on.
+   * 
+ * + * .google.container.v1beta1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.container.v1beta1.StatefulHAConfigOrBuilder getStatefulHaConfigOrBuilder(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdvancedDatapathObservabilityConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdvancedDatapathObservabilityConfig.java new file mode 100644 index 000000000000..06385ee23776 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdvancedDatapathObservabilityConfig.java @@ -0,0 +1,899 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * AdvancedDatapathObservabilityConfig specifies configuration of observability
+ * features of advanced datapath.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.AdvancedDatapathObservabilityConfig} + */ +public final class AdvancedDatapathObservabilityConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.AdvancedDatapathObservabilityConfig) + AdvancedDatapathObservabilityConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use AdvancedDatapathObservabilityConfig.newBuilder() to construct. + private AdvancedDatapathObservabilityConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AdvancedDatapathObservabilityConfig() { + relayMode_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AdvancedDatapathObservabilityConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AdvancedDatapathObservabilityConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AdvancedDatapathObservabilityConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.class, com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.Builder.class); + } + + /** + *
+   * Supported Relay modes
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode} + */ + public enum RelayMode + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Default value. This shouldn't be used.
+     * 
+ * + * RELAY_MODE_UNSPECIFIED = 0; + */ + RELAY_MODE_UNSPECIFIED(0), + /** + *
+     * disabled
+     * 
+ * + * DISABLED = 1; + */ + DISABLED(1), + /** + *
+     * exposed via internal load balancer
+     * 
+ * + * INTERNAL_VPC_LB = 3; + */ + INTERNAL_VPC_LB(3), + /** + *
+     * exposed via external load balancer
+     * 
+ * + * EXTERNAL_LB = 4; + */ + EXTERNAL_LB(4), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Default value. This shouldn't be used.
+     * 
+ * + * RELAY_MODE_UNSPECIFIED = 0; + */ + public static final int RELAY_MODE_UNSPECIFIED_VALUE = 0; + /** + *
+     * disabled
+     * 
+ * + * DISABLED = 1; + */ + public static final int DISABLED_VALUE = 1; + /** + *
+     * exposed via internal load balancer
+     * 
+ * + * INTERNAL_VPC_LB = 3; + */ + public static final int INTERNAL_VPC_LB_VALUE = 3; + /** + *
+     * exposed via external load balancer
+     * 
+ * + * EXTERNAL_LB = 4; + */ + public static final int EXTERNAL_LB_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 RelayMode 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 RelayMode forNumber(int value) { + switch (value) { + case 0: return RELAY_MODE_UNSPECIFIED; + case 1: return DISABLED; + case 3: return INTERNAL_VPC_LB; + case 4: return EXTERNAL_LB; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + RelayMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RelayMode findValueByNumber(int number) { + return RelayMode.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.AdvancedDatapathObservabilityConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final RelayMode[] VALUES = values(); + + public static RelayMode 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 RelayMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode) + } + + private int bitField0_; + public static final int ENABLE_METRICS_FIELD_NUMBER = 1; + private boolean enableMetrics_ = false; + /** + *
+   * Expose flow metrics on nodes
+   * 
+ * + * bool enable_metrics = 1; + * @return The enableMetrics. + */ + @java.lang.Override + public boolean getEnableMetrics() { + return enableMetrics_; + } + + public static final int RELAY_MODE_FIELD_NUMBER = 2; + private int relayMode_ = 0; + /** + *
+   * Method used to make Relay available
+   * 
+ * + * .google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; + * @return The enum numeric value on the wire for relayMode. + */ + @java.lang.Override public int getRelayModeValue() { + return relayMode_; + } + /** + *
+   * Method used to make Relay available
+   * 
+ * + * .google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; + * @return The relayMode. + */ + @java.lang.Override public com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode getRelayMode() { + com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode result = com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode.forNumber(relayMode_); + return result == null ? com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode.UNRECOGNIZED : result; + } + + public static final int ENABLE_RELAY_FIELD_NUMBER = 3; + private boolean enableRelay_ = false; + /** + *
+   * Enable Relay component
+   * 
+ * + * optional bool enable_relay = 3; + * @return Whether the enableRelay field is set. + */ + @java.lang.Override + public boolean hasEnableRelay() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Enable Relay component
+   * 
+ * + * optional bool enable_relay = 3; + * @return The enableRelay. + */ + @java.lang.Override + public boolean getEnableRelay() { + return enableRelay_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (enableMetrics_ != false) { + output.writeBool(1, enableMetrics_); + } + if (relayMode_ != com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode.RELAY_MODE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, relayMode_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(3, enableRelay_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableMetrics_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enableMetrics_); + } + if (relayMode_ != com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode.RELAY_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, relayMode_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, enableRelay_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.AdvancedDatapathObservabilityConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.AdvancedDatapathObservabilityConfig other = (com.google.container.v1beta1.AdvancedDatapathObservabilityConfig) obj; + + if (getEnableMetrics() + != other.getEnableMetrics()) return false; + if (relayMode_ != other.relayMode_) return false; + if (hasEnableRelay() != other.hasEnableRelay()) return false; + if (hasEnableRelay()) { + if (getEnableRelay() + != other.getEnableRelay()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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_METRICS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableMetrics()); + hash = (37 * hash) + RELAY_MODE_FIELD_NUMBER; + hash = (53 * hash) + relayMode_; + if (hasEnableRelay()) { + hash = (37 * hash) + ENABLE_RELAY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableRelay()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.AdvancedDatapathObservabilityConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.AdvancedDatapathObservabilityConfig parseFrom( + 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.AdvancedDatapathObservabilityConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.AdvancedDatapathObservabilityConfig parseFrom( + com.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.AdvancedDatapathObservabilityConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.AdvancedDatapathObservabilityConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.AdvancedDatapathObservabilityConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.AdvancedDatapathObservabilityConfig parseFrom( + java.io.InputStream 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.AdvancedDatapathObservabilityConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.AdvancedDatapathObservabilityConfig parseDelimitedFrom( + java.io.InputStream 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.AdvancedDatapathObservabilityConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.AdvancedDatapathObservabilityConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.AdvancedDatapathObservabilityConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * AdvancedDatapathObservabilityConfig specifies configuration of observability
+   * features of advanced datapath.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.AdvancedDatapathObservabilityConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.AdvancedDatapathObservabilityConfig) + com.google.container.v1beta1.AdvancedDatapathObservabilityConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AdvancedDatapathObservabilityConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AdvancedDatapathObservabilityConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.class, com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enableMetrics_ = false; + relayMode_ = 0; + enableRelay_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AdvancedDatapathObservabilityConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.AdvancedDatapathObservabilityConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.AdvancedDatapathObservabilityConfig build() { + com.google.container.v1beta1.AdvancedDatapathObservabilityConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.AdvancedDatapathObservabilityConfig buildPartial() { + com.google.container.v1beta1.AdvancedDatapathObservabilityConfig result = new com.google.container.v1beta1.AdvancedDatapathObservabilityConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.AdvancedDatapathObservabilityConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enableMetrics_ = enableMetrics_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.relayMode_ = relayMode_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.enableRelay_ = enableRelay_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @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.AdvancedDatapathObservabilityConfig) { + return mergeFrom((com.google.container.v1beta1.AdvancedDatapathObservabilityConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.AdvancedDatapathObservabilityConfig other) { + if (other == com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.getDefaultInstance()) return this; + if (other.getEnableMetrics() != false) { + setEnableMetrics(other.getEnableMetrics()); + } + if (other.relayMode_ != 0) { + setRelayModeValue(other.getRelayModeValue()); + } + if (other.hasEnableRelay()) { + setEnableRelay(other.getEnableRelay()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enableMetrics_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + relayMode_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + enableRelay_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enableMetrics_ ; + /** + *
+     * Expose flow metrics on nodes
+     * 
+ * + * bool enable_metrics = 1; + * @return The enableMetrics. + */ + @java.lang.Override + public boolean getEnableMetrics() { + return enableMetrics_; + } + /** + *
+     * Expose flow metrics on nodes
+     * 
+ * + * bool enable_metrics = 1; + * @param value The enableMetrics to set. + * @return This builder for chaining. + */ + public Builder setEnableMetrics(boolean value) { + + enableMetrics_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Expose flow metrics on nodes
+     * 
+ * + * bool enable_metrics = 1; + * @return This builder for chaining. + */ + public Builder clearEnableMetrics() { + bitField0_ = (bitField0_ & ~0x00000001); + enableMetrics_ = false; + onChanged(); + return this; + } + + private int relayMode_ = 0; + /** + *
+     * Method used to make Relay available
+     * 
+ * + * .google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; + * @return The enum numeric value on the wire for relayMode. + */ + @java.lang.Override public int getRelayModeValue() { + return relayMode_; + } + /** + *
+     * Method used to make Relay available
+     * 
+ * + * .google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; + * @param value The enum numeric value on the wire for relayMode to set. + * @return This builder for chaining. + */ + public Builder setRelayModeValue(int value) { + relayMode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Method used to make Relay available
+     * 
+ * + * .google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; + * @return The relayMode. + */ + @java.lang.Override + public com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode getRelayMode() { + com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode result = com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode.forNumber(relayMode_); + return result == null ? com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode.UNRECOGNIZED : result; + } + /** + *
+     * Method used to make Relay available
+     * 
+ * + * .google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; + * @param value The relayMode to set. + * @return This builder for chaining. + */ + public Builder setRelayMode(com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + relayMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Method used to make Relay available
+     * 
+ * + * .google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; + * @return This builder for chaining. + */ + public Builder clearRelayMode() { + bitField0_ = (bitField0_ & ~0x00000002); + relayMode_ = 0; + onChanged(); + return this; + } + + private boolean enableRelay_ ; + /** + *
+     * Enable Relay component
+     * 
+ * + * optional bool enable_relay = 3; + * @return Whether the enableRelay field is set. + */ + @java.lang.Override + public boolean hasEnableRelay() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * Enable Relay component
+     * 
+ * + * optional bool enable_relay = 3; + * @return The enableRelay. + */ + @java.lang.Override + public boolean getEnableRelay() { + return enableRelay_; + } + /** + *
+     * Enable Relay component
+     * 
+ * + * optional bool enable_relay = 3; + * @param value The enableRelay to set. + * @return This builder for chaining. + */ + public Builder setEnableRelay(boolean value) { + + enableRelay_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Enable Relay component
+     * 
+ * + * optional bool enable_relay = 3; + * @return This builder for chaining. + */ + public Builder clearEnableRelay() { + bitField0_ = (bitField0_ & ~0x00000004); + enableRelay_ = 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.AdvancedDatapathObservabilityConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.AdvancedDatapathObservabilityConfig) + private static final com.google.container.v1beta1.AdvancedDatapathObservabilityConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.AdvancedDatapathObservabilityConfig(); + } + + public static com.google.container.v1beta1.AdvancedDatapathObservabilityConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdvancedDatapathObservabilityConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.AdvancedDatapathObservabilityConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdvancedDatapathObservabilityConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdvancedDatapathObservabilityConfigOrBuilder.java new file mode 100644 index 000000000000..9cf26bc7112f --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdvancedDatapathObservabilityConfigOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface AdvancedDatapathObservabilityConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.AdvancedDatapathObservabilityConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Expose flow metrics on nodes
+   * 
+ * + * bool enable_metrics = 1; + * @return The enableMetrics. + */ + boolean getEnableMetrics(); + + /** + *
+   * Method used to make Relay available
+   * 
+ * + * .google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; + * @return The enum numeric value on the wire for relayMode. + */ + int getRelayModeValue(); + /** + *
+   * Method used to make Relay available
+   * 
+ * + * .google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; + * @return The relayMode. + */ + com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.RelayMode getRelayMode(); + + /** + *
+   * Enable Relay component
+   * 
+ * + * optional bool enable_relay = 3; + * @return Whether the enableRelay field is set. + */ + boolean hasEnableRelay(); + /** + *
+   * Enable Relay component
+   * 
+ * + * optional bool enable_relay = 3; + * @return The enableRelay. + */ + boolean getEnableRelay(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdvancedMachineFeatures.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdvancedMachineFeatures.java new file mode 100644 index 000000000000..173270a4be6d --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdvancedMachineFeatures.java @@ -0,0 +1,542 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * Specifies options for controlling advanced machine features.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.AdvancedMachineFeatures} + */ +public final class AdvancedMachineFeatures extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.AdvancedMachineFeatures) + AdvancedMachineFeaturesOrBuilder { +private static final long serialVersionUID = 0L; + // Use AdvancedMachineFeatures.newBuilder() to construct. + private AdvancedMachineFeatures(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AdvancedMachineFeatures() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AdvancedMachineFeatures(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AdvancedMachineFeatures_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AdvancedMachineFeatures_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.AdvancedMachineFeatures.class, com.google.container.v1beta1.AdvancedMachineFeatures.Builder.class); + } + + private int bitField0_; + public static final int THREADS_PER_CORE_FIELD_NUMBER = 1; + private long threadsPerCore_ = 0L; + /** + *
+   * The number of threads per physical core. To disable simultaneous
+   * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+   * supported per core by the underlying processor is assumed.
+   * 
+ * + * optional int64 threads_per_core = 1; + * @return Whether the threadsPerCore field is set. + */ + @java.lang.Override + public boolean hasThreadsPerCore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * The number of threads per physical core. To disable simultaneous
+   * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+   * supported per core by the underlying processor is assumed.
+   * 
+ * + * optional int64 threads_per_core = 1; + * @return The threadsPerCore. + */ + @java.lang.Override + public long getThreadsPerCore() { + return threadsPerCore_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt64(1, threadsPerCore_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, threadsPerCore_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.AdvancedMachineFeatures)) { + return super.equals(obj); + } + com.google.container.v1beta1.AdvancedMachineFeatures other = (com.google.container.v1beta1.AdvancedMachineFeatures) obj; + + if (hasThreadsPerCore() != other.hasThreadsPerCore()) return false; + if (hasThreadsPerCore()) { + if (getThreadsPerCore() + != other.getThreadsPerCore()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasThreadsPerCore()) { + hash = (37 * hash) + THREADS_PER_CORE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getThreadsPerCore()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.AdvancedMachineFeatures parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.AdvancedMachineFeatures parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.AdvancedMachineFeatures parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.AdvancedMachineFeatures parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.AdvancedMachineFeatures parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.AdvancedMachineFeatures parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.AdvancedMachineFeatures parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.AdvancedMachineFeatures parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.AdvancedMachineFeatures parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.AdvancedMachineFeatures parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.AdvancedMachineFeatures parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.AdvancedMachineFeatures parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.AdvancedMachineFeatures prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Specifies options for controlling advanced machine features.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.AdvancedMachineFeatures} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.AdvancedMachineFeatures) + com.google.container.v1beta1.AdvancedMachineFeaturesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AdvancedMachineFeatures_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AdvancedMachineFeatures_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.AdvancedMachineFeatures.class, com.google.container.v1beta1.AdvancedMachineFeatures.Builder.class); + } + + // Construct using com.google.container.v1beta1.AdvancedMachineFeatures.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + threadsPerCore_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AdvancedMachineFeatures_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.AdvancedMachineFeatures getDefaultInstanceForType() { + return com.google.container.v1beta1.AdvancedMachineFeatures.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.AdvancedMachineFeatures build() { + com.google.container.v1beta1.AdvancedMachineFeatures result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.AdvancedMachineFeatures buildPartial() { + com.google.container.v1beta1.AdvancedMachineFeatures result = new com.google.container.v1beta1.AdvancedMachineFeatures(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.AdvancedMachineFeatures result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.threadsPerCore_ = threadsPerCore_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.AdvancedMachineFeatures) { + return mergeFrom((com.google.container.v1beta1.AdvancedMachineFeatures)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.AdvancedMachineFeatures other) { + if (other == com.google.container.v1beta1.AdvancedMachineFeatures.getDefaultInstance()) return this; + if (other.hasThreadsPerCore()) { + setThreadsPerCore(other.getThreadsPerCore()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + threadsPerCore_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private long threadsPerCore_ ; + /** + *
+     * The number of threads per physical core. To disable simultaneous
+     * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+     * supported per core by the underlying processor is assumed.
+     * 
+ * + * optional int64 threads_per_core = 1; + * @return Whether the threadsPerCore field is set. + */ + @java.lang.Override + public boolean hasThreadsPerCore() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * The number of threads per physical core. To disable simultaneous
+     * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+     * supported per core by the underlying processor is assumed.
+     * 
+ * + * optional int64 threads_per_core = 1; + * @return The threadsPerCore. + */ + @java.lang.Override + public long getThreadsPerCore() { + return threadsPerCore_; + } + /** + *
+     * The number of threads per physical core. To disable simultaneous
+     * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+     * supported per core by the underlying processor is assumed.
+     * 
+ * + * optional int64 threads_per_core = 1; + * @param value The threadsPerCore to set. + * @return This builder for chaining. + */ + public Builder setThreadsPerCore(long value) { + + threadsPerCore_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The number of threads per physical core. To disable simultaneous
+     * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+     * supported per core by the underlying processor is assumed.
+     * 
+ * + * optional int64 threads_per_core = 1; + * @return This builder for chaining. + */ + public Builder clearThreadsPerCore() { + bitField0_ = (bitField0_ & ~0x00000001); + threadsPerCore_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.AdvancedMachineFeatures) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.AdvancedMachineFeatures) + private static final com.google.container.v1beta1.AdvancedMachineFeatures DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.AdvancedMachineFeatures(); + } + + public static com.google.container.v1beta1.AdvancedMachineFeatures getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdvancedMachineFeatures parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.AdvancedMachineFeatures getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdvancedMachineFeaturesOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdvancedMachineFeaturesOrBuilder.java new file mode 100644 index 000000000000..148e68115812 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AdvancedMachineFeaturesOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface AdvancedMachineFeaturesOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.AdvancedMachineFeatures) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The number of threads per physical core. To disable simultaneous
+   * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+   * supported per core by the underlying processor is assumed.
+   * 
+ * + * optional int64 threads_per_core = 1; + * @return Whether the threadsPerCore field is set. + */ + boolean hasThreadsPerCore(); + /** + *
+   * The number of threads per physical core. To disable simultaneous
+   * multithreading (SMT) set this to 1. If unset, the maximum number of threads
+   * supported per core by the underlying processor is assumed.
+   * 
+ * + * optional int64 threads_per_core = 1; + * @return The threadsPerCore. + */ + long getThreadsPerCore(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AuthenticatorGroupsConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AuthenticatorGroupsConfig.java new file mode 100644 index 000000000000..8e428e662d1a --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AuthenticatorGroupsConfig.java @@ -0,0 +1,672 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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_ = false; + /** + *
+   * 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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(securityGroup_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, securityGroup_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enabled_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(securityGroup_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, securityGroup_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.AuthenticatorGroupsConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.securityGroup_ = securityGroup_; + } + } + + @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_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + securityGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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() { + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000002; + 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(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AuthenticatorGroupsConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AuthenticatorGroupsConfigOrBuilder.java new file mode 100644 index 000000000000..bebbffa1a5b1 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AuthenticatorGroupsConfigOrBuilder.java @@ -0,0 +1,43 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoUpgradeOptions.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoUpgradeOptions.java new file mode 100644 index 000000000000..fbcbf0303e98 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoUpgradeOptions.java @@ -0,0 +1,765 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(autoUpgradeStartTime_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, autoUpgradeStartTime_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(autoUpgradeStartTime_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, autoUpgradeStartTime_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.AutoUpgradeOptions result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.autoUpgradeStartTime_ = autoUpgradeStartTime_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + autoUpgradeStartTime_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + 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; + bitField0_ |= 0x00000002; + 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(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoUpgradeOptionsOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoUpgradeOptionsOrBuilder.java new file mode 100644 index 000000000000..1d096e45768a --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoUpgradeOptionsOrBuilder.java @@ -0,0 +1,56 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Autopilot.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Autopilot.java new file mode 100644 index 000000000000..1b5d0b6131cf --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Autopilot.java @@ -0,0 +1,971 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * Autopilot is the configuration for Autopilot settings on the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.Autopilot} + */ +public final class Autopilot extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.Autopilot) + AutopilotOrBuilder { +private static final long serialVersionUID = 0L; + // Use Autopilot.newBuilder() to construct. + private Autopilot(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Autopilot() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Autopilot(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_Autopilot_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_Autopilot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.Autopilot.class, com.google.container.v1beta1.Autopilot.Builder.class); + } + + private int bitField0_; + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * Enable Autopilot
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int WORKLOAD_POLICY_CONFIG_FIELD_NUMBER = 2; + private com.google.container.v1beta1.WorkloadPolicyConfig workloadPolicyConfig_; + /** + *
+   * Workload policy configuration for Autopilot.
+   * 
+ * + * .google.container.v1beta1.WorkloadPolicyConfig workload_policy_config = 2; + * @return Whether the workloadPolicyConfig field is set. + */ + @java.lang.Override + public boolean hasWorkloadPolicyConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Workload policy configuration for Autopilot.
+   * 
+ * + * .google.container.v1beta1.WorkloadPolicyConfig workload_policy_config = 2; + * @return The workloadPolicyConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.WorkloadPolicyConfig getWorkloadPolicyConfig() { + return workloadPolicyConfig_ == null ? com.google.container.v1beta1.WorkloadPolicyConfig.getDefaultInstance() : workloadPolicyConfig_; + } + /** + *
+   * Workload policy configuration for Autopilot.
+   * 
+ * + * .google.container.v1beta1.WorkloadPolicyConfig workload_policy_config = 2; + */ + @java.lang.Override + public com.google.container.v1beta1.WorkloadPolicyConfigOrBuilder getWorkloadPolicyConfigOrBuilder() { + return workloadPolicyConfig_ == null ? com.google.container.v1beta1.WorkloadPolicyConfig.getDefaultInstance() : workloadPolicyConfig_; + } + + public static final int CONVERSION_STATUS_FIELD_NUMBER = 3; + private com.google.container.v1beta1.AutopilotConversionStatus conversionStatus_; + /** + *
+   * Output only. ConversionStatus shows conversion status.
+   * 
+ * + * .google.container.v1beta1.AutopilotConversionStatus conversion_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the conversionStatus field is set. + */ + @java.lang.Override + public boolean hasConversionStatus() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * Output only. ConversionStatus shows conversion status.
+   * 
+ * + * .google.container.v1beta1.AutopilotConversionStatus conversion_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The conversionStatus. + */ + @java.lang.Override + public com.google.container.v1beta1.AutopilotConversionStatus getConversionStatus() { + return conversionStatus_ == null ? com.google.container.v1beta1.AutopilotConversionStatus.getDefaultInstance() : conversionStatus_; + } + /** + *
+   * Output only. ConversionStatus shows conversion status.
+   * 
+ * + * .google.container.v1beta1.AutopilotConversionStatus conversion_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.container.v1beta1.AutopilotConversionStatusOrBuilder getConversionStatusOrBuilder() { + return conversionStatus_ == null ? com.google.container.v1beta1.AutopilotConversionStatus.getDefaultInstance() : conversionStatus_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getWorkloadPolicyConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getConversionStatus()); + } + getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getWorkloadPolicyConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getConversionStatus()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.Autopilot)) { + return super.equals(obj); + } + com.google.container.v1beta1.Autopilot other = (com.google.container.v1beta1.Autopilot) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (hasWorkloadPolicyConfig() != other.hasWorkloadPolicyConfig()) return false; + if (hasWorkloadPolicyConfig()) { + if (!getWorkloadPolicyConfig() + .equals(other.getWorkloadPolicyConfig())) return false; + } + if (hasConversionStatus() != other.hasConversionStatus()) return false; + if (hasConversionStatus()) { + if (!getConversionStatus() + .equals(other.getConversionStatus())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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 (hasWorkloadPolicyConfig()) { + hash = (37 * hash) + WORKLOAD_POLICY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getWorkloadPolicyConfig().hashCode(); + } + if (hasConversionStatus()) { + hash = (37 * hash) + CONVERSION_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getConversionStatus().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.Autopilot parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.Autopilot parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.Autopilot parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.Autopilot parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.Autopilot parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.Autopilot parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.Autopilot parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.Autopilot parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.Autopilot parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.Autopilot parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.Autopilot parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.Autopilot parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.Autopilot prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Autopilot is the configuration for Autopilot settings on the cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.Autopilot} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.Autopilot) + com.google.container.v1beta1.AutopilotOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_Autopilot_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_Autopilot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.Autopilot.class, com.google.container.v1beta1.Autopilot.Builder.class); + } + + // Construct using com.google.container.v1beta1.Autopilot.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getWorkloadPolicyConfigFieldBuilder(); + getConversionStatusFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + workloadPolicyConfig_ = null; + if (workloadPolicyConfigBuilder_ != null) { + workloadPolicyConfigBuilder_.dispose(); + workloadPolicyConfigBuilder_ = null; + } + conversionStatus_ = null; + if (conversionStatusBuilder_ != null) { + conversionStatusBuilder_.dispose(); + conversionStatusBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_Autopilot_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.Autopilot getDefaultInstanceForType() { + return com.google.container.v1beta1.Autopilot.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.Autopilot build() { + com.google.container.v1beta1.Autopilot result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.Autopilot buildPartial() { + com.google.container.v1beta1.Autopilot result = new com.google.container.v1beta1.Autopilot(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.Autopilot result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.workloadPolicyConfig_ = workloadPolicyConfigBuilder_ == null + ? workloadPolicyConfig_ + : workloadPolicyConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.conversionStatus_ = conversionStatusBuilder_ == null + ? conversionStatus_ + : conversionStatusBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @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.Autopilot) { + return mergeFrom((com.google.container.v1beta1.Autopilot)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.Autopilot other) { + if (other == com.google.container.v1beta1.Autopilot.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (other.hasWorkloadPolicyConfig()) { + mergeWorkloadPolicyConfig(other.getWorkloadPolicyConfig()); + } + if (other.hasConversionStatus()) { + mergeConversionStatus(other.getConversionStatus()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getWorkloadPolicyConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getConversionStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enabled_ ; + /** + *
+     * Enable Autopilot
+     * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Enable Autopilot
+     * 
+ * + * bool enabled = 1; + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Enable Autopilot
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + + private com.google.container.v1beta1.WorkloadPolicyConfig workloadPolicyConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadPolicyConfig, com.google.container.v1beta1.WorkloadPolicyConfig.Builder, com.google.container.v1beta1.WorkloadPolicyConfigOrBuilder> workloadPolicyConfigBuilder_; + /** + *
+     * Workload policy configuration for Autopilot.
+     * 
+ * + * .google.container.v1beta1.WorkloadPolicyConfig workload_policy_config = 2; + * @return Whether the workloadPolicyConfig field is set. + */ + public boolean hasWorkloadPolicyConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Workload policy configuration for Autopilot.
+     * 
+ * + * .google.container.v1beta1.WorkloadPolicyConfig workload_policy_config = 2; + * @return The workloadPolicyConfig. + */ + public com.google.container.v1beta1.WorkloadPolicyConfig getWorkloadPolicyConfig() { + if (workloadPolicyConfigBuilder_ == null) { + return workloadPolicyConfig_ == null ? com.google.container.v1beta1.WorkloadPolicyConfig.getDefaultInstance() : workloadPolicyConfig_; + } else { + return workloadPolicyConfigBuilder_.getMessage(); + } + } + /** + *
+     * Workload policy configuration for Autopilot.
+     * 
+ * + * .google.container.v1beta1.WorkloadPolicyConfig workload_policy_config = 2; + */ + public Builder setWorkloadPolicyConfig(com.google.container.v1beta1.WorkloadPolicyConfig value) { + if (workloadPolicyConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workloadPolicyConfig_ = value; + } else { + workloadPolicyConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Workload policy configuration for Autopilot.
+     * 
+ * + * .google.container.v1beta1.WorkloadPolicyConfig workload_policy_config = 2; + */ + public Builder setWorkloadPolicyConfig( + com.google.container.v1beta1.WorkloadPolicyConfig.Builder builderForValue) { + if (workloadPolicyConfigBuilder_ == null) { + workloadPolicyConfig_ = builderForValue.build(); + } else { + workloadPolicyConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Workload policy configuration for Autopilot.
+     * 
+ * + * .google.container.v1beta1.WorkloadPolicyConfig workload_policy_config = 2; + */ + public Builder mergeWorkloadPolicyConfig(com.google.container.v1beta1.WorkloadPolicyConfig value) { + if (workloadPolicyConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + workloadPolicyConfig_ != null && + workloadPolicyConfig_ != com.google.container.v1beta1.WorkloadPolicyConfig.getDefaultInstance()) { + getWorkloadPolicyConfigBuilder().mergeFrom(value); + } else { + workloadPolicyConfig_ = value; + } + } else { + workloadPolicyConfigBuilder_.mergeFrom(value); + } + if (workloadPolicyConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + *
+     * Workload policy configuration for Autopilot.
+     * 
+ * + * .google.container.v1beta1.WorkloadPolicyConfig workload_policy_config = 2; + */ + public Builder clearWorkloadPolicyConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + workloadPolicyConfig_ = null; + if (workloadPolicyConfigBuilder_ != null) { + workloadPolicyConfigBuilder_.dispose(); + workloadPolicyConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Workload policy configuration for Autopilot.
+     * 
+ * + * .google.container.v1beta1.WorkloadPolicyConfig workload_policy_config = 2; + */ + public com.google.container.v1beta1.WorkloadPolicyConfig.Builder getWorkloadPolicyConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getWorkloadPolicyConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Workload policy configuration for Autopilot.
+     * 
+ * + * .google.container.v1beta1.WorkloadPolicyConfig workload_policy_config = 2; + */ + public com.google.container.v1beta1.WorkloadPolicyConfigOrBuilder getWorkloadPolicyConfigOrBuilder() { + if (workloadPolicyConfigBuilder_ != null) { + return workloadPolicyConfigBuilder_.getMessageOrBuilder(); + } else { + return workloadPolicyConfig_ == null ? + com.google.container.v1beta1.WorkloadPolicyConfig.getDefaultInstance() : workloadPolicyConfig_; + } + } + /** + *
+     * Workload policy configuration for Autopilot.
+     * 
+ * + * .google.container.v1beta1.WorkloadPolicyConfig workload_policy_config = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadPolicyConfig, com.google.container.v1beta1.WorkloadPolicyConfig.Builder, com.google.container.v1beta1.WorkloadPolicyConfigOrBuilder> + getWorkloadPolicyConfigFieldBuilder() { + if (workloadPolicyConfigBuilder_ == null) { + workloadPolicyConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadPolicyConfig, com.google.container.v1beta1.WorkloadPolicyConfig.Builder, com.google.container.v1beta1.WorkloadPolicyConfigOrBuilder>( + getWorkloadPolicyConfig(), + getParentForChildren(), + isClean()); + workloadPolicyConfig_ = null; + } + return workloadPolicyConfigBuilder_; + } + + private com.google.container.v1beta1.AutopilotConversionStatus conversionStatus_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AutopilotConversionStatus, com.google.container.v1beta1.AutopilotConversionStatus.Builder, com.google.container.v1beta1.AutopilotConversionStatusOrBuilder> conversionStatusBuilder_; + /** + *
+     * Output only. ConversionStatus shows conversion status.
+     * 
+ * + * .google.container.v1beta1.AutopilotConversionStatus conversion_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the conversionStatus field is set. + */ + public boolean hasConversionStatus() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * Output only. ConversionStatus shows conversion status.
+     * 
+ * + * .google.container.v1beta1.AutopilotConversionStatus conversion_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The conversionStatus. + */ + public com.google.container.v1beta1.AutopilotConversionStatus getConversionStatus() { + if (conversionStatusBuilder_ == null) { + return conversionStatus_ == null ? com.google.container.v1beta1.AutopilotConversionStatus.getDefaultInstance() : conversionStatus_; + } else { + return conversionStatusBuilder_.getMessage(); + } + } + /** + *
+     * Output only. ConversionStatus shows conversion status.
+     * 
+ * + * .google.container.v1beta1.AutopilotConversionStatus conversion_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setConversionStatus(com.google.container.v1beta1.AutopilotConversionStatus value) { + if (conversionStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conversionStatus_ = value; + } else { + conversionStatusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Output only. ConversionStatus shows conversion status.
+     * 
+ * + * .google.container.v1beta1.AutopilotConversionStatus conversion_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setConversionStatus( + com.google.container.v1beta1.AutopilotConversionStatus.Builder builderForValue) { + if (conversionStatusBuilder_ == null) { + conversionStatus_ = builderForValue.build(); + } else { + conversionStatusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Output only. ConversionStatus shows conversion status.
+     * 
+ * + * .google.container.v1beta1.AutopilotConversionStatus conversion_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeConversionStatus(com.google.container.v1beta1.AutopilotConversionStatus value) { + if (conversionStatusBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + conversionStatus_ != null && + conversionStatus_ != com.google.container.v1beta1.AutopilotConversionStatus.getDefaultInstance()) { + getConversionStatusBuilder().mergeFrom(value); + } else { + conversionStatus_ = value; + } + } else { + conversionStatusBuilder_.mergeFrom(value); + } + if (conversionStatus_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+     * Output only. ConversionStatus shows conversion status.
+     * 
+ * + * .google.container.v1beta1.AutopilotConversionStatus conversion_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearConversionStatus() { + bitField0_ = (bitField0_ & ~0x00000004); + conversionStatus_ = null; + if (conversionStatusBuilder_ != null) { + conversionStatusBuilder_.dispose(); + conversionStatusBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Output only. ConversionStatus shows conversion status.
+     * 
+ * + * .google.container.v1beta1.AutopilotConversionStatus conversion_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.container.v1beta1.AutopilotConversionStatus.Builder getConversionStatusBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getConversionStatusFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. ConversionStatus shows conversion status.
+     * 
+ * + * .google.container.v1beta1.AutopilotConversionStatus conversion_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.container.v1beta1.AutopilotConversionStatusOrBuilder getConversionStatusOrBuilder() { + if (conversionStatusBuilder_ != null) { + return conversionStatusBuilder_.getMessageOrBuilder(); + } else { + return conversionStatus_ == null ? + com.google.container.v1beta1.AutopilotConversionStatus.getDefaultInstance() : conversionStatus_; + } + } + /** + *
+     * Output only. ConversionStatus shows conversion status.
+     * 
+ * + * .google.container.v1beta1.AutopilotConversionStatus conversion_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AutopilotConversionStatus, com.google.container.v1beta1.AutopilotConversionStatus.Builder, com.google.container.v1beta1.AutopilotConversionStatusOrBuilder> + getConversionStatusFieldBuilder() { + if (conversionStatusBuilder_ == null) { + conversionStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AutopilotConversionStatus, com.google.container.v1beta1.AutopilotConversionStatus.Builder, com.google.container.v1beta1.AutopilotConversionStatusOrBuilder>( + getConversionStatus(), + getParentForChildren(), + isClean()); + conversionStatus_ = null; + } + return conversionStatusBuilder_; + } + @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.Autopilot) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.Autopilot) + private static final com.google.container.v1beta1.Autopilot DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.Autopilot(); + } + + public static com.google.container.v1beta1.Autopilot getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Autopilot parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.Autopilot getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutopilotCompatibilityIssue.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutopilotCompatibilityIssue.java new file mode 100644 index 000000000000..e8dedf954f57 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutopilotCompatibilityIssue.java @@ -0,0 +1,1682 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * AutopilotCompatibilityIssue contains information about a specific
+ * compatibility issue with Autopilot mode.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.AutopilotCompatibilityIssue} + */ +public final class AutopilotCompatibilityIssue extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.AutopilotCompatibilityIssue) + AutopilotCompatibilityIssueOrBuilder { +private static final long serialVersionUID = 0L; + // Use AutopilotCompatibilityIssue.newBuilder() to construct. + private AutopilotCompatibilityIssue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AutopilotCompatibilityIssue() { + constraintType_ = ""; + incompatibilityType_ = 0; + subjects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + documentationUrl_ = ""; + description_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AutopilotCompatibilityIssue(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AutopilotCompatibilityIssue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AutopilotCompatibilityIssue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.AutopilotCompatibilityIssue.class, com.google.container.v1beta1.AutopilotCompatibilityIssue.Builder.class); + } + + /** + *
+   * The type of the reported issue.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.AutopilotCompatibilityIssue.IssueType} + */ + public enum IssueType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Default value, should not be used.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + *
+     * Indicates that the issue is a known incompatibility between the
+     * cluster and Autopilot mode.
+     * 
+ * + * INCOMPATIBILITY = 1; + */ + INCOMPATIBILITY(1), + /** + *
+     * Indicates the issue is an incompatibility if customers take no further
+     * action to resolve.
+     * 
+ * + * ADDITIONAL_CONFIG_REQUIRED = 2; + */ + ADDITIONAL_CONFIG_REQUIRED(2), + /** + *
+     * Indicates the issue is not an incompatibility, but depending on the
+     * workloads business logic, there is a potential that they won't work on
+     * Autopilot.
+     * 
+ * + * PASSED_WITH_OPTIONAL_CONFIG = 3; + */ + PASSED_WITH_OPTIONAL_CONFIG(3), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Default value, should not be used.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + *
+     * Indicates that the issue is a known incompatibility between the
+     * cluster and Autopilot mode.
+     * 
+ * + * INCOMPATIBILITY = 1; + */ + public static final int INCOMPATIBILITY_VALUE = 1; + /** + *
+     * Indicates the issue is an incompatibility if customers take no further
+     * action to resolve.
+     * 
+ * + * ADDITIONAL_CONFIG_REQUIRED = 2; + */ + public static final int ADDITIONAL_CONFIG_REQUIRED_VALUE = 2; + /** + *
+     * Indicates the issue is not an incompatibility, but depending on the
+     * workloads business logic, there is a potential that they won't work on
+     * Autopilot.
+     * 
+ * + * PASSED_WITH_OPTIONAL_CONFIG = 3; + */ + public static final int PASSED_WITH_OPTIONAL_CONFIG_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 IssueType 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 IssueType forNumber(int value) { + switch (value) { + case 0: return UNSPECIFIED; + case 1: return INCOMPATIBILITY; + case 2: return ADDITIONAL_CONFIG_REQUIRED; + case 3: return PASSED_WITH_OPTIONAL_CONFIG; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + IssueType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public IssueType findValueByNumber(int number) { + return IssueType.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.AutopilotCompatibilityIssue.getDescriptor().getEnumTypes().get(0); + } + + private static final IssueType[] VALUES = values(); + + public static IssueType 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 IssueType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.AutopilotCompatibilityIssue.IssueType) + } + + private int bitField0_; + public static final int LAST_OBSERVATION_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp lastObservation_; + /** + *
+   * The last time when this issue was observed.
+   * 
+ * + * .google.protobuf.Timestamp last_observation = 1; + * @return Whether the lastObservation field is set. + */ + @java.lang.Override + public boolean hasLastObservation() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * The last time when this issue was observed.
+   * 
+ * + * .google.protobuf.Timestamp last_observation = 1; + * @return The lastObservation. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getLastObservation() { + return lastObservation_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastObservation_; + } + /** + *
+   * The last time when this issue was observed.
+   * 
+ * + * .google.protobuf.Timestamp last_observation = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getLastObservationOrBuilder() { + return lastObservation_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastObservation_; + } + + public static final int CONSTRAINT_TYPE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object constraintType_ = ""; + /** + *
+   * The constraint type of the issue.
+   * 
+ * + * string constraint_type = 2; + * @return The constraintType. + */ + @java.lang.Override + public java.lang.String getConstraintType() { + java.lang.Object ref = constraintType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + constraintType_ = s; + return s; + } + } + /** + *
+   * The constraint type of the issue.
+   * 
+ * + * string constraint_type = 2; + * @return The bytes for constraintType. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getConstraintTypeBytes() { + java.lang.Object ref = constraintType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + constraintType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INCOMPATIBILITY_TYPE_FIELD_NUMBER = 3; + private int incompatibilityType_ = 0; + /** + *
+   * The incompatibility type of this issue.
+   * 
+ * + * .google.container.v1beta1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; + * @return The enum numeric value on the wire for incompatibilityType. + */ + @java.lang.Override public int getIncompatibilityTypeValue() { + return incompatibilityType_; + } + /** + *
+   * The incompatibility type of this issue.
+   * 
+ * + * .google.container.v1beta1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; + * @return The incompatibilityType. + */ + @java.lang.Override public com.google.container.v1beta1.AutopilotCompatibilityIssue.IssueType getIncompatibilityType() { + com.google.container.v1beta1.AutopilotCompatibilityIssue.IssueType result = com.google.container.v1beta1.AutopilotCompatibilityIssue.IssueType.forNumber(incompatibilityType_); + return result == null ? com.google.container.v1beta1.AutopilotCompatibilityIssue.IssueType.UNRECOGNIZED : result; + } + + public static final int SUBJECTS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList subjects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * The name of the resources which are subject to this issue.
+   * 
+ * + * repeated string subjects = 4; + * @return A list containing the subjects. + */ + public com.google.protobuf.ProtocolStringList + getSubjectsList() { + return subjects_; + } + /** + *
+   * The name of the resources which are subject to this issue.
+   * 
+ * + * repeated string subjects = 4; + * @return The count of subjects. + */ + public int getSubjectsCount() { + return subjects_.size(); + } + /** + *
+   * The name of the resources which are subject to this issue.
+   * 
+ * + * repeated string subjects = 4; + * @param index The index of the element to return. + * @return The subjects at the given index. + */ + public java.lang.String getSubjects(int index) { + return subjects_.get(index); + } + /** + *
+   * The name of the resources which are subject to this issue.
+   * 
+ * + * repeated string subjects = 4; + * @param index The index of the value to return. + * @return The bytes of the subjects at the given index. + */ + public com.google.protobuf.ByteString + getSubjectsBytes(int index) { + return subjects_.getByteString(index); + } + + public static final int DOCUMENTATION_URL_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object documentationUrl_ = ""; + /** + *
+   * A URL to a public documnetation, which addresses resolving this issue.
+   * 
+ * + * string documentation_url = 5; + * @return The documentationUrl. + */ + @java.lang.Override + public java.lang.String getDocumentationUrl() { + java.lang.Object ref = documentationUrl_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + documentationUrl_ = s; + return s; + } + } + /** + *
+   * A URL to a public documnetation, which addresses resolving this issue.
+   * 
+ * + * string documentation_url = 5; + * @return The bytes for documentationUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDocumentationUrlBytes() { + java.lang.Object ref = documentationUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + documentationUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + *
+   * The description of the issue.
+   * 
+ * + * string description = 6; + * @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; + } + } + /** + *
+   * The description of the issue.
+   * 
+ * + * string description = 6; + * @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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getLastObservation()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(constraintType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, constraintType_); + } + if (incompatibilityType_ != com.google.container.v1beta1.AutopilotCompatibilityIssue.IssueType.UNSPECIFIED.getNumber()) { + output.writeEnum(3, incompatibilityType_); + } + for (int i = 0; i < subjects_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, subjects_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentationUrl_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, documentationUrl_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getLastObservation()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(constraintType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, constraintType_); + } + if (incompatibilityType_ != com.google.container.v1beta1.AutopilotCompatibilityIssue.IssueType.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, incompatibilityType_); + } + { + int dataSize = 0; + for (int i = 0; i < subjects_.size(); i++) { + dataSize += computeStringSizeNoTag(subjects_.getRaw(i)); + } + size += dataSize; + size += 1 * getSubjectsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentationUrl_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, documentationUrl_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.AutopilotCompatibilityIssue)) { + return super.equals(obj); + } + com.google.container.v1beta1.AutopilotCompatibilityIssue other = (com.google.container.v1beta1.AutopilotCompatibilityIssue) obj; + + if (hasLastObservation() != other.hasLastObservation()) return false; + if (hasLastObservation()) { + if (!getLastObservation() + .equals(other.getLastObservation())) return false; + } + if (!getConstraintType() + .equals(other.getConstraintType())) return false; + if (incompatibilityType_ != other.incompatibilityType_) return false; + if (!getSubjectsList() + .equals(other.getSubjectsList())) return false; + if (!getDocumentationUrl() + .equals(other.getDocumentationUrl())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasLastObservation()) { + hash = (37 * hash) + LAST_OBSERVATION_FIELD_NUMBER; + hash = (53 * hash) + getLastObservation().hashCode(); + } + hash = (37 * hash) + CONSTRAINT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getConstraintType().hashCode(); + hash = (37 * hash) + INCOMPATIBILITY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + incompatibilityType_; + if (getSubjectsCount() > 0) { + hash = (37 * hash) + SUBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getSubjectsList().hashCode(); + } + hash = (37 * hash) + DOCUMENTATION_URL_FIELD_NUMBER; + hash = (53 * hash) + getDocumentationUrl().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.AutopilotCompatibilityIssue parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.AutopilotCompatibilityIssue parseFrom( + 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.AutopilotCompatibilityIssue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.AutopilotCompatibilityIssue parseFrom( + com.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.AutopilotCompatibilityIssue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.AutopilotCompatibilityIssue parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.AutopilotCompatibilityIssue parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.AutopilotCompatibilityIssue parseFrom( + java.io.InputStream 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.AutopilotCompatibilityIssue parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.AutopilotCompatibilityIssue parseDelimitedFrom( + java.io.InputStream 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.AutopilotCompatibilityIssue parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.AutopilotCompatibilityIssue parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.AutopilotCompatibilityIssue prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * AutopilotCompatibilityIssue contains information about a specific
+   * compatibility issue with Autopilot mode.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.AutopilotCompatibilityIssue} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.AutopilotCompatibilityIssue) + com.google.container.v1beta1.AutopilotCompatibilityIssueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AutopilotCompatibilityIssue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AutopilotCompatibilityIssue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.AutopilotCompatibilityIssue.class, com.google.container.v1beta1.AutopilotCompatibilityIssue.Builder.class); + } + + // Construct using com.google.container.v1beta1.AutopilotCompatibilityIssue.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getLastObservationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + lastObservation_ = null; + if (lastObservationBuilder_ != null) { + lastObservationBuilder_.dispose(); + lastObservationBuilder_ = null; + } + constraintType_ = ""; + incompatibilityType_ = 0; + subjects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + documentationUrl_ = ""; + description_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AutopilotCompatibilityIssue_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.AutopilotCompatibilityIssue getDefaultInstanceForType() { + return com.google.container.v1beta1.AutopilotCompatibilityIssue.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.AutopilotCompatibilityIssue build() { + com.google.container.v1beta1.AutopilotCompatibilityIssue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.AutopilotCompatibilityIssue buildPartial() { + com.google.container.v1beta1.AutopilotCompatibilityIssue result = new com.google.container.v1beta1.AutopilotCompatibilityIssue(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.AutopilotCompatibilityIssue result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.lastObservation_ = lastObservationBuilder_ == null + ? lastObservation_ + : lastObservationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.constraintType_ = constraintType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.incompatibilityType_ = incompatibilityType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + subjects_.makeImmutable(); + result.subjects_ = subjects_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.documentationUrl_ = documentationUrl_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.description_ = description_; + } + result.bitField0_ |= to_bitField0_; + } + + @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.AutopilotCompatibilityIssue) { + return mergeFrom((com.google.container.v1beta1.AutopilotCompatibilityIssue)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.AutopilotCompatibilityIssue other) { + if (other == com.google.container.v1beta1.AutopilotCompatibilityIssue.getDefaultInstance()) return this; + if (other.hasLastObservation()) { + mergeLastObservation(other.getLastObservation()); + } + if (!other.getConstraintType().isEmpty()) { + constraintType_ = other.constraintType_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.incompatibilityType_ != 0) { + setIncompatibilityTypeValue(other.getIncompatibilityTypeValue()); + } + if (!other.subjects_.isEmpty()) { + if (subjects_.isEmpty()) { + subjects_ = other.subjects_; + bitField0_ |= 0x00000008; + } else { + ensureSubjectsIsMutable(); + subjects_.addAll(other.subjects_); + } + onChanged(); + } + if (!other.getDocumentationUrl().isEmpty()) { + documentationUrl_ = other.documentationUrl_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000020; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getLastObservationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + constraintType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + incompatibilityType_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureSubjectsIsMutable(); + subjects_.add(s); + break; + } // case 34 + case 42: { + documentationUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.Timestamp lastObservation_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastObservationBuilder_; + /** + *
+     * The last time when this issue was observed.
+     * 
+ * + * .google.protobuf.Timestamp last_observation = 1; + * @return Whether the lastObservation field is set. + */ + public boolean hasLastObservation() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * The last time when this issue was observed.
+     * 
+ * + * .google.protobuf.Timestamp last_observation = 1; + * @return The lastObservation. + */ + public com.google.protobuf.Timestamp getLastObservation() { + if (lastObservationBuilder_ == null) { + return lastObservation_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastObservation_; + } else { + return lastObservationBuilder_.getMessage(); + } + } + /** + *
+     * The last time when this issue was observed.
+     * 
+ * + * .google.protobuf.Timestamp last_observation = 1; + */ + public Builder setLastObservation(com.google.protobuf.Timestamp value) { + if (lastObservationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastObservation_ = value; + } else { + lastObservationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The last time when this issue was observed.
+     * 
+ * + * .google.protobuf.Timestamp last_observation = 1; + */ + public Builder setLastObservation( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (lastObservationBuilder_ == null) { + lastObservation_ = builderForValue.build(); + } else { + lastObservationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The last time when this issue was observed.
+     * 
+ * + * .google.protobuf.Timestamp last_observation = 1; + */ + public Builder mergeLastObservation(com.google.protobuf.Timestamp value) { + if (lastObservationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + lastObservation_ != null && + lastObservation_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLastObservationBuilder().mergeFrom(value); + } else { + lastObservation_ = value; + } + } else { + lastObservationBuilder_.mergeFrom(value); + } + if (lastObservation_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+     * The last time when this issue was observed.
+     * 
+ * + * .google.protobuf.Timestamp last_observation = 1; + */ + public Builder clearLastObservation() { + bitField0_ = (bitField0_ & ~0x00000001); + lastObservation_ = null; + if (lastObservationBuilder_ != null) { + lastObservationBuilder_.dispose(); + lastObservationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The last time when this issue was observed.
+     * 
+ * + * .google.protobuf.Timestamp last_observation = 1; + */ + public com.google.protobuf.Timestamp.Builder getLastObservationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getLastObservationFieldBuilder().getBuilder(); + } + /** + *
+     * The last time when this issue was observed.
+     * 
+ * + * .google.protobuf.Timestamp last_observation = 1; + */ + public com.google.protobuf.TimestampOrBuilder getLastObservationOrBuilder() { + if (lastObservationBuilder_ != null) { + return lastObservationBuilder_.getMessageOrBuilder(); + } else { + return lastObservation_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : lastObservation_; + } + } + /** + *
+     * The last time when this issue was observed.
+     * 
+ * + * .google.protobuf.Timestamp last_observation = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getLastObservationFieldBuilder() { + if (lastObservationBuilder_ == null) { + lastObservationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getLastObservation(), + getParentForChildren(), + isClean()); + lastObservation_ = null; + } + return lastObservationBuilder_; + } + + private java.lang.Object constraintType_ = ""; + /** + *
+     * The constraint type of the issue.
+     * 
+ * + * string constraint_type = 2; + * @return The constraintType. + */ + public java.lang.String getConstraintType() { + java.lang.Object ref = constraintType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + constraintType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The constraint type of the issue.
+     * 
+ * + * string constraint_type = 2; + * @return The bytes for constraintType. + */ + public com.google.protobuf.ByteString + getConstraintTypeBytes() { + java.lang.Object ref = constraintType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + constraintType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The constraint type of the issue.
+     * 
+ * + * string constraint_type = 2; + * @param value The constraintType to set. + * @return This builder for chaining. + */ + public Builder setConstraintType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + constraintType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The constraint type of the issue.
+     * 
+ * + * string constraint_type = 2; + * @return This builder for chaining. + */ + public Builder clearConstraintType() { + constraintType_ = getDefaultInstance().getConstraintType(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * The constraint type of the issue.
+     * 
+ * + * string constraint_type = 2; + * @param value The bytes for constraintType to set. + * @return This builder for chaining. + */ + public Builder setConstraintTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + constraintType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int incompatibilityType_ = 0; + /** + *
+     * The incompatibility type of this issue.
+     * 
+ * + * .google.container.v1beta1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; + * @return The enum numeric value on the wire for incompatibilityType. + */ + @java.lang.Override public int getIncompatibilityTypeValue() { + return incompatibilityType_; + } + /** + *
+     * The incompatibility type of this issue.
+     * 
+ * + * .google.container.v1beta1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; + * @param value The enum numeric value on the wire for incompatibilityType to set. + * @return This builder for chaining. + */ + public Builder setIncompatibilityTypeValue(int value) { + incompatibilityType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The incompatibility type of this issue.
+     * 
+ * + * .google.container.v1beta1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; + * @return The incompatibilityType. + */ + @java.lang.Override + public com.google.container.v1beta1.AutopilotCompatibilityIssue.IssueType getIncompatibilityType() { + com.google.container.v1beta1.AutopilotCompatibilityIssue.IssueType result = com.google.container.v1beta1.AutopilotCompatibilityIssue.IssueType.forNumber(incompatibilityType_); + return result == null ? com.google.container.v1beta1.AutopilotCompatibilityIssue.IssueType.UNRECOGNIZED : result; + } + /** + *
+     * The incompatibility type of this issue.
+     * 
+ * + * .google.container.v1beta1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; + * @param value The incompatibilityType to set. + * @return This builder for chaining. + */ + public Builder setIncompatibilityType(com.google.container.v1beta1.AutopilotCompatibilityIssue.IssueType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + incompatibilityType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The incompatibility type of this issue.
+     * 
+ * + * .google.container.v1beta1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; + * @return This builder for chaining. + */ + public Builder clearIncompatibilityType() { + bitField0_ = (bitField0_ & ~0x00000004); + incompatibilityType_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList subjects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureSubjectsIsMutable() { + if (!subjects_.isModifiable()) { + subjects_ = new com.google.protobuf.LazyStringArrayList(subjects_); + } + bitField0_ |= 0x00000008; + } + /** + *
+     * The name of the resources which are subject to this issue.
+     * 
+ * + * repeated string subjects = 4; + * @return A list containing the subjects. + */ + public com.google.protobuf.ProtocolStringList + getSubjectsList() { + subjects_.makeImmutable(); + return subjects_; + } + /** + *
+     * The name of the resources which are subject to this issue.
+     * 
+ * + * repeated string subjects = 4; + * @return The count of subjects. + */ + public int getSubjectsCount() { + return subjects_.size(); + } + /** + *
+     * The name of the resources which are subject to this issue.
+     * 
+ * + * repeated string subjects = 4; + * @param index The index of the element to return. + * @return The subjects at the given index. + */ + public java.lang.String getSubjects(int index) { + return subjects_.get(index); + } + /** + *
+     * The name of the resources which are subject to this issue.
+     * 
+ * + * repeated string subjects = 4; + * @param index The index of the value to return. + * @return The bytes of the subjects at the given index. + */ + public com.google.protobuf.ByteString + getSubjectsBytes(int index) { + return subjects_.getByteString(index); + } + /** + *
+     * The name of the resources which are subject to this issue.
+     * 
+ * + * repeated string subjects = 4; + * @param index The index to set the value at. + * @param value The subjects to set. + * @return This builder for chaining. + */ + public Builder setSubjects( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureSubjectsIsMutable(); + subjects_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The name of the resources which are subject to this issue.
+     * 
+ * + * repeated string subjects = 4; + * @param value The subjects to add. + * @return This builder for chaining. + */ + public Builder addSubjects( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureSubjectsIsMutable(); + subjects_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The name of the resources which are subject to this issue.
+     * 
+ * + * repeated string subjects = 4; + * @param values The subjects to add. + * @return This builder for chaining. + */ + public Builder addAllSubjects( + java.lang.Iterable values) { + ensureSubjectsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, subjects_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The name of the resources which are subject to this issue.
+     * 
+ * + * repeated string subjects = 4; + * @return This builder for chaining. + */ + public Builder clearSubjects() { + subjects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; + onChanged(); + return this; + } + /** + *
+     * The name of the resources which are subject to this issue.
+     * 
+ * + * repeated string subjects = 4; + * @param value The bytes of the subjects to add. + * @return This builder for chaining. + */ + public Builder addSubjectsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureSubjectsIsMutable(); + subjects_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object documentationUrl_ = ""; + /** + *
+     * A URL to a public documnetation, which addresses resolving this issue.
+     * 
+ * + * string documentation_url = 5; + * @return The documentationUrl. + */ + public java.lang.String getDocumentationUrl() { + java.lang.Object ref = documentationUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + documentationUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A URL to a public documnetation, which addresses resolving this issue.
+     * 
+ * + * string documentation_url = 5; + * @return The bytes for documentationUrl. + */ + public com.google.protobuf.ByteString + getDocumentationUrlBytes() { + java.lang.Object ref = documentationUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + documentationUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A URL to a public documnetation, which addresses resolving this issue.
+     * 
+ * + * string documentation_url = 5; + * @param value The documentationUrl to set. + * @return This builder for chaining. + */ + public Builder setDocumentationUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + documentationUrl_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * A URL to a public documnetation, which addresses resolving this issue.
+     * 
+ * + * string documentation_url = 5; + * @return This builder for chaining. + */ + public Builder clearDocumentationUrl() { + documentationUrl_ = getDefaultInstance().getDocumentationUrl(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+     * A URL to a public documnetation, which addresses resolving this issue.
+     * 
+ * + * string documentation_url = 5; + * @param value The bytes for documentationUrl to set. + * @return This builder for chaining. + */ + public Builder setDocumentationUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + documentationUrl_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + *
+     * The description of the issue.
+     * 
+ * + * string description = 6; + * @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; + } + } + /** + *
+     * The description of the issue.
+     * 
+ * + * string description = 6; + * @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; + } + } + /** + *
+     * The description of the issue.
+     * 
+ * + * string description = 6; + * @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; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * The description of the issue.
+     * 
+ * + * string description = 6; + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + *
+     * The description of the issue.
+     * 
+ * + * string description = 6; + * @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; + bitField0_ |= 0x00000020; + 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.AutopilotCompatibilityIssue) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.AutopilotCompatibilityIssue) + private static final com.google.container.v1beta1.AutopilotCompatibilityIssue DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.AutopilotCompatibilityIssue(); + } + + public static com.google.container.v1beta1.AutopilotCompatibilityIssue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutopilotCompatibilityIssue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.AutopilotCompatibilityIssue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutopilotCompatibilityIssueOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutopilotCompatibilityIssueOrBuilder.java new file mode 100644 index 000000000000..2e13810f4442 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutopilotCompatibilityIssueOrBuilder.java @@ -0,0 +1,157 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface AutopilotCompatibilityIssueOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.AutopilotCompatibilityIssue) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The last time when this issue was observed.
+   * 
+ * + * .google.protobuf.Timestamp last_observation = 1; + * @return Whether the lastObservation field is set. + */ + boolean hasLastObservation(); + /** + *
+   * The last time when this issue was observed.
+   * 
+ * + * .google.protobuf.Timestamp last_observation = 1; + * @return The lastObservation. + */ + com.google.protobuf.Timestamp getLastObservation(); + /** + *
+   * The last time when this issue was observed.
+   * 
+ * + * .google.protobuf.Timestamp last_observation = 1; + */ + com.google.protobuf.TimestampOrBuilder getLastObservationOrBuilder(); + + /** + *
+   * The constraint type of the issue.
+   * 
+ * + * string constraint_type = 2; + * @return The constraintType. + */ + java.lang.String getConstraintType(); + /** + *
+   * The constraint type of the issue.
+   * 
+ * + * string constraint_type = 2; + * @return The bytes for constraintType. + */ + com.google.protobuf.ByteString + getConstraintTypeBytes(); + + /** + *
+   * The incompatibility type of this issue.
+   * 
+ * + * .google.container.v1beta1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; + * @return The enum numeric value on the wire for incompatibilityType. + */ + int getIncompatibilityTypeValue(); + /** + *
+   * The incompatibility type of this issue.
+   * 
+ * + * .google.container.v1beta1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; + * @return The incompatibilityType. + */ + com.google.container.v1beta1.AutopilotCompatibilityIssue.IssueType getIncompatibilityType(); + + /** + *
+   * The name of the resources which are subject to this issue.
+   * 
+ * + * repeated string subjects = 4; + * @return A list containing the subjects. + */ + java.util.List + getSubjectsList(); + /** + *
+   * The name of the resources which are subject to this issue.
+   * 
+ * + * repeated string subjects = 4; + * @return The count of subjects. + */ + int getSubjectsCount(); + /** + *
+   * The name of the resources which are subject to this issue.
+   * 
+ * + * repeated string subjects = 4; + * @param index The index of the element to return. + * @return The subjects at the given index. + */ + java.lang.String getSubjects(int index); + /** + *
+   * The name of the resources which are subject to this issue.
+   * 
+ * + * repeated string subjects = 4; + * @param index The index of the value to return. + * @return The bytes of the subjects at the given index. + */ + com.google.protobuf.ByteString + getSubjectsBytes(int index); + + /** + *
+   * A URL to a public documnetation, which addresses resolving this issue.
+   * 
+ * + * string documentation_url = 5; + * @return The documentationUrl. + */ + java.lang.String getDocumentationUrl(); + /** + *
+   * A URL to a public documnetation, which addresses resolving this issue.
+   * 
+ * + * string documentation_url = 5; + * @return The bytes for documentationUrl. + */ + com.google.protobuf.ByteString + getDocumentationUrlBytes(); + + /** + *
+   * The description of the issue.
+   * 
+ * + * string description = 6; + * @return The description. + */ + java.lang.String getDescription(); + /** + *
+   * The description of the issue.
+   * 
+ * + * string description = 6; + * @return The bytes for description. + */ + com.google.protobuf.ByteString + getDescriptionBytes(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutopilotConversionStatus.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutopilotConversionStatus.java new file mode 100644 index 000000000000..159aac35c469 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutopilotConversionStatus.java @@ -0,0 +1,666 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * AutopilotConversionStatus represents conversion status.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.AutopilotConversionStatus} + */ +public final class AutopilotConversionStatus extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.AutopilotConversionStatus) + AutopilotConversionStatusOrBuilder { +private static final long serialVersionUID = 0L; + // Use AutopilotConversionStatus.newBuilder() to construct. + private AutopilotConversionStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AutopilotConversionStatus() { + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AutopilotConversionStatus(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AutopilotConversionStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AutopilotConversionStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.AutopilotConversionStatus.class, com.google.container.v1beta1.AutopilotConversionStatus.Builder.class); + } + + /** + *
+   * The current state of the conversion.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.AutopilotConversionStatus.State} + */ + public enum State + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * STATE_UNSPECIFIED indicates the state is unspecified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + *
+     * DONE indicates the conversion has been completed. Old node pools will
+     * continue being deleted in the background.
+     * 
+ * + * DONE = 5; + */ + DONE(5), + UNRECOGNIZED(-1), + ; + + /** + *
+     * STATE_UNSPECIFIED indicates the state is unspecified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + *
+     * DONE indicates the conversion has been completed. Old node pools will
+     * continue being deleted in the background.
+     * 
+ * + * DONE = 5; + */ + public static final int DONE_VALUE = 5; + + + 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 STATE_UNSPECIFIED; + case 5: return DONE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> 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.AutopilotConversionStatus.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.AutopilotConversionStatus.State) + } + + public static final int STATE_FIELD_NUMBER = 2; + private int state_ = 0; + /** + *
+   * Output only. The current state of the conversion.
+   * 
+ * + * .google.container.v1beta1.AutopilotConversionStatus.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + *
+   * Output only. The current state of the conversion.
+   * 
+ * + * .google.container.v1beta1.AutopilotConversionStatus.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The state. + */ + @java.lang.Override public com.google.container.v1beta1.AutopilotConversionStatus.State getState() { + com.google.container.v1beta1.AutopilotConversionStatus.State result = com.google.container.v1beta1.AutopilotConversionStatus.State.forNumber(state_); + return result == null ? com.google.container.v1beta1.AutopilotConversionStatus.State.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 (state_ != com.google.container.v1beta1.AutopilotConversionStatus.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, state_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (state_ != com.google.container.v1beta1.AutopilotConversionStatus.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.AutopilotConversionStatus)) { + return super.equals(obj); + } + com.google.container.v1beta1.AutopilotConversionStatus other = (com.google.container.v1beta1.AutopilotConversionStatus) obj; + + if (state_ != other.state_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.AutopilotConversionStatus parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.AutopilotConversionStatus parseFrom( + 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.AutopilotConversionStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.AutopilotConversionStatus parseFrom( + com.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.AutopilotConversionStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.AutopilotConversionStatus parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.AutopilotConversionStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.AutopilotConversionStatus parseFrom( + java.io.InputStream 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.AutopilotConversionStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.AutopilotConversionStatus parseDelimitedFrom( + java.io.InputStream 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.AutopilotConversionStatus parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.AutopilotConversionStatus parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.AutopilotConversionStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * AutopilotConversionStatus represents conversion status.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.AutopilotConversionStatus} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.AutopilotConversionStatus) + com.google.container.v1beta1.AutopilotConversionStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AutopilotConversionStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AutopilotConversionStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.AutopilotConversionStatus.class, com.google.container.v1beta1.AutopilotConversionStatus.Builder.class); + } + + // Construct using com.google.container.v1beta1.AutopilotConversionStatus.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + state_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_AutopilotConversionStatus_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.AutopilotConversionStatus getDefaultInstanceForType() { + return com.google.container.v1beta1.AutopilotConversionStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.AutopilotConversionStatus build() { + com.google.container.v1beta1.AutopilotConversionStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.AutopilotConversionStatus buildPartial() { + com.google.container.v1beta1.AutopilotConversionStatus result = new com.google.container.v1beta1.AutopilotConversionStatus(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.AutopilotConversionStatus result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.state_ = state_; + } + } + + @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.AutopilotConversionStatus) { + return mergeFrom((com.google.container.v1beta1.AutopilotConversionStatus)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.AutopilotConversionStatus other) { + if (other == com.google.container.v1beta1.AutopilotConversionStatus.getDefaultInstance()) return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 16: { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int state_ = 0; + /** + *
+     * Output only. The current state of the conversion.
+     * 
+ * + * .google.container.v1beta1.AutopilotConversionStatus.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + *
+     * Output only. The current state of the conversion.
+     * 
+ * + * .google.container.v1beta1.AutopilotConversionStatus.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Output only. The current state of the conversion.
+     * 
+ * + * .google.container.v1beta1.AutopilotConversionStatus.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The state. + */ + @java.lang.Override + public com.google.container.v1beta1.AutopilotConversionStatus.State getState() { + com.google.container.v1beta1.AutopilotConversionStatus.State result = com.google.container.v1beta1.AutopilotConversionStatus.State.forNumber(state_); + return result == null ? com.google.container.v1beta1.AutopilotConversionStatus.State.UNRECOGNIZED : result; + } + /** + *
+     * Output only. The current state of the conversion.
+     * 
+ * + * .google.container.v1beta1.AutopilotConversionStatus.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.container.v1beta1.AutopilotConversionStatus.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Output only. The current state of the conversion.
+     * 
+ * + * .google.container.v1beta1.AutopilotConversionStatus.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000001); + state_ = 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.AutopilotConversionStatus) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.AutopilotConversionStatus) + private static final com.google.container.v1beta1.AutopilotConversionStatus DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.AutopilotConversionStatus(); + } + + public static com.google.container.v1beta1.AutopilotConversionStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutopilotConversionStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.AutopilotConversionStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutopilotConversionStatusOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutopilotConversionStatusOrBuilder.java new file mode 100644 index 000000000000..4682ae3f9cbb --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutopilotConversionStatusOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface AutopilotConversionStatusOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.AutopilotConversionStatus) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Output only. The current state of the conversion.
+   * 
+ * + * .google.container.v1beta1.AutopilotConversionStatus.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + *
+   * Output only. The current state of the conversion.
+   * 
+ * + * .google.container.v1beta1.AutopilotConversionStatus.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The state. + */ + com.google.container.v1beta1.AutopilotConversionStatus.State getState(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutopilotOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutopilotOrBuilder.java new file mode 100644 index 000000000000..aec098c914dc --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutopilotOrBuilder.java @@ -0,0 +1,74 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface AutopilotOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.Autopilot) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Enable Autopilot
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); + + /** + *
+   * Workload policy configuration for Autopilot.
+   * 
+ * + * .google.container.v1beta1.WorkloadPolicyConfig workload_policy_config = 2; + * @return Whether the workloadPolicyConfig field is set. + */ + boolean hasWorkloadPolicyConfig(); + /** + *
+   * Workload policy configuration for Autopilot.
+   * 
+ * + * .google.container.v1beta1.WorkloadPolicyConfig workload_policy_config = 2; + * @return The workloadPolicyConfig. + */ + com.google.container.v1beta1.WorkloadPolicyConfig getWorkloadPolicyConfig(); + /** + *
+   * Workload policy configuration for Autopilot.
+   * 
+ * + * .google.container.v1beta1.WorkloadPolicyConfig workload_policy_config = 2; + */ + com.google.container.v1beta1.WorkloadPolicyConfigOrBuilder getWorkloadPolicyConfigOrBuilder(); + + /** + *
+   * Output only. ConversionStatus shows conversion status.
+   * 
+ * + * .google.container.v1beta1.AutopilotConversionStatus conversion_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the conversionStatus field is set. + */ + boolean hasConversionStatus(); + /** + *
+   * Output only. ConversionStatus shows conversion status.
+   * 
+ * + * .google.container.v1beta1.AutopilotConversionStatus conversion_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The conversionStatus. + */ + com.google.container.v1beta1.AutopilotConversionStatus getConversionStatus(); + /** + *
+   * Output only. ConversionStatus shows conversion status.
+   * 
+ * + * .google.container.v1beta1.AutopilotConversionStatus conversion_status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.container.v1beta1.AutopilotConversionStatusOrBuilder getConversionStatusOrBuilder(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaults.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaults.java new file mode 100644 index 000000000000..759010ddbc21 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaults.java @@ -0,0 +1,2748 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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.emptyList(); + serviceAccount_ = ""; + minCpuPlatform_ = ""; + diskType_ = ""; + bootDiskKmsKey_ = ""; + imageType_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AutoprovisioningNodePoolDefaults(); + } + + 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); + } + + private int bitField0_; + public static final int OAUTH_SCOPES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList oauthScopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * 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; + @SuppressWarnings("serial") + 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 ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * 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 upgradeSettings_ == null ? com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance() : upgradeSettings_; + } + + 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 ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * 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 management_ == null ? com.google.container.v1beta1.NodeManagement.getDefaultInstance() : management_; + } + + public static final int MIN_CPU_PLATFORM_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object minCpuPlatform_ = ""; + /** + *
+   * Deprecated. Minimum CPU platform to be used for NAP created node pools.
+   * The instance may be scheduled on the specified or newer CPU platform.
+   * Applicable values are the friendly names of CPU platforms, such as
+   * minCpuPlatform: Intel Haswell or
+   * minCpuPlatform: Intel Sandy Bridge. For more
+   * information, read [how to specify min CPU
+   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
+   * This field is deprecated, min_cpu_platform should be specified using
+   * `cloud.google.com/requested-min-cpu-platform` label selector on the pod.
+   * To unset the min cpu platform field pass "automatic"
+   * as field value.
+   * 
+ * + * string min_cpu_platform = 5 [deprecated = true]; + * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4420 + * @return The minCpuPlatform. + */ + @java.lang.Override + @java.lang.Deprecated 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; + } + } + /** + *
+   * Deprecated. Minimum CPU platform to be used for NAP created node pools.
+   * The instance may be scheduled on the specified or newer CPU platform.
+   * Applicable values are the friendly names of CPU platforms, such as
+   * minCpuPlatform: Intel Haswell or
+   * minCpuPlatform: Intel Sandy Bridge. For more
+   * information, read [how to specify min CPU
+   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
+   * This field is deprecated, min_cpu_platform should be specified using
+   * `cloud.google.com/requested-min-cpu-platform` label selector on the pod.
+   * To unset the min cpu platform field pass "automatic"
+   * as field value.
+   * 
+ * + * string min_cpu_platform = 5 [deprecated = true]; + * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4420 + * @return The bytes for minCpuPlatform. + */ + @java.lang.Override + @java.lang.Deprecated 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_ = 0; + /** + *
+   * 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; + @SuppressWarnings("serial") + 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 ((bitField0_ & 0x00000004) != 0); + } + /** + *
+   * 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 shieldedInstanceConfig_ == null ? com.google.container.v1beta1.ShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + } + + public static final int BOOT_DISK_KMS_KEY_FIELD_NUMBER = 9; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + private volatile java.lang.Object imageType_ = ""; + /** + *
+   * The image type to use for NAP created node. Please see
+   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+   * available image types.
+   * 
+ * + * 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 NAP created node. Please see
+   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+   * available image types.
+   * 
+ * + * 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; + } + } + + public static final int INSECURE_KUBELET_READONLY_PORT_ENABLED_FIELD_NUMBER = 13; + private boolean insecureKubeletReadonlyPortEnabled_ = false; + /** + *
+   * Enable or disable Kubelet read only port.
+   * 
+ * + * optional bool insecure_kubelet_readonly_port_enabled = 13; + * @return Whether the insecureKubeletReadonlyPortEnabled field is set. + */ + @java.lang.Override + public boolean hasInsecureKubeletReadonlyPortEnabled() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+   * Enable or disable Kubelet read only port.
+   * 
+ * + * optional bool insecure_kubelet_readonly_port_enabled = 13; + * @return The insecureKubeletReadonlyPortEnabled. + */ + @java.lang.Override + public boolean getInsecureKubeletReadonlyPortEnabled() { + return insecureKubeletReadonlyPortEnabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceAccount_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getUpgradeSettings()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getManagement()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minCpuPlatform_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, minCpuPlatform_); + } + if (diskSizeGb_ != 0) { + output.writeInt32(6, diskSizeGb_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, diskType_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(8, getShieldedInstanceConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootDiskKmsKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, bootDiskKmsKey_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, imageType_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeBool(13, insecureKubeletReadonlyPortEnabled_); + } + getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, serviceAccount_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpgradeSettings()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getManagement()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minCpuPlatform_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, minCpuPlatform_); + } + if (diskSizeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, diskSizeGb_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, diskType_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getShieldedInstanceConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootDiskKmsKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, bootDiskKmsKey_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, imageType_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(13, insecureKubeletReadonlyPortEnabled_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (hasInsecureKubeletReadonlyPortEnabled() != other.hasInsecureKubeletReadonlyPortEnabled()) return false; + if (hasInsecureKubeletReadonlyPortEnabled()) { + if (getInsecureKubeletReadonlyPortEnabled() + != other.getInsecureKubeletReadonlyPortEnabled()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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(); + if (hasInsecureKubeletReadonlyPortEnabled()) { + hash = (37 * hash) + INSECURE_KUBELET_READONLY_PORT_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInsecureKubeletReadonlyPortEnabled()); + } + hash = (29 * hash) + getUnknownFields().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) { + getUpgradeSettingsFieldBuilder(); + getManagementFieldBuilder(); + getShieldedInstanceConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + oauthScopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + serviceAccount_ = ""; + upgradeSettings_ = null; + if (upgradeSettingsBuilder_ != null) { + upgradeSettingsBuilder_.dispose(); + upgradeSettingsBuilder_ = null; + } + management_ = null; + if (managementBuilder_ != null) { + managementBuilder_.dispose(); + managementBuilder_ = null; + } + minCpuPlatform_ = ""; + diskSizeGb_ = 0; + diskType_ = ""; + shieldedInstanceConfig_ = null; + if (shieldedInstanceConfigBuilder_ != null) { + shieldedInstanceConfigBuilder_.dispose(); + shieldedInstanceConfigBuilder_ = null; + } + bootDiskKmsKey_ = ""; + imageType_ = ""; + insecureKubeletReadonlyPortEnabled_ = false; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.AutoprovisioningNodePoolDefaults result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + oauthScopes_.makeImmutable(); + result.oauthScopes_ = oauthScopes_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.serviceAccount_ = serviceAccount_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.upgradeSettings_ = upgradeSettingsBuilder_ == null + ? upgradeSettings_ + : upgradeSettingsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.management_ = managementBuilder_ == null + ? management_ + : managementBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.minCpuPlatform_ = minCpuPlatform_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.diskSizeGb_ = diskSizeGb_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.diskType_ = diskType_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.shieldedInstanceConfig_ = shieldedInstanceConfigBuilder_ == null + ? shieldedInstanceConfig_ + : shieldedInstanceConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.bootDiskKmsKey_ = bootDiskKmsKey_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.imageType_ = imageType_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.insecureKubeletReadonlyPortEnabled_ = insecureKubeletReadonlyPortEnabled_; + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @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_ |= 0x00000001; + } else { + ensureOauthScopesIsMutable(); + oauthScopes_.addAll(other.oauthScopes_); + } + onChanged(); + } + if (!other.getServiceAccount().isEmpty()) { + serviceAccount_ = other.serviceAccount_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasUpgradeSettings()) { + mergeUpgradeSettings(other.getUpgradeSettings()); + } + if (other.hasManagement()) { + mergeManagement(other.getManagement()); + } + if (!other.getMinCpuPlatform().isEmpty()) { + minCpuPlatform_ = other.minCpuPlatform_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getDiskSizeGb() != 0) { + setDiskSizeGb(other.getDiskSizeGb()); + } + if (!other.getDiskType().isEmpty()) { + diskType_ = other.diskType_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasShieldedInstanceConfig()) { + mergeShieldedInstanceConfig(other.getShieldedInstanceConfig()); + } + if (!other.getBootDiskKmsKey().isEmpty()) { + bootDiskKmsKey_ = other.bootDiskKmsKey_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.getImageType().isEmpty()) { + imageType_ = other.imageType_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (other.hasInsecureKubeletReadonlyPortEnabled()) { + setInsecureKubeletReadonlyPortEnabled(other.getInsecureKubeletReadonlyPortEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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(); + ensureOauthScopesIsMutable(); + oauthScopes_.add(s); + break; + } // case 10 + case 18: { + serviceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getUpgradeSettingsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getManagementFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + minCpuPlatform_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + diskSizeGb_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: { + diskType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + input.readMessage( + getShieldedInstanceConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: { + bootDiskKmsKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: { + imageType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 104: { + insecureKubeletReadonlyPortEnabled_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 104 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList oauthScopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureOauthScopesIsMutable() { + if (!oauthScopes_.isModifiable()) { + 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() { + oauthScopes_.makeImmutable(); + 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); + } + /** + *
+     * 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); + 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 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); + 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 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_); + 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; + * @return This builder for chaining. + */ + public Builder clearOauthScopes() { + oauthScopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + 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); + bitField0_ |= 0x00000001; + 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; + bitField0_ |= 0x00000002; + 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(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + 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 ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * 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; + } else { + upgradeSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + 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(); + } else { + upgradeSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + 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 (((bitField0_ & 0x00000004) != 0) && + upgradeSettings_ != null && + upgradeSettings_ != com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance()) { + getUpgradeSettingsBuilder().mergeFrom(value); + } else { + upgradeSettings_ = value; + } + } else { + upgradeSettingsBuilder_.mergeFrom(value); + } + if (upgradeSettings_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 3; + */ + public Builder clearUpgradeSettings() { + bitField0_ = (bitField0_ & ~0x00000004); + upgradeSettings_ = null; + if (upgradeSettingsBuilder_ != null) { + upgradeSettingsBuilder_.dispose(); + upgradeSettingsBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000004; + 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 ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * 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; + } else { + managementBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + 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(); + } else { + managementBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + 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 (((bitField0_ & 0x00000008) != 0) && + management_ != null && + management_ != com.google.container.v1beta1.NodeManagement.getDefaultInstance()) { + getManagementBuilder().mergeFrom(value); + } else { + management_ = value; + } + } else { + managementBuilder_.mergeFrom(value); + } + if (management_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 4; + */ + public Builder clearManagement() { + bitField0_ = (bitField0_ & ~0x00000008); + management_ = null; + if (managementBuilder_ != null) { + managementBuilder_.dispose(); + managementBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 4; + */ + public com.google.container.v1beta1.NodeManagement.Builder getManagementBuilder() { + bitField0_ |= 0x00000008; + 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_ = ""; + /** + *
+     * Deprecated. Minimum CPU platform to be used for NAP created node pools.
+     * The instance may be scheduled on the specified or newer CPU platform.
+     * Applicable values are the friendly names of CPU platforms, such as
+     * minCpuPlatform: Intel Haswell or
+     * minCpuPlatform: Intel Sandy Bridge. For more
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
+     * This field is deprecated, min_cpu_platform should be specified using
+     * `cloud.google.com/requested-min-cpu-platform` label selector on the pod.
+     * To unset the min cpu platform field pass "automatic"
+     * as field value.
+     * 
+ * + * string min_cpu_platform = 5 [deprecated = true]; + * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4420 + * @return The minCpuPlatform. + */ + @java.lang.Deprecated 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; + } + } + /** + *
+     * Deprecated. Minimum CPU platform to be used for NAP created node pools.
+     * The instance may be scheduled on the specified or newer CPU platform.
+     * Applicable values are the friendly names of CPU platforms, such as
+     * minCpuPlatform: Intel Haswell or
+     * minCpuPlatform: Intel Sandy Bridge. For more
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
+     * This field is deprecated, min_cpu_platform should be specified using
+     * `cloud.google.com/requested-min-cpu-platform` label selector on the pod.
+     * To unset the min cpu platform field pass "automatic"
+     * as field value.
+     * 
+ * + * string min_cpu_platform = 5 [deprecated = true]; + * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4420 + * @return The bytes for minCpuPlatform. + */ + @java.lang.Deprecated 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; + } + } + /** + *
+     * Deprecated. Minimum CPU platform to be used for NAP created node pools.
+     * The instance may be scheduled on the specified or newer CPU platform.
+     * Applicable values are the friendly names of CPU platforms, such as
+     * minCpuPlatform: Intel Haswell or
+     * minCpuPlatform: Intel Sandy Bridge. For more
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
+     * This field is deprecated, min_cpu_platform should be specified using
+     * `cloud.google.com/requested-min-cpu-platform` label selector on the pod.
+     * To unset the min cpu platform field pass "automatic"
+     * as field value.
+     * 
+ * + * string min_cpu_platform = 5 [deprecated = true]; + * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4420 + * @param value The minCpuPlatform to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setMinCpuPlatform( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + minCpuPlatform_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Deprecated. Minimum CPU platform to be used for NAP created node pools.
+     * The instance may be scheduled on the specified or newer CPU platform.
+     * Applicable values are the friendly names of CPU platforms, such as
+     * minCpuPlatform: Intel Haswell or
+     * minCpuPlatform: Intel Sandy Bridge. For more
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
+     * This field is deprecated, min_cpu_platform should be specified using
+     * `cloud.google.com/requested-min-cpu-platform` label selector on the pod.
+     * To unset the min cpu platform field pass "automatic"
+     * as field value.
+     * 
+ * + * string min_cpu_platform = 5 [deprecated = true]; + * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4420 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearMinCpuPlatform() { + minCpuPlatform_ = getDefaultInstance().getMinCpuPlatform(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+     * Deprecated. Minimum CPU platform to be used for NAP created node pools.
+     * The instance may be scheduled on the specified or newer CPU platform.
+     * Applicable values are the friendly names of CPU platforms, such as
+     * minCpuPlatform: Intel Haswell or
+     * minCpuPlatform: Intel Sandy Bridge. For more
+     * information, read [how to specify min CPU
+     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
+     * This field is deprecated, min_cpu_platform should be specified using
+     * `cloud.google.com/requested-min-cpu-platform` label selector on the pod.
+     * To unset the min cpu platform field pass "automatic"
+     * as field value.
+     * 
+ * + * string min_cpu_platform = 5 [deprecated = true]; + * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4420 + * @param value The bytes for minCpuPlatform to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setMinCpuPlatformBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + minCpuPlatform_ = value; + bitField0_ |= 0x00000010; + 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; + bitField0_ |= 0x00000020; + 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() { + bitField0_ = (bitField0_ & ~0x00000020); + 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; + bitField0_ |= 0x00000040; + 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(); + bitField0_ = (bitField0_ & ~0x00000040); + 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; + bitField0_ |= 0x00000040; + 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 ((bitField0_ & 0x00000080) != 0); + } + /** + *
+     * 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; + } else { + shieldedInstanceConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + 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(); + } else { + shieldedInstanceConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + 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 (((bitField0_ & 0x00000080) != 0) && + shieldedInstanceConfig_ != null && + shieldedInstanceConfig_ != com.google.container.v1beta1.ShieldedInstanceConfig.getDefaultInstance()) { + getShieldedInstanceConfigBuilder().mergeFrom(value); + } else { + shieldedInstanceConfig_ = value; + } + } else { + shieldedInstanceConfigBuilder_.mergeFrom(value); + } + if (shieldedInstanceConfig_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + /** + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + public Builder clearShieldedInstanceConfig() { + bitField0_ = (bitField0_ & ~0x00000080); + shieldedInstanceConfig_ = null; + if (shieldedInstanceConfigBuilder_ != null) { + shieldedInstanceConfigBuilder_.dispose(); + shieldedInstanceConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 8; + */ + public com.google.container.v1beta1.ShieldedInstanceConfig.Builder getShieldedInstanceConfigBuilder() { + bitField0_ |= 0x00000080; + 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; + bitField0_ |= 0x00000100; + 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(); + bitField0_ = (bitField0_ & ~0x00000100); + 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; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.lang.Object imageType_ = ""; + /** + *
+     * The image type to use for NAP created node. Please see
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+     * available image types.
+     * 
+ * + * 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 NAP created node. Please see
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+     * available image types.
+     * 
+ * + * 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 NAP created node. Please see
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+     * available image types.
+     * 
+ * + * 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; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * The image type to use for NAP created node. Please see
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+     * available image types.
+     * 
+ * + * string image_type = 10; + * @return This builder for chaining. + */ + public Builder clearImageType() { + imageType_ = getDefaultInstance().getImageType(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + *
+     * The image type to use for NAP created node. Please see
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+     * available image types.
+     * 
+ * + * 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; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private boolean insecureKubeletReadonlyPortEnabled_ ; + /** + *
+     * Enable or disable Kubelet read only port.
+     * 
+ * + * optional bool insecure_kubelet_readonly_port_enabled = 13; + * @return Whether the insecureKubeletReadonlyPortEnabled field is set. + */ + @java.lang.Override + public boolean hasInsecureKubeletReadonlyPortEnabled() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + *
+     * Enable or disable Kubelet read only port.
+     * 
+ * + * optional bool insecure_kubelet_readonly_port_enabled = 13; + * @return The insecureKubeletReadonlyPortEnabled. + */ + @java.lang.Override + public boolean getInsecureKubeletReadonlyPortEnabled() { + return insecureKubeletReadonlyPortEnabled_; + } + /** + *
+     * Enable or disable Kubelet read only port.
+     * 
+ * + * optional bool insecure_kubelet_readonly_port_enabled = 13; + * @param value The insecureKubeletReadonlyPortEnabled to set. + * @return This builder for chaining. + */ + public Builder setInsecureKubeletReadonlyPortEnabled(boolean value) { + + insecureKubeletReadonlyPortEnabled_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+     * Enable or disable Kubelet read only port.
+     * 
+ * + * optional bool insecure_kubelet_readonly_port_enabled = 13; + * @return This builder for chaining. + */ + public Builder clearInsecureKubeletReadonlyPortEnabled() { + bitField0_ = (bitField0_ & ~0x00000400); + insecureKubeletReadonlyPortEnabled_ = 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.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaultsOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaultsOrBuilder.java new file mode 100644 index 000000000000..047122a90b18 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaultsOrBuilder.java @@ -0,0 +1,370 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + + /** + *
+   * Deprecated. Minimum CPU platform to be used for NAP created node pools.
+   * The instance may be scheduled on the specified or newer CPU platform.
+   * Applicable values are the friendly names of CPU platforms, such as
+   * minCpuPlatform: Intel Haswell or
+   * minCpuPlatform: Intel Sandy Bridge. For more
+   * information, read [how to specify min CPU
+   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
+   * This field is deprecated, min_cpu_platform should be specified using
+   * `cloud.google.com/requested-min-cpu-platform` label selector on the pod.
+   * To unset the min cpu platform field pass "automatic"
+   * as field value.
+   * 
+ * + * string min_cpu_platform = 5 [deprecated = true]; + * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4420 + * @return The minCpuPlatform. + */ + @java.lang.Deprecated java.lang.String getMinCpuPlatform(); + /** + *
+   * Deprecated. Minimum CPU platform to be used for NAP created node pools.
+   * The instance may be scheduled on the specified or newer CPU platform.
+   * Applicable values are the friendly names of CPU platforms, such as
+   * minCpuPlatform: Intel Haswell or
+   * minCpuPlatform: Intel Sandy Bridge. For more
+   * information, read [how to specify min CPU
+   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).
+   * This field is deprecated, min_cpu_platform should be specified using
+   * `cloud.google.com/requested-min-cpu-platform` label selector on the pod.
+   * To unset the min cpu platform field pass "automatic"
+   * as field value.
+   * 
+ * + * string min_cpu_platform = 5 [deprecated = true]; + * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4420 + * @return The bytes for minCpuPlatform. + */ + @java.lang.Deprecated 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 NAP created node. Please see
+   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+   * available image types.
+   * 
+ * + * string image_type = 10; + * @return The imageType. + */ + java.lang.String getImageType(); + /** + *
+   * The image type to use for NAP created node. Please see
+   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+   * available image types.
+   * 
+ * + * string image_type = 10; + * @return The bytes for imageType. + */ + com.google.protobuf.ByteString + getImageTypeBytes(); + + /** + *
+   * Enable or disable Kubelet read only port.
+   * 
+ * + * optional bool insecure_kubelet_readonly_port_enabled = 13; + * @return Whether the insecureKubeletReadonlyPortEnabled field is set. + */ + boolean hasInsecureKubeletReadonlyPortEnabled(); + /** + *
+   * Enable or disable Kubelet read only port.
+   * 
+ * + * optional bool insecure_kubelet_readonly_port_enabled = 13; + * @return The insecureKubeletReadonlyPortEnabled. + */ + boolean getInsecureKubeletReadonlyPortEnabled(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BestEffortProvisioning.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BestEffortProvisioning.java new file mode 100644 index 000000000000..587c1f62f356 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BestEffortProvisioning.java @@ -0,0 +1,595 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * Best effort provisioning.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.BestEffortProvisioning} + */ +public final class BestEffortProvisioning extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.BestEffortProvisioning) + BestEffortProvisioningOrBuilder { +private static final long serialVersionUID = 0L; + // Use BestEffortProvisioning.newBuilder() to construct. + private BestEffortProvisioning(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BestEffortProvisioning() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BestEffortProvisioning(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_BestEffortProvisioning_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_BestEffortProvisioning_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.BestEffortProvisioning.class, com.google.container.v1beta1.BestEffortProvisioning.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * When this is enabled, cluster/node pool creations will ignore non-fatal
+   * errors like stockout to best provision as many nodes as possible right now
+   * and eventually bring up all target number of nodes
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int MIN_PROVISION_NODES_FIELD_NUMBER = 2; + private int minProvisionNodes_ = 0; + /** + *
+   * Minimum number of nodes to be provisioned to be considered as succeeded,
+   * and the rest of nodes will be provisioned gradually and eventually when
+   * stockout issue has been resolved.
+   * 
+ * + * int32 min_provision_nodes = 2; + * @return The minProvisionNodes. + */ + @java.lang.Override + public int getMinProvisionNodes() { + return minProvisionNodes_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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 (minProvisionNodes_ != 0) { + output.writeInt32(2, minProvisionNodes_); + } + getUnknownFields().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 (minProvisionNodes_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, minProvisionNodes_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.BestEffortProvisioning)) { + return super.equals(obj); + } + com.google.container.v1beta1.BestEffortProvisioning other = (com.google.container.v1beta1.BestEffortProvisioning) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (getMinProvisionNodes() + != other.getMinProvisionNodes()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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_PROVISION_NODES_FIELD_NUMBER; + hash = (53 * hash) + getMinProvisionNodes(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.BestEffortProvisioning parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.BestEffortProvisioning parseFrom( + 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.BestEffortProvisioning parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.BestEffortProvisioning parseFrom( + com.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.BestEffortProvisioning parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.BestEffortProvisioning parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.BestEffortProvisioning parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.BestEffortProvisioning parseFrom( + java.io.InputStream 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.BestEffortProvisioning parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.BestEffortProvisioning parseDelimitedFrom( + java.io.InputStream 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.BestEffortProvisioning parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.BestEffortProvisioning parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.BestEffortProvisioning prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Best effort provisioning.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.BestEffortProvisioning} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.BestEffortProvisioning) + com.google.container.v1beta1.BestEffortProvisioningOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_BestEffortProvisioning_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_BestEffortProvisioning_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.BestEffortProvisioning.class, com.google.container.v1beta1.BestEffortProvisioning.Builder.class); + } + + // Construct using com.google.container.v1beta1.BestEffortProvisioning.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + minProvisionNodes_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_BestEffortProvisioning_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.BestEffortProvisioning getDefaultInstanceForType() { + return com.google.container.v1beta1.BestEffortProvisioning.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.BestEffortProvisioning build() { + com.google.container.v1beta1.BestEffortProvisioning result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.BestEffortProvisioning buildPartial() { + com.google.container.v1beta1.BestEffortProvisioning result = new com.google.container.v1beta1.BestEffortProvisioning(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.BestEffortProvisioning result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.minProvisionNodes_ = minProvisionNodes_; + } + } + + @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.BestEffortProvisioning) { + return mergeFrom((com.google.container.v1beta1.BestEffortProvisioning)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.BestEffortProvisioning other) { + if (other == com.google.container.v1beta1.BestEffortProvisioning.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (other.getMinProvisionNodes() != 0) { + setMinProvisionNodes(other.getMinProvisionNodes()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + minProvisionNodes_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enabled_ ; + /** + *
+     * When this is enabled, cluster/node pool creations will ignore non-fatal
+     * errors like stockout to best provision as many nodes as possible right now
+     * and eventually bring up all target number of nodes
+     * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * When this is enabled, cluster/node pool creations will ignore non-fatal
+     * errors like stockout to best provision as many nodes as possible right now
+     * and eventually bring up all target number of nodes
+     * 
+ * + * bool enabled = 1; + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * When this is enabled, cluster/node pool creations will ignore non-fatal
+     * errors like stockout to best provision as many nodes as possible right now
+     * and eventually bring up all target number of nodes
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + + private int minProvisionNodes_ ; + /** + *
+     * Minimum number of nodes to be provisioned to be considered as succeeded,
+     * and the rest of nodes will be provisioned gradually and eventually when
+     * stockout issue has been resolved.
+     * 
+ * + * int32 min_provision_nodes = 2; + * @return The minProvisionNodes. + */ + @java.lang.Override + public int getMinProvisionNodes() { + return minProvisionNodes_; + } + /** + *
+     * Minimum number of nodes to be provisioned to be considered as succeeded,
+     * and the rest of nodes will be provisioned gradually and eventually when
+     * stockout issue has been resolved.
+     * 
+ * + * int32 min_provision_nodes = 2; + * @param value The minProvisionNodes to set. + * @return This builder for chaining. + */ + public Builder setMinProvisionNodes(int value) { + + minProvisionNodes_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Minimum number of nodes to be provisioned to be considered as succeeded,
+     * and the rest of nodes will be provisioned gradually and eventually when
+     * stockout issue has been resolved.
+     * 
+ * + * int32 min_provision_nodes = 2; + * @return This builder for chaining. + */ + public Builder clearMinProvisionNodes() { + bitField0_ = (bitField0_ & ~0x00000002); + minProvisionNodes_ = 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.BestEffortProvisioning) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.BestEffortProvisioning) + private static final com.google.container.v1beta1.BestEffortProvisioning DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.BestEffortProvisioning(); + } + + public static com.google.container.v1beta1.BestEffortProvisioning getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BestEffortProvisioning parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.BestEffortProvisioning getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BestEffortProvisioningOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BestEffortProvisioningOrBuilder.java new file mode 100644 index 000000000000..3f1a3ee2fd49 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BestEffortProvisioningOrBuilder.java @@ -0,0 +1,34 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface BestEffortProvisioningOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.BestEffortProvisioning) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * When this is enabled, cluster/node pool creations will ignore non-fatal
+   * errors like stockout to best provision as many nodes as possible right now
+   * and eventually bring up all target number of nodes
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); + + /** + *
+   * Minimum number of nodes to be provisioned to be considered as succeeded,
+   * and the rest of nodes will be provisioned gradually and eventually when
+   * stockout issue has been resolved.
+   * 
+ * + * int32 min_provision_nodes = 2; + * @return The minProvisionNodes. + */ + int getMinProvisionNodes(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BinaryAuthorization.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BinaryAuthorization.java new file mode 100644 index 000000000000..9839650ab23b --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BinaryAuthorization.java @@ -0,0 +1,1938 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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() { + evaluationMode_ = 0; + policyBindings_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BinaryAuthorization(); + } + + 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); + } + + /** + *
+   * Binary Authorization mode of operation.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.BinaryAuthorization.EvaluationMode} + */ + public enum EvaluationMode + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Default value
+     * 
+ * + * EVALUATION_MODE_UNSPECIFIED = 0; + */ + EVALUATION_MODE_UNSPECIFIED(0), + /** + *
+     * Disable BinaryAuthorization
+     * 
+ * + * DISABLED = 1; + */ + DISABLED(1), + /** + *
+     * Enforce Kubernetes admission requests with BinaryAuthorization using the
+     * project's singleton policy. This is equivalent to setting the
+     * enabled boolean to true.
+     * 
+ * + * PROJECT_SINGLETON_POLICY_ENFORCE = 2; + */ + PROJECT_SINGLETON_POLICY_ENFORCE(2), + /** + *
+     * Use Binary Authorization Continuous Validation with the policies
+     * specified in policy_bindings.
+     * 
+ * + * POLICY_BINDINGS = 5; + */ + POLICY_BINDINGS(5), + /** + *
+     * Use Binary Authorization Continuous Validation with the policies
+     * specified in policy_bindings and enforce Kubernetes admission requests
+     * with Binary Authorization using the project's singleton policy.
+     * 
+ * + * POLICY_BINDINGS_AND_PROJECT_SINGLETON_POLICY_ENFORCE = 6; + */ + POLICY_BINDINGS_AND_PROJECT_SINGLETON_POLICY_ENFORCE(6), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Default value
+     * 
+ * + * EVALUATION_MODE_UNSPECIFIED = 0; + */ + public static final int EVALUATION_MODE_UNSPECIFIED_VALUE = 0; + /** + *
+     * Disable BinaryAuthorization
+     * 
+ * + * DISABLED = 1; + */ + public static final int DISABLED_VALUE = 1; + /** + *
+     * Enforce Kubernetes admission requests with BinaryAuthorization using the
+     * project's singleton policy. This is equivalent to setting the
+     * enabled boolean to true.
+     * 
+ * + * PROJECT_SINGLETON_POLICY_ENFORCE = 2; + */ + public static final int PROJECT_SINGLETON_POLICY_ENFORCE_VALUE = 2; + /** + *
+     * Use Binary Authorization Continuous Validation with the policies
+     * specified in policy_bindings.
+     * 
+ * + * POLICY_BINDINGS = 5; + */ + public static final int POLICY_BINDINGS_VALUE = 5; + /** + *
+     * Use Binary Authorization Continuous Validation with the policies
+     * specified in policy_bindings and enforce Kubernetes admission requests
+     * with Binary Authorization using the project's singleton policy.
+     * 
+ * + * POLICY_BINDINGS_AND_PROJECT_SINGLETON_POLICY_ENFORCE = 6; + */ + public static final int POLICY_BINDINGS_AND_PROJECT_SINGLETON_POLICY_ENFORCE_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 EvaluationMode 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 EvaluationMode forNumber(int value) { + switch (value) { + case 0: return EVALUATION_MODE_UNSPECIFIED; + case 1: return DISABLED; + case 2: return PROJECT_SINGLETON_POLICY_ENFORCE; + case 5: return POLICY_BINDINGS; + case 6: return POLICY_BINDINGS_AND_PROJECT_SINGLETON_POLICY_ENFORCE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + EvaluationMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EvaluationMode findValueByNumber(int number) { + return EvaluationMode.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.BinaryAuthorization.getDescriptor().getEnumTypes().get(0); + } + + private static final EvaluationMode[] VALUES = values(); + + public static EvaluationMode 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 EvaluationMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.BinaryAuthorization.EvaluationMode) + } + + public interface PolicyBindingOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.BinaryAuthorization.PolicyBinding) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The relative resource name of the binauthz platform policy to audit. GKE
+     * platform policies have the following format:
+     * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
+     * 
+ * + * optional string name = 1; + * @return Whether the name field is set. + */ + boolean hasName(); + /** + *
+     * The relative resource name of the binauthz platform policy to audit. GKE
+     * platform policies have the following format:
+     * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
+     * 
+ * + * optional string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+     * The relative resource name of the binauthz platform policy to audit. GKE
+     * platform policies have the following format:
+     * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
+     * 
+ * + * optional string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + } + /** + *
+   * Binauthz policy that applies to this cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.BinaryAuthorization.PolicyBinding} + */ + public static final class PolicyBinding extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.BinaryAuthorization.PolicyBinding) + PolicyBindingOrBuilder { + private static final long serialVersionUID = 0L; + // Use PolicyBinding.newBuilder() to construct. + private PolicyBinding(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PolicyBinding() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PolicyBinding(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_BinaryAuthorization_PolicyBinding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_BinaryAuthorization_PolicyBinding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.BinaryAuthorization.PolicyBinding.class, com.google.container.v1beta1.BinaryAuthorization.PolicyBinding.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+     * The relative resource name of the binauthz platform policy to audit. GKE
+     * platform policies have the following format:
+     * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
+     * 
+ * + * optional string name = 1; + * @return Whether the name field is set. + */ + @java.lang.Override + public boolean hasName() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * The relative resource name of the binauthz platform policy to audit. GKE
+     * platform policies have the following format:
+     * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
+     * 
+ * + * optional 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 relative resource name of the binauthz platform policy to audit. GKE
+     * platform policies have the following format:
+     * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
+     * 
+ * + * optional string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.PolicyBinding)) { + return super.equals(obj); + } + com.google.container.v1beta1.BinaryAuthorization.PolicyBinding other = (com.google.container.v1beta1.BinaryAuthorization.PolicyBinding) obj; + + if (hasName() != other.hasName()) return false; + if (hasName()) { + if (!getName() + .equals(other.getName())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.BinaryAuthorization.PolicyBinding parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.BinaryAuthorization.PolicyBinding parseFrom( + 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.PolicyBinding parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.BinaryAuthorization.PolicyBinding parseFrom( + com.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.PolicyBinding parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.BinaryAuthorization.PolicyBinding 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.PolicyBinding parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.BinaryAuthorization.PolicyBinding parseFrom( + java.io.InputStream 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.PolicyBinding parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.BinaryAuthorization.PolicyBinding parseDelimitedFrom( + java.io.InputStream 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.PolicyBinding 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.PolicyBinding parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.PolicyBinding prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Binauthz policy that applies to this cluster.
+     * 
+ * + * Protobuf type {@code google.container.v1beta1.BinaryAuthorization.PolicyBinding} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.BinaryAuthorization.PolicyBinding) + com.google.container.v1beta1.BinaryAuthorization.PolicyBindingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_BinaryAuthorization_PolicyBinding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_BinaryAuthorization_PolicyBinding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.BinaryAuthorization.PolicyBinding.class, com.google.container.v1beta1.BinaryAuthorization.PolicyBinding.Builder.class); + } + + // Construct using com.google.container.v1beta1.BinaryAuthorization.PolicyBinding.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 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_BinaryAuthorization_PolicyBinding_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.BinaryAuthorization.PolicyBinding getDefaultInstanceForType() { + return com.google.container.v1beta1.BinaryAuthorization.PolicyBinding.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.BinaryAuthorization.PolicyBinding build() { + com.google.container.v1beta1.BinaryAuthorization.PolicyBinding result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.BinaryAuthorization.PolicyBinding buildPartial() { + com.google.container.v1beta1.BinaryAuthorization.PolicyBinding result = new com.google.container.v1beta1.BinaryAuthorization.PolicyBinding(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.BinaryAuthorization.PolicyBinding result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @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.PolicyBinding) { + return mergeFrom((com.google.container.v1beta1.BinaryAuthorization.PolicyBinding)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.BinaryAuthorization.PolicyBinding other) { + if (other == com.google.container.v1beta1.BinaryAuthorization.PolicyBinding.getDefaultInstance()) return this; + if (other.hasName()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+       * The relative resource name of the binauthz platform policy to audit. GKE
+       * platform policies have the following format:
+       * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
+       * 
+ * + * optional string name = 1; + * @return Whether the name field is set. + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * The relative resource name of the binauthz platform policy to audit. GKE
+       * platform policies have the following format:
+       * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
+       * 
+ * + * optional 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 relative resource name of the binauthz platform policy to audit. GKE
+       * platform policies have the following format:
+       * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
+       * 
+ * + * optional 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 relative resource name of the binauthz platform policy to audit. GKE
+       * platform policies have the following format:
+       * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
+       * 
+ * + * optional 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * The relative resource name of the binauthz platform policy to audit. GKE
+       * platform policies have the following format:
+       * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
+       * 
+ * + * optional string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * The relative resource name of the binauthz platform policy to audit. GKE
+       * platform policies have the following format:
+       * `projects/{project_number}/platforms/gke/policies/{policy_id}`.
+       * 
+ * + * optional 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; + bitField0_ |= 0x00000001; + 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.PolicyBinding) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.BinaryAuthorization.PolicyBinding) + private static final com.google.container.v1beta1.BinaryAuthorization.PolicyBinding DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.BinaryAuthorization.PolicyBinding(); + } + + public static com.google.container.v1beta1.BinaryAuthorization.PolicyBinding getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyBinding parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.PolicyBinding getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * This field is deprecated. Leave this unset and instead configure
+   * BinaryAuthorization using evaluation_mode. If evaluation_mode is set to
+   * anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored.
+   * 
+ * + * bool enabled = 1 [deprecated = true]; + * @deprecated google.container.v1beta1.BinaryAuthorization.enabled is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1833 + * @return The enabled. + */ + @java.lang.Override + @java.lang.Deprecated public boolean getEnabled() { + return enabled_; + } + + public static final int EVALUATION_MODE_FIELD_NUMBER = 2; + private int evaluationMode_ = 0; + /** + *
+   * Mode of operation for binauthz policy evaluation. If unspecified, defaults
+   * to DISABLED.
+   * 
+ * + * .google.container.v1beta1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; + * @return The enum numeric value on the wire for evaluationMode. + */ + @java.lang.Override public int getEvaluationModeValue() { + return evaluationMode_; + } + /** + *
+   * Mode of operation for binauthz policy evaluation. If unspecified, defaults
+   * to DISABLED.
+   * 
+ * + * .google.container.v1beta1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; + * @return The evaluationMode. + */ + @java.lang.Override public com.google.container.v1beta1.BinaryAuthorization.EvaluationMode getEvaluationMode() { + com.google.container.v1beta1.BinaryAuthorization.EvaluationMode result = com.google.container.v1beta1.BinaryAuthorization.EvaluationMode.forNumber(evaluationMode_); + return result == null ? com.google.container.v1beta1.BinaryAuthorization.EvaluationMode.UNRECOGNIZED : result; + } + + public static final int POLICY_BINDINGS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private java.util.List policyBindings_; + /** + *
+   * Optional. Binauthz policies that apply to this cluster.
+   * 
+ * + * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.List getPolicyBindingsList() { + return policyBindings_; + } + /** + *
+   * Optional. Binauthz policies that apply to this cluster.
+   * 
+ * + * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.List + getPolicyBindingsOrBuilderList() { + return policyBindings_; + } + /** + *
+   * Optional. Binauthz policies that apply to this cluster.
+   * 
+ * + * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public int getPolicyBindingsCount() { + return policyBindings_.size(); + } + /** + *
+   * Optional. Binauthz policies that apply to this cluster.
+   * 
+ * + * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.container.v1beta1.BinaryAuthorization.PolicyBinding getPolicyBindings(int index) { + return policyBindings_.get(index); + } + /** + *
+   * Optional. Binauthz policies that apply to this cluster.
+   * 
+ * + * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.container.v1beta1.BinaryAuthorization.PolicyBindingOrBuilder getPolicyBindingsOrBuilder( + int index) { + return policyBindings_.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_); + } + if (evaluationMode_ != com.google.container.v1beta1.BinaryAuthorization.EvaluationMode.EVALUATION_MODE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, evaluationMode_); + } + for (int i = 0; i < policyBindings_.size(); i++) { + output.writeMessage(5, policyBindings_.get(i)); + } + getUnknownFields().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 (evaluationMode_ != com.google.container.v1beta1.BinaryAuthorization.EvaluationMode.EVALUATION_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, evaluationMode_); + } + for (int i = 0; i < policyBindings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, policyBindings_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (evaluationMode_ != other.evaluationMode_) return false; + if (!getPolicyBindingsList() + .equals(other.getPolicyBindingsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + EVALUATION_MODE_FIELD_NUMBER; + hash = (53 * hash) + evaluationMode_; + if (getPolicyBindingsCount() > 0) { + hash = (37 * hash) + POLICY_BINDINGS_FIELD_NUMBER; + hash = (53 * hash) + getPolicyBindingsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + evaluationMode_ = 0; + if (policyBindingsBuilder_ == null) { + policyBindings_ = java.util.Collections.emptyList(); + } else { + policyBindings_ = null; + policyBindingsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + 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); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1beta1.BinaryAuthorization result) { + if (policyBindingsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + policyBindings_ = java.util.Collections.unmodifiableList(policyBindings_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.policyBindings_ = policyBindings_; + } else { + result.policyBindings_ = policyBindingsBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1beta1.BinaryAuthorization result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.evaluationMode_ = evaluationMode_; + } + } + + @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()); + } + if (other.evaluationMode_ != 0) { + setEvaluationModeValue(other.getEvaluationModeValue()); + } + if (policyBindingsBuilder_ == null) { + if (!other.policyBindings_.isEmpty()) { + if (policyBindings_.isEmpty()) { + policyBindings_ = other.policyBindings_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensurePolicyBindingsIsMutable(); + policyBindings_.addAll(other.policyBindings_); + } + onChanged(); + } + } else { + if (!other.policyBindings_.isEmpty()) { + if (policyBindingsBuilder_.isEmpty()) { + policyBindingsBuilder_.dispose(); + policyBindingsBuilder_ = null; + policyBindings_ = other.policyBindings_; + bitField0_ = (bitField0_ & ~0x00000004); + policyBindingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPolicyBindingsFieldBuilder() : null; + } else { + policyBindingsBuilder_.addAllMessages(other.policyBindings_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + evaluationMode_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 42: { + com.google.container.v1beta1.BinaryAuthorization.PolicyBinding m = + input.readMessage( + com.google.container.v1beta1.BinaryAuthorization.PolicyBinding.parser(), + extensionRegistry); + if (policyBindingsBuilder_ == null) { + ensurePolicyBindingsIsMutable(); + policyBindings_.add(m); + } else { + policyBindingsBuilder_.addMessage(m); + } + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enabled_ ; + /** + *
+     * This field is deprecated. Leave this unset and instead configure
+     * BinaryAuthorization using evaluation_mode. If evaluation_mode is set to
+     * anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored.
+     * 
+ * + * bool enabled = 1 [deprecated = true]; + * @deprecated google.container.v1beta1.BinaryAuthorization.enabled is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1833 + * @return The enabled. + */ + @java.lang.Override + @java.lang.Deprecated public boolean getEnabled() { + return enabled_; + } + /** + *
+     * This field is deprecated. Leave this unset and instead configure
+     * BinaryAuthorization using evaluation_mode. If evaluation_mode is set to
+     * anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored.
+     * 
+ * + * bool enabled = 1 [deprecated = true]; + * @deprecated google.container.v1beta1.BinaryAuthorization.enabled is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1833 + * @param value The enabled to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * This field is deprecated. Leave this unset and instead configure
+     * BinaryAuthorization using evaluation_mode. If evaluation_mode is set to
+     * anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored.
+     * 
+ * + * bool enabled = 1 [deprecated = true]; + * @deprecated google.container.v1beta1.BinaryAuthorization.enabled is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1833 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + + private int evaluationMode_ = 0; + /** + *
+     * Mode of operation for binauthz policy evaluation. If unspecified, defaults
+     * to DISABLED.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; + * @return The enum numeric value on the wire for evaluationMode. + */ + @java.lang.Override public int getEvaluationModeValue() { + return evaluationMode_; + } + /** + *
+     * Mode of operation for binauthz policy evaluation. If unspecified, defaults
+     * to DISABLED.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; + * @param value The enum numeric value on the wire for evaluationMode to set. + * @return This builder for chaining. + */ + public Builder setEvaluationModeValue(int value) { + evaluationMode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Mode of operation for binauthz policy evaluation. If unspecified, defaults
+     * to DISABLED.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; + * @return The evaluationMode. + */ + @java.lang.Override + public com.google.container.v1beta1.BinaryAuthorization.EvaluationMode getEvaluationMode() { + com.google.container.v1beta1.BinaryAuthorization.EvaluationMode result = com.google.container.v1beta1.BinaryAuthorization.EvaluationMode.forNumber(evaluationMode_); + return result == null ? com.google.container.v1beta1.BinaryAuthorization.EvaluationMode.UNRECOGNIZED : result; + } + /** + *
+     * Mode of operation for binauthz policy evaluation. If unspecified, defaults
+     * to DISABLED.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; + * @param value The evaluationMode to set. + * @return This builder for chaining. + */ + public Builder setEvaluationMode(com.google.container.v1beta1.BinaryAuthorization.EvaluationMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + evaluationMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Mode of operation for binauthz policy evaluation. If unspecified, defaults
+     * to DISABLED.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; + * @return This builder for chaining. + */ + public Builder clearEvaluationMode() { + bitField0_ = (bitField0_ & ~0x00000002); + evaluationMode_ = 0; + onChanged(); + return this; + } + + private java.util.List policyBindings_ = + java.util.Collections.emptyList(); + private void ensurePolicyBindingsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + policyBindings_ = new java.util.ArrayList(policyBindings_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.BinaryAuthorization.PolicyBinding, com.google.container.v1beta1.BinaryAuthorization.PolicyBinding.Builder, com.google.container.v1beta1.BinaryAuthorization.PolicyBindingOrBuilder> policyBindingsBuilder_; + + /** + *
+     * Optional. Binauthz policies that apply to this cluster.
+     * 
+ * + * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public java.util.List getPolicyBindingsList() { + if (policyBindingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(policyBindings_); + } else { + return policyBindingsBuilder_.getMessageList(); + } + } + /** + *
+     * Optional. Binauthz policies that apply to this cluster.
+     * 
+ * + * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public int getPolicyBindingsCount() { + if (policyBindingsBuilder_ == null) { + return policyBindings_.size(); + } else { + return policyBindingsBuilder_.getCount(); + } + } + /** + *
+     * Optional. Binauthz policies that apply to this cluster.
+     * 
+ * + * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.container.v1beta1.BinaryAuthorization.PolicyBinding getPolicyBindings(int index) { + if (policyBindingsBuilder_ == null) { + return policyBindings_.get(index); + } else { + return policyBindingsBuilder_.getMessage(index); + } + } + /** + *
+     * Optional. Binauthz policies that apply to this cluster.
+     * 
+ * + * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setPolicyBindings( + int index, com.google.container.v1beta1.BinaryAuthorization.PolicyBinding value) { + if (policyBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePolicyBindingsIsMutable(); + policyBindings_.set(index, value); + onChanged(); + } else { + policyBindingsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Optional. Binauthz policies that apply to this cluster.
+     * 
+ * + * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setPolicyBindings( + int index, com.google.container.v1beta1.BinaryAuthorization.PolicyBinding.Builder builderForValue) { + if (policyBindingsBuilder_ == null) { + ensurePolicyBindingsIsMutable(); + policyBindings_.set(index, builderForValue.build()); + onChanged(); + } else { + policyBindingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Optional. Binauthz policies that apply to this cluster.
+     * 
+ * + * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder addPolicyBindings(com.google.container.v1beta1.BinaryAuthorization.PolicyBinding value) { + if (policyBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePolicyBindingsIsMutable(); + policyBindings_.add(value); + onChanged(); + } else { + policyBindingsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Optional. Binauthz policies that apply to this cluster.
+     * 
+ * + * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder addPolicyBindings( + int index, com.google.container.v1beta1.BinaryAuthorization.PolicyBinding value) { + if (policyBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePolicyBindingsIsMutable(); + policyBindings_.add(index, value); + onChanged(); + } else { + policyBindingsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Optional. Binauthz policies that apply to this cluster.
+     * 
+ * + * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder addPolicyBindings( + com.google.container.v1beta1.BinaryAuthorization.PolicyBinding.Builder builderForValue) { + if (policyBindingsBuilder_ == null) { + ensurePolicyBindingsIsMutable(); + policyBindings_.add(builderForValue.build()); + onChanged(); + } else { + policyBindingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Optional. Binauthz policies that apply to this cluster.
+     * 
+ * + * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder addPolicyBindings( + int index, com.google.container.v1beta1.BinaryAuthorization.PolicyBinding.Builder builderForValue) { + if (policyBindingsBuilder_ == null) { + ensurePolicyBindingsIsMutable(); + policyBindings_.add(index, builderForValue.build()); + onChanged(); + } else { + policyBindingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Optional. Binauthz policies that apply to this cluster.
+     * 
+ * + * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder addAllPolicyBindings( + java.lang.Iterable values) { + if (policyBindingsBuilder_ == null) { + ensurePolicyBindingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, policyBindings_); + onChanged(); + } else { + policyBindingsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Optional. Binauthz policies that apply to this cluster.
+     * 
+ * + * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearPolicyBindings() { + if (policyBindingsBuilder_ == null) { + policyBindings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + policyBindingsBuilder_.clear(); + } + return this; + } + /** + *
+     * Optional. Binauthz policies that apply to this cluster.
+     * 
+ * + * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removePolicyBindings(int index) { + if (policyBindingsBuilder_ == null) { + ensurePolicyBindingsIsMutable(); + policyBindings_.remove(index); + onChanged(); + } else { + policyBindingsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Optional. Binauthz policies that apply to this cluster.
+     * 
+ * + * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.container.v1beta1.BinaryAuthorization.PolicyBinding.Builder getPolicyBindingsBuilder( + int index) { + return getPolicyBindingsFieldBuilder().getBuilder(index); + } + /** + *
+     * Optional. Binauthz policies that apply to this cluster.
+     * 
+ * + * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.container.v1beta1.BinaryAuthorization.PolicyBindingOrBuilder getPolicyBindingsOrBuilder( + int index) { + if (policyBindingsBuilder_ == null) { + return policyBindings_.get(index); } else { + return policyBindingsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Optional. Binauthz policies that apply to this cluster.
+     * 
+ * + * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public java.util.List + getPolicyBindingsOrBuilderList() { + if (policyBindingsBuilder_ != null) { + return policyBindingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(policyBindings_); + } + } + /** + *
+     * Optional. Binauthz policies that apply to this cluster.
+     * 
+ * + * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.container.v1beta1.BinaryAuthorization.PolicyBinding.Builder addPolicyBindingsBuilder() { + return getPolicyBindingsFieldBuilder().addBuilder( + com.google.container.v1beta1.BinaryAuthorization.PolicyBinding.getDefaultInstance()); + } + /** + *
+     * Optional. Binauthz policies that apply to this cluster.
+     * 
+ * + * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.container.v1beta1.BinaryAuthorization.PolicyBinding.Builder addPolicyBindingsBuilder( + int index) { + return getPolicyBindingsFieldBuilder().addBuilder( + index, com.google.container.v1beta1.BinaryAuthorization.PolicyBinding.getDefaultInstance()); + } + /** + *
+     * Optional. Binauthz policies that apply to this cluster.
+     * 
+ * + * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public java.util.List + getPolicyBindingsBuilderList() { + return getPolicyBindingsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.BinaryAuthorization.PolicyBinding, com.google.container.v1beta1.BinaryAuthorization.PolicyBinding.Builder, com.google.container.v1beta1.BinaryAuthorization.PolicyBindingOrBuilder> + getPolicyBindingsFieldBuilder() { + if (policyBindingsBuilder_ == null) { + policyBindingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.BinaryAuthorization.PolicyBinding, com.google.container.v1beta1.BinaryAuthorization.PolicyBinding.Builder, com.google.container.v1beta1.BinaryAuthorization.PolicyBindingOrBuilder>( + policyBindings_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + policyBindings_ = null; + } + return policyBindingsBuilder_; + } + @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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BinaryAuthorizationOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BinaryAuthorizationOrBuilder.java new file mode 100644 index 000000000000..33ae1dbde302 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BinaryAuthorizationOrBuilder.java @@ -0,0 +1,89 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface BinaryAuthorizationOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.BinaryAuthorization) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * This field is deprecated. Leave this unset and instead configure
+   * BinaryAuthorization using evaluation_mode. If evaluation_mode is set to
+   * anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored.
+   * 
+ * + * bool enabled = 1 [deprecated = true]; + * @deprecated google.container.v1beta1.BinaryAuthorization.enabled is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1833 + * @return The enabled. + */ + @java.lang.Deprecated boolean getEnabled(); + + /** + *
+   * Mode of operation for binauthz policy evaluation. If unspecified, defaults
+   * to DISABLED.
+   * 
+ * + * .google.container.v1beta1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; + * @return The enum numeric value on the wire for evaluationMode. + */ + int getEvaluationModeValue(); + /** + *
+   * Mode of operation for binauthz policy evaluation. If unspecified, defaults
+   * to DISABLED.
+   * 
+ * + * .google.container.v1beta1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; + * @return The evaluationMode. + */ + com.google.container.v1beta1.BinaryAuthorization.EvaluationMode getEvaluationMode(); + + /** + *
+   * Optional. Binauthz policies that apply to this cluster.
+   * 
+ * + * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.List + getPolicyBindingsList(); + /** + *
+   * Optional. Binauthz policies that apply to this cluster.
+   * 
+ * + * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.container.v1beta1.BinaryAuthorization.PolicyBinding getPolicyBindings(int index); + /** + *
+   * Optional. Binauthz policies that apply to this cluster.
+   * 
+ * + * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getPolicyBindingsCount(); + /** + *
+   * Optional. Binauthz policies that apply to this cluster.
+   * 
+ * + * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.List + getPolicyBindingsOrBuilderList(); + /** + *
+   * Optional. Binauthz policies that apply to this cluster.
+   * 
+ * + * repeated .google.container.v1beta1.BinaryAuthorization.PolicyBinding policy_bindings = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.container.v1beta1.BinaryAuthorization.PolicyBindingOrBuilder getPolicyBindingsOrBuilder( + int index); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BlueGreenSettings.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BlueGreenSettings.java new file mode 100644 index 000000000000..d612874124ab --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BlueGreenSettings.java @@ -0,0 +1,2696 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * Settings for blue-green upgrade.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.BlueGreenSettings} + */ +public final class BlueGreenSettings extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.BlueGreenSettings) + BlueGreenSettingsOrBuilder { +private static final long serialVersionUID = 0L; + // Use BlueGreenSettings.newBuilder() to construct. + private BlueGreenSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BlueGreenSettings() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BlueGreenSettings(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_BlueGreenSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_BlueGreenSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.BlueGreenSettings.class, com.google.container.v1beta1.BlueGreenSettings.Builder.class); + } + + public interface StandardRolloutPolicyOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Percentage of the blue pool nodes to drain in a batch.
+     * The range of this field should be (0.0, 1.0].
+     * 
+ * + * float batch_percentage = 1; + * @return Whether the batchPercentage field is set. + */ + boolean hasBatchPercentage(); + /** + *
+     * Percentage of the blue pool nodes to drain in a batch.
+     * The range of this field should be (0.0, 1.0].
+     * 
+ * + * float batch_percentage = 1; + * @return The batchPercentage. + */ + float getBatchPercentage(); + + /** + *
+     * Number of blue nodes to drain in a batch.
+     * 
+ * + * int32 batch_node_count = 2; + * @return Whether the batchNodeCount field is set. + */ + boolean hasBatchNodeCount(); + /** + *
+     * Number of blue nodes to drain in a batch.
+     * 
+ * + * int32 batch_node_count = 2; + * @return The batchNodeCount. + */ + int getBatchNodeCount(); + + /** + *
+     * Soak time after each batch gets drained. Default to zero.
+     * 
+ * + * optional .google.protobuf.Duration batch_soak_duration = 3; + * @return Whether the batchSoakDuration field is set. + */ + boolean hasBatchSoakDuration(); + /** + *
+     * Soak time after each batch gets drained. Default to zero.
+     * 
+ * + * optional .google.protobuf.Duration batch_soak_duration = 3; + * @return The batchSoakDuration. + */ + com.google.protobuf.Duration getBatchSoakDuration(); + /** + *
+     * Soak time after each batch gets drained. Default to zero.
+     * 
+ * + * optional .google.protobuf.Duration batch_soak_duration = 3; + */ + com.google.protobuf.DurationOrBuilder getBatchSoakDurationOrBuilder(); + + com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy.UpdateBatchSizeCase getUpdateBatchSizeCase(); + } + /** + *
+   * Standard rollout policy is the default policy for blue-green.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy} + */ + public static final class StandardRolloutPolicy extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy) + StandardRolloutPolicyOrBuilder { + private static final long serialVersionUID = 0L; + // Use StandardRolloutPolicy.newBuilder() to construct. + private StandardRolloutPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StandardRolloutPolicy() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StandardRolloutPolicy(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_BlueGreenSettings_StandardRolloutPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_BlueGreenSettings_StandardRolloutPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy.class, com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy.Builder.class); + } + + private int bitField0_; + private int updateBatchSizeCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object updateBatchSize_; + public enum UpdateBatchSizeCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + BATCH_PERCENTAGE(1), + BATCH_NODE_COUNT(2), + UPDATEBATCHSIZE_NOT_SET(0); + private final int value; + private UpdateBatchSizeCase(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 UpdateBatchSizeCase valueOf(int value) { + return forNumber(value); + } + + public static UpdateBatchSizeCase forNumber(int value) { + switch (value) { + case 1: return BATCH_PERCENTAGE; + case 2: return BATCH_NODE_COUNT; + case 0: return UPDATEBATCHSIZE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public UpdateBatchSizeCase + getUpdateBatchSizeCase() { + return UpdateBatchSizeCase.forNumber( + updateBatchSizeCase_); + } + + public static final int BATCH_PERCENTAGE_FIELD_NUMBER = 1; + /** + *
+     * Percentage of the blue pool nodes to drain in a batch.
+     * The range of this field should be (0.0, 1.0].
+     * 
+ * + * float batch_percentage = 1; + * @return Whether the batchPercentage field is set. + */ + @java.lang.Override + public boolean hasBatchPercentage() { + return updateBatchSizeCase_ == 1; + } + /** + *
+     * Percentage of the blue pool nodes to drain in a batch.
+     * The range of this field should be (0.0, 1.0].
+     * 
+ * + * float batch_percentage = 1; + * @return The batchPercentage. + */ + @java.lang.Override + public float getBatchPercentage() { + if (updateBatchSizeCase_ == 1) { + return (java.lang.Float) updateBatchSize_; + } + return 0F; + } + + public static final int BATCH_NODE_COUNT_FIELD_NUMBER = 2; + /** + *
+     * Number of blue nodes to drain in a batch.
+     * 
+ * + * int32 batch_node_count = 2; + * @return Whether the batchNodeCount field is set. + */ + @java.lang.Override + public boolean hasBatchNodeCount() { + return updateBatchSizeCase_ == 2; + } + /** + *
+     * Number of blue nodes to drain in a batch.
+     * 
+ * + * int32 batch_node_count = 2; + * @return The batchNodeCount. + */ + @java.lang.Override + public int getBatchNodeCount() { + if (updateBatchSizeCase_ == 2) { + return (java.lang.Integer) updateBatchSize_; + } + return 0; + } + + public static final int BATCH_SOAK_DURATION_FIELD_NUMBER = 3; + private com.google.protobuf.Duration batchSoakDuration_; + /** + *
+     * Soak time after each batch gets drained. Default to zero.
+     * 
+ * + * optional .google.protobuf.Duration batch_soak_duration = 3; + * @return Whether the batchSoakDuration field is set. + */ + @java.lang.Override + public boolean hasBatchSoakDuration() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Soak time after each batch gets drained. Default to zero.
+     * 
+ * + * optional .google.protobuf.Duration batch_soak_duration = 3; + * @return The batchSoakDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getBatchSoakDuration() { + return batchSoakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : batchSoakDuration_; + } + /** + *
+     * Soak time after each batch gets drained. Default to zero.
+     * 
+ * + * optional .google.protobuf.Duration batch_soak_duration = 3; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getBatchSoakDurationOrBuilder() { + return batchSoakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : batchSoakDuration_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (updateBatchSizeCase_ == 1) { + output.writeFloat( + 1, (float)((java.lang.Float) updateBatchSize_)); + } + if (updateBatchSizeCase_ == 2) { + output.writeInt32( + 2, (int)((java.lang.Integer) updateBatchSize_)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getBatchSoakDuration()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (updateBatchSizeCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize( + 1, (float)((java.lang.Float) updateBatchSize_)); + } + if (updateBatchSizeCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size( + 2, (int)((java.lang.Integer) updateBatchSize_)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getBatchSoakDuration()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.BlueGreenSettings.StandardRolloutPolicy)) { + return super.equals(obj); + } + com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy other = (com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy) obj; + + if (hasBatchSoakDuration() != other.hasBatchSoakDuration()) return false; + if (hasBatchSoakDuration()) { + if (!getBatchSoakDuration() + .equals(other.getBatchSoakDuration())) return false; + } + if (!getUpdateBatchSizeCase().equals(other.getUpdateBatchSizeCase())) return false; + switch (updateBatchSizeCase_) { + case 1: + if (java.lang.Float.floatToIntBits(getBatchPercentage()) + != java.lang.Float.floatToIntBits( + other.getBatchPercentage())) return false; + break; + case 2: + if (getBatchNodeCount() + != other.getBatchNodeCount()) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasBatchSoakDuration()) { + hash = (37 * hash) + BATCH_SOAK_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getBatchSoakDuration().hashCode(); + } + switch (updateBatchSizeCase_) { + case 1: + hash = (37 * hash) + BATCH_PERCENTAGE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getBatchPercentage()); + break; + case 2: + hash = (37 * hash) + BATCH_NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getBatchNodeCount(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy parseFrom( + 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.BlueGreenSettings.StandardRolloutPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy parseFrom( + com.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.BlueGreenSettings.StandardRolloutPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy parseFrom( + java.io.InputStream 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.BlueGreenSettings.StandardRolloutPolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy parseDelimitedFrom( + java.io.InputStream 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.BlueGreenSettings.StandardRolloutPolicy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.BlueGreenSettings.StandardRolloutPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Standard rollout policy is the default policy for blue-green.
+     * 
+ * + * Protobuf type {@code google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy) + com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_BlueGreenSettings_StandardRolloutPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_BlueGreenSettings_StandardRolloutPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy.class, com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy.Builder.class); + } + + // Construct using com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getBatchSoakDurationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + batchSoakDuration_ = null; + if (batchSoakDurationBuilder_ != null) { + batchSoakDurationBuilder_.dispose(); + batchSoakDurationBuilder_ = null; + } + updateBatchSizeCase_ = 0; + updateBatchSize_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_BlueGreenSettings_StandardRolloutPolicy_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy getDefaultInstanceForType() { + return com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy build() { + com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy buildPartial() { + com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy result = new com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.batchSoakDuration_ = batchSoakDurationBuilder_ == null + ? batchSoakDuration_ + : batchSoakDurationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy result) { + result.updateBatchSizeCase_ = updateBatchSizeCase_; + result.updateBatchSize_ = this.updateBatchSize_; + } + + @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.BlueGreenSettings.StandardRolloutPolicy) { + return mergeFrom((com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy other) { + if (other == com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy.getDefaultInstance()) return this; + if (other.hasBatchSoakDuration()) { + mergeBatchSoakDuration(other.getBatchSoakDuration()); + } + switch (other.getUpdateBatchSizeCase()) { + case BATCH_PERCENTAGE: { + setBatchPercentage(other.getBatchPercentage()); + break; + } + case BATCH_NODE_COUNT: { + setBatchNodeCount(other.getBatchNodeCount()); + break; + } + case UPDATEBATCHSIZE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 13: { + updateBatchSize_ = input.readFloat(); + updateBatchSizeCase_ = 1; + break; + } // case 13 + case 16: { + updateBatchSize_ = input.readInt32(); + updateBatchSizeCase_ = 2; + break; + } // case 16 + case 26: { + input.readMessage( + getBatchSoakDurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int updateBatchSizeCase_ = 0; + private java.lang.Object updateBatchSize_; + public UpdateBatchSizeCase + getUpdateBatchSizeCase() { + return UpdateBatchSizeCase.forNumber( + updateBatchSizeCase_); + } + + public Builder clearUpdateBatchSize() { + updateBatchSizeCase_ = 0; + updateBatchSize_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + *
+       * Percentage of the blue pool nodes to drain in a batch.
+       * The range of this field should be (0.0, 1.0].
+       * 
+ * + * float batch_percentage = 1; + * @return Whether the batchPercentage field is set. + */ + public boolean hasBatchPercentage() { + return updateBatchSizeCase_ == 1; + } + /** + *
+       * Percentage of the blue pool nodes to drain in a batch.
+       * The range of this field should be (0.0, 1.0].
+       * 
+ * + * float batch_percentage = 1; + * @return The batchPercentage. + */ + public float getBatchPercentage() { + if (updateBatchSizeCase_ == 1) { + return (java.lang.Float) updateBatchSize_; + } + return 0F; + } + /** + *
+       * Percentage of the blue pool nodes to drain in a batch.
+       * The range of this field should be (0.0, 1.0].
+       * 
+ * + * float batch_percentage = 1; + * @param value The batchPercentage to set. + * @return This builder for chaining. + */ + public Builder setBatchPercentage(float value) { + + updateBatchSizeCase_ = 1; + updateBatchSize_ = value; + onChanged(); + return this; + } + /** + *
+       * Percentage of the blue pool nodes to drain in a batch.
+       * The range of this field should be (0.0, 1.0].
+       * 
+ * + * float batch_percentage = 1; + * @return This builder for chaining. + */ + public Builder clearBatchPercentage() { + if (updateBatchSizeCase_ == 1) { + updateBatchSizeCase_ = 0; + updateBatchSize_ = null; + onChanged(); + } + return this; + } + + /** + *
+       * Number of blue nodes to drain in a batch.
+       * 
+ * + * int32 batch_node_count = 2; + * @return Whether the batchNodeCount field is set. + */ + public boolean hasBatchNodeCount() { + return updateBatchSizeCase_ == 2; + } + /** + *
+       * Number of blue nodes to drain in a batch.
+       * 
+ * + * int32 batch_node_count = 2; + * @return The batchNodeCount. + */ + public int getBatchNodeCount() { + if (updateBatchSizeCase_ == 2) { + return (java.lang.Integer) updateBatchSize_; + } + return 0; + } + /** + *
+       * Number of blue nodes to drain in a batch.
+       * 
+ * + * int32 batch_node_count = 2; + * @param value The batchNodeCount to set. + * @return This builder for chaining. + */ + public Builder setBatchNodeCount(int value) { + + updateBatchSizeCase_ = 2; + updateBatchSize_ = value; + onChanged(); + return this; + } + /** + *
+       * Number of blue nodes to drain in a batch.
+       * 
+ * + * int32 batch_node_count = 2; + * @return This builder for chaining. + */ + public Builder clearBatchNodeCount() { + if (updateBatchSizeCase_ == 2) { + updateBatchSizeCase_ = 0; + updateBatchSize_ = null; + onChanged(); + } + return this; + } + + private com.google.protobuf.Duration batchSoakDuration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> batchSoakDurationBuilder_; + /** + *
+       * Soak time after each batch gets drained. Default to zero.
+       * 
+ * + * optional .google.protobuf.Duration batch_soak_duration = 3; + * @return Whether the batchSoakDuration field is set. + */ + public boolean hasBatchSoakDuration() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+       * Soak time after each batch gets drained. Default to zero.
+       * 
+ * + * optional .google.protobuf.Duration batch_soak_duration = 3; + * @return The batchSoakDuration. + */ + public com.google.protobuf.Duration getBatchSoakDuration() { + if (batchSoakDurationBuilder_ == null) { + return batchSoakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : batchSoakDuration_; + } else { + return batchSoakDurationBuilder_.getMessage(); + } + } + /** + *
+       * Soak time after each batch gets drained. Default to zero.
+       * 
+ * + * optional .google.protobuf.Duration batch_soak_duration = 3; + */ + public Builder setBatchSoakDuration(com.google.protobuf.Duration value) { + if (batchSoakDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + batchSoakDuration_ = value; + } else { + batchSoakDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Soak time after each batch gets drained. Default to zero.
+       * 
+ * + * optional .google.protobuf.Duration batch_soak_duration = 3; + */ + public Builder setBatchSoakDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (batchSoakDurationBuilder_ == null) { + batchSoakDuration_ = builderForValue.build(); + } else { + batchSoakDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Soak time after each batch gets drained. Default to zero.
+       * 
+ * + * optional .google.protobuf.Duration batch_soak_duration = 3; + */ + public Builder mergeBatchSoakDuration(com.google.protobuf.Duration value) { + if (batchSoakDurationBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + batchSoakDuration_ != null && + batchSoakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getBatchSoakDurationBuilder().mergeFrom(value); + } else { + batchSoakDuration_ = value; + } + } else { + batchSoakDurationBuilder_.mergeFrom(value); + } + if (batchSoakDuration_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+       * Soak time after each batch gets drained. Default to zero.
+       * 
+ * + * optional .google.protobuf.Duration batch_soak_duration = 3; + */ + public Builder clearBatchSoakDuration() { + bitField0_ = (bitField0_ & ~0x00000004); + batchSoakDuration_ = null; + if (batchSoakDurationBuilder_ != null) { + batchSoakDurationBuilder_.dispose(); + batchSoakDurationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Soak time after each batch gets drained. Default to zero.
+       * 
+ * + * optional .google.protobuf.Duration batch_soak_duration = 3; + */ + public com.google.protobuf.Duration.Builder getBatchSoakDurationBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getBatchSoakDurationFieldBuilder().getBuilder(); + } + /** + *
+       * Soak time after each batch gets drained. Default to zero.
+       * 
+ * + * optional .google.protobuf.Duration batch_soak_duration = 3; + */ + public com.google.protobuf.DurationOrBuilder getBatchSoakDurationOrBuilder() { + if (batchSoakDurationBuilder_ != null) { + return batchSoakDurationBuilder_.getMessageOrBuilder(); + } else { + return batchSoakDuration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : batchSoakDuration_; + } + } + /** + *
+       * Soak time after each batch gets drained. Default to zero.
+       * 
+ * + * optional .google.protobuf.Duration batch_soak_duration = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getBatchSoakDurationFieldBuilder() { + if (batchSoakDurationBuilder_ == null) { + batchSoakDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getBatchSoakDuration(), + getParentForChildren(), + isClean()); + batchSoakDuration_ = null; + } + return batchSoakDurationBuilder_; + } + @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.BlueGreenSettings.StandardRolloutPolicy) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy) + private static final com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy(); + } + + public static com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StandardRolloutPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.BlueGreenSettings.StandardRolloutPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AutoscaledRolloutPolicyOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Autoscaled rollout policy uses cluster autoscaler during
+   * blue-green upgrades to scale both the green and blue pools.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy} + */ + public static final class AutoscaledRolloutPolicy extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy) + AutoscaledRolloutPolicyOrBuilder { + private static final long serialVersionUID = 0L; + // Use AutoscaledRolloutPolicy.newBuilder() to construct. + private AutoscaledRolloutPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AutoscaledRolloutPolicy() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AutoscaledRolloutPolicy(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_BlueGreenSettings_AutoscaledRolloutPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_BlueGreenSettings_AutoscaledRolloutPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy.class, com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy.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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.BlueGreenSettings.AutoscaledRolloutPolicy)) { + return super.equals(obj); + } + com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy other = (com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy parseFrom( + 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.BlueGreenSettings.AutoscaledRolloutPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy parseFrom( + com.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.BlueGreenSettings.AutoscaledRolloutPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy parseFrom( + java.io.InputStream 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.BlueGreenSettings.AutoscaledRolloutPolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy parseDelimitedFrom( + java.io.InputStream 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.BlueGreenSettings.AutoscaledRolloutPolicy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.BlueGreenSettings.AutoscaledRolloutPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Autoscaled rollout policy uses cluster autoscaler during
+     * blue-green upgrades to scale both the green and blue pools.
+     * 
+ * + * Protobuf type {@code google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy) + com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_BlueGreenSettings_AutoscaledRolloutPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_BlueGreenSettings_AutoscaledRolloutPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy.class, com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy.Builder.class); + } + + // Construct using com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @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_BlueGreenSettings_AutoscaledRolloutPolicy_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy getDefaultInstanceForType() { + return com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy build() { + com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy buildPartial() { + com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy result = new com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy(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.BlueGreenSettings.AutoscaledRolloutPolicy) { + return mergeFrom((com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy other) { + if (other == com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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.BlueGreenSettings.AutoscaledRolloutPolicy) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy) + private static final com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy(); + } + + public static com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutoscaledRolloutPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.BlueGreenSettings.AutoscaledRolloutPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + private int rolloutPolicyCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object rolloutPolicy_; + public enum RolloutPolicyCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + STANDARD_ROLLOUT_POLICY(1), + AUTOSCALED_ROLLOUT_POLICY(3), + ROLLOUTPOLICY_NOT_SET(0); + private final int value; + private RolloutPolicyCase(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 RolloutPolicyCase valueOf(int value) { + return forNumber(value); + } + + public static RolloutPolicyCase forNumber(int value) { + switch (value) { + case 1: return STANDARD_ROLLOUT_POLICY; + case 3: return AUTOSCALED_ROLLOUT_POLICY; + case 0: return ROLLOUTPOLICY_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public RolloutPolicyCase + getRolloutPolicyCase() { + return RolloutPolicyCase.forNumber( + rolloutPolicyCase_); + } + + public static final int STANDARD_ROLLOUT_POLICY_FIELD_NUMBER = 1; + /** + *
+   * Standard policy for the blue-green upgrade.
+   * 
+ * + * .google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; + * @return Whether the standardRolloutPolicy field is set. + */ + @java.lang.Override + public boolean hasStandardRolloutPolicy() { + return rolloutPolicyCase_ == 1; + } + /** + *
+   * Standard policy for the blue-green upgrade.
+   * 
+ * + * .google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; + * @return The standardRolloutPolicy. + */ + @java.lang.Override + public com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy getStandardRolloutPolicy() { + if (rolloutPolicyCase_ == 1) { + return (com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy) rolloutPolicy_; + } + return com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy.getDefaultInstance(); + } + /** + *
+   * Standard policy for the blue-green upgrade.
+   * 
+ * + * .google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicyOrBuilder getStandardRolloutPolicyOrBuilder() { + if (rolloutPolicyCase_ == 1) { + return (com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy) rolloutPolicy_; + } + return com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy.getDefaultInstance(); + } + + public static final int AUTOSCALED_ROLLOUT_POLICY_FIELD_NUMBER = 3; + /** + *
+   * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
+   * 
+ * + * .google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; + * @return Whether the autoscaledRolloutPolicy field is set. + */ + @java.lang.Override + public boolean hasAutoscaledRolloutPolicy() { + return rolloutPolicyCase_ == 3; + } + /** + *
+   * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
+   * 
+ * + * .google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; + * @return The autoscaledRolloutPolicy. + */ + @java.lang.Override + public com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy getAutoscaledRolloutPolicy() { + if (rolloutPolicyCase_ == 3) { + return (com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy) rolloutPolicy_; + } + return com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy.getDefaultInstance(); + } + /** + *
+   * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
+   * 
+ * + * .google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; + */ + @java.lang.Override + public com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicyOrBuilder getAutoscaledRolloutPolicyOrBuilder() { + if (rolloutPolicyCase_ == 3) { + return (com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy) rolloutPolicy_; + } + return com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy.getDefaultInstance(); + } + + public static final int NODE_POOL_SOAK_DURATION_FIELD_NUMBER = 2; + private com.google.protobuf.Duration nodePoolSoakDuration_; + /** + *
+   * Time needed after draining entire blue pool. After this period, blue pool
+   * will be cleaned up.
+   * 
+ * + * optional .google.protobuf.Duration node_pool_soak_duration = 2; + * @return Whether the nodePoolSoakDuration field is set. + */ + @java.lang.Override + public boolean hasNodePoolSoakDuration() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Time needed after draining entire blue pool. After this period, blue pool
+   * will be cleaned up.
+   * 
+ * + * optional .google.protobuf.Duration node_pool_soak_duration = 2; + * @return The nodePoolSoakDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getNodePoolSoakDuration() { + return nodePoolSoakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : nodePoolSoakDuration_; + } + /** + *
+   * Time needed after draining entire blue pool. After this period, blue pool
+   * will be cleaned up.
+   * 
+ * + * optional .google.protobuf.Duration node_pool_soak_duration = 2; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getNodePoolSoakDurationOrBuilder() { + return nodePoolSoakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : nodePoolSoakDuration_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (rolloutPolicyCase_ == 1) { + output.writeMessage(1, (com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy) rolloutPolicy_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getNodePoolSoakDuration()); + } + if (rolloutPolicyCase_ == 3) { + output.writeMessage(3, (com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy) rolloutPolicy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (rolloutPolicyCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy) rolloutPolicy_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getNodePoolSoakDuration()); + } + if (rolloutPolicyCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy) rolloutPolicy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.BlueGreenSettings)) { + return super.equals(obj); + } + com.google.container.v1beta1.BlueGreenSettings other = (com.google.container.v1beta1.BlueGreenSettings) obj; + + if (hasNodePoolSoakDuration() != other.hasNodePoolSoakDuration()) return false; + if (hasNodePoolSoakDuration()) { + if (!getNodePoolSoakDuration() + .equals(other.getNodePoolSoakDuration())) return false; + } + if (!getRolloutPolicyCase().equals(other.getRolloutPolicyCase())) return false; + switch (rolloutPolicyCase_) { + case 1: + if (!getStandardRolloutPolicy() + .equals(other.getStandardRolloutPolicy())) return false; + break; + case 3: + if (!getAutoscaledRolloutPolicy() + .equals(other.getAutoscaledRolloutPolicy())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasNodePoolSoakDuration()) { + hash = (37 * hash) + NODE_POOL_SOAK_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getNodePoolSoakDuration().hashCode(); + } + switch (rolloutPolicyCase_) { + case 1: + hash = (37 * hash) + STANDARD_ROLLOUT_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getStandardRolloutPolicy().hashCode(); + break; + case 3: + hash = (37 * hash) + AUTOSCALED_ROLLOUT_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getAutoscaledRolloutPolicy().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.BlueGreenSettings parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.BlueGreenSettings parseFrom( + 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.BlueGreenSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.BlueGreenSettings parseFrom( + com.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.BlueGreenSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.BlueGreenSettings parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.BlueGreenSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.BlueGreenSettings parseFrom( + java.io.InputStream 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.BlueGreenSettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.BlueGreenSettings parseDelimitedFrom( + java.io.InputStream 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.BlueGreenSettings parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.BlueGreenSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.BlueGreenSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Settings for blue-green upgrade.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.BlueGreenSettings} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.BlueGreenSettings) + com.google.container.v1beta1.BlueGreenSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_BlueGreenSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_BlueGreenSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.BlueGreenSettings.class, com.google.container.v1beta1.BlueGreenSettings.Builder.class); + } + + // Construct using com.google.container.v1beta1.BlueGreenSettings.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNodePoolSoakDurationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (standardRolloutPolicyBuilder_ != null) { + standardRolloutPolicyBuilder_.clear(); + } + if (autoscaledRolloutPolicyBuilder_ != null) { + autoscaledRolloutPolicyBuilder_.clear(); + } + nodePoolSoakDuration_ = null; + if (nodePoolSoakDurationBuilder_ != null) { + nodePoolSoakDurationBuilder_.dispose(); + nodePoolSoakDurationBuilder_ = null; + } + rolloutPolicyCase_ = 0; + rolloutPolicy_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_BlueGreenSettings_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.BlueGreenSettings getDefaultInstanceForType() { + return com.google.container.v1beta1.BlueGreenSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.BlueGreenSettings build() { + com.google.container.v1beta1.BlueGreenSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.BlueGreenSettings buildPartial() { + com.google.container.v1beta1.BlueGreenSettings result = new com.google.container.v1beta1.BlueGreenSettings(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.BlueGreenSettings result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.nodePoolSoakDuration_ = nodePoolSoakDurationBuilder_ == null + ? nodePoolSoakDuration_ + : nodePoolSoakDurationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.container.v1beta1.BlueGreenSettings result) { + result.rolloutPolicyCase_ = rolloutPolicyCase_; + result.rolloutPolicy_ = this.rolloutPolicy_; + if (rolloutPolicyCase_ == 1 && + standardRolloutPolicyBuilder_ != null) { + result.rolloutPolicy_ = standardRolloutPolicyBuilder_.build(); + } + if (rolloutPolicyCase_ == 3 && + autoscaledRolloutPolicyBuilder_ != null) { + result.rolloutPolicy_ = autoscaledRolloutPolicyBuilder_.build(); + } + } + + @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.BlueGreenSettings) { + return mergeFrom((com.google.container.v1beta1.BlueGreenSettings)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.BlueGreenSettings other) { + if (other == com.google.container.v1beta1.BlueGreenSettings.getDefaultInstance()) return this; + if (other.hasNodePoolSoakDuration()) { + mergeNodePoolSoakDuration(other.getNodePoolSoakDuration()); + } + switch (other.getRolloutPolicyCase()) { + case STANDARD_ROLLOUT_POLICY: { + mergeStandardRolloutPolicy(other.getStandardRolloutPolicy()); + break; + } + case AUTOSCALED_ROLLOUT_POLICY: { + mergeAutoscaledRolloutPolicy(other.getAutoscaledRolloutPolicy()); + break; + } + case ROLLOUTPOLICY_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getStandardRolloutPolicyFieldBuilder().getBuilder(), + extensionRegistry); + rolloutPolicyCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getNodePoolSoakDurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: { + input.readMessage( + getAutoscaledRolloutPolicyFieldBuilder().getBuilder(), + extensionRegistry); + rolloutPolicyCase_ = 3; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int rolloutPolicyCase_ = 0; + private java.lang.Object rolloutPolicy_; + public RolloutPolicyCase + getRolloutPolicyCase() { + return RolloutPolicyCase.forNumber( + rolloutPolicyCase_); + } + + public Builder clearRolloutPolicy() { + rolloutPolicyCase_ = 0; + rolloutPolicy_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy, com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy.Builder, com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicyOrBuilder> standardRolloutPolicyBuilder_; + /** + *
+     * Standard policy for the blue-green upgrade.
+     * 
+ * + * .google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; + * @return Whether the standardRolloutPolicy field is set. + */ + @java.lang.Override + public boolean hasStandardRolloutPolicy() { + return rolloutPolicyCase_ == 1; + } + /** + *
+     * Standard policy for the blue-green upgrade.
+     * 
+ * + * .google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; + * @return The standardRolloutPolicy. + */ + @java.lang.Override + public com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy getStandardRolloutPolicy() { + if (standardRolloutPolicyBuilder_ == null) { + if (rolloutPolicyCase_ == 1) { + return (com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy) rolloutPolicy_; + } + return com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy.getDefaultInstance(); + } else { + if (rolloutPolicyCase_ == 1) { + return standardRolloutPolicyBuilder_.getMessage(); + } + return com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy.getDefaultInstance(); + } + } + /** + *
+     * Standard policy for the blue-green upgrade.
+     * 
+ * + * .google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; + */ + public Builder setStandardRolloutPolicy(com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy value) { + if (standardRolloutPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rolloutPolicy_ = value; + onChanged(); + } else { + standardRolloutPolicyBuilder_.setMessage(value); + } + rolloutPolicyCase_ = 1; + return this; + } + /** + *
+     * Standard policy for the blue-green upgrade.
+     * 
+ * + * .google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; + */ + public Builder setStandardRolloutPolicy( + com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy.Builder builderForValue) { + if (standardRolloutPolicyBuilder_ == null) { + rolloutPolicy_ = builderForValue.build(); + onChanged(); + } else { + standardRolloutPolicyBuilder_.setMessage(builderForValue.build()); + } + rolloutPolicyCase_ = 1; + return this; + } + /** + *
+     * Standard policy for the blue-green upgrade.
+     * 
+ * + * .google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; + */ + public Builder mergeStandardRolloutPolicy(com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy value) { + if (standardRolloutPolicyBuilder_ == null) { + if (rolloutPolicyCase_ == 1 && + rolloutPolicy_ != com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy.getDefaultInstance()) { + rolloutPolicy_ = com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy.newBuilder((com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy) rolloutPolicy_) + .mergeFrom(value).buildPartial(); + } else { + rolloutPolicy_ = value; + } + onChanged(); + } else { + if (rolloutPolicyCase_ == 1) { + standardRolloutPolicyBuilder_.mergeFrom(value); + } else { + standardRolloutPolicyBuilder_.setMessage(value); + } + } + rolloutPolicyCase_ = 1; + return this; + } + /** + *
+     * Standard policy for the blue-green upgrade.
+     * 
+ * + * .google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; + */ + public Builder clearStandardRolloutPolicy() { + if (standardRolloutPolicyBuilder_ == null) { + if (rolloutPolicyCase_ == 1) { + rolloutPolicyCase_ = 0; + rolloutPolicy_ = null; + onChanged(); + } + } else { + if (rolloutPolicyCase_ == 1) { + rolloutPolicyCase_ = 0; + rolloutPolicy_ = null; + } + standardRolloutPolicyBuilder_.clear(); + } + return this; + } + /** + *
+     * Standard policy for the blue-green upgrade.
+     * 
+ * + * .google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; + */ + public com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy.Builder getStandardRolloutPolicyBuilder() { + return getStandardRolloutPolicyFieldBuilder().getBuilder(); + } + /** + *
+     * Standard policy for the blue-green upgrade.
+     * 
+ * + * .google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicyOrBuilder getStandardRolloutPolicyOrBuilder() { + if ((rolloutPolicyCase_ == 1) && (standardRolloutPolicyBuilder_ != null)) { + return standardRolloutPolicyBuilder_.getMessageOrBuilder(); + } else { + if (rolloutPolicyCase_ == 1) { + return (com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy) rolloutPolicy_; + } + return com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy.getDefaultInstance(); + } + } + /** + *
+     * Standard policy for the blue-green upgrade.
+     * 
+ * + * .google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy, com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy.Builder, com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicyOrBuilder> + getStandardRolloutPolicyFieldBuilder() { + if (standardRolloutPolicyBuilder_ == null) { + if (!(rolloutPolicyCase_ == 1)) { + rolloutPolicy_ = com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy.getDefaultInstance(); + } + standardRolloutPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy, com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy.Builder, com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicyOrBuilder>( + (com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy) rolloutPolicy_, + getParentForChildren(), + isClean()); + rolloutPolicy_ = null; + } + rolloutPolicyCase_ = 1; + onChanged(); + return standardRolloutPolicyBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy, com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy.Builder, com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicyOrBuilder> autoscaledRolloutPolicyBuilder_; + /** + *
+     * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
+     * 
+ * + * .google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; + * @return Whether the autoscaledRolloutPolicy field is set. + */ + @java.lang.Override + public boolean hasAutoscaledRolloutPolicy() { + return rolloutPolicyCase_ == 3; + } + /** + *
+     * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
+     * 
+ * + * .google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; + * @return The autoscaledRolloutPolicy. + */ + @java.lang.Override + public com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy getAutoscaledRolloutPolicy() { + if (autoscaledRolloutPolicyBuilder_ == null) { + if (rolloutPolicyCase_ == 3) { + return (com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy) rolloutPolicy_; + } + return com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy.getDefaultInstance(); + } else { + if (rolloutPolicyCase_ == 3) { + return autoscaledRolloutPolicyBuilder_.getMessage(); + } + return com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy.getDefaultInstance(); + } + } + /** + *
+     * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
+     * 
+ * + * .google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; + */ + public Builder setAutoscaledRolloutPolicy(com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy value) { + if (autoscaledRolloutPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rolloutPolicy_ = value; + onChanged(); + } else { + autoscaledRolloutPolicyBuilder_.setMessage(value); + } + rolloutPolicyCase_ = 3; + return this; + } + /** + *
+     * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
+     * 
+ * + * .google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; + */ + public Builder setAutoscaledRolloutPolicy( + com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy.Builder builderForValue) { + if (autoscaledRolloutPolicyBuilder_ == null) { + rolloutPolicy_ = builderForValue.build(); + onChanged(); + } else { + autoscaledRolloutPolicyBuilder_.setMessage(builderForValue.build()); + } + rolloutPolicyCase_ = 3; + return this; + } + /** + *
+     * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
+     * 
+ * + * .google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; + */ + public Builder mergeAutoscaledRolloutPolicy(com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy value) { + if (autoscaledRolloutPolicyBuilder_ == null) { + if (rolloutPolicyCase_ == 3 && + rolloutPolicy_ != com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy.getDefaultInstance()) { + rolloutPolicy_ = com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy.newBuilder((com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy) rolloutPolicy_) + .mergeFrom(value).buildPartial(); + } else { + rolloutPolicy_ = value; + } + onChanged(); + } else { + if (rolloutPolicyCase_ == 3) { + autoscaledRolloutPolicyBuilder_.mergeFrom(value); + } else { + autoscaledRolloutPolicyBuilder_.setMessage(value); + } + } + rolloutPolicyCase_ = 3; + return this; + } + /** + *
+     * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
+     * 
+ * + * .google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; + */ + public Builder clearAutoscaledRolloutPolicy() { + if (autoscaledRolloutPolicyBuilder_ == null) { + if (rolloutPolicyCase_ == 3) { + rolloutPolicyCase_ = 0; + rolloutPolicy_ = null; + onChanged(); + } + } else { + if (rolloutPolicyCase_ == 3) { + rolloutPolicyCase_ = 0; + rolloutPolicy_ = null; + } + autoscaledRolloutPolicyBuilder_.clear(); + } + return this; + } + /** + *
+     * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
+     * 
+ * + * .google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; + */ + public com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy.Builder getAutoscaledRolloutPolicyBuilder() { + return getAutoscaledRolloutPolicyFieldBuilder().getBuilder(); + } + /** + *
+     * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
+     * 
+ * + * .google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; + */ + @java.lang.Override + public com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicyOrBuilder getAutoscaledRolloutPolicyOrBuilder() { + if ((rolloutPolicyCase_ == 3) && (autoscaledRolloutPolicyBuilder_ != null)) { + return autoscaledRolloutPolicyBuilder_.getMessageOrBuilder(); + } else { + if (rolloutPolicyCase_ == 3) { + return (com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy) rolloutPolicy_; + } + return com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy.getDefaultInstance(); + } + } + /** + *
+     * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
+     * 
+ * + * .google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy, com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy.Builder, com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicyOrBuilder> + getAutoscaledRolloutPolicyFieldBuilder() { + if (autoscaledRolloutPolicyBuilder_ == null) { + if (!(rolloutPolicyCase_ == 3)) { + rolloutPolicy_ = com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy.getDefaultInstance(); + } + autoscaledRolloutPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy, com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy.Builder, com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicyOrBuilder>( + (com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy) rolloutPolicy_, + getParentForChildren(), + isClean()); + rolloutPolicy_ = null; + } + rolloutPolicyCase_ = 3; + onChanged(); + return autoscaledRolloutPolicyBuilder_; + } + + private com.google.protobuf.Duration nodePoolSoakDuration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> nodePoolSoakDurationBuilder_; + /** + *
+     * Time needed after draining entire blue pool. After this period, blue pool
+     * will be cleaned up.
+     * 
+ * + * optional .google.protobuf.Duration node_pool_soak_duration = 2; + * @return Whether the nodePoolSoakDuration field is set. + */ + public boolean hasNodePoolSoakDuration() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * Time needed after draining entire blue pool. After this period, blue pool
+     * will be cleaned up.
+     * 
+ * + * optional .google.protobuf.Duration node_pool_soak_duration = 2; + * @return The nodePoolSoakDuration. + */ + public com.google.protobuf.Duration getNodePoolSoakDuration() { + if (nodePoolSoakDurationBuilder_ == null) { + return nodePoolSoakDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : nodePoolSoakDuration_; + } else { + return nodePoolSoakDurationBuilder_.getMessage(); + } + } + /** + *
+     * Time needed after draining entire blue pool. After this period, blue pool
+     * will be cleaned up.
+     * 
+ * + * optional .google.protobuf.Duration node_pool_soak_duration = 2; + */ + public Builder setNodePoolSoakDuration(com.google.protobuf.Duration value) { + if (nodePoolSoakDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodePoolSoakDuration_ = value; + } else { + nodePoolSoakDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Time needed after draining entire blue pool. After this period, blue pool
+     * will be cleaned up.
+     * 
+ * + * optional .google.protobuf.Duration node_pool_soak_duration = 2; + */ + public Builder setNodePoolSoakDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (nodePoolSoakDurationBuilder_ == null) { + nodePoolSoakDuration_ = builderForValue.build(); + } else { + nodePoolSoakDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Time needed after draining entire blue pool. After this period, blue pool
+     * will be cleaned up.
+     * 
+ * + * optional .google.protobuf.Duration node_pool_soak_duration = 2; + */ + public Builder mergeNodePoolSoakDuration(com.google.protobuf.Duration value) { + if (nodePoolSoakDurationBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + nodePoolSoakDuration_ != null && + nodePoolSoakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getNodePoolSoakDurationBuilder().mergeFrom(value); + } else { + nodePoolSoakDuration_ = value; + } + } else { + nodePoolSoakDurationBuilder_.mergeFrom(value); + } + if (nodePoolSoakDuration_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+     * Time needed after draining entire blue pool. After this period, blue pool
+     * will be cleaned up.
+     * 
+ * + * optional .google.protobuf.Duration node_pool_soak_duration = 2; + */ + public Builder clearNodePoolSoakDuration() { + bitField0_ = (bitField0_ & ~0x00000004); + nodePoolSoakDuration_ = null; + if (nodePoolSoakDurationBuilder_ != null) { + nodePoolSoakDurationBuilder_.dispose(); + nodePoolSoakDurationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Time needed after draining entire blue pool. After this period, blue pool
+     * will be cleaned up.
+     * 
+ * + * optional .google.protobuf.Duration node_pool_soak_duration = 2; + */ + public com.google.protobuf.Duration.Builder getNodePoolSoakDurationBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getNodePoolSoakDurationFieldBuilder().getBuilder(); + } + /** + *
+     * Time needed after draining entire blue pool. After this period, blue pool
+     * will be cleaned up.
+     * 
+ * + * optional .google.protobuf.Duration node_pool_soak_duration = 2; + */ + public com.google.protobuf.DurationOrBuilder getNodePoolSoakDurationOrBuilder() { + if (nodePoolSoakDurationBuilder_ != null) { + return nodePoolSoakDurationBuilder_.getMessageOrBuilder(); + } else { + return nodePoolSoakDuration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : nodePoolSoakDuration_; + } + } + /** + *
+     * Time needed after draining entire blue pool. After this period, blue pool
+     * will be cleaned up.
+     * 
+ * + * optional .google.protobuf.Duration node_pool_soak_duration = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getNodePoolSoakDurationFieldBuilder() { + if (nodePoolSoakDurationBuilder_ == null) { + nodePoolSoakDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getNodePoolSoakDuration(), + getParentForChildren(), + isClean()); + nodePoolSoakDuration_ = null; + } + return nodePoolSoakDurationBuilder_; + } + @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.BlueGreenSettings) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.BlueGreenSettings) + private static final com.google.container.v1beta1.BlueGreenSettings DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.BlueGreenSettings(); + } + + public static com.google.container.v1beta1.BlueGreenSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BlueGreenSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.BlueGreenSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BlueGreenSettingsOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BlueGreenSettingsOrBuilder.java new file mode 100644 index 000000000000..6dc514e331c0 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/BlueGreenSettingsOrBuilder.java @@ -0,0 +1,96 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface BlueGreenSettingsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.BlueGreenSettings) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Standard policy for the blue-green upgrade.
+   * 
+ * + * .google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; + * @return Whether the standardRolloutPolicy field is set. + */ + boolean hasStandardRolloutPolicy(); + /** + *
+   * Standard policy for the blue-green upgrade.
+   * 
+ * + * .google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; + * @return The standardRolloutPolicy. + */ + com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy getStandardRolloutPolicy(); + /** + *
+   * Standard policy for the blue-green upgrade.
+   * 
+ * + * .google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; + */ + com.google.container.v1beta1.BlueGreenSettings.StandardRolloutPolicyOrBuilder getStandardRolloutPolicyOrBuilder(); + + /** + *
+   * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
+   * 
+ * + * .google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; + * @return Whether the autoscaledRolloutPolicy field is set. + */ + boolean hasAutoscaledRolloutPolicy(); + /** + *
+   * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
+   * 
+ * + * .google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; + * @return The autoscaledRolloutPolicy. + */ + com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy getAutoscaledRolloutPolicy(); + /** + *
+   * Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
+   * 
+ * + * .google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicy autoscaled_rollout_policy = 3; + */ + com.google.container.v1beta1.BlueGreenSettings.AutoscaledRolloutPolicyOrBuilder getAutoscaledRolloutPolicyOrBuilder(); + + /** + *
+   * Time needed after draining entire blue pool. After this period, blue pool
+   * will be cleaned up.
+   * 
+ * + * optional .google.protobuf.Duration node_pool_soak_duration = 2; + * @return Whether the nodePoolSoakDuration field is set. + */ + boolean hasNodePoolSoakDuration(); + /** + *
+   * Time needed after draining entire blue pool. After this period, blue pool
+   * will be cleaned up.
+   * 
+ * + * optional .google.protobuf.Duration node_pool_soak_duration = 2; + * @return The nodePoolSoakDuration. + */ + com.google.protobuf.Duration getNodePoolSoakDuration(); + /** + *
+   * Time needed after draining entire blue pool. After this period, blue pool
+   * will be cleaned up.
+   * 
+ * + * optional .google.protobuf.Duration node_pool_soak_duration = 2; + */ + com.google.protobuf.DurationOrBuilder getNodePoolSoakDurationOrBuilder(); + + com.google.container.v1beta1.BlueGreenSettings.RolloutPolicyCase getRolloutPolicyCase(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequest.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequest.java new file mode 100644 index 000000000000..fa59ad501be5 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequest.java @@ -0,0 +1,1161 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3510 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3510 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3517 + * @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]; + * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3517 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3521 + * @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]; + * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3521 + * @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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, operationId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, operationId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.CancelOperationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.operationId_ = operationId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.name_ = name_; + } + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getOperationId().isEmpty()) { + operationId_ = other.operationId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + operationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3510 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3510 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3510 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3510 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3510 + * @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; + bitField0_ |= 0x00000001; + 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]; + * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3517 + * @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]; + * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3517 + * @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]; + * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3517 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3517 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + 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]; + * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3517 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3521 + * @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]; + * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3521 + * @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]; + * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3521 + * @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; + bitField0_ |= 0x00000004; + 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]; + * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3521 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearOperationId() { + operationId_ = getDefaultInstance().getOperationId(); + bitField0_ = (bitField0_ & ~0x00000004); + 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]; + * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3521 + * @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; + bitField0_ |= 0x00000004; + 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; + bitField0_ |= 0x00000008; + 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(); + bitField0_ = (bitField0_ & ~0x00000008); + 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; + bitField0_ |= 0x00000008; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequestOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequestOrBuilder.java new file mode 100644 index 000000000000..2be731abe692 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequestOrBuilder.java @@ -0,0 +1,116 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3510 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3510 + * @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]; + * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3517 + * @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]; + * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3517 + * @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]; + * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3521 + * @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]; + * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3521 + * @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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CheckAutopilotCompatibilityRequest.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CheckAutopilotCompatibilityRequest.java new file mode 100644 index 000000000000..84b27723a41a --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CheckAutopilotCompatibilityRequest.java @@ -0,0 +1,587 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * CheckAutopilotCompatibilityRequest requests getting the blockers for the
+ * given operation in the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.CheckAutopilotCompatibilityRequest} + */ +public final class CheckAutopilotCompatibilityRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.CheckAutopilotCompatibilityRequest) + CheckAutopilotCompatibilityRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CheckAutopilotCompatibilityRequest.newBuilder() to construct. + private CheckAutopilotCompatibilityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CheckAutopilotCompatibilityRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CheckAutopilotCompatibilityRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CheckAutopilotCompatibilityRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CheckAutopilotCompatibilityRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.CheckAutopilotCompatibilityRequest.class, com.google.container.v1beta1.CheckAutopilotCompatibilityRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + 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 = 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 (project, location, cluster) of the cluster to retrieve.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.CheckAutopilotCompatibilityRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.CheckAutopilotCompatibilityRequest other = (com.google.container.v1beta1.CheckAutopilotCompatibilityRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.CheckAutopilotCompatibilityRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.CheckAutopilotCompatibilityRequest parseFrom( + 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.CheckAutopilotCompatibilityRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.CheckAutopilotCompatibilityRequest parseFrom( + com.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.CheckAutopilotCompatibilityRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.CheckAutopilotCompatibilityRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.CheckAutopilotCompatibilityRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.CheckAutopilotCompatibilityRequest parseFrom( + java.io.InputStream 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.CheckAutopilotCompatibilityRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.CheckAutopilotCompatibilityRequest parseDelimitedFrom( + java.io.InputStream 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.CheckAutopilotCompatibilityRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.CheckAutopilotCompatibilityRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.CheckAutopilotCompatibilityRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * CheckAutopilotCompatibilityRequest requests getting the blockers for the
+   * given operation in the cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.CheckAutopilotCompatibilityRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.CheckAutopilotCompatibilityRequest) + com.google.container.v1beta1.CheckAutopilotCompatibilityRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CheckAutopilotCompatibilityRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CheckAutopilotCompatibilityRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.CheckAutopilotCompatibilityRequest.class, com.google.container.v1beta1.CheckAutopilotCompatibilityRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.CheckAutopilotCompatibilityRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 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_CheckAutopilotCompatibilityRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.CheckAutopilotCompatibilityRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.CheckAutopilotCompatibilityRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.CheckAutopilotCompatibilityRequest build() { + com.google.container.v1beta1.CheckAutopilotCompatibilityRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.CheckAutopilotCompatibilityRequest buildPartial() { + com.google.container.v1beta1.CheckAutopilotCompatibilityRequest result = new com.google.container.v1beta1.CheckAutopilotCompatibilityRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.CheckAutopilotCompatibilityRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @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.CheckAutopilotCompatibilityRequest) { + return mergeFrom((com.google.container.v1beta1.CheckAutopilotCompatibilityRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.CheckAutopilotCompatibilityRequest other) { + if (other == com.google.container.v1beta1.CheckAutopilotCompatibilityRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster) of the cluster to retrieve.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * 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 (project, location, cluster) of the cluster to retrieve.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * 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 (project, location, cluster) of the cluster to retrieve.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to retrieve.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster) of the cluster to retrieve.
+     * Specified in the format `projects/*/locations/*/clusters/*`.
+     * 
+ * + * 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; + bitField0_ |= 0x00000001; + 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.CheckAutopilotCompatibilityRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.CheckAutopilotCompatibilityRequest) + private static final com.google.container.v1beta1.CheckAutopilotCompatibilityRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.CheckAutopilotCompatibilityRequest(); + } + + public static com.google.container.v1beta1.CheckAutopilotCompatibilityRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CheckAutopilotCompatibilityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.CheckAutopilotCompatibilityRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CheckAutopilotCompatibilityRequestOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CheckAutopilotCompatibilityRequestOrBuilder.java new file mode 100644 index 000000000000..0f81ca0184f9 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CheckAutopilotCompatibilityRequestOrBuilder.java @@ -0,0 +1,32 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface CheckAutopilotCompatibilityRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.CheckAutopilotCompatibilityRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name (project, location, cluster) of the cluster to retrieve.
+   * Specified in the format `projects/*/locations/*/clusters/*`.
+   * 
+ * + * string name = 1; + * @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 = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CheckAutopilotCompatibilityResponse.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CheckAutopilotCompatibilityResponse.java new file mode 100644 index 000000000000..8f5c49a9c57c --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CheckAutopilotCompatibilityResponse.java @@ -0,0 +1,1024 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * CheckAutopilotCompatibilityResponse has a list of compatibility issues.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.CheckAutopilotCompatibilityResponse} + */ +public final class CheckAutopilotCompatibilityResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.CheckAutopilotCompatibilityResponse) + CheckAutopilotCompatibilityResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use CheckAutopilotCompatibilityResponse.newBuilder() to construct. + private CheckAutopilotCompatibilityResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CheckAutopilotCompatibilityResponse() { + issues_ = java.util.Collections.emptyList(); + summary_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CheckAutopilotCompatibilityResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CheckAutopilotCompatibilityResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CheckAutopilotCompatibilityResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.CheckAutopilotCompatibilityResponse.class, com.google.container.v1beta1.CheckAutopilotCompatibilityResponse.Builder.class); + } + + public static final int ISSUES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List issues_; + /** + *
+   * The list of issues for the given operation.
+   * 
+ * + * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; + */ + @java.lang.Override + public java.util.List getIssuesList() { + return issues_; + } + /** + *
+   * The list of issues for the given operation.
+   * 
+ * + * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; + */ + @java.lang.Override + public java.util.List + getIssuesOrBuilderList() { + return issues_; + } + /** + *
+   * The list of issues for the given operation.
+   * 
+ * + * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; + */ + @java.lang.Override + public int getIssuesCount() { + return issues_.size(); + } + /** + *
+   * The list of issues for the given operation.
+   * 
+ * + * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.AutopilotCompatibilityIssue getIssues(int index) { + return issues_.get(index); + } + /** + *
+   * The list of issues for the given operation.
+   * 
+ * + * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.AutopilotCompatibilityIssueOrBuilder getIssuesOrBuilder( + int index) { + return issues_.get(index); + } + + public static final int SUMMARY_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object summary_ = ""; + /** + *
+   * The summary of the autopilot compatibility response.
+   * 
+ * + * string summary = 2; + * @return The summary. + */ + @java.lang.Override + public java.lang.String getSummary() { + java.lang.Object ref = summary_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + summary_ = s; + return s; + } + } + /** + *
+   * The summary of the autopilot compatibility response.
+   * 
+ * + * string summary = 2; + * @return The bytes for summary. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSummaryBytes() { + java.lang.Object ref = summary_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + summary_ = 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 < issues_.size(); i++) { + output.writeMessage(1, issues_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(summary_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, summary_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < issues_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, issues_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(summary_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, summary_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.CheckAutopilotCompatibilityResponse)) { + return super.equals(obj); + } + com.google.container.v1beta1.CheckAutopilotCompatibilityResponse other = (com.google.container.v1beta1.CheckAutopilotCompatibilityResponse) obj; + + if (!getIssuesList() + .equals(other.getIssuesList())) return false; + if (!getSummary() + .equals(other.getSummary())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getIssuesCount() > 0) { + hash = (37 * hash) + ISSUES_FIELD_NUMBER; + hash = (53 * hash) + getIssuesList().hashCode(); + } + hash = (37 * hash) + SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getSummary().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.CheckAutopilotCompatibilityResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.CheckAutopilotCompatibilityResponse parseFrom( + 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.CheckAutopilotCompatibilityResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.CheckAutopilotCompatibilityResponse parseFrom( + com.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.CheckAutopilotCompatibilityResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.CheckAutopilotCompatibilityResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.CheckAutopilotCompatibilityResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.CheckAutopilotCompatibilityResponse parseFrom( + java.io.InputStream 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.CheckAutopilotCompatibilityResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.CheckAutopilotCompatibilityResponse parseDelimitedFrom( + java.io.InputStream 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.CheckAutopilotCompatibilityResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.CheckAutopilotCompatibilityResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.CheckAutopilotCompatibilityResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * CheckAutopilotCompatibilityResponse has a list of compatibility issues.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.CheckAutopilotCompatibilityResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.CheckAutopilotCompatibilityResponse) + com.google.container.v1beta1.CheckAutopilotCompatibilityResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CheckAutopilotCompatibilityResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CheckAutopilotCompatibilityResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.CheckAutopilotCompatibilityResponse.class, com.google.container.v1beta1.CheckAutopilotCompatibilityResponse.Builder.class); + } + + // Construct using com.google.container.v1beta1.CheckAutopilotCompatibilityResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (issuesBuilder_ == null) { + issues_ = java.util.Collections.emptyList(); + } else { + issues_ = null; + issuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + summary_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CheckAutopilotCompatibilityResponse_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.CheckAutopilotCompatibilityResponse getDefaultInstanceForType() { + return com.google.container.v1beta1.CheckAutopilotCompatibilityResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.CheckAutopilotCompatibilityResponse build() { + com.google.container.v1beta1.CheckAutopilotCompatibilityResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.CheckAutopilotCompatibilityResponse buildPartial() { + com.google.container.v1beta1.CheckAutopilotCompatibilityResponse result = new com.google.container.v1beta1.CheckAutopilotCompatibilityResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1beta1.CheckAutopilotCompatibilityResponse result) { + if (issuesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + issues_ = java.util.Collections.unmodifiableList(issues_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.issues_ = issues_; + } else { + result.issues_ = issuesBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1beta1.CheckAutopilotCompatibilityResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.summary_ = summary_; + } + } + + @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.CheckAutopilotCompatibilityResponse) { + return mergeFrom((com.google.container.v1beta1.CheckAutopilotCompatibilityResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.CheckAutopilotCompatibilityResponse other) { + if (other == com.google.container.v1beta1.CheckAutopilotCompatibilityResponse.getDefaultInstance()) return this; + if (issuesBuilder_ == null) { + if (!other.issues_.isEmpty()) { + if (issues_.isEmpty()) { + issues_ = other.issues_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureIssuesIsMutable(); + issues_.addAll(other.issues_); + } + onChanged(); + } + } else { + if (!other.issues_.isEmpty()) { + if (issuesBuilder_.isEmpty()) { + issuesBuilder_.dispose(); + issuesBuilder_ = null; + issues_ = other.issues_; + bitField0_ = (bitField0_ & ~0x00000001); + issuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getIssuesFieldBuilder() : null; + } else { + issuesBuilder_.addAllMessages(other.issues_); + } + } + } + if (!other.getSummary().isEmpty()) { + summary_ = other.summary_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.container.v1beta1.AutopilotCompatibilityIssue m = + input.readMessage( + com.google.container.v1beta1.AutopilotCompatibilityIssue.parser(), + extensionRegistry); + if (issuesBuilder_ == null) { + ensureIssuesIsMutable(); + issues_.add(m); + } else { + issuesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + summary_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List issues_ = + java.util.Collections.emptyList(); + private void ensureIssuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + issues_ = new java.util.ArrayList(issues_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.AutopilotCompatibilityIssue, com.google.container.v1beta1.AutopilotCompatibilityIssue.Builder, com.google.container.v1beta1.AutopilotCompatibilityIssueOrBuilder> issuesBuilder_; + + /** + *
+     * The list of issues for the given operation.
+     * 
+ * + * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; + */ + public java.util.List getIssuesList() { + if (issuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(issues_); + } else { + return issuesBuilder_.getMessageList(); + } + } + /** + *
+     * The list of issues for the given operation.
+     * 
+ * + * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; + */ + public int getIssuesCount() { + if (issuesBuilder_ == null) { + return issues_.size(); + } else { + return issuesBuilder_.getCount(); + } + } + /** + *
+     * The list of issues for the given operation.
+     * 
+ * + * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; + */ + public com.google.container.v1beta1.AutopilotCompatibilityIssue getIssues(int index) { + if (issuesBuilder_ == null) { + return issues_.get(index); + } else { + return issuesBuilder_.getMessage(index); + } + } + /** + *
+     * The list of issues for the given operation.
+     * 
+ * + * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; + */ + public Builder setIssues( + int index, com.google.container.v1beta1.AutopilotCompatibilityIssue value) { + if (issuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIssuesIsMutable(); + issues_.set(index, value); + onChanged(); + } else { + issuesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The list of issues for the given operation.
+     * 
+ * + * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; + */ + public Builder setIssues( + int index, com.google.container.v1beta1.AutopilotCompatibilityIssue.Builder builderForValue) { + if (issuesBuilder_ == null) { + ensureIssuesIsMutable(); + issues_.set(index, builderForValue.build()); + onChanged(); + } else { + issuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The list of issues for the given operation.
+     * 
+ * + * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; + */ + public Builder addIssues(com.google.container.v1beta1.AutopilotCompatibilityIssue value) { + if (issuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIssuesIsMutable(); + issues_.add(value); + onChanged(); + } else { + issuesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The list of issues for the given operation.
+     * 
+ * + * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; + */ + public Builder addIssues( + int index, com.google.container.v1beta1.AutopilotCompatibilityIssue value) { + if (issuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIssuesIsMutable(); + issues_.add(index, value); + onChanged(); + } else { + issuesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The list of issues for the given operation.
+     * 
+ * + * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; + */ + public Builder addIssues( + com.google.container.v1beta1.AutopilotCompatibilityIssue.Builder builderForValue) { + if (issuesBuilder_ == null) { + ensureIssuesIsMutable(); + issues_.add(builderForValue.build()); + onChanged(); + } else { + issuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The list of issues for the given operation.
+     * 
+ * + * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; + */ + public Builder addIssues( + int index, com.google.container.v1beta1.AutopilotCompatibilityIssue.Builder builderForValue) { + if (issuesBuilder_ == null) { + ensureIssuesIsMutable(); + issues_.add(index, builderForValue.build()); + onChanged(); + } else { + issuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The list of issues for the given operation.
+     * 
+ * + * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; + */ + public Builder addAllIssues( + java.lang.Iterable values) { + if (issuesBuilder_ == null) { + ensureIssuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, issues_); + onChanged(); + } else { + issuesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The list of issues for the given operation.
+     * 
+ * + * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; + */ + public Builder clearIssues() { + if (issuesBuilder_ == null) { + issues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + issuesBuilder_.clear(); + } + return this; + } + /** + *
+     * The list of issues for the given operation.
+     * 
+ * + * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; + */ + public Builder removeIssues(int index) { + if (issuesBuilder_ == null) { + ensureIssuesIsMutable(); + issues_.remove(index); + onChanged(); + } else { + issuesBuilder_.remove(index); + } + return this; + } + /** + *
+     * The list of issues for the given operation.
+     * 
+ * + * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; + */ + public com.google.container.v1beta1.AutopilotCompatibilityIssue.Builder getIssuesBuilder( + int index) { + return getIssuesFieldBuilder().getBuilder(index); + } + /** + *
+     * The list of issues for the given operation.
+     * 
+ * + * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; + */ + public com.google.container.v1beta1.AutopilotCompatibilityIssueOrBuilder getIssuesOrBuilder( + int index) { + if (issuesBuilder_ == null) { + return issues_.get(index); } else { + return issuesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The list of issues for the given operation.
+     * 
+ * + * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; + */ + public java.util.List + getIssuesOrBuilderList() { + if (issuesBuilder_ != null) { + return issuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(issues_); + } + } + /** + *
+     * The list of issues for the given operation.
+     * 
+ * + * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; + */ + public com.google.container.v1beta1.AutopilotCompatibilityIssue.Builder addIssuesBuilder() { + return getIssuesFieldBuilder().addBuilder( + com.google.container.v1beta1.AutopilotCompatibilityIssue.getDefaultInstance()); + } + /** + *
+     * The list of issues for the given operation.
+     * 
+ * + * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; + */ + public com.google.container.v1beta1.AutopilotCompatibilityIssue.Builder addIssuesBuilder( + int index) { + return getIssuesFieldBuilder().addBuilder( + index, com.google.container.v1beta1.AutopilotCompatibilityIssue.getDefaultInstance()); + } + /** + *
+     * The list of issues for the given operation.
+     * 
+ * + * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; + */ + public java.util.List + getIssuesBuilderList() { + return getIssuesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.AutopilotCompatibilityIssue, com.google.container.v1beta1.AutopilotCompatibilityIssue.Builder, com.google.container.v1beta1.AutopilotCompatibilityIssueOrBuilder> + getIssuesFieldBuilder() { + if (issuesBuilder_ == null) { + issuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.AutopilotCompatibilityIssue, com.google.container.v1beta1.AutopilotCompatibilityIssue.Builder, com.google.container.v1beta1.AutopilotCompatibilityIssueOrBuilder>( + issues_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + issues_ = null; + } + return issuesBuilder_; + } + + private java.lang.Object summary_ = ""; + /** + *
+     * The summary of the autopilot compatibility response.
+     * 
+ * + * string summary = 2; + * @return The summary. + */ + public java.lang.String getSummary() { + java.lang.Object ref = summary_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + summary_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The summary of the autopilot compatibility response.
+     * 
+ * + * string summary = 2; + * @return The bytes for summary. + */ + public com.google.protobuf.ByteString + getSummaryBytes() { + java.lang.Object ref = summary_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + summary_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The summary of the autopilot compatibility response.
+     * 
+ * + * string summary = 2; + * @param value The summary to set. + * @return This builder for chaining. + */ + public Builder setSummary( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + summary_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The summary of the autopilot compatibility response.
+     * 
+ * + * string summary = 2; + * @return This builder for chaining. + */ + public Builder clearSummary() { + summary_ = getDefaultInstance().getSummary(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * The summary of the autopilot compatibility response.
+     * 
+ * + * string summary = 2; + * @param value The bytes for summary to set. + * @return This builder for chaining. + */ + public Builder setSummaryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + summary_ = value; + bitField0_ |= 0x00000002; + 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.CheckAutopilotCompatibilityResponse) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.CheckAutopilotCompatibilityResponse) + private static final com.google.container.v1beta1.CheckAutopilotCompatibilityResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.CheckAutopilotCompatibilityResponse(); + } + + public static com.google.container.v1beta1.CheckAutopilotCompatibilityResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CheckAutopilotCompatibilityResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.CheckAutopilotCompatibilityResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CheckAutopilotCompatibilityResponseOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CheckAutopilotCompatibilityResponseOrBuilder.java new file mode 100644 index 000000000000..56e2e01653d0 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CheckAutopilotCompatibilityResponseOrBuilder.java @@ -0,0 +1,74 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface CheckAutopilotCompatibilityResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.CheckAutopilotCompatibilityResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The list of issues for the given operation.
+   * 
+ * + * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; + */ + java.util.List + getIssuesList(); + /** + *
+   * The list of issues for the given operation.
+   * 
+ * + * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; + */ + com.google.container.v1beta1.AutopilotCompatibilityIssue getIssues(int index); + /** + *
+   * The list of issues for the given operation.
+   * 
+ * + * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; + */ + int getIssuesCount(); + /** + *
+   * The list of issues for the given operation.
+   * 
+ * + * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; + */ + java.util.List + getIssuesOrBuilderList(); + /** + *
+   * The list of issues for the given operation.
+   * 
+ * + * repeated .google.container.v1beta1.AutopilotCompatibilityIssue issues = 1; + */ + com.google.container.v1beta1.AutopilotCompatibilityIssueOrBuilder getIssuesOrBuilder( + int index); + + /** + *
+   * The summary of the autopilot compatibility response.
+   * 
+ * + * string summary = 2; + * @return The summary. + */ + java.lang.String getSummary(); + /** + *
+   * The summary of the autopilot compatibility response.
+   * 
+ * + * string summary = 2; + * @return The bytes for summary. + */ + com.google.protobuf.ByteString + getSummaryBytes(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClientCertificateConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClientCertificateConfig.java new file mode 100644 index 000000000000..e6dece1b09d9 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClientCertificateConfig.java @@ -0,0 +1,497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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_ = false; + /** + *
+   * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.ClientCertificateConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.issueClientCertificate_ = issueClientCertificate_; + } + } + + @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.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + issueClientCertificate_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Issue a client certificate.
+     * 
+ * + * bool issue_client_certificate = 1; + * @return This builder for chaining. + */ + public Builder clearIssueClientCertificate() { + bitField0_ = (bitField0_ & ~0x00000001); + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClientCertificateConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClientCertificateConfigOrBuilder.java new file mode 100644 index 000000000000..66b236651e2e --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClientCertificateConfigOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CloudRunConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CloudRunConfig.java new file mode 100644 index 000000000000..fe309589bc85 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CloudRunConfig.java @@ -0,0 +1,764 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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< + LoadBalancerType> 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_ = false; + /** + *
+   * 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_ = 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; + * @return The loadBalancerType. + */ + @java.lang.Override public com.google.container.v1beta1.CloudRunConfig.LoadBalancerType getLoadBalancerType() { + com.google.container.v1beta1.CloudRunConfig.LoadBalancerType result = com.google.container.v1beta1.CloudRunConfig.LoadBalancerType.forNumber(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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.CloudRunConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.disabled_ = disabled_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.loadBalancerType_ = loadBalancerType_; + } + } + + @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.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + disabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 24: { + loadBalancerType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether Cloud Run addon is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + * @return This builder for chaining. + */ + public Builder clearDisabled() { + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000002; + 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() { + com.google.container.v1beta1.CloudRunConfig.LoadBalancerType result = com.google.container.v1beta1.CloudRunConfig.LoadBalancerType.forNumber(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(); + } + bitField0_ |= 0x00000002; + 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() { + bitField0_ = (bitField0_ & ~0x00000002); + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CloudRunConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CloudRunConfigOrBuilder.java new file mode 100644 index 000000000000..1a4b23ed7968 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CloudRunConfigOrBuilder.java @@ -0,0 +1,39 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Cluster.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Cluster.java new file mode 100644 index 000000000000..d41f256536ad --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Cluster.java @@ -0,0 +1,17605 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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.emptyList(); + labelFingerprint_ = ""; + masterIpv4CidrBlock_ = ""; + selfLink_ = ""; + zone_ = ""; + endpoint_ = ""; + initialClusterVersion_ = ""; + currentMasterVersion_ = ""; + currentNodeVersion_ = ""; + createTime_ = ""; + status_ = 0; + statusMessage_ = ""; + servicesIpv4Cidr_ = ""; + instanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + expireTime_ = ""; + location_ = ""; + tpuIpv4CidrBlock_ = ""; + conditions_ = java.util.Collections.emptyList(); + id_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Cluster(); + } + + 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.MapFieldReflectionAccessor internalGetMapFieldReflection( + 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< + Status> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Status findValueByNumber(int number) { + return Status.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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) + } + + private int bitField0_; + private int bitField1_; + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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_ = 0; + /** + *
+   * 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]; + * @deprecated google.container.v1beta1.Cluster.initial_node_count is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1936 + * @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]; + * @deprecated google.container.v1beta1.Cluster.node_config is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1949 + * @return Whether the nodeConfig field is set. + */ + @java.lang.Override + @java.lang.Deprecated public boolean hasNodeConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * 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]; + * @deprecated google.container.v1beta1.Cluster.node_config is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1949 + * @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 nodeConfig_ == null ? com.google.container.v1beta1.NodeConfig.getDefaultInstance() : nodeConfig_; + } + + 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 ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * 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 masterAuth_ == null ? com.google.container.v1beta1.MasterAuth.getDefaultInstance() : masterAuth_; + } + + public static final int LOGGING_SERVICE_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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 ((bitField0_ & 0x00000004) != 0); + } + /** + *
+   * 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 addonsConfig_ == null ? com.google.container.v1beta1.AddonsConfig.getDefaultInstance() : addonsConfig_; + } + + public static final int SUBNETWORK_FIELD_NUMBER = 11; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList locations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * 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_ = false; + /** + *
+   * 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 ENABLE_K8S_BETA_APIS_FIELD_NUMBER = 143; + private com.google.container.v1beta1.K8sBetaAPIConfig enableK8SBetaApis_; + /** + *
+   * Kubernetes open source beta apis enabled on the cluster. Only beta apis.
+   * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; + * @return Whether the enableK8sBetaApis field is set. + */ + @java.lang.Override + public boolean hasEnableK8SBetaApis() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+   * Kubernetes open source beta apis enabled on the cluster. Only beta apis.
+   * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; + * @return The enableK8sBetaApis. + */ + @java.lang.Override + public com.google.container.v1beta1.K8sBetaAPIConfig getEnableK8SBetaApis() { + return enableK8SBetaApis_ == null ? com.google.container.v1beta1.K8sBetaAPIConfig.getDefaultInstance() : enableK8SBetaApis_; + } + /** + *
+   * Kubernetes open source beta apis enabled on the cluster. Only beta apis.
+   * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; + */ + @java.lang.Override + public com.google.container.v1beta1.K8sBetaAPIConfigOrBuilder getEnableK8SBetaApisOrBuilder() { + return enableK8SBetaApis_ == null ? com.google.container.v1beta1.K8sBetaAPIConfig.getDefaultInstance() : enableK8SBetaApis_; + } + + public static final int RESOURCE_LABELS_FIELD_NUMBER = 15; + private static final class ResourceLabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_Cluster_ResourceLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> resourceLabels_; + private com.google.protobuf.MapField + internalGetResourceLabels() { + if (resourceLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + return resourceLabels_; + } + public int getResourceLabelsCount() { + return internalGetResourceLabels().getMap().size(); + } + /** + *
+   * The resource labels for the cluster to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 15; + */ + @java.lang.Override + public boolean containsResourceLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + 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 /* nullable */ +java.lang.String getResourceLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + 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 NullPointerException("map key"); } + 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; + @SuppressWarnings("serial") + 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 ((bitField0_ & 0x00000010) != 0); + } + /** + *
+   * 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 legacyAbac_ == null ? com.google.container.v1beta1.LegacyAbac.getDefaultInstance() : legacyAbac_; + } + + 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 ((bitField0_ & 0x00000020) != 0); + } + /** + *
+   * 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 networkPolicy_ == null ? com.google.container.v1beta1.NetworkPolicy.getDefaultInstance() : networkPolicy_; + } + + 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 ((bitField0_ & 0x00000040) != 0); + } + /** + *
+   * 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 ipAllocationPolicy_ == null ? com.google.container.v1beta1.IPAllocationPolicy.getDefaultInstance() : ipAllocationPolicy_; + } + + 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 ((bitField0_ & 0x00000080) != 0); + } + /** + *
+   * 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 masterAuthorizedNetworksConfig_ == null ? com.google.container.v1beta1.MasterAuthorizedNetworksConfig.getDefaultInstance() : masterAuthorizedNetworksConfig_; + } + + 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 ((bitField0_ & 0x00000100) != 0); + } + /** + *
+   * 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 maintenancePolicy_ == null ? com.google.container.v1beta1.MaintenancePolicy.getDefaultInstance() : maintenancePolicy_; + } + + 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 ((bitField0_ & 0x00000200) != 0); + } + /** + *
+   * 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 binaryAuthorization_ == null ? com.google.container.v1beta1.BinaryAuthorization.getDefaultInstance() : binaryAuthorization_; + } + + 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 ((bitField0_ & 0x00000400) != 0); + } + /** + *
+   * 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 podSecurityPolicyConfig_ == null ? com.google.container.v1beta1.PodSecurityPolicyConfig.getDefaultInstance() : podSecurityPolicyConfig_; + } + + 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 ((bitField0_ & 0x00000800) != 0); + } + /** + *
+   * 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 autoscaling_ == null ? com.google.container.v1beta1.ClusterAutoscaling.getDefaultInstance() : autoscaling_; + } + + 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 ((bitField0_ & 0x00001000) != 0); + } + /** + *
+   * 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 networkConfig_ == null ? com.google.container.v1beta1.NetworkConfig.getDefaultInstance() : networkConfig_; + } + + public static final int PRIVATE_CLUSTER_FIELD_NUMBER = 28; + private boolean privateCluster_ = false; + /** + *
+   * 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]; + * @deprecated google.container.v1beta1.Cluster.private_cluster is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2074 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2081 + * @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]; + * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2081 + * @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 ((bitField0_ & 0x00002000) != 0); + } + /** + *
+   * 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 defaultMaxPodsConstraint_ == null ? com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance() : defaultMaxPodsConstraint_; + } + + 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 ((bitField0_ & 0x00004000) != 0); + } + /** + *
+   * 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 resourceUsageExportConfig_ == null ? com.google.container.v1beta1.ResourceUsageExportConfig.getDefaultInstance() : resourceUsageExportConfig_; + } + + 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 ((bitField0_ & 0x00008000) != 0); + } + /** + *
+   * 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 authenticatorGroupsConfig_ == null ? com.google.container.v1beta1.AuthenticatorGroupsConfig.getDefaultInstance() : authenticatorGroupsConfig_; + } + + 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 ((bitField0_ & 0x00010000) != 0); + } + /** + *
+   * 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 privateClusterConfig_ == null ? com.google.container.v1beta1.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; + } + + 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 ((bitField0_ & 0x00020000) != 0); + } + /** + *
+   * 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 verticalPodAutoscaling_ == null ? com.google.container.v1beta1.VerticalPodAutoscaling.getDefaultInstance() : verticalPodAutoscaling_; + } + + 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 ((bitField0_ & 0x00040000) != 0); + } + /** + *
+   * 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 shieldedNodes_ == null ? com.google.container.v1beta1.ShieldedNodes.getDefaultInstance() : shieldedNodes_; + } + + public static final int RELEASE_CHANNEL_FIELD_NUMBER = 41; + private com.google.container.v1beta1.ReleaseChannel releaseChannel_; + /** + *
+   * Release channel configuration. If left unspecified on cluster creation and
+   * a version is specified, the cluster is enrolled in the most mature release
+   * channel where the version is available (first checking STABLE, then
+   * REGULAR, and finally RAPID). Otherwise, if no release channel
+   * configuration and no version is specified, the cluster is enrolled in the
+   * REGULAR channel with its default version.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 41; + * @return Whether the releaseChannel field is set. + */ + @java.lang.Override + public boolean hasReleaseChannel() { + return ((bitField0_ & 0x00080000) != 0); + } + /** + *
+   * Release channel configuration. If left unspecified on cluster creation and
+   * a version is specified, the cluster is enrolled in the most mature release
+   * channel where the version is available (first checking STABLE, then
+   * REGULAR, and finally RAPID). Otherwise, if no release channel
+   * configuration and no version is specified, the cluster is enrolled in the
+   * REGULAR channel with its default version.
+   * 
+ * + * .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. If left unspecified on cluster creation and
+   * a version is specified, the cluster is enrolled in the most mature release
+   * channel where the version is available (first checking STABLE, then
+   * REGULAR, and finally RAPID). Otherwise, if no release channel
+   * configuration and no version is specified, the cluster is enrolled in the
+   * REGULAR channel with its default version.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 41; + */ + @java.lang.Override + public com.google.container.v1beta1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder() { + return releaseChannel_ == null ? com.google.container.v1beta1.ReleaseChannel.getDefaultInstance() : releaseChannel_; + } + + 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 ((bitField0_ & 0x00100000) != 0); + } + /** + *
+   * 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 workloadIdentityConfig_ == null ? com.google.container.v1beta1.WorkloadIdentityConfig.getDefaultInstance() : workloadIdentityConfig_; + } + + public static final int WORKLOAD_CERTIFICATES_FIELD_NUMBER = 52; + private com.google.container.v1beta1.WorkloadCertificates workloadCertificates_; + /** + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.WorkloadCertificates workload_certificates = 52; + * @return Whether the workloadCertificates field is set. + */ + @java.lang.Override + public boolean hasWorkloadCertificates() { + return ((bitField0_ & 0x00200000) != 0); + } + /** + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.WorkloadCertificates workload_certificates = 52; + * @return The workloadCertificates. + */ + @java.lang.Override + public com.google.container.v1beta1.WorkloadCertificates getWorkloadCertificates() { + return workloadCertificates_ == null ? com.google.container.v1beta1.WorkloadCertificates.getDefaultInstance() : workloadCertificates_; + } + /** + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.WorkloadCertificates workload_certificates = 52; + */ + @java.lang.Override + public com.google.container.v1beta1.WorkloadCertificatesOrBuilder getWorkloadCertificatesOrBuilder() { + return workloadCertificates_ == null ? com.google.container.v1beta1.WorkloadCertificates.getDefaultInstance() : workloadCertificates_; + } + + public static final int MESH_CERTIFICATES_FIELD_NUMBER = 67; + private com.google.container.v1beta1.MeshCertificates meshCertificates_; + /** + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + * @return Whether the meshCertificates field is set. + */ + @java.lang.Override + public boolean hasMeshCertificates() { + return ((bitField0_ & 0x00400000) != 0); + } + /** + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + * @return The meshCertificates. + */ + @java.lang.Override + public com.google.container.v1beta1.MeshCertificates getMeshCertificates() { + return meshCertificates_ == null ? com.google.container.v1beta1.MeshCertificates.getDefaultInstance() : meshCertificates_; + } + /** + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + */ + @java.lang.Override + public com.google.container.v1beta1.MeshCertificatesOrBuilder getMeshCertificatesOrBuilder() { + return meshCertificates_ == null ? com.google.container.v1beta1.MeshCertificates.getDefaultInstance() : meshCertificates_; + } + + public static final int WORKLOAD_ALTS_CONFIG_FIELD_NUMBER = 53; + private com.google.container.v1beta1.WorkloadALTSConfig workloadAltsConfig_; + /** + *
+   * Configuration for direct-path (via ALTS) with workload identity.
+   * 
+ * + * .google.container.v1beta1.WorkloadALTSConfig workload_alts_config = 53; + * @return Whether the workloadAltsConfig field is set. + */ + @java.lang.Override + public boolean hasWorkloadAltsConfig() { + return ((bitField0_ & 0x00800000) != 0); + } + /** + *
+   * Configuration for direct-path (via ALTS) with workload identity.
+   * 
+ * + * .google.container.v1beta1.WorkloadALTSConfig workload_alts_config = 53; + * @return The workloadAltsConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.WorkloadALTSConfig getWorkloadAltsConfig() { + return workloadAltsConfig_ == null ? com.google.container.v1beta1.WorkloadALTSConfig.getDefaultInstance() : workloadAltsConfig_; + } + /** + *
+   * Configuration for direct-path (via ALTS) with workload identity.
+   * 
+ * + * .google.container.v1beta1.WorkloadALTSConfig workload_alts_config = 53; + */ + @java.lang.Override + public com.google.container.v1beta1.WorkloadALTSConfigOrBuilder getWorkloadAltsConfigOrBuilder() { + return workloadAltsConfig_ == null ? com.google.container.v1beta1.WorkloadALTSConfig.getDefaultInstance() : workloadAltsConfig_; + } + + public static final int COST_MANAGEMENT_CONFIG_FIELD_NUMBER = 45; + private com.google.container.v1beta1.CostManagementConfig costManagementConfig_; + /** + *
+   * Configuration for the fine-grained cost management feature.
+   * 
+ * + * .google.container.v1beta1.CostManagementConfig cost_management_config = 45; + * @return Whether the costManagementConfig field is set. + */ + @java.lang.Override + public boolean hasCostManagementConfig() { + return ((bitField0_ & 0x01000000) != 0); + } + /** + *
+   * Configuration for the fine-grained cost management feature.
+   * 
+ * + * .google.container.v1beta1.CostManagementConfig cost_management_config = 45; + * @return The costManagementConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.CostManagementConfig getCostManagementConfig() { + return costManagementConfig_ == null ? com.google.container.v1beta1.CostManagementConfig.getDefaultInstance() : costManagementConfig_; + } + /** + *
+   * Configuration for the fine-grained cost management feature.
+   * 
+ * + * .google.container.v1beta1.CostManagementConfig cost_management_config = 45; + */ + @java.lang.Override + public com.google.container.v1beta1.CostManagementConfigOrBuilder getCostManagementConfigOrBuilder() { + return costManagementConfig_ == null ? com.google.container.v1beta1.CostManagementConfig.getDefaultInstance() : costManagementConfig_; + } + + 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 ((bitField0_ & 0x02000000) != 0); + } + /** + *
+   * 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 clusterTelemetry_ == null ? com.google.container.v1beta1.ClusterTelemetry.getDefaultInstance() : clusterTelemetry_; + } + + 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 ((bitField0_ & 0x04000000) != 0); + } + /** + *
+   * 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 tpuConfig_ == null ? com.google.container.v1beta1.TpuConfig.getDefaultInstance() : tpuConfig_; + } + + 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 ((bitField0_ & 0x08000000) != 0); + } + /** + *
+   * 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 notificationConfig_ == null ? com.google.container.v1beta1.NotificationConfig.getDefaultInstance() : notificationConfig_; + } + + public static final int CONFIDENTIAL_NODES_FIELD_NUMBER = 50; + private com.google.container.v1beta1.ConfidentialNodes confidentialNodes_; + /** + *
+   * Configuration of Confidential Nodes.
+   * All the nodes in the cluster will be Confidential VM once enabled.
+   * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 50; + * @return Whether the confidentialNodes field is set. + */ + @java.lang.Override + public boolean hasConfidentialNodes() { + return ((bitField0_ & 0x10000000) != 0); + } + /** + *
+   * Configuration of Confidential Nodes.
+   * All the nodes in the cluster will be Confidential VM once enabled.
+   * 
+ * + * .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.
+   * All the nodes in the cluster will be Confidential VM once enabled.
+   * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 50; + */ + @java.lang.Override + public com.google.container.v1beta1.ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder() { + return confidentialNodes_ == null ? com.google.container.v1beta1.ConfidentialNodes.getDefaultInstance() : confidentialNodes_; + } + + public static final int IDENTITY_SERVICE_CONFIG_FIELD_NUMBER = 54; + private com.google.container.v1beta1.IdentityServiceConfig identityServiceConfig_; + /** + *
+   * Configuration for Identity Service component.
+   * 
+ * + * .google.container.v1beta1.IdentityServiceConfig identity_service_config = 54; + * @return Whether the identityServiceConfig field is set. + */ + @java.lang.Override + public boolean hasIdentityServiceConfig() { + return ((bitField0_ & 0x20000000) != 0); + } + /** + *
+   * Configuration for Identity Service component.
+   * 
+ * + * .google.container.v1beta1.IdentityServiceConfig identity_service_config = 54; + * @return The identityServiceConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.IdentityServiceConfig getIdentityServiceConfig() { + return identityServiceConfig_ == null ? com.google.container.v1beta1.IdentityServiceConfig.getDefaultInstance() : identityServiceConfig_; + } + /** + *
+   * Configuration for Identity Service component.
+   * 
+ * + * .google.container.v1beta1.IdentityServiceConfig identity_service_config = 54; + */ + @java.lang.Override + public com.google.container.v1beta1.IdentityServiceConfigOrBuilder getIdentityServiceConfigOrBuilder() { + return identityServiceConfig_ == null ? com.google.container.v1beta1.IdentityServiceConfig.getDefaultInstance() : identityServiceConfig_; + } + + public static final int SELF_LINK_FIELD_NUMBER = 100; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.Cluster.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2152 + * @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]; + * @deprecated google.container.v1beta1.Cluster.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2152 + * @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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2185 + * @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]; + * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2185 + * @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; + @SuppressWarnings("serial") + 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_ = 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; + * @return The status. + */ + @java.lang.Override public com.google.container.v1beta1.Cluster.Status getStatus() { + com.google.container.v1beta1.Cluster.Status result = com.google.container.v1beta1.Cluster.Status.forNumber(status_); + return result == null ? com.google.container.v1beta1.Cluster.Status.UNRECOGNIZED : result; + } + + public static final int STATUS_MESSAGE_FIELD_NUMBER = 108; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2197 + * @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]; + * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2197 + * @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_ = 0; + /** + *
+   * [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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList instanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * Deprecated. Use node_pools.instance_group_urls.
+   * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2213 + * @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]; + * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2213 + * @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]; + * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2213 + * @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]; + * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2213 + * @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_ = 0; + /** + *
+   * [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]; + * @deprecated google.container.v1beta1.Cluster.current_node_count is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2217 + * @return The currentNodeCount. + */ + @java.lang.Override + @java.lang.Deprecated public int getCurrentNodeCount() { + return currentNodeCount_; + } + + public static final int EXPIRE_TIME_FIELD_NUMBER = 113; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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_ = false; + /** + *
+   * 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; + @SuppressWarnings("serial") + 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 ((bitField0_ & 0x40000000) != 0); + } + /** + *
+   * 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 databaseEncryption_ == null ? com.google.container.v1beta1.DatabaseEncryption.getDefaultInstance() : databaseEncryption_; + } + + public static final int CONDITIONS_FIELD_NUMBER = 118; + @SuppressWarnings("serial") + 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 ((bitField0_ & 0x80000000) != 0); + } + /** + *
+   * 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 master_ == null ? com.google.container.v1beta1.Master.getDefaultInstance() : master_; + } + + public static final int AUTOPILOT_FIELD_NUMBER = 128; + private com.google.container.v1beta1.Autopilot autopilot_; + /** + *
+   * Autopilot configuration for the cluster.
+   * 
+ * + * .google.container.v1beta1.Autopilot autopilot = 128; + * @return Whether the autopilot field is set. + */ + @java.lang.Override + public boolean hasAutopilot() { + return ((bitField1_ & 0x00000001) != 0); + } + /** + *
+   * Autopilot configuration for the cluster.
+   * 
+ * + * .google.container.v1beta1.Autopilot autopilot = 128; + * @return The autopilot. + */ + @java.lang.Override + public com.google.container.v1beta1.Autopilot getAutopilot() { + return autopilot_ == null ? com.google.container.v1beta1.Autopilot.getDefaultInstance() : autopilot_; + } + /** + *
+   * Autopilot configuration for the cluster.
+   * 
+ * + * .google.container.v1beta1.Autopilot autopilot = 128; + */ + @java.lang.Override + public com.google.container.v1beta1.AutopilotOrBuilder getAutopilotOrBuilder() { + return autopilot_ == null ? com.google.container.v1beta1.Autopilot.getDefaultInstance() : autopilot_; + } + + public static final int ID_FIELD_NUMBER = 129; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + *
+   * Output only. Unique id for the cluster.
+   * 
+ * + * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + *
+   * Output only. Unique id for the cluster.
+   * 
+ * + * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_POOL_DEFAULTS_FIELD_NUMBER = 131; + private com.google.container.v1beta1.NodePoolDefaults nodePoolDefaults_; + /** + *
+   * Default NodePool settings for the entire cluster. These settings are
+   * overridden if specified on the specific NodePool object.
+   * 
+ * + * optional .google.container.v1beta1.NodePoolDefaults node_pool_defaults = 131; + * @return Whether the nodePoolDefaults field is set. + */ + @java.lang.Override + public boolean hasNodePoolDefaults() { + return ((bitField1_ & 0x00000002) != 0); + } + /** + *
+   * Default NodePool settings for the entire cluster. These settings are
+   * overridden if specified on the specific NodePool object.
+   * 
+ * + * optional .google.container.v1beta1.NodePoolDefaults node_pool_defaults = 131; + * @return The nodePoolDefaults. + */ + @java.lang.Override + public com.google.container.v1beta1.NodePoolDefaults getNodePoolDefaults() { + return nodePoolDefaults_ == null ? com.google.container.v1beta1.NodePoolDefaults.getDefaultInstance() : nodePoolDefaults_; + } + /** + *
+   * Default NodePool settings for the entire cluster. These settings are
+   * overridden if specified on the specific NodePool object.
+   * 
+ * + * optional .google.container.v1beta1.NodePoolDefaults node_pool_defaults = 131; + */ + @java.lang.Override + public com.google.container.v1beta1.NodePoolDefaultsOrBuilder getNodePoolDefaultsOrBuilder() { + return nodePoolDefaults_ == null ? com.google.container.v1beta1.NodePoolDefaults.getDefaultInstance() : nodePoolDefaults_; + } + + public static final int LOGGING_CONFIG_FIELD_NUMBER = 132; + private com.google.container.v1beta1.LoggingConfig loggingConfig_; + /** + *
+   * Logging configuration for the cluster.
+   * 
+ * + * .google.container.v1beta1.LoggingConfig logging_config = 132; + * @return Whether the loggingConfig field is set. + */ + @java.lang.Override + public boolean hasLoggingConfig() { + return ((bitField1_ & 0x00000004) != 0); + } + /** + *
+   * Logging configuration for the cluster.
+   * 
+ * + * .google.container.v1beta1.LoggingConfig logging_config = 132; + * @return The loggingConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.LoggingConfig getLoggingConfig() { + return loggingConfig_ == null ? com.google.container.v1beta1.LoggingConfig.getDefaultInstance() : loggingConfig_; + } + /** + *
+   * Logging configuration for the cluster.
+   * 
+ * + * .google.container.v1beta1.LoggingConfig logging_config = 132; + */ + @java.lang.Override + public com.google.container.v1beta1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { + return loggingConfig_ == null ? com.google.container.v1beta1.LoggingConfig.getDefaultInstance() : loggingConfig_; + } + + public static final int MONITORING_CONFIG_FIELD_NUMBER = 133; + private com.google.container.v1beta1.MonitoringConfig monitoringConfig_; + /** + *
+   * Monitoring configuration for the cluster.
+   * 
+ * + * .google.container.v1beta1.MonitoringConfig monitoring_config = 133; + * @return Whether the monitoringConfig field is set. + */ + @java.lang.Override + public boolean hasMonitoringConfig() { + return ((bitField1_ & 0x00000008) != 0); + } + /** + *
+   * Monitoring configuration for the cluster.
+   * 
+ * + * .google.container.v1beta1.MonitoringConfig monitoring_config = 133; + * @return The monitoringConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.MonitoringConfig getMonitoringConfig() { + return monitoringConfig_ == null ? com.google.container.v1beta1.MonitoringConfig.getDefaultInstance() : monitoringConfig_; + } + /** + *
+   * Monitoring configuration for the cluster.
+   * 
+ * + * .google.container.v1beta1.MonitoringConfig monitoring_config = 133; + */ + @java.lang.Override + public com.google.container.v1beta1.MonitoringConfigOrBuilder getMonitoringConfigOrBuilder() { + return monitoringConfig_ == null ? com.google.container.v1beta1.MonitoringConfig.getDefaultInstance() : monitoringConfig_; + } + + public static final int NODE_POOL_AUTO_CONFIG_FIELD_NUMBER = 136; + private com.google.container.v1beta1.NodePoolAutoConfig nodePoolAutoConfig_; + /** + *
+   * Node pool configs that apply to all auto-provisioned node pools
+   * in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoConfig node_pool_auto_config = 136; + * @return Whether the nodePoolAutoConfig field is set. + */ + @java.lang.Override + public boolean hasNodePoolAutoConfig() { + return ((bitField1_ & 0x00000010) != 0); + } + /** + *
+   * Node pool configs that apply to all auto-provisioned node pools
+   * in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoConfig node_pool_auto_config = 136; + * @return The nodePoolAutoConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.NodePoolAutoConfig getNodePoolAutoConfig() { + return nodePoolAutoConfig_ == null ? com.google.container.v1beta1.NodePoolAutoConfig.getDefaultInstance() : nodePoolAutoConfig_; + } + /** + *
+   * Node pool configs that apply to all auto-provisioned node pools
+   * in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoConfig node_pool_auto_config = 136; + */ + @java.lang.Override + public com.google.container.v1beta1.NodePoolAutoConfigOrBuilder getNodePoolAutoConfigOrBuilder() { + return nodePoolAutoConfig_ == null ? com.google.container.v1beta1.NodePoolAutoConfig.getDefaultInstance() : nodePoolAutoConfig_; + } + + public static final int PROTECT_CONFIG_FIELD_NUMBER = 137; + private com.google.container.v1beta1.ProtectConfig protectConfig_; + /** + *
+   * Deprecated: Use SecurityPostureConfig instead.
+   * Enable/Disable Protect API features for the cluster.
+   * 
+ * + * optional .google.container.v1beta1.ProtectConfig protect_config = 137 [deprecated = true]; + * @deprecated google.container.v1beta1.Cluster.protect_config is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2270 + * @return Whether the protectConfig field is set. + */ + @java.lang.Override + @java.lang.Deprecated public boolean hasProtectConfig() { + return ((bitField1_ & 0x00000020) != 0); + } + /** + *
+   * Deprecated: Use SecurityPostureConfig instead.
+   * Enable/Disable Protect API features for the cluster.
+   * 
+ * + * optional .google.container.v1beta1.ProtectConfig protect_config = 137 [deprecated = true]; + * @deprecated google.container.v1beta1.Cluster.protect_config is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2270 + * @return The protectConfig. + */ + @java.lang.Override + @java.lang.Deprecated public com.google.container.v1beta1.ProtectConfig getProtectConfig() { + return protectConfig_ == null ? com.google.container.v1beta1.ProtectConfig.getDefaultInstance() : protectConfig_; + } + /** + *
+   * Deprecated: Use SecurityPostureConfig instead.
+   * Enable/Disable Protect API features for the cluster.
+   * 
+ * + * optional .google.container.v1beta1.ProtectConfig protect_config = 137 [deprecated = true]; + */ + @java.lang.Override + @java.lang.Deprecated public com.google.container.v1beta1.ProtectConfigOrBuilder getProtectConfigOrBuilder() { + return protectConfig_ == null ? com.google.container.v1beta1.ProtectConfig.getDefaultInstance() : protectConfig_; + } + + public static final int ETAG_FIELD_NUMBER = 139; + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + /** + *
+   * This checksum is computed by the server based on the value of cluster
+   * fields, and may be sent on update requests to ensure the client has an
+   * up-to-date value before proceeding.
+   * 
+ * + * string etag = 139; + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + /** + *
+   * This checksum is computed by the server based on the value of cluster
+   * fields, and may be sent on update requests to ensure the client has an
+   * up-to-date value before proceeding.
+   * 
+ * + * string etag = 139; + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FLEET_FIELD_NUMBER = 140; + private com.google.container.v1beta1.Fleet fleet_; + /** + *
+   * Fleet information for the cluster.
+   * 
+ * + * .google.container.v1beta1.Fleet fleet = 140; + * @return Whether the fleet field is set. + */ + @java.lang.Override + public boolean hasFleet() { + return ((bitField1_ & 0x00000040) != 0); + } + /** + *
+   * Fleet information for the cluster.
+   * 
+ * + * .google.container.v1beta1.Fleet fleet = 140; + * @return The fleet. + */ + @java.lang.Override + public com.google.container.v1beta1.Fleet getFleet() { + return fleet_ == null ? com.google.container.v1beta1.Fleet.getDefaultInstance() : fleet_; + } + /** + *
+   * Fleet information for the cluster.
+   * 
+ * + * .google.container.v1beta1.Fleet fleet = 140; + */ + @java.lang.Override + public com.google.container.v1beta1.FleetOrBuilder getFleetOrBuilder() { + return fleet_ == null ? com.google.container.v1beta1.Fleet.getDefaultInstance() : fleet_; + } + + public static final int SECURITY_POSTURE_CONFIG_FIELD_NUMBER = 145; + private com.google.container.v1beta1.SecurityPostureConfig securityPostureConfig_; + /** + *
+   * Enable/Disable Security Posture API features for the cluster.
+   * 
+ * + * .google.container.v1beta1.SecurityPostureConfig security_posture_config = 145; + * @return Whether the securityPostureConfig field is set. + */ + @java.lang.Override + public boolean hasSecurityPostureConfig() { + return ((bitField1_ & 0x00000080) != 0); + } + /** + *
+   * Enable/Disable Security Posture API features for the cluster.
+   * 
+ * + * .google.container.v1beta1.SecurityPostureConfig security_posture_config = 145; + * @return The securityPostureConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.SecurityPostureConfig getSecurityPostureConfig() { + return securityPostureConfig_ == null ? com.google.container.v1beta1.SecurityPostureConfig.getDefaultInstance() : securityPostureConfig_; + } + /** + *
+   * Enable/Disable Security Posture API features for the cluster.
+   * 
+ * + * .google.container.v1beta1.SecurityPostureConfig security_posture_config = 145; + */ + @java.lang.Override + public com.google.container.v1beta1.SecurityPostureConfigOrBuilder getSecurityPostureConfigOrBuilder() { + return securityPostureConfig_ == null ? com.google.container.v1beta1.SecurityPostureConfig.getDefaultInstance() : securityPostureConfig_; + } + + public static final int ENTERPRISE_CONFIG_FIELD_NUMBER = 149; + private com.google.container.v1beta1.EnterpriseConfig enterpriseConfig_; + /** + *
+   * GKE Enterprise Configuration.
+   * 
+ * + * .google.container.v1beta1.EnterpriseConfig enterprise_config = 149; + * @return Whether the enterpriseConfig field is set. + */ + @java.lang.Override + public boolean hasEnterpriseConfig() { + return ((bitField1_ & 0x00000100) != 0); + } + /** + *
+   * GKE Enterprise Configuration.
+   * 
+ * + * .google.container.v1beta1.EnterpriseConfig enterprise_config = 149; + * @return The enterpriseConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.EnterpriseConfig getEnterpriseConfig() { + return enterpriseConfig_ == null ? com.google.container.v1beta1.EnterpriseConfig.getDefaultInstance() : enterpriseConfig_; + } + /** + *
+   * GKE Enterprise Configuration.
+   * 
+ * + * .google.container.v1beta1.EnterpriseConfig enterprise_config = 149; + */ + @java.lang.Override + public com.google.container.v1beta1.EnterpriseConfigOrBuilder getEnterpriseConfigOrBuilder() { + return enterpriseConfig_ == null ? com.google.container.v1beta1.EnterpriseConfig.getDefaultInstance() : enterpriseConfig_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + if (initialNodeCount_ != 0) { + output.writeInt32(3, initialNodeCount_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getNodeConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getMasterAuth()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loggingService_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, loggingService_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(monitoringService_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, monitoringService_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterIpv4Cidr_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, clusterIpv4Cidr_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(10, getAddonsConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, subnetwork_); + } + for (int i = 0; i < nodePools_.size(); i++) { + output.writeMessage(12, nodePools_.get(i)); + } + for (int i = 0; i < locations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, locations_.getRaw(i)); + } + if (enableKubernetesAlpha_ != false) { + output.writeBool(14, enableKubernetesAlpha_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetResourceLabels(), + ResourceLabelsDefaultEntryHolder.defaultEntry, + 15); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(labelFingerprint_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, labelFingerprint_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(18, getLegacyAbac()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(19, getNetworkPolicy()); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(20, getIpAllocationPolicy()); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(22, getMasterAuthorizedNetworksConfig()); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(23, getMaintenancePolicy()); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeMessage(24, getBinaryAuthorization()); + } + if (((bitField0_ & 0x00000400) != 0)) { + output.writeMessage(25, getPodSecurityPolicyConfig()); + } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeMessage(26, getAutoscaling()); + } + if (((bitField0_ & 0x00001000) != 0)) { + output.writeMessage(27, getNetworkConfig()); + } + if (privateCluster_ != false) { + output.writeBool(28, privateCluster_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(masterIpv4CidrBlock_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 29, masterIpv4CidrBlock_); + } + if (((bitField0_ & 0x00002000) != 0)) { + output.writeMessage(30, getDefaultMaxPodsConstraint()); + } + if (((bitField0_ & 0x00004000) != 0)) { + output.writeMessage(33, getResourceUsageExportConfig()); + } + if (((bitField0_ & 0x00008000) != 0)) { + output.writeMessage(34, getAuthenticatorGroupsConfig()); + } + if (((bitField0_ & 0x00010000) != 0)) { + output.writeMessage(37, getPrivateClusterConfig()); + } + if (((bitField0_ & 0x40000000) != 0)) { + output.writeMessage(38, getDatabaseEncryption()); + } + if (((bitField0_ & 0x00020000) != 0)) { + output.writeMessage(39, getVerticalPodAutoscaling()); + } + if (((bitField0_ & 0x00040000) != 0)) { + output.writeMessage(40, getShieldedNodes()); + } + if (((bitField0_ & 0x00080000) != 0)) { + output.writeMessage(41, getReleaseChannel()); + } + if (((bitField0_ & 0x00100000) != 0)) { + output.writeMessage(43, getWorkloadIdentityConfig()); + } + if (((bitField0_ & 0x01000000) != 0)) { + output.writeMessage(45, getCostManagementConfig()); + } + if (((bitField0_ & 0x02000000) != 0)) { + output.writeMessage(46, getClusterTelemetry()); + } + if (((bitField0_ & 0x04000000) != 0)) { + output.writeMessage(47, getTpuConfig()); + } + if (((bitField0_ & 0x08000000) != 0)) { + output.writeMessage(49, getNotificationConfig()); + } + if (((bitField0_ & 0x10000000) != 0)) { + output.writeMessage(50, getConfidentialNodes()); + } + if (((bitField0_ & 0x00200000) != 0)) { + output.writeMessage(52, getWorkloadCertificates()); + } + if (((bitField0_ & 0x00800000) != 0)) { + output.writeMessage(53, getWorkloadAltsConfig()); + } + if (((bitField0_ & 0x20000000) != 0)) { + output.writeMessage(54, getIdentityServiceConfig()); + } + if (((bitField0_ & 0x00400000) != 0)) { + output.writeMessage(67, getMeshCertificates()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 100, selfLink_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 101, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 102, endpoint_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(initialClusterVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 103, initialClusterVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentMasterVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 104, currentMasterVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentNodeVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 105, currentNodeVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(createTime_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 106, createTime_); + } + if (status_ != com.google.container.v1beta1.Cluster.Status.STATUS_UNSPECIFIED.getNumber()) { + output.writeEnum(107, status_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 108, statusMessage_); + } + if (nodeIpv4CidrSize_ != 0) { + output.writeInt32(109, nodeIpv4CidrSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesIpv4Cidr_)) { + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expireTime_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 113, expireTime_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 114, location_); + } + if (enableTpu_ != false) { + output.writeBool(115, enableTpu_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tpuIpv4CidrBlock_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 116, tpuIpv4CidrBlock_); + } + for (int i = 0; i < conditions_.size(); i++) { + output.writeMessage(118, conditions_.get(i)); + } + if (((bitField0_ & 0x80000000) != 0)) { + output.writeMessage(124, getMaster()); + } + if (((bitField1_ & 0x00000001) != 0)) { + output.writeMessage(128, getAutopilot()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 129, id_); + } + if (((bitField1_ & 0x00000002) != 0)) { + output.writeMessage(131, getNodePoolDefaults()); + } + if (((bitField1_ & 0x00000004) != 0)) { + output.writeMessage(132, getLoggingConfig()); + } + if (((bitField1_ & 0x00000008) != 0)) { + output.writeMessage(133, getMonitoringConfig()); + } + if (((bitField1_ & 0x00000010) != 0)) { + output.writeMessage(136, getNodePoolAutoConfig()); + } + if (((bitField1_ & 0x00000020) != 0)) { + output.writeMessage(137, getProtectConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 139, etag_); + } + if (((bitField1_ & 0x00000040) != 0)) { + output.writeMessage(140, getFleet()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(143, getEnableK8SBetaApis()); + } + if (((bitField1_ & 0x00000080) != 0)) { + output.writeMessage(145, getSecurityPostureConfig()); + } + if (((bitField1_ & 0x00000100) != 0)) { + output.writeMessage(149, getEnterpriseConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + if (initialNodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, initialNodeCount_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getNodeConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getMasterAuth()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loggingService_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, loggingService_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(monitoringService_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, monitoringService_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterIpv4Cidr_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, clusterIpv4Cidr_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getAddonsConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(labelFingerprint_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, labelFingerprint_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, getLegacyAbac()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, getNetworkPolicy()); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(20, getIpAllocationPolicy()); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(22, getMasterAuthorizedNetworksConfig()); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(23, getMaintenancePolicy()); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(24, getBinaryAuthorization()); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(25, getPodSecurityPolicyConfig()); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(26, getAutoscaling()); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(27, getNetworkConfig()); + } + if (privateCluster_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(28, privateCluster_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(masterIpv4CidrBlock_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, masterIpv4CidrBlock_); + } + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(30, getDefaultMaxPodsConstraint()); + } + if (((bitField0_ & 0x00004000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(33, getResourceUsageExportConfig()); + } + if (((bitField0_ & 0x00008000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(34, getAuthenticatorGroupsConfig()); + } + if (((bitField0_ & 0x00010000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(37, getPrivateClusterConfig()); + } + if (((bitField0_ & 0x40000000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(38, getDatabaseEncryption()); + } + if (((bitField0_ & 0x00020000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(39, getVerticalPodAutoscaling()); + } + if (((bitField0_ & 0x00040000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(40, getShieldedNodes()); + } + if (((bitField0_ & 0x00080000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(41, getReleaseChannel()); + } + if (((bitField0_ & 0x00100000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(43, getWorkloadIdentityConfig()); + } + if (((bitField0_ & 0x01000000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(45, getCostManagementConfig()); + } + if (((bitField0_ & 0x02000000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(46, getClusterTelemetry()); + } + if (((bitField0_ & 0x04000000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(47, getTpuConfig()); + } + if (((bitField0_ & 0x08000000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(49, getNotificationConfig()); + } + if (((bitField0_ & 0x10000000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(50, getConfidentialNodes()); + } + if (((bitField0_ & 0x00200000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(52, getWorkloadCertificates()); + } + if (((bitField0_ & 0x00800000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(53, getWorkloadAltsConfig()); + } + if (((bitField0_ & 0x20000000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(54, getIdentityServiceConfig()); + } + if (((bitField0_ & 0x00400000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(67, getMeshCertificates()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, selfLink_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(101, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(102, endpoint_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(initialClusterVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(103, initialClusterVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentMasterVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(104, currentMasterVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentNodeVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(105, currentNodeVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(createTime_)) { + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(108, statusMessage_); + } + if (nodeIpv4CidrSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(109, nodeIpv4CidrSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesIpv4Cidr_)) { + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expireTime_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(113, expireTime_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(114, location_); + } + if (enableTpu_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(115, enableTpu_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tpuIpv4CidrBlock_)) { + 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 (((bitField0_ & 0x80000000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(124, getMaster()); + } + if (((bitField1_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(128, getAutopilot()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(129, id_); + } + if (((bitField1_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(131, getNodePoolDefaults()); + } + if (((bitField1_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(132, getLoggingConfig()); + } + if (((bitField1_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(133, getMonitoringConfig()); + } + if (((bitField1_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(136, getNodePoolAutoConfig()); + } + if (((bitField1_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(137, getProtectConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(139, etag_); + } + if (((bitField1_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(140, getFleet()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(143, getEnableK8SBetaApis()); + } + if (((bitField1_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(145, getSecurityPostureConfig()); + } + if (((bitField1_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(149, getEnterpriseConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (hasEnableK8SBetaApis() != other.hasEnableK8SBetaApis()) return false; + if (hasEnableK8SBetaApis()) { + if (!getEnableK8SBetaApis() + .equals(other.getEnableK8SBetaApis())) 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 (hasWorkloadCertificates() != other.hasWorkloadCertificates()) return false; + if (hasWorkloadCertificates()) { + if (!getWorkloadCertificates() + .equals(other.getWorkloadCertificates())) return false; + } + if (hasMeshCertificates() != other.hasMeshCertificates()) return false; + if (hasMeshCertificates()) { + if (!getMeshCertificates() + .equals(other.getMeshCertificates())) return false; + } + if (hasWorkloadAltsConfig() != other.hasWorkloadAltsConfig()) return false; + if (hasWorkloadAltsConfig()) { + if (!getWorkloadAltsConfig() + .equals(other.getWorkloadAltsConfig())) return false; + } + if (hasCostManagementConfig() != other.hasCostManagementConfig()) return false; + if (hasCostManagementConfig()) { + if (!getCostManagementConfig() + .equals(other.getCostManagementConfig())) 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 (hasIdentityServiceConfig() != other.hasIdentityServiceConfig()) return false; + if (hasIdentityServiceConfig()) { + if (!getIdentityServiceConfig() + .equals(other.getIdentityServiceConfig())) 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 (hasAutopilot() != other.hasAutopilot()) return false; + if (hasAutopilot()) { + if (!getAutopilot() + .equals(other.getAutopilot())) return false; + } + if (!getId() + .equals(other.getId())) return false; + if (hasNodePoolDefaults() != other.hasNodePoolDefaults()) return false; + if (hasNodePoolDefaults()) { + if (!getNodePoolDefaults() + .equals(other.getNodePoolDefaults())) return false; + } + if (hasLoggingConfig() != other.hasLoggingConfig()) return false; + if (hasLoggingConfig()) { + if (!getLoggingConfig() + .equals(other.getLoggingConfig())) return false; + } + if (hasMonitoringConfig() != other.hasMonitoringConfig()) return false; + if (hasMonitoringConfig()) { + if (!getMonitoringConfig() + .equals(other.getMonitoringConfig())) return false; + } + if (hasNodePoolAutoConfig() != other.hasNodePoolAutoConfig()) return false; + if (hasNodePoolAutoConfig()) { + if (!getNodePoolAutoConfig() + .equals(other.getNodePoolAutoConfig())) return false; + } + if (hasProtectConfig() != other.hasProtectConfig()) return false; + if (hasProtectConfig()) { + if (!getProtectConfig() + .equals(other.getProtectConfig())) return false; + } + if (!getEtag() + .equals(other.getEtag())) return false; + if (hasFleet() != other.hasFleet()) return false; + if (hasFleet()) { + if (!getFleet() + .equals(other.getFleet())) return false; + } + if (hasSecurityPostureConfig() != other.hasSecurityPostureConfig()) return false; + if (hasSecurityPostureConfig()) { + if (!getSecurityPostureConfig() + .equals(other.getSecurityPostureConfig())) return false; + } + if (hasEnterpriseConfig() != other.hasEnterpriseConfig()) return false; + if (hasEnterpriseConfig()) { + if (!getEnterpriseConfig() + .equals(other.getEnterpriseConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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 (hasEnableK8SBetaApis()) { + hash = (37 * hash) + ENABLE_K8S_BETA_APIS_FIELD_NUMBER; + hash = (53 * hash) + getEnableK8SBetaApis().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(); + 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 (hasWorkloadCertificates()) { + hash = (37 * hash) + WORKLOAD_CERTIFICATES_FIELD_NUMBER; + hash = (53 * hash) + getWorkloadCertificates().hashCode(); + } + if (hasMeshCertificates()) { + hash = (37 * hash) + MESH_CERTIFICATES_FIELD_NUMBER; + hash = (53 * hash) + getMeshCertificates().hashCode(); + } + if (hasWorkloadAltsConfig()) { + hash = (37 * hash) + WORKLOAD_ALTS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getWorkloadAltsConfig().hashCode(); + } + if (hasCostManagementConfig()) { + hash = (37 * hash) + COST_MANAGEMENT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getCostManagementConfig().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(); + } + if (hasIdentityServiceConfig()) { + hash = (37 * hash) + IDENTITY_SERVICE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getIdentityServiceConfig().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(); + } + if (hasAutopilot()) { + hash = (37 * hash) + AUTOPILOT_FIELD_NUMBER; + hash = (53 * hash) + getAutopilot().hashCode(); + } + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + if (hasNodePoolDefaults()) { + hash = (37 * hash) + NODE_POOL_DEFAULTS_FIELD_NUMBER; + hash = (53 * hash) + getNodePoolDefaults().hashCode(); + } + if (hasLoggingConfig()) { + hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getLoggingConfig().hashCode(); + } + if (hasMonitoringConfig()) { + hash = (37 * hash) + MONITORING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMonitoringConfig().hashCode(); + } + if (hasNodePoolAutoConfig()) { + hash = (37 * hash) + NODE_POOL_AUTO_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNodePoolAutoConfig().hashCode(); + } + if (hasProtectConfig()) { + hash = (37 * hash) + PROTECT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getProtectConfig().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + if (hasFleet()) { + hash = (37 * hash) + FLEET_FIELD_NUMBER; + hash = (53 * hash) + getFleet().hashCode(); + } + if (hasSecurityPostureConfig()) { + hash = (37 * hash) + SECURITY_POSTURE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSecurityPostureConfig().hashCode(); + } + if (hasEnterpriseConfig()) { + hash = (37 * hash) + ENTERPRISE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getEnterpriseConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().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.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 15: + return internalGetResourceLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + 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) { + getNodeConfigFieldBuilder(); + getMasterAuthFieldBuilder(); + getAddonsConfigFieldBuilder(); + getNodePoolsFieldBuilder(); + getEnableK8SBetaApisFieldBuilder(); + getLegacyAbacFieldBuilder(); + getNetworkPolicyFieldBuilder(); + getIpAllocationPolicyFieldBuilder(); + getMasterAuthorizedNetworksConfigFieldBuilder(); + getMaintenancePolicyFieldBuilder(); + getBinaryAuthorizationFieldBuilder(); + getPodSecurityPolicyConfigFieldBuilder(); + getAutoscalingFieldBuilder(); + getNetworkConfigFieldBuilder(); + getDefaultMaxPodsConstraintFieldBuilder(); + getResourceUsageExportConfigFieldBuilder(); + getAuthenticatorGroupsConfigFieldBuilder(); + getPrivateClusterConfigFieldBuilder(); + getVerticalPodAutoscalingFieldBuilder(); + getShieldedNodesFieldBuilder(); + getReleaseChannelFieldBuilder(); + getWorkloadIdentityConfigFieldBuilder(); + getWorkloadCertificatesFieldBuilder(); + getMeshCertificatesFieldBuilder(); + getWorkloadAltsConfigFieldBuilder(); + getCostManagementConfigFieldBuilder(); + getClusterTelemetryFieldBuilder(); + getTpuConfigFieldBuilder(); + getNotificationConfigFieldBuilder(); + getConfidentialNodesFieldBuilder(); + getIdentityServiceConfigFieldBuilder(); + getDatabaseEncryptionFieldBuilder(); + getConditionsFieldBuilder(); + getMasterFieldBuilder(); + getAutopilotFieldBuilder(); + getNodePoolDefaultsFieldBuilder(); + getLoggingConfigFieldBuilder(); + getMonitoringConfigFieldBuilder(); + getNodePoolAutoConfigFieldBuilder(); + getProtectConfigFieldBuilder(); + getFleetFieldBuilder(); + getSecurityPostureConfigFieldBuilder(); + getEnterpriseConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bitField1_ = 0; + bitField2_ = 0; + name_ = ""; + description_ = ""; + initialNodeCount_ = 0; + nodeConfig_ = null; + if (nodeConfigBuilder_ != null) { + nodeConfigBuilder_.dispose(); + nodeConfigBuilder_ = null; + } + masterAuth_ = null; + if (masterAuthBuilder_ != null) { + masterAuthBuilder_.dispose(); + masterAuthBuilder_ = null; + } + loggingService_ = ""; + monitoringService_ = ""; + network_ = ""; + clusterIpv4Cidr_ = ""; + addonsConfig_ = null; + if (addonsConfigBuilder_ != null) { + addonsConfigBuilder_.dispose(); + addonsConfigBuilder_ = null; + } + subnetwork_ = ""; + if (nodePoolsBuilder_ == null) { + nodePools_ = java.util.Collections.emptyList(); + } else { + nodePools_ = null; + nodePoolsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000800); + locations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + enableKubernetesAlpha_ = false; + enableK8SBetaApis_ = null; + if (enableK8SBetaApisBuilder_ != null) { + enableK8SBetaApisBuilder_.dispose(); + enableK8SBetaApisBuilder_ = null; + } + internalGetMutableResourceLabels().clear(); + labelFingerprint_ = ""; + legacyAbac_ = null; + if (legacyAbacBuilder_ != null) { + legacyAbacBuilder_.dispose(); + legacyAbacBuilder_ = null; + } + networkPolicy_ = null; + if (networkPolicyBuilder_ != null) { + networkPolicyBuilder_.dispose(); + networkPolicyBuilder_ = null; + } + ipAllocationPolicy_ = null; + if (ipAllocationPolicyBuilder_ != null) { + ipAllocationPolicyBuilder_.dispose(); + ipAllocationPolicyBuilder_ = null; + } + masterAuthorizedNetworksConfig_ = null; + if (masterAuthorizedNetworksConfigBuilder_ != null) { + masterAuthorizedNetworksConfigBuilder_.dispose(); + masterAuthorizedNetworksConfigBuilder_ = null; + } + maintenancePolicy_ = null; + if (maintenancePolicyBuilder_ != null) { + maintenancePolicyBuilder_.dispose(); + maintenancePolicyBuilder_ = null; + } + binaryAuthorization_ = null; + if (binaryAuthorizationBuilder_ != null) { + binaryAuthorizationBuilder_.dispose(); + binaryAuthorizationBuilder_ = null; + } + podSecurityPolicyConfig_ = null; + if (podSecurityPolicyConfigBuilder_ != null) { + podSecurityPolicyConfigBuilder_.dispose(); + podSecurityPolicyConfigBuilder_ = null; + } + autoscaling_ = null; + if (autoscalingBuilder_ != null) { + autoscalingBuilder_.dispose(); + autoscalingBuilder_ = null; + } + networkConfig_ = null; + if (networkConfigBuilder_ != null) { + networkConfigBuilder_.dispose(); + networkConfigBuilder_ = null; + } + privateCluster_ = false; + masterIpv4CidrBlock_ = ""; + defaultMaxPodsConstraint_ = null; + if (defaultMaxPodsConstraintBuilder_ != null) { + defaultMaxPodsConstraintBuilder_.dispose(); + defaultMaxPodsConstraintBuilder_ = null; + } + resourceUsageExportConfig_ = null; + if (resourceUsageExportConfigBuilder_ != null) { + resourceUsageExportConfigBuilder_.dispose(); + resourceUsageExportConfigBuilder_ = null; + } + authenticatorGroupsConfig_ = null; + if (authenticatorGroupsConfigBuilder_ != null) { + authenticatorGroupsConfigBuilder_.dispose(); + authenticatorGroupsConfigBuilder_ = null; + } + privateClusterConfig_ = null; + if (privateClusterConfigBuilder_ != null) { + privateClusterConfigBuilder_.dispose(); + privateClusterConfigBuilder_ = null; + } + verticalPodAutoscaling_ = null; + if (verticalPodAutoscalingBuilder_ != null) { + verticalPodAutoscalingBuilder_.dispose(); + verticalPodAutoscalingBuilder_ = null; + } + shieldedNodes_ = null; + if (shieldedNodesBuilder_ != null) { + shieldedNodesBuilder_.dispose(); + shieldedNodesBuilder_ = null; + } + releaseChannel_ = null; + if (releaseChannelBuilder_ != null) { + releaseChannelBuilder_.dispose(); + releaseChannelBuilder_ = null; + } + workloadIdentityConfig_ = null; + if (workloadIdentityConfigBuilder_ != null) { + workloadIdentityConfigBuilder_.dispose(); + workloadIdentityConfigBuilder_ = null; + } + workloadCertificates_ = null; + if (workloadCertificatesBuilder_ != null) { + workloadCertificatesBuilder_.dispose(); + workloadCertificatesBuilder_ = null; + } + meshCertificates_ = null; + if (meshCertificatesBuilder_ != null) { + meshCertificatesBuilder_.dispose(); + meshCertificatesBuilder_ = null; + } + workloadAltsConfig_ = null; + if (workloadAltsConfigBuilder_ != null) { + workloadAltsConfigBuilder_.dispose(); + workloadAltsConfigBuilder_ = null; + } + costManagementConfig_ = null; + if (costManagementConfigBuilder_ != null) { + costManagementConfigBuilder_.dispose(); + costManagementConfigBuilder_ = null; + } + clusterTelemetry_ = null; + if (clusterTelemetryBuilder_ != null) { + clusterTelemetryBuilder_.dispose(); + clusterTelemetryBuilder_ = null; + } + tpuConfig_ = null; + if (tpuConfigBuilder_ != null) { + tpuConfigBuilder_.dispose(); + tpuConfigBuilder_ = null; + } + notificationConfig_ = null; + if (notificationConfigBuilder_ != null) { + notificationConfigBuilder_.dispose(); + notificationConfigBuilder_ = null; + } + confidentialNodes_ = null; + if (confidentialNodesBuilder_ != null) { + confidentialNodesBuilder_.dispose(); + confidentialNodesBuilder_ = null; + } + identityServiceConfig_ = null; + if (identityServiceConfigBuilder_ != null) { + identityServiceConfigBuilder_.dispose(); + identityServiceConfigBuilder_ = null; + } + selfLink_ = ""; + zone_ = ""; + endpoint_ = ""; + initialClusterVersion_ = ""; + currentMasterVersion_ = ""; + currentNodeVersion_ = ""; + createTime_ = ""; + status_ = 0; + statusMessage_ = ""; + nodeIpv4CidrSize_ = 0; + servicesIpv4Cidr_ = ""; + instanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + currentNodeCount_ = 0; + expireTime_ = ""; + location_ = ""; + enableTpu_ = false; + tpuIpv4CidrBlock_ = ""; + databaseEncryption_ = null; + if (databaseEncryptionBuilder_ != null) { + databaseEncryptionBuilder_.dispose(); + databaseEncryptionBuilder_ = null; + } + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + } else { + conditions_ = null; + conditionsBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x80000000); + master_ = null; + if (masterBuilder_ != null) { + masterBuilder_.dispose(); + masterBuilder_ = null; + } + autopilot_ = null; + if (autopilotBuilder_ != null) { + autopilotBuilder_.dispose(); + autopilotBuilder_ = null; + } + id_ = ""; + nodePoolDefaults_ = null; + if (nodePoolDefaultsBuilder_ != null) { + nodePoolDefaultsBuilder_.dispose(); + nodePoolDefaultsBuilder_ = null; + } + loggingConfig_ = null; + if (loggingConfigBuilder_ != null) { + loggingConfigBuilder_.dispose(); + loggingConfigBuilder_ = null; + } + monitoringConfig_ = null; + if (monitoringConfigBuilder_ != null) { + monitoringConfigBuilder_.dispose(); + monitoringConfigBuilder_ = null; + } + nodePoolAutoConfig_ = null; + if (nodePoolAutoConfigBuilder_ != null) { + nodePoolAutoConfigBuilder_.dispose(); + nodePoolAutoConfigBuilder_ = null; + } + protectConfig_ = null; + if (protectConfigBuilder_ != null) { + protectConfigBuilder_.dispose(); + protectConfigBuilder_ = null; + } + etag_ = ""; + fleet_ = null; + if (fleetBuilder_ != null) { + fleetBuilder_.dispose(); + fleetBuilder_ = null; + } + securityPostureConfig_ = null; + if (securityPostureConfigBuilder_ != null) { + securityPostureConfigBuilder_.dispose(); + securityPostureConfigBuilder_ = null; + } + enterpriseConfig_ = null; + if (enterpriseConfigBuilder_ != null) { + enterpriseConfigBuilder_.dispose(); + enterpriseConfigBuilder_ = 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); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + if (bitField1_ != 0) { buildPartial1(result); } + if (bitField2_ != 0) { buildPartial2(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1beta1.Cluster result) { + if (nodePoolsBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0)) { + nodePools_ = java.util.Collections.unmodifiableList(nodePools_); + bitField0_ = (bitField0_ & ~0x00000800); + } + result.nodePools_ = nodePools_; + } else { + result.nodePools_ = nodePoolsBuilder_.build(); + } + if (conditionsBuilder_ == null) { + if (((bitField1_ & 0x80000000) != 0)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + bitField1_ = (bitField1_ & ~0x80000000); + } + result.conditions_ = conditions_; + } else { + result.conditions_ = conditionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1beta1.Cluster result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.initialNodeCount_ = initialNodeCount_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.nodeConfig_ = nodeConfigBuilder_ == null + ? nodeConfig_ + : nodeConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.masterAuth_ = masterAuthBuilder_ == null + ? masterAuth_ + : masterAuthBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.loggingService_ = loggingService_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.monitoringService_ = monitoringService_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.network_ = network_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.clusterIpv4Cidr_ = clusterIpv4Cidr_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.addonsConfig_ = addonsConfigBuilder_ == null + ? addonsConfig_ + : addonsConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.subnetwork_ = subnetwork_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + locations_.makeImmutable(); + result.locations_ = locations_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.enableKubernetesAlpha_ = enableKubernetesAlpha_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.enableK8SBetaApis_ = enableK8SBetaApisBuilder_ == null + ? enableK8SBetaApis_ + : enableK8SBetaApisBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.resourceLabels_ = internalGetResourceLabels(); + result.resourceLabels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.labelFingerprint_ = labelFingerprint_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.legacyAbac_ = legacyAbacBuilder_ == null + ? legacyAbac_ + : legacyAbacBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.networkPolicy_ = networkPolicyBuilder_ == null + ? networkPolicy_ + : networkPolicyBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.ipAllocationPolicy_ = ipAllocationPolicyBuilder_ == null + ? ipAllocationPolicy_ + : ipAllocationPolicyBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.masterAuthorizedNetworksConfig_ = masterAuthorizedNetworksConfigBuilder_ == null + ? masterAuthorizedNetworksConfig_ + : masterAuthorizedNetworksConfigBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.maintenancePolicy_ = maintenancePolicyBuilder_ == null + ? maintenancePolicy_ + : maintenancePolicyBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.binaryAuthorization_ = binaryAuthorizationBuilder_ == null + ? binaryAuthorization_ + : binaryAuthorizationBuilder_.build(); + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.podSecurityPolicyConfig_ = podSecurityPolicyConfigBuilder_ == null + ? podSecurityPolicyConfig_ + : podSecurityPolicyConfigBuilder_.build(); + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x01000000) != 0)) { + result.autoscaling_ = autoscalingBuilder_ == null + ? autoscaling_ + : autoscalingBuilder_.build(); + to_bitField0_ |= 0x00000800; + } + if (((from_bitField0_ & 0x02000000) != 0)) { + result.networkConfig_ = networkConfigBuilder_ == null + ? networkConfig_ + : networkConfigBuilder_.build(); + to_bitField0_ |= 0x00001000; + } + if (((from_bitField0_ & 0x04000000) != 0)) { + result.privateCluster_ = privateCluster_; + } + if (((from_bitField0_ & 0x08000000) != 0)) { + result.masterIpv4CidrBlock_ = masterIpv4CidrBlock_; + } + if (((from_bitField0_ & 0x10000000) != 0)) { + result.defaultMaxPodsConstraint_ = defaultMaxPodsConstraintBuilder_ == null + ? defaultMaxPodsConstraint_ + : defaultMaxPodsConstraintBuilder_.build(); + to_bitField0_ |= 0x00002000; + } + if (((from_bitField0_ & 0x20000000) != 0)) { + result.resourceUsageExportConfig_ = resourceUsageExportConfigBuilder_ == null + ? resourceUsageExportConfig_ + : resourceUsageExportConfigBuilder_.build(); + to_bitField0_ |= 0x00004000; + } + if (((from_bitField0_ & 0x40000000) != 0)) { + result.authenticatorGroupsConfig_ = authenticatorGroupsConfigBuilder_ == null + ? authenticatorGroupsConfig_ + : authenticatorGroupsConfigBuilder_.build(); + to_bitField0_ |= 0x00008000; + } + if (((from_bitField0_ & 0x80000000) != 0)) { + result.privateClusterConfig_ = privateClusterConfigBuilder_ == null + ? privateClusterConfig_ + : privateClusterConfigBuilder_.build(); + to_bitField0_ |= 0x00010000; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartial1(com.google.container.v1beta1.Cluster result) { + int from_bitField1_ = bitField1_; + int to_bitField0_ = 0; + if (((from_bitField1_ & 0x00000001) != 0)) { + result.verticalPodAutoscaling_ = verticalPodAutoscalingBuilder_ == null + ? verticalPodAutoscaling_ + : verticalPodAutoscalingBuilder_.build(); + to_bitField0_ |= 0x00020000; + } + if (((from_bitField1_ & 0x00000002) != 0)) { + result.shieldedNodes_ = shieldedNodesBuilder_ == null + ? shieldedNodes_ + : shieldedNodesBuilder_.build(); + to_bitField0_ |= 0x00040000; + } + if (((from_bitField1_ & 0x00000004) != 0)) { + result.releaseChannel_ = releaseChannelBuilder_ == null + ? releaseChannel_ + : releaseChannelBuilder_.build(); + to_bitField0_ |= 0x00080000; + } + if (((from_bitField1_ & 0x00000008) != 0)) { + result.workloadIdentityConfig_ = workloadIdentityConfigBuilder_ == null + ? workloadIdentityConfig_ + : workloadIdentityConfigBuilder_.build(); + to_bitField0_ |= 0x00100000; + } + if (((from_bitField1_ & 0x00000010) != 0)) { + result.workloadCertificates_ = workloadCertificatesBuilder_ == null + ? workloadCertificates_ + : workloadCertificatesBuilder_.build(); + to_bitField0_ |= 0x00200000; + } + if (((from_bitField1_ & 0x00000020) != 0)) { + result.meshCertificates_ = meshCertificatesBuilder_ == null + ? meshCertificates_ + : meshCertificatesBuilder_.build(); + to_bitField0_ |= 0x00400000; + } + if (((from_bitField1_ & 0x00000040) != 0)) { + result.workloadAltsConfig_ = workloadAltsConfigBuilder_ == null + ? workloadAltsConfig_ + : workloadAltsConfigBuilder_.build(); + to_bitField0_ |= 0x00800000; + } + if (((from_bitField1_ & 0x00000080) != 0)) { + result.costManagementConfig_ = costManagementConfigBuilder_ == null + ? costManagementConfig_ + : costManagementConfigBuilder_.build(); + to_bitField0_ |= 0x01000000; + } + if (((from_bitField1_ & 0x00000100) != 0)) { + result.clusterTelemetry_ = clusterTelemetryBuilder_ == null + ? clusterTelemetry_ + : clusterTelemetryBuilder_.build(); + to_bitField0_ |= 0x02000000; + } + if (((from_bitField1_ & 0x00000200) != 0)) { + result.tpuConfig_ = tpuConfigBuilder_ == null + ? tpuConfig_ + : tpuConfigBuilder_.build(); + to_bitField0_ |= 0x04000000; + } + if (((from_bitField1_ & 0x00000400) != 0)) { + result.notificationConfig_ = notificationConfigBuilder_ == null + ? notificationConfig_ + : notificationConfigBuilder_.build(); + to_bitField0_ |= 0x08000000; + } + if (((from_bitField1_ & 0x00000800) != 0)) { + result.confidentialNodes_ = confidentialNodesBuilder_ == null + ? confidentialNodes_ + : confidentialNodesBuilder_.build(); + to_bitField0_ |= 0x10000000; + } + if (((from_bitField1_ & 0x00001000) != 0)) { + result.identityServiceConfig_ = identityServiceConfigBuilder_ == null + ? identityServiceConfig_ + : identityServiceConfigBuilder_.build(); + to_bitField0_ |= 0x20000000; + } + if (((from_bitField1_ & 0x00002000) != 0)) { + result.selfLink_ = selfLink_; + } + if (((from_bitField1_ & 0x00004000) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField1_ & 0x00008000) != 0)) { + result.endpoint_ = endpoint_; + } + if (((from_bitField1_ & 0x00010000) != 0)) { + result.initialClusterVersion_ = initialClusterVersion_; + } + if (((from_bitField1_ & 0x00020000) != 0)) { + result.currentMasterVersion_ = currentMasterVersion_; + } + if (((from_bitField1_ & 0x00040000) != 0)) { + result.currentNodeVersion_ = currentNodeVersion_; + } + if (((from_bitField1_ & 0x00080000) != 0)) { + result.createTime_ = createTime_; + } + if (((from_bitField1_ & 0x00100000) != 0)) { + result.status_ = status_; + } + if (((from_bitField1_ & 0x00200000) != 0)) { + result.statusMessage_ = statusMessage_; + } + if (((from_bitField1_ & 0x00400000) != 0)) { + result.nodeIpv4CidrSize_ = nodeIpv4CidrSize_; + } + if (((from_bitField1_ & 0x00800000) != 0)) { + result.servicesIpv4Cidr_ = servicesIpv4Cidr_; + } + if (((from_bitField1_ & 0x01000000) != 0)) { + instanceGroupUrls_.makeImmutable(); + result.instanceGroupUrls_ = instanceGroupUrls_; + } + if (((from_bitField1_ & 0x02000000) != 0)) { + result.currentNodeCount_ = currentNodeCount_; + } + if (((from_bitField1_ & 0x04000000) != 0)) { + result.expireTime_ = expireTime_; + } + if (((from_bitField1_ & 0x08000000) != 0)) { + result.location_ = location_; + } + if (((from_bitField1_ & 0x10000000) != 0)) { + result.enableTpu_ = enableTpu_; + } + if (((from_bitField1_ & 0x20000000) != 0)) { + result.tpuIpv4CidrBlock_ = tpuIpv4CidrBlock_; + } + if (((from_bitField1_ & 0x40000000) != 0)) { + result.databaseEncryption_ = databaseEncryptionBuilder_ == null + ? databaseEncryption_ + : databaseEncryptionBuilder_.build(); + to_bitField0_ |= 0x40000000; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartial2(com.google.container.v1beta1.Cluster result) { + int from_bitField2_ = bitField2_; + int to_bitField0_ = 0; + if (((from_bitField2_ & 0x00000001) != 0)) { + result.master_ = masterBuilder_ == null + ? master_ + : masterBuilder_.build(); + to_bitField0_ |= 0x80000000; + } + int to_bitField1_ = 0; + if (((from_bitField2_ & 0x00000002) != 0)) { + result.autopilot_ = autopilotBuilder_ == null + ? autopilot_ + : autopilotBuilder_.build(); + to_bitField1_ |= 0x00000001; + } + if (((from_bitField2_ & 0x00000004) != 0)) { + result.id_ = id_; + } + if (((from_bitField2_ & 0x00000008) != 0)) { + result.nodePoolDefaults_ = nodePoolDefaultsBuilder_ == null + ? nodePoolDefaults_ + : nodePoolDefaultsBuilder_.build(); + to_bitField1_ |= 0x00000002; + } + if (((from_bitField2_ & 0x00000010) != 0)) { + result.loggingConfig_ = loggingConfigBuilder_ == null + ? loggingConfig_ + : loggingConfigBuilder_.build(); + to_bitField1_ |= 0x00000004; + } + if (((from_bitField2_ & 0x00000020) != 0)) { + result.monitoringConfig_ = monitoringConfigBuilder_ == null + ? monitoringConfig_ + : monitoringConfigBuilder_.build(); + to_bitField1_ |= 0x00000008; + } + if (((from_bitField2_ & 0x00000040) != 0)) { + result.nodePoolAutoConfig_ = nodePoolAutoConfigBuilder_ == null + ? nodePoolAutoConfig_ + : nodePoolAutoConfigBuilder_.build(); + to_bitField1_ |= 0x00000010; + } + if (((from_bitField2_ & 0x00000080) != 0)) { + result.protectConfig_ = protectConfigBuilder_ == null + ? protectConfig_ + : protectConfigBuilder_.build(); + to_bitField1_ |= 0x00000020; + } + if (((from_bitField2_ & 0x00000100) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField2_ & 0x00000200) != 0)) { + result.fleet_ = fleetBuilder_ == null + ? fleet_ + : fleetBuilder_.build(); + to_bitField1_ |= 0x00000040; + } + if (((from_bitField2_ & 0x00000400) != 0)) { + result.securityPostureConfig_ = securityPostureConfigBuilder_ == null + ? securityPostureConfig_ + : securityPostureConfigBuilder_.build(); + to_bitField1_ |= 0x00000080; + } + if (((from_bitField2_ & 0x00000800) != 0)) { + result.enterpriseConfig_ = enterpriseConfigBuilder_ == null + ? enterpriseConfig_ + : enterpriseConfigBuilder_.build(); + to_bitField1_ |= 0x00000100; + } + result.bitField0_ |= to_bitField0_; + result.bitField1_ |= to_bitField1_; + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + 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_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getMonitoringService().isEmpty()) { + monitoringService_ = other.monitoringService_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getClusterIpv4Cidr().isEmpty()) { + clusterIpv4Cidr_ = other.clusterIpv4Cidr_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.hasAddonsConfig()) { + mergeAddonsConfig(other.getAddonsConfig()); + } + if (!other.getSubnetwork().isEmpty()) { + subnetwork_ = other.subnetwork_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (nodePoolsBuilder_ == null) { + if (!other.nodePools_.isEmpty()) { + if (nodePools_.isEmpty()) { + nodePools_ = other.nodePools_; + bitField0_ = (bitField0_ & ~0x00000800); + } else { + ensureNodePoolsIsMutable(); + nodePools_.addAll(other.nodePools_); + } + onChanged(); + } + } else { + if (!other.nodePools_.isEmpty()) { + if (nodePoolsBuilder_.isEmpty()) { + nodePoolsBuilder_.dispose(); + nodePoolsBuilder_ = null; + nodePools_ = other.nodePools_; + bitField0_ = (bitField0_ & ~0x00000800); + nodePoolsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNodePoolsFieldBuilder() : null; + } else { + nodePoolsBuilder_.addAllMessages(other.nodePools_); + } + } + } + if (!other.locations_.isEmpty()) { + if (locations_.isEmpty()) { + locations_ = other.locations_; + bitField0_ |= 0x00001000; + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } + if (other.getEnableKubernetesAlpha() != false) { + setEnableKubernetesAlpha(other.getEnableKubernetesAlpha()); + } + if (other.hasEnableK8SBetaApis()) { + mergeEnableK8SBetaApis(other.getEnableK8SBetaApis()); + } + internalGetMutableResourceLabels().mergeFrom( + other.internalGetResourceLabels()); + bitField0_ |= 0x00008000; + if (!other.getLabelFingerprint().isEmpty()) { + labelFingerprint_ = other.labelFingerprint_; + bitField0_ |= 0x00010000; + 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_; + bitField0_ |= 0x08000000; + 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.hasWorkloadCertificates()) { + mergeWorkloadCertificates(other.getWorkloadCertificates()); + } + if (other.hasMeshCertificates()) { + mergeMeshCertificates(other.getMeshCertificates()); + } + if (other.hasWorkloadAltsConfig()) { + mergeWorkloadAltsConfig(other.getWorkloadAltsConfig()); + } + if (other.hasCostManagementConfig()) { + mergeCostManagementConfig(other.getCostManagementConfig()); + } + 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.hasIdentityServiceConfig()) { + mergeIdentityServiceConfig(other.getIdentityServiceConfig()); + } + if (!other.getSelfLink().isEmpty()) { + selfLink_ = other.selfLink_; + bitField1_ |= 0x00002000; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField1_ |= 0x00004000; + onChanged(); + } + if (!other.getEndpoint().isEmpty()) { + endpoint_ = other.endpoint_; + bitField1_ |= 0x00008000; + onChanged(); + } + if (!other.getInitialClusterVersion().isEmpty()) { + initialClusterVersion_ = other.initialClusterVersion_; + bitField1_ |= 0x00010000; + onChanged(); + } + if (!other.getCurrentMasterVersion().isEmpty()) { + currentMasterVersion_ = other.currentMasterVersion_; + bitField1_ |= 0x00020000; + onChanged(); + } + if (!other.getCurrentNodeVersion().isEmpty()) { + currentNodeVersion_ = other.currentNodeVersion_; + bitField1_ |= 0x00040000; + onChanged(); + } + if (!other.getCreateTime().isEmpty()) { + createTime_ = other.createTime_; + bitField1_ |= 0x00080000; + onChanged(); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + bitField1_ |= 0x00200000; + onChanged(); + } + if (other.getNodeIpv4CidrSize() != 0) { + setNodeIpv4CidrSize(other.getNodeIpv4CidrSize()); + } + if (!other.getServicesIpv4Cidr().isEmpty()) { + servicesIpv4Cidr_ = other.servicesIpv4Cidr_; + bitField1_ |= 0x00800000; + onChanged(); + } + if (!other.instanceGroupUrls_.isEmpty()) { + if (instanceGroupUrls_.isEmpty()) { + instanceGroupUrls_ = other.instanceGroupUrls_; + bitField1_ |= 0x01000000; + } else { + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.addAll(other.instanceGroupUrls_); + } + onChanged(); + } + if (other.getCurrentNodeCount() != 0) { + setCurrentNodeCount(other.getCurrentNodeCount()); + } + if (!other.getExpireTime().isEmpty()) { + expireTime_ = other.expireTime_; + bitField1_ |= 0x04000000; + onChanged(); + } + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + bitField1_ |= 0x08000000; + onChanged(); + } + if (other.getEnableTpu() != false) { + setEnableTpu(other.getEnableTpu()); + } + if (!other.getTpuIpv4CidrBlock().isEmpty()) { + tpuIpv4CidrBlock_ = other.tpuIpv4CidrBlock_; + bitField1_ |= 0x20000000; + onChanged(); + } + if (other.hasDatabaseEncryption()) { + mergeDatabaseEncryption(other.getDatabaseEncryption()); + } + if (conditionsBuilder_ == null) { + if (!other.conditions_.isEmpty()) { + if (conditions_.isEmpty()) { + conditions_ = other.conditions_; + bitField1_ = (bitField1_ & ~0x80000000); + } else { + ensureConditionsIsMutable(); + conditions_.addAll(other.conditions_); + } + onChanged(); + } + } else { + if (!other.conditions_.isEmpty()) { + if (conditionsBuilder_.isEmpty()) { + conditionsBuilder_.dispose(); + conditionsBuilder_ = null; + conditions_ = other.conditions_; + bitField1_ = (bitField1_ & ~0x80000000); + conditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConditionsFieldBuilder() : null; + } else { + conditionsBuilder_.addAllMessages(other.conditions_); + } + } + } + if (other.hasMaster()) { + mergeMaster(other.getMaster()); + } + if (other.hasAutopilot()) { + mergeAutopilot(other.getAutopilot()); + } + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField2_ |= 0x00000004; + onChanged(); + } + if (other.hasNodePoolDefaults()) { + mergeNodePoolDefaults(other.getNodePoolDefaults()); + } + if (other.hasLoggingConfig()) { + mergeLoggingConfig(other.getLoggingConfig()); + } + if (other.hasMonitoringConfig()) { + mergeMonitoringConfig(other.getMonitoringConfig()); + } + if (other.hasNodePoolAutoConfig()) { + mergeNodePoolAutoConfig(other.getNodePoolAutoConfig()); + } + if (other.hasProtectConfig()) { + mergeProtectConfig(other.getProtectConfig()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField2_ |= 0x00000100; + onChanged(); + } + if (other.hasFleet()) { + mergeFleet(other.getFleet()); + } + if (other.hasSecurityPostureConfig()) { + mergeSecurityPostureConfig(other.getSecurityPostureConfig()); + } + if (other.hasEnterpriseConfig()) { + mergeEnterpriseConfig(other.getEnterpriseConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + initialNodeCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + input.readMessage( + getNodeConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getMasterAuthFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + loggingService_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + monitoringService_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + network_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: { + clusterIpv4Cidr_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: { + input.readMessage( + getAddonsConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: { + subnetwork_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: { + com.google.container.v1beta1.NodePool m = + input.readMessage( + com.google.container.v1beta1.NodePool.parser(), + extensionRegistry); + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + nodePools_.add(m); + } else { + nodePoolsBuilder_.addMessage(m); + } + break; + } // case 98 + case 106: { + java.lang.String s = input.readStringRequireUtf8(); + ensureLocationsIsMutable(); + locations_.add(s); + break; + } // case 106 + case 112: { + enableKubernetesAlpha_ = input.readBool(); + bitField0_ |= 0x00002000; + break; + } // case 112 + case 122: { + com.google.protobuf.MapEntry + resourceLabels__ = input.readMessage( + ResourceLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableResourceLabels().getMutableMap().put( + resourceLabels__.getKey(), resourceLabels__.getValue()); + bitField0_ |= 0x00008000; + break; + } // case 122 + case 130: { + labelFingerprint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00010000; + break; + } // case 130 + case 146: { + input.readMessage( + getLegacyAbacFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 146 + case 154: { + input.readMessage( + getNetworkPolicyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00040000; + break; + } // case 154 + case 162: { + input.readMessage( + getIpAllocationPolicyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00080000; + break; + } // case 162 + case 178: { + input.readMessage( + getMasterAuthorizedNetworksConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00100000; + break; + } // case 178 + case 186: { + input.readMessage( + getMaintenancePolicyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00200000; + break; + } // case 186 + case 194: { + input.readMessage( + getBinaryAuthorizationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00400000; + break; + } // case 194 + case 202: { + input.readMessage( + getPodSecurityPolicyConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00800000; + break; + } // case 202 + case 210: { + input.readMessage( + getAutoscalingFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x01000000; + break; + } // case 210 + case 218: { + input.readMessage( + getNetworkConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x02000000; + break; + } // case 218 + case 224: { + privateCluster_ = input.readBool(); + bitField0_ |= 0x04000000; + break; + } // case 224 + case 234: { + masterIpv4CidrBlock_ = input.readStringRequireUtf8(); + bitField0_ |= 0x08000000; + break; + } // case 234 + case 242: { + input.readMessage( + getDefaultMaxPodsConstraintFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x10000000; + break; + } // case 242 + case 266: { + input.readMessage( + getResourceUsageExportConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x20000000; + break; + } // case 266 + case 274: { + input.readMessage( + getAuthenticatorGroupsConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x40000000; + break; + } // case 274 + case 298: { + input.readMessage( + getPrivateClusterConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x80000000; + break; + } // case 298 + case 306: { + input.readMessage( + getDatabaseEncryptionFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x40000000; + break; + } // case 306 + case 314: { + input.readMessage( + getVerticalPodAutoscalingFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000001; + break; + } // case 314 + case 322: { + input.readMessage( + getShieldedNodesFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000002; + break; + } // case 322 + case 330: { + input.readMessage( + getReleaseChannelFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000004; + break; + } // case 330 + case 346: { + input.readMessage( + getWorkloadIdentityConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000008; + break; + } // case 346 + case 362: { + input.readMessage( + getCostManagementConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000080; + break; + } // case 362 + case 370: { + input.readMessage( + getClusterTelemetryFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000100; + break; + } // case 370 + case 378: { + input.readMessage( + getTpuConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000200; + break; + } // case 378 + case 394: { + input.readMessage( + getNotificationConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000400; + break; + } // case 394 + case 402: { + input.readMessage( + getConfidentialNodesFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000800; + break; + } // case 402 + case 418: { + input.readMessage( + getWorkloadCertificatesFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000010; + break; + } // case 418 + case 426: { + input.readMessage( + getWorkloadAltsConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000040; + break; + } // case 426 + case 434: { + input.readMessage( + getIdentityServiceConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00001000; + break; + } // case 434 + case 538: { + input.readMessage( + getMeshCertificatesFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000020; + break; + } // case 538 + case 802: { + selfLink_ = input.readStringRequireUtf8(); + bitField1_ |= 0x00002000; + break; + } // case 802 + case 810: { + zone_ = input.readStringRequireUtf8(); + bitField1_ |= 0x00004000; + break; + } // case 810 + case 818: { + endpoint_ = input.readStringRequireUtf8(); + bitField1_ |= 0x00008000; + break; + } // case 818 + case 826: { + initialClusterVersion_ = input.readStringRequireUtf8(); + bitField1_ |= 0x00010000; + break; + } // case 826 + case 834: { + currentMasterVersion_ = input.readStringRequireUtf8(); + bitField1_ |= 0x00020000; + break; + } // case 834 + case 842: { + currentNodeVersion_ = input.readStringRequireUtf8(); + bitField1_ |= 0x00040000; + break; + } // case 842 + case 850: { + createTime_ = input.readStringRequireUtf8(); + bitField1_ |= 0x00080000; + break; + } // case 850 + case 856: { + status_ = input.readEnum(); + bitField1_ |= 0x00100000; + break; + } // case 856 + case 866: { + statusMessage_ = input.readStringRequireUtf8(); + bitField1_ |= 0x00200000; + break; + } // case 866 + case 872: { + nodeIpv4CidrSize_ = input.readInt32(); + bitField1_ |= 0x00400000; + break; + } // case 872 + case 882: { + servicesIpv4Cidr_ = input.readStringRequireUtf8(); + bitField1_ |= 0x00800000; + break; + } // case 882 + case 890: { + java.lang.String s = input.readStringRequireUtf8(); + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.add(s); + break; + } // case 890 + case 896: { + currentNodeCount_ = input.readInt32(); + bitField1_ |= 0x02000000; + break; + } // case 896 + case 906: { + expireTime_ = input.readStringRequireUtf8(); + bitField1_ |= 0x04000000; + break; + } // case 906 + case 914: { + location_ = input.readStringRequireUtf8(); + bitField1_ |= 0x08000000; + break; + } // case 914 + case 920: { + enableTpu_ = input.readBool(); + bitField1_ |= 0x10000000; + break; + } // case 920 + case 930: { + tpuIpv4CidrBlock_ = input.readStringRequireUtf8(); + bitField1_ |= 0x20000000; + break; + } // case 930 + case 946: { + com.google.container.v1beta1.StatusCondition m = + input.readMessage( + com.google.container.v1beta1.StatusCondition.parser(), + extensionRegistry); + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(m); + } else { + conditionsBuilder_.addMessage(m); + } + break; + } // case 946 + case 994: { + input.readMessage( + getMasterFieldBuilder().getBuilder(), + extensionRegistry); + bitField2_ |= 0x00000001; + break; + } // case 994 + case 1026: { + input.readMessage( + getAutopilotFieldBuilder().getBuilder(), + extensionRegistry); + bitField2_ |= 0x00000002; + break; + } // case 1026 + case 1034: { + id_ = input.readStringRequireUtf8(); + bitField2_ |= 0x00000004; + break; + } // case 1034 + case 1050: { + input.readMessage( + getNodePoolDefaultsFieldBuilder().getBuilder(), + extensionRegistry); + bitField2_ |= 0x00000008; + break; + } // case 1050 + case 1058: { + input.readMessage( + getLoggingConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField2_ |= 0x00000010; + break; + } // case 1058 + case 1066: { + input.readMessage( + getMonitoringConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField2_ |= 0x00000020; + break; + } // case 1066 + case 1090: { + input.readMessage( + getNodePoolAutoConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField2_ |= 0x00000040; + break; + } // case 1090 + case 1098: { + input.readMessage( + getProtectConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField2_ |= 0x00000080; + break; + } // case 1098 + case 1114: { + etag_ = input.readStringRequireUtf8(); + bitField2_ |= 0x00000100; + break; + } // case 1114 + case 1122: { + input.readMessage( + getFleetFieldBuilder().getBuilder(), + extensionRegistry); + bitField2_ |= 0x00000200; + break; + } // case 1122 + case 1146: { + input.readMessage( + getEnableK8SBetaApisFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 1146 + case 1162: { + input.readMessage( + getSecurityPostureConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField2_ |= 0x00000400; + break; + } // case 1162 + case 1194: { + input.readMessage( + getEnterpriseConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField2_ |= 0x00000800; + break; + } // case 1194 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + private int bitField1_; + private int bitField2_; + + 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; + bitField0_ |= 0x00000001; + 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(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * An optional description of this cluster.
+     * 
+ * + * string description = 2; + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.Cluster.initial_node_count is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1936 + * @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]; + * @deprecated google.container.v1beta1.Cluster.initial_node_count is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1936 + * @param value The initialNodeCount to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setInitialNodeCount(int value) { + + initialNodeCount_ = value; + bitField0_ |= 0x00000004; + 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]; + * @deprecated google.container.v1beta1.Cluster.initial_node_count is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1936 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearInitialNodeCount() { + bitField0_ = (bitField0_ & ~0x00000004); + 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]; + * @deprecated google.container.v1beta1.Cluster.node_config is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1949 + * @return Whether the nodeConfig field is set. + */ + @java.lang.Deprecated public boolean hasNodeConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * 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]; + * @deprecated google.container.v1beta1.Cluster.node_config is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1949 + * @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; + } else { + nodeConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + 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(); + } else { + nodeConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + 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 (((bitField0_ & 0x00000008) != 0) && + nodeConfig_ != null && + nodeConfig_ != com.google.container.v1beta1.NodeConfig.getDefaultInstance()) { + getNodeConfigBuilder().mergeFrom(value); + } else { + nodeConfig_ = value; + } + } else { + nodeConfigBuilder_.mergeFrom(value); + } + if (nodeConfig_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + 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() { + bitField0_ = (bitField0_ & ~0x00000008); + nodeConfig_ = null; + if (nodeConfigBuilder_ != null) { + nodeConfigBuilder_.dispose(); + nodeConfigBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000008; + 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 ((bitField0_ & 0x00000010) != 0); + } + /** + *
+     * 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; + } else { + masterAuthBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + 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(); + } else { + masterAuthBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + 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 (((bitField0_ & 0x00000010) != 0) && + masterAuth_ != null && + masterAuth_ != com.google.container.v1beta1.MasterAuth.getDefaultInstance()) { + getMasterAuthBuilder().mergeFrom(value); + } else { + masterAuth_ = value; + } + } else { + masterAuthBuilder_.mergeFrom(value); + } + if (masterAuth_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + 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() { + bitField0_ = (bitField0_ & ~0x00000010); + masterAuth_ = null; + if (masterAuthBuilder_ != null) { + masterAuthBuilder_.dispose(); + masterAuthBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000010; + 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; + bitField0_ |= 0x00000020; + 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(); + bitField0_ = (bitField0_ & ~0x00000020); + 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; + bitField0_ |= 0x00000020; + 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; + bitField0_ |= 0x00000040; + 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(); + bitField0_ = (bitField0_ & ~0x00000040); + 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; + bitField0_ |= 0x00000040; + 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; + bitField0_ |= 0x00000080; + 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(); + bitField0_ = (bitField0_ & ~0x00000080); + 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; + bitField0_ |= 0x00000080; + 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; + bitField0_ |= 0x00000100; + 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(); + bitField0_ = (bitField0_ & ~0x00000100); + 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; + bitField0_ |= 0x00000100; + 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 ((bitField0_ & 0x00000200) != 0); + } + /** + *
+     * 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; + } else { + addonsConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + 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(); + } else { + addonsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + 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 (((bitField0_ & 0x00000200) != 0) && + addonsConfig_ != null && + addonsConfig_ != com.google.container.v1beta1.AddonsConfig.getDefaultInstance()) { + getAddonsConfigBuilder().mergeFrom(value); + } else { + addonsConfig_ = value; + } + } else { + addonsConfigBuilder_.mergeFrom(value); + } + if (addonsConfig_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig addons_config = 10; + */ + public Builder clearAddonsConfig() { + bitField0_ = (bitField0_ & ~0x00000200); + addonsConfig_ = null; + if (addonsConfigBuilder_ != null) { + addonsConfigBuilder_.dispose(); + addonsConfigBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000200; + 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; + bitField0_ |= 0x00000400; + 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(); + bitField0_ = (bitField0_ & ~0x00000400); + 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; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private java.util.List nodePools_ = + java.util.Collections.emptyList(); + private void ensureNodePoolsIsMutable() { + if (!((bitField0_ & 0x00000800) != 0)) { + nodePools_ = new java.util.ArrayList(nodePools_); + bitField0_ |= 0x00000800; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.NodePool, com.google.container.v1beta1.NodePool.Builder, com.google.container.v1beta1.NodePoolOrBuilder> nodePoolsBuilder_; + + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public java.util.List getNodePoolsList() { + if (nodePoolsBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodePools_); + } else { + return nodePoolsBuilder_.getMessageList(); + } + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public int getNodePoolsCount() { + if (nodePoolsBuilder_ == null) { + return nodePools_.size(); + } else { + return nodePoolsBuilder_.getCount(); + } + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public com.google.container.v1beta1.NodePool getNodePools(int index) { + if (nodePoolsBuilder_ == null) { + return nodePools_.get(index); + } else { + return nodePoolsBuilder_.getMessage(index); + } + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public Builder setNodePools( + int index, com.google.container.v1beta1.NodePool value) { + if (nodePoolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodePoolsIsMutable(); + nodePools_.set(index, value); + onChanged(); + } else { + nodePoolsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public Builder setNodePools( + int index, com.google.container.v1beta1.NodePool.Builder builderForValue) { + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + nodePools_.set(index, builderForValue.build()); + onChanged(); + } else { + nodePoolsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public Builder addNodePools(com.google.container.v1beta1.NodePool value) { + if (nodePoolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodePoolsIsMutable(); + nodePools_.add(value); + onChanged(); + } else { + nodePoolsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public Builder addNodePools( + int index, com.google.container.v1beta1.NodePool value) { + if (nodePoolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodePoolsIsMutable(); + nodePools_.add(index, value); + onChanged(); + } else { + nodePoolsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public Builder addNodePools( + com.google.container.v1beta1.NodePool.Builder builderForValue) { + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + nodePools_.add(builderForValue.build()); + onChanged(); + } else { + nodePoolsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public Builder addNodePools( + int index, com.google.container.v1beta1.NodePool.Builder builderForValue) { + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + nodePools_.add(index, builderForValue.build()); + onChanged(); + } else { + nodePoolsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public Builder addAllNodePools( + java.lang.Iterable values) { + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nodePools_); + onChanged(); + } else { + nodePoolsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public Builder clearNodePools() { + if (nodePoolsBuilder_ == null) { + nodePools_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + } else { + nodePoolsBuilder_.clear(); + } + return this; + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public Builder removeNodePools(int index) { + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + nodePools_.remove(index); + onChanged(); + } else { + nodePoolsBuilder_.remove(index); + } + return this; + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public com.google.container.v1beta1.NodePool.Builder getNodePoolsBuilder( + int index) { + return getNodePoolsFieldBuilder().getBuilder(index); + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public com.google.container.v1beta1.NodePoolOrBuilder getNodePoolsOrBuilder( + int index) { + if (nodePoolsBuilder_ == null) { + return nodePools_.get(index); } else { + return nodePoolsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public java.util.List + getNodePoolsOrBuilderList() { + if (nodePoolsBuilder_ != null) { + return nodePoolsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodePools_); + } + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public com.google.container.v1beta1.NodePool.Builder addNodePoolsBuilder() { + return getNodePoolsFieldBuilder().addBuilder( + com.google.container.v1beta1.NodePool.getDefaultInstance()); + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public com.google.container.v1beta1.NodePool.Builder addNodePoolsBuilder( + int index) { + return getNodePoolsFieldBuilder().addBuilder( + index, com.google.container.v1beta1.NodePool.getDefaultInstance()); + } + /** + *
+     * The node pools associated with this cluster.
+     * This field should not be set if "node_config" or "initial_node_count" are
+     * specified.
+     * 
+ * + * repeated .google.container.v1beta1.NodePool node_pools = 12; + */ + public java.util.List + getNodePoolsBuilderList() { + return getNodePoolsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.NodePool, com.google.container.v1beta1.NodePool.Builder, com.google.container.v1beta1.NodePoolOrBuilder> + getNodePoolsFieldBuilder() { + if (nodePoolsBuilder_ == null) { + nodePoolsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.NodePool, com.google.container.v1beta1.NodePool.Builder, com.google.container.v1beta1.NodePoolOrBuilder>( + nodePools_, + ((bitField0_ & 0x00000800) != 0), + getParentForChildren(), + isClean()); + nodePools_ = null; + } + return nodePoolsBuilder_; + } + + private com.google.protobuf.LazyStringArrayList locations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureLocationsIsMutable() { + if (!locations_.isModifiable()) { + locations_ = new com.google.protobuf.LazyStringArrayList(locations_); + } + bitField0_ |= 0x00001000; + } + /** + *
+     * 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() { + locations_.makeImmutable(); + 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); + } + /** + *
+     * 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); + bitField0_ |= 0x00001000; + 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); + bitField0_ |= 0x00001000; + 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_); + bitField0_ |= 0x00001000; + 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.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000);; + 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); + bitField0_ |= 0x00001000; + 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; + bitField0_ |= 0x00002000; + 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() { + bitField0_ = (bitField0_ & ~0x00002000); + enableKubernetesAlpha_ = false; + onChanged(); + return this; + } + + private com.google.container.v1beta1.K8sBetaAPIConfig enableK8SBetaApis_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.K8sBetaAPIConfig, com.google.container.v1beta1.K8sBetaAPIConfig.Builder, com.google.container.v1beta1.K8sBetaAPIConfigOrBuilder> enableK8SBetaApisBuilder_; + /** + *
+     * Kubernetes open source beta apis enabled on the cluster. Only beta apis.
+     * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; + * @return Whether the enableK8sBetaApis field is set. + */ + public boolean hasEnableK8SBetaApis() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + *
+     * Kubernetes open source beta apis enabled on the cluster. Only beta apis.
+     * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; + * @return The enableK8sBetaApis. + */ + public com.google.container.v1beta1.K8sBetaAPIConfig getEnableK8SBetaApis() { + if (enableK8SBetaApisBuilder_ == null) { + return enableK8SBetaApis_ == null ? com.google.container.v1beta1.K8sBetaAPIConfig.getDefaultInstance() : enableK8SBetaApis_; + } else { + return enableK8SBetaApisBuilder_.getMessage(); + } + } + /** + *
+     * Kubernetes open source beta apis enabled on the cluster. Only beta apis.
+     * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; + */ + public Builder setEnableK8SBetaApis(com.google.container.v1beta1.K8sBetaAPIConfig value) { + if (enableK8SBetaApisBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + enableK8SBetaApis_ = value; + } else { + enableK8SBetaApisBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + *
+     * Kubernetes open source beta apis enabled on the cluster. Only beta apis.
+     * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; + */ + public Builder setEnableK8SBetaApis( + com.google.container.v1beta1.K8sBetaAPIConfig.Builder builderForValue) { + if (enableK8SBetaApisBuilder_ == null) { + enableK8SBetaApis_ = builderForValue.build(); + } else { + enableK8SBetaApisBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + *
+     * Kubernetes open source beta apis enabled on the cluster. Only beta apis.
+     * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; + */ + public Builder mergeEnableK8SBetaApis(com.google.container.v1beta1.K8sBetaAPIConfig value) { + if (enableK8SBetaApisBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) && + enableK8SBetaApis_ != null && + enableK8SBetaApis_ != com.google.container.v1beta1.K8sBetaAPIConfig.getDefaultInstance()) { + getEnableK8SBetaApisBuilder().mergeFrom(value); + } else { + enableK8SBetaApis_ = value; + } + } else { + enableK8SBetaApisBuilder_.mergeFrom(value); + } + if (enableK8SBetaApis_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } + return this; + } + /** + *
+     * Kubernetes open source beta apis enabled on the cluster. Only beta apis.
+     * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; + */ + public Builder clearEnableK8SBetaApis() { + bitField0_ = (bitField0_ & ~0x00004000); + enableK8SBetaApis_ = null; + if (enableK8SBetaApisBuilder_ != null) { + enableK8SBetaApisBuilder_.dispose(); + enableK8SBetaApisBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Kubernetes open source beta apis enabled on the cluster. Only beta apis.
+     * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; + */ + public com.google.container.v1beta1.K8sBetaAPIConfig.Builder getEnableK8SBetaApisBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return getEnableK8SBetaApisFieldBuilder().getBuilder(); + } + /** + *
+     * Kubernetes open source beta apis enabled on the cluster. Only beta apis.
+     * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; + */ + public com.google.container.v1beta1.K8sBetaAPIConfigOrBuilder getEnableK8SBetaApisOrBuilder() { + if (enableK8SBetaApisBuilder_ != null) { + return enableK8SBetaApisBuilder_.getMessageOrBuilder(); + } else { + return enableK8SBetaApis_ == null ? + com.google.container.v1beta1.K8sBetaAPIConfig.getDefaultInstance() : enableK8SBetaApis_; + } + } + /** + *
+     * Kubernetes open source beta apis enabled on the cluster. Only beta apis.
+     * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.K8sBetaAPIConfig, com.google.container.v1beta1.K8sBetaAPIConfig.Builder, com.google.container.v1beta1.K8sBetaAPIConfigOrBuilder> + getEnableK8SBetaApisFieldBuilder() { + if (enableK8SBetaApisBuilder_ == null) { + enableK8SBetaApisBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.K8sBetaAPIConfig, com.google.container.v1beta1.K8sBetaAPIConfig.Builder, com.google.container.v1beta1.K8sBetaAPIConfigOrBuilder>( + getEnableK8SBetaApis(), + getParentForChildren(), + isClean()); + enableK8SBetaApis_ = null; + } + return enableK8SBetaApisBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> resourceLabels_; + private com.google.protobuf.MapField + internalGetResourceLabels() { + if (resourceLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + return resourceLabels_; + } + private com.google.protobuf.MapField + internalGetMutableResourceLabels() { + if (resourceLabels_ == null) { + resourceLabels_ = com.google.protobuf.MapField.newMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + if (!resourceLabels_.isMutable()) { + resourceLabels_ = resourceLabels_.copy(); + } + bitField0_ |= 0x00008000; + onChanged(); + 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 NullPointerException("map key"); } + 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 /* nullable */ +java.lang.String getResourceLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + 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 NullPointerException("map key"); } + java.util.Map map = + internalGetResourceLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearResourceLabels() { + bitField0_ = (bitField0_ & ~0x00008000); + 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 NullPointerException("map key"); } + internalGetMutableResourceLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableResourceLabels() { + bitField0_ |= 0x00008000; + 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 NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableResourceLabels().getMutableMap() + .put(key, value); + bitField0_ |= 0x00008000; + 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); + bitField0_ |= 0x00008000; + 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; + bitField0_ |= 0x00010000; + 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(); + bitField0_ = (bitField0_ & ~0x00010000); + 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; + bitField0_ |= 0x00010000; + 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 ((bitField0_ & 0x00020000) != 0); + } + /** + *
+     * 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; + } else { + legacyAbacBuilder_.setMessage(value); + } + bitField0_ |= 0x00020000; + onChanged(); + 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(); + } else { + legacyAbacBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00020000; + onChanged(); + 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 (((bitField0_ & 0x00020000) != 0) && + legacyAbac_ != null && + legacyAbac_ != com.google.container.v1beta1.LegacyAbac.getDefaultInstance()) { + getLegacyAbacBuilder().mergeFrom(value); + } else { + legacyAbac_ = value; + } + } else { + legacyAbacBuilder_.mergeFrom(value); + } + if (legacyAbac_ != null) { + bitField0_ |= 0x00020000; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for the legacy ABAC authorization mode.
+     * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + */ + public Builder clearLegacyAbac() { + bitField0_ = (bitField0_ & ~0x00020000); + legacyAbac_ = null; + if (legacyAbacBuilder_ != null) { + legacyAbacBuilder_.dispose(); + legacyAbacBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for the legacy ABAC authorization mode.
+     * 
+ * + * .google.container.v1beta1.LegacyAbac legacy_abac = 18; + */ + public com.google.container.v1beta1.LegacyAbac.Builder getLegacyAbacBuilder() { + bitField0_ |= 0x00020000; + 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 ((bitField0_ & 0x00040000) != 0); + } + /** + *
+     * 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; + } else { + networkPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00040000; + onChanged(); + 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(); + } else { + networkPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00040000; + onChanged(); + 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 (((bitField0_ & 0x00040000) != 0) && + networkPolicy_ != null && + networkPolicy_ != com.google.container.v1beta1.NetworkPolicy.getDefaultInstance()) { + getNetworkPolicyBuilder().mergeFrom(value); + } else { + networkPolicy_ = value; + } + } else { + networkPolicyBuilder_.mergeFrom(value); + } + if (networkPolicy_ != null) { + bitField0_ |= 0x00040000; + onChanged(); + } + return this; + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + */ + public Builder clearNetworkPolicy() { + bitField0_ = (bitField0_ & ~0x00040000); + networkPolicy_ = null; + if (networkPolicyBuilder_ != null) { + networkPolicyBuilder_.dispose(); + networkPolicyBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 19; + */ + public com.google.container.v1beta1.NetworkPolicy.Builder getNetworkPolicyBuilder() { + bitField0_ |= 0x00040000; + 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 ((bitField0_ & 0x00080000) != 0); + } + /** + *
+     * 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; + } else { + ipAllocationPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00080000; + onChanged(); + 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(); + } else { + ipAllocationPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00080000; + onChanged(); + 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 (((bitField0_ & 0x00080000) != 0) && + ipAllocationPolicy_ != null && + ipAllocationPolicy_ != com.google.container.v1beta1.IPAllocationPolicy.getDefaultInstance()) { + getIpAllocationPolicyBuilder().mergeFrom(value); + } else { + ipAllocationPolicy_ = value; + } + } else { + ipAllocationPolicyBuilder_.mergeFrom(value); + } + if (ipAllocationPolicy_ != null) { + bitField0_ |= 0x00080000; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public Builder clearIpAllocationPolicy() { + bitField0_ = (bitField0_ & ~0x00080000); + ipAllocationPolicy_ = null; + if (ipAllocationPolicyBuilder_ != null) { + ipAllocationPolicyBuilder_.dispose(); + ipAllocationPolicyBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for cluster IP allocation.
+     * 
+ * + * .google.container.v1beta1.IPAllocationPolicy ip_allocation_policy = 20; + */ + public com.google.container.v1beta1.IPAllocationPolicy.Builder getIpAllocationPolicyBuilder() { + bitField0_ |= 0x00080000; + 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 ((bitField0_ & 0x00100000) != 0); + } + /** + *
+     * 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; + } else { + masterAuthorizedNetworksConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00100000; + onChanged(); + 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(); + } else { + masterAuthorizedNetworksConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00100000; + onChanged(); + 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 (((bitField0_ & 0x00100000) != 0) && + masterAuthorizedNetworksConfig_ != null && + masterAuthorizedNetworksConfig_ != com.google.container.v1beta1.MasterAuthorizedNetworksConfig.getDefaultInstance()) { + getMasterAuthorizedNetworksConfigBuilder().mergeFrom(value); + } else { + masterAuthorizedNetworksConfig_ = value; + } + } else { + masterAuthorizedNetworksConfigBuilder_.mergeFrom(value); + } + if (masterAuthorizedNetworksConfig_ != null) { + bitField0_ |= 0x00100000; + onChanged(); + } + return this; + } + /** + *
+     * The configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + */ + public Builder clearMasterAuthorizedNetworksConfig() { + bitField0_ = (bitField0_ & ~0x00100000); + masterAuthorizedNetworksConfig_ = null; + if (masterAuthorizedNetworksConfigBuilder_ != null) { + masterAuthorizedNetworksConfigBuilder_.dispose(); + masterAuthorizedNetworksConfigBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00100000; + 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 ((bitField0_ & 0x00200000) != 0); + } + /** + *
+     * 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; + } else { + maintenancePolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00200000; + onChanged(); + 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(); + } else { + maintenancePolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00200000; + onChanged(); + 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 (((bitField0_ & 0x00200000) != 0) && + maintenancePolicy_ != null && + maintenancePolicy_ != com.google.container.v1beta1.MaintenancePolicy.getDefaultInstance()) { + getMaintenancePolicyBuilder().mergeFrom(value); + } else { + maintenancePolicy_ = value; + } + } else { + maintenancePolicyBuilder_.mergeFrom(value); + } + if (maintenancePolicy_ != null) { + bitField0_ |= 0x00200000; + onChanged(); + } + return this; + } + /** + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + */ + public Builder clearMaintenancePolicy() { + bitField0_ = (bitField0_ & ~0x00200000); + maintenancePolicy_ = null; + if (maintenancePolicyBuilder_ != null) { + maintenancePolicyBuilder_.dispose(); + maintenancePolicyBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configure the maintenance policy for this cluster.
+     * 
+ * + * .google.container.v1beta1.MaintenancePolicy maintenance_policy = 23; + */ + public com.google.container.v1beta1.MaintenancePolicy.Builder getMaintenancePolicyBuilder() { + bitField0_ |= 0x00200000; + 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 ((bitField0_ & 0x00400000) != 0); + } + /** + *
+     * 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; + } else { + binaryAuthorizationBuilder_.setMessage(value); + } + bitField0_ |= 0x00400000; + onChanged(); + 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(); + } else { + binaryAuthorizationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00400000; + onChanged(); + 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 (((bitField0_ & 0x00400000) != 0) && + binaryAuthorization_ != null && + binaryAuthorization_ != com.google.container.v1beta1.BinaryAuthorization.getDefaultInstance()) { + getBinaryAuthorizationBuilder().mergeFrom(value); + } else { + binaryAuthorization_ = value; + } + } else { + binaryAuthorizationBuilder_.mergeFrom(value); + } + if (binaryAuthorization_ != null) { + bitField0_ |= 0x00400000; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + */ + public Builder clearBinaryAuthorization() { + bitField0_ = (bitField0_ & ~0x00400000); + binaryAuthorization_ = null; + if (binaryAuthorizationBuilder_ != null) { + binaryAuthorizationBuilder_.dispose(); + binaryAuthorizationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for Binary Authorization.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization binary_authorization = 24; + */ + public com.google.container.v1beta1.BinaryAuthorization.Builder getBinaryAuthorizationBuilder() { + bitField0_ |= 0x00400000; + 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 ((bitField0_ & 0x00800000) != 0); + } + /** + *
+     * 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; + } else { + podSecurityPolicyConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00800000; + onChanged(); + 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(); + } else { + podSecurityPolicyConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00800000; + onChanged(); + 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 (((bitField0_ & 0x00800000) != 0) && + podSecurityPolicyConfig_ != null && + podSecurityPolicyConfig_ != com.google.container.v1beta1.PodSecurityPolicyConfig.getDefaultInstance()) { + getPodSecurityPolicyConfigBuilder().mergeFrom(value); + } else { + podSecurityPolicyConfig_ = value; + } + } else { + podSecurityPolicyConfigBuilder_.mergeFrom(value); + } + if (podSecurityPolicyConfig_ != null) { + bitField0_ |= 0x00800000; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + */ + public Builder clearPodSecurityPolicyConfig() { + bitField0_ = (bitField0_ & ~0x00800000); + podSecurityPolicyConfig_ = null; + if (podSecurityPolicyConfigBuilder_ != null) { + podSecurityPolicyConfigBuilder_.dispose(); + podSecurityPolicyConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig pod_security_policy_config = 25; + */ + public com.google.container.v1beta1.PodSecurityPolicyConfig.Builder getPodSecurityPolicyConfigBuilder() { + bitField0_ |= 0x00800000; + 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 ((bitField0_ & 0x01000000) != 0); + } + /** + *
+     * 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; + } else { + autoscalingBuilder_.setMessage(value); + } + bitField0_ |= 0x01000000; + onChanged(); + 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(); + } else { + autoscalingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x01000000; + onChanged(); + 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 (((bitField0_ & 0x01000000) != 0) && + autoscaling_ != null && + autoscaling_ != com.google.container.v1beta1.ClusterAutoscaling.getDefaultInstance()) { + getAutoscalingBuilder().mergeFrom(value); + } else { + autoscaling_ = value; + } + } else { + autoscalingBuilder_.mergeFrom(value); + } + if (autoscaling_ != null) { + bitField0_ |= 0x01000000; + onChanged(); + } + return this; + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + */ + public Builder clearAutoscaling() { + bitField0_ = (bitField0_ & ~0x01000000); + autoscaling_ = null; + if (autoscalingBuilder_ != null) { + autoscalingBuilder_.dispose(); + autoscalingBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling autoscaling = 26; + */ + public com.google.container.v1beta1.ClusterAutoscaling.Builder getAutoscalingBuilder() { + bitField0_ |= 0x01000000; + 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 ((bitField0_ & 0x02000000) != 0); + } + /** + *
+     * 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; + } else { + networkConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x02000000; + onChanged(); + 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(); + } else { + networkConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x02000000; + onChanged(); + 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 (((bitField0_ & 0x02000000) != 0) && + networkConfig_ != null && + networkConfig_ != com.google.container.v1beta1.NetworkConfig.getDefaultInstance()) { + getNetworkConfigBuilder().mergeFrom(value); + } else { + networkConfig_ = value; + } + } else { + networkConfigBuilder_.mergeFrom(value); + } + if (networkConfig_ != null) { + bitField0_ |= 0x02000000; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + */ + public Builder clearNetworkConfig() { + bitField0_ = (bitField0_ & ~0x02000000); + networkConfig_ = null; + if (networkConfigBuilder_ != null) { + networkConfigBuilder_.dispose(); + networkConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for cluster networking.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig network_config = 27; + */ + public com.google.container.v1beta1.NetworkConfig.Builder getNetworkConfigBuilder() { + bitField0_ |= 0x02000000; + 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]; + * @deprecated google.container.v1beta1.Cluster.private_cluster is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2074 + * @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]; + * @deprecated google.container.v1beta1.Cluster.private_cluster is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2074 + * @param value The privateCluster to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setPrivateCluster(boolean value) { + + privateCluster_ = value; + bitField0_ |= 0x04000000; + 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]; + * @deprecated google.container.v1beta1.Cluster.private_cluster is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2074 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearPrivateCluster() { + bitField0_ = (bitField0_ & ~0x04000000); + 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]; + * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2081 + * @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]; + * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2081 + * @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]; + * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2081 + * @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; + bitField0_ |= 0x08000000; + 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]; + * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2081 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearMasterIpv4CidrBlock() { + masterIpv4CidrBlock_ = getDefaultInstance().getMasterIpv4CidrBlock(); + bitField0_ = (bitField0_ & ~0x08000000); + 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]; + * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2081 + * @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; + bitField0_ |= 0x08000000; + 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 ((bitField0_ & 0x10000000) != 0); + } + /** + *
+     * 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; + } else { + defaultMaxPodsConstraintBuilder_.setMessage(value); + } + bitField0_ |= 0x10000000; + onChanged(); + 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(); + } else { + defaultMaxPodsConstraintBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x10000000; + onChanged(); + 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 (((bitField0_ & 0x10000000) != 0) && + defaultMaxPodsConstraint_ != null && + defaultMaxPodsConstraint_ != com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance()) { + getDefaultMaxPodsConstraintBuilder().mergeFrom(value); + } else { + defaultMaxPodsConstraint_ = value; + } + } else { + defaultMaxPodsConstraintBuilder_.mergeFrom(value); + } + if (defaultMaxPodsConstraint_ != null) { + bitField0_ |= 0x10000000; + onChanged(); + } + 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() { + bitField0_ = (bitField0_ & ~0x10000000); + defaultMaxPodsConstraint_ = null; + if (defaultMaxPodsConstraintBuilder_ != null) { + defaultMaxPodsConstraintBuilder_.dispose(); + defaultMaxPodsConstraintBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x10000000; + 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 ((bitField0_ & 0x20000000) != 0); + } + /** + *
+     * 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; + } else { + resourceUsageExportConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x20000000; + onChanged(); + 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(); + } else { + resourceUsageExportConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x20000000; + onChanged(); + 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 (((bitField0_ & 0x20000000) != 0) && + resourceUsageExportConfig_ != null && + resourceUsageExportConfig_ != com.google.container.v1beta1.ResourceUsageExportConfig.getDefaultInstance()) { + getResourceUsageExportConfigBuilder().mergeFrom(value); + } else { + resourceUsageExportConfig_ = value; + } + } else { + resourceUsageExportConfigBuilder_.mergeFrom(value); + } + if (resourceUsageExportConfig_ != null) { + bitField0_ |= 0x20000000; + onChanged(); + } + 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() { + bitField0_ = (bitField0_ & ~0x20000000); + resourceUsageExportConfig_ = null; + if (resourceUsageExportConfigBuilder_ != null) { + resourceUsageExportConfigBuilder_.dispose(); + resourceUsageExportConfigBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x20000000; + 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 ((bitField0_ & 0x40000000) != 0); + } + /** + *
+     * 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; + } else { + authenticatorGroupsConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x40000000; + onChanged(); + 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(); + } else { + authenticatorGroupsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x40000000; + onChanged(); + 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 (((bitField0_ & 0x40000000) != 0) && + authenticatorGroupsConfig_ != null && + authenticatorGroupsConfig_ != com.google.container.v1beta1.AuthenticatorGroupsConfig.getDefaultInstance()) { + getAuthenticatorGroupsConfigBuilder().mergeFrom(value); + } else { + authenticatorGroupsConfig_ = value; + } + } else { + authenticatorGroupsConfigBuilder_.mergeFrom(value); + } + if (authenticatorGroupsConfig_ != null) { + bitField0_ |= 0x40000000; + onChanged(); + } + return this; + } + /** + *
+     * Configuration controlling RBAC group membership information.
+     * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + */ + public Builder clearAuthenticatorGroupsConfig() { + bitField0_ = (bitField0_ & ~0x40000000); + authenticatorGroupsConfig_ = null; + if (authenticatorGroupsConfigBuilder_ != null) { + authenticatorGroupsConfigBuilder_.dispose(); + authenticatorGroupsConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration controlling RBAC group membership information.
+     * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + */ + public com.google.container.v1beta1.AuthenticatorGroupsConfig.Builder getAuthenticatorGroupsConfigBuilder() { + bitField0_ |= 0x40000000; + 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 ((bitField0_ & 0x80000000) != 0); + } + /** + *
+     * 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; + } else { + privateClusterConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x80000000; + onChanged(); + 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(); + } else { + privateClusterConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x80000000; + onChanged(); + 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 (((bitField0_ & 0x80000000) != 0) && + privateClusterConfig_ != null && + privateClusterConfig_ != com.google.container.v1beta1.PrivateClusterConfig.getDefaultInstance()) { + getPrivateClusterConfigBuilder().mergeFrom(value); + } else { + privateClusterConfig_ = value; + } + } else { + privateClusterConfigBuilder_.mergeFrom(value); + } + if (privateClusterConfig_ != null) { + bitField0_ |= 0x80000000; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + */ + public Builder clearPrivateClusterConfig() { + bitField0_ = (bitField0_ & ~0x80000000); + privateClusterConfig_ = null; + if (privateClusterConfigBuilder_ != null) { + privateClusterConfigBuilder_.dispose(); + privateClusterConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig private_cluster_config = 37; + */ + public com.google.container.v1beta1.PrivateClusterConfig.Builder getPrivateClusterConfigBuilder() { + bitField0_ |= 0x80000000; + 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 ((bitField1_ & 0x00000001) != 0); + } + /** + *
+     * 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; + } else { + verticalPodAutoscalingBuilder_.setMessage(value); + } + bitField1_ |= 0x00000001; + onChanged(); + 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(); + } else { + verticalPodAutoscalingBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000001; + onChanged(); + 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 (((bitField1_ & 0x00000001) != 0) && + verticalPodAutoscaling_ != null && + verticalPodAutoscaling_ != com.google.container.v1beta1.VerticalPodAutoscaling.getDefaultInstance()) { + getVerticalPodAutoscalingBuilder().mergeFrom(value); + } else { + verticalPodAutoscaling_ = value; + } + } else { + verticalPodAutoscalingBuilder_.mergeFrom(value); + } + if (verticalPodAutoscaling_ != null) { + bitField1_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + */ + public Builder clearVerticalPodAutoscaling() { + bitField1_ = (bitField1_ & ~0x00000001); + verticalPodAutoscaling_ = null; + if (verticalPodAutoscalingBuilder_ != null) { + verticalPodAutoscalingBuilder_.dispose(); + verticalPodAutoscalingBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + */ + public com.google.container.v1beta1.VerticalPodAutoscaling.Builder getVerticalPodAutoscalingBuilder() { + bitField1_ |= 0x00000001; + 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 ((bitField1_ & 0x00000002) != 0); + } + /** + *
+     * 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; + } else { + shieldedNodesBuilder_.setMessage(value); + } + bitField1_ |= 0x00000002; + onChanged(); + 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(); + } else { + shieldedNodesBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000002; + onChanged(); + 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 (((bitField1_ & 0x00000002) != 0) && + shieldedNodes_ != null && + shieldedNodes_ != com.google.container.v1beta1.ShieldedNodes.getDefaultInstance()) { + getShieldedNodesBuilder().mergeFrom(value); + } else { + shieldedNodes_ = value; + } + } else { + shieldedNodesBuilder_.mergeFrom(value); + } + if (shieldedNodes_ != null) { + bitField1_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; + */ + public Builder clearShieldedNodes() { + bitField1_ = (bitField1_ & ~0x00000002); + shieldedNodes_ = null; + if (shieldedNodesBuilder_ != null) { + shieldedNodesBuilder_.dispose(); + shieldedNodesBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Shielded Nodes configuration.
+     * 
+ * + * .google.container.v1beta1.ShieldedNodes shielded_nodes = 40; + */ + public com.google.container.v1beta1.ShieldedNodes.Builder getShieldedNodesBuilder() { + bitField1_ |= 0x00000002; + 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. If left unspecified on cluster creation and
+     * a version is specified, the cluster is enrolled in the most mature release
+     * channel where the version is available (first checking STABLE, then
+     * REGULAR, and finally RAPID). Otherwise, if no release channel
+     * configuration and no version is specified, the cluster is enrolled in the
+     * REGULAR channel with its default version.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 41; + * @return Whether the releaseChannel field is set. + */ + public boolean hasReleaseChannel() { + return ((bitField1_ & 0x00000004) != 0); + } + /** + *
+     * Release channel configuration. If left unspecified on cluster creation and
+     * a version is specified, the cluster is enrolled in the most mature release
+     * channel where the version is available (first checking STABLE, then
+     * REGULAR, and finally RAPID). Otherwise, if no release channel
+     * configuration and no version is specified, the cluster is enrolled in the
+     * REGULAR channel with its default version.
+     * 
+ * + * .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. If left unspecified on cluster creation and
+     * a version is specified, the cluster is enrolled in the most mature release
+     * channel where the version is available (first checking STABLE, then
+     * REGULAR, and finally RAPID). Otherwise, if no release channel
+     * configuration and no version is specified, the cluster is enrolled in the
+     * REGULAR channel with its default version.
+     * 
+ * + * .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; + } else { + releaseChannelBuilder_.setMessage(value); + } + bitField1_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Release channel configuration. If left unspecified on cluster creation and
+     * a version is specified, the cluster is enrolled in the most mature release
+     * channel where the version is available (first checking STABLE, then
+     * REGULAR, and finally RAPID). Otherwise, if no release channel
+     * configuration and no version is specified, the cluster is enrolled in the
+     * REGULAR channel with its default version.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 41; + */ + public Builder setReleaseChannel( + com.google.container.v1beta1.ReleaseChannel.Builder builderForValue) { + if (releaseChannelBuilder_ == null) { + releaseChannel_ = builderForValue.build(); + } else { + releaseChannelBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Release channel configuration. If left unspecified on cluster creation and
+     * a version is specified, the cluster is enrolled in the most mature release
+     * channel where the version is available (first checking STABLE, then
+     * REGULAR, and finally RAPID). Otherwise, if no release channel
+     * configuration and no version is specified, the cluster is enrolled in the
+     * REGULAR channel with its default version.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 41; + */ + public Builder mergeReleaseChannel(com.google.container.v1beta1.ReleaseChannel value) { + if (releaseChannelBuilder_ == null) { + if (((bitField1_ & 0x00000004) != 0) && + releaseChannel_ != null && + releaseChannel_ != com.google.container.v1beta1.ReleaseChannel.getDefaultInstance()) { + getReleaseChannelBuilder().mergeFrom(value); + } else { + releaseChannel_ = value; + } + } else { + releaseChannelBuilder_.mergeFrom(value); + } + if (releaseChannel_ != null) { + bitField1_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+     * Release channel configuration. If left unspecified on cluster creation and
+     * a version is specified, the cluster is enrolled in the most mature release
+     * channel where the version is available (first checking STABLE, then
+     * REGULAR, and finally RAPID). Otherwise, if no release channel
+     * configuration and no version is specified, the cluster is enrolled in the
+     * REGULAR channel with its default version.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 41; + */ + public Builder clearReleaseChannel() { + bitField1_ = (bitField1_ & ~0x00000004); + releaseChannel_ = null; + if (releaseChannelBuilder_ != null) { + releaseChannelBuilder_.dispose(); + releaseChannelBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Release channel configuration. If left unspecified on cluster creation and
+     * a version is specified, the cluster is enrolled in the most mature release
+     * channel where the version is available (first checking STABLE, then
+     * REGULAR, and finally RAPID). Otherwise, if no release channel
+     * configuration and no version is specified, the cluster is enrolled in the
+     * REGULAR channel with its default version.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 41; + */ + public com.google.container.v1beta1.ReleaseChannel.Builder getReleaseChannelBuilder() { + bitField1_ |= 0x00000004; + onChanged(); + return getReleaseChannelFieldBuilder().getBuilder(); + } + /** + *
+     * Release channel configuration. If left unspecified on cluster creation and
+     * a version is specified, the cluster is enrolled in the most mature release
+     * channel where the version is available (first checking STABLE, then
+     * REGULAR, and finally RAPID). Otherwise, if no release channel
+     * configuration and no version is specified, the cluster is enrolled in the
+     * REGULAR channel with its default version.
+     * 
+ * + * .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. If left unspecified on cluster creation and
+     * a version is specified, the cluster is enrolled in the most mature release
+     * channel where the version is available (first checking STABLE, then
+     * REGULAR, and finally RAPID). Otherwise, if no release channel
+     * configuration and no version is specified, the cluster is enrolled in the
+     * REGULAR channel with its default version.
+     * 
+ * + * .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 ((bitField1_ & 0x00000008) != 0); + } + /** + *
+     * 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; + } else { + workloadIdentityConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00000008; + onChanged(); + 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(); + } else { + workloadIdentityConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000008; + onChanged(); + 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 (((bitField1_ & 0x00000008) != 0) && + workloadIdentityConfig_ != null && + workloadIdentityConfig_ != com.google.container.v1beta1.WorkloadIdentityConfig.getDefaultInstance()) { + getWorkloadIdentityConfigBuilder().mergeFrom(value); + } else { + workloadIdentityConfig_ = value; + } + } else { + workloadIdentityConfigBuilder_.mergeFrom(value); + } + if (workloadIdentityConfig_ != null) { + bitField1_ |= 0x00000008; + onChanged(); + } + 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() { + bitField1_ = (bitField1_ & ~0x00000008); + workloadIdentityConfig_ = null; + if (workloadIdentityConfigBuilder_ != null) { + workloadIdentityConfigBuilder_.dispose(); + workloadIdentityConfigBuilder_ = null; + } + onChanged(); + 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() { + bitField1_ |= 0x00000008; + 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.WorkloadCertificates workloadCertificates_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadCertificates, com.google.container.v1beta1.WorkloadCertificates.Builder, com.google.container.v1beta1.WorkloadCertificatesOrBuilder> workloadCertificatesBuilder_; + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.WorkloadCertificates workload_certificates = 52; + * @return Whether the workloadCertificates field is set. + */ + public boolean hasWorkloadCertificates() { + return ((bitField1_ & 0x00000010) != 0); + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.WorkloadCertificates workload_certificates = 52; + * @return The workloadCertificates. + */ + public com.google.container.v1beta1.WorkloadCertificates getWorkloadCertificates() { + if (workloadCertificatesBuilder_ == null) { + return workloadCertificates_ == null ? com.google.container.v1beta1.WorkloadCertificates.getDefaultInstance() : workloadCertificates_; + } else { + return workloadCertificatesBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.WorkloadCertificates workload_certificates = 52; + */ + public Builder setWorkloadCertificates(com.google.container.v1beta1.WorkloadCertificates value) { + if (workloadCertificatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workloadCertificates_ = value; + } else { + workloadCertificatesBuilder_.setMessage(value); + } + bitField1_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.WorkloadCertificates workload_certificates = 52; + */ + public Builder setWorkloadCertificates( + com.google.container.v1beta1.WorkloadCertificates.Builder builderForValue) { + if (workloadCertificatesBuilder_ == null) { + workloadCertificates_ = builderForValue.build(); + } else { + workloadCertificatesBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.WorkloadCertificates workload_certificates = 52; + */ + public Builder mergeWorkloadCertificates(com.google.container.v1beta1.WorkloadCertificates value) { + if (workloadCertificatesBuilder_ == null) { + if (((bitField1_ & 0x00000010) != 0) && + workloadCertificates_ != null && + workloadCertificates_ != com.google.container.v1beta1.WorkloadCertificates.getDefaultInstance()) { + getWorkloadCertificatesBuilder().mergeFrom(value); + } else { + workloadCertificates_ = value; + } + } else { + workloadCertificatesBuilder_.mergeFrom(value); + } + if (workloadCertificates_ != null) { + bitField1_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.WorkloadCertificates workload_certificates = 52; + */ + public Builder clearWorkloadCertificates() { + bitField1_ = (bitField1_ & ~0x00000010); + workloadCertificates_ = null; + if (workloadCertificatesBuilder_ != null) { + workloadCertificatesBuilder_.dispose(); + workloadCertificatesBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.WorkloadCertificates workload_certificates = 52; + */ + public com.google.container.v1beta1.WorkloadCertificates.Builder getWorkloadCertificatesBuilder() { + bitField1_ |= 0x00000010; + onChanged(); + return getWorkloadCertificatesFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.WorkloadCertificates workload_certificates = 52; + */ + public com.google.container.v1beta1.WorkloadCertificatesOrBuilder getWorkloadCertificatesOrBuilder() { + if (workloadCertificatesBuilder_ != null) { + return workloadCertificatesBuilder_.getMessageOrBuilder(); + } else { + return workloadCertificates_ == null ? + com.google.container.v1beta1.WorkloadCertificates.getDefaultInstance() : workloadCertificates_; + } + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.WorkloadCertificates workload_certificates = 52; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadCertificates, com.google.container.v1beta1.WorkloadCertificates.Builder, com.google.container.v1beta1.WorkloadCertificatesOrBuilder> + getWorkloadCertificatesFieldBuilder() { + if (workloadCertificatesBuilder_ == null) { + workloadCertificatesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadCertificates, com.google.container.v1beta1.WorkloadCertificates.Builder, com.google.container.v1beta1.WorkloadCertificatesOrBuilder>( + getWorkloadCertificates(), + getParentForChildren(), + isClean()); + workloadCertificates_ = null; + } + return workloadCertificatesBuilder_; + } + + private com.google.container.v1beta1.MeshCertificates meshCertificates_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MeshCertificates, com.google.container.v1beta1.MeshCertificates.Builder, com.google.container.v1beta1.MeshCertificatesOrBuilder> meshCertificatesBuilder_; + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + * @return Whether the meshCertificates field is set. + */ + public boolean hasMeshCertificates() { + return ((bitField1_ & 0x00000020) != 0); + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + * @return The meshCertificates. + */ + public com.google.container.v1beta1.MeshCertificates getMeshCertificates() { + if (meshCertificatesBuilder_ == null) { + return meshCertificates_ == null ? com.google.container.v1beta1.MeshCertificates.getDefaultInstance() : meshCertificates_; + } else { + return meshCertificatesBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + */ + public Builder setMeshCertificates(com.google.container.v1beta1.MeshCertificates value) { + if (meshCertificatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + meshCertificates_ = value; + } else { + meshCertificatesBuilder_.setMessage(value); + } + bitField1_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + */ + public Builder setMeshCertificates( + com.google.container.v1beta1.MeshCertificates.Builder builderForValue) { + if (meshCertificatesBuilder_ == null) { + meshCertificates_ = builderForValue.build(); + } else { + meshCertificatesBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + */ + public Builder mergeMeshCertificates(com.google.container.v1beta1.MeshCertificates value) { + if (meshCertificatesBuilder_ == null) { + if (((bitField1_ & 0x00000020) != 0) && + meshCertificates_ != null && + meshCertificates_ != com.google.container.v1beta1.MeshCertificates.getDefaultInstance()) { + getMeshCertificatesBuilder().mergeFrom(value); + } else { + meshCertificates_ = value; + } + } else { + meshCertificatesBuilder_.mergeFrom(value); + } + if (meshCertificates_ != null) { + bitField1_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + */ + public Builder clearMeshCertificates() { + bitField1_ = (bitField1_ & ~0x00000020); + meshCertificates_ = null; + if (meshCertificatesBuilder_ != null) { + meshCertificatesBuilder_.dispose(); + meshCertificatesBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + */ + public com.google.container.v1beta1.MeshCertificates.Builder getMeshCertificatesBuilder() { + bitField1_ |= 0x00000020; + onChanged(); + return getMeshCertificatesFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + */ + public com.google.container.v1beta1.MeshCertificatesOrBuilder getMeshCertificatesOrBuilder() { + if (meshCertificatesBuilder_ != null) { + return meshCertificatesBuilder_.getMessageOrBuilder(); + } else { + return meshCertificates_ == null ? + com.google.container.v1beta1.MeshCertificates.getDefaultInstance() : meshCertificates_; + } + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MeshCertificates, com.google.container.v1beta1.MeshCertificates.Builder, com.google.container.v1beta1.MeshCertificatesOrBuilder> + getMeshCertificatesFieldBuilder() { + if (meshCertificatesBuilder_ == null) { + meshCertificatesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MeshCertificates, com.google.container.v1beta1.MeshCertificates.Builder, com.google.container.v1beta1.MeshCertificatesOrBuilder>( + getMeshCertificates(), + getParentForChildren(), + isClean()); + meshCertificates_ = null; + } + return meshCertificatesBuilder_; + } + + private com.google.container.v1beta1.WorkloadALTSConfig workloadAltsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadALTSConfig, com.google.container.v1beta1.WorkloadALTSConfig.Builder, com.google.container.v1beta1.WorkloadALTSConfigOrBuilder> workloadAltsConfigBuilder_; + /** + *
+     * Configuration for direct-path (via ALTS) with workload identity.
+     * 
+ * + * .google.container.v1beta1.WorkloadALTSConfig workload_alts_config = 53; + * @return Whether the workloadAltsConfig field is set. + */ + public boolean hasWorkloadAltsConfig() { + return ((bitField1_ & 0x00000040) != 0); + } + /** + *
+     * Configuration for direct-path (via ALTS) with workload identity.
+     * 
+ * + * .google.container.v1beta1.WorkloadALTSConfig workload_alts_config = 53; + * @return The workloadAltsConfig. + */ + public com.google.container.v1beta1.WorkloadALTSConfig getWorkloadAltsConfig() { + if (workloadAltsConfigBuilder_ == null) { + return workloadAltsConfig_ == null ? com.google.container.v1beta1.WorkloadALTSConfig.getDefaultInstance() : workloadAltsConfig_; + } else { + return workloadAltsConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for direct-path (via ALTS) with workload identity.
+     * 
+ * + * .google.container.v1beta1.WorkloadALTSConfig workload_alts_config = 53; + */ + public Builder setWorkloadAltsConfig(com.google.container.v1beta1.WorkloadALTSConfig value) { + if (workloadAltsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workloadAltsConfig_ = value; + } else { + workloadAltsConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * Configuration for direct-path (via ALTS) with workload identity.
+     * 
+ * + * .google.container.v1beta1.WorkloadALTSConfig workload_alts_config = 53; + */ + public Builder setWorkloadAltsConfig( + com.google.container.v1beta1.WorkloadALTSConfig.Builder builderForValue) { + if (workloadAltsConfigBuilder_ == null) { + workloadAltsConfig_ = builderForValue.build(); + } else { + workloadAltsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * Configuration for direct-path (via ALTS) with workload identity.
+     * 
+ * + * .google.container.v1beta1.WorkloadALTSConfig workload_alts_config = 53; + */ + public Builder mergeWorkloadAltsConfig(com.google.container.v1beta1.WorkloadALTSConfig value) { + if (workloadAltsConfigBuilder_ == null) { + if (((bitField1_ & 0x00000040) != 0) && + workloadAltsConfig_ != null && + workloadAltsConfig_ != com.google.container.v1beta1.WorkloadALTSConfig.getDefaultInstance()) { + getWorkloadAltsConfigBuilder().mergeFrom(value); + } else { + workloadAltsConfig_ = value; + } + } else { + workloadAltsConfigBuilder_.mergeFrom(value); + } + if (workloadAltsConfig_ != null) { + bitField1_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for direct-path (via ALTS) with workload identity.
+     * 
+ * + * .google.container.v1beta1.WorkloadALTSConfig workload_alts_config = 53; + */ + public Builder clearWorkloadAltsConfig() { + bitField1_ = (bitField1_ & ~0x00000040); + workloadAltsConfig_ = null; + if (workloadAltsConfigBuilder_ != null) { + workloadAltsConfigBuilder_.dispose(); + workloadAltsConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for direct-path (via ALTS) with workload identity.
+     * 
+ * + * .google.container.v1beta1.WorkloadALTSConfig workload_alts_config = 53; + */ + public com.google.container.v1beta1.WorkloadALTSConfig.Builder getWorkloadAltsConfigBuilder() { + bitField1_ |= 0x00000040; + onChanged(); + return getWorkloadAltsConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for direct-path (via ALTS) with workload identity.
+     * 
+ * + * .google.container.v1beta1.WorkloadALTSConfig workload_alts_config = 53; + */ + public com.google.container.v1beta1.WorkloadALTSConfigOrBuilder getWorkloadAltsConfigOrBuilder() { + if (workloadAltsConfigBuilder_ != null) { + return workloadAltsConfigBuilder_.getMessageOrBuilder(); + } else { + return workloadAltsConfig_ == null ? + com.google.container.v1beta1.WorkloadALTSConfig.getDefaultInstance() : workloadAltsConfig_; + } + } + /** + *
+     * Configuration for direct-path (via ALTS) with workload identity.
+     * 
+ * + * .google.container.v1beta1.WorkloadALTSConfig workload_alts_config = 53; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadALTSConfig, com.google.container.v1beta1.WorkloadALTSConfig.Builder, com.google.container.v1beta1.WorkloadALTSConfigOrBuilder> + getWorkloadAltsConfigFieldBuilder() { + if (workloadAltsConfigBuilder_ == null) { + workloadAltsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadALTSConfig, com.google.container.v1beta1.WorkloadALTSConfig.Builder, com.google.container.v1beta1.WorkloadALTSConfigOrBuilder>( + getWorkloadAltsConfig(), + getParentForChildren(), + isClean()); + workloadAltsConfig_ = null; + } + return workloadAltsConfigBuilder_; + } + + private com.google.container.v1beta1.CostManagementConfig costManagementConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.CostManagementConfig, com.google.container.v1beta1.CostManagementConfig.Builder, com.google.container.v1beta1.CostManagementConfigOrBuilder> costManagementConfigBuilder_; + /** + *
+     * Configuration for the fine-grained cost management feature.
+     * 
+ * + * .google.container.v1beta1.CostManagementConfig cost_management_config = 45; + * @return Whether the costManagementConfig field is set. + */ + public boolean hasCostManagementConfig() { + return ((bitField1_ & 0x00000080) != 0); + } + /** + *
+     * Configuration for the fine-grained cost management feature.
+     * 
+ * + * .google.container.v1beta1.CostManagementConfig cost_management_config = 45; + * @return The costManagementConfig. + */ + public com.google.container.v1beta1.CostManagementConfig getCostManagementConfig() { + if (costManagementConfigBuilder_ == null) { + return costManagementConfig_ == null ? com.google.container.v1beta1.CostManagementConfig.getDefaultInstance() : costManagementConfig_; + } else { + return costManagementConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for the fine-grained cost management feature.
+     * 
+ * + * .google.container.v1beta1.CostManagementConfig cost_management_config = 45; + */ + public Builder setCostManagementConfig(com.google.container.v1beta1.CostManagementConfig value) { + if (costManagementConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + costManagementConfig_ = value; + } else { + costManagementConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * Configuration for the fine-grained cost management feature.
+     * 
+ * + * .google.container.v1beta1.CostManagementConfig cost_management_config = 45; + */ + public Builder setCostManagementConfig( + com.google.container.v1beta1.CostManagementConfig.Builder builderForValue) { + if (costManagementConfigBuilder_ == null) { + costManagementConfig_ = builderForValue.build(); + } else { + costManagementConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * Configuration for the fine-grained cost management feature.
+     * 
+ * + * .google.container.v1beta1.CostManagementConfig cost_management_config = 45; + */ + public Builder mergeCostManagementConfig(com.google.container.v1beta1.CostManagementConfig value) { + if (costManagementConfigBuilder_ == null) { + if (((bitField1_ & 0x00000080) != 0) && + costManagementConfig_ != null && + costManagementConfig_ != com.google.container.v1beta1.CostManagementConfig.getDefaultInstance()) { + getCostManagementConfigBuilder().mergeFrom(value); + } else { + costManagementConfig_ = value; + } + } else { + costManagementConfigBuilder_.mergeFrom(value); + } + if (costManagementConfig_ != null) { + bitField1_ |= 0x00000080; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for the fine-grained cost management feature.
+     * 
+ * + * .google.container.v1beta1.CostManagementConfig cost_management_config = 45; + */ + public Builder clearCostManagementConfig() { + bitField1_ = (bitField1_ & ~0x00000080); + costManagementConfig_ = null; + if (costManagementConfigBuilder_ != null) { + costManagementConfigBuilder_.dispose(); + costManagementConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for the fine-grained cost management feature.
+     * 
+ * + * .google.container.v1beta1.CostManagementConfig cost_management_config = 45; + */ + public com.google.container.v1beta1.CostManagementConfig.Builder getCostManagementConfigBuilder() { + bitField1_ |= 0x00000080; + onChanged(); + return getCostManagementConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for the fine-grained cost management feature.
+     * 
+ * + * .google.container.v1beta1.CostManagementConfig cost_management_config = 45; + */ + public com.google.container.v1beta1.CostManagementConfigOrBuilder getCostManagementConfigOrBuilder() { + if (costManagementConfigBuilder_ != null) { + return costManagementConfigBuilder_.getMessageOrBuilder(); + } else { + return costManagementConfig_ == null ? + com.google.container.v1beta1.CostManagementConfig.getDefaultInstance() : costManagementConfig_; + } + } + /** + *
+     * Configuration for the fine-grained cost management feature.
+     * 
+ * + * .google.container.v1beta1.CostManagementConfig cost_management_config = 45; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.CostManagementConfig, com.google.container.v1beta1.CostManagementConfig.Builder, com.google.container.v1beta1.CostManagementConfigOrBuilder> + getCostManagementConfigFieldBuilder() { + if (costManagementConfigBuilder_ == null) { + costManagementConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.CostManagementConfig, com.google.container.v1beta1.CostManagementConfig.Builder, com.google.container.v1beta1.CostManagementConfigOrBuilder>( + getCostManagementConfig(), + getParentForChildren(), + isClean()); + costManagementConfig_ = null; + } + return costManagementConfigBuilder_; + } + + 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 ((bitField1_ & 0x00000100) != 0); + } + /** + *
+     * 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; + } else { + clusterTelemetryBuilder_.setMessage(value); + } + bitField1_ |= 0x00000100; + onChanged(); + 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(); + } else { + clusterTelemetryBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000100; + onChanged(); + 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 (((bitField1_ & 0x00000100) != 0) && + clusterTelemetry_ != null && + clusterTelemetry_ != com.google.container.v1beta1.ClusterTelemetry.getDefaultInstance()) { + getClusterTelemetryBuilder().mergeFrom(value); + } else { + clusterTelemetry_ = value; + } + } else { + clusterTelemetryBuilder_.mergeFrom(value); + } + if (clusterTelemetry_ != null) { + bitField1_ |= 0x00000100; + onChanged(); + } + return this; + } + /** + *
+     * Telemetry integration for the cluster.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; + */ + public Builder clearClusterTelemetry() { + bitField1_ = (bitField1_ & ~0x00000100); + clusterTelemetry_ = null; + if (clusterTelemetryBuilder_ != null) { + clusterTelemetryBuilder_.dispose(); + clusterTelemetryBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Telemetry integration for the cluster.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry cluster_telemetry = 46; + */ + public com.google.container.v1beta1.ClusterTelemetry.Builder getClusterTelemetryBuilder() { + bitField1_ |= 0x00000100; + 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 ((bitField1_ & 0x00000200) != 0); + } + /** + *
+     * 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; + } else { + tpuConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00000200; + onChanged(); + 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(); + } else { + tpuConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000200; + onChanged(); + 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 (((bitField1_ & 0x00000200) != 0) && + tpuConfig_ != null && + tpuConfig_ != com.google.container.v1beta1.TpuConfig.getDefaultInstance()) { + getTpuConfigBuilder().mergeFrom(value); + } else { + tpuConfig_ = value; + } + } else { + tpuConfigBuilder_.mergeFrom(value); + } + if (tpuConfig_ != null) { + bitField1_ |= 0x00000200; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for Cloud TPU support;
+     * 
+ * + * .google.container.v1beta1.TpuConfig tpu_config = 47; + */ + public Builder clearTpuConfig() { + bitField1_ = (bitField1_ & ~0x00000200); + tpuConfig_ = null; + if (tpuConfigBuilder_ != null) { + tpuConfigBuilder_.dispose(); + tpuConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for Cloud TPU support;
+     * 
+ * + * .google.container.v1beta1.TpuConfig tpu_config = 47; + */ + public com.google.container.v1beta1.TpuConfig.Builder getTpuConfigBuilder() { + bitField1_ |= 0x00000200; + 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 ((bitField1_ & 0x00000400) != 0); + } + /** + *
+     * 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; + } else { + notificationConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00000400; + onChanged(); + 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(); + } else { + notificationConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000400; + onChanged(); + 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 (((bitField1_ & 0x00000400) != 0) && + notificationConfig_ != null && + notificationConfig_ != com.google.container.v1beta1.NotificationConfig.getDefaultInstance()) { + getNotificationConfigBuilder().mergeFrom(value); + } else { + notificationConfig_ = value; + } + } else { + notificationConfigBuilder_.mergeFrom(value); + } + if (notificationConfig_ != null) { + bitField1_ |= 0x00000400; + onChanged(); + } + return this; + } + /** + *
+     * Notification configuration of the cluster.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig notification_config = 49; + */ + public Builder clearNotificationConfig() { + bitField1_ = (bitField1_ & ~0x00000400); + notificationConfig_ = null; + if (notificationConfigBuilder_ != null) { + notificationConfigBuilder_.dispose(); + notificationConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Notification configuration of the cluster.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig notification_config = 49; + */ + public com.google.container.v1beta1.NotificationConfig.Builder getNotificationConfigBuilder() { + bitField1_ |= 0x00000400; + 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.
+     * All the nodes in the cluster will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 50; + * @return Whether the confidentialNodes field is set. + */ + public boolean hasConfidentialNodes() { + return ((bitField1_ & 0x00000800) != 0); + } + /** + *
+     * Configuration of Confidential Nodes.
+     * All the nodes in the cluster will be Confidential VM once enabled.
+     * 
+ * + * .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.
+     * All the nodes in the cluster will be Confidential VM once enabled.
+     * 
+ * + * .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; + } else { + confidentialNodesBuilder_.setMessage(value); + } + bitField1_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * Configuration of Confidential Nodes.
+     * All the nodes in the cluster will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 50; + */ + public Builder setConfidentialNodes( + com.google.container.v1beta1.ConfidentialNodes.Builder builderForValue) { + if (confidentialNodesBuilder_ == null) { + confidentialNodes_ = builderForValue.build(); + } else { + confidentialNodesBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * Configuration of Confidential Nodes.
+     * All the nodes in the cluster will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 50; + */ + public Builder mergeConfidentialNodes(com.google.container.v1beta1.ConfidentialNodes value) { + if (confidentialNodesBuilder_ == null) { + if (((bitField1_ & 0x00000800) != 0) && + confidentialNodes_ != null && + confidentialNodes_ != com.google.container.v1beta1.ConfidentialNodes.getDefaultInstance()) { + getConfidentialNodesBuilder().mergeFrom(value); + } else { + confidentialNodes_ = value; + } + } else { + confidentialNodesBuilder_.mergeFrom(value); + } + if (confidentialNodes_ != null) { + bitField1_ |= 0x00000800; + onChanged(); + } + return this; + } + /** + *
+     * Configuration of Confidential Nodes.
+     * All the nodes in the cluster will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 50; + */ + public Builder clearConfidentialNodes() { + bitField1_ = (bitField1_ & ~0x00000800); + confidentialNodes_ = null; + if (confidentialNodesBuilder_ != null) { + confidentialNodesBuilder_.dispose(); + confidentialNodesBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration of Confidential Nodes.
+     * All the nodes in the cluster will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 50; + */ + public com.google.container.v1beta1.ConfidentialNodes.Builder getConfidentialNodesBuilder() { + bitField1_ |= 0x00000800; + onChanged(); + return getConfidentialNodesFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration of Confidential Nodes.
+     * All the nodes in the cluster will be Confidential VM once enabled.
+     * 
+ * + * .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.
+     * All the nodes in the cluster will be Confidential VM once enabled.
+     * 
+ * + * .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 com.google.container.v1beta1.IdentityServiceConfig identityServiceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.IdentityServiceConfig, com.google.container.v1beta1.IdentityServiceConfig.Builder, com.google.container.v1beta1.IdentityServiceConfigOrBuilder> identityServiceConfigBuilder_; + /** + *
+     * Configuration for Identity Service component.
+     * 
+ * + * .google.container.v1beta1.IdentityServiceConfig identity_service_config = 54; + * @return Whether the identityServiceConfig field is set. + */ + public boolean hasIdentityServiceConfig() { + return ((bitField1_ & 0x00001000) != 0); + } + /** + *
+     * Configuration for Identity Service component.
+     * 
+ * + * .google.container.v1beta1.IdentityServiceConfig identity_service_config = 54; + * @return The identityServiceConfig. + */ + public com.google.container.v1beta1.IdentityServiceConfig getIdentityServiceConfig() { + if (identityServiceConfigBuilder_ == null) { + return identityServiceConfig_ == null ? com.google.container.v1beta1.IdentityServiceConfig.getDefaultInstance() : identityServiceConfig_; + } else { + return identityServiceConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for Identity Service component.
+     * 
+ * + * .google.container.v1beta1.IdentityServiceConfig identity_service_config = 54; + */ + public Builder setIdentityServiceConfig(com.google.container.v1beta1.IdentityServiceConfig value) { + if (identityServiceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + identityServiceConfig_ = value; + } else { + identityServiceConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00001000; + onChanged(); + return this; + } + /** + *
+     * Configuration for Identity Service component.
+     * 
+ * + * .google.container.v1beta1.IdentityServiceConfig identity_service_config = 54; + */ + public Builder setIdentityServiceConfig( + com.google.container.v1beta1.IdentityServiceConfig.Builder builderForValue) { + if (identityServiceConfigBuilder_ == null) { + identityServiceConfig_ = builderForValue.build(); + } else { + identityServiceConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00001000; + onChanged(); + return this; + } + /** + *
+     * Configuration for Identity Service component.
+     * 
+ * + * .google.container.v1beta1.IdentityServiceConfig identity_service_config = 54; + */ + public Builder mergeIdentityServiceConfig(com.google.container.v1beta1.IdentityServiceConfig value) { + if (identityServiceConfigBuilder_ == null) { + if (((bitField1_ & 0x00001000) != 0) && + identityServiceConfig_ != null && + identityServiceConfig_ != com.google.container.v1beta1.IdentityServiceConfig.getDefaultInstance()) { + getIdentityServiceConfigBuilder().mergeFrom(value); + } else { + identityServiceConfig_ = value; + } + } else { + identityServiceConfigBuilder_.mergeFrom(value); + } + if (identityServiceConfig_ != null) { + bitField1_ |= 0x00001000; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for Identity Service component.
+     * 
+ * + * .google.container.v1beta1.IdentityServiceConfig identity_service_config = 54; + */ + public Builder clearIdentityServiceConfig() { + bitField1_ = (bitField1_ & ~0x00001000); + identityServiceConfig_ = null; + if (identityServiceConfigBuilder_ != null) { + identityServiceConfigBuilder_.dispose(); + identityServiceConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for Identity Service component.
+     * 
+ * + * .google.container.v1beta1.IdentityServiceConfig identity_service_config = 54; + */ + public com.google.container.v1beta1.IdentityServiceConfig.Builder getIdentityServiceConfigBuilder() { + bitField1_ |= 0x00001000; + onChanged(); + return getIdentityServiceConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for Identity Service component.
+     * 
+ * + * .google.container.v1beta1.IdentityServiceConfig identity_service_config = 54; + */ + public com.google.container.v1beta1.IdentityServiceConfigOrBuilder getIdentityServiceConfigOrBuilder() { + if (identityServiceConfigBuilder_ != null) { + return identityServiceConfigBuilder_.getMessageOrBuilder(); + } else { + return identityServiceConfig_ == null ? + com.google.container.v1beta1.IdentityServiceConfig.getDefaultInstance() : identityServiceConfig_; + } + } + /** + *
+     * Configuration for Identity Service component.
+     * 
+ * + * .google.container.v1beta1.IdentityServiceConfig identity_service_config = 54; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.IdentityServiceConfig, com.google.container.v1beta1.IdentityServiceConfig.Builder, com.google.container.v1beta1.IdentityServiceConfigOrBuilder> + getIdentityServiceConfigFieldBuilder() { + if (identityServiceConfigBuilder_ == null) { + identityServiceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.IdentityServiceConfig, com.google.container.v1beta1.IdentityServiceConfig.Builder, com.google.container.v1beta1.IdentityServiceConfigOrBuilder>( + getIdentityServiceConfig(), + getParentForChildren(), + isClean()); + identityServiceConfig_ = null; + } + return identityServiceConfigBuilder_; + } + + 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; + bitField1_ |= 0x00002000; + 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(); + bitField1_ = (bitField1_ & ~0x00002000); + 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; + bitField1_ |= 0x00002000; + 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]; + * @deprecated google.container.v1beta1.Cluster.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2152 + * @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]; + * @deprecated google.container.v1beta1.Cluster.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2152 + * @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]; + * @deprecated google.container.v1beta1.Cluster.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2152 + * @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; + bitField1_ |= 0x00004000; + 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]; + * @deprecated google.container.v1beta1.Cluster.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2152 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField1_ = (bitField1_ & ~0x00004000); + 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]; + * @deprecated google.container.v1beta1.Cluster.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2152 + * @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; + bitField1_ |= 0x00004000; + 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; + bitField1_ |= 0x00008000; + 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(); + bitField1_ = (bitField1_ & ~0x00008000); + 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; + bitField1_ |= 0x00008000; + 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; + bitField1_ |= 0x00010000; + 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(); + bitField1_ = (bitField1_ & ~0x00010000); + 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; + bitField1_ |= 0x00010000; + 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; + bitField1_ |= 0x00020000; + 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(); + bitField1_ = (bitField1_ & ~0x00020000); + 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; + bitField1_ |= 0x00020000; + 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]; + * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2185 + * @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]; + * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2185 + * @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]; + * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2185 + * @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; + bitField1_ |= 0x00040000; + 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]; + * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2185 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearCurrentNodeVersion() { + currentNodeVersion_ = getDefaultInstance().getCurrentNodeVersion(); + bitField1_ = (bitField1_ & ~0x00040000); + 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]; + * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2185 + * @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; + bitField1_ |= 0x00040000; + 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; + bitField1_ |= 0x00080000; + 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(); + bitField1_ = (bitField1_ & ~0x00080000); + 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; + bitField1_ |= 0x00080000; + 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; + bitField1_ |= 0x00100000; + 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() { + com.google.container.v1beta1.Cluster.Status result = com.google.container.v1beta1.Cluster.Status.forNumber(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(); + } + bitField1_ |= 0x00100000; + 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() { + bitField1_ = (bitField1_ & ~0x00100000); + 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]; + * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2197 + * @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]; + * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2197 + * @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]; + * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2197 + * @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; + bitField1_ |= 0x00200000; + 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]; + * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2197 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearStatusMessage() { + statusMessage_ = getDefaultInstance().getStatusMessage(); + bitField1_ = (bitField1_ & ~0x00200000); + 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]; + * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2197 + * @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; + bitField1_ |= 0x00200000; + 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; + bitField1_ |= 0x00400000; + 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() { + bitField1_ = (bitField1_ & ~0x00400000); + 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; + bitField1_ |= 0x00800000; + 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(); + bitField1_ = (bitField1_ & ~0x00800000); + 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; + bitField1_ |= 0x00800000; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList instanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureInstanceGroupUrlsIsMutable() { + if (!instanceGroupUrls_.isModifiable()) { + instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(instanceGroupUrls_); + } + bitField1_ |= 0x01000000; + } + /** + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2213 + * @return A list containing the instanceGroupUrls. + */ + @java.lang.Deprecated public com.google.protobuf.ProtocolStringList + getInstanceGroupUrlsList() { + instanceGroupUrls_.makeImmutable(); + return instanceGroupUrls_; + } + /** + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2213 + * @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]; + * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2213 + * @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]; + * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2213 + * @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]; + * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2213 + * @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); + bitField1_ |= 0x01000000; + onChanged(); + return this; + } + /** + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2213 + * @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); + bitField1_ |= 0x01000000; + onChanged(); + return this; + } + /** + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2213 + * @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_); + bitField1_ |= 0x01000000; + onChanged(); + return this; + } + /** + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2213 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearInstanceGroupUrls() { + instanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField1_ = (bitField1_ & ~0x01000000);; + onChanged(); + return this; + } + /** + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2213 + * @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); + bitField1_ |= 0x01000000; + 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]; + * @deprecated google.container.v1beta1.Cluster.current_node_count is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2217 + * @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]; + * @deprecated google.container.v1beta1.Cluster.current_node_count is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2217 + * @param value The currentNodeCount to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setCurrentNodeCount(int value) { + + currentNodeCount_ = value; + bitField1_ |= 0x02000000; + 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]; + * @deprecated google.container.v1beta1.Cluster.current_node_count is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2217 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearCurrentNodeCount() { + bitField1_ = (bitField1_ & ~0x02000000); + 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; + bitField1_ |= 0x04000000; + 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(); + bitField1_ = (bitField1_ & ~0x04000000); + 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; + bitField1_ |= 0x04000000; + 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; + bitField1_ |= 0x08000000; + 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(); + bitField1_ = (bitField1_ & ~0x08000000); + 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; + bitField1_ |= 0x08000000; + 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; + bitField1_ |= 0x10000000; + 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() { + bitField1_ = (bitField1_ & ~0x10000000); + 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; + bitField1_ |= 0x20000000; + 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(); + bitField1_ = (bitField1_ & ~0x20000000); + 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; + bitField1_ |= 0x20000000; + 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 ((bitField1_ & 0x40000000) != 0); + } + /** + *
+     * 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; + } else { + databaseEncryptionBuilder_.setMessage(value); + } + bitField1_ |= 0x40000000; + onChanged(); + 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(); + } else { + databaseEncryptionBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x40000000; + onChanged(); + 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 (((bitField1_ & 0x40000000) != 0) && + databaseEncryption_ != null && + databaseEncryption_ != com.google.container.v1beta1.DatabaseEncryption.getDefaultInstance()) { + getDatabaseEncryptionBuilder().mergeFrom(value); + } else { + databaseEncryption_ = value; + } + } else { + databaseEncryptionBuilder_.mergeFrom(value); + } + if (databaseEncryption_ != null) { + bitField1_ |= 0x40000000; + onChanged(); + } + return this; + } + /** + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; + */ + public Builder clearDatabaseEncryption() { + bitField1_ = (bitField1_ & ~0x40000000); + databaseEncryption_ = null; + if (databaseEncryptionBuilder_ != null) { + databaseEncryptionBuilder_.dispose(); + databaseEncryptionBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption database_encryption = 38; + */ + public com.google.container.v1beta1.DatabaseEncryption.Builder getDatabaseEncryptionBuilder() { + bitField1_ |= 0x40000000; + 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 (!((bitField1_ & 0x80000000) != 0)) { + conditions_ = new java.util.ArrayList(conditions_); + bitField1_ |= 0x80000000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.StatusCondition, com.google.container.v1beta1.StatusCondition.Builder, com.google.container.v1beta1.StatusConditionOrBuilder> conditionsBuilder_; + + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public java.util.List getConditionsList() { + if (conditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conditions_); + } else { + return conditionsBuilder_.getMessageList(); + } + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public int getConditionsCount() { + if (conditionsBuilder_ == null) { + return conditions_.size(); + } else { + return conditionsBuilder_.getCount(); + } + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public com.google.container.v1beta1.StatusCondition getConditions(int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); + } else { + return conditionsBuilder_.getMessage(index); + } + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public Builder setConditions( + int index, com.google.container.v1beta1.StatusCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.set(index, value); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public Builder setConditions( + int index, com.google.container.v1beta1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.set(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public Builder addConditions(com.google.container.v1beta1.StatusCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(value); + onChanged(); + } else { + conditionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public Builder addConditions( + int index, com.google.container.v1beta1.StatusCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(index, value); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public Builder addConditions( + com.google.container.v1beta1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public Builder addConditions( + int index, com.google.container.v1beta1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public Builder addAllConditions( + java.lang.Iterable values) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, conditions_); + onChanged(); + } else { + conditionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public Builder clearConditions() { + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField1_ = (bitField1_ & ~0x80000000); + onChanged(); + } else { + conditionsBuilder_.clear(); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public Builder removeConditions(int index) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.remove(index); + onChanged(); + } else { + conditionsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public com.google.container.v1beta1.StatusCondition.Builder getConditionsBuilder( + int index) { + return getConditionsFieldBuilder().getBuilder(index); + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public com.google.container.v1beta1.StatusConditionOrBuilder getConditionsOrBuilder( + int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); } else { + return conditionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public java.util.List + getConditionsOrBuilderList() { + if (conditionsBuilder_ != null) { + return conditionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conditions_); + } + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public com.google.container.v1beta1.StatusCondition.Builder addConditionsBuilder() { + return getConditionsFieldBuilder().addBuilder( + com.google.container.v1beta1.StatusCondition.getDefaultInstance()); + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public com.google.container.v1beta1.StatusCondition.Builder addConditionsBuilder( + int index) { + return getConditionsFieldBuilder().addBuilder( + index, com.google.container.v1beta1.StatusCondition.getDefaultInstance()); + } + /** + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1beta1.StatusCondition conditions = 118; + */ + public java.util.List + getConditionsBuilderList() { + return getConditionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.StatusCondition, com.google.container.v1beta1.StatusCondition.Builder, com.google.container.v1beta1.StatusConditionOrBuilder> + getConditionsFieldBuilder() { + if (conditionsBuilder_ == null) { + conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.StatusCondition, com.google.container.v1beta1.StatusCondition.Builder, com.google.container.v1beta1.StatusConditionOrBuilder>( + conditions_, + ((bitField1_ & 0x80000000) != 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 ((bitField2_ & 0x00000001) != 0); + } + /** + *
+     * 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; + } else { + masterBuilder_.setMessage(value); + } + bitField2_ |= 0x00000001; + onChanged(); + 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(); + } else { + masterBuilder_.setMessage(builderForValue.build()); + } + bitField2_ |= 0x00000001; + onChanged(); + 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 (((bitField2_ & 0x00000001) != 0) && + master_ != null && + master_ != com.google.container.v1beta1.Master.getDefaultInstance()) { + getMasterBuilder().mergeFrom(value); + } else { + master_ = value; + } + } else { + masterBuilder_.mergeFrom(value); + } + if (master_ != null) { + bitField2_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for master components.
+     * 
+ * + * .google.container.v1beta1.Master master = 124; + */ + public Builder clearMaster() { + bitField2_ = (bitField2_ & ~0x00000001); + master_ = null; + if (masterBuilder_ != null) { + masterBuilder_.dispose(); + masterBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for master components.
+     * 
+ * + * .google.container.v1beta1.Master master = 124; + */ + public com.google.container.v1beta1.Master.Builder getMasterBuilder() { + bitField2_ |= 0x00000001; + 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_; + } + + private com.google.container.v1beta1.Autopilot autopilot_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.Autopilot, com.google.container.v1beta1.Autopilot.Builder, com.google.container.v1beta1.AutopilotOrBuilder> autopilotBuilder_; + /** + *
+     * Autopilot configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.Autopilot autopilot = 128; + * @return Whether the autopilot field is set. + */ + public boolean hasAutopilot() { + return ((bitField2_ & 0x00000002) != 0); + } + /** + *
+     * Autopilot configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.Autopilot autopilot = 128; + * @return The autopilot. + */ + public com.google.container.v1beta1.Autopilot getAutopilot() { + if (autopilotBuilder_ == null) { + return autopilot_ == null ? com.google.container.v1beta1.Autopilot.getDefaultInstance() : autopilot_; + } else { + return autopilotBuilder_.getMessage(); + } + } + /** + *
+     * Autopilot configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.Autopilot autopilot = 128; + */ + public Builder setAutopilot(com.google.container.v1beta1.Autopilot value) { + if (autopilotBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autopilot_ = value; + } else { + autopilotBuilder_.setMessage(value); + } + bitField2_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Autopilot configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.Autopilot autopilot = 128; + */ + public Builder setAutopilot( + com.google.container.v1beta1.Autopilot.Builder builderForValue) { + if (autopilotBuilder_ == null) { + autopilot_ = builderForValue.build(); + } else { + autopilotBuilder_.setMessage(builderForValue.build()); + } + bitField2_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Autopilot configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.Autopilot autopilot = 128; + */ + public Builder mergeAutopilot(com.google.container.v1beta1.Autopilot value) { + if (autopilotBuilder_ == null) { + if (((bitField2_ & 0x00000002) != 0) && + autopilot_ != null && + autopilot_ != com.google.container.v1beta1.Autopilot.getDefaultInstance()) { + getAutopilotBuilder().mergeFrom(value); + } else { + autopilot_ = value; + } + } else { + autopilotBuilder_.mergeFrom(value); + } + if (autopilot_ != null) { + bitField2_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + *
+     * Autopilot configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.Autopilot autopilot = 128; + */ + public Builder clearAutopilot() { + bitField2_ = (bitField2_ & ~0x00000002); + autopilot_ = null; + if (autopilotBuilder_ != null) { + autopilotBuilder_.dispose(); + autopilotBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Autopilot configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.Autopilot autopilot = 128; + */ + public com.google.container.v1beta1.Autopilot.Builder getAutopilotBuilder() { + bitField2_ |= 0x00000002; + onChanged(); + return getAutopilotFieldBuilder().getBuilder(); + } + /** + *
+     * Autopilot configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.Autopilot autopilot = 128; + */ + public com.google.container.v1beta1.AutopilotOrBuilder getAutopilotOrBuilder() { + if (autopilotBuilder_ != null) { + return autopilotBuilder_.getMessageOrBuilder(); + } else { + return autopilot_ == null ? + com.google.container.v1beta1.Autopilot.getDefaultInstance() : autopilot_; + } + } + /** + *
+     * Autopilot configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.Autopilot autopilot = 128; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.Autopilot, com.google.container.v1beta1.Autopilot.Builder, com.google.container.v1beta1.AutopilotOrBuilder> + getAutopilotFieldBuilder() { + if (autopilotBuilder_ == null) { + autopilotBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.Autopilot, com.google.container.v1beta1.Autopilot.Builder, com.google.container.v1beta1.AutopilotOrBuilder>( + getAutopilot(), + getParentForChildren(), + isClean()); + autopilot_ = null; + } + return autopilotBuilder_; + } + + private java.lang.Object id_ = ""; + /** + *
+     * Output only. Unique id for the cluster.
+     * 
+ * + * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. Unique id for the cluster.
+     * 
+ * + * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. Unique id for the cluster.
+     * 
+ * + * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField2_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Output only. Unique id for the cluster.
+     * 
+ * + * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField2_ = (bitField2_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Output only. Unique id for the cluster.
+     * 
+ * + * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField2_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.container.v1beta1.NodePoolDefaults nodePoolDefaults_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolDefaults, com.google.container.v1beta1.NodePoolDefaults.Builder, com.google.container.v1beta1.NodePoolDefaultsOrBuilder> nodePoolDefaultsBuilder_; + /** + *
+     * Default NodePool settings for the entire cluster. These settings are
+     * overridden if specified on the specific NodePool object.
+     * 
+ * + * optional .google.container.v1beta1.NodePoolDefaults node_pool_defaults = 131; + * @return Whether the nodePoolDefaults field is set. + */ + public boolean hasNodePoolDefaults() { + return ((bitField2_ & 0x00000008) != 0); + } + /** + *
+     * Default NodePool settings for the entire cluster. These settings are
+     * overridden if specified on the specific NodePool object.
+     * 
+ * + * optional .google.container.v1beta1.NodePoolDefaults node_pool_defaults = 131; + * @return The nodePoolDefaults. + */ + public com.google.container.v1beta1.NodePoolDefaults getNodePoolDefaults() { + if (nodePoolDefaultsBuilder_ == null) { + return nodePoolDefaults_ == null ? com.google.container.v1beta1.NodePoolDefaults.getDefaultInstance() : nodePoolDefaults_; + } else { + return nodePoolDefaultsBuilder_.getMessage(); + } + } + /** + *
+     * Default NodePool settings for the entire cluster. These settings are
+     * overridden if specified on the specific NodePool object.
+     * 
+ * + * optional .google.container.v1beta1.NodePoolDefaults node_pool_defaults = 131; + */ + public Builder setNodePoolDefaults(com.google.container.v1beta1.NodePoolDefaults value) { + if (nodePoolDefaultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodePoolDefaults_ = value; + } else { + nodePoolDefaultsBuilder_.setMessage(value); + } + bitField2_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Default NodePool settings for the entire cluster. These settings are
+     * overridden if specified on the specific NodePool object.
+     * 
+ * + * optional .google.container.v1beta1.NodePoolDefaults node_pool_defaults = 131; + */ + public Builder setNodePoolDefaults( + com.google.container.v1beta1.NodePoolDefaults.Builder builderForValue) { + if (nodePoolDefaultsBuilder_ == null) { + nodePoolDefaults_ = builderForValue.build(); + } else { + nodePoolDefaultsBuilder_.setMessage(builderForValue.build()); + } + bitField2_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Default NodePool settings for the entire cluster. These settings are
+     * overridden if specified on the specific NodePool object.
+     * 
+ * + * optional .google.container.v1beta1.NodePoolDefaults node_pool_defaults = 131; + */ + public Builder mergeNodePoolDefaults(com.google.container.v1beta1.NodePoolDefaults value) { + if (nodePoolDefaultsBuilder_ == null) { + if (((bitField2_ & 0x00000008) != 0) && + nodePoolDefaults_ != null && + nodePoolDefaults_ != com.google.container.v1beta1.NodePoolDefaults.getDefaultInstance()) { + getNodePoolDefaultsBuilder().mergeFrom(value); + } else { + nodePoolDefaults_ = value; + } + } else { + nodePoolDefaultsBuilder_.mergeFrom(value); + } + if (nodePoolDefaults_ != null) { + bitField2_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + *
+     * Default NodePool settings for the entire cluster. These settings are
+     * overridden if specified on the specific NodePool object.
+     * 
+ * + * optional .google.container.v1beta1.NodePoolDefaults node_pool_defaults = 131; + */ + public Builder clearNodePoolDefaults() { + bitField2_ = (bitField2_ & ~0x00000008); + nodePoolDefaults_ = null; + if (nodePoolDefaultsBuilder_ != null) { + nodePoolDefaultsBuilder_.dispose(); + nodePoolDefaultsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Default NodePool settings for the entire cluster. These settings are
+     * overridden if specified on the specific NodePool object.
+     * 
+ * + * optional .google.container.v1beta1.NodePoolDefaults node_pool_defaults = 131; + */ + public com.google.container.v1beta1.NodePoolDefaults.Builder getNodePoolDefaultsBuilder() { + bitField2_ |= 0x00000008; + onChanged(); + return getNodePoolDefaultsFieldBuilder().getBuilder(); + } + /** + *
+     * Default NodePool settings for the entire cluster. These settings are
+     * overridden if specified on the specific NodePool object.
+     * 
+ * + * optional .google.container.v1beta1.NodePoolDefaults node_pool_defaults = 131; + */ + public com.google.container.v1beta1.NodePoolDefaultsOrBuilder getNodePoolDefaultsOrBuilder() { + if (nodePoolDefaultsBuilder_ != null) { + return nodePoolDefaultsBuilder_.getMessageOrBuilder(); + } else { + return nodePoolDefaults_ == null ? + com.google.container.v1beta1.NodePoolDefaults.getDefaultInstance() : nodePoolDefaults_; + } + } + /** + *
+     * Default NodePool settings for the entire cluster. These settings are
+     * overridden if specified on the specific NodePool object.
+     * 
+ * + * optional .google.container.v1beta1.NodePoolDefaults node_pool_defaults = 131; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolDefaults, com.google.container.v1beta1.NodePoolDefaults.Builder, com.google.container.v1beta1.NodePoolDefaultsOrBuilder> + getNodePoolDefaultsFieldBuilder() { + if (nodePoolDefaultsBuilder_ == null) { + nodePoolDefaultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolDefaults, com.google.container.v1beta1.NodePoolDefaults.Builder, com.google.container.v1beta1.NodePoolDefaultsOrBuilder>( + getNodePoolDefaults(), + getParentForChildren(), + isClean()); + nodePoolDefaults_ = null; + } + return nodePoolDefaultsBuilder_; + } + + private com.google.container.v1beta1.LoggingConfig loggingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.LoggingConfig, com.google.container.v1beta1.LoggingConfig.Builder, com.google.container.v1beta1.LoggingConfigOrBuilder> loggingConfigBuilder_; + /** + *
+     * Logging configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.LoggingConfig logging_config = 132; + * @return Whether the loggingConfig field is set. + */ + public boolean hasLoggingConfig() { + return ((bitField2_ & 0x00000010) != 0); + } + /** + *
+     * Logging configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.LoggingConfig logging_config = 132; + * @return The loggingConfig. + */ + public com.google.container.v1beta1.LoggingConfig getLoggingConfig() { + if (loggingConfigBuilder_ == null) { + return loggingConfig_ == null ? com.google.container.v1beta1.LoggingConfig.getDefaultInstance() : loggingConfig_; + } else { + return loggingConfigBuilder_.getMessage(); + } + } + /** + *
+     * Logging configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.LoggingConfig logging_config = 132; + */ + public Builder setLoggingConfig(com.google.container.v1beta1.LoggingConfig value) { + if (loggingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + loggingConfig_ = value; + } else { + loggingConfigBuilder_.setMessage(value); + } + bitField2_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Logging configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.LoggingConfig logging_config = 132; + */ + public Builder setLoggingConfig( + com.google.container.v1beta1.LoggingConfig.Builder builderForValue) { + if (loggingConfigBuilder_ == null) { + loggingConfig_ = builderForValue.build(); + } else { + loggingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField2_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Logging configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.LoggingConfig logging_config = 132; + */ + public Builder mergeLoggingConfig(com.google.container.v1beta1.LoggingConfig value) { + if (loggingConfigBuilder_ == null) { + if (((bitField2_ & 0x00000010) != 0) && + loggingConfig_ != null && + loggingConfig_ != com.google.container.v1beta1.LoggingConfig.getDefaultInstance()) { + getLoggingConfigBuilder().mergeFrom(value); + } else { + loggingConfig_ = value; + } + } else { + loggingConfigBuilder_.mergeFrom(value); + } + if (loggingConfig_ != null) { + bitField2_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + *
+     * Logging configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.LoggingConfig logging_config = 132; + */ + public Builder clearLoggingConfig() { + bitField2_ = (bitField2_ & ~0x00000010); + loggingConfig_ = null; + if (loggingConfigBuilder_ != null) { + loggingConfigBuilder_.dispose(); + loggingConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Logging configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.LoggingConfig logging_config = 132; + */ + public com.google.container.v1beta1.LoggingConfig.Builder getLoggingConfigBuilder() { + bitField2_ |= 0x00000010; + onChanged(); + return getLoggingConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Logging configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.LoggingConfig logging_config = 132; + */ + public com.google.container.v1beta1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { + if (loggingConfigBuilder_ != null) { + return loggingConfigBuilder_.getMessageOrBuilder(); + } else { + return loggingConfig_ == null ? + com.google.container.v1beta1.LoggingConfig.getDefaultInstance() : loggingConfig_; + } + } + /** + *
+     * Logging configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.LoggingConfig logging_config = 132; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.LoggingConfig, com.google.container.v1beta1.LoggingConfig.Builder, com.google.container.v1beta1.LoggingConfigOrBuilder> + getLoggingConfigFieldBuilder() { + if (loggingConfigBuilder_ == null) { + loggingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.LoggingConfig, com.google.container.v1beta1.LoggingConfig.Builder, com.google.container.v1beta1.LoggingConfigOrBuilder>( + getLoggingConfig(), + getParentForChildren(), + isClean()); + loggingConfig_ = null; + } + return loggingConfigBuilder_; + } + + private com.google.container.v1beta1.MonitoringConfig monitoringConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MonitoringConfig, com.google.container.v1beta1.MonitoringConfig.Builder, com.google.container.v1beta1.MonitoringConfigOrBuilder> monitoringConfigBuilder_; + /** + *
+     * Monitoring configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.MonitoringConfig monitoring_config = 133; + * @return Whether the monitoringConfig field is set. + */ + public boolean hasMonitoringConfig() { + return ((bitField2_ & 0x00000020) != 0); + } + /** + *
+     * Monitoring configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.MonitoringConfig monitoring_config = 133; + * @return The monitoringConfig. + */ + public com.google.container.v1beta1.MonitoringConfig getMonitoringConfig() { + if (monitoringConfigBuilder_ == null) { + return monitoringConfig_ == null ? com.google.container.v1beta1.MonitoringConfig.getDefaultInstance() : monitoringConfig_; + } else { + return monitoringConfigBuilder_.getMessage(); + } + } + /** + *
+     * Monitoring configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.MonitoringConfig monitoring_config = 133; + */ + public Builder setMonitoringConfig(com.google.container.v1beta1.MonitoringConfig value) { + if (monitoringConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + monitoringConfig_ = value; + } else { + monitoringConfigBuilder_.setMessage(value); + } + bitField2_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Monitoring configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.MonitoringConfig monitoring_config = 133; + */ + public Builder setMonitoringConfig( + com.google.container.v1beta1.MonitoringConfig.Builder builderForValue) { + if (monitoringConfigBuilder_ == null) { + monitoringConfig_ = builderForValue.build(); + } else { + monitoringConfigBuilder_.setMessage(builderForValue.build()); + } + bitField2_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Monitoring configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.MonitoringConfig monitoring_config = 133; + */ + public Builder mergeMonitoringConfig(com.google.container.v1beta1.MonitoringConfig value) { + if (monitoringConfigBuilder_ == null) { + if (((bitField2_ & 0x00000020) != 0) && + monitoringConfig_ != null && + monitoringConfig_ != com.google.container.v1beta1.MonitoringConfig.getDefaultInstance()) { + getMonitoringConfigBuilder().mergeFrom(value); + } else { + monitoringConfig_ = value; + } + } else { + monitoringConfigBuilder_.mergeFrom(value); + } + if (monitoringConfig_ != null) { + bitField2_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + *
+     * Monitoring configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.MonitoringConfig monitoring_config = 133; + */ + public Builder clearMonitoringConfig() { + bitField2_ = (bitField2_ & ~0x00000020); + monitoringConfig_ = null; + if (monitoringConfigBuilder_ != null) { + monitoringConfigBuilder_.dispose(); + monitoringConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Monitoring configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.MonitoringConfig monitoring_config = 133; + */ + public com.google.container.v1beta1.MonitoringConfig.Builder getMonitoringConfigBuilder() { + bitField2_ |= 0x00000020; + onChanged(); + return getMonitoringConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Monitoring configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.MonitoringConfig monitoring_config = 133; + */ + public com.google.container.v1beta1.MonitoringConfigOrBuilder getMonitoringConfigOrBuilder() { + if (monitoringConfigBuilder_ != null) { + return monitoringConfigBuilder_.getMessageOrBuilder(); + } else { + return monitoringConfig_ == null ? + com.google.container.v1beta1.MonitoringConfig.getDefaultInstance() : monitoringConfig_; + } + } + /** + *
+     * Monitoring configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.MonitoringConfig monitoring_config = 133; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MonitoringConfig, com.google.container.v1beta1.MonitoringConfig.Builder, com.google.container.v1beta1.MonitoringConfigOrBuilder> + getMonitoringConfigFieldBuilder() { + if (monitoringConfigBuilder_ == null) { + monitoringConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MonitoringConfig, com.google.container.v1beta1.MonitoringConfig.Builder, com.google.container.v1beta1.MonitoringConfigOrBuilder>( + getMonitoringConfig(), + getParentForChildren(), + isClean()); + monitoringConfig_ = null; + } + return monitoringConfigBuilder_; + } + + private com.google.container.v1beta1.NodePoolAutoConfig nodePoolAutoConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolAutoConfig, com.google.container.v1beta1.NodePoolAutoConfig.Builder, com.google.container.v1beta1.NodePoolAutoConfigOrBuilder> nodePoolAutoConfigBuilder_; + /** + *
+     * Node pool configs that apply to all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoConfig node_pool_auto_config = 136; + * @return Whether the nodePoolAutoConfig field is set. + */ + public boolean hasNodePoolAutoConfig() { + return ((bitField2_ & 0x00000040) != 0); + } + /** + *
+     * Node pool configs that apply to all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoConfig node_pool_auto_config = 136; + * @return The nodePoolAutoConfig. + */ + public com.google.container.v1beta1.NodePoolAutoConfig getNodePoolAutoConfig() { + if (nodePoolAutoConfigBuilder_ == null) { + return nodePoolAutoConfig_ == null ? com.google.container.v1beta1.NodePoolAutoConfig.getDefaultInstance() : nodePoolAutoConfig_; + } else { + return nodePoolAutoConfigBuilder_.getMessage(); + } + } + /** + *
+     * Node pool configs that apply to all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoConfig node_pool_auto_config = 136; + */ + public Builder setNodePoolAutoConfig(com.google.container.v1beta1.NodePoolAutoConfig value) { + if (nodePoolAutoConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodePoolAutoConfig_ = value; + } else { + nodePoolAutoConfigBuilder_.setMessage(value); + } + bitField2_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * Node pool configs that apply to all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoConfig node_pool_auto_config = 136; + */ + public Builder setNodePoolAutoConfig( + com.google.container.v1beta1.NodePoolAutoConfig.Builder builderForValue) { + if (nodePoolAutoConfigBuilder_ == null) { + nodePoolAutoConfig_ = builderForValue.build(); + } else { + nodePoolAutoConfigBuilder_.setMessage(builderForValue.build()); + } + bitField2_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * Node pool configs that apply to all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoConfig node_pool_auto_config = 136; + */ + public Builder mergeNodePoolAutoConfig(com.google.container.v1beta1.NodePoolAutoConfig value) { + if (nodePoolAutoConfigBuilder_ == null) { + if (((bitField2_ & 0x00000040) != 0) && + nodePoolAutoConfig_ != null && + nodePoolAutoConfig_ != com.google.container.v1beta1.NodePoolAutoConfig.getDefaultInstance()) { + getNodePoolAutoConfigBuilder().mergeFrom(value); + } else { + nodePoolAutoConfig_ = value; + } + } else { + nodePoolAutoConfigBuilder_.mergeFrom(value); + } + if (nodePoolAutoConfig_ != null) { + bitField2_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + *
+     * Node pool configs that apply to all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoConfig node_pool_auto_config = 136; + */ + public Builder clearNodePoolAutoConfig() { + bitField2_ = (bitField2_ & ~0x00000040); + nodePoolAutoConfig_ = null; + if (nodePoolAutoConfigBuilder_ != null) { + nodePoolAutoConfigBuilder_.dispose(); + nodePoolAutoConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Node pool configs that apply to all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoConfig node_pool_auto_config = 136; + */ + public com.google.container.v1beta1.NodePoolAutoConfig.Builder getNodePoolAutoConfigBuilder() { + bitField2_ |= 0x00000040; + onChanged(); + return getNodePoolAutoConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Node pool configs that apply to all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoConfig node_pool_auto_config = 136; + */ + public com.google.container.v1beta1.NodePoolAutoConfigOrBuilder getNodePoolAutoConfigOrBuilder() { + if (nodePoolAutoConfigBuilder_ != null) { + return nodePoolAutoConfigBuilder_.getMessageOrBuilder(); + } else { + return nodePoolAutoConfig_ == null ? + com.google.container.v1beta1.NodePoolAutoConfig.getDefaultInstance() : nodePoolAutoConfig_; + } + } + /** + *
+     * Node pool configs that apply to all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoConfig node_pool_auto_config = 136; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolAutoConfig, com.google.container.v1beta1.NodePoolAutoConfig.Builder, com.google.container.v1beta1.NodePoolAutoConfigOrBuilder> + getNodePoolAutoConfigFieldBuilder() { + if (nodePoolAutoConfigBuilder_ == null) { + nodePoolAutoConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolAutoConfig, com.google.container.v1beta1.NodePoolAutoConfig.Builder, com.google.container.v1beta1.NodePoolAutoConfigOrBuilder>( + getNodePoolAutoConfig(), + getParentForChildren(), + isClean()); + nodePoolAutoConfig_ = null; + } + return nodePoolAutoConfigBuilder_; + } + + private com.google.container.v1beta1.ProtectConfig protectConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ProtectConfig, com.google.container.v1beta1.ProtectConfig.Builder, com.google.container.v1beta1.ProtectConfigOrBuilder> protectConfigBuilder_; + /** + *
+     * Deprecated: Use SecurityPostureConfig instead.
+     * Enable/Disable Protect API features for the cluster.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig protect_config = 137 [deprecated = true]; + * @deprecated google.container.v1beta1.Cluster.protect_config is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2270 + * @return Whether the protectConfig field is set. + */ + @java.lang.Deprecated public boolean hasProtectConfig() { + return ((bitField2_ & 0x00000080) != 0); + } + /** + *
+     * Deprecated: Use SecurityPostureConfig instead.
+     * Enable/Disable Protect API features for the cluster.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig protect_config = 137 [deprecated = true]; + * @deprecated google.container.v1beta1.Cluster.protect_config is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2270 + * @return The protectConfig. + */ + @java.lang.Deprecated public com.google.container.v1beta1.ProtectConfig getProtectConfig() { + if (protectConfigBuilder_ == null) { + return protectConfig_ == null ? com.google.container.v1beta1.ProtectConfig.getDefaultInstance() : protectConfig_; + } else { + return protectConfigBuilder_.getMessage(); + } + } + /** + *
+     * Deprecated: Use SecurityPostureConfig instead.
+     * Enable/Disable Protect API features for the cluster.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig protect_config = 137 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProtectConfig(com.google.container.v1beta1.ProtectConfig value) { + if (protectConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + protectConfig_ = value; + } else { + protectConfigBuilder_.setMessage(value); + } + bitField2_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * Deprecated: Use SecurityPostureConfig instead.
+     * Enable/Disable Protect API features for the cluster.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig protect_config = 137 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setProtectConfig( + com.google.container.v1beta1.ProtectConfig.Builder builderForValue) { + if (protectConfigBuilder_ == null) { + protectConfig_ = builderForValue.build(); + } else { + protectConfigBuilder_.setMessage(builderForValue.build()); + } + bitField2_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * Deprecated: Use SecurityPostureConfig instead.
+     * Enable/Disable Protect API features for the cluster.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig protect_config = 137 [deprecated = true]; + */ + @java.lang.Deprecated public Builder mergeProtectConfig(com.google.container.v1beta1.ProtectConfig value) { + if (protectConfigBuilder_ == null) { + if (((bitField2_ & 0x00000080) != 0) && + protectConfig_ != null && + protectConfig_ != com.google.container.v1beta1.ProtectConfig.getDefaultInstance()) { + getProtectConfigBuilder().mergeFrom(value); + } else { + protectConfig_ = value; + } + } else { + protectConfigBuilder_.mergeFrom(value); + } + if (protectConfig_ != null) { + bitField2_ |= 0x00000080; + onChanged(); + } + return this; + } + /** + *
+     * Deprecated: Use SecurityPostureConfig instead.
+     * Enable/Disable Protect API features for the cluster.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig protect_config = 137 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearProtectConfig() { + bitField2_ = (bitField2_ & ~0x00000080); + protectConfig_ = null; + if (protectConfigBuilder_ != null) { + protectConfigBuilder_.dispose(); + protectConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Deprecated: Use SecurityPostureConfig instead.
+     * Enable/Disable Protect API features for the cluster.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig protect_config = 137 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.container.v1beta1.ProtectConfig.Builder getProtectConfigBuilder() { + bitField2_ |= 0x00000080; + onChanged(); + return getProtectConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Deprecated: Use SecurityPostureConfig instead.
+     * Enable/Disable Protect API features for the cluster.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig protect_config = 137 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.container.v1beta1.ProtectConfigOrBuilder getProtectConfigOrBuilder() { + if (protectConfigBuilder_ != null) { + return protectConfigBuilder_.getMessageOrBuilder(); + } else { + return protectConfig_ == null ? + com.google.container.v1beta1.ProtectConfig.getDefaultInstance() : protectConfig_; + } + } + /** + *
+     * Deprecated: Use SecurityPostureConfig instead.
+     * Enable/Disable Protect API features for the cluster.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig protect_config = 137 [deprecated = true]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ProtectConfig, com.google.container.v1beta1.ProtectConfig.Builder, com.google.container.v1beta1.ProtectConfigOrBuilder> + getProtectConfigFieldBuilder() { + if (protectConfigBuilder_ == null) { + protectConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ProtectConfig, com.google.container.v1beta1.ProtectConfig.Builder, com.google.container.v1beta1.ProtectConfigOrBuilder>( + getProtectConfig(), + getParentForChildren(), + isClean()); + protectConfig_ = null; + } + return protectConfigBuilder_; + } + + private java.lang.Object etag_ = ""; + /** + *
+     * This checksum is computed by the server based on the value of cluster
+     * fields, and may be sent on update requests to ensure the client has an
+     * up-to-date value before proceeding.
+     * 
+ * + * string etag = 139; + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * This checksum is computed by the server based on the value of cluster
+     * fields, and may be sent on update requests to ensure the client has an
+     * up-to-date value before proceeding.
+     * 
+ * + * string etag = 139; + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString + getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * This checksum is computed by the server based on the value of cluster
+     * fields, and may be sent on update requests to ensure the client has an
+     * up-to-date value before proceeding.
+     * 
+ * + * string etag = 139; + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + etag_ = value; + bitField2_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * This checksum is computed by the server based on the value of cluster
+     * fields, and may be sent on update requests to ensure the client has an
+     * up-to-date value before proceeding.
+     * 
+ * + * string etag = 139; + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField2_ = (bitField2_ & ~0x00000100); + onChanged(); + return this; + } + /** + *
+     * This checksum is computed by the server based on the value of cluster
+     * fields, and may be sent on update requests to ensure the client has an
+     * up-to-date value before proceeding.
+     * 
+ * + * string etag = 139; + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + etag_ = value; + bitField2_ |= 0x00000100; + onChanged(); + return this; + } + + private com.google.container.v1beta1.Fleet fleet_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.Fleet, com.google.container.v1beta1.Fleet.Builder, com.google.container.v1beta1.FleetOrBuilder> fleetBuilder_; + /** + *
+     * Fleet information for the cluster.
+     * 
+ * + * .google.container.v1beta1.Fleet fleet = 140; + * @return Whether the fleet field is set. + */ + public boolean hasFleet() { + return ((bitField2_ & 0x00000200) != 0); + } + /** + *
+     * Fleet information for the cluster.
+     * 
+ * + * .google.container.v1beta1.Fleet fleet = 140; + * @return The fleet. + */ + public com.google.container.v1beta1.Fleet getFleet() { + if (fleetBuilder_ == null) { + return fleet_ == null ? com.google.container.v1beta1.Fleet.getDefaultInstance() : fleet_; + } else { + return fleetBuilder_.getMessage(); + } + } + /** + *
+     * Fleet information for the cluster.
+     * 
+ * + * .google.container.v1beta1.Fleet fleet = 140; + */ + public Builder setFleet(com.google.container.v1beta1.Fleet value) { + if (fleetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fleet_ = value; + } else { + fleetBuilder_.setMessage(value); + } + bitField2_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * Fleet information for the cluster.
+     * 
+ * + * .google.container.v1beta1.Fleet fleet = 140; + */ + public Builder setFleet( + com.google.container.v1beta1.Fleet.Builder builderForValue) { + if (fleetBuilder_ == null) { + fleet_ = builderForValue.build(); + } else { + fleetBuilder_.setMessage(builderForValue.build()); + } + bitField2_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * Fleet information for the cluster.
+     * 
+ * + * .google.container.v1beta1.Fleet fleet = 140; + */ + public Builder mergeFleet(com.google.container.v1beta1.Fleet value) { + if (fleetBuilder_ == null) { + if (((bitField2_ & 0x00000200) != 0) && + fleet_ != null && + fleet_ != com.google.container.v1beta1.Fleet.getDefaultInstance()) { + getFleetBuilder().mergeFrom(value); + } else { + fleet_ = value; + } + } else { + fleetBuilder_.mergeFrom(value); + } + if (fleet_ != null) { + bitField2_ |= 0x00000200; + onChanged(); + } + return this; + } + /** + *
+     * Fleet information for the cluster.
+     * 
+ * + * .google.container.v1beta1.Fleet fleet = 140; + */ + public Builder clearFleet() { + bitField2_ = (bitField2_ & ~0x00000200); + fleet_ = null; + if (fleetBuilder_ != null) { + fleetBuilder_.dispose(); + fleetBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Fleet information for the cluster.
+     * 
+ * + * .google.container.v1beta1.Fleet fleet = 140; + */ + public com.google.container.v1beta1.Fleet.Builder getFleetBuilder() { + bitField2_ |= 0x00000200; + onChanged(); + return getFleetFieldBuilder().getBuilder(); + } + /** + *
+     * Fleet information for the cluster.
+     * 
+ * + * .google.container.v1beta1.Fleet fleet = 140; + */ + public com.google.container.v1beta1.FleetOrBuilder getFleetOrBuilder() { + if (fleetBuilder_ != null) { + return fleetBuilder_.getMessageOrBuilder(); + } else { + return fleet_ == null ? + com.google.container.v1beta1.Fleet.getDefaultInstance() : fleet_; + } + } + /** + *
+     * Fleet information for the cluster.
+     * 
+ * + * .google.container.v1beta1.Fleet fleet = 140; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.Fleet, com.google.container.v1beta1.Fleet.Builder, com.google.container.v1beta1.FleetOrBuilder> + getFleetFieldBuilder() { + if (fleetBuilder_ == null) { + fleetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.Fleet, com.google.container.v1beta1.Fleet.Builder, com.google.container.v1beta1.FleetOrBuilder>( + getFleet(), + getParentForChildren(), + isClean()); + fleet_ = null; + } + return fleetBuilder_; + } + + private com.google.container.v1beta1.SecurityPostureConfig securityPostureConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.SecurityPostureConfig, com.google.container.v1beta1.SecurityPostureConfig.Builder, com.google.container.v1beta1.SecurityPostureConfigOrBuilder> securityPostureConfigBuilder_; + /** + *
+     * Enable/Disable Security Posture API features for the cluster.
+     * 
+ * + * .google.container.v1beta1.SecurityPostureConfig security_posture_config = 145; + * @return Whether the securityPostureConfig field is set. + */ + public boolean hasSecurityPostureConfig() { + return ((bitField2_ & 0x00000400) != 0); + } + /** + *
+     * Enable/Disable Security Posture API features for the cluster.
+     * 
+ * + * .google.container.v1beta1.SecurityPostureConfig security_posture_config = 145; + * @return The securityPostureConfig. + */ + public com.google.container.v1beta1.SecurityPostureConfig getSecurityPostureConfig() { + if (securityPostureConfigBuilder_ == null) { + return securityPostureConfig_ == null ? com.google.container.v1beta1.SecurityPostureConfig.getDefaultInstance() : securityPostureConfig_; + } else { + return securityPostureConfigBuilder_.getMessage(); + } + } + /** + *
+     * Enable/Disable Security Posture API features for the cluster.
+     * 
+ * + * .google.container.v1beta1.SecurityPostureConfig security_posture_config = 145; + */ + public Builder setSecurityPostureConfig(com.google.container.v1beta1.SecurityPostureConfig value) { + if (securityPostureConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + securityPostureConfig_ = value; + } else { + securityPostureConfigBuilder_.setMessage(value); + } + bitField2_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+     * Enable/Disable Security Posture API features for the cluster.
+     * 
+ * + * .google.container.v1beta1.SecurityPostureConfig security_posture_config = 145; + */ + public Builder setSecurityPostureConfig( + com.google.container.v1beta1.SecurityPostureConfig.Builder builderForValue) { + if (securityPostureConfigBuilder_ == null) { + securityPostureConfig_ = builderForValue.build(); + } else { + securityPostureConfigBuilder_.setMessage(builderForValue.build()); + } + bitField2_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+     * Enable/Disable Security Posture API features for the cluster.
+     * 
+ * + * .google.container.v1beta1.SecurityPostureConfig security_posture_config = 145; + */ + public Builder mergeSecurityPostureConfig(com.google.container.v1beta1.SecurityPostureConfig value) { + if (securityPostureConfigBuilder_ == null) { + if (((bitField2_ & 0x00000400) != 0) && + securityPostureConfig_ != null && + securityPostureConfig_ != com.google.container.v1beta1.SecurityPostureConfig.getDefaultInstance()) { + getSecurityPostureConfigBuilder().mergeFrom(value); + } else { + securityPostureConfig_ = value; + } + } else { + securityPostureConfigBuilder_.mergeFrom(value); + } + if (securityPostureConfig_ != null) { + bitField2_ |= 0x00000400; + onChanged(); + } + return this; + } + /** + *
+     * Enable/Disable Security Posture API features for the cluster.
+     * 
+ * + * .google.container.v1beta1.SecurityPostureConfig security_posture_config = 145; + */ + public Builder clearSecurityPostureConfig() { + bitField2_ = (bitField2_ & ~0x00000400); + securityPostureConfig_ = null; + if (securityPostureConfigBuilder_ != null) { + securityPostureConfigBuilder_.dispose(); + securityPostureConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Enable/Disable Security Posture API features for the cluster.
+     * 
+ * + * .google.container.v1beta1.SecurityPostureConfig security_posture_config = 145; + */ + public com.google.container.v1beta1.SecurityPostureConfig.Builder getSecurityPostureConfigBuilder() { + bitField2_ |= 0x00000400; + onChanged(); + return getSecurityPostureConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Enable/Disable Security Posture API features for the cluster.
+     * 
+ * + * .google.container.v1beta1.SecurityPostureConfig security_posture_config = 145; + */ + public com.google.container.v1beta1.SecurityPostureConfigOrBuilder getSecurityPostureConfigOrBuilder() { + if (securityPostureConfigBuilder_ != null) { + return securityPostureConfigBuilder_.getMessageOrBuilder(); + } else { + return securityPostureConfig_ == null ? + com.google.container.v1beta1.SecurityPostureConfig.getDefaultInstance() : securityPostureConfig_; + } + } + /** + *
+     * Enable/Disable Security Posture API features for the cluster.
+     * 
+ * + * .google.container.v1beta1.SecurityPostureConfig security_posture_config = 145; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.SecurityPostureConfig, com.google.container.v1beta1.SecurityPostureConfig.Builder, com.google.container.v1beta1.SecurityPostureConfigOrBuilder> + getSecurityPostureConfigFieldBuilder() { + if (securityPostureConfigBuilder_ == null) { + securityPostureConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.SecurityPostureConfig, com.google.container.v1beta1.SecurityPostureConfig.Builder, com.google.container.v1beta1.SecurityPostureConfigOrBuilder>( + getSecurityPostureConfig(), + getParentForChildren(), + isClean()); + securityPostureConfig_ = null; + } + return securityPostureConfigBuilder_; + } + + private com.google.container.v1beta1.EnterpriseConfig enterpriseConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.EnterpriseConfig, com.google.container.v1beta1.EnterpriseConfig.Builder, com.google.container.v1beta1.EnterpriseConfigOrBuilder> enterpriseConfigBuilder_; + /** + *
+     * GKE Enterprise Configuration.
+     * 
+ * + * .google.container.v1beta1.EnterpriseConfig enterprise_config = 149; + * @return Whether the enterpriseConfig field is set. + */ + public boolean hasEnterpriseConfig() { + return ((bitField2_ & 0x00000800) != 0); + } + /** + *
+     * GKE Enterprise Configuration.
+     * 
+ * + * .google.container.v1beta1.EnterpriseConfig enterprise_config = 149; + * @return The enterpriseConfig. + */ + public com.google.container.v1beta1.EnterpriseConfig getEnterpriseConfig() { + if (enterpriseConfigBuilder_ == null) { + return enterpriseConfig_ == null ? com.google.container.v1beta1.EnterpriseConfig.getDefaultInstance() : enterpriseConfig_; + } else { + return enterpriseConfigBuilder_.getMessage(); + } + } + /** + *
+     * GKE Enterprise Configuration.
+     * 
+ * + * .google.container.v1beta1.EnterpriseConfig enterprise_config = 149; + */ + public Builder setEnterpriseConfig(com.google.container.v1beta1.EnterpriseConfig value) { + if (enterpriseConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + enterpriseConfig_ = value; + } else { + enterpriseConfigBuilder_.setMessage(value); + } + bitField2_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * GKE Enterprise Configuration.
+     * 
+ * + * .google.container.v1beta1.EnterpriseConfig enterprise_config = 149; + */ + public Builder setEnterpriseConfig( + com.google.container.v1beta1.EnterpriseConfig.Builder builderForValue) { + if (enterpriseConfigBuilder_ == null) { + enterpriseConfig_ = builderForValue.build(); + } else { + enterpriseConfigBuilder_.setMessage(builderForValue.build()); + } + bitField2_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * GKE Enterprise Configuration.
+     * 
+ * + * .google.container.v1beta1.EnterpriseConfig enterprise_config = 149; + */ + public Builder mergeEnterpriseConfig(com.google.container.v1beta1.EnterpriseConfig value) { + if (enterpriseConfigBuilder_ == null) { + if (((bitField2_ & 0x00000800) != 0) && + enterpriseConfig_ != null && + enterpriseConfig_ != com.google.container.v1beta1.EnterpriseConfig.getDefaultInstance()) { + getEnterpriseConfigBuilder().mergeFrom(value); + } else { + enterpriseConfig_ = value; + } + } else { + enterpriseConfigBuilder_.mergeFrom(value); + } + if (enterpriseConfig_ != null) { + bitField2_ |= 0x00000800; + onChanged(); + } + return this; + } + /** + *
+     * GKE Enterprise Configuration.
+     * 
+ * + * .google.container.v1beta1.EnterpriseConfig enterprise_config = 149; + */ + public Builder clearEnterpriseConfig() { + bitField2_ = (bitField2_ & ~0x00000800); + enterpriseConfig_ = null; + if (enterpriseConfigBuilder_ != null) { + enterpriseConfigBuilder_.dispose(); + enterpriseConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * GKE Enterprise Configuration.
+     * 
+ * + * .google.container.v1beta1.EnterpriseConfig enterprise_config = 149; + */ + public com.google.container.v1beta1.EnterpriseConfig.Builder getEnterpriseConfigBuilder() { + bitField2_ |= 0x00000800; + onChanged(); + return getEnterpriseConfigFieldBuilder().getBuilder(); + } + /** + *
+     * GKE Enterprise Configuration.
+     * 
+ * + * .google.container.v1beta1.EnterpriseConfig enterprise_config = 149; + */ + public com.google.container.v1beta1.EnterpriseConfigOrBuilder getEnterpriseConfigOrBuilder() { + if (enterpriseConfigBuilder_ != null) { + return enterpriseConfigBuilder_.getMessageOrBuilder(); + } else { + return enterpriseConfig_ == null ? + com.google.container.v1beta1.EnterpriseConfig.getDefaultInstance() : enterpriseConfig_; + } + } + /** + *
+     * GKE Enterprise Configuration.
+     * 
+ * + * .google.container.v1beta1.EnterpriseConfig enterprise_config = 149; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.EnterpriseConfig, com.google.container.v1beta1.EnterpriseConfig.Builder, com.google.container.v1beta1.EnterpriseConfigOrBuilder> + getEnterpriseConfigFieldBuilder() { + if (enterpriseConfigBuilder_ == null) { + enterpriseConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.EnterpriseConfig, com.google.container.v1beta1.EnterpriseConfig.Builder, com.google.container.v1beta1.EnterpriseConfigOrBuilder>( + getEnterpriseConfig(), + getParentForChildren(), + isClean()); + enterpriseConfig_ = null; + } + return enterpriseConfigBuilder_; + } + @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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterAutoscaling.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterAutoscaling.java new file mode 100644 index 000000000000..6bc1f0deaecf --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterAutoscaling.java @@ -0,0 +1,1760 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClusterAutoscaling(); + } + + 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< + AutoscalingProfile> 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) + } + + private int bitField0_; + public static final int ENABLE_NODE_AUTOPROVISIONING_FIELD_NUMBER = 1; + private boolean enableNodeAutoprovisioning_ = false; + /** + *
+   * 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; + @SuppressWarnings("serial") + 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_ = 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; + * @return The autoscalingProfile. + */ + @java.lang.Override public com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile getAutoscalingProfile() { + com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile result = com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile.forNumber(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 ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * 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 autoprovisioningNodePoolDefaults_ == null ? com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.getDefaultInstance() : autoprovisioningNodePoolDefaults_; + } + + public static final int AUTOPROVISIONING_LOCATIONS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList autoprovisioningLocations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getAutoprovisioningNodePoolDefaults()); + } + for (int i = 0; i < autoprovisioningLocations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, autoprovisioningLocations_.getRaw(i)); + } + getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) { + 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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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(); + getAutoprovisioningNodePoolDefaultsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enableNodeAutoprovisioning_ = false; + if (resourceLimitsBuilder_ == null) { + resourceLimits_ = java.util.Collections.emptyList(); + } else { + resourceLimits_ = null; + resourceLimitsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + autoscalingProfile_ = 0; + autoprovisioningNodePoolDefaults_ = null; + if (autoprovisioningNodePoolDefaultsBuilder_ != null) { + autoprovisioningNodePoolDefaultsBuilder_.dispose(); + autoprovisioningNodePoolDefaultsBuilder_ = null; + } + autoprovisioningLocations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + 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); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1beta1.ClusterAutoscaling result) { + if (resourceLimitsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + resourceLimits_ = java.util.Collections.unmodifiableList(resourceLimits_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.resourceLimits_ = resourceLimits_; + } else { + result.resourceLimits_ = resourceLimitsBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1beta1.ClusterAutoscaling result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enableNodeAutoprovisioning_ = enableNodeAutoprovisioning_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.autoscalingProfile_ = autoscalingProfile_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.autoprovisioningNodePoolDefaults_ = autoprovisioningNodePoolDefaultsBuilder_ == null + ? autoprovisioningNodePoolDefaults_ + : autoprovisioningNodePoolDefaultsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + autoprovisioningLocations_.makeImmutable(); + result.autoprovisioningLocations_ = autoprovisioningLocations_; + } + result.bitField0_ |= to_bitField0_; + } + + @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_ & ~0x00000002); + } else { + ensureResourceLimitsIsMutable(); + resourceLimits_.addAll(other.resourceLimits_); + } + onChanged(); + } + } else { + if (!other.resourceLimits_.isEmpty()) { + if (resourceLimitsBuilder_.isEmpty()) { + resourceLimitsBuilder_.dispose(); + resourceLimitsBuilder_ = null; + resourceLimits_ = other.resourceLimits_; + bitField0_ = (bitField0_ & ~0x00000002); + resourceLimitsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResourceLimitsFieldBuilder() : null; + } else { + resourceLimitsBuilder_.addAllMessages(other.resourceLimits_); + } + } + } + if (other.autoscalingProfile_ != 0) { + setAutoscalingProfileValue(other.getAutoscalingProfileValue()); + } + if (other.hasAutoprovisioningNodePoolDefaults()) { + mergeAutoprovisioningNodePoolDefaults(other.getAutoprovisioningNodePoolDefaults()); + } + if (!other.autoprovisioningLocations_.isEmpty()) { + if (autoprovisioningLocations_.isEmpty()) { + autoprovisioningLocations_ = other.autoprovisioningLocations_; + bitField0_ |= 0x00000010; + } else { + ensureAutoprovisioningLocationsIsMutable(); + autoprovisioningLocations_.addAll(other.autoprovisioningLocations_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enableNodeAutoprovisioning_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + com.google.container.v1beta1.ResourceLimit m = + input.readMessage( + com.google.container.v1beta1.ResourceLimit.parser(), + extensionRegistry); + if (resourceLimitsBuilder_ == null) { + ensureResourceLimitsIsMutable(); + resourceLimits_.add(m); + } else { + resourceLimitsBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: { + autoscalingProfile_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + input.readMessage( + getAutoprovisioningNodePoolDefaultsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + ensureAutoprovisioningLocationsIsMutable(); + autoprovisioningLocations_.add(s); + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Enables automatic node pool creation and deletion.
+     * 
+ * + * bool enable_node_autoprovisioning = 1; + * @return This builder for chaining. + */ + public Builder clearEnableNodeAutoprovisioning() { + bitField0_ = (bitField0_ & ~0x00000001); + enableNodeAutoprovisioning_ = false; + onChanged(); + return this; + } + + private java.util.List resourceLimits_ = + java.util.Collections.emptyList(); + private void ensureResourceLimitsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + resourceLimits_ = new java.util.ArrayList(resourceLimits_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.ResourceLimit, com.google.container.v1beta1.ResourceLimit.Builder, com.google.container.v1beta1.ResourceLimitOrBuilder> resourceLimitsBuilder_; + + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public java.util.List getResourceLimitsList() { + if (resourceLimitsBuilder_ == null) { + return java.util.Collections.unmodifiableList(resourceLimits_); + } else { + return resourceLimitsBuilder_.getMessageList(); + } + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public int getResourceLimitsCount() { + if (resourceLimitsBuilder_ == null) { + return resourceLimits_.size(); + } else { + return resourceLimitsBuilder_.getCount(); + } + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public com.google.container.v1beta1.ResourceLimit getResourceLimits(int index) { + if (resourceLimitsBuilder_ == null) { + return resourceLimits_.get(index); + } else { + return resourceLimitsBuilder_.getMessage(index); + } + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public Builder setResourceLimits( + int index, com.google.container.v1beta1.ResourceLimit value) { + if (resourceLimitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceLimitsIsMutable(); + resourceLimits_.set(index, value); + onChanged(); + } else { + resourceLimitsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public Builder setResourceLimits( + int index, com.google.container.v1beta1.ResourceLimit.Builder builderForValue) { + if (resourceLimitsBuilder_ == null) { + ensureResourceLimitsIsMutable(); + resourceLimits_.set(index, builderForValue.build()); + onChanged(); + } else { + resourceLimitsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public Builder addResourceLimits(com.google.container.v1beta1.ResourceLimit value) { + if (resourceLimitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceLimitsIsMutable(); + resourceLimits_.add(value); + onChanged(); + } else { + resourceLimitsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public Builder addResourceLimits( + int index, com.google.container.v1beta1.ResourceLimit value) { + if (resourceLimitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceLimitsIsMutable(); + resourceLimits_.add(index, value); + onChanged(); + } else { + resourceLimitsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public Builder addResourceLimits( + com.google.container.v1beta1.ResourceLimit.Builder builderForValue) { + if (resourceLimitsBuilder_ == null) { + ensureResourceLimitsIsMutable(); + resourceLimits_.add(builderForValue.build()); + onChanged(); + } else { + resourceLimitsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public Builder addResourceLimits( + int index, com.google.container.v1beta1.ResourceLimit.Builder builderForValue) { + if (resourceLimitsBuilder_ == null) { + ensureResourceLimitsIsMutable(); + resourceLimits_.add(index, builderForValue.build()); + onChanged(); + } else { + resourceLimitsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public Builder addAllResourceLimits( + java.lang.Iterable values) { + if (resourceLimitsBuilder_ == null) { + ensureResourceLimitsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, resourceLimits_); + onChanged(); + } else { + resourceLimitsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public Builder clearResourceLimits() { + if (resourceLimitsBuilder_ == null) { + resourceLimits_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + resourceLimitsBuilder_.clear(); + } + return this; + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public Builder removeResourceLimits(int index) { + if (resourceLimitsBuilder_ == null) { + ensureResourceLimitsIsMutable(); + resourceLimits_.remove(index); + onChanged(); + } else { + resourceLimitsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public com.google.container.v1beta1.ResourceLimit.Builder getResourceLimitsBuilder( + int index) { + return getResourceLimitsFieldBuilder().getBuilder(index); + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public com.google.container.v1beta1.ResourceLimitOrBuilder getResourceLimitsOrBuilder( + int index) { + if (resourceLimitsBuilder_ == null) { + return resourceLimits_.get(index); } else { + return resourceLimitsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public java.util.List + getResourceLimitsOrBuilderList() { + if (resourceLimitsBuilder_ != null) { + return resourceLimitsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(resourceLimits_); + } + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public com.google.container.v1beta1.ResourceLimit.Builder addResourceLimitsBuilder() { + return getResourceLimitsFieldBuilder().addBuilder( + com.google.container.v1beta1.ResourceLimit.getDefaultInstance()); + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public com.google.container.v1beta1.ResourceLimit.Builder addResourceLimitsBuilder( + int index) { + return getResourceLimitsFieldBuilder().addBuilder( + index, com.google.container.v1beta1.ResourceLimit.getDefaultInstance()); + } + /** + *
+     * Contains global constraints regarding minimum and maximum
+     * amount of resources in the cluster.
+     * 
+ * + * repeated .google.container.v1beta1.ResourceLimit resource_limits = 2; + */ + public java.util.List + getResourceLimitsBuilderList() { + return getResourceLimitsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.ResourceLimit, com.google.container.v1beta1.ResourceLimit.Builder, com.google.container.v1beta1.ResourceLimitOrBuilder> + getResourceLimitsFieldBuilder() { + if (resourceLimitsBuilder_ == null) { + resourceLimitsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.ResourceLimit, com.google.container.v1beta1.ResourceLimit.Builder, com.google.container.v1beta1.ResourceLimitOrBuilder>( + resourceLimits_, + ((bitField0_ & 0x00000002) != 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; + bitField0_ |= 0x00000004; + 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() { + com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile result = com.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile.forNumber(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(); + } + bitField0_ |= 0x00000004; + 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() { + bitField0_ = (bitField0_ & ~0x00000004); + 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 ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * 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; + } else { + autoprovisioningNodePoolDefaultsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + 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(); + } else { + autoprovisioningNodePoolDefaultsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + 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 (((bitField0_ & 0x00000008) != 0) && + autoprovisioningNodePoolDefaults_ != null && + autoprovisioningNodePoolDefaults_ != com.google.container.v1beta1.AutoprovisioningNodePoolDefaults.getDefaultInstance()) { + getAutoprovisioningNodePoolDefaultsBuilder().mergeFrom(value); + } else { + autoprovisioningNodePoolDefaults_ = value; + } + } else { + autoprovisioningNodePoolDefaultsBuilder_.mergeFrom(value); + } + if (autoprovisioningNodePoolDefaults_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + *
+     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
+     * created by NAP.
+     * 
+ * + * .google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + */ + public Builder clearAutoprovisioningNodePoolDefaults() { + bitField0_ = (bitField0_ & ~0x00000008); + autoprovisioningNodePoolDefaults_ = null; + if (autoprovisioningNodePoolDefaultsBuilder_ != null) { + autoprovisioningNodePoolDefaultsBuilder_.dispose(); + autoprovisioningNodePoolDefaultsBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000008; + 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.LazyStringArrayList autoprovisioningLocations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureAutoprovisioningLocationsIsMutable() { + if (!autoprovisioningLocations_.isModifiable()) { + autoprovisioningLocations_ = new com.google.protobuf.LazyStringArrayList(autoprovisioningLocations_); + } + bitField0_ |= 0x00000010; + } + /** + *
+     * 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() { + autoprovisioningLocations_.makeImmutable(); + 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); + } + /** + *
+     * 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); + bitField0_ |= 0x00000010; + 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); + bitField0_ |= 0x00000010; + 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_); + bitField0_ |= 0x00000010; + 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.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010);; + 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); + bitField0_ |= 0x00000010; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterAutoscalingOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterAutoscalingOrBuilder.java new file mode 100644 index 000000000000..02a8541931b1 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterAutoscalingOrBuilder.java @@ -0,0 +1,167 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterOrBuilder.java new file mode 100644 index 000000000000..af2d8cec522c --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterOrBuilder.java @@ -0,0 +1,2241 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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]; + * @deprecated google.container.v1beta1.Cluster.initial_node_count is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1936 + * @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]; + * @deprecated google.container.v1beta1.Cluster.node_config is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1949 + * @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]; + * @deprecated google.container.v1beta1.Cluster.node_config is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1949 + * @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(); + + /** + *
+   * Kubernetes open source beta apis enabled on the cluster. Only beta apis.
+   * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; + * @return Whether the enableK8sBetaApis field is set. + */ + boolean hasEnableK8SBetaApis(); + /** + *
+   * Kubernetes open source beta apis enabled on the cluster. Only beta apis.
+   * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; + * @return The enableK8sBetaApis. + */ + com.google.container.v1beta1.K8sBetaAPIConfig getEnableK8SBetaApis(); + /** + *
+   * Kubernetes open source beta apis enabled on the cluster. Only beta apis.
+   * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; + */ + com.google.container.v1beta1.K8sBetaAPIConfigOrBuilder getEnableK8SBetaApisOrBuilder(); + + /** + *
+   * 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; + */ + /* nullable */ +java.lang.String getResourceLabelsOrDefault( + java.lang.String key, + /* nullable */ +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]; + * @deprecated google.container.v1beta1.Cluster.private_cluster is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2074 + * @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]; + * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2081 + * @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]; + * @deprecated google.container.v1beta1.Cluster.master_ipv4_cidr_block is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2081 + * @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. If left unspecified on cluster creation and
+   * a version is specified, the cluster is enrolled in the most mature release
+   * channel where the version is available (first checking STABLE, then
+   * REGULAR, and finally RAPID). Otherwise, if no release channel
+   * configuration and no version is specified, the cluster is enrolled in the
+   * REGULAR channel with its default version.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 41; + * @return Whether the releaseChannel field is set. + */ + boolean hasReleaseChannel(); + /** + *
+   * Release channel configuration. If left unspecified on cluster creation and
+   * a version is specified, the cluster is enrolled in the most mature release
+   * channel where the version is available (first checking STABLE, then
+   * REGULAR, and finally RAPID). Otherwise, if no release channel
+   * configuration and no version is specified, the cluster is enrolled in the
+   * REGULAR channel with its default version.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 41; + * @return The releaseChannel. + */ + com.google.container.v1beta1.ReleaseChannel getReleaseChannel(); + /** + *
+   * Release channel configuration. If left unspecified on cluster creation and
+   * a version is specified, the cluster is enrolled in the most mature release
+   * channel where the version is available (first checking STABLE, then
+   * REGULAR, and finally RAPID). Otherwise, if no release channel
+   * configuration and no version is specified, the cluster is enrolled in the
+   * REGULAR channel with its default version.
+   * 
+ * + * .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(); + + /** + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.WorkloadCertificates workload_certificates = 52; + * @return Whether the workloadCertificates field is set. + */ + boolean hasWorkloadCertificates(); + /** + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.WorkloadCertificates workload_certificates = 52; + * @return The workloadCertificates. + */ + com.google.container.v1beta1.WorkloadCertificates getWorkloadCertificates(); + /** + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.WorkloadCertificates workload_certificates = 52; + */ + com.google.container.v1beta1.WorkloadCertificatesOrBuilder getWorkloadCertificatesOrBuilder(); + + /** + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + * @return Whether the meshCertificates field is set. + */ + boolean hasMeshCertificates(); + /** + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + * @return The meshCertificates. + */ + com.google.container.v1beta1.MeshCertificates getMeshCertificates(); + /** + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.MeshCertificates mesh_certificates = 67; + */ + com.google.container.v1beta1.MeshCertificatesOrBuilder getMeshCertificatesOrBuilder(); + + /** + *
+   * Configuration for direct-path (via ALTS) with workload identity.
+   * 
+ * + * .google.container.v1beta1.WorkloadALTSConfig workload_alts_config = 53; + * @return Whether the workloadAltsConfig field is set. + */ + boolean hasWorkloadAltsConfig(); + /** + *
+   * Configuration for direct-path (via ALTS) with workload identity.
+   * 
+ * + * .google.container.v1beta1.WorkloadALTSConfig workload_alts_config = 53; + * @return The workloadAltsConfig. + */ + com.google.container.v1beta1.WorkloadALTSConfig getWorkloadAltsConfig(); + /** + *
+   * Configuration for direct-path (via ALTS) with workload identity.
+   * 
+ * + * .google.container.v1beta1.WorkloadALTSConfig workload_alts_config = 53; + */ + com.google.container.v1beta1.WorkloadALTSConfigOrBuilder getWorkloadAltsConfigOrBuilder(); + + /** + *
+   * Configuration for the fine-grained cost management feature.
+   * 
+ * + * .google.container.v1beta1.CostManagementConfig cost_management_config = 45; + * @return Whether the costManagementConfig field is set. + */ + boolean hasCostManagementConfig(); + /** + *
+   * Configuration for the fine-grained cost management feature.
+   * 
+ * + * .google.container.v1beta1.CostManagementConfig cost_management_config = 45; + * @return The costManagementConfig. + */ + com.google.container.v1beta1.CostManagementConfig getCostManagementConfig(); + /** + *
+   * Configuration for the fine-grained cost management feature.
+   * 
+ * + * .google.container.v1beta1.CostManagementConfig cost_management_config = 45; + */ + com.google.container.v1beta1.CostManagementConfigOrBuilder getCostManagementConfigOrBuilder(); + + /** + *
+   * 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.
+   * All the nodes in the cluster will be Confidential VM once enabled.
+   * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 50; + * @return Whether the confidentialNodes field is set. + */ + boolean hasConfidentialNodes(); + /** + *
+   * Configuration of Confidential Nodes.
+   * All the nodes in the cluster will be Confidential VM once enabled.
+   * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 50; + * @return The confidentialNodes. + */ + com.google.container.v1beta1.ConfidentialNodes getConfidentialNodes(); + /** + *
+   * Configuration of Confidential Nodes.
+   * All the nodes in the cluster will be Confidential VM once enabled.
+   * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 50; + */ + com.google.container.v1beta1.ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder(); + + /** + *
+   * Configuration for Identity Service component.
+   * 
+ * + * .google.container.v1beta1.IdentityServiceConfig identity_service_config = 54; + * @return Whether the identityServiceConfig field is set. + */ + boolean hasIdentityServiceConfig(); + /** + *
+   * Configuration for Identity Service component.
+   * 
+ * + * .google.container.v1beta1.IdentityServiceConfig identity_service_config = 54; + * @return The identityServiceConfig. + */ + com.google.container.v1beta1.IdentityServiceConfig getIdentityServiceConfig(); + /** + *
+   * Configuration for Identity Service component.
+   * 
+ * + * .google.container.v1beta1.IdentityServiceConfig identity_service_config = 54; + */ + com.google.container.v1beta1.IdentityServiceConfigOrBuilder getIdentityServiceConfigOrBuilder(); + + /** + *
+   * [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]; + * @deprecated google.container.v1beta1.Cluster.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2152 + * @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]; + * @deprecated google.container.v1beta1.Cluster.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2152 + * @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]; + * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2185 + * @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]; + * @deprecated google.container.v1beta1.Cluster.current_node_version is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2185 + * @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]; + * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2197 + * @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]; + * @deprecated google.container.v1beta1.Cluster.status_message is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2197 + * @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]; + * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2213 + * @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]; + * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2213 + * @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]; + * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2213 + * @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]; + * @deprecated google.container.v1beta1.Cluster.instance_group_urls is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2213 + * @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]; + * @deprecated google.container.v1beta1.Cluster.current_node_count is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2217 + * @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(); + + /** + *
+   * Autopilot configuration for the cluster.
+   * 
+ * + * .google.container.v1beta1.Autopilot autopilot = 128; + * @return Whether the autopilot field is set. + */ + boolean hasAutopilot(); + /** + *
+   * Autopilot configuration for the cluster.
+   * 
+ * + * .google.container.v1beta1.Autopilot autopilot = 128; + * @return The autopilot. + */ + com.google.container.v1beta1.Autopilot getAutopilot(); + /** + *
+   * Autopilot configuration for the cluster.
+   * 
+ * + * .google.container.v1beta1.Autopilot autopilot = 128; + */ + com.google.container.v1beta1.AutopilotOrBuilder getAutopilotOrBuilder(); + + /** + *
+   * Output only. Unique id for the cluster.
+   * 
+ * + * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The id. + */ + java.lang.String getId(); + /** + *
+   * Output only. Unique id for the cluster.
+   * 
+ * + * string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + *
+   * Default NodePool settings for the entire cluster. These settings are
+   * overridden if specified on the specific NodePool object.
+   * 
+ * + * optional .google.container.v1beta1.NodePoolDefaults node_pool_defaults = 131; + * @return Whether the nodePoolDefaults field is set. + */ + boolean hasNodePoolDefaults(); + /** + *
+   * Default NodePool settings for the entire cluster. These settings are
+   * overridden if specified on the specific NodePool object.
+   * 
+ * + * optional .google.container.v1beta1.NodePoolDefaults node_pool_defaults = 131; + * @return The nodePoolDefaults. + */ + com.google.container.v1beta1.NodePoolDefaults getNodePoolDefaults(); + /** + *
+   * Default NodePool settings for the entire cluster. These settings are
+   * overridden if specified on the specific NodePool object.
+   * 
+ * + * optional .google.container.v1beta1.NodePoolDefaults node_pool_defaults = 131; + */ + com.google.container.v1beta1.NodePoolDefaultsOrBuilder getNodePoolDefaultsOrBuilder(); + + /** + *
+   * Logging configuration for the cluster.
+   * 
+ * + * .google.container.v1beta1.LoggingConfig logging_config = 132; + * @return Whether the loggingConfig field is set. + */ + boolean hasLoggingConfig(); + /** + *
+   * Logging configuration for the cluster.
+   * 
+ * + * .google.container.v1beta1.LoggingConfig logging_config = 132; + * @return The loggingConfig. + */ + com.google.container.v1beta1.LoggingConfig getLoggingConfig(); + /** + *
+   * Logging configuration for the cluster.
+   * 
+ * + * .google.container.v1beta1.LoggingConfig logging_config = 132; + */ + com.google.container.v1beta1.LoggingConfigOrBuilder getLoggingConfigOrBuilder(); + + /** + *
+   * Monitoring configuration for the cluster.
+   * 
+ * + * .google.container.v1beta1.MonitoringConfig monitoring_config = 133; + * @return Whether the monitoringConfig field is set. + */ + boolean hasMonitoringConfig(); + /** + *
+   * Monitoring configuration for the cluster.
+   * 
+ * + * .google.container.v1beta1.MonitoringConfig monitoring_config = 133; + * @return The monitoringConfig. + */ + com.google.container.v1beta1.MonitoringConfig getMonitoringConfig(); + /** + *
+   * Monitoring configuration for the cluster.
+   * 
+ * + * .google.container.v1beta1.MonitoringConfig monitoring_config = 133; + */ + com.google.container.v1beta1.MonitoringConfigOrBuilder getMonitoringConfigOrBuilder(); + + /** + *
+   * Node pool configs that apply to all auto-provisioned node pools
+   * in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoConfig node_pool_auto_config = 136; + * @return Whether the nodePoolAutoConfig field is set. + */ + boolean hasNodePoolAutoConfig(); + /** + *
+   * Node pool configs that apply to all auto-provisioned node pools
+   * in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoConfig node_pool_auto_config = 136; + * @return The nodePoolAutoConfig. + */ + com.google.container.v1beta1.NodePoolAutoConfig getNodePoolAutoConfig(); + /** + *
+   * Node pool configs that apply to all auto-provisioned node pools
+   * in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoConfig node_pool_auto_config = 136; + */ + com.google.container.v1beta1.NodePoolAutoConfigOrBuilder getNodePoolAutoConfigOrBuilder(); + + /** + *
+   * Deprecated: Use SecurityPostureConfig instead.
+   * Enable/Disable Protect API features for the cluster.
+   * 
+ * + * optional .google.container.v1beta1.ProtectConfig protect_config = 137 [deprecated = true]; + * @deprecated google.container.v1beta1.Cluster.protect_config is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2270 + * @return Whether the protectConfig field is set. + */ + @java.lang.Deprecated boolean hasProtectConfig(); + /** + *
+   * Deprecated: Use SecurityPostureConfig instead.
+   * Enable/Disable Protect API features for the cluster.
+   * 
+ * + * optional .google.container.v1beta1.ProtectConfig protect_config = 137 [deprecated = true]; + * @deprecated google.container.v1beta1.Cluster.protect_config is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2270 + * @return The protectConfig. + */ + @java.lang.Deprecated com.google.container.v1beta1.ProtectConfig getProtectConfig(); + /** + *
+   * Deprecated: Use SecurityPostureConfig instead.
+   * Enable/Disable Protect API features for the cluster.
+   * 
+ * + * optional .google.container.v1beta1.ProtectConfig protect_config = 137 [deprecated = true]; + */ + @java.lang.Deprecated com.google.container.v1beta1.ProtectConfigOrBuilder getProtectConfigOrBuilder(); + + /** + *
+   * This checksum is computed by the server based on the value of cluster
+   * fields, and may be sent on update requests to ensure the client has an
+   * up-to-date value before proceeding.
+   * 
+ * + * string etag = 139; + * @return The etag. + */ + java.lang.String getEtag(); + /** + *
+   * This checksum is computed by the server based on the value of cluster
+   * fields, and may be sent on update requests to ensure the client has an
+   * up-to-date value before proceeding.
+   * 
+ * + * string etag = 139; + * @return The bytes for etag. + */ + com.google.protobuf.ByteString + getEtagBytes(); + + /** + *
+   * Fleet information for the cluster.
+   * 
+ * + * .google.container.v1beta1.Fleet fleet = 140; + * @return Whether the fleet field is set. + */ + boolean hasFleet(); + /** + *
+   * Fleet information for the cluster.
+   * 
+ * + * .google.container.v1beta1.Fleet fleet = 140; + * @return The fleet. + */ + com.google.container.v1beta1.Fleet getFleet(); + /** + *
+   * Fleet information for the cluster.
+   * 
+ * + * .google.container.v1beta1.Fleet fleet = 140; + */ + com.google.container.v1beta1.FleetOrBuilder getFleetOrBuilder(); + + /** + *
+   * Enable/Disable Security Posture API features for the cluster.
+   * 
+ * + * .google.container.v1beta1.SecurityPostureConfig security_posture_config = 145; + * @return Whether the securityPostureConfig field is set. + */ + boolean hasSecurityPostureConfig(); + /** + *
+   * Enable/Disable Security Posture API features for the cluster.
+   * 
+ * + * .google.container.v1beta1.SecurityPostureConfig security_posture_config = 145; + * @return The securityPostureConfig. + */ + com.google.container.v1beta1.SecurityPostureConfig getSecurityPostureConfig(); + /** + *
+   * Enable/Disable Security Posture API features for the cluster.
+   * 
+ * + * .google.container.v1beta1.SecurityPostureConfig security_posture_config = 145; + */ + com.google.container.v1beta1.SecurityPostureConfigOrBuilder getSecurityPostureConfigOrBuilder(); + + /** + *
+   * GKE Enterprise Configuration.
+   * 
+ * + * .google.container.v1beta1.EnterpriseConfig enterprise_config = 149; + * @return Whether the enterpriseConfig field is set. + */ + boolean hasEnterpriseConfig(); + /** + *
+   * GKE Enterprise Configuration.
+   * 
+ * + * .google.container.v1beta1.EnterpriseConfig enterprise_config = 149; + * @return The enterpriseConfig. + */ + com.google.container.v1beta1.EnterpriseConfig getEnterpriseConfig(); + /** + *
+   * GKE Enterprise Configuration.
+   * 
+ * + * .google.container.v1beta1.EnterpriseConfig enterprise_config = 149; + */ + com.google.container.v1beta1.EnterpriseConfigOrBuilder getEnterpriseConfigOrBuilder(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterServiceProto.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterServiceProto.java new file mode 100644 index 000000000000..2ffd4ffeb4b1 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterServiceProto.java @@ -0,0 +1,3814 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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_WindowsNodeConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_WindowsNodeConfig_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_NodeConfig_ResourceLabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NodeConfig_ResourceLabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_AdvancedMachineFeatures_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_AdvancedMachineFeatures_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_NodeNetworkConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NodeNetworkConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_NodeNetworkConfig_NetworkPerformanceConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NodeNetworkConfig_NetworkPerformanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_AdditionalNodeNetworkConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_AdditionalNodeNetworkConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_AdditionalPodNetworkConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_AdditionalPodNetworkConfig_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_LocalNvmeSsdBlockConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_LocalNvmeSsdBlockConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_EphemeralStorageLocalSsdConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_EphemeralStorageLocalSsdConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_GcfsConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_GcfsConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ReservationAffinity_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ReservationAffinity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_SoleTenantConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_SoleTenantConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_SoleTenantConfig_NodeAffinity_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_SoleTenantConfig_NodeAffinity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_HostMaintenancePolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_HostMaintenancePolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_HostMaintenancePolicy_OpportunisticMaintenanceStrategy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_HostMaintenancePolicy_OpportunisticMaintenanceStrategy_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_NodeTaints_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NodeTaints_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_NodeLabels_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NodeLabels_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_NodeLabels_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NodeLabels_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ResourceLabels_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ResourceLabels_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ResourceLabels_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ResourceLabels_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_NetworkTags_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NetworkTags_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_GkeBackupAgentConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_GkeBackupAgentConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_StatefulHAConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_StatefulHAConfig_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_GcpFilestoreCsiDriverConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_GcpFilestoreCsiDriverConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_GcsFuseCsiDriverConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_GcsFuseCsiDriverConfig_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_PodCIDROverprovisionConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_PodCIDROverprovisionConfig_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_BinaryAuthorization_PolicyBinding_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_BinaryAuthorization_PolicyBinding_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_K8sBetaAPIConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_K8sBetaAPIConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_WorkloadConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_WorkloadConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ProtectConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ProtectConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_SecurityPostureConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_SecurityPostureConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_NodePoolDefaults_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NodePoolDefaults_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_NodeConfigDefaults_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NodeConfigDefaults_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_NodePoolAutoConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NodePoolAutoConfig_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_AdditionalPodRangesConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_AdditionalPodRangesConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_RangeInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_RangeInfo_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_ServerConfig_WindowsVersionMapsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ServerConfig_WindowsVersionMapsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_BestEffortProvisioning_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_BestEffortProvisioning_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_WindowsVersions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_WindowsVersions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_WindowsVersions_WindowsVersion_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_WindowsVersions_WindowsVersion_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_BlueGreenSettings_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_BlueGreenSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_BlueGreenSettings_StandardRolloutPolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_BlueGreenSettings_StandardRolloutPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_BlueGreenSettings_AutoscaledRolloutPolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_BlueGreenSettings_AutoscaledRolloutPolicy_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_NodePool_UpdateInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NodePool_UpdateInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_NodePool_UpdateInfo_BlueGreenInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NodePool_UpdateInfo_BlueGreenInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_NodePool_PlacementPolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NodePool_PlacementPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_NodePool_QueuedProvisioning_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NodePool_QueuedProvisioning_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_MaintenanceExclusionOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_MaintenanceExclusionOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_RecurringTimeWindow_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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_CompleteNodePoolUpgradeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_CompleteNodePoolUpgradeRequest_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_GPUSharingConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_GPUSharingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_GPUDriverInstallationConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_GPUDriverInstallationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ManagedPrometheusConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ManagedPrometheusConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_WorkloadMetadataConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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_NetworkConfig_ClusterNetworkPerformanceConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NetworkConfig_ClusterNetworkPerformanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_GatewayAPIConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_GatewayAPIConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ServiceExternalIPsConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ServiceExternalIPsConfig_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_ILBSubsettingConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ILBSubsettingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_DNSConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_DNSConfig_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_WorkloadALTSConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_WorkloadALTSConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_WorkloadCertificates_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_WorkloadCertificates_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_MeshCertificates_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_MeshCertificates_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_DatabaseEncryption_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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_VirtualNIC_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_VirtualNIC_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_FastSocket_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_FastSocket_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_CheckAutopilotCompatibilityRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_CheckAutopilotCompatibilityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_AutopilotCompatibilityIssue_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_AutopilotCompatibilityIssue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_CheckAutopilotCompatibilityResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_CheckAutopilotCompatibilityResponse_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_CostManagementConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_CostManagementConfig_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_AutopilotConversionStatus_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_AutopilotConversionStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_Autopilot_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_Autopilot_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_WorkloadPolicyConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_WorkloadPolicyConfig_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_NotificationConfig_Filter_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NotificationConfig_Filter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ConfidentialNodes_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + 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; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_UpgradeAvailableEvent_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_UpgradeAvailableEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_SecurityBulletinEvent_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_SecurityBulletinEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_IdentityServiceConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_IdentityServiceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_LoggingConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_LoggingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_LoggingComponentConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_LoggingComponentConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_MonitoringConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_MonitoringConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_AdvancedDatapathObservabilityConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_AdvancedDatapathObservabilityConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_NodePoolLoggingConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_NodePoolLoggingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_LoggingVariantConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_LoggingVariantConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_MonitoringComponentConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_MonitoringComponentConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_Fleet_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_Fleet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ResourceManagerTags_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ResourceManagerTags_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_ResourceManagerTags_TagsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_ResourceManagerTags_TagsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_EnterpriseConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_EnterpriseConfig_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\036google/pr" + + "otobuf/duration.proto\032\033google/protobuf/e" + + "mpty.proto\032\037google/protobuf/timestamp.pr" + + "oto\032\036google/protobuf/wrappers.proto\032\025goo" + + "gle/rpc/code.proto\032\027google/rpc/status.pr" + + "oto\032\026google/type/date.proto\"\250\002\n\017LinuxNod" + + "eConfig\022G\n\007sysctls\030\001 \003(\01326.google.contai" + + "ner.v1beta1.LinuxNodeConfig.SysctlsEntry" + + "\022I\n\013cgroup_mode\030\002 \001(\01624.google.container" + + ".v1beta1.LinuxNodeConfig.CgroupMode\032.\n\014S" + + "ysctlsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + + "\0028\001\"Q\n\nCgroupMode\022\033\n\027CGROUP_MODE_UNSPECI" + + "FIED\020\000\022\022\n\016CGROUP_MODE_V1\020\001\022\022\n\016CGROUP_MOD" + + "E_V2\020\002\"\271\001\n\021WindowsNodeConfig\022I\n\nos_versi" + + "on\030\001 \001(\01625.google.container.v1beta1.Wind" + + "owsNodeConfig.OSVersion\"Y\n\tOSVersion\022\032\n\026" + + "OS_VERSION_UNSPECIFIED\020\000\022\027\n\023OS_VERSION_L" + + "TSC2019\020\001\022\027\n\023OS_VERSION_LTSC2022\020\002\"\370\001\n\021N" + + "odeKubeletConfig\022\032\n\022cpu_manager_policy\030\001" + + " \001(\t\0221\n\rcpu_cfs_quota\030\002 \001(\0132\032.google.pro" + + "tobuf.BoolValue\022\034\n\024cpu_cfs_quota_period\030" + + "\003 \001(\t\022\026\n\016pod_pids_limit\030\004 \001(\003\0223\n&insecur" + + "e_kubelet_readonly_port_enabled\030\007 \001(\010H\000\210" + + "\001\001B)\n\'_insecure_kubelet_readonly_port_en" + + "abled\"\342\021\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\010metad" + + "ata\030\004 \003(\01322.google.container.v1beta1.Nod" + + "eConfig.MetadataEntry\022\022\n\nimage_type\030\005 \001(" + + "\t\022@\n\006labels\030\006 \003(\01320.google.container.v1b" + + "eta1.NodeConfig.LabelsEntry\022\027\n\017local_ssd" + + "_count\030\007 \001(\005\022\014\n\004tags\030\010 \003(\t\022\023\n\013preemptibl" + + "e\030\n \001(\010\022A\n\014accelerators\030\013 \003(\0132+.google.c" + + "ontainer.v1beta1.AcceleratorConfig\022?\n\016sa" + + "ndbox_config\030\021 \001(\0132\'.google.container.v1" + + "beta1.SandboxConfig\022\022\n\nnode_group\030\022 \001(\t\022" + + "K\n\024reservation_affinity\030\023 \001(\0132-.google.c" + + "ontainer.v1beta1.ReservationAffinity\022\021\n\t" + + "disk_type\030\014 \001(\t\022\030\n\020min_cpu_platform\030\r \001(" + + "\t\022R\n\030workload_metadata_config\030\016 \001(\01320.go" + + "ogle.container.v1beta1.WorkloadMetadataC" + + "onfig\0223\n\006taints\030\017 \003(\0132#.google.container" + + ".v1beta1.NodeTaint\022\031\n\021boot_disk_kms_key\030" + + "\027 \001(\t\022R\n\030shielded_instance_config\030\024 \001(\0132" + + "0.google.container.v1beta1.ShieldedInsta" + + "nceConfig\022D\n\021linux_node_config\030\025 \001(\0132).g" + + "oogle.container.v1beta1.LinuxNodeConfig\022" + + "C\n\016kubelet_config\030\026 \001(\0132+.google.contain" + + "er.v1beta1.NodeKubeletConfig\022R\n\030ephemera" + + "l_storage_config\030\030 \001(\01320.google.containe" + + "r.v1beta1.EphemeralStorageConfig\0229\n\013gcfs" + + "_config\030\031 \001(\0132$.google.container.v1beta1" + + ".GcfsConfig\022T\n\031advanced_machine_features" + + "\030\032 \001(\01321.google.container.v1beta1.Advanc" + + "edMachineFeatures\0223\n\005gvnic\030\035 \001(\0132$.googl" + + "e.container.v1beta1.VirtualNIC\022\014\n\004spot\030 " + + " \001(\010\022G\n\022confidential_nodes\030# \001(\0132+.googl" + + "e.container.v1beta1.ConfidentialNodes\022>\n" + + "\013fast_socket\030$ \001(\0132$.google.container.v1" + + "beta1.FastSocketH\000\210\001\001\022Q\n\017resource_labels" + + "\030% \003(\01328.google.container.v1beta1.NodeCo" + + "nfig.ResourceLabelsEntry\022G\n\016logging_conf" + + "ig\030& \001(\0132/.google.container.v1beta1.Node" + + "PoolLoggingConfig\022H\n\023windows_node_config" + + "\030\' \001(\0132+.google.container.v1beta1.Window" + + "sNodeConfig\022V\n\033local_nvme_ssd_block_conf" + + "ig\030( \001(\01321.google.container.v1beta1.Loca" + + "lNvmeSsdBlockConfig\022d\n\"ephemeral_storage" + + "_local_ssd_config\030) \001(\01328.google.contain" + + "er.v1beta1.EphemeralStorageLocalSsdConfi" + + "g\022F\n\022sole_tenant_config\030* \001(\0132*.google.c" + + "ontainer.v1beta1.SoleTenantConfig\022P\n\027hos" + + "t_maintenance_policy\030, \001(\0132/.google.cont" + + "ainer.v1beta1.HostMaintenancePolicy\022L\n\025r" + + "esource_manager_tags\030- \001(\0132-.google.cont" + + "ainer.v1beta1.ResourceManagerTags\022(\n\033ena" + + "ble_confidential_storage\030. \001(\010B\003\340A\001\032/\n\rM" + + "etadataEntry\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\005valu" + + "e\030\002 \001(\t:\0028\001\0325\n\023ResourceLabelsEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\016\n\014_fast_sock" + + "et\"M\n\027AdvancedMachineFeatures\022\035\n\020threads" + + "_per_core\030\001 \001(\003H\000\210\001\001B\023\n\021_threads_per_cor" + + "e\"\355\007\n\021NodeNetworkConfig\022\035\n\020create_pod_ra" + + "nge\030\004 \001(\010B\003\340A\004\022\021\n\tpod_range\030\005 \001(\t\022\033\n\023pod" + + "_ipv4_cidr_block\030\006 \001(\t\022!\n\024enable_private" + + "_nodes\030\t \001(\010H\000\210\001\001\022m\n\032network_performance" + + "_config\030\013 \001(\0132D.google.container.v1beta1" + + ".NodeNetworkConfig.NetworkPerformanceCon" + + "figH\001\210\001\001\022[\n\035pod_cidr_overprovision_confi" + + "g\030\r \001(\01324.google.container.v1beta1.PodCI" + + "DROverprovisionConfig\022^\n\037additional_node" + + "_network_configs\030\016 \003(\01325.google.containe" + + "r.v1beta1.AdditionalNodeNetworkConfig\022\\\n" + + "\036additional_pod_network_configs\030\017 \003(\01324." + + "google.container.v1beta1.AdditionalPodNe" + + "tworkConfig\022\'\n\032pod_ipv4_range_utilizatio" + + "n\030\020 \001(\001B\003\340A\003\032\372\002\n\030NetworkPerformanceConfi" + + "g\022s\n\033total_egress_bandwidth_tier\030\001 \001(\0162I" + + ".google.container.v1beta1.NodeNetworkCon" + + "fig.NetworkPerformanceConfig.TierH\000\210\001\001\022y" + + "\n!external_ip_egress_bandwidth_tier\030\002 \001(" + + "\0162I.google.container.v1beta1.NodeNetwork" + + "Config.NetworkPerformanceConfig.TierH\001\210\001" + + "\001\"(\n\004Tier\022\024\n\020TIER_UNSPECIFIED\020\000\022\n\n\006TIER_" + + "1\020\001B\036\n\034_total_egress_bandwidth_tierB$\n\"_" + + "external_ip_egress_bandwidth_tierB\027\n\025_en" + + "able_private_nodesB\035\n\033_network_performan" + + "ce_config\"B\n\033AdditionalNodeNetworkConfig" + + "\022\017\n\007network\030\001 \001(\t\022\022\n\nsubnetwork\030\002 \001(\t\"\260\001" + + "\n\032AdditionalPodNetworkConfig\022\022\n\nsubnetwo" + + "rk\030\001 \001(\t\022\033\n\023secondary_pod_range\030\002 \001(\t\022K\n" + + "\021max_pods_per_node\030\003 \001(\0132+.google.contai" + + "ner.v1beta1.MaxPodsConstraintH\000\210\001\001B\024\n\022_m" + + "ax_pods_per_node\"Y\n\026ShieldedInstanceConf" + + "ig\022\032\n\022enable_secure_boot\030\001 \001(\010\022#\n\033enable" + + "_integrity_monitoring\030\002 \001(\010\"\212\001\n\rSandboxC" + + "onfig\022\030\n\014sandbox_type\030\001 \001(\tB\002\030\001\022:\n\004type\030" + + "\002 \001(\0162,.google.container.v1beta1.Sandbox" + + "Config.Type\"#\n\004Type\022\017\n\013UNSPECIFIED\020\000\022\n\n\006" + + "GVISOR\020\001\"1\n\026EphemeralStorageConfig\022\027\n\017lo" + + "cal_ssd_count\030\001 \001(\005\"2\n\027LocalNvmeSsdBlock" + + "Config\022\027\n\017local_ssd_count\030\001 \001(\005\"9\n\036Ephem" + + "eralStorageLocalSsdConfig\022\027\n\017local_ssd_c" + + "ount\030\001 \001(\005\"\035\n\nGcfsConfig\022\017\n\007enabled\030\001 \001(" + + "\010\"\344\001\n\023ReservationAffinity\022T\n\030consume_res" + + "ervation_type\030\001 \001(\01622.google.container.v" + + "1beta1.ReservationAffinity.Type\022\013\n\003key\030\002" + + " \001(\t\022\016\n\006values\030\003 \003(\t\"Z\n\004Type\022\017\n\013UNSPECIF" + + "IED\020\000\022\022\n\016NO_RESERVATION\020\001\022\023\n\017ANY_RESERVA" + + "TION\020\002\022\030\n\024SPECIFIC_RESERVATION\020\003\"\240\002\n\020Sol" + + "eTenantConfig\022P\n\017node_affinities\030\001 \003(\01327" + + ".google.container.v1beta1.SoleTenantConf" + + "ig.NodeAffinity\032\271\001\n\014NodeAffinity\022\013\n\003key\030" + + "\001 \001(\t\022R\n\010operator\030\002 \001(\0162@.google.contain" + + "er.v1beta1.SoleTenantConfig.NodeAffinity" + + ".Operator\022\016\n\006values\030\003 \003(\t\"8\n\010Operator\022\030\n" + + "\024OPERATOR_UNSPECIFIED\020\000\022\006\n\002IN\020\001\022\n\n\006NOT_I" + + "N\020\002\"\255\005\n\025HostMaintenancePolicy\022f\n\024mainten" + + "ance_interval\030\001 \001(\0162C.google.container.v" + + "1beta1.HostMaintenancePolicy.Maintenance" + + "IntervalH\001\210\001\001\022~\n\"opportunistic_maintenan" + + "ce_strategy\030\002 \001(\0132P.google.container.v1b" + + "eta1.HostMaintenancePolicy.Opportunistic" + + "MaintenanceStrategyH\000\032\240\002\n OpportunisticM" + + "aintenanceStrategy\022=\n\025node_idle_time_win" + + "dow\030\001 \001(\0132\031.google.protobuf.DurationH\000\210\001" + + "\001\022G\n\037maintenance_availability_window\030\002 \001" + + "(\0132\031.google.protobuf.DurationH\001\210\001\001\022\037\n\022mi" + + "n_nodes_per_pool\030\003 \001(\003H\002\210\001\001B\030\n\026_node_idl" + + "e_time_windowB\"\n _maintenance_availabili" + + "ty_windowB\025\n\023_min_nodes_per_pool\"X\n\023Main" + + "tenanceInterval\022$\n MAINTENANCE_INTERVAL_" + + "UNSPECIFIED\020\000\022\r\n\tAS_NEEDED\020\001\022\014\n\010PERIODIC" + + "\020\002B\026\n\024maintenance_strategyB\027\n\025_maintenan" + + "ce_interval\"\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.c" + + "ontainer.v1beta1.NodeTaint.Effect\"Y\n\006Eff" + + "ect\022\026\n\022EFFECT_UNSPECIFIED\020\000\022\017\n\013NO_SCHEDU" + + "LE\020\001\022\026\n\022PREFER_NO_SCHEDULE\020\002\022\016\n\nNO_EXECU" + + "TE\020\003\"A\n\nNodeTaints\0223\n\006taints\030\001 \003(\0132#.goo" + + "gle.container.v1beta1.NodeTaint\"}\n\nNodeL" + + "abels\022@\n\006labels\030\001 \003(\01320.google.container" + + ".v1beta1.NodeLabels.LabelsEntry\032-\n\013Label" + + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\205" + + "\001\n\016ResourceLabels\022D\n\006labels\030\001 \003(\01324.goog" + + "le.container.v1beta1.ResourceLabels.Labe" + + "lsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t:\0028\001\"\033\n\013NetworkTags\022\014\n\004tags\030\001 " + + "\003(\t\"\336\001\n\nMasterAuth\022\024\n\010username\030\001 \001(\tB\002\030\001" + + "\022\024\n\010password\030\002 \001(\tB\002\030\001\022T\n\031client_certifi" + + "cate_config\030\003 \001(\01321.google.container.v1b" + + "eta1.ClientCertificateConfig\022\036\n\026cluster_" + + "ca_certificate\030d \001(\t\022\032\n\022client_certifica" + + "te\030e \001(\t\022\022\n\nclient_key\030f \001(\t\";\n\027ClientCe" + + "rtificateConfig\022 \n\030issue_client_certific" + + "ate\030\001 \001(\010\"\350\010\n\014AddonsConfig\022H\n\023http_load_" + + "balancing\030\001 \001(\0132+.google.container.v1bet" + + "a1.HttpLoadBalancing\022V\n\032horizontal_pod_a" + + "utoscaling\030\002 \001(\01322.google.container.v1be" + + "ta1.HorizontalPodAutoscaling\022O\n\024kubernet" + + "es_dashboard\030\003 \001(\0132-.google.container.v1" + + "beta1.KubernetesDashboardB\002\030\001\022L\n\025network" + + "_policy_config\030\004 \001(\0132-.google.container." + + "v1beta1.NetworkPolicyConfig\022?\n\014istio_con" + + "fig\030\005 \001(\0132%.google.container.v1beta1.Ist" + + "ioConfigB\002\030\001\022B\n\020cloud_run_config\030\007 \001(\0132(" + + ".google.container.v1beta1.CloudRunConfig" + + "\022B\n\020dns_cache_config\030\010 \001(\0132(.google.cont" + + "ainer.v1beta1.DnsCacheConfig\022P\n\027config_c" + + "onnector_config\030\n \001(\0132/.google.container" + + ".v1beta1.ConfigConnectorConfig\022i\n%gce_pe" + + "rsistent_disk_csi_driver_config\030\013 \001(\0132:." + + "google.container.v1beta1.GcePersistentDi" + + "skCsiDriverConfig\022=\n\013kalm_config\030\014 \001(\0132$" + + ".google.container.v1beta1.KalmConfigB\002\030\001" + + "\022^\n\037gcp_filestore_csi_driver_config\030\016 \001(" + + "\01325.google.container.v1beta1.GcpFilestor" + + "eCsiDriverConfig\022O\n\027gke_backup_agent_con" + + "fig\030\020 \001(\0132..google.container.v1beta1.Gke" + + "BackupAgentConfig\022T\n\032gcs_fuse_csi_driver" + + "_config\030\021 \001(\01320.google.container.v1beta1" + + ".GcsFuseCsiDriverConfig\022K\n\022stateful_ha_c" + + "onfig\030\022 \001(\0132*.google.container.v1beta1.S" + + "tatefulHAConfigB\003\340A\001\"%\n\021HttpLoadBalancin" + + "g\022\020\n\010disabled\030\001 \001(\010\",\n\030HorizontalPodAuto" + + "scaling\022\020\n\010disabled\030\001 \001(\010\"\'\n\023KubernetesD" + + "ashboard\022\020\n\010disabled\030\001 \001(\010\"\'\n\023NetworkPol" + + "icyConfig\022\020\n\010disabled\030\001 \001(\010\"!\n\016DnsCacheC" + + "onfig\022\017\n\007enabled\030\001 \001(\010\"!\n\nKalmConfig\022\023\n\007" + + "enabled\030\001 \001(\010B\002\030\001\"\'\n\024GkeBackupAgentConfi" + + "g\022\017\n\007enabled\030\001 \001(\010\"#\n\020StatefulHAConfig\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\".\n\033GcpFil" + + "estoreCsiDriverConfig\022\017\n\007enabled\030\001 \001(\010\")" + + "\n\026GcsFuseCsiDriverConfig\022\017\n\007enabled\030\001 \001(" + + "\010\"9\n&PrivateClusterMasterGlobalAccessCon" + + "fig\022\017\n\007enabled\030\001 \001(\010\"\312\002\n\024PrivateClusterC" + + "onfig\022\034\n\024enable_private_nodes\030\001 \001(\010\022\037\n\027e" + + "nable_private_endpoint\030\002 \001(\010\022\036\n\026master_i" + + "pv4_cidr_block\030\003 \001(\t\022\030\n\020private_endpoint" + + "\030\004 \001(\t\022\027\n\017public_endpoint\030\005 \001(\t\022\024\n\014peeri" + + "ng_name\030\007 \001(\t\022e\n\033master_global_access_co" + + "nfig\030\010 \001(\0132@.google.container.v1beta1.Pr" + + "ivateClusterMasterGlobalAccessConfig\022#\n\033" + + "private_endpoint_subnetwork\030\n \001(\t\"\237\001\n\013Is" + + "tioConfig\022\024\n\010disabled\030\001 \001(\010B\002\030\001\022E\n\004auth\030" + + "\002 \001(\01623.google.container.v1beta1.IstioCo" + + "nfig.IstioAuthModeB\002\030\001\"3\n\rIstioAuthMode\022" + + "\r\n\tAUTH_NONE\020\000\022\023\n\017AUTH_MUTUAL_TLS\020\001\"\363\001\n\016" + + "CloudRunConfig\022\020\n\010disabled\030\001 \001(\010\022U\n\022load" + + "_balancer_type\030\003 \001(\01629.google.container." + + "v1beta1.CloudRunConfig.LoadBalancerType\"" + + "x\n\020LoadBalancerType\022\"\n\036LOAD_BALANCER_TYP" + + "E_UNSPECIFIED\020\000\022\037\n\033LOAD_BALANCER_TYPE_EX" + + "TERNAL\020\001\022\037\n\033LOAD_BALANCER_TYPE_INTERNAL\020" + + "\002\"\223\002\n\036MasterAuthorizedNetworksConfig\022\017\n\007" + + "enabled\030\001 \001(\010\022W\n\013cidr_blocks\030\002 \003(\0132B.goo" + + "gle.container.v1beta1.MasterAuthorizedNe" + + "tworksConfig.CidrBlock\022,\n\037gcp_public_cid" + + "rs_access_enabled\030\003 \001(\010H\000\210\001\001\0325\n\tCidrBloc" + + "k\022\024\n\014display_name\030\001 \001(\t\022\022\n\ncidr_block\030\002 " + + "\001(\tB\"\n _gcp_public_cidrs_access_enabled\"" + + "\035\n\nLegacyAbac\022\017\n\007enabled\030\001 \001(\010\"\226\001\n\rNetwo" + + "rkPolicy\022B\n\010provider\030\001 \001(\01620.google.cont" + + "ainer.v1beta1.NetworkPolicy.Provider\022\017\n\007" + + "enabled\030\002 \001(\010\"0\n\010Provider\022\030\n\024PROVIDER_UN" + + "SPECIFIED\020\000\022\n\n\006CALICO\020\001\"-\n\032PodCIDROverpr" + + "ovisionConfig\022\017\n\007disable\030\001 \001(\010\"\246\010\n\022IPAll" + + "ocationPolicy\022\026\n\016use_ip_aliases\030\001 \001(\010\022\031\n" + + "\021create_subnetwork\030\002 \001(\010\022\027\n\017subnetwork_n" + + "ame\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\034cluster_secondar" + + "y_range_name\030\007 \001(\t\022%\n\035services_secondary" + + "_range_name\030\010 \001(\t\022\037\n\027cluster_ipv4_cidr_b" + + "lock\030\t \001(\t\022\034\n\024node_ipv4_cidr_block\030\n \001(\t" + + "\022 \n\030services_ipv4_cidr_block\030\013 \001(\t\022\033\n\023al" + + "low_route_overlap\030\014 \001(\010\022\033\n\023tpu_ipv4_cidr" + + "_block\030\r \001(\t\022\022\n\nuse_routes\030\017 \001(\010\022J\n\nstac" + + "k_type\030\020 \001(\01626.google.container.v1beta1." + + "IPAllocationPolicy.StackType\022U\n\020ipv6_acc" + + "ess_type\030\021 \001(\0162;.google.container.v1beta" + + "1.IPAllocationPolicy.IPv6AccessType\022[\n\035p" + + "od_cidr_overprovision_config\030\025 \001(\01324.goo" + + "gle.container.v1beta1.PodCIDROverprovisi" + + "onConfig\022#\n\026subnet_ipv6_cidr_block\030\026 \001(\t" + + "B\003\340A\003\022%\n\030services_ipv6_cidr_block\030\027 \001(\tB" + + "\003\340A\003\022^\n\034additional_pod_ranges_config\030\030 \001" + + "(\01323.google.container.v1beta1.Additional" + + "PodRangesConfigB\003\340A\003\022/\n\"default_pod_ipv4" + + "_range_utilization\030\031 \001(\001B\003\340A\003\"@\n\tStackTy" + + "pe\022\032\n\026STACK_TYPE_UNSPECIFIED\020\000\022\010\n\004IPV4\020\001" + + "\022\r\n\tIPV4_IPV6\020\002\"N\n\016IPv6AccessType\022 \n\034IPV" + + "6_ACCESS_TYPE_UNSPECIFIED\020\000\022\014\n\010INTERNAL\020" + + "\001\022\014\n\010EXTERNAL\020\002\"\300\003\n\023BinaryAuthorization\022" + + "\023\n\007enabled\030\001 \001(\010B\002\030\001\022U\n\017evaluation_mode\030" + + "\002 \001(\0162<.google.container.v1beta1.BinaryA" + + "uthorization.EvaluationMode\022Y\n\017policy_bi" + + "ndings\030\005 \003(\0132;.google.container.v1beta1." + + "BinaryAuthorization.PolicyBindingB\003\340A\001\032+" + + "\n\rPolicyBinding\022\021\n\004name\030\001 \001(\tH\000\210\001\001B\007\n\005_n" + + "ame\"\264\001\n\016EvaluationMode\022\037\n\033EVALUATION_MOD" + + "E_UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022$\n PROJECT" + + "_SINGLETON_POLICY_ENFORCE\020\002\022\023\n\017POLICY_BI" + + "NDINGS\020\005\0228\n4POLICY_BINDINGS_AND_PROJECT_" + + "SINGLETON_POLICY_ENFORCE\020\006\"*\n\027PodSecurit" + + "yPolicyConfig\022\017\n\007enabled\030\001 \001(\010\"D\n\031Authen" + + "ticatorGroupsConfig\022\017\n\007enabled\030\001 \001(\010\022\026\n\016" + + "security_group\030\002 \001(\t\"\226\001\n\020ClusterTelemetr" + + "y\022=\n\004type\030\001 \001(\0162/.google.container.v1bet" + + "a1.ClusterTelemetry.Type\"C\n\004Type\022\017\n\013UNSP" + + "ECIFIED\020\000\022\014\n\010DISABLED\020\001\022\013\n\007ENABLED\020\002\022\017\n\013" + + "SYSTEM_ONLY\020\003\"\232!\n\007Cluster\022\014\n\004name\030\001 \001(\t\022" + + "\023\n\013description\030\002 \001(\t\022\036\n\022initial_node_cou" + + "nt\030\003 \001(\005B\002\030\001\022=\n\013node_config\030\004 \001(\0132$.goog" + + "le.container.v1beta1.NodeConfigB\002\030\001\0229\n\013m" + + "aster_auth\030\005 \001(\0132$.google.container.v1be" + + "ta1.MasterAuth\022\027\n\017logging_service\030\006 \001(\t\022" + + "\032\n\022monitoring_service\030\007 \001(\t\022\017\n\007network\030\010" + + " \001(\t\022\031\n\021cluster_ipv4_cidr\030\t \001(\t\022=\n\raddon" + + "s_config\030\n \001(\0132&.google.container.v1beta" + + "1.AddonsConfig\022\022\n\nsubnetwork\030\013 \001(\t\0226\n\nno" + + "de_pools\030\014 \003(\0132\".google.container.v1beta" + + "1.NodePool\022\021\n\tlocations\030\r \003(\t\022\037\n\027enable_" + + "kubernetes_alpha\030\016 \001(\010\022I\n\024enable_k8s_bet" + + "a_apis\030\217\001 \001(\0132*.google.container.v1beta1" + + ".K8sBetaAPIConfig\022N\n\017resource_labels\030\017 \003" + + "(\01325.google.container.v1beta1.Cluster.Re" + + "sourceLabelsEntry\022\031\n\021label_fingerprint\030\020" + + " \001(\t\0229\n\013legacy_abac\030\022 \001(\0132$.google.conta" + + "iner.v1beta1.LegacyAbac\022?\n\016network_polic" + + "y\030\023 \001(\0132\'.google.container.v1beta1.Netwo" + + "rkPolicy\022J\n\024ip_allocation_policy\030\024 \001(\0132," + + ".google.container.v1beta1.IPAllocationPo" + + "licy\022c\n!master_authorized_networks_confi" + + "g\030\026 \001(\01328.google.container.v1beta1.Maste" + + "rAuthorizedNetworksConfig\022G\n\022maintenance" + + "_policy\030\027 \001(\0132+.google.container.v1beta1" + + ".MaintenancePolicy\022K\n\024binary_authorizati" + + "on\030\030 \001(\0132-.google.container.v1beta1.Bina" + + "ryAuthorization\022U\n\032pod_security_policy_c" + + "onfig\030\031 \001(\01321.google.container.v1beta1.P" + + "odSecurityPolicyConfig\022A\n\013autoscaling\030\032 " + + "\001(\0132,.google.container.v1beta1.ClusterAu" + + "toscaling\022?\n\016network_config\030\033 \001(\0132\'.goog" + + "le.container.v1beta1.NetworkConfig\022\033\n\017pr" + + "ivate_cluster\030\034 \001(\010B\002\030\001\022\"\n\026master_ipv4_c" + + "idr_block\030\035 \001(\tB\002\030\001\022P\n\033default_max_pods_" + + "constraint\030\036 \001(\0132+.google.container.v1be" + + "ta1.MaxPodsConstraint\022Y\n\034resource_usage_" + + "export_config\030! \001(\01323.google.container.v" + + "1beta1.ResourceUsageExportConfig\022X\n\033auth" + + "enticator_groups_config\030\" \001(\01323.google.c" + + "ontainer.v1beta1.AuthenticatorGroupsConf" + + "ig\022N\n\026private_cluster_config\030% \001(\0132..goo" + + "gle.container.v1beta1.PrivateClusterConf" + + "ig\022R\n\030vertical_pod_autoscaling\030\' \001(\01320.g" + + "oogle.container.v1beta1.VerticalPodAutos" + + "caling\022?\n\016shielded_nodes\030( \001(\0132\'.google." + + "container.v1beta1.ShieldedNodes\022A\n\017relea" + + "se_channel\030) \001(\0132(.google.container.v1be" + + "ta1.ReleaseChannel\022R\n\030workload_identity_" + + "config\030+ \001(\01320.google.container.v1beta1." + + "WorkloadIdentityConfig\022M\n\025workload_certi" + + "ficates\0304 \001(\0132..google.container.v1beta1" + + ".WorkloadCertificates\022E\n\021mesh_certificat" + + "es\030C \001(\0132*.google.container.v1beta1.Mesh" + + "Certificates\022J\n\024workload_alts_config\0305 \001" + + "(\0132,.google.container.v1beta1.WorkloadAL" + + "TSConfig\022N\n\026cost_management_config\030- \001(\013" + + "2..google.container.v1beta1.CostManageme" + + "ntConfig\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\022P\n\027identity_service_config\0306 \001(\0132/." + + "google.container.v1beta1.IdentityService" + + "Config\022\021\n\tself_link\030d \001(\t\022\020\n\004zone\030e \001(\tB" + + "\002\030\001\022\020\n\010endpoint\030f \001(\t\022\037\n\027initial_cluster" + + "_version\030g \001(\t\022\036\n\026current_master_version" + + "\030h \001(\t\022 \n\024current_node_version\030i \001(\tB\002\030\001" + + "\022\023\n\013create_time\030j \001(\t\0228\n\006status\030k \001(\0162(." + + "google.container.v1beta1.Cluster.Status\022" + + "\032\n\016status_message\030l \001(\tB\002\030\001\022\033\n\023node_ipv4" + + "_cidr_size\030m \001(\005\022\032\n\022services_ipv4_cidr\030n" + + " \001(\t\022\037\n\023instance_group_urls\030o \003(\tB\002\030\001\022\036\n" + + "\022current_node_count\030p \001(\005B\002\030\001\022\023\n\013expire_" + + "time\030q \001(\t\022\020\n\010location\030r \001(\t\022\022\n\nenable_t" + + "pu\030s \001(\010\022\033\n\023tpu_ipv4_cidr_block\030t \001(\t\022I\n" + + "\023database_encryption\030& \001(\0132,.google.cont" + + "ainer.v1beta1.DatabaseEncryption\022=\n\ncond" + + "itions\030v \003(\0132).google.container.v1beta1." + + "StatusCondition\0220\n\006master\030| \001(\0132 .google" + + ".container.v1beta1.Master\0227\n\tautopilot\030\200" + + "\001 \001(\0132#.google.container.v1beta1.Autopil" + + "ot\022\020\n\002id\030\201\001 \001(\tB\003\340A\003\022L\n\022node_pool_defaul" + + "ts\030\203\001 \001(\0132*.google.container.v1beta1.Nod" + + "ePoolDefaultsH\000\210\001\001\022@\n\016logging_config\030\204\001 " + + "\001(\0132\'.google.container.v1beta1.LoggingCo" + + "nfig\022F\n\021monitoring_config\030\205\001 \001(\0132*.googl" + + "e.container.v1beta1.MonitoringConfig\022L\n\025" + + "node_pool_auto_config\030\210\001 \001(\0132,.google.co" + + "ntainer.v1beta1.NodePoolAutoConfig\022I\n\016pr" + + "otect_config\030\211\001 \001(\0132\'.google.container.v" + + "1beta1.ProtectConfigB\002\030\001H\001\210\001\001\022\r\n\004etag\030\213\001" + + " \001(\t\022/\n\005fleet\030\214\001 \001(\0132\037.google.container." + + "v1beta1.Fleet\022Q\n\027security_posture_config" + + "\030\221\001 \001(\0132/.google.container.v1beta1.Secur" + + "ityPostureConfig\022F\n\021enterprise_config\030\225\001" + + " \001(\0132*.google.container.v1beta1.Enterpri" + + "seConfig\0325\n\023ResourceLabelsEntry\022\013\n\003key\030\001", + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"w\n\006Status\022\026\n\022STA" + + "TUS_UNSPECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007R" + + "UNNING\020\002\022\017\n\013RECONCILING\020\003\022\014\n\010STOPPING\020\004\022" + + "\t\n\005ERROR\020\005\022\014\n\010DEGRADED\020\006B\025\n\023_node_pool_d" + + "efaultsB\021\n\017_protect_config\"(\n\020K8sBetaAPI" + + "Config\022\024\n\014enabled_apis\030\001 \003(\t\"\304\001\n\016Workloa" + + "dConfig\022F\n\naudit_mode\030\001 \001(\0162-.google.con" + + "tainer.v1beta1.WorkloadConfig.ModeH\000\210\001\001\"" + + "[\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\014\n\010DISABLE" + + "D\020\001\022\t\n\005BASIC\020\004\022\020\n\010BASELINE\020\002\032\002\010\001\022\022\n\nREST" + + "RICTED\020\003\032\002\010\001B\r\n\013_audit_mode\"\333\002\n\rProtectC" + + "onfig\022F\n\017workload_config\030\001 \001(\0132(.google." + + "container.v1beta1.WorkloadConfigH\000\210\001\001\022k\n" + + "\033workload_vulnerability_mode\030\002 \001(\0162A.goo" + + "gle.container.v1beta1.ProtectConfig.Work" + + "loadVulnerabilityModeH\001\210\001\001\"a\n\031WorkloadVu" + + "lnerabilityMode\022+\n\'WORKLOAD_VULNERABILIT" + + "Y_MODE_UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\t\n\005BA" + + "SIC\020\002B\022\n\020_workload_configB\036\n\034_workload_v" + + "ulnerability_mode\"\250\003\n\025SecurityPostureCon" + + "fig\022G\n\004mode\030\001 \001(\01624.google.container.v1b" + + "eta1.SecurityPostureConfig.ModeH\000\210\001\001\022b\n\022" + + "vulnerability_mode\030\002 \001(\0162A.google.contai" + + "ner.v1beta1.SecurityPostureConfig.Vulner" + + "abilityModeH\001\210\001\001\"5\n\004Mode\022\024\n\020MODE_UNSPECI" + + "FIED\020\000\022\014\n\010DISABLED\020\001\022\t\n\005BASIC\020\002\"\212\001\n\021Vuln" + + "erabilityMode\022\"\n\036VULNERABILITY_MODE_UNSP" + + "ECIFIED\020\000\022\032\n\026VULNERABILITY_DISABLED\020\001\022\027\n" + + "\023VULNERABILITY_BASIC\020\002\022\034\n\030VULNERABILITY_" + + "ENTERPRISE\020\003B\007\n\005_modeB\025\n\023_vulnerability_" + + "mode\"^\n\020NodePoolDefaults\022J\n\024node_config_" + + "defaults\030\001 \001(\0132,.google.container.v1beta" + + "1.NodeConfigDefaults\"\352\001\n\022NodeConfigDefau" + + "lts\0229\n\013gcfs_config\030\001 \001(\0132$.google.contai" + + "ner.v1beta1.GcfsConfig\022G\n\016logging_config" + + "\030\003 \001(\0132/.google.container.v1beta1.NodePo" + + "olLoggingConfig\022P\n\027host_maintenance_poli" + + "cy\030\005 \001(\0132/.google.container.v1beta1.Host" + + "MaintenancePolicy\"\237\001\n\022NodePoolAutoConfig" + + "\022;\n\014network_tags\030\001 \001(\0132%.google.containe" + + "r.v1beta1.NetworkTags\022L\n\025resource_manage" + + "r_tags\030\002 \001(\0132-.google.container.v1beta1." + + "ResourceManagerTags\"\271$\n\rClusterUpdate\022\034\n" + + "\024desired_node_version\030\004 \001(\t\022\"\n\032desired_m" + + "onitoring_service\030\005 \001(\t\022E\n\025desired_addon" + + "s_config\030\006 \001(\0132&.google.container.v1beta" + + "1.AddonsConfig\022\034\n\024desired_node_pool_id\030\007" + + " \001(\t\022\032\n\022desired_image_type\030\010 \001(\t\022T\n\035desi" + + "red_node_pool_autoscaling\030\t \001(\0132-.google" + + ".container.v1beta1.NodePoolAutoscaling\022\031" + + "\n\021desired_locations\030\n \003(\t\022k\n)desired_mas" + + "ter_authorized_networks_config\030\014 \001(\01328.g" + + "oogle.container.v1beta1.MasterAuthorized" + + "NetworksConfig\022]\n\"desired_pod_security_p" + + "olicy_config\030\016 \001(\01321.google.container.v1" + + "beta1.PodSecurityPolicyConfig\022Q\n\033desired" + + "_cluster_autoscaling\030\017 \001(\0132,.google.cont" + + "ainer.v1beta1.ClusterAutoscaling\022S\n\034desi" + + "red_binary_authorization\030\020 \001(\0132-.google." + + "container.v1beta1.BinaryAuthorization\022\037\n" + + "\027desired_logging_service\030\023 \001(\t\022a\n$desire" + + "d_resource_usage_export_config\030\025 \001(\01323.g" + + "oogle.container.v1beta1.ResourceUsageExp" + + "ortConfig\022Z\n desired_vertical_pod_autosc" + + "aling\030\026 \001(\01320.google.container.v1beta1.V" + + "erticalPodAutoscaling\022V\n\036desired_private" + + "_cluster_config\030\031 \001(\0132..google.container" + + ".v1beta1.PrivateClusterConfig\022a\n$desired" + + "_intra_node_visibility_config\030\032 \001(\01323.go" + + "ogle.container.v1beta1.IntraNodeVisibili" + + "tyConfig\022P\n\033desired_default_snat_status\030" + + "\034 \001(\0132+.google.container.v1beta1.Default" + + "SnatStatus\022M\n\031desired_cluster_telemetry\030" + + "\036 \001(\0132*.google.container.v1beta1.Cluster" + + "Telemetry\022I\n\027desired_release_channel\030\037 \001" + + "(\0132(.google.container.v1beta1.ReleaseCha" + + "nnel\022?\n\022desired_tpu_config\030& \001(\0132#.googl" + + "e.container.v1beta1.TpuConfig\022V\n\037desired" + + "_l4ilb_subsetting_config\030\' \001(\0132-.google." + + "container.v1beta1.ILBSubsettingConfig\022M\n" + + "\031desired_datapath_provider\0302 \001(\0162*.googl" + + "e.container.v1beta1.DatapathProvider\022]\n\"" + + "desired_private_ipv6_google_access\0303 \001(\016" + + "21.google.container.v1beta1.PrivateIPv6G" + + "oogleAccess\022Q\n\033desired_notification_conf" + + "ig\0307 \001(\0132,.google.container.v1beta1.Noti" + + "ficationConfig\022\036\n\026desired_master_version" + + "\030d \001(\t\022A\n\023desired_gcfs_config\030m \001(\0132$.go" + + "ogle.container.v1beta1.GcfsConfig\022Q\n\033des" + + "ired_database_encryption\030. \001(\0132,.google." + + "container.v1beta1.DatabaseEncryption\022Z\n " + + "desired_workload_identity_config\030/ \001(\01320" + + ".google.container.v1beta1.WorkloadIdenti" + + "tyConfig\022U\n\035desired_workload_certificate" + + "s\030= \001(\0132..google.container.v1beta1.Workl" + + "oadCertificates\022M\n\031desired_mesh_certific" + + "ates\030C \001(\0132*.google.container.v1beta1.Me" + + "shCertificates\022R\n\034desired_workload_alts_" + + "config\030> \001(\0132,.google.container.v1beta1." + + "WorkloadALTSConfig\022G\n\026desired_shielded_n" + + "odes\0300 \001(\0132\'.google.container.v1beta1.Sh" + + "ieldedNodes\022V\n\036desired_cost_management_c" + + "onfig\0301 \001(\0132..google.container.v1beta1.C" + + "ostManagementConfig\0228\n\016desired_master\0304 " + + "\001(\0132 .google.container.v1beta1.Master\022?\n" + + "\022desired_dns_config\0305 \001(\0132#.google.conta" + + "iner.v1beta1.DNSConfig\022_\n#desired_servic" + + "e_external_ips_config\030< \001(\01322.google.con" + + "tainer.v1beta1.ServiceExternalIPsConfig\022" + + "`\n#desired_authenticator_groups_config\030?" + + " \001(\01323.google.container.v1beta1.Authenti" + + "catorGroupsConfig\022G\n\026desired_logging_con" + + "fig\030@ \001(\0132\'.google.container.v1beta1.Log" + + "gingConfig\022M\n\031desired_monitoring_config\030" + + "A \001(\0132*.google.container.v1beta1.Monitor" + + "ingConfig\022X\n\037desired_identity_service_co" + + "nfig\030B \001(\0132/.google.container.v1beta1.Id" + + "entityServiceConfig\022,\n\037desired_enable_pr" + + "ivate_endpoint\030G \001(\010H\000\210\001\001\022Y\n*desired_nod" + + "e_pool_auto_config_network_tags\030n \001(\0132%." + + "google.container.v1beta1.NetworkTags\022P\n\026" + + "desired_protect_config\030p \001(\0132\'.google.co" + + "ntainer.v1beta1.ProtectConfigB\002\030\001H\001\210\001\001\022N" + + "\n\032desired_gateway_api_config\030r \001(\0132*.goo" + + "gle.container.v1beta1.GatewayAPIConfig\022\014" + + "\n\004etag\030s \001(\t\022Y\n desired_node_pool_loggin" + + "g_config\030t \001(\0132/.google.container.v1beta" + + "1.NodePoolLoggingConfig\0226\n\rdesired_fleet" + + "\030u \001(\0132\037.google.container.v1beta1.Fleet\022" + + "?\n\022desired_stack_type\030w \001(\0162#.google.con" + + "tainer.v1beta1.StackType\022Y\n\034additional_p" + + "od_ranges_config\030x \001(\01323.google.containe" + + "r.v1beta1.AdditionalPodRangesConfig\022a\n$r" + + "emoved_additional_pod_ranges_config\030y \001(" + + "\01323.google.container.v1beta1.AdditionalP" + + "odRangesConfig\022H\n\024enable_k8s_beta_apis\030z" + + " \001(\0132*.google.container.v1beta1.K8sBetaA" + + "PIConfig\022X\n\037desired_security_posture_con" + + "fig\030| \001(\0132/.google.container.v1beta1.Sec" + + "urityPostureConfig\022s\n\"desired_network_pe" + + "rformance_config\030} \001(\0132G.google.containe" + + "r.v1beta1.NetworkConfig.ClusterNetworkPe" + + "rformanceConfig\022/\n\"desired_enable_fqdn_n" + + "etwork_policy\030~ \001(\010H\002\210\001\001\022a\n(desired_auto" + + "pilot_workload_policy_config\030\200\001 \001(\0132..go" + + "ogle.container.v1beta1.WorkloadPolicyCon" + + "fig\022J\n\025desired_k8s_beta_apis\030\203\001 \001(\0132*.go" + + "ogle.container.v1beta1.K8sBetaAPIConfig\022" + + "Y\n\037desired_host_maintenance_policy\030\204\001 \001(" + + "\0132/.google.container.v1beta1.HostMainten" + + "ancePolicy\022k\n3desired_node_pool_auto_con" + + "fig_resource_manager_tags\030\210\001 \001(\0132-.googl" + + "e.container.v1beta1.ResourceManagerTags\022" + + "g\n$desired_in_transit_encryption_config\030" + + "\211\001 \001(\01623.google.container.v1beta1.InTran" + + "sitEncryptionConfigH\003\210\001\001B\"\n _desired_ena" + + "ble_private_endpointB\031\n\027_desired_protect" + + "_configB%\n#_desired_enable_fqdn_network_" + + "policyB\'\n%_desired_in_transit_encryption" + + "_config\"v\n\031AdditionalPodRangesConfig\022\027\n\017" + + "pod_range_names\030\001 \003(\t\022@\n\016pod_range_info\030" + + "\002 \003(\0132#.google.container.v1beta1.RangeIn" + + "foB\003\340A\003\">\n\tRangeInfo\022\027\n\nrange_name\030\001 \001(\t" + + "B\003\340A\003\022\030\n\013utilization\030\002 \001(\001B\003\340A\003\"\315\010\n\tOper" + + "ation\022\014\n\004name\030\001 \001(\t\022\020\n\004zone\030\002 \001(\tB\002\030\001\022@\n" + + "\016operation_type\030\003 \001(\0162(.google.container" + + ".v1beta1.Operation.Type\022:\n\006status\030\004 \001(\0162" + + "*.google.container.v1beta1.Operation.Sta" + + "tus\022\016\n\006detail\030\010 \001(\t\022\035\n\016status_message\030\005 " + + "\001(\tB\005\030\001\340A\003\022\021\n\tself_link\030\006 \001(\t\022\023\n\013target_" + + "link\030\007 \001(\t\022\020\n\010location\030\t \001(\t\022\022\n\nstart_ti" + + "me\030\n \001(\t\022\020\n\010end_time\030\013 \001(\t\022B\n\010progress\030\014" + + " \001(\0132+.google.container.v1beta1.Operatio" + + "nProgressB\003\340A\003\022I\n\022cluster_conditions\030\r \003" + + "(\0132).google.container.v1beta1.StatusCond" + + "itionB\002\030\001\022J\n\023nodepool_conditions\030\016 \003(\0132)" + + ".google.container.v1beta1.StatusConditio" + + "nB\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\007PE" + + "NDING\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003\022\014\n\010ABORTI" + + "NG\020\004\"\300\003\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\022\n\016C" + + "REATE_CLUSTER\020\001\022\022\n\016DELETE_CLUSTER\020\002\022\022\n\016U" + + "PGRADE_MASTER\020\003\022\021\n\rUPGRADE_NODES\020\004\022\022\n\016RE" + + "PAIR_CLUSTER\020\005\022\022\n\016UPDATE_CLUSTER\020\006\022\024\n\020CR" + + "EATE_NODE_POOL\020\007\022\024\n\020DELETE_NODE_POOL\020\010\022\034" + + "\n\030SET_NODE_POOL_MANAGEMENT\020\t\022\025\n\021AUTO_REP" + + "AIR_NODES\020\n\022\032\n\022AUTO_UPGRADE_NODES\020\013\032\002\010\001\022" + + "\022\n\nSET_LABELS\020\014\032\002\010\001\022\027\n\017SET_MASTER_AUTH\020\r" + + "\032\002\010\001\022\026\n\022SET_NODE_POOL_SIZE\020\016\022\032\n\022SET_NETW" + + "ORK_POLICY\020\017\032\002\010\001\022\036\n\026SET_MAINTENANCE_POLI" + + "CY\020\020\032\002\010\001\022\022\n\016RESIZE_CLUSTER\020\022\022\031\n\025FLEET_FE" + + "ATURE_UPGRADE\020\023\"\312\002\n\021OperationProgress\022\014\n" + + "\004name\030\001 \001(\t\022:\n\006status\030\002 \001(\0162*.google.con" + + "tainer.v1beta1.Operation.Status\022C\n\007metri" + + "cs\030\003 \003(\01322.google.container.v1beta1.Oper" + + "ationProgress.Metric\022;\n\006stages\030\004 \003(\0132+.g" + + "oogle.container.v1beta1.OperationProgres" + + "s\032i\n\006Metric\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023\n\tint_va" + + "lue\030\002 \001(\003H\000\022\026\n\014double_value\030\003 \001(\001H\000\022\026\n\014s" + + "tring_value\030\004 \001(\tH\000B\007\n\005value\"\217\001\n\024CreateC" + + "lusterRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002" + + "\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\0227\n\007cluster\030\003 \001(\0132!" + + ".google.container.v1beta1.ClusterB\003\340A\002\022\016" + + "\n\006parent\030\005 \001(\t\"l\n\021GetClusterRequest\022\031\n\np" + + "roject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001" + + "\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\014\n\004name\030\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\006update\030\004 \001(\013" + + "2\'.google.container.v1beta1.ClusterUpdat" + + "eB\003\340A\002\022\014\n\004name\030\005 \001(\t\"\340\n\n\025UpdateNodePoolR" + + "equest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zon" + + "e\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A" + + "\002\022\033\n\014node_pool_id\030\004 \001(\tB\005\030\001\340A\002\022\031\n\014node_v" + + "ersion\030\005 \001(\tB\003\340A\002\022\027\n\nimage_type\030\006 \001(\tB\003\340" + + "A\002\022\021\n\tlocations\030\r \003(\t\022R\n\030workload_metada" + + "ta_config\030\016 \001(\01320.google.container.v1bet" + + "a1.WorkloadMetadataConfig\022\014\n\004name\030\010 \001(\t\022" + + "L\n\020upgrade_settings\030\017 \001(\01322.google.conta" + + "iner.v1beta1.NodePool.UpgradeSettings\0223\n" + + "\004tags\030\020 \001(\0132%.google.container.v1beta1.N" + + "etworkTags\0224\n\006taints\030\021 \001(\0132$.google.cont" + + "ainer.v1beta1.NodeTaints\0224\n\006labels\030\022 \001(\013" + + "2$.google.container.v1beta1.NodeLabels\022D" + + "\n\021linux_node_config\030\023 \001(\0132).google.conta" + + "iner.v1beta1.LinuxNodeConfig\022C\n\016kubelet_" + + "config\030\024 \001(\0132+.google.container.v1beta1." + + "NodeKubeletConfig\022H\n\023node_network_config" + + "\030\025 \001(\0132+.google.container.v1beta1.NodeNe" + + "tworkConfig\0229\n\013gcfs_config\030\026 \001(\0132$.googl" + + "e.container.v1beta1.GcfsConfig\022G\n\022confid" + + "ential_nodes\030\027 \001(\0132+.google.container.v1" + + "beta1.ConfidentialNodes\0223\n\005gvnic\030\035 \001(\0132$" + + ".google.container.v1beta1.VirtualNIC\022\014\n\004" + + "etag\030\036 \001(\t\0229\n\013fast_socket\030\037 \001(\0132$.google" + + ".container.v1beta1.FastSocket\022G\n\016logging" + + "_config\030 \001(\0132/.google.container.v1beta1" + + ".NodePoolLoggingConfig\022A\n\017resource_label" + + "s\030! \001(\0132(.google.container.v1beta1.Resou" + + "rceLabels\022H\n\023windows_node_config\030\" \001(\0132+" + + ".google.container.v1beta1.WindowsNodeCon" + + "fig\022\031\n\014machine_type\030$ \001(\tB\003\340A\001\022\026\n\tdisk_t" + + "ype\030% \001(\tB\003\340A\001\022\031\n\014disk_size_gb\030& \001(\003B\003\340A" + + "\001\022L\n\025resource_manager_tags\030\' \001(\0132-.googl" + + "e.container.v1beta1.ResourceManagerTags\"" + + "\336\001\n\035SetNodePoolAutoscalingRequest\022\031\n\npro" + + "ject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A" + + "\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\033\n\014node_poo" + + "l_id\030\004 \001(\tB\005\030\001\340A\002\022G\n\013autoscaling\030\005 \001(\0132-" + + ".google.container.v1beta1.NodePoolAutosc" + + "alingB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\221\001\n\030SetLoggingS" + + "erviceRequest\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\017logging_service\030\004 \001(\tB\003\340A\002\022\014" + + "\n\004name\030\005 \001(\t\"\227\001\n\033SetMonitoringServiceReq" + + "uest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030" + + "\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022" + + "\037\n\022monitoring_service\030\004 \001(\tB\003\340A\002\022\014\n\004name" + + "\030\006 \001(\t\"\265\001\n\026SetAddonsConfigRequest\022\031\n\npro" + + "ject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A" + + "\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022B\n\raddons_c" + + "onfig\030\004 \001(\0132&.google.container.v1beta1.A" + + "ddonsConfigB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\206\001\n\023SetLo" + + "cationsRequest\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\004nam" + + "e\030\006 \001(\t\"\213\001\n\023UpdateMasterRequest\022\031\n\nproje" + + "ct_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022" + + "\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\033\n\016master_ver" + + "sion\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\007 \001(\t\"\310\002\n\024SetMas" + + "terAuthRequest\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.conta" + + "iner.v1beta1.SetMasterAuthRequest.Action" + + "B\003\340A\002\0229\n\006update\030\005 \001(\0132$.google.container" + + ".v1beta1.MasterAuthB\003\340A\002\022\014\n\004name\030\007 \001(\t\"P" + + "\n\006Action\022\013\n\007UNKNOWN\020\000\022\020\n\014SET_PASSWORD\020\001\022" + + "\025\n\021GENERATE_PASSWORD\020\002\022\020\n\014SET_USERNAME\020\003" + + "\"o\n\024DeleteClusterRequest\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\nclus" + + "ter_id\030\003 \001(\tB\005\030\001\340A\002\022\014\n\004name\030\004 \001(\t\"U\n\023Lis" + + "tClustersRequest\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\024ListClustersResponse\0223\n\010clusters\030\001 \003" + + "(\0132!.google.container.v1beta1.Cluster\022\025\n" + + "\rmissing_zones\030\002 \003(\t\"p\n\023GetOperationRequ" + + "est\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002" + + " \001(\tB\005\030\001\340A\002\022\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_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\t" + + "B\005\030\001\340A\002\022\016\n\006parent\030\004 \001(\t\"s\n\026CancelOperati" + + "onRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004" + + "zone\030\002 \001(\tB\005\030\001\340A\002\022\033\n\014operation_id\030\003 \001(\tB" + + "\005\030\001\340A\002\022\014\n\004name\030\004 \001(\t\"h\n\026ListOperationsRe" + + "sponse\0227\n\noperations\030\001 \003(\0132#.google.cont" + + "ainer.v1beta1.Operation\022\025\n\rmissing_zones" + + "\030\002 \003(\t\"V\n\026GetServerConfigRequest\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\014\n\004name\030\004 \001(\t\"\351\005\n\014ServerConfig\022\037\n\027defau" + + "lt_cluster_version\030\001 \001(\t\022\033\n\023valid_node_v" + + "ersions\030\003 \003(\t\022\032\n\022default_image_type\030\004 \001(" + + "\t\022\031\n\021valid_image_types\030\005 \003(\t\022\035\n\025valid_ma" + + "ster_versions\030\006 \003(\t\022M\n\010channels\030\t \003(\0132;." + + "google.container.v1beta1.ServerConfig.Re" + + "leaseChannelConfig\022\\\n\024windows_version_ma" + + "ps\030\n \003(\0132>.google.container.v1beta1.Serv" + + "erConfig.WindowsVersionMapsEntry\032\261\002\n\024Rel" + + "easeChannelConfig\022A\n\007channel\030\001 \001(\01620.goo" + + "gle.container.v1beta1.ReleaseChannel.Cha" + + "nnel\022\027\n\017default_version\030\002 \001(\t\022l\n\022availab" + + "le_versions\030\003 \003(\0132L.google.container.v1b" + + "eta1.ServerConfig.ReleaseChannelConfig.A" + + "vailableVersionB\002\030\001\022\026\n\016valid_versions\030\004 " + + "\003(\t\0327\n\020AvailableVersion\022\017\n\007version\030\001 \001(\t" + + "\022\016\n\006reason\030\002 \001(\t:\002\030\001\032d\n\027WindowsVersionMa" + + "psEntry\022\013\n\003key\030\001 \001(\t\0228\n\005value\030\002 \001(\0132).go" + + "ogle.container.v1beta1.WindowsVersions:\002" + + "8\001\"F\n\026BestEffortProvisioning\022\017\n\007enabled\030" + + "\001 \001(\010\022\033\n\023min_provision_nodes\030\002 \001(\005\"\314\001\n\017W" + + "indowsVersions\022R\n\020windows_versions\030\001 \003(\013" + + "28.google.container.v1beta1.WindowsVersi" + + "ons.WindowsVersion\032e\n\016WindowsVersion\022\022\n\n" + + "image_type\030\001 \001(\t\022\022\n\nos_version\030\002 \001(\t\022+\n\020" + + "support_end_date\030\003 \001(\0132\021.google.type.Dat" + + "e\"\256\001\n\025CreateNodePoolRequest\022\031\n\nproject_i" + + "d\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\nc" + + "luster_id\030\003 \001(\tB\005\030\001\340A\002\022:\n\tnode_pool\030\004 \001(" + + "\0132\".google.container.v1beta1.NodePoolB\003\340" + + "A\002\022\016\n\006parent\030\006 \001(\t\"\215\001\n\025DeleteNodePoolReq" + + "uest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030" + + "\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022" + + "\033\n\014node_pool_id\030\004 \001(\tB\005\030\001\340A\002\022\014\n\004name\030\006 \001" + + "(\t\"q\n\024ListNodePoolsRequest\022\031\n\nproject_id" + + "\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncl" + + "uster_id\030\003 \001(\tB\005\030\001\340A\002\022\016\n\006parent\030\005 \001(\t\"\212\001" + + "\n\022GetNodePoolRequest\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\033\n\014node_pool_id\030\004 \001(\tB\005\030" + + "\001\340A\002\022\014\n\004name\030\006 \001(\t\"\251\004\n\021BlueGreenSettings" + + "\022d\n\027standard_rollout_policy\030\001 \001(\0132A.goog" + + "le.container.v1beta1.BlueGreenSettings.S" + + "tandardRolloutPolicyH\000\022h\n\031autoscaled_rol" + + "lout_policy\030\003 \001(\0132C.google.container.v1b" + + "eta1.BlueGreenSettings.AutoscaledRollout" + + "PolicyH\000\022?\n\027node_pool_soak_duration\030\002 \001(" + + "\0132\031.google.protobuf.DurationH\001\210\001\001\032\271\001\n\025St" + + "andardRolloutPolicy\022\032\n\020batch_percentage\030" + + "\001 \001(\002H\000\022\032\n\020batch_node_count\030\002 \001(\005H\000\022;\n\023b" + + "atch_soak_duration\030\003 \001(\0132\031.google.protob" + + "uf.DurationH\001\210\001\001B\023\n\021update_batch_sizeB\026\n" + + "\024_batch_soak_duration\032\031\n\027AutoscaledRollo" + + "utPolicyB\020\n\016rollout_policyB\032\n\030_node_pool" + + "_soak_duration\"\252\021\n\010NodePool\022\014\n\004name\030\001 \001(" + + "\t\0224\n\006config\030\002 \001(\0132$.google.container.v1b" + + "eta1.NodeConfig\022\032\n\022initial_node_count\030\003 " + + "\001(\005\022\021\n\tlocations\030\r \003(\t\022C\n\016network_config" + + "\030\016 \001(\0132+.google.container.v1beta1.NodeNe" + + "tworkConfig\022\021\n\tself_link\030d \001(\t\022\017\n\007versio" + + "n\030e \001(\t\022\033\n\023instance_group_urls\030f \003(\t\0229\n\006" + + "status\030g \001(\0162).google.container.v1beta1." + + "NodePool.Status\022\032\n\016status_message\030h \001(\tB" + + "\002\030\001\022B\n\013autoscaling\030\004 \001(\0132-.google.contai" + + "ner.v1beta1.NodePoolAutoscaling\022<\n\nmanag" + + "ement\030\005 \001(\0132(.google.container.v1beta1.N" + + "odeManagement\022H\n\023max_pods_constraint\030\006 \001" + + "(\0132+.google.container.v1beta1.MaxPodsCon" + + "straint\022=\n\nconditions\030i \003(\0132).google.con" + + "tainer.v1beta1.StatusCondition\022\032\n\022pod_ip" + + "v4_cidr_size\030\007 \001(\005\022L\n\020upgrade_settings\030k" + + " \001(\01322.google.container.v1beta1.NodePool" + + ".UpgradeSettings\022L\n\020placement_policy\030l \001" + + "(\01322.google.container.v1beta1.NodePool.P" + + "lacementPolicy\022G\n\013update_info\030m \001(\0132-.go" + + "ogle.container.v1beta1.NodePool.UpdateIn" + + "foB\003\340A\003\022\014\n\004etag\030n \001(\t\022R\n\023queued_provisio" + + "ning\030p \001(\01325.google.container.v1beta1.No" + + "dePool.QueuedProvisioning\022R\n\030best_effort" + + "_provisioning\030q \001(\01320.google.container.v" + + "1beta1.BestEffortProvisioning\032\372\001\n\017Upgrad" + + "eSettings\022\021\n\tmax_surge\030\001 \001(\005\022\027\n\017max_unav" + + "ailable\030\002 \001(\005\022G\n\010strategy\030\003 \001(\01620.google" + + ".container.v1beta1.NodePoolUpdateStrateg" + + "yH\000\210\001\001\022M\n\023blue_green_settings\030\004 \001(\0132+.go" + + "ogle.container.v1beta1.BlueGreenSettings" + + "H\001\210\001\001B\013\n\t_strategyB\026\n\024_blue_green_settin" + + "gs\032\262\004\n\nUpdateInfo\022T\n\017blue_green_info\030\001 \001" + + "(\0132;.google.container.v1beta1.NodePool.U" + + "pdateInfo.BlueGreenInfo\032\315\003\n\rBlueGreenInf" + + "o\022P\n\005phase\030\001 \001(\0162A.google.container.v1be" + + "ta1.NodePool.UpdateInfo.BlueGreenInfo.Ph" + + "ase\022 \n\030blue_instance_group_urls\030\002 \003(\t\022!\n" + + "\031green_instance_group_urls\030\003 \003(\t\022%\n\035blue" + + "_pool_deletion_start_time\030\004 \001(\t\022\032\n\022green" + + "_pool_version\030\005 \001(\t\"\341\001\n\005Phase\022\025\n\021PHASE_U" + + "NSPECIFIED\020\000\022\022\n\016UPDATE_STARTED\020\001\022\027\n\023CREA" + + "TING_GREEN_POOL\020\002\022\027\n\023CORDONING_BLUE_POOL" + + "\020\003\022\036\n\032WAITING_TO_DRAIN_BLUE_POOL\020\010\022\026\n\022DR" + + "AINING_BLUE_POOL\020\004\022\025\n\021NODE_POOL_SOAKING\020" + + "\005\022\026\n\022DELETING_BLUE_POOL\020\006\022\024\n\020ROLLBACK_ST" + + "ARTED\020\007\032\256\001\n\017PlacementPolicy\022E\n\004type\030\001 \001(", + "\01627.google.container.v1beta1.NodePool.Pl" + + "acementPolicy.Type\022\024\n\014tpu_topology\030\002 \001(\t" + + "\022\023\n\013policy_name\030\003 \001(\t\")\n\004Type\022\024\n\020TYPE_UN" + + "SPECIFIED\020\000\022\013\n\007COMPACT\020\001\032%\n\022QueuedProvis" + + "ioning\022\017\n\007enabled\030\001 \001(\010\"\201\001\n\006Status\022\026\n\022ST" + + "ATUS_UNSPECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007" + + "RUNNING\020\002\022\026\n\022RUNNING_WITH_ERROR\020\003\022\017\n\013REC" + + "ONCILING\020\004\022\014\n\010STOPPING\020\005\022\t\n\005ERROR\020\006\"\202\001\n\016" + + "NodeManagement\022\024\n\014auto_upgrade\030\001 \001(\010\022\023\n\013" + + "auto_repair\030\002 \001(\010\022E\n\017upgrade_options\030\n \001" + + "(\0132,.google.container.v1beta1.AutoUpgrad" + + "eOptions\"J\n\022AutoUpgradeOptions\022\037\n\027auto_u" + + "pgrade_start_time\030\001 \001(\t\022\023\n\013description\030\002" + + " \001(\t\"j\n\021MaintenancePolicy\022;\n\006window\030\001 \001(" + + "\0132+.google.container.v1beta1.Maintenance" + + "Window\022\030\n\020resource_version\030\003 \001(\t\"\212\003\n\021Mai" + + "ntenanceWindow\022T\n\030daily_maintenance_wind" + + "ow\030\002 \001(\01320.google.container.v1beta1.Dail" + + "yMaintenanceWindowH\000\022I\n\020recurring_window" + + "\030\003 \001(\0132-.google.container.v1beta1.Recurr" + + "ingTimeWindowH\000\022f\n\026maintenance_exclusion" + + "s\030\004 \003(\0132F.google.container.v1beta1.Maint" + + "enanceWindow.MaintenanceExclusionsEntry\032" + + "b\n\032MaintenanceExclusionsEntry\022\013\n\003key\030\001 \001" + + "(\t\0223\n\005value\030\002 \001(\0132$.google.container.v1b" + + "eta1.TimeWindow:\0028\001B\010\n\006policy\"\325\001\n\nTimeWi" + + "ndow\022^\n\035maintenance_exclusion_options\030\003 " + + "\001(\01325.google.container.v1beta1.Maintenan" + + "ceExclusionOptionsH\000\022.\n\nstart_time\030\001 \001(\013" + + "2\032.google.protobuf.Timestamp\022,\n\010end_time" + + "\030\002 \001(\0132\032.google.protobuf.TimestampB\t\n\007op" + + "tions\"\271\001\n\033MaintenanceExclusionOptions\022J\n" + + "\005scope\030\001 \001(\0162;.google.container.v1beta1." + + "MaintenanceExclusionOptions.Scope\"N\n\005Sco" + + "pe\022\017\n\013NO_UPGRADES\020\000\022\025\n\021NO_MINOR_UPGRADES" + + "\020\001\022\035\n\031NO_MINOR_OR_NODE_UPGRADES\020\002\"_\n\023Rec" + + "urringTimeWindow\0224\n\006window\030\001 \001(\0132$.googl" + + "e.container.v1beta1.TimeWindow\022\022\n\nrecurr" + + "ence\030\002 \001(\t\">\n\026DailyMaintenanceWindow\022\022\n\n" + + "start_time\030\002 \001(\t\022\020\n\010duration\030\003 \001(\t\"\327\001\n\034S" + + "etNodePoolManagementRequest\022\031\n\nproject_i" + + "d\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\nc" + + "luster_id\030\003 \001(\tB\005\030\001\340A\002\022\033\n\014node_pool_id\030\004" + + " \001(\tB\005\030\001\340A\002\022A\n\nmanagement\030\005 \001(\0132(.google" + + ".container.v1beta1.NodeManagementB\003\340A\002\022\014" + + "\n\004name\030\007 \001(\t\"\247\001\n\026SetNodePoolSizeRequest\022" + + "\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\t" + + "B\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\033\n\014no" + + "de_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\".\n\036CompleteNodePo" + + "olUpgradeRequest\022\014\n\004name\030\001 \001(\t\"\253\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\022\023\n\013respect_pdb\030\007" + + " \001(\010\"O\n\025ListNodePoolsResponse\0226\n\nnode_po" + + "ols\030\001 \003(\0132\".google.container.v1beta1.Nod" + + "ePool\"\276\003\n\022ClusterAutoscaling\022$\n\034enable_n" + + "ode_autoprovisioning\030\001 \001(\010\022@\n\017resource_l" + + "imits\030\002 \003(\0132\'.google.container.v1beta1.R" + + "esourceLimit\022\\\n\023autoscaling_profile\030\003 \001(" + + "\0162?.google.container.v1beta1.ClusterAuto" + + "scaling.AutoscalingProfile\022g\n#autoprovis" + + "ioning_node_pool_defaults\030\004 \001(\0132:.google" + + ".container.v1beta1.AutoprovisioningNodeP" + + "oolDefaults\022\"\n\032autoprovisioning_location" + + "s\030\005 \003(\t\"U\n\022AutoscalingProfile\022\027\n\023PROFILE" + + "_UNSPECIFIED\020\000\022\030\n\024OPTIMIZE_UTILIZATION\020\001" + + "\022\014\n\010BALANCED\020\002\"\207\004\n AutoprovisioningNodeP" + + "oolDefaults\022\024\n\014oauth_scopes\030\001 \003(\t\022\027\n\017ser" + + "vice_account\030\002 \001(\t\022L\n\020upgrade_settings\030\003" + + " \001(\01322.google.container.v1beta1.NodePool" + + ".UpgradeSettings\022<\n\nmanagement\030\004 \001(\0132(.g" + + "oogle.container.v1beta1.NodeManagement\022\034" + + "\n\020min_cpu_platform\030\005 \001(\tB\002\030\001\022\024\n\014disk_siz" + + "e_gb\030\006 \001(\005\022\021\n\tdisk_type\030\007 \001(\t\022R\n\030shielde" + + "d_instance_config\030\010 \001(\01320.google.contain" + + "er.v1beta1.ShieldedInstanceConfig\022\031\n\021boo" + + "t_disk_kms_key\030\t \001(\t\022\022\n\nimage_type\030\n \001(\t" + + "\0223\n&insecure_kubelet_readonly_port_enabl" + + "ed\030\r \001(\010H\000\210\001\001B)\n\'_insecure_kubelet_reado" + + "nly_port_enabled\"H\n\rResourceLimit\022\025\n\rres" + + "ource_type\030\001 \001(\t\022\017\n\007minimum\030\002 \001(\003\022\017\n\007max" + + "imum\030\003 \001(\003\"\314\002\n\023NodePoolAutoscaling\022\017\n\007en" + + "abled\030\001 \001(\010\022\026\n\016min_node_count\030\002 \001(\005\022\026\n\016m" + + "ax_node_count\030\003 \001(\005\022\027\n\017autoprovisioned\030\004" + + " \001(\010\022U\n\017location_policy\030\005 \001(\0162<.google.c" + + "ontainer.v1beta1.NodePoolAutoscaling.Loc" + + "ationPolicy\022\034\n\024total_min_node_count\030\006 \001(" + + "\005\022\034\n\024total_max_node_count\030\007 \001(\005\"H\n\016Locat" + + "ionPolicy\022\037\n\033LOCATION_POLICY_UNSPECIFIED" + + "\020\000\022\014\n\010BALANCED\020\001\022\007\n\003ANY\020\002\"\240\002\n\020SetLabelsR" + + "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\\\n\017resource_labels\030\004 \003(\0132>.google.cont" + + "ainer.v1beta1.SetLabelsRequest.ResourceL" + + "abelsEntryB\003\340A\002\022\036\n\021label_fingerprint\030\005 \001" + + "(\tB\003\340A\002\022\014\n\004name\030\007 \001(\t\0325\n\023ResourceLabelsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\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\007enabled\030\004 \001(\010B\003\340A\002\022\014" + + "\n\004name\030\006 \001(\t\"\215\001\n\026StartIPRotationRequest\022" + + "\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\t" + + "B\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\014\n\004na" + + "me\030\006 \001(\t\022\032\n\022rotate_credentials\030\007 \001(\010\"t\n\031" + + "CompleteIPRotationRequest\022\031\n\nproject_id\030" + + "\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\nclu" + + "ster_id\030\003 \001(\tB\005\030\001\340A\002\022\014\n\004name\030\007 \001(\t\"\374\002\n\021A" + + "cceleratorConfig\022\031\n\021accelerator_count\030\001 " + + "\001(\003\022\030\n\020accelerator_type\030\002 \001(\t\022\032\n\022gpu_par" + + "tition_size\030\003 \001(\t\022+\n\037max_time_shared_cli" + + "ents_per_gpu\030\004 \001(\003B\002\030\001\022K\n\022gpu_sharing_co" + + "nfig\030\005 \001(\0132*.google.container.v1beta1.GP" + + "USharingConfigH\000\210\001\001\022b\n\036gpu_driver_instal" + + "lation_config\030\006 \001(\01325.google.container.v" + + "1beta1.GPUDriverInstallationConfigH\001\210\001\001B" + + "\025\n\023_gpu_sharing_configB!\n\037_gpu_driver_in" + + "stallation_config\"\377\001\n\020GPUSharingConfig\022\"" + + "\n\032max_shared_clients_per_gpu\030\001 \001(\003\022`\n\024gp" + + "u_sharing_strategy\030\002 \001(\0162=.google.contai" + + "ner.v1beta1.GPUSharingConfig.GPUSharingS" + + "trategyH\000\210\001\001\"L\n\022GPUSharingStrategy\022$\n GP" + + "U_SHARING_STRATEGY_UNSPECIFIED\020\000\022\020\n\014TIME" + + "_SHARING\020\001B\027\n\025_gpu_sharing_strategy\"\211\002\n\033" + + "GPUDriverInstallationConfig\022g\n\022gpu_drive" + + "r_version\030\001 \001(\0162F.google.container.v1bet" + + "a1.GPUDriverInstallationConfig.GPUDriver" + + "VersionH\000\210\001\001\"j\n\020GPUDriverVersion\022\"\n\036GPU_" + + "DRIVER_VERSION_UNSPECIFIED\020\000\022\031\n\025INSTALLA" + + "TION_DISABLED\020\001\022\013\n\007DEFAULT\020\002\022\n\n\006LATEST\020\003" + + "B\025\n\023_gpu_driver_version\"*\n\027ManagedPromet" + + "heusConfig\022\017\n\007enabled\030\001 \001(\010\"\313\002\n\026Workload" + + "MetadataConfig\022X\n\rnode_metadata\030\001 \001(\0162=." + + "google.container.v1beta1.WorkloadMetadat" + + "aConfig.NodeMetadataB\002\030\001\022C\n\004mode\030\002 \001(\01625" + + ".google.container.v1beta1.WorkloadMetada" + + "taConfig.Mode\"P\n\014NodeMetadata\022\017\n\013UNSPECI" + + "FIED\020\000\022\n\n\006SECURE\020\001\022\n\n\006EXPOSE\020\002\022\027\n\023GKE_ME" + + "TADATA_SERVER\020\003\"@\n\004Mode\022\024\n\020MODE_UNSPECIF" + + "IED\020\000\022\020\n\014GCE_METADATA\020\001\022\020\n\014GKE_METADATA\020" + + "\002\"\270\001\n\027SetNetworkPolicyRequest\022\031\n\nproject" + + "_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n" + + "\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022D\n\016network_poli" + + "cy\030\004 \001(\0132\'.google.container.v1beta1.Netw" + + "orkPolicyB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\276\001\n\033SetMain" + + "tenancePolicyRequest\022\027\n\nproject_id\030\001 \001(\t" + + "B\003\340A\002\022\021\n\004zone\030\002 \001(\tB\003\340A\002\022\027\n\ncluster_id\030\003" + + " \001(\tB\003\340A\002\022L\n\022maintenance_policy\030\004 \001(\0132+." + + "google.container.v1beta1.MaintenancePoli" + + "cyB\003\340A\002\022\014\n\004name\030\005 \001(\t\"+\n\024ListLocationsRe" + + "quest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\"g\n\025ListLocati" + + "onsResponse\0225\n\tlocations\030\001 \003(\0132\".google." + + "container.v1beta1.Location\022\027\n\017next_page_" + + "token\030\002 \001(\t\"\261\001\n\010Location\022=\n\004type\030\001 \001(\0162/" + + ".google.container.v1beta1.Location.Locat" + + "ionType\022\014\n\004name\030\002 \001(\t\022\023\n\013recommended\030\003 \001" + + "(\010\"C\n\014LocationType\022\035\n\031LOCATION_TYPE_UNSP" + + "ECIFIED\020\000\022\010\n\004ZONE\020\001\022\n\n\006REGION\020\002\"\262\002\n\017Stat" + + "usCondition\022@\n\004code\030\001 \001(\0162..google.conta" + + "iner.v1beta1.StatusCondition.CodeB\002\030\001\022\017\n" + + "\007message\030\002 \001(\t\022(\n\016canonical_code\030\003 \001(\0162\020" + + ".google.rpc.Code\"\241\001\n\004Code\022\013\n\007UNKNOWN\020\000\022\020" + + "\n\014GCE_STOCKOUT\020\001\022\037\n\033GKE_SERVICE_ACCOUNT_" + + "DELETED\020\002\022\026\n\022GCE_QUOTA_EXCEEDED\020\003\022\023\n\017SET" + + "_BY_OPERATOR\020\004\022\027\n\023CLOUD_KMS_KEY_ERROR\020\007\022" + + "\017\n\013CA_EXPIRING\020\t\032\002\030\001\"\372\010\n\rNetworkConfig\022\017" + + "\n\007network\030\001 \001(\t\022\022\n\nsubnetwork\030\002 \001(\t\022$\n\034e" + + "nable_intra_node_visibility\030\005 \001(\010\022H\n\023def" + + "ault_snat_status\030\007 \001(\0132+.google.containe" + + "r.v1beta1.DefaultSnatStatus\022\037\n\027enable_l4" + + "ilb_subsetting\030\n \001(\010\022E\n\021datapath_provide" + + "r\030\013 \001(\0162*.google.container.v1beta1.Datap" + + "athProvider\022U\n\032private_ipv6_google_acces" + + "s\030\014 \001(\01621.google.container.v1beta1.Priva" + + "teIPv6GoogleAccess\0227\n\ndns_config\030\r \001(\0132#" + + ".google.container.v1beta1.DNSConfig\022W\n\033s" + + "ervice_external_ips_config\030\017 \001(\01322.googl" + + "e.container.v1beta1.ServiceExternalIPsCo" + + "nfig\022F\n\022gateway_api_config\030\020 \001(\0132*.googl" + + "e.container.v1beta1.GatewayAPIConfig\022\037\n\027" + + "enable_multi_networking\030\021 \001(\010\022k\n\032network" + + "_performance_config\030\022 \001(\0132G.google.conta" + + "iner.v1beta1.NetworkConfig.ClusterNetwor" + + "kPerformanceConfig\022\'\n\032enable_fqdn_networ" + + "k_policy\030\023 \001(\010H\000\210\001\001\022^\n\034in_transit_encryp" + + "tion_config\030\024 \001(\01623.google.container.v1b" + + "eta1.InTransitEncryptionConfigH\001\210\001\001\032\343\001\n\037" + + "ClusterNetworkPerformanceConfig\022v\n\033total" + + "_egress_bandwidth_tier\030\001 \001(\0162L.google.co" + + "ntainer.v1beta1.NetworkConfig.ClusterNet" + + "workPerformanceConfig.TierH\000\210\001\001\"(\n\004Tier\022" + + "\024\n\020TIER_UNSPECIFIED\020\000\022\n\n\006TIER_1\020\001B\036\n\034_to" + + "tal_egress_bandwidth_tierB\035\n\033_enable_fqd" + + "n_network_policyB\037\n\035_in_transit_encrypti" + + "on_config\"\301\001\n\020GatewayAPIConfig\022C\n\007channe" + + "l\030\001 \001(\01622.google.container.v1beta1.Gatew" + + "ayAPIConfig.Channel\"h\n\007Channel\022\027\n\023CHANNE" + + "L_UNSPECIFIED\020\000\022\024\n\020CHANNEL_DISABLED\020\001\022\030\n" + + "\024CHANNEL_EXPERIMENTAL\020\003\022\024\n\020CHANNEL_STAND" + + "ARD\020\004\"+\n\030ServiceExternalIPsConfig\022\017\n\007ena" + + "bled\030\001 \001(\010\"j\n\034ListUsableSubnetworksReque" + + "st\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\013subne" + + "tworks\030\001 \003(\0132*.google.container.v1beta1." + + "UsableSubnetwork\022\027\n\017next_page_token\030\002 \001(" + + "\t\"\205\002\n\036UsableSubnetworkSecondaryRange\022\022\n\n" + + "range_name\030\001 \001(\t\022\025\n\rip_cidr_range\030\002 \001(\t\022" + + "O\n\006status\030\003 \001(\0162?.google.container.v1bet" + + "a1.UsableSubnetworkSecondaryRange.Status" + + "\"g\n\006Status\022\013\n\007UNKNOWN\020\000\022\n\n\006UNUSED\020\001\022\022\n\016I" + + "N_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\020UsableSubn" + + "etwork\022\022\n\nsubnetwork\030\001 \001(\t\022\017\n\007network\030\002 " + + "\001(\t\022\025\n\rip_cidr_range\030\003 \001(\t\022U\n\023secondary_" + + "ip_ranges\030\004 \003(\01328.google.container.v1bet" + + "a1.UsableSubnetworkSecondaryRange\022\026\n\016sta" + + "tus_message\030\005 \001(\t\")\n\026VerticalPodAutoscal" + + "ing\022\017\n\007enabled\030\001 \001(\010\"%\n\021DefaultSnatStatu" + + "s\022\020\n\010disabled\030\001 \001(\010\",\n\031IntraNodeVisibili" + + "tyConfig\022\017\n\007enabled\030\001 \001(\010\"&\n\023ILBSubsetti" + + "ngConfig\022\017\n\007enabled\030\001 \001(\010\"\325\002\n\tDNSConfig\022" + + "A\n\013cluster_dns\030\001 \001(\0162,.google.container." + + "v1beta1.DNSConfig.Provider\022G\n\021cluster_dn" + + "s_scope\030\002 \001(\0162,.google.container.v1beta1" + + ".DNSConfig.DNSScope\022\032\n\022cluster_dns_domai" + + "n\030\003 \001(\t\"W\n\010Provider\022\030\n\024PROVIDER_UNSPECIF" + + "IED\020\000\022\024\n\020PLATFORM_DEFAULT\020\001\022\r\n\tCLOUD_DNS" + + "\020\002\022\014\n\010KUBE_DNS\020\003\"G\n\010DNSScope\022\031\n\025DNS_SCOP" + + "E_UNSPECIFIED\020\000\022\021\n\rCLUSTER_SCOPE\020\001\022\r\n\tVP" + + "C_SCOPE\020\002\".\n\021MaxPodsConstraint\022\031\n\021max_po" + + "ds_per_node\030\001 \001(\003\"j\n\026WorkloadIdentityCon" + + "fig\022\036\n\022identity_namespace\030\001 \001(\tB\002\030\001\022\025\n\rw" + + "orkload_pool\030\002 \001(\t\022\031\n\021identity_provider\030" + + "\003 \001(\t\"E\n\022WorkloadALTSConfig\022/\n\013enable_al" + + "ts\030\001 \001(\0132\032.google.protobuf.BoolValue\"O\n\024" + + "WorkloadCertificates\0227\n\023enable_certifica" + + "tes\030\001 \001(\0132\032.google.protobuf.BoolValue\"K\n" + + "\020MeshCertificates\0227\n\023enable_certificates" + + "\030\001 \001(\0132\032.google.protobuf.BoolValue\"\235\001\n\022D" + + "atabaseEncryption\022\020\n\010key_name\030\001 \001(\t\022A\n\005s" + + "tate\030\002 \001(\01622.google.container.v1beta1.Da" + + "tabaseEncryption.State\"2\n\005State\022\013\n\007UNKNO" + + "WN\020\000\022\r\n\tENCRYPTED\020\001\022\r\n\tDECRYPTED\020\002\"\367\002\n\031R" + + "esourceUsageExportConfig\022e\n\024bigquery_des" + + "tination\030\001 \001(\0132G.google.container.v1beta" + + "1.ResourceUsageExportConfig.BigQueryDest" + + "ination\022&\n\036enable_network_egress_meterin" + + "g\030\002 \001(\010\022r\n\033consumption_metering_config\030\003" + + " \001(\0132M.google.container.v1beta1.Resource" + + "UsageExportConfig.ConsumptionMeteringCon" + + "fig\032)\n\023BigQueryDestination\022\022\n\ndataset_id" + + "\030\001 \001(\t\032,\n\031ConsumptionMeteringConfig\022\017\n\007e" + + "nabled\030\001 \001(\010\" \n\rShieldedNodes\022\017\n\007enabled" + + "\030\001 \001(\010\"\035\n\nVirtualNIC\022\017\n\007enabled\030\001 \001(\010\"\035\n" + + "\nFastSocket\022\017\n\007enabled\030\001 \001(\010\"(\n\026GetOpenI" + + "DConfigRequest\022\016\n\006parent\030\001 \001(\t\"\334\001\n\027GetOp" + + "enIDConfigResponse\022\016\n\006issuer\030\001 \001(\t\022\020\n\010jw" + + "ks_uri\030\002 \001(\t\022 \n\030response_types_supported" + + "\030\003 \003(\t\022\037\n\027subject_types_supported\030\004 \003(\t\022" + + "-\n%id_token_signing_alg_values_supported" + + "\030\005 \003(\t\022\030\n\020claims_supported\030\006 \003(\t\022\023\n\013gran" + + "t_types\030\007 \003(\t\"\'\n\025GetJSONWebKeysRequest\022\016" + + "\n\006parent\030\001 \001(\t\"r\n\003Jwk\022\013\n\003kty\030\001 \001(\t\022\013\n\003al" + + "g\030\002 \001(\t\022\013\n\003use\030\003 \001(\t\022\013\n\003kid\030\004 \001(\t\022\t\n\001n\030\005" + + " \001(\t\022\t\n\001e\030\006 \001(\t\022\t\n\001x\030\007 \001(\t\022\t\n\001y\030\010 \001(\t\022\013\n" + + "\003crv\030\t \001(\t\"E\n\026GetJSONWebKeysResponse\022+\n\004" + + "keys\030\001 \003(\0132\035.google.container.v1beta1.Jw" + + "k\"2\n\"CheckAutopilotCompatibilityRequest\022" + + "\014\n\004name\030\001 \001(\t\"\201\003\n\033AutopilotCompatibility" + + "Issue\0224\n\020last_observation\030\001 \001(\0132\032.google" + + ".protobuf.Timestamp\022\027\n\017constraint_type\030\002" + + " \001(\t\022]\n\024incompatibility_type\030\003 \001(\0162?.goo" + + "gle.container.v1beta1.AutopilotCompatibi" + + "lityIssue.IssueType\022\020\n\010subjects\030\004 \003(\t\022\031\n" + + "\021documentation_url\030\005 \001(\t\022\023\n\013description\030" + + "\006 \001(\t\"r\n\tIssueType\022\017\n\013UNSPECIFIED\020\000\022\023\n\017I" + + "NCOMPATIBILITY\020\001\022\036\n\032ADDITIONAL_CONFIG_RE" + + "QUIRED\020\002\022\037\n\033PASSED_WITH_OPTIONAL_CONFIG\020" + + "\003\"}\n#CheckAutopilotCompatibilityResponse" + + "\022E\n\006issues\030\001 \003(\01325.google.container.v1be" + + "ta1.AutopilotCompatibilityIssue\022\017\n\007summa" + + "ry\030\002 \001(\t\"\223\001\n\016ReleaseChannel\022A\n\007channel\030\001" + + " \001(\01620.google.container.v1beta1.ReleaseC" + + "hannel.Channel\">\n\007Channel\022\017\n\013UNSPECIFIED" + + "\020\000\022\t\n\005RAPID\020\001\022\013\n\007REGULAR\020\002\022\n\n\006STABLE\020\003\"\'" + + "\n\024CostManagementConfig\022\017\n\007enabled\030\001 \001(\010\"" + + "U\n\tTpuConfig\022\017\n\007enabled\030\001 \001(\010\022\036\n\026use_ser" + + "vice_networking\030\002 \001(\010\022\027\n\017ipv4_cidr_block" + + "\030\003 \001(\t\"\010\n\006Master\"\224\001\n\031AutopilotConversion" + + "Status\022M\n\005state\030\002 \001(\01629.google.container" + + ".v1beta1.AutopilotConversionStatus.State" + + "B\003\340A\003\"(\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\010\n" + + "\004DONE\020\005\"\301\001\n\tAutopilot\022\017\n\007enabled\030\001 \001(\010\022N" + + "\n\026workload_policy_config\030\002 \001(\0132..google." + + "container.v1beta1.WorkloadPolicyConfig\022S" + + "\n\021conversion_status\030\003 \001(\01323.google.conta" + + "iner.v1beta1.AutopilotConversionStatusB\003" + + "\340A\003\"H\n\024WorkloadPolicyConfig\022\034\n\017allow_net" + + "_admin\030\001 \001(\010H\000\210\001\001B\022\n\020_allow_net_admin\"\267\003" + + "\n\022NotificationConfig\022C\n\006pubsub\030\001 \001(\01323.g" + + "oogle.container.v1beta1.NotificationConf" + + "ig.PubSub\032\217\001\n\006PubSub\022\017\n\007enabled\030\001 \001(\010\022/\n" + + "\005topic\030\002 \001(\tB \372A\035\n\033pubsub.googleapis.com" + + "/Topic\022C\n\006filter\030\003 \001(\01323.google.containe" + + "r.v1beta1.NotificationConfig.Filter\032T\n\006F" + + "ilter\022J\n\nevent_type\030\001 \003(\01626.google.conta" + + "iner.v1beta1.NotificationConfig.EventTyp" + + "e\"t\n\tEventType\022\032\n\026EVENT_TYPE_UNSPECIFIED" + + "\020\000\022\033\n\027UPGRADE_AVAILABLE_EVENT\020\001\022\021\n\rUPGRA" + + "DE_EVENT\020\002\022\033\n\027SECURITY_BULLETIN_EVENT\020\003\"" + + "$\n\021ConfidentialNodes\022\017\n\007enabled\030\001 \001(\010\"\344\001" + + "\n\014UpgradeEvent\022D\n\rresource_type\030\001 \001(\0162-." + + "google.container.v1beta1.UpgradeResource" + + "Type\022\021\n\toperation\030\002 \001(\t\0228\n\024operation_sta" + + "rt_time\030\003 \001(\0132\032.google.protobuf.Timestam" + + "p\022\027\n\017current_version\030\004 \001(\t\022\026\n\016target_ver" + + "sion\030\005 \001(\t\022\020\n\010resource\030\006 \001(\t\"\210\002\n\025Upgrade" + + "AvailableEvent\022\017\n\007version\030\001 \001(\t\022D\n\rresou" + + "rce_type\030\002 \001(\0162-.google.container.v1beta" + + "1.UpgradeResourceType\022A\n\017release_channel" + + "\030\003 \001(\0132(.google.container.v1beta1.Releas" + + "eChannel\022\020\n\010resource\030\004 \001(\t\022C\n\020windows_ve" + + "rsions\030\005 \001(\0132).google.container.v1beta1." + + "WindowsVersions\"\236\002\n\025SecurityBulletinEven" + + "t\022\036\n\026resource_type_affected\030\001 \001(\t\022\023\n\013bul" + + "letin_id\030\002 \001(\t\022\017\n\007cve_ids\030\003 \003(\t\022\020\n\010sever" + + "ity\030\004 \001(\t\022\024\n\014bulletin_uri\030\005 \001(\t\022\031\n\021brief" + + "_description\030\006 \001(\t\022!\n\031affected_supported" + + "_minors\030\007 \003(\t\022\030\n\020patched_versions\030\010 \003(\t\022" + + " \n\030suggested_upgrade_target\030\t \001(\t\022\035\n\025man" + + "ual_steps_required\030\n \001(\010\"(\n\025IdentityServ" + + "iceConfig\022\017\n\007enabled\030\001 \001(\010\"[\n\rLoggingCon" + + "fig\022J\n\020component_config\030\001 \001(\01320.google.c" + + "ontainer.v1beta1.LoggingComponentConfig\"" + + "\364\001\n\026LoggingComponentConfig\022U\n\021enable_com" + + "ponents\030\001 \003(\0162:.google.container.v1beta1" + + ".LoggingComponentConfig.Component\"\202\001\n\tCo" + + "mponent\022\031\n\025COMPONENT_UNSPECIFIED\020\000\022\025\n\021SY" + + "STEM_COMPONENTS\020\001\022\r\n\tWORKLOADS\020\002\022\r\n\tAPIS" + + "ERVER\020\003\022\r\n\tSCHEDULER\020\004\022\026\n\022CONTROLLER_MAN" + + "AGER\020\005\"\246\002\n\020MonitoringConfig\022M\n\020component" + + "_config\030\001 \001(\01323.google.container.v1beta1" + + ".MonitoringComponentConfig\022T\n\031managed_pr" + + "ometheus_config\030\002 \001(\01321.google.container" + + ".v1beta1.ManagedPrometheusConfig\022m\n&adva" + + "nced_datapath_observability_config\030\003 \001(\013" + + "2=.google.container.v1beta1.AdvancedData" + + "pathObservabilityConfig\"\243\002\n#AdvancedData" + + "pathObservabilityConfig\022\026\n\016enable_metric" + + "s\030\001 \001(\010\022[\n\nrelay_mode\030\002 \001(\0162G.google.con" + + "tainer.v1beta1.AdvancedDatapathObservabi" + + "lityConfig.RelayMode\022\031\n\014enable_relay\030\003 \001" + + "(\010H\000\210\001\001\"[\n\tRelayMode\022\032\n\026RELAY_MODE_UNSPE" + + "CIFIED\020\000\022\014\n\010DISABLED\020\001\022\023\n\017INTERNAL_VPC_L" + + "B\020\003\022\017\n\013EXTERNAL_LB\020\004B\017\n\r_enable_relay\"_\n" + + "\025NodePoolLoggingConfig\022F\n\016variant_config" + + "\030\001 \001(\0132..google.container.v1beta1.Loggin" + + "gVariantConfig\"\244\001\n\024LoggingVariantConfig\022" + + "G\n\007variant\030\001 \001(\01626.google.container.v1be" + + "ta1.LoggingVariantConfig.Variant\"C\n\007Vari" + + "ant\022\027\n\023VARIANT_UNSPECIFIED\020\000\022\013\n\007DEFAULT\020" + + "\001\022\022\n\016MAX_THROUGHPUT\020\002\"\315\002\n\031MonitoringComp" + + "onentConfig\022X\n\021enable_components\030\001 \003(\0162=" + + ".google.container.v1beta1.MonitoringComp" + + "onentConfig.Component\"\325\001\n\tComponent\022\031\n\025C" + + "OMPONENT_UNSPECIFIED\020\000\022\025\n\021SYSTEM_COMPONE" + + "NTS\020\001\022\021\n\tWORKLOADS\020\002\032\002\010\001\022\r\n\tAPISERVER\020\003\022" + + "\r\n\tSCHEDULER\020\004\022\026\n\022CONTROLLER_MANAGER\020\005\022\013" + + "\n\007STORAGE\020\007\022\007\n\003HPA\020\010\022\007\n\003POD\020\t\022\r\n\tDAEMONS" + + "ET\020\n\022\016\n\nDEPLOYMENT\020\013\022\017\n\013STATEFULSET\020\014\"D\n" + + "\005Fleet\022\017\n\007project\030\001 \001(\t\022\022\n\nmembership\030\002 " + + "\001(\t\022\026\n\016pre_registered\030\003 \001(\010\"\211\001\n\023Resource" + + "ManagerTags\022E\n\004tags\030\001 \003(\01327.google.conta" + + "iner.v1beta1.ResourceManagerTags.TagsEnt" + + "ry\032+\n\tTagsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001\"\260\001\n\020EnterpriseConfig\022Q\n\014cluster_" + + "tier\030\001 \001(\01626.google.container.v1beta1.En" + + "terpriseConfig.ClusterTierB\003\340A\003\"I\n\013Clust" + + "erTier\022\034\n\030CLUSTER_TIER_UNSPECIFIED\020\000\022\014\n\010" + + "STANDARD\020\001\022\016\n\nENTERPRISE\020\002*\306\001\n\027PrivateIP" + + "v6GoogleAccess\022*\n&PRIVATE_IPV6_GOOGLE_AC" + + "CESS_UNSPECIFIED\020\000\022\'\n#PRIVATE_IPV6_GOOGL" + + "E_ACCESS_DISABLED\020\001\022(\n$PRIVATE_IPV6_GOOG" + + "LE_ACCESS_TO_GOOGLE\020\002\022,\n(PRIVATE_IPV6_GO" + + "OGLE_ACCESS_BIDIRECTIONAL\020\003*W\n\023UpgradeRe" + + "sourceType\022%\n!UPGRADE_RESOURCE_TYPE_UNSP" + + "ECIFIED\020\000\022\n\n\006MASTER\020\001\022\r\n\tNODE_POOL\020\002*^\n\026" + + "NodePoolUpdateStrategy\022)\n%NODE_POOL_UPDA" + + "TE_STRATEGY_UNSPECIFIED\020\000\022\016\n\nBLUE_GREEN\020" + + "\002\022\t\n\005SURGE\020\003*a\n\020DatapathProvider\022!\n\035DATA" + + "PATH_PROVIDER_UNSPECIFIED\020\000\022\023\n\017LEGACY_DA" + + "TAPATH\020\001\022\025\n\021ADVANCED_DATAPATH\020\002*@\n\tStack" + + "Type\022\032\n\026STACK_TYPE_UNSPECIFIED\020\000\022\010\n\004IPV4" + + "\020\001\022\r\n\tIPV4_IPV6\020\002*\237\001\n\031InTransitEncryptio" + + "nConfig\022,\n(IN_TRANSIT_ENCRYPTION_CONFIG_" + + "UNSPECIFIED\020\000\022\"\n\036IN_TRANSIT_ENCRYPTION_D" + + "ISABLED\020\001\0220\n,IN_TRANSIT_ENCRYPTION_INTER" + + "_NODE_TRANSPARENT\020\0022\246N\n\016ClusterManager\022\363", + "\001\n\014ListClusters\022-.google.container.v1bet" + + "a1.ListClustersRequest\032..google.containe" + + "r.v1beta1.ListClustersResponse\"\203\001\332A\017proj" + + "ect_id,zone\202\323\344\223\002k\0221/v1beta1/{parent=proj" + + "ects/*/locations/*}/clustersZ6\0224/v1beta1" + + "/projects/{project_id}/zones/{zone}/clus" + + "ters\022\372\001\n\nGetCluster\022+.google.container.v" + + "1beta1.GetClusterRequest\032!.google.contai" + + "ner.v1beta1.Cluster\"\233\001\332A\032project_id,zone" + + ",cluster_id\202\323\344\223\002x\0221/v1beta1/{name=projec" + + "ts/*/locations/*/clusters/*}ZC\022A/v1beta1" + + "/projects/{project_id}/zones/{zone}/clus" + + "ters/{cluster_id}\022\370\001\n\rCreateCluster\022..go" + + "ogle.container.v1beta1.CreateClusterRequ" + + "est\032#.google.container.v1beta1.Operation" + + "\"\221\001\332A\027project_id,zone,cluster\202\323\344\223\002q\"1/v1" + + "beta1/{parent=projects/*/locations/*}/cl" + + "usters:\001*Z9\"4/v1beta1/projects/{project_" + + "id}/zones/{zone}/clusters:\001*\022\217\002\n\rUpdateC" + + "luster\022..google.container.v1beta1.Update" + + "ClusterRequest\032#.google.container.v1beta" + + "1.Operation\"\250\001\332A!project_id,zone,cluster" + + "_id,update\202\323\344\223\002~\0321/v1beta1/{name=project" + + "s/*/locations/*/clusters/*}:\001*ZF\032A/v1bet" + + "a1/projects/{project_id}/zones/{zone}/cl" + + "usters/{cluster_id}:\001*\022\232\002\n\016UpdateNodePoo" + + "l\022/.google.container.v1beta1.UpdateNodeP" + + "oolRequest\032#.google.container.v1beta1.Op" + + "eration\"\261\001\202\323\344\223\002\252\001\032=/v1beta1/{name=projec" + + "ts/*/locations/*/clusters/*/nodePools/*}" + + ":\001*Zf\"a/v1beta1/projects/{project_id}/zo" + + "nes/{zone}/clusters/{cluster_id}/nodePoo" + + "ls/{node_pool_id}/update:\001*\022\276\002\n\026SetNodeP" + + "oolAutoscaling\0227.google.container.v1beta" + + "1.SetNodePoolAutoscalingRequest\032#.google" + + ".container.v1beta1.Operation\"\305\001\202\323\344\223\002\276\001\"L" + + "/v1beta1/{name=projects/*/locations/*/cl" + + "usters/*/nodePools/*}:setAutoscaling:\001*Z" + + "k\"f/v1beta1/projects/{project_id}/zones/" + + "{zone}/clusters/{cluster_id}/nodePools/{" + + "node_pool_id}/autoscaling:\001*\022\264\002\n\021SetLogg" + + "ingService\0222.google.container.v1beta1.Se" + + "tLoggingServiceRequest\032#.google.containe" + + "r.v1beta1.Operation\"\305\001\332A*project_id,zone" + + ",cluster_id,logging_service\202\323\344\223\002\221\001\"/v1beta1/{name=projects/*/locations/*" + + "/clusters/*}:setLocations:\001*ZP\"K/v1beta1" + + "/projects/{project_id}/zones/{zone}/clus" + + "ters/{cluster_id}/locations:\001*\022\252\002\n\014Updat" + + "eMaster\022-.google.container.v1beta1.Updat" + + "eMasterRequest\032#.google.container.v1beta" + + "1.Operation\"\305\001\332A)project_id,zone,cluster" + + "_id,master_version\202\323\344\223\002\222\001\">/v1beta1/{nam" + + "e=projects/*/locations/*/clusters/*}:upd" + + "ateMaster:\001*ZM\"H/v1beta1/projects/{proje" + + "ct_id}/zones/{zone}/clusters/{cluster_id" + + "}/master:\001*\022\210\002\n\rSetMasterAuth\022..google.c" + + "ontainer.v1beta1.SetMasterAuthRequest\032#." + + "google.container.v1beta1.Operation\"\241\001\202\323\344" + + "\223\002\232\001\"?/v1beta1/{name=projects/*/location" + + "s/*/clusters/*}:setMasterAuth:\001*ZT\"O/v1b" + + "eta1/projects/{project_id}/zones/{zone}/" + + "clusters/{cluster_id}:setMasterAuth:\001*\022\202" + + "\002\n\rDeleteCluster\022..google.container.v1be" + + "ta1.DeleteClusterRequest\032#.google.contai" + + "ner.v1beta1.Operation\"\233\001\332A\032project_id,zo" + + "ne,cluster_id\202\323\344\223\002x*1/v1beta1/{name=proj" + + "ects/*/locations/*/clusters/*}ZC*A/v1bet" + + "a1/projects/{project_id}/zones/{zone}/cl" + + "usters/{cluster_id}\022\375\001\n\016ListOperations\022/" + + ".google.container.v1beta1.ListOperations" + + "Request\0320.google.container.v1beta1.ListO" + + "perationsResponse\"\207\001\332A\017project_id,zone\202\323" + + "\344\223\002o\0223/v1beta1/{parent=projects/*/locati" + + "ons/*}/operationsZ8\0226/v1beta1/projects/{" + + "project_id}/zones/{zone}/operations\022\210\002\n\014" + + "GetOperation\022-.google.container.v1beta1." + + "GetOperationRequest\032#.google.container.v" + + "1beta1.Operation\"\243\001\332A\034project_id,zone,op" + + "eration_id\202\323\344\223\002~\0223/v1beta1/{name=project" + + "s/*/locations/*/operations/*}ZG\022E/v1beta" + + "1/projects/{project_id}/zones/{zone}/ope" + + "rations/{operation_id}\022\226\002\n\017CancelOperati" + + "on\0220.google.container.v1beta1.CancelOper" + + "ationRequest\032\026.google.protobuf.Empty\"\270\001\332" + + "A\034project_id,zone,operation_id\202\323\344\223\002\222\001\":/" + + "v1beta1/{name=projects/*/locations/*/ope" + + "rations/*}:cancel:\001*ZQ\"L/v1beta1/project" + + "s/{project_id}/zones/{zone}/operations/{" + + "operation_id}:cancel:\001*\022\367\001\n\017GetServerCon" + + "fig\0220.google.container.v1beta1.GetServer" + + "ConfigRequest\032&.google.container.v1beta1" + + ".ServerConfig\"\211\001\332A\017project_id,zone\202\323\344\223\002q" + + "\0223/v1beta1/{name=projects/*/locations/*}" + + "/serverConfigZ:\0228/v1beta1/projects/{proj" + + "ect_id}/zones/{zone}/serverconfig\022\265\001\n\016Ge" + + "tJSONWebKeys\022/.google.container.v1beta1." + + "GetJSONWebKeysRequest\0320.google.container" + + ".v1beta1.GetJSONWebKeysResponse\"@\202\323\344\223\002:\022" + + "8/v1beta1/{parent=projects/*/locations/*" + + "/clusters/*}/jwks\022\245\002\n\rListNodePools\022..go" + + "ogle.container.v1beta1.ListNodePoolsRequ" + + "est\032/.google.container.v1beta1.ListNodeP" + + "oolsResponse\"\262\001\332A\032project_id,zone,cluste" + + "r_id\202\323\344\223\002\216\001\022=/v1beta1/{parent=projects/*" + + "/locations/*/clusters/*}/nodePoolsZM\022K/v" + + "1beta1/projects/{project_id}/zones/{zone" + + "}/clusters/{cluster_id}/nodePools\022\260\002\n\013Ge" + + "tNodePool\022,.google.container.v1beta1.Get" + + "NodePoolRequest\032\".google.container.v1bet" + + "a1.NodePool\"\316\001\332A\'project_id,zone,cluster" + + "_id,node_pool_id\202\323\344\223\002\235\001\022=/v1beta1/{name=" + + "projects/*/locations/*/clusters/*/nodePo" + + "ols/*}Z\\\022Z/v1beta1/projects/{project_id}" + + "/zones/{zone}/clusters/{cluster_id}/node" + + "Pools/{node_pool_id}\022\253\002\n\016CreateNodePool\022" + + "/.google.container.v1beta1.CreateNodePoo" + + "lRequest\032#.google.container.v1beta1.Oper" + + "ation\"\302\001\332A$project_id,zone,cluster_id,no" + + "de_pool\202\323\344\223\002\224\001\"=/v1beta1/{parent=project" + + "s/*/locations/*/clusters/*}/nodePools:\001*" + + "ZP\"K/v1beta1/projects/{project_id}/zones" + + "/{zone}/clusters/{cluster_id}/nodePools:" + + "\001*\022\267\002\n\016DeleteNodePool\022/.google.container" + + ".v1beta1.DeleteNodePoolRequest\032#.google." + + "container.v1beta1.Operation\"\316\001\332A\'project" + + "_id,zone,cluster_id,node_pool_id\202\323\344\223\002\235\001*" + + "=/v1beta1/{name=projects/*/locations/*/c" + + "lusters/*/nodePools/*}Z\\*Z/v1beta1/proje" + + "cts/{project_id}/zones/{zone}/clusters/{" + + "cluster_id}/nodePools/{node_pool_id}\022\305\001\n" + + "\027CompleteNodePoolUpgrade\0228.google.contai" + + "ner.v1beta1.CompleteNodePoolUpgradeReque" + + "st\032\026.google.protobuf.Empty\"X\202\323\344\223\002R\"M/v1b" + + "eta1/{name=projects/*/locations/*/cluste" + + "rs/*/nodePools/*}:completeUpgrade:\001*\022\341\002\n" + + "\027RollbackNodePoolUpgrade\0228.google.contai" + + "ner.v1beta1.RollbackNodePoolUpgradeReque" + + "st\032#.google.container.v1beta1.Operation\"" + + "\346\001\332A\'project_id,zone,cluster_id,node_poo" + + "l_id\202\323\344\223\002\265\001\"F/v1beta1/{name=projects/*/l" + + "ocations/*/clusters/*/nodePools/*}:rollb" + + "ack:\001*Zh\"c/v1beta1/projects/{project_id}" + + "/zones/{zone}/clusters/{cluster_id}/node" + + "Pools/{node_pool_id}:rollback:\001*\022\362\002\n\025Set" + + "NodePoolManagement\0226.google.container.v1" + + "beta1.SetNodePoolManagementRequest\032#.goo" + + "gle.container.v1beta1.Operation\"\373\001\332A2pro" + + "ject_id,zone,cluster_id,node_pool_id,man" + + "agement\202\323\344\223\002\277\001\"K/v1beta1/{name=projects/" + + "*/locations/*/clusters/*/nodePools/*}:se" + + "tManagement:\001*Zm\"h/v1beta1/projects/{pro" + + "ject_id}/zones/{zone}/clusters/{cluster_" + + "id}/nodePools/{node_pool_id}/setManageme" + + "nt:\001*\022\304\002\n\tSetLabels\022*.google.container.v" + + "1beta1.SetLabelsRequest\032#.google.contain" + + "er.v1beta1.Operation\"\345\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(); + } + + 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< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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_ = 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; + * @return The type. + */ + @java.lang.Override public com.google.container.v1beta1.ClusterTelemetry.Type getType() { + com.google.container.v1beta1.ClusterTelemetry.Type result = com.google.container.v1beta1.ClusterTelemetry.Type.forNumber(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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.ClusterTelemetry result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + } + } + + @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.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + type_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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() { + com.google.container.v1beta1.ClusterTelemetry.Type result = com.google.container.v1beta1.ClusterTelemetry.Type.forNumber(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(); + } + bitField0_ |= 0x00000001; + 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() { + bitField0_ = (bitField0_ & ~0x00000001); + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterTelemetryOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterTelemetryOrBuilder.java new file mode 100644 index 000000000000..8cf5d7500675 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterTelemetryOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterUpdate.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterUpdate.java new file mode 100644 index 000000000000..356e512f7adc --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterUpdate.java @@ -0,0 +1,13657 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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.emptyList(); + desiredLoggingService_ = ""; + desiredDatapathProvider_ = 0; + desiredPrivateIpv6GoogleAccess_ = 0; + desiredMasterVersion_ = ""; + etag_ = ""; + desiredStackType_ = 0; + desiredInTransitEncryptionConfig_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClusterUpdate(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ClusterUpdate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ClusterUpdate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ClusterUpdate.class, com.google.container.v1beta1.ClusterUpdate.Builder.class); + } + + private int bitField0_; + private int bitField1_; + public static final int DESIRED_NODE_VERSION_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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 ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * 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 desiredAddonsConfig_ == null ? com.google.container.v1beta1.AddonsConfig.getDefaultInstance() : desiredAddonsConfig_; + } + + public static final int DESIRED_NODE_POOL_ID_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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 ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * 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 desiredNodePoolAutoscaling_ == null ? com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() : desiredNodePoolAutoscaling_; + } + + public static final int DESIRED_LOCATIONS_FIELD_NUMBER = 10; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList desiredLocations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * 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 ((bitField0_ & 0x00000004) != 0); + } + /** + *
+   * 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 desiredMasterAuthorizedNetworksConfig_ == null ? com.google.container.v1beta1.MasterAuthorizedNetworksConfig.getDefaultInstance() : desiredMasterAuthorizedNetworksConfig_; + } + + 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 ((bitField0_ & 0x00000008) != 0); + } + /** + *
+   * 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 desiredPodSecurityPolicyConfig_ == null ? com.google.container.v1beta1.PodSecurityPolicyConfig.getDefaultInstance() : desiredPodSecurityPolicyConfig_; + } + + 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 ((bitField0_ & 0x00000010) != 0); + } + /** + *
+   * 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 desiredClusterAutoscaling_ == null ? com.google.container.v1beta1.ClusterAutoscaling.getDefaultInstance() : desiredClusterAutoscaling_; + } + + 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 ((bitField0_ & 0x00000020) != 0); + } + /** + *
+   * 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 desiredBinaryAuthorization_ == null ? com.google.container.v1beta1.BinaryAuthorization.getDefaultInstance() : desiredBinaryAuthorization_; + } + + public static final int DESIRED_LOGGING_SERVICE_FIELD_NUMBER = 19; + @SuppressWarnings("serial") + 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 ((bitField0_ & 0x00000040) != 0); + } + /** + *
+   * 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 desiredResourceUsageExportConfig_ == null ? com.google.container.v1beta1.ResourceUsageExportConfig.getDefaultInstance() : desiredResourceUsageExportConfig_; + } + + 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 ((bitField0_ & 0x00000080) != 0); + } + /** + *
+   * 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 desiredVerticalPodAutoscaling_ == null ? com.google.container.v1beta1.VerticalPodAutoscaling.getDefaultInstance() : desiredVerticalPodAutoscaling_; + } + + 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 ((bitField0_ & 0x00000100) != 0); + } + /** + *
+   * 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 desiredPrivateClusterConfig_ == null ? com.google.container.v1beta1.PrivateClusterConfig.getDefaultInstance() : desiredPrivateClusterConfig_; + } + + 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 ((bitField0_ & 0x00000200) != 0); + } + /** + *
+   * 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 desiredIntraNodeVisibilityConfig_ == null ? com.google.container.v1beta1.IntraNodeVisibilityConfig.getDefaultInstance() : desiredIntraNodeVisibilityConfig_; + } + + 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 ((bitField0_ & 0x00000400) != 0); + } + /** + *
+   * 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 desiredDefaultSnatStatus_ == null ? com.google.container.v1beta1.DefaultSnatStatus.getDefaultInstance() : desiredDefaultSnatStatus_; + } + + 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 ((bitField0_ & 0x00000800) != 0); + } + /** + *
+   * 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 desiredClusterTelemetry_ == null ? com.google.container.v1beta1.ClusterTelemetry.getDefaultInstance() : desiredClusterTelemetry_; + } + + 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 ((bitField0_ & 0x00001000) != 0); + } + /** + *
+   * 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 desiredReleaseChannel_ == null ? com.google.container.v1beta1.ReleaseChannel.getDefaultInstance() : desiredReleaseChannel_; + } + + 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 ((bitField0_ & 0x00002000) != 0); + } + /** + *
+   * 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 desiredTpuConfig_ == null ? com.google.container.v1beta1.TpuConfig.getDefaultInstance() : desiredTpuConfig_; + } + + public static final int DESIRED_L4ILB_SUBSETTING_CONFIG_FIELD_NUMBER = 39; + private com.google.container.v1beta1.ILBSubsettingConfig desiredL4IlbSubsettingConfig_; + /** + *
+   * The desired L4 Internal Load Balancer Subsetting configuration.
+   * 
+ * + * .google.container.v1beta1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + * @return Whether the desiredL4ilbSubsettingConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredL4IlbSubsettingConfig() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + *
+   * The desired L4 Internal Load Balancer Subsetting configuration.
+   * 
+ * + * .google.container.v1beta1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + * @return The desiredL4ilbSubsettingConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.ILBSubsettingConfig getDesiredL4IlbSubsettingConfig() { + return desiredL4IlbSubsettingConfig_ == null ? com.google.container.v1beta1.ILBSubsettingConfig.getDefaultInstance() : desiredL4IlbSubsettingConfig_; + } + /** + *
+   * The desired L4 Internal Load Balancer Subsetting configuration.
+   * 
+ * + * .google.container.v1beta1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + */ + @java.lang.Override + public com.google.container.v1beta1.ILBSubsettingConfigOrBuilder getDesiredL4IlbSubsettingConfigOrBuilder() { + return desiredL4IlbSubsettingConfig_ == null ? com.google.container.v1beta1.ILBSubsettingConfig.getDefaultInstance() : desiredL4IlbSubsettingConfig_; + } + + public static final int DESIRED_DATAPATH_PROVIDER_FIELD_NUMBER = 50; + 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; + * @return The desiredDatapathProvider. + */ + @java.lang.Override public com.google.container.v1beta1.DatapathProvider getDesiredDatapathProvider() { + com.google.container.v1beta1.DatapathProvider result = com.google.container.v1beta1.DatapathProvider.forNumber(desiredDatapathProvider_); + return result == null ? com.google.container.v1beta1.DatapathProvider.UNRECOGNIZED : result; + } + + public static final int DESIRED_PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER = 51; + private int desiredPrivateIpv6GoogleAccess_ = 0; + /** + *
+   * The desired state of IPv6 connectivity to Google Services.
+   * 
+ * + * .google.container.v1beta1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + * @return The enum numeric value on the wire for desiredPrivateIpv6GoogleAccess. + */ + @java.lang.Override public int getDesiredPrivateIpv6GoogleAccessValue() { + return desiredPrivateIpv6GoogleAccess_; + } + /** + *
+   * The desired state of IPv6 connectivity to Google Services.
+   * 
+ * + * .google.container.v1beta1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + * @return The desiredPrivateIpv6GoogleAccess. + */ + @java.lang.Override public com.google.container.v1beta1.PrivateIPv6GoogleAccess getDesiredPrivateIpv6GoogleAccess() { + com.google.container.v1beta1.PrivateIPv6GoogleAccess result = com.google.container.v1beta1.PrivateIPv6GoogleAccess.forNumber(desiredPrivateIpv6GoogleAccess_); + return result == null ? com.google.container.v1beta1.PrivateIPv6GoogleAccess.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 ((bitField0_ & 0x00008000) != 0); + } + /** + *
+   * 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 desiredNotificationConfig_ == null ? com.google.container.v1beta1.NotificationConfig.getDefaultInstance() : desiredNotificationConfig_; + } + + public static final int DESIRED_MASTER_VERSION_FIELD_NUMBER = 100; + @SuppressWarnings("serial") + 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_GCFS_CONFIG_FIELD_NUMBER = 109; + private com.google.container.v1beta1.GcfsConfig desiredGcfsConfig_; + /** + *
+   * The desired GCFS config for the cluster.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + * @return Whether the desiredGcfsConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredGcfsConfig() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + *
+   * The desired GCFS config for the cluster.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + * @return The desiredGcfsConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.GcfsConfig getDesiredGcfsConfig() { + return desiredGcfsConfig_ == null ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() : desiredGcfsConfig_; + } + /** + *
+   * The desired GCFS config for the cluster.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + */ + @java.lang.Override + public com.google.container.v1beta1.GcfsConfigOrBuilder getDesiredGcfsConfigOrBuilder() { + return desiredGcfsConfig_ == null ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() : desiredGcfsConfig_; + } + + 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 ((bitField0_ & 0x00020000) != 0); + } + /** + *
+   * 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 desiredDatabaseEncryption_ == null ? com.google.container.v1beta1.DatabaseEncryption.getDefaultInstance() : desiredDatabaseEncryption_; + } + + 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 ((bitField0_ & 0x00040000) != 0); + } + /** + *
+   * 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 desiredWorkloadIdentityConfig_ == null ? com.google.container.v1beta1.WorkloadIdentityConfig.getDefaultInstance() : desiredWorkloadIdentityConfig_; + } + + public static final int DESIRED_WORKLOAD_CERTIFICATES_FIELD_NUMBER = 61; + private com.google.container.v1beta1.WorkloadCertificates desiredWorkloadCertificates_; + /** + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.WorkloadCertificates desired_workload_certificates = 61; + * @return Whether the desiredWorkloadCertificates field is set. + */ + @java.lang.Override + public boolean hasDesiredWorkloadCertificates() { + return ((bitField0_ & 0x00080000) != 0); + } + /** + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.WorkloadCertificates desired_workload_certificates = 61; + * @return The desiredWorkloadCertificates. + */ + @java.lang.Override + public com.google.container.v1beta1.WorkloadCertificates getDesiredWorkloadCertificates() { + return desiredWorkloadCertificates_ == null ? com.google.container.v1beta1.WorkloadCertificates.getDefaultInstance() : desiredWorkloadCertificates_; + } + /** + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.WorkloadCertificates desired_workload_certificates = 61; + */ + @java.lang.Override + public com.google.container.v1beta1.WorkloadCertificatesOrBuilder getDesiredWorkloadCertificatesOrBuilder() { + return desiredWorkloadCertificates_ == null ? com.google.container.v1beta1.WorkloadCertificates.getDefaultInstance() : desiredWorkloadCertificates_; + } + + public static final int DESIRED_MESH_CERTIFICATES_FIELD_NUMBER = 67; + private com.google.container.v1beta1.MeshCertificates desiredMeshCertificates_; + /** + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + * @return Whether the desiredMeshCertificates field is set. + */ + @java.lang.Override + public boolean hasDesiredMeshCertificates() { + return ((bitField0_ & 0x00100000) != 0); + } + /** + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + * @return The desiredMeshCertificates. + */ + @java.lang.Override + public com.google.container.v1beta1.MeshCertificates getDesiredMeshCertificates() { + return desiredMeshCertificates_ == null ? com.google.container.v1beta1.MeshCertificates.getDefaultInstance() : desiredMeshCertificates_; + } + /** + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + */ + @java.lang.Override + public com.google.container.v1beta1.MeshCertificatesOrBuilder getDesiredMeshCertificatesOrBuilder() { + return desiredMeshCertificates_ == null ? com.google.container.v1beta1.MeshCertificates.getDefaultInstance() : desiredMeshCertificates_; + } + + public static final int DESIRED_WORKLOAD_ALTS_CONFIG_FIELD_NUMBER = 62; + private com.google.container.v1beta1.WorkloadALTSConfig desiredWorkloadAltsConfig_; + /** + *
+   * Configuration for direct-path (via ALTS) with workload identity.
+   * 
+ * + * .google.container.v1beta1.WorkloadALTSConfig desired_workload_alts_config = 62; + * @return Whether the desiredWorkloadAltsConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredWorkloadAltsConfig() { + return ((bitField0_ & 0x00200000) != 0); + } + /** + *
+   * Configuration for direct-path (via ALTS) with workload identity.
+   * 
+ * + * .google.container.v1beta1.WorkloadALTSConfig desired_workload_alts_config = 62; + * @return The desiredWorkloadAltsConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.WorkloadALTSConfig getDesiredWorkloadAltsConfig() { + return desiredWorkloadAltsConfig_ == null ? com.google.container.v1beta1.WorkloadALTSConfig.getDefaultInstance() : desiredWorkloadAltsConfig_; + } + /** + *
+   * Configuration for direct-path (via ALTS) with workload identity.
+   * 
+ * + * .google.container.v1beta1.WorkloadALTSConfig desired_workload_alts_config = 62; + */ + @java.lang.Override + public com.google.container.v1beta1.WorkloadALTSConfigOrBuilder getDesiredWorkloadAltsConfigOrBuilder() { + return desiredWorkloadAltsConfig_ == null ? com.google.container.v1beta1.WorkloadALTSConfig.getDefaultInstance() : desiredWorkloadAltsConfig_; + } + + 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 ((bitField0_ & 0x00400000) != 0); + } + /** + *
+   * 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 desiredShieldedNodes_ == null ? com.google.container.v1beta1.ShieldedNodes.getDefaultInstance() : desiredShieldedNodes_; + } + + public static final int DESIRED_COST_MANAGEMENT_CONFIG_FIELD_NUMBER = 49; + private com.google.container.v1beta1.CostManagementConfig desiredCostManagementConfig_; + /** + *
+   * The desired configuration for the fine-grained cost management feature.
+   * 
+ * + * .google.container.v1beta1.CostManagementConfig desired_cost_management_config = 49; + * @return Whether the desiredCostManagementConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredCostManagementConfig() { + return ((bitField0_ & 0x00800000) != 0); + } + /** + *
+   * The desired configuration for the fine-grained cost management feature.
+   * 
+ * + * .google.container.v1beta1.CostManagementConfig desired_cost_management_config = 49; + * @return The desiredCostManagementConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.CostManagementConfig getDesiredCostManagementConfig() { + return desiredCostManagementConfig_ == null ? com.google.container.v1beta1.CostManagementConfig.getDefaultInstance() : desiredCostManagementConfig_; + } + /** + *
+   * The desired configuration for the fine-grained cost management feature.
+   * 
+ * + * .google.container.v1beta1.CostManagementConfig desired_cost_management_config = 49; + */ + @java.lang.Override + public com.google.container.v1beta1.CostManagementConfigOrBuilder getDesiredCostManagementConfigOrBuilder() { + return desiredCostManagementConfig_ == null ? com.google.container.v1beta1.CostManagementConfig.getDefaultInstance() : desiredCostManagementConfig_; + } + + 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 ((bitField0_ & 0x01000000) != 0); + } + /** + *
+   * 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 desiredMaster_ == null ? com.google.container.v1beta1.Master.getDefaultInstance() : desiredMaster_; + } + + public static final int DESIRED_DNS_CONFIG_FIELD_NUMBER = 53; + private com.google.container.v1beta1.DNSConfig desiredDnsConfig_; + /** + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1beta1.DNSConfig desired_dns_config = 53; + * @return Whether the desiredDnsConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredDnsConfig() { + return ((bitField0_ & 0x02000000) != 0); + } + /** + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1beta1.DNSConfig desired_dns_config = 53; + * @return The desiredDnsConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.DNSConfig getDesiredDnsConfig() { + return desiredDnsConfig_ == null ? com.google.container.v1beta1.DNSConfig.getDefaultInstance() : desiredDnsConfig_; + } + /** + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1beta1.DNSConfig desired_dns_config = 53; + */ + @java.lang.Override + public com.google.container.v1beta1.DNSConfigOrBuilder getDesiredDnsConfigOrBuilder() { + return desiredDnsConfig_ == null ? com.google.container.v1beta1.DNSConfig.getDefaultInstance() : desiredDnsConfig_; + } + + public static final int DESIRED_SERVICE_EXTERNAL_IPS_CONFIG_FIELD_NUMBER = 60; + private com.google.container.v1beta1.ServiceExternalIPsConfig desiredServiceExternalIpsConfig_; + /** + *
+   * ServiceExternalIPsConfig specifies the config for the use of Services with
+   * ExternalIPs field.
+   * 
+ * + * .google.container.v1beta1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + * @return Whether the desiredServiceExternalIpsConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredServiceExternalIpsConfig() { + return ((bitField0_ & 0x04000000) != 0); + } + /** + *
+   * ServiceExternalIPsConfig specifies the config for the use of Services with
+   * ExternalIPs field.
+   * 
+ * + * .google.container.v1beta1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + * @return The desiredServiceExternalIpsConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.ServiceExternalIPsConfig getDesiredServiceExternalIpsConfig() { + return desiredServiceExternalIpsConfig_ == null ? com.google.container.v1beta1.ServiceExternalIPsConfig.getDefaultInstance() : desiredServiceExternalIpsConfig_; + } + /** + *
+   * ServiceExternalIPsConfig specifies the config for the use of Services with
+   * ExternalIPs field.
+   * 
+ * + * .google.container.v1beta1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + */ + @java.lang.Override + public com.google.container.v1beta1.ServiceExternalIPsConfigOrBuilder getDesiredServiceExternalIpsConfigOrBuilder() { + return desiredServiceExternalIpsConfig_ == null ? com.google.container.v1beta1.ServiceExternalIPsConfig.getDefaultInstance() : desiredServiceExternalIpsConfig_; + } + + public static final int DESIRED_AUTHENTICATOR_GROUPS_CONFIG_FIELD_NUMBER = 63; + private com.google.container.v1beta1.AuthenticatorGroupsConfig desiredAuthenticatorGroupsConfig_; + /** + *
+   * AuthenticatorGroupsConfig specifies the config for the cluster security
+   * groups settings.
+   * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * @return Whether the desiredAuthenticatorGroupsConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredAuthenticatorGroupsConfig() { + return ((bitField0_ & 0x08000000) != 0); + } + /** + *
+   * AuthenticatorGroupsConfig specifies the config for the cluster security
+   * groups settings.
+   * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * @return The desiredAuthenticatorGroupsConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.AuthenticatorGroupsConfig getDesiredAuthenticatorGroupsConfig() { + return desiredAuthenticatorGroupsConfig_ == null ? com.google.container.v1beta1.AuthenticatorGroupsConfig.getDefaultInstance() : desiredAuthenticatorGroupsConfig_; + } + /** + *
+   * AuthenticatorGroupsConfig specifies the config for the cluster security
+   * groups settings.
+   * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + */ + @java.lang.Override + public com.google.container.v1beta1.AuthenticatorGroupsConfigOrBuilder getDesiredAuthenticatorGroupsConfigOrBuilder() { + return desiredAuthenticatorGroupsConfig_ == null ? com.google.container.v1beta1.AuthenticatorGroupsConfig.getDefaultInstance() : desiredAuthenticatorGroupsConfig_; + } + + public static final int DESIRED_LOGGING_CONFIG_FIELD_NUMBER = 64; + private com.google.container.v1beta1.LoggingConfig desiredLoggingConfig_; + /** + *
+   * The desired logging configuration.
+   * 
+ * + * .google.container.v1beta1.LoggingConfig desired_logging_config = 64; + * @return Whether the desiredLoggingConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredLoggingConfig() { + return ((bitField0_ & 0x10000000) != 0); + } + /** + *
+   * The desired logging configuration.
+   * 
+ * + * .google.container.v1beta1.LoggingConfig desired_logging_config = 64; + * @return The desiredLoggingConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.LoggingConfig getDesiredLoggingConfig() { + return desiredLoggingConfig_ == null ? com.google.container.v1beta1.LoggingConfig.getDefaultInstance() : desiredLoggingConfig_; + } + /** + *
+   * The desired logging configuration.
+   * 
+ * + * .google.container.v1beta1.LoggingConfig desired_logging_config = 64; + */ + @java.lang.Override + public com.google.container.v1beta1.LoggingConfigOrBuilder getDesiredLoggingConfigOrBuilder() { + return desiredLoggingConfig_ == null ? com.google.container.v1beta1.LoggingConfig.getDefaultInstance() : desiredLoggingConfig_; + } + + public static final int DESIRED_MONITORING_CONFIG_FIELD_NUMBER = 65; + private com.google.container.v1beta1.MonitoringConfig desiredMonitoringConfig_; + /** + *
+   * The desired monitoring configuration.
+   * 
+ * + * .google.container.v1beta1.MonitoringConfig desired_monitoring_config = 65; + * @return Whether the desiredMonitoringConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredMonitoringConfig() { + return ((bitField0_ & 0x20000000) != 0); + } + /** + *
+   * The desired monitoring configuration.
+   * 
+ * + * .google.container.v1beta1.MonitoringConfig desired_monitoring_config = 65; + * @return The desiredMonitoringConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.MonitoringConfig getDesiredMonitoringConfig() { + return desiredMonitoringConfig_ == null ? com.google.container.v1beta1.MonitoringConfig.getDefaultInstance() : desiredMonitoringConfig_; + } + /** + *
+   * The desired monitoring configuration.
+   * 
+ * + * .google.container.v1beta1.MonitoringConfig desired_monitoring_config = 65; + */ + @java.lang.Override + public com.google.container.v1beta1.MonitoringConfigOrBuilder getDesiredMonitoringConfigOrBuilder() { + return desiredMonitoringConfig_ == null ? com.google.container.v1beta1.MonitoringConfig.getDefaultInstance() : desiredMonitoringConfig_; + } + + public static final int DESIRED_IDENTITY_SERVICE_CONFIG_FIELD_NUMBER = 66; + private com.google.container.v1beta1.IdentityServiceConfig desiredIdentityServiceConfig_; + /** + *
+   * The desired Identity Service component configuration.
+   * 
+ * + * .google.container.v1beta1.IdentityServiceConfig desired_identity_service_config = 66; + * @return Whether the desiredIdentityServiceConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredIdentityServiceConfig() { + return ((bitField0_ & 0x40000000) != 0); + } + /** + *
+   * The desired Identity Service component configuration.
+   * 
+ * + * .google.container.v1beta1.IdentityServiceConfig desired_identity_service_config = 66; + * @return The desiredIdentityServiceConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.IdentityServiceConfig getDesiredIdentityServiceConfig() { + return desiredIdentityServiceConfig_ == null ? com.google.container.v1beta1.IdentityServiceConfig.getDefaultInstance() : desiredIdentityServiceConfig_; + } + /** + *
+   * The desired Identity Service component configuration.
+   * 
+ * + * .google.container.v1beta1.IdentityServiceConfig desired_identity_service_config = 66; + */ + @java.lang.Override + public com.google.container.v1beta1.IdentityServiceConfigOrBuilder getDesiredIdentityServiceConfigOrBuilder() { + return desiredIdentityServiceConfig_ == null ? com.google.container.v1beta1.IdentityServiceConfig.getDefaultInstance() : desiredIdentityServiceConfig_; + } + + public static final int DESIRED_ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER = 71; + private boolean desiredEnablePrivateEndpoint_ = false; + /** + *
+   * Enable/Disable private endpoint for the cluster's master.
+   * 
+ * + * optional bool desired_enable_private_endpoint = 71; + * @return Whether the desiredEnablePrivateEndpoint field is set. + */ + @java.lang.Override + public boolean hasDesiredEnablePrivateEndpoint() { + return ((bitField0_ & 0x80000000) != 0); + } + /** + *
+   * Enable/Disable private endpoint for the cluster's master.
+   * 
+ * + * optional bool desired_enable_private_endpoint = 71; + * @return The desiredEnablePrivateEndpoint. + */ + @java.lang.Override + public boolean getDesiredEnablePrivateEndpoint() { + return desiredEnablePrivateEndpoint_; + } + + public static final int DESIRED_NODE_POOL_AUTO_CONFIG_NETWORK_TAGS_FIELD_NUMBER = 110; + private com.google.container.v1beta1.NetworkTags desiredNodePoolAutoConfigNetworkTags_; + /** + *
+   * The desired network tags that apply to all auto-provisioned node pools
+   * in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * .google.container.v1beta1.NetworkTags desired_node_pool_auto_config_network_tags = 110; + * @return Whether the desiredNodePoolAutoConfigNetworkTags field is set. + */ + @java.lang.Override + public boolean hasDesiredNodePoolAutoConfigNetworkTags() { + return ((bitField1_ & 0x00000001) != 0); + } + /** + *
+   * The desired network tags that apply to all auto-provisioned node pools
+   * in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * .google.container.v1beta1.NetworkTags desired_node_pool_auto_config_network_tags = 110; + * @return The desiredNodePoolAutoConfigNetworkTags. + */ + @java.lang.Override + public com.google.container.v1beta1.NetworkTags getDesiredNodePoolAutoConfigNetworkTags() { + return desiredNodePoolAutoConfigNetworkTags_ == null ? com.google.container.v1beta1.NetworkTags.getDefaultInstance() : desiredNodePoolAutoConfigNetworkTags_; + } + /** + *
+   * The desired network tags that apply to all auto-provisioned node pools
+   * in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * .google.container.v1beta1.NetworkTags desired_node_pool_auto_config_network_tags = 110; + */ + @java.lang.Override + public com.google.container.v1beta1.NetworkTagsOrBuilder getDesiredNodePoolAutoConfigNetworkTagsOrBuilder() { + return desiredNodePoolAutoConfigNetworkTags_ == null ? com.google.container.v1beta1.NetworkTags.getDefaultInstance() : desiredNodePoolAutoConfigNetworkTags_; + } + + public static final int DESIRED_PROTECT_CONFIG_FIELD_NUMBER = 112; + private com.google.container.v1beta1.ProtectConfig desiredProtectConfig_; + /** + *
+   * Deprecated: Use DesiredSecurityPostureConfig instead.
+   * Enable/Disable Protect API features for the cluster.
+   * 
+ * + * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112 [deprecated = true]; + * @deprecated google.container.v1beta1.ClusterUpdate.desired_protect_config is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2606 + * @return Whether the desiredProtectConfig field is set. + */ + @java.lang.Override + @java.lang.Deprecated public boolean hasDesiredProtectConfig() { + return ((bitField1_ & 0x00000002) != 0); + } + /** + *
+   * Deprecated: Use DesiredSecurityPostureConfig instead.
+   * Enable/Disable Protect API features for the cluster.
+   * 
+ * + * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112 [deprecated = true]; + * @deprecated google.container.v1beta1.ClusterUpdate.desired_protect_config is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2606 + * @return The desiredProtectConfig. + */ + @java.lang.Override + @java.lang.Deprecated public com.google.container.v1beta1.ProtectConfig getDesiredProtectConfig() { + return desiredProtectConfig_ == null ? com.google.container.v1beta1.ProtectConfig.getDefaultInstance() : desiredProtectConfig_; + } + /** + *
+   * Deprecated: Use DesiredSecurityPostureConfig instead.
+   * Enable/Disable Protect API features for the cluster.
+   * 
+ * + * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112 [deprecated = true]; + */ + @java.lang.Override + @java.lang.Deprecated public com.google.container.v1beta1.ProtectConfigOrBuilder getDesiredProtectConfigOrBuilder() { + return desiredProtectConfig_ == null ? com.google.container.v1beta1.ProtectConfig.getDefaultInstance() : desiredProtectConfig_; + } + + public static final int DESIRED_GATEWAY_API_CONFIG_FIELD_NUMBER = 114; + private com.google.container.v1beta1.GatewayAPIConfig desiredGatewayApiConfig_; + /** + *
+   * The desired config of Gateway API on this cluster.
+   * 
+ * + * .google.container.v1beta1.GatewayAPIConfig desired_gateway_api_config = 114; + * @return Whether the desiredGatewayApiConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredGatewayApiConfig() { + return ((bitField1_ & 0x00000004) != 0); + } + /** + *
+   * The desired config of Gateway API on this cluster.
+   * 
+ * + * .google.container.v1beta1.GatewayAPIConfig desired_gateway_api_config = 114; + * @return The desiredGatewayApiConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.GatewayAPIConfig getDesiredGatewayApiConfig() { + return desiredGatewayApiConfig_ == null ? com.google.container.v1beta1.GatewayAPIConfig.getDefaultInstance() : desiredGatewayApiConfig_; + } + /** + *
+   * The desired config of Gateway API on this cluster.
+   * 
+ * + * .google.container.v1beta1.GatewayAPIConfig desired_gateway_api_config = 114; + */ + @java.lang.Override + public com.google.container.v1beta1.GatewayAPIConfigOrBuilder getDesiredGatewayApiConfigOrBuilder() { + return desiredGatewayApiConfig_ == null ? com.google.container.v1beta1.GatewayAPIConfig.getDefaultInstance() : desiredGatewayApiConfig_; + } + + public static final int ETAG_FIELD_NUMBER = 115; + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + /** + *
+   * The current etag of the cluster.
+   * If an etag is provided and does not match the current etag of the cluster,
+   * update will be blocked and an ABORTED error will be returned.
+   * 
+ * + * string etag = 115; + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + /** + *
+   * The current etag of the cluster.
+   * If an etag is provided and does not match the current etag of the cluster,
+   * update will be blocked and an ABORTED error will be returned.
+   * 
+ * + * string etag = 115; + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESIRED_NODE_POOL_LOGGING_CONFIG_FIELD_NUMBER = 116; + private com.google.container.v1beta1.NodePoolLoggingConfig desiredNodePoolLoggingConfig_; + /** + *
+   * The desired node pool logging configuration defaults for the cluster.
+   * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; + * @return Whether the desiredNodePoolLoggingConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredNodePoolLoggingConfig() { + return ((bitField1_ & 0x00000008) != 0); + } + /** + *
+   * The desired node pool logging configuration defaults for the cluster.
+   * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; + * @return The desiredNodePoolLoggingConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.NodePoolLoggingConfig getDesiredNodePoolLoggingConfig() { + return desiredNodePoolLoggingConfig_ == null ? com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance() : desiredNodePoolLoggingConfig_; + } + /** + *
+   * The desired node pool logging configuration defaults for the cluster.
+   * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; + */ + @java.lang.Override + public com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder getDesiredNodePoolLoggingConfigOrBuilder() { + return desiredNodePoolLoggingConfig_ == null ? com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance() : desiredNodePoolLoggingConfig_; + } + + public static final int DESIRED_FLEET_FIELD_NUMBER = 117; + private com.google.container.v1beta1.Fleet desiredFleet_; + /** + *
+   * The desired fleet configuration for the cluster.
+   * 
+ * + * .google.container.v1beta1.Fleet desired_fleet = 117; + * @return Whether the desiredFleet field is set. + */ + @java.lang.Override + public boolean hasDesiredFleet() { + return ((bitField1_ & 0x00000010) != 0); + } + /** + *
+   * The desired fleet configuration for the cluster.
+   * 
+ * + * .google.container.v1beta1.Fleet desired_fleet = 117; + * @return The desiredFleet. + */ + @java.lang.Override + public com.google.container.v1beta1.Fleet getDesiredFleet() { + return desiredFleet_ == null ? com.google.container.v1beta1.Fleet.getDefaultInstance() : desiredFleet_; + } + /** + *
+   * The desired fleet configuration for the cluster.
+   * 
+ * + * .google.container.v1beta1.Fleet desired_fleet = 117; + */ + @java.lang.Override + public com.google.container.v1beta1.FleetOrBuilder getDesiredFleetOrBuilder() { + return desiredFleet_ == null ? com.google.container.v1beta1.Fleet.getDefaultInstance() : desiredFleet_; + } + + public static final int DESIRED_STACK_TYPE_FIELD_NUMBER = 119; + private int desiredStackType_ = 0; + /** + *
+   * The desired stack type of the cluster.
+   * If a stack type is provided and does not match the current stack type of
+   * the cluster, update will attempt to change the stack type to the new type.
+   * 
+ * + * .google.container.v1beta1.StackType desired_stack_type = 119; + * @return The enum numeric value on the wire for desiredStackType. + */ + @java.lang.Override public int getDesiredStackTypeValue() { + return desiredStackType_; + } + /** + *
+   * The desired stack type of the cluster.
+   * If a stack type is provided and does not match the current stack type of
+   * the cluster, update will attempt to change the stack type to the new type.
+   * 
+ * + * .google.container.v1beta1.StackType desired_stack_type = 119; + * @return The desiredStackType. + */ + @java.lang.Override public com.google.container.v1beta1.StackType getDesiredStackType() { + com.google.container.v1beta1.StackType result = com.google.container.v1beta1.StackType.forNumber(desiredStackType_); + return result == null ? com.google.container.v1beta1.StackType.UNRECOGNIZED : result; + } + + public static final int ADDITIONAL_POD_RANGES_CONFIG_FIELD_NUMBER = 120; + private com.google.container.v1beta1.AdditionalPodRangesConfig additionalPodRangesConfig_; + /** + *
+   * The additional pod ranges to be added to the cluster. These pod ranges
+   * can be used by node pools to allocate pod IPs.
+   * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; + * @return Whether the additionalPodRangesConfig field is set. + */ + @java.lang.Override + public boolean hasAdditionalPodRangesConfig() { + return ((bitField1_ & 0x00000020) != 0); + } + /** + *
+   * The additional pod ranges to be added to the cluster. These pod ranges
+   * can be used by node pools to allocate pod IPs.
+   * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; + * @return The additionalPodRangesConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.AdditionalPodRangesConfig getAdditionalPodRangesConfig() { + return additionalPodRangesConfig_ == null ? com.google.container.v1beta1.AdditionalPodRangesConfig.getDefaultInstance() : additionalPodRangesConfig_; + } + /** + *
+   * The additional pod ranges to be added to the cluster. These pod ranges
+   * can be used by node pools to allocate pod IPs.
+   * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; + */ + @java.lang.Override + public com.google.container.v1beta1.AdditionalPodRangesConfigOrBuilder getAdditionalPodRangesConfigOrBuilder() { + return additionalPodRangesConfig_ == null ? com.google.container.v1beta1.AdditionalPodRangesConfig.getDefaultInstance() : additionalPodRangesConfig_; + } + + public static final int REMOVED_ADDITIONAL_POD_RANGES_CONFIG_FIELD_NUMBER = 121; + private com.google.container.v1beta1.AdditionalPodRangesConfig removedAdditionalPodRangesConfig_; + /** + *
+   * The additional pod ranges that are to be removed from the cluster.
+   * The pod ranges specified here must have been specified earlier in the
+   * 'additional_pod_ranges_config' argument.
+   * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; + * @return Whether the removedAdditionalPodRangesConfig field is set. + */ + @java.lang.Override + public boolean hasRemovedAdditionalPodRangesConfig() { + return ((bitField1_ & 0x00000040) != 0); + } + /** + *
+   * The additional pod ranges that are to be removed from the cluster.
+   * The pod ranges specified here must have been specified earlier in the
+   * 'additional_pod_ranges_config' argument.
+   * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; + * @return The removedAdditionalPodRangesConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.AdditionalPodRangesConfig getRemovedAdditionalPodRangesConfig() { + return removedAdditionalPodRangesConfig_ == null ? com.google.container.v1beta1.AdditionalPodRangesConfig.getDefaultInstance() : removedAdditionalPodRangesConfig_; + } + /** + *
+   * The additional pod ranges that are to be removed from the cluster.
+   * The pod ranges specified here must have been specified earlier in the
+   * 'additional_pod_ranges_config' argument.
+   * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; + */ + @java.lang.Override + public com.google.container.v1beta1.AdditionalPodRangesConfigOrBuilder getRemovedAdditionalPodRangesConfigOrBuilder() { + return removedAdditionalPodRangesConfig_ == null ? com.google.container.v1beta1.AdditionalPodRangesConfig.getDefaultInstance() : removedAdditionalPodRangesConfig_; + } + + public static final int ENABLE_K8S_BETA_APIS_FIELD_NUMBER = 122; + private com.google.container.v1beta1.K8sBetaAPIConfig enableK8SBetaApis_; + /** + *
+   * Kubernetes open source beta apis enabled on the cluster. Only beta apis
+   * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; + * @return Whether the enableK8sBetaApis field is set. + */ + @java.lang.Override + public boolean hasEnableK8SBetaApis() { + return ((bitField1_ & 0x00000080) != 0); + } + /** + *
+   * Kubernetes open source beta apis enabled on the cluster. Only beta apis
+   * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; + * @return The enableK8sBetaApis. + */ + @java.lang.Override + public com.google.container.v1beta1.K8sBetaAPIConfig getEnableK8SBetaApis() { + return enableK8SBetaApis_ == null ? com.google.container.v1beta1.K8sBetaAPIConfig.getDefaultInstance() : enableK8SBetaApis_; + } + /** + *
+   * Kubernetes open source beta apis enabled on the cluster. Only beta apis
+   * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; + */ + @java.lang.Override + public com.google.container.v1beta1.K8sBetaAPIConfigOrBuilder getEnableK8SBetaApisOrBuilder() { + return enableK8SBetaApis_ == null ? com.google.container.v1beta1.K8sBetaAPIConfig.getDefaultInstance() : enableK8SBetaApis_; + } + + public static final int DESIRED_SECURITY_POSTURE_CONFIG_FIELD_NUMBER = 124; + private com.google.container.v1beta1.SecurityPostureConfig desiredSecurityPostureConfig_; + /** + *
+   * Enable/Disable Security Posture API features for the cluster.
+   * 
+ * + * .google.container.v1beta1.SecurityPostureConfig desired_security_posture_config = 124; + * @return Whether the desiredSecurityPostureConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredSecurityPostureConfig() { + return ((bitField1_ & 0x00000100) != 0); + } + /** + *
+   * Enable/Disable Security Posture API features for the cluster.
+   * 
+ * + * .google.container.v1beta1.SecurityPostureConfig desired_security_posture_config = 124; + * @return The desiredSecurityPostureConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.SecurityPostureConfig getDesiredSecurityPostureConfig() { + return desiredSecurityPostureConfig_ == null ? com.google.container.v1beta1.SecurityPostureConfig.getDefaultInstance() : desiredSecurityPostureConfig_; + } + /** + *
+   * Enable/Disable Security Posture API features for the cluster.
+   * 
+ * + * .google.container.v1beta1.SecurityPostureConfig desired_security_posture_config = 124; + */ + @java.lang.Override + public com.google.container.v1beta1.SecurityPostureConfigOrBuilder getDesiredSecurityPostureConfigOrBuilder() { + return desiredSecurityPostureConfig_ == null ? com.google.container.v1beta1.SecurityPostureConfig.getDefaultInstance() : desiredSecurityPostureConfig_; + } + + public static final int DESIRED_NETWORK_PERFORMANCE_CONFIG_FIELD_NUMBER = 125; + private com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig desiredNetworkPerformanceConfig_; + /** + *
+   * The desired network performance config.
+   * 
+ * + * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; + * @return Whether the desiredNetworkPerformanceConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredNetworkPerformanceConfig() { + return ((bitField1_ & 0x00000200) != 0); + } + /** + *
+   * The desired network performance config.
+   * 
+ * + * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; + * @return The desiredNetworkPerformanceConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig getDesiredNetworkPerformanceConfig() { + return desiredNetworkPerformanceConfig_ == null ? com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.getDefaultInstance() : desiredNetworkPerformanceConfig_; + } + /** + *
+   * The desired network performance config.
+   * 
+ * + * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; + */ + @java.lang.Override + public com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder getDesiredNetworkPerformanceConfigOrBuilder() { + return desiredNetworkPerformanceConfig_ == null ? com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.getDefaultInstance() : desiredNetworkPerformanceConfig_; + } + + public static final int DESIRED_ENABLE_FQDN_NETWORK_POLICY_FIELD_NUMBER = 126; + private boolean desiredEnableFqdnNetworkPolicy_ = false; + /** + *
+   * Enable/Disable FQDN Network Policy for the cluster.
+   * 
+ * + * optional bool desired_enable_fqdn_network_policy = 126; + * @return Whether the desiredEnableFqdnNetworkPolicy field is set. + */ + @java.lang.Override + public boolean hasDesiredEnableFqdnNetworkPolicy() { + return ((bitField1_ & 0x00000400) != 0); + } + /** + *
+   * Enable/Disable FQDN Network Policy for the cluster.
+   * 
+ * + * optional bool desired_enable_fqdn_network_policy = 126; + * @return The desiredEnableFqdnNetworkPolicy. + */ + @java.lang.Override + public boolean getDesiredEnableFqdnNetworkPolicy() { + return desiredEnableFqdnNetworkPolicy_; + } + + public static final int DESIRED_AUTOPILOT_WORKLOAD_POLICY_CONFIG_FIELD_NUMBER = 128; + private com.google.container.v1beta1.WorkloadPolicyConfig desiredAutopilotWorkloadPolicyConfig_; + /** + *
+   * The desired workload policy configuration for the autopilot cluster.
+   * 
+ * + * .google.container.v1beta1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; + * @return Whether the desiredAutopilotWorkloadPolicyConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredAutopilotWorkloadPolicyConfig() { + return ((bitField1_ & 0x00000800) != 0); + } + /** + *
+   * The desired workload policy configuration for the autopilot cluster.
+   * 
+ * + * .google.container.v1beta1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; + * @return The desiredAutopilotWorkloadPolicyConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.WorkloadPolicyConfig getDesiredAutopilotWorkloadPolicyConfig() { + return desiredAutopilotWorkloadPolicyConfig_ == null ? com.google.container.v1beta1.WorkloadPolicyConfig.getDefaultInstance() : desiredAutopilotWorkloadPolicyConfig_; + } + /** + *
+   * The desired workload policy configuration for the autopilot cluster.
+   * 
+ * + * .google.container.v1beta1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; + */ + @java.lang.Override + public com.google.container.v1beta1.WorkloadPolicyConfigOrBuilder getDesiredAutopilotWorkloadPolicyConfigOrBuilder() { + return desiredAutopilotWorkloadPolicyConfig_ == null ? com.google.container.v1beta1.WorkloadPolicyConfig.getDefaultInstance() : desiredAutopilotWorkloadPolicyConfig_; + } + + public static final int DESIRED_K8S_BETA_APIS_FIELD_NUMBER = 131; + private com.google.container.v1beta1.K8sBetaAPIConfig desiredK8SBetaApis_; + /** + *
+   * Beta APIs enabled for cluster.
+   * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; + * @return Whether the desiredK8sBetaApis field is set. + */ + @java.lang.Override + public boolean hasDesiredK8SBetaApis() { + return ((bitField1_ & 0x00001000) != 0); + } + /** + *
+   * Beta APIs enabled for cluster.
+   * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; + * @return The desiredK8sBetaApis. + */ + @java.lang.Override + public com.google.container.v1beta1.K8sBetaAPIConfig getDesiredK8SBetaApis() { + return desiredK8SBetaApis_ == null ? com.google.container.v1beta1.K8sBetaAPIConfig.getDefaultInstance() : desiredK8SBetaApis_; + } + /** + *
+   * Beta APIs enabled for cluster.
+   * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; + */ + @java.lang.Override + public com.google.container.v1beta1.K8sBetaAPIConfigOrBuilder getDesiredK8SBetaApisOrBuilder() { + return desiredK8SBetaApis_ == null ? com.google.container.v1beta1.K8sBetaAPIConfig.getDefaultInstance() : desiredK8SBetaApis_; + } + + public static final int DESIRED_HOST_MAINTENANCE_POLICY_FIELD_NUMBER = 132; + private com.google.container.v1beta1.HostMaintenancePolicy desiredHostMaintenancePolicy_; + /** + *
+   * HostMaintenancePolicy contains the desired maintenance policy for the
+   * Google Compute Engine hosts.
+   * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy desired_host_maintenance_policy = 132; + * @return Whether the desiredHostMaintenancePolicy field is set. + */ + @java.lang.Override + public boolean hasDesiredHostMaintenancePolicy() { + return ((bitField1_ & 0x00002000) != 0); + } + /** + *
+   * HostMaintenancePolicy contains the desired maintenance policy for the
+   * Google Compute Engine hosts.
+   * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy desired_host_maintenance_policy = 132; + * @return The desiredHostMaintenancePolicy. + */ + @java.lang.Override + public com.google.container.v1beta1.HostMaintenancePolicy getDesiredHostMaintenancePolicy() { + return desiredHostMaintenancePolicy_ == null ? com.google.container.v1beta1.HostMaintenancePolicy.getDefaultInstance() : desiredHostMaintenancePolicy_; + } + /** + *
+   * HostMaintenancePolicy contains the desired maintenance policy for the
+   * Google Compute Engine hosts.
+   * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy desired_host_maintenance_policy = 132; + */ + @java.lang.Override + public com.google.container.v1beta1.HostMaintenancePolicyOrBuilder getDesiredHostMaintenancePolicyOrBuilder() { + return desiredHostMaintenancePolicy_ == null ? com.google.container.v1beta1.HostMaintenancePolicy.getDefaultInstance() : desiredHostMaintenancePolicy_; + } + + public static final int DESIRED_NODE_POOL_AUTO_CONFIG_RESOURCE_MANAGER_TAGS_FIELD_NUMBER = 136; + private com.google.container.v1beta1.ResourceManagerTags desiredNodePoolAutoConfigResourceManagerTags_; + /** + *
+   * The desired resource manager tags that apply to all auto-provisioned node
+   * pools in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * .google.container.v1beta1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; + * @return Whether the desiredNodePoolAutoConfigResourceManagerTags field is set. + */ + @java.lang.Override + public boolean hasDesiredNodePoolAutoConfigResourceManagerTags() { + return ((bitField1_ & 0x00004000) != 0); + } + /** + *
+   * The desired resource manager tags that apply to all auto-provisioned node
+   * pools in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * .google.container.v1beta1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; + * @return The desiredNodePoolAutoConfigResourceManagerTags. + */ + @java.lang.Override + public com.google.container.v1beta1.ResourceManagerTags getDesiredNodePoolAutoConfigResourceManagerTags() { + return desiredNodePoolAutoConfigResourceManagerTags_ == null ? com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance() : desiredNodePoolAutoConfigResourceManagerTags_; + } + /** + *
+   * The desired resource manager tags that apply to all auto-provisioned node
+   * pools in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * .google.container.v1beta1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; + */ + @java.lang.Override + public com.google.container.v1beta1.ResourceManagerTagsOrBuilder getDesiredNodePoolAutoConfigResourceManagerTagsOrBuilder() { + return desiredNodePoolAutoConfigResourceManagerTags_ == null ? com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance() : desiredNodePoolAutoConfigResourceManagerTags_; + } + + public static final int DESIRED_IN_TRANSIT_ENCRYPTION_CONFIG_FIELD_NUMBER = 137; + private int desiredInTransitEncryptionConfig_ = 0; + /** + *
+   * Specify the details of in-transit encryption.
+   * 
+ * + * optional .google.container.v1beta1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; + * @return Whether the desiredInTransitEncryptionConfig field is set. + */ + @java.lang.Override public boolean hasDesiredInTransitEncryptionConfig() { + return ((bitField1_ & 0x00008000) != 0); + } + /** + *
+   * Specify the details of in-transit encryption.
+   * 
+ * + * optional .google.container.v1beta1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; + * @return The enum numeric value on the wire for desiredInTransitEncryptionConfig. + */ + @java.lang.Override public int getDesiredInTransitEncryptionConfigValue() { + return desiredInTransitEncryptionConfig_; + } + /** + *
+   * Specify the details of in-transit encryption.
+   * 
+ * + * optional .google.container.v1beta1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; + * @return The desiredInTransitEncryptionConfig. + */ + @java.lang.Override public com.google.container.v1beta1.InTransitEncryptionConfig getDesiredInTransitEncryptionConfig() { + com.google.container.v1beta1.InTransitEncryptionConfig result = com.google.container.v1beta1.InTransitEncryptionConfig.forNumber(desiredInTransitEncryptionConfig_); + return result == null ? com.google.container.v1beta1.InTransitEncryptionConfig.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredNodeVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, desiredNodeVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredMonitoringService_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, desiredMonitoringService_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getDesiredAddonsConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredNodePoolId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, desiredNodePoolId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredImageType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, desiredImageType_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(9, getDesiredNodePoolAutoscaling()); + } + for (int i = 0; i < desiredLocations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, desiredLocations_.getRaw(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(12, getDesiredMasterAuthorizedNetworksConfig()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(14, getDesiredPodSecurityPolicyConfig()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(15, getDesiredClusterAutoscaling()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(16, getDesiredBinaryAuthorization()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredLoggingService_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 19, desiredLoggingService_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(21, getDesiredResourceUsageExportConfig()); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(22, getDesiredVerticalPodAutoscaling()); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(25, getDesiredPrivateClusterConfig()); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeMessage(26, getDesiredIntraNodeVisibilityConfig()); + } + if (((bitField0_ & 0x00000400) != 0)) { + output.writeMessage(28, getDesiredDefaultSnatStatus()); + } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeMessage(30, getDesiredClusterTelemetry()); + } + if (((bitField0_ & 0x00001000) != 0)) { + output.writeMessage(31, getDesiredReleaseChannel()); + } + if (((bitField0_ & 0x00002000) != 0)) { + output.writeMessage(38, getDesiredTpuConfig()); + } + if (((bitField0_ & 0x00004000) != 0)) { + output.writeMessage(39, getDesiredL4IlbSubsettingConfig()); + } + if (((bitField0_ & 0x00020000) != 0)) { + output.writeMessage(46, getDesiredDatabaseEncryption()); + } + if (((bitField0_ & 0x00040000) != 0)) { + output.writeMessage(47, getDesiredWorkloadIdentityConfig()); + } + if (((bitField0_ & 0x00400000) != 0)) { + output.writeMessage(48, getDesiredShieldedNodes()); + } + if (((bitField0_ & 0x00800000) != 0)) { + output.writeMessage(49, getDesiredCostManagementConfig()); + } + if (desiredDatapathProvider_ != com.google.container.v1beta1.DatapathProvider.DATAPATH_PROVIDER_UNSPECIFIED.getNumber()) { + output.writeEnum(50, desiredDatapathProvider_); + } + if (desiredPrivateIpv6GoogleAccess_ != com.google.container.v1beta1.PrivateIPv6GoogleAccess.PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED.getNumber()) { + output.writeEnum(51, desiredPrivateIpv6GoogleAccess_); + } + if (((bitField0_ & 0x01000000) != 0)) { + output.writeMessage(52, getDesiredMaster()); + } + if (((bitField0_ & 0x02000000) != 0)) { + output.writeMessage(53, getDesiredDnsConfig()); + } + if (((bitField0_ & 0x00008000) != 0)) { + output.writeMessage(55, getDesiredNotificationConfig()); + } + if (((bitField0_ & 0x04000000) != 0)) { + output.writeMessage(60, getDesiredServiceExternalIpsConfig()); + } + if (((bitField0_ & 0x00080000) != 0)) { + output.writeMessage(61, getDesiredWorkloadCertificates()); + } + if (((bitField0_ & 0x00200000) != 0)) { + output.writeMessage(62, getDesiredWorkloadAltsConfig()); + } + if (((bitField0_ & 0x08000000) != 0)) { + output.writeMessage(63, getDesiredAuthenticatorGroupsConfig()); + } + if (((bitField0_ & 0x10000000) != 0)) { + output.writeMessage(64, getDesiredLoggingConfig()); + } + if (((bitField0_ & 0x20000000) != 0)) { + output.writeMessage(65, getDesiredMonitoringConfig()); + } + if (((bitField0_ & 0x40000000) != 0)) { + output.writeMessage(66, getDesiredIdentityServiceConfig()); + } + if (((bitField0_ & 0x00100000) != 0)) { + output.writeMessage(67, getDesiredMeshCertificates()); + } + if (((bitField0_ & 0x80000000) != 0)) { + output.writeBool(71, desiredEnablePrivateEndpoint_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredMasterVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 100, desiredMasterVersion_); + } + if (((bitField0_ & 0x00010000) != 0)) { + output.writeMessage(109, getDesiredGcfsConfig()); + } + if (((bitField1_ & 0x00000001) != 0)) { + output.writeMessage(110, getDesiredNodePoolAutoConfigNetworkTags()); + } + if (((bitField1_ & 0x00000002) != 0)) { + output.writeMessage(112, getDesiredProtectConfig()); + } + if (((bitField1_ & 0x00000004) != 0)) { + output.writeMessage(114, getDesiredGatewayApiConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 115, etag_); + } + if (((bitField1_ & 0x00000008) != 0)) { + output.writeMessage(116, getDesiredNodePoolLoggingConfig()); + } + if (((bitField1_ & 0x00000010) != 0)) { + output.writeMessage(117, getDesiredFleet()); + } + if (desiredStackType_ != com.google.container.v1beta1.StackType.STACK_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(119, desiredStackType_); + } + if (((bitField1_ & 0x00000020) != 0)) { + output.writeMessage(120, getAdditionalPodRangesConfig()); + } + if (((bitField1_ & 0x00000040) != 0)) { + output.writeMessage(121, getRemovedAdditionalPodRangesConfig()); + } + if (((bitField1_ & 0x00000080) != 0)) { + output.writeMessage(122, getEnableK8SBetaApis()); + } + if (((bitField1_ & 0x00000100) != 0)) { + output.writeMessage(124, getDesiredSecurityPostureConfig()); + } + if (((bitField1_ & 0x00000200) != 0)) { + output.writeMessage(125, getDesiredNetworkPerformanceConfig()); + } + if (((bitField1_ & 0x00000400) != 0)) { + output.writeBool(126, desiredEnableFqdnNetworkPolicy_); + } + if (((bitField1_ & 0x00000800) != 0)) { + output.writeMessage(128, getDesiredAutopilotWorkloadPolicyConfig()); + } + if (((bitField1_ & 0x00001000) != 0)) { + output.writeMessage(131, getDesiredK8SBetaApis()); + } + if (((bitField1_ & 0x00002000) != 0)) { + output.writeMessage(132, getDesiredHostMaintenancePolicy()); + } + if (((bitField1_ & 0x00004000) != 0)) { + output.writeMessage(136, getDesiredNodePoolAutoConfigResourceManagerTags()); + } + if (((bitField1_ & 0x00008000) != 0)) { + output.writeEnum(137, desiredInTransitEncryptionConfig_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredNodeVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, desiredNodeVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredMonitoringService_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, desiredMonitoringService_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getDesiredAddonsConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredNodePoolId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, desiredNodePoolId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredImageType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, desiredImageType_); + } + if (((bitField0_ & 0x00000002) != 0)) { + 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 (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getDesiredMasterAuthorizedNetworksConfig()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getDesiredPodSecurityPolicyConfig()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, getDesiredClusterAutoscaling()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getDesiredBinaryAuthorization()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredLoggingService_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, desiredLoggingService_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, getDesiredResourceUsageExportConfig()); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(22, getDesiredVerticalPodAutoscaling()); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(25, getDesiredPrivateClusterConfig()); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(26, getDesiredIntraNodeVisibilityConfig()); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(28, getDesiredDefaultSnatStatus()); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(30, getDesiredClusterTelemetry()); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(31, getDesiredReleaseChannel()); + } + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(38, getDesiredTpuConfig()); + } + if (((bitField0_ & 0x00004000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(39, getDesiredL4IlbSubsettingConfig()); + } + if (((bitField0_ & 0x00020000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(46, getDesiredDatabaseEncryption()); + } + if (((bitField0_ & 0x00040000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(47, getDesiredWorkloadIdentityConfig()); + } + if (((bitField0_ & 0x00400000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(48, getDesiredShieldedNodes()); + } + if (((bitField0_ & 0x00800000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(49, getDesiredCostManagementConfig()); + } + if (desiredDatapathProvider_ != com.google.container.v1beta1.DatapathProvider.DATAPATH_PROVIDER_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(50, desiredDatapathProvider_); + } + if (desiredPrivateIpv6GoogleAccess_ != com.google.container.v1beta1.PrivateIPv6GoogleAccess.PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(51, desiredPrivateIpv6GoogleAccess_); + } + if (((bitField0_ & 0x01000000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(52, getDesiredMaster()); + } + if (((bitField0_ & 0x02000000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(53, getDesiredDnsConfig()); + } + if (((bitField0_ & 0x00008000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(55, getDesiredNotificationConfig()); + } + if (((bitField0_ & 0x04000000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(60, getDesiredServiceExternalIpsConfig()); + } + if (((bitField0_ & 0x00080000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(61, getDesiredWorkloadCertificates()); + } + if (((bitField0_ & 0x00200000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(62, getDesiredWorkloadAltsConfig()); + } + if (((bitField0_ & 0x08000000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(63, getDesiredAuthenticatorGroupsConfig()); + } + if (((bitField0_ & 0x10000000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(64, getDesiredLoggingConfig()); + } + if (((bitField0_ & 0x20000000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(65, getDesiredMonitoringConfig()); + } + if (((bitField0_ & 0x40000000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(66, getDesiredIdentityServiceConfig()); + } + if (((bitField0_ & 0x00100000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(67, getDesiredMeshCertificates()); + } + if (((bitField0_ & 0x80000000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(71, desiredEnablePrivateEndpoint_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desiredMasterVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, desiredMasterVersion_); + } + if (((bitField0_ & 0x00010000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(109, getDesiredGcfsConfig()); + } + if (((bitField1_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(110, getDesiredNodePoolAutoConfigNetworkTags()); + } + if (((bitField1_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(112, getDesiredProtectConfig()); + } + if (((bitField1_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(114, getDesiredGatewayApiConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(115, etag_); + } + if (((bitField1_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(116, getDesiredNodePoolLoggingConfig()); + } + if (((bitField1_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(117, getDesiredFleet()); + } + if (desiredStackType_ != com.google.container.v1beta1.StackType.STACK_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(119, desiredStackType_); + } + if (((bitField1_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(120, getAdditionalPodRangesConfig()); + } + if (((bitField1_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(121, getRemovedAdditionalPodRangesConfig()); + } + if (((bitField1_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(122, getEnableK8SBetaApis()); + } + if (((bitField1_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(124, getDesiredSecurityPostureConfig()); + } + if (((bitField1_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(125, getDesiredNetworkPerformanceConfig()); + } + if (((bitField1_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(126, desiredEnableFqdnNetworkPolicy_); + } + if (((bitField1_ & 0x00000800) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(128, getDesiredAutopilotWorkloadPolicyConfig()); + } + if (((bitField1_ & 0x00001000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(131, getDesiredK8SBetaApis()); + } + if (((bitField1_ & 0x00002000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(132, getDesiredHostMaintenancePolicy()); + } + if (((bitField1_ & 0x00004000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(136, getDesiredNodePoolAutoConfigResourceManagerTags()); + } + if (((bitField1_ & 0x00008000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(137, desiredInTransitEncryptionConfig_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (hasDesiredL4IlbSubsettingConfig() != other.hasDesiredL4IlbSubsettingConfig()) return false; + if (hasDesiredL4IlbSubsettingConfig()) { + if (!getDesiredL4IlbSubsettingConfig() + .equals(other.getDesiredL4IlbSubsettingConfig())) return false; + } + if (desiredDatapathProvider_ != other.desiredDatapathProvider_) return false; + if (desiredPrivateIpv6GoogleAccess_ != other.desiredPrivateIpv6GoogleAccess_) return false; + if (hasDesiredNotificationConfig() != other.hasDesiredNotificationConfig()) return false; + if (hasDesiredNotificationConfig()) { + if (!getDesiredNotificationConfig() + .equals(other.getDesiredNotificationConfig())) return false; + } + if (!getDesiredMasterVersion() + .equals(other.getDesiredMasterVersion())) return false; + if (hasDesiredGcfsConfig() != other.hasDesiredGcfsConfig()) return false; + if (hasDesiredGcfsConfig()) { + if (!getDesiredGcfsConfig() + .equals(other.getDesiredGcfsConfig())) return false; + } + if (hasDesiredDatabaseEncryption() != other.hasDesiredDatabaseEncryption()) return false; + if (hasDesiredDatabaseEncryption()) { + if (!getDesiredDatabaseEncryption() + .equals(other.getDesiredDatabaseEncryption())) return false; + } + if (hasDesiredWorkloadIdentityConfig() != other.hasDesiredWorkloadIdentityConfig()) return false; + if (hasDesiredWorkloadIdentityConfig()) { + if (!getDesiredWorkloadIdentityConfig() + .equals(other.getDesiredWorkloadIdentityConfig())) return false; + } + if (hasDesiredWorkloadCertificates() != other.hasDesiredWorkloadCertificates()) return false; + if (hasDesiredWorkloadCertificates()) { + if (!getDesiredWorkloadCertificates() + .equals(other.getDesiredWorkloadCertificates())) return false; + } + if (hasDesiredMeshCertificates() != other.hasDesiredMeshCertificates()) return false; + if (hasDesiredMeshCertificates()) { + if (!getDesiredMeshCertificates() + .equals(other.getDesiredMeshCertificates())) return false; + } + if (hasDesiredWorkloadAltsConfig() != other.hasDesiredWorkloadAltsConfig()) return false; + if (hasDesiredWorkloadAltsConfig()) { + if (!getDesiredWorkloadAltsConfig() + .equals(other.getDesiredWorkloadAltsConfig())) return false; + } + if (hasDesiredShieldedNodes() != other.hasDesiredShieldedNodes()) return false; + if (hasDesiredShieldedNodes()) { + if (!getDesiredShieldedNodes() + .equals(other.getDesiredShieldedNodes())) return false; + } + if (hasDesiredCostManagementConfig() != other.hasDesiredCostManagementConfig()) return false; + if (hasDesiredCostManagementConfig()) { + if (!getDesiredCostManagementConfig() + .equals(other.getDesiredCostManagementConfig())) return false; + } + if (hasDesiredMaster() != other.hasDesiredMaster()) return false; + if (hasDesiredMaster()) { + if (!getDesiredMaster() + .equals(other.getDesiredMaster())) return false; + } + if (hasDesiredDnsConfig() != other.hasDesiredDnsConfig()) return false; + if (hasDesiredDnsConfig()) { + if (!getDesiredDnsConfig() + .equals(other.getDesiredDnsConfig())) return false; + } + if (hasDesiredServiceExternalIpsConfig() != other.hasDesiredServiceExternalIpsConfig()) return false; + if (hasDesiredServiceExternalIpsConfig()) { + if (!getDesiredServiceExternalIpsConfig() + .equals(other.getDesiredServiceExternalIpsConfig())) return false; + } + if (hasDesiredAuthenticatorGroupsConfig() != other.hasDesiredAuthenticatorGroupsConfig()) return false; + if (hasDesiredAuthenticatorGroupsConfig()) { + if (!getDesiredAuthenticatorGroupsConfig() + .equals(other.getDesiredAuthenticatorGroupsConfig())) return false; + } + if (hasDesiredLoggingConfig() != other.hasDesiredLoggingConfig()) return false; + if (hasDesiredLoggingConfig()) { + if (!getDesiredLoggingConfig() + .equals(other.getDesiredLoggingConfig())) return false; + } + if (hasDesiredMonitoringConfig() != other.hasDesiredMonitoringConfig()) return false; + if (hasDesiredMonitoringConfig()) { + if (!getDesiredMonitoringConfig() + .equals(other.getDesiredMonitoringConfig())) return false; + } + if (hasDesiredIdentityServiceConfig() != other.hasDesiredIdentityServiceConfig()) return false; + if (hasDesiredIdentityServiceConfig()) { + if (!getDesiredIdentityServiceConfig() + .equals(other.getDesiredIdentityServiceConfig())) return false; + } + if (hasDesiredEnablePrivateEndpoint() != other.hasDesiredEnablePrivateEndpoint()) return false; + if (hasDesiredEnablePrivateEndpoint()) { + if (getDesiredEnablePrivateEndpoint() + != other.getDesiredEnablePrivateEndpoint()) return false; + } + if (hasDesiredNodePoolAutoConfigNetworkTags() != other.hasDesiredNodePoolAutoConfigNetworkTags()) return false; + if (hasDesiredNodePoolAutoConfigNetworkTags()) { + if (!getDesiredNodePoolAutoConfigNetworkTags() + .equals(other.getDesiredNodePoolAutoConfigNetworkTags())) return false; + } + if (hasDesiredProtectConfig() != other.hasDesiredProtectConfig()) return false; + if (hasDesiredProtectConfig()) { + if (!getDesiredProtectConfig() + .equals(other.getDesiredProtectConfig())) return false; + } + if (hasDesiredGatewayApiConfig() != other.hasDesiredGatewayApiConfig()) return false; + if (hasDesiredGatewayApiConfig()) { + if (!getDesiredGatewayApiConfig() + .equals(other.getDesiredGatewayApiConfig())) return false; + } + if (!getEtag() + .equals(other.getEtag())) return false; + if (hasDesiredNodePoolLoggingConfig() != other.hasDesiredNodePoolLoggingConfig()) return false; + if (hasDesiredNodePoolLoggingConfig()) { + if (!getDesiredNodePoolLoggingConfig() + .equals(other.getDesiredNodePoolLoggingConfig())) return false; + } + if (hasDesiredFleet() != other.hasDesiredFleet()) return false; + if (hasDesiredFleet()) { + if (!getDesiredFleet() + .equals(other.getDesiredFleet())) return false; + } + if (desiredStackType_ != other.desiredStackType_) return false; + if (hasAdditionalPodRangesConfig() != other.hasAdditionalPodRangesConfig()) return false; + if (hasAdditionalPodRangesConfig()) { + if (!getAdditionalPodRangesConfig() + .equals(other.getAdditionalPodRangesConfig())) return false; + } + if (hasRemovedAdditionalPodRangesConfig() != other.hasRemovedAdditionalPodRangesConfig()) return false; + if (hasRemovedAdditionalPodRangesConfig()) { + if (!getRemovedAdditionalPodRangesConfig() + .equals(other.getRemovedAdditionalPodRangesConfig())) return false; + } + if (hasEnableK8SBetaApis() != other.hasEnableK8SBetaApis()) return false; + if (hasEnableK8SBetaApis()) { + if (!getEnableK8SBetaApis() + .equals(other.getEnableK8SBetaApis())) return false; + } + if (hasDesiredSecurityPostureConfig() != other.hasDesiredSecurityPostureConfig()) return false; + if (hasDesiredSecurityPostureConfig()) { + if (!getDesiredSecurityPostureConfig() + .equals(other.getDesiredSecurityPostureConfig())) return false; + } + if (hasDesiredNetworkPerformanceConfig() != other.hasDesiredNetworkPerformanceConfig()) return false; + if (hasDesiredNetworkPerformanceConfig()) { + if (!getDesiredNetworkPerformanceConfig() + .equals(other.getDesiredNetworkPerformanceConfig())) return false; + } + if (hasDesiredEnableFqdnNetworkPolicy() != other.hasDesiredEnableFqdnNetworkPolicy()) return false; + if (hasDesiredEnableFqdnNetworkPolicy()) { + if (getDesiredEnableFqdnNetworkPolicy() + != other.getDesiredEnableFqdnNetworkPolicy()) return false; + } + if (hasDesiredAutopilotWorkloadPolicyConfig() != other.hasDesiredAutopilotWorkloadPolicyConfig()) return false; + if (hasDesiredAutopilotWorkloadPolicyConfig()) { + if (!getDesiredAutopilotWorkloadPolicyConfig() + .equals(other.getDesiredAutopilotWorkloadPolicyConfig())) return false; + } + if (hasDesiredK8SBetaApis() != other.hasDesiredK8SBetaApis()) return false; + if (hasDesiredK8SBetaApis()) { + if (!getDesiredK8SBetaApis() + .equals(other.getDesiredK8SBetaApis())) return false; + } + if (hasDesiredHostMaintenancePolicy() != other.hasDesiredHostMaintenancePolicy()) return false; + if (hasDesiredHostMaintenancePolicy()) { + if (!getDesiredHostMaintenancePolicy() + .equals(other.getDesiredHostMaintenancePolicy())) return false; + } + if (hasDesiredNodePoolAutoConfigResourceManagerTags() != other.hasDesiredNodePoolAutoConfigResourceManagerTags()) return false; + if (hasDesiredNodePoolAutoConfigResourceManagerTags()) { + if (!getDesiredNodePoolAutoConfigResourceManagerTags() + .equals(other.getDesiredNodePoolAutoConfigResourceManagerTags())) return false; + } + if (hasDesiredInTransitEncryptionConfig() != other.hasDesiredInTransitEncryptionConfig()) return false; + if (hasDesiredInTransitEncryptionConfig()) { + if (desiredInTransitEncryptionConfig_ != other.desiredInTransitEncryptionConfig_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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(); + } + if (hasDesiredL4IlbSubsettingConfig()) { + hash = (37 * hash) + DESIRED_L4ILB_SUBSETTING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredL4IlbSubsettingConfig().hashCode(); + } + hash = (37 * hash) + DESIRED_DATAPATH_PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + desiredDatapathProvider_; + hash = (37 * hash) + DESIRED_PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER; + hash = (53 * hash) + desiredPrivateIpv6GoogleAccess_; + if (hasDesiredNotificationConfig()) { + hash = (37 * hash) + DESIRED_NOTIFICATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredNotificationConfig().hashCode(); + } + hash = (37 * hash) + DESIRED_MASTER_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getDesiredMasterVersion().hashCode(); + if (hasDesiredGcfsConfig()) { + hash = (37 * hash) + DESIRED_GCFS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredGcfsConfig().hashCode(); + } + if (hasDesiredDatabaseEncryption()) { + hash = (37 * hash) + DESIRED_DATABASE_ENCRYPTION_FIELD_NUMBER; + hash = (53 * hash) + getDesiredDatabaseEncryption().hashCode(); + } + if (hasDesiredWorkloadIdentityConfig()) { + hash = (37 * hash) + DESIRED_WORKLOAD_IDENTITY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredWorkloadIdentityConfig().hashCode(); + } + if (hasDesiredWorkloadCertificates()) { + hash = (37 * hash) + DESIRED_WORKLOAD_CERTIFICATES_FIELD_NUMBER; + hash = (53 * hash) + getDesiredWorkloadCertificates().hashCode(); + } + if (hasDesiredMeshCertificates()) { + hash = (37 * hash) + DESIRED_MESH_CERTIFICATES_FIELD_NUMBER; + hash = (53 * hash) + getDesiredMeshCertificates().hashCode(); + } + if (hasDesiredWorkloadAltsConfig()) { + hash = (37 * hash) + DESIRED_WORKLOAD_ALTS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredWorkloadAltsConfig().hashCode(); + } + if (hasDesiredShieldedNodes()) { + hash = (37 * hash) + DESIRED_SHIELDED_NODES_FIELD_NUMBER; + hash = (53 * hash) + getDesiredShieldedNodes().hashCode(); + } + if (hasDesiredCostManagementConfig()) { + hash = (37 * hash) + DESIRED_COST_MANAGEMENT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredCostManagementConfig().hashCode(); + } + if (hasDesiredMaster()) { + hash = (37 * hash) + DESIRED_MASTER_FIELD_NUMBER; + hash = (53 * hash) + getDesiredMaster().hashCode(); + } + if (hasDesiredDnsConfig()) { + hash = (37 * hash) + DESIRED_DNS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredDnsConfig().hashCode(); + } + if (hasDesiredServiceExternalIpsConfig()) { + hash = (37 * hash) + DESIRED_SERVICE_EXTERNAL_IPS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredServiceExternalIpsConfig().hashCode(); + } + if (hasDesiredAuthenticatorGroupsConfig()) { + hash = (37 * hash) + DESIRED_AUTHENTICATOR_GROUPS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredAuthenticatorGroupsConfig().hashCode(); + } + if (hasDesiredLoggingConfig()) { + hash = (37 * hash) + DESIRED_LOGGING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredLoggingConfig().hashCode(); + } + if (hasDesiredMonitoringConfig()) { + hash = (37 * hash) + DESIRED_MONITORING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredMonitoringConfig().hashCode(); + } + if (hasDesiredIdentityServiceConfig()) { + hash = (37 * hash) + DESIRED_IDENTITY_SERVICE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredIdentityServiceConfig().hashCode(); + } + if (hasDesiredEnablePrivateEndpoint()) { + hash = (37 * hash) + DESIRED_ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDesiredEnablePrivateEndpoint()); + } + if (hasDesiredNodePoolAutoConfigNetworkTags()) { + hash = (37 * hash) + DESIRED_NODE_POOL_AUTO_CONFIG_NETWORK_TAGS_FIELD_NUMBER; + hash = (53 * hash) + getDesiredNodePoolAutoConfigNetworkTags().hashCode(); + } + if (hasDesiredProtectConfig()) { + hash = (37 * hash) + DESIRED_PROTECT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredProtectConfig().hashCode(); + } + if (hasDesiredGatewayApiConfig()) { + hash = (37 * hash) + DESIRED_GATEWAY_API_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredGatewayApiConfig().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + if (hasDesiredNodePoolLoggingConfig()) { + hash = (37 * hash) + DESIRED_NODE_POOL_LOGGING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredNodePoolLoggingConfig().hashCode(); + } + if (hasDesiredFleet()) { + hash = (37 * hash) + DESIRED_FLEET_FIELD_NUMBER; + hash = (53 * hash) + getDesiredFleet().hashCode(); + } + hash = (37 * hash) + DESIRED_STACK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + desiredStackType_; + if (hasAdditionalPodRangesConfig()) { + hash = (37 * hash) + ADDITIONAL_POD_RANGES_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalPodRangesConfig().hashCode(); + } + if (hasRemovedAdditionalPodRangesConfig()) { + hash = (37 * hash) + REMOVED_ADDITIONAL_POD_RANGES_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRemovedAdditionalPodRangesConfig().hashCode(); + } + if (hasEnableK8SBetaApis()) { + hash = (37 * hash) + ENABLE_K8S_BETA_APIS_FIELD_NUMBER; + hash = (53 * hash) + getEnableK8SBetaApis().hashCode(); + } + if (hasDesiredSecurityPostureConfig()) { + hash = (37 * hash) + DESIRED_SECURITY_POSTURE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredSecurityPostureConfig().hashCode(); + } + if (hasDesiredNetworkPerformanceConfig()) { + hash = (37 * hash) + DESIRED_NETWORK_PERFORMANCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredNetworkPerformanceConfig().hashCode(); + } + if (hasDesiredEnableFqdnNetworkPolicy()) { + hash = (37 * hash) + DESIRED_ENABLE_FQDN_NETWORK_POLICY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDesiredEnableFqdnNetworkPolicy()); + } + if (hasDesiredAutopilotWorkloadPolicyConfig()) { + hash = (37 * hash) + DESIRED_AUTOPILOT_WORKLOAD_POLICY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredAutopilotWorkloadPolicyConfig().hashCode(); + } + if (hasDesiredK8SBetaApis()) { + hash = (37 * hash) + DESIRED_K8S_BETA_APIS_FIELD_NUMBER; + hash = (53 * hash) + getDesiredK8SBetaApis().hashCode(); + } + if (hasDesiredHostMaintenancePolicy()) { + hash = (37 * hash) + DESIRED_HOST_MAINTENANCE_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getDesiredHostMaintenancePolicy().hashCode(); + } + if (hasDesiredNodePoolAutoConfigResourceManagerTags()) { + hash = (37 * hash) + DESIRED_NODE_POOL_AUTO_CONFIG_RESOURCE_MANAGER_TAGS_FIELD_NUMBER; + hash = (53 * hash) + getDesiredNodePoolAutoConfigResourceManagerTags().hashCode(); + } + if (hasDesiredInTransitEncryptionConfig()) { + hash = (37 * hash) + DESIRED_IN_TRANSIT_ENCRYPTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + desiredInTransitEncryptionConfig_; + } + hash = (29 * hash) + getUnknownFields().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) { + getDesiredAddonsConfigFieldBuilder(); + getDesiredNodePoolAutoscalingFieldBuilder(); + getDesiredMasterAuthorizedNetworksConfigFieldBuilder(); + getDesiredPodSecurityPolicyConfigFieldBuilder(); + getDesiredClusterAutoscalingFieldBuilder(); + getDesiredBinaryAuthorizationFieldBuilder(); + getDesiredResourceUsageExportConfigFieldBuilder(); + getDesiredVerticalPodAutoscalingFieldBuilder(); + getDesiredPrivateClusterConfigFieldBuilder(); + getDesiredIntraNodeVisibilityConfigFieldBuilder(); + getDesiredDefaultSnatStatusFieldBuilder(); + getDesiredClusterTelemetryFieldBuilder(); + getDesiredReleaseChannelFieldBuilder(); + getDesiredTpuConfigFieldBuilder(); + getDesiredL4IlbSubsettingConfigFieldBuilder(); + getDesiredNotificationConfigFieldBuilder(); + getDesiredGcfsConfigFieldBuilder(); + getDesiredDatabaseEncryptionFieldBuilder(); + getDesiredWorkloadIdentityConfigFieldBuilder(); + getDesiredWorkloadCertificatesFieldBuilder(); + getDesiredMeshCertificatesFieldBuilder(); + getDesiredWorkloadAltsConfigFieldBuilder(); + getDesiredShieldedNodesFieldBuilder(); + getDesiredCostManagementConfigFieldBuilder(); + getDesiredMasterFieldBuilder(); + getDesiredDnsConfigFieldBuilder(); + getDesiredServiceExternalIpsConfigFieldBuilder(); + getDesiredAuthenticatorGroupsConfigFieldBuilder(); + getDesiredLoggingConfigFieldBuilder(); + getDesiredMonitoringConfigFieldBuilder(); + getDesiredIdentityServiceConfigFieldBuilder(); + getDesiredNodePoolAutoConfigNetworkTagsFieldBuilder(); + getDesiredProtectConfigFieldBuilder(); + getDesiredGatewayApiConfigFieldBuilder(); + getDesiredNodePoolLoggingConfigFieldBuilder(); + getDesiredFleetFieldBuilder(); + getAdditionalPodRangesConfigFieldBuilder(); + getRemovedAdditionalPodRangesConfigFieldBuilder(); + getEnableK8SBetaApisFieldBuilder(); + getDesiredSecurityPostureConfigFieldBuilder(); + getDesiredNetworkPerformanceConfigFieldBuilder(); + getDesiredAutopilotWorkloadPolicyConfigFieldBuilder(); + getDesiredK8SBetaApisFieldBuilder(); + getDesiredHostMaintenancePolicyFieldBuilder(); + getDesiredNodePoolAutoConfigResourceManagerTagsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bitField1_ = 0; + desiredNodeVersion_ = ""; + desiredMonitoringService_ = ""; + desiredAddonsConfig_ = null; + if (desiredAddonsConfigBuilder_ != null) { + desiredAddonsConfigBuilder_.dispose(); + desiredAddonsConfigBuilder_ = null; + } + desiredNodePoolId_ = ""; + desiredImageType_ = ""; + desiredNodePoolAutoscaling_ = null; + if (desiredNodePoolAutoscalingBuilder_ != null) { + desiredNodePoolAutoscalingBuilder_.dispose(); + desiredNodePoolAutoscalingBuilder_ = null; + } + desiredLocations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + desiredMasterAuthorizedNetworksConfig_ = null; + if (desiredMasterAuthorizedNetworksConfigBuilder_ != null) { + desiredMasterAuthorizedNetworksConfigBuilder_.dispose(); + desiredMasterAuthorizedNetworksConfigBuilder_ = null; + } + desiredPodSecurityPolicyConfig_ = null; + if (desiredPodSecurityPolicyConfigBuilder_ != null) { + desiredPodSecurityPolicyConfigBuilder_.dispose(); + desiredPodSecurityPolicyConfigBuilder_ = null; + } + desiredClusterAutoscaling_ = null; + if (desiredClusterAutoscalingBuilder_ != null) { + desiredClusterAutoscalingBuilder_.dispose(); + desiredClusterAutoscalingBuilder_ = null; + } + desiredBinaryAuthorization_ = null; + if (desiredBinaryAuthorizationBuilder_ != null) { + desiredBinaryAuthorizationBuilder_.dispose(); + desiredBinaryAuthorizationBuilder_ = null; + } + desiredLoggingService_ = ""; + desiredResourceUsageExportConfig_ = null; + if (desiredResourceUsageExportConfigBuilder_ != null) { + desiredResourceUsageExportConfigBuilder_.dispose(); + desiredResourceUsageExportConfigBuilder_ = null; + } + desiredVerticalPodAutoscaling_ = null; + if (desiredVerticalPodAutoscalingBuilder_ != null) { + desiredVerticalPodAutoscalingBuilder_.dispose(); + desiredVerticalPodAutoscalingBuilder_ = null; + } + desiredPrivateClusterConfig_ = null; + if (desiredPrivateClusterConfigBuilder_ != null) { + desiredPrivateClusterConfigBuilder_.dispose(); + desiredPrivateClusterConfigBuilder_ = null; + } + desiredIntraNodeVisibilityConfig_ = null; + if (desiredIntraNodeVisibilityConfigBuilder_ != null) { + desiredIntraNodeVisibilityConfigBuilder_.dispose(); + desiredIntraNodeVisibilityConfigBuilder_ = null; + } + desiredDefaultSnatStatus_ = null; + if (desiredDefaultSnatStatusBuilder_ != null) { + desiredDefaultSnatStatusBuilder_.dispose(); + desiredDefaultSnatStatusBuilder_ = null; + } + desiredClusterTelemetry_ = null; + if (desiredClusterTelemetryBuilder_ != null) { + desiredClusterTelemetryBuilder_.dispose(); + desiredClusterTelemetryBuilder_ = null; + } + desiredReleaseChannel_ = null; + if (desiredReleaseChannelBuilder_ != null) { + desiredReleaseChannelBuilder_.dispose(); + desiredReleaseChannelBuilder_ = null; + } + desiredTpuConfig_ = null; + if (desiredTpuConfigBuilder_ != null) { + desiredTpuConfigBuilder_.dispose(); + desiredTpuConfigBuilder_ = null; + } + desiredL4IlbSubsettingConfig_ = null; + if (desiredL4IlbSubsettingConfigBuilder_ != null) { + desiredL4IlbSubsettingConfigBuilder_.dispose(); + desiredL4IlbSubsettingConfigBuilder_ = null; + } + desiredDatapathProvider_ = 0; + desiredPrivateIpv6GoogleAccess_ = 0; + desiredNotificationConfig_ = null; + if (desiredNotificationConfigBuilder_ != null) { + desiredNotificationConfigBuilder_.dispose(); + desiredNotificationConfigBuilder_ = null; + } + desiredMasterVersion_ = ""; + desiredGcfsConfig_ = null; + if (desiredGcfsConfigBuilder_ != null) { + desiredGcfsConfigBuilder_.dispose(); + desiredGcfsConfigBuilder_ = null; + } + desiredDatabaseEncryption_ = null; + if (desiredDatabaseEncryptionBuilder_ != null) { + desiredDatabaseEncryptionBuilder_.dispose(); + desiredDatabaseEncryptionBuilder_ = null; + } + desiredWorkloadIdentityConfig_ = null; + if (desiredWorkloadIdentityConfigBuilder_ != null) { + desiredWorkloadIdentityConfigBuilder_.dispose(); + desiredWorkloadIdentityConfigBuilder_ = null; + } + desiredWorkloadCertificates_ = null; + if (desiredWorkloadCertificatesBuilder_ != null) { + desiredWorkloadCertificatesBuilder_.dispose(); + desiredWorkloadCertificatesBuilder_ = null; + } + desiredMeshCertificates_ = null; + if (desiredMeshCertificatesBuilder_ != null) { + desiredMeshCertificatesBuilder_.dispose(); + desiredMeshCertificatesBuilder_ = null; + } + desiredWorkloadAltsConfig_ = null; + if (desiredWorkloadAltsConfigBuilder_ != null) { + desiredWorkloadAltsConfigBuilder_.dispose(); + desiredWorkloadAltsConfigBuilder_ = null; + } + desiredShieldedNodes_ = null; + if (desiredShieldedNodesBuilder_ != null) { + desiredShieldedNodesBuilder_.dispose(); + desiredShieldedNodesBuilder_ = null; + } + desiredCostManagementConfig_ = null; + if (desiredCostManagementConfigBuilder_ != null) { + desiredCostManagementConfigBuilder_.dispose(); + desiredCostManagementConfigBuilder_ = null; + } + desiredMaster_ = null; + if (desiredMasterBuilder_ != null) { + desiredMasterBuilder_.dispose(); + desiredMasterBuilder_ = null; + } + desiredDnsConfig_ = null; + if (desiredDnsConfigBuilder_ != null) { + desiredDnsConfigBuilder_.dispose(); + desiredDnsConfigBuilder_ = null; + } + desiredServiceExternalIpsConfig_ = null; + if (desiredServiceExternalIpsConfigBuilder_ != null) { + desiredServiceExternalIpsConfigBuilder_.dispose(); + desiredServiceExternalIpsConfigBuilder_ = null; + } + desiredAuthenticatorGroupsConfig_ = null; + if (desiredAuthenticatorGroupsConfigBuilder_ != null) { + desiredAuthenticatorGroupsConfigBuilder_.dispose(); + desiredAuthenticatorGroupsConfigBuilder_ = null; + } + desiredLoggingConfig_ = null; + if (desiredLoggingConfigBuilder_ != null) { + desiredLoggingConfigBuilder_.dispose(); + desiredLoggingConfigBuilder_ = null; + } + desiredMonitoringConfig_ = null; + if (desiredMonitoringConfigBuilder_ != null) { + desiredMonitoringConfigBuilder_.dispose(); + desiredMonitoringConfigBuilder_ = null; + } + desiredIdentityServiceConfig_ = null; + if (desiredIdentityServiceConfigBuilder_ != null) { + desiredIdentityServiceConfigBuilder_.dispose(); + desiredIdentityServiceConfigBuilder_ = null; + } + desiredEnablePrivateEndpoint_ = false; + desiredNodePoolAutoConfigNetworkTags_ = null; + if (desiredNodePoolAutoConfigNetworkTagsBuilder_ != null) { + desiredNodePoolAutoConfigNetworkTagsBuilder_.dispose(); + desiredNodePoolAutoConfigNetworkTagsBuilder_ = null; + } + desiredProtectConfig_ = null; + if (desiredProtectConfigBuilder_ != null) { + desiredProtectConfigBuilder_.dispose(); + desiredProtectConfigBuilder_ = null; + } + desiredGatewayApiConfig_ = null; + if (desiredGatewayApiConfigBuilder_ != null) { + desiredGatewayApiConfigBuilder_.dispose(); + desiredGatewayApiConfigBuilder_ = null; + } + etag_ = ""; + desiredNodePoolLoggingConfig_ = null; + if (desiredNodePoolLoggingConfigBuilder_ != null) { + desiredNodePoolLoggingConfigBuilder_.dispose(); + desiredNodePoolLoggingConfigBuilder_ = null; + } + desiredFleet_ = null; + if (desiredFleetBuilder_ != null) { + desiredFleetBuilder_.dispose(); + desiredFleetBuilder_ = null; + } + desiredStackType_ = 0; + additionalPodRangesConfig_ = null; + if (additionalPodRangesConfigBuilder_ != null) { + additionalPodRangesConfigBuilder_.dispose(); + additionalPodRangesConfigBuilder_ = null; + } + removedAdditionalPodRangesConfig_ = null; + if (removedAdditionalPodRangesConfigBuilder_ != null) { + removedAdditionalPodRangesConfigBuilder_.dispose(); + removedAdditionalPodRangesConfigBuilder_ = null; + } + enableK8SBetaApis_ = null; + if (enableK8SBetaApisBuilder_ != null) { + enableK8SBetaApisBuilder_.dispose(); + enableK8SBetaApisBuilder_ = null; + } + desiredSecurityPostureConfig_ = null; + if (desiredSecurityPostureConfigBuilder_ != null) { + desiredSecurityPostureConfigBuilder_.dispose(); + desiredSecurityPostureConfigBuilder_ = null; + } + desiredNetworkPerformanceConfig_ = null; + if (desiredNetworkPerformanceConfigBuilder_ != null) { + desiredNetworkPerformanceConfigBuilder_.dispose(); + desiredNetworkPerformanceConfigBuilder_ = null; + } + desiredEnableFqdnNetworkPolicy_ = false; + desiredAutopilotWorkloadPolicyConfig_ = null; + if (desiredAutopilotWorkloadPolicyConfigBuilder_ != null) { + desiredAutopilotWorkloadPolicyConfigBuilder_.dispose(); + desiredAutopilotWorkloadPolicyConfigBuilder_ = null; + } + desiredK8SBetaApis_ = null; + if (desiredK8SBetaApisBuilder_ != null) { + desiredK8SBetaApisBuilder_.dispose(); + desiredK8SBetaApisBuilder_ = null; + } + desiredHostMaintenancePolicy_ = null; + if (desiredHostMaintenancePolicyBuilder_ != null) { + desiredHostMaintenancePolicyBuilder_.dispose(); + desiredHostMaintenancePolicyBuilder_ = null; + } + desiredNodePoolAutoConfigResourceManagerTags_ = null; + if (desiredNodePoolAutoConfigResourceManagerTagsBuilder_ != null) { + desiredNodePoolAutoConfigResourceManagerTagsBuilder_.dispose(); + desiredNodePoolAutoConfigResourceManagerTagsBuilder_ = null; + } + desiredInTransitEncryptionConfig_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + if (bitField1_ != 0) { buildPartial1(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.ClusterUpdate result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.desiredNodeVersion_ = desiredNodeVersion_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.desiredMonitoringService_ = desiredMonitoringService_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.desiredAddonsConfig_ = desiredAddonsConfigBuilder_ == null + ? desiredAddonsConfig_ + : desiredAddonsConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.desiredNodePoolId_ = desiredNodePoolId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.desiredImageType_ = desiredImageType_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.desiredNodePoolAutoscaling_ = desiredNodePoolAutoscalingBuilder_ == null + ? desiredNodePoolAutoscaling_ + : desiredNodePoolAutoscalingBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + desiredLocations_.makeImmutable(); + result.desiredLocations_ = desiredLocations_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.desiredMasterAuthorizedNetworksConfig_ = desiredMasterAuthorizedNetworksConfigBuilder_ == null + ? desiredMasterAuthorizedNetworksConfig_ + : desiredMasterAuthorizedNetworksConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.desiredPodSecurityPolicyConfig_ = desiredPodSecurityPolicyConfigBuilder_ == null + ? desiredPodSecurityPolicyConfig_ + : desiredPodSecurityPolicyConfigBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.desiredClusterAutoscaling_ = desiredClusterAutoscalingBuilder_ == null + ? desiredClusterAutoscaling_ + : desiredClusterAutoscalingBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.desiredBinaryAuthorization_ = desiredBinaryAuthorizationBuilder_ == null + ? desiredBinaryAuthorization_ + : desiredBinaryAuthorizationBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.desiredLoggingService_ = desiredLoggingService_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.desiredResourceUsageExportConfig_ = desiredResourceUsageExportConfigBuilder_ == null + ? desiredResourceUsageExportConfig_ + : desiredResourceUsageExportConfigBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.desiredVerticalPodAutoscaling_ = desiredVerticalPodAutoscalingBuilder_ == null + ? desiredVerticalPodAutoscaling_ + : desiredVerticalPodAutoscalingBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.desiredPrivateClusterConfig_ = desiredPrivateClusterConfigBuilder_ == null + ? desiredPrivateClusterConfig_ + : desiredPrivateClusterConfigBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.desiredIntraNodeVisibilityConfig_ = desiredIntraNodeVisibilityConfigBuilder_ == null + ? desiredIntraNodeVisibilityConfig_ + : desiredIntraNodeVisibilityConfigBuilder_.build(); + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.desiredDefaultSnatStatus_ = desiredDefaultSnatStatusBuilder_ == null + ? desiredDefaultSnatStatus_ + : desiredDefaultSnatStatusBuilder_.build(); + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.desiredClusterTelemetry_ = desiredClusterTelemetryBuilder_ == null + ? desiredClusterTelemetry_ + : desiredClusterTelemetryBuilder_.build(); + to_bitField0_ |= 0x00000800; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.desiredReleaseChannel_ = desiredReleaseChannelBuilder_ == null + ? desiredReleaseChannel_ + : desiredReleaseChannelBuilder_.build(); + to_bitField0_ |= 0x00001000; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.desiredTpuConfig_ = desiredTpuConfigBuilder_ == null + ? desiredTpuConfig_ + : desiredTpuConfigBuilder_.build(); + to_bitField0_ |= 0x00002000; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.desiredL4IlbSubsettingConfig_ = desiredL4IlbSubsettingConfigBuilder_ == null + ? desiredL4IlbSubsettingConfig_ + : desiredL4IlbSubsettingConfigBuilder_.build(); + to_bitField0_ |= 0x00004000; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.desiredDatapathProvider_ = desiredDatapathProvider_; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.desiredPrivateIpv6GoogleAccess_ = desiredPrivateIpv6GoogleAccess_; + } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.desiredNotificationConfig_ = desiredNotificationConfigBuilder_ == null + ? desiredNotificationConfig_ + : desiredNotificationConfigBuilder_.build(); + to_bitField0_ |= 0x00008000; + } + if (((from_bitField0_ & 0x01000000) != 0)) { + result.desiredMasterVersion_ = desiredMasterVersion_; + } + if (((from_bitField0_ & 0x02000000) != 0)) { + result.desiredGcfsConfig_ = desiredGcfsConfigBuilder_ == null + ? desiredGcfsConfig_ + : desiredGcfsConfigBuilder_.build(); + to_bitField0_ |= 0x00010000; + } + if (((from_bitField0_ & 0x04000000) != 0)) { + result.desiredDatabaseEncryption_ = desiredDatabaseEncryptionBuilder_ == null + ? desiredDatabaseEncryption_ + : desiredDatabaseEncryptionBuilder_.build(); + to_bitField0_ |= 0x00020000; + } + if (((from_bitField0_ & 0x08000000) != 0)) { + result.desiredWorkloadIdentityConfig_ = desiredWorkloadIdentityConfigBuilder_ == null + ? desiredWorkloadIdentityConfig_ + : desiredWorkloadIdentityConfigBuilder_.build(); + to_bitField0_ |= 0x00040000; + } + if (((from_bitField0_ & 0x10000000) != 0)) { + result.desiredWorkloadCertificates_ = desiredWorkloadCertificatesBuilder_ == null + ? desiredWorkloadCertificates_ + : desiredWorkloadCertificatesBuilder_.build(); + to_bitField0_ |= 0x00080000; + } + if (((from_bitField0_ & 0x20000000) != 0)) { + result.desiredMeshCertificates_ = desiredMeshCertificatesBuilder_ == null + ? desiredMeshCertificates_ + : desiredMeshCertificatesBuilder_.build(); + to_bitField0_ |= 0x00100000; + } + if (((from_bitField0_ & 0x40000000) != 0)) { + result.desiredWorkloadAltsConfig_ = desiredWorkloadAltsConfigBuilder_ == null + ? desiredWorkloadAltsConfig_ + : desiredWorkloadAltsConfigBuilder_.build(); + to_bitField0_ |= 0x00200000; + } + if (((from_bitField0_ & 0x80000000) != 0)) { + result.desiredShieldedNodes_ = desiredShieldedNodesBuilder_ == null + ? desiredShieldedNodes_ + : desiredShieldedNodesBuilder_.build(); + to_bitField0_ |= 0x00400000; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartial1(com.google.container.v1beta1.ClusterUpdate result) { + int from_bitField1_ = bitField1_; + int to_bitField0_ = 0; + if (((from_bitField1_ & 0x00000001) != 0)) { + result.desiredCostManagementConfig_ = desiredCostManagementConfigBuilder_ == null + ? desiredCostManagementConfig_ + : desiredCostManagementConfigBuilder_.build(); + to_bitField0_ |= 0x00800000; + } + if (((from_bitField1_ & 0x00000002) != 0)) { + result.desiredMaster_ = desiredMasterBuilder_ == null + ? desiredMaster_ + : desiredMasterBuilder_.build(); + to_bitField0_ |= 0x01000000; + } + if (((from_bitField1_ & 0x00000004) != 0)) { + result.desiredDnsConfig_ = desiredDnsConfigBuilder_ == null + ? desiredDnsConfig_ + : desiredDnsConfigBuilder_.build(); + to_bitField0_ |= 0x02000000; + } + if (((from_bitField1_ & 0x00000008) != 0)) { + result.desiredServiceExternalIpsConfig_ = desiredServiceExternalIpsConfigBuilder_ == null + ? desiredServiceExternalIpsConfig_ + : desiredServiceExternalIpsConfigBuilder_.build(); + to_bitField0_ |= 0x04000000; + } + if (((from_bitField1_ & 0x00000010) != 0)) { + result.desiredAuthenticatorGroupsConfig_ = desiredAuthenticatorGroupsConfigBuilder_ == null + ? desiredAuthenticatorGroupsConfig_ + : desiredAuthenticatorGroupsConfigBuilder_.build(); + to_bitField0_ |= 0x08000000; + } + if (((from_bitField1_ & 0x00000020) != 0)) { + result.desiredLoggingConfig_ = desiredLoggingConfigBuilder_ == null + ? desiredLoggingConfig_ + : desiredLoggingConfigBuilder_.build(); + to_bitField0_ |= 0x10000000; + } + if (((from_bitField1_ & 0x00000040) != 0)) { + result.desiredMonitoringConfig_ = desiredMonitoringConfigBuilder_ == null + ? desiredMonitoringConfig_ + : desiredMonitoringConfigBuilder_.build(); + to_bitField0_ |= 0x20000000; + } + if (((from_bitField1_ & 0x00000080) != 0)) { + result.desiredIdentityServiceConfig_ = desiredIdentityServiceConfigBuilder_ == null + ? desiredIdentityServiceConfig_ + : desiredIdentityServiceConfigBuilder_.build(); + to_bitField0_ |= 0x40000000; + } + if (((from_bitField1_ & 0x00000100) != 0)) { + result.desiredEnablePrivateEndpoint_ = desiredEnablePrivateEndpoint_; + to_bitField0_ |= 0x80000000; + } + int to_bitField1_ = 0; + if (((from_bitField1_ & 0x00000200) != 0)) { + result.desiredNodePoolAutoConfigNetworkTags_ = desiredNodePoolAutoConfigNetworkTagsBuilder_ == null + ? desiredNodePoolAutoConfigNetworkTags_ + : desiredNodePoolAutoConfigNetworkTagsBuilder_.build(); + to_bitField1_ |= 0x00000001; + } + if (((from_bitField1_ & 0x00000400) != 0)) { + result.desiredProtectConfig_ = desiredProtectConfigBuilder_ == null + ? desiredProtectConfig_ + : desiredProtectConfigBuilder_.build(); + to_bitField1_ |= 0x00000002; + } + if (((from_bitField1_ & 0x00000800) != 0)) { + result.desiredGatewayApiConfig_ = desiredGatewayApiConfigBuilder_ == null + ? desiredGatewayApiConfig_ + : desiredGatewayApiConfigBuilder_.build(); + to_bitField1_ |= 0x00000004; + } + if (((from_bitField1_ & 0x00001000) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField1_ & 0x00002000) != 0)) { + result.desiredNodePoolLoggingConfig_ = desiredNodePoolLoggingConfigBuilder_ == null + ? desiredNodePoolLoggingConfig_ + : desiredNodePoolLoggingConfigBuilder_.build(); + to_bitField1_ |= 0x00000008; + } + if (((from_bitField1_ & 0x00004000) != 0)) { + result.desiredFleet_ = desiredFleetBuilder_ == null + ? desiredFleet_ + : desiredFleetBuilder_.build(); + to_bitField1_ |= 0x00000010; + } + if (((from_bitField1_ & 0x00008000) != 0)) { + result.desiredStackType_ = desiredStackType_; + } + if (((from_bitField1_ & 0x00010000) != 0)) { + result.additionalPodRangesConfig_ = additionalPodRangesConfigBuilder_ == null + ? additionalPodRangesConfig_ + : additionalPodRangesConfigBuilder_.build(); + to_bitField1_ |= 0x00000020; + } + if (((from_bitField1_ & 0x00020000) != 0)) { + result.removedAdditionalPodRangesConfig_ = removedAdditionalPodRangesConfigBuilder_ == null + ? removedAdditionalPodRangesConfig_ + : removedAdditionalPodRangesConfigBuilder_.build(); + to_bitField1_ |= 0x00000040; + } + if (((from_bitField1_ & 0x00040000) != 0)) { + result.enableK8SBetaApis_ = enableK8SBetaApisBuilder_ == null + ? enableK8SBetaApis_ + : enableK8SBetaApisBuilder_.build(); + to_bitField1_ |= 0x00000080; + } + if (((from_bitField1_ & 0x00080000) != 0)) { + result.desiredSecurityPostureConfig_ = desiredSecurityPostureConfigBuilder_ == null + ? desiredSecurityPostureConfig_ + : desiredSecurityPostureConfigBuilder_.build(); + to_bitField1_ |= 0x00000100; + } + if (((from_bitField1_ & 0x00100000) != 0)) { + result.desiredNetworkPerformanceConfig_ = desiredNetworkPerformanceConfigBuilder_ == null + ? desiredNetworkPerformanceConfig_ + : desiredNetworkPerformanceConfigBuilder_.build(); + to_bitField1_ |= 0x00000200; + } + if (((from_bitField1_ & 0x00200000) != 0)) { + result.desiredEnableFqdnNetworkPolicy_ = desiredEnableFqdnNetworkPolicy_; + to_bitField1_ |= 0x00000400; + } + if (((from_bitField1_ & 0x00400000) != 0)) { + result.desiredAutopilotWorkloadPolicyConfig_ = desiredAutopilotWorkloadPolicyConfigBuilder_ == null + ? desiredAutopilotWorkloadPolicyConfig_ + : desiredAutopilotWorkloadPolicyConfigBuilder_.build(); + to_bitField1_ |= 0x00000800; + } + if (((from_bitField1_ & 0x00800000) != 0)) { + result.desiredK8SBetaApis_ = desiredK8SBetaApisBuilder_ == null + ? desiredK8SBetaApis_ + : desiredK8SBetaApisBuilder_.build(); + to_bitField1_ |= 0x00001000; + } + if (((from_bitField1_ & 0x01000000) != 0)) { + result.desiredHostMaintenancePolicy_ = desiredHostMaintenancePolicyBuilder_ == null + ? desiredHostMaintenancePolicy_ + : desiredHostMaintenancePolicyBuilder_.build(); + to_bitField1_ |= 0x00002000; + } + if (((from_bitField1_ & 0x02000000) != 0)) { + result.desiredNodePoolAutoConfigResourceManagerTags_ = desiredNodePoolAutoConfigResourceManagerTagsBuilder_ == null + ? desiredNodePoolAutoConfigResourceManagerTags_ + : desiredNodePoolAutoConfigResourceManagerTagsBuilder_.build(); + to_bitField1_ |= 0x00004000; + } + if (((from_bitField1_ & 0x04000000) != 0)) { + result.desiredInTransitEncryptionConfig_ = desiredInTransitEncryptionConfig_; + to_bitField1_ |= 0x00008000; + } + result.bitField0_ |= to_bitField0_; + result.bitField1_ |= to_bitField1_; + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDesiredMonitoringService().isEmpty()) { + desiredMonitoringService_ = other.desiredMonitoringService_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasDesiredAddonsConfig()) { + mergeDesiredAddonsConfig(other.getDesiredAddonsConfig()); + } + if (!other.getDesiredNodePoolId().isEmpty()) { + desiredNodePoolId_ = other.desiredNodePoolId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getDesiredImageType().isEmpty()) { + desiredImageType_ = other.desiredImageType_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasDesiredNodePoolAutoscaling()) { + mergeDesiredNodePoolAutoscaling(other.getDesiredNodePoolAutoscaling()); + } + if (!other.desiredLocations_.isEmpty()) { + if (desiredLocations_.isEmpty()) { + desiredLocations_ = other.desiredLocations_; + bitField0_ |= 0x00000040; + } else { + ensureDesiredLocationsIsMutable(); + desiredLocations_.addAll(other.desiredLocations_); + } + onChanged(); + } + if (other.hasDesiredMasterAuthorizedNetworksConfig()) { + mergeDesiredMasterAuthorizedNetworksConfig(other.getDesiredMasterAuthorizedNetworksConfig()); + } + if (other.hasDesiredPodSecurityPolicyConfig()) { + mergeDesiredPodSecurityPolicyConfig(other.getDesiredPodSecurityPolicyConfig()); + } + if (other.hasDesiredClusterAutoscaling()) { + mergeDesiredClusterAutoscaling(other.getDesiredClusterAutoscaling()); + } + if (other.hasDesiredBinaryAuthorization()) { + mergeDesiredBinaryAuthorization(other.getDesiredBinaryAuthorization()); + } + if (!other.getDesiredLoggingService().isEmpty()) { + desiredLoggingService_ = other.desiredLoggingService_; + bitField0_ |= 0x00000800; + 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.hasDesiredL4IlbSubsettingConfig()) { + mergeDesiredL4IlbSubsettingConfig(other.getDesiredL4IlbSubsettingConfig()); + } + if (other.desiredDatapathProvider_ != 0) { + setDesiredDatapathProviderValue(other.getDesiredDatapathProviderValue()); + } + if (other.desiredPrivateIpv6GoogleAccess_ != 0) { + setDesiredPrivateIpv6GoogleAccessValue(other.getDesiredPrivateIpv6GoogleAccessValue()); + } + if (other.hasDesiredNotificationConfig()) { + mergeDesiredNotificationConfig(other.getDesiredNotificationConfig()); + } + if (!other.getDesiredMasterVersion().isEmpty()) { + desiredMasterVersion_ = other.desiredMasterVersion_; + bitField0_ |= 0x01000000; + onChanged(); + } + if (other.hasDesiredGcfsConfig()) { + mergeDesiredGcfsConfig(other.getDesiredGcfsConfig()); + } + if (other.hasDesiredDatabaseEncryption()) { + mergeDesiredDatabaseEncryption(other.getDesiredDatabaseEncryption()); + } + if (other.hasDesiredWorkloadIdentityConfig()) { + mergeDesiredWorkloadIdentityConfig(other.getDesiredWorkloadIdentityConfig()); + } + if (other.hasDesiredWorkloadCertificates()) { + mergeDesiredWorkloadCertificates(other.getDesiredWorkloadCertificates()); + } + if (other.hasDesiredMeshCertificates()) { + mergeDesiredMeshCertificates(other.getDesiredMeshCertificates()); + } + if (other.hasDesiredWorkloadAltsConfig()) { + mergeDesiredWorkloadAltsConfig(other.getDesiredWorkloadAltsConfig()); + } + if (other.hasDesiredShieldedNodes()) { + mergeDesiredShieldedNodes(other.getDesiredShieldedNodes()); + } + if (other.hasDesiredCostManagementConfig()) { + mergeDesiredCostManagementConfig(other.getDesiredCostManagementConfig()); + } + if (other.hasDesiredMaster()) { + mergeDesiredMaster(other.getDesiredMaster()); + } + if (other.hasDesiredDnsConfig()) { + mergeDesiredDnsConfig(other.getDesiredDnsConfig()); + } + if (other.hasDesiredServiceExternalIpsConfig()) { + mergeDesiredServiceExternalIpsConfig(other.getDesiredServiceExternalIpsConfig()); + } + if (other.hasDesiredAuthenticatorGroupsConfig()) { + mergeDesiredAuthenticatorGroupsConfig(other.getDesiredAuthenticatorGroupsConfig()); + } + if (other.hasDesiredLoggingConfig()) { + mergeDesiredLoggingConfig(other.getDesiredLoggingConfig()); + } + if (other.hasDesiredMonitoringConfig()) { + mergeDesiredMonitoringConfig(other.getDesiredMonitoringConfig()); + } + if (other.hasDesiredIdentityServiceConfig()) { + mergeDesiredIdentityServiceConfig(other.getDesiredIdentityServiceConfig()); + } + if (other.hasDesiredEnablePrivateEndpoint()) { + setDesiredEnablePrivateEndpoint(other.getDesiredEnablePrivateEndpoint()); + } + if (other.hasDesiredNodePoolAutoConfigNetworkTags()) { + mergeDesiredNodePoolAutoConfigNetworkTags(other.getDesiredNodePoolAutoConfigNetworkTags()); + } + if (other.hasDesiredProtectConfig()) { + mergeDesiredProtectConfig(other.getDesiredProtectConfig()); + } + if (other.hasDesiredGatewayApiConfig()) { + mergeDesiredGatewayApiConfig(other.getDesiredGatewayApiConfig()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField1_ |= 0x00001000; + onChanged(); + } + if (other.hasDesiredNodePoolLoggingConfig()) { + mergeDesiredNodePoolLoggingConfig(other.getDesiredNodePoolLoggingConfig()); + } + if (other.hasDesiredFleet()) { + mergeDesiredFleet(other.getDesiredFleet()); + } + if (other.desiredStackType_ != 0) { + setDesiredStackTypeValue(other.getDesiredStackTypeValue()); + } + if (other.hasAdditionalPodRangesConfig()) { + mergeAdditionalPodRangesConfig(other.getAdditionalPodRangesConfig()); + } + if (other.hasRemovedAdditionalPodRangesConfig()) { + mergeRemovedAdditionalPodRangesConfig(other.getRemovedAdditionalPodRangesConfig()); + } + if (other.hasEnableK8SBetaApis()) { + mergeEnableK8SBetaApis(other.getEnableK8SBetaApis()); + } + if (other.hasDesiredSecurityPostureConfig()) { + mergeDesiredSecurityPostureConfig(other.getDesiredSecurityPostureConfig()); + } + if (other.hasDesiredNetworkPerformanceConfig()) { + mergeDesiredNetworkPerformanceConfig(other.getDesiredNetworkPerformanceConfig()); + } + if (other.hasDesiredEnableFqdnNetworkPolicy()) { + setDesiredEnableFqdnNetworkPolicy(other.getDesiredEnableFqdnNetworkPolicy()); + } + if (other.hasDesiredAutopilotWorkloadPolicyConfig()) { + mergeDesiredAutopilotWorkloadPolicyConfig(other.getDesiredAutopilotWorkloadPolicyConfig()); + } + if (other.hasDesiredK8SBetaApis()) { + mergeDesiredK8SBetaApis(other.getDesiredK8SBetaApis()); + } + if (other.hasDesiredHostMaintenancePolicy()) { + mergeDesiredHostMaintenancePolicy(other.getDesiredHostMaintenancePolicy()); + } + if (other.hasDesiredNodePoolAutoConfigResourceManagerTags()) { + mergeDesiredNodePoolAutoConfigResourceManagerTags(other.getDesiredNodePoolAutoConfigResourceManagerTags()); + } + if (other.hasDesiredInTransitEncryptionConfig()) { + setDesiredInTransitEncryptionConfig(other.getDesiredInTransitEncryptionConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 34: { + desiredNodeVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 34 + case 42: { + desiredMonitoringService_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 42 + case 50: { + input.readMessage( + getDesiredAddonsConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 50 + case 58: { + desiredNodePoolId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 58 + case 66: { + desiredImageType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 66 + case 74: { + input.readMessage( + getDesiredNodePoolAutoscalingFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 74 + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + ensureDesiredLocationsIsMutable(); + desiredLocations_.add(s); + break; + } // case 82 + case 98: { + input.readMessage( + getDesiredMasterAuthorizedNetworksConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 98 + case 114: { + input.readMessage( + getDesiredPodSecurityPolicyConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 114 + case 122: { + input.readMessage( + getDesiredClusterAutoscalingFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 122 + case 130: { + input.readMessage( + getDesiredBinaryAuthorizationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 130 + case 154: { + desiredLoggingService_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 154 + case 170: { + input.readMessage( + getDesiredResourceUsageExportConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 170 + case 178: { + input.readMessage( + getDesiredVerticalPodAutoscalingFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 178 + case 202: { + input.readMessage( + getDesiredPrivateClusterConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 202 + case 210: { + input.readMessage( + getDesiredIntraNodeVisibilityConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 210 + case 226: { + input.readMessage( + getDesiredDefaultSnatStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 226 + case 242: { + input.readMessage( + getDesiredClusterTelemetryFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 242 + case 250: { + input.readMessage( + getDesiredReleaseChannelFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00040000; + break; + } // case 250 + case 306: { + input.readMessage( + getDesiredTpuConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00080000; + break; + } // case 306 + case 314: { + input.readMessage( + getDesiredL4IlbSubsettingConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00100000; + break; + } // case 314 + case 370: { + input.readMessage( + getDesiredDatabaseEncryptionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x04000000; + break; + } // case 370 + case 378: { + input.readMessage( + getDesiredWorkloadIdentityConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x08000000; + break; + } // case 378 + case 386: { + input.readMessage( + getDesiredShieldedNodesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x80000000; + break; + } // case 386 + case 394: { + input.readMessage( + getDesiredCostManagementConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000001; + break; + } // case 394 + case 400: { + desiredDatapathProvider_ = input.readEnum(); + bitField0_ |= 0x00200000; + break; + } // case 400 + case 408: { + desiredPrivateIpv6GoogleAccess_ = input.readEnum(); + bitField0_ |= 0x00400000; + break; + } // case 408 + case 418: { + input.readMessage( + getDesiredMasterFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000002; + break; + } // case 418 + case 426: { + input.readMessage( + getDesiredDnsConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000004; + break; + } // case 426 + case 442: { + input.readMessage( + getDesiredNotificationConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00800000; + break; + } // case 442 + case 482: { + input.readMessage( + getDesiredServiceExternalIpsConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000008; + break; + } // case 482 + case 490: { + input.readMessage( + getDesiredWorkloadCertificatesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x10000000; + break; + } // case 490 + case 498: { + input.readMessage( + getDesiredWorkloadAltsConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x40000000; + break; + } // case 498 + case 506: { + input.readMessage( + getDesiredAuthenticatorGroupsConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000010; + break; + } // case 506 + case 514: { + input.readMessage( + getDesiredLoggingConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000020; + break; + } // case 514 + case 522: { + input.readMessage( + getDesiredMonitoringConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000040; + break; + } // case 522 + case 530: { + input.readMessage( + getDesiredIdentityServiceConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000080; + break; + } // case 530 + case 538: { + input.readMessage( + getDesiredMeshCertificatesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x20000000; + break; + } // case 538 + case 568: { + desiredEnablePrivateEndpoint_ = input.readBool(); + bitField1_ |= 0x00000100; + break; + } // case 568 + case 802: { + desiredMasterVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x01000000; + break; + } // case 802 + case 874: { + input.readMessage( + getDesiredGcfsConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x02000000; + break; + } // case 874 + case 882: { + input.readMessage( + getDesiredNodePoolAutoConfigNetworkTagsFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000200; + break; + } // case 882 + case 898: { + input.readMessage( + getDesiredProtectConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000400; + break; + } // case 898 + case 914: { + input.readMessage( + getDesiredGatewayApiConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000800; + break; + } // case 914 + case 922: { + etag_ = input.readStringRequireUtf8(); + bitField1_ |= 0x00001000; + break; + } // case 922 + case 930: { + input.readMessage( + getDesiredNodePoolLoggingConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00002000; + break; + } // case 930 + case 938: { + input.readMessage( + getDesiredFleetFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00004000; + break; + } // case 938 + case 952: { + desiredStackType_ = input.readEnum(); + bitField1_ |= 0x00008000; + break; + } // case 952 + case 962: { + input.readMessage( + getAdditionalPodRangesConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00010000; + break; + } // case 962 + case 970: { + input.readMessage( + getRemovedAdditionalPodRangesConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00020000; + break; + } // case 970 + case 978: { + input.readMessage( + getEnableK8SBetaApisFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00040000; + break; + } // case 978 + case 994: { + input.readMessage( + getDesiredSecurityPostureConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00080000; + break; + } // case 994 + case 1002: { + input.readMessage( + getDesiredNetworkPerformanceConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00100000; + break; + } // case 1002 + case 1008: { + desiredEnableFqdnNetworkPolicy_ = input.readBool(); + bitField1_ |= 0x00200000; + break; + } // case 1008 + case 1026: { + input.readMessage( + getDesiredAutopilotWorkloadPolicyConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00400000; + break; + } // case 1026 + case 1050: { + input.readMessage( + getDesiredK8SBetaApisFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00800000; + break; + } // case 1050 + case 1058: { + input.readMessage( + getDesiredHostMaintenancePolicyFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x01000000; + break; + } // case 1058 + case 1090: { + input.readMessage( + getDesiredNodePoolAutoConfigResourceManagerTagsFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x02000000; + break; + } // case 1090 + case 1096: { + desiredInTransitEncryptionConfig_ = input.readEnum(); + bitField1_ |= 0x04000000; + break; + } // case 1096 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + private int bitField1_; + + 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; + bitField0_ |= 0x00000001; + 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(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + 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; + bitField0_ |= 0x00000002; + 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(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + 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 ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * 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; + } else { + desiredAddonsConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + 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(); + } else { + desiredAddonsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + 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 (((bitField0_ & 0x00000004) != 0) && + desiredAddonsConfig_ != null && + desiredAddonsConfig_ != com.google.container.v1beta1.AddonsConfig.getDefaultInstance()) { + getDesiredAddonsConfigBuilder().mergeFrom(value); + } else { + desiredAddonsConfig_ = value; + } + } else { + desiredAddonsConfigBuilder_.mergeFrom(value); + } + if (desiredAddonsConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+     * Configurations for the various addons available to run in the cluster.
+     * 
+ * + * .google.container.v1beta1.AddonsConfig desired_addons_config = 6; + */ + public Builder clearDesiredAddonsConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + desiredAddonsConfig_ = null; + if (desiredAddonsConfigBuilder_ != null) { + desiredAddonsConfigBuilder_.dispose(); + desiredAddonsConfigBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000004; + 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; + bitField0_ |= 0x00000008; + 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(); + bitField0_ = (bitField0_ & ~0x00000008); + 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; + bitField0_ |= 0x00000008; + 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; + bitField0_ |= 0x00000010; + 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(); + bitField0_ = (bitField0_ & ~0x00000010); + 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; + bitField0_ |= 0x00000010; + 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 ((bitField0_ & 0x00000020) != 0); + } + /** + *
+     * 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; + } else { + desiredNodePoolAutoscalingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + 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(); + } else { + desiredNodePoolAutoscalingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + 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 (((bitField0_ & 0x00000020) != 0) && + desiredNodePoolAutoscaling_ != null && + desiredNodePoolAutoscaling_ != com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance()) { + getDesiredNodePoolAutoscalingBuilder().mergeFrom(value); + } else { + desiredNodePoolAutoscaling_ = value; + } + } else { + desiredNodePoolAutoscalingBuilder_.mergeFrom(value); + } + if (desiredNodePoolAutoscaling_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + 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() { + bitField0_ = (bitField0_ & ~0x00000020); + desiredNodePoolAutoscaling_ = null; + if (desiredNodePoolAutoscalingBuilder_ != null) { + desiredNodePoolAutoscalingBuilder_.dispose(); + desiredNodePoolAutoscalingBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000020; + 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.LazyStringArrayList desiredLocations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureDesiredLocationsIsMutable() { + if (!desiredLocations_.isModifiable()) { + desiredLocations_ = new com.google.protobuf.LazyStringArrayList(desiredLocations_); + } + bitField0_ |= 0x00000040; + } + /** + *
+     * 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() { + desiredLocations_.makeImmutable(); + 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); + } + /** + *
+     * 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); + bitField0_ |= 0x00000040; + 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); + bitField0_ |= 0x00000040; + 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_); + bitField0_ |= 0x00000040; + 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.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040);; + 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); + bitField0_ |= 0x00000040; + 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 ((bitField0_ & 0x00000080) != 0); + } + /** + *
+     * 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; + } else { + desiredMasterAuthorizedNetworksConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + 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(); + } else { + desiredMasterAuthorizedNetworksConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + 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 (((bitField0_ & 0x00000080) != 0) && + desiredMasterAuthorizedNetworksConfig_ != null && + desiredMasterAuthorizedNetworksConfig_ != com.google.container.v1beta1.MasterAuthorizedNetworksConfig.getDefaultInstance()) { + getDesiredMasterAuthorizedNetworksConfigBuilder().mergeFrom(value); + } else { + desiredMasterAuthorizedNetworksConfig_ = value; + } + } else { + desiredMasterAuthorizedNetworksConfigBuilder_.mergeFrom(value); + } + if (desiredMasterAuthorizedNetworksConfig_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + /** + *
+     * The desired configuration options for master authorized networks feature.
+     * 
+ * + * .google.container.v1beta1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + */ + public Builder clearDesiredMasterAuthorizedNetworksConfig() { + bitField0_ = (bitField0_ & ~0x00000080); + desiredMasterAuthorizedNetworksConfig_ = null; + if (desiredMasterAuthorizedNetworksConfigBuilder_ != null) { + desiredMasterAuthorizedNetworksConfigBuilder_.dispose(); + desiredMasterAuthorizedNetworksConfigBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000080; + 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 ((bitField0_ & 0x00000100) != 0); + } + /** + *
+     * 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; + } else { + desiredPodSecurityPolicyConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + 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(); + } else { + desiredPodSecurityPolicyConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + 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 (((bitField0_ & 0x00000100) != 0) && + desiredPodSecurityPolicyConfig_ != null && + desiredPodSecurityPolicyConfig_ != com.google.container.v1beta1.PodSecurityPolicyConfig.getDefaultInstance()) { + getDesiredPodSecurityPolicyConfigBuilder().mergeFrom(value); + } else { + desiredPodSecurityPolicyConfig_ = value; + } + } else { + desiredPodSecurityPolicyConfigBuilder_.mergeFrom(value); + } + if (desiredPodSecurityPolicyConfig_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + /** + *
+     * The desired configuration options for the PodSecurityPolicy feature.
+     * 
+ * + * .google.container.v1beta1.PodSecurityPolicyConfig desired_pod_security_policy_config = 14; + */ + public Builder clearDesiredPodSecurityPolicyConfig() { + bitField0_ = (bitField0_ & ~0x00000100); + desiredPodSecurityPolicyConfig_ = null; + if (desiredPodSecurityPolicyConfigBuilder_ != null) { + desiredPodSecurityPolicyConfigBuilder_.dispose(); + desiredPodSecurityPolicyConfigBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000100; + 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 ((bitField0_ & 0x00000200) != 0); + } + /** + *
+     * 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; + } else { + desiredClusterAutoscalingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + 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(); + } else { + desiredClusterAutoscalingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + 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 (((bitField0_ & 0x00000200) != 0) && + desiredClusterAutoscaling_ != null && + desiredClusterAutoscaling_ != com.google.container.v1beta1.ClusterAutoscaling.getDefaultInstance()) { + getDesiredClusterAutoscalingBuilder().mergeFrom(value); + } else { + desiredClusterAutoscaling_ = value; + } + } else { + desiredClusterAutoscalingBuilder_.mergeFrom(value); + } + if (desiredClusterAutoscaling_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public Builder clearDesiredClusterAutoscaling() { + bitField0_ = (bitField0_ & ~0x00000200); + desiredClusterAutoscaling_ = null; + if (desiredClusterAutoscalingBuilder_ != null) { + desiredClusterAutoscalingBuilder_.dispose(); + desiredClusterAutoscalingBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Cluster-level autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.ClusterAutoscaling desired_cluster_autoscaling = 15; + */ + public com.google.container.v1beta1.ClusterAutoscaling.Builder getDesiredClusterAutoscalingBuilder() { + bitField0_ |= 0x00000200; + 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 ((bitField0_ & 0x00000400) != 0); + } + /** + *
+     * 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; + } else { + desiredBinaryAuthorizationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + 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(); + } else { + desiredBinaryAuthorizationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + 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 (((bitField0_ & 0x00000400) != 0) && + desiredBinaryAuthorization_ != null && + desiredBinaryAuthorization_ != com.google.container.v1beta1.BinaryAuthorization.getDefaultInstance()) { + getDesiredBinaryAuthorizationBuilder().mergeFrom(value); + } else { + desiredBinaryAuthorization_ = value; + } + } else { + desiredBinaryAuthorizationBuilder_.mergeFrom(value); + } + if (desiredBinaryAuthorization_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + /** + *
+     * The desired configuration options for the Binary Authorization feature.
+     * 
+ * + * .google.container.v1beta1.BinaryAuthorization desired_binary_authorization = 16; + */ + public Builder clearDesiredBinaryAuthorization() { + bitField0_ = (bitField0_ & ~0x00000400); + desiredBinaryAuthorization_ = null; + if (desiredBinaryAuthorizationBuilder_ != null) { + desiredBinaryAuthorizationBuilder_.dispose(); + desiredBinaryAuthorizationBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000400; + 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; + bitField0_ |= 0x00000800; + 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(); + bitField0_ = (bitField0_ & ~0x00000800); + 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; + bitField0_ |= 0x00000800; + 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 ((bitField0_ & 0x00001000) != 0); + } + /** + *
+     * 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; + } else { + desiredResourceUsageExportConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + 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(); + } else { + desiredResourceUsageExportConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + 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 (((bitField0_ & 0x00001000) != 0) && + desiredResourceUsageExportConfig_ != null && + desiredResourceUsageExportConfig_ != com.google.container.v1beta1.ResourceUsageExportConfig.getDefaultInstance()) { + getDesiredResourceUsageExportConfigBuilder().mergeFrom(value); + } else { + desiredResourceUsageExportConfig_ = value; + } + } else { + desiredResourceUsageExportConfigBuilder_.mergeFrom(value); + } + if (desiredResourceUsageExportConfig_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; + } + /** + *
+     * The desired configuration for exporting resource usage.
+     * 
+ * + * .google.container.v1beta1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; + */ + public Builder clearDesiredResourceUsageExportConfig() { + bitField0_ = (bitField0_ & ~0x00001000); + desiredResourceUsageExportConfig_ = null; + if (desiredResourceUsageExportConfigBuilder_ != null) { + desiredResourceUsageExportConfigBuilder_.dispose(); + desiredResourceUsageExportConfigBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00001000; + 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 ((bitField0_ & 0x00002000) != 0); + } + /** + *
+     * 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; + } else { + desiredVerticalPodAutoscalingBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; + onChanged(); + 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(); + } else { + desiredVerticalPodAutoscalingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; + onChanged(); + 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 (((bitField0_ & 0x00002000) != 0) && + desiredVerticalPodAutoscaling_ != null && + desiredVerticalPodAutoscaling_ != com.google.container.v1beta1.VerticalPodAutoscaling.getDefaultInstance()) { + getDesiredVerticalPodAutoscalingBuilder().mergeFrom(value); + } else { + desiredVerticalPodAutoscaling_ = value; + } + } else { + desiredVerticalPodAutoscalingBuilder_.mergeFrom(value); + } + if (desiredVerticalPodAutoscaling_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } + return this; + } + /** + *
+     * Cluster-level Vertical Pod Autoscaling configuration.
+     * 
+ * + * .google.container.v1beta1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + */ + public Builder clearDesiredVerticalPodAutoscaling() { + bitField0_ = (bitField0_ & ~0x00002000); + desiredVerticalPodAutoscaling_ = null; + if (desiredVerticalPodAutoscalingBuilder_ != null) { + desiredVerticalPodAutoscalingBuilder_.dispose(); + desiredVerticalPodAutoscalingBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00002000; + 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 ((bitField0_ & 0x00004000) != 0); + } + /** + *
+     * 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; + } else { + desiredPrivateClusterConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + 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(); + } else { + desiredPrivateClusterConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + 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 (((bitField0_ & 0x00004000) != 0) && + desiredPrivateClusterConfig_ != null && + desiredPrivateClusterConfig_ != com.google.container.v1beta1.PrivateClusterConfig.getDefaultInstance()) { + getDesiredPrivateClusterConfigBuilder().mergeFrom(value); + } else { + desiredPrivateClusterConfig_ = value; + } + } else { + desiredPrivateClusterConfigBuilder_.mergeFrom(value); + } + if (desiredPrivateClusterConfig_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } + return this; + } + /** + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; + */ + public Builder clearDesiredPrivateClusterConfig() { + bitField0_ = (bitField0_ & ~0x00004000); + desiredPrivateClusterConfig_ = null; + if (desiredPrivateClusterConfigBuilder_ != null) { + desiredPrivateClusterConfigBuilder_.dispose(); + desiredPrivateClusterConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired private cluster configuration.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterConfig desired_private_cluster_config = 25; + */ + public com.google.container.v1beta1.PrivateClusterConfig.Builder getDesiredPrivateClusterConfigBuilder() { + bitField0_ |= 0x00004000; + 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 ((bitField0_ & 0x00008000) != 0); + } + /** + *
+     * 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; + } else { + desiredIntraNodeVisibilityConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00008000; + onChanged(); + 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(); + } else { + desiredIntraNodeVisibilityConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00008000; + onChanged(); + 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 (((bitField0_ & 0x00008000) != 0) && + desiredIntraNodeVisibilityConfig_ != null && + desiredIntraNodeVisibilityConfig_ != com.google.container.v1beta1.IntraNodeVisibilityConfig.getDefaultInstance()) { + getDesiredIntraNodeVisibilityConfigBuilder().mergeFrom(value); + } else { + desiredIntraNodeVisibilityConfig_ = value; + } + } else { + desiredIntraNodeVisibilityConfigBuilder_.mergeFrom(value); + } + if (desiredIntraNodeVisibilityConfig_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } + return this; + } + /** + *
+     * The desired config of Intra-node visibility.
+     * 
+ * + * .google.container.v1beta1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + */ + public Builder clearDesiredIntraNodeVisibilityConfig() { + bitField0_ = (bitField0_ & ~0x00008000); + desiredIntraNodeVisibilityConfig_ = null; + if (desiredIntraNodeVisibilityConfigBuilder_ != null) { + desiredIntraNodeVisibilityConfigBuilder_.dispose(); + desiredIntraNodeVisibilityConfigBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00008000; + 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 ((bitField0_ & 0x00010000) != 0); + } + /** + *
+     * 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; + } else { + desiredDefaultSnatStatusBuilder_.setMessage(value); + } + bitField0_ |= 0x00010000; + onChanged(); + 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(); + } else { + desiredDefaultSnatStatusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00010000; + onChanged(); + 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 (((bitField0_ & 0x00010000) != 0) && + desiredDefaultSnatStatus_ != null && + desiredDefaultSnatStatus_ != com.google.container.v1beta1.DefaultSnatStatus.getDefaultInstance()) { + getDesiredDefaultSnatStatusBuilder().mergeFrom(value); + } else { + desiredDefaultSnatStatus_ = value; + } + } else { + desiredDefaultSnatStatusBuilder_.mergeFrom(value); + } + if (desiredDefaultSnatStatus_ != null) { + bitField0_ |= 0x00010000; + onChanged(); + } + 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() { + bitField0_ = (bitField0_ & ~0x00010000); + desiredDefaultSnatStatus_ = null; + if (desiredDefaultSnatStatusBuilder_ != null) { + desiredDefaultSnatStatusBuilder_.dispose(); + desiredDefaultSnatStatusBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00010000; + 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 ((bitField0_ & 0x00020000) != 0); + } + /** + *
+     * 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; + } else { + desiredClusterTelemetryBuilder_.setMessage(value); + } + bitField0_ |= 0x00020000; + onChanged(); + 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(); + } else { + desiredClusterTelemetryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00020000; + onChanged(); + 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 (((bitField0_ & 0x00020000) != 0) && + desiredClusterTelemetry_ != null && + desiredClusterTelemetry_ != com.google.container.v1beta1.ClusterTelemetry.getDefaultInstance()) { + getDesiredClusterTelemetryBuilder().mergeFrom(value); + } else { + desiredClusterTelemetry_ = value; + } + } else { + desiredClusterTelemetryBuilder_.mergeFrom(value); + } + if (desiredClusterTelemetry_ != null) { + bitField0_ |= 0x00020000; + onChanged(); + } + return this; + } + /** + *
+     * The desired telemetry integration for the cluster.
+     * 
+ * + * .google.container.v1beta1.ClusterTelemetry desired_cluster_telemetry = 30; + */ + public Builder clearDesiredClusterTelemetry() { + bitField0_ = (bitField0_ & ~0x00020000); + desiredClusterTelemetry_ = null; + if (desiredClusterTelemetryBuilder_ != null) { + desiredClusterTelemetryBuilder_.dispose(); + desiredClusterTelemetryBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00020000; + 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 ((bitField0_ & 0x00040000) != 0); + } + /** + *
+     * 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; + } else { + desiredReleaseChannelBuilder_.setMessage(value); + } + bitField0_ |= 0x00040000; + onChanged(); + 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(); + } else { + desiredReleaseChannelBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00040000; + onChanged(); + 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 (((bitField0_ & 0x00040000) != 0) && + desiredReleaseChannel_ != null && + desiredReleaseChannel_ != com.google.container.v1beta1.ReleaseChannel.getDefaultInstance()) { + getDesiredReleaseChannelBuilder().mergeFrom(value); + } else { + desiredReleaseChannel_ = value; + } + } else { + desiredReleaseChannelBuilder_.mergeFrom(value); + } + if (desiredReleaseChannel_ != null) { + bitField0_ |= 0x00040000; + onChanged(); + } + return this; + } + /** + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; + */ + public Builder clearDesiredReleaseChannel() { + bitField0_ = (bitField0_ & ~0x00040000); + desiredReleaseChannel_ = null; + if (desiredReleaseChannelBuilder_ != null) { + desiredReleaseChannelBuilder_.dispose(); + desiredReleaseChannelBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired release channel configuration.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel desired_release_channel = 31; + */ + public com.google.container.v1beta1.ReleaseChannel.Builder getDesiredReleaseChannelBuilder() { + bitField0_ |= 0x00040000; + 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 ((bitField0_ & 0x00080000) != 0); + } + /** + *
+     * 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; + } else { + desiredTpuConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00080000; + onChanged(); + 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(); + } else { + desiredTpuConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00080000; + onChanged(); + 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 (((bitField0_ & 0x00080000) != 0) && + desiredTpuConfig_ != null && + desiredTpuConfig_ != com.google.container.v1beta1.TpuConfig.getDefaultInstance()) { + getDesiredTpuConfigBuilder().mergeFrom(value); + } else { + desiredTpuConfig_ = value; + } + } else { + desiredTpuConfigBuilder_.mergeFrom(value); + } + if (desiredTpuConfig_ != null) { + bitField0_ |= 0x00080000; + onChanged(); + } + return this; + } + /** + *
+     * The desired Cloud TPU configuration.
+     * 
+ * + * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; + */ + public Builder clearDesiredTpuConfig() { + bitField0_ = (bitField0_ & ~0x00080000); + desiredTpuConfig_ = null; + if (desiredTpuConfigBuilder_ != null) { + desiredTpuConfigBuilder_.dispose(); + desiredTpuConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired Cloud TPU configuration.
+     * 
+ * + * .google.container.v1beta1.TpuConfig desired_tpu_config = 38; + */ + public com.google.container.v1beta1.TpuConfig.Builder getDesiredTpuConfigBuilder() { + bitField0_ |= 0x00080000; + 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 com.google.container.v1beta1.ILBSubsettingConfig desiredL4IlbSubsettingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ILBSubsettingConfig, com.google.container.v1beta1.ILBSubsettingConfig.Builder, com.google.container.v1beta1.ILBSubsettingConfigOrBuilder> desiredL4IlbSubsettingConfigBuilder_; + /** + *
+     * The desired L4 Internal Load Balancer Subsetting configuration.
+     * 
+ * + * .google.container.v1beta1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + * @return Whether the desiredL4ilbSubsettingConfig field is set. + */ + public boolean hasDesiredL4IlbSubsettingConfig() { + return ((bitField0_ & 0x00100000) != 0); + } + /** + *
+     * The desired L4 Internal Load Balancer Subsetting configuration.
+     * 
+ * + * .google.container.v1beta1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + * @return The desiredL4ilbSubsettingConfig. + */ + public com.google.container.v1beta1.ILBSubsettingConfig getDesiredL4IlbSubsettingConfig() { + if (desiredL4IlbSubsettingConfigBuilder_ == null) { + return desiredL4IlbSubsettingConfig_ == null ? com.google.container.v1beta1.ILBSubsettingConfig.getDefaultInstance() : desiredL4IlbSubsettingConfig_; + } else { + return desiredL4IlbSubsettingConfigBuilder_.getMessage(); + } + } + /** + *
+     * The desired L4 Internal Load Balancer Subsetting configuration.
+     * 
+ * + * .google.container.v1beta1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + */ + public Builder setDesiredL4IlbSubsettingConfig(com.google.container.v1beta1.ILBSubsettingConfig value) { + if (desiredL4IlbSubsettingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredL4IlbSubsettingConfig_ = value; + } else { + desiredL4IlbSubsettingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + *
+     * The desired L4 Internal Load Balancer Subsetting configuration.
+     * 
+ * + * .google.container.v1beta1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + */ + public Builder setDesiredL4IlbSubsettingConfig( + com.google.container.v1beta1.ILBSubsettingConfig.Builder builderForValue) { + if (desiredL4IlbSubsettingConfigBuilder_ == null) { + desiredL4IlbSubsettingConfig_ = builderForValue.build(); + } else { + desiredL4IlbSubsettingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + *
+     * The desired L4 Internal Load Balancer Subsetting configuration.
+     * 
+ * + * .google.container.v1beta1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + */ + public Builder mergeDesiredL4IlbSubsettingConfig(com.google.container.v1beta1.ILBSubsettingConfig value) { + if (desiredL4IlbSubsettingConfigBuilder_ == null) { + if (((bitField0_ & 0x00100000) != 0) && + desiredL4IlbSubsettingConfig_ != null && + desiredL4IlbSubsettingConfig_ != com.google.container.v1beta1.ILBSubsettingConfig.getDefaultInstance()) { + getDesiredL4IlbSubsettingConfigBuilder().mergeFrom(value); + } else { + desiredL4IlbSubsettingConfig_ = value; + } + } else { + desiredL4IlbSubsettingConfigBuilder_.mergeFrom(value); + } + if (desiredL4IlbSubsettingConfig_ != null) { + bitField0_ |= 0x00100000; + onChanged(); + } + return this; + } + /** + *
+     * The desired L4 Internal Load Balancer Subsetting configuration.
+     * 
+ * + * .google.container.v1beta1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + */ + public Builder clearDesiredL4IlbSubsettingConfig() { + bitField0_ = (bitField0_ & ~0x00100000); + desiredL4IlbSubsettingConfig_ = null; + if (desiredL4IlbSubsettingConfigBuilder_ != null) { + desiredL4IlbSubsettingConfigBuilder_.dispose(); + desiredL4IlbSubsettingConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired L4 Internal Load Balancer Subsetting configuration.
+     * 
+ * + * .google.container.v1beta1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + */ + public com.google.container.v1beta1.ILBSubsettingConfig.Builder getDesiredL4IlbSubsettingConfigBuilder() { + bitField0_ |= 0x00100000; + onChanged(); + return getDesiredL4IlbSubsettingConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The desired L4 Internal Load Balancer Subsetting configuration.
+     * 
+ * + * .google.container.v1beta1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + */ + public com.google.container.v1beta1.ILBSubsettingConfigOrBuilder getDesiredL4IlbSubsettingConfigOrBuilder() { + if (desiredL4IlbSubsettingConfigBuilder_ != null) { + return desiredL4IlbSubsettingConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredL4IlbSubsettingConfig_ == null ? + com.google.container.v1beta1.ILBSubsettingConfig.getDefaultInstance() : desiredL4IlbSubsettingConfig_; + } + } + /** + *
+     * The desired L4 Internal Load Balancer Subsetting configuration.
+     * 
+ * + * .google.container.v1beta1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ILBSubsettingConfig, com.google.container.v1beta1.ILBSubsettingConfig.Builder, com.google.container.v1beta1.ILBSubsettingConfigOrBuilder> + getDesiredL4IlbSubsettingConfigFieldBuilder() { + if (desiredL4IlbSubsettingConfigBuilder_ == null) { + desiredL4IlbSubsettingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ILBSubsettingConfig, com.google.container.v1beta1.ILBSubsettingConfig.Builder, com.google.container.v1beta1.ILBSubsettingConfigOrBuilder>( + getDesiredL4IlbSubsettingConfig(), + getParentForChildren(), + isClean()); + desiredL4IlbSubsettingConfig_ = null; + } + return desiredL4IlbSubsettingConfigBuilder_; + } + + 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; + bitField0_ |= 0x00200000; + 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() { + com.google.container.v1beta1.DatapathProvider result = com.google.container.v1beta1.DatapathProvider.forNumber(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(); + } + bitField0_ |= 0x00200000; + 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() { + bitField0_ = (bitField0_ & ~0x00200000); + desiredDatapathProvider_ = 0; + onChanged(); + return this; + } + + private int desiredPrivateIpv6GoogleAccess_ = 0; + /** + *
+     * The desired state of IPv6 connectivity to Google Services.
+     * 
+ * + * .google.container.v1beta1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + * @return The enum numeric value on the wire for desiredPrivateIpv6GoogleAccess. + */ + @java.lang.Override public int getDesiredPrivateIpv6GoogleAccessValue() { + return desiredPrivateIpv6GoogleAccess_; + } + /** + *
+     * The desired state of IPv6 connectivity to Google Services.
+     * 
+ * + * .google.container.v1beta1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + * @param value The enum numeric value on the wire for desiredPrivateIpv6GoogleAccess to set. + * @return This builder for chaining. + */ + public Builder setDesiredPrivateIpv6GoogleAccessValue(int value) { + desiredPrivateIpv6GoogleAccess_ = value; + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + /** + *
+     * The desired state of IPv6 connectivity to Google Services.
+     * 
+ * + * .google.container.v1beta1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + * @return The desiredPrivateIpv6GoogleAccess. + */ + @java.lang.Override + public com.google.container.v1beta1.PrivateIPv6GoogleAccess getDesiredPrivateIpv6GoogleAccess() { + com.google.container.v1beta1.PrivateIPv6GoogleAccess result = com.google.container.v1beta1.PrivateIPv6GoogleAccess.forNumber(desiredPrivateIpv6GoogleAccess_); + return result == null ? com.google.container.v1beta1.PrivateIPv6GoogleAccess.UNRECOGNIZED : result; + } + /** + *
+     * The desired state of IPv6 connectivity to Google Services.
+     * 
+ * + * .google.container.v1beta1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + * @param value The desiredPrivateIpv6GoogleAccess to set. + * @return This builder for chaining. + */ + public Builder setDesiredPrivateIpv6GoogleAccess(com.google.container.v1beta1.PrivateIPv6GoogleAccess value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00400000; + desiredPrivateIpv6GoogleAccess_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The desired state of IPv6 connectivity to Google Services.
+     * 
+ * + * .google.container.v1beta1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + * @return This builder for chaining. + */ + public Builder clearDesiredPrivateIpv6GoogleAccess() { + bitField0_ = (bitField0_ & ~0x00400000); + desiredPrivateIpv6GoogleAccess_ = 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 ((bitField0_ & 0x00800000) != 0); + } + /** + *
+     * 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; + } else { + desiredNotificationConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00800000; + onChanged(); + 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(); + } else { + desiredNotificationConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00800000; + onChanged(); + 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 (((bitField0_ & 0x00800000) != 0) && + desiredNotificationConfig_ != null && + desiredNotificationConfig_ != com.google.container.v1beta1.NotificationConfig.getDefaultInstance()) { + getDesiredNotificationConfigBuilder().mergeFrom(value); + } else { + desiredNotificationConfig_ = value; + } + } else { + desiredNotificationConfigBuilder_.mergeFrom(value); + } + if (desiredNotificationConfig_ != null) { + bitField0_ |= 0x00800000; + onChanged(); + } + return this; + } + /** + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig desired_notification_config = 55; + */ + public Builder clearDesiredNotificationConfig() { + bitField0_ = (bitField0_ & ~0x00800000); + desiredNotificationConfig_ = null; + if (desiredNotificationConfigBuilder_ != null) { + desiredNotificationConfigBuilder_.dispose(); + desiredNotificationConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired notification configuration.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig desired_notification_config = 55; + */ + public com.google.container.v1beta1.NotificationConfig.Builder getDesiredNotificationConfigBuilder() { + bitField0_ |= 0x00800000; + 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; + bitField0_ |= 0x01000000; + 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(); + bitField0_ = (bitField0_ & ~0x01000000); + 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; + bitField0_ |= 0x01000000; + onChanged(); + return this; + } + + private com.google.container.v1beta1.GcfsConfig desiredGcfsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcfsConfig, com.google.container.v1beta1.GcfsConfig.Builder, com.google.container.v1beta1.GcfsConfigOrBuilder> desiredGcfsConfigBuilder_; + /** + *
+     * The desired GCFS config for the cluster.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + * @return Whether the desiredGcfsConfig field is set. + */ + public boolean hasDesiredGcfsConfig() { + return ((bitField0_ & 0x02000000) != 0); + } + /** + *
+     * The desired GCFS config for the cluster.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + * @return The desiredGcfsConfig. + */ + public com.google.container.v1beta1.GcfsConfig getDesiredGcfsConfig() { + if (desiredGcfsConfigBuilder_ == null) { + return desiredGcfsConfig_ == null ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() : desiredGcfsConfig_; + } else { + return desiredGcfsConfigBuilder_.getMessage(); + } + } + /** + *
+     * The desired GCFS config for the cluster.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + */ + public Builder setDesiredGcfsConfig(com.google.container.v1beta1.GcfsConfig value) { + if (desiredGcfsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredGcfsConfig_ = value; + } else { + desiredGcfsConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + /** + *
+     * The desired GCFS config for the cluster.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + */ + public Builder setDesiredGcfsConfig( + com.google.container.v1beta1.GcfsConfig.Builder builderForValue) { + if (desiredGcfsConfigBuilder_ == null) { + desiredGcfsConfig_ = builderForValue.build(); + } else { + desiredGcfsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + /** + *
+     * The desired GCFS config for the cluster.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + */ + public Builder mergeDesiredGcfsConfig(com.google.container.v1beta1.GcfsConfig value) { + if (desiredGcfsConfigBuilder_ == null) { + if (((bitField0_ & 0x02000000) != 0) && + desiredGcfsConfig_ != null && + desiredGcfsConfig_ != com.google.container.v1beta1.GcfsConfig.getDefaultInstance()) { + getDesiredGcfsConfigBuilder().mergeFrom(value); + } else { + desiredGcfsConfig_ = value; + } + } else { + desiredGcfsConfigBuilder_.mergeFrom(value); + } + if (desiredGcfsConfig_ != null) { + bitField0_ |= 0x02000000; + onChanged(); + } + return this; + } + /** + *
+     * The desired GCFS config for the cluster.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + */ + public Builder clearDesiredGcfsConfig() { + bitField0_ = (bitField0_ & ~0x02000000); + desiredGcfsConfig_ = null; + if (desiredGcfsConfigBuilder_ != null) { + desiredGcfsConfigBuilder_.dispose(); + desiredGcfsConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired GCFS config for the cluster.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + */ + public com.google.container.v1beta1.GcfsConfig.Builder getDesiredGcfsConfigBuilder() { + bitField0_ |= 0x02000000; + onChanged(); + return getDesiredGcfsConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The desired GCFS config for the cluster.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + */ + public com.google.container.v1beta1.GcfsConfigOrBuilder getDesiredGcfsConfigOrBuilder() { + if (desiredGcfsConfigBuilder_ != null) { + return desiredGcfsConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredGcfsConfig_ == null ? + com.google.container.v1beta1.GcfsConfig.getDefaultInstance() : desiredGcfsConfig_; + } + } + /** + *
+     * The desired GCFS config for the cluster.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcfsConfig, com.google.container.v1beta1.GcfsConfig.Builder, com.google.container.v1beta1.GcfsConfigOrBuilder> + getDesiredGcfsConfigFieldBuilder() { + if (desiredGcfsConfigBuilder_ == null) { + desiredGcfsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcfsConfig, com.google.container.v1beta1.GcfsConfig.Builder, com.google.container.v1beta1.GcfsConfigOrBuilder>( + getDesiredGcfsConfig(), + getParentForChildren(), + isClean()); + desiredGcfsConfig_ = null; + } + return desiredGcfsConfigBuilder_; + } + + private com.google.container.v1beta1.DatabaseEncryption desiredDatabaseEncryption_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DatabaseEncryption, 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 ((bitField0_ & 0x04000000) != 0); + } + /** + *
+     * 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; + } else { + desiredDatabaseEncryptionBuilder_.setMessage(value); + } + bitField0_ |= 0x04000000; + onChanged(); + 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(); + } else { + desiredDatabaseEncryptionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x04000000; + onChanged(); + 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 (((bitField0_ & 0x04000000) != 0) && + desiredDatabaseEncryption_ != null && + desiredDatabaseEncryption_ != com.google.container.v1beta1.DatabaseEncryption.getDefaultInstance()) { + getDesiredDatabaseEncryptionBuilder().mergeFrom(value); + } else { + desiredDatabaseEncryption_ = value; + } + } else { + desiredDatabaseEncryptionBuilder_.mergeFrom(value); + } + if (desiredDatabaseEncryption_ != null) { + bitField0_ |= 0x04000000; + onChanged(); + } + return this; + } + /** + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; + */ + public Builder clearDesiredDatabaseEncryption() { + bitField0_ = (bitField0_ & ~0x04000000); + desiredDatabaseEncryption_ = null; + if (desiredDatabaseEncryptionBuilder_ != null) { + desiredDatabaseEncryptionBuilder_.dispose(); + desiredDatabaseEncryptionBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption desired_database_encryption = 46; + */ + public com.google.container.v1beta1.DatabaseEncryption.Builder getDesiredDatabaseEncryptionBuilder() { + bitField0_ |= 0x04000000; + 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 ((bitField0_ & 0x08000000) != 0); + } + /** + *
+     * 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; + } else { + desiredWorkloadIdentityConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x08000000; + onChanged(); + 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(); + } else { + desiredWorkloadIdentityConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x08000000; + onChanged(); + 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 (((bitField0_ & 0x08000000) != 0) && + desiredWorkloadIdentityConfig_ != null && + desiredWorkloadIdentityConfig_ != com.google.container.v1beta1.WorkloadIdentityConfig.getDefaultInstance()) { + getDesiredWorkloadIdentityConfigBuilder().mergeFrom(value); + } else { + desiredWorkloadIdentityConfig_ = value; + } + } else { + desiredWorkloadIdentityConfigBuilder_.mergeFrom(value); + } + if (desiredWorkloadIdentityConfig_ != null) { + bitField0_ |= 0x08000000; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; + */ + public Builder clearDesiredWorkloadIdentityConfig() { + bitField0_ = (bitField0_ & ~0x08000000); + desiredWorkloadIdentityConfig_ = null; + if (desiredWorkloadIdentityConfigBuilder_ != null) { + desiredWorkloadIdentityConfigBuilder_.dispose(); + desiredWorkloadIdentityConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for Workload Identity.
+     * 
+ * + * .google.container.v1beta1.WorkloadIdentityConfig desired_workload_identity_config = 47; + */ + public com.google.container.v1beta1.WorkloadIdentityConfig.Builder getDesiredWorkloadIdentityConfigBuilder() { + bitField0_ |= 0x08000000; + 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.WorkloadCertificates desiredWorkloadCertificates_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadCertificates, com.google.container.v1beta1.WorkloadCertificates.Builder, com.google.container.v1beta1.WorkloadCertificatesOrBuilder> desiredWorkloadCertificatesBuilder_; + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.WorkloadCertificates desired_workload_certificates = 61; + * @return Whether the desiredWorkloadCertificates field is set. + */ + public boolean hasDesiredWorkloadCertificates() { + return ((bitField0_ & 0x10000000) != 0); + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.WorkloadCertificates desired_workload_certificates = 61; + * @return The desiredWorkloadCertificates. + */ + public com.google.container.v1beta1.WorkloadCertificates getDesiredWorkloadCertificates() { + if (desiredWorkloadCertificatesBuilder_ == null) { + return desiredWorkloadCertificates_ == null ? com.google.container.v1beta1.WorkloadCertificates.getDefaultInstance() : desiredWorkloadCertificates_; + } else { + return desiredWorkloadCertificatesBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.WorkloadCertificates desired_workload_certificates = 61; + */ + public Builder setDesiredWorkloadCertificates(com.google.container.v1beta1.WorkloadCertificates value) { + if (desiredWorkloadCertificatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredWorkloadCertificates_ = value; + } else { + desiredWorkloadCertificatesBuilder_.setMessage(value); + } + bitField0_ |= 0x10000000; + onChanged(); + return this; + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.WorkloadCertificates desired_workload_certificates = 61; + */ + public Builder setDesiredWorkloadCertificates( + com.google.container.v1beta1.WorkloadCertificates.Builder builderForValue) { + if (desiredWorkloadCertificatesBuilder_ == null) { + desiredWorkloadCertificates_ = builderForValue.build(); + } else { + desiredWorkloadCertificatesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x10000000; + onChanged(); + return this; + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.WorkloadCertificates desired_workload_certificates = 61; + */ + public Builder mergeDesiredWorkloadCertificates(com.google.container.v1beta1.WorkloadCertificates value) { + if (desiredWorkloadCertificatesBuilder_ == null) { + if (((bitField0_ & 0x10000000) != 0) && + desiredWorkloadCertificates_ != null && + desiredWorkloadCertificates_ != com.google.container.v1beta1.WorkloadCertificates.getDefaultInstance()) { + getDesiredWorkloadCertificatesBuilder().mergeFrom(value); + } else { + desiredWorkloadCertificates_ = value; + } + } else { + desiredWorkloadCertificatesBuilder_.mergeFrom(value); + } + if (desiredWorkloadCertificates_ != null) { + bitField0_ |= 0x10000000; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.WorkloadCertificates desired_workload_certificates = 61; + */ + public Builder clearDesiredWorkloadCertificates() { + bitField0_ = (bitField0_ & ~0x10000000); + desiredWorkloadCertificates_ = null; + if (desiredWorkloadCertificatesBuilder_ != null) { + desiredWorkloadCertificatesBuilder_.dispose(); + desiredWorkloadCertificatesBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.WorkloadCertificates desired_workload_certificates = 61; + */ + public com.google.container.v1beta1.WorkloadCertificates.Builder getDesiredWorkloadCertificatesBuilder() { + bitField0_ |= 0x10000000; + onChanged(); + return getDesiredWorkloadCertificatesFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.WorkloadCertificates desired_workload_certificates = 61; + */ + public com.google.container.v1beta1.WorkloadCertificatesOrBuilder getDesiredWorkloadCertificatesOrBuilder() { + if (desiredWorkloadCertificatesBuilder_ != null) { + return desiredWorkloadCertificatesBuilder_.getMessageOrBuilder(); + } else { + return desiredWorkloadCertificates_ == null ? + com.google.container.v1beta1.WorkloadCertificates.getDefaultInstance() : desiredWorkloadCertificates_; + } + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.WorkloadCertificates desired_workload_certificates = 61; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadCertificates, com.google.container.v1beta1.WorkloadCertificates.Builder, com.google.container.v1beta1.WorkloadCertificatesOrBuilder> + getDesiredWorkloadCertificatesFieldBuilder() { + if (desiredWorkloadCertificatesBuilder_ == null) { + desiredWorkloadCertificatesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadCertificates, com.google.container.v1beta1.WorkloadCertificates.Builder, com.google.container.v1beta1.WorkloadCertificatesOrBuilder>( + getDesiredWorkloadCertificates(), + getParentForChildren(), + isClean()); + desiredWorkloadCertificates_ = null; + } + return desiredWorkloadCertificatesBuilder_; + } + + private com.google.container.v1beta1.MeshCertificates desiredMeshCertificates_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MeshCertificates, com.google.container.v1beta1.MeshCertificates.Builder, com.google.container.v1beta1.MeshCertificatesOrBuilder> desiredMeshCertificatesBuilder_; + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + * @return Whether the desiredMeshCertificates field is set. + */ + public boolean hasDesiredMeshCertificates() { + return ((bitField0_ & 0x20000000) != 0); + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + * @return The desiredMeshCertificates. + */ + public com.google.container.v1beta1.MeshCertificates getDesiredMeshCertificates() { + if (desiredMeshCertificatesBuilder_ == null) { + return desiredMeshCertificates_ == null ? com.google.container.v1beta1.MeshCertificates.getDefaultInstance() : desiredMeshCertificates_; + } else { + return desiredMeshCertificatesBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + */ + public Builder setDesiredMeshCertificates(com.google.container.v1beta1.MeshCertificates value) { + if (desiredMeshCertificatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredMeshCertificates_ = value; + } else { + desiredMeshCertificatesBuilder_.setMessage(value); + } + bitField0_ |= 0x20000000; + onChanged(); + return this; + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + */ + public Builder setDesiredMeshCertificates( + com.google.container.v1beta1.MeshCertificates.Builder builderForValue) { + if (desiredMeshCertificatesBuilder_ == null) { + desiredMeshCertificates_ = builderForValue.build(); + } else { + desiredMeshCertificatesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x20000000; + onChanged(); + return this; + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + */ + public Builder mergeDesiredMeshCertificates(com.google.container.v1beta1.MeshCertificates value) { + if (desiredMeshCertificatesBuilder_ == null) { + if (((bitField0_ & 0x20000000) != 0) && + desiredMeshCertificates_ != null && + desiredMeshCertificates_ != com.google.container.v1beta1.MeshCertificates.getDefaultInstance()) { + getDesiredMeshCertificatesBuilder().mergeFrom(value); + } else { + desiredMeshCertificates_ = value; + } + } else { + desiredMeshCertificatesBuilder_.mergeFrom(value); + } + if (desiredMeshCertificates_ != null) { + bitField0_ |= 0x20000000; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + */ + public Builder clearDesiredMeshCertificates() { + bitField0_ = (bitField0_ & ~0x20000000); + desiredMeshCertificates_ = null; + if (desiredMeshCertificatesBuilder_ != null) { + desiredMeshCertificatesBuilder_.dispose(); + desiredMeshCertificatesBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + */ + public com.google.container.v1beta1.MeshCertificates.Builder getDesiredMeshCertificatesBuilder() { + bitField0_ |= 0x20000000; + onChanged(); + return getDesiredMeshCertificatesFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + */ + public com.google.container.v1beta1.MeshCertificatesOrBuilder getDesiredMeshCertificatesOrBuilder() { + if (desiredMeshCertificatesBuilder_ != null) { + return desiredMeshCertificatesBuilder_.getMessageOrBuilder(); + } else { + return desiredMeshCertificates_ == null ? + com.google.container.v1beta1.MeshCertificates.getDefaultInstance() : desiredMeshCertificates_; + } + } + /** + *
+     * Configuration for issuance of mTLS keys and certificates to Kubernetes
+     * pods.
+     * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MeshCertificates, com.google.container.v1beta1.MeshCertificates.Builder, com.google.container.v1beta1.MeshCertificatesOrBuilder> + getDesiredMeshCertificatesFieldBuilder() { + if (desiredMeshCertificatesBuilder_ == null) { + desiredMeshCertificatesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MeshCertificates, com.google.container.v1beta1.MeshCertificates.Builder, com.google.container.v1beta1.MeshCertificatesOrBuilder>( + getDesiredMeshCertificates(), + getParentForChildren(), + isClean()); + desiredMeshCertificates_ = null; + } + return desiredMeshCertificatesBuilder_; + } + + private com.google.container.v1beta1.WorkloadALTSConfig desiredWorkloadAltsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadALTSConfig, com.google.container.v1beta1.WorkloadALTSConfig.Builder, com.google.container.v1beta1.WorkloadALTSConfigOrBuilder> desiredWorkloadAltsConfigBuilder_; + /** + *
+     * Configuration for direct-path (via ALTS) with workload identity.
+     * 
+ * + * .google.container.v1beta1.WorkloadALTSConfig desired_workload_alts_config = 62; + * @return Whether the desiredWorkloadAltsConfig field is set. + */ + public boolean hasDesiredWorkloadAltsConfig() { + return ((bitField0_ & 0x40000000) != 0); + } + /** + *
+     * Configuration for direct-path (via ALTS) with workload identity.
+     * 
+ * + * .google.container.v1beta1.WorkloadALTSConfig desired_workload_alts_config = 62; + * @return The desiredWorkloadAltsConfig. + */ + public com.google.container.v1beta1.WorkloadALTSConfig getDesiredWorkloadAltsConfig() { + if (desiredWorkloadAltsConfigBuilder_ == null) { + return desiredWorkloadAltsConfig_ == null ? com.google.container.v1beta1.WorkloadALTSConfig.getDefaultInstance() : desiredWorkloadAltsConfig_; + } else { + return desiredWorkloadAltsConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for direct-path (via ALTS) with workload identity.
+     * 
+ * + * .google.container.v1beta1.WorkloadALTSConfig desired_workload_alts_config = 62; + */ + public Builder setDesiredWorkloadAltsConfig(com.google.container.v1beta1.WorkloadALTSConfig value) { + if (desiredWorkloadAltsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredWorkloadAltsConfig_ = value; + } else { + desiredWorkloadAltsConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x40000000; + onChanged(); + return this; + } + /** + *
+     * Configuration for direct-path (via ALTS) with workload identity.
+     * 
+ * + * .google.container.v1beta1.WorkloadALTSConfig desired_workload_alts_config = 62; + */ + public Builder setDesiredWorkloadAltsConfig( + com.google.container.v1beta1.WorkloadALTSConfig.Builder builderForValue) { + if (desiredWorkloadAltsConfigBuilder_ == null) { + desiredWorkloadAltsConfig_ = builderForValue.build(); + } else { + desiredWorkloadAltsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x40000000; + onChanged(); + return this; + } + /** + *
+     * Configuration for direct-path (via ALTS) with workload identity.
+     * 
+ * + * .google.container.v1beta1.WorkloadALTSConfig desired_workload_alts_config = 62; + */ + public Builder mergeDesiredWorkloadAltsConfig(com.google.container.v1beta1.WorkloadALTSConfig value) { + if (desiredWorkloadAltsConfigBuilder_ == null) { + if (((bitField0_ & 0x40000000) != 0) && + desiredWorkloadAltsConfig_ != null && + desiredWorkloadAltsConfig_ != com.google.container.v1beta1.WorkloadALTSConfig.getDefaultInstance()) { + getDesiredWorkloadAltsConfigBuilder().mergeFrom(value); + } else { + desiredWorkloadAltsConfig_ = value; + } + } else { + desiredWorkloadAltsConfigBuilder_.mergeFrom(value); + } + if (desiredWorkloadAltsConfig_ != null) { + bitField0_ |= 0x40000000; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for direct-path (via ALTS) with workload identity.
+     * 
+ * + * .google.container.v1beta1.WorkloadALTSConfig desired_workload_alts_config = 62; + */ + public Builder clearDesiredWorkloadAltsConfig() { + bitField0_ = (bitField0_ & ~0x40000000); + desiredWorkloadAltsConfig_ = null; + if (desiredWorkloadAltsConfigBuilder_ != null) { + desiredWorkloadAltsConfigBuilder_.dispose(); + desiredWorkloadAltsConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for direct-path (via ALTS) with workload identity.
+     * 
+ * + * .google.container.v1beta1.WorkloadALTSConfig desired_workload_alts_config = 62; + */ + public com.google.container.v1beta1.WorkloadALTSConfig.Builder getDesiredWorkloadAltsConfigBuilder() { + bitField0_ |= 0x40000000; + onChanged(); + return getDesiredWorkloadAltsConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for direct-path (via ALTS) with workload identity.
+     * 
+ * + * .google.container.v1beta1.WorkloadALTSConfig desired_workload_alts_config = 62; + */ + public com.google.container.v1beta1.WorkloadALTSConfigOrBuilder getDesiredWorkloadAltsConfigOrBuilder() { + if (desiredWorkloadAltsConfigBuilder_ != null) { + return desiredWorkloadAltsConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredWorkloadAltsConfig_ == null ? + com.google.container.v1beta1.WorkloadALTSConfig.getDefaultInstance() : desiredWorkloadAltsConfig_; + } + } + /** + *
+     * Configuration for direct-path (via ALTS) with workload identity.
+     * 
+ * + * .google.container.v1beta1.WorkloadALTSConfig desired_workload_alts_config = 62; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadALTSConfig, com.google.container.v1beta1.WorkloadALTSConfig.Builder, com.google.container.v1beta1.WorkloadALTSConfigOrBuilder> + getDesiredWorkloadAltsConfigFieldBuilder() { + if (desiredWorkloadAltsConfigBuilder_ == null) { + desiredWorkloadAltsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadALTSConfig, com.google.container.v1beta1.WorkloadALTSConfig.Builder, com.google.container.v1beta1.WorkloadALTSConfigOrBuilder>( + getDesiredWorkloadAltsConfig(), + getParentForChildren(), + isClean()); + desiredWorkloadAltsConfig_ = null; + } + return desiredWorkloadAltsConfigBuilder_; + } + + 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 ((bitField0_ & 0x80000000) != 0); + } + /** + *
+     * 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; + } else { + desiredShieldedNodesBuilder_.setMessage(value); + } + bitField0_ |= 0x80000000; + onChanged(); + 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(); + } else { + desiredShieldedNodesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x80000000; + onChanged(); + 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 (((bitField0_ & 0x80000000) != 0) && + desiredShieldedNodes_ != null && + desiredShieldedNodes_ != com.google.container.v1beta1.ShieldedNodes.getDefaultInstance()) { + getDesiredShieldedNodesBuilder().mergeFrom(value); + } else { + desiredShieldedNodes_ = value; + } + } else { + desiredShieldedNodesBuilder_.mergeFrom(value); + } + if (desiredShieldedNodes_ != null) { + bitField0_ |= 0x80000000; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1beta1.ShieldedNodes desired_shielded_nodes = 48; + */ + public Builder clearDesiredShieldedNodes() { + bitField0_ = (bitField0_ & ~0x80000000); + desiredShieldedNodes_ = null; + if (desiredShieldedNodesBuilder_ != null) { + desiredShieldedNodesBuilder_.dispose(); + desiredShieldedNodesBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for Shielded Nodes.
+     * 
+ * + * .google.container.v1beta1.ShieldedNodes desired_shielded_nodes = 48; + */ + public com.google.container.v1beta1.ShieldedNodes.Builder getDesiredShieldedNodesBuilder() { + bitField0_ |= 0x80000000; + 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.CostManagementConfig desiredCostManagementConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.CostManagementConfig, com.google.container.v1beta1.CostManagementConfig.Builder, com.google.container.v1beta1.CostManagementConfigOrBuilder> desiredCostManagementConfigBuilder_; + /** + *
+     * The desired configuration for the fine-grained cost management feature.
+     * 
+ * + * .google.container.v1beta1.CostManagementConfig desired_cost_management_config = 49; + * @return Whether the desiredCostManagementConfig field is set. + */ + public boolean hasDesiredCostManagementConfig() { + return ((bitField1_ & 0x00000001) != 0); + } + /** + *
+     * The desired configuration for the fine-grained cost management feature.
+     * 
+ * + * .google.container.v1beta1.CostManagementConfig desired_cost_management_config = 49; + * @return The desiredCostManagementConfig. + */ + public com.google.container.v1beta1.CostManagementConfig getDesiredCostManagementConfig() { + if (desiredCostManagementConfigBuilder_ == null) { + return desiredCostManagementConfig_ == null ? com.google.container.v1beta1.CostManagementConfig.getDefaultInstance() : desiredCostManagementConfig_; + } else { + return desiredCostManagementConfigBuilder_.getMessage(); + } + } + /** + *
+     * The desired configuration for the fine-grained cost management feature.
+     * 
+ * + * .google.container.v1beta1.CostManagementConfig desired_cost_management_config = 49; + */ + public Builder setDesiredCostManagementConfig(com.google.container.v1beta1.CostManagementConfig value) { + if (desiredCostManagementConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredCostManagementConfig_ = value; + } else { + desiredCostManagementConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The desired configuration for the fine-grained cost management feature.
+     * 
+ * + * .google.container.v1beta1.CostManagementConfig desired_cost_management_config = 49; + */ + public Builder setDesiredCostManagementConfig( + com.google.container.v1beta1.CostManagementConfig.Builder builderForValue) { + if (desiredCostManagementConfigBuilder_ == null) { + desiredCostManagementConfig_ = builderForValue.build(); + } else { + desiredCostManagementConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The desired configuration for the fine-grained cost management feature.
+     * 
+ * + * .google.container.v1beta1.CostManagementConfig desired_cost_management_config = 49; + */ + public Builder mergeDesiredCostManagementConfig(com.google.container.v1beta1.CostManagementConfig value) { + if (desiredCostManagementConfigBuilder_ == null) { + if (((bitField1_ & 0x00000001) != 0) && + desiredCostManagementConfig_ != null && + desiredCostManagementConfig_ != com.google.container.v1beta1.CostManagementConfig.getDefaultInstance()) { + getDesiredCostManagementConfigBuilder().mergeFrom(value); + } else { + desiredCostManagementConfig_ = value; + } + } else { + desiredCostManagementConfigBuilder_.mergeFrom(value); + } + if (desiredCostManagementConfig_ != null) { + bitField1_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+     * The desired configuration for the fine-grained cost management feature.
+     * 
+ * + * .google.container.v1beta1.CostManagementConfig desired_cost_management_config = 49; + */ + public Builder clearDesiredCostManagementConfig() { + bitField1_ = (bitField1_ & ~0x00000001); + desiredCostManagementConfig_ = null; + if (desiredCostManagementConfigBuilder_ != null) { + desiredCostManagementConfigBuilder_.dispose(); + desiredCostManagementConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired configuration for the fine-grained cost management feature.
+     * 
+ * + * .google.container.v1beta1.CostManagementConfig desired_cost_management_config = 49; + */ + public com.google.container.v1beta1.CostManagementConfig.Builder getDesiredCostManagementConfigBuilder() { + bitField1_ |= 0x00000001; + onChanged(); + return getDesiredCostManagementConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The desired configuration for the fine-grained cost management feature.
+     * 
+ * + * .google.container.v1beta1.CostManagementConfig desired_cost_management_config = 49; + */ + public com.google.container.v1beta1.CostManagementConfigOrBuilder getDesiredCostManagementConfigOrBuilder() { + if (desiredCostManagementConfigBuilder_ != null) { + return desiredCostManagementConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredCostManagementConfig_ == null ? + com.google.container.v1beta1.CostManagementConfig.getDefaultInstance() : desiredCostManagementConfig_; + } + } + /** + *
+     * The desired configuration for the fine-grained cost management feature.
+     * 
+ * + * .google.container.v1beta1.CostManagementConfig desired_cost_management_config = 49; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.CostManagementConfig, com.google.container.v1beta1.CostManagementConfig.Builder, com.google.container.v1beta1.CostManagementConfigOrBuilder> + getDesiredCostManagementConfigFieldBuilder() { + if (desiredCostManagementConfigBuilder_ == null) { + desiredCostManagementConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.CostManagementConfig, com.google.container.v1beta1.CostManagementConfig.Builder, com.google.container.v1beta1.CostManagementConfigOrBuilder>( + getDesiredCostManagementConfig(), + getParentForChildren(), + isClean()); + desiredCostManagementConfig_ = null; + } + return desiredCostManagementConfigBuilder_; + } + + 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 ((bitField1_ & 0x00000002) != 0); + } + /** + *
+     * 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; + } else { + desiredMasterBuilder_.setMessage(value); + } + bitField1_ |= 0x00000002; + onChanged(); + 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(); + } else { + desiredMasterBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000002; + onChanged(); + 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 (((bitField1_ & 0x00000002) != 0) && + desiredMaster_ != null && + desiredMaster_ != com.google.container.v1beta1.Master.getDefaultInstance()) { + getDesiredMasterBuilder().mergeFrom(value); + } else { + desiredMaster_ = value; + } + } else { + desiredMasterBuilder_.mergeFrom(value); + } + if (desiredMaster_ != null) { + bitField1_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + *
+     * Configuration for master components.
+     * 
+ * + * .google.container.v1beta1.Master desired_master = 52; + */ + public Builder clearDesiredMaster() { + bitField1_ = (bitField1_ & ~0x00000002); + desiredMaster_ = null; + if (desiredMasterBuilder_ != null) { + desiredMasterBuilder_.dispose(); + desiredMasterBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for master components.
+     * 
+ * + * .google.container.v1beta1.Master desired_master = 52; + */ + public com.google.container.v1beta1.Master.Builder getDesiredMasterBuilder() { + bitField1_ |= 0x00000002; + 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_; + } + + private com.google.container.v1beta1.DNSConfig desiredDnsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DNSConfig, com.google.container.v1beta1.DNSConfig.Builder, com.google.container.v1beta1.DNSConfigOrBuilder> desiredDnsConfigBuilder_; + /** + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1beta1.DNSConfig desired_dns_config = 53; + * @return Whether the desiredDnsConfig field is set. + */ + public boolean hasDesiredDnsConfig() { + return ((bitField1_ & 0x00000004) != 0); + } + /** + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1beta1.DNSConfig desired_dns_config = 53; + * @return The desiredDnsConfig. + */ + public com.google.container.v1beta1.DNSConfig getDesiredDnsConfig() { + if (desiredDnsConfigBuilder_ == null) { + return desiredDnsConfig_ == null ? com.google.container.v1beta1.DNSConfig.getDefaultInstance() : desiredDnsConfig_; + } else { + return desiredDnsConfigBuilder_.getMessage(); + } + } + /** + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1beta1.DNSConfig desired_dns_config = 53; + */ + public Builder setDesiredDnsConfig(com.google.container.v1beta1.DNSConfig value) { + if (desiredDnsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredDnsConfig_ = value; + } else { + desiredDnsConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1beta1.DNSConfig desired_dns_config = 53; + */ + public Builder setDesiredDnsConfig( + com.google.container.v1beta1.DNSConfig.Builder builderForValue) { + if (desiredDnsConfigBuilder_ == null) { + desiredDnsConfig_ = builderForValue.build(); + } else { + desiredDnsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1beta1.DNSConfig desired_dns_config = 53; + */ + public Builder mergeDesiredDnsConfig(com.google.container.v1beta1.DNSConfig value) { + if (desiredDnsConfigBuilder_ == null) { + if (((bitField1_ & 0x00000004) != 0) && + desiredDnsConfig_ != null && + desiredDnsConfig_ != com.google.container.v1beta1.DNSConfig.getDefaultInstance()) { + getDesiredDnsConfigBuilder().mergeFrom(value); + } else { + desiredDnsConfig_ = value; + } + } else { + desiredDnsConfigBuilder_.mergeFrom(value); + } + if (desiredDnsConfig_ != null) { + bitField1_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1beta1.DNSConfig desired_dns_config = 53; + */ + public Builder clearDesiredDnsConfig() { + bitField1_ = (bitField1_ & ~0x00000004); + desiredDnsConfig_ = null; + if (desiredDnsConfigBuilder_ != null) { + desiredDnsConfigBuilder_.dispose(); + desiredDnsConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1beta1.DNSConfig desired_dns_config = 53; + */ + public com.google.container.v1beta1.DNSConfig.Builder getDesiredDnsConfigBuilder() { + bitField1_ |= 0x00000004; + onChanged(); + return getDesiredDnsConfigFieldBuilder().getBuilder(); + } + /** + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1beta1.DNSConfig desired_dns_config = 53; + */ + public com.google.container.v1beta1.DNSConfigOrBuilder getDesiredDnsConfigOrBuilder() { + if (desiredDnsConfigBuilder_ != null) { + return desiredDnsConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredDnsConfig_ == null ? + com.google.container.v1beta1.DNSConfig.getDefaultInstance() : desiredDnsConfig_; + } + } + /** + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1beta1.DNSConfig desired_dns_config = 53; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DNSConfig, com.google.container.v1beta1.DNSConfig.Builder, com.google.container.v1beta1.DNSConfigOrBuilder> + getDesiredDnsConfigFieldBuilder() { + if (desiredDnsConfigBuilder_ == null) { + desiredDnsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DNSConfig, com.google.container.v1beta1.DNSConfig.Builder, com.google.container.v1beta1.DNSConfigOrBuilder>( + getDesiredDnsConfig(), + getParentForChildren(), + isClean()); + desiredDnsConfig_ = null; + } + return desiredDnsConfigBuilder_; + } + + private com.google.container.v1beta1.ServiceExternalIPsConfig desiredServiceExternalIpsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ServiceExternalIPsConfig, com.google.container.v1beta1.ServiceExternalIPsConfig.Builder, com.google.container.v1beta1.ServiceExternalIPsConfigOrBuilder> desiredServiceExternalIpsConfigBuilder_; + /** + *
+     * ServiceExternalIPsConfig specifies the config for the use of Services with
+     * ExternalIPs field.
+     * 
+ * + * .google.container.v1beta1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + * @return Whether the desiredServiceExternalIpsConfig field is set. + */ + public boolean hasDesiredServiceExternalIpsConfig() { + return ((bitField1_ & 0x00000008) != 0); + } + /** + *
+     * ServiceExternalIPsConfig specifies the config for the use of Services with
+     * ExternalIPs field.
+     * 
+ * + * .google.container.v1beta1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + * @return The desiredServiceExternalIpsConfig. + */ + public com.google.container.v1beta1.ServiceExternalIPsConfig getDesiredServiceExternalIpsConfig() { + if (desiredServiceExternalIpsConfigBuilder_ == null) { + return desiredServiceExternalIpsConfig_ == null ? com.google.container.v1beta1.ServiceExternalIPsConfig.getDefaultInstance() : desiredServiceExternalIpsConfig_; + } else { + return desiredServiceExternalIpsConfigBuilder_.getMessage(); + } + } + /** + *
+     * ServiceExternalIPsConfig specifies the config for the use of Services with
+     * ExternalIPs field.
+     * 
+ * + * .google.container.v1beta1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + */ + public Builder setDesiredServiceExternalIpsConfig(com.google.container.v1beta1.ServiceExternalIPsConfig value) { + if (desiredServiceExternalIpsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredServiceExternalIpsConfig_ = value; + } else { + desiredServiceExternalIpsConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * ServiceExternalIPsConfig specifies the config for the use of Services with
+     * ExternalIPs field.
+     * 
+ * + * .google.container.v1beta1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + */ + public Builder setDesiredServiceExternalIpsConfig( + com.google.container.v1beta1.ServiceExternalIPsConfig.Builder builderForValue) { + if (desiredServiceExternalIpsConfigBuilder_ == null) { + desiredServiceExternalIpsConfig_ = builderForValue.build(); + } else { + desiredServiceExternalIpsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * ServiceExternalIPsConfig specifies the config for the use of Services with
+     * ExternalIPs field.
+     * 
+ * + * .google.container.v1beta1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + */ + public Builder mergeDesiredServiceExternalIpsConfig(com.google.container.v1beta1.ServiceExternalIPsConfig value) { + if (desiredServiceExternalIpsConfigBuilder_ == null) { + if (((bitField1_ & 0x00000008) != 0) && + desiredServiceExternalIpsConfig_ != null && + desiredServiceExternalIpsConfig_ != com.google.container.v1beta1.ServiceExternalIPsConfig.getDefaultInstance()) { + getDesiredServiceExternalIpsConfigBuilder().mergeFrom(value); + } else { + desiredServiceExternalIpsConfig_ = value; + } + } else { + desiredServiceExternalIpsConfigBuilder_.mergeFrom(value); + } + if (desiredServiceExternalIpsConfig_ != null) { + bitField1_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + *
+     * ServiceExternalIPsConfig specifies the config for the use of Services with
+     * ExternalIPs field.
+     * 
+ * + * .google.container.v1beta1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + */ + public Builder clearDesiredServiceExternalIpsConfig() { + bitField1_ = (bitField1_ & ~0x00000008); + desiredServiceExternalIpsConfig_ = null; + if (desiredServiceExternalIpsConfigBuilder_ != null) { + desiredServiceExternalIpsConfigBuilder_.dispose(); + desiredServiceExternalIpsConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * ServiceExternalIPsConfig specifies the config for the use of Services with
+     * ExternalIPs field.
+     * 
+ * + * .google.container.v1beta1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + */ + public com.google.container.v1beta1.ServiceExternalIPsConfig.Builder getDesiredServiceExternalIpsConfigBuilder() { + bitField1_ |= 0x00000008; + onChanged(); + return getDesiredServiceExternalIpsConfigFieldBuilder().getBuilder(); + } + /** + *
+     * ServiceExternalIPsConfig specifies the config for the use of Services with
+     * ExternalIPs field.
+     * 
+ * + * .google.container.v1beta1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + */ + public com.google.container.v1beta1.ServiceExternalIPsConfigOrBuilder getDesiredServiceExternalIpsConfigOrBuilder() { + if (desiredServiceExternalIpsConfigBuilder_ != null) { + return desiredServiceExternalIpsConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredServiceExternalIpsConfig_ == null ? + com.google.container.v1beta1.ServiceExternalIPsConfig.getDefaultInstance() : desiredServiceExternalIpsConfig_; + } + } + /** + *
+     * ServiceExternalIPsConfig specifies the config for the use of Services with
+     * ExternalIPs field.
+     * 
+ * + * .google.container.v1beta1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ServiceExternalIPsConfig, com.google.container.v1beta1.ServiceExternalIPsConfig.Builder, com.google.container.v1beta1.ServiceExternalIPsConfigOrBuilder> + getDesiredServiceExternalIpsConfigFieldBuilder() { + if (desiredServiceExternalIpsConfigBuilder_ == null) { + desiredServiceExternalIpsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ServiceExternalIPsConfig, com.google.container.v1beta1.ServiceExternalIPsConfig.Builder, com.google.container.v1beta1.ServiceExternalIPsConfigOrBuilder>( + getDesiredServiceExternalIpsConfig(), + getParentForChildren(), + isClean()); + desiredServiceExternalIpsConfig_ = null; + } + return desiredServiceExternalIpsConfigBuilder_; + } + + private com.google.container.v1beta1.AuthenticatorGroupsConfig desiredAuthenticatorGroupsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AuthenticatorGroupsConfig, com.google.container.v1beta1.AuthenticatorGroupsConfig.Builder, com.google.container.v1beta1.AuthenticatorGroupsConfigOrBuilder> desiredAuthenticatorGroupsConfigBuilder_; + /** + *
+     * AuthenticatorGroupsConfig specifies the config for the cluster security
+     * groups settings.
+     * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * @return Whether the desiredAuthenticatorGroupsConfig field is set. + */ + public boolean hasDesiredAuthenticatorGroupsConfig() { + return ((bitField1_ & 0x00000010) != 0); + } + /** + *
+     * AuthenticatorGroupsConfig specifies the config for the cluster security
+     * groups settings.
+     * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * @return The desiredAuthenticatorGroupsConfig. + */ + public com.google.container.v1beta1.AuthenticatorGroupsConfig getDesiredAuthenticatorGroupsConfig() { + if (desiredAuthenticatorGroupsConfigBuilder_ == null) { + return desiredAuthenticatorGroupsConfig_ == null ? com.google.container.v1beta1.AuthenticatorGroupsConfig.getDefaultInstance() : desiredAuthenticatorGroupsConfig_; + } else { + return desiredAuthenticatorGroupsConfigBuilder_.getMessage(); + } + } + /** + *
+     * AuthenticatorGroupsConfig specifies the config for the cluster security
+     * groups settings.
+     * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + */ + public Builder setDesiredAuthenticatorGroupsConfig(com.google.container.v1beta1.AuthenticatorGroupsConfig value) { + if (desiredAuthenticatorGroupsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredAuthenticatorGroupsConfig_ = value; + } else { + desiredAuthenticatorGroupsConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * AuthenticatorGroupsConfig specifies the config for the cluster security
+     * groups settings.
+     * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + */ + public Builder setDesiredAuthenticatorGroupsConfig( + com.google.container.v1beta1.AuthenticatorGroupsConfig.Builder builderForValue) { + if (desiredAuthenticatorGroupsConfigBuilder_ == null) { + desiredAuthenticatorGroupsConfig_ = builderForValue.build(); + } else { + desiredAuthenticatorGroupsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * AuthenticatorGroupsConfig specifies the config for the cluster security
+     * groups settings.
+     * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + */ + public Builder mergeDesiredAuthenticatorGroupsConfig(com.google.container.v1beta1.AuthenticatorGroupsConfig value) { + if (desiredAuthenticatorGroupsConfigBuilder_ == null) { + if (((bitField1_ & 0x00000010) != 0) && + desiredAuthenticatorGroupsConfig_ != null && + desiredAuthenticatorGroupsConfig_ != com.google.container.v1beta1.AuthenticatorGroupsConfig.getDefaultInstance()) { + getDesiredAuthenticatorGroupsConfigBuilder().mergeFrom(value); + } else { + desiredAuthenticatorGroupsConfig_ = value; + } + } else { + desiredAuthenticatorGroupsConfigBuilder_.mergeFrom(value); + } + if (desiredAuthenticatorGroupsConfig_ != null) { + bitField1_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + *
+     * AuthenticatorGroupsConfig specifies the config for the cluster security
+     * groups settings.
+     * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + */ + public Builder clearDesiredAuthenticatorGroupsConfig() { + bitField1_ = (bitField1_ & ~0x00000010); + desiredAuthenticatorGroupsConfig_ = null; + if (desiredAuthenticatorGroupsConfigBuilder_ != null) { + desiredAuthenticatorGroupsConfigBuilder_.dispose(); + desiredAuthenticatorGroupsConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * AuthenticatorGroupsConfig specifies the config for the cluster security
+     * groups settings.
+     * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + */ + public com.google.container.v1beta1.AuthenticatorGroupsConfig.Builder getDesiredAuthenticatorGroupsConfigBuilder() { + bitField1_ |= 0x00000010; + onChanged(); + return getDesiredAuthenticatorGroupsConfigFieldBuilder().getBuilder(); + } + /** + *
+     * AuthenticatorGroupsConfig specifies the config for the cluster security
+     * groups settings.
+     * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + */ + public com.google.container.v1beta1.AuthenticatorGroupsConfigOrBuilder getDesiredAuthenticatorGroupsConfigOrBuilder() { + if (desiredAuthenticatorGroupsConfigBuilder_ != null) { + return desiredAuthenticatorGroupsConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredAuthenticatorGroupsConfig_ == null ? + com.google.container.v1beta1.AuthenticatorGroupsConfig.getDefaultInstance() : desiredAuthenticatorGroupsConfig_; + } + } + /** + *
+     * AuthenticatorGroupsConfig specifies the config for the cluster security
+     * groups settings.
+     * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AuthenticatorGroupsConfig, com.google.container.v1beta1.AuthenticatorGroupsConfig.Builder, com.google.container.v1beta1.AuthenticatorGroupsConfigOrBuilder> + getDesiredAuthenticatorGroupsConfigFieldBuilder() { + if (desiredAuthenticatorGroupsConfigBuilder_ == null) { + desiredAuthenticatorGroupsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AuthenticatorGroupsConfig, com.google.container.v1beta1.AuthenticatorGroupsConfig.Builder, com.google.container.v1beta1.AuthenticatorGroupsConfigOrBuilder>( + getDesiredAuthenticatorGroupsConfig(), + getParentForChildren(), + isClean()); + desiredAuthenticatorGroupsConfig_ = null; + } + return desiredAuthenticatorGroupsConfigBuilder_; + } + + private com.google.container.v1beta1.LoggingConfig desiredLoggingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.LoggingConfig, com.google.container.v1beta1.LoggingConfig.Builder, com.google.container.v1beta1.LoggingConfigOrBuilder> desiredLoggingConfigBuilder_; + /** + *
+     * The desired logging configuration.
+     * 
+ * + * .google.container.v1beta1.LoggingConfig desired_logging_config = 64; + * @return Whether the desiredLoggingConfig field is set. + */ + public boolean hasDesiredLoggingConfig() { + return ((bitField1_ & 0x00000020) != 0); + } + /** + *
+     * The desired logging configuration.
+     * 
+ * + * .google.container.v1beta1.LoggingConfig desired_logging_config = 64; + * @return The desiredLoggingConfig. + */ + public com.google.container.v1beta1.LoggingConfig getDesiredLoggingConfig() { + if (desiredLoggingConfigBuilder_ == null) { + return desiredLoggingConfig_ == null ? com.google.container.v1beta1.LoggingConfig.getDefaultInstance() : desiredLoggingConfig_; + } else { + return desiredLoggingConfigBuilder_.getMessage(); + } + } + /** + *
+     * The desired logging configuration.
+     * 
+ * + * .google.container.v1beta1.LoggingConfig desired_logging_config = 64; + */ + public Builder setDesiredLoggingConfig(com.google.container.v1beta1.LoggingConfig value) { + if (desiredLoggingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredLoggingConfig_ = value; + } else { + desiredLoggingConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * The desired logging configuration.
+     * 
+ * + * .google.container.v1beta1.LoggingConfig desired_logging_config = 64; + */ + public Builder setDesiredLoggingConfig( + com.google.container.v1beta1.LoggingConfig.Builder builderForValue) { + if (desiredLoggingConfigBuilder_ == null) { + desiredLoggingConfig_ = builderForValue.build(); + } else { + desiredLoggingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * The desired logging configuration.
+     * 
+ * + * .google.container.v1beta1.LoggingConfig desired_logging_config = 64; + */ + public Builder mergeDesiredLoggingConfig(com.google.container.v1beta1.LoggingConfig value) { + if (desiredLoggingConfigBuilder_ == null) { + if (((bitField1_ & 0x00000020) != 0) && + desiredLoggingConfig_ != null && + desiredLoggingConfig_ != com.google.container.v1beta1.LoggingConfig.getDefaultInstance()) { + getDesiredLoggingConfigBuilder().mergeFrom(value); + } else { + desiredLoggingConfig_ = value; + } + } else { + desiredLoggingConfigBuilder_.mergeFrom(value); + } + if (desiredLoggingConfig_ != null) { + bitField1_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + *
+     * The desired logging configuration.
+     * 
+ * + * .google.container.v1beta1.LoggingConfig desired_logging_config = 64; + */ + public Builder clearDesiredLoggingConfig() { + bitField1_ = (bitField1_ & ~0x00000020); + desiredLoggingConfig_ = null; + if (desiredLoggingConfigBuilder_ != null) { + desiredLoggingConfigBuilder_.dispose(); + desiredLoggingConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired logging configuration.
+     * 
+ * + * .google.container.v1beta1.LoggingConfig desired_logging_config = 64; + */ + public com.google.container.v1beta1.LoggingConfig.Builder getDesiredLoggingConfigBuilder() { + bitField1_ |= 0x00000020; + onChanged(); + return getDesiredLoggingConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The desired logging configuration.
+     * 
+ * + * .google.container.v1beta1.LoggingConfig desired_logging_config = 64; + */ + public com.google.container.v1beta1.LoggingConfigOrBuilder getDesiredLoggingConfigOrBuilder() { + if (desiredLoggingConfigBuilder_ != null) { + return desiredLoggingConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredLoggingConfig_ == null ? + com.google.container.v1beta1.LoggingConfig.getDefaultInstance() : desiredLoggingConfig_; + } + } + /** + *
+     * The desired logging configuration.
+     * 
+ * + * .google.container.v1beta1.LoggingConfig desired_logging_config = 64; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.LoggingConfig, com.google.container.v1beta1.LoggingConfig.Builder, com.google.container.v1beta1.LoggingConfigOrBuilder> + getDesiredLoggingConfigFieldBuilder() { + if (desiredLoggingConfigBuilder_ == null) { + desiredLoggingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.LoggingConfig, com.google.container.v1beta1.LoggingConfig.Builder, com.google.container.v1beta1.LoggingConfigOrBuilder>( + getDesiredLoggingConfig(), + getParentForChildren(), + isClean()); + desiredLoggingConfig_ = null; + } + return desiredLoggingConfigBuilder_; + } + + private com.google.container.v1beta1.MonitoringConfig desiredMonitoringConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MonitoringConfig, com.google.container.v1beta1.MonitoringConfig.Builder, com.google.container.v1beta1.MonitoringConfigOrBuilder> desiredMonitoringConfigBuilder_; + /** + *
+     * The desired monitoring configuration.
+     * 
+ * + * .google.container.v1beta1.MonitoringConfig desired_monitoring_config = 65; + * @return Whether the desiredMonitoringConfig field is set. + */ + public boolean hasDesiredMonitoringConfig() { + return ((bitField1_ & 0x00000040) != 0); + } + /** + *
+     * The desired monitoring configuration.
+     * 
+ * + * .google.container.v1beta1.MonitoringConfig desired_monitoring_config = 65; + * @return The desiredMonitoringConfig. + */ + public com.google.container.v1beta1.MonitoringConfig getDesiredMonitoringConfig() { + if (desiredMonitoringConfigBuilder_ == null) { + return desiredMonitoringConfig_ == null ? com.google.container.v1beta1.MonitoringConfig.getDefaultInstance() : desiredMonitoringConfig_; + } else { + return desiredMonitoringConfigBuilder_.getMessage(); + } + } + /** + *
+     * The desired monitoring configuration.
+     * 
+ * + * .google.container.v1beta1.MonitoringConfig desired_monitoring_config = 65; + */ + public Builder setDesiredMonitoringConfig(com.google.container.v1beta1.MonitoringConfig value) { + if (desiredMonitoringConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredMonitoringConfig_ = value; + } else { + desiredMonitoringConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * The desired monitoring configuration.
+     * 
+ * + * .google.container.v1beta1.MonitoringConfig desired_monitoring_config = 65; + */ + public Builder setDesiredMonitoringConfig( + com.google.container.v1beta1.MonitoringConfig.Builder builderForValue) { + if (desiredMonitoringConfigBuilder_ == null) { + desiredMonitoringConfig_ = builderForValue.build(); + } else { + desiredMonitoringConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * The desired monitoring configuration.
+     * 
+ * + * .google.container.v1beta1.MonitoringConfig desired_monitoring_config = 65; + */ + public Builder mergeDesiredMonitoringConfig(com.google.container.v1beta1.MonitoringConfig value) { + if (desiredMonitoringConfigBuilder_ == null) { + if (((bitField1_ & 0x00000040) != 0) && + desiredMonitoringConfig_ != null && + desiredMonitoringConfig_ != com.google.container.v1beta1.MonitoringConfig.getDefaultInstance()) { + getDesiredMonitoringConfigBuilder().mergeFrom(value); + } else { + desiredMonitoringConfig_ = value; + } + } else { + desiredMonitoringConfigBuilder_.mergeFrom(value); + } + if (desiredMonitoringConfig_ != null) { + bitField1_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + *
+     * The desired monitoring configuration.
+     * 
+ * + * .google.container.v1beta1.MonitoringConfig desired_monitoring_config = 65; + */ + public Builder clearDesiredMonitoringConfig() { + bitField1_ = (bitField1_ & ~0x00000040); + desiredMonitoringConfig_ = null; + if (desiredMonitoringConfigBuilder_ != null) { + desiredMonitoringConfigBuilder_.dispose(); + desiredMonitoringConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired monitoring configuration.
+     * 
+ * + * .google.container.v1beta1.MonitoringConfig desired_monitoring_config = 65; + */ + public com.google.container.v1beta1.MonitoringConfig.Builder getDesiredMonitoringConfigBuilder() { + bitField1_ |= 0x00000040; + onChanged(); + return getDesiredMonitoringConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The desired monitoring configuration.
+     * 
+ * + * .google.container.v1beta1.MonitoringConfig desired_monitoring_config = 65; + */ + public com.google.container.v1beta1.MonitoringConfigOrBuilder getDesiredMonitoringConfigOrBuilder() { + if (desiredMonitoringConfigBuilder_ != null) { + return desiredMonitoringConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredMonitoringConfig_ == null ? + com.google.container.v1beta1.MonitoringConfig.getDefaultInstance() : desiredMonitoringConfig_; + } + } + /** + *
+     * The desired monitoring configuration.
+     * 
+ * + * .google.container.v1beta1.MonitoringConfig desired_monitoring_config = 65; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MonitoringConfig, com.google.container.v1beta1.MonitoringConfig.Builder, com.google.container.v1beta1.MonitoringConfigOrBuilder> + getDesiredMonitoringConfigFieldBuilder() { + if (desiredMonitoringConfigBuilder_ == null) { + desiredMonitoringConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MonitoringConfig, com.google.container.v1beta1.MonitoringConfig.Builder, com.google.container.v1beta1.MonitoringConfigOrBuilder>( + getDesiredMonitoringConfig(), + getParentForChildren(), + isClean()); + desiredMonitoringConfig_ = null; + } + return desiredMonitoringConfigBuilder_; + } + + private com.google.container.v1beta1.IdentityServiceConfig desiredIdentityServiceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.IdentityServiceConfig, com.google.container.v1beta1.IdentityServiceConfig.Builder, com.google.container.v1beta1.IdentityServiceConfigOrBuilder> desiredIdentityServiceConfigBuilder_; + /** + *
+     * The desired Identity Service component configuration.
+     * 
+ * + * .google.container.v1beta1.IdentityServiceConfig desired_identity_service_config = 66; + * @return Whether the desiredIdentityServiceConfig field is set. + */ + public boolean hasDesiredIdentityServiceConfig() { + return ((bitField1_ & 0x00000080) != 0); + } + /** + *
+     * The desired Identity Service component configuration.
+     * 
+ * + * .google.container.v1beta1.IdentityServiceConfig desired_identity_service_config = 66; + * @return The desiredIdentityServiceConfig. + */ + public com.google.container.v1beta1.IdentityServiceConfig getDesiredIdentityServiceConfig() { + if (desiredIdentityServiceConfigBuilder_ == null) { + return desiredIdentityServiceConfig_ == null ? com.google.container.v1beta1.IdentityServiceConfig.getDefaultInstance() : desiredIdentityServiceConfig_; + } else { + return desiredIdentityServiceConfigBuilder_.getMessage(); + } + } + /** + *
+     * The desired Identity Service component configuration.
+     * 
+ * + * .google.container.v1beta1.IdentityServiceConfig desired_identity_service_config = 66; + */ + public Builder setDesiredIdentityServiceConfig(com.google.container.v1beta1.IdentityServiceConfig value) { + if (desiredIdentityServiceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredIdentityServiceConfig_ = value; + } else { + desiredIdentityServiceConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * The desired Identity Service component configuration.
+     * 
+ * + * .google.container.v1beta1.IdentityServiceConfig desired_identity_service_config = 66; + */ + public Builder setDesiredIdentityServiceConfig( + com.google.container.v1beta1.IdentityServiceConfig.Builder builderForValue) { + if (desiredIdentityServiceConfigBuilder_ == null) { + desiredIdentityServiceConfig_ = builderForValue.build(); + } else { + desiredIdentityServiceConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * The desired Identity Service component configuration.
+     * 
+ * + * .google.container.v1beta1.IdentityServiceConfig desired_identity_service_config = 66; + */ + public Builder mergeDesiredIdentityServiceConfig(com.google.container.v1beta1.IdentityServiceConfig value) { + if (desiredIdentityServiceConfigBuilder_ == null) { + if (((bitField1_ & 0x00000080) != 0) && + desiredIdentityServiceConfig_ != null && + desiredIdentityServiceConfig_ != com.google.container.v1beta1.IdentityServiceConfig.getDefaultInstance()) { + getDesiredIdentityServiceConfigBuilder().mergeFrom(value); + } else { + desiredIdentityServiceConfig_ = value; + } + } else { + desiredIdentityServiceConfigBuilder_.mergeFrom(value); + } + if (desiredIdentityServiceConfig_ != null) { + bitField1_ |= 0x00000080; + onChanged(); + } + return this; + } + /** + *
+     * The desired Identity Service component configuration.
+     * 
+ * + * .google.container.v1beta1.IdentityServiceConfig desired_identity_service_config = 66; + */ + public Builder clearDesiredIdentityServiceConfig() { + bitField1_ = (bitField1_ & ~0x00000080); + desiredIdentityServiceConfig_ = null; + if (desiredIdentityServiceConfigBuilder_ != null) { + desiredIdentityServiceConfigBuilder_.dispose(); + desiredIdentityServiceConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired Identity Service component configuration.
+     * 
+ * + * .google.container.v1beta1.IdentityServiceConfig desired_identity_service_config = 66; + */ + public com.google.container.v1beta1.IdentityServiceConfig.Builder getDesiredIdentityServiceConfigBuilder() { + bitField1_ |= 0x00000080; + onChanged(); + return getDesiredIdentityServiceConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The desired Identity Service component configuration.
+     * 
+ * + * .google.container.v1beta1.IdentityServiceConfig desired_identity_service_config = 66; + */ + public com.google.container.v1beta1.IdentityServiceConfigOrBuilder getDesiredIdentityServiceConfigOrBuilder() { + if (desiredIdentityServiceConfigBuilder_ != null) { + return desiredIdentityServiceConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredIdentityServiceConfig_ == null ? + com.google.container.v1beta1.IdentityServiceConfig.getDefaultInstance() : desiredIdentityServiceConfig_; + } + } + /** + *
+     * The desired Identity Service component configuration.
+     * 
+ * + * .google.container.v1beta1.IdentityServiceConfig desired_identity_service_config = 66; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.IdentityServiceConfig, com.google.container.v1beta1.IdentityServiceConfig.Builder, com.google.container.v1beta1.IdentityServiceConfigOrBuilder> + getDesiredIdentityServiceConfigFieldBuilder() { + if (desiredIdentityServiceConfigBuilder_ == null) { + desiredIdentityServiceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.IdentityServiceConfig, com.google.container.v1beta1.IdentityServiceConfig.Builder, com.google.container.v1beta1.IdentityServiceConfigOrBuilder>( + getDesiredIdentityServiceConfig(), + getParentForChildren(), + isClean()); + desiredIdentityServiceConfig_ = null; + } + return desiredIdentityServiceConfigBuilder_; + } + + private boolean desiredEnablePrivateEndpoint_ ; + /** + *
+     * Enable/Disable private endpoint for the cluster's master.
+     * 
+ * + * optional bool desired_enable_private_endpoint = 71; + * @return Whether the desiredEnablePrivateEndpoint field is set. + */ + @java.lang.Override + public boolean hasDesiredEnablePrivateEndpoint() { + return ((bitField1_ & 0x00000100) != 0); + } + /** + *
+     * Enable/Disable private endpoint for the cluster's master.
+     * 
+ * + * optional bool desired_enable_private_endpoint = 71; + * @return The desiredEnablePrivateEndpoint. + */ + @java.lang.Override + public boolean getDesiredEnablePrivateEndpoint() { + return desiredEnablePrivateEndpoint_; + } + /** + *
+     * Enable/Disable private endpoint for the cluster's master.
+     * 
+ * + * optional bool desired_enable_private_endpoint = 71; + * @param value The desiredEnablePrivateEndpoint to set. + * @return This builder for chaining. + */ + public Builder setDesiredEnablePrivateEndpoint(boolean value) { + + desiredEnablePrivateEndpoint_ = value; + bitField1_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * Enable/Disable private endpoint for the cluster's master.
+     * 
+ * + * optional bool desired_enable_private_endpoint = 71; + * @return This builder for chaining. + */ + public Builder clearDesiredEnablePrivateEndpoint() { + bitField1_ = (bitField1_ & ~0x00000100); + desiredEnablePrivateEndpoint_ = false; + onChanged(); + return this; + } + + private com.google.container.v1beta1.NetworkTags desiredNodePoolAutoConfigNetworkTags_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkTags, com.google.container.v1beta1.NetworkTags.Builder, com.google.container.v1beta1.NetworkTagsOrBuilder> desiredNodePoolAutoConfigNetworkTagsBuilder_; + /** + *
+     * The desired network tags that apply to all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1beta1.NetworkTags desired_node_pool_auto_config_network_tags = 110; + * @return Whether the desiredNodePoolAutoConfigNetworkTags field is set. + */ + public boolean hasDesiredNodePoolAutoConfigNetworkTags() { + return ((bitField1_ & 0x00000200) != 0); + } + /** + *
+     * The desired network tags that apply to all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1beta1.NetworkTags desired_node_pool_auto_config_network_tags = 110; + * @return The desiredNodePoolAutoConfigNetworkTags. + */ + public com.google.container.v1beta1.NetworkTags getDesiredNodePoolAutoConfigNetworkTags() { + if (desiredNodePoolAutoConfigNetworkTagsBuilder_ == null) { + return desiredNodePoolAutoConfigNetworkTags_ == null ? com.google.container.v1beta1.NetworkTags.getDefaultInstance() : desiredNodePoolAutoConfigNetworkTags_; + } else { + return desiredNodePoolAutoConfigNetworkTagsBuilder_.getMessage(); + } + } + /** + *
+     * The desired network tags that apply to all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1beta1.NetworkTags desired_node_pool_auto_config_network_tags = 110; + */ + public Builder setDesiredNodePoolAutoConfigNetworkTags(com.google.container.v1beta1.NetworkTags value) { + if (desiredNodePoolAutoConfigNetworkTagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredNodePoolAutoConfigNetworkTags_ = value; + } else { + desiredNodePoolAutoConfigNetworkTagsBuilder_.setMessage(value); + } + bitField1_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * The desired network tags that apply to all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1beta1.NetworkTags desired_node_pool_auto_config_network_tags = 110; + */ + public Builder setDesiredNodePoolAutoConfigNetworkTags( + com.google.container.v1beta1.NetworkTags.Builder builderForValue) { + if (desiredNodePoolAutoConfigNetworkTagsBuilder_ == null) { + desiredNodePoolAutoConfigNetworkTags_ = builderForValue.build(); + } else { + desiredNodePoolAutoConfigNetworkTagsBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * The desired network tags that apply to all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1beta1.NetworkTags desired_node_pool_auto_config_network_tags = 110; + */ + public Builder mergeDesiredNodePoolAutoConfigNetworkTags(com.google.container.v1beta1.NetworkTags value) { + if (desiredNodePoolAutoConfigNetworkTagsBuilder_ == null) { + if (((bitField1_ & 0x00000200) != 0) && + desiredNodePoolAutoConfigNetworkTags_ != null && + desiredNodePoolAutoConfigNetworkTags_ != com.google.container.v1beta1.NetworkTags.getDefaultInstance()) { + getDesiredNodePoolAutoConfigNetworkTagsBuilder().mergeFrom(value); + } else { + desiredNodePoolAutoConfigNetworkTags_ = value; + } + } else { + desiredNodePoolAutoConfigNetworkTagsBuilder_.mergeFrom(value); + } + if (desiredNodePoolAutoConfigNetworkTags_ != null) { + bitField1_ |= 0x00000200; + onChanged(); + } + return this; + } + /** + *
+     * The desired network tags that apply to all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1beta1.NetworkTags desired_node_pool_auto_config_network_tags = 110; + */ + public Builder clearDesiredNodePoolAutoConfigNetworkTags() { + bitField1_ = (bitField1_ & ~0x00000200); + desiredNodePoolAutoConfigNetworkTags_ = null; + if (desiredNodePoolAutoConfigNetworkTagsBuilder_ != null) { + desiredNodePoolAutoConfigNetworkTagsBuilder_.dispose(); + desiredNodePoolAutoConfigNetworkTagsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired network tags that apply to all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1beta1.NetworkTags desired_node_pool_auto_config_network_tags = 110; + */ + public com.google.container.v1beta1.NetworkTags.Builder getDesiredNodePoolAutoConfigNetworkTagsBuilder() { + bitField1_ |= 0x00000200; + onChanged(); + return getDesiredNodePoolAutoConfigNetworkTagsFieldBuilder().getBuilder(); + } + /** + *
+     * The desired network tags that apply to all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1beta1.NetworkTags desired_node_pool_auto_config_network_tags = 110; + */ + public com.google.container.v1beta1.NetworkTagsOrBuilder getDesiredNodePoolAutoConfigNetworkTagsOrBuilder() { + if (desiredNodePoolAutoConfigNetworkTagsBuilder_ != null) { + return desiredNodePoolAutoConfigNetworkTagsBuilder_.getMessageOrBuilder(); + } else { + return desiredNodePoolAutoConfigNetworkTags_ == null ? + com.google.container.v1beta1.NetworkTags.getDefaultInstance() : desiredNodePoolAutoConfigNetworkTags_; + } + } + /** + *
+     * The desired network tags that apply to all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1beta1.NetworkTags desired_node_pool_auto_config_network_tags = 110; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkTags, com.google.container.v1beta1.NetworkTags.Builder, com.google.container.v1beta1.NetworkTagsOrBuilder> + getDesiredNodePoolAutoConfigNetworkTagsFieldBuilder() { + if (desiredNodePoolAutoConfigNetworkTagsBuilder_ == null) { + desiredNodePoolAutoConfigNetworkTagsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkTags, com.google.container.v1beta1.NetworkTags.Builder, com.google.container.v1beta1.NetworkTagsOrBuilder>( + getDesiredNodePoolAutoConfigNetworkTags(), + getParentForChildren(), + isClean()); + desiredNodePoolAutoConfigNetworkTags_ = null; + } + return desiredNodePoolAutoConfigNetworkTagsBuilder_; + } + + private com.google.container.v1beta1.ProtectConfig desiredProtectConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ProtectConfig, com.google.container.v1beta1.ProtectConfig.Builder, com.google.container.v1beta1.ProtectConfigOrBuilder> desiredProtectConfigBuilder_; + /** + *
+     * Deprecated: Use DesiredSecurityPostureConfig instead.
+     * Enable/Disable Protect API features for the cluster.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112 [deprecated = true]; + * @deprecated google.container.v1beta1.ClusterUpdate.desired_protect_config is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2606 + * @return Whether the desiredProtectConfig field is set. + */ + @java.lang.Deprecated public boolean hasDesiredProtectConfig() { + return ((bitField1_ & 0x00000400) != 0); + } + /** + *
+     * Deprecated: Use DesiredSecurityPostureConfig instead.
+     * Enable/Disable Protect API features for the cluster.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112 [deprecated = true]; + * @deprecated google.container.v1beta1.ClusterUpdate.desired_protect_config is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2606 + * @return The desiredProtectConfig. + */ + @java.lang.Deprecated public com.google.container.v1beta1.ProtectConfig getDesiredProtectConfig() { + if (desiredProtectConfigBuilder_ == null) { + return desiredProtectConfig_ == null ? com.google.container.v1beta1.ProtectConfig.getDefaultInstance() : desiredProtectConfig_; + } else { + return desiredProtectConfigBuilder_.getMessage(); + } + } + /** + *
+     * Deprecated: Use DesiredSecurityPostureConfig instead.
+     * Enable/Disable Protect API features for the cluster.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setDesiredProtectConfig(com.google.container.v1beta1.ProtectConfig value) { + if (desiredProtectConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredProtectConfig_ = value; + } else { + desiredProtectConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+     * Deprecated: Use DesiredSecurityPostureConfig instead.
+     * Enable/Disable Protect API features for the cluster.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setDesiredProtectConfig( + com.google.container.v1beta1.ProtectConfig.Builder builderForValue) { + if (desiredProtectConfigBuilder_ == null) { + desiredProtectConfig_ = builderForValue.build(); + } else { + desiredProtectConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+     * Deprecated: Use DesiredSecurityPostureConfig instead.
+     * Enable/Disable Protect API features for the cluster.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112 [deprecated = true]; + */ + @java.lang.Deprecated public Builder mergeDesiredProtectConfig(com.google.container.v1beta1.ProtectConfig value) { + if (desiredProtectConfigBuilder_ == null) { + if (((bitField1_ & 0x00000400) != 0) && + desiredProtectConfig_ != null && + desiredProtectConfig_ != com.google.container.v1beta1.ProtectConfig.getDefaultInstance()) { + getDesiredProtectConfigBuilder().mergeFrom(value); + } else { + desiredProtectConfig_ = value; + } + } else { + desiredProtectConfigBuilder_.mergeFrom(value); + } + if (desiredProtectConfig_ != null) { + bitField1_ |= 0x00000400; + onChanged(); + } + return this; + } + /** + *
+     * Deprecated: Use DesiredSecurityPostureConfig instead.
+     * Enable/Disable Protect API features for the cluster.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearDesiredProtectConfig() { + bitField1_ = (bitField1_ & ~0x00000400); + desiredProtectConfig_ = null; + if (desiredProtectConfigBuilder_ != null) { + desiredProtectConfigBuilder_.dispose(); + desiredProtectConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Deprecated: Use DesiredSecurityPostureConfig instead.
+     * Enable/Disable Protect API features for the cluster.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.container.v1beta1.ProtectConfig.Builder getDesiredProtectConfigBuilder() { + bitField1_ |= 0x00000400; + onChanged(); + return getDesiredProtectConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Deprecated: Use DesiredSecurityPostureConfig instead.
+     * Enable/Disable Protect API features for the cluster.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.container.v1beta1.ProtectConfigOrBuilder getDesiredProtectConfigOrBuilder() { + if (desiredProtectConfigBuilder_ != null) { + return desiredProtectConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredProtectConfig_ == null ? + com.google.container.v1beta1.ProtectConfig.getDefaultInstance() : desiredProtectConfig_; + } + } + /** + *
+     * Deprecated: Use DesiredSecurityPostureConfig instead.
+     * Enable/Disable Protect API features for the cluster.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112 [deprecated = true]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ProtectConfig, com.google.container.v1beta1.ProtectConfig.Builder, com.google.container.v1beta1.ProtectConfigOrBuilder> + getDesiredProtectConfigFieldBuilder() { + if (desiredProtectConfigBuilder_ == null) { + desiredProtectConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ProtectConfig, com.google.container.v1beta1.ProtectConfig.Builder, com.google.container.v1beta1.ProtectConfigOrBuilder>( + getDesiredProtectConfig(), + getParentForChildren(), + isClean()); + desiredProtectConfig_ = null; + } + return desiredProtectConfigBuilder_; + } + + private com.google.container.v1beta1.GatewayAPIConfig desiredGatewayApiConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GatewayAPIConfig, com.google.container.v1beta1.GatewayAPIConfig.Builder, com.google.container.v1beta1.GatewayAPIConfigOrBuilder> desiredGatewayApiConfigBuilder_; + /** + *
+     * The desired config of Gateway API on this cluster.
+     * 
+ * + * .google.container.v1beta1.GatewayAPIConfig desired_gateway_api_config = 114; + * @return Whether the desiredGatewayApiConfig field is set. + */ + public boolean hasDesiredGatewayApiConfig() { + return ((bitField1_ & 0x00000800) != 0); + } + /** + *
+     * The desired config of Gateway API on this cluster.
+     * 
+ * + * .google.container.v1beta1.GatewayAPIConfig desired_gateway_api_config = 114; + * @return The desiredGatewayApiConfig. + */ + public com.google.container.v1beta1.GatewayAPIConfig getDesiredGatewayApiConfig() { + if (desiredGatewayApiConfigBuilder_ == null) { + return desiredGatewayApiConfig_ == null ? com.google.container.v1beta1.GatewayAPIConfig.getDefaultInstance() : desiredGatewayApiConfig_; + } else { + return desiredGatewayApiConfigBuilder_.getMessage(); + } + } + /** + *
+     * The desired config of Gateway API on this cluster.
+     * 
+ * + * .google.container.v1beta1.GatewayAPIConfig desired_gateway_api_config = 114; + */ + public Builder setDesiredGatewayApiConfig(com.google.container.v1beta1.GatewayAPIConfig value) { + if (desiredGatewayApiConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredGatewayApiConfig_ = value; + } else { + desiredGatewayApiConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * The desired config of Gateway API on this cluster.
+     * 
+ * + * .google.container.v1beta1.GatewayAPIConfig desired_gateway_api_config = 114; + */ + public Builder setDesiredGatewayApiConfig( + com.google.container.v1beta1.GatewayAPIConfig.Builder builderForValue) { + if (desiredGatewayApiConfigBuilder_ == null) { + desiredGatewayApiConfig_ = builderForValue.build(); + } else { + desiredGatewayApiConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * The desired config of Gateway API on this cluster.
+     * 
+ * + * .google.container.v1beta1.GatewayAPIConfig desired_gateway_api_config = 114; + */ + public Builder mergeDesiredGatewayApiConfig(com.google.container.v1beta1.GatewayAPIConfig value) { + if (desiredGatewayApiConfigBuilder_ == null) { + if (((bitField1_ & 0x00000800) != 0) && + desiredGatewayApiConfig_ != null && + desiredGatewayApiConfig_ != com.google.container.v1beta1.GatewayAPIConfig.getDefaultInstance()) { + getDesiredGatewayApiConfigBuilder().mergeFrom(value); + } else { + desiredGatewayApiConfig_ = value; + } + } else { + desiredGatewayApiConfigBuilder_.mergeFrom(value); + } + if (desiredGatewayApiConfig_ != null) { + bitField1_ |= 0x00000800; + onChanged(); + } + return this; + } + /** + *
+     * The desired config of Gateway API on this cluster.
+     * 
+ * + * .google.container.v1beta1.GatewayAPIConfig desired_gateway_api_config = 114; + */ + public Builder clearDesiredGatewayApiConfig() { + bitField1_ = (bitField1_ & ~0x00000800); + desiredGatewayApiConfig_ = null; + if (desiredGatewayApiConfigBuilder_ != null) { + desiredGatewayApiConfigBuilder_.dispose(); + desiredGatewayApiConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired config of Gateway API on this cluster.
+     * 
+ * + * .google.container.v1beta1.GatewayAPIConfig desired_gateway_api_config = 114; + */ + public com.google.container.v1beta1.GatewayAPIConfig.Builder getDesiredGatewayApiConfigBuilder() { + bitField1_ |= 0x00000800; + onChanged(); + return getDesiredGatewayApiConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The desired config of Gateway API on this cluster.
+     * 
+ * + * .google.container.v1beta1.GatewayAPIConfig desired_gateway_api_config = 114; + */ + public com.google.container.v1beta1.GatewayAPIConfigOrBuilder getDesiredGatewayApiConfigOrBuilder() { + if (desiredGatewayApiConfigBuilder_ != null) { + return desiredGatewayApiConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredGatewayApiConfig_ == null ? + com.google.container.v1beta1.GatewayAPIConfig.getDefaultInstance() : desiredGatewayApiConfig_; + } + } + /** + *
+     * The desired config of Gateway API on this cluster.
+     * 
+ * + * .google.container.v1beta1.GatewayAPIConfig desired_gateway_api_config = 114; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GatewayAPIConfig, com.google.container.v1beta1.GatewayAPIConfig.Builder, com.google.container.v1beta1.GatewayAPIConfigOrBuilder> + getDesiredGatewayApiConfigFieldBuilder() { + if (desiredGatewayApiConfigBuilder_ == null) { + desiredGatewayApiConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GatewayAPIConfig, com.google.container.v1beta1.GatewayAPIConfig.Builder, com.google.container.v1beta1.GatewayAPIConfigOrBuilder>( + getDesiredGatewayApiConfig(), + getParentForChildren(), + isClean()); + desiredGatewayApiConfig_ = null; + } + return desiredGatewayApiConfigBuilder_; + } + + private java.lang.Object etag_ = ""; + /** + *
+     * The current etag of the cluster.
+     * If an etag is provided and does not match the current etag of the cluster,
+     * update will be blocked and an ABORTED error will be returned.
+     * 
+ * + * string etag = 115; + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The current etag of the cluster.
+     * If an etag is provided and does not match the current etag of the cluster,
+     * update will be blocked and an ABORTED error will be returned.
+     * 
+ * + * string etag = 115; + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString + getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The current etag of the cluster.
+     * If an etag is provided and does not match the current etag of the cluster,
+     * update will be blocked and an ABORTED error will be returned.
+     * 
+ * + * string etag = 115; + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + etag_ = value; + bitField1_ |= 0x00001000; + onChanged(); + return this; + } + /** + *
+     * The current etag of the cluster.
+     * If an etag is provided and does not match the current etag of the cluster,
+     * update will be blocked and an ABORTED error will be returned.
+     * 
+ * + * string etag = 115; + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField1_ = (bitField1_ & ~0x00001000); + onChanged(); + return this; + } + /** + *
+     * The current etag of the cluster.
+     * If an etag is provided and does not match the current etag of the cluster,
+     * update will be blocked and an ABORTED error will be returned.
+     * 
+ * + * string etag = 115; + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + etag_ = value; + bitField1_ |= 0x00001000; + onChanged(); + return this; + } + + private com.google.container.v1beta1.NodePoolLoggingConfig desiredNodePoolLoggingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolLoggingConfig, com.google.container.v1beta1.NodePoolLoggingConfig.Builder, com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder> desiredNodePoolLoggingConfigBuilder_; + /** + *
+     * The desired node pool logging configuration defaults for the cluster.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; + * @return Whether the desiredNodePoolLoggingConfig field is set. + */ + public boolean hasDesiredNodePoolLoggingConfig() { + return ((bitField1_ & 0x00002000) != 0); + } + /** + *
+     * The desired node pool logging configuration defaults for the cluster.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; + * @return The desiredNodePoolLoggingConfig. + */ + public com.google.container.v1beta1.NodePoolLoggingConfig getDesiredNodePoolLoggingConfig() { + if (desiredNodePoolLoggingConfigBuilder_ == null) { + return desiredNodePoolLoggingConfig_ == null ? com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance() : desiredNodePoolLoggingConfig_; + } else { + return desiredNodePoolLoggingConfigBuilder_.getMessage(); + } + } + /** + *
+     * The desired node pool logging configuration defaults for the cluster.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; + */ + public Builder setDesiredNodePoolLoggingConfig(com.google.container.v1beta1.NodePoolLoggingConfig value) { + if (desiredNodePoolLoggingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredNodePoolLoggingConfig_ = value; + } else { + desiredNodePoolLoggingConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00002000; + onChanged(); + return this; + } + /** + *
+     * The desired node pool logging configuration defaults for the cluster.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; + */ + public Builder setDesiredNodePoolLoggingConfig( + com.google.container.v1beta1.NodePoolLoggingConfig.Builder builderForValue) { + if (desiredNodePoolLoggingConfigBuilder_ == null) { + desiredNodePoolLoggingConfig_ = builderForValue.build(); + } else { + desiredNodePoolLoggingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00002000; + onChanged(); + return this; + } + /** + *
+     * The desired node pool logging configuration defaults for the cluster.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; + */ + public Builder mergeDesiredNodePoolLoggingConfig(com.google.container.v1beta1.NodePoolLoggingConfig value) { + if (desiredNodePoolLoggingConfigBuilder_ == null) { + if (((bitField1_ & 0x00002000) != 0) && + desiredNodePoolLoggingConfig_ != null && + desiredNodePoolLoggingConfig_ != com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance()) { + getDesiredNodePoolLoggingConfigBuilder().mergeFrom(value); + } else { + desiredNodePoolLoggingConfig_ = value; + } + } else { + desiredNodePoolLoggingConfigBuilder_.mergeFrom(value); + } + if (desiredNodePoolLoggingConfig_ != null) { + bitField1_ |= 0x00002000; + onChanged(); + } + return this; + } + /** + *
+     * The desired node pool logging configuration defaults for the cluster.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; + */ + public Builder clearDesiredNodePoolLoggingConfig() { + bitField1_ = (bitField1_ & ~0x00002000); + desiredNodePoolLoggingConfig_ = null; + if (desiredNodePoolLoggingConfigBuilder_ != null) { + desiredNodePoolLoggingConfigBuilder_.dispose(); + desiredNodePoolLoggingConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired node pool logging configuration defaults for the cluster.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; + */ + public com.google.container.v1beta1.NodePoolLoggingConfig.Builder getDesiredNodePoolLoggingConfigBuilder() { + bitField1_ |= 0x00002000; + onChanged(); + return getDesiredNodePoolLoggingConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The desired node pool logging configuration defaults for the cluster.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; + */ + public com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder getDesiredNodePoolLoggingConfigOrBuilder() { + if (desiredNodePoolLoggingConfigBuilder_ != null) { + return desiredNodePoolLoggingConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredNodePoolLoggingConfig_ == null ? + com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance() : desiredNodePoolLoggingConfig_; + } + } + /** + *
+     * The desired node pool logging configuration defaults for the cluster.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolLoggingConfig, com.google.container.v1beta1.NodePoolLoggingConfig.Builder, com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder> + getDesiredNodePoolLoggingConfigFieldBuilder() { + if (desiredNodePoolLoggingConfigBuilder_ == null) { + desiredNodePoolLoggingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolLoggingConfig, com.google.container.v1beta1.NodePoolLoggingConfig.Builder, com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder>( + getDesiredNodePoolLoggingConfig(), + getParentForChildren(), + isClean()); + desiredNodePoolLoggingConfig_ = null; + } + return desiredNodePoolLoggingConfigBuilder_; + } + + private com.google.container.v1beta1.Fleet desiredFleet_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.Fleet, com.google.container.v1beta1.Fleet.Builder, com.google.container.v1beta1.FleetOrBuilder> desiredFleetBuilder_; + /** + *
+     * The desired fleet configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.Fleet desired_fleet = 117; + * @return Whether the desiredFleet field is set. + */ + public boolean hasDesiredFleet() { + return ((bitField1_ & 0x00004000) != 0); + } + /** + *
+     * The desired fleet configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.Fleet desired_fleet = 117; + * @return The desiredFleet. + */ + public com.google.container.v1beta1.Fleet getDesiredFleet() { + if (desiredFleetBuilder_ == null) { + return desiredFleet_ == null ? com.google.container.v1beta1.Fleet.getDefaultInstance() : desiredFleet_; + } else { + return desiredFleetBuilder_.getMessage(); + } + } + /** + *
+     * The desired fleet configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.Fleet desired_fleet = 117; + */ + public Builder setDesiredFleet(com.google.container.v1beta1.Fleet value) { + if (desiredFleetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredFleet_ = value; + } else { + desiredFleetBuilder_.setMessage(value); + } + bitField1_ |= 0x00004000; + onChanged(); + return this; + } + /** + *
+     * The desired fleet configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.Fleet desired_fleet = 117; + */ + public Builder setDesiredFleet( + com.google.container.v1beta1.Fleet.Builder builderForValue) { + if (desiredFleetBuilder_ == null) { + desiredFleet_ = builderForValue.build(); + } else { + desiredFleetBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00004000; + onChanged(); + return this; + } + /** + *
+     * The desired fleet configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.Fleet desired_fleet = 117; + */ + public Builder mergeDesiredFleet(com.google.container.v1beta1.Fleet value) { + if (desiredFleetBuilder_ == null) { + if (((bitField1_ & 0x00004000) != 0) && + desiredFleet_ != null && + desiredFleet_ != com.google.container.v1beta1.Fleet.getDefaultInstance()) { + getDesiredFleetBuilder().mergeFrom(value); + } else { + desiredFleet_ = value; + } + } else { + desiredFleetBuilder_.mergeFrom(value); + } + if (desiredFleet_ != null) { + bitField1_ |= 0x00004000; + onChanged(); + } + return this; + } + /** + *
+     * The desired fleet configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.Fleet desired_fleet = 117; + */ + public Builder clearDesiredFleet() { + bitField1_ = (bitField1_ & ~0x00004000); + desiredFleet_ = null; + if (desiredFleetBuilder_ != null) { + desiredFleetBuilder_.dispose(); + desiredFleetBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired fleet configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.Fleet desired_fleet = 117; + */ + public com.google.container.v1beta1.Fleet.Builder getDesiredFleetBuilder() { + bitField1_ |= 0x00004000; + onChanged(); + return getDesiredFleetFieldBuilder().getBuilder(); + } + /** + *
+     * The desired fleet configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.Fleet desired_fleet = 117; + */ + public com.google.container.v1beta1.FleetOrBuilder getDesiredFleetOrBuilder() { + if (desiredFleetBuilder_ != null) { + return desiredFleetBuilder_.getMessageOrBuilder(); + } else { + return desiredFleet_ == null ? + com.google.container.v1beta1.Fleet.getDefaultInstance() : desiredFleet_; + } + } + /** + *
+     * The desired fleet configuration for the cluster.
+     * 
+ * + * .google.container.v1beta1.Fleet desired_fleet = 117; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.Fleet, com.google.container.v1beta1.Fleet.Builder, com.google.container.v1beta1.FleetOrBuilder> + getDesiredFleetFieldBuilder() { + if (desiredFleetBuilder_ == null) { + desiredFleetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.Fleet, com.google.container.v1beta1.Fleet.Builder, com.google.container.v1beta1.FleetOrBuilder>( + getDesiredFleet(), + getParentForChildren(), + isClean()); + desiredFleet_ = null; + } + return desiredFleetBuilder_; + } + + private int desiredStackType_ = 0; + /** + *
+     * The desired stack type of the cluster.
+     * If a stack type is provided and does not match the current stack type of
+     * the cluster, update will attempt to change the stack type to the new type.
+     * 
+ * + * .google.container.v1beta1.StackType desired_stack_type = 119; + * @return The enum numeric value on the wire for desiredStackType. + */ + @java.lang.Override public int getDesiredStackTypeValue() { + return desiredStackType_; + } + /** + *
+     * The desired stack type of the cluster.
+     * If a stack type is provided and does not match the current stack type of
+     * the cluster, update will attempt to change the stack type to the new type.
+     * 
+ * + * .google.container.v1beta1.StackType desired_stack_type = 119; + * @param value The enum numeric value on the wire for desiredStackType to set. + * @return This builder for chaining. + */ + public Builder setDesiredStackTypeValue(int value) { + desiredStackType_ = value; + bitField1_ |= 0x00008000; + onChanged(); + return this; + } + /** + *
+     * The desired stack type of the cluster.
+     * If a stack type is provided and does not match the current stack type of
+     * the cluster, update will attempt to change the stack type to the new type.
+     * 
+ * + * .google.container.v1beta1.StackType desired_stack_type = 119; + * @return The desiredStackType. + */ + @java.lang.Override + public com.google.container.v1beta1.StackType getDesiredStackType() { + com.google.container.v1beta1.StackType result = com.google.container.v1beta1.StackType.forNumber(desiredStackType_); + return result == null ? com.google.container.v1beta1.StackType.UNRECOGNIZED : result; + } + /** + *
+     * The desired stack type of the cluster.
+     * If a stack type is provided and does not match the current stack type of
+     * the cluster, update will attempt to change the stack type to the new type.
+     * 
+ * + * .google.container.v1beta1.StackType desired_stack_type = 119; + * @param value The desiredStackType to set. + * @return This builder for chaining. + */ + public Builder setDesiredStackType(com.google.container.v1beta1.StackType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField1_ |= 0x00008000; + desiredStackType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The desired stack type of the cluster.
+     * If a stack type is provided and does not match the current stack type of
+     * the cluster, update will attempt to change the stack type to the new type.
+     * 
+ * + * .google.container.v1beta1.StackType desired_stack_type = 119; + * @return This builder for chaining. + */ + public Builder clearDesiredStackType() { + bitField1_ = (bitField1_ & ~0x00008000); + desiredStackType_ = 0; + onChanged(); + return this; + } + + private com.google.container.v1beta1.AdditionalPodRangesConfig additionalPodRangesConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AdditionalPodRangesConfig, com.google.container.v1beta1.AdditionalPodRangesConfig.Builder, com.google.container.v1beta1.AdditionalPodRangesConfigOrBuilder> additionalPodRangesConfigBuilder_; + /** + *
+     * The additional pod ranges to be added to the cluster. These pod ranges
+     * can be used by node pools to allocate pod IPs.
+     * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; + * @return Whether the additionalPodRangesConfig field is set. + */ + public boolean hasAdditionalPodRangesConfig() { + return ((bitField1_ & 0x00010000) != 0); + } + /** + *
+     * The additional pod ranges to be added to the cluster. These pod ranges
+     * can be used by node pools to allocate pod IPs.
+     * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; + * @return The additionalPodRangesConfig. + */ + public com.google.container.v1beta1.AdditionalPodRangesConfig getAdditionalPodRangesConfig() { + if (additionalPodRangesConfigBuilder_ == null) { + return additionalPodRangesConfig_ == null ? com.google.container.v1beta1.AdditionalPodRangesConfig.getDefaultInstance() : additionalPodRangesConfig_; + } else { + return additionalPodRangesConfigBuilder_.getMessage(); + } + } + /** + *
+     * The additional pod ranges to be added to the cluster. These pod ranges
+     * can be used by node pools to allocate pod IPs.
+     * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; + */ + public Builder setAdditionalPodRangesConfig(com.google.container.v1beta1.AdditionalPodRangesConfig value) { + if (additionalPodRangesConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + additionalPodRangesConfig_ = value; + } else { + additionalPodRangesConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00010000; + onChanged(); + return this; + } + /** + *
+     * The additional pod ranges to be added to the cluster. These pod ranges
+     * can be used by node pools to allocate pod IPs.
+     * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; + */ + public Builder setAdditionalPodRangesConfig( + com.google.container.v1beta1.AdditionalPodRangesConfig.Builder builderForValue) { + if (additionalPodRangesConfigBuilder_ == null) { + additionalPodRangesConfig_ = builderForValue.build(); + } else { + additionalPodRangesConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00010000; + onChanged(); + return this; + } + /** + *
+     * The additional pod ranges to be added to the cluster. These pod ranges
+     * can be used by node pools to allocate pod IPs.
+     * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; + */ + public Builder mergeAdditionalPodRangesConfig(com.google.container.v1beta1.AdditionalPodRangesConfig value) { + if (additionalPodRangesConfigBuilder_ == null) { + if (((bitField1_ & 0x00010000) != 0) && + additionalPodRangesConfig_ != null && + additionalPodRangesConfig_ != com.google.container.v1beta1.AdditionalPodRangesConfig.getDefaultInstance()) { + getAdditionalPodRangesConfigBuilder().mergeFrom(value); + } else { + additionalPodRangesConfig_ = value; + } + } else { + additionalPodRangesConfigBuilder_.mergeFrom(value); + } + if (additionalPodRangesConfig_ != null) { + bitField1_ |= 0x00010000; + onChanged(); + } + return this; + } + /** + *
+     * The additional pod ranges to be added to the cluster. These pod ranges
+     * can be used by node pools to allocate pod IPs.
+     * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; + */ + public Builder clearAdditionalPodRangesConfig() { + bitField1_ = (bitField1_ & ~0x00010000); + additionalPodRangesConfig_ = null; + if (additionalPodRangesConfigBuilder_ != null) { + additionalPodRangesConfigBuilder_.dispose(); + additionalPodRangesConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The additional pod ranges to be added to the cluster. These pod ranges
+     * can be used by node pools to allocate pod IPs.
+     * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; + */ + public com.google.container.v1beta1.AdditionalPodRangesConfig.Builder getAdditionalPodRangesConfigBuilder() { + bitField1_ |= 0x00010000; + onChanged(); + return getAdditionalPodRangesConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The additional pod ranges to be added to the cluster. These pod ranges
+     * can be used by node pools to allocate pod IPs.
+     * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; + */ + public com.google.container.v1beta1.AdditionalPodRangesConfigOrBuilder getAdditionalPodRangesConfigOrBuilder() { + if (additionalPodRangesConfigBuilder_ != null) { + return additionalPodRangesConfigBuilder_.getMessageOrBuilder(); + } else { + return additionalPodRangesConfig_ == null ? + com.google.container.v1beta1.AdditionalPodRangesConfig.getDefaultInstance() : additionalPodRangesConfig_; + } + } + /** + *
+     * The additional pod ranges to be added to the cluster. These pod ranges
+     * can be used by node pools to allocate pod IPs.
+     * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AdditionalPodRangesConfig, com.google.container.v1beta1.AdditionalPodRangesConfig.Builder, com.google.container.v1beta1.AdditionalPodRangesConfigOrBuilder> + getAdditionalPodRangesConfigFieldBuilder() { + if (additionalPodRangesConfigBuilder_ == null) { + additionalPodRangesConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AdditionalPodRangesConfig, com.google.container.v1beta1.AdditionalPodRangesConfig.Builder, com.google.container.v1beta1.AdditionalPodRangesConfigOrBuilder>( + getAdditionalPodRangesConfig(), + getParentForChildren(), + isClean()); + additionalPodRangesConfig_ = null; + } + return additionalPodRangesConfigBuilder_; + } + + private com.google.container.v1beta1.AdditionalPodRangesConfig removedAdditionalPodRangesConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AdditionalPodRangesConfig, com.google.container.v1beta1.AdditionalPodRangesConfig.Builder, com.google.container.v1beta1.AdditionalPodRangesConfigOrBuilder> removedAdditionalPodRangesConfigBuilder_; + /** + *
+     * The additional pod ranges that are to be removed from the cluster.
+     * The pod ranges specified here must have been specified earlier in the
+     * 'additional_pod_ranges_config' argument.
+     * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; + * @return Whether the removedAdditionalPodRangesConfig field is set. + */ + public boolean hasRemovedAdditionalPodRangesConfig() { + return ((bitField1_ & 0x00020000) != 0); + } + /** + *
+     * The additional pod ranges that are to be removed from the cluster.
+     * The pod ranges specified here must have been specified earlier in the
+     * 'additional_pod_ranges_config' argument.
+     * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; + * @return The removedAdditionalPodRangesConfig. + */ + public com.google.container.v1beta1.AdditionalPodRangesConfig getRemovedAdditionalPodRangesConfig() { + if (removedAdditionalPodRangesConfigBuilder_ == null) { + return removedAdditionalPodRangesConfig_ == null ? com.google.container.v1beta1.AdditionalPodRangesConfig.getDefaultInstance() : removedAdditionalPodRangesConfig_; + } else { + return removedAdditionalPodRangesConfigBuilder_.getMessage(); + } + } + /** + *
+     * The additional pod ranges that are to be removed from the cluster.
+     * The pod ranges specified here must have been specified earlier in the
+     * 'additional_pod_ranges_config' argument.
+     * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; + */ + public Builder setRemovedAdditionalPodRangesConfig(com.google.container.v1beta1.AdditionalPodRangesConfig value) { + if (removedAdditionalPodRangesConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + removedAdditionalPodRangesConfig_ = value; + } else { + removedAdditionalPodRangesConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00020000; + onChanged(); + return this; + } + /** + *
+     * The additional pod ranges that are to be removed from the cluster.
+     * The pod ranges specified here must have been specified earlier in the
+     * 'additional_pod_ranges_config' argument.
+     * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; + */ + public Builder setRemovedAdditionalPodRangesConfig( + com.google.container.v1beta1.AdditionalPodRangesConfig.Builder builderForValue) { + if (removedAdditionalPodRangesConfigBuilder_ == null) { + removedAdditionalPodRangesConfig_ = builderForValue.build(); + } else { + removedAdditionalPodRangesConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00020000; + onChanged(); + return this; + } + /** + *
+     * The additional pod ranges that are to be removed from the cluster.
+     * The pod ranges specified here must have been specified earlier in the
+     * 'additional_pod_ranges_config' argument.
+     * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; + */ + public Builder mergeRemovedAdditionalPodRangesConfig(com.google.container.v1beta1.AdditionalPodRangesConfig value) { + if (removedAdditionalPodRangesConfigBuilder_ == null) { + if (((bitField1_ & 0x00020000) != 0) && + removedAdditionalPodRangesConfig_ != null && + removedAdditionalPodRangesConfig_ != com.google.container.v1beta1.AdditionalPodRangesConfig.getDefaultInstance()) { + getRemovedAdditionalPodRangesConfigBuilder().mergeFrom(value); + } else { + removedAdditionalPodRangesConfig_ = value; + } + } else { + removedAdditionalPodRangesConfigBuilder_.mergeFrom(value); + } + if (removedAdditionalPodRangesConfig_ != null) { + bitField1_ |= 0x00020000; + onChanged(); + } + return this; + } + /** + *
+     * The additional pod ranges that are to be removed from the cluster.
+     * The pod ranges specified here must have been specified earlier in the
+     * 'additional_pod_ranges_config' argument.
+     * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; + */ + public Builder clearRemovedAdditionalPodRangesConfig() { + bitField1_ = (bitField1_ & ~0x00020000); + removedAdditionalPodRangesConfig_ = null; + if (removedAdditionalPodRangesConfigBuilder_ != null) { + removedAdditionalPodRangesConfigBuilder_.dispose(); + removedAdditionalPodRangesConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The additional pod ranges that are to be removed from the cluster.
+     * The pod ranges specified here must have been specified earlier in the
+     * 'additional_pod_ranges_config' argument.
+     * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; + */ + public com.google.container.v1beta1.AdditionalPodRangesConfig.Builder getRemovedAdditionalPodRangesConfigBuilder() { + bitField1_ |= 0x00020000; + onChanged(); + return getRemovedAdditionalPodRangesConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The additional pod ranges that are to be removed from the cluster.
+     * The pod ranges specified here must have been specified earlier in the
+     * 'additional_pod_ranges_config' argument.
+     * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; + */ + public com.google.container.v1beta1.AdditionalPodRangesConfigOrBuilder getRemovedAdditionalPodRangesConfigOrBuilder() { + if (removedAdditionalPodRangesConfigBuilder_ != null) { + return removedAdditionalPodRangesConfigBuilder_.getMessageOrBuilder(); + } else { + return removedAdditionalPodRangesConfig_ == null ? + com.google.container.v1beta1.AdditionalPodRangesConfig.getDefaultInstance() : removedAdditionalPodRangesConfig_; + } + } + /** + *
+     * The additional pod ranges that are to be removed from the cluster.
+     * The pod ranges specified here must have been specified earlier in the
+     * 'additional_pod_ranges_config' argument.
+     * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AdditionalPodRangesConfig, com.google.container.v1beta1.AdditionalPodRangesConfig.Builder, com.google.container.v1beta1.AdditionalPodRangesConfigOrBuilder> + getRemovedAdditionalPodRangesConfigFieldBuilder() { + if (removedAdditionalPodRangesConfigBuilder_ == null) { + removedAdditionalPodRangesConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AdditionalPodRangesConfig, com.google.container.v1beta1.AdditionalPodRangesConfig.Builder, com.google.container.v1beta1.AdditionalPodRangesConfigOrBuilder>( + getRemovedAdditionalPodRangesConfig(), + getParentForChildren(), + isClean()); + removedAdditionalPodRangesConfig_ = null; + } + return removedAdditionalPodRangesConfigBuilder_; + } + + private com.google.container.v1beta1.K8sBetaAPIConfig enableK8SBetaApis_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.K8sBetaAPIConfig, com.google.container.v1beta1.K8sBetaAPIConfig.Builder, com.google.container.v1beta1.K8sBetaAPIConfigOrBuilder> enableK8SBetaApisBuilder_; + /** + *
+     * Kubernetes open source beta apis enabled on the cluster. Only beta apis
+     * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; + * @return Whether the enableK8sBetaApis field is set. + */ + public boolean hasEnableK8SBetaApis() { + return ((bitField1_ & 0x00040000) != 0); + } + /** + *
+     * Kubernetes open source beta apis enabled on the cluster. Only beta apis
+     * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; + * @return The enableK8sBetaApis. + */ + public com.google.container.v1beta1.K8sBetaAPIConfig getEnableK8SBetaApis() { + if (enableK8SBetaApisBuilder_ == null) { + return enableK8SBetaApis_ == null ? com.google.container.v1beta1.K8sBetaAPIConfig.getDefaultInstance() : enableK8SBetaApis_; + } else { + return enableK8SBetaApisBuilder_.getMessage(); + } + } + /** + *
+     * Kubernetes open source beta apis enabled on the cluster. Only beta apis
+     * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; + */ + public Builder setEnableK8SBetaApis(com.google.container.v1beta1.K8sBetaAPIConfig value) { + if (enableK8SBetaApisBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + enableK8SBetaApis_ = value; + } else { + enableK8SBetaApisBuilder_.setMessage(value); + } + bitField1_ |= 0x00040000; + onChanged(); + return this; + } + /** + *
+     * Kubernetes open source beta apis enabled on the cluster. Only beta apis
+     * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; + */ + public Builder setEnableK8SBetaApis( + com.google.container.v1beta1.K8sBetaAPIConfig.Builder builderForValue) { + if (enableK8SBetaApisBuilder_ == null) { + enableK8SBetaApis_ = builderForValue.build(); + } else { + enableK8SBetaApisBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00040000; + onChanged(); + return this; + } + /** + *
+     * Kubernetes open source beta apis enabled on the cluster. Only beta apis
+     * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; + */ + public Builder mergeEnableK8SBetaApis(com.google.container.v1beta1.K8sBetaAPIConfig value) { + if (enableK8SBetaApisBuilder_ == null) { + if (((bitField1_ & 0x00040000) != 0) && + enableK8SBetaApis_ != null && + enableK8SBetaApis_ != com.google.container.v1beta1.K8sBetaAPIConfig.getDefaultInstance()) { + getEnableK8SBetaApisBuilder().mergeFrom(value); + } else { + enableK8SBetaApis_ = value; + } + } else { + enableK8SBetaApisBuilder_.mergeFrom(value); + } + if (enableK8SBetaApis_ != null) { + bitField1_ |= 0x00040000; + onChanged(); + } + return this; + } + /** + *
+     * Kubernetes open source beta apis enabled on the cluster. Only beta apis
+     * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; + */ + public Builder clearEnableK8SBetaApis() { + bitField1_ = (bitField1_ & ~0x00040000); + enableK8SBetaApis_ = null; + if (enableK8SBetaApisBuilder_ != null) { + enableK8SBetaApisBuilder_.dispose(); + enableK8SBetaApisBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Kubernetes open source beta apis enabled on the cluster. Only beta apis
+     * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; + */ + public com.google.container.v1beta1.K8sBetaAPIConfig.Builder getEnableK8SBetaApisBuilder() { + bitField1_ |= 0x00040000; + onChanged(); + return getEnableK8SBetaApisFieldBuilder().getBuilder(); + } + /** + *
+     * Kubernetes open source beta apis enabled on the cluster. Only beta apis
+     * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; + */ + public com.google.container.v1beta1.K8sBetaAPIConfigOrBuilder getEnableK8SBetaApisOrBuilder() { + if (enableK8SBetaApisBuilder_ != null) { + return enableK8SBetaApisBuilder_.getMessageOrBuilder(); + } else { + return enableK8SBetaApis_ == null ? + com.google.container.v1beta1.K8sBetaAPIConfig.getDefaultInstance() : enableK8SBetaApis_; + } + } + /** + *
+     * Kubernetes open source beta apis enabled on the cluster. Only beta apis
+     * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.K8sBetaAPIConfig, com.google.container.v1beta1.K8sBetaAPIConfig.Builder, com.google.container.v1beta1.K8sBetaAPIConfigOrBuilder> + getEnableK8SBetaApisFieldBuilder() { + if (enableK8SBetaApisBuilder_ == null) { + enableK8SBetaApisBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.K8sBetaAPIConfig, com.google.container.v1beta1.K8sBetaAPIConfig.Builder, com.google.container.v1beta1.K8sBetaAPIConfigOrBuilder>( + getEnableK8SBetaApis(), + getParentForChildren(), + isClean()); + enableK8SBetaApis_ = null; + } + return enableK8SBetaApisBuilder_; + } + + private com.google.container.v1beta1.SecurityPostureConfig desiredSecurityPostureConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.SecurityPostureConfig, com.google.container.v1beta1.SecurityPostureConfig.Builder, com.google.container.v1beta1.SecurityPostureConfigOrBuilder> desiredSecurityPostureConfigBuilder_; + /** + *
+     * Enable/Disable Security Posture API features for the cluster.
+     * 
+ * + * .google.container.v1beta1.SecurityPostureConfig desired_security_posture_config = 124; + * @return Whether the desiredSecurityPostureConfig field is set. + */ + public boolean hasDesiredSecurityPostureConfig() { + return ((bitField1_ & 0x00080000) != 0); + } + /** + *
+     * Enable/Disable Security Posture API features for the cluster.
+     * 
+ * + * .google.container.v1beta1.SecurityPostureConfig desired_security_posture_config = 124; + * @return The desiredSecurityPostureConfig. + */ + public com.google.container.v1beta1.SecurityPostureConfig getDesiredSecurityPostureConfig() { + if (desiredSecurityPostureConfigBuilder_ == null) { + return desiredSecurityPostureConfig_ == null ? com.google.container.v1beta1.SecurityPostureConfig.getDefaultInstance() : desiredSecurityPostureConfig_; + } else { + return desiredSecurityPostureConfigBuilder_.getMessage(); + } + } + /** + *
+     * Enable/Disable Security Posture API features for the cluster.
+     * 
+ * + * .google.container.v1beta1.SecurityPostureConfig desired_security_posture_config = 124; + */ + public Builder setDesiredSecurityPostureConfig(com.google.container.v1beta1.SecurityPostureConfig value) { + if (desiredSecurityPostureConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredSecurityPostureConfig_ = value; + } else { + desiredSecurityPostureConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00080000; + onChanged(); + return this; + } + /** + *
+     * Enable/Disable Security Posture API features for the cluster.
+     * 
+ * + * .google.container.v1beta1.SecurityPostureConfig desired_security_posture_config = 124; + */ + public Builder setDesiredSecurityPostureConfig( + com.google.container.v1beta1.SecurityPostureConfig.Builder builderForValue) { + if (desiredSecurityPostureConfigBuilder_ == null) { + desiredSecurityPostureConfig_ = builderForValue.build(); + } else { + desiredSecurityPostureConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00080000; + onChanged(); + return this; + } + /** + *
+     * Enable/Disable Security Posture API features for the cluster.
+     * 
+ * + * .google.container.v1beta1.SecurityPostureConfig desired_security_posture_config = 124; + */ + public Builder mergeDesiredSecurityPostureConfig(com.google.container.v1beta1.SecurityPostureConfig value) { + if (desiredSecurityPostureConfigBuilder_ == null) { + if (((bitField1_ & 0x00080000) != 0) && + desiredSecurityPostureConfig_ != null && + desiredSecurityPostureConfig_ != com.google.container.v1beta1.SecurityPostureConfig.getDefaultInstance()) { + getDesiredSecurityPostureConfigBuilder().mergeFrom(value); + } else { + desiredSecurityPostureConfig_ = value; + } + } else { + desiredSecurityPostureConfigBuilder_.mergeFrom(value); + } + if (desiredSecurityPostureConfig_ != null) { + bitField1_ |= 0x00080000; + onChanged(); + } + return this; + } + /** + *
+     * Enable/Disable Security Posture API features for the cluster.
+     * 
+ * + * .google.container.v1beta1.SecurityPostureConfig desired_security_posture_config = 124; + */ + public Builder clearDesiredSecurityPostureConfig() { + bitField1_ = (bitField1_ & ~0x00080000); + desiredSecurityPostureConfig_ = null; + if (desiredSecurityPostureConfigBuilder_ != null) { + desiredSecurityPostureConfigBuilder_.dispose(); + desiredSecurityPostureConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Enable/Disable Security Posture API features for the cluster.
+     * 
+ * + * .google.container.v1beta1.SecurityPostureConfig desired_security_posture_config = 124; + */ + public com.google.container.v1beta1.SecurityPostureConfig.Builder getDesiredSecurityPostureConfigBuilder() { + bitField1_ |= 0x00080000; + onChanged(); + return getDesiredSecurityPostureConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Enable/Disable Security Posture API features for the cluster.
+     * 
+ * + * .google.container.v1beta1.SecurityPostureConfig desired_security_posture_config = 124; + */ + public com.google.container.v1beta1.SecurityPostureConfigOrBuilder getDesiredSecurityPostureConfigOrBuilder() { + if (desiredSecurityPostureConfigBuilder_ != null) { + return desiredSecurityPostureConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredSecurityPostureConfig_ == null ? + com.google.container.v1beta1.SecurityPostureConfig.getDefaultInstance() : desiredSecurityPostureConfig_; + } + } + /** + *
+     * Enable/Disable Security Posture API features for the cluster.
+     * 
+ * + * .google.container.v1beta1.SecurityPostureConfig desired_security_posture_config = 124; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.SecurityPostureConfig, com.google.container.v1beta1.SecurityPostureConfig.Builder, com.google.container.v1beta1.SecurityPostureConfigOrBuilder> + getDesiredSecurityPostureConfigFieldBuilder() { + if (desiredSecurityPostureConfigBuilder_ == null) { + desiredSecurityPostureConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.SecurityPostureConfig, com.google.container.v1beta1.SecurityPostureConfig.Builder, com.google.container.v1beta1.SecurityPostureConfigOrBuilder>( + getDesiredSecurityPostureConfig(), + getParentForChildren(), + isClean()); + desiredSecurityPostureConfig_ = null; + } + return desiredSecurityPostureConfigBuilder_; + } + + private com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig desiredNetworkPerformanceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig, com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder, com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder> desiredNetworkPerformanceConfigBuilder_; + /** + *
+     * The desired network performance config.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; + * @return Whether the desiredNetworkPerformanceConfig field is set. + */ + public boolean hasDesiredNetworkPerformanceConfig() { + return ((bitField1_ & 0x00100000) != 0); + } + /** + *
+     * The desired network performance config.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; + * @return The desiredNetworkPerformanceConfig. + */ + public com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig getDesiredNetworkPerformanceConfig() { + if (desiredNetworkPerformanceConfigBuilder_ == null) { + return desiredNetworkPerformanceConfig_ == null ? com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.getDefaultInstance() : desiredNetworkPerformanceConfig_; + } else { + return desiredNetworkPerformanceConfigBuilder_.getMessage(); + } + } + /** + *
+     * The desired network performance config.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; + */ + public Builder setDesiredNetworkPerformanceConfig(com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig value) { + if (desiredNetworkPerformanceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredNetworkPerformanceConfig_ = value; + } else { + desiredNetworkPerformanceConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00100000; + onChanged(); + return this; + } + /** + *
+     * The desired network performance config.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; + */ + public Builder setDesiredNetworkPerformanceConfig( + com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder builderForValue) { + if (desiredNetworkPerformanceConfigBuilder_ == null) { + desiredNetworkPerformanceConfig_ = builderForValue.build(); + } else { + desiredNetworkPerformanceConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00100000; + onChanged(); + return this; + } + /** + *
+     * The desired network performance config.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; + */ + public Builder mergeDesiredNetworkPerformanceConfig(com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig value) { + if (desiredNetworkPerformanceConfigBuilder_ == null) { + if (((bitField1_ & 0x00100000) != 0) && + desiredNetworkPerformanceConfig_ != null && + desiredNetworkPerformanceConfig_ != com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.getDefaultInstance()) { + getDesiredNetworkPerformanceConfigBuilder().mergeFrom(value); + } else { + desiredNetworkPerformanceConfig_ = value; + } + } else { + desiredNetworkPerformanceConfigBuilder_.mergeFrom(value); + } + if (desiredNetworkPerformanceConfig_ != null) { + bitField1_ |= 0x00100000; + onChanged(); + } + return this; + } + /** + *
+     * The desired network performance config.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; + */ + public Builder clearDesiredNetworkPerformanceConfig() { + bitField1_ = (bitField1_ & ~0x00100000); + desiredNetworkPerformanceConfig_ = null; + if (desiredNetworkPerformanceConfigBuilder_ != null) { + desiredNetworkPerformanceConfigBuilder_.dispose(); + desiredNetworkPerformanceConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired network performance config.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; + */ + public com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder getDesiredNetworkPerformanceConfigBuilder() { + bitField1_ |= 0x00100000; + onChanged(); + return getDesiredNetworkPerformanceConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The desired network performance config.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; + */ + public com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder getDesiredNetworkPerformanceConfigOrBuilder() { + if (desiredNetworkPerformanceConfigBuilder_ != null) { + return desiredNetworkPerformanceConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredNetworkPerformanceConfig_ == null ? + com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.getDefaultInstance() : desiredNetworkPerformanceConfig_; + } + } + /** + *
+     * The desired network performance config.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig, com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder, com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder> + getDesiredNetworkPerformanceConfigFieldBuilder() { + if (desiredNetworkPerformanceConfigBuilder_ == null) { + desiredNetworkPerformanceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig, com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder, com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder>( + getDesiredNetworkPerformanceConfig(), + getParentForChildren(), + isClean()); + desiredNetworkPerformanceConfig_ = null; + } + return desiredNetworkPerformanceConfigBuilder_; + } + + private boolean desiredEnableFqdnNetworkPolicy_ ; + /** + *
+     * Enable/Disable FQDN Network Policy for the cluster.
+     * 
+ * + * optional bool desired_enable_fqdn_network_policy = 126; + * @return Whether the desiredEnableFqdnNetworkPolicy field is set. + */ + @java.lang.Override + public boolean hasDesiredEnableFqdnNetworkPolicy() { + return ((bitField1_ & 0x00200000) != 0); + } + /** + *
+     * Enable/Disable FQDN Network Policy for the cluster.
+     * 
+ * + * optional bool desired_enable_fqdn_network_policy = 126; + * @return The desiredEnableFqdnNetworkPolicy. + */ + @java.lang.Override + public boolean getDesiredEnableFqdnNetworkPolicy() { + return desiredEnableFqdnNetworkPolicy_; + } + /** + *
+     * Enable/Disable FQDN Network Policy for the cluster.
+     * 
+ * + * optional bool desired_enable_fqdn_network_policy = 126; + * @param value The desiredEnableFqdnNetworkPolicy to set. + * @return This builder for chaining. + */ + public Builder setDesiredEnableFqdnNetworkPolicy(boolean value) { + + desiredEnableFqdnNetworkPolicy_ = value; + bitField1_ |= 0x00200000; + onChanged(); + return this; + } + /** + *
+     * Enable/Disable FQDN Network Policy for the cluster.
+     * 
+ * + * optional bool desired_enable_fqdn_network_policy = 126; + * @return This builder for chaining. + */ + public Builder clearDesiredEnableFqdnNetworkPolicy() { + bitField1_ = (bitField1_ & ~0x00200000); + desiredEnableFqdnNetworkPolicy_ = false; + onChanged(); + return this; + } + + private com.google.container.v1beta1.WorkloadPolicyConfig desiredAutopilotWorkloadPolicyConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadPolicyConfig, com.google.container.v1beta1.WorkloadPolicyConfig.Builder, com.google.container.v1beta1.WorkloadPolicyConfigOrBuilder> desiredAutopilotWorkloadPolicyConfigBuilder_; + /** + *
+     * The desired workload policy configuration for the autopilot cluster.
+     * 
+ * + * .google.container.v1beta1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; + * @return Whether the desiredAutopilotWorkloadPolicyConfig field is set. + */ + public boolean hasDesiredAutopilotWorkloadPolicyConfig() { + return ((bitField1_ & 0x00400000) != 0); + } + /** + *
+     * The desired workload policy configuration for the autopilot cluster.
+     * 
+ * + * .google.container.v1beta1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; + * @return The desiredAutopilotWorkloadPolicyConfig. + */ + public com.google.container.v1beta1.WorkloadPolicyConfig getDesiredAutopilotWorkloadPolicyConfig() { + if (desiredAutopilotWorkloadPolicyConfigBuilder_ == null) { + return desiredAutopilotWorkloadPolicyConfig_ == null ? com.google.container.v1beta1.WorkloadPolicyConfig.getDefaultInstance() : desiredAutopilotWorkloadPolicyConfig_; + } else { + return desiredAutopilotWorkloadPolicyConfigBuilder_.getMessage(); + } + } + /** + *
+     * The desired workload policy configuration for the autopilot cluster.
+     * 
+ * + * .google.container.v1beta1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; + */ + public Builder setDesiredAutopilotWorkloadPolicyConfig(com.google.container.v1beta1.WorkloadPolicyConfig value) { + if (desiredAutopilotWorkloadPolicyConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredAutopilotWorkloadPolicyConfig_ = value; + } else { + desiredAutopilotWorkloadPolicyConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00400000; + onChanged(); + return this; + } + /** + *
+     * The desired workload policy configuration for the autopilot cluster.
+     * 
+ * + * .google.container.v1beta1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; + */ + public Builder setDesiredAutopilotWorkloadPolicyConfig( + com.google.container.v1beta1.WorkloadPolicyConfig.Builder builderForValue) { + if (desiredAutopilotWorkloadPolicyConfigBuilder_ == null) { + desiredAutopilotWorkloadPolicyConfig_ = builderForValue.build(); + } else { + desiredAutopilotWorkloadPolicyConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00400000; + onChanged(); + return this; + } + /** + *
+     * The desired workload policy configuration for the autopilot cluster.
+     * 
+ * + * .google.container.v1beta1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; + */ + public Builder mergeDesiredAutopilotWorkloadPolicyConfig(com.google.container.v1beta1.WorkloadPolicyConfig value) { + if (desiredAutopilotWorkloadPolicyConfigBuilder_ == null) { + if (((bitField1_ & 0x00400000) != 0) && + desiredAutopilotWorkloadPolicyConfig_ != null && + desiredAutopilotWorkloadPolicyConfig_ != com.google.container.v1beta1.WorkloadPolicyConfig.getDefaultInstance()) { + getDesiredAutopilotWorkloadPolicyConfigBuilder().mergeFrom(value); + } else { + desiredAutopilotWorkloadPolicyConfig_ = value; + } + } else { + desiredAutopilotWorkloadPolicyConfigBuilder_.mergeFrom(value); + } + if (desiredAutopilotWorkloadPolicyConfig_ != null) { + bitField1_ |= 0x00400000; + onChanged(); + } + return this; + } + /** + *
+     * The desired workload policy configuration for the autopilot cluster.
+     * 
+ * + * .google.container.v1beta1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; + */ + public Builder clearDesiredAutopilotWorkloadPolicyConfig() { + bitField1_ = (bitField1_ & ~0x00400000); + desiredAutopilotWorkloadPolicyConfig_ = null; + if (desiredAutopilotWorkloadPolicyConfigBuilder_ != null) { + desiredAutopilotWorkloadPolicyConfigBuilder_.dispose(); + desiredAutopilotWorkloadPolicyConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired workload policy configuration for the autopilot cluster.
+     * 
+ * + * .google.container.v1beta1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; + */ + public com.google.container.v1beta1.WorkloadPolicyConfig.Builder getDesiredAutopilotWorkloadPolicyConfigBuilder() { + bitField1_ |= 0x00400000; + onChanged(); + return getDesiredAutopilotWorkloadPolicyConfigFieldBuilder().getBuilder(); + } + /** + *
+     * The desired workload policy configuration for the autopilot cluster.
+     * 
+ * + * .google.container.v1beta1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; + */ + public com.google.container.v1beta1.WorkloadPolicyConfigOrBuilder getDesiredAutopilotWorkloadPolicyConfigOrBuilder() { + if (desiredAutopilotWorkloadPolicyConfigBuilder_ != null) { + return desiredAutopilotWorkloadPolicyConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredAutopilotWorkloadPolicyConfig_ == null ? + com.google.container.v1beta1.WorkloadPolicyConfig.getDefaultInstance() : desiredAutopilotWorkloadPolicyConfig_; + } + } + /** + *
+     * The desired workload policy configuration for the autopilot cluster.
+     * 
+ * + * .google.container.v1beta1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadPolicyConfig, com.google.container.v1beta1.WorkloadPolicyConfig.Builder, com.google.container.v1beta1.WorkloadPolicyConfigOrBuilder> + getDesiredAutopilotWorkloadPolicyConfigFieldBuilder() { + if (desiredAutopilotWorkloadPolicyConfigBuilder_ == null) { + desiredAutopilotWorkloadPolicyConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadPolicyConfig, com.google.container.v1beta1.WorkloadPolicyConfig.Builder, com.google.container.v1beta1.WorkloadPolicyConfigOrBuilder>( + getDesiredAutopilotWorkloadPolicyConfig(), + getParentForChildren(), + isClean()); + desiredAutopilotWorkloadPolicyConfig_ = null; + } + return desiredAutopilotWorkloadPolicyConfigBuilder_; + } + + private com.google.container.v1beta1.K8sBetaAPIConfig desiredK8SBetaApis_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.K8sBetaAPIConfig, com.google.container.v1beta1.K8sBetaAPIConfig.Builder, com.google.container.v1beta1.K8sBetaAPIConfigOrBuilder> desiredK8SBetaApisBuilder_; + /** + *
+     * Beta APIs enabled for cluster.
+     * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; + * @return Whether the desiredK8sBetaApis field is set. + */ + public boolean hasDesiredK8SBetaApis() { + return ((bitField1_ & 0x00800000) != 0); + } + /** + *
+     * Beta APIs enabled for cluster.
+     * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; + * @return The desiredK8sBetaApis. + */ + public com.google.container.v1beta1.K8sBetaAPIConfig getDesiredK8SBetaApis() { + if (desiredK8SBetaApisBuilder_ == null) { + return desiredK8SBetaApis_ == null ? com.google.container.v1beta1.K8sBetaAPIConfig.getDefaultInstance() : desiredK8SBetaApis_; + } else { + return desiredK8SBetaApisBuilder_.getMessage(); + } + } + /** + *
+     * Beta APIs enabled for cluster.
+     * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; + */ + public Builder setDesiredK8SBetaApis(com.google.container.v1beta1.K8sBetaAPIConfig value) { + if (desiredK8SBetaApisBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredK8SBetaApis_ = value; + } else { + desiredK8SBetaApisBuilder_.setMessage(value); + } + bitField1_ |= 0x00800000; + onChanged(); + return this; + } + /** + *
+     * Beta APIs enabled for cluster.
+     * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; + */ + public Builder setDesiredK8SBetaApis( + com.google.container.v1beta1.K8sBetaAPIConfig.Builder builderForValue) { + if (desiredK8SBetaApisBuilder_ == null) { + desiredK8SBetaApis_ = builderForValue.build(); + } else { + desiredK8SBetaApisBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00800000; + onChanged(); + return this; + } + /** + *
+     * Beta APIs enabled for cluster.
+     * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; + */ + public Builder mergeDesiredK8SBetaApis(com.google.container.v1beta1.K8sBetaAPIConfig value) { + if (desiredK8SBetaApisBuilder_ == null) { + if (((bitField1_ & 0x00800000) != 0) && + desiredK8SBetaApis_ != null && + desiredK8SBetaApis_ != com.google.container.v1beta1.K8sBetaAPIConfig.getDefaultInstance()) { + getDesiredK8SBetaApisBuilder().mergeFrom(value); + } else { + desiredK8SBetaApis_ = value; + } + } else { + desiredK8SBetaApisBuilder_.mergeFrom(value); + } + if (desiredK8SBetaApis_ != null) { + bitField1_ |= 0x00800000; + onChanged(); + } + return this; + } + /** + *
+     * Beta APIs enabled for cluster.
+     * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; + */ + public Builder clearDesiredK8SBetaApis() { + bitField1_ = (bitField1_ & ~0x00800000); + desiredK8SBetaApis_ = null; + if (desiredK8SBetaApisBuilder_ != null) { + desiredK8SBetaApisBuilder_.dispose(); + desiredK8SBetaApisBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Beta APIs enabled for cluster.
+     * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; + */ + public com.google.container.v1beta1.K8sBetaAPIConfig.Builder getDesiredK8SBetaApisBuilder() { + bitField1_ |= 0x00800000; + onChanged(); + return getDesiredK8SBetaApisFieldBuilder().getBuilder(); + } + /** + *
+     * Beta APIs enabled for cluster.
+     * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; + */ + public com.google.container.v1beta1.K8sBetaAPIConfigOrBuilder getDesiredK8SBetaApisOrBuilder() { + if (desiredK8SBetaApisBuilder_ != null) { + return desiredK8SBetaApisBuilder_.getMessageOrBuilder(); + } else { + return desiredK8SBetaApis_ == null ? + com.google.container.v1beta1.K8sBetaAPIConfig.getDefaultInstance() : desiredK8SBetaApis_; + } + } + /** + *
+     * Beta APIs enabled for cluster.
+     * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.K8sBetaAPIConfig, com.google.container.v1beta1.K8sBetaAPIConfig.Builder, com.google.container.v1beta1.K8sBetaAPIConfigOrBuilder> + getDesiredK8SBetaApisFieldBuilder() { + if (desiredK8SBetaApisBuilder_ == null) { + desiredK8SBetaApisBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.K8sBetaAPIConfig, com.google.container.v1beta1.K8sBetaAPIConfig.Builder, com.google.container.v1beta1.K8sBetaAPIConfigOrBuilder>( + getDesiredK8SBetaApis(), + getParentForChildren(), + isClean()); + desiredK8SBetaApis_ = null; + } + return desiredK8SBetaApisBuilder_; + } + + private com.google.container.v1beta1.HostMaintenancePolicy desiredHostMaintenancePolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.HostMaintenancePolicy, com.google.container.v1beta1.HostMaintenancePolicy.Builder, com.google.container.v1beta1.HostMaintenancePolicyOrBuilder> desiredHostMaintenancePolicyBuilder_; + /** + *
+     * HostMaintenancePolicy contains the desired maintenance policy for the
+     * Google Compute Engine hosts.
+     * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy desired_host_maintenance_policy = 132; + * @return Whether the desiredHostMaintenancePolicy field is set. + */ + public boolean hasDesiredHostMaintenancePolicy() { + return ((bitField1_ & 0x01000000) != 0); + } + /** + *
+     * HostMaintenancePolicy contains the desired maintenance policy for the
+     * Google Compute Engine hosts.
+     * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy desired_host_maintenance_policy = 132; + * @return The desiredHostMaintenancePolicy. + */ + public com.google.container.v1beta1.HostMaintenancePolicy getDesiredHostMaintenancePolicy() { + if (desiredHostMaintenancePolicyBuilder_ == null) { + return desiredHostMaintenancePolicy_ == null ? com.google.container.v1beta1.HostMaintenancePolicy.getDefaultInstance() : desiredHostMaintenancePolicy_; + } else { + return desiredHostMaintenancePolicyBuilder_.getMessage(); + } + } + /** + *
+     * HostMaintenancePolicy contains the desired maintenance policy for the
+     * Google Compute Engine hosts.
+     * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy desired_host_maintenance_policy = 132; + */ + public Builder setDesiredHostMaintenancePolicy(com.google.container.v1beta1.HostMaintenancePolicy value) { + if (desiredHostMaintenancePolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredHostMaintenancePolicy_ = value; + } else { + desiredHostMaintenancePolicyBuilder_.setMessage(value); + } + bitField1_ |= 0x01000000; + onChanged(); + return this; + } + /** + *
+     * HostMaintenancePolicy contains the desired maintenance policy for the
+     * Google Compute Engine hosts.
+     * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy desired_host_maintenance_policy = 132; + */ + public Builder setDesiredHostMaintenancePolicy( + com.google.container.v1beta1.HostMaintenancePolicy.Builder builderForValue) { + if (desiredHostMaintenancePolicyBuilder_ == null) { + desiredHostMaintenancePolicy_ = builderForValue.build(); + } else { + desiredHostMaintenancePolicyBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x01000000; + onChanged(); + return this; + } + /** + *
+     * HostMaintenancePolicy contains the desired maintenance policy for the
+     * Google Compute Engine hosts.
+     * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy desired_host_maintenance_policy = 132; + */ + public Builder mergeDesiredHostMaintenancePolicy(com.google.container.v1beta1.HostMaintenancePolicy value) { + if (desiredHostMaintenancePolicyBuilder_ == null) { + if (((bitField1_ & 0x01000000) != 0) && + desiredHostMaintenancePolicy_ != null && + desiredHostMaintenancePolicy_ != com.google.container.v1beta1.HostMaintenancePolicy.getDefaultInstance()) { + getDesiredHostMaintenancePolicyBuilder().mergeFrom(value); + } else { + desiredHostMaintenancePolicy_ = value; + } + } else { + desiredHostMaintenancePolicyBuilder_.mergeFrom(value); + } + if (desiredHostMaintenancePolicy_ != null) { + bitField1_ |= 0x01000000; + onChanged(); + } + return this; + } + /** + *
+     * HostMaintenancePolicy contains the desired maintenance policy for the
+     * Google Compute Engine hosts.
+     * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy desired_host_maintenance_policy = 132; + */ + public Builder clearDesiredHostMaintenancePolicy() { + bitField1_ = (bitField1_ & ~0x01000000); + desiredHostMaintenancePolicy_ = null; + if (desiredHostMaintenancePolicyBuilder_ != null) { + desiredHostMaintenancePolicyBuilder_.dispose(); + desiredHostMaintenancePolicyBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * HostMaintenancePolicy contains the desired maintenance policy for the
+     * Google Compute Engine hosts.
+     * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy desired_host_maintenance_policy = 132; + */ + public com.google.container.v1beta1.HostMaintenancePolicy.Builder getDesiredHostMaintenancePolicyBuilder() { + bitField1_ |= 0x01000000; + onChanged(); + return getDesiredHostMaintenancePolicyFieldBuilder().getBuilder(); + } + /** + *
+     * HostMaintenancePolicy contains the desired maintenance policy for the
+     * Google Compute Engine hosts.
+     * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy desired_host_maintenance_policy = 132; + */ + public com.google.container.v1beta1.HostMaintenancePolicyOrBuilder getDesiredHostMaintenancePolicyOrBuilder() { + if (desiredHostMaintenancePolicyBuilder_ != null) { + return desiredHostMaintenancePolicyBuilder_.getMessageOrBuilder(); + } else { + return desiredHostMaintenancePolicy_ == null ? + com.google.container.v1beta1.HostMaintenancePolicy.getDefaultInstance() : desiredHostMaintenancePolicy_; + } + } + /** + *
+     * HostMaintenancePolicy contains the desired maintenance policy for the
+     * Google Compute Engine hosts.
+     * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy desired_host_maintenance_policy = 132; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.HostMaintenancePolicy, com.google.container.v1beta1.HostMaintenancePolicy.Builder, com.google.container.v1beta1.HostMaintenancePolicyOrBuilder> + getDesiredHostMaintenancePolicyFieldBuilder() { + if (desiredHostMaintenancePolicyBuilder_ == null) { + desiredHostMaintenancePolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.HostMaintenancePolicy, com.google.container.v1beta1.HostMaintenancePolicy.Builder, com.google.container.v1beta1.HostMaintenancePolicyOrBuilder>( + getDesiredHostMaintenancePolicy(), + getParentForChildren(), + isClean()); + desiredHostMaintenancePolicy_ = null; + } + return desiredHostMaintenancePolicyBuilder_; + } + + private com.google.container.v1beta1.ResourceManagerTags desiredNodePoolAutoConfigResourceManagerTags_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ResourceManagerTags, com.google.container.v1beta1.ResourceManagerTags.Builder, com.google.container.v1beta1.ResourceManagerTagsOrBuilder> desiredNodePoolAutoConfigResourceManagerTagsBuilder_; + /** + *
+     * The desired resource manager tags that apply to all auto-provisioned node
+     * pools in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1beta1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; + * @return Whether the desiredNodePoolAutoConfigResourceManagerTags field is set. + */ + public boolean hasDesiredNodePoolAutoConfigResourceManagerTags() { + return ((bitField1_ & 0x02000000) != 0); + } + /** + *
+     * The desired resource manager tags that apply to all auto-provisioned node
+     * pools in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1beta1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; + * @return The desiredNodePoolAutoConfigResourceManagerTags. + */ + public com.google.container.v1beta1.ResourceManagerTags getDesiredNodePoolAutoConfigResourceManagerTags() { + if (desiredNodePoolAutoConfigResourceManagerTagsBuilder_ == null) { + return desiredNodePoolAutoConfigResourceManagerTags_ == null ? com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance() : desiredNodePoolAutoConfigResourceManagerTags_; + } else { + return desiredNodePoolAutoConfigResourceManagerTagsBuilder_.getMessage(); + } + } + /** + *
+     * The desired resource manager tags that apply to all auto-provisioned node
+     * pools in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1beta1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; + */ + public Builder setDesiredNodePoolAutoConfigResourceManagerTags(com.google.container.v1beta1.ResourceManagerTags value) { + if (desiredNodePoolAutoConfigResourceManagerTagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredNodePoolAutoConfigResourceManagerTags_ = value; + } else { + desiredNodePoolAutoConfigResourceManagerTagsBuilder_.setMessage(value); + } + bitField1_ |= 0x02000000; + onChanged(); + return this; + } + /** + *
+     * The desired resource manager tags that apply to all auto-provisioned node
+     * pools in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1beta1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; + */ + public Builder setDesiredNodePoolAutoConfigResourceManagerTags( + com.google.container.v1beta1.ResourceManagerTags.Builder builderForValue) { + if (desiredNodePoolAutoConfigResourceManagerTagsBuilder_ == null) { + desiredNodePoolAutoConfigResourceManagerTags_ = builderForValue.build(); + } else { + desiredNodePoolAutoConfigResourceManagerTagsBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x02000000; + onChanged(); + return this; + } + /** + *
+     * The desired resource manager tags that apply to all auto-provisioned node
+     * pools in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1beta1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; + */ + public Builder mergeDesiredNodePoolAutoConfigResourceManagerTags(com.google.container.v1beta1.ResourceManagerTags value) { + if (desiredNodePoolAutoConfigResourceManagerTagsBuilder_ == null) { + if (((bitField1_ & 0x02000000) != 0) && + desiredNodePoolAutoConfigResourceManagerTags_ != null && + desiredNodePoolAutoConfigResourceManagerTags_ != com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance()) { + getDesiredNodePoolAutoConfigResourceManagerTagsBuilder().mergeFrom(value); + } else { + desiredNodePoolAutoConfigResourceManagerTags_ = value; + } + } else { + desiredNodePoolAutoConfigResourceManagerTagsBuilder_.mergeFrom(value); + } + if (desiredNodePoolAutoConfigResourceManagerTags_ != null) { + bitField1_ |= 0x02000000; + onChanged(); + } + return this; + } + /** + *
+     * The desired resource manager tags that apply to all auto-provisioned node
+     * pools in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1beta1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; + */ + public Builder clearDesiredNodePoolAutoConfigResourceManagerTags() { + bitField1_ = (bitField1_ & ~0x02000000); + desiredNodePoolAutoConfigResourceManagerTags_ = null; + if (desiredNodePoolAutoConfigResourceManagerTagsBuilder_ != null) { + desiredNodePoolAutoConfigResourceManagerTagsBuilder_.dispose(); + desiredNodePoolAutoConfigResourceManagerTagsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired resource manager tags that apply to all auto-provisioned node
+     * pools in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1beta1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; + */ + public com.google.container.v1beta1.ResourceManagerTags.Builder getDesiredNodePoolAutoConfigResourceManagerTagsBuilder() { + bitField1_ |= 0x02000000; + onChanged(); + return getDesiredNodePoolAutoConfigResourceManagerTagsFieldBuilder().getBuilder(); + } + /** + *
+     * The desired resource manager tags that apply to all auto-provisioned node
+     * pools in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1beta1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; + */ + public com.google.container.v1beta1.ResourceManagerTagsOrBuilder getDesiredNodePoolAutoConfigResourceManagerTagsOrBuilder() { + if (desiredNodePoolAutoConfigResourceManagerTagsBuilder_ != null) { + return desiredNodePoolAutoConfigResourceManagerTagsBuilder_.getMessageOrBuilder(); + } else { + return desiredNodePoolAutoConfigResourceManagerTags_ == null ? + com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance() : desiredNodePoolAutoConfigResourceManagerTags_; + } + } + /** + *
+     * The desired resource manager tags that apply to all auto-provisioned node
+     * pools in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * .google.container.v1beta1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ResourceManagerTags, com.google.container.v1beta1.ResourceManagerTags.Builder, com.google.container.v1beta1.ResourceManagerTagsOrBuilder> + getDesiredNodePoolAutoConfigResourceManagerTagsFieldBuilder() { + if (desiredNodePoolAutoConfigResourceManagerTagsBuilder_ == null) { + desiredNodePoolAutoConfigResourceManagerTagsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ResourceManagerTags, com.google.container.v1beta1.ResourceManagerTags.Builder, com.google.container.v1beta1.ResourceManagerTagsOrBuilder>( + getDesiredNodePoolAutoConfigResourceManagerTags(), + getParentForChildren(), + isClean()); + desiredNodePoolAutoConfigResourceManagerTags_ = null; + } + return desiredNodePoolAutoConfigResourceManagerTagsBuilder_; + } + + private int desiredInTransitEncryptionConfig_ = 0; + /** + *
+     * Specify the details of in-transit encryption.
+     * 
+ * + * optional .google.container.v1beta1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; + * @return Whether the desiredInTransitEncryptionConfig field is set. + */ + @java.lang.Override public boolean hasDesiredInTransitEncryptionConfig() { + return ((bitField1_ & 0x04000000) != 0); + } + /** + *
+     * Specify the details of in-transit encryption.
+     * 
+ * + * optional .google.container.v1beta1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; + * @return The enum numeric value on the wire for desiredInTransitEncryptionConfig. + */ + @java.lang.Override public int getDesiredInTransitEncryptionConfigValue() { + return desiredInTransitEncryptionConfig_; + } + /** + *
+     * Specify the details of in-transit encryption.
+     * 
+ * + * optional .google.container.v1beta1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; + * @param value The enum numeric value on the wire for desiredInTransitEncryptionConfig to set. + * @return This builder for chaining. + */ + public Builder setDesiredInTransitEncryptionConfigValue(int value) { + desiredInTransitEncryptionConfig_ = value; + bitField1_ |= 0x04000000; + onChanged(); + return this; + } + /** + *
+     * Specify the details of in-transit encryption.
+     * 
+ * + * optional .google.container.v1beta1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; + * @return The desiredInTransitEncryptionConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.InTransitEncryptionConfig getDesiredInTransitEncryptionConfig() { + com.google.container.v1beta1.InTransitEncryptionConfig result = com.google.container.v1beta1.InTransitEncryptionConfig.forNumber(desiredInTransitEncryptionConfig_); + return result == null ? com.google.container.v1beta1.InTransitEncryptionConfig.UNRECOGNIZED : result; + } + /** + *
+     * Specify the details of in-transit encryption.
+     * 
+ * + * optional .google.container.v1beta1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; + * @param value The desiredInTransitEncryptionConfig to set. + * @return This builder for chaining. + */ + public Builder setDesiredInTransitEncryptionConfig(com.google.container.v1beta1.InTransitEncryptionConfig value) { + if (value == null) { + throw new NullPointerException(); + } + bitField1_ |= 0x04000000; + desiredInTransitEncryptionConfig_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Specify the details of in-transit encryption.
+     * 
+ * + * optional .google.container.v1beta1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; + * @return This builder for chaining. + */ + public Builder clearDesiredInTransitEncryptionConfig() { + bitField1_ = (bitField1_ & ~0x04000000); + desiredInTransitEncryptionConfig_ = 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.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterUpdateOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterUpdateOrBuilder.java new file mode 100644 index 000000000000..dd5933f30cba --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterUpdateOrBuilder.java @@ -0,0 +1,1699 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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 L4 Internal Load Balancer Subsetting configuration.
+   * 
+ * + * .google.container.v1beta1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + * @return Whether the desiredL4ilbSubsettingConfig field is set. + */ + boolean hasDesiredL4IlbSubsettingConfig(); + /** + *
+   * The desired L4 Internal Load Balancer Subsetting configuration.
+   * 
+ * + * .google.container.v1beta1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + * @return The desiredL4ilbSubsettingConfig. + */ + com.google.container.v1beta1.ILBSubsettingConfig getDesiredL4IlbSubsettingConfig(); + /** + *
+   * The desired L4 Internal Load Balancer Subsetting configuration.
+   * 
+ * + * .google.container.v1beta1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + */ + com.google.container.v1beta1.ILBSubsettingConfigOrBuilder getDesiredL4IlbSubsettingConfigOrBuilder(); + + /** + *
+   * 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 state of IPv6 connectivity to Google Services.
+   * 
+ * + * .google.container.v1beta1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + * @return The enum numeric value on the wire for desiredPrivateIpv6GoogleAccess. + */ + int getDesiredPrivateIpv6GoogleAccessValue(); + /** + *
+   * The desired state of IPv6 connectivity to Google Services.
+   * 
+ * + * .google.container.v1beta1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + * @return The desiredPrivateIpv6GoogleAccess. + */ + com.google.container.v1beta1.PrivateIPv6GoogleAccess getDesiredPrivateIpv6GoogleAccess(); + + /** + *
+   * 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(); + + /** + *
+   * The desired GCFS config for the cluster.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + * @return Whether the desiredGcfsConfig field is set. + */ + boolean hasDesiredGcfsConfig(); + /** + *
+   * The desired GCFS config for the cluster.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + * @return The desiredGcfsConfig. + */ + com.google.container.v1beta1.GcfsConfig getDesiredGcfsConfig(); + /** + *
+   * The desired GCFS config for the cluster.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig desired_gcfs_config = 109; + */ + com.google.container.v1beta1.GcfsConfigOrBuilder getDesiredGcfsConfigOrBuilder(); + + /** + *
+   * 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 issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.WorkloadCertificates desired_workload_certificates = 61; + * @return Whether the desiredWorkloadCertificates field is set. + */ + boolean hasDesiredWorkloadCertificates(); + /** + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.WorkloadCertificates desired_workload_certificates = 61; + * @return The desiredWorkloadCertificates. + */ + com.google.container.v1beta1.WorkloadCertificates getDesiredWorkloadCertificates(); + /** + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.WorkloadCertificates desired_workload_certificates = 61; + */ + com.google.container.v1beta1.WorkloadCertificatesOrBuilder getDesiredWorkloadCertificatesOrBuilder(); + + /** + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + * @return Whether the desiredMeshCertificates field is set. + */ + boolean hasDesiredMeshCertificates(); + /** + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + * @return The desiredMeshCertificates. + */ + com.google.container.v1beta1.MeshCertificates getDesiredMeshCertificates(); + /** + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes
+   * pods.
+   * 
+ * + * .google.container.v1beta1.MeshCertificates desired_mesh_certificates = 67; + */ + com.google.container.v1beta1.MeshCertificatesOrBuilder getDesiredMeshCertificatesOrBuilder(); + + /** + *
+   * Configuration for direct-path (via ALTS) with workload identity.
+   * 
+ * + * .google.container.v1beta1.WorkloadALTSConfig desired_workload_alts_config = 62; + * @return Whether the desiredWorkloadAltsConfig field is set. + */ + boolean hasDesiredWorkloadAltsConfig(); + /** + *
+   * Configuration for direct-path (via ALTS) with workload identity.
+   * 
+ * + * .google.container.v1beta1.WorkloadALTSConfig desired_workload_alts_config = 62; + * @return The desiredWorkloadAltsConfig. + */ + com.google.container.v1beta1.WorkloadALTSConfig getDesiredWorkloadAltsConfig(); + /** + *
+   * Configuration for direct-path (via ALTS) with workload identity.
+   * 
+ * + * .google.container.v1beta1.WorkloadALTSConfig desired_workload_alts_config = 62; + */ + com.google.container.v1beta1.WorkloadALTSConfigOrBuilder getDesiredWorkloadAltsConfigOrBuilder(); + + /** + *
+   * 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(); + + /** + *
+   * The desired configuration for the fine-grained cost management feature.
+   * 
+ * + * .google.container.v1beta1.CostManagementConfig desired_cost_management_config = 49; + * @return Whether the desiredCostManagementConfig field is set. + */ + boolean hasDesiredCostManagementConfig(); + /** + *
+   * The desired configuration for the fine-grained cost management feature.
+   * 
+ * + * .google.container.v1beta1.CostManagementConfig desired_cost_management_config = 49; + * @return The desiredCostManagementConfig. + */ + com.google.container.v1beta1.CostManagementConfig getDesiredCostManagementConfig(); + /** + *
+   * The desired configuration for the fine-grained cost management feature.
+   * 
+ * + * .google.container.v1beta1.CostManagementConfig desired_cost_management_config = 49; + */ + com.google.container.v1beta1.CostManagementConfigOrBuilder getDesiredCostManagementConfigOrBuilder(); + + /** + *
+   * 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(); + + /** + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1beta1.DNSConfig desired_dns_config = 53; + * @return Whether the desiredDnsConfig field is set. + */ + boolean hasDesiredDnsConfig(); + /** + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1beta1.DNSConfig desired_dns_config = 53; + * @return The desiredDnsConfig. + */ + com.google.container.v1beta1.DNSConfig getDesiredDnsConfig(); + /** + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1beta1.DNSConfig desired_dns_config = 53; + */ + com.google.container.v1beta1.DNSConfigOrBuilder getDesiredDnsConfigOrBuilder(); + + /** + *
+   * ServiceExternalIPsConfig specifies the config for the use of Services with
+   * ExternalIPs field.
+   * 
+ * + * .google.container.v1beta1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + * @return Whether the desiredServiceExternalIpsConfig field is set. + */ + boolean hasDesiredServiceExternalIpsConfig(); + /** + *
+   * ServiceExternalIPsConfig specifies the config for the use of Services with
+   * ExternalIPs field.
+   * 
+ * + * .google.container.v1beta1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + * @return The desiredServiceExternalIpsConfig. + */ + com.google.container.v1beta1.ServiceExternalIPsConfig getDesiredServiceExternalIpsConfig(); + /** + *
+   * ServiceExternalIPsConfig specifies the config for the use of Services with
+   * ExternalIPs field.
+   * 
+ * + * .google.container.v1beta1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; + */ + com.google.container.v1beta1.ServiceExternalIPsConfigOrBuilder getDesiredServiceExternalIpsConfigOrBuilder(); + + /** + *
+   * AuthenticatorGroupsConfig specifies the config for the cluster security
+   * groups settings.
+   * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * @return Whether the desiredAuthenticatorGroupsConfig field is set. + */ + boolean hasDesiredAuthenticatorGroupsConfig(); + /** + *
+   * AuthenticatorGroupsConfig specifies the config for the cluster security
+   * groups settings.
+   * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + * @return The desiredAuthenticatorGroupsConfig. + */ + com.google.container.v1beta1.AuthenticatorGroupsConfig getDesiredAuthenticatorGroupsConfig(); + /** + *
+   * AuthenticatorGroupsConfig specifies the config for the cluster security
+   * groups settings.
+   * 
+ * + * .google.container.v1beta1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + */ + com.google.container.v1beta1.AuthenticatorGroupsConfigOrBuilder getDesiredAuthenticatorGroupsConfigOrBuilder(); + + /** + *
+   * The desired logging configuration.
+   * 
+ * + * .google.container.v1beta1.LoggingConfig desired_logging_config = 64; + * @return Whether the desiredLoggingConfig field is set. + */ + boolean hasDesiredLoggingConfig(); + /** + *
+   * The desired logging configuration.
+   * 
+ * + * .google.container.v1beta1.LoggingConfig desired_logging_config = 64; + * @return The desiredLoggingConfig. + */ + com.google.container.v1beta1.LoggingConfig getDesiredLoggingConfig(); + /** + *
+   * The desired logging configuration.
+   * 
+ * + * .google.container.v1beta1.LoggingConfig desired_logging_config = 64; + */ + com.google.container.v1beta1.LoggingConfigOrBuilder getDesiredLoggingConfigOrBuilder(); + + /** + *
+   * The desired monitoring configuration.
+   * 
+ * + * .google.container.v1beta1.MonitoringConfig desired_monitoring_config = 65; + * @return Whether the desiredMonitoringConfig field is set. + */ + boolean hasDesiredMonitoringConfig(); + /** + *
+   * The desired monitoring configuration.
+   * 
+ * + * .google.container.v1beta1.MonitoringConfig desired_monitoring_config = 65; + * @return The desiredMonitoringConfig. + */ + com.google.container.v1beta1.MonitoringConfig getDesiredMonitoringConfig(); + /** + *
+   * The desired monitoring configuration.
+   * 
+ * + * .google.container.v1beta1.MonitoringConfig desired_monitoring_config = 65; + */ + com.google.container.v1beta1.MonitoringConfigOrBuilder getDesiredMonitoringConfigOrBuilder(); + + /** + *
+   * The desired Identity Service component configuration.
+   * 
+ * + * .google.container.v1beta1.IdentityServiceConfig desired_identity_service_config = 66; + * @return Whether the desiredIdentityServiceConfig field is set. + */ + boolean hasDesiredIdentityServiceConfig(); + /** + *
+   * The desired Identity Service component configuration.
+   * 
+ * + * .google.container.v1beta1.IdentityServiceConfig desired_identity_service_config = 66; + * @return The desiredIdentityServiceConfig. + */ + com.google.container.v1beta1.IdentityServiceConfig getDesiredIdentityServiceConfig(); + /** + *
+   * The desired Identity Service component configuration.
+   * 
+ * + * .google.container.v1beta1.IdentityServiceConfig desired_identity_service_config = 66; + */ + com.google.container.v1beta1.IdentityServiceConfigOrBuilder getDesiredIdentityServiceConfigOrBuilder(); + + /** + *
+   * Enable/Disable private endpoint for the cluster's master.
+   * 
+ * + * optional bool desired_enable_private_endpoint = 71; + * @return Whether the desiredEnablePrivateEndpoint field is set. + */ + boolean hasDesiredEnablePrivateEndpoint(); + /** + *
+   * Enable/Disable private endpoint for the cluster's master.
+   * 
+ * + * optional bool desired_enable_private_endpoint = 71; + * @return The desiredEnablePrivateEndpoint. + */ + boolean getDesiredEnablePrivateEndpoint(); + + /** + *
+   * The desired network tags that apply to all auto-provisioned node pools
+   * in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * .google.container.v1beta1.NetworkTags desired_node_pool_auto_config_network_tags = 110; + * @return Whether the desiredNodePoolAutoConfigNetworkTags field is set. + */ + boolean hasDesiredNodePoolAutoConfigNetworkTags(); + /** + *
+   * The desired network tags that apply to all auto-provisioned node pools
+   * in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * .google.container.v1beta1.NetworkTags desired_node_pool_auto_config_network_tags = 110; + * @return The desiredNodePoolAutoConfigNetworkTags. + */ + com.google.container.v1beta1.NetworkTags getDesiredNodePoolAutoConfigNetworkTags(); + /** + *
+   * The desired network tags that apply to all auto-provisioned node pools
+   * in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * .google.container.v1beta1.NetworkTags desired_node_pool_auto_config_network_tags = 110; + */ + com.google.container.v1beta1.NetworkTagsOrBuilder getDesiredNodePoolAutoConfigNetworkTagsOrBuilder(); + + /** + *
+   * Deprecated: Use DesiredSecurityPostureConfig instead.
+   * Enable/Disable Protect API features for the cluster.
+   * 
+ * + * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112 [deprecated = true]; + * @deprecated google.container.v1beta1.ClusterUpdate.desired_protect_config is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2606 + * @return Whether the desiredProtectConfig field is set. + */ + @java.lang.Deprecated boolean hasDesiredProtectConfig(); + /** + *
+   * Deprecated: Use DesiredSecurityPostureConfig instead.
+   * Enable/Disable Protect API features for the cluster.
+   * 
+ * + * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112 [deprecated = true]; + * @deprecated google.container.v1beta1.ClusterUpdate.desired_protect_config is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2606 + * @return The desiredProtectConfig. + */ + @java.lang.Deprecated com.google.container.v1beta1.ProtectConfig getDesiredProtectConfig(); + /** + *
+   * Deprecated: Use DesiredSecurityPostureConfig instead.
+   * Enable/Disable Protect API features for the cluster.
+   * 
+ * + * optional .google.container.v1beta1.ProtectConfig desired_protect_config = 112 [deprecated = true]; + */ + @java.lang.Deprecated com.google.container.v1beta1.ProtectConfigOrBuilder getDesiredProtectConfigOrBuilder(); + + /** + *
+   * The desired config of Gateway API on this cluster.
+   * 
+ * + * .google.container.v1beta1.GatewayAPIConfig desired_gateway_api_config = 114; + * @return Whether the desiredGatewayApiConfig field is set. + */ + boolean hasDesiredGatewayApiConfig(); + /** + *
+   * The desired config of Gateway API on this cluster.
+   * 
+ * + * .google.container.v1beta1.GatewayAPIConfig desired_gateway_api_config = 114; + * @return The desiredGatewayApiConfig. + */ + com.google.container.v1beta1.GatewayAPIConfig getDesiredGatewayApiConfig(); + /** + *
+   * The desired config of Gateway API on this cluster.
+   * 
+ * + * .google.container.v1beta1.GatewayAPIConfig desired_gateway_api_config = 114; + */ + com.google.container.v1beta1.GatewayAPIConfigOrBuilder getDesiredGatewayApiConfigOrBuilder(); + + /** + *
+   * The current etag of the cluster.
+   * If an etag is provided and does not match the current etag of the cluster,
+   * update will be blocked and an ABORTED error will be returned.
+   * 
+ * + * string etag = 115; + * @return The etag. + */ + java.lang.String getEtag(); + /** + *
+   * The current etag of the cluster.
+   * If an etag is provided and does not match the current etag of the cluster,
+   * update will be blocked and an ABORTED error will be returned.
+   * 
+ * + * string etag = 115; + * @return The bytes for etag. + */ + com.google.protobuf.ByteString + getEtagBytes(); + + /** + *
+   * The desired node pool logging configuration defaults for the cluster.
+   * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; + * @return Whether the desiredNodePoolLoggingConfig field is set. + */ + boolean hasDesiredNodePoolLoggingConfig(); + /** + *
+   * The desired node pool logging configuration defaults for the cluster.
+   * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; + * @return The desiredNodePoolLoggingConfig. + */ + com.google.container.v1beta1.NodePoolLoggingConfig getDesiredNodePoolLoggingConfig(); + /** + *
+   * The desired node pool logging configuration defaults for the cluster.
+   * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; + */ + com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder getDesiredNodePoolLoggingConfigOrBuilder(); + + /** + *
+   * The desired fleet configuration for the cluster.
+   * 
+ * + * .google.container.v1beta1.Fleet desired_fleet = 117; + * @return Whether the desiredFleet field is set. + */ + boolean hasDesiredFleet(); + /** + *
+   * The desired fleet configuration for the cluster.
+   * 
+ * + * .google.container.v1beta1.Fleet desired_fleet = 117; + * @return The desiredFleet. + */ + com.google.container.v1beta1.Fleet getDesiredFleet(); + /** + *
+   * The desired fleet configuration for the cluster.
+   * 
+ * + * .google.container.v1beta1.Fleet desired_fleet = 117; + */ + com.google.container.v1beta1.FleetOrBuilder getDesiredFleetOrBuilder(); + + /** + *
+   * The desired stack type of the cluster.
+   * If a stack type is provided and does not match the current stack type of
+   * the cluster, update will attempt to change the stack type to the new type.
+   * 
+ * + * .google.container.v1beta1.StackType desired_stack_type = 119; + * @return The enum numeric value on the wire for desiredStackType. + */ + int getDesiredStackTypeValue(); + /** + *
+   * The desired stack type of the cluster.
+   * If a stack type is provided and does not match the current stack type of
+   * the cluster, update will attempt to change the stack type to the new type.
+   * 
+ * + * .google.container.v1beta1.StackType desired_stack_type = 119; + * @return The desiredStackType. + */ + com.google.container.v1beta1.StackType getDesiredStackType(); + + /** + *
+   * The additional pod ranges to be added to the cluster. These pod ranges
+   * can be used by node pools to allocate pod IPs.
+   * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; + * @return Whether the additionalPodRangesConfig field is set. + */ + boolean hasAdditionalPodRangesConfig(); + /** + *
+   * The additional pod ranges to be added to the cluster. These pod ranges
+   * can be used by node pools to allocate pod IPs.
+   * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; + * @return The additionalPodRangesConfig. + */ + com.google.container.v1beta1.AdditionalPodRangesConfig getAdditionalPodRangesConfig(); + /** + *
+   * The additional pod ranges to be added to the cluster. These pod ranges
+   * can be used by node pools to allocate pod IPs.
+   * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; + */ + com.google.container.v1beta1.AdditionalPodRangesConfigOrBuilder getAdditionalPodRangesConfigOrBuilder(); + + /** + *
+   * The additional pod ranges that are to be removed from the cluster.
+   * The pod ranges specified here must have been specified earlier in the
+   * 'additional_pod_ranges_config' argument.
+   * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; + * @return Whether the removedAdditionalPodRangesConfig field is set. + */ + boolean hasRemovedAdditionalPodRangesConfig(); + /** + *
+   * The additional pod ranges that are to be removed from the cluster.
+   * The pod ranges specified here must have been specified earlier in the
+   * 'additional_pod_ranges_config' argument.
+   * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; + * @return The removedAdditionalPodRangesConfig. + */ + com.google.container.v1beta1.AdditionalPodRangesConfig getRemovedAdditionalPodRangesConfig(); + /** + *
+   * The additional pod ranges that are to be removed from the cluster.
+   * The pod ranges specified here must have been specified earlier in the
+   * 'additional_pod_ranges_config' argument.
+   * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; + */ + com.google.container.v1beta1.AdditionalPodRangesConfigOrBuilder getRemovedAdditionalPodRangesConfigOrBuilder(); + + /** + *
+   * Kubernetes open source beta apis enabled on the cluster. Only beta apis
+   * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; + * @return Whether the enableK8sBetaApis field is set. + */ + boolean hasEnableK8SBetaApis(); + /** + *
+   * Kubernetes open source beta apis enabled on the cluster. Only beta apis
+   * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; + * @return The enableK8sBetaApis. + */ + com.google.container.v1beta1.K8sBetaAPIConfig getEnableK8SBetaApis(); + /** + *
+   * Kubernetes open source beta apis enabled on the cluster. Only beta apis
+   * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; + */ + com.google.container.v1beta1.K8sBetaAPIConfigOrBuilder getEnableK8SBetaApisOrBuilder(); + + /** + *
+   * Enable/Disable Security Posture API features for the cluster.
+   * 
+ * + * .google.container.v1beta1.SecurityPostureConfig desired_security_posture_config = 124; + * @return Whether the desiredSecurityPostureConfig field is set. + */ + boolean hasDesiredSecurityPostureConfig(); + /** + *
+   * Enable/Disable Security Posture API features for the cluster.
+   * 
+ * + * .google.container.v1beta1.SecurityPostureConfig desired_security_posture_config = 124; + * @return The desiredSecurityPostureConfig. + */ + com.google.container.v1beta1.SecurityPostureConfig getDesiredSecurityPostureConfig(); + /** + *
+   * Enable/Disable Security Posture API features for the cluster.
+   * 
+ * + * .google.container.v1beta1.SecurityPostureConfig desired_security_posture_config = 124; + */ + com.google.container.v1beta1.SecurityPostureConfigOrBuilder getDesiredSecurityPostureConfigOrBuilder(); + + /** + *
+   * The desired network performance config.
+   * 
+ * + * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; + * @return Whether the desiredNetworkPerformanceConfig field is set. + */ + boolean hasDesiredNetworkPerformanceConfig(); + /** + *
+   * The desired network performance config.
+   * 
+ * + * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; + * @return The desiredNetworkPerformanceConfig. + */ + com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig getDesiredNetworkPerformanceConfig(); + /** + *
+   * The desired network performance config.
+   * 
+ * + * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; + */ + com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder getDesiredNetworkPerformanceConfigOrBuilder(); + + /** + *
+   * Enable/Disable FQDN Network Policy for the cluster.
+   * 
+ * + * optional bool desired_enable_fqdn_network_policy = 126; + * @return Whether the desiredEnableFqdnNetworkPolicy field is set. + */ + boolean hasDesiredEnableFqdnNetworkPolicy(); + /** + *
+   * Enable/Disable FQDN Network Policy for the cluster.
+   * 
+ * + * optional bool desired_enable_fqdn_network_policy = 126; + * @return The desiredEnableFqdnNetworkPolicy. + */ + boolean getDesiredEnableFqdnNetworkPolicy(); + + /** + *
+   * The desired workload policy configuration for the autopilot cluster.
+   * 
+ * + * .google.container.v1beta1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; + * @return Whether the desiredAutopilotWorkloadPolicyConfig field is set. + */ + boolean hasDesiredAutopilotWorkloadPolicyConfig(); + /** + *
+   * The desired workload policy configuration for the autopilot cluster.
+   * 
+ * + * .google.container.v1beta1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; + * @return The desiredAutopilotWorkloadPolicyConfig. + */ + com.google.container.v1beta1.WorkloadPolicyConfig getDesiredAutopilotWorkloadPolicyConfig(); + /** + *
+   * The desired workload policy configuration for the autopilot cluster.
+   * 
+ * + * .google.container.v1beta1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; + */ + com.google.container.v1beta1.WorkloadPolicyConfigOrBuilder getDesiredAutopilotWorkloadPolicyConfigOrBuilder(); + + /** + *
+   * Beta APIs enabled for cluster.
+   * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; + * @return Whether the desiredK8sBetaApis field is set. + */ + boolean hasDesiredK8SBetaApis(); + /** + *
+   * Beta APIs enabled for cluster.
+   * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; + * @return The desiredK8sBetaApis. + */ + com.google.container.v1beta1.K8sBetaAPIConfig getDesiredK8SBetaApis(); + /** + *
+   * Beta APIs enabled for cluster.
+   * 
+ * + * .google.container.v1beta1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; + */ + com.google.container.v1beta1.K8sBetaAPIConfigOrBuilder getDesiredK8SBetaApisOrBuilder(); + + /** + *
+   * HostMaintenancePolicy contains the desired maintenance policy for the
+   * Google Compute Engine hosts.
+   * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy desired_host_maintenance_policy = 132; + * @return Whether the desiredHostMaintenancePolicy field is set. + */ + boolean hasDesiredHostMaintenancePolicy(); + /** + *
+   * HostMaintenancePolicy contains the desired maintenance policy for the
+   * Google Compute Engine hosts.
+   * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy desired_host_maintenance_policy = 132; + * @return The desiredHostMaintenancePolicy. + */ + com.google.container.v1beta1.HostMaintenancePolicy getDesiredHostMaintenancePolicy(); + /** + *
+   * HostMaintenancePolicy contains the desired maintenance policy for the
+   * Google Compute Engine hosts.
+   * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy desired_host_maintenance_policy = 132; + */ + com.google.container.v1beta1.HostMaintenancePolicyOrBuilder getDesiredHostMaintenancePolicyOrBuilder(); + + /** + *
+   * The desired resource manager tags that apply to all auto-provisioned node
+   * pools in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * .google.container.v1beta1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; + * @return Whether the desiredNodePoolAutoConfigResourceManagerTags field is set. + */ + boolean hasDesiredNodePoolAutoConfigResourceManagerTags(); + /** + *
+   * The desired resource manager tags that apply to all auto-provisioned node
+   * pools in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * .google.container.v1beta1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; + * @return The desiredNodePoolAutoConfigResourceManagerTags. + */ + com.google.container.v1beta1.ResourceManagerTags getDesiredNodePoolAutoConfigResourceManagerTags(); + /** + *
+   * The desired resource manager tags that apply to all auto-provisioned node
+   * pools in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * .google.container.v1beta1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; + */ + com.google.container.v1beta1.ResourceManagerTagsOrBuilder getDesiredNodePoolAutoConfigResourceManagerTagsOrBuilder(); + + /** + *
+   * Specify the details of in-transit encryption.
+   * 
+ * + * optional .google.container.v1beta1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; + * @return Whether the desiredInTransitEncryptionConfig field is set. + */ + boolean hasDesiredInTransitEncryptionConfig(); + /** + *
+   * Specify the details of in-transit encryption.
+   * 
+ * + * optional .google.container.v1beta1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; + * @return The enum numeric value on the wire for desiredInTransitEncryptionConfig. + */ + int getDesiredInTransitEncryptionConfigValue(); + /** + *
+   * Specify the details of in-transit encryption.
+   * 
+ * + * optional .google.container.v1beta1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; + * @return The desiredInTransitEncryptionConfig. + */ + com.google.container.v1beta1.InTransitEncryptionConfig getDesiredInTransitEncryptionConfig(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequest.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequest.java new file mode 100644 index 000000000000..a5a0f9bdd32e --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequest.java @@ -0,0 +1,1161 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4614 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4614 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4621 + * @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]; + * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4621 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4625 + * @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]; + * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4625 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * The name (project, location, cluster name) 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 name) 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.CompleteIPRotationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.name_ = name_; + } + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 58: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4614 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4614 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4614 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4614 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4614 + * @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; + bitField0_ |= 0x00000001; + 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]; + * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4621 + * @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]; + * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4621 + * @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]; + * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4621 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4621 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + 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]; + * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4621 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4625 + * @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]; + * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4625 + * @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]; + * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4625 + * @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; + bitField0_ |= 0x00000004; + 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]; + * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4625 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + 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]; + * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4625 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster name) 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 name) 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 name) 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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster name) 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(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster name) 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; + bitField0_ |= 0x00000008; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequestOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequestOrBuilder.java new file mode 100644 index 000000000000..ceef57992701 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequestOrBuilder.java @@ -0,0 +1,116 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4614 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4614 + * @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]; + * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4621 + * @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]; + * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4621 + * @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]; + * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4625 + * @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]; + * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4625 + * @return The bytes for clusterId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * The name (project, location, cluster name) 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 name) 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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteNodePoolUpgradeRequest.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteNodePoolUpgradeRequest.java new file mode 100644 index 000000000000..f528d5a835c4 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteNodePoolUpgradeRequest.java @@ -0,0 +1,594 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * CompleteNodePoolUpgradeRequest sets the name of target node pool to complete
+ * upgrade.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.CompleteNodePoolUpgradeRequest} + */ +public final class CompleteNodePoolUpgradeRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.CompleteNodePoolUpgradeRequest) + CompleteNodePoolUpgradeRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CompleteNodePoolUpgradeRequest.newBuilder() to construct. + private CompleteNodePoolUpgradeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CompleteNodePoolUpgradeRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CompleteNodePoolUpgradeRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CompleteNodePoolUpgradeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CompleteNodePoolUpgradeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.CompleteNodePoolUpgradeRequest.class, com.google.container.v1beta1.CompleteNodePoolUpgradeRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * complete upgrade.
+   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * 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 (project, location, cluster, node pool id) of the node pool to
+   * complete upgrade.
+   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.CompleteNodePoolUpgradeRequest)) { + return super.equals(obj); + } + com.google.container.v1beta1.CompleteNodePoolUpgradeRequest other = (com.google.container.v1beta1.CompleteNodePoolUpgradeRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.CompleteNodePoolUpgradeRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.CompleteNodePoolUpgradeRequest parseFrom( + 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.CompleteNodePoolUpgradeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.CompleteNodePoolUpgradeRequest parseFrom( + com.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.CompleteNodePoolUpgradeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.CompleteNodePoolUpgradeRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.CompleteNodePoolUpgradeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.CompleteNodePoolUpgradeRequest parseFrom( + java.io.InputStream 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.CompleteNodePoolUpgradeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.CompleteNodePoolUpgradeRequest parseDelimitedFrom( + java.io.InputStream 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.CompleteNodePoolUpgradeRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.CompleteNodePoolUpgradeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.CompleteNodePoolUpgradeRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * CompleteNodePoolUpgradeRequest sets the name of target node pool to complete
+   * upgrade.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.CompleteNodePoolUpgradeRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.CompleteNodePoolUpgradeRequest) + com.google.container.v1beta1.CompleteNodePoolUpgradeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CompleteNodePoolUpgradeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CompleteNodePoolUpgradeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.CompleteNodePoolUpgradeRequest.class, com.google.container.v1beta1.CompleteNodePoolUpgradeRequest.Builder.class); + } + + // Construct using com.google.container.v1beta1.CompleteNodePoolUpgradeRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 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_CompleteNodePoolUpgradeRequest_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.CompleteNodePoolUpgradeRequest getDefaultInstanceForType() { + return com.google.container.v1beta1.CompleteNodePoolUpgradeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.CompleteNodePoolUpgradeRequest build() { + com.google.container.v1beta1.CompleteNodePoolUpgradeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.CompleteNodePoolUpgradeRequest buildPartial() { + com.google.container.v1beta1.CompleteNodePoolUpgradeRequest result = new com.google.container.v1beta1.CompleteNodePoolUpgradeRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.CompleteNodePoolUpgradeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @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.CompleteNodePoolUpgradeRequest) { + return mergeFrom((com.google.container.v1beta1.CompleteNodePoolUpgradeRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.CompleteNodePoolUpgradeRequest other) { + if (other == com.google.container.v1beta1.CompleteNodePoolUpgradeRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * complete upgrade.
+     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * 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 (project, location, cluster, node pool id) of the node pool to
+     * complete upgrade.
+     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * 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 (project, location, cluster, node pool id) of the node pool to
+     * complete upgrade.
+     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * complete upgrade.
+     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster, node pool id) of the node pool to
+     * complete upgrade.
+     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+     * 
+ * + * 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; + bitField0_ |= 0x00000001; + 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.CompleteNodePoolUpgradeRequest) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.CompleteNodePoolUpgradeRequest) + private static final com.google.container.v1beta1.CompleteNodePoolUpgradeRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.CompleteNodePoolUpgradeRequest(); + } + + public static com.google.container.v1beta1.CompleteNodePoolUpgradeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CompleteNodePoolUpgradeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.CompleteNodePoolUpgradeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteNodePoolUpgradeRequestOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteNodePoolUpgradeRequestOrBuilder.java new file mode 100644 index 000000000000..62bb6a743840 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteNodePoolUpgradeRequestOrBuilder.java @@ -0,0 +1,34 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface CompleteNodePoolUpgradeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.CompleteNodePoolUpgradeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * complete upgrade.
+   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * The name (project, location, cluster, node pool id) of the node pool to
+   * complete upgrade.
+   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfidentialNodes.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfidentialNodes.java new file mode 100644 index 000000000000..f6a1bd3b2bf6 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfidentialNodes.java @@ -0,0 +1,499 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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_ = false; + /** + *
+   * Whether Confidential Nodes feature is enabled.
+   * 
+ * + * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 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_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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.ConfidentialNodes result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @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.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enabled_ ; + /** + *
+     * Whether Confidential Nodes feature is enabled.
+     * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Whether Confidential Nodes feature is enabled.
+     * 
+ * + * bool enabled = 1; + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether Confidential Nodes feature is enabled.
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfidentialNodesOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfidentialNodesOrBuilder.java new file mode 100644 index 000000000000..e782c338783a --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfidentialNodesOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfigConnectorConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfigConnectorConfig.java new file mode 100644 index 000000000000..2e68875c87e8 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfigConnectorConfig.java @@ -0,0 +1,497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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_ = false; + /** + *
+   * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 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_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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.ConfigConnectorConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @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.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether Cloud Connector is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfigConnectorConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfigConnectorConfigOrBuilder.java new file mode 100644 index 000000000000..8130d6f59ba4 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ConfigConnectorConfigOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CostManagementConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CostManagementConfig.java new file mode 100644 index 000000000000..9b3ac2edb92a --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CostManagementConfig.java @@ -0,0 +1,497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * Configuration for fine-grained cost management feature.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.CostManagementConfig} + */ +public final class CostManagementConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.CostManagementConfig) + CostManagementConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use CostManagementConfig.newBuilder() to construct. + private CostManagementConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CostManagementConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CostManagementConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CostManagementConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CostManagementConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.CostManagementConfig.class, com.google.container.v1beta1.CostManagementConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * Whether the feature is enabled 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.CostManagementConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.CostManagementConfig other = (com.google.container.v1beta1.CostManagementConfig) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.CostManagementConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.CostManagementConfig parseFrom( + 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.CostManagementConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.CostManagementConfig parseFrom( + com.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.CostManagementConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.CostManagementConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.CostManagementConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.CostManagementConfig parseFrom( + java.io.InputStream 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.CostManagementConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.CostManagementConfig parseDelimitedFrom( + java.io.InputStream 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.CostManagementConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.CostManagementConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.CostManagementConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new 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 fine-grained cost management feature.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.CostManagementConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.CostManagementConfig) + com.google.container.v1beta1.CostManagementConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CostManagementConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_CostManagementConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.CostManagementConfig.class, com.google.container.v1beta1.CostManagementConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.CostManagementConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 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_CostManagementConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.CostManagementConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.CostManagementConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.CostManagementConfig build() { + com.google.container.v1beta1.CostManagementConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.CostManagementConfig buildPartial() { + com.google.container.v1beta1.CostManagementConfig result = new com.google.container.v1beta1.CostManagementConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.CostManagementConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @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.CostManagementConfig) { + return mergeFrom((com.google.container.v1beta1.CostManagementConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.CostManagementConfig other) { + if (other == com.google.container.v1beta1.CostManagementConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enabled_ ; + /** + *
+     * Whether the feature is enabled or not.
+     * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Whether the feature 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether the feature is enabled or not.
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + 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.CostManagementConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.CostManagementConfig) + private static final com.google.container.v1beta1.CostManagementConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.CostManagementConfig(); + } + + public static com.google.container.v1beta1.CostManagementConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CostManagementConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.CostManagementConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CostManagementConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CostManagementConfigOrBuilder.java new file mode 100644 index 000000000000..d359842a39e5 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CostManagementConfigOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface CostManagementConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.CostManagementConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether the feature is enabled or not.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequest.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequest.java new file mode 100644 index 000000000000..9d7b4bd55e5d --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequest.java @@ -0,0 +1,1229 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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); + } + + private int bitField0_; + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2952 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2952 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2959 + * @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]; + * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2959 + * @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 ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * 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 cluster_ == null ? com.google.container.v1beta1.Cluster.getDefaultInstance() : cluster_; + } + + public static final int PARENT_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCluster()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parent_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCluster()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { + getClusterFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + cluster_ = null; + if (clusterBuilder_ != null) { + clusterBuilder_.dispose(); + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.CreateClusterRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.cluster_ = clusterBuilder_ == null + ? cluster_ + : clusterBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.parent_ = parent_; + } + result.bitField0_ |= to_bitField0_; + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCluster()) { + mergeCluster(other.getCluster()); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getClusterFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 42: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2952 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2952 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2952 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2952 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2952 + * @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; + bitField0_ |= 0x00000001; + 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]; + * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2959 + * @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]; + * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2959 + * @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]; + * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2959 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2959 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + 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]; + * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2959 + * @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; + bitField0_ |= 0x00000002; + 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 ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * 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; + } else { + clusterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + 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(); + } else { + clusterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + 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 (((bitField0_ & 0x00000004) != 0) && + cluster_ != null && + cluster_ != com.google.container.v1beta1.Cluster.getDefaultInstance()) { + getClusterBuilder().mergeFrom(value); + } else { + cluster_ = value; + } + } else { + clusterBuilder_.mergeFrom(value); + } + if (cluster_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + 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() { + bitField0_ = (bitField0_ & ~0x00000004); + cluster_ = null; + if (clusterBuilder_ != null) { + clusterBuilder_.dispose(); + clusterBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000004; + 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; + bitField0_ |= 0x00000008; + 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(); + bitField0_ = (bitField0_ & ~0x00000008); + 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; + bitField0_ |= 0x00000008; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequestOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequestOrBuilder.java new file mode 100644 index 000000000000..e78acf89886c --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequestOrBuilder.java @@ -0,0 +1,120 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2952 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2952 + * @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]; + * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2959 + * @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]; + * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2959 + * @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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequest.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequest.java new file mode 100644 index 000000000000..d8ad69c80de4 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequest.java @@ -0,0 +1,1409 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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); + } + + private int bitField0_; + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3646 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3646 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3653 + * @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]; + * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3653 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3657 + * @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]; + * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3657 + * @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 ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * 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 nodePool_ == null ? com.google.container.v1beta1.NodePool.getDefaultInstance() : nodePool_; + } + + public static final int PARENT_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + *
+   * The parent (project, location, cluster name) 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 name) 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getNodePool()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, parent_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getNodePool()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, parent_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { + getNodePoolFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePool_ = null; + if (nodePoolBuilder_ != null) { + nodePoolBuilder_.dispose(); + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.CreateNodePoolRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.nodePool_ = nodePoolBuilder_ == null + ? nodePool_ + : nodePoolBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.parent_ = parent_; + } + result.bitField0_ |= to_bitField0_; + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasNodePool()) { + mergeNodePool(other.getNodePool()); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getNodePoolFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 50: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3646 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3646 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3646 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3646 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3646 + * @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; + bitField0_ |= 0x00000001; + 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]; + * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3653 + * @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]; + * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3653 + * @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]; + * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3653 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3653 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + 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]; + * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3653 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3657 + * @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]; + * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3657 + * @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]; + * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3657 + * @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; + bitField0_ |= 0x00000004; + 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]; + * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3657 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + 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]; + * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3657 + * @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; + bitField0_ |= 0x00000004; + 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 ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * 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; + } else { + nodePoolBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + 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(); + } else { + nodePoolBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + 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 (((bitField0_ & 0x00000008) != 0) && + nodePool_ != null && + nodePool_ != com.google.container.v1beta1.NodePool.getDefaultInstance()) { + getNodePoolBuilder().mergeFrom(value); + } else { + nodePool_ = value; + } + } else { + nodePoolBuilder_.mergeFrom(value); + } + if (nodePool_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + *
+     * Required. The node pool to create.
+     * 
+ * + * .google.container.v1beta1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearNodePool() { + bitField0_ = (bitField0_ & ~0x00000008); + nodePool_ = null; + if (nodePoolBuilder_ != null) { + nodePoolBuilder_.dispose(); + nodePoolBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000008; + 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 name) 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 name) 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 name) 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; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * The parent (project, location, cluster name) 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(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+     * The parent (project, location, cluster name) 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; + bitField0_ |= 0x00000010; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequestOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequestOrBuilder.java new file mode 100644 index 000000000000..4ca2291e6382 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequestOrBuilder.java @@ -0,0 +1,145 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3646 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3646 + * @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]; + * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3653 + * @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]; + * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3653 + * @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]; + * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3657 + * @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]; + * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3657 + * @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 name) 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 name) 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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DNSConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DNSConfig.java new file mode 100644 index 000000000000..05b4ddb487eb --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DNSConfig.java @@ -0,0 +1,1129 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * DNSConfig contains the desired set of options for configuring clusterDNS.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.DNSConfig} + */ +public final class DNSConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.DNSConfig) + DNSConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use DNSConfig.newBuilder() to construct. + private DNSConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DNSConfig() { + clusterDns_ = 0; + clusterDnsScope_ = 0; + clusterDnsDomain_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DNSConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_DNSConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_DNSConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.DNSConfig.class, com.google.container.v1beta1.DNSConfig.Builder.class); + } + + /** + *
+   * Provider lists the various in-cluster DNS providers.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.DNSConfig.Provider} + */ + public enum Provider + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Default value
+     * 
+ * + * PROVIDER_UNSPECIFIED = 0; + */ + PROVIDER_UNSPECIFIED(0), + /** + *
+     * Use GKE default DNS provider(kube-dns) for DNS resolution.
+     * 
+ * + * PLATFORM_DEFAULT = 1; + */ + PLATFORM_DEFAULT(1), + /** + *
+     * Use CloudDNS for DNS resolution.
+     * 
+ * + * CLOUD_DNS = 2; + */ + CLOUD_DNS(2), + /** + *
+     * Use KubeDNS for DNS resolution.
+     * 
+ * + * KUBE_DNS = 3; + */ + KUBE_DNS(3), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Default value
+     * 
+ * + * PROVIDER_UNSPECIFIED = 0; + */ + public static final int PROVIDER_UNSPECIFIED_VALUE = 0; + /** + *
+     * Use GKE default DNS provider(kube-dns) for DNS resolution.
+     * 
+ * + * PLATFORM_DEFAULT = 1; + */ + public static final int PLATFORM_DEFAULT_VALUE = 1; + /** + *
+     * Use CloudDNS for DNS resolution.
+     * 
+ * + * CLOUD_DNS = 2; + */ + public static final int CLOUD_DNS_VALUE = 2; + /** + *
+     * Use KubeDNS for DNS resolution.
+     * 
+ * + * KUBE_DNS = 3; + */ + public static final int KUBE_DNS_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 Provider valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Provider forNumber(int value) { + switch (value) { + case 0: return PROVIDER_UNSPECIFIED; + case 1: return PLATFORM_DEFAULT; + case 2: return CLOUD_DNS; + case 3: return KUBE_DNS; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Provider> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Provider findValueByNumber(int number) { + return Provider.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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.DNSConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final Provider[] VALUES = values(); + + public static Provider valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Provider(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.DNSConfig.Provider) + } + + /** + *
+   * DNSScope lists the various scopes of access to cluster DNS records.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.DNSConfig.DNSScope} + */ + public enum DNSScope + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Default value, will be inferred as cluster scope.
+     * 
+ * + * DNS_SCOPE_UNSPECIFIED = 0; + */ + DNS_SCOPE_UNSPECIFIED(0), + /** + *
+     * DNS records are accessible from within the cluster.
+     * 
+ * + * CLUSTER_SCOPE = 1; + */ + CLUSTER_SCOPE(1), + /** + *
+     * DNS records are accessible from within the VPC.
+     * 
+ * + * VPC_SCOPE = 2; + */ + VPC_SCOPE(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Default value, will be inferred as cluster scope.
+     * 
+ * + * DNS_SCOPE_UNSPECIFIED = 0; + */ + public static final int DNS_SCOPE_UNSPECIFIED_VALUE = 0; + /** + *
+     * DNS records are accessible from within the cluster.
+     * 
+ * + * CLUSTER_SCOPE = 1; + */ + public static final int CLUSTER_SCOPE_VALUE = 1; + /** + *
+     * DNS records are accessible from within the VPC.
+     * 
+ * + * VPC_SCOPE = 2; + */ + public static final int VPC_SCOPE_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DNSScope valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DNSScope forNumber(int value) { + switch (value) { + case 0: return DNS_SCOPE_UNSPECIFIED; + case 1: return CLUSTER_SCOPE; + case 2: return VPC_SCOPE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + DNSScope> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DNSScope findValueByNumber(int number) { + return DNSScope.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1beta1.DNSConfig.getDescriptor().getEnumTypes().get(1); + } + + private static final DNSScope[] VALUES = values(); + + public static DNSScope valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DNSScope(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.DNSConfig.DNSScope) + } + + public static final int CLUSTER_DNS_FIELD_NUMBER = 1; + private int clusterDns_ = 0; + /** + *
+   * cluster_dns indicates which in-cluster DNS provider should be used.
+   * 
+ * + * .google.container.v1beta1.DNSConfig.Provider cluster_dns = 1; + * @return The enum numeric value on the wire for clusterDns. + */ + @java.lang.Override public int getClusterDnsValue() { + return clusterDns_; + } + /** + *
+   * cluster_dns indicates which in-cluster DNS provider should be used.
+   * 
+ * + * .google.container.v1beta1.DNSConfig.Provider cluster_dns = 1; + * @return The clusterDns. + */ + @java.lang.Override public com.google.container.v1beta1.DNSConfig.Provider getClusterDns() { + com.google.container.v1beta1.DNSConfig.Provider result = com.google.container.v1beta1.DNSConfig.Provider.forNumber(clusterDns_); + return result == null ? com.google.container.v1beta1.DNSConfig.Provider.UNRECOGNIZED : result; + } + + public static final int CLUSTER_DNS_SCOPE_FIELD_NUMBER = 2; + private int clusterDnsScope_ = 0; + /** + *
+   * cluster_dns_scope indicates the scope of access to cluster DNS records.
+   * 
+ * + * .google.container.v1beta1.DNSConfig.DNSScope cluster_dns_scope = 2; + * @return The enum numeric value on the wire for clusterDnsScope. + */ + @java.lang.Override public int getClusterDnsScopeValue() { + return clusterDnsScope_; + } + /** + *
+   * cluster_dns_scope indicates the scope of access to cluster DNS records.
+   * 
+ * + * .google.container.v1beta1.DNSConfig.DNSScope cluster_dns_scope = 2; + * @return The clusterDnsScope. + */ + @java.lang.Override public com.google.container.v1beta1.DNSConfig.DNSScope getClusterDnsScope() { + com.google.container.v1beta1.DNSConfig.DNSScope result = com.google.container.v1beta1.DNSConfig.DNSScope.forNumber(clusterDnsScope_); + return result == null ? com.google.container.v1beta1.DNSConfig.DNSScope.UNRECOGNIZED : result; + } + + public static final int CLUSTER_DNS_DOMAIN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object clusterDnsDomain_ = ""; + /** + *
+   * cluster_dns_domain is the suffix used for all cluster service records.
+   * 
+ * + * string cluster_dns_domain = 3; + * @return The clusterDnsDomain. + */ + @java.lang.Override + public java.lang.String getClusterDnsDomain() { + java.lang.Object ref = clusterDnsDomain_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterDnsDomain_ = s; + return s; + } + } + /** + *
+   * cluster_dns_domain is the suffix used for all cluster service records.
+   * 
+ * + * string cluster_dns_domain = 3; + * @return The bytes for clusterDnsDomain. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getClusterDnsDomainBytes() { + java.lang.Object ref = clusterDnsDomain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterDnsDomain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (clusterDns_ != com.google.container.v1beta1.DNSConfig.Provider.PROVIDER_UNSPECIFIED.getNumber()) { + output.writeEnum(1, clusterDns_); + } + if (clusterDnsScope_ != com.google.container.v1beta1.DNSConfig.DNSScope.DNS_SCOPE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, clusterDnsScope_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterDnsDomain_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterDnsDomain_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (clusterDns_ != com.google.container.v1beta1.DNSConfig.Provider.PROVIDER_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, clusterDns_); + } + if (clusterDnsScope_ != com.google.container.v1beta1.DNSConfig.DNSScope.DNS_SCOPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, clusterDnsScope_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterDnsDomain_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterDnsDomain_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.DNSConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.DNSConfig other = (com.google.container.v1beta1.DNSConfig) obj; + + if (clusterDns_ != other.clusterDns_) return false; + if (clusterDnsScope_ != other.clusterDnsScope_) return false; + if (!getClusterDnsDomain() + .equals(other.getClusterDnsDomain())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CLUSTER_DNS_FIELD_NUMBER; + hash = (53 * hash) + clusterDns_; + hash = (37 * hash) + CLUSTER_DNS_SCOPE_FIELD_NUMBER; + hash = (53 * hash) + clusterDnsScope_; + hash = (37 * hash) + CLUSTER_DNS_DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getClusterDnsDomain().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.DNSConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.DNSConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.DNSConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.DNSConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.DNSConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.DNSConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.DNSConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.DNSConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.DNSConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.DNSConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.DNSConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.DNSConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.DNSConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * DNSConfig contains the desired set of options for configuring clusterDNS.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.DNSConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.DNSConfig) + com.google.container.v1beta1.DNSConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_DNSConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_DNSConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.DNSConfig.class, com.google.container.v1beta1.DNSConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.DNSConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + clusterDns_ = 0; + clusterDnsScope_ = 0; + clusterDnsDomain_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_DNSConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.DNSConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.DNSConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.DNSConfig build() { + com.google.container.v1beta1.DNSConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.DNSConfig buildPartial() { + com.google.container.v1beta1.DNSConfig result = new com.google.container.v1beta1.DNSConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.DNSConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.clusterDns_ = clusterDns_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.clusterDnsScope_ = clusterDnsScope_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterDnsDomain_ = clusterDnsDomain_; + } + } + + @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.DNSConfig) { + return mergeFrom((com.google.container.v1beta1.DNSConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.DNSConfig other) { + if (other == com.google.container.v1beta1.DNSConfig.getDefaultInstance()) return this; + if (other.clusterDns_ != 0) { + setClusterDnsValue(other.getClusterDnsValue()); + } + if (other.clusterDnsScope_ != 0) { + setClusterDnsScopeValue(other.getClusterDnsScopeValue()); + } + if (!other.getClusterDnsDomain().isEmpty()) { + clusterDnsDomain_ = other.clusterDnsDomain_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + clusterDns_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + clusterDnsScope_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + clusterDnsDomain_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int clusterDns_ = 0; + /** + *
+     * cluster_dns indicates which in-cluster DNS provider should be used.
+     * 
+ * + * .google.container.v1beta1.DNSConfig.Provider cluster_dns = 1; + * @return The enum numeric value on the wire for clusterDns. + */ + @java.lang.Override public int getClusterDnsValue() { + return clusterDns_; + } + /** + *
+     * cluster_dns indicates which in-cluster DNS provider should be used.
+     * 
+ * + * .google.container.v1beta1.DNSConfig.Provider cluster_dns = 1; + * @param value The enum numeric value on the wire for clusterDns to set. + * @return This builder for chaining. + */ + public Builder setClusterDnsValue(int value) { + clusterDns_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * cluster_dns indicates which in-cluster DNS provider should be used.
+     * 
+ * + * .google.container.v1beta1.DNSConfig.Provider cluster_dns = 1; + * @return The clusterDns. + */ + @java.lang.Override + public com.google.container.v1beta1.DNSConfig.Provider getClusterDns() { + com.google.container.v1beta1.DNSConfig.Provider result = com.google.container.v1beta1.DNSConfig.Provider.forNumber(clusterDns_); + return result == null ? com.google.container.v1beta1.DNSConfig.Provider.UNRECOGNIZED : result; + } + /** + *
+     * cluster_dns indicates which in-cluster DNS provider should be used.
+     * 
+ * + * .google.container.v1beta1.DNSConfig.Provider cluster_dns = 1; + * @param value The clusterDns to set. + * @return This builder for chaining. + */ + public Builder setClusterDns(com.google.container.v1beta1.DNSConfig.Provider value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + clusterDns_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * cluster_dns indicates which in-cluster DNS provider should be used.
+     * 
+ * + * .google.container.v1beta1.DNSConfig.Provider cluster_dns = 1; + * @return This builder for chaining. + */ + public Builder clearClusterDns() { + bitField0_ = (bitField0_ & ~0x00000001); + clusterDns_ = 0; + onChanged(); + return this; + } + + private int clusterDnsScope_ = 0; + /** + *
+     * cluster_dns_scope indicates the scope of access to cluster DNS records.
+     * 
+ * + * .google.container.v1beta1.DNSConfig.DNSScope cluster_dns_scope = 2; + * @return The enum numeric value on the wire for clusterDnsScope. + */ + @java.lang.Override public int getClusterDnsScopeValue() { + return clusterDnsScope_; + } + /** + *
+     * cluster_dns_scope indicates the scope of access to cluster DNS records.
+     * 
+ * + * .google.container.v1beta1.DNSConfig.DNSScope cluster_dns_scope = 2; + * @param value The enum numeric value on the wire for clusterDnsScope to set. + * @return This builder for chaining. + */ + public Builder setClusterDnsScopeValue(int value) { + clusterDnsScope_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * cluster_dns_scope indicates the scope of access to cluster DNS records.
+     * 
+ * + * .google.container.v1beta1.DNSConfig.DNSScope cluster_dns_scope = 2; + * @return The clusterDnsScope. + */ + @java.lang.Override + public com.google.container.v1beta1.DNSConfig.DNSScope getClusterDnsScope() { + com.google.container.v1beta1.DNSConfig.DNSScope result = com.google.container.v1beta1.DNSConfig.DNSScope.forNumber(clusterDnsScope_); + return result == null ? com.google.container.v1beta1.DNSConfig.DNSScope.UNRECOGNIZED : result; + } + /** + *
+     * cluster_dns_scope indicates the scope of access to cluster DNS records.
+     * 
+ * + * .google.container.v1beta1.DNSConfig.DNSScope cluster_dns_scope = 2; + * @param value The clusterDnsScope to set. + * @return This builder for chaining. + */ + public Builder setClusterDnsScope(com.google.container.v1beta1.DNSConfig.DNSScope value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + clusterDnsScope_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * cluster_dns_scope indicates the scope of access to cluster DNS records.
+     * 
+ * + * .google.container.v1beta1.DNSConfig.DNSScope cluster_dns_scope = 2; + * @return This builder for chaining. + */ + public Builder clearClusterDnsScope() { + bitField0_ = (bitField0_ & ~0x00000002); + clusterDnsScope_ = 0; + onChanged(); + return this; + } + + private java.lang.Object clusterDnsDomain_ = ""; + /** + *
+     * cluster_dns_domain is the suffix used for all cluster service records.
+     * 
+ * + * string cluster_dns_domain = 3; + * @return The clusterDnsDomain. + */ + public java.lang.String getClusterDnsDomain() { + java.lang.Object ref = clusterDnsDomain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterDnsDomain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * cluster_dns_domain is the suffix used for all cluster service records.
+     * 
+ * + * string cluster_dns_domain = 3; + * @return The bytes for clusterDnsDomain. + */ + public com.google.protobuf.ByteString + getClusterDnsDomainBytes() { + java.lang.Object ref = clusterDnsDomain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterDnsDomain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * cluster_dns_domain is the suffix used for all cluster service records.
+     * 
+ * + * string cluster_dns_domain = 3; + * @param value The clusterDnsDomain to set. + * @return This builder for chaining. + */ + public Builder setClusterDnsDomain( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + clusterDnsDomain_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * cluster_dns_domain is the suffix used for all cluster service records.
+     * 
+ * + * string cluster_dns_domain = 3; + * @return This builder for chaining. + */ + public Builder clearClusterDnsDomain() { + clusterDnsDomain_ = getDefaultInstance().getClusterDnsDomain(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * cluster_dns_domain is the suffix used for all cluster service records.
+     * 
+ * + * string cluster_dns_domain = 3; + * @param value The bytes for clusterDnsDomain to set. + * @return This builder for chaining. + */ + public Builder setClusterDnsDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + clusterDnsDomain_ = value; + bitField0_ |= 0x00000004; + 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.DNSConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.DNSConfig) + private static final com.google.container.v1beta1.DNSConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.DNSConfig(); + } + + public static com.google.container.v1beta1.DNSConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DNSConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.DNSConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DNSConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DNSConfigOrBuilder.java new file mode 100644 index 000000000000..cec160ab147c --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DNSConfigOrBuilder.java @@ -0,0 +1,68 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface DNSConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.DNSConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * cluster_dns indicates which in-cluster DNS provider should be used.
+   * 
+ * + * .google.container.v1beta1.DNSConfig.Provider cluster_dns = 1; + * @return The enum numeric value on the wire for clusterDns. + */ + int getClusterDnsValue(); + /** + *
+   * cluster_dns indicates which in-cluster DNS provider should be used.
+   * 
+ * + * .google.container.v1beta1.DNSConfig.Provider cluster_dns = 1; + * @return The clusterDns. + */ + com.google.container.v1beta1.DNSConfig.Provider getClusterDns(); + + /** + *
+   * cluster_dns_scope indicates the scope of access to cluster DNS records.
+   * 
+ * + * .google.container.v1beta1.DNSConfig.DNSScope cluster_dns_scope = 2; + * @return The enum numeric value on the wire for clusterDnsScope. + */ + int getClusterDnsScopeValue(); + /** + *
+   * cluster_dns_scope indicates the scope of access to cluster DNS records.
+   * 
+ * + * .google.container.v1beta1.DNSConfig.DNSScope cluster_dns_scope = 2; + * @return The clusterDnsScope. + */ + com.google.container.v1beta1.DNSConfig.DNSScope getClusterDnsScope(); + + /** + *
+   * cluster_dns_domain is the suffix used for all cluster service records.
+   * 
+ * + * string cluster_dns_domain = 3; + * @return The clusterDnsDomain. + */ + java.lang.String getClusterDnsDomain(); + /** + *
+   * cluster_dns_domain is the suffix used for all cluster service records.
+   * 
+ * + * string cluster_dns_domain = 3; + * @return The bytes for clusterDnsDomain. + */ + com.google.protobuf.ByteString + getClusterDnsDomainBytes(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DailyMaintenanceWindow.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DailyMaintenanceWindow.java new file mode 100644 index 000000000000..c5da5a948c36 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DailyMaintenanceWindow.java @@ -0,0 +1,756 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startTime_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, startTime_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(duration_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, duration_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startTime_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, startTime_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(duration_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, duration_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.DailyMaintenanceWindow result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.startTime_ = startTime_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.duration_ = duration_; + } + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDuration().isEmpty()) { + duration_ = other.duration_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: { + startTime_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 26: { + duration_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + 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; + bitField0_ |= 0x00000002; + 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(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DailyMaintenanceWindowOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DailyMaintenanceWindowOrBuilder.java new file mode 100644 index 000000000000..e3303c4d5efd --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DailyMaintenanceWindowOrBuilder.java @@ -0,0 +1,54 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DatabaseEncryption.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DatabaseEncryption.java new file mode 100644 index 000000000000..5d6615fb5334 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DatabaseEncryption.java @@ -0,0 +1,854 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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() { + keyName_ = ""; + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DatabaseEncryption(); + } + + 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< + State> 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 KEY_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + 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; + } + } + + public static final int STATE_FIELD_NUMBER = 2; + private int state_ = 0; + /** + *
+   * The desired 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_; + } + /** + *
+   * The desired 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() { + com.google.container.v1beta1.DatabaseEncryption.State result = com.google.container.v1beta1.DatabaseEncryption.State.forNumber(state_); + return result == null ? com.google.container.v1beta1.DatabaseEncryption.State.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyName_); + } + if (state_ != com.google.container.v1beta1.DatabaseEncryption.State.UNKNOWN.getNumber()) { + output.writeEnum(2, state_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyName_)) { + 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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getKeyName() + .equals(other.getKeyName())) return false; + if (state_ != other.state_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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_NAME_FIELD_NUMBER; + hash = (53 * hash) + getKeyName().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + keyName_ = ""; + state_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.DatabaseEncryption result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.keyName_ = keyName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.state_ = state_; + } + } + + @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.getKeyName().isEmpty()) { + keyName_ = other.keyName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + keyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + state_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int state_ = 0; + /** + *
+     * The desired 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_; + } + /** + *
+     * The desired 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The desired 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() { + com.google.container.v1beta1.DatabaseEncryption.State result = com.google.container.v1beta1.DatabaseEncryption.State.forNumber(state_); + return result == null ? com.google.container.v1beta1.DatabaseEncryption.State.UNRECOGNIZED : result; + } + /** + *
+     * The desired 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(); + } + bitField0_ |= 0x00000002; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The desired state of etcd encryption.
+     * 
+ * + * .google.container.v1beta1.DatabaseEncryption.State state = 2; + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000002); + state_ = 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.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DatabaseEncryptionOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DatabaseEncryptionOrBuilder.java new file mode 100644 index 000000000000..f7744c377e20 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DatabaseEncryptionOrBuilder.java @@ -0,0 +1,51 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface DatabaseEncryptionOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.DatabaseEncryption) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * 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(); + + /** + *
+   * The desired state of etcd encryption.
+   * 
+ * + * .google.container.v1beta1.DatabaseEncryption.State state = 2; + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + *
+   * The desired state of etcd encryption.
+   * 
+ * + * .google.container.v1beta1.DatabaseEncryption.State state = 2; + * @return The state. + */ + com.google.container.v1beta1.DatabaseEncryption.State getState(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DatapathProvider.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DatapathProvider.java new file mode 100644 index 000000000000..83095466d8fd --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DatapathProvider.java @@ -0,0 +1,158 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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< + DatapathProvider> 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(3); + } + + 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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DefaultSnatStatus.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DefaultSnatStatus.java new file mode 100644 index 000000000000..03cf9935b9c6 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DefaultSnatStatus.java @@ -0,0 +1,499 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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_ = false; + /** + *
+   * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.DefaultSnatStatus result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.disabled_ = disabled_; + } + } + + @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.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + disabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Disables cluster default sNAT rules.
+     * 
+ * + * bool disabled = 1; + * @return This builder for chaining. + */ + public Builder clearDisabled() { + bitField0_ = (bitField0_ & ~0x00000001); + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DefaultSnatStatusOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DefaultSnatStatusOrBuilder.java new file mode 100644 index 000000000000..d53c34f0905a --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DefaultSnatStatusOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequest.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequest.java new file mode 100644 index 000000000000..26c583578ab2 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequest.java @@ -0,0 +1,1161 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3411 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3411 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3418 + * @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]; + * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3418 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3422 + * @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]; + * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3422 + * @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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.DeleteClusterRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.name_ = name_; + } + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3411 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3411 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3411 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3411 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3411 + * @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; + bitField0_ |= 0x00000001; + 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]; + * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3418 + * @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]; + * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3418 + * @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]; + * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3418 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3418 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + 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]; + * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3418 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3422 + * @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]; + * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3422 + * @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]; + * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3422 + * @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; + bitField0_ |= 0x00000004; + 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]; + * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3422 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + 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]; + * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3422 + * @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; + bitField0_ |= 0x00000004; + 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; + bitField0_ |= 0x00000008; + 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(); + bitField0_ = (bitField0_ & ~0x00000008); + 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; + bitField0_ |= 0x00000008; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequestOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequestOrBuilder.java new file mode 100644 index 000000000000..5bc78568bfaa --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequestOrBuilder.java @@ -0,0 +1,116 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3411 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3411 + * @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]; + * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3418 + * @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]; + * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3418 + * @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]; + * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3422 + * @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]; + * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3422 + * @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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequest.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequest.java new file mode 100644 index 000000000000..11adc5d8c301 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequest.java @@ -0,0 +1,1353 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3674 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3674 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3681 + * @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]; + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3681 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3685 + * @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]; + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3685 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3690 + * @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]; + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3690 + * @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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.DeleteNodePoolRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.nodePoolId_ = nodePoolId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.name_ = name_; + } + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + nodePoolId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 50: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3674 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3674 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3674 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3674 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3674 + * @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; + bitField0_ |= 0x00000001; + 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]; + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3681 + * @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]; + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3681 + * @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]; + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3681 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3681 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + 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]; + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3681 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3685 + * @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]; + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3685 + * @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]; + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3685 + * @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; + bitField0_ |= 0x00000004; + 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]; + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3685 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + 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]; + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3685 + * @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; + bitField0_ |= 0x00000004; + 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]; + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3690 + * @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]; + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3690 + * @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]; + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3690 + * @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; + bitField0_ |= 0x00000008; + 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]; + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3690 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearNodePoolId() { + nodePoolId_ = getDefaultInstance().getNodePoolId(); + bitField0_ = (bitField0_ & ~0x00000008); + 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]; + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3690 + * @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; + bitField0_ |= 0x00000008; + 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; + bitField0_ |= 0x00000010; + 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(); + bitField0_ = (bitField0_ & ~0x00000010); + 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; + bitField0_ |= 0x00000010; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequestOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequestOrBuilder.java new file mode 100644 index 000000000000..296f6348b74a --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequestOrBuilder.java @@ -0,0 +1,144 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3674 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3674 + * @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]; + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3681 + * @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]; + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3681 + * @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]; + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3685 + * @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]; + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3685 + * @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]; + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3690 + * @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]; + * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3690 + * @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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DnsCacheConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DnsCacheConfig.java new file mode 100644 index 000000000000..e41cea456566 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DnsCacheConfig.java @@ -0,0 +1,497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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_ = false; + /** + *
+   * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 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_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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.DnsCacheConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @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.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether NodeLocal DNSCache is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DnsCacheConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DnsCacheConfigOrBuilder.java new file mode 100644 index 000000000000..dab31a11caed --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DnsCacheConfigOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EnterpriseConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EnterpriseConfig.java new file mode 100644 index 000000000000..becdd1a7946c --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EnterpriseConfig.java @@ -0,0 +1,688 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * EnterpriseConfig is the cluster enterprise configuration.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.EnterpriseConfig} + */ +public final class EnterpriseConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.EnterpriseConfig) + EnterpriseConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use EnterpriseConfig.newBuilder() to construct. + private EnterpriseConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EnterpriseConfig() { + clusterTier_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new EnterpriseConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_EnterpriseConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_EnterpriseConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.EnterpriseConfig.class, com.google.container.v1beta1.EnterpriseConfig.Builder.class); + } + + /** + *
+   * Premium tiers for GKE Cluster.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.EnterpriseConfig.ClusterTier} + */ + public enum ClusterTier + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * CLUSTER_TIER_UNSPECIFIED is when cluster_tier is not set.
+     * 
+ * + * CLUSTER_TIER_UNSPECIFIED = 0; + */ + CLUSTER_TIER_UNSPECIFIED(0), + /** + *
+     * STANDARD indicates a standard GKE cluster.
+     * 
+ * + * STANDARD = 1; + */ + STANDARD(1), + /** + *
+     * ENTERPRISE indicates a GKE Enterprise cluster.
+     * 
+ * + * ENTERPRISE = 2; + */ + ENTERPRISE(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * CLUSTER_TIER_UNSPECIFIED is when cluster_tier is not set.
+     * 
+ * + * CLUSTER_TIER_UNSPECIFIED = 0; + */ + public static final int CLUSTER_TIER_UNSPECIFIED_VALUE = 0; + /** + *
+     * STANDARD indicates a standard GKE cluster.
+     * 
+ * + * STANDARD = 1; + */ + public static final int STANDARD_VALUE = 1; + /** + *
+     * ENTERPRISE indicates a GKE Enterprise cluster.
+     * 
+ * + * ENTERPRISE = 2; + */ + public static final int ENTERPRISE_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 ClusterTier 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 ClusterTier forNumber(int value) { + switch (value) { + case 0: return CLUSTER_TIER_UNSPECIFIED; + case 1: return STANDARD; + case 2: return ENTERPRISE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ClusterTier> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ClusterTier findValueByNumber(int number) { + return ClusterTier.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.EnterpriseConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final ClusterTier[] VALUES = values(); + + public static ClusterTier 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 ClusterTier(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.EnterpriseConfig.ClusterTier) + } + + public static final int CLUSTER_TIER_FIELD_NUMBER = 1; + private int clusterTier_ = 0; + /** + *
+   * Output only. [Output only] cluster_tier specifies the premium tier of the
+   * cluster.
+   * 
+ * + * .google.container.v1beta1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The enum numeric value on the wire for clusterTier. + */ + @java.lang.Override public int getClusterTierValue() { + return clusterTier_; + } + /** + *
+   * Output only. [Output only] cluster_tier specifies the premium tier of the
+   * cluster.
+   * 
+ * + * .google.container.v1beta1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The clusterTier. + */ + @java.lang.Override public com.google.container.v1beta1.EnterpriseConfig.ClusterTier getClusterTier() { + com.google.container.v1beta1.EnterpriseConfig.ClusterTier result = com.google.container.v1beta1.EnterpriseConfig.ClusterTier.forNumber(clusterTier_); + return result == null ? com.google.container.v1beta1.EnterpriseConfig.ClusterTier.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 (clusterTier_ != com.google.container.v1beta1.EnterpriseConfig.ClusterTier.CLUSTER_TIER_UNSPECIFIED.getNumber()) { + output.writeEnum(1, clusterTier_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (clusterTier_ != com.google.container.v1beta1.EnterpriseConfig.ClusterTier.CLUSTER_TIER_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, clusterTier_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.EnterpriseConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.EnterpriseConfig other = (com.google.container.v1beta1.EnterpriseConfig) obj; + + if (clusterTier_ != other.clusterTier_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CLUSTER_TIER_FIELD_NUMBER; + hash = (53 * hash) + clusterTier_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.EnterpriseConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.EnterpriseConfig parseFrom( + 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.EnterpriseConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.EnterpriseConfig parseFrom( + com.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.EnterpriseConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.EnterpriseConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.EnterpriseConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.EnterpriseConfig parseFrom( + java.io.InputStream 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.EnterpriseConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.EnterpriseConfig parseDelimitedFrom( + java.io.InputStream 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.EnterpriseConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.EnterpriseConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.EnterpriseConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * EnterpriseConfig is the cluster enterprise configuration.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.EnterpriseConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.EnterpriseConfig) + com.google.container.v1beta1.EnterpriseConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_EnterpriseConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_EnterpriseConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.EnterpriseConfig.class, com.google.container.v1beta1.EnterpriseConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.EnterpriseConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + clusterTier_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_EnterpriseConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.EnterpriseConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.EnterpriseConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.EnterpriseConfig build() { + com.google.container.v1beta1.EnterpriseConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.EnterpriseConfig buildPartial() { + com.google.container.v1beta1.EnterpriseConfig result = new com.google.container.v1beta1.EnterpriseConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.EnterpriseConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.clusterTier_ = clusterTier_; + } + } + + @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.EnterpriseConfig) { + return mergeFrom((com.google.container.v1beta1.EnterpriseConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.EnterpriseConfig other) { + if (other == com.google.container.v1beta1.EnterpriseConfig.getDefaultInstance()) return this; + if (other.clusterTier_ != 0) { + setClusterTierValue(other.getClusterTierValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + clusterTier_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int clusterTier_ = 0; + /** + *
+     * Output only. [Output only] cluster_tier specifies the premium tier of the
+     * cluster.
+     * 
+ * + * .google.container.v1beta1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The enum numeric value on the wire for clusterTier. + */ + @java.lang.Override public int getClusterTierValue() { + return clusterTier_; + } + /** + *
+     * Output only. [Output only] cluster_tier specifies the premium tier of the
+     * cluster.
+     * 
+ * + * .google.container.v1beta1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The enum numeric value on the wire for clusterTier to set. + * @return This builder for chaining. + */ + public Builder setClusterTierValue(int value) { + clusterTier_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Output only. [Output only] cluster_tier specifies the premium tier of the
+     * cluster.
+     * 
+ * + * .google.container.v1beta1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The clusterTier. + */ + @java.lang.Override + public com.google.container.v1beta1.EnterpriseConfig.ClusterTier getClusterTier() { + com.google.container.v1beta1.EnterpriseConfig.ClusterTier result = com.google.container.v1beta1.EnterpriseConfig.ClusterTier.forNumber(clusterTier_); + return result == null ? com.google.container.v1beta1.EnterpriseConfig.ClusterTier.UNRECOGNIZED : result; + } + /** + *
+     * Output only. [Output only] cluster_tier specifies the premium tier of the
+     * cluster.
+     * 
+ * + * .google.container.v1beta1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The clusterTier to set. + * @return This builder for chaining. + */ + public Builder setClusterTier(com.google.container.v1beta1.EnterpriseConfig.ClusterTier value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + clusterTier_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Output only. [Output only] cluster_tier specifies the premium tier of the
+     * cluster.
+     * 
+ * + * .google.container.v1beta1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearClusterTier() { + bitField0_ = (bitField0_ & ~0x00000001); + clusterTier_ = 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.EnterpriseConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.EnterpriseConfig) + private static final com.google.container.v1beta1.EnterpriseConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.EnterpriseConfig(); + } + + public static com.google.container.v1beta1.EnterpriseConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EnterpriseConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.EnterpriseConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EnterpriseConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EnterpriseConfigOrBuilder.java new file mode 100644 index 000000000000..9ba97c1d198f --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EnterpriseConfigOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface EnterpriseConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.EnterpriseConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Output only. [Output only] cluster_tier specifies the premium tier of the
+   * cluster.
+   * 
+ * + * .google.container.v1beta1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The enum numeric value on the wire for clusterTier. + */ + int getClusterTierValue(); + /** + *
+   * Output only. [Output only] cluster_tier specifies the premium tier of the
+   * cluster.
+   * 
+ * + * .google.container.v1beta1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The clusterTier. + */ + com.google.container.v1beta1.EnterpriseConfig.ClusterTier getClusterTier(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EphemeralStorageConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EphemeralStorageConfig.java new file mode 100644 index 000000000000..853fe21fdc4c --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EphemeralStorageConfig.java @@ -0,0 +1,562 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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_ = 0; + /** + *
+   * Number of local SSDs to use to back ephemeral storage. Uses NVMe
+   * interfaces. The limit for this value is dependent upon the maximum number
+   * of disk available on a machine per zone. See:
+   * https://cloud.google.com/compute/docs/disks/local-ssd
+   * for more information.
+   *
+   * A zero (or unset) value has different meanings depending on machine type
+   * being used:
+   * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
+   * zero (or unset) means to disable using local SSDs as ephemeral storage.
+   * 2. For Gen3 machines which dictate a specific number of local ssds, zero
+   * (or unset) means to use the default number of local ssds that goes with
+   * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
+   * ssds would be provisioned. For c3-standard-8 (which doesn't support local
+   * ssds), 0 will be provisioned. See
+   * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
+   * for more info.
+   * 
+ * + * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.EphemeralStorageConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.localSsdCount_ = localSsdCount_; + } + } + + @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.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + localSsdCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int localSsdCount_ ; + /** + *
+     * Number of local SSDs to use to back ephemeral storage. Uses NVMe
+     * interfaces. The limit for this value is dependent upon the maximum number
+     * of disk available on a machine per zone. See:
+     * https://cloud.google.com/compute/docs/disks/local-ssd
+     * for more information.
+     *
+     * A zero (or unset) value has different meanings depending on machine type
+     * being used:
+     * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
+     * zero (or unset) means to disable using local SSDs as ephemeral storage.
+     * 2. For Gen3 machines which dictate a specific number of local ssds, zero
+     * (or unset) means to use the default number of local ssds that goes with
+     * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
+     * ssds would be provisioned. For c3-standard-8 (which doesn't support local
+     * ssds), 0 will be provisioned. See
+     * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
+     * for more info.
+     * 
+ * + * 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. The limit for this value is dependent upon the maximum number
+     * of disk available on a machine per zone. See:
+     * https://cloud.google.com/compute/docs/disks/local-ssd
+     * for more information.
+     *
+     * A zero (or unset) value has different meanings depending on machine type
+     * being used:
+     * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
+     * zero (or unset) means to disable using local SSDs as ephemeral storage.
+     * 2. For Gen3 machines which dictate a specific number of local ssds, zero
+     * (or unset) means to use the default number of local ssds that goes with
+     * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
+     * ssds would be provisioned. For c3-standard-8 (which doesn't support local
+     * ssds), 0 will be provisioned. See
+     * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
+     * for more info.
+     * 
+ * + * int32 local_ssd_count = 1; + * @param value The localSsdCount to set. + * @return This builder for chaining. + */ + public Builder setLocalSsdCount(int value) { + + localSsdCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Number of local SSDs to use to back ephemeral storage. Uses NVMe
+     * interfaces. The limit for this value is dependent upon the maximum number
+     * of disk available on a machine per zone. See:
+     * https://cloud.google.com/compute/docs/disks/local-ssd
+     * for more information.
+     *
+     * A zero (or unset) value has different meanings depending on machine type
+     * being used:
+     * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
+     * zero (or unset) means to disable using local SSDs as ephemeral storage.
+     * 2. For Gen3 machines which dictate a specific number of local ssds, zero
+     * (or unset) means to use the default number of local ssds that goes with
+     * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
+     * ssds would be provisioned. For c3-standard-8 (which doesn't support local
+     * ssds), 0 will be provisioned. See
+     * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
+     * for more info.
+     * 
+ * + * int32 local_ssd_count = 1; + * @return This builder for chaining. + */ + public Builder clearLocalSsdCount() { + bitField0_ = (bitField0_ & ~0x00000001); + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EphemeralStorageConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EphemeralStorageConfigOrBuilder.java new file mode 100644 index 000000000000..7682063421f1 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EphemeralStorageConfigOrBuilder.java @@ -0,0 +1,36 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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. The limit for this value is dependent upon the maximum number
+   * of disk available on a machine per zone. See:
+   * https://cloud.google.com/compute/docs/disks/local-ssd
+   * for more information.
+   *
+   * A zero (or unset) value has different meanings depending on machine type
+   * being used:
+   * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
+   * zero (or unset) means to disable using local SSDs as ephemeral storage.
+   * 2. For Gen3 machines which dictate a specific number of local ssds, zero
+   * (or unset) means to use the default number of local ssds that goes with
+   * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
+   * ssds would be provisioned. For c3-standard-8 (which doesn't support local
+   * ssds), 0 will be provisioned. See
+   * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
+   * for more info.
+   * 
+ * + * int32 local_ssd_count = 1; + * @return The localSsdCount. + */ + int getLocalSsdCount(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EphemeralStorageLocalSsdConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EphemeralStorageLocalSsdConfig.java new file mode 100644 index 000000000000..870d6d1bd80a --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EphemeralStorageLocalSsdConfig.java @@ -0,0 +1,566 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * EphemeralStorageLocalSsdConfig contains configuration for the node ephemeral
+ * storage using Local SSDs.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.EphemeralStorageLocalSsdConfig} + */ +public final class EphemeralStorageLocalSsdConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.EphemeralStorageLocalSsdConfig) + EphemeralStorageLocalSsdConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use EphemeralStorageLocalSsdConfig.newBuilder() to construct. + private EphemeralStorageLocalSsdConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EphemeralStorageLocalSsdConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new EphemeralStorageLocalSsdConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_EphemeralStorageLocalSsdConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_EphemeralStorageLocalSsdConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.EphemeralStorageLocalSsdConfig.class, com.google.container.v1beta1.EphemeralStorageLocalSsdConfig.Builder.class); + } + + public static final int LOCAL_SSD_COUNT_FIELD_NUMBER = 1; + private int localSsdCount_ = 0; + /** + *
+   * Number of local SSDs to use to back ephemeral storage. Uses NVMe
+   * interfaces.
+   *
+   * A zero (or unset) value has different meanings depending on machine type
+   * being used:
+   * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
+   * zero (or unset) means to disable using local SSDs as ephemeral storage. The
+   * limit for this value is dependent upon the maximum number of disk
+   * available on a machine per zone. See:
+   * https://cloud.google.com/compute/docs/disks/local-ssd
+   * for more information.
+   * 2. For Gen3 machines which dictate a specific number of local ssds, zero
+   * (or unset) means to use the default number of local ssds that goes with
+   * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
+   * ssds would be provisioned. For c3-standard-8 (which doesn't support local
+   * ssds), 0 will be provisioned. See
+   * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
+   * for more info.
+   * 
+ * + * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.EphemeralStorageLocalSsdConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.EphemeralStorageLocalSsdConfig other = (com.google.container.v1beta1.EphemeralStorageLocalSsdConfig) obj; + + if (getLocalSsdCount() + != other.getLocalSsdCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.EphemeralStorageLocalSsdConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.EphemeralStorageLocalSsdConfig parseFrom( + 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.EphemeralStorageLocalSsdConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.EphemeralStorageLocalSsdConfig parseFrom( + com.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.EphemeralStorageLocalSsdConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.EphemeralStorageLocalSsdConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.EphemeralStorageLocalSsdConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.EphemeralStorageLocalSsdConfig parseFrom( + java.io.InputStream 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.EphemeralStorageLocalSsdConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.EphemeralStorageLocalSsdConfig parseDelimitedFrom( + java.io.InputStream 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.EphemeralStorageLocalSsdConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.EphemeralStorageLocalSsdConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.EphemeralStorageLocalSsdConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * EphemeralStorageLocalSsdConfig contains configuration for the node ephemeral
+   * storage using Local SSDs.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.EphemeralStorageLocalSsdConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.EphemeralStorageLocalSsdConfig) + com.google.container.v1beta1.EphemeralStorageLocalSsdConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_EphemeralStorageLocalSsdConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_EphemeralStorageLocalSsdConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.EphemeralStorageLocalSsdConfig.class, com.google.container.v1beta1.EphemeralStorageLocalSsdConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.EphemeralStorageLocalSsdConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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_EphemeralStorageLocalSsdConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.EphemeralStorageLocalSsdConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.EphemeralStorageLocalSsdConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.EphemeralStorageLocalSsdConfig build() { + com.google.container.v1beta1.EphemeralStorageLocalSsdConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.EphemeralStorageLocalSsdConfig buildPartial() { + com.google.container.v1beta1.EphemeralStorageLocalSsdConfig result = new com.google.container.v1beta1.EphemeralStorageLocalSsdConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.EphemeralStorageLocalSsdConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.localSsdCount_ = localSsdCount_; + } + } + + @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.EphemeralStorageLocalSsdConfig) { + return mergeFrom((com.google.container.v1beta1.EphemeralStorageLocalSsdConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.EphemeralStorageLocalSsdConfig other) { + if (other == com.google.container.v1beta1.EphemeralStorageLocalSsdConfig.getDefaultInstance()) return this; + if (other.getLocalSsdCount() != 0) { + setLocalSsdCount(other.getLocalSsdCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + localSsdCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int localSsdCount_ ; + /** + *
+     * Number of local SSDs to use to back ephemeral storage. Uses NVMe
+     * interfaces.
+     *
+     * A zero (or unset) value has different meanings depending on machine type
+     * being used:
+     * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
+     * zero (or unset) means to disable using local SSDs as ephemeral storage. The
+     * limit for this value is dependent upon the maximum number of disk
+     * available on a machine per zone. See:
+     * https://cloud.google.com/compute/docs/disks/local-ssd
+     * for more information.
+     * 2. For Gen3 machines which dictate a specific number of local ssds, zero
+     * (or unset) means to use the default number of local ssds that goes with
+     * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
+     * ssds would be provisioned. For c3-standard-8 (which doesn't support local
+     * ssds), 0 will be provisioned. See
+     * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
+     * for more info.
+     * 
+ * + * 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.
+     *
+     * A zero (or unset) value has different meanings depending on machine type
+     * being used:
+     * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
+     * zero (or unset) means to disable using local SSDs as ephemeral storage. The
+     * limit for this value is dependent upon the maximum number of disk
+     * available on a machine per zone. See:
+     * https://cloud.google.com/compute/docs/disks/local-ssd
+     * for more information.
+     * 2. For Gen3 machines which dictate a specific number of local ssds, zero
+     * (or unset) means to use the default number of local ssds that goes with
+     * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
+     * ssds would be provisioned. For c3-standard-8 (which doesn't support local
+     * ssds), 0 will be provisioned. See
+     * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
+     * for more info.
+     * 
+ * + * int32 local_ssd_count = 1; + * @param value The localSsdCount to set. + * @return This builder for chaining. + */ + public Builder setLocalSsdCount(int value) { + + localSsdCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Number of local SSDs to use to back ephemeral storage. Uses NVMe
+     * interfaces.
+     *
+     * A zero (or unset) value has different meanings depending on machine type
+     * being used:
+     * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
+     * zero (or unset) means to disable using local SSDs as ephemeral storage. The
+     * limit for this value is dependent upon the maximum number of disk
+     * available on a machine per zone. See:
+     * https://cloud.google.com/compute/docs/disks/local-ssd
+     * for more information.
+     * 2. For Gen3 machines which dictate a specific number of local ssds, zero
+     * (or unset) means to use the default number of local ssds that goes with
+     * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
+     * ssds would be provisioned. For c3-standard-8 (which doesn't support local
+     * ssds), 0 will be provisioned. See
+     * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
+     * for more info.
+     * 
+ * + * int32 local_ssd_count = 1; + * @return This builder for chaining. + */ + public Builder clearLocalSsdCount() { + bitField0_ = (bitField0_ & ~0x00000001); + 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.EphemeralStorageLocalSsdConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.EphemeralStorageLocalSsdConfig) + private static final com.google.container.v1beta1.EphemeralStorageLocalSsdConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.EphemeralStorageLocalSsdConfig(); + } + + public static com.google.container.v1beta1.EphemeralStorageLocalSsdConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EphemeralStorageLocalSsdConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.EphemeralStorageLocalSsdConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EphemeralStorageLocalSsdConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EphemeralStorageLocalSsdConfigOrBuilder.java new file mode 100644 index 000000000000..036781aa825c --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/EphemeralStorageLocalSsdConfigOrBuilder.java @@ -0,0 +1,37 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface EphemeralStorageLocalSsdConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.EphemeralStorageLocalSsdConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Number of local SSDs to use to back ephemeral storage. Uses NVMe
+   * interfaces.
+   *
+   * A zero (or unset) value has different meanings depending on machine type
+   * being used:
+   * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
+   * zero (or unset) means to disable using local SSDs as ephemeral storage. The
+   * limit for this value is dependent upon the maximum number of disk
+   * available on a machine per zone. See:
+   * https://cloud.google.com/compute/docs/disks/local-ssd
+   * for more information.
+   * 2. For Gen3 machines which dictate a specific number of local ssds, zero
+   * (or unset) means to use the default number of local ssds that goes with
+   * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
+   * ssds would be provisioned. For c3-standard-8 (which doesn't support local
+   * ssds), 0 will be provisioned. See
+   * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
+   * for more info.
+   * 
+ * + * int32 local_ssd_count = 1; + * @return The localSsdCount. + */ + int getLocalSsdCount(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/FastSocket.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/FastSocket.java new file mode 100644 index 000000000000..14100e7a6509 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/FastSocket.java @@ -0,0 +1,497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * Configuration of Fast Socket feature.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.FastSocket} + */ +public final class FastSocket extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.FastSocket) + FastSocketOrBuilder { +private static final long serialVersionUID = 0L; + // Use FastSocket.newBuilder() to construct. + private FastSocket(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FastSocket() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FastSocket(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_FastSocket_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_FastSocket_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.FastSocket.class, com.google.container.v1beta1.FastSocket.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * Whether Fast Socket features are enabled in the node pool.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.FastSocket)) { + return super.equals(obj); + } + com.google.container.v1beta1.FastSocket other = (com.google.container.v1beta1.FastSocket) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.FastSocket parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.FastSocket parseFrom( + 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.FastSocket parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.FastSocket parseFrom( + com.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.FastSocket parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.FastSocket parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.FastSocket parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.FastSocket parseFrom( + java.io.InputStream 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.FastSocket parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.FastSocket parseDelimitedFrom( + java.io.InputStream 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.FastSocket parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.FastSocket parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.FastSocket prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new 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 Fast Socket feature.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.FastSocket} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.FastSocket) + com.google.container.v1beta1.FastSocketOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_FastSocket_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_FastSocket_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.FastSocket.class, com.google.container.v1beta1.FastSocket.Builder.class); + } + + // Construct using com.google.container.v1beta1.FastSocket.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 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_FastSocket_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.FastSocket getDefaultInstanceForType() { + return com.google.container.v1beta1.FastSocket.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.FastSocket build() { + com.google.container.v1beta1.FastSocket result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.FastSocket buildPartial() { + com.google.container.v1beta1.FastSocket result = new com.google.container.v1beta1.FastSocket(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.FastSocket result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @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.FastSocket) { + return mergeFrom((com.google.container.v1beta1.FastSocket)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.FastSocket other) { + if (other == com.google.container.v1beta1.FastSocket.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enabled_ ; + /** + *
+     * Whether Fast Socket features are enabled in the node pool.
+     * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Whether Fast Socket features are enabled in the node pool.
+     * 
+ * + * bool enabled = 1; + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether Fast Socket features are enabled in the node pool.
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + 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.FastSocket) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.FastSocket) + private static final com.google.container.v1beta1.FastSocket DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.FastSocket(); + } + + public static com.google.container.v1beta1.FastSocket getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FastSocket parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.FastSocket getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/FastSocketOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/FastSocketOrBuilder.java new file mode 100644 index 000000000000..7f37cea224bd --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/FastSocketOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface FastSocketOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.FastSocket) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether Fast Socket features are enabled in the node pool.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Fleet.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Fleet.java new file mode 100644 index 000000000000..fbfa200ebbf4 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Fleet.java @@ -0,0 +1,857 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * Fleet is the fleet configuration for the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.Fleet} + */ +public final class Fleet extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.Fleet) + FleetOrBuilder { +private static final long serialVersionUID = 0L; + // Use Fleet.newBuilder() to construct. + private Fleet(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Fleet() { + project_ = ""; + membership_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Fleet(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_Fleet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_Fleet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.Fleet.class, com.google.container.v1beta1.Fleet.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + /** + *
+   * The Fleet host project(project ID or project number) where this cluster
+   * will be registered to. This field cannot be changed after the cluster has
+   * been registered.
+   * 
+ * + * string project = 1; + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } + } + /** + *
+   * The Fleet host project(project ID or project number) where this cluster
+   * will be registered to. This field cannot be changed after the cluster has
+   * been registered.
+   * 
+ * + * string project = 1; + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MEMBERSHIP_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object membership_ = ""; + /** + *
+   * [Output only] The full resource name of the registered fleet membership of
+   * the cluster, in the format
+   * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
+   * 
+ * + * string membership = 2; + * @return The membership. + */ + @java.lang.Override + public java.lang.String getMembership() { + java.lang.Object ref = membership_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + membership_ = s; + return s; + } + } + /** + *
+   * [Output only] The full resource name of the registered fleet membership of
+   * the cluster, in the format
+   * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
+   * 
+ * + * string membership = 2; + * @return The bytes for membership. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMembershipBytes() { + java.lang.Object ref = membership_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + membership_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRE_REGISTERED_FIELD_NUMBER = 3; + private boolean preRegistered_ = false; + /** + *
+   * [Output only] Whether the cluster has been registered through the fleet
+   * API.
+   * 
+ * + * bool pre_registered = 3; + * @return The preRegistered. + */ + @java.lang.Override + public boolean getPreRegistered() { + return preRegistered_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(membership_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, membership_); + } + if (preRegistered_ != false) { + output.writeBool(3, preRegistered_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(membership_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, membership_); + } + if (preRegistered_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, preRegistered_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.Fleet)) { + return super.equals(obj); + } + com.google.container.v1beta1.Fleet other = (com.google.container.v1beta1.Fleet) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (!getMembership() + .equals(other.getMembership())) return false; + if (getPreRegistered() + != other.getPreRegistered()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + MEMBERSHIP_FIELD_NUMBER; + hash = (53 * hash) + getMembership().hashCode(); + hash = (37 * hash) + PRE_REGISTERED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPreRegistered()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.Fleet parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.Fleet parseFrom( + 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.Fleet parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.Fleet parseFrom( + com.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.Fleet parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.Fleet parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.Fleet parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.Fleet parseFrom( + java.io.InputStream 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.Fleet parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.Fleet parseDelimitedFrom( + java.io.InputStream 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.Fleet parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.Fleet parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.Fleet prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Fleet is the fleet configuration for the cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.Fleet} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.Fleet) + com.google.container.v1beta1.FleetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_Fleet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_Fleet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.Fleet.class, com.google.container.v1beta1.Fleet.Builder.class); + } + + // Construct using com.google.container.v1beta1.Fleet.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + project_ = ""; + membership_ = ""; + preRegistered_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_Fleet_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.Fleet getDefaultInstanceForType() { + return com.google.container.v1beta1.Fleet.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.Fleet build() { + com.google.container.v1beta1.Fleet result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.Fleet buildPartial() { + com.google.container.v1beta1.Fleet result = new com.google.container.v1beta1.Fleet(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.Fleet result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.membership_ = membership_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.preRegistered_ = preRegistered_; + } + } + + @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.Fleet) { + return mergeFrom((com.google.container.v1beta1.Fleet)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.Fleet other) { + if (other == com.google.container.v1beta1.Fleet.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getMembership().isEmpty()) { + membership_ = other.membership_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPreRegistered() != false) { + setPreRegistered(other.getPreRegistered()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + membership_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + preRegistered_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object project_ = ""; + /** + *
+     * The Fleet host project(project ID or project number) where this cluster
+     * will be registered to. This field cannot be changed after the cluster has
+     * been registered.
+     * 
+ * + * string project = 1; + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The Fleet host project(project ID or project number) where this cluster
+     * will be registered to. This field cannot be changed after the cluster has
+     * been registered.
+     * 
+ * + * string project = 1; + * @return The bytes for project. + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The Fleet host project(project ID or project number) where this cluster
+     * will be registered to. This field cannot be changed after the cluster has
+     * been registered.
+     * 
+ * + * string project = 1; + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The Fleet host project(project ID or project number) where this cluster
+     * will be registered to. This field cannot be changed after the cluster has
+     * been registered.
+     * 
+ * + * string project = 1; + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * The Fleet host project(project ID or project number) where this cluster
+     * will be registered to. This field cannot be changed after the cluster has
+     * been registered.
+     * 
+ * + * string project = 1; + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object membership_ = ""; + /** + *
+     * [Output only] The full resource name of the registered fleet membership of
+     * the cluster, in the format
+     * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
+     * 
+ * + * string membership = 2; + * @return The membership. + */ + public java.lang.String getMembership() { + java.lang.Object ref = membership_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + membership_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * [Output only] The full resource name of the registered fleet membership of
+     * the cluster, in the format
+     * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
+     * 
+ * + * string membership = 2; + * @return The bytes for membership. + */ + public com.google.protobuf.ByteString + getMembershipBytes() { + java.lang.Object ref = membership_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + membership_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * [Output only] The full resource name of the registered fleet membership of
+     * the cluster, in the format
+     * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
+     * 
+ * + * string membership = 2; + * @param value The membership to set. + * @return This builder for chaining. + */ + public Builder setMembership( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + membership_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * [Output only] The full resource name of the registered fleet membership of
+     * the cluster, in the format
+     * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
+     * 
+ * + * string membership = 2; + * @return This builder for chaining. + */ + public Builder clearMembership() { + membership_ = getDefaultInstance().getMembership(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * [Output only] The full resource name of the registered fleet membership of
+     * the cluster, in the format
+     * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
+     * 
+ * + * string membership = 2; + * @param value The bytes for membership to set. + * @return This builder for chaining. + */ + public Builder setMembershipBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + membership_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean preRegistered_ ; + /** + *
+     * [Output only] Whether the cluster has been registered through the fleet
+     * API.
+     * 
+ * + * bool pre_registered = 3; + * @return The preRegistered. + */ + @java.lang.Override + public boolean getPreRegistered() { + return preRegistered_; + } + /** + *
+     * [Output only] Whether the cluster has been registered through the fleet
+     * API.
+     * 
+ * + * bool pre_registered = 3; + * @param value The preRegistered to set. + * @return This builder for chaining. + */ + public Builder setPreRegistered(boolean value) { + + preRegistered_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * [Output only] Whether the cluster has been registered through the fleet
+     * API.
+     * 
+ * + * bool pre_registered = 3; + * @return This builder for chaining. + */ + public Builder clearPreRegistered() { + bitField0_ = (bitField0_ & ~0x00000004); + preRegistered_ = 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.Fleet) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.Fleet) + private static final com.google.container.v1beta1.Fleet DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.Fleet(); + } + + public static com.google.container.v1beta1.Fleet getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Fleet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.Fleet getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/FleetOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/FleetOrBuilder.java new file mode 100644 index 000000000000..8142cff9a828 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/FleetOrBuilder.java @@ -0,0 +1,69 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface FleetOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.Fleet) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The Fleet host project(project ID or project number) where this cluster
+   * will be registered to. This field cannot be changed after the cluster has
+   * been registered.
+   * 
+ * + * string project = 1; + * @return The project. + */ + java.lang.String getProject(); + /** + *
+   * The Fleet host project(project ID or project number) where this cluster
+   * will be registered to. This field cannot be changed after the cluster has
+   * been registered.
+   * 
+ * + * string project = 1; + * @return The bytes for project. + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+   * [Output only] The full resource name of the registered fleet membership of
+   * the cluster, in the format
+   * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
+   * 
+ * + * string membership = 2; + * @return The membership. + */ + java.lang.String getMembership(); + /** + *
+   * [Output only] The full resource name of the registered fleet membership of
+   * the cluster, in the format
+   * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
+   * 
+ * + * string membership = 2; + * @return The bytes for membership. + */ + com.google.protobuf.ByteString + getMembershipBytes(); + + /** + *
+   * [Output only] Whether the cluster has been registered through the fleet
+   * API.
+   * 
+ * + * bool pre_registered = 3; + * @return The preRegistered. + */ + boolean getPreRegistered(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GPUDriverInstallationConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GPUDriverInstallationConfig.java new file mode 100644 index 000000000000..f6a65084a1cf --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GPUDriverInstallationConfig.java @@ -0,0 +1,731 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * GPUDriverInstallationConfig specifies the version of GPU driver to be auto
+ * installed.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.GPUDriverInstallationConfig} + */ +public final class GPUDriverInstallationConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.GPUDriverInstallationConfig) + GPUDriverInstallationConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use GPUDriverInstallationConfig.newBuilder() to construct. + private GPUDriverInstallationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GPUDriverInstallationConfig() { + gpuDriverVersion_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GPUDriverInstallationConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GPUDriverInstallationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GPUDriverInstallationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GPUDriverInstallationConfig.class, com.google.container.v1beta1.GPUDriverInstallationConfig.Builder.class); + } + + /** + *
+   * The GPU driver version to install.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion} + */ + public enum GPUDriverVersion + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Default value is to not install any GPU driver.
+     * 
+ * + * GPU_DRIVER_VERSION_UNSPECIFIED = 0; + */ + GPU_DRIVER_VERSION_UNSPECIFIED(0), + /** + *
+     * Disable GPU driver auto installation and needs manual installation
+     * 
+ * + * INSTALLATION_DISABLED = 1; + */ + INSTALLATION_DISABLED(1), + /** + *
+     * "Default" GPU driver in COS and Ubuntu.
+     * 
+ * + * DEFAULT = 2; + */ + DEFAULT(2), + /** + *
+     * "Latest" GPU driver in COS.
+     * 
+ * + * LATEST = 3; + */ + LATEST(3), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Default value is to not install any GPU driver.
+     * 
+ * + * GPU_DRIVER_VERSION_UNSPECIFIED = 0; + */ + public static final int GPU_DRIVER_VERSION_UNSPECIFIED_VALUE = 0; + /** + *
+     * Disable GPU driver auto installation and needs manual installation
+     * 
+ * + * INSTALLATION_DISABLED = 1; + */ + public static final int INSTALLATION_DISABLED_VALUE = 1; + /** + *
+     * "Default" GPU driver in COS and Ubuntu.
+     * 
+ * + * DEFAULT = 2; + */ + public static final int DEFAULT_VALUE = 2; + /** + *
+     * "Latest" GPU driver in COS.
+     * 
+ * + * LATEST = 3; + */ + public static final int LATEST_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 GPUDriverVersion 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 GPUDriverVersion forNumber(int value) { + switch (value) { + case 0: return GPU_DRIVER_VERSION_UNSPECIFIED; + case 1: return INSTALLATION_DISABLED; + case 2: return DEFAULT; + case 3: return LATEST; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + GPUDriverVersion> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public GPUDriverVersion findValueByNumber(int number) { + return GPUDriverVersion.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.GPUDriverInstallationConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final GPUDriverVersion[] VALUES = values(); + + public static GPUDriverVersion 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 GPUDriverVersion(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion) + } + + private int bitField0_; + public static final int GPU_DRIVER_VERSION_FIELD_NUMBER = 1; + private int gpuDriverVersion_ = 0; + /** + *
+   * Mode for how the GPU driver is installed.
+   * 
+ * + * optional .google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; + * @return Whether the gpuDriverVersion field is set. + */ + @java.lang.Override public boolean hasGpuDriverVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Mode for how the GPU driver is installed.
+   * 
+ * + * optional .google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; + * @return The enum numeric value on the wire for gpuDriverVersion. + */ + @java.lang.Override public int getGpuDriverVersionValue() { + return gpuDriverVersion_; + } + /** + *
+   * Mode for how the GPU driver is installed.
+   * 
+ * + * optional .google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; + * @return The gpuDriverVersion. + */ + @java.lang.Override public com.google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion getGpuDriverVersion() { + com.google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion result = com.google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion.forNumber(gpuDriverVersion_); + return result == null ? com.google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion.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 (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, gpuDriverVersion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, gpuDriverVersion_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.GPUDriverInstallationConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.GPUDriverInstallationConfig other = (com.google.container.v1beta1.GPUDriverInstallationConfig) obj; + + if (hasGpuDriverVersion() != other.hasGpuDriverVersion()) return false; + if (hasGpuDriverVersion()) { + if (gpuDriverVersion_ != other.gpuDriverVersion_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasGpuDriverVersion()) { + hash = (37 * hash) + GPU_DRIVER_VERSION_FIELD_NUMBER; + hash = (53 * hash) + gpuDriverVersion_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.GPUDriverInstallationConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.GPUDriverInstallationConfig parseFrom( + 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.GPUDriverInstallationConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.GPUDriverInstallationConfig parseFrom( + com.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.GPUDriverInstallationConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.GPUDriverInstallationConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.GPUDriverInstallationConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.GPUDriverInstallationConfig parseFrom( + java.io.InputStream 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.GPUDriverInstallationConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.GPUDriverInstallationConfig parseDelimitedFrom( + java.io.InputStream 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.GPUDriverInstallationConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.GPUDriverInstallationConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.GPUDriverInstallationConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * GPUDriverInstallationConfig specifies the version of GPU driver to be auto
+   * installed.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.GPUDriverInstallationConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.GPUDriverInstallationConfig) + com.google.container.v1beta1.GPUDriverInstallationConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GPUDriverInstallationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GPUDriverInstallationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GPUDriverInstallationConfig.class, com.google.container.v1beta1.GPUDriverInstallationConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.GPUDriverInstallationConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + gpuDriverVersion_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GPUDriverInstallationConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.GPUDriverInstallationConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.GPUDriverInstallationConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.GPUDriverInstallationConfig build() { + com.google.container.v1beta1.GPUDriverInstallationConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.GPUDriverInstallationConfig buildPartial() { + com.google.container.v1beta1.GPUDriverInstallationConfig result = new com.google.container.v1beta1.GPUDriverInstallationConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.GPUDriverInstallationConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.gpuDriverVersion_ = gpuDriverVersion_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @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.GPUDriverInstallationConfig) { + return mergeFrom((com.google.container.v1beta1.GPUDriverInstallationConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.GPUDriverInstallationConfig other) { + if (other == com.google.container.v1beta1.GPUDriverInstallationConfig.getDefaultInstance()) return this; + if (other.hasGpuDriverVersion()) { + setGpuDriverVersion(other.getGpuDriverVersion()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + gpuDriverVersion_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int gpuDriverVersion_ = 0; + /** + *
+     * Mode for how the GPU driver is installed.
+     * 
+ * + * optional .google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; + * @return Whether the gpuDriverVersion field is set. + */ + @java.lang.Override public boolean hasGpuDriverVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Mode for how the GPU driver is installed.
+     * 
+ * + * optional .google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; + * @return The enum numeric value on the wire for gpuDriverVersion. + */ + @java.lang.Override public int getGpuDriverVersionValue() { + return gpuDriverVersion_; + } + /** + *
+     * Mode for how the GPU driver is installed.
+     * 
+ * + * optional .google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; + * @param value The enum numeric value on the wire for gpuDriverVersion to set. + * @return This builder for chaining. + */ + public Builder setGpuDriverVersionValue(int value) { + gpuDriverVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Mode for how the GPU driver is installed.
+     * 
+ * + * optional .google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; + * @return The gpuDriverVersion. + */ + @java.lang.Override + public com.google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion getGpuDriverVersion() { + com.google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion result = com.google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion.forNumber(gpuDriverVersion_); + return result == null ? com.google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion.UNRECOGNIZED : result; + } + /** + *
+     * Mode for how the GPU driver is installed.
+     * 
+ * + * optional .google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; + * @param value The gpuDriverVersion to set. + * @return This builder for chaining. + */ + public Builder setGpuDriverVersion(com.google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + gpuDriverVersion_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Mode for how the GPU driver is installed.
+     * 
+ * + * optional .google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; + * @return This builder for chaining. + */ + public Builder clearGpuDriverVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + gpuDriverVersion_ = 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.GPUDriverInstallationConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.GPUDriverInstallationConfig) + private static final com.google.container.v1beta1.GPUDriverInstallationConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.GPUDriverInstallationConfig(); + } + + public static com.google.container.v1beta1.GPUDriverInstallationConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GPUDriverInstallationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.GPUDriverInstallationConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GPUDriverInstallationConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GPUDriverInstallationConfigOrBuilder.java new file mode 100644 index 000000000000..45587ad0c8d1 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GPUDriverInstallationConfigOrBuilder.java @@ -0,0 +1,38 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface GPUDriverInstallationConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GPUDriverInstallationConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Mode for how the GPU driver is installed.
+   * 
+ * + * optional .google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; + * @return Whether the gpuDriverVersion field is set. + */ + boolean hasGpuDriverVersion(); + /** + *
+   * Mode for how the GPU driver is installed.
+   * 
+ * + * optional .google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; + * @return The enum numeric value on the wire for gpuDriverVersion. + */ + int getGpuDriverVersionValue(); + /** + *
+   * Mode for how the GPU driver is installed.
+   * 
+ * + * optional .google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; + * @return The gpuDriverVersion. + */ + com.google.container.v1beta1.GPUDriverInstallationConfig.GPUDriverVersion getGpuDriverVersion(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GPUSharingConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GPUSharingConfig.java new file mode 100644 index 000000000000..e00d2e9c7c06 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GPUSharingConfig.java @@ -0,0 +1,780 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * GPUSharingConfig represents the GPU sharing configuration for Hardware
+ * Accelerators.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.GPUSharingConfig} + */ +public final class GPUSharingConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.GPUSharingConfig) + GPUSharingConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use GPUSharingConfig.newBuilder() to construct. + private GPUSharingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GPUSharingConfig() { + gpuSharingStrategy_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GPUSharingConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GPUSharingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GPUSharingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GPUSharingConfig.class, com.google.container.v1beta1.GPUSharingConfig.Builder.class); + } + + /** + *
+   * The type of GPU sharing strategy currently provided.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy} + */ + public enum GPUSharingStrategy + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Default value.
+     * 
+ * + * GPU_SHARING_STRATEGY_UNSPECIFIED = 0; + */ + GPU_SHARING_STRATEGY_UNSPECIFIED(0), + /** + *
+     * GPUs are time-shared between containers.
+     * 
+ * + * TIME_SHARING = 1; + */ + TIME_SHARING(1), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Default value.
+     * 
+ * + * GPU_SHARING_STRATEGY_UNSPECIFIED = 0; + */ + public static final int GPU_SHARING_STRATEGY_UNSPECIFIED_VALUE = 0; + /** + *
+     * GPUs are time-shared between containers.
+     * 
+ * + * TIME_SHARING = 1; + */ + public static final int TIME_SHARING_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 GPUSharingStrategy 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 GPUSharingStrategy forNumber(int value) { + switch (value) { + case 0: return GPU_SHARING_STRATEGY_UNSPECIFIED; + case 1: return TIME_SHARING; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + GPUSharingStrategy> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public GPUSharingStrategy findValueByNumber(int number) { + return GPUSharingStrategy.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.GPUSharingConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final GPUSharingStrategy[] VALUES = values(); + + public static GPUSharingStrategy 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 GPUSharingStrategy(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy) + } + + private int bitField0_; + public static final int MAX_SHARED_CLIENTS_PER_GPU_FIELD_NUMBER = 1; + private long maxSharedClientsPerGpu_ = 0L; + /** + *
+   * The max number of containers that can share a physical GPU.
+   * 
+ * + * int64 max_shared_clients_per_gpu = 1; + * @return The maxSharedClientsPerGpu. + */ + @java.lang.Override + public long getMaxSharedClientsPerGpu() { + return maxSharedClientsPerGpu_; + } + + public static final int GPU_SHARING_STRATEGY_FIELD_NUMBER = 2; + private int gpuSharingStrategy_ = 0; + /** + *
+   * The type of GPU sharing strategy to enable on the GPU node.
+   * 
+ * + * optional .google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; + * @return Whether the gpuSharingStrategy field is set. + */ + @java.lang.Override public boolean hasGpuSharingStrategy() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * The type of GPU sharing strategy to enable on the GPU node.
+   * 
+ * + * optional .google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; + * @return The enum numeric value on the wire for gpuSharingStrategy. + */ + @java.lang.Override public int getGpuSharingStrategyValue() { + return gpuSharingStrategy_; + } + /** + *
+   * The type of GPU sharing strategy to enable on the GPU node.
+   * 
+ * + * optional .google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; + * @return The gpuSharingStrategy. + */ + @java.lang.Override public com.google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy getGpuSharingStrategy() { + com.google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy result = com.google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy.forNumber(gpuSharingStrategy_); + return result == null ? com.google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy.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 (maxSharedClientsPerGpu_ != 0L) { + output.writeInt64(1, maxSharedClientsPerGpu_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(2, gpuSharingStrategy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (maxSharedClientsPerGpu_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, maxSharedClientsPerGpu_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, gpuSharingStrategy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.GPUSharingConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.GPUSharingConfig other = (com.google.container.v1beta1.GPUSharingConfig) obj; + + if (getMaxSharedClientsPerGpu() + != other.getMaxSharedClientsPerGpu()) return false; + if (hasGpuSharingStrategy() != other.hasGpuSharingStrategy()) return false; + if (hasGpuSharingStrategy()) { + if (gpuSharingStrategy_ != other.gpuSharingStrategy_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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_SHARED_CLIENTS_PER_GPU_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxSharedClientsPerGpu()); + if (hasGpuSharingStrategy()) { + hash = (37 * hash) + GPU_SHARING_STRATEGY_FIELD_NUMBER; + hash = (53 * hash) + gpuSharingStrategy_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.GPUSharingConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.GPUSharingConfig parseFrom( + 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.GPUSharingConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.GPUSharingConfig parseFrom( + com.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.GPUSharingConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.GPUSharingConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.GPUSharingConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.GPUSharingConfig parseFrom( + java.io.InputStream 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.GPUSharingConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.GPUSharingConfig parseDelimitedFrom( + java.io.InputStream 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.GPUSharingConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.GPUSharingConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.GPUSharingConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * GPUSharingConfig represents the GPU sharing configuration for Hardware
+   * Accelerators.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.GPUSharingConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.GPUSharingConfig) + com.google.container.v1beta1.GPUSharingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GPUSharingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GPUSharingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GPUSharingConfig.class, com.google.container.v1beta1.GPUSharingConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.GPUSharingConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + maxSharedClientsPerGpu_ = 0L; + gpuSharingStrategy_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GPUSharingConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.GPUSharingConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.GPUSharingConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.GPUSharingConfig build() { + com.google.container.v1beta1.GPUSharingConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.GPUSharingConfig buildPartial() { + com.google.container.v1beta1.GPUSharingConfig result = new com.google.container.v1beta1.GPUSharingConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.GPUSharingConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.maxSharedClientsPerGpu_ = maxSharedClientsPerGpu_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.gpuSharingStrategy_ = gpuSharingStrategy_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @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.GPUSharingConfig) { + return mergeFrom((com.google.container.v1beta1.GPUSharingConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.GPUSharingConfig other) { + if (other == com.google.container.v1beta1.GPUSharingConfig.getDefaultInstance()) return this; + if (other.getMaxSharedClientsPerGpu() != 0L) { + setMaxSharedClientsPerGpu(other.getMaxSharedClientsPerGpu()); + } + if (other.hasGpuSharingStrategy()) { + setGpuSharingStrategy(other.getGpuSharingStrategy()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + maxSharedClientsPerGpu_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + gpuSharingStrategy_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private long maxSharedClientsPerGpu_ ; + /** + *
+     * The max number of containers that can share a physical GPU.
+     * 
+ * + * int64 max_shared_clients_per_gpu = 1; + * @return The maxSharedClientsPerGpu. + */ + @java.lang.Override + public long getMaxSharedClientsPerGpu() { + return maxSharedClientsPerGpu_; + } + /** + *
+     * The max number of containers that can share a physical GPU.
+     * 
+ * + * int64 max_shared_clients_per_gpu = 1; + * @param value The maxSharedClientsPerGpu to set. + * @return This builder for chaining. + */ + public Builder setMaxSharedClientsPerGpu(long value) { + + maxSharedClientsPerGpu_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The max number of containers that can share a physical GPU.
+     * 
+ * + * int64 max_shared_clients_per_gpu = 1; + * @return This builder for chaining. + */ + public Builder clearMaxSharedClientsPerGpu() { + bitField0_ = (bitField0_ & ~0x00000001); + maxSharedClientsPerGpu_ = 0L; + onChanged(); + return this; + } + + private int gpuSharingStrategy_ = 0; + /** + *
+     * The type of GPU sharing strategy to enable on the GPU node.
+     * 
+ * + * optional .google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; + * @return Whether the gpuSharingStrategy field is set. + */ + @java.lang.Override public boolean hasGpuSharingStrategy() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * The type of GPU sharing strategy to enable on the GPU node.
+     * 
+ * + * optional .google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; + * @return The enum numeric value on the wire for gpuSharingStrategy. + */ + @java.lang.Override public int getGpuSharingStrategyValue() { + return gpuSharingStrategy_; + } + /** + *
+     * The type of GPU sharing strategy to enable on the GPU node.
+     * 
+ * + * optional .google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; + * @param value The enum numeric value on the wire for gpuSharingStrategy to set. + * @return This builder for chaining. + */ + public Builder setGpuSharingStrategyValue(int value) { + gpuSharingStrategy_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The type of GPU sharing strategy to enable on the GPU node.
+     * 
+ * + * optional .google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; + * @return The gpuSharingStrategy. + */ + @java.lang.Override + public com.google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy getGpuSharingStrategy() { + com.google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy result = com.google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy.forNumber(gpuSharingStrategy_); + return result == null ? com.google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy.UNRECOGNIZED : result; + } + /** + *
+     * The type of GPU sharing strategy to enable on the GPU node.
+     * 
+ * + * optional .google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; + * @param value The gpuSharingStrategy to set. + * @return This builder for chaining. + */ + public Builder setGpuSharingStrategy(com.google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + gpuSharingStrategy_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The type of GPU sharing strategy to enable on the GPU node.
+     * 
+ * + * optional .google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; + * @return This builder for chaining. + */ + public Builder clearGpuSharingStrategy() { + bitField0_ = (bitField0_ & ~0x00000002); + gpuSharingStrategy_ = 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.GPUSharingConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.GPUSharingConfig) + private static final com.google.container.v1beta1.GPUSharingConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.GPUSharingConfig(); + } + + public static com.google.container.v1beta1.GPUSharingConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GPUSharingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.GPUSharingConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GPUSharingConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GPUSharingConfigOrBuilder.java new file mode 100644 index 000000000000..c423bc04b44b --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GPUSharingConfigOrBuilder.java @@ -0,0 +1,48 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface GPUSharingConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GPUSharingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The max number of containers that can share a physical GPU.
+   * 
+ * + * int64 max_shared_clients_per_gpu = 1; + * @return The maxSharedClientsPerGpu. + */ + long getMaxSharedClientsPerGpu(); + + /** + *
+   * The type of GPU sharing strategy to enable on the GPU node.
+   * 
+ * + * optional .google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; + * @return Whether the gpuSharingStrategy field is set. + */ + boolean hasGpuSharingStrategy(); + /** + *
+   * The type of GPU sharing strategy to enable on the GPU node.
+   * 
+ * + * optional .google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; + * @return The enum numeric value on the wire for gpuSharingStrategy. + */ + int getGpuSharingStrategyValue(); + /** + *
+   * The type of GPU sharing strategy to enable on the GPU node.
+   * 
+ * + * optional .google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; + * @return The gpuSharingStrategy. + */ + com.google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy getGpuSharingStrategy(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GatewayAPIConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GatewayAPIConfig.java new file mode 100644 index 000000000000..c3dd4d17475e --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GatewayAPIConfig.java @@ -0,0 +1,699 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * GatewayAPIConfig contains the desired config of Gateway API on this cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.GatewayAPIConfig} + */ +public final class GatewayAPIConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.GatewayAPIConfig) + GatewayAPIConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use GatewayAPIConfig.newBuilder() to construct. + private GatewayAPIConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GatewayAPIConfig() { + channel_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GatewayAPIConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GatewayAPIConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GatewayAPIConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GatewayAPIConfig.class, com.google.container.v1beta1.GatewayAPIConfig.Builder.class); + } + + /** + *
+   * Channel describes if/how Gateway API should be installed and implemented in
+   * a cluster.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.GatewayAPIConfig.Channel} + */ + public enum Channel + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Default value.
+     * 
+ * + * CHANNEL_UNSPECIFIED = 0; + */ + CHANNEL_UNSPECIFIED(0), + /** + *
+     * Gateway API support is disabled
+     * 
+ * + * CHANNEL_DISABLED = 1; + */ + CHANNEL_DISABLED(1), + /** + *
+     * Gateway API support is enabled, experimental CRDs are installed
+     * 
+ * + * CHANNEL_EXPERIMENTAL = 3; + */ + CHANNEL_EXPERIMENTAL(3), + /** + *
+     * Gateway API support is enabled, standard CRDs are installed
+     * 
+ * + * CHANNEL_STANDARD = 4; + */ + CHANNEL_STANDARD(4), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Default value.
+     * 
+ * + * CHANNEL_UNSPECIFIED = 0; + */ + public static final int CHANNEL_UNSPECIFIED_VALUE = 0; + /** + *
+     * Gateway API support is disabled
+     * 
+ * + * CHANNEL_DISABLED = 1; + */ + public static final int CHANNEL_DISABLED_VALUE = 1; + /** + *
+     * Gateway API support is enabled, experimental CRDs are installed
+     * 
+ * + * CHANNEL_EXPERIMENTAL = 3; + */ + public static final int CHANNEL_EXPERIMENTAL_VALUE = 3; + /** + *
+     * Gateway API support is enabled, standard CRDs are installed
+     * 
+ * + * CHANNEL_STANDARD = 4; + */ + public static final int CHANNEL_STANDARD_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 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 CHANNEL_UNSPECIFIED; + case 1: return CHANNEL_DISABLED; + case 3: return CHANNEL_EXPERIMENTAL; + case 4: return CHANNEL_STANDARD; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Channel> 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.GatewayAPIConfig.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.GatewayAPIConfig.Channel) + } + + public static final int CHANNEL_FIELD_NUMBER = 1; + private int channel_ = 0; + /** + *
+   * The Gateway API release channel to use for Gateway API.
+   * 
+ * + * .google.container.v1beta1.GatewayAPIConfig.Channel channel = 1; + * @return The enum numeric value on the wire for channel. + */ + @java.lang.Override public int getChannelValue() { + return channel_; + } + /** + *
+   * The Gateway API release channel to use for Gateway API.
+   * 
+ * + * .google.container.v1beta1.GatewayAPIConfig.Channel channel = 1; + * @return The channel. + */ + @java.lang.Override public com.google.container.v1beta1.GatewayAPIConfig.Channel getChannel() { + com.google.container.v1beta1.GatewayAPIConfig.Channel result = com.google.container.v1beta1.GatewayAPIConfig.Channel.forNumber(channel_); + return result == null ? com.google.container.v1beta1.GatewayAPIConfig.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.GatewayAPIConfig.Channel.CHANNEL_UNSPECIFIED.getNumber()) { + output.writeEnum(1, channel_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (channel_ != com.google.container.v1beta1.GatewayAPIConfig.Channel.CHANNEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, channel_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.GatewayAPIConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.GatewayAPIConfig other = (com.google.container.v1beta1.GatewayAPIConfig) obj; + + if (channel_ != other.channel_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.GatewayAPIConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.GatewayAPIConfig parseFrom( + 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.GatewayAPIConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.GatewayAPIConfig parseFrom( + com.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.GatewayAPIConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.GatewayAPIConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.GatewayAPIConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.GatewayAPIConfig parseFrom( + java.io.InputStream 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.GatewayAPIConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.GatewayAPIConfig parseDelimitedFrom( + java.io.InputStream 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.GatewayAPIConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.GatewayAPIConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.GatewayAPIConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * GatewayAPIConfig contains the desired config of Gateway API on this cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.GatewayAPIConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.GatewayAPIConfig) + com.google.container.v1beta1.GatewayAPIConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GatewayAPIConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GatewayAPIConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GatewayAPIConfig.class, com.google.container.v1beta1.GatewayAPIConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.GatewayAPIConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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_GatewayAPIConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.GatewayAPIConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.GatewayAPIConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.GatewayAPIConfig build() { + com.google.container.v1beta1.GatewayAPIConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.GatewayAPIConfig buildPartial() { + com.google.container.v1beta1.GatewayAPIConfig result = new com.google.container.v1beta1.GatewayAPIConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.GatewayAPIConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.channel_ = channel_; + } + } + + @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.GatewayAPIConfig) { + return mergeFrom((com.google.container.v1beta1.GatewayAPIConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.GatewayAPIConfig other) { + if (other == com.google.container.v1beta1.GatewayAPIConfig.getDefaultInstance()) return this; + if (other.channel_ != 0) { + setChannelValue(other.getChannelValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + channel_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int channel_ = 0; + /** + *
+     * The Gateway API release channel to use for Gateway API.
+     * 
+ * + * .google.container.v1beta1.GatewayAPIConfig.Channel channel = 1; + * @return The enum numeric value on the wire for channel. + */ + @java.lang.Override public int getChannelValue() { + return channel_; + } + /** + *
+     * The Gateway API release channel to use for Gateway API.
+     * 
+ * + * .google.container.v1beta1.GatewayAPIConfig.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The Gateway API release channel to use for Gateway API.
+     * 
+ * + * .google.container.v1beta1.GatewayAPIConfig.Channel channel = 1; + * @return The channel. + */ + @java.lang.Override + public com.google.container.v1beta1.GatewayAPIConfig.Channel getChannel() { + com.google.container.v1beta1.GatewayAPIConfig.Channel result = com.google.container.v1beta1.GatewayAPIConfig.Channel.forNumber(channel_); + return result == null ? com.google.container.v1beta1.GatewayAPIConfig.Channel.UNRECOGNIZED : result; + } + /** + *
+     * The Gateway API release channel to use for Gateway API.
+     * 
+ * + * .google.container.v1beta1.GatewayAPIConfig.Channel channel = 1; + * @param value The channel to set. + * @return This builder for chaining. + */ + public Builder setChannel(com.google.container.v1beta1.GatewayAPIConfig.Channel value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + channel_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The Gateway API release channel to use for Gateway API.
+     * 
+ * + * .google.container.v1beta1.GatewayAPIConfig.Channel channel = 1; + * @return This builder for chaining. + */ + public Builder clearChannel() { + bitField0_ = (bitField0_ & ~0x00000001); + 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.GatewayAPIConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.GatewayAPIConfig) + private static final com.google.container.v1beta1.GatewayAPIConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.GatewayAPIConfig(); + } + + public static com.google.container.v1beta1.GatewayAPIConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GatewayAPIConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.GatewayAPIConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GatewayAPIConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GatewayAPIConfigOrBuilder.java new file mode 100644 index 000000000000..89e279c31ac4 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GatewayAPIConfigOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface GatewayAPIConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GatewayAPIConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The Gateway API release channel to use for Gateway API.
+   * 
+ * + * .google.container.v1beta1.GatewayAPIConfig.Channel channel = 1; + * @return The enum numeric value on the wire for channel. + */ + int getChannelValue(); + /** + *
+   * The Gateway API release channel to use for Gateway API.
+   * 
+ * + * .google.container.v1beta1.GatewayAPIConfig.Channel channel = 1; + * @return The channel. + */ + com.google.container.v1beta1.GatewayAPIConfig.Channel getChannel(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcePersistentDiskCsiDriverConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcePersistentDiskCsiDriverConfig.java new file mode 100644 index 000000000000..0e31bb1bcdf6 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcePersistentDiskCsiDriverConfig.java @@ -0,0 +1,497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * Configuration for the Compute Engine PD CSI driver.
+ * 
+ * + * 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(); + } + + 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_ = false; + /** + *
+   * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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.
+   * 
+ * + * 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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 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_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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.GcePersistentDiskCsiDriverConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @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.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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() { + bitField0_ = (bitField0_ & ~0x00000001); + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcePersistentDiskCsiDriverConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcePersistentDiskCsiDriverConfigOrBuilder.java new file mode 100644 index 000000000000..7184ae92efe7 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcePersistentDiskCsiDriverConfigOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcfsConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcfsConfig.java new file mode 100644 index 000000000000..9219eb9cee64 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcfsConfig.java @@ -0,0 +1,497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * GcfsConfig contains configurations of Google Container File System.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.GcfsConfig} + */ +public final class GcfsConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.GcfsConfig) + GcfsConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use GcfsConfig.newBuilder() to construct. + private GcfsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GcfsConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GcfsConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GcfsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GcfsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GcfsConfig.class, com.google.container.v1beta1.GcfsConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * Whether to use GCFS.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.GcfsConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.GcfsConfig other = (com.google.container.v1beta1.GcfsConfig) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.GcfsConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.GcfsConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.GcfsConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.GcfsConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.GcfsConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.GcfsConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.GcfsConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.GcfsConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.GcfsConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.GcfsConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.GcfsConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.GcfsConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.GcfsConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * GcfsConfig contains configurations of Google Container File System.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.GcfsConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.GcfsConfig) + com.google.container.v1beta1.GcfsConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GcfsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GcfsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GcfsConfig.class, com.google.container.v1beta1.GcfsConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.GcfsConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 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_GcfsConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.GcfsConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.GcfsConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.GcfsConfig build() { + com.google.container.v1beta1.GcfsConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.GcfsConfig buildPartial() { + com.google.container.v1beta1.GcfsConfig result = new com.google.container.v1beta1.GcfsConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.GcfsConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.GcfsConfig) { + return mergeFrom((com.google.container.v1beta1.GcfsConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.GcfsConfig other) { + if (other == com.google.container.v1beta1.GcfsConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enabled_ ; + /** + *
+     * Whether to use GCFS.
+     * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Whether to use GCFS.
+     * 
+ * + * bool enabled = 1; + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether to use GCFS.
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.GcfsConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.GcfsConfig) + private static final com.google.container.v1beta1.GcfsConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.GcfsConfig(); + } + + public static com.google.container.v1beta1.GcfsConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcfsConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.GcfsConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcfsConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcfsConfigOrBuilder.java new file mode 100644 index 000000000000..5c4dad46b022 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcfsConfigOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface GcfsConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GcfsConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether to use GCFS.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcpFilestoreCsiDriverConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcpFilestoreCsiDriverConfig.java new file mode 100644 index 000000000000..9d82c3408b1e --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcpFilestoreCsiDriverConfig.java @@ -0,0 +1,497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * Configuration for the GCP Filestore CSI driver.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.GcpFilestoreCsiDriverConfig} + */ +public final class GcpFilestoreCsiDriverConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.GcpFilestoreCsiDriverConfig) + GcpFilestoreCsiDriverConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use GcpFilestoreCsiDriverConfig.newBuilder() to construct. + private GcpFilestoreCsiDriverConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GcpFilestoreCsiDriverConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GcpFilestoreCsiDriverConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GcpFilestoreCsiDriverConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GcpFilestoreCsiDriverConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.class, com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * Whether the GCP Filestore CSI driver is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.GcpFilestoreCsiDriverConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig other = (com.google.container.v1beta1.GcpFilestoreCsiDriverConfig) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.GcpFilestoreCsiDriverConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.GcpFilestoreCsiDriverConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.GcpFilestoreCsiDriverConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.GcpFilestoreCsiDriverConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.GcpFilestoreCsiDriverConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.GcpFilestoreCsiDriverConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.GcpFilestoreCsiDriverConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.GcpFilestoreCsiDriverConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.GcpFilestoreCsiDriverConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.GcpFilestoreCsiDriverConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.GcpFilestoreCsiDriverConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.GcpFilestoreCsiDriverConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.GcpFilestoreCsiDriverConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration for the GCP Filestore CSI driver.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.GcpFilestoreCsiDriverConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.GcpFilestoreCsiDriverConfig) + com.google.container.v1beta1.GcpFilestoreCsiDriverConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GcpFilestoreCsiDriverConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GcpFilestoreCsiDriverConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.class, com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 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_GcpFilestoreCsiDriverConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.GcpFilestoreCsiDriverConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.GcpFilestoreCsiDriverConfig build() { + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.GcpFilestoreCsiDriverConfig buildPartial() { + com.google.container.v1beta1.GcpFilestoreCsiDriverConfig result = new com.google.container.v1beta1.GcpFilestoreCsiDriverConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.GcpFilestoreCsiDriverConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.GcpFilestoreCsiDriverConfig) { + return mergeFrom((com.google.container.v1beta1.GcpFilestoreCsiDriverConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.GcpFilestoreCsiDriverConfig other) { + if (other == com.google.container.v1beta1.GcpFilestoreCsiDriverConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enabled_ ; + /** + *
+     * Whether the GCP Filestore CSI driver is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Whether the GCP Filestore CSI driver is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether the GCP Filestore CSI driver is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.GcpFilestoreCsiDriverConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.GcpFilestoreCsiDriverConfig) + private static final com.google.container.v1beta1.GcpFilestoreCsiDriverConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.GcpFilestoreCsiDriverConfig(); + } + + public static com.google.container.v1beta1.GcpFilestoreCsiDriverConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcpFilestoreCsiDriverConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.GcpFilestoreCsiDriverConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcpFilestoreCsiDriverConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcpFilestoreCsiDriverConfigOrBuilder.java new file mode 100644 index 000000000000..4715252974cf --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcpFilestoreCsiDriverConfigOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface GcpFilestoreCsiDriverConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GcpFilestoreCsiDriverConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether the GCP Filestore CSI driver is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcsFuseCsiDriverConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcsFuseCsiDriverConfig.java new file mode 100644 index 000000000000..862b27024a25 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcsFuseCsiDriverConfig.java @@ -0,0 +1,497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * Configuration for the Cloud Storage Fuse CSI driver.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.GcsFuseCsiDriverConfig} + */ +public final class GcsFuseCsiDriverConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.GcsFuseCsiDriverConfig) + GcsFuseCsiDriverConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use GcsFuseCsiDriverConfig.newBuilder() to construct. + private GcsFuseCsiDriverConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GcsFuseCsiDriverConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GcsFuseCsiDriverConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GcsFuseCsiDriverConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GcsFuseCsiDriverConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GcsFuseCsiDriverConfig.class, com.google.container.v1beta1.GcsFuseCsiDriverConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * Whether the Cloud Storage Fuse 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.GcsFuseCsiDriverConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.GcsFuseCsiDriverConfig other = (com.google.container.v1beta1.GcsFuseCsiDriverConfig) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.GcsFuseCsiDriverConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.GcsFuseCsiDriverConfig parseFrom( + 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.GcsFuseCsiDriverConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.GcsFuseCsiDriverConfig parseFrom( + com.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.GcsFuseCsiDriverConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.GcsFuseCsiDriverConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.GcsFuseCsiDriverConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.GcsFuseCsiDriverConfig parseFrom( + java.io.InputStream 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.GcsFuseCsiDriverConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.GcsFuseCsiDriverConfig parseDelimitedFrom( + java.io.InputStream 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.GcsFuseCsiDriverConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.GcsFuseCsiDriverConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.GcsFuseCsiDriverConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new 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 Cloud Storage Fuse CSI driver.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.GcsFuseCsiDriverConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.GcsFuseCsiDriverConfig) + com.google.container.v1beta1.GcsFuseCsiDriverConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GcsFuseCsiDriverConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GcsFuseCsiDriverConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GcsFuseCsiDriverConfig.class, com.google.container.v1beta1.GcsFuseCsiDriverConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.GcsFuseCsiDriverConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 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_GcsFuseCsiDriverConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.GcsFuseCsiDriverConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.GcsFuseCsiDriverConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.GcsFuseCsiDriverConfig build() { + com.google.container.v1beta1.GcsFuseCsiDriverConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.GcsFuseCsiDriverConfig buildPartial() { + com.google.container.v1beta1.GcsFuseCsiDriverConfig result = new com.google.container.v1beta1.GcsFuseCsiDriverConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.GcsFuseCsiDriverConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @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.GcsFuseCsiDriverConfig) { + return mergeFrom((com.google.container.v1beta1.GcsFuseCsiDriverConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.GcsFuseCsiDriverConfig other) { + if (other == com.google.container.v1beta1.GcsFuseCsiDriverConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enabled_ ; + /** + *
+     * Whether the Cloud Storage Fuse CSI driver is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Whether the Cloud Storage Fuse 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether the Cloud Storage Fuse CSI driver is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + 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.GcsFuseCsiDriverConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.GcsFuseCsiDriverConfig) + private static final com.google.container.v1beta1.GcsFuseCsiDriverConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.GcsFuseCsiDriverConfig(); + } + + public static com.google.container.v1beta1.GcsFuseCsiDriverConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsFuseCsiDriverConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.GcsFuseCsiDriverConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcsFuseCsiDriverConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcsFuseCsiDriverConfigOrBuilder.java new file mode 100644 index 000000000000..33cffbfa8557 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GcsFuseCsiDriverConfigOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface GcsFuseCsiDriverConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GcsFuseCsiDriverConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether the Cloud Storage Fuse CSI driver is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequest.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequest.java new file mode 100644 index 000000000000..ea63998de264 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequest.java @@ -0,0 +1,1161 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2975 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2975 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2982 + * @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]; + * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2982 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2986 + * @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]; + * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2986 + * @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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.GetClusterRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.name_ = name_; + } + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 42: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2975 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2975 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2975 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2975 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2975 + * @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; + bitField0_ |= 0x00000001; + 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]; + * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2982 + * @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]; + * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2982 + * @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]; + * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2982 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2982 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + 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]; + * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2982 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2986 + * @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]; + * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2986 + * @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]; + * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2986 + * @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; + bitField0_ |= 0x00000004; + 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]; + * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2986 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + 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]; + * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2986 + * @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; + bitField0_ |= 0x00000004; + 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; + bitField0_ |= 0x00000008; + 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(); + bitField0_ = (bitField0_ & ~0x00000008); + 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; + bitField0_ |= 0x00000008; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequestOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequestOrBuilder.java new file mode 100644 index 000000000000..ada6a3bef2a8 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequestOrBuilder.java @@ -0,0 +1,116 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2975 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2975 + * @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]; + * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2982 + * @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]; + * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2982 + * @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]; + * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2986 + * @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]; + * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2986 + * @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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysRequest.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysRequest.java new file mode 100644 index 000000000000..301271167b03 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysRequest.java @@ -0,0 +1,591 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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; + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + *
+   * The cluster (project, location, cluster name) 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 name) 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.GetJSONWebKeysRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + *
+     * The cluster (project, location, cluster name) 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 name) 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 name) 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The cluster (project, location, cluster name) 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(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * The cluster (project, location, cluster name) 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; + bitField0_ |= 0x00000001; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysRequestOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysRequestOrBuilder.java new file mode 100644 index 000000000000..a391edec9b8a --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysRequestOrBuilder.java @@ -0,0 +1,32 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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 name) 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 name) 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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysResponse.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysResponse.java new file mode 100644 index 000000000000..2270c8da9479 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysResponse.java @@ -0,0 +1,883 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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; + @SuppressWarnings("serial") + 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)); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (keysBuilder_ == null) { + keys_ = java.util.Collections.emptyList(); + } else { + keys_ = null; + keysBuilder_.clear(); + } + 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_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); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1beta1.GetJSONWebKeysResponse result) { + if (keysBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + keys_ = java.util.Collections.unmodifiableList(keys_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.keys_ = keys_; + } else { + result.keys_ = keysBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1beta1.GetJSONWebKeysResponse result) { + int from_bitField0_ = bitField0_; + } + + @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.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.container.v1beta1.Jwk m = + input.readMessage( + com.google.container.v1beta1.Jwk.parser(), + extensionRegistry); + if (keysBuilder_ == null) { + ensureKeysIsMutable(); + keys_.add(m); + } else { + keysBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysResponseOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysResponseOrBuilder.java new file mode 100644 index 000000000000..8dcd5680e530 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetJSONWebKeysResponseOrBuilder.java @@ -0,0 +1,59 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequest.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequest.java new file mode 100644 index 000000000000..8f0ddca81b73 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequest.java @@ -0,0 +1,1353 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3728 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3728 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3735 + * @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]; + * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3735 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3739 + * @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]; + * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3739 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3744 + * @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]; + * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3744 + * @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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.GetNodePoolRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.nodePoolId_ = nodePoolId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.name_ = name_; + } + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + nodePoolId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 50: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3728 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3728 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3728 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3728 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3728 + * @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; + bitField0_ |= 0x00000001; + 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]; + * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3735 + * @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]; + * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3735 + * @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]; + * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3735 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3735 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + 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]; + * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3735 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3739 + * @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]; + * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3739 + * @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]; + * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3739 + * @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; + bitField0_ |= 0x00000004; + 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]; + * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3739 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + 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]; + * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3739 + * @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; + bitField0_ |= 0x00000004; + 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]; + * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3744 + * @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]; + * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3744 + * @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]; + * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3744 + * @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; + bitField0_ |= 0x00000008; + 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]; + * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3744 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearNodePoolId() { + nodePoolId_ = getDefaultInstance().getNodePoolId(); + bitField0_ = (bitField0_ & ~0x00000008); + 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]; + * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3744 + * @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; + bitField0_ |= 0x00000008; + 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; + bitField0_ |= 0x00000010; + 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(); + bitField0_ = (bitField0_ & ~0x00000010); + 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; + bitField0_ |= 0x00000010; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequestOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequestOrBuilder.java new file mode 100644 index 000000000000..440c8d212219 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequestOrBuilder.java @@ -0,0 +1,144 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3728 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3728 + * @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]; + * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3735 + * @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]; + * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3735 + * @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]; + * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3739 + * @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]; + * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3739 + * @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]; + * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3744 + * @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]; + * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3744 + * @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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigRequest.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigRequest.java new file mode 100644 index 000000000000..924308e08f2c --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigRequest.java @@ -0,0 +1,587 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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; + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + *
+   * The cluster (project, location, cluster name) 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 name) 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.GetOpenIDConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + *
+     * The cluster (project, location, cluster name) 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 name) 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 name) 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The cluster (project, location, cluster name) 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(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * The cluster (project, location, cluster name) 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; + bitField0_ |= 0x00000001; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigRequestOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigRequestOrBuilder.java new file mode 100644 index 000000000000..083d0725150b --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigRequestOrBuilder.java @@ -0,0 +1,32 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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 name) 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 name) 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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigResponse.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigResponse.java new file mode 100644 index 000000000000..b248917ab18e --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigResponse.java @@ -0,0 +1,1949 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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.emptyList(); + subjectTypesSupported_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + idTokenSigningAlgValuesSupported_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + claimsSupported_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + grantTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetOpenIDConfigResponse(); + } + + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList responseTypesSupported_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * 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; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList subjectTypesSupported_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * 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; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList idTokenSigningAlgValuesSupported_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * 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; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList claimsSupported_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * 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; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList grantTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(issuer_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, issuer_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jwksUri_)) { + 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)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(issuer_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, issuer_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jwksUri_)) { + 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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + issuer_ = ""; + jwksUri_ = ""; + responseTypesSupported_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + subjectTypesSupported_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + idTokenSigningAlgValuesSupported_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + claimsSupported_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + grantTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.GetOpenIDConfigResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.issuer_ = issuer_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.jwksUri_ = jwksUri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + responseTypesSupported_.makeImmutable(); + result.responseTypesSupported_ = responseTypesSupported_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + subjectTypesSupported_.makeImmutable(); + result.subjectTypesSupported_ = subjectTypesSupported_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + idTokenSigningAlgValuesSupported_.makeImmutable(); + result.idTokenSigningAlgValuesSupported_ = idTokenSigningAlgValuesSupported_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + claimsSupported_.makeImmutable(); + result.claimsSupported_ = claimsSupported_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + grantTypes_.makeImmutable(); + result.grantTypes_ = grantTypes_; + } + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getJwksUri().isEmpty()) { + jwksUri_ = other.jwksUri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.responseTypesSupported_.isEmpty()) { + if (responseTypesSupported_.isEmpty()) { + responseTypesSupported_ = other.responseTypesSupported_; + bitField0_ |= 0x00000004; + } else { + ensureResponseTypesSupportedIsMutable(); + responseTypesSupported_.addAll(other.responseTypesSupported_); + } + onChanged(); + } + if (!other.subjectTypesSupported_.isEmpty()) { + if (subjectTypesSupported_.isEmpty()) { + subjectTypesSupported_ = other.subjectTypesSupported_; + bitField0_ |= 0x00000008; + } else { + ensureSubjectTypesSupportedIsMutable(); + subjectTypesSupported_.addAll(other.subjectTypesSupported_); + } + onChanged(); + } + if (!other.idTokenSigningAlgValuesSupported_.isEmpty()) { + if (idTokenSigningAlgValuesSupported_.isEmpty()) { + idTokenSigningAlgValuesSupported_ = other.idTokenSigningAlgValuesSupported_; + bitField0_ |= 0x00000010; + } else { + ensureIdTokenSigningAlgValuesSupportedIsMutable(); + idTokenSigningAlgValuesSupported_.addAll(other.idTokenSigningAlgValuesSupported_); + } + onChanged(); + } + if (!other.claimsSupported_.isEmpty()) { + if (claimsSupported_.isEmpty()) { + claimsSupported_ = other.claimsSupported_; + bitField0_ |= 0x00000020; + } else { + ensureClaimsSupportedIsMutable(); + claimsSupported_.addAll(other.claimsSupported_); + } + onChanged(); + } + if (!other.grantTypes_.isEmpty()) { + if (grantTypes_.isEmpty()) { + grantTypes_ = other.grantTypes_; + bitField0_ |= 0x00000040; + } else { + ensureGrantTypesIsMutable(); + grantTypes_.addAll(other.grantTypes_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + issuer_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + jwksUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureResponseTypesSupportedIsMutable(); + responseTypesSupported_.add(s); + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureSubjectTypesSupportedIsMutable(); + subjectTypesSupported_.add(s); + break; + } // case 34 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + ensureIdTokenSigningAlgValuesSupportedIsMutable(); + idTokenSigningAlgValuesSupported_.add(s); + break; + } // case 42 + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + ensureClaimsSupportedIsMutable(); + claimsSupported_.add(s); + break; + } // case 50 + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + ensureGrantTypesIsMutable(); + grantTypes_.add(s); + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * OIDC Issuer.
+     * 
+ * + * string issuer = 1; + * @return This builder for chaining. + */ + public Builder clearIssuer() { + issuer_ = getDefaultInstance().getIssuer(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * JSON Web Key uri.
+     * 
+ * + * string jwks_uri = 2; + * @return This builder for chaining. + */ + public Builder clearJwksUri() { + jwksUri_ = getDefaultInstance().getJwksUri(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList responseTypesSupported_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureResponseTypesSupportedIsMutable() { + if (!responseTypesSupported_.isModifiable()) { + responseTypesSupported_ = new com.google.protobuf.LazyStringArrayList(responseTypesSupported_); + } + bitField0_ |= 0x00000004; + } + /** + *
+     * Supported response types.
+     * 
+ * + * repeated string response_types_supported = 3; + * @return A list containing the responseTypesSupported. + */ + public com.google.protobuf.ProtocolStringList + getResponseTypesSupportedList() { + responseTypesSupported_.makeImmutable(); + 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); + } + /** + *
+     * 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); + bitField0_ |= 0x00000004; + 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); + bitField0_ |= 0x00000004; + 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_); + bitField0_ |= 0x00000004; + 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.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; + 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); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList subjectTypesSupported_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureSubjectTypesSupportedIsMutable() { + if (!subjectTypesSupported_.isModifiable()) { + subjectTypesSupported_ = new com.google.protobuf.LazyStringArrayList(subjectTypesSupported_); + } + bitField0_ |= 0x00000008; + } + /** + *
+     * Supported subject types.
+     * 
+ * + * repeated string subject_types_supported = 4; + * @return A list containing the subjectTypesSupported. + */ + public com.google.protobuf.ProtocolStringList + getSubjectTypesSupportedList() { + subjectTypesSupported_.makeImmutable(); + 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); + } + /** + *
+     * 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); + bitField0_ |= 0x00000008; + 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); + bitField0_ |= 0x00000008; + 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_); + bitField0_ |= 0x00000008; + 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.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; + 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); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList idTokenSigningAlgValuesSupported_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureIdTokenSigningAlgValuesSupportedIsMutable() { + if (!idTokenSigningAlgValuesSupported_.isModifiable()) { + idTokenSigningAlgValuesSupported_ = new com.google.protobuf.LazyStringArrayList(idTokenSigningAlgValuesSupported_); + } + bitField0_ |= 0x00000010; + } + /** + *
+     * 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() { + idTokenSigningAlgValuesSupported_.makeImmutable(); + 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); + } + /** + *
+     * 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); + bitField0_ |= 0x00000010; + 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); + bitField0_ |= 0x00000010; + 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_); + bitField0_ |= 0x00000010; + 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.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010);; + 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); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList claimsSupported_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureClaimsSupportedIsMutable() { + if (!claimsSupported_.isModifiable()) { + claimsSupported_ = new com.google.protobuf.LazyStringArrayList(claimsSupported_); + } + bitField0_ |= 0x00000020; + } + /** + *
+     * Supported claims.
+     * 
+ * + * repeated string claims_supported = 6; + * @return A list containing the claimsSupported. + */ + public com.google.protobuf.ProtocolStringList + getClaimsSupportedList() { + claimsSupported_.makeImmutable(); + 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); + } + /** + *
+     * 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); + bitField0_ |= 0x00000020; + 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); + bitField0_ |= 0x00000020; + 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_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Supported claims.
+     * 
+ * + * repeated string claims_supported = 6; + * @return This builder for chaining. + */ + public Builder clearClaimsSupported() { + claimsSupported_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020);; + 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); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList grantTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureGrantTypesIsMutable() { + if (!grantTypes_.isModifiable()) { + grantTypes_ = new com.google.protobuf.LazyStringArrayList(grantTypes_); + } + bitField0_ |= 0x00000040; + } + /** + *
+     * Supported grant types.
+     * 
+ * + * repeated string grant_types = 7; + * @return A list containing the grantTypes. + */ + public com.google.protobuf.ProtocolStringList + getGrantTypesList() { + grantTypes_.makeImmutable(); + 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); + } + /** + *
+     * 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); + bitField0_ |= 0x00000040; + 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); + bitField0_ |= 0x00000040; + 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_); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * Supported grant types.
+     * 
+ * + * repeated string grant_types = 7; + * @return This builder for chaining. + */ + public Builder clearGrantTypes() { + grantTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040);; + 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); + bitField0_ |= 0x00000040; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigResponseOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigResponseOrBuilder.java new file mode 100644 index 000000000000..c57e2d17a2b7 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOpenIDConfigResponseOrBuilder.java @@ -0,0 +1,255 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequest.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequest.java new file mode 100644 index 000000000000..82bf52204e4c --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequest.java @@ -0,0 +1,1161 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3466 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3466 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3473 + * @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]; + * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3473 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3477 + * @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]; + * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3477 + * @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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, operationId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, operationId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.GetOperationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.operationId_ = operationId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.name_ = name_; + } + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getOperationId().isEmpty()) { + operationId_ = other.operationId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + operationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 42: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3466 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3466 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3466 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3466 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3466 + * @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; + bitField0_ |= 0x00000001; + 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]; + * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3473 + * @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]; + * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3473 + * @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]; + * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3473 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3473 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + 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]; + * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3473 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3477 + * @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]; + * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3477 + * @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]; + * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3477 + * @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; + bitField0_ |= 0x00000004; + 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]; + * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3477 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearOperationId() { + operationId_ = getDefaultInstance().getOperationId(); + bitField0_ = (bitField0_ & ~0x00000004); + 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]; + * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3477 + * @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; + bitField0_ |= 0x00000004; + 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; + bitField0_ |= 0x00000008; + 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(); + bitField0_ = (bitField0_ & ~0x00000008); + 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; + bitField0_ |= 0x00000008; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequestOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequestOrBuilder.java new file mode 100644 index 000000000000..e3f643f30c80 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequestOrBuilder.java @@ -0,0 +1,116 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3466 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3466 + * @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]; + * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3473 + * @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]; + * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3473 + * @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]; + * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3477 + * @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]; + * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3477 + * @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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequest.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequest.java new file mode 100644 index 000000000000..9a1412f61f77 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequest.java @@ -0,0 +1,976 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3544 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3544 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3551 + * @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]; + * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3551 + * @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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.GetServerConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.name_ = name_; + } + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3544 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3544 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3544 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3544 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3544 + * @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; + bitField0_ |= 0x00000001; + 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]; + * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3551 + * @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]; + * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3551 + * @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]; + * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3551 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3551 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + 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]; + * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3551 + * @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; + bitField0_ |= 0x00000002; + 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; + bitField0_ |= 0x00000004; + 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(); + bitField0_ = (bitField0_ & ~0x00000004); + 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; + bitField0_ |= 0x00000004; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequestOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequestOrBuilder.java new file mode 100644 index 000000000000..113091808f77 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequestOrBuilder.java @@ -0,0 +1,90 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3544 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3544 + * @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]; + * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3551 + * @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]; + * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3551 + * @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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GkeBackupAgentConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GkeBackupAgentConfig.java new file mode 100644 index 000000000000..de29cca3eb67 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GkeBackupAgentConfig.java @@ -0,0 +1,497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * Configuration for the Backup for GKE Agent.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.GkeBackupAgentConfig} + */ +public final class GkeBackupAgentConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.GkeBackupAgentConfig) + GkeBackupAgentConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use GkeBackupAgentConfig.newBuilder() to construct. + private GkeBackupAgentConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GkeBackupAgentConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GkeBackupAgentConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GkeBackupAgentConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GkeBackupAgentConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GkeBackupAgentConfig.class, com.google.container.v1beta1.GkeBackupAgentConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * Whether the Backup for GKE agent is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.GkeBackupAgentConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.GkeBackupAgentConfig other = (com.google.container.v1beta1.GkeBackupAgentConfig) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.GkeBackupAgentConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.GkeBackupAgentConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.GkeBackupAgentConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.GkeBackupAgentConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.GkeBackupAgentConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.GkeBackupAgentConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.GkeBackupAgentConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.GkeBackupAgentConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.GkeBackupAgentConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.GkeBackupAgentConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.GkeBackupAgentConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.GkeBackupAgentConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.GkeBackupAgentConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration for the Backup for GKE Agent.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.GkeBackupAgentConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.GkeBackupAgentConfig) + com.google.container.v1beta1.GkeBackupAgentConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GkeBackupAgentConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_GkeBackupAgentConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.GkeBackupAgentConfig.class, com.google.container.v1beta1.GkeBackupAgentConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.GkeBackupAgentConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 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_GkeBackupAgentConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.GkeBackupAgentConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.GkeBackupAgentConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.GkeBackupAgentConfig build() { + com.google.container.v1beta1.GkeBackupAgentConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.GkeBackupAgentConfig buildPartial() { + com.google.container.v1beta1.GkeBackupAgentConfig result = new com.google.container.v1beta1.GkeBackupAgentConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.GkeBackupAgentConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.GkeBackupAgentConfig) { + return mergeFrom((com.google.container.v1beta1.GkeBackupAgentConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.GkeBackupAgentConfig other) { + if (other == com.google.container.v1beta1.GkeBackupAgentConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enabled_ ; + /** + *
+     * Whether the Backup for GKE agent is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Whether the Backup for GKE agent is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether the Backup for GKE agent is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.GkeBackupAgentConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.GkeBackupAgentConfig) + private static final com.google.container.v1beta1.GkeBackupAgentConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.GkeBackupAgentConfig(); + } + + public static com.google.container.v1beta1.GkeBackupAgentConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GkeBackupAgentConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.GkeBackupAgentConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GkeBackupAgentConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GkeBackupAgentConfigOrBuilder.java new file mode 100644 index 000000000000..6510293e2e4e --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GkeBackupAgentConfigOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface GkeBackupAgentConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.GkeBackupAgentConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether the Backup for GKE agent is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HorizontalPodAutoscaling.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HorizontalPodAutoscaling.java new file mode 100644 index 000000000000..786047be9b0c --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HorizontalPodAutoscaling.java @@ -0,0 +1,509 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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_ = false; + /** + *
+   * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.HorizontalPodAutoscaling result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.disabled_ = disabled_; + } + } + + @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.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + disabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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() { + bitField0_ = (bitField0_ & ~0x00000001); + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HorizontalPodAutoscalingOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HorizontalPodAutoscalingOrBuilder.java new file mode 100644 index 000000000000..8faa2ce45784 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HorizontalPodAutoscalingOrBuilder.java @@ -0,0 +1,22 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HostMaintenancePolicy.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HostMaintenancePolicy.java new file mode 100644 index 000000000000..0dbe63d73a52 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HostMaintenancePolicy.java @@ -0,0 +1,2230 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * HostMaintenancePolicy contains the maintenance policy for the hosts on which
+ * the GKE VMs run on.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.HostMaintenancePolicy} + */ +public final class HostMaintenancePolicy extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.HostMaintenancePolicy) + HostMaintenancePolicyOrBuilder { +private static final long serialVersionUID = 0L; + // Use HostMaintenancePolicy.newBuilder() to construct. + private HostMaintenancePolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HostMaintenancePolicy() { + maintenanceInterval_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new HostMaintenancePolicy(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_HostMaintenancePolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_HostMaintenancePolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.HostMaintenancePolicy.class, com.google.container.v1beta1.HostMaintenancePolicy.Builder.class); + } + + /** + *
+   * Allows selecting how infrastructure upgrades should be applied to the
+   * cluster or node pool.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval} + */ + public enum MaintenanceInterval + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * The maintenance interval is not explicitly specified.
+     * 
+ * + * MAINTENANCE_INTERVAL_UNSPECIFIED = 0; + */ + MAINTENANCE_INTERVAL_UNSPECIFIED(0), + /** + *
+     * Nodes are eligible to receive infrastructure and hypervisor updates as
+     * they become available.  This may result in more maintenance operations
+     * (live migrations or terminations) for the node than the PERIODIC option.
+     * 
+ * + * AS_NEEDED = 1; + */ + AS_NEEDED(1), + /** + *
+     * Nodes receive infrastructure and hypervisor updates on a periodic basis,
+     * minimizing the number of maintenance operations (live migrations or
+     * terminations) on an individual VM.  This may mean underlying VMs will
+     * take longer to receive an update than if it was configured for
+     * AS_NEEDED.  Security updates will still be applied as soon
+     * as they are available.
+     * 
+ * + * PERIODIC = 2; + */ + PERIODIC(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * The maintenance interval is not explicitly specified.
+     * 
+ * + * MAINTENANCE_INTERVAL_UNSPECIFIED = 0; + */ + public static final int MAINTENANCE_INTERVAL_UNSPECIFIED_VALUE = 0; + /** + *
+     * Nodes are eligible to receive infrastructure and hypervisor updates as
+     * they become available.  This may result in more maintenance operations
+     * (live migrations or terminations) for the node than the PERIODIC option.
+     * 
+ * + * AS_NEEDED = 1; + */ + public static final int AS_NEEDED_VALUE = 1; + /** + *
+     * Nodes receive infrastructure and hypervisor updates on a periodic basis,
+     * minimizing the number of maintenance operations (live migrations or
+     * terminations) on an individual VM.  This may mean underlying VMs will
+     * take longer to receive an update than if it was configured for
+     * AS_NEEDED.  Security updates will still be applied as soon
+     * as they are available.
+     * 
+ * + * PERIODIC = 2; + */ + public static final int PERIODIC_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 MaintenanceInterval 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 MaintenanceInterval forNumber(int value) { + switch (value) { + case 0: return MAINTENANCE_INTERVAL_UNSPECIFIED; + case 1: return AS_NEEDED; + case 2: return PERIODIC; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + MaintenanceInterval> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MaintenanceInterval findValueByNumber(int number) { + return MaintenanceInterval.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.HostMaintenancePolicy.getDescriptor().getEnumTypes().get(0); + } + + private static final MaintenanceInterval[] VALUES = values(); + + public static MaintenanceInterval 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 MaintenanceInterval(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval) + } + + public interface OpportunisticMaintenanceStrategyOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The amount of time that a node can remain idle (no customer owned
+     * workloads running), before triggering maintenance.
+     * 
+ * + * optional .google.protobuf.Duration node_idle_time_window = 1; + * @return Whether the nodeIdleTimeWindow field is set. + */ + boolean hasNodeIdleTimeWindow(); + /** + *
+     * The amount of time that a node can remain idle (no customer owned
+     * workloads running), before triggering maintenance.
+     * 
+ * + * optional .google.protobuf.Duration node_idle_time_window = 1; + * @return The nodeIdleTimeWindow. + */ + com.google.protobuf.Duration getNodeIdleTimeWindow(); + /** + *
+     * The amount of time that a node can remain idle (no customer owned
+     * workloads running), before triggering maintenance.
+     * 
+ * + * optional .google.protobuf.Duration node_idle_time_window = 1; + */ + com.google.protobuf.DurationOrBuilder getNodeIdleTimeWindowOrBuilder(); + + /** + *
+     * The window of time that opportunistic maintenance can run. Example: A
+     * setting of 14 days implies that opportunistic maintenance can only be ran
+     * in the 2 weeks leading up to the scheduled maintenance date. Setting 28
+     * days allows opportunistic maintenance to run at any time in the scheduled
+     * maintenance window (all `PERIODIC` maintenance is set 28 days in
+     * advance).
+     * 
+ * + * optional .google.protobuf.Duration maintenance_availability_window = 2; + * @return Whether the maintenanceAvailabilityWindow field is set. + */ + boolean hasMaintenanceAvailabilityWindow(); + /** + *
+     * The window of time that opportunistic maintenance can run. Example: A
+     * setting of 14 days implies that opportunistic maintenance can only be ran
+     * in the 2 weeks leading up to the scheduled maintenance date. Setting 28
+     * days allows opportunistic maintenance to run at any time in the scheduled
+     * maintenance window (all `PERIODIC` maintenance is set 28 days in
+     * advance).
+     * 
+ * + * optional .google.protobuf.Duration maintenance_availability_window = 2; + * @return The maintenanceAvailabilityWindow. + */ + com.google.protobuf.Duration getMaintenanceAvailabilityWindow(); + /** + *
+     * The window of time that opportunistic maintenance can run. Example: A
+     * setting of 14 days implies that opportunistic maintenance can only be ran
+     * in the 2 weeks leading up to the scheduled maintenance date. Setting 28
+     * days allows opportunistic maintenance to run at any time in the scheduled
+     * maintenance window (all `PERIODIC` maintenance is set 28 days in
+     * advance).
+     * 
+ * + * optional .google.protobuf.Duration maintenance_availability_window = 2; + */ + com.google.protobuf.DurationOrBuilder getMaintenanceAvailabilityWindowOrBuilder(); + + /** + *
+     * The minimum nodes required to be available in a pool. Blocks maintenance
+     * if it would cause the number of running nodes to dip below this value.
+     * 
+ * + * optional int64 min_nodes_per_pool = 3; + * @return Whether the minNodesPerPool field is set. + */ + boolean hasMinNodesPerPool(); + /** + *
+     * The minimum nodes required to be available in a pool. Blocks maintenance
+     * if it would cause the number of running nodes to dip below this value.
+     * 
+ * + * optional int64 min_nodes_per_pool = 3; + * @return The minNodesPerPool. + */ + long getMinNodesPerPool(); + } + /** + *
+   * Strategy that will trigger maintenance on behalf of the customer.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy} + */ + public static final class OpportunisticMaintenanceStrategy extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy) + OpportunisticMaintenanceStrategyOrBuilder { + private static final long serialVersionUID = 0L; + // Use OpportunisticMaintenanceStrategy.newBuilder() to construct. + private OpportunisticMaintenanceStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private OpportunisticMaintenanceStrategy() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new OpportunisticMaintenanceStrategy(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_HostMaintenancePolicy_OpportunisticMaintenanceStrategy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_HostMaintenancePolicy_OpportunisticMaintenanceStrategy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy.class, com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy.Builder.class); + } + + private int bitField0_; + public static final int NODE_IDLE_TIME_WINDOW_FIELD_NUMBER = 1; + private com.google.protobuf.Duration nodeIdleTimeWindow_; + /** + *
+     * The amount of time that a node can remain idle (no customer owned
+     * workloads running), before triggering maintenance.
+     * 
+ * + * optional .google.protobuf.Duration node_idle_time_window = 1; + * @return Whether the nodeIdleTimeWindow field is set. + */ + @java.lang.Override + public boolean hasNodeIdleTimeWindow() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * The amount of time that a node can remain idle (no customer owned
+     * workloads running), before triggering maintenance.
+     * 
+ * + * optional .google.protobuf.Duration node_idle_time_window = 1; + * @return The nodeIdleTimeWindow. + */ + @java.lang.Override + public com.google.protobuf.Duration getNodeIdleTimeWindow() { + return nodeIdleTimeWindow_ == null ? com.google.protobuf.Duration.getDefaultInstance() : nodeIdleTimeWindow_; + } + /** + *
+     * The amount of time that a node can remain idle (no customer owned
+     * workloads running), before triggering maintenance.
+     * 
+ * + * optional .google.protobuf.Duration node_idle_time_window = 1; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getNodeIdleTimeWindowOrBuilder() { + return nodeIdleTimeWindow_ == null ? com.google.protobuf.Duration.getDefaultInstance() : nodeIdleTimeWindow_; + } + + public static final int MAINTENANCE_AVAILABILITY_WINDOW_FIELD_NUMBER = 2; + private com.google.protobuf.Duration maintenanceAvailabilityWindow_; + /** + *
+     * The window of time that opportunistic maintenance can run. Example: A
+     * setting of 14 days implies that opportunistic maintenance can only be ran
+     * in the 2 weeks leading up to the scheduled maintenance date. Setting 28
+     * days allows opportunistic maintenance to run at any time in the scheduled
+     * maintenance window (all `PERIODIC` maintenance is set 28 days in
+     * advance).
+     * 
+ * + * optional .google.protobuf.Duration maintenance_availability_window = 2; + * @return Whether the maintenanceAvailabilityWindow field is set. + */ + @java.lang.Override + public boolean hasMaintenanceAvailabilityWindow() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * The window of time that opportunistic maintenance can run. Example: A
+     * setting of 14 days implies that opportunistic maintenance can only be ran
+     * in the 2 weeks leading up to the scheduled maintenance date. Setting 28
+     * days allows opportunistic maintenance to run at any time in the scheduled
+     * maintenance window (all `PERIODIC` maintenance is set 28 days in
+     * advance).
+     * 
+ * + * optional .google.protobuf.Duration maintenance_availability_window = 2; + * @return The maintenanceAvailabilityWindow. + */ + @java.lang.Override + public com.google.protobuf.Duration getMaintenanceAvailabilityWindow() { + return maintenanceAvailabilityWindow_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maintenanceAvailabilityWindow_; + } + /** + *
+     * The window of time that opportunistic maintenance can run. Example: A
+     * setting of 14 days implies that opportunistic maintenance can only be ran
+     * in the 2 weeks leading up to the scheduled maintenance date. Setting 28
+     * days allows opportunistic maintenance to run at any time in the scheduled
+     * maintenance window (all `PERIODIC` maintenance is set 28 days in
+     * advance).
+     * 
+ * + * optional .google.protobuf.Duration maintenance_availability_window = 2; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getMaintenanceAvailabilityWindowOrBuilder() { + return maintenanceAvailabilityWindow_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maintenanceAvailabilityWindow_; + } + + public static final int MIN_NODES_PER_POOL_FIELD_NUMBER = 3; + private long minNodesPerPool_ = 0L; + /** + *
+     * The minimum nodes required to be available in a pool. Blocks maintenance
+     * if it would cause the number of running nodes to dip below this value.
+     * 
+ * + * optional int64 min_nodes_per_pool = 3; + * @return Whether the minNodesPerPool field is set. + */ + @java.lang.Override + public boolean hasMinNodesPerPool() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * The minimum nodes required to be available in a pool. Blocks maintenance
+     * if it would cause the number of running nodes to dip below this value.
+     * 
+ * + * optional int64 min_nodes_per_pool = 3; + * @return The minNodesPerPool. + */ + @java.lang.Override + public long getMinNodesPerPool() { + return minNodesPerPool_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getNodeIdleTimeWindow()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getMaintenanceAvailabilityWindow()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt64(3, minNodesPerPool_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getNodeIdleTimeWindow()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMaintenanceAvailabilityWindow()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, minNodesPerPool_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.HostMaintenancePolicy.OpportunisticMaintenanceStrategy)) { + return super.equals(obj); + } + com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy other = (com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy) obj; + + if (hasNodeIdleTimeWindow() != other.hasNodeIdleTimeWindow()) return false; + if (hasNodeIdleTimeWindow()) { + if (!getNodeIdleTimeWindow() + .equals(other.getNodeIdleTimeWindow())) return false; + } + if (hasMaintenanceAvailabilityWindow() != other.hasMaintenanceAvailabilityWindow()) return false; + if (hasMaintenanceAvailabilityWindow()) { + if (!getMaintenanceAvailabilityWindow() + .equals(other.getMaintenanceAvailabilityWindow())) return false; + } + if (hasMinNodesPerPool() != other.hasMinNodesPerPool()) return false; + if (hasMinNodesPerPool()) { + if (getMinNodesPerPool() + != other.getMinNodesPerPool()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasNodeIdleTimeWindow()) { + hash = (37 * hash) + NODE_IDLE_TIME_WINDOW_FIELD_NUMBER; + hash = (53 * hash) + getNodeIdleTimeWindow().hashCode(); + } + if (hasMaintenanceAvailabilityWindow()) { + hash = (37 * hash) + MAINTENANCE_AVAILABILITY_WINDOW_FIELD_NUMBER; + hash = (53 * hash) + getMaintenanceAvailabilityWindow().hashCode(); + } + if (hasMinNodesPerPool()) { + hash = (37 * hash) + MIN_NODES_PER_POOL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMinNodesPerPool()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy parseFrom( + 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.HostMaintenancePolicy.OpportunisticMaintenanceStrategy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy parseFrom( + com.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.HostMaintenancePolicy.OpportunisticMaintenanceStrategy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy parseFrom( + java.io.InputStream 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.HostMaintenancePolicy.OpportunisticMaintenanceStrategy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy parseDelimitedFrom( + java.io.InputStream 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.HostMaintenancePolicy.OpportunisticMaintenanceStrategy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.HostMaintenancePolicy.OpportunisticMaintenanceStrategy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Strategy that will trigger maintenance on behalf of the customer.
+     * 
+ * + * Protobuf type {@code google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy) + com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_HostMaintenancePolicy_OpportunisticMaintenanceStrategy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_HostMaintenancePolicy_OpportunisticMaintenanceStrategy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy.class, com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy.Builder.class); + } + + // Construct using com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNodeIdleTimeWindowFieldBuilder(); + getMaintenanceAvailabilityWindowFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + nodeIdleTimeWindow_ = null; + if (nodeIdleTimeWindowBuilder_ != null) { + nodeIdleTimeWindowBuilder_.dispose(); + nodeIdleTimeWindowBuilder_ = null; + } + maintenanceAvailabilityWindow_ = null; + if (maintenanceAvailabilityWindowBuilder_ != null) { + maintenanceAvailabilityWindowBuilder_.dispose(); + maintenanceAvailabilityWindowBuilder_ = null; + } + minNodesPerPool_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_HostMaintenancePolicy_OpportunisticMaintenanceStrategy_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy getDefaultInstanceForType() { + return com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy build() { + com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy buildPartial() { + com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy result = new com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.nodeIdleTimeWindow_ = nodeIdleTimeWindowBuilder_ == null + ? nodeIdleTimeWindow_ + : nodeIdleTimeWindowBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maintenanceAvailabilityWindow_ = maintenanceAvailabilityWindowBuilder_ == null + ? maintenanceAvailabilityWindow_ + : maintenanceAvailabilityWindowBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.minNodesPerPool_ = minNodesPerPool_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @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.HostMaintenancePolicy.OpportunisticMaintenanceStrategy) { + return mergeFrom((com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy other) { + if (other == com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy.getDefaultInstance()) return this; + if (other.hasNodeIdleTimeWindow()) { + mergeNodeIdleTimeWindow(other.getNodeIdleTimeWindow()); + } + if (other.hasMaintenanceAvailabilityWindow()) { + mergeMaintenanceAvailabilityWindow(other.getMaintenanceAvailabilityWindow()); + } + if (other.hasMinNodesPerPool()) { + setMinNodesPerPool(other.getMinNodesPerPool()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getNodeIdleTimeWindowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getMaintenanceAvailabilityWindowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + minNodesPerPool_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.Duration nodeIdleTimeWindow_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> nodeIdleTimeWindowBuilder_; + /** + *
+       * The amount of time that a node can remain idle (no customer owned
+       * workloads running), before triggering maintenance.
+       * 
+ * + * optional .google.protobuf.Duration node_idle_time_window = 1; + * @return Whether the nodeIdleTimeWindow field is set. + */ + public boolean hasNodeIdleTimeWindow() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * The amount of time that a node can remain idle (no customer owned
+       * workloads running), before triggering maintenance.
+       * 
+ * + * optional .google.protobuf.Duration node_idle_time_window = 1; + * @return The nodeIdleTimeWindow. + */ + public com.google.protobuf.Duration getNodeIdleTimeWindow() { + if (nodeIdleTimeWindowBuilder_ == null) { + return nodeIdleTimeWindow_ == null ? com.google.protobuf.Duration.getDefaultInstance() : nodeIdleTimeWindow_; + } else { + return nodeIdleTimeWindowBuilder_.getMessage(); + } + } + /** + *
+       * The amount of time that a node can remain idle (no customer owned
+       * workloads running), before triggering maintenance.
+       * 
+ * + * optional .google.protobuf.Duration node_idle_time_window = 1; + */ + public Builder setNodeIdleTimeWindow(com.google.protobuf.Duration value) { + if (nodeIdleTimeWindowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodeIdleTimeWindow_ = value; + } else { + nodeIdleTimeWindowBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * The amount of time that a node can remain idle (no customer owned
+       * workloads running), before triggering maintenance.
+       * 
+ * + * optional .google.protobuf.Duration node_idle_time_window = 1; + */ + public Builder setNodeIdleTimeWindow( + com.google.protobuf.Duration.Builder builderForValue) { + if (nodeIdleTimeWindowBuilder_ == null) { + nodeIdleTimeWindow_ = builderForValue.build(); + } else { + nodeIdleTimeWindowBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * The amount of time that a node can remain idle (no customer owned
+       * workloads running), before triggering maintenance.
+       * 
+ * + * optional .google.protobuf.Duration node_idle_time_window = 1; + */ + public Builder mergeNodeIdleTimeWindow(com.google.protobuf.Duration value) { + if (nodeIdleTimeWindowBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + nodeIdleTimeWindow_ != null && + nodeIdleTimeWindow_ != com.google.protobuf.Duration.getDefaultInstance()) { + getNodeIdleTimeWindowBuilder().mergeFrom(value); + } else { + nodeIdleTimeWindow_ = value; + } + } else { + nodeIdleTimeWindowBuilder_.mergeFrom(value); + } + if (nodeIdleTimeWindow_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+       * The amount of time that a node can remain idle (no customer owned
+       * workloads running), before triggering maintenance.
+       * 
+ * + * optional .google.protobuf.Duration node_idle_time_window = 1; + */ + public Builder clearNodeIdleTimeWindow() { + bitField0_ = (bitField0_ & ~0x00000001); + nodeIdleTimeWindow_ = null; + if (nodeIdleTimeWindowBuilder_ != null) { + nodeIdleTimeWindowBuilder_.dispose(); + nodeIdleTimeWindowBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * The amount of time that a node can remain idle (no customer owned
+       * workloads running), before triggering maintenance.
+       * 
+ * + * optional .google.protobuf.Duration node_idle_time_window = 1; + */ + public com.google.protobuf.Duration.Builder getNodeIdleTimeWindowBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getNodeIdleTimeWindowFieldBuilder().getBuilder(); + } + /** + *
+       * The amount of time that a node can remain idle (no customer owned
+       * workloads running), before triggering maintenance.
+       * 
+ * + * optional .google.protobuf.Duration node_idle_time_window = 1; + */ + public com.google.protobuf.DurationOrBuilder getNodeIdleTimeWindowOrBuilder() { + if (nodeIdleTimeWindowBuilder_ != null) { + return nodeIdleTimeWindowBuilder_.getMessageOrBuilder(); + } else { + return nodeIdleTimeWindow_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : nodeIdleTimeWindow_; + } + } + /** + *
+       * The amount of time that a node can remain idle (no customer owned
+       * workloads running), before triggering maintenance.
+       * 
+ * + * optional .google.protobuf.Duration node_idle_time_window = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getNodeIdleTimeWindowFieldBuilder() { + if (nodeIdleTimeWindowBuilder_ == null) { + nodeIdleTimeWindowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getNodeIdleTimeWindow(), + getParentForChildren(), + isClean()); + nodeIdleTimeWindow_ = null; + } + return nodeIdleTimeWindowBuilder_; + } + + private com.google.protobuf.Duration maintenanceAvailabilityWindow_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maintenanceAvailabilityWindowBuilder_; + /** + *
+       * The window of time that opportunistic maintenance can run. Example: A
+       * setting of 14 days implies that opportunistic maintenance can only be ran
+       * in the 2 weeks leading up to the scheduled maintenance date. Setting 28
+       * days allows opportunistic maintenance to run at any time in the scheduled
+       * maintenance window (all `PERIODIC` maintenance is set 28 days in
+       * advance).
+       * 
+ * + * optional .google.protobuf.Duration maintenance_availability_window = 2; + * @return Whether the maintenanceAvailabilityWindow field is set. + */ + public boolean hasMaintenanceAvailabilityWindow() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+       * The window of time that opportunistic maintenance can run. Example: A
+       * setting of 14 days implies that opportunistic maintenance can only be ran
+       * in the 2 weeks leading up to the scheduled maintenance date. Setting 28
+       * days allows opportunistic maintenance to run at any time in the scheduled
+       * maintenance window (all `PERIODIC` maintenance is set 28 days in
+       * advance).
+       * 
+ * + * optional .google.protobuf.Duration maintenance_availability_window = 2; + * @return The maintenanceAvailabilityWindow. + */ + public com.google.protobuf.Duration getMaintenanceAvailabilityWindow() { + if (maintenanceAvailabilityWindowBuilder_ == null) { + return maintenanceAvailabilityWindow_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maintenanceAvailabilityWindow_; + } else { + return maintenanceAvailabilityWindowBuilder_.getMessage(); + } + } + /** + *
+       * The window of time that opportunistic maintenance can run. Example: A
+       * setting of 14 days implies that opportunistic maintenance can only be ran
+       * in the 2 weeks leading up to the scheduled maintenance date. Setting 28
+       * days allows opportunistic maintenance to run at any time in the scheduled
+       * maintenance window (all `PERIODIC` maintenance is set 28 days in
+       * advance).
+       * 
+ * + * optional .google.protobuf.Duration maintenance_availability_window = 2; + */ + public Builder setMaintenanceAvailabilityWindow(com.google.protobuf.Duration value) { + if (maintenanceAvailabilityWindowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maintenanceAvailabilityWindow_ = value; + } else { + maintenanceAvailabilityWindowBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * The window of time that opportunistic maintenance can run. Example: A
+       * setting of 14 days implies that opportunistic maintenance can only be ran
+       * in the 2 weeks leading up to the scheduled maintenance date. Setting 28
+       * days allows opportunistic maintenance to run at any time in the scheduled
+       * maintenance window (all `PERIODIC` maintenance is set 28 days in
+       * advance).
+       * 
+ * + * optional .google.protobuf.Duration maintenance_availability_window = 2; + */ + public Builder setMaintenanceAvailabilityWindow( + com.google.protobuf.Duration.Builder builderForValue) { + if (maintenanceAvailabilityWindowBuilder_ == null) { + maintenanceAvailabilityWindow_ = builderForValue.build(); + } else { + maintenanceAvailabilityWindowBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * The window of time that opportunistic maintenance can run. Example: A
+       * setting of 14 days implies that opportunistic maintenance can only be ran
+       * in the 2 weeks leading up to the scheduled maintenance date. Setting 28
+       * days allows opportunistic maintenance to run at any time in the scheduled
+       * maintenance window (all `PERIODIC` maintenance is set 28 days in
+       * advance).
+       * 
+ * + * optional .google.protobuf.Duration maintenance_availability_window = 2; + */ + public Builder mergeMaintenanceAvailabilityWindow(com.google.protobuf.Duration value) { + if (maintenanceAvailabilityWindowBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + maintenanceAvailabilityWindow_ != null && + maintenanceAvailabilityWindow_ != com.google.protobuf.Duration.getDefaultInstance()) { + getMaintenanceAvailabilityWindowBuilder().mergeFrom(value); + } else { + maintenanceAvailabilityWindow_ = value; + } + } else { + maintenanceAvailabilityWindowBuilder_.mergeFrom(value); + } + if (maintenanceAvailabilityWindow_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + *
+       * The window of time that opportunistic maintenance can run. Example: A
+       * setting of 14 days implies that opportunistic maintenance can only be ran
+       * in the 2 weeks leading up to the scheduled maintenance date. Setting 28
+       * days allows opportunistic maintenance to run at any time in the scheduled
+       * maintenance window (all `PERIODIC` maintenance is set 28 days in
+       * advance).
+       * 
+ * + * optional .google.protobuf.Duration maintenance_availability_window = 2; + */ + public Builder clearMaintenanceAvailabilityWindow() { + bitField0_ = (bitField0_ & ~0x00000002); + maintenanceAvailabilityWindow_ = null; + if (maintenanceAvailabilityWindowBuilder_ != null) { + maintenanceAvailabilityWindowBuilder_.dispose(); + maintenanceAvailabilityWindowBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * The window of time that opportunistic maintenance can run. Example: A
+       * setting of 14 days implies that opportunistic maintenance can only be ran
+       * in the 2 weeks leading up to the scheduled maintenance date. Setting 28
+       * days allows opportunistic maintenance to run at any time in the scheduled
+       * maintenance window (all `PERIODIC` maintenance is set 28 days in
+       * advance).
+       * 
+ * + * optional .google.protobuf.Duration maintenance_availability_window = 2; + */ + public com.google.protobuf.Duration.Builder getMaintenanceAvailabilityWindowBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getMaintenanceAvailabilityWindowFieldBuilder().getBuilder(); + } + /** + *
+       * The window of time that opportunistic maintenance can run. Example: A
+       * setting of 14 days implies that opportunistic maintenance can only be ran
+       * in the 2 weeks leading up to the scheduled maintenance date. Setting 28
+       * days allows opportunistic maintenance to run at any time in the scheduled
+       * maintenance window (all `PERIODIC` maintenance is set 28 days in
+       * advance).
+       * 
+ * + * optional .google.protobuf.Duration maintenance_availability_window = 2; + */ + public com.google.protobuf.DurationOrBuilder getMaintenanceAvailabilityWindowOrBuilder() { + if (maintenanceAvailabilityWindowBuilder_ != null) { + return maintenanceAvailabilityWindowBuilder_.getMessageOrBuilder(); + } else { + return maintenanceAvailabilityWindow_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : maintenanceAvailabilityWindow_; + } + } + /** + *
+       * The window of time that opportunistic maintenance can run. Example: A
+       * setting of 14 days implies that opportunistic maintenance can only be ran
+       * in the 2 weeks leading up to the scheduled maintenance date. Setting 28
+       * days allows opportunistic maintenance to run at any time in the scheduled
+       * maintenance window (all `PERIODIC` maintenance is set 28 days in
+       * advance).
+       * 
+ * + * optional .google.protobuf.Duration maintenance_availability_window = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getMaintenanceAvailabilityWindowFieldBuilder() { + if (maintenanceAvailabilityWindowBuilder_ == null) { + maintenanceAvailabilityWindowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getMaintenanceAvailabilityWindow(), + getParentForChildren(), + isClean()); + maintenanceAvailabilityWindow_ = null; + } + return maintenanceAvailabilityWindowBuilder_; + } + + private long minNodesPerPool_ ; + /** + *
+       * The minimum nodes required to be available in a pool. Blocks maintenance
+       * if it would cause the number of running nodes to dip below this value.
+       * 
+ * + * optional int64 min_nodes_per_pool = 3; + * @return Whether the minNodesPerPool field is set. + */ + @java.lang.Override + public boolean hasMinNodesPerPool() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+       * The minimum nodes required to be available in a pool. Blocks maintenance
+       * if it would cause the number of running nodes to dip below this value.
+       * 
+ * + * optional int64 min_nodes_per_pool = 3; + * @return The minNodesPerPool. + */ + @java.lang.Override + public long getMinNodesPerPool() { + return minNodesPerPool_; + } + /** + *
+       * The minimum nodes required to be available in a pool. Blocks maintenance
+       * if it would cause the number of running nodes to dip below this value.
+       * 
+ * + * optional int64 min_nodes_per_pool = 3; + * @param value The minNodesPerPool to set. + * @return This builder for chaining. + */ + public Builder setMinNodesPerPool(long value) { + + minNodesPerPool_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * The minimum nodes required to be available in a pool. Blocks maintenance
+       * if it would cause the number of running nodes to dip below this value.
+       * 
+ * + * optional int64 min_nodes_per_pool = 3; + * @return This builder for chaining. + */ + public Builder clearMinNodesPerPool() { + bitField0_ = (bitField0_ & ~0x00000004); + minNodesPerPool_ = 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.HostMaintenancePolicy.OpportunisticMaintenanceStrategy) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy) + private static final com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy(); + } + + public static com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OpportunisticMaintenanceStrategy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.HostMaintenancePolicy.OpportunisticMaintenanceStrategy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + private int maintenanceStrategyCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object maintenanceStrategy_; + public enum MaintenanceStrategyCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + OPPORTUNISTIC_MAINTENANCE_STRATEGY(2), + MAINTENANCESTRATEGY_NOT_SET(0); + private final int value; + private MaintenanceStrategyCase(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 MaintenanceStrategyCase valueOf(int value) { + return forNumber(value); + } + + public static MaintenanceStrategyCase forNumber(int value) { + switch (value) { + case 2: return OPPORTUNISTIC_MAINTENANCE_STRATEGY; + case 0: return MAINTENANCESTRATEGY_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public MaintenanceStrategyCase + getMaintenanceStrategyCase() { + return MaintenanceStrategyCase.forNumber( + maintenanceStrategyCase_); + } + + public static final int MAINTENANCE_INTERVAL_FIELD_NUMBER = 1; + private int maintenanceInterval_ = 0; + /** + *
+   * Specifies the frequency of planned maintenance events.
+   * 
+ * + * optional .google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval maintenance_interval = 1; + * @return Whether the maintenanceInterval field is set. + */ + @java.lang.Override public boolean hasMaintenanceInterval() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Specifies the frequency of planned maintenance events.
+   * 
+ * + * optional .google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval maintenance_interval = 1; + * @return The enum numeric value on the wire for maintenanceInterval. + */ + @java.lang.Override public int getMaintenanceIntervalValue() { + return maintenanceInterval_; + } + /** + *
+   * Specifies the frequency of planned maintenance events.
+   * 
+ * + * optional .google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval maintenance_interval = 1; + * @return The maintenanceInterval. + */ + @java.lang.Override public com.google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval getMaintenanceInterval() { + com.google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval result = com.google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval.forNumber(maintenanceInterval_); + return result == null ? com.google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval.UNRECOGNIZED : result; + } + + public static final int OPPORTUNISTIC_MAINTENANCE_STRATEGY_FIELD_NUMBER = 2; + /** + *
+   * Strategy that will trigger maintenance on behalf of the customer.
+   * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2; + * @return Whether the opportunisticMaintenanceStrategy field is set. + */ + @java.lang.Override + public boolean hasOpportunisticMaintenanceStrategy() { + return maintenanceStrategyCase_ == 2; + } + /** + *
+   * Strategy that will trigger maintenance on behalf of the customer.
+   * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2; + * @return The opportunisticMaintenanceStrategy. + */ + @java.lang.Override + public com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy getOpportunisticMaintenanceStrategy() { + if (maintenanceStrategyCase_ == 2) { + return (com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy) maintenanceStrategy_; + } + return com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy.getDefaultInstance(); + } + /** + *
+   * Strategy that will trigger maintenance on behalf of the customer.
+   * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2; + */ + @java.lang.Override + public com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategyOrBuilder getOpportunisticMaintenanceStrategyOrBuilder() { + if (maintenanceStrategyCase_ == 2) { + return (com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy) maintenanceStrategy_; + } + return com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, maintenanceInterval_); + } + if (maintenanceStrategyCase_ == 2) { + output.writeMessage(2, (com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy) maintenanceStrategy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, maintenanceInterval_); + } + if (maintenanceStrategyCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy) maintenanceStrategy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.HostMaintenancePolicy)) { + return super.equals(obj); + } + com.google.container.v1beta1.HostMaintenancePolicy other = (com.google.container.v1beta1.HostMaintenancePolicy) obj; + + if (hasMaintenanceInterval() != other.hasMaintenanceInterval()) return false; + if (hasMaintenanceInterval()) { + if (maintenanceInterval_ != other.maintenanceInterval_) return false; + } + if (!getMaintenanceStrategyCase().equals(other.getMaintenanceStrategyCase())) return false; + switch (maintenanceStrategyCase_) { + case 2: + if (!getOpportunisticMaintenanceStrategy() + .equals(other.getOpportunisticMaintenanceStrategy())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMaintenanceInterval()) { + hash = (37 * hash) + MAINTENANCE_INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + maintenanceInterval_; + } + switch (maintenanceStrategyCase_) { + case 2: + hash = (37 * hash) + OPPORTUNISTIC_MAINTENANCE_STRATEGY_FIELD_NUMBER; + hash = (53 * hash) + getOpportunisticMaintenanceStrategy().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.HostMaintenancePolicy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.HostMaintenancePolicy parseFrom( + 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.HostMaintenancePolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.HostMaintenancePolicy parseFrom( + com.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.HostMaintenancePolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.HostMaintenancePolicy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.HostMaintenancePolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.HostMaintenancePolicy parseFrom( + java.io.InputStream 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.HostMaintenancePolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.HostMaintenancePolicy parseDelimitedFrom( + java.io.InputStream 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.HostMaintenancePolicy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.HostMaintenancePolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.HostMaintenancePolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * HostMaintenancePolicy contains the maintenance policy for the hosts on which
+   * the GKE VMs run on.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.HostMaintenancePolicy} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.HostMaintenancePolicy) + com.google.container.v1beta1.HostMaintenancePolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_HostMaintenancePolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_HostMaintenancePolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.HostMaintenancePolicy.class, com.google.container.v1beta1.HostMaintenancePolicy.Builder.class); + } + + // Construct using com.google.container.v1beta1.HostMaintenancePolicy.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + maintenanceInterval_ = 0; + if (opportunisticMaintenanceStrategyBuilder_ != null) { + opportunisticMaintenanceStrategyBuilder_.clear(); + } + maintenanceStrategyCase_ = 0; + maintenanceStrategy_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_HostMaintenancePolicy_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.HostMaintenancePolicy getDefaultInstanceForType() { + return com.google.container.v1beta1.HostMaintenancePolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.HostMaintenancePolicy build() { + com.google.container.v1beta1.HostMaintenancePolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.HostMaintenancePolicy buildPartial() { + com.google.container.v1beta1.HostMaintenancePolicy result = new com.google.container.v1beta1.HostMaintenancePolicy(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.HostMaintenancePolicy result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.maintenanceInterval_ = maintenanceInterval_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.container.v1beta1.HostMaintenancePolicy result) { + result.maintenanceStrategyCase_ = maintenanceStrategyCase_; + result.maintenanceStrategy_ = this.maintenanceStrategy_; + if (maintenanceStrategyCase_ == 2 && + opportunisticMaintenanceStrategyBuilder_ != null) { + result.maintenanceStrategy_ = opportunisticMaintenanceStrategyBuilder_.build(); + } + } + + @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.HostMaintenancePolicy) { + return mergeFrom((com.google.container.v1beta1.HostMaintenancePolicy)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.HostMaintenancePolicy other) { + if (other == com.google.container.v1beta1.HostMaintenancePolicy.getDefaultInstance()) return this; + if (other.hasMaintenanceInterval()) { + setMaintenanceInterval(other.getMaintenanceInterval()); + } + switch (other.getMaintenanceStrategyCase()) { + case OPPORTUNISTIC_MAINTENANCE_STRATEGY: { + mergeOpportunisticMaintenanceStrategy(other.getOpportunisticMaintenanceStrategy()); + break; + } + case MAINTENANCESTRATEGY_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + maintenanceInterval_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getOpportunisticMaintenanceStrategyFieldBuilder().getBuilder(), + extensionRegistry); + maintenanceStrategyCase_ = 2; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int maintenanceStrategyCase_ = 0; + private java.lang.Object maintenanceStrategy_; + public MaintenanceStrategyCase + getMaintenanceStrategyCase() { + return MaintenanceStrategyCase.forNumber( + maintenanceStrategyCase_); + } + + public Builder clearMaintenanceStrategy() { + maintenanceStrategyCase_ = 0; + maintenanceStrategy_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private int maintenanceInterval_ = 0; + /** + *
+     * Specifies the frequency of planned maintenance events.
+     * 
+ * + * optional .google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval maintenance_interval = 1; + * @return Whether the maintenanceInterval field is set. + */ + @java.lang.Override public boolean hasMaintenanceInterval() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Specifies the frequency of planned maintenance events.
+     * 
+ * + * optional .google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval maintenance_interval = 1; + * @return The enum numeric value on the wire for maintenanceInterval. + */ + @java.lang.Override public int getMaintenanceIntervalValue() { + return maintenanceInterval_; + } + /** + *
+     * Specifies the frequency of planned maintenance events.
+     * 
+ * + * optional .google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval maintenance_interval = 1; + * @param value The enum numeric value on the wire for maintenanceInterval to set. + * @return This builder for chaining. + */ + public Builder setMaintenanceIntervalValue(int value) { + maintenanceInterval_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Specifies the frequency of planned maintenance events.
+     * 
+ * + * optional .google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval maintenance_interval = 1; + * @return The maintenanceInterval. + */ + @java.lang.Override + public com.google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval getMaintenanceInterval() { + com.google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval result = com.google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval.forNumber(maintenanceInterval_); + return result == null ? com.google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval.UNRECOGNIZED : result; + } + /** + *
+     * Specifies the frequency of planned maintenance events.
+     * 
+ * + * optional .google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval maintenance_interval = 1; + * @param value The maintenanceInterval to set. + * @return This builder for chaining. + */ + public Builder setMaintenanceInterval(com.google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + maintenanceInterval_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Specifies the frequency of planned maintenance events.
+     * 
+ * + * optional .google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval maintenance_interval = 1; + * @return This builder for chaining. + */ + public Builder clearMaintenanceInterval() { + bitField0_ = (bitField0_ & ~0x00000001); + maintenanceInterval_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy, com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy.Builder, com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategyOrBuilder> opportunisticMaintenanceStrategyBuilder_; + /** + *
+     * Strategy that will trigger maintenance on behalf of the customer.
+     * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2; + * @return Whether the opportunisticMaintenanceStrategy field is set. + */ + @java.lang.Override + public boolean hasOpportunisticMaintenanceStrategy() { + return maintenanceStrategyCase_ == 2; + } + /** + *
+     * Strategy that will trigger maintenance on behalf of the customer.
+     * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2; + * @return The opportunisticMaintenanceStrategy. + */ + @java.lang.Override + public com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy getOpportunisticMaintenanceStrategy() { + if (opportunisticMaintenanceStrategyBuilder_ == null) { + if (maintenanceStrategyCase_ == 2) { + return (com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy) maintenanceStrategy_; + } + return com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy.getDefaultInstance(); + } else { + if (maintenanceStrategyCase_ == 2) { + return opportunisticMaintenanceStrategyBuilder_.getMessage(); + } + return com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy.getDefaultInstance(); + } + } + /** + *
+     * Strategy that will trigger maintenance on behalf of the customer.
+     * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2; + */ + public Builder setOpportunisticMaintenanceStrategy(com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy value) { + if (opportunisticMaintenanceStrategyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maintenanceStrategy_ = value; + onChanged(); + } else { + opportunisticMaintenanceStrategyBuilder_.setMessage(value); + } + maintenanceStrategyCase_ = 2; + return this; + } + /** + *
+     * Strategy that will trigger maintenance on behalf of the customer.
+     * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2; + */ + public Builder setOpportunisticMaintenanceStrategy( + com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy.Builder builderForValue) { + if (opportunisticMaintenanceStrategyBuilder_ == null) { + maintenanceStrategy_ = builderForValue.build(); + onChanged(); + } else { + opportunisticMaintenanceStrategyBuilder_.setMessage(builderForValue.build()); + } + maintenanceStrategyCase_ = 2; + return this; + } + /** + *
+     * Strategy that will trigger maintenance on behalf of the customer.
+     * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2; + */ + public Builder mergeOpportunisticMaintenanceStrategy(com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy value) { + if (opportunisticMaintenanceStrategyBuilder_ == null) { + if (maintenanceStrategyCase_ == 2 && + maintenanceStrategy_ != com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy.getDefaultInstance()) { + maintenanceStrategy_ = com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy.newBuilder((com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy) maintenanceStrategy_) + .mergeFrom(value).buildPartial(); + } else { + maintenanceStrategy_ = value; + } + onChanged(); + } else { + if (maintenanceStrategyCase_ == 2) { + opportunisticMaintenanceStrategyBuilder_.mergeFrom(value); + } else { + opportunisticMaintenanceStrategyBuilder_.setMessage(value); + } + } + maintenanceStrategyCase_ = 2; + return this; + } + /** + *
+     * Strategy that will trigger maintenance on behalf of the customer.
+     * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2; + */ + public Builder clearOpportunisticMaintenanceStrategy() { + if (opportunisticMaintenanceStrategyBuilder_ == null) { + if (maintenanceStrategyCase_ == 2) { + maintenanceStrategyCase_ = 0; + maintenanceStrategy_ = null; + onChanged(); + } + } else { + if (maintenanceStrategyCase_ == 2) { + maintenanceStrategyCase_ = 0; + maintenanceStrategy_ = null; + } + opportunisticMaintenanceStrategyBuilder_.clear(); + } + return this; + } + /** + *
+     * Strategy that will trigger maintenance on behalf of the customer.
+     * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2; + */ + public com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy.Builder getOpportunisticMaintenanceStrategyBuilder() { + return getOpportunisticMaintenanceStrategyFieldBuilder().getBuilder(); + } + /** + *
+     * Strategy that will trigger maintenance on behalf of the customer.
+     * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2; + */ + @java.lang.Override + public com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategyOrBuilder getOpportunisticMaintenanceStrategyOrBuilder() { + if ((maintenanceStrategyCase_ == 2) && (opportunisticMaintenanceStrategyBuilder_ != null)) { + return opportunisticMaintenanceStrategyBuilder_.getMessageOrBuilder(); + } else { + if (maintenanceStrategyCase_ == 2) { + return (com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy) maintenanceStrategy_; + } + return com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy.getDefaultInstance(); + } + } + /** + *
+     * Strategy that will trigger maintenance on behalf of the customer.
+     * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy, com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy.Builder, com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategyOrBuilder> + getOpportunisticMaintenanceStrategyFieldBuilder() { + if (opportunisticMaintenanceStrategyBuilder_ == null) { + if (!(maintenanceStrategyCase_ == 2)) { + maintenanceStrategy_ = com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy.getDefaultInstance(); + } + opportunisticMaintenanceStrategyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy, com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy.Builder, com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategyOrBuilder>( + (com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy) maintenanceStrategy_, + getParentForChildren(), + isClean()); + maintenanceStrategy_ = null; + } + maintenanceStrategyCase_ = 2; + onChanged(); + return opportunisticMaintenanceStrategyBuilder_; + } + @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.HostMaintenancePolicy) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.HostMaintenancePolicy) + private static final com.google.container.v1beta1.HostMaintenancePolicy DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.HostMaintenancePolicy(); + } + + public static com.google.container.v1beta1.HostMaintenancePolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HostMaintenancePolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.HostMaintenancePolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HostMaintenancePolicyOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HostMaintenancePolicyOrBuilder.java new file mode 100644 index 000000000000..ba5ffd4cbca1 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HostMaintenancePolicyOrBuilder.java @@ -0,0 +1,67 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface HostMaintenancePolicyOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.HostMaintenancePolicy) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Specifies the frequency of planned maintenance events.
+   * 
+ * + * optional .google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval maintenance_interval = 1; + * @return Whether the maintenanceInterval field is set. + */ + boolean hasMaintenanceInterval(); + /** + *
+   * Specifies the frequency of planned maintenance events.
+   * 
+ * + * optional .google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval maintenance_interval = 1; + * @return The enum numeric value on the wire for maintenanceInterval. + */ + int getMaintenanceIntervalValue(); + /** + *
+   * Specifies the frequency of planned maintenance events.
+   * 
+ * + * optional .google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval maintenance_interval = 1; + * @return The maintenanceInterval. + */ + com.google.container.v1beta1.HostMaintenancePolicy.MaintenanceInterval getMaintenanceInterval(); + + /** + *
+   * Strategy that will trigger maintenance on behalf of the customer.
+   * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2; + * @return Whether the opportunisticMaintenanceStrategy field is set. + */ + boolean hasOpportunisticMaintenanceStrategy(); + /** + *
+   * Strategy that will trigger maintenance on behalf of the customer.
+   * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2; + * @return The opportunisticMaintenanceStrategy. + */ + com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy getOpportunisticMaintenanceStrategy(); + /** + *
+   * Strategy that will trigger maintenance on behalf of the customer.
+   * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategy opportunistic_maintenance_strategy = 2; + */ + com.google.container.v1beta1.HostMaintenancePolicy.OpportunisticMaintenanceStrategyOrBuilder getOpportunisticMaintenanceStrategyOrBuilder(); + + com.google.container.v1beta1.HostMaintenancePolicy.MaintenanceStrategyCase getMaintenanceStrategyCase(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HttpLoadBalancing.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HttpLoadBalancing.java new file mode 100644 index 000000000000..3d4f93bb292c --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HttpLoadBalancing.java @@ -0,0 +1,507 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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_ = false; + /** + *
+   * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.HttpLoadBalancing result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.disabled_ = disabled_; + } + } + + @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.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + disabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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() { + bitField0_ = (bitField0_ & ~0x00000001); + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HttpLoadBalancingOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HttpLoadBalancingOrBuilder.java new file mode 100644 index 000000000000..b43b3d59a621 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/HttpLoadBalancingOrBuilder.java @@ -0,0 +1,22 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ILBSubsettingConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ILBSubsettingConfig.java new file mode 100644 index 000000000000..5aa0cb7594b9 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ILBSubsettingConfig.java @@ -0,0 +1,499 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * ILBSubsettingConfig contains the desired config of L4 Internal LoadBalancer
+ * subsetting on this cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ILBSubsettingConfig} + */ +public final class ILBSubsettingConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ILBSubsettingConfig) + ILBSubsettingConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use ILBSubsettingConfig.newBuilder() to construct. + private ILBSubsettingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ILBSubsettingConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ILBSubsettingConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ILBSubsettingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ILBSubsettingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ILBSubsettingConfig.class, com.google.container.v1beta1.ILBSubsettingConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * Enables l4 ILB subsetting for this cluster
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.ILBSubsettingConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.ILBSubsettingConfig other = (com.google.container.v1beta1.ILBSubsettingConfig) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ILBSubsettingConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ILBSubsettingConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ILBSubsettingConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ILBSubsettingConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ILBSubsettingConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ILBSubsettingConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ILBSubsettingConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ILBSubsettingConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ILBSubsettingConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ILBSubsettingConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.ILBSubsettingConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ILBSubsettingConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.ILBSubsettingConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ILBSubsettingConfig contains the desired config of L4 Internal LoadBalancer
+   * subsetting on this cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ILBSubsettingConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ILBSubsettingConfig) + com.google.container.v1beta1.ILBSubsettingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ILBSubsettingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ILBSubsettingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ILBSubsettingConfig.class, com.google.container.v1beta1.ILBSubsettingConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.ILBSubsettingConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 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_ILBSubsettingConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ILBSubsettingConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.ILBSubsettingConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ILBSubsettingConfig build() { + com.google.container.v1beta1.ILBSubsettingConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ILBSubsettingConfig buildPartial() { + com.google.container.v1beta1.ILBSubsettingConfig result = new com.google.container.v1beta1.ILBSubsettingConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.ILBSubsettingConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @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.ILBSubsettingConfig) { + return mergeFrom((com.google.container.v1beta1.ILBSubsettingConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ILBSubsettingConfig other) { + if (other == com.google.container.v1beta1.ILBSubsettingConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enabled_ ; + /** + *
+     * Enables l4 ILB subsetting for this cluster
+     * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Enables l4 ILB subsetting for this cluster
+     * 
+ * + * bool enabled = 1; + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Enables l4 ILB subsetting for this cluster
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + 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.ILBSubsettingConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ILBSubsettingConfig) + private static final com.google.container.v1beta1.ILBSubsettingConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ILBSubsettingConfig(); + } + + public static com.google.container.v1beta1.ILBSubsettingConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ILBSubsettingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.ILBSubsettingConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ILBSubsettingConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ILBSubsettingConfigOrBuilder.java new file mode 100644 index 000000000000..eb56dac1af36 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ILBSubsettingConfigOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface ILBSubsettingConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ILBSubsettingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Enables l4 ILB subsetting for this cluster
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IPAllocationPolicy.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IPAllocationPolicy.java new file mode 100644 index 000000000000..3bee45267e75 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IPAllocationPolicy.java @@ -0,0 +1,4597 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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_ = ""; + stackType_ = 0; + ipv6AccessType_ = 0; + subnetIpv6CidrBlock_ = ""; + servicesIpv6CidrBlock_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new IPAllocationPolicy(); + } + + 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); + } + + /** + *
+   * Possible values for IP stack type
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.IPAllocationPolicy.StackType} + */ + public enum StackType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * By default, the clusters will be IPV4 only
+     * 
+ * + * STACK_TYPE_UNSPECIFIED = 0; + */ + STACK_TYPE_UNSPECIFIED(0), + /** + *
+     * The value used if the cluster is a IPV4 only
+     * 
+ * + * IPV4 = 1; + */ + IPV4(1), + /** + *
+     * The value used if the cluster is a dual stack cluster
+     * 
+ * + * IPV4_IPV6 = 2; + */ + IPV4_IPV6(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * By default, the clusters will be IPV4 only
+     * 
+ * + * STACK_TYPE_UNSPECIFIED = 0; + */ + public static final int STACK_TYPE_UNSPECIFIED_VALUE = 0; + /** + *
+     * The value used if the cluster is a IPV4 only
+     * 
+ * + * IPV4 = 1; + */ + public static final int IPV4_VALUE = 1; + /** + *
+     * The value used if the cluster is a dual stack cluster
+     * 
+ * + * IPV4_IPV6 = 2; + */ + public static final int IPV4_IPV6_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 StackType 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 StackType forNumber(int value) { + switch (value) { + case 0: return STACK_TYPE_UNSPECIFIED; + case 1: return IPV4; + case 2: return IPV4_IPV6; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + StackType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public StackType findValueByNumber(int number) { + return StackType.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.IPAllocationPolicy.getDescriptor().getEnumTypes().get(0); + } + + private static final StackType[] VALUES = values(); + + public static StackType 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 StackType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.IPAllocationPolicy.StackType) + } + + /** + *
+   * IPv6 access type
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.IPAllocationPolicy.IPv6AccessType} + */ + public enum IPv6AccessType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Default value, will be defaulted as type external.
+     * 
+ * + * IPV6_ACCESS_TYPE_UNSPECIFIED = 0; + */ + IPV6_ACCESS_TYPE_UNSPECIFIED(0), + /** + *
+     * Access type internal (all v6 addresses are internal IPs)
+     * 
+ * + * INTERNAL = 1; + */ + INTERNAL(1), + /** + *
+     * Access type external (all v6 addresses are external IPs)
+     * 
+ * + * EXTERNAL = 2; + */ + EXTERNAL(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Default value, will be defaulted as type external.
+     * 
+ * + * IPV6_ACCESS_TYPE_UNSPECIFIED = 0; + */ + public static final int IPV6_ACCESS_TYPE_UNSPECIFIED_VALUE = 0; + /** + *
+     * Access type internal (all v6 addresses are internal IPs)
+     * 
+ * + * INTERNAL = 1; + */ + public static final int INTERNAL_VALUE = 1; + /** + *
+     * Access type external (all v6 addresses are external IPs)
+     * 
+ * + * EXTERNAL = 2; + */ + public static final int EXTERNAL_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 IPv6AccessType 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 IPv6AccessType forNumber(int value) { + switch (value) { + case 0: return IPV6_ACCESS_TYPE_UNSPECIFIED; + case 1: return INTERNAL; + case 2: return EXTERNAL; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + IPv6AccessType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public IPv6AccessType findValueByNumber(int number) { + return IPv6AccessType.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.IPAllocationPolicy.getDescriptor().getEnumTypes().get(1); + } + + private static final IPv6AccessType[] VALUES = values(); + + public static IPv6AccessType 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 IPv6AccessType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.IPAllocationPolicy.IPv6AccessType) + } + + private int bitField0_; + public static final int USE_IP_ALIASES_FIELD_NUMBER = 1; + private boolean useIpAliases_ = false; + /** + *
+   * 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_ = false; + /** + *
+   * 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + private volatile java.lang.Object clusterIpv4Cidr_ = ""; + /** + *
+   * This field is deprecated, use cluster_ipv4_cidr_block.
+   * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1640 + * @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]; + * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1640 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object nodeIpv4Cidr_ = ""; + /** + *
+   * This field is deprecated, use node_ipv4_cidr_block.
+   * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1643 + * @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]; + * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1643 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object servicesIpv4Cidr_ = ""; + /** + *
+   * This field is deprecated, use services_ipv4_cidr_block.
+   * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1646 + * @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]; + * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1646 + * @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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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_ = false; + /** + *
+   * 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; + @SuppressWarnings("serial") + 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_ = false; + /** + *
+   * 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_; + } + + public static final int STACK_TYPE_FIELD_NUMBER = 16; + private int stackType_ = 0; + /** + *
+   * IP stack type
+   * 
+ * + * .google.container.v1beta1.IPAllocationPolicy.StackType stack_type = 16; + * @return The enum numeric value on the wire for stackType. + */ + @java.lang.Override public int getStackTypeValue() { + return stackType_; + } + /** + *
+   * IP stack type
+   * 
+ * + * .google.container.v1beta1.IPAllocationPolicy.StackType stack_type = 16; + * @return The stackType. + */ + @java.lang.Override public com.google.container.v1beta1.IPAllocationPolicy.StackType getStackType() { + com.google.container.v1beta1.IPAllocationPolicy.StackType result = com.google.container.v1beta1.IPAllocationPolicy.StackType.forNumber(stackType_); + return result == null ? com.google.container.v1beta1.IPAllocationPolicy.StackType.UNRECOGNIZED : result; + } + + public static final int IPV6_ACCESS_TYPE_FIELD_NUMBER = 17; + private int ipv6AccessType_ = 0; + /** + *
+   * The ipv6 access type (internal or external) when create_subnetwork is true
+   * 
+ * + * .google.container.v1beta1.IPAllocationPolicy.IPv6AccessType ipv6_access_type = 17; + * @return The enum numeric value on the wire for ipv6AccessType. + */ + @java.lang.Override public int getIpv6AccessTypeValue() { + return ipv6AccessType_; + } + /** + *
+   * The ipv6 access type (internal or external) when create_subnetwork is true
+   * 
+ * + * .google.container.v1beta1.IPAllocationPolicy.IPv6AccessType ipv6_access_type = 17; + * @return The ipv6AccessType. + */ + @java.lang.Override public com.google.container.v1beta1.IPAllocationPolicy.IPv6AccessType getIpv6AccessType() { + com.google.container.v1beta1.IPAllocationPolicy.IPv6AccessType result = com.google.container.v1beta1.IPAllocationPolicy.IPv6AccessType.forNumber(ipv6AccessType_); + return result == null ? com.google.container.v1beta1.IPAllocationPolicy.IPv6AccessType.UNRECOGNIZED : result; + } + + public static final int POD_CIDR_OVERPROVISION_CONFIG_FIELD_NUMBER = 21; + private com.google.container.v1beta1.PodCIDROverprovisionConfig podCidrOverprovisionConfig_; + /** + *
+   * [PRIVATE FIELD]
+   * Pod CIDR size overprovisioning config for the cluster.
+   *
+   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+   * of max_pods_per_node is doubled and then rounded off to next power of 2 to
+   * get the size of pod CIDR block per node.
+   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+   *
+   * This config can disable the doubling of IPs (we still round off to next
+   * power of 2)
+   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+   * overprovisioning is disabled.
+   * 
+ * + * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; + * @return Whether the podCidrOverprovisionConfig field is set. + */ + @java.lang.Override + public boolean hasPodCidrOverprovisionConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * [PRIVATE FIELD]
+   * Pod CIDR size overprovisioning config for the cluster.
+   *
+   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+   * of max_pods_per_node is doubled and then rounded off to next power of 2 to
+   * get the size of pod CIDR block per node.
+   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+   *
+   * This config can disable the doubling of IPs (we still round off to next
+   * power of 2)
+   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+   * overprovisioning is disabled.
+   * 
+ * + * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; + * @return The podCidrOverprovisionConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.PodCIDROverprovisionConfig getPodCidrOverprovisionConfig() { + return podCidrOverprovisionConfig_ == null ? com.google.container.v1beta1.PodCIDROverprovisionConfig.getDefaultInstance() : podCidrOverprovisionConfig_; + } + /** + *
+   * [PRIVATE FIELD]
+   * Pod CIDR size overprovisioning config for the cluster.
+   *
+   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+   * of max_pods_per_node is doubled and then rounded off to next power of 2 to
+   * get the size of pod CIDR block per node.
+   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+   *
+   * This config can disable the doubling of IPs (we still round off to next
+   * power of 2)
+   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+   * overprovisioning is disabled.
+   * 
+ * + * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; + */ + @java.lang.Override + public com.google.container.v1beta1.PodCIDROverprovisionConfigOrBuilder getPodCidrOverprovisionConfigOrBuilder() { + return podCidrOverprovisionConfig_ == null ? com.google.container.v1beta1.PodCIDROverprovisionConfig.getDefaultInstance() : podCidrOverprovisionConfig_; + } + + public static final int SUBNET_IPV6_CIDR_BLOCK_FIELD_NUMBER = 22; + @SuppressWarnings("serial") + private volatile java.lang.Object subnetIpv6CidrBlock_ = ""; + /** + *
+   * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
+   * pods.
+   * 
+ * + * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The subnetIpv6CidrBlock. + */ + @java.lang.Override + public java.lang.String getSubnetIpv6CidrBlock() { + java.lang.Object ref = subnetIpv6CidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetIpv6CidrBlock_ = s; + return s; + } + } + /** + *
+   * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
+   * pods.
+   * 
+ * + * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for subnetIpv6CidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSubnetIpv6CidrBlockBytes() { + java.lang.Object ref = subnetIpv6CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subnetIpv6CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICES_IPV6_CIDR_BLOCK_FIELD_NUMBER = 23; + @SuppressWarnings("serial") + private volatile java.lang.Object servicesIpv6CidrBlock_ = ""; + /** + *
+   * Output only. [Output only] The services IPv6 CIDR block for the cluster.
+   * 
+ * + * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The servicesIpv6CidrBlock. + */ + @java.lang.Override + public java.lang.String getServicesIpv6CidrBlock() { + java.lang.Object ref = servicesIpv6CidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesIpv6CidrBlock_ = s; + return s; + } + } + /** + *
+   * Output only. [Output only] The services IPv6 CIDR block for the cluster.
+   * 
+ * + * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for servicesIpv6CidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getServicesIpv6CidrBlockBytes() { + java.lang.Object ref = servicesIpv6CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + servicesIpv6CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADDITIONAL_POD_RANGES_CONFIG_FIELD_NUMBER = 24; + private com.google.container.v1beta1.AdditionalPodRangesConfig additionalPodRangesConfig_; + /** + *
+   * Output only. [Output only] The additional pod ranges that are added to the
+   * cluster. These pod ranges can be used by new node pools to allocate pod IPs
+   * automatically. Once the range is removed it will not show up in
+   * IPAllocationPolicy.
+   * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the additionalPodRangesConfig field is set. + */ + @java.lang.Override + public boolean hasAdditionalPodRangesConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * Output only. [Output only] The additional pod ranges that are added to the
+   * cluster. These pod ranges can be used by new node pools to allocate pod IPs
+   * automatically. Once the range is removed it will not show up in
+   * IPAllocationPolicy.
+   * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The additionalPodRangesConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.AdditionalPodRangesConfig getAdditionalPodRangesConfig() { + return additionalPodRangesConfig_ == null ? com.google.container.v1beta1.AdditionalPodRangesConfig.getDefaultInstance() : additionalPodRangesConfig_; + } + /** + *
+   * Output only. [Output only] The additional pod ranges that are added to the
+   * cluster. These pod ranges can be used by new node pools to allocate pod IPs
+   * automatically. Once the range is removed it will not show up in
+   * IPAllocationPolicy.
+   * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.container.v1beta1.AdditionalPodRangesConfigOrBuilder getAdditionalPodRangesConfigOrBuilder() { + return additionalPodRangesConfig_ == null ? com.google.container.v1beta1.AdditionalPodRangesConfig.getDefaultInstance() : additionalPodRangesConfig_; + } + + public static final int DEFAULT_POD_IPV4_RANGE_UTILIZATION_FIELD_NUMBER = 25; + private double defaultPodIpv4RangeUtilization_ = 0D; + /** + *
+   * Output only. [Output only] The utilization of the cluster default IPv4
+   * range for the pod. The ratio is Usage/[Total number of IPs in the secondary
+   * range], Usage=numNodes*numZones*podIPsPerNode.
+   * 
+ * + * double default_pod_ipv4_range_utilization = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The defaultPodIpv4RangeUtilization. + */ + @java.lang.Override + public double getDefaultPodIpv4RangeUtilization() { + return defaultPodIpv4RangeUtilization_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetworkName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, subnetworkName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterIpv4Cidr_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, clusterIpv4Cidr_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeIpv4Cidr_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, nodeIpv4Cidr_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesIpv4Cidr_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, servicesIpv4Cidr_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterSecondaryRangeName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, clusterSecondaryRangeName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesSecondaryRangeName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, servicesSecondaryRangeName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterIpv4CidrBlock_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, clusterIpv4CidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeIpv4CidrBlock_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, nodeIpv4CidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesIpv4CidrBlock_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, servicesIpv4CidrBlock_); + } + if (allowRouteOverlap_ != false) { + output.writeBool(12, allowRouteOverlap_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tpuIpv4CidrBlock_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, tpuIpv4CidrBlock_); + } + if (useRoutes_ != false) { + output.writeBool(15, useRoutes_); + } + if (stackType_ != com.google.container.v1beta1.IPAllocationPolicy.StackType.STACK_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(16, stackType_); + } + if (ipv6AccessType_ != com.google.container.v1beta1.IPAllocationPolicy.IPv6AccessType.IPV6_ACCESS_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(17, ipv6AccessType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(21, getPodCidrOverprovisionConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetIpv6CidrBlock_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 22, subnetIpv6CidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesIpv6CidrBlock_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 23, servicesIpv6CidrBlock_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(24, getAdditionalPodRangesConfig()); + } + if (java.lang.Double.doubleToRawLongBits(defaultPodIpv4RangeUtilization_) != 0) { + output.writeDouble(25, defaultPodIpv4RangeUtilization_); + } + getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetworkName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, subnetworkName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterIpv4Cidr_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, clusterIpv4Cidr_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeIpv4Cidr_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, nodeIpv4Cidr_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesIpv4Cidr_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, servicesIpv4Cidr_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterSecondaryRangeName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, clusterSecondaryRangeName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesSecondaryRangeName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, servicesSecondaryRangeName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterIpv4CidrBlock_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, clusterIpv4CidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeIpv4CidrBlock_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, nodeIpv4CidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesIpv4CidrBlock_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, servicesIpv4CidrBlock_); + } + if (allowRouteOverlap_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(12, allowRouteOverlap_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tpuIpv4CidrBlock_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, tpuIpv4CidrBlock_); + } + if (useRoutes_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(15, useRoutes_); + } + if (stackType_ != com.google.container.v1beta1.IPAllocationPolicy.StackType.STACK_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(16, stackType_); + } + if (ipv6AccessType_ != com.google.container.v1beta1.IPAllocationPolicy.IPv6AccessType.IPV6_ACCESS_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(17, ipv6AccessType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, getPodCidrOverprovisionConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetIpv6CidrBlock_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, subnetIpv6CidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(servicesIpv6CidrBlock_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, servicesIpv6CidrBlock_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(24, getAdditionalPodRangesConfig()); + } + if (java.lang.Double.doubleToRawLongBits(defaultPodIpv4RangeUtilization_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(25, defaultPodIpv4RangeUtilization_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (stackType_ != other.stackType_) return false; + if (ipv6AccessType_ != other.ipv6AccessType_) return false; + if (hasPodCidrOverprovisionConfig() != other.hasPodCidrOverprovisionConfig()) return false; + if (hasPodCidrOverprovisionConfig()) { + if (!getPodCidrOverprovisionConfig() + .equals(other.getPodCidrOverprovisionConfig())) return false; + } + if (!getSubnetIpv6CidrBlock() + .equals(other.getSubnetIpv6CidrBlock())) return false; + if (!getServicesIpv6CidrBlock() + .equals(other.getServicesIpv6CidrBlock())) return false; + if (hasAdditionalPodRangesConfig() != other.hasAdditionalPodRangesConfig()) return false; + if (hasAdditionalPodRangesConfig()) { + if (!getAdditionalPodRangesConfig() + .equals(other.getAdditionalPodRangesConfig())) return false; + } + if (java.lang.Double.doubleToLongBits(getDefaultPodIpv4RangeUtilization()) + != java.lang.Double.doubleToLongBits( + other.getDefaultPodIpv4RangeUtilization())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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 = (37 * hash) + STACK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + stackType_; + hash = (37 * hash) + IPV6_ACCESS_TYPE_FIELD_NUMBER; + hash = (53 * hash) + ipv6AccessType_; + if (hasPodCidrOverprovisionConfig()) { + hash = (37 * hash) + POD_CIDR_OVERPROVISION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPodCidrOverprovisionConfig().hashCode(); + } + hash = (37 * hash) + SUBNET_IPV6_CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getSubnetIpv6CidrBlock().hashCode(); + hash = (37 * hash) + SERVICES_IPV6_CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getServicesIpv6CidrBlock().hashCode(); + if (hasAdditionalPodRangesConfig()) { + hash = (37 * hash) + ADDITIONAL_POD_RANGES_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalPodRangesConfig().hashCode(); + } + hash = (37 * hash) + DEFAULT_POD_IPV4_RANGE_UTILIZATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDefaultPodIpv4RangeUtilization())); + hash = (29 * hash) + getUnknownFields().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) { + getPodCidrOverprovisionConfigFieldBuilder(); + getAdditionalPodRangesConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + useIpAliases_ = false; + createSubnetwork_ = false; + subnetworkName_ = ""; + clusterIpv4Cidr_ = ""; + nodeIpv4Cidr_ = ""; + servicesIpv4Cidr_ = ""; + clusterSecondaryRangeName_ = ""; + servicesSecondaryRangeName_ = ""; + clusterIpv4CidrBlock_ = ""; + nodeIpv4CidrBlock_ = ""; + servicesIpv4CidrBlock_ = ""; + allowRouteOverlap_ = false; + tpuIpv4CidrBlock_ = ""; + useRoutes_ = false; + stackType_ = 0; + ipv6AccessType_ = 0; + podCidrOverprovisionConfig_ = null; + if (podCidrOverprovisionConfigBuilder_ != null) { + podCidrOverprovisionConfigBuilder_.dispose(); + podCidrOverprovisionConfigBuilder_ = null; + } + subnetIpv6CidrBlock_ = ""; + servicesIpv6CidrBlock_ = ""; + additionalPodRangesConfig_ = null; + if (additionalPodRangesConfigBuilder_ != null) { + additionalPodRangesConfigBuilder_.dispose(); + additionalPodRangesConfigBuilder_ = null; + } + defaultPodIpv4RangeUtilization_ = 0D; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.IPAllocationPolicy result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.useIpAliases_ = useIpAliases_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createSubnetwork_ = createSubnetwork_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.subnetworkName_ = subnetworkName_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.clusterIpv4Cidr_ = clusterIpv4Cidr_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.nodeIpv4Cidr_ = nodeIpv4Cidr_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.servicesIpv4Cidr_ = servicesIpv4Cidr_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.clusterSecondaryRangeName_ = clusterSecondaryRangeName_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.servicesSecondaryRangeName_ = servicesSecondaryRangeName_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.clusterIpv4CidrBlock_ = clusterIpv4CidrBlock_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.nodeIpv4CidrBlock_ = nodeIpv4CidrBlock_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.servicesIpv4CidrBlock_ = servicesIpv4CidrBlock_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.allowRouteOverlap_ = allowRouteOverlap_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.tpuIpv4CidrBlock_ = tpuIpv4CidrBlock_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.useRoutes_ = useRoutes_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.stackType_ = stackType_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.ipv6AccessType_ = ipv6AccessType_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00010000) != 0)) { + result.podCidrOverprovisionConfig_ = podCidrOverprovisionConfigBuilder_ == null + ? podCidrOverprovisionConfig_ + : podCidrOverprovisionConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.subnetIpv6CidrBlock_ = subnetIpv6CidrBlock_; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.servicesIpv6CidrBlock_ = servicesIpv6CidrBlock_; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.additionalPodRangesConfig_ = additionalPodRangesConfigBuilder_ == null + ? additionalPodRangesConfig_ + : additionalPodRangesConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.defaultPodIpv4RangeUtilization_ = defaultPodIpv4RangeUtilization_; + } + result.bitField0_ |= to_bitField0_; + } + + @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_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getClusterIpv4Cidr().isEmpty()) { + clusterIpv4Cidr_ = other.clusterIpv4Cidr_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getNodeIpv4Cidr().isEmpty()) { + nodeIpv4Cidr_ = other.nodeIpv4Cidr_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getServicesIpv4Cidr().isEmpty()) { + servicesIpv4Cidr_ = other.servicesIpv4Cidr_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getClusterSecondaryRangeName().isEmpty()) { + clusterSecondaryRangeName_ = other.clusterSecondaryRangeName_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getServicesSecondaryRangeName().isEmpty()) { + servicesSecondaryRangeName_ = other.servicesSecondaryRangeName_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getClusterIpv4CidrBlock().isEmpty()) { + clusterIpv4CidrBlock_ = other.clusterIpv4CidrBlock_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.getNodeIpv4CidrBlock().isEmpty()) { + nodeIpv4CidrBlock_ = other.nodeIpv4CidrBlock_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (!other.getServicesIpv4CidrBlock().isEmpty()) { + servicesIpv4CidrBlock_ = other.servicesIpv4CidrBlock_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (other.getAllowRouteOverlap() != false) { + setAllowRouteOverlap(other.getAllowRouteOverlap()); + } + if (!other.getTpuIpv4CidrBlock().isEmpty()) { + tpuIpv4CidrBlock_ = other.tpuIpv4CidrBlock_; + bitField0_ |= 0x00001000; + onChanged(); + } + if (other.getUseRoutes() != false) { + setUseRoutes(other.getUseRoutes()); + } + if (other.stackType_ != 0) { + setStackTypeValue(other.getStackTypeValue()); + } + if (other.ipv6AccessType_ != 0) { + setIpv6AccessTypeValue(other.getIpv6AccessTypeValue()); + } + if (other.hasPodCidrOverprovisionConfig()) { + mergePodCidrOverprovisionConfig(other.getPodCidrOverprovisionConfig()); + } + if (!other.getSubnetIpv6CidrBlock().isEmpty()) { + subnetIpv6CidrBlock_ = other.subnetIpv6CidrBlock_; + bitField0_ |= 0x00020000; + onChanged(); + } + if (!other.getServicesIpv6CidrBlock().isEmpty()) { + servicesIpv6CidrBlock_ = other.servicesIpv6CidrBlock_; + bitField0_ |= 0x00040000; + onChanged(); + } + if (other.hasAdditionalPodRangesConfig()) { + mergeAdditionalPodRangesConfig(other.getAdditionalPodRangesConfig()); + } + if (other.getDefaultPodIpv4RangeUtilization() != 0D) { + setDefaultPodIpv4RangeUtilization(other.getDefaultPodIpv4RangeUtilization()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + useIpAliases_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + createSubnetwork_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + subnetworkName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + clusterIpv4Cidr_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + nodeIpv4Cidr_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + servicesIpv4Cidr_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + clusterSecondaryRangeName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + servicesSecondaryRangeName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: { + clusterIpv4CidrBlock_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: { + nodeIpv4CidrBlock_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: { + servicesIpv4CidrBlock_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 96: { + allowRouteOverlap_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 96 + case 106: { + tpuIpv4CidrBlock_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 120: { + useRoutes_ = input.readBool(); + bitField0_ |= 0x00002000; + break; + } // case 120 + case 128: { + stackType_ = input.readEnum(); + bitField0_ |= 0x00004000; + break; + } // case 128 + case 136: { + ipv6AccessType_ = input.readEnum(); + bitField0_ |= 0x00008000; + break; + } // case 136 + case 170: { + input.readMessage( + getPodCidrOverprovisionConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 170 + case 178: { + subnetIpv6CidrBlock_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00020000; + break; + } // case 178 + case 186: { + servicesIpv6CidrBlock_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00040000; + break; + } // case 186 + case 194: { + input.readMessage( + getAdditionalPodRangesConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00080000; + break; + } // case 194 + case 201: { + defaultPodIpv4RangeUtilization_ = input.readDouble(); + bitField0_ |= 0x00100000; + break; + } // case 201 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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() { + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000002; + 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() { + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000004; + 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(); + bitField0_ = (bitField0_ & ~0x00000004); + 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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object clusterIpv4Cidr_ = ""; + /** + *
+     * This field is deprecated, use cluster_ipv4_cidr_block.
+     * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1640 + * @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]; + * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1640 + * @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]; + * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1640 + * @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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * This field is deprecated, use cluster_ipv4_cidr_block.
+     * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1640 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterIpv4Cidr() { + clusterIpv4Cidr_ = getDefaultInstance().getClusterIpv4Cidr(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * This field is deprecated, use cluster_ipv4_cidr_block.
+     * 
+ * + * string cluster_ipv4_cidr = 4 [deprecated = true]; + * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1640 + * @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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object nodeIpv4Cidr_ = ""; + /** + *
+     * This field is deprecated, use node_ipv4_cidr_block.
+     * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1643 + * @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]; + * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1643 + * @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]; + * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1643 + * @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; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * This field is deprecated, use node_ipv4_cidr_block.
+     * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1643 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearNodeIpv4Cidr() { + nodeIpv4Cidr_ = getDefaultInstance().getNodeIpv4Cidr(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+     * This field is deprecated, use node_ipv4_cidr_block.
+     * 
+ * + * string node_ipv4_cidr = 5 [deprecated = true]; + * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1643 + * @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; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object servicesIpv4Cidr_ = ""; + /** + *
+     * This field is deprecated, use services_ipv4_cidr_block.
+     * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1646 + * @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]; + * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1646 + * @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]; + * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1646 + * @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; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * This field is deprecated, use services_ipv4_cidr_block.
+     * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1646 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearServicesIpv4Cidr() { + servicesIpv4Cidr_ = getDefaultInstance().getServicesIpv4Cidr(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + *
+     * This field is deprecated, use services_ipv4_cidr_block.
+     * 
+ * + * string services_ipv4_cidr = 6 [deprecated = true]; + * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1646 + * @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; + bitField0_ |= 0x00000020; + 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; + bitField0_ |= 0x00000040; + 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(); + bitField0_ = (bitField0_ & ~0x00000040); + 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; + bitField0_ |= 0x00000040; + 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; + bitField0_ |= 0x00000080; + 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(); + bitField0_ = (bitField0_ & ~0x00000080); + 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; + bitField0_ |= 0x00000080; + 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; + bitField0_ |= 0x00000100; + 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(); + bitField0_ = (bitField0_ & ~0x00000100); + 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; + bitField0_ |= 0x00000100; + 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; + bitField0_ |= 0x00000200; + 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(); + bitField0_ = (bitField0_ & ~0x00000200); + 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; + bitField0_ |= 0x00000200; + 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; + bitField0_ |= 0x00000400; + 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(); + bitField0_ = (bitField0_ & ~0x00000400); + 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; + bitField0_ |= 0x00000400; + 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; + bitField0_ |= 0x00000800; + 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() { + bitField0_ = (bitField0_ & ~0x00000800); + 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; + bitField0_ |= 0x00001000; + 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(); + bitField0_ = (bitField0_ & ~0x00001000); + 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; + bitField0_ |= 0x00001000; + 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; + bitField0_ |= 0x00002000; + 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() { + bitField0_ = (bitField0_ & ~0x00002000); + useRoutes_ = false; + onChanged(); + return this; + } + + private int stackType_ = 0; + /** + *
+     * IP stack type
+     * 
+ * + * .google.container.v1beta1.IPAllocationPolicy.StackType stack_type = 16; + * @return The enum numeric value on the wire for stackType. + */ + @java.lang.Override public int getStackTypeValue() { + return stackType_; + } + /** + *
+     * IP stack type
+     * 
+ * + * .google.container.v1beta1.IPAllocationPolicy.StackType stack_type = 16; + * @param value The enum numeric value on the wire for stackType to set. + * @return This builder for chaining. + */ + public Builder setStackTypeValue(int value) { + stackType_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + *
+     * IP stack type
+     * 
+ * + * .google.container.v1beta1.IPAllocationPolicy.StackType stack_type = 16; + * @return The stackType. + */ + @java.lang.Override + public com.google.container.v1beta1.IPAllocationPolicy.StackType getStackType() { + com.google.container.v1beta1.IPAllocationPolicy.StackType result = com.google.container.v1beta1.IPAllocationPolicy.StackType.forNumber(stackType_); + return result == null ? com.google.container.v1beta1.IPAllocationPolicy.StackType.UNRECOGNIZED : result; + } + /** + *
+     * IP stack type
+     * 
+ * + * .google.container.v1beta1.IPAllocationPolicy.StackType stack_type = 16; + * @param value The stackType to set. + * @return This builder for chaining. + */ + public Builder setStackType(com.google.container.v1beta1.IPAllocationPolicy.StackType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00004000; + stackType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * IP stack type
+     * 
+ * + * .google.container.v1beta1.IPAllocationPolicy.StackType stack_type = 16; + * @return This builder for chaining. + */ + public Builder clearStackType() { + bitField0_ = (bitField0_ & ~0x00004000); + stackType_ = 0; + onChanged(); + return this; + } + + private int ipv6AccessType_ = 0; + /** + *
+     * The ipv6 access type (internal or external) when create_subnetwork is true
+     * 
+ * + * .google.container.v1beta1.IPAllocationPolicy.IPv6AccessType ipv6_access_type = 17; + * @return The enum numeric value on the wire for ipv6AccessType. + */ + @java.lang.Override public int getIpv6AccessTypeValue() { + return ipv6AccessType_; + } + /** + *
+     * The ipv6 access type (internal or external) when create_subnetwork is true
+     * 
+ * + * .google.container.v1beta1.IPAllocationPolicy.IPv6AccessType ipv6_access_type = 17; + * @param value The enum numeric value on the wire for ipv6AccessType to set. + * @return This builder for chaining. + */ + public Builder setIpv6AccessTypeValue(int value) { + ipv6AccessType_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + *
+     * The ipv6 access type (internal or external) when create_subnetwork is true
+     * 
+ * + * .google.container.v1beta1.IPAllocationPolicy.IPv6AccessType ipv6_access_type = 17; + * @return The ipv6AccessType. + */ + @java.lang.Override + public com.google.container.v1beta1.IPAllocationPolicy.IPv6AccessType getIpv6AccessType() { + com.google.container.v1beta1.IPAllocationPolicy.IPv6AccessType result = com.google.container.v1beta1.IPAllocationPolicy.IPv6AccessType.forNumber(ipv6AccessType_); + return result == null ? com.google.container.v1beta1.IPAllocationPolicy.IPv6AccessType.UNRECOGNIZED : result; + } + /** + *
+     * The ipv6 access type (internal or external) when create_subnetwork is true
+     * 
+ * + * .google.container.v1beta1.IPAllocationPolicy.IPv6AccessType ipv6_access_type = 17; + * @param value The ipv6AccessType to set. + * @return This builder for chaining. + */ + public Builder setIpv6AccessType(com.google.container.v1beta1.IPAllocationPolicy.IPv6AccessType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00008000; + ipv6AccessType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The ipv6 access type (internal or external) when create_subnetwork is true
+     * 
+ * + * .google.container.v1beta1.IPAllocationPolicy.IPv6AccessType ipv6_access_type = 17; + * @return This builder for chaining. + */ + public Builder clearIpv6AccessType() { + bitField0_ = (bitField0_ & ~0x00008000); + ipv6AccessType_ = 0; + onChanged(); + return this; + } + + private com.google.container.v1beta1.PodCIDROverprovisionConfig podCidrOverprovisionConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PodCIDROverprovisionConfig, com.google.container.v1beta1.PodCIDROverprovisionConfig.Builder, com.google.container.v1beta1.PodCIDROverprovisionConfigOrBuilder> podCidrOverprovisionConfigBuilder_; + /** + *
+     * [PRIVATE FIELD]
+     * Pod CIDR size overprovisioning config for the cluster.
+     *
+     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+     * of max_pods_per_node is doubled and then rounded off to next power of 2 to
+     * get the size of pod CIDR block per node.
+     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+     *
+     * This config can disable the doubling of IPs (we still round off to next
+     * power of 2)
+     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+     * overprovisioning is disabled.
+     * 
+ * + * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; + * @return Whether the podCidrOverprovisionConfig field is set. + */ + public boolean hasPodCidrOverprovisionConfig() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + *
+     * [PRIVATE FIELD]
+     * Pod CIDR size overprovisioning config for the cluster.
+     *
+     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+     * of max_pods_per_node is doubled and then rounded off to next power of 2 to
+     * get the size of pod CIDR block per node.
+     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+     *
+     * This config can disable the doubling of IPs (we still round off to next
+     * power of 2)
+     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+     * overprovisioning is disabled.
+     * 
+ * + * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; + * @return The podCidrOverprovisionConfig. + */ + public com.google.container.v1beta1.PodCIDROverprovisionConfig getPodCidrOverprovisionConfig() { + if (podCidrOverprovisionConfigBuilder_ == null) { + return podCidrOverprovisionConfig_ == null ? com.google.container.v1beta1.PodCIDROverprovisionConfig.getDefaultInstance() : podCidrOverprovisionConfig_; + } else { + return podCidrOverprovisionConfigBuilder_.getMessage(); + } + } + /** + *
+     * [PRIVATE FIELD]
+     * Pod CIDR size overprovisioning config for the cluster.
+     *
+     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+     * of max_pods_per_node is doubled and then rounded off to next power of 2 to
+     * get the size of pod CIDR block per node.
+     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+     *
+     * This config can disable the doubling of IPs (we still round off to next
+     * power of 2)
+     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+     * overprovisioning is disabled.
+     * 
+ * + * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; + */ + public Builder setPodCidrOverprovisionConfig(com.google.container.v1beta1.PodCIDROverprovisionConfig value) { + if (podCidrOverprovisionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + podCidrOverprovisionConfig_ = value; + } else { + podCidrOverprovisionConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + *
+     * [PRIVATE FIELD]
+     * Pod CIDR size overprovisioning config for the cluster.
+     *
+     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+     * of max_pods_per_node is doubled and then rounded off to next power of 2 to
+     * get the size of pod CIDR block per node.
+     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+     *
+     * This config can disable the doubling of IPs (we still round off to next
+     * power of 2)
+     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+     * overprovisioning is disabled.
+     * 
+ * + * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; + */ + public Builder setPodCidrOverprovisionConfig( + com.google.container.v1beta1.PodCIDROverprovisionConfig.Builder builderForValue) { + if (podCidrOverprovisionConfigBuilder_ == null) { + podCidrOverprovisionConfig_ = builderForValue.build(); + } else { + podCidrOverprovisionConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + *
+     * [PRIVATE FIELD]
+     * Pod CIDR size overprovisioning config for the cluster.
+     *
+     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+     * of max_pods_per_node is doubled and then rounded off to next power of 2 to
+     * get the size of pod CIDR block per node.
+     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+     *
+     * This config can disable the doubling of IPs (we still round off to next
+     * power of 2)
+     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+     * overprovisioning is disabled.
+     * 
+ * + * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; + */ + public Builder mergePodCidrOverprovisionConfig(com.google.container.v1beta1.PodCIDROverprovisionConfig value) { + if (podCidrOverprovisionConfigBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0) && + podCidrOverprovisionConfig_ != null && + podCidrOverprovisionConfig_ != com.google.container.v1beta1.PodCIDROverprovisionConfig.getDefaultInstance()) { + getPodCidrOverprovisionConfigBuilder().mergeFrom(value); + } else { + podCidrOverprovisionConfig_ = value; + } + } else { + podCidrOverprovisionConfigBuilder_.mergeFrom(value); + } + if (podCidrOverprovisionConfig_ != null) { + bitField0_ |= 0x00010000; + onChanged(); + } + return this; + } + /** + *
+     * [PRIVATE FIELD]
+     * Pod CIDR size overprovisioning config for the cluster.
+     *
+     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+     * of max_pods_per_node is doubled and then rounded off to next power of 2 to
+     * get the size of pod CIDR block per node.
+     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+     *
+     * This config can disable the doubling of IPs (we still round off to next
+     * power of 2)
+     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+     * overprovisioning is disabled.
+     * 
+ * + * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; + */ + public Builder clearPodCidrOverprovisionConfig() { + bitField0_ = (bitField0_ & ~0x00010000); + podCidrOverprovisionConfig_ = null; + if (podCidrOverprovisionConfigBuilder_ != null) { + podCidrOverprovisionConfigBuilder_.dispose(); + podCidrOverprovisionConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * [PRIVATE FIELD]
+     * Pod CIDR size overprovisioning config for the cluster.
+     *
+     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+     * of max_pods_per_node is doubled and then rounded off to next power of 2 to
+     * get the size of pod CIDR block per node.
+     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+     *
+     * This config can disable the doubling of IPs (we still round off to next
+     * power of 2)
+     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+     * overprovisioning is disabled.
+     * 
+ * + * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; + */ + public com.google.container.v1beta1.PodCIDROverprovisionConfig.Builder getPodCidrOverprovisionConfigBuilder() { + bitField0_ |= 0x00010000; + onChanged(); + return getPodCidrOverprovisionConfigFieldBuilder().getBuilder(); + } + /** + *
+     * [PRIVATE FIELD]
+     * Pod CIDR size overprovisioning config for the cluster.
+     *
+     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+     * of max_pods_per_node is doubled and then rounded off to next power of 2 to
+     * get the size of pod CIDR block per node.
+     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+     *
+     * This config can disable the doubling of IPs (we still round off to next
+     * power of 2)
+     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+     * overprovisioning is disabled.
+     * 
+ * + * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; + */ + public com.google.container.v1beta1.PodCIDROverprovisionConfigOrBuilder getPodCidrOverprovisionConfigOrBuilder() { + if (podCidrOverprovisionConfigBuilder_ != null) { + return podCidrOverprovisionConfigBuilder_.getMessageOrBuilder(); + } else { + return podCidrOverprovisionConfig_ == null ? + com.google.container.v1beta1.PodCIDROverprovisionConfig.getDefaultInstance() : podCidrOverprovisionConfig_; + } + } + /** + *
+     * [PRIVATE FIELD]
+     * Pod CIDR size overprovisioning config for the cluster.
+     *
+     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+     * of max_pods_per_node is doubled and then rounded off to next power of 2 to
+     * get the size of pod CIDR block per node.
+     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+     *
+     * This config can disable the doubling of IPs (we still round off to next
+     * power of 2)
+     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+     * overprovisioning is disabled.
+     * 
+ * + * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PodCIDROverprovisionConfig, com.google.container.v1beta1.PodCIDROverprovisionConfig.Builder, com.google.container.v1beta1.PodCIDROverprovisionConfigOrBuilder> + getPodCidrOverprovisionConfigFieldBuilder() { + if (podCidrOverprovisionConfigBuilder_ == null) { + podCidrOverprovisionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PodCIDROverprovisionConfig, com.google.container.v1beta1.PodCIDROverprovisionConfig.Builder, com.google.container.v1beta1.PodCIDROverprovisionConfigOrBuilder>( + getPodCidrOverprovisionConfig(), + getParentForChildren(), + isClean()); + podCidrOverprovisionConfig_ = null; + } + return podCidrOverprovisionConfigBuilder_; + } + + private java.lang.Object subnetIpv6CidrBlock_ = ""; + /** + *
+     * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
+     * pods.
+     * 
+ * + * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The subnetIpv6CidrBlock. + */ + public java.lang.String getSubnetIpv6CidrBlock() { + java.lang.Object ref = subnetIpv6CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetIpv6CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
+     * pods.
+     * 
+ * + * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for subnetIpv6CidrBlock. + */ + public com.google.protobuf.ByteString + getSubnetIpv6CidrBlockBytes() { + java.lang.Object ref = subnetIpv6CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subnetIpv6CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
+     * pods.
+     * 
+ * + * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The subnetIpv6CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setSubnetIpv6CidrBlock( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + subnetIpv6CidrBlock_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + *
+     * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
+     * pods.
+     * 
+ * + * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearSubnetIpv6CidrBlock() { + subnetIpv6CidrBlock_ = getDefaultInstance().getSubnetIpv6CidrBlock(); + bitField0_ = (bitField0_ & ~0x00020000); + onChanged(); + return this; + } + /** + *
+     * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
+     * pods.
+     * 
+ * + * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes for subnetIpv6CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setSubnetIpv6CidrBlockBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + subnetIpv6CidrBlock_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + private java.lang.Object servicesIpv6CidrBlock_ = ""; + /** + *
+     * Output only. [Output only] The services IPv6 CIDR block for the cluster.
+     * 
+ * + * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The servicesIpv6CidrBlock. + */ + public java.lang.String getServicesIpv6CidrBlock() { + java.lang.Object ref = servicesIpv6CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servicesIpv6CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. [Output only] The services IPv6 CIDR block for the cluster.
+     * 
+ * + * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for servicesIpv6CidrBlock. + */ + public com.google.protobuf.ByteString + getServicesIpv6CidrBlockBytes() { + java.lang.Object ref = servicesIpv6CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + servicesIpv6CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. [Output only] The services IPv6 CIDR block for the cluster.
+     * 
+ * + * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The servicesIpv6CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setServicesIpv6CidrBlock( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + servicesIpv6CidrBlock_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + *
+     * Output only. [Output only] The services IPv6 CIDR block for the cluster.
+     * 
+ * + * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearServicesIpv6CidrBlock() { + servicesIpv6CidrBlock_ = getDefaultInstance().getServicesIpv6CidrBlock(); + bitField0_ = (bitField0_ & ~0x00040000); + onChanged(); + return this; + } + /** + *
+     * Output only. [Output only] The services IPv6 CIDR block for the cluster.
+     * 
+ * + * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes for servicesIpv6CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setServicesIpv6CidrBlockBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + servicesIpv6CidrBlock_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + private com.google.container.v1beta1.AdditionalPodRangesConfig additionalPodRangesConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AdditionalPodRangesConfig, com.google.container.v1beta1.AdditionalPodRangesConfig.Builder, com.google.container.v1beta1.AdditionalPodRangesConfigOrBuilder> additionalPodRangesConfigBuilder_; + /** + *
+     * Output only. [Output only] The additional pod ranges that are added to the
+     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
+     * automatically. Once the range is removed it will not show up in
+     * IPAllocationPolicy.
+     * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the additionalPodRangesConfig field is set. + */ + public boolean hasAdditionalPodRangesConfig() { + return ((bitField0_ & 0x00080000) != 0); + } + /** + *
+     * Output only. [Output only] The additional pod ranges that are added to the
+     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
+     * automatically. Once the range is removed it will not show up in
+     * IPAllocationPolicy.
+     * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The additionalPodRangesConfig. + */ + public com.google.container.v1beta1.AdditionalPodRangesConfig getAdditionalPodRangesConfig() { + if (additionalPodRangesConfigBuilder_ == null) { + return additionalPodRangesConfig_ == null ? com.google.container.v1beta1.AdditionalPodRangesConfig.getDefaultInstance() : additionalPodRangesConfig_; + } else { + return additionalPodRangesConfigBuilder_.getMessage(); + } + } + /** + *
+     * Output only. [Output only] The additional pod ranges that are added to the
+     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
+     * automatically. Once the range is removed it will not show up in
+     * IPAllocationPolicy.
+     * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setAdditionalPodRangesConfig(com.google.container.v1beta1.AdditionalPodRangesConfig value) { + if (additionalPodRangesConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + additionalPodRangesConfig_ = value; + } else { + additionalPodRangesConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + *
+     * Output only. [Output only] The additional pod ranges that are added to the
+     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
+     * automatically. Once the range is removed it will not show up in
+     * IPAllocationPolicy.
+     * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setAdditionalPodRangesConfig( + com.google.container.v1beta1.AdditionalPodRangesConfig.Builder builderForValue) { + if (additionalPodRangesConfigBuilder_ == null) { + additionalPodRangesConfig_ = builderForValue.build(); + } else { + additionalPodRangesConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + *
+     * Output only. [Output only] The additional pod ranges that are added to the
+     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
+     * automatically. Once the range is removed it will not show up in
+     * IPAllocationPolicy.
+     * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeAdditionalPodRangesConfig(com.google.container.v1beta1.AdditionalPodRangesConfig value) { + if (additionalPodRangesConfigBuilder_ == null) { + if (((bitField0_ & 0x00080000) != 0) && + additionalPodRangesConfig_ != null && + additionalPodRangesConfig_ != com.google.container.v1beta1.AdditionalPodRangesConfig.getDefaultInstance()) { + getAdditionalPodRangesConfigBuilder().mergeFrom(value); + } else { + additionalPodRangesConfig_ = value; + } + } else { + additionalPodRangesConfigBuilder_.mergeFrom(value); + } + if (additionalPodRangesConfig_ != null) { + bitField0_ |= 0x00080000; + onChanged(); + } + return this; + } + /** + *
+     * Output only. [Output only] The additional pod ranges that are added to the
+     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
+     * automatically. Once the range is removed it will not show up in
+     * IPAllocationPolicy.
+     * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearAdditionalPodRangesConfig() { + bitField0_ = (bitField0_ & ~0x00080000); + additionalPodRangesConfig_ = null; + if (additionalPodRangesConfigBuilder_ != null) { + additionalPodRangesConfigBuilder_.dispose(); + additionalPodRangesConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Output only. [Output only] The additional pod ranges that are added to the
+     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
+     * automatically. Once the range is removed it will not show up in
+     * IPAllocationPolicy.
+     * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.container.v1beta1.AdditionalPodRangesConfig.Builder getAdditionalPodRangesConfigBuilder() { + bitField0_ |= 0x00080000; + onChanged(); + return getAdditionalPodRangesConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. [Output only] The additional pod ranges that are added to the
+     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
+     * automatically. Once the range is removed it will not show up in
+     * IPAllocationPolicy.
+     * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.container.v1beta1.AdditionalPodRangesConfigOrBuilder getAdditionalPodRangesConfigOrBuilder() { + if (additionalPodRangesConfigBuilder_ != null) { + return additionalPodRangesConfigBuilder_.getMessageOrBuilder(); + } else { + return additionalPodRangesConfig_ == null ? + com.google.container.v1beta1.AdditionalPodRangesConfig.getDefaultInstance() : additionalPodRangesConfig_; + } + } + /** + *
+     * Output only. [Output only] The additional pod ranges that are added to the
+     * cluster. These pod ranges can be used by new node pools to allocate pod IPs
+     * automatically. Once the range is removed it will not show up in
+     * IPAllocationPolicy.
+     * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AdditionalPodRangesConfig, com.google.container.v1beta1.AdditionalPodRangesConfig.Builder, com.google.container.v1beta1.AdditionalPodRangesConfigOrBuilder> + getAdditionalPodRangesConfigFieldBuilder() { + if (additionalPodRangesConfigBuilder_ == null) { + additionalPodRangesConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AdditionalPodRangesConfig, com.google.container.v1beta1.AdditionalPodRangesConfig.Builder, com.google.container.v1beta1.AdditionalPodRangesConfigOrBuilder>( + getAdditionalPodRangesConfig(), + getParentForChildren(), + isClean()); + additionalPodRangesConfig_ = null; + } + return additionalPodRangesConfigBuilder_; + } + + private double defaultPodIpv4RangeUtilization_ ; + /** + *
+     * Output only. [Output only] The utilization of the cluster default IPv4
+     * range for the pod. The ratio is Usage/[Total number of IPs in the secondary
+     * range], Usage=numNodes*numZones*podIPsPerNode.
+     * 
+ * + * double default_pod_ipv4_range_utilization = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The defaultPodIpv4RangeUtilization. + */ + @java.lang.Override + public double getDefaultPodIpv4RangeUtilization() { + return defaultPodIpv4RangeUtilization_; + } + /** + *
+     * Output only. [Output only] The utilization of the cluster default IPv4
+     * range for the pod. The ratio is Usage/[Total number of IPs in the secondary
+     * range], Usage=numNodes*numZones*podIPsPerNode.
+     * 
+ * + * double default_pod_ipv4_range_utilization = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The defaultPodIpv4RangeUtilization to set. + * @return This builder for chaining. + */ + public Builder setDefaultPodIpv4RangeUtilization(double value) { + + defaultPodIpv4RangeUtilization_ = value; + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + *
+     * Output only. [Output only] The utilization of the cluster default IPv4
+     * range for the pod. The ratio is Usage/[Total number of IPs in the secondary
+     * range], Usage=numNodes*numZones*podIPsPerNode.
+     * 
+ * + * double default_pod_ipv4_range_utilization = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearDefaultPodIpv4RangeUtilization() { + bitField0_ = (bitField0_ & ~0x00100000); + defaultPodIpv4RangeUtilization_ = 0D; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IPAllocationPolicyOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IPAllocationPolicyOrBuilder.java new file mode 100644 index 000000000000..56db9db93e63 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IPAllocationPolicyOrBuilder.java @@ -0,0 +1,609 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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]; + * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1640 + * @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]; + * @deprecated google.container.v1beta1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1640 + * @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]; + * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1643 + * @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]; + * @deprecated google.container.v1beta1.IPAllocationPolicy.node_ipv4_cidr is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1643 + * @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]; + * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1646 + * @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]; + * @deprecated google.container.v1beta1.IPAllocationPolicy.services_ipv4_cidr is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1646 + * @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(); + + /** + *
+   * IP stack type
+   * 
+ * + * .google.container.v1beta1.IPAllocationPolicy.StackType stack_type = 16; + * @return The enum numeric value on the wire for stackType. + */ + int getStackTypeValue(); + /** + *
+   * IP stack type
+   * 
+ * + * .google.container.v1beta1.IPAllocationPolicy.StackType stack_type = 16; + * @return The stackType. + */ + com.google.container.v1beta1.IPAllocationPolicy.StackType getStackType(); + + /** + *
+   * The ipv6 access type (internal or external) when create_subnetwork is true
+   * 
+ * + * .google.container.v1beta1.IPAllocationPolicy.IPv6AccessType ipv6_access_type = 17; + * @return The enum numeric value on the wire for ipv6AccessType. + */ + int getIpv6AccessTypeValue(); + /** + *
+   * The ipv6 access type (internal or external) when create_subnetwork is true
+   * 
+ * + * .google.container.v1beta1.IPAllocationPolicy.IPv6AccessType ipv6_access_type = 17; + * @return The ipv6AccessType. + */ + com.google.container.v1beta1.IPAllocationPolicy.IPv6AccessType getIpv6AccessType(); + + /** + *
+   * [PRIVATE FIELD]
+   * Pod CIDR size overprovisioning config for the cluster.
+   *
+   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+   * of max_pods_per_node is doubled and then rounded off to next power of 2 to
+   * get the size of pod CIDR block per node.
+   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+   *
+   * This config can disable the doubling of IPs (we still round off to next
+   * power of 2)
+   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+   * overprovisioning is disabled.
+   * 
+ * + * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; + * @return Whether the podCidrOverprovisionConfig field is set. + */ + boolean hasPodCidrOverprovisionConfig(); + /** + *
+   * [PRIVATE FIELD]
+   * Pod CIDR size overprovisioning config for the cluster.
+   *
+   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+   * of max_pods_per_node is doubled and then rounded off to next power of 2 to
+   * get the size of pod CIDR block per node.
+   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+   *
+   * This config can disable the doubling of IPs (we still round off to next
+   * power of 2)
+   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+   * overprovisioning is disabled.
+   * 
+ * + * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; + * @return The podCidrOverprovisionConfig. + */ + com.google.container.v1beta1.PodCIDROverprovisionConfig getPodCidrOverprovisionConfig(); + /** + *
+   * [PRIVATE FIELD]
+   * Pod CIDR size overprovisioning config for the cluster.
+   *
+   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+   * of max_pods_per_node is doubled and then rounded off to next power of 2 to
+   * get the size of pod CIDR block per node.
+   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+   *
+   * This config can disable the doubling of IPs (we still round off to next
+   * power of 2)
+   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+   * overprovisioning is disabled.
+   * 
+ * + * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; + */ + com.google.container.v1beta1.PodCIDROverprovisionConfigOrBuilder getPodCidrOverprovisionConfigOrBuilder(); + + /** + *
+   * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
+   * pods.
+   * 
+ * + * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The subnetIpv6CidrBlock. + */ + java.lang.String getSubnetIpv6CidrBlock(); + /** + *
+   * Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
+   * pods.
+   * 
+ * + * string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for subnetIpv6CidrBlock. + */ + com.google.protobuf.ByteString + getSubnetIpv6CidrBlockBytes(); + + /** + *
+   * Output only. [Output only] The services IPv6 CIDR block for the cluster.
+   * 
+ * + * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The servicesIpv6CidrBlock. + */ + java.lang.String getServicesIpv6CidrBlock(); + /** + *
+   * Output only. [Output only] The services IPv6 CIDR block for the cluster.
+   * 
+ * + * string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for servicesIpv6CidrBlock. + */ + com.google.protobuf.ByteString + getServicesIpv6CidrBlockBytes(); + + /** + *
+   * Output only. [Output only] The additional pod ranges that are added to the
+   * cluster. These pod ranges can be used by new node pools to allocate pod IPs
+   * automatically. Once the range is removed it will not show up in
+   * IPAllocationPolicy.
+   * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the additionalPodRangesConfig field is set. + */ + boolean hasAdditionalPodRangesConfig(); + /** + *
+   * Output only. [Output only] The additional pod ranges that are added to the
+   * cluster. These pod ranges can be used by new node pools to allocate pod IPs
+   * automatically. Once the range is removed it will not show up in
+   * IPAllocationPolicy.
+   * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The additionalPodRangesConfig. + */ + com.google.container.v1beta1.AdditionalPodRangesConfig getAdditionalPodRangesConfig(); + /** + *
+   * Output only. [Output only] The additional pod ranges that are added to the
+   * cluster. These pod ranges can be used by new node pools to allocate pod IPs
+   * automatically. Once the range is removed it will not show up in
+   * IPAllocationPolicy.
+   * 
+ * + * .google.container.v1beta1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.container.v1beta1.AdditionalPodRangesConfigOrBuilder getAdditionalPodRangesConfigOrBuilder(); + + /** + *
+   * Output only. [Output only] The utilization of the cluster default IPv4
+   * range for the pod. The ratio is Usage/[Total number of IPs in the secondary
+   * range], Usage=numNodes*numZones*podIPsPerNode.
+   * 
+ * + * double default_pod_ipv4_range_utilization = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The defaultPodIpv4RangeUtilization. + */ + double getDefaultPodIpv4RangeUtilization(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IdentityServiceConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IdentityServiceConfig.java new file mode 100644 index 000000000000..908e75dc0e56 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IdentityServiceConfig.java @@ -0,0 +1,499 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * IdentityServiceConfig is configuration for Identity Service which allows
+ * customers to use external identity providers with the K8S API
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.IdentityServiceConfig} + */ +public final class IdentityServiceConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.IdentityServiceConfig) + IdentityServiceConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use IdentityServiceConfig.newBuilder() to construct. + private IdentityServiceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private IdentityServiceConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new IdentityServiceConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_IdentityServiceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_IdentityServiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.IdentityServiceConfig.class, com.google.container.v1beta1.IdentityServiceConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * Whether to enable the Identity Service component
+   * 
+ * + * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.IdentityServiceConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.IdentityServiceConfig other = (com.google.container.v1beta1.IdentityServiceConfig) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.IdentityServiceConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.IdentityServiceConfig parseFrom( + 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.IdentityServiceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.IdentityServiceConfig parseFrom( + com.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.IdentityServiceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.IdentityServiceConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.IdentityServiceConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.IdentityServiceConfig parseFrom( + java.io.InputStream 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.IdentityServiceConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.IdentityServiceConfig parseDelimitedFrom( + java.io.InputStream 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.IdentityServiceConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.IdentityServiceConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.IdentityServiceConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * IdentityServiceConfig is configuration for Identity Service which allows
+   * customers to use external identity providers with the K8S API
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.IdentityServiceConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.IdentityServiceConfig) + com.google.container.v1beta1.IdentityServiceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_IdentityServiceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_IdentityServiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.IdentityServiceConfig.class, com.google.container.v1beta1.IdentityServiceConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.IdentityServiceConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 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_IdentityServiceConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.IdentityServiceConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.IdentityServiceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.IdentityServiceConfig build() { + com.google.container.v1beta1.IdentityServiceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.IdentityServiceConfig buildPartial() { + com.google.container.v1beta1.IdentityServiceConfig result = new com.google.container.v1beta1.IdentityServiceConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.IdentityServiceConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @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.IdentityServiceConfig) { + return mergeFrom((com.google.container.v1beta1.IdentityServiceConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.IdentityServiceConfig other) { + if (other == com.google.container.v1beta1.IdentityServiceConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enabled_ ; + /** + *
+     * Whether to enable the Identity Service component
+     * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Whether to enable the Identity Service component
+     * 
+ * + * bool enabled = 1; + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether to enable the Identity Service component
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + 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.IdentityServiceConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.IdentityServiceConfig) + private static final com.google.container.v1beta1.IdentityServiceConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.IdentityServiceConfig(); + } + + public static com.google.container.v1beta1.IdentityServiceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IdentityServiceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.IdentityServiceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IdentityServiceConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IdentityServiceConfigOrBuilder.java new file mode 100644 index 000000000000..5c0e92984044 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IdentityServiceConfigOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface IdentityServiceConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.IdentityServiceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether to enable the Identity Service component
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/InTransitEncryptionConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/InTransitEncryptionConfig.java new file mode 100644 index 000000000000..560b093621b5 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/InTransitEncryptionConfig.java @@ -0,0 +1,153 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * Options for in-transit encryption.
+ * 
+ * + * Protobuf enum {@code google.container.v1beta1.InTransitEncryptionConfig} + */ +public enum InTransitEncryptionConfig + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+   * Unspecified, will be inferred as default -
+   * IN_TRANSIT_ENCRYPTION_UNSPECIFIED.
+   * 
+ * + * IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED = 0; + */ + IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED(0), + /** + *
+   * In-transit encryption is disabled.
+   * 
+ * + * IN_TRANSIT_ENCRYPTION_DISABLED = 1; + */ + IN_TRANSIT_ENCRYPTION_DISABLED(1), + /** + *
+   * Data in-transit is encrypted using inter-node transparent encryption.
+   * 
+ * + * IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT = 2; + */ + IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT(2), + UNRECOGNIZED(-1), + ; + + /** + *
+   * Unspecified, will be inferred as default -
+   * IN_TRANSIT_ENCRYPTION_UNSPECIFIED.
+   * 
+ * + * IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED = 0; + */ + public static final int IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED_VALUE = 0; + /** + *
+   * In-transit encryption is disabled.
+   * 
+ * + * IN_TRANSIT_ENCRYPTION_DISABLED = 1; + */ + public static final int IN_TRANSIT_ENCRYPTION_DISABLED_VALUE = 1; + /** + *
+   * Data in-transit is encrypted using inter-node transparent encryption.
+   * 
+ * + * IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT = 2; + */ + public static final int IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT_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 InTransitEncryptionConfig 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 InTransitEncryptionConfig forNumber(int value) { + switch (value) { + case 0: return IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED; + case 1: return IN_TRANSIT_ENCRYPTION_DISABLED; + case 2: return IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + InTransitEncryptionConfig> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public InTransitEncryptionConfig findValueByNumber(int number) { + return InTransitEncryptionConfig.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(5); + } + + private static final InTransitEncryptionConfig[] VALUES = values(); + + public static InTransitEncryptionConfig 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 InTransitEncryptionConfig(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.InTransitEncryptionConfig) +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IntraNodeVisibilityConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IntraNodeVisibilityConfig.java new file mode 100644 index 000000000000..ee27e35a627b --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IntraNodeVisibilityConfig.java @@ -0,0 +1,499 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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_ = false; + /** + *
+   * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 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_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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.IntraNodeVisibilityConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @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.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Enables intra node visibility for this cluster.
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IntraNodeVisibilityConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IntraNodeVisibilityConfigOrBuilder.java new file mode 100644 index 000000000000..d79852e63768 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IntraNodeVisibilityConfigOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfig.java new file mode 100644 index 000000000000..19994068917b --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfig.java @@ -0,0 +1,769 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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< + IstioAuthMode> 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_ = false; + /** + *
+   * Whether Istio is enabled for this cluster.
+   * 
+ * + * bool disabled = 1 [deprecated = true]; + * @deprecated google.container.v1beta1.IstioConfig.disabled is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1508 + * @return The disabled. + */ + @java.lang.Override + @java.lang.Deprecated public boolean getDisabled() { + return disabled_; + } + + public static final int AUTH_FIELD_NUMBER = 2; + private int auth_ = 0; + /** + *
+   * The specified Istio auth mode, either none, or mutual TLS.
+   * 
+ * + * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2 [deprecated = true]; + * @deprecated google.container.v1beta1.IstioConfig.auth is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1511 + * @return The enum numeric value on the wire for auth. + */ + @java.lang.Override @java.lang.Deprecated public int getAuthValue() { + return auth_; + } + /** + *
+   * The specified Istio auth mode, either none, or mutual TLS.
+   * 
+ * + * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2 [deprecated = true]; + * @deprecated google.container.v1beta1.IstioConfig.auth is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1511 + * @return The auth. + */ + @java.lang.Override @java.lang.Deprecated public com.google.container.v1beta1.IstioConfig.IstioAuthMode getAuth() { + com.google.container.v1beta1.IstioConfig.IstioAuthMode result = com.google.container.v1beta1.IstioConfig.IstioAuthMode.forNumber(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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.IstioConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.disabled_ = disabled_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.auth_ = auth_; + } + } + + @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.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + disabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + auth_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean disabled_ ; + /** + *
+     * Whether Istio is enabled for this cluster.
+     * 
+ * + * bool disabled = 1 [deprecated = true]; + * @deprecated google.container.v1beta1.IstioConfig.disabled is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1508 + * @return The disabled. + */ + @java.lang.Override + @java.lang.Deprecated public boolean getDisabled() { + return disabled_; + } + /** + *
+     * Whether Istio is enabled for this cluster.
+     * 
+ * + * bool disabled = 1 [deprecated = true]; + * @deprecated google.container.v1beta1.IstioConfig.disabled is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1508 + * @param value The disabled to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setDisabled(boolean value) { + + disabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether Istio is enabled for this cluster.
+     * 
+ * + * bool disabled = 1 [deprecated = true]; + * @deprecated google.container.v1beta1.IstioConfig.disabled is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1508 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearDisabled() { + bitField0_ = (bitField0_ & ~0x00000001); + 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 [deprecated = true]; + * @deprecated google.container.v1beta1.IstioConfig.auth is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1511 + * @return The enum numeric value on the wire for auth. + */ + @java.lang.Override @java.lang.Deprecated public int getAuthValue() { + return auth_; + } + /** + *
+     * The specified Istio auth mode, either none, or mutual TLS.
+     * 
+ * + * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2 [deprecated = true]; + * @deprecated google.container.v1beta1.IstioConfig.auth is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1511 + * @param value The enum numeric value on the wire for auth to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setAuthValue(int value) { + auth_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The specified Istio auth mode, either none, or mutual TLS.
+     * 
+ * + * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2 [deprecated = true]; + * @deprecated google.container.v1beta1.IstioConfig.auth is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1511 + * @return The auth. + */ + @java.lang.Override + @java.lang.Deprecated public com.google.container.v1beta1.IstioConfig.IstioAuthMode getAuth() { + com.google.container.v1beta1.IstioConfig.IstioAuthMode result = com.google.container.v1beta1.IstioConfig.IstioAuthMode.forNumber(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 [deprecated = true]; + * @deprecated google.container.v1beta1.IstioConfig.auth is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1511 + * @param value The auth to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setAuth(com.google.container.v1beta1.IstioConfig.IstioAuthMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + auth_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The specified Istio auth mode, either none, or mutual TLS.
+     * 
+ * + * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2 [deprecated = true]; + * @deprecated google.container.v1beta1.IstioConfig.auth is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1511 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearAuth() { + bitField0_ = (bitField0_ & ~0x00000002); + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfigOrBuilder.java new file mode 100644 index 000000000000..f250d91cb629 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/IstioConfigOrBuilder.java @@ -0,0 +1,45 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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 [deprecated = true]; + * @deprecated google.container.v1beta1.IstioConfig.disabled is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1508 + * @return The disabled. + */ + @java.lang.Deprecated boolean getDisabled(); + + /** + *
+   * The specified Istio auth mode, either none, or mutual TLS.
+   * 
+ * + * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2 [deprecated = true]; + * @deprecated google.container.v1beta1.IstioConfig.auth is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1511 + * @return The enum numeric value on the wire for auth. + */ + @java.lang.Deprecated int getAuthValue(); + /** + *
+   * The specified Istio auth mode, either none, or mutual TLS.
+   * 
+ * + * .google.container.v1beta1.IstioConfig.IstioAuthMode auth = 2 [deprecated = true]; + * @deprecated google.container.v1beta1.IstioConfig.auth is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1511 + * @return The auth. + */ + @java.lang.Deprecated com.google.container.v1beta1.IstioConfig.IstioAuthMode getAuth(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Jwk.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Jwk.java new file mode 100644 index 000000000000..844cb0355772 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Jwk.java @@ -0,0 +1,1890 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kty_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kty_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alg_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, alg_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(use_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, use_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, kid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(n_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, n_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(e_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, e_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(x_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, x_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(y_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, y_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crv_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, crv_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kty_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kty_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alg_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, alg_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(use_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, use_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, kid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(n_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, n_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(e_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, e_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(x_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, x_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(y_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, y_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crv_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, crv_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.Jwk result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.kty_ = kty_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.alg_ = alg_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.use_ = use_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.kid_ = kid_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.n_ = n_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.e_ = e_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.x_ = x_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.y_ = y_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.crv_ = crv_; + } + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAlg().isEmpty()) { + alg_ = other.alg_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getUse().isEmpty()) { + use_ = other.use_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getKid().isEmpty()) { + kid_ = other.kid_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getN().isEmpty()) { + n_ = other.n_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getE().isEmpty()) { + e_ = other.e_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getX().isEmpty()) { + x_ = other.x_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getY().isEmpty()) { + y_ = other.y_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getCrv().isEmpty()) { + crv_ = other.crv_; + bitField0_ |= 0x00000100; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + kty_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + alg_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + use_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + kid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + n_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + e_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + x_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + y_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: { + crv_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Key Type.
+     * 
+ * + * string kty = 1; + * @return This builder for chaining. + */ + public Builder clearKty() { + kty_ = getDefaultInstance().getKty(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Algorithm.
+     * 
+ * + * string alg = 2; + * @return This builder for chaining. + */ + public Builder clearAlg() { + alg_ = getDefaultInstance().getAlg(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + 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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Permitted uses for the public keys.
+     * 
+ * + * string use = 3; + * @return This builder for chaining. + */ + public Builder clearUse() { + use_ = getDefaultInstance().getUse(); + bitField0_ = (bitField0_ & ~0x00000004); + 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; + bitField0_ |= 0x00000004; + 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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Key ID.
+     * 
+ * + * string kid = 4; + * @return This builder for chaining. + */ + public Builder clearKid() { + kid_ = getDefaultInstance().getKid(); + bitField0_ = (bitField0_ & ~0x00000008); + 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; + bitField0_ |= 0x00000008; + 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; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Used for RSA keys.
+     * 
+ * + * string n = 5; + * @return This builder for chaining. + */ + public Builder clearN() { + n_ = getDefaultInstance().getN(); + bitField0_ = (bitField0_ & ~0x00000010); + 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; + bitField0_ |= 0x00000010; + 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; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Used for RSA keys.
+     * 
+ * + * string e = 6; + * @return This builder for chaining. + */ + public Builder clearE() { + e_ = getDefaultInstance().getE(); + bitField0_ = (bitField0_ & ~0x00000020); + 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; + bitField0_ |= 0x00000020; + 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; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * Used for ECDSA keys.
+     * 
+ * + * string x = 7; + * @return This builder for chaining. + */ + public Builder clearX() { + x_ = getDefaultInstance().getX(); + bitField0_ = (bitField0_ & ~0x00000040); + 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; + bitField0_ |= 0x00000040; + 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; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * Used for ECDSA keys.
+     * 
+ * + * string y = 8; + * @return This builder for chaining. + */ + public Builder clearY() { + y_ = getDefaultInstance().getY(); + bitField0_ = (bitField0_ & ~0x00000080); + 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; + bitField0_ |= 0x00000080; + 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; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * Used for ECDSA keys.
+     * 
+ * + * string crv = 9; + * @return This builder for chaining. + */ + public Builder clearCrv() { + crv_ = getDefaultInstance().getCrv(); + bitField0_ = (bitField0_ & ~0x00000100); + 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; + bitField0_ |= 0x00000100; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/JwkOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/JwkOrBuilder.java new file mode 100644 index 000000000000..9c75b64bacfc --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/JwkOrBuilder.java @@ -0,0 +1,190 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/K8sBetaAPIConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/K8sBetaAPIConfig.java new file mode 100644 index 000000000000..973afde5224b --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/K8sBetaAPIConfig.java @@ -0,0 +1,655 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * Kubernetes open source beta apis enabled on the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.K8sBetaAPIConfig} + */ +public final class K8sBetaAPIConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.K8sBetaAPIConfig) + K8sBetaAPIConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use K8sBetaAPIConfig.newBuilder() to construct. + private K8sBetaAPIConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private K8sBetaAPIConfig() { + enabledApis_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new K8sBetaAPIConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_K8sBetaAPIConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_K8sBetaAPIConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.K8sBetaAPIConfig.class, com.google.container.v1beta1.K8sBetaAPIConfig.Builder.class); + } + + public static final int ENABLED_APIS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList enabledApis_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * api name, e.g. storage.k8s.io/v1beta1/csistoragecapacities.
+   * 
+ * + * repeated string enabled_apis = 1; + * @return A list containing the enabledApis. + */ + public com.google.protobuf.ProtocolStringList + getEnabledApisList() { + return enabledApis_; + } + /** + *
+   * api name, e.g. storage.k8s.io/v1beta1/csistoragecapacities.
+   * 
+ * + * repeated string enabled_apis = 1; + * @return The count of enabledApis. + */ + public int getEnabledApisCount() { + return enabledApis_.size(); + } + /** + *
+   * api name, e.g. storage.k8s.io/v1beta1/csistoragecapacities.
+   * 
+ * + * repeated string enabled_apis = 1; + * @param index The index of the element to return. + * @return The enabledApis at the given index. + */ + public java.lang.String getEnabledApis(int index) { + return enabledApis_.get(index); + } + /** + *
+   * api name, e.g. storage.k8s.io/v1beta1/csistoragecapacities.
+   * 
+ * + * repeated string enabled_apis = 1; + * @param index The index of the value to return. + * @return The bytes of the enabledApis at the given index. + */ + public com.google.protobuf.ByteString + getEnabledApisBytes(int index) { + return enabledApis_.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 < enabledApis_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, enabledApis_.getRaw(i)); + } + getUnknownFields().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 < enabledApis_.size(); i++) { + dataSize += computeStringSizeNoTag(enabledApis_.getRaw(i)); + } + size += dataSize; + size += 1 * getEnabledApisList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.K8sBetaAPIConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.K8sBetaAPIConfig other = (com.google.container.v1beta1.K8sBetaAPIConfig) obj; + + if (!getEnabledApisList() + .equals(other.getEnabledApisList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEnabledApisCount() > 0) { + hash = (37 * hash) + ENABLED_APIS_FIELD_NUMBER; + hash = (53 * hash) + getEnabledApisList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.K8sBetaAPIConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.K8sBetaAPIConfig parseFrom( + 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.K8sBetaAPIConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.K8sBetaAPIConfig parseFrom( + com.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.K8sBetaAPIConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.K8sBetaAPIConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.K8sBetaAPIConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.K8sBetaAPIConfig parseFrom( + java.io.InputStream 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.K8sBetaAPIConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.K8sBetaAPIConfig parseDelimitedFrom( + java.io.InputStream 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.K8sBetaAPIConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.K8sBetaAPIConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.K8sBetaAPIConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new 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 open source beta apis enabled on the cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.K8sBetaAPIConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.K8sBetaAPIConfig) + com.google.container.v1beta1.K8sBetaAPIConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_K8sBetaAPIConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_K8sBetaAPIConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.K8sBetaAPIConfig.class, com.google.container.v1beta1.K8sBetaAPIConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.K8sBetaAPIConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabledApis_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_K8sBetaAPIConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.K8sBetaAPIConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.K8sBetaAPIConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.K8sBetaAPIConfig build() { + com.google.container.v1beta1.K8sBetaAPIConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.K8sBetaAPIConfig buildPartial() { + com.google.container.v1beta1.K8sBetaAPIConfig result = new com.google.container.v1beta1.K8sBetaAPIConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.K8sBetaAPIConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + enabledApis_.makeImmutable(); + result.enabledApis_ = enabledApis_; + } + } + + @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.K8sBetaAPIConfig) { + return mergeFrom((com.google.container.v1beta1.K8sBetaAPIConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.K8sBetaAPIConfig other) { + if (other == com.google.container.v1beta1.K8sBetaAPIConfig.getDefaultInstance()) return this; + if (!other.enabledApis_.isEmpty()) { + if (enabledApis_.isEmpty()) { + enabledApis_ = other.enabledApis_; + bitField0_ |= 0x00000001; + } else { + ensureEnabledApisIsMutable(); + enabledApis_.addAll(other.enabledApis_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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(); + ensureEnabledApisIsMutable(); + enabledApis_.add(s); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList enabledApis_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureEnabledApisIsMutable() { + if (!enabledApis_.isModifiable()) { + enabledApis_ = new com.google.protobuf.LazyStringArrayList(enabledApis_); + } + bitField0_ |= 0x00000001; + } + /** + *
+     * api name, e.g. storage.k8s.io/v1beta1/csistoragecapacities.
+     * 
+ * + * repeated string enabled_apis = 1; + * @return A list containing the enabledApis. + */ + public com.google.protobuf.ProtocolStringList + getEnabledApisList() { + enabledApis_.makeImmutable(); + return enabledApis_; + } + /** + *
+     * api name, e.g. storage.k8s.io/v1beta1/csistoragecapacities.
+     * 
+ * + * repeated string enabled_apis = 1; + * @return The count of enabledApis. + */ + public int getEnabledApisCount() { + return enabledApis_.size(); + } + /** + *
+     * api name, e.g. storage.k8s.io/v1beta1/csistoragecapacities.
+     * 
+ * + * repeated string enabled_apis = 1; + * @param index The index of the element to return. + * @return The enabledApis at the given index. + */ + public java.lang.String getEnabledApis(int index) { + return enabledApis_.get(index); + } + /** + *
+     * api name, e.g. storage.k8s.io/v1beta1/csistoragecapacities.
+     * 
+ * + * repeated string enabled_apis = 1; + * @param index The index of the value to return. + * @return The bytes of the enabledApis at the given index. + */ + public com.google.protobuf.ByteString + getEnabledApisBytes(int index) { + return enabledApis_.getByteString(index); + } + /** + *
+     * api name, e.g. storage.k8s.io/v1beta1/csistoragecapacities.
+     * 
+ * + * repeated string enabled_apis = 1; + * @param index The index to set the value at. + * @param value The enabledApis to set. + * @return This builder for chaining. + */ + public Builder setEnabledApis( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureEnabledApisIsMutable(); + enabledApis_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * api name, e.g. storage.k8s.io/v1beta1/csistoragecapacities.
+     * 
+ * + * repeated string enabled_apis = 1; + * @param value The enabledApis to add. + * @return This builder for chaining. + */ + public Builder addEnabledApis( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureEnabledApisIsMutable(); + enabledApis_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * api name, e.g. storage.k8s.io/v1beta1/csistoragecapacities.
+     * 
+ * + * repeated string enabled_apis = 1; + * @param values The enabledApis to add. + * @return This builder for chaining. + */ + public Builder addAllEnabledApis( + java.lang.Iterable values) { + ensureEnabledApisIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, enabledApis_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * api name, e.g. storage.k8s.io/v1beta1/csistoragecapacities.
+     * 
+ * + * repeated string enabled_apis = 1; + * @return This builder for chaining. + */ + public Builder clearEnabledApis() { + enabledApis_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; + onChanged(); + return this; + } + /** + *
+     * api name, e.g. storage.k8s.io/v1beta1/csistoragecapacities.
+     * 
+ * + * repeated string enabled_apis = 1; + * @param value The bytes of the enabledApis to add. + * @return This builder for chaining. + */ + public Builder addEnabledApisBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureEnabledApisIsMutable(); + enabledApis_.add(value); + bitField0_ |= 0x00000001; + 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.K8sBetaAPIConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.K8sBetaAPIConfig) + private static final com.google.container.v1beta1.K8sBetaAPIConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.K8sBetaAPIConfig(); + } + + public static com.google.container.v1beta1.K8sBetaAPIConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public K8sBetaAPIConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.K8sBetaAPIConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/K8sBetaAPIConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/K8sBetaAPIConfigOrBuilder.java new file mode 100644 index 000000000000..e57a7aaf827f --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/K8sBetaAPIConfigOrBuilder.java @@ -0,0 +1,51 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface K8sBetaAPIConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.K8sBetaAPIConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * api name, e.g. storage.k8s.io/v1beta1/csistoragecapacities.
+   * 
+ * + * repeated string enabled_apis = 1; + * @return A list containing the enabledApis. + */ + java.util.List + getEnabledApisList(); + /** + *
+   * api name, e.g. storage.k8s.io/v1beta1/csistoragecapacities.
+   * 
+ * + * repeated string enabled_apis = 1; + * @return The count of enabledApis. + */ + int getEnabledApisCount(); + /** + *
+   * api name, e.g. storage.k8s.io/v1beta1/csistoragecapacities.
+   * 
+ * + * repeated string enabled_apis = 1; + * @param index The index of the element to return. + * @return The enabledApis at the given index. + */ + java.lang.String getEnabledApis(int index); + /** + *
+   * api name, e.g. storage.k8s.io/v1beta1/csistoragecapacities.
+   * 
+ * + * repeated string enabled_apis = 1; + * @param index The index of the value to return. + * @return The bytes of the enabledApis at the given index. + */ + com.google.protobuf.ByteString + getEnabledApisBytes(int index); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KalmConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KalmConfig.java new file mode 100644 index 000000000000..acd5fd7cfb1a --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KalmConfig.java @@ -0,0 +1,505 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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_ = false; + /** + *
+   * Whether KALM is enabled for this cluster.
+   * 
+ * + * bool enabled = 1 [deprecated = true]; + * @deprecated google.container.v1beta1.KalmConfig.enabled is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1418 + * @return The enabled. + */ + @java.lang.Override + @java.lang.Deprecated 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 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_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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.KalmConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @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.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enabled_ ; + /** + *
+     * Whether KALM is enabled for this cluster.
+     * 
+ * + * bool enabled = 1 [deprecated = true]; + * @deprecated google.container.v1beta1.KalmConfig.enabled is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1418 + * @return The enabled. + */ + @java.lang.Override + @java.lang.Deprecated public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Whether KALM is enabled for this cluster.
+     * 
+ * + * bool enabled = 1 [deprecated = true]; + * @deprecated google.container.v1beta1.KalmConfig.enabled is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1418 + * @param value The enabled to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether KALM is enabled for this cluster.
+     * 
+ * + * bool enabled = 1 [deprecated = true]; + * @deprecated google.container.v1beta1.KalmConfig.enabled is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1418 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KalmConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KalmConfigOrBuilder.java new file mode 100644 index 000000000000..0149c3961e64 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KalmConfigOrBuilder.java @@ -0,0 +1,22 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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 [deprecated = true]; + * @deprecated google.container.v1beta1.KalmConfig.enabled is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1418 + * @return The enabled. + */ + @java.lang.Deprecated boolean getEnabled(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KubernetesDashboard.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KubernetesDashboard.java new file mode 100644 index 000000000000..e94dfd9f4b04 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KubernetesDashboard.java @@ -0,0 +1,497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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_ = false; + /** + *
+   * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.KubernetesDashboard result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.disabled_ = disabled_; + } + } + + @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.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + disabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether the Kubernetes Dashboard is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + * @return This builder for chaining. + */ + public Builder clearDisabled() { + bitField0_ = (bitField0_ & ~0x00000001); + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KubernetesDashboardOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KubernetesDashboardOrBuilder.java new file mode 100644 index 000000000000..69796b2d74d5 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/KubernetesDashboardOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LegacyAbac.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LegacyAbac.java new file mode 100644 index 000000000000..94fa23c1f3fa --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LegacyAbac.java @@ -0,0 +1,511 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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_ = false; + /** + *
+   * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 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_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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.LegacyAbac result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @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.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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() { + bitField0_ = (bitField0_ & ~0x00000001); + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LegacyAbacOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LegacyAbacOrBuilder.java new file mode 100644 index 000000000000..2b3d8446bd96 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LegacyAbacOrBuilder.java @@ -0,0 +1,23 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LinuxNodeConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LinuxNodeConfig.java new file mode 100644 index 000000000000..83d38c0daf20 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LinuxNodeConfig.java @@ -0,0 +1,1175 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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() { + cgroupMode_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LinuxNodeConfig(); + } + + 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.MapFieldReflectionAccessor internalGetMapFieldReflection( + 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); + } + + /** + *
+   * Possible cgroup modes that can be used.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.LinuxNodeConfig.CgroupMode} + */ + public enum CgroupMode + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * CGROUP_MODE_UNSPECIFIED is when unspecified cgroup configuration is used.
+     * The default for the GKE node OS image will be used.
+     * 
+ * + * CGROUP_MODE_UNSPECIFIED = 0; + */ + CGROUP_MODE_UNSPECIFIED(0), + /** + *
+     * CGROUP_MODE_V1 specifies to use cgroupv1 for the cgroup configuration on
+     * the node image.
+     * 
+ * + * CGROUP_MODE_V1 = 1; + */ + CGROUP_MODE_V1(1), + /** + *
+     * CGROUP_MODE_V2 specifies to use cgroupv2 for the cgroup configuration on
+     * the node image.
+     * 
+ * + * CGROUP_MODE_V2 = 2; + */ + CGROUP_MODE_V2(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * CGROUP_MODE_UNSPECIFIED is when unspecified cgroup configuration is used.
+     * The default for the GKE node OS image will be used.
+     * 
+ * + * CGROUP_MODE_UNSPECIFIED = 0; + */ + public static final int CGROUP_MODE_UNSPECIFIED_VALUE = 0; + /** + *
+     * CGROUP_MODE_V1 specifies to use cgroupv1 for the cgroup configuration on
+     * the node image.
+     * 
+ * + * CGROUP_MODE_V1 = 1; + */ + public static final int CGROUP_MODE_V1_VALUE = 1; + /** + *
+     * CGROUP_MODE_V2 specifies to use cgroupv2 for the cgroup configuration on
+     * the node image.
+     * 
+ * + * CGROUP_MODE_V2 = 2; + */ + public static final int CGROUP_MODE_V2_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 CgroupMode 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 CgroupMode forNumber(int value) { + switch (value) { + case 0: return CGROUP_MODE_UNSPECIFIED; + case 1: return CGROUP_MODE_V1; + case 2: return CGROUP_MODE_V2; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + CgroupMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CgroupMode findValueByNumber(int number) { + return CgroupMode.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.LinuxNodeConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final CgroupMode[] VALUES = values(); + + public static CgroupMode 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 CgroupMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.LinuxNodeConfig.CgroupMode) + } + + public static final int SYSCTLS_FIELD_NUMBER = 1; + private static final class SysctlsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_LinuxNodeConfig_SysctlsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> 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.busy_poll
+   * net.core.busy_read
+   * 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 NullPointerException("map key"); } + 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.busy_poll
+   * net.core.busy_read
+   * 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.busy_poll
+   * net.core.busy_read
+   * 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 /* nullable */ +java.lang.String getSysctlsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + 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.busy_poll
+   * net.core.busy_read
+   * 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 NullPointerException("map key"); } + java.util.Map map = + internalGetSysctls().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int CGROUP_MODE_FIELD_NUMBER = 2; + private int cgroupMode_ = 0; + /** + *
+   * cgroup_mode specifies the cgroup mode to be used on the node.
+   * 
+ * + * .google.container.v1beta1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; + * @return The enum numeric value on the wire for cgroupMode. + */ + @java.lang.Override public int getCgroupModeValue() { + return cgroupMode_; + } + /** + *
+   * cgroup_mode specifies the cgroup mode to be used on the node.
+   * 
+ * + * .google.container.v1beta1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; + * @return The cgroupMode. + */ + @java.lang.Override public com.google.container.v1beta1.LinuxNodeConfig.CgroupMode getCgroupMode() { + com.google.container.v1beta1.LinuxNodeConfig.CgroupMode result = com.google.container.v1beta1.LinuxNodeConfig.CgroupMode.forNumber(cgroupMode_); + return result == null ? com.google.container.v1beta1.LinuxNodeConfig.CgroupMode.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 { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetSysctls(), + SysctlsDefaultEntryHolder.defaultEntry, + 1); + if (cgroupMode_ != com.google.container.v1beta1.LinuxNodeConfig.CgroupMode.CGROUP_MODE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, cgroupMode_); + } + getUnknownFields().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__); + } + if (cgroupMode_ != com.google.container.v1beta1.LinuxNodeConfig.CgroupMode.CGROUP_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, cgroupMode_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (cgroupMode_ != other.cgroupMode_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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 = (37 * hash) + CGROUP_MODE_FIELD_NUMBER; + hash = (53 * hash) + cgroupMode_; + hash = (29 * hash) + getUnknownFields().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.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetSysctls(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + 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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableSysctls().clear(); + cgroupMode_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.LinuxNodeConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sysctls_ = internalGetSysctls(); + result.sysctls_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.cgroupMode_ = cgroupMode_; + } + } + + @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()); + bitField0_ |= 0x00000001; + if (other.cgroupMode_ != 0) { + setCgroupModeValue(other.getCgroupModeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.MapEntry + sysctls__ = input.readMessage( + SysctlsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableSysctls().getMutableMap().put( + sysctls__.getKey(), sysctls__.getValue()); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + cgroupMode_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> 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() { + if (sysctls_ == null) { + sysctls_ = com.google.protobuf.MapField.newMapField( + SysctlsDefaultEntryHolder.defaultEntry); + } + if (!sysctls_.isMutable()) { + sysctls_ = sysctls_.copy(); + } + bitField0_ |= 0x00000001; + onChanged(); + 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.busy_poll
+     * net.core.busy_read
+     * 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 NullPointerException("map key"); } + 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.busy_poll
+     * net.core.busy_read
+     * 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.busy_poll
+     * net.core.busy_read
+     * 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 /* nullable */ +java.lang.String getSysctlsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + 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.busy_poll
+     * net.core.busy_read
+     * 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 NullPointerException("map key"); } + java.util.Map map = + internalGetSysctls().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearSysctls() { + bitField0_ = (bitField0_ & ~0x00000001); + 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.busy_poll
+     * net.core.busy_read
+     * 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 NullPointerException("map key"); } + internalGetMutableSysctls().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableSysctls() { + bitField0_ |= 0x00000001; + 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.busy_poll
+     * net.core.busy_read
+     * 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 NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableSysctls().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000001; + 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.busy_poll
+     * net.core.busy_read
+     * 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); + bitField0_ |= 0x00000001; + return this; + } + + private int cgroupMode_ = 0; + /** + *
+     * cgroup_mode specifies the cgroup mode to be used on the node.
+     * 
+ * + * .google.container.v1beta1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; + * @return The enum numeric value on the wire for cgroupMode. + */ + @java.lang.Override public int getCgroupModeValue() { + return cgroupMode_; + } + /** + *
+     * cgroup_mode specifies the cgroup mode to be used on the node.
+     * 
+ * + * .google.container.v1beta1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; + * @param value The enum numeric value on the wire for cgroupMode to set. + * @return This builder for chaining. + */ + public Builder setCgroupModeValue(int value) { + cgroupMode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * cgroup_mode specifies the cgroup mode to be used on the node.
+     * 
+ * + * .google.container.v1beta1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; + * @return The cgroupMode. + */ + @java.lang.Override + public com.google.container.v1beta1.LinuxNodeConfig.CgroupMode getCgroupMode() { + com.google.container.v1beta1.LinuxNodeConfig.CgroupMode result = com.google.container.v1beta1.LinuxNodeConfig.CgroupMode.forNumber(cgroupMode_); + return result == null ? com.google.container.v1beta1.LinuxNodeConfig.CgroupMode.UNRECOGNIZED : result; + } + /** + *
+     * cgroup_mode specifies the cgroup mode to be used on the node.
+     * 
+ * + * .google.container.v1beta1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; + * @param value The cgroupMode to set. + * @return This builder for chaining. + */ + public Builder setCgroupMode(com.google.container.v1beta1.LinuxNodeConfig.CgroupMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + cgroupMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * cgroup_mode specifies the cgroup mode to be used on the node.
+     * 
+ * + * .google.container.v1beta1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; + * @return This builder for chaining. + */ + public Builder clearCgroupMode() { + bitField0_ = (bitField0_ & ~0x00000002); + cgroupMode_ = 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.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LinuxNodeConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LinuxNodeConfigOrBuilder.java new file mode 100644 index 000000000000..f02010dae700 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LinuxNodeConfigOrBuilder.java @@ -0,0 +1,158 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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.busy_poll
+   * net.core.busy_read
+   * 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.busy_poll
+   * net.core.busy_read
+   * 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.busy_poll
+   * net.core.busy_read
+   * 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.busy_poll
+   * net.core.busy_read
+   * 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; + */ + /* nullable */ +java.lang.String getSysctlsOrDefault( + java.lang.String key, + /* nullable */ +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.busy_poll
+   * net.core.busy_read
+   * 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); + + /** + *
+   * cgroup_mode specifies the cgroup mode to be used on the node.
+   * 
+ * + * .google.container.v1beta1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; + * @return The enum numeric value on the wire for cgroupMode. + */ + int getCgroupModeValue(); + /** + *
+   * cgroup_mode specifies the cgroup mode to be used on the node.
+   * 
+ * + * .google.container.v1beta1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; + * @return The cgroupMode. + */ + com.google.container.v1beta1.LinuxNodeConfig.CgroupMode getCgroupMode(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequest.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequest.java new file mode 100644 index 000000000000..9ce1a378e9d9 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequest.java @@ -0,0 +1,983 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3435 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3435 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3442 + * @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]; + * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3442 + * @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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parent_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parent_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.ListClustersRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.parent_ = parent_; + } + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3435 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3435 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3435 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3435 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3435 + * @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; + bitField0_ |= 0x00000001; + 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]; + * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3442 + * @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]; + * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3442 + * @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]; + * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3442 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3442 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + 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]; + * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3442 + * @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; + bitField0_ |= 0x00000002; + 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; + bitField0_ |= 0x00000004; + 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(); + bitField0_ = (bitField0_ & ~0x00000004); + 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; + bitField0_ |= 0x00000004; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequestOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequestOrBuilder.java new file mode 100644 index 000000000000..25fcc7883d5d --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequestOrBuilder.java @@ -0,0 +1,92 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3435 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3435 + * @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]; + * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3442 + * @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]; + * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3442 + * @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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersResponse.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersResponse.java new file mode 100644 index 000000000000..8bd2d1a80a43 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersResponse.java @@ -0,0 +1,1137 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListClustersResponse(); + } + + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList missingZones_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * 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)); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (clustersBuilder_ == null) { + clusters_ = java.util.Collections.emptyList(); + } else { + clusters_ = null; + clustersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + missingZones_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + 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); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1beta1.ListClustersResponse result) { + if (clustersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + clusters_ = java.util.Collections.unmodifiableList(clusters_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.clusters_ = clusters_; + } else { + result.clusters_ = clustersBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1beta1.ListClustersResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + missingZones_.makeImmutable(); + result.missingZones_ = missingZones_; + } + } + + @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_ |= 0x00000002; + } else { + ensureMissingZonesIsMutable(); + missingZones_.addAll(other.missingZones_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.container.v1beta1.Cluster m = + input.readMessage( + com.google.container.v1beta1.Cluster.parser(), + extensionRegistry); + if (clustersBuilder_ == null) { + ensureClustersIsMutable(); + clusters_.add(m); + } else { + clustersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureMissingZonesIsMutable(); + missingZones_.add(s); + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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.LazyStringArrayList missingZones_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureMissingZonesIsMutable() { + if (!missingZones_.isModifiable()) { + 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() { + missingZones_.makeImmutable(); + 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); + } + /** + *
+     * 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); + 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 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); + 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 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_); + 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; + * @return This builder for chaining. + */ + public Builder clearMissingZones() { + missingZones_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + 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); + bitField0_ |= 0x00000002; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersResponseOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersResponseOrBuilder.java new file mode 100644 index 000000000000..064d65d182be --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersResponseOrBuilder.java @@ -0,0 +1,104 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsRequest.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsRequest.java new file mode 100644 index 000000000000..8d56acd656d6 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsRequest.java @@ -0,0 +1,585 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.ListLocationsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsRequestOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsRequestOrBuilder.java new file mode 100644 index 000000000000..fa33f11943d2 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsRequestOrBuilder.java @@ -0,0 +1,32 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsResponse.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsResponse.java new file mode 100644 index 000000000000..1c4ec7b9f089 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsResponse.java @@ -0,0 +1,1047 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (locationsBuilder_ == null) { + locations_ = java.util.Collections.emptyList(); + } else { + locations_ = null; + locationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + 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); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1beta1.ListLocationsResponse result) { + if (locationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + locations_ = java.util.Collections.unmodifiableList(locations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.locations_ = locations_; + } else { + result.locations_ = locationsBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1beta1.ListLocationsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @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_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.container.v1beta1.Location m = + input.readMessage( + com.google.container.v1beta1.Location.parser(), + extensionRegistry); + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.add(m); + } else { + locationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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; + bitField0_ |= 0x00000002; + 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(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsResponseOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsResponseOrBuilder.java new file mode 100644 index 000000000000..26b26e2dbaef --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListLocationsResponseOrBuilder.java @@ -0,0 +1,80 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequest.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequest.java new file mode 100644 index 000000000000..ec79686d1cba --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequest.java @@ -0,0 +1,1161 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3704 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3704 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3711 + * @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]; + * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3711 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3715 + * @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]; + * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3715 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + *
+   * The parent (project, location, cluster name) 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 name) 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parent_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.ListNodePoolsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.parent_ = parent_; + } + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 42: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3704 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3704 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3704 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3704 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3704 + * @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; + bitField0_ |= 0x00000001; + 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]; + * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3711 + * @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]; + * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3711 + * @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]; + * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3711 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3711 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + 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]; + * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3711 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3715 + * @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]; + * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3715 + * @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]; + * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3715 + * @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; + bitField0_ |= 0x00000004; + 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]; + * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3715 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + 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]; + * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3715 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object parent_ = ""; + /** + *
+     * The parent (project, location, cluster name) 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 name) 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 name) 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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The parent (project, location, cluster name) 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(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * The parent (project, location, cluster name) 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; + bitField0_ |= 0x00000008; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequestOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequestOrBuilder.java new file mode 100644 index 000000000000..628f7b8b5591 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequestOrBuilder.java @@ -0,0 +1,116 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3704 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3704 + * @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]; + * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3711 + * @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]; + * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3711 + * @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]; + * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3715 + * @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]; + * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3715 + * @return The bytes for clusterId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * The parent (project, location, cluster name) 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 name) 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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsResponse.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsResponse.java new file mode 100644 index 000000000000..1aa8a3fbf947 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsResponse.java @@ -0,0 +1,860 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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; + @SuppressWarnings("serial") + 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)); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (nodePoolsBuilder_ == null) { + nodePools_ = java.util.Collections.emptyList(); + } else { + nodePools_ = null; + nodePoolsBuilder_.clear(); + } + 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_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); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1beta1.ListNodePoolsResponse result) { + if (nodePoolsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + nodePools_ = java.util.Collections.unmodifiableList(nodePools_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.nodePools_ = nodePools_; + } else { + result.nodePools_ = nodePoolsBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1beta1.ListNodePoolsResponse result) { + int from_bitField0_ = bitField0_; + } + + @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.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.container.v1beta1.NodePool m = + input.readMessage( + com.google.container.v1beta1.NodePool.parser(), + extensionRegistry); + if (nodePoolsBuilder_ == null) { + ensureNodePoolsIsMutable(); + nodePools_.add(m); + } else { + nodePoolsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsResponseOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsResponseOrBuilder.java new file mode 100644 index 000000000000..2ce52fe60a13 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsResponseOrBuilder.java @@ -0,0 +1,54 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequest.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequest.java new file mode 100644 index 000000000000..9ea1b8fc7d4b --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequest.java @@ -0,0 +1,983 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3490 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3490 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3497 + * @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]; + * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3497 + * @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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parent_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parent_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.ListOperationsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.parent_ = parent_; + } + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3490 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3490 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3490 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3490 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the parent field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3490 + * @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; + bitField0_ |= 0x00000001; + 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]; + * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3497 + * @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]; + * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3497 + * @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]; + * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3497 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3497 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + 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]; + * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3497 + * @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; + bitField0_ |= 0x00000002; + 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; + bitField0_ |= 0x00000004; + 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(); + bitField0_ = (bitField0_ & ~0x00000004); + 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; + bitField0_ |= 0x00000004; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequestOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequestOrBuilder.java new file mode 100644 index 000000000000..7749fddb9ecd --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequestOrBuilder.java @@ -0,0 +1,92 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3490 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the parent field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3490 + * @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]; + * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3497 + * @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]; + * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3497 + * @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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsResponse.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsResponse.java new file mode 100644 index 000000000000..b68cd71279b5 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsResponse.java @@ -0,0 +1,1114 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListOperationsResponse(); + } + + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList missingZones_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * 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)); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (operationsBuilder_ == null) { + operations_ = java.util.Collections.emptyList(); + } else { + operations_ = null; + operationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + missingZones_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + 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); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1beta1.ListOperationsResponse result) { + if (operationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + operations_ = java.util.Collections.unmodifiableList(operations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.operations_ = operations_; + } else { + result.operations_ = operationsBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1beta1.ListOperationsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + missingZones_.makeImmutable(); + result.missingZones_ = missingZones_; + } + } + + @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_ |= 0x00000002; + } else { + ensureMissingZonesIsMutable(); + missingZones_.addAll(other.missingZones_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.container.v1beta1.Operation m = + input.readMessage( + com.google.container.v1beta1.Operation.parser(), + extensionRegistry); + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + operations_.add(m); + } else { + operationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureMissingZonesIsMutable(); + missingZones_.add(s); + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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.LazyStringArrayList missingZones_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureMissingZonesIsMutable() { + if (!missingZones_.isModifiable()) { + 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() { + missingZones_.makeImmutable(); + 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); + } + /** + *
+     * 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); + 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 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); + 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 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_); + 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; + * @return This builder for chaining. + */ + public Builder clearMissingZones() { + missingZones_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + 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); + bitField0_ |= 0x00000002; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsResponseOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsResponseOrBuilder.java new file mode 100644 index 000000000000..a110d1895c67 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsResponseOrBuilder.java @@ -0,0 +1,99 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksRequest.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksRequest.java new file mode 100644 index 000000000000..109dc2bdab04 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksRequest.java @@ -0,0 +1,1037 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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_ = 0; + /** + *
+   * 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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.ListUsableSubnetworksRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + 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; + bitField0_ |= 0x00000002; + 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(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + 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; + bitField0_ |= 0x00000004; + 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() { + bitField0_ = (bitField0_ & ~0x00000004); + 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; + bitField0_ |= 0x00000008; + 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(); + bitField0_ = (bitField0_ & ~0x00000008); + 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; + bitField0_ |= 0x00000008; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksRequestOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksRequestOrBuilder.java new file mode 100644 index 000000000000..224e8bc4d835 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksRequestOrBuilder.java @@ -0,0 +1,93 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksResponse.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksResponse.java new file mode 100644 index 000000000000..03201a9c6567 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksResponse.java @@ -0,0 +1,1047 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (subnetworksBuilder_ == null) { + subnetworks_ = java.util.Collections.emptyList(); + } else { + subnetworks_ = null; + subnetworksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + 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); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1beta1.ListUsableSubnetworksResponse result) { + if (subnetworksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + subnetworks_ = java.util.Collections.unmodifiableList(subnetworks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.subnetworks_ = subnetworks_; + } else { + result.subnetworks_ = subnetworksBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1beta1.ListUsableSubnetworksResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @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_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.container.v1beta1.UsableSubnetwork m = + input.readMessage( + com.google.container.v1beta1.UsableSubnetwork.parser(), + extensionRegistry); + if (subnetworksBuilder_ == null) { + ensureSubnetworksIsMutable(); + subnetworks_.add(m); + } else { + subnetworksBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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; + bitField0_ |= 0x00000002; + 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(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksResponseOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksResponseOrBuilder.java new file mode 100644 index 000000000000..a1fb369b7585 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListUsableSubnetworksResponseOrBuilder.java @@ -0,0 +1,80 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LocalNvmeSsdBlockConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LocalNvmeSsdBlockConfig.java new file mode 100644 index 000000000000..666e91170b35 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LocalNvmeSsdBlockConfig.java @@ -0,0 +1,558 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * LocalNvmeSsdBlockConfig contains configuration for using raw-block local
+ * NVMe SSDs
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.LocalNvmeSsdBlockConfig} + */ +public final class LocalNvmeSsdBlockConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.LocalNvmeSsdBlockConfig) + LocalNvmeSsdBlockConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use LocalNvmeSsdBlockConfig.newBuilder() to construct. + private LocalNvmeSsdBlockConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LocalNvmeSsdBlockConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LocalNvmeSsdBlockConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_LocalNvmeSsdBlockConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_LocalNvmeSsdBlockConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.LocalNvmeSsdBlockConfig.class, com.google.container.v1beta1.LocalNvmeSsdBlockConfig.Builder.class); + } + + public static final int LOCAL_SSD_COUNT_FIELD_NUMBER = 1; + private int localSsdCount_ = 0; + /** + *
+   * Number of local NVMe SSDs to use.  The limit for this value is dependent
+   * upon the maximum number of disk available on a machine per zone. See:
+   * https://cloud.google.com/compute/docs/disks/local-ssd
+   * for more information.
+   *
+   * A zero (or unset) value has different meanings depending on machine type
+   * being used:
+   * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
+   * zero (or unset) means to disable using local SSDs as ephemeral storage.
+   * 2. For Gen3 machines which dictate a specific number of local ssds, zero
+   * (or unset) means to use the default number of local ssds that goes with
+   * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
+   * ssds would be provisioned. For c3-standard-8 (which doesn't support local
+   * ssds), 0 will be provisioned. See
+   * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
+   * for more info.
+   * 
+ * + * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.LocalNvmeSsdBlockConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.LocalNvmeSsdBlockConfig other = (com.google.container.v1beta1.LocalNvmeSsdBlockConfig) obj; + + if (getLocalSsdCount() + != other.getLocalSsdCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.LocalNvmeSsdBlockConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.LocalNvmeSsdBlockConfig parseFrom( + 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.LocalNvmeSsdBlockConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.LocalNvmeSsdBlockConfig parseFrom( + com.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.LocalNvmeSsdBlockConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.LocalNvmeSsdBlockConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.LocalNvmeSsdBlockConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.LocalNvmeSsdBlockConfig parseFrom( + java.io.InputStream 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.LocalNvmeSsdBlockConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.LocalNvmeSsdBlockConfig parseDelimitedFrom( + java.io.InputStream 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.LocalNvmeSsdBlockConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.LocalNvmeSsdBlockConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.LocalNvmeSsdBlockConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * LocalNvmeSsdBlockConfig contains configuration for using raw-block local
+   * NVMe SSDs
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.LocalNvmeSsdBlockConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.LocalNvmeSsdBlockConfig) + com.google.container.v1beta1.LocalNvmeSsdBlockConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_LocalNvmeSsdBlockConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_LocalNvmeSsdBlockConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.LocalNvmeSsdBlockConfig.class, com.google.container.v1beta1.LocalNvmeSsdBlockConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.LocalNvmeSsdBlockConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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_LocalNvmeSsdBlockConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.LocalNvmeSsdBlockConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.LocalNvmeSsdBlockConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.LocalNvmeSsdBlockConfig build() { + com.google.container.v1beta1.LocalNvmeSsdBlockConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.LocalNvmeSsdBlockConfig buildPartial() { + com.google.container.v1beta1.LocalNvmeSsdBlockConfig result = new com.google.container.v1beta1.LocalNvmeSsdBlockConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.LocalNvmeSsdBlockConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.localSsdCount_ = localSsdCount_; + } + } + + @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.LocalNvmeSsdBlockConfig) { + return mergeFrom((com.google.container.v1beta1.LocalNvmeSsdBlockConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.LocalNvmeSsdBlockConfig other) { + if (other == com.google.container.v1beta1.LocalNvmeSsdBlockConfig.getDefaultInstance()) return this; + if (other.getLocalSsdCount() != 0) { + setLocalSsdCount(other.getLocalSsdCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + localSsdCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int localSsdCount_ ; + /** + *
+     * Number of local NVMe SSDs to use.  The limit for this value is dependent
+     * upon the maximum number of disk available on a machine per zone. See:
+     * https://cloud.google.com/compute/docs/disks/local-ssd
+     * for more information.
+     *
+     * A zero (or unset) value has different meanings depending on machine type
+     * being used:
+     * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
+     * zero (or unset) means to disable using local SSDs as ephemeral storage.
+     * 2. For Gen3 machines which dictate a specific number of local ssds, zero
+     * (or unset) means to use the default number of local ssds that goes with
+     * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
+     * ssds would be provisioned. For c3-standard-8 (which doesn't support local
+     * ssds), 0 will be provisioned. See
+     * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
+     * for more info.
+     * 
+ * + * int32 local_ssd_count = 1; + * @return The localSsdCount. + */ + @java.lang.Override + public int getLocalSsdCount() { + return localSsdCount_; + } + /** + *
+     * Number of local NVMe SSDs to use.  The limit for this value is dependent
+     * upon the maximum number of disk available on a machine per zone. See:
+     * https://cloud.google.com/compute/docs/disks/local-ssd
+     * for more information.
+     *
+     * A zero (or unset) value has different meanings depending on machine type
+     * being used:
+     * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
+     * zero (or unset) means to disable using local SSDs as ephemeral storage.
+     * 2. For Gen3 machines which dictate a specific number of local ssds, zero
+     * (or unset) means to use the default number of local ssds that goes with
+     * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
+     * ssds would be provisioned. For c3-standard-8 (which doesn't support local
+     * ssds), 0 will be provisioned. See
+     * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
+     * for more info.
+     * 
+ * + * int32 local_ssd_count = 1; + * @param value The localSsdCount to set. + * @return This builder for chaining. + */ + public Builder setLocalSsdCount(int value) { + + localSsdCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Number of local NVMe SSDs to use.  The limit for this value is dependent
+     * upon the maximum number of disk available on a machine per zone. See:
+     * https://cloud.google.com/compute/docs/disks/local-ssd
+     * for more information.
+     *
+     * A zero (or unset) value has different meanings depending on machine type
+     * being used:
+     * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
+     * zero (or unset) means to disable using local SSDs as ephemeral storage.
+     * 2. For Gen3 machines which dictate a specific number of local ssds, zero
+     * (or unset) means to use the default number of local ssds that goes with
+     * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
+     * ssds would be provisioned. For c3-standard-8 (which doesn't support local
+     * ssds), 0 will be provisioned. See
+     * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
+     * for more info.
+     * 
+ * + * int32 local_ssd_count = 1; + * @return This builder for chaining. + */ + public Builder clearLocalSsdCount() { + bitField0_ = (bitField0_ & ~0x00000001); + 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.LocalNvmeSsdBlockConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.LocalNvmeSsdBlockConfig) + private static final com.google.container.v1beta1.LocalNvmeSsdBlockConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.LocalNvmeSsdBlockConfig(); + } + + public static com.google.container.v1beta1.LocalNvmeSsdBlockConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocalNvmeSsdBlockConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.LocalNvmeSsdBlockConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LocalNvmeSsdBlockConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LocalNvmeSsdBlockConfigOrBuilder.java new file mode 100644 index 000000000000..f431ec24b667 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LocalNvmeSsdBlockConfigOrBuilder.java @@ -0,0 +1,35 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface LocalNvmeSsdBlockConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.LocalNvmeSsdBlockConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Number of local NVMe SSDs to use.  The limit for this value is dependent
+   * upon the maximum number of disk available on a machine per zone. See:
+   * https://cloud.google.com/compute/docs/disks/local-ssd
+   * for more information.
+   *
+   * A zero (or unset) value has different meanings depending on machine type
+   * being used:
+   * 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
+   * zero (or unset) means to disable using local SSDs as ephemeral storage.
+   * 2. For Gen3 machines which dictate a specific number of local ssds, zero
+   * (or unset) means to use the default number of local ssds that goes with
+   * that machine type. For example, for a c3-standard-8-lssd machine, 2 local
+   * ssds would be provisioned. For c3-standard-8 (which doesn't support local
+   * ssds), 0 will be provisioned. See
+   * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds
+   * for more info.
+   * 
+ * + * int32 local_ssd_count = 1; + * @return The localSsdCount. + */ + int getLocalSsdCount(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Location.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Location.java new file mode 100644 index 000000000000..b33b482e25de --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Location.java @@ -0,0 +1,944 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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< + LocationType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LocationType findValueByNumber(int number) { + return LocationType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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_ = 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; + * @return The type. + */ + @java.lang.Override public com.google.container.v1beta1.Location.LocationType getType() { + com.google.container.v1beta1.Location.LocationType result = com.google.container.v1beta1.Location.LocationType.forNumber(type_); + return result == null ? com.google.container.v1beta1.Location.LocationType.UNRECOGNIZED : result; + } + + public static final int NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + 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_ = false; + /** + *
+   * Whether the location is recommended 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + if (recommended_ != false) { + output.writeBool(3, recommended_); + } + getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + if (recommended_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, recommended_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.Location result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.recommended_ = recommended_; + } + } + + @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_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getRecommended() != false) { + setRecommended(other.getRecommended()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + type_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + recommended_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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() { + com.google.container.v1beta1.Location.LocationType result = com.google.container.v1beta1.Location.LocationType.forNumber(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(); + } + bitField0_ |= 0x00000001; + 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() { + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000002; + 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(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean recommended_ ; + /** + *
+     * Whether the location is recommended for GKE cluster scheduling.
+     * 
+ * + * bool recommended = 3; + * @return The recommended. + */ + @java.lang.Override + public boolean getRecommended() { + return recommended_; + } + /** + *
+     * Whether the location is recommended 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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Whether the location is recommended for GKE cluster scheduling.
+     * 
+ * + * bool recommended = 3; + * @return This builder for chaining. + */ + public Builder clearRecommended() { + bitField0_ = (bitField0_ & ~0x00000004); + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LocationOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LocationOrBuilder.java new file mode 100644 index 000000000000..4ff52791b3de --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LocationOrBuilder.java @@ -0,0 +1,63 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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 recommended for GKE cluster scheduling.
+   * 
+ * + * bool recommended = 3; + * @return The recommended. + */ + boolean getRecommended(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingComponentConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingComponentConfig.java new file mode 100644 index 000000000000..17440a5a90a1 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingComponentConfig.java @@ -0,0 +1,940 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * LoggingComponentConfig is cluster logging component configuration.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.LoggingComponentConfig} + */ +public final class LoggingComponentConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.LoggingComponentConfig) + LoggingComponentConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use LoggingComponentConfig.newBuilder() to construct. + private LoggingComponentConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LoggingComponentConfig() { + enableComponents_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LoggingComponentConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_LoggingComponentConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_LoggingComponentConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.LoggingComponentConfig.class, com.google.container.v1beta1.LoggingComponentConfig.Builder.class); + } + + /** + *
+   * GKE components exposing logs
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.LoggingComponentConfig.Component} + */ + public enum Component + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Default value. This shouldn't be used.
+     * 
+ * + * COMPONENT_UNSPECIFIED = 0; + */ + COMPONENT_UNSPECIFIED(0), + /** + *
+     * system components
+     * 
+ * + * SYSTEM_COMPONENTS = 1; + */ + SYSTEM_COMPONENTS(1), + /** + *
+     * workloads
+     * 
+ * + * WORKLOADS = 2; + */ + WORKLOADS(2), + /** + *
+     * kube-apiserver
+     * 
+ * + * APISERVER = 3; + */ + APISERVER(3), + /** + *
+     * kube-scheduler
+     * 
+ * + * SCHEDULER = 4; + */ + SCHEDULER(4), + /** + *
+     * kube-controller-manager
+     * 
+ * + * CONTROLLER_MANAGER = 5; + */ + CONTROLLER_MANAGER(5), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Default value. This shouldn't be used.
+     * 
+ * + * COMPONENT_UNSPECIFIED = 0; + */ + public static final int COMPONENT_UNSPECIFIED_VALUE = 0; + /** + *
+     * system components
+     * 
+ * + * SYSTEM_COMPONENTS = 1; + */ + public static final int SYSTEM_COMPONENTS_VALUE = 1; + /** + *
+     * workloads
+     * 
+ * + * WORKLOADS = 2; + */ + public static final int WORKLOADS_VALUE = 2; + /** + *
+     * kube-apiserver
+     * 
+ * + * APISERVER = 3; + */ + public static final int APISERVER_VALUE = 3; + /** + *
+     * kube-scheduler
+     * 
+ * + * SCHEDULER = 4; + */ + public static final int SCHEDULER_VALUE = 4; + /** + *
+     * kube-controller-manager
+     * 
+ * + * CONTROLLER_MANAGER = 5; + */ + public static final int CONTROLLER_MANAGER_VALUE = 5; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Component valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Component forNumber(int value) { + switch (value) { + case 0: return COMPONENT_UNSPECIFIED; + case 1: return SYSTEM_COMPONENTS; + case 2: return WORKLOADS; + case 3: return APISERVER; + case 4: return SCHEDULER; + case 5: return CONTROLLER_MANAGER; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Component> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Component findValueByNumber(int number) { + return Component.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1beta1.LoggingComponentConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final Component[] VALUES = values(); + + public static Component valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Component(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.LoggingComponentConfig.Component) + } + + public static final int ENABLE_COMPONENTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List enableComponents_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.container.v1beta1.LoggingComponentConfig.Component> enableComponents_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.container.v1beta1.LoggingComponentConfig.Component>() { + public com.google.container.v1beta1.LoggingComponentConfig.Component convert(java.lang.Integer from) { + com.google.container.v1beta1.LoggingComponentConfig.Component result = com.google.container.v1beta1.LoggingComponentConfig.Component.forNumber(from); + return result == null ? com.google.container.v1beta1.LoggingComponentConfig.Component.UNRECOGNIZED : result; + } + }; + /** + *
+   * Select components to collect logs. An empty set would disable all logging.
+   * 
+ * + * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; + * @return A list containing the enableComponents. + */ + @java.lang.Override + public java.util.List getEnableComponentsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.container.v1beta1.LoggingComponentConfig.Component>(enableComponents_, enableComponents_converter_); + } + /** + *
+   * Select components to collect logs. An empty set would disable all logging.
+   * 
+ * + * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; + * @return The count of enableComponents. + */ + @java.lang.Override + public int getEnableComponentsCount() { + return enableComponents_.size(); + } + /** + *
+   * Select components to collect logs. An empty set would disable all logging.
+   * 
+ * + * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; + * @param index The index of the element to return. + * @return The enableComponents at the given index. + */ + @java.lang.Override + public com.google.container.v1beta1.LoggingComponentConfig.Component getEnableComponents(int index) { + return enableComponents_converter_.convert(enableComponents_.get(index)); + } + /** + *
+   * Select components to collect logs. An empty set would disable all logging.
+   * 
+ * + * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; + * @return A list containing the enum numeric values on the wire for enableComponents. + */ + @java.lang.Override + public java.util.List + getEnableComponentsValueList() { + return enableComponents_; + } + /** + *
+   * Select components to collect logs. An empty set would disable all logging.
+   * 
+ * + * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of enableComponents at the given index. + */ + @java.lang.Override + public int getEnableComponentsValue(int index) { + return enableComponents_.get(index); + } + private int enableComponentsMemoizedSerializedSize; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (getEnableComponentsList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(enableComponentsMemoizedSerializedSize); + } + for (int i = 0; i < enableComponents_.size(); i++) { + output.writeEnumNoTag(enableComponents_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < enableComponents_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(enableComponents_.get(i)); + } + size += dataSize; + if (!getEnableComponentsList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }enableComponentsMemoizedSerializedSize = dataSize; + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.LoggingComponentConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.LoggingComponentConfig other = (com.google.container.v1beta1.LoggingComponentConfig) obj; + + if (!enableComponents_.equals(other.enableComponents_)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEnableComponentsCount() > 0) { + hash = (37 * hash) + ENABLE_COMPONENTS_FIELD_NUMBER; + hash = (53 * hash) + enableComponents_.hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.LoggingComponentConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.LoggingComponentConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.LoggingComponentConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.LoggingComponentConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.LoggingComponentConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.LoggingComponentConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.LoggingComponentConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.LoggingComponentConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.LoggingComponentConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.LoggingComponentConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.LoggingComponentConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.LoggingComponentConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.LoggingComponentConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * LoggingComponentConfig is cluster logging component configuration.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.LoggingComponentConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.LoggingComponentConfig) + com.google.container.v1beta1.LoggingComponentConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_LoggingComponentConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_LoggingComponentConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.LoggingComponentConfig.class, com.google.container.v1beta1.LoggingComponentConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.LoggingComponentConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enableComponents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_LoggingComponentConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.LoggingComponentConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.LoggingComponentConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.LoggingComponentConfig build() { + com.google.container.v1beta1.LoggingComponentConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.LoggingComponentConfig buildPartial() { + com.google.container.v1beta1.LoggingComponentConfig result = new com.google.container.v1beta1.LoggingComponentConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1beta1.LoggingComponentConfig result) { + if (((bitField0_ & 0x00000001) != 0)) { + enableComponents_ = java.util.Collections.unmodifiableList(enableComponents_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.enableComponents_ = enableComponents_; + } + + private void buildPartial0(com.google.container.v1beta1.LoggingComponentConfig result) { + int from_bitField0_ = bitField0_; + } + + @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.LoggingComponentConfig) { + return mergeFrom((com.google.container.v1beta1.LoggingComponentConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.LoggingComponentConfig other) { + if (other == com.google.container.v1beta1.LoggingComponentConfig.getDefaultInstance()) return this; + if (!other.enableComponents_.isEmpty()) { + if (enableComponents_.isEmpty()) { + enableComponents_ = other.enableComponents_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEnableComponentsIsMutable(); + enableComponents_.addAll(other.enableComponents_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int tmpRaw = input.readEnum(); + ensureEnableComponentsIsMutable(); + enableComponents_.add(tmpRaw); + break; + } // case 8 + case 10: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureEnableComponentsIsMutable(); + enableComponents_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List enableComponents_ = + java.util.Collections.emptyList(); + private void ensureEnableComponentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + enableComponents_ = new java.util.ArrayList(enableComponents_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * Select components to collect logs. An empty set would disable all logging.
+     * 
+ * + * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; + * @return A list containing the enableComponents. + */ + public java.util.List getEnableComponentsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.container.v1beta1.LoggingComponentConfig.Component>(enableComponents_, enableComponents_converter_); + } + /** + *
+     * Select components to collect logs. An empty set would disable all logging.
+     * 
+ * + * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; + * @return The count of enableComponents. + */ + public int getEnableComponentsCount() { + return enableComponents_.size(); + } + /** + *
+     * Select components to collect logs. An empty set would disable all logging.
+     * 
+ * + * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; + * @param index The index of the element to return. + * @return The enableComponents at the given index. + */ + public com.google.container.v1beta1.LoggingComponentConfig.Component getEnableComponents(int index) { + return enableComponents_converter_.convert(enableComponents_.get(index)); + } + /** + *
+     * Select components to collect logs. An empty set would disable all logging.
+     * 
+ * + * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; + * @param index The index to set the value at. + * @param value The enableComponents to set. + * @return This builder for chaining. + */ + public Builder setEnableComponents( + int index, com.google.container.v1beta1.LoggingComponentConfig.Component value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnableComponentsIsMutable(); + enableComponents_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + *
+     * Select components to collect logs. An empty set would disable all logging.
+     * 
+ * + * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; + * @param value The enableComponents to add. + * @return This builder for chaining. + */ + public Builder addEnableComponents(com.google.container.v1beta1.LoggingComponentConfig.Component value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnableComponentsIsMutable(); + enableComponents_.add(value.getNumber()); + onChanged(); + return this; + } + /** + *
+     * Select components to collect logs. An empty set would disable all logging.
+     * 
+ * + * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; + * @param values The enableComponents to add. + * @return This builder for chaining. + */ + public Builder addAllEnableComponents( + java.lang.Iterable values) { + ensureEnableComponentsIsMutable(); + for (com.google.container.v1beta1.LoggingComponentConfig.Component value : values) { + enableComponents_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + *
+     * Select components to collect logs. An empty set would disable all logging.
+     * 
+ * + * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; + * @return This builder for chaining. + */ + public Builder clearEnableComponents() { + enableComponents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Select components to collect logs. An empty set would disable all logging.
+     * 
+ * + * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; + * @return A list containing the enum numeric values on the wire for enableComponents. + */ + public java.util.List + getEnableComponentsValueList() { + return java.util.Collections.unmodifiableList(enableComponents_); + } + /** + *
+     * Select components to collect logs. An empty set would disable all logging.
+     * 
+ * + * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of enableComponents at the given index. + */ + public int getEnableComponentsValue(int index) { + return enableComponents_.get(index); + } + /** + *
+     * Select components to collect logs. An empty set would disable all logging.
+     * 
+ * + * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for enableComponents to set. + * @return This builder for chaining. + */ + public Builder setEnableComponentsValue( + int index, int value) { + ensureEnableComponentsIsMutable(); + enableComponents_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * Select components to collect logs. An empty set would disable all logging.
+     * 
+ * + * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; + * @param value The enum numeric value on the wire for enableComponents to add. + * @return This builder for chaining. + */ + public Builder addEnableComponentsValue(int value) { + ensureEnableComponentsIsMutable(); + enableComponents_.add(value); + onChanged(); + return this; + } + /** + *
+     * Select components to collect logs. An empty set would disable all logging.
+     * 
+ * + * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; + * @param values The enum numeric values on the wire for enableComponents to add. + * @return This builder for chaining. + */ + public Builder addAllEnableComponentsValue( + java.lang.Iterable values) { + ensureEnableComponentsIsMutable(); + for (int value : values) { + enableComponents_.add(value); + } + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.LoggingComponentConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.LoggingComponentConfig) + private static final com.google.container.v1beta1.LoggingComponentConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.LoggingComponentConfig(); + } + + public static com.google.container.v1beta1.LoggingComponentConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LoggingComponentConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.LoggingComponentConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingComponentConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingComponentConfigOrBuilder.java new file mode 100644 index 000000000000..241c5f067d72 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingComponentConfigOrBuilder.java @@ -0,0 +1,59 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface LoggingComponentConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.LoggingComponentConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Select components to collect logs. An empty set would disable all logging.
+   * 
+ * + * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; + * @return A list containing the enableComponents. + */ + java.util.List getEnableComponentsList(); + /** + *
+   * Select components to collect logs. An empty set would disable all logging.
+   * 
+ * + * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; + * @return The count of enableComponents. + */ + int getEnableComponentsCount(); + /** + *
+   * Select components to collect logs. An empty set would disable all logging.
+   * 
+ * + * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; + * @param index The index of the element to return. + * @return The enableComponents at the given index. + */ + com.google.container.v1beta1.LoggingComponentConfig.Component getEnableComponents(int index); + /** + *
+   * Select components to collect logs. An empty set would disable all logging.
+   * 
+ * + * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; + * @return A list containing the enum numeric values on the wire for enableComponents. + */ + java.util.List + getEnableComponentsValueList(); + /** + *
+   * Select components to collect logs. An empty set would disable all logging.
+   * 
+ * + * repeated .google.container.v1beta1.LoggingComponentConfig.Component enable_components = 1; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of enableComponents at the given index. + */ + int getEnableComponentsValue(int index); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingConfig.java new file mode 100644 index 000000000000..13a3702eff93 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingConfig.java @@ -0,0 +1,655 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * LoggingConfig is cluster logging configuration.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.LoggingConfig} + */ +public final class LoggingConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.LoggingConfig) + LoggingConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use LoggingConfig.newBuilder() to construct. + private LoggingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LoggingConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LoggingConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_LoggingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_LoggingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.LoggingConfig.class, com.google.container.v1beta1.LoggingConfig.Builder.class); + } + + private int bitField0_; + public static final int COMPONENT_CONFIG_FIELD_NUMBER = 1; + private com.google.container.v1beta1.LoggingComponentConfig componentConfig_; + /** + *
+   * Logging components configuration
+   * 
+ * + * .google.container.v1beta1.LoggingComponentConfig component_config = 1; + * @return Whether the componentConfig field is set. + */ + @java.lang.Override + public boolean hasComponentConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Logging components configuration
+   * 
+ * + * .google.container.v1beta1.LoggingComponentConfig component_config = 1; + * @return The componentConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.LoggingComponentConfig getComponentConfig() { + return componentConfig_ == null ? com.google.container.v1beta1.LoggingComponentConfig.getDefaultInstance() : componentConfig_; + } + /** + *
+   * Logging components configuration
+   * 
+ * + * .google.container.v1beta1.LoggingComponentConfig component_config = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.LoggingComponentConfigOrBuilder getComponentConfigOrBuilder() { + return componentConfig_ == null ? com.google.container.v1beta1.LoggingComponentConfig.getDefaultInstance() : componentConfig_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getComponentConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getComponentConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.LoggingConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.LoggingConfig other = (com.google.container.v1beta1.LoggingConfig) obj; + + if (hasComponentConfig() != other.hasComponentConfig()) return false; + if (hasComponentConfig()) { + if (!getComponentConfig() + .equals(other.getComponentConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasComponentConfig()) { + hash = (37 * hash) + COMPONENT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getComponentConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.LoggingConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.LoggingConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.LoggingConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.LoggingConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.LoggingConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.LoggingConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.LoggingConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.LoggingConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.LoggingConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.LoggingConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.LoggingConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.LoggingConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.LoggingConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * LoggingConfig is cluster logging configuration.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.LoggingConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.LoggingConfig) + com.google.container.v1beta1.LoggingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_LoggingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_LoggingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.LoggingConfig.class, com.google.container.v1beta1.LoggingConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.LoggingConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getComponentConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + componentConfig_ = null; + if (componentConfigBuilder_ != null) { + componentConfigBuilder_.dispose(); + componentConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_LoggingConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.LoggingConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.LoggingConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.LoggingConfig build() { + com.google.container.v1beta1.LoggingConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.LoggingConfig buildPartial() { + com.google.container.v1beta1.LoggingConfig result = new com.google.container.v1beta1.LoggingConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.LoggingConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.componentConfig_ = componentConfigBuilder_ == null + ? componentConfig_ + : componentConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @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.LoggingConfig) { + return mergeFrom((com.google.container.v1beta1.LoggingConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.LoggingConfig other) { + if (other == com.google.container.v1beta1.LoggingConfig.getDefaultInstance()) return this; + if (other.hasComponentConfig()) { + mergeComponentConfig(other.getComponentConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getComponentConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.container.v1beta1.LoggingComponentConfig componentConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.LoggingComponentConfig, com.google.container.v1beta1.LoggingComponentConfig.Builder, com.google.container.v1beta1.LoggingComponentConfigOrBuilder> componentConfigBuilder_; + /** + *
+     * Logging components configuration
+     * 
+ * + * .google.container.v1beta1.LoggingComponentConfig component_config = 1; + * @return Whether the componentConfig field is set. + */ + public boolean hasComponentConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Logging components configuration
+     * 
+ * + * .google.container.v1beta1.LoggingComponentConfig component_config = 1; + * @return The componentConfig. + */ + public com.google.container.v1beta1.LoggingComponentConfig getComponentConfig() { + if (componentConfigBuilder_ == null) { + return componentConfig_ == null ? com.google.container.v1beta1.LoggingComponentConfig.getDefaultInstance() : componentConfig_; + } else { + return componentConfigBuilder_.getMessage(); + } + } + /** + *
+     * Logging components configuration
+     * 
+ * + * .google.container.v1beta1.LoggingComponentConfig component_config = 1; + */ + public Builder setComponentConfig(com.google.container.v1beta1.LoggingComponentConfig value) { + if (componentConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + componentConfig_ = value; + } else { + componentConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Logging components configuration
+     * 
+ * + * .google.container.v1beta1.LoggingComponentConfig component_config = 1; + */ + public Builder setComponentConfig( + com.google.container.v1beta1.LoggingComponentConfig.Builder builderForValue) { + if (componentConfigBuilder_ == null) { + componentConfig_ = builderForValue.build(); + } else { + componentConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Logging components configuration
+     * 
+ * + * .google.container.v1beta1.LoggingComponentConfig component_config = 1; + */ + public Builder mergeComponentConfig(com.google.container.v1beta1.LoggingComponentConfig value) { + if (componentConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + componentConfig_ != null && + componentConfig_ != com.google.container.v1beta1.LoggingComponentConfig.getDefaultInstance()) { + getComponentConfigBuilder().mergeFrom(value); + } else { + componentConfig_ = value; + } + } else { + componentConfigBuilder_.mergeFrom(value); + } + if (componentConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+     * Logging components configuration
+     * 
+ * + * .google.container.v1beta1.LoggingComponentConfig component_config = 1; + */ + public Builder clearComponentConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + componentConfig_ = null; + if (componentConfigBuilder_ != null) { + componentConfigBuilder_.dispose(); + componentConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Logging components configuration
+     * 
+ * + * .google.container.v1beta1.LoggingComponentConfig component_config = 1; + */ + public com.google.container.v1beta1.LoggingComponentConfig.Builder getComponentConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getComponentConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Logging components configuration
+     * 
+ * + * .google.container.v1beta1.LoggingComponentConfig component_config = 1; + */ + public com.google.container.v1beta1.LoggingComponentConfigOrBuilder getComponentConfigOrBuilder() { + if (componentConfigBuilder_ != null) { + return componentConfigBuilder_.getMessageOrBuilder(); + } else { + return componentConfig_ == null ? + com.google.container.v1beta1.LoggingComponentConfig.getDefaultInstance() : componentConfig_; + } + } + /** + *
+     * Logging components configuration
+     * 
+ * + * .google.container.v1beta1.LoggingComponentConfig component_config = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.LoggingComponentConfig, com.google.container.v1beta1.LoggingComponentConfig.Builder, com.google.container.v1beta1.LoggingComponentConfigOrBuilder> + getComponentConfigFieldBuilder() { + if (componentConfigBuilder_ == null) { + componentConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.LoggingComponentConfig, com.google.container.v1beta1.LoggingComponentConfig.Builder, com.google.container.v1beta1.LoggingComponentConfigOrBuilder>( + getComponentConfig(), + getParentForChildren(), + isClean()); + componentConfig_ = null; + } + return componentConfigBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.LoggingConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.LoggingConfig) + private static final com.google.container.v1beta1.LoggingConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.LoggingConfig(); + } + + public static com.google.container.v1beta1.LoggingConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LoggingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.LoggingConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingConfigOrBuilder.java new file mode 100644 index 000000000000..fb491e0db4e6 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingConfigOrBuilder.java @@ -0,0 +1,37 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface LoggingConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.LoggingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Logging components configuration
+   * 
+ * + * .google.container.v1beta1.LoggingComponentConfig component_config = 1; + * @return Whether the componentConfig field is set. + */ + boolean hasComponentConfig(); + /** + *
+   * Logging components configuration
+   * 
+ * + * .google.container.v1beta1.LoggingComponentConfig component_config = 1; + * @return The componentConfig. + */ + com.google.container.v1beta1.LoggingComponentConfig getComponentConfig(); + /** + *
+   * Logging components configuration
+   * 
+ * + * .google.container.v1beta1.LoggingComponentConfig component_config = 1; + */ + com.google.container.v1beta1.LoggingComponentConfigOrBuilder getComponentConfigOrBuilder(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingVariantConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingVariantConfig.java new file mode 100644 index 000000000000..1d50e642a283 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingVariantConfig.java @@ -0,0 +1,681 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * LoggingVariantConfig specifies the behaviour of the logging component.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.LoggingVariantConfig} + */ +public final class LoggingVariantConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.LoggingVariantConfig) + LoggingVariantConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use LoggingVariantConfig.newBuilder() to construct. + private LoggingVariantConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LoggingVariantConfig() { + variant_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LoggingVariantConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_LoggingVariantConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_LoggingVariantConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.LoggingVariantConfig.class, com.google.container.v1beta1.LoggingVariantConfig.Builder.class); + } + + /** + *
+   * Logging component variants.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.LoggingVariantConfig.Variant} + */ + public enum Variant + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Default value. This shouldn't be used.
+     * 
+ * + * VARIANT_UNSPECIFIED = 0; + */ + VARIANT_UNSPECIFIED(0), + /** + *
+     * default logging variant.
+     * 
+ * + * DEFAULT = 1; + */ + DEFAULT(1), + /** + *
+     * maximum logging throughput variant.
+     * 
+ * + * MAX_THROUGHPUT = 2; + */ + MAX_THROUGHPUT(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Default value. This shouldn't be used.
+     * 
+ * + * VARIANT_UNSPECIFIED = 0; + */ + public static final int VARIANT_UNSPECIFIED_VALUE = 0; + /** + *
+     * default logging variant.
+     * 
+ * + * DEFAULT = 1; + */ + public static final int DEFAULT_VALUE = 1; + /** + *
+     * maximum logging throughput variant.
+     * 
+ * + * MAX_THROUGHPUT = 2; + */ + public static final int MAX_THROUGHPUT_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 Variant 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 Variant forNumber(int value) { + switch (value) { + case 0: return VARIANT_UNSPECIFIED; + case 1: return DEFAULT; + case 2: return MAX_THROUGHPUT; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Variant> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Variant findValueByNumber(int number) { + return Variant.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.LoggingVariantConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final Variant[] VALUES = values(); + + public static Variant 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 Variant(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.LoggingVariantConfig.Variant) + } + + public static final int VARIANT_FIELD_NUMBER = 1; + private int variant_ = 0; + /** + *
+   * Logging variant deployed on nodes.
+   * 
+ * + * .google.container.v1beta1.LoggingVariantConfig.Variant variant = 1; + * @return The enum numeric value on the wire for variant. + */ + @java.lang.Override public int getVariantValue() { + return variant_; + } + /** + *
+   * Logging variant deployed on nodes.
+   * 
+ * + * .google.container.v1beta1.LoggingVariantConfig.Variant variant = 1; + * @return The variant. + */ + @java.lang.Override public com.google.container.v1beta1.LoggingVariantConfig.Variant getVariant() { + com.google.container.v1beta1.LoggingVariantConfig.Variant result = com.google.container.v1beta1.LoggingVariantConfig.Variant.forNumber(variant_); + return result == null ? com.google.container.v1beta1.LoggingVariantConfig.Variant.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 (variant_ != com.google.container.v1beta1.LoggingVariantConfig.Variant.VARIANT_UNSPECIFIED.getNumber()) { + output.writeEnum(1, variant_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (variant_ != com.google.container.v1beta1.LoggingVariantConfig.Variant.VARIANT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, variant_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.LoggingVariantConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.LoggingVariantConfig other = (com.google.container.v1beta1.LoggingVariantConfig) obj; + + if (variant_ != other.variant_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + VARIANT_FIELD_NUMBER; + hash = (53 * hash) + variant_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.LoggingVariantConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.LoggingVariantConfig parseFrom( + 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.LoggingVariantConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.LoggingVariantConfig parseFrom( + com.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.LoggingVariantConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.LoggingVariantConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.LoggingVariantConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.LoggingVariantConfig parseFrom( + java.io.InputStream 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.LoggingVariantConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.LoggingVariantConfig parseDelimitedFrom( + java.io.InputStream 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.LoggingVariantConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.LoggingVariantConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.LoggingVariantConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * LoggingVariantConfig specifies the behaviour of the logging component.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.LoggingVariantConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.LoggingVariantConfig) + com.google.container.v1beta1.LoggingVariantConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_LoggingVariantConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_LoggingVariantConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.LoggingVariantConfig.class, com.google.container.v1beta1.LoggingVariantConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.LoggingVariantConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + variant_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_LoggingVariantConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.LoggingVariantConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.LoggingVariantConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.LoggingVariantConfig build() { + com.google.container.v1beta1.LoggingVariantConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.LoggingVariantConfig buildPartial() { + com.google.container.v1beta1.LoggingVariantConfig result = new com.google.container.v1beta1.LoggingVariantConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.LoggingVariantConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.variant_ = variant_; + } + } + + @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.LoggingVariantConfig) { + return mergeFrom((com.google.container.v1beta1.LoggingVariantConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.LoggingVariantConfig other) { + if (other == com.google.container.v1beta1.LoggingVariantConfig.getDefaultInstance()) return this; + if (other.variant_ != 0) { + setVariantValue(other.getVariantValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + variant_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int variant_ = 0; + /** + *
+     * Logging variant deployed on nodes.
+     * 
+ * + * .google.container.v1beta1.LoggingVariantConfig.Variant variant = 1; + * @return The enum numeric value on the wire for variant. + */ + @java.lang.Override public int getVariantValue() { + return variant_; + } + /** + *
+     * Logging variant deployed on nodes.
+     * 
+ * + * .google.container.v1beta1.LoggingVariantConfig.Variant variant = 1; + * @param value The enum numeric value on the wire for variant to set. + * @return This builder for chaining. + */ + public Builder setVariantValue(int value) { + variant_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Logging variant deployed on nodes.
+     * 
+ * + * .google.container.v1beta1.LoggingVariantConfig.Variant variant = 1; + * @return The variant. + */ + @java.lang.Override + public com.google.container.v1beta1.LoggingVariantConfig.Variant getVariant() { + com.google.container.v1beta1.LoggingVariantConfig.Variant result = com.google.container.v1beta1.LoggingVariantConfig.Variant.forNumber(variant_); + return result == null ? com.google.container.v1beta1.LoggingVariantConfig.Variant.UNRECOGNIZED : result; + } + /** + *
+     * Logging variant deployed on nodes.
+     * 
+ * + * .google.container.v1beta1.LoggingVariantConfig.Variant variant = 1; + * @param value The variant to set. + * @return This builder for chaining. + */ + public Builder setVariant(com.google.container.v1beta1.LoggingVariantConfig.Variant value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + variant_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Logging variant deployed on nodes.
+     * 
+ * + * .google.container.v1beta1.LoggingVariantConfig.Variant variant = 1; + * @return This builder for chaining. + */ + public Builder clearVariant() { + bitField0_ = (bitField0_ & ~0x00000001); + variant_ = 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.LoggingVariantConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.LoggingVariantConfig) + private static final com.google.container.v1beta1.LoggingVariantConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.LoggingVariantConfig(); + } + + public static com.google.container.v1beta1.LoggingVariantConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LoggingVariantConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.LoggingVariantConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingVariantConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingVariantConfigOrBuilder.java new file mode 100644 index 000000000000..e73a11ab728c --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/LoggingVariantConfigOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface LoggingVariantConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.LoggingVariantConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Logging variant deployed on nodes.
+   * 
+ * + * .google.container.v1beta1.LoggingVariantConfig.Variant variant = 1; + * @return The enum numeric value on the wire for variant. + */ + int getVariantValue(); + /** + *
+   * Logging variant deployed on nodes.
+   * 
+ * + * .google.container.v1beta1.LoggingVariantConfig.Variant variant = 1; + * @return The variant. + */ + com.google.container.v1beta1.LoggingVariantConfig.Variant getVariant(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceExclusionOptions.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceExclusionOptions.java new file mode 100644 index 000000000000..ec15236b6ae6 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceExclusionOptions.java @@ -0,0 +1,698 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * Represents the Maintenance exclusion option.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.MaintenanceExclusionOptions} + */ +public final class MaintenanceExclusionOptions extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.MaintenanceExclusionOptions) + MaintenanceExclusionOptionsOrBuilder { +private static final long serialVersionUID = 0L; + // Use MaintenanceExclusionOptions.newBuilder() to construct. + private MaintenanceExclusionOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MaintenanceExclusionOptions() { + scope_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MaintenanceExclusionOptions(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MaintenanceExclusionOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MaintenanceExclusionOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MaintenanceExclusionOptions.class, com.google.container.v1beta1.MaintenanceExclusionOptions.Builder.class); + } + + /** + *
+   * Scope of exclusion.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.MaintenanceExclusionOptions.Scope} + */ + public enum Scope + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * NO_UPGRADES excludes all upgrades, including patch upgrades and minor
+     * upgrades across control planes and nodes. This is the default exclusion
+     * behavior.
+     * 
+ * + * NO_UPGRADES = 0; + */ + NO_UPGRADES(0), + /** + *
+     * NO_MINOR_UPGRADES excludes all minor upgrades for the cluster, only
+     * patches are allowed.
+     * 
+ * + * NO_MINOR_UPGRADES = 1; + */ + NO_MINOR_UPGRADES(1), + /** + *
+     * NO_MINOR_OR_NODE_UPGRADES excludes all minor upgrades for the cluster,
+     * and also exclude all node pool upgrades. Only control
+     * plane patches are allowed.
+     * 
+ * + * NO_MINOR_OR_NODE_UPGRADES = 2; + */ + NO_MINOR_OR_NODE_UPGRADES(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * NO_UPGRADES excludes all upgrades, including patch upgrades and minor
+     * upgrades across control planes and nodes. This is the default exclusion
+     * behavior.
+     * 
+ * + * NO_UPGRADES = 0; + */ + public static final int NO_UPGRADES_VALUE = 0; + /** + *
+     * NO_MINOR_UPGRADES excludes all minor upgrades for the cluster, only
+     * patches are allowed.
+     * 
+ * + * NO_MINOR_UPGRADES = 1; + */ + public static final int NO_MINOR_UPGRADES_VALUE = 1; + /** + *
+     * NO_MINOR_OR_NODE_UPGRADES excludes all minor upgrades for the cluster,
+     * and also exclude all node pool upgrades. Only control
+     * plane patches are allowed.
+     * 
+ * + * NO_MINOR_OR_NODE_UPGRADES = 2; + */ + public static final int NO_MINOR_OR_NODE_UPGRADES_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Scope valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Scope forNumber(int value) { + switch (value) { + case 0: return NO_UPGRADES; + case 1: return NO_MINOR_UPGRADES; + case 2: return NO_MINOR_OR_NODE_UPGRADES; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Scope> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Scope findValueByNumber(int number) { + return Scope.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1beta1.MaintenanceExclusionOptions.getDescriptor().getEnumTypes().get(0); + } + + private static final Scope[] VALUES = values(); + + public static Scope valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Scope(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.MaintenanceExclusionOptions.Scope) + } + + public static final int SCOPE_FIELD_NUMBER = 1; + private int scope_ = 0; + /** + *
+   * Scope specifies the upgrade scope which upgrades are blocked by the
+   * exclusion.
+   * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override public int getScopeValue() { + return scope_; + } + /** + *
+   * Scope specifies the upgrade scope which upgrades are blocked by the
+   * exclusion.
+   * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; + * @return The scope. + */ + @java.lang.Override public com.google.container.v1beta1.MaintenanceExclusionOptions.Scope getScope() { + com.google.container.v1beta1.MaintenanceExclusionOptions.Scope result = com.google.container.v1beta1.MaintenanceExclusionOptions.Scope.forNumber(scope_); + return result == null ? com.google.container.v1beta1.MaintenanceExclusionOptions.Scope.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (scope_ != com.google.container.v1beta1.MaintenanceExclusionOptions.Scope.NO_UPGRADES.getNumber()) { + output.writeEnum(1, scope_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (scope_ != com.google.container.v1beta1.MaintenanceExclusionOptions.Scope.NO_UPGRADES.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, scope_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.MaintenanceExclusionOptions)) { + return super.equals(obj); + } + com.google.container.v1beta1.MaintenanceExclusionOptions other = (com.google.container.v1beta1.MaintenanceExclusionOptions) obj; + + if (scope_ != other.scope_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + scope_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.MaintenanceExclusionOptions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.MaintenanceExclusionOptions parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.MaintenanceExclusionOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.MaintenanceExclusionOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.MaintenanceExclusionOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.MaintenanceExclusionOptions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.MaintenanceExclusionOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.MaintenanceExclusionOptions parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.MaintenanceExclusionOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.MaintenanceExclusionOptions parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.MaintenanceExclusionOptions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.MaintenanceExclusionOptions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.MaintenanceExclusionOptions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Represents the Maintenance exclusion option.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.MaintenanceExclusionOptions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.MaintenanceExclusionOptions) + com.google.container.v1beta1.MaintenanceExclusionOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MaintenanceExclusionOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MaintenanceExclusionOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MaintenanceExclusionOptions.class, com.google.container.v1beta1.MaintenanceExclusionOptions.Builder.class); + } + + // Construct using com.google.container.v1beta1.MaintenanceExclusionOptions.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + scope_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MaintenanceExclusionOptions_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.MaintenanceExclusionOptions getDefaultInstanceForType() { + return com.google.container.v1beta1.MaintenanceExclusionOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.MaintenanceExclusionOptions build() { + com.google.container.v1beta1.MaintenanceExclusionOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.MaintenanceExclusionOptions buildPartial() { + com.google.container.v1beta1.MaintenanceExclusionOptions result = new com.google.container.v1beta1.MaintenanceExclusionOptions(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.MaintenanceExclusionOptions result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.scope_ = scope_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.MaintenanceExclusionOptions) { + return mergeFrom((com.google.container.v1beta1.MaintenanceExclusionOptions)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.MaintenanceExclusionOptions other) { + if (other == com.google.container.v1beta1.MaintenanceExclusionOptions.getDefaultInstance()) return this; + if (other.scope_ != 0) { + setScopeValue(other.getScopeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + scope_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int scope_ = 0; + /** + *
+     * Scope specifies the upgrade scope which upgrades are blocked by the
+     * exclusion.
+     * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override public int getScopeValue() { + return scope_; + } + /** + *
+     * Scope specifies the upgrade scope which upgrades are blocked by the
+     * exclusion.
+     * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; + * @param value The enum numeric value on the wire for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeValue(int value) { + scope_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Scope specifies the upgrade scope which upgrades are blocked by the
+     * exclusion.
+     * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; + * @return The scope. + */ + @java.lang.Override + public com.google.container.v1beta1.MaintenanceExclusionOptions.Scope getScope() { + com.google.container.v1beta1.MaintenanceExclusionOptions.Scope result = com.google.container.v1beta1.MaintenanceExclusionOptions.Scope.forNumber(scope_); + return result == null ? com.google.container.v1beta1.MaintenanceExclusionOptions.Scope.UNRECOGNIZED : result; + } + /** + *
+     * Scope specifies the upgrade scope which upgrades are blocked by the
+     * exclusion.
+     * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope(com.google.container.v1beta1.MaintenanceExclusionOptions.Scope value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + scope_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Scope specifies the upgrade scope which upgrades are blocked by the
+     * exclusion.
+     * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; + * @return This builder for chaining. + */ + public Builder clearScope() { + bitField0_ = (bitField0_ & ~0x00000001); + scope_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.MaintenanceExclusionOptions) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.MaintenanceExclusionOptions) + private static final com.google.container.v1beta1.MaintenanceExclusionOptions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.MaintenanceExclusionOptions(); + } + + public static com.google.container.v1beta1.MaintenanceExclusionOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MaintenanceExclusionOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.MaintenanceExclusionOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceExclusionOptionsOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceExclusionOptionsOrBuilder.java new file mode 100644 index 000000000000..df56b323572f --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceExclusionOptionsOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface MaintenanceExclusionOptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.MaintenanceExclusionOptions) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Scope specifies the upgrade scope which upgrades are blocked by the
+   * exclusion.
+   * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; + * @return The enum numeric value on the wire for scope. + */ + int getScopeValue(); + /** + *
+   * Scope specifies the upgrade scope which upgrades are blocked by the
+   * exclusion.
+   * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions.Scope scope = 1; + * @return The scope. + */ + com.google.container.v1beta1.MaintenanceExclusionOptions.Scope getScope(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenancePolicy.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenancePolicy.java new file mode 100644 index 000000000000..798ef316be0f --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenancePolicy.java @@ -0,0 +1,847 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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); + } + + private int bitField0_; + 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 ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * 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 window_ == null ? com.google.container.v1beta1.MaintenanceWindow.getDefaultInstance() : window_; + } + + public static final int RESOURCE_VERSION_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getWindow()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, resourceVersion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWindow()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resourceVersion_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { + getWindowFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + window_ = null; + if (windowBuilder_ != null) { + windowBuilder_.dispose(); + 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 (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.MaintenancePolicy result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.window_ = windowBuilder_ == null + ? window_ + : windowBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.resourceVersion_ = resourceVersion_; + } + result.bitField0_ |= to_bitField0_; + } + + @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_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getWindowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: { + resourceVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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 ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * 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; + } else { + windowBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + 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(); + } else { + windowBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + 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 (((bitField0_ & 0x00000001) != 0) && + window_ != null && + window_ != com.google.container.v1beta1.MaintenanceWindow.getDefaultInstance()) { + getWindowBuilder().mergeFrom(value); + } else { + window_ = value; + } + } else { + windowBuilder_.mergeFrom(value); + } + if (window_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+     * Specifies the maintenance window in which maintenance may be performed.
+     * 
+ * + * .google.container.v1beta1.MaintenanceWindow window = 1; + */ + public Builder clearWindow() { + bitField0_ = (bitField0_ & ~0x00000001); + window_ = null; + if (windowBuilder_ != null) { + windowBuilder_.dispose(); + windowBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000001; + 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; + bitField0_ |= 0x00000002; + 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(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenancePolicyOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenancePolicyOrBuilder.java new file mode 100644 index 000000000000..940cf1241770 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenancePolicyOrBuilder.java @@ -0,0 +1,65 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceWindow.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceWindow.java new file mode 100644 index 000000000000..e13179720bd8 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceWindow.java @@ -0,0 +1,1391 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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.MapFieldReflectionAccessor internalGetMapFieldReflection( + 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; + @SuppressWarnings("serial") + 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()); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.container.v1beta1.TimeWindow> 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 NullPointerException("map key"); } + 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 /* nullable */ +com.google.container.v1beta1.TimeWindow getMaintenanceExclusionsOrDefault( + java.lang.String key, + /* nullable */ +com.google.container.v1beta1.TimeWindow defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + 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 NullPointerException("map key"); } + 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); + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMaintenanceExclusions(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + 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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (dailyMaintenanceWindowBuilder_ != null) { + dailyMaintenanceWindowBuilder_.clear(); + } + if (recurringWindowBuilder_ != null) { + recurringWindowBuilder_.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); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.MaintenanceWindow result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.maintenanceExclusions_ = internalGetMaintenanceExclusions().build(MaintenanceExclusionsDefaultEntryHolder.defaultEntry); + } + } + + private void buildPartialOneofs(com.google.container.v1beta1.MaintenanceWindow result) { + result.policyCase_ = policyCase_; + result.policy_ = this.policy_; + if (policyCase_ == 2 && + dailyMaintenanceWindowBuilder_ != null) { + result.policy_ = dailyMaintenanceWindowBuilder_.build(); + } + if (policyCase_ == 3 && + recurringWindowBuilder_ != null) { + result.policy_ = recurringWindowBuilder_.build(); + } + } + + @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()); + bitField0_ |= 0x00000004; + 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.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: { + input.readMessage( + getDailyMaintenanceWindowFieldBuilder().getBuilder(), + extensionRegistry); + policyCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getRecurringWindowFieldBuilder().getBuilder(), + extensionRegistry); + policyCase_ = 3; + break; + } // case 26 + case 34: { + com.google.protobuf.MapEntry + maintenanceExclusions__ = input.readMessage( + MaintenanceExclusionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableMaintenanceExclusions().ensureBuilderMap().put( + maintenanceExclusions__.getKey(), maintenanceExclusions__.getValue()); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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); + } 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 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); + } 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 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 static final class MaintenanceExclusionsConverter implements com.google.protobuf.MapFieldBuilder.Converter { + @java.lang.Override + public com.google.container.v1beta1.TimeWindow build(com.google.container.v1beta1.TimeWindowOrBuilder val) { + if (val instanceof com.google.container.v1beta1.TimeWindow) { return (com.google.container.v1beta1.TimeWindow) val; } + return ((com.google.container.v1beta1.TimeWindow.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry defaultEntry() { + return MaintenanceExclusionsDefaultEntryHolder.defaultEntry; + } + }; + private static final MaintenanceExclusionsConverter maintenanceExclusionsConverter = new MaintenanceExclusionsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, com.google.container.v1beta1.TimeWindowOrBuilder, com.google.container.v1beta1.TimeWindow, com.google.container.v1beta1.TimeWindow.Builder> maintenanceExclusions_; + private com.google.protobuf.MapFieldBuilder + internalGetMaintenanceExclusions() { + if (maintenanceExclusions_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(maintenanceExclusionsConverter); + } + return maintenanceExclusions_; + } + private com.google.protobuf.MapFieldBuilder + internalGetMutableMaintenanceExclusions() { + if (maintenanceExclusions_ == null) { + maintenanceExclusions_ = new com.google.protobuf.MapFieldBuilder<>(maintenanceExclusionsConverter); + } + bitField0_ |= 0x00000004; + onChanged(); + return maintenanceExclusions_; + } + public int getMaintenanceExclusionsCount() { + return internalGetMaintenanceExclusions().ensureBuilderMap().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 NullPointerException("map key"); } + return internalGetMaintenanceExclusions().ensureBuilderMap().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().getImmutableMap(); + } + /** + *
+     * 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 /* nullable */ +com.google.container.v1beta1.TimeWindow getMaintenanceExclusionsOrDefault( + java.lang.String key, + /* nullable */ +com.google.container.v1beta1.TimeWindow defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = internalGetMutableMaintenanceExclusions().ensureBuilderMap(); + return map.containsKey(key) ? maintenanceExclusionsConverter.build(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 NullPointerException("map key"); } + java.util.Map map = internalGetMutableMaintenanceExclusions().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return maintenanceExclusionsConverter.build(map.get(key)); + } + public Builder clearMaintenanceExclusions() { + bitField0_ = (bitField0_ & ~0x00000004); + internalGetMutableMaintenanceExclusions().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 NullPointerException("map key"); } + internalGetMutableMaintenanceExclusions().ensureBuilderMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableMaintenanceExclusions() { + bitField0_ |= 0x00000004; + return internalGetMutableMaintenanceExclusions().ensureMessageMap(); + } + /** + *
+     * 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 NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableMaintenanceExclusions().ensureBuilderMap() + .put(key, value); + bitField0_ |= 0x00000004; + 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) { + for (java.util.Map.Entry e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableMaintenanceExclusions().ensureBuilderMap() + .putAll(values); + bitField0_ |= 0x00000004; + 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 com.google.container.v1beta1.TimeWindow.Builder putMaintenanceExclusionsBuilderIfAbsent( + java.lang.String key) { + java.util.Map builderMap = internalGetMutableMaintenanceExclusions().ensureBuilderMap(); + com.google.container.v1beta1.TimeWindowOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.container.v1beta1.TimeWindow.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.container.v1beta1.TimeWindow) { + entry = ((com.google.container.v1beta1.TimeWindow) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.container.v1beta1.TimeWindow.Builder) entry; + } + @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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceWindowOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceWindowOrBuilder.java new file mode 100644 index 000000000000..f7d828e47086 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaintenanceWindowOrBuilder.java @@ -0,0 +1,131 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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; + */ + /* nullable */ +com.google.container.v1beta1.TimeWindow getMaintenanceExclusionsOrDefault( + java.lang.String key, + /* nullable */ +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); + + com.google.container.v1beta1.MaintenanceWindow.PolicyCase getPolicyCase(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ManagedPrometheusConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ManagedPrometheusConfig.java new file mode 100644 index 000000000000..15a30102337a --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ManagedPrometheusConfig.java @@ -0,0 +1,499 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * ManagedPrometheusConfig defines the configuration for
+ * Google Cloud Managed Service for Prometheus.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ManagedPrometheusConfig} + */ +public final class ManagedPrometheusConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ManagedPrometheusConfig) + ManagedPrometheusConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use ManagedPrometheusConfig.newBuilder() to construct. + private ManagedPrometheusConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ManagedPrometheusConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ManagedPrometheusConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ManagedPrometheusConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ManagedPrometheusConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ManagedPrometheusConfig.class, com.google.container.v1beta1.ManagedPrometheusConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * Enable Managed Collection.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.ManagedPrometheusConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.ManagedPrometheusConfig other = (com.google.container.v1beta1.ManagedPrometheusConfig) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ManagedPrometheusConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ManagedPrometheusConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ManagedPrometheusConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ManagedPrometheusConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ManagedPrometheusConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ManagedPrometheusConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ManagedPrometheusConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ManagedPrometheusConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ManagedPrometheusConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ManagedPrometheusConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.ManagedPrometheusConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ManagedPrometheusConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.ManagedPrometheusConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ManagedPrometheusConfig defines the configuration for
+   * Google Cloud Managed Service for Prometheus.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ManagedPrometheusConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ManagedPrometheusConfig) + com.google.container.v1beta1.ManagedPrometheusConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ManagedPrometheusConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ManagedPrometheusConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ManagedPrometheusConfig.class, com.google.container.v1beta1.ManagedPrometheusConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.ManagedPrometheusConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 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_ManagedPrometheusConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ManagedPrometheusConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.ManagedPrometheusConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ManagedPrometheusConfig build() { + com.google.container.v1beta1.ManagedPrometheusConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ManagedPrometheusConfig buildPartial() { + com.google.container.v1beta1.ManagedPrometheusConfig result = new com.google.container.v1beta1.ManagedPrometheusConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.ManagedPrometheusConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.ManagedPrometheusConfig) { + return mergeFrom((com.google.container.v1beta1.ManagedPrometheusConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ManagedPrometheusConfig other) { + if (other == com.google.container.v1beta1.ManagedPrometheusConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enabled_ ; + /** + *
+     * Enable Managed Collection.
+     * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Enable Managed Collection.
+     * 
+ * + * bool enabled = 1; + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Enable Managed Collection.
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.ManagedPrometheusConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ManagedPrometheusConfig) + private static final com.google.container.v1beta1.ManagedPrometheusConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ManagedPrometheusConfig(); + } + + public static com.google.container.v1beta1.ManagedPrometheusConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ManagedPrometheusConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.ManagedPrometheusConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ManagedPrometheusConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ManagedPrometheusConfigOrBuilder.java new file mode 100644 index 000000000000..8289e32a5622 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ManagedPrometheusConfigOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface ManagedPrometheusConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ManagedPrometheusConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Enable Managed Collection.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Master.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Master.java new file mode 100644 index 000000000000..48a6b18eff44 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Master.java @@ -0,0 +1,407 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @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.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuth.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuth.java new file mode 100644 index 000000000000..1155606b3a6b --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuth.java @@ -0,0 +1,1622 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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); + } + + private int bitField0_; + public static final int USERNAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.MasterAuth.username is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1280 + * @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]; + * @deprecated google.container.v1beta1.MasterAuth.username is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1280 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.MasterAuth.password is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1291 + * @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]; + * @deprecated google.container.v1beta1.MasterAuth.password is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1291 + * @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 ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * 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 clientCertificateConfig_ == null ? com.google.container.v1beta1.ClientCertificateConfig.getDefaultInstance() : clientCertificateConfig_; + } + + public static final int CLUSTER_CA_CERTIFICATE_FIELD_NUMBER = 100; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getClientCertificateConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterCaCertificate_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 100, clusterCaCertificate_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientCertificate_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 101, clientCertificate_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 102, clientKey_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, username_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getClientCertificateConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterCaCertificate_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, clusterCaCertificate_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientCertificate_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(101, clientCertificate_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(102, clientKey_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { + getClientCertificateConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + username_ = ""; + password_ = ""; + clientCertificateConfig_ = null; + if (clientCertificateConfigBuilder_ != null) { + clientCertificateConfigBuilder_.dispose(); + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.MasterAuth result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.username_ = username_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.password_ = password_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clientCertificateConfig_ = clientCertificateConfigBuilder_ == null + ? clientCertificateConfig_ + : clientCertificateConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.clusterCaCertificate_ = clusterCaCertificate_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.clientCertificate_ = clientCertificate_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.clientKey_ = clientKey_; + } + result.bitField0_ |= to_bitField0_; + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPassword().isEmpty()) { + password_ = other.password_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasClientCertificateConfig()) { + mergeClientCertificateConfig(other.getClientCertificateConfig()); + } + if (!other.getClusterCaCertificate().isEmpty()) { + clusterCaCertificate_ = other.clusterCaCertificate_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getClientCertificate().isEmpty()) { + clientCertificate_ = other.clientCertificate_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getClientKey().isEmpty()) { + clientKey_ = other.clientKey_; + bitField0_ |= 0x00000020; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + password_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getClientCertificateConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 802: { + clusterCaCertificate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 802 + case 810: { + clientCertificate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 810 + case 818: { + clientKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 818 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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]; + * @deprecated google.container.v1beta1.MasterAuth.username is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1280 + * @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]; + * @deprecated google.container.v1beta1.MasterAuth.username is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1280 + * @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]; + * @deprecated google.container.v1beta1.MasterAuth.username is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1280 + * @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; + bitField0_ |= 0x00000001; + 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]; + * @deprecated google.container.v1beta1.MasterAuth.username is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1280 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearUsername() { + username_ = getDefaultInstance().getUsername(); + bitField0_ = (bitField0_ & ~0x00000001); + 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]; + * @deprecated google.container.v1beta1.MasterAuth.username is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1280 + * @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; + bitField0_ |= 0x00000001; + 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]; + * @deprecated google.container.v1beta1.MasterAuth.password is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1291 + * @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]; + * @deprecated google.container.v1beta1.MasterAuth.password is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1291 + * @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]; + * @deprecated google.container.v1beta1.MasterAuth.password is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1291 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.MasterAuth.password is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1291 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearPassword() { + password_ = getDefaultInstance().getPassword(); + bitField0_ = (bitField0_ & ~0x00000002); + 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]; + * @deprecated google.container.v1beta1.MasterAuth.password is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1291 + * @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; + bitField0_ |= 0x00000002; + 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 ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * 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; + } else { + clientCertificateConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + 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(); + } else { + clientCertificateConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + 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 (((bitField0_ & 0x00000004) != 0) && + clientCertificateConfig_ != null && + clientCertificateConfig_ != com.google.container.v1beta1.ClientCertificateConfig.getDefaultInstance()) { + getClientCertificateConfigBuilder().mergeFrom(value); + } else { + clientCertificateConfig_ = value; + } + } else { + clientCertificateConfigBuilder_.mergeFrom(value); + } + if (clientCertificateConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + 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() { + bitField0_ = (bitField0_ & ~0x00000004); + clientCertificateConfig_ = null; + if (clientCertificateConfigBuilder_ != null) { + clientCertificateConfigBuilder_.dispose(); + clientCertificateConfigBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000004; + 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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string cluster_ca_certificate = 100; + * @return This builder for chaining. + */ + public Builder clearClusterCaCertificate() { + clusterCaCertificate_ = getDefaultInstance().getClusterCaCertificate(); + bitField0_ = (bitField0_ & ~0x00000008); + 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; + bitField0_ |= 0x00000008; + 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; + bitField0_ |= 0x00000010; + 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(); + bitField0_ = (bitField0_ & ~0x00000010); + 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; + bitField0_ |= 0x00000010; + 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; + bitField0_ |= 0x00000020; + 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(); + bitField0_ = (bitField0_ & ~0x00000020); + 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; + bitField0_ |= 0x00000020; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthOrBuilder.java new file mode 100644 index 000000000000..c8b5444ce9a1 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthOrBuilder.java @@ -0,0 +1,177 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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]; + * @deprecated google.container.v1beta1.MasterAuth.username is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1280 + * @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]; + * @deprecated google.container.v1beta1.MasterAuth.username is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1280 + * @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]; + * @deprecated google.container.v1beta1.MasterAuth.password is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1291 + * @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]; + * @deprecated google.container.v1beta1.MasterAuth.password is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1291 + * @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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthorizedNetworksConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthorizedNetworksConfig.java new file mode 100644 index 000000000000..08bb2025202e --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthorizedNetworksConfig.java @@ -0,0 +1,1868 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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(); + } + + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cidrBlock_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cidrBlock_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cidrBlock_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cidrBlock_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.cidrBlock_ = cidrBlock_; + } + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCidrBlock().isEmpty()) { + cidrBlock_ = other.cidrBlock_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + cidrBlock_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + 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; + bitField0_ |= 0x00000002; + 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(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * 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; + @SuppressWarnings("serial") + 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 + 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); + } + + public static final int GCP_PUBLIC_CIDRS_ACCESS_ENABLED_FIELD_NUMBER = 3; + private boolean gcpPublicCidrsAccessEnabled_ = false; + /** + *
+   * Whether master is accessbile via Google Compute Engine Public IP addresses.
+   * 
+ * + * optional bool gcp_public_cidrs_access_enabled = 3; + * @return Whether the gcpPublicCidrsAccessEnabled field is set. + */ + @java.lang.Override + public boolean hasGcpPublicCidrsAccessEnabled() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Whether master is accessbile via Google Compute Engine Public IP addresses.
+   * 
+ * + * optional bool gcp_public_cidrs_access_enabled = 3; + * @return The gcpPublicCidrsAccessEnabled. + */ + @java.lang.Override + public boolean getGcpPublicCidrsAccessEnabled() { + return gcpPublicCidrsAccessEnabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(3, gcpPublicCidrsAccessEnabled_); + } + getUnknownFields().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)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, gcpPublicCidrsAccessEnabled_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (hasGcpPublicCidrsAccessEnabled() != other.hasGcpPublicCidrsAccessEnabled()) return false; + if (hasGcpPublicCidrsAccessEnabled()) { + if (getGcpPublicCidrsAccessEnabled() + != other.getGcpPublicCidrsAccessEnabled()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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(); + } + if (hasGcpPublicCidrsAccessEnabled()) { + hash = (37 * hash) + GCP_PUBLIC_CIDRS_ACCESS_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getGcpPublicCidrsAccessEnabled()); + } + hash = (29 * hash) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + if (cidrBlocksBuilder_ == null) { + cidrBlocks_ = java.util.Collections.emptyList(); + } else { + cidrBlocks_ = null; + cidrBlocksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + gcpPublicCidrsAccessEnabled_ = false; + 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); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1beta1.MasterAuthorizedNetworksConfig result) { + if (cidrBlocksBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + cidrBlocks_ = java.util.Collections.unmodifiableList(cidrBlocks_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.cidrBlocks_ = cidrBlocks_; + } else { + result.cidrBlocks_ = cidrBlocksBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1beta1.MasterAuthorizedNetworksConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.gcpPublicCidrsAccessEnabled_ = gcpPublicCidrsAccessEnabled_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @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_ & ~0x00000002); + } else { + ensureCidrBlocksIsMutable(); + cidrBlocks_.addAll(other.cidrBlocks_); + } + onChanged(); + } + } else { + if (!other.cidrBlocks_.isEmpty()) { + if (cidrBlocksBuilder_.isEmpty()) { + cidrBlocksBuilder_.dispose(); + cidrBlocksBuilder_ = null; + cidrBlocks_ = other.cidrBlocks_; + bitField0_ = (bitField0_ & ~0x00000002); + cidrBlocksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCidrBlocksFieldBuilder() : null; + } else { + cidrBlocksBuilder_.addAllMessages(other.cidrBlocks_); + } + } + } + if (other.hasGcpPublicCidrsAccessEnabled()) { + setGcpPublicCidrsAccessEnabled(other.getGcpPublicCidrsAccessEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock m = + input.readMessage( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.parser(), + extensionRegistry); + if (cidrBlocksBuilder_ == null) { + ensureCidrBlocksIsMutable(); + cidrBlocks_.add(m); + } else { + cidrBlocksBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: { + gcpPublicCidrsAccessEnabled_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether or not master authorized networks is enabled.
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + + private java.util.List cidrBlocks_ = + java.util.Collections.emptyList(); + private void ensureCidrBlocksIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + cidrBlocks_ = new java.util.ArrayList(cidrBlocks_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder> cidrBlocksBuilder_; + + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public java.util.List getCidrBlocksList() { + if (cidrBlocksBuilder_ == null) { + return java.util.Collections.unmodifiableList(cidrBlocks_); + } else { + return cidrBlocksBuilder_.getMessageList(); + } + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public int getCidrBlocksCount() { + if (cidrBlocksBuilder_ == null) { + return cidrBlocks_.size(); + } else { + return cidrBlocksBuilder_.getCount(); + } + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock getCidrBlocks(int index) { + if (cidrBlocksBuilder_ == null) { + return cidrBlocks_.get(index); + } else { + return cidrBlocksBuilder_.getMessage(index); + } + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public Builder setCidrBlocks( + int index, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock value) { + if (cidrBlocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCidrBlocksIsMutable(); + cidrBlocks_.set(index, value); + onChanged(); + } else { + cidrBlocksBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public Builder setCidrBlocks( + int index, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder builderForValue) { + if (cidrBlocksBuilder_ == null) { + ensureCidrBlocksIsMutable(); + cidrBlocks_.set(index, builderForValue.build()); + onChanged(); + } else { + cidrBlocksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public Builder addCidrBlocks(com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock value) { + if (cidrBlocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCidrBlocksIsMutable(); + cidrBlocks_.add(value); + onChanged(); + } else { + cidrBlocksBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public Builder addCidrBlocks( + int index, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock value) { + if (cidrBlocksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCidrBlocksIsMutable(); + cidrBlocks_.add(index, value); + onChanged(); + } else { + cidrBlocksBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public Builder addCidrBlocks( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder builderForValue) { + if (cidrBlocksBuilder_ == null) { + ensureCidrBlocksIsMutable(); + cidrBlocks_.add(builderForValue.build()); + onChanged(); + } else { + cidrBlocksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public Builder addCidrBlocks( + int index, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder builderForValue) { + if (cidrBlocksBuilder_ == null) { + ensureCidrBlocksIsMutable(); + cidrBlocks_.add(index, builderForValue.build()); + onChanged(); + } else { + cidrBlocksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public Builder addAllCidrBlocks( + java.lang.Iterable values) { + if (cidrBlocksBuilder_ == null) { + ensureCidrBlocksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, cidrBlocks_); + onChanged(); + } else { + cidrBlocksBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public Builder clearCidrBlocks() { + if (cidrBlocksBuilder_ == null) { + cidrBlocks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + cidrBlocksBuilder_.clear(); + } + return this; + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public Builder removeCidrBlocks(int index) { + if (cidrBlocksBuilder_ == null) { + ensureCidrBlocksIsMutable(); + cidrBlocks_.remove(index); + onChanged(); + } else { + cidrBlocksBuilder_.remove(index); + } + return this; + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder getCidrBlocksBuilder( + int index) { + return getCidrBlocksFieldBuilder().getBuilder(index); + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder getCidrBlocksOrBuilder( + int index) { + if (cidrBlocksBuilder_ == null) { + return cidrBlocks_.get(index); } else { + return cidrBlocksBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public java.util.List + getCidrBlocksOrBuilderList() { + if (cidrBlocksBuilder_ != null) { + return cidrBlocksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cidrBlocks_); + } + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder addCidrBlocksBuilder() { + return getCidrBlocksFieldBuilder().addBuilder( + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.getDefaultInstance()); + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder addCidrBlocksBuilder( + int index) { + return getCidrBlocksFieldBuilder().addBuilder( + index, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.getDefaultInstance()); + } + /** + *
+     * cidr_blocks define up to 10 external networks that could access
+     * Kubernetes master through HTTPS.
+     * 
+ * + * repeated .google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; + */ + public java.util.List + getCidrBlocksBuilderList() { + return getCidrBlocksFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder> + getCidrBlocksFieldBuilder() { + if (cidrBlocksBuilder_ == null) { + cidrBlocksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlock.Builder, com.google.container.v1beta1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder>( + cidrBlocks_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + cidrBlocks_ = null; + } + return cidrBlocksBuilder_; + } + + private boolean gcpPublicCidrsAccessEnabled_ ; + /** + *
+     * Whether master is accessbile via Google Compute Engine Public IP addresses.
+     * 
+ * + * optional bool gcp_public_cidrs_access_enabled = 3; + * @return Whether the gcpPublicCidrsAccessEnabled field is set. + */ + @java.lang.Override + public boolean hasGcpPublicCidrsAccessEnabled() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * Whether master is accessbile via Google Compute Engine Public IP addresses.
+     * 
+ * + * optional bool gcp_public_cidrs_access_enabled = 3; + * @return The gcpPublicCidrsAccessEnabled. + */ + @java.lang.Override + public boolean getGcpPublicCidrsAccessEnabled() { + return gcpPublicCidrsAccessEnabled_; + } + /** + *
+     * Whether master is accessbile via Google Compute Engine Public IP addresses.
+     * 
+ * + * optional bool gcp_public_cidrs_access_enabled = 3; + * @param value The gcpPublicCidrsAccessEnabled to set. + * @return This builder for chaining. + */ + public Builder setGcpPublicCidrsAccessEnabled(boolean value) { + + gcpPublicCidrsAccessEnabled_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Whether master is accessbile via Google Compute Engine Public IP addresses.
+     * 
+ * + * optional bool gcp_public_cidrs_access_enabled = 3; + * @return This builder for chaining. + */ + public Builder clearGcpPublicCidrsAccessEnabled() { + bitField0_ = (bitField0_ & ~0x00000004); + gcpPublicCidrsAccessEnabled_ = 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.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthorizedNetworksConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthorizedNetworksConfigOrBuilder.java new file mode 100644 index 000000000000..f09134db7b99 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterAuthorizedNetworksConfigOrBuilder.java @@ -0,0 +1,88 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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 + 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); + + /** + *
+   * Whether master is accessbile via Google Compute Engine Public IP addresses.
+   * 
+ * + * optional bool gcp_public_cidrs_access_enabled = 3; + * @return Whether the gcpPublicCidrsAccessEnabled field is set. + */ + boolean hasGcpPublicCidrsAccessEnabled(); + /** + *
+   * Whether master is accessbile via Google Compute Engine Public IP addresses.
+   * 
+ * + * optional bool gcp_public_cidrs_access_enabled = 3; + * @return The gcpPublicCidrsAccessEnabled. + */ + boolean getGcpPublicCidrsAccessEnabled(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterOrBuilder.java new file mode 100644 index 000000000000..b01917f9ffac --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MasterOrBuilder.java @@ -0,0 +1,10 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaxPodsConstraint.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaxPodsConstraint.java new file mode 100644 index 000000000000..7e3dafe9bc39 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaxPodsConstraint.java @@ -0,0 +1,497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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_ = 0L; + /** + *
+   * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.MaxPodsConstraint result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.maxPodsPerNode_ = maxPodsPerNode_; + } + } + + @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.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + maxPodsPerNode_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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() { + bitField0_ = (bitField0_ & ~0x00000001); + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaxPodsConstraintOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaxPodsConstraintOrBuilder.java new file mode 100644 index 000000000000..63f24ab6e71d --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MaxPodsConstraintOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MeshCertificates.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MeshCertificates.java new file mode 100644 index 000000000000..84e679d77907 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MeshCertificates.java @@ -0,0 +1,751 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * Configuration for issuance of mTLS keys and certificates to Kubernetes pods.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.MeshCertificates} + */ +public final class MeshCertificates extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.MeshCertificates) + MeshCertificatesOrBuilder { +private static final long serialVersionUID = 0L; + // Use MeshCertificates.newBuilder() to construct. + private MeshCertificates(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MeshCertificates() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MeshCertificates(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MeshCertificates_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MeshCertificates_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MeshCertificates.class, com.google.container.v1beta1.MeshCertificates.Builder.class); + } + + private int bitField0_; + public static final int ENABLE_CERTIFICATES_FIELD_NUMBER = 1; + private com.google.protobuf.BoolValue enableCertificates_; + /** + *
+   * enable_certificates controls issuance of workload mTLS certificates.
+   *
+   * If set, the GKE Workload Identity Certificates controller and node agent
+   * will be deployed in the cluster, which can then be configured by creating a
+   * WorkloadCertificateConfig Custom Resource.
+   *
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + * @return Whether the enableCertificates field is set. + */ + @java.lang.Override + public boolean hasEnableCertificates() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * enable_certificates controls issuance of workload mTLS certificates.
+   *
+   * If set, the GKE Workload Identity Certificates controller and node agent
+   * will be deployed in the cluster, which can then be configured by creating a
+   * WorkloadCertificateConfig Custom Resource.
+   *
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + * @return The enableCertificates. + */ + @java.lang.Override + public com.google.protobuf.BoolValue getEnableCertificates() { + return enableCertificates_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableCertificates_; + } + /** + *
+   * enable_certificates controls issuance of workload mTLS certificates.
+   *
+   * If set, the GKE Workload Identity Certificates controller and node agent
+   * will be deployed in the cluster, which can then be configured by creating a
+   * WorkloadCertificateConfig Custom Resource.
+   *
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + @java.lang.Override + public com.google.protobuf.BoolValueOrBuilder getEnableCertificatesOrBuilder() { + return enableCertificates_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableCertificates_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getEnableCertificates()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getEnableCertificates()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.MeshCertificates)) { + return super.equals(obj); + } + com.google.container.v1beta1.MeshCertificates other = (com.google.container.v1beta1.MeshCertificates) obj; + + if (hasEnableCertificates() != other.hasEnableCertificates()) return false; + if (hasEnableCertificates()) { + if (!getEnableCertificates() + .equals(other.getEnableCertificates())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEnableCertificates()) { + hash = (37 * hash) + ENABLE_CERTIFICATES_FIELD_NUMBER; + hash = (53 * hash) + getEnableCertificates().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.MeshCertificates parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.MeshCertificates parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.MeshCertificates parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.MeshCertificates parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.MeshCertificates parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.MeshCertificates parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.MeshCertificates parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.MeshCertificates parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.MeshCertificates parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.MeshCertificates parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.MeshCertificates parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.MeshCertificates parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.MeshCertificates prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes pods.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.MeshCertificates} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.MeshCertificates) + com.google.container.v1beta1.MeshCertificatesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MeshCertificates_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MeshCertificates_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MeshCertificates.class, com.google.container.v1beta1.MeshCertificates.Builder.class); + } + + // Construct using com.google.container.v1beta1.MeshCertificates.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getEnableCertificatesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enableCertificates_ = null; + if (enableCertificatesBuilder_ != null) { + enableCertificatesBuilder_.dispose(); + enableCertificatesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MeshCertificates_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.MeshCertificates getDefaultInstanceForType() { + return com.google.container.v1beta1.MeshCertificates.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.MeshCertificates build() { + com.google.container.v1beta1.MeshCertificates result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.MeshCertificates buildPartial() { + com.google.container.v1beta1.MeshCertificates result = new com.google.container.v1beta1.MeshCertificates(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.MeshCertificates result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enableCertificates_ = enableCertificatesBuilder_ == null + ? enableCertificates_ + : enableCertificatesBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.MeshCertificates) { + return mergeFrom((com.google.container.v1beta1.MeshCertificates)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.MeshCertificates other) { + if (other == com.google.container.v1beta1.MeshCertificates.getDefaultInstance()) return this; + if (other.hasEnableCertificates()) { + mergeEnableCertificates(other.getEnableCertificates()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getEnableCertificatesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.BoolValue enableCertificates_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> enableCertificatesBuilder_; + /** + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     *
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     *
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + * @return Whether the enableCertificates field is set. + */ + public boolean hasEnableCertificates() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     *
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     *
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + * @return The enableCertificates. + */ + public com.google.protobuf.BoolValue getEnableCertificates() { + if (enableCertificatesBuilder_ == null) { + return enableCertificates_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableCertificates_; + } else { + return enableCertificatesBuilder_.getMessage(); + } + } + /** + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     *
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     *
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public Builder setEnableCertificates(com.google.protobuf.BoolValue value) { + if (enableCertificatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + enableCertificates_ = value; + } else { + enableCertificatesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     *
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     *
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public Builder setEnableCertificates( + com.google.protobuf.BoolValue.Builder builderForValue) { + if (enableCertificatesBuilder_ == null) { + enableCertificates_ = builderForValue.build(); + } else { + enableCertificatesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     *
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     *
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public Builder mergeEnableCertificates(com.google.protobuf.BoolValue value) { + if (enableCertificatesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + enableCertificates_ != null && + enableCertificates_ != com.google.protobuf.BoolValue.getDefaultInstance()) { + getEnableCertificatesBuilder().mergeFrom(value); + } else { + enableCertificates_ = value; + } + } else { + enableCertificatesBuilder_.mergeFrom(value); + } + if (enableCertificates_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     *
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     *
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public Builder clearEnableCertificates() { + bitField0_ = (bitField0_ & ~0x00000001); + enableCertificates_ = null; + if (enableCertificatesBuilder_ != null) { + enableCertificatesBuilder_.dispose(); + enableCertificatesBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     *
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     *
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public com.google.protobuf.BoolValue.Builder getEnableCertificatesBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getEnableCertificatesFieldBuilder().getBuilder(); + } + /** + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     *
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     *
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public com.google.protobuf.BoolValueOrBuilder getEnableCertificatesOrBuilder() { + if (enableCertificatesBuilder_ != null) { + return enableCertificatesBuilder_.getMessageOrBuilder(); + } else { + return enableCertificates_ == null ? + com.google.protobuf.BoolValue.getDefaultInstance() : enableCertificates_; + } + } + /** + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     *
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     *
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> + getEnableCertificatesFieldBuilder() { + if (enableCertificatesBuilder_ == null) { + enableCertificatesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( + getEnableCertificates(), + getParentForChildren(), + isClean()); + enableCertificates_ = null; + } + return enableCertificatesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.MeshCertificates) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.MeshCertificates) + private static final com.google.container.v1beta1.MeshCertificates DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.MeshCertificates(); + } + + public static com.google.container.v1beta1.MeshCertificates getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MeshCertificates parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.MeshCertificates getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MeshCertificatesOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MeshCertificatesOrBuilder.java new file mode 100644 index 000000000000..8e594279f5e3 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MeshCertificatesOrBuilder.java @@ -0,0 +1,61 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface MeshCertificatesOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.MeshCertificates) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * enable_certificates controls issuance of workload mTLS certificates.
+   *
+   * If set, the GKE Workload Identity Certificates controller and node agent
+   * will be deployed in the cluster, which can then be configured by creating a
+   * WorkloadCertificateConfig Custom Resource.
+   *
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + * @return Whether the enableCertificates field is set. + */ + boolean hasEnableCertificates(); + /** + *
+   * enable_certificates controls issuance of workload mTLS certificates.
+   *
+   * If set, the GKE Workload Identity Certificates controller and node agent
+   * will be deployed in the cluster, which can then be configured by creating a
+   * WorkloadCertificateConfig Custom Resource.
+   *
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + * @return The enableCertificates. + */ + com.google.protobuf.BoolValue getEnableCertificates(); + /** + *
+   * enable_certificates controls issuance of workload mTLS certificates.
+   *
+   * If set, the GKE Workload Identity Certificates controller and node agent
+   * will be deployed in the cluster, which can then be configured by creating a
+   * WorkloadCertificateConfig Custom Resource.
+   *
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + com.google.protobuf.BoolValueOrBuilder getEnableCertificatesOrBuilder(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringComponentConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringComponentConfig.java new file mode 100644 index 000000000000..0c4c1bba4061 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringComponentConfig.java @@ -0,0 +1,1060 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * MonitoringComponentConfig is cluster monitoring component configuration.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.MonitoringComponentConfig} + */ +public final class MonitoringComponentConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.MonitoringComponentConfig) + MonitoringComponentConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use MonitoringComponentConfig.newBuilder() to construct. + private MonitoringComponentConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MonitoringComponentConfig() { + enableComponents_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MonitoringComponentConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MonitoringComponentConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MonitoringComponentConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MonitoringComponentConfig.class, com.google.container.v1beta1.MonitoringComponentConfig.Builder.class); + } + + /** + *
+   * GKE components exposing metrics
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.MonitoringComponentConfig.Component} + */ + public enum Component + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Default value. This shouldn't be used.
+     * 
+ * + * COMPONENT_UNSPECIFIED = 0; + */ + COMPONENT_UNSPECIFIED(0), + /** + *
+     * system components
+     * 
+ * + * SYSTEM_COMPONENTS = 1; + */ + SYSTEM_COMPONENTS(1), + /** + *
+     * Deprecated: Use Google Cloud Managed Service for Prometheus.
+     * 
+ * + * WORKLOADS = 2 [deprecated = true]; + */ + @java.lang.Deprecated + WORKLOADS(2), + /** + *
+     * kube-apiserver
+     * 
+ * + * APISERVER = 3; + */ + APISERVER(3), + /** + *
+     * kube-scheduler
+     * 
+ * + * SCHEDULER = 4; + */ + SCHEDULER(4), + /** + *
+     * kube-controller-manager
+     * 
+ * + * CONTROLLER_MANAGER = 5; + */ + CONTROLLER_MANAGER(5), + /** + *
+     * Storage
+     * 
+ * + * STORAGE = 7; + */ + STORAGE(7), + /** + *
+     * Horizontal Pod Autoscaling
+     * 
+ * + * HPA = 8; + */ + HPA(8), + /** + *
+     * Pod
+     * 
+ * + * POD = 9; + */ + POD(9), + /** + *
+     * DaemonSet
+     * 
+ * + * DAEMONSET = 10; + */ + DAEMONSET(10), + /** + *
+     * Deployment
+     * 
+ * + * DEPLOYMENT = 11; + */ + DEPLOYMENT(11), + /** + *
+     * Statefulset
+     * 
+ * + * STATEFULSET = 12; + */ + STATEFULSET(12), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Default value. This shouldn't be used.
+     * 
+ * + * COMPONENT_UNSPECIFIED = 0; + */ + public static final int COMPONENT_UNSPECIFIED_VALUE = 0; + /** + *
+     * system components
+     * 
+ * + * SYSTEM_COMPONENTS = 1; + */ + public static final int SYSTEM_COMPONENTS_VALUE = 1; + /** + *
+     * Deprecated: Use Google Cloud Managed Service for Prometheus.
+     * 
+ * + * WORKLOADS = 2 [deprecated = true]; + */ + @java.lang.Deprecated public static final int WORKLOADS_VALUE = 2; + /** + *
+     * kube-apiserver
+     * 
+ * + * APISERVER = 3; + */ + public static final int APISERVER_VALUE = 3; + /** + *
+     * kube-scheduler
+     * 
+ * + * SCHEDULER = 4; + */ + public static final int SCHEDULER_VALUE = 4; + /** + *
+     * kube-controller-manager
+     * 
+ * + * CONTROLLER_MANAGER = 5; + */ + public static final int CONTROLLER_MANAGER_VALUE = 5; + /** + *
+     * Storage
+     * 
+ * + * STORAGE = 7; + */ + public static final int STORAGE_VALUE = 7; + /** + *
+     * Horizontal Pod Autoscaling
+     * 
+ * + * HPA = 8; + */ + public static final int HPA_VALUE = 8; + /** + *
+     * Pod
+     * 
+ * + * POD = 9; + */ + public static final int POD_VALUE = 9; + /** + *
+     * DaemonSet
+     * 
+ * + * DAEMONSET = 10; + */ + public static final int DAEMONSET_VALUE = 10; + /** + *
+     * Deployment
+     * 
+ * + * DEPLOYMENT = 11; + */ + public static final int DEPLOYMENT_VALUE = 11; + /** + *
+     * Statefulset
+     * 
+ * + * STATEFULSET = 12; + */ + public static final int STATEFULSET_VALUE = 12; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Component valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Component forNumber(int value) { + switch (value) { + case 0: return COMPONENT_UNSPECIFIED; + case 1: return SYSTEM_COMPONENTS; + case 2: return WORKLOADS; + case 3: return APISERVER; + case 4: return SCHEDULER; + case 5: return CONTROLLER_MANAGER; + case 7: return STORAGE; + case 8: return HPA; + case 9: return POD; + case 10: return DAEMONSET; + case 11: return DEPLOYMENT; + case 12: return STATEFULSET; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Component> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Component findValueByNumber(int number) { + return Component.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1beta1.MonitoringComponentConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final Component[] VALUES = values(); + + public static Component valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Component(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.MonitoringComponentConfig.Component) + } + + public static final int ENABLE_COMPONENTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List enableComponents_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.container.v1beta1.MonitoringComponentConfig.Component> enableComponents_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.container.v1beta1.MonitoringComponentConfig.Component>() { + public com.google.container.v1beta1.MonitoringComponentConfig.Component convert(java.lang.Integer from) { + com.google.container.v1beta1.MonitoringComponentConfig.Component result = com.google.container.v1beta1.MonitoringComponentConfig.Component.forNumber(from); + return result == null ? com.google.container.v1beta1.MonitoringComponentConfig.Component.UNRECOGNIZED : result; + } + }; + /** + *
+   * Select components to collect metrics. An empty set would disable all
+   * monitoring.
+   * 
+ * + * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; + * @return A list containing the enableComponents. + */ + @java.lang.Override + public java.util.List getEnableComponentsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.container.v1beta1.MonitoringComponentConfig.Component>(enableComponents_, enableComponents_converter_); + } + /** + *
+   * Select components to collect metrics. An empty set would disable all
+   * monitoring.
+   * 
+ * + * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; + * @return The count of enableComponents. + */ + @java.lang.Override + public int getEnableComponentsCount() { + return enableComponents_.size(); + } + /** + *
+   * Select components to collect metrics. An empty set would disable all
+   * monitoring.
+   * 
+ * + * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; + * @param index The index of the element to return. + * @return The enableComponents at the given index. + */ + @java.lang.Override + public com.google.container.v1beta1.MonitoringComponentConfig.Component getEnableComponents(int index) { + return enableComponents_converter_.convert(enableComponents_.get(index)); + } + /** + *
+   * Select components to collect metrics. An empty set would disable all
+   * monitoring.
+   * 
+ * + * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; + * @return A list containing the enum numeric values on the wire for enableComponents. + */ + @java.lang.Override + public java.util.List + getEnableComponentsValueList() { + return enableComponents_; + } + /** + *
+   * Select components to collect metrics. An empty set would disable all
+   * monitoring.
+   * 
+ * + * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of enableComponents at the given index. + */ + @java.lang.Override + public int getEnableComponentsValue(int index) { + return enableComponents_.get(index); + } + private int enableComponentsMemoizedSerializedSize; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (getEnableComponentsList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(enableComponentsMemoizedSerializedSize); + } + for (int i = 0; i < enableComponents_.size(); i++) { + output.writeEnumNoTag(enableComponents_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < enableComponents_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(enableComponents_.get(i)); + } + size += dataSize; + if (!getEnableComponentsList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }enableComponentsMemoizedSerializedSize = dataSize; + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.MonitoringComponentConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.MonitoringComponentConfig other = (com.google.container.v1beta1.MonitoringComponentConfig) obj; + + if (!enableComponents_.equals(other.enableComponents_)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEnableComponentsCount() > 0) { + hash = (37 * hash) + ENABLE_COMPONENTS_FIELD_NUMBER; + hash = (53 * hash) + enableComponents_.hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.MonitoringComponentConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.MonitoringComponentConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.MonitoringComponentConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.MonitoringComponentConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.MonitoringComponentConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.MonitoringComponentConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.MonitoringComponentConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.MonitoringComponentConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.MonitoringComponentConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.MonitoringComponentConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.MonitoringComponentConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.MonitoringComponentConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.MonitoringComponentConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * MonitoringComponentConfig is cluster monitoring component configuration.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.MonitoringComponentConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.MonitoringComponentConfig) + com.google.container.v1beta1.MonitoringComponentConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MonitoringComponentConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MonitoringComponentConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MonitoringComponentConfig.class, com.google.container.v1beta1.MonitoringComponentConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.MonitoringComponentConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enableComponents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MonitoringComponentConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.MonitoringComponentConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.MonitoringComponentConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.MonitoringComponentConfig build() { + com.google.container.v1beta1.MonitoringComponentConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.MonitoringComponentConfig buildPartial() { + com.google.container.v1beta1.MonitoringComponentConfig result = new com.google.container.v1beta1.MonitoringComponentConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1beta1.MonitoringComponentConfig result) { + if (((bitField0_ & 0x00000001) != 0)) { + enableComponents_ = java.util.Collections.unmodifiableList(enableComponents_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.enableComponents_ = enableComponents_; + } + + private void buildPartial0(com.google.container.v1beta1.MonitoringComponentConfig result) { + int from_bitField0_ = bitField0_; + } + + @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.MonitoringComponentConfig) { + return mergeFrom((com.google.container.v1beta1.MonitoringComponentConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.MonitoringComponentConfig other) { + if (other == com.google.container.v1beta1.MonitoringComponentConfig.getDefaultInstance()) return this; + if (!other.enableComponents_.isEmpty()) { + if (enableComponents_.isEmpty()) { + enableComponents_ = other.enableComponents_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEnableComponentsIsMutable(); + enableComponents_.addAll(other.enableComponents_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int tmpRaw = input.readEnum(); + ensureEnableComponentsIsMutable(); + enableComponents_.add(tmpRaw); + break; + } // case 8 + case 10: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureEnableComponentsIsMutable(); + enableComponents_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List enableComponents_ = + java.util.Collections.emptyList(); + private void ensureEnableComponentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + enableComponents_ = new java.util.ArrayList(enableComponents_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * Select components to collect metrics. An empty set would disable all
+     * monitoring.
+     * 
+ * + * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; + * @return A list containing the enableComponents. + */ + public java.util.List getEnableComponentsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.container.v1beta1.MonitoringComponentConfig.Component>(enableComponents_, enableComponents_converter_); + } + /** + *
+     * Select components to collect metrics. An empty set would disable all
+     * monitoring.
+     * 
+ * + * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; + * @return The count of enableComponents. + */ + public int getEnableComponentsCount() { + return enableComponents_.size(); + } + /** + *
+     * Select components to collect metrics. An empty set would disable all
+     * monitoring.
+     * 
+ * + * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; + * @param index The index of the element to return. + * @return The enableComponents at the given index. + */ + public com.google.container.v1beta1.MonitoringComponentConfig.Component getEnableComponents(int index) { + return enableComponents_converter_.convert(enableComponents_.get(index)); + } + /** + *
+     * Select components to collect metrics. An empty set would disable all
+     * monitoring.
+     * 
+ * + * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; + * @param index The index to set the value at. + * @param value The enableComponents to set. + * @return This builder for chaining. + */ + public Builder setEnableComponents( + int index, com.google.container.v1beta1.MonitoringComponentConfig.Component value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnableComponentsIsMutable(); + enableComponents_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + *
+     * Select components to collect metrics. An empty set would disable all
+     * monitoring.
+     * 
+ * + * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; + * @param value The enableComponents to add. + * @return This builder for chaining. + */ + public Builder addEnableComponents(com.google.container.v1beta1.MonitoringComponentConfig.Component value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnableComponentsIsMutable(); + enableComponents_.add(value.getNumber()); + onChanged(); + return this; + } + /** + *
+     * Select components to collect metrics. An empty set would disable all
+     * monitoring.
+     * 
+ * + * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; + * @param values The enableComponents to add. + * @return This builder for chaining. + */ + public Builder addAllEnableComponents( + java.lang.Iterable values) { + ensureEnableComponentsIsMutable(); + for (com.google.container.v1beta1.MonitoringComponentConfig.Component value : values) { + enableComponents_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + *
+     * Select components to collect metrics. An empty set would disable all
+     * monitoring.
+     * 
+ * + * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; + * @return This builder for chaining. + */ + public Builder clearEnableComponents() { + enableComponents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Select components to collect metrics. An empty set would disable all
+     * monitoring.
+     * 
+ * + * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; + * @return A list containing the enum numeric values on the wire for enableComponents. + */ + public java.util.List + getEnableComponentsValueList() { + return java.util.Collections.unmodifiableList(enableComponents_); + } + /** + *
+     * Select components to collect metrics. An empty set would disable all
+     * monitoring.
+     * 
+ * + * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of enableComponents at the given index. + */ + public int getEnableComponentsValue(int index) { + return enableComponents_.get(index); + } + /** + *
+     * Select components to collect metrics. An empty set would disable all
+     * monitoring.
+     * 
+ * + * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for enableComponents to set. + * @return This builder for chaining. + */ + public Builder setEnableComponentsValue( + int index, int value) { + ensureEnableComponentsIsMutable(); + enableComponents_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * Select components to collect metrics. An empty set would disable all
+     * monitoring.
+     * 
+ * + * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; + * @param value The enum numeric value on the wire for enableComponents to add. + * @return This builder for chaining. + */ + public Builder addEnableComponentsValue(int value) { + ensureEnableComponentsIsMutable(); + enableComponents_.add(value); + onChanged(); + return this; + } + /** + *
+     * Select components to collect metrics. An empty set would disable all
+     * monitoring.
+     * 
+ * + * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; + * @param values The enum numeric values on the wire for enableComponents to add. + * @return This builder for chaining. + */ + public Builder addAllEnableComponentsValue( + java.lang.Iterable values) { + ensureEnableComponentsIsMutable(); + for (int value : values) { + enableComponents_.add(value); + } + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.MonitoringComponentConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.MonitoringComponentConfig) + private static final com.google.container.v1beta1.MonitoringComponentConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.MonitoringComponentConfig(); + } + + public static com.google.container.v1beta1.MonitoringComponentConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MonitoringComponentConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.MonitoringComponentConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringComponentConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringComponentConfigOrBuilder.java new file mode 100644 index 000000000000..3ee8a181e5e2 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringComponentConfigOrBuilder.java @@ -0,0 +1,64 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface MonitoringComponentConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.MonitoringComponentConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Select components to collect metrics. An empty set would disable all
+   * monitoring.
+   * 
+ * + * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; + * @return A list containing the enableComponents. + */ + java.util.List getEnableComponentsList(); + /** + *
+   * Select components to collect metrics. An empty set would disable all
+   * monitoring.
+   * 
+ * + * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; + * @return The count of enableComponents. + */ + int getEnableComponentsCount(); + /** + *
+   * Select components to collect metrics. An empty set would disable all
+   * monitoring.
+   * 
+ * + * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; + * @param index The index of the element to return. + * @return The enableComponents at the given index. + */ + com.google.container.v1beta1.MonitoringComponentConfig.Component getEnableComponents(int index); + /** + *
+   * Select components to collect metrics. An empty set would disable all
+   * monitoring.
+   * 
+ * + * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; + * @return A list containing the enum numeric values on the wire for enableComponents. + */ + java.util.List + getEnableComponentsValueList(); + /** + *
+   * Select components to collect metrics. An empty set would disable all
+   * monitoring.
+   * 
+ * + * repeated .google.container.v1beta1.MonitoringComponentConfig.Component enable_components = 1; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of enableComponents at the given index. + */ + int getEnableComponentsValue(int index); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringConfig.java new file mode 100644 index 000000000000..b77a181b9578 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringConfig.java @@ -0,0 +1,1133 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * MonitoringConfig is cluster monitoring configuration.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.MonitoringConfig} + */ +public final class MonitoringConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.MonitoringConfig) + MonitoringConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use MonitoringConfig.newBuilder() to construct. + private MonitoringConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MonitoringConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MonitoringConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MonitoringConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MonitoringConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MonitoringConfig.class, com.google.container.v1beta1.MonitoringConfig.Builder.class); + } + + private int bitField0_; + public static final int COMPONENT_CONFIG_FIELD_NUMBER = 1; + private com.google.container.v1beta1.MonitoringComponentConfig componentConfig_; + /** + *
+   * Monitoring components configuration
+   * 
+ * + * .google.container.v1beta1.MonitoringComponentConfig component_config = 1; + * @return Whether the componentConfig field is set. + */ + @java.lang.Override + public boolean hasComponentConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Monitoring components configuration
+   * 
+ * + * .google.container.v1beta1.MonitoringComponentConfig component_config = 1; + * @return The componentConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.MonitoringComponentConfig getComponentConfig() { + return componentConfig_ == null ? com.google.container.v1beta1.MonitoringComponentConfig.getDefaultInstance() : componentConfig_; + } + /** + *
+   * Monitoring components configuration
+   * 
+ * + * .google.container.v1beta1.MonitoringComponentConfig component_config = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.MonitoringComponentConfigOrBuilder getComponentConfigOrBuilder() { + return componentConfig_ == null ? com.google.container.v1beta1.MonitoringComponentConfig.getDefaultInstance() : componentConfig_; + } + + public static final int MANAGED_PROMETHEUS_CONFIG_FIELD_NUMBER = 2; + private com.google.container.v1beta1.ManagedPrometheusConfig managedPrometheusConfig_; + /** + *
+   * Enable Google Cloud Managed Service for Prometheus
+   * in the cluster.
+   * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + * @return Whether the managedPrometheusConfig field is set. + */ + @java.lang.Override + public boolean hasManagedPrometheusConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * Enable Google Cloud Managed Service for Prometheus
+   * in the cluster.
+   * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + * @return The managedPrometheusConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.ManagedPrometheusConfig getManagedPrometheusConfig() { + return managedPrometheusConfig_ == null ? com.google.container.v1beta1.ManagedPrometheusConfig.getDefaultInstance() : managedPrometheusConfig_; + } + /** + *
+   * Enable Google Cloud Managed Service for Prometheus
+   * in the cluster.
+   * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + @java.lang.Override + public com.google.container.v1beta1.ManagedPrometheusConfigOrBuilder getManagedPrometheusConfigOrBuilder() { + return managedPrometheusConfig_ == null ? com.google.container.v1beta1.ManagedPrometheusConfig.getDefaultInstance() : managedPrometheusConfig_; + } + + public static final int ADVANCED_DATAPATH_OBSERVABILITY_CONFIG_FIELD_NUMBER = 3; + private com.google.container.v1beta1.AdvancedDatapathObservabilityConfig advancedDatapathObservabilityConfig_; + /** + *
+   * Configuration of Advanced Datapath Observability features.
+   * 
+ * + * .google.container.v1beta1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; + * @return Whether the advancedDatapathObservabilityConfig field is set. + */ + @java.lang.Override + public boolean hasAdvancedDatapathObservabilityConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+   * Configuration of Advanced Datapath Observability features.
+   * 
+ * + * .google.container.v1beta1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; + * @return The advancedDatapathObservabilityConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.AdvancedDatapathObservabilityConfig getAdvancedDatapathObservabilityConfig() { + return advancedDatapathObservabilityConfig_ == null ? com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.getDefaultInstance() : advancedDatapathObservabilityConfig_; + } + /** + *
+   * Configuration of Advanced Datapath Observability features.
+   * 
+ * + * .google.container.v1beta1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; + */ + @java.lang.Override + public com.google.container.v1beta1.AdvancedDatapathObservabilityConfigOrBuilder getAdvancedDatapathObservabilityConfigOrBuilder() { + return advancedDatapathObservabilityConfig_ == null ? com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.getDefaultInstance() : advancedDatapathObservabilityConfig_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getComponentConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getManagedPrometheusConfig()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getAdvancedDatapathObservabilityConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getComponentConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getManagedPrometheusConfig()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getAdvancedDatapathObservabilityConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.MonitoringConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.MonitoringConfig other = (com.google.container.v1beta1.MonitoringConfig) obj; + + if (hasComponentConfig() != other.hasComponentConfig()) return false; + if (hasComponentConfig()) { + if (!getComponentConfig() + .equals(other.getComponentConfig())) return false; + } + if (hasManagedPrometheusConfig() != other.hasManagedPrometheusConfig()) return false; + if (hasManagedPrometheusConfig()) { + if (!getManagedPrometheusConfig() + .equals(other.getManagedPrometheusConfig())) return false; + } + if (hasAdvancedDatapathObservabilityConfig() != other.hasAdvancedDatapathObservabilityConfig()) return false; + if (hasAdvancedDatapathObservabilityConfig()) { + if (!getAdvancedDatapathObservabilityConfig() + .equals(other.getAdvancedDatapathObservabilityConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasComponentConfig()) { + hash = (37 * hash) + COMPONENT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getComponentConfig().hashCode(); + } + if (hasManagedPrometheusConfig()) { + hash = (37 * hash) + MANAGED_PROMETHEUS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getManagedPrometheusConfig().hashCode(); + } + if (hasAdvancedDatapathObservabilityConfig()) { + hash = (37 * hash) + ADVANCED_DATAPATH_OBSERVABILITY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAdvancedDatapathObservabilityConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.MonitoringConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.MonitoringConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.MonitoringConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.MonitoringConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.MonitoringConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.MonitoringConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.MonitoringConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.MonitoringConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.MonitoringConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.MonitoringConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.MonitoringConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.MonitoringConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.MonitoringConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * MonitoringConfig is cluster monitoring configuration.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.MonitoringConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.MonitoringConfig) + com.google.container.v1beta1.MonitoringConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MonitoringConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MonitoringConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.MonitoringConfig.class, com.google.container.v1beta1.MonitoringConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.MonitoringConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getComponentConfigFieldBuilder(); + getManagedPrometheusConfigFieldBuilder(); + getAdvancedDatapathObservabilityConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + componentConfig_ = null; + if (componentConfigBuilder_ != null) { + componentConfigBuilder_.dispose(); + componentConfigBuilder_ = null; + } + managedPrometheusConfig_ = null; + if (managedPrometheusConfigBuilder_ != null) { + managedPrometheusConfigBuilder_.dispose(); + managedPrometheusConfigBuilder_ = null; + } + advancedDatapathObservabilityConfig_ = null; + if (advancedDatapathObservabilityConfigBuilder_ != null) { + advancedDatapathObservabilityConfigBuilder_.dispose(); + advancedDatapathObservabilityConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_MonitoringConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.MonitoringConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.MonitoringConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.MonitoringConfig build() { + com.google.container.v1beta1.MonitoringConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.MonitoringConfig buildPartial() { + com.google.container.v1beta1.MonitoringConfig result = new com.google.container.v1beta1.MonitoringConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.MonitoringConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.componentConfig_ = componentConfigBuilder_ == null + ? componentConfig_ + : componentConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.managedPrometheusConfig_ = managedPrometheusConfigBuilder_ == null + ? managedPrometheusConfig_ + : managedPrometheusConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.advancedDatapathObservabilityConfig_ = advancedDatapathObservabilityConfigBuilder_ == null + ? advancedDatapathObservabilityConfig_ + : advancedDatapathObservabilityConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @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.MonitoringConfig) { + return mergeFrom((com.google.container.v1beta1.MonitoringConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.MonitoringConfig other) { + if (other == com.google.container.v1beta1.MonitoringConfig.getDefaultInstance()) return this; + if (other.hasComponentConfig()) { + mergeComponentConfig(other.getComponentConfig()); + } + if (other.hasManagedPrometheusConfig()) { + mergeManagedPrometheusConfig(other.getManagedPrometheusConfig()); + } + if (other.hasAdvancedDatapathObservabilityConfig()) { + mergeAdvancedDatapathObservabilityConfig(other.getAdvancedDatapathObservabilityConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getComponentConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getManagedPrometheusConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getAdvancedDatapathObservabilityConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.container.v1beta1.MonitoringComponentConfig componentConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MonitoringComponentConfig, com.google.container.v1beta1.MonitoringComponentConfig.Builder, com.google.container.v1beta1.MonitoringComponentConfigOrBuilder> componentConfigBuilder_; + /** + *
+     * Monitoring components configuration
+     * 
+ * + * .google.container.v1beta1.MonitoringComponentConfig component_config = 1; + * @return Whether the componentConfig field is set. + */ + public boolean hasComponentConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Monitoring components configuration
+     * 
+ * + * .google.container.v1beta1.MonitoringComponentConfig component_config = 1; + * @return The componentConfig. + */ + public com.google.container.v1beta1.MonitoringComponentConfig getComponentConfig() { + if (componentConfigBuilder_ == null) { + return componentConfig_ == null ? com.google.container.v1beta1.MonitoringComponentConfig.getDefaultInstance() : componentConfig_; + } else { + return componentConfigBuilder_.getMessage(); + } + } + /** + *
+     * Monitoring components configuration
+     * 
+ * + * .google.container.v1beta1.MonitoringComponentConfig component_config = 1; + */ + public Builder setComponentConfig(com.google.container.v1beta1.MonitoringComponentConfig value) { + if (componentConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + componentConfig_ = value; + } else { + componentConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Monitoring components configuration
+     * 
+ * + * .google.container.v1beta1.MonitoringComponentConfig component_config = 1; + */ + public Builder setComponentConfig( + com.google.container.v1beta1.MonitoringComponentConfig.Builder builderForValue) { + if (componentConfigBuilder_ == null) { + componentConfig_ = builderForValue.build(); + } else { + componentConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Monitoring components configuration
+     * 
+ * + * .google.container.v1beta1.MonitoringComponentConfig component_config = 1; + */ + public Builder mergeComponentConfig(com.google.container.v1beta1.MonitoringComponentConfig value) { + if (componentConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + componentConfig_ != null && + componentConfig_ != com.google.container.v1beta1.MonitoringComponentConfig.getDefaultInstance()) { + getComponentConfigBuilder().mergeFrom(value); + } else { + componentConfig_ = value; + } + } else { + componentConfigBuilder_.mergeFrom(value); + } + if (componentConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+     * Monitoring components configuration
+     * 
+ * + * .google.container.v1beta1.MonitoringComponentConfig component_config = 1; + */ + public Builder clearComponentConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + componentConfig_ = null; + if (componentConfigBuilder_ != null) { + componentConfigBuilder_.dispose(); + componentConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Monitoring components configuration
+     * 
+ * + * .google.container.v1beta1.MonitoringComponentConfig component_config = 1; + */ + public com.google.container.v1beta1.MonitoringComponentConfig.Builder getComponentConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getComponentConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Monitoring components configuration
+     * 
+ * + * .google.container.v1beta1.MonitoringComponentConfig component_config = 1; + */ + public com.google.container.v1beta1.MonitoringComponentConfigOrBuilder getComponentConfigOrBuilder() { + if (componentConfigBuilder_ != null) { + return componentConfigBuilder_.getMessageOrBuilder(); + } else { + return componentConfig_ == null ? + com.google.container.v1beta1.MonitoringComponentConfig.getDefaultInstance() : componentConfig_; + } + } + /** + *
+     * Monitoring components configuration
+     * 
+ * + * .google.container.v1beta1.MonitoringComponentConfig component_config = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MonitoringComponentConfig, com.google.container.v1beta1.MonitoringComponentConfig.Builder, com.google.container.v1beta1.MonitoringComponentConfigOrBuilder> + getComponentConfigFieldBuilder() { + if (componentConfigBuilder_ == null) { + componentConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MonitoringComponentConfig, com.google.container.v1beta1.MonitoringComponentConfig.Builder, com.google.container.v1beta1.MonitoringComponentConfigOrBuilder>( + getComponentConfig(), + getParentForChildren(), + isClean()); + componentConfig_ = null; + } + return componentConfigBuilder_; + } + + private com.google.container.v1beta1.ManagedPrometheusConfig managedPrometheusConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ManagedPrometheusConfig, com.google.container.v1beta1.ManagedPrometheusConfig.Builder, com.google.container.v1beta1.ManagedPrometheusConfigOrBuilder> managedPrometheusConfigBuilder_; + /** + *
+     * Enable Google Cloud Managed Service for Prometheus
+     * in the cluster.
+     * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + * @return Whether the managedPrometheusConfig field is set. + */ + public boolean hasManagedPrometheusConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Enable Google Cloud Managed Service for Prometheus
+     * in the cluster.
+     * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + * @return The managedPrometheusConfig. + */ + public com.google.container.v1beta1.ManagedPrometheusConfig getManagedPrometheusConfig() { + if (managedPrometheusConfigBuilder_ == null) { + return managedPrometheusConfig_ == null ? com.google.container.v1beta1.ManagedPrometheusConfig.getDefaultInstance() : managedPrometheusConfig_; + } else { + return managedPrometheusConfigBuilder_.getMessage(); + } + } + /** + *
+     * Enable Google Cloud Managed Service for Prometheus
+     * in the cluster.
+     * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + public Builder setManagedPrometheusConfig(com.google.container.v1beta1.ManagedPrometheusConfig value) { + if (managedPrometheusConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + managedPrometheusConfig_ = value; + } else { + managedPrometheusConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Enable Google Cloud Managed Service for Prometheus
+     * in the cluster.
+     * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + public Builder setManagedPrometheusConfig( + com.google.container.v1beta1.ManagedPrometheusConfig.Builder builderForValue) { + if (managedPrometheusConfigBuilder_ == null) { + managedPrometheusConfig_ = builderForValue.build(); + } else { + managedPrometheusConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Enable Google Cloud Managed Service for Prometheus
+     * in the cluster.
+     * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + public Builder mergeManagedPrometheusConfig(com.google.container.v1beta1.ManagedPrometheusConfig value) { + if (managedPrometheusConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + managedPrometheusConfig_ != null && + managedPrometheusConfig_ != com.google.container.v1beta1.ManagedPrometheusConfig.getDefaultInstance()) { + getManagedPrometheusConfigBuilder().mergeFrom(value); + } else { + managedPrometheusConfig_ = value; + } + } else { + managedPrometheusConfigBuilder_.mergeFrom(value); + } + if (managedPrometheusConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + *
+     * Enable Google Cloud Managed Service for Prometheus
+     * in the cluster.
+     * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + public Builder clearManagedPrometheusConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + managedPrometheusConfig_ = null; + if (managedPrometheusConfigBuilder_ != null) { + managedPrometheusConfigBuilder_.dispose(); + managedPrometheusConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Enable Google Cloud Managed Service for Prometheus
+     * in the cluster.
+     * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + public com.google.container.v1beta1.ManagedPrometheusConfig.Builder getManagedPrometheusConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getManagedPrometheusConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Enable Google Cloud Managed Service for Prometheus
+     * in the cluster.
+     * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + public com.google.container.v1beta1.ManagedPrometheusConfigOrBuilder getManagedPrometheusConfigOrBuilder() { + if (managedPrometheusConfigBuilder_ != null) { + return managedPrometheusConfigBuilder_.getMessageOrBuilder(); + } else { + return managedPrometheusConfig_ == null ? + com.google.container.v1beta1.ManagedPrometheusConfig.getDefaultInstance() : managedPrometheusConfig_; + } + } + /** + *
+     * Enable Google Cloud Managed Service for Prometheus
+     * in the cluster.
+     * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ManagedPrometheusConfig, com.google.container.v1beta1.ManagedPrometheusConfig.Builder, com.google.container.v1beta1.ManagedPrometheusConfigOrBuilder> + getManagedPrometheusConfigFieldBuilder() { + if (managedPrometheusConfigBuilder_ == null) { + managedPrometheusConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ManagedPrometheusConfig, com.google.container.v1beta1.ManagedPrometheusConfig.Builder, com.google.container.v1beta1.ManagedPrometheusConfigOrBuilder>( + getManagedPrometheusConfig(), + getParentForChildren(), + isClean()); + managedPrometheusConfig_ = null; + } + return managedPrometheusConfigBuilder_; + } + + private com.google.container.v1beta1.AdvancedDatapathObservabilityConfig advancedDatapathObservabilityConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AdvancedDatapathObservabilityConfig, com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.Builder, com.google.container.v1beta1.AdvancedDatapathObservabilityConfigOrBuilder> advancedDatapathObservabilityConfigBuilder_; + /** + *
+     * Configuration of Advanced Datapath Observability features.
+     * 
+ * + * .google.container.v1beta1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; + * @return Whether the advancedDatapathObservabilityConfig field is set. + */ + public boolean hasAdvancedDatapathObservabilityConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * Configuration of Advanced Datapath Observability features.
+     * 
+ * + * .google.container.v1beta1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; + * @return The advancedDatapathObservabilityConfig. + */ + public com.google.container.v1beta1.AdvancedDatapathObservabilityConfig getAdvancedDatapathObservabilityConfig() { + if (advancedDatapathObservabilityConfigBuilder_ == null) { + return advancedDatapathObservabilityConfig_ == null ? com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.getDefaultInstance() : advancedDatapathObservabilityConfig_; + } else { + return advancedDatapathObservabilityConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configuration of Advanced Datapath Observability features.
+     * 
+ * + * .google.container.v1beta1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; + */ + public Builder setAdvancedDatapathObservabilityConfig(com.google.container.v1beta1.AdvancedDatapathObservabilityConfig value) { + if (advancedDatapathObservabilityConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + advancedDatapathObservabilityConfig_ = value; + } else { + advancedDatapathObservabilityConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Configuration of Advanced Datapath Observability features.
+     * 
+ * + * .google.container.v1beta1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; + */ + public Builder setAdvancedDatapathObservabilityConfig( + com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.Builder builderForValue) { + if (advancedDatapathObservabilityConfigBuilder_ == null) { + advancedDatapathObservabilityConfig_ = builderForValue.build(); + } else { + advancedDatapathObservabilityConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Configuration of Advanced Datapath Observability features.
+     * 
+ * + * .google.container.v1beta1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; + */ + public Builder mergeAdvancedDatapathObservabilityConfig(com.google.container.v1beta1.AdvancedDatapathObservabilityConfig value) { + if (advancedDatapathObservabilityConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + advancedDatapathObservabilityConfig_ != null && + advancedDatapathObservabilityConfig_ != com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.getDefaultInstance()) { + getAdvancedDatapathObservabilityConfigBuilder().mergeFrom(value); + } else { + advancedDatapathObservabilityConfig_ = value; + } + } else { + advancedDatapathObservabilityConfigBuilder_.mergeFrom(value); + } + if (advancedDatapathObservabilityConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+     * Configuration of Advanced Datapath Observability features.
+     * 
+ * + * .google.container.v1beta1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; + */ + public Builder clearAdvancedDatapathObservabilityConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + advancedDatapathObservabilityConfig_ = null; + if (advancedDatapathObservabilityConfigBuilder_ != null) { + advancedDatapathObservabilityConfigBuilder_.dispose(); + advancedDatapathObservabilityConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration of Advanced Datapath Observability features.
+     * 
+ * + * .google.container.v1beta1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; + */ + public com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.Builder getAdvancedDatapathObservabilityConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getAdvancedDatapathObservabilityConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration of Advanced Datapath Observability features.
+     * 
+ * + * .google.container.v1beta1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; + */ + public com.google.container.v1beta1.AdvancedDatapathObservabilityConfigOrBuilder getAdvancedDatapathObservabilityConfigOrBuilder() { + if (advancedDatapathObservabilityConfigBuilder_ != null) { + return advancedDatapathObservabilityConfigBuilder_.getMessageOrBuilder(); + } else { + return advancedDatapathObservabilityConfig_ == null ? + com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.getDefaultInstance() : advancedDatapathObservabilityConfig_; + } + } + /** + *
+     * Configuration of Advanced Datapath Observability features.
+     * 
+ * + * .google.container.v1beta1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AdvancedDatapathObservabilityConfig, com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.Builder, com.google.container.v1beta1.AdvancedDatapathObservabilityConfigOrBuilder> + getAdvancedDatapathObservabilityConfigFieldBuilder() { + if (advancedDatapathObservabilityConfigBuilder_ == null) { + advancedDatapathObservabilityConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AdvancedDatapathObservabilityConfig, com.google.container.v1beta1.AdvancedDatapathObservabilityConfig.Builder, com.google.container.v1beta1.AdvancedDatapathObservabilityConfigOrBuilder>( + getAdvancedDatapathObservabilityConfig(), + getParentForChildren(), + isClean()); + advancedDatapathObservabilityConfig_ = null; + } + return advancedDatapathObservabilityConfigBuilder_; + } + @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.MonitoringConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.MonitoringConfig) + private static final com.google.container.v1beta1.MonitoringConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.MonitoringConfig(); + } + + public static com.google.container.v1beta1.MonitoringConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MonitoringConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.MonitoringConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringConfigOrBuilder.java new file mode 100644 index 000000000000..05f22ceb3be7 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/MonitoringConfigOrBuilder.java @@ -0,0 +1,94 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface MonitoringConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.MonitoringConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Monitoring components configuration
+   * 
+ * + * .google.container.v1beta1.MonitoringComponentConfig component_config = 1; + * @return Whether the componentConfig field is set. + */ + boolean hasComponentConfig(); + /** + *
+   * Monitoring components configuration
+   * 
+ * + * .google.container.v1beta1.MonitoringComponentConfig component_config = 1; + * @return The componentConfig. + */ + com.google.container.v1beta1.MonitoringComponentConfig getComponentConfig(); + /** + *
+   * Monitoring components configuration
+   * 
+ * + * .google.container.v1beta1.MonitoringComponentConfig component_config = 1; + */ + com.google.container.v1beta1.MonitoringComponentConfigOrBuilder getComponentConfigOrBuilder(); + + /** + *
+   * Enable Google Cloud Managed Service for Prometheus
+   * in the cluster.
+   * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + * @return Whether the managedPrometheusConfig field is set. + */ + boolean hasManagedPrometheusConfig(); + /** + *
+   * Enable Google Cloud Managed Service for Prometheus
+   * in the cluster.
+   * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + * @return The managedPrometheusConfig. + */ + com.google.container.v1beta1.ManagedPrometheusConfig getManagedPrometheusConfig(); + /** + *
+   * Enable Google Cloud Managed Service for Prometheus
+   * in the cluster.
+   * 
+ * + * .google.container.v1beta1.ManagedPrometheusConfig managed_prometheus_config = 2; + */ + com.google.container.v1beta1.ManagedPrometheusConfigOrBuilder getManagedPrometheusConfigOrBuilder(); + + /** + *
+   * Configuration of Advanced Datapath Observability features.
+   * 
+ * + * .google.container.v1beta1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; + * @return Whether the advancedDatapathObservabilityConfig field is set. + */ + boolean hasAdvancedDatapathObservabilityConfig(); + /** + *
+   * Configuration of Advanced Datapath Observability features.
+   * 
+ * + * .google.container.v1beta1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; + * @return The advancedDatapathObservabilityConfig. + */ + com.google.container.v1beta1.AdvancedDatapathObservabilityConfig getAdvancedDatapathObservabilityConfig(); + /** + *
+   * Configuration of Advanced Datapath Observability features.
+   * 
+ * + * .google.container.v1beta1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; + */ + com.google.container.v1beta1.AdvancedDatapathObservabilityConfigOrBuilder getAdvancedDatapathObservabilityConfigOrBuilder(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfig.java new file mode 100644 index 000000000000..7688a10bcdec --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfig.java @@ -0,0 +1,3519 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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; + privateIpv6GoogleAccess_ = 0; + inTransitEncryptionConfig_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NetworkConfig(); + } + + 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 interface ClusterNetworkPerformanceConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Specifies the total network bandwidth tier for the NodePool.
+     * 
+ * + * optional .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return Whether the totalEgressBandwidthTier field is set. + */ + boolean hasTotalEgressBandwidthTier(); + /** + *
+     * Specifies the total network bandwidth tier for the NodePool.
+     * 
+ * + * optional .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return The enum numeric value on the wire for totalEgressBandwidthTier. + */ + int getTotalEgressBandwidthTierValue(); + /** + *
+     * Specifies the total network bandwidth tier for the NodePool.
+     * 
+ * + * optional .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return The totalEgressBandwidthTier. + */ + com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier getTotalEgressBandwidthTier(); + } + /** + *
+   * Configuration of all network bandwidth tiers
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig} + */ + public static final class ClusterNetworkPerformanceConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig) + ClusterNetworkPerformanceConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClusterNetworkPerformanceConfig.newBuilder() to construct. + private ClusterNetworkPerformanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ClusterNetworkPerformanceConfig() { + totalEgressBandwidthTier_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ClusterNetworkPerformanceConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NetworkConfig_ClusterNetworkPerformanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NetworkConfig_ClusterNetworkPerformanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.class, com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder.class); + } + + /** + *
+     * Node network tier
+     * 
+ * + * Protobuf enum {@code google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier} + */ + public enum Tier + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * Default value
+       * 
+ * + * TIER_UNSPECIFIED = 0; + */ + TIER_UNSPECIFIED(0), + /** + *
+       * Higher bandwidth, actual values based on VM size.
+       * 
+ * + * TIER_1 = 1; + */ + TIER_1(1), + UNRECOGNIZED(-1), + ; + + /** + *
+       * Default value
+       * 
+ * + * TIER_UNSPECIFIED = 0; + */ + public static final int TIER_UNSPECIFIED_VALUE = 0; + /** + *
+       * Higher bandwidth, actual values based on VM size.
+       * 
+ * + * TIER_1 = 1; + */ + public static final int TIER_1_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 Tier 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 Tier forNumber(int value) { + switch (value) { + case 0: return TIER_UNSPECIFIED; + case 1: return TIER_1; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Tier> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Tier findValueByNumber(int number) { + return Tier.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.NetworkConfig.ClusterNetworkPerformanceConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final Tier[] VALUES = values(); + + public static Tier 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 Tier(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier) + } + + private int bitField0_; + public static final int TOTAL_EGRESS_BANDWIDTH_TIER_FIELD_NUMBER = 1; + private int totalEgressBandwidthTier_ = 0; + /** + *
+     * Specifies the total network bandwidth tier for the NodePool.
+     * 
+ * + * optional .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return Whether the totalEgressBandwidthTier field is set. + */ + @java.lang.Override public boolean hasTotalEgressBandwidthTier() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Specifies the total network bandwidth tier for the NodePool.
+     * 
+ * + * optional .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return The enum numeric value on the wire for totalEgressBandwidthTier. + */ + @java.lang.Override public int getTotalEgressBandwidthTierValue() { + return totalEgressBandwidthTier_; + } + /** + *
+     * Specifies the total network bandwidth tier for the NodePool.
+     * 
+ * + * optional .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return The totalEgressBandwidthTier. + */ + @java.lang.Override public com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier getTotalEgressBandwidthTier() { + com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier result = com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier.forNumber(totalEgressBandwidthTier_); + return result == null ? com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier.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 (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, totalEgressBandwidthTier_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, totalEgressBandwidthTier_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.ClusterNetworkPerformanceConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig other = (com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig) obj; + + if (hasTotalEgressBandwidthTier() != other.hasTotalEgressBandwidthTier()) return false; + if (hasTotalEgressBandwidthTier()) { + if (totalEgressBandwidthTier_ != other.totalEgressBandwidthTier_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTotalEgressBandwidthTier()) { + hash = (37 * hash) + TOTAL_EGRESS_BANDWIDTH_TIER_FIELD_NUMBER; + hash = (53 * hash) + totalEgressBandwidthTier_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig parseFrom( + 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.ClusterNetworkPerformanceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig parseFrom( + com.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.ClusterNetworkPerformanceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig 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.ClusterNetworkPerformanceConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig parseFrom( + java.io.InputStream 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.ClusterNetworkPerformanceConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig parseDelimitedFrom( + java.io.InputStream 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.ClusterNetworkPerformanceConfig 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.ClusterNetworkPerformanceConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.ClusterNetworkPerformanceConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new 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 all network bandwidth tiers
+     * 
+ * + * Protobuf type {@code google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig) + com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NetworkConfig_ClusterNetworkPerformanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NetworkConfig_ClusterNetworkPerformanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.class, com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + totalEgressBandwidthTier_ = 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_ClusterNetworkPerformanceConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig build() { + com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig buildPartial() { + com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig result = new com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.totalEgressBandwidthTier_ = totalEgressBandwidthTier_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @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.ClusterNetworkPerformanceConfig) { + return mergeFrom((com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig other) { + if (other == com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.getDefaultInstance()) return this; + if (other.hasTotalEgressBandwidthTier()) { + setTotalEgressBandwidthTier(other.getTotalEgressBandwidthTier()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + totalEgressBandwidthTier_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int totalEgressBandwidthTier_ = 0; + /** + *
+       * Specifies the total network bandwidth tier for the NodePool.
+       * 
+ * + * optional .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return Whether the totalEgressBandwidthTier field is set. + */ + @java.lang.Override public boolean hasTotalEgressBandwidthTier() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * Specifies the total network bandwidth tier for the NodePool.
+       * 
+ * + * optional .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return The enum numeric value on the wire for totalEgressBandwidthTier. + */ + @java.lang.Override public int getTotalEgressBandwidthTierValue() { + return totalEgressBandwidthTier_; + } + /** + *
+       * Specifies the total network bandwidth tier for the NodePool.
+       * 
+ * + * optional .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @param value The enum numeric value on the wire for totalEgressBandwidthTier to set. + * @return This builder for chaining. + */ + public Builder setTotalEgressBandwidthTierValue(int value) { + totalEgressBandwidthTier_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Specifies the total network bandwidth tier for the NodePool.
+       * 
+ * + * optional .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return The totalEgressBandwidthTier. + */ + @java.lang.Override + public com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier getTotalEgressBandwidthTier() { + com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier result = com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier.forNumber(totalEgressBandwidthTier_); + return result == null ? com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier.UNRECOGNIZED : result; + } + /** + *
+       * Specifies the total network bandwidth tier for the NodePool.
+       * 
+ * + * optional .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @param value The totalEgressBandwidthTier to set. + * @return This builder for chaining. + */ + public Builder setTotalEgressBandwidthTier(com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + totalEgressBandwidthTier_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Specifies the total network bandwidth tier for the NodePool.
+       * 
+ * + * optional .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return This builder for chaining. + */ + public Builder clearTotalEgressBandwidthTier() { + bitField0_ = (bitField0_ & ~0x00000001); + totalEgressBandwidthTier_ = 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.ClusterNetworkPerformanceConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig) + private static final com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig(); + } + + public static com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterNetworkPerformanceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.ClusterNetworkPerformanceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int NETWORK_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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_ = false; + /** + *
+   * 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 ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * 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 defaultSnatStatus_ == null ? com.google.container.v1beta1.DefaultSnatStatus.getDefaultInstance() : defaultSnatStatus_; + } + + public static final int ENABLE_L4ILB_SUBSETTING_FIELD_NUMBER = 10; + private boolean enableL4IlbSubsetting_ = false; + /** + *
+   * Whether L4ILB Subsetting is enabled for this cluster.
+   * 
+ * + * bool enable_l4ilb_subsetting = 10; + * @return The enableL4ilbSubsetting. + */ + @java.lang.Override + public boolean getEnableL4IlbSubsetting() { + return enableL4IlbSubsetting_; + } + + public static final int DATAPATH_PROVIDER_FIELD_NUMBER = 11; + private int datapathProvider_ = 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; + * @return The datapathProvider. + */ + @java.lang.Override public com.google.container.v1beta1.DatapathProvider getDatapathProvider() { + com.google.container.v1beta1.DatapathProvider result = com.google.container.v1beta1.DatapathProvider.forNumber(datapathProvider_); + return result == null ? com.google.container.v1beta1.DatapathProvider.UNRECOGNIZED : result; + } + + public static final int PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER = 12; + private int privateIpv6GoogleAccess_ = 0; + /** + *
+   * The desired state of IPv6 connectivity to Google Services.
+   * By default, no private IPv6 access to or from Google Services (all access
+   * will be via IPv4)
+   * 
+ * + * .google.container.v1beta1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + * @return The enum numeric value on the wire for privateIpv6GoogleAccess. + */ + @java.lang.Override public int getPrivateIpv6GoogleAccessValue() { + return privateIpv6GoogleAccess_; + } + /** + *
+   * The desired state of IPv6 connectivity to Google Services.
+   * By default, no private IPv6 access to or from Google Services (all access
+   * will be via IPv4)
+   * 
+ * + * .google.container.v1beta1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + * @return The privateIpv6GoogleAccess. + */ + @java.lang.Override public com.google.container.v1beta1.PrivateIPv6GoogleAccess getPrivateIpv6GoogleAccess() { + com.google.container.v1beta1.PrivateIPv6GoogleAccess result = com.google.container.v1beta1.PrivateIPv6GoogleAccess.forNumber(privateIpv6GoogleAccess_); + return result == null ? com.google.container.v1beta1.PrivateIPv6GoogleAccess.UNRECOGNIZED : result; + } + + public static final int DNS_CONFIG_FIELD_NUMBER = 13; + private com.google.container.v1beta1.DNSConfig dnsConfig_; + /** + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1beta1.DNSConfig dns_config = 13; + * @return Whether the dnsConfig field is set. + */ + @java.lang.Override + public boolean hasDnsConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1beta1.DNSConfig dns_config = 13; + * @return The dnsConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.DNSConfig getDnsConfig() { + return dnsConfig_ == null ? com.google.container.v1beta1.DNSConfig.getDefaultInstance() : dnsConfig_; + } + /** + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1beta1.DNSConfig dns_config = 13; + */ + @java.lang.Override + public com.google.container.v1beta1.DNSConfigOrBuilder getDnsConfigOrBuilder() { + return dnsConfig_ == null ? com.google.container.v1beta1.DNSConfig.getDefaultInstance() : dnsConfig_; + } + + public static final int SERVICE_EXTERNAL_IPS_CONFIG_FIELD_NUMBER = 15; + private com.google.container.v1beta1.ServiceExternalIPsConfig serviceExternalIpsConfig_; + /** + *
+   * ServiceExternalIPsConfig specifies if services with externalIPs field are
+   * blocked or not.
+   * 
+ * + * .google.container.v1beta1.ServiceExternalIPsConfig service_external_ips_config = 15; + * @return Whether the serviceExternalIpsConfig field is set. + */ + @java.lang.Override + public boolean hasServiceExternalIpsConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+   * ServiceExternalIPsConfig specifies if services with externalIPs field are
+   * blocked or not.
+   * 
+ * + * .google.container.v1beta1.ServiceExternalIPsConfig service_external_ips_config = 15; + * @return The serviceExternalIpsConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.ServiceExternalIPsConfig getServiceExternalIpsConfig() { + return serviceExternalIpsConfig_ == null ? com.google.container.v1beta1.ServiceExternalIPsConfig.getDefaultInstance() : serviceExternalIpsConfig_; + } + /** + *
+   * ServiceExternalIPsConfig specifies if services with externalIPs field are
+   * blocked or not.
+   * 
+ * + * .google.container.v1beta1.ServiceExternalIPsConfig service_external_ips_config = 15; + */ + @java.lang.Override + public com.google.container.v1beta1.ServiceExternalIPsConfigOrBuilder getServiceExternalIpsConfigOrBuilder() { + return serviceExternalIpsConfig_ == null ? com.google.container.v1beta1.ServiceExternalIPsConfig.getDefaultInstance() : serviceExternalIpsConfig_; + } + + public static final int GATEWAY_API_CONFIG_FIELD_NUMBER = 16; + private com.google.container.v1beta1.GatewayAPIConfig gatewayApiConfig_; + /** + *
+   * GatewayAPIConfig contains the desired config of Gateway API on this
+   * cluster.
+   * 
+ * + * .google.container.v1beta1.GatewayAPIConfig gateway_api_config = 16; + * @return Whether the gatewayApiConfig field is set. + */ + @java.lang.Override + public boolean hasGatewayApiConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+   * GatewayAPIConfig contains the desired config of Gateway API on this
+   * cluster.
+   * 
+ * + * .google.container.v1beta1.GatewayAPIConfig gateway_api_config = 16; + * @return The gatewayApiConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.GatewayAPIConfig getGatewayApiConfig() { + return gatewayApiConfig_ == null ? com.google.container.v1beta1.GatewayAPIConfig.getDefaultInstance() : gatewayApiConfig_; + } + /** + *
+   * GatewayAPIConfig contains the desired config of Gateway API on this
+   * cluster.
+   * 
+ * + * .google.container.v1beta1.GatewayAPIConfig gateway_api_config = 16; + */ + @java.lang.Override + public com.google.container.v1beta1.GatewayAPIConfigOrBuilder getGatewayApiConfigOrBuilder() { + return gatewayApiConfig_ == null ? com.google.container.v1beta1.GatewayAPIConfig.getDefaultInstance() : gatewayApiConfig_; + } + + public static final int ENABLE_MULTI_NETWORKING_FIELD_NUMBER = 17; + private boolean enableMultiNetworking_ = false; + /** + *
+   * Whether multi-networking is enabled for this cluster.
+   * 
+ * + * bool enable_multi_networking = 17; + * @return The enableMultiNetworking. + */ + @java.lang.Override + public boolean getEnableMultiNetworking() { + return enableMultiNetworking_; + } + + public static final int NETWORK_PERFORMANCE_CONFIG_FIELD_NUMBER = 18; + private com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig networkPerformanceConfig_; + /** + *
+   * Network bandwidth tier configuration.
+   * 
+ * + * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; + * @return Whether the networkPerformanceConfig field is set. + */ + @java.lang.Override + public boolean hasNetworkPerformanceConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+   * Network bandwidth tier configuration.
+   * 
+ * + * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; + * @return The networkPerformanceConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig getNetworkPerformanceConfig() { + return networkPerformanceConfig_ == null ? com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.getDefaultInstance() : networkPerformanceConfig_; + } + /** + *
+   * Network bandwidth tier configuration.
+   * 
+ * + * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; + */ + @java.lang.Override + public com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder getNetworkPerformanceConfigOrBuilder() { + return networkPerformanceConfig_ == null ? com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.getDefaultInstance() : networkPerformanceConfig_; + } + + public static final int ENABLE_FQDN_NETWORK_POLICY_FIELD_NUMBER = 19; + private boolean enableFqdnNetworkPolicy_ = false; + /** + *
+   * Whether FQDN Network Policy is enabled on this cluster.
+   * 
+ * + * optional bool enable_fqdn_network_policy = 19; + * @return Whether the enableFqdnNetworkPolicy field is set. + */ + @java.lang.Override + public boolean hasEnableFqdnNetworkPolicy() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+   * Whether FQDN Network Policy is enabled on this cluster.
+   * 
+ * + * optional bool enable_fqdn_network_policy = 19; + * @return The enableFqdnNetworkPolicy. + */ + @java.lang.Override + public boolean getEnableFqdnNetworkPolicy() { + return enableFqdnNetworkPolicy_; + } + + public static final int IN_TRANSIT_ENCRYPTION_CONFIG_FIELD_NUMBER = 20; + private int inTransitEncryptionConfig_ = 0; + /** + *
+   * Specify the details of in-transit encryption.
+   * 
+ * + * optional .google.container.v1beta1.InTransitEncryptionConfig in_transit_encryption_config = 20; + * @return Whether the inTransitEncryptionConfig field is set. + */ + @java.lang.Override public boolean hasInTransitEncryptionConfig() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+   * Specify the details of in-transit encryption.
+   * 
+ * + * optional .google.container.v1beta1.InTransitEncryptionConfig in_transit_encryption_config = 20; + * @return The enum numeric value on the wire for inTransitEncryptionConfig. + */ + @java.lang.Override public int getInTransitEncryptionConfigValue() { + return inTransitEncryptionConfig_; + } + /** + *
+   * Specify the details of in-transit encryption.
+   * 
+ * + * optional .google.container.v1beta1.InTransitEncryptionConfig in_transit_encryption_config = 20; + * @return The inTransitEncryptionConfig. + */ + @java.lang.Override public com.google.container.v1beta1.InTransitEncryptionConfig getInTransitEncryptionConfig() { + com.google.container.v1beta1.InTransitEncryptionConfig result = com.google.container.v1beta1.InTransitEncryptionConfig.forNumber(inTransitEncryptionConfig_); + return result == null ? com.google.container.v1beta1.InTransitEncryptionConfig.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subnetwork_); + } + if (enableIntraNodeVisibility_ != false) { + output.writeBool(5, enableIntraNodeVisibility_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(7, getDefaultSnatStatus()); + } + if (enableL4IlbSubsetting_ != false) { + output.writeBool(10, enableL4IlbSubsetting_); + } + if (datapathProvider_ != com.google.container.v1beta1.DatapathProvider.DATAPATH_PROVIDER_UNSPECIFIED.getNumber()) { + output.writeEnum(11, datapathProvider_); + } + if (privateIpv6GoogleAccess_ != com.google.container.v1beta1.PrivateIPv6GoogleAccess.PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED.getNumber()) { + output.writeEnum(12, privateIpv6GoogleAccess_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(13, getDnsConfig()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(15, getServiceExternalIpsConfig()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(16, getGatewayApiConfig()); + } + if (enableMultiNetworking_ != false) { + output.writeBool(17, enableMultiNetworking_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(18, getNetworkPerformanceConfig()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeBool(19, enableFqdnNetworkPolicy_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeEnum(20, inTransitEncryptionConfig_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subnetwork_); + } + if (enableIntraNodeVisibility_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, enableIntraNodeVisibility_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getDefaultSnatStatus()); + } + if (enableL4IlbSubsetting_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(10, enableL4IlbSubsetting_); + } + if (datapathProvider_ != com.google.container.v1beta1.DatapathProvider.DATAPATH_PROVIDER_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(11, datapathProvider_); + } + if (privateIpv6GoogleAccess_ != com.google.container.v1beta1.PrivateIPv6GoogleAccess.PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(12, privateIpv6GoogleAccess_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getDnsConfig()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, getServiceExternalIpsConfig()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getGatewayApiConfig()); + } + if (enableMultiNetworking_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(17, enableMultiNetworking_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, getNetworkPerformanceConfig()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(19, enableFqdnNetworkPolicy_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(20, inTransitEncryptionConfig_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (getEnableL4IlbSubsetting() + != other.getEnableL4IlbSubsetting()) return false; + if (datapathProvider_ != other.datapathProvider_) return false; + if (privateIpv6GoogleAccess_ != other.privateIpv6GoogleAccess_) return false; + if (hasDnsConfig() != other.hasDnsConfig()) return false; + if (hasDnsConfig()) { + if (!getDnsConfig() + .equals(other.getDnsConfig())) return false; + } + if (hasServiceExternalIpsConfig() != other.hasServiceExternalIpsConfig()) return false; + if (hasServiceExternalIpsConfig()) { + if (!getServiceExternalIpsConfig() + .equals(other.getServiceExternalIpsConfig())) return false; + } + if (hasGatewayApiConfig() != other.hasGatewayApiConfig()) return false; + if (hasGatewayApiConfig()) { + if (!getGatewayApiConfig() + .equals(other.getGatewayApiConfig())) return false; + } + if (getEnableMultiNetworking() + != other.getEnableMultiNetworking()) return false; + if (hasNetworkPerformanceConfig() != other.hasNetworkPerformanceConfig()) return false; + if (hasNetworkPerformanceConfig()) { + if (!getNetworkPerformanceConfig() + .equals(other.getNetworkPerformanceConfig())) return false; + } + if (hasEnableFqdnNetworkPolicy() != other.hasEnableFqdnNetworkPolicy()) return false; + if (hasEnableFqdnNetworkPolicy()) { + if (getEnableFqdnNetworkPolicy() + != other.getEnableFqdnNetworkPolicy()) return false; + } + if (hasInTransitEncryptionConfig() != other.hasInTransitEncryptionConfig()) return false; + if (hasInTransitEncryptionConfig()) { + if (inTransitEncryptionConfig_ != other.inTransitEncryptionConfig_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ENABLE_L4ILB_SUBSETTING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableL4IlbSubsetting()); + hash = (37 * hash) + DATAPATH_PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + datapathProvider_; + hash = (37 * hash) + PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER; + hash = (53 * hash) + privateIpv6GoogleAccess_; + if (hasDnsConfig()) { + hash = (37 * hash) + DNS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDnsConfig().hashCode(); + } + if (hasServiceExternalIpsConfig()) { + hash = (37 * hash) + SERVICE_EXTERNAL_IPS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getServiceExternalIpsConfig().hashCode(); + } + if (hasGatewayApiConfig()) { + hash = (37 * hash) + GATEWAY_API_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGatewayApiConfig().hashCode(); + } + hash = (37 * hash) + ENABLE_MULTI_NETWORKING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableMultiNetworking()); + if (hasNetworkPerformanceConfig()) { + hash = (37 * hash) + NETWORK_PERFORMANCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNetworkPerformanceConfig().hashCode(); + } + if (hasEnableFqdnNetworkPolicy()) { + hash = (37 * hash) + ENABLE_FQDN_NETWORK_POLICY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableFqdnNetworkPolicy()); + } + if (hasInTransitEncryptionConfig()) { + hash = (37 * hash) + IN_TRANSIT_ENCRYPTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + inTransitEncryptionConfig_; + } + hash = (29 * hash) + getUnknownFields().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) { + getDefaultSnatStatusFieldBuilder(); + getDnsConfigFieldBuilder(); + getServiceExternalIpsConfigFieldBuilder(); + getGatewayApiConfigFieldBuilder(); + getNetworkPerformanceConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + network_ = ""; + subnetwork_ = ""; + enableIntraNodeVisibility_ = false; + defaultSnatStatus_ = null; + if (defaultSnatStatusBuilder_ != null) { + defaultSnatStatusBuilder_.dispose(); + defaultSnatStatusBuilder_ = null; + } + enableL4IlbSubsetting_ = false; + datapathProvider_ = 0; + privateIpv6GoogleAccess_ = 0; + dnsConfig_ = null; + if (dnsConfigBuilder_ != null) { + dnsConfigBuilder_.dispose(); + dnsConfigBuilder_ = null; + } + serviceExternalIpsConfig_ = null; + if (serviceExternalIpsConfigBuilder_ != null) { + serviceExternalIpsConfigBuilder_.dispose(); + serviceExternalIpsConfigBuilder_ = null; + } + gatewayApiConfig_ = null; + if (gatewayApiConfigBuilder_ != null) { + gatewayApiConfigBuilder_.dispose(); + gatewayApiConfigBuilder_ = null; + } + enableMultiNetworking_ = false; + networkPerformanceConfig_ = null; + if (networkPerformanceConfigBuilder_ != null) { + networkPerformanceConfigBuilder_.dispose(); + networkPerformanceConfigBuilder_ = null; + } + enableFqdnNetworkPolicy_ = false; + inTransitEncryptionConfig_ = 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.NetworkConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.network_ = network_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.subnetwork_ = subnetwork_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.enableIntraNodeVisibility_ = enableIntraNodeVisibility_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.defaultSnatStatus_ = defaultSnatStatusBuilder_ == null + ? defaultSnatStatus_ + : defaultSnatStatusBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.enableL4IlbSubsetting_ = enableL4IlbSubsetting_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.datapathProvider_ = datapathProvider_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.privateIpv6GoogleAccess_ = privateIpv6GoogleAccess_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.dnsConfig_ = dnsConfigBuilder_ == null + ? dnsConfig_ + : dnsConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.serviceExternalIpsConfig_ = serviceExternalIpsConfigBuilder_ == null + ? serviceExternalIpsConfig_ + : serviceExternalIpsConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.gatewayApiConfig_ = gatewayApiConfigBuilder_ == null + ? gatewayApiConfig_ + : gatewayApiConfigBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.enableMultiNetworking_ = enableMultiNetworking_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.networkPerformanceConfig_ = networkPerformanceConfigBuilder_ == null + ? networkPerformanceConfig_ + : networkPerformanceConfigBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.enableFqdnNetworkPolicy_ = enableFqdnNetworkPolicy_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.inTransitEncryptionConfig_ = inTransitEncryptionConfig_; + to_bitField0_ |= 0x00000040; + } + result.bitField0_ |= to_bitField0_; + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSubnetwork().isEmpty()) { + subnetwork_ = other.subnetwork_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getEnableIntraNodeVisibility() != false) { + setEnableIntraNodeVisibility(other.getEnableIntraNodeVisibility()); + } + if (other.hasDefaultSnatStatus()) { + mergeDefaultSnatStatus(other.getDefaultSnatStatus()); + } + if (other.getEnableL4IlbSubsetting() != false) { + setEnableL4IlbSubsetting(other.getEnableL4IlbSubsetting()); + } + if (other.datapathProvider_ != 0) { + setDatapathProviderValue(other.getDatapathProviderValue()); + } + if (other.privateIpv6GoogleAccess_ != 0) { + setPrivateIpv6GoogleAccessValue(other.getPrivateIpv6GoogleAccessValue()); + } + if (other.hasDnsConfig()) { + mergeDnsConfig(other.getDnsConfig()); + } + if (other.hasServiceExternalIpsConfig()) { + mergeServiceExternalIpsConfig(other.getServiceExternalIpsConfig()); + } + if (other.hasGatewayApiConfig()) { + mergeGatewayApiConfig(other.getGatewayApiConfig()); + } + if (other.getEnableMultiNetworking() != false) { + setEnableMultiNetworking(other.getEnableMultiNetworking()); + } + if (other.hasNetworkPerformanceConfig()) { + mergeNetworkPerformanceConfig(other.getNetworkPerformanceConfig()); + } + if (other.hasEnableFqdnNetworkPolicy()) { + setEnableFqdnNetworkPolicy(other.getEnableFqdnNetworkPolicy()); + } + if (other.hasInTransitEncryptionConfig()) { + setInTransitEncryptionConfig(other.getInTransitEncryptionConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + network_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + subnetwork_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 40: { + enableIntraNodeVisibility_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 40 + case 58: { + input.readMessage( + getDefaultSnatStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 58 + case 80: { + enableL4IlbSubsetting_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 80 + case 88: { + datapathProvider_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 88 + case 96: { + privateIpv6GoogleAccess_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 96 + case 106: { + input.readMessage( + getDnsConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 106 + case 122: { + input.readMessage( + getServiceExternalIpsConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 122 + case 130: { + input.readMessage( + getGatewayApiConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 130 + case 136: { + enableMultiNetworking_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 136 + case 146: { + input.readMessage( + getNetworkPerformanceConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 146 + case 152: { + enableFqdnNetworkPolicy_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 152 + case 160: { + inTransitEncryptionConfig_ = input.readEnum(); + bitField0_ |= 0x00002000; + break; + } // case 160 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + 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; + bitField0_ |= 0x00000002; + 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(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + 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; + bitField0_ |= 0x00000004; + 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() { + bitField0_ = (bitField0_ & ~0x00000004); + 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 ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * 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; + } else { + defaultSnatStatusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + 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(); + } else { + defaultSnatStatusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + 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 (((bitField0_ & 0x00000008) != 0) && + defaultSnatStatus_ != null && + defaultSnatStatus_ != com.google.container.v1beta1.DefaultSnatStatus.getDefaultInstance()) { + getDefaultSnatStatusBuilder().mergeFrom(value); + } else { + defaultSnatStatus_ = value; + } + } else { + defaultSnatStatusBuilder_.mergeFrom(value); + } + if (defaultSnatStatus_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + 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() { + bitField0_ = (bitField0_ & ~0x00000008); + defaultSnatStatus_ = null; + if (defaultSnatStatusBuilder_ != null) { + defaultSnatStatusBuilder_.dispose(); + defaultSnatStatusBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000008; + 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 boolean enableL4IlbSubsetting_ ; + /** + *
+     * Whether L4ILB Subsetting is enabled for this cluster.
+     * 
+ * + * bool enable_l4ilb_subsetting = 10; + * @return The enableL4ilbSubsetting. + */ + @java.lang.Override + public boolean getEnableL4IlbSubsetting() { + return enableL4IlbSubsetting_; + } + /** + *
+     * Whether L4ILB Subsetting is enabled for this cluster.
+     * 
+ * + * bool enable_l4ilb_subsetting = 10; + * @param value The enableL4ilbSubsetting to set. + * @return This builder for chaining. + */ + public Builder setEnableL4IlbSubsetting(boolean value) { + + enableL4IlbSubsetting_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Whether L4ILB Subsetting is enabled for this cluster.
+     * 
+ * + * bool enable_l4ilb_subsetting = 10; + * @return This builder for chaining. + */ + public Builder clearEnableL4IlbSubsetting() { + bitField0_ = (bitField0_ & ~0x00000010); + enableL4IlbSubsetting_ = false; + onChanged(); + return this; + } + + private int datapathProvider_ = 0; + /** + *
+     * The desired datapath provider for this cluster. By default, uses the
+     * IPTables-based kube-proxy implementation.
+     * 
+ * + * .google.container.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; + bitField0_ |= 0x00000020; + 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() { + com.google.container.v1beta1.DatapathProvider result = com.google.container.v1beta1.DatapathProvider.forNumber(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(); + } + bitField0_ |= 0x00000020; + 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() { + bitField0_ = (bitField0_ & ~0x00000020); + datapathProvider_ = 0; + onChanged(); + return this; + } + + private int privateIpv6GoogleAccess_ = 0; + /** + *
+     * The desired state of IPv6 connectivity to Google Services.
+     * By default, no private IPv6 access to or from Google Services (all access
+     * will be via IPv4)
+     * 
+ * + * .google.container.v1beta1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + * @return The enum numeric value on the wire for privateIpv6GoogleAccess. + */ + @java.lang.Override public int getPrivateIpv6GoogleAccessValue() { + return privateIpv6GoogleAccess_; + } + /** + *
+     * The desired state of IPv6 connectivity to Google Services.
+     * By default, no private IPv6 access to or from Google Services (all access
+     * will be via IPv4)
+     * 
+ * + * .google.container.v1beta1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + * @param value The enum numeric value on the wire for privateIpv6GoogleAccess to set. + * @return This builder for chaining. + */ + public Builder setPrivateIpv6GoogleAccessValue(int value) { + privateIpv6GoogleAccess_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * The desired state of IPv6 connectivity to Google Services.
+     * By default, no private IPv6 access to or from Google Services (all access
+     * will be via IPv4)
+     * 
+ * + * .google.container.v1beta1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + * @return The privateIpv6GoogleAccess. + */ + @java.lang.Override + public com.google.container.v1beta1.PrivateIPv6GoogleAccess getPrivateIpv6GoogleAccess() { + com.google.container.v1beta1.PrivateIPv6GoogleAccess result = com.google.container.v1beta1.PrivateIPv6GoogleAccess.forNumber(privateIpv6GoogleAccess_); + return result == null ? com.google.container.v1beta1.PrivateIPv6GoogleAccess.UNRECOGNIZED : result; + } + /** + *
+     * The desired state of IPv6 connectivity to Google Services.
+     * By default, no private IPv6 access to or from Google Services (all access
+     * will be via IPv4)
+     * 
+ * + * .google.container.v1beta1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + * @param value The privateIpv6GoogleAccess to set. + * @return This builder for chaining. + */ + public Builder setPrivateIpv6GoogleAccess(com.google.container.v1beta1.PrivateIPv6GoogleAccess value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + privateIpv6GoogleAccess_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The desired state of IPv6 connectivity to Google Services.
+     * By default, no private IPv6 access to or from Google Services (all access
+     * will be via IPv4)
+     * 
+ * + * .google.container.v1beta1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + * @return This builder for chaining. + */ + public Builder clearPrivateIpv6GoogleAccess() { + bitField0_ = (bitField0_ & ~0x00000040); + privateIpv6GoogleAccess_ = 0; + onChanged(); + return this; + } + + private com.google.container.v1beta1.DNSConfig dnsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DNSConfig, com.google.container.v1beta1.DNSConfig.Builder, com.google.container.v1beta1.DNSConfigOrBuilder> dnsConfigBuilder_; + /** + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1beta1.DNSConfig dns_config = 13; + * @return Whether the dnsConfig field is set. + */ + public boolean hasDnsConfig() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1beta1.DNSConfig dns_config = 13; + * @return The dnsConfig. + */ + public com.google.container.v1beta1.DNSConfig getDnsConfig() { + if (dnsConfigBuilder_ == null) { + return dnsConfig_ == null ? com.google.container.v1beta1.DNSConfig.getDefaultInstance() : dnsConfig_; + } else { + return dnsConfigBuilder_.getMessage(); + } + } + /** + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1beta1.DNSConfig dns_config = 13; + */ + public Builder setDnsConfig(com.google.container.v1beta1.DNSConfig value) { + if (dnsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dnsConfig_ = value; + } else { + dnsConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1beta1.DNSConfig dns_config = 13; + */ + public Builder setDnsConfig( + com.google.container.v1beta1.DNSConfig.Builder builderForValue) { + if (dnsConfigBuilder_ == null) { + dnsConfig_ = builderForValue.build(); + } else { + dnsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1beta1.DNSConfig dns_config = 13; + */ + public Builder mergeDnsConfig(com.google.container.v1beta1.DNSConfig value) { + if (dnsConfigBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) && + dnsConfig_ != null && + dnsConfig_ != com.google.container.v1beta1.DNSConfig.getDefaultInstance()) { + getDnsConfigBuilder().mergeFrom(value); + } else { + dnsConfig_ = value; + } + } else { + dnsConfigBuilder_.mergeFrom(value); + } + if (dnsConfig_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + /** + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1beta1.DNSConfig dns_config = 13; + */ + public Builder clearDnsConfig() { + bitField0_ = (bitField0_ & ~0x00000080); + dnsConfig_ = null; + if (dnsConfigBuilder_ != null) { + dnsConfigBuilder_.dispose(); + dnsConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1beta1.DNSConfig dns_config = 13; + */ + public com.google.container.v1beta1.DNSConfig.Builder getDnsConfigBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getDnsConfigFieldBuilder().getBuilder(); + } + /** + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1beta1.DNSConfig dns_config = 13; + */ + public com.google.container.v1beta1.DNSConfigOrBuilder getDnsConfigOrBuilder() { + if (dnsConfigBuilder_ != null) { + return dnsConfigBuilder_.getMessageOrBuilder(); + } else { + return dnsConfig_ == null ? + com.google.container.v1beta1.DNSConfig.getDefaultInstance() : dnsConfig_; + } + } + /** + *
+     * DNSConfig contains clusterDNS config for this cluster.
+     * 
+ * + * .google.container.v1beta1.DNSConfig dns_config = 13; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DNSConfig, com.google.container.v1beta1.DNSConfig.Builder, com.google.container.v1beta1.DNSConfigOrBuilder> + getDnsConfigFieldBuilder() { + if (dnsConfigBuilder_ == null) { + dnsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.DNSConfig, com.google.container.v1beta1.DNSConfig.Builder, com.google.container.v1beta1.DNSConfigOrBuilder>( + getDnsConfig(), + getParentForChildren(), + isClean()); + dnsConfig_ = null; + } + return dnsConfigBuilder_; + } + + private com.google.container.v1beta1.ServiceExternalIPsConfig serviceExternalIpsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ServiceExternalIPsConfig, com.google.container.v1beta1.ServiceExternalIPsConfig.Builder, com.google.container.v1beta1.ServiceExternalIPsConfigOrBuilder> serviceExternalIpsConfigBuilder_; + /** + *
+     * ServiceExternalIPsConfig specifies if services with externalIPs field are
+     * blocked or not.
+     * 
+ * + * .google.container.v1beta1.ServiceExternalIPsConfig service_external_ips_config = 15; + * @return Whether the serviceExternalIpsConfig field is set. + */ + public boolean hasServiceExternalIpsConfig() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + *
+     * ServiceExternalIPsConfig specifies if services with externalIPs field are
+     * blocked or not.
+     * 
+ * + * .google.container.v1beta1.ServiceExternalIPsConfig service_external_ips_config = 15; + * @return The serviceExternalIpsConfig. + */ + public com.google.container.v1beta1.ServiceExternalIPsConfig getServiceExternalIpsConfig() { + if (serviceExternalIpsConfigBuilder_ == null) { + return serviceExternalIpsConfig_ == null ? com.google.container.v1beta1.ServiceExternalIPsConfig.getDefaultInstance() : serviceExternalIpsConfig_; + } else { + return serviceExternalIpsConfigBuilder_.getMessage(); + } + } + /** + *
+     * ServiceExternalIPsConfig specifies if services with externalIPs field are
+     * blocked or not.
+     * 
+ * + * .google.container.v1beta1.ServiceExternalIPsConfig service_external_ips_config = 15; + */ + public Builder setServiceExternalIpsConfig(com.google.container.v1beta1.ServiceExternalIPsConfig value) { + if (serviceExternalIpsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serviceExternalIpsConfig_ = value; + } else { + serviceExternalIpsConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * ServiceExternalIPsConfig specifies if services with externalIPs field are
+     * blocked or not.
+     * 
+ * + * .google.container.v1beta1.ServiceExternalIPsConfig service_external_ips_config = 15; + */ + public Builder setServiceExternalIpsConfig( + com.google.container.v1beta1.ServiceExternalIPsConfig.Builder builderForValue) { + if (serviceExternalIpsConfigBuilder_ == null) { + serviceExternalIpsConfig_ = builderForValue.build(); + } else { + serviceExternalIpsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * ServiceExternalIPsConfig specifies if services with externalIPs field are
+     * blocked or not.
+     * 
+ * + * .google.container.v1beta1.ServiceExternalIPsConfig service_external_ips_config = 15; + */ + public Builder mergeServiceExternalIpsConfig(com.google.container.v1beta1.ServiceExternalIPsConfig value) { + if (serviceExternalIpsConfigBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) && + serviceExternalIpsConfig_ != null && + serviceExternalIpsConfig_ != com.google.container.v1beta1.ServiceExternalIPsConfig.getDefaultInstance()) { + getServiceExternalIpsConfigBuilder().mergeFrom(value); + } else { + serviceExternalIpsConfig_ = value; + } + } else { + serviceExternalIpsConfigBuilder_.mergeFrom(value); + } + if (serviceExternalIpsConfig_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + /** + *
+     * ServiceExternalIPsConfig specifies if services with externalIPs field are
+     * blocked or not.
+     * 
+ * + * .google.container.v1beta1.ServiceExternalIPsConfig service_external_ips_config = 15; + */ + public Builder clearServiceExternalIpsConfig() { + bitField0_ = (bitField0_ & ~0x00000100); + serviceExternalIpsConfig_ = null; + if (serviceExternalIpsConfigBuilder_ != null) { + serviceExternalIpsConfigBuilder_.dispose(); + serviceExternalIpsConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * ServiceExternalIPsConfig specifies if services with externalIPs field are
+     * blocked or not.
+     * 
+ * + * .google.container.v1beta1.ServiceExternalIPsConfig service_external_ips_config = 15; + */ + public com.google.container.v1beta1.ServiceExternalIPsConfig.Builder getServiceExternalIpsConfigBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getServiceExternalIpsConfigFieldBuilder().getBuilder(); + } + /** + *
+     * ServiceExternalIPsConfig specifies if services with externalIPs field are
+     * blocked or not.
+     * 
+ * + * .google.container.v1beta1.ServiceExternalIPsConfig service_external_ips_config = 15; + */ + public com.google.container.v1beta1.ServiceExternalIPsConfigOrBuilder getServiceExternalIpsConfigOrBuilder() { + if (serviceExternalIpsConfigBuilder_ != null) { + return serviceExternalIpsConfigBuilder_.getMessageOrBuilder(); + } else { + return serviceExternalIpsConfig_ == null ? + com.google.container.v1beta1.ServiceExternalIPsConfig.getDefaultInstance() : serviceExternalIpsConfig_; + } + } + /** + *
+     * ServiceExternalIPsConfig specifies if services with externalIPs field are
+     * blocked or not.
+     * 
+ * + * .google.container.v1beta1.ServiceExternalIPsConfig service_external_ips_config = 15; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ServiceExternalIPsConfig, com.google.container.v1beta1.ServiceExternalIPsConfig.Builder, com.google.container.v1beta1.ServiceExternalIPsConfigOrBuilder> + getServiceExternalIpsConfigFieldBuilder() { + if (serviceExternalIpsConfigBuilder_ == null) { + serviceExternalIpsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ServiceExternalIPsConfig, com.google.container.v1beta1.ServiceExternalIPsConfig.Builder, com.google.container.v1beta1.ServiceExternalIPsConfigOrBuilder>( + getServiceExternalIpsConfig(), + getParentForChildren(), + isClean()); + serviceExternalIpsConfig_ = null; + } + return serviceExternalIpsConfigBuilder_; + } + + private com.google.container.v1beta1.GatewayAPIConfig gatewayApiConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GatewayAPIConfig, com.google.container.v1beta1.GatewayAPIConfig.Builder, com.google.container.v1beta1.GatewayAPIConfigOrBuilder> gatewayApiConfigBuilder_; + /** + *
+     * GatewayAPIConfig contains the desired config of Gateway API on this
+     * cluster.
+     * 
+ * + * .google.container.v1beta1.GatewayAPIConfig gateway_api_config = 16; + * @return Whether the gatewayApiConfig field is set. + */ + public boolean hasGatewayApiConfig() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + *
+     * GatewayAPIConfig contains the desired config of Gateway API on this
+     * cluster.
+     * 
+ * + * .google.container.v1beta1.GatewayAPIConfig gateway_api_config = 16; + * @return The gatewayApiConfig. + */ + public com.google.container.v1beta1.GatewayAPIConfig getGatewayApiConfig() { + if (gatewayApiConfigBuilder_ == null) { + return gatewayApiConfig_ == null ? com.google.container.v1beta1.GatewayAPIConfig.getDefaultInstance() : gatewayApiConfig_; + } else { + return gatewayApiConfigBuilder_.getMessage(); + } + } + /** + *
+     * GatewayAPIConfig contains the desired config of Gateway API on this
+     * cluster.
+     * 
+ * + * .google.container.v1beta1.GatewayAPIConfig gateway_api_config = 16; + */ + public Builder setGatewayApiConfig(com.google.container.v1beta1.GatewayAPIConfig value) { + if (gatewayApiConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gatewayApiConfig_ = value; + } else { + gatewayApiConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * GatewayAPIConfig contains the desired config of Gateway API on this
+     * cluster.
+     * 
+ * + * .google.container.v1beta1.GatewayAPIConfig gateway_api_config = 16; + */ + public Builder setGatewayApiConfig( + com.google.container.v1beta1.GatewayAPIConfig.Builder builderForValue) { + if (gatewayApiConfigBuilder_ == null) { + gatewayApiConfig_ = builderForValue.build(); + } else { + gatewayApiConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * GatewayAPIConfig contains the desired config of Gateway API on this
+     * cluster.
+     * 
+ * + * .google.container.v1beta1.GatewayAPIConfig gateway_api_config = 16; + */ + public Builder mergeGatewayApiConfig(com.google.container.v1beta1.GatewayAPIConfig value) { + if (gatewayApiConfigBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) && + gatewayApiConfig_ != null && + gatewayApiConfig_ != com.google.container.v1beta1.GatewayAPIConfig.getDefaultInstance()) { + getGatewayApiConfigBuilder().mergeFrom(value); + } else { + gatewayApiConfig_ = value; + } + } else { + gatewayApiConfigBuilder_.mergeFrom(value); + } + if (gatewayApiConfig_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + /** + *
+     * GatewayAPIConfig contains the desired config of Gateway API on this
+     * cluster.
+     * 
+ * + * .google.container.v1beta1.GatewayAPIConfig gateway_api_config = 16; + */ + public Builder clearGatewayApiConfig() { + bitField0_ = (bitField0_ & ~0x00000200); + gatewayApiConfig_ = null; + if (gatewayApiConfigBuilder_ != null) { + gatewayApiConfigBuilder_.dispose(); + gatewayApiConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * GatewayAPIConfig contains the desired config of Gateway API on this
+     * cluster.
+     * 
+ * + * .google.container.v1beta1.GatewayAPIConfig gateway_api_config = 16; + */ + public com.google.container.v1beta1.GatewayAPIConfig.Builder getGatewayApiConfigBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getGatewayApiConfigFieldBuilder().getBuilder(); + } + /** + *
+     * GatewayAPIConfig contains the desired config of Gateway API on this
+     * cluster.
+     * 
+ * + * .google.container.v1beta1.GatewayAPIConfig gateway_api_config = 16; + */ + public com.google.container.v1beta1.GatewayAPIConfigOrBuilder getGatewayApiConfigOrBuilder() { + if (gatewayApiConfigBuilder_ != null) { + return gatewayApiConfigBuilder_.getMessageOrBuilder(); + } else { + return gatewayApiConfig_ == null ? + com.google.container.v1beta1.GatewayAPIConfig.getDefaultInstance() : gatewayApiConfig_; + } + } + /** + *
+     * GatewayAPIConfig contains the desired config of Gateway API on this
+     * cluster.
+     * 
+ * + * .google.container.v1beta1.GatewayAPIConfig gateway_api_config = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GatewayAPIConfig, com.google.container.v1beta1.GatewayAPIConfig.Builder, com.google.container.v1beta1.GatewayAPIConfigOrBuilder> + getGatewayApiConfigFieldBuilder() { + if (gatewayApiConfigBuilder_ == null) { + gatewayApiConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GatewayAPIConfig, com.google.container.v1beta1.GatewayAPIConfig.Builder, com.google.container.v1beta1.GatewayAPIConfigOrBuilder>( + getGatewayApiConfig(), + getParentForChildren(), + isClean()); + gatewayApiConfig_ = null; + } + return gatewayApiConfigBuilder_; + } + + private boolean enableMultiNetworking_ ; + /** + *
+     * Whether multi-networking is enabled for this cluster.
+     * 
+ * + * bool enable_multi_networking = 17; + * @return The enableMultiNetworking. + */ + @java.lang.Override + public boolean getEnableMultiNetworking() { + return enableMultiNetworking_; + } + /** + *
+     * Whether multi-networking is enabled for this cluster.
+     * 
+ * + * bool enable_multi_networking = 17; + * @param value The enableMultiNetworking to set. + * @return This builder for chaining. + */ + public Builder setEnableMultiNetworking(boolean value) { + + enableMultiNetworking_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+     * Whether multi-networking is enabled for this cluster.
+     * 
+ * + * bool enable_multi_networking = 17; + * @return This builder for chaining. + */ + public Builder clearEnableMultiNetworking() { + bitField0_ = (bitField0_ & ~0x00000400); + enableMultiNetworking_ = false; + onChanged(); + return this; + } + + private com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig networkPerformanceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig, com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder, com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder> networkPerformanceConfigBuilder_; + /** + *
+     * Network bandwidth tier configuration.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; + * @return Whether the networkPerformanceConfig field is set. + */ + public boolean hasNetworkPerformanceConfig() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + *
+     * Network bandwidth tier configuration.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; + * @return The networkPerformanceConfig. + */ + public com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig getNetworkPerformanceConfig() { + if (networkPerformanceConfigBuilder_ == null) { + return networkPerformanceConfig_ == null ? com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.getDefaultInstance() : networkPerformanceConfig_; + } else { + return networkPerformanceConfigBuilder_.getMessage(); + } + } + /** + *
+     * Network bandwidth tier configuration.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; + */ + public Builder setNetworkPerformanceConfig(com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig value) { + if (networkPerformanceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkPerformanceConfig_ = value; + } else { + networkPerformanceConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * Network bandwidth tier configuration.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; + */ + public Builder setNetworkPerformanceConfig( + com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder builderForValue) { + if (networkPerformanceConfigBuilder_ == null) { + networkPerformanceConfig_ = builderForValue.build(); + } else { + networkPerformanceConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * Network bandwidth tier configuration.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; + */ + public Builder mergeNetworkPerformanceConfig(com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig value) { + if (networkPerformanceConfigBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) && + networkPerformanceConfig_ != null && + networkPerformanceConfig_ != com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.getDefaultInstance()) { + getNetworkPerformanceConfigBuilder().mergeFrom(value); + } else { + networkPerformanceConfig_ = value; + } + } else { + networkPerformanceConfigBuilder_.mergeFrom(value); + } + if (networkPerformanceConfig_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + /** + *
+     * Network bandwidth tier configuration.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; + */ + public Builder clearNetworkPerformanceConfig() { + bitField0_ = (bitField0_ & ~0x00000800); + networkPerformanceConfig_ = null; + if (networkPerformanceConfigBuilder_ != null) { + networkPerformanceConfigBuilder_.dispose(); + networkPerformanceConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Network bandwidth tier configuration.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; + */ + public com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder getNetworkPerformanceConfigBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return getNetworkPerformanceConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Network bandwidth tier configuration.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; + */ + public com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder getNetworkPerformanceConfigOrBuilder() { + if (networkPerformanceConfigBuilder_ != null) { + return networkPerformanceConfigBuilder_.getMessageOrBuilder(); + } else { + return networkPerformanceConfig_ == null ? + com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.getDefaultInstance() : networkPerformanceConfig_; + } + } + /** + *
+     * Network bandwidth tier configuration.
+     * 
+ * + * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig, com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder, com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder> + getNetworkPerformanceConfigFieldBuilder() { + if (networkPerformanceConfigBuilder_ == null) { + networkPerformanceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig, com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig.Builder, com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder>( + getNetworkPerformanceConfig(), + getParentForChildren(), + isClean()); + networkPerformanceConfig_ = null; + } + return networkPerformanceConfigBuilder_; + } + + private boolean enableFqdnNetworkPolicy_ ; + /** + *
+     * Whether FQDN Network Policy is enabled on this cluster.
+     * 
+ * + * optional bool enable_fqdn_network_policy = 19; + * @return Whether the enableFqdnNetworkPolicy field is set. + */ + @java.lang.Override + public boolean hasEnableFqdnNetworkPolicy() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + *
+     * Whether FQDN Network Policy is enabled on this cluster.
+     * 
+ * + * optional bool enable_fqdn_network_policy = 19; + * @return The enableFqdnNetworkPolicy. + */ + @java.lang.Override + public boolean getEnableFqdnNetworkPolicy() { + return enableFqdnNetworkPolicy_; + } + /** + *
+     * Whether FQDN Network Policy is enabled on this cluster.
+     * 
+ * + * optional bool enable_fqdn_network_policy = 19; + * @param value The enableFqdnNetworkPolicy to set. + * @return This builder for chaining. + */ + public Builder setEnableFqdnNetworkPolicy(boolean value) { + + enableFqdnNetworkPolicy_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + *
+     * Whether FQDN Network Policy is enabled on this cluster.
+     * 
+ * + * optional bool enable_fqdn_network_policy = 19; + * @return This builder for chaining. + */ + public Builder clearEnableFqdnNetworkPolicy() { + bitField0_ = (bitField0_ & ~0x00001000); + enableFqdnNetworkPolicy_ = false; + onChanged(); + return this; + } + + private int inTransitEncryptionConfig_ = 0; + /** + *
+     * Specify the details of in-transit encryption.
+     * 
+ * + * optional .google.container.v1beta1.InTransitEncryptionConfig in_transit_encryption_config = 20; + * @return Whether the inTransitEncryptionConfig field is set. + */ + @java.lang.Override public boolean hasInTransitEncryptionConfig() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + *
+     * Specify the details of in-transit encryption.
+     * 
+ * + * optional .google.container.v1beta1.InTransitEncryptionConfig in_transit_encryption_config = 20; + * @return The enum numeric value on the wire for inTransitEncryptionConfig. + */ + @java.lang.Override public int getInTransitEncryptionConfigValue() { + return inTransitEncryptionConfig_; + } + /** + *
+     * Specify the details of in-transit encryption.
+     * 
+ * + * optional .google.container.v1beta1.InTransitEncryptionConfig in_transit_encryption_config = 20; + * @param value The enum numeric value on the wire for inTransitEncryptionConfig to set. + * @return This builder for chaining. + */ + public Builder setInTransitEncryptionConfigValue(int value) { + inTransitEncryptionConfig_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + *
+     * Specify the details of in-transit encryption.
+     * 
+ * + * optional .google.container.v1beta1.InTransitEncryptionConfig in_transit_encryption_config = 20; + * @return The inTransitEncryptionConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.InTransitEncryptionConfig getInTransitEncryptionConfig() { + com.google.container.v1beta1.InTransitEncryptionConfig result = com.google.container.v1beta1.InTransitEncryptionConfig.forNumber(inTransitEncryptionConfig_); + return result == null ? com.google.container.v1beta1.InTransitEncryptionConfig.UNRECOGNIZED : result; + } + /** + *
+     * Specify the details of in-transit encryption.
+     * 
+ * + * optional .google.container.v1beta1.InTransitEncryptionConfig in_transit_encryption_config = 20; + * @param value The inTransitEncryptionConfig to set. + * @return This builder for chaining. + */ + public Builder setInTransitEncryptionConfig(com.google.container.v1beta1.InTransitEncryptionConfig value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00002000; + inTransitEncryptionConfig_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Specify the details of in-transit encryption.
+     * 
+ * + * optional .google.container.v1beta1.InTransitEncryptionConfig in_transit_encryption_config = 20; + * @return This builder for chaining. + */ + public Builder clearInTransitEncryptionConfig() { + bitField0_ = (bitField0_ & ~0x00002000); + inTransitEncryptionConfig_ = 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfigOrBuilder.java new file mode 100644 index 000000000000..3758643b2b2d --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfigOrBuilder.java @@ -0,0 +1,334 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + + /** + *
+   * Whether L4ILB Subsetting is enabled for this cluster.
+   * 
+ * + * bool enable_l4ilb_subsetting = 10; + * @return The enableL4ilbSubsetting. + */ + boolean getEnableL4IlbSubsetting(); + + /** + *
+   * The desired datapath provider for this cluster. By default, uses the
+   * IPTables-based kube-proxy implementation.
+   * 
+ * + * .google.container.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(); + + /** + *
+   * The desired state of IPv6 connectivity to Google Services.
+   * By default, no private IPv6 access to or from Google Services (all access
+   * will be via IPv4)
+   * 
+ * + * .google.container.v1beta1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + * @return The enum numeric value on the wire for privateIpv6GoogleAccess. + */ + int getPrivateIpv6GoogleAccessValue(); + /** + *
+   * The desired state of IPv6 connectivity to Google Services.
+   * By default, no private IPv6 access to or from Google Services (all access
+   * will be via IPv4)
+   * 
+ * + * .google.container.v1beta1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; + * @return The privateIpv6GoogleAccess. + */ + com.google.container.v1beta1.PrivateIPv6GoogleAccess getPrivateIpv6GoogleAccess(); + + /** + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1beta1.DNSConfig dns_config = 13; + * @return Whether the dnsConfig field is set. + */ + boolean hasDnsConfig(); + /** + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1beta1.DNSConfig dns_config = 13; + * @return The dnsConfig. + */ + com.google.container.v1beta1.DNSConfig getDnsConfig(); + /** + *
+   * DNSConfig contains clusterDNS config for this cluster.
+   * 
+ * + * .google.container.v1beta1.DNSConfig dns_config = 13; + */ + com.google.container.v1beta1.DNSConfigOrBuilder getDnsConfigOrBuilder(); + + /** + *
+   * ServiceExternalIPsConfig specifies if services with externalIPs field are
+   * blocked or not.
+   * 
+ * + * .google.container.v1beta1.ServiceExternalIPsConfig service_external_ips_config = 15; + * @return Whether the serviceExternalIpsConfig field is set. + */ + boolean hasServiceExternalIpsConfig(); + /** + *
+   * ServiceExternalIPsConfig specifies if services with externalIPs field are
+   * blocked or not.
+   * 
+ * + * .google.container.v1beta1.ServiceExternalIPsConfig service_external_ips_config = 15; + * @return The serviceExternalIpsConfig. + */ + com.google.container.v1beta1.ServiceExternalIPsConfig getServiceExternalIpsConfig(); + /** + *
+   * ServiceExternalIPsConfig specifies if services with externalIPs field are
+   * blocked or not.
+   * 
+ * + * .google.container.v1beta1.ServiceExternalIPsConfig service_external_ips_config = 15; + */ + com.google.container.v1beta1.ServiceExternalIPsConfigOrBuilder getServiceExternalIpsConfigOrBuilder(); + + /** + *
+   * GatewayAPIConfig contains the desired config of Gateway API on this
+   * cluster.
+   * 
+ * + * .google.container.v1beta1.GatewayAPIConfig gateway_api_config = 16; + * @return Whether the gatewayApiConfig field is set. + */ + boolean hasGatewayApiConfig(); + /** + *
+   * GatewayAPIConfig contains the desired config of Gateway API on this
+   * cluster.
+   * 
+ * + * .google.container.v1beta1.GatewayAPIConfig gateway_api_config = 16; + * @return The gatewayApiConfig. + */ + com.google.container.v1beta1.GatewayAPIConfig getGatewayApiConfig(); + /** + *
+   * GatewayAPIConfig contains the desired config of Gateway API on this
+   * cluster.
+   * 
+ * + * .google.container.v1beta1.GatewayAPIConfig gateway_api_config = 16; + */ + com.google.container.v1beta1.GatewayAPIConfigOrBuilder getGatewayApiConfigOrBuilder(); + + /** + *
+   * Whether multi-networking is enabled for this cluster.
+   * 
+ * + * bool enable_multi_networking = 17; + * @return The enableMultiNetworking. + */ + boolean getEnableMultiNetworking(); + + /** + *
+   * Network bandwidth tier configuration.
+   * 
+ * + * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; + * @return Whether the networkPerformanceConfig field is set. + */ + boolean hasNetworkPerformanceConfig(); + /** + *
+   * Network bandwidth tier configuration.
+   * 
+ * + * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; + * @return The networkPerformanceConfig. + */ + com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig getNetworkPerformanceConfig(); + /** + *
+   * Network bandwidth tier configuration.
+   * 
+ * + * .google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; + */ + com.google.container.v1beta1.NetworkConfig.ClusterNetworkPerformanceConfigOrBuilder getNetworkPerformanceConfigOrBuilder(); + + /** + *
+   * Whether FQDN Network Policy is enabled on this cluster.
+   * 
+ * + * optional bool enable_fqdn_network_policy = 19; + * @return Whether the enableFqdnNetworkPolicy field is set. + */ + boolean hasEnableFqdnNetworkPolicy(); + /** + *
+   * Whether FQDN Network Policy is enabled on this cluster.
+   * 
+ * + * optional bool enable_fqdn_network_policy = 19; + * @return The enableFqdnNetworkPolicy. + */ + boolean getEnableFqdnNetworkPolicy(); + + /** + *
+   * Specify the details of in-transit encryption.
+   * 
+ * + * optional .google.container.v1beta1.InTransitEncryptionConfig in_transit_encryption_config = 20; + * @return Whether the inTransitEncryptionConfig field is set. + */ + boolean hasInTransitEncryptionConfig(); + /** + *
+   * Specify the details of in-transit encryption.
+   * 
+ * + * optional .google.container.v1beta1.InTransitEncryptionConfig in_transit_encryption_config = 20; + * @return The enum numeric value on the wire for inTransitEncryptionConfig. + */ + int getInTransitEncryptionConfigValue(); + /** + *
+   * Specify the details of in-transit encryption.
+   * 
+ * + * optional .google.container.v1beta1.InTransitEncryptionConfig in_transit_encryption_config = 20; + * @return The inTransitEncryptionConfig. + */ + com.google.container.v1beta1.InTransitEncryptionConfig getInTransitEncryptionConfig(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicy.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicy.java new file mode 100644 index 000000000000..13b14cc156fd --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicy.java @@ -0,0 +1,749 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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< + Provider> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Provider findValueByNumber(int number) { + return Provider.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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_ = 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; + * @return The provider. + */ + @java.lang.Override public com.google.container.v1beta1.NetworkPolicy.Provider getProvider() { + com.google.container.v1beta1.NetworkPolicy.Provider result = com.google.container.v1beta1.NetworkPolicy.Provider.forNumber(provider_); + return result == null ? com.google.container.v1beta1.NetworkPolicy.Provider.UNRECOGNIZED : result; + } + + public static final int ENABLED_FIELD_NUMBER = 2; + private boolean enabled_ = false; + /** + *
+   * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.NetworkPolicy result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.provider_ = provider_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.enabled_ = enabled_; + } + } + + @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.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + provider_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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() { + com.google.container.v1beta1.NetworkPolicy.Provider result = com.google.container.v1beta1.NetworkPolicy.Provider.forNumber(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(); + } + bitField0_ |= 0x00000001; + 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() { + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Whether network policy is enabled on the cluster.
+     * 
+ * + * bool enabled = 2; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000002); + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicyConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicyConfig.java new file mode 100644 index 000000000000..39d57a8c7962 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicyConfig.java @@ -0,0 +1,501 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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_ = false; + /** + *
+   * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.NetworkPolicyConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.disabled_ = disabled_; + } + } + + @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.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + disabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether NetworkPolicy is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + * @return This builder for chaining. + */ + public Builder clearDisabled() { + bitField0_ = (bitField0_ & ~0x00000001); + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicyConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicyConfigOrBuilder.java new file mode 100644 index 000000000000..744987a0d748 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicyConfigOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicyOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicyOrBuilder.java new file mode 100644 index 000000000000..275bbbaedaa4 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkPolicyOrBuilder.java @@ -0,0 +1,39 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkTags.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkTags.java new file mode 100644 index 000000000000..63793e4ffb33 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkTags.java @@ -0,0 +1,659 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * Collection of Compute Engine network tags that can be applied to a node's
+ * underlying VM instance. (See `tags` field in
+ * [`NodeConfig`](/kubernetes-engine/docs/reference/rest/v1/NodeConfig)).
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.NetworkTags} + */ +public final class NetworkTags extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NetworkTags) + NetworkTagsOrBuilder { +private static final long serialVersionUID = 0L; + // Use NetworkTags.newBuilder() to construct. + private NetworkTags(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NetworkTags() { + tags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NetworkTags(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NetworkTags_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NetworkTags_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NetworkTags.class, com.google.container.v1beta1.NetworkTags.Builder.class); + } + + public static final int TAGS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList tags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * List of network tags.
+   * 
+ * + * repeated string tags = 1; + * @return A list containing the tags. + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_; + } + /** + *
+   * List of network tags.
+   * 
+ * + * repeated string tags = 1; + * @return The count of tags. + */ + public int getTagsCount() { + return tags_.size(); + } + /** + *
+   * List of network tags.
+   * 
+ * + * repeated string tags = 1; + * @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); + } + /** + *
+   * List of network tags.
+   * 
+ * + * repeated string tags = 1; + * @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); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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 < tags_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tags_.getRaw(i)); + } + getUnknownFields().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 < tags_.size(); i++) { + dataSize += computeStringSizeNoTag(tags_.getRaw(i)); + } + size += dataSize; + size += 1 * getTagsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.NetworkTags)) { + return super.equals(obj); + } + com.google.container.v1beta1.NetworkTags other = (com.google.container.v1beta1.NetworkTags) obj; + + if (!getTagsList() + .equals(other.getTagsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTagsCount() > 0) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + getTagsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.NetworkTags parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NetworkTags parseFrom( + 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.NetworkTags parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NetworkTags parseFrom( + com.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.NetworkTags parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NetworkTags parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NetworkTags parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NetworkTags parseFrom( + java.io.InputStream 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.NetworkTags parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NetworkTags parseDelimitedFrom( + java.io.InputStream 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.NetworkTags parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NetworkTags parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.NetworkTags prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Collection of Compute Engine network tags that can be applied to a node's
+   * underlying VM instance. (See `tags` field in
+   * [`NodeConfig`](/kubernetes-engine/docs/reference/rest/v1/NodeConfig)).
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.NetworkTags} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NetworkTags) + com.google.container.v1beta1.NetworkTagsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NetworkTags_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NetworkTags_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NetworkTags.class, com.google.container.v1beta1.NetworkTags.Builder.class); + } + + // Construct using com.google.container.v1beta1.NetworkTags.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + tags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NetworkTags_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NetworkTags getDefaultInstanceForType() { + return com.google.container.v1beta1.NetworkTags.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NetworkTags build() { + com.google.container.v1beta1.NetworkTags result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NetworkTags buildPartial() { + com.google.container.v1beta1.NetworkTags result = new com.google.container.v1beta1.NetworkTags(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.NetworkTags result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + tags_.makeImmutable(); + result.tags_ = tags_; + } + } + + @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.NetworkTags) { + return mergeFrom((com.google.container.v1beta1.NetworkTags)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NetworkTags other) { + if (other == com.google.container.v1beta1.NetworkTags.getDefaultInstance()) return this; + if (!other.tags_.isEmpty()) { + if (tags_.isEmpty()) { + tags_ = other.tags_; + bitField0_ |= 0x00000001; + } else { + ensureTagsIsMutable(); + tags_.addAll(other.tags_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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(); + ensureTagsIsMutable(); + tags_.add(s); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList tags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureTagsIsMutable() { + if (!tags_.isModifiable()) { + tags_ = new com.google.protobuf.LazyStringArrayList(tags_); + } + bitField0_ |= 0x00000001; + } + /** + *
+     * List of network tags.
+     * 
+ * + * repeated string tags = 1; + * @return A list containing the tags. + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + tags_.makeImmutable(); + return tags_; + } + /** + *
+     * List of network tags.
+     * 
+ * + * repeated string tags = 1; + * @return The count of tags. + */ + public int getTagsCount() { + return tags_.size(); + } + /** + *
+     * List of network tags.
+     * 
+ * + * repeated string tags = 1; + * @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); + } + /** + *
+     * List of network tags.
+     * 
+ * + * repeated string tags = 1; + * @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); + } + /** + *
+     * List of network tags.
+     * 
+ * + * repeated string tags = 1; + * @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); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * List of network tags.
+     * 
+ * + * repeated string tags = 1; + * @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); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * List of network tags.
+     * 
+ * + * repeated string tags = 1; + * @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_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * List of network tags.
+     * 
+ * + * repeated string tags = 1; + * @return This builder for chaining. + */ + public Builder clearTags() { + tags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; + onChanged(); + return this; + } + /** + *
+     * List of network tags.
+     * 
+ * + * repeated string tags = 1; + * @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); + bitField0_ |= 0x00000001; + 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.NetworkTags) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NetworkTags) + private static final com.google.container.v1beta1.NetworkTags DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NetworkTags(); + } + + public static com.google.container.v1beta1.NetworkTags getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkTags parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.NetworkTags getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkTagsOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkTagsOrBuilder.java new file mode 100644 index 000000000000..4c193b1a5511 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkTagsOrBuilder.java @@ -0,0 +1,51 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface NetworkTagsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NetworkTags) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * List of network tags.
+   * 
+ * + * repeated string tags = 1; + * @return A list containing the tags. + */ + java.util.List + getTagsList(); + /** + *
+   * List of network tags.
+   * 
+ * + * repeated string tags = 1; + * @return The count of tags. + */ + int getTagsCount(); + /** + *
+   * List of network tags.
+   * 
+ * + * repeated string tags = 1; + * @param index The index of the element to return. + * @return The tags at the given index. + */ + java.lang.String getTags(int index); + /** + *
+   * List of network tags.
+   * 
+ * + * repeated string tags = 1; + * @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); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfig.java new file mode 100644 index 000000000000..c0448c6fd79d --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfig.java @@ -0,0 +1,9816 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * Parameters that describe the nodes in a cluster.
+ *
+ * GKE Autopilot clusters do not
+ * recognize parameters in `NodeConfig`. Use
+ * [AutoprovisioningNodePoolDefaults][google.container.v1beta1.AutoprovisioningNodePoolDefaults]
+ * instead.
+ * 
+ * + * 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.emptyList(); + serviceAccount_ = ""; + imageType_ = ""; + tags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + 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(); + } + + 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.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMetadata(); + case 6: + return internalGetLabels(); + case 37: + 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_NodeConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodeConfig.class, com.google.container.v1beta1.NodeConfig.Builder.class); + } + + private int bitField0_; + public static final int MACHINE_TYPE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + 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_ = 0; + /** + *
+   * 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; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList oauthScopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * 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; + @SuppressWarnings("serial") + 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< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeConfig_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + *
+   * The metadata key/value pairs assigned to instances in the cluster.
+   *
+   * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
+   * in length. These are reflected as part of a URL in the metadata server.
+   * Additionally, to avoid ambiguity, keys must not conflict with any other
+   * metadata keys for the project or be one of the reserved keys:
+   *
+   *  - "cluster-location"
+   *  - "cluster-name"
+   *  - "cluster-uid"
+   *  - "configure-sh"
+   *  - "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"
+   *
+   * 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 NullPointerException("map key"); } + 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"
+   *
+   * 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"
+   *
+   * 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 /* nullable */ +java.lang.String getMetadataOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + 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"
+   *
+   * 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 NullPointerException("map key"); } + 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; + @SuppressWarnings("serial") + 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. Please see
+   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+   * available image types.
+   * 
+ * + * 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. Please see
+   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+   * available image types.
+   * 
+ * + * 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< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeConfig_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
+   * These will added in addition to any default label(s) that
+   * Kubernetes may apply to the node.
+   * In case of conflict in label keys, the applied set may differ depending on
+   * the Kubernetes version -- it's best to assume the behavior is undefined
+   * and conflicts should be avoided.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+   * 
+ * + * map<string, string> labels = 6; + */ + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + 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 /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + 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 NullPointerException("map key"); } + 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_ = 0; + /** + *
+   * 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; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList tags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * 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_ = false; + /** + *
+   * Whether the nodes are created as preemptible VM instances. See:
+   * https://cloud.google.com/compute/docs/instances/preemptible for more
+   * information 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; + @SuppressWarnings("serial") + 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 ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * 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 sandboxConfig_ == null ? com.google.container.v1beta1.SandboxConfig.getDefaultInstance() : sandboxConfig_; + } + + public static final int NODE_GROUP_FIELD_NUMBER = 18; + @SuppressWarnings("serial") + 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 ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * 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 reservationAffinity_ == null ? com.google.container.v1beta1.ReservationAffinity.getDefaultInstance() : reservationAffinity_; + } + + public static final int DISK_TYPE_FIELD_NUMBER = 12; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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 ((bitField0_ & 0x00000004) != 0); + } + /** + *
+   * 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 workloadMetadataConfig_ == null ? com.google.container.v1beta1.WorkloadMetadataConfig.getDefaultInstance() : workloadMetadataConfig_; + } + + public static final int TAINTS_FIELD_NUMBER = 15; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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 ((bitField0_ & 0x00000008) != 0); + } + /** + *
+   * 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 shieldedInstanceConfig_ == null ? com.google.container.v1beta1.ShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + } + + 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 ((bitField0_ & 0x00000010) != 0); + } + /** + *
+   * 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 linuxNodeConfig_ == null ? com.google.container.v1beta1.LinuxNodeConfig.getDefaultInstance() : linuxNodeConfig_; + } + + 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 ((bitField0_ & 0x00000020) != 0); + } + /** + *
+   * 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 kubeletConfig_ == null ? com.google.container.v1beta1.NodeKubeletConfig.getDefaultInstance() : kubeletConfig_; + } + + 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 ((bitField0_ & 0x00000040) != 0); + } + /** + *
+   * 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 ephemeralStorageConfig_ == null ? com.google.container.v1beta1.EphemeralStorageConfig.getDefaultInstance() : ephemeralStorageConfig_; + } + + public static final int GCFS_CONFIG_FIELD_NUMBER = 25; + private com.google.container.v1beta1.GcfsConfig gcfsConfig_; + /** + *
+   * GCFS (Google Container File System) configs.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + * @return Whether the gcfsConfig field is set. + */ + @java.lang.Override + public boolean hasGcfsConfig() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+   * GCFS (Google Container File System) configs.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + * @return The gcfsConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.GcfsConfig getGcfsConfig() { + return gcfsConfig_ == null ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() : gcfsConfig_; + } + /** + *
+   * GCFS (Google Container File System) configs.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + */ + @java.lang.Override + public com.google.container.v1beta1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { + return gcfsConfig_ == null ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() : gcfsConfig_; + } + + public static final int ADVANCED_MACHINE_FEATURES_FIELD_NUMBER = 26; + private com.google.container.v1beta1.AdvancedMachineFeatures advancedMachineFeatures_; + /** + *
+   * Advanced features for the Compute Engine VM.
+   * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + * @return Whether the advancedMachineFeatures field is set. + */ + @java.lang.Override + public boolean hasAdvancedMachineFeatures() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + *
+   * Advanced features for the Compute Engine VM.
+   * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + * @return The advancedMachineFeatures. + */ + @java.lang.Override + public com.google.container.v1beta1.AdvancedMachineFeatures getAdvancedMachineFeatures() { + return advancedMachineFeatures_ == null ? com.google.container.v1beta1.AdvancedMachineFeatures.getDefaultInstance() : advancedMachineFeatures_; + } + /** + *
+   * Advanced features for the Compute Engine VM.
+   * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + */ + @java.lang.Override + public com.google.container.v1beta1.AdvancedMachineFeaturesOrBuilder getAdvancedMachineFeaturesOrBuilder() { + return advancedMachineFeatures_ == null ? com.google.container.v1beta1.AdvancedMachineFeatures.getDefaultInstance() : advancedMachineFeatures_; + } + + public static final int GVNIC_FIELD_NUMBER = 29; + private com.google.container.v1beta1.VirtualNIC gvnic_; + /** + *
+   * Enable or disable gvnic on the node pool.
+   * 
+ * + * .google.container.v1beta1.VirtualNIC gvnic = 29; + * @return Whether the gvnic field is set. + */ + @java.lang.Override + public boolean hasGvnic() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + *
+   * Enable or disable gvnic on the node pool.
+   * 
+ * + * .google.container.v1beta1.VirtualNIC gvnic = 29; + * @return The gvnic. + */ + @java.lang.Override + public com.google.container.v1beta1.VirtualNIC getGvnic() { + return gvnic_ == null ? com.google.container.v1beta1.VirtualNIC.getDefaultInstance() : gvnic_; + } + /** + *
+   * Enable or disable gvnic on the node pool.
+   * 
+ * + * .google.container.v1beta1.VirtualNIC gvnic = 29; + */ + @java.lang.Override + public com.google.container.v1beta1.VirtualNICOrBuilder getGvnicOrBuilder() { + return gvnic_ == null ? com.google.container.v1beta1.VirtualNIC.getDefaultInstance() : gvnic_; + } + + public static final int SPOT_FIELD_NUMBER = 32; + private boolean spot_ = false; + /** + *
+   * Spot flag for enabling Spot VM, which is a rebrand of
+   * the existing preemptible flag.
+   * 
+ * + * bool spot = 32; + * @return The spot. + */ + @java.lang.Override + public boolean getSpot() { + return spot_; + } + + public static final int CONFIDENTIAL_NODES_FIELD_NUMBER = 35; + private com.google.container.v1beta1.ConfidentialNodes confidentialNodes_; + /** + *
+   * Confidential nodes config.
+   * All the nodes in the node pool will be Confidential VM once enabled.
+   * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 35; + * @return Whether the confidentialNodes field is set. + */ + @java.lang.Override + public boolean hasConfidentialNodes() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + *
+   * Confidential nodes config.
+   * All the nodes in the node pool will be Confidential VM once enabled.
+   * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 35; + * @return The confidentialNodes. + */ + @java.lang.Override + public com.google.container.v1beta1.ConfidentialNodes getConfidentialNodes() { + return confidentialNodes_ == null ? com.google.container.v1beta1.ConfidentialNodes.getDefaultInstance() : confidentialNodes_; + } + /** + *
+   * Confidential nodes config.
+   * All the nodes in the node pool will be Confidential VM once enabled.
+   * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 35; + */ + @java.lang.Override + public com.google.container.v1beta1.ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder() { + return confidentialNodes_ == null ? com.google.container.v1beta1.ConfidentialNodes.getDefaultInstance() : confidentialNodes_; + } + + public static final int FAST_SOCKET_FIELD_NUMBER = 36; + private com.google.container.v1beta1.FastSocket fastSocket_; + /** + *
+   * Enable or disable NCCL fast socket for the node pool.
+   * 
+ * + * optional .google.container.v1beta1.FastSocket fast_socket = 36; + * @return Whether the fastSocket field is set. + */ + @java.lang.Override + public boolean hasFastSocket() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + *
+   * Enable or disable NCCL fast socket for the node pool.
+   * 
+ * + * optional .google.container.v1beta1.FastSocket fast_socket = 36; + * @return The fastSocket. + */ + @java.lang.Override + public com.google.container.v1beta1.FastSocket getFastSocket() { + return fastSocket_ == null ? com.google.container.v1beta1.FastSocket.getDefaultInstance() : fastSocket_; + } + /** + *
+   * Enable or disable NCCL fast socket for the node pool.
+   * 
+ * + * optional .google.container.v1beta1.FastSocket fast_socket = 36; + */ + @java.lang.Override + public com.google.container.v1beta1.FastSocketOrBuilder getFastSocketOrBuilder() { + return fastSocket_ == null ? com.google.container.v1beta1.FastSocket.getDefaultInstance() : fastSocket_; + } + + public static final int RESOURCE_LABELS_FIELD_NUMBER = 37; + private static final class ResourceLabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeConfig_ResourceLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> resourceLabels_; + private com.google.protobuf.MapField + internalGetResourceLabels() { + if (resourceLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + return resourceLabels_; + } + public int getResourceLabelsCount() { + return internalGetResourceLabels().getMap().size(); + } + /** + *
+   * The resource labels for the node pool to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 37; + */ + @java.lang.Override + public boolean containsResourceLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + 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 node pool to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 37; + */ + @java.lang.Override + public java.util.Map getResourceLabelsMap() { + return internalGetResourceLabels().getMap(); + } + /** + *
+   * The resource labels for the node pool to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 37; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getResourceLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetResourceLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * The resource labels for the node pool to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 37; + */ + @java.lang.Override + public java.lang.String getResourceLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetResourceLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int LOGGING_CONFIG_FIELD_NUMBER = 38; + private com.google.container.v1beta1.NodePoolLoggingConfig loggingConfig_; + /** + *
+   * Logging configuration.
+   * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 38; + * @return Whether the loggingConfig field is set. + */ + @java.lang.Override + public boolean hasLoggingConfig() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + *
+   * Logging configuration.
+   * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 38; + * @return The loggingConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.NodePoolLoggingConfig getLoggingConfig() { + return loggingConfig_ == null ? com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance() : loggingConfig_; + } + /** + *
+   * Logging configuration.
+   * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 38; + */ + @java.lang.Override + public com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder getLoggingConfigOrBuilder() { + return loggingConfig_ == null ? com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance() : loggingConfig_; + } + + public static final int WINDOWS_NODE_CONFIG_FIELD_NUMBER = 39; + private com.google.container.v1beta1.WindowsNodeConfig windowsNodeConfig_; + /** + *
+   * Parameters that can be configured on Windows nodes.
+   * 
+ * + * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 39; + * @return Whether the windowsNodeConfig field is set. + */ + @java.lang.Override + public boolean hasWindowsNodeConfig() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + *
+   * Parameters that can be configured on Windows nodes.
+   * 
+ * + * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 39; + * @return The windowsNodeConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.WindowsNodeConfig getWindowsNodeConfig() { + return windowsNodeConfig_ == null ? com.google.container.v1beta1.WindowsNodeConfig.getDefaultInstance() : windowsNodeConfig_; + } + /** + *
+   * Parameters that can be configured on Windows nodes.
+   * 
+ * + * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 39; + */ + @java.lang.Override + public com.google.container.v1beta1.WindowsNodeConfigOrBuilder getWindowsNodeConfigOrBuilder() { + return windowsNodeConfig_ == null ? com.google.container.v1beta1.WindowsNodeConfig.getDefaultInstance() : windowsNodeConfig_; + } + + public static final int LOCAL_NVME_SSD_BLOCK_CONFIG_FIELD_NUMBER = 40; + private com.google.container.v1beta1.LocalNvmeSsdBlockConfig localNvmeSsdBlockConfig_; + /** + *
+   * Parameters for using raw-block Local NVMe SSDs.
+   * 
+ * + * .google.container.v1beta1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; + * @return Whether the localNvmeSsdBlockConfig field is set. + */ + @java.lang.Override + public boolean hasLocalNvmeSsdBlockConfig() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + *
+   * Parameters for using raw-block Local NVMe SSDs.
+   * 
+ * + * .google.container.v1beta1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; + * @return The localNvmeSsdBlockConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.LocalNvmeSsdBlockConfig getLocalNvmeSsdBlockConfig() { + return localNvmeSsdBlockConfig_ == null ? com.google.container.v1beta1.LocalNvmeSsdBlockConfig.getDefaultInstance() : localNvmeSsdBlockConfig_; + } + /** + *
+   * Parameters for using raw-block Local NVMe SSDs.
+   * 
+ * + * .google.container.v1beta1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; + */ + @java.lang.Override + public com.google.container.v1beta1.LocalNvmeSsdBlockConfigOrBuilder getLocalNvmeSsdBlockConfigOrBuilder() { + return localNvmeSsdBlockConfig_ == null ? com.google.container.v1beta1.LocalNvmeSsdBlockConfig.getDefaultInstance() : localNvmeSsdBlockConfig_; + } + + public static final int EPHEMERAL_STORAGE_LOCAL_SSD_CONFIG_FIELD_NUMBER = 41; + private com.google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeralStorageLocalSsdConfig_; + /** + *
+   * Parameters for the node ephemeral storage using Local SSDs.
+   * If unspecified, ephemeral storage is backed by the boot disk.
+   * This field is functionally equivalent to the ephemeral_storage_config
+   * 
+ * + * .google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; + * @return Whether the ephemeralStorageLocalSsdConfig field is set. + */ + @java.lang.Override + public boolean hasEphemeralStorageLocalSsdConfig() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + *
+   * Parameters for the node ephemeral storage using Local SSDs.
+   * If unspecified, ephemeral storage is backed by the boot disk.
+   * This field is functionally equivalent to the ephemeral_storage_config
+   * 
+ * + * .google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; + * @return The ephemeralStorageLocalSsdConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.EphemeralStorageLocalSsdConfig getEphemeralStorageLocalSsdConfig() { + return ephemeralStorageLocalSsdConfig_ == null ? com.google.container.v1beta1.EphemeralStorageLocalSsdConfig.getDefaultInstance() : ephemeralStorageLocalSsdConfig_; + } + /** + *
+   * Parameters for the node ephemeral storage using Local SSDs.
+   * If unspecified, ephemeral storage is backed by the boot disk.
+   * This field is functionally equivalent to the ephemeral_storage_config
+   * 
+ * + * .google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; + */ + @java.lang.Override + public com.google.container.v1beta1.EphemeralStorageLocalSsdConfigOrBuilder getEphemeralStorageLocalSsdConfigOrBuilder() { + return ephemeralStorageLocalSsdConfig_ == null ? com.google.container.v1beta1.EphemeralStorageLocalSsdConfig.getDefaultInstance() : ephemeralStorageLocalSsdConfig_; + } + + public static final int SOLE_TENANT_CONFIG_FIELD_NUMBER = 42; + private com.google.container.v1beta1.SoleTenantConfig soleTenantConfig_; + /** + *
+   * Parameters for node pools to be backed by shared sole tenant node groups.
+   * 
+ * + * .google.container.v1beta1.SoleTenantConfig sole_tenant_config = 42; + * @return Whether the soleTenantConfig field is set. + */ + @java.lang.Override + public boolean hasSoleTenantConfig() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + *
+   * Parameters for node pools to be backed by shared sole tenant node groups.
+   * 
+ * + * .google.container.v1beta1.SoleTenantConfig sole_tenant_config = 42; + * @return The soleTenantConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.SoleTenantConfig getSoleTenantConfig() { + return soleTenantConfig_ == null ? com.google.container.v1beta1.SoleTenantConfig.getDefaultInstance() : soleTenantConfig_; + } + /** + *
+   * Parameters for node pools to be backed by shared sole tenant node groups.
+   * 
+ * + * .google.container.v1beta1.SoleTenantConfig sole_tenant_config = 42; + */ + @java.lang.Override + public com.google.container.v1beta1.SoleTenantConfigOrBuilder getSoleTenantConfigOrBuilder() { + return soleTenantConfig_ == null ? com.google.container.v1beta1.SoleTenantConfig.getDefaultInstance() : soleTenantConfig_; + } + + public static final int HOST_MAINTENANCE_POLICY_FIELD_NUMBER = 44; + private com.google.container.v1beta1.HostMaintenancePolicy hostMaintenancePolicy_; + /** + *
+   * HostMaintenancePolicy contains the desired maintenance policy for the
+   * Google Compute Engine hosts.
+   * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 44; + * @return Whether the hostMaintenancePolicy field is set. + */ + @java.lang.Override + public boolean hasHostMaintenancePolicy() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + *
+   * HostMaintenancePolicy contains the desired maintenance policy for the
+   * Google Compute Engine hosts.
+   * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 44; + * @return The hostMaintenancePolicy. + */ + @java.lang.Override + public com.google.container.v1beta1.HostMaintenancePolicy getHostMaintenancePolicy() { + return hostMaintenancePolicy_ == null ? com.google.container.v1beta1.HostMaintenancePolicy.getDefaultInstance() : hostMaintenancePolicy_; + } + /** + *
+   * HostMaintenancePolicy contains the desired maintenance policy for the
+   * Google Compute Engine hosts.
+   * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 44; + */ + @java.lang.Override + public com.google.container.v1beta1.HostMaintenancePolicyOrBuilder getHostMaintenancePolicyOrBuilder() { + return hostMaintenancePolicy_ == null ? com.google.container.v1beta1.HostMaintenancePolicy.getDefaultInstance() : hostMaintenancePolicy_; + } + + public static final int RESOURCE_MANAGER_TAGS_FIELD_NUMBER = 45; + private com.google.container.v1beta1.ResourceManagerTags resourceManagerTags_; + /** + *
+   * A map of resource manager tag keys and values to be attached to the nodes.
+   * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 45; + * @return Whether the resourceManagerTags field is set. + */ + @java.lang.Override + public boolean hasResourceManagerTags() { + return ((bitField0_ & 0x00040000) != 0); + } + /** + *
+   * A map of resource manager tag keys and values to be attached to the nodes.
+   * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 45; + * @return The resourceManagerTags. + */ + @java.lang.Override + public com.google.container.v1beta1.ResourceManagerTags getResourceManagerTags() { + return resourceManagerTags_ == null ? com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance() : resourceManagerTags_; + } + /** + *
+   * A map of resource manager tag keys and values to be attached to the nodes.
+   * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 45; + */ + @java.lang.Override + public com.google.container.v1beta1.ResourceManagerTagsOrBuilder getResourceManagerTagsOrBuilder() { + return resourceManagerTags_ == null ? com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance() : resourceManagerTags_; + } + + public static final int ENABLE_CONFIDENTIAL_STORAGE_FIELD_NUMBER = 46; + private boolean enableConfidentialStorage_ = false; + /** + *
+   * Optional. Enable confidential storage on Hyperdisk.
+   * boot_disk_kms_key is required when enable_confidential_storage is true.
+   * This is only available for private preview.
+   * 
+ * + * bool enable_confidential_storage = 46 [(.google.api.field_behavior) = OPTIONAL]; + * @return The enableConfidentialStorage. + */ + @java.lang.Override + public boolean getEnableConfidentialStorage() { + return enableConfidentialStorage_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageType_)) { + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, diskType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minCpuPlatform_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, minCpuPlatform_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(14, getWorkloadMetadataConfig()); + } + for (int i = 0; i < taints_.size(); i++) { + output.writeMessage(15, taints_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(17, getSandboxConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeGroup_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 18, nodeGroup_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(19, getReservationAffinity()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(20, getShieldedInstanceConfig()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(21, getLinuxNodeConfig()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(22, getKubeletConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootDiskKmsKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 23, bootDiskKmsKey_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(24, getEphemeralStorageConfig()); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(25, getGcfsConfig()); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(26, getAdvancedMachineFeatures()); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeMessage(29, getGvnic()); + } + if (spot_ != false) { + output.writeBool(32, spot_); + } + if (((bitField0_ & 0x00000400) != 0)) { + output.writeMessage(35, getConfidentialNodes()); + } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeMessage(36, getFastSocket()); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetResourceLabels(), + ResourceLabelsDefaultEntryHolder.defaultEntry, + 37); + if (((bitField0_ & 0x00001000) != 0)) { + output.writeMessage(38, getLoggingConfig()); + } + if (((bitField0_ & 0x00002000) != 0)) { + output.writeMessage(39, getWindowsNodeConfig()); + } + if (((bitField0_ & 0x00004000) != 0)) { + output.writeMessage(40, getLocalNvmeSsdBlockConfig()); + } + if (((bitField0_ & 0x00008000) != 0)) { + output.writeMessage(41, getEphemeralStorageLocalSsdConfig()); + } + if (((bitField0_ & 0x00010000) != 0)) { + output.writeMessage(42, getSoleTenantConfig()); + } + if (((bitField0_ & 0x00020000) != 0)) { + output.writeMessage(44, getHostMaintenancePolicy()); + } + if (((bitField0_ & 0x00040000) != 0)) { + output.writeMessage(45, getResourceManagerTags()); + } + if (enableConfidentialStorage_ != false) { + output.writeBool(46, enableConfidentialStorage_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageType_)) { + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, diskType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minCpuPlatform_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, minCpuPlatform_); + } + if (((bitField0_ & 0x00000004) != 0)) { + 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 (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getSandboxConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeGroup_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, nodeGroup_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, getReservationAffinity()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(20, getShieldedInstanceConfig()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, getLinuxNodeConfig()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(22, getKubeletConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootDiskKmsKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, bootDiskKmsKey_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(24, getEphemeralStorageConfig()); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(25, getGcfsConfig()); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(26, getAdvancedMachineFeatures()); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(29, getGvnic()); + } + if (spot_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(32, spot_); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(35, getConfidentialNodes()); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(36, getFastSocket()); + } + 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(37, resourceLabels__); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(38, getLoggingConfig()); + } + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(39, getWindowsNodeConfig()); + } + if (((bitField0_ & 0x00004000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(40, getLocalNvmeSsdBlockConfig()); + } + if (((bitField0_ & 0x00008000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(41, getEphemeralStorageLocalSsdConfig()); + } + if (((bitField0_ & 0x00010000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(42, getSoleTenantConfig()); + } + if (((bitField0_ & 0x00020000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(44, getHostMaintenancePolicy()); + } + if (((bitField0_ & 0x00040000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(45, getResourceManagerTags()); + } + if (enableConfidentialStorage_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(46, enableConfidentialStorage_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (hasGcfsConfig() != other.hasGcfsConfig()) return false; + if (hasGcfsConfig()) { + if (!getGcfsConfig() + .equals(other.getGcfsConfig())) return false; + } + if (hasAdvancedMachineFeatures() != other.hasAdvancedMachineFeatures()) return false; + if (hasAdvancedMachineFeatures()) { + if (!getAdvancedMachineFeatures() + .equals(other.getAdvancedMachineFeatures())) return false; + } + if (hasGvnic() != other.hasGvnic()) return false; + if (hasGvnic()) { + if (!getGvnic() + .equals(other.getGvnic())) return false; + } + if (getSpot() + != other.getSpot()) return false; + if (hasConfidentialNodes() != other.hasConfidentialNodes()) return false; + if (hasConfidentialNodes()) { + if (!getConfidentialNodes() + .equals(other.getConfidentialNodes())) return false; + } + if (hasFastSocket() != other.hasFastSocket()) return false; + if (hasFastSocket()) { + if (!getFastSocket() + .equals(other.getFastSocket())) return false; + } + if (!internalGetResourceLabels().equals( + other.internalGetResourceLabels())) return false; + if (hasLoggingConfig() != other.hasLoggingConfig()) return false; + if (hasLoggingConfig()) { + if (!getLoggingConfig() + .equals(other.getLoggingConfig())) return false; + } + if (hasWindowsNodeConfig() != other.hasWindowsNodeConfig()) return false; + if (hasWindowsNodeConfig()) { + if (!getWindowsNodeConfig() + .equals(other.getWindowsNodeConfig())) return false; + } + if (hasLocalNvmeSsdBlockConfig() != other.hasLocalNvmeSsdBlockConfig()) return false; + if (hasLocalNvmeSsdBlockConfig()) { + if (!getLocalNvmeSsdBlockConfig() + .equals(other.getLocalNvmeSsdBlockConfig())) return false; + } + if (hasEphemeralStorageLocalSsdConfig() != other.hasEphemeralStorageLocalSsdConfig()) return false; + if (hasEphemeralStorageLocalSsdConfig()) { + if (!getEphemeralStorageLocalSsdConfig() + .equals(other.getEphemeralStorageLocalSsdConfig())) return false; + } + if (hasSoleTenantConfig() != other.hasSoleTenantConfig()) return false; + if (hasSoleTenantConfig()) { + if (!getSoleTenantConfig() + .equals(other.getSoleTenantConfig())) return false; + } + if (hasHostMaintenancePolicy() != other.hasHostMaintenancePolicy()) return false; + if (hasHostMaintenancePolicy()) { + if (!getHostMaintenancePolicy() + .equals(other.getHostMaintenancePolicy())) return false; + } + if (hasResourceManagerTags() != other.hasResourceManagerTags()) return false; + if (hasResourceManagerTags()) { + if (!getResourceManagerTags() + .equals(other.getResourceManagerTags())) return false; + } + if (getEnableConfidentialStorage() + != other.getEnableConfidentialStorage()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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(); + } + if (hasGcfsConfig()) { + hash = (37 * hash) + GCFS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGcfsConfig().hashCode(); + } + if (hasAdvancedMachineFeatures()) { + hash = (37 * hash) + ADVANCED_MACHINE_FEATURES_FIELD_NUMBER; + hash = (53 * hash) + getAdvancedMachineFeatures().hashCode(); + } + if (hasGvnic()) { + hash = (37 * hash) + GVNIC_FIELD_NUMBER; + hash = (53 * hash) + getGvnic().hashCode(); + } + hash = (37 * hash) + SPOT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSpot()); + if (hasConfidentialNodes()) { + hash = (37 * hash) + CONFIDENTIAL_NODES_FIELD_NUMBER; + hash = (53 * hash) + getConfidentialNodes().hashCode(); + } + if (hasFastSocket()) { + hash = (37 * hash) + FAST_SOCKET_FIELD_NUMBER; + hash = (53 * hash) + getFastSocket().hashCode(); + } + if (!internalGetResourceLabels().getMap().isEmpty()) { + hash = (37 * hash) + RESOURCE_LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetResourceLabels().hashCode(); + } + if (hasLoggingConfig()) { + hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getLoggingConfig().hashCode(); + } + if (hasWindowsNodeConfig()) { + hash = (37 * hash) + WINDOWS_NODE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getWindowsNodeConfig().hashCode(); + } + if (hasLocalNvmeSsdBlockConfig()) { + hash = (37 * hash) + LOCAL_NVME_SSD_BLOCK_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getLocalNvmeSsdBlockConfig().hashCode(); + } + if (hasEphemeralStorageLocalSsdConfig()) { + hash = (37 * hash) + EPHEMERAL_STORAGE_LOCAL_SSD_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getEphemeralStorageLocalSsdConfig().hashCode(); + } + if (hasSoleTenantConfig()) { + hash = (37 * hash) + SOLE_TENANT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSoleTenantConfig().hashCode(); + } + if (hasHostMaintenancePolicy()) { + hash = (37 * hash) + HOST_MAINTENANCE_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getHostMaintenancePolicy().hashCode(); + } + if (hasResourceManagerTags()) { + hash = (37 * hash) + RESOURCE_MANAGER_TAGS_FIELD_NUMBER; + hash = (53 * hash) + getResourceManagerTags().hashCode(); + } + hash = (37 * hash) + ENABLE_CONFIDENTIAL_STORAGE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableConfidentialStorage()); + hash = (29 * hash) + getUnknownFields().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.
+   *
+   * GKE Autopilot clusters do not
+   * recognize parameters in `NodeConfig`. Use
+   * [AutoprovisioningNodePoolDefaults][google.container.v1beta1.AutoprovisioningNodePoolDefaults]
+   * instead.
+   * 
+ * + * 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.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMetadata(); + case 6: + return internalGetLabels(); + case 37: + return internalGetResourceLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableMetadata(); + case 6: + return internalGetMutableLabels(); + case 37: + 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_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(); + getSandboxConfigFieldBuilder(); + getReservationAffinityFieldBuilder(); + getWorkloadMetadataConfigFieldBuilder(); + getTaintsFieldBuilder(); + getShieldedInstanceConfigFieldBuilder(); + getLinuxNodeConfigFieldBuilder(); + getKubeletConfigFieldBuilder(); + getEphemeralStorageConfigFieldBuilder(); + getGcfsConfigFieldBuilder(); + getAdvancedMachineFeaturesFieldBuilder(); + getGvnicFieldBuilder(); + getConfidentialNodesFieldBuilder(); + getFastSocketFieldBuilder(); + getLoggingConfigFieldBuilder(); + getWindowsNodeConfigFieldBuilder(); + getLocalNvmeSsdBlockConfigFieldBuilder(); + getEphemeralStorageLocalSsdConfigFieldBuilder(); + getSoleTenantConfigFieldBuilder(); + getHostMaintenancePolicyFieldBuilder(); + getResourceManagerTagsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bitField1_ = 0; + machineType_ = ""; + diskSizeGb_ = 0; + oauthScopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + serviceAccount_ = ""; + internalGetMutableMetadata().clear(); + imageType_ = ""; + internalGetMutableLabels().clear(); + localSsdCount_ = 0; + tags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + preemptible_ = false; + if (acceleratorsBuilder_ == null) { + accelerators_ = java.util.Collections.emptyList(); + } else { + accelerators_ = null; + acceleratorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000400); + sandboxConfig_ = null; + if (sandboxConfigBuilder_ != null) { + sandboxConfigBuilder_.dispose(); + sandboxConfigBuilder_ = null; + } + nodeGroup_ = ""; + reservationAffinity_ = null; + if (reservationAffinityBuilder_ != null) { + reservationAffinityBuilder_.dispose(); + reservationAffinityBuilder_ = null; + } + diskType_ = ""; + minCpuPlatform_ = ""; + workloadMetadataConfig_ = null; + if (workloadMetadataConfigBuilder_ != null) { + workloadMetadataConfigBuilder_.dispose(); + workloadMetadataConfigBuilder_ = null; + } + if (taintsBuilder_ == null) { + taints_ = java.util.Collections.emptyList(); + } else { + taints_ = null; + taintsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00020000); + bootDiskKmsKey_ = ""; + shieldedInstanceConfig_ = null; + if (shieldedInstanceConfigBuilder_ != null) { + shieldedInstanceConfigBuilder_.dispose(); + shieldedInstanceConfigBuilder_ = null; + } + linuxNodeConfig_ = null; + if (linuxNodeConfigBuilder_ != null) { + linuxNodeConfigBuilder_.dispose(); + linuxNodeConfigBuilder_ = null; + } + kubeletConfig_ = null; + if (kubeletConfigBuilder_ != null) { + kubeletConfigBuilder_.dispose(); + kubeletConfigBuilder_ = null; + } + ephemeralStorageConfig_ = null; + if (ephemeralStorageConfigBuilder_ != null) { + ephemeralStorageConfigBuilder_.dispose(); + ephemeralStorageConfigBuilder_ = null; + } + gcfsConfig_ = null; + if (gcfsConfigBuilder_ != null) { + gcfsConfigBuilder_.dispose(); + gcfsConfigBuilder_ = null; + } + advancedMachineFeatures_ = null; + if (advancedMachineFeaturesBuilder_ != null) { + advancedMachineFeaturesBuilder_.dispose(); + advancedMachineFeaturesBuilder_ = null; + } + gvnic_ = null; + if (gvnicBuilder_ != null) { + gvnicBuilder_.dispose(); + gvnicBuilder_ = null; + } + spot_ = false; + confidentialNodes_ = null; + if (confidentialNodesBuilder_ != null) { + confidentialNodesBuilder_.dispose(); + confidentialNodesBuilder_ = null; + } + fastSocket_ = null; + if (fastSocketBuilder_ != null) { + fastSocketBuilder_.dispose(); + fastSocketBuilder_ = null; + } + internalGetMutableResourceLabels().clear(); + loggingConfig_ = null; + if (loggingConfigBuilder_ != null) { + loggingConfigBuilder_.dispose(); + loggingConfigBuilder_ = null; + } + windowsNodeConfig_ = null; + if (windowsNodeConfigBuilder_ != null) { + windowsNodeConfigBuilder_.dispose(); + windowsNodeConfigBuilder_ = null; + } + localNvmeSsdBlockConfig_ = null; + if (localNvmeSsdBlockConfigBuilder_ != null) { + localNvmeSsdBlockConfigBuilder_.dispose(); + localNvmeSsdBlockConfigBuilder_ = null; + } + ephemeralStorageLocalSsdConfig_ = null; + if (ephemeralStorageLocalSsdConfigBuilder_ != null) { + ephemeralStorageLocalSsdConfigBuilder_.dispose(); + ephemeralStorageLocalSsdConfigBuilder_ = null; + } + soleTenantConfig_ = null; + if (soleTenantConfigBuilder_ != null) { + soleTenantConfigBuilder_.dispose(); + soleTenantConfigBuilder_ = null; + } + hostMaintenancePolicy_ = null; + if (hostMaintenancePolicyBuilder_ != null) { + hostMaintenancePolicyBuilder_.dispose(); + hostMaintenancePolicyBuilder_ = null; + } + resourceManagerTags_ = null; + if (resourceManagerTagsBuilder_ != null) { + resourceManagerTagsBuilder_.dispose(); + resourceManagerTagsBuilder_ = null; + } + enableConfidentialStorage_ = false; + 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); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + if (bitField1_ != 0) { buildPartial1(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1beta1.NodeConfig result) { + if (acceleratorsBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0)) { + accelerators_ = java.util.Collections.unmodifiableList(accelerators_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.accelerators_ = accelerators_; + } else { + result.accelerators_ = acceleratorsBuilder_.build(); + } + if (taintsBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0)) { + taints_ = java.util.Collections.unmodifiableList(taints_); + bitField0_ = (bitField0_ & ~0x00020000); + } + result.taints_ = taints_; + } else { + result.taints_ = taintsBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1beta1.NodeConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.machineType_ = machineType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.diskSizeGb_ = diskSizeGb_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + oauthScopes_.makeImmutable(); + result.oauthScopes_ = oauthScopes_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.serviceAccount_ = serviceAccount_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.metadata_ = internalGetMetadata(); + result.metadata_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.imageType_ = imageType_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.localSsdCount_ = localSsdCount_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + tags_.makeImmutable(); + result.tags_ = tags_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.preemptible_ = preemptible_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000800) != 0)) { + result.sandboxConfig_ = sandboxConfigBuilder_ == null + ? sandboxConfig_ + : sandboxConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.nodeGroup_ = nodeGroup_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.reservationAffinity_ = reservationAffinityBuilder_ == null + ? reservationAffinity_ + : reservationAffinityBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.diskType_ = diskType_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.minCpuPlatform_ = minCpuPlatform_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.workloadMetadataConfig_ = workloadMetadataConfigBuilder_ == null + ? workloadMetadataConfig_ + : workloadMetadataConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.bootDiskKmsKey_ = bootDiskKmsKey_; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.shieldedInstanceConfig_ = shieldedInstanceConfigBuilder_ == null + ? shieldedInstanceConfig_ + : shieldedInstanceConfigBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.linuxNodeConfig_ = linuxNodeConfigBuilder_ == null + ? linuxNodeConfig_ + : linuxNodeConfigBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.kubeletConfig_ = kubeletConfigBuilder_ == null + ? kubeletConfig_ + : kubeletConfigBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.ephemeralStorageConfig_ = ephemeralStorageConfigBuilder_ == null + ? ephemeralStorageConfig_ + : ephemeralStorageConfigBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.gcfsConfig_ = gcfsConfigBuilder_ == null + ? gcfsConfig_ + : gcfsConfigBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x01000000) != 0)) { + result.advancedMachineFeatures_ = advancedMachineFeaturesBuilder_ == null + ? advancedMachineFeatures_ + : advancedMachineFeaturesBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x02000000) != 0)) { + result.gvnic_ = gvnicBuilder_ == null + ? gvnic_ + : gvnicBuilder_.build(); + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x04000000) != 0)) { + result.spot_ = spot_; + } + if (((from_bitField0_ & 0x08000000) != 0)) { + result.confidentialNodes_ = confidentialNodesBuilder_ == null + ? confidentialNodes_ + : confidentialNodesBuilder_.build(); + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x10000000) != 0)) { + result.fastSocket_ = fastSocketBuilder_ == null + ? fastSocket_ + : fastSocketBuilder_.build(); + to_bitField0_ |= 0x00000800; + } + if (((from_bitField0_ & 0x20000000) != 0)) { + result.resourceLabels_ = internalGetResourceLabels(); + result.resourceLabels_.makeImmutable(); + } + if (((from_bitField0_ & 0x40000000) != 0)) { + result.loggingConfig_ = loggingConfigBuilder_ == null + ? loggingConfig_ + : loggingConfigBuilder_.build(); + to_bitField0_ |= 0x00001000; + } + if (((from_bitField0_ & 0x80000000) != 0)) { + result.windowsNodeConfig_ = windowsNodeConfigBuilder_ == null + ? windowsNodeConfig_ + : windowsNodeConfigBuilder_.build(); + to_bitField0_ |= 0x00002000; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartial1(com.google.container.v1beta1.NodeConfig result) { + int from_bitField1_ = bitField1_; + int to_bitField0_ = 0; + if (((from_bitField1_ & 0x00000001) != 0)) { + result.localNvmeSsdBlockConfig_ = localNvmeSsdBlockConfigBuilder_ == null + ? localNvmeSsdBlockConfig_ + : localNvmeSsdBlockConfigBuilder_.build(); + to_bitField0_ |= 0x00004000; + } + if (((from_bitField1_ & 0x00000002) != 0)) { + result.ephemeralStorageLocalSsdConfig_ = ephemeralStorageLocalSsdConfigBuilder_ == null + ? ephemeralStorageLocalSsdConfig_ + : ephemeralStorageLocalSsdConfigBuilder_.build(); + to_bitField0_ |= 0x00008000; + } + if (((from_bitField1_ & 0x00000004) != 0)) { + result.soleTenantConfig_ = soleTenantConfigBuilder_ == null + ? soleTenantConfig_ + : soleTenantConfigBuilder_.build(); + to_bitField0_ |= 0x00010000; + } + if (((from_bitField1_ & 0x00000008) != 0)) { + result.hostMaintenancePolicy_ = hostMaintenancePolicyBuilder_ == null + ? hostMaintenancePolicy_ + : hostMaintenancePolicyBuilder_.build(); + to_bitField0_ |= 0x00020000; + } + if (((from_bitField1_ & 0x00000010) != 0)) { + result.resourceManagerTags_ = resourceManagerTagsBuilder_ == null + ? resourceManagerTags_ + : resourceManagerTagsBuilder_.build(); + to_bitField0_ |= 0x00040000; + } + if (((from_bitField1_ & 0x00000020) != 0)) { + result.enableConfidentialStorage_ = enableConfidentialStorage_; + } + result.bitField0_ |= to_bitField0_; + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getDiskSizeGb() != 0) { + setDiskSizeGb(other.getDiskSizeGb()); + } + if (!other.oauthScopes_.isEmpty()) { + if (oauthScopes_.isEmpty()) { + oauthScopes_ = other.oauthScopes_; + bitField0_ |= 0x00000004; + } else { + ensureOauthScopesIsMutable(); + oauthScopes_.addAll(other.oauthScopes_); + } + onChanged(); + } + if (!other.getServiceAccount().isEmpty()) { + serviceAccount_ = other.serviceAccount_; + bitField0_ |= 0x00000008; + onChanged(); + } + internalGetMutableMetadata().mergeFrom( + other.internalGetMetadata()); + bitField0_ |= 0x00000010; + if (!other.getImageType().isEmpty()) { + imageType_ = other.imageType_; + bitField0_ |= 0x00000020; + onChanged(); + } + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); + bitField0_ |= 0x00000040; + if (other.getLocalSsdCount() != 0) { + setLocalSsdCount(other.getLocalSsdCount()); + } + if (!other.tags_.isEmpty()) { + if (tags_.isEmpty()) { + tags_ = other.tags_; + bitField0_ |= 0x00000100; + } else { + ensureTagsIsMutable(); + tags_.addAll(other.tags_); + } + onChanged(); + } + if (other.getPreemptible() != false) { + setPreemptible(other.getPreemptible()); + } + if (acceleratorsBuilder_ == null) { + if (!other.accelerators_.isEmpty()) { + if (accelerators_.isEmpty()) { + accelerators_ = other.accelerators_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureAcceleratorsIsMutable(); + accelerators_.addAll(other.accelerators_); + } + onChanged(); + } + } else { + if (!other.accelerators_.isEmpty()) { + if (acceleratorsBuilder_.isEmpty()) { + acceleratorsBuilder_.dispose(); + acceleratorsBuilder_ = null; + accelerators_ = other.accelerators_; + bitField0_ = (bitField0_ & ~0x00000400); + acceleratorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAcceleratorsFieldBuilder() : null; + } else { + acceleratorsBuilder_.addAllMessages(other.accelerators_); + } + } + } + if (other.hasSandboxConfig()) { + mergeSandboxConfig(other.getSandboxConfig()); + } + if (!other.getNodeGroup().isEmpty()) { + nodeGroup_ = other.nodeGroup_; + bitField0_ |= 0x00001000; + onChanged(); + } + if (other.hasReservationAffinity()) { + mergeReservationAffinity(other.getReservationAffinity()); + } + if (!other.getDiskType().isEmpty()) { + diskType_ = other.diskType_; + bitField0_ |= 0x00004000; + onChanged(); + } + if (!other.getMinCpuPlatform().isEmpty()) { + minCpuPlatform_ = other.minCpuPlatform_; + bitField0_ |= 0x00008000; + onChanged(); + } + if (other.hasWorkloadMetadataConfig()) { + mergeWorkloadMetadataConfig(other.getWorkloadMetadataConfig()); + } + if (taintsBuilder_ == null) { + if (!other.taints_.isEmpty()) { + if (taints_.isEmpty()) { + taints_ = other.taints_; + bitField0_ = (bitField0_ & ~0x00020000); + } else { + ensureTaintsIsMutable(); + taints_.addAll(other.taints_); + } + onChanged(); + } + } else { + if (!other.taints_.isEmpty()) { + if (taintsBuilder_.isEmpty()) { + taintsBuilder_.dispose(); + taintsBuilder_ = null; + taints_ = other.taints_; + bitField0_ = (bitField0_ & ~0x00020000); + taintsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTaintsFieldBuilder() : null; + } else { + taintsBuilder_.addAllMessages(other.taints_); + } + } + } + if (!other.getBootDiskKmsKey().isEmpty()) { + bootDiskKmsKey_ = other.bootDiskKmsKey_; + bitField0_ |= 0x00040000; + 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()); + } + if (other.hasGcfsConfig()) { + mergeGcfsConfig(other.getGcfsConfig()); + } + if (other.hasAdvancedMachineFeatures()) { + mergeAdvancedMachineFeatures(other.getAdvancedMachineFeatures()); + } + if (other.hasGvnic()) { + mergeGvnic(other.getGvnic()); + } + if (other.getSpot() != false) { + setSpot(other.getSpot()); + } + if (other.hasConfidentialNodes()) { + mergeConfidentialNodes(other.getConfidentialNodes()); + } + if (other.hasFastSocket()) { + mergeFastSocket(other.getFastSocket()); + } + internalGetMutableResourceLabels().mergeFrom( + other.internalGetResourceLabels()); + bitField0_ |= 0x20000000; + if (other.hasLoggingConfig()) { + mergeLoggingConfig(other.getLoggingConfig()); + } + if (other.hasWindowsNodeConfig()) { + mergeWindowsNodeConfig(other.getWindowsNodeConfig()); + } + if (other.hasLocalNvmeSsdBlockConfig()) { + mergeLocalNvmeSsdBlockConfig(other.getLocalNvmeSsdBlockConfig()); + } + if (other.hasEphemeralStorageLocalSsdConfig()) { + mergeEphemeralStorageLocalSsdConfig(other.getEphemeralStorageLocalSsdConfig()); + } + if (other.hasSoleTenantConfig()) { + mergeSoleTenantConfig(other.getSoleTenantConfig()); + } + if (other.hasHostMaintenancePolicy()) { + mergeHostMaintenancePolicy(other.getHostMaintenancePolicy()); + } + if (other.hasResourceManagerTags()) { + mergeResourceManagerTags(other.getResourceManagerTags()); + } + if (other.getEnableConfidentialStorage() != false) { + setEnableConfidentialStorage(other.getEnableConfidentialStorage()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + machineType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + diskSizeGb_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureOauthScopesIsMutable(); + oauthScopes_.add(s); + break; + } // case 26 + case 34: { + com.google.protobuf.MapEntry + metadata__ = input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableMetadata().getMutableMap().put( + metadata__.getKey(), metadata__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: { + imageType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 50: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 56: { + localSsdCount_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 56 + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + ensureTagsIsMutable(); + tags_.add(s); + break; + } // case 66 + case 74: { + serviceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 74 + case 80: { + preemptible_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 90: { + com.google.container.v1beta1.AcceleratorConfig m = + input.readMessage( + com.google.container.v1beta1.AcceleratorConfig.parser(), + extensionRegistry); + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + accelerators_.add(m); + } else { + acceleratorsBuilder_.addMessage(m); + } + break; + } // case 90 + case 98: { + diskType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00004000; + break; + } // case 98 + case 106: { + minCpuPlatform_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00008000; + break; + } // case 106 + case 114: { + input.readMessage( + getWorkloadMetadataConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 114 + case 122: { + com.google.container.v1beta1.NodeTaint m = + input.readMessage( + com.google.container.v1beta1.NodeTaint.parser(), + extensionRegistry); + if (taintsBuilder_ == null) { + ensureTaintsIsMutable(); + taints_.add(m); + } else { + taintsBuilder_.addMessage(m); + } + break; + } // case 122 + case 138: { + input.readMessage( + getSandboxConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 138 + case 146: { + nodeGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 146 + case 154: { + input.readMessage( + getReservationAffinityFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 154 + case 162: { + input.readMessage( + getShieldedInstanceConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00080000; + break; + } // case 162 + case 170: { + input.readMessage( + getLinuxNodeConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00100000; + break; + } // case 170 + case 178: { + input.readMessage( + getKubeletConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00200000; + break; + } // case 178 + case 186: { + bootDiskKmsKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00040000; + break; + } // case 186 + case 194: { + input.readMessage( + getEphemeralStorageConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00400000; + break; + } // case 194 + case 202: { + input.readMessage( + getGcfsConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00800000; + break; + } // case 202 + case 210: { + input.readMessage( + getAdvancedMachineFeaturesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x01000000; + break; + } // case 210 + case 234: { + input.readMessage( + getGvnicFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x02000000; + break; + } // case 234 + case 256: { + spot_ = input.readBool(); + bitField0_ |= 0x04000000; + break; + } // case 256 + case 282: { + input.readMessage( + getConfidentialNodesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x08000000; + break; + } // case 282 + case 290: { + input.readMessage( + getFastSocketFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x10000000; + break; + } // case 290 + case 298: { + com.google.protobuf.MapEntry + resourceLabels__ = input.readMessage( + ResourceLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableResourceLabels().getMutableMap().put( + resourceLabels__.getKey(), resourceLabels__.getValue()); + bitField0_ |= 0x20000000; + break; + } // case 298 + case 306: { + input.readMessage( + getLoggingConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x40000000; + break; + } // case 306 + case 314: { + input.readMessage( + getWindowsNodeConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x80000000; + break; + } // case 314 + case 322: { + input.readMessage( + getLocalNvmeSsdBlockConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000001; + break; + } // case 322 + case 330: { + input.readMessage( + getEphemeralStorageLocalSsdConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000002; + break; + } // case 330 + case 338: { + input.readMessage( + getSoleTenantConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000004; + break; + } // case 338 + case 354: { + input.readMessage( + getHostMaintenancePolicyFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000008; + break; + } // case 354 + case 362: { + input.readMessage( + getResourceManagerTagsFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00000010; + break; + } // case 362 + case 368: { + enableConfidentialStorage_ = input.readBool(); + bitField1_ |= 0x00000020; + break; + } // case 368 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + private int bitField1_; + + 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; + bitField0_ |= 0x00000001; + 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(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + 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; + bitField0_ |= 0x00000002; + 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() { + bitField0_ = (bitField0_ & ~0x00000002); + diskSizeGb_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList oauthScopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureOauthScopesIsMutable() { + if (!oauthScopes_.isModifiable()) { + oauthScopes_ = new com.google.protobuf.LazyStringArrayList(oauthScopes_); + } + bitField0_ |= 0x00000004; + } + /** + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     *
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     *
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](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() { + oauthScopes_.makeImmutable(); + 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); + } + /** + *
+     * 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); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     *
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     *
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](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); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     *
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     *
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](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_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     *
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     *
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](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.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; + onChanged(); + return this; + } + /** + *
+     * The set of Google API scopes to be made available on all of the
+     * node VMs under the "default" service account.
+     *
+     * The following scopes are recommended, but not required, and by default are
+     * not included:
+     *
+     * * `https://www.googleapis.com/auth/compute` is required for mounting
+     * persistent storage on your nodes.
+     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
+     * communicating with **gcr.io**
+     * (the [Google Container
+     * Registry](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); + bitField0_ |= 0x00000004; + 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; + bitField0_ |= 0x00000008; + 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(); + bitField0_ = (bitField0_ & ~0x00000008); + 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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + private com.google.protobuf.MapField + internalGetMutableMetadata() { + if (metadata_ == null) { + metadata_ = com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + if (!metadata_.isMutable()) { + metadata_ = metadata_.copy(); + } + bitField0_ |= 0x00000010; + onChanged(); + 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"
+     *
+     * 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 NullPointerException("map key"); } + 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"
+     *
+     * 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"
+     *
+     * 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 /* nullable */ +java.lang.String getMetadataOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + 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"
+     *
+     * 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 NullPointerException("map key"); } + java.util.Map map = + internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000010); + 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"
+     *
+     * 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 NullPointerException("map key"); } + internalGetMutableMetadata().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableMetadata() { + bitField0_ |= 0x00000010; + 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"
+     *
+     * 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 NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableMetadata().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000010; + 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"
+     *
+     * 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); + bitField0_ |= 0x00000010; + 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. Please see
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+     * available image types.
+     * 
+ * + * 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. Please see
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+     * available image types.
+     * 
+ * + * 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. Please see
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+     * available image types.
+     * 
+ * + * 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; + bitField0_ |= 0x00000020; + 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. Please see
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+     * available image types.
+     * 
+ * + * string image_type = 5; + * @return This builder for chaining. + */ + public Builder clearImageType() { + imageType_ = getDefaultInstance().getImageType(); + bitField0_ = (bitField0_ & ~0x00000020); + 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. Please see
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+     * available image types.
+     * 
+ * + * 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; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000040; + onChanged(); + 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 NullPointerException("map key"); } + 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 /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + 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 NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000040); + 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 NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableLabels() { + bitField0_ |= 0x00000040; + 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 NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000040; + 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); + bitField0_ |= 0x00000040; + 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; + bitField0_ |= 0x00000080; + 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() { + bitField0_ = (bitField0_ & ~0x00000080); + localSsdCount_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList tags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureTagsIsMutable() { + if (!tags_.isModifiable()) { + tags_ = new com.google.protobuf.LazyStringArrayList(tags_); + } + bitField0_ |= 0x00000100; + } + /** + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + * @return A list containing the tags. + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + tags_.makeImmutable(); + 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); + } + /** + *
+     * 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); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + * @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); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + * @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_); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + * @return This builder for chaining. + */ + public Builder clearTags() { + tags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100);; + onChanged(); + return this; + } + /** + *
+     * The list of instance tags applied to all nodes. Tags are used to identify
+     * valid sources or targets for network firewalls and are specified by
+     * the client during cluster or node pool creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * repeated string tags = 8; + * @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); + bitField0_ |= 0x00000100; + 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
+     * information 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
+     * information 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; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * Whether the nodes are created as preemptible VM instances. See:
+     * https://cloud.google.com/compute/docs/instances/preemptible for more
+     * information about preemptible VM instances.
+     * 
+ * + * bool preemptible = 10; + * @return This builder for chaining. + */ + public Builder clearPreemptible() { + bitField0_ = (bitField0_ & ~0x00000200); + preemptible_ = false; + onChanged(); + return this; + } + + private java.util.List accelerators_ = + java.util.Collections.emptyList(); + private void ensureAcceleratorsIsMutable() { + if (!((bitField0_ & 0x00000400) != 0)) { + accelerators_ = new java.util.ArrayList(accelerators_); + bitField0_ |= 0x00000400; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.AcceleratorConfig, com.google.container.v1beta1.AcceleratorConfig.Builder, com.google.container.v1beta1.AcceleratorConfigOrBuilder> acceleratorsBuilder_; + + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public java.util.List getAcceleratorsList() { + if (acceleratorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(accelerators_); + } else { + return acceleratorsBuilder_.getMessageList(); + } + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public int getAcceleratorsCount() { + if (acceleratorsBuilder_ == null) { + return accelerators_.size(); + } else { + return acceleratorsBuilder_.getCount(); + } + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public com.google.container.v1beta1.AcceleratorConfig getAccelerators(int index) { + if (acceleratorsBuilder_ == null) { + return accelerators_.get(index); + } else { + return acceleratorsBuilder_.getMessage(index); + } + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public Builder setAccelerators( + int index, com.google.container.v1beta1.AcceleratorConfig value) { + if (acceleratorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAcceleratorsIsMutable(); + accelerators_.set(index, value); + onChanged(); + } else { + acceleratorsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public Builder setAccelerators( + int index, com.google.container.v1beta1.AcceleratorConfig.Builder builderForValue) { + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + accelerators_.set(index, builderForValue.build()); + onChanged(); + } else { + acceleratorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public Builder addAccelerators(com.google.container.v1beta1.AcceleratorConfig value) { + if (acceleratorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAcceleratorsIsMutable(); + accelerators_.add(value); + onChanged(); + } else { + acceleratorsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public Builder addAccelerators( + int index, com.google.container.v1beta1.AcceleratorConfig value) { + if (acceleratorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAcceleratorsIsMutable(); + accelerators_.add(index, value); + onChanged(); + } else { + acceleratorsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public Builder addAccelerators( + com.google.container.v1beta1.AcceleratorConfig.Builder builderForValue) { + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + accelerators_.add(builderForValue.build()); + onChanged(); + } else { + acceleratorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public Builder addAccelerators( + int index, com.google.container.v1beta1.AcceleratorConfig.Builder builderForValue) { + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + accelerators_.add(index, builderForValue.build()); + onChanged(); + } else { + acceleratorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public Builder addAllAccelerators( + java.lang.Iterable values) { + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, accelerators_); + onChanged(); + } else { + acceleratorsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public Builder clearAccelerators() { + if (acceleratorsBuilder_ == null) { + accelerators_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + acceleratorsBuilder_.clear(); + } + return this; + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public Builder removeAccelerators(int index) { + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + accelerators_.remove(index); + onChanged(); + } else { + acceleratorsBuilder_.remove(index); + } + return this; + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public com.google.container.v1beta1.AcceleratorConfig.Builder getAcceleratorsBuilder( + int index) { + return getAcceleratorsFieldBuilder().getBuilder(index); + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public com.google.container.v1beta1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder( + int index) { + if (acceleratorsBuilder_ == null) { + return accelerators_.get(index); } else { + return acceleratorsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public java.util.List + getAcceleratorsOrBuilderList() { + if (acceleratorsBuilder_ != null) { + return acceleratorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(accelerators_); + } + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public com.google.container.v1beta1.AcceleratorConfig.Builder addAcceleratorsBuilder() { + return getAcceleratorsFieldBuilder().addBuilder( + com.google.container.v1beta1.AcceleratorConfig.getDefaultInstance()); + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public com.google.container.v1beta1.AcceleratorConfig.Builder addAcceleratorsBuilder( + int index) { + return getAcceleratorsFieldBuilder().addBuilder( + index, com.google.container.v1beta1.AcceleratorConfig.getDefaultInstance()); + } + /** + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11; + */ + public java.util.List + getAcceleratorsBuilderList() { + return getAcceleratorsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.AcceleratorConfig, com.google.container.v1beta1.AcceleratorConfig.Builder, com.google.container.v1beta1.AcceleratorConfigOrBuilder> + getAcceleratorsFieldBuilder() { + if (acceleratorsBuilder_ == null) { + acceleratorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.AcceleratorConfig, com.google.container.v1beta1.AcceleratorConfig.Builder, com.google.container.v1beta1.AcceleratorConfigOrBuilder>( + accelerators_, + ((bitField0_ & 0x00000400) != 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 ((bitField0_ & 0x00000800) != 0); + } + /** + *
+     * 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; + } else { + sandboxConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + 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(); + } else { + sandboxConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + 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 (((bitField0_ & 0x00000800) != 0) && + sandboxConfig_ != null && + sandboxConfig_ != com.google.container.v1beta1.SandboxConfig.getDefaultInstance()) { + getSandboxConfigBuilder().mergeFrom(value); + } else { + sandboxConfig_ = value; + } + } else { + sandboxConfigBuilder_.mergeFrom(value); + } + if (sandboxConfig_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + /** + *
+     * Sandbox configuration for this node.
+     * 
+ * + * .google.container.v1beta1.SandboxConfig sandbox_config = 17; + */ + public Builder clearSandboxConfig() { + bitField0_ = (bitField0_ & ~0x00000800); + sandboxConfig_ = null; + if (sandboxConfigBuilder_ != null) { + sandboxConfigBuilder_.dispose(); + sandboxConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Sandbox configuration for this node.
+     * 
+ * + * .google.container.v1beta1.SandboxConfig sandbox_config = 17; + */ + public com.google.container.v1beta1.SandboxConfig.Builder getSandboxConfigBuilder() { + bitField0_ |= 0x00000800; + 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; + bitField0_ |= 0x00001000; + 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(); + bitField0_ = (bitField0_ & ~0x00001000); + 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; + bitField0_ |= 0x00001000; + 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 ((bitField0_ & 0x00002000) != 0); + } + /** + *
+     * 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; + } else { + reservationAffinityBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; + onChanged(); + 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(); + } else { + reservationAffinityBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; + onChanged(); + 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 (((bitField0_ & 0x00002000) != 0) && + reservationAffinity_ != null && + reservationAffinity_ != com.google.container.v1beta1.ReservationAffinity.getDefaultInstance()) { + getReservationAffinityBuilder().mergeFrom(value); + } else { + reservationAffinity_ = value; + } + } else { + reservationAffinityBuilder_.mergeFrom(value); + } + if (reservationAffinity_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } + 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() { + bitField0_ = (bitField0_ & ~0x00002000); + reservationAffinity_ = null; + if (reservationAffinityBuilder_ != null) { + reservationAffinityBuilder_.dispose(); + reservationAffinityBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00002000; + 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; + bitField0_ |= 0x00004000; + 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(); + bitField0_ = (bitField0_ & ~0x00004000); + 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; + bitField0_ |= 0x00004000; + 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; + bitField0_ |= 0x00008000; + 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(); + bitField0_ = (bitField0_ & ~0x00008000); + 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; + bitField0_ |= 0x00008000; + 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 ((bitField0_ & 0x00010000) != 0); + } + /** + *
+     * 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; + } else { + workloadMetadataConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00010000; + onChanged(); + 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(); + } else { + workloadMetadataConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00010000; + onChanged(); + 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 (((bitField0_ & 0x00010000) != 0) && + workloadMetadataConfig_ != null && + workloadMetadataConfig_ != com.google.container.v1beta1.WorkloadMetadataConfig.getDefaultInstance()) { + getWorkloadMetadataConfigBuilder().mergeFrom(value); + } else { + workloadMetadataConfig_ = value; + } + } else { + workloadMetadataConfigBuilder_.mergeFrom(value); + } + if (workloadMetadataConfig_ != null) { + bitField0_ |= 0x00010000; + onChanged(); + } + return this; + } + /** + *
+     * The workload metadata configuration for this node.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder clearWorkloadMetadataConfig() { + bitField0_ = (bitField0_ & ~0x00010000); + workloadMetadataConfig_ = null; + if (workloadMetadataConfigBuilder_ != null) { + workloadMetadataConfigBuilder_.dispose(); + workloadMetadataConfigBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00010000; + 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_ & 0x00020000) != 0)) { + taints_ = new java.util.ArrayList(taints_); + bitField0_ |= 0x00020000; + } + } + + 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_ & ~0x00020000); + 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_ & 0x00020000) != 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; + bitField0_ |= 0x00040000; + 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(); + bitField0_ = (bitField0_ & ~0x00040000); + 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; + bitField0_ |= 0x00040000; + 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 ((bitField0_ & 0x00080000) != 0); + } + /** + *
+     * 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; + } else { + shieldedInstanceConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00080000; + onChanged(); + 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(); + } else { + shieldedInstanceConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00080000; + onChanged(); + 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 (((bitField0_ & 0x00080000) != 0) && + shieldedInstanceConfig_ != null && + shieldedInstanceConfig_ != com.google.container.v1beta1.ShieldedInstanceConfig.getDefaultInstance()) { + getShieldedInstanceConfigBuilder().mergeFrom(value); + } else { + shieldedInstanceConfig_ = value; + } + } else { + shieldedInstanceConfigBuilder_.mergeFrom(value); + } + if (shieldedInstanceConfig_ != null) { + bitField0_ |= 0x00080000; + onChanged(); + } + return this; + } + /** + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + public Builder clearShieldedInstanceConfig() { + bitField0_ = (bitField0_ & ~0x00080000); + shieldedInstanceConfig_ = null; + if (shieldedInstanceConfigBuilder_ != null) { + shieldedInstanceConfigBuilder_.dispose(); + shieldedInstanceConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Shielded Instance options.
+     * 
+ * + * .google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20; + */ + public com.google.container.v1beta1.ShieldedInstanceConfig.Builder getShieldedInstanceConfigBuilder() { + bitField0_ |= 0x00080000; + 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 ((bitField0_ & 0x00100000) != 0); + } + /** + *
+     * 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; + } else { + linuxNodeConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00100000; + onChanged(); + 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(); + } else { + linuxNodeConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00100000; + onChanged(); + 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 (((bitField0_ & 0x00100000) != 0) && + linuxNodeConfig_ != null && + linuxNodeConfig_ != com.google.container.v1beta1.LinuxNodeConfig.getDefaultInstance()) { + getLinuxNodeConfigBuilder().mergeFrom(value); + } else { + linuxNodeConfig_ = value; + } + } else { + linuxNodeConfigBuilder_.mergeFrom(value); + } + if (linuxNodeConfig_ != null) { + bitField0_ |= 0x00100000; + onChanged(); + } + return this; + } + /** + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 21; + */ + public Builder clearLinuxNodeConfig() { + bitField0_ = (bitField0_ & ~0x00100000); + linuxNodeConfig_ = null; + if (linuxNodeConfigBuilder_ != null) { + linuxNodeConfigBuilder_.dispose(); + linuxNodeConfigBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00100000; + 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 ((bitField0_ & 0x00200000) != 0); + } + /** + *
+     * 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; + } else { + kubeletConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00200000; + onChanged(); + 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(); + } else { + kubeletConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00200000; + onChanged(); + 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 (((bitField0_ & 0x00200000) != 0) && + kubeletConfig_ != null && + kubeletConfig_ != com.google.container.v1beta1.NodeKubeletConfig.getDefaultInstance()) { + getKubeletConfigBuilder().mergeFrom(value); + } else { + kubeletConfig_ = value; + } + } else { + kubeletConfigBuilder_.mergeFrom(value); + } + if (kubeletConfig_ != null) { + bitField0_ |= 0x00200000; + onChanged(); + } + return this; + } + /** + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; + */ + public Builder clearKubeletConfig() { + bitField0_ = (bitField0_ & ~0x00200000); + kubeletConfig_ = null; + if (kubeletConfigBuilder_ != null) { + kubeletConfigBuilder_.dispose(); + kubeletConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 22; + */ + public com.google.container.v1beta1.NodeKubeletConfig.Builder getKubeletConfigBuilder() { + bitField0_ |= 0x00200000; + 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 ((bitField0_ & 0x00400000) != 0); + } + /** + *
+     * 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; + } else { + ephemeralStorageConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00400000; + onChanged(); + 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(); + } else { + ephemeralStorageConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00400000; + onChanged(); + 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 (((bitField0_ & 0x00400000) != 0) && + ephemeralStorageConfig_ != null && + ephemeralStorageConfig_ != com.google.container.v1beta1.EphemeralStorageConfig.getDefaultInstance()) { + getEphemeralStorageConfigBuilder().mergeFrom(value); + } else { + ephemeralStorageConfig_ = value; + } + } else { + ephemeralStorageConfigBuilder_.mergeFrom(value); + } + if (ephemeralStorageConfig_ != null) { + bitField0_ |= 0x00400000; + onChanged(); + } + 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() { + bitField0_ = (bitField0_ & ~0x00400000); + ephemeralStorageConfig_ = null; + if (ephemeralStorageConfigBuilder_ != null) { + ephemeralStorageConfigBuilder_.dispose(); + ephemeralStorageConfigBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00400000; + 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_; + } + + private com.google.container.v1beta1.GcfsConfig gcfsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcfsConfig, com.google.container.v1beta1.GcfsConfig.Builder, com.google.container.v1beta1.GcfsConfigOrBuilder> gcfsConfigBuilder_; + /** + *
+     * GCFS (Google Container File System) configs.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + * @return Whether the gcfsConfig field is set. + */ + public boolean hasGcfsConfig() { + return ((bitField0_ & 0x00800000) != 0); + } + /** + *
+     * GCFS (Google Container File System) configs.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + * @return The gcfsConfig. + */ + public com.google.container.v1beta1.GcfsConfig getGcfsConfig() { + if (gcfsConfigBuilder_ == null) { + return gcfsConfig_ == null ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() : gcfsConfig_; + } else { + return gcfsConfigBuilder_.getMessage(); + } + } + /** + *
+     * GCFS (Google Container File System) configs.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + */ + public Builder setGcfsConfig(com.google.container.v1beta1.GcfsConfig value) { + if (gcfsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gcfsConfig_ = value; + } else { + gcfsConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + /** + *
+     * GCFS (Google Container File System) configs.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + */ + public Builder setGcfsConfig( + com.google.container.v1beta1.GcfsConfig.Builder builderForValue) { + if (gcfsConfigBuilder_ == null) { + gcfsConfig_ = builderForValue.build(); + } else { + gcfsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + /** + *
+     * GCFS (Google Container File System) configs.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + */ + public Builder mergeGcfsConfig(com.google.container.v1beta1.GcfsConfig value) { + if (gcfsConfigBuilder_ == null) { + if (((bitField0_ & 0x00800000) != 0) && + gcfsConfig_ != null && + gcfsConfig_ != com.google.container.v1beta1.GcfsConfig.getDefaultInstance()) { + getGcfsConfigBuilder().mergeFrom(value); + } else { + gcfsConfig_ = value; + } + } else { + gcfsConfigBuilder_.mergeFrom(value); + } + if (gcfsConfig_ != null) { + bitField0_ |= 0x00800000; + onChanged(); + } + return this; + } + /** + *
+     * GCFS (Google Container File System) configs.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + */ + public Builder clearGcfsConfig() { + bitField0_ = (bitField0_ & ~0x00800000); + gcfsConfig_ = null; + if (gcfsConfigBuilder_ != null) { + gcfsConfigBuilder_.dispose(); + gcfsConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * GCFS (Google Container File System) configs.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + */ + public com.google.container.v1beta1.GcfsConfig.Builder getGcfsConfigBuilder() { + bitField0_ |= 0x00800000; + onChanged(); + return getGcfsConfigFieldBuilder().getBuilder(); + } + /** + *
+     * GCFS (Google Container File System) configs.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + */ + public com.google.container.v1beta1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { + if (gcfsConfigBuilder_ != null) { + return gcfsConfigBuilder_.getMessageOrBuilder(); + } else { + return gcfsConfig_ == null ? + com.google.container.v1beta1.GcfsConfig.getDefaultInstance() : gcfsConfig_; + } + } + /** + *
+     * GCFS (Google Container File System) configs.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcfsConfig, com.google.container.v1beta1.GcfsConfig.Builder, com.google.container.v1beta1.GcfsConfigOrBuilder> + getGcfsConfigFieldBuilder() { + if (gcfsConfigBuilder_ == null) { + gcfsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcfsConfig, com.google.container.v1beta1.GcfsConfig.Builder, com.google.container.v1beta1.GcfsConfigOrBuilder>( + getGcfsConfig(), + getParentForChildren(), + isClean()); + gcfsConfig_ = null; + } + return gcfsConfigBuilder_; + } + + private com.google.container.v1beta1.AdvancedMachineFeatures advancedMachineFeatures_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AdvancedMachineFeatures, com.google.container.v1beta1.AdvancedMachineFeatures.Builder, com.google.container.v1beta1.AdvancedMachineFeaturesOrBuilder> advancedMachineFeaturesBuilder_; + /** + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + * @return Whether the advancedMachineFeatures field is set. + */ + public boolean hasAdvancedMachineFeatures() { + return ((bitField0_ & 0x01000000) != 0); + } + /** + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + * @return The advancedMachineFeatures. + */ + public com.google.container.v1beta1.AdvancedMachineFeatures getAdvancedMachineFeatures() { + if (advancedMachineFeaturesBuilder_ == null) { + return advancedMachineFeatures_ == null ? com.google.container.v1beta1.AdvancedMachineFeatures.getDefaultInstance() : advancedMachineFeatures_; + } else { + return advancedMachineFeaturesBuilder_.getMessage(); + } + } + /** + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + */ + public Builder setAdvancedMachineFeatures(com.google.container.v1beta1.AdvancedMachineFeatures value) { + if (advancedMachineFeaturesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + advancedMachineFeatures_ = value; + } else { + advancedMachineFeaturesBuilder_.setMessage(value); + } + bitField0_ |= 0x01000000; + onChanged(); + return this; + } + /** + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + */ + public Builder setAdvancedMachineFeatures( + com.google.container.v1beta1.AdvancedMachineFeatures.Builder builderForValue) { + if (advancedMachineFeaturesBuilder_ == null) { + advancedMachineFeatures_ = builderForValue.build(); + } else { + advancedMachineFeaturesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x01000000; + onChanged(); + return this; + } + /** + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + */ + public Builder mergeAdvancedMachineFeatures(com.google.container.v1beta1.AdvancedMachineFeatures value) { + if (advancedMachineFeaturesBuilder_ == null) { + if (((bitField0_ & 0x01000000) != 0) && + advancedMachineFeatures_ != null && + advancedMachineFeatures_ != com.google.container.v1beta1.AdvancedMachineFeatures.getDefaultInstance()) { + getAdvancedMachineFeaturesBuilder().mergeFrom(value); + } else { + advancedMachineFeatures_ = value; + } + } else { + advancedMachineFeaturesBuilder_.mergeFrom(value); + } + if (advancedMachineFeatures_ != null) { + bitField0_ |= 0x01000000; + onChanged(); + } + return this; + } + /** + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + */ + public Builder clearAdvancedMachineFeatures() { + bitField0_ = (bitField0_ & ~0x01000000); + advancedMachineFeatures_ = null; + if (advancedMachineFeaturesBuilder_ != null) { + advancedMachineFeaturesBuilder_.dispose(); + advancedMachineFeaturesBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + */ + public com.google.container.v1beta1.AdvancedMachineFeatures.Builder getAdvancedMachineFeaturesBuilder() { + bitField0_ |= 0x01000000; + onChanged(); + return getAdvancedMachineFeaturesFieldBuilder().getBuilder(); + } + /** + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + */ + public com.google.container.v1beta1.AdvancedMachineFeaturesOrBuilder getAdvancedMachineFeaturesOrBuilder() { + if (advancedMachineFeaturesBuilder_ != null) { + return advancedMachineFeaturesBuilder_.getMessageOrBuilder(); + } else { + return advancedMachineFeatures_ == null ? + com.google.container.v1beta1.AdvancedMachineFeatures.getDefaultInstance() : advancedMachineFeatures_; + } + } + /** + *
+     * Advanced features for the Compute Engine VM.
+     * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AdvancedMachineFeatures, com.google.container.v1beta1.AdvancedMachineFeatures.Builder, com.google.container.v1beta1.AdvancedMachineFeaturesOrBuilder> + getAdvancedMachineFeaturesFieldBuilder() { + if (advancedMachineFeaturesBuilder_ == null) { + advancedMachineFeaturesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.AdvancedMachineFeatures, com.google.container.v1beta1.AdvancedMachineFeatures.Builder, com.google.container.v1beta1.AdvancedMachineFeaturesOrBuilder>( + getAdvancedMachineFeatures(), + getParentForChildren(), + isClean()); + advancedMachineFeatures_ = null; + } + return advancedMachineFeaturesBuilder_; + } + + private com.google.container.v1beta1.VirtualNIC gvnic_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.VirtualNIC, com.google.container.v1beta1.VirtualNIC.Builder, com.google.container.v1beta1.VirtualNICOrBuilder> gvnicBuilder_; + /** + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1beta1.VirtualNIC gvnic = 29; + * @return Whether the gvnic field is set. + */ + public boolean hasGvnic() { + return ((bitField0_ & 0x02000000) != 0); + } + /** + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1beta1.VirtualNIC gvnic = 29; + * @return The gvnic. + */ + public com.google.container.v1beta1.VirtualNIC getGvnic() { + if (gvnicBuilder_ == null) { + return gvnic_ == null ? com.google.container.v1beta1.VirtualNIC.getDefaultInstance() : gvnic_; + } else { + return gvnicBuilder_.getMessage(); + } + } + /** + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1beta1.VirtualNIC gvnic = 29; + */ + public Builder setGvnic(com.google.container.v1beta1.VirtualNIC value) { + if (gvnicBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gvnic_ = value; + } else { + gvnicBuilder_.setMessage(value); + } + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + /** + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1beta1.VirtualNIC gvnic = 29; + */ + public Builder setGvnic( + com.google.container.v1beta1.VirtualNIC.Builder builderForValue) { + if (gvnicBuilder_ == null) { + gvnic_ = builderForValue.build(); + } else { + gvnicBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + /** + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1beta1.VirtualNIC gvnic = 29; + */ + public Builder mergeGvnic(com.google.container.v1beta1.VirtualNIC value) { + if (gvnicBuilder_ == null) { + if (((bitField0_ & 0x02000000) != 0) && + gvnic_ != null && + gvnic_ != com.google.container.v1beta1.VirtualNIC.getDefaultInstance()) { + getGvnicBuilder().mergeFrom(value); + } else { + gvnic_ = value; + } + } else { + gvnicBuilder_.mergeFrom(value); + } + if (gvnic_ != null) { + bitField0_ |= 0x02000000; + onChanged(); + } + return this; + } + /** + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1beta1.VirtualNIC gvnic = 29; + */ + public Builder clearGvnic() { + bitField0_ = (bitField0_ & ~0x02000000); + gvnic_ = null; + if (gvnicBuilder_ != null) { + gvnicBuilder_.dispose(); + gvnicBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1beta1.VirtualNIC gvnic = 29; + */ + public com.google.container.v1beta1.VirtualNIC.Builder getGvnicBuilder() { + bitField0_ |= 0x02000000; + onChanged(); + return getGvnicFieldBuilder().getBuilder(); + } + /** + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1beta1.VirtualNIC gvnic = 29; + */ + public com.google.container.v1beta1.VirtualNICOrBuilder getGvnicOrBuilder() { + if (gvnicBuilder_ != null) { + return gvnicBuilder_.getMessageOrBuilder(); + } else { + return gvnic_ == null ? + com.google.container.v1beta1.VirtualNIC.getDefaultInstance() : gvnic_; + } + } + /** + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1beta1.VirtualNIC gvnic = 29; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.VirtualNIC, com.google.container.v1beta1.VirtualNIC.Builder, com.google.container.v1beta1.VirtualNICOrBuilder> + getGvnicFieldBuilder() { + if (gvnicBuilder_ == null) { + gvnicBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.VirtualNIC, com.google.container.v1beta1.VirtualNIC.Builder, com.google.container.v1beta1.VirtualNICOrBuilder>( + getGvnic(), + getParentForChildren(), + isClean()); + gvnic_ = null; + } + return gvnicBuilder_; + } + + private boolean spot_ ; + /** + *
+     * Spot flag for enabling Spot VM, which is a rebrand of
+     * the existing preemptible flag.
+     * 
+ * + * bool spot = 32; + * @return The spot. + */ + @java.lang.Override + public boolean getSpot() { + return spot_; + } + /** + *
+     * Spot flag for enabling Spot VM, which is a rebrand of
+     * the existing preemptible flag.
+     * 
+ * + * bool spot = 32; + * @param value The spot to set. + * @return This builder for chaining. + */ + public Builder setSpot(boolean value) { + + spot_ = value; + bitField0_ |= 0x04000000; + onChanged(); + return this; + } + /** + *
+     * Spot flag for enabling Spot VM, which is a rebrand of
+     * the existing preemptible flag.
+     * 
+ * + * bool spot = 32; + * @return This builder for chaining. + */ + public Builder clearSpot() { + bitField0_ = (bitField0_ & ~0x04000000); + spot_ = false; + onChanged(); + return this; + } + + 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_; + /** + *
+     * Confidential nodes config.
+     * All the nodes in the node pool will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 35; + * @return Whether the confidentialNodes field is set. + */ + public boolean hasConfidentialNodes() { + return ((bitField0_ & 0x08000000) != 0); + } + /** + *
+     * Confidential nodes config.
+     * All the nodes in the node pool will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 35; + * @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(); + } + } + /** + *
+     * Confidential nodes config.
+     * All the nodes in the node pool will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 35; + */ + public Builder setConfidentialNodes(com.google.container.v1beta1.ConfidentialNodes value) { + if (confidentialNodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + confidentialNodes_ = value; + } else { + confidentialNodesBuilder_.setMessage(value); + } + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + /** + *
+     * Confidential nodes config.
+     * All the nodes in the node pool will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 35; + */ + public Builder setConfidentialNodes( + com.google.container.v1beta1.ConfidentialNodes.Builder builderForValue) { + if (confidentialNodesBuilder_ == null) { + confidentialNodes_ = builderForValue.build(); + } else { + confidentialNodesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + /** + *
+     * Confidential nodes config.
+     * All the nodes in the node pool will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 35; + */ + public Builder mergeConfidentialNodes(com.google.container.v1beta1.ConfidentialNodes value) { + if (confidentialNodesBuilder_ == null) { + if (((bitField0_ & 0x08000000) != 0) && + confidentialNodes_ != null && + confidentialNodes_ != com.google.container.v1beta1.ConfidentialNodes.getDefaultInstance()) { + getConfidentialNodesBuilder().mergeFrom(value); + } else { + confidentialNodes_ = value; + } + } else { + confidentialNodesBuilder_.mergeFrom(value); + } + if (confidentialNodes_ != null) { + bitField0_ |= 0x08000000; + onChanged(); + } + return this; + } + /** + *
+     * Confidential nodes config.
+     * All the nodes in the node pool will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 35; + */ + public Builder clearConfidentialNodes() { + bitField0_ = (bitField0_ & ~0x08000000); + confidentialNodes_ = null; + if (confidentialNodesBuilder_ != null) { + confidentialNodesBuilder_.dispose(); + confidentialNodesBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Confidential nodes config.
+     * All the nodes in the node pool will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 35; + */ + public com.google.container.v1beta1.ConfidentialNodes.Builder getConfidentialNodesBuilder() { + bitField0_ |= 0x08000000; + onChanged(); + return getConfidentialNodesFieldBuilder().getBuilder(); + } + /** + *
+     * Confidential nodes config.
+     * All the nodes in the node pool will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 35; + */ + public com.google.container.v1beta1.ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder() { + if (confidentialNodesBuilder_ != null) { + return confidentialNodesBuilder_.getMessageOrBuilder(); + } else { + return confidentialNodes_ == null ? + com.google.container.v1beta1.ConfidentialNodes.getDefaultInstance() : confidentialNodes_; + } + } + /** + *
+     * Confidential nodes config.
+     * All the nodes in the node pool will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 35; + */ + 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 com.google.container.v1beta1.FastSocket fastSocket_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.FastSocket, com.google.container.v1beta1.FastSocket.Builder, com.google.container.v1beta1.FastSocketOrBuilder> fastSocketBuilder_; + /** + *
+     * Enable or disable NCCL fast socket for the node pool.
+     * 
+ * + * optional .google.container.v1beta1.FastSocket fast_socket = 36; + * @return Whether the fastSocket field is set. + */ + public boolean hasFastSocket() { + return ((bitField0_ & 0x10000000) != 0); + } + /** + *
+     * Enable or disable NCCL fast socket for the node pool.
+     * 
+ * + * optional .google.container.v1beta1.FastSocket fast_socket = 36; + * @return The fastSocket. + */ + public com.google.container.v1beta1.FastSocket getFastSocket() { + if (fastSocketBuilder_ == null) { + return fastSocket_ == null ? com.google.container.v1beta1.FastSocket.getDefaultInstance() : fastSocket_; + } else { + return fastSocketBuilder_.getMessage(); + } + } + /** + *
+     * Enable or disable NCCL fast socket for the node pool.
+     * 
+ * + * optional .google.container.v1beta1.FastSocket fast_socket = 36; + */ + public Builder setFastSocket(com.google.container.v1beta1.FastSocket value) { + if (fastSocketBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fastSocket_ = value; + } else { + fastSocketBuilder_.setMessage(value); + } + bitField0_ |= 0x10000000; + onChanged(); + return this; + } + /** + *
+     * Enable or disable NCCL fast socket for the node pool.
+     * 
+ * + * optional .google.container.v1beta1.FastSocket fast_socket = 36; + */ + public Builder setFastSocket( + com.google.container.v1beta1.FastSocket.Builder builderForValue) { + if (fastSocketBuilder_ == null) { + fastSocket_ = builderForValue.build(); + } else { + fastSocketBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x10000000; + onChanged(); + return this; + } + /** + *
+     * Enable or disable NCCL fast socket for the node pool.
+     * 
+ * + * optional .google.container.v1beta1.FastSocket fast_socket = 36; + */ + public Builder mergeFastSocket(com.google.container.v1beta1.FastSocket value) { + if (fastSocketBuilder_ == null) { + if (((bitField0_ & 0x10000000) != 0) && + fastSocket_ != null && + fastSocket_ != com.google.container.v1beta1.FastSocket.getDefaultInstance()) { + getFastSocketBuilder().mergeFrom(value); + } else { + fastSocket_ = value; + } + } else { + fastSocketBuilder_.mergeFrom(value); + } + if (fastSocket_ != null) { + bitField0_ |= 0x10000000; + onChanged(); + } + return this; + } + /** + *
+     * Enable or disable NCCL fast socket for the node pool.
+     * 
+ * + * optional .google.container.v1beta1.FastSocket fast_socket = 36; + */ + public Builder clearFastSocket() { + bitField0_ = (bitField0_ & ~0x10000000); + fastSocket_ = null; + if (fastSocketBuilder_ != null) { + fastSocketBuilder_.dispose(); + fastSocketBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Enable or disable NCCL fast socket for the node pool.
+     * 
+ * + * optional .google.container.v1beta1.FastSocket fast_socket = 36; + */ + public com.google.container.v1beta1.FastSocket.Builder getFastSocketBuilder() { + bitField0_ |= 0x10000000; + onChanged(); + return getFastSocketFieldBuilder().getBuilder(); + } + /** + *
+     * Enable or disable NCCL fast socket for the node pool.
+     * 
+ * + * optional .google.container.v1beta1.FastSocket fast_socket = 36; + */ + public com.google.container.v1beta1.FastSocketOrBuilder getFastSocketOrBuilder() { + if (fastSocketBuilder_ != null) { + return fastSocketBuilder_.getMessageOrBuilder(); + } else { + return fastSocket_ == null ? + com.google.container.v1beta1.FastSocket.getDefaultInstance() : fastSocket_; + } + } + /** + *
+     * Enable or disable NCCL fast socket for the node pool.
+     * 
+ * + * optional .google.container.v1beta1.FastSocket fast_socket = 36; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.FastSocket, com.google.container.v1beta1.FastSocket.Builder, com.google.container.v1beta1.FastSocketOrBuilder> + getFastSocketFieldBuilder() { + if (fastSocketBuilder_ == null) { + fastSocketBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.FastSocket, com.google.container.v1beta1.FastSocket.Builder, com.google.container.v1beta1.FastSocketOrBuilder>( + getFastSocket(), + getParentForChildren(), + isClean()); + fastSocket_ = null; + } + return fastSocketBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> resourceLabels_; + private com.google.protobuf.MapField + internalGetResourceLabels() { + if (resourceLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + return resourceLabels_; + } + private com.google.protobuf.MapField + internalGetMutableResourceLabels() { + if (resourceLabels_ == null) { + resourceLabels_ = com.google.protobuf.MapField.newMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + if (!resourceLabels_.isMutable()) { + resourceLabels_ = resourceLabels_.copy(); + } + bitField0_ |= 0x20000000; + onChanged(); + return resourceLabels_; + } + public int getResourceLabelsCount() { + return internalGetResourceLabels().getMap().size(); + } + /** + *
+     * The resource labels for the node pool to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * map<string, string> resource_labels = 37; + */ + @java.lang.Override + public boolean containsResourceLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + 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 node pool to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * map<string, string> resource_labels = 37; + */ + @java.lang.Override + public java.util.Map getResourceLabelsMap() { + return internalGetResourceLabels().getMap(); + } + /** + *
+     * The resource labels for the node pool to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * map<string, string> resource_labels = 37; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getResourceLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetResourceLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * The resource labels for the node pool to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * map<string, string> resource_labels = 37; + */ + @java.lang.Override + public java.lang.String getResourceLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetResourceLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearResourceLabels() { + bitField0_ = (bitField0_ & ~0x20000000); + internalGetMutableResourceLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+     * The resource labels for the node pool to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * map<string, string> resource_labels = 37; + */ + public Builder removeResourceLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableResourceLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableResourceLabels() { + bitField0_ |= 0x20000000; + return internalGetMutableResourceLabels().getMutableMap(); + } + /** + *
+     * The resource labels for the node pool to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * map<string, string> resource_labels = 37; + */ + public Builder putResourceLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableResourceLabels().getMutableMap() + .put(key, value); + bitField0_ |= 0x20000000; + return this; + } + /** + *
+     * The resource labels for the node pool to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * map<string, string> resource_labels = 37; + */ + public Builder putAllResourceLabels( + java.util.Map values) { + internalGetMutableResourceLabels().getMutableMap() + .putAll(values); + bitField0_ |= 0x20000000; + return this; + } + + private com.google.container.v1beta1.NodePoolLoggingConfig loggingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolLoggingConfig, com.google.container.v1beta1.NodePoolLoggingConfig.Builder, com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder> loggingConfigBuilder_; + /** + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 38; + * @return Whether the loggingConfig field is set. + */ + public boolean hasLoggingConfig() { + return ((bitField0_ & 0x40000000) != 0); + } + /** + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 38; + * @return The loggingConfig. + */ + public com.google.container.v1beta1.NodePoolLoggingConfig getLoggingConfig() { + if (loggingConfigBuilder_ == null) { + return loggingConfig_ == null ? com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance() : loggingConfig_; + } else { + return loggingConfigBuilder_.getMessage(); + } + } + /** + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 38; + */ + public Builder setLoggingConfig(com.google.container.v1beta1.NodePoolLoggingConfig value) { + if (loggingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + loggingConfig_ = value; + } else { + loggingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x40000000; + onChanged(); + return this; + } + /** + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 38; + */ + public Builder setLoggingConfig( + com.google.container.v1beta1.NodePoolLoggingConfig.Builder builderForValue) { + if (loggingConfigBuilder_ == null) { + loggingConfig_ = builderForValue.build(); + } else { + loggingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x40000000; + onChanged(); + return this; + } + /** + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 38; + */ + public Builder mergeLoggingConfig(com.google.container.v1beta1.NodePoolLoggingConfig value) { + if (loggingConfigBuilder_ == null) { + if (((bitField0_ & 0x40000000) != 0) && + loggingConfig_ != null && + loggingConfig_ != com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance()) { + getLoggingConfigBuilder().mergeFrom(value); + } else { + loggingConfig_ = value; + } + } else { + loggingConfigBuilder_.mergeFrom(value); + } + if (loggingConfig_ != null) { + bitField0_ |= 0x40000000; + onChanged(); + } + return this; + } + /** + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 38; + */ + public Builder clearLoggingConfig() { + bitField0_ = (bitField0_ & ~0x40000000); + loggingConfig_ = null; + if (loggingConfigBuilder_ != null) { + loggingConfigBuilder_.dispose(); + loggingConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 38; + */ + public com.google.container.v1beta1.NodePoolLoggingConfig.Builder getLoggingConfigBuilder() { + bitField0_ |= 0x40000000; + onChanged(); + return getLoggingConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 38; + */ + public com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder getLoggingConfigOrBuilder() { + if (loggingConfigBuilder_ != null) { + return loggingConfigBuilder_.getMessageOrBuilder(); + } else { + return loggingConfig_ == null ? + com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance() : loggingConfig_; + } + } + /** + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 38; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolLoggingConfig, com.google.container.v1beta1.NodePoolLoggingConfig.Builder, com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder> + getLoggingConfigFieldBuilder() { + if (loggingConfigBuilder_ == null) { + loggingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolLoggingConfig, com.google.container.v1beta1.NodePoolLoggingConfig.Builder, com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder>( + getLoggingConfig(), + getParentForChildren(), + isClean()); + loggingConfig_ = null; + } + return loggingConfigBuilder_; + } + + private com.google.container.v1beta1.WindowsNodeConfig windowsNodeConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WindowsNodeConfig, com.google.container.v1beta1.WindowsNodeConfig.Builder, com.google.container.v1beta1.WindowsNodeConfigOrBuilder> windowsNodeConfigBuilder_; + /** + *
+     * Parameters that can be configured on Windows nodes.
+     * 
+ * + * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 39; + * @return Whether the windowsNodeConfig field is set. + */ + public boolean hasWindowsNodeConfig() { + return ((bitField0_ & 0x80000000) != 0); + } + /** + *
+     * Parameters that can be configured on Windows nodes.
+     * 
+ * + * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 39; + * @return The windowsNodeConfig. + */ + public com.google.container.v1beta1.WindowsNodeConfig getWindowsNodeConfig() { + if (windowsNodeConfigBuilder_ == null) { + return windowsNodeConfig_ == null ? com.google.container.v1beta1.WindowsNodeConfig.getDefaultInstance() : windowsNodeConfig_; + } else { + return windowsNodeConfigBuilder_.getMessage(); + } + } + /** + *
+     * Parameters that can be configured on Windows nodes.
+     * 
+ * + * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 39; + */ + public Builder setWindowsNodeConfig(com.google.container.v1beta1.WindowsNodeConfig value) { + if (windowsNodeConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + windowsNodeConfig_ = value; + } else { + windowsNodeConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x80000000; + onChanged(); + return this; + } + /** + *
+     * Parameters that can be configured on Windows nodes.
+     * 
+ * + * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 39; + */ + public Builder setWindowsNodeConfig( + com.google.container.v1beta1.WindowsNodeConfig.Builder builderForValue) { + if (windowsNodeConfigBuilder_ == null) { + windowsNodeConfig_ = builderForValue.build(); + } else { + windowsNodeConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x80000000; + onChanged(); + return this; + } + /** + *
+     * Parameters that can be configured on Windows nodes.
+     * 
+ * + * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 39; + */ + public Builder mergeWindowsNodeConfig(com.google.container.v1beta1.WindowsNodeConfig value) { + if (windowsNodeConfigBuilder_ == null) { + if (((bitField0_ & 0x80000000) != 0) && + windowsNodeConfig_ != null && + windowsNodeConfig_ != com.google.container.v1beta1.WindowsNodeConfig.getDefaultInstance()) { + getWindowsNodeConfigBuilder().mergeFrom(value); + } else { + windowsNodeConfig_ = value; + } + } else { + windowsNodeConfigBuilder_.mergeFrom(value); + } + if (windowsNodeConfig_ != null) { + bitField0_ |= 0x80000000; + onChanged(); + } + return this; + } + /** + *
+     * Parameters that can be configured on Windows nodes.
+     * 
+ * + * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 39; + */ + public Builder clearWindowsNodeConfig() { + bitField0_ = (bitField0_ & ~0x80000000); + windowsNodeConfig_ = null; + if (windowsNodeConfigBuilder_ != null) { + windowsNodeConfigBuilder_.dispose(); + windowsNodeConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Parameters that can be configured on Windows nodes.
+     * 
+ * + * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 39; + */ + public com.google.container.v1beta1.WindowsNodeConfig.Builder getWindowsNodeConfigBuilder() { + bitField0_ |= 0x80000000; + onChanged(); + return getWindowsNodeConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Parameters that can be configured on Windows nodes.
+     * 
+ * + * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 39; + */ + public com.google.container.v1beta1.WindowsNodeConfigOrBuilder getWindowsNodeConfigOrBuilder() { + if (windowsNodeConfigBuilder_ != null) { + return windowsNodeConfigBuilder_.getMessageOrBuilder(); + } else { + return windowsNodeConfig_ == null ? + com.google.container.v1beta1.WindowsNodeConfig.getDefaultInstance() : windowsNodeConfig_; + } + } + /** + *
+     * Parameters that can be configured on Windows nodes.
+     * 
+ * + * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 39; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WindowsNodeConfig, com.google.container.v1beta1.WindowsNodeConfig.Builder, com.google.container.v1beta1.WindowsNodeConfigOrBuilder> + getWindowsNodeConfigFieldBuilder() { + if (windowsNodeConfigBuilder_ == null) { + windowsNodeConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WindowsNodeConfig, com.google.container.v1beta1.WindowsNodeConfig.Builder, com.google.container.v1beta1.WindowsNodeConfigOrBuilder>( + getWindowsNodeConfig(), + getParentForChildren(), + isClean()); + windowsNodeConfig_ = null; + } + return windowsNodeConfigBuilder_; + } + + private com.google.container.v1beta1.LocalNvmeSsdBlockConfig localNvmeSsdBlockConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.LocalNvmeSsdBlockConfig, com.google.container.v1beta1.LocalNvmeSsdBlockConfig.Builder, com.google.container.v1beta1.LocalNvmeSsdBlockConfigOrBuilder> localNvmeSsdBlockConfigBuilder_; + /** + *
+     * Parameters for using raw-block Local NVMe SSDs.
+     * 
+ * + * .google.container.v1beta1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; + * @return Whether the localNvmeSsdBlockConfig field is set. + */ + public boolean hasLocalNvmeSsdBlockConfig() { + return ((bitField1_ & 0x00000001) != 0); + } + /** + *
+     * Parameters for using raw-block Local NVMe SSDs.
+     * 
+ * + * .google.container.v1beta1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; + * @return The localNvmeSsdBlockConfig. + */ + public com.google.container.v1beta1.LocalNvmeSsdBlockConfig getLocalNvmeSsdBlockConfig() { + if (localNvmeSsdBlockConfigBuilder_ == null) { + return localNvmeSsdBlockConfig_ == null ? com.google.container.v1beta1.LocalNvmeSsdBlockConfig.getDefaultInstance() : localNvmeSsdBlockConfig_; + } else { + return localNvmeSsdBlockConfigBuilder_.getMessage(); + } + } + /** + *
+     * Parameters for using raw-block Local NVMe SSDs.
+     * 
+ * + * .google.container.v1beta1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; + */ + public Builder setLocalNvmeSsdBlockConfig(com.google.container.v1beta1.LocalNvmeSsdBlockConfig value) { + if (localNvmeSsdBlockConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + localNvmeSsdBlockConfig_ = value; + } else { + localNvmeSsdBlockConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Parameters for using raw-block Local NVMe SSDs.
+     * 
+ * + * .google.container.v1beta1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; + */ + public Builder setLocalNvmeSsdBlockConfig( + com.google.container.v1beta1.LocalNvmeSsdBlockConfig.Builder builderForValue) { + if (localNvmeSsdBlockConfigBuilder_ == null) { + localNvmeSsdBlockConfig_ = builderForValue.build(); + } else { + localNvmeSsdBlockConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Parameters for using raw-block Local NVMe SSDs.
+     * 
+ * + * .google.container.v1beta1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; + */ + public Builder mergeLocalNvmeSsdBlockConfig(com.google.container.v1beta1.LocalNvmeSsdBlockConfig value) { + if (localNvmeSsdBlockConfigBuilder_ == null) { + if (((bitField1_ & 0x00000001) != 0) && + localNvmeSsdBlockConfig_ != null && + localNvmeSsdBlockConfig_ != com.google.container.v1beta1.LocalNvmeSsdBlockConfig.getDefaultInstance()) { + getLocalNvmeSsdBlockConfigBuilder().mergeFrom(value); + } else { + localNvmeSsdBlockConfig_ = value; + } + } else { + localNvmeSsdBlockConfigBuilder_.mergeFrom(value); + } + if (localNvmeSsdBlockConfig_ != null) { + bitField1_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+     * Parameters for using raw-block Local NVMe SSDs.
+     * 
+ * + * .google.container.v1beta1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; + */ + public Builder clearLocalNvmeSsdBlockConfig() { + bitField1_ = (bitField1_ & ~0x00000001); + localNvmeSsdBlockConfig_ = null; + if (localNvmeSsdBlockConfigBuilder_ != null) { + localNvmeSsdBlockConfigBuilder_.dispose(); + localNvmeSsdBlockConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Parameters for using raw-block Local NVMe SSDs.
+     * 
+ * + * .google.container.v1beta1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; + */ + public com.google.container.v1beta1.LocalNvmeSsdBlockConfig.Builder getLocalNvmeSsdBlockConfigBuilder() { + bitField1_ |= 0x00000001; + onChanged(); + return getLocalNvmeSsdBlockConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Parameters for using raw-block Local NVMe SSDs.
+     * 
+ * + * .google.container.v1beta1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; + */ + public com.google.container.v1beta1.LocalNvmeSsdBlockConfigOrBuilder getLocalNvmeSsdBlockConfigOrBuilder() { + if (localNvmeSsdBlockConfigBuilder_ != null) { + return localNvmeSsdBlockConfigBuilder_.getMessageOrBuilder(); + } else { + return localNvmeSsdBlockConfig_ == null ? + com.google.container.v1beta1.LocalNvmeSsdBlockConfig.getDefaultInstance() : localNvmeSsdBlockConfig_; + } + } + /** + *
+     * Parameters for using raw-block Local NVMe SSDs.
+     * 
+ * + * .google.container.v1beta1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.LocalNvmeSsdBlockConfig, com.google.container.v1beta1.LocalNvmeSsdBlockConfig.Builder, com.google.container.v1beta1.LocalNvmeSsdBlockConfigOrBuilder> + getLocalNvmeSsdBlockConfigFieldBuilder() { + if (localNvmeSsdBlockConfigBuilder_ == null) { + localNvmeSsdBlockConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.LocalNvmeSsdBlockConfig, com.google.container.v1beta1.LocalNvmeSsdBlockConfig.Builder, com.google.container.v1beta1.LocalNvmeSsdBlockConfigOrBuilder>( + getLocalNvmeSsdBlockConfig(), + getParentForChildren(), + isClean()); + localNvmeSsdBlockConfig_ = null; + } + return localNvmeSsdBlockConfigBuilder_; + } + + private com.google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeralStorageLocalSsdConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.EphemeralStorageLocalSsdConfig, com.google.container.v1beta1.EphemeralStorageLocalSsdConfig.Builder, com.google.container.v1beta1.EphemeralStorageLocalSsdConfigOrBuilder> ephemeralStorageLocalSsdConfigBuilder_; + /** + *
+     * Parameters for the node ephemeral storage using Local SSDs.
+     * If unspecified, ephemeral storage is backed by the boot disk.
+     * This field is functionally equivalent to the ephemeral_storage_config
+     * 
+ * + * .google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; + * @return Whether the ephemeralStorageLocalSsdConfig field is set. + */ + public boolean hasEphemeralStorageLocalSsdConfig() { + return ((bitField1_ & 0x00000002) != 0); + } + /** + *
+     * Parameters for the node ephemeral storage using Local SSDs.
+     * If unspecified, ephemeral storage is backed by the boot disk.
+     * This field is functionally equivalent to the ephemeral_storage_config
+     * 
+ * + * .google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; + * @return The ephemeralStorageLocalSsdConfig. + */ + public com.google.container.v1beta1.EphemeralStorageLocalSsdConfig getEphemeralStorageLocalSsdConfig() { + if (ephemeralStorageLocalSsdConfigBuilder_ == null) { + return ephemeralStorageLocalSsdConfig_ == null ? com.google.container.v1beta1.EphemeralStorageLocalSsdConfig.getDefaultInstance() : ephemeralStorageLocalSsdConfig_; + } else { + return ephemeralStorageLocalSsdConfigBuilder_.getMessage(); + } + } + /** + *
+     * Parameters for the node ephemeral storage using Local SSDs.
+     * If unspecified, ephemeral storage is backed by the boot disk.
+     * This field is functionally equivalent to the ephemeral_storage_config
+     * 
+ * + * .google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; + */ + public Builder setEphemeralStorageLocalSsdConfig(com.google.container.v1beta1.EphemeralStorageLocalSsdConfig value) { + if (ephemeralStorageLocalSsdConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ephemeralStorageLocalSsdConfig_ = value; + } else { + ephemeralStorageLocalSsdConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Parameters for the node ephemeral storage using Local SSDs.
+     * If unspecified, ephemeral storage is backed by the boot disk.
+     * This field is functionally equivalent to the ephemeral_storage_config
+     * 
+ * + * .google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; + */ + public Builder setEphemeralStorageLocalSsdConfig( + com.google.container.v1beta1.EphemeralStorageLocalSsdConfig.Builder builderForValue) { + if (ephemeralStorageLocalSsdConfigBuilder_ == null) { + ephemeralStorageLocalSsdConfig_ = builderForValue.build(); + } else { + ephemeralStorageLocalSsdConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Parameters for the node ephemeral storage using Local SSDs.
+     * If unspecified, ephemeral storage is backed by the boot disk.
+     * This field is functionally equivalent to the ephemeral_storage_config
+     * 
+ * + * .google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; + */ + public Builder mergeEphemeralStorageLocalSsdConfig(com.google.container.v1beta1.EphemeralStorageLocalSsdConfig value) { + if (ephemeralStorageLocalSsdConfigBuilder_ == null) { + if (((bitField1_ & 0x00000002) != 0) && + ephemeralStorageLocalSsdConfig_ != null && + ephemeralStorageLocalSsdConfig_ != com.google.container.v1beta1.EphemeralStorageLocalSsdConfig.getDefaultInstance()) { + getEphemeralStorageLocalSsdConfigBuilder().mergeFrom(value); + } else { + ephemeralStorageLocalSsdConfig_ = value; + } + } else { + ephemeralStorageLocalSsdConfigBuilder_.mergeFrom(value); + } + if (ephemeralStorageLocalSsdConfig_ != null) { + bitField1_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + *
+     * Parameters for the node ephemeral storage using Local SSDs.
+     * If unspecified, ephemeral storage is backed by the boot disk.
+     * This field is functionally equivalent to the ephemeral_storage_config
+     * 
+ * + * .google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; + */ + public Builder clearEphemeralStorageLocalSsdConfig() { + bitField1_ = (bitField1_ & ~0x00000002); + ephemeralStorageLocalSsdConfig_ = null; + if (ephemeralStorageLocalSsdConfigBuilder_ != null) { + ephemeralStorageLocalSsdConfigBuilder_.dispose(); + ephemeralStorageLocalSsdConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Parameters for the node ephemeral storage using Local SSDs.
+     * If unspecified, ephemeral storage is backed by the boot disk.
+     * This field is functionally equivalent to the ephemeral_storage_config
+     * 
+ * + * .google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; + */ + public com.google.container.v1beta1.EphemeralStorageLocalSsdConfig.Builder getEphemeralStorageLocalSsdConfigBuilder() { + bitField1_ |= 0x00000002; + onChanged(); + return getEphemeralStorageLocalSsdConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Parameters for the node ephemeral storage using Local SSDs.
+     * If unspecified, ephemeral storage is backed by the boot disk.
+     * This field is functionally equivalent to the ephemeral_storage_config
+     * 
+ * + * .google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; + */ + public com.google.container.v1beta1.EphemeralStorageLocalSsdConfigOrBuilder getEphemeralStorageLocalSsdConfigOrBuilder() { + if (ephemeralStorageLocalSsdConfigBuilder_ != null) { + return ephemeralStorageLocalSsdConfigBuilder_.getMessageOrBuilder(); + } else { + return ephemeralStorageLocalSsdConfig_ == null ? + com.google.container.v1beta1.EphemeralStorageLocalSsdConfig.getDefaultInstance() : ephemeralStorageLocalSsdConfig_; + } + } + /** + *
+     * Parameters for the node ephemeral storage using Local SSDs.
+     * If unspecified, ephemeral storage is backed by the boot disk.
+     * This field is functionally equivalent to the ephemeral_storage_config
+     * 
+ * + * .google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.EphemeralStorageLocalSsdConfig, com.google.container.v1beta1.EphemeralStorageLocalSsdConfig.Builder, com.google.container.v1beta1.EphemeralStorageLocalSsdConfigOrBuilder> + getEphemeralStorageLocalSsdConfigFieldBuilder() { + if (ephemeralStorageLocalSsdConfigBuilder_ == null) { + ephemeralStorageLocalSsdConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.EphemeralStorageLocalSsdConfig, com.google.container.v1beta1.EphemeralStorageLocalSsdConfig.Builder, com.google.container.v1beta1.EphemeralStorageLocalSsdConfigOrBuilder>( + getEphemeralStorageLocalSsdConfig(), + getParentForChildren(), + isClean()); + ephemeralStorageLocalSsdConfig_ = null; + } + return ephemeralStorageLocalSsdConfigBuilder_; + } + + private com.google.container.v1beta1.SoleTenantConfig soleTenantConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.SoleTenantConfig, com.google.container.v1beta1.SoleTenantConfig.Builder, com.google.container.v1beta1.SoleTenantConfigOrBuilder> soleTenantConfigBuilder_; + /** + *
+     * Parameters for node pools to be backed by shared sole tenant node groups.
+     * 
+ * + * .google.container.v1beta1.SoleTenantConfig sole_tenant_config = 42; + * @return Whether the soleTenantConfig field is set. + */ + public boolean hasSoleTenantConfig() { + return ((bitField1_ & 0x00000004) != 0); + } + /** + *
+     * Parameters for node pools to be backed by shared sole tenant node groups.
+     * 
+ * + * .google.container.v1beta1.SoleTenantConfig sole_tenant_config = 42; + * @return The soleTenantConfig. + */ + public com.google.container.v1beta1.SoleTenantConfig getSoleTenantConfig() { + if (soleTenantConfigBuilder_ == null) { + return soleTenantConfig_ == null ? com.google.container.v1beta1.SoleTenantConfig.getDefaultInstance() : soleTenantConfig_; + } else { + return soleTenantConfigBuilder_.getMessage(); + } + } + /** + *
+     * Parameters for node pools to be backed by shared sole tenant node groups.
+     * 
+ * + * .google.container.v1beta1.SoleTenantConfig sole_tenant_config = 42; + */ + public Builder setSoleTenantConfig(com.google.container.v1beta1.SoleTenantConfig value) { + if (soleTenantConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + soleTenantConfig_ = value; + } else { + soleTenantConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Parameters for node pools to be backed by shared sole tenant node groups.
+     * 
+ * + * .google.container.v1beta1.SoleTenantConfig sole_tenant_config = 42; + */ + public Builder setSoleTenantConfig( + com.google.container.v1beta1.SoleTenantConfig.Builder builderForValue) { + if (soleTenantConfigBuilder_ == null) { + soleTenantConfig_ = builderForValue.build(); + } else { + soleTenantConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Parameters for node pools to be backed by shared sole tenant node groups.
+     * 
+ * + * .google.container.v1beta1.SoleTenantConfig sole_tenant_config = 42; + */ + public Builder mergeSoleTenantConfig(com.google.container.v1beta1.SoleTenantConfig value) { + if (soleTenantConfigBuilder_ == null) { + if (((bitField1_ & 0x00000004) != 0) && + soleTenantConfig_ != null && + soleTenantConfig_ != com.google.container.v1beta1.SoleTenantConfig.getDefaultInstance()) { + getSoleTenantConfigBuilder().mergeFrom(value); + } else { + soleTenantConfig_ = value; + } + } else { + soleTenantConfigBuilder_.mergeFrom(value); + } + if (soleTenantConfig_ != null) { + bitField1_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+     * Parameters for node pools to be backed by shared sole tenant node groups.
+     * 
+ * + * .google.container.v1beta1.SoleTenantConfig sole_tenant_config = 42; + */ + public Builder clearSoleTenantConfig() { + bitField1_ = (bitField1_ & ~0x00000004); + soleTenantConfig_ = null; + if (soleTenantConfigBuilder_ != null) { + soleTenantConfigBuilder_.dispose(); + soleTenantConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Parameters for node pools to be backed by shared sole tenant node groups.
+     * 
+ * + * .google.container.v1beta1.SoleTenantConfig sole_tenant_config = 42; + */ + public com.google.container.v1beta1.SoleTenantConfig.Builder getSoleTenantConfigBuilder() { + bitField1_ |= 0x00000004; + onChanged(); + return getSoleTenantConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Parameters for node pools to be backed by shared sole tenant node groups.
+     * 
+ * + * .google.container.v1beta1.SoleTenantConfig sole_tenant_config = 42; + */ + public com.google.container.v1beta1.SoleTenantConfigOrBuilder getSoleTenantConfigOrBuilder() { + if (soleTenantConfigBuilder_ != null) { + return soleTenantConfigBuilder_.getMessageOrBuilder(); + } else { + return soleTenantConfig_ == null ? + com.google.container.v1beta1.SoleTenantConfig.getDefaultInstance() : soleTenantConfig_; + } + } + /** + *
+     * Parameters for node pools to be backed by shared sole tenant node groups.
+     * 
+ * + * .google.container.v1beta1.SoleTenantConfig sole_tenant_config = 42; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.SoleTenantConfig, com.google.container.v1beta1.SoleTenantConfig.Builder, com.google.container.v1beta1.SoleTenantConfigOrBuilder> + getSoleTenantConfigFieldBuilder() { + if (soleTenantConfigBuilder_ == null) { + soleTenantConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.SoleTenantConfig, com.google.container.v1beta1.SoleTenantConfig.Builder, com.google.container.v1beta1.SoleTenantConfigOrBuilder>( + getSoleTenantConfig(), + getParentForChildren(), + isClean()); + soleTenantConfig_ = null; + } + return soleTenantConfigBuilder_; + } + + private com.google.container.v1beta1.HostMaintenancePolicy hostMaintenancePolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.HostMaintenancePolicy, com.google.container.v1beta1.HostMaintenancePolicy.Builder, com.google.container.v1beta1.HostMaintenancePolicyOrBuilder> hostMaintenancePolicyBuilder_; + /** + *
+     * HostMaintenancePolicy contains the desired maintenance policy for the
+     * Google Compute Engine hosts.
+     * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 44; + * @return Whether the hostMaintenancePolicy field is set. + */ + public boolean hasHostMaintenancePolicy() { + return ((bitField1_ & 0x00000008) != 0); + } + /** + *
+     * HostMaintenancePolicy contains the desired maintenance policy for the
+     * Google Compute Engine hosts.
+     * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 44; + * @return The hostMaintenancePolicy. + */ + public com.google.container.v1beta1.HostMaintenancePolicy getHostMaintenancePolicy() { + if (hostMaintenancePolicyBuilder_ == null) { + return hostMaintenancePolicy_ == null ? com.google.container.v1beta1.HostMaintenancePolicy.getDefaultInstance() : hostMaintenancePolicy_; + } else { + return hostMaintenancePolicyBuilder_.getMessage(); + } + } + /** + *
+     * HostMaintenancePolicy contains the desired maintenance policy for the
+     * Google Compute Engine hosts.
+     * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 44; + */ + public Builder setHostMaintenancePolicy(com.google.container.v1beta1.HostMaintenancePolicy value) { + if (hostMaintenancePolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hostMaintenancePolicy_ = value; + } else { + hostMaintenancePolicyBuilder_.setMessage(value); + } + bitField1_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * HostMaintenancePolicy contains the desired maintenance policy for the
+     * Google Compute Engine hosts.
+     * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 44; + */ + public Builder setHostMaintenancePolicy( + com.google.container.v1beta1.HostMaintenancePolicy.Builder builderForValue) { + if (hostMaintenancePolicyBuilder_ == null) { + hostMaintenancePolicy_ = builderForValue.build(); + } else { + hostMaintenancePolicyBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * HostMaintenancePolicy contains the desired maintenance policy for the
+     * Google Compute Engine hosts.
+     * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 44; + */ + public Builder mergeHostMaintenancePolicy(com.google.container.v1beta1.HostMaintenancePolicy value) { + if (hostMaintenancePolicyBuilder_ == null) { + if (((bitField1_ & 0x00000008) != 0) && + hostMaintenancePolicy_ != null && + hostMaintenancePolicy_ != com.google.container.v1beta1.HostMaintenancePolicy.getDefaultInstance()) { + getHostMaintenancePolicyBuilder().mergeFrom(value); + } else { + hostMaintenancePolicy_ = value; + } + } else { + hostMaintenancePolicyBuilder_.mergeFrom(value); + } + if (hostMaintenancePolicy_ != null) { + bitField1_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + *
+     * HostMaintenancePolicy contains the desired maintenance policy for the
+     * Google Compute Engine hosts.
+     * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 44; + */ + public Builder clearHostMaintenancePolicy() { + bitField1_ = (bitField1_ & ~0x00000008); + hostMaintenancePolicy_ = null; + if (hostMaintenancePolicyBuilder_ != null) { + hostMaintenancePolicyBuilder_.dispose(); + hostMaintenancePolicyBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * HostMaintenancePolicy contains the desired maintenance policy for the
+     * Google Compute Engine hosts.
+     * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 44; + */ + public com.google.container.v1beta1.HostMaintenancePolicy.Builder getHostMaintenancePolicyBuilder() { + bitField1_ |= 0x00000008; + onChanged(); + return getHostMaintenancePolicyFieldBuilder().getBuilder(); + } + /** + *
+     * HostMaintenancePolicy contains the desired maintenance policy for the
+     * Google Compute Engine hosts.
+     * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 44; + */ + public com.google.container.v1beta1.HostMaintenancePolicyOrBuilder getHostMaintenancePolicyOrBuilder() { + if (hostMaintenancePolicyBuilder_ != null) { + return hostMaintenancePolicyBuilder_.getMessageOrBuilder(); + } else { + return hostMaintenancePolicy_ == null ? + com.google.container.v1beta1.HostMaintenancePolicy.getDefaultInstance() : hostMaintenancePolicy_; + } + } + /** + *
+     * HostMaintenancePolicy contains the desired maintenance policy for the
+     * Google Compute Engine hosts.
+     * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 44; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.HostMaintenancePolicy, com.google.container.v1beta1.HostMaintenancePolicy.Builder, com.google.container.v1beta1.HostMaintenancePolicyOrBuilder> + getHostMaintenancePolicyFieldBuilder() { + if (hostMaintenancePolicyBuilder_ == null) { + hostMaintenancePolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.HostMaintenancePolicy, com.google.container.v1beta1.HostMaintenancePolicy.Builder, com.google.container.v1beta1.HostMaintenancePolicyOrBuilder>( + getHostMaintenancePolicy(), + getParentForChildren(), + isClean()); + hostMaintenancePolicy_ = null; + } + return hostMaintenancePolicyBuilder_; + } + + private com.google.container.v1beta1.ResourceManagerTags resourceManagerTags_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ResourceManagerTags, com.google.container.v1beta1.ResourceManagerTags.Builder, com.google.container.v1beta1.ResourceManagerTagsOrBuilder> resourceManagerTagsBuilder_; + /** + *
+     * A map of resource manager tag keys and values to be attached to the nodes.
+     * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 45; + * @return Whether the resourceManagerTags field is set. + */ + public boolean hasResourceManagerTags() { + return ((bitField1_ & 0x00000010) != 0); + } + /** + *
+     * A map of resource manager tag keys and values to be attached to the nodes.
+     * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 45; + * @return The resourceManagerTags. + */ + public com.google.container.v1beta1.ResourceManagerTags getResourceManagerTags() { + if (resourceManagerTagsBuilder_ == null) { + return resourceManagerTags_ == null ? com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance() : resourceManagerTags_; + } else { + return resourceManagerTagsBuilder_.getMessage(); + } + } + /** + *
+     * A map of resource manager tag keys and values to be attached to the nodes.
+     * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 45; + */ + public Builder setResourceManagerTags(com.google.container.v1beta1.ResourceManagerTags value) { + if (resourceManagerTagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resourceManagerTags_ = value; + } else { + resourceManagerTagsBuilder_.setMessage(value); + } + bitField1_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * A map of resource manager tag keys and values to be attached to the nodes.
+     * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 45; + */ + public Builder setResourceManagerTags( + com.google.container.v1beta1.ResourceManagerTags.Builder builderForValue) { + if (resourceManagerTagsBuilder_ == null) { + resourceManagerTags_ = builderForValue.build(); + } else { + resourceManagerTagsBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * A map of resource manager tag keys and values to be attached to the nodes.
+     * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 45; + */ + public Builder mergeResourceManagerTags(com.google.container.v1beta1.ResourceManagerTags value) { + if (resourceManagerTagsBuilder_ == null) { + if (((bitField1_ & 0x00000010) != 0) && + resourceManagerTags_ != null && + resourceManagerTags_ != com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance()) { + getResourceManagerTagsBuilder().mergeFrom(value); + } else { + resourceManagerTags_ = value; + } + } else { + resourceManagerTagsBuilder_.mergeFrom(value); + } + if (resourceManagerTags_ != null) { + bitField1_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + *
+     * A map of resource manager tag keys and values to be attached to the nodes.
+     * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 45; + */ + public Builder clearResourceManagerTags() { + bitField1_ = (bitField1_ & ~0x00000010); + resourceManagerTags_ = null; + if (resourceManagerTagsBuilder_ != null) { + resourceManagerTagsBuilder_.dispose(); + resourceManagerTagsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * A map of resource manager tag keys and values to be attached to the nodes.
+     * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 45; + */ + public com.google.container.v1beta1.ResourceManagerTags.Builder getResourceManagerTagsBuilder() { + bitField1_ |= 0x00000010; + onChanged(); + return getResourceManagerTagsFieldBuilder().getBuilder(); + } + /** + *
+     * A map of resource manager tag keys and values to be attached to the nodes.
+     * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 45; + */ + public com.google.container.v1beta1.ResourceManagerTagsOrBuilder getResourceManagerTagsOrBuilder() { + if (resourceManagerTagsBuilder_ != null) { + return resourceManagerTagsBuilder_.getMessageOrBuilder(); + } else { + return resourceManagerTags_ == null ? + com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance() : resourceManagerTags_; + } + } + /** + *
+     * A map of resource manager tag keys and values to be attached to the nodes.
+     * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 45; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ResourceManagerTags, com.google.container.v1beta1.ResourceManagerTags.Builder, com.google.container.v1beta1.ResourceManagerTagsOrBuilder> + getResourceManagerTagsFieldBuilder() { + if (resourceManagerTagsBuilder_ == null) { + resourceManagerTagsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ResourceManagerTags, com.google.container.v1beta1.ResourceManagerTags.Builder, com.google.container.v1beta1.ResourceManagerTagsOrBuilder>( + getResourceManagerTags(), + getParentForChildren(), + isClean()); + resourceManagerTags_ = null; + } + return resourceManagerTagsBuilder_; + } + + private boolean enableConfidentialStorage_ ; + /** + *
+     * Optional. Enable confidential storage on Hyperdisk.
+     * boot_disk_kms_key is required when enable_confidential_storage is true.
+     * This is only available for private preview.
+     * 
+ * + * bool enable_confidential_storage = 46 [(.google.api.field_behavior) = OPTIONAL]; + * @return The enableConfidentialStorage. + */ + @java.lang.Override + public boolean getEnableConfidentialStorage() { + return enableConfidentialStorage_; + } + /** + *
+     * Optional. Enable confidential storage on Hyperdisk.
+     * boot_disk_kms_key is required when enable_confidential_storage is true.
+     * This is only available for private preview.
+     * 
+ * + * bool enable_confidential_storage = 46 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The enableConfidentialStorage to set. + * @return This builder for chaining. + */ + public Builder setEnableConfidentialStorage(boolean value) { + + enableConfidentialStorage_ = value; + bitField1_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Optional. Enable confidential storage on Hyperdisk.
+     * boot_disk_kms_key is required when enable_confidential_storage is true.
+     * This is only available for private preview.
+     * 
+ * + * bool enable_confidential_storage = 46 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearEnableConfidentialStorage() { + bitField1_ = (bitField1_ & ~0x00000020); + enableConfidentialStorage_ = 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.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigDefaults.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigDefaults.java new file mode 100644 index 000000000000..3f82dda54cb9 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigDefaults.java @@ -0,0 +1,1133 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * Subset of NodeConfig message that has defaults.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.NodeConfigDefaults} + */ +public final class NodeConfigDefaults extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodeConfigDefaults) + NodeConfigDefaultsOrBuilder { +private static final long serialVersionUID = 0L; + // Use NodeConfigDefaults.newBuilder() to construct. + private NodeConfigDefaults(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeConfigDefaults() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NodeConfigDefaults(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeConfigDefaults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeConfigDefaults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodeConfigDefaults.class, com.google.container.v1beta1.NodeConfigDefaults.Builder.class); + } + + private int bitField0_; + public static final int GCFS_CONFIG_FIELD_NUMBER = 1; + private com.google.container.v1beta1.GcfsConfig gcfsConfig_; + /** + *
+   * GCFS (Google Container File System, also known as Riptide) options.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 1; + * @return Whether the gcfsConfig field is set. + */ + @java.lang.Override + public boolean hasGcfsConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * GCFS (Google Container File System, also known as Riptide) options.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 1; + * @return The gcfsConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.GcfsConfig getGcfsConfig() { + return gcfsConfig_ == null ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() : gcfsConfig_; + } + /** + *
+   * GCFS (Google Container File System, also known as Riptide) options.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { + return gcfsConfig_ == null ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() : gcfsConfig_; + } + + public static final int LOGGING_CONFIG_FIELD_NUMBER = 3; + private com.google.container.v1beta1.NodePoolLoggingConfig loggingConfig_; + /** + *
+   * Logging configuration for node pools.
+   * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 3; + * @return Whether the loggingConfig field is set. + */ + @java.lang.Override + public boolean hasLoggingConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * Logging configuration for node pools.
+   * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 3; + * @return The loggingConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.NodePoolLoggingConfig getLoggingConfig() { + return loggingConfig_ == null ? com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance() : loggingConfig_; + } + /** + *
+   * Logging configuration for node pools.
+   * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 3; + */ + @java.lang.Override + public com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder getLoggingConfigOrBuilder() { + return loggingConfig_ == null ? com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance() : loggingConfig_; + } + + public static final int HOST_MAINTENANCE_POLICY_FIELD_NUMBER = 5; + private com.google.container.v1beta1.HostMaintenancePolicy hostMaintenancePolicy_; + /** + *
+   * HostMaintenancePolicy contains the desired maintenance policy for the
+   * Google Compute Engine hosts.
+   * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 5; + * @return Whether the hostMaintenancePolicy field is set. + */ + @java.lang.Override + public boolean hasHostMaintenancePolicy() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+   * HostMaintenancePolicy contains the desired maintenance policy for the
+   * Google Compute Engine hosts.
+   * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 5; + * @return The hostMaintenancePolicy. + */ + @java.lang.Override + public com.google.container.v1beta1.HostMaintenancePolicy getHostMaintenancePolicy() { + return hostMaintenancePolicy_ == null ? com.google.container.v1beta1.HostMaintenancePolicy.getDefaultInstance() : hostMaintenancePolicy_; + } + /** + *
+   * HostMaintenancePolicy contains the desired maintenance policy for the
+   * Google Compute Engine hosts.
+   * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 5; + */ + @java.lang.Override + public com.google.container.v1beta1.HostMaintenancePolicyOrBuilder getHostMaintenancePolicyOrBuilder() { + return hostMaintenancePolicy_ == null ? com.google.container.v1beta1.HostMaintenancePolicy.getDefaultInstance() : hostMaintenancePolicy_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getGcfsConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getLoggingConfig()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getHostMaintenancePolicy()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getGcfsConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getLoggingConfig()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getHostMaintenancePolicy()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.NodeConfigDefaults)) { + return super.equals(obj); + } + com.google.container.v1beta1.NodeConfigDefaults other = (com.google.container.v1beta1.NodeConfigDefaults) obj; + + if (hasGcfsConfig() != other.hasGcfsConfig()) return false; + if (hasGcfsConfig()) { + if (!getGcfsConfig() + .equals(other.getGcfsConfig())) return false; + } + if (hasLoggingConfig() != other.hasLoggingConfig()) return false; + if (hasLoggingConfig()) { + if (!getLoggingConfig() + .equals(other.getLoggingConfig())) return false; + } + if (hasHostMaintenancePolicy() != other.hasHostMaintenancePolicy()) return false; + if (hasHostMaintenancePolicy()) { + if (!getHostMaintenancePolicy() + .equals(other.getHostMaintenancePolicy())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasGcfsConfig()) { + hash = (37 * hash) + GCFS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGcfsConfig().hashCode(); + } + if (hasLoggingConfig()) { + hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getLoggingConfig().hashCode(); + } + if (hasHostMaintenancePolicy()) { + hash = (37 * hash) + HOST_MAINTENANCE_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getHostMaintenancePolicy().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.NodeConfigDefaults parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodeConfigDefaults parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NodeConfigDefaults parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodeConfigDefaults parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NodeConfigDefaults parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodeConfigDefaults parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NodeConfigDefaults parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NodeConfigDefaults parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.NodeConfigDefaults parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NodeConfigDefaults parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.NodeConfigDefaults parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NodeConfigDefaults parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.NodeConfigDefaults prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Subset of NodeConfig message that has defaults.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.NodeConfigDefaults} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NodeConfigDefaults) + com.google.container.v1beta1.NodeConfigDefaultsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeConfigDefaults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeConfigDefaults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodeConfigDefaults.class, com.google.container.v1beta1.NodeConfigDefaults.Builder.class); + } + + // Construct using com.google.container.v1beta1.NodeConfigDefaults.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getGcfsConfigFieldBuilder(); + getLoggingConfigFieldBuilder(); + getHostMaintenancePolicyFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + gcfsConfig_ = null; + if (gcfsConfigBuilder_ != null) { + gcfsConfigBuilder_.dispose(); + gcfsConfigBuilder_ = null; + } + loggingConfig_ = null; + if (loggingConfigBuilder_ != null) { + loggingConfigBuilder_.dispose(); + loggingConfigBuilder_ = null; + } + hostMaintenancePolicy_ = null; + if (hostMaintenancePolicyBuilder_ != null) { + hostMaintenancePolicyBuilder_.dispose(); + hostMaintenancePolicyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeConfigDefaults_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NodeConfigDefaults getDefaultInstanceForType() { + return com.google.container.v1beta1.NodeConfigDefaults.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NodeConfigDefaults build() { + com.google.container.v1beta1.NodeConfigDefaults result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NodeConfigDefaults buildPartial() { + com.google.container.v1beta1.NodeConfigDefaults result = new com.google.container.v1beta1.NodeConfigDefaults(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.NodeConfigDefaults result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.gcfsConfig_ = gcfsConfigBuilder_ == null + ? gcfsConfig_ + : gcfsConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.loggingConfig_ = loggingConfigBuilder_ == null + ? loggingConfig_ + : loggingConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.hostMaintenancePolicy_ = hostMaintenancePolicyBuilder_ == null + ? hostMaintenancePolicy_ + : hostMaintenancePolicyBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @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.NodeConfigDefaults) { + return mergeFrom((com.google.container.v1beta1.NodeConfigDefaults)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NodeConfigDefaults other) { + if (other == com.google.container.v1beta1.NodeConfigDefaults.getDefaultInstance()) return this; + if (other.hasGcfsConfig()) { + mergeGcfsConfig(other.getGcfsConfig()); + } + if (other.hasLoggingConfig()) { + mergeLoggingConfig(other.getLoggingConfig()); + } + if (other.hasHostMaintenancePolicy()) { + mergeHostMaintenancePolicy(other.getHostMaintenancePolicy()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getGcfsConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: { + input.readMessage( + getLoggingConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 42: { + input.readMessage( + getHostMaintenancePolicyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.container.v1beta1.GcfsConfig gcfsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcfsConfig, com.google.container.v1beta1.GcfsConfig.Builder, com.google.container.v1beta1.GcfsConfigOrBuilder> gcfsConfigBuilder_; + /** + *
+     * GCFS (Google Container File System, also known as Riptide) options.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 1; + * @return Whether the gcfsConfig field is set. + */ + public boolean hasGcfsConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * GCFS (Google Container File System, also known as Riptide) options.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 1; + * @return The gcfsConfig. + */ + public com.google.container.v1beta1.GcfsConfig getGcfsConfig() { + if (gcfsConfigBuilder_ == null) { + return gcfsConfig_ == null ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() : gcfsConfig_; + } else { + return gcfsConfigBuilder_.getMessage(); + } + } + /** + *
+     * GCFS (Google Container File System, also known as Riptide) options.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 1; + */ + public Builder setGcfsConfig(com.google.container.v1beta1.GcfsConfig value) { + if (gcfsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gcfsConfig_ = value; + } else { + gcfsConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * GCFS (Google Container File System, also known as Riptide) options.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 1; + */ + public Builder setGcfsConfig( + com.google.container.v1beta1.GcfsConfig.Builder builderForValue) { + if (gcfsConfigBuilder_ == null) { + gcfsConfig_ = builderForValue.build(); + } else { + gcfsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * GCFS (Google Container File System, also known as Riptide) options.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 1; + */ + public Builder mergeGcfsConfig(com.google.container.v1beta1.GcfsConfig value) { + if (gcfsConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + gcfsConfig_ != null && + gcfsConfig_ != com.google.container.v1beta1.GcfsConfig.getDefaultInstance()) { + getGcfsConfigBuilder().mergeFrom(value); + } else { + gcfsConfig_ = value; + } + } else { + gcfsConfigBuilder_.mergeFrom(value); + } + if (gcfsConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+     * GCFS (Google Container File System, also known as Riptide) options.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 1; + */ + public Builder clearGcfsConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + gcfsConfig_ = null; + if (gcfsConfigBuilder_ != null) { + gcfsConfigBuilder_.dispose(); + gcfsConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * GCFS (Google Container File System, also known as Riptide) options.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 1; + */ + public com.google.container.v1beta1.GcfsConfig.Builder getGcfsConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getGcfsConfigFieldBuilder().getBuilder(); + } + /** + *
+     * GCFS (Google Container File System, also known as Riptide) options.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 1; + */ + public com.google.container.v1beta1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { + if (gcfsConfigBuilder_ != null) { + return gcfsConfigBuilder_.getMessageOrBuilder(); + } else { + return gcfsConfig_ == null ? + com.google.container.v1beta1.GcfsConfig.getDefaultInstance() : gcfsConfig_; + } + } + /** + *
+     * GCFS (Google Container File System, also known as Riptide) options.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcfsConfig, com.google.container.v1beta1.GcfsConfig.Builder, com.google.container.v1beta1.GcfsConfigOrBuilder> + getGcfsConfigFieldBuilder() { + if (gcfsConfigBuilder_ == null) { + gcfsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcfsConfig, com.google.container.v1beta1.GcfsConfig.Builder, com.google.container.v1beta1.GcfsConfigOrBuilder>( + getGcfsConfig(), + getParentForChildren(), + isClean()); + gcfsConfig_ = null; + } + return gcfsConfigBuilder_; + } + + private com.google.container.v1beta1.NodePoolLoggingConfig loggingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolLoggingConfig, com.google.container.v1beta1.NodePoolLoggingConfig.Builder, com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder> loggingConfigBuilder_; + /** + *
+     * Logging configuration for node pools.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 3; + * @return Whether the loggingConfig field is set. + */ + public boolean hasLoggingConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Logging configuration for node pools.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 3; + * @return The loggingConfig. + */ + public com.google.container.v1beta1.NodePoolLoggingConfig getLoggingConfig() { + if (loggingConfigBuilder_ == null) { + return loggingConfig_ == null ? com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance() : loggingConfig_; + } else { + return loggingConfigBuilder_.getMessage(); + } + } + /** + *
+     * Logging configuration for node pools.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 3; + */ + public Builder setLoggingConfig(com.google.container.v1beta1.NodePoolLoggingConfig value) { + if (loggingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + loggingConfig_ = value; + } else { + loggingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Logging configuration for node pools.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 3; + */ + public Builder setLoggingConfig( + com.google.container.v1beta1.NodePoolLoggingConfig.Builder builderForValue) { + if (loggingConfigBuilder_ == null) { + loggingConfig_ = builderForValue.build(); + } else { + loggingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Logging configuration for node pools.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 3; + */ + public Builder mergeLoggingConfig(com.google.container.v1beta1.NodePoolLoggingConfig value) { + if (loggingConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + loggingConfig_ != null && + loggingConfig_ != com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance()) { + getLoggingConfigBuilder().mergeFrom(value); + } else { + loggingConfig_ = value; + } + } else { + loggingConfigBuilder_.mergeFrom(value); + } + if (loggingConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + *
+     * Logging configuration for node pools.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 3; + */ + public Builder clearLoggingConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + loggingConfig_ = null; + if (loggingConfigBuilder_ != null) { + loggingConfigBuilder_.dispose(); + loggingConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Logging configuration for node pools.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 3; + */ + public com.google.container.v1beta1.NodePoolLoggingConfig.Builder getLoggingConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getLoggingConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Logging configuration for node pools.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 3; + */ + public com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder getLoggingConfigOrBuilder() { + if (loggingConfigBuilder_ != null) { + return loggingConfigBuilder_.getMessageOrBuilder(); + } else { + return loggingConfig_ == null ? + com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance() : loggingConfig_; + } + } + /** + *
+     * Logging configuration for node pools.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolLoggingConfig, com.google.container.v1beta1.NodePoolLoggingConfig.Builder, com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder> + getLoggingConfigFieldBuilder() { + if (loggingConfigBuilder_ == null) { + loggingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolLoggingConfig, com.google.container.v1beta1.NodePoolLoggingConfig.Builder, com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder>( + getLoggingConfig(), + getParentForChildren(), + isClean()); + loggingConfig_ = null; + } + return loggingConfigBuilder_; + } + + private com.google.container.v1beta1.HostMaintenancePolicy hostMaintenancePolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.HostMaintenancePolicy, com.google.container.v1beta1.HostMaintenancePolicy.Builder, com.google.container.v1beta1.HostMaintenancePolicyOrBuilder> hostMaintenancePolicyBuilder_; + /** + *
+     * HostMaintenancePolicy contains the desired maintenance policy for the
+     * Google Compute Engine hosts.
+     * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 5; + * @return Whether the hostMaintenancePolicy field is set. + */ + public boolean hasHostMaintenancePolicy() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * HostMaintenancePolicy contains the desired maintenance policy for the
+     * Google Compute Engine hosts.
+     * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 5; + * @return The hostMaintenancePolicy. + */ + public com.google.container.v1beta1.HostMaintenancePolicy getHostMaintenancePolicy() { + if (hostMaintenancePolicyBuilder_ == null) { + return hostMaintenancePolicy_ == null ? com.google.container.v1beta1.HostMaintenancePolicy.getDefaultInstance() : hostMaintenancePolicy_; + } else { + return hostMaintenancePolicyBuilder_.getMessage(); + } + } + /** + *
+     * HostMaintenancePolicy contains the desired maintenance policy for the
+     * Google Compute Engine hosts.
+     * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 5; + */ + public Builder setHostMaintenancePolicy(com.google.container.v1beta1.HostMaintenancePolicy value) { + if (hostMaintenancePolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hostMaintenancePolicy_ = value; + } else { + hostMaintenancePolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * HostMaintenancePolicy contains the desired maintenance policy for the
+     * Google Compute Engine hosts.
+     * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 5; + */ + public Builder setHostMaintenancePolicy( + com.google.container.v1beta1.HostMaintenancePolicy.Builder builderForValue) { + if (hostMaintenancePolicyBuilder_ == null) { + hostMaintenancePolicy_ = builderForValue.build(); + } else { + hostMaintenancePolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * HostMaintenancePolicy contains the desired maintenance policy for the
+     * Google Compute Engine hosts.
+     * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 5; + */ + public Builder mergeHostMaintenancePolicy(com.google.container.v1beta1.HostMaintenancePolicy value) { + if (hostMaintenancePolicyBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + hostMaintenancePolicy_ != null && + hostMaintenancePolicy_ != com.google.container.v1beta1.HostMaintenancePolicy.getDefaultInstance()) { + getHostMaintenancePolicyBuilder().mergeFrom(value); + } else { + hostMaintenancePolicy_ = value; + } + } else { + hostMaintenancePolicyBuilder_.mergeFrom(value); + } + if (hostMaintenancePolicy_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+     * HostMaintenancePolicy contains the desired maintenance policy for the
+     * Google Compute Engine hosts.
+     * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 5; + */ + public Builder clearHostMaintenancePolicy() { + bitField0_ = (bitField0_ & ~0x00000004); + hostMaintenancePolicy_ = null; + if (hostMaintenancePolicyBuilder_ != null) { + hostMaintenancePolicyBuilder_.dispose(); + hostMaintenancePolicyBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * HostMaintenancePolicy contains the desired maintenance policy for the
+     * Google Compute Engine hosts.
+     * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 5; + */ + public com.google.container.v1beta1.HostMaintenancePolicy.Builder getHostMaintenancePolicyBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getHostMaintenancePolicyFieldBuilder().getBuilder(); + } + /** + *
+     * HostMaintenancePolicy contains the desired maintenance policy for the
+     * Google Compute Engine hosts.
+     * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 5; + */ + public com.google.container.v1beta1.HostMaintenancePolicyOrBuilder getHostMaintenancePolicyOrBuilder() { + if (hostMaintenancePolicyBuilder_ != null) { + return hostMaintenancePolicyBuilder_.getMessageOrBuilder(); + } else { + return hostMaintenancePolicy_ == null ? + com.google.container.v1beta1.HostMaintenancePolicy.getDefaultInstance() : hostMaintenancePolicy_; + } + } + /** + *
+     * HostMaintenancePolicy contains the desired maintenance policy for the
+     * Google Compute Engine hosts.
+     * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.HostMaintenancePolicy, com.google.container.v1beta1.HostMaintenancePolicy.Builder, com.google.container.v1beta1.HostMaintenancePolicyOrBuilder> + getHostMaintenancePolicyFieldBuilder() { + if (hostMaintenancePolicyBuilder_ == null) { + hostMaintenancePolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.HostMaintenancePolicy, com.google.container.v1beta1.HostMaintenancePolicy.Builder, com.google.container.v1beta1.HostMaintenancePolicyOrBuilder>( + getHostMaintenancePolicy(), + getParentForChildren(), + isClean()); + hostMaintenancePolicy_ = null; + } + return hostMaintenancePolicyBuilder_; + } + @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.NodeConfigDefaults) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodeConfigDefaults) + private static final com.google.container.v1beta1.NodeConfigDefaults DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NodeConfigDefaults(); + } + + public static com.google.container.v1beta1.NodeConfigDefaults getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeConfigDefaults parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.NodeConfigDefaults getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigDefaultsOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigDefaultsOrBuilder.java new file mode 100644 index 000000000000..1ce447070d0b --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigDefaultsOrBuilder.java @@ -0,0 +1,94 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface NodeConfigDefaultsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodeConfigDefaults) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * GCFS (Google Container File System, also known as Riptide) options.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 1; + * @return Whether the gcfsConfig field is set. + */ + boolean hasGcfsConfig(); + /** + *
+   * GCFS (Google Container File System, also known as Riptide) options.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 1; + * @return The gcfsConfig. + */ + com.google.container.v1beta1.GcfsConfig getGcfsConfig(); + /** + *
+   * GCFS (Google Container File System, also known as Riptide) options.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 1; + */ + com.google.container.v1beta1.GcfsConfigOrBuilder getGcfsConfigOrBuilder(); + + /** + *
+   * Logging configuration for node pools.
+   * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 3; + * @return Whether the loggingConfig field is set. + */ + boolean hasLoggingConfig(); + /** + *
+   * Logging configuration for node pools.
+   * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 3; + * @return The loggingConfig. + */ + com.google.container.v1beta1.NodePoolLoggingConfig getLoggingConfig(); + /** + *
+   * Logging configuration for node pools.
+   * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 3; + */ + com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder getLoggingConfigOrBuilder(); + + /** + *
+   * HostMaintenancePolicy contains the desired maintenance policy for the
+   * Google Compute Engine hosts.
+   * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 5; + * @return Whether the hostMaintenancePolicy field is set. + */ + boolean hasHostMaintenancePolicy(); + /** + *
+   * HostMaintenancePolicy contains the desired maintenance policy for the
+   * Google Compute Engine hosts.
+   * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 5; + * @return The hostMaintenancePolicy. + */ + com.google.container.v1beta1.HostMaintenancePolicy getHostMaintenancePolicy(); + /** + *
+   * HostMaintenancePolicy contains the desired maintenance policy for the
+   * Google Compute Engine hosts.
+   * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 5; + */ + com.google.container.v1beta1.HostMaintenancePolicyOrBuilder getHostMaintenancePolicyOrBuilder(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigOrBuilder.java new file mode 100644 index 000000000000..2b7e51ffa78a --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeConfigOrBuilder.java @@ -0,0 +1,1424 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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"
+   *
+   * 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"
+   *
+   * 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"
+   *
+   * 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"
+   *
+   * 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; + */ + /* nullable */ +java.lang.String getMetadataOrDefault( + java.lang.String key, + /* nullable */ +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"
+   *
+   * 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. Please see
+   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+   * available image types.
+   * 
+ * + * 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. Please see
+   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+   * available image types.
+   * 
+ * + * 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; + */ + /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +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
+   * information 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(); + + /** + *
+   * GCFS (Google Container File System) configs.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + * @return Whether the gcfsConfig field is set. + */ + boolean hasGcfsConfig(); + /** + *
+   * GCFS (Google Container File System) configs.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + * @return The gcfsConfig. + */ + com.google.container.v1beta1.GcfsConfig getGcfsConfig(); + /** + *
+   * GCFS (Google Container File System) configs.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 25; + */ + com.google.container.v1beta1.GcfsConfigOrBuilder getGcfsConfigOrBuilder(); + + /** + *
+   * Advanced features for the Compute Engine VM.
+   * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + * @return Whether the advancedMachineFeatures field is set. + */ + boolean hasAdvancedMachineFeatures(); + /** + *
+   * Advanced features for the Compute Engine VM.
+   * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + * @return The advancedMachineFeatures. + */ + com.google.container.v1beta1.AdvancedMachineFeatures getAdvancedMachineFeatures(); + /** + *
+   * Advanced features for the Compute Engine VM.
+   * 
+ * + * .google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26; + */ + com.google.container.v1beta1.AdvancedMachineFeaturesOrBuilder getAdvancedMachineFeaturesOrBuilder(); + + /** + *
+   * Enable or disable gvnic on the node pool.
+   * 
+ * + * .google.container.v1beta1.VirtualNIC gvnic = 29; + * @return Whether the gvnic field is set. + */ + boolean hasGvnic(); + /** + *
+   * Enable or disable gvnic on the node pool.
+   * 
+ * + * .google.container.v1beta1.VirtualNIC gvnic = 29; + * @return The gvnic. + */ + com.google.container.v1beta1.VirtualNIC getGvnic(); + /** + *
+   * Enable or disable gvnic on the node pool.
+   * 
+ * + * .google.container.v1beta1.VirtualNIC gvnic = 29; + */ + com.google.container.v1beta1.VirtualNICOrBuilder getGvnicOrBuilder(); + + /** + *
+   * Spot flag for enabling Spot VM, which is a rebrand of
+   * the existing preemptible flag.
+   * 
+ * + * bool spot = 32; + * @return The spot. + */ + boolean getSpot(); + + /** + *
+   * Confidential nodes config.
+   * All the nodes in the node pool will be Confidential VM once enabled.
+   * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 35; + * @return Whether the confidentialNodes field is set. + */ + boolean hasConfidentialNodes(); + /** + *
+   * Confidential nodes config.
+   * All the nodes in the node pool will be Confidential VM once enabled.
+   * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 35; + * @return The confidentialNodes. + */ + com.google.container.v1beta1.ConfidentialNodes getConfidentialNodes(); + /** + *
+   * Confidential nodes config.
+   * All the nodes in the node pool will be Confidential VM once enabled.
+   * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 35; + */ + com.google.container.v1beta1.ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder(); + + /** + *
+   * Enable or disable NCCL fast socket for the node pool.
+   * 
+ * + * optional .google.container.v1beta1.FastSocket fast_socket = 36; + * @return Whether the fastSocket field is set. + */ + boolean hasFastSocket(); + /** + *
+   * Enable or disable NCCL fast socket for the node pool.
+   * 
+ * + * optional .google.container.v1beta1.FastSocket fast_socket = 36; + * @return The fastSocket. + */ + com.google.container.v1beta1.FastSocket getFastSocket(); + /** + *
+   * Enable or disable NCCL fast socket for the node pool.
+   * 
+ * + * optional .google.container.v1beta1.FastSocket fast_socket = 36; + */ + com.google.container.v1beta1.FastSocketOrBuilder getFastSocketOrBuilder(); + + /** + *
+   * The resource labels for the node pool to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 37; + */ + int getResourceLabelsCount(); + /** + *
+   * The resource labels for the node pool to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 37; + */ + boolean containsResourceLabels( + java.lang.String key); + /** + * Use {@link #getResourceLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getResourceLabels(); + /** + *
+   * The resource labels for the node pool to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 37; + */ + java.util.Map + getResourceLabelsMap(); + /** + *
+   * The resource labels for the node pool to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 37; + */ + /* nullable */ +java.lang.String getResourceLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+   * The resource labels for the node pool to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * map<string, string> resource_labels = 37; + */ + java.lang.String getResourceLabelsOrThrow( + java.lang.String key); + + /** + *
+   * Logging configuration.
+   * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 38; + * @return Whether the loggingConfig field is set. + */ + boolean hasLoggingConfig(); + /** + *
+   * Logging configuration.
+   * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 38; + * @return The loggingConfig. + */ + com.google.container.v1beta1.NodePoolLoggingConfig getLoggingConfig(); + /** + *
+   * Logging configuration.
+   * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 38; + */ + com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder getLoggingConfigOrBuilder(); + + /** + *
+   * Parameters that can be configured on Windows nodes.
+   * 
+ * + * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 39; + * @return Whether the windowsNodeConfig field is set. + */ + boolean hasWindowsNodeConfig(); + /** + *
+   * Parameters that can be configured on Windows nodes.
+   * 
+ * + * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 39; + * @return The windowsNodeConfig. + */ + com.google.container.v1beta1.WindowsNodeConfig getWindowsNodeConfig(); + /** + *
+   * Parameters that can be configured on Windows nodes.
+   * 
+ * + * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 39; + */ + com.google.container.v1beta1.WindowsNodeConfigOrBuilder getWindowsNodeConfigOrBuilder(); + + /** + *
+   * Parameters for using raw-block Local NVMe SSDs.
+   * 
+ * + * .google.container.v1beta1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; + * @return Whether the localNvmeSsdBlockConfig field is set. + */ + boolean hasLocalNvmeSsdBlockConfig(); + /** + *
+   * Parameters for using raw-block Local NVMe SSDs.
+   * 
+ * + * .google.container.v1beta1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; + * @return The localNvmeSsdBlockConfig. + */ + com.google.container.v1beta1.LocalNvmeSsdBlockConfig getLocalNvmeSsdBlockConfig(); + /** + *
+   * Parameters for using raw-block Local NVMe SSDs.
+   * 
+ * + * .google.container.v1beta1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; + */ + com.google.container.v1beta1.LocalNvmeSsdBlockConfigOrBuilder getLocalNvmeSsdBlockConfigOrBuilder(); + + /** + *
+   * Parameters for the node ephemeral storage using Local SSDs.
+   * If unspecified, ephemeral storage is backed by the boot disk.
+   * This field is functionally equivalent to the ephemeral_storage_config
+   * 
+ * + * .google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; + * @return Whether the ephemeralStorageLocalSsdConfig field is set. + */ + boolean hasEphemeralStorageLocalSsdConfig(); + /** + *
+   * Parameters for the node ephemeral storage using Local SSDs.
+   * If unspecified, ephemeral storage is backed by the boot disk.
+   * This field is functionally equivalent to the ephemeral_storage_config
+   * 
+ * + * .google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; + * @return The ephemeralStorageLocalSsdConfig. + */ + com.google.container.v1beta1.EphemeralStorageLocalSsdConfig getEphemeralStorageLocalSsdConfig(); + /** + *
+   * Parameters for the node ephemeral storage using Local SSDs.
+   * If unspecified, ephemeral storage is backed by the boot disk.
+   * This field is functionally equivalent to the ephemeral_storage_config
+   * 
+ * + * .google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; + */ + com.google.container.v1beta1.EphemeralStorageLocalSsdConfigOrBuilder getEphemeralStorageLocalSsdConfigOrBuilder(); + + /** + *
+   * Parameters for node pools to be backed by shared sole tenant node groups.
+   * 
+ * + * .google.container.v1beta1.SoleTenantConfig sole_tenant_config = 42; + * @return Whether the soleTenantConfig field is set. + */ + boolean hasSoleTenantConfig(); + /** + *
+   * Parameters for node pools to be backed by shared sole tenant node groups.
+   * 
+ * + * .google.container.v1beta1.SoleTenantConfig sole_tenant_config = 42; + * @return The soleTenantConfig. + */ + com.google.container.v1beta1.SoleTenantConfig getSoleTenantConfig(); + /** + *
+   * Parameters for node pools to be backed by shared sole tenant node groups.
+   * 
+ * + * .google.container.v1beta1.SoleTenantConfig sole_tenant_config = 42; + */ + com.google.container.v1beta1.SoleTenantConfigOrBuilder getSoleTenantConfigOrBuilder(); + + /** + *
+   * HostMaintenancePolicy contains the desired maintenance policy for the
+   * Google Compute Engine hosts.
+   * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 44; + * @return Whether the hostMaintenancePolicy field is set. + */ + boolean hasHostMaintenancePolicy(); + /** + *
+   * HostMaintenancePolicy contains the desired maintenance policy for the
+   * Google Compute Engine hosts.
+   * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 44; + * @return The hostMaintenancePolicy. + */ + com.google.container.v1beta1.HostMaintenancePolicy getHostMaintenancePolicy(); + /** + *
+   * HostMaintenancePolicy contains the desired maintenance policy for the
+   * Google Compute Engine hosts.
+   * 
+ * + * .google.container.v1beta1.HostMaintenancePolicy host_maintenance_policy = 44; + */ + com.google.container.v1beta1.HostMaintenancePolicyOrBuilder getHostMaintenancePolicyOrBuilder(); + + /** + *
+   * A map of resource manager tag keys and values to be attached to the nodes.
+   * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 45; + * @return Whether the resourceManagerTags field is set. + */ + boolean hasResourceManagerTags(); + /** + *
+   * A map of resource manager tag keys and values to be attached to the nodes.
+   * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 45; + * @return The resourceManagerTags. + */ + com.google.container.v1beta1.ResourceManagerTags getResourceManagerTags(); + /** + *
+   * A map of resource manager tag keys and values to be attached to the nodes.
+   * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 45; + */ + com.google.container.v1beta1.ResourceManagerTagsOrBuilder getResourceManagerTagsOrBuilder(); + + /** + *
+   * Optional. Enable confidential storage on Hyperdisk.
+   * boot_disk_kms_key is required when enable_confidential_storage is true.
+   * This is only available for private preview.
+   * 
+ * + * bool enable_confidential_storage = 46 [(.google.api.field_behavior) = OPTIONAL]; + * @return The enableConfidentialStorage. + */ + boolean getEnableConfidentialStorage(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeKubeletConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeKubeletConfig.java new file mode 100644 index 000000000000..b8a8c0992ea1 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeKubeletConfig.java @@ -0,0 +1,1406 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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); + } + + private int bitField0_; + public static final int CPU_MANAGER_POLICY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + 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 ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * 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 cpuCfsQuota_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : cpuCfsQuota_; + } + + public static final int CPU_CFS_QUOTA_PERIOD_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + 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; + } + } + + public static final int POD_PIDS_LIMIT_FIELD_NUMBER = 4; + private long podPidsLimit_ = 0L; + /** + *
+   * Set the Pod PID limits. See
+   * https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits
+   *
+   * Controls the maximum number of processes allowed to run in a pod. The value
+   * must be greater than or equal to 1024 and less than 4194304.
+   * 
+ * + * int64 pod_pids_limit = 4; + * @return The podPidsLimit. + */ + @java.lang.Override + public long getPodPidsLimit() { + return podPidsLimit_; + } + + public static final int INSECURE_KUBELET_READONLY_PORT_ENABLED_FIELD_NUMBER = 7; + private boolean insecureKubeletReadonlyPortEnabled_ = false; + /** + *
+   * Enable or disable Kubelet read only port.
+   * 
+ * + * optional bool insecure_kubelet_readonly_port_enabled = 7; + * @return Whether the insecureKubeletReadonlyPortEnabled field is set. + */ + @java.lang.Override + public boolean hasInsecureKubeletReadonlyPortEnabled() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * Enable or disable Kubelet read only port.
+   * 
+ * + * optional bool insecure_kubelet_readonly_port_enabled = 7; + * @return The insecureKubeletReadonlyPortEnabled. + */ + @java.lang.Override + public boolean getInsecureKubeletReadonlyPortEnabled() { + return insecureKubeletReadonlyPortEnabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpuManagerPolicy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cpuManagerPolicy_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCpuCfsQuota()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpuCfsQuotaPeriod_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cpuCfsQuotaPeriod_); + } + if (podPidsLimit_ != 0L) { + output.writeInt64(4, podPidsLimit_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(7, insecureKubeletReadonlyPortEnabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpuManagerPolicy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cpuManagerPolicy_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCpuCfsQuota()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpuCfsQuotaPeriod_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, cpuCfsQuotaPeriod_); + } + if (podPidsLimit_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, podPidsLimit_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, insecureKubeletReadonlyPortEnabled_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (getPodPidsLimit() + != other.getPodPidsLimit()) return false; + if (hasInsecureKubeletReadonlyPortEnabled() != other.hasInsecureKubeletReadonlyPortEnabled()) return false; + if (hasInsecureKubeletReadonlyPortEnabled()) { + if (getInsecureKubeletReadonlyPortEnabled() + != other.getInsecureKubeletReadonlyPortEnabled()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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 = (37 * hash) + POD_PIDS_LIMIT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPodPidsLimit()); + if (hasInsecureKubeletReadonlyPortEnabled()) { + hash = (37 * hash) + INSECURE_KUBELET_READONLY_PORT_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInsecureKubeletReadonlyPortEnabled()); + } + hash = (29 * hash) + getUnknownFields().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) { + getCpuCfsQuotaFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + cpuManagerPolicy_ = ""; + cpuCfsQuota_ = null; + if (cpuCfsQuotaBuilder_ != null) { + cpuCfsQuotaBuilder_.dispose(); + cpuCfsQuotaBuilder_ = null; + } + cpuCfsQuotaPeriod_ = ""; + podPidsLimit_ = 0L; + insecureKubeletReadonlyPortEnabled_ = false; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.NodeKubeletConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.cpuManagerPolicy_ = cpuManagerPolicy_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.cpuCfsQuota_ = cpuCfsQuotaBuilder_ == null + ? cpuCfsQuota_ + : cpuCfsQuotaBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.cpuCfsQuotaPeriod_ = cpuCfsQuotaPeriod_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.podPidsLimit_ = podPidsLimit_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.insecureKubeletReadonlyPortEnabled_ = insecureKubeletReadonlyPortEnabled_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCpuCfsQuota()) { + mergeCpuCfsQuota(other.getCpuCfsQuota()); + } + if (!other.getCpuCfsQuotaPeriod().isEmpty()) { + cpuCfsQuotaPeriod_ = other.cpuCfsQuotaPeriod_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getPodPidsLimit() != 0L) { + setPodPidsLimit(other.getPodPidsLimit()); + } + if (other.hasInsecureKubeletReadonlyPortEnabled()) { + setInsecureKubeletReadonlyPortEnabled(other.getInsecureKubeletReadonlyPortEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + cpuManagerPolicy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getCpuCfsQuotaFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + cpuCfsQuotaPeriod_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + podPidsLimit_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 56: { + insecureKubeletReadonlyPortEnabled_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 56 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + 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 ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * 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; + } else { + cpuCfsQuotaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + 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(); + } else { + cpuCfsQuotaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + 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 (((bitField0_ & 0x00000002) != 0) && + cpuCfsQuota_ != null && + cpuCfsQuota_ != com.google.protobuf.BoolValue.getDefaultInstance()) { + getCpuCfsQuotaBuilder().mergeFrom(value); + } else { + cpuCfsQuota_ = value; + } + } else { + cpuCfsQuotaBuilder_.mergeFrom(value); + } + if (cpuCfsQuota_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + 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() { + bitField0_ = (bitField0_ & ~0x00000002); + cpuCfsQuota_ = null; + if (cpuCfsQuotaBuilder_ != null) { + cpuCfsQuotaBuilder_.dispose(); + cpuCfsQuotaBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000002; + 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; + bitField0_ |= 0x00000004; + 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(); + bitField0_ = (bitField0_ & ~0x00000004); + 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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private long podPidsLimit_ ; + /** + *
+     * Set the Pod PID limits. See
+     * https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits
+     *
+     * Controls the maximum number of processes allowed to run in a pod. The value
+     * must be greater than or equal to 1024 and less than 4194304.
+     * 
+ * + * int64 pod_pids_limit = 4; + * @return The podPidsLimit. + */ + @java.lang.Override + public long getPodPidsLimit() { + return podPidsLimit_; + } + /** + *
+     * Set the Pod PID limits. See
+     * https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits
+     *
+     * Controls the maximum number of processes allowed to run in a pod. The value
+     * must be greater than or equal to 1024 and less than 4194304.
+     * 
+ * + * int64 pod_pids_limit = 4; + * @param value The podPidsLimit to set. + * @return This builder for chaining. + */ + public Builder setPodPidsLimit(long value) { + + podPidsLimit_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Set the Pod PID limits. See
+     * https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits
+     *
+     * Controls the maximum number of processes allowed to run in a pod. The value
+     * must be greater than or equal to 1024 and less than 4194304.
+     * 
+ * + * int64 pod_pids_limit = 4; + * @return This builder for chaining. + */ + public Builder clearPodPidsLimit() { + bitField0_ = (bitField0_ & ~0x00000008); + podPidsLimit_ = 0L; + onChanged(); + return this; + } + + private boolean insecureKubeletReadonlyPortEnabled_ ; + /** + *
+     * Enable or disable Kubelet read only port.
+     * 
+ * + * optional bool insecure_kubelet_readonly_port_enabled = 7; + * @return Whether the insecureKubeletReadonlyPortEnabled field is set. + */ + @java.lang.Override + public boolean hasInsecureKubeletReadonlyPortEnabled() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+     * Enable or disable Kubelet read only port.
+     * 
+ * + * optional bool insecure_kubelet_readonly_port_enabled = 7; + * @return The insecureKubeletReadonlyPortEnabled. + */ + @java.lang.Override + public boolean getInsecureKubeletReadonlyPortEnabled() { + return insecureKubeletReadonlyPortEnabled_; + } + /** + *
+     * Enable or disable Kubelet read only port.
+     * 
+ * + * optional bool insecure_kubelet_readonly_port_enabled = 7; + * @param value The insecureKubeletReadonlyPortEnabled to set. + * @return This builder for chaining. + */ + public Builder setInsecureKubeletReadonlyPortEnabled(boolean value) { + + insecureKubeletReadonlyPortEnabled_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Enable or disable Kubelet read only port.
+     * 
+ * + * optional bool insecure_kubelet_readonly_port_enabled = 7; + * @return This builder for chaining. + */ + public Builder clearInsecureKubeletReadonlyPortEnabled() { + bitField0_ = (bitField0_ & ~0x00000010); + insecureKubeletReadonlyPortEnabled_ = 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.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeKubeletConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeKubeletConfigOrBuilder.java new file mode 100644 index 000000000000..a6397ceee859 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeKubeletConfigOrBuilder.java @@ -0,0 +1,166 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + + /** + *
+   * Set the Pod PID limits. See
+   * https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits
+   *
+   * Controls the maximum number of processes allowed to run in a pod. The value
+   * must be greater than or equal to 1024 and less than 4194304.
+   * 
+ * + * int64 pod_pids_limit = 4; + * @return The podPidsLimit. + */ + long getPodPidsLimit(); + + /** + *
+   * Enable or disable Kubelet read only port.
+   * 
+ * + * optional bool insecure_kubelet_readonly_port_enabled = 7; + * @return Whether the insecureKubeletReadonlyPortEnabled field is set. + */ + boolean hasInsecureKubeletReadonlyPortEnabled(); + /** + *
+   * Enable or disable Kubelet read only port.
+   * 
+ * + * optional bool insecure_kubelet_readonly_port_enabled = 7; + * @return The insecureKubeletReadonlyPortEnabled. + */ + boolean getInsecureKubeletReadonlyPortEnabled(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeLabels.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeLabels.java new file mode 100644 index 000000000000..c317324a2223 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeLabels.java @@ -0,0 +1,739 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * Collection of node-level [Kubernetes
+ * labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels).
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.NodeLabels} + */ +public final class NodeLabels extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodeLabels) + NodeLabelsOrBuilder { +private static final long serialVersionUID = 0L; + // Use NodeLabels.newBuilder() to construct. + private NodeLabels(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeLabels() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NodeLabels(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeLabels_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + 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_NodeLabels_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodeLabels.class, com.google.container.v1beta1.NodeLabels.Builder.class); + } + + public static final int LABELS_FIELD_NUMBER = 1; + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeLabels_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+   * Map of node label keys and node label values.
+   * 
+ * + * map<string, string> labels = 1; + */ + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+   * Map of node label keys and node label values.
+   * 
+ * + * map<string, string> labels = 1; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+   * Map of node label keys and node label values.
+   * 
+ * + * map<string, string> labels = 1; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * Map of node label keys and node label values.
+   * 
+ * + * map<string, string> labels = 1; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().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, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 1); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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(1, labels__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.NodeLabels)) { + return super.equals(obj); + } + com.google.container.v1beta1.NodeLabels other = (com.google.container.v1beta1.NodeLabels) obj; + + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.NodeLabels parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodeLabels parseFrom( + 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.NodeLabels parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodeLabels parseFrom( + com.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.NodeLabels parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodeLabels parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NodeLabels parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NodeLabels parseFrom( + java.io.InputStream 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.NodeLabels parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NodeLabels parseDelimitedFrom( + java.io.InputStream 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.NodeLabels parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NodeLabels parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.NodeLabels prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Collection of node-level [Kubernetes
+   * labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels).
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.NodeLabels} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NodeLabels) + com.google.container.v1beta1.NodeLabelsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeLabels_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 1: + 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_NodeLabels_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodeLabels.class, com.google.container.v1beta1.NodeLabels.Builder.class); + } + + // Construct using com.google.container.v1beta1.NodeLabels.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableLabels().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeLabels_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NodeLabels getDefaultInstanceForType() { + return com.google.container.v1beta1.NodeLabels.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NodeLabels build() { + com.google.container.v1beta1.NodeLabels result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NodeLabels buildPartial() { + com.google.container.v1beta1.NodeLabels result = new com.google.container.v1beta1.NodeLabels(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.NodeLabels result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + } + + @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.NodeLabels) { + return mergeFrom((com.google.container.v1beta1.NodeLabels)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NodeLabels other) { + if (other == com.google.container.v1beta1.NodeLabels.getDefaultInstance()) return this; + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); + bitField0_ |= 0x00000001; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000001; + onChanged(); + return labels_; + } + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+     * Map of node label keys and node label values.
+     * 
+ * + * map<string, string> labels = 1; + */ + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+     * Map of node label keys and node label values.
+     * 
+ * + * map<string, string> labels = 1; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+     * Map of node label keys and node label values.
+     * 
+ * + * map<string, string> labels = 1; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Map of node label keys and node label values.
+     * 
+ * + * map<string, string> labels = 1; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Map of node label keys and node label values.
+     * 
+ * + * map<string, string> labels = 1; + */ + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableLabels() { + bitField0_ |= 0x00000001; + return internalGetMutableLabels().getMutableMap(); + } + /** + *
+     * Map of node label keys and node label values.
+     * 
+ * + * map<string, string> labels = 1; + */ + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000001; + return this; + } + /** + *
+     * Map of node label keys and node label values.
+     * 
+ * + * map<string, string> labels = 1; + */ + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000001; + 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.NodeLabels) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodeLabels) + private static final com.google.container.v1beta1.NodeLabels DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NodeLabels(); + } + + public static com.google.container.v1beta1.NodeLabels getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeLabels parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.NodeLabels getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeLabelsOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeLabelsOrBuilder.java new file mode 100644 index 000000000000..6e424315581d --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeLabelsOrBuilder.java @@ -0,0 +1,64 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface NodeLabelsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodeLabels) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Map of node label keys and node label values.
+   * 
+ * + * map<string, string> labels = 1; + */ + int getLabelsCount(); + /** + *
+   * Map of node label keys and node label values.
+   * 
+ * + * map<string, string> labels = 1; + */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getLabels(); + /** + *
+   * Map of node label keys and node label values.
+   * 
+ * + * map<string, string> labels = 1; + */ + java.util.Map + getLabelsMap(); + /** + *
+   * Map of node label keys and node label values.
+   * 
+ * + * map<string, string> labels = 1; + */ + /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+   * Map of node label keys and node label values.
+   * 
+ * + * map<string, string> labels = 1; + */ + java.lang.String getLabelsOrThrow( + java.lang.String key); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeManagement.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeManagement.java new file mode 100644 index 000000000000..c619e7d54f23 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeManagement.java @@ -0,0 +1,823 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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); + } + + private int bitField0_; + public static final int AUTO_UPGRADE_FIELD_NUMBER = 1; + private boolean autoUpgrade_ = false; + /** + *
+   * 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_ = false; + /** + *
+   * 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 ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * 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 upgradeOptions_ == null ? com.google.container.v1beta1.AutoUpgradeOptions.getDefaultInstance() : upgradeOptions_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(10, getUpgradeOptions()); + } + getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getUpgradeOptions()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { + getUpgradeOptionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + autoUpgrade_ = false; + autoRepair_ = false; + upgradeOptions_ = null; + if (upgradeOptionsBuilder_ != null) { + upgradeOptionsBuilder_.dispose(); + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.NodeManagement result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.autoUpgrade_ = autoUpgrade_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.autoRepair_ = autoRepair_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.upgradeOptions_ = upgradeOptionsBuilder_ == null + ? upgradeOptions_ + : upgradeOptionsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @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.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + autoUpgrade_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + autoRepair_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 82: { + input.readMessage( + getUpgradeOptionsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether the nodes will be automatically upgraded.
+     * 
+ * + * bool auto_upgrade = 1; + * @return This builder for chaining. + */ + public Builder clearAutoUpgrade() { + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Whether the nodes will be automatically repaired.
+     * 
+ * + * bool auto_repair = 2; + * @return This builder for chaining. + */ + public Builder clearAutoRepair() { + bitField0_ = (bitField0_ & ~0x00000002); + 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 ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * 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; + } else { + upgradeOptionsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + 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(); + } else { + upgradeOptionsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + 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 (((bitField0_ & 0x00000004) != 0) && + upgradeOptions_ != null && + upgradeOptions_ != com.google.container.v1beta1.AutoUpgradeOptions.getDefaultInstance()) { + getUpgradeOptionsBuilder().mergeFrom(value); + } else { + upgradeOptions_ = value; + } + } else { + upgradeOptionsBuilder_.mergeFrom(value); + } + if (upgradeOptions_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+     * Specifies the Auto Upgrade knobs for the node pool.
+     * 
+ * + * .google.container.v1beta1.AutoUpgradeOptions upgrade_options = 10; + */ + public Builder clearUpgradeOptions() { + bitField0_ = (bitField0_ & ~0x00000004); + upgradeOptions_ = null; + if (upgradeOptionsBuilder_ != null) { + upgradeOptionsBuilder_.dispose(); + upgradeOptionsBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000004; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeManagementOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeManagementOrBuilder.java new file mode 100644 index 000000000000..dbec2b6d8374 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeManagementOrBuilder.java @@ -0,0 +1,57 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeNetworkConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeNetworkConfig.java new file mode 100644 index 000000000000..1ee1d3c0802d --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeNetworkConfig.java @@ -0,0 +1,3689 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * Parameters for node pool-level network config.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.NodeNetworkConfig} + */ +public final class NodeNetworkConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodeNetworkConfig) + NodeNetworkConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use NodeNetworkConfig.newBuilder() to construct. + private NodeNetworkConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeNetworkConfig() { + podRange_ = ""; + podIpv4CidrBlock_ = ""; + additionalNodeNetworkConfigs_ = java.util.Collections.emptyList(); + additionalPodNetworkConfigs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NodeNetworkConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeNetworkConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeNetworkConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodeNetworkConfig.class, com.google.container.v1beta1.NodeNetworkConfig.Builder.class); + } + + public interface NetworkPerformanceConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Specifies the total network bandwidth tier for the NodePool.
+     * 
+ * + * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return Whether the totalEgressBandwidthTier field is set. + */ + boolean hasTotalEgressBandwidthTier(); + /** + *
+     * Specifies the total network bandwidth tier for the NodePool.
+     * 
+ * + * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return The enum numeric value on the wire for totalEgressBandwidthTier. + */ + int getTotalEgressBandwidthTierValue(); + /** + *
+     * Specifies the total network bandwidth tier for the NodePool.
+     * 
+ * + * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return The totalEgressBandwidthTier. + */ + com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier getTotalEgressBandwidthTier(); + + /** + *
+     * Specifies the network bandwidth tier for the NodePool for traffic to
+     * external/public IP addresses.
+     * 
+ * + * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier external_ip_egress_bandwidth_tier = 2; + * @return Whether the externalIpEgressBandwidthTier field is set. + */ + boolean hasExternalIpEgressBandwidthTier(); + /** + *
+     * Specifies the network bandwidth tier for the NodePool for traffic to
+     * external/public IP addresses.
+     * 
+ * + * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier external_ip_egress_bandwidth_tier = 2; + * @return The enum numeric value on the wire for externalIpEgressBandwidthTier. + */ + int getExternalIpEgressBandwidthTierValue(); + /** + *
+     * Specifies the network bandwidth tier for the NodePool for traffic to
+     * external/public IP addresses.
+     * 
+ * + * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier external_ip_egress_bandwidth_tier = 2; + * @return The externalIpEgressBandwidthTier. + */ + com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier getExternalIpEgressBandwidthTier(); + } + /** + *
+   * Configuration of all network bandwidth tiers
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig} + */ + public static final class NetworkPerformanceConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig) + NetworkPerformanceConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use NetworkPerformanceConfig.newBuilder() to construct. + private NetworkPerformanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NetworkPerformanceConfig() { + totalEgressBandwidthTier_ = 0; + externalIpEgressBandwidthTier_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NetworkPerformanceConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeNetworkConfig_NetworkPerformanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeNetworkConfig_NetworkPerformanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.class, com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Builder.class); + } + + /** + *
+     * Node network tier
+     * 
+ * + * Protobuf enum {@code google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier} + */ + public enum Tier + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * Default value
+       * 
+ * + * TIER_UNSPECIFIED = 0; + */ + TIER_UNSPECIFIED(0), + /** + *
+       * Higher bandwidth, actual values based on VM size.
+       * 
+ * + * TIER_1 = 1; + */ + TIER_1(1), + UNRECOGNIZED(-1), + ; + + /** + *
+       * Default value
+       * 
+ * + * TIER_UNSPECIFIED = 0; + */ + public static final int TIER_UNSPECIFIED_VALUE = 0; + /** + *
+       * Higher bandwidth, actual values based on VM size.
+       * 
+ * + * TIER_1 = 1; + */ + public static final int TIER_1_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 Tier 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 Tier forNumber(int value) { + switch (value) { + case 0: return TIER_UNSPECIFIED; + case 1: return TIER_1; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Tier> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Tier findValueByNumber(int number) { + return Tier.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.NodeNetworkConfig.NetworkPerformanceConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final Tier[] VALUES = values(); + + public static Tier 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 Tier(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier) + } + + private int bitField0_; + public static final int TOTAL_EGRESS_BANDWIDTH_TIER_FIELD_NUMBER = 1; + private int totalEgressBandwidthTier_ = 0; + /** + *
+     * Specifies the total network bandwidth tier for the NodePool.
+     * 
+ * + * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return Whether the totalEgressBandwidthTier field is set. + */ + @java.lang.Override public boolean hasTotalEgressBandwidthTier() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Specifies the total network bandwidth tier for the NodePool.
+     * 
+ * + * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return The enum numeric value on the wire for totalEgressBandwidthTier. + */ + @java.lang.Override public int getTotalEgressBandwidthTierValue() { + return totalEgressBandwidthTier_; + } + /** + *
+     * Specifies the total network bandwidth tier for the NodePool.
+     * 
+ * + * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return The totalEgressBandwidthTier. + */ + @java.lang.Override public com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier getTotalEgressBandwidthTier() { + com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier result = com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier.forNumber(totalEgressBandwidthTier_); + return result == null ? com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier.UNRECOGNIZED : result; + } + + public static final int EXTERNAL_IP_EGRESS_BANDWIDTH_TIER_FIELD_NUMBER = 2; + private int externalIpEgressBandwidthTier_ = 0; + /** + *
+     * Specifies the network bandwidth tier for the NodePool for traffic to
+     * external/public IP addresses.
+     * 
+ * + * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier external_ip_egress_bandwidth_tier = 2; + * @return Whether the externalIpEgressBandwidthTier field is set. + */ + @java.lang.Override public boolean hasExternalIpEgressBandwidthTier() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Specifies the network bandwidth tier for the NodePool for traffic to
+     * external/public IP addresses.
+     * 
+ * + * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier external_ip_egress_bandwidth_tier = 2; + * @return The enum numeric value on the wire for externalIpEgressBandwidthTier. + */ + @java.lang.Override public int getExternalIpEgressBandwidthTierValue() { + return externalIpEgressBandwidthTier_; + } + /** + *
+     * Specifies the network bandwidth tier for the NodePool for traffic to
+     * external/public IP addresses.
+     * 
+ * + * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier external_ip_egress_bandwidth_tier = 2; + * @return The externalIpEgressBandwidthTier. + */ + @java.lang.Override public com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier getExternalIpEgressBandwidthTier() { + com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier result = com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier.forNumber(externalIpEgressBandwidthTier_); + return result == null ? com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier.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 (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, totalEgressBandwidthTier_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(2, externalIpEgressBandwidthTier_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, totalEgressBandwidthTier_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, externalIpEgressBandwidthTier_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.NodeNetworkConfig.NetworkPerformanceConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig other = (com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig) obj; + + if (hasTotalEgressBandwidthTier() != other.hasTotalEgressBandwidthTier()) return false; + if (hasTotalEgressBandwidthTier()) { + if (totalEgressBandwidthTier_ != other.totalEgressBandwidthTier_) return false; + } + if (hasExternalIpEgressBandwidthTier() != other.hasExternalIpEgressBandwidthTier()) return false; + if (hasExternalIpEgressBandwidthTier()) { + if (externalIpEgressBandwidthTier_ != other.externalIpEgressBandwidthTier_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTotalEgressBandwidthTier()) { + hash = (37 * hash) + TOTAL_EGRESS_BANDWIDTH_TIER_FIELD_NUMBER; + hash = (53 * hash) + totalEgressBandwidthTier_; + } + if (hasExternalIpEgressBandwidthTier()) { + hash = (37 * hash) + EXTERNAL_IP_EGRESS_BANDWIDTH_TIER_FIELD_NUMBER; + hash = (53 * hash) + externalIpEgressBandwidthTier_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig parseFrom( + 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.NodeNetworkConfig.NetworkPerformanceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig parseFrom( + com.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.NodeNetworkConfig.NetworkPerformanceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig parseFrom( + java.io.InputStream 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.NodeNetworkConfig.NetworkPerformanceConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig parseDelimitedFrom( + java.io.InputStream 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.NodeNetworkConfig.NetworkPerformanceConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.NodeNetworkConfig.NetworkPerformanceConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new 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 all network bandwidth tiers
+     * 
+ * + * Protobuf type {@code google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig) + com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeNetworkConfig_NetworkPerformanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeNetworkConfig_NetworkPerformanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.class, com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + totalEgressBandwidthTier_ = 0; + externalIpEgressBandwidthTier_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeNetworkConfig_NetworkPerformanceConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig build() { + com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig buildPartial() { + com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig result = new com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.totalEgressBandwidthTier_ = totalEgressBandwidthTier_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.externalIpEgressBandwidthTier_ = externalIpEgressBandwidthTier_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @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.NodeNetworkConfig.NetworkPerformanceConfig) { + return mergeFrom((com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig other) { + if (other == com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.getDefaultInstance()) return this; + if (other.hasTotalEgressBandwidthTier()) { + setTotalEgressBandwidthTier(other.getTotalEgressBandwidthTier()); + } + if (other.hasExternalIpEgressBandwidthTier()) { + setExternalIpEgressBandwidthTier(other.getExternalIpEgressBandwidthTier()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + totalEgressBandwidthTier_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + externalIpEgressBandwidthTier_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int totalEgressBandwidthTier_ = 0; + /** + *
+       * Specifies the total network bandwidth tier for the NodePool.
+       * 
+ * + * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return Whether the totalEgressBandwidthTier field is set. + */ + @java.lang.Override public boolean hasTotalEgressBandwidthTier() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * Specifies the total network bandwidth tier for the NodePool.
+       * 
+ * + * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return The enum numeric value on the wire for totalEgressBandwidthTier. + */ + @java.lang.Override public int getTotalEgressBandwidthTierValue() { + return totalEgressBandwidthTier_; + } + /** + *
+       * Specifies the total network bandwidth tier for the NodePool.
+       * 
+ * + * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @param value The enum numeric value on the wire for totalEgressBandwidthTier to set. + * @return This builder for chaining. + */ + public Builder setTotalEgressBandwidthTierValue(int value) { + totalEgressBandwidthTier_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Specifies the total network bandwidth tier for the NodePool.
+       * 
+ * + * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return The totalEgressBandwidthTier. + */ + @java.lang.Override + public com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier getTotalEgressBandwidthTier() { + com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier result = com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier.forNumber(totalEgressBandwidthTier_); + return result == null ? com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier.UNRECOGNIZED : result; + } + /** + *
+       * Specifies the total network bandwidth tier for the NodePool.
+       * 
+ * + * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @param value The totalEgressBandwidthTier to set. + * @return This builder for chaining. + */ + public Builder setTotalEgressBandwidthTier(com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + totalEgressBandwidthTier_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Specifies the total network bandwidth tier for the NodePool.
+       * 
+ * + * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; + * @return This builder for chaining. + */ + public Builder clearTotalEgressBandwidthTier() { + bitField0_ = (bitField0_ & ~0x00000001); + totalEgressBandwidthTier_ = 0; + onChanged(); + return this; + } + + private int externalIpEgressBandwidthTier_ = 0; + /** + *
+       * Specifies the network bandwidth tier for the NodePool for traffic to
+       * external/public IP addresses.
+       * 
+ * + * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier external_ip_egress_bandwidth_tier = 2; + * @return Whether the externalIpEgressBandwidthTier field is set. + */ + @java.lang.Override public boolean hasExternalIpEgressBandwidthTier() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+       * Specifies the network bandwidth tier for the NodePool for traffic to
+       * external/public IP addresses.
+       * 
+ * + * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier external_ip_egress_bandwidth_tier = 2; + * @return The enum numeric value on the wire for externalIpEgressBandwidthTier. + */ + @java.lang.Override public int getExternalIpEgressBandwidthTierValue() { + return externalIpEgressBandwidthTier_; + } + /** + *
+       * Specifies the network bandwidth tier for the NodePool for traffic to
+       * external/public IP addresses.
+       * 
+ * + * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier external_ip_egress_bandwidth_tier = 2; + * @param value The enum numeric value on the wire for externalIpEgressBandwidthTier to set. + * @return This builder for chaining. + */ + public Builder setExternalIpEgressBandwidthTierValue(int value) { + externalIpEgressBandwidthTier_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Specifies the network bandwidth tier for the NodePool for traffic to
+       * external/public IP addresses.
+       * 
+ * + * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier external_ip_egress_bandwidth_tier = 2; + * @return The externalIpEgressBandwidthTier. + */ + @java.lang.Override + public com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier getExternalIpEgressBandwidthTier() { + com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier result = com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier.forNumber(externalIpEgressBandwidthTier_); + return result == null ? com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier.UNRECOGNIZED : result; + } + /** + *
+       * Specifies the network bandwidth tier for the NodePool for traffic to
+       * external/public IP addresses.
+       * 
+ * + * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier external_ip_egress_bandwidth_tier = 2; + * @param value The externalIpEgressBandwidthTier to set. + * @return This builder for chaining. + */ + public Builder setExternalIpEgressBandwidthTier(com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + externalIpEgressBandwidthTier_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Specifies the network bandwidth tier for the NodePool for traffic to
+       * external/public IP addresses.
+       * 
+ * + * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Tier external_ip_egress_bandwidth_tier = 2; + * @return This builder for chaining. + */ + public Builder clearExternalIpEgressBandwidthTier() { + bitField0_ = (bitField0_ & ~0x00000002); + externalIpEgressBandwidthTier_ = 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.NodeNetworkConfig.NetworkPerformanceConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig) + private static final com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig(); + } + + public static com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkPerformanceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.NodeNetworkConfig.NetworkPerformanceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int CREATE_POD_RANGE_FIELD_NUMBER = 4; + private boolean createPodRange_ = false; + /** + *
+   * Input only. Whether to create a new range for pod IPs in this node pool.
+   * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they
+   * are not specified.
+   *
+   * If neither `create_pod_range` or `pod_range` are specified, the
+   * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is
+   * used.
+   *
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   *
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return The createPodRange. + */ + @java.lang.Override + public boolean getCreatePodRange() { + return createPodRange_; + } + + public static final int POD_RANGE_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object podRange_ = ""; + /** + *
+   * The ID of the secondary range for pod IPs.
+   * If `create_pod_range` is true, this ID is used for the new range.
+   * If `create_pod_range` is false, uses an existing secondary range with this
+   * ID.
+   *
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   *
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * string pod_range = 5; + * @return The podRange. + */ + @java.lang.Override + public java.lang.String getPodRange() { + java.lang.Object ref = podRange_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + podRange_ = s; + return s; + } + } + /** + *
+   * The ID of the secondary range for pod IPs.
+   * If `create_pod_range` is true, this ID is used for the new range.
+   * If `create_pod_range` is false, uses an existing secondary range with this
+   * ID.
+   *
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   *
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * string pod_range = 5; + * @return The bytes for podRange. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPodRangeBytes() { + java.lang.Object ref = podRange_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + podRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POD_IPV4_CIDR_BLOCK_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object podIpv4CidrBlock_ = ""; + /** + *
+   * The IP address range for pod IPs in this node pool.
+   *
+   * Only applicable if `create_pod_range` is true.
+   *
+   * Set to blank to have a range chosen with the default size.
+   *
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   *
+   * Set to a
+   * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+   *
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   *
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * string pod_ipv4_cidr_block = 6; + * @return The podIpv4CidrBlock. + */ + @java.lang.Override + public java.lang.String getPodIpv4CidrBlock() { + java.lang.Object ref = podIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + podIpv4CidrBlock_ = s; + return s; + } + } + /** + *
+   * The IP address range for pod IPs in this node pool.
+   *
+   * Only applicable if `create_pod_range` is true.
+   *
+   * Set to blank to have a range chosen with the default size.
+   *
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   *
+   * Set to a
+   * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+   *
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   *
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * string pod_ipv4_cidr_block = 6; + * @return The bytes for podIpv4CidrBlock. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPodIpv4CidrBlockBytes() { + java.lang.Object ref = podIpv4CidrBlock_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + podIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENABLE_PRIVATE_NODES_FIELD_NUMBER = 9; + private boolean enablePrivateNodes_ = false; + /** + *
+   * Whether nodes have internal IP addresses only.
+   * If enable_private_nodes is not specified, then the value is derived from
+   * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
+   * 
+ * + * optional bool enable_private_nodes = 9; + * @return Whether the enablePrivateNodes field is set. + */ + @java.lang.Override + public boolean hasEnablePrivateNodes() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Whether nodes have internal IP addresses only.
+   * If enable_private_nodes is not specified, then the value is derived from
+   * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
+   * 
+ * + * optional bool enable_private_nodes = 9; + * @return The enablePrivateNodes. + */ + @java.lang.Override + public boolean getEnablePrivateNodes() { + return enablePrivateNodes_; + } + + public static final int NETWORK_PERFORMANCE_CONFIG_FIELD_NUMBER = 11; + private com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig networkPerformanceConfig_; + /** + *
+   * Network bandwidth tier configuration.
+   * 
+ * + * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; + * @return Whether the networkPerformanceConfig field is set. + */ + @java.lang.Override + public boolean hasNetworkPerformanceConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * Network bandwidth tier configuration.
+   * 
+ * + * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; + * @return The networkPerformanceConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig getNetworkPerformanceConfig() { + return networkPerformanceConfig_ == null ? com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.getDefaultInstance() : networkPerformanceConfig_; + } + /** + *
+   * Network bandwidth tier configuration.
+   * 
+ * + * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; + */ + @java.lang.Override + public com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfigOrBuilder getNetworkPerformanceConfigOrBuilder() { + return networkPerformanceConfig_ == null ? com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.getDefaultInstance() : networkPerformanceConfig_; + } + + public static final int POD_CIDR_OVERPROVISION_CONFIG_FIELD_NUMBER = 13; + private com.google.container.v1beta1.PodCIDROverprovisionConfig podCidrOverprovisionConfig_; + /** + *
+   * [PRIVATE FIELD]
+   * Pod CIDR size overprovisioning config for the nodepool.
+   *
+   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+   * of max_pods_per_node is rounded off to next power of 2 and we then double
+   * that to get the size of pod CIDR block per node.
+   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+   *
+   * This config can disable the doubling of IPs (we still round off to next
+   * power of 2)
+   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+   * overprovisioning is disabled.
+   * 
+ * + * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; + * @return Whether the podCidrOverprovisionConfig field is set. + */ + @java.lang.Override + public boolean hasPodCidrOverprovisionConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+   * [PRIVATE FIELD]
+   * Pod CIDR size overprovisioning config for the nodepool.
+   *
+   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+   * of max_pods_per_node is rounded off to next power of 2 and we then double
+   * that to get the size of pod CIDR block per node.
+   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+   *
+   * This config can disable the doubling of IPs (we still round off to next
+   * power of 2)
+   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+   * overprovisioning is disabled.
+   * 
+ * + * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; + * @return The podCidrOverprovisionConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.PodCIDROverprovisionConfig getPodCidrOverprovisionConfig() { + return podCidrOverprovisionConfig_ == null ? com.google.container.v1beta1.PodCIDROverprovisionConfig.getDefaultInstance() : podCidrOverprovisionConfig_; + } + /** + *
+   * [PRIVATE FIELD]
+   * Pod CIDR size overprovisioning config for the nodepool.
+   *
+   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+   * of max_pods_per_node is rounded off to next power of 2 and we then double
+   * that to get the size of pod CIDR block per node.
+   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+   *
+   * This config can disable the doubling of IPs (we still round off to next
+   * power of 2)
+   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+   * overprovisioning is disabled.
+   * 
+ * + * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; + */ + @java.lang.Override + public com.google.container.v1beta1.PodCIDROverprovisionConfigOrBuilder getPodCidrOverprovisionConfigOrBuilder() { + return podCidrOverprovisionConfig_ == null ? com.google.container.v1beta1.PodCIDROverprovisionConfig.getDefaultInstance() : podCidrOverprovisionConfig_; + } + + public static final int ADDITIONAL_NODE_NETWORK_CONFIGS_FIELD_NUMBER = 14; + @SuppressWarnings("serial") + private java.util.List additionalNodeNetworkConfigs_; + /** + *
+   * We specify the additional node networks for this node pool using this list.
+   * Each node network corresponds to an additional interface
+   * 
+ * + * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + @java.lang.Override + public java.util.List getAdditionalNodeNetworkConfigsList() { + return additionalNodeNetworkConfigs_; + } + /** + *
+   * We specify the additional node networks for this node pool using this list.
+   * Each node network corresponds to an additional interface
+   * 
+ * + * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + @java.lang.Override + public java.util.List + getAdditionalNodeNetworkConfigsOrBuilderList() { + return additionalNodeNetworkConfigs_; + } + /** + *
+   * We specify the additional node networks for this node pool using this list.
+   * Each node network corresponds to an additional interface
+   * 
+ * + * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + @java.lang.Override + public int getAdditionalNodeNetworkConfigsCount() { + return additionalNodeNetworkConfigs_.size(); + } + /** + *
+   * We specify the additional node networks for this node pool using this list.
+   * Each node network corresponds to an additional interface
+   * 
+ * + * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + @java.lang.Override + public com.google.container.v1beta1.AdditionalNodeNetworkConfig getAdditionalNodeNetworkConfigs(int index) { + return additionalNodeNetworkConfigs_.get(index); + } + /** + *
+   * We specify the additional node networks for this node pool using this list.
+   * Each node network corresponds to an additional interface
+   * 
+ * + * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + @java.lang.Override + public com.google.container.v1beta1.AdditionalNodeNetworkConfigOrBuilder getAdditionalNodeNetworkConfigsOrBuilder( + int index) { + return additionalNodeNetworkConfigs_.get(index); + } + + public static final int ADDITIONAL_POD_NETWORK_CONFIGS_FIELD_NUMBER = 15; + @SuppressWarnings("serial") + private java.util.List additionalPodNetworkConfigs_; + /** + *
+   * We specify the additional pod networks for this node pool using this list.
+   * Each pod network corresponds to an additional alias IP range for the node
+   * 
+ * + * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + @java.lang.Override + public java.util.List getAdditionalPodNetworkConfigsList() { + return additionalPodNetworkConfigs_; + } + /** + *
+   * We specify the additional pod networks for this node pool using this list.
+   * Each pod network corresponds to an additional alias IP range for the node
+   * 
+ * + * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + @java.lang.Override + public java.util.List + getAdditionalPodNetworkConfigsOrBuilderList() { + return additionalPodNetworkConfigs_; + } + /** + *
+   * We specify the additional pod networks for this node pool using this list.
+   * Each pod network corresponds to an additional alias IP range for the node
+   * 
+ * + * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + @java.lang.Override + public int getAdditionalPodNetworkConfigsCount() { + return additionalPodNetworkConfigs_.size(); + } + /** + *
+   * We specify the additional pod networks for this node pool using this list.
+   * Each pod network corresponds to an additional alias IP range for the node
+   * 
+ * + * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + @java.lang.Override + public com.google.container.v1beta1.AdditionalPodNetworkConfig getAdditionalPodNetworkConfigs(int index) { + return additionalPodNetworkConfigs_.get(index); + } + /** + *
+   * We specify the additional pod networks for this node pool using this list.
+   * Each pod network corresponds to an additional alias IP range for the node
+   * 
+ * + * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + @java.lang.Override + public com.google.container.v1beta1.AdditionalPodNetworkConfigOrBuilder getAdditionalPodNetworkConfigsOrBuilder( + int index) { + return additionalPodNetworkConfigs_.get(index); + } + + public static final int POD_IPV4_RANGE_UTILIZATION_FIELD_NUMBER = 16; + private double podIpv4RangeUtilization_ = 0D; + /** + *
+   * Output only. [Output only] The utilization of the IPv4 range for the pod.
+   * The ratio is Usage/[Total number of IPs in the secondary range],
+   * Usage=numNodes*numZones*podIPsPerNode.
+   * 
+ * + * double pod_ipv4_range_utilization = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The podIpv4RangeUtilization. + */ + @java.lang.Override + public double getPodIpv4RangeUtilization() { + return podIpv4RangeUtilization_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (createPodRange_ != false) { + output.writeBool(4, createPodRange_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(podRange_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, podRange_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(podIpv4CidrBlock_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, podIpv4CidrBlock_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(9, enablePrivateNodes_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(11, getNetworkPerformanceConfig()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(13, getPodCidrOverprovisionConfig()); + } + for (int i = 0; i < additionalNodeNetworkConfigs_.size(); i++) { + output.writeMessage(14, additionalNodeNetworkConfigs_.get(i)); + } + for (int i = 0; i < additionalPodNetworkConfigs_.size(); i++) { + output.writeMessage(15, additionalPodNetworkConfigs_.get(i)); + } + if (java.lang.Double.doubleToRawLongBits(podIpv4RangeUtilization_) != 0) { + output.writeDouble(16, podIpv4RangeUtilization_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (createPodRange_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, createPodRange_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(podRange_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, podRange_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(podIpv4CidrBlock_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, podIpv4CidrBlock_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(9, enablePrivateNodes_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getNetworkPerformanceConfig()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getPodCidrOverprovisionConfig()); + } + for (int i = 0; i < additionalNodeNetworkConfigs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, additionalNodeNetworkConfigs_.get(i)); + } + for (int i = 0; i < additionalPodNetworkConfigs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, additionalPodNetworkConfigs_.get(i)); + } + if (java.lang.Double.doubleToRawLongBits(podIpv4RangeUtilization_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(16, podIpv4RangeUtilization_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.NodeNetworkConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.NodeNetworkConfig other = (com.google.container.v1beta1.NodeNetworkConfig) obj; + + if (getCreatePodRange() + != other.getCreatePodRange()) return false; + if (!getPodRange() + .equals(other.getPodRange())) return false; + if (!getPodIpv4CidrBlock() + .equals(other.getPodIpv4CidrBlock())) return false; + if (hasEnablePrivateNodes() != other.hasEnablePrivateNodes()) return false; + if (hasEnablePrivateNodes()) { + if (getEnablePrivateNodes() + != other.getEnablePrivateNodes()) return false; + } + if (hasNetworkPerformanceConfig() != other.hasNetworkPerformanceConfig()) return false; + if (hasNetworkPerformanceConfig()) { + if (!getNetworkPerformanceConfig() + .equals(other.getNetworkPerformanceConfig())) return false; + } + if (hasPodCidrOverprovisionConfig() != other.hasPodCidrOverprovisionConfig()) return false; + if (hasPodCidrOverprovisionConfig()) { + if (!getPodCidrOverprovisionConfig() + .equals(other.getPodCidrOverprovisionConfig())) return false; + } + if (!getAdditionalNodeNetworkConfigsList() + .equals(other.getAdditionalNodeNetworkConfigsList())) return false; + if (!getAdditionalPodNetworkConfigsList() + .equals(other.getAdditionalPodNetworkConfigsList())) return false; + if (java.lang.Double.doubleToLongBits(getPodIpv4RangeUtilization()) + != java.lang.Double.doubleToLongBits( + other.getPodIpv4RangeUtilization())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CREATE_POD_RANGE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCreatePodRange()); + hash = (37 * hash) + POD_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getPodRange().hashCode(); + hash = (37 * hash) + POD_IPV4_CIDR_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + getPodIpv4CidrBlock().hashCode(); + if (hasEnablePrivateNodes()) { + hash = (37 * hash) + ENABLE_PRIVATE_NODES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnablePrivateNodes()); + } + if (hasNetworkPerformanceConfig()) { + hash = (37 * hash) + NETWORK_PERFORMANCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNetworkPerformanceConfig().hashCode(); + } + if (hasPodCidrOverprovisionConfig()) { + hash = (37 * hash) + POD_CIDR_OVERPROVISION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPodCidrOverprovisionConfig().hashCode(); + } + if (getAdditionalNodeNetworkConfigsCount() > 0) { + hash = (37 * hash) + ADDITIONAL_NODE_NETWORK_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalNodeNetworkConfigsList().hashCode(); + } + if (getAdditionalPodNetworkConfigsCount() > 0) { + hash = (37 * hash) + ADDITIONAL_POD_NETWORK_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalPodNetworkConfigsList().hashCode(); + } + hash = (37 * hash) + POD_IPV4_RANGE_UTILIZATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getPodIpv4RangeUtilization())); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.NodeNetworkConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodeNetworkConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NodeNetworkConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodeNetworkConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NodeNetworkConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodeNetworkConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NodeNetworkConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NodeNetworkConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.NodeNetworkConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NodeNetworkConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.NodeNetworkConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NodeNetworkConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.NodeNetworkConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Parameters for node pool-level network config.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.NodeNetworkConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NodeNetworkConfig) + com.google.container.v1beta1.NodeNetworkConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeNetworkConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeNetworkConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodeNetworkConfig.class, com.google.container.v1beta1.NodeNetworkConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.NodeNetworkConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNetworkPerformanceConfigFieldBuilder(); + getPodCidrOverprovisionConfigFieldBuilder(); + getAdditionalNodeNetworkConfigsFieldBuilder(); + getAdditionalPodNetworkConfigsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createPodRange_ = false; + podRange_ = ""; + podIpv4CidrBlock_ = ""; + enablePrivateNodes_ = false; + networkPerformanceConfig_ = null; + if (networkPerformanceConfigBuilder_ != null) { + networkPerformanceConfigBuilder_.dispose(); + networkPerformanceConfigBuilder_ = null; + } + podCidrOverprovisionConfig_ = null; + if (podCidrOverprovisionConfigBuilder_ != null) { + podCidrOverprovisionConfigBuilder_.dispose(); + podCidrOverprovisionConfigBuilder_ = null; + } + if (additionalNodeNetworkConfigsBuilder_ == null) { + additionalNodeNetworkConfigs_ = java.util.Collections.emptyList(); + } else { + additionalNodeNetworkConfigs_ = null; + additionalNodeNetworkConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + if (additionalPodNetworkConfigsBuilder_ == null) { + additionalPodNetworkConfigs_ = java.util.Collections.emptyList(); + } else { + additionalPodNetworkConfigs_ = null; + additionalPodNetworkConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + podIpv4RangeUtilization_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeNetworkConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NodeNetworkConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.NodeNetworkConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NodeNetworkConfig build() { + com.google.container.v1beta1.NodeNetworkConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NodeNetworkConfig buildPartial() { + com.google.container.v1beta1.NodeNetworkConfig result = new com.google.container.v1beta1.NodeNetworkConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1beta1.NodeNetworkConfig result) { + if (additionalNodeNetworkConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + additionalNodeNetworkConfigs_ = java.util.Collections.unmodifiableList(additionalNodeNetworkConfigs_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.additionalNodeNetworkConfigs_ = additionalNodeNetworkConfigs_; + } else { + result.additionalNodeNetworkConfigs_ = additionalNodeNetworkConfigsBuilder_.build(); + } + if (additionalPodNetworkConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + additionalPodNetworkConfigs_ = java.util.Collections.unmodifiableList(additionalPodNetworkConfigs_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.additionalPodNetworkConfigs_ = additionalPodNetworkConfigs_; + } else { + result.additionalPodNetworkConfigs_ = additionalPodNetworkConfigsBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1beta1.NodeNetworkConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createPodRange_ = createPodRange_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.podRange_ = podRange_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.podIpv4CidrBlock_ = podIpv4CidrBlock_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.enablePrivateNodes_ = enablePrivateNodes_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.networkPerformanceConfig_ = networkPerformanceConfigBuilder_ == null + ? networkPerformanceConfig_ + : networkPerformanceConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.podCidrOverprovisionConfig_ = podCidrOverprovisionConfigBuilder_ == null + ? podCidrOverprovisionConfig_ + : podCidrOverprovisionConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.podIpv4RangeUtilization_ = podIpv4RangeUtilization_; + } + result.bitField0_ |= to_bitField0_; + } + + @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.NodeNetworkConfig) { + return mergeFrom((com.google.container.v1beta1.NodeNetworkConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NodeNetworkConfig other) { + if (other == com.google.container.v1beta1.NodeNetworkConfig.getDefaultInstance()) return this; + if (other.getCreatePodRange() != false) { + setCreatePodRange(other.getCreatePodRange()); + } + if (!other.getPodRange().isEmpty()) { + podRange_ = other.podRange_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getPodIpv4CidrBlock().isEmpty()) { + podIpv4CidrBlock_ = other.podIpv4CidrBlock_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasEnablePrivateNodes()) { + setEnablePrivateNodes(other.getEnablePrivateNodes()); + } + if (other.hasNetworkPerformanceConfig()) { + mergeNetworkPerformanceConfig(other.getNetworkPerformanceConfig()); + } + if (other.hasPodCidrOverprovisionConfig()) { + mergePodCidrOverprovisionConfig(other.getPodCidrOverprovisionConfig()); + } + if (additionalNodeNetworkConfigsBuilder_ == null) { + if (!other.additionalNodeNetworkConfigs_.isEmpty()) { + if (additionalNodeNetworkConfigs_.isEmpty()) { + additionalNodeNetworkConfigs_ = other.additionalNodeNetworkConfigs_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureAdditionalNodeNetworkConfigsIsMutable(); + additionalNodeNetworkConfigs_.addAll(other.additionalNodeNetworkConfigs_); + } + onChanged(); + } + } else { + if (!other.additionalNodeNetworkConfigs_.isEmpty()) { + if (additionalNodeNetworkConfigsBuilder_.isEmpty()) { + additionalNodeNetworkConfigsBuilder_.dispose(); + additionalNodeNetworkConfigsBuilder_ = null; + additionalNodeNetworkConfigs_ = other.additionalNodeNetworkConfigs_; + bitField0_ = (bitField0_ & ~0x00000040); + additionalNodeNetworkConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAdditionalNodeNetworkConfigsFieldBuilder() : null; + } else { + additionalNodeNetworkConfigsBuilder_.addAllMessages(other.additionalNodeNetworkConfigs_); + } + } + } + if (additionalPodNetworkConfigsBuilder_ == null) { + if (!other.additionalPodNetworkConfigs_.isEmpty()) { + if (additionalPodNetworkConfigs_.isEmpty()) { + additionalPodNetworkConfigs_ = other.additionalPodNetworkConfigs_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureAdditionalPodNetworkConfigsIsMutable(); + additionalPodNetworkConfigs_.addAll(other.additionalPodNetworkConfigs_); + } + onChanged(); + } + } else { + if (!other.additionalPodNetworkConfigs_.isEmpty()) { + if (additionalPodNetworkConfigsBuilder_.isEmpty()) { + additionalPodNetworkConfigsBuilder_.dispose(); + additionalPodNetworkConfigsBuilder_ = null; + additionalPodNetworkConfigs_ = other.additionalPodNetworkConfigs_; + bitField0_ = (bitField0_ & ~0x00000080); + additionalPodNetworkConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAdditionalPodNetworkConfigsFieldBuilder() : null; + } else { + additionalPodNetworkConfigsBuilder_.addAllMessages(other.additionalPodNetworkConfigs_); + } + } + } + if (other.getPodIpv4RangeUtilization() != 0D) { + setPodIpv4RangeUtilization(other.getPodIpv4RangeUtilization()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 32: { + createPodRange_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 32 + case 42: { + podRange_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 42 + case 50: { + podIpv4CidrBlock_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 50 + case 72: { + enablePrivateNodes_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 72 + case 90: { + input.readMessage( + getNetworkPerformanceConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 90 + case 106: { + input.readMessage( + getPodCidrOverprovisionConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 106 + case 114: { + com.google.container.v1beta1.AdditionalNodeNetworkConfig m = + input.readMessage( + com.google.container.v1beta1.AdditionalNodeNetworkConfig.parser(), + extensionRegistry); + if (additionalNodeNetworkConfigsBuilder_ == null) { + ensureAdditionalNodeNetworkConfigsIsMutable(); + additionalNodeNetworkConfigs_.add(m); + } else { + additionalNodeNetworkConfigsBuilder_.addMessage(m); + } + break; + } // case 114 + case 122: { + com.google.container.v1beta1.AdditionalPodNetworkConfig m = + input.readMessage( + com.google.container.v1beta1.AdditionalPodNetworkConfig.parser(), + extensionRegistry); + if (additionalPodNetworkConfigsBuilder_ == null) { + ensureAdditionalPodNetworkConfigsIsMutable(); + additionalPodNetworkConfigs_.add(m); + } else { + additionalPodNetworkConfigsBuilder_.addMessage(m); + } + break; + } // case 122 + case 129: { + podIpv4RangeUtilization_ = input.readDouble(); + bitField0_ |= 0x00000100; + break; + } // case 129 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean createPodRange_ ; + /** + *
+     * Input only. Whether to create a new range for pod IPs in this node pool.
+     * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they
+     * are not specified.
+     *
+     * If neither `create_pod_range` or `pod_range` are specified, the
+     * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is
+     * used.
+     *
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     *
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return The createPodRange. + */ + @java.lang.Override + public boolean getCreatePodRange() { + return createPodRange_; + } + /** + *
+     * Input only. Whether to create a new range for pod IPs in this node pool.
+     * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they
+     * are not specified.
+     *
+     * If neither `create_pod_range` or `pod_range` are specified, the
+     * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is
+     * used.
+     *
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     *
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param value The createPodRange to set. + * @return This builder for chaining. + */ + public Builder setCreatePodRange(boolean value) { + + createPodRange_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Input only. Whether to create a new range for pod IPs in this node pool.
+     * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they
+     * are not specified.
+     *
+     * If neither `create_pod_range` or `pod_range` are specified, the
+     * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is
+     * used.
+     *
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     *
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearCreatePodRange() { + bitField0_ = (bitField0_ & ~0x00000001); + createPodRange_ = false; + onChanged(); + return this; + } + + private java.lang.Object podRange_ = ""; + /** + *
+     * The ID of the secondary range for pod IPs.
+     * If `create_pod_range` is true, this ID is used for the new range.
+     * If `create_pod_range` is false, uses an existing secondary range with this
+     * ID.
+     *
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     *
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_range = 5; + * @return The podRange. + */ + public java.lang.String getPodRange() { + java.lang.Object ref = podRange_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + podRange_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The ID of the secondary range for pod IPs.
+     * If `create_pod_range` is true, this ID is used for the new range.
+     * If `create_pod_range` is false, uses an existing secondary range with this
+     * ID.
+     *
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     *
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_range = 5; + * @return The bytes for podRange. + */ + public com.google.protobuf.ByteString + getPodRangeBytes() { + java.lang.Object ref = podRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + podRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The ID of the secondary range for pod IPs.
+     * If `create_pod_range` is true, this ID is used for the new range.
+     * If `create_pod_range` is false, uses an existing secondary range with this
+     * ID.
+     *
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     *
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_range = 5; + * @param value The podRange to set. + * @return This builder for chaining. + */ + public Builder setPodRange( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + podRange_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The ID of the secondary range for pod IPs.
+     * If `create_pod_range` is true, this ID is used for the new range.
+     * If `create_pod_range` is false, uses an existing secondary range with this
+     * ID.
+     *
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     *
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_range = 5; + * @return This builder for chaining. + */ + public Builder clearPodRange() { + podRange_ = getDefaultInstance().getPodRange(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * The ID of the secondary range for pod IPs.
+     * If `create_pod_range` is true, this ID is used for the new range.
+     * If `create_pod_range` is false, uses an existing secondary range with this
+     * ID.
+     *
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     *
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_range = 5; + * @param value The bytes for podRange to set. + * @return This builder for chaining. + */ + public Builder setPodRangeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + podRange_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object podIpv4CidrBlock_ = ""; + /** + *
+     * The IP address range for pod IPs in this node pool.
+     *
+     * Only applicable if `create_pod_range` is true.
+     *
+     * Set to blank to have a range chosen with the default size.
+     *
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     *
+     * Set to a
+     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+     *
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     *
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_ipv4_cidr_block = 6; + * @return The podIpv4CidrBlock. + */ + public java.lang.String getPodIpv4CidrBlock() { + java.lang.Object ref = podIpv4CidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + podIpv4CidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The IP address range for pod IPs in this node pool.
+     *
+     * Only applicable if `create_pod_range` is true.
+     *
+     * Set to blank to have a range chosen with the default size.
+     *
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     *
+     * Set to a
+     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+     *
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     *
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_ipv4_cidr_block = 6; + * @return The bytes for podIpv4CidrBlock. + */ + public com.google.protobuf.ByteString + getPodIpv4CidrBlockBytes() { + java.lang.Object ref = podIpv4CidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + podIpv4CidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The IP address range for pod IPs in this node pool.
+     *
+     * Only applicable if `create_pod_range` is true.
+     *
+     * Set to blank to have a range chosen with the default size.
+     *
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     *
+     * Set to a
+     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+     *
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     *
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_ipv4_cidr_block = 6; + * @param value The podIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setPodIpv4CidrBlock( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + podIpv4CidrBlock_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The IP address range for pod IPs in this node pool.
+     *
+     * Only applicable if `create_pod_range` is true.
+     *
+     * Set to blank to have a range chosen with the default size.
+     *
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     *
+     * Set to a
+     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+     *
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     *
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_ipv4_cidr_block = 6; + * @return This builder for chaining. + */ + public Builder clearPodIpv4CidrBlock() { + podIpv4CidrBlock_ = getDefaultInstance().getPodIpv4CidrBlock(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * The IP address range for pod IPs in this node pool.
+     *
+     * Only applicable if `create_pod_range` is true.
+     *
+     * Set to blank to have a range chosen with the default size.
+     *
+     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+     * netmask.
+     *
+     * Set to a
+     * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+     * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+     *
+     * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+     *
+     * This field cannot be changed after the node pool has been created.
+     * 
+ * + * string pod_ipv4_cidr_block = 6; + * @param value The bytes for podIpv4CidrBlock to set. + * @return This builder for chaining. + */ + public Builder setPodIpv4CidrBlockBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + podIpv4CidrBlock_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private boolean enablePrivateNodes_ ; + /** + *
+     * Whether nodes have internal IP addresses only.
+     * If enable_private_nodes is not specified, then the value is derived from
+     * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
+     * 
+ * + * optional bool enable_private_nodes = 9; + * @return Whether the enablePrivateNodes field is set. + */ + @java.lang.Override + public boolean hasEnablePrivateNodes() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * Whether nodes have internal IP addresses only.
+     * If enable_private_nodes is not specified, then the value is derived from
+     * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
+     * 
+ * + * optional bool enable_private_nodes = 9; + * @return The enablePrivateNodes. + */ + @java.lang.Override + public boolean getEnablePrivateNodes() { + return enablePrivateNodes_; + } + /** + *
+     * Whether nodes have internal IP addresses only.
+     * If enable_private_nodes is not specified, then the value is derived from
+     * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
+     * 
+ * + * optional bool enable_private_nodes = 9; + * @param value The enablePrivateNodes to set. + * @return This builder for chaining. + */ + public Builder setEnablePrivateNodes(boolean value) { + + enablePrivateNodes_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Whether nodes have internal IP addresses only.
+     * If enable_private_nodes is not specified, then the value is derived from
+     * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
+     * 
+ * + * optional bool enable_private_nodes = 9; + * @return This builder for chaining. + */ + public Builder clearEnablePrivateNodes() { + bitField0_ = (bitField0_ & ~0x00000008); + enablePrivateNodes_ = false; + onChanged(); + return this; + } + + private com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig networkPerformanceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig, com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Builder, com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfigOrBuilder> networkPerformanceConfigBuilder_; + /** + *
+     * Network bandwidth tier configuration.
+     * 
+ * + * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; + * @return Whether the networkPerformanceConfig field is set. + */ + public boolean hasNetworkPerformanceConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+     * Network bandwidth tier configuration.
+     * 
+ * + * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; + * @return The networkPerformanceConfig. + */ + public com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig getNetworkPerformanceConfig() { + if (networkPerformanceConfigBuilder_ == null) { + return networkPerformanceConfig_ == null ? com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.getDefaultInstance() : networkPerformanceConfig_; + } else { + return networkPerformanceConfigBuilder_.getMessage(); + } + } + /** + *
+     * Network bandwidth tier configuration.
+     * 
+ * + * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; + */ + public Builder setNetworkPerformanceConfig(com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig value) { + if (networkPerformanceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkPerformanceConfig_ = value; + } else { + networkPerformanceConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Network bandwidth tier configuration.
+     * 
+ * + * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; + */ + public Builder setNetworkPerformanceConfig( + com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Builder builderForValue) { + if (networkPerformanceConfigBuilder_ == null) { + networkPerformanceConfig_ = builderForValue.build(); + } else { + networkPerformanceConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Network bandwidth tier configuration.
+     * 
+ * + * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; + */ + public Builder mergeNetworkPerformanceConfig(com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig value) { + if (networkPerformanceConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + networkPerformanceConfig_ != null && + networkPerformanceConfig_ != com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.getDefaultInstance()) { + getNetworkPerformanceConfigBuilder().mergeFrom(value); + } else { + networkPerformanceConfig_ = value; + } + } else { + networkPerformanceConfigBuilder_.mergeFrom(value); + } + if (networkPerformanceConfig_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + *
+     * Network bandwidth tier configuration.
+     * 
+ * + * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; + */ + public Builder clearNetworkPerformanceConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + networkPerformanceConfig_ = null; + if (networkPerformanceConfigBuilder_ != null) { + networkPerformanceConfigBuilder_.dispose(); + networkPerformanceConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Network bandwidth tier configuration.
+     * 
+ * + * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; + */ + public com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Builder getNetworkPerformanceConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getNetworkPerformanceConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Network bandwidth tier configuration.
+     * 
+ * + * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; + */ + public com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfigOrBuilder getNetworkPerformanceConfigOrBuilder() { + if (networkPerformanceConfigBuilder_ != null) { + return networkPerformanceConfigBuilder_.getMessageOrBuilder(); + } else { + return networkPerformanceConfig_ == null ? + com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.getDefaultInstance() : networkPerformanceConfig_; + } + } + /** + *
+     * Network bandwidth tier configuration.
+     * 
+ * + * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig, com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Builder, com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfigOrBuilder> + getNetworkPerformanceConfigFieldBuilder() { + if (networkPerformanceConfigBuilder_ == null) { + networkPerformanceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig, com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig.Builder, com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfigOrBuilder>( + getNetworkPerformanceConfig(), + getParentForChildren(), + isClean()); + networkPerformanceConfig_ = null; + } + return networkPerformanceConfigBuilder_; + } + + private com.google.container.v1beta1.PodCIDROverprovisionConfig podCidrOverprovisionConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PodCIDROverprovisionConfig, com.google.container.v1beta1.PodCIDROverprovisionConfig.Builder, com.google.container.v1beta1.PodCIDROverprovisionConfigOrBuilder> podCidrOverprovisionConfigBuilder_; + /** + *
+     * [PRIVATE FIELD]
+     * Pod CIDR size overprovisioning config for the nodepool.
+     *
+     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+     * of max_pods_per_node is rounded off to next power of 2 and we then double
+     * that to get the size of pod CIDR block per node.
+     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+     *
+     * This config can disable the doubling of IPs (we still round off to next
+     * power of 2)
+     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+     * overprovisioning is disabled.
+     * 
+ * + * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; + * @return Whether the podCidrOverprovisionConfig field is set. + */ + public boolean hasPodCidrOverprovisionConfig() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+     * [PRIVATE FIELD]
+     * Pod CIDR size overprovisioning config for the nodepool.
+     *
+     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+     * of max_pods_per_node is rounded off to next power of 2 and we then double
+     * that to get the size of pod CIDR block per node.
+     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+     *
+     * This config can disable the doubling of IPs (we still round off to next
+     * power of 2)
+     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+     * overprovisioning is disabled.
+     * 
+ * + * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; + * @return The podCidrOverprovisionConfig. + */ + public com.google.container.v1beta1.PodCIDROverprovisionConfig getPodCidrOverprovisionConfig() { + if (podCidrOverprovisionConfigBuilder_ == null) { + return podCidrOverprovisionConfig_ == null ? com.google.container.v1beta1.PodCIDROverprovisionConfig.getDefaultInstance() : podCidrOverprovisionConfig_; + } else { + return podCidrOverprovisionConfigBuilder_.getMessage(); + } + } + /** + *
+     * [PRIVATE FIELD]
+     * Pod CIDR size overprovisioning config for the nodepool.
+     *
+     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+     * of max_pods_per_node is rounded off to next power of 2 and we then double
+     * that to get the size of pod CIDR block per node.
+     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+     *
+     * This config can disable the doubling of IPs (we still round off to next
+     * power of 2)
+     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+     * overprovisioning is disabled.
+     * 
+ * + * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; + */ + public Builder setPodCidrOverprovisionConfig(com.google.container.v1beta1.PodCIDROverprovisionConfig value) { + if (podCidrOverprovisionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + podCidrOverprovisionConfig_ = value; + } else { + podCidrOverprovisionConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * [PRIVATE FIELD]
+     * Pod CIDR size overprovisioning config for the nodepool.
+     *
+     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+     * of max_pods_per_node is rounded off to next power of 2 and we then double
+     * that to get the size of pod CIDR block per node.
+     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+     *
+     * This config can disable the doubling of IPs (we still round off to next
+     * power of 2)
+     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+     * overprovisioning is disabled.
+     * 
+ * + * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; + */ + public Builder setPodCidrOverprovisionConfig( + com.google.container.v1beta1.PodCIDROverprovisionConfig.Builder builderForValue) { + if (podCidrOverprovisionConfigBuilder_ == null) { + podCidrOverprovisionConfig_ = builderForValue.build(); + } else { + podCidrOverprovisionConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * [PRIVATE FIELD]
+     * Pod CIDR size overprovisioning config for the nodepool.
+     *
+     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+     * of max_pods_per_node is rounded off to next power of 2 and we then double
+     * that to get the size of pod CIDR block per node.
+     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+     *
+     * This config can disable the doubling of IPs (we still round off to next
+     * power of 2)
+     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+     * overprovisioning is disabled.
+     * 
+ * + * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; + */ + public Builder mergePodCidrOverprovisionConfig(com.google.container.v1beta1.PodCIDROverprovisionConfig value) { + if (podCidrOverprovisionConfigBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && + podCidrOverprovisionConfig_ != null && + podCidrOverprovisionConfig_ != com.google.container.v1beta1.PodCIDROverprovisionConfig.getDefaultInstance()) { + getPodCidrOverprovisionConfigBuilder().mergeFrom(value); + } else { + podCidrOverprovisionConfig_ = value; + } + } else { + podCidrOverprovisionConfigBuilder_.mergeFrom(value); + } + if (podCidrOverprovisionConfig_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + *
+     * [PRIVATE FIELD]
+     * Pod CIDR size overprovisioning config for the nodepool.
+     *
+     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+     * of max_pods_per_node is rounded off to next power of 2 and we then double
+     * that to get the size of pod CIDR block per node.
+     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+     *
+     * This config can disable the doubling of IPs (we still round off to next
+     * power of 2)
+     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+     * overprovisioning is disabled.
+     * 
+ * + * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; + */ + public Builder clearPodCidrOverprovisionConfig() { + bitField0_ = (bitField0_ & ~0x00000020); + podCidrOverprovisionConfig_ = null; + if (podCidrOverprovisionConfigBuilder_ != null) { + podCidrOverprovisionConfigBuilder_.dispose(); + podCidrOverprovisionConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * [PRIVATE FIELD]
+     * Pod CIDR size overprovisioning config for the nodepool.
+     *
+     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+     * of max_pods_per_node is rounded off to next power of 2 and we then double
+     * that to get the size of pod CIDR block per node.
+     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+     *
+     * This config can disable the doubling of IPs (we still round off to next
+     * power of 2)
+     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+     * overprovisioning is disabled.
+     * 
+ * + * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; + */ + public com.google.container.v1beta1.PodCIDROverprovisionConfig.Builder getPodCidrOverprovisionConfigBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getPodCidrOverprovisionConfigFieldBuilder().getBuilder(); + } + /** + *
+     * [PRIVATE FIELD]
+     * Pod CIDR size overprovisioning config for the nodepool.
+     *
+     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+     * of max_pods_per_node is rounded off to next power of 2 and we then double
+     * that to get the size of pod CIDR block per node.
+     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+     *
+     * This config can disable the doubling of IPs (we still round off to next
+     * power of 2)
+     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+     * overprovisioning is disabled.
+     * 
+ * + * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; + */ + public com.google.container.v1beta1.PodCIDROverprovisionConfigOrBuilder getPodCidrOverprovisionConfigOrBuilder() { + if (podCidrOverprovisionConfigBuilder_ != null) { + return podCidrOverprovisionConfigBuilder_.getMessageOrBuilder(); + } else { + return podCidrOverprovisionConfig_ == null ? + com.google.container.v1beta1.PodCIDROverprovisionConfig.getDefaultInstance() : podCidrOverprovisionConfig_; + } + } + /** + *
+     * [PRIVATE FIELD]
+     * Pod CIDR size overprovisioning config for the nodepool.
+     *
+     * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+     * of max_pods_per_node is rounded off to next power of 2 and we then double
+     * that to get the size of pod CIDR block per node.
+     * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+     *
+     * This config can disable the doubling of IPs (we still round off to next
+     * power of 2)
+     * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+     * overprovisioning is disabled.
+     * 
+ * + * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PodCIDROverprovisionConfig, com.google.container.v1beta1.PodCIDROverprovisionConfig.Builder, com.google.container.v1beta1.PodCIDROverprovisionConfigOrBuilder> + getPodCidrOverprovisionConfigFieldBuilder() { + if (podCidrOverprovisionConfigBuilder_ == null) { + podCidrOverprovisionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.PodCIDROverprovisionConfig, com.google.container.v1beta1.PodCIDROverprovisionConfig.Builder, com.google.container.v1beta1.PodCIDROverprovisionConfigOrBuilder>( + getPodCidrOverprovisionConfig(), + getParentForChildren(), + isClean()); + podCidrOverprovisionConfig_ = null; + } + return podCidrOverprovisionConfigBuilder_; + } + + private java.util.List additionalNodeNetworkConfigs_ = + java.util.Collections.emptyList(); + private void ensureAdditionalNodeNetworkConfigsIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + additionalNodeNetworkConfigs_ = new java.util.ArrayList(additionalNodeNetworkConfigs_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.AdditionalNodeNetworkConfig, com.google.container.v1beta1.AdditionalNodeNetworkConfig.Builder, com.google.container.v1beta1.AdditionalNodeNetworkConfigOrBuilder> additionalNodeNetworkConfigsBuilder_; + + /** + *
+     * We specify the additional node networks for this node pool using this list.
+     * Each node network corresponds to an additional interface
+     * 
+ * + * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + public java.util.List getAdditionalNodeNetworkConfigsList() { + if (additionalNodeNetworkConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(additionalNodeNetworkConfigs_); + } else { + return additionalNodeNetworkConfigsBuilder_.getMessageList(); + } + } + /** + *
+     * We specify the additional node networks for this node pool using this list.
+     * Each node network corresponds to an additional interface
+     * 
+ * + * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + public int getAdditionalNodeNetworkConfigsCount() { + if (additionalNodeNetworkConfigsBuilder_ == null) { + return additionalNodeNetworkConfigs_.size(); + } else { + return additionalNodeNetworkConfigsBuilder_.getCount(); + } + } + /** + *
+     * We specify the additional node networks for this node pool using this list.
+     * Each node network corresponds to an additional interface
+     * 
+ * + * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + public com.google.container.v1beta1.AdditionalNodeNetworkConfig getAdditionalNodeNetworkConfigs(int index) { + if (additionalNodeNetworkConfigsBuilder_ == null) { + return additionalNodeNetworkConfigs_.get(index); + } else { + return additionalNodeNetworkConfigsBuilder_.getMessage(index); + } + } + /** + *
+     * We specify the additional node networks for this node pool using this list.
+     * Each node network corresponds to an additional interface
+     * 
+ * + * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + public Builder setAdditionalNodeNetworkConfigs( + int index, com.google.container.v1beta1.AdditionalNodeNetworkConfig value) { + if (additionalNodeNetworkConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalNodeNetworkConfigsIsMutable(); + additionalNodeNetworkConfigs_.set(index, value); + onChanged(); + } else { + additionalNodeNetworkConfigsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * We specify the additional node networks for this node pool using this list.
+     * Each node network corresponds to an additional interface
+     * 
+ * + * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + public Builder setAdditionalNodeNetworkConfigs( + int index, com.google.container.v1beta1.AdditionalNodeNetworkConfig.Builder builderForValue) { + if (additionalNodeNetworkConfigsBuilder_ == null) { + ensureAdditionalNodeNetworkConfigsIsMutable(); + additionalNodeNetworkConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + additionalNodeNetworkConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * We specify the additional node networks for this node pool using this list.
+     * Each node network corresponds to an additional interface
+     * 
+ * + * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + public Builder addAdditionalNodeNetworkConfigs(com.google.container.v1beta1.AdditionalNodeNetworkConfig value) { + if (additionalNodeNetworkConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalNodeNetworkConfigsIsMutable(); + additionalNodeNetworkConfigs_.add(value); + onChanged(); + } else { + additionalNodeNetworkConfigsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * We specify the additional node networks for this node pool using this list.
+     * Each node network corresponds to an additional interface
+     * 
+ * + * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + public Builder addAdditionalNodeNetworkConfigs( + int index, com.google.container.v1beta1.AdditionalNodeNetworkConfig value) { + if (additionalNodeNetworkConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalNodeNetworkConfigsIsMutable(); + additionalNodeNetworkConfigs_.add(index, value); + onChanged(); + } else { + additionalNodeNetworkConfigsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * We specify the additional node networks for this node pool using this list.
+     * Each node network corresponds to an additional interface
+     * 
+ * + * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + public Builder addAdditionalNodeNetworkConfigs( + com.google.container.v1beta1.AdditionalNodeNetworkConfig.Builder builderForValue) { + if (additionalNodeNetworkConfigsBuilder_ == null) { + ensureAdditionalNodeNetworkConfigsIsMutable(); + additionalNodeNetworkConfigs_.add(builderForValue.build()); + onChanged(); + } else { + additionalNodeNetworkConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * We specify the additional node networks for this node pool using this list.
+     * Each node network corresponds to an additional interface
+     * 
+ * + * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + public Builder addAdditionalNodeNetworkConfigs( + int index, com.google.container.v1beta1.AdditionalNodeNetworkConfig.Builder builderForValue) { + if (additionalNodeNetworkConfigsBuilder_ == null) { + ensureAdditionalNodeNetworkConfigsIsMutable(); + additionalNodeNetworkConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + additionalNodeNetworkConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * We specify the additional node networks for this node pool using this list.
+     * Each node network corresponds to an additional interface
+     * 
+ * + * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + public Builder addAllAdditionalNodeNetworkConfigs( + java.lang.Iterable values) { + if (additionalNodeNetworkConfigsBuilder_ == null) { + ensureAdditionalNodeNetworkConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, additionalNodeNetworkConfigs_); + onChanged(); + } else { + additionalNodeNetworkConfigsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * We specify the additional node networks for this node pool using this list.
+     * Each node network corresponds to an additional interface
+     * 
+ * + * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + public Builder clearAdditionalNodeNetworkConfigs() { + if (additionalNodeNetworkConfigsBuilder_ == null) { + additionalNodeNetworkConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + additionalNodeNetworkConfigsBuilder_.clear(); + } + return this; + } + /** + *
+     * We specify the additional node networks for this node pool using this list.
+     * Each node network corresponds to an additional interface
+     * 
+ * + * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + public Builder removeAdditionalNodeNetworkConfigs(int index) { + if (additionalNodeNetworkConfigsBuilder_ == null) { + ensureAdditionalNodeNetworkConfigsIsMutable(); + additionalNodeNetworkConfigs_.remove(index); + onChanged(); + } else { + additionalNodeNetworkConfigsBuilder_.remove(index); + } + return this; + } + /** + *
+     * We specify the additional node networks for this node pool using this list.
+     * Each node network corresponds to an additional interface
+     * 
+ * + * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + public com.google.container.v1beta1.AdditionalNodeNetworkConfig.Builder getAdditionalNodeNetworkConfigsBuilder( + int index) { + return getAdditionalNodeNetworkConfigsFieldBuilder().getBuilder(index); + } + /** + *
+     * We specify the additional node networks for this node pool using this list.
+     * Each node network corresponds to an additional interface
+     * 
+ * + * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + public com.google.container.v1beta1.AdditionalNodeNetworkConfigOrBuilder getAdditionalNodeNetworkConfigsOrBuilder( + int index) { + if (additionalNodeNetworkConfigsBuilder_ == null) { + return additionalNodeNetworkConfigs_.get(index); } else { + return additionalNodeNetworkConfigsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * We specify the additional node networks for this node pool using this list.
+     * Each node network corresponds to an additional interface
+     * 
+ * + * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + public java.util.List + getAdditionalNodeNetworkConfigsOrBuilderList() { + if (additionalNodeNetworkConfigsBuilder_ != null) { + return additionalNodeNetworkConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(additionalNodeNetworkConfigs_); + } + } + /** + *
+     * We specify the additional node networks for this node pool using this list.
+     * Each node network corresponds to an additional interface
+     * 
+ * + * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + public com.google.container.v1beta1.AdditionalNodeNetworkConfig.Builder addAdditionalNodeNetworkConfigsBuilder() { + return getAdditionalNodeNetworkConfigsFieldBuilder().addBuilder( + com.google.container.v1beta1.AdditionalNodeNetworkConfig.getDefaultInstance()); + } + /** + *
+     * We specify the additional node networks for this node pool using this list.
+     * Each node network corresponds to an additional interface
+     * 
+ * + * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + public com.google.container.v1beta1.AdditionalNodeNetworkConfig.Builder addAdditionalNodeNetworkConfigsBuilder( + int index) { + return getAdditionalNodeNetworkConfigsFieldBuilder().addBuilder( + index, com.google.container.v1beta1.AdditionalNodeNetworkConfig.getDefaultInstance()); + } + /** + *
+     * We specify the additional node networks for this node pool using this list.
+     * Each node network corresponds to an additional interface
+     * 
+ * + * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + public java.util.List + getAdditionalNodeNetworkConfigsBuilderList() { + return getAdditionalNodeNetworkConfigsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.AdditionalNodeNetworkConfig, com.google.container.v1beta1.AdditionalNodeNetworkConfig.Builder, com.google.container.v1beta1.AdditionalNodeNetworkConfigOrBuilder> + getAdditionalNodeNetworkConfigsFieldBuilder() { + if (additionalNodeNetworkConfigsBuilder_ == null) { + additionalNodeNetworkConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.AdditionalNodeNetworkConfig, com.google.container.v1beta1.AdditionalNodeNetworkConfig.Builder, com.google.container.v1beta1.AdditionalNodeNetworkConfigOrBuilder>( + additionalNodeNetworkConfigs_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + additionalNodeNetworkConfigs_ = null; + } + return additionalNodeNetworkConfigsBuilder_; + } + + private java.util.List additionalPodNetworkConfigs_ = + java.util.Collections.emptyList(); + private void ensureAdditionalPodNetworkConfigsIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + additionalPodNetworkConfigs_ = new java.util.ArrayList(additionalPodNetworkConfigs_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.AdditionalPodNetworkConfig, com.google.container.v1beta1.AdditionalPodNetworkConfig.Builder, com.google.container.v1beta1.AdditionalPodNetworkConfigOrBuilder> additionalPodNetworkConfigsBuilder_; + + /** + *
+     * We specify the additional pod networks for this node pool using this list.
+     * Each pod network corresponds to an additional alias IP range for the node
+     * 
+ * + * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + public java.util.List getAdditionalPodNetworkConfigsList() { + if (additionalPodNetworkConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(additionalPodNetworkConfigs_); + } else { + return additionalPodNetworkConfigsBuilder_.getMessageList(); + } + } + /** + *
+     * We specify the additional pod networks for this node pool using this list.
+     * Each pod network corresponds to an additional alias IP range for the node
+     * 
+ * + * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + public int getAdditionalPodNetworkConfigsCount() { + if (additionalPodNetworkConfigsBuilder_ == null) { + return additionalPodNetworkConfigs_.size(); + } else { + return additionalPodNetworkConfigsBuilder_.getCount(); + } + } + /** + *
+     * We specify the additional pod networks for this node pool using this list.
+     * Each pod network corresponds to an additional alias IP range for the node
+     * 
+ * + * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + public com.google.container.v1beta1.AdditionalPodNetworkConfig getAdditionalPodNetworkConfigs(int index) { + if (additionalPodNetworkConfigsBuilder_ == null) { + return additionalPodNetworkConfigs_.get(index); + } else { + return additionalPodNetworkConfigsBuilder_.getMessage(index); + } + } + /** + *
+     * We specify the additional pod networks for this node pool using this list.
+     * Each pod network corresponds to an additional alias IP range for the node
+     * 
+ * + * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + public Builder setAdditionalPodNetworkConfigs( + int index, com.google.container.v1beta1.AdditionalPodNetworkConfig value) { + if (additionalPodNetworkConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalPodNetworkConfigsIsMutable(); + additionalPodNetworkConfigs_.set(index, value); + onChanged(); + } else { + additionalPodNetworkConfigsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * We specify the additional pod networks for this node pool using this list.
+     * Each pod network corresponds to an additional alias IP range for the node
+     * 
+ * + * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + public Builder setAdditionalPodNetworkConfigs( + int index, com.google.container.v1beta1.AdditionalPodNetworkConfig.Builder builderForValue) { + if (additionalPodNetworkConfigsBuilder_ == null) { + ensureAdditionalPodNetworkConfigsIsMutable(); + additionalPodNetworkConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + additionalPodNetworkConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * We specify the additional pod networks for this node pool using this list.
+     * Each pod network corresponds to an additional alias IP range for the node
+     * 
+ * + * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + public Builder addAdditionalPodNetworkConfigs(com.google.container.v1beta1.AdditionalPodNetworkConfig value) { + if (additionalPodNetworkConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalPodNetworkConfigsIsMutable(); + additionalPodNetworkConfigs_.add(value); + onChanged(); + } else { + additionalPodNetworkConfigsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * We specify the additional pod networks for this node pool using this list.
+     * Each pod network corresponds to an additional alias IP range for the node
+     * 
+ * + * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + public Builder addAdditionalPodNetworkConfigs( + int index, com.google.container.v1beta1.AdditionalPodNetworkConfig value) { + if (additionalPodNetworkConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalPodNetworkConfigsIsMutable(); + additionalPodNetworkConfigs_.add(index, value); + onChanged(); + } else { + additionalPodNetworkConfigsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * We specify the additional pod networks for this node pool using this list.
+     * Each pod network corresponds to an additional alias IP range for the node
+     * 
+ * + * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + public Builder addAdditionalPodNetworkConfigs( + com.google.container.v1beta1.AdditionalPodNetworkConfig.Builder builderForValue) { + if (additionalPodNetworkConfigsBuilder_ == null) { + ensureAdditionalPodNetworkConfigsIsMutable(); + additionalPodNetworkConfigs_.add(builderForValue.build()); + onChanged(); + } else { + additionalPodNetworkConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * We specify the additional pod networks for this node pool using this list.
+     * Each pod network corresponds to an additional alias IP range for the node
+     * 
+ * + * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + public Builder addAdditionalPodNetworkConfigs( + int index, com.google.container.v1beta1.AdditionalPodNetworkConfig.Builder builderForValue) { + if (additionalPodNetworkConfigsBuilder_ == null) { + ensureAdditionalPodNetworkConfigsIsMutable(); + additionalPodNetworkConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + additionalPodNetworkConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * We specify the additional pod networks for this node pool using this list.
+     * Each pod network corresponds to an additional alias IP range for the node
+     * 
+ * + * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + public Builder addAllAdditionalPodNetworkConfigs( + java.lang.Iterable values) { + if (additionalPodNetworkConfigsBuilder_ == null) { + ensureAdditionalPodNetworkConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, additionalPodNetworkConfigs_); + onChanged(); + } else { + additionalPodNetworkConfigsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * We specify the additional pod networks for this node pool using this list.
+     * Each pod network corresponds to an additional alias IP range for the node
+     * 
+ * + * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + public Builder clearAdditionalPodNetworkConfigs() { + if (additionalPodNetworkConfigsBuilder_ == null) { + additionalPodNetworkConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + additionalPodNetworkConfigsBuilder_.clear(); + } + return this; + } + /** + *
+     * We specify the additional pod networks for this node pool using this list.
+     * Each pod network corresponds to an additional alias IP range for the node
+     * 
+ * + * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + public Builder removeAdditionalPodNetworkConfigs(int index) { + if (additionalPodNetworkConfigsBuilder_ == null) { + ensureAdditionalPodNetworkConfigsIsMutable(); + additionalPodNetworkConfigs_.remove(index); + onChanged(); + } else { + additionalPodNetworkConfigsBuilder_.remove(index); + } + return this; + } + /** + *
+     * We specify the additional pod networks for this node pool using this list.
+     * Each pod network corresponds to an additional alias IP range for the node
+     * 
+ * + * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + public com.google.container.v1beta1.AdditionalPodNetworkConfig.Builder getAdditionalPodNetworkConfigsBuilder( + int index) { + return getAdditionalPodNetworkConfigsFieldBuilder().getBuilder(index); + } + /** + *
+     * We specify the additional pod networks for this node pool using this list.
+     * Each pod network corresponds to an additional alias IP range for the node
+     * 
+ * + * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + public com.google.container.v1beta1.AdditionalPodNetworkConfigOrBuilder getAdditionalPodNetworkConfigsOrBuilder( + int index) { + if (additionalPodNetworkConfigsBuilder_ == null) { + return additionalPodNetworkConfigs_.get(index); } else { + return additionalPodNetworkConfigsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * We specify the additional pod networks for this node pool using this list.
+     * Each pod network corresponds to an additional alias IP range for the node
+     * 
+ * + * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + public java.util.List + getAdditionalPodNetworkConfigsOrBuilderList() { + if (additionalPodNetworkConfigsBuilder_ != null) { + return additionalPodNetworkConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(additionalPodNetworkConfigs_); + } + } + /** + *
+     * We specify the additional pod networks for this node pool using this list.
+     * Each pod network corresponds to an additional alias IP range for the node
+     * 
+ * + * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + public com.google.container.v1beta1.AdditionalPodNetworkConfig.Builder addAdditionalPodNetworkConfigsBuilder() { + return getAdditionalPodNetworkConfigsFieldBuilder().addBuilder( + com.google.container.v1beta1.AdditionalPodNetworkConfig.getDefaultInstance()); + } + /** + *
+     * We specify the additional pod networks for this node pool using this list.
+     * Each pod network corresponds to an additional alias IP range for the node
+     * 
+ * + * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + public com.google.container.v1beta1.AdditionalPodNetworkConfig.Builder addAdditionalPodNetworkConfigsBuilder( + int index) { + return getAdditionalPodNetworkConfigsFieldBuilder().addBuilder( + index, com.google.container.v1beta1.AdditionalPodNetworkConfig.getDefaultInstance()); + } + /** + *
+     * We specify the additional pod networks for this node pool using this list.
+     * Each pod network corresponds to an additional alias IP range for the node
+     * 
+ * + * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + public java.util.List + getAdditionalPodNetworkConfigsBuilderList() { + return getAdditionalPodNetworkConfigsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.AdditionalPodNetworkConfig, com.google.container.v1beta1.AdditionalPodNetworkConfig.Builder, com.google.container.v1beta1.AdditionalPodNetworkConfigOrBuilder> + getAdditionalPodNetworkConfigsFieldBuilder() { + if (additionalPodNetworkConfigsBuilder_ == null) { + additionalPodNetworkConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.AdditionalPodNetworkConfig, com.google.container.v1beta1.AdditionalPodNetworkConfig.Builder, com.google.container.v1beta1.AdditionalPodNetworkConfigOrBuilder>( + additionalPodNetworkConfigs_, + ((bitField0_ & 0x00000080) != 0), + getParentForChildren(), + isClean()); + additionalPodNetworkConfigs_ = null; + } + return additionalPodNetworkConfigsBuilder_; + } + + private double podIpv4RangeUtilization_ ; + /** + *
+     * Output only. [Output only] The utilization of the IPv4 range for the pod.
+     * The ratio is Usage/[Total number of IPs in the secondary range],
+     * Usage=numNodes*numZones*podIPsPerNode.
+     * 
+ * + * double pod_ipv4_range_utilization = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The podIpv4RangeUtilization. + */ + @java.lang.Override + public double getPodIpv4RangeUtilization() { + return podIpv4RangeUtilization_; + } + /** + *
+     * Output only. [Output only] The utilization of the IPv4 range for the pod.
+     * The ratio is Usage/[Total number of IPs in the secondary range],
+     * Usage=numNodes*numZones*podIPsPerNode.
+     * 
+ * + * double pod_ipv4_range_utilization = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The podIpv4RangeUtilization to set. + * @return This builder for chaining. + */ + public Builder setPodIpv4RangeUtilization(double value) { + + podIpv4RangeUtilization_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * Output only. [Output only] The utilization of the IPv4 range for the pod.
+     * The ratio is Usage/[Total number of IPs in the secondary range],
+     * Usage=numNodes*numZones*podIPsPerNode.
+     * 
+ * + * double pod_ipv4_range_utilization = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearPodIpv4RangeUtilization() { + bitField0_ = (bitField0_ & ~0x00000100); + podIpv4RangeUtilization_ = 0D; + 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.NodeNetworkConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodeNetworkConfig) + private static final com.google.container.v1beta1.NodeNetworkConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NodeNetworkConfig(); + } + + public static com.google.container.v1beta1.NodeNetworkConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeNetworkConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.NodeNetworkConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeNetworkConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeNetworkConfigOrBuilder.java new file mode 100644 index 000000000000..865fbe0589f7 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeNetworkConfigOrBuilder.java @@ -0,0 +1,334 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface NodeNetworkConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodeNetworkConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Input only. Whether to create a new range for pod IPs in this node pool.
+   * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they
+   * are not specified.
+   *
+   * If neither `create_pod_range` or `pod_range` are specified, the
+   * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is
+   * used.
+   *
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   *
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return The createPodRange. + */ + boolean getCreatePodRange(); + + /** + *
+   * The ID of the secondary range for pod IPs.
+   * If `create_pod_range` is true, this ID is used for the new range.
+   * If `create_pod_range` is false, uses an existing secondary range with this
+   * ID.
+   *
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   *
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * string pod_range = 5; + * @return The podRange. + */ + java.lang.String getPodRange(); + /** + *
+   * The ID of the secondary range for pod IPs.
+   * If `create_pod_range` is true, this ID is used for the new range.
+   * If `create_pod_range` is false, uses an existing secondary range with this
+   * ID.
+   *
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   *
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * string pod_range = 5; + * @return The bytes for podRange. + */ + com.google.protobuf.ByteString + getPodRangeBytes(); + + /** + *
+   * The IP address range for pod IPs in this node pool.
+   *
+   * Only applicable if `create_pod_range` is true.
+   *
+   * Set to blank to have a range chosen with the default size.
+   *
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   *
+   * Set to a
+   * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+   *
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   *
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * string pod_ipv4_cidr_block = 6; + * @return The podIpv4CidrBlock. + */ + java.lang.String getPodIpv4CidrBlock(); + /** + *
+   * The IP address range for pod IPs in this node pool.
+   *
+   * Only applicable if `create_pod_range` is true.
+   *
+   * Set to blank to have a range chosen with the default size.
+   *
+   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
+   * netmask.
+   *
+   * Set to a
+   * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
+   * notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
+   *
+   * Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
+   *
+   * This field cannot be changed after the node pool has been created.
+   * 
+ * + * string pod_ipv4_cidr_block = 6; + * @return The bytes for podIpv4CidrBlock. + */ + com.google.protobuf.ByteString + getPodIpv4CidrBlockBytes(); + + /** + *
+   * Whether nodes have internal IP addresses only.
+   * If enable_private_nodes is not specified, then the value is derived from
+   * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
+   * 
+ * + * optional bool enable_private_nodes = 9; + * @return Whether the enablePrivateNodes field is set. + */ + boolean hasEnablePrivateNodes(); + /** + *
+   * Whether nodes have internal IP addresses only.
+   * If enable_private_nodes is not specified, then the value is derived from
+   * [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
+   * 
+ * + * optional bool enable_private_nodes = 9; + * @return The enablePrivateNodes. + */ + boolean getEnablePrivateNodes(); + + /** + *
+   * Network bandwidth tier configuration.
+   * 
+ * + * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; + * @return Whether the networkPerformanceConfig field is set. + */ + boolean hasNetworkPerformanceConfig(); + /** + *
+   * Network bandwidth tier configuration.
+   * 
+ * + * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; + * @return The networkPerformanceConfig. + */ + com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig getNetworkPerformanceConfig(); + /** + *
+   * Network bandwidth tier configuration.
+   * 
+ * + * optional .google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; + */ + com.google.container.v1beta1.NodeNetworkConfig.NetworkPerformanceConfigOrBuilder getNetworkPerformanceConfigOrBuilder(); + + /** + *
+   * [PRIVATE FIELD]
+   * Pod CIDR size overprovisioning config for the nodepool.
+   *
+   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+   * of max_pods_per_node is rounded off to next power of 2 and we then double
+   * that to get the size of pod CIDR block per node.
+   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+   *
+   * This config can disable the doubling of IPs (we still round off to next
+   * power of 2)
+   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+   * overprovisioning is disabled.
+   * 
+ * + * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; + * @return Whether the podCidrOverprovisionConfig field is set. + */ + boolean hasPodCidrOverprovisionConfig(); + /** + *
+   * [PRIVATE FIELD]
+   * Pod CIDR size overprovisioning config for the nodepool.
+   *
+   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+   * of max_pods_per_node is rounded off to next power of 2 and we then double
+   * that to get the size of pod CIDR block per node.
+   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+   *
+   * This config can disable the doubling of IPs (we still round off to next
+   * power of 2)
+   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+   * overprovisioning is disabled.
+   * 
+ * + * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; + * @return The podCidrOverprovisionConfig. + */ + com.google.container.v1beta1.PodCIDROverprovisionConfig getPodCidrOverprovisionConfig(); + /** + *
+   * [PRIVATE FIELD]
+   * Pod CIDR size overprovisioning config for the nodepool.
+   *
+   * Pod CIDR size per node depends on max_pods_per_node. By default, the value
+   * of max_pods_per_node is rounded off to next power of 2 and we then double
+   * that to get the size of pod CIDR block per node.
+   * Example: max_pods_per_node of 30 would result in 64 IPs (/26).
+   *
+   * This config can disable the doubling of IPs (we still round off to next
+   * power of 2)
+   * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
+   * overprovisioning is disabled.
+   * 
+ * + * .google.container.v1beta1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; + */ + com.google.container.v1beta1.PodCIDROverprovisionConfigOrBuilder getPodCidrOverprovisionConfigOrBuilder(); + + /** + *
+   * We specify the additional node networks for this node pool using this list.
+   * Each node network corresponds to an additional interface
+   * 
+ * + * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + java.util.List + getAdditionalNodeNetworkConfigsList(); + /** + *
+   * We specify the additional node networks for this node pool using this list.
+   * Each node network corresponds to an additional interface
+   * 
+ * + * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + com.google.container.v1beta1.AdditionalNodeNetworkConfig getAdditionalNodeNetworkConfigs(int index); + /** + *
+   * We specify the additional node networks for this node pool using this list.
+   * Each node network corresponds to an additional interface
+   * 
+ * + * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + int getAdditionalNodeNetworkConfigsCount(); + /** + *
+   * We specify the additional node networks for this node pool using this list.
+   * Each node network corresponds to an additional interface
+   * 
+ * + * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + java.util.List + getAdditionalNodeNetworkConfigsOrBuilderList(); + /** + *
+   * We specify the additional node networks for this node pool using this list.
+   * Each node network corresponds to an additional interface
+   * 
+ * + * repeated .google.container.v1beta1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; + */ + com.google.container.v1beta1.AdditionalNodeNetworkConfigOrBuilder getAdditionalNodeNetworkConfigsOrBuilder( + int index); + + /** + *
+   * We specify the additional pod networks for this node pool using this list.
+   * Each pod network corresponds to an additional alias IP range for the node
+   * 
+ * + * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + java.util.List + getAdditionalPodNetworkConfigsList(); + /** + *
+   * We specify the additional pod networks for this node pool using this list.
+   * Each pod network corresponds to an additional alias IP range for the node
+   * 
+ * + * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + com.google.container.v1beta1.AdditionalPodNetworkConfig getAdditionalPodNetworkConfigs(int index); + /** + *
+   * We specify the additional pod networks for this node pool using this list.
+   * Each pod network corresponds to an additional alias IP range for the node
+   * 
+ * + * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + int getAdditionalPodNetworkConfigsCount(); + /** + *
+   * We specify the additional pod networks for this node pool using this list.
+   * Each pod network corresponds to an additional alias IP range for the node
+   * 
+ * + * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + java.util.List + getAdditionalPodNetworkConfigsOrBuilderList(); + /** + *
+   * We specify the additional pod networks for this node pool using this list.
+   * Each pod network corresponds to an additional alias IP range for the node
+   * 
+ * + * repeated .google.container.v1beta1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; + */ + com.google.container.v1beta1.AdditionalPodNetworkConfigOrBuilder getAdditionalPodNetworkConfigsOrBuilder( + int index); + + /** + *
+   * Output only. [Output only] The utilization of the IPv4 range for the pod.
+   * The ratio is Usage/[Total number of IPs in the secondary range],
+   * Usage=numNodes*numZones*podIPsPerNode.
+   * 
+ * + * double pod_ipv4_range_utilization = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The podIpv4RangeUtilization. + */ + double getPodIpv4RangeUtilization(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePool.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePool.java new file mode 100644 index 000000000000..f771955f73dd --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePool.java @@ -0,0 +1,10542 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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.emptyList(); + selfLink_ = ""; + version_ = ""; + instanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + status_ = 0; + statusMessage_ = ""; + conditions_ = java.util.Collections.emptyList(); + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NodePool(); + } + + 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< + Status> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Status findValueByNumber(int number) { + return Status.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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(); + + /** + *
+     * Update strategy of the node pool.
+     * 
+ * + * optional .google.container.v1beta1.NodePoolUpdateStrategy strategy = 3; + * @return Whether the strategy field is set. + */ + boolean hasStrategy(); + /** + *
+     * Update strategy of the node pool.
+     * 
+ * + * optional .google.container.v1beta1.NodePoolUpdateStrategy strategy = 3; + * @return The enum numeric value on the wire for strategy. + */ + int getStrategyValue(); + /** + *
+     * Update strategy of the node pool.
+     * 
+ * + * optional .google.container.v1beta1.NodePoolUpdateStrategy strategy = 3; + * @return The strategy. + */ + com.google.container.v1beta1.NodePoolUpdateStrategy getStrategy(); + + /** + *
+     * Settings for blue-green upgrade strategy.
+     * 
+ * + * optional .google.container.v1beta1.BlueGreenSettings blue_green_settings = 4; + * @return Whether the blueGreenSettings field is set. + */ + boolean hasBlueGreenSettings(); + /** + *
+     * Settings for blue-green upgrade strategy.
+     * 
+ * + * optional .google.container.v1beta1.BlueGreenSettings blue_green_settings = 4; + * @return The blueGreenSettings. + */ + com.google.container.v1beta1.BlueGreenSettings getBlueGreenSettings(); + /** + *
+     * Settings for blue-green upgrade strategy.
+     * 
+ * + * optional .google.container.v1beta1.BlueGreenSettings blue_green_settings = 4; + */ + com.google.container.v1beta1.BlueGreenSettingsOrBuilder getBlueGreenSettingsOrBuilder(); + } + /** + *
+   * 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.
+   *
+   * These upgrade settings configure the upgrade strategy for the node pool.
+   * Use strategy to switch between the strategies applied to the node pool.
+   *
+   * If the strategy is SURGE, use max_surge and max_unavailable to control
+   * the level of parallelism and the level of disruption caused by upgrade.
+   * 1. 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.
+   * 2. maxUnavailable controls the number of nodes that can be simultaneously
+   * unavailable.
+   * 3. (maxUnavailable + maxSurge) determines the level of parallelism (how
+   * many nodes are being upgraded at the same time).
+   *
+   * If the strategy is BLUE_GREEN, use blue_green_settings to configure the
+   * blue-green upgrade related settings.
+   * 1. standard_rollout_policy is the default policy. The policy is used to
+   * control the way blue pool gets drained. The draining is executed in the
+   * batch mode. The batch size could be specified as either percentage of the
+   * node pool size or the number of nodes. batch_soak_duration is the soak
+   * time after each batch gets drained.
+   * 2. node_pool_soak_duration is the soak time after all blue nodes are
+   * drained. After this period, the blue pool nodes will be deleted.
+   * 
+ * + * 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() { + strategy_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UpgradeSettings(); + } + + 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); + } + + private int bitField0_; + public static final int MAX_SURGE_FIELD_NUMBER = 1; + private int maxSurge_ = 0; + /** + *
+     * 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_ = 0; + /** + *
+     * 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_; + } + + public static final int STRATEGY_FIELD_NUMBER = 3; + private int strategy_ = 0; + /** + *
+     * Update strategy of the node pool.
+     * 
+ * + * optional .google.container.v1beta1.NodePoolUpdateStrategy strategy = 3; + * @return Whether the strategy field is set. + */ + @java.lang.Override public boolean hasStrategy() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Update strategy of the node pool.
+     * 
+ * + * optional .google.container.v1beta1.NodePoolUpdateStrategy strategy = 3; + * @return The enum numeric value on the wire for strategy. + */ + @java.lang.Override public int getStrategyValue() { + return strategy_; + } + /** + *
+     * Update strategy of the node pool.
+     * 
+ * + * optional .google.container.v1beta1.NodePoolUpdateStrategy strategy = 3; + * @return The strategy. + */ + @java.lang.Override public com.google.container.v1beta1.NodePoolUpdateStrategy getStrategy() { + com.google.container.v1beta1.NodePoolUpdateStrategy result = com.google.container.v1beta1.NodePoolUpdateStrategy.forNumber(strategy_); + return result == null ? com.google.container.v1beta1.NodePoolUpdateStrategy.UNRECOGNIZED : result; + } + + public static final int BLUE_GREEN_SETTINGS_FIELD_NUMBER = 4; + private com.google.container.v1beta1.BlueGreenSettings blueGreenSettings_; + /** + *
+     * Settings for blue-green upgrade strategy.
+     * 
+ * + * optional .google.container.v1beta1.BlueGreenSettings blue_green_settings = 4; + * @return Whether the blueGreenSettings field is set. + */ + @java.lang.Override + public boolean hasBlueGreenSettings() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Settings for blue-green upgrade strategy.
+     * 
+ * + * optional .google.container.v1beta1.BlueGreenSettings blue_green_settings = 4; + * @return The blueGreenSettings. + */ + @java.lang.Override + public com.google.container.v1beta1.BlueGreenSettings getBlueGreenSettings() { + return blueGreenSettings_ == null ? com.google.container.v1beta1.BlueGreenSettings.getDefaultInstance() : blueGreenSettings_; + } + /** + *
+     * Settings for blue-green upgrade strategy.
+     * 
+ * + * optional .google.container.v1beta1.BlueGreenSettings blue_green_settings = 4; + */ + @java.lang.Override + public com.google.container.v1beta1.BlueGreenSettingsOrBuilder getBlueGreenSettingsOrBuilder() { + return blueGreenSettings_ == null ? com.google.container.v1beta1.BlueGreenSettings.getDefaultInstance() : blueGreenSettings_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(3, strategy_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getBlueGreenSettings()); + } + getUnknownFields().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_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, strategy_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getBlueGreenSettings()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (hasStrategy() != other.hasStrategy()) return false; + if (hasStrategy()) { + if (strategy_ != other.strategy_) return false; + } + if (hasBlueGreenSettings() != other.hasBlueGreenSettings()) return false; + if (hasBlueGreenSettings()) { + if (!getBlueGreenSettings() + .equals(other.getBlueGreenSettings())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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(); + if (hasStrategy()) { + hash = (37 * hash) + STRATEGY_FIELD_NUMBER; + hash = (53 * hash) + strategy_; + } + if (hasBlueGreenSettings()) { + hash = (37 * hash) + BLUE_GREEN_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getBlueGreenSettings().hashCode(); + } + hash = (29 * hash) + getUnknownFields().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.
+     *
+     * These upgrade settings configure the upgrade strategy for the node pool.
+     * Use strategy to switch between the strategies applied to the node pool.
+     *
+     * If the strategy is SURGE, use max_surge and max_unavailable to control
+     * the level of parallelism and the level of disruption caused by upgrade.
+     * 1. 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.
+     * 2. maxUnavailable controls the number of nodes that can be simultaneously
+     * unavailable.
+     * 3. (maxUnavailable + maxSurge) determines the level of parallelism (how
+     * many nodes are being upgraded at the same time).
+     *
+     * If the strategy is BLUE_GREEN, use blue_green_settings to configure the
+     * blue-green upgrade related settings.
+     * 1. standard_rollout_policy is the default policy. The policy is used to
+     * control the way blue pool gets drained. The draining is executed in the
+     * batch mode. The batch size could be specified as either percentage of the
+     * node pool size or the number of nodes. batch_soak_duration is the soak
+     * time after each batch gets drained.
+     * 2. node_pool_soak_duration is the soak time after all blue nodes are
+     * drained. After this period, the blue pool nodes will be deleted.
+     * 
+ * + * 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) { + getBlueGreenSettingsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + maxSurge_ = 0; + maxUnavailable_ = 0; + strategy_ = 0; + blueGreenSettings_ = null; + if (blueGreenSettingsBuilder_ != null) { + blueGreenSettingsBuilder_.dispose(); + blueGreenSettingsBuilder_ = 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_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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.NodePool.UpgradeSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.maxSurge_ = maxSurge_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxUnavailable_ = maxUnavailable_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.strategy_ = strategy_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.blueGreenSettings_ = blueGreenSettingsBuilder_ == null + ? blueGreenSettings_ + : blueGreenSettingsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @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()); + } + if (other.hasStrategy()) { + setStrategy(other.getStrategy()); + } + if (other.hasBlueGreenSettings()) { + mergeBlueGreenSettings(other.getBlueGreenSettings()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + maxSurge_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + maxUnavailable_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + strategy_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + input.readMessage( + getBlueGreenSettingsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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() { + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000002; + 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() { + bitField0_ = (bitField0_ & ~0x00000002); + maxUnavailable_ = 0; + onChanged(); + return this; + } + + private int strategy_ = 0; + /** + *
+       * Update strategy of the node pool.
+       * 
+ * + * optional .google.container.v1beta1.NodePoolUpdateStrategy strategy = 3; + * @return Whether the strategy field is set. + */ + @java.lang.Override public boolean hasStrategy() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+       * Update strategy of the node pool.
+       * 
+ * + * optional .google.container.v1beta1.NodePoolUpdateStrategy strategy = 3; + * @return The enum numeric value on the wire for strategy. + */ + @java.lang.Override public int getStrategyValue() { + return strategy_; + } + /** + *
+       * Update strategy of the node pool.
+       * 
+ * + * optional .google.container.v1beta1.NodePoolUpdateStrategy strategy = 3; + * @param value The enum numeric value on the wire for strategy to set. + * @return This builder for chaining. + */ + public Builder setStrategyValue(int value) { + strategy_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Update strategy of the node pool.
+       * 
+ * + * optional .google.container.v1beta1.NodePoolUpdateStrategy strategy = 3; + * @return The strategy. + */ + @java.lang.Override + public com.google.container.v1beta1.NodePoolUpdateStrategy getStrategy() { + com.google.container.v1beta1.NodePoolUpdateStrategy result = com.google.container.v1beta1.NodePoolUpdateStrategy.forNumber(strategy_); + return result == null ? com.google.container.v1beta1.NodePoolUpdateStrategy.UNRECOGNIZED : result; + } + /** + *
+       * Update strategy of the node pool.
+       * 
+ * + * optional .google.container.v1beta1.NodePoolUpdateStrategy strategy = 3; + * @param value The strategy to set. + * @return This builder for chaining. + */ + public Builder setStrategy(com.google.container.v1beta1.NodePoolUpdateStrategy value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + strategy_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Update strategy of the node pool.
+       * 
+ * + * optional .google.container.v1beta1.NodePoolUpdateStrategy strategy = 3; + * @return This builder for chaining. + */ + public Builder clearStrategy() { + bitField0_ = (bitField0_ & ~0x00000004); + strategy_ = 0; + onChanged(); + return this; + } + + private com.google.container.v1beta1.BlueGreenSettings blueGreenSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.BlueGreenSettings, com.google.container.v1beta1.BlueGreenSettings.Builder, com.google.container.v1beta1.BlueGreenSettingsOrBuilder> blueGreenSettingsBuilder_; + /** + *
+       * Settings for blue-green upgrade strategy.
+       * 
+ * + * optional .google.container.v1beta1.BlueGreenSettings blue_green_settings = 4; + * @return Whether the blueGreenSettings field is set. + */ + public boolean hasBlueGreenSettings() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+       * Settings for blue-green upgrade strategy.
+       * 
+ * + * optional .google.container.v1beta1.BlueGreenSettings blue_green_settings = 4; + * @return The blueGreenSettings. + */ + public com.google.container.v1beta1.BlueGreenSettings getBlueGreenSettings() { + if (blueGreenSettingsBuilder_ == null) { + return blueGreenSettings_ == null ? com.google.container.v1beta1.BlueGreenSettings.getDefaultInstance() : blueGreenSettings_; + } else { + return blueGreenSettingsBuilder_.getMessage(); + } + } + /** + *
+       * Settings for blue-green upgrade strategy.
+       * 
+ * + * optional .google.container.v1beta1.BlueGreenSettings blue_green_settings = 4; + */ + public Builder setBlueGreenSettings(com.google.container.v1beta1.BlueGreenSettings value) { + if (blueGreenSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + blueGreenSettings_ = value; + } else { + blueGreenSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * Settings for blue-green upgrade strategy.
+       * 
+ * + * optional .google.container.v1beta1.BlueGreenSettings blue_green_settings = 4; + */ + public Builder setBlueGreenSettings( + com.google.container.v1beta1.BlueGreenSettings.Builder builderForValue) { + if (blueGreenSettingsBuilder_ == null) { + blueGreenSettings_ = builderForValue.build(); + } else { + blueGreenSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * Settings for blue-green upgrade strategy.
+       * 
+ * + * optional .google.container.v1beta1.BlueGreenSettings blue_green_settings = 4; + */ + public Builder mergeBlueGreenSettings(com.google.container.v1beta1.BlueGreenSettings value) { + if (blueGreenSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + blueGreenSettings_ != null && + blueGreenSettings_ != com.google.container.v1beta1.BlueGreenSettings.getDefaultInstance()) { + getBlueGreenSettingsBuilder().mergeFrom(value); + } else { + blueGreenSettings_ = value; + } + } else { + blueGreenSettingsBuilder_.mergeFrom(value); + } + if (blueGreenSettings_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + *
+       * Settings for blue-green upgrade strategy.
+       * 
+ * + * optional .google.container.v1beta1.BlueGreenSettings blue_green_settings = 4; + */ + public Builder clearBlueGreenSettings() { + bitField0_ = (bitField0_ & ~0x00000008); + blueGreenSettings_ = null; + if (blueGreenSettingsBuilder_ != null) { + blueGreenSettingsBuilder_.dispose(); + blueGreenSettingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Settings for blue-green upgrade strategy.
+       * 
+ * + * optional .google.container.v1beta1.BlueGreenSettings blue_green_settings = 4; + */ + public com.google.container.v1beta1.BlueGreenSettings.Builder getBlueGreenSettingsBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getBlueGreenSettingsFieldBuilder().getBuilder(); + } + /** + *
+       * Settings for blue-green upgrade strategy.
+       * 
+ * + * optional .google.container.v1beta1.BlueGreenSettings blue_green_settings = 4; + */ + public com.google.container.v1beta1.BlueGreenSettingsOrBuilder getBlueGreenSettingsOrBuilder() { + if (blueGreenSettingsBuilder_ != null) { + return blueGreenSettingsBuilder_.getMessageOrBuilder(); + } else { + return blueGreenSettings_ == null ? + com.google.container.v1beta1.BlueGreenSettings.getDefaultInstance() : blueGreenSettings_; + } + } + /** + *
+       * Settings for blue-green upgrade strategy.
+       * 
+ * + * optional .google.container.v1beta1.BlueGreenSettings blue_green_settings = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.BlueGreenSettings, com.google.container.v1beta1.BlueGreenSettings.Builder, com.google.container.v1beta1.BlueGreenSettingsOrBuilder> + getBlueGreenSettingsFieldBuilder() { + if (blueGreenSettingsBuilder_ == null) { + blueGreenSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.BlueGreenSettings, com.google.container.v1beta1.BlueGreenSettings.Builder, com.google.container.v1beta1.BlueGreenSettingsOrBuilder>( + getBlueGreenSettings(), + getParentForChildren(), + isClean()); + blueGreenSettings_ = null; + } + return blueGreenSettingsBuilder_; + } + @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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.NodePool.UpgradeSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpdateInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodePool.UpdateInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Information of a blue-green upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; + * @return Whether the blueGreenInfo field is set. + */ + boolean hasBlueGreenInfo(); + /** + *
+     * Information of a blue-green upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; + * @return The blueGreenInfo. + */ + com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo getBlueGreenInfo(); + /** + *
+     * Information of a blue-green upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; + */ + com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfoOrBuilder getBlueGreenInfoOrBuilder(); + } + /** + *
+   * UpdateInfo contains resource (instance groups, etc), status and other
+   * intermediate information relevant to a node pool upgrade.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.NodePool.UpdateInfo} + */ + public static final class UpdateInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodePool.UpdateInfo) + UpdateInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateInfo.newBuilder() to construct. + private UpdateInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateInfo() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UpdateInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePool_UpdateInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePool_UpdateInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodePool.UpdateInfo.class, com.google.container.v1beta1.NodePool.UpdateInfo.Builder.class); + } + + public interface BlueGreenInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * Current blue-green upgrade phase.
+       * 
+ * + * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; + * @return The enum numeric value on the wire for phase. + */ + int getPhaseValue(); + /** + *
+       * Current blue-green upgrade phase.
+       * 
+ * + * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; + * @return The phase. + */ + com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase getPhase(); + + /** + *
+       * The resource URLs of the [managed instance groups]
+       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+       * associated with blue pool.
+       * 
+ * + * repeated string blue_instance_group_urls = 2; + * @return A list containing the blueInstanceGroupUrls. + */ + java.util.List + getBlueInstanceGroupUrlsList(); + /** + *
+       * The resource URLs of the [managed instance groups]
+       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+       * associated with blue pool.
+       * 
+ * + * repeated string blue_instance_group_urls = 2; + * @return The count of blueInstanceGroupUrls. + */ + int getBlueInstanceGroupUrlsCount(); + /** + *
+       * The resource URLs of the [managed instance groups]
+       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+       * associated with blue pool.
+       * 
+ * + * repeated string blue_instance_group_urls = 2; + * @param index The index of the element to return. + * @return The blueInstanceGroupUrls at the given index. + */ + java.lang.String getBlueInstanceGroupUrls(int index); + /** + *
+       * The resource URLs of the [managed instance groups]
+       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+       * associated with blue pool.
+       * 
+ * + * repeated string blue_instance_group_urls = 2; + * @param index The index of the value to return. + * @return The bytes of the blueInstanceGroupUrls at the given index. + */ + com.google.protobuf.ByteString + getBlueInstanceGroupUrlsBytes(int index); + + /** + *
+       * The resource URLs of the [managed instance groups]
+       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+       * associated with green pool.
+       * 
+ * + * repeated string green_instance_group_urls = 3; + * @return A list containing the greenInstanceGroupUrls. + */ + java.util.List + getGreenInstanceGroupUrlsList(); + /** + *
+       * The resource URLs of the [managed instance groups]
+       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+       * associated with green pool.
+       * 
+ * + * repeated string green_instance_group_urls = 3; + * @return The count of greenInstanceGroupUrls. + */ + int getGreenInstanceGroupUrlsCount(); + /** + *
+       * The resource URLs of the [managed instance groups]
+       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+       * associated with green pool.
+       * 
+ * + * repeated string green_instance_group_urls = 3; + * @param index The index of the element to return. + * @return The greenInstanceGroupUrls at the given index. + */ + java.lang.String getGreenInstanceGroupUrls(int index); + /** + *
+       * The resource URLs of the [managed instance groups]
+       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+       * associated with green pool.
+       * 
+ * + * repeated string green_instance_group_urls = 3; + * @param index The index of the value to return. + * @return The bytes of the greenInstanceGroupUrls at the given index. + */ + com.google.protobuf.ByteString + getGreenInstanceGroupUrlsBytes(int index); + + /** + *
+       * Time to start deleting blue pool to complete blue-green upgrade,
+       * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+       * 
+ * + * string blue_pool_deletion_start_time = 4; + * @return The bluePoolDeletionStartTime. + */ + java.lang.String getBluePoolDeletionStartTime(); + /** + *
+       * Time to start deleting blue pool to complete blue-green upgrade,
+       * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+       * 
+ * + * string blue_pool_deletion_start_time = 4; + * @return The bytes for bluePoolDeletionStartTime. + */ + com.google.protobuf.ByteString + getBluePoolDeletionStartTimeBytes(); + + /** + *
+       * Version of green pool.
+       * 
+ * + * string green_pool_version = 5; + * @return The greenPoolVersion. + */ + java.lang.String getGreenPoolVersion(); + /** + *
+       * Version of green pool.
+       * 
+ * + * string green_pool_version = 5; + * @return The bytes for greenPoolVersion. + */ + com.google.protobuf.ByteString + getGreenPoolVersionBytes(); + } + /** + *
+     * Information relevant to blue-green upgrade.
+     * 
+ * + * Protobuf type {@code google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo} + */ + public static final class BlueGreenInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo) + BlueGreenInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use BlueGreenInfo.newBuilder() to construct. + private BlueGreenInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BlueGreenInfo() { + phase_ = 0; + blueInstanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + greenInstanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bluePoolDeletionStartTime_ = ""; + greenPoolVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BlueGreenInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePool_UpdateInfo_BlueGreenInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePool_UpdateInfo_BlueGreenInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.class, com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Builder.class); + } + + /** + *
+       * Phase represents the different stages blue-green upgrade is running in.
+       * 
+ * + * Protobuf enum {@code google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase} + */ + public enum Phase + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+         * Unspecified phase.
+         * 
+ * + * PHASE_UNSPECIFIED = 0; + */ + PHASE_UNSPECIFIED(0), + /** + *
+         * blue-green upgrade has been initiated.
+         * 
+ * + * UPDATE_STARTED = 1; + */ + UPDATE_STARTED(1), + /** + *
+         * Start creating green pool nodes.
+         * 
+ * + * CREATING_GREEN_POOL = 2; + */ + CREATING_GREEN_POOL(2), + /** + *
+         * Start cordoning blue pool nodes.
+         * 
+ * + * CORDONING_BLUE_POOL = 3; + */ + CORDONING_BLUE_POOL(3), + /** + *
+         * Start waiting after cordoning the blue pool and before draining it.
+         * 
+ * + * WAITING_TO_DRAIN_BLUE_POOL = 8; + */ + WAITING_TO_DRAIN_BLUE_POOL(8), + /** + *
+         * Start draining blue pool nodes.
+         * 
+ * + * DRAINING_BLUE_POOL = 4; + */ + DRAINING_BLUE_POOL(4), + /** + *
+         * Start soaking time after draining entire blue pool.
+         * 
+ * + * NODE_POOL_SOAKING = 5; + */ + NODE_POOL_SOAKING(5), + /** + *
+         * Start deleting blue nodes.
+         * 
+ * + * DELETING_BLUE_POOL = 6; + */ + DELETING_BLUE_POOL(6), + /** + *
+         * Rollback has been initiated.
+         * 
+ * + * ROLLBACK_STARTED = 7; + */ + ROLLBACK_STARTED(7), + UNRECOGNIZED(-1), + ; + + /** + *
+         * Unspecified phase.
+         * 
+ * + * PHASE_UNSPECIFIED = 0; + */ + public static final int PHASE_UNSPECIFIED_VALUE = 0; + /** + *
+         * blue-green upgrade has been initiated.
+         * 
+ * + * UPDATE_STARTED = 1; + */ + public static final int UPDATE_STARTED_VALUE = 1; + /** + *
+         * Start creating green pool nodes.
+         * 
+ * + * CREATING_GREEN_POOL = 2; + */ + public static final int CREATING_GREEN_POOL_VALUE = 2; + /** + *
+         * Start cordoning blue pool nodes.
+         * 
+ * + * CORDONING_BLUE_POOL = 3; + */ + public static final int CORDONING_BLUE_POOL_VALUE = 3; + /** + *
+         * Start waiting after cordoning the blue pool and before draining it.
+         * 
+ * + * WAITING_TO_DRAIN_BLUE_POOL = 8; + */ + public static final int WAITING_TO_DRAIN_BLUE_POOL_VALUE = 8; + /** + *
+         * Start draining blue pool nodes.
+         * 
+ * + * DRAINING_BLUE_POOL = 4; + */ + public static final int DRAINING_BLUE_POOL_VALUE = 4; + /** + *
+         * Start soaking time after draining entire blue pool.
+         * 
+ * + * NODE_POOL_SOAKING = 5; + */ + public static final int NODE_POOL_SOAKING_VALUE = 5; + /** + *
+         * Start deleting blue nodes.
+         * 
+ * + * DELETING_BLUE_POOL = 6; + */ + public static final int DELETING_BLUE_POOL_VALUE = 6; + /** + *
+         * Rollback has been initiated.
+         * 
+ * + * ROLLBACK_STARTED = 7; + */ + public static final int ROLLBACK_STARTED_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 Phase 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 Phase forNumber(int value) { + switch (value) { + case 0: return PHASE_UNSPECIFIED; + case 1: return UPDATE_STARTED; + case 2: return CREATING_GREEN_POOL; + case 3: return CORDONING_BLUE_POOL; + case 8: return WAITING_TO_DRAIN_BLUE_POOL; + case 4: return DRAINING_BLUE_POOL; + case 5: return NODE_POOL_SOAKING; + case 6: return DELETING_BLUE_POOL; + case 7: return ROLLBACK_STARTED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Phase> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Phase findValueByNumber(int number) { + return Phase.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.UpdateInfo.BlueGreenInfo.getDescriptor().getEnumTypes().get(0); + } + + private static final Phase[] VALUES = values(); + + public static Phase 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 Phase(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase) + } + + public static final int PHASE_FIELD_NUMBER = 1; + private int phase_ = 0; + /** + *
+       * Current blue-green upgrade phase.
+       * 
+ * + * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; + * @return The enum numeric value on the wire for phase. + */ + @java.lang.Override public int getPhaseValue() { + return phase_; + } + /** + *
+       * Current blue-green upgrade phase.
+       * 
+ * + * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; + * @return The phase. + */ + @java.lang.Override public com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase getPhase() { + com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase result = com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase.forNumber(phase_); + return result == null ? com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase.UNRECOGNIZED : result; + } + + public static final int BLUE_INSTANCE_GROUP_URLS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList blueInstanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+       * The resource URLs of the [managed instance groups]
+       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+       * associated with blue pool.
+       * 
+ * + * repeated string blue_instance_group_urls = 2; + * @return A list containing the blueInstanceGroupUrls. + */ + public com.google.protobuf.ProtocolStringList + getBlueInstanceGroupUrlsList() { + return blueInstanceGroupUrls_; + } + /** + *
+       * The resource URLs of the [managed instance groups]
+       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+       * associated with blue pool.
+       * 
+ * + * repeated string blue_instance_group_urls = 2; + * @return The count of blueInstanceGroupUrls. + */ + public int getBlueInstanceGroupUrlsCount() { + return blueInstanceGroupUrls_.size(); + } + /** + *
+       * The resource URLs of the [managed instance groups]
+       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+       * associated with blue pool.
+       * 
+ * + * repeated string blue_instance_group_urls = 2; + * @param index The index of the element to return. + * @return The blueInstanceGroupUrls at the given index. + */ + public java.lang.String getBlueInstanceGroupUrls(int index) { + return blueInstanceGroupUrls_.get(index); + } + /** + *
+       * The resource URLs of the [managed instance groups]
+       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+       * associated with blue pool.
+       * 
+ * + * repeated string blue_instance_group_urls = 2; + * @param index The index of the value to return. + * @return The bytes of the blueInstanceGroupUrls at the given index. + */ + public com.google.protobuf.ByteString + getBlueInstanceGroupUrlsBytes(int index) { + return blueInstanceGroupUrls_.getByteString(index); + } + + public static final int GREEN_INSTANCE_GROUP_URLS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList greenInstanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+       * The resource URLs of the [managed instance groups]
+       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+       * associated with green pool.
+       * 
+ * + * repeated string green_instance_group_urls = 3; + * @return A list containing the greenInstanceGroupUrls. + */ + public com.google.protobuf.ProtocolStringList + getGreenInstanceGroupUrlsList() { + return greenInstanceGroupUrls_; + } + /** + *
+       * The resource URLs of the [managed instance groups]
+       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+       * associated with green pool.
+       * 
+ * + * repeated string green_instance_group_urls = 3; + * @return The count of greenInstanceGroupUrls. + */ + public int getGreenInstanceGroupUrlsCount() { + return greenInstanceGroupUrls_.size(); + } + /** + *
+       * The resource URLs of the [managed instance groups]
+       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+       * associated with green pool.
+       * 
+ * + * repeated string green_instance_group_urls = 3; + * @param index The index of the element to return. + * @return The greenInstanceGroupUrls at the given index. + */ + public java.lang.String getGreenInstanceGroupUrls(int index) { + return greenInstanceGroupUrls_.get(index); + } + /** + *
+       * The resource URLs of the [managed instance groups]
+       * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+       * associated with green pool.
+       * 
+ * + * repeated string green_instance_group_urls = 3; + * @param index The index of the value to return. + * @return The bytes of the greenInstanceGroupUrls at the given index. + */ + public com.google.protobuf.ByteString + getGreenInstanceGroupUrlsBytes(int index) { + return greenInstanceGroupUrls_.getByteString(index); + } + + public static final int BLUE_POOL_DELETION_START_TIME_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object bluePoolDeletionStartTime_ = ""; + /** + *
+       * Time to start deleting blue pool to complete blue-green upgrade,
+       * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+       * 
+ * + * string blue_pool_deletion_start_time = 4; + * @return The bluePoolDeletionStartTime. + */ + @java.lang.Override + public java.lang.String getBluePoolDeletionStartTime() { + java.lang.Object ref = bluePoolDeletionStartTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bluePoolDeletionStartTime_ = s; + return s; + } + } + /** + *
+       * Time to start deleting blue pool to complete blue-green upgrade,
+       * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+       * 
+ * + * string blue_pool_deletion_start_time = 4; + * @return The bytes for bluePoolDeletionStartTime. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBluePoolDeletionStartTimeBytes() { + java.lang.Object ref = bluePoolDeletionStartTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bluePoolDeletionStartTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GREEN_POOL_VERSION_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object greenPoolVersion_ = ""; + /** + *
+       * Version of green pool.
+       * 
+ * + * string green_pool_version = 5; + * @return The greenPoolVersion. + */ + @java.lang.Override + public java.lang.String getGreenPoolVersion() { + java.lang.Object ref = greenPoolVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + greenPoolVersion_ = s; + return s; + } + } + /** + *
+       * Version of green pool.
+       * 
+ * + * string green_pool_version = 5; + * @return The bytes for greenPoolVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getGreenPoolVersionBytes() { + java.lang.Object ref = greenPoolVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + greenPoolVersion_ = 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 (phase_ != com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase.PHASE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, phase_); + } + for (int i = 0; i < blueInstanceGroupUrls_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, blueInstanceGroupUrls_.getRaw(i)); + } + for (int i = 0; i < greenInstanceGroupUrls_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, greenInstanceGroupUrls_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bluePoolDeletionStartTime_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, bluePoolDeletionStartTime_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(greenPoolVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, greenPoolVersion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (phase_ != com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase.PHASE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, phase_); + } + { + int dataSize = 0; + for (int i = 0; i < blueInstanceGroupUrls_.size(); i++) { + dataSize += computeStringSizeNoTag(blueInstanceGroupUrls_.getRaw(i)); + } + size += dataSize; + size += 1 * getBlueInstanceGroupUrlsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < greenInstanceGroupUrls_.size(); i++) { + dataSize += computeStringSizeNoTag(greenInstanceGroupUrls_.getRaw(i)); + } + size += dataSize; + size += 1 * getGreenInstanceGroupUrlsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bluePoolDeletionStartTime_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, bluePoolDeletionStartTime_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(greenPoolVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, greenPoolVersion_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.UpdateInfo.BlueGreenInfo)) { + return super.equals(obj); + } + com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo other = (com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo) obj; + + if (phase_ != other.phase_) return false; + if (!getBlueInstanceGroupUrlsList() + .equals(other.getBlueInstanceGroupUrlsList())) return false; + if (!getGreenInstanceGroupUrlsList() + .equals(other.getGreenInstanceGroupUrlsList())) return false; + if (!getBluePoolDeletionStartTime() + .equals(other.getBluePoolDeletionStartTime())) return false; + if (!getGreenPoolVersion() + .equals(other.getGreenPoolVersion())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + PHASE_FIELD_NUMBER; + hash = (53 * hash) + phase_; + if (getBlueInstanceGroupUrlsCount() > 0) { + hash = (37 * hash) + BLUE_INSTANCE_GROUP_URLS_FIELD_NUMBER; + hash = (53 * hash) + getBlueInstanceGroupUrlsList().hashCode(); + } + if (getGreenInstanceGroupUrlsCount() > 0) { + hash = (37 * hash) + GREEN_INSTANCE_GROUP_URLS_FIELD_NUMBER; + hash = (53 * hash) + getGreenInstanceGroupUrlsList().hashCode(); + } + hash = (37 * hash) + BLUE_POOL_DELETION_START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getBluePoolDeletionStartTime().hashCode(); + hash = (37 * hash) + GREEN_POOL_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getGreenPoolVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo parseFrom( + 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.UpdateInfo.BlueGreenInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo parseFrom( + com.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.UpdateInfo.BlueGreenInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo 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.UpdateInfo.BlueGreenInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo parseFrom( + java.io.InputStream 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.UpdateInfo.BlueGreenInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo parseDelimitedFrom( + java.io.InputStream 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.UpdateInfo.BlueGreenInfo 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.UpdateInfo.BlueGreenInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.UpdateInfo.BlueGreenInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new 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 relevant to blue-green upgrade.
+       * 
+ * + * Protobuf type {@code google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo) + com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePool_UpdateInfo_BlueGreenInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePool_UpdateInfo_BlueGreenInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.class, com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Builder.class); + } + + // Construct using com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + phase_ = 0; + blueInstanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + greenInstanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bluePoolDeletionStartTime_ = ""; + greenPoolVersion_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePool_UpdateInfo_BlueGreenInfo_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo getDefaultInstanceForType() { + return com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo build() { + com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo buildPartial() { + com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo result = new com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.phase_ = phase_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + blueInstanceGroupUrls_.makeImmutable(); + result.blueInstanceGroupUrls_ = blueInstanceGroupUrls_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + greenInstanceGroupUrls_.makeImmutable(); + result.greenInstanceGroupUrls_ = greenInstanceGroupUrls_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.bluePoolDeletionStartTime_ = bluePoolDeletionStartTime_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.greenPoolVersion_ = greenPoolVersion_; + } + } + + @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.UpdateInfo.BlueGreenInfo) { + return mergeFrom((com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo other) { + if (other == com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.getDefaultInstance()) return this; + if (other.phase_ != 0) { + setPhaseValue(other.getPhaseValue()); + } + if (!other.blueInstanceGroupUrls_.isEmpty()) { + if (blueInstanceGroupUrls_.isEmpty()) { + blueInstanceGroupUrls_ = other.blueInstanceGroupUrls_; + bitField0_ |= 0x00000002; + } else { + ensureBlueInstanceGroupUrlsIsMutable(); + blueInstanceGroupUrls_.addAll(other.blueInstanceGroupUrls_); + } + onChanged(); + } + if (!other.greenInstanceGroupUrls_.isEmpty()) { + if (greenInstanceGroupUrls_.isEmpty()) { + greenInstanceGroupUrls_ = other.greenInstanceGroupUrls_; + bitField0_ |= 0x00000004; + } else { + ensureGreenInstanceGroupUrlsIsMutable(); + greenInstanceGroupUrls_.addAll(other.greenInstanceGroupUrls_); + } + onChanged(); + } + if (!other.getBluePoolDeletionStartTime().isEmpty()) { + bluePoolDeletionStartTime_ = other.bluePoolDeletionStartTime_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getGreenPoolVersion().isEmpty()) { + greenPoolVersion_ = other.greenPoolVersion_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + phase_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureBlueInstanceGroupUrlsIsMutable(); + blueInstanceGroupUrls_.add(s); + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureGreenInstanceGroupUrlsIsMutable(); + greenInstanceGroupUrls_.add(s); + break; + } // case 26 + case 34: { + bluePoolDeletionStartTime_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + greenPoolVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int phase_ = 0; + /** + *
+         * Current blue-green upgrade phase.
+         * 
+ * + * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; + * @return The enum numeric value on the wire for phase. + */ + @java.lang.Override public int getPhaseValue() { + return phase_; + } + /** + *
+         * Current blue-green upgrade phase.
+         * 
+ * + * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; + * @param value The enum numeric value on the wire for phase to set. + * @return This builder for chaining. + */ + public Builder setPhaseValue(int value) { + phase_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * Current blue-green upgrade phase.
+         * 
+ * + * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; + * @return The phase. + */ + @java.lang.Override + public com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase getPhase() { + com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase result = com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase.forNumber(phase_); + return result == null ? com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase.UNRECOGNIZED : result; + } + /** + *
+         * Current blue-green upgrade phase.
+         * 
+ * + * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; + * @param value The phase to set. + * @return This builder for chaining. + */ + public Builder setPhase(com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + phase_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+         * Current blue-green upgrade phase.
+         * 
+ * + * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; + * @return This builder for chaining. + */ + public Builder clearPhase() { + bitField0_ = (bitField0_ & ~0x00000001); + phase_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList blueInstanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureBlueInstanceGroupUrlsIsMutable() { + if (!blueInstanceGroupUrls_.isModifiable()) { + blueInstanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(blueInstanceGroupUrls_); + } + bitField0_ |= 0x00000002; + } + /** + *
+         * The resource URLs of the [managed instance groups]
+         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+         * associated with blue pool.
+         * 
+ * + * repeated string blue_instance_group_urls = 2; + * @return A list containing the blueInstanceGroupUrls. + */ + public com.google.protobuf.ProtocolStringList + getBlueInstanceGroupUrlsList() { + blueInstanceGroupUrls_.makeImmutable(); + return blueInstanceGroupUrls_; + } + /** + *
+         * The resource URLs of the [managed instance groups]
+         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+         * associated with blue pool.
+         * 
+ * + * repeated string blue_instance_group_urls = 2; + * @return The count of blueInstanceGroupUrls. + */ + public int getBlueInstanceGroupUrlsCount() { + return blueInstanceGroupUrls_.size(); + } + /** + *
+         * The resource URLs of the [managed instance groups]
+         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+         * associated with blue pool.
+         * 
+ * + * repeated string blue_instance_group_urls = 2; + * @param index The index of the element to return. + * @return The blueInstanceGroupUrls at the given index. + */ + public java.lang.String getBlueInstanceGroupUrls(int index) { + return blueInstanceGroupUrls_.get(index); + } + /** + *
+         * The resource URLs of the [managed instance groups]
+         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+         * associated with blue pool.
+         * 
+ * + * repeated string blue_instance_group_urls = 2; + * @param index The index of the value to return. + * @return The bytes of the blueInstanceGroupUrls at the given index. + */ + public com.google.protobuf.ByteString + getBlueInstanceGroupUrlsBytes(int index) { + return blueInstanceGroupUrls_.getByteString(index); + } + /** + *
+         * The resource URLs of the [managed instance groups]
+         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+         * associated with blue pool.
+         * 
+ * + * repeated string blue_instance_group_urls = 2; + * @param index The index to set the value at. + * @param value The blueInstanceGroupUrls to set. + * @return This builder for chaining. + */ + public Builder setBlueInstanceGroupUrls( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureBlueInstanceGroupUrlsIsMutable(); + blueInstanceGroupUrls_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+         * The resource URLs of the [managed instance groups]
+         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+         * associated with blue pool.
+         * 
+ * + * repeated string blue_instance_group_urls = 2; + * @param value The blueInstanceGroupUrls to add. + * @return This builder for chaining. + */ + public Builder addBlueInstanceGroupUrls( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureBlueInstanceGroupUrlsIsMutable(); + blueInstanceGroupUrls_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+         * The resource URLs of the [managed instance groups]
+         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+         * associated with blue pool.
+         * 
+ * + * repeated string blue_instance_group_urls = 2; + * @param values The blueInstanceGroupUrls to add. + * @return This builder for chaining. + */ + public Builder addAllBlueInstanceGroupUrls( + java.lang.Iterable values) { + ensureBlueInstanceGroupUrlsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, blueInstanceGroupUrls_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+         * The resource URLs of the [managed instance groups]
+         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+         * associated with blue pool.
+         * 
+ * + * repeated string blue_instance_group_urls = 2; + * @return This builder for chaining. + */ + public Builder clearBlueInstanceGroupUrls() { + blueInstanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; + onChanged(); + return this; + } + /** + *
+         * The resource URLs of the [managed instance groups]
+         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+         * associated with blue pool.
+         * 
+ * + * repeated string blue_instance_group_urls = 2; + * @param value The bytes of the blueInstanceGroupUrls to add. + * @return This builder for chaining. + */ + public Builder addBlueInstanceGroupUrlsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureBlueInstanceGroupUrlsIsMutable(); + blueInstanceGroupUrls_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList greenInstanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureGreenInstanceGroupUrlsIsMutable() { + if (!greenInstanceGroupUrls_.isModifiable()) { + greenInstanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(greenInstanceGroupUrls_); + } + bitField0_ |= 0x00000004; + } + /** + *
+         * The resource URLs of the [managed instance groups]
+         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+         * associated with green pool.
+         * 
+ * + * repeated string green_instance_group_urls = 3; + * @return A list containing the greenInstanceGroupUrls. + */ + public com.google.protobuf.ProtocolStringList + getGreenInstanceGroupUrlsList() { + greenInstanceGroupUrls_.makeImmutable(); + return greenInstanceGroupUrls_; + } + /** + *
+         * The resource URLs of the [managed instance groups]
+         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+         * associated with green pool.
+         * 
+ * + * repeated string green_instance_group_urls = 3; + * @return The count of greenInstanceGroupUrls. + */ + public int getGreenInstanceGroupUrlsCount() { + return greenInstanceGroupUrls_.size(); + } + /** + *
+         * The resource URLs of the [managed instance groups]
+         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+         * associated with green pool.
+         * 
+ * + * repeated string green_instance_group_urls = 3; + * @param index The index of the element to return. + * @return The greenInstanceGroupUrls at the given index. + */ + public java.lang.String getGreenInstanceGroupUrls(int index) { + return greenInstanceGroupUrls_.get(index); + } + /** + *
+         * The resource URLs of the [managed instance groups]
+         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+         * associated with green pool.
+         * 
+ * + * repeated string green_instance_group_urls = 3; + * @param index The index of the value to return. + * @return The bytes of the greenInstanceGroupUrls at the given index. + */ + public com.google.protobuf.ByteString + getGreenInstanceGroupUrlsBytes(int index) { + return greenInstanceGroupUrls_.getByteString(index); + } + /** + *
+         * The resource URLs of the [managed instance groups]
+         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+         * associated with green pool.
+         * 
+ * + * repeated string green_instance_group_urls = 3; + * @param index The index to set the value at. + * @param value The greenInstanceGroupUrls to set. + * @return This builder for chaining. + */ + public Builder setGreenInstanceGroupUrls( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureGreenInstanceGroupUrlsIsMutable(); + greenInstanceGroupUrls_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * The resource URLs of the [managed instance groups]
+         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+         * associated with green pool.
+         * 
+ * + * repeated string green_instance_group_urls = 3; + * @param value The greenInstanceGroupUrls to add. + * @return This builder for chaining. + */ + public Builder addGreenInstanceGroupUrls( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureGreenInstanceGroupUrlsIsMutable(); + greenInstanceGroupUrls_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * The resource URLs of the [managed instance groups]
+         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+         * associated with green pool.
+         * 
+ * + * repeated string green_instance_group_urls = 3; + * @param values The greenInstanceGroupUrls to add. + * @return This builder for chaining. + */ + public Builder addAllGreenInstanceGroupUrls( + java.lang.Iterable values) { + ensureGreenInstanceGroupUrlsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, greenInstanceGroupUrls_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * The resource URLs of the [managed instance groups]
+         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+         * associated with green pool.
+         * 
+ * + * repeated string green_instance_group_urls = 3; + * @return This builder for chaining. + */ + public Builder clearGreenInstanceGroupUrls() { + greenInstanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; + onChanged(); + return this; + } + /** + *
+         * The resource URLs of the [managed instance groups]
+         * (/compute/docs/instance-groups/creating-groups-of-managed-instances)
+         * associated with green pool.
+         * 
+ * + * repeated string green_instance_group_urls = 3; + * @param value The bytes of the greenInstanceGroupUrls to add. + * @return This builder for chaining. + */ + public Builder addGreenInstanceGroupUrlsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureGreenInstanceGroupUrlsIsMutable(); + greenInstanceGroupUrls_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object bluePoolDeletionStartTime_ = ""; + /** + *
+         * Time to start deleting blue pool to complete blue-green upgrade,
+         * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+         * 
+ * + * string blue_pool_deletion_start_time = 4; + * @return The bluePoolDeletionStartTime. + */ + public java.lang.String getBluePoolDeletionStartTime() { + java.lang.Object ref = bluePoolDeletionStartTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bluePoolDeletionStartTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * Time to start deleting blue pool to complete blue-green upgrade,
+         * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+         * 
+ * + * string blue_pool_deletion_start_time = 4; + * @return The bytes for bluePoolDeletionStartTime. + */ + public com.google.protobuf.ByteString + getBluePoolDeletionStartTimeBytes() { + java.lang.Object ref = bluePoolDeletionStartTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bluePoolDeletionStartTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * Time to start deleting blue pool to complete blue-green upgrade,
+         * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+         * 
+ * + * string blue_pool_deletion_start_time = 4; + * @param value The bluePoolDeletionStartTime to set. + * @return This builder for chaining. + */ + public Builder setBluePoolDeletionStartTime( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + bluePoolDeletionStartTime_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+         * Time to start deleting blue pool to complete blue-green upgrade,
+         * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+         * 
+ * + * string blue_pool_deletion_start_time = 4; + * @return This builder for chaining. + */ + public Builder clearBluePoolDeletionStartTime() { + bluePoolDeletionStartTime_ = getDefaultInstance().getBluePoolDeletionStartTime(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+         * Time to start deleting blue pool to complete blue-green upgrade,
+         * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+         * 
+ * + * string blue_pool_deletion_start_time = 4; + * @param value The bytes for bluePoolDeletionStartTime to set. + * @return This builder for chaining. + */ + public Builder setBluePoolDeletionStartTimeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + bluePoolDeletionStartTime_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object greenPoolVersion_ = ""; + /** + *
+         * Version of green pool.
+         * 
+ * + * string green_pool_version = 5; + * @return The greenPoolVersion. + */ + public java.lang.String getGreenPoolVersion() { + java.lang.Object ref = greenPoolVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + greenPoolVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * Version of green pool.
+         * 
+ * + * string green_pool_version = 5; + * @return The bytes for greenPoolVersion. + */ + public com.google.protobuf.ByteString + getGreenPoolVersionBytes() { + java.lang.Object ref = greenPoolVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + greenPoolVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * Version of green pool.
+         * 
+ * + * string green_pool_version = 5; + * @param value The greenPoolVersion to set. + * @return This builder for chaining. + */ + public Builder setGreenPoolVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + greenPoolVersion_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+         * Version of green pool.
+         * 
+ * + * string green_pool_version = 5; + * @return This builder for chaining. + */ + public Builder clearGreenPoolVersion() { + greenPoolVersion_ = getDefaultInstance().getGreenPoolVersion(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+         * Version of green pool.
+         * 
+ * + * string green_pool_version = 5; + * @param value The bytes for greenPoolVersion to set. + * @return This builder for chaining. + */ + public Builder setGreenPoolVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + greenPoolVersion_ = value; + bitField0_ |= 0x00000010; + 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.UpdateInfo.BlueGreenInfo) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo) + private static final com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo(); + } + + public static com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BlueGreenInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.UpdateInfo.BlueGreenInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int BLUE_GREEN_INFO_FIELD_NUMBER = 1; + private com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo blueGreenInfo_; + /** + *
+     * Information of a blue-green upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; + * @return Whether the blueGreenInfo field is set. + */ + @java.lang.Override + public boolean hasBlueGreenInfo() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Information of a blue-green upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; + * @return The blueGreenInfo. + */ + @java.lang.Override + public com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo getBlueGreenInfo() { + return blueGreenInfo_ == null ? com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.getDefaultInstance() : blueGreenInfo_; + } + /** + *
+     * Information of a blue-green upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfoOrBuilder getBlueGreenInfoOrBuilder() { + return blueGreenInfo_ == null ? com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.getDefaultInstance() : blueGreenInfo_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getBlueGreenInfo()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBlueGreenInfo()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.UpdateInfo)) { + return super.equals(obj); + } + com.google.container.v1beta1.NodePool.UpdateInfo other = (com.google.container.v1beta1.NodePool.UpdateInfo) obj; + + if (hasBlueGreenInfo() != other.hasBlueGreenInfo()) return false; + if (hasBlueGreenInfo()) { + if (!getBlueGreenInfo() + .equals(other.getBlueGreenInfo())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasBlueGreenInfo()) { + hash = (37 * hash) + BLUE_GREEN_INFO_FIELD_NUMBER; + hash = (53 * hash) + getBlueGreenInfo().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.NodePool.UpdateInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodePool.UpdateInfo parseFrom( + 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.UpdateInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodePool.UpdateInfo parseFrom( + com.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.UpdateInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodePool.UpdateInfo 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.UpdateInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NodePool.UpdateInfo parseFrom( + java.io.InputStream 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.UpdateInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NodePool.UpdateInfo parseDelimitedFrom( + java.io.InputStream 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.UpdateInfo 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.UpdateInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.UpdateInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * UpdateInfo contains resource (instance groups, etc), status and other
+     * intermediate information relevant to a node pool upgrade.
+     * 
+ * + * Protobuf type {@code google.container.v1beta1.NodePool.UpdateInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NodePool.UpdateInfo) + com.google.container.v1beta1.NodePool.UpdateInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePool_UpdateInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePool_UpdateInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodePool.UpdateInfo.class, com.google.container.v1beta1.NodePool.UpdateInfo.Builder.class); + } + + // Construct using com.google.container.v1beta1.NodePool.UpdateInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getBlueGreenInfoFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + blueGreenInfo_ = null; + if (blueGreenInfoBuilder_ != null) { + blueGreenInfoBuilder_.dispose(); + blueGreenInfoBuilder_ = 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_UpdateInfo_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NodePool.UpdateInfo getDefaultInstanceForType() { + return com.google.container.v1beta1.NodePool.UpdateInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NodePool.UpdateInfo build() { + com.google.container.v1beta1.NodePool.UpdateInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NodePool.UpdateInfo buildPartial() { + com.google.container.v1beta1.NodePool.UpdateInfo result = new com.google.container.v1beta1.NodePool.UpdateInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.NodePool.UpdateInfo result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.blueGreenInfo_ = blueGreenInfoBuilder_ == null + ? blueGreenInfo_ + : blueGreenInfoBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @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.UpdateInfo) { + return mergeFrom((com.google.container.v1beta1.NodePool.UpdateInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NodePool.UpdateInfo other) { + if (other == com.google.container.v1beta1.NodePool.UpdateInfo.getDefaultInstance()) return this; + if (other.hasBlueGreenInfo()) { + mergeBlueGreenInfo(other.getBlueGreenInfo()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getBlueGreenInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo blueGreenInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo, com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Builder, com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfoOrBuilder> blueGreenInfoBuilder_; + /** + *
+       * Information of a blue-green upgrade.
+       * 
+ * + * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; + * @return Whether the blueGreenInfo field is set. + */ + public boolean hasBlueGreenInfo() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * Information of a blue-green upgrade.
+       * 
+ * + * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; + * @return The blueGreenInfo. + */ + public com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo getBlueGreenInfo() { + if (blueGreenInfoBuilder_ == null) { + return blueGreenInfo_ == null ? com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.getDefaultInstance() : blueGreenInfo_; + } else { + return blueGreenInfoBuilder_.getMessage(); + } + } + /** + *
+       * Information of a blue-green upgrade.
+       * 
+ * + * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; + */ + public Builder setBlueGreenInfo(com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo value) { + if (blueGreenInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + blueGreenInfo_ = value; + } else { + blueGreenInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Information of a blue-green upgrade.
+       * 
+ * + * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; + */ + public Builder setBlueGreenInfo( + com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Builder builderForValue) { + if (blueGreenInfoBuilder_ == null) { + blueGreenInfo_ = builderForValue.build(); + } else { + blueGreenInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Information of a blue-green upgrade.
+       * 
+ * + * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; + */ + public Builder mergeBlueGreenInfo(com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo value) { + if (blueGreenInfoBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + blueGreenInfo_ != null && + blueGreenInfo_ != com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.getDefaultInstance()) { + getBlueGreenInfoBuilder().mergeFrom(value); + } else { + blueGreenInfo_ = value; + } + } else { + blueGreenInfoBuilder_.mergeFrom(value); + } + if (blueGreenInfo_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+       * Information of a blue-green upgrade.
+       * 
+ * + * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; + */ + public Builder clearBlueGreenInfo() { + bitField0_ = (bitField0_ & ~0x00000001); + blueGreenInfo_ = null; + if (blueGreenInfoBuilder_ != null) { + blueGreenInfoBuilder_.dispose(); + blueGreenInfoBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Information of a blue-green upgrade.
+       * 
+ * + * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; + */ + public com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Builder getBlueGreenInfoBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getBlueGreenInfoFieldBuilder().getBuilder(); + } + /** + *
+       * Information of a blue-green upgrade.
+       * 
+ * + * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; + */ + public com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfoOrBuilder getBlueGreenInfoOrBuilder() { + if (blueGreenInfoBuilder_ != null) { + return blueGreenInfoBuilder_.getMessageOrBuilder(); + } else { + return blueGreenInfo_ == null ? + com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.getDefaultInstance() : blueGreenInfo_; + } + } + /** + *
+       * Information of a blue-green upgrade.
+       * 
+ * + * .google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo, com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Builder, com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfoOrBuilder> + getBlueGreenInfoFieldBuilder() { + if (blueGreenInfoBuilder_ == null) { + blueGreenInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo, com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfo.Builder, com.google.container.v1beta1.NodePool.UpdateInfo.BlueGreenInfoOrBuilder>( + getBlueGreenInfo(), + getParentForChildren(), + isClean()); + blueGreenInfo_ = null; + } + return blueGreenInfoBuilder_; + } + @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.UpdateInfo) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodePool.UpdateInfo) + private static final com.google.container.v1beta1.NodePool.UpdateInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NodePool.UpdateInfo(); + } + + public static com.google.container.v1beta1.NodePool.UpdateInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.UpdateInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PlacementPolicyOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodePool.PlacementPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The type of placement.
+     * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy.Type type = 1; + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + *
+     * The type of placement.
+     * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy.Type type = 1; + * @return The type. + */ + com.google.container.v1beta1.NodePool.PlacementPolicy.Type getType(); + + /** + *
+     * TPU placement topology for pod slice node pool.
+     * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
+     * 
+ * + * string tpu_topology = 2; + * @return The tpuTopology. + */ + java.lang.String getTpuTopology(); + /** + *
+     * TPU placement topology for pod slice node pool.
+     * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
+     * 
+ * + * string tpu_topology = 2; + * @return The bytes for tpuTopology. + */ + com.google.protobuf.ByteString + getTpuTopologyBytes(); + + /** + *
+     * If set, refers to the name of a custom resource policy supplied by the
+     * user. The resource policy must be in the same project and region as the
+     * node pool. If not found, InvalidArgument error is returned.
+     * 
+ * + * string policy_name = 3; + * @return The policyName. + */ + java.lang.String getPolicyName(); + /** + *
+     * If set, refers to the name of a custom resource policy supplied by the
+     * user. The resource policy must be in the same project and region as the
+     * node pool. If not found, InvalidArgument error is returned.
+     * 
+ * + * string policy_name = 3; + * @return The bytes for policyName. + */ + com.google.protobuf.ByteString + getPolicyNameBytes(); + } + /** + *
+   * PlacementPolicy defines the placement policy used by the node pool.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.NodePool.PlacementPolicy} + */ + public static final class PlacementPolicy extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodePool.PlacementPolicy) + PlacementPolicyOrBuilder { + private static final long serialVersionUID = 0L; + // Use PlacementPolicy.newBuilder() to construct. + private PlacementPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PlacementPolicy() { + type_ = 0; + tpuTopology_ = ""; + policyName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PlacementPolicy(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePool_PlacementPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePool_PlacementPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodePool.PlacementPolicy.class, com.google.container.v1beta1.NodePool.PlacementPolicy.Builder.class); + } + + /** + *
+     * Type defines the type of placement policy.
+     * 
+ * + * Protobuf enum {@code google.container.v1beta1.NodePool.PlacementPolicy.Type} + */ + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * TYPE_UNSPECIFIED specifies no requirements on nodes
+       * placement.
+       * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + *
+       * COMPACT specifies node placement in the same availability domain to
+       * ensure low communication latency.
+       * 
+ * + * COMPACT = 1; + */ + COMPACT(1), + UNRECOGNIZED(-1), + ; + + /** + *
+       * TYPE_UNSPECIFIED specifies no requirements on nodes
+       * placement.
+       * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + /** + *
+       * COMPACT specifies node placement in the same availability domain to
+       * ensure low communication latency.
+       * 
+ * + * COMPACT = 1; + */ + public static final int COMPACT_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Type forNumber(int value) { + switch (value) { + case 0: return TYPE_UNSPECIFIED; + case 1: return COMPACT; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1beta1.NodePool.PlacementPolicy.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.NodePool.PlacementPolicy.Type) + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_ = 0; + /** + *
+     * The type of placement.
+     * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy.Type type = 1; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override public int getTypeValue() { + return type_; + } + /** + *
+     * The type of placement.
+     * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy.Type type = 1; + * @return The type. + */ + @java.lang.Override public com.google.container.v1beta1.NodePool.PlacementPolicy.Type getType() { + com.google.container.v1beta1.NodePool.PlacementPolicy.Type result = com.google.container.v1beta1.NodePool.PlacementPolicy.Type.forNumber(type_); + return result == null ? com.google.container.v1beta1.NodePool.PlacementPolicy.Type.UNRECOGNIZED : result; + } + + public static final int TPU_TOPOLOGY_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object tpuTopology_ = ""; + /** + *
+     * TPU placement topology for pod slice node pool.
+     * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
+     * 
+ * + * string tpu_topology = 2; + * @return The tpuTopology. + */ + @java.lang.Override + public java.lang.String getTpuTopology() { + java.lang.Object ref = tpuTopology_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tpuTopology_ = s; + return s; + } + } + /** + *
+     * TPU placement topology for pod slice node pool.
+     * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
+     * 
+ * + * string tpu_topology = 2; + * @return The bytes for tpuTopology. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTpuTopologyBytes() { + java.lang.Object ref = tpuTopology_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tpuTopology_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POLICY_NAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object policyName_ = ""; + /** + *
+     * If set, refers to the name of a custom resource policy supplied by the
+     * user. The resource policy must be in the same project and region as the
+     * node pool. If not found, InvalidArgument error is returned.
+     * 
+ * + * string policy_name = 3; + * @return The policyName. + */ + @java.lang.Override + public java.lang.String getPolicyName() { + java.lang.Object ref = policyName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + policyName_ = s; + return s; + } + } + /** + *
+     * If set, refers to the name of a custom resource policy supplied by the
+     * user. The resource policy must be in the same project and region as the
+     * node pool. If not found, InvalidArgument error is returned.
+     * 
+ * + * string policy_name = 3; + * @return The bytes for policyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPolicyNameBytes() { + java.lang.Object ref = policyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + policyName_ = 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 (type_ != com.google.container.v1beta1.NodePool.PlacementPolicy.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tpuTopology_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tpuTopology_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, policyName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ != com.google.container.v1beta1.NodePool.PlacementPolicy.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tpuTopology_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tpuTopology_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, policyName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.NodePool.PlacementPolicy)) { + return super.equals(obj); + } + com.google.container.v1beta1.NodePool.PlacementPolicy other = (com.google.container.v1beta1.NodePool.PlacementPolicy) obj; + + if (type_ != other.type_) return false; + if (!getTpuTopology() + .equals(other.getTpuTopology())) return false; + if (!getPolicyName() + .equals(other.getPolicyName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + TPU_TOPOLOGY_FIELD_NUMBER; + hash = (53 * hash) + getTpuTopology().hashCode(); + hash = (37 * hash) + POLICY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPolicyName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.NodePool.PlacementPolicy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodePool.PlacementPolicy parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NodePool.PlacementPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodePool.PlacementPolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NodePool.PlacementPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodePool.PlacementPolicy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NodePool.PlacementPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NodePool.PlacementPolicy parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.NodePool.PlacementPolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NodePool.PlacementPolicy parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.NodePool.PlacementPolicy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NodePool.PlacementPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.NodePool.PlacementPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * PlacementPolicy defines the placement policy used by the node pool.
+     * 
+ * + * Protobuf type {@code google.container.v1beta1.NodePool.PlacementPolicy} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NodePool.PlacementPolicy) + com.google.container.v1beta1.NodePool.PlacementPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePool_PlacementPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePool_PlacementPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodePool.PlacementPolicy.class, com.google.container.v1beta1.NodePool.PlacementPolicy.Builder.class); + } + + // Construct using com.google.container.v1beta1.NodePool.PlacementPolicy.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + type_ = 0; + tpuTopology_ = ""; + policyName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePool_PlacementPolicy_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NodePool.PlacementPolicy getDefaultInstanceForType() { + return com.google.container.v1beta1.NodePool.PlacementPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NodePool.PlacementPolicy build() { + com.google.container.v1beta1.NodePool.PlacementPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NodePool.PlacementPolicy buildPartial() { + com.google.container.v1beta1.NodePool.PlacementPolicy result = new com.google.container.v1beta1.NodePool.PlacementPolicy(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.NodePool.PlacementPolicy result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tpuTopology_ = tpuTopology_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.policyName_ = policyName_; + } + } + + @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.PlacementPolicy) { + return mergeFrom((com.google.container.v1beta1.NodePool.PlacementPolicy)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NodePool.PlacementPolicy other) { + if (other == com.google.container.v1beta1.NodePool.PlacementPolicy.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getTpuTopology().isEmpty()) { + tpuTopology_ = other.tpuTopology_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getPolicyName().isEmpty()) { + policyName_ = other.policyName_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + type_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + tpuTopology_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + policyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int type_ = 0; + /** + *
+       * The type of placement.
+       * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy.Type type = 1; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override public int getTypeValue() { + return type_; + } + /** + *
+       * The type of placement.
+       * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy.Type type = 1; + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * The type of placement.
+       * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy.Type type = 1; + * @return The type. + */ + @java.lang.Override + public com.google.container.v1beta1.NodePool.PlacementPolicy.Type getType() { + com.google.container.v1beta1.NodePool.PlacementPolicy.Type result = com.google.container.v1beta1.NodePool.PlacementPolicy.Type.forNumber(type_); + return result == null ? com.google.container.v1beta1.NodePool.PlacementPolicy.Type.UNRECOGNIZED : result; + } + /** + *
+       * The type of placement.
+       * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy.Type type = 1; + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.container.v1beta1.NodePool.PlacementPolicy.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * The type of placement.
+       * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy.Type type = 1; + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object tpuTopology_ = ""; + /** + *
+       * TPU placement topology for pod slice node pool.
+       * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
+       * 
+ * + * string tpu_topology = 2; + * @return The tpuTopology. + */ + public java.lang.String getTpuTopology() { + java.lang.Object ref = tpuTopology_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tpuTopology_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * TPU placement topology for pod slice node pool.
+       * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
+       * 
+ * + * string tpu_topology = 2; + * @return The bytes for tpuTopology. + */ + public com.google.protobuf.ByteString + getTpuTopologyBytes() { + java.lang.Object ref = tpuTopology_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tpuTopology_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * TPU placement topology for pod slice node pool.
+       * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
+       * 
+ * + * string tpu_topology = 2; + * @param value The tpuTopology to set. + * @return This builder for chaining. + */ + public Builder setTpuTopology( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + tpuTopology_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * TPU placement topology for pod slice node pool.
+       * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
+       * 
+ * + * string tpu_topology = 2; + * @return This builder for chaining. + */ + public Builder clearTpuTopology() { + tpuTopology_ = getDefaultInstance().getTpuTopology(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * TPU placement topology for pod slice node pool.
+       * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
+       * 
+ * + * string tpu_topology = 2; + * @param value The bytes for tpuTopology to set. + * @return This builder for chaining. + */ + public Builder setTpuTopologyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + tpuTopology_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object policyName_ = ""; + /** + *
+       * If set, refers to the name of a custom resource policy supplied by the
+       * user. The resource policy must be in the same project and region as the
+       * node pool. If not found, InvalidArgument error is returned.
+       * 
+ * + * string policy_name = 3; + * @return The policyName. + */ + public java.lang.String getPolicyName() { + java.lang.Object ref = policyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + policyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * If set, refers to the name of a custom resource policy supplied by the
+       * user. The resource policy must be in the same project and region as the
+       * node pool. If not found, InvalidArgument error is returned.
+       * 
+ * + * string policy_name = 3; + * @return The bytes for policyName. + */ + public com.google.protobuf.ByteString + getPolicyNameBytes() { + java.lang.Object ref = policyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + policyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * If set, refers to the name of a custom resource policy supplied by the
+       * user. The resource policy must be in the same project and region as the
+       * node pool. If not found, InvalidArgument error is returned.
+       * 
+ * + * string policy_name = 3; + * @param value The policyName to set. + * @return This builder for chaining. + */ + public Builder setPolicyName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + policyName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * If set, refers to the name of a custom resource policy supplied by the
+       * user. The resource policy must be in the same project and region as the
+       * node pool. If not found, InvalidArgument error is returned.
+       * 
+ * + * string policy_name = 3; + * @return This builder for chaining. + */ + public Builder clearPolicyName() { + policyName_ = getDefaultInstance().getPolicyName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * If set, refers to the name of a custom resource policy supplied by the
+       * user. The resource policy must be in the same project and region as the
+       * node pool. If not found, InvalidArgument error is returned.
+       * 
+ * + * string policy_name = 3; + * @param value The bytes for policyName to set. + * @return This builder for chaining. + */ + public Builder setPolicyNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + policyName_ = value; + bitField0_ |= 0x00000004; + 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.PlacementPolicy) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodePool.PlacementPolicy) + private static final com.google.container.v1beta1.NodePool.PlacementPolicy DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NodePool.PlacementPolicy(); + } + + public static com.google.container.v1beta1.NodePool.PlacementPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PlacementPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.PlacementPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface QueuedProvisioningOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodePool.QueuedProvisioning) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Denotes that this nodepool is QRM specific, meaning nodes can be only
+     * obtained through queuing via the Cluster Autoscaler ProvisioningRequest
+     * API.
+     * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); + } + /** + *
+   * QueuedProvisioning defines the queued provisioning used by the node pool.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.NodePool.QueuedProvisioning} + */ + public static final class QueuedProvisioning extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodePool.QueuedProvisioning) + QueuedProvisioningOrBuilder { + private static final long serialVersionUID = 0L; + // Use QueuedProvisioning.newBuilder() to construct. + private QueuedProvisioning(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private QueuedProvisioning() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new QueuedProvisioning(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePool_QueuedProvisioning_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePool_QueuedProvisioning_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodePool.QueuedProvisioning.class, com.google.container.v1beta1.NodePool.QueuedProvisioning.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+     * Denotes that this nodepool is QRM specific, meaning nodes can be only
+     * obtained through queuing via the Cluster Autoscaler ProvisioningRequest
+     * API.
+     * 
+ * + * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.QueuedProvisioning)) { + return super.equals(obj); + } + com.google.container.v1beta1.NodePool.QueuedProvisioning other = (com.google.container.v1beta1.NodePool.QueuedProvisioning) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.NodePool.QueuedProvisioning parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodePool.QueuedProvisioning parseFrom( + 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.QueuedProvisioning parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodePool.QueuedProvisioning parseFrom( + com.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.QueuedProvisioning parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodePool.QueuedProvisioning 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.QueuedProvisioning parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NodePool.QueuedProvisioning parseFrom( + java.io.InputStream 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.QueuedProvisioning parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NodePool.QueuedProvisioning parseDelimitedFrom( + java.io.InputStream 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.QueuedProvisioning 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.QueuedProvisioning parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.QueuedProvisioning prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * QueuedProvisioning defines the queued provisioning used by the node pool.
+     * 
+ * + * Protobuf type {@code google.container.v1beta1.NodePool.QueuedProvisioning} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NodePool.QueuedProvisioning) + com.google.container.v1beta1.NodePool.QueuedProvisioningOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePool_QueuedProvisioning_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePool_QueuedProvisioning_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodePool.QueuedProvisioning.class, com.google.container.v1beta1.NodePool.QueuedProvisioning.Builder.class); + } + + // Construct using com.google.container.v1beta1.NodePool.QueuedProvisioning.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 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_NodePool_QueuedProvisioning_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NodePool.QueuedProvisioning getDefaultInstanceForType() { + return com.google.container.v1beta1.NodePool.QueuedProvisioning.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NodePool.QueuedProvisioning build() { + com.google.container.v1beta1.NodePool.QueuedProvisioning result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NodePool.QueuedProvisioning buildPartial() { + com.google.container.v1beta1.NodePool.QueuedProvisioning result = new com.google.container.v1beta1.NodePool.QueuedProvisioning(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.NodePool.QueuedProvisioning result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @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.QueuedProvisioning) { + return mergeFrom((com.google.container.v1beta1.NodePool.QueuedProvisioning)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NodePool.QueuedProvisioning other) { + if (other == com.google.container.v1beta1.NodePool.QueuedProvisioning.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enabled_ ; + /** + *
+       * Denotes that this nodepool is QRM specific, meaning nodes can be only
+       * obtained through queuing via the Cluster Autoscaler ProvisioningRequest
+       * API.
+       * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + *
+       * Denotes that this nodepool is QRM specific, meaning nodes can be only
+       * obtained through queuing via the Cluster Autoscaler ProvisioningRequest
+       * API.
+       * 
+ * + * bool enabled = 1; + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Denotes that this nodepool is QRM specific, meaning nodes can be only
+       * obtained through queuing via the Cluster Autoscaler ProvisioningRequest
+       * API.
+       * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + 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.NodePool.QueuedProvisioning) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodePool.QueuedProvisioning) + private static final com.google.container.v1beta1.NodePool.QueuedProvisioning DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NodePool.QueuedProvisioning(); + } + + public static com.google.container.v1beta1.NodePool.QueuedProvisioning getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueuedProvisioning parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.QueuedProvisioning getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + 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 ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * 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 config_ == null ? com.google.container.v1beta1.NodeConfig.getDefaultInstance() : config_; + } + + public static final int INITIAL_NODE_COUNT_FIELD_NUMBER = 3; + private int initialNodeCount_ = 0; + /** + *
+   * 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; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList locations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * 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 NETWORK_CONFIG_FIELD_NUMBER = 14; + private com.google.container.v1beta1.NodeNetworkConfig networkConfig_; + /** + *
+   * Networking configuration for this NodePool. If specified, it overrides the
+   * cluster-level defaults.
+   * 
+ * + * .google.container.v1beta1.NodeNetworkConfig network_config = 14; + * @return Whether the networkConfig field is set. + */ + @java.lang.Override + public boolean hasNetworkConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * Networking configuration for this NodePool. If specified, it overrides the
+   * cluster-level defaults.
+   * 
+ * + * .google.container.v1beta1.NodeNetworkConfig network_config = 14; + * @return The networkConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.NodeNetworkConfig getNetworkConfig() { + return networkConfig_ == null ? com.google.container.v1beta1.NodeNetworkConfig.getDefaultInstance() : networkConfig_; + } + /** + *
+   * Networking configuration for this NodePool. If specified, it overrides the
+   * cluster-level defaults.
+   * 
+ * + * .google.container.v1beta1.NodeNetworkConfig network_config = 14; + */ + @java.lang.Override + public com.google.container.v1beta1.NodeNetworkConfigOrBuilder getNetworkConfigOrBuilder() { + return networkConfig_ == null ? com.google.container.v1beta1.NodeNetworkConfig.getDefaultInstance() : networkConfig_; + } + + public static final int SELF_LINK_FIELD_NUMBER = 100; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; + /** + *
+   * The version of Kubernetes running on this NodePool's nodes. If unspecified,
+   * it defaults as described
+   * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version).
+   * 
+ * + * 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 Kubernetes running on this NodePool's nodes. If unspecified,
+   * it defaults as described
+   * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version).
+   * 
+ * + * 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; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList instanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * [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.
+   * During the node pool blue-green upgrade operation, the URLs contain both
+   * blue and green resources.
+   * 
+ * + * 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.
+   * During the node pool blue-green upgrade operation, the URLs contain both
+   * blue and green resources.
+   * 
+ * + * 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.
+   * During the node pool blue-green upgrade operation, the URLs contain both
+   * blue and green resources.
+   * 
+ * + * 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.
+   * During the node pool blue-green upgrade operation, the URLs contain both
+   * blue and green resources.
+   * 
+ * + * 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_ = 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; + * @return The status. + */ + @java.lang.Override public com.google.container.v1beta1.NodePool.Status getStatus() { + com.google.container.v1beta1.NodePool.Status result = com.google.container.v1beta1.NodePool.Status.forNumber(status_); + return result == null ? com.google.container.v1beta1.NodePool.Status.UNRECOGNIZED : result; + } + + public static final int STATUS_MESSAGE_FIELD_NUMBER = 104; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4033 + * @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]; + * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4033 + * @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 ((bitField0_ & 0x00000004) != 0); + } + /** + *
+   * 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 autoscaling_ == null ? com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() : autoscaling_; + } + + 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 ((bitField0_ & 0x00000008) != 0); + } + /** + *
+   * 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 management_ == null ? com.google.container.v1beta1.NodeManagement.getDefaultInstance() : management_; + } + + 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 ((bitField0_ & 0x00000010) != 0); + } + /** + *
+   * 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 maxPodsConstraint_ == null ? com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance() : maxPodsConstraint_; + } + + public static final int CONDITIONS_FIELD_NUMBER = 105; + @SuppressWarnings("serial") + 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_ = 0; + /** + *
+   * [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 ((bitField0_ & 0x00000020) != 0); + } + /** + *
+   * 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 upgradeSettings_ == null ? com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance() : upgradeSettings_; + } + + public static final int PLACEMENT_POLICY_FIELD_NUMBER = 108; + private com.google.container.v1beta1.NodePool.PlacementPolicy placementPolicy_; + /** + *
+   * Specifies the node placement policy.
+   * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + * @return Whether the placementPolicy field is set. + */ + @java.lang.Override + public boolean hasPlacementPolicy() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+   * Specifies the node placement policy.
+   * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + * @return The placementPolicy. + */ + @java.lang.Override + public com.google.container.v1beta1.NodePool.PlacementPolicy getPlacementPolicy() { + return placementPolicy_ == null ? com.google.container.v1beta1.NodePool.PlacementPolicy.getDefaultInstance() : placementPolicy_; + } + /** + *
+   * Specifies the node placement policy.
+   * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + */ + @java.lang.Override + public com.google.container.v1beta1.NodePool.PlacementPolicyOrBuilder getPlacementPolicyOrBuilder() { + return placementPolicy_ == null ? com.google.container.v1beta1.NodePool.PlacementPolicy.getDefaultInstance() : placementPolicy_; + } + + public static final int UPDATE_INFO_FIELD_NUMBER = 109; + private com.google.container.v1beta1.NodePool.UpdateInfo updateInfo_; + /** + *
+   * Output only. [Output only] Update info contains relevant information during
+   * a node pool update.
+   * 
+ * + * .google.container.v1beta1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updateInfo field is set. + */ + @java.lang.Override + public boolean hasUpdateInfo() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+   * Output only. [Output only] Update info contains relevant information during
+   * a node pool update.
+   * 
+ * + * .google.container.v1beta1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updateInfo. + */ + @java.lang.Override + public com.google.container.v1beta1.NodePool.UpdateInfo getUpdateInfo() { + return updateInfo_ == null ? com.google.container.v1beta1.NodePool.UpdateInfo.getDefaultInstance() : updateInfo_; + } + /** + *
+   * Output only. [Output only] Update info contains relevant information during
+   * a node pool update.
+   * 
+ * + * .google.container.v1beta1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.container.v1beta1.NodePool.UpdateInfoOrBuilder getUpdateInfoOrBuilder() { + return updateInfo_ == null ? com.google.container.v1beta1.NodePool.UpdateInfo.getDefaultInstance() : updateInfo_; + } + + public static final int ETAG_FIELD_NUMBER = 110; + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + /** + *
+   * This checksum is computed by the server based on the value of node pool
+   * fields, and may be sent on update requests to ensure the client has an
+   * up-to-date value before proceeding.
+   * 
+ * + * string etag = 110; + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + /** + *
+   * This checksum is computed by the server based on the value of node pool
+   * fields, and may be sent on update requests to ensure the client has an
+   * up-to-date value before proceeding.
+   * 
+ * + * string etag = 110; + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUEUED_PROVISIONING_FIELD_NUMBER = 112; + private com.google.container.v1beta1.NodePool.QueuedProvisioning queuedProvisioning_; + /** + *
+   * Specifies the configuration of queued provisioning.
+   * 
+ * + * .google.container.v1beta1.NodePool.QueuedProvisioning queued_provisioning = 112; + * @return Whether the queuedProvisioning field is set. + */ + @java.lang.Override + public boolean hasQueuedProvisioning() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + *
+   * Specifies the configuration of queued provisioning.
+   * 
+ * + * .google.container.v1beta1.NodePool.QueuedProvisioning queued_provisioning = 112; + * @return The queuedProvisioning. + */ + @java.lang.Override + public com.google.container.v1beta1.NodePool.QueuedProvisioning getQueuedProvisioning() { + return queuedProvisioning_ == null ? com.google.container.v1beta1.NodePool.QueuedProvisioning.getDefaultInstance() : queuedProvisioning_; + } + /** + *
+   * Specifies the configuration of queued provisioning.
+   * 
+ * + * .google.container.v1beta1.NodePool.QueuedProvisioning queued_provisioning = 112; + */ + @java.lang.Override + public com.google.container.v1beta1.NodePool.QueuedProvisioningOrBuilder getQueuedProvisioningOrBuilder() { + return queuedProvisioning_ == null ? com.google.container.v1beta1.NodePool.QueuedProvisioning.getDefaultInstance() : queuedProvisioning_; + } + + public static final int BEST_EFFORT_PROVISIONING_FIELD_NUMBER = 113; + private com.google.container.v1beta1.BestEffortProvisioning bestEffortProvisioning_; + /** + *
+   * Enable best effort provisioning for nodes
+   * 
+ * + * .google.container.v1beta1.BestEffortProvisioning best_effort_provisioning = 113; + * @return Whether the bestEffortProvisioning field is set. + */ + @java.lang.Override + public boolean hasBestEffortProvisioning() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + *
+   * Enable best effort provisioning for nodes
+   * 
+ * + * .google.container.v1beta1.BestEffortProvisioning best_effort_provisioning = 113; + * @return The bestEffortProvisioning. + */ + @java.lang.Override + public com.google.container.v1beta1.BestEffortProvisioning getBestEffortProvisioning() { + return bestEffortProvisioning_ == null ? com.google.container.v1beta1.BestEffortProvisioning.getDefaultInstance() : bestEffortProvisioning_; + } + /** + *
+   * Enable best effort provisioning for nodes
+   * 
+ * + * .google.container.v1beta1.BestEffortProvisioning best_effort_provisioning = 113; + */ + @java.lang.Override + public com.google.container.v1beta1.BestEffortProvisioningOrBuilder getBestEffortProvisioningOrBuilder() { + return bestEffortProvisioning_ == null ? com.google.container.v1beta1.BestEffortProvisioning.getDefaultInstance() : bestEffortProvisioning_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getConfig()); + } + if (initialNodeCount_ != 0) { + output.writeInt32(3, initialNodeCount_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getAutoscaling()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(5, getManagement()); + } + if (((bitField0_ & 0x00000010) != 0)) { + 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 (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(14, getNetworkConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 100, selfLink_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 104, statusMessage_); + } + for (int i = 0; i < conditions_.size(); i++) { + output.writeMessage(105, conditions_.get(i)); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(107, getUpgradeSettings()); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(108, getPlacementPolicy()); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(109, getUpdateInfo()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 110, etag_); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(112, getQueuedProvisioning()); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeMessage(113, getBestEffortProvisioning()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getConfig()); + } + if (initialNodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, initialNodeCount_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getAutoscaling()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getManagement()); + } + if (((bitField0_ & 0x00000010) != 0)) { + 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 (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getNetworkConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, selfLink_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { + 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 (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(107, getUpgradeSettings()); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(108, getPlacementPolicy()); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(109, getUpdateInfo()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(110, etag_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(112, getQueuedProvisioning()); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(113, getBestEffortProvisioning()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (hasNetworkConfig() != other.hasNetworkConfig()) return false; + if (hasNetworkConfig()) { + if (!getNetworkConfig() + .equals(other.getNetworkConfig())) return false; + } + if (!getSelfLink() + .equals(other.getSelfLink())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; + if (!getInstanceGroupUrlsList() + .equals(other.getInstanceGroupUrlsList())) return false; + 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 (hasPlacementPolicy() != other.hasPlacementPolicy()) return false; + if (hasPlacementPolicy()) { + if (!getPlacementPolicy() + .equals(other.getPlacementPolicy())) return false; + } + if (hasUpdateInfo() != other.hasUpdateInfo()) return false; + if (hasUpdateInfo()) { + if (!getUpdateInfo() + .equals(other.getUpdateInfo())) return false; + } + if (!getEtag() + .equals(other.getEtag())) return false; + if (hasQueuedProvisioning() != other.hasQueuedProvisioning()) return false; + if (hasQueuedProvisioning()) { + if (!getQueuedProvisioning() + .equals(other.getQueuedProvisioning())) return false; + } + if (hasBestEffortProvisioning() != other.hasBestEffortProvisioning()) return false; + if (hasBestEffortProvisioning()) { + if (!getBestEffortProvisioning() + .equals(other.getBestEffortProvisioning())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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(); + } + if (hasNetworkConfig()) { + hash = (37 * hash) + NETWORK_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNetworkConfig().hashCode(); + } + hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; + hash = (53 * hash) + getSelfLink().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + 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(); + } + if (hasPlacementPolicy()) { + hash = (37 * hash) + PLACEMENT_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getPlacementPolicy().hashCode(); + } + if (hasUpdateInfo()) { + hash = (37 * hash) + UPDATE_INFO_FIELD_NUMBER; + hash = (53 * hash) + getUpdateInfo().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + if (hasQueuedProvisioning()) { + hash = (37 * hash) + QUEUED_PROVISIONING_FIELD_NUMBER; + hash = (53 * hash) + getQueuedProvisioning().hashCode(); + } + if (hasBestEffortProvisioning()) { + hash = (37 * hash) + BEST_EFFORT_PROVISIONING_FIELD_NUMBER; + hash = (53 * hash) + getBestEffortProvisioning().hashCode(); + } + hash = (29 * hash) + getUnknownFields().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) { + getConfigFieldBuilder(); + getNetworkConfigFieldBuilder(); + getAutoscalingFieldBuilder(); + getManagementFieldBuilder(); + getMaxPodsConstraintFieldBuilder(); + getConditionsFieldBuilder(); + getUpgradeSettingsFieldBuilder(); + getPlacementPolicyFieldBuilder(); + getUpdateInfoFieldBuilder(); + getQueuedProvisioningFieldBuilder(); + getBestEffortProvisioningFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + config_ = null; + if (configBuilder_ != null) { + configBuilder_.dispose(); + configBuilder_ = null; + } + initialNodeCount_ = 0; + locations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + networkConfig_ = null; + if (networkConfigBuilder_ != null) { + networkConfigBuilder_.dispose(); + networkConfigBuilder_ = null; + } + selfLink_ = ""; + version_ = ""; + instanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + status_ = 0; + statusMessage_ = ""; + autoscaling_ = null; + if (autoscalingBuilder_ != null) { + autoscalingBuilder_.dispose(); + autoscalingBuilder_ = null; + } + management_ = null; + if (managementBuilder_ != null) { + managementBuilder_.dispose(); + managementBuilder_ = null; + } + maxPodsConstraint_ = null; + if (maxPodsConstraintBuilder_ != null) { + maxPodsConstraintBuilder_.dispose(); + maxPodsConstraintBuilder_ = null; + } + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + } else { + conditions_ = null; + conditionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00002000); + podIpv4CidrSize_ = 0; + upgradeSettings_ = null; + if (upgradeSettingsBuilder_ != null) { + upgradeSettingsBuilder_.dispose(); + upgradeSettingsBuilder_ = null; + } + placementPolicy_ = null; + if (placementPolicyBuilder_ != null) { + placementPolicyBuilder_.dispose(); + placementPolicyBuilder_ = null; + } + updateInfo_ = null; + if (updateInfoBuilder_ != null) { + updateInfoBuilder_.dispose(); + updateInfoBuilder_ = null; + } + etag_ = ""; + queuedProvisioning_ = null; + if (queuedProvisioningBuilder_ != null) { + queuedProvisioningBuilder_.dispose(); + queuedProvisioningBuilder_ = null; + } + bestEffortProvisioning_ = null; + if (bestEffortProvisioningBuilder_ != null) { + bestEffortProvisioningBuilder_.dispose(); + bestEffortProvisioningBuilder_ = 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); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1beta1.NodePool result) { + if (conditionsBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + bitField0_ = (bitField0_ & ~0x00002000); + } + result.conditions_ = conditions_; + } else { + result.conditions_ = conditionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1beta1.NodePool result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.config_ = configBuilder_ == null + ? config_ + : configBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.initialNodeCount_ = initialNodeCount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + locations_.makeImmutable(); + result.locations_ = locations_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.networkConfig_ = networkConfigBuilder_ == null + ? networkConfig_ + : networkConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.selfLink_ = selfLink_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.version_ = version_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + instanceGroupUrls_.makeImmutable(); + result.instanceGroupUrls_ = instanceGroupUrls_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.status_ = status_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.statusMessage_ = statusMessage_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.autoscaling_ = autoscalingBuilder_ == null + ? autoscaling_ + : autoscalingBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.management_ = managementBuilder_ == null + ? management_ + : managementBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.maxPodsConstraint_ = maxPodsConstraintBuilder_ == null + ? maxPodsConstraint_ + : maxPodsConstraintBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.podIpv4CidrSize_ = podIpv4CidrSize_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.upgradeSettings_ = upgradeSettingsBuilder_ == null + ? upgradeSettings_ + : upgradeSettingsBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.placementPolicy_ = placementPolicyBuilder_ == null + ? placementPolicy_ + : placementPolicyBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.updateInfo_ = updateInfoBuilder_ == null + ? updateInfo_ + : updateInfoBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.queuedProvisioning_ = queuedProvisioningBuilder_ == null + ? queuedProvisioning_ + : queuedProvisioningBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.bestEffortProvisioning_ = bestEffortProvisioningBuilder_ == null + ? bestEffortProvisioning_ + : bestEffortProvisioningBuilder_.build(); + to_bitField0_ |= 0x00000200; + } + result.bitField0_ |= to_bitField0_; + } + + @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_; + bitField0_ |= 0x00000001; + 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_ |= 0x00000008; + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } + if (other.hasNetworkConfig()) { + mergeNetworkConfig(other.getNetworkConfig()); + } + if (!other.getSelfLink().isEmpty()) { + selfLink_ = other.selfLink_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.instanceGroupUrls_.isEmpty()) { + if (instanceGroupUrls_.isEmpty()) { + instanceGroupUrls_ = other.instanceGroupUrls_; + bitField0_ |= 0x00000080; + } else { + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.addAll(other.instanceGroupUrls_); + } + onChanged(); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + bitField0_ |= 0x00000200; + 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_ & ~0x00002000); + } else { + ensureConditionsIsMutable(); + conditions_.addAll(other.conditions_); + } + onChanged(); + } + } else { + if (!other.conditions_.isEmpty()) { + if (conditionsBuilder_.isEmpty()) { + conditionsBuilder_.dispose(); + conditionsBuilder_ = null; + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00002000); + 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()); + } + if (other.hasPlacementPolicy()) { + mergePlacementPolicy(other.getPlacementPolicy()); + } + if (other.hasUpdateInfo()) { + mergeUpdateInfo(other.getUpdateInfo()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00040000; + onChanged(); + } + if (other.hasQueuedProvisioning()) { + mergeQueuedProvisioning(other.getQueuedProvisioning()); + } + if (other.hasBestEffortProvisioning()) { + mergeBestEffortProvisioning(other.getBestEffortProvisioning()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + initialNodeCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + input.readMessage( + getAutoscalingFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 34 + case 42: { + input.readMessage( + getManagementFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 42 + case 50: { + input.readMessage( + getMaxPodsConstraintFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 50 + case 56: { + podIpv4CidrSize_ = input.readInt32(); + bitField0_ |= 0x00004000; + break; + } // case 56 + case 106: { + java.lang.String s = input.readStringRequireUtf8(); + ensureLocationsIsMutable(); + locations_.add(s); + break; + } // case 106 + case 114: { + input.readMessage( + getNetworkConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 114 + case 802: { + selfLink_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 802 + case 810: { + version_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 810 + case 818: { + java.lang.String s = input.readStringRequireUtf8(); + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.add(s); + break; + } // case 818 + case 824: { + status_ = input.readEnum(); + bitField0_ |= 0x00000100; + break; + } // case 824 + case 834: { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 834 + case 842: { + com.google.container.v1beta1.StatusCondition m = + input.readMessage( + com.google.container.v1beta1.StatusCondition.parser(), + extensionRegistry); + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(m); + } else { + conditionsBuilder_.addMessage(m); + } + break; + } // case 842 + case 858: { + input.readMessage( + getUpgradeSettingsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 858 + case 866: { + input.readMessage( + getPlacementPolicyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 866 + case 874: { + input.readMessage( + getUpdateInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 874 + case 882: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00040000; + break; + } // case 882 + case 898: { + input.readMessage( + getQueuedProvisioningFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00080000; + break; + } // case 898 + case 906: { + input.readMessage( + getBestEffortProvisioningFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00100000; + break; + } // case 906 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The name of the node pool.
+     * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + 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 ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * 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; + } else { + configBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + 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(); + } else { + configBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + 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 (((bitField0_ & 0x00000002) != 0) && + config_ != null && + config_ != com.google.container.v1beta1.NodeConfig.getDefaultInstance()) { + getConfigBuilder().mergeFrom(value); + } else { + config_ = value; + } + } else { + configBuilder_.mergeFrom(value); + } + if (config_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + */ + public Builder clearConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + config_ = null; + if (configBuilder_ != null) { + configBuilder_.dispose(); + configBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The node configuration of the pool.
+     * 
+ * + * .google.container.v1beta1.NodeConfig config = 2; + */ + public com.google.container.v1beta1.NodeConfig.Builder getConfigBuilder() { + bitField0_ |= 0x00000002; + 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; + bitField0_ |= 0x00000004; + 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() { + bitField0_ = (bitField0_ & ~0x00000004); + initialNodeCount_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList locations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureLocationsIsMutable() { + if (!locations_.isModifiable()) { + locations_ = new com.google.protobuf.LazyStringArrayList(locations_); + } + bitField0_ |= 0x00000008; + } + /** + *
+     * 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() { + locations_.makeImmutable(); + 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); + } + /** + *
+     * 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); + bitField0_ |= 0x00000008; + 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); + bitField0_ |= 0x00000008; + 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_); + bitField0_ |= 0x00000008; + 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.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; + 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); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.container.v1beta1.NodeNetworkConfig networkConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeNetworkConfig, com.google.container.v1beta1.NodeNetworkConfig.Builder, com.google.container.v1beta1.NodeNetworkConfigOrBuilder> networkConfigBuilder_; + /** + *
+     * Networking configuration for this NodePool. If specified, it overrides the
+     * cluster-level defaults.
+     * 
+ * + * .google.container.v1beta1.NodeNetworkConfig network_config = 14; + * @return Whether the networkConfig field is set. + */ + public boolean hasNetworkConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+     * Networking configuration for this NodePool. If specified, it overrides the
+     * cluster-level defaults.
+     * 
+ * + * .google.container.v1beta1.NodeNetworkConfig network_config = 14; + * @return The networkConfig. + */ + public com.google.container.v1beta1.NodeNetworkConfig getNetworkConfig() { + if (networkConfigBuilder_ == null) { + return networkConfig_ == null ? com.google.container.v1beta1.NodeNetworkConfig.getDefaultInstance() : networkConfig_; + } else { + return networkConfigBuilder_.getMessage(); + } + } + /** + *
+     * Networking configuration for this NodePool. If specified, it overrides the
+     * cluster-level defaults.
+     * 
+ * + * .google.container.v1beta1.NodeNetworkConfig network_config = 14; + */ + public Builder setNetworkConfig(com.google.container.v1beta1.NodeNetworkConfig value) { + if (networkConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkConfig_ = value; + } else { + networkConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Networking configuration for this NodePool. If specified, it overrides the
+     * cluster-level defaults.
+     * 
+ * + * .google.container.v1beta1.NodeNetworkConfig network_config = 14; + */ + public Builder setNetworkConfig( + com.google.container.v1beta1.NodeNetworkConfig.Builder builderForValue) { + if (networkConfigBuilder_ == null) { + networkConfig_ = builderForValue.build(); + } else { + networkConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Networking configuration for this NodePool. If specified, it overrides the
+     * cluster-level defaults.
+     * 
+ * + * .google.container.v1beta1.NodeNetworkConfig network_config = 14; + */ + public Builder mergeNetworkConfig(com.google.container.v1beta1.NodeNetworkConfig value) { + if (networkConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + networkConfig_ != null && + networkConfig_ != com.google.container.v1beta1.NodeNetworkConfig.getDefaultInstance()) { + getNetworkConfigBuilder().mergeFrom(value); + } else { + networkConfig_ = value; + } + } else { + networkConfigBuilder_.mergeFrom(value); + } + if (networkConfig_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + *
+     * Networking configuration for this NodePool. If specified, it overrides the
+     * cluster-level defaults.
+     * 
+ * + * .google.container.v1beta1.NodeNetworkConfig network_config = 14; + */ + public Builder clearNetworkConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + networkConfig_ = null; + if (networkConfigBuilder_ != null) { + networkConfigBuilder_.dispose(); + networkConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Networking configuration for this NodePool. If specified, it overrides the
+     * cluster-level defaults.
+     * 
+ * + * .google.container.v1beta1.NodeNetworkConfig network_config = 14; + */ + public com.google.container.v1beta1.NodeNetworkConfig.Builder getNetworkConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getNetworkConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Networking configuration for this NodePool. If specified, it overrides the
+     * cluster-level defaults.
+     * 
+ * + * .google.container.v1beta1.NodeNetworkConfig network_config = 14; + */ + public com.google.container.v1beta1.NodeNetworkConfigOrBuilder getNetworkConfigOrBuilder() { + if (networkConfigBuilder_ != null) { + return networkConfigBuilder_.getMessageOrBuilder(); + } else { + return networkConfig_ == null ? + com.google.container.v1beta1.NodeNetworkConfig.getDefaultInstance() : networkConfig_; + } + } + /** + *
+     * Networking configuration for this NodePool. If specified, it overrides the
+     * cluster-level defaults.
+     * 
+ * + * .google.container.v1beta1.NodeNetworkConfig network_config = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeNetworkConfig, com.google.container.v1beta1.NodeNetworkConfig.Builder, com.google.container.v1beta1.NodeNetworkConfigOrBuilder> + getNetworkConfigFieldBuilder() { + if (networkConfigBuilder_ == null) { + networkConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeNetworkConfig, com.google.container.v1beta1.NodeNetworkConfig.Builder, com.google.container.v1beta1.NodeNetworkConfigOrBuilder>( + getNetworkConfig(), + getParentForChildren(), + isClean()); + networkConfig_ = null; + } + return networkConfigBuilder_; + } + + 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; + bitField0_ |= 0x00000020; + 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(); + bitField0_ = (bitField0_ & ~0x00000020); + 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; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + /** + *
+     * The version of Kubernetes running on this NodePool's nodes. If unspecified,
+     * it defaults as described
+     * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version).
+     * 
+ * + * 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 Kubernetes running on this NodePool's nodes. If unspecified,
+     * it defaults as described
+     * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version).
+     * 
+ * + * 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 Kubernetes running on this NodePool's nodes. If unspecified,
+     * it defaults as described
+     * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version).
+     * 
+ * + * 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; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * The version of Kubernetes running on this NodePool's nodes. If unspecified,
+     * it defaults as described
+     * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version).
+     * 
+ * + * string version = 101; + * @return This builder for chaining. + */ + public Builder clearVersion() { + version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + *
+     * The version of Kubernetes running on this NodePool's nodes. If unspecified,
+     * it defaults as described
+     * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version).
+     * 
+ * + * 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; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList instanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureInstanceGroupUrlsIsMutable() { + if (!instanceGroupUrls_.isModifiable()) { + instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(instanceGroupUrls_); + } + bitField0_ |= 0x00000080; + } + /** + *
+     * [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.
+     * During the node pool blue-green upgrade operation, the URLs contain both
+     * blue and green resources.
+     * 
+ * + * repeated string instance_group_urls = 102; + * @return A list containing the instanceGroupUrls. + */ + public com.google.protobuf.ProtocolStringList + getInstanceGroupUrlsList() { + instanceGroupUrls_.makeImmutable(); + 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.
+     * During the node pool blue-green upgrade operation, the URLs contain both
+     * blue and green resources.
+     * 
+ * + * 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.
+     * During the node pool blue-green upgrade operation, the URLs contain both
+     * blue and green resources.
+     * 
+ * + * 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.
+     * During the node pool blue-green upgrade operation, the URLs contain both
+     * blue and green resources.
+     * 
+ * + * 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.
+     * During the node pool blue-green upgrade operation, the URLs contain both
+     * blue and green resources.
+     * 
+ * + * 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); + bitField0_ |= 0x00000080; + 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.
+     * During the node pool blue-green upgrade operation, the URLs contain both
+     * blue and green resources.
+     * 
+ * + * 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); + bitField0_ |= 0x00000080; + 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.
+     * During the node pool blue-green upgrade operation, the URLs contain both
+     * blue and green resources.
+     * 
+ * + * 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_); + bitField0_ |= 0x00000080; + 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.
+     * During the node pool blue-green upgrade operation, the URLs contain both
+     * blue and green resources.
+     * 
+ * + * repeated string instance_group_urls = 102; + * @return This builder for chaining. + */ + public Builder clearInstanceGroupUrls() { + instanceGroupUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080);; + 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.
+     * During the node pool blue-green upgrade operation, the URLs contain both
+     * blue and green resources.
+     * 
+ * + * 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); + bitField0_ |= 0x00000080; + 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; + bitField0_ |= 0x00000100; + 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() { + com.google.container.v1beta1.NodePool.Status result = com.google.container.v1beta1.NodePool.Status.forNumber(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(); + } + bitField0_ |= 0x00000100; + 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() { + bitField0_ = (bitField0_ & ~0x00000100); + 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]; + * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4033 + * @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]; + * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4033 + * @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]; + * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4033 + * @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; + bitField0_ |= 0x00000200; + 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]; + * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4033 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearStatusMessage() { + statusMessage_ = getDefaultInstance().getStatusMessage(); + bitField0_ = (bitField0_ & ~0x00000200); + 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]; + * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4033 + * @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; + bitField0_ |= 0x00000200; + 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 ((bitField0_ & 0x00000400) != 0); + } + /** + *
+     * 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; + } else { + autoscalingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + 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(); + } else { + autoscalingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + 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 (((bitField0_ & 0x00000400) != 0) && + autoscaling_ != null && + autoscaling_ != com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance()) { + getAutoscalingBuilder().mergeFrom(value); + } else { + autoscaling_ = value; + } + } else { + autoscalingBuilder_.mergeFrom(value); + } + if (autoscaling_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + 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() { + bitField0_ = (bitField0_ & ~0x00000400); + autoscaling_ = null; + if (autoscalingBuilder_ != null) { + autoscalingBuilder_.dispose(); + autoscalingBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000400; + 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 ((bitField0_ & 0x00000800) != 0); + } + /** + *
+     * 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; + } else { + managementBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + 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(); + } else { + managementBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + 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 (((bitField0_ & 0x00000800) != 0) && + management_ != null && + management_ != com.google.container.v1beta1.NodeManagement.getDefaultInstance()) { + getManagementBuilder().mergeFrom(value); + } else { + management_ = value; + } + } else { + managementBuilder_.mergeFrom(value); + } + if (management_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + /** + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + public Builder clearManagement() { + bitField0_ = (bitField0_ & ~0x00000800); + management_ = null; + if (managementBuilder_ != null) { + managementBuilder_.dispose(); + managementBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * NodeManagement configuration for this NodePool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 5; + */ + public com.google.container.v1beta1.NodeManagement.Builder getManagementBuilder() { + bitField0_ |= 0x00000800; + 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 ((bitField0_ & 0x00001000) != 0); + } + /** + *
+     * 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; + } else { + maxPodsConstraintBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + 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(); + } else { + maxPodsConstraintBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + 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 (((bitField0_ & 0x00001000) != 0) && + maxPodsConstraint_ != null && + maxPodsConstraint_ != com.google.container.v1beta1.MaxPodsConstraint.getDefaultInstance()) { + getMaxPodsConstraintBuilder().mergeFrom(value); + } else { + maxPodsConstraint_ = value; + } + } else { + maxPodsConstraintBuilder_.mergeFrom(value); + } + if (maxPodsConstraint_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + 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() { + bitField0_ = (bitField0_ & ~0x00001000); + maxPodsConstraint_ = null; + if (maxPodsConstraintBuilder_ != null) { + maxPodsConstraintBuilder_.dispose(); + maxPodsConstraintBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00001000; + 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_ & 0x00002000) != 0)) { + conditions_ = new java.util.ArrayList(conditions_); + bitField0_ |= 0x00002000; + } + } + + 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_ & ~0x00002000); + 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_ & 0x00002000) != 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; + bitField0_ |= 0x00004000; + 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() { + bitField0_ = (bitField0_ & ~0x00004000); + 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 ((bitField0_ & 0x00008000) != 0); + } + /** + *
+     * 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; + } else { + upgradeSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00008000; + onChanged(); + 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(); + } else { + upgradeSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00008000; + onChanged(); + 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 (((bitField0_ & 0x00008000) != 0) && + upgradeSettings_ != null && + upgradeSettings_ != com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance()) { + getUpgradeSettingsBuilder().mergeFrom(value); + } else { + upgradeSettings_ = value; + } + } else { + upgradeSettingsBuilder_.mergeFrom(value); + } + if (upgradeSettings_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } + return this; + } + /** + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 107; + */ + public Builder clearUpgradeSettings() { + bitField0_ = (bitField0_ & ~0x00008000); + upgradeSettings_ = null; + if (upgradeSettingsBuilder_ != null) { + upgradeSettingsBuilder_.dispose(); + upgradeSettingsBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00008000; + 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_; + } + + private com.google.container.v1beta1.NodePool.PlacementPolicy placementPolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool.PlacementPolicy, com.google.container.v1beta1.NodePool.PlacementPolicy.Builder, com.google.container.v1beta1.NodePool.PlacementPolicyOrBuilder> placementPolicyBuilder_; + /** + *
+     * Specifies the node placement policy.
+     * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + * @return Whether the placementPolicy field is set. + */ + public boolean hasPlacementPolicy() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + *
+     * Specifies the node placement policy.
+     * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + * @return The placementPolicy. + */ + public com.google.container.v1beta1.NodePool.PlacementPolicy getPlacementPolicy() { + if (placementPolicyBuilder_ == null) { + return placementPolicy_ == null ? com.google.container.v1beta1.NodePool.PlacementPolicy.getDefaultInstance() : placementPolicy_; + } else { + return placementPolicyBuilder_.getMessage(); + } + } + /** + *
+     * Specifies the node placement policy.
+     * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + */ + public Builder setPlacementPolicy(com.google.container.v1beta1.NodePool.PlacementPolicy value) { + if (placementPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + placementPolicy_ = value; + } else { + placementPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + *
+     * Specifies the node placement policy.
+     * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + */ + public Builder setPlacementPolicy( + com.google.container.v1beta1.NodePool.PlacementPolicy.Builder builderForValue) { + if (placementPolicyBuilder_ == null) { + placementPolicy_ = builderForValue.build(); + } else { + placementPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + *
+     * Specifies the node placement policy.
+     * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + */ + public Builder mergePlacementPolicy(com.google.container.v1beta1.NodePool.PlacementPolicy value) { + if (placementPolicyBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0) && + placementPolicy_ != null && + placementPolicy_ != com.google.container.v1beta1.NodePool.PlacementPolicy.getDefaultInstance()) { + getPlacementPolicyBuilder().mergeFrom(value); + } else { + placementPolicy_ = value; + } + } else { + placementPolicyBuilder_.mergeFrom(value); + } + if (placementPolicy_ != null) { + bitField0_ |= 0x00010000; + onChanged(); + } + return this; + } + /** + *
+     * Specifies the node placement policy.
+     * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + */ + public Builder clearPlacementPolicy() { + bitField0_ = (bitField0_ & ~0x00010000); + placementPolicy_ = null; + if (placementPolicyBuilder_ != null) { + placementPolicyBuilder_.dispose(); + placementPolicyBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Specifies the node placement policy.
+     * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + */ + public com.google.container.v1beta1.NodePool.PlacementPolicy.Builder getPlacementPolicyBuilder() { + bitField0_ |= 0x00010000; + onChanged(); + return getPlacementPolicyFieldBuilder().getBuilder(); + } + /** + *
+     * Specifies the node placement policy.
+     * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + */ + public com.google.container.v1beta1.NodePool.PlacementPolicyOrBuilder getPlacementPolicyOrBuilder() { + if (placementPolicyBuilder_ != null) { + return placementPolicyBuilder_.getMessageOrBuilder(); + } else { + return placementPolicy_ == null ? + com.google.container.v1beta1.NodePool.PlacementPolicy.getDefaultInstance() : placementPolicy_; + } + } + /** + *
+     * Specifies the node placement policy.
+     * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool.PlacementPolicy, com.google.container.v1beta1.NodePool.PlacementPolicy.Builder, com.google.container.v1beta1.NodePool.PlacementPolicyOrBuilder> + getPlacementPolicyFieldBuilder() { + if (placementPolicyBuilder_ == null) { + placementPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool.PlacementPolicy, com.google.container.v1beta1.NodePool.PlacementPolicy.Builder, com.google.container.v1beta1.NodePool.PlacementPolicyOrBuilder>( + getPlacementPolicy(), + getParentForChildren(), + isClean()); + placementPolicy_ = null; + } + return placementPolicyBuilder_; + } + + private com.google.container.v1beta1.NodePool.UpdateInfo updateInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool.UpdateInfo, com.google.container.v1beta1.NodePool.UpdateInfo.Builder, com.google.container.v1beta1.NodePool.UpdateInfoOrBuilder> updateInfoBuilder_; + /** + *
+     * Output only. [Output only] Update info contains relevant information during
+     * a node pool update.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updateInfo field is set. + */ + public boolean hasUpdateInfo() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + *
+     * Output only. [Output only] Update info contains relevant information during
+     * a node pool update.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updateInfo. + */ + public com.google.container.v1beta1.NodePool.UpdateInfo getUpdateInfo() { + if (updateInfoBuilder_ == null) { + return updateInfo_ == null ? com.google.container.v1beta1.NodePool.UpdateInfo.getDefaultInstance() : updateInfo_; + } else { + return updateInfoBuilder_.getMessage(); + } + } + /** + *
+     * Output only. [Output only] Update info contains relevant information during
+     * a node pool update.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setUpdateInfo(com.google.container.v1beta1.NodePool.UpdateInfo value) { + if (updateInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateInfo_ = value; + } else { + updateInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + *
+     * Output only. [Output only] Update info contains relevant information during
+     * a node pool update.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setUpdateInfo( + com.google.container.v1beta1.NodePool.UpdateInfo.Builder builderForValue) { + if (updateInfoBuilder_ == null) { + updateInfo_ = builderForValue.build(); + } else { + updateInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + *
+     * Output only. [Output only] Update info contains relevant information during
+     * a node pool update.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeUpdateInfo(com.google.container.v1beta1.NodePool.UpdateInfo value) { + if (updateInfoBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) && + updateInfo_ != null && + updateInfo_ != com.google.container.v1beta1.NodePool.UpdateInfo.getDefaultInstance()) { + getUpdateInfoBuilder().mergeFrom(value); + } else { + updateInfo_ = value; + } + } else { + updateInfoBuilder_.mergeFrom(value); + } + if (updateInfo_ != null) { + bitField0_ |= 0x00020000; + onChanged(); + } + return this; + } + /** + *
+     * Output only. [Output only] Update info contains relevant information during
+     * a node pool update.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearUpdateInfo() { + bitField0_ = (bitField0_ & ~0x00020000); + updateInfo_ = null; + if (updateInfoBuilder_ != null) { + updateInfoBuilder_.dispose(); + updateInfoBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Output only. [Output only] Update info contains relevant information during
+     * a node pool update.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.container.v1beta1.NodePool.UpdateInfo.Builder getUpdateInfoBuilder() { + bitField0_ |= 0x00020000; + onChanged(); + return getUpdateInfoFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. [Output only] Update info contains relevant information during
+     * a node pool update.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.container.v1beta1.NodePool.UpdateInfoOrBuilder getUpdateInfoOrBuilder() { + if (updateInfoBuilder_ != null) { + return updateInfoBuilder_.getMessageOrBuilder(); + } else { + return updateInfo_ == null ? + com.google.container.v1beta1.NodePool.UpdateInfo.getDefaultInstance() : updateInfo_; + } + } + /** + *
+     * Output only. [Output only] Update info contains relevant information during
+     * a node pool update.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool.UpdateInfo, com.google.container.v1beta1.NodePool.UpdateInfo.Builder, com.google.container.v1beta1.NodePool.UpdateInfoOrBuilder> + getUpdateInfoFieldBuilder() { + if (updateInfoBuilder_ == null) { + updateInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool.UpdateInfo, com.google.container.v1beta1.NodePool.UpdateInfo.Builder, com.google.container.v1beta1.NodePool.UpdateInfoOrBuilder>( + getUpdateInfo(), + getParentForChildren(), + isClean()); + updateInfo_ = null; + } + return updateInfoBuilder_; + } + + private java.lang.Object etag_ = ""; + /** + *
+     * This checksum is computed by the server based on the value of node pool
+     * fields, and may be sent on update requests to ensure the client has an
+     * up-to-date value before proceeding.
+     * 
+ * + * string etag = 110; + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * This checksum is computed by the server based on the value of node pool
+     * fields, and may be sent on update requests to ensure the client has an
+     * up-to-date value before proceeding.
+     * 
+ * + * string etag = 110; + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString + getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * This checksum is computed by the server based on the value of node pool
+     * fields, and may be sent on update requests to ensure the client has an
+     * up-to-date value before proceeding.
+     * 
+ * + * string etag = 110; + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + etag_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + *
+     * This checksum is computed by the server based on the value of node pool
+     * fields, and may be sent on update requests to ensure the client has an
+     * up-to-date value before proceeding.
+     * 
+ * + * string etag = 110; + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00040000); + onChanged(); + return this; + } + /** + *
+     * This checksum is computed by the server based on the value of node pool
+     * fields, and may be sent on update requests to ensure the client has an
+     * up-to-date value before proceeding.
+     * 
+ * + * string etag = 110; + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + private com.google.container.v1beta1.NodePool.QueuedProvisioning queuedProvisioning_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool.QueuedProvisioning, com.google.container.v1beta1.NodePool.QueuedProvisioning.Builder, com.google.container.v1beta1.NodePool.QueuedProvisioningOrBuilder> queuedProvisioningBuilder_; + /** + *
+     * Specifies the configuration of queued provisioning.
+     * 
+ * + * .google.container.v1beta1.NodePool.QueuedProvisioning queued_provisioning = 112; + * @return Whether the queuedProvisioning field is set. + */ + public boolean hasQueuedProvisioning() { + return ((bitField0_ & 0x00080000) != 0); + } + /** + *
+     * Specifies the configuration of queued provisioning.
+     * 
+ * + * .google.container.v1beta1.NodePool.QueuedProvisioning queued_provisioning = 112; + * @return The queuedProvisioning. + */ + public com.google.container.v1beta1.NodePool.QueuedProvisioning getQueuedProvisioning() { + if (queuedProvisioningBuilder_ == null) { + return queuedProvisioning_ == null ? com.google.container.v1beta1.NodePool.QueuedProvisioning.getDefaultInstance() : queuedProvisioning_; + } else { + return queuedProvisioningBuilder_.getMessage(); + } + } + /** + *
+     * Specifies the configuration of queued provisioning.
+     * 
+ * + * .google.container.v1beta1.NodePool.QueuedProvisioning queued_provisioning = 112; + */ + public Builder setQueuedProvisioning(com.google.container.v1beta1.NodePool.QueuedProvisioning value) { + if (queuedProvisioningBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + queuedProvisioning_ = value; + } else { + queuedProvisioningBuilder_.setMessage(value); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + *
+     * Specifies the configuration of queued provisioning.
+     * 
+ * + * .google.container.v1beta1.NodePool.QueuedProvisioning queued_provisioning = 112; + */ + public Builder setQueuedProvisioning( + com.google.container.v1beta1.NodePool.QueuedProvisioning.Builder builderForValue) { + if (queuedProvisioningBuilder_ == null) { + queuedProvisioning_ = builderForValue.build(); + } else { + queuedProvisioningBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + *
+     * Specifies the configuration of queued provisioning.
+     * 
+ * + * .google.container.v1beta1.NodePool.QueuedProvisioning queued_provisioning = 112; + */ + public Builder mergeQueuedProvisioning(com.google.container.v1beta1.NodePool.QueuedProvisioning value) { + if (queuedProvisioningBuilder_ == null) { + if (((bitField0_ & 0x00080000) != 0) && + queuedProvisioning_ != null && + queuedProvisioning_ != com.google.container.v1beta1.NodePool.QueuedProvisioning.getDefaultInstance()) { + getQueuedProvisioningBuilder().mergeFrom(value); + } else { + queuedProvisioning_ = value; + } + } else { + queuedProvisioningBuilder_.mergeFrom(value); + } + if (queuedProvisioning_ != null) { + bitField0_ |= 0x00080000; + onChanged(); + } + return this; + } + /** + *
+     * Specifies the configuration of queued provisioning.
+     * 
+ * + * .google.container.v1beta1.NodePool.QueuedProvisioning queued_provisioning = 112; + */ + public Builder clearQueuedProvisioning() { + bitField0_ = (bitField0_ & ~0x00080000); + queuedProvisioning_ = null; + if (queuedProvisioningBuilder_ != null) { + queuedProvisioningBuilder_.dispose(); + queuedProvisioningBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Specifies the configuration of queued provisioning.
+     * 
+ * + * .google.container.v1beta1.NodePool.QueuedProvisioning queued_provisioning = 112; + */ + public com.google.container.v1beta1.NodePool.QueuedProvisioning.Builder getQueuedProvisioningBuilder() { + bitField0_ |= 0x00080000; + onChanged(); + return getQueuedProvisioningFieldBuilder().getBuilder(); + } + /** + *
+     * Specifies the configuration of queued provisioning.
+     * 
+ * + * .google.container.v1beta1.NodePool.QueuedProvisioning queued_provisioning = 112; + */ + public com.google.container.v1beta1.NodePool.QueuedProvisioningOrBuilder getQueuedProvisioningOrBuilder() { + if (queuedProvisioningBuilder_ != null) { + return queuedProvisioningBuilder_.getMessageOrBuilder(); + } else { + return queuedProvisioning_ == null ? + com.google.container.v1beta1.NodePool.QueuedProvisioning.getDefaultInstance() : queuedProvisioning_; + } + } + /** + *
+     * Specifies the configuration of queued provisioning.
+     * 
+ * + * .google.container.v1beta1.NodePool.QueuedProvisioning queued_provisioning = 112; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool.QueuedProvisioning, com.google.container.v1beta1.NodePool.QueuedProvisioning.Builder, com.google.container.v1beta1.NodePool.QueuedProvisioningOrBuilder> + getQueuedProvisioningFieldBuilder() { + if (queuedProvisioningBuilder_ == null) { + queuedProvisioningBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePool.QueuedProvisioning, com.google.container.v1beta1.NodePool.QueuedProvisioning.Builder, com.google.container.v1beta1.NodePool.QueuedProvisioningOrBuilder>( + getQueuedProvisioning(), + getParentForChildren(), + isClean()); + queuedProvisioning_ = null; + } + return queuedProvisioningBuilder_; + } + + private com.google.container.v1beta1.BestEffortProvisioning bestEffortProvisioning_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.BestEffortProvisioning, com.google.container.v1beta1.BestEffortProvisioning.Builder, com.google.container.v1beta1.BestEffortProvisioningOrBuilder> bestEffortProvisioningBuilder_; + /** + *
+     * Enable best effort provisioning for nodes
+     * 
+ * + * .google.container.v1beta1.BestEffortProvisioning best_effort_provisioning = 113; + * @return Whether the bestEffortProvisioning field is set. + */ + public boolean hasBestEffortProvisioning() { + return ((bitField0_ & 0x00100000) != 0); + } + /** + *
+     * Enable best effort provisioning for nodes
+     * 
+ * + * .google.container.v1beta1.BestEffortProvisioning best_effort_provisioning = 113; + * @return The bestEffortProvisioning. + */ + public com.google.container.v1beta1.BestEffortProvisioning getBestEffortProvisioning() { + if (bestEffortProvisioningBuilder_ == null) { + return bestEffortProvisioning_ == null ? com.google.container.v1beta1.BestEffortProvisioning.getDefaultInstance() : bestEffortProvisioning_; + } else { + return bestEffortProvisioningBuilder_.getMessage(); + } + } + /** + *
+     * Enable best effort provisioning for nodes
+     * 
+ * + * .google.container.v1beta1.BestEffortProvisioning best_effort_provisioning = 113; + */ + public Builder setBestEffortProvisioning(com.google.container.v1beta1.BestEffortProvisioning value) { + if (bestEffortProvisioningBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + bestEffortProvisioning_ = value; + } else { + bestEffortProvisioningBuilder_.setMessage(value); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + *
+     * Enable best effort provisioning for nodes
+     * 
+ * + * .google.container.v1beta1.BestEffortProvisioning best_effort_provisioning = 113; + */ + public Builder setBestEffortProvisioning( + com.google.container.v1beta1.BestEffortProvisioning.Builder builderForValue) { + if (bestEffortProvisioningBuilder_ == null) { + bestEffortProvisioning_ = builderForValue.build(); + } else { + bestEffortProvisioningBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + *
+     * Enable best effort provisioning for nodes
+     * 
+ * + * .google.container.v1beta1.BestEffortProvisioning best_effort_provisioning = 113; + */ + public Builder mergeBestEffortProvisioning(com.google.container.v1beta1.BestEffortProvisioning value) { + if (bestEffortProvisioningBuilder_ == null) { + if (((bitField0_ & 0x00100000) != 0) && + bestEffortProvisioning_ != null && + bestEffortProvisioning_ != com.google.container.v1beta1.BestEffortProvisioning.getDefaultInstance()) { + getBestEffortProvisioningBuilder().mergeFrom(value); + } else { + bestEffortProvisioning_ = value; + } + } else { + bestEffortProvisioningBuilder_.mergeFrom(value); + } + if (bestEffortProvisioning_ != null) { + bitField0_ |= 0x00100000; + onChanged(); + } + return this; + } + /** + *
+     * Enable best effort provisioning for nodes
+     * 
+ * + * .google.container.v1beta1.BestEffortProvisioning best_effort_provisioning = 113; + */ + public Builder clearBestEffortProvisioning() { + bitField0_ = (bitField0_ & ~0x00100000); + bestEffortProvisioning_ = null; + if (bestEffortProvisioningBuilder_ != null) { + bestEffortProvisioningBuilder_.dispose(); + bestEffortProvisioningBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Enable best effort provisioning for nodes
+     * 
+ * + * .google.container.v1beta1.BestEffortProvisioning best_effort_provisioning = 113; + */ + public com.google.container.v1beta1.BestEffortProvisioning.Builder getBestEffortProvisioningBuilder() { + bitField0_ |= 0x00100000; + onChanged(); + return getBestEffortProvisioningFieldBuilder().getBuilder(); + } + /** + *
+     * Enable best effort provisioning for nodes
+     * 
+ * + * .google.container.v1beta1.BestEffortProvisioning best_effort_provisioning = 113; + */ + public com.google.container.v1beta1.BestEffortProvisioningOrBuilder getBestEffortProvisioningOrBuilder() { + if (bestEffortProvisioningBuilder_ != null) { + return bestEffortProvisioningBuilder_.getMessageOrBuilder(); + } else { + return bestEffortProvisioning_ == null ? + com.google.container.v1beta1.BestEffortProvisioning.getDefaultInstance() : bestEffortProvisioning_; + } + } + /** + *
+     * Enable best effort provisioning for nodes
+     * 
+ * + * .google.container.v1beta1.BestEffortProvisioning best_effort_provisioning = 113; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.BestEffortProvisioning, com.google.container.v1beta1.BestEffortProvisioning.Builder, com.google.container.v1beta1.BestEffortProvisioningOrBuilder> + getBestEffortProvisioningFieldBuilder() { + if (bestEffortProvisioningBuilder_ == null) { + bestEffortProvisioningBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.BestEffortProvisioning, com.google.container.v1beta1.BestEffortProvisioning.Builder, com.google.container.v1beta1.BestEffortProvisioningOrBuilder>( + getBestEffortProvisioning(), + getParentForChildren(), + isClean()); + bestEffortProvisioning_ = null; + } + return bestEffortProvisioningBuilder_; + } + @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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoConfig.java new file mode 100644 index 000000000000..a9f3c2757e9d --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoConfig.java @@ -0,0 +1,938 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * node pool configs that apply to all auto-provisioned node pools
+ * in autopilot clusters and node auto-provisioning enabled clusters
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.NodePoolAutoConfig} + */ +public final class NodePoolAutoConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodePoolAutoConfig) + NodePoolAutoConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use NodePoolAutoConfig.newBuilder() to construct. + private NodePoolAutoConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodePoolAutoConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NodePoolAutoConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePoolAutoConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePoolAutoConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodePoolAutoConfig.class, com.google.container.v1beta1.NodePoolAutoConfig.Builder.class); + } + + private int bitField0_; + public static final int NETWORK_TAGS_FIELD_NUMBER = 1; + private com.google.container.v1beta1.NetworkTags networkTags_; + /** + *
+   * 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 creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * .google.container.v1beta1.NetworkTags network_tags = 1; + * @return Whether the networkTags field is set. + */ + @java.lang.Override + public boolean hasNetworkTags() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * 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 creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * .google.container.v1beta1.NetworkTags network_tags = 1; + * @return The networkTags. + */ + @java.lang.Override + public com.google.container.v1beta1.NetworkTags getNetworkTags() { + return networkTags_ == null ? com.google.container.v1beta1.NetworkTags.getDefaultInstance() : networkTags_; + } + /** + *
+   * 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 creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * .google.container.v1beta1.NetworkTags network_tags = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.NetworkTagsOrBuilder getNetworkTagsOrBuilder() { + return networkTags_ == null ? com.google.container.v1beta1.NetworkTags.getDefaultInstance() : networkTags_; + } + + public static final int RESOURCE_MANAGER_TAGS_FIELD_NUMBER = 2; + private com.google.container.v1beta1.ResourceManagerTags resourceManagerTags_; + /** + *
+   * Resource manager tag keys and values to be attached to the nodes
+   * for managing Compute Engine firewalls using Network Firewall Policies.
+   * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 2; + * @return Whether the resourceManagerTags field is set. + */ + @java.lang.Override + public boolean hasResourceManagerTags() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * Resource manager tag keys and values to be attached to the nodes
+   * for managing Compute Engine firewalls using Network Firewall Policies.
+   * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 2; + * @return The resourceManagerTags. + */ + @java.lang.Override + public com.google.container.v1beta1.ResourceManagerTags getResourceManagerTags() { + return resourceManagerTags_ == null ? com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance() : resourceManagerTags_; + } + /** + *
+   * Resource manager tag keys and values to be attached to the nodes
+   * for managing Compute Engine firewalls using Network Firewall Policies.
+   * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 2; + */ + @java.lang.Override + public com.google.container.v1beta1.ResourceManagerTagsOrBuilder getResourceManagerTagsOrBuilder() { + return resourceManagerTags_ == null ? com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance() : resourceManagerTags_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getNetworkTags()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getResourceManagerTags()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getNetworkTags()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getResourceManagerTags()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.NodePoolAutoConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.NodePoolAutoConfig other = (com.google.container.v1beta1.NodePoolAutoConfig) obj; + + if (hasNetworkTags() != other.hasNetworkTags()) return false; + if (hasNetworkTags()) { + if (!getNetworkTags() + .equals(other.getNetworkTags())) return false; + } + if (hasResourceManagerTags() != other.hasResourceManagerTags()) return false; + if (hasResourceManagerTags()) { + if (!getResourceManagerTags() + .equals(other.getResourceManagerTags())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasNetworkTags()) { + hash = (37 * hash) + NETWORK_TAGS_FIELD_NUMBER; + hash = (53 * hash) + getNetworkTags().hashCode(); + } + if (hasResourceManagerTags()) { + hash = (37 * hash) + RESOURCE_MANAGER_TAGS_FIELD_NUMBER; + hash = (53 * hash) + getResourceManagerTags().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.NodePoolAutoConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodePoolAutoConfig parseFrom( + 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.NodePoolAutoConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodePoolAutoConfig parseFrom( + com.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.NodePoolAutoConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodePoolAutoConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NodePoolAutoConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NodePoolAutoConfig parseFrom( + java.io.InputStream 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.NodePoolAutoConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NodePoolAutoConfig parseDelimitedFrom( + java.io.InputStream 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.NodePoolAutoConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NodePoolAutoConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.NodePoolAutoConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new 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 pool configs that apply to all auto-provisioned node pools
+   * in autopilot clusters and node auto-provisioning enabled clusters
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.NodePoolAutoConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NodePoolAutoConfig) + com.google.container.v1beta1.NodePoolAutoConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePoolAutoConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePoolAutoConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodePoolAutoConfig.class, com.google.container.v1beta1.NodePoolAutoConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.NodePoolAutoConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNetworkTagsFieldBuilder(); + getResourceManagerTagsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + networkTags_ = null; + if (networkTagsBuilder_ != null) { + networkTagsBuilder_.dispose(); + networkTagsBuilder_ = null; + } + resourceManagerTags_ = null; + if (resourceManagerTagsBuilder_ != null) { + resourceManagerTagsBuilder_.dispose(); + resourceManagerTagsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePoolAutoConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NodePoolAutoConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.NodePoolAutoConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NodePoolAutoConfig build() { + com.google.container.v1beta1.NodePoolAutoConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NodePoolAutoConfig buildPartial() { + com.google.container.v1beta1.NodePoolAutoConfig result = new com.google.container.v1beta1.NodePoolAutoConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.NodePoolAutoConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.networkTags_ = networkTagsBuilder_ == null + ? networkTags_ + : networkTagsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.resourceManagerTags_ = resourceManagerTagsBuilder_ == null + ? resourceManagerTags_ + : resourceManagerTagsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @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.NodePoolAutoConfig) { + return mergeFrom((com.google.container.v1beta1.NodePoolAutoConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NodePoolAutoConfig other) { + if (other == com.google.container.v1beta1.NodePoolAutoConfig.getDefaultInstance()) return this; + if (other.hasNetworkTags()) { + mergeNetworkTags(other.getNetworkTags()); + } + if (other.hasResourceManagerTags()) { + mergeResourceManagerTags(other.getResourceManagerTags()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getNetworkTagsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getResourceManagerTagsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.container.v1beta1.NetworkTags networkTags_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkTags, com.google.container.v1beta1.NetworkTags.Builder, com.google.container.v1beta1.NetworkTagsOrBuilder> networkTagsBuilder_; + /** + *
+     * 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 creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * .google.container.v1beta1.NetworkTags network_tags = 1; + * @return Whether the networkTags field is set. + */ + public boolean hasNetworkTags() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * 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 creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * .google.container.v1beta1.NetworkTags network_tags = 1; + * @return The networkTags. + */ + public com.google.container.v1beta1.NetworkTags getNetworkTags() { + if (networkTagsBuilder_ == null) { + return networkTags_ == null ? com.google.container.v1beta1.NetworkTags.getDefaultInstance() : networkTags_; + } else { + return networkTagsBuilder_.getMessage(); + } + } + /** + *
+     * 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 creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * .google.container.v1beta1.NetworkTags network_tags = 1; + */ + public Builder setNetworkTags(com.google.container.v1beta1.NetworkTags value) { + if (networkTagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkTags_ = value; + } else { + networkTagsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + 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 creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * .google.container.v1beta1.NetworkTags network_tags = 1; + */ + public Builder setNetworkTags( + com.google.container.v1beta1.NetworkTags.Builder builderForValue) { + if (networkTagsBuilder_ == null) { + networkTags_ = builderForValue.build(); + } else { + networkTagsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + 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 creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * .google.container.v1beta1.NetworkTags network_tags = 1; + */ + public Builder mergeNetworkTags(com.google.container.v1beta1.NetworkTags value) { + if (networkTagsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + networkTags_ != null && + networkTags_ != com.google.container.v1beta1.NetworkTags.getDefaultInstance()) { + getNetworkTagsBuilder().mergeFrom(value); + } else { + networkTags_ = value; + } + } else { + networkTagsBuilder_.mergeFrom(value); + } + if (networkTags_ != null) { + bitField0_ |= 0x00000001; + 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 creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * .google.container.v1beta1.NetworkTags network_tags = 1; + */ + public Builder clearNetworkTags() { + bitField0_ = (bitField0_ & ~0x00000001); + networkTags_ = null; + if (networkTagsBuilder_ != null) { + networkTagsBuilder_.dispose(); + networkTagsBuilder_ = null; + } + 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 creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * .google.container.v1beta1.NetworkTags network_tags = 1; + */ + public com.google.container.v1beta1.NetworkTags.Builder getNetworkTagsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getNetworkTagsFieldBuilder().getBuilder(); + } + /** + *
+     * 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 creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * .google.container.v1beta1.NetworkTags network_tags = 1; + */ + public com.google.container.v1beta1.NetworkTagsOrBuilder getNetworkTagsOrBuilder() { + if (networkTagsBuilder_ != null) { + return networkTagsBuilder_.getMessageOrBuilder(); + } else { + return networkTags_ == null ? + com.google.container.v1beta1.NetworkTags.getDefaultInstance() : networkTags_; + } + } + /** + *
+     * 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 creation. Each tag within the list
+     * must comply with RFC1035.
+     * 
+ * + * .google.container.v1beta1.NetworkTags network_tags = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkTags, com.google.container.v1beta1.NetworkTags.Builder, com.google.container.v1beta1.NetworkTagsOrBuilder> + getNetworkTagsFieldBuilder() { + if (networkTagsBuilder_ == null) { + networkTagsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkTags, com.google.container.v1beta1.NetworkTags.Builder, com.google.container.v1beta1.NetworkTagsOrBuilder>( + getNetworkTags(), + getParentForChildren(), + isClean()); + networkTags_ = null; + } + return networkTagsBuilder_; + } + + private com.google.container.v1beta1.ResourceManagerTags resourceManagerTags_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ResourceManagerTags, com.google.container.v1beta1.ResourceManagerTags.Builder, com.google.container.v1beta1.ResourceManagerTagsOrBuilder> resourceManagerTagsBuilder_; + /** + *
+     * Resource manager tag keys and values to be attached to the nodes
+     * for managing Compute Engine firewalls using Network Firewall Policies.
+     * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 2; + * @return Whether the resourceManagerTags field is set. + */ + public boolean hasResourceManagerTags() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Resource manager tag keys and values to be attached to the nodes
+     * for managing Compute Engine firewalls using Network Firewall Policies.
+     * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 2; + * @return The resourceManagerTags. + */ + public com.google.container.v1beta1.ResourceManagerTags getResourceManagerTags() { + if (resourceManagerTagsBuilder_ == null) { + return resourceManagerTags_ == null ? com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance() : resourceManagerTags_; + } else { + return resourceManagerTagsBuilder_.getMessage(); + } + } + /** + *
+     * Resource manager tag keys and values to be attached to the nodes
+     * for managing Compute Engine firewalls using Network Firewall Policies.
+     * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 2; + */ + public Builder setResourceManagerTags(com.google.container.v1beta1.ResourceManagerTags value) { + if (resourceManagerTagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resourceManagerTags_ = value; + } else { + resourceManagerTagsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Resource manager tag keys and values to be attached to the nodes
+     * for managing Compute Engine firewalls using Network Firewall Policies.
+     * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 2; + */ + public Builder setResourceManagerTags( + com.google.container.v1beta1.ResourceManagerTags.Builder builderForValue) { + if (resourceManagerTagsBuilder_ == null) { + resourceManagerTags_ = builderForValue.build(); + } else { + resourceManagerTagsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Resource manager tag keys and values to be attached to the nodes
+     * for managing Compute Engine firewalls using Network Firewall Policies.
+     * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 2; + */ + public Builder mergeResourceManagerTags(com.google.container.v1beta1.ResourceManagerTags value) { + if (resourceManagerTagsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + resourceManagerTags_ != null && + resourceManagerTags_ != com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance()) { + getResourceManagerTagsBuilder().mergeFrom(value); + } else { + resourceManagerTags_ = value; + } + } else { + resourceManagerTagsBuilder_.mergeFrom(value); + } + if (resourceManagerTags_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + *
+     * Resource manager tag keys and values to be attached to the nodes
+     * for managing Compute Engine firewalls using Network Firewall Policies.
+     * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 2; + */ + public Builder clearResourceManagerTags() { + bitField0_ = (bitField0_ & ~0x00000002); + resourceManagerTags_ = null; + if (resourceManagerTagsBuilder_ != null) { + resourceManagerTagsBuilder_.dispose(); + resourceManagerTagsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Resource manager tag keys and values to be attached to the nodes
+     * for managing Compute Engine firewalls using Network Firewall Policies.
+     * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 2; + */ + public com.google.container.v1beta1.ResourceManagerTags.Builder getResourceManagerTagsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getResourceManagerTagsFieldBuilder().getBuilder(); + } + /** + *
+     * Resource manager tag keys and values to be attached to the nodes
+     * for managing Compute Engine firewalls using Network Firewall Policies.
+     * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 2; + */ + public com.google.container.v1beta1.ResourceManagerTagsOrBuilder getResourceManagerTagsOrBuilder() { + if (resourceManagerTagsBuilder_ != null) { + return resourceManagerTagsBuilder_.getMessageOrBuilder(); + } else { + return resourceManagerTags_ == null ? + com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance() : resourceManagerTags_; + } + } + /** + *
+     * Resource manager tag keys and values to be attached to the nodes
+     * for managing Compute Engine firewalls using Network Firewall Policies.
+     * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ResourceManagerTags, com.google.container.v1beta1.ResourceManagerTags.Builder, com.google.container.v1beta1.ResourceManagerTagsOrBuilder> + getResourceManagerTagsFieldBuilder() { + if (resourceManagerTagsBuilder_ == null) { + resourceManagerTagsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ResourceManagerTags, com.google.container.v1beta1.ResourceManagerTags.Builder, com.google.container.v1beta1.ResourceManagerTagsOrBuilder>( + getResourceManagerTags(), + getParentForChildren(), + isClean()); + resourceManagerTags_ = null; + } + return resourceManagerTagsBuilder_; + } + @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.NodePoolAutoConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodePoolAutoConfig) + private static final com.google.container.v1beta1.NodePoolAutoConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NodePoolAutoConfig(); + } + + public static com.google.container.v1beta1.NodePoolAutoConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodePoolAutoConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.NodePoolAutoConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoConfigOrBuilder.java new file mode 100644 index 000000000000..a4f2a8b8c794 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoConfigOrBuilder.java @@ -0,0 +1,76 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface NodePoolAutoConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodePoolAutoConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * 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 creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * .google.container.v1beta1.NetworkTags network_tags = 1; + * @return Whether the networkTags field is set. + */ + boolean hasNetworkTags(); + /** + *
+   * 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 creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * .google.container.v1beta1.NetworkTags network_tags = 1; + * @return The networkTags. + */ + com.google.container.v1beta1.NetworkTags getNetworkTags(); + /** + *
+   * 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 creation. Each tag within the list
+   * must comply with RFC1035.
+   * 
+ * + * .google.container.v1beta1.NetworkTags network_tags = 1; + */ + com.google.container.v1beta1.NetworkTagsOrBuilder getNetworkTagsOrBuilder(); + + /** + *
+   * Resource manager tag keys and values to be attached to the nodes
+   * for managing Compute Engine firewalls using Network Firewall Policies.
+   * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 2; + * @return Whether the resourceManagerTags field is set. + */ + boolean hasResourceManagerTags(); + /** + *
+   * Resource manager tag keys and values to be attached to the nodes
+   * for managing Compute Engine firewalls using Network Firewall Policies.
+   * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 2; + * @return The resourceManagerTags. + */ + com.google.container.v1beta1.ResourceManagerTags getResourceManagerTags(); + /** + *
+   * Resource manager tag keys and values to be attached to the nodes
+   * for managing Compute Engine firewalls using Network Firewall Policies.
+   * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 2; + */ + com.google.container.v1beta1.ResourceManagerTagsOrBuilder getResourceManagerTagsOrBuilder(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoscaling.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoscaling.java new file mode 100644 index 000000000000..d210da2dea0f --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoscaling.java @@ -0,0 +1,1212 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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() { + locationPolicy_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NodePoolAutoscaling(); + } + + 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); + } + + /** + *
+   * Location policy specifies how zones are picked when scaling up the
+   * nodepool.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.NodePoolAutoscaling.LocationPolicy} + */ + public enum LocationPolicy + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not set.
+     * 
+ * + * LOCATION_POLICY_UNSPECIFIED = 0; + */ + LOCATION_POLICY_UNSPECIFIED(0), + /** + *
+     * BALANCED is a best effort policy that aims to balance the sizes of
+     * different zones.
+     * 
+ * + * BALANCED = 1; + */ + BALANCED(1), + /** + *
+     * ANY policy picks zones that have the highest capacity available.
+     * 
+ * + * ANY = 2; + */ + ANY(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not set.
+     * 
+ * + * LOCATION_POLICY_UNSPECIFIED = 0; + */ + public static final int LOCATION_POLICY_UNSPECIFIED_VALUE = 0; + /** + *
+     * BALANCED is a best effort policy that aims to balance the sizes of
+     * different zones.
+     * 
+ * + * BALANCED = 1; + */ + public static final int BALANCED_VALUE = 1; + /** + *
+     * ANY policy picks zones that have the highest capacity available.
+     * 
+ * + * ANY = 2; + */ + public static final int ANY_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 LocationPolicy 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 LocationPolicy forNumber(int value) { + switch (value) { + case 0: return LOCATION_POLICY_UNSPECIFIED; + case 1: return BALANCED; + case 2: return ANY; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + LocationPolicy> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LocationPolicy findValueByNumber(int number) { + return LocationPolicy.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.NodePoolAutoscaling.getDescriptor().getEnumTypes().get(0); + } + + private static final LocationPolicy[] VALUES = values(); + + public static LocationPolicy 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 LocationPolicy(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.NodePoolAutoscaling.LocationPolicy) + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * 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_ = 0; + /** + *
+   * Minimum number of nodes for one location 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_ = 0; + /** + *
+   * Maximum number of nodes for one location in the NodePool. Must be >=
+   * min_node_count. There has to be enough quota to scale up the cluster.
+   * 
+ * + * int32 max_node_count = 3; + * @return The maxNodeCount. + */ + @java.lang.Override + public int getMaxNodeCount() { + return maxNodeCount_; + } + + public static final int AUTOPROVISIONED_FIELD_NUMBER = 4; + private boolean autoprovisioned_ = false; + /** + *
+   * Can this node pool be deleted automatically.
+   * 
+ * + * bool autoprovisioned = 4; + * @return The autoprovisioned. + */ + @java.lang.Override + public boolean getAutoprovisioned() { + return autoprovisioned_; + } + + public static final int LOCATION_POLICY_FIELD_NUMBER = 5; + private int locationPolicy_ = 0; + /** + *
+   * Location policy used when scaling up a nodepool.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling.LocationPolicy location_policy = 5; + * @return The enum numeric value on the wire for locationPolicy. + */ + @java.lang.Override public int getLocationPolicyValue() { + return locationPolicy_; + } + /** + *
+   * Location policy used when scaling up a nodepool.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling.LocationPolicy location_policy = 5; + * @return The locationPolicy. + */ + @java.lang.Override public com.google.container.v1beta1.NodePoolAutoscaling.LocationPolicy getLocationPolicy() { + com.google.container.v1beta1.NodePoolAutoscaling.LocationPolicy result = com.google.container.v1beta1.NodePoolAutoscaling.LocationPolicy.forNumber(locationPolicy_); + return result == null ? com.google.container.v1beta1.NodePoolAutoscaling.LocationPolicy.UNRECOGNIZED : result; + } + + public static final int TOTAL_MIN_NODE_COUNT_FIELD_NUMBER = 6; + private int totalMinNodeCount_ = 0; + /** + *
+   * Minimum number of nodes in the node pool. Must be greater than 1 less than
+   * total_max_node_count.
+   * The total_*_node_count fields are mutually exclusive with the *_node_count
+   * fields.
+   * 
+ * + * int32 total_min_node_count = 6; + * @return The totalMinNodeCount. + */ + @java.lang.Override + public int getTotalMinNodeCount() { + return totalMinNodeCount_; + } + + public static final int TOTAL_MAX_NODE_COUNT_FIELD_NUMBER = 7; + private int totalMaxNodeCount_ = 0; + /** + *
+   * Maximum number of nodes in the node pool. Must be greater than
+   * total_min_node_count. There has to be enough quota to scale up the cluster.
+   * The total_*_node_count fields are mutually exclusive with the *_node_count
+   * fields.
+   * 
+ * + * int32 total_max_node_count = 7; + * @return The totalMaxNodeCount. + */ + @java.lang.Override + public int getTotalMaxNodeCount() { + return totalMaxNodeCount_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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_); + } + if (locationPolicy_ != com.google.container.v1beta1.NodePoolAutoscaling.LocationPolicy.LOCATION_POLICY_UNSPECIFIED.getNumber()) { + output.writeEnum(5, locationPolicy_); + } + if (totalMinNodeCount_ != 0) { + output.writeInt32(6, totalMinNodeCount_); + } + if (totalMaxNodeCount_ != 0) { + output.writeInt32(7, totalMaxNodeCount_); + } + getUnknownFields().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_); + } + if (locationPolicy_ != com.google.container.v1beta1.NodePoolAutoscaling.LocationPolicy.LOCATION_POLICY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, locationPolicy_); + } + if (totalMinNodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, totalMinNodeCount_); + } + if (totalMaxNodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, totalMaxNodeCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (locationPolicy_ != other.locationPolicy_) return false; + if (getTotalMinNodeCount() + != other.getTotalMinNodeCount()) return false; + if (getTotalMaxNodeCount() + != other.getTotalMaxNodeCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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 = (37 * hash) + LOCATION_POLICY_FIELD_NUMBER; + hash = (53 * hash) + locationPolicy_; + hash = (37 * hash) + TOTAL_MIN_NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getTotalMinNodeCount(); + hash = (37 * hash) + TOTAL_MAX_NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getTotalMaxNodeCount(); + hash = (29 * hash) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + minNodeCount_ = 0; + maxNodeCount_ = 0; + autoprovisioned_ = false; + locationPolicy_ = 0; + totalMinNodeCount_ = 0; + totalMaxNodeCount_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.NodePoolAutoscaling result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.minNodeCount_ = minNodeCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.maxNodeCount_ = maxNodeCount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.autoprovisioned_ = autoprovisioned_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.locationPolicy_ = locationPolicy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.totalMinNodeCount_ = totalMinNodeCount_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.totalMaxNodeCount_ = totalMaxNodeCount_; + } + } + + @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()); + } + if (other.locationPolicy_ != 0) { + setLocationPolicyValue(other.getLocationPolicyValue()); + } + if (other.getTotalMinNodeCount() != 0) { + setTotalMinNodeCount(other.getTotalMinNodeCount()); + } + if (other.getTotalMaxNodeCount() != 0) { + setTotalMaxNodeCount(other.getTotalMaxNodeCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + minNodeCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + maxNodeCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + autoprovisioned_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + locationPolicy_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + totalMinNodeCount_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: { + totalMaxNodeCount_ = input.readInt32(); + bitField0_ |= 0x00000040; + break; + } // case 56 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Is autoscaling enabled for this node pool.
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + + private int minNodeCount_ ; + /** + *
+     * Minimum number of nodes for one location 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 for one location 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Minimum number of nodes for one location in the NodePool. Must be >= 1 and
+     * <= max_node_count.
+     * 
+ * + * int32 min_node_count = 2; + * @return This builder for chaining. + */ + public Builder clearMinNodeCount() { + bitField0_ = (bitField0_ & ~0x00000002); + minNodeCount_ = 0; + onChanged(); + return this; + } + + private int maxNodeCount_ ; + /** + *
+     * Maximum number of nodes for one location in the NodePool. Must be >=
+     * min_node_count. There has to be enough quota to scale up the cluster.
+     * 
+ * + * int32 max_node_count = 3; + * @return The maxNodeCount. + */ + @java.lang.Override + public int getMaxNodeCount() { + return maxNodeCount_; + } + /** + *
+     * Maximum number of nodes for one location in the NodePool. Must be >=
+     * min_node_count. There has to be enough quota to scale up the cluster.
+     * 
+ * + * int32 max_node_count = 3; + * @param value The maxNodeCount to set. + * @return This builder for chaining. + */ + public Builder setMaxNodeCount(int value) { + + maxNodeCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Maximum number of nodes for one location in the NodePool. Must be >=
+     * min_node_count. There has to be enough quota to scale up the cluster.
+     * 
+ * + * int32 max_node_count = 3; + * @return This builder for chaining. + */ + public Builder clearMaxNodeCount() { + bitField0_ = (bitField0_ & ~0x00000004); + 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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Can this node pool be deleted automatically.
+     * 
+ * + * bool autoprovisioned = 4; + * @return This builder for chaining. + */ + public Builder clearAutoprovisioned() { + bitField0_ = (bitField0_ & ~0x00000008); + autoprovisioned_ = false; + onChanged(); + return this; + } + + private int locationPolicy_ = 0; + /** + *
+     * Location policy used when scaling up a nodepool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling.LocationPolicy location_policy = 5; + * @return The enum numeric value on the wire for locationPolicy. + */ + @java.lang.Override public int getLocationPolicyValue() { + return locationPolicy_; + } + /** + *
+     * Location policy used when scaling up a nodepool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling.LocationPolicy location_policy = 5; + * @param value The enum numeric value on the wire for locationPolicy to set. + * @return This builder for chaining. + */ + public Builder setLocationPolicyValue(int value) { + locationPolicy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Location policy used when scaling up a nodepool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling.LocationPolicy location_policy = 5; + * @return The locationPolicy. + */ + @java.lang.Override + public com.google.container.v1beta1.NodePoolAutoscaling.LocationPolicy getLocationPolicy() { + com.google.container.v1beta1.NodePoolAutoscaling.LocationPolicy result = com.google.container.v1beta1.NodePoolAutoscaling.LocationPolicy.forNumber(locationPolicy_); + return result == null ? com.google.container.v1beta1.NodePoolAutoscaling.LocationPolicy.UNRECOGNIZED : result; + } + /** + *
+     * Location policy used when scaling up a nodepool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling.LocationPolicy location_policy = 5; + * @param value The locationPolicy to set. + * @return This builder for chaining. + */ + public Builder setLocationPolicy(com.google.container.v1beta1.NodePoolAutoscaling.LocationPolicy value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + locationPolicy_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Location policy used when scaling up a nodepool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling.LocationPolicy location_policy = 5; + * @return This builder for chaining. + */ + public Builder clearLocationPolicy() { + bitField0_ = (bitField0_ & ~0x00000010); + locationPolicy_ = 0; + onChanged(); + return this; + } + + private int totalMinNodeCount_ ; + /** + *
+     * Minimum number of nodes in the node pool. Must be greater than 1 less than
+     * total_max_node_count.
+     * The total_*_node_count fields are mutually exclusive with the *_node_count
+     * fields.
+     * 
+ * + * int32 total_min_node_count = 6; + * @return The totalMinNodeCount. + */ + @java.lang.Override + public int getTotalMinNodeCount() { + return totalMinNodeCount_; + } + /** + *
+     * Minimum number of nodes in the node pool. Must be greater than 1 less than
+     * total_max_node_count.
+     * The total_*_node_count fields are mutually exclusive with the *_node_count
+     * fields.
+     * 
+ * + * int32 total_min_node_count = 6; + * @param value The totalMinNodeCount to set. + * @return This builder for chaining. + */ + public Builder setTotalMinNodeCount(int value) { + + totalMinNodeCount_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Minimum number of nodes in the node pool. Must be greater than 1 less than
+     * total_max_node_count.
+     * The total_*_node_count fields are mutually exclusive with the *_node_count
+     * fields.
+     * 
+ * + * int32 total_min_node_count = 6; + * @return This builder for chaining. + */ + public Builder clearTotalMinNodeCount() { + bitField0_ = (bitField0_ & ~0x00000020); + totalMinNodeCount_ = 0; + onChanged(); + return this; + } + + private int totalMaxNodeCount_ ; + /** + *
+     * Maximum number of nodes in the node pool. Must be greater than
+     * total_min_node_count. There has to be enough quota to scale up the cluster.
+     * The total_*_node_count fields are mutually exclusive with the *_node_count
+     * fields.
+     * 
+ * + * int32 total_max_node_count = 7; + * @return The totalMaxNodeCount. + */ + @java.lang.Override + public int getTotalMaxNodeCount() { + return totalMaxNodeCount_; + } + /** + *
+     * Maximum number of nodes in the node pool. Must be greater than
+     * total_min_node_count. There has to be enough quota to scale up the cluster.
+     * The total_*_node_count fields are mutually exclusive with the *_node_count
+     * fields.
+     * 
+ * + * int32 total_max_node_count = 7; + * @param value The totalMaxNodeCount to set. + * @return This builder for chaining. + */ + public Builder setTotalMaxNodeCount(int value) { + + totalMaxNodeCount_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * Maximum number of nodes in the node pool. Must be greater than
+     * total_min_node_count. There has to be enough quota to scale up the cluster.
+     * The total_*_node_count fields are mutually exclusive with the *_node_count
+     * fields.
+     * 
+ * + * int32 total_max_node_count = 7; + * @return This builder for chaining. + */ + public Builder clearTotalMaxNodeCount() { + bitField0_ = (bitField0_ & ~0x00000040); + totalMaxNodeCount_ = 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.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoscalingOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoscalingOrBuilder.java new file mode 100644 index 000000000000..93cfa85e1489 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolAutoscalingOrBuilder.java @@ -0,0 +1,97 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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 for one location in the NodePool. Must be >= 1 and
+   * <= max_node_count.
+   * 
+ * + * int32 min_node_count = 2; + * @return The minNodeCount. + */ + int getMinNodeCount(); + + /** + *
+   * Maximum number of nodes for one location in the NodePool. Must be >=
+   * min_node_count. There has to be enough quota to scale up the cluster.
+   * 
+ * + * int32 max_node_count = 3; + * @return The maxNodeCount. + */ + int getMaxNodeCount(); + + /** + *
+   * Can this node pool be deleted automatically.
+   * 
+ * + * bool autoprovisioned = 4; + * @return The autoprovisioned. + */ + boolean getAutoprovisioned(); + + /** + *
+   * Location policy used when scaling up a nodepool.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling.LocationPolicy location_policy = 5; + * @return The enum numeric value on the wire for locationPolicy. + */ + int getLocationPolicyValue(); + /** + *
+   * Location policy used when scaling up a nodepool.
+   * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling.LocationPolicy location_policy = 5; + * @return The locationPolicy. + */ + com.google.container.v1beta1.NodePoolAutoscaling.LocationPolicy getLocationPolicy(); + + /** + *
+   * Minimum number of nodes in the node pool. Must be greater than 1 less than
+   * total_max_node_count.
+   * The total_*_node_count fields are mutually exclusive with the *_node_count
+   * fields.
+   * 
+ * + * int32 total_min_node_count = 6; + * @return The totalMinNodeCount. + */ + int getTotalMinNodeCount(); + + /** + *
+   * Maximum number of nodes in the node pool. Must be greater than
+   * total_min_node_count. There has to be enough quota to scale up the cluster.
+   * The total_*_node_count fields are mutually exclusive with the *_node_count
+   * fields.
+   * 
+ * + * int32 total_max_node_count = 7; + * @return The totalMaxNodeCount. + */ + int getTotalMaxNodeCount(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolDefaults.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolDefaults.java new file mode 100644 index 000000000000..d5981f8fd2d3 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolDefaults.java @@ -0,0 +1,655 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * Subset of Nodepool message that has defaults.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.NodePoolDefaults} + */ +public final class NodePoolDefaults extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodePoolDefaults) + NodePoolDefaultsOrBuilder { +private static final long serialVersionUID = 0L; + // Use NodePoolDefaults.newBuilder() to construct. + private NodePoolDefaults(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodePoolDefaults() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NodePoolDefaults(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePoolDefaults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePoolDefaults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodePoolDefaults.class, com.google.container.v1beta1.NodePoolDefaults.Builder.class); + } + + private int bitField0_; + public static final int NODE_CONFIG_DEFAULTS_FIELD_NUMBER = 1; + private com.google.container.v1beta1.NodeConfigDefaults nodeConfigDefaults_; + /** + *
+   * Subset of NodeConfig message that has defaults.
+   * 
+ * + * .google.container.v1beta1.NodeConfigDefaults node_config_defaults = 1; + * @return Whether the nodeConfigDefaults field is set. + */ + @java.lang.Override + public boolean hasNodeConfigDefaults() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Subset of NodeConfig message that has defaults.
+   * 
+ * + * .google.container.v1beta1.NodeConfigDefaults node_config_defaults = 1; + * @return The nodeConfigDefaults. + */ + @java.lang.Override + public com.google.container.v1beta1.NodeConfigDefaults getNodeConfigDefaults() { + return nodeConfigDefaults_ == null ? com.google.container.v1beta1.NodeConfigDefaults.getDefaultInstance() : nodeConfigDefaults_; + } + /** + *
+   * Subset of NodeConfig message that has defaults.
+   * 
+ * + * .google.container.v1beta1.NodeConfigDefaults node_config_defaults = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.NodeConfigDefaultsOrBuilder getNodeConfigDefaultsOrBuilder() { + return nodeConfigDefaults_ == null ? com.google.container.v1beta1.NodeConfigDefaults.getDefaultInstance() : nodeConfigDefaults_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getNodeConfigDefaults()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getNodeConfigDefaults()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.NodePoolDefaults)) { + return super.equals(obj); + } + com.google.container.v1beta1.NodePoolDefaults other = (com.google.container.v1beta1.NodePoolDefaults) obj; + + if (hasNodeConfigDefaults() != other.hasNodeConfigDefaults()) return false; + if (hasNodeConfigDefaults()) { + if (!getNodeConfigDefaults() + .equals(other.getNodeConfigDefaults())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasNodeConfigDefaults()) { + hash = (37 * hash) + NODE_CONFIG_DEFAULTS_FIELD_NUMBER; + hash = (53 * hash) + getNodeConfigDefaults().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.NodePoolDefaults parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodePoolDefaults parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NodePoolDefaults parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodePoolDefaults parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NodePoolDefaults parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodePoolDefaults parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NodePoolDefaults parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NodePoolDefaults parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.NodePoolDefaults parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NodePoolDefaults parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.NodePoolDefaults parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NodePoolDefaults parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.NodePoolDefaults prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Subset of Nodepool message that has defaults.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.NodePoolDefaults} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NodePoolDefaults) + com.google.container.v1beta1.NodePoolDefaultsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePoolDefaults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePoolDefaults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodePoolDefaults.class, com.google.container.v1beta1.NodePoolDefaults.Builder.class); + } + + // Construct using com.google.container.v1beta1.NodePoolDefaults.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNodeConfigDefaultsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + nodeConfigDefaults_ = null; + if (nodeConfigDefaultsBuilder_ != null) { + nodeConfigDefaultsBuilder_.dispose(); + nodeConfigDefaultsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePoolDefaults_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NodePoolDefaults getDefaultInstanceForType() { + return com.google.container.v1beta1.NodePoolDefaults.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NodePoolDefaults build() { + com.google.container.v1beta1.NodePoolDefaults result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NodePoolDefaults buildPartial() { + com.google.container.v1beta1.NodePoolDefaults result = new com.google.container.v1beta1.NodePoolDefaults(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.NodePoolDefaults result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.nodeConfigDefaults_ = nodeConfigDefaultsBuilder_ == null + ? nodeConfigDefaults_ + : nodeConfigDefaultsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @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.NodePoolDefaults) { + return mergeFrom((com.google.container.v1beta1.NodePoolDefaults)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NodePoolDefaults other) { + if (other == com.google.container.v1beta1.NodePoolDefaults.getDefaultInstance()) return this; + if (other.hasNodeConfigDefaults()) { + mergeNodeConfigDefaults(other.getNodeConfigDefaults()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getNodeConfigDefaultsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.container.v1beta1.NodeConfigDefaults nodeConfigDefaults_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeConfigDefaults, com.google.container.v1beta1.NodeConfigDefaults.Builder, com.google.container.v1beta1.NodeConfigDefaultsOrBuilder> nodeConfigDefaultsBuilder_; + /** + *
+     * Subset of NodeConfig message that has defaults.
+     * 
+ * + * .google.container.v1beta1.NodeConfigDefaults node_config_defaults = 1; + * @return Whether the nodeConfigDefaults field is set. + */ + public boolean hasNodeConfigDefaults() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Subset of NodeConfig message that has defaults.
+     * 
+ * + * .google.container.v1beta1.NodeConfigDefaults node_config_defaults = 1; + * @return The nodeConfigDefaults. + */ + public com.google.container.v1beta1.NodeConfigDefaults getNodeConfigDefaults() { + if (nodeConfigDefaultsBuilder_ == null) { + return nodeConfigDefaults_ == null ? com.google.container.v1beta1.NodeConfigDefaults.getDefaultInstance() : nodeConfigDefaults_; + } else { + return nodeConfigDefaultsBuilder_.getMessage(); + } + } + /** + *
+     * Subset of NodeConfig message that has defaults.
+     * 
+ * + * .google.container.v1beta1.NodeConfigDefaults node_config_defaults = 1; + */ + public Builder setNodeConfigDefaults(com.google.container.v1beta1.NodeConfigDefaults value) { + if (nodeConfigDefaultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodeConfigDefaults_ = value; + } else { + nodeConfigDefaultsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Subset of NodeConfig message that has defaults.
+     * 
+ * + * .google.container.v1beta1.NodeConfigDefaults node_config_defaults = 1; + */ + public Builder setNodeConfigDefaults( + com.google.container.v1beta1.NodeConfigDefaults.Builder builderForValue) { + if (nodeConfigDefaultsBuilder_ == null) { + nodeConfigDefaults_ = builderForValue.build(); + } else { + nodeConfigDefaultsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Subset of NodeConfig message that has defaults.
+     * 
+ * + * .google.container.v1beta1.NodeConfigDefaults node_config_defaults = 1; + */ + public Builder mergeNodeConfigDefaults(com.google.container.v1beta1.NodeConfigDefaults value) { + if (nodeConfigDefaultsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + nodeConfigDefaults_ != null && + nodeConfigDefaults_ != com.google.container.v1beta1.NodeConfigDefaults.getDefaultInstance()) { + getNodeConfigDefaultsBuilder().mergeFrom(value); + } else { + nodeConfigDefaults_ = value; + } + } else { + nodeConfigDefaultsBuilder_.mergeFrom(value); + } + if (nodeConfigDefaults_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+     * Subset of NodeConfig message that has defaults.
+     * 
+ * + * .google.container.v1beta1.NodeConfigDefaults node_config_defaults = 1; + */ + public Builder clearNodeConfigDefaults() { + bitField0_ = (bitField0_ & ~0x00000001); + nodeConfigDefaults_ = null; + if (nodeConfigDefaultsBuilder_ != null) { + nodeConfigDefaultsBuilder_.dispose(); + nodeConfigDefaultsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Subset of NodeConfig message that has defaults.
+     * 
+ * + * .google.container.v1beta1.NodeConfigDefaults node_config_defaults = 1; + */ + public com.google.container.v1beta1.NodeConfigDefaults.Builder getNodeConfigDefaultsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getNodeConfigDefaultsFieldBuilder().getBuilder(); + } + /** + *
+     * Subset of NodeConfig message that has defaults.
+     * 
+ * + * .google.container.v1beta1.NodeConfigDefaults node_config_defaults = 1; + */ + public com.google.container.v1beta1.NodeConfigDefaultsOrBuilder getNodeConfigDefaultsOrBuilder() { + if (nodeConfigDefaultsBuilder_ != null) { + return nodeConfigDefaultsBuilder_.getMessageOrBuilder(); + } else { + return nodeConfigDefaults_ == null ? + com.google.container.v1beta1.NodeConfigDefaults.getDefaultInstance() : nodeConfigDefaults_; + } + } + /** + *
+     * Subset of NodeConfig message that has defaults.
+     * 
+ * + * .google.container.v1beta1.NodeConfigDefaults node_config_defaults = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeConfigDefaults, com.google.container.v1beta1.NodeConfigDefaults.Builder, com.google.container.v1beta1.NodeConfigDefaultsOrBuilder> + getNodeConfigDefaultsFieldBuilder() { + if (nodeConfigDefaultsBuilder_ == null) { + nodeConfigDefaultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeConfigDefaults, com.google.container.v1beta1.NodeConfigDefaults.Builder, com.google.container.v1beta1.NodeConfigDefaultsOrBuilder>( + getNodeConfigDefaults(), + getParentForChildren(), + isClean()); + nodeConfigDefaults_ = null; + } + return nodeConfigDefaultsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.NodePoolDefaults) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodePoolDefaults) + private static final com.google.container.v1beta1.NodePoolDefaults DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NodePoolDefaults(); + } + + public static com.google.container.v1beta1.NodePoolDefaults getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodePoolDefaults parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.NodePoolDefaults getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolDefaultsOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolDefaultsOrBuilder.java new file mode 100644 index 000000000000..799c64858dbd --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolDefaultsOrBuilder.java @@ -0,0 +1,37 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface NodePoolDefaultsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodePoolDefaults) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Subset of NodeConfig message that has defaults.
+   * 
+ * + * .google.container.v1beta1.NodeConfigDefaults node_config_defaults = 1; + * @return Whether the nodeConfigDefaults field is set. + */ + boolean hasNodeConfigDefaults(); + /** + *
+   * Subset of NodeConfig message that has defaults.
+   * 
+ * + * .google.container.v1beta1.NodeConfigDefaults node_config_defaults = 1; + * @return The nodeConfigDefaults. + */ + com.google.container.v1beta1.NodeConfigDefaults getNodeConfigDefaults(); + /** + *
+   * Subset of NodeConfig message that has defaults.
+   * 
+ * + * .google.container.v1beta1.NodeConfigDefaults node_config_defaults = 1; + */ + com.google.container.v1beta1.NodeConfigDefaultsOrBuilder getNodeConfigDefaultsOrBuilder(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolLoggingConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolLoggingConfig.java new file mode 100644 index 000000000000..7d586eee79b5 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolLoggingConfig.java @@ -0,0 +1,655 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * NodePoolLoggingConfig specifies logging configuration for nodepools.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.NodePoolLoggingConfig} + */ +public final class NodePoolLoggingConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodePoolLoggingConfig) + NodePoolLoggingConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use NodePoolLoggingConfig.newBuilder() to construct. + private NodePoolLoggingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodePoolLoggingConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NodePoolLoggingConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePoolLoggingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePoolLoggingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodePoolLoggingConfig.class, com.google.container.v1beta1.NodePoolLoggingConfig.Builder.class); + } + + private int bitField0_; + public static final int VARIANT_CONFIG_FIELD_NUMBER = 1; + private com.google.container.v1beta1.LoggingVariantConfig variantConfig_; + /** + *
+   * Logging variant configuration.
+   * 
+ * + * .google.container.v1beta1.LoggingVariantConfig variant_config = 1; + * @return Whether the variantConfig field is set. + */ + @java.lang.Override + public boolean hasVariantConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Logging variant configuration.
+   * 
+ * + * .google.container.v1beta1.LoggingVariantConfig variant_config = 1; + * @return The variantConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.LoggingVariantConfig getVariantConfig() { + return variantConfig_ == null ? com.google.container.v1beta1.LoggingVariantConfig.getDefaultInstance() : variantConfig_; + } + /** + *
+   * Logging variant configuration.
+   * 
+ * + * .google.container.v1beta1.LoggingVariantConfig variant_config = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.LoggingVariantConfigOrBuilder getVariantConfigOrBuilder() { + return variantConfig_ == null ? com.google.container.v1beta1.LoggingVariantConfig.getDefaultInstance() : variantConfig_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getVariantConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getVariantConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.NodePoolLoggingConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.NodePoolLoggingConfig other = (com.google.container.v1beta1.NodePoolLoggingConfig) obj; + + if (hasVariantConfig() != other.hasVariantConfig()) return false; + if (hasVariantConfig()) { + if (!getVariantConfig() + .equals(other.getVariantConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasVariantConfig()) { + hash = (37 * hash) + VARIANT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getVariantConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.NodePoolLoggingConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodePoolLoggingConfig parseFrom( + 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.NodePoolLoggingConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodePoolLoggingConfig parseFrom( + com.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.NodePoolLoggingConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodePoolLoggingConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NodePoolLoggingConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NodePoolLoggingConfig parseFrom( + java.io.InputStream 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.NodePoolLoggingConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NodePoolLoggingConfig parseDelimitedFrom( + java.io.InputStream 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.NodePoolLoggingConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NodePoolLoggingConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.NodePoolLoggingConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * NodePoolLoggingConfig specifies logging configuration for nodepools.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.NodePoolLoggingConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NodePoolLoggingConfig) + com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePoolLoggingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePoolLoggingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodePoolLoggingConfig.class, com.google.container.v1beta1.NodePoolLoggingConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.NodePoolLoggingConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getVariantConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + variantConfig_ = null; + if (variantConfigBuilder_ != null) { + variantConfigBuilder_.dispose(); + variantConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodePoolLoggingConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NodePoolLoggingConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NodePoolLoggingConfig build() { + com.google.container.v1beta1.NodePoolLoggingConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NodePoolLoggingConfig buildPartial() { + com.google.container.v1beta1.NodePoolLoggingConfig result = new com.google.container.v1beta1.NodePoolLoggingConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.NodePoolLoggingConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.variantConfig_ = variantConfigBuilder_ == null + ? variantConfig_ + : variantConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @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.NodePoolLoggingConfig) { + return mergeFrom((com.google.container.v1beta1.NodePoolLoggingConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NodePoolLoggingConfig other) { + if (other == com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance()) return this; + if (other.hasVariantConfig()) { + mergeVariantConfig(other.getVariantConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getVariantConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.container.v1beta1.LoggingVariantConfig variantConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.LoggingVariantConfig, com.google.container.v1beta1.LoggingVariantConfig.Builder, com.google.container.v1beta1.LoggingVariantConfigOrBuilder> variantConfigBuilder_; + /** + *
+     * Logging variant configuration.
+     * 
+ * + * .google.container.v1beta1.LoggingVariantConfig variant_config = 1; + * @return Whether the variantConfig field is set. + */ + public boolean hasVariantConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Logging variant configuration.
+     * 
+ * + * .google.container.v1beta1.LoggingVariantConfig variant_config = 1; + * @return The variantConfig. + */ + public com.google.container.v1beta1.LoggingVariantConfig getVariantConfig() { + if (variantConfigBuilder_ == null) { + return variantConfig_ == null ? com.google.container.v1beta1.LoggingVariantConfig.getDefaultInstance() : variantConfig_; + } else { + return variantConfigBuilder_.getMessage(); + } + } + /** + *
+     * Logging variant configuration.
+     * 
+ * + * .google.container.v1beta1.LoggingVariantConfig variant_config = 1; + */ + public Builder setVariantConfig(com.google.container.v1beta1.LoggingVariantConfig value) { + if (variantConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + variantConfig_ = value; + } else { + variantConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Logging variant configuration.
+     * 
+ * + * .google.container.v1beta1.LoggingVariantConfig variant_config = 1; + */ + public Builder setVariantConfig( + com.google.container.v1beta1.LoggingVariantConfig.Builder builderForValue) { + if (variantConfigBuilder_ == null) { + variantConfig_ = builderForValue.build(); + } else { + variantConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Logging variant configuration.
+     * 
+ * + * .google.container.v1beta1.LoggingVariantConfig variant_config = 1; + */ + public Builder mergeVariantConfig(com.google.container.v1beta1.LoggingVariantConfig value) { + if (variantConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + variantConfig_ != null && + variantConfig_ != com.google.container.v1beta1.LoggingVariantConfig.getDefaultInstance()) { + getVariantConfigBuilder().mergeFrom(value); + } else { + variantConfig_ = value; + } + } else { + variantConfigBuilder_.mergeFrom(value); + } + if (variantConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+     * Logging variant configuration.
+     * 
+ * + * .google.container.v1beta1.LoggingVariantConfig variant_config = 1; + */ + public Builder clearVariantConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + variantConfig_ = null; + if (variantConfigBuilder_ != null) { + variantConfigBuilder_.dispose(); + variantConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Logging variant configuration.
+     * 
+ * + * .google.container.v1beta1.LoggingVariantConfig variant_config = 1; + */ + public com.google.container.v1beta1.LoggingVariantConfig.Builder getVariantConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getVariantConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Logging variant configuration.
+     * 
+ * + * .google.container.v1beta1.LoggingVariantConfig variant_config = 1; + */ + public com.google.container.v1beta1.LoggingVariantConfigOrBuilder getVariantConfigOrBuilder() { + if (variantConfigBuilder_ != null) { + return variantConfigBuilder_.getMessageOrBuilder(); + } else { + return variantConfig_ == null ? + com.google.container.v1beta1.LoggingVariantConfig.getDefaultInstance() : variantConfig_; + } + } + /** + *
+     * Logging variant configuration.
+     * 
+ * + * .google.container.v1beta1.LoggingVariantConfig variant_config = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.LoggingVariantConfig, com.google.container.v1beta1.LoggingVariantConfig.Builder, com.google.container.v1beta1.LoggingVariantConfigOrBuilder> + getVariantConfigFieldBuilder() { + if (variantConfigBuilder_ == null) { + variantConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.LoggingVariantConfig, com.google.container.v1beta1.LoggingVariantConfig.Builder, com.google.container.v1beta1.LoggingVariantConfigOrBuilder>( + getVariantConfig(), + getParentForChildren(), + isClean()); + variantConfig_ = null; + } + return variantConfigBuilder_; + } + @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.NodePoolLoggingConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodePoolLoggingConfig) + private static final com.google.container.v1beta1.NodePoolLoggingConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NodePoolLoggingConfig(); + } + + public static com.google.container.v1beta1.NodePoolLoggingConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodePoolLoggingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.NodePoolLoggingConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolLoggingConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolLoggingConfigOrBuilder.java new file mode 100644 index 000000000000..62be176b06b9 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolLoggingConfigOrBuilder.java @@ -0,0 +1,37 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface NodePoolLoggingConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodePoolLoggingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Logging variant configuration.
+   * 
+ * + * .google.container.v1beta1.LoggingVariantConfig variant_config = 1; + * @return Whether the variantConfig field is set. + */ + boolean hasVariantConfig(); + /** + *
+   * Logging variant configuration.
+   * 
+ * + * .google.container.v1beta1.LoggingVariantConfig variant_config = 1; + * @return The variantConfig. + */ + com.google.container.v1beta1.LoggingVariantConfig getVariantConfig(); + /** + *
+   * Logging variant configuration.
+   * 
+ * + * .google.container.v1beta1.LoggingVariantConfig variant_config = 1; + */ + com.google.container.v1beta1.LoggingVariantConfigOrBuilder getVariantConfigOrBuilder(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolOrBuilder.java new file mode 100644 index 000000000000..f31049807b5a --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolOrBuilder.java @@ -0,0 +1,628 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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); + + /** + *
+   * Networking configuration for this NodePool. If specified, it overrides the
+   * cluster-level defaults.
+   * 
+ * + * .google.container.v1beta1.NodeNetworkConfig network_config = 14; + * @return Whether the networkConfig field is set. + */ + boolean hasNetworkConfig(); + /** + *
+   * Networking configuration for this NodePool. If specified, it overrides the
+   * cluster-level defaults.
+   * 
+ * + * .google.container.v1beta1.NodeNetworkConfig network_config = 14; + * @return The networkConfig. + */ + com.google.container.v1beta1.NodeNetworkConfig getNetworkConfig(); + /** + *
+   * Networking configuration for this NodePool. If specified, it overrides the
+   * cluster-level defaults.
+   * 
+ * + * .google.container.v1beta1.NodeNetworkConfig network_config = 14; + */ + com.google.container.v1beta1.NodeNetworkConfigOrBuilder getNetworkConfigOrBuilder(); + + /** + *
+   * [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 Kubernetes running on this NodePool's nodes. If unspecified,
+   * it defaults as described
+   * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version).
+   * 
+ * + * string version = 101; + * @return The version. + */ + java.lang.String getVersion(); + /** + *
+   * The version of Kubernetes running on this NodePool's nodes. If unspecified,
+   * it defaults as described
+   * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version).
+   * 
+ * + * 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.
+   * During the node pool blue-green upgrade operation, the URLs contain both
+   * blue and green resources.
+   * 
+ * + * 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.
+   * During the node pool blue-green upgrade operation, the URLs contain both
+   * blue and green resources.
+   * 
+ * + * 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.
+   * During the node pool blue-green upgrade operation, the URLs contain both
+   * blue and green resources.
+   * 
+ * + * 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.
+   * During the node pool blue-green upgrade operation, the URLs contain both
+   * blue and green resources.
+   * 
+ * + * 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]; + * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4033 + * @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]; + * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4033 + * @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(); + + /** + *
+   * Specifies the node placement policy.
+   * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + * @return Whether the placementPolicy field is set. + */ + boolean hasPlacementPolicy(); + /** + *
+   * Specifies the node placement policy.
+   * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + * @return The placementPolicy. + */ + com.google.container.v1beta1.NodePool.PlacementPolicy getPlacementPolicy(); + /** + *
+   * Specifies the node placement policy.
+   * 
+ * + * .google.container.v1beta1.NodePool.PlacementPolicy placement_policy = 108; + */ + com.google.container.v1beta1.NodePool.PlacementPolicyOrBuilder getPlacementPolicyOrBuilder(); + + /** + *
+   * Output only. [Output only] Update info contains relevant information during
+   * a node pool update.
+   * 
+ * + * .google.container.v1beta1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updateInfo field is set. + */ + boolean hasUpdateInfo(); + /** + *
+   * Output only. [Output only] Update info contains relevant information during
+   * a node pool update.
+   * 
+ * + * .google.container.v1beta1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updateInfo. + */ + com.google.container.v1beta1.NodePool.UpdateInfo getUpdateInfo(); + /** + *
+   * Output only. [Output only] Update info contains relevant information during
+   * a node pool update.
+   * 
+ * + * .google.container.v1beta1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.container.v1beta1.NodePool.UpdateInfoOrBuilder getUpdateInfoOrBuilder(); + + /** + *
+   * This checksum is computed by the server based on the value of node pool
+   * fields, and may be sent on update requests to ensure the client has an
+   * up-to-date value before proceeding.
+   * 
+ * + * string etag = 110; + * @return The etag. + */ + java.lang.String getEtag(); + /** + *
+   * This checksum is computed by the server based on the value of node pool
+   * fields, and may be sent on update requests to ensure the client has an
+   * up-to-date value before proceeding.
+   * 
+ * + * string etag = 110; + * @return The bytes for etag. + */ + com.google.protobuf.ByteString + getEtagBytes(); + + /** + *
+   * Specifies the configuration of queued provisioning.
+   * 
+ * + * .google.container.v1beta1.NodePool.QueuedProvisioning queued_provisioning = 112; + * @return Whether the queuedProvisioning field is set. + */ + boolean hasQueuedProvisioning(); + /** + *
+   * Specifies the configuration of queued provisioning.
+   * 
+ * + * .google.container.v1beta1.NodePool.QueuedProvisioning queued_provisioning = 112; + * @return The queuedProvisioning. + */ + com.google.container.v1beta1.NodePool.QueuedProvisioning getQueuedProvisioning(); + /** + *
+   * Specifies the configuration of queued provisioning.
+   * 
+ * + * .google.container.v1beta1.NodePool.QueuedProvisioning queued_provisioning = 112; + */ + com.google.container.v1beta1.NodePool.QueuedProvisioningOrBuilder getQueuedProvisioningOrBuilder(); + + /** + *
+   * Enable best effort provisioning for nodes
+   * 
+ * + * .google.container.v1beta1.BestEffortProvisioning best_effort_provisioning = 113; + * @return Whether the bestEffortProvisioning field is set. + */ + boolean hasBestEffortProvisioning(); + /** + *
+   * Enable best effort provisioning for nodes
+   * 
+ * + * .google.container.v1beta1.BestEffortProvisioning best_effort_provisioning = 113; + * @return The bestEffortProvisioning. + */ + com.google.container.v1beta1.BestEffortProvisioning getBestEffortProvisioning(); + /** + *
+   * Enable best effort provisioning for nodes
+   * 
+ * + * .google.container.v1beta1.BestEffortProvisioning best_effort_provisioning = 113; + */ + com.google.container.v1beta1.BestEffortProvisioningOrBuilder getBestEffortProvisioningOrBuilder(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolUpdateStrategy.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolUpdateStrategy.java new file mode 100644 index 000000000000..42d7df98c17b --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolUpdateStrategy.java @@ -0,0 +1,155 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * Strategy used for node pool update.
+ * 
+ * + * Protobuf enum {@code google.container.v1beta1.NodePoolUpdateStrategy} + */ +public enum NodePoolUpdateStrategy + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+   * Default value if unset. GKE internally defaults the update strategy to
+   * SURGE for unspecified strategies.
+   * 
+ * + * NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED = 0; + */ + NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED(0), + /** + *
+   * blue-green upgrade.
+   * 
+ * + * BLUE_GREEN = 2; + */ + BLUE_GREEN(2), + /** + *
+   * SURGE is the traditional way of upgrading a node pool.
+   * max_surge and max_unavailable determines the level of upgrade parallelism.
+   * 
+ * + * SURGE = 3; + */ + SURGE(3), + UNRECOGNIZED(-1), + ; + + /** + *
+   * Default value if unset. GKE internally defaults the update strategy to
+   * SURGE for unspecified strategies.
+   * 
+ * + * NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED = 0; + */ + public static final int NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED_VALUE = 0; + /** + *
+   * blue-green upgrade.
+   * 
+ * + * BLUE_GREEN = 2; + */ + public static final int BLUE_GREEN_VALUE = 2; + /** + *
+   * SURGE is the traditional way of upgrading a node pool.
+   * max_surge and max_unavailable determines the level of upgrade parallelism.
+   * 
+ * + * SURGE = 3; + */ + public static final int SURGE_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 NodePoolUpdateStrategy 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 NodePoolUpdateStrategy forNumber(int value) { + switch (value) { + case 0: return NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED; + case 2: return BLUE_GREEN; + case 3: return SURGE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + NodePoolUpdateStrategy> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public NodePoolUpdateStrategy findValueByNumber(int number) { + return NodePoolUpdateStrategy.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(2); + } + + private static final NodePoolUpdateStrategy[] VALUES = values(); + + public static NodePoolUpdateStrategy 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 NodePoolUpdateStrategy(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.NodePoolUpdateStrategy) +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeTaint.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeTaint.java new file mode 100644 index 000000000000..c01dc166daaf --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeTaint.java @@ -0,0 +1,1036 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * Kubernetes taint is composed 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(); + } + + 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< + Effect> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Effect findValueByNumber(int number) { + return Effect.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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_ = 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; + * @return The effect. + */ + @java.lang.Override public com.google.container.v1beta1.NodeTaint.Effect getEffect() { + com.google.container.v1beta1.NodeTaint.Effect result = com.google.container.v1beta1.NodeTaint.Effect.forNumber(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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); + } + if (effect_ != com.google.container.v1beta1.NodeTaint.Effect.EFFECT_UNSPECIFIED.getNumber()) { + output.writeEnum(3, effect_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + 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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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 composed 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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.NodeTaint result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.key_ = key_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = value_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.effect_ = effect_; + } + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.effect_ != 0) { + setEffectValue(other.getEffectValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + key_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + effect_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Key for taint.
+     * 
+ * + * string key = 1; + * @return This builder for chaining. + */ + public Builder clearKey() { + key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Value for taint.
+     * 
+ * + * string value = 2; + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + 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; + bitField0_ |= 0x00000004; + 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() { + com.google.container.v1beta1.NodeTaint.Effect result = com.google.container.v1beta1.NodeTaint.Effect.forNumber(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(); + } + bitField0_ |= 0x00000004; + effect_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Effect for taint.
+     * 
+ * + * .google.container.v1beta1.NodeTaint.Effect effect = 3; + * @return This builder for chaining. + */ + public Builder clearEffect() { + bitField0_ = (bitField0_ & ~0x00000004); + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeTaintOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeTaintOrBuilder.java new file mode 100644 index 000000000000..e660184a71d2 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeTaintOrBuilder.java @@ -0,0 +1,69 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeTaints.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeTaints.java new file mode 100644 index 000000000000..b16e081ba0a6 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeTaints.java @@ -0,0 +1,862 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * Collection of Kubernetes [node
+ * taints](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration).
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.NodeTaints} + */ +public final class NodeTaints extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NodeTaints) + NodeTaintsOrBuilder { +private static final long serialVersionUID = 0L; + // Use NodeTaints.newBuilder() to construct. + private NodeTaints(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeTaints() { + taints_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NodeTaints(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeTaints_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeTaints_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodeTaints.class, com.google.container.v1beta1.NodeTaints.Builder.class); + } + + public static final int TAINTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List taints_; + /** + *
+   * List of node taints.
+   * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 1; + */ + @java.lang.Override + public java.util.List getTaintsList() { + return taints_; + } + /** + *
+   * List of node taints.
+   * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 1; + */ + @java.lang.Override + public java.util.List + getTaintsOrBuilderList() { + return taints_; + } + /** + *
+   * List of node taints.
+   * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 1; + */ + @java.lang.Override + public int getTaintsCount() { + return taints_.size(); + } + /** + *
+   * List of node taints.
+   * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.NodeTaint getTaints(int index) { + return taints_.get(index); + } + /** + *
+   * List of node taints.
+   * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.NodeTaintOrBuilder getTaintsOrBuilder( + int index) { + return taints_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < taints_.size(); i++) { + output.writeMessage(1, taints_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < taints_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, taints_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.NodeTaints)) { + return super.equals(obj); + } + com.google.container.v1beta1.NodeTaints other = (com.google.container.v1beta1.NodeTaints) obj; + + if (!getTaintsList() + .equals(other.getTaintsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTaintsCount() > 0) { + hash = (37 * hash) + TAINTS_FIELD_NUMBER; + hash = (53 * hash) + getTaintsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.NodeTaints parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodeTaints parseFrom( + 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.NodeTaints parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodeTaints parseFrom( + com.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.NodeTaints parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NodeTaints parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NodeTaints parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NodeTaints parseFrom( + java.io.InputStream 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.NodeTaints parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NodeTaints parseDelimitedFrom( + java.io.InputStream 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.NodeTaints parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NodeTaints parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.NodeTaints prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Collection of Kubernetes [node
+   * taints](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration).
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.NodeTaints} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NodeTaints) + com.google.container.v1beta1.NodeTaintsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeTaints_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NodeTaints_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NodeTaints.class, com.google.container.v1beta1.NodeTaints.Builder.class); + } + + // Construct using com.google.container.v1beta1.NodeTaints.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (taintsBuilder_ == null) { + taints_ = java.util.Collections.emptyList(); + } else { + taints_ = null; + taintsBuilder_.clear(); + } + 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_NodeTaints_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NodeTaints getDefaultInstanceForType() { + return com.google.container.v1beta1.NodeTaints.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NodeTaints build() { + com.google.container.v1beta1.NodeTaints result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NodeTaints buildPartial() { + com.google.container.v1beta1.NodeTaints result = new com.google.container.v1beta1.NodeTaints(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1beta1.NodeTaints result) { + if (taintsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + taints_ = java.util.Collections.unmodifiableList(taints_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.taints_ = taints_; + } else { + result.taints_ = taintsBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1beta1.NodeTaints result) { + int from_bitField0_ = bitField0_; + } + + @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.NodeTaints) { + return mergeFrom((com.google.container.v1beta1.NodeTaints)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NodeTaints other) { + if (other == com.google.container.v1beta1.NodeTaints.getDefaultInstance()) return this; + if (taintsBuilder_ == null) { + if (!other.taints_.isEmpty()) { + if (taints_.isEmpty()) { + taints_ = other.taints_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTaintsIsMutable(); + taints_.addAll(other.taints_); + } + onChanged(); + } + } else { + if (!other.taints_.isEmpty()) { + if (taintsBuilder_.isEmpty()) { + taintsBuilder_.dispose(); + taintsBuilder_ = null; + taints_ = other.taints_; + bitField0_ = (bitField0_ & ~0x00000001); + taintsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTaintsFieldBuilder() : null; + } else { + taintsBuilder_.addAllMessages(other.taints_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.container.v1beta1.NodeTaint m = + input.readMessage( + com.google.container.v1beta1.NodeTaint.parser(), + extensionRegistry); + if (taintsBuilder_ == null) { + ensureTaintsIsMutable(); + taints_.add(m); + } else { + taintsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List taints_ = + java.util.Collections.emptyList(); + private void ensureTaintsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + taints_ = new java.util.ArrayList(taints_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.NodeTaint, com.google.container.v1beta1.NodeTaint.Builder, com.google.container.v1beta1.NodeTaintOrBuilder> taintsBuilder_; + + /** + *
+     * List of node taints.
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 1; + */ + public java.util.List getTaintsList() { + if (taintsBuilder_ == null) { + return java.util.Collections.unmodifiableList(taints_); + } else { + return taintsBuilder_.getMessageList(); + } + } + /** + *
+     * List of node taints.
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 1; + */ + public int getTaintsCount() { + if (taintsBuilder_ == null) { + return taints_.size(); + } else { + return taintsBuilder_.getCount(); + } + } + /** + *
+     * List of node taints.
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 1; + */ + public com.google.container.v1beta1.NodeTaint getTaints(int index) { + if (taintsBuilder_ == null) { + return taints_.get(index); + } else { + return taintsBuilder_.getMessage(index); + } + } + /** + *
+     * List of node taints.
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 1; + */ + 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 node taints.
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 1; + */ + 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 node taints.
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 1; + */ + 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 node taints.
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 1; + */ + 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 node taints.
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 1; + */ + 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 node taints.
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 1; + */ + 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 node taints.
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 1; + */ + 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 node taints.
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 1; + */ + public Builder clearTaints() { + if (taintsBuilder_ == null) { + taints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + taintsBuilder_.clear(); + } + return this; + } + /** + *
+     * List of node taints.
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 1; + */ + public Builder removeTaints(int index) { + if (taintsBuilder_ == null) { + ensureTaintsIsMutable(); + taints_.remove(index); + onChanged(); + } else { + taintsBuilder_.remove(index); + } + return this; + } + /** + *
+     * List of node taints.
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 1; + */ + public com.google.container.v1beta1.NodeTaint.Builder getTaintsBuilder( + int index) { + return getTaintsFieldBuilder().getBuilder(index); + } + /** + *
+     * List of node taints.
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 1; + */ + public com.google.container.v1beta1.NodeTaintOrBuilder getTaintsOrBuilder( + int index) { + if (taintsBuilder_ == null) { + return taints_.get(index); } else { + return taintsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * List of node taints.
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 1; + */ + public java.util.List + getTaintsOrBuilderList() { + if (taintsBuilder_ != null) { + return taintsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(taints_); + } + } + /** + *
+     * List of node taints.
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 1; + */ + public com.google.container.v1beta1.NodeTaint.Builder addTaintsBuilder() { + return getTaintsFieldBuilder().addBuilder( + com.google.container.v1beta1.NodeTaint.getDefaultInstance()); + } + /** + *
+     * List of node taints.
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 1; + */ + public com.google.container.v1beta1.NodeTaint.Builder addTaintsBuilder( + int index) { + return getTaintsFieldBuilder().addBuilder( + index, com.google.container.v1beta1.NodeTaint.getDefaultInstance()); + } + /** + *
+     * List of node taints.
+     * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 1; + */ + 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_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + taints_ = null; + } + return taintsBuilder_; + } + @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.NodeTaints) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NodeTaints) + private static final com.google.container.v1beta1.NodeTaints DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NodeTaints(); + } + + public static com.google.container.v1beta1.NodeTaints getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeTaints parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.NodeTaints getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeTaintsOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeTaintsOrBuilder.java new file mode 100644 index 000000000000..91f97f0201e5 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodeTaintsOrBuilder.java @@ -0,0 +1,54 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface NodeTaintsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NodeTaints) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * List of node taints.
+   * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 1; + */ + java.util.List + getTaintsList(); + /** + *
+   * List of node taints.
+   * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 1; + */ + com.google.container.v1beta1.NodeTaint getTaints(int index); + /** + *
+   * List of node taints.
+   * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 1; + */ + int getTaintsCount(); + /** + *
+   * List of node taints.
+   * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 1; + */ + java.util.List + getTaintsOrBuilderList(); + /** + *
+   * List of node taints.
+   * 
+ * + * repeated .google.container.v1beta1.NodeTaint taints = 1; + */ + com.google.container.v1beta1.NodeTaintOrBuilder getTaintsOrBuilder( + int index); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NotificationConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NotificationConfig.java new file mode 100644 index 000000000000..162ecdabdcc3 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NotificationConfig.java @@ -0,0 +1,2611 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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); + } + + /** + *
+   * Types of notifications currently supported. Can be used to filter what
+   * notifications are sent.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.NotificationConfig.EventType} + */ + public enum EventType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not set, will be ignored.
+     * 
+ * + * EVENT_TYPE_UNSPECIFIED = 0; + */ + EVENT_TYPE_UNSPECIFIED(0), + /** + *
+     * Corresponds with UpgradeAvailableEvent.
+     * 
+ * + * UPGRADE_AVAILABLE_EVENT = 1; + */ + UPGRADE_AVAILABLE_EVENT(1), + /** + *
+     * Corresponds with UpgradeEvent.
+     * 
+ * + * UPGRADE_EVENT = 2; + */ + UPGRADE_EVENT(2), + /** + *
+     * Corresponds with SecurityBulletinEvent.
+     * 
+ * + * SECURITY_BULLETIN_EVENT = 3; + */ + SECURITY_BULLETIN_EVENT(3), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not set, will be ignored.
+     * 
+ * + * EVENT_TYPE_UNSPECIFIED = 0; + */ + public static final int EVENT_TYPE_UNSPECIFIED_VALUE = 0; + /** + *
+     * Corresponds with UpgradeAvailableEvent.
+     * 
+ * + * UPGRADE_AVAILABLE_EVENT = 1; + */ + public static final int UPGRADE_AVAILABLE_EVENT_VALUE = 1; + /** + *
+     * Corresponds with UpgradeEvent.
+     * 
+ * + * UPGRADE_EVENT = 2; + */ + public static final int UPGRADE_EVENT_VALUE = 2; + /** + *
+     * Corresponds with SecurityBulletinEvent.
+     * 
+ * + * SECURITY_BULLETIN_EVENT = 3; + */ + public static final int SECURITY_BULLETIN_EVENT_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EventType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static EventType forNumber(int value) { + switch (value) { + case 0: return EVENT_TYPE_UNSPECIFIED; + case 1: return UPGRADE_AVAILABLE_EVENT; + case 2: return UPGRADE_EVENT; + case 3: return SECURITY_BULLETIN_EVENT; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + EventType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EventType findValueByNumber(int number) { + return EventType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1beta1.NotificationConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final EventType[] VALUES = values(); + + public static EventType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private EventType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.NotificationConfig.EventType) + } + + public interface PubSubOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NotificationConfig.PubSub) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Enable notifications for Pub/Sub.
+     * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); + + /** + *
+     * The desired Pub/Sub topic to which notifications will be
+     * sent by GKE. Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 2 [(.google.api.resource_reference) = { ... } + * @return The topic. + */ + java.lang.String getTopic(); + /** + *
+     * The desired Pub/Sub topic to which notifications will be
+     * sent by GKE. Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 2 [(.google.api.resource_reference) = { ... } + * @return The bytes for topic. + */ + com.google.protobuf.ByteString + getTopicBytes(); + + /** + *
+     * Allows filtering to one or more specific event types. If no filter is
+     * specified, or if a filter is specified with no event types, all event
+     * types will be sent
+     * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + * @return Whether the filter field is set. + */ + boolean hasFilter(); + /** + *
+     * Allows filtering to one or more specific event types. If no filter is
+     * specified, or if a filter is specified with no event types, all event
+     * types will be sent
+     * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + * @return The filter. + */ + com.google.container.v1beta1.NotificationConfig.Filter getFilter(); + /** + *
+     * Allows filtering to one or more specific event types. If no filter is
+     * specified, or if a filter is specified with no event types, all event
+     * types will be sent
+     * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + */ + com.google.container.v1beta1.NotificationConfig.FilterOrBuilder getFilterOrBuilder(); + } + /** + *
+   * 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(); + } + + 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); + } + + private int bitField0_; + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+     * 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; + @SuppressWarnings("serial") + private volatile java.lang.Object topic_ = ""; + /** + *
+     * The desired Pub/Sub topic to which notifications will be
+     * sent by GKE. Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 2 [(.google.api.resource_reference) = { ... } + * @return The topic. + */ + @java.lang.Override + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } + } + /** + *
+     * The desired Pub/Sub topic to which notifications will be
+     * sent by GKE. Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 2 [(.google.api.resource_reference) = { ... } + * @return The bytes for topic. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 3; + private com.google.container.v1beta1.NotificationConfig.Filter filter_; + /** + *
+     * Allows filtering to one or more specific event types. If no filter is
+     * specified, or if a filter is specified with no event types, all event
+     * types will be sent
+     * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + * @return Whether the filter field is set. + */ + @java.lang.Override + public boolean hasFilter() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Allows filtering to one or more specific event types. If no filter is
+     * specified, or if a filter is specified with no event types, all event
+     * types will be sent
+     * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + * @return The filter. + */ + @java.lang.Override + public com.google.container.v1beta1.NotificationConfig.Filter getFilter() { + return filter_ == null ? com.google.container.v1beta1.NotificationConfig.Filter.getDefaultInstance() : filter_; + } + /** + *
+     * Allows filtering to one or more specific event types. If no filter is
+     * specified, or if a filter is specified with no event types, all event
+     * types will be sent
+     * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + */ + @java.lang.Override + public com.google.container.v1beta1.NotificationConfig.FilterOrBuilder getFilterOrBuilder() { + return filter_ == null ? com.google.container.v1beta1.NotificationConfig.Filter.getDefaultInstance() : filter_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, topic_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getFilter()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enabled_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topic_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getFilter()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (hasFilter() != other.hasFilter()) return false; + if (hasFilter()) { + if (!getFilter() + .equals(other.getFilter())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnabled()); + hash = (37 * hash) + TOPIC_FIELD_NUMBER; + hash = (53 * hash) + getTopic().hashCode(); + if (hasFilter()) { + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + } + hash = (29 * hash) + getUnknownFields().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) { + getFilterFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + topic_ = ""; + filter_ = null; + if (filterBuilder_ != null) { + filterBuilder_.dispose(); + filterBuilder_ = 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_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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.NotificationConfig.PubSub result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.topic_ = topic_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.filter_ = filterBuilder_ == null + ? filter_ + : filterBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @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_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasFilter()) { + mergeFilter(other.getFilter()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + topic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getFilterFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Enable notifications for Pub/Sub.
+       * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000002; + 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(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.container.v1beta1.NotificationConfig.Filter filter_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NotificationConfig.Filter, com.google.container.v1beta1.NotificationConfig.Filter.Builder, com.google.container.v1beta1.NotificationConfig.FilterOrBuilder> filterBuilder_; + /** + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + * @return Whether the filter field is set. + */ + public boolean hasFilter() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + * @return The filter. + */ + public com.google.container.v1beta1.NotificationConfig.Filter getFilter() { + if (filterBuilder_ == null) { + return filter_ == null ? com.google.container.v1beta1.NotificationConfig.Filter.getDefaultInstance() : filter_; + } else { + return filterBuilder_.getMessage(); + } + } + /** + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + */ + public Builder setFilter(com.google.container.v1beta1.NotificationConfig.Filter value) { + if (filterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + } else { + filterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + */ + public Builder setFilter( + com.google.container.v1beta1.NotificationConfig.Filter.Builder builderForValue) { + if (filterBuilder_ == null) { + filter_ = builderForValue.build(); + } else { + filterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + */ + public Builder mergeFilter(com.google.container.v1beta1.NotificationConfig.Filter value) { + if (filterBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + filter_ != null && + filter_ != com.google.container.v1beta1.NotificationConfig.Filter.getDefaultInstance()) { + getFilterBuilder().mergeFrom(value); + } else { + filter_ = value; + } + } else { + filterBuilder_.mergeFrom(value); + } + if (filter_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + */ + public Builder clearFilter() { + bitField0_ = (bitField0_ & ~0x00000004); + filter_ = null; + if (filterBuilder_ != null) { + filterBuilder_.dispose(); + filterBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + */ + public com.google.container.v1beta1.NotificationConfig.Filter.Builder getFilterBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getFilterFieldBuilder().getBuilder(); + } + /** + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + */ + public com.google.container.v1beta1.NotificationConfig.FilterOrBuilder getFilterOrBuilder() { + if (filterBuilder_ != null) { + return filterBuilder_.getMessageOrBuilder(); + } else { + return filter_ == null ? + com.google.container.v1beta1.NotificationConfig.Filter.getDefaultInstance() : filter_; + } + } + /** + *
+       * Allows filtering to one or more specific event types. If no filter is
+       * specified, or if a filter is specified with no event types, all event
+       * types will be sent
+       * 
+ * + * .google.container.v1beta1.NotificationConfig.Filter filter = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NotificationConfig.Filter, com.google.container.v1beta1.NotificationConfig.Filter.Builder, com.google.container.v1beta1.NotificationConfig.FilterOrBuilder> + getFilterFieldBuilder() { + if (filterBuilder_ == null) { + filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NotificationConfig.Filter, com.google.container.v1beta1.NotificationConfig.Filter.Builder, com.google.container.v1beta1.NotificationConfig.FilterOrBuilder>( + getFilter(), + getParentForChildren(), + isClean()); + filter_ = null; + } + return filterBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.NotificationConfig.PubSub) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NotificationConfig.PubSub) + private static final com.google.container.v1beta1.NotificationConfig.PubSub DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NotificationConfig.PubSub(); + } + + public static com.google.container.v1beta1.NotificationConfig.PubSub getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PubSub parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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 interface FilterOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.NotificationConfig.Filter) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * @return A list containing the eventType. + */ + java.util.List getEventTypeList(); + /** + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * @return The count of eventType. + */ + int getEventTypeCount(); + /** + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * @param index The index of the element to return. + * @return The eventType at the given index. + */ + com.google.container.v1beta1.NotificationConfig.EventType getEventType(int index); + /** + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * @return A list containing the enum numeric values on the wire for eventType. + */ + java.util.List + getEventTypeValueList(); + /** + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of eventType at the given index. + */ + int getEventTypeValue(int index); + } + /** + *
+   * Allows filtering to one or more specific event types. If event types are
+   * present, those and only those event types will be transmitted to the
+   * cluster. Other types will be skipped. If no filter is specified, or no
+   * event types are present, all event types will be sent
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.NotificationConfig.Filter} + */ + public static final class Filter extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.NotificationConfig.Filter) + FilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use Filter.newBuilder() to construct. + private Filter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Filter() { + eventType_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Filter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NotificationConfig_Filter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NotificationConfig_Filter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NotificationConfig.Filter.class, com.google.container.v1beta1.NotificationConfig.Filter.Builder.class); + } + + public static final int EVENT_TYPE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List eventType_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.container.v1beta1.NotificationConfig.EventType> eventType_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.container.v1beta1.NotificationConfig.EventType>() { + public com.google.container.v1beta1.NotificationConfig.EventType convert(java.lang.Integer from) { + com.google.container.v1beta1.NotificationConfig.EventType result = com.google.container.v1beta1.NotificationConfig.EventType.forNumber(from); + return result == null ? com.google.container.v1beta1.NotificationConfig.EventType.UNRECOGNIZED : result; + } + }; + /** + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * @return A list containing the eventType. + */ + @java.lang.Override + public java.util.List getEventTypeList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.container.v1beta1.NotificationConfig.EventType>(eventType_, eventType_converter_); + } + /** + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * @return The count of eventType. + */ + @java.lang.Override + public int getEventTypeCount() { + return eventType_.size(); + } + /** + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * @param index The index of the element to return. + * @return The eventType at the given index. + */ + @java.lang.Override + public com.google.container.v1beta1.NotificationConfig.EventType getEventType(int index) { + return eventType_converter_.convert(eventType_.get(index)); + } + /** + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * @return A list containing the enum numeric values on the wire for eventType. + */ + @java.lang.Override + public java.util.List + getEventTypeValueList() { + return eventType_; + } + /** + *
+     * Event types to allowlist.
+     * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of eventType at the given index. + */ + @java.lang.Override + public int getEventTypeValue(int index) { + return eventType_.get(index); + } + private int eventTypeMemoizedSerializedSize; + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (getEventTypeList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(eventTypeMemoizedSerializedSize); + } + for (int i = 0; i < eventType_.size(); i++) { + output.writeEnumNoTag(eventType_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < eventType_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(eventType_.get(i)); + } + size += dataSize; + if (!getEventTypeList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }eventTypeMemoizedSerializedSize = dataSize; + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.NotificationConfig.Filter)) { + return super.equals(obj); + } + com.google.container.v1beta1.NotificationConfig.Filter other = (com.google.container.v1beta1.NotificationConfig.Filter) obj; + + if (!eventType_.equals(other.eventType_)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEventTypeCount() > 0) { + hash = (37 * hash) + EVENT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + eventType_.hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.NotificationConfig.Filter parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NotificationConfig.Filter parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NotificationConfig.Filter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NotificationConfig.Filter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NotificationConfig.Filter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.NotificationConfig.Filter parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.NotificationConfig.Filter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NotificationConfig.Filter parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.NotificationConfig.Filter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.NotificationConfig.Filter parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.NotificationConfig.Filter parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.NotificationConfig.Filter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.NotificationConfig.Filter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Allows filtering to one or more specific event types. If event types are
+     * present, those and only those event types will be transmitted to the
+     * cluster. Other types will be skipped. If no filter is specified, or no
+     * event types are present, all event types will be sent
+     * 
+ * + * Protobuf type {@code google.container.v1beta1.NotificationConfig.Filter} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.NotificationConfig.Filter) + com.google.container.v1beta1.NotificationConfig.FilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NotificationConfig_Filter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NotificationConfig_Filter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.NotificationConfig.Filter.class, com.google.container.v1beta1.NotificationConfig.Filter.Builder.class); + } + + // Construct using com.google.container.v1beta1.NotificationConfig.Filter.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + eventType_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_NotificationConfig_Filter_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.NotificationConfig.Filter getDefaultInstanceForType() { + return com.google.container.v1beta1.NotificationConfig.Filter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.NotificationConfig.Filter build() { + com.google.container.v1beta1.NotificationConfig.Filter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.NotificationConfig.Filter buildPartial() { + com.google.container.v1beta1.NotificationConfig.Filter result = new com.google.container.v1beta1.NotificationConfig.Filter(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1beta1.NotificationConfig.Filter result) { + if (((bitField0_ & 0x00000001) != 0)) { + eventType_ = java.util.Collections.unmodifiableList(eventType_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.eventType_ = eventType_; + } + + private void buildPartial0(com.google.container.v1beta1.NotificationConfig.Filter result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.NotificationConfig.Filter) { + return mergeFrom((com.google.container.v1beta1.NotificationConfig.Filter)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.NotificationConfig.Filter other) { + if (other == com.google.container.v1beta1.NotificationConfig.Filter.getDefaultInstance()) return this; + if (!other.eventType_.isEmpty()) { + if (eventType_.isEmpty()) { + eventType_ = other.eventType_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEventTypeIsMutable(); + eventType_.addAll(other.eventType_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int tmpRaw = input.readEnum(); + ensureEventTypeIsMutable(); + eventType_.add(tmpRaw); + break; + } // case 8 + case 10: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureEventTypeIsMutable(); + eventType_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List eventType_ = + java.util.Collections.emptyList(); + private void ensureEventTypeIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + eventType_ = new java.util.ArrayList(eventType_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * @return A list containing the eventType. + */ + public java.util.List getEventTypeList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.container.v1beta1.NotificationConfig.EventType>(eventType_, eventType_converter_); + } + /** + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * @return The count of eventType. + */ + public int getEventTypeCount() { + return eventType_.size(); + } + /** + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * @param index The index of the element to return. + * @return The eventType at the given index. + */ + public com.google.container.v1beta1.NotificationConfig.EventType getEventType(int index) { + return eventType_converter_.convert(eventType_.get(index)); + } + /** + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * @param index The index to set the value at. + * @param value The eventType to set. + * @return This builder for chaining. + */ + public Builder setEventType( + int index, com.google.container.v1beta1.NotificationConfig.EventType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventTypeIsMutable(); + eventType_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * @param value The eventType to add. + * @return This builder for chaining. + */ + public Builder addEventType(com.google.container.v1beta1.NotificationConfig.EventType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventTypeIsMutable(); + eventType_.add(value.getNumber()); + onChanged(); + return this; + } + /** + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * @param values The eventType to add. + * @return This builder for chaining. + */ + public Builder addAllEventType( + java.lang.Iterable values) { + ensureEventTypeIsMutable(); + for (com.google.container.v1beta1.NotificationConfig.EventType value : values) { + eventType_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * @return This builder for chaining. + */ + public Builder clearEventType() { + eventType_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * @return A list containing the enum numeric values on the wire for eventType. + */ + public java.util.List + getEventTypeValueList() { + return java.util.Collections.unmodifiableList(eventType_); + } + /** + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of eventType at the given index. + */ + public int getEventTypeValue(int index) { + return eventType_.get(index); + } + /** + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for eventType to set. + * @return This builder for chaining. + */ + public Builder setEventTypeValue( + int index, int value) { + ensureEventTypeIsMutable(); + eventType_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * @param value The enum numeric value on the wire for eventType to add. + * @return This builder for chaining. + */ + public Builder addEventTypeValue(int value) { + ensureEventTypeIsMutable(); + eventType_.add(value); + onChanged(); + return this; + } + /** + *
+       * Event types to allowlist.
+       * 
+ * + * repeated .google.container.v1beta1.NotificationConfig.EventType event_type = 1; + * @param values The enum numeric values on the wire for eventType to add. + * @return This builder for chaining. + */ + public Builder addAllEventTypeValue( + java.lang.Iterable values) { + ensureEventTypeIsMutable(); + for (int value : values) { + eventType_.add(value); + } + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.NotificationConfig.Filter) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.NotificationConfig.Filter) + private static final com.google.container.v1beta1.NotificationConfig.Filter DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.NotificationConfig.Filter(); + } + + public static com.google.container.v1beta1.NotificationConfig.Filter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Filter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.NotificationConfig.Filter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + 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 ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * 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 pubsub_ == null ? com.google.container.v1beta1.NotificationConfig.PubSub.getDefaultInstance() : pubsub_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPubsub()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPubsub()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { + getPubsubFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pubsub_ = null; + if (pubsubBuilder_ != null) { + pubsubBuilder_.dispose(); + 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 (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.NotificationConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pubsub_ = pubsubBuilder_ == null + ? pubsub_ + : pubsubBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @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.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getPubsubFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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 ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * 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; + } else { + pubsubBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + 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(); + } else { + pubsubBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + 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 (((bitField0_ & 0x00000001) != 0) && + pubsub_ != null && + pubsub_ != com.google.container.v1beta1.NotificationConfig.PubSub.getDefaultInstance()) { + getPubsubBuilder().mergeFrom(value); + } else { + pubsub_ = value; + } + } else { + pubsubBuilder_.mergeFrom(value); + } + if (pubsub_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; + */ + public Builder clearPubsub() { + bitField0_ = (bitField0_ & ~0x00000001); + pubsub_ = null; + if (pubsubBuilder_ != null) { + pubsubBuilder_.dispose(); + pubsubBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Notification config for Pub/Sub.
+     * 
+ * + * .google.container.v1beta1.NotificationConfig.PubSub pubsub = 1; + */ + public com.google.container.v1beta1.NotificationConfig.PubSub.Builder getPubsubBuilder() { + bitField0_ |= 0x00000001; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NotificationConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NotificationConfigOrBuilder.java new file mode 100644 index 000000000000..5c50174ecf9d --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NotificationConfigOrBuilder.java @@ -0,0 +1,37 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Operation.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Operation.java new file mode 100644 index 000000000000..f4a3e5174c58 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Operation.java @@ -0,0 +1,4475 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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< + Status> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Status findValueByNumber(int number) { + return Status.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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 categorizes the operation.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.Operation.Type} + */ + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not set.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + *
+     * The cluster is being created. The cluster should be assumed to be
+     * unusable until the operation finishes.
+     *
+     * In the event of the operation failing, the cluster will enter the [ERROR
+     * state][Cluster.Status.ERROR] and eventually be deleted.
+     * 
+ * + * CREATE_CLUSTER = 1; + */ + CREATE_CLUSTER(1), + /** + *
+     * The cluster is being deleted. The cluster should be assumed to be
+     * unusable as soon as this operation starts.
+     *
+     * In the event of the operation failing, the cluster will enter the [ERROR
+     * state][Cluster.Status.ERROR] and the deletion will be automatically
+     * retried until completed.
+     * 
+ * + * DELETE_CLUSTER = 2; + */ + DELETE_CLUSTER(2), + /** + *
+     * The [cluster
+     * version][google.container.v1beta1.ClusterUpdate.desired_master_version]
+     * is being updated. Note that this includes "upgrades" to the same version,
+     * which are simply a recreation. This also includes
+     * [auto-upgrades](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-upgrades#upgrading_automatically).
+     * For more details, see [documentation on cluster
+     * upgrades](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-upgrades#cluster_upgrades).
+     * 
+ * + * UPGRADE_MASTER = 3; + */ + UPGRADE_MASTER(3), + /** + *
+     * A node pool is being updated. Despite calling this an "upgrade", this
+     * includes most forms of updates to node pools. This also includes
+     * [auto-upgrades](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-upgrades).
+     *
+     * This operation sets the
+     * [progress][google.container.v1beta1.Operation.progress] field and may be
+     * [canceled][google.container.v1beta1.ClusterManager.CancelOperation].
+     *
+     * The upgrade strategy depends on [node pool
+     * configuration](https://cloud.google.com/kubernetes-engine/docs/concepts/node-pool-upgrade-strategies).
+     * The nodes are generally still usable during this operation.
+     * 
+ * + * UPGRADE_NODES = 4; + */ + UPGRADE_NODES(4), + /** + *
+     * A problem has been detected with the control plane and is being repaired.
+     * This operation type is initiated by GKE. For more details, see
+     * [documentation on
+     * repairs](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions#repairs).
+     * 
+ * + * REPAIR_CLUSTER = 5; + */ + REPAIR_CLUSTER(5), + /** + *
+     * The cluster is being updated. This is a broad category of operations and
+     * includes operations that only change metadata as well as those that must
+     * recreate the entire cluster. If the control plane must be recreated, this
+     * will cause temporary downtime for zonal clusters.
+     *
+     * Some features require recreating the nodes as well. Those will be
+     * recreated as separate operations and the update may not be completely
+     * functional until the node pools recreations finish. Node recreations will
+     * generally follow [maintenance
+     * policies](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions).
+     *
+     * Some GKE-initiated operations use this type. This includes certain types
+     * of auto-upgrades and incident mitigations.
+     * 
+ * + * UPDATE_CLUSTER = 6; + */ + UPDATE_CLUSTER(6), + /** + *
+     * A node pool is being created. The node pool should be assumed to be
+     * unusable until this operation finishes. In the event of an error, the
+     * node pool may be partially created.
+     *
+     * If enabled, [node
+     * autoprovisioning](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-provisioning)
+     * may have automatically initiated such operations.
+     * 
+ * + * CREATE_NODE_POOL = 7; + */ + CREATE_NODE_POOL(7), + /** + *
+     * The node pool is being deleted. The node pool should be assumed to be
+     * unusable as soon as this operation starts.
+     * 
+ * + * DELETE_NODE_POOL = 8; + */ + DELETE_NODE_POOL(8), + /** + *
+     * The node pool's
+     * [manamagent][google.container.v1beta1.NodePool.management] field is being
+     * updated. These operations only update metadata and may be concurrent with
+     * most other operations.
+     * 
+ * + * SET_NODE_POOL_MANAGEMENT = 9; + */ + SET_NODE_POOL_MANAGEMENT(9), + /** + *
+     * A problem has been detected with nodes and [they are being
+     * repaired](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-repair).
+     * This operation type is initiated by GKE, typically automatically. This
+     * operation may be concurrent with other operations and there may be
+     * multiple repairs occurring on the same node pool.
+     * 
+ * + * AUTO_REPAIR_NODES = 10; + */ + AUTO_REPAIR_NODES(10), + /** + *
+     * Unused. Automatic node upgrade uses
+     * [UPGRADE_NODES][google.container.v1beta1.Operation.Type.UPGRADE_NODES].
+     * 
+ * + * AUTO_UPGRADE_NODES = 11 [deprecated = true]; + */ + @java.lang.Deprecated + AUTO_UPGRADE_NODES(11), + /** + *
+     * Unused. Updating labels uses
+     * [UPDATE_CLUSTER][google.container.v1beta1.Operation.Type.UPDATE_CLUSTER].
+     * 
+ * + * SET_LABELS = 12 [deprecated = true]; + */ + @java.lang.Deprecated + SET_LABELS(12), + /** + *
+     * Unused. Updating master auth uses
+     * [UPDATE_CLUSTER][google.container.v1beta1.Operation.Type.UPDATE_CLUSTER].
+     * 
+ * + * SET_MASTER_AUTH = 13 [deprecated = true]; + */ + @java.lang.Deprecated + SET_MASTER_AUTH(13), + /** + *
+     * The node pool is being resized. With the exception of resizing to or from
+     * size zero, the node pool is generally usable during this operation.
+     * 
+ * + * SET_NODE_POOL_SIZE = 14; + */ + SET_NODE_POOL_SIZE(14), + /** + *
+     * Unused. Updating network policy uses
+     * [UPDATE_CLUSTER][google.container.v1beta1.Operation.Type.UPDATE_CLUSTER].
+     * 
+ * + * SET_NETWORK_POLICY = 15 [deprecated = true]; + */ + @java.lang.Deprecated + SET_NETWORK_POLICY(15), + /** + *
+     * Unused. Updating maintenance policy uses
+     * [UPDATE_CLUSTER][google.container.v1beta1.Operation.Type.UPDATE_CLUSTER].
+     * 
+ * + * SET_MAINTENANCE_POLICY = 16 [deprecated = true]; + */ + @java.lang.Deprecated + SET_MAINTENANCE_POLICY(16), + /** + *
+     * The control plane is being resized. This operation type is initiated by
+     * GKE. These operations are often performed preemptively to ensure that the
+     * control plane has sufficient resources and is not typically an indication
+     * of issues. For more details, see
+     * [documentation on
+     * resizes](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions#repairs).
+     * 
+ * + * RESIZE_CLUSTER = 18; + */ + RESIZE_CLUSTER(18), + /** + *
+     * Fleet features of GKE Enterprise are being upgraded. The cluster should
+     * be assumed to be blocked for other upgrades until the operation finishes.
+     * 
+ * + * FLEET_FEATURE_UPGRADE = 19; + */ + FLEET_FEATURE_UPGRADE(19), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not set.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + /** + *
+     * The cluster is being created. The cluster should be assumed to be
+     * unusable until the operation finishes.
+     *
+     * In the event of the operation failing, the cluster will enter the [ERROR
+     * state][Cluster.Status.ERROR] and eventually be deleted.
+     * 
+ * + * CREATE_CLUSTER = 1; + */ + public static final int CREATE_CLUSTER_VALUE = 1; + /** + *
+     * The cluster is being deleted. The cluster should be assumed to be
+     * unusable as soon as this operation starts.
+     *
+     * In the event of the operation failing, the cluster will enter the [ERROR
+     * state][Cluster.Status.ERROR] and the deletion will be automatically
+     * retried until completed.
+     * 
+ * + * DELETE_CLUSTER = 2; + */ + public static final int DELETE_CLUSTER_VALUE = 2; + /** + *
+     * The [cluster
+     * version][google.container.v1beta1.ClusterUpdate.desired_master_version]
+     * is being updated. Note that this includes "upgrades" to the same version,
+     * which are simply a recreation. This also includes
+     * [auto-upgrades](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-upgrades#upgrading_automatically).
+     * For more details, see [documentation on cluster
+     * upgrades](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-upgrades#cluster_upgrades).
+     * 
+ * + * UPGRADE_MASTER = 3; + */ + public static final int UPGRADE_MASTER_VALUE = 3; + /** + *
+     * A node pool is being updated. Despite calling this an "upgrade", this
+     * includes most forms of updates to node pools. This also includes
+     * [auto-upgrades](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-upgrades).
+     *
+     * This operation sets the
+     * [progress][google.container.v1beta1.Operation.progress] field and may be
+     * [canceled][google.container.v1beta1.ClusterManager.CancelOperation].
+     *
+     * The upgrade strategy depends on [node pool
+     * configuration](https://cloud.google.com/kubernetes-engine/docs/concepts/node-pool-upgrade-strategies).
+     * The nodes are generally still usable during this operation.
+     * 
+ * + * UPGRADE_NODES = 4; + */ + public static final int UPGRADE_NODES_VALUE = 4; + /** + *
+     * A problem has been detected with the control plane and is being repaired.
+     * This operation type is initiated by GKE. For more details, see
+     * [documentation on
+     * repairs](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions#repairs).
+     * 
+ * + * REPAIR_CLUSTER = 5; + */ + public static final int REPAIR_CLUSTER_VALUE = 5; + /** + *
+     * The cluster is being updated. This is a broad category of operations and
+     * includes operations that only change metadata as well as those that must
+     * recreate the entire cluster. If the control plane must be recreated, this
+     * will cause temporary downtime for zonal clusters.
+     *
+     * Some features require recreating the nodes as well. Those will be
+     * recreated as separate operations and the update may not be completely
+     * functional until the node pools recreations finish. Node recreations will
+     * generally follow [maintenance
+     * policies](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions).
+     *
+     * Some GKE-initiated operations use this type. This includes certain types
+     * of auto-upgrades and incident mitigations.
+     * 
+ * + * UPDATE_CLUSTER = 6; + */ + public static final int UPDATE_CLUSTER_VALUE = 6; + /** + *
+     * A node pool is being created. The node pool should be assumed to be
+     * unusable until this operation finishes. In the event of an error, the
+     * node pool may be partially created.
+     *
+     * If enabled, [node
+     * autoprovisioning](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-provisioning)
+     * may have automatically initiated such operations.
+     * 
+ * + * CREATE_NODE_POOL = 7; + */ + public static final int CREATE_NODE_POOL_VALUE = 7; + /** + *
+     * The node pool is being deleted. The node pool should be assumed to be
+     * unusable as soon as this operation starts.
+     * 
+ * + * DELETE_NODE_POOL = 8; + */ + public static final int DELETE_NODE_POOL_VALUE = 8; + /** + *
+     * The node pool's
+     * [manamagent][google.container.v1beta1.NodePool.management] field is being
+     * updated. These operations only update metadata and may be concurrent with
+     * most other operations.
+     * 
+ * + * SET_NODE_POOL_MANAGEMENT = 9; + */ + public static final int SET_NODE_POOL_MANAGEMENT_VALUE = 9; + /** + *
+     * A problem has been detected with nodes and [they are being
+     * repaired](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-repair).
+     * This operation type is initiated by GKE, typically automatically. This
+     * operation may be concurrent with other operations and there may be
+     * multiple repairs occurring on the same node pool.
+     * 
+ * + * AUTO_REPAIR_NODES = 10; + */ + public static final int AUTO_REPAIR_NODES_VALUE = 10; + /** + *
+     * Unused. Automatic node upgrade uses
+     * [UPGRADE_NODES][google.container.v1beta1.Operation.Type.UPGRADE_NODES].
+     * 
+ * + * AUTO_UPGRADE_NODES = 11 [deprecated = true]; + */ + @java.lang.Deprecated public static final int AUTO_UPGRADE_NODES_VALUE = 11; + /** + *
+     * Unused. Updating labels uses
+     * [UPDATE_CLUSTER][google.container.v1beta1.Operation.Type.UPDATE_CLUSTER].
+     * 
+ * + * SET_LABELS = 12 [deprecated = true]; + */ + @java.lang.Deprecated public static final int SET_LABELS_VALUE = 12; + /** + *
+     * Unused. Updating master auth uses
+     * [UPDATE_CLUSTER][google.container.v1beta1.Operation.Type.UPDATE_CLUSTER].
+     * 
+ * + * SET_MASTER_AUTH = 13 [deprecated = true]; + */ + @java.lang.Deprecated public static final int SET_MASTER_AUTH_VALUE = 13; + /** + *
+     * The node pool is being resized. With the exception of resizing to or from
+     * size zero, the node pool is generally usable during this operation.
+     * 
+ * + * SET_NODE_POOL_SIZE = 14; + */ + public static final int SET_NODE_POOL_SIZE_VALUE = 14; + /** + *
+     * Unused. Updating network policy uses
+     * [UPDATE_CLUSTER][google.container.v1beta1.Operation.Type.UPDATE_CLUSTER].
+     * 
+ * + * SET_NETWORK_POLICY = 15 [deprecated = true]; + */ + @java.lang.Deprecated public static final int SET_NETWORK_POLICY_VALUE = 15; + /** + *
+     * Unused. Updating maintenance policy uses
+     * [UPDATE_CLUSTER][google.container.v1beta1.Operation.Type.UPDATE_CLUSTER].
+     * 
+ * + * SET_MAINTENANCE_POLICY = 16 [deprecated = true]; + */ + @java.lang.Deprecated public static final int SET_MAINTENANCE_POLICY_VALUE = 16; + /** + *
+     * The control plane is being resized. This operation type is initiated by
+     * GKE. These operations are often performed preemptively to ensure that the
+     * control plane has sufficient resources and is not typically an indication
+     * of issues. For more details, see
+     * [documentation on
+     * resizes](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions#repairs).
+     * 
+ * + * RESIZE_CLUSTER = 18; + */ + public static final int RESIZE_CLUSTER_VALUE = 18; + /** + *
+     * Fleet features of GKE Enterprise are being upgraded. The cluster should
+     * be assumed to be blocked for other upgrades until the operation finishes.
+     * 
+ * + * FLEET_FEATURE_UPGRADE = 19; + */ + public static final int FLEET_FEATURE_UPGRADE_VALUE = 19; + + + 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; + case 18: return RESIZE_CLUSTER; + case 19: return FLEET_FEATURE_UPGRADE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.Operation.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2840 + * @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]; + * @deprecated google.container.v1beta1.Operation.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2840 + * @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_ = 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; + * @return The operationType. + */ + @java.lang.Override public com.google.container.v1beta1.Operation.Type getOperationType() { + com.google.container.v1beta1.Operation.Type result = com.google.container.v1beta1.Operation.Type.forNumber(operationType_); + return result == null ? com.google.container.v1beta1.Operation.Type.UNRECOGNIZED : result; + } + + public static final int STATUS_FIELD_NUMBER = 4; + 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; + * @return The status. + */ + @java.lang.Override public com.google.container.v1beta1.Operation.Status getStatus() { + com.google.container.v1beta1.Operation.Status result = com.google.container.v1beta1.Operation.Status.forNumber(status_); + return result == null ? com.google.container.v1beta1.Operation.Status.UNRECOGNIZED : result; + } + + public static final int DETAIL_FIELD_NUMBER = 8; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.Operation.status_message is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2853 + * @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]; + * @deprecated google.container.v1beta1.Operation.status_message is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2853 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object selfLink_ = ""; + /** + *
+   * Server-defined URI for the operation. Example:
+   * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
+   * 
+ * + * 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 URI for the operation. Example:
+   * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
+   * 
+ * + * 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; + @SuppressWarnings("serial") + private volatile java.lang.Object targetLink_ = ""; + /** + *
+   * Server-defined URI for the target of the operation. The format of this is a
+   * URI to the resource being modified (such as a cluster, node pool, or node).
+   * For node pool repairs, there may be multiple nodes being repaired, but only
+   * one will be the target.
+   *
+   * Examples:
+   *
+   * -
+   * ##
+   * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
+   *
+   * ##
+   * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
+   *
+   * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
+   * 
+ * + * 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 URI for the target of the operation. The format of this is a
+   * URI to the resource being modified (such as a cluster, node pool, or node).
+   * For node pool repairs, there may be multiple nodes being repaired, but only
+   * one will be the target.
+   *
+   * Examples:
+   *
+   * -
+   * ##
+   * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
+   *
+   * ##
+   * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
+   *
+   * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
+   * 
+ * + * 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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 ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * 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 progress_ == null ? com.google.container.v1beta1.OperationProgress.getDefaultInstance() : progress_; + } + + public static final int CLUSTER_CONDITIONS_FIELD_NUMBER = 13; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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 ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * 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 error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusMessage_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, selfLink_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetLink_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, targetLink_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, detail_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, location_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startTime_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, startTime_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endTime_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, endTime_); + } + if (((bitField0_ & 0x00000001) != 0)) { + 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 (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(15, getError()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, selfLink_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetLink_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, targetLink_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, detail_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, location_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startTime_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, startTime_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endTime_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, endTime_); + } + if (((bitField0_ & 0x00000001) != 0)) { + 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 (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, getError()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { + getProgressFieldBuilder(); + getClusterConditionsFieldBuilder(); + getNodepoolConditionsFieldBuilder(); + getErrorFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + zone_ = ""; + operationType_ = 0; + status_ = 0; + detail_ = ""; + statusMessage_ = ""; + selfLink_ = ""; + targetLink_ = ""; + location_ = ""; + startTime_ = ""; + endTime_ = ""; + progress_ = null; + if (progressBuilder_ != null) { + progressBuilder_.dispose(); + progressBuilder_ = null; + } + if (clusterConditionsBuilder_ == null) { + clusterConditions_ = java.util.Collections.emptyList(); + } else { + clusterConditions_ = null; + clusterConditionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00001000); + if (nodepoolConditionsBuilder_ == null) { + nodepoolConditions_ = java.util.Collections.emptyList(); + } else { + nodepoolConditions_ = null; + nodepoolConditionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00002000); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + 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); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1beta1.Operation result) { + if (clusterConditionsBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0)) { + clusterConditions_ = java.util.Collections.unmodifiableList(clusterConditions_); + bitField0_ = (bitField0_ & ~0x00001000); + } + result.clusterConditions_ = clusterConditions_; + } else { + result.clusterConditions_ = clusterConditionsBuilder_.build(); + } + if (nodepoolConditionsBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0)) { + nodepoolConditions_ = java.util.Collections.unmodifiableList(nodepoolConditions_); + bitField0_ = (bitField0_ & ~0x00002000); + } + result.nodepoolConditions_ = nodepoolConditions_; + } else { + result.nodepoolConditions_ = nodepoolConditionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1beta1.Operation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.operationType_ = operationType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.status_ = status_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.detail_ = detail_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.statusMessage_ = statusMessage_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.selfLink_ = selfLink_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.targetLink_ = targetLink_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.location_ = location_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.startTime_ = startTime_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.endTime_ = endTime_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000800) != 0)) { + result.progress_ = progressBuilder_ == null + ? progress_ + : progressBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.error_ = errorBuilder_ == null + ? error_ + : errorBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.operationType_ != 0) { + setOperationTypeValue(other.getOperationTypeValue()); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (!other.getDetail().isEmpty()) { + detail_ = other.detail_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getSelfLink().isEmpty()) { + selfLink_ = other.selfLink_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getTargetLink().isEmpty()) { + targetLink_ = other.targetLink_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.getStartTime().isEmpty()) { + startTime_ = other.startTime_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (!other.getEndTime().isEmpty()) { + endTime_ = other.endTime_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (other.hasProgress()) { + mergeProgress(other.getProgress()); + } + if (clusterConditionsBuilder_ == null) { + if (!other.clusterConditions_.isEmpty()) { + if (clusterConditions_.isEmpty()) { + clusterConditions_ = other.clusterConditions_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensureClusterConditionsIsMutable(); + clusterConditions_.addAll(other.clusterConditions_); + } + onChanged(); + } + } else { + if (!other.clusterConditions_.isEmpty()) { + if (clusterConditionsBuilder_.isEmpty()) { + clusterConditionsBuilder_.dispose(); + clusterConditionsBuilder_ = null; + clusterConditions_ = other.clusterConditions_; + bitField0_ = (bitField0_ & ~0x00001000); + clusterConditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getClusterConditionsFieldBuilder() : null; + } else { + clusterConditionsBuilder_.addAllMessages(other.clusterConditions_); + } + } + } + if (nodepoolConditionsBuilder_ == null) { + if (!other.nodepoolConditions_.isEmpty()) { + if (nodepoolConditions_.isEmpty()) { + nodepoolConditions_ = other.nodepoolConditions_; + bitField0_ = (bitField0_ & ~0x00002000); + } else { + ensureNodepoolConditionsIsMutable(); + nodepoolConditions_.addAll(other.nodepoolConditions_); + } + onChanged(); + } + } else { + if (!other.nodepoolConditions_.isEmpty()) { + if (nodepoolConditionsBuilder_.isEmpty()) { + nodepoolConditionsBuilder_.dispose(); + nodepoolConditionsBuilder_ = null; + nodepoolConditions_ = other.nodepoolConditions_; + bitField0_ = (bitField0_ & ~0x00002000); + nodepoolConditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNodepoolConditionsFieldBuilder() : null; + } else { + nodepoolConditionsBuilder_.addAllMessages(other.nodepoolConditions_); + } + } + } + if (other.hasError()) { + mergeError(other.getError()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + operationType_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + status_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 50: { + selfLink_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: { + targetLink_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 66: { + detail_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 66 + case 74: { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: { + startTime_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: { + endTime_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: { + input.readMessage( + getProgressFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 106: { + com.google.container.v1beta1.StatusCondition m = + input.readMessage( + com.google.container.v1beta1.StatusCondition.parser(), + extensionRegistry); + if (clusterConditionsBuilder_ == null) { + ensureClusterConditionsIsMutable(); + clusterConditions_.add(m); + } else { + clusterConditionsBuilder_.addMessage(m); + } + break; + } // case 106 + case 114: { + com.google.container.v1beta1.StatusCondition m = + input.readMessage( + com.google.container.v1beta1.StatusCondition.parser(), + extensionRegistry); + if (nodepoolConditionsBuilder_ == null) { + ensureNodepoolConditionsIsMutable(); + nodepoolConditions_.add(m); + } else { + nodepoolConditionsBuilder_.addMessage(m); + } + break; + } // case 114 + case 122: { + input.readMessage( + getErrorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 122 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The server-assigned ID for the operation.
+     * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + 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]; + * @deprecated google.container.v1beta1.Operation.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2840 + * @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]; + * @deprecated google.container.v1beta1.Operation.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2840 + * @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]; + * @deprecated google.container.v1beta1.Operation.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2840 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.Operation.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2840 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + 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]; + * @deprecated google.container.v1beta1.Operation.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2840 + * @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; + bitField0_ |= 0x00000002; + 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; + bitField0_ |= 0x00000004; + 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() { + com.google.container.v1beta1.Operation.Type result = com.google.container.v1beta1.Operation.Type.forNumber(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(); + } + bitField0_ |= 0x00000004; + 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() { + bitField0_ = (bitField0_ & ~0x00000004); + 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; + bitField0_ |= 0x00000008; + 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() { + com.google.container.v1beta1.Operation.Status result = com.google.container.v1beta1.Operation.Status.forNumber(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(); + } + bitField0_ |= 0x00000008; + 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() { + bitField0_ = (bitField0_ & ~0x00000008); + 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; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Detailed operation progress, if available.
+     * 
+ * + * string detail = 8; + * @return This builder for chaining. + */ + public Builder clearDetail() { + detail_ = getDefaultInstance().getDetail(); + bitField0_ = (bitField0_ & ~0x00000010); + 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; + bitField0_ |= 0x00000010; + 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]; + * @deprecated google.container.v1beta1.Operation.status_message is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2853 + * @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]; + * @deprecated google.container.v1beta1.Operation.status_message is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2853 + * @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]; + * @deprecated google.container.v1beta1.Operation.status_message is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2853 + * @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; + bitField0_ |= 0x00000020; + 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]; + * @deprecated google.container.v1beta1.Operation.status_message is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2853 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearStatusMessage() { + statusMessage_ = getDefaultInstance().getStatusMessage(); + bitField0_ = (bitField0_ & ~0x00000020); + 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]; + * @deprecated google.container.v1beta1.Operation.status_message is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2853 + * @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; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object selfLink_ = ""; + /** + *
+     * Server-defined URI for the operation. Example:
+     * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
+     * 
+ * + * 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 URI for the operation. Example:
+     * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
+     * 
+ * + * 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 URI for the operation. Example:
+     * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
+     * 
+ * + * 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; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * Server-defined URI for the operation. Example:
+     * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
+     * 
+ * + * string self_link = 6; + * @return This builder for chaining. + */ + public Builder clearSelfLink() { + selfLink_ = getDefaultInstance().getSelfLink(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + *
+     * Server-defined URI for the operation. Example:
+     * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
+     * 
+ * + * 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; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object targetLink_ = ""; + /** + *
+     * Server-defined URI for the target of the operation. The format of this is a
+     * URI to the resource being modified (such as a cluster, node pool, or node).
+     * For node pool repairs, there may be multiple nodes being repaired, but only
+     * one will be the target.
+     *
+     * Examples:
+     *
+     * -
+     * ##
+     * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
+     *
+     * ##
+     * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
+     *
+     * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
+     * 
+ * + * 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 URI for the target of the operation. The format of this is a
+     * URI to the resource being modified (such as a cluster, node pool, or node).
+     * For node pool repairs, there may be multiple nodes being repaired, but only
+     * one will be the target.
+     *
+     * Examples:
+     *
+     * -
+     * ##
+     * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
+     *
+     * ##
+     * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
+     *
+     * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
+     * 
+ * + * 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 URI for the target of the operation. The format of this is a
+     * URI to the resource being modified (such as a cluster, node pool, or node).
+     * For node pool repairs, there may be multiple nodes being repaired, but only
+     * one will be the target.
+     *
+     * Examples:
+     *
+     * -
+     * ##
+     * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
+     *
+     * ##
+     * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
+     *
+     * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
+     * 
+ * + * 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; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * Server-defined URI for the target of the operation. The format of this is a
+     * URI to the resource being modified (such as a cluster, node pool, or node).
+     * For node pool repairs, there may be multiple nodes being repaired, but only
+     * one will be the target.
+     *
+     * Examples:
+     *
+     * -
+     * ##
+     * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
+     *
+     * ##
+     * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
+     *
+     * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
+     * 
+ * + * string target_link = 7; + * @return This builder for chaining. + */ + public Builder clearTargetLink() { + targetLink_ = getDefaultInstance().getTargetLink(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + *
+     * Server-defined URI for the target of the operation. The format of this is a
+     * URI to the resource being modified (such as a cluster, node pool, or node).
+     * For node pool repairs, there may be multiple nodes being repaired, but only
+     * one will be the target.
+     *
+     * Examples:
+     *
+     * -
+     * ##
+     * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
+     *
+     * ##
+     * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
+     *
+     * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
+     * 
+ * + * 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; + bitField0_ |= 0x00000080; + 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; + bitField0_ |= 0x00000100; + 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(); + bitField0_ = (bitField0_ & ~0x00000100); + 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; + bitField0_ |= 0x00000100; + 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; + bitField0_ |= 0x00000200; + 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(); + bitField0_ = (bitField0_ & ~0x00000200); + 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; + bitField0_ |= 0x00000200; + 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; + bitField0_ |= 0x00000400; + 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(); + bitField0_ = (bitField0_ & ~0x00000400); + 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; + bitField0_ |= 0x00000400; + 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 ((bitField0_ & 0x00000800) != 0); + } + /** + *
+     * 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; + } else { + progressBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + 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(); + } else { + progressBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + 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 (((bitField0_ & 0x00000800) != 0) && + progress_ != null && + progress_ != com.google.container.v1beta1.OperationProgress.getDefaultInstance()) { + getProgressBuilder().mergeFrom(value); + } else { + progress_ = value; + } + } else { + progressBuilder_.mergeFrom(value); + } + if (progress_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + 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() { + bitField0_ = (bitField0_ & ~0x00000800); + progress_ = null; + if (progressBuilder_ != null) { + progressBuilder_.dispose(); + progressBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000800; + 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_ & 0x00001000) != 0)) { + clusterConditions_ = new java.util.ArrayList(clusterConditions_); + bitField0_ |= 0x00001000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.StatusCondition, com.google.container.v1beta1.StatusCondition.Builder, com.google.container.v1beta1.StatusConditionOrBuilder> clusterConditionsBuilder_; + + /** + *
+     * Which conditions caused the current cluster state.
+     * 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_ & ~0x00001000); + 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_ & 0x00001000) != 0), + getParentForChildren(), + isClean()); + clusterConditions_ = null; + } + return clusterConditionsBuilder_; + } + + private java.util.List nodepoolConditions_ = + java.util.Collections.emptyList(); + private void ensureNodepoolConditionsIsMutable() { + if (!((bitField0_ & 0x00002000) != 0)) { + nodepoolConditions_ = new java.util.ArrayList(nodepoolConditions_); + bitField0_ |= 0x00002000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.StatusCondition, com.google.container.v1beta1.StatusCondition.Builder, com.google.container.v1beta1.StatusConditionOrBuilder> nodepoolConditionsBuilder_; + + /** + *
+     * Which conditions caused the current node pool state.
+     * 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_ & ~0x00002000); + 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_ & 0x00002000) != 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 ((bitField0_ & 0x00004000) != 0); + } + /** + *
+     * 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; + } else { + errorBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + 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(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + 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 (((bitField0_ & 0x00004000) != 0) && + error_ != null && + error_ != com.google.rpc.Status.getDefaultInstance()) { + getErrorBuilder().mergeFrom(value); + } else { + error_ = value; + } + } else { + errorBuilder_.mergeFrom(value); + } + if (error_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } + return this; + } + /** + *
+     * The error result of the operation in case of failure.
+     * 
+ * + * .google.rpc.Status error = 15; + */ + public Builder clearError() { + bitField0_ = (bitField0_ & ~0x00004000); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The error result of the operation in case of failure.
+     * 
+ * + * .google.rpc.Status error = 15; + */ + public com.google.rpc.Status.Builder getErrorBuilder() { + bitField0_ |= 0x00004000; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationOrBuilder.java new file mode 100644 index 000000000000..c5fbcae4f283 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationOrBuilder.java @@ -0,0 +1,436 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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]; + * @deprecated google.container.v1beta1.Operation.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2840 + * @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]; + * @deprecated google.container.v1beta1.Operation.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2840 + * @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]; + * @deprecated google.container.v1beta1.Operation.status_message is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2853 + * @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]; + * @deprecated google.container.v1beta1.Operation.status_message is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2853 + * @return The bytes for statusMessage. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getStatusMessageBytes(); + + /** + *
+   * Server-defined URI for the operation. Example:
+   * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
+   * 
+ * + * string self_link = 6; + * @return The selfLink. + */ + java.lang.String getSelfLink(); + /** + *
+   * Server-defined URI for the operation. Example:
+   * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.
+   * 
+ * + * string self_link = 6; + * @return The bytes for selfLink. + */ + com.google.protobuf.ByteString + getSelfLinkBytes(); + + /** + *
+   * Server-defined URI for the target of the operation. The format of this is a
+   * URI to the resource being modified (such as a cluster, node pool, or node).
+   * For node pool repairs, there may be multiple nodes being repaired, but only
+   * one will be the target.
+   *
+   * Examples:
+   *
+   * -
+   * ##
+   * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
+   *
+   * ##
+   * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
+   *
+   * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
+   * 
+ * + * string target_link = 7; + * @return The targetLink. + */ + java.lang.String getTargetLink(); + /** + *
+   * Server-defined URI for the target of the operation. The format of this is a
+   * URI to the resource being modified (such as a cluster, node pool, or node).
+   * For node pool repairs, there may be multiple nodes being repaired, but only
+   * one will be the target.
+   *
+   * Examples:
+   *
+   * -
+   * ##
+   * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`
+   *
+   * ##
+   * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`
+   *
+   * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`
+   * 
+ * + * 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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationProgress.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationProgress.java new file mode 100644 index 000000000000..163a3e34a9e5 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationProgress.java @@ -0,0 +1,2899 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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(); + + 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(); + } + + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + 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_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + 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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.OperationProgress.Metric result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + private void buildPartialOneofs(com.google.container.v1beta1.OperationProgress.Metric result) { + result.valueCase_ = valueCase_; + result.value_ = this.value_; + } + + @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_; + bitField0_ |= 0x00000001; + 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.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + value_ = input.readInt64(); + valueCase_ = 2; + break; + } // case 16 + case 25: { + value_ = input.readDouble(); + valueCase_ = 3; + break; + } // case 25 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + valueCase_ = 4; + value_ = s; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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 int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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; + @SuppressWarnings("serial") + 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_ = 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; + * @return The status. + */ + @java.lang.Override public com.google.container.v1beta1.Operation.Status getStatus() { + com.google.container.v1beta1.Operation.Status result = com.google.container.v1beta1.Operation.Status.forNumber(status_); + return result == null ? com.google.container.v1beta1.Operation.Status.UNRECOGNIZED : result; + } + + public static final int METRICS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + 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)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + 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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + status_ = 0; + if (metricsBuilder_ == null) { + metrics_ = java.util.Collections.emptyList(); + } else { + metrics_ = null; + metricsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (stagesBuilder_ == null) { + stages_ = java.util.Collections.emptyList(); + } else { + stages_ = null; + stagesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + 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); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1beta1.OperationProgress result) { + if (metricsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + metrics_ = java.util.Collections.unmodifiableList(metrics_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.metrics_ = metrics_; + } else { + result.metrics_ = metricsBuilder_.build(); + } + if (stagesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + stages_ = java.util.Collections.unmodifiableList(stages_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.stages_ = stages_; + } else { + result.stages_ = stagesBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1beta1.OperationProgress result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.status_ = status_; + } + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (metricsBuilder_ == null) { + if (!other.metrics_.isEmpty()) { + if (metrics_.isEmpty()) { + metrics_ = other.metrics_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureMetricsIsMutable(); + metrics_.addAll(other.metrics_); + } + onChanged(); + } + } else { + if (!other.metrics_.isEmpty()) { + if (metricsBuilder_.isEmpty()) { + metricsBuilder_.dispose(); + metricsBuilder_ = null; + metrics_ = other.metrics_; + bitField0_ = (bitField0_ & ~0x00000004); + metricsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMetricsFieldBuilder() : null; + } else { + metricsBuilder_.addAllMessages(other.metrics_); + } + } + } + if (stagesBuilder_ == null) { + if (!other.stages_.isEmpty()) { + if (stages_.isEmpty()) { + stages_ = other.stages_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureStagesIsMutable(); + stages_.addAll(other.stages_); + } + onChanged(); + } + } else { + if (!other.stages_.isEmpty()) { + if (stagesBuilder_.isEmpty()) { + stagesBuilder_.dispose(); + stagesBuilder_ = null; + stages_ = other.stages_; + bitField0_ = (bitField0_ & ~0x00000008); + stagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStagesFieldBuilder() : null; + } else { + stagesBuilder_.addAllMessages(other.stages_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + status_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + com.google.container.v1beta1.OperationProgress.Metric m = + input.readMessage( + com.google.container.v1beta1.OperationProgress.Metric.parser(), + extensionRegistry); + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(m); + } else { + metricsBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: { + com.google.container.v1beta1.OperationProgress m = + input.readMessage( + com.google.container.v1beta1.OperationProgress.parser(), + extensionRegistry); + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + stages_.add(m); + } else { + stagesBuilder_.addMessage(m); + } + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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; + bitField0_ |= 0x00000001; + 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(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + 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; + bitField0_ |= 0x00000002; + 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() { + com.google.container.v1beta1.Operation.Status result = com.google.container.v1beta1.Operation.Status.forNumber(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(); + } + bitField0_ |= 0x00000002; + 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() { + bitField0_ = (bitField0_ & ~0x00000002); + status_ = 0; + onChanged(); + return this; + } + + private java.util.List metrics_ = + java.util.Collections.emptyList(); + private void ensureMetricsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + metrics_ = new java.util.ArrayList(metrics_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.OperationProgress.Metric, com.google.container.v1beta1.OperationProgress.Metric.Builder, com.google.container.v1beta1.OperationProgress.MetricOrBuilder> metricsBuilder_; + + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public java.util.List getMetricsList() { + if (metricsBuilder_ == null) { + return java.util.Collections.unmodifiableList(metrics_); + } else { + return metricsBuilder_.getMessageList(); + } + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public int getMetricsCount() { + if (metricsBuilder_ == null) { + return metrics_.size(); + } else { + return metricsBuilder_.getCount(); + } + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1beta1.OperationProgress.Metric getMetrics(int index) { + if (metricsBuilder_ == null) { + return metrics_.get(index); + } else { + return metricsBuilder_.getMessage(index); + } + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public Builder setMetrics( + int index, com.google.container.v1beta1.OperationProgress.Metric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.set(index, value); + onChanged(); + } else { + metricsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public Builder setMetrics( + int index, com.google.container.v1beta1.OperationProgress.Metric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.set(index, builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public Builder addMetrics(com.google.container.v1beta1.OperationProgress.Metric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.add(value); + onChanged(); + } else { + metricsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public Builder addMetrics( + int index, com.google.container.v1beta1.OperationProgress.Metric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.add(index, value); + onChanged(); + } else { + metricsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public Builder addMetrics( + com.google.container.v1beta1.OperationProgress.Metric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public Builder addMetrics( + int index, com.google.container.v1beta1.OperationProgress.Metric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(index, builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public Builder addAllMetrics( + java.lang.Iterable values) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, metrics_); + onChanged(); + } else { + metricsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public Builder clearMetrics() { + if (metricsBuilder_ == null) { + metrics_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + metricsBuilder_.clear(); + } + return this; + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public Builder removeMetrics(int index) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.remove(index); + onChanged(); + } else { + metricsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1beta1.OperationProgress.Metric.Builder getMetricsBuilder( + int index) { + return getMetricsFieldBuilder().getBuilder(index); + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1beta1.OperationProgress.MetricOrBuilder getMetricsOrBuilder( + int index) { + if (metricsBuilder_ == null) { + return metrics_.get(index); } else { + return metricsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public java.util.List + getMetricsOrBuilderList() { + if (metricsBuilder_ != null) { + return metricsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(metrics_); + } + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1beta1.OperationProgress.Metric.Builder addMetricsBuilder() { + return getMetricsFieldBuilder().addBuilder( + com.google.container.v1beta1.OperationProgress.Metric.getDefaultInstance()); + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public com.google.container.v1beta1.OperationProgress.Metric.Builder addMetricsBuilder( + int index) { + return getMetricsFieldBuilder().addBuilder( + index, com.google.container.v1beta1.OperationProgress.Metric.getDefaultInstance()); + } + /** + *
+     * Progress metric bundle, for example:
+     *   metrics: [{name: "nodes done",     int_value: 15},
+     *             {name: "nodes total",    int_value: 32}]
+     * or
+     *   metrics: [{name: "progress",       double_value: 0.56},
+     *             {name: "progress scale", double_value: 1.0}]
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress.Metric metrics = 3; + */ + public java.util.List + getMetricsBuilderList() { + return getMetricsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.OperationProgress.Metric, com.google.container.v1beta1.OperationProgress.Metric.Builder, com.google.container.v1beta1.OperationProgress.MetricOrBuilder> + getMetricsFieldBuilder() { + if (metricsBuilder_ == null) { + metricsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.OperationProgress.Metric, com.google.container.v1beta1.OperationProgress.Metric.Builder, com.google.container.v1beta1.OperationProgress.MetricOrBuilder>( + metrics_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + metrics_ = null; + } + return metricsBuilder_; + } + + private java.util.List stages_ = + java.util.Collections.emptyList(); + private void ensureStagesIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + stages_ = new java.util.ArrayList(stages_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.OperationProgress, com.google.container.v1beta1.OperationProgress.Builder, com.google.container.v1beta1.OperationProgressOrBuilder> stagesBuilder_; + + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public java.util.List getStagesList() { + if (stagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(stages_); + } else { + return stagesBuilder_.getMessageList(); + } + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public int getStagesCount() { + if (stagesBuilder_ == null) { + return stages_.size(); + } else { + return stagesBuilder_.getCount(); + } + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public com.google.container.v1beta1.OperationProgress getStages(int index) { + if (stagesBuilder_ == null) { + return stages_.get(index); + } else { + return stagesBuilder_.getMessage(index); + } + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public Builder setStages( + int index, com.google.container.v1beta1.OperationProgress value) { + if (stagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStagesIsMutable(); + stages_.set(index, value); + onChanged(); + } else { + stagesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public Builder setStages( + int index, com.google.container.v1beta1.OperationProgress.Builder builderForValue) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + stages_.set(index, builderForValue.build()); + onChanged(); + } else { + stagesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public Builder addStages(com.google.container.v1beta1.OperationProgress value) { + if (stagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStagesIsMutable(); + stages_.add(value); + onChanged(); + } else { + stagesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public Builder addStages( + int index, com.google.container.v1beta1.OperationProgress value) { + if (stagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStagesIsMutable(); + stages_.add(index, value); + onChanged(); + } else { + stagesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public Builder addStages( + com.google.container.v1beta1.OperationProgress.Builder builderForValue) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + stages_.add(builderForValue.build()); + onChanged(); + } else { + stagesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public Builder addStages( + int index, com.google.container.v1beta1.OperationProgress.Builder builderForValue) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + stages_.add(index, builderForValue.build()); + onChanged(); + } else { + stagesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public Builder addAllStages( + java.lang.Iterable values) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, stages_); + onChanged(); + } else { + stagesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public Builder clearStages() { + if (stagesBuilder_ == null) { + stages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + stagesBuilder_.clear(); + } + return this; + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public Builder removeStages(int index) { + if (stagesBuilder_ == null) { + ensureStagesIsMutable(); + stages_.remove(index); + onChanged(); + } else { + stagesBuilder_.remove(index); + } + return this; + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public com.google.container.v1beta1.OperationProgress.Builder getStagesBuilder( + int index) { + return getStagesFieldBuilder().getBuilder(index); + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public com.google.container.v1beta1.OperationProgressOrBuilder getStagesOrBuilder( + int index) { + if (stagesBuilder_ == null) { + return stages_.get(index); } else { + return stagesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public java.util.List + getStagesOrBuilderList() { + if (stagesBuilder_ != null) { + return stagesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(stages_); + } + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public com.google.container.v1beta1.OperationProgress.Builder addStagesBuilder() { + return getStagesFieldBuilder().addBuilder( + com.google.container.v1beta1.OperationProgress.getDefaultInstance()); + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public com.google.container.v1beta1.OperationProgress.Builder addStagesBuilder( + int index) { + return getStagesFieldBuilder().addBuilder( + index, com.google.container.v1beta1.OperationProgress.getDefaultInstance()); + } + /** + *
+     * Substages of an operation or a stage.
+     * 
+ * + * repeated .google.container.v1beta1.OperationProgress stages = 4; + */ + public java.util.List + getStagesBuilderList() { + return getStagesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.OperationProgress, com.google.container.v1beta1.OperationProgress.Builder, com.google.container.v1beta1.OperationProgressOrBuilder> + getStagesFieldBuilder() { + if (stagesBuilder_ == null) { + stagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.OperationProgress, com.google.container.v1beta1.OperationProgress.Builder, com.google.container.v1beta1.OperationProgressOrBuilder>( + stages_, + ((bitField0_ & 0x00000008) != 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationProgressOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationProgressOrBuilder.java new file mode 100644 index 000000000000..391ef2ae5f6e --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationProgressOrBuilder.java @@ -0,0 +1,166 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PodCIDROverprovisionConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PodCIDROverprovisionConfig.java new file mode 100644 index 000000000000..f4cd41de760d --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PodCIDROverprovisionConfig.java @@ -0,0 +1,503 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * [PRIVATE FIELD]
+ * Config for pod CIDR size overprovisioning.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.PodCIDROverprovisionConfig} + */ +public final class PodCIDROverprovisionConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.PodCIDROverprovisionConfig) + PodCIDROverprovisionConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use PodCIDROverprovisionConfig.newBuilder() to construct. + private PodCIDROverprovisionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PodCIDROverprovisionConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PodCIDROverprovisionConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_PodCIDROverprovisionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_PodCIDROverprovisionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.PodCIDROverprovisionConfig.class, com.google.container.v1beta1.PodCIDROverprovisionConfig.Builder.class); + } + + public static final int DISABLE_FIELD_NUMBER = 1; + private boolean disable_ = false; + /** + *
+   * Whether Pod CIDR overprovisioning is disabled.
+   * Note: Pod CIDR overprovisioning is enabled by default.
+   * 
+ * + * bool disable = 1; + * @return The disable. + */ + @java.lang.Override + public boolean getDisable() { + return disable_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (disable_ != false) { + output.writeBool(1, disable_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (disable_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, disable_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.PodCIDROverprovisionConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.PodCIDROverprovisionConfig other = (com.google.container.v1beta1.PodCIDROverprovisionConfig) obj; + + if (getDisable() + != other.getDisable()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + DISABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisable()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.PodCIDROverprovisionConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.PodCIDROverprovisionConfig parseFrom( + 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.PodCIDROverprovisionConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.PodCIDROverprovisionConfig parseFrom( + com.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.PodCIDROverprovisionConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.PodCIDROverprovisionConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.PodCIDROverprovisionConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.PodCIDROverprovisionConfig parseFrom( + java.io.InputStream 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.PodCIDROverprovisionConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.PodCIDROverprovisionConfig parseDelimitedFrom( + java.io.InputStream 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.PodCIDROverprovisionConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.PodCIDROverprovisionConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.PodCIDROverprovisionConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * [PRIVATE FIELD]
+   * Config for pod CIDR size overprovisioning.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.PodCIDROverprovisionConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.PodCIDROverprovisionConfig) + com.google.container.v1beta1.PodCIDROverprovisionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_PodCIDROverprovisionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_PodCIDROverprovisionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.PodCIDROverprovisionConfig.class, com.google.container.v1beta1.PodCIDROverprovisionConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.PodCIDROverprovisionConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + disable_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_PodCIDROverprovisionConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.PodCIDROverprovisionConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.PodCIDROverprovisionConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.PodCIDROverprovisionConfig build() { + com.google.container.v1beta1.PodCIDROverprovisionConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.PodCIDROverprovisionConfig buildPartial() { + com.google.container.v1beta1.PodCIDROverprovisionConfig result = new com.google.container.v1beta1.PodCIDROverprovisionConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.PodCIDROverprovisionConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.disable_ = disable_; + } + } + + @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.PodCIDROverprovisionConfig) { + return mergeFrom((com.google.container.v1beta1.PodCIDROverprovisionConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.PodCIDROverprovisionConfig other) { + if (other == com.google.container.v1beta1.PodCIDROverprovisionConfig.getDefaultInstance()) return this; + if (other.getDisable() != false) { + setDisable(other.getDisable()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + disable_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean disable_ ; + /** + *
+     * Whether Pod CIDR overprovisioning is disabled.
+     * Note: Pod CIDR overprovisioning is enabled by default.
+     * 
+ * + * bool disable = 1; + * @return The disable. + */ + @java.lang.Override + public boolean getDisable() { + return disable_; + } + /** + *
+     * Whether Pod CIDR overprovisioning is disabled.
+     * Note: Pod CIDR overprovisioning is enabled by default.
+     * 
+ * + * bool disable = 1; + * @param value The disable to set. + * @return This builder for chaining. + */ + public Builder setDisable(boolean value) { + + disable_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether Pod CIDR overprovisioning is disabled.
+     * Note: Pod CIDR overprovisioning is enabled by default.
+     * 
+ * + * bool disable = 1; + * @return This builder for chaining. + */ + public Builder clearDisable() { + bitField0_ = (bitField0_ & ~0x00000001); + disable_ = 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.PodCIDROverprovisionConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.PodCIDROverprovisionConfig) + private static final com.google.container.v1beta1.PodCIDROverprovisionConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.PodCIDROverprovisionConfig(); + } + + public static com.google.container.v1beta1.PodCIDROverprovisionConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PodCIDROverprovisionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.PodCIDROverprovisionConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PodCIDROverprovisionConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PodCIDROverprovisionConfigOrBuilder.java new file mode 100644 index 000000000000..fb6b9309732e --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PodCIDROverprovisionConfigOrBuilder.java @@ -0,0 +1,21 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface PodCIDROverprovisionConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.PodCIDROverprovisionConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether Pod CIDR overprovisioning is disabled.
+   * Note: Pod CIDR overprovisioning is enabled by default.
+   * 
+ * + * bool disable = 1; + * @return The disable. + */ + boolean getDisable(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PodSecurityPolicyConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PodSecurityPolicyConfig.java new file mode 100644 index 000000000000..911cd8ac90cb --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PodSecurityPolicyConfig.java @@ -0,0 +1,501 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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_ = false; + /** + *
+   * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 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_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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.PodSecurityPolicyConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @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.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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() { + bitField0_ = (bitField0_ & ~0x00000001); + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PodSecurityPolicyConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PodSecurityPolicyConfigOrBuilder.java new file mode 100644 index 000000000000..8bcf1c11d414 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PodSecurityPolicyConfigOrBuilder.java @@ -0,0 +1,21 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterConfig.java new file mode 100644 index 000000000000..d27deec7a23d --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterConfig.java @@ -0,0 +1,1677 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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_ = ""; + privateEndpointSubnetwork_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PrivateClusterConfig(); + } + + 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); + } + + private int bitField0_; + public static final int ENABLE_PRIVATE_NODES_FIELD_NUMBER = 1; + private boolean enablePrivateNodes_ = false; + /** + *
+   * 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_ = false; + /** + *
+   * 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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 ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * 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 masterGlobalAccessConfig_ == null ? com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance() : masterGlobalAccessConfig_; + } + + public static final int PRIVATE_ENDPOINT_SUBNETWORK_FIELD_NUMBER = 10; + @SuppressWarnings("serial") + private volatile java.lang.Object privateEndpointSubnetwork_ = ""; + /** + *
+   * Subnet to provision the master's private endpoint during cluster creation.
+   * Specified in projects/*/regions/*/subnetworks/* format.
+   * 
+ * + * string private_endpoint_subnetwork = 10; + * @return The privateEndpointSubnetwork. + */ + @java.lang.Override + public java.lang.String getPrivateEndpointSubnetwork() { + java.lang.Object ref = privateEndpointSubnetwork_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateEndpointSubnetwork_ = s; + return s; + } + } + /** + *
+   * Subnet to provision the master's private endpoint during cluster creation.
+   * Specified in projects/*/regions/*/subnetworks/* format.
+   * 
+ * + * string private_endpoint_subnetwork = 10; + * @return The bytes for privateEndpointSubnetwork. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPrivateEndpointSubnetworkBytes() { + java.lang.Object ref = privateEndpointSubnetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + privateEndpointSubnetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (enablePrivateNodes_ != false) { + output.writeBool(1, enablePrivateNodes_); + } + if (enablePrivateEndpoint_ != false) { + output.writeBool(2, enablePrivateEndpoint_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(masterIpv4CidrBlock_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, masterIpv4CidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateEndpoint_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, privateEndpoint_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicEndpoint_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, publicEndpoint_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(peeringName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, peeringName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(8, getMasterGlobalAccessConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateEndpointSubnetwork_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, privateEndpointSubnetwork_); + } + getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(masterIpv4CidrBlock_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, masterIpv4CidrBlock_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateEndpoint_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, privateEndpoint_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicEndpoint_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, publicEndpoint_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(peeringName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, peeringName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getMasterGlobalAccessConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateEndpointSubnetwork_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, privateEndpointSubnetwork_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getPrivateEndpointSubnetwork() + .equals(other.getPrivateEndpointSubnetwork())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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 = (37 * hash) + PRIVATE_ENDPOINT_SUBNETWORK_FIELD_NUMBER; + hash = (53 * hash) + getPrivateEndpointSubnetwork().hashCode(); + hash = (29 * hash) + getUnknownFields().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) { + getMasterGlobalAccessConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enablePrivateNodes_ = false; + enablePrivateEndpoint_ = false; + masterIpv4CidrBlock_ = ""; + privateEndpoint_ = ""; + publicEndpoint_ = ""; + peeringName_ = ""; + masterGlobalAccessConfig_ = null; + if (masterGlobalAccessConfigBuilder_ != null) { + masterGlobalAccessConfigBuilder_.dispose(); + masterGlobalAccessConfigBuilder_ = null; + } + privateEndpointSubnetwork_ = ""; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.PrivateClusterConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enablePrivateNodes_ = enablePrivateNodes_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.enablePrivateEndpoint_ = enablePrivateEndpoint_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.masterIpv4CidrBlock_ = masterIpv4CidrBlock_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.privateEndpoint_ = privateEndpoint_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.publicEndpoint_ = publicEndpoint_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.peeringName_ = peeringName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000040) != 0)) { + result.masterGlobalAccessConfig_ = masterGlobalAccessConfigBuilder_ == null + ? masterGlobalAccessConfig_ + : masterGlobalAccessConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.privateEndpointSubnetwork_ = privateEndpointSubnetwork_; + } + result.bitField0_ |= to_bitField0_; + } + + @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_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getPrivateEndpoint().isEmpty()) { + privateEndpoint_ = other.privateEndpoint_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getPublicEndpoint().isEmpty()) { + publicEndpoint_ = other.publicEndpoint_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getPeeringName().isEmpty()) { + peeringName_ = other.peeringName_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasMasterGlobalAccessConfig()) { + mergeMasterGlobalAccessConfig(other.getMasterGlobalAccessConfig()); + } + if (!other.getPrivateEndpointSubnetwork().isEmpty()) { + privateEndpointSubnetwork_ = other.privateEndpointSubnetwork_; + bitField0_ |= 0x00000080; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enablePrivateNodes_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + enablePrivateEndpoint_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + masterIpv4CidrBlock_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + privateEndpoint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + publicEndpoint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 58: { + peeringName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: { + input.readMessage( + getMasterGlobalAccessConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 82: { + privateEndpointSubnetwork_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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() { + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000002; + 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() { + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000004; + 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(); + bitField0_ = (bitField0_ & ~0x00000004); + 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; + bitField0_ |= 0x00000004; + 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; + bitField0_ |= 0x00000008; + 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(); + bitField0_ = (bitField0_ & ~0x00000008); + 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; + bitField0_ |= 0x00000008; + 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; + bitField0_ |= 0x00000010; + 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(); + bitField0_ = (bitField0_ & ~0x00000010); + 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; + bitField0_ |= 0x00000010; + 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; + bitField0_ |= 0x00000020; + 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(); + bitField0_ = (bitField0_ & ~0x00000020); + 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; + bitField0_ |= 0x00000020; + 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 ((bitField0_ & 0x00000040) != 0); + } + /** + *
+     * 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; + } else { + masterGlobalAccessConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + 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(); + } else { + masterGlobalAccessConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + 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 (((bitField0_ & 0x00000040) != 0) && + masterGlobalAccessConfig_ != null && + masterGlobalAccessConfig_ != com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance()) { + getMasterGlobalAccessConfigBuilder().mergeFrom(value); + } else { + masterGlobalAccessConfig_ = value; + } + } else { + masterGlobalAccessConfigBuilder_.mergeFrom(value); + } + if (masterGlobalAccessConfig_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + *
+     * Controls master global access settings.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + */ + public Builder clearMasterGlobalAccessConfig() { + bitField0_ = (bitField0_ & ~0x00000040); + masterGlobalAccessConfig_ = null; + if (masterGlobalAccessConfigBuilder_ != null) { + masterGlobalAccessConfigBuilder_.dispose(); + masterGlobalAccessConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Controls master global access settings.
+     * 
+ * + * .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + */ + public com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig.Builder getMasterGlobalAccessConfigBuilder() { + bitField0_ |= 0x00000040; + 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_; + } + + private java.lang.Object privateEndpointSubnetwork_ = ""; + /** + *
+     * Subnet to provision the master's private endpoint during cluster creation.
+     * Specified in projects/*/regions/*/subnetworks/* format.
+     * 
+ * + * string private_endpoint_subnetwork = 10; + * @return The privateEndpointSubnetwork. + */ + public java.lang.String getPrivateEndpointSubnetwork() { + java.lang.Object ref = privateEndpointSubnetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + privateEndpointSubnetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Subnet to provision the master's private endpoint during cluster creation.
+     * Specified in projects/*/regions/*/subnetworks/* format.
+     * 
+ * + * string private_endpoint_subnetwork = 10; + * @return The bytes for privateEndpointSubnetwork. + */ + public com.google.protobuf.ByteString + getPrivateEndpointSubnetworkBytes() { + java.lang.Object ref = privateEndpointSubnetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + privateEndpointSubnetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Subnet to provision the master's private endpoint during cluster creation.
+     * Specified in projects/*/regions/*/subnetworks/* format.
+     * 
+ * + * string private_endpoint_subnetwork = 10; + * @param value The privateEndpointSubnetwork to set. + * @return This builder for chaining. + */ + public Builder setPrivateEndpointSubnetwork( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + privateEndpointSubnetwork_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * Subnet to provision the master's private endpoint during cluster creation.
+     * Specified in projects/*/regions/*/subnetworks/* format.
+     * 
+ * + * string private_endpoint_subnetwork = 10; + * @return This builder for chaining. + */ + public Builder clearPrivateEndpointSubnetwork() { + privateEndpointSubnetwork_ = getDefaultInstance().getPrivateEndpointSubnetwork(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + *
+     * Subnet to provision the master's private endpoint during cluster creation.
+     * Specified in projects/*/regions/*/subnetworks/* format.
+     * 
+ * + * string private_endpoint_subnetwork = 10; + * @param value The bytes for privateEndpointSubnetwork to set. + * @return This builder for chaining. + */ + public Builder setPrivateEndpointSubnetworkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + privateEndpointSubnetwork_ = value; + bitField0_ |= 0x00000080; + 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.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterConfigOrBuilder.java new file mode 100644 index 000000000000..6f903337c267 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterConfigOrBuilder.java @@ -0,0 +1,167 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + + /** + *
+   * Subnet to provision the master's private endpoint during cluster creation.
+   * Specified in projects/*/regions/*/subnetworks/* format.
+   * 
+ * + * string private_endpoint_subnetwork = 10; + * @return The privateEndpointSubnetwork. + */ + java.lang.String getPrivateEndpointSubnetwork(); + /** + *
+   * Subnet to provision the master's private endpoint during cluster creation.
+   * Specified in projects/*/regions/*/subnetworks/* format.
+   * 
+ * + * string private_endpoint_subnetwork = 10; + * @return The bytes for privateEndpointSubnetwork. + */ + com.google.protobuf.ByteString + getPrivateEndpointSubnetworkBytes(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterMasterGlobalAccessConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterMasterGlobalAccessConfig.java new file mode 100644 index 000000000000..4b75f9ed3353 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterMasterGlobalAccessConfig.java @@ -0,0 +1,497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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_ = false; + /** + *
+   * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 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_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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @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.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whenever master is accessible globally or not.
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterMasterGlobalAccessConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterMasterGlobalAccessConfigOrBuilder.java new file mode 100644 index 000000000000..fd982ae37aab --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateClusterMasterGlobalAccessConfigOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateIPv6GoogleAccess.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateIPv6GoogleAccess.java new file mode 100644 index 000000000000..1484b935c147 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/PrivateIPv6GoogleAccess.java @@ -0,0 +1,169 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * PrivateIPv6GoogleAccess controls whether and how the pods can communicate
+ * with Google Services through gRPC over IPv6.
+ * 
+ * + * Protobuf enum {@code google.container.v1beta1.PrivateIPv6GoogleAccess} + */ +public enum PrivateIPv6GoogleAccess + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+   * Default value. Same as DISABLED
+   * 
+ * + * PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0; + */ + PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED(0), + /** + *
+   * No private access to or from Google Services
+   * 
+ * + * PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED = 1; + */ + PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED(1), + /** + *
+   * Enables private IPv6 access to Google Services from GKE
+   * 
+ * + * PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE = 2; + */ + PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE(2), + /** + *
+   * Enables private IPv6 access to and from Google Services
+   * 
+ * + * PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL = 3; + */ + PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL(3), + UNRECOGNIZED(-1), + ; + + /** + *
+   * Default value. Same as DISABLED
+   * 
+ * + * PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0; + */ + public static final int PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED_VALUE = 0; + /** + *
+   * No private access to or from Google Services
+   * 
+ * + * PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED = 1; + */ + public static final int PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED_VALUE = 1; + /** + *
+   * Enables private IPv6 access to Google Services from GKE
+   * 
+ * + * PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE = 2; + */ + public static final int PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE_VALUE = 2; + /** + *
+   * Enables private IPv6 access to and from Google Services
+   * 
+ * + * PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL = 3; + */ + public static final int PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PrivateIPv6GoogleAccess valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static PrivateIPv6GoogleAccess forNumber(int value) { + switch (value) { + case 0: return PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED; + case 1: return PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED; + case 2: return PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE; + case 3: return PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + PrivateIPv6GoogleAccess> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PrivateIPv6GoogleAccess findValueByNumber(int number) { + return PrivateIPv6GoogleAccess.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.getDescriptor().getEnumTypes().get(0); + } + + private static final PrivateIPv6GoogleAccess[] VALUES = values(); + + public static PrivateIPv6GoogleAccess valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private PrivateIPv6GoogleAccess(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.PrivateIPv6GoogleAccess) +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ProtectConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ProtectConfig.java new file mode 100644 index 000000000000..a65cb632a950 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ProtectConfig.java @@ -0,0 +1,964 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * ProtectConfig defines the flags needed to enable/disable features for the
+ * Protect API.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ProtectConfig} + */ +public final class ProtectConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ProtectConfig) + ProtectConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use ProtectConfig.newBuilder() to construct. + private ProtectConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProtectConfig() { + workloadVulnerabilityMode_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ProtectConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ProtectConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ProtectConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ProtectConfig.class, com.google.container.v1beta1.ProtectConfig.Builder.class); + } + + /** + *
+   * WorkloadVulnerabilityMode defines mode to perform vulnerability scanning.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode} + */ + public enum WorkloadVulnerabilityMode + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Default value not specified.
+     * 
+ * + * WORKLOAD_VULNERABILITY_MODE_UNSPECIFIED = 0; + */ + WORKLOAD_VULNERABILITY_MODE_UNSPECIFIED(0), + /** + *
+     * Disables Workload Vulnerability Scanning feature on the cluster.
+     * 
+ * + * DISABLED = 1; + */ + DISABLED(1), + /** + *
+     * Applies basic vulnerability scanning settings for cluster workloads.
+     * 
+ * + * BASIC = 2; + */ + BASIC(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Default value not specified.
+     * 
+ * + * WORKLOAD_VULNERABILITY_MODE_UNSPECIFIED = 0; + */ + public static final int WORKLOAD_VULNERABILITY_MODE_UNSPECIFIED_VALUE = 0; + /** + *
+     * Disables Workload Vulnerability Scanning feature on the cluster.
+     * 
+ * + * DISABLED = 1; + */ + public static final int DISABLED_VALUE = 1; + /** + *
+     * Applies basic vulnerability scanning settings for cluster workloads.
+     * 
+ * + * BASIC = 2; + */ + public static final int BASIC_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 WorkloadVulnerabilityMode 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 WorkloadVulnerabilityMode forNumber(int value) { + switch (value) { + case 0: return WORKLOAD_VULNERABILITY_MODE_UNSPECIFIED; + case 1: return DISABLED; + case 2: return BASIC; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + WorkloadVulnerabilityMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public WorkloadVulnerabilityMode findValueByNumber(int number) { + return WorkloadVulnerabilityMode.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.ProtectConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final WorkloadVulnerabilityMode[] VALUES = values(); + + public static WorkloadVulnerabilityMode 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 WorkloadVulnerabilityMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode) + } + + private int bitField0_; + public static final int WORKLOAD_CONFIG_FIELD_NUMBER = 1; + private com.google.container.v1beta1.WorkloadConfig workloadConfig_; + /** + *
+   * WorkloadConfig defines which actions are enabled for a cluster's workload
+   * configurations.
+   * 
+ * + * optional .google.container.v1beta1.WorkloadConfig workload_config = 1; + * @return Whether the workloadConfig field is set. + */ + @java.lang.Override + public boolean hasWorkloadConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * WorkloadConfig defines which actions are enabled for a cluster's workload
+   * configurations.
+   * 
+ * + * optional .google.container.v1beta1.WorkloadConfig workload_config = 1; + * @return The workloadConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.WorkloadConfig getWorkloadConfig() { + return workloadConfig_ == null ? com.google.container.v1beta1.WorkloadConfig.getDefaultInstance() : workloadConfig_; + } + /** + *
+   * WorkloadConfig defines which actions are enabled for a cluster's workload
+   * configurations.
+   * 
+ * + * optional .google.container.v1beta1.WorkloadConfig workload_config = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.WorkloadConfigOrBuilder getWorkloadConfigOrBuilder() { + return workloadConfig_ == null ? com.google.container.v1beta1.WorkloadConfig.getDefaultInstance() : workloadConfig_; + } + + public static final int WORKLOAD_VULNERABILITY_MODE_FIELD_NUMBER = 2; + private int workloadVulnerabilityMode_ = 0; + /** + *
+   * Sets which mode to use for Protect workload vulnerability scanning feature.
+   * 
+ * + * optional .google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode workload_vulnerability_mode = 2; + * @return Whether the workloadVulnerabilityMode field is set. + */ + @java.lang.Override public boolean hasWorkloadVulnerabilityMode() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * Sets which mode to use for Protect workload vulnerability scanning feature.
+   * 
+ * + * optional .google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode workload_vulnerability_mode = 2; + * @return The enum numeric value on the wire for workloadVulnerabilityMode. + */ + @java.lang.Override public int getWorkloadVulnerabilityModeValue() { + return workloadVulnerabilityMode_; + } + /** + *
+   * Sets which mode to use for Protect workload vulnerability scanning feature.
+   * 
+ * + * optional .google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode workload_vulnerability_mode = 2; + * @return The workloadVulnerabilityMode. + */ + @java.lang.Override public com.google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode getWorkloadVulnerabilityMode() { + com.google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode result = com.google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode.forNumber(workloadVulnerabilityMode_); + return result == null ? com.google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode.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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getWorkloadConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(2, workloadVulnerabilityMode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWorkloadConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, workloadVulnerabilityMode_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.ProtectConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.ProtectConfig other = (com.google.container.v1beta1.ProtectConfig) obj; + + if (hasWorkloadConfig() != other.hasWorkloadConfig()) return false; + if (hasWorkloadConfig()) { + if (!getWorkloadConfig() + .equals(other.getWorkloadConfig())) return false; + } + if (hasWorkloadVulnerabilityMode() != other.hasWorkloadVulnerabilityMode()) return false; + if (hasWorkloadVulnerabilityMode()) { + if (workloadVulnerabilityMode_ != other.workloadVulnerabilityMode_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasWorkloadConfig()) { + hash = (37 * hash) + WORKLOAD_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getWorkloadConfig().hashCode(); + } + if (hasWorkloadVulnerabilityMode()) { + hash = (37 * hash) + WORKLOAD_VULNERABILITY_MODE_FIELD_NUMBER; + hash = (53 * hash) + workloadVulnerabilityMode_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ProtectConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ProtectConfig parseFrom( + 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.ProtectConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ProtectConfig parseFrom( + com.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.ProtectConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ProtectConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ProtectConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ProtectConfig parseFrom( + java.io.InputStream 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.ProtectConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ProtectConfig parseDelimitedFrom( + java.io.InputStream 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.ProtectConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ProtectConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.ProtectConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ProtectConfig defines the flags needed to enable/disable features for the
+   * Protect API.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ProtectConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ProtectConfig) + com.google.container.v1beta1.ProtectConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ProtectConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ProtectConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ProtectConfig.class, com.google.container.v1beta1.ProtectConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.ProtectConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getWorkloadConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workloadConfig_ = null; + if (workloadConfigBuilder_ != null) { + workloadConfigBuilder_.dispose(); + workloadConfigBuilder_ = null; + } + workloadVulnerabilityMode_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ProtectConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ProtectConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.ProtectConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ProtectConfig build() { + com.google.container.v1beta1.ProtectConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ProtectConfig buildPartial() { + com.google.container.v1beta1.ProtectConfig result = new com.google.container.v1beta1.ProtectConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.ProtectConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workloadConfig_ = workloadConfigBuilder_ == null + ? workloadConfig_ + : workloadConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.workloadVulnerabilityMode_ = workloadVulnerabilityMode_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @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.ProtectConfig) { + return mergeFrom((com.google.container.v1beta1.ProtectConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ProtectConfig other) { + if (other == com.google.container.v1beta1.ProtectConfig.getDefaultInstance()) return this; + if (other.hasWorkloadConfig()) { + mergeWorkloadConfig(other.getWorkloadConfig()); + } + if (other.hasWorkloadVulnerabilityMode()) { + setWorkloadVulnerabilityMode(other.getWorkloadVulnerabilityMode()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getWorkloadConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + workloadVulnerabilityMode_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.container.v1beta1.WorkloadConfig workloadConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadConfig, com.google.container.v1beta1.WorkloadConfig.Builder, com.google.container.v1beta1.WorkloadConfigOrBuilder> workloadConfigBuilder_; + /** + *
+     * WorkloadConfig defines which actions are enabled for a cluster's workload
+     * configurations.
+     * 
+ * + * optional .google.container.v1beta1.WorkloadConfig workload_config = 1; + * @return Whether the workloadConfig field is set. + */ + public boolean hasWorkloadConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * WorkloadConfig defines which actions are enabled for a cluster's workload
+     * configurations.
+     * 
+ * + * optional .google.container.v1beta1.WorkloadConfig workload_config = 1; + * @return The workloadConfig. + */ + public com.google.container.v1beta1.WorkloadConfig getWorkloadConfig() { + if (workloadConfigBuilder_ == null) { + return workloadConfig_ == null ? com.google.container.v1beta1.WorkloadConfig.getDefaultInstance() : workloadConfig_; + } else { + return workloadConfigBuilder_.getMessage(); + } + } + /** + *
+     * WorkloadConfig defines which actions are enabled for a cluster's workload
+     * configurations.
+     * 
+ * + * optional .google.container.v1beta1.WorkloadConfig workload_config = 1; + */ + public Builder setWorkloadConfig(com.google.container.v1beta1.WorkloadConfig value) { + if (workloadConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workloadConfig_ = value; + } else { + workloadConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * WorkloadConfig defines which actions are enabled for a cluster's workload
+     * configurations.
+     * 
+ * + * optional .google.container.v1beta1.WorkloadConfig workload_config = 1; + */ + public Builder setWorkloadConfig( + com.google.container.v1beta1.WorkloadConfig.Builder builderForValue) { + if (workloadConfigBuilder_ == null) { + workloadConfig_ = builderForValue.build(); + } else { + workloadConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * WorkloadConfig defines which actions are enabled for a cluster's workload
+     * configurations.
+     * 
+ * + * optional .google.container.v1beta1.WorkloadConfig workload_config = 1; + */ + public Builder mergeWorkloadConfig(com.google.container.v1beta1.WorkloadConfig value) { + if (workloadConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + workloadConfig_ != null && + workloadConfig_ != com.google.container.v1beta1.WorkloadConfig.getDefaultInstance()) { + getWorkloadConfigBuilder().mergeFrom(value); + } else { + workloadConfig_ = value; + } + } else { + workloadConfigBuilder_.mergeFrom(value); + } + if (workloadConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+     * WorkloadConfig defines which actions are enabled for a cluster's workload
+     * configurations.
+     * 
+ * + * optional .google.container.v1beta1.WorkloadConfig workload_config = 1; + */ + public Builder clearWorkloadConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + workloadConfig_ = null; + if (workloadConfigBuilder_ != null) { + workloadConfigBuilder_.dispose(); + workloadConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * WorkloadConfig defines which actions are enabled for a cluster's workload
+     * configurations.
+     * 
+ * + * optional .google.container.v1beta1.WorkloadConfig workload_config = 1; + */ + public com.google.container.v1beta1.WorkloadConfig.Builder getWorkloadConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getWorkloadConfigFieldBuilder().getBuilder(); + } + /** + *
+     * WorkloadConfig defines which actions are enabled for a cluster's workload
+     * configurations.
+     * 
+ * + * optional .google.container.v1beta1.WorkloadConfig workload_config = 1; + */ + public com.google.container.v1beta1.WorkloadConfigOrBuilder getWorkloadConfigOrBuilder() { + if (workloadConfigBuilder_ != null) { + return workloadConfigBuilder_.getMessageOrBuilder(); + } else { + return workloadConfig_ == null ? + com.google.container.v1beta1.WorkloadConfig.getDefaultInstance() : workloadConfig_; + } + } + /** + *
+     * WorkloadConfig defines which actions are enabled for a cluster's workload
+     * configurations.
+     * 
+ * + * optional .google.container.v1beta1.WorkloadConfig workload_config = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadConfig, com.google.container.v1beta1.WorkloadConfig.Builder, com.google.container.v1beta1.WorkloadConfigOrBuilder> + getWorkloadConfigFieldBuilder() { + if (workloadConfigBuilder_ == null) { + workloadConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WorkloadConfig, com.google.container.v1beta1.WorkloadConfig.Builder, com.google.container.v1beta1.WorkloadConfigOrBuilder>( + getWorkloadConfig(), + getParentForChildren(), + isClean()); + workloadConfig_ = null; + } + return workloadConfigBuilder_; + } + + private int workloadVulnerabilityMode_ = 0; + /** + *
+     * Sets which mode to use for Protect workload vulnerability scanning feature.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode workload_vulnerability_mode = 2; + * @return Whether the workloadVulnerabilityMode field is set. + */ + @java.lang.Override public boolean hasWorkloadVulnerabilityMode() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Sets which mode to use for Protect workload vulnerability scanning feature.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode workload_vulnerability_mode = 2; + * @return The enum numeric value on the wire for workloadVulnerabilityMode. + */ + @java.lang.Override public int getWorkloadVulnerabilityModeValue() { + return workloadVulnerabilityMode_; + } + /** + *
+     * Sets which mode to use for Protect workload vulnerability scanning feature.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode workload_vulnerability_mode = 2; + * @param value The enum numeric value on the wire for workloadVulnerabilityMode to set. + * @return This builder for chaining. + */ + public Builder setWorkloadVulnerabilityModeValue(int value) { + workloadVulnerabilityMode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Sets which mode to use for Protect workload vulnerability scanning feature.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode workload_vulnerability_mode = 2; + * @return The workloadVulnerabilityMode. + */ + @java.lang.Override + public com.google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode getWorkloadVulnerabilityMode() { + com.google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode result = com.google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode.forNumber(workloadVulnerabilityMode_); + return result == null ? com.google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode.UNRECOGNIZED : result; + } + /** + *
+     * Sets which mode to use for Protect workload vulnerability scanning feature.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode workload_vulnerability_mode = 2; + * @param value The workloadVulnerabilityMode to set. + * @return This builder for chaining. + */ + public Builder setWorkloadVulnerabilityMode(com.google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + workloadVulnerabilityMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Sets which mode to use for Protect workload vulnerability scanning feature.
+     * 
+ * + * optional .google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode workload_vulnerability_mode = 2; + * @return This builder for chaining. + */ + public Builder clearWorkloadVulnerabilityMode() { + bitField0_ = (bitField0_ & ~0x00000002); + workloadVulnerabilityMode_ = 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.ProtectConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ProtectConfig) + private static final com.google.container.v1beta1.ProtectConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ProtectConfig(); + } + + public static com.google.container.v1beta1.ProtectConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProtectConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.ProtectConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ProtectConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ProtectConfigOrBuilder.java new file mode 100644 index 000000000000..740303ec0722 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ProtectConfigOrBuilder.java @@ -0,0 +1,68 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface ProtectConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ProtectConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * WorkloadConfig defines which actions are enabled for a cluster's workload
+   * configurations.
+   * 
+ * + * optional .google.container.v1beta1.WorkloadConfig workload_config = 1; + * @return Whether the workloadConfig field is set. + */ + boolean hasWorkloadConfig(); + /** + *
+   * WorkloadConfig defines which actions are enabled for a cluster's workload
+   * configurations.
+   * 
+ * + * optional .google.container.v1beta1.WorkloadConfig workload_config = 1; + * @return The workloadConfig. + */ + com.google.container.v1beta1.WorkloadConfig getWorkloadConfig(); + /** + *
+   * WorkloadConfig defines which actions are enabled for a cluster's workload
+   * configurations.
+   * 
+ * + * optional .google.container.v1beta1.WorkloadConfig workload_config = 1; + */ + com.google.container.v1beta1.WorkloadConfigOrBuilder getWorkloadConfigOrBuilder(); + + /** + *
+   * Sets which mode to use for Protect workload vulnerability scanning feature.
+   * 
+ * + * optional .google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode workload_vulnerability_mode = 2; + * @return Whether the workloadVulnerabilityMode field is set. + */ + boolean hasWorkloadVulnerabilityMode(); + /** + *
+   * Sets which mode to use for Protect workload vulnerability scanning feature.
+   * 
+ * + * optional .google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode workload_vulnerability_mode = 2; + * @return The enum numeric value on the wire for workloadVulnerabilityMode. + */ + int getWorkloadVulnerabilityModeValue(); + /** + *
+   * Sets which mode to use for Protect workload vulnerability scanning feature.
+   * 
+ * + * optional .google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode workload_vulnerability_mode = 2; + * @return The workloadVulnerabilityMode. + */ + com.google.container.v1beta1.ProtectConfig.WorkloadVulnerabilityMode getWorkloadVulnerabilityMode(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RangeInfo.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RangeInfo.java new file mode 100644 index 000000000000..553e8cacd71d --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RangeInfo.java @@ -0,0 +1,662 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * RangeInfo contains the range name and the range utilization by this cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.RangeInfo} + */ +public final class RangeInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.RangeInfo) + RangeInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use RangeInfo.newBuilder() to construct. + private RangeInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RangeInfo() { + rangeName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RangeInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_RangeInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_RangeInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.RangeInfo.class, com.google.container.v1beta1.RangeInfo.Builder.class); + } + + public static final int RANGE_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object rangeName_ = ""; + /** + *
+   * Output only. [Output only] Name of a range.
+   * 
+ * + * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @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; + } + } + /** + *
+   * Output only. [Output only] Name of a range.
+   * 
+ * + * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @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 UTILIZATION_FIELD_NUMBER = 2; + private double utilization_ = 0D; + /** + *
+   * Output only. [Output only] The utilization of the range.
+   * 
+ * + * double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The utilization. + */ + @java.lang.Override + public double getUtilization() { + return utilization_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rangeName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, rangeName_); + } + if (java.lang.Double.doubleToRawLongBits(utilization_) != 0) { + output.writeDouble(2, utilization_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rangeName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, rangeName_); + } + if (java.lang.Double.doubleToRawLongBits(utilization_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, utilization_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.RangeInfo)) { + return super.equals(obj); + } + com.google.container.v1beta1.RangeInfo other = (com.google.container.v1beta1.RangeInfo) obj; + + if (!getRangeName() + .equals(other.getRangeName())) return false; + if (java.lang.Double.doubleToLongBits(getUtilization()) + != java.lang.Double.doubleToLongBits( + other.getUtilization())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + UTILIZATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getUtilization())); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.RangeInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.RangeInfo parseFrom( + 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.RangeInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.RangeInfo parseFrom( + com.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.RangeInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.RangeInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.RangeInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.RangeInfo parseFrom( + java.io.InputStream 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.RangeInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.RangeInfo parseDelimitedFrom( + java.io.InputStream 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.RangeInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.RangeInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.RangeInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * RangeInfo contains the range name and the range utilization by this cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.RangeInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.RangeInfo) + com.google.container.v1beta1.RangeInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_RangeInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_RangeInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.RangeInfo.class, com.google.container.v1beta1.RangeInfo.Builder.class); + } + + // Construct using com.google.container.v1beta1.RangeInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + rangeName_ = ""; + utilization_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_RangeInfo_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.RangeInfo getDefaultInstanceForType() { + return com.google.container.v1beta1.RangeInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.RangeInfo build() { + com.google.container.v1beta1.RangeInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.RangeInfo buildPartial() { + com.google.container.v1beta1.RangeInfo result = new com.google.container.v1beta1.RangeInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.RangeInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.rangeName_ = rangeName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.utilization_ = utilization_; + } + } + + @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.RangeInfo) { + return mergeFrom((com.google.container.v1beta1.RangeInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.RangeInfo other) { + if (other == com.google.container.v1beta1.RangeInfo.getDefaultInstance()) return this; + if (!other.getRangeName().isEmpty()) { + rangeName_ = other.rangeName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getUtilization() != 0D) { + setUtilization(other.getUtilization()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + rangeName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 17: { + utilization_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object rangeName_ = ""; + /** + *
+     * Output only. [Output only] Name of a range.
+     * 
+ * + * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @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; + } + } + /** + *
+     * Output only. [Output only] Name of a range.
+     * 
+ * + * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @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; + } + } + /** + *
+     * Output only. [Output only] Name of a range.
+     * 
+ * + * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Output only. [Output only] Name of a range.
+     * 
+ * + * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearRangeName() { + rangeName_ = getDefaultInstance().getRangeName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Output only. [Output only] Name of a range.
+     * 
+ * + * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private double utilization_ ; + /** + *
+     * Output only. [Output only] The utilization of the range.
+     * 
+ * + * double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The utilization. + */ + @java.lang.Override + public double getUtilization() { + return utilization_; + } + /** + *
+     * Output only. [Output only] The utilization of the range.
+     * 
+ * + * double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The utilization to set. + * @return This builder for chaining. + */ + public Builder setUtilization(double value) { + + utilization_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Output only. [Output only] The utilization of the range.
+     * 
+ * + * double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearUtilization() { + bitField0_ = (bitField0_ & ~0x00000002); + utilization_ = 0D; + 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.RangeInfo) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.RangeInfo) + private static final com.google.container.v1beta1.RangeInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.RangeInfo(); + } + + public static com.google.container.v1beta1.RangeInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RangeInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.RangeInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RangeInfoOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RangeInfoOrBuilder.java new file mode 100644 index 000000000000..01d3fed3f742 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RangeInfoOrBuilder.java @@ -0,0 +1,40 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface RangeInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.RangeInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Output only. [Output only] Name of a range.
+   * 
+ * + * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The rangeName. + */ + java.lang.String getRangeName(); + /** + *
+   * Output only. [Output only] Name of a range.
+   * 
+ * + * string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for rangeName. + */ + com.google.protobuf.ByteString + getRangeNameBytes(); + + /** + *
+   * Output only. [Output only] The utilization of the range.
+   * 
+ * + * double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The utilization. + */ + double getUtilization(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RecurringTimeWindow.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RecurringTimeWindow.java new file mode 100644 index 000000000000..2a2adcb15d5c --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RecurringTimeWindow.java @@ -0,0 +1,1036 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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); + } + + private int bitField0_; + 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 ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * 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 window_ == null ? com.google.container.v1beta1.TimeWindow.getDefaultInstance() : window_; + } + + public static final int RECURRENCE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getWindow()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recurrence_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, recurrence_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWindow()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recurrence_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, recurrence_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { + getWindowFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + window_ = null; + if (windowBuilder_ != null) { + windowBuilder_.dispose(); + 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 (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.RecurringTimeWindow result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.window_ = windowBuilder_ == null + ? window_ + : windowBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.recurrence_ = recurrence_; + } + result.bitField0_ |= to_bitField0_; + } + + @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_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getWindowFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + recurrence_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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 ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * 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; + } else { + windowBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + 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(); + } else { + windowBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + 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 (((bitField0_ & 0x00000001) != 0) && + window_ != null && + window_ != com.google.container.v1beta1.TimeWindow.getDefaultInstance()) { + getWindowBuilder().mergeFrom(value); + } else { + window_ = value; + } + } else { + windowBuilder_.mergeFrom(value); + } + if (window_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+     * The window of the first recurrence.
+     * 
+ * + * .google.container.v1beta1.TimeWindow window = 1; + */ + public Builder clearWindow() { + bitField0_ = (bitField0_ & ~0x00000001); + window_ = null; + if (windowBuilder_ != null) { + windowBuilder_.dispose(); + windowBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The window of the first recurrence.
+     * 
+ * + * .google.container.v1beta1.TimeWindow window = 1; + */ + public com.google.container.v1beta1.TimeWindow.Builder getWindowBuilder() { + bitField0_ |= 0x00000001; + 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; + bitField0_ |= 0x00000002; + 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(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RecurringTimeWindowOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RecurringTimeWindowOrBuilder.java new file mode 100644 index 000000000000..894726ac7b0f --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RecurringTimeWindowOrBuilder.java @@ -0,0 +1,119 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReleaseChannel.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReleaseChannel.java new file mode 100644 index 000000000000..ba2e469972b4 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReleaseChannel.java @@ -0,0 +1,724 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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< + Channel> 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_ = 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; + * @return The channel. + */ + @java.lang.Override public com.google.container.v1beta1.ReleaseChannel.Channel getChannel() { + com.google.container.v1beta1.ReleaseChannel.Channel result = com.google.container.v1beta1.ReleaseChannel.Channel.forNumber(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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.ReleaseChannel result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.channel_ = channel_; + } + } + + @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.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + channel_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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() { + com.google.container.v1beta1.ReleaseChannel.Channel result = com.google.container.v1beta1.ReleaseChannel.Channel.forNumber(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(); + } + bitField0_ |= 0x00000001; + 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() { + bitField0_ = (bitField0_ & ~0x00000001); + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReleaseChannelOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReleaseChannelOrBuilder.java new file mode 100644 index 000000000000..4f79d3a5372e --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReleaseChannelOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReservationAffinity.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReservationAffinity.java new file mode 100644 index 000000000000..001009bbf285 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReservationAffinity.java @@ -0,0 +1,1130 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ReservationAffinity(); + } + + 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< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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_ = 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; + * @return The consumeReservationType. + */ + @java.lang.Override public com.google.container.v1beta1.ReservationAffinity.Type getConsumeReservationType() { + com.google.container.v1beta1.ReservationAffinity.Type result = com.google.container.v1beta1.ReservationAffinity.Type.forNumber(consumeReservationType_); + return result == null ? com.google.container.v1beta1.ReservationAffinity.Type.UNRECOGNIZED : result; + } + + public static final int KEY_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; + /** + *
+   * Corresponds to the label key of a reservation resource. To target a
+   * SPECIFIC_RESERVATION by name, specify
+   * "compute.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
+   * "compute.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; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { + 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)); + } + getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { + 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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + consumeReservationType_ = 0; + key_ = ""; + values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.ReservationAffinity result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.consumeReservationType_ = consumeReservationType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.key_ = key_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + values_.makeImmutable(); + result.values_ = values_; + } + } + + @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_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ |= 0x00000004; + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + consumeReservationType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + key_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureValuesIsMutable(); + values_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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; + bitField0_ |= 0x00000001; + 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() { + com.google.container.v1beta1.ReservationAffinity.Type result = com.google.container.v1beta1.ReservationAffinity.Type.forNumber(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(); + } + bitField0_ |= 0x00000001; + 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() { + bitField0_ = (bitField0_ & ~0x00000001); + 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
+     * "compute.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
+     * "compute.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
+     * "compute.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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Corresponds to the label key of a reservation resource. To target a
+     * SPECIFIC_RESERVATION by name, specify
+     * "compute.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(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Corresponds to the label key of a reservation resource. To target a
+     * SPECIFIC_RESERVATION by name, specify
+     * "compute.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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureValuesIsMutable() { + if (!values_.isModifiable()) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + } + bitField0_ |= 0x00000004; + } + /** + *
+     * 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() { + values_.makeImmutable(); + 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); + } + /** + *
+     * 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); + bitField0_ |= 0x00000004; + 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); + bitField0_ |= 0x00000004; + 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_); + bitField0_ |= 0x00000004; + 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.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; + 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); + bitField0_ |= 0x00000004; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReservationAffinityOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReservationAffinityOrBuilder.java new file mode 100644 index 000000000000..ce25456fdf63 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ReservationAffinityOrBuilder.java @@ -0,0 +1,96 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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
+   * "compute.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
+   * "compute.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLabels.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLabels.java new file mode 100644 index 000000000000..f690640f8d1e --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLabels.java @@ -0,0 +1,739 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * Collection of [GCP
+ * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ResourceLabels} + */ +public final class ResourceLabels extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ResourceLabels) + ResourceLabelsOrBuilder { +private static final long serialVersionUID = 0L; + // Use ResourceLabels.newBuilder() to construct. + private ResourceLabels(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResourceLabels() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ResourceLabels(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ResourceLabels_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + 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_ResourceLabels_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ResourceLabels.class, com.google.container.v1beta1.ResourceLabels.Builder.class); + } + + public static final int LABELS_FIELD_NUMBER = 1; + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ResourceLabels_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+   * Map of node label keys and node label values.
+   * 
+ * + * map<string, string> labels = 1; + */ + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+   * Map of node label keys and node label values.
+   * 
+ * + * map<string, string> labels = 1; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+   * Map of node label keys and node label values.
+   * 
+ * + * map<string, string> labels = 1; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * Map of node label keys and node label values.
+   * 
+ * + * map<string, string> labels = 1; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().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, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 1); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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(1, labels__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.ResourceLabels)) { + return super.equals(obj); + } + com.google.container.v1beta1.ResourceLabels other = (com.google.container.v1beta1.ResourceLabels) obj; + + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ResourceLabels parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ResourceLabels parseFrom( + 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.ResourceLabels parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ResourceLabels parseFrom( + com.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.ResourceLabels parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ResourceLabels parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ResourceLabels parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ResourceLabels parseFrom( + java.io.InputStream 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.ResourceLabels parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ResourceLabels parseDelimitedFrom( + java.io.InputStream 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.ResourceLabels parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ResourceLabels parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.ResourceLabels prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Collection of [GCP
+   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ResourceLabels} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ResourceLabels) + com.google.container.v1beta1.ResourceLabelsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ResourceLabels_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 1: + 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_ResourceLabels_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ResourceLabels.class, com.google.container.v1beta1.ResourceLabels.Builder.class); + } + + // Construct using com.google.container.v1beta1.ResourceLabels.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableLabels().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ResourceLabels_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ResourceLabels getDefaultInstanceForType() { + return com.google.container.v1beta1.ResourceLabels.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ResourceLabels build() { + com.google.container.v1beta1.ResourceLabels result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ResourceLabels buildPartial() { + com.google.container.v1beta1.ResourceLabels result = new com.google.container.v1beta1.ResourceLabels(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.ResourceLabels result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + } + + @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.ResourceLabels) { + return mergeFrom((com.google.container.v1beta1.ResourceLabels)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ResourceLabels other) { + if (other == com.google.container.v1beta1.ResourceLabels.getDefaultInstance()) return this; + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); + bitField0_ |= 0x00000001; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000001; + onChanged(); + return labels_; + } + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+     * Map of node label keys and node label values.
+     * 
+ * + * map<string, string> labels = 1; + */ + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+     * Map of node label keys and node label values.
+     * 
+ * + * map<string, string> labels = 1; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+     * Map of node label keys and node label values.
+     * 
+ * + * map<string, string> labels = 1; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Map of node label keys and node label values.
+     * 
+ * + * map<string, string> labels = 1; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Map of node label keys and node label values.
+     * 
+ * + * map<string, string> labels = 1; + */ + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableLabels() { + bitField0_ |= 0x00000001; + return internalGetMutableLabels().getMutableMap(); + } + /** + *
+     * Map of node label keys and node label values.
+     * 
+ * + * map<string, string> labels = 1; + */ + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000001; + return this; + } + /** + *
+     * Map of node label keys and node label values.
+     * 
+ * + * map<string, string> labels = 1; + */ + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000001; + 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.ResourceLabels) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ResourceLabels) + private static final com.google.container.v1beta1.ResourceLabels DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ResourceLabels(); + } + + public static com.google.container.v1beta1.ResourceLabels getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceLabels parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.ResourceLabels getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLabelsOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLabelsOrBuilder.java new file mode 100644 index 000000000000..f144c0f80479 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLabelsOrBuilder.java @@ -0,0 +1,64 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface ResourceLabelsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ResourceLabels) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Map of node label keys and node label values.
+   * 
+ * + * map<string, string> labels = 1; + */ + int getLabelsCount(); + /** + *
+   * Map of node label keys and node label values.
+   * 
+ * + * map<string, string> labels = 1; + */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getLabels(); + /** + *
+   * Map of node label keys and node label values.
+   * 
+ * + * map<string, string> labels = 1; + */ + java.util.Map + getLabelsMap(); + /** + *
+   * Map of node label keys and node label values.
+   * 
+ * + * map<string, string> labels = 1; + */ + /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+   * Map of node label keys and node label values.
+   * 
+ * + * map<string, string> labels = 1; + */ + java.lang.String getLabelsOrThrow( + java.lang.String key); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLimit.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLimit.java new file mode 100644 index 000000000000..9ab27d764f80 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLimit.java @@ -0,0 +1,746 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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; + @SuppressWarnings("serial") + 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_ = 0L; + /** + *
+   * 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_ = 0L; + /** + *
+   * 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceType_); + } + if (minimum_ != 0L) { + output.writeInt64(2, minimum_); + } + if (maximum_ != 0L) { + output.writeInt64(3, maximum_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceType_)) { + 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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.ResourceLimit result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.resourceType_ = resourceType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.minimum_ = minimum_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.maximum_ = maximum_; + } + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getMinimum() != 0L) { + setMinimum(other.getMinimum()); + } + if (other.getMaximum() != 0L) { + setMaximum(other.getMaximum()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + resourceType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + minimum_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + maximum_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Minimum amount of the resource in the cluster.
+     * 
+ * + * int64 minimum = 2; + * @return This builder for chaining. + */ + public Builder clearMinimum() { + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Maximum amount of the resource in the cluster.
+     * 
+ * + * int64 maximum = 3; + * @return This builder for chaining. + */ + public Builder clearMaximum() { + bitField0_ = (bitField0_ & ~0x00000004); + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLimitOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLimitOrBuilder.java new file mode 100644 index 000000000000..62eeb0443eab --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceLimitOrBuilder.java @@ -0,0 +1,50 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceManagerTags.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceManagerTags.java new file mode 100644 index 000000000000..7cb19ee85936 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceManagerTags.java @@ -0,0 +1,780 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * A map of resource manager tag keys and values to be attached to the nodes
+ * for managing Compute Engine firewalls using Network Firewall Policies.
+ * Tags must be according to specifications in
+ * https://cloud.google.com/vpc/docs/tags-firewalls-overview#specifications.
+ * A maximum of 5 tag key-value pairs can be specified.
+ * Existing tags will be replaced with new values.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ResourceManagerTags} + */ +public final class ResourceManagerTags extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ResourceManagerTags) + ResourceManagerTagsOrBuilder { +private static final long serialVersionUID = 0L; + // Use ResourceManagerTags.newBuilder() to construct. + private ResourceManagerTags(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResourceManagerTags() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ResourceManagerTags(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ResourceManagerTags_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetTags(); + 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_ResourceManagerTags_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ResourceManagerTags.class, com.google.container.v1beta1.ResourceManagerTags.Builder.class); + } + + public static final int TAGS_FIELD_NUMBER = 1; + private static final class TagsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ResourceManagerTags_TagsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> tags_; + private com.google.protobuf.MapField + internalGetTags() { + if (tags_ == null) { + return com.google.protobuf.MapField.emptyMapField( + TagsDefaultEntryHolder.defaultEntry); + } + return tags_; + } + public int getTagsCount() { + return internalGetTags().getMap().size(); + } + /** + *
+   * Tags must be in one of the following formats ([KEY]=[VALUE])
+   * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
+   * 2. `{org_id}/{tag_key_name}={tag_value_name}`
+   * 3. `{project_id}/{tag_key_name}={tag_value_name}`
+   * 
+ * + * map<string, string> tags = 1; + */ + @java.lang.Override + public boolean containsTags( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetTags().getMap().containsKey(key); + } + /** + * Use {@link #getTagsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTags() { + return getTagsMap(); + } + /** + *
+   * Tags must be in one of the following formats ([KEY]=[VALUE])
+   * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
+   * 2. `{org_id}/{tag_key_name}={tag_value_name}`
+   * 3. `{project_id}/{tag_key_name}={tag_value_name}`
+   * 
+ * + * map<string, string> tags = 1; + */ + @java.lang.Override + public java.util.Map getTagsMap() { + return internalGetTags().getMap(); + } + /** + *
+   * Tags must be in one of the following formats ([KEY]=[VALUE])
+   * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
+   * 2. `{org_id}/{tag_key_name}={tag_value_name}`
+   * 3. `{project_id}/{tag_key_name}={tag_value_name}`
+   * 
+ * + * map<string, string> tags = 1; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * Tags must be in one of the following formats ([KEY]=[VALUE])
+   * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
+   * 2. `{org_id}/{tag_key_name}={tag_value_name}`
+   * 3. `{project_id}/{tag_key_name}={tag_value_name}`
+   * 
+ * + * map<string, string> tags = 1; + */ + @java.lang.Override + public java.lang.String getTagsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetTags().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, + internalGetTags(), + TagsDefaultEntryHolder.defaultEntry, + 1); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetTags().getMap().entrySet()) { + com.google.protobuf.MapEntry + tags__ = TagsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, tags__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.ResourceManagerTags)) { + return super.equals(obj); + } + com.google.container.v1beta1.ResourceManagerTags other = (com.google.container.v1beta1.ResourceManagerTags) obj; + + if (!internalGetTags().equals( + other.internalGetTags())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetTags().getMap().isEmpty()) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetTags().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ResourceManagerTags parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ResourceManagerTags parseFrom( + 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.ResourceManagerTags parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ResourceManagerTags parseFrom( + com.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.ResourceManagerTags parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ResourceManagerTags parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ResourceManagerTags parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ResourceManagerTags parseFrom( + java.io.InputStream 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.ResourceManagerTags parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ResourceManagerTags parseDelimitedFrom( + java.io.InputStream 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.ResourceManagerTags parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ResourceManagerTags parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.ResourceManagerTags prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new 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 map of resource manager tag keys and values to be attached to the nodes
+   * for managing Compute Engine firewalls using Network Firewall Policies.
+   * Tags must be according to specifications in
+   * https://cloud.google.com/vpc/docs/tags-firewalls-overview#specifications.
+   * A maximum of 5 tag key-value pairs can be specified.
+   * Existing tags will be replaced with new values.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ResourceManagerTags} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ResourceManagerTags) + com.google.container.v1beta1.ResourceManagerTagsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ResourceManagerTags_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetTags(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetMutableTags(); + 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_ResourceManagerTags_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ResourceManagerTags.class, com.google.container.v1beta1.ResourceManagerTags.Builder.class); + } + + // Construct using com.google.container.v1beta1.ResourceManagerTags.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableTags().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ResourceManagerTags_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ResourceManagerTags getDefaultInstanceForType() { + return com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ResourceManagerTags build() { + com.google.container.v1beta1.ResourceManagerTags result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ResourceManagerTags buildPartial() { + com.google.container.v1beta1.ResourceManagerTags result = new com.google.container.v1beta1.ResourceManagerTags(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.ResourceManagerTags result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tags_ = internalGetTags(); + result.tags_.makeImmutable(); + } + } + + @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.ResourceManagerTags) { + return mergeFrom((com.google.container.v1beta1.ResourceManagerTags)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ResourceManagerTags other) { + if (other == com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance()) return this; + internalGetMutableTags().mergeFrom( + other.internalGetTags()); + bitField0_ |= 0x00000001; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.MapEntry + tags__ = input.readMessage( + TagsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableTags().getMutableMap().put( + tags__.getKey(), tags__.getValue()); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> tags_; + private com.google.protobuf.MapField + internalGetTags() { + if (tags_ == null) { + return com.google.protobuf.MapField.emptyMapField( + TagsDefaultEntryHolder.defaultEntry); + } + return tags_; + } + private com.google.protobuf.MapField + internalGetMutableTags() { + if (tags_ == null) { + tags_ = com.google.protobuf.MapField.newMapField( + TagsDefaultEntryHolder.defaultEntry); + } + if (!tags_.isMutable()) { + tags_ = tags_.copy(); + } + bitField0_ |= 0x00000001; + onChanged(); + return tags_; + } + public int getTagsCount() { + return internalGetTags().getMap().size(); + } + /** + *
+     * Tags must be in one of the following formats ([KEY]=[VALUE])
+     * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
+     * 2. `{org_id}/{tag_key_name}={tag_value_name}`
+     * 3. `{project_id}/{tag_key_name}={tag_value_name}`
+     * 
+ * + * map<string, string> tags = 1; + */ + @java.lang.Override + public boolean containsTags( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetTags().getMap().containsKey(key); + } + /** + * Use {@link #getTagsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTags() { + return getTagsMap(); + } + /** + *
+     * Tags must be in one of the following formats ([KEY]=[VALUE])
+     * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
+     * 2. `{org_id}/{tag_key_name}={tag_value_name}`
+     * 3. `{project_id}/{tag_key_name}={tag_value_name}`
+     * 
+ * + * map<string, string> tags = 1; + */ + @java.lang.Override + public java.util.Map getTagsMap() { + return internalGetTags().getMap(); + } + /** + *
+     * Tags must be in one of the following formats ([KEY]=[VALUE])
+     * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
+     * 2. `{org_id}/{tag_key_name}={tag_value_name}`
+     * 3. `{project_id}/{tag_key_name}={tag_value_name}`
+     * 
+ * + * map<string, string> tags = 1; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Tags must be in one of the following formats ([KEY]=[VALUE])
+     * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
+     * 2. `{org_id}/{tag_key_name}={tag_value_name}`
+     * 3. `{project_id}/{tag_key_name}={tag_value_name}`
+     * 
+ * + * map<string, string> tags = 1; + */ + @java.lang.Override + public java.lang.String getTagsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearTags() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableTags().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Tags must be in one of the following formats ([KEY]=[VALUE])
+     * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
+     * 2. `{org_id}/{tag_key_name}={tag_value_name}`
+     * 3. `{project_id}/{tag_key_name}={tag_value_name}`
+     * 
+ * + * map<string, string> tags = 1; + */ + public Builder removeTags( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableTags().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableTags() { + bitField0_ |= 0x00000001; + return internalGetMutableTags().getMutableMap(); + } + /** + *
+     * Tags must be in one of the following formats ([KEY]=[VALUE])
+     * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
+     * 2. `{org_id}/{tag_key_name}={tag_value_name}`
+     * 3. `{project_id}/{tag_key_name}={tag_value_name}`
+     * 
+ * + * map<string, string> tags = 1; + */ + public Builder putTags( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableTags().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000001; + return this; + } + /** + *
+     * Tags must be in one of the following formats ([KEY]=[VALUE])
+     * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
+     * 2. `{org_id}/{tag_key_name}={tag_value_name}`
+     * 3. `{project_id}/{tag_key_name}={tag_value_name}`
+     * 
+ * + * map<string, string> tags = 1; + */ + public Builder putAllTags( + java.util.Map values) { + internalGetMutableTags().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000001; + 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.ResourceManagerTags) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ResourceManagerTags) + private static final com.google.container.v1beta1.ResourceManagerTags DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ResourceManagerTags(); + } + + public static com.google.container.v1beta1.ResourceManagerTags getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceManagerTags parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.ResourceManagerTags getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceManagerTagsOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceManagerTagsOrBuilder.java new file mode 100644 index 000000000000..62bfb3ad08c0 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceManagerTagsOrBuilder.java @@ -0,0 +1,79 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface ResourceManagerTagsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ResourceManagerTags) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Tags must be in one of the following formats ([KEY]=[VALUE])
+   * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
+   * 2. `{org_id}/{tag_key_name}={tag_value_name}`
+   * 3. `{project_id}/{tag_key_name}={tag_value_name}`
+   * 
+ * + * map<string, string> tags = 1; + */ + int getTagsCount(); + /** + *
+   * Tags must be in one of the following formats ([KEY]=[VALUE])
+   * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
+   * 2. `{org_id}/{tag_key_name}={tag_value_name}`
+   * 3. `{project_id}/{tag_key_name}={tag_value_name}`
+   * 
+ * + * map<string, string> tags = 1; + */ + boolean containsTags( + java.lang.String key); + /** + * Use {@link #getTagsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getTags(); + /** + *
+   * Tags must be in one of the following formats ([KEY]=[VALUE])
+   * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
+   * 2. `{org_id}/{tag_key_name}={tag_value_name}`
+   * 3. `{project_id}/{tag_key_name}={tag_value_name}`
+   * 
+ * + * map<string, string> tags = 1; + */ + java.util.Map + getTagsMap(); + /** + *
+   * Tags must be in one of the following formats ([KEY]=[VALUE])
+   * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
+   * 2. `{org_id}/{tag_key_name}={tag_value_name}`
+   * 3. `{project_id}/{tag_key_name}={tag_value_name}`
+   * 
+ * + * map<string, string> tags = 1; + */ + /* nullable */ +java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+   * Tags must be in one of the following formats ([KEY]=[VALUE])
+   * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
+   * 2. `{org_id}/{tag_key_name}={tag_value_name}`
+   * 3. `{project_id}/{tag_key_name}={tag_value_name}`
+   * 
+ * + * map<string, string> tags = 1; + */ + java.lang.String getTagsOrThrow( + java.lang.String key); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceUsageExportConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceUsageExportConfig.java new file mode 100644 index 000000000000..8e4d939888eb --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceUsageExportConfig.java @@ -0,0 +1,2086 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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(); + } + + 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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, datasetId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, datasetId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.datasetId_ = datasetId_; + } + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + datasetId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * The ID of a BigQuery Dataset.
+       * 
+ * + * string dataset_id = 1; + * @return This builder for chaining. + */ + public Builder clearDatasetId() { + datasetId_ = getDefaultInstance().getDatasetId(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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(); + } + + 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_ = false; + /** + *
+     * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 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_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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @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.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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() { + bitField0_ = (bitField0_ & ~0x00000001); + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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; + } + + } + + private int bitField0_; + 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 ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * 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 bigqueryDestination_ == null ? com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination.getDefaultInstance() : bigqueryDestination_; + } + + public static final int ENABLE_NETWORK_EGRESS_METERING_FIELD_NUMBER = 2; + private boolean enableNetworkEgressMetering_ = false; + /** + *
+   * 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 ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * 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 consumptionMeteringConfig_ == null ? com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig.getDefaultInstance() : consumptionMeteringConfig_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getBigqueryDestination()); + } + if (enableNetworkEgressMetering_ != false) { + output.writeBool(2, enableNetworkEgressMetering_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getConsumptionMeteringConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBigqueryDestination()); + } + if (enableNetworkEgressMetering_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, enableNetworkEgressMetering_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getConsumptionMeteringConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { + getBigqueryDestinationFieldBuilder(); + getConsumptionMeteringConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bigqueryDestination_ = null; + if (bigqueryDestinationBuilder_ != null) { + bigqueryDestinationBuilder_.dispose(); + bigqueryDestinationBuilder_ = null; + } + enableNetworkEgressMetering_ = false; + consumptionMeteringConfig_ = null; + if (consumptionMeteringConfigBuilder_ != null) { + consumptionMeteringConfigBuilder_.dispose(); + 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 (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.ResourceUsageExportConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.bigqueryDestination_ = bigqueryDestinationBuilder_ == null + ? bigqueryDestination_ + : bigqueryDestinationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.enableNetworkEgressMetering_ = enableNetworkEgressMetering_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.consumptionMeteringConfig_ = consumptionMeteringConfigBuilder_ == null + ? consumptionMeteringConfig_ + : consumptionMeteringConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @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.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getBigqueryDestinationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + enableNetworkEgressMetering_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + input.readMessage( + getConsumptionMeteringConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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 ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * 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; + } else { + bigqueryDestinationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + 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(); + } else { + bigqueryDestinationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + 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 (((bitField0_ & 0x00000001) != 0) && + bigqueryDestination_ != null && + bigqueryDestination_ != com.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination.getDefaultInstance()) { + getBigqueryDestinationBuilder().mergeFrom(value); + } else { + bigqueryDestination_ = value; + } + } else { + bigqueryDestinationBuilder_.mergeFrom(value); + } + if (bigqueryDestination_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+     * Configuration to use BigQuery as usage export destination.
+     * 
+ * + * .google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; + */ + public Builder clearBigqueryDestination() { + bitField0_ = (bitField0_ & ~0x00000001); + bigqueryDestination_ = null; + if (bigqueryDestinationBuilder_ != null) { + bigqueryDestinationBuilder_.dispose(); + bigqueryDestinationBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000001; + 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; + bitField0_ |= 0x00000002; + 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() { + bitField0_ = (bitField0_ & ~0x00000002); + 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 ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * 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; + } else { + consumptionMeteringConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + 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(); + } else { + consumptionMeteringConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + 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 (((bitField0_ & 0x00000004) != 0) && + consumptionMeteringConfig_ != null && + consumptionMeteringConfig_ != com.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig.getDefaultInstance()) { + getConsumptionMeteringConfigBuilder().mergeFrom(value); + } else { + consumptionMeteringConfig_ = value; + } + } else { + consumptionMeteringConfigBuilder_.mergeFrom(value); + } + if (consumptionMeteringConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+     * Configuration to enable resource consumption metering.
+     * 
+ * + * .google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; + */ + public Builder clearConsumptionMeteringConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + consumptionMeteringConfig_ = null; + if (consumptionMeteringConfigBuilder_ != null) { + consumptionMeteringConfigBuilder_.dispose(); + consumptionMeteringConfigBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000004; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceUsageExportConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceUsageExportConfigOrBuilder.java new file mode 100644 index 000000000000..be9917ecab1f --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ResourceUsageExportConfigOrBuilder.java @@ -0,0 +1,75 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequest.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequest.java new file mode 100644 index 000000000000..485a6d9e6f6c --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequest.java @@ -0,0 +1,1444 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4306 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4306 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4313 + * @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]; + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4313 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4317 + * @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]; + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4317 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4322 + * @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]; + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4322 + * @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; + @SuppressWarnings("serial") + 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; + } + } + + public static final int RESPECT_PDB_FIELD_NUMBER = 7; + private boolean respectPdb_ = false; + /** + *
+   * Option for rollback to ignore the PodDisruptionBudget.
+   * Default value is false.
+   * 
+ * + * bool respect_pdb = 7; + * @return The respectPdb. + */ + @java.lang.Override + public boolean getRespectPdb() { + return respectPdb_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + if (respectPdb_ != false) { + output.writeBool(7, respectPdb_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } + if (respectPdb_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, respectPdb_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (getRespectPdb() + != other.getRespectPdb()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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 = (37 * hash) + RESPECT_PDB_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRespectPdb()); + hash = (29 * hash) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePoolId_ = ""; + name_ = ""; + respectPdb_ = false; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.RollbackNodePoolUpgradeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.nodePoolId_ = nodePoolId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.respectPdb_ = respectPdb_; + } + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getRespectPdb() != false) { + setRespectPdb(other.getRespectPdb()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + nodePoolId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 50: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 56: { + respectPdb_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 56 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4306 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4306 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4306 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4306 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4306 + * @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; + bitField0_ |= 0x00000001; + 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]; + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4313 + * @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]; + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4313 + * @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]; + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4313 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4313 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + 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]; + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4313 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4317 + * @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]; + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4317 + * @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]; + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4317 + * @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; + bitField0_ |= 0x00000004; + 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]; + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4317 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + 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]; + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4317 + * @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; + bitField0_ |= 0x00000004; + 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]; + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4322 + * @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]; + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4322 + * @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]; + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4322 + * @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; + bitField0_ |= 0x00000008; + 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]; + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4322 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearNodePoolId() { + nodePoolId_ = getDefaultInstance().getNodePoolId(); + bitField0_ = (bitField0_ & ~0x00000008); + 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]; + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4322 + * @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; + bitField0_ |= 0x00000008; + 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; + bitField0_ |= 0x00000010; + 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(); + bitField0_ = (bitField0_ & ~0x00000010); + 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; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private boolean respectPdb_ ; + /** + *
+     * Option for rollback to ignore the PodDisruptionBudget.
+     * Default value is false.
+     * 
+ * + * bool respect_pdb = 7; + * @return The respectPdb. + */ + @java.lang.Override + public boolean getRespectPdb() { + return respectPdb_; + } + /** + *
+     * Option for rollback to ignore the PodDisruptionBudget.
+     * Default value is false.
+     * 
+ * + * bool respect_pdb = 7; + * @param value The respectPdb to set. + * @return This builder for chaining. + */ + public Builder setRespectPdb(boolean value) { + + respectPdb_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Option for rollback to ignore the PodDisruptionBudget.
+     * Default value is false.
+     * 
+ * + * bool respect_pdb = 7; + * @return This builder for chaining. + */ + public Builder clearRespectPdb() { + bitField0_ = (bitField0_ & ~0x00000020); + respectPdb_ = 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.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequestOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequestOrBuilder.java new file mode 100644 index 000000000000..2a875a473b3f --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequestOrBuilder.java @@ -0,0 +1,155 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4306 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4306 + * @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]; + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4313 + * @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]; + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4313 + * @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]; + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4317 + * @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]; + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4317 + * @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]; + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4322 + * @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]; + * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4322 + * @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(); + + /** + *
+   * Option for rollback to ignore the PodDisruptionBudget.
+   * Default value is false.
+   * 
+ * + * bool respect_pdb = 7; + * @return The respectPdb. + */ + boolean getRespectPdb(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SandboxConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SandboxConfig.java new file mode 100644 index 000000000000..ad8b4631dc17 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SandboxConfig.java @@ -0,0 +1,842 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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; + @SuppressWarnings("serial") + private volatile java.lang.Object sandboxType_ = ""; + /** + *
+   * Type of the sandbox to use for the node (e.g. 'gvisor')
+   * 
+ * + * string sandbox_type = 1 [deprecated = true]; + * @deprecated google.container.v1beta1.SandboxConfig.sandbox_type is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1004 + * @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]; + * @deprecated google.container.v1beta1.SandboxConfig.sandbox_type is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1004 + * @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_ = 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; + * @return The type. + */ + @java.lang.Override public com.google.container.v1beta1.SandboxConfig.Type getType() { + com.google.container.v1beta1.SandboxConfig.Type result = com.google.container.v1beta1.SandboxConfig.Type.forNumber(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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sandboxType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sandboxType_); + } + if (type_ != com.google.container.v1beta1.SandboxConfig.Type.UNSPECIFIED.getNumber()) { + output.writeEnum(2, type_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sandboxType_)) { + 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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.SandboxConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sandboxType_ = sandboxType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.type_ = type_; + } + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + sandboxType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + type_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object sandboxType_ = ""; + /** + *
+     * Type of the sandbox to use for the node (e.g. 'gvisor')
+     * 
+ * + * string sandbox_type = 1 [deprecated = true]; + * @deprecated google.container.v1beta1.SandboxConfig.sandbox_type is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1004 + * @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]; + * @deprecated google.container.v1beta1.SandboxConfig.sandbox_type is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1004 + * @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]; + * @deprecated google.container.v1beta1.SandboxConfig.sandbox_type is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1004 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Type of the sandbox to use for the node (e.g. 'gvisor')
+     * 
+ * + * string sandbox_type = 1 [deprecated = true]; + * @deprecated google.container.v1beta1.SandboxConfig.sandbox_type is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1004 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearSandboxType() { + sandboxType_ = getDefaultInstance().getSandboxType(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Type of the sandbox to use for the node (e.g. 'gvisor')
+     * 
+ * + * string sandbox_type = 1 [deprecated = true]; + * @deprecated google.container.v1beta1.SandboxConfig.sandbox_type is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1004 + * @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; + bitField0_ |= 0x00000001; + 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; + bitField0_ |= 0x00000002; + 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() { + com.google.container.v1beta1.SandboxConfig.Type result = com.google.container.v1beta1.SandboxConfig.Type.forNumber(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(); + } + bitField0_ |= 0x00000002; + 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() { + bitField0_ = (bitField0_ & ~0x00000002); + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SandboxConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SandboxConfigOrBuilder.java new file mode 100644 index 000000000000..6c04ed2c13c1 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SandboxConfigOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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]; + * @deprecated google.container.v1beta1.SandboxConfig.sandbox_type is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1004 + * @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]; + * @deprecated google.container.v1beta1.SandboxConfig.sandbox_type is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=1004 + * @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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SecurityBulletinEvent.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SecurityBulletinEvent.java new file mode 100644 index 000000000000..60d729769c28 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SecurityBulletinEvent.java @@ -0,0 +1,2259 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * SecurityBulletinEvent is a notification sent to customers when a security
+ * bulletin has been posted that they are vulnerable to.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SecurityBulletinEvent} + */ +public final class SecurityBulletinEvent extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SecurityBulletinEvent) + SecurityBulletinEventOrBuilder { +private static final long serialVersionUID = 0L; + // Use SecurityBulletinEvent.newBuilder() to construct. + private SecurityBulletinEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SecurityBulletinEvent() { + resourceTypeAffected_ = ""; + bulletinId_ = ""; + cveIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + severity_ = ""; + bulletinUri_ = ""; + briefDescription_ = ""; + affectedSupportedMinors_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + patchedVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + suggestedUpgradeTarget_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SecurityBulletinEvent(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SecurityBulletinEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SecurityBulletinEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SecurityBulletinEvent.class, com.google.container.v1beta1.SecurityBulletinEvent.Builder.class); + } + + public static final int RESOURCE_TYPE_AFFECTED_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object resourceTypeAffected_ = ""; + /** + *
+   * The resource type (node/control plane) that has the vulnerability. Multiple
+   * notifications (1 notification per resource type) will be sent for a
+   * vulnerability that affects > 1 resource type.
+   * 
+ * + * string resource_type_affected = 1; + * @return The resourceTypeAffected. + */ + @java.lang.Override + public java.lang.String getResourceTypeAffected() { + java.lang.Object ref = resourceTypeAffected_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceTypeAffected_ = s; + return s; + } + } + /** + *
+   * The resource type (node/control plane) that has the vulnerability. Multiple
+   * notifications (1 notification per resource type) will be sent for a
+   * vulnerability that affects > 1 resource type.
+   * 
+ * + * string resource_type_affected = 1; + * @return The bytes for resourceTypeAffected. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getResourceTypeAffectedBytes() { + java.lang.Object ref = resourceTypeAffected_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceTypeAffected_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BULLETIN_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object bulletinId_ = ""; + /** + *
+   * The ID of the bulletin corresponding to the vulnerability.
+   * 
+ * + * string bulletin_id = 2; + * @return The bulletinId. + */ + @java.lang.Override + public java.lang.String getBulletinId() { + java.lang.Object ref = bulletinId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bulletinId_ = s; + return s; + } + } + /** + *
+   * The ID of the bulletin corresponding to the vulnerability.
+   * 
+ * + * string bulletin_id = 2; + * @return The bytes for bulletinId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBulletinIdBytes() { + java.lang.Object ref = bulletinId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bulletinId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CVE_IDS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList cveIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * @return A list containing the cveIds. + */ + public com.google.protobuf.ProtocolStringList + getCveIdsList() { + return cveIds_; + } + /** + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * @return The count of cveIds. + */ + public int getCveIdsCount() { + return cveIds_.size(); + } + /** + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * @param index The index of the element to return. + * @return The cveIds at the given index. + */ + public java.lang.String getCveIds(int index) { + return cveIds_.get(index); + } + /** + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * @param index The index of the value to return. + * @return The bytes of the cveIds at the given index. + */ + public com.google.protobuf.ByteString + getCveIdsBytes(int index) { + return cveIds_.getByteString(index); + } + + public static final int SEVERITY_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object severity_ = ""; + /** + *
+   * The severity of this bulletin as it relates to GKE.
+   * 
+ * + * string severity = 4; + * @return The severity. + */ + @java.lang.Override + public java.lang.String getSeverity() { + java.lang.Object ref = severity_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + severity_ = s; + return s; + } + } + /** + *
+   * The severity of this bulletin as it relates to GKE.
+   * 
+ * + * string severity = 4; + * @return The bytes for severity. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSeverityBytes() { + java.lang.Object ref = severity_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + severity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BULLETIN_URI_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object bulletinUri_ = ""; + /** + *
+   * The URI link to the bulletin on the website for more information.
+   * 
+ * + * string bulletin_uri = 5; + * @return The bulletinUri. + */ + @java.lang.Override + public java.lang.String getBulletinUri() { + java.lang.Object ref = bulletinUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bulletinUri_ = s; + return s; + } + } + /** + *
+   * The URI link to the bulletin on the website for more information.
+   * 
+ * + * string bulletin_uri = 5; + * @return The bytes for bulletinUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBulletinUriBytes() { + java.lang.Object ref = bulletinUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bulletinUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BRIEF_DESCRIPTION_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object briefDescription_ = ""; + /** + *
+   * A brief description of the bulletin. See the bulletin pointed to by the
+   * bulletin_uri field for an expanded description.
+   * 
+ * + * string brief_description = 6; + * @return The briefDescription. + */ + @java.lang.Override + public java.lang.String getBriefDescription() { + java.lang.Object ref = briefDescription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + briefDescription_ = s; + return s; + } + } + /** + *
+   * A brief description of the bulletin. See the bulletin pointed to by the
+   * bulletin_uri field for an expanded description.
+   * 
+ * + * string brief_description = 6; + * @return The bytes for briefDescription. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBriefDescriptionBytes() { + java.lang.Object ref = briefDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + briefDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AFFECTED_SUPPORTED_MINORS_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList affectedSupportedMinors_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * @return A list containing the affectedSupportedMinors. + */ + public com.google.protobuf.ProtocolStringList + getAffectedSupportedMinorsList() { + return affectedSupportedMinors_; + } + /** + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * @return The count of affectedSupportedMinors. + */ + public int getAffectedSupportedMinorsCount() { + return affectedSupportedMinors_.size(); + } + /** + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * @param index The index of the element to return. + * @return The affectedSupportedMinors at the given index. + */ + public java.lang.String getAffectedSupportedMinors(int index) { + return affectedSupportedMinors_.get(index); + } + /** + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * @param index The index of the value to return. + * @return The bytes of the affectedSupportedMinors at the given index. + */ + public com.google.protobuf.ByteString + getAffectedSupportedMinorsBytes(int index) { + return affectedSupportedMinors_.getByteString(index); + } + + public static final int PATCHED_VERSIONS_FIELD_NUMBER = 8; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList patchedVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * @return A list containing the patchedVersions. + */ + public com.google.protobuf.ProtocolStringList + getPatchedVersionsList() { + return patchedVersions_; + } + /** + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * @return The count of patchedVersions. + */ + public int getPatchedVersionsCount() { + return patchedVersions_.size(); + } + /** + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * @param index The index of the element to return. + * @return The patchedVersions at the given index. + */ + public java.lang.String getPatchedVersions(int index) { + return patchedVersions_.get(index); + } + /** + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * @param index The index of the value to return. + * @return The bytes of the patchedVersions at the given index. + */ + public com.google.protobuf.ByteString + getPatchedVersionsBytes(int index) { + return patchedVersions_.getByteString(index); + } + + public static final int SUGGESTED_UPGRADE_TARGET_FIELD_NUMBER = 9; + @SuppressWarnings("serial") + private volatile java.lang.Object suggestedUpgradeTarget_ = ""; + /** + *
+   * This represents a version selected from the patched_versions field that
+   * the cluster receiving this notification should most likely want to upgrade
+   * to based on its current version. Note that if this notification is being
+   * received by a given cluster, it means that this version is currently
+   * available as an upgrade target in that cluster's location.
+   * 
+ * + * string suggested_upgrade_target = 9; + * @return The suggestedUpgradeTarget. + */ + @java.lang.Override + public java.lang.String getSuggestedUpgradeTarget() { + java.lang.Object ref = suggestedUpgradeTarget_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + suggestedUpgradeTarget_ = s; + return s; + } + } + /** + *
+   * This represents a version selected from the patched_versions field that
+   * the cluster receiving this notification should most likely want to upgrade
+   * to based on its current version. Note that if this notification is being
+   * received by a given cluster, it means that this version is currently
+   * available as an upgrade target in that cluster's location.
+   * 
+ * + * string suggested_upgrade_target = 9; + * @return The bytes for suggestedUpgradeTarget. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSuggestedUpgradeTargetBytes() { + java.lang.Object ref = suggestedUpgradeTarget_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + suggestedUpgradeTarget_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MANUAL_STEPS_REQUIRED_FIELD_NUMBER = 10; + private boolean manualStepsRequired_ = false; + /** + *
+   * If this field is specified, it means there are manual steps that the user
+   * must take to make their clusters safe.
+   * 
+ * + * bool manual_steps_required = 10; + * @return The manualStepsRequired. + */ + @java.lang.Override + public boolean getManualStepsRequired() { + return manualStepsRequired_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceTypeAffected_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceTypeAffected_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bulletinId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bulletinId_); + } + for (int i = 0; i < cveIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cveIds_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(severity_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, severity_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bulletinUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, bulletinUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(briefDescription_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, briefDescription_); + } + for (int i = 0; i < affectedSupportedMinors_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, affectedSupportedMinors_.getRaw(i)); + } + for (int i = 0; i < patchedVersions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, patchedVersions_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(suggestedUpgradeTarget_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, suggestedUpgradeTarget_); + } + if (manualStepsRequired_ != false) { + output.writeBool(10, manualStepsRequired_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceTypeAffected_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceTypeAffected_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bulletinId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, bulletinId_); + } + { + int dataSize = 0; + for (int i = 0; i < cveIds_.size(); i++) { + dataSize += computeStringSizeNoTag(cveIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getCveIdsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(severity_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, severity_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bulletinUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, bulletinUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(briefDescription_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, briefDescription_); + } + { + int dataSize = 0; + for (int i = 0; i < affectedSupportedMinors_.size(); i++) { + dataSize += computeStringSizeNoTag(affectedSupportedMinors_.getRaw(i)); + } + size += dataSize; + size += 1 * getAffectedSupportedMinorsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < patchedVersions_.size(); i++) { + dataSize += computeStringSizeNoTag(patchedVersions_.getRaw(i)); + } + size += dataSize; + size += 1 * getPatchedVersionsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(suggestedUpgradeTarget_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, suggestedUpgradeTarget_); + } + if (manualStepsRequired_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(10, manualStepsRequired_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1beta1.SecurityBulletinEvent)) { + return super.equals(obj); + } + com.google.container.v1beta1.SecurityBulletinEvent other = (com.google.container.v1beta1.SecurityBulletinEvent) obj; + + if (!getResourceTypeAffected() + .equals(other.getResourceTypeAffected())) return false; + if (!getBulletinId() + .equals(other.getBulletinId())) return false; + if (!getCveIdsList() + .equals(other.getCveIdsList())) return false; + if (!getSeverity() + .equals(other.getSeverity())) return false; + if (!getBulletinUri() + .equals(other.getBulletinUri())) return false; + if (!getBriefDescription() + .equals(other.getBriefDescription())) return false; + if (!getAffectedSupportedMinorsList() + .equals(other.getAffectedSupportedMinorsList())) return false; + if (!getPatchedVersionsList() + .equals(other.getPatchedVersionsList())) return false; + if (!getSuggestedUpgradeTarget() + .equals(other.getSuggestedUpgradeTarget())) return false; + if (getManualStepsRequired() + != other.getManualStepsRequired()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_AFFECTED_FIELD_NUMBER; + hash = (53 * hash) + getResourceTypeAffected().hashCode(); + hash = (37 * hash) + BULLETIN_ID_FIELD_NUMBER; + hash = (53 * hash) + getBulletinId().hashCode(); + if (getCveIdsCount() > 0) { + hash = (37 * hash) + CVE_IDS_FIELD_NUMBER; + hash = (53 * hash) + getCveIdsList().hashCode(); + } + hash = (37 * hash) + SEVERITY_FIELD_NUMBER; + hash = (53 * hash) + getSeverity().hashCode(); + hash = (37 * hash) + BULLETIN_URI_FIELD_NUMBER; + hash = (53 * hash) + getBulletinUri().hashCode(); + hash = (37 * hash) + BRIEF_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getBriefDescription().hashCode(); + if (getAffectedSupportedMinorsCount() > 0) { + hash = (37 * hash) + AFFECTED_SUPPORTED_MINORS_FIELD_NUMBER; + hash = (53 * hash) + getAffectedSupportedMinorsList().hashCode(); + } + if (getPatchedVersionsCount() > 0) { + hash = (37 * hash) + PATCHED_VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getPatchedVersionsList().hashCode(); + } + hash = (37 * hash) + SUGGESTED_UPGRADE_TARGET_FIELD_NUMBER; + hash = (53 * hash) + getSuggestedUpgradeTarget().hashCode(); + hash = (37 * hash) + MANUAL_STEPS_REQUIRED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getManualStepsRequired()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.SecurityBulletinEvent parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SecurityBulletinEvent parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SecurityBulletinEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SecurityBulletinEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SecurityBulletinEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SecurityBulletinEvent parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SecurityBulletinEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SecurityBulletinEvent parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.SecurityBulletinEvent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SecurityBulletinEvent parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.SecurityBulletinEvent parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SecurityBulletinEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.SecurityBulletinEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * SecurityBulletinEvent is a notification sent to customers when a security
+   * bulletin has been posted that they are vulnerable to.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.SecurityBulletinEvent} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.SecurityBulletinEvent) + com.google.container.v1beta1.SecurityBulletinEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SecurityBulletinEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SecurityBulletinEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SecurityBulletinEvent.class, com.google.container.v1beta1.SecurityBulletinEvent.Builder.class); + } + + // Construct using com.google.container.v1beta1.SecurityBulletinEvent.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + resourceTypeAffected_ = ""; + bulletinId_ = ""; + cveIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + severity_ = ""; + bulletinUri_ = ""; + briefDescription_ = ""; + affectedSupportedMinors_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + patchedVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + suggestedUpgradeTarget_ = ""; + manualStepsRequired_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SecurityBulletinEvent_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SecurityBulletinEvent getDefaultInstanceForType() { + return com.google.container.v1beta1.SecurityBulletinEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SecurityBulletinEvent build() { + com.google.container.v1beta1.SecurityBulletinEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SecurityBulletinEvent buildPartial() { + com.google.container.v1beta1.SecurityBulletinEvent result = new com.google.container.v1beta1.SecurityBulletinEvent(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.SecurityBulletinEvent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.resourceTypeAffected_ = resourceTypeAffected_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.bulletinId_ = bulletinId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + cveIds_.makeImmutable(); + result.cveIds_ = cveIds_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.severity_ = severity_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.bulletinUri_ = bulletinUri_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.briefDescription_ = briefDescription_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + affectedSupportedMinors_.makeImmutable(); + result.affectedSupportedMinors_ = affectedSupportedMinors_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + patchedVersions_.makeImmutable(); + result.patchedVersions_ = patchedVersions_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.suggestedUpgradeTarget_ = suggestedUpgradeTarget_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.manualStepsRequired_ = manualStepsRequired_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1beta1.SecurityBulletinEvent) { + return mergeFrom((com.google.container.v1beta1.SecurityBulletinEvent)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SecurityBulletinEvent other) { + if (other == com.google.container.v1beta1.SecurityBulletinEvent.getDefaultInstance()) return this; + if (!other.getResourceTypeAffected().isEmpty()) { + resourceTypeAffected_ = other.resourceTypeAffected_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getBulletinId().isEmpty()) { + bulletinId_ = other.bulletinId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.cveIds_.isEmpty()) { + if (cveIds_.isEmpty()) { + cveIds_ = other.cveIds_; + bitField0_ |= 0x00000004; + } else { + ensureCveIdsIsMutable(); + cveIds_.addAll(other.cveIds_); + } + onChanged(); + } + if (!other.getSeverity().isEmpty()) { + severity_ = other.severity_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getBulletinUri().isEmpty()) { + bulletinUri_ = other.bulletinUri_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getBriefDescription().isEmpty()) { + briefDescription_ = other.briefDescription_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.affectedSupportedMinors_.isEmpty()) { + if (affectedSupportedMinors_.isEmpty()) { + affectedSupportedMinors_ = other.affectedSupportedMinors_; + bitField0_ |= 0x00000040; + } else { + ensureAffectedSupportedMinorsIsMutable(); + affectedSupportedMinors_.addAll(other.affectedSupportedMinors_); + } + onChanged(); + } + if (!other.patchedVersions_.isEmpty()) { + if (patchedVersions_.isEmpty()) { + patchedVersions_ = other.patchedVersions_; + bitField0_ |= 0x00000080; + } else { + ensurePatchedVersionsIsMutable(); + patchedVersions_.addAll(other.patchedVersions_); + } + onChanged(); + } + if (!other.getSuggestedUpgradeTarget().isEmpty()) { + suggestedUpgradeTarget_ = other.suggestedUpgradeTarget_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.getManualStepsRequired() != false) { + setManualStepsRequired(other.getManualStepsRequired()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + resourceTypeAffected_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + bulletinId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureCveIdsIsMutable(); + cveIds_.add(s); + break; + } // case 26 + case 34: { + severity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + bulletinUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + briefDescription_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + ensureAffectedSupportedMinorsIsMutable(); + affectedSupportedMinors_.add(s); + break; + } // case 58 + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + ensurePatchedVersionsIsMutable(); + patchedVersions_.add(s); + break; + } // case 66 + case 74: { + suggestedUpgradeTarget_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 80: { + manualStepsRequired_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 80 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object resourceTypeAffected_ = ""; + /** + *
+     * The resource type (node/control plane) that has the vulnerability. Multiple
+     * notifications (1 notification per resource type) will be sent for a
+     * vulnerability that affects > 1 resource type.
+     * 
+ * + * string resource_type_affected = 1; + * @return The resourceTypeAffected. + */ + public java.lang.String getResourceTypeAffected() { + java.lang.Object ref = resourceTypeAffected_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceTypeAffected_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The resource type (node/control plane) that has the vulnerability. Multiple
+     * notifications (1 notification per resource type) will be sent for a
+     * vulnerability that affects > 1 resource type.
+     * 
+ * + * string resource_type_affected = 1; + * @return The bytes for resourceTypeAffected. + */ + public com.google.protobuf.ByteString + getResourceTypeAffectedBytes() { + java.lang.Object ref = resourceTypeAffected_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceTypeAffected_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The resource type (node/control plane) that has the vulnerability. Multiple
+     * notifications (1 notification per resource type) will be sent for a
+     * vulnerability that affects > 1 resource type.
+     * 
+ * + * string resource_type_affected = 1; + * @param value The resourceTypeAffected to set. + * @return This builder for chaining. + */ + public Builder setResourceTypeAffected( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + resourceTypeAffected_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The resource type (node/control plane) that has the vulnerability. Multiple
+     * notifications (1 notification per resource type) will be sent for a
+     * vulnerability that affects > 1 resource type.
+     * 
+ * + * string resource_type_affected = 1; + * @return This builder for chaining. + */ + public Builder clearResourceTypeAffected() { + resourceTypeAffected_ = getDefaultInstance().getResourceTypeAffected(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * The resource type (node/control plane) that has the vulnerability. Multiple
+     * notifications (1 notification per resource type) will be sent for a
+     * vulnerability that affects > 1 resource type.
+     * 
+ * + * string resource_type_affected = 1; + * @param value The bytes for resourceTypeAffected to set. + * @return This builder for chaining. + */ + public Builder setResourceTypeAffectedBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + resourceTypeAffected_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object bulletinId_ = ""; + /** + *
+     * The ID of the bulletin corresponding to the vulnerability.
+     * 
+ * + * string bulletin_id = 2; + * @return The bulletinId. + */ + public java.lang.String getBulletinId() { + java.lang.Object ref = bulletinId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bulletinId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The ID of the bulletin corresponding to the vulnerability.
+     * 
+ * + * string bulletin_id = 2; + * @return The bytes for bulletinId. + */ + public com.google.protobuf.ByteString + getBulletinIdBytes() { + java.lang.Object ref = bulletinId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bulletinId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The ID of the bulletin corresponding to the vulnerability.
+     * 
+ * + * string bulletin_id = 2; + * @param value The bulletinId to set. + * @return This builder for chaining. + */ + public Builder setBulletinId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + bulletinId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The ID of the bulletin corresponding to the vulnerability.
+     * 
+ * + * string bulletin_id = 2; + * @return This builder for chaining. + */ + public Builder clearBulletinId() { + bulletinId_ = getDefaultInstance().getBulletinId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * The ID of the bulletin corresponding to the vulnerability.
+     * 
+ * + * string bulletin_id = 2; + * @param value The bytes for bulletinId to set. + * @return This builder for chaining. + */ + public Builder setBulletinIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + bulletinId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList cveIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureCveIdsIsMutable() { + if (!cveIds_.isModifiable()) { + cveIds_ = new com.google.protobuf.LazyStringArrayList(cveIds_); + } + bitField0_ |= 0x00000004; + } + /** + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * @return A list containing the cveIds. + */ + public com.google.protobuf.ProtocolStringList + getCveIdsList() { + cveIds_.makeImmutable(); + return cveIds_; + } + /** + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * @return The count of cveIds. + */ + public int getCveIdsCount() { + return cveIds_.size(); + } + /** + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * @param index The index of the element to return. + * @return The cveIds at the given index. + */ + public java.lang.String getCveIds(int index) { + return cveIds_.get(index); + } + /** + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * @param index The index of the value to return. + * @return The bytes of the cveIds at the given index. + */ + public com.google.protobuf.ByteString + getCveIdsBytes(int index) { + return cveIds_.getByteString(index); + } + /** + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * @param index The index to set the value at. + * @param value The cveIds to set. + * @return This builder for chaining. + */ + public Builder setCveIds( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureCveIdsIsMutable(); + cveIds_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * @param value The cveIds to add. + * @return This builder for chaining. + */ + public Builder addCveIds( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureCveIdsIsMutable(); + cveIds_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * @param values The cveIds to add. + * @return This builder for chaining. + */ + public Builder addAllCveIds( + java.lang.Iterable values) { + ensureCveIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, cveIds_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * @return This builder for chaining. + */ + public Builder clearCveIds() { + cveIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; + onChanged(); + return this; + } + /** + *
+     * The CVEs associated with this bulletin.
+     * 
+ * + * repeated string cve_ids = 3; + * @param value The bytes of the cveIds to add. + * @return This builder for chaining. + */ + public Builder addCveIdsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureCveIdsIsMutable(); + cveIds_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object severity_ = ""; + /** + *
+     * The severity of this bulletin as it relates to GKE.
+     * 
+ * + * string severity = 4; + * @return The severity. + */ + public java.lang.String getSeverity() { + java.lang.Object ref = severity_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + severity_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The severity of this bulletin as it relates to GKE.
+     * 
+ * + * string severity = 4; + * @return The bytes for severity. + */ + public com.google.protobuf.ByteString + getSeverityBytes() { + java.lang.Object ref = severity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + severity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The severity of this bulletin as it relates to GKE.
+     * 
+ * + * string severity = 4; + * @param value The severity to set. + * @return This builder for chaining. + */ + public Builder setSeverity( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + severity_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The severity of this bulletin as it relates to GKE.
+     * 
+ * + * string severity = 4; + * @return This builder for chaining. + */ + public Builder clearSeverity() { + severity_ = getDefaultInstance().getSeverity(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * The severity of this bulletin as it relates to GKE.
+     * 
+ * + * string severity = 4; + * @param value The bytes for severity to set. + * @return This builder for chaining. + */ + public Builder setSeverityBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + severity_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object bulletinUri_ = ""; + /** + *
+     * The URI link to the bulletin on the website for more information.
+     * 
+ * + * string bulletin_uri = 5; + * @return The bulletinUri. + */ + public java.lang.String getBulletinUri() { + java.lang.Object ref = bulletinUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bulletinUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The URI link to the bulletin on the website for more information.
+     * 
+ * + * string bulletin_uri = 5; + * @return The bytes for bulletinUri. + */ + public com.google.protobuf.ByteString + getBulletinUriBytes() { + java.lang.Object ref = bulletinUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bulletinUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The URI link to the bulletin on the website for more information.
+     * 
+ * + * string bulletin_uri = 5; + * @param value The bulletinUri to set. + * @return This builder for chaining. + */ + public Builder setBulletinUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + bulletinUri_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * The URI link to the bulletin on the website for more information.
+     * 
+ * + * string bulletin_uri = 5; + * @return This builder for chaining. + */ + public Builder clearBulletinUri() { + bulletinUri_ = getDefaultInstance().getBulletinUri(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+     * The URI link to the bulletin on the website for more information.
+     * 
+ * + * string bulletin_uri = 5; + * @param value The bytes for bulletinUri to set. + * @return This builder for chaining. + */ + public Builder setBulletinUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + bulletinUri_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object briefDescription_ = ""; + /** + *
+     * A brief description of the bulletin. See the bulletin pointed to by the
+     * bulletin_uri field for an expanded description.
+     * 
+ * + * string brief_description = 6; + * @return The briefDescription. + */ + public java.lang.String getBriefDescription() { + java.lang.Object ref = briefDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + briefDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A brief description of the bulletin. See the bulletin pointed to by the
+     * bulletin_uri field for an expanded description.
+     * 
+ * + * string brief_description = 6; + * @return The bytes for briefDescription. + */ + public com.google.protobuf.ByteString + getBriefDescriptionBytes() { + java.lang.Object ref = briefDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + briefDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A brief description of the bulletin. See the bulletin pointed to by the
+     * bulletin_uri field for an expanded description.
+     * 
+ * + * string brief_description = 6; + * @param value The briefDescription to set. + * @return This builder for chaining. + */ + public Builder setBriefDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + briefDescription_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * A brief description of the bulletin. See the bulletin pointed to by the
+     * bulletin_uri field for an expanded description.
+     * 
+ * + * string brief_description = 6; + * @return This builder for chaining. + */ + public Builder clearBriefDescription() { + briefDescription_ = getDefaultInstance().getBriefDescription(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + *
+     * A brief description of the bulletin. See the bulletin pointed to by the
+     * bulletin_uri field for an expanded description.
+     * 
+ * + * string brief_description = 6; + * @param value The bytes for briefDescription to set. + * @return This builder for chaining. + */ + public Builder setBriefDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + briefDescription_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList affectedSupportedMinors_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureAffectedSupportedMinorsIsMutable() { + if (!affectedSupportedMinors_.isModifiable()) { + affectedSupportedMinors_ = new com.google.protobuf.LazyStringArrayList(affectedSupportedMinors_); + } + bitField0_ |= 0x00000040; + } + /** + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * @return A list containing the affectedSupportedMinors. + */ + public com.google.protobuf.ProtocolStringList + getAffectedSupportedMinorsList() { + affectedSupportedMinors_.makeImmutable(); + return affectedSupportedMinors_; + } + /** + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * @return The count of affectedSupportedMinors. + */ + public int getAffectedSupportedMinorsCount() { + return affectedSupportedMinors_.size(); + } + /** + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * @param index The index of the element to return. + * @return The affectedSupportedMinors at the given index. + */ + public java.lang.String getAffectedSupportedMinors(int index) { + return affectedSupportedMinors_.get(index); + } + /** + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * @param index The index of the value to return. + * @return The bytes of the affectedSupportedMinors at the given index. + */ + public com.google.protobuf.ByteString + getAffectedSupportedMinorsBytes(int index) { + return affectedSupportedMinors_.getByteString(index); + } + /** + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * @param index The index to set the value at. + * @param value The affectedSupportedMinors to set. + * @return This builder for chaining. + */ + public Builder setAffectedSupportedMinors( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureAffectedSupportedMinorsIsMutable(); + affectedSupportedMinors_.set(index, value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * @param value The affectedSupportedMinors to add. + * @return This builder for chaining. + */ + public Builder addAffectedSupportedMinors( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureAffectedSupportedMinorsIsMutable(); + affectedSupportedMinors_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * @param values The affectedSupportedMinors to add. + * @return This builder for chaining. + */ + public Builder addAllAffectedSupportedMinors( + java.lang.Iterable values) { + ensureAffectedSupportedMinorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, affectedSupportedMinors_); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * @return This builder for chaining. + */ + public Builder clearAffectedSupportedMinors() { + affectedSupportedMinors_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040);; + onChanged(); + return this; + } + /** + *
+     * The GKE minor versions affected by this vulnerability.
+     * 
+ * + * repeated string affected_supported_minors = 7; + * @param value The bytes of the affectedSupportedMinors to add. + * @return This builder for chaining. + */ + public Builder addAffectedSupportedMinorsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureAffectedSupportedMinorsIsMutable(); + affectedSupportedMinors_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList patchedVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensurePatchedVersionsIsMutable() { + if (!patchedVersions_.isModifiable()) { + patchedVersions_ = new com.google.protobuf.LazyStringArrayList(patchedVersions_); + } + bitField0_ |= 0x00000080; + } + /** + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * @return A list containing the patchedVersions. + */ + public com.google.protobuf.ProtocolStringList + getPatchedVersionsList() { + patchedVersions_.makeImmutable(); + return patchedVersions_; + } + /** + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * @return The count of patchedVersions. + */ + public int getPatchedVersionsCount() { + return patchedVersions_.size(); + } + /** + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * @param index The index of the element to return. + * @return The patchedVersions at the given index. + */ + public java.lang.String getPatchedVersions(int index) { + return patchedVersions_.get(index); + } + /** + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * @param index The index of the value to return. + * @return The bytes of the patchedVersions at the given index. + */ + public com.google.protobuf.ByteString + getPatchedVersionsBytes(int index) { + return patchedVersions_.getByteString(index); + } + /** + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * @param index The index to set the value at. + * @param value The patchedVersions to set. + * @return This builder for chaining. + */ + public Builder setPatchedVersions( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensurePatchedVersionsIsMutable(); + patchedVersions_.set(index, value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * @param value The patchedVersions to add. + * @return This builder for chaining. + */ + public Builder addPatchedVersions( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensurePatchedVersionsIsMutable(); + patchedVersions_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * @param values The patchedVersions to add. + * @return This builder for chaining. + */ + public Builder addAllPatchedVersions( + java.lang.Iterable values) { + ensurePatchedVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, patchedVersions_); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * @return This builder for chaining. + */ + public Builder clearPatchedVersions() { + patchedVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080);; + onChanged(); + return this; + } + /** + *
+     * The GKE versions where this vulnerability is patched.
+     * 
+ * + * repeated string patched_versions = 8; + * @param value The bytes of the patchedVersions to add. + * @return This builder for chaining. + */ + public Builder addPatchedVersionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensurePatchedVersionsIsMutable(); + patchedVersions_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object suggestedUpgradeTarget_ = ""; + /** + *
+     * This represents a version selected from the patched_versions field that
+     * the cluster receiving this notification should most likely want to upgrade
+     * to based on its current version. Note that if this notification is being
+     * received by a given cluster, it means that this version is currently
+     * available as an upgrade target in that cluster's location.
+     * 
+ * + * string suggested_upgrade_target = 9; + * @return The suggestedUpgradeTarget. + */ + public java.lang.String getSuggestedUpgradeTarget() { + java.lang.Object ref = suggestedUpgradeTarget_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + suggestedUpgradeTarget_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * This represents a version selected from the patched_versions field that
+     * the cluster receiving this notification should most likely want to upgrade
+     * to based on its current version. Note that if this notification is being
+     * received by a given cluster, it means that this version is currently
+     * available as an upgrade target in that cluster's location.
+     * 
+ * + * string suggested_upgrade_target = 9; + * @return The bytes for suggestedUpgradeTarget. + */ + public com.google.protobuf.ByteString + getSuggestedUpgradeTargetBytes() { + java.lang.Object ref = suggestedUpgradeTarget_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + suggestedUpgradeTarget_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * This represents a version selected from the patched_versions field that
+     * the cluster receiving this notification should most likely want to upgrade
+     * to based on its current version. Note that if this notification is being
+     * received by a given cluster, it means that this version is currently
+     * available as an upgrade target in that cluster's location.
+     * 
+ * + * string suggested_upgrade_target = 9; + * @param value The suggestedUpgradeTarget to set. + * @return This builder for chaining. + */ + public Builder setSuggestedUpgradeTarget( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + suggestedUpgradeTarget_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * This represents a version selected from the patched_versions field that
+     * the cluster receiving this notification should most likely want to upgrade
+     * to based on its current version. Note that if this notification is being
+     * received by a given cluster, it means that this version is currently
+     * available as an upgrade target in that cluster's location.
+     * 
+ * + * string suggested_upgrade_target = 9; + * @return This builder for chaining. + */ + public Builder clearSuggestedUpgradeTarget() { + suggestedUpgradeTarget_ = getDefaultInstance().getSuggestedUpgradeTarget(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + *
+     * This represents a version selected from the patched_versions field that
+     * the cluster receiving this notification should most likely want to upgrade
+     * to based on its current version. Note that if this notification is being
+     * received by a given cluster, it means that this version is currently
+     * available as an upgrade target in that cluster's location.
+     * 
+ * + * string suggested_upgrade_target = 9; + * @param value The bytes for suggestedUpgradeTarget to set. + * @return This builder for chaining. + */ + public Builder setSuggestedUpgradeTargetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + suggestedUpgradeTarget_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private boolean manualStepsRequired_ ; + /** + *
+     * If this field is specified, it means there are manual steps that the user
+     * must take to make their clusters safe.
+     * 
+ * + * bool manual_steps_required = 10; + * @return The manualStepsRequired. + */ + @java.lang.Override + public boolean getManualStepsRequired() { + return manualStepsRequired_; + } + /** + *
+     * If this field is specified, it means there are manual steps that the user
+     * must take to make their clusters safe.
+     * 
+ * + * bool manual_steps_required = 10; + * @param value The manualStepsRequired to set. + * @return This builder for chaining. + */ + public Builder setManualStepsRequired(boolean value) { + + manualStepsRequired_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * If this field is specified, it means there are manual steps that the user
+     * must take to make their clusters safe.
+     * 
+ * + * bool manual_steps_required = 10; + * @return This builder for chaining. + */ + public Builder clearManualStepsRequired() { + bitField0_ = (bitField0_ & ~0x00000200); + manualStepsRequired_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.SecurityBulletinEvent) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SecurityBulletinEvent) + private static final com.google.container.v1beta1.SecurityBulletinEvent DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SecurityBulletinEvent(); + } + + public static com.google.container.v1beta1.SecurityBulletinEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecurityBulletinEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1beta1.SecurityBulletinEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SecurityBulletinEventOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SecurityBulletinEventOrBuilder.java new file mode 100644 index 000000000000..b1fe3d0b9af4 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SecurityBulletinEventOrBuilder.java @@ -0,0 +1,278 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface SecurityBulletinEventOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SecurityBulletinEvent) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The resource type (node/control plane) that has the vulnerability. Multiple
+   * notifications (1 notification per resource type) will be sent for a
+   * vulnerability that affects > 1 resource type.
+   * 
+ * + * string resource_type_affected = 1; + * @return The resourceTypeAffected. + */ + java.lang.String getResourceTypeAffected(); + /** + *
+   * The resource type (node/control plane) that has the vulnerability. Multiple
+   * notifications (1 notification per resource type) will be sent for a
+   * vulnerability that affects > 1 resource type.
+   * 
+ * + * string resource_type_affected = 1; + * @return The bytes for resourceTypeAffected. + */ + com.google.protobuf.ByteString + getResourceTypeAffectedBytes(); + + /** + *
+   * The ID of the bulletin corresponding to the vulnerability.
+   * 
+ * + * string bulletin_id = 2; + * @return The bulletinId. + */ + java.lang.String getBulletinId(); + /** + *
+   * The ID of the bulletin corresponding to the vulnerability.
+   * 
+ * + * string bulletin_id = 2; + * @return The bytes for bulletinId. + */ + com.google.protobuf.ByteString + getBulletinIdBytes(); + + /** + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * @return A list containing the cveIds. + */ + java.util.List + getCveIdsList(); + /** + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * @return The count of cveIds. + */ + int getCveIdsCount(); + /** + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * @param index The index of the element to return. + * @return The cveIds at the given index. + */ + java.lang.String getCveIds(int index); + /** + *
+   * The CVEs associated with this bulletin.
+   * 
+ * + * repeated string cve_ids = 3; + * @param index The index of the value to return. + * @return The bytes of the cveIds at the given index. + */ + com.google.protobuf.ByteString + getCveIdsBytes(int index); + + /** + *
+   * The severity of this bulletin as it relates to GKE.
+   * 
+ * + * string severity = 4; + * @return The severity. + */ + java.lang.String getSeverity(); + /** + *
+   * The severity of this bulletin as it relates to GKE.
+   * 
+ * + * string severity = 4; + * @return The bytes for severity. + */ + com.google.protobuf.ByteString + getSeverityBytes(); + + /** + *
+   * The URI link to the bulletin on the website for more information.
+   * 
+ * + * string bulletin_uri = 5; + * @return The bulletinUri. + */ + java.lang.String getBulletinUri(); + /** + *
+   * The URI link to the bulletin on the website for more information.
+   * 
+ * + * string bulletin_uri = 5; + * @return The bytes for bulletinUri. + */ + com.google.protobuf.ByteString + getBulletinUriBytes(); + + /** + *
+   * A brief description of the bulletin. See the bulletin pointed to by the
+   * bulletin_uri field for an expanded description.
+   * 
+ * + * string brief_description = 6; + * @return The briefDescription. + */ + java.lang.String getBriefDescription(); + /** + *
+   * A brief description of the bulletin. See the bulletin pointed to by the
+   * bulletin_uri field for an expanded description.
+   * 
+ * + * string brief_description = 6; + * @return The bytes for briefDescription. + */ + com.google.protobuf.ByteString + getBriefDescriptionBytes(); + + /** + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * @return A list containing the affectedSupportedMinors. + */ + java.util.List + getAffectedSupportedMinorsList(); + /** + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * @return The count of affectedSupportedMinors. + */ + int getAffectedSupportedMinorsCount(); + /** + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * @param index The index of the element to return. + * @return The affectedSupportedMinors at the given index. + */ + java.lang.String getAffectedSupportedMinors(int index); + /** + *
+   * The GKE minor versions affected by this vulnerability.
+   * 
+ * + * repeated string affected_supported_minors = 7; + * @param index The index of the value to return. + * @return The bytes of the affectedSupportedMinors at the given index. + */ + com.google.protobuf.ByteString + getAffectedSupportedMinorsBytes(int index); + + /** + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * @return A list containing the patchedVersions. + */ + java.util.List + getPatchedVersionsList(); + /** + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * @return The count of patchedVersions. + */ + int getPatchedVersionsCount(); + /** + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * @param index The index of the element to return. + * @return The patchedVersions at the given index. + */ + java.lang.String getPatchedVersions(int index); + /** + *
+   * The GKE versions where this vulnerability is patched.
+   * 
+ * + * repeated string patched_versions = 8; + * @param index The index of the value to return. + * @return The bytes of the patchedVersions at the given index. + */ + com.google.protobuf.ByteString + getPatchedVersionsBytes(int index); + + /** + *
+   * This represents a version selected from the patched_versions field that
+   * the cluster receiving this notification should most likely want to upgrade
+   * to based on its current version. Note that if this notification is being
+   * received by a given cluster, it means that this version is currently
+   * available as an upgrade target in that cluster's location.
+   * 
+ * + * string suggested_upgrade_target = 9; + * @return The suggestedUpgradeTarget. + */ + java.lang.String getSuggestedUpgradeTarget(); + /** + *
+   * This represents a version selected from the patched_versions field that
+   * the cluster receiving this notification should most likely want to upgrade
+   * to based on its current version. Note that if this notification is being
+   * received by a given cluster, it means that this version is currently
+   * available as an upgrade target in that cluster's location.
+   * 
+ * + * string suggested_upgrade_target = 9; + * @return The bytes for suggestedUpgradeTarget. + */ + com.google.protobuf.ByteString + getSuggestedUpgradeTargetBytes(); + + /** + *
+   * If this field is specified, it means there are manual steps that the user
+   * must take to make their clusters safe.
+   * 
+ * + * bool manual_steps_required = 10; + * @return The manualStepsRequired. + */ + boolean getManualStepsRequired(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SecurityPostureConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SecurityPostureConfig.java new file mode 100644 index 000000000000..db09c620ccec --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SecurityPostureConfig.java @@ -0,0 +1,1028 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * SecurityPostureConfig defines the flags needed to enable/disable features for
+ * the Security Posture API.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SecurityPostureConfig} + */ +public final class SecurityPostureConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SecurityPostureConfig) + SecurityPostureConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use SecurityPostureConfig.newBuilder() to construct. + private SecurityPostureConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SecurityPostureConfig() { + mode_ = 0; + vulnerabilityMode_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SecurityPostureConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SecurityPostureConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SecurityPostureConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SecurityPostureConfig.class, com.google.container.v1beta1.SecurityPostureConfig.Builder.class); + } + + /** + *
+   * Mode defines enablement mode for GKE Security posture features.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.SecurityPostureConfig.Mode} + */ + public enum Mode + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Default value not specified.
+     * 
+ * + * MODE_UNSPECIFIED = 0; + */ + MODE_UNSPECIFIED(0), + /** + *
+     * Disables Security Posture features on the cluster.
+     * 
+ * + * DISABLED = 1; + */ + DISABLED(1), + /** + *
+     * Applies Security Posture features on the cluster.
+     * 
+ * + * BASIC = 2; + */ + BASIC(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Default value not specified.
+     * 
+ * + * MODE_UNSPECIFIED = 0; + */ + public static final int MODE_UNSPECIFIED_VALUE = 0; + /** + *
+     * Disables Security Posture features on the cluster.
+     * 
+ * + * DISABLED = 1; + */ + public static final int DISABLED_VALUE = 1; + /** + *
+     * Applies Security Posture features on the cluster.
+     * 
+ * + * BASIC = 2; + */ + public static final int BASIC_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 DISABLED; + case 2: return BASIC; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Mode> 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.SecurityPostureConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final Mode[] VALUES = values(); + + public static Mode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Mode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.SecurityPostureConfig.Mode) + } + + /** + *
+   * VulnerabilityMode defines enablement mode for vulnerability scanning.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode} + */ + public enum VulnerabilityMode + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Default value not specified.
+     * 
+ * + * VULNERABILITY_MODE_UNSPECIFIED = 0; + */ + VULNERABILITY_MODE_UNSPECIFIED(0), + /** + *
+     * Disables vulnerability scanning on the cluster.
+     * 
+ * + * VULNERABILITY_DISABLED = 1; + */ + VULNERABILITY_DISABLED(1), + /** + *
+     * Applies basic vulnerability scanning on the cluster.
+     * 
+ * + * VULNERABILITY_BASIC = 2; + */ + VULNERABILITY_BASIC(2), + /** + *
+     * Applies the Security Posture's vulnerability on cluster Enterprise level
+     * features.
+     * 
+ * + * VULNERABILITY_ENTERPRISE = 3; + */ + VULNERABILITY_ENTERPRISE(3), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Default value not specified.
+     * 
+ * + * VULNERABILITY_MODE_UNSPECIFIED = 0; + */ + public static final int VULNERABILITY_MODE_UNSPECIFIED_VALUE = 0; + /** + *
+     * Disables vulnerability scanning on the cluster.
+     * 
+ * + * VULNERABILITY_DISABLED = 1; + */ + public static final int VULNERABILITY_DISABLED_VALUE = 1; + /** + *
+     * Applies basic vulnerability scanning on the cluster.
+     * 
+ * + * VULNERABILITY_BASIC = 2; + */ + public static final int VULNERABILITY_BASIC_VALUE = 2; + /** + *
+     * Applies the Security Posture's vulnerability on cluster Enterprise level
+     * features.
+     * 
+ * + * VULNERABILITY_ENTERPRISE = 3; + */ + public static final int VULNERABILITY_ENTERPRISE_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 VulnerabilityMode 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 VulnerabilityMode forNumber(int value) { + switch (value) { + case 0: return VULNERABILITY_MODE_UNSPECIFIED; + case 1: return VULNERABILITY_DISABLED; + case 2: return VULNERABILITY_BASIC; + case 3: return VULNERABILITY_ENTERPRISE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + VulnerabilityMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public VulnerabilityMode findValueByNumber(int number) { + return VulnerabilityMode.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.SecurityPostureConfig.getDescriptor().getEnumTypes().get(1); + } + + private static final VulnerabilityMode[] VALUES = values(); + + public static VulnerabilityMode 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 VulnerabilityMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode) + } + + private int bitField0_; + public static final int MODE_FIELD_NUMBER = 1; + private int mode_ = 0; + /** + *
+   * Sets which mode to use for Security Posture features.
+   * 
+ * + * optional .google.container.v1beta1.SecurityPostureConfig.Mode mode = 1; + * @return Whether the mode field is set. + */ + @java.lang.Override public boolean hasMode() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Sets which mode to use for Security Posture features.
+   * 
+ * + * optional .google.container.v1beta1.SecurityPostureConfig.Mode mode = 1; + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override public int getModeValue() { + return mode_; + } + /** + *
+   * Sets which mode to use for Security Posture features.
+   * 
+ * + * optional .google.container.v1beta1.SecurityPostureConfig.Mode mode = 1; + * @return The mode. + */ + @java.lang.Override public com.google.container.v1beta1.SecurityPostureConfig.Mode getMode() { + com.google.container.v1beta1.SecurityPostureConfig.Mode result = com.google.container.v1beta1.SecurityPostureConfig.Mode.forNumber(mode_); + return result == null ? com.google.container.v1beta1.SecurityPostureConfig.Mode.UNRECOGNIZED : result; + } + + public static final int VULNERABILITY_MODE_FIELD_NUMBER = 2; + private int vulnerabilityMode_ = 0; + /** + *
+   * Sets which mode to use for vulnerability scanning.
+   * 
+ * + * optional .google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * @return Whether the vulnerabilityMode field is set. + */ + @java.lang.Override public boolean hasVulnerabilityMode() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * Sets which mode to use for vulnerability scanning.
+   * 
+ * + * optional .google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * @return The enum numeric value on the wire for vulnerabilityMode. + */ + @java.lang.Override public int getVulnerabilityModeValue() { + return vulnerabilityMode_; + } + /** + *
+   * Sets which mode to use for vulnerability scanning.
+   * 
+ * + * optional .google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * @return The vulnerabilityMode. + */ + @java.lang.Override public com.google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode getVulnerabilityMode() { + com.google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode result = com.google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode.forNumber(vulnerabilityMode_); + return result == null ? com.google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode.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 (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, mode_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(2, vulnerabilityMode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, mode_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, vulnerabilityMode_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.SecurityPostureConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.SecurityPostureConfig other = (com.google.container.v1beta1.SecurityPostureConfig) obj; + + if (hasMode() != other.hasMode()) return false; + if (hasMode()) { + if (mode_ != other.mode_) return false; + } + if (hasVulnerabilityMode() != other.hasVulnerabilityMode()) return false; + if (hasVulnerabilityMode()) { + if (vulnerabilityMode_ != other.vulnerabilityMode_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMode()) { + hash = (37 * hash) + MODE_FIELD_NUMBER; + hash = (53 * hash) + mode_; + } + if (hasVulnerabilityMode()) { + hash = (37 * hash) + VULNERABILITY_MODE_FIELD_NUMBER; + hash = (53 * hash) + vulnerabilityMode_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.SecurityPostureConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SecurityPostureConfig parseFrom( + 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.SecurityPostureConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SecurityPostureConfig parseFrom( + com.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.SecurityPostureConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SecurityPostureConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SecurityPostureConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SecurityPostureConfig parseFrom( + java.io.InputStream 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.SecurityPostureConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SecurityPostureConfig parseDelimitedFrom( + java.io.InputStream 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.SecurityPostureConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SecurityPostureConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.SecurityPostureConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * SecurityPostureConfig defines the flags needed to enable/disable features for
+   * the Security Posture API.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.SecurityPostureConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.SecurityPostureConfig) + com.google.container.v1beta1.SecurityPostureConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SecurityPostureConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SecurityPostureConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SecurityPostureConfig.class, com.google.container.v1beta1.SecurityPostureConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.SecurityPostureConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + mode_ = 0; + vulnerabilityMode_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SecurityPostureConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SecurityPostureConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.SecurityPostureConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SecurityPostureConfig build() { + com.google.container.v1beta1.SecurityPostureConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SecurityPostureConfig buildPartial() { + com.google.container.v1beta1.SecurityPostureConfig result = new com.google.container.v1beta1.SecurityPostureConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.SecurityPostureConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mode_ = mode_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.vulnerabilityMode_ = vulnerabilityMode_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @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.SecurityPostureConfig) { + return mergeFrom((com.google.container.v1beta1.SecurityPostureConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SecurityPostureConfig other) { + if (other == com.google.container.v1beta1.SecurityPostureConfig.getDefaultInstance()) return this; + if (other.hasMode()) { + setMode(other.getMode()); + } + if (other.hasVulnerabilityMode()) { + setVulnerabilityMode(other.getVulnerabilityMode()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + mode_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + vulnerabilityMode_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int mode_ = 0; + /** + *
+     * Sets which mode to use for Security Posture features.
+     * 
+ * + * optional .google.container.v1beta1.SecurityPostureConfig.Mode mode = 1; + * @return Whether the mode field is set. + */ + @java.lang.Override public boolean hasMode() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Sets which mode to use for Security Posture features.
+     * 
+ * + * optional .google.container.v1beta1.SecurityPostureConfig.Mode mode = 1; + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override public int getModeValue() { + return mode_; + } + /** + *
+     * Sets which mode to use for Security Posture features.
+     * 
+ * + * optional .google.container.v1beta1.SecurityPostureConfig.Mode mode = 1; + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Sets which mode to use for Security Posture features.
+     * 
+ * + * optional .google.container.v1beta1.SecurityPostureConfig.Mode mode = 1; + * @return The mode. + */ + @java.lang.Override + public com.google.container.v1beta1.SecurityPostureConfig.Mode getMode() { + com.google.container.v1beta1.SecurityPostureConfig.Mode result = com.google.container.v1beta1.SecurityPostureConfig.Mode.forNumber(mode_); + return result == null ? com.google.container.v1beta1.SecurityPostureConfig.Mode.UNRECOGNIZED : result; + } + /** + *
+     * Sets which mode to use for Security Posture features.
+     * 
+ * + * optional .google.container.v1beta1.SecurityPostureConfig.Mode mode = 1; + * @param value The mode to set. + * @return This builder for chaining. + */ + public Builder setMode(com.google.container.v1beta1.SecurityPostureConfig.Mode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + mode_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Sets which mode to use for Security Posture features.
+     * 
+ * + * optional .google.container.v1beta1.SecurityPostureConfig.Mode mode = 1; + * @return This builder for chaining. + */ + public Builder clearMode() { + bitField0_ = (bitField0_ & ~0x00000001); + mode_ = 0; + onChanged(); + return this; + } + + private int vulnerabilityMode_ = 0; + /** + *
+     * Sets which mode to use for vulnerability scanning.
+     * 
+ * + * optional .google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * @return Whether the vulnerabilityMode field is set. + */ + @java.lang.Override public boolean hasVulnerabilityMode() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Sets which mode to use for vulnerability scanning.
+     * 
+ * + * optional .google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * @return The enum numeric value on the wire for vulnerabilityMode. + */ + @java.lang.Override public int getVulnerabilityModeValue() { + return vulnerabilityMode_; + } + /** + *
+     * Sets which mode to use for vulnerability scanning.
+     * 
+ * + * optional .google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * @param value The enum numeric value on the wire for vulnerabilityMode to set. + * @return This builder for chaining. + */ + public Builder setVulnerabilityModeValue(int value) { + vulnerabilityMode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Sets which mode to use for vulnerability scanning.
+     * 
+ * + * optional .google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * @return The vulnerabilityMode. + */ + @java.lang.Override + public com.google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode getVulnerabilityMode() { + com.google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode result = com.google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode.forNumber(vulnerabilityMode_); + return result == null ? com.google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode.UNRECOGNIZED : result; + } + /** + *
+     * Sets which mode to use for vulnerability scanning.
+     * 
+ * + * optional .google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * @param value The vulnerabilityMode to set. + * @return This builder for chaining. + */ + public Builder setVulnerabilityMode(com.google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + vulnerabilityMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Sets which mode to use for vulnerability scanning.
+     * 
+ * + * optional .google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * @return This builder for chaining. + */ + public Builder clearVulnerabilityMode() { + bitField0_ = (bitField0_ & ~0x00000002); + vulnerabilityMode_ = 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.SecurityPostureConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SecurityPostureConfig) + private static final com.google.container.v1beta1.SecurityPostureConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SecurityPostureConfig(); + } + + public static com.google.container.v1beta1.SecurityPostureConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecurityPostureConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.SecurityPostureConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SecurityPostureConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SecurityPostureConfigOrBuilder.java new file mode 100644 index 000000000000..e076ecc4985b --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SecurityPostureConfigOrBuilder.java @@ -0,0 +1,66 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface SecurityPostureConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SecurityPostureConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Sets which mode to use for Security Posture features.
+   * 
+ * + * optional .google.container.v1beta1.SecurityPostureConfig.Mode mode = 1; + * @return Whether the mode field is set. + */ + boolean hasMode(); + /** + *
+   * Sets which mode to use for Security Posture features.
+   * 
+ * + * optional .google.container.v1beta1.SecurityPostureConfig.Mode mode = 1; + * @return The enum numeric value on the wire for mode. + */ + int getModeValue(); + /** + *
+   * Sets which mode to use for Security Posture features.
+   * 
+ * + * optional .google.container.v1beta1.SecurityPostureConfig.Mode mode = 1; + * @return The mode. + */ + com.google.container.v1beta1.SecurityPostureConfig.Mode getMode(); + + /** + *
+   * Sets which mode to use for vulnerability scanning.
+   * 
+ * + * optional .google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * @return Whether the vulnerabilityMode field is set. + */ + boolean hasVulnerabilityMode(); + /** + *
+   * Sets which mode to use for vulnerability scanning.
+   * 
+ * + * optional .google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * @return The enum numeric value on the wire for vulnerabilityMode. + */ + int getVulnerabilityModeValue(); + /** + *
+   * Sets which mode to use for vulnerability scanning.
+   * 
+ * + * optional .google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; + * @return The vulnerabilityMode. + */ + com.google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode getVulnerabilityMode(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ServerConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ServerConfig.java new file mode 100644 index 000000000000..a6ce07cd179d --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ServerConfig.java @@ -0,0 +1,4610 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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.emptyList(); + defaultImageType_ = ""; + validImageTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + validMasterVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + channels_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ServerConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ServerConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 10: + return internalGetWindowsVersionMaps(); + 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_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 + 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.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ReleaseChannelConfig(); + } + + 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(); + } + + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, reason_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, reason_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.version_ = version_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.reason_ = reason_; + } + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getReason().isEmpty()) { + reason_ = other.reason_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + version_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + reason_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * Kubernetes version.
+         * 
+ * + * string version = 1; + * @return This builder for chaining. + */ + public Builder clearVersion() { + version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+         * Reason for availability.
+         * 
+ * + * string reason = 2; + * @return This builder for chaining. + */ + public Builder clearReason() { + reason_ = getDefaultInstance().getReason(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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_ = 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; + * @return The channel. + */ + @java.lang.Override public com.google.container.v1beta1.ReleaseChannel.Channel getChannel() { + com.google.container.v1beta1.ReleaseChannel.Channel result = com.google.container.v1beta1.ReleaseChannel.Channel.forNumber(channel_); + return result == null ? com.google.container.v1beta1.ReleaseChannel.Channel.UNRECOGNIZED : result; + } + + public static final int DEFAULT_VERSION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + private java.util.List 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 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 + 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; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList validVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+     * 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultVersion_)) { + 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)); + } + getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultVersion_)) { + 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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + channel_ = 0; + defaultVersion_ = ""; + if (availableVersionsBuilder_ == null) { + availableVersions_ = java.util.Collections.emptyList(); + } else { + availableVersions_ = null; + availableVersionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + validVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + 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); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig result) { + if (availableVersionsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + availableVersions_ = java.util.Collections.unmodifiableList(availableVersions_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.availableVersions_ = availableVersions_; + } else { + result.availableVersions_ = availableVersionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.channel_ = channel_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.defaultVersion_ = defaultVersion_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + validVersions_.makeImmutable(); + result.validVersions_ = validVersions_; + } + } + + @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_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (availableVersionsBuilder_ == null) { + if (!other.availableVersions_.isEmpty()) { + if (availableVersions_.isEmpty()) { + availableVersions_ = other.availableVersions_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureAvailableVersionsIsMutable(); + availableVersions_.addAll(other.availableVersions_); + } + onChanged(); + } + } else { + if (!other.availableVersions_.isEmpty()) { + if (availableVersionsBuilder_.isEmpty()) { + availableVersionsBuilder_.dispose(); + availableVersionsBuilder_ = null; + availableVersions_ = other.availableVersions_; + bitField0_ = (bitField0_ & ~0x00000004); + availableVersionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAvailableVersionsFieldBuilder() : null; + } else { + availableVersionsBuilder_.addAllMessages(other.availableVersions_); + } + } + } + if (!other.validVersions_.isEmpty()) { + if (validVersions_.isEmpty()) { + validVersions_ = other.validVersions_; + bitField0_ |= 0x00000008; + } else { + ensureValidVersionsIsMutable(); + validVersions_.addAll(other.validVersions_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + channel_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + defaultVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion m = + input.readMessage( + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.AvailableVersion.parser(), + extensionRegistry); + if (availableVersionsBuilder_ == null) { + ensureAvailableVersionsIsMutable(); + availableVersions_.add(m); + } else { + availableVersionsBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureValidVersionsIsMutable(); + validVersions_.add(s); + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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; + bitField0_ |= 0x00000001; + 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() { + com.google.container.v1beta1.ReleaseChannel.Channel result = com.google.container.v1beta1.ReleaseChannel.Channel.forNumber(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(); + } + bitField0_ |= 0x00000001; + 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() { + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000002; + 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(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List availableVersions_ = + java.util.Collections.emptyList(); + private void ensureAvailableVersionsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + availableVersions_ = new java.util.ArrayList(availableVersions_); + bitField0_ |= 0x00000004; + } + } + + 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 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 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_ & ~0x00000004); + 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 + 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 + 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_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + availableVersions_ = null; + } + return availableVersionsBuilder_; + } + + private com.google.protobuf.LazyStringArrayList validVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureValidVersionsIsMutable() { + if (!validVersions_.isModifiable()) { + validVersions_ = new com.google.protobuf.LazyStringArrayList(validVersions_); + } + bitField0_ |= 0x00000008; + } + /** + *
+       * List of valid versions for the channel.
+       * 
+ * + * repeated string valid_versions = 4; + * @return A list containing the validVersions. + */ + public com.google.protobuf.ProtocolStringList + getValidVersionsList() { + validVersions_.makeImmutable(); + 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); + } + /** + *
+       * 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); + bitField0_ |= 0x00000008; + 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); + bitField0_ |= 0x00000008; + 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_); + bitField0_ |= 0x00000008; + 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.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; + 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); + bitField0_ |= 0x00000008; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList validNodeVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList validImageTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * 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; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList validMasterVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * 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; + @SuppressWarnings("serial") + 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 + 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); + } + + public static final int WINDOWS_VERSION_MAPS_FIELD_NUMBER = 10; + private static final class WindowsVersionMapsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.container.v1beta1.WindowsVersions> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ServerConfig_WindowsVersionMapsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.container.v1beta1.WindowsVersions.getDefaultInstance()); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.container.v1beta1.WindowsVersions> windowsVersionMaps_; + private com.google.protobuf.MapField + internalGetWindowsVersionMaps() { + if (windowsVersionMaps_ == null) { + return com.google.protobuf.MapField.emptyMapField( + WindowsVersionMapsDefaultEntryHolder.defaultEntry); + } + return windowsVersionMaps_; + } + public int getWindowsVersionMapsCount() { + return internalGetWindowsVersionMaps().getMap().size(); + } + /** + *
+   * Maps of Kubernetes version and supported Windows server versions.
+   * 
+ * + * map<string, .google.container.v1beta1.WindowsVersions> windows_version_maps = 10; + */ + @java.lang.Override + public boolean containsWindowsVersionMaps( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetWindowsVersionMaps().getMap().containsKey(key); + } + /** + * Use {@link #getWindowsVersionMapsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getWindowsVersionMaps() { + return getWindowsVersionMapsMap(); + } + /** + *
+   * Maps of Kubernetes version and supported Windows server versions.
+   * 
+ * + * map<string, .google.container.v1beta1.WindowsVersions> windows_version_maps = 10; + */ + @java.lang.Override + public java.util.Map getWindowsVersionMapsMap() { + return internalGetWindowsVersionMaps().getMap(); + } + /** + *
+   * Maps of Kubernetes version and supported Windows server versions.
+   * 
+ * + * map<string, .google.container.v1beta1.WindowsVersions> windows_version_maps = 10; + */ + @java.lang.Override + public /* nullable */ +com.google.container.v1beta1.WindowsVersions getWindowsVersionMapsOrDefault( + java.lang.String key, + /* nullable */ +com.google.container.v1beta1.WindowsVersions defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetWindowsVersionMaps().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * Maps of Kubernetes version and supported Windows server versions.
+   * 
+ * + * map<string, .google.container.v1beta1.WindowsVersions> windows_version_maps = 10; + */ + @java.lang.Override + public com.google.container.v1beta1.WindowsVersions getWindowsVersionMapsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetWindowsVersionMaps().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultClusterVersion_)) { + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultImageType_)) { + 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)); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetWindowsVersionMaps(), + WindowsVersionMapsDefaultEntryHolder.defaultEntry, + 10); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultClusterVersion_)) { + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultImageType_)) { + 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)); + } + for (java.util.Map.Entry entry + : internalGetWindowsVersionMaps().getMap().entrySet()) { + com.google.protobuf.MapEntry + windowsVersionMaps__ = WindowsVersionMapsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, windowsVersionMaps__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!internalGetWindowsVersionMaps().equals( + other.internalGetWindowsVersionMaps())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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(); + } + if (!internalGetWindowsVersionMaps().getMap().isEmpty()) { + hash = (37 * hash) + WINDOWS_VERSION_MAPS_FIELD_NUMBER; + hash = (53 * hash) + internalGetWindowsVersionMaps().hashCode(); + } + hash = (29 * hash) + getUnknownFields().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; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 10: + return internalGetWindowsVersionMaps(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 10: + return internalGetMutableWindowsVersionMaps(); + 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_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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + defaultClusterVersion_ = ""; + validNodeVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + defaultImageType_ = ""; + validImageTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + validMasterVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + if (channelsBuilder_ == null) { + channels_ = java.util.Collections.emptyList(); + } else { + channels_ = null; + channelsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + internalGetMutableWindowsVersionMaps().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); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1beta1.ServerConfig result) { + if (channelsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + channels_ = java.util.Collections.unmodifiableList(channels_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.channels_ = channels_; + } else { + result.channels_ = channelsBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1beta1.ServerConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.defaultClusterVersion_ = defaultClusterVersion_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + validNodeVersions_.makeImmutable(); + result.validNodeVersions_ = validNodeVersions_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.defaultImageType_ = defaultImageType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + validImageTypes_.makeImmutable(); + result.validImageTypes_ = validImageTypes_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + validMasterVersions_.makeImmutable(); + result.validMasterVersions_ = validMasterVersions_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.windowsVersionMaps_ = internalGetWindowsVersionMaps().build(WindowsVersionMapsDefaultEntryHolder.defaultEntry); + } + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.validNodeVersions_.isEmpty()) { + if (validNodeVersions_.isEmpty()) { + validNodeVersions_ = other.validNodeVersions_; + bitField0_ |= 0x00000002; + } else { + ensureValidNodeVersionsIsMutable(); + validNodeVersions_.addAll(other.validNodeVersions_); + } + onChanged(); + } + if (!other.getDefaultImageType().isEmpty()) { + defaultImageType_ = other.defaultImageType_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.validImageTypes_.isEmpty()) { + if (validImageTypes_.isEmpty()) { + validImageTypes_ = other.validImageTypes_; + bitField0_ |= 0x00000008; + } else { + ensureValidImageTypesIsMutable(); + validImageTypes_.addAll(other.validImageTypes_); + } + onChanged(); + } + if (!other.validMasterVersions_.isEmpty()) { + if (validMasterVersions_.isEmpty()) { + validMasterVersions_ = other.validMasterVersions_; + bitField0_ |= 0x00000010; + } else { + ensureValidMasterVersionsIsMutable(); + validMasterVersions_.addAll(other.validMasterVersions_); + } + onChanged(); + } + if (channelsBuilder_ == null) { + if (!other.channels_.isEmpty()) { + if (channels_.isEmpty()) { + channels_ = other.channels_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureChannelsIsMutable(); + channels_.addAll(other.channels_); + } + onChanged(); + } + } else { + if (!other.channels_.isEmpty()) { + if (channelsBuilder_.isEmpty()) { + channelsBuilder_.dispose(); + channelsBuilder_ = null; + channels_ = other.channels_; + bitField0_ = (bitField0_ & ~0x00000020); + channelsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getChannelsFieldBuilder() : null; + } else { + channelsBuilder_.addAllMessages(other.channels_); + } + } + } + internalGetMutableWindowsVersionMaps().mergeFrom( + other.internalGetWindowsVersionMaps()); + bitField0_ |= 0x00000040; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + defaultClusterVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureValidNodeVersionsIsMutable(); + validNodeVersions_.add(s); + break; + } // case 26 + case 34: { + defaultImageType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + ensureValidImageTypesIsMutable(); + validImageTypes_.add(s); + break; + } // case 42 + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + ensureValidMasterVersionsIsMutable(); + validMasterVersions_.add(s); + break; + } // case 50 + case 74: { + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig m = + input.readMessage( + com.google.container.v1beta1.ServerConfig.ReleaseChannelConfig.parser(), + extensionRegistry); + if (channelsBuilder_ == null) { + ensureChannelsIsMutable(); + channels_.add(m); + } else { + channelsBuilder_.addMessage(m); + } + break; + } // case 74 + case 82: { + com.google.protobuf.MapEntry + windowsVersionMaps__ = input.readMessage( + WindowsVersionMapsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableWindowsVersionMaps().ensureBuilderMap().put( + windowsVersionMaps__.getKey(), windowsVersionMaps__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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; + bitField0_ |= 0x00000001; + 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(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList validNodeVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureValidNodeVersionsIsMutable() { + if (!validNodeVersions_.isModifiable()) { + validNodeVersions_ = new com.google.protobuf.LazyStringArrayList(validNodeVersions_); + } + bitField0_ |= 0x00000002; + } + /** + *
+     * 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() { + validNodeVersions_.makeImmutable(); + 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); + } + /** + *
+     * 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); + bitField0_ |= 0x00000002; + 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); + bitField0_ |= 0x00000002; + 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_); + bitField0_ |= 0x00000002; + 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.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; + 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); + bitField0_ |= 0x00000002; + 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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Default image type.
+     * 
+ * + * string default_image_type = 4; + * @return This builder for chaining. + */ + public Builder clearDefaultImageType() { + defaultImageType_ = getDefaultInstance().getDefaultImageType(); + bitField0_ = (bitField0_ & ~0x00000004); + 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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList validImageTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureValidImageTypesIsMutable() { + if (!validImageTypes_.isModifiable()) { + validImageTypes_ = new com.google.protobuf.LazyStringArrayList(validImageTypes_); + } + bitField0_ |= 0x00000008; + } + /** + *
+     * List of valid image types.
+     * 
+ * + * repeated string valid_image_types = 5; + * @return A list containing the validImageTypes. + */ + public com.google.protobuf.ProtocolStringList + getValidImageTypesList() { + validImageTypes_.makeImmutable(); + 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); + } + /** + *
+     * 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); + bitField0_ |= 0x00000008; + 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); + bitField0_ |= 0x00000008; + 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_); + bitField0_ |= 0x00000008; + 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.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; + 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); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList validMasterVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureValidMasterVersionsIsMutable() { + if (!validMasterVersions_.isModifiable()) { + validMasterVersions_ = new com.google.protobuf.LazyStringArrayList(validMasterVersions_); + } + bitField0_ |= 0x00000010; + } + /** + *
+     * 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() { + validMasterVersions_.makeImmutable(); + 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); + } + /** + *
+     * 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); + bitField0_ |= 0x00000010; + 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); + bitField0_ |= 0x00000010; + 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_); + bitField0_ |= 0x00000010; + 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.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010);; + 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); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.util.List channels_ = + java.util.Collections.emptyList(); + private void ensureChannelsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + channels_ = new java.util.ArrayList(channels_); + bitField0_ |= 0x00000020; + } + } + + 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_ & ~0x00000020); + 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 + 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_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + channels_ = null; + } + return channelsBuilder_; + } + + private static final class WindowsVersionMapsConverter implements com.google.protobuf.MapFieldBuilder.Converter { + @java.lang.Override + public com.google.container.v1beta1.WindowsVersions build(com.google.container.v1beta1.WindowsVersionsOrBuilder val) { + if (val instanceof com.google.container.v1beta1.WindowsVersions) { return (com.google.container.v1beta1.WindowsVersions) val; } + return ((com.google.container.v1beta1.WindowsVersions.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry defaultEntry() { + return WindowsVersionMapsDefaultEntryHolder.defaultEntry; + } + }; + private static final WindowsVersionMapsConverter windowsVersionMapsConverter = new WindowsVersionMapsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, com.google.container.v1beta1.WindowsVersionsOrBuilder, com.google.container.v1beta1.WindowsVersions, com.google.container.v1beta1.WindowsVersions.Builder> windowsVersionMaps_; + private com.google.protobuf.MapFieldBuilder + internalGetWindowsVersionMaps() { + if (windowsVersionMaps_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(windowsVersionMapsConverter); + } + return windowsVersionMaps_; + } + private com.google.protobuf.MapFieldBuilder + internalGetMutableWindowsVersionMaps() { + if (windowsVersionMaps_ == null) { + windowsVersionMaps_ = new com.google.protobuf.MapFieldBuilder<>(windowsVersionMapsConverter); + } + bitField0_ |= 0x00000040; + onChanged(); + return windowsVersionMaps_; + } + public int getWindowsVersionMapsCount() { + return internalGetWindowsVersionMaps().ensureBuilderMap().size(); + } + /** + *
+     * Maps of Kubernetes version and supported Windows server versions.
+     * 
+ * + * map<string, .google.container.v1beta1.WindowsVersions> windows_version_maps = 10; + */ + @java.lang.Override + public boolean containsWindowsVersionMaps( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetWindowsVersionMaps().ensureBuilderMap().containsKey(key); + } + /** + * Use {@link #getWindowsVersionMapsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getWindowsVersionMaps() { + return getWindowsVersionMapsMap(); + } + /** + *
+     * Maps of Kubernetes version and supported Windows server versions.
+     * 
+ * + * map<string, .google.container.v1beta1.WindowsVersions> windows_version_maps = 10; + */ + @java.lang.Override + public java.util.Map getWindowsVersionMapsMap() { + return internalGetWindowsVersionMaps().getImmutableMap(); + } + /** + *
+     * Maps of Kubernetes version and supported Windows server versions.
+     * 
+ * + * map<string, .google.container.v1beta1.WindowsVersions> windows_version_maps = 10; + */ + @java.lang.Override + public /* nullable */ +com.google.container.v1beta1.WindowsVersions getWindowsVersionMapsOrDefault( + java.lang.String key, + /* nullable */ +com.google.container.v1beta1.WindowsVersions defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = internalGetMutableWindowsVersionMaps().ensureBuilderMap(); + return map.containsKey(key) ? windowsVersionMapsConverter.build(map.get(key)) : defaultValue; + } + /** + *
+     * Maps of Kubernetes version and supported Windows server versions.
+     * 
+ * + * map<string, .google.container.v1beta1.WindowsVersions> windows_version_maps = 10; + */ + @java.lang.Override + public com.google.container.v1beta1.WindowsVersions getWindowsVersionMapsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = internalGetMutableWindowsVersionMaps().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return windowsVersionMapsConverter.build(map.get(key)); + } + public Builder clearWindowsVersionMaps() { + bitField0_ = (bitField0_ & ~0x00000040); + internalGetMutableWindowsVersionMaps().clear(); + return this; + } + /** + *
+     * Maps of Kubernetes version and supported Windows server versions.
+     * 
+ * + * map<string, .google.container.v1beta1.WindowsVersions> windows_version_maps = 10; + */ + public Builder removeWindowsVersionMaps( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableWindowsVersionMaps().ensureBuilderMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableWindowsVersionMaps() { + bitField0_ |= 0x00000040; + return internalGetMutableWindowsVersionMaps().ensureMessageMap(); + } + /** + *
+     * Maps of Kubernetes version and supported Windows server versions.
+     * 
+ * + * map<string, .google.container.v1beta1.WindowsVersions> windows_version_maps = 10; + */ + public Builder putWindowsVersionMaps( + java.lang.String key, + com.google.container.v1beta1.WindowsVersions value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableWindowsVersionMaps().ensureBuilderMap() + .put(key, value); + bitField0_ |= 0x00000040; + return this; + } + /** + *
+     * Maps of Kubernetes version and supported Windows server versions.
+     * 
+ * + * map<string, .google.container.v1beta1.WindowsVersions> windows_version_maps = 10; + */ + public Builder putAllWindowsVersionMaps( + java.util.Map values) { + for (java.util.Map.Entry e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableWindowsVersionMaps().ensureBuilderMap() + .putAll(values); + bitField0_ |= 0x00000040; + return this; + } + /** + *
+     * Maps of Kubernetes version and supported Windows server versions.
+     * 
+ * + * map<string, .google.container.v1beta1.WindowsVersions> windows_version_maps = 10; + */ + public com.google.container.v1beta1.WindowsVersions.Builder putWindowsVersionMapsBuilderIfAbsent( + java.lang.String key) { + java.util.Map builderMap = internalGetMutableWindowsVersionMaps().ensureBuilderMap(); + com.google.container.v1beta1.WindowsVersionsOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.container.v1beta1.WindowsVersions.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.container.v1beta1.WindowsVersions) { + entry = ((com.google.container.v1beta1.WindowsVersions) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.container.v1beta1.WindowsVersions.Builder) entry; + } + @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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ServerConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ServerConfigOrBuilder.java new file mode 100644 index 000000000000..c2ff84803e94 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ServerConfigOrBuilder.java @@ -0,0 +1,271 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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); + + /** + *
+   * Maps of Kubernetes version and supported Windows server versions.
+   * 
+ * + * map<string, .google.container.v1beta1.WindowsVersions> windows_version_maps = 10; + */ + int getWindowsVersionMapsCount(); + /** + *
+   * Maps of Kubernetes version and supported Windows server versions.
+   * 
+ * + * map<string, .google.container.v1beta1.WindowsVersions> windows_version_maps = 10; + */ + boolean containsWindowsVersionMaps( + java.lang.String key); + /** + * Use {@link #getWindowsVersionMapsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getWindowsVersionMaps(); + /** + *
+   * Maps of Kubernetes version and supported Windows server versions.
+   * 
+ * + * map<string, .google.container.v1beta1.WindowsVersions> windows_version_maps = 10; + */ + java.util.Map + getWindowsVersionMapsMap(); + /** + *
+   * Maps of Kubernetes version and supported Windows server versions.
+   * 
+ * + * map<string, .google.container.v1beta1.WindowsVersions> windows_version_maps = 10; + */ + /* nullable */ +com.google.container.v1beta1.WindowsVersions getWindowsVersionMapsOrDefault( + java.lang.String key, + /* nullable */ +com.google.container.v1beta1.WindowsVersions defaultValue); + /** + *
+   * Maps of Kubernetes version and supported Windows server versions.
+   * 
+ * + * map<string, .google.container.v1beta1.WindowsVersions> windows_version_maps = 10; + */ + com.google.container.v1beta1.WindowsVersions getWindowsVersionMapsOrThrow( + java.lang.String key); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ServiceExternalIPsConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ServiceExternalIPsConfig.java new file mode 100644 index 000000000000..203863108303 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ServiceExternalIPsConfig.java @@ -0,0 +1,497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * Config to block services with externalIPs field.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.ServiceExternalIPsConfig} + */ +public final class ServiceExternalIPsConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.ServiceExternalIPsConfig) + ServiceExternalIPsConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use ServiceExternalIPsConfig.newBuilder() to construct. + private ServiceExternalIPsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ServiceExternalIPsConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ServiceExternalIPsConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ServiceExternalIPsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ServiceExternalIPsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ServiceExternalIPsConfig.class, com.google.container.v1beta1.ServiceExternalIPsConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * Whether Services with ExternalIPs field are allowed or not.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.ServiceExternalIPsConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.ServiceExternalIPsConfig other = (com.google.container.v1beta1.ServiceExternalIPsConfig) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.ServiceExternalIPsConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ServiceExternalIPsConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ServiceExternalIPsConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ServiceExternalIPsConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ServiceExternalIPsConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.ServiceExternalIPsConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.ServiceExternalIPsConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ServiceExternalIPsConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.ServiceExternalIPsConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.ServiceExternalIPsConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.ServiceExternalIPsConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.ServiceExternalIPsConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.ServiceExternalIPsConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Config to block services with externalIPs field.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.ServiceExternalIPsConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.ServiceExternalIPsConfig) + com.google.container.v1beta1.ServiceExternalIPsConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ServiceExternalIPsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_ServiceExternalIPsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.ServiceExternalIPsConfig.class, com.google.container.v1beta1.ServiceExternalIPsConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.ServiceExternalIPsConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 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_ServiceExternalIPsConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.ServiceExternalIPsConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.ServiceExternalIPsConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.ServiceExternalIPsConfig build() { + com.google.container.v1beta1.ServiceExternalIPsConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.ServiceExternalIPsConfig buildPartial() { + com.google.container.v1beta1.ServiceExternalIPsConfig result = new com.google.container.v1beta1.ServiceExternalIPsConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.ServiceExternalIPsConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @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.ServiceExternalIPsConfig) { + return mergeFrom((com.google.container.v1beta1.ServiceExternalIPsConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.ServiceExternalIPsConfig other) { + if (other == com.google.container.v1beta1.ServiceExternalIPsConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enabled_ ; + /** + *
+     * Whether Services with ExternalIPs field are allowed or not.
+     * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Whether Services with ExternalIPs field are allowed or not.
+     * 
+ * + * bool enabled = 1; + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether Services with ExternalIPs field are allowed or not.
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + 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.ServiceExternalIPsConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.ServiceExternalIPsConfig) + private static final com.google.container.v1beta1.ServiceExternalIPsConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.ServiceExternalIPsConfig(); + } + + public static com.google.container.v1beta1.ServiceExternalIPsConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServiceExternalIPsConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.ServiceExternalIPsConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ServiceExternalIPsConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ServiceExternalIPsConfigOrBuilder.java new file mode 100644 index 000000000000..88abf2074ca1 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ServiceExternalIPsConfigOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface ServiceExternalIPsConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.ServiceExternalIPsConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether Services with ExternalIPs field are allowed or not.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequest.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequest.java new file mode 100644 index 000000000000..8374c69e8886 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequest.java @@ -0,0 +1,1414 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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); + } + + private int bitField0_; + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3266 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3266 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3273 + * @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]; + * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3273 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3277 + * @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]; + * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3277 + * @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 ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * 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 addonsConfig_ == null ? com.google.container.v1beta1.AddonsConfig.getDefaultInstance() : addonsConfig_; + } + + public static final int NAME_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getAddonsConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getAddonsConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { + getAddonsConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + addonsConfig_ = null; + if (addonsConfigBuilder_ != null) { + addonsConfigBuilder_.dispose(); + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.SetAddonsConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.addonsConfig_ = addonsConfigBuilder_ == null + ? addonsConfig_ + : addonsConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.name_ = name_; + } + result.bitField0_ |= to_bitField0_; + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasAddonsConfig()) { + mergeAddonsConfig(other.getAddonsConfig()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getAddonsConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 50: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3266 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3266 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3266 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3266 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3266 + * @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; + bitField0_ |= 0x00000001; + 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]; + * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3273 + * @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]; + * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3273 + * @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]; + * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3273 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3273 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + 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]; + * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3273 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3277 + * @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]; + * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3277 + * @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]; + * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3277 + * @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; + bitField0_ |= 0x00000004; + 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]; + * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3277 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + 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]; + * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3277 + * @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; + bitField0_ |= 0x00000004; + 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 ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * 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; + } else { + addonsConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + 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(); + } else { + addonsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + 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 (((bitField0_ & 0x00000008) != 0) && + addonsConfig_ != null && + addonsConfig_ != com.google.container.v1beta1.AddonsConfig.getDefaultInstance()) { + getAddonsConfigBuilder().mergeFrom(value); + } else { + addonsConfig_ = value; + } + } else { + addonsConfigBuilder_.mergeFrom(value); + } + if (addonsConfig_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + 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() { + bitField0_ = (bitField0_ & ~0x00000008); + addonsConfig_ = null; + if (addonsConfigBuilder_ != null) { + addonsConfigBuilder_.dispose(); + addonsConfigBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000008; + 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; + bitField0_ |= 0x00000010; + 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(); + bitField0_ = (bitField0_ & ~0x00000010); + 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; + bitField0_ |= 0x00000010; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequestOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequestOrBuilder.java new file mode 100644 index 000000000000..e4c9b17e9cc0 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequestOrBuilder.java @@ -0,0 +1,146 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3266 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3266 + * @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]; + * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3273 + * @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]; + * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3273 + * @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]; + * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3277 + * @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]; + * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3277 + * @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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequest.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequest.java new file mode 100644 index 000000000000..06c599bc4e96 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequest.java @@ -0,0 +1,1687 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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.MapFieldReflectionAccessor internalGetMapFieldReflection( + 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; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4522 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4522 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4529 + * @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]; + * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4529 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4533 + * @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]; + * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4533 + * @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< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SetLabelsRequest_ResourceLabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> resourceLabels_; + private com.google.protobuf.MapField + internalGetResourceLabels() { + if (resourceLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + return resourceLabels_; + } + public int getResourceLabelsCount() { + return internalGetResourceLabels().getMap().size(); + } + /** + *
+   * 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 NullPointerException("map key"); } + 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 /* nullable */ +java.lang.String getResourceLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + 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 NullPointerException("map key"); } + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * The name (project, location, cluster name) 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 name) 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetResourceLabels(), + ResourceLabelsDefaultEntryHolder.defaultEntry, + 4); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(labelFingerprint_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, labelFingerprint_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(labelFingerprint_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, labelFingerprint_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetResourceLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + 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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.SetLabelsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.resourceLabels_ = internalGetResourceLabels(); + result.resourceLabels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.labelFingerprint_ = labelFingerprint_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.name_ = name_; + } + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + internalGetMutableResourceLabels().mergeFrom( + other.internalGetResourceLabels()); + bitField0_ |= 0x00000008; + if (!other.getLabelFingerprint().isEmpty()) { + labelFingerprint_ = other.labelFingerprint_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000020; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + com.google.protobuf.MapEntry + resourceLabels__ = input.readMessage( + ResourceLabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableResourceLabels().getMutableMap().put( + resourceLabels__.getKey(), resourceLabels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + labelFingerprint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 58: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4522 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4522 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4522 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4522 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4522 + * @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; + bitField0_ |= 0x00000001; + 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]; + * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4529 + * @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]; + * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4529 + * @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]; + * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4529 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4529 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + 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]; + * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4529 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4533 + * @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]; + * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4533 + * @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]; + * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4533 + * @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; + bitField0_ |= 0x00000004; + 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]; + * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4533 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + 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]; + * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4533 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> resourceLabels_; + private com.google.protobuf.MapField + internalGetResourceLabels() { + if (resourceLabels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + return resourceLabels_; + } + private com.google.protobuf.MapField + internalGetMutableResourceLabels() { + if (resourceLabels_ == null) { + resourceLabels_ = com.google.protobuf.MapField.newMapField( + ResourceLabelsDefaultEntryHolder.defaultEntry); + } + if (!resourceLabels_.isMutable()) { + resourceLabels_ = resourceLabels_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + 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 NullPointerException("map key"); } + 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 /* nullable */ +java.lang.String getResourceLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + 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 NullPointerException("map key"); } + java.util.Map map = + internalGetResourceLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearResourceLabels() { + bitField0_ = (bitField0_ & ~0x00000008); + 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 NullPointerException("map key"); } + internalGetMutableResourceLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableResourceLabels() { + bitField0_ |= 0x00000008; + 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 NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableResourceLabels().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000008; + 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); + bitField0_ |= 0x00000008; + 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; + bitField0_ |= 0x00000010; + 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(); + bitField0_ = (bitField0_ & ~0x00000010); + 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; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster name) 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 name) 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 name) 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; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster name) 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(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster name) 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; + bitField0_ |= 0x00000020; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequestOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequestOrBuilder.java new file mode 100644 index 000000000000..6c9cb66df7d5 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequestOrBuilder.java @@ -0,0 +1,200 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4522 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4522 + * @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]; + * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4529 + * @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]; + * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4529 + * @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]; + * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4533 + * @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]; + * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4533 + * @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]; + */ + /* nullable */ +java.lang.String getResourceLabelsOrDefault( + java.lang.String key, + /* nullable */ +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 name) 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 name) 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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequest.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequest.java new file mode 100644 index 000000000000..8349348ba903 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequest.java @@ -0,0 +1,1246 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4559 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4559 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4566 + * @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]; + * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4566 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4570 + * @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]; + * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4570 + * @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_ = false; + /** + *
+   * 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; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * The name (project, location, cluster name) 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 name) 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (enabled_ != false) { + output.writeBool(4, enabled_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, enabled_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.SetLegacyAbacRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.enabled_ = enabled_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.name_ = name_; + } + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 50: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4559 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4559 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4559 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4559 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4559 + * @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; + bitField0_ |= 0x00000001; + 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]; + * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4566 + * @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]; + * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4566 + * @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]; + * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4566 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4566 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + 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]; + * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4566 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4570 + * @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]; + * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4570 + * @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]; + * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4570 + * @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; + bitField0_ |= 0x00000004; + 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]; + * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4570 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + 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]; + * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4570 + * @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; + bitField0_ |= 0x00000004; + 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; + bitField0_ |= 0x00000008; + 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() { + bitField0_ = (bitField0_ & ~0x00000008); + enabled_ = false; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster name) 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 name) 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 name) 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; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster name) 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(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster name) 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; + bitField0_ |= 0x00000010; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequestOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequestOrBuilder.java new file mode 100644 index 000000000000..b673034fc8c7 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequestOrBuilder.java @@ -0,0 +1,126 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4559 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4559 + * @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]; + * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4566 + * @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]; + * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4566 + * @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]; + * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4570 + * @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]; + * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4570 + * @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 name) 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 name) 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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequest.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequest.java new file mode 100644 index 000000000000..845bd8fa501f --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequest.java @@ -0,0 +1,1480 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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.emptyList(); + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SetLocationsRequest(); + } + + 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; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3294 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3294 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3301 + * @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]; + * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3301 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3305 + * @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]; + * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3305 + * @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; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList locations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * 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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + locations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.SetLocationsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + locations_.makeImmutable(); + result.locations_ = locations_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.name_ = name_; + } + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.locations_.isEmpty()) { + if (locations_.isEmpty()) { + locations_ = other.locations_; + bitField0_ |= 0x00000008; + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureLocationsIsMutable(); + locations_.add(s); + break; + } // case 34 + case 50: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3294 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3294 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3294 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3294 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3294 + * @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; + bitField0_ |= 0x00000001; + 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]; + * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3301 + * @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]; + * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3301 + * @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]; + * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3301 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3301 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + 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]; + * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3301 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3305 + * @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]; + * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3305 + * @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]; + * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3305 + * @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; + bitField0_ |= 0x00000004; + 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]; + * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3305 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + 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]; + * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3305 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList locations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureLocationsIsMutable() { + if (!locations_.isModifiable()) { + locations_ = new com.google.protobuf.LazyStringArrayList(locations_); + } + bitField0_ |= 0x00000008; + } + /** + *
+     * 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() { + locations_.makeImmutable(); + 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); + } + /** + *
+     * 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); + bitField0_ |= 0x00000008; + 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); + bitField0_ |= 0x00000008; + 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_); + bitField0_ |= 0x00000008; + 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.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; + 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); + bitField0_ |= 0x00000008; + 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; + bitField0_ |= 0x00000010; + 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(); + bitField0_ = (bitField0_ & ~0x00000010); + 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; + bitField0_ |= 0x00000010; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequestOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequestOrBuilder.java new file mode 100644 index 000000000000..da6769790a56 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequestOrBuilder.java @@ -0,0 +1,181 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3294 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3294 + * @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]; + * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3301 + * @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]; + * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3301 + * @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]; + * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3305 + * @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]; + * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3305 + * @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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequest.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequest.java new file mode 100644 index 000000000000..91227c6e427e --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequest.java @@ -0,0 +1,1395 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3192 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3192 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3199 + * @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]; + * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3199 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3203 + * @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]; + * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3203 + * @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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loggingService_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, loggingService_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loggingService_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, loggingService_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.SetLoggingServiceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.loggingService_ = loggingService_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.name_ = name_; + } + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getLoggingService().isEmpty()) { + loggingService_ = other.loggingService_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + loggingService_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3192 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3192 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3192 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3192 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3192 + * @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; + bitField0_ |= 0x00000001; + 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]; + * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3199 + * @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]; + * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3199 + * @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]; + * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3199 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3199 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + 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]; + * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3199 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3203 + * @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]; + * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3203 + * @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]; + * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3203 + * @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; + bitField0_ |= 0x00000004; + 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]; + * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3203 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + 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]; + * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3203 + * @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; + bitField0_ |= 0x00000004; + 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; + bitField0_ |= 0x00000008; + 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(); + bitField0_ = (bitField0_ & ~0x00000008); + 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; + bitField0_ |= 0x00000008; + 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; + bitField0_ |= 0x00000010; + 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(); + bitField0_ = (bitField0_ & ~0x00000010); + 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; + bitField0_ |= 0x00000010; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequestOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequestOrBuilder.java new file mode 100644 index 000000000000..29f6f1f91807 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequestOrBuilder.java @@ -0,0 +1,156 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3192 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3192 + * @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]; + * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3199 + * @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]; + * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3199 + * @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]; + * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3203 + * @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]; + * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3203 + * @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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMaintenancePolicyRequest.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMaintenancePolicyRequest.java new file mode 100644 index 000000000000..1d03d7bcd02a --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMaintenancePolicyRequest.java @@ -0,0 +1,1358 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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); + } + + private int bitField0_; + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Required. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * 
+ * + * 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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * 
+ * + * 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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 ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * 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 maintenancePolicy_ == null ? com.google.container.v1beta1.MaintenancePolicy.getDefaultInstance() : maintenancePolicy_; + } + + public static final int NAME_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * The name (project, location, cluster name) 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 name) 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getMaintenancePolicy()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getMaintenancePolicy()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { + getMaintenancePolicyFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + maintenancePolicy_ = null; + if (maintenancePolicyBuilder_ != null) { + maintenancePolicyBuilder_.dispose(); + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.SetMaintenancePolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.maintenancePolicy_ = maintenancePolicyBuilder_ == null + ? maintenancePolicy_ + : maintenancePolicyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.name_ = name_; + } + result.bitField0_ |= to_bitField0_; + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasMaintenancePolicy()) { + mergeMaintenancePolicy(other.getMaintenancePolicy()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getMaintenancePolicyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Required. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * 
+ * + * 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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * 
+ * + * 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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * 
+ * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * 
+ * + * 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; + bitField0_ |= 0x00000001; + 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; + bitField0_ |= 0x00000002; + 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(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + 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; + bitField0_ |= 0x00000004; + 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(); + bitField0_ = (bitField0_ & ~0x00000004); + 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; + bitField0_ |= 0x00000004; + 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 ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * 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; + } else { + maintenancePolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + 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(); + } else { + maintenancePolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + 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 (((bitField0_ & 0x00000008) != 0) && + maintenancePolicy_ != null && + maintenancePolicy_ != com.google.container.v1beta1.MaintenancePolicy.getDefaultInstance()) { + getMaintenancePolicyBuilder().mergeFrom(value); + } else { + maintenancePolicy_ = value; + } + } else { + maintenancePolicyBuilder_.mergeFrom(value); + } + if (maintenancePolicy_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + 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() { + bitField0_ = (bitField0_ & ~0x00000008); + maintenancePolicy_ = null; + if (maintenancePolicyBuilder_ != null) { + maintenancePolicyBuilder_.dispose(); + maintenancePolicyBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000008; + 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 name) 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 name) 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 name) 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; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster name) 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(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster name) 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; + bitField0_ |= 0x00000010; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMaintenancePolicyRequestOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMaintenancePolicyRequestOrBuilder.java new file mode 100644 index 000000000000..40fabaf1af1b --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMaintenancePolicyRequestOrBuilder.java @@ -0,0 +1,130 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * 
+ * + * 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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * 
+ * + * 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 name) 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 name) 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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequest.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequest.java new file mode 100644 index 000000000000..cfe5d2fde14a --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequest.java @@ -0,0 +1,1692 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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< + Action> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Action findValueByNumber(int number) { + return Action.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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) + } + + private int bitField0_; + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3381 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3381 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3388 + * @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]; + * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3388 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3392 + * @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]; + * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3392 + * @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_ = 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]; + * @return The action. + */ + @java.lang.Override public com.google.container.v1beta1.SetMasterAuthRequest.Action getAction() { + com.google.container.v1beta1.SetMasterAuthRequest.Action result = com.google.container.v1beta1.SetMasterAuthRequest.Action.forNumber(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 ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * 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 update_ == null ? com.google.container.v1beta1.MasterAuth.getDefaultInstance() : update_; + } + + public static final int NAME_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (action_ != com.google.container.v1beta1.SetMasterAuthRequest.Action.UNKNOWN.getNumber()) { + output.writeEnum(4, action_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getUpdate()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + 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 (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getUpdate()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { + getUpdateFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + action_ = 0; + update_ = null; + if (updateBuilder_ != null) { + updateBuilder_.dispose(); + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.SetMasterAuthRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.action_ = action_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.update_ = updateBuilder_ == null + ? update_ + : updateBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.name_ = name_; + } + result.bitField0_ |= to_bitField0_; + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.action_ != 0) { + setActionValue(other.getActionValue()); + } + if (other.hasUpdate()) { + mergeUpdate(other.getUpdate()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000020; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + action_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + input.readMessage( + getUpdateFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 58: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3381 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3381 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3381 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3381 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3381 + * @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; + bitField0_ |= 0x00000001; + 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]; + * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3388 + * @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]; + * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3388 + * @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]; + * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3388 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3388 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + 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]; + * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3388 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3392 + * @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]; + * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3392 + * @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]; + * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3392 + * @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; + bitField0_ |= 0x00000004; + 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]; + * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3392 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + 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]; + * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3392 + * @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; + bitField0_ |= 0x00000004; + 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; + bitField0_ |= 0x00000008; + 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() { + com.google.container.v1beta1.SetMasterAuthRequest.Action result = com.google.container.v1beta1.SetMasterAuthRequest.Action.forNumber(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(); + } + bitField0_ |= 0x00000008; + 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() { + bitField0_ = (bitField0_ & ~0x00000008); + 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 ((bitField0_ & 0x00000010) != 0); + } + /** + *
+     * 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; + } else { + updateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + 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(); + } else { + updateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + 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 (((bitField0_ & 0x00000010) != 0) && + update_ != null && + update_ != com.google.container.v1beta1.MasterAuth.getDefaultInstance()) { + getUpdateBuilder().mergeFrom(value); + } else { + update_ = value; + } + } else { + updateBuilder_.mergeFrom(value); + } + if (update_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + *
+     * Required. A description of the update.
+     * 
+ * + * .google.container.v1beta1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearUpdate() { + bitField0_ = (bitField0_ & ~0x00000010); + update_ = null; + if (updateBuilder_ != null) { + updateBuilder_.dispose(); + updateBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000010; + 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; + bitField0_ |= 0x00000020; + 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(); + bitField0_ = (bitField0_ & ~0x00000020); + 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; + bitField0_ |= 0x00000020; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequestOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequestOrBuilder.java new file mode 100644 index 000000000000..d7d107228399 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequestOrBuilder.java @@ -0,0 +1,162 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3381 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3381 + * @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]; + * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3388 + * @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]; + * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3388 + * @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]; + * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3392 + * @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]; + * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3392 + * @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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequest.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequest.java new file mode 100644 index 000000000000..108e81ca13c2 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequest.java @@ -0,0 +1,1395 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3229 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3229 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3236 + * @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]; + * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3236 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3240 + * @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]; + * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3240 + * @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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(monitoringService_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, monitoringService_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(monitoringService_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, monitoringService_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.SetMonitoringServiceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.monitoringService_ = monitoringService_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.name_ = name_; + } + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getMonitoringService().isEmpty()) { + monitoringService_ = other.monitoringService_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + monitoringService_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 50: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3229 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3229 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3229 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3229 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3229 + * @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; + bitField0_ |= 0x00000001; + 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]; + * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3236 + * @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]; + * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3236 + * @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]; + * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3236 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3236 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + 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]; + * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3236 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3240 + * @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]; + * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3240 + * @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]; + * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3240 + * @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; + bitField0_ |= 0x00000004; + 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]; + * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3240 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + 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]; + * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3240 + * @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; + bitField0_ |= 0x00000004; + 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; + bitField0_ |= 0x00000008; + 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(); + bitField0_ = (bitField0_ & ~0x00000008); + 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; + bitField0_ |= 0x00000008; + 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; + bitField0_ |= 0x00000010; + 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(); + bitField0_ = (bitField0_ & ~0x00000010); + 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; + bitField0_ |= 0x00000010; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequestOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequestOrBuilder.java new file mode 100644 index 000000000000..72c7e4c011f9 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequestOrBuilder.java @@ -0,0 +1,156 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3229 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3229 + * @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]; + * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3236 + * @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]; + * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3236 + * @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]; + * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3240 + * @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]; + * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3240 + * @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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequest.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequest.java new file mode 100644 index 000000000000..69935641e84d --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequest.java @@ -0,0 +1,1402 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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); + } + + private int bitField0_; + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4766 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4766 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4773 + * @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]; + * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4773 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4777 + * @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]; + * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4777 + * @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 ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * 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 networkPolicy_ == null ? com.google.container.v1beta1.NetworkPolicy.getDefaultInstance() : networkPolicy_; + } + + public static final int NAME_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * The name (project, location, cluster name) 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 name) 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getNetworkPolicy()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getNetworkPolicy()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { + getNetworkPolicyFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + networkPolicy_ = null; + if (networkPolicyBuilder_ != null) { + networkPolicyBuilder_.dispose(); + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.SetNetworkPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.networkPolicy_ = networkPolicyBuilder_ == null + ? networkPolicy_ + : networkPolicyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.name_ = name_; + } + result.bitField0_ |= to_bitField0_; + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasNetworkPolicy()) { + mergeNetworkPolicy(other.getNetworkPolicy()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getNetworkPolicyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 50: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4766 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4766 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4766 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4766 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4766 + * @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; + bitField0_ |= 0x00000001; + 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]; + * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4773 + * @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]; + * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4773 + * @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]; + * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4773 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4773 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + 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]; + * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4773 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4777 + * @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]; + * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4777 + * @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]; + * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4777 + * @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; + bitField0_ |= 0x00000004; + 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]; + * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4777 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + 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]; + * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4777 + * @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; + bitField0_ |= 0x00000004; + 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 ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * 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; + } else { + networkPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + 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(); + } else { + networkPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + 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 (((bitField0_ & 0x00000008) != 0) && + networkPolicy_ != null && + networkPolicy_ != com.google.container.v1beta1.NetworkPolicy.getDefaultInstance()) { + getNetworkPolicyBuilder().mergeFrom(value); + } else { + networkPolicy_ = value; + } + } else { + networkPolicyBuilder_.mergeFrom(value); + } + if (networkPolicy_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + *
+     * Required. Configuration options for the NetworkPolicy feature.
+     * 
+ * + * .google.container.v1beta1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearNetworkPolicy() { + bitField0_ = (bitField0_ & ~0x00000008); + networkPolicy_ = null; + if (networkPolicyBuilder_ != null) { + networkPolicyBuilder_.dispose(); + networkPolicyBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000008; + 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 name) 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 name) 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 name) 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; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster name) 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(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster name) 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; + bitField0_ |= 0x00000010; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequestOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..f482e1edb8f8 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequestOrBuilder.java @@ -0,0 +1,143 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4766 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4766 + * @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]; + * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4773 + * @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]; + * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4773 + * @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]; + * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4777 + * @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]; + * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4777 + * @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 name) 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 name) 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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequest.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequest.java new file mode 100644 index 000000000000..c19ba6a55842 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequest.java @@ -0,0 +1,1594 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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); + } + + private int bitField0_; + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3159 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3159 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3166 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3166 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3170 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3170 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3175 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3175 + * @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 ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * 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 autoscaling_ == null ? com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance() : autoscaling_; + } + + public static final int NAME_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getAutoscaling()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getAutoscaling()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { + getAutoscalingFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePoolId_ = ""; + autoscaling_ = null; + if (autoscalingBuilder_ != null) { + autoscalingBuilder_.dispose(); + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.SetNodePoolAutoscalingRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.nodePoolId_ = nodePoolId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.autoscaling_ = autoscalingBuilder_ == null + ? autoscaling_ + : autoscalingBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.name_ = name_; + } + result.bitField0_ |= to_bitField0_; + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasAutoscaling()) { + mergeAutoscaling(other.getAutoscaling()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000020; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + nodePoolId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getAutoscalingFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3159 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3159 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3159 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3159 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3159 + * @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; + bitField0_ |= 0x00000001; + 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]; + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3166 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3166 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3166 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3166 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + 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]; + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3166 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3170 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3170 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3170 + * @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; + bitField0_ |= 0x00000004; + 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]; + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3170 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + 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]; + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3170 + * @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; + bitField0_ |= 0x00000004; + 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]; + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3175 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3175 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3175 + * @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; + bitField0_ |= 0x00000008; + 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]; + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3175 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearNodePoolId() { + nodePoolId_ = getDefaultInstance().getNodePoolId(); + bitField0_ = (bitField0_ & ~0x00000008); + 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]; + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3175 + * @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; + bitField0_ |= 0x00000008; + 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 ((bitField0_ & 0x00000010) != 0); + } + /** + *
+     * 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; + } else { + autoscalingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + 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(); + } else { + autoscalingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + 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 (((bitField0_ & 0x00000010) != 0) && + autoscaling_ != null && + autoscaling_ != com.google.container.v1beta1.NodePoolAutoscaling.getDefaultInstance()) { + getAutoscalingBuilder().mergeFrom(value); + } else { + autoscaling_ = value; + } + } else { + autoscalingBuilder_.mergeFrom(value); + } + if (autoscaling_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + *
+     * Required. Autoscaling configuration for the node pool.
+     * 
+ * + * .google.container.v1beta1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearAutoscaling() { + bitField0_ = (bitField0_ & ~0x00000010); + autoscaling_ = null; + if (autoscalingBuilder_ != null) { + autoscalingBuilder_.dispose(); + autoscalingBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000010; + 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; + bitField0_ |= 0x00000020; + 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(); + bitField0_ = (bitField0_ & ~0x00000020); + 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; + bitField0_ |= 0x00000020; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequestOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequestOrBuilder.java new file mode 100644 index 000000000000..b1593b2ce664 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequestOrBuilder.java @@ -0,0 +1,171 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3159 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3159 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3166 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3166 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3170 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3170 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3175 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3175 + * @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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequest.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequest.java new file mode 100644 index 000000000000..abbe872135d8 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequest.java @@ -0,0 +1,1596 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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); + } + + private int bitField0_; + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4229 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4229 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4236 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4236 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4240 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4240 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4245 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4245 + * @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 ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * 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 management_ == null ? com.google.container.v1beta1.NodeManagement.getDefaultInstance() : management_; + } + + public static final int NAME_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getManagement()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getManagement()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { + getManagementFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePoolId_ = ""; + management_ = null; + if (managementBuilder_ != null) { + managementBuilder_.dispose(); + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.SetNodePoolManagementRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.nodePoolId_ = nodePoolId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.management_ = managementBuilder_ == null + ? management_ + : managementBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.name_ = name_; + } + result.bitField0_ |= to_bitField0_; + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasManagement()) { + mergeManagement(other.getManagement()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000020; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + nodePoolId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getManagementFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 58: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4229 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4229 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4229 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4229 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4229 + * @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; + bitField0_ |= 0x00000001; + 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]; + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4236 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4236 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4236 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4236 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + 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]; + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4236 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4240 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4240 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4240 + * @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; + bitField0_ |= 0x00000004; + 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]; + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4240 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + 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]; + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4240 + * @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; + bitField0_ |= 0x00000004; + 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]; + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4245 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4245 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4245 + * @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; + bitField0_ |= 0x00000008; + 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]; + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4245 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearNodePoolId() { + nodePoolId_ = getDefaultInstance().getNodePoolId(); + bitField0_ = (bitField0_ & ~0x00000008); + 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]; + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4245 + * @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; + bitField0_ |= 0x00000008; + 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 ((bitField0_ & 0x00000010) != 0); + } + /** + *
+     * 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; + } else { + managementBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + 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(); + } else { + managementBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + 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 (((bitField0_ & 0x00000010) != 0) && + management_ != null && + management_ != com.google.container.v1beta1.NodeManagement.getDefaultInstance()) { + getManagementBuilder().mergeFrom(value); + } else { + management_ = value; + } + } else { + managementBuilder_.mergeFrom(value); + } + if (management_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + *
+     * Required. NodeManagement configuration for the node pool.
+     * 
+ * + * .google.container.v1beta1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearManagement() { + bitField0_ = (bitField0_ & ~0x00000010); + management_ = null; + if (managementBuilder_ != null) { + managementBuilder_.dispose(); + managementBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000010; + 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; + bitField0_ |= 0x00000020; + 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(); + bitField0_ = (bitField0_ & ~0x00000020); + 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; + bitField0_ |= 0x00000020; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequestOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequestOrBuilder.java new file mode 100644 index 000000000000..91a5e449369c --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequestOrBuilder.java @@ -0,0 +1,171 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4229 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4229 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4236 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4236 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4240 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4240 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4245 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4245 + * @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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequest.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequest.java new file mode 100644 index 000000000000..8df0497ebb67 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequest.java @@ -0,0 +1,1435 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * SetNodePoolSizeRequest sets the size of 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(); + } + + 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; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4262 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4262 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4269 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4269 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4273 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4273 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4278 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4278 + * @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_ = 0; + /** + *
+   * 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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); + } + if (nodeCount_ != 0) { + output.writeInt32(5, nodeCount_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); + } + if (nodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, nodeCount_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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 of 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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.SetNodePoolSizeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.nodePoolId_ = nodePoolId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.nodeCount_ = nodeCount_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.name_ = name_; + } + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.getNodeCount() != 0) { + setNodeCount(other.getNodeCount()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000020; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + nodePoolId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + nodeCount_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 58: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4262 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4262 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4262 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4262 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4262 + * @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; + bitField0_ |= 0x00000001; + 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]; + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4269 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4269 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4269 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4269 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + 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]; + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4269 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4273 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4273 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4273 + * @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; + bitField0_ |= 0x00000004; + 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]; + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4273 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + 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]; + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4273 + * @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; + bitField0_ |= 0x00000004; + 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]; + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4278 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4278 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4278 + * @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; + bitField0_ |= 0x00000008; + 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]; + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4278 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearNodePoolId() { + nodePoolId_ = getDefaultInstance().getNodePoolId(); + bitField0_ = (bitField0_ & ~0x00000008); + 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]; + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4278 + * @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; + bitField0_ |= 0x00000008; + 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; + bitField0_ |= 0x00000010; + 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() { + bitField0_ = (bitField0_ & ~0x00000010); + 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; + bitField0_ |= 0x00000020; + 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(); + bitField0_ = (bitField0_ & ~0x00000020); + 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; + bitField0_ |= 0x00000020; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequestOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequestOrBuilder.java new file mode 100644 index 000000000000..262822c4ac30 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequestOrBuilder.java @@ -0,0 +1,154 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4262 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4262 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4269 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4269 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4273 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4273 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4278 + * @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]; + * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4278 + * @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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedInstanceConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedInstanceConfig.java new file mode 100644 index 000000000000..3defb0de786a --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedInstanceConfig.java @@ -0,0 +1,616 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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_ = false; + /** + *
+   * 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_ = false; + /** + *
+   * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.ShieldedInstanceConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enableSecureBoot_ = enableSecureBoot_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.enableIntegrityMonitoring_ = enableIntegrityMonitoring_; + } + } + + @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.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enableSecureBoot_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + enableIntegrityMonitoring_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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() { + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000002; + 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() { + bitField0_ = (bitField0_ & ~0x00000002); + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedInstanceConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedInstanceConfigOrBuilder.java new file mode 100644 index 000000000000..49bbfa9d9d4b --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedInstanceConfigOrBuilder.java @@ -0,0 +1,39 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedNodes.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedNodes.java new file mode 100644 index 000000000000..6375dadd52cd --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedNodes.java @@ -0,0 +1,497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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_ = false; + /** + *
+   * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 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_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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.ShieldedNodes result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @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.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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() { + bitField0_ = (bitField0_ & ~0x00000001); + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedNodesOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedNodesOrBuilder.java new file mode 100644 index 000000000000..2ea528181729 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ShieldedNodesOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SoleTenantConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SoleTenantConfig.java new file mode 100644 index 000000000000..3777f0d47045 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SoleTenantConfig.java @@ -0,0 +1,2031 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * SoleTenantConfig contains the NodeAffinities to specify what shared sole
+ * tenant node groups should back the node pool.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.SoleTenantConfig} + */ +public final class SoleTenantConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SoleTenantConfig) + SoleTenantConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use SoleTenantConfig.newBuilder() to construct. + private SoleTenantConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SoleTenantConfig() { + nodeAffinities_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SoleTenantConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SoleTenantConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SoleTenantConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SoleTenantConfig.class, com.google.container.v1beta1.SoleTenantConfig.Builder.class); + } + + public interface NodeAffinityOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SoleTenantConfig.NodeAffinity) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Key for NodeAffinity.
+     * 
+ * + * string key = 1; + * @return The key. + */ + java.lang.String getKey(); + /** + *
+     * Key for NodeAffinity.
+     * 
+ * + * string key = 1; + * @return The bytes for key. + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + *
+     * Operator for NodeAffinity.
+     * 
+ * + * .google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator operator = 2; + * @return The enum numeric value on the wire for operator. + */ + int getOperatorValue(); + /** + *
+     * Operator for NodeAffinity.
+     * 
+ * + * .google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator operator = 2; + * @return The operator. + */ + com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator getOperator(); + + /** + *
+     * Values for NodeAffinity.
+     * 
+ * + * repeated string values = 3; + * @return A list containing the values. + */ + java.util.List + getValuesList(); + /** + *
+     * Values for NodeAffinity.
+     * 
+ * + * repeated string values = 3; + * @return The count of values. + */ + int getValuesCount(); + /** + *
+     * Values for NodeAffinity.
+     * 
+ * + * 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); + /** + *
+     * Values for NodeAffinity.
+     * 
+ * + * 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); + } + /** + *
+   * Specifies the NodeAffinity key, values, and affinity operator according to
+   * [shared sole tenant node group
+   * affinities](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes#node_affinity_and_anti-affinity).
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.SoleTenantConfig.NodeAffinity} + */ + public static final class NodeAffinity extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SoleTenantConfig.NodeAffinity) + NodeAffinityOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeAffinity.newBuilder() to construct. + private NodeAffinity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeAffinity() { + key_ = ""; + operator_ = 0; + values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new NodeAffinity(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SoleTenantConfig_NodeAffinity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SoleTenantConfig_NodeAffinity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.class, com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Builder.class); + } + + /** + *
+     * Operator allows user to specify affinity or anti-affinity for the
+     * given key values.
+     * 
+ * + * Protobuf enum {@code google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator} + */ + public enum Operator + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * Invalid or unspecified affinity operator.
+       * 
+ * + * OPERATOR_UNSPECIFIED = 0; + */ + OPERATOR_UNSPECIFIED(0), + /** + *
+       * Affinity operator.
+       * 
+ * + * IN = 1; + */ + IN(1), + /** + *
+       * Anti-affinity operator.
+       * 
+ * + * NOT_IN = 2; + */ + NOT_IN(2), + UNRECOGNIZED(-1), + ; + + /** + *
+       * Invalid or unspecified affinity operator.
+       * 
+ * + * OPERATOR_UNSPECIFIED = 0; + */ + public static final int OPERATOR_UNSPECIFIED_VALUE = 0; + /** + *
+       * Affinity operator.
+       * 
+ * + * IN = 1; + */ + public static final int IN_VALUE = 1; + /** + *
+       * Anti-affinity operator.
+       * 
+ * + * NOT_IN = 2; + */ + public static final int NOT_IN_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 Operator 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 Operator forNumber(int value) { + switch (value) { + case 0: return OPERATOR_UNSPECIFIED; + case 1: return IN; + case 2: return NOT_IN; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Operator> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Operator findValueByNumber(int number) { + return Operator.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.SoleTenantConfig.NodeAffinity.getDescriptor().getEnumTypes().get(0); + } + + private static final Operator[] VALUES = values(); + + public static Operator 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 Operator(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator) + } + + public static final int KEY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; + /** + *
+     * Key for NodeAffinity.
+     * 
+ * + * 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 NodeAffinity.
+     * 
+ * + * 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 OPERATOR_FIELD_NUMBER = 2; + private int operator_ = 0; + /** + *
+     * Operator for NodeAffinity.
+     * 
+ * + * .google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator operator = 2; + * @return The enum numeric value on the wire for operator. + */ + @java.lang.Override public int getOperatorValue() { + return operator_; + } + /** + *
+     * Operator for NodeAffinity.
+     * 
+ * + * .google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator operator = 2; + * @return The operator. + */ + @java.lang.Override public com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator getOperator() { + com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator result = com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator.forNumber(operator_); + return result == null ? com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator.UNRECOGNIZED : result; + } + + public static final int VALUES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+     * Values for NodeAffinity.
+     * 
+ * + * repeated string values = 3; + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList + getValuesList() { + return values_; + } + /** + *
+     * Values for NodeAffinity.
+     * 
+ * + * repeated string values = 3; + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + *
+     * Values for NodeAffinity.
+     * 
+ * + * 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); + } + /** + *
+     * Values for NodeAffinity.
+     * 
+ * + * 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + if (operator_ != com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator.OPERATOR_UNSPECIFIED.getNumber()) { + output.writeEnum(2, operator_); + } + for (int i = 0; i < values_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, values_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + if (operator_ != com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator.OPERATOR_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, operator_); + } + { + int dataSize = 0; + for (int i = 0; i < values_.size(); i++) { + dataSize += computeStringSizeNoTag(values_.getRaw(i)); + } + size += dataSize; + size += 1 * getValuesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.SoleTenantConfig.NodeAffinity)) { + return super.equals(obj); + } + com.google.container.v1beta1.SoleTenantConfig.NodeAffinity other = (com.google.container.v1beta1.SoleTenantConfig.NodeAffinity) obj; + + if (!getKey() + .equals(other.getKey())) return false; + if (operator_ != other.operator_) return false; + if (!getValuesList() + .equals(other.getValuesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + OPERATOR_FIELD_NUMBER; + hash = (53 * hash) + operator_; + if (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.SoleTenantConfig.NodeAffinity parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SoleTenantConfig.NodeAffinity parseFrom( + 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.SoleTenantConfig.NodeAffinity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SoleTenantConfig.NodeAffinity parseFrom( + com.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.SoleTenantConfig.NodeAffinity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SoleTenantConfig.NodeAffinity parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SoleTenantConfig.NodeAffinity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SoleTenantConfig.NodeAffinity parseFrom( + java.io.InputStream 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.SoleTenantConfig.NodeAffinity parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SoleTenantConfig.NodeAffinity parseDelimitedFrom( + java.io.InputStream 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.SoleTenantConfig.NodeAffinity parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SoleTenantConfig.NodeAffinity parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.SoleTenantConfig.NodeAffinity prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Specifies the NodeAffinity key, values, and affinity operator according to
+     * [shared sole tenant node group
+     * affinities](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes#node_affinity_and_anti-affinity).
+     * 
+ * + * Protobuf type {@code google.container.v1beta1.SoleTenantConfig.NodeAffinity} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.SoleTenantConfig.NodeAffinity) + com.google.container.v1beta1.SoleTenantConfig.NodeAffinityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SoleTenantConfig_NodeAffinity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SoleTenantConfig_NodeAffinity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.class, com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Builder.class); + } + + // Construct using com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + key_ = ""; + operator_ = 0; + values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SoleTenantConfig_NodeAffinity_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SoleTenantConfig.NodeAffinity getDefaultInstanceForType() { + return com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SoleTenantConfig.NodeAffinity build() { + com.google.container.v1beta1.SoleTenantConfig.NodeAffinity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SoleTenantConfig.NodeAffinity buildPartial() { + com.google.container.v1beta1.SoleTenantConfig.NodeAffinity result = new com.google.container.v1beta1.SoleTenantConfig.NodeAffinity(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.SoleTenantConfig.NodeAffinity result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.key_ = key_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.operator_ = operator_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + values_.makeImmutable(); + result.values_ = values_; + } + } + + @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.SoleTenantConfig.NodeAffinity) { + return mergeFrom((com.google.container.v1beta1.SoleTenantConfig.NodeAffinity)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SoleTenantConfig.NodeAffinity other) { + if (other == com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.operator_ != 0) { + setOperatorValue(other.getOperatorValue()); + } + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ |= 0x00000004; + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + key_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + operator_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureValuesIsMutable(); + values_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object key_ = ""; + /** + *
+       * Key for NodeAffinity.
+       * 
+ * + * 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 NodeAffinity.
+       * 
+ * + * 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 NodeAffinity.
+       * 
+ * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Key for NodeAffinity.
+       * 
+ * + * string key = 1; + * @return This builder for chaining. + */ + public Builder clearKey() { + key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * Key for NodeAffinity.
+       * 
+ * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int operator_ = 0; + /** + *
+       * Operator for NodeAffinity.
+       * 
+ * + * .google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator operator = 2; + * @return The enum numeric value on the wire for operator. + */ + @java.lang.Override public int getOperatorValue() { + return operator_; + } + /** + *
+       * Operator for NodeAffinity.
+       * 
+ * + * .google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator operator = 2; + * @param value The enum numeric value on the wire for operator to set. + * @return This builder for chaining. + */ + public Builder setOperatorValue(int value) { + operator_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Operator for NodeAffinity.
+       * 
+ * + * .google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator operator = 2; + * @return The operator. + */ + @java.lang.Override + public com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator getOperator() { + com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator result = com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator.forNumber(operator_); + return result == null ? com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator.UNRECOGNIZED : result; + } + /** + *
+       * Operator for NodeAffinity.
+       * 
+ * + * .google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator operator = 2; + * @param value The operator to set. + * @return This builder for chaining. + */ + public Builder setOperator(com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + operator_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Operator for NodeAffinity.
+       * 
+ * + * .google.container.v1beta1.SoleTenantConfig.NodeAffinity.Operator operator = 2; + * @return This builder for chaining. + */ + public Builder clearOperator() { + bitField0_ = (bitField0_ & ~0x00000002); + operator_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureValuesIsMutable() { + if (!values_.isModifiable()) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + } + bitField0_ |= 0x00000004; + } + /** + *
+       * Values for NodeAffinity.
+       * 
+ * + * repeated string values = 3; + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList + getValuesList() { + values_.makeImmutable(); + return values_; + } + /** + *
+       * Values for NodeAffinity.
+       * 
+ * + * repeated string values = 3; + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + *
+       * Values for NodeAffinity.
+       * 
+ * + * 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); + } + /** + *
+       * Values for NodeAffinity.
+       * 
+ * + * 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); + } + /** + *
+       * Values for NodeAffinity.
+       * 
+ * + * 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); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Values for NodeAffinity.
+       * 
+ * + * 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); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Values for NodeAffinity.
+       * 
+ * + * 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_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Values for NodeAffinity.
+       * 
+ * + * repeated string values = 3; + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; + onChanged(); + return this; + } + /** + *
+       * Values for NodeAffinity.
+       * 
+ * + * 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); + bitField0_ |= 0x00000004; + 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.SoleTenantConfig.NodeAffinity) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SoleTenantConfig.NodeAffinity) + private static final com.google.container.v1beta1.SoleTenantConfig.NodeAffinity DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SoleTenantConfig.NodeAffinity(); + } + + public static com.google.container.v1beta1.SoleTenantConfig.NodeAffinity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeAffinity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.SoleTenantConfig.NodeAffinity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int NODE_AFFINITIES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List nodeAffinities_; + /** + *
+   * NodeAffinities used to match to a shared sole tenant node group.
+   * 
+ * + * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + @java.lang.Override + public java.util.List getNodeAffinitiesList() { + return nodeAffinities_; + } + /** + *
+   * NodeAffinities used to match to a shared sole tenant node group.
+   * 
+ * + * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + @java.lang.Override + public java.util.List + getNodeAffinitiesOrBuilderList() { + return nodeAffinities_; + } + /** + *
+   * NodeAffinities used to match to a shared sole tenant node group.
+   * 
+ * + * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + @java.lang.Override + public int getNodeAffinitiesCount() { + return nodeAffinities_.size(); + } + /** + *
+   * NodeAffinities used to match to a shared sole tenant node group.
+   * 
+ * + * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.SoleTenantConfig.NodeAffinity getNodeAffinities(int index) { + return nodeAffinities_.get(index); + } + /** + *
+   * NodeAffinities used to match to a shared sole tenant node group.
+   * 
+ * + * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.SoleTenantConfig.NodeAffinityOrBuilder getNodeAffinitiesOrBuilder( + int index) { + return nodeAffinities_.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 < nodeAffinities_.size(); i++) { + output.writeMessage(1, nodeAffinities_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < nodeAffinities_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, nodeAffinities_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.SoleTenantConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.SoleTenantConfig other = (com.google.container.v1beta1.SoleTenantConfig) obj; + + if (!getNodeAffinitiesList() + .equals(other.getNodeAffinitiesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getNodeAffinitiesCount() > 0) { + hash = (37 * hash) + NODE_AFFINITIES_FIELD_NUMBER; + hash = (53 * hash) + getNodeAffinitiesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.SoleTenantConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SoleTenantConfig parseFrom( + 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.SoleTenantConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SoleTenantConfig parseFrom( + com.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.SoleTenantConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.SoleTenantConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.SoleTenantConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SoleTenantConfig parseFrom( + java.io.InputStream 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.SoleTenantConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SoleTenantConfig parseDelimitedFrom( + java.io.InputStream 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.SoleTenantConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.SoleTenantConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.SoleTenantConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * SoleTenantConfig contains the NodeAffinities to specify what shared sole
+   * tenant node groups should back the node pool.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.SoleTenantConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.SoleTenantConfig) + com.google.container.v1beta1.SoleTenantConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SoleTenantConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_SoleTenantConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SoleTenantConfig.class, com.google.container.v1beta1.SoleTenantConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.SoleTenantConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (nodeAffinitiesBuilder_ == null) { + nodeAffinities_ = java.util.Collections.emptyList(); + } else { + nodeAffinities_ = null; + nodeAffinitiesBuilder_.clear(); + } + 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_SoleTenantConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SoleTenantConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.SoleTenantConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SoleTenantConfig build() { + com.google.container.v1beta1.SoleTenantConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SoleTenantConfig buildPartial() { + com.google.container.v1beta1.SoleTenantConfig result = new com.google.container.v1beta1.SoleTenantConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1beta1.SoleTenantConfig result) { + if (nodeAffinitiesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + nodeAffinities_ = java.util.Collections.unmodifiableList(nodeAffinities_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.nodeAffinities_ = nodeAffinities_; + } else { + result.nodeAffinities_ = nodeAffinitiesBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1beta1.SoleTenantConfig result) { + int from_bitField0_ = bitField0_; + } + + @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.SoleTenantConfig) { + return mergeFrom((com.google.container.v1beta1.SoleTenantConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SoleTenantConfig other) { + if (other == com.google.container.v1beta1.SoleTenantConfig.getDefaultInstance()) return this; + if (nodeAffinitiesBuilder_ == null) { + if (!other.nodeAffinities_.isEmpty()) { + if (nodeAffinities_.isEmpty()) { + nodeAffinities_ = other.nodeAffinities_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNodeAffinitiesIsMutable(); + nodeAffinities_.addAll(other.nodeAffinities_); + } + onChanged(); + } + } else { + if (!other.nodeAffinities_.isEmpty()) { + if (nodeAffinitiesBuilder_.isEmpty()) { + nodeAffinitiesBuilder_.dispose(); + nodeAffinitiesBuilder_ = null; + nodeAffinities_ = other.nodeAffinities_; + bitField0_ = (bitField0_ & ~0x00000001); + nodeAffinitiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNodeAffinitiesFieldBuilder() : null; + } else { + nodeAffinitiesBuilder_.addAllMessages(other.nodeAffinities_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.container.v1beta1.SoleTenantConfig.NodeAffinity m = + input.readMessage( + com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.parser(), + extensionRegistry); + if (nodeAffinitiesBuilder_ == null) { + ensureNodeAffinitiesIsMutable(); + nodeAffinities_.add(m); + } else { + nodeAffinitiesBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List nodeAffinities_ = + java.util.Collections.emptyList(); + private void ensureNodeAffinitiesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + nodeAffinities_ = new java.util.ArrayList(nodeAffinities_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.SoleTenantConfig.NodeAffinity, com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Builder, com.google.container.v1beta1.SoleTenantConfig.NodeAffinityOrBuilder> nodeAffinitiesBuilder_; + + /** + *
+     * NodeAffinities used to match to a shared sole tenant node group.
+     * 
+ * + * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + public java.util.List getNodeAffinitiesList() { + if (nodeAffinitiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodeAffinities_); + } else { + return nodeAffinitiesBuilder_.getMessageList(); + } + } + /** + *
+     * NodeAffinities used to match to a shared sole tenant node group.
+     * 
+ * + * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + public int getNodeAffinitiesCount() { + if (nodeAffinitiesBuilder_ == null) { + return nodeAffinities_.size(); + } else { + return nodeAffinitiesBuilder_.getCount(); + } + } + /** + *
+     * NodeAffinities used to match to a shared sole tenant node group.
+     * 
+ * + * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + public com.google.container.v1beta1.SoleTenantConfig.NodeAffinity getNodeAffinities(int index) { + if (nodeAffinitiesBuilder_ == null) { + return nodeAffinities_.get(index); + } else { + return nodeAffinitiesBuilder_.getMessage(index); + } + } + /** + *
+     * NodeAffinities used to match to a shared sole tenant node group.
+     * 
+ * + * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + public Builder setNodeAffinities( + int index, com.google.container.v1beta1.SoleTenantConfig.NodeAffinity value) { + if (nodeAffinitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeAffinitiesIsMutable(); + nodeAffinities_.set(index, value); + onChanged(); + } else { + nodeAffinitiesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * NodeAffinities used to match to a shared sole tenant node group.
+     * 
+ * + * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + public Builder setNodeAffinities( + int index, com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Builder builderForValue) { + if (nodeAffinitiesBuilder_ == null) { + ensureNodeAffinitiesIsMutable(); + nodeAffinities_.set(index, builderForValue.build()); + onChanged(); + } else { + nodeAffinitiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * NodeAffinities used to match to a shared sole tenant node group.
+     * 
+ * + * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + public Builder addNodeAffinities(com.google.container.v1beta1.SoleTenantConfig.NodeAffinity value) { + if (nodeAffinitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeAffinitiesIsMutable(); + nodeAffinities_.add(value); + onChanged(); + } else { + nodeAffinitiesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * NodeAffinities used to match to a shared sole tenant node group.
+     * 
+ * + * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + public Builder addNodeAffinities( + int index, com.google.container.v1beta1.SoleTenantConfig.NodeAffinity value) { + if (nodeAffinitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeAffinitiesIsMutable(); + nodeAffinities_.add(index, value); + onChanged(); + } else { + nodeAffinitiesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * NodeAffinities used to match to a shared sole tenant node group.
+     * 
+ * + * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + public Builder addNodeAffinities( + com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Builder builderForValue) { + if (nodeAffinitiesBuilder_ == null) { + ensureNodeAffinitiesIsMutable(); + nodeAffinities_.add(builderForValue.build()); + onChanged(); + } else { + nodeAffinitiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * NodeAffinities used to match to a shared sole tenant node group.
+     * 
+ * + * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + public Builder addNodeAffinities( + int index, com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Builder builderForValue) { + if (nodeAffinitiesBuilder_ == null) { + ensureNodeAffinitiesIsMutable(); + nodeAffinities_.add(index, builderForValue.build()); + onChanged(); + } else { + nodeAffinitiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * NodeAffinities used to match to a shared sole tenant node group.
+     * 
+ * + * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + public Builder addAllNodeAffinities( + java.lang.Iterable values) { + if (nodeAffinitiesBuilder_ == null) { + ensureNodeAffinitiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nodeAffinities_); + onChanged(); + } else { + nodeAffinitiesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * NodeAffinities used to match to a shared sole tenant node group.
+     * 
+ * + * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + public Builder clearNodeAffinities() { + if (nodeAffinitiesBuilder_ == null) { + nodeAffinities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + nodeAffinitiesBuilder_.clear(); + } + return this; + } + /** + *
+     * NodeAffinities used to match to a shared sole tenant node group.
+     * 
+ * + * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + public Builder removeNodeAffinities(int index) { + if (nodeAffinitiesBuilder_ == null) { + ensureNodeAffinitiesIsMutable(); + nodeAffinities_.remove(index); + onChanged(); + } else { + nodeAffinitiesBuilder_.remove(index); + } + return this; + } + /** + *
+     * NodeAffinities used to match to a shared sole tenant node group.
+     * 
+ * + * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + public com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Builder getNodeAffinitiesBuilder( + int index) { + return getNodeAffinitiesFieldBuilder().getBuilder(index); + } + /** + *
+     * NodeAffinities used to match to a shared sole tenant node group.
+     * 
+ * + * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + public com.google.container.v1beta1.SoleTenantConfig.NodeAffinityOrBuilder getNodeAffinitiesOrBuilder( + int index) { + if (nodeAffinitiesBuilder_ == null) { + return nodeAffinities_.get(index); } else { + return nodeAffinitiesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * NodeAffinities used to match to a shared sole tenant node group.
+     * 
+ * + * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + public java.util.List + getNodeAffinitiesOrBuilderList() { + if (nodeAffinitiesBuilder_ != null) { + return nodeAffinitiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodeAffinities_); + } + } + /** + *
+     * NodeAffinities used to match to a shared sole tenant node group.
+     * 
+ * + * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + public com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Builder addNodeAffinitiesBuilder() { + return getNodeAffinitiesFieldBuilder().addBuilder( + com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.getDefaultInstance()); + } + /** + *
+     * NodeAffinities used to match to a shared sole tenant node group.
+     * 
+ * + * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + public com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Builder addNodeAffinitiesBuilder( + int index) { + return getNodeAffinitiesFieldBuilder().addBuilder( + index, com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.getDefaultInstance()); + } + /** + *
+     * NodeAffinities used to match to a shared sole tenant node group.
+     * 
+ * + * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + public java.util.List + getNodeAffinitiesBuilderList() { + return getNodeAffinitiesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.SoleTenantConfig.NodeAffinity, com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Builder, com.google.container.v1beta1.SoleTenantConfig.NodeAffinityOrBuilder> + getNodeAffinitiesFieldBuilder() { + if (nodeAffinitiesBuilder_ == null) { + nodeAffinitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.SoleTenantConfig.NodeAffinity, com.google.container.v1beta1.SoleTenantConfig.NodeAffinity.Builder, com.google.container.v1beta1.SoleTenantConfig.NodeAffinityOrBuilder>( + nodeAffinities_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + nodeAffinities_ = null; + } + return nodeAffinitiesBuilder_; + } + @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.SoleTenantConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SoleTenantConfig) + private static final com.google.container.v1beta1.SoleTenantConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SoleTenantConfig(); + } + + public static com.google.container.v1beta1.SoleTenantConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SoleTenantConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.SoleTenantConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SoleTenantConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SoleTenantConfigOrBuilder.java new file mode 100644 index 000000000000..d73383ed2924 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SoleTenantConfigOrBuilder.java @@ -0,0 +1,54 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface SoleTenantConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SoleTenantConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * NodeAffinities used to match to a shared sole tenant node group.
+   * 
+ * + * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + java.util.List + getNodeAffinitiesList(); + /** + *
+   * NodeAffinities used to match to a shared sole tenant node group.
+   * 
+ * + * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + com.google.container.v1beta1.SoleTenantConfig.NodeAffinity getNodeAffinities(int index); + /** + *
+   * NodeAffinities used to match to a shared sole tenant node group.
+   * 
+ * + * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + int getNodeAffinitiesCount(); + /** + *
+   * NodeAffinities used to match to a shared sole tenant node group.
+   * 
+ * + * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + java.util.List + getNodeAffinitiesOrBuilderList(); + /** + *
+   * NodeAffinities used to match to a shared sole tenant node group.
+   * 
+ * + * repeated .google.container.v1beta1.SoleTenantConfig.NodeAffinity node_affinities = 1; + */ + com.google.container.v1beta1.SoleTenantConfig.NodeAffinityOrBuilder getNodeAffinitiesOrBuilder( + int index); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StackType.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StackType.java new file mode 100644 index 000000000000..c50603aad9d8 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StackType.java @@ -0,0 +1,151 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * Possible values for IP stack type
+ * 
+ * + * Protobuf enum {@code google.container.v1beta1.StackType} + */ +public enum StackType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+   * By default, the clusters will be IPV4 only
+   * 
+ * + * STACK_TYPE_UNSPECIFIED = 0; + */ + STACK_TYPE_UNSPECIFIED(0), + /** + *
+   * The value used if the cluster is a IPV4 only
+   * 
+ * + * IPV4 = 1; + */ + IPV4(1), + /** + *
+   * The value used if the cluster is a dual stack cluster
+   * 
+ * + * IPV4_IPV6 = 2; + */ + IPV4_IPV6(2), + UNRECOGNIZED(-1), + ; + + /** + *
+   * By default, the clusters will be IPV4 only
+   * 
+ * + * STACK_TYPE_UNSPECIFIED = 0; + */ + public static final int STACK_TYPE_UNSPECIFIED_VALUE = 0; + /** + *
+   * The value used if the cluster is a IPV4 only
+   * 
+ * + * IPV4 = 1; + */ + public static final int IPV4_VALUE = 1; + /** + *
+   * The value used if the cluster is a dual stack cluster
+   * 
+ * + * IPV4_IPV6 = 2; + */ + public static final int IPV4_IPV6_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 StackType 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 StackType forNumber(int value) { + switch (value) { + case 0: return STACK_TYPE_UNSPECIFIED; + case 1: return IPV4; + case 2: return IPV4_IPV6; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + StackType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public StackType findValueByNumber(int number) { + return StackType.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(4); + } + + private static final StackType[] VALUES = values(); + + public static StackType 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 StackType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.StackType) +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequest.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequest.java new file mode 100644 index 000000000000..ec0dd2bf71e7 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequest.java @@ -0,0 +1,1246 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4587 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4587 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4594 + * @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]; + * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4594 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4598 + * @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]; + * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4598 + * @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; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * The name (project, location, cluster name) 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 name) 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_ = false; + /** + *
+   * 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); + } + if (rotateCredentials_ != false) { + output.writeBool(7, rotateCredentials_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); + } + if (rotateCredentials_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, rotateCredentials_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.StartIPRotationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.rotateCredentials_ = rotateCredentials_; + } + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.getRotateCredentials() != false) { + setRotateCredentials(other.getRotateCredentials()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 50: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 50 + case 56: { + rotateCredentials_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 56 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4587 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4587 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4587 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4587 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4587 + * @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; + bitField0_ |= 0x00000001; + 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]; + * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4594 + * @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]; + * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4594 + * @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]; + * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4594 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4594 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + 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]; + * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4594 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4598 + * @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]; + * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4598 + * @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]; + * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4598 + * @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; + bitField0_ |= 0x00000004; + 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]; + * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4598 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + 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]; + * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4598 + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The name (project, location, cluster name) 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 name) 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 name) 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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster name) 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(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * The name (project, location, cluster name) 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; + bitField0_ |= 0x00000008; + 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; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Whether to rotate credentials during IP rotation.
+     * 
+ * + * bool rotate_credentials = 7; + * @return This builder for chaining. + */ + public Builder clearRotateCredentials() { + bitField0_ = (bitField0_ & ~0x00000010); + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequestOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequestOrBuilder.java new file mode 100644 index 000000000000..31862064ab6a --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequestOrBuilder.java @@ -0,0 +1,126 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4587 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4587 + * @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]; + * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4594 + * @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]; + * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4594 + * @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]; + * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4598 + * @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]; + * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4598 + * @return The bytes for clusterId. + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getClusterIdBytes(); + + /** + *
+   * The name (project, location, cluster name) 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 name) 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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatefulHAConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatefulHAConfig.java new file mode 100644 index 000000000000..f7b7bb67355f --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatefulHAConfig.java @@ -0,0 +1,497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * Configuration for the Stateful HA add-on.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.StatefulHAConfig} + */ +public final class StatefulHAConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.StatefulHAConfig) + StatefulHAConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use StatefulHAConfig.newBuilder() to construct. + private StatefulHAConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StatefulHAConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StatefulHAConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_StatefulHAConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_StatefulHAConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.StatefulHAConfig.class, com.google.container.v1beta1.StatefulHAConfig.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * Whether the Stateful HA add-on 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.StatefulHAConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.StatefulHAConfig other = (com.google.container.v1beta1.StatefulHAConfig) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.StatefulHAConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.StatefulHAConfig parseFrom( + 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.StatefulHAConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.StatefulHAConfig parseFrom( + com.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.StatefulHAConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.StatefulHAConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.StatefulHAConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.StatefulHAConfig parseFrom( + java.io.InputStream 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.StatefulHAConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.StatefulHAConfig parseDelimitedFrom( + java.io.InputStream 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.StatefulHAConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.StatefulHAConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.StatefulHAConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new 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 Stateful HA add-on.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.StatefulHAConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.StatefulHAConfig) + com.google.container.v1beta1.StatefulHAConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_StatefulHAConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_StatefulHAConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.StatefulHAConfig.class, com.google.container.v1beta1.StatefulHAConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.StatefulHAConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 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_StatefulHAConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.StatefulHAConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.StatefulHAConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.StatefulHAConfig build() { + com.google.container.v1beta1.StatefulHAConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.StatefulHAConfig buildPartial() { + com.google.container.v1beta1.StatefulHAConfig result = new com.google.container.v1beta1.StatefulHAConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.StatefulHAConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @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.StatefulHAConfig) { + return mergeFrom((com.google.container.v1beta1.StatefulHAConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.StatefulHAConfig other) { + if (other == com.google.container.v1beta1.StatefulHAConfig.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enabled_ ; + /** + *
+     * Whether the Stateful HA add-on is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Whether the Stateful HA add-on 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether the Stateful HA add-on is enabled for this cluster.
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + 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.StatefulHAConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.StatefulHAConfig) + private static final com.google.container.v1beta1.StatefulHAConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.StatefulHAConfig(); + } + + public static com.google.container.v1beta1.StatefulHAConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StatefulHAConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.StatefulHAConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatefulHAConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatefulHAConfigOrBuilder.java new file mode 100644 index 000000000000..76cb6cc926d4 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatefulHAConfigOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface StatefulHAConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.StatefulHAConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether the Stateful HA add-on is enabled for this cluster.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusCondition.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusCondition.java new file mode 100644 index 000000000000..4bdff0816394 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusCondition.java @@ -0,0 +1,1066 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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} + */ + @java.lang.Deprecated 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.
+     * 
+ * + * CLOUD_KMS_KEY_ERROR = 7; + */ + CLOUD_KMS_KEY_ERROR(7), + /** + *
+     * Cluster CA is expiring soon.
+     * More codes TBA
+     * 
+ * + * CA_EXPIRING = 9; + */ + CA_EXPIRING(9), + 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.
+     * 
+ * + * CLOUD_KMS_KEY_ERROR = 7; + */ + public static final int CLOUD_KMS_KEY_ERROR_VALUE = 7; + /** + *
+     * Cluster CA is expiring soon.
+     * More codes TBA
+     * 
+ * + * CA_EXPIRING = 9; + */ + public static final int CA_EXPIRING_VALUE = 9; + + + 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; + case 9: return CA_EXPIRING; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Code> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Code findValueByNumber(int number) { + return Code.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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_ = 0; + /** + *
+   * Machine-friendly representation of the condition
+   * Deprecated. Use canonical_code instead.
+   * 
+ * + * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; + * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4895 + * @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]; + * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4895 + * @return The code. + */ + @java.lang.Override @java.lang.Deprecated public com.google.container.v1beta1.StatusCondition.Code getCode() { + com.google.container.v1beta1.StatusCondition.Code result = com.google.container.v1beta1.StatusCondition.Code.forNumber(code_); + return result == null ? com.google.container.v1beta1.StatusCondition.Code.UNRECOGNIZED : result; + } + + public static final int MESSAGE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + 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_ = 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; + * @return The canonicalCode. + */ + @java.lang.Override public com.google.rpc.Code getCanonicalCode() { + com.google.rpc.Code result = com.google.rpc.Code.forNumber(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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); + } + if (canonicalCode_ != com.google.rpc.Code.OK.getNumber()) { + output.writeEnum(3, canonicalCode_); + } + getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); + } + if (canonicalCode_ != com.google.rpc.Code.OK.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, canonicalCode_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.StatusCondition result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.code_ = code_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.message_ = message_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.canonicalCode_ = canonicalCode_; + } + } + + @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_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.canonicalCode_ != 0) { + setCanonicalCodeValue(other.getCanonicalCodeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + code_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + message_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + canonicalCode_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int code_ = 0; + /** + *
+     * Machine-friendly representation of the condition
+     * Deprecated. Use canonical_code instead.
+     * 
+ * + * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; + * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4895 + * @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]; + * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4895 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Machine-friendly representation of the condition
+     * Deprecated. Use canonical_code instead.
+     * 
+ * + * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; + * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4895 + * @return The code. + */ + @java.lang.Override + @java.lang.Deprecated public com.google.container.v1beta1.StatusCondition.Code getCode() { + com.google.container.v1beta1.StatusCondition.Code result = com.google.container.v1beta1.StatusCondition.Code.forNumber(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]; + * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4895 + * @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(); + } + bitField0_ |= 0x00000001; + 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]; + * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4895 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearCode() { + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Human-friendly representation of the condition
+     * 
+ * + * string message = 2; + * @return This builder for chaining. + */ + public Builder clearMessage() { + message_ = getDefaultInstance().getMessage(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + 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; + bitField0_ |= 0x00000004; + 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() { + com.google.rpc.Code result = com.google.rpc.Code.forNumber(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(); + } + bitField0_ |= 0x00000004; + 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() { + bitField0_ = (bitField0_ & ~0x00000004); + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusConditionOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusConditionOrBuilder.java new file mode 100644 index 000000000000..01629a7af599 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusConditionOrBuilder.java @@ -0,0 +1,74 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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]; + * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4895 + * @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]; + * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4895 + * @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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TimeWindow.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TimeWindow.java new file mode 100644 index 000000000000..1e90733873d5 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TimeWindow.java @@ -0,0 +1,1243 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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); + } + + private int bitField0_; + private int optionsCase_ = 0; + @SuppressWarnings("serial") + private java.lang.Object options_; + public enum OptionsCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + MAINTENANCE_EXCLUSION_OPTIONS(3), + OPTIONS_NOT_SET(0); + private final int value; + private OptionsCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OptionsCase valueOf(int value) { + return forNumber(value); + } + + public static OptionsCase forNumber(int value) { + switch (value) { + case 3: return MAINTENANCE_EXCLUSION_OPTIONS; + case 0: return OPTIONS_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OptionsCase + getOptionsCase() { + return OptionsCase.forNumber( + optionsCase_); + } + + public static final int MAINTENANCE_EXCLUSION_OPTIONS_FIELD_NUMBER = 3; + /** + *
+   * MaintenanceExclusionOptions provides maintenance exclusion related
+   * options.
+   * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * @return Whether the maintenanceExclusionOptions field is set. + */ + @java.lang.Override + public boolean hasMaintenanceExclusionOptions() { + return optionsCase_ == 3; + } + /** + *
+   * MaintenanceExclusionOptions provides maintenance exclusion related
+   * options.
+   * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * @return The maintenanceExclusionOptions. + */ + @java.lang.Override + public com.google.container.v1beta1.MaintenanceExclusionOptions getMaintenanceExclusionOptions() { + if (optionsCase_ == 3) { + return (com.google.container.v1beta1.MaintenanceExclusionOptions) options_; + } + return com.google.container.v1beta1.MaintenanceExclusionOptions.getDefaultInstance(); + } + /** + *
+   * MaintenanceExclusionOptions provides maintenance exclusion related
+   * options.
+   * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + */ + @java.lang.Override + public com.google.container.v1beta1.MaintenanceExclusionOptionsOrBuilder getMaintenanceExclusionOptionsOrBuilder() { + if (optionsCase_ == 3) { + return (com.google.container.v1beta1.MaintenanceExclusionOptions) options_; + } + return com.google.container.v1beta1.MaintenanceExclusionOptions.getDefaultInstance(); + } + + public static final int START_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp startTime_; + /** + *
+   * 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 ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * 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 startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + 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 ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * 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 endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getEndTime()); + } + if (optionsCase_ == 3) { + output.writeMessage(3, (com.google.container.v1beta1.MaintenanceExclusionOptions) options_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); + } + if (optionsCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.container.v1beta1.MaintenanceExclusionOptions) options_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getOptionsCase().equals(other.getOptionsCase())) return false; + switch (optionsCase_) { + case 3: + if (!getMaintenanceExclusionOptions() + .equals(other.getMaintenanceExclusionOptions())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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(); + } + switch (optionsCase_) { + case 3: + hash = (37 * hash) + MAINTENANCE_EXCLUSION_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getMaintenanceExclusionOptions().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().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) { + getStartTimeFieldBuilder(); + getEndTimeFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (maintenanceExclusionOptionsBuilder_ != null) { + maintenanceExclusionOptionsBuilder_.clear(); + } + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + optionsCase_ = 0; + options_ = 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 (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.TimeWindow result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.startTime_ = startTimeBuilder_ == null + ? startTime_ + : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.container.v1beta1.TimeWindow result) { + result.optionsCase_ = optionsCase_; + result.options_ = this.options_; + if (optionsCase_ == 3 && + maintenanceExclusionOptionsBuilder_ != null) { + result.options_ = maintenanceExclusionOptionsBuilder_.build(); + } + } + + @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()); + } + switch (other.getOptionsCase()) { + case MAINTENANCE_EXCLUSION_OPTIONS: { + mergeMaintenanceExclusionOptions(other.getMaintenanceExclusionOptions()); + break; + } + case OPTIONS_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: { + input.readMessage( + getMaintenanceExclusionOptionsFieldBuilder().getBuilder(), + extensionRegistry); + optionsCase_ = 3; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int optionsCase_ = 0; + private java.lang.Object options_; + public OptionsCase + getOptionsCase() { + return OptionsCase.forNumber( + optionsCase_); + } + + public Builder clearOptions() { + optionsCase_ = 0; + options_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaintenanceExclusionOptions, com.google.container.v1beta1.MaintenanceExclusionOptions.Builder, com.google.container.v1beta1.MaintenanceExclusionOptionsOrBuilder> maintenanceExclusionOptionsBuilder_; + /** + *
+     * MaintenanceExclusionOptions provides maintenance exclusion related
+     * options.
+     * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * @return Whether the maintenanceExclusionOptions field is set. + */ + @java.lang.Override + public boolean hasMaintenanceExclusionOptions() { + return optionsCase_ == 3; + } + /** + *
+     * MaintenanceExclusionOptions provides maintenance exclusion related
+     * options.
+     * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * @return The maintenanceExclusionOptions. + */ + @java.lang.Override + public com.google.container.v1beta1.MaintenanceExclusionOptions getMaintenanceExclusionOptions() { + if (maintenanceExclusionOptionsBuilder_ == null) { + if (optionsCase_ == 3) { + return (com.google.container.v1beta1.MaintenanceExclusionOptions) options_; + } + return com.google.container.v1beta1.MaintenanceExclusionOptions.getDefaultInstance(); + } else { + if (optionsCase_ == 3) { + return maintenanceExclusionOptionsBuilder_.getMessage(); + } + return com.google.container.v1beta1.MaintenanceExclusionOptions.getDefaultInstance(); + } + } + /** + *
+     * MaintenanceExclusionOptions provides maintenance exclusion related
+     * options.
+     * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + */ + public Builder setMaintenanceExclusionOptions(com.google.container.v1beta1.MaintenanceExclusionOptions value) { + if (maintenanceExclusionOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + options_ = value; + onChanged(); + } else { + maintenanceExclusionOptionsBuilder_.setMessage(value); + } + optionsCase_ = 3; + return this; + } + /** + *
+     * MaintenanceExclusionOptions provides maintenance exclusion related
+     * options.
+     * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + */ + public Builder setMaintenanceExclusionOptions( + com.google.container.v1beta1.MaintenanceExclusionOptions.Builder builderForValue) { + if (maintenanceExclusionOptionsBuilder_ == null) { + options_ = builderForValue.build(); + onChanged(); + } else { + maintenanceExclusionOptionsBuilder_.setMessage(builderForValue.build()); + } + optionsCase_ = 3; + return this; + } + /** + *
+     * MaintenanceExclusionOptions provides maintenance exclusion related
+     * options.
+     * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + */ + public Builder mergeMaintenanceExclusionOptions(com.google.container.v1beta1.MaintenanceExclusionOptions value) { + if (maintenanceExclusionOptionsBuilder_ == null) { + if (optionsCase_ == 3 && + options_ != com.google.container.v1beta1.MaintenanceExclusionOptions.getDefaultInstance()) { + options_ = com.google.container.v1beta1.MaintenanceExclusionOptions.newBuilder((com.google.container.v1beta1.MaintenanceExclusionOptions) options_) + .mergeFrom(value).buildPartial(); + } else { + options_ = value; + } + onChanged(); + } else { + if (optionsCase_ == 3) { + maintenanceExclusionOptionsBuilder_.mergeFrom(value); + } else { + maintenanceExclusionOptionsBuilder_.setMessage(value); + } + } + optionsCase_ = 3; + return this; + } + /** + *
+     * MaintenanceExclusionOptions provides maintenance exclusion related
+     * options.
+     * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + */ + public Builder clearMaintenanceExclusionOptions() { + if (maintenanceExclusionOptionsBuilder_ == null) { + if (optionsCase_ == 3) { + optionsCase_ = 0; + options_ = null; + onChanged(); + } + } else { + if (optionsCase_ == 3) { + optionsCase_ = 0; + options_ = null; + } + maintenanceExclusionOptionsBuilder_.clear(); + } + return this; + } + /** + *
+     * MaintenanceExclusionOptions provides maintenance exclusion related
+     * options.
+     * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + */ + public com.google.container.v1beta1.MaintenanceExclusionOptions.Builder getMaintenanceExclusionOptionsBuilder() { + return getMaintenanceExclusionOptionsFieldBuilder().getBuilder(); + } + /** + *
+     * MaintenanceExclusionOptions provides maintenance exclusion related
+     * options.
+     * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + */ + @java.lang.Override + public com.google.container.v1beta1.MaintenanceExclusionOptionsOrBuilder getMaintenanceExclusionOptionsOrBuilder() { + if ((optionsCase_ == 3) && (maintenanceExclusionOptionsBuilder_ != null)) { + return maintenanceExclusionOptionsBuilder_.getMessageOrBuilder(); + } else { + if (optionsCase_ == 3) { + return (com.google.container.v1beta1.MaintenanceExclusionOptions) options_; + } + return com.google.container.v1beta1.MaintenanceExclusionOptions.getDefaultInstance(); + } + } + /** + *
+     * MaintenanceExclusionOptions provides maintenance exclusion related
+     * options.
+     * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaintenanceExclusionOptions, com.google.container.v1beta1.MaintenanceExclusionOptions.Builder, com.google.container.v1beta1.MaintenanceExclusionOptionsOrBuilder> + getMaintenanceExclusionOptionsFieldBuilder() { + if (maintenanceExclusionOptionsBuilder_ == null) { + if (!(optionsCase_ == 3)) { + options_ = com.google.container.v1beta1.MaintenanceExclusionOptions.getDefaultInstance(); + } + maintenanceExclusionOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.MaintenanceExclusionOptions, com.google.container.v1beta1.MaintenanceExclusionOptions.Builder, com.google.container.v1beta1.MaintenanceExclusionOptionsOrBuilder>( + (com.google.container.v1beta1.MaintenanceExclusionOptions) options_, + getParentForChildren(), + isClean()); + options_ = null; + } + optionsCase_ = 3; + onChanged(); + return maintenanceExclusionOptionsBuilder_; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, 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 ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * 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; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + 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(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + 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 (((bitField0_ & 0x00000002) != 0) && + startTime_ != null && + startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + *
+     * The time that the window first starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000002); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The time that the window first starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000002; + 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 ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * 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; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + 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(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + 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 (((bitField0_ & 0x00000004) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + 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() { + bitField0_ = (bitField0_ & ~0x00000004); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000004; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TimeWindowOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TimeWindowOrBuilder.java new file mode 100644 index 000000000000..3e515d991d3a --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TimeWindowOrBuilder.java @@ -0,0 +1,99 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface TimeWindowOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.TimeWindow) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * MaintenanceExclusionOptions provides maintenance exclusion related
+   * options.
+   * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * @return Whether the maintenanceExclusionOptions field is set. + */ + boolean hasMaintenanceExclusionOptions(); + /** + *
+   * MaintenanceExclusionOptions provides maintenance exclusion related
+   * options.
+   * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + * @return The maintenanceExclusionOptions. + */ + com.google.container.v1beta1.MaintenanceExclusionOptions getMaintenanceExclusionOptions(); + /** + *
+   * MaintenanceExclusionOptions provides maintenance exclusion related
+   * options.
+   * 
+ * + * .google.container.v1beta1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; + */ + com.google.container.v1beta1.MaintenanceExclusionOptionsOrBuilder getMaintenanceExclusionOptionsOrBuilder(); + + /** + *
+   * 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(); + + com.google.container.v1beta1.TimeWindow.OptionsCase getOptionsCase(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TpuConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TpuConfig.java new file mode 100644 index 000000000000..1da1690daddd --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TpuConfig.java @@ -0,0 +1,744 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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_ = false; + /** + *
+   * 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_ = false; + /** + *
+   * 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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipv4CidrBlock_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ipv4CidrBlock_); + } + getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipv4CidrBlock_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ipv4CidrBlock_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.TpuConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.useServiceNetworking_ = useServiceNetworking_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.ipv4CidrBlock_ = ipv4CidrBlock_; + } + } + + @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_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + useServiceNetworking_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + ipv4CidrBlock_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether Cloud TPU integration is enabled or not.
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000002; + 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() { + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000004; + 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(); + bitField0_ = (bitField0_ & ~0x00000004); + 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; + bitField0_ |= 0x00000004; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TpuConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TpuConfigOrBuilder.java new file mode 100644 index 000000000000..8d17590d9ca2 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/TpuConfigOrBuilder.java @@ -0,0 +1,50 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequest.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequest.java new file mode 100644 index 000000000000..385ad509464d --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequest.java @@ -0,0 +1,1402 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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); + } + + private int bitField0_; + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2999 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2999 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3006 + * @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]; + * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3006 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3010 + * @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]; + * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3010 + * @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 ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * 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 update_ == null ? com.google.container.v1beta1.ClusterUpdate.getDefaultInstance() : update_; + } + + public static final int NAME_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getUpdate()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUpdate()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { + getUpdateFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + update_ = null; + if (updateBuilder_ != null) { + updateBuilder_.dispose(); + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.UpdateClusterRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.update_ = updateBuilder_ == null + ? update_ + : updateBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.name_ = name_; + } + result.bitField0_ |= to_bitField0_; + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasUpdate()) { + mergeUpdate(other.getUpdate()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getUpdateFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2999 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2999 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2999 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2999 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2999 + * @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; + bitField0_ |= 0x00000001; + 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]; + * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3006 + * @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]; + * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3006 + * @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]; + * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3006 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3006 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + 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]; + * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3006 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3010 + * @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]; + * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3010 + * @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]; + * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3010 + * @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; + bitField0_ |= 0x00000004; + 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]; + * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3010 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + 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]; + * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3010 + * @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; + bitField0_ |= 0x00000004; + 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 ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * 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; + } else { + updateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + 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(); + } else { + updateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + 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 (((bitField0_ & 0x00000008) != 0) && + update_ != null && + update_ != com.google.container.v1beta1.ClusterUpdate.getDefaultInstance()) { + getUpdateBuilder().mergeFrom(value); + } else { + update_ = value; + } + } else { + updateBuilder_.mergeFrom(value); + } + if (update_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + *
+     * Required. A description of the update.
+     * 
+ * + * .google.container.v1beta1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearUpdate() { + bitField0_ = (bitField0_ & ~0x00000008); + update_ = null; + if (updateBuilder_ != null) { + updateBuilder_.dispose(); + updateBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000008; + 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; + bitField0_ |= 0x00000010; + 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(); + bitField0_ = (bitField0_ & ~0x00000010); + 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; + bitField0_ |= 0x00000010; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequestOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequestOrBuilder.java new file mode 100644 index 000000000000..963ad0250d58 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequestOrBuilder.java @@ -0,0 +1,143 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2999 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=2999 + * @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]; + * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3006 + * @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]; + * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3006 + * @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]; + * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3010 + * @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]; + * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3010 + * @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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequest.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequest.java new file mode 100644 index 000000000000..86416605c1ac --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequest.java @@ -0,0 +1,1388 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3327 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3327 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3334 + * @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]; + * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3334 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3338 + * @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]; + * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3338 + * @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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(masterVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, masterVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(masterVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, masterVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.UpdateMasterRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.masterVersion_ = masterVersion_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.name_ = name_; + } + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getMasterVersion().isEmpty()) { + masterVersion_ = other.masterVersion_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + masterVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 58: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3327 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3327 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3327 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3327 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3327 + * @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; + bitField0_ |= 0x00000001; + 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]; + * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3334 + * @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]; + * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3334 + * @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]; + * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3334 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3334 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + 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]; + * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3334 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3338 + * @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]; + * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3338 + * @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]; + * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3338 + * @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; + bitField0_ |= 0x00000004; + 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]; + * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3338 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + 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]; + * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3338 + * @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; + bitField0_ |= 0x00000004; + 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; + bitField0_ |= 0x00000008; + 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(); + bitField0_ = (bitField0_ & ~0x00000008); + 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; + bitField0_ |= 0x00000008; + 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; + bitField0_ |= 0x00000010; + 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(); + bitField0_ = (bitField0_ & ~0x00000010); + 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; + bitField0_ |= 0x00000010; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequestOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequestOrBuilder.java new file mode 100644 index 000000000000..15828de3f342 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequestOrBuilder.java @@ -0,0 +1,154 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3327 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3327 + * @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]; + * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3334 + * @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]; + * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3334 + * @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]; + * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3338 + * @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]; + * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3338 + * @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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequest.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequest.java new file mode 100644 index 000000000000..86ed5d3306ab --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequest.java @@ -0,0 +1,6539 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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.emptyList(); + name_ = ""; + etag_ = ""; + machineType_ = ""; + diskType_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UpdateNodePoolRequest(); + } + + 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); + } + + private int bitField0_; + public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3026 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3026 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3033 + * @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]; + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3033 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3037 + * @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]; + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3037 + * @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; + @SuppressWarnings("serial") + 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]; + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3042 + * @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]; + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3042 + * @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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + private volatile java.lang.Object imageType_ = ""; + /** + *
+   * Required. The desired image type for the node pool. Please see
+   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+   * available image types.
+   * 
+ * + * 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. Please see
+   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+   * available image types.
+   * 
+ * + * 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; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList locations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * 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 ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * 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 workloadMetadataConfig_ == null ? com.google.container.v1beta1.WorkloadMetadataConfig.getDefaultInstance() : workloadMetadataConfig_; + } + + public static final int NAME_FIELD_NUMBER = 8; + @SuppressWarnings("serial") + 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 ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * 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 upgradeSettings_ == null ? com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance() : upgradeSettings_; + } + + public static final int TAGS_FIELD_NUMBER = 16; + private com.google.container.v1beta1.NetworkTags tags_; + /** + *
+   * The desired network tags to be applied to all nodes in the node pool.
+   * If this field is not present, the tags will not be changed. Otherwise,
+   * the existing network tags will be *replaced* with the provided tags.
+   * 
+ * + * .google.container.v1beta1.NetworkTags tags = 16; + * @return Whether the tags field is set. + */ + @java.lang.Override + public boolean hasTags() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+   * The desired network tags to be applied to all nodes in the node pool.
+   * If this field is not present, the tags will not be changed. Otherwise,
+   * the existing network tags will be *replaced* with the provided tags.
+   * 
+ * + * .google.container.v1beta1.NetworkTags tags = 16; + * @return The tags. + */ + @java.lang.Override + public com.google.container.v1beta1.NetworkTags getTags() { + return tags_ == null ? com.google.container.v1beta1.NetworkTags.getDefaultInstance() : tags_; + } + /** + *
+   * The desired network tags to be applied to all nodes in the node pool.
+   * If this field is not present, the tags will not be changed. Otherwise,
+   * the existing network tags will be *replaced* with the provided tags.
+   * 
+ * + * .google.container.v1beta1.NetworkTags tags = 16; + */ + @java.lang.Override + public com.google.container.v1beta1.NetworkTagsOrBuilder getTagsOrBuilder() { + return tags_ == null ? com.google.container.v1beta1.NetworkTags.getDefaultInstance() : tags_; + } + + public static final int TAINTS_FIELD_NUMBER = 17; + private com.google.container.v1beta1.NodeTaints taints_; + /** + *
+   * The desired node taints to be applied to all nodes in the node pool.
+   * If this field is not present, the taints will not be changed. Otherwise,
+   * the existing node taints will be *replaced* with the provided taints.
+   * 
+ * + * .google.container.v1beta1.NodeTaints taints = 17; + * @return Whether the taints field is set. + */ + @java.lang.Override + public boolean hasTaints() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+   * The desired node taints to be applied to all nodes in the node pool.
+   * If this field is not present, the taints will not be changed. Otherwise,
+   * the existing node taints will be *replaced* with the provided taints.
+   * 
+ * + * .google.container.v1beta1.NodeTaints taints = 17; + * @return The taints. + */ + @java.lang.Override + public com.google.container.v1beta1.NodeTaints getTaints() { + return taints_ == null ? com.google.container.v1beta1.NodeTaints.getDefaultInstance() : taints_; + } + /** + *
+   * The desired node taints to be applied to all nodes in the node pool.
+   * If this field is not present, the taints will not be changed. Otherwise,
+   * the existing node taints will be *replaced* with the provided taints.
+   * 
+ * + * .google.container.v1beta1.NodeTaints taints = 17; + */ + @java.lang.Override + public com.google.container.v1beta1.NodeTaintsOrBuilder getTaintsOrBuilder() { + return taints_ == null ? com.google.container.v1beta1.NodeTaints.getDefaultInstance() : taints_; + } + + public static final int LABELS_FIELD_NUMBER = 18; + private com.google.container.v1beta1.NodeLabels labels_; + /** + *
+   * The desired node labels to be applied to all nodes in the node pool.
+   * If this field is not present, the labels will not be changed. Otherwise,
+   * the existing node labels will be *replaced* with the provided labels.
+   * 
+ * + * .google.container.v1beta1.NodeLabels labels = 18; + * @return Whether the labels field is set. + */ + @java.lang.Override + public boolean hasLabels() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+   * The desired node labels to be applied to all nodes in the node pool.
+   * If this field is not present, the labels will not be changed. Otherwise,
+   * the existing node labels will be *replaced* with the provided labels.
+   * 
+ * + * .google.container.v1beta1.NodeLabels labels = 18; + * @return The labels. + */ + @java.lang.Override + public com.google.container.v1beta1.NodeLabels getLabels() { + return labels_ == null ? com.google.container.v1beta1.NodeLabels.getDefaultInstance() : labels_; + } + /** + *
+   * The desired node labels to be applied to all nodes in the node pool.
+   * If this field is not present, the labels will not be changed. Otherwise,
+   * the existing node labels will be *replaced* with the provided labels.
+   * 
+ * + * .google.container.v1beta1.NodeLabels labels = 18; + */ + @java.lang.Override + public com.google.container.v1beta1.NodeLabelsOrBuilder getLabelsOrBuilder() { + return labels_ == null ? com.google.container.v1beta1.NodeLabels.getDefaultInstance() : labels_; + } + + 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 ((bitField0_ & 0x00000020) != 0); + } + /** + *
+   * 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 linuxNodeConfig_ == null ? com.google.container.v1beta1.LinuxNodeConfig.getDefaultInstance() : linuxNodeConfig_; + } + + 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 ((bitField0_ & 0x00000040) != 0); + } + /** + *
+   * 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 kubeletConfig_ == null ? com.google.container.v1beta1.NodeKubeletConfig.getDefaultInstance() : kubeletConfig_; + } + + public static final int NODE_NETWORK_CONFIG_FIELD_NUMBER = 21; + private com.google.container.v1beta1.NodeNetworkConfig nodeNetworkConfig_; + /** + *
+   * Node network config.
+   * 
+ * + * .google.container.v1beta1.NodeNetworkConfig node_network_config = 21; + * @return Whether the nodeNetworkConfig field is set. + */ + @java.lang.Override + public boolean hasNodeNetworkConfig() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+   * Node network config.
+   * 
+ * + * .google.container.v1beta1.NodeNetworkConfig node_network_config = 21; + * @return The nodeNetworkConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.NodeNetworkConfig getNodeNetworkConfig() { + return nodeNetworkConfig_ == null ? com.google.container.v1beta1.NodeNetworkConfig.getDefaultInstance() : nodeNetworkConfig_; + } + /** + *
+   * Node network config.
+   * 
+ * + * .google.container.v1beta1.NodeNetworkConfig node_network_config = 21; + */ + @java.lang.Override + public com.google.container.v1beta1.NodeNetworkConfigOrBuilder getNodeNetworkConfigOrBuilder() { + return nodeNetworkConfig_ == null ? com.google.container.v1beta1.NodeNetworkConfig.getDefaultInstance() : nodeNetworkConfig_; + } + + public static final int GCFS_CONFIG_FIELD_NUMBER = 22; + private com.google.container.v1beta1.GcfsConfig gcfsConfig_; + /** + *
+   * GCFS config.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + * @return Whether the gcfsConfig field is set. + */ + @java.lang.Override + public boolean hasGcfsConfig() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + *
+   * GCFS config.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + * @return The gcfsConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.GcfsConfig getGcfsConfig() { + return gcfsConfig_ == null ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() : gcfsConfig_; + } + /** + *
+   * GCFS config.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + */ + @java.lang.Override + public com.google.container.v1beta1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { + return gcfsConfig_ == null ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() : gcfsConfig_; + } + + public static final int CONFIDENTIAL_NODES_FIELD_NUMBER = 23; + private com.google.container.v1beta1.ConfidentialNodes confidentialNodes_; + /** + *
+   * Confidential nodes config.
+   * All the nodes in the node pool will be Confidential VM once enabled.
+   * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 23; + * @return Whether the confidentialNodes field is set. + */ + @java.lang.Override + public boolean hasConfidentialNodes() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + *
+   * Confidential nodes config.
+   * All the nodes in the node pool will be Confidential VM once enabled.
+   * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 23; + * @return The confidentialNodes. + */ + @java.lang.Override + public com.google.container.v1beta1.ConfidentialNodes getConfidentialNodes() { + return confidentialNodes_ == null ? com.google.container.v1beta1.ConfidentialNodes.getDefaultInstance() : confidentialNodes_; + } + /** + *
+   * Confidential nodes config.
+   * All the nodes in the node pool will be Confidential VM once enabled.
+   * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 23; + */ + @java.lang.Override + public com.google.container.v1beta1.ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder() { + return confidentialNodes_ == null ? com.google.container.v1beta1.ConfidentialNodes.getDefaultInstance() : confidentialNodes_; + } + + public static final int GVNIC_FIELD_NUMBER = 29; + private com.google.container.v1beta1.VirtualNIC gvnic_; + /** + *
+   * Enable or disable gvnic on the node pool.
+   * 
+ * + * .google.container.v1beta1.VirtualNIC gvnic = 29; + * @return Whether the gvnic field is set. + */ + @java.lang.Override + public boolean hasGvnic() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + *
+   * Enable or disable gvnic on the node pool.
+   * 
+ * + * .google.container.v1beta1.VirtualNIC gvnic = 29; + * @return The gvnic. + */ + @java.lang.Override + public com.google.container.v1beta1.VirtualNIC getGvnic() { + return gvnic_ == null ? com.google.container.v1beta1.VirtualNIC.getDefaultInstance() : gvnic_; + } + /** + *
+   * Enable or disable gvnic on the node pool.
+   * 
+ * + * .google.container.v1beta1.VirtualNIC gvnic = 29; + */ + @java.lang.Override + public com.google.container.v1beta1.VirtualNICOrBuilder getGvnicOrBuilder() { + return gvnic_ == null ? com.google.container.v1beta1.VirtualNIC.getDefaultInstance() : gvnic_; + } + + public static final int ETAG_FIELD_NUMBER = 30; + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + /** + *
+   * The current etag of the node pool.
+   * If an etag is provided and does not match the current etag of the node
+   * pool, update will be blocked and an ABORTED error will be returned.
+   * 
+ * + * string etag = 30; + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + /** + *
+   * The current etag of the node pool.
+   * If an etag is provided and does not match the current etag of the node
+   * pool, update will be blocked and an ABORTED error will be returned.
+   * 
+ * + * string etag = 30; + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FAST_SOCKET_FIELD_NUMBER = 31; + private com.google.container.v1beta1.FastSocket fastSocket_; + /** + *
+   * Enable or disable NCCL fast socket for the node pool.
+   * 
+ * + * .google.container.v1beta1.FastSocket fast_socket = 31; + * @return Whether the fastSocket field is set. + */ + @java.lang.Override + public boolean hasFastSocket() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + *
+   * Enable or disable NCCL fast socket for the node pool.
+   * 
+ * + * .google.container.v1beta1.FastSocket fast_socket = 31; + * @return The fastSocket. + */ + @java.lang.Override + public com.google.container.v1beta1.FastSocket getFastSocket() { + return fastSocket_ == null ? com.google.container.v1beta1.FastSocket.getDefaultInstance() : fastSocket_; + } + /** + *
+   * Enable or disable NCCL fast socket for the node pool.
+   * 
+ * + * .google.container.v1beta1.FastSocket fast_socket = 31; + */ + @java.lang.Override + public com.google.container.v1beta1.FastSocketOrBuilder getFastSocketOrBuilder() { + return fastSocket_ == null ? com.google.container.v1beta1.FastSocket.getDefaultInstance() : fastSocket_; + } + + public static final int LOGGING_CONFIG_FIELD_NUMBER = 32; + private com.google.container.v1beta1.NodePoolLoggingConfig loggingConfig_; + /** + *
+   * Logging configuration.
+   * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 32; + * @return Whether the loggingConfig field is set. + */ + @java.lang.Override + public boolean hasLoggingConfig() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + *
+   * Logging configuration.
+   * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 32; + * @return The loggingConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.NodePoolLoggingConfig getLoggingConfig() { + return loggingConfig_ == null ? com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance() : loggingConfig_; + } + /** + *
+   * Logging configuration.
+   * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 32; + */ + @java.lang.Override + public com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder getLoggingConfigOrBuilder() { + return loggingConfig_ == null ? com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance() : loggingConfig_; + } + + public static final int RESOURCE_LABELS_FIELD_NUMBER = 33; + private com.google.container.v1beta1.ResourceLabels resourceLabels_; + /** + *
+   * The resource labels for the node pool to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * .google.container.v1beta1.ResourceLabels resource_labels = 33; + * @return Whether the resourceLabels field is set. + */ + @java.lang.Override + public boolean hasResourceLabels() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + *
+   * The resource labels for the node pool to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * .google.container.v1beta1.ResourceLabels resource_labels = 33; + * @return The resourceLabels. + */ + @java.lang.Override + public com.google.container.v1beta1.ResourceLabels getResourceLabels() { + return resourceLabels_ == null ? com.google.container.v1beta1.ResourceLabels.getDefaultInstance() : resourceLabels_; + } + /** + *
+   * The resource labels for the node pool to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * .google.container.v1beta1.ResourceLabels resource_labels = 33; + */ + @java.lang.Override + public com.google.container.v1beta1.ResourceLabelsOrBuilder getResourceLabelsOrBuilder() { + return resourceLabels_ == null ? com.google.container.v1beta1.ResourceLabels.getDefaultInstance() : resourceLabels_; + } + + public static final int WINDOWS_NODE_CONFIG_FIELD_NUMBER = 34; + private com.google.container.v1beta1.WindowsNodeConfig windowsNodeConfig_; + /** + *
+   * Parameters that can be configured on Windows nodes.
+   * 
+ * + * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 34; + * @return Whether the windowsNodeConfig field is set. + */ + @java.lang.Override + public boolean hasWindowsNodeConfig() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + *
+   * Parameters that can be configured on Windows nodes.
+   * 
+ * + * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 34; + * @return The windowsNodeConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.WindowsNodeConfig getWindowsNodeConfig() { + return windowsNodeConfig_ == null ? com.google.container.v1beta1.WindowsNodeConfig.getDefaultInstance() : windowsNodeConfig_; + } + /** + *
+   * Parameters that can be configured on Windows nodes.
+   * 
+ * + * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 34; + */ + @java.lang.Override + public com.google.container.v1beta1.WindowsNodeConfigOrBuilder getWindowsNodeConfigOrBuilder() { + return windowsNodeConfig_ == null ? com.google.container.v1beta1.WindowsNodeConfig.getDefaultInstance() : windowsNodeConfig_; + } + + public static final int MACHINE_TYPE_FIELD_NUMBER = 36; + @SuppressWarnings("serial") + private volatile java.lang.Object machineType_ = ""; + /** + *
+   * Optional. The desired machine type for nodes in the node pool.
+   * Initiates an upgrade operation that migrates the nodes in the
+   * node pool to the specified machine type.
+   * 
+ * + * string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; + * @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; + } + } + /** + *
+   * Optional. The desired machine type for nodes in the node pool.
+   * Initiates an upgrade operation that migrates the nodes in the
+   * node pool to the specified machine type.
+   * 
+ * + * string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; + * @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_TYPE_FIELD_NUMBER = 37; + @SuppressWarnings("serial") + private volatile java.lang.Object diskType_ = ""; + /** + *
+   * Optional. The desired disk type for nodes in the node pool.
+   * Initiates an upgrade operation that migrates the nodes in the
+   * node pool to the specified disk type.
+   * 
+ * + * string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; + * @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; + } + } + /** + *
+   * Optional. The desired disk type for nodes in the node pool.
+   * Initiates an upgrade operation that migrates the nodes in the
+   * node pool to the specified disk type.
+   * 
+ * + * string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; + * @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 DISK_SIZE_GB_FIELD_NUMBER = 38; + private long diskSizeGb_ = 0L; + /** + *
+   * Optional. The desired disk size for nodes in the node pool.
+   * Initiates an upgrade operation that migrates the nodes in the
+   * node pool to the specified disk size.
+   * 
+ * + * int64 disk_size_gb = 38 [(.google.api.field_behavior) = OPTIONAL]; + * @return The diskSizeGb. + */ + @java.lang.Override + public long getDiskSizeGb() { + return diskSizeGb_; + } + + public static final int RESOURCE_MANAGER_TAGS_FIELD_NUMBER = 39; + private com.google.container.v1beta1.ResourceManagerTags resourceManagerTags_; + /** + *
+   * Desired resource manager tag keys and values to be attached to the nodes
+   * for managing Compute Engine firewalls using Network Firewall Policies.
+   * Existing tags will be replaced with new values.
+   * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 39; + * @return Whether the resourceManagerTags field is set. + */ + @java.lang.Override + public boolean hasResourceManagerTags() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + *
+   * Desired resource manager tag keys and values to be attached to the nodes
+   * for managing Compute Engine firewalls using Network Firewall Policies.
+   * Existing tags will be replaced with new values.
+   * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 39; + * @return The resourceManagerTags. + */ + @java.lang.Override + public com.google.container.v1beta1.ResourceManagerTags getResourceManagerTags() { + return resourceManagerTags_ == null ? com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance() : resourceManagerTags_; + } + /** + *
+   * Desired resource manager tag keys and values to be attached to the nodes
+   * for managing Compute Engine firewalls using Network Firewall Policies.
+   * Existing tags will be replaced with new values.
+   * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 39; + */ + @java.lang.Override + public com.google.container.v1beta1.ResourceManagerTagsOrBuilder getResourceManagerTagsOrBuilder() { + return resourceManagerTags_ == null ? com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance() : resourceManagerTags_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, nodeVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, imageType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(14, getWorkloadMetadataConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(15, getUpgradeSettings()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(16, getTags()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(17, getTaints()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(18, getLabels()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(19, getLinuxNodeConfig()); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(20, getKubeletConfig()); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(21, getNodeNetworkConfig()); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(22, getGcfsConfig()); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeMessage(23, getConfidentialNodes()); + } + if (((bitField0_ & 0x00000400) != 0)) { + output.writeMessage(29, getGvnic()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 30, etag_); + } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeMessage(31, getFastSocket()); + } + if (((bitField0_ & 0x00001000) != 0)) { + output.writeMessage(32, getLoggingConfig()); + } + if (((bitField0_ & 0x00002000) != 0)) { + output.writeMessage(33, getResourceLabels()); + } + if (((bitField0_ & 0x00004000) != 0)) { + output.writeMessage(34, getWindowsNodeConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 36, machineType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 37, diskType_); + } + if (diskSizeGb_ != 0L) { + output.writeInt64(38, diskSizeGb_); + } + if (((bitField0_ & 0x00008000) != 0)) { + output.writeMessage(39, getResourceManagerTags()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodePoolId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, nodeVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, imageType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + 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 (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getWorkloadMetadataConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, getUpgradeSettings()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getTags()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getTaints()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, getLabels()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, getLinuxNodeConfig()); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(20, getKubeletConfig()); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, getNodeNetworkConfig()); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(22, getGcfsConfig()); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(23, getConfidentialNodes()); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(29, getGvnic()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(30, etag_); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(31, getFastSocket()); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(32, getLoggingConfig()); + } + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(33, getResourceLabels()); + } + if (((bitField0_ & 0x00004000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(34, getWindowsNodeConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(36, machineType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(37, diskType_); + } + if (diskSizeGb_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(38, diskSizeGb_); + } + if (((bitField0_ & 0x00008000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(39, getResourceManagerTags()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (hasTags() != other.hasTags()) return false; + if (hasTags()) { + if (!getTags() + .equals(other.getTags())) return false; + } + if (hasTaints() != other.hasTaints()) return false; + if (hasTaints()) { + if (!getTaints() + .equals(other.getTaints())) return false; + } + if (hasLabels() != other.hasLabels()) return false; + if (hasLabels()) { + if (!getLabels() + .equals(other.getLabels())) 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 (hasNodeNetworkConfig() != other.hasNodeNetworkConfig()) return false; + if (hasNodeNetworkConfig()) { + if (!getNodeNetworkConfig() + .equals(other.getNodeNetworkConfig())) return false; + } + if (hasGcfsConfig() != other.hasGcfsConfig()) return false; + if (hasGcfsConfig()) { + if (!getGcfsConfig() + .equals(other.getGcfsConfig())) return false; + } + if (hasConfidentialNodes() != other.hasConfidentialNodes()) return false; + if (hasConfidentialNodes()) { + if (!getConfidentialNodes() + .equals(other.getConfidentialNodes())) return false; + } + if (hasGvnic() != other.hasGvnic()) return false; + if (hasGvnic()) { + if (!getGvnic() + .equals(other.getGvnic())) return false; + } + if (!getEtag() + .equals(other.getEtag())) return false; + if (hasFastSocket() != other.hasFastSocket()) return false; + if (hasFastSocket()) { + if (!getFastSocket() + .equals(other.getFastSocket())) return false; + } + if (hasLoggingConfig() != other.hasLoggingConfig()) return false; + if (hasLoggingConfig()) { + if (!getLoggingConfig() + .equals(other.getLoggingConfig())) return false; + } + if (hasResourceLabels() != other.hasResourceLabels()) return false; + if (hasResourceLabels()) { + if (!getResourceLabels() + .equals(other.getResourceLabels())) return false; + } + if (hasWindowsNodeConfig() != other.hasWindowsNodeConfig()) return false; + if (hasWindowsNodeConfig()) { + if (!getWindowsNodeConfig() + .equals(other.getWindowsNodeConfig())) return false; + } + if (!getMachineType() + .equals(other.getMachineType())) return false; + if (!getDiskType() + .equals(other.getDiskType())) return false; + if (getDiskSizeGb() + != other.getDiskSizeGb()) return false; + if (hasResourceManagerTags() != other.hasResourceManagerTags()) return false; + if (hasResourceManagerTags()) { + if (!getResourceManagerTags() + .equals(other.getResourceManagerTags())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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 (hasTags()) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + getTags().hashCode(); + } + if (hasTaints()) { + hash = (37 * hash) + TAINTS_FIELD_NUMBER; + hash = (53 * hash) + getTaints().hashCode(); + } + if (hasLabels()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + getLabels().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 (hasNodeNetworkConfig()) { + hash = (37 * hash) + NODE_NETWORK_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNodeNetworkConfig().hashCode(); + } + if (hasGcfsConfig()) { + hash = (37 * hash) + GCFS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGcfsConfig().hashCode(); + } + if (hasConfidentialNodes()) { + hash = (37 * hash) + CONFIDENTIAL_NODES_FIELD_NUMBER; + hash = (53 * hash) + getConfidentialNodes().hashCode(); + } + if (hasGvnic()) { + hash = (37 * hash) + GVNIC_FIELD_NUMBER; + hash = (53 * hash) + getGvnic().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + if (hasFastSocket()) { + hash = (37 * hash) + FAST_SOCKET_FIELD_NUMBER; + hash = (53 * hash) + getFastSocket().hashCode(); + } + if (hasLoggingConfig()) { + hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getLoggingConfig().hashCode(); + } + if (hasResourceLabels()) { + hash = (37 * hash) + RESOURCE_LABELS_FIELD_NUMBER; + hash = (53 * hash) + getResourceLabels().hashCode(); + } + if (hasWindowsNodeConfig()) { + hash = (37 * hash) + WINDOWS_NODE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getWindowsNodeConfig().hashCode(); + } + hash = (37 * hash) + MACHINE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMachineType().hashCode(); + hash = (37 * hash) + DISK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getDiskType().hashCode(); + hash = (37 * hash) + DISK_SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDiskSizeGb()); + if (hasResourceManagerTags()) { + hash = (37 * hash) + RESOURCE_MANAGER_TAGS_FIELD_NUMBER; + hash = (53 * hash) + getResourceManagerTags().hashCode(); + } + hash = (29 * hash) + getUnknownFields().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) { + getWorkloadMetadataConfigFieldBuilder(); + getUpgradeSettingsFieldBuilder(); + getTagsFieldBuilder(); + getTaintsFieldBuilder(); + getLabelsFieldBuilder(); + getLinuxNodeConfigFieldBuilder(); + getKubeletConfigFieldBuilder(); + getNodeNetworkConfigFieldBuilder(); + getGcfsConfigFieldBuilder(); + getConfidentialNodesFieldBuilder(); + getGvnicFieldBuilder(); + getFastSocketFieldBuilder(); + getLoggingConfigFieldBuilder(); + getResourceLabelsFieldBuilder(); + getWindowsNodeConfigFieldBuilder(); + getResourceManagerTagsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + zone_ = ""; + clusterId_ = ""; + nodePoolId_ = ""; + nodeVersion_ = ""; + imageType_ = ""; + locations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + workloadMetadataConfig_ = null; + if (workloadMetadataConfigBuilder_ != null) { + workloadMetadataConfigBuilder_.dispose(); + workloadMetadataConfigBuilder_ = null; + } + name_ = ""; + upgradeSettings_ = null; + if (upgradeSettingsBuilder_ != null) { + upgradeSettingsBuilder_.dispose(); + upgradeSettingsBuilder_ = null; + } + tags_ = null; + if (tagsBuilder_ != null) { + tagsBuilder_.dispose(); + tagsBuilder_ = null; + } + taints_ = null; + if (taintsBuilder_ != null) { + taintsBuilder_.dispose(); + taintsBuilder_ = null; + } + labels_ = null; + if (labelsBuilder_ != null) { + labelsBuilder_.dispose(); + labelsBuilder_ = null; + } + linuxNodeConfig_ = null; + if (linuxNodeConfigBuilder_ != null) { + linuxNodeConfigBuilder_.dispose(); + linuxNodeConfigBuilder_ = null; + } + kubeletConfig_ = null; + if (kubeletConfigBuilder_ != null) { + kubeletConfigBuilder_.dispose(); + kubeletConfigBuilder_ = null; + } + nodeNetworkConfig_ = null; + if (nodeNetworkConfigBuilder_ != null) { + nodeNetworkConfigBuilder_.dispose(); + nodeNetworkConfigBuilder_ = null; + } + gcfsConfig_ = null; + if (gcfsConfigBuilder_ != null) { + gcfsConfigBuilder_.dispose(); + gcfsConfigBuilder_ = null; + } + confidentialNodes_ = null; + if (confidentialNodesBuilder_ != null) { + confidentialNodesBuilder_.dispose(); + confidentialNodesBuilder_ = null; + } + gvnic_ = null; + if (gvnicBuilder_ != null) { + gvnicBuilder_.dispose(); + gvnicBuilder_ = null; + } + etag_ = ""; + fastSocket_ = null; + if (fastSocketBuilder_ != null) { + fastSocketBuilder_.dispose(); + fastSocketBuilder_ = null; + } + loggingConfig_ = null; + if (loggingConfigBuilder_ != null) { + loggingConfigBuilder_.dispose(); + loggingConfigBuilder_ = null; + } + resourceLabels_ = null; + if (resourceLabelsBuilder_ != null) { + resourceLabelsBuilder_.dispose(); + resourceLabelsBuilder_ = null; + } + windowsNodeConfig_ = null; + if (windowsNodeConfigBuilder_ != null) { + windowsNodeConfigBuilder_.dispose(); + windowsNodeConfigBuilder_ = null; + } + machineType_ = ""; + diskType_ = ""; + diskSizeGb_ = 0L; + resourceManagerTags_ = null; + if (resourceManagerTagsBuilder_ != null) { + resourceManagerTagsBuilder_.dispose(); + resourceManagerTagsBuilder_ = 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.UpdateNodePoolRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.nodePoolId_ = nodePoolId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.nodeVersion_ = nodeVersion_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.imageType_ = imageType_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + locations_.makeImmutable(); + result.locations_ = locations_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000080) != 0)) { + result.workloadMetadataConfig_ = workloadMetadataConfigBuilder_ == null + ? workloadMetadataConfig_ + : workloadMetadataConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.upgradeSettings_ = upgradeSettingsBuilder_ == null + ? upgradeSettings_ + : upgradeSettingsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.tags_ = tagsBuilder_ == null + ? tags_ + : tagsBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.taints_ = taintsBuilder_ == null + ? taints_ + : taintsBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.labels_ = labelsBuilder_ == null + ? labels_ + : labelsBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.linuxNodeConfig_ = linuxNodeConfigBuilder_ == null + ? linuxNodeConfig_ + : linuxNodeConfigBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.kubeletConfig_ = kubeletConfigBuilder_ == null + ? kubeletConfig_ + : kubeletConfigBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.nodeNetworkConfig_ = nodeNetworkConfigBuilder_ == null + ? nodeNetworkConfig_ + : nodeNetworkConfigBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.gcfsConfig_ = gcfsConfigBuilder_ == null + ? gcfsConfig_ + : gcfsConfigBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.confidentialNodes_ = confidentialNodesBuilder_ == null + ? confidentialNodes_ + : confidentialNodesBuilder_.build(); + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.gvnic_ = gvnicBuilder_ == null + ? gvnic_ + : gvnicBuilder_.build(); + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.fastSocket_ = fastSocketBuilder_ == null + ? fastSocket_ + : fastSocketBuilder_.build(); + to_bitField0_ |= 0x00000800; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.loggingConfig_ = loggingConfigBuilder_ == null + ? loggingConfig_ + : loggingConfigBuilder_.build(); + to_bitField0_ |= 0x00001000; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.resourceLabels_ = resourceLabelsBuilder_ == null + ? resourceLabels_ + : resourceLabelsBuilder_.build(); + to_bitField0_ |= 0x00002000; + } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.windowsNodeConfig_ = windowsNodeConfigBuilder_ == null + ? windowsNodeConfig_ + : windowsNodeConfigBuilder_.build(); + to_bitField0_ |= 0x00004000; + } + if (((from_bitField0_ & 0x01000000) != 0)) { + result.machineType_ = machineType_; + } + if (((from_bitField0_ & 0x02000000) != 0)) { + result.diskType_ = diskType_; + } + if (((from_bitField0_ & 0x04000000) != 0)) { + result.diskSizeGb_ = diskSizeGb_; + } + if (((from_bitField0_ & 0x08000000) != 0)) { + result.resourceManagerTags_ = resourceManagerTagsBuilder_ == null + ? resourceManagerTags_ + : resourceManagerTagsBuilder_.build(); + to_bitField0_ |= 0x00008000; + } + result.bitField0_ |= to_bitField0_; + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getNodePoolId().isEmpty()) { + nodePoolId_ = other.nodePoolId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getNodeVersion().isEmpty()) { + nodeVersion_ = other.nodeVersion_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getImageType().isEmpty()) { + imageType_ = other.imageType_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.locations_.isEmpty()) { + if (locations_.isEmpty()) { + locations_ = other.locations_; + bitField0_ |= 0x00000040; + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } + if (other.hasWorkloadMetadataConfig()) { + mergeWorkloadMetadataConfig(other.getWorkloadMetadataConfig()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.hasUpgradeSettings()) { + mergeUpgradeSettings(other.getUpgradeSettings()); + } + if (other.hasTags()) { + mergeTags(other.getTags()); + } + if (other.hasTaints()) { + mergeTaints(other.getTaints()); + } + if (other.hasLabels()) { + mergeLabels(other.getLabels()); + } + if (other.hasLinuxNodeConfig()) { + mergeLinuxNodeConfig(other.getLinuxNodeConfig()); + } + if (other.hasKubeletConfig()) { + mergeKubeletConfig(other.getKubeletConfig()); + } + if (other.hasNodeNetworkConfig()) { + mergeNodeNetworkConfig(other.getNodeNetworkConfig()); + } + if (other.hasGcfsConfig()) { + mergeGcfsConfig(other.getGcfsConfig()); + } + if (other.hasConfidentialNodes()) { + mergeConfidentialNodes(other.getConfidentialNodes()); + } + if (other.hasGvnic()) { + mergeGvnic(other.getGvnic()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00080000; + onChanged(); + } + if (other.hasFastSocket()) { + mergeFastSocket(other.getFastSocket()); + } + if (other.hasLoggingConfig()) { + mergeLoggingConfig(other.getLoggingConfig()); + } + if (other.hasResourceLabels()) { + mergeResourceLabels(other.getResourceLabels()); + } + if (other.hasWindowsNodeConfig()) { + mergeWindowsNodeConfig(other.getWindowsNodeConfig()); + } + if (!other.getMachineType().isEmpty()) { + machineType_ = other.machineType_; + bitField0_ |= 0x01000000; + onChanged(); + } + if (!other.getDiskType().isEmpty()) { + diskType_ = other.diskType_; + bitField0_ |= 0x02000000; + onChanged(); + } + if (other.getDiskSizeGb() != 0L) { + setDiskSizeGb(other.getDiskSizeGb()); + } + if (other.hasResourceManagerTags()) { + mergeResourceManagerTags(other.getResourceManagerTags()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + nodePoolId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + nodeVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + imageType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 66: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 106: { + java.lang.String s = input.readStringRequireUtf8(); + ensureLocationsIsMutable(); + locations_.add(s); + break; + } // case 106 + case 114: { + input.readMessage( + getWorkloadMetadataConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 114 + case 122: { + input.readMessage( + getUpgradeSettingsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 122 + case 130: { + input.readMessage( + getTagsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 130 + case 138: { + input.readMessage( + getTaintsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 138 + case 146: { + input.readMessage( + getLabelsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 146 + case 154: { + input.readMessage( + getLinuxNodeConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 154 + case 162: { + input.readMessage( + getKubeletConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 162 + case 170: { + input.readMessage( + getNodeNetworkConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 170 + case 178: { + input.readMessage( + getGcfsConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 178 + case 186: { + input.readMessage( + getConfidentialNodesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 186 + case 234: { + input.readMessage( + getGvnicFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00040000; + break; + } // case 234 + case 242: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00080000; + break; + } // case 242 + case 250: { + input.readMessage( + getFastSocketFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00100000; + break; + } // case 250 + case 258: { + input.readMessage( + getLoggingConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00200000; + break; + } // case 258 + case 266: { + input.readMessage( + getResourceLabelsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00400000; + break; + } // case 266 + case 274: { + input.readMessage( + getWindowsNodeConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00800000; + break; + } // case 274 + case 290: { + machineType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x01000000; + break; + } // case 290 + case 298: { + diskType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x02000000; + break; + } // case 298 + case 304: { + diskSizeGb_ = input.readInt64(); + bitField0_ |= 0x04000000; + break; + } // case 304 + case 314: { + input.readMessage( + getResourceManagerTagsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x08000000; + break; + } // case 314 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3026 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3026 + * @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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3026 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3026 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Deprecated. The Google Developers Console [project ID or project
+     * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+     * This field has been deprecated and replaced by the name field.
+     * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3026 + * @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; + bitField0_ |= 0x00000001; + 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]; + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3033 + * @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]; + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3033 + * @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]; + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3033 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3033 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + 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]; + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3033 + * @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; + bitField0_ |= 0x00000002; + 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]; + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3037 + * @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]; + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3037 + * @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]; + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3037 + * @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; + bitField0_ |= 0x00000004; + 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]; + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3037 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + 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]; + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3037 + * @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; + bitField0_ |= 0x00000004; + 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]; + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3042 + * @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]; + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3042 + * @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]; + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3042 + * @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; + bitField0_ |= 0x00000008; + 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]; + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3042 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearNodePoolId() { + nodePoolId_ = getDefaultInstance().getNodePoolId(); + bitField0_ = (bitField0_ & ~0x00000008); + 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]; + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3042 + * @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; + bitField0_ |= 0x00000008; + 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; + bitField0_ |= 0x00000010; + 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(); + bitField0_ = (bitField0_ & ~0x00000010); + 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; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object imageType_ = ""; + /** + *
+     * Required. The desired image type for the node pool. Please see
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+     * available image types.
+     * 
+ * + * 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. Please see
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+     * available image types.
+     * 
+ * + * 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. Please see
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+     * available image types.
+     * 
+ * + * 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; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Required. The desired image type for the node pool. Please see
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+     * available image types.
+     * 
+ * + * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearImageType() { + imageType_ = getDefaultInstance().getImageType(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + *
+     * Required. The desired image type for the node pool. Please see
+     * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+     * available image types.
+     * 
+ * + * 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; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList locations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureLocationsIsMutable() { + if (!locations_.isModifiable()) { + locations_ = new com.google.protobuf.LazyStringArrayList(locations_); + } + bitField0_ |= 0x00000040; + } + /** + *
+     * 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() { + locations_.makeImmutable(); + 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); + } + /** + *
+     * 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); + bitField0_ |= 0x00000040; + 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); + bitField0_ |= 0x00000040; + 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_); + bitField0_ |= 0x00000040; + 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.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040);; + 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); + bitField0_ |= 0x00000040; + 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 ((bitField0_ & 0x00000080) != 0); + } + /** + *
+     * 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; + } else { + workloadMetadataConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + 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(); + } else { + workloadMetadataConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + 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 (((bitField0_ & 0x00000080) != 0) && + workloadMetadataConfig_ != null && + workloadMetadataConfig_ != com.google.container.v1beta1.WorkloadMetadataConfig.getDefaultInstance()) { + getWorkloadMetadataConfigBuilder().mergeFrom(value); + } else { + workloadMetadataConfig_ = value; + } + } else { + workloadMetadataConfigBuilder_.mergeFrom(value); + } + if (workloadMetadataConfig_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + /** + *
+     * The desired workload metadata config for the node pool.
+     * 
+ * + * .google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14; + */ + public Builder clearWorkloadMetadataConfig() { + bitField0_ = (bitField0_ & ~0x00000080); + workloadMetadataConfig_ = null; + if (workloadMetadataConfigBuilder_ != null) { + workloadMetadataConfigBuilder_.dispose(); + workloadMetadataConfigBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000080; + 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; + bitField0_ |= 0x00000100; + 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(); + bitField0_ = (bitField0_ & ~0x00000100); + 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; + bitField0_ |= 0x00000100; + 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 ((bitField0_ & 0x00000200) != 0); + } + /** + *
+     * 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; + } else { + upgradeSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + 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(); + } else { + upgradeSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + 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 (((bitField0_ & 0x00000200) != 0) && + upgradeSettings_ != null && + upgradeSettings_ != com.google.container.v1beta1.NodePool.UpgradeSettings.getDefaultInstance()) { + getUpgradeSettingsBuilder().mergeFrom(value); + } else { + upgradeSettings_ = value; + } + } else { + upgradeSettingsBuilder_.mergeFrom(value); + } + if (upgradeSettings_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + /** + *
+     * Upgrade settings control disruption and speed of the upgrade.
+     * 
+ * + * .google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15; + */ + public Builder clearUpgradeSettings() { + bitField0_ = (bitField0_ & ~0x00000200); + upgradeSettings_ = null; + if (upgradeSettingsBuilder_ != null) { + upgradeSettingsBuilder_.dispose(); + upgradeSettingsBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000200; + 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.NetworkTags tags_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkTags, com.google.container.v1beta1.NetworkTags.Builder, com.google.container.v1beta1.NetworkTagsOrBuilder> tagsBuilder_; + /** + *
+     * The desired network tags to be applied to all nodes in the node pool.
+     * If this field is not present, the tags will not be changed. Otherwise,
+     * the existing network tags will be *replaced* with the provided tags.
+     * 
+ * + * .google.container.v1beta1.NetworkTags tags = 16; + * @return Whether the tags field is set. + */ + public boolean hasTags() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + *
+     * The desired network tags to be applied to all nodes in the node pool.
+     * If this field is not present, the tags will not be changed. Otherwise,
+     * the existing network tags will be *replaced* with the provided tags.
+     * 
+ * + * .google.container.v1beta1.NetworkTags tags = 16; + * @return The tags. + */ + public com.google.container.v1beta1.NetworkTags getTags() { + if (tagsBuilder_ == null) { + return tags_ == null ? com.google.container.v1beta1.NetworkTags.getDefaultInstance() : tags_; + } else { + return tagsBuilder_.getMessage(); + } + } + /** + *
+     * The desired network tags to be applied to all nodes in the node pool.
+     * If this field is not present, the tags will not be changed. Otherwise,
+     * the existing network tags will be *replaced* with the provided tags.
+     * 
+ * + * .google.container.v1beta1.NetworkTags tags = 16; + */ + public Builder setTags(com.google.container.v1beta1.NetworkTags value) { + if (tagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tags_ = value; + } else { + tagsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+     * The desired network tags to be applied to all nodes in the node pool.
+     * If this field is not present, the tags will not be changed. Otherwise,
+     * the existing network tags will be *replaced* with the provided tags.
+     * 
+ * + * .google.container.v1beta1.NetworkTags tags = 16; + */ + public Builder setTags( + com.google.container.v1beta1.NetworkTags.Builder builderForValue) { + if (tagsBuilder_ == null) { + tags_ = builderForValue.build(); + } else { + tagsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+     * The desired network tags to be applied to all nodes in the node pool.
+     * If this field is not present, the tags will not be changed. Otherwise,
+     * the existing network tags will be *replaced* with the provided tags.
+     * 
+ * + * .google.container.v1beta1.NetworkTags tags = 16; + */ + public Builder mergeTags(com.google.container.v1beta1.NetworkTags value) { + if (tagsBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) && + tags_ != null && + tags_ != com.google.container.v1beta1.NetworkTags.getDefaultInstance()) { + getTagsBuilder().mergeFrom(value); + } else { + tags_ = value; + } + } else { + tagsBuilder_.mergeFrom(value); + } + if (tags_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + /** + *
+     * The desired network tags to be applied to all nodes in the node pool.
+     * If this field is not present, the tags will not be changed. Otherwise,
+     * the existing network tags will be *replaced* with the provided tags.
+     * 
+ * + * .google.container.v1beta1.NetworkTags tags = 16; + */ + public Builder clearTags() { + bitField0_ = (bitField0_ & ~0x00000400); + tags_ = null; + if (tagsBuilder_ != null) { + tagsBuilder_.dispose(); + tagsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired network tags to be applied to all nodes in the node pool.
+     * If this field is not present, the tags will not be changed. Otherwise,
+     * the existing network tags will be *replaced* with the provided tags.
+     * 
+ * + * .google.container.v1beta1.NetworkTags tags = 16; + */ + public com.google.container.v1beta1.NetworkTags.Builder getTagsBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getTagsFieldBuilder().getBuilder(); + } + /** + *
+     * The desired network tags to be applied to all nodes in the node pool.
+     * If this field is not present, the tags will not be changed. Otherwise,
+     * the existing network tags will be *replaced* with the provided tags.
+     * 
+ * + * .google.container.v1beta1.NetworkTags tags = 16; + */ + public com.google.container.v1beta1.NetworkTagsOrBuilder getTagsOrBuilder() { + if (tagsBuilder_ != null) { + return tagsBuilder_.getMessageOrBuilder(); + } else { + return tags_ == null ? + com.google.container.v1beta1.NetworkTags.getDefaultInstance() : tags_; + } + } + /** + *
+     * The desired network tags to be applied to all nodes in the node pool.
+     * If this field is not present, the tags will not be changed. Otherwise,
+     * the existing network tags will be *replaced* with the provided tags.
+     * 
+ * + * .google.container.v1beta1.NetworkTags tags = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkTags, com.google.container.v1beta1.NetworkTags.Builder, com.google.container.v1beta1.NetworkTagsOrBuilder> + getTagsFieldBuilder() { + if (tagsBuilder_ == null) { + tagsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NetworkTags, com.google.container.v1beta1.NetworkTags.Builder, com.google.container.v1beta1.NetworkTagsOrBuilder>( + getTags(), + getParentForChildren(), + isClean()); + tags_ = null; + } + return tagsBuilder_; + } + + private com.google.container.v1beta1.NodeTaints taints_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeTaints, com.google.container.v1beta1.NodeTaints.Builder, com.google.container.v1beta1.NodeTaintsOrBuilder> taintsBuilder_; + /** + *
+     * The desired node taints to be applied to all nodes in the node pool.
+     * If this field is not present, the taints will not be changed. Otherwise,
+     * the existing node taints will be *replaced* with the provided taints.
+     * 
+ * + * .google.container.v1beta1.NodeTaints taints = 17; + * @return Whether the taints field is set. + */ + public boolean hasTaints() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + *
+     * The desired node taints to be applied to all nodes in the node pool.
+     * If this field is not present, the taints will not be changed. Otherwise,
+     * the existing node taints will be *replaced* with the provided taints.
+     * 
+ * + * .google.container.v1beta1.NodeTaints taints = 17; + * @return The taints. + */ + public com.google.container.v1beta1.NodeTaints getTaints() { + if (taintsBuilder_ == null) { + return taints_ == null ? com.google.container.v1beta1.NodeTaints.getDefaultInstance() : taints_; + } else { + return taintsBuilder_.getMessage(); + } + } + /** + *
+     * The desired node taints to be applied to all nodes in the node pool.
+     * If this field is not present, the taints will not be changed. Otherwise,
+     * the existing node taints will be *replaced* with the provided taints.
+     * 
+ * + * .google.container.v1beta1.NodeTaints taints = 17; + */ + public Builder setTaints(com.google.container.v1beta1.NodeTaints value) { + if (taintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + taints_ = value; + } else { + taintsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * The desired node taints to be applied to all nodes in the node pool.
+     * If this field is not present, the taints will not be changed. Otherwise,
+     * the existing node taints will be *replaced* with the provided taints.
+     * 
+ * + * .google.container.v1beta1.NodeTaints taints = 17; + */ + public Builder setTaints( + com.google.container.v1beta1.NodeTaints.Builder builderForValue) { + if (taintsBuilder_ == null) { + taints_ = builderForValue.build(); + } else { + taintsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * The desired node taints to be applied to all nodes in the node pool.
+     * If this field is not present, the taints will not be changed. Otherwise,
+     * the existing node taints will be *replaced* with the provided taints.
+     * 
+ * + * .google.container.v1beta1.NodeTaints taints = 17; + */ + public Builder mergeTaints(com.google.container.v1beta1.NodeTaints value) { + if (taintsBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) && + taints_ != null && + taints_ != com.google.container.v1beta1.NodeTaints.getDefaultInstance()) { + getTaintsBuilder().mergeFrom(value); + } else { + taints_ = value; + } + } else { + taintsBuilder_.mergeFrom(value); + } + if (taints_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + /** + *
+     * The desired node taints to be applied to all nodes in the node pool.
+     * If this field is not present, the taints will not be changed. Otherwise,
+     * the existing node taints will be *replaced* with the provided taints.
+     * 
+ * + * .google.container.v1beta1.NodeTaints taints = 17; + */ + public Builder clearTaints() { + bitField0_ = (bitField0_ & ~0x00000800); + taints_ = null; + if (taintsBuilder_ != null) { + taintsBuilder_.dispose(); + taintsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired node taints to be applied to all nodes in the node pool.
+     * If this field is not present, the taints will not be changed. Otherwise,
+     * the existing node taints will be *replaced* with the provided taints.
+     * 
+ * + * .google.container.v1beta1.NodeTaints taints = 17; + */ + public com.google.container.v1beta1.NodeTaints.Builder getTaintsBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return getTaintsFieldBuilder().getBuilder(); + } + /** + *
+     * The desired node taints to be applied to all nodes in the node pool.
+     * If this field is not present, the taints will not be changed. Otherwise,
+     * the existing node taints will be *replaced* with the provided taints.
+     * 
+ * + * .google.container.v1beta1.NodeTaints taints = 17; + */ + public com.google.container.v1beta1.NodeTaintsOrBuilder getTaintsOrBuilder() { + if (taintsBuilder_ != null) { + return taintsBuilder_.getMessageOrBuilder(); + } else { + return taints_ == null ? + com.google.container.v1beta1.NodeTaints.getDefaultInstance() : taints_; + } + } + /** + *
+     * The desired node taints to be applied to all nodes in the node pool.
+     * If this field is not present, the taints will not be changed. Otherwise,
+     * the existing node taints will be *replaced* with the provided taints.
+     * 
+ * + * .google.container.v1beta1.NodeTaints taints = 17; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeTaints, com.google.container.v1beta1.NodeTaints.Builder, com.google.container.v1beta1.NodeTaintsOrBuilder> + getTaintsFieldBuilder() { + if (taintsBuilder_ == null) { + taintsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeTaints, com.google.container.v1beta1.NodeTaints.Builder, com.google.container.v1beta1.NodeTaintsOrBuilder>( + getTaints(), + getParentForChildren(), + isClean()); + taints_ = null; + } + return taintsBuilder_; + } + + private com.google.container.v1beta1.NodeLabels labels_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeLabels, com.google.container.v1beta1.NodeLabels.Builder, com.google.container.v1beta1.NodeLabelsOrBuilder> labelsBuilder_; + /** + *
+     * The desired node labels to be applied to all nodes in the node pool.
+     * If this field is not present, the labels will not be changed. Otherwise,
+     * the existing node labels will be *replaced* with the provided labels.
+     * 
+ * + * .google.container.v1beta1.NodeLabels labels = 18; + * @return Whether the labels field is set. + */ + public boolean hasLabels() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + *
+     * The desired node labels to be applied to all nodes in the node pool.
+     * If this field is not present, the labels will not be changed. Otherwise,
+     * the existing node labels will be *replaced* with the provided labels.
+     * 
+ * + * .google.container.v1beta1.NodeLabels labels = 18; + * @return The labels. + */ + public com.google.container.v1beta1.NodeLabels getLabels() { + if (labelsBuilder_ == null) { + return labels_ == null ? com.google.container.v1beta1.NodeLabels.getDefaultInstance() : labels_; + } else { + return labelsBuilder_.getMessage(); + } + } + /** + *
+     * The desired node labels to be applied to all nodes in the node pool.
+     * If this field is not present, the labels will not be changed. Otherwise,
+     * the existing node labels will be *replaced* with the provided labels.
+     * 
+ * + * .google.container.v1beta1.NodeLabels labels = 18; + */ + public Builder setLabels(com.google.container.v1beta1.NodeLabels value) { + if (labelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + labels_ = value; + } else { + labelsBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + *
+     * The desired node labels to be applied to all nodes in the node pool.
+     * If this field is not present, the labels will not be changed. Otherwise,
+     * the existing node labels will be *replaced* with the provided labels.
+     * 
+ * + * .google.container.v1beta1.NodeLabels labels = 18; + */ + public Builder setLabels( + com.google.container.v1beta1.NodeLabels.Builder builderForValue) { + if (labelsBuilder_ == null) { + labels_ = builderForValue.build(); + } else { + labelsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + *
+     * The desired node labels to be applied to all nodes in the node pool.
+     * If this field is not present, the labels will not be changed. Otherwise,
+     * the existing node labels will be *replaced* with the provided labels.
+     * 
+ * + * .google.container.v1beta1.NodeLabels labels = 18; + */ + public Builder mergeLabels(com.google.container.v1beta1.NodeLabels value) { + if (labelsBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) && + labels_ != null && + labels_ != com.google.container.v1beta1.NodeLabels.getDefaultInstance()) { + getLabelsBuilder().mergeFrom(value); + } else { + labels_ = value; + } + } else { + labelsBuilder_.mergeFrom(value); + } + if (labels_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; + } + /** + *
+     * The desired node labels to be applied to all nodes in the node pool.
+     * If this field is not present, the labels will not be changed. Otherwise,
+     * the existing node labels will be *replaced* with the provided labels.
+     * 
+ * + * .google.container.v1beta1.NodeLabels labels = 18; + */ + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00001000); + labels_ = null; + if (labelsBuilder_ != null) { + labelsBuilder_.dispose(); + labelsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The desired node labels to be applied to all nodes in the node pool.
+     * If this field is not present, the labels will not be changed. Otherwise,
+     * the existing node labels will be *replaced* with the provided labels.
+     * 
+ * + * .google.container.v1beta1.NodeLabels labels = 18; + */ + public com.google.container.v1beta1.NodeLabels.Builder getLabelsBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return getLabelsFieldBuilder().getBuilder(); + } + /** + *
+     * The desired node labels to be applied to all nodes in the node pool.
+     * If this field is not present, the labels will not be changed. Otherwise,
+     * the existing node labels will be *replaced* with the provided labels.
+     * 
+ * + * .google.container.v1beta1.NodeLabels labels = 18; + */ + public com.google.container.v1beta1.NodeLabelsOrBuilder getLabelsOrBuilder() { + if (labelsBuilder_ != null) { + return labelsBuilder_.getMessageOrBuilder(); + } else { + return labels_ == null ? + com.google.container.v1beta1.NodeLabels.getDefaultInstance() : labels_; + } + } + /** + *
+     * The desired node labels to be applied to all nodes in the node pool.
+     * If this field is not present, the labels will not be changed. Otherwise,
+     * the existing node labels will be *replaced* with the provided labels.
+     * 
+ * + * .google.container.v1beta1.NodeLabels labels = 18; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeLabels, com.google.container.v1beta1.NodeLabels.Builder, com.google.container.v1beta1.NodeLabelsOrBuilder> + getLabelsFieldBuilder() { + if (labelsBuilder_ == null) { + labelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeLabels, com.google.container.v1beta1.NodeLabels.Builder, com.google.container.v1beta1.NodeLabelsOrBuilder>( + getLabels(), + getParentForChildren(), + isClean()); + labels_ = null; + } + return labelsBuilder_; + } + + 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 ((bitField0_ & 0x00002000) != 0); + } + /** + *
+     * 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; + } else { + linuxNodeConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; + onChanged(); + 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(); + } else { + linuxNodeConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; + onChanged(); + 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 (((bitField0_ & 0x00002000) != 0) && + linuxNodeConfig_ != null && + linuxNodeConfig_ != com.google.container.v1beta1.LinuxNodeConfig.getDefaultInstance()) { + getLinuxNodeConfigBuilder().mergeFrom(value); + } else { + linuxNodeConfig_ = value; + } + } else { + linuxNodeConfigBuilder_.mergeFrom(value); + } + if (linuxNodeConfig_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } + return this; + } + /** + *
+     * Parameters that can be configured on Linux nodes.
+     * 
+ * + * .google.container.v1beta1.LinuxNodeConfig linux_node_config = 19; + */ + public Builder clearLinuxNodeConfig() { + bitField0_ = (bitField0_ & ~0x00002000); + linuxNodeConfig_ = null; + if (linuxNodeConfigBuilder_ != null) { + linuxNodeConfigBuilder_.dispose(); + linuxNodeConfigBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00002000; + 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 ((bitField0_ & 0x00004000) != 0); + } + /** + *
+     * 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; + } else { + kubeletConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + 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(); + } else { + kubeletConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + 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 (((bitField0_ & 0x00004000) != 0) && + kubeletConfig_ != null && + kubeletConfig_ != com.google.container.v1beta1.NodeKubeletConfig.getDefaultInstance()) { + getKubeletConfigBuilder().mergeFrom(value); + } else { + kubeletConfig_ = value; + } + } else { + kubeletConfigBuilder_.mergeFrom(value); + } + if (kubeletConfig_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } + return this; + } + /** + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 20; + */ + public Builder clearKubeletConfig() { + bitField0_ = (bitField0_ & ~0x00004000); + kubeletConfig_ = null; + if (kubeletConfigBuilder_ != null) { + kubeletConfigBuilder_.dispose(); + kubeletConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Node kubelet configs.
+     * 
+ * + * .google.container.v1beta1.NodeKubeletConfig kubelet_config = 20; + */ + public com.google.container.v1beta1.NodeKubeletConfig.Builder getKubeletConfigBuilder() { + bitField0_ |= 0x00004000; + 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_; + } + + private com.google.container.v1beta1.NodeNetworkConfig nodeNetworkConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeNetworkConfig, com.google.container.v1beta1.NodeNetworkConfig.Builder, com.google.container.v1beta1.NodeNetworkConfigOrBuilder> nodeNetworkConfigBuilder_; + /** + *
+     * Node network config.
+     * 
+ * + * .google.container.v1beta1.NodeNetworkConfig node_network_config = 21; + * @return Whether the nodeNetworkConfig field is set. + */ + public boolean hasNodeNetworkConfig() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + *
+     * Node network config.
+     * 
+ * + * .google.container.v1beta1.NodeNetworkConfig node_network_config = 21; + * @return The nodeNetworkConfig. + */ + public com.google.container.v1beta1.NodeNetworkConfig getNodeNetworkConfig() { + if (nodeNetworkConfigBuilder_ == null) { + return nodeNetworkConfig_ == null ? com.google.container.v1beta1.NodeNetworkConfig.getDefaultInstance() : nodeNetworkConfig_; + } else { + return nodeNetworkConfigBuilder_.getMessage(); + } + } + /** + *
+     * Node network config.
+     * 
+ * + * .google.container.v1beta1.NodeNetworkConfig node_network_config = 21; + */ + public Builder setNodeNetworkConfig(com.google.container.v1beta1.NodeNetworkConfig value) { + if (nodeNetworkConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodeNetworkConfig_ = value; + } else { + nodeNetworkConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + *
+     * Node network config.
+     * 
+ * + * .google.container.v1beta1.NodeNetworkConfig node_network_config = 21; + */ + public Builder setNodeNetworkConfig( + com.google.container.v1beta1.NodeNetworkConfig.Builder builderForValue) { + if (nodeNetworkConfigBuilder_ == null) { + nodeNetworkConfig_ = builderForValue.build(); + } else { + nodeNetworkConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + *
+     * Node network config.
+     * 
+ * + * .google.container.v1beta1.NodeNetworkConfig node_network_config = 21; + */ + public Builder mergeNodeNetworkConfig(com.google.container.v1beta1.NodeNetworkConfig value) { + if (nodeNetworkConfigBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) && + nodeNetworkConfig_ != null && + nodeNetworkConfig_ != com.google.container.v1beta1.NodeNetworkConfig.getDefaultInstance()) { + getNodeNetworkConfigBuilder().mergeFrom(value); + } else { + nodeNetworkConfig_ = value; + } + } else { + nodeNetworkConfigBuilder_.mergeFrom(value); + } + if (nodeNetworkConfig_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } + return this; + } + /** + *
+     * Node network config.
+     * 
+ * + * .google.container.v1beta1.NodeNetworkConfig node_network_config = 21; + */ + public Builder clearNodeNetworkConfig() { + bitField0_ = (bitField0_ & ~0x00008000); + nodeNetworkConfig_ = null; + if (nodeNetworkConfigBuilder_ != null) { + nodeNetworkConfigBuilder_.dispose(); + nodeNetworkConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Node network config.
+     * 
+ * + * .google.container.v1beta1.NodeNetworkConfig node_network_config = 21; + */ + public com.google.container.v1beta1.NodeNetworkConfig.Builder getNodeNetworkConfigBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return getNodeNetworkConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Node network config.
+     * 
+ * + * .google.container.v1beta1.NodeNetworkConfig node_network_config = 21; + */ + public com.google.container.v1beta1.NodeNetworkConfigOrBuilder getNodeNetworkConfigOrBuilder() { + if (nodeNetworkConfigBuilder_ != null) { + return nodeNetworkConfigBuilder_.getMessageOrBuilder(); + } else { + return nodeNetworkConfig_ == null ? + com.google.container.v1beta1.NodeNetworkConfig.getDefaultInstance() : nodeNetworkConfig_; + } + } + /** + *
+     * Node network config.
+     * 
+ * + * .google.container.v1beta1.NodeNetworkConfig node_network_config = 21; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeNetworkConfig, com.google.container.v1beta1.NodeNetworkConfig.Builder, com.google.container.v1beta1.NodeNetworkConfigOrBuilder> + getNodeNetworkConfigFieldBuilder() { + if (nodeNetworkConfigBuilder_ == null) { + nodeNetworkConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodeNetworkConfig, com.google.container.v1beta1.NodeNetworkConfig.Builder, com.google.container.v1beta1.NodeNetworkConfigOrBuilder>( + getNodeNetworkConfig(), + getParentForChildren(), + isClean()); + nodeNetworkConfig_ = null; + } + return nodeNetworkConfigBuilder_; + } + + private com.google.container.v1beta1.GcfsConfig gcfsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcfsConfig, com.google.container.v1beta1.GcfsConfig.Builder, com.google.container.v1beta1.GcfsConfigOrBuilder> gcfsConfigBuilder_; + /** + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + * @return Whether the gcfsConfig field is set. + */ + public boolean hasGcfsConfig() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + * @return The gcfsConfig. + */ + public com.google.container.v1beta1.GcfsConfig getGcfsConfig() { + if (gcfsConfigBuilder_ == null) { + return gcfsConfig_ == null ? com.google.container.v1beta1.GcfsConfig.getDefaultInstance() : gcfsConfig_; + } else { + return gcfsConfigBuilder_.getMessage(); + } + } + /** + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + */ + public Builder setGcfsConfig(com.google.container.v1beta1.GcfsConfig value) { + if (gcfsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gcfsConfig_ = value; + } else { + gcfsConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + */ + public Builder setGcfsConfig( + com.google.container.v1beta1.GcfsConfig.Builder builderForValue) { + if (gcfsConfigBuilder_ == null) { + gcfsConfig_ = builderForValue.build(); + } else { + gcfsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + */ + public Builder mergeGcfsConfig(com.google.container.v1beta1.GcfsConfig value) { + if (gcfsConfigBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0) && + gcfsConfig_ != null && + gcfsConfig_ != com.google.container.v1beta1.GcfsConfig.getDefaultInstance()) { + getGcfsConfigBuilder().mergeFrom(value); + } else { + gcfsConfig_ = value; + } + } else { + gcfsConfigBuilder_.mergeFrom(value); + } + if (gcfsConfig_ != null) { + bitField0_ |= 0x00010000; + onChanged(); + } + return this; + } + /** + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + */ + public Builder clearGcfsConfig() { + bitField0_ = (bitField0_ & ~0x00010000); + gcfsConfig_ = null; + if (gcfsConfigBuilder_ != null) { + gcfsConfigBuilder_.dispose(); + gcfsConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + */ + public com.google.container.v1beta1.GcfsConfig.Builder getGcfsConfigBuilder() { + bitField0_ |= 0x00010000; + onChanged(); + return getGcfsConfigFieldBuilder().getBuilder(); + } + /** + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + */ + public com.google.container.v1beta1.GcfsConfigOrBuilder getGcfsConfigOrBuilder() { + if (gcfsConfigBuilder_ != null) { + return gcfsConfigBuilder_.getMessageOrBuilder(); + } else { + return gcfsConfig_ == null ? + com.google.container.v1beta1.GcfsConfig.getDefaultInstance() : gcfsConfig_; + } + } + /** + *
+     * GCFS config.
+     * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcfsConfig, com.google.container.v1beta1.GcfsConfig.Builder, com.google.container.v1beta1.GcfsConfigOrBuilder> + getGcfsConfigFieldBuilder() { + if (gcfsConfigBuilder_ == null) { + gcfsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.GcfsConfig, com.google.container.v1beta1.GcfsConfig.Builder, com.google.container.v1beta1.GcfsConfigOrBuilder>( + getGcfsConfig(), + getParentForChildren(), + isClean()); + gcfsConfig_ = null; + } + return gcfsConfigBuilder_; + } + + private com.google.container.v1beta1.ConfidentialNodes confidentialNodes_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ConfidentialNodes, com.google.container.v1beta1.ConfidentialNodes.Builder, com.google.container.v1beta1.ConfidentialNodesOrBuilder> confidentialNodesBuilder_; + /** + *
+     * Confidential nodes config.
+     * All the nodes in the node pool will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 23; + * @return Whether the confidentialNodes field is set. + */ + public boolean hasConfidentialNodes() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + *
+     * Confidential nodes config.
+     * All the nodes in the node pool will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 23; + * @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(); + } + } + /** + *
+     * Confidential nodes config.
+     * All the nodes in the node pool will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 23; + */ + public Builder setConfidentialNodes(com.google.container.v1beta1.ConfidentialNodes value) { + if (confidentialNodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + confidentialNodes_ = value; + } else { + confidentialNodesBuilder_.setMessage(value); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + *
+     * Confidential nodes config.
+     * All the nodes in the node pool will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 23; + */ + public Builder setConfidentialNodes( + com.google.container.v1beta1.ConfidentialNodes.Builder builderForValue) { + if (confidentialNodesBuilder_ == null) { + confidentialNodes_ = builderForValue.build(); + } else { + confidentialNodesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + *
+     * Confidential nodes config.
+     * All the nodes in the node pool will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 23; + */ + public Builder mergeConfidentialNodes(com.google.container.v1beta1.ConfidentialNodes value) { + if (confidentialNodesBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) && + confidentialNodes_ != null && + confidentialNodes_ != com.google.container.v1beta1.ConfidentialNodes.getDefaultInstance()) { + getConfidentialNodesBuilder().mergeFrom(value); + } else { + confidentialNodes_ = value; + } + } else { + confidentialNodesBuilder_.mergeFrom(value); + } + if (confidentialNodes_ != null) { + bitField0_ |= 0x00020000; + onChanged(); + } + return this; + } + /** + *
+     * Confidential nodes config.
+     * All the nodes in the node pool will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 23; + */ + public Builder clearConfidentialNodes() { + bitField0_ = (bitField0_ & ~0x00020000); + confidentialNodes_ = null; + if (confidentialNodesBuilder_ != null) { + confidentialNodesBuilder_.dispose(); + confidentialNodesBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Confidential nodes config.
+     * All the nodes in the node pool will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 23; + */ + public com.google.container.v1beta1.ConfidentialNodes.Builder getConfidentialNodesBuilder() { + bitField0_ |= 0x00020000; + onChanged(); + return getConfidentialNodesFieldBuilder().getBuilder(); + } + /** + *
+     * Confidential nodes config.
+     * All the nodes in the node pool will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 23; + */ + public com.google.container.v1beta1.ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder() { + if (confidentialNodesBuilder_ != null) { + return confidentialNodesBuilder_.getMessageOrBuilder(); + } else { + return confidentialNodes_ == null ? + com.google.container.v1beta1.ConfidentialNodes.getDefaultInstance() : confidentialNodes_; + } + } + /** + *
+     * Confidential nodes config.
+     * All the nodes in the node pool will be Confidential VM once enabled.
+     * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 23; + */ + 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 com.google.container.v1beta1.VirtualNIC gvnic_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.VirtualNIC, com.google.container.v1beta1.VirtualNIC.Builder, com.google.container.v1beta1.VirtualNICOrBuilder> gvnicBuilder_; + /** + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1beta1.VirtualNIC gvnic = 29; + * @return Whether the gvnic field is set. + */ + public boolean hasGvnic() { + return ((bitField0_ & 0x00040000) != 0); + } + /** + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1beta1.VirtualNIC gvnic = 29; + * @return The gvnic. + */ + public com.google.container.v1beta1.VirtualNIC getGvnic() { + if (gvnicBuilder_ == null) { + return gvnic_ == null ? com.google.container.v1beta1.VirtualNIC.getDefaultInstance() : gvnic_; + } else { + return gvnicBuilder_.getMessage(); + } + } + /** + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1beta1.VirtualNIC gvnic = 29; + */ + public Builder setGvnic(com.google.container.v1beta1.VirtualNIC value) { + if (gvnicBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gvnic_ = value; + } else { + gvnicBuilder_.setMessage(value); + } + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1beta1.VirtualNIC gvnic = 29; + */ + public Builder setGvnic( + com.google.container.v1beta1.VirtualNIC.Builder builderForValue) { + if (gvnicBuilder_ == null) { + gvnic_ = builderForValue.build(); + } else { + gvnicBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1beta1.VirtualNIC gvnic = 29; + */ + public Builder mergeGvnic(com.google.container.v1beta1.VirtualNIC value) { + if (gvnicBuilder_ == null) { + if (((bitField0_ & 0x00040000) != 0) && + gvnic_ != null && + gvnic_ != com.google.container.v1beta1.VirtualNIC.getDefaultInstance()) { + getGvnicBuilder().mergeFrom(value); + } else { + gvnic_ = value; + } + } else { + gvnicBuilder_.mergeFrom(value); + } + if (gvnic_ != null) { + bitField0_ |= 0x00040000; + onChanged(); + } + return this; + } + /** + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1beta1.VirtualNIC gvnic = 29; + */ + public Builder clearGvnic() { + bitField0_ = (bitField0_ & ~0x00040000); + gvnic_ = null; + if (gvnicBuilder_ != null) { + gvnicBuilder_.dispose(); + gvnicBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1beta1.VirtualNIC gvnic = 29; + */ + public com.google.container.v1beta1.VirtualNIC.Builder getGvnicBuilder() { + bitField0_ |= 0x00040000; + onChanged(); + return getGvnicFieldBuilder().getBuilder(); + } + /** + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1beta1.VirtualNIC gvnic = 29; + */ + public com.google.container.v1beta1.VirtualNICOrBuilder getGvnicOrBuilder() { + if (gvnicBuilder_ != null) { + return gvnicBuilder_.getMessageOrBuilder(); + } else { + return gvnic_ == null ? + com.google.container.v1beta1.VirtualNIC.getDefaultInstance() : gvnic_; + } + } + /** + *
+     * Enable or disable gvnic on the node pool.
+     * 
+ * + * .google.container.v1beta1.VirtualNIC gvnic = 29; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.VirtualNIC, com.google.container.v1beta1.VirtualNIC.Builder, com.google.container.v1beta1.VirtualNICOrBuilder> + getGvnicFieldBuilder() { + if (gvnicBuilder_ == null) { + gvnicBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.VirtualNIC, com.google.container.v1beta1.VirtualNIC.Builder, com.google.container.v1beta1.VirtualNICOrBuilder>( + getGvnic(), + getParentForChildren(), + isClean()); + gvnic_ = null; + } + return gvnicBuilder_; + } + + private java.lang.Object etag_ = ""; + /** + *
+     * The current etag of the node pool.
+     * If an etag is provided and does not match the current etag of the node
+     * pool, update will be blocked and an ABORTED error will be returned.
+     * 
+ * + * string etag = 30; + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The current etag of the node pool.
+     * If an etag is provided and does not match the current etag of the node
+     * pool, update will be blocked and an ABORTED error will be returned.
+     * 
+ * + * string etag = 30; + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString + getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The current etag of the node pool.
+     * If an etag is provided and does not match the current etag of the node
+     * pool, update will be blocked and an ABORTED error will be returned.
+     * 
+ * + * string etag = 30; + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + etag_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + *
+     * The current etag of the node pool.
+     * If an etag is provided and does not match the current etag of the node
+     * pool, update will be blocked and an ABORTED error will be returned.
+     * 
+ * + * string etag = 30; + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00080000); + onChanged(); + return this; + } + /** + *
+     * The current etag of the node pool.
+     * If an etag is provided and does not match the current etag of the node
+     * pool, update will be blocked and an ABORTED error will be returned.
+     * 
+ * + * string etag = 30; + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + private com.google.container.v1beta1.FastSocket fastSocket_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.FastSocket, com.google.container.v1beta1.FastSocket.Builder, com.google.container.v1beta1.FastSocketOrBuilder> fastSocketBuilder_; + /** + *
+     * Enable or disable NCCL fast socket for the node pool.
+     * 
+ * + * .google.container.v1beta1.FastSocket fast_socket = 31; + * @return Whether the fastSocket field is set. + */ + public boolean hasFastSocket() { + return ((bitField0_ & 0x00100000) != 0); + } + /** + *
+     * Enable or disable NCCL fast socket for the node pool.
+     * 
+ * + * .google.container.v1beta1.FastSocket fast_socket = 31; + * @return The fastSocket. + */ + public com.google.container.v1beta1.FastSocket getFastSocket() { + if (fastSocketBuilder_ == null) { + return fastSocket_ == null ? com.google.container.v1beta1.FastSocket.getDefaultInstance() : fastSocket_; + } else { + return fastSocketBuilder_.getMessage(); + } + } + /** + *
+     * Enable or disable NCCL fast socket for the node pool.
+     * 
+ * + * .google.container.v1beta1.FastSocket fast_socket = 31; + */ + public Builder setFastSocket(com.google.container.v1beta1.FastSocket value) { + if (fastSocketBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fastSocket_ = value; + } else { + fastSocketBuilder_.setMessage(value); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + *
+     * Enable or disable NCCL fast socket for the node pool.
+     * 
+ * + * .google.container.v1beta1.FastSocket fast_socket = 31; + */ + public Builder setFastSocket( + com.google.container.v1beta1.FastSocket.Builder builderForValue) { + if (fastSocketBuilder_ == null) { + fastSocket_ = builderForValue.build(); + } else { + fastSocketBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + *
+     * Enable or disable NCCL fast socket for the node pool.
+     * 
+ * + * .google.container.v1beta1.FastSocket fast_socket = 31; + */ + public Builder mergeFastSocket(com.google.container.v1beta1.FastSocket value) { + if (fastSocketBuilder_ == null) { + if (((bitField0_ & 0x00100000) != 0) && + fastSocket_ != null && + fastSocket_ != com.google.container.v1beta1.FastSocket.getDefaultInstance()) { + getFastSocketBuilder().mergeFrom(value); + } else { + fastSocket_ = value; + } + } else { + fastSocketBuilder_.mergeFrom(value); + } + if (fastSocket_ != null) { + bitField0_ |= 0x00100000; + onChanged(); + } + return this; + } + /** + *
+     * Enable or disable NCCL fast socket for the node pool.
+     * 
+ * + * .google.container.v1beta1.FastSocket fast_socket = 31; + */ + public Builder clearFastSocket() { + bitField0_ = (bitField0_ & ~0x00100000); + fastSocket_ = null; + if (fastSocketBuilder_ != null) { + fastSocketBuilder_.dispose(); + fastSocketBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Enable or disable NCCL fast socket for the node pool.
+     * 
+ * + * .google.container.v1beta1.FastSocket fast_socket = 31; + */ + public com.google.container.v1beta1.FastSocket.Builder getFastSocketBuilder() { + bitField0_ |= 0x00100000; + onChanged(); + return getFastSocketFieldBuilder().getBuilder(); + } + /** + *
+     * Enable or disable NCCL fast socket for the node pool.
+     * 
+ * + * .google.container.v1beta1.FastSocket fast_socket = 31; + */ + public com.google.container.v1beta1.FastSocketOrBuilder getFastSocketOrBuilder() { + if (fastSocketBuilder_ != null) { + return fastSocketBuilder_.getMessageOrBuilder(); + } else { + return fastSocket_ == null ? + com.google.container.v1beta1.FastSocket.getDefaultInstance() : fastSocket_; + } + } + /** + *
+     * Enable or disable NCCL fast socket for the node pool.
+     * 
+ * + * .google.container.v1beta1.FastSocket fast_socket = 31; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.FastSocket, com.google.container.v1beta1.FastSocket.Builder, com.google.container.v1beta1.FastSocketOrBuilder> + getFastSocketFieldBuilder() { + if (fastSocketBuilder_ == null) { + fastSocketBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.FastSocket, com.google.container.v1beta1.FastSocket.Builder, com.google.container.v1beta1.FastSocketOrBuilder>( + getFastSocket(), + getParentForChildren(), + isClean()); + fastSocket_ = null; + } + return fastSocketBuilder_; + } + + private com.google.container.v1beta1.NodePoolLoggingConfig loggingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolLoggingConfig, com.google.container.v1beta1.NodePoolLoggingConfig.Builder, com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder> loggingConfigBuilder_; + /** + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 32; + * @return Whether the loggingConfig field is set. + */ + public boolean hasLoggingConfig() { + return ((bitField0_ & 0x00200000) != 0); + } + /** + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 32; + * @return The loggingConfig. + */ + public com.google.container.v1beta1.NodePoolLoggingConfig getLoggingConfig() { + if (loggingConfigBuilder_ == null) { + return loggingConfig_ == null ? com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance() : loggingConfig_; + } else { + return loggingConfigBuilder_.getMessage(); + } + } + /** + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 32; + */ + public Builder setLoggingConfig(com.google.container.v1beta1.NodePoolLoggingConfig value) { + if (loggingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + loggingConfig_ = value; + } else { + loggingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + /** + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 32; + */ + public Builder setLoggingConfig( + com.google.container.v1beta1.NodePoolLoggingConfig.Builder builderForValue) { + if (loggingConfigBuilder_ == null) { + loggingConfig_ = builderForValue.build(); + } else { + loggingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + /** + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 32; + */ + public Builder mergeLoggingConfig(com.google.container.v1beta1.NodePoolLoggingConfig value) { + if (loggingConfigBuilder_ == null) { + if (((bitField0_ & 0x00200000) != 0) && + loggingConfig_ != null && + loggingConfig_ != com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance()) { + getLoggingConfigBuilder().mergeFrom(value); + } else { + loggingConfig_ = value; + } + } else { + loggingConfigBuilder_.mergeFrom(value); + } + if (loggingConfig_ != null) { + bitField0_ |= 0x00200000; + onChanged(); + } + return this; + } + /** + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 32; + */ + public Builder clearLoggingConfig() { + bitField0_ = (bitField0_ & ~0x00200000); + loggingConfig_ = null; + if (loggingConfigBuilder_ != null) { + loggingConfigBuilder_.dispose(); + loggingConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 32; + */ + public com.google.container.v1beta1.NodePoolLoggingConfig.Builder getLoggingConfigBuilder() { + bitField0_ |= 0x00200000; + onChanged(); + return getLoggingConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 32; + */ + public com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder getLoggingConfigOrBuilder() { + if (loggingConfigBuilder_ != null) { + return loggingConfigBuilder_.getMessageOrBuilder(); + } else { + return loggingConfig_ == null ? + com.google.container.v1beta1.NodePoolLoggingConfig.getDefaultInstance() : loggingConfig_; + } + } + /** + *
+     * Logging configuration.
+     * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 32; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolLoggingConfig, com.google.container.v1beta1.NodePoolLoggingConfig.Builder, com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder> + getLoggingConfigFieldBuilder() { + if (loggingConfigBuilder_ == null) { + loggingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.NodePoolLoggingConfig, com.google.container.v1beta1.NodePoolLoggingConfig.Builder, com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder>( + getLoggingConfig(), + getParentForChildren(), + isClean()); + loggingConfig_ = null; + } + return loggingConfigBuilder_; + } + + private com.google.container.v1beta1.ResourceLabels resourceLabels_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ResourceLabels, com.google.container.v1beta1.ResourceLabels.Builder, com.google.container.v1beta1.ResourceLabelsOrBuilder> resourceLabelsBuilder_; + /** + *
+     * The resource labels for the node pool to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * .google.container.v1beta1.ResourceLabels resource_labels = 33; + * @return Whether the resourceLabels field is set. + */ + public boolean hasResourceLabels() { + return ((bitField0_ & 0x00400000) != 0); + } + /** + *
+     * The resource labels for the node pool to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * .google.container.v1beta1.ResourceLabels resource_labels = 33; + * @return The resourceLabels. + */ + public com.google.container.v1beta1.ResourceLabels getResourceLabels() { + if (resourceLabelsBuilder_ == null) { + return resourceLabels_ == null ? com.google.container.v1beta1.ResourceLabels.getDefaultInstance() : resourceLabels_; + } else { + return resourceLabelsBuilder_.getMessage(); + } + } + /** + *
+     * The resource labels for the node pool to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * .google.container.v1beta1.ResourceLabels resource_labels = 33; + */ + public Builder setResourceLabels(com.google.container.v1beta1.ResourceLabels value) { + if (resourceLabelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resourceLabels_ = value; + } else { + resourceLabelsBuilder_.setMessage(value); + } + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + /** + *
+     * The resource labels for the node pool to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * .google.container.v1beta1.ResourceLabels resource_labels = 33; + */ + public Builder setResourceLabels( + com.google.container.v1beta1.ResourceLabels.Builder builderForValue) { + if (resourceLabelsBuilder_ == null) { + resourceLabels_ = builderForValue.build(); + } else { + resourceLabelsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + /** + *
+     * The resource labels for the node pool to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * .google.container.v1beta1.ResourceLabels resource_labels = 33; + */ + public Builder mergeResourceLabels(com.google.container.v1beta1.ResourceLabels value) { + if (resourceLabelsBuilder_ == null) { + if (((bitField0_ & 0x00400000) != 0) && + resourceLabels_ != null && + resourceLabels_ != com.google.container.v1beta1.ResourceLabels.getDefaultInstance()) { + getResourceLabelsBuilder().mergeFrom(value); + } else { + resourceLabels_ = value; + } + } else { + resourceLabelsBuilder_.mergeFrom(value); + } + if (resourceLabels_ != null) { + bitField0_ |= 0x00400000; + onChanged(); + } + return this; + } + /** + *
+     * The resource labels for the node pool to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * .google.container.v1beta1.ResourceLabels resource_labels = 33; + */ + public Builder clearResourceLabels() { + bitField0_ = (bitField0_ & ~0x00400000); + resourceLabels_ = null; + if (resourceLabelsBuilder_ != null) { + resourceLabelsBuilder_.dispose(); + resourceLabelsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The resource labels for the node pool to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * .google.container.v1beta1.ResourceLabels resource_labels = 33; + */ + public com.google.container.v1beta1.ResourceLabels.Builder getResourceLabelsBuilder() { + bitField0_ |= 0x00400000; + onChanged(); + return getResourceLabelsFieldBuilder().getBuilder(); + } + /** + *
+     * The resource labels for the node pool to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * .google.container.v1beta1.ResourceLabels resource_labels = 33; + */ + public com.google.container.v1beta1.ResourceLabelsOrBuilder getResourceLabelsOrBuilder() { + if (resourceLabelsBuilder_ != null) { + return resourceLabelsBuilder_.getMessageOrBuilder(); + } else { + return resourceLabels_ == null ? + com.google.container.v1beta1.ResourceLabels.getDefaultInstance() : resourceLabels_; + } + } + /** + *
+     * The resource labels for the node pool to use to annotate any related
+     * Google Compute Engine resources.
+     * 
+ * + * .google.container.v1beta1.ResourceLabels resource_labels = 33; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ResourceLabels, com.google.container.v1beta1.ResourceLabels.Builder, com.google.container.v1beta1.ResourceLabelsOrBuilder> + getResourceLabelsFieldBuilder() { + if (resourceLabelsBuilder_ == null) { + resourceLabelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ResourceLabels, com.google.container.v1beta1.ResourceLabels.Builder, com.google.container.v1beta1.ResourceLabelsOrBuilder>( + getResourceLabels(), + getParentForChildren(), + isClean()); + resourceLabels_ = null; + } + return resourceLabelsBuilder_; + } + + private com.google.container.v1beta1.WindowsNodeConfig windowsNodeConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WindowsNodeConfig, com.google.container.v1beta1.WindowsNodeConfig.Builder, com.google.container.v1beta1.WindowsNodeConfigOrBuilder> windowsNodeConfigBuilder_; + /** + *
+     * Parameters that can be configured on Windows nodes.
+     * 
+ * + * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 34; + * @return Whether the windowsNodeConfig field is set. + */ + public boolean hasWindowsNodeConfig() { + return ((bitField0_ & 0x00800000) != 0); + } + /** + *
+     * Parameters that can be configured on Windows nodes.
+     * 
+ * + * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 34; + * @return The windowsNodeConfig. + */ + public com.google.container.v1beta1.WindowsNodeConfig getWindowsNodeConfig() { + if (windowsNodeConfigBuilder_ == null) { + return windowsNodeConfig_ == null ? com.google.container.v1beta1.WindowsNodeConfig.getDefaultInstance() : windowsNodeConfig_; + } else { + return windowsNodeConfigBuilder_.getMessage(); + } + } + /** + *
+     * Parameters that can be configured on Windows nodes.
+     * 
+ * + * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 34; + */ + public Builder setWindowsNodeConfig(com.google.container.v1beta1.WindowsNodeConfig value) { + if (windowsNodeConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + windowsNodeConfig_ = value; + } else { + windowsNodeConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + /** + *
+     * Parameters that can be configured on Windows nodes.
+     * 
+ * + * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 34; + */ + public Builder setWindowsNodeConfig( + com.google.container.v1beta1.WindowsNodeConfig.Builder builderForValue) { + if (windowsNodeConfigBuilder_ == null) { + windowsNodeConfig_ = builderForValue.build(); + } else { + windowsNodeConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + /** + *
+     * Parameters that can be configured on Windows nodes.
+     * 
+ * + * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 34; + */ + public Builder mergeWindowsNodeConfig(com.google.container.v1beta1.WindowsNodeConfig value) { + if (windowsNodeConfigBuilder_ == null) { + if (((bitField0_ & 0x00800000) != 0) && + windowsNodeConfig_ != null && + windowsNodeConfig_ != com.google.container.v1beta1.WindowsNodeConfig.getDefaultInstance()) { + getWindowsNodeConfigBuilder().mergeFrom(value); + } else { + windowsNodeConfig_ = value; + } + } else { + windowsNodeConfigBuilder_.mergeFrom(value); + } + if (windowsNodeConfig_ != null) { + bitField0_ |= 0x00800000; + onChanged(); + } + return this; + } + /** + *
+     * Parameters that can be configured on Windows nodes.
+     * 
+ * + * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 34; + */ + public Builder clearWindowsNodeConfig() { + bitField0_ = (bitField0_ & ~0x00800000); + windowsNodeConfig_ = null; + if (windowsNodeConfigBuilder_ != null) { + windowsNodeConfigBuilder_.dispose(); + windowsNodeConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Parameters that can be configured on Windows nodes.
+     * 
+ * + * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 34; + */ + public com.google.container.v1beta1.WindowsNodeConfig.Builder getWindowsNodeConfigBuilder() { + bitField0_ |= 0x00800000; + onChanged(); + return getWindowsNodeConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Parameters that can be configured on Windows nodes.
+     * 
+ * + * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 34; + */ + public com.google.container.v1beta1.WindowsNodeConfigOrBuilder getWindowsNodeConfigOrBuilder() { + if (windowsNodeConfigBuilder_ != null) { + return windowsNodeConfigBuilder_.getMessageOrBuilder(); + } else { + return windowsNodeConfig_ == null ? + com.google.container.v1beta1.WindowsNodeConfig.getDefaultInstance() : windowsNodeConfig_; + } + } + /** + *
+     * Parameters that can be configured on Windows nodes.
+     * 
+ * + * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 34; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WindowsNodeConfig, com.google.container.v1beta1.WindowsNodeConfig.Builder, com.google.container.v1beta1.WindowsNodeConfigOrBuilder> + getWindowsNodeConfigFieldBuilder() { + if (windowsNodeConfigBuilder_ == null) { + windowsNodeConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WindowsNodeConfig, com.google.container.v1beta1.WindowsNodeConfig.Builder, com.google.container.v1beta1.WindowsNodeConfigOrBuilder>( + getWindowsNodeConfig(), + getParentForChildren(), + isClean()); + windowsNodeConfig_ = null; + } + return windowsNodeConfigBuilder_; + } + + private java.lang.Object machineType_ = ""; + /** + *
+     * Optional. The desired machine type for nodes in the node pool.
+     * Initiates an upgrade operation that migrates the nodes in the
+     * node pool to the specified machine type.
+     * 
+ * + * string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; + * @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; + } + } + /** + *
+     * Optional. The desired machine type for nodes in the node pool.
+     * Initiates an upgrade operation that migrates the nodes in the
+     * node pool to the specified machine type.
+     * 
+ * + * string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; + * @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; + } + } + /** + *
+     * Optional. The desired machine type for nodes in the node pool.
+     * Initiates an upgrade operation that migrates the nodes in the
+     * node pool to the specified machine type.
+     * 
+ * + * string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; + * @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; + bitField0_ |= 0x01000000; + onChanged(); + return this; + } + /** + *
+     * Optional. The desired machine type for nodes in the node pool.
+     * Initiates an upgrade operation that migrates the nodes in the
+     * node pool to the specified machine type.
+     * 
+ * + * string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearMachineType() { + machineType_ = getDefaultInstance().getMachineType(); + bitField0_ = (bitField0_ & ~0x01000000); + onChanged(); + return this; + } + /** + *
+     * Optional. The desired machine type for nodes in the node pool.
+     * Initiates an upgrade operation that migrates the nodes in the
+     * node pool to the specified machine type.
+     * 
+ * + * string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; + * @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; + bitField0_ |= 0x01000000; + onChanged(); + return this; + } + + private java.lang.Object diskType_ = ""; + /** + *
+     * Optional. The desired disk type for nodes in the node pool.
+     * Initiates an upgrade operation that migrates the nodes in the
+     * node pool to the specified disk type.
+     * 
+ * + * string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; + * @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; + } + } + /** + *
+     * Optional. The desired disk type for nodes in the node pool.
+     * Initiates an upgrade operation that migrates the nodes in the
+     * node pool to the specified disk type.
+     * 
+ * + * string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; + * @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; + } + } + /** + *
+     * Optional. The desired disk type for nodes in the node pool.
+     * Initiates an upgrade operation that migrates the nodes in the
+     * node pool to the specified disk type.
+     * 
+ * + * string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; + * @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; + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + /** + *
+     * Optional. The desired disk type for nodes in the node pool.
+     * Initiates an upgrade operation that migrates the nodes in the
+     * node pool to the specified disk type.
+     * 
+ * + * string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearDiskType() { + diskType_ = getDefaultInstance().getDiskType(); + bitField0_ = (bitField0_ & ~0x02000000); + onChanged(); + return this; + } + /** + *
+     * Optional. The desired disk type for nodes in the node pool.
+     * Initiates an upgrade operation that migrates the nodes in the
+     * node pool to the specified disk type.
+     * 
+ * + * string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; + * @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; + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + + private long diskSizeGb_ ; + /** + *
+     * Optional. The desired disk size for nodes in the node pool.
+     * Initiates an upgrade operation that migrates the nodes in the
+     * node pool to the specified disk size.
+     * 
+ * + * int64 disk_size_gb = 38 [(.google.api.field_behavior) = OPTIONAL]; + * @return The diskSizeGb. + */ + @java.lang.Override + public long getDiskSizeGb() { + return diskSizeGb_; + } + /** + *
+     * Optional. The desired disk size for nodes in the node pool.
+     * Initiates an upgrade operation that migrates the nodes in the
+     * node pool to the specified disk size.
+     * 
+ * + * int64 disk_size_gb = 38 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The diskSizeGb to set. + * @return This builder for chaining. + */ + public Builder setDiskSizeGb(long value) { + + diskSizeGb_ = value; + bitField0_ |= 0x04000000; + onChanged(); + return this; + } + /** + *
+     * Optional. The desired disk size for nodes in the node pool.
+     * Initiates an upgrade operation that migrates the nodes in the
+     * node pool to the specified disk size.
+     * 
+ * + * int64 disk_size_gb = 38 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearDiskSizeGb() { + bitField0_ = (bitField0_ & ~0x04000000); + diskSizeGb_ = 0L; + onChanged(); + return this; + } + + private com.google.container.v1beta1.ResourceManagerTags resourceManagerTags_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ResourceManagerTags, com.google.container.v1beta1.ResourceManagerTags.Builder, com.google.container.v1beta1.ResourceManagerTagsOrBuilder> resourceManagerTagsBuilder_; + /** + *
+     * Desired resource manager tag keys and values to be attached to the nodes
+     * for managing Compute Engine firewalls using Network Firewall Policies.
+     * Existing tags will be replaced with new values.
+     * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 39; + * @return Whether the resourceManagerTags field is set. + */ + public boolean hasResourceManagerTags() { + return ((bitField0_ & 0x08000000) != 0); + } + /** + *
+     * Desired resource manager tag keys and values to be attached to the nodes
+     * for managing Compute Engine firewalls using Network Firewall Policies.
+     * Existing tags will be replaced with new values.
+     * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 39; + * @return The resourceManagerTags. + */ + public com.google.container.v1beta1.ResourceManagerTags getResourceManagerTags() { + if (resourceManagerTagsBuilder_ == null) { + return resourceManagerTags_ == null ? com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance() : resourceManagerTags_; + } else { + return resourceManagerTagsBuilder_.getMessage(); + } + } + /** + *
+     * Desired resource manager tag keys and values to be attached to the nodes
+     * for managing Compute Engine firewalls using Network Firewall Policies.
+     * Existing tags will be replaced with new values.
+     * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 39; + */ + public Builder setResourceManagerTags(com.google.container.v1beta1.ResourceManagerTags value) { + if (resourceManagerTagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resourceManagerTags_ = value; + } else { + resourceManagerTagsBuilder_.setMessage(value); + } + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + /** + *
+     * Desired resource manager tag keys and values to be attached to the nodes
+     * for managing Compute Engine firewalls using Network Firewall Policies.
+     * Existing tags will be replaced with new values.
+     * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 39; + */ + public Builder setResourceManagerTags( + com.google.container.v1beta1.ResourceManagerTags.Builder builderForValue) { + if (resourceManagerTagsBuilder_ == null) { + resourceManagerTags_ = builderForValue.build(); + } else { + resourceManagerTagsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + /** + *
+     * Desired resource manager tag keys and values to be attached to the nodes
+     * for managing Compute Engine firewalls using Network Firewall Policies.
+     * Existing tags will be replaced with new values.
+     * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 39; + */ + public Builder mergeResourceManagerTags(com.google.container.v1beta1.ResourceManagerTags value) { + if (resourceManagerTagsBuilder_ == null) { + if (((bitField0_ & 0x08000000) != 0) && + resourceManagerTags_ != null && + resourceManagerTags_ != com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance()) { + getResourceManagerTagsBuilder().mergeFrom(value); + } else { + resourceManagerTags_ = value; + } + } else { + resourceManagerTagsBuilder_.mergeFrom(value); + } + if (resourceManagerTags_ != null) { + bitField0_ |= 0x08000000; + onChanged(); + } + return this; + } + /** + *
+     * Desired resource manager tag keys and values to be attached to the nodes
+     * for managing Compute Engine firewalls using Network Firewall Policies.
+     * Existing tags will be replaced with new values.
+     * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 39; + */ + public Builder clearResourceManagerTags() { + bitField0_ = (bitField0_ & ~0x08000000); + resourceManagerTags_ = null; + if (resourceManagerTagsBuilder_ != null) { + resourceManagerTagsBuilder_.dispose(); + resourceManagerTagsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Desired resource manager tag keys and values to be attached to the nodes
+     * for managing Compute Engine firewalls using Network Firewall Policies.
+     * Existing tags will be replaced with new values.
+     * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 39; + */ + public com.google.container.v1beta1.ResourceManagerTags.Builder getResourceManagerTagsBuilder() { + bitField0_ |= 0x08000000; + onChanged(); + return getResourceManagerTagsFieldBuilder().getBuilder(); + } + /** + *
+     * Desired resource manager tag keys and values to be attached to the nodes
+     * for managing Compute Engine firewalls using Network Firewall Policies.
+     * Existing tags will be replaced with new values.
+     * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 39; + */ + public com.google.container.v1beta1.ResourceManagerTagsOrBuilder getResourceManagerTagsOrBuilder() { + if (resourceManagerTagsBuilder_ != null) { + return resourceManagerTagsBuilder_.getMessageOrBuilder(); + } else { + return resourceManagerTags_ == null ? + com.google.container.v1beta1.ResourceManagerTags.getDefaultInstance() : resourceManagerTags_; + } + } + /** + *
+     * Desired resource manager tag keys and values to be attached to the nodes
+     * for managing Compute Engine firewalls using Network Firewall Policies.
+     * Existing tags will be replaced with new values.
+     * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 39; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ResourceManagerTags, com.google.container.v1beta1.ResourceManagerTags.Builder, com.google.container.v1beta1.ResourceManagerTagsOrBuilder> + getResourceManagerTagsFieldBuilder() { + if (resourceManagerTagsBuilder_ == null) { + resourceManagerTagsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.ResourceManagerTags, com.google.container.v1beta1.ResourceManagerTags.Builder, com.google.container.v1beta1.ResourceManagerTagsOrBuilder>( + getResourceManagerTags(), + getParentForChildren(), + isClean()); + resourceManagerTags_ = null; + } + return resourceManagerTagsBuilder_; + } + @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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequestOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequestOrBuilder.java new file mode 100644 index 000000000000..48b9e12c7d97 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequestOrBuilder.java @@ -0,0 +1,811 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3026 + * @return The projectId. + */ + @java.lang.Deprecated java.lang.String getProjectId(); + /** + *
+   * Required. Deprecated. The Google Developers Console [project ID or project
+   * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
+   * This field has been deprecated and replaced by the name field.
+   * 
+ * + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3026 + * @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]; + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3033 + * @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]; + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3033 + * @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]; + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3037 + * @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]; + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3037 + * @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]; + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3042 + * @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]; + * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=3042 + * @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. Please see
+   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+   * available image types.
+   * 
+ * + * 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. Please see
+   * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for
+   * available image types.
+   * 
+ * + * 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(); + + /** + *
+   * The desired network tags to be applied to all nodes in the node pool.
+   * If this field is not present, the tags will not be changed. Otherwise,
+   * the existing network tags will be *replaced* with the provided tags.
+   * 
+ * + * .google.container.v1beta1.NetworkTags tags = 16; + * @return Whether the tags field is set. + */ + boolean hasTags(); + /** + *
+   * The desired network tags to be applied to all nodes in the node pool.
+   * If this field is not present, the tags will not be changed. Otherwise,
+   * the existing network tags will be *replaced* with the provided tags.
+   * 
+ * + * .google.container.v1beta1.NetworkTags tags = 16; + * @return The tags. + */ + com.google.container.v1beta1.NetworkTags getTags(); + /** + *
+   * The desired network tags to be applied to all nodes in the node pool.
+   * If this field is not present, the tags will not be changed. Otherwise,
+   * the existing network tags will be *replaced* with the provided tags.
+   * 
+ * + * .google.container.v1beta1.NetworkTags tags = 16; + */ + com.google.container.v1beta1.NetworkTagsOrBuilder getTagsOrBuilder(); + + /** + *
+   * The desired node taints to be applied to all nodes in the node pool.
+   * If this field is not present, the taints will not be changed. Otherwise,
+   * the existing node taints will be *replaced* with the provided taints.
+   * 
+ * + * .google.container.v1beta1.NodeTaints taints = 17; + * @return Whether the taints field is set. + */ + boolean hasTaints(); + /** + *
+   * The desired node taints to be applied to all nodes in the node pool.
+   * If this field is not present, the taints will not be changed. Otherwise,
+   * the existing node taints will be *replaced* with the provided taints.
+   * 
+ * + * .google.container.v1beta1.NodeTaints taints = 17; + * @return The taints. + */ + com.google.container.v1beta1.NodeTaints getTaints(); + /** + *
+   * The desired node taints to be applied to all nodes in the node pool.
+   * If this field is not present, the taints will not be changed. Otherwise,
+   * the existing node taints will be *replaced* with the provided taints.
+   * 
+ * + * .google.container.v1beta1.NodeTaints taints = 17; + */ + com.google.container.v1beta1.NodeTaintsOrBuilder getTaintsOrBuilder(); + + /** + *
+   * The desired node labels to be applied to all nodes in the node pool.
+   * If this field is not present, the labels will not be changed. Otherwise,
+   * the existing node labels will be *replaced* with the provided labels.
+   * 
+ * + * .google.container.v1beta1.NodeLabels labels = 18; + * @return Whether the labels field is set. + */ + boolean hasLabels(); + /** + *
+   * The desired node labels to be applied to all nodes in the node pool.
+   * If this field is not present, the labels will not be changed. Otherwise,
+   * the existing node labels will be *replaced* with the provided labels.
+   * 
+ * + * .google.container.v1beta1.NodeLabels labels = 18; + * @return The labels. + */ + com.google.container.v1beta1.NodeLabels getLabels(); + /** + *
+   * The desired node labels to be applied to all nodes in the node pool.
+   * If this field is not present, the labels will not be changed. Otherwise,
+   * the existing node labels will be *replaced* with the provided labels.
+   * 
+ * + * .google.container.v1beta1.NodeLabels labels = 18; + */ + com.google.container.v1beta1.NodeLabelsOrBuilder getLabelsOrBuilder(); + + /** + *
+   * 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(); + + /** + *
+   * Node network config.
+   * 
+ * + * .google.container.v1beta1.NodeNetworkConfig node_network_config = 21; + * @return Whether the nodeNetworkConfig field is set. + */ + boolean hasNodeNetworkConfig(); + /** + *
+   * Node network config.
+   * 
+ * + * .google.container.v1beta1.NodeNetworkConfig node_network_config = 21; + * @return The nodeNetworkConfig. + */ + com.google.container.v1beta1.NodeNetworkConfig getNodeNetworkConfig(); + /** + *
+   * Node network config.
+   * 
+ * + * .google.container.v1beta1.NodeNetworkConfig node_network_config = 21; + */ + com.google.container.v1beta1.NodeNetworkConfigOrBuilder getNodeNetworkConfigOrBuilder(); + + /** + *
+   * GCFS config.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + * @return Whether the gcfsConfig field is set. + */ + boolean hasGcfsConfig(); + /** + *
+   * GCFS config.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + * @return The gcfsConfig. + */ + com.google.container.v1beta1.GcfsConfig getGcfsConfig(); + /** + *
+   * GCFS config.
+   * 
+ * + * .google.container.v1beta1.GcfsConfig gcfs_config = 22; + */ + com.google.container.v1beta1.GcfsConfigOrBuilder getGcfsConfigOrBuilder(); + + /** + *
+   * Confidential nodes config.
+   * All the nodes in the node pool will be Confidential VM once enabled.
+   * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 23; + * @return Whether the confidentialNodes field is set. + */ + boolean hasConfidentialNodes(); + /** + *
+   * Confidential nodes config.
+   * All the nodes in the node pool will be Confidential VM once enabled.
+   * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 23; + * @return The confidentialNodes. + */ + com.google.container.v1beta1.ConfidentialNodes getConfidentialNodes(); + /** + *
+   * Confidential nodes config.
+   * All the nodes in the node pool will be Confidential VM once enabled.
+   * 
+ * + * .google.container.v1beta1.ConfidentialNodes confidential_nodes = 23; + */ + com.google.container.v1beta1.ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder(); + + /** + *
+   * Enable or disable gvnic on the node pool.
+   * 
+ * + * .google.container.v1beta1.VirtualNIC gvnic = 29; + * @return Whether the gvnic field is set. + */ + boolean hasGvnic(); + /** + *
+   * Enable or disable gvnic on the node pool.
+   * 
+ * + * .google.container.v1beta1.VirtualNIC gvnic = 29; + * @return The gvnic. + */ + com.google.container.v1beta1.VirtualNIC getGvnic(); + /** + *
+   * Enable or disable gvnic on the node pool.
+   * 
+ * + * .google.container.v1beta1.VirtualNIC gvnic = 29; + */ + com.google.container.v1beta1.VirtualNICOrBuilder getGvnicOrBuilder(); + + /** + *
+   * The current etag of the node pool.
+   * If an etag is provided and does not match the current etag of the node
+   * pool, update will be blocked and an ABORTED error will be returned.
+   * 
+ * + * string etag = 30; + * @return The etag. + */ + java.lang.String getEtag(); + /** + *
+   * The current etag of the node pool.
+   * If an etag is provided and does not match the current etag of the node
+   * pool, update will be blocked and an ABORTED error will be returned.
+   * 
+ * + * string etag = 30; + * @return The bytes for etag. + */ + com.google.protobuf.ByteString + getEtagBytes(); + + /** + *
+   * Enable or disable NCCL fast socket for the node pool.
+   * 
+ * + * .google.container.v1beta1.FastSocket fast_socket = 31; + * @return Whether the fastSocket field is set. + */ + boolean hasFastSocket(); + /** + *
+   * Enable or disable NCCL fast socket for the node pool.
+   * 
+ * + * .google.container.v1beta1.FastSocket fast_socket = 31; + * @return The fastSocket. + */ + com.google.container.v1beta1.FastSocket getFastSocket(); + /** + *
+   * Enable or disable NCCL fast socket for the node pool.
+   * 
+ * + * .google.container.v1beta1.FastSocket fast_socket = 31; + */ + com.google.container.v1beta1.FastSocketOrBuilder getFastSocketOrBuilder(); + + /** + *
+   * Logging configuration.
+   * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 32; + * @return Whether the loggingConfig field is set. + */ + boolean hasLoggingConfig(); + /** + *
+   * Logging configuration.
+   * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 32; + * @return The loggingConfig. + */ + com.google.container.v1beta1.NodePoolLoggingConfig getLoggingConfig(); + /** + *
+   * Logging configuration.
+   * 
+ * + * .google.container.v1beta1.NodePoolLoggingConfig logging_config = 32; + */ + com.google.container.v1beta1.NodePoolLoggingConfigOrBuilder getLoggingConfigOrBuilder(); + + /** + *
+   * The resource labels for the node pool to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * .google.container.v1beta1.ResourceLabels resource_labels = 33; + * @return Whether the resourceLabels field is set. + */ + boolean hasResourceLabels(); + /** + *
+   * The resource labels for the node pool to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * .google.container.v1beta1.ResourceLabels resource_labels = 33; + * @return The resourceLabels. + */ + com.google.container.v1beta1.ResourceLabels getResourceLabels(); + /** + *
+   * The resource labels for the node pool to use to annotate any related
+   * Google Compute Engine resources.
+   * 
+ * + * .google.container.v1beta1.ResourceLabels resource_labels = 33; + */ + com.google.container.v1beta1.ResourceLabelsOrBuilder getResourceLabelsOrBuilder(); + + /** + *
+   * Parameters that can be configured on Windows nodes.
+   * 
+ * + * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 34; + * @return Whether the windowsNodeConfig field is set. + */ + boolean hasWindowsNodeConfig(); + /** + *
+   * Parameters that can be configured on Windows nodes.
+   * 
+ * + * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 34; + * @return The windowsNodeConfig. + */ + com.google.container.v1beta1.WindowsNodeConfig getWindowsNodeConfig(); + /** + *
+   * Parameters that can be configured on Windows nodes.
+   * 
+ * + * .google.container.v1beta1.WindowsNodeConfig windows_node_config = 34; + */ + com.google.container.v1beta1.WindowsNodeConfigOrBuilder getWindowsNodeConfigOrBuilder(); + + /** + *
+   * Optional. The desired machine type for nodes in the node pool.
+   * Initiates an upgrade operation that migrates the nodes in the
+   * node pool to the specified machine type.
+   * 
+ * + * string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; + * @return The machineType. + */ + java.lang.String getMachineType(); + /** + *
+   * Optional. The desired machine type for nodes in the node pool.
+   * Initiates an upgrade operation that migrates the nodes in the
+   * node pool to the specified machine type.
+   * 
+ * + * string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for machineType. + */ + com.google.protobuf.ByteString + getMachineTypeBytes(); + + /** + *
+   * Optional. The desired disk type for nodes in the node pool.
+   * Initiates an upgrade operation that migrates the nodes in the
+   * node pool to the specified disk type.
+   * 
+ * + * string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; + * @return The diskType. + */ + java.lang.String getDiskType(); + /** + *
+   * Optional. The desired disk type for nodes in the node pool.
+   * Initiates an upgrade operation that migrates the nodes in the
+   * node pool to the specified disk type.
+   * 
+ * + * string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for diskType. + */ + com.google.protobuf.ByteString + getDiskTypeBytes(); + + /** + *
+   * Optional. The desired disk size for nodes in the node pool.
+   * Initiates an upgrade operation that migrates the nodes in the
+   * node pool to the specified disk size.
+   * 
+ * + * int64 disk_size_gb = 38 [(.google.api.field_behavior) = OPTIONAL]; + * @return The diskSizeGb. + */ + long getDiskSizeGb(); + + /** + *
+   * Desired resource manager tag keys and values to be attached to the nodes
+   * for managing Compute Engine firewalls using Network Firewall Policies.
+   * Existing tags will be replaced with new values.
+   * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 39; + * @return Whether the resourceManagerTags field is set. + */ + boolean hasResourceManagerTags(); + /** + *
+   * Desired resource manager tag keys and values to be attached to the nodes
+   * for managing Compute Engine firewalls using Network Firewall Policies.
+   * Existing tags will be replaced with new values.
+   * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 39; + * @return The resourceManagerTags. + */ + com.google.container.v1beta1.ResourceManagerTags getResourceManagerTags(); + /** + *
+   * Desired resource manager tag keys and values to be attached to the nodes
+   * for managing Compute Engine firewalls using Network Firewall Policies.
+   * Existing tags will be replaced with new values.
+   * 
+ * + * .google.container.v1beta1.ResourceManagerTags resource_manager_tags = 39; + */ + com.google.container.v1beta1.ResourceManagerTagsOrBuilder getResourceManagerTagsOrBuilder(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeAvailableEvent.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeAvailableEvent.java new file mode 100644 index 000000000000..bdd35b1d1fbd --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeAvailableEvent.java @@ -0,0 +1,1359 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * UpgradeAvailableEvent is a notification sent to customers when a new
+ * available version is released.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.UpgradeAvailableEvent} + */ +public final class UpgradeAvailableEvent extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.UpgradeAvailableEvent) + UpgradeAvailableEventOrBuilder { +private static final long serialVersionUID = 0L; + // Use UpgradeAvailableEvent.newBuilder() to construct. + private UpgradeAvailableEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpgradeAvailableEvent() { + version_ = ""; + resourceType_ = 0; + resource_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UpgradeAvailableEvent(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UpgradeAvailableEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UpgradeAvailableEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.UpgradeAvailableEvent.class, com.google.container.v1beta1.UpgradeAvailableEvent.Builder.class); + } + + private int bitField0_; + public static final int VERSION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; + /** + *
+   * The release version available for upgrade.
+   * 
+ * + * string version = 1; + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + *
+   * The release version available for upgrade.
+   * 
+ * + * string version = 1; + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 2; + private int resourceType_ = 0; + /** + *
+   * The resource type of the release version.
+   * 
+ * + * .google.container.v1beta1.UpgradeResourceType resource_type = 2; + * @return The enum numeric value on the wire for resourceType. + */ + @java.lang.Override public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+   * The resource type of the release version.
+   * 
+ * + * .google.container.v1beta1.UpgradeResourceType resource_type = 2; + * @return The resourceType. + */ + @java.lang.Override public com.google.container.v1beta1.UpgradeResourceType getResourceType() { + com.google.container.v1beta1.UpgradeResourceType result = com.google.container.v1beta1.UpgradeResourceType.forNumber(resourceType_); + return result == null ? com.google.container.v1beta1.UpgradeResourceType.UNRECOGNIZED : result; + } + + public static final int RELEASE_CHANNEL_FIELD_NUMBER = 3; + private com.google.container.v1beta1.ReleaseChannel releaseChannel_; + /** + *
+   * The release channel of the version. If empty, it means a non-channel
+   * release.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 3; + * @return Whether the releaseChannel field is set. + */ + @java.lang.Override + public boolean hasReleaseChannel() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * The release channel of the version. If empty, it means a non-channel
+   * release.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 3; + * @return The releaseChannel. + */ + @java.lang.Override + public com.google.container.v1beta1.ReleaseChannel getReleaseChannel() { + return releaseChannel_ == null ? com.google.container.v1beta1.ReleaseChannel.getDefaultInstance() : releaseChannel_; + } + /** + *
+   * The release channel of the version. If empty, it means a non-channel
+   * release.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 3; + */ + @java.lang.Override + public com.google.container.v1beta1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder() { + return releaseChannel_ == null ? com.google.container.v1beta1.ReleaseChannel.getDefaultInstance() : releaseChannel_; + } + + public static final int RESOURCE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object resource_ = ""; + /** + *
+   * Optional relative path to the resource. For example, the relative path of
+   * the node pool.
+   * 
+ * + * string resource = 4; + * @return The resource. + */ + @java.lang.Override + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } + } + /** + *
+   * Optional relative path to the resource. For example, the relative path of
+   * the node pool.
+   * 
+ * + * string resource = 4; + * @return The bytes for resource. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WINDOWS_VERSIONS_FIELD_NUMBER = 5; + private com.google.container.v1beta1.WindowsVersions windowsVersions_; + /** + *
+   * Windows node versions info.
+   * 
+ * + * .google.container.v1beta1.WindowsVersions windows_versions = 5; + * @return Whether the windowsVersions field is set. + */ + @java.lang.Override + public boolean hasWindowsVersions() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * Windows node versions info.
+   * 
+ * + * .google.container.v1beta1.WindowsVersions windows_versions = 5; + * @return The windowsVersions. + */ + @java.lang.Override + public com.google.container.v1beta1.WindowsVersions getWindowsVersions() { + return windowsVersions_ == null ? com.google.container.v1beta1.WindowsVersions.getDefaultInstance() : windowsVersions_; + } + /** + *
+   * Windows node versions info.
+   * 
+ * + * .google.container.v1beta1.WindowsVersions windows_versions = 5; + */ + @java.lang.Override + public com.google.container.v1beta1.WindowsVersionsOrBuilder getWindowsVersionsOrBuilder() { + return windowsVersions_ == null ? com.google.container.v1beta1.WindowsVersions.getDefaultInstance() : windowsVersions_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); + } + if (resourceType_ != com.google.container.v1beta1.UpgradeResourceType.UPGRADE_RESOURCE_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, resourceType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getReleaseChannel()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, resource_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getWindowsVersions()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); + } + if (resourceType_ != com.google.container.v1beta1.UpgradeResourceType.UPGRADE_RESOURCE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, resourceType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getReleaseChannel()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, resource_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getWindowsVersions()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.UpgradeAvailableEvent)) { + return super.equals(obj); + } + com.google.container.v1beta1.UpgradeAvailableEvent other = (com.google.container.v1beta1.UpgradeAvailableEvent) obj; + + if (!getVersion() + .equals(other.getVersion())) return false; + if (resourceType_ != other.resourceType_) return false; + if (hasReleaseChannel() != other.hasReleaseChannel()) return false; + if (hasReleaseChannel()) { + if (!getReleaseChannel() + .equals(other.getReleaseChannel())) return false; + } + if (!getResource() + .equals(other.getResource())) return false; + if (hasWindowsVersions() != other.hasWindowsVersions()) return false; + if (hasWindowsVersions()) { + if (!getWindowsVersions() + .equals(other.getWindowsVersions())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + if (hasReleaseChannel()) { + hash = (37 * hash) + RELEASE_CHANNEL_FIELD_NUMBER; + hash = (53 * hash) + getReleaseChannel().hashCode(); + } + hash = (37 * hash) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + if (hasWindowsVersions()) { + hash = (37 * hash) + WINDOWS_VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getWindowsVersions().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.UpgradeAvailableEvent parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.UpgradeAvailableEvent parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.UpgradeAvailableEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.UpgradeAvailableEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.UpgradeAvailableEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.UpgradeAvailableEvent parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.UpgradeAvailableEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.UpgradeAvailableEvent parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.UpgradeAvailableEvent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.UpgradeAvailableEvent parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.UpgradeAvailableEvent parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.UpgradeAvailableEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.UpgradeAvailableEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * UpgradeAvailableEvent is a notification sent to customers when a new
+   * available version is released.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.UpgradeAvailableEvent} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.UpgradeAvailableEvent) + com.google.container.v1beta1.UpgradeAvailableEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UpgradeAvailableEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UpgradeAvailableEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.UpgradeAvailableEvent.class, com.google.container.v1beta1.UpgradeAvailableEvent.Builder.class); + } + + // Construct using com.google.container.v1beta1.UpgradeAvailableEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getReleaseChannelFieldBuilder(); + getWindowsVersionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + version_ = ""; + resourceType_ = 0; + releaseChannel_ = null; + if (releaseChannelBuilder_ != null) { + releaseChannelBuilder_.dispose(); + releaseChannelBuilder_ = null; + } + resource_ = ""; + windowsVersions_ = null; + if (windowsVersionsBuilder_ != null) { + windowsVersionsBuilder_.dispose(); + windowsVersionsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_UpgradeAvailableEvent_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.UpgradeAvailableEvent getDefaultInstanceForType() { + return com.google.container.v1beta1.UpgradeAvailableEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.UpgradeAvailableEvent build() { + com.google.container.v1beta1.UpgradeAvailableEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.UpgradeAvailableEvent buildPartial() { + com.google.container.v1beta1.UpgradeAvailableEvent result = new com.google.container.v1beta1.UpgradeAvailableEvent(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.UpgradeAvailableEvent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.version_ = version_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.resourceType_ = resourceType_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.releaseChannel_ = releaseChannelBuilder_ == null + ? releaseChannel_ + : releaseChannelBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.resource_ = resource_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.windowsVersions_ = windowsVersionsBuilder_ == null + ? windowsVersions_ + : windowsVersionsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @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.UpgradeAvailableEvent) { + return mergeFrom((com.google.container.v1beta1.UpgradeAvailableEvent)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.UpgradeAvailableEvent other) { + if (other == com.google.container.v1beta1.UpgradeAvailableEvent.getDefaultInstance()) return this; + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + if (other.hasReleaseChannel()) { + mergeReleaseChannel(other.getReleaseChannel()); + } + if (!other.getResource().isEmpty()) { + resource_ = other.resource_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasWindowsVersions()) { + mergeWindowsVersions(other.getWindowsVersions()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + version_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + resourceType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + input.readMessage( + getReleaseChannelFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getWindowsVersionsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object version_ = ""; + /** + *
+     * The release version available for upgrade.
+     * 
+ * + * string version = 1; + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The release version available for upgrade.
+     * 
+ * + * string version = 1; + * @return The bytes for version. + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The release version available for upgrade.
+     * 
+ * + * string version = 1; + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + version_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The release version available for upgrade.
+     * 
+ * + * string version = 1; + * @return This builder for chaining. + */ + public Builder clearVersion() { + version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * The release version available for upgrade.
+     * 
+ * + * string version = 1; + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + version_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int resourceType_ = 0; + /** + *
+     * The resource type of the release version.
+     * 
+ * + * .google.container.v1beta1.UpgradeResourceType resource_type = 2; + * @return The enum numeric value on the wire for resourceType. + */ + @java.lang.Override public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+     * The resource type of the release version.
+     * 
+ * + * .google.container.v1beta1.UpgradeResourceType resource_type = 2; + * @param value The enum numeric value on the wire for resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The resource type of the release version.
+     * 
+ * + * .google.container.v1beta1.UpgradeResourceType resource_type = 2; + * @return The resourceType. + */ + @java.lang.Override + public com.google.container.v1beta1.UpgradeResourceType getResourceType() { + com.google.container.v1beta1.UpgradeResourceType result = com.google.container.v1beta1.UpgradeResourceType.forNumber(resourceType_); + return result == null ? com.google.container.v1beta1.UpgradeResourceType.UNRECOGNIZED : result; + } + /** + *
+     * The resource type of the release version.
+     * 
+ * + * .google.container.v1beta1.UpgradeResourceType resource_type = 2; + * @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(); + } + bitField0_ |= 0x00000002; + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The resource type of the release version.
+     * 
+ * + * .google.container.v1beta1.UpgradeResourceType resource_type = 2; + * @return This builder for chaining. + */ + public Builder clearResourceType() { + bitField0_ = (bitField0_ & ~0x00000002); + resourceType_ = 0; + onChanged(); + return this; + } + + 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_; + /** + *
+     * The release channel of the version. If empty, it means a non-channel
+     * release.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 3; + * @return Whether the releaseChannel field is set. + */ + public boolean hasReleaseChannel() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * The release channel of the version. If empty, it means a non-channel
+     * release.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 3; + * @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(); + } + } + /** + *
+     * The release channel of the version. If empty, it means a non-channel
+     * release.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 3; + */ + public Builder setReleaseChannel(com.google.container.v1beta1.ReleaseChannel value) { + if (releaseChannelBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + releaseChannel_ = value; + } else { + releaseChannelBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The release channel of the version. If empty, it means a non-channel
+     * release.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 3; + */ + public Builder setReleaseChannel( + com.google.container.v1beta1.ReleaseChannel.Builder builderForValue) { + if (releaseChannelBuilder_ == null) { + releaseChannel_ = builderForValue.build(); + } else { + releaseChannelBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The release channel of the version. If empty, it means a non-channel
+     * release.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 3; + */ + public Builder mergeReleaseChannel(com.google.container.v1beta1.ReleaseChannel value) { + if (releaseChannelBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + releaseChannel_ != null && + releaseChannel_ != com.google.container.v1beta1.ReleaseChannel.getDefaultInstance()) { + getReleaseChannelBuilder().mergeFrom(value); + } else { + releaseChannel_ = value; + } + } else { + releaseChannelBuilder_.mergeFrom(value); + } + if (releaseChannel_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+     * The release channel of the version. If empty, it means a non-channel
+     * release.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 3; + */ + public Builder clearReleaseChannel() { + bitField0_ = (bitField0_ & ~0x00000004); + releaseChannel_ = null; + if (releaseChannelBuilder_ != null) { + releaseChannelBuilder_.dispose(); + releaseChannelBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The release channel of the version. If empty, it means a non-channel
+     * release.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 3; + */ + public com.google.container.v1beta1.ReleaseChannel.Builder getReleaseChannelBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getReleaseChannelFieldBuilder().getBuilder(); + } + /** + *
+     * The release channel of the version. If empty, it means a non-channel
+     * release.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 3; + */ + public com.google.container.v1beta1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder() { + if (releaseChannelBuilder_ != null) { + return releaseChannelBuilder_.getMessageOrBuilder(); + } else { + return releaseChannel_ == null ? + com.google.container.v1beta1.ReleaseChannel.getDefaultInstance() : releaseChannel_; + } + } + /** + *
+     * The release channel of the version. If empty, it means a non-channel
+     * release.
+     * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 3; + */ + 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 java.lang.Object resource_ = ""; + /** + *
+     * Optional relative path to the resource. For example, the relative path of
+     * the node pool.
+     * 
+ * + * string resource = 4; + * @return The resource. + */ + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional relative path to the resource. For example, the relative path of
+     * the node pool.
+     * 
+ * + * string resource = 4; + * @return The bytes for resource. + */ + public com.google.protobuf.ByteString + getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional relative path to the resource. For example, the relative path of
+     * the node pool.
+     * 
+ * + * string resource = 4; + * @param value The resource to set. + * @return This builder for chaining. + */ + public Builder setResource( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + resource_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Optional relative path to the resource. For example, the relative path of
+     * the node pool.
+     * 
+ * + * string resource = 4; + * @return This builder for chaining. + */ + public Builder clearResource() { + resource_ = getDefaultInstance().getResource(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * Optional relative path to the resource. For example, the relative path of
+     * the node pool.
+     * 
+ * + * string resource = 4; + * @param value The bytes for resource to set. + * @return This builder for chaining. + */ + public Builder setResourceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + resource_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.container.v1beta1.WindowsVersions windowsVersions_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WindowsVersions, com.google.container.v1beta1.WindowsVersions.Builder, com.google.container.v1beta1.WindowsVersionsOrBuilder> windowsVersionsBuilder_; + /** + *
+     * Windows node versions info.
+     * 
+ * + * .google.container.v1beta1.WindowsVersions windows_versions = 5; + * @return Whether the windowsVersions field is set. + */ + public boolean hasWindowsVersions() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+     * Windows node versions info.
+     * 
+ * + * .google.container.v1beta1.WindowsVersions windows_versions = 5; + * @return The windowsVersions. + */ + public com.google.container.v1beta1.WindowsVersions getWindowsVersions() { + if (windowsVersionsBuilder_ == null) { + return windowsVersions_ == null ? com.google.container.v1beta1.WindowsVersions.getDefaultInstance() : windowsVersions_; + } else { + return windowsVersionsBuilder_.getMessage(); + } + } + /** + *
+     * Windows node versions info.
+     * 
+ * + * .google.container.v1beta1.WindowsVersions windows_versions = 5; + */ + public Builder setWindowsVersions(com.google.container.v1beta1.WindowsVersions value) { + if (windowsVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + windowsVersions_ = value; + } else { + windowsVersionsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Windows node versions info.
+     * 
+ * + * .google.container.v1beta1.WindowsVersions windows_versions = 5; + */ + public Builder setWindowsVersions( + com.google.container.v1beta1.WindowsVersions.Builder builderForValue) { + if (windowsVersionsBuilder_ == null) { + windowsVersions_ = builderForValue.build(); + } else { + windowsVersionsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Windows node versions info.
+     * 
+ * + * .google.container.v1beta1.WindowsVersions windows_versions = 5; + */ + public Builder mergeWindowsVersions(com.google.container.v1beta1.WindowsVersions value) { + if (windowsVersionsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + windowsVersions_ != null && + windowsVersions_ != com.google.container.v1beta1.WindowsVersions.getDefaultInstance()) { + getWindowsVersionsBuilder().mergeFrom(value); + } else { + windowsVersions_ = value; + } + } else { + windowsVersionsBuilder_.mergeFrom(value); + } + if (windowsVersions_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + *
+     * Windows node versions info.
+     * 
+ * + * .google.container.v1beta1.WindowsVersions windows_versions = 5; + */ + public Builder clearWindowsVersions() { + bitField0_ = (bitField0_ & ~0x00000010); + windowsVersions_ = null; + if (windowsVersionsBuilder_ != null) { + windowsVersionsBuilder_.dispose(); + windowsVersionsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Windows node versions info.
+     * 
+ * + * .google.container.v1beta1.WindowsVersions windows_versions = 5; + */ + public com.google.container.v1beta1.WindowsVersions.Builder getWindowsVersionsBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getWindowsVersionsFieldBuilder().getBuilder(); + } + /** + *
+     * Windows node versions info.
+     * 
+ * + * .google.container.v1beta1.WindowsVersions windows_versions = 5; + */ + public com.google.container.v1beta1.WindowsVersionsOrBuilder getWindowsVersionsOrBuilder() { + if (windowsVersionsBuilder_ != null) { + return windowsVersionsBuilder_.getMessageOrBuilder(); + } else { + return windowsVersions_ == null ? + com.google.container.v1beta1.WindowsVersions.getDefaultInstance() : windowsVersions_; + } + } + /** + *
+     * Windows node versions info.
+     * 
+ * + * .google.container.v1beta1.WindowsVersions windows_versions = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WindowsVersions, com.google.container.v1beta1.WindowsVersions.Builder, com.google.container.v1beta1.WindowsVersionsOrBuilder> + getWindowsVersionsFieldBuilder() { + if (windowsVersionsBuilder_ == null) { + windowsVersionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.WindowsVersions, com.google.container.v1beta1.WindowsVersions.Builder, com.google.container.v1beta1.WindowsVersionsOrBuilder>( + getWindowsVersions(), + getParentForChildren(), + isClean()); + windowsVersions_ = null; + } + return windowsVersionsBuilder_; + } + @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.UpgradeAvailableEvent) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.UpgradeAvailableEvent) + private static final com.google.container.v1beta1.UpgradeAvailableEvent DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.UpgradeAvailableEvent(); + } + + public static com.google.container.v1beta1.UpgradeAvailableEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpgradeAvailableEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.UpgradeAvailableEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeAvailableEventOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeAvailableEventOrBuilder.java new file mode 100644 index 000000000000..4d8bf0516d1e --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeAvailableEventOrBuilder.java @@ -0,0 +1,128 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface UpgradeAvailableEventOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.UpgradeAvailableEvent) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The release version available for upgrade.
+   * 
+ * + * string version = 1; + * @return The version. + */ + java.lang.String getVersion(); + /** + *
+   * The release version available for upgrade.
+   * 
+ * + * string version = 1; + * @return The bytes for version. + */ + com.google.protobuf.ByteString + getVersionBytes(); + + /** + *
+   * The resource type of the release version.
+   * 
+ * + * .google.container.v1beta1.UpgradeResourceType resource_type = 2; + * @return The enum numeric value on the wire for resourceType. + */ + int getResourceTypeValue(); + /** + *
+   * The resource type of the release version.
+   * 
+ * + * .google.container.v1beta1.UpgradeResourceType resource_type = 2; + * @return The resourceType. + */ + com.google.container.v1beta1.UpgradeResourceType getResourceType(); + + /** + *
+   * The release channel of the version. If empty, it means a non-channel
+   * release.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 3; + * @return Whether the releaseChannel field is set. + */ + boolean hasReleaseChannel(); + /** + *
+   * The release channel of the version. If empty, it means a non-channel
+   * release.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 3; + * @return The releaseChannel. + */ + com.google.container.v1beta1.ReleaseChannel getReleaseChannel(); + /** + *
+   * The release channel of the version. If empty, it means a non-channel
+   * release.
+   * 
+ * + * .google.container.v1beta1.ReleaseChannel release_channel = 3; + */ + com.google.container.v1beta1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder(); + + /** + *
+   * Optional relative path to the resource. For example, the relative path of
+   * the node pool.
+   * 
+ * + * string resource = 4; + * @return The resource. + */ + java.lang.String getResource(); + /** + *
+   * Optional relative path to the resource. For example, the relative path of
+   * the node pool.
+   * 
+ * + * string resource = 4; + * @return The bytes for resource. + */ + com.google.protobuf.ByteString + getResourceBytes(); + + /** + *
+   * Windows node versions info.
+   * 
+ * + * .google.container.v1beta1.WindowsVersions windows_versions = 5; + * @return Whether the windowsVersions field is set. + */ + boolean hasWindowsVersions(); + /** + *
+   * Windows node versions info.
+   * 
+ * + * .google.container.v1beta1.WindowsVersions windows_versions = 5; + * @return The windowsVersions. + */ + com.google.container.v1beta1.WindowsVersions getWindowsVersions(); + /** + *
+   * Windows node versions info.
+   * 
+ * + * .google.container.v1beta1.WindowsVersions windows_versions = 5; + */ + com.google.container.v1beta1.WindowsVersionsOrBuilder getWindowsVersionsOrBuilder(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeEvent.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeEvent.java new file mode 100644 index 000000000000..a1b1a753cf54 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeEvent.java @@ -0,0 +1,1442 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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); + } + + private int bitField0_; + public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; + private int resourceType_ = 0; + /** + *
+   * The resource type that is upgrading.
+   * 
+ * + * .google.container.v1beta1.UpgradeResourceType resource_type = 1; + * @return The enum numeric value on the wire for resourceType. + */ + @java.lang.Override public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+   * The resource type that is upgrading.
+   * 
+ * + * .google.container.v1beta1.UpgradeResourceType resource_type = 1; + * @return The resourceType. + */ + @java.lang.Override public com.google.container.v1beta1.UpgradeResourceType getResourceType() { + com.google.container.v1beta1.UpgradeResourceType result = com.google.container.v1beta1.UpgradeResourceType.forNumber(resourceType_); + return result == null ? com.google.container.v1beta1.UpgradeResourceType.UNRECOGNIZED : result; + } + + public static final int OPERATION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object operation_ = ""; + /** + *
+   * The operation associated with this upgrade.
+   * 
+ * + * string operation = 2; + * @return The operation. + */ + @java.lang.Override + public java.lang.String getOperation() { + java.lang.Object ref = operation_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operation_ = s; + return s; + } + } + /** + *
+   * The operation associated with this upgrade.
+   * 
+ * + * string operation = 2; + * @return The bytes for operation. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOperationBytes() { + java.lang.Object ref = operation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + operation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPERATION_START_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp operationStartTime_; + /** + *
+   * The time when the operation was started.
+   * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + * @return Whether the operationStartTime field is set. + */ + @java.lang.Override + public boolean hasOperationStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * The time when the operation was started.
+   * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + * @return The operationStartTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getOperationStartTime() { + return operationStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : operationStartTime_; + } + /** + *
+   * The time when the operation was started.
+   * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getOperationStartTimeOrBuilder() { + return operationStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : operationStartTime_; + } + + public static final int CURRENT_VERSION_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object currentVersion_ = ""; + /** + *
+   * The current version before the upgrade.
+   * 
+ * + * string current_version = 4; + * @return The currentVersion. + */ + @java.lang.Override + public java.lang.String getCurrentVersion() { + java.lang.Object ref = currentVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentVersion_ = s; + return s; + } + } + /** + *
+   * The current version before the upgrade.
+   * 
+ * + * string current_version = 4; + * @return The bytes for currentVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCurrentVersionBytes() { + java.lang.Object ref = currentVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + currentVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_VERSION_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object targetVersion_ = ""; + /** + *
+   * The target version for the upgrade.
+   * 
+ * + * string target_version = 5; + * @return The targetVersion. + */ + @java.lang.Override + public java.lang.String getTargetVersion() { + java.lang.Object ref = targetVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetVersion_ = s; + return s; + } + } + /** + *
+   * The target version for the upgrade.
+   * 
+ * + * string target_version = 5; + * @return The bytes for targetVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTargetVersionBytes() { + java.lang.Object ref = targetVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + targetVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object resource_ = ""; + /** + *
+   * Optional relative path to the resource. For example in node pool upgrades,
+   * the relative path of the node pool.
+   * 
+ * + * string resource = 6; + * @return The resource. + */ + @java.lang.Override + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } + } + /** + *
+   * Optional relative path to the resource. For example in node pool upgrades,
+   * the relative path of the node pool.
+   * 
+ * + * string resource = 6; + * @return The bytes for resource. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (resourceType_ != com.google.container.v1beta1.UpgradeResourceType.UPGRADE_RESOURCE_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, resourceType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, operation_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getOperationStartTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, currentVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, targetVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, resource_); + } + getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, operation_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getOperationStartTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currentVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, currentVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, targetVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, resource_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { + getOperationStartTimeFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + resourceType_ = 0; + operation_ = ""; + operationStartTime_ = null; + if (operationStartTimeBuilder_ != null) { + operationStartTimeBuilder_.dispose(); + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.UpgradeEvent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.resourceType_ = resourceType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.operation_ = operation_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.operationStartTime_ = operationStartTimeBuilder_ == null + ? operationStartTime_ + : operationStartTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.currentVersion_ = currentVersion_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.targetVersion_ = targetVersion_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.resource_ = resource_; + } + result.bitField0_ |= to_bitField0_; + } + + @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_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasOperationStartTime()) { + mergeOperationStartTime(other.getOperationStartTime()); + } + if (!other.getCurrentVersion().isEmpty()) { + currentVersion_ = other.currentVersion_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getTargetVersion().isEmpty()) { + targetVersion_ = other.targetVersion_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getResource().isEmpty()) { + resource_ = other.resource_; + bitField0_ |= 0x00000020; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + resourceType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + operation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getOperationStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + currentVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + targetVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int resourceType_ = 0; + /** + *
+     * The resource type that is upgrading.
+     * 
+ * + * .google.container.v1beta1.UpgradeResourceType resource_type = 1; + * @return The enum numeric value on the wire for resourceType. + */ + @java.lang.Override public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+     * The resource type that is upgrading.
+     * 
+ * + * .google.container.v1beta1.UpgradeResourceType resource_type = 1; + * @param value The enum numeric value on the wire for resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The resource type that is upgrading.
+     * 
+ * + * .google.container.v1beta1.UpgradeResourceType resource_type = 1; + * @return The resourceType. + */ + @java.lang.Override + public com.google.container.v1beta1.UpgradeResourceType getResourceType() { + com.google.container.v1beta1.UpgradeResourceType result = com.google.container.v1beta1.UpgradeResourceType.forNumber(resourceType_); + return result == null ? com.google.container.v1beta1.UpgradeResourceType.UNRECOGNIZED : result; + } + /** + *
+     * The resource type that is upgrading.
+     * 
+ * + * .google.container.v1beta1.UpgradeResourceType resource_type = 1; + * @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(); + } + bitField0_ |= 0x00000001; + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The resource type that is upgrading.
+     * 
+ * + * .google.container.v1beta1.UpgradeResourceType resource_type = 1; + * @return This builder for chaining. + */ + public Builder clearResourceType() { + bitField0_ = (bitField0_ & ~0x00000001); + resourceType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object operation_ = ""; + /** + *
+     * The operation associated with this upgrade.
+     * 
+ * + * string operation = 2; + * @return The operation. + */ + public java.lang.String getOperation() { + java.lang.Object ref = operation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The operation associated with this upgrade.
+     * 
+ * + * string operation = 2; + * @return The bytes for operation. + */ + public com.google.protobuf.ByteString + getOperationBytes() { + java.lang.Object ref = operation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + operation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The operation associated with this upgrade.
+     * 
+ * + * string operation = 2; + * @param value The operation to set. + * @return This builder for chaining. + */ + public Builder setOperation( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + operation_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The operation associated with this upgrade.
+     * 
+ * + * string operation = 2; + * @return This builder for chaining. + */ + public Builder clearOperation() { + operation_ = getDefaultInstance().getOperation(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * The operation associated with this upgrade.
+     * 
+ * + * string operation = 2; + * @param value The bytes for operation to set. + * @return This builder for chaining. + */ + public Builder setOperationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + operation_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp operationStartTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> operationStartTimeBuilder_; + /** + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + * @return Whether the operationStartTime field is set. + */ + public boolean hasOperationStartTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + * @return The operationStartTime. + */ + public com.google.protobuf.Timestamp getOperationStartTime() { + if (operationStartTimeBuilder_ == null) { + return operationStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : operationStartTime_; + } else { + return operationStartTimeBuilder_.getMessage(); + } + } + /** + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + public Builder setOperationStartTime(com.google.protobuf.Timestamp value) { + if (operationStartTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + operationStartTime_ = value; + } else { + operationStartTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + public Builder setOperationStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (operationStartTimeBuilder_ == null) { + operationStartTime_ = builderForValue.build(); + } else { + operationStartTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + public Builder mergeOperationStartTime(com.google.protobuf.Timestamp value) { + if (operationStartTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + operationStartTime_ != null && + operationStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getOperationStartTimeBuilder().mergeFrom(value); + } else { + operationStartTime_ = value; + } + } else { + operationStartTimeBuilder_.mergeFrom(value); + } + if (operationStartTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + public Builder clearOperationStartTime() { + bitField0_ = (bitField0_ & ~0x00000004); + operationStartTime_ = null; + if (operationStartTimeBuilder_ != null) { + operationStartTimeBuilder_.dispose(); + operationStartTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + public com.google.protobuf.Timestamp.Builder getOperationStartTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getOperationStartTimeFieldBuilder().getBuilder(); + } + /** + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getOperationStartTimeOrBuilder() { + if (operationStartTimeBuilder_ != null) { + return operationStartTimeBuilder_.getMessageOrBuilder(); + } else { + return operationStartTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : operationStartTime_; + } + } + /** + *
+     * The time when the operation was started.
+     * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getOperationStartTimeFieldBuilder() { + if (operationStartTimeBuilder_ == null) { + operationStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getOperationStartTime(), + getParentForChildren(), + isClean()); + operationStartTime_ = null; + } + return operationStartTimeBuilder_; + } + + private java.lang.Object currentVersion_ = ""; + /** + *
+     * The current version before the upgrade.
+     * 
+ * + * string current_version = 4; + * @return The currentVersion. + */ + public java.lang.String getCurrentVersion() { + java.lang.Object ref = currentVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The current version before the upgrade.
+     * 
+ * + * string current_version = 4; + * @return The bytes for currentVersion. + */ + public com.google.protobuf.ByteString + getCurrentVersionBytes() { + java.lang.Object ref = currentVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + currentVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The current version before the upgrade.
+     * 
+ * + * string current_version = 4; + * @param value The currentVersion to set. + * @return This builder for chaining. + */ + public Builder setCurrentVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + currentVersion_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The current version before the upgrade.
+     * 
+ * + * string current_version = 4; + * @return This builder for chaining. + */ + public Builder clearCurrentVersion() { + currentVersion_ = getDefaultInstance().getCurrentVersion(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * The current version before the upgrade.
+     * 
+ * + * string current_version = 4; + * @param value The bytes for currentVersion to set. + * @return This builder for chaining. + */ + public Builder setCurrentVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + currentVersion_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object targetVersion_ = ""; + /** + *
+     * The target version for the upgrade.
+     * 
+ * + * string target_version = 5; + * @return The targetVersion. + */ + public java.lang.String getTargetVersion() { + java.lang.Object ref = targetVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The target version for the upgrade.
+     * 
+ * + * string target_version = 5; + * @return The bytes for targetVersion. + */ + public com.google.protobuf.ByteString + getTargetVersionBytes() { + java.lang.Object ref = targetVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + targetVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The target version for the upgrade.
+     * 
+ * + * string target_version = 5; + * @param value The targetVersion to set. + * @return This builder for chaining. + */ + public Builder setTargetVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + targetVersion_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * The target version for the upgrade.
+     * 
+ * + * string target_version = 5; + * @return This builder for chaining. + */ + public Builder clearTargetVersion() { + targetVersion_ = getDefaultInstance().getTargetVersion(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+     * The target version for the upgrade.
+     * 
+ * + * string target_version = 5; + * @param value The bytes for targetVersion to set. + * @return This builder for chaining. + */ + public Builder setTargetVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + targetVersion_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object resource_ = ""; + /** + *
+     * Optional relative path to the resource. For example in node pool upgrades,
+     * the relative path of the node pool.
+     * 
+ * + * string resource = 6; + * @return The resource. + */ + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional relative path to the resource. For example in node pool upgrades,
+     * the relative path of the node pool.
+     * 
+ * + * string resource = 6; + * @return The bytes for resource. + */ + public com.google.protobuf.ByteString + getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional relative path to the resource. For example in node pool upgrades,
+     * the relative path of the node pool.
+     * 
+ * + * string resource = 6; + * @param value The resource to set. + * @return This builder for chaining. + */ + public Builder setResource( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + resource_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Optional relative path to the resource. For example in node pool upgrades,
+     * the relative path of the node pool.
+     * 
+ * + * string resource = 6; + * @return This builder for chaining. + */ + public Builder clearResource() { + resource_ = getDefaultInstance().getResource(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + *
+     * Optional relative path to the resource. For example in node pool upgrades,
+     * the relative path of the node pool.
+     * 
+ * + * string resource = 6; + * @param value The bytes for resource to set. + * @return This builder for chaining. + */ + public Builder setResourceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + resource_ = value; + bitField0_ |= 0x00000020; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeEventOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeEventOrBuilder.java new file mode 100644 index 000000000000..b1cb5193b34e --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeEventOrBuilder.java @@ -0,0 +1,138 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface UpgradeEventOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.UpgradeEvent) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The resource type that is upgrading.
+   * 
+ * + * .google.container.v1beta1.UpgradeResourceType resource_type = 1; + * @return The enum numeric value on the wire for resourceType. + */ + int getResourceTypeValue(); + /** + *
+   * The resource type that is upgrading.
+   * 
+ * + * .google.container.v1beta1.UpgradeResourceType resource_type = 1; + * @return The resourceType. + */ + com.google.container.v1beta1.UpgradeResourceType getResourceType(); + + /** + *
+   * The operation associated with this upgrade.
+   * 
+ * + * string operation = 2; + * @return The operation. + */ + java.lang.String getOperation(); + /** + *
+   * The operation associated with this upgrade.
+   * 
+ * + * string operation = 2; + * @return The bytes for operation. + */ + com.google.protobuf.ByteString + getOperationBytes(); + + /** + *
+   * The time when the operation was started.
+   * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + * @return Whether the operationStartTime field is set. + */ + boolean hasOperationStartTime(); + /** + *
+   * The time when the operation was started.
+   * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + * @return The operationStartTime. + */ + com.google.protobuf.Timestamp getOperationStartTime(); + /** + *
+   * The time when the operation was started.
+   * 
+ * + * .google.protobuf.Timestamp operation_start_time = 3; + */ + com.google.protobuf.TimestampOrBuilder getOperationStartTimeOrBuilder(); + + /** + *
+   * The current version before the upgrade.
+   * 
+ * + * string current_version = 4; + * @return The currentVersion. + */ + java.lang.String getCurrentVersion(); + /** + *
+   * The current version before the upgrade.
+   * 
+ * + * string current_version = 4; + * @return The bytes for currentVersion. + */ + com.google.protobuf.ByteString + getCurrentVersionBytes(); + + /** + *
+   * The target version for the upgrade.
+   * 
+ * + * string target_version = 5; + * @return The targetVersion. + */ + java.lang.String getTargetVersion(); + /** + *
+   * The target version for the upgrade.
+   * 
+ * + * string target_version = 5; + * @return The bytes for targetVersion. + */ + com.google.protobuf.ByteString + getTargetVersionBytes(); + + /** + *
+   * Optional relative path to the resource. For example in node pool upgrades,
+   * the relative path of the node pool.
+   * 
+ * + * string resource = 6; + * @return The resource. + */ + java.lang.String getResource(); + /** + *
+   * Optional relative path to the resource. For example in node pool upgrades,
+   * the relative path of the node pool.
+   * 
+ * + * string resource = 6; + * @return The bytes for resource. + */ + com.google.protobuf.ByteString + getResourceBytes(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeResourceType.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeResourceType.java new file mode 100644 index 000000000000..6040d1575192 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpgradeResourceType.java @@ -0,0 +1,152 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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< + UpgradeResourceType> 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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetwork.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetwork.java new file mode 100644 index 000000000000..46668b32f3a4 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetwork.java @@ -0,0 +1,1553 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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 + 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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subnetwork_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipCidrRange_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ipCidrRange_); + } + for (int i = 0; i < secondaryIpRanges_.size(); i++) { + output.writeMessage(4, secondaryIpRanges_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusMessage_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subnetwork_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipCidrRange_)) { + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + subnetwork_ = ""; + network_ = ""; + ipCidrRange_ = ""; + if (secondaryIpRangesBuilder_ == null) { + secondaryIpRanges_ = java.util.Collections.emptyList(); + } else { + secondaryIpRanges_ = null; + secondaryIpRangesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + 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); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1beta1.UsableSubnetwork result) { + if (secondaryIpRangesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + secondaryIpRanges_ = java.util.Collections.unmodifiableList(secondaryIpRanges_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.secondaryIpRanges_ = secondaryIpRanges_; + } else { + result.secondaryIpRanges_ = secondaryIpRangesBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1beta1.UsableSubnetwork result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.subnetwork_ = subnetwork_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.network_ = network_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.ipCidrRange_ = ipCidrRange_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.statusMessage_ = statusMessage_; + } + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getIpCidrRange().isEmpty()) { + ipCidrRange_ = other.ipCidrRange_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (secondaryIpRangesBuilder_ == null) { + if (!other.secondaryIpRanges_.isEmpty()) { + if (secondaryIpRanges_.isEmpty()) { + secondaryIpRanges_ = other.secondaryIpRanges_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.addAll(other.secondaryIpRanges_); + } + onChanged(); + } + } else { + if (!other.secondaryIpRanges_.isEmpty()) { + if (secondaryIpRangesBuilder_.isEmpty()) { + secondaryIpRangesBuilder_.dispose(); + secondaryIpRangesBuilder_ = null; + secondaryIpRanges_ = other.secondaryIpRanges_; + bitField0_ = (bitField0_ & ~0x00000008); + secondaryIpRangesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSecondaryIpRangesFieldBuilder() : null; + } else { + secondaryIpRangesBuilder_.addAllMessages(other.secondaryIpRanges_); + } + } + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + subnetwork_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + network_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + ipCidrRange_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + com.google.container.v1beta1.UsableSubnetworkSecondaryRange m = + input.readMessage( + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.parser(), + extensionRegistry); + if (secondaryIpRangesBuilder_ == null) { + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.add(m); + } else { + secondaryIpRangesBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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; + bitField0_ |= 0x00000001; + 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(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + 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; + bitField0_ |= 0x00000002; + 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(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + 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; + bitField0_ |= 0x00000004; + 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(); + bitField0_ = (bitField0_ & ~0x00000004); + 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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.util.List secondaryIpRanges_ = + java.util.Collections.emptyList(); + private void ensureSecondaryIpRangesIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + secondaryIpRanges_ = new java.util.ArrayList(secondaryIpRanges_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.UsableSubnetworkSecondaryRange, com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder, com.google.container.v1beta1.UsableSubnetworkSecondaryRangeOrBuilder> secondaryIpRangesBuilder_; + + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public java.util.List getSecondaryIpRangesList() { + if (secondaryIpRangesBuilder_ == null) { + return java.util.Collections.unmodifiableList(secondaryIpRanges_); + } else { + return secondaryIpRangesBuilder_.getMessageList(); + } + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public int getSecondaryIpRangesCount() { + if (secondaryIpRangesBuilder_ == null) { + return secondaryIpRanges_.size(); + } else { + return secondaryIpRangesBuilder_.getCount(); + } + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public com.google.container.v1beta1.UsableSubnetworkSecondaryRange getSecondaryIpRanges(int index) { + if (secondaryIpRangesBuilder_ == null) { + return secondaryIpRanges_.get(index); + } else { + return secondaryIpRangesBuilder_.getMessage(index); + } + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public Builder setSecondaryIpRanges( + int index, com.google.container.v1beta1.UsableSubnetworkSecondaryRange value) { + if (secondaryIpRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.set(index, value); + onChanged(); + } else { + secondaryIpRangesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public Builder setSecondaryIpRanges( + int index, com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder builderForValue) { + if (secondaryIpRangesBuilder_ == null) { + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.set(index, builderForValue.build()); + onChanged(); + } else { + secondaryIpRangesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public Builder addSecondaryIpRanges(com.google.container.v1beta1.UsableSubnetworkSecondaryRange value) { + if (secondaryIpRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.add(value); + onChanged(); + } else { + secondaryIpRangesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public Builder addSecondaryIpRanges( + int index, com.google.container.v1beta1.UsableSubnetworkSecondaryRange value) { + if (secondaryIpRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.add(index, value); + onChanged(); + } else { + secondaryIpRangesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public Builder addSecondaryIpRanges( + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder builderForValue) { + if (secondaryIpRangesBuilder_ == null) { + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.add(builderForValue.build()); + onChanged(); + } else { + secondaryIpRangesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public Builder addSecondaryIpRanges( + int index, com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder builderForValue) { + if (secondaryIpRangesBuilder_ == null) { + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.add(index, builderForValue.build()); + onChanged(); + } else { + secondaryIpRangesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public Builder addAllSecondaryIpRanges( + java.lang.Iterable values) { + if (secondaryIpRangesBuilder_ == null) { + ensureSecondaryIpRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, secondaryIpRanges_); + onChanged(); + } else { + secondaryIpRangesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public Builder clearSecondaryIpRanges() { + if (secondaryIpRangesBuilder_ == null) { + secondaryIpRanges_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + secondaryIpRangesBuilder_.clear(); + } + return this; + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public Builder removeSecondaryIpRanges(int index) { + if (secondaryIpRangesBuilder_ == null) { + ensureSecondaryIpRangesIsMutable(); + secondaryIpRanges_.remove(index); + onChanged(); + } else { + secondaryIpRangesBuilder_.remove(index); + } + return this; + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder getSecondaryIpRangesBuilder( + int index) { + return getSecondaryIpRangesFieldBuilder().getBuilder(index); + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public com.google.container.v1beta1.UsableSubnetworkSecondaryRangeOrBuilder getSecondaryIpRangesOrBuilder( + int index) { + if (secondaryIpRangesBuilder_ == null) { + return secondaryIpRanges_.get(index); } else { + return secondaryIpRangesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public java.util.List + getSecondaryIpRangesOrBuilderList() { + if (secondaryIpRangesBuilder_ != null) { + return secondaryIpRangesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(secondaryIpRanges_); + } + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder addSecondaryIpRangesBuilder() { + return getSecondaryIpRangesFieldBuilder().addBuilder( + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.getDefaultInstance()); + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder addSecondaryIpRangesBuilder( + int index) { + return getSecondaryIpRangesFieldBuilder().addBuilder( + index, com.google.container.v1beta1.UsableSubnetworkSecondaryRange.getDefaultInstance()); + } + /** + *
+     * Secondary IP ranges.
+     * 
+ * + * repeated .google.container.v1beta1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + */ + public java.util.List + getSecondaryIpRangesBuilderList() { + return getSecondaryIpRangesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.UsableSubnetworkSecondaryRange, com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder, com.google.container.v1beta1.UsableSubnetworkSecondaryRangeOrBuilder> + getSecondaryIpRangesFieldBuilder() { + if (secondaryIpRangesBuilder_ == null) { + secondaryIpRangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.UsableSubnetworkSecondaryRange, com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Builder, com.google.container.v1beta1.UsableSubnetworkSecondaryRangeOrBuilder>( + secondaryIpRanges_, + ((bitField0_ & 0x00000008) != 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; + bitField0_ |= 0x00000010; + 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(); + bitField0_ = (bitField0_ & ~0x00000010); + 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; + bitField0_ |= 0x00000010; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetworkOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetworkOrBuilder.java new file mode 100644 index 000000000000..73ab782a5b8a --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetworkOrBuilder.java @@ -0,0 +1,144 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetworkSecondaryRange.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetworkSecondaryRange.java new file mode 100644 index 000000000000..0f0bf39619a6 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetworkSecondaryRange.java @@ -0,0 +1,1058 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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< + Status> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Status findValueByNumber(int number) { + return Status.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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_ = 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; + * @return The status. + */ + @java.lang.Override public com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status getStatus() { + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status result = com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status.forNumber(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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rangeName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, rangeName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipCidrRange_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ipCidrRange_); + } + if (status_ != com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status.UNKNOWN.getNumber()) { + output.writeEnum(3, status_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rangeName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, rangeName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipCidrRange_)) { + 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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.UsableSubnetworkSecondaryRange result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.rangeName_ = rangeName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ipCidrRange_ = ipCidrRange_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.status_ = status_; + } + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getIpCidrRange().isEmpty()) { + ipCidrRange_ = other.ipCidrRange_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + rangeName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + ipCidrRange_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + status_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + 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(); + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000001; + 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; + bitField0_ |= 0x00000002; + 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(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + 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; + bitField0_ |= 0x00000004; + 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() { + com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status result = com.google.container.v1beta1.UsableSubnetworkSecondaryRange.Status.forNumber(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(); + } + bitField0_ |= 0x00000004; + 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() { + bitField0_ = (bitField0_ & ~0x00000004); + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetworkSecondaryRangeOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetworkSecondaryRangeOrBuilder.java new file mode 100644 index 000000000000..5da1837ad1b5 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UsableSubnetworkSecondaryRangeOrBuilder.java @@ -0,0 +1,71 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/VerticalPodAutoscaling.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/VerticalPodAutoscaling.java new file mode 100644 index 000000000000..8c94b1d22fa7 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/VerticalPodAutoscaling.java @@ -0,0 +1,501 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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_ = false; + /** + *
+   * 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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 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_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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.VerticalPodAutoscaling result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @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.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Enables vertical pod autoscaling.
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/VerticalPodAutoscalingOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/VerticalPodAutoscalingOrBuilder.java new file mode 100644 index 000000000000..739c78e243bf --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/VerticalPodAutoscalingOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/VirtualNIC.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/VirtualNIC.java new file mode 100644 index 000000000000..0b05b37593a4 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/VirtualNIC.java @@ -0,0 +1,497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * Configuration of gVNIC feature.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.VirtualNIC} + */ +public final class VirtualNIC extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.VirtualNIC) + VirtualNICOrBuilder { +private static final long serialVersionUID = 0L; + // Use VirtualNIC.newBuilder() to construct. + private VirtualNIC(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private VirtualNIC() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new VirtualNIC(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_VirtualNIC_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_VirtualNIC_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.VirtualNIC.class, com.google.container.v1beta1.VirtualNIC.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + *
+   * Whether gVNIC features are enabled in the node pool.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.VirtualNIC)) { + return super.equals(obj); + } + com.google.container.v1beta1.VirtualNIC other = (com.google.container.v1beta1.VirtualNIC) obj; + + if (getEnabled() + != other.getEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.VirtualNIC parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.VirtualNIC parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.VirtualNIC parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.VirtualNIC parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.VirtualNIC parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.VirtualNIC parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.VirtualNIC parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.VirtualNIC parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.google.container.v1beta1.VirtualNIC parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.VirtualNIC parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.container.v1beta1.VirtualNIC parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.VirtualNIC parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.container.v1beta1.VirtualNIC prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration of gVNIC feature.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.VirtualNIC} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.VirtualNIC) + com.google.container.v1beta1.VirtualNICOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_VirtualNIC_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_VirtualNIC_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.VirtualNIC.class, com.google.container.v1beta1.VirtualNIC.Builder.class); + } + + // Construct using com.google.container.v1beta1.VirtualNIC.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 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_VirtualNIC_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.VirtualNIC getDefaultInstanceForType() { + return com.google.container.v1beta1.VirtualNIC.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.VirtualNIC build() { + com.google.container.v1beta1.VirtualNIC result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.VirtualNIC buildPartial() { + com.google.container.v1beta1.VirtualNIC result = new com.google.container.v1beta1.VirtualNIC(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.VirtualNIC result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @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.VirtualNIC) { + return mergeFrom((com.google.container.v1beta1.VirtualNIC)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.VirtualNIC other) { + if (other == com.google.container.v1beta1.VirtualNIC.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enabled_ ; + /** + *
+     * Whether gVNIC features are enabled in the node pool.
+     * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + *
+     * Whether gVNIC features are enabled in the node pool.
+     * 
+ * + * bool enabled = 1; + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether gVNIC features are enabled in the node pool.
+     * 
+ * + * bool enabled = 1; + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + 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.VirtualNIC) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.VirtualNIC) + private static final com.google.container.v1beta1.VirtualNIC DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.VirtualNIC(); + } + + public static com.google.container.v1beta1.VirtualNIC getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VirtualNIC parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.VirtualNIC getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/VirtualNICOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/VirtualNICOrBuilder.java new file mode 100644 index 000000000000..d5511c03348e --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/VirtualNICOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface VirtualNICOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.VirtualNIC) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether gVNIC features are enabled in the node pool.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WindowsNodeConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WindowsNodeConfig.java new file mode 100644 index 000000000000..26dbabde9617 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WindowsNodeConfig.java @@ -0,0 +1,685 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * Parameters that can be configured on Windows nodes.
+ * Windows Node Config that define the parameters that will be used to
+ * configure the Windows node pool settings
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.WindowsNodeConfig} + */ +public final class WindowsNodeConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.WindowsNodeConfig) + WindowsNodeConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use WindowsNodeConfig.newBuilder() to construct. + private WindowsNodeConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WindowsNodeConfig() { + osVersion_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new WindowsNodeConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WindowsNodeConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WindowsNodeConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.WindowsNodeConfig.class, com.google.container.v1beta1.WindowsNodeConfig.Builder.class); + } + + /** + *
+   * Possible OS version that can be used.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.WindowsNodeConfig.OSVersion} + */ + public enum OSVersion + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * When OSVersion is not specified
+     * 
+ * + * OS_VERSION_UNSPECIFIED = 0; + */ + OS_VERSION_UNSPECIFIED(0), + /** + *
+     * LTSC2019 specifies to use LTSC2019 as the Windows Servercore Base Image
+     * 
+ * + * OS_VERSION_LTSC2019 = 1; + */ + OS_VERSION_LTSC2019(1), + /** + *
+     * LTSC2022 specifies to use LTSC2022 as the Windows Servercore Base Image
+     * 
+ * + * OS_VERSION_LTSC2022 = 2; + */ + OS_VERSION_LTSC2022(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * When OSVersion is not specified
+     * 
+ * + * OS_VERSION_UNSPECIFIED = 0; + */ + public static final int OS_VERSION_UNSPECIFIED_VALUE = 0; + /** + *
+     * LTSC2019 specifies to use LTSC2019 as the Windows Servercore Base Image
+     * 
+ * + * OS_VERSION_LTSC2019 = 1; + */ + public static final int OS_VERSION_LTSC2019_VALUE = 1; + /** + *
+     * LTSC2022 specifies to use LTSC2022 as the Windows Servercore Base Image
+     * 
+ * + * OS_VERSION_LTSC2022 = 2; + */ + public static final int OS_VERSION_LTSC2022_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 OSVersion 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 OSVersion forNumber(int value) { + switch (value) { + case 0: return OS_VERSION_UNSPECIFIED; + case 1: return OS_VERSION_LTSC2019; + case 2: return OS_VERSION_LTSC2022; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + OSVersion> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public OSVersion findValueByNumber(int number) { + return OSVersion.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.WindowsNodeConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final OSVersion[] VALUES = values(); + + public static OSVersion 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 OSVersion(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.WindowsNodeConfig.OSVersion) + } + + public static final int OS_VERSION_FIELD_NUMBER = 1; + private int osVersion_ = 0; + /** + *
+   * OSVersion specifies the Windows node config to be used on the node
+   * 
+ * + * .google.container.v1beta1.WindowsNodeConfig.OSVersion os_version = 1; + * @return The enum numeric value on the wire for osVersion. + */ + @java.lang.Override public int getOsVersionValue() { + return osVersion_; + } + /** + *
+   * OSVersion specifies the Windows node config to be used on the node
+   * 
+ * + * .google.container.v1beta1.WindowsNodeConfig.OSVersion os_version = 1; + * @return The osVersion. + */ + @java.lang.Override public com.google.container.v1beta1.WindowsNodeConfig.OSVersion getOsVersion() { + com.google.container.v1beta1.WindowsNodeConfig.OSVersion result = com.google.container.v1beta1.WindowsNodeConfig.OSVersion.forNumber(osVersion_); + return result == null ? com.google.container.v1beta1.WindowsNodeConfig.OSVersion.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 (osVersion_ != com.google.container.v1beta1.WindowsNodeConfig.OSVersion.OS_VERSION_UNSPECIFIED.getNumber()) { + output.writeEnum(1, osVersion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (osVersion_ != com.google.container.v1beta1.WindowsNodeConfig.OSVersion.OS_VERSION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, osVersion_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.WindowsNodeConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.WindowsNodeConfig other = (com.google.container.v1beta1.WindowsNodeConfig) obj; + + if (osVersion_ != other.osVersion_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + OS_VERSION_FIELD_NUMBER; + hash = (53 * hash) + osVersion_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.WindowsNodeConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.WindowsNodeConfig parseFrom( + 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.WindowsNodeConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.WindowsNodeConfig parseFrom( + com.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.WindowsNodeConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.WindowsNodeConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.WindowsNodeConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.WindowsNodeConfig parseFrom( + java.io.InputStream 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.WindowsNodeConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.WindowsNodeConfig parseDelimitedFrom( + java.io.InputStream 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.WindowsNodeConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.WindowsNodeConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.WindowsNodeConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new 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 Windows nodes.
+   * Windows Node Config that define the parameters that will be used to
+   * configure the Windows node pool settings
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.WindowsNodeConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.WindowsNodeConfig) + com.google.container.v1beta1.WindowsNodeConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WindowsNodeConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WindowsNodeConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.WindowsNodeConfig.class, com.google.container.v1beta1.WindowsNodeConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.WindowsNodeConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + osVersion_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WindowsNodeConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.WindowsNodeConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.WindowsNodeConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.WindowsNodeConfig build() { + com.google.container.v1beta1.WindowsNodeConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.WindowsNodeConfig buildPartial() { + com.google.container.v1beta1.WindowsNodeConfig result = new com.google.container.v1beta1.WindowsNodeConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.WindowsNodeConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.osVersion_ = osVersion_; + } + } + + @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.WindowsNodeConfig) { + return mergeFrom((com.google.container.v1beta1.WindowsNodeConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.WindowsNodeConfig other) { + if (other == com.google.container.v1beta1.WindowsNodeConfig.getDefaultInstance()) return this; + if (other.osVersion_ != 0) { + setOsVersionValue(other.getOsVersionValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + osVersion_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int osVersion_ = 0; + /** + *
+     * OSVersion specifies the Windows node config to be used on the node
+     * 
+ * + * .google.container.v1beta1.WindowsNodeConfig.OSVersion os_version = 1; + * @return The enum numeric value on the wire for osVersion. + */ + @java.lang.Override public int getOsVersionValue() { + return osVersion_; + } + /** + *
+     * OSVersion specifies the Windows node config to be used on the node
+     * 
+ * + * .google.container.v1beta1.WindowsNodeConfig.OSVersion os_version = 1; + * @param value The enum numeric value on the wire for osVersion to set. + * @return This builder for chaining. + */ + public Builder setOsVersionValue(int value) { + osVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * OSVersion specifies the Windows node config to be used on the node
+     * 
+ * + * .google.container.v1beta1.WindowsNodeConfig.OSVersion os_version = 1; + * @return The osVersion. + */ + @java.lang.Override + public com.google.container.v1beta1.WindowsNodeConfig.OSVersion getOsVersion() { + com.google.container.v1beta1.WindowsNodeConfig.OSVersion result = com.google.container.v1beta1.WindowsNodeConfig.OSVersion.forNumber(osVersion_); + return result == null ? com.google.container.v1beta1.WindowsNodeConfig.OSVersion.UNRECOGNIZED : result; + } + /** + *
+     * OSVersion specifies the Windows node config to be used on the node
+     * 
+ * + * .google.container.v1beta1.WindowsNodeConfig.OSVersion os_version = 1; + * @param value The osVersion to set. + * @return This builder for chaining. + */ + public Builder setOsVersion(com.google.container.v1beta1.WindowsNodeConfig.OSVersion value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + osVersion_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * OSVersion specifies the Windows node config to be used on the node
+     * 
+ * + * .google.container.v1beta1.WindowsNodeConfig.OSVersion os_version = 1; + * @return This builder for chaining. + */ + public Builder clearOsVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + osVersion_ = 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.WindowsNodeConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.WindowsNodeConfig) + private static final com.google.container.v1beta1.WindowsNodeConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.WindowsNodeConfig(); + } + + public static com.google.container.v1beta1.WindowsNodeConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WindowsNodeConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.WindowsNodeConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WindowsNodeConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WindowsNodeConfigOrBuilder.java new file mode 100644 index 000000000000..73546cf11fa1 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WindowsNodeConfigOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface WindowsNodeConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.WindowsNodeConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * OSVersion specifies the Windows node config to be used on the node
+   * 
+ * + * .google.container.v1beta1.WindowsNodeConfig.OSVersion os_version = 1; + * @return The enum numeric value on the wire for osVersion. + */ + int getOsVersionValue(); + /** + *
+   * OSVersion specifies the Windows node config to be used on the node
+   * 
+ * + * .google.container.v1beta1.WindowsNodeConfig.OSVersion os_version = 1; + * @return The osVersion. + */ + com.google.container.v1beta1.WindowsNodeConfig.OSVersion getOsVersion(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WindowsVersions.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WindowsVersions.java new file mode 100644 index 000000000000..8891362fb1d2 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WindowsVersions.java @@ -0,0 +1,1908 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * Windows server versions.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.WindowsVersions} + */ +public final class WindowsVersions extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.WindowsVersions) + WindowsVersionsOrBuilder { +private static final long serialVersionUID = 0L; + // Use WindowsVersions.newBuilder() to construct. + private WindowsVersions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WindowsVersions() { + windowsVersions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new WindowsVersions(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WindowsVersions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WindowsVersions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.WindowsVersions.class, com.google.container.v1beta1.WindowsVersions.Builder.class); + } + + public interface WindowsVersionOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.WindowsVersions.WindowsVersion) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Windows server image type
+     * 
+ * + * string image_type = 1; + * @return The imageType. + */ + java.lang.String getImageType(); + /** + *
+     * Windows server image type
+     * 
+ * + * string image_type = 1; + * @return The bytes for imageType. + */ + com.google.protobuf.ByteString + getImageTypeBytes(); + + /** + *
+     * Windows server build number
+     * 
+ * + * string os_version = 2; + * @return The osVersion. + */ + java.lang.String getOsVersion(); + /** + *
+     * Windows server build number
+     * 
+ * + * string os_version = 2; + * @return The bytes for osVersion. + */ + com.google.protobuf.ByteString + getOsVersionBytes(); + + /** + *
+     * Mainstream support end date
+     * 
+ * + * .google.type.Date support_end_date = 3; + * @return Whether the supportEndDate field is set. + */ + boolean hasSupportEndDate(); + /** + *
+     * Mainstream support end date
+     * 
+ * + * .google.type.Date support_end_date = 3; + * @return The supportEndDate. + */ + com.google.type.Date getSupportEndDate(); + /** + *
+     * Mainstream support end date
+     * 
+ * + * .google.type.Date support_end_date = 3; + */ + com.google.type.DateOrBuilder getSupportEndDateOrBuilder(); + } + /** + *
+   * Windows server version.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.WindowsVersions.WindowsVersion} + */ + public static final class WindowsVersion extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.WindowsVersions.WindowsVersion) + WindowsVersionOrBuilder { + private static final long serialVersionUID = 0L; + // Use WindowsVersion.newBuilder() to construct. + private WindowsVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WindowsVersion() { + imageType_ = ""; + osVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new WindowsVersion(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WindowsVersions_WindowsVersion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WindowsVersions_WindowsVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.WindowsVersions.WindowsVersion.class, com.google.container.v1beta1.WindowsVersions.WindowsVersion.Builder.class); + } + + private int bitField0_; + public static final int IMAGE_TYPE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object imageType_ = ""; + /** + *
+     * Windows server image type
+     * 
+ * + * string image_type = 1; + * @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; + } + } + /** + *
+     * Windows server image type
+     * 
+ * + * string image_type = 1; + * @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 OS_VERSION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object osVersion_ = ""; + /** + *
+     * Windows server build number
+     * 
+ * + * string os_version = 2; + * @return The osVersion. + */ + @java.lang.Override + public java.lang.String getOsVersion() { + java.lang.Object ref = osVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + osVersion_ = s; + return s; + } + } + /** + *
+     * Windows server build number
+     * 
+ * + * string os_version = 2; + * @return The bytes for osVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOsVersionBytes() { + java.lang.Object ref = osVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + osVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUPPORT_END_DATE_FIELD_NUMBER = 3; + private com.google.type.Date supportEndDate_; + /** + *
+     * Mainstream support end date
+     * 
+ * + * .google.type.Date support_end_date = 3; + * @return Whether the supportEndDate field is set. + */ + @java.lang.Override + public boolean hasSupportEndDate() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Mainstream support end date
+     * 
+ * + * .google.type.Date support_end_date = 3; + * @return The supportEndDate. + */ + @java.lang.Override + public com.google.type.Date getSupportEndDate() { + return supportEndDate_ == null ? com.google.type.Date.getDefaultInstance() : supportEndDate_; + } + /** + *
+     * Mainstream support end date
+     * 
+ * + * .google.type.Date support_end_date = 3; + */ + @java.lang.Override + public com.google.type.DateOrBuilder getSupportEndDateOrBuilder() { + return supportEndDate_ == null ? com.google.type.Date.getDefaultInstance() : supportEndDate_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, imageType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(osVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, osVersion_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getSupportEndDate()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, imageType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(osVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, osVersion_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSupportEndDate()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.WindowsVersions.WindowsVersion)) { + return super.equals(obj); + } + com.google.container.v1beta1.WindowsVersions.WindowsVersion other = (com.google.container.v1beta1.WindowsVersions.WindowsVersion) obj; + + if (!getImageType() + .equals(other.getImageType())) return false; + if (!getOsVersion() + .equals(other.getOsVersion())) return false; + if (hasSupportEndDate() != other.hasSupportEndDate()) return false; + if (hasSupportEndDate()) { + if (!getSupportEndDate() + .equals(other.getSupportEndDate())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + IMAGE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getImageType().hashCode(); + hash = (37 * hash) + OS_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getOsVersion().hashCode(); + if (hasSupportEndDate()) { + hash = (37 * hash) + SUPPORT_END_DATE_FIELD_NUMBER; + hash = (53 * hash) + getSupportEndDate().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.WindowsVersions.WindowsVersion parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.WindowsVersions.WindowsVersion parseFrom( + 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.WindowsVersions.WindowsVersion parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.WindowsVersions.WindowsVersion parseFrom( + com.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.WindowsVersions.WindowsVersion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.WindowsVersions.WindowsVersion parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.WindowsVersions.WindowsVersion parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.WindowsVersions.WindowsVersion parseFrom( + java.io.InputStream 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.WindowsVersions.WindowsVersion parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.WindowsVersions.WindowsVersion parseDelimitedFrom( + java.io.InputStream 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.WindowsVersions.WindowsVersion parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.WindowsVersions.WindowsVersion parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.WindowsVersions.WindowsVersion prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Windows server version.
+     * 
+ * + * Protobuf type {@code google.container.v1beta1.WindowsVersions.WindowsVersion} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.WindowsVersions.WindowsVersion) + com.google.container.v1beta1.WindowsVersions.WindowsVersionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WindowsVersions_WindowsVersion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WindowsVersions_WindowsVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.WindowsVersions.WindowsVersion.class, com.google.container.v1beta1.WindowsVersions.WindowsVersion.Builder.class); + } + + // Construct using com.google.container.v1beta1.WindowsVersions.WindowsVersion.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSupportEndDateFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + imageType_ = ""; + osVersion_ = ""; + supportEndDate_ = null; + if (supportEndDateBuilder_ != null) { + supportEndDateBuilder_.dispose(); + supportEndDateBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WindowsVersions_WindowsVersion_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.WindowsVersions.WindowsVersion getDefaultInstanceForType() { + return com.google.container.v1beta1.WindowsVersions.WindowsVersion.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.WindowsVersions.WindowsVersion build() { + com.google.container.v1beta1.WindowsVersions.WindowsVersion result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.WindowsVersions.WindowsVersion buildPartial() { + com.google.container.v1beta1.WindowsVersions.WindowsVersion result = new com.google.container.v1beta1.WindowsVersions.WindowsVersion(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.WindowsVersions.WindowsVersion result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.imageType_ = imageType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.osVersion_ = osVersion_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.supportEndDate_ = supportEndDateBuilder_ == null + ? supportEndDate_ + : supportEndDateBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @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.WindowsVersions.WindowsVersion) { + return mergeFrom((com.google.container.v1beta1.WindowsVersions.WindowsVersion)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.WindowsVersions.WindowsVersion other) { + if (other == com.google.container.v1beta1.WindowsVersions.WindowsVersion.getDefaultInstance()) return this; + if (!other.getImageType().isEmpty()) { + imageType_ = other.imageType_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOsVersion().isEmpty()) { + osVersion_ = other.osVersion_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasSupportEndDate()) { + mergeSupportEndDate(other.getSupportEndDate()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + imageType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + osVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getSupportEndDateFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object imageType_ = ""; + /** + *
+       * Windows server image type
+       * 
+ * + * string image_type = 1; + * @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; + } + } + /** + *
+       * Windows server image type
+       * 
+ * + * string image_type = 1; + * @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; + } + } + /** + *
+       * Windows server image type
+       * 
+ * + * string image_type = 1; + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Windows server image type
+       * 
+ * + * string image_type = 1; + * @return This builder for chaining. + */ + public Builder clearImageType() { + imageType_ = getDefaultInstance().getImageType(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * Windows server image type
+       * 
+ * + * string image_type = 1; + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object osVersion_ = ""; + /** + *
+       * Windows server build number
+       * 
+ * + * string os_version = 2; + * @return The osVersion. + */ + public java.lang.String getOsVersion() { + java.lang.Object ref = osVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + osVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Windows server build number
+       * 
+ * + * string os_version = 2; + * @return The bytes for osVersion. + */ + public com.google.protobuf.ByteString + getOsVersionBytes() { + java.lang.Object ref = osVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + osVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Windows server build number
+       * 
+ * + * string os_version = 2; + * @param value The osVersion to set. + * @return This builder for chaining. + */ + public Builder setOsVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + osVersion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Windows server build number
+       * 
+ * + * string os_version = 2; + * @return This builder for chaining. + */ + public Builder clearOsVersion() { + osVersion_ = getDefaultInstance().getOsVersion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * Windows server build number
+       * 
+ * + * string os_version = 2; + * @param value The bytes for osVersion to set. + * @return This builder for chaining. + */ + public Builder setOsVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + osVersion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.type.Date supportEndDate_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> supportEndDateBuilder_; + /** + *
+       * Mainstream support end date
+       * 
+ * + * .google.type.Date support_end_date = 3; + * @return Whether the supportEndDate field is set. + */ + public boolean hasSupportEndDate() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+       * Mainstream support end date
+       * 
+ * + * .google.type.Date support_end_date = 3; + * @return The supportEndDate. + */ + public com.google.type.Date getSupportEndDate() { + if (supportEndDateBuilder_ == null) { + return supportEndDate_ == null ? com.google.type.Date.getDefaultInstance() : supportEndDate_; + } else { + return supportEndDateBuilder_.getMessage(); + } + } + /** + *
+       * Mainstream support end date
+       * 
+ * + * .google.type.Date support_end_date = 3; + */ + public Builder setSupportEndDate(com.google.type.Date value) { + if (supportEndDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + supportEndDate_ = value; + } else { + supportEndDateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Mainstream support end date
+       * 
+ * + * .google.type.Date support_end_date = 3; + */ + public Builder setSupportEndDate( + com.google.type.Date.Builder builderForValue) { + if (supportEndDateBuilder_ == null) { + supportEndDate_ = builderForValue.build(); + } else { + supportEndDateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Mainstream support end date
+       * 
+ * + * .google.type.Date support_end_date = 3; + */ + public Builder mergeSupportEndDate(com.google.type.Date value) { + if (supportEndDateBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + supportEndDate_ != null && + supportEndDate_ != com.google.type.Date.getDefaultInstance()) { + getSupportEndDateBuilder().mergeFrom(value); + } else { + supportEndDate_ = value; + } + } else { + supportEndDateBuilder_.mergeFrom(value); + } + if (supportEndDate_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+       * Mainstream support end date
+       * 
+ * + * .google.type.Date support_end_date = 3; + */ + public Builder clearSupportEndDate() { + bitField0_ = (bitField0_ & ~0x00000004); + supportEndDate_ = null; + if (supportEndDateBuilder_ != null) { + supportEndDateBuilder_.dispose(); + supportEndDateBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Mainstream support end date
+       * 
+ * + * .google.type.Date support_end_date = 3; + */ + public com.google.type.Date.Builder getSupportEndDateBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getSupportEndDateFieldBuilder().getBuilder(); + } + /** + *
+       * Mainstream support end date
+       * 
+ * + * .google.type.Date support_end_date = 3; + */ + public com.google.type.DateOrBuilder getSupportEndDateOrBuilder() { + if (supportEndDateBuilder_ != null) { + return supportEndDateBuilder_.getMessageOrBuilder(); + } else { + return supportEndDate_ == null ? + com.google.type.Date.getDefaultInstance() : supportEndDate_; + } + } + /** + *
+       * Mainstream support end date
+       * 
+ * + * .google.type.Date support_end_date = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getSupportEndDateFieldBuilder() { + if (supportEndDateBuilder_ == null) { + supportEndDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getSupportEndDate(), + getParentForChildren(), + isClean()); + supportEndDate_ = null; + } + return supportEndDateBuilder_; + } + @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.WindowsVersions.WindowsVersion) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.WindowsVersions.WindowsVersion) + private static final com.google.container.v1beta1.WindowsVersions.WindowsVersion DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.WindowsVersions.WindowsVersion(); + } + + public static com.google.container.v1beta1.WindowsVersions.WindowsVersion getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WindowsVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.WindowsVersions.WindowsVersion getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int WINDOWS_VERSIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List windowsVersions_; + /** + *
+   * List of Windows server versions.
+   * 
+ * + * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; + */ + @java.lang.Override + public java.util.List getWindowsVersionsList() { + return windowsVersions_; + } + /** + *
+   * List of Windows server versions.
+   * 
+ * + * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; + */ + @java.lang.Override + public java.util.List + getWindowsVersionsOrBuilderList() { + return windowsVersions_; + } + /** + *
+   * List of Windows server versions.
+   * 
+ * + * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; + */ + @java.lang.Override + public int getWindowsVersionsCount() { + return windowsVersions_.size(); + } + /** + *
+   * List of Windows server versions.
+   * 
+ * + * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.WindowsVersions.WindowsVersion getWindowsVersions(int index) { + return windowsVersions_.get(index); + } + /** + *
+   * List of Windows server versions.
+   * 
+ * + * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; + */ + @java.lang.Override + public com.google.container.v1beta1.WindowsVersions.WindowsVersionOrBuilder getWindowsVersionsOrBuilder( + int index) { + return windowsVersions_.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 < windowsVersions_.size(); i++) { + output.writeMessage(1, windowsVersions_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < windowsVersions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, windowsVersions_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.WindowsVersions)) { + return super.equals(obj); + } + com.google.container.v1beta1.WindowsVersions other = (com.google.container.v1beta1.WindowsVersions) obj; + + if (!getWindowsVersionsList() + .equals(other.getWindowsVersionsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getWindowsVersionsCount() > 0) { + hash = (37 * hash) + WINDOWS_VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getWindowsVersionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.WindowsVersions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.WindowsVersions parseFrom( + 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.WindowsVersions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.WindowsVersions parseFrom( + com.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.WindowsVersions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.WindowsVersions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.WindowsVersions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.WindowsVersions parseFrom( + java.io.InputStream 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.WindowsVersions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.WindowsVersions parseDelimitedFrom( + java.io.InputStream 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.WindowsVersions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.WindowsVersions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.WindowsVersions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Windows server versions.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.WindowsVersions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.WindowsVersions) + com.google.container.v1beta1.WindowsVersionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WindowsVersions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WindowsVersions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.WindowsVersions.class, com.google.container.v1beta1.WindowsVersions.Builder.class); + } + + // Construct using com.google.container.v1beta1.WindowsVersions.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (windowsVersionsBuilder_ == null) { + windowsVersions_ = java.util.Collections.emptyList(); + } else { + windowsVersions_ = null; + windowsVersionsBuilder_.clear(); + } + 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_WindowsVersions_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.WindowsVersions getDefaultInstanceForType() { + return com.google.container.v1beta1.WindowsVersions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.WindowsVersions build() { + com.google.container.v1beta1.WindowsVersions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.WindowsVersions buildPartial() { + com.google.container.v1beta1.WindowsVersions result = new com.google.container.v1beta1.WindowsVersions(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.container.v1beta1.WindowsVersions result) { + if (windowsVersionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + windowsVersions_ = java.util.Collections.unmodifiableList(windowsVersions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.windowsVersions_ = windowsVersions_; + } else { + result.windowsVersions_ = windowsVersionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.container.v1beta1.WindowsVersions result) { + int from_bitField0_ = bitField0_; + } + + @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.WindowsVersions) { + return mergeFrom((com.google.container.v1beta1.WindowsVersions)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.WindowsVersions other) { + if (other == com.google.container.v1beta1.WindowsVersions.getDefaultInstance()) return this; + if (windowsVersionsBuilder_ == null) { + if (!other.windowsVersions_.isEmpty()) { + if (windowsVersions_.isEmpty()) { + windowsVersions_ = other.windowsVersions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureWindowsVersionsIsMutable(); + windowsVersions_.addAll(other.windowsVersions_); + } + onChanged(); + } + } else { + if (!other.windowsVersions_.isEmpty()) { + if (windowsVersionsBuilder_.isEmpty()) { + windowsVersionsBuilder_.dispose(); + windowsVersionsBuilder_ = null; + windowsVersions_ = other.windowsVersions_; + bitField0_ = (bitField0_ & ~0x00000001); + windowsVersionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWindowsVersionsFieldBuilder() : null; + } else { + windowsVersionsBuilder_.addAllMessages(other.windowsVersions_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.container.v1beta1.WindowsVersions.WindowsVersion m = + input.readMessage( + com.google.container.v1beta1.WindowsVersions.WindowsVersion.parser(), + extensionRegistry); + if (windowsVersionsBuilder_ == null) { + ensureWindowsVersionsIsMutable(); + windowsVersions_.add(m); + } else { + windowsVersionsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List windowsVersions_ = + java.util.Collections.emptyList(); + private void ensureWindowsVersionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + windowsVersions_ = new java.util.ArrayList(windowsVersions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.WindowsVersions.WindowsVersion, com.google.container.v1beta1.WindowsVersions.WindowsVersion.Builder, com.google.container.v1beta1.WindowsVersions.WindowsVersionOrBuilder> windowsVersionsBuilder_; + + /** + *
+     * List of Windows server versions.
+     * 
+ * + * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; + */ + public java.util.List getWindowsVersionsList() { + if (windowsVersionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(windowsVersions_); + } else { + return windowsVersionsBuilder_.getMessageList(); + } + } + /** + *
+     * List of Windows server versions.
+     * 
+ * + * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; + */ + public int getWindowsVersionsCount() { + if (windowsVersionsBuilder_ == null) { + return windowsVersions_.size(); + } else { + return windowsVersionsBuilder_.getCount(); + } + } + /** + *
+     * List of Windows server versions.
+     * 
+ * + * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; + */ + public com.google.container.v1beta1.WindowsVersions.WindowsVersion getWindowsVersions(int index) { + if (windowsVersionsBuilder_ == null) { + return windowsVersions_.get(index); + } else { + return windowsVersionsBuilder_.getMessage(index); + } + } + /** + *
+     * List of Windows server versions.
+     * 
+ * + * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; + */ + public Builder setWindowsVersions( + int index, com.google.container.v1beta1.WindowsVersions.WindowsVersion value) { + if (windowsVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWindowsVersionsIsMutable(); + windowsVersions_.set(index, value); + onChanged(); + } else { + windowsVersionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * List of Windows server versions.
+     * 
+ * + * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; + */ + public Builder setWindowsVersions( + int index, com.google.container.v1beta1.WindowsVersions.WindowsVersion.Builder builderForValue) { + if (windowsVersionsBuilder_ == null) { + ensureWindowsVersionsIsMutable(); + windowsVersions_.set(index, builderForValue.build()); + onChanged(); + } else { + windowsVersionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of Windows server versions.
+     * 
+ * + * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; + */ + public Builder addWindowsVersions(com.google.container.v1beta1.WindowsVersions.WindowsVersion value) { + if (windowsVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWindowsVersionsIsMutable(); + windowsVersions_.add(value); + onChanged(); + } else { + windowsVersionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * List of Windows server versions.
+     * 
+ * + * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; + */ + public Builder addWindowsVersions( + int index, com.google.container.v1beta1.WindowsVersions.WindowsVersion value) { + if (windowsVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWindowsVersionsIsMutable(); + windowsVersions_.add(index, value); + onChanged(); + } else { + windowsVersionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * List of Windows server versions.
+     * 
+ * + * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; + */ + public Builder addWindowsVersions( + com.google.container.v1beta1.WindowsVersions.WindowsVersion.Builder builderForValue) { + if (windowsVersionsBuilder_ == null) { + ensureWindowsVersionsIsMutable(); + windowsVersions_.add(builderForValue.build()); + onChanged(); + } else { + windowsVersionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * List of Windows server versions.
+     * 
+ * + * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; + */ + public Builder addWindowsVersions( + int index, com.google.container.v1beta1.WindowsVersions.WindowsVersion.Builder builderForValue) { + if (windowsVersionsBuilder_ == null) { + ensureWindowsVersionsIsMutable(); + windowsVersions_.add(index, builderForValue.build()); + onChanged(); + } else { + windowsVersionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of Windows server versions.
+     * 
+ * + * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; + */ + public Builder addAllWindowsVersions( + java.lang.Iterable values) { + if (windowsVersionsBuilder_ == null) { + ensureWindowsVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, windowsVersions_); + onChanged(); + } else { + windowsVersionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * List of Windows server versions.
+     * 
+ * + * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; + */ + public Builder clearWindowsVersions() { + if (windowsVersionsBuilder_ == null) { + windowsVersions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + windowsVersionsBuilder_.clear(); + } + return this; + } + /** + *
+     * List of Windows server versions.
+     * 
+ * + * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; + */ + public Builder removeWindowsVersions(int index) { + if (windowsVersionsBuilder_ == null) { + ensureWindowsVersionsIsMutable(); + windowsVersions_.remove(index); + onChanged(); + } else { + windowsVersionsBuilder_.remove(index); + } + return this; + } + /** + *
+     * List of Windows server versions.
+     * 
+ * + * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; + */ + public com.google.container.v1beta1.WindowsVersions.WindowsVersion.Builder getWindowsVersionsBuilder( + int index) { + return getWindowsVersionsFieldBuilder().getBuilder(index); + } + /** + *
+     * List of Windows server versions.
+     * 
+ * + * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; + */ + public com.google.container.v1beta1.WindowsVersions.WindowsVersionOrBuilder getWindowsVersionsOrBuilder( + int index) { + if (windowsVersionsBuilder_ == null) { + return windowsVersions_.get(index); } else { + return windowsVersionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * List of Windows server versions.
+     * 
+ * + * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; + */ + public java.util.List + getWindowsVersionsOrBuilderList() { + if (windowsVersionsBuilder_ != null) { + return windowsVersionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(windowsVersions_); + } + } + /** + *
+     * List of Windows server versions.
+     * 
+ * + * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; + */ + public com.google.container.v1beta1.WindowsVersions.WindowsVersion.Builder addWindowsVersionsBuilder() { + return getWindowsVersionsFieldBuilder().addBuilder( + com.google.container.v1beta1.WindowsVersions.WindowsVersion.getDefaultInstance()); + } + /** + *
+     * List of Windows server versions.
+     * 
+ * + * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; + */ + public com.google.container.v1beta1.WindowsVersions.WindowsVersion.Builder addWindowsVersionsBuilder( + int index) { + return getWindowsVersionsFieldBuilder().addBuilder( + index, com.google.container.v1beta1.WindowsVersions.WindowsVersion.getDefaultInstance()); + } + /** + *
+     * List of Windows server versions.
+     * 
+ * + * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; + */ + public java.util.List + getWindowsVersionsBuilderList() { + return getWindowsVersionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.WindowsVersions.WindowsVersion, com.google.container.v1beta1.WindowsVersions.WindowsVersion.Builder, com.google.container.v1beta1.WindowsVersions.WindowsVersionOrBuilder> + getWindowsVersionsFieldBuilder() { + if (windowsVersionsBuilder_ == null) { + windowsVersionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1beta1.WindowsVersions.WindowsVersion, com.google.container.v1beta1.WindowsVersions.WindowsVersion.Builder, com.google.container.v1beta1.WindowsVersions.WindowsVersionOrBuilder>( + windowsVersions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + windowsVersions_ = null; + } + return windowsVersionsBuilder_; + } + @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.WindowsVersions) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.WindowsVersions) + private static final com.google.container.v1beta1.WindowsVersions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.WindowsVersions(); + } + + public static com.google.container.v1beta1.WindowsVersions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WindowsVersions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.WindowsVersions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WindowsVersionsOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WindowsVersionsOrBuilder.java new file mode 100644 index 000000000000..cdfa9a71353b --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WindowsVersionsOrBuilder.java @@ -0,0 +1,54 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface WindowsVersionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.WindowsVersions) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * List of Windows server versions.
+   * 
+ * + * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; + */ + java.util.List + getWindowsVersionsList(); + /** + *
+   * List of Windows server versions.
+   * 
+ * + * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; + */ + com.google.container.v1beta1.WindowsVersions.WindowsVersion getWindowsVersions(int index); + /** + *
+   * List of Windows server versions.
+   * 
+ * + * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; + */ + int getWindowsVersionsCount(); + /** + *
+   * List of Windows server versions.
+   * 
+ * + * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; + */ + java.util.List + getWindowsVersionsOrBuilderList(); + /** + *
+   * List of Windows server versions.
+   * 
+ * + * repeated .google.container.v1beta1.WindowsVersions.WindowsVersion windows_versions = 1; + */ + com.google.container.v1beta1.WindowsVersions.WindowsVersionOrBuilder getWindowsVersionsOrBuilder( + int index); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadALTSConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadALTSConfig.java new file mode 100644 index 000000000000..db5bd1220dd4 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadALTSConfig.java @@ -0,0 +1,715 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * Configuration for direct-path (via ALTS) with workload identity.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.WorkloadALTSConfig} + */ +public final class WorkloadALTSConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.WorkloadALTSConfig) + WorkloadALTSConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use WorkloadALTSConfig.newBuilder() to construct. + private WorkloadALTSConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkloadALTSConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new WorkloadALTSConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WorkloadALTSConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WorkloadALTSConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.WorkloadALTSConfig.class, com.google.container.v1beta1.WorkloadALTSConfig.Builder.class); + } + + private int bitField0_; + public static final int ENABLE_ALTS_FIELD_NUMBER = 1; + private com.google.protobuf.BoolValue enableAlts_; + /** + *
+   * enable_alts controls whether the alts handshaker should be enabled or not
+   * for direct-path.
+   *
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_alts = 1; + * @return Whether the enableAlts field is set. + */ + @java.lang.Override + public boolean hasEnableAlts() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * enable_alts controls whether the alts handshaker should be enabled or not
+   * for direct-path.
+   *
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_alts = 1; + * @return The enableAlts. + */ + @java.lang.Override + public com.google.protobuf.BoolValue getEnableAlts() { + return enableAlts_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableAlts_; + } + /** + *
+   * enable_alts controls whether the alts handshaker should be enabled or not
+   * for direct-path.
+   *
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_alts = 1; + */ + @java.lang.Override + public com.google.protobuf.BoolValueOrBuilder getEnableAltsOrBuilder() { + return enableAlts_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableAlts_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getEnableAlts()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getEnableAlts()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.WorkloadALTSConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.WorkloadALTSConfig other = (com.google.container.v1beta1.WorkloadALTSConfig) obj; + + if (hasEnableAlts() != other.hasEnableAlts()) return false; + if (hasEnableAlts()) { + if (!getEnableAlts() + .equals(other.getEnableAlts())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEnableAlts()) { + hash = (37 * hash) + ENABLE_ALTS_FIELD_NUMBER; + hash = (53 * hash) + getEnableAlts().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.WorkloadALTSConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.WorkloadALTSConfig parseFrom( + 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.WorkloadALTSConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.WorkloadALTSConfig parseFrom( + com.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.WorkloadALTSConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.WorkloadALTSConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.WorkloadALTSConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.WorkloadALTSConfig parseFrom( + java.io.InputStream 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.WorkloadALTSConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.WorkloadALTSConfig parseDelimitedFrom( + java.io.InputStream 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.WorkloadALTSConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.WorkloadALTSConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.WorkloadALTSConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new 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 direct-path (via ALTS) with workload identity.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.WorkloadALTSConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.WorkloadALTSConfig) + com.google.container.v1beta1.WorkloadALTSConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WorkloadALTSConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WorkloadALTSConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.WorkloadALTSConfig.class, com.google.container.v1beta1.WorkloadALTSConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.WorkloadALTSConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getEnableAltsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enableAlts_ = null; + if (enableAltsBuilder_ != null) { + enableAltsBuilder_.dispose(); + enableAltsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WorkloadALTSConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.WorkloadALTSConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.WorkloadALTSConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.WorkloadALTSConfig build() { + com.google.container.v1beta1.WorkloadALTSConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.WorkloadALTSConfig buildPartial() { + com.google.container.v1beta1.WorkloadALTSConfig result = new com.google.container.v1beta1.WorkloadALTSConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.WorkloadALTSConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enableAlts_ = enableAltsBuilder_ == null + ? enableAlts_ + : enableAltsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @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.WorkloadALTSConfig) { + return mergeFrom((com.google.container.v1beta1.WorkloadALTSConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.WorkloadALTSConfig other) { + if (other == com.google.container.v1beta1.WorkloadALTSConfig.getDefaultInstance()) return this; + if (other.hasEnableAlts()) { + mergeEnableAlts(other.getEnableAlts()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getEnableAltsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.BoolValue enableAlts_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> enableAltsBuilder_; + /** + *
+     * enable_alts controls whether the alts handshaker should be enabled or not
+     * for direct-path.
+     *
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_alts = 1; + * @return Whether the enableAlts field is set. + */ + public boolean hasEnableAlts() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * enable_alts controls whether the alts handshaker should be enabled or not
+     * for direct-path.
+     *
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_alts = 1; + * @return The enableAlts. + */ + public com.google.protobuf.BoolValue getEnableAlts() { + if (enableAltsBuilder_ == null) { + return enableAlts_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableAlts_; + } else { + return enableAltsBuilder_.getMessage(); + } + } + /** + *
+     * enable_alts controls whether the alts handshaker should be enabled or not
+     * for direct-path.
+     *
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_alts = 1; + */ + public Builder setEnableAlts(com.google.protobuf.BoolValue value) { + if (enableAltsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + enableAlts_ = value; + } else { + enableAltsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * enable_alts controls whether the alts handshaker should be enabled or not
+     * for direct-path.
+     *
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_alts = 1; + */ + public Builder setEnableAlts( + com.google.protobuf.BoolValue.Builder builderForValue) { + if (enableAltsBuilder_ == null) { + enableAlts_ = builderForValue.build(); + } else { + enableAltsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * enable_alts controls whether the alts handshaker should be enabled or not
+     * for direct-path.
+     *
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_alts = 1; + */ + public Builder mergeEnableAlts(com.google.protobuf.BoolValue value) { + if (enableAltsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + enableAlts_ != null && + enableAlts_ != com.google.protobuf.BoolValue.getDefaultInstance()) { + getEnableAltsBuilder().mergeFrom(value); + } else { + enableAlts_ = value; + } + } else { + enableAltsBuilder_.mergeFrom(value); + } + if (enableAlts_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+     * enable_alts controls whether the alts handshaker should be enabled or not
+     * for direct-path.
+     *
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_alts = 1; + */ + public Builder clearEnableAlts() { + bitField0_ = (bitField0_ & ~0x00000001); + enableAlts_ = null; + if (enableAltsBuilder_ != null) { + enableAltsBuilder_.dispose(); + enableAltsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * enable_alts controls whether the alts handshaker should be enabled or not
+     * for direct-path.
+     *
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_alts = 1; + */ + public com.google.protobuf.BoolValue.Builder getEnableAltsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getEnableAltsFieldBuilder().getBuilder(); + } + /** + *
+     * enable_alts controls whether the alts handshaker should be enabled or not
+     * for direct-path.
+     *
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_alts = 1; + */ + public com.google.protobuf.BoolValueOrBuilder getEnableAltsOrBuilder() { + if (enableAltsBuilder_ != null) { + return enableAltsBuilder_.getMessageOrBuilder(); + } else { + return enableAlts_ == null ? + com.google.protobuf.BoolValue.getDefaultInstance() : enableAlts_; + } + } + /** + *
+     * enable_alts controls whether the alts handshaker should be enabled or not
+     * for direct-path.
+     *
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_alts = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> + getEnableAltsFieldBuilder() { + if (enableAltsBuilder_ == null) { + enableAltsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( + getEnableAlts(), + getParentForChildren(), + isClean()); + enableAlts_ = null; + } + return enableAltsBuilder_; + } + @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.WorkloadALTSConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.WorkloadALTSConfig) + private static final com.google.container.v1beta1.WorkloadALTSConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.WorkloadALTSConfig(); + } + + public static com.google.container.v1beta1.WorkloadALTSConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkloadALTSConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.WorkloadALTSConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadALTSConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadALTSConfigOrBuilder.java new file mode 100644 index 000000000000..100c5025c8b1 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadALTSConfigOrBuilder.java @@ -0,0 +1,52 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface WorkloadALTSConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.WorkloadALTSConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * enable_alts controls whether the alts handshaker should be enabled or not
+   * for direct-path.
+   *
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_alts = 1; + * @return Whether the enableAlts field is set. + */ + boolean hasEnableAlts(); + /** + *
+   * enable_alts controls whether the alts handshaker should be enabled or not
+   * for direct-path.
+   *
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_alts = 1; + * @return The enableAlts. + */ + com.google.protobuf.BoolValue getEnableAlts(); + /** + *
+   * enable_alts controls whether the alts handshaker should be enabled or not
+   * for direct-path.
+   *
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_alts = 1; + */ + com.google.protobuf.BoolValueOrBuilder getEnableAltsOrBuilder(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadCertificates.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadCertificates.java new file mode 100644 index 000000000000..1c69d555af1f --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadCertificates.java @@ -0,0 +1,751 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * Configuration for issuance of mTLS keys and certificates to Kubernetes pods.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.WorkloadCertificates} + */ +public final class WorkloadCertificates extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.WorkloadCertificates) + WorkloadCertificatesOrBuilder { +private static final long serialVersionUID = 0L; + // Use WorkloadCertificates.newBuilder() to construct. + private WorkloadCertificates(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkloadCertificates() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new WorkloadCertificates(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WorkloadCertificates_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WorkloadCertificates_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.WorkloadCertificates.class, com.google.container.v1beta1.WorkloadCertificates.Builder.class); + } + + private int bitField0_; + public static final int ENABLE_CERTIFICATES_FIELD_NUMBER = 1; + private com.google.protobuf.BoolValue enableCertificates_; + /** + *
+   * enable_certificates controls issuance of workload mTLS certificates.
+   *
+   * If set, the GKE Workload Identity Certificates controller and node agent
+   * will be deployed in the cluster, which can then be configured by creating a
+   * WorkloadCertificateConfig Custom Resource.
+   *
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + * @return Whether the enableCertificates field is set. + */ + @java.lang.Override + public boolean hasEnableCertificates() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * enable_certificates controls issuance of workload mTLS certificates.
+   *
+   * If set, the GKE Workload Identity Certificates controller and node agent
+   * will be deployed in the cluster, which can then be configured by creating a
+   * WorkloadCertificateConfig Custom Resource.
+   *
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + * @return The enableCertificates. + */ + @java.lang.Override + public com.google.protobuf.BoolValue getEnableCertificates() { + return enableCertificates_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableCertificates_; + } + /** + *
+   * enable_certificates controls issuance of workload mTLS certificates.
+   *
+   * If set, the GKE Workload Identity Certificates controller and node agent
+   * will be deployed in the cluster, which can then be configured by creating a
+   * WorkloadCertificateConfig Custom Resource.
+   *
+   * Requires Workload Identity
+   * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
+   * must be non-empty).
+   * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + @java.lang.Override + public com.google.protobuf.BoolValueOrBuilder getEnableCertificatesOrBuilder() { + return enableCertificates_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableCertificates_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getEnableCertificates()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getEnableCertificates()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.WorkloadCertificates)) { + return super.equals(obj); + } + com.google.container.v1beta1.WorkloadCertificates other = (com.google.container.v1beta1.WorkloadCertificates) obj; + + if (hasEnableCertificates() != other.hasEnableCertificates()) return false; + if (hasEnableCertificates()) { + if (!getEnableCertificates() + .equals(other.getEnableCertificates())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEnableCertificates()) { + hash = (37 * hash) + ENABLE_CERTIFICATES_FIELD_NUMBER; + hash = (53 * hash) + getEnableCertificates().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.WorkloadCertificates parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.WorkloadCertificates parseFrom( + 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.WorkloadCertificates parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.WorkloadCertificates parseFrom( + com.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.WorkloadCertificates parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.WorkloadCertificates parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.WorkloadCertificates parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.WorkloadCertificates parseFrom( + java.io.InputStream 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.WorkloadCertificates parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.WorkloadCertificates parseDelimitedFrom( + java.io.InputStream 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.WorkloadCertificates parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.WorkloadCertificates parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.WorkloadCertificates prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration for issuance of mTLS keys and certificates to Kubernetes pods.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.WorkloadCertificates} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.WorkloadCertificates) + com.google.container.v1beta1.WorkloadCertificatesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WorkloadCertificates_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WorkloadCertificates_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.WorkloadCertificates.class, com.google.container.v1beta1.WorkloadCertificates.Builder.class); + } + + // Construct using com.google.container.v1beta1.WorkloadCertificates.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getEnableCertificatesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enableCertificates_ = null; + if (enableCertificatesBuilder_ != null) { + enableCertificatesBuilder_.dispose(); + enableCertificatesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WorkloadCertificates_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.WorkloadCertificates getDefaultInstanceForType() { + return com.google.container.v1beta1.WorkloadCertificates.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.WorkloadCertificates build() { + com.google.container.v1beta1.WorkloadCertificates result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.WorkloadCertificates buildPartial() { + com.google.container.v1beta1.WorkloadCertificates result = new com.google.container.v1beta1.WorkloadCertificates(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.WorkloadCertificates result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enableCertificates_ = enableCertificatesBuilder_ == null + ? enableCertificates_ + : enableCertificatesBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @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.WorkloadCertificates) { + return mergeFrom((com.google.container.v1beta1.WorkloadCertificates)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.WorkloadCertificates other) { + if (other == com.google.container.v1beta1.WorkloadCertificates.getDefaultInstance()) return this; + if (other.hasEnableCertificates()) { + mergeEnableCertificates(other.getEnableCertificates()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getEnableCertificatesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.BoolValue enableCertificates_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> enableCertificatesBuilder_; + /** + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     *
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     *
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + * @return Whether the enableCertificates field is set. + */ + public boolean hasEnableCertificates() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     *
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     *
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + * @return The enableCertificates. + */ + public com.google.protobuf.BoolValue getEnableCertificates() { + if (enableCertificatesBuilder_ == null) { + return enableCertificates_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableCertificates_; + } else { + return enableCertificatesBuilder_.getMessage(); + } + } + /** + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     *
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     *
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public Builder setEnableCertificates(com.google.protobuf.BoolValue value) { + if (enableCertificatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + enableCertificates_ = value; + } else { + enableCertificatesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     *
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     *
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public Builder setEnableCertificates( + com.google.protobuf.BoolValue.Builder builderForValue) { + if (enableCertificatesBuilder_ == null) { + enableCertificates_ = builderForValue.build(); + } else { + enableCertificatesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     *
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     *
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public Builder mergeEnableCertificates(com.google.protobuf.BoolValue value) { + if (enableCertificatesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + enableCertificates_ != null && + enableCertificates_ != com.google.protobuf.BoolValue.getDefaultInstance()) { + getEnableCertificatesBuilder().mergeFrom(value); + } else { + enableCertificates_ = value; + } + } else { + enableCertificatesBuilder_.mergeFrom(value); + } + if (enableCertificates_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     *
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     *
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public Builder clearEnableCertificates() { + bitField0_ = (bitField0_ & ~0x00000001); + enableCertificates_ = null; + if (enableCertificatesBuilder_ != null) { + enableCertificatesBuilder_.dispose(); + enableCertificatesBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     *
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     *
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public com.google.protobuf.BoolValue.Builder getEnableCertificatesBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getEnableCertificatesFieldBuilder().getBuilder(); + } + /** + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     *
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     *
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + public com.google.protobuf.BoolValueOrBuilder getEnableCertificatesOrBuilder() { + if (enableCertificatesBuilder_ != null) { + return enableCertificatesBuilder_.getMessageOrBuilder(); + } else { + return enableCertificates_ == null ? + com.google.protobuf.BoolValue.getDefaultInstance() : enableCertificates_; + } + } + /** + *
+     * enable_certificates controls issuance of workload mTLS certificates.
+     *
+     * If set, the GKE Workload Identity Certificates controller and node agent
+     * will be deployed in the cluster, which can then be configured by creating a
+     * WorkloadCertificateConfig Custom Resource.
+     *
+     * Requires Workload Identity
+     * ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
+     * must be non-empty).
+     * 
+ * + * .google.protobuf.BoolValue enable_certificates = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> + getEnableCertificatesFieldBuilder() { + if (enableCertificatesBuilder_ == null) { + enableCertificatesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( + getEnableCertificates(), + getParentForChildren(), + isClean()); + enableCertificates_ = null; + } + return enableCertificatesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.container.v1beta1.WorkloadCertificates) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.WorkloadCertificates) + private static final com.google.container.v1beta1.WorkloadCertificates DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.WorkloadCertificates(); + } + + public static com.google.container.v1beta1.WorkloadCertificates getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkloadCertificates parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.WorkloadCertificates getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadCertificatesOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadCertificatesOrBuilder.java similarity index 76% rename from java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadCertificatesOrBuilder.java rename to owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadCertificatesOrBuilder.java index e2954e301e6c..dee655f5e88e 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadCertificatesOrBuilder.java +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadCertificatesOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 // Protobuf Java Version: 3.25.2 package com.google.container.v1beta1; -public interface WorkloadCertificatesOrBuilder - extends +public interface WorkloadCertificatesOrBuilder extends // @@protoc_insertion_point(interface_extends:google.container.v1beta1.WorkloadCertificates) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * enable_certificates controls issuance of workload mTLS certificates.
    *
@@ -40,13 +22,10 @@ public interface WorkloadCertificatesOrBuilder
    * 
* * .google.protobuf.BoolValue enable_certificates = 1; - * * @return Whether the enableCertificates field is set. */ boolean hasEnableCertificates(); /** - * - * *
    * enable_certificates controls issuance of workload mTLS certificates.
    *
@@ -60,13 +39,10 @@ public interface WorkloadCertificatesOrBuilder
    * 
* * .google.protobuf.BoolValue enable_certificates = 1; - * * @return The enableCertificates. */ com.google.protobuf.BoolValue getEnableCertificates(); /** - * - * *
    * enable_certificates controls issuance of workload mTLS certificates.
    *
diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadConfig.java
new file mode 100644
index 000000000000..ff15b5704eb6
--- /dev/null
+++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadConfig.java
@@ -0,0 +1,756 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/container/v1beta1/cluster_service.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.container.v1beta1;
+
+/**
+ * 
+ * WorkloadConfig defines the flags to enable or disable the
+ * workload configurations for the cluster.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.WorkloadConfig} + */ +public final class WorkloadConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.WorkloadConfig) + WorkloadConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use WorkloadConfig.newBuilder() to construct. + private WorkloadConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkloadConfig() { + auditMode_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new WorkloadConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WorkloadConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WorkloadConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.WorkloadConfig.class, com.google.container.v1beta1.WorkloadConfig.Builder.class); + } + + /** + *
+   * Mode defines how to audit the workload configs.
+   * 
+ * + * Protobuf enum {@code google.container.v1beta1.WorkloadConfig.Mode} + */ + public enum Mode + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Default value meaning that no mode has been specified.
+     * 
+ * + * MODE_UNSPECIFIED = 0; + */ + MODE_UNSPECIFIED(0), + /** + *
+     * This disables Workload Configuration auditing on the cluster,
+     * meaning that nothing is surfaced.
+     * 
+ * + * DISABLED = 1; + */ + DISABLED(1), + /** + *
+     * Applies the default set of policy auditing to a cluster's workloads.
+     * 
+ * + * BASIC = 4; + */ + BASIC(4), + /** + *
+     * Surfaces configurations that are not in line with the
+     * Pod Security Standard Baseline policy.
+     * 
+ * + * BASELINE = 2 [deprecated = true]; + */ + @java.lang.Deprecated + BASELINE(2), + /** + *
+     * Surfaces configurations that are not in line with the
+     * Pod Security Standard Restricted policy.
+     * 
+ * + * RESTRICTED = 3 [deprecated = true]; + */ + @java.lang.Deprecated + RESTRICTED(3), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Default value meaning that no mode has been specified.
+     * 
+ * + * MODE_UNSPECIFIED = 0; + */ + public static final int MODE_UNSPECIFIED_VALUE = 0; + /** + *
+     * This disables Workload Configuration auditing on the cluster,
+     * meaning that nothing is surfaced.
+     * 
+ * + * DISABLED = 1; + */ + public static final int DISABLED_VALUE = 1; + /** + *
+     * Applies the default set of policy auditing to a cluster's workloads.
+     * 
+ * + * BASIC = 4; + */ + public static final int BASIC_VALUE = 4; + /** + *
+     * Surfaces configurations that are not in line with the
+     * Pod Security Standard Baseline policy.
+     * 
+ * + * BASELINE = 2 [deprecated = true]; + */ + @java.lang.Deprecated public static final int BASELINE_VALUE = 2; + /** + *
+     * Surfaces configurations that are not in line with the
+     * Pod Security Standard Restricted policy.
+     * 
+ * + * RESTRICTED = 3 [deprecated = true]; + */ + @java.lang.Deprecated public static final int RESTRICTED_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 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 DISABLED; + case 4: return BASIC; + case 2: return BASELINE; + case 3: return RESTRICTED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Mode> 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.WorkloadConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final Mode[] VALUES = values(); + + public static Mode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Mode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1beta1.WorkloadConfig.Mode) + } + + private int bitField0_; + public static final int AUDIT_MODE_FIELD_NUMBER = 1; + private int auditMode_ = 0; + /** + *
+   * Sets which mode of auditing should be used for the cluster's workloads.
+   * 
+ * + * optional .google.container.v1beta1.WorkloadConfig.Mode audit_mode = 1; + * @return Whether the auditMode field is set. + */ + @java.lang.Override public boolean hasAuditMode() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Sets which mode of auditing should be used for the cluster's workloads.
+   * 
+ * + * optional .google.container.v1beta1.WorkloadConfig.Mode audit_mode = 1; + * @return The enum numeric value on the wire for auditMode. + */ + @java.lang.Override public int getAuditModeValue() { + return auditMode_; + } + /** + *
+   * Sets which mode of auditing should be used for the cluster's workloads.
+   * 
+ * + * optional .google.container.v1beta1.WorkloadConfig.Mode audit_mode = 1; + * @return The auditMode. + */ + @java.lang.Override public com.google.container.v1beta1.WorkloadConfig.Mode getAuditMode() { + com.google.container.v1beta1.WorkloadConfig.Mode result = com.google.container.v1beta1.WorkloadConfig.Mode.forNumber(auditMode_); + return result == null ? com.google.container.v1beta1.WorkloadConfig.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 (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, auditMode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, auditMode_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.WorkloadConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.WorkloadConfig other = (com.google.container.v1beta1.WorkloadConfig) obj; + + if (hasAuditMode() != other.hasAuditMode()) return false; + if (hasAuditMode()) { + if (auditMode_ != other.auditMode_) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAuditMode()) { + hash = (37 * hash) + AUDIT_MODE_FIELD_NUMBER; + hash = (53 * hash) + auditMode_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.WorkloadConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.WorkloadConfig parseFrom( + 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.WorkloadConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.WorkloadConfig parseFrom( + com.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.WorkloadConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.WorkloadConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.WorkloadConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.WorkloadConfig parseFrom( + java.io.InputStream 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.WorkloadConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.WorkloadConfig parseDelimitedFrom( + java.io.InputStream 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.WorkloadConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.WorkloadConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.WorkloadConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * WorkloadConfig defines the flags to enable or disable the
+   * workload configurations for the cluster.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.WorkloadConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.WorkloadConfig) + com.google.container.v1beta1.WorkloadConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WorkloadConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WorkloadConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.WorkloadConfig.class, com.google.container.v1beta1.WorkloadConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.WorkloadConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + auditMode_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WorkloadConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.WorkloadConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.WorkloadConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.WorkloadConfig build() { + com.google.container.v1beta1.WorkloadConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.WorkloadConfig buildPartial() { + com.google.container.v1beta1.WorkloadConfig result = new com.google.container.v1beta1.WorkloadConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.WorkloadConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.auditMode_ = auditMode_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @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.WorkloadConfig) { + return mergeFrom((com.google.container.v1beta1.WorkloadConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.WorkloadConfig other) { + if (other == com.google.container.v1beta1.WorkloadConfig.getDefaultInstance()) return this; + if (other.hasAuditMode()) { + setAuditMode(other.getAuditMode()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + auditMode_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int auditMode_ = 0; + /** + *
+     * Sets which mode of auditing should be used for the cluster's workloads.
+     * 
+ * + * optional .google.container.v1beta1.WorkloadConfig.Mode audit_mode = 1; + * @return Whether the auditMode field is set. + */ + @java.lang.Override public boolean hasAuditMode() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Sets which mode of auditing should be used for the cluster's workloads.
+     * 
+ * + * optional .google.container.v1beta1.WorkloadConfig.Mode audit_mode = 1; + * @return The enum numeric value on the wire for auditMode. + */ + @java.lang.Override public int getAuditModeValue() { + return auditMode_; + } + /** + *
+     * Sets which mode of auditing should be used for the cluster's workloads.
+     * 
+ * + * optional .google.container.v1beta1.WorkloadConfig.Mode audit_mode = 1; + * @param value The enum numeric value on the wire for auditMode to set. + * @return This builder for chaining. + */ + public Builder setAuditModeValue(int value) { + auditMode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Sets which mode of auditing should be used for the cluster's workloads.
+     * 
+ * + * optional .google.container.v1beta1.WorkloadConfig.Mode audit_mode = 1; + * @return The auditMode. + */ + @java.lang.Override + public com.google.container.v1beta1.WorkloadConfig.Mode getAuditMode() { + com.google.container.v1beta1.WorkloadConfig.Mode result = com.google.container.v1beta1.WorkloadConfig.Mode.forNumber(auditMode_); + return result == null ? com.google.container.v1beta1.WorkloadConfig.Mode.UNRECOGNIZED : result; + } + /** + *
+     * Sets which mode of auditing should be used for the cluster's workloads.
+     * 
+ * + * optional .google.container.v1beta1.WorkloadConfig.Mode audit_mode = 1; + * @param value The auditMode to set. + * @return This builder for chaining. + */ + public Builder setAuditMode(com.google.container.v1beta1.WorkloadConfig.Mode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + auditMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Sets which mode of auditing should be used for the cluster's workloads.
+     * 
+ * + * optional .google.container.v1beta1.WorkloadConfig.Mode audit_mode = 1; + * @return This builder for chaining. + */ + public Builder clearAuditMode() { + bitField0_ = (bitField0_ & ~0x00000001); + auditMode_ = 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.WorkloadConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.WorkloadConfig) + private static final com.google.container.v1beta1.WorkloadConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.WorkloadConfig(); + } + + public static com.google.container.v1beta1.WorkloadConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkloadConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.WorkloadConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadConfigOrBuilder.java new file mode 100644 index 000000000000..b60f8d981f6f --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadConfigOrBuilder.java @@ -0,0 +1,38 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface WorkloadConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.WorkloadConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Sets which mode of auditing should be used for the cluster's workloads.
+   * 
+ * + * optional .google.container.v1beta1.WorkloadConfig.Mode audit_mode = 1; + * @return Whether the auditMode field is set. + */ + boolean hasAuditMode(); + /** + *
+   * Sets which mode of auditing should be used for the cluster's workloads.
+   * 
+ * + * optional .google.container.v1beta1.WorkloadConfig.Mode audit_mode = 1; + * @return The enum numeric value on the wire for auditMode. + */ + int getAuditModeValue(); + /** + *
+   * Sets which mode of auditing should be used for the cluster's workloads.
+   * 
+ * + * optional .google.container.v1beta1.WorkloadConfig.Mode audit_mode = 1; + * @return The auditMode. + */ + com.google.container.v1beta1.WorkloadConfig.Mode getAuditMode(); +} diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfig.java new file mode 100644 index 000000000000..4b0f1cd07433 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfig.java @@ -0,0 +1,922 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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; + @SuppressWarnings("serial") + private volatile java.lang.Object identityNamespace_ = ""; + /** + *
+   * IAM Identity Namespace to attach all Kubernetes Service Accounts to.
+   * 
+ * + * string identity_namespace = 1 [deprecated = true]; + * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=5181 + * @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]; + * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=5181 + * @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; + @SuppressWarnings("serial") + 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; + @SuppressWarnings("serial") + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(identityNamespace_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, identityNamespace_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workloadPool_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, workloadPool_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(identityProvider_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, identityProvider_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(identityNamespace_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, identityNamespace_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workloadPool_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, workloadPool_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(identityProvider_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, identityProvider_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.WorkloadIdentityConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.identityNamespace_ = identityNamespace_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.workloadPool_ = workloadPool_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.identityProvider_ = identityProvider_; + } + } + + @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_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getWorkloadPool().isEmpty()) { + workloadPool_ = other.workloadPool_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getIdentityProvider().isEmpty()) { + identityProvider_ = other.identityProvider_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + identityNamespace_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + workloadPool_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + identityProvider_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object identityNamespace_ = ""; + /** + *
+     * IAM Identity Namespace to attach all Kubernetes Service Accounts to.
+     * 
+ * + * string identity_namespace = 1 [deprecated = true]; + * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=5181 + * @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]; + * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=5181 + * @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]; + * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=5181 + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * IAM Identity Namespace to attach all Kubernetes Service Accounts to.
+     * 
+ * + * string identity_namespace = 1 [deprecated = true]; + * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=5181 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearIdentityNamespace() { + identityNamespace_ = getDefaultInstance().getIdentityNamespace(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * IAM Identity Namespace to attach all Kubernetes Service Accounts to.
+     * 
+ * + * string identity_namespace = 1 [deprecated = true]; + * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=5181 + * @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; + bitField0_ |= 0x00000001; + 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; + bitField0_ |= 0x00000002; + 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(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + 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; + bitField0_ |= 0x00000004; + 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(); + bitField0_ = (bitField0_ & ~0x00000004); + 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; + bitField0_ |= 0x00000004; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfigOrBuilder.java new file mode 100644 index 000000000000..10beaff782bf --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfigOrBuilder.java @@ -0,0 +1,74 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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]; + * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=5181 + * @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]; + * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=5181 + * @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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfig.java new file mode 100644 index 000000000000..8ec1a040a38b --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfig.java @@ -0,0 +1,1027 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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(); + } + + 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< + NodeMetadata> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public NodeMetadata findValueByNumber(int number) { + return NodeMetadata.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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< + Mode> 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_ = 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]; + * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4754 + * @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]; + * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4754 + * @return The nodeMetadata. + */ + @java.lang.Override @java.lang.Deprecated public com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata getNodeMetadata() { + com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata result = com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata.forNumber(nodeMetadata_); + return result == null ? com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata.UNRECOGNIZED : result; + } + + public static final int MODE_FIELD_NUMBER = 2; + 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; + * @return The mode. + */ + @java.lang.Override public com.google.container.v1beta1.WorkloadMetadataConfig.Mode getMode() { + com.google.container.v1beta1.WorkloadMetadataConfig.Mode result = com.google.container.v1beta1.WorkloadMetadataConfig.Mode.forNumber(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_); + } + getUnknownFields().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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.WorkloadMetadataConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.nodeMetadata_ = nodeMetadata_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mode_ = mode_; + } + } + + @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.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + nodeMetadata_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + mode_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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]; + * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4754 + * @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]; + * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4754 + * @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; + bitField0_ |= 0x00000001; + 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]; + * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4754 + * @return The nodeMetadata. + */ + @java.lang.Override + @java.lang.Deprecated public com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata getNodeMetadata() { + com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata result = com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata.forNumber(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]; + * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4754 + * @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(); + } + bitField0_ |= 0x00000001; + 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]; + * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4754 + * @return This builder for chaining. + */ + @java.lang.Deprecated public Builder clearNodeMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + 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; + bitField0_ |= 0x00000002; + 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() { + com.google.container.v1beta1.WorkloadMetadataConfig.Mode result = com.google.container.v1beta1.WorkloadMetadataConfig.Mode.forNumber(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(); + } + bitField0_ |= 0x00000002; + 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() { + bitField0_ = (bitField0_ & ~0x00000002); + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfigOrBuilder.java new file mode 100644 index 000000000000..ae23056f620c --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfigOrBuilder.java @@ -0,0 +1,56 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +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]; + * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4754 + * @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]; + * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. + * See google/container/v1beta1/cluster_service.proto;l=4754 + * @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/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadPolicyConfig.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadPolicyConfig.java new file mode 100644 index 000000000000..7661c97a8878 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadPolicyConfig.java @@ -0,0 +1,532 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + *
+ * WorkloadPolicyConfig is the configuration of workload policy for autopilot
+ * clusters.
+ * 
+ * + * Protobuf type {@code google.container.v1beta1.WorkloadPolicyConfig} + */ +public final class WorkloadPolicyConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.WorkloadPolicyConfig) + WorkloadPolicyConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use WorkloadPolicyConfig.newBuilder() to construct. + private WorkloadPolicyConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkloadPolicyConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new WorkloadPolicyConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WorkloadPolicyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WorkloadPolicyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.WorkloadPolicyConfig.class, com.google.container.v1beta1.WorkloadPolicyConfig.Builder.class); + } + + private int bitField0_; + public static final int ALLOW_NET_ADMIN_FIELD_NUMBER = 1; + private boolean allowNetAdmin_ = false; + /** + *
+   * If true, workloads can use NET_ADMIN capability.
+   * 
+ * + * optional bool allow_net_admin = 1; + * @return Whether the allowNetAdmin field is set. + */ + @java.lang.Override + public boolean hasAllowNetAdmin() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * If true, workloads can use NET_ADMIN capability.
+   * 
+ * + * optional bool allow_net_admin = 1; + * @return The allowNetAdmin. + */ + @java.lang.Override + public boolean getAllowNetAdmin() { + return allowNetAdmin_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(1, allowNetAdmin_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, allowNetAdmin_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.WorkloadPolicyConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.WorkloadPolicyConfig other = (com.google.container.v1beta1.WorkloadPolicyConfig) obj; + + if (hasAllowNetAdmin() != other.hasAllowNetAdmin()) return false; + if (hasAllowNetAdmin()) { + if (getAllowNetAdmin() + != other.getAllowNetAdmin()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAllowNetAdmin()) { + hash = (37 * hash) + ALLOW_NET_ADMIN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowNetAdmin()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.WorkloadPolicyConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.WorkloadPolicyConfig parseFrom( + 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.WorkloadPolicyConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.WorkloadPolicyConfig parseFrom( + com.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.WorkloadPolicyConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.container.v1beta1.WorkloadPolicyConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.container.v1beta1.WorkloadPolicyConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.WorkloadPolicyConfig parseFrom( + java.io.InputStream 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.WorkloadPolicyConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.WorkloadPolicyConfig parseDelimitedFrom( + java.io.InputStream 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.WorkloadPolicyConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.container.v1beta1.WorkloadPolicyConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, 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.WorkloadPolicyConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * WorkloadPolicyConfig is the configuration of workload policy for autopilot
+   * clusters.
+   * 
+ * + * Protobuf type {@code google.container.v1beta1.WorkloadPolicyConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.WorkloadPolicyConfig) + com.google.container.v1beta1.WorkloadPolicyConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WorkloadPolicyConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WorkloadPolicyConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.WorkloadPolicyConfig.class, com.google.container.v1beta1.WorkloadPolicyConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.WorkloadPolicyConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + allowNetAdmin_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto.internal_static_google_container_v1beta1_WorkloadPolicyConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.WorkloadPolicyConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.WorkloadPolicyConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.WorkloadPolicyConfig build() { + com.google.container.v1beta1.WorkloadPolicyConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.WorkloadPolicyConfig buildPartial() { + com.google.container.v1beta1.WorkloadPolicyConfig result = new com.google.container.v1beta1.WorkloadPolicyConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.WorkloadPolicyConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.allowNetAdmin_ = allowNetAdmin_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @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.WorkloadPolicyConfig) { + return mergeFrom((com.google.container.v1beta1.WorkloadPolicyConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.WorkloadPolicyConfig other) { + if (other == com.google.container.v1beta1.WorkloadPolicyConfig.getDefaultInstance()) return this; + if (other.hasAllowNetAdmin()) { + setAllowNetAdmin(other.getAllowNetAdmin()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + allowNetAdmin_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean allowNetAdmin_ ; + /** + *
+     * If true, workloads can use NET_ADMIN capability.
+     * 
+ * + * optional bool allow_net_admin = 1; + * @return Whether the allowNetAdmin field is set. + */ + @java.lang.Override + public boolean hasAllowNetAdmin() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * If true, workloads can use NET_ADMIN capability.
+     * 
+ * + * optional bool allow_net_admin = 1; + * @return The allowNetAdmin. + */ + @java.lang.Override + public boolean getAllowNetAdmin() { + return allowNetAdmin_; + } + /** + *
+     * If true, workloads can use NET_ADMIN capability.
+     * 
+ * + * optional bool allow_net_admin = 1; + * @param value The allowNetAdmin to set. + * @return This builder for chaining. + */ + public Builder setAllowNetAdmin(boolean value) { + + allowNetAdmin_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * If true, workloads can use NET_ADMIN capability.
+     * 
+ * + * optional bool allow_net_admin = 1; + * @return This builder for chaining. + */ + public Builder clearAllowNetAdmin() { + bitField0_ = (bitField0_ & ~0x00000001); + allowNetAdmin_ = 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.WorkloadPolicyConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.WorkloadPolicyConfig) + private static final com.google.container.v1beta1.WorkloadPolicyConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.WorkloadPolicyConfig(); + } + + public static com.google.container.v1beta1.WorkloadPolicyConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkloadPolicyConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.WorkloadPolicyConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadPolicyConfigOrBuilder.java b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadPolicyConfigOrBuilder.java new file mode 100644 index 000000000000..f642afcc0568 --- /dev/null +++ b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadPolicyConfigOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface WorkloadPolicyConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.WorkloadPolicyConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * If true, workloads can use NET_ADMIN capability.
+   * 
+ * + * optional bool allow_net_admin = 1; + * @return Whether the allowNetAdmin field is set. + */ + boolean hasAllowNetAdmin(); + /** + *
+   * If true, workloads can use NET_ADMIN capability.
+   * 
+ * + * optional bool allow_net_admin = 1; + * @return The allowNetAdmin. + */ + boolean getAllowNetAdmin(); +} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/proto/google/container/v1beta1/cluster_service.proto b/owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/proto/google/container/v1beta1/cluster_service.proto similarity index 100% rename from java-container/proto-google-cloud-container-v1beta1/src/main/proto/google/container/v1beta1/cluster_service.proto rename to owl-bot-staging/java-container/v1beta1/proto-google-cloud-container-v1beta1/src/main/proto/google/container/v1beta1/cluster_service.proto diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/canceloperation/AsyncCancelOperation.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/canceloperation/AsyncCancelOperation.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/canceloperation/AsyncCancelOperation.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/canceloperation/AsyncCancelOperation.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/canceloperation/SyncCancelOperation.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/canceloperation/SyncCancelOperation.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/canceloperation/SyncCancelOperation.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/canceloperation/SyncCancelOperation.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/canceloperation/SyncCancelOperationStringStringString.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/canceloperation/SyncCancelOperationStringStringString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/canceloperation/SyncCancelOperationStringStringString.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/canceloperation/SyncCancelOperationStringStringString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/checkautopilotcompatibility/AsyncCheckAutopilotCompatibility.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/checkautopilotcompatibility/AsyncCheckAutopilotCompatibility.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/checkautopilotcompatibility/AsyncCheckAutopilotCompatibility.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/checkautopilotcompatibility/AsyncCheckAutopilotCompatibility.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/checkautopilotcompatibility/SyncCheckAutopilotCompatibility.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/checkautopilotcompatibility/SyncCheckAutopilotCompatibility.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/checkautopilotcompatibility/SyncCheckAutopilotCompatibility.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/checkautopilotcompatibility/SyncCheckAutopilotCompatibility.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/completeiprotation/AsyncCompleteIPRotation.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/completeiprotation/AsyncCompleteIPRotation.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/completeiprotation/AsyncCompleteIPRotation.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/completeiprotation/AsyncCompleteIPRotation.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/completeiprotation/SyncCompleteIPRotation.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/completeiprotation/SyncCompleteIPRotation.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/completeiprotation/SyncCompleteIPRotation.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/completeiprotation/SyncCompleteIPRotation.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/completeiprotation/SyncCompleteIPRotationStringStringString.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/completeiprotation/SyncCompleteIPRotationStringStringString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/completeiprotation/SyncCompleteIPRotationStringStringString.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/completeiprotation/SyncCompleteIPRotationStringStringString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/completenodepoolupgrade/AsyncCompleteNodePoolUpgrade.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/completenodepoolupgrade/AsyncCompleteNodePoolUpgrade.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/completenodepoolupgrade/AsyncCompleteNodePoolUpgrade.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/completenodepoolupgrade/AsyncCompleteNodePoolUpgrade.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/completenodepoolupgrade/SyncCompleteNodePoolUpgrade.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/completenodepoolupgrade/SyncCompleteNodePoolUpgrade.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/completenodepoolupgrade/SyncCompleteNodePoolUpgrade.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/completenodepoolupgrade/SyncCompleteNodePoolUpgrade.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/create/SyncCreateSetCredentialsProvider.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/create/SyncCreateSetEndpoint.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/createcluster/AsyncCreateCluster.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/createcluster/AsyncCreateCluster.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/createcluster/AsyncCreateCluster.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/createcluster/AsyncCreateCluster.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/createcluster/SyncCreateCluster.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/createcluster/SyncCreateCluster.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/createcluster/SyncCreateCluster.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/createcluster/SyncCreateCluster.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/createcluster/SyncCreateClusterStringStringCluster.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/createcluster/SyncCreateClusterStringStringCluster.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/createcluster/SyncCreateClusterStringStringCluster.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/createcluster/SyncCreateClusterStringStringCluster.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/createnodepool/AsyncCreateNodePool.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/createnodepool/AsyncCreateNodePool.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/createnodepool/AsyncCreateNodePool.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/createnodepool/AsyncCreateNodePool.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/createnodepool/SyncCreateNodePool.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/createnodepool/SyncCreateNodePool.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/createnodepool/SyncCreateNodePool.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/createnodepool/SyncCreateNodePool.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/createnodepool/SyncCreateNodePoolStringStringStringNodepool.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/createnodepool/SyncCreateNodePoolStringStringStringNodepool.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/createnodepool/SyncCreateNodePoolStringStringStringNodepool.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/createnodepool/SyncCreateNodePoolStringStringStringNodepool.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/deletecluster/AsyncDeleteCluster.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/deletecluster/AsyncDeleteCluster.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/deletecluster/AsyncDeleteCluster.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/deletecluster/AsyncDeleteCluster.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/deletecluster/SyncDeleteCluster.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/deletecluster/SyncDeleteCluster.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/deletecluster/SyncDeleteCluster.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/deletecluster/SyncDeleteCluster.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/deletecluster/SyncDeleteClusterStringStringString.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/deletecluster/SyncDeleteClusterStringStringString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/deletecluster/SyncDeleteClusterStringStringString.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/deletecluster/SyncDeleteClusterStringStringString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/deletenodepool/AsyncDeleteNodePool.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/deletenodepool/AsyncDeleteNodePool.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/deletenodepool/AsyncDeleteNodePool.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/deletenodepool/AsyncDeleteNodePool.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/deletenodepool/SyncDeleteNodePool.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/deletenodepool/SyncDeleteNodePool.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/deletenodepool/SyncDeleteNodePool.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/deletenodepool/SyncDeleteNodePool.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/deletenodepool/SyncDeleteNodePoolStringStringStringString.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/deletenodepool/SyncDeleteNodePoolStringStringStringString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/deletenodepool/SyncDeleteNodePoolStringStringStringString.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/deletenodepool/SyncDeleteNodePoolStringStringStringString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getcluster/AsyncGetCluster.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getcluster/AsyncGetCluster.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getcluster/AsyncGetCluster.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getcluster/AsyncGetCluster.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getcluster/SyncGetCluster.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getcluster/SyncGetCluster.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getcluster/SyncGetCluster.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getcluster/SyncGetCluster.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getcluster/SyncGetClusterStringStringString.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getcluster/SyncGetClusterStringStringString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getcluster/SyncGetClusterStringStringString.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getcluster/SyncGetClusterStringStringString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getjsonwebkeys/AsyncGetJSONWebKeys.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getjsonwebkeys/AsyncGetJSONWebKeys.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getjsonwebkeys/AsyncGetJSONWebKeys.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getjsonwebkeys/AsyncGetJSONWebKeys.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getjsonwebkeys/SyncGetJSONWebKeys.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getjsonwebkeys/SyncGetJSONWebKeys.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getjsonwebkeys/SyncGetJSONWebKeys.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getjsonwebkeys/SyncGetJSONWebKeys.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getnodepool/AsyncGetNodePool.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getnodepool/AsyncGetNodePool.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getnodepool/AsyncGetNodePool.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getnodepool/AsyncGetNodePool.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getnodepool/SyncGetNodePool.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getnodepool/SyncGetNodePool.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getnodepool/SyncGetNodePool.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getnodepool/SyncGetNodePool.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getnodepool/SyncGetNodePoolStringStringStringString.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getnodepool/SyncGetNodePoolStringStringStringString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getnodepool/SyncGetNodePoolStringStringStringString.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getnodepool/SyncGetNodePoolStringStringStringString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getoperation/AsyncGetOperation.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getoperation/AsyncGetOperation.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getoperation/AsyncGetOperation.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getoperation/AsyncGetOperation.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getoperation/SyncGetOperation.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getoperation/SyncGetOperation.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getoperation/SyncGetOperation.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getoperation/SyncGetOperation.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getoperation/SyncGetOperationStringStringString.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getoperation/SyncGetOperationStringStringString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getoperation/SyncGetOperationStringStringString.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getoperation/SyncGetOperationStringStringString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getserverconfig/AsyncGetServerConfig.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getserverconfig/AsyncGetServerConfig.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getserverconfig/AsyncGetServerConfig.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getserverconfig/AsyncGetServerConfig.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getserverconfig/SyncGetServerConfig.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getserverconfig/SyncGetServerConfig.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getserverconfig/SyncGetServerConfig.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getserverconfig/SyncGetServerConfig.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getserverconfig/SyncGetServerConfigStringString.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getserverconfig/SyncGetServerConfigStringString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getserverconfig/SyncGetServerConfigStringString.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/getserverconfig/SyncGetServerConfigStringString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listclusters/AsyncListClusters.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listclusters/AsyncListClusters.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listclusters/AsyncListClusters.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listclusters/AsyncListClusters.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listclusters/SyncListClusters.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listclusters/SyncListClusters.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listclusters/SyncListClusters.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listclusters/SyncListClusters.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listclusters/SyncListClustersStringString.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listclusters/SyncListClustersStringString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listclusters/SyncListClustersStringString.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listclusters/SyncListClustersStringString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listlocations/AsyncListLocations.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listlocations/AsyncListLocations.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listlocations/AsyncListLocations.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listlocations/AsyncListLocations.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listlocations/SyncListLocations.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listlocations/SyncListLocations.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listlocations/SyncListLocations.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listlocations/SyncListLocations.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listlocations/SyncListLocationsString.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listlocations/SyncListLocationsString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listlocations/SyncListLocationsString.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listlocations/SyncListLocationsString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listnodepools/AsyncListNodePools.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listnodepools/AsyncListNodePools.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listnodepools/AsyncListNodePools.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listnodepools/AsyncListNodePools.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listnodepools/SyncListNodePools.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listnodepools/SyncListNodePools.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listnodepools/SyncListNodePools.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listnodepools/SyncListNodePools.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listnodepools/SyncListNodePoolsStringStringString.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listnodepools/SyncListNodePoolsStringStringString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listnodepools/SyncListNodePoolsStringStringString.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listnodepools/SyncListNodePoolsStringStringString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listoperations/AsyncListOperations.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listoperations/AsyncListOperations.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listoperations/AsyncListOperations.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listoperations/AsyncListOperations.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listoperations/SyncListOperations.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listoperations/SyncListOperations.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listoperations/SyncListOperations.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listoperations/SyncListOperations.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listoperations/SyncListOperationsStringString.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listoperations/SyncListOperationsStringString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listoperations/SyncListOperationsStringString.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listoperations/SyncListOperationsStringString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listusablesubnetworks/AsyncListUsableSubnetworks.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listusablesubnetworks/AsyncListUsableSubnetworks.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listusablesubnetworks/AsyncListUsableSubnetworks.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listusablesubnetworks/AsyncListUsableSubnetworks.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listusablesubnetworks/AsyncListUsableSubnetworksPaged.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listusablesubnetworks/AsyncListUsableSubnetworksPaged.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listusablesubnetworks/AsyncListUsableSubnetworksPaged.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listusablesubnetworks/AsyncListUsableSubnetworksPaged.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listusablesubnetworks/SyncListUsableSubnetworks.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listusablesubnetworks/SyncListUsableSubnetworks.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listusablesubnetworks/SyncListUsableSubnetworks.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listusablesubnetworks/SyncListUsableSubnetworks.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listusablesubnetworks/SyncListUsableSubnetworksString.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listusablesubnetworks/SyncListUsableSubnetworksString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listusablesubnetworks/SyncListUsableSubnetworksString.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/listusablesubnetworks/SyncListUsableSubnetworksString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/rollbacknodepoolupgrade/AsyncRollbackNodePoolUpgrade.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/rollbacknodepoolupgrade/AsyncRollbackNodePoolUpgrade.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/rollbacknodepoolupgrade/AsyncRollbackNodePoolUpgrade.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/rollbacknodepoolupgrade/AsyncRollbackNodePoolUpgrade.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/rollbacknodepoolupgrade/SyncRollbackNodePoolUpgrade.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/rollbacknodepoolupgrade/SyncRollbackNodePoolUpgrade.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/rollbacknodepoolupgrade/SyncRollbackNodePoolUpgrade.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/rollbacknodepoolupgrade/SyncRollbackNodePoolUpgrade.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/rollbacknodepoolupgrade/SyncRollbackNodePoolUpgradeStringStringStringString.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/rollbacknodepoolupgrade/SyncRollbackNodePoolUpgradeStringStringStringString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/rollbacknodepoolupgrade/SyncRollbackNodePoolUpgradeStringStringStringString.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/rollbacknodepoolupgrade/SyncRollbackNodePoolUpgradeStringStringStringString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setaddonsconfig/AsyncSetAddonsConfig.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setaddonsconfig/AsyncSetAddonsConfig.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setaddonsconfig/AsyncSetAddonsConfig.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setaddonsconfig/AsyncSetAddonsConfig.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setaddonsconfig/SyncSetAddonsConfig.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setaddonsconfig/SyncSetAddonsConfig.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setaddonsconfig/SyncSetAddonsConfig.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setaddonsconfig/SyncSetAddonsConfig.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setaddonsconfig/SyncSetAddonsConfigStringStringStringAddonsconfig.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setaddonsconfig/SyncSetAddonsConfigStringStringStringAddonsconfig.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setaddonsconfig/SyncSetAddonsConfigStringStringStringAddonsconfig.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setaddonsconfig/SyncSetAddonsConfigStringStringStringAddonsconfig.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setlabels/AsyncSetLabels.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setlabels/AsyncSetLabels.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setlabels/AsyncSetLabels.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setlabels/AsyncSetLabels.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setlabels/SyncSetLabels.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setlabels/SyncSetLabels.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setlabels/SyncSetLabels.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setlabels/SyncSetLabels.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setlabels/SyncSetLabelsStringStringStringMapstringstringString.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setlabels/SyncSetLabelsStringStringStringMapstringstringString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setlabels/SyncSetLabelsStringStringStringMapstringstringString.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setlabels/SyncSetLabelsStringStringStringMapstringstringString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setlegacyabac/AsyncSetLegacyAbac.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setlegacyabac/AsyncSetLegacyAbac.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setlegacyabac/AsyncSetLegacyAbac.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setlegacyabac/AsyncSetLegacyAbac.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setlegacyabac/SyncSetLegacyAbac.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setlegacyabac/SyncSetLegacyAbac.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setlegacyabac/SyncSetLegacyAbac.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setlegacyabac/SyncSetLegacyAbac.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setlegacyabac/SyncSetLegacyAbacStringStringStringBoolean.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setlegacyabac/SyncSetLegacyAbacStringStringStringBoolean.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setlegacyabac/SyncSetLegacyAbacStringStringStringBoolean.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setlegacyabac/SyncSetLegacyAbacStringStringStringBoolean.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setlocations/AsyncSetLocations.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setlocations/AsyncSetLocations.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setlocations/AsyncSetLocations.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setlocations/AsyncSetLocations.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setlocations/SyncSetLocations.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setlocations/SyncSetLocations.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setlocations/SyncSetLocations.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setlocations/SyncSetLocations.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setlocations/SyncSetLocationsStringStringStringListstring.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setlocations/SyncSetLocationsStringStringStringListstring.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setlocations/SyncSetLocationsStringStringStringListstring.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setlocations/SyncSetLocationsStringStringStringListstring.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setloggingservice/AsyncSetLoggingService.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setloggingservice/AsyncSetLoggingService.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setloggingservice/AsyncSetLoggingService.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setloggingservice/AsyncSetLoggingService.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setloggingservice/SyncSetLoggingService.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setloggingservice/SyncSetLoggingService.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setloggingservice/SyncSetLoggingService.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setloggingservice/SyncSetLoggingService.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setloggingservice/SyncSetLoggingServiceStringStringStringString.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setloggingservice/SyncSetLoggingServiceStringStringStringString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setloggingservice/SyncSetLoggingServiceStringStringStringString.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setloggingservice/SyncSetLoggingServiceStringStringStringString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setmaintenancepolicy/AsyncSetMaintenancePolicy.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setmaintenancepolicy/AsyncSetMaintenancePolicy.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setmaintenancepolicy/AsyncSetMaintenancePolicy.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setmaintenancepolicy/AsyncSetMaintenancePolicy.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setmaintenancepolicy/SyncSetMaintenancePolicy.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setmaintenancepolicy/SyncSetMaintenancePolicy.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setmaintenancepolicy/SyncSetMaintenancePolicy.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setmaintenancepolicy/SyncSetMaintenancePolicy.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setmaintenancepolicy/SyncSetMaintenancePolicyStringStringStringMaintenancepolicy.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setmaintenancepolicy/SyncSetMaintenancePolicyStringStringStringMaintenancepolicy.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setmaintenancepolicy/SyncSetMaintenancePolicyStringStringStringMaintenancepolicy.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setmaintenancepolicy/SyncSetMaintenancePolicyStringStringStringMaintenancepolicy.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setmasterauth/AsyncSetMasterAuth.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setmasterauth/AsyncSetMasterAuth.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setmasterauth/AsyncSetMasterAuth.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setmasterauth/AsyncSetMasterAuth.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setmasterauth/SyncSetMasterAuth.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setmasterauth/SyncSetMasterAuth.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setmasterauth/SyncSetMasterAuth.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setmasterauth/SyncSetMasterAuth.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setmonitoringservice/AsyncSetMonitoringService.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setmonitoringservice/AsyncSetMonitoringService.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setmonitoringservice/AsyncSetMonitoringService.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setmonitoringservice/AsyncSetMonitoringService.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setmonitoringservice/SyncSetMonitoringService.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setmonitoringservice/SyncSetMonitoringService.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setmonitoringservice/SyncSetMonitoringService.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setmonitoringservice/SyncSetMonitoringService.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setmonitoringservice/SyncSetMonitoringServiceStringStringStringString.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setmonitoringservice/SyncSetMonitoringServiceStringStringStringString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setmonitoringservice/SyncSetMonitoringServiceStringStringStringString.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setmonitoringservice/SyncSetMonitoringServiceStringStringStringString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setnetworkpolicy/AsyncSetNetworkPolicy.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setnetworkpolicy/AsyncSetNetworkPolicy.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setnetworkpolicy/AsyncSetNetworkPolicy.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setnetworkpolicy/AsyncSetNetworkPolicy.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setnetworkpolicy/SyncSetNetworkPolicy.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setnetworkpolicy/SyncSetNetworkPolicy.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setnetworkpolicy/SyncSetNetworkPolicy.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setnetworkpolicy/SyncSetNetworkPolicy.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setnetworkpolicy/SyncSetNetworkPolicyStringStringStringNetworkpolicy.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setnetworkpolicy/SyncSetNetworkPolicyStringStringStringNetworkpolicy.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setnetworkpolicy/SyncSetNetworkPolicyStringStringStringNetworkpolicy.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setnetworkpolicy/SyncSetNetworkPolicyStringStringStringNetworkpolicy.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setnodepoolautoscaling/AsyncSetNodePoolAutoscaling.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setnodepoolautoscaling/AsyncSetNodePoolAutoscaling.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setnodepoolautoscaling/AsyncSetNodePoolAutoscaling.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setnodepoolautoscaling/AsyncSetNodePoolAutoscaling.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setnodepoolautoscaling/SyncSetNodePoolAutoscaling.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setnodepoolautoscaling/SyncSetNodePoolAutoscaling.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setnodepoolautoscaling/SyncSetNodePoolAutoscaling.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setnodepoolautoscaling/SyncSetNodePoolAutoscaling.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setnodepoolmanagement/AsyncSetNodePoolManagement.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setnodepoolmanagement/AsyncSetNodePoolManagement.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setnodepoolmanagement/AsyncSetNodePoolManagement.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setnodepoolmanagement/AsyncSetNodePoolManagement.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setnodepoolmanagement/SyncSetNodePoolManagement.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setnodepoolmanagement/SyncSetNodePoolManagement.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setnodepoolmanagement/SyncSetNodePoolManagement.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setnodepoolmanagement/SyncSetNodePoolManagement.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setnodepoolmanagement/SyncSetNodePoolManagementStringStringStringStringNodemanagement.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setnodepoolmanagement/SyncSetNodePoolManagementStringStringStringStringNodemanagement.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setnodepoolmanagement/SyncSetNodePoolManagementStringStringStringStringNodemanagement.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setnodepoolmanagement/SyncSetNodePoolManagementStringStringStringStringNodemanagement.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setnodepoolsize/AsyncSetNodePoolSize.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setnodepoolsize/AsyncSetNodePoolSize.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setnodepoolsize/AsyncSetNodePoolSize.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setnodepoolsize/AsyncSetNodePoolSize.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setnodepoolsize/SyncSetNodePoolSize.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setnodepoolsize/SyncSetNodePoolSize.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setnodepoolsize/SyncSetNodePoolSize.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/setnodepoolsize/SyncSetNodePoolSize.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/startiprotation/AsyncStartIPRotation.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/startiprotation/AsyncStartIPRotation.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/startiprotation/AsyncStartIPRotation.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/startiprotation/AsyncStartIPRotation.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/startiprotation/SyncStartIPRotation.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/startiprotation/SyncStartIPRotation.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/startiprotation/SyncStartIPRotation.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/startiprotation/SyncStartIPRotation.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/startiprotation/SyncStartIPRotationStringStringString.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/startiprotation/SyncStartIPRotationStringStringString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/startiprotation/SyncStartIPRotationStringStringString.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/startiprotation/SyncStartIPRotationStringStringString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/updatecluster/AsyncUpdateCluster.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/updatecluster/AsyncUpdateCluster.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/updatecluster/AsyncUpdateCluster.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/updatecluster/AsyncUpdateCluster.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/updatecluster/SyncUpdateCluster.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/updatecluster/SyncUpdateCluster.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/updatecluster/SyncUpdateCluster.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/updatecluster/SyncUpdateCluster.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/updatecluster/SyncUpdateClusterStringStringStringClusterupdate.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/updatecluster/SyncUpdateClusterStringStringStringClusterupdate.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/updatecluster/SyncUpdateClusterStringStringStringClusterupdate.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/updatecluster/SyncUpdateClusterStringStringStringClusterupdate.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/updatemaster/AsyncUpdateMaster.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/updatemaster/AsyncUpdateMaster.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/updatemaster/AsyncUpdateMaster.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/updatemaster/AsyncUpdateMaster.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/updatemaster/SyncUpdateMaster.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/updatemaster/SyncUpdateMaster.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/updatemaster/SyncUpdateMaster.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/updatemaster/SyncUpdateMaster.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/updatemaster/SyncUpdateMasterStringStringStringString.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/updatemaster/SyncUpdateMasterStringStringStringString.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/updatemaster/SyncUpdateMasterStringStringStringString.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/updatemaster/SyncUpdateMasterStringStringStringString.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/updatenodepool/AsyncUpdateNodePool.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/updatenodepool/AsyncUpdateNodePool.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/updatenodepool/AsyncUpdateNodePool.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/updatenodepool/AsyncUpdateNodePool.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/updatenodepool/SyncUpdateNodePool.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/updatenodepool/SyncUpdateNodePool.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/updatenodepool/SyncUpdateNodePool.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanager/updatenodepool/SyncUpdateNodePool.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanagersettings/listclusters/SyncListClusters.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanagersettings/listclusters/SyncListClusters.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanagersettings/listclusters/SyncListClusters.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/clustermanagersettings/listclusters/SyncListClusters.java diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/stub/clustermanagerstubsettings/listclusters/SyncListClusters.java b/owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/stub/clustermanagerstubsettings/listclusters/SyncListClusters.java similarity index 100% rename from java-container/samples/snippets/generated/com/google/cloud/container/v1beta1/stub/clustermanagerstubsettings/listclusters/SyncListClusters.java rename to owl-bot-staging/java-container/v1beta1/samples/snippets/generated/com/google/cloud/container/v1beta1/stub/clustermanagerstubsettings/listclusters/SyncListClusters.java